@warp-ds/elements 2.10.0-next.2 → 2.10.0-next.20
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/.storybook/utilities.js +4 -4
- package/dist/api.js +1 -1
- package/dist/api.js.map +2 -2
- package/dist/custom-elements.json +1303 -619
- package/dist/docs/affix/affix.md +120 -3
- package/dist/docs/affix/api.md +2 -2
- package/dist/docs/affix/styling.md +108 -0
- package/dist/docs/alert/alert.md +6 -6
- package/dist/docs/alert/api.md +4 -4
- package/dist/docs/alert/styling.md +1 -0
- package/dist/docs/attention/api.md +50 -2
- package/dist/docs/attention/attention.md +52 -2
- package/dist/docs/attention/styling.md +1 -0
- package/dist/docs/badge/api.md +50 -4
- package/dist/docs/badge/badge.md +52 -4
- package/dist/docs/badge/styling.md +1 -0
- package/dist/docs/box/api.md +2 -2
- package/dist/docs/box/box.md +24 -42
- package/dist/docs/box/examples.md +20 -38
- package/dist/docs/box/styling.md +1 -0
- package/dist/docs/breadcrumb-item/api.md +27 -0
- package/dist/docs/breadcrumb-item/breadcrumb-item.md +34 -0
- package/dist/docs/breadcrumbs/accessibility.md +8 -18
- package/dist/docs/breadcrumbs/breadcrumbs.md +128 -36
- package/dist/docs/breadcrumbs/examples.md +15 -9
- package/dist/docs/breadcrumbs/styling.md +97 -0
- package/dist/docs/breadcrumbs/usage.md +8 -8
- package/dist/docs/button/api.md +32 -24
- package/dist/docs/button/button.md +105 -26
- package/dist/docs/button/styling.md +72 -0
- package/dist/docs/card/api.md +8 -0
- package/dist/docs/card/card.md +10 -2
- package/dist/docs/card/styling.md +1 -0
- package/dist/docs/checkbox/api.md +176 -0
- package/dist/docs/checkbox/checkbox.md +356 -0
- package/dist/docs/checkbox/styling.md +173 -0
- package/dist/docs/checkbox-group/accessibility.md +71 -0
- package/dist/docs/checkbox-group/api.md +103 -0
- package/dist/docs/checkbox-group/checkbox-group.md +529 -0
- package/dist/docs/checkbox-group/examples.md +105 -0
- package/dist/docs/checkbox-group/styling.md +134 -0
- package/dist/docs/checkbox-group/usage.md +95 -0
- package/dist/docs/combobox/accessibility.md +71 -0
- package/dist/docs/combobox/api.md +74 -36
- package/dist/docs/combobox/combobox.md +219 -38
- 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 +37 -21
- package/dist/docs/datepicker/datepicker.md +223 -23
- 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 +23 -35
- package/dist/docs/expandable/examples.md +54 -0
- package/dist/docs/expandable/expandable.md +77 -35
- 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 +49 -0
- package/dist/docs/link/api.md +24 -28
- package/dist/docs/link/examples.md +75 -0
- package/dist/docs/link/link.md +119 -30
- package/dist/docs/link/styling.md +1 -0
- package/dist/docs/link/usage.md +18 -0
- package/dist/docs/modal/api.md +18 -2
- package/dist/docs/modal/modal.md +20 -2
- 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/api.md +4 -4
- package/dist/docs/pagination/pagination.md +6 -4
- package/dist/docs/pagination/styling.md +1 -0
- package/dist/docs/pill/api.md +8 -8
- package/dist/docs/pill/pill.md +10 -8
- package/dist/docs/pill/styling.md +1 -0
- package/dist/docs/radio/radio.md +1 -7
- package/dist/docs/radio-group/api.md +4 -4
- package/dist/docs/radio-group/radio-group.md +183 -68
- package/dist/docs/radio-group/styling.md +179 -64
- package/dist/docs/select/api.md +10 -10
- package/dist/docs/select/select.md +103 -10
- package/dist/docs/select/styling.md +92 -0
- package/dist/docs/slider/api.md +22 -22
- package/dist/docs/slider/slider.md +24 -22
- package/dist/docs/slider/styling.md +1 -0
- package/dist/docs/slider-thumb/api.md +28 -12
- package/dist/docs/slider-thumb/slider-thumb.md +30 -12
- package/dist/docs/slider-thumb/styling.md +1 -0
- package/dist/docs/snackbar/accessibility.md +20 -0
- package/dist/docs/snackbar/api.md +30 -0
- package/dist/docs/snackbar/examples.md +191 -0
- package/dist/docs/snackbar/snackbar.md +385 -0
- package/dist/docs/snackbar/styling.md +72 -0
- package/dist/docs/snackbar/usage.md +60 -0
- package/dist/docs/snackbar-item/api.md +41 -0
- package/dist/docs/snackbar-item/snackbar-item.md +49 -0
- package/dist/docs/step/api.md +16 -0
- package/dist/docs/step/step.md +16 -0
- package/dist/docs/step-indicator/step-indicator.md +2 -0
- package/dist/docs/step-indicator/styling.md +1 -0
- package/dist/docs/switch/api.md +8 -0
- package/dist/docs/switch/styling.md +1 -0
- package/dist/docs/switch/switch.md +10 -0
- package/dist/docs/tabs/api.md +2 -2
- package/dist/docs/tabs/styling.md +1 -0
- package/dist/docs/tabs/tabs.md +4 -2
- package/dist/docs/textarea/api.md +54 -14
- package/dist/docs/textarea/styling.md +92 -0
- package/dist/docs/textarea/textarea.md +147 -14
- package/dist/docs/textfield/api.md +74 -34
- package/dist/docs/textfield/styling.md +96 -0
- package/dist/docs/textfield/textfield.md +171 -34
- package/dist/index.d.ts +1359 -368
- package/dist/packages/affix/affix-styles.d.ts +8 -0
- package/dist/packages/affix/affix-styles.js +108 -0
- package/dist/packages/affix/affix.d.ts +16 -13
- package/dist/packages/affix/affix.hydration.test.d.ts +1 -1
- package/dist/packages/affix/affix.hydration.test.js +15 -15
- package/dist/packages/affix/affix.js +451 -320
- package/dist/packages/affix/affix.js.map +4 -4
- package/dist/packages/affix/affix.react.stories.d.ts +3 -3
- package/dist/packages/affix/affix.react.stories.js +3 -3
- package/dist/packages/affix/affix.react.test.js +5 -3
- package/dist/packages/affix/affix.stories.d.ts +3 -3
- package/dist/packages/affix/affix.stories.js +10 -10
- package/dist/packages/affix/affix.test.d.ts +1 -1
- package/dist/packages/affix/affix.test.js +10 -10
- package/dist/packages/affix/react.d.ts +3 -3
- package/dist/packages/affix/react.js +6 -6
- package/dist/packages/affix/styles.js +2 -2
- package/dist/packages/alert/alert.d.ts +3 -3
- package/dist/packages/alert/alert.hydration.test.d.ts +1 -1
- package/dist/packages/alert/alert.hydration.test.js +21 -21
- package/dist/packages/alert/alert.js +349 -324
- package/dist/packages/alert/alert.js.map +3 -3
- package/dist/packages/alert/alert.react.stories.d.ts +2 -2
- package/dist/packages/alert/alert.react.stories.js +13 -13
- package/dist/packages/alert/alert.stories.d.ts +4 -4
- package/dist/packages/alert/alert.stories.js +29 -27
- package/dist/packages/alert/alert.test.d.ts +1 -1
- package/dist/packages/alert/alert.test.js +34 -21
- package/dist/packages/alert/react.d.ts +1 -1
- package/dist/packages/alert/react.js +4 -4
- package/dist/packages/alert/styles.js +2 -2
- package/dist/packages/attention/attention.d.ts +11 -6
- package/dist/packages/attention/attention.hydration.test.d.ts +1 -1
- package/dist/packages/attention/attention.hydration.test.js +29 -29
- package/dist/packages/attention/attention.js +1795 -1781
- package/dist/packages/attention/attention.js.map +4 -4
- package/dist/packages/attention/attention.react.stories.d.ts +3 -3
- package/dist/packages/attention/attention.react.stories.js +13 -13
- package/dist/packages/attention/attention.react.test.js +11 -7
- package/dist/packages/attention/attention.stories.d.ts +4 -4
- package/dist/packages/attention/attention.stories.js +126 -117
- package/dist/packages/attention/attention.test.d.ts +1 -1
- package/dist/packages/attention/attention.test.js +18 -10
- package/dist/packages/attention/layout-styles.js +900 -900
- package/dist/packages/attention/react.d.ts +4 -4
- package/dist/packages/attention/react.js +13 -11
- package/dist/packages/attention/styles.js +2 -2
- package/dist/packages/badge/badge.d.ts +3 -3
- package/dist/packages/badge/badge.hydration.test.d.ts +1 -1
- package/dist/packages/badge/badge.hydration.test.js +25 -25
- package/dist/packages/badge/badge.js +281 -281
- package/dist/packages/badge/badge.js.map +3 -3
- package/dist/packages/badge/badge.react.stories.d.ts +3 -3
- package/dist/packages/badge/badge.react.stories.js +17 -17
- package/dist/packages/badge/badge.stories.d.ts +3 -3
- package/dist/packages/badge/badge.stories.js +22 -20
- package/dist/packages/badge/badge.test.d.ts +1 -1
- package/dist/packages/badge/badge.test.js +13 -11
- package/dist/packages/badge/react.d.ts +1 -1
- package/dist/packages/badge/react.js +4 -4
- package/dist/packages/badge/styles.js +2 -2
- package/dist/packages/box/box.d.ts +1 -1
- package/dist/packages/box/box.hydration.test.d.ts +1 -1
- package/dist/packages/box/box.hydration.test.js +14 -14
- package/dist/packages/box/box.js +288 -288
- package/dist/packages/box/box.js.map +3 -3
- package/dist/packages/box/box.react.stories.d.ts +3 -3
- package/dist/packages/box/box.react.stories.js +8 -8
- package/dist/packages/box/box.stories.d.ts +3 -3
- package/dist/packages/box/box.stories.js +25 -19
- package/dist/packages/box/box.test.d.ts +1 -1
- package/dist/packages/box/box.test.js +6 -6
- package/dist/packages/box/react.d.ts +1 -1
- package/dist/packages/box/react.js +4 -4
- package/dist/packages/box/slot.test.d.ts +1 -1
- package/dist/packages/box/slot.test.js +6 -6
- package/dist/packages/box/styles.js +2 -2
- package/dist/packages/breadcrumb-item/breadcrumb-item.d.ts +29 -0
- package/dist/packages/breadcrumb-item/breadcrumb-item.js +2529 -0
- package/dist/packages/breadcrumb-item/breadcrumb-item.js.map +7 -0
- package/dist/packages/breadcrumb-item/react.d.ts +2 -0
- package/dist/packages/breadcrumb-item/react.js +11 -0
- package/dist/packages/breadcrumb-item/styles.d.ts +4 -0
- package/dist/packages/breadcrumb-item/styles.js +81 -0
- package/dist/packages/breadcrumbs/breadcrumbs.d.ts +4 -3
- package/dist/packages/breadcrumbs/breadcrumbs.hydration.test.d.ts +1 -1
- package/dist/packages/breadcrumbs/breadcrumbs.hydration.test.js +57 -50
- package/dist/packages/breadcrumbs/breadcrumbs.js +287 -283
- package/dist/packages/breadcrumbs/breadcrumbs.js.map +4 -4
- package/dist/packages/breadcrumbs/breadcrumbs.react.stories.d.ts +4 -4
- package/dist/packages/breadcrumbs/breadcrumbs.react.stories.js +17 -16
- package/dist/packages/breadcrumbs/breadcrumbs.stories.d.ts +7 -8
- package/dist/packages/breadcrumbs/breadcrumbs.stories.js +30 -26
- package/dist/packages/breadcrumbs/breadcrumbs.test.d.ts +1 -1
- package/dist/packages/breadcrumbs/breadcrumbs.test.js +19 -17
- package/dist/packages/breadcrumbs/react.d.ts +1 -1
- package/dist/packages/breadcrumbs/react.js +4 -4
- package/dist/packages/breadcrumbs/styles.js +2 -2
- package/dist/packages/button/button.d.ts +20 -15
- package/dist/packages/button/button.hydration.test.d.ts +1 -1
- package/dist/packages/button/button.hydration.test.js +19 -19
- package/dist/packages/button/button.js +809 -811
- package/dist/packages/button/button.js.map +4 -4
- package/dist/packages/button/button.react.stories.d.ts +5 -5
- package/dist/packages/button/button.react.stories.js +30 -30
- package/dist/packages/button/button.react.test.js +13 -13
- package/dist/packages/button/button.stories.d.ts +33 -4
- package/dist/packages/button/button.stories.js +353 -70
- package/dist/packages/button/button.test.d.ts +1 -1
- package/dist/packages/button/button.test.js +36 -35
- package/dist/packages/button/react.d.ts +3 -3
- package/dist/packages/button/react.js +7 -7
- package/dist/packages/button/styles.d.ts +22 -1
- package/dist/packages/button/styles.js +433 -2
- package/dist/packages/card/card.d.ts +1 -1
- package/dist/packages/card/card.hydration.test.d.ts +1 -1
- package/dist/packages/card/card.hydration.test.js +14 -14
- package/dist/packages/card/card.js +311 -296
- package/dist/packages/card/card.js.map +4 -4
- package/dist/packages/card/card.react.stories.d.ts +3 -3
- package/dist/packages/card/card.react.stories.js +11 -11
- package/dist/packages/card/card.stories.d.ts +3 -3
- package/dist/packages/card/card.stories.js +36 -24
- package/dist/packages/card/card.test.d.ts +1 -1
- package/dist/packages/card/card.test.js +6 -6
- package/dist/packages/card/react.d.ts +1 -1
- package/dist/packages/card/react.js +4 -4
- package/dist/packages/card/styles.js +2 -2
- package/dist/packages/checkbox/checkbox.a11y.test.d.ts +1 -1
- package/dist/packages/checkbox/checkbox.a11y.test.js +47 -33
- package/dist/packages/checkbox/checkbox.d.ts +48 -17
- package/dist/packages/checkbox/checkbox.hydration.test.d.ts +1 -1
- package/dist/packages/checkbox/checkbox.hydration.test.js +21 -21
- package/dist/packages/checkbox/checkbox.js +481 -430
- package/dist/packages/checkbox/checkbox.js.map +3 -3
- package/dist/packages/checkbox/checkbox.react.stories.d.ts +3 -3
- package/dist/packages/checkbox/checkbox.react.stories.js +3 -3
- package/dist/packages/checkbox/checkbox.stories.d.ts +5 -5
- package/dist/packages/checkbox/checkbox.stories.js +99 -91
- package/dist/packages/checkbox/checkbox.test.d.ts +1 -1
- package/dist/packages/checkbox/checkbox.test.js +64 -64
- package/dist/packages/checkbox/react.d.ts +2 -2
- package/dist/packages/checkbox/react.js +6 -6
- package/dist/packages/checkbox/styles.js +183 -132
- package/dist/packages/checkbox-group/checkbox-group.a11y.test.d.ts +2 -2
- package/dist/packages/checkbox-group/checkbox-group.a11y.test.js +83 -73
- package/dist/packages/checkbox-group/checkbox-group.d.ts +54 -13
- package/dist/packages/checkbox-group/checkbox-group.hydration.test.d.ts +2 -2
- package/dist/packages/checkbox-group/checkbox-group.hydration.test.js +36 -19
- package/dist/packages/checkbox-group/checkbox-group.js +62 -57
- package/dist/packages/checkbox-group/checkbox-group.js.map +4 -4
- package/dist/packages/checkbox-group/checkbox-group.react.test.js +4 -4
- package/dist/packages/checkbox-group/checkbox-group.test.d.ts +2 -2
- package/dist/packages/checkbox-group/checkbox-group.test.js +96 -90
- package/dist/packages/checkbox-group/react.d.ts +4 -4
- package/dist/packages/checkbox-group/react.js +6 -6
- package/dist/packages/combobox/combobox.a11y.test.d.ts +2 -2
- package/dist/packages/combobox/combobox.a11y.test.js +80 -33
- package/dist/packages/combobox/combobox.d.ts +67 -47
- package/dist/packages/combobox/combobox.hydration.test.d.ts +1 -1
- package/dist/packages/combobox/combobox.hydration.test.js +73 -35
- package/dist/packages/combobox/combobox.js +338 -339
- package/dist/packages/combobox/combobox.js.map +4 -4
- package/dist/packages/combobox/combobox.react.stories.d.ts +29 -13
- package/dist/packages/combobox/combobox.react.stories.js +29 -29
- package/dist/packages/combobox/combobox.react.test.js +8 -8
- package/dist/packages/combobox/combobox.stories.d.ts +4 -4
- package/dist/packages/combobox/combobox.stories.js +104 -85
- package/dist/packages/combobox/combobox.test.d.ts +2 -2
- package/dist/packages/combobox/combobox.test.js +194 -69
- package/dist/packages/combobox/react.d.ts +15 -7
- package/dist/packages/combobox/react.js +14 -14
- package/dist/packages/combobox/styles.js +2 -3
- package/dist/packages/datepicker/DatePicker.test.d.ts +2 -2
- package/dist/packages/datepicker/DatePicker.test.js +49 -42
- package/dist/packages/datepicker/datepicker.d.ts +30 -38
- package/dist/packages/datepicker/datepicker.hydration.test.d.ts +1 -1
- package/dist/packages/datepicker/datepicker.hydration.test.js +21 -21
- package/dist/packages/datepicker/datepicker.js +673 -632
- package/dist/packages/datepicker/datepicker.js.map +4 -4
- package/dist/packages/datepicker/datepicker.react.stories.d.ts +17 -17
- package/dist/packages/datepicker/datepicker.react.stories.js +9 -9
- package/dist/packages/datepicker/datepicker.react.test.js +6 -6
- package/dist/packages/datepicker/datepicker.stories.d.ts +4 -4
- package/dist/packages/datepicker/datepicker.stories.js +32 -32
- package/dist/packages/datepicker/datepicker.test.d.ts +2 -2
- package/dist/packages/datepicker/datepicker.test.js +77 -79
- package/dist/packages/datepicker/react.d.ts +9 -9
- package/dist/packages/datepicker/react.js +16 -14
- package/dist/packages/datepicker/styles/w-datepicker-calendar.styles.js +13 -12
- package/dist/packages/datepicker/styles/w-datepicker-day.styles.js +58 -55
- package/dist/packages/datepicker/styles/w-datepicker-month.styles.js +60 -57
- package/dist/packages/datepicker/styles/w-datepicker.styles.js +87 -87
- package/dist/packages/datepicker/utils.d.ts +3 -0
- package/dist/packages/datepicker/utils.js +40 -1
- package/dist/packages/datepicker/utils.test.d.ts +1 -0
- package/dist/packages/datepicker/utils.test.js +29 -0
- package/dist/packages/expandable/expandable.d.ts +18 -39
- package/dist/packages/expandable/expandable.hydration.test.d.ts +1 -1
- package/dist/packages/expandable/expandable.hydration.test.js +21 -21
- package/dist/packages/expandable/expandable.js +359 -332
- package/dist/packages/expandable/expandable.js.map +4 -4
- package/dist/packages/expandable/expandable.react.stories.d.ts +5 -5
- package/dist/packages/expandable/expandable.react.stories.js +7 -7
- package/dist/packages/expandable/expandable.react.test.js +15 -7
- package/dist/packages/expandable/expandable.stories.d.ts +5 -5
- package/dist/packages/expandable/expandable.stories.js +51 -45
- package/dist/packages/expandable/expandable.test.d.ts +1 -1
- package/dist/packages/expandable/expandable.test.js +19 -17
- package/dist/packages/expandable/react.d.ts +3 -3
- package/dist/packages/expandable/react.js +9 -9
- package/dist/packages/expandable/styles.js +2 -2
- package/dist/packages/global.d.ts +1 -0
- package/dist/packages/global.js +5 -0
- package/dist/packages/i18n.d.ts +1 -1
- package/dist/packages/i18n.js +37 -29
- package/dist/packages/icon/icon.d.ts +22 -5
- package/dist/packages/icon/icon.hydration.test.d.ts +1 -1
- package/dist/packages/icon/icon.hydration.test.js +25 -25
- package/dist/packages/icon/icon.js +31 -26
- package/dist/packages/icon/icon.js.map +3 -3
- package/dist/packages/icon/icon.react.stories.d.ts +4 -3
- package/dist/packages/icon/icon.react.stories.js +284 -283
- package/dist/packages/icon/icon.stories.d.ts +7 -30
- package/dist/packages/icon/icon.stories.js +307 -297
- package/dist/packages/icon/icon.test.d.ts +1 -1
- package/dist/packages/icon/icon.test.js +36 -28
- package/dist/packages/icon/react.d.ts +2 -2
- package/dist/packages/icon/react.js +4 -4
- package/dist/packages/icon/style.js +24 -25
- package/dist/packages/interaction-type-detection.d.ts +22 -0
- package/dist/packages/interaction-type-detection.js +38 -0
- package/dist/packages/link/link.d.ts +22 -23
- package/dist/packages/link/link.hydration.test.d.ts +1 -1
- package/dist/packages/link/link.hydration.test.js +27 -27
- package/dist/packages/link/link.js +775 -498
- package/dist/packages/link/link.js.map +4 -4
- package/dist/packages/link/link.react.stories.d.ts +3 -3
- package/dist/packages/link/link.react.stories.js +42 -42
- package/dist/packages/link/link.react.test.js +5 -3
- package/dist/packages/link/link.stories.d.ts +3 -3
- package/dist/packages/link/link.stories.js +51 -51
- package/dist/packages/link/link.test.d.ts +1 -1
- package/dist/packages/link/link.test.js +11 -7
- package/dist/packages/link/react.d.ts +2 -2
- package/dist/packages/link/react.js +6 -6
- package/dist/packages/link/styles.d.ts +5 -0
- package/dist/packages/link/styles.js +85 -0
- package/dist/packages/modal/index.d.ts +7 -7
- package/dist/packages/modal/index.js +7 -7
- package/dist/packages/modal/modal.d.ts +3 -2
- package/dist/packages/modal/modal.hydration.test.d.ts +1 -1
- package/dist/packages/modal/modal.hydration.test.js +12 -12
- package/dist/packages/modal/modal.js +409 -409
- package/dist/packages/modal/modal.js.map +3 -3
- package/dist/packages/modal/modal.react.stories.d.ts +7 -7
- package/dist/packages/modal/modal.react.stories.js +15 -6
- package/dist/packages/modal/modal.react.test.js +5 -5
- package/dist/packages/modal/modal.stories.d.ts +6 -6
- package/dist/packages/modal/modal.stories.js +253 -238
- package/dist/packages/modal/react.d.ts +38 -8
- package/dist/packages/modal/react.js +43 -13
- package/dist/packages/modal/util.js +3 -1
- package/dist/packages/modal-footer/modal-footer.d.ts +1 -1
- package/dist/packages/modal-footer/modal-footer.js +296 -296
- package/dist/packages/modal-footer/modal-footer.js.map +3 -3
- package/dist/packages/modal-footer/react.d.ts +1 -1
- package/dist/packages/modal-footer/react.js +4 -4
- package/dist/packages/modal-header/modal-header.d.ts +2 -2
- package/dist/packages/modal-header/modal-header.js +443 -422
- package/dist/packages/modal-header/modal-header.js.map +4 -4
- package/dist/packages/modal-header/modal-header.react.test.js +5 -3
- package/dist/packages/modal-header/react.d.ts +4 -4
- package/dist/packages/modal-header/react.js +8 -8
- package/dist/packages/page-indicator/page-indicator.d.ts +1 -5
- package/dist/packages/page-indicator/page-indicator.hydration.test.d.ts +1 -1
- package/dist/packages/page-indicator/page-indicator.hydration.test.js +22 -22
- package/dist/packages/page-indicator/page-indicator.js +29 -29
- package/dist/packages/page-indicator/page-indicator.js.map +4 -4
- package/dist/packages/page-indicator/page-indicator.react.stories.d.ts +3 -3
- package/dist/packages/page-indicator/page-indicator.react.stories.js +11 -11
- package/dist/packages/page-indicator/page-indicator.react.test.js +5 -5
- package/dist/packages/page-indicator/page-indicator.stories.d.ts +9 -27
- package/dist/packages/page-indicator/page-indicator.stories.js +63 -32
- package/dist/packages/page-indicator/page-indicator.test.d.ts +1 -1
- package/dist/packages/page-indicator/page-indicator.test.js +110 -70
- package/dist/packages/page-indicator/react.d.ts +2 -2
- package/dist/packages/page-indicator/react.js +7 -7
- package/dist/packages/page-indicator/style.js +21 -21
- package/dist/packages/pagination/pagination.a11y.test.d.ts +1 -1
- package/dist/packages/pagination/pagination.a11y.test.js +59 -25
- package/dist/packages/pagination/pagination.d.ts +10 -11
- package/dist/packages/pagination/pagination.hydration.test.d.ts +1 -1
- package/dist/packages/pagination/pagination.hydration.test.js +19 -19
- package/dist/packages/pagination/pagination.js +385 -354
- package/dist/packages/pagination/pagination.js.map +4 -4
- package/dist/packages/pagination/pagination.react.stories.d.ts +11 -11
- package/dist/packages/pagination/pagination.react.stories.js +8 -8
- package/dist/packages/pagination/pagination.react.test.js +6 -6
- package/dist/packages/pagination/pagination.stories.d.ts +3 -3
- package/dist/packages/pagination/pagination.stories.js +18 -18
- package/dist/packages/pagination/pagination.test.d.ts +1 -1
- package/dist/packages/pagination/pagination.test.js +146 -72
- package/dist/packages/pagination/react.d.ts +6 -6
- package/dist/packages/pagination/react.js +12 -10
- package/dist/packages/pagination/styles.js +2 -2
- package/dist/packages/pill/pill.d.ts +6 -6
- package/dist/packages/pill/pill.hydration.test.d.ts +1 -1
- package/dist/packages/pill/pill.hydration.test.js +14 -14
- package/dist/packages/pill/pill.js +337 -314
- package/dist/packages/pill/pill.js.map +4 -4
- package/dist/packages/pill/pill.react.stories.d.ts +11 -11
- package/dist/packages/pill/pill.react.stories.js +3 -3
- package/dist/packages/pill/pill.react.test.js +8 -8
- package/dist/packages/pill/pill.stories.d.ts +3 -3
- package/dist/packages/pill/pill.stories.js +8 -8
- package/dist/packages/pill/pill.test.d.ts +1 -1
- package/dist/packages/pill/pill.test.js +17 -15
- package/dist/packages/pill/react.d.ts +6 -6
- package/dist/packages/pill/react.js +18 -14
- package/dist/packages/pill/styles.js +2 -2
- package/dist/packages/radio/base-element.d.ts +3 -3
- package/dist/packages/radio/base-element.js +3 -3
- package/dist/packages/radio/custom-error-validator.d.ts +1 -1
- package/dist/packages/radio/custom-error-validator.js +3 -3
- package/dist/packages/radio/form-associated-element.d.ts +9 -9
- package/dist/packages/radio/form-associated-element.js +27 -26
- package/dist/packages/radio/host-styles.js +9 -9
- package/dist/packages/radio/invalid.d.ts +1 -1
- package/dist/packages/radio/invalid.js +1 -1
- package/dist/packages/radio/radio-styles.js +199 -160
- package/dist/packages/radio/radio.a11y.test.d.ts +2 -2
- package/dist/packages/radio/radio.a11y.test.js +60 -58
- package/dist/packages/radio/radio.d.ts +4 -4
- package/dist/packages/radio/radio.hydration.test.d.ts +1 -1
- package/dist/packages/radio/radio.hydration.test.js +23 -14
- package/dist/packages/radio/radio.js +491 -452
- package/dist/packages/radio/radio.js.map +3 -3
- package/dist/packages/radio/radio.react.stories.d.ts +2 -2
- package/dist/packages/radio/radio.react.stories.js +3 -3
- package/dist/packages/radio/radio.stories.d.ts +4 -4
- package/dist/packages/radio/radio.stories.js +152 -136
- package/dist/packages/radio/radio.test.d.ts +1 -1
- package/dist/packages/radio/radio.test.js +74 -73
- package/dist/packages/radio/react.d.ts +1 -1
- package/dist/packages/radio/react.js +4 -4
- package/dist/packages/radio/required-validator.d.ts +1 -1
- package/dist/packages/radio/required-validator.js +12 -7
- package/dist/packages/radio/slot.d.ts +1 -1
- package/dist/packages/radio/slot.js +11 -8
- package/dist/packages/radio/watch.d.ts +1 -1
- package/dist/packages/radio/watch.js +3 -1
- package/dist/packages/radio-group/radio-group-styles.js +121 -88
- package/dist/packages/radio-group/radio-group.a11y.test.d.ts +2 -2
- package/dist/packages/radio-group/radio-group.a11y.test.js +83 -77
- package/dist/packages/radio-group/radio-group.d.ts +16 -7
- package/dist/packages/radio-group/radio-group.hydration.test.d.ts +2 -2
- package/dist/packages/radio-group/radio-group.hydration.test.js +30 -15
- package/dist/packages/radio-group/radio-group.js +655 -567
- package/dist/packages/radio-group/radio-group.js.map +4 -4
- package/dist/packages/radio-group/radio-group.react.test.js +4 -4
- package/dist/packages/radio-group/radio-group.test.d.ts +2 -2
- package/dist/packages/radio-group/radio-group.test.js +234 -229
- package/dist/packages/radio-group/react.d.ts +7 -7
- package/dist/packages/radio-group/react.js +10 -10
- package/dist/packages/select/input-styles.d.ts +11 -0
- package/dist/packages/select/input-styles.js +88 -0
- package/dist/packages/select/react.d.ts +5 -5
- package/dist/packages/select/react.js +11 -11
- package/dist/packages/select/select.a11y.test.d.ts +1 -1
- package/dist/packages/select/select.a11y.test.js +100 -89
- package/dist/packages/select/select.d.ts +10 -11
- package/dist/packages/select/select.hydration.test.d.ts +1 -1
- package/dist/packages/select/select.hydration.test.js +16 -16
- package/dist/packages/select/select.js +432 -336
- package/dist/packages/select/select.js.map +4 -4
- package/dist/packages/select/select.react.stories.d.ts +10 -10
- package/dist/packages/select/select.react.stories.js +19 -14
- package/dist/packages/select/select.react.test.js +6 -6
- package/dist/packages/select/select.stories.d.ts +3 -3
- package/dist/packages/select/select.stories.js +51 -48
- package/dist/packages/select/select.test.d.ts +1 -1
- package/dist/packages/select/select.test.js +178 -179
- package/dist/packages/select/styles.js +2 -2
- package/dist/packages/slider/Slider.d.ts +1 -1
- package/dist/packages/slider/Slider.js +4 -4
- package/dist/packages/slider/index.d.ts +2 -2
- package/dist/packages/slider/index.js +2 -2
- package/dist/packages/slider/react.d.ts +4 -4
- package/dist/packages/slider/react.js +9 -9
- package/dist/packages/slider/slider.d.ts +17 -17
- package/dist/packages/slider/slider.hydration.test.d.ts +1 -1
- package/dist/packages/slider/slider.hydration.test.js +40 -16
- package/dist/packages/slider/slider.js +485 -467
- package/dist/packages/slider/slider.js.map +4 -4
- package/dist/packages/slider/slider.react.stories.d.ts +4 -4
- package/dist/packages/slider/slider.react.stories.js +29 -32
- package/dist/packages/slider/slider.react.test.js +6 -6
- package/dist/packages/slider/slider.stories.d.ts +7 -7
- package/dist/packages/slider/slider.stories.js +333 -340
- package/dist/packages/slider/slider.test.d.ts +5 -5
- package/dist/packages/slider/slider.test.js +367 -334
- package/dist/packages/slider/styles/w-slider.styles.js +166 -148
- package/dist/packages/slider/styles.js +2 -2
- package/dist/packages/slider-thumb/SliderThumb.d.ts +1 -1
- package/dist/packages/slider-thumb/SliderThumb.js +4 -4
- package/dist/packages/slider-thumb/oddbird-css-anchor-positioning.d.ts +1 -1
- package/dist/packages/slider-thumb/oddbird-css-anchor-positioning.js +1 -1
- package/dist/packages/slider-thumb/react.d.ts +5 -5
- package/dist/packages/slider-thumb/react.js +11 -9
- package/dist/packages/slider-thumb/slider-thumb.d.ts +17 -17
- package/dist/packages/slider-thumb/slider-thumb.hydration.test.d.ts +1 -1
- package/dist/packages/slider-thumb/slider-thumb.hydration.test.js +26 -17
- package/dist/packages/slider-thumb/slider-thumb.js +550 -553
- package/dist/packages/slider-thumb/slider-thumb.js.map +4 -4
- package/dist/packages/slider-thumb/slider-thumb.react.test.js +9 -5
- package/dist/packages/slider-thumb/styles/w-slider-thumb.styles.js +189 -188
- package/dist/packages/slider-thumb/styles.js +2 -0
- package/dist/packages/snackbar/locales/da/messages.d.mts +1 -0
- package/dist/packages/snackbar/locales/da/messages.mjs +1 -0
- package/dist/packages/snackbar/locales/en/messages.d.mts +1 -0
- package/dist/packages/snackbar/locales/en/messages.mjs +1 -0
- package/dist/packages/snackbar/locales/fi/messages.d.mts +1 -0
- package/dist/packages/snackbar/locales/fi/messages.mjs +1 -0
- package/dist/packages/snackbar/locales/nb/messages.d.mts +1 -0
- package/dist/packages/snackbar/locales/nb/messages.mjs +1 -0
- package/dist/packages/snackbar/locales/sv/messages.d.mts +1 -0
- package/dist/packages/snackbar/locales/sv/messages.mjs +1 -0
- package/dist/packages/snackbar/react.d.ts +2 -0
- package/dist/packages/snackbar/react.js +11 -0
- package/dist/packages/snackbar/snackbar.d.ts +132 -0
- package/dist/packages/snackbar/snackbar.hydration.test.d.ts +1 -0
- package/dist/packages/snackbar/snackbar.hydration.test.js +13 -0
- package/dist/packages/snackbar/snackbar.js +2665 -0
- package/dist/packages/snackbar/snackbar.js.map +7 -0
- package/dist/packages/snackbar/snackbar.react.stories.d.ts +12 -0
- package/dist/packages/snackbar/snackbar.react.stories.js +160 -0
- package/dist/packages/snackbar/snackbar.stories.d.ts +20 -0
- package/dist/packages/snackbar/snackbar.stories.js +363 -0
- package/dist/packages/snackbar/snackbar.test.d.ts +4 -0
- package/dist/packages/snackbar/snackbar.test.js +17 -0
- package/dist/packages/snackbar/styles.d.ts +1 -0
- package/dist/packages/snackbar/styles.js +35 -0
- package/dist/packages/snackbar-item/react.d.ts +5 -0
- package/dist/packages/snackbar-item/react.js +16 -0
- package/dist/packages/snackbar-item/snackbar-item.d.ts +69 -0
- package/dist/packages/snackbar-item/snackbar-item.js +2620 -0
- package/dist/packages/snackbar-item/snackbar-item.js.map +7 -0
- package/dist/packages/snackbar-item/snackbar-item.react.test.d.ts +1 -0
- package/dist/packages/snackbar-item/snackbar-item.react.test.js +5 -0
- package/dist/packages/snackbar-item/styles.d.ts +1 -0
- package/dist/packages/snackbar-item/styles.js +133 -0
- package/dist/packages/step/react.d.ts +1 -1
- package/dist/packages/step/react.js +4 -4
- package/dist/packages/step/step.d.ts +2 -2
- package/dist/packages/step/step.hydration.test.d.ts +1 -1
- package/dist/packages/step/step.hydration.test.js +10 -10
- package/dist/packages/step/step.js +337 -315
- package/dist/packages/step/step.js.map +4 -4
- package/dist/packages/step-indicator/index.d.ts +2 -2
- package/dist/packages/step-indicator/index.js +2 -2
- package/dist/packages/step-indicator/react.d.ts +2 -2
- package/dist/packages/step-indicator/react.js +5 -5
- package/dist/packages/step-indicator/step-indicator.a11y.test.d.ts +2 -2
- package/dist/packages/step-indicator/step-indicator.a11y.test.js +48 -46
- package/dist/packages/step-indicator/step-indicator.d.ts +1 -1
- package/dist/packages/step-indicator/step-indicator.hydration.test.d.ts +1 -1
- package/dist/packages/step-indicator/step-indicator.hydration.test.js +10 -10
- package/dist/packages/step-indicator/step-indicator.js +285 -281
- package/dist/packages/step-indicator/step-indicator.js.map +3 -3
- package/dist/packages/step-indicator/stepindicator.react.stories.d.ts +2 -2
- package/dist/packages/step-indicator/stepindicator.react.stories.js +3 -3
- package/dist/packages/step-indicator/stepindicator.stories.d.ts +3 -3
- package/dist/packages/step-indicator/stepindicator.stories.js +129 -129
- package/dist/packages/step-indicator/styles.js +2 -2
- package/dist/packages/styles.js +277 -275
- package/dist/packages/switch/react.d.ts +1 -1
- package/dist/packages/switch/react.js +6 -6
- package/dist/packages/switch/styles.js +2 -2
- package/dist/packages/switch/switch.a11y.test.d.ts +1 -1
- package/dist/packages/switch/switch.a11y.test.js +46 -38
- package/dist/packages/switch/switch.d.ts +3 -3
- package/dist/packages/switch/switch.hydration.test.d.ts +1 -1
- package/dist/packages/switch/switch.hydration.test.js +23 -23
- package/dist/packages/switch/switch.js +304 -304
- package/dist/packages/switch/switch.js.map +3 -3
- package/dist/packages/switch/switch.react.stories.d.ts +2 -2
- package/dist/packages/switch/switch.react.stories.js +2 -2
- package/dist/packages/switch/switch.stories.d.ts +2 -2
- package/dist/packages/switch/switch.stories.js +42 -37
- package/dist/packages/switch/switch.test.d.ts +1 -1
- package/dist/packages/switch/switch.test.js +30 -35
- package/dist/packages/tab/react.d.ts +9 -7
- package/dist/packages/tab/react.js +11 -10
- package/dist/packages/tab/styles.d.ts +1 -0
- package/dist/packages/tab/styles.js +2 -0
- package/dist/packages/tab/tab.d.ts +6 -6
- package/dist/packages/tab/tab.hydration.test.d.ts +1 -1
- package/dist/packages/tab/tab.hydration.test.js +18 -12
- package/dist/packages/tab/tab.js +309 -308
- package/dist/packages/tab/tab.js.map +4 -4
- package/dist/packages/tab/tab.react.test.js +5 -3
- package/dist/packages/tab-panel/react.d.ts +3 -2
- package/dist/packages/tab-panel/react.js +11 -5
- package/dist/packages/tab-panel/tab-panel.d.ts +3 -3
- package/dist/packages/tab-panel/tab-panel.hydration.test.d.ts +1 -1
- package/dist/packages/tab-panel/tab-panel.hydration.test.js +13 -10
- package/dist/packages/tab-panel/tab-panel.js +293 -291
- package/dist/packages/tab-panel/tab-panel.js.map +3 -3
- package/dist/packages/tabs/index.d.ts +4 -4
- package/dist/packages/tabs/index.js +3 -3
- package/dist/packages/tabs/react.d.ts +27 -8
- package/dist/packages/tabs/react.js +30 -9
- package/dist/packages/tabs/styles.js +2 -2
- package/dist/packages/tabs/tabs.a11y.test.d.ts +3 -3
- package/dist/packages/tabs/tabs.a11y.test.js +188 -169
- package/dist/packages/tabs/tabs.d.ts +6 -5
- package/dist/packages/tabs/tabs.hydration.test.d.ts +3 -1
- package/dist/packages/tabs/tabs.hydration.test.js +22 -8
- package/dist/packages/tabs/tabs.js +293 -286
- package/dist/packages/tabs/tabs.js.map +3 -3
- package/dist/packages/tabs/tabs.react.stories.d.ts +12 -10
- package/dist/packages/tabs/tabs.react.stories.js +28 -28
- package/dist/packages/tabs/tabs.stories.d.ts +4 -4
- package/dist/packages/tabs/tabs.stories.js +101 -95
- package/dist/packages/tabs/tabs.test.d.ts +3 -3
- package/dist/packages/tabs/tabs.test.js +137 -123
- package/dist/packages/textarea/input-styles.d.ts +11 -0
- package/dist/packages/textarea/input-styles.js +88 -0
- package/dist/packages/textarea/react.d.ts +11 -11
- package/dist/packages/textarea/react.js +17 -17
- package/dist/packages/textarea/styles.js +2 -2
- package/dist/packages/textarea/textarea.a11y.test.d.ts +1 -1
- package/dist/packages/textarea/textarea.a11y.test.js +90 -58
- package/dist/packages/textarea/textarea.d.ts +11 -11
- package/dist/packages/textarea/textarea.hydration.test.d.ts +1 -1
- package/dist/packages/textarea/textarea.hydration.test.js +19 -19
- package/dist/packages/textarea/textarea.js +385 -304
- package/dist/packages/textarea/textarea.js.map +4 -4
- package/dist/packages/textarea/textarea.react.stories.d.ts +21 -21
- package/dist/packages/textarea/textarea.react.stories.js +13 -13
- package/dist/packages/textarea/textarea.react.test.js +7 -7
- package/dist/packages/textarea/textarea.stories.d.ts +3 -3
- package/dist/packages/textarea/textarea.stories.js +44 -42
- package/dist/packages/textarea/textarea.test.d.ts +1 -1
- package/dist/packages/textarea/textarea.test.js +124 -88
- package/dist/packages/textfield/input-styles.d.ts +11 -0
- package/dist/packages/textfield/input-styles.js +88 -0
- package/dist/packages/textfield/locales/da/messages.d.mts +1 -0
- package/dist/packages/textfield/locales/da/messages.mjs +1 -0
- package/dist/packages/textfield/locales/en/messages.d.mts +1 -0
- package/dist/packages/textfield/locales/en/messages.mjs +1 -0
- package/dist/packages/textfield/locales/fi/messages.d.mts +1 -0
- package/dist/packages/textfield/locales/fi/messages.mjs +1 -0
- package/dist/packages/textfield/locales/nb/messages.d.mts +1 -0
- package/dist/packages/textfield/locales/nb/messages.mjs +1 -0
- package/dist/packages/textfield/locales/sv/messages.d.mts +1 -0
- package/dist/packages/textfield/locales/sv/messages.mjs +1 -0
- package/dist/packages/textfield/react.d.ts +11 -11
- package/dist/packages/textfield/react.js +17 -17
- package/dist/packages/textfield/styles/w-textfield.styles.js +60 -58
- package/dist/packages/textfield/styles.js +2 -2
- package/dist/packages/textfield/textfield.d.ts +36 -26
- package/dist/packages/textfield/textfield.hydration.test.d.ts +1 -1
- package/dist/packages/textfield/textfield.hydration.test.js +19 -19
- package/dist/packages/textfield/textfield.js +468 -373
- package/dist/packages/textfield/textfield.js.map +4 -4
- package/dist/packages/textfield/textfield.react.stories.d.ts +21 -21
- package/dist/packages/textfield/textfield.react.stories.js +31 -31
- package/dist/packages/textfield/textfield.react.test.js +7 -7
- package/dist/packages/textfield/textfield.stories.d.ts +4 -4
- package/dist/packages/textfield/textfield.stories.js +107 -89
- package/dist/packages/textfield/textfield.test.d.ts +2 -2
- package/dist/packages/textfield/textfield.test.js +103 -71
- package/dist/packages/toast/api.d.ts +2 -2
- package/dist/packages/toast/api.js +3 -3
- package/dist/packages/toast/index.d.ts +5 -5
- package/dist/packages/toast/index.js +5 -5
- package/dist/packages/toast/styles.js +2 -2
- package/dist/packages/toast/toast.d.ts +5 -5
- package/dist/packages/toast/toast.js +349 -320
- package/dist/packages/toast/toast.js.map +4 -4
- package/dist/packages/toast/toast.stories.d.ts +5 -9
- package/dist/packages/toast/toast.stories.js +37 -33
- package/dist/packages/toast/toast.test.d.ts +1 -1
- package/dist/packages/toast/toast.test.js +48 -31
- package/dist/packages/toast/types.d.ts +1 -1
- 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.d.ts +2 -2
- package/dist/packages/toast-container/toast-container.js +295 -294
- package/dist/packages/toast-container/toast-container.js.map +4 -4
- package/dist/packages/utils/element-collapse.d.ts +12 -0
- package/dist/packages/utils/element-collapse.js +102 -0
- package/dist/packages/utils/expand-transition.d.ts +1 -1
- package/dist/packages/utils/expand-transition.js +12 -10
- package/dist/packages/utils/unstyled-heading.d.ts +1 -1
- package/dist/packages/utils/unstyled-heading.js +4 -4
- package/dist/packages/utils/window-exists.js +1 -1
- package/dist/packages/utils.js +2 -2
- package/dist/setup-tests.d.ts +3 -3
- package/dist/setup-tests.js +16 -13
- package/dist/tests/react-hydration.js +29 -30
- package/dist/tests/react-ssr-attributes.d.ts +1 -1
- package/dist/tests/react-ssr-attributes.js +4 -4
- package/dist/web-types.json +566 -301
- package/eik/index.js +96 -0
- package/package.json +35 -29
- 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.js +0 -213
- /package/dist/packages/{link/styles/w-link.styles.d.ts → slider-thumb/styles.d.ts} +0 -0
package/dist/web-types.json
CHANGED
|
@@ -1,57 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"name": "@warp-ds/elements",
|
|
4
|
-
"version": "2.10.0-next.
|
|
4
|
+
"version": "2.10.0-next.19",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
8
8
|
"elements": [
|
|
9
|
-
{
|
|
10
|
-
"name": "w-icon",
|
|
11
|
-
"description": "\n---\n",
|
|
12
|
-
"doc-url": "",
|
|
13
|
-
"attributes": [
|
|
14
|
-
{
|
|
15
|
-
"name": "name",
|
|
16
|
-
"description": "Icon filename (without .svg)",
|
|
17
|
-
"value": { "type": "string" }
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
"name": "size",
|
|
21
|
-
"description": "Size: small, medium, large or pixel value (e.g. \"32px\")",
|
|
22
|
-
"value": { "type": "'small' | 'medium' | 'large' | string" }
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
"name": "locale",
|
|
26
|
-
"description": "Locale used in CDN URL",
|
|
27
|
-
"value": { "type": "string" }
|
|
28
|
-
}
|
|
29
|
-
],
|
|
30
|
-
"events": [],
|
|
31
|
-
"js": {
|
|
32
|
-
"properties": [
|
|
33
|
-
{
|
|
34
|
-
"name": "name",
|
|
35
|
-
"description": "Icon filename (without .svg)",
|
|
36
|
-
"type": "string"
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
"name": "size",
|
|
40
|
-
"description": "Size: small, medium, large or pixel value (e.g. \"32px\")",
|
|
41
|
-
"type": "'small' | 'medium' | 'large' | string"
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
"name": "locale",
|
|
45
|
-
"description": "Locale used in CDN URL",
|
|
46
|
-
"type": "string"
|
|
47
|
-
}
|
|
48
|
-
],
|
|
49
|
-
"events": []
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
9
|
{
|
|
53
10
|
"name": "w-textfield",
|
|
54
|
-
"description": "A single-line input component used for entering and editing textual or numeric data.\n---\n\n\n### **Slots:**\n - **suffix** - Use with `<w-affix>` to include a suffix, for example the unit for a number (e. g. km or sek).\n- **prefix** - Use with `<w-affix>` to include a prefix, for example a search icon.",
|
|
11
|
+
"description": "A single-line input component used for entering and editing textual or numeric data.\n---\n\n\n### **Slots:**\n - **suffix** - Use with `<w-affix>` to include a suffix, for example the unit for a number (e. g. km or sek).\n- **prefix** - Use with `<w-affix>` to include a prefix, for example a search icon. ## Accessibility Note for Affixes Due to shadow DOM boundaries, affix content cannot be connected to the input via ARIA references. For non-interactive affixes (text labels like currency symbols), consider including that information in the main label or placeholder text instead for better screen reader support.",
|
|
55
12
|
"doc-url": "",
|
|
56
13
|
"attributes": [
|
|
57
14
|
{
|
|
@@ -67,49 +24,54 @@
|
|
|
67
24
|
{
|
|
68
25
|
"name": "label",
|
|
69
26
|
"description": "Either a `label` or an `aria-label` must be provided.",
|
|
70
|
-
"value": { "type": "string" }
|
|
27
|
+
"value": { "type": "string | undefined" }
|
|
71
28
|
},
|
|
72
29
|
{
|
|
73
30
|
"name": "help-text",
|
|
74
31
|
"description": "Use in combination with `invalid` to show as a validation error message,\nor on its own to show a help text.",
|
|
75
|
-
"value": { "type": "string" }
|
|
32
|
+
"value": { "type": "string | undefined" }
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"name": "optional",
|
|
36
|
+
"description": "Whether to show the optional indicator after the label.",
|
|
37
|
+
"value": { "type": "boolean", "default": "false" }
|
|
76
38
|
},
|
|
77
39
|
{
|
|
78
40
|
"name": "size",
|
|
79
41
|
"description": "Sets the [size](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#size) (width) of the input field to fit the expected length of inputs.",
|
|
80
|
-
"value": { "type": "string" }
|
|
42
|
+
"value": { "type": "string | undefined" }
|
|
81
43
|
},
|
|
82
44
|
{
|
|
83
45
|
"name": "max",
|
|
84
46
|
"description": "Use with `type=\"number\"` to set the [maximum allowed value](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#maxlength).",
|
|
85
|
-
"value": { "type": "number" }
|
|
47
|
+
"value": { "type": "number | undefined" }
|
|
86
48
|
},
|
|
87
49
|
{
|
|
88
50
|
"name": "min",
|
|
89
51
|
"description": "Use with `type=\"number\"` to set the [minimum allowed value](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#minlength).",
|
|
90
|
-
"value": { "type": "number" }
|
|
52
|
+
"value": { "type": "number | undefined" }
|
|
91
53
|
},
|
|
92
|
-
{ "name": "min-length", "value": { "type": "number" } },
|
|
54
|
+
{ "name": "min-length", "value": { "type": "number | undefined" } },
|
|
93
55
|
{
|
|
94
56
|
"name": "minlength",
|
|
95
57
|
"description": "For `text`, `search`, `url`, `tel`, `email` and `password` fields, sets the [minimum string length](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#minlength) required.",
|
|
96
|
-
"value": { "type": "number" }
|
|
58
|
+
"value": { "type": "number | undefined" }
|
|
97
59
|
},
|
|
98
|
-
{ "name": "max-length", "value": { "type": "number" } },
|
|
60
|
+
{ "name": "max-length", "value": { "type": "number | undefined" } },
|
|
99
61
|
{
|
|
100
62
|
"name": "maxlength",
|
|
101
63
|
"description": "For `text`, `search`, `url`, `tel`, `email` and `password` fields, sets the [maximum string length](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#maxlength) allowed.",
|
|
102
|
-
"value": { "type": "number" }
|
|
64
|
+
"value": { "type": "number | undefined" }
|
|
103
65
|
},
|
|
104
66
|
{
|
|
105
67
|
"name": "pattern",
|
|
106
68
|
"description": "Sets a [regular expression](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions) that the input's value must [match to pass validation](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#pattern)",
|
|
107
|
-
"value": { "type": "string" }
|
|
69
|
+
"value": { "type": "string | undefined" }
|
|
108
70
|
},
|
|
109
71
|
{
|
|
110
72
|
"name": "placeholder",
|
|
111
73
|
"description": "Set a text that is shown in the textfield when it doesn't have a value.\n\nPlaceholder text should not be used as a substitute for labeling the element with a visible label.",
|
|
112
|
-
"value": { "type": "string" }
|
|
74
|
+
"value": { "type": "string | undefined" }
|
|
113
75
|
},
|
|
114
76
|
{
|
|
115
77
|
"name": "read-only",
|
|
@@ -128,27 +90,29 @@
|
|
|
128
90
|
{
|
|
129
91
|
"name": "type",
|
|
130
92
|
"description": "The [type of input](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#input_types).",
|
|
131
|
-
"value": { "type": "string" }
|
|
93
|
+
"value": { "type": "string | undefined" }
|
|
132
94
|
},
|
|
133
95
|
{
|
|
134
96
|
"name": "value",
|
|
135
97
|
"description": "Lets you set the current value.",
|
|
136
|
-
"value": { "type": "string" }
|
|
98
|
+
"value": { "type": "string | undefined" }
|
|
137
99
|
},
|
|
138
100
|
{
|
|
139
101
|
"name": "name",
|
|
140
102
|
"description": "The [name](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#name) of the input field when submitting the form.",
|
|
141
|
-
"value": { "type": "string" }
|
|
103
|
+
"value": { "type": "string | undefined" }
|
|
142
104
|
},
|
|
143
105
|
{
|
|
144
106
|
"name": "step",
|
|
145
107
|
"description": "When used with `number` this attribute forces inputs to be a whole number of `step`.\n\nFor example with a `step=\"5\"` only values that divide evenly on 5 are allowed.\nUsing arrow up and down in the input field increments and decrements by 5.",
|
|
146
|
-
"value": { "type": "number" }
|
|
108
|
+
"value": { "type": "number | undefined" }
|
|
147
109
|
},
|
|
148
110
|
{
|
|
149
111
|
"name": "autocomplete",
|
|
150
112
|
"description": "A space-separated string that hints to browsers [what type of content it can suggest](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Attributes/autocomplete#value) to autofill.",
|
|
151
|
-
"value": {
|
|
113
|
+
"value": {
|
|
114
|
+
"type": "HTMLInputElement[\"autocomplete\"] | undefined"
|
|
115
|
+
}
|
|
152
116
|
}
|
|
153
117
|
],
|
|
154
118
|
"slots": [
|
|
@@ -158,7 +122,7 @@
|
|
|
158
122
|
},
|
|
159
123
|
{
|
|
160
124
|
"name": "prefix",
|
|
161
|
-
"description": "Use with `<w-affix>` to include a prefix, for example a search icon."
|
|
125
|
+
"description": "Use with `<w-affix>` to include a prefix, for example a search icon. ## Accessibility Note for Affixes Due to shadow DOM boundaries, affix content cannot be connected to the input via ARIA references. For non-interactive affixes (text labels like currency symbols), consider including that information in the main label or placeholder text instead for better screen reader support."
|
|
162
126
|
}
|
|
163
127
|
],
|
|
164
128
|
"events": [],
|
|
@@ -177,49 +141,54 @@
|
|
|
177
141
|
{
|
|
178
142
|
"name": "label",
|
|
179
143
|
"description": "Either a `label` or an `aria-label` must be provided.",
|
|
180
|
-
"type": "string"
|
|
144
|
+
"type": "string | undefined"
|
|
181
145
|
},
|
|
182
146
|
{
|
|
183
147
|
"name": "helpText",
|
|
184
148
|
"description": "Use in combination with `invalid` to show as a validation error message,\nor on its own to show a help text.",
|
|
185
|
-
"type": "string"
|
|
149
|
+
"type": "string | undefined"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"name": "optional",
|
|
153
|
+
"description": "Whether to show the optional indicator after the label.",
|
|
154
|
+
"type": "boolean"
|
|
186
155
|
},
|
|
187
156
|
{
|
|
188
157
|
"name": "size",
|
|
189
158
|
"description": "Sets the [size](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#size) (width) of the input field to fit the expected length of inputs.",
|
|
190
|
-
"type": "string"
|
|
159
|
+
"type": "string | undefined"
|
|
191
160
|
},
|
|
192
161
|
{
|
|
193
162
|
"name": "max",
|
|
194
163
|
"description": "Use with `type=\"number\"` to set the [maximum allowed value](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#maxlength).",
|
|
195
|
-
"type": "number"
|
|
164
|
+
"type": "number | undefined"
|
|
196
165
|
},
|
|
197
166
|
{
|
|
198
167
|
"name": "min",
|
|
199
168
|
"description": "Use with `type=\"number\"` to set the [minimum allowed value](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#minlength).",
|
|
200
|
-
"type": "number"
|
|
169
|
+
"type": "number | undefined"
|
|
201
170
|
},
|
|
202
|
-
{ "name": "minLength", "type": "number" },
|
|
171
|
+
{ "name": "minLength", "type": "number | undefined" },
|
|
203
172
|
{
|
|
204
173
|
"name": "minlength",
|
|
205
174
|
"description": "For `text`, `search`, `url`, `tel`, `email` and `password` fields, sets the [minimum string length](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#minlength) required.",
|
|
206
|
-
"type": "number"
|
|
175
|
+
"type": "number | undefined"
|
|
207
176
|
},
|
|
208
|
-
{ "name": "maxLength", "type": "number" },
|
|
177
|
+
{ "name": "maxLength", "type": "number | undefined" },
|
|
209
178
|
{
|
|
210
179
|
"name": "maxlength",
|
|
211
180
|
"description": "For `text`, `search`, `url`, `tel`, `email` and `password` fields, sets the [maximum string length](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#maxlength) allowed.",
|
|
212
|
-
"type": "number"
|
|
181
|
+
"type": "number | undefined"
|
|
213
182
|
},
|
|
214
183
|
{
|
|
215
184
|
"name": "pattern",
|
|
216
185
|
"description": "Sets a [regular expression](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions) that the input's value must [match to pass validation](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#pattern)",
|
|
217
|
-
"type": "string"
|
|
186
|
+
"type": "string | undefined"
|
|
218
187
|
},
|
|
219
188
|
{
|
|
220
189
|
"name": "placeholder",
|
|
221
190
|
"description": "Set a text that is shown in the textfield when it doesn't have a value.\n\nPlaceholder text should not be used as a substitute for labeling the element with a visible label.",
|
|
222
|
-
"type": "string"
|
|
191
|
+
"type": "string | undefined"
|
|
223
192
|
},
|
|
224
193
|
{ "name": "readOnly", "type": "boolean" },
|
|
225
194
|
{
|
|
@@ -235,32 +204,78 @@
|
|
|
235
204
|
{
|
|
236
205
|
"name": "type",
|
|
237
206
|
"description": "The [type of input](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#input_types).",
|
|
238
|
-
"type": "string"
|
|
207
|
+
"type": "string | undefined"
|
|
239
208
|
},
|
|
240
209
|
{
|
|
241
210
|
"name": "value",
|
|
242
211
|
"description": "Lets you set the current value.",
|
|
243
|
-
"type": "string"
|
|
212
|
+
"type": "string | undefined"
|
|
244
213
|
},
|
|
245
214
|
{
|
|
246
215
|
"name": "name",
|
|
247
216
|
"description": "The [name](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#name) of the input field when submitting the form.",
|
|
248
|
-
"type": "string"
|
|
217
|
+
"type": "string | undefined"
|
|
249
218
|
},
|
|
250
219
|
{
|
|
251
220
|
"name": "step",
|
|
252
221
|
"description": "When used with `number` this attribute forces inputs to be a whole number of `step`.\n\nFor example with a `step=\"5\"` only values that divide evenly on 5 are allowed.\nUsing arrow up and down in the input field increments and decrements by 5.",
|
|
253
|
-
"type": "number"
|
|
222
|
+
"type": "number | undefined"
|
|
254
223
|
},
|
|
255
224
|
{
|
|
256
225
|
"name": "autocomplete",
|
|
257
226
|
"description": "A space-separated string that hints to browsers [what type of content it can suggest](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Attributes/autocomplete#value) to autofill.",
|
|
258
|
-
"type": "
|
|
227
|
+
"type": "HTMLInputElement[\"autocomplete\"] | undefined"
|
|
259
228
|
},
|
|
260
229
|
{
|
|
261
230
|
"name": "formatter",
|
|
262
231
|
"description": "Function to format value when the input field.\n\nOnly active when the input field does not have focus,\nsimilar to the accessible input [masking example from Filament Group](https://filamentgroup.github.io/politespace/demo/demo.html).",
|
|
263
|
-
"type": "(value: string) => string"
|
|
232
|
+
"type": "((value: string) => string) | undefined"
|
|
233
|
+
}
|
|
234
|
+
],
|
|
235
|
+
"events": []
|
|
236
|
+
}
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
"name": "w-icon",
|
|
240
|
+
"description": "\n---\n",
|
|
241
|
+
"doc-url": "",
|
|
242
|
+
"attributes": [
|
|
243
|
+
{
|
|
244
|
+
"name": "name",
|
|
245
|
+
"description": "Icon filename (without .svg)",
|
|
246
|
+
"value": { "type": "string" }
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"name": "size",
|
|
250
|
+
"description": "Size: small, medium, large or pixel value (e.g. \"32px\").",
|
|
251
|
+
"value": {
|
|
252
|
+
"type": "'small' | 'medium' | 'large' | `${number}px` | undefined",
|
|
253
|
+
"default": "\"medium\""
|
|
254
|
+
}
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
"name": "locale",
|
|
258
|
+
"description": "Locale used for `<title>` text.\n\nReads the `lang` attribute from `<html>`, falls back to 'en'.",
|
|
259
|
+
"value": { "type": "string" }
|
|
260
|
+
}
|
|
261
|
+
],
|
|
262
|
+
"events": [],
|
|
263
|
+
"js": {
|
|
264
|
+
"properties": [
|
|
265
|
+
{
|
|
266
|
+
"name": "name",
|
|
267
|
+
"description": "Icon filename (without .svg)",
|
|
268
|
+
"type": "string"
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
"name": "size",
|
|
272
|
+
"description": "Size: small, medium, large or pixel value (e.g. \"32px\").",
|
|
273
|
+
"type": "'small' | 'medium' | 'large' | `${number}px` | undefined"
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
"name": "locale",
|
|
277
|
+
"description": "Locale used for `<title>` text.\n\nReads the `lang` attribute from `<html>`, falls back to 'en'.",
|
|
278
|
+
"type": "string"
|
|
264
279
|
}
|
|
265
280
|
],
|
|
266
281
|
"events": []
|
|
@@ -268,7 +283,7 @@
|
|
|
268
283
|
},
|
|
269
284
|
{
|
|
270
285
|
"name": "w-affix",
|
|
271
|
-
"description": "This component is usually used in other components like form elements to show a prefix or suffix. See for example `w-textfield`.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-affix--docs)\n---\n",
|
|
286
|
+
"description": "This component is usually used in other components like form elements to show a prefix or suffix. See for example `w-textfield`.\n\n## Accessibility Note\nDue to shadow DOM encapsulation, ARIA attributes (like `aria-describedby`, `aria-labelledby`)\ncannot reference elements across shadow boundaries. This means:\n- Non-interactive affixes (text labels, icons) cannot be connected to the parent input via ARIA\n- Interactive affixes (buttons) must have their own `aria-label` (already implemented)\n- Do NOT attempt to reference affix content from parent components via ARIA ID references - it won't work\n\nFor non-interactive labels (e.g., currency symbols), consider including the information in the\nmain label or placeholder instead of relying on ARIA to announce affix content.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-affix--docs)\n---\n",
|
|
272
287
|
"doc-url": "",
|
|
273
288
|
"attributes": [
|
|
274
289
|
{
|
|
@@ -285,7 +300,10 @@
|
|
|
285
300
|
"description": "Add this property to render a clickable Warp search icon.",
|
|
286
301
|
"value": { "type": "boolean", "default": "false" }
|
|
287
302
|
},
|
|
288
|
-
{
|
|
303
|
+
{
|
|
304
|
+
"name": "label",
|
|
305
|
+
"value": { "type": "string", "default": "\"\"" }
|
|
306
|
+
},
|
|
289
307
|
{
|
|
290
308
|
"name": "icon",
|
|
291
309
|
"value": { "type": "string | null", "default": "null" }
|
|
@@ -321,7 +339,7 @@
|
|
|
321
339
|
"name": "variant",
|
|
322
340
|
"value": {
|
|
323
341
|
"type": "'negative' | 'positive' | 'warning' | 'info'",
|
|
324
|
-
"default": "
|
|
342
|
+
"default": "\"info\""
|
|
325
343
|
}
|
|
326
344
|
},
|
|
327
345
|
{
|
|
@@ -330,7 +348,7 @@
|
|
|
330
348
|
},
|
|
331
349
|
{
|
|
332
350
|
"name": "role",
|
|
333
|
-
"value": { "type": "string", "default": "
|
|
351
|
+
"value": { "type": "string", "default": "\"alert\"" }
|
|
334
352
|
}
|
|
335
353
|
],
|
|
336
354
|
"events": [],
|
|
@@ -353,44 +371,90 @@
|
|
|
353
371
|
"attributes": [
|
|
354
372
|
{
|
|
355
373
|
"name": "autofocus",
|
|
374
|
+
"description": "Focus the link after it is rendered",
|
|
356
375
|
"value": { "type": "boolean", "default": "false" }
|
|
357
376
|
},
|
|
358
377
|
{
|
|
359
378
|
"name": "variant",
|
|
379
|
+
"description": "Visual style for the link/button.",
|
|
360
380
|
"value": {
|
|
361
|
-
"type": "'negative' | 'primary' | 'secondary' | 'negativeQuiet' | 'utility' | 'quiet' | 'utilityQuiet' | 'overlay' | 'overlayInverted' | 'overlayQuiet' | 'overlayInvertedQuiet'"
|
|
381
|
+
"type": "'negative' | 'primary' | 'secondary' | 'negativeQuiet' | 'utility' | 'quiet' | 'utilityQuiet' | 'overlay' | 'overlayInverted' | 'overlayQuiet' | 'overlayInvertedQuiet' | undefined"
|
|
362
382
|
}
|
|
363
383
|
},
|
|
364
384
|
{
|
|
365
385
|
"name": "small",
|
|
386
|
+
"description": "Render a smaller version",
|
|
366
387
|
"value": { "type": "boolean", "default": "false" }
|
|
367
388
|
},
|
|
368
|
-
{
|
|
389
|
+
{
|
|
390
|
+
"name": "href",
|
|
391
|
+
"description": "The URL the link points to",
|
|
392
|
+
"value": { "type": "string | undefined" }
|
|
393
|
+
},
|
|
369
394
|
{
|
|
370
395
|
"name": "disabled",
|
|
396
|
+
"description": "Applies disabled styling, but you need to disable clicks on your own.\n\nThe 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.",
|
|
371
397
|
"value": { "type": "boolean", "default": "false" }
|
|
372
398
|
},
|
|
373
|
-
{
|
|
374
|
-
|
|
399
|
+
{
|
|
400
|
+
"name": "target",
|
|
401
|
+
"description": "Where to display the linked URL (e.g. `_blank`)",
|
|
402
|
+
"value": { "type": "string | undefined" }
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
"name": "rel",
|
|
406
|
+
"description": "Relationship of the linked URL.\n\nIf `target=\"_blank\"` and `rel` is not provided, the component uses `noopener`.",
|
|
407
|
+
"value": { "type": "string | undefined" }
|
|
408
|
+
},
|
|
375
409
|
{
|
|
376
410
|
"name": "full-width",
|
|
411
|
+
"description": "Makes the link take up the full width of its parent",
|
|
377
412
|
"value": { "type": "boolean", "default": "false" }
|
|
378
413
|
}
|
|
379
414
|
],
|
|
380
415
|
"events": [],
|
|
381
416
|
"js": {
|
|
382
417
|
"properties": [
|
|
383
|
-
{
|
|
418
|
+
{
|
|
419
|
+
"name": "autofocus",
|
|
420
|
+
"description": "Focus the link after it is rendered",
|
|
421
|
+
"type": "boolean"
|
|
422
|
+
},
|
|
384
423
|
{
|
|
385
424
|
"name": "variant",
|
|
386
|
-
"
|
|
425
|
+
"description": "Visual style for the link/button.",
|
|
426
|
+
"type": "'negative' | 'primary' | 'secondary' | 'negativeQuiet' | 'utility' | 'quiet' | 'utilityQuiet' | 'overlay' | 'overlayInverted' | 'overlayQuiet' | 'overlayInvertedQuiet' | undefined"
|
|
387
427
|
},
|
|
388
|
-
{
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
{
|
|
428
|
+
{
|
|
429
|
+
"name": "small",
|
|
430
|
+
"description": "Render a smaller version",
|
|
431
|
+
"type": "boolean"
|
|
432
|
+
},
|
|
433
|
+
{
|
|
434
|
+
"name": "href",
|
|
435
|
+
"description": "The URL the link points to",
|
|
436
|
+
"type": "string | undefined"
|
|
437
|
+
},
|
|
438
|
+
{
|
|
439
|
+
"name": "disabled",
|
|
440
|
+
"description": "Applies disabled styling, but you need to disable clicks on your own.\n\nThe 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.",
|
|
441
|
+
"type": "boolean"
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
"name": "target",
|
|
445
|
+
"description": "Where to display the linked URL (e.g. `_blank`)",
|
|
446
|
+
"type": "string | undefined"
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
"name": "rel",
|
|
450
|
+
"description": "Relationship of the linked URL.\n\nIf `target=\"_blank\"` and `rel` is not provided, the component uses `noopener`.",
|
|
451
|
+
"type": "string | undefined"
|
|
452
|
+
},
|
|
453
|
+
{
|
|
454
|
+
"name": "fullWidth",
|
|
455
|
+
"description": "Makes the link take up the full width of its parent",
|
|
456
|
+
"type": "boolean"
|
|
457
|
+
}
|
|
394
458
|
],
|
|
395
459
|
"events": []
|
|
396
460
|
}
|
|
@@ -403,7 +467,7 @@
|
|
|
403
467
|
{
|
|
404
468
|
"name": "type",
|
|
405
469
|
"description": "Native button type.\nControls whether the internal button behaves as a regular button, submits a form, or resets a form. Defaults to `button`.",
|
|
406
|
-
"value": { "type": "'button' | 'submit' | 'reset'" }
|
|
470
|
+
"value": { "type": "'button' | 'submit' | 'reset' | undefined" }
|
|
407
471
|
},
|
|
408
472
|
{
|
|
409
473
|
"name": "autofocus",
|
|
@@ -414,7 +478,7 @@
|
|
|
414
478
|
"name": "variant",
|
|
415
479
|
"description": "Visual style of the button.\nDefaults to `secondary`. Use the variant that matches the action priority, risk, and placement.",
|
|
416
480
|
"value": {
|
|
417
|
-
"type": "'negative' | 'primary' | 'secondary' | 'negativeQuiet' | 'utility' | 'quiet' | 'utilityQuiet' | 'overlay' | 'overlayInverted' | 'overlayQuiet' | 'overlayInvertedQuiet' | 'pill' | 'link'"
|
|
481
|
+
"type": "'negative' | 'primary' | 'secondary' | 'negativeQuiet' | 'utility' | 'quiet' | 'utilityQuiet' | 'overlay' | 'overlayInverted' | 'overlayQuiet' | 'overlayInvertedQuiet' | 'pill' | 'link' | undefined"
|
|
418
482
|
}
|
|
419
483
|
},
|
|
420
484
|
{
|
|
@@ -440,12 +504,12 @@
|
|
|
440
504
|
{
|
|
441
505
|
"name": "href",
|
|
442
506
|
"description": "URL for rendering the button as a link.\nWhen set, the component renders `w-link` instead of a native `button`.",
|
|
443
|
-
"value": { "type": "string" }
|
|
507
|
+
"value": { "type": "string | undefined" }
|
|
444
508
|
},
|
|
445
509
|
{
|
|
446
510
|
"name": "target",
|
|
447
511
|
"description": "Link browsing context.\nPassed to the rendered link when `href` is set.",
|
|
448
|
-
"value": { "type": "string" }
|
|
512
|
+
"value": { "type": "string | undefined" }
|
|
449
513
|
},
|
|
450
514
|
{
|
|
451
515
|
"name": "disabled",
|
|
@@ -455,7 +519,7 @@
|
|
|
455
519
|
{
|
|
456
520
|
"name": "rel",
|
|
457
521
|
"description": "Link relationship.\nPassed to the rendered link when `href` is set. If `target=\"_blank\"` is set and `rel` is omitted, `noopener` is used.",
|
|
458
|
-
"value": { "type": "string" }
|
|
522
|
+
"value": { "type": "string | undefined" }
|
|
459
523
|
},
|
|
460
524
|
{
|
|
461
525
|
"name": "full-width",
|
|
@@ -465,27 +529,27 @@
|
|
|
465
529
|
{
|
|
466
530
|
"name": "button-class",
|
|
467
531
|
"description": "Deprecated class applied to the internal control\nThis 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.",
|
|
468
|
-
"value": { "type": "string" }
|
|
532
|
+
"value": { "type": "string | undefined" }
|
|
469
533
|
},
|
|
470
534
|
{
|
|
471
535
|
"name": "name",
|
|
472
536
|
"description": "Form control name.\nUsed when the button participates in form handling.",
|
|
473
|
-
"value": { "type": "string" }
|
|
537
|
+
"value": { "type": "string | undefined" }
|
|
474
538
|
},
|
|
475
539
|
{
|
|
476
540
|
"name": "value",
|
|
477
541
|
"description": "Form control value.\nUsed with `name` when the button participates in form handling. Resets to its initial value when the form is reset.",
|
|
478
|
-
"value": { "type": "string" }
|
|
542
|
+
"value": { "type": "string | undefined" }
|
|
479
543
|
},
|
|
480
544
|
{
|
|
481
545
|
"name": "commandfor",
|
|
482
546
|
"description": "The [commandfor HTML attribute](https://developer.mozilla.org/en-US/docs/Web/API/Invoker_Commands_API#html_attributes) for Invoker Commands.",
|
|
483
|
-
"value": { "type": "string" }
|
|
547
|
+
"value": { "type": "string | undefined" }
|
|
484
548
|
},
|
|
485
549
|
{
|
|
486
550
|
"name": "command",
|
|
487
551
|
"description": "The [command HTML attribute](https://developer.mozilla.org/en-US/docs/Web/API/Invoker_Commands_API#html_attributes) for Invoker Commands.",
|
|
488
|
-
"value": { "type": "string" }
|
|
552
|
+
"value": { "type": "string | undefined" }
|
|
489
553
|
}
|
|
490
554
|
],
|
|
491
555
|
"events": [],
|
|
@@ -494,7 +558,7 @@
|
|
|
494
558
|
{
|
|
495
559
|
"name": "type",
|
|
496
560
|
"description": "Native button type.\nControls whether the internal button behaves as a regular button, submits a form, or resets a form. Defaults to `button`.",
|
|
497
|
-
"type": "'button' | 'submit' | 'reset'"
|
|
561
|
+
"type": "'button' | 'submit' | 'reset' | undefined"
|
|
498
562
|
},
|
|
499
563
|
{
|
|
500
564
|
"name": "autofocus",
|
|
@@ -504,7 +568,7 @@
|
|
|
504
568
|
{
|
|
505
569
|
"name": "variant",
|
|
506
570
|
"description": "Visual style of the button.\nDefaults to `secondary`. Use the variant that matches the action priority, risk, and placement.",
|
|
507
|
-
"type": "'negative' | 'primary' | 'secondary' | 'negativeQuiet' | 'utility' | 'quiet' | 'utilityQuiet' | 'overlay' | 'overlayInverted' | 'overlayQuiet' | 'overlayInvertedQuiet' | 'pill' | 'link'"
|
|
571
|
+
"type": "'negative' | 'primary' | 'secondary' | 'negativeQuiet' | 'utility' | 'quiet' | 'utilityQuiet' | 'overlay' | 'overlayInverted' | 'overlayQuiet' | 'overlayInvertedQuiet' | 'pill' | 'link' | undefined"
|
|
508
572
|
},
|
|
509
573
|
{
|
|
510
574
|
"name": "quiet",
|
|
@@ -529,12 +593,12 @@
|
|
|
529
593
|
{
|
|
530
594
|
"name": "href",
|
|
531
595
|
"description": "URL for rendering the button as a link.\nWhen set, the component renders `w-link` instead of a native `button`.",
|
|
532
|
-
"type": "string"
|
|
596
|
+
"type": "string | undefined"
|
|
533
597
|
},
|
|
534
598
|
{
|
|
535
599
|
"name": "target",
|
|
536
600
|
"description": "Link browsing context.\nPassed to the rendered link when `href` is set.",
|
|
537
|
-
"type": "string"
|
|
601
|
+
"type": "string | undefined"
|
|
538
602
|
},
|
|
539
603
|
{
|
|
540
604
|
"name": "disabled",
|
|
@@ -544,7 +608,7 @@
|
|
|
544
608
|
{
|
|
545
609
|
"name": "rel",
|
|
546
610
|
"description": "Link relationship.\nPassed to the rendered link when `href` is set. If `target=\"_blank\"` is set and `rel` is omitted, `noopener` is used.",
|
|
547
|
-
"type": "string"
|
|
611
|
+
"type": "string | undefined"
|
|
548
612
|
},
|
|
549
613
|
{
|
|
550
614
|
"name": "fullWidth",
|
|
@@ -554,27 +618,27 @@
|
|
|
554
618
|
{
|
|
555
619
|
"name": "buttonClass",
|
|
556
620
|
"description": "Deprecated class applied to the internal control\nThis 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.",
|
|
557
|
-
"type": "string"
|
|
621
|
+
"type": "string | undefined"
|
|
558
622
|
},
|
|
559
623
|
{
|
|
560
624
|
"name": "name",
|
|
561
625
|
"description": "Form control name.\nUsed when the button participates in form handling.",
|
|
562
|
-
"type": "string"
|
|
626
|
+
"type": "string | undefined"
|
|
563
627
|
},
|
|
564
628
|
{
|
|
565
629
|
"name": "value",
|
|
566
630
|
"description": "Form control value.\nUsed with `name` when the button participates in form handling. Resets to its initial value when the form is reset.",
|
|
567
|
-
"type": "string"
|
|
631
|
+
"type": "string | undefined"
|
|
568
632
|
},
|
|
569
633
|
{
|
|
570
634
|
"name": "commandfor",
|
|
571
635
|
"description": "The [commandfor HTML attribute](https://developer.mozilla.org/en-US/docs/Web/API/Invoker_Commands_API#html_attributes) for Invoker Commands.",
|
|
572
|
-
"type": "string"
|
|
636
|
+
"type": "string | undefined"
|
|
573
637
|
},
|
|
574
638
|
{
|
|
575
639
|
"name": "command",
|
|
576
640
|
"description": "The [command HTML attribute](https://developer.mozilla.org/en-US/docs/Web/API/Invoker_Commands_API#html_attributes) for Invoker Commands.",
|
|
577
|
-
"type": "string"
|
|
641
|
+
"type": "string | undefined"
|
|
578
642
|
}
|
|
579
643
|
],
|
|
580
644
|
"events": []
|
|
@@ -595,7 +659,7 @@
|
|
|
595
659
|
"description": "Preferred placement relative to the trigger element.\nSets the initial direction for positioning, for example `top`, `right`, `bottom`, or `left` variants.",
|
|
596
660
|
"value": {
|
|
597
661
|
"type": "'top' | 'top-start' | 'top-end' | 'right' | 'right-start' | 'right-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end'",
|
|
598
|
-
"default": "
|
|
662
|
+
"default": "\"bottom\""
|
|
599
663
|
}
|
|
600
664
|
},
|
|
601
665
|
{
|
|
@@ -737,14 +801,14 @@
|
|
|
737
801
|
"name": "variant",
|
|
738
802
|
"description": "Controls the badge color treatment.\nIf omitted, the badge uses neutral styling without reflecting a `variant` attribute.\nAccepted values are `neutral`, `info`, `positive`, `warning`, `negative`, `disabled`, `price`, and `sponsored`. If omitted, the badge uses neutral styling without reflecting a `variant` attribute.",
|
|
739
803
|
"value": {
|
|
740
|
-
"type": "'neutral' | 'info' | 'positive' | 'warning' | 'negative' | 'disabled' | 'price' | 'sponsored'"
|
|
804
|
+
"type": "'neutral' | 'info' | 'positive' | 'warning' | 'negative' | 'disabled' | 'price' | 'sponsored' | undefined"
|
|
741
805
|
}
|
|
742
806
|
},
|
|
743
807
|
{
|
|
744
808
|
"name": "position",
|
|
745
809
|
"description": "Positions the badge in a corner of a parent element.\nUse 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.\nUse this with a parent element that has `position: relative`. Accepted values are `top-left`, `top-right`, `bottom-right`, and `bottom-left`.",
|
|
746
810
|
"value": {
|
|
747
|
-
"type": "'top-left' | 'top-right' | 'bottom-right' | 'bottom-left'"
|
|
811
|
+
"type": "'top-left' | 'top-right' | 'bottom-right' | 'bottom-left' | undefined"
|
|
748
812
|
}
|
|
749
813
|
}
|
|
750
814
|
],
|
|
@@ -760,12 +824,12 @@
|
|
|
760
824
|
{
|
|
761
825
|
"name": "variant",
|
|
762
826
|
"description": "Controls the badge color treatment.\nIf omitted, the badge uses neutral styling without reflecting a `variant` attribute.\nAccepted values are `neutral`, `info`, `positive`, `warning`, `negative`, `disabled`, `price`, and `sponsored`. If omitted, the badge uses neutral styling without reflecting a `variant` attribute.",
|
|
763
|
-
"type": "'neutral' | 'info' | 'positive' | 'warning' | 'negative' | 'disabled' | 'price' | 'sponsored'"
|
|
827
|
+
"type": "'neutral' | 'info' | 'positive' | 'warning' | 'negative' | 'disabled' | 'price' | 'sponsored' | undefined"
|
|
764
828
|
},
|
|
765
829
|
{
|
|
766
830
|
"name": "position",
|
|
767
831
|
"description": "Positions the badge in a corner of a parent element.\nUse 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.\nUse this with a parent element that has `position: relative`. Accepted values are `top-left`, `top-right`, `bottom-right`, and `bottom-left`.",
|
|
768
|
-
"type": "'top-left' | 'top-right' | 'bottom-right' | 'bottom-left'"
|
|
832
|
+
"type": "'top-left' | 'top-right' | 'bottom-right' | 'bottom-left' | undefined"
|
|
769
833
|
}
|
|
770
834
|
],
|
|
771
835
|
"events": []
|
|
@@ -799,7 +863,7 @@
|
|
|
799
863
|
{
|
|
800
864
|
"name": "role",
|
|
801
865
|
"description": "ARIA role for the box wrapper.\nDefaults to a role of `region`. Set `role=\"none\"` to override this behaviour for purely visual grouping, or set a specific role when the box has a clearer semantic purpose.",
|
|
802
|
-
"value": { "type": "string", "default": "
|
|
866
|
+
"value": { "type": "string", "default": "\"region\"" }
|
|
803
867
|
}
|
|
804
868
|
],
|
|
805
869
|
"events": [],
|
|
@@ -851,6 +915,42 @@
|
|
|
851
915
|
"events": []
|
|
852
916
|
}
|
|
853
917
|
},
|
|
918
|
+
{
|
|
919
|
+
"name": "w-breadcrumb-item",
|
|
920
|
+
"description": "Represents one item in a `w-breadcrumbs` trail.\nRenders the slotted label as a link when `href` is set, or as text when it is not, and adds a separator after non-current items.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/navigation-breadcrumbs--docs)\n---\n\n\n### **Slots:**\n - _default_ - The breadcrumb label content.",
|
|
921
|
+
"doc-url": "",
|
|
922
|
+
"attributes": [
|
|
923
|
+
{
|
|
924
|
+
"name": "current-page",
|
|
925
|
+
"description": "Marks this item as the current page.\nUse this on the final breadcrumb item so it exposes `aria-current=\"page\"` and does not render a trailing separator.",
|
|
926
|
+
"value": { "type": "boolean", "default": "false" }
|
|
927
|
+
},
|
|
928
|
+
{
|
|
929
|
+
"name": "href",
|
|
930
|
+
"description": "URL for linked breadcrumb items.\nWhen omitted, the item renders as non-focusable text.",
|
|
931
|
+
"value": { "type": "string | null", "default": "null" }
|
|
932
|
+
}
|
|
933
|
+
],
|
|
934
|
+
"slots": [
|
|
935
|
+
{ "name": "", "description": "The breadcrumb label content." }
|
|
936
|
+
],
|
|
937
|
+
"events": [],
|
|
938
|
+
"js": {
|
|
939
|
+
"properties": [
|
|
940
|
+
{
|
|
941
|
+
"name": "currentPage",
|
|
942
|
+
"description": "Marks this item as the current page.\nUse this on the final breadcrumb item so it exposes `aria-current=\"page\"` and does not render a trailing separator.",
|
|
943
|
+
"type": "boolean"
|
|
944
|
+
},
|
|
945
|
+
{
|
|
946
|
+
"name": "href",
|
|
947
|
+
"description": "URL for linked breadcrumb items.\nWhen omitted, the item renders as non-focusable text.",
|
|
948
|
+
"type": "string | null"
|
|
949
|
+
}
|
|
950
|
+
],
|
|
951
|
+
"events": []
|
|
952
|
+
}
|
|
953
|
+
},
|
|
854
954
|
{
|
|
855
955
|
"name": "w-card",
|
|
856
956
|
"description": "Card is a layout component used for separating content areas on a page.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/navigation-card--docs)\n---\n",
|
|
@@ -902,77 +1002,77 @@
|
|
|
902
1002
|
"attributes": [
|
|
903
1003
|
{
|
|
904
1004
|
"name": "name",
|
|
905
|
-
"description": "The name of the checkbox, submitted
|
|
1005
|
+
"description": "The name of the checkbox.\n\nWhen the checkbox is checked and belongs to a form, this name is submitted with the checkbox value. If the checkbox is inside a `w-checkbox-group` with a name, the group name is used when the checkbox does not have its own name.",
|
|
906
1006
|
"value": { "type": "string | undefined" }
|
|
907
1007
|
},
|
|
908
1008
|
{
|
|
909
1009
|
"name": "value",
|
|
910
|
-
"description": "The value
|
|
1010
|
+
"description": "The value submitted when the checkbox is checked.\n\nIf no value attribute is set, the checkbox defaults to `on`. Unchecked and disabled checkboxes do not submit a value.",
|
|
911
1011
|
"value": { "type": "string | null", "default": "null" }
|
|
912
1012
|
},
|
|
913
1013
|
{
|
|
914
1014
|
"name": "indeterminate",
|
|
915
|
-
"description": "
|
|
1015
|
+
"description": "Whether the checkbox is visually indeterminate.\n\nUse this for parent options that represent a mixed set of child selections. Clicking the checkbox clears the indeterminate state and sets the checkbox to checked.",
|
|
916
1016
|
"value": { "type": "boolean", "default": "false" }
|
|
917
1017
|
},
|
|
918
1018
|
{
|
|
919
1019
|
"name": "checked",
|
|
920
|
-
"description": "
|
|
1020
|
+
"description": "Whether the checkbox is checked.\n\nChecked checkboxes submit their value with form data. The property is reflected to the `checked` attribute.",
|
|
921
1021
|
"value": { "type": "boolean", "default": "false" }
|
|
922
1022
|
},
|
|
923
1023
|
{
|
|
924
1024
|
"name": "disabled",
|
|
925
|
-
"description": "
|
|
1025
|
+
"description": "Whether the checkbox is disabled.\n\nDisabled checkboxes cannot be focused, changed, or submitted with form data.",
|
|
926
1026
|
"value": { "type": "boolean", "default": "false" }
|
|
927
1027
|
},
|
|
928
1028
|
{
|
|
929
1029
|
"name": "required",
|
|
930
|
-
"description": "
|
|
1030
|
+
"description": "Whether the checkbox must be checked before form submission.\n\nA required checkbox is invalid until it is checked. For requiring at least one option in a set, use `required` on `w-checkbox-group`.",
|
|
931
1031
|
"value": { "type": "boolean", "default": "false" }
|
|
932
1032
|
},
|
|
933
1033
|
{
|
|
934
1034
|
"name": "invalid",
|
|
935
|
-
"description": "
|
|
1035
|
+
"description": "Whether the checkbox is visually invalid.\n\nUse this to show an externally managed validation error. Required validation also sets the invalid state after the user interacts with the checkbox or tries to submit the form.",
|
|
936
1036
|
"value": { "type": "boolean", "default": "false" }
|
|
937
1037
|
}
|
|
938
1038
|
],
|
|
939
1039
|
"events": [{ "name": "change", "type": "Event" }],
|
|
940
1040
|
"js": {
|
|
941
1041
|
"properties": [
|
|
942
|
-
{ "name": "input", "type": "HTMLInputElement
|
|
1042
|
+
{ "name": "input", "type": "HTMLInputElement" },
|
|
943
1043
|
{
|
|
944
1044
|
"name": "name",
|
|
945
|
-
"description": "The name of the checkbox, submitted
|
|
1045
|
+
"description": "The name of the checkbox.\n\nWhen the checkbox is checked and belongs to a form, this name is submitted with the checkbox value. If the checkbox is inside a `w-checkbox-group` with a name, the group name is used when the checkbox does not have its own name.",
|
|
946
1046
|
"type": "string | undefined"
|
|
947
1047
|
},
|
|
948
1048
|
{
|
|
949
1049
|
"name": "value",
|
|
950
|
-
"description": "The value
|
|
1050
|
+
"description": "The value submitted when the checkbox is checked.\n\nIf no value attribute is set, the checkbox defaults to `on`. Unchecked and disabled checkboxes do not submit a value.",
|
|
951
1051
|
"type": "string | null"
|
|
952
1052
|
},
|
|
953
1053
|
{
|
|
954
1054
|
"name": "indeterminate",
|
|
955
|
-
"description": "
|
|
1055
|
+
"description": "Whether the checkbox is visually indeterminate.\n\nUse this for parent options that represent a mixed set of child selections. Clicking the checkbox clears the indeterminate state and sets the checkbox to checked.",
|
|
956
1056
|
"type": "boolean"
|
|
957
1057
|
},
|
|
958
1058
|
{
|
|
959
1059
|
"name": "checked",
|
|
960
|
-
"description": "
|
|
1060
|
+
"description": "Whether the checkbox is checked.\n\nChecked checkboxes submit their value with form data. The property is reflected to the `checked` attribute.",
|
|
961
1061
|
"type": "boolean"
|
|
962
1062
|
},
|
|
963
1063
|
{
|
|
964
1064
|
"name": "disabled",
|
|
965
|
-
"description": "
|
|
1065
|
+
"description": "Whether the checkbox is disabled.\n\nDisabled checkboxes cannot be focused, changed, or submitted with form data.",
|
|
966
1066
|
"type": "boolean"
|
|
967
1067
|
},
|
|
968
1068
|
{
|
|
969
1069
|
"name": "required",
|
|
970
|
-
"description": "
|
|
1070
|
+
"description": "Whether the checkbox must be checked before form submission.\n\nA required checkbox is invalid until it is checked. For requiring at least one option in a set, use `required` on `w-checkbox-group`.",
|
|
971
1071
|
"type": "boolean"
|
|
972
1072
|
},
|
|
973
1073
|
{
|
|
974
1074
|
"name": "invalid",
|
|
975
|
-
"description": "
|
|
1075
|
+
"description": "Whether the checkbox is visually invalid.\n\nUse this to show an externally managed validation error. Required validation also sets the invalid state after the user interacts with the checkbox or tries to submit the form.",
|
|
976
1076
|
"type": "boolean"
|
|
977
1077
|
},
|
|
978
1078
|
{
|
|
@@ -996,33 +1096,37 @@
|
|
|
996
1096
|
},
|
|
997
1097
|
{
|
|
998
1098
|
"name": "w-checkbox-group",
|
|
999
|
-
"description": "\n---\n\n\n### **Methods:**\n - **checkValidity(): _boolean_** - Checks whether the group passes constraint validation\n- **reportValidity(): _boolean_** - Checks validity and shows the validation message if invalid\n- **focus(options: _FocusOptions_)** - Sets focus on the checkbox group.",
|
|
1099
|
+
"description": "Checkboxes allow users to select multiple options from a list of choices.\n\nUse with `w-checkbox`.\n\n## Architecture Note\nThis component uses a <div> wrapper instead of the more semantic <fieldset> element.\nNote that w-radio-group uses <fieldset>, which provides better accessibility and follows\nHTML best practices. This inconsistency exists for historical reasons and may be addressed\nin a future major version to align both on the more semantic approach.\n\nTODO: Align w-checkbox-group to use <fieldset> in a future major version after assessing\nbackwards compatibility implications (CSS selectors, etc.).\n---\n\n\n### **Methods:**\n - **checkValidity(): _boolean_** - Checks whether the group passes constraint validation\n- **reportValidity(): _boolean_** - Checks validity and shows the validation message if invalid\n- **focus(options: _FocusOptions_)** - Sets focus on the checkbox group.",
|
|
1000
1100
|
"doc-url": "",
|
|
1001
1101
|
"attributes": [
|
|
1002
1102
|
{
|
|
1003
1103
|
"name": "label",
|
|
1004
|
-
"description": "The group label displayed above the checkboxes.",
|
|
1005
|
-
"value": { "type": "string" }
|
|
1104
|
+
"description": "The group label displayed above the checkboxes.\n\nUse this to describe the shared question or topic for the checkbox options. The label is connected to the internal group for assistive technologies.",
|
|
1105
|
+
"value": { "type": "string | undefined" }
|
|
1006
1106
|
},
|
|
1007
1107
|
{
|
|
1008
1108
|
"name": "name",
|
|
1009
|
-
"description": "The name applied to child checkboxes when they do not provide one.",
|
|
1010
|
-
"value": { "type": "string" }
|
|
1109
|
+
"description": "The name applied to child checkboxes when they do not provide one.\n\nUse 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`.",
|
|
1110
|
+
"value": { "type": "string | undefined" }
|
|
1011
1111
|
},
|
|
1012
1112
|
{
|
|
1013
1113
|
"name": "optional",
|
|
1014
|
-
"description": "Whether to show optional text next to the label.",
|
|
1114
|
+
"description": "Whether to show optional text next to the label.\n\nUse this to indicate that selecting an option from the group is not required.",
|
|
1015
1115
|
"value": { "type": "boolean", "default": "false" }
|
|
1016
1116
|
},
|
|
1017
|
-
{
|
|
1117
|
+
{
|
|
1118
|
+
"name": "help-text",
|
|
1119
|
+
"description": "Help text displayed below the checkbox group.\n\nUse this for supporting guidance or validation feedback. When required validation fails, the group replaces this text with the localized required message.",
|
|
1120
|
+
"value": { "type": "string | undefined" }
|
|
1121
|
+
},
|
|
1018
1122
|
{
|
|
1019
1123
|
"name": "required",
|
|
1020
|
-
"description": "
|
|
1124
|
+
"description": "Whether at least one checkbox in the group must be selected.\n\nRequired validation is managed by the group. The individual checkboxes provide the submitted form values.",
|
|
1021
1125
|
"value": { "type": "boolean", "default": "false" }
|
|
1022
1126
|
},
|
|
1023
1127
|
{
|
|
1024
1128
|
"name": "invalid",
|
|
1025
|
-
"description": "
|
|
1129
|
+
"description": "Whether the checkbox group is visually invalid.\n\nUse this to show an externally managed validation error for the group. The invalid state is also shared with child checkboxes for consistent styling and accessibility state.",
|
|
1026
1130
|
"value": { "type": "boolean", "default": "false" }
|
|
1027
1131
|
}
|
|
1028
1132
|
],
|
|
@@ -1031,28 +1135,32 @@
|
|
|
1031
1135
|
"properties": [
|
|
1032
1136
|
{
|
|
1033
1137
|
"name": "label",
|
|
1034
|
-
"description": "The group label displayed above the checkboxes.",
|
|
1035
|
-
"type": "string"
|
|
1138
|
+
"description": "The group label displayed above the checkboxes.\n\nUse this to describe the shared question or topic for the checkbox options. The label is connected to the internal group for assistive technologies.",
|
|
1139
|
+
"type": "string | undefined"
|
|
1036
1140
|
},
|
|
1037
1141
|
{
|
|
1038
1142
|
"name": "name",
|
|
1039
|
-
"description": "The name applied to child checkboxes when they do not provide one.",
|
|
1040
|
-
"type": "string"
|
|
1143
|
+
"description": "The name applied to child checkboxes when they do not provide one.\n\nUse 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`.",
|
|
1144
|
+
"type": "string | undefined"
|
|
1041
1145
|
},
|
|
1042
1146
|
{
|
|
1043
1147
|
"name": "optional",
|
|
1044
|
-
"description": "Whether to show optional text next to the label.",
|
|
1148
|
+
"description": "Whether to show optional text next to the label.\n\nUse this to indicate that selecting an option from the group is not required.",
|
|
1045
1149
|
"type": "boolean"
|
|
1046
1150
|
},
|
|
1047
|
-
{
|
|
1151
|
+
{
|
|
1152
|
+
"name": "helpText",
|
|
1153
|
+
"description": "Help text displayed below the checkbox group.\n\nUse this for supporting guidance or validation feedback. When required validation fails, the group replaces this text with the localized required message.",
|
|
1154
|
+
"type": "string | undefined"
|
|
1155
|
+
},
|
|
1048
1156
|
{
|
|
1049
1157
|
"name": "required",
|
|
1050
|
-
"description": "
|
|
1158
|
+
"description": "Whether at least one checkbox in the group must be selected.\n\nRequired validation is managed by the group. The individual checkboxes provide the submitted form values.",
|
|
1051
1159
|
"type": "boolean"
|
|
1052
1160
|
},
|
|
1053
1161
|
{
|
|
1054
1162
|
"name": "invalid",
|
|
1055
|
-
"description": "
|
|
1163
|
+
"description": "Whether the checkbox group is visually invalid.\n\nUse this to show an externally managed validation error for the group. The invalid state is also shared with child checkboxes for consistent styling and accessibility state.",
|
|
1056
1164
|
"type": "boolean"
|
|
1057
1165
|
}
|
|
1058
1166
|
],
|
|
@@ -1066,78 +1174,78 @@
|
|
|
1066
1174
|
"attributes": [
|
|
1067
1175
|
{
|
|
1068
1176
|
"name": "options",
|
|
1069
|
-
"description": "The available options to select from",
|
|
1177
|
+
"description": "The available options to select from.\n\nUse this for framework usage, application state, or remote search results. When `options` contains entries, it is used instead of child `<option>` elements.",
|
|
1070
1178
|
"value": { "type": "ComboboxOption[]", "default": "[]" }
|
|
1071
1179
|
},
|
|
1072
1180
|
{
|
|
1073
1181
|
"name": "label",
|
|
1074
|
-
"description": "
|
|
1075
|
-
"value": { "type": "string | undefined", "default": "
|
|
1182
|
+
"description": "The label displayed above the input.\n\nUse this to give the combobox a visible and accessible name.",
|
|
1183
|
+
"value": { "type": "string | undefined", "default": "\"\"" }
|
|
1076
1184
|
},
|
|
1077
1185
|
{
|
|
1078
1186
|
"name": "placeholder",
|
|
1079
|
-
"description": "
|
|
1080
|
-
"value": { "type": "string | undefined", "default": "
|
|
1187
|
+
"description": "Placeholder text displayed when the input is empty.\n\nUse this as a short hint for the expected input. Do not use placeholder text as a replacement for a label.",
|
|
1188
|
+
"value": { "type": "string | undefined", "default": "\"\"" }
|
|
1081
1189
|
},
|
|
1082
1190
|
{
|
|
1083
1191
|
"name": "value",
|
|
1084
|
-
"description": "The
|
|
1085
|
-
"value": { "type": "string", "default": "
|
|
1192
|
+
"description": "The selected or typed value.\n\nWhen an option is selected, this is set to the option value. The displayed text may differ when the option has a separate label.",
|
|
1193
|
+
"value": { "type": "string", "default": "\"\"" }
|
|
1086
1194
|
},
|
|
1087
1195
|
{
|
|
1088
1196
|
"name": "open-on-focus",
|
|
1089
|
-
"description": "Whether the
|
|
1197
|
+
"description": "Whether the option list opens when the input receives focus.\n\nUse this when users should see available options before they start typing.",
|
|
1090
1198
|
"value": { "type": "boolean", "default": "false" }
|
|
1091
1199
|
},
|
|
1092
1200
|
{
|
|
1093
1201
|
"name": "select-on-blur",
|
|
1094
|
-
"description": "
|
|
1202
|
+
"description": "Whether the active option is selected when the input loses focus.\n\nWhen enabled, the combobox selects the keyboard-highlighted option, or an option whose value exactly matches the current input value, on blur.",
|
|
1095
1203
|
"value": { "type": "boolean", "default": "true" }
|
|
1096
1204
|
},
|
|
1097
1205
|
{
|
|
1098
1206
|
"name": "match-text-segments",
|
|
1099
|
-
"description": "Whether
|
|
1207
|
+
"description": "Whether matching text segments in options are highlighted.\n\nUse this to visually emphasize the part of each option that matches the current input value.",
|
|
1100
1208
|
"value": { "type": "boolean", "default": "false" }
|
|
1101
1209
|
},
|
|
1102
1210
|
{
|
|
1103
1211
|
"name": "disable-static-filtering",
|
|
1104
|
-
"description": "
|
|
1212
|
+
"description": "Whether built-in client-side filtering is disabled.\n\nUse this for remote search or externally filtered results. When disabled, all entries in `options` are rendered as provided.",
|
|
1105
1213
|
"value": { "type": "boolean", "default": "false" }
|
|
1106
1214
|
},
|
|
1107
1215
|
{
|
|
1108
1216
|
"name": "invalid",
|
|
1109
|
-
"description": "
|
|
1217
|
+
"description": "Whether the combobox is visually invalid.\n\nUse this to show an externally managed validation error. Pair it with `help-text` to explain how to fix the error.",
|
|
1110
1218
|
"value": { "type": "boolean", "default": "false" }
|
|
1111
1219
|
},
|
|
1112
1220
|
{
|
|
1113
1221
|
"name": "help-text",
|
|
1114
|
-
"description": "
|
|
1115
|
-
"value": { "type": "string | undefined", "default": "
|
|
1222
|
+
"description": "Help text displayed below the input.\n\nUse this for supporting guidance or validation feedback.",
|
|
1223
|
+
"value": { "type": "string | undefined", "default": "\"\"" }
|
|
1116
1224
|
},
|
|
1117
1225
|
{
|
|
1118
1226
|
"name": "disabled",
|
|
1119
|
-
"description": "Whether the
|
|
1227
|
+
"description": "Whether the combobox is disabled.\n\nDisabled comboboxes cannot be focused, changed, or submitted with form data.",
|
|
1120
1228
|
"value": { "type": "boolean", "default": "false" }
|
|
1121
1229
|
},
|
|
1122
1230
|
{
|
|
1123
1231
|
"name": "required",
|
|
1124
|
-
"description": "Whether the
|
|
1232
|
+
"description": "Whether the combobox is required before form submission.\n\nUse this when the user must provide a value before submitting the form.",
|
|
1125
1233
|
"value": { "type": "boolean", "default": "false" }
|
|
1126
1234
|
},
|
|
1127
1235
|
{
|
|
1128
1236
|
"name": "optional",
|
|
1129
|
-
"description": "Whether to show optional text",
|
|
1237
|
+
"description": "Whether to show optional text next to the label.\n\nUse this to indicate that the combobox is not required.",
|
|
1130
1238
|
"value": { "type": "boolean", "default": "false" }
|
|
1131
1239
|
},
|
|
1132
1240
|
{
|
|
1133
1241
|
"name": "name",
|
|
1134
|
-
"description": "
|
|
1135
|
-
"value": { "type": "string | undefined", "default": "
|
|
1242
|
+
"description": "The name submitted with the combobox value.\n\nUse this when the combobox belongs to a form and its value should be included in form data.",
|
|
1243
|
+
"value": { "type": "string | undefined", "default": "\"\"" }
|
|
1136
1244
|
},
|
|
1137
1245
|
{
|
|
1138
1246
|
"name": "autocomplete",
|
|
1139
|
-
"description": "
|
|
1140
|
-
"value": { "type": "string | undefined", "default": "
|
|
1247
|
+
"description": "The autocomplete attribute passed to the internal input.\n\nDefaults to `off`. Set this when browser autocomplete should be enabled or scoped to a specific autocomplete token.",
|
|
1248
|
+
"value": { "type": "string | undefined", "default": "\"off\"" }
|
|
1141
1249
|
}
|
|
1142
1250
|
],
|
|
1143
1251
|
"events": [],
|
|
@@ -1145,77 +1253,77 @@
|
|
|
1145
1253
|
"properties": [
|
|
1146
1254
|
{
|
|
1147
1255
|
"name": "options",
|
|
1148
|
-
"description": "The available options to select from",
|
|
1256
|
+
"description": "The available options to select from.\n\nUse this for framework usage, application state, or remote search results. When `options` contains entries, it is used instead of child `<option>` elements.",
|
|
1149
1257
|
"type": "ComboboxOption[]"
|
|
1150
1258
|
},
|
|
1151
1259
|
{
|
|
1152
1260
|
"name": "label",
|
|
1153
|
-
"description": "
|
|
1261
|
+
"description": "The label displayed above the input.\n\nUse this to give the combobox a visible and accessible name.",
|
|
1154
1262
|
"type": "string | undefined"
|
|
1155
1263
|
},
|
|
1156
1264
|
{
|
|
1157
1265
|
"name": "placeholder",
|
|
1158
|
-
"description": "
|
|
1266
|
+
"description": "Placeholder text displayed when the input is empty.\n\nUse this as a short hint for the expected input. Do not use placeholder text as a replacement for a label.",
|
|
1159
1267
|
"type": "string | undefined"
|
|
1160
1268
|
},
|
|
1161
1269
|
{
|
|
1162
1270
|
"name": "value",
|
|
1163
|
-
"description": "The
|
|
1271
|
+
"description": "The selected or typed value.\n\nWhen an option is selected, this is set to the option value. The displayed text may differ when the option has a separate label.",
|
|
1164
1272
|
"type": "string"
|
|
1165
1273
|
},
|
|
1166
1274
|
{
|
|
1167
1275
|
"name": "openOnFocus",
|
|
1168
|
-
"description": "Whether the
|
|
1276
|
+
"description": "Whether the option list opens when the input receives focus.\n\nUse this when users should see available options before they start typing.",
|
|
1169
1277
|
"type": "boolean"
|
|
1170
1278
|
},
|
|
1171
1279
|
{
|
|
1172
1280
|
"name": "selectOnBlur",
|
|
1173
|
-
"description": "
|
|
1281
|
+
"description": "Whether the active option is selected when the input loses focus.\n\nWhen enabled, the combobox selects the keyboard-highlighted option, or an option whose value exactly matches the current input value, on blur.",
|
|
1174
1282
|
"type": "boolean"
|
|
1175
1283
|
},
|
|
1176
1284
|
{
|
|
1177
1285
|
"name": "matchTextSegments",
|
|
1178
|
-
"description": "Whether
|
|
1286
|
+
"description": "Whether matching text segments in options are highlighted.\n\nUse this to visually emphasize the part of each option that matches the current input value.",
|
|
1179
1287
|
"type": "boolean"
|
|
1180
1288
|
},
|
|
1181
1289
|
{
|
|
1182
1290
|
"name": "disableStaticFiltering",
|
|
1183
|
-
"description": "
|
|
1291
|
+
"description": "Whether built-in client-side filtering is disabled.\n\nUse this for remote search or externally filtered results. When disabled, all entries in `options` are rendered as provided.",
|
|
1184
1292
|
"type": "boolean"
|
|
1185
1293
|
},
|
|
1186
1294
|
{
|
|
1187
1295
|
"name": "invalid",
|
|
1188
|
-
"description": "
|
|
1296
|
+
"description": "Whether the combobox is visually invalid.\n\nUse this to show an externally managed validation error. Pair it with `help-text` to explain how to fix the error.",
|
|
1189
1297
|
"type": "boolean"
|
|
1190
1298
|
},
|
|
1191
1299
|
{
|
|
1192
1300
|
"name": "helpText",
|
|
1193
|
-
"description": "
|
|
1301
|
+
"description": "Help text displayed below the input.\n\nUse this for supporting guidance or validation feedback.",
|
|
1194
1302
|
"type": "string | undefined"
|
|
1195
1303
|
},
|
|
1196
1304
|
{
|
|
1197
1305
|
"name": "disabled",
|
|
1198
|
-
"description": "Whether the
|
|
1306
|
+
"description": "Whether the combobox is disabled.\n\nDisabled comboboxes cannot be focused, changed, or submitted with form data.",
|
|
1199
1307
|
"type": "boolean"
|
|
1200
1308
|
},
|
|
1201
1309
|
{
|
|
1202
1310
|
"name": "required",
|
|
1203
|
-
"description": "Whether the
|
|
1311
|
+
"description": "Whether the combobox is required before form submission.\n\nUse this when the user must provide a value before submitting the form.",
|
|
1204
1312
|
"type": "boolean"
|
|
1205
1313
|
},
|
|
1206
1314
|
{
|
|
1207
1315
|
"name": "optional",
|
|
1208
|
-
"description": "Whether to show optional text",
|
|
1316
|
+
"description": "Whether to show optional text next to the label.\n\nUse this to indicate that the combobox is not required.",
|
|
1209
1317
|
"type": "boolean"
|
|
1210
1318
|
},
|
|
1211
1319
|
{
|
|
1212
1320
|
"name": "name",
|
|
1213
|
-
"description": "
|
|
1321
|
+
"description": "The name submitted with the combobox value.\n\nUse this when the combobox belongs to a form and its value should be included in form data.",
|
|
1214
1322
|
"type": "string | undefined"
|
|
1215
1323
|
},
|
|
1216
1324
|
{
|
|
1217
1325
|
"name": "autocomplete",
|
|
1218
|
-
"description": "
|
|
1326
|
+
"description": "The autocomplete attribute passed to the internal input.\n\nDefaults to `off`. Set this when browser autocomplete should be enabled or scoped to a specific autocomplete token.",
|
|
1219
1327
|
"type": "string | undefined"
|
|
1220
1328
|
}
|
|
1221
1329
|
],
|
|
@@ -1227,59 +1335,83 @@
|
|
|
1227
1335
|
"description": "An input for dates.\n\nUses the `lang` attribute on either the element or on `<html>` to determine the locale options.\n\n[See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-datepicker--docs)\n---\n",
|
|
1228
1336
|
"doc-url": "",
|
|
1229
1337
|
"attributes": [
|
|
1230
|
-
{
|
|
1338
|
+
{
|
|
1339
|
+
"name": "label",
|
|
1340
|
+
"description": "The label displayed above the date input.\n\nUse this to give the datepicker a visible and accessible name.",
|
|
1341
|
+
"value": { "type": "string | undefined" }
|
|
1342
|
+
},
|
|
1231
1343
|
{
|
|
1232
1344
|
"name": "lang",
|
|
1233
|
-
"description": "
|
|
1345
|
+
"description": "The locale used for calendar labels and date formatting.\n\nThis takes precedence over the `<html>` `lang` attribute. Supported built-in locales are `en`, `nb`, `sv`, `da`, and `fi`.",
|
|
1234
1346
|
"value": { "type": "string" }
|
|
1235
1347
|
},
|
|
1236
|
-
{
|
|
1237
|
-
|
|
1348
|
+
{
|
|
1349
|
+
"name": "name",
|
|
1350
|
+
"description": "The name submitted with the date value.\n\nUse this when the datepicker belongs to a form and its value should be included in form data.",
|
|
1351
|
+
"value": { "type": "string | undefined" }
|
|
1352
|
+
},
|
|
1353
|
+
{
|
|
1354
|
+
"name": "value",
|
|
1355
|
+
"description": "The selected date value.\n\nUse 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.",
|
|
1356
|
+
"value": { "type": "string | undefined" }
|
|
1357
|
+
},
|
|
1238
1358
|
{
|
|
1239
1359
|
"name": "header-format",
|
|
1240
|
-
"description": "
|
|
1241
|
-
"value": { "type": "string", "default": "
|
|
1360
|
+
"description": "The date format used in the calendar header.\n\nThe syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format).",
|
|
1361
|
+
"value": { "type": "string", "default": "\"MMMM yyyy\"" }
|
|
1242
1362
|
},
|
|
1243
1363
|
{
|
|
1244
1364
|
"name": "weekday-format",
|
|
1245
|
-
"description": "
|
|
1246
|
-
"value": { "type": "string", "default": "
|
|
1365
|
+
"description": "The weekday format shown above the calendar grid.\n\nThe syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format).",
|
|
1366
|
+
"value": { "type": "string", "default": "\"EEEEEE\"" }
|
|
1247
1367
|
},
|
|
1248
1368
|
{
|
|
1249
1369
|
"name": "day-format",
|
|
1250
|
-
"description": "
|
|
1251
|
-
"value": { "type": "string", "default": "
|
|
1370
|
+
"description": "The date format used for calendar day accessible names.\n\nThe syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format).",
|
|
1371
|
+
"value": { "type": "string", "default": "\"PPPP\"" }
|
|
1252
1372
|
}
|
|
1253
1373
|
],
|
|
1254
1374
|
"events": [],
|
|
1255
1375
|
"js": {
|
|
1256
1376
|
"properties": [
|
|
1257
|
-
{
|
|
1377
|
+
{
|
|
1378
|
+
"name": "label",
|
|
1379
|
+
"description": "The label displayed above the date input.\n\nUse this to give the datepicker a visible and accessible name.",
|
|
1380
|
+
"type": "string | undefined"
|
|
1381
|
+
},
|
|
1258
1382
|
{
|
|
1259
1383
|
"name": "lang",
|
|
1260
|
-
"description": "
|
|
1384
|
+
"description": "The locale used for calendar labels and date formatting.\n\nThis takes precedence over the `<html>` `lang` attribute. Supported built-in locales are `en`, `nb`, `sv`, `da`, and `fi`.",
|
|
1261
1385
|
"type": "string"
|
|
1262
1386
|
},
|
|
1263
|
-
{
|
|
1264
|
-
|
|
1387
|
+
{
|
|
1388
|
+
"name": "name",
|
|
1389
|
+
"description": "The name submitted with the date value.\n\nUse this when the datepicker belongs to a form and its value should be included in form data.",
|
|
1390
|
+
"type": "string | undefined"
|
|
1391
|
+
},
|
|
1392
|
+
{
|
|
1393
|
+
"name": "value",
|
|
1394
|
+
"description": "The selected date value.\n\nUse 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.",
|
|
1395
|
+
"type": "string | undefined"
|
|
1396
|
+
},
|
|
1265
1397
|
{
|
|
1266
1398
|
"name": "headerFormat",
|
|
1267
|
-
"description": "
|
|
1399
|
+
"description": "The date format used in the calendar header.\n\nThe syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format).",
|
|
1268
1400
|
"type": "string"
|
|
1269
1401
|
},
|
|
1270
1402
|
{
|
|
1271
1403
|
"name": "weekdayFormat",
|
|
1272
|
-
"description": "
|
|
1404
|
+
"description": "The weekday format shown above the calendar grid.\n\nThe syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format).",
|
|
1273
1405
|
"type": "string"
|
|
1274
1406
|
},
|
|
1275
1407
|
{
|
|
1276
1408
|
"name": "isDayDisabled",
|
|
1277
|
-
"description": "
|
|
1278
|
-
"type": "(day: Date) => boolean"
|
|
1409
|
+
"description": "Function used to disable dates in the calendar.\n\nSet this on the element instance in JavaScript, not as an HTML attribute. Disabled dates cannot be selected from the calendar.",
|
|
1410
|
+
"type": "((day: Date) => boolean) | undefined"
|
|
1279
1411
|
},
|
|
1280
1412
|
{
|
|
1281
1413
|
"name": "dayFormat",
|
|
1282
|
-
"description": "
|
|
1414
|
+
"description": "The date format used for calendar day accessible names.\n\nThe syntax is defined by [date-fns/format](https://date-fns.org/v4.1.0/docs/format).",
|
|
1283
1415
|
"type": "string"
|
|
1284
1416
|
},
|
|
1285
1417
|
{ "name": "isCalendarOpen", "type": "boolean" },
|
|
@@ -1304,33 +1436,52 @@
|
|
|
1304
1436
|
},
|
|
1305
1437
|
{
|
|
1306
1438
|
"name": "w-expandable",
|
|
1307
|
-
"description": "Expandable is a layout component used for creating expandable content areas on a page.\n
|
|
1439
|
+
"description": "Expandable is a layout component used for creating expandable content areas on a page.\n---\n\n\n### **Slots:**\n - **title** - Alternative to the `title` attribute should you need to provide some additional markup.",
|
|
1308
1440
|
"doc-url": "",
|
|
1309
1441
|
"attributes": [
|
|
1310
1442
|
{
|
|
1311
1443
|
"name": "expanded",
|
|
1444
|
+
"description": "Controls component's expanded state",
|
|
1312
1445
|
"value": { "type": "boolean", "default": "false" }
|
|
1313
1446
|
},
|
|
1314
|
-
{
|
|
1447
|
+
{
|
|
1448
|
+
"name": "title",
|
|
1449
|
+
"description": "Component title. Used to display the title value which is always present regardless of whether the component is open or closed.",
|
|
1450
|
+
"value": { "type": "string" }
|
|
1451
|
+
},
|
|
1315
1452
|
{
|
|
1316
1453
|
"name": "box",
|
|
1454
|
+
"description": "Will make the expandable a Box",
|
|
1317
1455
|
"value": { "type": "boolean", "default": "false" }
|
|
1318
1456
|
},
|
|
1319
1457
|
{
|
|
1320
1458
|
"name": "bleed",
|
|
1459
|
+
"description": "Will make the expandable full-width on the sm breakpoint size",
|
|
1321
1460
|
"value": { "type": "boolean", "default": "false" }
|
|
1322
1461
|
},
|
|
1323
|
-
{
|
|
1324
|
-
|
|
1462
|
+
{
|
|
1463
|
+
"name": "button-class",
|
|
1464
|
+
"value": { "type": "string | undefined" }
|
|
1465
|
+
},
|
|
1466
|
+
{
|
|
1467
|
+
"name": "content-class",
|
|
1468
|
+
"value": { "type": "string | undefined" }
|
|
1469
|
+
},
|
|
1325
1470
|
{
|
|
1326
1471
|
"name": "no-chevron",
|
|
1472
|
+
"description": "Controls chevron visibility",
|
|
1327
1473
|
"value": { "type": "boolean", "default": "false" }
|
|
1328
1474
|
},
|
|
1329
1475
|
{
|
|
1330
1476
|
"name": "animated",
|
|
1477
|
+
"description": "Will animate the expansion/collapse",
|
|
1331
1478
|
"value": { "type": "boolean", "default": "false" }
|
|
1332
1479
|
},
|
|
1333
|
-
{
|
|
1480
|
+
{
|
|
1481
|
+
"name": "heading-level",
|
|
1482
|
+
"description": "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.",
|
|
1483
|
+
"value": { "type": "number | undefined" }
|
|
1484
|
+
},
|
|
1334
1485
|
{
|
|
1335
1486
|
"name": "_hasTitle",
|
|
1336
1487
|
"value": { "type": "boolean", "default": "true" }
|
|
@@ -1349,17 +1500,43 @@
|
|
|
1349
1500
|
"events": [],
|
|
1350
1501
|
"js": {
|
|
1351
1502
|
"properties": [
|
|
1352
|
-
{
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
{
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
{
|
|
1503
|
+
{
|
|
1504
|
+
"name": "expanded",
|
|
1505
|
+
"description": "Controls component's expanded state",
|
|
1506
|
+
"type": "boolean"
|
|
1507
|
+
},
|
|
1508
|
+
{
|
|
1509
|
+
"name": "title",
|
|
1510
|
+
"description": "Component title. Used to display the title value which is always present regardless of whether the component is open or closed.",
|
|
1511
|
+
"type": "string"
|
|
1512
|
+
},
|
|
1513
|
+
{
|
|
1514
|
+
"name": "box",
|
|
1515
|
+
"description": "Will make the expandable a Box",
|
|
1516
|
+
"type": "boolean"
|
|
1517
|
+
},
|
|
1518
|
+
{
|
|
1519
|
+
"name": "bleed",
|
|
1520
|
+
"description": "Will make the expandable full-width on the sm breakpoint size",
|
|
1521
|
+
"type": "boolean"
|
|
1522
|
+
},
|
|
1523
|
+
{ "name": "buttonClass", "type": "string | undefined" },
|
|
1524
|
+
{ "name": "contentClass", "type": "string | undefined" },
|
|
1525
|
+
{
|
|
1526
|
+
"name": "noChevron",
|
|
1527
|
+
"description": "Controls chevron visibility",
|
|
1528
|
+
"type": "boolean"
|
|
1529
|
+
},
|
|
1530
|
+
{
|
|
1531
|
+
"name": "animated",
|
|
1532
|
+
"description": "Will animate the expansion/collapse",
|
|
1533
|
+
"type": "boolean"
|
|
1534
|
+
},
|
|
1535
|
+
{
|
|
1536
|
+
"name": "headingLevel",
|
|
1537
|
+
"description": "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.",
|
|
1538
|
+
"type": "number | undefined"
|
|
1539
|
+
}
|
|
1363
1540
|
],
|
|
1364
1541
|
"events": []
|
|
1365
1542
|
}
|
|
@@ -1374,7 +1551,7 @@
|
|
|
1374
1551
|
"description": "Controls if the modal should show or hide.\n\nYou can also call the `open()` and `close()` methods.",
|
|
1375
1552
|
"value": { "type": "boolean", "default": "false" }
|
|
1376
1553
|
},
|
|
1377
|
-
{ "name": "content-id", "value": { "type": "string" } },
|
|
1554
|
+
{ "name": "content-id", "value": { "type": "string | undefined" } },
|
|
1378
1555
|
{
|
|
1379
1556
|
"name": "ignore-backdrop-clicks",
|
|
1380
1557
|
"description": "Ignores clicks to the backdrop when set",
|
|
@@ -1406,7 +1583,7 @@
|
|
|
1406
1583
|
"description": "Controls if the modal should show or hide.\n\nYou can also call the `open()` and `close()` methods.",
|
|
1407
1584
|
"type": "boolean"
|
|
1408
1585
|
},
|
|
1409
|
-
{ "name": "contentId", "type": "string" },
|
|
1586
|
+
{ "name": "contentId", "type": "string | undefined" },
|
|
1410
1587
|
{
|
|
1411
1588
|
"name": "ignoreBackdropClicks",
|
|
1412
1589
|
"description": "Ignores clicks to the backdrop when set",
|
|
@@ -1517,12 +1694,12 @@
|
|
|
1517
1694
|
{
|
|
1518
1695
|
"name": "base-url",
|
|
1519
1696
|
"description": "The base URL used to construct page links, for example `/search?page=`.\n\nThe page number is appended to this URL.",
|
|
1520
|
-
"value": { "type": "string" }
|
|
1697
|
+
"value": { "type": "string | undefined" }
|
|
1521
1698
|
},
|
|
1522
1699
|
{
|
|
1523
1700
|
"name": "pages",
|
|
1524
1701
|
"description": "The total number of pages.",
|
|
1525
|
-
"value": { "type": "number" }
|
|
1702
|
+
"value": { "type": "number", "default": "0" }
|
|
1526
1703
|
},
|
|
1527
1704
|
{
|
|
1528
1705
|
"name": "current-page",
|
|
@@ -1547,7 +1724,7 @@
|
|
|
1547
1724
|
{
|
|
1548
1725
|
"name": "baseUrl",
|
|
1549
1726
|
"description": "The base URL used to construct page links, for example `/search?page=`.\n\nThe page number is appended to this URL.",
|
|
1550
|
-
"type": "string"
|
|
1727
|
+
"type": "string | undefined"
|
|
1551
1728
|
},
|
|
1552
1729
|
{
|
|
1553
1730
|
"name": "pages",
|
|
@@ -1589,17 +1766,23 @@
|
|
|
1589
1766
|
"description": "Whether the pill should be rendered as a suggestion.",
|
|
1590
1767
|
"value": { "type": "boolean", "default": "false" }
|
|
1591
1768
|
},
|
|
1592
|
-
{
|
|
1769
|
+
{
|
|
1770
|
+
"name": "open-sr-label",
|
|
1771
|
+
"value": { "type": "string | undefined" }
|
|
1772
|
+
},
|
|
1593
1773
|
{
|
|
1594
1774
|
"name": "open-aria-label",
|
|
1595
1775
|
"description": "Label read by screen readers when targeting the pill.",
|
|
1596
|
-
"value": { "type": "string" }
|
|
1776
|
+
"value": { "type": "string | undefined" }
|
|
1777
|
+
},
|
|
1778
|
+
{
|
|
1779
|
+
"name": "close-sr-label",
|
|
1780
|
+
"value": { "type": "string | undefined" }
|
|
1597
1781
|
},
|
|
1598
|
-
{ "name": "close-sr-label", "value": { "type": "string" } },
|
|
1599
1782
|
{
|
|
1600
1783
|
"name": "close-aria-label",
|
|
1601
1784
|
"description": "Label read by screen readers when targeting the close button.",
|
|
1602
|
-
"value": { "type": "string" }
|
|
1785
|
+
"value": { "type": "string | undefined" }
|
|
1603
1786
|
}
|
|
1604
1787
|
],
|
|
1605
1788
|
"events": [
|
|
@@ -1626,17 +1809,17 @@
|
|
|
1626
1809
|
"description": "Whether the pill should be rendered as a suggestion.",
|
|
1627
1810
|
"type": "boolean"
|
|
1628
1811
|
},
|
|
1629
|
-
{ "name": "openSrLabel", "type": "string" },
|
|
1812
|
+
{ "name": "openSrLabel", "type": "string | undefined" },
|
|
1630
1813
|
{
|
|
1631
1814
|
"name": "openAriaLabel",
|
|
1632
1815
|
"description": "Label read by screen readers when targeting the pill.",
|
|
1633
|
-
"type": "string"
|
|
1816
|
+
"type": "string | undefined"
|
|
1634
1817
|
},
|
|
1635
|
-
{ "name": "closeSrLabel", "type": "string" },
|
|
1818
|
+
{ "name": "closeSrLabel", "type": "string | undefined" },
|
|
1636
1819
|
{
|
|
1637
1820
|
"name": "closeAriaLabel",
|
|
1638
1821
|
"description": "Label read by screen readers when targeting the close button.",
|
|
1639
|
-
"type": "string"
|
|
1822
|
+
"type": "string | undefined"
|
|
1640
1823
|
}
|
|
1641
1824
|
],
|
|
1642
1825
|
"events": [
|
|
@@ -1728,18 +1911,18 @@
|
|
|
1728
1911
|
},
|
|
1729
1912
|
{
|
|
1730
1913
|
"name": "w-radio-group",
|
|
1731
|
-
"description": "Radios allow users to select a single option from a list of choices.\n\nUse with `w-radio`.\n---\n\n\n### **Slots:**\n - **label** - Alternative to the `label` attribute should you need custom HTML.\n- **help-text** - Alternative to the `help-text` attribute should you need custom HTML.",
|
|
1914
|
+
"description": "Radios allow users to select a single option from a list of choices.\n\nUse with `w-radio`.\n---\n\n\n### **Slots:**\n - **label** - Alternative to the `label` attribute should you need custom HTML.\n- **help-text** - Alternative to the `help-text` attribute should you need custom HTML. ## Architecture Note This component uses semantic <fieldset> element for grouping radio controls, which provides better accessibility and follows HTML best practices. Note that w-checkbox-group currently uses <div> instead - this inconsistency exists for historical reasons and may be addressed in a future major version to align both on the more semantic approach. TODO: Align w-checkbox-group to also use <fieldset> in a future major version after assessing backwards compatibility implications (CSS selectors, etc.).",
|
|
1732
1915
|
"doc-url": "",
|
|
1733
1916
|
"attributes": [
|
|
1734
1917
|
{
|
|
1735
1918
|
"name": "label",
|
|
1736
1919
|
"description": "Label for the radio group.",
|
|
1737
|
-
"value": { "type": "string", "default": "
|
|
1920
|
+
"value": { "type": "string", "default": "\"\"" }
|
|
1738
1921
|
},
|
|
1739
1922
|
{
|
|
1740
1923
|
"name": "help-text",
|
|
1741
1924
|
"description": "Help text for the radio group.\n\nIf you set `required` and `invalid` the group gets a default error message, but you can override it with this attribute.",
|
|
1742
|
-
"value": { "type": "string", "default": "
|
|
1925
|
+
"value": { "type": "string", "default": "\"\"" }
|
|
1743
1926
|
},
|
|
1744
1927
|
{
|
|
1745
1928
|
"name": "optional",
|
|
@@ -1774,7 +1957,7 @@
|
|
|
1774
1957
|
},
|
|
1775
1958
|
{
|
|
1776
1959
|
"name": "help-text",
|
|
1777
|
-
"description": "Alternative to the `help-text` attribute should you need custom HTML."
|
|
1960
|
+
"description": "Alternative to the `help-text` attribute should you need custom HTML. ## Architecture Note This component uses semantic <fieldset> element for grouping radio controls, which provides better accessibility and follows HTML best practices. Note that w-checkbox-group currently uses <div> instead - this inconsistency exists for historical reasons and may be addressed in a future major version to align both on the more semantic approach. TODO: Align w-checkbox-group to also use <fieldset> in a future major version after assessing backwards compatibility implications (CSS selectors, etc.)."
|
|
1778
1961
|
}
|
|
1779
1962
|
],
|
|
1780
1963
|
"events": [],
|
|
@@ -1837,7 +2020,7 @@
|
|
|
1837
2020
|
{
|
|
1838
2021
|
"name": "help-text",
|
|
1839
2022
|
"description": "The content displayed as the help text.\n\nPaired with `invalid` to show the text as a validation error.",
|
|
1840
|
-
"value": { "type": "string" }
|
|
2023
|
+
"value": { "type": "string | undefined" }
|
|
1841
2024
|
},
|
|
1842
2025
|
{
|
|
1843
2026
|
"name": "invalid",
|
|
@@ -1852,12 +2035,12 @@
|
|
|
1852
2035
|
{
|
|
1853
2036
|
"name": "hint",
|
|
1854
2037
|
"description": "The content displayed as the help text.",
|
|
1855
|
-
"value": { "type": "string" }
|
|
2038
|
+
"value": { "type": "string | undefined" }
|
|
1856
2039
|
},
|
|
1857
2040
|
{
|
|
1858
2041
|
"name": "label",
|
|
1859
2042
|
"description": "The content to display as the label.",
|
|
1860
|
-
"value": { "type": "string" }
|
|
2043
|
+
"value": { "type": "string | undefined" }
|
|
1861
2044
|
},
|
|
1862
2045
|
{
|
|
1863
2046
|
"name": "optional",
|
|
@@ -1882,12 +2065,12 @@
|
|
|
1882
2065
|
{
|
|
1883
2066
|
"name": "name",
|
|
1884
2067
|
"description": "The [name](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#name) of the select when submitting the form.",
|
|
1885
|
-
"value": { "type": "string" }
|
|
2068
|
+
"value": { "type": "string | undefined" }
|
|
1886
2069
|
},
|
|
1887
2070
|
{
|
|
1888
2071
|
"name": "value",
|
|
1889
2072
|
"description": "Lets you set the current value.",
|
|
1890
|
-
"value": { "type": "string" }
|
|
2073
|
+
"value": { "type": "string | undefined" }
|
|
1891
2074
|
}
|
|
1892
2075
|
],
|
|
1893
2076
|
"events": [{ "name": "change", "type": "CustomEvent" }],
|
|
@@ -1906,7 +2089,7 @@
|
|
|
1906
2089
|
{
|
|
1907
2090
|
"name": "helpText",
|
|
1908
2091
|
"description": "The content displayed as the help text.\n\nPaired with `invalid` to show the text as a validation error.",
|
|
1909
|
-
"type": "string"
|
|
2092
|
+
"type": "string | undefined"
|
|
1910
2093
|
},
|
|
1911
2094
|
{
|
|
1912
2095
|
"name": "invalid",
|
|
@@ -1921,12 +2104,12 @@
|
|
|
1921
2104
|
{
|
|
1922
2105
|
"name": "hint",
|
|
1923
2106
|
"description": "The content displayed as the help text.",
|
|
1924
|
-
"type": "string"
|
|
2107
|
+
"type": "string | undefined"
|
|
1925
2108
|
},
|
|
1926
2109
|
{
|
|
1927
2110
|
"name": "label",
|
|
1928
2111
|
"description": "The content to display as the label.",
|
|
1929
|
-
"type": "string"
|
|
2112
|
+
"type": "string | undefined"
|
|
1930
2113
|
},
|
|
1931
2114
|
{
|
|
1932
2115
|
"name": "optional",
|
|
@@ -1951,12 +2134,12 @@
|
|
|
1951
2134
|
{
|
|
1952
2135
|
"name": "name",
|
|
1953
2136
|
"description": "The [name](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#name) of the select when submitting the form.",
|
|
1954
|
-
"type": "string"
|
|
2137
|
+
"type": "string | undefined"
|
|
1955
2138
|
},
|
|
1956
2139
|
{
|
|
1957
2140
|
"name": "value",
|
|
1958
2141
|
"description": "Lets you set the current value.",
|
|
1959
|
-
"type": "string"
|
|
2142
|
+
"type": "string | undefined"
|
|
1960
2143
|
}
|
|
1961
2144
|
],
|
|
1962
2145
|
"events": [{ "name": "change", "type": "CustomEvent" }]
|
|
@@ -1970,30 +2153,27 @@
|
|
|
1970
2153
|
{
|
|
1971
2154
|
"name": "aria-label",
|
|
1972
2155
|
"description": "Label for the range input.",
|
|
1973
|
-
"value": {
|
|
1974
|
-
"type": "string",
|
|
1975
|
-
"default": "`label` from `w-slider`"
|
|
1976
|
-
}
|
|
2156
|
+
"value": { "type": "string | null", "default": "null" }
|
|
1977
2157
|
},
|
|
1978
2158
|
{
|
|
1979
2159
|
"name": "aria-description",
|
|
1980
2160
|
"description": "Contextual information for assistive technology, should it be needed",
|
|
1981
|
-
"value": { "type": "string" }
|
|
2161
|
+
"value": { "type": "string | null", "default": "null" }
|
|
1982
2162
|
},
|
|
1983
2163
|
{
|
|
1984
2164
|
"name": "name",
|
|
1985
2165
|
"description": "The name of this input field in the form. The canonical source of the value is the text field.",
|
|
1986
|
-
"value": { "type": "string" }
|
|
2166
|
+
"value": { "type": "string | undefined" }
|
|
1987
2167
|
},
|
|
1988
2168
|
{
|
|
1989
2169
|
"name": "value",
|
|
1990
2170
|
"description": "The initial value, if any",
|
|
1991
|
-
"value": { "type": "string" }
|
|
2171
|
+
"value": { "type": "string | undefined" }
|
|
1992
2172
|
},
|
|
1993
2173
|
{
|
|
1994
2174
|
"name": "placeholder",
|
|
1995
2175
|
"description": "Placeholder in empty text fields",
|
|
1996
|
-
"value": { "type": "string" }
|
|
2176
|
+
"value": { "type": "string | undefined" }
|
|
1997
2177
|
}
|
|
1998
2178
|
],
|
|
1999
2179
|
"events": [
|
|
@@ -2013,27 +2193,27 @@
|
|
|
2013
2193
|
{
|
|
2014
2194
|
"name": "ariaLabel",
|
|
2015
2195
|
"description": "Label for the range input.",
|
|
2016
|
-
"type": "string"
|
|
2196
|
+
"type": "string | null"
|
|
2017
2197
|
},
|
|
2018
2198
|
{
|
|
2019
2199
|
"name": "ariaDescription",
|
|
2020
2200
|
"description": "Contextual information for assistive technology, should it be needed",
|
|
2021
|
-
"type": "string"
|
|
2201
|
+
"type": "string | null"
|
|
2022
2202
|
},
|
|
2023
2203
|
{
|
|
2024
2204
|
"name": "name",
|
|
2025
2205
|
"description": "The name of this input field in the form. The canonical source of the value is the text field.",
|
|
2026
|
-
"type": "string"
|
|
2206
|
+
"type": "string | undefined"
|
|
2027
2207
|
},
|
|
2028
2208
|
{
|
|
2029
2209
|
"name": "value",
|
|
2030
2210
|
"description": "The initial value, if any",
|
|
2031
|
-
"type": "string"
|
|
2211
|
+
"type": "string | undefined"
|
|
2032
2212
|
},
|
|
2033
2213
|
{
|
|
2034
2214
|
"name": "placeholder",
|
|
2035
2215
|
"description": "Placeholder in empty text fields",
|
|
2036
|
-
"type": "string"
|
|
2216
|
+
"type": "string | undefined"
|
|
2037
2217
|
}
|
|
2038
2218
|
],
|
|
2039
2219
|
"events": [
|
|
@@ -2058,7 +2238,7 @@
|
|
|
2058
2238
|
{
|
|
2059
2239
|
"name": "label",
|
|
2060
2240
|
"description": "The slider fieldset label. Required for proper accessibility.\n\nIf you need to display HTML, use the `label` slot instead (f. ex. `<legend class=\"sr-only\" slot=\"label\">Production year</legend>`)",
|
|
2061
|
-
"value": { "type": "string" }
|
|
2241
|
+
"value": { "type": "string | undefined" }
|
|
2062
2242
|
},
|
|
2063
2243
|
{
|
|
2064
2244
|
"name": "disabled",
|
|
@@ -2072,12 +2252,12 @@
|
|
|
2072
2252
|
{
|
|
2073
2253
|
"name": "error",
|
|
2074
2254
|
"description": "Validation error text, if any",
|
|
2075
|
-
"value": { "type": "string" }
|
|
2255
|
+
"value": { "type": "string | undefined" }
|
|
2076
2256
|
},
|
|
2077
2257
|
{
|
|
2078
2258
|
"name": "help-text",
|
|
2079
2259
|
"description": "Additional description to show below the fieldset",
|
|
2080
|
-
"value": { "type": "string" }
|
|
2260
|
+
"value": { "type": "string | undefined" }
|
|
2081
2261
|
},
|
|
2082
2262
|
{
|
|
2083
2263
|
"name": "invalid",
|
|
@@ -2092,27 +2272,27 @@
|
|
|
2092
2272
|
{
|
|
2093
2273
|
"name": "min",
|
|
2094
2274
|
"description": "The minimum allowed value in the range inputs",
|
|
2095
|
-
"value": { "type": "string", "default": "0" }
|
|
2275
|
+
"value": { "type": "string | undefined", "default": "0" }
|
|
2096
2276
|
},
|
|
2097
2277
|
{
|
|
2098
2278
|
"name": "max",
|
|
2099
2279
|
"description": "The maximum allowed value in the range inputs",
|
|
2100
|
-
"value": { "type": "string", "default": "100" }
|
|
2280
|
+
"value": { "type": "string | undefined", "default": "100" }
|
|
2101
2281
|
},
|
|
2102
2282
|
{
|
|
2103
2283
|
"name": "markers",
|
|
2104
2284
|
"description": "Pass a value similar to step to create visual markers at that interval",
|
|
2105
|
-
"value": { "type": "number" }
|
|
2285
|
+
"value": { "type": "number | undefined" }
|
|
2106
2286
|
},
|
|
2107
2287
|
{
|
|
2108
2288
|
"name": "step",
|
|
2109
2289
|
"description": "ets step on the range input to jump between values when dragging",
|
|
2110
|
-
"value": { "type": "number" }
|
|
2290
|
+
"value": { "type": "number | undefined" }
|
|
2111
2291
|
},
|
|
2112
2292
|
{
|
|
2113
2293
|
"name": "suffix",
|
|
2114
2294
|
"description": "Suffix used in text input fields and for the min and max values of the slider",
|
|
2115
|
-
"value": { "type": "string" }
|
|
2295
|
+
"value": { "type": "string | undefined" }
|
|
2116
2296
|
},
|
|
2117
2297
|
{
|
|
2118
2298
|
"name": "hidden-textfield",
|
|
@@ -2148,7 +2328,7 @@
|
|
|
2148
2328
|
{
|
|
2149
2329
|
"name": "label",
|
|
2150
2330
|
"description": "The slider fieldset label. Required for proper accessibility.\n\nIf you need to display HTML, use the `label` slot instead (f. ex. `<legend class=\"sr-only\" slot=\"label\">Production year</legend>`)",
|
|
2151
|
-
"type": "string"
|
|
2331
|
+
"type": "string | undefined"
|
|
2152
2332
|
},
|
|
2153
2333
|
{ "name": "disabled", "type": "boolean" },
|
|
2154
2334
|
{
|
|
@@ -2159,12 +2339,12 @@
|
|
|
2159
2339
|
{
|
|
2160
2340
|
"name": "error",
|
|
2161
2341
|
"description": "Validation error text, if any",
|
|
2162
|
-
"type": "string"
|
|
2342
|
+
"type": "string | undefined"
|
|
2163
2343
|
},
|
|
2164
2344
|
{
|
|
2165
2345
|
"name": "helpText",
|
|
2166
2346
|
"description": "Additional description to show below the fieldset",
|
|
2167
|
-
"type": "string"
|
|
2347
|
+
"type": "string | undefined"
|
|
2168
2348
|
},
|
|
2169
2349
|
{
|
|
2170
2350
|
"name": "invalid",
|
|
@@ -2179,27 +2359,27 @@
|
|
|
2179
2359
|
{
|
|
2180
2360
|
"name": "min",
|
|
2181
2361
|
"description": "The minimum allowed value in the range inputs",
|
|
2182
|
-
"type": "string"
|
|
2362
|
+
"type": "string | undefined"
|
|
2183
2363
|
},
|
|
2184
2364
|
{
|
|
2185
2365
|
"name": "max",
|
|
2186
2366
|
"description": "The maximum allowed value in the range inputs",
|
|
2187
|
-
"type": "string"
|
|
2367
|
+
"type": "string | undefined"
|
|
2188
2368
|
},
|
|
2189
2369
|
{
|
|
2190
2370
|
"name": "markers",
|
|
2191
2371
|
"description": "Pass a value similar to step to create visual markers at that interval",
|
|
2192
|
-
"type": "number"
|
|
2372
|
+
"type": "number | undefined"
|
|
2193
2373
|
},
|
|
2194
2374
|
{
|
|
2195
2375
|
"name": "step",
|
|
2196
2376
|
"description": "ets step on the range input to jump between values when dragging",
|
|
2197
|
-
"type": "number"
|
|
2377
|
+
"type": "number | undefined"
|
|
2198
2378
|
},
|
|
2199
2379
|
{
|
|
2200
2380
|
"name": "suffix",
|
|
2201
2381
|
"description": "Suffix used in text input fields and for the min and max values of the slider",
|
|
2202
|
-
"type": "string"
|
|
2382
|
+
"type": "string | undefined"
|
|
2203
2383
|
},
|
|
2204
2384
|
{
|
|
2205
2385
|
"name": "hiddenTextfield",
|
|
@@ -2209,22 +2389,74 @@
|
|
|
2209
2389
|
{
|
|
2210
2390
|
"name": "valueFormatter",
|
|
2211
2391
|
"description": "Formatter for the tooltip and input mask values",
|
|
2212
|
-
"type": "(value: string, slot: SliderSlot) => string"
|
|
2392
|
+
"type": "((value: string, slot: SliderSlot) => string) | undefined"
|
|
2213
2393
|
},
|
|
2214
2394
|
{
|
|
2215
2395
|
"name": "tooltipFormatter",
|
|
2216
2396
|
"description": "Overrides valueFormatter for the tooltip.\n\nUse in open-ended sliders to show for example \"300+ hk\" instead of \"Max\" in the tooltip.",
|
|
2217
|
-
"type": "(value: string, slot: SliderSlot) => string"
|
|
2397
|
+
"type": "((value: string, slot: SliderSlot) => string) | undefined"
|
|
2218
2398
|
},
|
|
2219
2399
|
{
|
|
2220
2400
|
"name": "labelFormatter",
|
|
2221
2401
|
"description": "Formatter for the min and max labels below the range.",
|
|
2222
|
-
"type": "(slot: SliderSlot) => string"
|
|
2402
|
+
"type": "((slot: SliderSlot) => string) | undefined"
|
|
2403
|
+
}
|
|
2404
|
+
],
|
|
2405
|
+
"events": []
|
|
2406
|
+
}
|
|
2407
|
+
},
|
|
2408
|
+
{
|
|
2409
|
+
"name": "w-snackbar-item",
|
|
2410
|
+
"description": "An item to show in a `w-snackbar`.\n\nSee the `create` function on `w-snackbar` for a convenience API which helps you make snackbar items.\n---\n\n\n### **Methods:**\n - **close(): _void_** - Remove the snackbar item from the document.\n\nMoves focus to the last focused element outside of the snackbar item, if available.\n\n### **Slots:**\n - **default** - the snackbar message.\n- **icon** - icon preceeding the message.\n- **action** - action following the message.\n\n### **CSS Properties:**\n - **--w-c-snackbar-item-radius** - undefined _(default: undefined)_\n- **--w-c-snackbar-item-max-width** - undefined _(default: undefined)_\n- **--w-c-snackbar-item-min-width** - undefined _(default: undefined)_\n- **--w-c-snackbar-item-padding** - undefined _(default: undefined)_\n- **--w-c-snackbar-item-bg** - undefined _(default: undefined)_\n- **--w-c-snackbar-item-action-bg-active** - undefined _(default: undefined)_\n- **--w-c-snackbar-item-action-bg-hover** - undefined _(default: undefined)_\n- **--w-c-snackbar-item-color** - undefined _(default: undefined)_\n- **--w-c-snackbar-item-action-color-active** - undefined _(default: undefined)_\n- **--w-c-snackbar-item-action-color-hover** - undefined _(default: undefined)_\n- **--w-c-snackbar-item-box-shadow** - undefined _(default: undefined)_\n\n### **CSS Parts:**\n - **item** - the container wrapping the message, icon and actions.\n- **icon** - the icon for the variant.\n- **message** - the default slot, body of the snackbar item.\n- **action** - close and action button.",
|
|
2411
|
+
"doc-url": "",
|
|
2412
|
+
"attributes": [
|
|
2413
|
+
{
|
|
2414
|
+
"name": "action-placement",
|
|
2415
|
+
"description": "The placement of the action and close buttons.",
|
|
2416
|
+
"value": { "type": "'inline' | 'block'", "default": "\"inline\"" }
|
|
2417
|
+
},
|
|
2418
|
+
{
|
|
2419
|
+
"name": "duration",
|
|
2420
|
+
"description": "How long the message should stay in the document before removing itself.",
|
|
2421
|
+
"value": { "type": "number" }
|
|
2422
|
+
}
|
|
2423
|
+
],
|
|
2424
|
+
"slots": [
|
|
2425
|
+
{ "name": "default", "description": "the snackbar message." },
|
|
2426
|
+
{ "name": "icon", "description": "icon preceeding the message." },
|
|
2427
|
+
{ "name": "action", "description": "action following the message." }
|
|
2428
|
+
],
|
|
2429
|
+
"events": [],
|
|
2430
|
+
"js": {
|
|
2431
|
+
"properties": [
|
|
2432
|
+
{
|
|
2433
|
+
"name": "actionPlacement",
|
|
2434
|
+
"description": "The placement of the action and close buttons.",
|
|
2435
|
+
"type": "'inline' | 'block'"
|
|
2436
|
+
},
|
|
2437
|
+
{
|
|
2438
|
+
"name": "duration",
|
|
2439
|
+
"description": "How long the message should stay in the document before removing itself.",
|
|
2440
|
+
"type": "number"
|
|
2223
2441
|
}
|
|
2224
2442
|
],
|
|
2225
2443
|
"events": []
|
|
2226
2444
|
}
|
|
2227
2445
|
},
|
|
2446
|
+
{
|
|
2447
|
+
"name": "w-snackbar",
|
|
2448
|
+
"description": "A Snackbar shows brief user feedback messages that overlay content, with an optional action such as Undo.\n\nInclude one `<w-snackbar></w-snackbar>` in the document `<body>`. Use the `create` function to create messages.\n---\n\n\n### **Methods:**\n - **create(message: _string_, options: _CreateSnackbarOptions_): __** - Creates a snackbar item and immediately adds it to the snackbar.\n\nBy default the snackbar item automatically closes after 4 seconds (`SnackbarDuration.Short`).\n\nIf you include an `action` in the options the default `duration` is\nset to 10 seconds (`SnackbarDuration.Long`) and can not be made shorter.\n\nA `duration` of 10 seconds or longer forces the close button to be visible.\n\nThe default `variant` is `neutral` which does not have an icon.\n\nSet `duration` to `SnackbarDuration.Infinite` if you want a persistent message.\n\n### **Slots:**\n - **default** - `w-snackbar-item` gets placed inside the default slot by the `create` function.\n\n### **CSS Properties:**\n - **--w-c-snackbar-container-gap** - undefined _(default: undefined)_\n- **--w-c-snackbar-position-bottom** - undefined _(default: undefined)_\n- **--w-c-snackbar-position-left** - undefined _(default: undefined)_\n- **--w-c-snackbar-position-right** - undefined _(default: undefined)_\n- **--w-c-snackbar-position-top** - undefined _(default: undefined)_\n- **--w-c-snackbar-z-index** - undefined _(default: undefined)_\n\n### **CSS Parts:**\n - **container** - the live region that positions messages on the screen.",
|
|
2449
|
+
"doc-url": "",
|
|
2450
|
+
"attributes": [],
|
|
2451
|
+
"slots": [
|
|
2452
|
+
{
|
|
2453
|
+
"name": "default",
|
|
2454
|
+
"description": "`w-snackbar-item` gets placed inside the default slot by the `create` function."
|
|
2455
|
+
}
|
|
2456
|
+
],
|
|
2457
|
+
"events": [],
|
|
2458
|
+
"js": { "properties": [], "events": [] }
|
|
2459
|
+
},
|
|
2228
2460
|
{
|
|
2229
2461
|
"name": "w-step",
|
|
2230
2462
|
"description": "Individual step component that shows a single step in a process\n---\n",
|
|
@@ -2421,7 +2653,7 @@
|
|
|
2421
2653
|
"name": "active",
|
|
2422
2654
|
"description": "The `id` of the panel that should be active.",
|
|
2423
2655
|
"value": {
|
|
2424
|
-
"type": "string",
|
|
2656
|
+
"type": "string | undefined",
|
|
2425
2657
|
"default": "\"\" (Shows the first tab)"
|
|
2426
2658
|
}
|
|
2427
2659
|
}
|
|
@@ -2438,7 +2670,7 @@
|
|
|
2438
2670
|
{
|
|
2439
2671
|
"name": "active",
|
|
2440
2672
|
"description": "The `id` of the panel that should be active.",
|
|
2441
|
-
"type": "string"
|
|
2673
|
+
"type": "string | undefined"
|
|
2442
2674
|
}
|
|
2443
2675
|
],
|
|
2444
2676
|
"events": [
|
|
@@ -2468,32 +2700,32 @@
|
|
|
2468
2700
|
{
|
|
2469
2701
|
"name": "label",
|
|
2470
2702
|
"description": "Either a `label` or an `aria-label` must be provided.",
|
|
2471
|
-
"value": { "type": "string" }
|
|
2703
|
+
"value": { "type": "string | undefined" }
|
|
2472
2704
|
},
|
|
2473
2705
|
{
|
|
2474
2706
|
"name": "help-text",
|
|
2475
2707
|
"description": "Use in combination with `invalid` to show as a validation error message,\nor on its own to show a help text.",
|
|
2476
|
-
"value": { "type": "string" }
|
|
2708
|
+
"value": { "type": "string | undefined" }
|
|
2477
2709
|
},
|
|
2478
2710
|
{
|
|
2479
2711
|
"name": "maximum-rows",
|
|
2480
2712
|
"description": "Sets the maximum number of text rows before the content starts scrolling.",
|
|
2481
|
-
"value": { "type": "number" }
|
|
2713
|
+
"value": { "type": "number | undefined" }
|
|
2482
2714
|
},
|
|
2483
2715
|
{
|
|
2484
2716
|
"name": "minimum-rows",
|
|
2485
2717
|
"description": "Sets the minimum number of text rows the textarea should display",
|
|
2486
|
-
"value": { "type": "number" }
|
|
2718
|
+
"value": { "type": "number | undefined" }
|
|
2487
2719
|
},
|
|
2488
2720
|
{
|
|
2489
2721
|
"name": "name",
|
|
2490
2722
|
"description": "The [name](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#name) of the input field when submitting the form",
|
|
2491
|
-
"value": { "type": "string" }
|
|
2723
|
+
"value": { "type": "string | undefined" }
|
|
2492
2724
|
},
|
|
2493
2725
|
{
|
|
2494
2726
|
"name": "placeholder",
|
|
2495
2727
|
"description": "Set a text that is shown in the textarea when it doesn't have a value.\n\nPlaceholder text should not be used as a substitute for labeling the element with a visible label.",
|
|
2496
|
-
"value": { "type": "string" }
|
|
2728
|
+
"value": { "type": "string | undefined" }
|
|
2497
2729
|
},
|
|
2498
2730
|
{
|
|
2499
2731
|
"name": "read-only",
|
|
@@ -2512,7 +2744,7 @@
|
|
|
2512
2744
|
{
|
|
2513
2745
|
"name": "value",
|
|
2514
2746
|
"description": "Lets you set the current value",
|
|
2515
|
-
"value": { "type": "string" }
|
|
2747
|
+
"value": { "type": "string | undefined" }
|
|
2516
2748
|
},
|
|
2517
2749
|
{
|
|
2518
2750
|
"name": "optional",
|
|
@@ -2536,32 +2768,32 @@
|
|
|
2536
2768
|
{
|
|
2537
2769
|
"name": "label",
|
|
2538
2770
|
"description": "Either a `label` or an `aria-label` must be provided.",
|
|
2539
|
-
"type": "string"
|
|
2771
|
+
"type": "string | undefined"
|
|
2540
2772
|
},
|
|
2541
2773
|
{
|
|
2542
2774
|
"name": "helpText",
|
|
2543
2775
|
"description": "Use in combination with `invalid` to show as a validation error message,\nor on its own to show a help text.",
|
|
2544
|
-
"type": "string"
|
|
2776
|
+
"type": "string | undefined"
|
|
2545
2777
|
},
|
|
2546
2778
|
{
|
|
2547
2779
|
"name": "maxRows",
|
|
2548
2780
|
"description": "Sets the maximum number of text rows before the content starts scrolling.",
|
|
2549
|
-
"type": "number"
|
|
2781
|
+
"type": "number | undefined"
|
|
2550
2782
|
},
|
|
2551
2783
|
{
|
|
2552
2784
|
"name": "minRows",
|
|
2553
2785
|
"description": "Sets the minimum number of text rows the textarea should display",
|
|
2554
|
-
"type": "number"
|
|
2786
|
+
"type": "number | undefined"
|
|
2555
2787
|
},
|
|
2556
2788
|
{
|
|
2557
2789
|
"name": "name",
|
|
2558
2790
|
"description": "The [name](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input#name) of the input field when submitting the form",
|
|
2559
|
-
"type": "string"
|
|
2791
|
+
"type": "string | undefined"
|
|
2560
2792
|
},
|
|
2561
2793
|
{
|
|
2562
2794
|
"name": "placeholder",
|
|
2563
2795
|
"description": "Set a text that is shown in the textarea when it doesn't have a value.\n\nPlaceholder text should not be used as a substitute for labeling the element with a visible label.",
|
|
2564
|
-
"type": "string"
|
|
2796
|
+
"type": "string | undefined"
|
|
2565
2797
|
},
|
|
2566
2798
|
{ "name": "readOnly", "type": "boolean" },
|
|
2567
2799
|
{
|
|
@@ -2577,7 +2809,7 @@
|
|
|
2577
2809
|
{
|
|
2578
2810
|
"name": "value",
|
|
2579
2811
|
"description": "Lets you set the current value",
|
|
2580
|
-
"type": "string"
|
|
2812
|
+
"type": "string | undefined"
|
|
2581
2813
|
},
|
|
2582
2814
|
{
|
|
2583
2815
|
"name": "optional",
|
|
@@ -2601,8 +2833,41 @@
|
|
|
2601
2833
|
]
|
|
2602
2834
|
},
|
|
2603
2835
|
"css": {
|
|
2604
|
-
"properties": [
|
|
2605
|
-
|
|
2836
|
+
"properties": [
|
|
2837
|
+
{ "name": "--w-c-snackbar-item-radius" },
|
|
2838
|
+
{ "name": "--w-c-snackbar-item-max-width" },
|
|
2839
|
+
{ "name": "--w-c-snackbar-item-min-width" },
|
|
2840
|
+
{ "name": "--w-c-snackbar-item-padding" },
|
|
2841
|
+
{ "name": "--w-c-snackbar-item-bg" },
|
|
2842
|
+
{ "name": "--w-c-snackbar-item-action-bg-active" },
|
|
2843
|
+
{ "name": "--w-c-snackbar-item-action-bg-hover" },
|
|
2844
|
+
{ "name": "--w-c-snackbar-item-color" },
|
|
2845
|
+
{ "name": "--w-c-snackbar-item-action-color-active" },
|
|
2846
|
+
{ "name": "--w-c-snackbar-item-action-color-hover" },
|
|
2847
|
+
{ "name": "--w-c-snackbar-item-box-shadow" },
|
|
2848
|
+
{ "name": "--w-c-snackbar-container-gap" },
|
|
2849
|
+
{ "name": "--w-c-snackbar-position-bottom" },
|
|
2850
|
+
{ "name": "--w-c-snackbar-position-left" },
|
|
2851
|
+
{ "name": "--w-c-snackbar-position-right" },
|
|
2852
|
+
{ "name": "--w-c-snackbar-position-top" },
|
|
2853
|
+
{ "name": "--w-c-snackbar-z-index" }
|
|
2854
|
+
],
|
|
2855
|
+
"pseudo-elements": [
|
|
2856
|
+
{
|
|
2857
|
+
"name": "part(item)",
|
|
2858
|
+
"description": "the container wrapping the message, icon and actions."
|
|
2859
|
+
},
|
|
2860
|
+
{ "name": "part(icon)", "description": "the icon for the variant." },
|
|
2861
|
+
{
|
|
2862
|
+
"name": "part(message)",
|
|
2863
|
+
"description": "the default slot, body of the snackbar item."
|
|
2864
|
+
},
|
|
2865
|
+
{ "name": "part(action)", "description": "close and action button." },
|
|
2866
|
+
{
|
|
2867
|
+
"name": "part(container)",
|
|
2868
|
+
"description": "the live region that positions messages on the screen."
|
|
2869
|
+
}
|
|
2870
|
+
]
|
|
2606
2871
|
}
|
|
2607
2872
|
}
|
|
2608
2873
|
}
|