File tree Expand file tree Collapse file tree 8 files changed +43
-31
lines changed
uui-ref-node-data-type/lib
uui-ref-node-document-type/lib Expand file tree Collapse file tree 8 files changed +43
-31
lines changed Original file line number Diff line number Diff line change @@ -81,22 +81,25 @@ CustomIcon.parameters = {
81
81
} ,
82
82
} ;
83
83
84
- export const Border : Story = ( ) => html `
84
+ export const Standalone : Story = ( ) => html `
85
85
< div style ="max-width: 420px; ">
86
- < uui-ref-node-data-type border name ="TextField " alias ="Umbraco.TextField ">
86
+ < uui-ref-node-data-type
87
+ standalone
88
+ name ="TextField "
89
+ alias ="Umbraco.TextField ">
87
90
< uui-action-bar slot ="actions ">
88
91
< uui-button label ="Remove "> Remove</ uui-button >
89
92
</ uui-action-bar >
90
93
</ uui-ref-node-data-type >
91
94
</ div >
92
95
` ;
93
96
94
- Border . parameters = {
97
+ Standalone . parameters = {
95
98
docs : {
96
99
source : {
97
100
code : `
98
101
<uui-ref-node-data-type
99
- border
102
+ standalone
100
103
name="TextField"
101
104
alias="Umbraco.TextField">
102
105
<uui-action-bar slot="actions">
Original file line number Diff line number Diff line change @@ -81,22 +81,25 @@ CustomIcon.parameters = {
81
81
} ,
82
82
} ;
83
83
84
- export const Border : Story = ( ) => html `
84
+ export const Standalone : Story = ( ) => html `
85
85
< div style ="max-width: 420px; ">
86
- < uui-ref-node-document-type border name ="Product Page " alias ="productPage ">
86
+ < uui-ref-node-document-type
87
+ standalone
88
+ name ="Product Page "
89
+ alias ="productPage ">
87
90
< uui-action-bar slot ="actions ">
88
91
< uui-button label ="Remove "> Remove</ uui-button >
89
92
</ uui-action-bar >
90
93
</ uui-ref-node-document-type >
91
94
</ div >
92
95
` ;
93
96
94
- Border . parameters = {
97
+ Standalone . parameters = {
95
98
docs : {
96
99
source : {
97
100
code : `
98
101
<uui-ref-node-document-type
99
- border
102
+ standalone
100
103
name="Product Page"
101
104
alias="productPage">
102
105
<uui-action-bar slot="actions">
Original file line number Diff line number Diff line change @@ -82,10 +82,10 @@ CustomIcon.parameters = {
82
82
} ,
83
83
} ;
84
84
85
- export const Border : Story = ( ) => html `
85
+ export const Standalone : Story = ( ) => html `
86
86
< div style ="max-width: 420px; ">
87
87
< uui-ref-node-form
88
- border
88
+ standalone
89
89
name ="Newsletter Signup "
90
90
detail ="Signup for newsletter ">
91
91
< uui-action-bar slot ="actions ">
@@ -95,12 +95,12 @@ export const Border: Story = () => html`
95
95
</ div >
96
96
` ;
97
97
98
- Border . parameters = {
98
+ Standalone . parameters = {
99
99
docs : {
100
100
source : {
101
101
code : `
102
102
<uui-ref-node-form
103
- border
103
+ standalone
104
104
name="Newsletter Signup"
105
105
detail="Signup for newsletter">
106
106
<uui-action-bar slot="actions">
Original file line number Diff line number Diff line change @@ -83,10 +83,10 @@ CustomIcon.parameters = {
83
83
} ,
84
84
} ;
85
85
86
- export const Border : Story = ( ) => html `
86
+ export const Standalone : Story = ( ) => html `
87
87
< div style ="max-width: 420px; ">
88
88
< uui-ref-node-member
89
- border
89
+ standalone
90
90
name ="Arnold Vitz "
91
91
group-name ="Visitor, Registered-Member ">
92
92
< uui-action-bar slot ="actions ">
@@ -96,12 +96,12 @@ export const Border: Story = () => html`
96
96
</ div >
97
97
` ;
98
98
99
- Border . parameters = {
99
+ Standalone . parameters = {
100
100
docs : {
101
101
source : {
102
102
code : `
103
103
<uui-ref-node-member
104
- border
104
+ standalone
105
105
name="Arnold Vitz"
106
106
group-name="Visitor, Registered-Member">
107
107
<uui-action-bar slot="actions">
Original file line number Diff line number Diff line change @@ -93,10 +93,10 @@ CustomIcon.parameters = {
93
93
} ,
94
94
} ;
95
95
96
- export const Border : Story = ( ) => html `
96
+ export const Standalone : Story = ( ) => html `
97
97
< div style ="max-width: 420px; ">
98
98
< uui-ref-node-package
99
- border
99
+ standalone
100
100
name ="Umbraco Starter Kit "
101
101
version ="1.1 "
102
102
author ="Umbraco HQ ">
@@ -110,12 +110,12 @@ export const Border: Story = () => html`
110
110
</ div >
111
111
` ;
112
112
113
- Border . parameters = {
113
+ Standalone . parameters = {
114
114
docs : {
115
115
source : {
116
116
code : `
117
117
<uui-ref-node-package
118
- border
118
+ standalone
119
119
name="Umbraco Starter Kit"
120
120
version="1.1"
121
121
author="Umbraco HQ">
Original file line number Diff line number Diff line change @@ -81,10 +81,10 @@ CustomIcon.parameters = {
81
81
} ,
82
82
} ;
83
83
84
- export const Border : Story = ( ) => html `
84
+ export const Standalone : Story = ( ) => html `
85
85
< div style ="max-width: 420px; ">
86
86
< uui-ref-node-user
87
- border
87
+ standalone
88
88
name ="Arnold Edits "
89
89
group-name ="Editor, Translator ">
90
90
< uui-action-bar slot ="actions ">
@@ -94,12 +94,12 @@ export const Border: Story = () => html`
94
94
</ div >
95
95
` ;
96
96
97
- Border . parameters = {
97
+ Standalone . parameters = {
98
98
docs : {
99
99
source : {
100
100
code : `
101
101
<uui-ref-node-user
102
- border
102
+ standalone
103
103
name="Arnold Edits"
104
104
group-name="Editor, Translator"
105
105
<uui-action-bar slot="actions">
Original file line number Diff line number Diff line change @@ -91,8 +91,11 @@ CustomIcon.parameters = {
91
91
} ,
92
92
} ;
93
93
94
- export const Border : Story = ( ) => html `
95
- < uui-ref-node border name ="Rabbit Suit Product Page " detail ="path/to/nowhere ">
94
+ export const Standalone : Story = ( ) => html `
95
+ < uui-ref-node
96
+ standalone
97
+ name ="Rabbit Suit Product Page "
98
+ detail ="path/to/nowhere ">
96
99
< uui-tag size ="s " slot ="tag " color ="positive "> Published</ uui-tag >
97
100
< uui-action-bar slot ="actions ">
98
101
< uui-button type ="button " label ="Delete "
@@ -102,12 +105,12 @@ export const Border: Story = () => html`
102
105
</ uui-ref-node >
103
106
` ;
104
107
105
- Border . parameters = {
108
+ Standalone . parameters = {
106
109
docs : {
107
110
source : {
108
111
code : `
109
112
<uui-ref-node
110
- border
113
+ standalone
111
114
name="Rabbit Suit Product Page"
112
115
detail="path/to/nowhere">
113
116
<uui-tag size="s" slot="tag" color="positive" >Published</uui-tag>
Original file line number Diff line number Diff line change @@ -13,6 +13,9 @@ import { UUIRefEvent } from './UUIRefEvent';
13
13
* @fires {UUISelectableEvent } selected - fires when the ref is selected
14
14
* @fires {UUISelectableEvent } deselected - fires when the ref is deselected
15
15
* @description - Base ref component to be extended by specific ref elements. Does not have a tag.
16
+ * @attr {boolean} [disabled=false] - Set to true to disable
17
+ * @attr {boolean} [error=false] - Set to true to display error state
18
+ * @attr {boolean} [standalone=false] - Set to true to make element stand out
16
19
*/
17
20
18
21
@defineElement ( 'uui-ref' )
@@ -76,7 +79,7 @@ export class UUIRefElement extends SelectOnlyMixin(
76
79
inset 0 0 2px 0 var (--uui-color-danger );
77
80
}
78
81
79
- : host ([border ]) {
82
+ : host ([standalone ]) {
80
83
border : 1px solid var (--uui-color-border );
81
84
}
82
85
@@ -179,15 +182,15 @@ export class UUIRefElement extends SelectOnlyMixin(
179
182
opacity : 1 ;
180
183
}
181
184
182
- : host ([border ]: not ([disabled ]): hover ) {
185
+ : host ([standalone ]: not ([disabled ]): hover ) {
183
186
border-color : var (--uui-color-border-emphasis );
184
187
}
185
188
186
189
: host ([disabled ]) # open-part {
187
190
cursor : default;
188
191
}
189
192
190
- : host ([border ][disabled ]) {
193
+ : host ([standalone ][disabled ]) {
191
194
border-color : var (--uui-color-disabled-standalone );
192
195
}
193
196
You can’t perform that action at this time.
0 commit comments