@warp-ds/elements 2.10.0-next.1 → 2.10.0-next.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/dist/api.js +1 -1
- package/dist/api.js.map +1 -1
- package/dist/custom-elements.json +233 -87
- package/dist/docs/affix/affix.md +2 -2
- package/dist/docs/affix/styling.md +1 -0
- package/dist/docs/alert/alert.md +2 -2
- package/dist/docs/alert/styling.md +1 -0
- package/dist/docs/attention/attention.md +2 -0
- package/dist/docs/attention/styling.md +1 -0
- package/dist/docs/badge/badge.md +2 -0
- package/dist/docs/badge/styling.md +1 -0
- package/dist/docs/box/box.md +22 -40
- package/dist/docs/box/examples.md +20 -38
- package/dist/docs/box/styling.md +1 -0
- package/dist/docs/breadcrumbs/breadcrumbs.md +8 -2
- package/dist/docs/breadcrumbs/examples.md +7 -1
- package/dist/docs/breadcrumbs/styling.md +1 -0
- package/dist/docs/button/button.md +73 -2
- package/dist/docs/button/styling.md +72 -0
- package/dist/docs/card/accessibility.md +74 -0
- package/dist/docs/card/api.md +9 -3
- package/dist/docs/card/card.md +236 -5
- package/dist/docs/card/examples.md +75 -0
- package/dist/docs/card/styling.md +1 -0
- package/dist/docs/card/usage.md +76 -0
- package/dist/docs/checkbox/api.md +128 -0
- package/dist/docs/checkbox/checkbox.md +134 -0
- package/dist/docs/checkbox-group/accessibility.md +71 -0
- package/dist/docs/checkbox-group/api.md +79 -0
- package/dist/docs/checkbox-group/checkbox-group.md +492 -0
- package/dist/docs/checkbox-group/examples.md +105 -0
- package/dist/docs/checkbox-group/styling.md +132 -0
- package/dist/docs/checkbox-group/usage.md +95 -0
- package/dist/docs/combobox/accessibility.md +71 -0
- package/dist/docs/combobox/api.md +60 -30
- package/dist/docs/combobox/combobox.md +205 -32
- package/dist/docs/combobox/examples.md +44 -0
- package/dist/docs/combobox/styling.md +1 -0
- package/dist/docs/combobox/usage.md +28 -0
- package/dist/docs/datepicker/accessibility.md +25 -0
- package/dist/docs/datepicker/api.md +22 -14
- package/dist/docs/datepicker/datepicker.md +208 -16
- package/dist/docs/datepicker/examples.md +75 -0
- package/dist/docs/datepicker/styling.md +1 -0
- package/dist/docs/datepicker/usage.md +84 -0
- package/dist/docs/expandable/api.md +20 -32
- package/dist/docs/expandable/examples.md +54 -0
- package/dist/docs/expandable/expandable.md +74 -32
- package/dist/docs/expandable/styling.md +1 -0
- package/dist/docs/icon/accessibility.md +5 -0
- package/dist/docs/icon/api.md +43 -0
- package/dist/docs/icon/examples.md +45 -0
- package/dist/docs/icon/icon.md +115 -0
- package/dist/docs/icon/styling.md +1 -0
- package/dist/docs/icon/usage.md +11 -0
- package/dist/docs/index.md +46 -0
- package/dist/docs/link/api.md +18 -22
- package/dist/docs/link/examples.md +75 -0
- package/dist/docs/link/link.md +113 -24
- package/dist/docs/link/styling.md +1 -0
- package/dist/docs/link/usage.md +18 -0
- package/dist/docs/modal/modal.md +2 -0
- package/dist/docs/modal/styling.md +1 -0
- package/dist/docs/modal-footer/modal-footer.md +0 -6
- package/dist/docs/modal-header/modal-header.md +0 -6
- package/dist/docs/page-indicator/page-indicator.md +2 -0
- package/dist/docs/page-indicator/styling.md +1 -0
- package/dist/docs/pagination/pagination.md +2 -0
- package/dist/docs/pagination/styling.md +1 -0
- package/dist/docs/pill/pill.md +2 -0
- package/dist/docs/pill/styling.md +1 -0
- package/dist/docs/radio/radio.md +1 -7
- package/dist/docs/select/select.md +2 -0
- package/dist/docs/select/styling.md +1 -0
- package/dist/docs/slider/slider.md +2 -0
- package/dist/docs/slider/styling.md +1 -0
- package/dist/docs/slider-thumb/slider-thumb.md +2 -0
- package/dist/docs/slider-thumb/styling.md +1 -0
- package/dist/docs/step-indicator/step-indicator.md +2 -0
- package/dist/docs/step-indicator/styling.md +1 -0
- package/dist/docs/switch/styling.md +1 -0
- package/dist/docs/switch/switch.md +2 -0
- package/dist/docs/tabs/styling.md +1 -0
- package/dist/docs/tabs/tabs.md +2 -0
- package/dist/docs/textarea/styling.md +1 -0
- package/dist/docs/textarea/textarea.md +2 -0
- package/dist/docs/textfield/styling.md +1 -0
- package/dist/docs/textfield/textfield.md +2 -0
- package/dist/index.d.ts +645 -313
- package/dist/packages/affix/affix.hydration.test.js +1 -1
- package/dist/packages/affix/affix.js +4 -4
- package/dist/packages/affix/affix.js.map +4 -4
- package/dist/packages/alert/alert.hydration.test.js +1 -1
- package/dist/packages/alert/alert.js +3 -3
- package/dist/packages/alert/alert.js.map +3 -3
- package/dist/packages/attention/attention.hydration.test.js +1 -1
- package/dist/packages/attention/attention.js +397 -446
- package/dist/packages/attention/attention.js.map +4 -4
- package/dist/packages/attention/attention.test.js +1 -1
- package/dist/packages/badge/badge.hydration.test.js +1 -1
- package/dist/packages/box/box.hydration.test.js +1 -1
- package/dist/packages/box/box.js +1 -1
- package/dist/packages/box/box.js.map +1 -1
- package/dist/packages/breadcrumbs/breadcrumbs.hydration.test.js +3 -2
- package/dist/packages/breadcrumbs/breadcrumbs.js +4 -4
- package/dist/packages/breadcrumbs/breadcrumbs.js.map +3 -3
- package/dist/packages/button/button.hydration.test.js +1 -1
- package/dist/packages/button/button.js +387 -436
- package/dist/packages/button/button.js.map +4 -4
- package/dist/packages/button/button.stories.d.ts +29 -0
- package/dist/packages/button/button.stories.js +176 -2
- package/dist/packages/button/styles.d.ts +22 -1
- package/dist/packages/button/styles.js +390 -1
- package/dist/packages/card/card.d.ts +9 -6
- package/dist/packages/card/card.hydration.test.js +1 -1
- package/dist/packages/card/card.js +3 -3
- package/dist/packages/card/card.js.map +4 -4
- package/dist/packages/checkbox/checkbox.d.ts +45 -14
- package/dist/packages/checkbox/checkbox.hydration.test.js +1 -1
- package/dist/packages/checkbox/checkbox.js +3 -3
- package/dist/packages/checkbox/checkbox.js.map +3 -3
- package/dist/packages/checkbox/checkbox.react.stories.d.ts +1 -1
- package/dist/packages/checkbox/checkbox.stories.d.ts +2 -2
- package/dist/packages/checkbox/checkbox.test.js +1 -1
- package/dist/packages/checkbox/react.d.ts +2 -2
- package/dist/packages/checkbox-group/checkbox-group.a11y.test.js +1 -1
- package/dist/packages/checkbox-group/checkbox-group.d.ts +35 -8
- package/dist/packages/checkbox-group/checkbox-group.hydration.test.js +1 -1
- package/dist/packages/checkbox-group/checkbox-group.js +6 -6
- package/dist/packages/checkbox-group/checkbox-group.js.map +4 -4
- package/dist/packages/checkbox-group/react.d.ts +3 -3
- package/dist/packages/combobox/combobox.a11y.test.js +24 -0
- package/dist/packages/combobox/combobox.d.ts +65 -45
- package/dist/packages/combobox/combobox.hydration.test.js +39 -1
- package/dist/packages/combobox/combobox.js +21 -21
- package/dist/packages/combobox/combobox.js.map +4 -4
- package/dist/packages/combobox/combobox.stories.js +28 -15
- package/dist/packages/combobox/combobox.test.js +110 -0
- package/dist/packages/datepicker/DatePicker.test.js +1 -1
- package/dist/packages/datepicker/datepicker.d.ts +22 -30
- package/dist/packages/datepicker/datepicker.hydration.test.js +1 -1
- package/dist/packages/datepicker/datepicker.js +49 -49
- package/dist/packages/datepicker/datepicker.js.map +4 -4
- package/dist/packages/datepicker/datepicker.test.js +1 -1
- package/dist/packages/expandable/expandable.d.ts +11 -32
- package/dist/packages/expandable/expandable.hydration.test.js +1 -1
- package/dist/packages/expandable/expandable.js +11 -11
- package/dist/packages/expandable/expandable.js.map +3 -3
- package/dist/packages/expandable/expandable.react.stories.d.ts +2 -2
- package/dist/packages/expandable/react.d.ts +1 -1
- package/dist/packages/icon/icon.d.ts +16 -4
- package/dist/packages/icon/icon.hydration.test.js +1 -1
- package/dist/packages/icon/icon.js +2 -2
- package/dist/packages/icon/icon.js.map +3 -3
- package/dist/packages/icon/icon.react.stories.d.ts +1 -1
- package/dist/packages/icon/react.d.ts +2 -2
- package/dist/packages/link/link.d.ts +15 -16
- package/dist/packages/link/link.hydration.test.js +1 -1
- package/dist/packages/link/link.js +420 -190
- package/dist/packages/link/link.js.map +4 -4
- package/dist/packages/link/link.test.js +1 -1
- package/dist/packages/link/styles.d.ts +5 -0
- package/dist/packages/link/styles.js +80 -0
- package/dist/packages/modal/modal.d.ts +1 -0
- package/dist/packages/modal/modal.hydration.test.js +1 -1
- package/dist/packages/modal/modal.js +4 -4
- package/dist/packages/modal/modal.js.map +3 -3
- package/dist/packages/modal-header/modal-header.js +11 -9
- package/dist/packages/modal-header/modal-header.js.map +4 -4
- package/dist/packages/page-indicator/page-indicator.hydration.test.js +1 -1
- package/dist/packages/page-indicator/page-indicator.js +5 -5
- package/dist/packages/page-indicator/page-indicator.js.map +3 -3
- package/dist/packages/pagination/pagination.hydration.test.js +1 -1
- package/dist/packages/pagination/pagination.js +4 -4
- package/dist/packages/pagination/pagination.js.map +4 -4
- package/dist/packages/pagination/pagination.test.js +1 -1
- package/dist/packages/pill/pill.hydration.test.js +1 -1
- package/dist/packages/pill/pill.js +3 -3
- package/dist/packages/pill/pill.js.map +4 -4
- package/dist/packages/radio/radio.hydration.test.js +1 -1
- package/dist/packages/radio/radio.js +3 -3
- package/dist/packages/radio/radio.js.map +3 -3
- package/dist/packages/radio/radio.test.js +1 -1
- package/dist/packages/radio-group/radio-group.a11y.test.js +7 -3
- package/dist/packages/radio-group/radio-group.hydration.test.js +6 -2
- package/dist/packages/radio-group/radio-group.js +11 -11
- package/dist/packages/radio-group/radio-group.js.map +4 -4
- package/dist/packages/select/select.a11y.test.js +6 -2
- package/dist/packages/select/select.hydration.test.js +1 -1
- package/dist/packages/select/select.js +7 -7
- package/dist/packages/select/select.js.map +4 -4
- package/dist/packages/select/select.test.js +4 -2
- package/dist/packages/slider/slider.hydration.test.js +7 -2
- package/dist/packages/slider/slider.js +5 -5
- package/dist/packages/slider/slider.js.map +4 -4
- package/dist/packages/slider/slider.react.stories.js +2 -2
- package/dist/packages/slider/slider.test.js +1 -1
- package/dist/packages/slider-thumb/slider-thumb.hydration.test.js +1 -1
- package/dist/packages/slider-thumb/slider-thumb.js +20 -20
- package/dist/packages/slider-thumb/slider-thumb.js.map +4 -4
- package/dist/packages/step/step.hydration.test.js +1 -1
- package/dist/packages/step/step.js +8 -8
- package/dist/packages/step/step.js.map +4 -4
- package/dist/packages/step-indicator/step-indicator.hydration.test.js +1 -1
- package/dist/packages/switch/switch.a11y.test.js +1 -1
- package/dist/packages/switch/switch.hydration.test.js +1 -1
- package/dist/packages/switch/switch.js +1 -1
- package/dist/packages/switch/switch.js.map +1 -1
- package/dist/packages/tab/tab.hydration.test.js +1 -1
- package/dist/packages/tab/tab.js +10 -10
- package/dist/packages/tab/tab.js.map +2 -2
- package/dist/packages/tab-panel/tab-panel.hydration.test.js +1 -1
- package/dist/packages/tab-panel/tab-panel.js +3 -3
- package/dist/packages/tab-panel/tab-panel.js.map +2 -2
- package/dist/packages/tabs/tabs.a11y.test.js +2 -2
- package/dist/packages/tabs/tabs.hydration.test.js +1 -1
- package/dist/packages/tabs/tabs.js +1 -1
- package/dist/packages/tabs/tabs.js.map +2 -2
- package/dist/packages/tabs/tabs.test.js +4 -4
- package/dist/packages/textarea/textarea.hydration.test.js +1 -1
- package/dist/packages/textarea/textarea.js +4 -4
- package/dist/packages/textarea/textarea.js.map +3 -3
- package/dist/packages/textarea/textarea.test.js +1 -1
- package/dist/packages/textfield/textfield.hydration.test.js +1 -1
- package/dist/packages/textfield/textfield.js +1 -1
- package/dist/packages/textfield/textfield.js.map +1 -1
- package/dist/packages/textfield/textfield.test.js +1 -1
- package/dist/packages/toast/toast.js +6 -6
- package/dist/packages/toast/toast.js.map +4 -4
- package/dist/packages/toast/toast.stories.d.ts +1 -5
- package/dist/packages/toast/toast.stories.js +0 -17
- package/dist/packages/toast-container/toast-container.js +2 -2
- package/dist/packages/toast-container/toast-container.js.map +2 -2
- package/dist/web-types.json +238 -103
- package/eik/index.js +2536 -0
- package/package.json +15 -9
- package/dist/docs/modal-footer/accessibility.md +0 -1
- package/dist/docs/modal-footer/examples.md +0 -1
- package/dist/docs/modal-footer/usage.md +0 -1
- package/dist/docs/modal-header/accessibility.md +0 -1
- package/dist/docs/modal-header/examples.md +0 -1
- package/dist/docs/modal-header/usage.md +0 -1
- package/dist/docs/radio/accessibility.md +0 -1
- package/dist/docs/radio/examples.md +0 -1
- package/dist/docs/radio/usage.md +0 -1
- package/dist/packages/button/styles/w-button.styles.d.ts +0 -1
- package/dist/packages/button/styles/w-button.styles.js +0 -282
- package/dist/packages/link/styles/w-link.styles.d.ts +0 -1
- package/dist/packages/link/styles/w-link.styles.js +0 -213
package/dist/docs/link/link.md
CHANGED
|
@@ -4,14 +4,107 @@
|
|
|
4
4
|
|
|
5
5
|
Buttons are used to perform actions, with different visuals for different needs.
|
|
6
6
|
|
|
7
|
-
[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/buttons-link--docs)
|
|
8
|
-
|
|
9
7
|
## Usage
|
|
10
8
|
|
|
9
|
+
**Do:**
|
|
10
|
+
|
|
11
|
+
- Use the `<w-link>` component when you need a link that looks like a button.
|
|
12
|
+
|
|
13
|
+
**Do Not:**
|
|
14
|
+
|
|
15
|
+
- Use the `<w-link>` component when you need a link that looks like a link. In that case, use the native `<a>` tag.
|
|
16
|
+
- Use the `<w-link>` component when you need a button that looks like a button. In that case, use the native `<w-button>` tag.
|
|
17
|
+
|
|
18
|
+
The following table illustrates use cases and which element to use for the purpose.
|
|
19
|
+
|
|
20
|
+
| If desired behaviour is | and desired styling is | then use |
|
|
21
|
+
| ----------------------- | ---------------------- | ------------ |
|
|
22
|
+
| link | button | `<w-link>` |
|
|
23
|
+
| button | button | `<w-button>` |
|
|
24
|
+
| link | link | `<a>` |
|
|
25
|
+
| button | link | `<w-button>` |
|
|
26
|
+
|
|
11
27
|
## Accessibility
|
|
12
28
|
|
|
13
29
|
## Examples
|
|
14
30
|
|
|
31
|
+
### Primary
|
|
32
|
+
|
|
33
|
+
<elements-example>
|
|
34
|
+
|
|
35
|
+
```html
|
|
36
|
+
<w-link variant="primary" href="#">Go to the top of this page</w-link>
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
</elements-example>
|
|
40
|
+
|
|
41
|
+
### Secondary
|
|
42
|
+
|
|
43
|
+
This is the default appearance.
|
|
44
|
+
|
|
45
|
+
<elements-example>
|
|
46
|
+
|
|
47
|
+
```html
|
|
48
|
+
<w-link href="#">Go to the top of this page</w-link>
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
</elements-example>
|
|
52
|
+
|
|
53
|
+
### Negative
|
|
54
|
+
|
|
55
|
+
<elements-example>
|
|
56
|
+
|
|
57
|
+
```html
|
|
58
|
+
<w-link variant="negative" href="#">Go to the top of this page</w-link>
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
</elements-example>
|
|
62
|
+
|
|
63
|
+
### Utility
|
|
64
|
+
|
|
65
|
+
<elements-example>
|
|
66
|
+
|
|
67
|
+
```html
|
|
68
|
+
<w-link variant="utility" href="#">Go to the top of this page</w-link>
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
</elements-example>
|
|
72
|
+
|
|
73
|
+
### Quiet
|
|
74
|
+
|
|
75
|
+
<elements-example>
|
|
76
|
+
|
|
77
|
+
```html
|
|
78
|
+
<w-link variant="quiet" href="#">Go to the top of this page</w-link>
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
</elements-example>
|
|
82
|
+
|
|
83
|
+
### Small
|
|
84
|
+
|
|
85
|
+
All variants can be small.
|
|
86
|
+
|
|
87
|
+
<elements-example>
|
|
88
|
+
|
|
89
|
+
```html
|
|
90
|
+
<w-link href="#" small>Go to the top of this page</w-link>
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
</elements-example>
|
|
94
|
+
|
|
95
|
+
### Full width
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
<elements-example>
|
|
99
|
+
|
|
100
|
+
```html
|
|
101
|
+
<w-link href="#" full-width>Go to the top of this page</w-link>
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
</elements-example>
|
|
105
|
+
|
|
106
|
+
## Styling API
|
|
107
|
+
|
|
15
108
|
## `<w-link>` API
|
|
16
109
|
|
|
17
110
|
Unless otherwise noted all properties are HTML attributes (as opposed to JavaScript object properties).
|
|
@@ -20,77 +113,73 @@ Unless otherwise noted all properties are HTML attributes (as opposed to JavaScr
|
|
|
20
113
|
|
|
21
114
|
| Name | Type | Default | Summary |
|
|
22
115
|
|-|-|-|-|
|
|
23
|
-
| autofocus | `boolean` | `false` |
|
|
24
|
-
| disabled | `boolean` | `false` |
|
|
25
|
-
| full-width | `boolean` | `false` |
|
|
26
|
-
| href | `string` | `-` |
|
|
27
|
-
| rel | `string` | `-` |
|
|
28
|
-
|
|
|
29
|
-
|
|
|
30
|
-
|
|
|
31
|
-
| variant | [`ButtonVariant`](#buttonvariant) | `-` | - |
|
|
116
|
+
| autofocus | `boolean` | `false` | Focus the link after it is rendered |
|
|
117
|
+
| disabled | `boolean` | `false` | Applies disabled styling, but you need to disable clicks on your own. |
|
|
118
|
+
| full-width | `boolean` | `false` | Makes the link take up the full width of its parent |
|
|
119
|
+
| href | `string` | `-` | The URL the link points to |
|
|
120
|
+
| rel | `string` | `-` | Relationship of the linked URL. |
|
|
121
|
+
| small | `boolean` | `false` | Render a smaller version |
|
|
122
|
+
| target | `string` | `-` | Where to display the linked URL (e.g. `_blank`) |
|
|
123
|
+
| variant | [`ButtonVariant`](#buttonvariant) | `-` | Visual style for the link/button. |
|
|
32
124
|
|
|
33
125
|
### Property Details
|
|
34
126
|
|
|
35
127
|
#### autofocus
|
|
36
128
|
|
|
37
|
-
|
|
129
|
+
Focus the link after it is rendered
|
|
38
130
|
|
|
39
131
|
- Type: `boolean`
|
|
40
132
|
- Default: `false`
|
|
41
133
|
|
|
42
134
|
#### disabled
|
|
43
135
|
|
|
136
|
+
Applies disabled styling, but you need to disable clicks on your own.
|
|
44
137
|
|
|
138
|
+
The component renders an `<a>` element; `disabled` affects styling, but does not inherently prevent navigation. If you need to fully disable interaction, omit `href` and/or prevent default click behavior.
|
|
45
139
|
|
|
46
140
|
- Type: `boolean`
|
|
47
141
|
- Default: `false`
|
|
48
142
|
|
|
49
143
|
#### full-width
|
|
50
144
|
|
|
51
|
-
|
|
145
|
+
Makes the link take up the full width of its parent
|
|
52
146
|
|
|
53
147
|
- Type: `boolean`
|
|
54
148
|
- Default: `false`
|
|
55
149
|
|
|
56
150
|
#### href
|
|
57
151
|
|
|
58
|
-
|
|
152
|
+
The URL the link points to
|
|
59
153
|
|
|
60
154
|
- Type: `string`
|
|
61
155
|
- Default: `-`
|
|
62
156
|
|
|
63
157
|
#### rel
|
|
64
158
|
|
|
159
|
+
Relationship of the linked URL.
|
|
65
160
|
|
|
161
|
+
If `target="_blank"` and `rel` is not provided, the component uses `noopener`.
|
|
66
162
|
|
|
67
163
|
- Type: `string`
|
|
68
164
|
- Default: `-`
|
|
69
165
|
|
|
70
|
-
#### shadowRootOptions (JS only)
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
- Type: `object`
|
|
75
|
-
- Default: `{ ...LitElement.shadowRootOptions, delegatesFocus: true, }`
|
|
76
|
-
|
|
77
166
|
#### small
|
|
78
167
|
|
|
79
|
-
|
|
168
|
+
Render a smaller version
|
|
80
169
|
|
|
81
170
|
- Type: `boolean`
|
|
82
171
|
- Default: `false`
|
|
83
172
|
|
|
84
173
|
#### target
|
|
85
174
|
|
|
86
|
-
|
|
175
|
+
Where to display the linked URL (e.g. `_blank`)
|
|
87
176
|
|
|
88
177
|
- Type: `string`
|
|
89
178
|
- Default: `-`
|
|
90
179
|
|
|
91
180
|
#### variant
|
|
92
181
|
|
|
93
|
-
|
|
182
|
+
Visual style for the link/button.
|
|
94
183
|
|
|
95
184
|
- Type: [`ButtonVariant`](#buttonvariant)
|
|
96
185
|
- Default: `-`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
## Styling API
|
package/dist/docs/link/usage.md
CHANGED
|
@@ -1 +1,19 @@
|
|
|
1
1
|
## Usage
|
|
2
|
+
|
|
3
|
+
**Do:**
|
|
4
|
+
|
|
5
|
+
- Use the `<w-link>` component when you need a link that looks like a button.
|
|
6
|
+
|
|
7
|
+
**Do Not:**
|
|
8
|
+
|
|
9
|
+
- Use the `<w-link>` component when you need a link that looks like a link. In that case, use the native `<a>` tag.
|
|
10
|
+
- Use the `<w-link>` component when you need a button that looks like a button. In that case, use the native `<w-button>` tag.
|
|
11
|
+
|
|
12
|
+
The following table illustrates use cases and which element to use for the purpose.
|
|
13
|
+
|
|
14
|
+
| If desired behaviour is | and desired styling is | then use |
|
|
15
|
+
| ----------------------- | ---------------------- | ------------ |
|
|
16
|
+
| link | button | `<w-link>` |
|
|
17
|
+
| button | button | `<w-button>` |
|
|
18
|
+
| link | link | `<a>` |
|
|
19
|
+
| button | link | `<w-button>` |
|
package/dist/docs/modal/modal.md
CHANGED
|
@@ -185,6 +185,8 @@ modal.addEventListener('command', function (event: CommandEvent) {
|
|
|
185
185
|
|
|
186
186
|
</elements-example>
|
|
187
187
|
|
|
188
|
+
## Styling API
|
|
189
|
+
|
|
188
190
|
## `<w-modal>` API
|
|
189
191
|
|
|
190
192
|
Unless otherwise noted all properties are HTML attributes (as opposed to JavaScript object properties).
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
## Styling API
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
## Styling API
|
|
@@ -48,6 +48,8 @@ If you want to override this in your app and handle things like scroll and focus
|
|
|
48
48
|
</script>
|
|
49
49
|
```
|
|
50
50
|
|
|
51
|
+
## Styling API
|
|
52
|
+
|
|
51
53
|
## `<w-pagination>` API
|
|
52
54
|
|
|
53
55
|
Unless otherwise noted all properties are HTML attributes (as opposed to JavaScript object properties).
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
## Styling API
|
package/dist/docs/pill/pill.md
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
## Styling API
|
package/dist/docs/radio/radio.md
CHANGED
|
@@ -158,6 +158,8 @@ The `readonly` boolean attribute makes the selection immutable. Unlike disabled
|
|
|
158
158
|
|
|
159
159
|
</elements-example>
|
|
160
160
|
|
|
161
|
+
## Styling API
|
|
162
|
+
|
|
161
163
|
## `<w-select>` API
|
|
162
164
|
|
|
163
165
|
Unless otherwise noted all properties are HTML attributes (as opposed to JavaScript object properties).
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
## Styling API
|
|
@@ -306,6 +306,8 @@ The text field doubles as a visualization of the exact value, which is difficult
|
|
|
306
306
|
|
|
307
307
|
</elements-example>
|
|
308
308
|
|
|
309
|
+
## Styling API
|
|
310
|
+
|
|
309
311
|
## `<w-slider>` API
|
|
310
312
|
|
|
311
313
|
Unless otherwise noted all properties are HTML attributes (as opposed to JavaScript object properties).
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
## Styling API
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
## Styling API
|
|
@@ -103,6 +103,8 @@ Each `<w-step>` can be marked as `active` or `completed` to indicate progress. T
|
|
|
103
103
|
|
|
104
104
|
</elements-example>
|
|
105
105
|
|
|
106
|
+
## Styling API
|
|
107
|
+
|
|
106
108
|
## `<w-step-indicator>` API
|
|
107
109
|
|
|
108
110
|
Unless otherwise noted all properties are HTML attributes (as opposed to JavaScript object properties).
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
## Styling API
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
## Styling API
|
|
@@ -34,6 +34,8 @@ The internal control is rendered as a native `button` with `role="switch"` and `
|
|
|
34
34
|
|
|
35
35
|
</elements-example>
|
|
36
36
|
|
|
37
|
+
## Styling API
|
|
38
|
+
|
|
37
39
|
## `<w-switch>` API
|
|
38
40
|
|
|
39
41
|
Unless otherwise noted all properties are HTML attributes (as opposed to JavaScript object properties).
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
## Styling API
|
package/dist/docs/tabs/tabs.md
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
## Styling API
|
|
@@ -111,6 +111,8 @@ Makes the textarea content immutable while remaining focusable. The contents can
|
|
|
111
111
|
|
|
112
112
|
</elements-example>
|
|
113
113
|
|
|
114
|
+
## Styling API
|
|
115
|
+
|
|
114
116
|
## `<w-textarea>` API
|
|
115
117
|
|
|
116
118
|
Unless otherwise noted all properties are HTML attributes (as opposed to JavaScript object properties).
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
## Styling API
|
|
@@ -181,6 +181,8 @@ The readonly boolean attribute makes the w-textfield's text content immutable. U
|
|
|
181
181
|
|
|
182
182
|
</elements-example>
|
|
183
183
|
|
|
184
|
+
## Styling API
|
|
185
|
+
|
|
184
186
|
## `<w-textfield>` API
|
|
185
187
|
|
|
186
188
|
Unless otherwise noted all properties are HTML attributes (as opposed to JavaScript object properties).
|