@warp-ds/elements 2.10.0-next.11 → 2.10.0-next.12
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/dist/custom-elements.json +211 -189
- package/dist/docs/badge/api.md +4 -4
- package/dist/docs/badge/badge.md +4 -4
- package/dist/docs/button/api.md +24 -24
- package/dist/docs/button/button.md +24 -24
- package/dist/docs/checkbox/api.md +2 -2
- package/dist/docs/checkbox/checkbox.md +2 -2
- package/dist/docs/checkbox-group/api.md +6 -6
- package/dist/docs/checkbox-group/checkbox-group.md +6 -6
- package/dist/docs/datepicker/api.md +8 -8
- package/dist/docs/datepicker/datepicker.md +8 -8
- package/dist/docs/expandable/api.md +6 -6
- package/dist/docs/expandable/expandable.md +6 -6
- package/dist/docs/icon/api.md +4 -4
- package/dist/docs/icon/icon.md +4 -4
- package/dist/docs/link/api.md +10 -10
- package/dist/docs/link/link.md +10 -10
- package/dist/docs/modal/api.md +2 -2
- package/dist/docs/modal/modal.md +2 -2
- package/dist/docs/pagination/api.md +4 -4
- package/dist/docs/pagination/pagination.md +4 -4
- package/dist/docs/pill/api.md +8 -8
- package/dist/docs/pill/pill.md +8 -8
- package/dist/docs/select/api.md +10 -10
- package/dist/docs/select/select.md +10 -10
- package/dist/docs/slider/api.md +22 -22
- package/dist/docs/slider/slider.md +22 -22
- package/dist/docs/slider-thumb/api.md +12 -12
- package/dist/docs/slider-thumb/slider-thumb.md +12 -12
- package/dist/docs/tabs/api.md +2 -2
- package/dist/docs/tabs/tabs.md +2 -2
- package/dist/docs/textarea/api.md +14 -14
- package/dist/docs/textarea/textarea.md +14 -14
- package/dist/docs/textfield/api.md +34 -34
- package/dist/docs/textfield/textfield.md +34 -34
- package/dist/packages/affix/affix.d.ts +1 -1
- package/dist/packages/affix/affix.js +1 -1
- package/dist/packages/affix/affix.js.map +4 -4
- package/dist/packages/affix/styles.js +2 -2
- package/dist/packages/alert/alert.js +3 -3
- package/dist/packages/alert/alert.js.map +3 -3
- package/dist/packages/alert/styles.js +2 -2
- package/dist/packages/attention/attention.js +2 -2
- package/dist/packages/attention/attention.js.map +4 -4
- package/dist/packages/attention/attention.stories.js +1 -1
- package/dist/packages/attention/styles.js +2 -2
- package/dist/packages/badge/badge.d.ts +2 -2
- package/dist/packages/badge/badge.js +1 -1
- package/dist/packages/badge/badge.js.map +3 -3
- package/dist/packages/badge/styles.js +2 -2
- package/dist/packages/box/box.js +2 -2
- package/dist/packages/box/box.js.map +3 -3
- package/dist/packages/box/styles.js +2 -2
- package/dist/packages/breadcrumbs/breadcrumbs.d.ts +1 -2
- package/dist/packages/breadcrumbs/breadcrumbs.js +3 -3
- package/dist/packages/breadcrumbs/breadcrumbs.js.map +4 -4
- package/dist/packages/breadcrumbs/breadcrumbs.react.stories.d.ts +1 -1
- package/dist/packages/breadcrumbs/styles.js +2 -2
- package/dist/packages/button/button.d.ts +11 -11
- package/dist/packages/button/button.js +1 -1
- package/dist/packages/button/button.js.map +3 -3
- package/dist/packages/button/button.react.stories.d.ts +2 -2
- package/dist/packages/button/react.d.ts +1 -1
- package/dist/packages/card/card.js +2 -2
- package/dist/packages/card/card.js.map +4 -4
- package/dist/packages/card/styles.js +2 -2
- package/dist/packages/checkbox/checkbox.d.ts +2 -2
- package/dist/packages/checkbox/checkbox.js.map +2 -2
- package/dist/packages/checkbox-group/checkbox-group.d.ts +4 -4
- package/dist/packages/checkbox-group/checkbox-group.js.map +2 -2
- package/dist/packages/combobox/combobox.js +10 -11
- package/dist/packages/combobox/combobox.js.map +4 -4
- package/dist/packages/combobox/combobox.react.stories.d.ts +26 -10
- package/dist/packages/combobox/react.d.ts +13 -5
- package/dist/packages/combobox/styles.js +2 -3
- package/dist/packages/datepicker/datepicker.d.ts +5 -5
- package/dist/packages/datepicker/datepicker.js +12 -12
- package/dist/packages/datepicker/datepicker.js.map +3 -3
- package/dist/packages/datepicker/datepicker.react.stories.d.ts +12 -12
- package/dist/packages/datepicker/react.d.ts +6 -6
- package/dist/packages/expandable/expandable.d.ts +3 -3
- package/dist/packages/expandable/expandable.js +11 -11
- package/dist/packages/expandable/expandable.js.map +3 -3
- package/dist/packages/expandable/styles.js +2 -2
- package/dist/packages/icon/icon.d.ts +1 -1
- package/dist/packages/icon/icon.js +2 -2
- package/dist/packages/icon/icon.js.map +1 -1
- package/dist/packages/icon/icon.react.stories.d.ts +1 -1
- package/dist/packages/icon/icon.react.stories.js +2 -0
- package/dist/packages/icon/icon.stories.d.ts +7 -30
- package/dist/packages/icon/icon.stories.js +11 -2
- package/dist/packages/link/link.d.ts +5 -5
- package/dist/packages/link/link.js.map +1 -1
- package/dist/packages/modal/modal.d.ts +1 -1
- package/dist/packages/modal/modal.js.map +2 -2
- package/dist/packages/modal/modal.react.stories.d.ts +4 -4
- package/dist/packages/modal/react.d.ts +4 -4
- package/dist/packages/modal/util.js +3 -1
- package/dist/packages/modal-footer/modal-footer.js.map +2 -2
- package/dist/packages/modal-header/modal-header.js +4 -4
- package/dist/packages/modal-header/modal-header.js.map +3 -3
- package/dist/packages/modal-header/react.d.ts +2 -2
- package/dist/packages/page-indicator/page-indicator.d.ts +0 -4
- package/dist/packages/page-indicator/page-indicator.js +6 -6
- package/dist/packages/page-indicator/page-indicator.js.map +4 -4
- package/dist/packages/page-indicator/page-indicator.stories.d.ts +8 -26
- package/dist/packages/page-indicator/page-indicator.stories.js +9 -7
- package/dist/packages/pagination/pagination.d.ts +8 -9
- package/dist/packages/pagination/pagination.js +11 -11
- package/dist/packages/pagination/pagination.js.map +4 -4
- package/dist/packages/pagination/pagination.react.stories.d.ts +6 -6
- package/dist/packages/pagination/pagination.test.js +4 -7
- package/dist/packages/pagination/react.d.ts +3 -3
- package/dist/packages/pagination/styles.js +2 -2
- package/dist/packages/pill/pill.d.ts +4 -4
- package/dist/packages/pill/pill.js +3 -3
- package/dist/packages/pill/pill.js.map +4 -4
- package/dist/packages/pill/pill.react.stories.d.ts +8 -8
- package/dist/packages/pill/react.d.ts +4 -4
- package/dist/packages/pill/styles.js +2 -2
- package/dist/packages/radio/form-associated-element.d.ts +1 -1
- package/dist/packages/radio/radio.d.ts +1 -1
- package/dist/packages/radio-group/radio-group.d.ts +2 -2
- package/dist/packages/radio-group/radio-group.js.map +1 -1
- package/dist/packages/radio-group/react.d.ts +4 -4
- package/dist/packages/select/react.d.ts +3 -3
- package/dist/packages/select/select.d.ts +6 -7
- package/dist/packages/select/select.js +5 -5
- package/dist/packages/select/select.js.map +4 -4
- package/dist/packages/select/select.react.stories.d.ts +7 -7
- package/dist/packages/select/select.react.stories.js +15 -10
- package/dist/packages/select/styles.js +2 -2
- package/dist/packages/slider/slider.d.ts +14 -14
- package/dist/packages/slider/slider.js +6 -6
- package/dist/packages/slider/slider.js.map +3 -3
- package/dist/packages/slider/slider.stories.js +1 -0
- package/dist/packages/slider-thumb/react.d.ts +2 -2
- package/dist/packages/slider-thumb/slider-thumb.d.ts +14 -14
- package/dist/packages/slider-thumb/slider-thumb.js +2 -2
- package/dist/packages/slider-thumb/slider-thumb.js.map +3 -3
- package/dist/packages/slider-thumb/styles.d.ts +1 -0
- package/dist/packages/slider-thumb/styles.js +2 -0
- package/dist/packages/step/step.js +3 -3
- package/dist/packages/step/step.js.map +4 -4
- package/dist/packages/step-indicator/step-indicator.js +3 -3
- package/dist/packages/step-indicator/step-indicator.js.map +3 -3
- package/dist/packages/step-indicator/styles.js +2 -2
- package/dist/packages/switch/styles.js +2 -2
- package/dist/packages/switch/switch.d.ts +3 -3
- package/dist/packages/switch/switch.js +3 -3
- package/dist/packages/switch/switch.js.map +3 -3
- package/dist/packages/tab/react.d.ts +4 -4
- package/dist/packages/tab/tab.d.ts +1 -1
- package/dist/packages/tab/tab.js +4 -4
- package/dist/packages/tab/tab.js.map +3 -3
- package/dist/packages/tab-panel/tab-panel.js +1 -1
- package/dist/packages/tab-panel/tab-panel.js.map +3 -3
- package/dist/packages/tabs/styles.js +2 -2
- package/dist/packages/tabs/tabs.d.ts +4 -3
- package/dist/packages/tabs/tabs.js +1 -1
- package/dist/packages/tabs/tabs.js.map +3 -3
- package/dist/packages/textarea/react.d.ts +9 -9
- package/dist/packages/textarea/styles.js +2 -2
- package/dist/packages/textarea/textarea.a11y.test.js +1 -1
- package/dist/packages/textarea/textarea.d.ts +10 -10
- package/dist/packages/textarea/textarea.js +6 -6
- package/dist/packages/textarea/textarea.js.map +4 -4
- package/dist/packages/textarea/textarea.react.stories.d.ts +18 -18
- package/dist/packages/textfield/react.d.ts +9 -9
- package/dist/packages/textfield/styles.js +2 -2
- package/dist/packages/textfield/textfield.d.ts +22 -22
- package/dist/packages/textfield/textfield.js +4 -4
- package/dist/packages/textfield/textfield.js.map +3 -3
- package/dist/packages/textfield/textfield.react.stories.d.ts +18 -18
- package/dist/packages/toast/api.d.ts +1 -1
- package/dist/packages/toast/toast.d.ts +1 -1
- package/dist/packages/toast/toast.js +3 -3
- package/dist/packages/toast/toast.js.map +3 -3
- package/dist/packages/toast-container/styles.d.ts +1 -0
- package/dist/packages/toast-container/styles.js +2 -0
- 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 +170 -159
- package/eik/index.js +21 -22
- package/package.json +3 -3
package/dist/docs/badge/api.md
CHANGED
|
@@ -6,8 +6,8 @@ Unless otherwise noted all properties are HTML attributes (as opposed to JavaScr
|
|
|
6
6
|
|
|
7
7
|
| Name | Type | Default | Summary |
|
|
8
8
|
|-|-|-|-|
|
|
9
|
-
| position | `'top-left' \| 'top-right' \| 'bottom-right' \| 'bottom-left'` | `-` | Positions the badge in a corner of a parent element. |
|
|
10
|
-
| variant | `'neutral' \| 'info' \| 'positive' \| 'warning' \| 'negative' \| 'disabled' \| 'price' \| 'sponsored'` | `-` | Controls the badge color treatment. |
|
|
9
|
+
| position | `'top-left' \| 'top-right' \| 'bottom-right' \| 'bottom-left' \| undefined` | `-` | Positions the badge in a corner of a parent element. |
|
|
10
|
+
| variant | `'neutral' \| 'info' \| 'positive' \| 'warning' \| 'negative' \| 'disabled' \| 'price' \| 'sponsored' \| undefined` | `-` | Controls the badge color treatment. |
|
|
11
11
|
|
|
12
12
|
### Property Details
|
|
13
13
|
|
|
@@ -17,7 +17,7 @@ Positions the badge in a corner of a parent element.
|
|
|
17
17
|
Use this with a parent element that has `position: relative`. When set, the badge uses absolute positioning and adjusts its corner radii so it sits flush against the selected corner.
|
|
18
18
|
Use this with a parent element that has `position: relative`. Accepted values are `top-left`, `top-right`, `bottom-right`, and `bottom-left`.
|
|
19
19
|
|
|
20
|
-
- Type: `'top-left' | 'top-right' | 'bottom-right' | 'bottom-left'`
|
|
20
|
+
- Type: `'top-left' | 'top-right' | 'bottom-right' | 'bottom-left' | undefined`
|
|
21
21
|
- Default: `-`
|
|
22
22
|
|
|
23
23
|
#### variant
|
|
@@ -26,6 +26,6 @@ Controls the badge color treatment.
|
|
|
26
26
|
If omitted, the badge uses neutral styling without reflecting a `variant` attribute.
|
|
27
27
|
Accepted values are `neutral`, `info`, `positive`, `warning`, `negative`, `disabled`, `price`, and `sponsored`. If omitted, the badge uses neutral styling without reflecting a `variant` attribute.
|
|
28
28
|
|
|
29
|
-
- Type: `'neutral' | 'info' | 'positive' | 'warning' | 'negative' | 'disabled' | 'price' | 'sponsored'`
|
|
29
|
+
- Type: `'neutral' | 'info' | 'positive' | 'warning' | 'negative' | 'disabled' | 'price' | 'sponsored' | undefined`
|
|
30
30
|
- Default: `-`
|
|
31
31
|
|
package/dist/docs/badge/badge.md
CHANGED
|
@@ -186,8 +186,8 @@ Unless otherwise noted all properties are HTML attributes (as opposed to JavaScr
|
|
|
186
186
|
|
|
187
187
|
| Name | Type | Default | Summary |
|
|
188
188
|
|-|-|-|-|
|
|
189
|
-
| position | `'top-left' \| 'top-right' \| 'bottom-right' \| 'bottom-left'` | `-` | Positions the badge in a corner of a parent element. |
|
|
190
|
-
| variant | `'neutral' \| 'info' \| 'positive' \| 'warning' \| 'negative' \| 'disabled' \| 'price' \| 'sponsored'` | `-` | Controls the badge color treatment. |
|
|
189
|
+
| position | `'top-left' \| 'top-right' \| 'bottom-right' \| 'bottom-left' \| undefined` | `-` | Positions the badge in a corner of a parent element. |
|
|
190
|
+
| variant | `'neutral' \| 'info' \| 'positive' \| 'warning' \| 'negative' \| 'disabled' \| 'price' \| 'sponsored' \| undefined` | `-` | Controls the badge color treatment. |
|
|
191
191
|
|
|
192
192
|
### Property Details
|
|
193
193
|
|
|
@@ -197,7 +197,7 @@ Positions the badge in a corner of a parent element.
|
|
|
197
197
|
Use this with a parent element that has `position: relative`. When set, the badge uses absolute positioning and adjusts its corner radii so it sits flush against the selected corner.
|
|
198
198
|
Use this with a parent element that has `position: relative`. Accepted values are `top-left`, `top-right`, `bottom-right`, and `bottom-left`.
|
|
199
199
|
|
|
200
|
-
- Type: `'top-left' | 'top-right' | 'bottom-right' | 'bottom-left'`
|
|
200
|
+
- Type: `'top-left' | 'top-right' | 'bottom-right' | 'bottom-left' | undefined`
|
|
201
201
|
- Default: `-`
|
|
202
202
|
|
|
203
203
|
#### variant
|
|
@@ -206,6 +206,6 @@ Controls the badge color treatment.
|
|
|
206
206
|
If omitted, the badge uses neutral styling without reflecting a `variant` attribute.
|
|
207
207
|
Accepted values are `neutral`, `info`, `positive`, `warning`, `negative`, `disabled`, `price`, and `sponsored`. If omitted, the badge uses neutral styling without reflecting a `variant` attribute.
|
|
208
208
|
|
|
209
|
-
- Type: `'neutral' | 'info' | 'positive' | 'warning' | 'negative' | 'disabled' | 'price' | 'sponsored'`
|
|
209
|
+
- Type: `'neutral' | 'info' | 'positive' | 'warning' | 'negative' | 'disabled' | 'price' | 'sponsored' | undefined`
|
|
210
210
|
- Default: `-`
|
|
211
211
|
|
package/dist/docs/button/api.md
CHANGED
|
@@ -7,23 +7,23 @@ Unless otherwise noted all properties are HTML attributes (as opposed to JavaScr
|
|
|
7
7
|
| Name | Type | Default | Summary |
|
|
8
8
|
|-|-|-|-|
|
|
9
9
|
| autofocus | `boolean` | `false` | Focuses the button when it is first rendered. |
|
|
10
|
-
| button-class | `string` | `-` | Deprecated class applied to the internal control. **Deprecated**: This class is applied inside the shadow DOM and is unlikely to have the desired effect. Use attributes or CSS variables to customize the appearance of the button. |
|
|
11
|
-
| command | `string` | `-` | The [command HTML attribute](https://developer.mozilla.org/en-US/docs/Web/API/Invoker_Commands_API#html_attributes) for Invoker Commands. |
|
|
12
|
-
| commandfor | `string` | `-` | The [commandfor HTML attribute](https://developer.mozilla.org/en-US/docs/Web/API/Invoker_Commands_API#html_attributes) for Invoker Commands. |
|
|
10
|
+
| button-class | `string \| undefined` | `-` | Deprecated class applied to the internal control. **Deprecated**: This class is applied inside the shadow DOM and is unlikely to have the desired effect. Use attributes or CSS variables to customize the appearance of the button. |
|
|
11
|
+
| command | `string \| undefined` | `-` | The [command HTML attribute](https://developer.mozilla.org/en-US/docs/Web/API/Invoker_Commands_API#html_attributes) for Invoker Commands. |
|
|
12
|
+
| commandfor | `string \| undefined` | `-` | The [commandfor HTML attribute](https://developer.mozilla.org/en-US/docs/Web/API/Invoker_Commands_API#html_attributes) for Invoker Commands. |
|
|
13
13
|
| disabled | `boolean` | `false` | Visually disables the button. |
|
|
14
14
|
| full-width | `boolean` | `false` | Makes the button fill its parent width. |
|
|
15
|
-
| href | `string` | `-` | URL for rendering the button as a link. |
|
|
15
|
+
| href | `string \| undefined` | `-` | URL for rendering the button as a link. |
|
|
16
16
|
| icon-only | `boolean` | `false` | Marks the button as icon-only. |
|
|
17
17
|
| loading | `boolean` | `false` | Shows the loading state. |
|
|
18
|
-
| name | `string` | `-` | Form control name. |
|
|
18
|
+
| name | `string \| undefined` | `-` | Form control name. |
|
|
19
19
|
| quiet | `boolean` | `false` | Deprecated quiet visual treatment flag. **Deprecated**: Use `variant="quiet"` instead |
|
|
20
|
-
| rel | `string` | `-` | Link relationship. |
|
|
20
|
+
| rel | `string \| undefined` | `-` | Link relationship. |
|
|
21
21
|
| shadowRootOptions (JS only) | `object` | `{ ...LitElement.shadowRootOptions, delegatesFocus: true, }` | Shadow root configuration. |
|
|
22
22
|
| small | `boolean` | `false` | Renders the compact button size. |
|
|
23
|
-
| target | `string` | `-` | Link browsing context. |
|
|
24
|
-
| type | [`ButtonType`](#buttontype) | `-` | Native button type. |
|
|
25
|
-
| value | `string` | `-` | Form control value. |
|
|
26
|
-
| variant | [`ButtonVariant`](#buttonvariant) | `-` | Visual style of the button. |
|
|
23
|
+
| target | `string \| undefined` | `-` | Link browsing context. |
|
|
24
|
+
| type | [`ButtonType \| undefined`](#buttontype-undefined) | `-` | Native button type. |
|
|
25
|
+
| value | `string \| undefined` | `-` | Form control value. |
|
|
26
|
+
| variant | [`ButtonVariant \| undefined`](#buttonvariant-undefined) | `-` | Visual style of the button. |
|
|
27
27
|
|
|
28
28
|
### Property Details
|
|
29
29
|
|
|
@@ -42,21 +42,21 @@ Applies only when the component renders a native button. Link buttons with `href
|
|
|
42
42
|
Deprecated class applied to the internal control
|
|
43
43
|
This class is applied inside the shadow DOM and is unlikely to have the desired effect. Use attributes or CSS variables to customize the button appearance.
|
|
44
44
|
|
|
45
|
-
- Type: `string`
|
|
45
|
+
- Type: `string | undefined`
|
|
46
46
|
- Default: `-`
|
|
47
47
|
|
|
48
48
|
#### command
|
|
49
49
|
|
|
50
50
|
The [command HTML attribute](https://developer.mozilla.org/en-US/docs/Web/API/Invoker_Commands_API#html_attributes) for Invoker Commands.
|
|
51
51
|
|
|
52
|
-
- Type: `string`
|
|
52
|
+
- Type: `string | undefined`
|
|
53
53
|
- Default: `-`
|
|
54
54
|
|
|
55
55
|
#### commandfor
|
|
56
56
|
|
|
57
57
|
The [commandfor HTML attribute](https://developer.mozilla.org/en-US/docs/Web/API/Invoker_Commands_API#html_attributes) for Invoker Commands.
|
|
58
58
|
|
|
59
|
-
- Type: `string`
|
|
59
|
+
- Type: `string | undefined`
|
|
60
60
|
- Default: `-`
|
|
61
61
|
|
|
62
62
|
#### disabled
|
|
@@ -80,7 +80,7 @@ Useful in narrow layouts where the button should span the available inline space
|
|
|
80
80
|
URL for rendering the button as a link.
|
|
81
81
|
When set, the component renders `w-link` instead of a native `button`.
|
|
82
82
|
|
|
83
|
-
- Type: `string`
|
|
83
|
+
- Type: `string | undefined`
|
|
84
84
|
- Default: `-`
|
|
85
85
|
|
|
86
86
|
#### icon-only
|
|
@@ -104,7 +104,7 @@ Use after the user has triggered an action and the action is in progress.
|
|
|
104
104
|
Form control name.
|
|
105
105
|
Used when the button participates in form handling.
|
|
106
106
|
|
|
107
|
-
- Type: `string`
|
|
107
|
+
- Type: `string | undefined`
|
|
108
108
|
- Default: `-`
|
|
109
109
|
|
|
110
110
|
#### quiet
|
|
@@ -122,7 +122,7 @@ Use `variant="quiet"` instead.
|
|
|
122
122
|
Link relationship.
|
|
123
123
|
Passed to the rendered link when `href` is set. If `target="_blank"` is set and `rel` is omitted, `noopener` is used.
|
|
124
124
|
|
|
125
|
-
- Type: `string`
|
|
125
|
+
- Type: `string | undefined`
|
|
126
126
|
- Default: `-`
|
|
127
127
|
|
|
128
128
|
#### shadowRootOptions (JS only)
|
|
@@ -146,7 +146,7 @@ Use this in dense layouts where the default button size is too large.
|
|
|
146
146
|
Link browsing context.
|
|
147
147
|
Passed to the rendered link when `href` is set.
|
|
148
148
|
|
|
149
|
-
- Type: `string`
|
|
149
|
+
- Type: `string | undefined`
|
|
150
150
|
- Default: `-`
|
|
151
151
|
|
|
152
152
|
#### type
|
|
@@ -154,7 +154,7 @@ Passed to the rendered link when `href` is set.
|
|
|
154
154
|
Native button type.
|
|
155
155
|
Controls whether the internal button behaves as a regular button, submits a form, or resets a form. Defaults to `button`.
|
|
156
156
|
|
|
157
|
-
- Type: [`ButtonType`](#buttontype)
|
|
157
|
+
- Type: [`ButtonType | undefined`](#buttontype-undefined)
|
|
158
158
|
- Default: `-`
|
|
159
159
|
|
|
160
160
|
#### value
|
|
@@ -162,7 +162,7 @@ Controls whether the internal button behaves as a regular button, submits a form
|
|
|
162
162
|
Form control value.
|
|
163
163
|
Used with `name` when the button participates in form handling. Resets to its initial value when the form is reset.
|
|
164
164
|
|
|
165
|
-
- Type: `string`
|
|
165
|
+
- Type: `string | undefined`
|
|
166
166
|
- Default: `-`
|
|
167
167
|
|
|
168
168
|
#### variant
|
|
@@ -170,16 +170,16 @@ Used with `name` when the button participates in form handling. Resets to its in
|
|
|
170
170
|
Visual style of the button.
|
|
171
171
|
Defaults to `secondary`. Use the variant that matches the action priority, risk, and placement.
|
|
172
172
|
|
|
173
|
-
- Type: [`ButtonVariant`](#buttonvariant)
|
|
173
|
+
- Type: [`ButtonVariant | undefined`](#buttonvariant-undefined)
|
|
174
174
|
- Default: `-`
|
|
175
175
|
|
|
176
176
|
### Types
|
|
177
177
|
|
|
178
|
-
#### ButtonType
|
|
178
|
+
#### ButtonType | undefined
|
|
179
179
|
|
|
180
|
-
`'button' | 'submit' | 'reset'`
|
|
180
|
+
`'button' | 'submit' | 'reset' | undefined`
|
|
181
181
|
|
|
182
|
-
#### ButtonVariant
|
|
182
|
+
#### ButtonVariant | undefined
|
|
183
183
|
|
|
184
|
-
`'negative' | 'primary' | 'secondary' | 'negativeQuiet' | 'utility' | 'quiet' | 'utilityQuiet' | 'overlay' | 'overlayInverted' | 'overlayQuiet' | 'overlayInvertedQuiet' | 'pill' | 'link'`
|
|
184
|
+
`'negative' | 'primary' | 'secondary' | 'negativeQuiet' | 'utility' | 'quiet' | 'utilityQuiet' | 'overlay' | 'overlayInverted' | 'overlayQuiet' | 'overlayInvertedQuiet' | 'pill' | 'link' | undefined`
|
|
185
185
|
|
|
@@ -350,23 +350,23 @@ Unless otherwise noted all properties are HTML attributes (as opposed to JavaScr
|
|
|
350
350
|
| Name | Type | Default | Summary |
|
|
351
351
|
|-|-|-|-|
|
|
352
352
|
| autofocus | `boolean` | `false` | Focuses the button when it is first rendered. |
|
|
353
|
-
| button-class | `string` | `-` | Deprecated class applied to the internal control. **Deprecated**: This class is applied inside the shadow DOM and is unlikely to have the desired effect. Use attributes or CSS variables to customize the appearance of the button. |
|
|
354
|
-
| command | `string` | `-` | The [command HTML attribute](https://developer.mozilla.org/en-US/docs/Web/API/Invoker_Commands_API#html_attributes) for Invoker Commands. |
|
|
355
|
-
| commandfor | `string` | `-` | The [commandfor HTML attribute](https://developer.mozilla.org/en-US/docs/Web/API/Invoker_Commands_API#html_attributes) for Invoker Commands. |
|
|
353
|
+
| button-class | `string \| undefined` | `-` | Deprecated class applied to the internal control. **Deprecated**: This class is applied inside the shadow DOM and is unlikely to have the desired effect. Use attributes or CSS variables to customize the appearance of the button. |
|
|
354
|
+
| command | `string \| undefined` | `-` | The [command HTML attribute](https://developer.mozilla.org/en-US/docs/Web/API/Invoker_Commands_API#html_attributes) for Invoker Commands. |
|
|
355
|
+
| commandfor | `string \| undefined` | `-` | The [commandfor HTML attribute](https://developer.mozilla.org/en-US/docs/Web/API/Invoker_Commands_API#html_attributes) for Invoker Commands. |
|
|
356
356
|
| disabled | `boolean` | `false` | Visually disables the button. |
|
|
357
357
|
| full-width | `boolean` | `false` | Makes the button fill its parent width. |
|
|
358
|
-
| href | `string` | `-` | URL for rendering the button as a link. |
|
|
358
|
+
| href | `string \| undefined` | `-` | URL for rendering the button as a link. |
|
|
359
359
|
| icon-only | `boolean` | `false` | Marks the button as icon-only. |
|
|
360
360
|
| loading | `boolean` | `false` | Shows the loading state. |
|
|
361
|
-
| name | `string` | `-` | Form control name. |
|
|
361
|
+
| name | `string \| undefined` | `-` | Form control name. |
|
|
362
362
|
| quiet | `boolean` | `false` | Deprecated quiet visual treatment flag. **Deprecated**: Use `variant="quiet"` instead |
|
|
363
|
-
| rel | `string` | `-` | Link relationship. |
|
|
363
|
+
| rel | `string \| undefined` | `-` | Link relationship. |
|
|
364
364
|
| shadowRootOptions (JS only) | `object` | `{ ...LitElement.shadowRootOptions, delegatesFocus: true, }` | Shadow root configuration. |
|
|
365
365
|
| small | `boolean` | `false` | Renders the compact button size. |
|
|
366
|
-
| target | `string` | `-` | Link browsing context. |
|
|
367
|
-
| type | [`ButtonType`](#buttontype) | `-` | Native button type. |
|
|
368
|
-
| value | `string` | `-` | Form control value. |
|
|
369
|
-
| variant | [`ButtonVariant`](#buttonvariant) | `-` | Visual style of the button. |
|
|
366
|
+
| target | `string \| undefined` | `-` | Link browsing context. |
|
|
367
|
+
| type | [`ButtonType \| undefined`](#buttontype-undefined) | `-` | Native button type. |
|
|
368
|
+
| value | `string \| undefined` | `-` | Form control value. |
|
|
369
|
+
| variant | [`ButtonVariant \| undefined`](#buttonvariant-undefined) | `-` | Visual style of the button. |
|
|
370
370
|
|
|
371
371
|
### Property Details
|
|
372
372
|
|
|
@@ -385,21 +385,21 @@ Applies only when the component renders a native button. Link buttons with `href
|
|
|
385
385
|
Deprecated class applied to the internal control
|
|
386
386
|
This class is applied inside the shadow DOM and is unlikely to have the desired effect. Use attributes or CSS variables to customize the button appearance.
|
|
387
387
|
|
|
388
|
-
- Type: `string`
|
|
388
|
+
- Type: `string | undefined`
|
|
389
389
|
- Default: `-`
|
|
390
390
|
|
|
391
391
|
#### command
|
|
392
392
|
|
|
393
393
|
The [command HTML attribute](https://developer.mozilla.org/en-US/docs/Web/API/Invoker_Commands_API#html_attributes) for Invoker Commands.
|
|
394
394
|
|
|
395
|
-
- Type: `string`
|
|
395
|
+
- Type: `string | undefined`
|
|
396
396
|
- Default: `-`
|
|
397
397
|
|
|
398
398
|
#### commandfor
|
|
399
399
|
|
|
400
400
|
The [commandfor HTML attribute](https://developer.mozilla.org/en-US/docs/Web/API/Invoker_Commands_API#html_attributes) for Invoker Commands.
|
|
401
401
|
|
|
402
|
-
- Type: `string`
|
|
402
|
+
- Type: `string | undefined`
|
|
403
403
|
- Default: `-`
|
|
404
404
|
|
|
405
405
|
#### disabled
|
|
@@ -423,7 +423,7 @@ Useful in narrow layouts where the button should span the available inline space
|
|
|
423
423
|
URL for rendering the button as a link.
|
|
424
424
|
When set, the component renders `w-link` instead of a native `button`.
|
|
425
425
|
|
|
426
|
-
- Type: `string`
|
|
426
|
+
- Type: `string | undefined`
|
|
427
427
|
- Default: `-`
|
|
428
428
|
|
|
429
429
|
#### icon-only
|
|
@@ -447,7 +447,7 @@ Use after the user has triggered an action and the action is in progress.
|
|
|
447
447
|
Form control name.
|
|
448
448
|
Used when the button participates in form handling.
|
|
449
449
|
|
|
450
|
-
- Type: `string`
|
|
450
|
+
- Type: `string | undefined`
|
|
451
451
|
- Default: `-`
|
|
452
452
|
|
|
453
453
|
#### quiet
|
|
@@ -465,7 +465,7 @@ Use `variant="quiet"` instead.
|
|
|
465
465
|
Link relationship.
|
|
466
466
|
Passed to the rendered link when `href` is set. If `target="_blank"` is set and `rel` is omitted, `noopener` is used.
|
|
467
467
|
|
|
468
|
-
- Type: `string`
|
|
468
|
+
- Type: `string | undefined`
|
|
469
469
|
- Default: `-`
|
|
470
470
|
|
|
471
471
|
#### shadowRootOptions (JS only)
|
|
@@ -489,7 +489,7 @@ Use this in dense layouts where the default button size is too large.
|
|
|
489
489
|
Link browsing context.
|
|
490
490
|
Passed to the rendered link when `href` is set.
|
|
491
491
|
|
|
492
|
-
- Type: `string`
|
|
492
|
+
- Type: `string | undefined`
|
|
493
493
|
- Default: `-`
|
|
494
494
|
|
|
495
495
|
#### type
|
|
@@ -497,7 +497,7 @@ Passed to the rendered link when `href` is set.
|
|
|
497
497
|
Native button type.
|
|
498
498
|
Controls whether the internal button behaves as a regular button, submits a form, or resets a form. Defaults to `button`.
|
|
499
499
|
|
|
500
|
-
- Type: [`ButtonType`](#buttontype)
|
|
500
|
+
- Type: [`ButtonType | undefined`](#buttontype-undefined)
|
|
501
501
|
- Default: `-`
|
|
502
502
|
|
|
503
503
|
#### value
|
|
@@ -505,7 +505,7 @@ Controls whether the internal button behaves as a regular button, submits a form
|
|
|
505
505
|
Form control value.
|
|
506
506
|
Used with `name` when the button participates in form handling. Resets to its initial value when the form is reset.
|
|
507
507
|
|
|
508
|
-
- Type: `string`
|
|
508
|
+
- Type: `string | undefined`
|
|
509
509
|
- Default: `-`
|
|
510
510
|
|
|
511
511
|
#### variant
|
|
@@ -513,16 +513,16 @@ Used with `name` when the button participates in form handling. Resets to its in
|
|
|
513
513
|
Visual style of the button.
|
|
514
514
|
Defaults to `secondary`. Use the variant that matches the action priority, risk, and placement.
|
|
515
515
|
|
|
516
|
-
- Type: [`ButtonVariant`](#buttonvariant)
|
|
516
|
+
- Type: [`ButtonVariant | undefined`](#buttonvariant-undefined)
|
|
517
517
|
- Default: `-`
|
|
518
518
|
|
|
519
519
|
### Types
|
|
520
520
|
|
|
521
|
-
#### ButtonType
|
|
521
|
+
#### ButtonType | undefined
|
|
522
522
|
|
|
523
|
-
`'button' | 'submit' | 'reset'`
|
|
523
|
+
`'button' | 'submit' | 'reset' | undefined`
|
|
524
524
|
|
|
525
|
-
#### ButtonVariant
|
|
525
|
+
#### ButtonVariant | undefined
|
|
526
526
|
|
|
527
|
-
`'negative' | 'primary' | 'secondary' | 'negativeQuiet' | 'utility' | 'quiet' | 'utilityQuiet' | 'overlay' | 'overlayInverted' | 'overlayQuiet' | 'overlayInvertedQuiet' | 'pill' | 'link'`
|
|
527
|
+
`'negative' | 'primary' | 'secondary' | 'negativeQuiet' | 'utility' | 'quiet' | 'utilityQuiet' | 'overlay' | 'overlayInverted' | 'overlayQuiet' | 'overlayInvertedQuiet' | 'pill' | 'link' | undefined`
|
|
528
528
|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
| checked | `boolean` | `false` | Whether the checkbox is checked. |
|
|
9
9
|
| disabled | `boolean` | `false` | Whether the checkbox is disabled. |
|
|
10
10
|
| indeterminate | `boolean` | `false` | Whether the checkbox is visually indeterminate. |
|
|
11
|
-
| input (JS only) | `HTMLInputElement
|
|
11
|
+
| input (JS only) | `HTMLInputElement` | `-` | - |
|
|
12
12
|
| invalid | `boolean` | `false` | Whether the checkbox is visually invalid. |
|
|
13
13
|
| name | `string \| undefined` | `-` | The name of the checkbox. |
|
|
14
14
|
| required | `boolean` | `false` | Whether the checkbox must be checked before form submission. |
|
|
@@ -57,7 +57,7 @@ Use this for parent options that represent a mixed set of child selections. Clic
|
|
|
57
57
|
|
|
58
58
|
|
|
59
59
|
|
|
60
|
-
- Type: `HTMLInputElement
|
|
60
|
+
- Type: `HTMLInputElement`
|
|
61
61
|
- Default: `-`
|
|
62
62
|
|
|
63
63
|
##### invalid
|
|
@@ -14,7 +14,7 @@ Checkbox lets users select one or more options. Use it for independent yes/no ch
|
|
|
14
14
|
| checked | `boolean` | `false` | Whether the checkbox is checked. |
|
|
15
15
|
| disabled | `boolean` | `false` | Whether the checkbox is disabled. |
|
|
16
16
|
| indeterminate | `boolean` | `false` | Whether the checkbox is visually indeterminate. |
|
|
17
|
-
| input (JS only) | `HTMLInputElement
|
|
17
|
+
| input (JS only) | `HTMLInputElement` | `-` | - |
|
|
18
18
|
| invalid | `boolean` | `false` | Whether the checkbox is visually invalid. |
|
|
19
19
|
| name | `string \| undefined` | `-` | The name of the checkbox. |
|
|
20
20
|
| required | `boolean` | `false` | Whether the checkbox must be checked before form submission. |
|
|
@@ -63,7 +63,7 @@ Use this for parent options that represent a mixed set of child selections. Clic
|
|
|
63
63
|
|
|
64
64
|
|
|
65
65
|
|
|
66
|
-
- Type: `HTMLInputElement
|
|
66
|
+
- Type: `HTMLInputElement`
|
|
67
67
|
- Default: `-`
|
|
68
68
|
|
|
69
69
|
##### invalid
|
|
@@ -6,10 +6,10 @@ Unless otherwise noted all properties are HTML attributes (as opposed to JavaScr
|
|
|
6
6
|
|
|
7
7
|
| Name | Type | Default | Summary |
|
|
8
8
|
|-|-|-|-|
|
|
9
|
-
| help-text | `string` | `-` | Help text displayed below the checkbox group. |
|
|
9
|
+
| help-text | `string \| undefined` | `-` | Help text displayed below the checkbox group. |
|
|
10
10
|
| invalid | `boolean` | `false` | Whether the checkbox group is visually invalid. |
|
|
11
|
-
| label | `string` | `-` | The group label displayed above the checkboxes. |
|
|
12
|
-
| name | `string` | `-` | The name applied to child checkboxes when they do not provide one. |
|
|
11
|
+
| label | `string \| undefined` | `-` | The group label displayed above the checkboxes. |
|
|
12
|
+
| name | `string \| undefined` | `-` | The name applied to child checkboxes when they do not provide one. |
|
|
13
13
|
| optional | `boolean` | `false` | Whether to show optional text next to the label. |
|
|
14
14
|
| required | `boolean` | `false` | Whether at least one checkbox in the group must be selected. |
|
|
15
15
|
| shadowRootOptions (JS only) | `object` | `{ ...LitElement.shadowRootOptions, delegatesFocus: true, }` | - |
|
|
@@ -22,7 +22,7 @@ Help text displayed below the checkbox group.
|
|
|
22
22
|
|
|
23
23
|
Use this for supporting guidance or validation feedback. When required validation fails, the group replaces this text with the localized required message.
|
|
24
24
|
|
|
25
|
-
- Type: `string`
|
|
25
|
+
- Type: `string | undefined`
|
|
26
26
|
- Default: `-`
|
|
27
27
|
|
|
28
28
|
#### invalid
|
|
@@ -40,7 +40,7 @@ The group label displayed above the checkboxes.
|
|
|
40
40
|
|
|
41
41
|
Use this to describe the shared question or topic for the checkbox options. The label is connected to the internal group for assistive technologies.
|
|
42
42
|
|
|
43
|
-
- Type: `string`
|
|
43
|
+
- Type: `string | undefined`
|
|
44
44
|
- Default: `-`
|
|
45
45
|
|
|
46
46
|
#### name
|
|
@@ -49,7 +49,7 @@ The name applied to child checkboxes when they do not provide one.
|
|
|
49
49
|
|
|
50
50
|
Use this when the grouped checkboxes should submit values under the same form field name. Individual checkboxes can still override the group name with their own `name`.
|
|
51
51
|
|
|
52
|
-
- Type: `string`
|
|
52
|
+
- Type: `string | undefined`
|
|
53
53
|
- Default: `-`
|
|
54
54
|
|
|
55
55
|
#### optional
|
|
@@ -419,10 +419,10 @@ Unless otherwise noted all properties are HTML attributes (as opposed to JavaScr
|
|
|
419
419
|
|
|
420
420
|
| Name | Type | Default | Summary |
|
|
421
421
|
|-|-|-|-|
|
|
422
|
-
| help-text | `string` | `-` | Help text displayed below the checkbox group. |
|
|
422
|
+
| help-text | `string \| undefined` | `-` | Help text displayed below the checkbox group. |
|
|
423
423
|
| invalid | `boolean` | `false` | Whether the checkbox group is visually invalid. |
|
|
424
|
-
| label | `string` | `-` | The group label displayed above the checkboxes. |
|
|
425
|
-
| name | `string` | `-` | The name applied to child checkboxes when they do not provide one. |
|
|
424
|
+
| label | `string \| undefined` | `-` | The group label displayed above the checkboxes. |
|
|
425
|
+
| name | `string \| undefined` | `-` | The name applied to child checkboxes when they do not provide one. |
|
|
426
426
|
| optional | `boolean` | `false` | Whether to show optional text next to the label. |
|
|
427
427
|
| required | `boolean` | `false` | Whether at least one checkbox in the group must be selected. |
|
|
428
428
|
| shadowRootOptions (JS only) | `object` | `{ ...LitElement.shadowRootOptions, delegatesFocus: true, }` | - |
|
|
@@ -435,7 +435,7 @@ Help text displayed below the checkbox group.
|
|
|
435
435
|
|
|
436
436
|
Use this for supporting guidance or validation feedback. When required validation fails, the group replaces this text with the localized required message.
|
|
437
437
|
|
|
438
|
-
- Type: `string`
|
|
438
|
+
- Type: `string | undefined`
|
|
439
439
|
- Default: `-`
|
|
440
440
|
|
|
441
441
|
#### invalid
|
|
@@ -453,7 +453,7 @@ The group label displayed above the checkboxes.
|
|
|
453
453
|
|
|
454
454
|
Use this to describe the shared question or topic for the checkbox options. The label is connected to the internal group for assistive technologies.
|
|
455
455
|
|
|
456
|
-
- Type: `string`
|
|
456
|
+
- Type: `string | undefined`
|
|
457
457
|
- Default: `-`
|
|
458
458
|
|
|
459
459
|
#### name
|
|
@@ -462,7 +462,7 @@ The name applied to child checkboxes when they do not provide one.
|
|
|
462
462
|
|
|
463
463
|
Use this when the grouped checkboxes should submit values under the same form field name. Individual checkboxes can still override the group name with their own `name`.
|
|
464
464
|
|
|
465
|
-
- Type: `string`
|
|
465
|
+
- Type: `string | undefined`
|
|
466
466
|
- Default: `-`
|
|
467
467
|
|
|
468
468
|
#### optional
|
|
@@ -11,11 +11,11 @@ Unless otherwise noted all properties are HTML attributes (as opposed to JavaScr
|
|
|
11
11
|
| header-format | `string` | `'MMMM yyyy'` | The date format used in the calendar header. |
|
|
12
12
|
| input (JS only) | `HTMLInputElement` | `-` | - |
|
|
13
13
|
| isCalendarOpen (JS only) | `boolean` | `false` | - |
|
|
14
|
-
| isDayDisabled (JS only) | `(day: Date) => boolean` | `-` | Function used to disable dates in the calendar. |
|
|
15
|
-
| label | `string` | `-` | The label displayed above the date input. |
|
|
14
|
+
| isDayDisabled (JS only) | `((day: Date) => boolean) \| undefined` | `-` | Function used to disable dates in the calendar. |
|
|
15
|
+
| label | `string \| undefined` | `-` | The label displayed above the date input. |
|
|
16
16
|
| lang | `string` | `-` | The locale used for calendar labels and date formatting. |
|
|
17
17
|
| month (JS only) | `unknown` | `-` | - |
|
|
18
|
-
| name | `string` | `-` | The name submitted with the date value. |
|
|
18
|
+
| name | `string \| undefined` | `-` | The name submitted with the date value. |
|
|
19
19
|
| navigationDate (JS only) | `Date` | `-` | - |
|
|
20
20
|
| previousMonthButton (JS only) | `HTMLButtonElement` | `-` | This is the first focusable element, needed for the modal focus trap. |
|
|
21
21
|
| selectedCell (JS only) | `HTMLTableCellElement` | `-` | - |
|
|
@@ -23,7 +23,7 @@ Unless otherwise noted all properties are HTML attributes (as opposed to JavaScr
|
|
|
23
23
|
| shadowRootOptions (JS only) | `object` | `{ ...LitElement.shadowRootOptions, delegatesFocus: true, }` | - |
|
|
24
24
|
| todayCell (JS only) | `HTMLTableCellElement` | `-` | - |
|
|
25
25
|
| toggleButton (JS only) | `HTMLButtonElement` | `-` | - |
|
|
26
|
-
| value | `string` | `-` | The selected date value. |
|
|
26
|
+
| value | `string \| undefined` | `-` | The selected date value. |
|
|
27
27
|
| weekday-format | `string` | `'EEEEEE'` | The weekday format shown above the calendar grid. |
|
|
28
28
|
| weeks (JS only) | `unknown` | `-` | - |
|
|
29
29
|
| wrapper (JS only) | `HTMLDivElement` | `-` | - |
|
|
@@ -75,7 +75,7 @@ Function used to disable dates in the calendar.
|
|
|
75
75
|
|
|
76
76
|
Set this on the element instance in JavaScript, not as an HTML attribute. Disabled dates cannot be selected from the calendar.
|
|
77
77
|
|
|
78
|
-
- Type: `(day: Date) => boolean`
|
|
78
|
+
- Type: `((day: Date) => boolean) | undefined`
|
|
79
79
|
- Default: `-`
|
|
80
80
|
|
|
81
81
|
#### label
|
|
@@ -84,7 +84,7 @@ The label displayed above the date input.
|
|
|
84
84
|
|
|
85
85
|
Use this to give the datepicker a visible and accessible name.
|
|
86
86
|
|
|
87
|
-
- Type: `string`
|
|
87
|
+
- Type: `string | undefined`
|
|
88
88
|
- Default: `-`
|
|
89
89
|
|
|
90
90
|
#### lang
|
|
@@ -109,7 +109,7 @@ The name submitted with the date value.
|
|
|
109
109
|
|
|
110
110
|
Use this when the datepicker belongs to a form and its value should be included in form data.
|
|
111
111
|
|
|
112
|
-
- Type: `string`
|
|
112
|
+
- Type: `string | undefined`
|
|
113
113
|
- Default: `-`
|
|
114
114
|
|
|
115
115
|
#### navigationDate (JS only)
|
|
@@ -171,7 +171,7 @@ The selected date value.
|
|
|
171
171
|
|
|
172
172
|
Use an ISO date string in `YYYY-MM-DD` format. The value is submitted with the form and is reset to its initial value when the form resets.
|
|
173
173
|
|
|
174
|
-
- Type: `string`
|
|
174
|
+
- Type: `string | undefined`
|
|
175
175
|
- Default: `-`
|
|
176
176
|
|
|
177
177
|
#### weekday-format
|
|
@@ -211,11 +211,11 @@ Unless otherwise noted all properties are HTML attributes (as opposed to JavaScr
|
|
|
211
211
|
| header-format | `string` | `'MMMM yyyy'` | The date format used in the calendar header. |
|
|
212
212
|
| input (JS only) | `HTMLInputElement` | `-` | - |
|
|
213
213
|
| isCalendarOpen (JS only) | `boolean` | `false` | - |
|
|
214
|
-
| isDayDisabled (JS only) | `(day: Date) => boolean` | `-` | Function used to disable dates in the calendar. |
|
|
215
|
-
| label | `string` | `-` | The label displayed above the date input. |
|
|
214
|
+
| isDayDisabled (JS only) | `((day: Date) => boolean) \| undefined` | `-` | Function used to disable dates in the calendar. |
|
|
215
|
+
| label | `string \| undefined` | `-` | The label displayed above the date input. |
|
|
216
216
|
| lang | `string` | `-` | The locale used for calendar labels and date formatting. |
|
|
217
217
|
| month (JS only) | `unknown` | `-` | - |
|
|
218
|
-
| name | `string` | `-` | The name submitted with the date value. |
|
|
218
|
+
| name | `string \| undefined` | `-` | The name submitted with the date value. |
|
|
219
219
|
| navigationDate (JS only) | `Date` | `-` | - |
|
|
220
220
|
| previousMonthButton (JS only) | `HTMLButtonElement` | `-` | This is the first focusable element, needed for the modal focus trap. |
|
|
221
221
|
| selectedCell (JS only) | `HTMLTableCellElement` | `-` | - |
|
|
@@ -223,7 +223,7 @@ Unless otherwise noted all properties are HTML attributes (as opposed to JavaScr
|
|
|
223
223
|
| shadowRootOptions (JS only) | `object` | `{ ...LitElement.shadowRootOptions, delegatesFocus: true, }` | - |
|
|
224
224
|
| todayCell (JS only) | `HTMLTableCellElement` | `-` | - |
|
|
225
225
|
| toggleButton (JS only) | `HTMLButtonElement` | `-` | - |
|
|
226
|
-
| value | `string` | `-` | The selected date value. |
|
|
226
|
+
| value | `string \| undefined` | `-` | The selected date value. |
|
|
227
227
|
| weekday-format | `string` | `'EEEEEE'` | The weekday format shown above the calendar grid. |
|
|
228
228
|
| weeks (JS only) | `unknown` | `-` | - |
|
|
229
229
|
| wrapper (JS only) | `HTMLDivElement` | `-` | - |
|
|
@@ -275,7 +275,7 @@ Function used to disable dates in the calendar.
|
|
|
275
275
|
|
|
276
276
|
Set this on the element instance in JavaScript, not as an HTML attribute. Disabled dates cannot be selected from the calendar.
|
|
277
277
|
|
|
278
|
-
- Type: `(day: Date) => boolean`
|
|
278
|
+
- Type: `((day: Date) => boolean) | undefined`
|
|
279
279
|
- Default: `-`
|
|
280
280
|
|
|
281
281
|
#### label
|
|
@@ -284,7 +284,7 @@ The label displayed above the date input.
|
|
|
284
284
|
|
|
285
285
|
Use this to give the datepicker a visible and accessible name.
|
|
286
286
|
|
|
287
|
-
- Type: `string`
|
|
287
|
+
- Type: `string | undefined`
|
|
288
288
|
- Default: `-`
|
|
289
289
|
|
|
290
290
|
#### lang
|
|
@@ -309,7 +309,7 @@ The name submitted with the date value.
|
|
|
309
309
|
|
|
310
310
|
Use this when the datepicker belongs to a form and its value should be included in form data.
|
|
311
311
|
|
|
312
|
-
- Type: `string`
|
|
312
|
+
- Type: `string | undefined`
|
|
313
313
|
- Default: `-`
|
|
314
314
|
|
|
315
315
|
#### navigationDate (JS only)
|
|
@@ -371,7 +371,7 @@ The selected date value.
|
|
|
371
371
|
|
|
372
372
|
Use an ISO date string in `YYYY-MM-DD` format. The value is submitted with the form and is reset to its initial value when the form resets.
|
|
373
373
|
|
|
374
|
-
- Type: `string`
|
|
374
|
+
- Type: `string | undefined`
|
|
375
375
|
- Default: `-`
|
|
376
376
|
|
|
377
377
|
#### weekday-format
|
|
@@ -9,10 +9,10 @@ Unless otherwise noted all properties are HTML attributes (as opposed to JavaScr
|
|
|
9
9
|
| animated | `boolean` | `false` | Will animate the expansion/collapse |
|
|
10
10
|
| bleed | `boolean` | `false` | Will make the expandable full-width on the sm breakpoint size |
|
|
11
11
|
| box | `boolean` | `false` | Will make the expandable a Box |
|
|
12
|
-
| button-class | `string` | `-` | **Deprecated**: Probably does not work the way you expect. The class must exist inside the shadow DOM of the component. |
|
|
13
|
-
| content-class | `string` | `-` | **Deprecated**: Probably does not work the way you expect. The class must exist inside the shadow DOM of the component. |
|
|
12
|
+
| button-class | `string \| undefined` | `-` | **Deprecated**: Probably does not work the way you expect. The class must exist inside the shadow DOM of the component. |
|
|
13
|
+
| content-class | `string \| undefined` | `-` | **Deprecated**: Probably does not work the way you expect. The class must exist inside the shadow DOM of the component. |
|
|
14
14
|
| expanded | `boolean` | `false` | Controls component's expanded state |
|
|
15
|
-
| heading-level | `number` | `-` | Wrap the toggle button in a heading element with the specified level. If headingLevel is not specified, the button will not be wrapped by a heading element. |
|
|
15
|
+
| heading-level | `number \| undefined` | `-` | Wrap the toggle button in a heading element with the specified level. If headingLevel is not specified, the button will not be wrapped by a heading element. |
|
|
16
16
|
| no-chevron | `boolean` | `false` | Controls chevron visibility |
|
|
17
17
|
| title | `string` | `-` | Component title. Used to display the title value which is always present regardless of whether the component is open or closed. |
|
|
18
18
|
|
|
@@ -45,7 +45,7 @@ Will make the expandable a Box
|
|
|
45
45
|
|
|
46
46
|
|
|
47
47
|
|
|
48
|
-
- Type: `string`
|
|
48
|
+
- Type: `string | undefined`
|
|
49
49
|
- Default: `-`
|
|
50
50
|
|
|
51
51
|
#### content-class
|
|
@@ -54,7 +54,7 @@ Will make the expandable a Box
|
|
|
54
54
|
|
|
55
55
|
|
|
56
56
|
|
|
57
|
-
- Type: `string`
|
|
57
|
+
- Type: `string | undefined`
|
|
58
58
|
- Default: `-`
|
|
59
59
|
|
|
60
60
|
#### expanded
|
|
@@ -68,7 +68,7 @@ Controls component's expanded state
|
|
|
68
68
|
|
|
69
69
|
Wrap the toggle button in a heading element with the specified level. If headingLevel is not specified, the button will not be wrapped by a heading element.
|
|
70
70
|
|
|
71
|
-
- Type: `number`
|
|
71
|
+
- Type: `number | undefined`
|
|
72
72
|
- Default: `-`
|
|
73
73
|
|
|
74
74
|
#### no-chevron
|
|
@@ -77,10 +77,10 @@ Unless otherwise noted all properties are HTML attributes (as opposed to JavaScr
|
|
|
77
77
|
| animated | `boolean` | `false` | Will animate the expansion/collapse |
|
|
78
78
|
| bleed | `boolean` | `false` | Will make the expandable full-width on the sm breakpoint size |
|
|
79
79
|
| box | `boolean` | `false` | Will make the expandable a Box |
|
|
80
|
-
| button-class | `string` | `-` | **Deprecated**: Probably does not work the way you expect. The class must exist inside the shadow DOM of the component. |
|
|
81
|
-
| content-class | `string` | `-` | **Deprecated**: Probably does not work the way you expect. The class must exist inside the shadow DOM of the component. |
|
|
80
|
+
| button-class | `string \| undefined` | `-` | **Deprecated**: Probably does not work the way you expect. The class must exist inside the shadow DOM of the component. |
|
|
81
|
+
| content-class | `string \| undefined` | `-` | **Deprecated**: Probably does not work the way you expect. The class must exist inside the shadow DOM of the component. |
|
|
82
82
|
| expanded | `boolean` | `false` | Controls component's expanded state |
|
|
83
|
-
| heading-level | `number` | `-` | Wrap the toggle button in a heading element with the specified level. If headingLevel is not specified, the button will not be wrapped by a heading element. |
|
|
83
|
+
| heading-level | `number \| undefined` | `-` | Wrap the toggle button in a heading element with the specified level. If headingLevel is not specified, the button will not be wrapped by a heading element. |
|
|
84
84
|
| no-chevron | `boolean` | `false` | Controls chevron visibility |
|
|
85
85
|
| title | `string` | `-` | Component title. Used to display the title value which is always present regardless of whether the component is open or closed. |
|
|
86
86
|
|
|
@@ -113,7 +113,7 @@ Will make the expandable a Box
|
|
|
113
113
|
|
|
114
114
|
|
|
115
115
|
|
|
116
|
-
- Type: `string`
|
|
116
|
+
- Type: `string | undefined`
|
|
117
117
|
- Default: `-`
|
|
118
118
|
|
|
119
119
|
#### content-class
|
|
@@ -122,7 +122,7 @@ Will make the expandable a Box
|
|
|
122
122
|
|
|
123
123
|
|
|
124
124
|
|
|
125
|
-
- Type: `string`
|
|
125
|
+
- Type: `string | undefined`
|
|
126
126
|
- Default: `-`
|
|
127
127
|
|
|
128
128
|
#### expanded
|
|
@@ -136,7 +136,7 @@ Controls component's expanded state
|
|
|
136
136
|
|
|
137
137
|
Wrap the toggle button in a heading element with the specified level. If headingLevel is not specified, the button will not be wrapped by a heading element.
|
|
138
138
|
|
|
139
|
-
- Type: `number`
|
|
139
|
+
- Type: `number | undefined`
|
|
140
140
|
- Default: `-`
|
|
141
141
|
|
|
142
142
|
#### no-chevron
|