@warp-ds/elements 2.3.0-next.8 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/custom-elements.json +301 -3504
- package/dist/index.d.ts +36 -601
- package/dist/packages/affix/index.js.map +2 -2
- package/dist/packages/alert/index.js.map +2 -2
- package/dist/packages/attention/attention.stories.js +4 -1
- package/dist/packages/attention/index.js +55 -19
- package/dist/packages/attention/index.js.map +3 -3
- package/dist/packages/attention/styles.js +1 -1
- package/dist/packages/badge/index.js.map +2 -2
- package/dist/packages/box/index.js.map +2 -2
- package/dist/packages/breadcrumbs/index.js.map +2 -2
- package/dist/packages/button/button.react.stories.d.ts +1 -1
- package/dist/packages/button/button.stories.d.ts +4 -4
- package/dist/packages/button/button.stories.js +4 -4
- package/dist/packages/button/button.test.js +30 -1
- package/dist/packages/button/index.d.ts +2 -0
- package/dist/packages/button/index.js +49 -13
- package/dist/packages/button/index.js.map +3 -3
- package/dist/packages/card/index.js.map +2 -2
- package/dist/packages/datepicker/datepicker.d.ts +1 -0
- package/dist/packages/datepicker/datepicker.js +35 -35
- package/dist/packages/datepicker/datepicker.js.map +3 -3
- package/dist/packages/datepicker/datepicker.react.stories.d.ts +1 -1
- package/dist/packages/datepicker/datepicker.test.js +27 -0
- package/dist/packages/expandable/index.js.map +2 -2
- package/dist/packages/link/index.d.ts +2 -8
- package/dist/packages/link/index.js +43 -7
- package/dist/packages/link/index.js.map +4 -4
- package/dist/packages/link/link.react.stories.d.ts +6 -4
- package/dist/packages/link/link.react.stories.js +22 -12
- package/dist/packages/link/link.stories.d.ts +5 -3
- package/dist/packages/link/link.stories.js +22 -12
- package/dist/packages/link/styles.js +36 -0
- package/dist/packages/modal/index.js.map +2 -2
- package/dist/packages/modal/modal-header.js.map +2 -2
- package/dist/packages/modal/modal.stories.d.ts +3 -3
- package/dist/packages/modal/modal.stories.js +32 -32
- package/dist/packages/pill/index.js.map +2 -2
- package/dist/packages/select/index.d.ts +26 -5
- package/dist/packages/select/index.js +17 -16
- package/dist/packages/select/index.js.map +3 -3
- package/dist/packages/select/select.react.stories.d.ts +1 -1
- package/dist/packages/select/select.stories.d.ts +1 -1
- package/dist/packages/select/select.stories.js +3 -4
- package/dist/packages/select/select.test.js +30 -0
- package/dist/packages/textfield/index.d.ts +4 -0
- package/dist/packages/textfield/index.js +20 -19
- package/dist/packages/textfield/index.js.map +3 -3
- package/dist/packages/textfield/textfield.react.stories.d.ts +1 -1
- package/dist/packages/textfield/textfield.stories.d.ts +1 -0
- package/dist/packages/textfield/textfield.stories.js +17 -0
- package/dist/web-types.json +44 -627
- package/package.json +11 -89
- package/dist/packages/combobox/combobox.react.stories.d.ts +0 -28
- package/dist/packages/combobox/combobox.react.stories.js +0 -90
- package/dist/packages/combobox/combobox.stories.d.ts +0 -18
- package/dist/packages/combobox/combobox.stories.js +0 -117
- package/dist/packages/combobox/index.d.ts +0 -85
- package/dist/packages/combobox/index.js +0 -2492
- package/dist/packages/combobox/index.js.map +0 -7
- package/dist/packages/combobox/locales/da/messages.d.mts +0 -1
- package/dist/packages/combobox/locales/da/messages.mjs +0 -1
- package/dist/packages/combobox/locales/en/messages.d.mts +0 -1
- package/dist/packages/combobox/locales/en/messages.mjs +0 -1
- package/dist/packages/combobox/locales/fi/messages.d.mts +0 -1
- package/dist/packages/combobox/locales/fi/messages.mjs +0 -1
- package/dist/packages/combobox/locales/nb/messages.d.mts +0 -1
- package/dist/packages/combobox/locales/nb/messages.mjs +0 -1
- package/dist/packages/combobox/locales/sv/messages.d.mts +0 -1
- package/dist/packages/combobox/locales/sv/messages.mjs +0 -1
- package/dist/packages/combobox/react.d.ts +0 -7
- package/dist/packages/combobox/react.js +0 -17
- package/dist/packages/combobox/styles.d.ts +0 -1
- package/dist/packages/combobox/styles.js +0 -2
- package/dist/packages/dead-toggle/dead-toggle.react.stories.d.ts +0 -15
- package/dist/packages/dead-toggle/dead-toggle.react.stories.js +0 -34
- package/dist/packages/dead-toggle/dead-toggle.stories.d.ts +0 -14
- package/dist/packages/dead-toggle/dead-toggle.stories.js +0 -45
- package/dist/packages/dead-toggle/dead-toggle.test.d.ts +0 -1
- package/dist/packages/dead-toggle/dead-toggle.test.js +0 -9
- package/dist/packages/dead-toggle/index.d.ts +0 -17
- package/dist/packages/dead-toggle/index.js +0 -2547
- package/dist/packages/dead-toggle/index.js.map +0 -7
- package/dist/packages/dead-toggle/react.d.ts +0 -2
- package/dist/packages/dead-toggle/react.js +0 -11
- package/dist/packages/pageindicator/index.d.ts +0 -10
- package/dist/packages/pageindicator/index.js +0 -32
- package/dist/packages/pageindicator/index.js.map +0 -7
- package/dist/packages/pageindicator/pageindicator.react.stories.d.ts +0 -19
- package/dist/packages/pageindicator/pageindicator.react.stories.js +0 -20
- package/dist/packages/pageindicator/pageindicator.stories.d.ts +0 -32
- package/dist/packages/pageindicator/pageindicator.stories.js +0 -71
- package/dist/packages/pageindicator/react.d.ts +0 -2
- package/dist/packages/pageindicator/react.js +0 -11
- package/dist/packages/pageindicator/style.d.ts +0 -1
- package/dist/packages/pageindicator/style.js +0 -26
- package/dist/packages/pagination/index.d.ts +0 -32
- package/dist/packages/pagination/index.js +0 -2500
- package/dist/packages/pagination/index.js.map +0 -7
- package/dist/packages/pagination/locales/da/messages.d.mts +0 -1
- package/dist/packages/pagination/locales/da/messages.mjs +0 -1
- package/dist/packages/pagination/locales/en/messages.d.mts +0 -1
- package/dist/packages/pagination/locales/en/messages.mjs +0 -1
- package/dist/packages/pagination/locales/fi/messages.d.mts +0 -1
- package/dist/packages/pagination/locales/fi/messages.mjs +0 -1
- package/dist/packages/pagination/locales/nb/messages.d.mts +0 -1
- package/dist/packages/pagination/locales/nb/messages.mjs +0 -1
- package/dist/packages/pagination/locales/sv/messages.d.mts +0 -1
- package/dist/packages/pagination/locales/sv/messages.mjs +0 -1
- package/dist/packages/pagination/pagination.react.stories.d.ts +0 -21
- package/dist/packages/pagination/pagination.react.stories.js +0 -45
- package/dist/packages/pagination/pagination.stories.d.ts +0 -14
- package/dist/packages/pagination/pagination.stories.js +0 -56
- package/dist/packages/pagination/pagination.test.d.ts +0 -1
- package/dist/packages/pagination/pagination.test.js +0 -76
- package/dist/packages/pagination/react.d.ts +0 -5
- package/dist/packages/pagination/react.js +0 -15
- package/dist/packages/pagination/styles.d.ts +0 -1
- package/dist/packages/pagination/styles.js +0 -2
- package/dist/packages/rip-and-tear-checkbox/checkbox-group.d.ts +0 -10
- package/dist/packages/rip-and-tear-checkbox/checkbox-group.js +0 -7
- package/dist/packages/rip-and-tear-checkbox/checkbox-group.js.map +0 -7
- package/dist/packages/rip-and-tear-checkbox/checkbox.d.ts +0 -66
- package/dist/packages/rip-and-tear-checkbox/checkbox.js +0 -2591
- package/dist/packages/rip-and-tear-checkbox/checkbox.js.map +0 -7
- package/dist/packages/rip-and-tear-checkbox/checkbox.stories.d.ts +0 -11
- package/dist/packages/rip-and-tear-checkbox/checkbox.stories.js +0 -25
- package/dist/packages/rip-and-tear-checkbox/index.d.ts +0 -1
- package/dist/packages/rip-and-tear-checkbox/index.js +0 -6
- package/dist/packages/rip-and-tear-checkbox/react.d.ts +0 -7
- package/dist/packages/rip-and-tear-checkbox/react.js +0 -20
- package/dist/packages/rip-and-tear-checkbox/rip-and-tear-checkbox.react.stories.d.ts +0 -12
- package/dist/packages/rip-and-tear-checkbox/rip-and-tear-checkbox.react.stories.js +0 -10
- package/dist/packages/rip-and-tear-checkbox/styles.d.ts +0 -0
- package/dist/packages/rip-and-tear-checkbox/styles.js +0 -0
- package/dist/packages/rip-and-tear-radio/base-element.d.ts +0 -46
- package/dist/packages/rip-and-tear-radio/base-element.js +0 -100
- package/dist/packages/rip-and-tear-radio/custom-error-validator.d.ts +0 -6
- package/dist/packages/rip-and-tear-radio/custom-error-validator.js +0 -22
- package/dist/packages/rip-and-tear-radio/form-associated-element.d.ts +0 -103
- package/dist/packages/rip-and-tear-radio/form-associated-element.js +0 -282
- package/dist/packages/rip-and-tear-radio/host-styles.d.ts +0 -1
- package/dist/packages/rip-and-tear-radio/host-styles.js +0 -12
- package/dist/packages/rip-and-tear-radio/index.d.ts +0 -1
- package/dist/packages/rip-and-tear-radio/index.js +0 -6
- package/dist/packages/rip-and-tear-radio/invalid.d.ts +0 -8
- package/dist/packages/rip-and-tear-radio/invalid.js +0 -5
- package/dist/packages/rip-and-tear-radio/math.d.ts +0 -1
- package/dist/packages/rip-and-tear-radio/math.js +0 -4
- package/dist/packages/rip-and-tear-radio/radio-group-styles.d.ts +0 -1
- package/dist/packages/rip-and-tear-radio/radio-group-styles.js +0 -59
- package/dist/packages/rip-and-tear-radio/radio-group-styles.js.map +0 -7
- package/dist/packages/rip-and-tear-radio/radio-group.d.ts +0 -72
- package/dist/packages/rip-and-tear-radio/radio-group.js +0 -2648
- package/dist/packages/rip-and-tear-radio/radio-group.js.map +0 -7
- package/dist/packages/rip-and-tear-radio/radio-styles.d.ts +0 -0
- package/dist/packages/rip-and-tear-radio/radio-styles.js +0 -1
- package/dist/packages/rip-and-tear-radio/radio-styles.js.map +0 -7
- package/dist/packages/rip-and-tear-radio/radio.d.ts +0 -38
- package/dist/packages/rip-and-tear-radio/radio.js +0 -2562
- package/dist/packages/rip-and-tear-radio/radio.js.map +0 -7
- package/dist/packages/rip-and-tear-radio/radio.stories.d.ts +0 -8
- package/dist/packages/rip-and-tear-radio/radio.stories.js +0 -2653
- package/dist/packages/rip-and-tear-radio/radio.stories.js.map +0 -7
- package/dist/packages/rip-and-tear-radio/react.d.ts +0 -9
- package/dist/packages/rip-and-tear-radio/react.js +0 -22
- package/dist/packages/rip-and-tear-radio/required-validator.d.ts +0 -11
- package/dist/packages/rip-and-tear-radio/required-validator.js +0 -34
- package/dist/packages/rip-and-tear-radio/rip-and-tear-radio.react.stories.d.ts +0 -9
- package/dist/packages/rip-and-tear-radio/rip-and-tear-radio.react.stories.js +0 -10
- package/dist/packages/rip-and-tear-radio/slot.d.ts +0 -20
- package/dist/packages/rip-and-tear-radio/slot.js +0 -71
- package/dist/packages/rip-and-tear-radio/watch.d.ts +0 -26
- package/dist/packages/rip-and-tear-radio/watch.js +0 -39
- package/dist/packages/slider/Slider.d.ts +0 -2
- package/dist/packages/slider/Slider.js +0 -8
- package/dist/packages/slider/SliderThumb.d.ts +0 -2
- package/dist/packages/slider/SliderThumb.js +0 -8
- package/dist/packages/slider/index.d.ts +0 -2
- package/dist/packages/slider/index.js +0 -2
- package/dist/packages/slider/oddbird-css-anchor-positioning.d.ts +0 -2
- package/dist/packages/slider/oddbird-css-anchor-positioning.js +0 -3
- package/dist/packages/slider/react.d.ts +0 -8
- package/dist/packages/slider/react.js +0 -20
- package/dist/packages/slider/slider-thumb.d.ts +0 -57
- package/dist/packages/slider/slider-thumb.js +0 -2705
- package/dist/packages/slider/slider-thumb.js.map +0 -7
- package/dist/packages/slider/slider.d.ts +0 -46
- package/dist/packages/slider/slider.js +0 -2587
- package/dist/packages/slider/slider.js.map +0 -7
- package/dist/packages/slider/slider.react.stories.d.ts +0 -18
- package/dist/packages/slider/slider.react.stories.js +0 -118
- package/dist/packages/slider/slider.stories.d.ts +0 -18
- package/dist/packages/slider/slider.stories.js +0 -197
- package/dist/packages/slider/slider.test.d.ts +0 -4
- package/dist/packages/slider/slider.test.js +0 -83
- package/dist/packages/slider/styles/w-slider-thumb.styles.d.ts +0 -1
- package/dist/packages/slider/styles/w-slider-thumb.styles.js +0 -167
- package/dist/packages/slider/styles/w-slider.styles.d.ts +0 -1
- package/dist/packages/slider/styles/w-slider.styles.js +0 -134
- package/dist/packages/slider/styles.d.ts +0 -1
- package/dist/packages/slider/styles.js +0 -2
- package/dist/packages/steps/index.d.ts +0 -36
- package/dist/packages/steps/index.js +0 -2465
- package/dist/packages/steps/index.js.map +0 -7
- package/dist/packages/steps/locales/da/messages.d.mts +0 -1
- package/dist/packages/steps/locales/da/messages.mjs +0 -1
- package/dist/packages/steps/locales/en/messages.d.mts +0 -1
- package/dist/packages/steps/locales/en/messages.mjs +0 -1
- package/dist/packages/steps/locales/fi/messages.d.mts +0 -1
- package/dist/packages/steps/locales/fi/messages.mjs +0 -1
- package/dist/packages/steps/locales/nb/messages.d.mts +0 -1
- package/dist/packages/steps/locales/nb/messages.mjs +0 -1
- package/dist/packages/steps/locales/sv/messages.d.mts +0 -1
- package/dist/packages/steps/locales/sv/messages.mjs +0 -1
- package/dist/packages/steps/react.d.ts +0 -3
- package/dist/packages/steps/react.js +0 -16
- package/dist/packages/steps/steps.react.stories.d.ts +0 -15
- package/dist/packages/steps/steps.react.stories.js +0 -112
- package/dist/packages/steps/steps.stories.d.ts +0 -12
- package/dist/packages/steps/steps.stories.js +0 -172
- package/dist/packages/steps/styles.d.ts +0 -1
- package/dist/packages/steps/styles.js +0 -2
- package/dist/packages/switch/index.d.ts +0 -15
- package/dist/packages/switch/index.js +0 -2455
- package/dist/packages/switch/index.js.map +0 -7
- package/dist/packages/switch/react.d.ts +0 -5
- package/dist/packages/switch/react.js +0 -15
- package/dist/packages/switch/styles.d.ts +0 -1
- package/dist/packages/switch/styles.js +0 -2
- package/dist/packages/switch/switch.react.stories.d.ts +0 -15
- package/dist/packages/switch/switch.react.stories.js +0 -29
- package/dist/packages/switch/switch.stories.d.ts +0 -9
- package/dist/packages/switch/switch.stories.js +0 -34
- package/dist/packages/tabs/index.d.ts +0 -4
- package/dist/packages/tabs/index.js +0 -3
- package/dist/packages/tabs/react.d.ts +0 -12
- package/dist/packages/tabs/react.js +0 -31
- package/dist/packages/tabs/styles.d.ts +0 -1
- package/dist/packages/tabs/styles.js +0 -2
- package/dist/packages/tabs/tab-panel.d.ts +0 -20
- package/dist/packages/tabs/tab-panel.js +0 -51
- package/dist/packages/tabs/tab.d.ts +0 -18
- package/dist/packages/tabs/tab.js +0 -2463
- package/dist/packages/tabs/tab.js.map +0 -7
- package/dist/packages/tabs/tabs.d.ts +0 -40
- package/dist/packages/tabs/tabs.js +0 -2448
- package/dist/packages/tabs/tabs.js.map +0 -7
- package/dist/packages/tabs/tabs.react.stories.d.ts +0 -15
- package/dist/packages/tabs/tabs.react.stories.js +0 -51
- package/dist/packages/tabs/tabs.stories.d.ts +0 -8
- package/dist/packages/tabs/tabs.stories.js +0 -84
- package/dist/packages/textarea/index.d.ts +0 -1
- package/dist/packages/textarea/index.js +0 -1
- package/dist/packages/textarea/locales/da/messages.d.mts +0 -1
- package/dist/packages/textarea/locales/da/messages.mjs +0 -1
- package/dist/packages/textarea/locales/en/messages.d.mts +0 -1
- package/dist/packages/textarea/locales/en/messages.mjs +0 -1
- package/dist/packages/textarea/locales/fi/messages.d.mts +0 -1
- package/dist/packages/textarea/locales/fi/messages.mjs +0 -1
- package/dist/packages/textarea/locales/nb/messages.d.mts +0 -1
- package/dist/packages/textarea/locales/nb/messages.mjs +0 -1
- package/dist/packages/textarea/locales/sv/messages.d.mts +0 -1
- package/dist/packages/textarea/locales/sv/messages.mjs +0 -1
- package/dist/packages/textarea/react.d.ts +0 -11
- package/dist/packages/textarea/react.js +0 -21
- package/dist/packages/textarea/styles.d.ts +0 -1
- package/dist/packages/textarea/styles.js +0 -2
- package/dist/packages/textarea/textarea.d.ts +0 -48
- package/dist/packages/textarea/textarea.js +0 -2475
- package/dist/packages/textarea/textarea.js.map +0 -7
- package/dist/packages/textarea/textarea.react.stories.d.ts +0 -33
- package/dist/packages/textarea/textarea.react.stories.js +0 -41
- package/dist/packages/textarea/textarea.stories.d.ts +0 -19
- package/dist/packages/textarea/textarea.stories.js +0 -85
- package/dist/packages/textarea/textarea.test.d.ts +0 -1
- package/dist/packages/textarea/textarea.test.js +0 -49
- package/dist/packages/toggle-styles.d.ts +0 -1
- package/dist/packages/toggle-styles.js +0 -108
- package/dist/setup-tests.d.ts +0 -1
- package/dist/setup-tests.js +0 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@warp-ds/elements",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.3.0
|
|
4
|
+
"version": "2.3.0",
|
|
5
5
|
"packageManager": "pnpm@10.20.0",
|
|
6
6
|
"description": "Custom elements for Warp",
|
|
7
7
|
"exports": {
|
|
@@ -57,18 +57,10 @@
|
|
|
57
57
|
"types": "./dist/packages/card/react.d.ts",
|
|
58
58
|
"import": "./dist/packages/card/react.js"
|
|
59
59
|
},
|
|
60
|
-
"./react/combobox": {
|
|
61
|
-
"types": "./dist/packages/combobox/react.d.ts",
|
|
62
|
-
"import": "./dist/packages/combobox/react.js"
|
|
63
|
-
},
|
|
64
60
|
"./react/datepicker": {
|
|
65
61
|
"types": "./dist/packages/datepicker/react.d.ts",
|
|
66
62
|
"import": "./dist/packages/datepicker/react.js"
|
|
67
63
|
},
|
|
68
|
-
"./react/dead-toggle": {
|
|
69
|
-
"types": "./dist/packages/dead-toggle/react.d.ts",
|
|
70
|
-
"import": "./dist/packages/dead-toggle/react.js"
|
|
71
|
-
},
|
|
72
64
|
"./react/expandable": {
|
|
73
65
|
"types": "./dist/packages/expandable/react.d.ts",
|
|
74
66
|
"import": "./dist/packages/expandable/react.js"
|
|
@@ -81,50 +73,14 @@
|
|
|
81
73
|
"types": "./dist/packages/modal/react.d.ts",
|
|
82
74
|
"import": "./dist/packages/modal/react.js"
|
|
83
75
|
},
|
|
84
|
-
"./react/pageindicator": {
|
|
85
|
-
"types": "./dist/packages/pageindicator/react.d.ts",
|
|
86
|
-
"import": "./dist/packages/pageindicator/react.js"
|
|
87
|
-
},
|
|
88
|
-
"./react/pagination": {
|
|
89
|
-
"types": "./dist/packages/pagination/react.d.ts",
|
|
90
|
-
"import": "./dist/packages/pagination/react.js"
|
|
91
|
-
},
|
|
92
76
|
"./react/pill": {
|
|
93
77
|
"types": "./dist/packages/pill/react.d.ts",
|
|
94
78
|
"import": "./dist/packages/pill/react.js"
|
|
95
79
|
},
|
|
96
|
-
"./react/rip-and-tear-checkbox": {
|
|
97
|
-
"types": "./dist/packages/rip-and-tear-checkbox/react.d.ts",
|
|
98
|
-
"import": "./dist/packages/rip-and-tear-checkbox/react.js"
|
|
99
|
-
},
|
|
100
|
-
"./react/rip-and-tear-radio": {
|
|
101
|
-
"types": "./dist/packages/rip-and-tear-radio/react.d.ts",
|
|
102
|
-
"import": "./dist/packages/rip-and-tear-radio/react.js"
|
|
103
|
-
},
|
|
104
80
|
"./react/select": {
|
|
105
81
|
"types": "./dist/packages/select/react.d.ts",
|
|
106
82
|
"import": "./dist/packages/select/react.js"
|
|
107
83
|
},
|
|
108
|
-
"./react/slider": {
|
|
109
|
-
"types": "./dist/packages/slider/react.d.ts",
|
|
110
|
-
"import": "./dist/packages/slider/react.js"
|
|
111
|
-
},
|
|
112
|
-
"./react/steps": {
|
|
113
|
-
"types": "./dist/packages/steps/react.d.ts",
|
|
114
|
-
"import": "./dist/packages/steps/react.js"
|
|
115
|
-
},
|
|
116
|
-
"./react/switch": {
|
|
117
|
-
"types": "./dist/packages/switch/react.d.ts",
|
|
118
|
-
"import": "./dist/packages/switch/react.js"
|
|
119
|
-
},
|
|
120
|
-
"./react/tabs": {
|
|
121
|
-
"types": "./dist/packages/tabs/react.d.ts",
|
|
122
|
-
"import": "./dist/packages/tabs/react.js"
|
|
123
|
-
},
|
|
124
|
-
"./react/textarea": {
|
|
125
|
-
"types": "./dist/packages/textarea/react.d.ts",
|
|
126
|
-
"import": "./dist/packages/textarea/react.js"
|
|
127
|
-
},
|
|
128
84
|
"./react/textfield": {
|
|
129
85
|
"types": "./dist/packages/textfield/react.d.ts",
|
|
130
86
|
"import": "./dist/packages/textfield/react.js"
|
|
@@ -169,15 +125,9 @@
|
|
|
169
125
|
"react/card": [
|
|
170
126
|
"./dist/packages/card/react.d.ts"
|
|
171
127
|
],
|
|
172
|
-
"react/combobox": [
|
|
173
|
-
"./dist/packages/combobox/react.d.ts"
|
|
174
|
-
],
|
|
175
128
|
"react/datepicker": [
|
|
176
129
|
"./dist/packages/datepicker/react.d.ts"
|
|
177
130
|
],
|
|
178
|
-
"react/dead-toggle": [
|
|
179
|
-
"./dist/packages/dead-toggle/react.d.ts"
|
|
180
|
-
],
|
|
181
131
|
"react/expandable": [
|
|
182
132
|
"./dist/packages/expandable/react.d.ts"
|
|
183
133
|
],
|
|
@@ -187,39 +137,12 @@
|
|
|
187
137
|
"react/modal": [
|
|
188
138
|
"./dist/packages/modal/react.d.ts"
|
|
189
139
|
],
|
|
190
|
-
"react/pageindicator": [
|
|
191
|
-
"./dist/packages/pageindicator/react.d.ts"
|
|
192
|
-
],
|
|
193
|
-
"react/pagination": [
|
|
194
|
-
"./dist/packages/pagination/react.d.ts"
|
|
195
|
-
],
|
|
196
140
|
"react/pill": [
|
|
197
141
|
"./dist/packages/pill/react.d.ts"
|
|
198
142
|
],
|
|
199
|
-
"react/rip-and-tear-checkbox": [
|
|
200
|
-
"./dist/packages/rip-and-tear-checkbox/react.d.ts"
|
|
201
|
-
],
|
|
202
|
-
"react/rip-and-tear-radio": [
|
|
203
|
-
"./dist/packages/rip-and-tear-radio/react.d.ts"
|
|
204
|
-
],
|
|
205
143
|
"react/select": [
|
|
206
144
|
"./dist/packages/select/react.d.ts"
|
|
207
145
|
],
|
|
208
|
-
"react/slider": [
|
|
209
|
-
"./dist/packages/slider/react.d.ts"
|
|
210
|
-
],
|
|
211
|
-
"react/steps": [
|
|
212
|
-
"./dist/packages/steps/react.d.ts"
|
|
213
|
-
],
|
|
214
|
-
"react/switch": [
|
|
215
|
-
"./dist/packages/switch/react.d.ts"
|
|
216
|
-
],
|
|
217
|
-
"react/tabs": [
|
|
218
|
-
"./dist/packages/tabs/react.d.ts"
|
|
219
|
-
],
|
|
220
|
-
"react/textarea": [
|
|
221
|
-
"./dist/packages/textarea/react.d.ts"
|
|
222
|
-
],
|
|
223
146
|
"react/textfield": [
|
|
224
147
|
"./dist/packages/textfield/react.d.ts"
|
|
225
148
|
],
|
|
@@ -310,7 +233,6 @@
|
|
|
310
233
|
"html-format": "1.1.7",
|
|
311
234
|
"husky": "^9.1.7",
|
|
312
235
|
"lightningcss": "^1.30.1",
|
|
313
|
-
"lit": "3.x",
|
|
314
236
|
"nanoid": "^5.1.5",
|
|
315
237
|
"playwright": "^1.55.0",
|
|
316
238
|
"prettier": "3.3.2",
|
|
@@ -324,25 +246,25 @@
|
|
|
324
246
|
"vite": "^6.0.0",
|
|
325
247
|
"vitest": "^3.2.4",
|
|
326
248
|
"vitest-browser-lit": "^0.1.0",
|
|
327
|
-
"vitest-browser-react": "^1.0.1"
|
|
328
|
-
},
|
|
329
|
-
"dependencies": {
|
|
330
|
-
"@lingui/core": "5.2.0",
|
|
331
|
-
"@lit-labs/rollup-plugin-minify-html-literals": "^0.1.0",
|
|
332
|
-
"@lit/react": "^1.0.8",
|
|
333
|
-
"@open-wc/form-control": "^1.0.0",
|
|
249
|
+
"vitest-browser-react": "^1.0.1",
|
|
334
250
|
"@rollup/plugin-commonjs": "^28.0.6",
|
|
335
251
|
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
336
252
|
"@rollup/plugin-replace": "^6.0.2",
|
|
337
253
|
"@rollup/plugin-terser": "^0.4.4",
|
|
254
|
+
"tslib": "^2.8.1",
|
|
255
|
+
"rollup": "^4.52.3",
|
|
256
|
+
"@lit-labs/rollup-plugin-minify-html-literals": "^0.1.0",
|
|
257
|
+
"@lingui/core": "5.2.0",
|
|
338
258
|
"@warp-ds/core": "1.1.8",
|
|
339
259
|
"@warp-ds/css": "2.1.1",
|
|
340
|
-
"@warp-ds/elements-core": "2.0.1",
|
|
341
260
|
"@warp-ds/icons": "2.5.0",
|
|
342
261
|
"date-fns": "^4.1.0",
|
|
343
|
-
"rollup": "^4.52.3",
|
|
344
262
|
"scroll-doctor": "2.0.2",
|
|
345
|
-
"
|
|
263
|
+
"@open-wc/form-control": "^1.0.0"
|
|
264
|
+
},
|
|
265
|
+
"dependencies": {
|
|
266
|
+
"lit": "3.x",
|
|
267
|
+
"@lit/react": "^1.0.8"
|
|
346
268
|
},
|
|
347
269
|
"publishConfig": {
|
|
348
270
|
"access": "public"
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { StoryObj } from '@storybook/react';
|
|
3
|
-
import { Combobox } from './react';
|
|
4
|
-
declare const _default: {
|
|
5
|
-
title: string;
|
|
6
|
-
component: import("@lit/react").ReactWebComponent<import(".").WarpCombobox, {
|
|
7
|
-
onSelect: string;
|
|
8
|
-
onselect: string;
|
|
9
|
-
onChange: string;
|
|
10
|
-
onchange: string;
|
|
11
|
-
}>;
|
|
12
|
-
render(args: Omit<React.HTMLAttributes<import(".").WarpCombobox>, "label" | "onchange" | "onselect" | "onChange" | "onSelect" | "render" | "renderOptions" | "connectedCallback" | "disconnectedCallback" | "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "disabled" | "name" | "value" | "invalid" | "optional" | "helpText" | "placeholder" | "required" | "options" | "openOnFocus" | "selectOnBlur" | "matchTextSegments" | "disableStaticFiltering" | "containerClassName" | "listClassName"> & {
|
|
13
|
-
onSelect?: (e: Event) => void;
|
|
14
|
-
onselect?: (e: Event) => void;
|
|
15
|
-
onChange?: (e: Event) => void;
|
|
16
|
-
onchange?: (e: Event) => void;
|
|
17
|
-
} & Partial<Omit<import(".").WarpCombobox, keyof HTMLElement>> & React.RefAttributes<import(".").WarpCombobox>): React.JSX.Element;
|
|
18
|
-
};
|
|
19
|
-
export default _default;
|
|
20
|
-
export type Story = StoryObj<typeof Combobox>;
|
|
21
|
-
export declare const Default: Story;
|
|
22
|
-
export declare const WithValue: Story;
|
|
23
|
-
export declare const OpenOnFocus: Story;
|
|
24
|
-
export declare const WithTextMatching: Story;
|
|
25
|
-
export declare const Invalid: Story;
|
|
26
|
-
export declare const Disabled: Story;
|
|
27
|
-
export declare const Optional: Story;
|
|
28
|
-
export declare const DisableStaticFiltering: Story;
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Combobox } from './react';
|
|
3
|
-
export default {
|
|
4
|
-
title: 'Forms/Combobox',
|
|
5
|
-
component: Combobox,
|
|
6
|
-
render(args) {
|
|
7
|
-
return React.createElement(Combobox, { ...args, options: sampleOptions });
|
|
8
|
-
},
|
|
9
|
-
};
|
|
10
|
-
const sampleOptions = [
|
|
11
|
-
{ value: 'Apple', label: 'Apple' },
|
|
12
|
-
{ value: 'Banana', label: 'Banana' },
|
|
13
|
-
{ value: 'Orange', label: 'Orange' },
|
|
14
|
-
{ value: 'Grape', label: 'Grape' },
|
|
15
|
-
{ value: 'Strawberry', label: 'Strawberry' },
|
|
16
|
-
{ value: 'Pineapple', label: 'Pineapple' },
|
|
17
|
-
{ value: 'Mango', label: 'Mango' },
|
|
18
|
-
];
|
|
19
|
-
export const Default = {
|
|
20
|
-
args: {
|
|
21
|
-
options: sampleOptions,
|
|
22
|
-
label: 'Select a fruit',
|
|
23
|
-
placeholder: 'Type to search...',
|
|
24
|
-
},
|
|
25
|
-
};
|
|
26
|
-
export const WithValue = {
|
|
27
|
-
args: {
|
|
28
|
-
options: sampleOptions,
|
|
29
|
-
label: 'Select a fruit',
|
|
30
|
-
placeholder: 'Type to search...',
|
|
31
|
-
value: 'Apple',
|
|
32
|
-
},
|
|
33
|
-
};
|
|
34
|
-
export const OpenOnFocus = {
|
|
35
|
-
args: {
|
|
36
|
-
options: sampleOptions,
|
|
37
|
-
label: 'Select a fruit',
|
|
38
|
-
placeholder: 'Type to search...',
|
|
39
|
-
openOnFocus: true,
|
|
40
|
-
},
|
|
41
|
-
};
|
|
42
|
-
export const WithTextMatching = {
|
|
43
|
-
args: {
|
|
44
|
-
options: sampleOptions,
|
|
45
|
-
label: 'Select a fruit',
|
|
46
|
-
placeholder: 'Type to search...',
|
|
47
|
-
matchTextSegments: true,
|
|
48
|
-
},
|
|
49
|
-
};
|
|
50
|
-
export const Invalid = {
|
|
51
|
-
args: {
|
|
52
|
-
options: sampleOptions,
|
|
53
|
-
label: 'Select a fruit',
|
|
54
|
-
placeholder: 'Type to search...',
|
|
55
|
-
value: 'Invalid fruit',
|
|
56
|
-
helpText: 'Please select a valid fruit from the list',
|
|
57
|
-
invalid: true,
|
|
58
|
-
},
|
|
59
|
-
};
|
|
60
|
-
export const Disabled = {
|
|
61
|
-
args: {
|
|
62
|
-
options: sampleOptions,
|
|
63
|
-
label: 'Select a fruit',
|
|
64
|
-
placeholder: 'Type to search...',
|
|
65
|
-
value: 'Apple',
|
|
66
|
-
disabled: true,
|
|
67
|
-
},
|
|
68
|
-
};
|
|
69
|
-
export const Optional = {
|
|
70
|
-
args: {
|
|
71
|
-
options: sampleOptions,
|
|
72
|
-
label: 'Select a fruit',
|
|
73
|
-
placeholder: 'Type to search...',
|
|
74
|
-
optional: true,
|
|
75
|
-
},
|
|
76
|
-
};
|
|
77
|
-
export const DisableStaticFiltering = {
|
|
78
|
-
render: () => {
|
|
79
|
-
const [options, setOptions] = React.useState(sampleOptions);
|
|
80
|
-
const [val, setVal] = React.useState('');
|
|
81
|
-
return (React.createElement(Combobox, { id: "combobox-dynamic", label: "Select a fruit (dynamic)", placeholder: "Type to search...", disableStaticFiltering: true, value: val, options: options, onChange: (e) => {
|
|
82
|
-
setVal(e.detail.value);
|
|
83
|
-
// Simulate dynamic filtering
|
|
84
|
-
const filteredOptions = sampleOptions.filter((option) => option.value.toLowerCase().includes(e.detail.value.toLowerCase()));
|
|
85
|
-
setOptions(filteredOptions);
|
|
86
|
-
}, onSelect: (e) => {
|
|
87
|
-
setVal(e.detail.value);
|
|
88
|
-
} }));
|
|
89
|
-
},
|
|
90
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/web-components';
|
|
2
|
-
import './index.js';
|
|
3
|
-
import '../textfield/index.js';
|
|
4
|
-
import type { WarpCombobox } from './index.js';
|
|
5
|
-
declare const args: Partial<WarpCombobox> & {
|
|
6
|
-
[key: string]: any;
|
|
7
|
-
};
|
|
8
|
-
declare const meta: Meta<typeof args>;
|
|
9
|
-
export default meta;
|
|
10
|
-
type Story = StoryObj<WarpCombobox>;
|
|
11
|
-
export declare const Default: Story;
|
|
12
|
-
export declare const WithValue: Story;
|
|
13
|
-
export declare const OpenOnFocus: Story;
|
|
14
|
-
export declare const WithTextMatching: Story;
|
|
15
|
-
export declare const Invalid: Story;
|
|
16
|
-
export declare const Disabled: Story;
|
|
17
|
-
export declare const Optional: Story;
|
|
18
|
-
export declare const DisableStaticFiltering: Story;
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
import { spread } from '@open-wc/lit-helpers';
|
|
2
|
-
import { getStorybookHelpers } from '@wc-toolkit/storybook-helpers';
|
|
3
|
-
import { html } from 'lit';
|
|
4
|
-
import { prespread } from '../../.storybook/utilities.js';
|
|
5
|
-
import './index.js';
|
|
6
|
-
import '../textfield/index.js';
|
|
7
|
-
const { events, args, argTypes } = getStorybookHelpers('w-combobox');
|
|
8
|
-
const meta = {
|
|
9
|
-
title: 'Forms/Combobox',
|
|
10
|
-
component: 'w-combobox',
|
|
11
|
-
render(args) {
|
|
12
|
-
return html ` <w-combobox ${spread(prespread(args))} .options="${sampleOptions}"></w-combobox> `;
|
|
13
|
-
},
|
|
14
|
-
parameters: {
|
|
15
|
-
docs: {
|
|
16
|
-
description: {
|
|
17
|
-
component: 'A combobox element for text input with selectable options.',
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
actions: {
|
|
21
|
-
handles: events,
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
args,
|
|
25
|
-
argTypes,
|
|
26
|
-
};
|
|
27
|
-
export default meta;
|
|
28
|
-
const sampleOptions = [
|
|
29
|
-
{ value: 'Apple', label: 'Apple' },
|
|
30
|
-
{ value: 'Banana', label: 'Banana' },
|
|
31
|
-
{ value: 'Orange', label: 'Orange' },
|
|
32
|
-
{ value: 'Grape', label: 'Grape' },
|
|
33
|
-
{ value: 'Strawberry', label: 'Strawberry' },
|
|
34
|
-
{ value: 'Pineapple', label: 'Pineapple' },
|
|
35
|
-
{ value: 'Mango', label: 'Mango' },
|
|
36
|
-
];
|
|
37
|
-
export const Default = {
|
|
38
|
-
args: {},
|
|
39
|
-
render: () => html ` <w-combobox label="Select a fruit" placeholder="Type to search..." .options="${sampleOptions}"></w-combobox> `,
|
|
40
|
-
};
|
|
41
|
-
export const WithValue = {
|
|
42
|
-
args: {
|
|
43
|
-
options: sampleOptions,
|
|
44
|
-
label: 'Select a fruit',
|
|
45
|
-
placeholder: 'Type to search...',
|
|
46
|
-
value: 'Apple',
|
|
47
|
-
},
|
|
48
|
-
};
|
|
49
|
-
export const OpenOnFocus = {
|
|
50
|
-
args: {
|
|
51
|
-
options: sampleOptions,
|
|
52
|
-
label: 'Select a fruit',
|
|
53
|
-
placeholder: 'Type to search...',
|
|
54
|
-
openOnFocus: true,
|
|
55
|
-
},
|
|
56
|
-
};
|
|
57
|
-
export const WithTextMatching = {
|
|
58
|
-
args: {
|
|
59
|
-
options: sampleOptions,
|
|
60
|
-
label: 'Select a fruit',
|
|
61
|
-
placeholder: 'Type to search...',
|
|
62
|
-
matchTextSegments: true,
|
|
63
|
-
},
|
|
64
|
-
};
|
|
65
|
-
export const Invalid = {
|
|
66
|
-
args: {
|
|
67
|
-
options: sampleOptions,
|
|
68
|
-
label: 'Select a fruit',
|
|
69
|
-
placeholder: 'Type to search...',
|
|
70
|
-
value: 'Invalid fruit',
|
|
71
|
-
helpText: 'Please select a valid fruit from the list',
|
|
72
|
-
invalid: true,
|
|
73
|
-
},
|
|
74
|
-
};
|
|
75
|
-
export const Disabled = {
|
|
76
|
-
args: {
|
|
77
|
-
options: sampleOptions,
|
|
78
|
-
label: 'Select a fruit',
|
|
79
|
-
placeholder: 'Type to search...',
|
|
80
|
-
value: 'Apple',
|
|
81
|
-
disabled: true,
|
|
82
|
-
},
|
|
83
|
-
};
|
|
84
|
-
export const Optional = {
|
|
85
|
-
args: {
|
|
86
|
-
options: sampleOptions,
|
|
87
|
-
label: 'Select a fruit',
|
|
88
|
-
placeholder: 'Type to search...',
|
|
89
|
-
optional: true,
|
|
90
|
-
},
|
|
91
|
-
};
|
|
92
|
-
export const DisableStaticFiltering = {
|
|
93
|
-
render: () => html `
|
|
94
|
-
<w-combobox
|
|
95
|
-
id="combobox-dynamic"
|
|
96
|
-
label="Select a fruit (dynamic)"
|
|
97
|
-
placeholder="Type to search..."
|
|
98
|
-
disable-static-filtering></w-combobox>
|
|
99
|
-
<script type="module">
|
|
100
|
-
const combobox = document.querySelector('#combobox-dynamic');
|
|
101
|
-
const sampleOptions = ${JSON.stringify(sampleOptions)};
|
|
102
|
-
combobox.options = sampleOptions;
|
|
103
|
-
combobox.value = '';
|
|
104
|
-
|
|
105
|
-
combobox.addEventListener('change', (e) => {
|
|
106
|
-
combobox.value = e.detail.value;
|
|
107
|
-
// Simulate dynamic filtering
|
|
108
|
-
const filteredOptions = sampleOptions.filter((option) => option.value.toLowerCase().includes(e.detail.value.toLowerCase()));
|
|
109
|
-
combobox.options = filteredOptions;
|
|
110
|
-
});
|
|
111
|
-
|
|
112
|
-
combobox.addEventListener('select', (e) => {
|
|
113
|
-
combobox.value = e.detail.value;
|
|
114
|
-
});
|
|
115
|
-
</script>
|
|
116
|
-
`,
|
|
117
|
-
};
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import { LitElement, PropertyValues } from 'lit';
|
|
2
|
-
export interface ComboboxOption {
|
|
3
|
-
value: string;
|
|
4
|
-
label?: string;
|
|
5
|
-
key?: string;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* A combobox element for text input with selectable options.
|
|
9
|
-
*
|
|
10
|
-
* [See Storybook for usage examples](https://warp-ds.github.io/elements/?path=/docs/forms-combobox--docs)
|
|
11
|
-
*/
|
|
12
|
-
export declare class WarpCombobox extends LitElement {
|
|
13
|
-
/** The available options to select from */
|
|
14
|
-
options: ComboboxOption[];
|
|
15
|
-
/** Label above input */
|
|
16
|
-
label?: string;
|
|
17
|
-
/** Input placeholder */
|
|
18
|
-
placeholder?: string;
|
|
19
|
-
/** The input value */
|
|
20
|
-
value: string;
|
|
21
|
-
/** Whether the popover opens when focus is on the text field */
|
|
22
|
-
openOnFocus: boolean;
|
|
23
|
-
/** Select active option on blur */
|
|
24
|
-
selectOnBlur: boolean;
|
|
25
|
-
/** Whether the matching text segments in the options should be highlighted */
|
|
26
|
-
matchTextSegments: boolean;
|
|
27
|
-
/** Disable client-side static filtering */
|
|
28
|
-
disableStaticFiltering: boolean;
|
|
29
|
-
/** Renders the input field in an invalid state */
|
|
30
|
-
invalid: boolean;
|
|
31
|
-
/** The content to display as the help text */
|
|
32
|
-
helpText?: string;
|
|
33
|
-
/** Whether the element is disabled */
|
|
34
|
-
disabled: boolean;
|
|
35
|
-
/** Whether the element is required */
|
|
36
|
-
required: boolean;
|
|
37
|
-
/** Whether to show optional text */
|
|
38
|
-
optional: boolean;
|
|
39
|
-
/** Additional container styling */
|
|
40
|
-
containerClassName?: string;
|
|
41
|
-
/** Additional list styling */
|
|
42
|
-
listClassName?: string;
|
|
43
|
-
/** Name attribute for form submission */
|
|
44
|
-
name?: string;
|
|
45
|
-
/** @internal Options list open boolean */
|
|
46
|
-
private _isOpen;
|
|
47
|
-
/** @internal The option the user has navigated to with their keyboard */
|
|
48
|
-
private _navigationOption;
|
|
49
|
-
/** @internal Available options based on user's input value */
|
|
50
|
-
private _currentOptions;
|
|
51
|
-
/** @internal Unique identifier counter for options */
|
|
52
|
-
private _optionIdCounter;
|
|
53
|
-
static styles: import("lit").CSSResult[];
|
|
54
|
-
constructor();
|
|
55
|
-
private get _listboxId();
|
|
56
|
-
private get _id();
|
|
57
|
-
private get _helpId();
|
|
58
|
-
private get _navigationValueOrInputValue();
|
|
59
|
-
/** Generate options with unique IDs and match information */
|
|
60
|
-
private _createOptionsWithIdAndMatch;
|
|
61
|
-
/** Get ARIA text for screen readers */
|
|
62
|
-
private _getAriaText;
|
|
63
|
-
/** Get option classes */
|
|
64
|
-
private _getOptionClasses;
|
|
65
|
-
/** Handle keyboard navigation */
|
|
66
|
-
private _handleKeyDown;
|
|
67
|
-
/** Find and set active option based on keyboard navigation */
|
|
68
|
-
private _findAndSetActiveOption;
|
|
69
|
-
/** Handle option selection */
|
|
70
|
-
private _handleSelect;
|
|
71
|
-
/** Handle input change */
|
|
72
|
-
private _handleChange;
|
|
73
|
-
/** Handle input focus */
|
|
74
|
-
private _handleFocus;
|
|
75
|
-
/** Handle input blur */
|
|
76
|
-
private _handleBlur;
|
|
77
|
-
/** Handle option click */
|
|
78
|
-
private _handleOptionClick;
|
|
79
|
-
/** Handle container blur */
|
|
80
|
-
private _handleContainerBlur;
|
|
81
|
-
/** Render highlighted text match */
|
|
82
|
-
private _renderTextMatch;
|
|
83
|
-
protected willUpdate(changedProperties: PropertyValues<this>): void;
|
|
84
|
-
render(): import("lit").TemplateResult<1>;
|
|
85
|
-
}
|