@hopper-ui/components 1.3.9 → 1.3.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/Avatar/src/AnonymousAvatar.css +37 -37
- package/dist/Avatar/src/AnonymousAvatar.js +2 -2
- package/dist/Avatar/src/Avatar.css +55 -55
- package/dist/Avatar/src/Avatar.js +3 -3
- package/dist/Avatar/src/DeletedAvatar.css +37 -37
- package/dist/Avatar/src/DeletedAvatar.js +2 -2
- package/dist/Avatar/src/RichIconAvatarImage.css +37 -37
- package/dist/Avatar/src/RichIconAvatarImage.js +1 -1
- package/dist/Avatar/src/index.css +55 -55
- package/dist/Avatar/src/index.js +5 -5
- package/dist/Badge/src/Badge.css +42 -42
- package/dist/Badge/src/Badge.js +2 -2
- package/dist/Badge/src/FloatingBadge.css +37 -37
- package/dist/Badge/src/FloatingBadge.js +1 -1
- package/dist/Badge/src/index.css +52 -52
- package/dist/Badge/src/index.js +3 -3
- package/dist/ComboBox/src/ComboBox.css +713 -713
- package/dist/ComboBox/src/ComboBox.d.ts +4 -0
- package/dist/ComboBox/src/ComboBox.js +46 -47
- package/dist/ComboBox/src/index.css +713 -713
- package/dist/ComboBox/src/index.js +46 -47
- package/dist/Divider/src/Divider.css +29 -29
- package/dist/Divider/src/Divider.js +1 -1
- package/dist/Divider/src/index.css +29 -29
- package/dist/Divider/src/index.js +1 -1
- package/dist/ErrorMessage/src/ErrorMessage.css +29 -29
- package/dist/ErrorMessage/src/ErrorMessage.js +2 -2
- package/dist/ErrorMessage/src/index.css +29 -29
- package/dist/ErrorMessage/src/index.js +2 -2
- package/dist/Form/src/Form.css +1833 -1671
- package/dist/Form/src/Form.d.ts +4 -0
- package/dist/Form/src/Form.js +46 -45
- package/dist/Form/src/index.css +1833 -1671
- package/dist/Form/src/index.js +46 -45
- package/dist/HelperMessage/src/HelperMessage.css +29 -29
- package/dist/HelperMessage/src/HelperMessage.js +2 -2
- package/dist/HelperMessage/src/index.css +29 -29
- package/dist/HelperMessage/src/index.js +2 -2
- package/dist/IconList/src/IconList.css +28 -28
- package/dist/IconList/src/IconList.js +1 -1
- package/dist/IconList/src/index.css +28 -28
- package/dist/IconList/src/index.js +1 -1
- package/dist/Link/src/Link.css +49 -49
- package/dist/Link/src/Link.js +2 -2
- package/dist/Link/src/index.css +49 -49
- package/dist/Link/src/index.js +2 -2
- package/dist/ListBox/src/ListBox.css +274 -274
- package/dist/ListBox/src/ListBox.js +6 -6
- package/dist/ListBox/src/ListBoxItem.css +262 -262
- package/dist/ListBox/src/ListBoxItem.js +5 -5
- package/dist/ListBox/src/ListBoxItemSkeleton.css +34 -34
- package/dist/ListBox/src/ListBoxItemSkeleton.js +1 -1
- package/dist/ListBox/src/index.css +274 -274
- package/dist/ListBox/src/index.js +6 -6
- package/dist/Select/src/Select.css +857 -695
- package/dist/Select/src/Select.d.ts +4 -0
- package/dist/Select/src/Select.js +46 -45
- package/dist/Select/src/SelectValue.css +61 -61
- package/dist/Select/src/SelectValue.js +5 -5
- package/dist/Select/src/index.css +857 -695
- package/dist/Select/src/index.js +46 -45
- package/dist/Spinner/src/Spinner.css +37 -37
- package/dist/Spinner/src/Spinner.js +2 -2
- package/dist/Spinner/src/index.css +37 -37
- package/dist/Spinner/src/index.js +2 -2
- package/dist/buttons/src/Button.css +112 -112
- package/dist/buttons/src/Button.js +3 -3
- package/dist/buttons/src/ButtonGroup.css +38 -38
- package/dist/buttons/src/ButtonGroup.js +1 -1
- package/dist/buttons/src/ClearButton.css +98 -98
- package/dist/buttons/src/ClearButton.js +2 -2
- package/dist/buttons/src/EmbeddedButton.css +98 -98
- package/dist/buttons/src/EmbeddedButton.js +1 -1
- package/dist/buttons/src/index.css +194 -194
- package/dist/buttons/src/index.js +6 -6
- package/dist/checkbox/src/Checkbox.css +46 -46
- package/dist/checkbox/src/Checkbox.js +2 -2
- package/dist/checkbox/src/CheckboxField.css +33 -33
- package/dist/checkbox/src/CheckboxField.js +1 -1
- package/dist/checkbox/src/CheckboxGroup.css +98 -98
- package/dist/checkbox/src/CheckboxGroup.d.ts +4 -0
- package/dist/checkbox/src/CheckboxGroup.js +1 -1
- package/dist/checkbox/src/DecorativeCheckbox.css +54 -54
- package/dist/checkbox/src/DecorativeCheckbox.js +2 -2
- package/dist/checkbox/src/index.css +98 -98
- package/dist/checkbox/src/index.js +5 -5
- package/dist/{chunk-4PBFVO5S.js → chunk-2BYOZEHS.js} +1 -1
- package/dist/{chunk-ANO4F3LJ.js → chunk-45BUVEOG.js} +7 -2
- package/dist/{chunk-TMGUYWTR.js → chunk-46Y3BNK6.js} +2 -2
- package/dist/{chunk-I55EPFTM.js → chunk-4KKT3O2S.js} +1 -1
- package/dist/{chunk-UJXKUNEW.js → chunk-6J3RVKV4.js} +477 -193
- package/dist/{chunk-E4JB7I3F.js → chunk-7P6QVHCU.js} +1 -1
- package/dist/{chunk-GIMOHY5C.js → chunk-AH3LBZUR.js} +2 -2
- package/dist/{chunk-CZRCXQFS.js → chunk-ARURHRKE.js} +1 -1
- package/dist/{chunk-2ZXF62AA.js → chunk-B44HANDX.js} +2 -2
- package/dist/{chunk-4FVIH73F.js → chunk-BJNXUNAB.js} +2 -2
- package/dist/{chunk-GDVP2QEZ.js → chunk-CIKHW47C.js} +1 -1
- package/dist/{chunk-HI2SHIGG.js → chunk-DCAA2AVQ.js} +1 -1
- package/dist/{chunk-6U6JI3L3.js → chunk-DV7LZMDA.js} +1 -1
- package/dist/{chunk-7LTA4KPO.js → chunk-FF6KAPPN.js} +5 -4
- package/dist/{chunk-5TH7VHRH.js → chunk-FI74MGJH.js} +3 -3
- package/dist/{chunk-3O74ORYF.js → chunk-GLFAZQ25.js} +2 -2
- package/dist/{chunk-VC3HSOGC.js → chunk-GU6D6RQL.js} +5 -4
- package/dist/{chunk-TRDXTYZD.js → chunk-IBHSGV7Y.js} +3 -3
- package/dist/{chunk-JX5YYFB3.js → chunk-IJS2OFE5.js} +2 -2
- package/dist/{chunk-VQKJXEPU.js → chunk-JCD37WMK.js} +2 -2
- package/dist/{chunk-XQFICAVB.js → chunk-JMQTEJC4.js} +3 -3
- package/dist/{chunk-HCJLAF2O.js → chunk-JRL2S56W.js} +4 -4
- package/dist/{chunk-N66DZLL6.js → chunk-KKL5HHYL.js} +4 -2
- package/dist/{chunk-2GYC6ADT.js → chunk-LU7KOIOH.js} +5 -5
- package/dist/{chunk-NQD2OQEG.js → chunk-MMROXMQV.js} +4 -4
- package/dist/{chunk-FBABNQTM.js → chunk-OBLOV2RN.js} +5 -4
- package/dist/{chunk-KOT3ULJY.js → chunk-OOY56G7Y.js} +2 -2
- package/dist/{chunk-YQDRT547.js → chunk-P5YCVNZM.js} +7 -4
- package/dist/{chunk-B2O3ZCYC.js → chunk-QX6MTYPY.js} +1 -1
- package/dist/{chunk-6KHTQTRF.js → chunk-RKX7GGGY.js} +1 -1
- package/dist/{chunk-2WK465I4.js → chunk-RZ4K42NA.js} +1 -1
- package/dist/{chunk-S6AH3YTH.js → chunk-TNXKWBYE.js} +7 -6
- package/dist/{chunk-ENHK4K3U.js → chunk-TTECXSWO.js} +2 -2
- package/dist/{chunk-Q6SYCTJD.js → chunk-UBMAVA4B.js} +7 -2
- package/dist/{chunk-BGOYDN4M.js → chunk-VM6LLJYR.js} +2 -2
- package/dist/{chunk-RDLI353P.js → chunk-VRMZDHNL.js} +1 -1
- package/dist/{chunk-XHW2Z6AX.js → chunk-X7ZM3VW6.js} +1 -1
- package/dist/{chunk-UR3NK3LV.js → chunk-XBVS62J3.js} +1 -1
- package/dist/{chunk-54U727IV.js → chunk-XDRKVTAI.js} +2 -2
- package/dist/{chunk-4EUVVRTY.js → chunk-XFQJ7HYB.js} +1 -1
- package/dist/{chunk-MLHAFFJQ.js → chunk-XNOILDPJ.js} +1 -1
- package/dist/{chunk-2SF7BBJT.js → chunk-XT3AM5KT.js} +1 -1
- package/dist/{chunk-PAW7CB3K.js → chunk-XT4MALWA.js} +2 -2
- package/dist/{chunk-KQQCELPA.js → chunk-Y7G6PIDC.js} +1 -1
- package/dist/{chunk-A3E76SDY.js → chunk-ZRGWYBTI.js} +1 -1
- package/dist/index.css +1839 -1677
- package/dist/index.d.ts +2 -0
- package/dist/index.js +46 -45
- package/dist/inputs/src/InputGroup.css +209 -209
- package/dist/inputs/src/InputGroup.js +1 -1
- package/dist/inputs/src/NumberField.css +231 -231
- package/dist/inputs/src/NumberField.d.ts +4 -0
- package/dist/inputs/src/NumberField.js +6 -6
- package/dist/inputs/src/PasswordField.css +219 -219
- package/dist/inputs/src/PasswordField.d.ts +4 -0
- package/dist/inputs/src/PasswordField.js +7 -7
- package/dist/inputs/src/RemainingCharacterCount.css +30 -30
- package/dist/inputs/src/RemainingCharacterCount.js +5 -5
- package/dist/inputs/src/SearchField.css +225 -225
- package/dist/inputs/src/SearchField.d.ts +4 -0
- package/dist/inputs/src/SearchField.js +8 -8
- package/dist/inputs/src/TextArea.css +226 -226
- package/dist/inputs/src/TextArea.d.ts +4 -0
- package/dist/inputs/src/TextArea.js +7 -7
- package/dist/inputs/src/TextField.css +223 -223
- package/dist/inputs/src/TextField.d.ts +4 -0
- package/dist/inputs/src/TextField.js +9 -9
- package/dist/inputs/src/index.css +269 -269
- package/dist/inputs/src/index.js +13 -13
- package/dist/overlays/Popover/src/Popover.css +1975 -1813
- package/dist/overlays/Popover/src/Popover.js +46 -45
- package/dist/overlays/Popover/src/index.css +1975 -1813
- package/dist/overlays/Popover/src/index.js +46 -45
- package/dist/radio/src/DecorativeRadio.css +54 -54
- package/dist/radio/src/DecorativeRadio.js +2 -2
- package/dist/radio/src/Radio.css +46 -46
- package/dist/radio/src/Radio.js +2 -2
- package/dist/radio/src/RadioField.css +33 -33
- package/dist/radio/src/RadioField.js +1 -1
- package/dist/radio/src/RadioGroup.css +98 -98
- package/dist/radio/src/RadioGroup.d.ts +4 -0
- package/dist/radio/src/RadioGroup.js +1 -1
- package/dist/radio/src/index.css +98 -98
- package/dist/radio/src/index.js +5 -5
- package/dist/switch/src/Switch.css +43 -43
- package/dist/switch/src/Switch.js +2 -2
- package/dist/switch/src/SwitchField.css +33 -33
- package/dist/switch/src/SwitchField.js +1 -1
- package/dist/switch/src/index.css +49 -49
- package/dist/switch/src/index.js +3 -3
- package/dist/tag/src/Tag.css +335 -335
- package/dist/tag/src/Tag.js +5 -5
- package/dist/tag/src/TagGroup.css +37 -37
- package/dist/tag/src/TagGroup.d.ts +4 -0
- package/dist/tag/src/TagGroup.js +1 -1
- package/dist/tag/src/TagList.css +27 -27
- package/dist/tag/src/index.css +345 -345
- package/dist/tag/src/index.js +6 -6
- package/dist/typography/Heading/src/Heading.css +27 -27
- package/dist/typography/Heading/src/Heading.js +1 -1
- package/dist/typography/Heading/src/index.css +27 -27
- package/dist/typography/Heading/src/index.js +1 -1
- package/dist/typography/Label/src/Label.css +27 -27
- package/dist/typography/Label/src/Label.d.ts +2 -2
- package/dist/typography/Label/src/Label.js +1 -1
- package/dist/typography/Label/src/index.css +27 -27
- package/dist/typography/Label/src/index.js +1 -1
- package/dist/typography/OverlineText/src/OverlineText.css +27 -27
- package/dist/typography/OverlineText/src/OverlineText.js +1 -1
- package/dist/typography/OverlineText/src/index.css +27 -27
- package/dist/typography/OverlineText/src/index.js +1 -1
- package/dist/typography/Text/src/Text.css +27 -27
- package/dist/typography/Text/src/Text.js +1 -1
- package/dist/typography/Text/src/index.css +27 -27
- package/dist/typography/Text/src/index.js +1 -1
- package/dist/utils/src/EnsureTextWrapper.css +27 -27
- package/dist/utils/src/EnsureTextWrapper.js +5 -5
- package/dist/utils/src/index.css +27 -27
- package/dist/utils/src/index.js +5 -5
- package/package.json +1 -1
- package/dist/chunk-KSKIQSYM.js +0 -260
package/dist/utils/src/index.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* css-module:/home/runner/work/wl-hopper/wl-hopper/packages/components/src/typography/Heading/src/Heading.module.css/#css-module-data */
|
|
2
|
-
.Heading-module__hop-
|
|
2
|
+
.Heading-module__hop-Heading___Z-4EL {
|
|
3
3
|
--hop-Heading-xs-font-size: var(--hop-heading-xs-font-size);
|
|
4
4
|
--hop-Heading-xs-font-family: var(--hop-heading-xs-font-family);
|
|
5
5
|
--hop-Heading-xs-font-weight: var(--hop-heading-xs-font-weight);
|
|
@@ -33,50 +33,50 @@
|
|
|
33
33
|
--hop-Heading-inherit-size-font-weight: inherit;
|
|
34
34
|
--hop-Heading-inherit-size-line-height: inherit;
|
|
35
35
|
}
|
|
36
|
-
:where(.Heading-module__hop-
|
|
36
|
+
:where(.Heading-module__hop-Heading___Z-4EL) {
|
|
37
37
|
margin: 0;
|
|
38
38
|
font-family: var(--font-family);
|
|
39
39
|
font-size: var(--font-size);
|
|
40
40
|
font-weight: var(--font-weight);
|
|
41
41
|
line-height: var(--line-height);
|
|
42
42
|
}
|
|
43
|
-
:where(.Heading-module__hop-Heading--
|
|
43
|
+
:where(.Heading-module__hop-Heading--xs___wFSJ8) {
|
|
44
44
|
--font-size: var(--hop-Heading-xs-font-size);
|
|
45
45
|
--font-family: var(--hop-Heading-xs-font-family);
|
|
46
46
|
--font-weight: var(--hop-Heading-xs-font-weight);
|
|
47
47
|
--line-height: var(--hop-Heading-xs-line-height);
|
|
48
48
|
}
|
|
49
|
-
:where(.Heading-module__hop-Heading--
|
|
49
|
+
:where(.Heading-module__hop-Heading--sm___XbWC5) {
|
|
50
50
|
--font-size: var(--hop-Heading-sm-font-size);
|
|
51
51
|
--font-family: var(--hop-Heading-sm-font-family);
|
|
52
52
|
--font-weight: var(--hop-Heading-sm-font-weight);
|
|
53
53
|
--line-height: var(--hop-Heading-sm-line-height);
|
|
54
54
|
}
|
|
55
|
-
:where(.Heading-module__hop-Heading--
|
|
55
|
+
:where(.Heading-module__hop-Heading--md___B-n4o) {
|
|
56
56
|
--font-size: var(--hop-Heading-md-font-size);
|
|
57
57
|
--font-family: var(--hop-Heading-md-font-family);
|
|
58
58
|
--font-weight: var(--hop-Heading-md-font-weight);
|
|
59
59
|
--line-height: var(--hop-Heading-md-line-height);
|
|
60
60
|
}
|
|
61
|
-
:where(.Heading-module__hop-Heading--
|
|
61
|
+
:where(.Heading-module__hop-Heading--lg___dcKED) {
|
|
62
62
|
--font-size: var(--hop-Heading-lg-font-size);
|
|
63
63
|
--font-family: var(--hop-Heading-lg-font-family);
|
|
64
64
|
--font-weight: var(--hop-Heading-lg-font-weight);
|
|
65
65
|
--line-height: var(--hop-Heading-lg-line-height);
|
|
66
66
|
}
|
|
67
|
-
:where(.Heading-module__hop-Heading--
|
|
67
|
+
:where(.Heading-module__hop-Heading--xl___rOKV1) {
|
|
68
68
|
--font-size: var(--hop-Heading-xl-font-size);
|
|
69
69
|
--font-family: var(--hop-Heading-xl-font-family);
|
|
70
70
|
--font-weight: var(--hop-Heading-xl-font-weight);
|
|
71
71
|
--line-height: var(--hop-Heading-xl-line-height);
|
|
72
72
|
}
|
|
73
|
-
:where(.Heading-module__hop-Heading--
|
|
73
|
+
:where(.Heading-module__hop-Heading--2xl___RYtOx) {
|
|
74
74
|
--font-size: var(--hop-Heading-2xl-font-size);
|
|
75
75
|
--font-family: var(--hop-Heading-2xl-font-family);
|
|
76
76
|
--font-weight: var(--hop-Heading-2xl-font-weight);
|
|
77
77
|
--line-height: var(--hop-Heading-2xl-line-height);
|
|
78
78
|
}
|
|
79
|
-
:where(.Heading-module__hop-Heading--
|
|
79
|
+
:where(.Heading-module__hop-Heading--3xl___DIk1u) {
|
|
80
80
|
--font-size: var(--hop-Heading-3xl-font-size);
|
|
81
81
|
--font-family: var(--hop-Heading-3xl-font-family);
|
|
82
82
|
--font-weight: var(--hop-Heading-3xl-font-weight);
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
/* css-module:/home/runner/work/wl-hopper/wl-hopper/packages/components/src/typography/Text/src/Text.module.css/#css-module-data */
|
|
87
|
-
.Text-module__hop-
|
|
87
|
+
.Text-module__hop-Text___bIQxx {
|
|
88
88
|
--hop-Text-xs-font-size: var(--hop-body-xs-font-size);
|
|
89
89
|
--hop-Text-xs-font-family: var(--hop-body-xs-font-family);
|
|
90
90
|
--hop-Text-xs-font-weight: var(--hop-body-xs-font-weight);
|
|
@@ -114,49 +114,49 @@
|
|
|
114
114
|
--hop-Text-inherit-size-font-weight: inherit;
|
|
115
115
|
--hop-Text-inherit-size-line-height: inherit;
|
|
116
116
|
}
|
|
117
|
-
:where(.Text-module__hop-
|
|
117
|
+
:where(.Text-module__hop-Text___bIQxx) {
|
|
118
118
|
font-family: var(--font-family);
|
|
119
119
|
font-size: var(--font-size);
|
|
120
120
|
font-weight: var(--font-weight);
|
|
121
121
|
line-height: var(--line-height);
|
|
122
122
|
}
|
|
123
|
-
:where(.Text-module__hop-Text--
|
|
123
|
+
:where(.Text-module__hop-Text--xs___uYk5Y) {
|
|
124
124
|
--font-size: var(--hop-Text-xs-font-size);
|
|
125
125
|
--font-family: var(--hop-Text-xs-font-family);
|
|
126
126
|
--font-weight: var(--hop-Text-xs-font-weight);
|
|
127
127
|
--line-height: var(--hop-Text-xs-line-height);
|
|
128
128
|
}
|
|
129
|
-
:where(.Text-module__hop-Text--
|
|
129
|
+
:where(.Text-module__hop-Text--sm___kg1RL) {
|
|
130
130
|
--font-size: var(--hop-Text-sm-font-size);
|
|
131
131
|
--font-family: var(--hop-Text-sm-font-family);
|
|
132
132
|
--font-weight: var(--hop-Text-sm-font-weight);
|
|
133
133
|
--line-height: var(--hop-Text-sm-line-height);
|
|
134
134
|
}
|
|
135
|
-
:where(.Text-module__hop-Text--
|
|
135
|
+
:where(.Text-module__hop-Text--md___UxnHr) {
|
|
136
136
|
--font-size: var(--hop-Text-md-font-size);
|
|
137
137
|
--font-family: var(--hop-Text-md-font-family);
|
|
138
138
|
--font-weight: var(--hop-Text-md-font-weight);
|
|
139
139
|
--line-height: var(--hop-Text-md-line-height);
|
|
140
140
|
}
|
|
141
|
-
:where(.Text-module__hop-Text--
|
|
141
|
+
:where(.Text-module__hop-Text--lg___n7Sbi) {
|
|
142
142
|
--font-size: var(--hop-Text-lg-font-size);
|
|
143
143
|
--font-family: var(--hop-Text-lg-font-family);
|
|
144
144
|
--font-weight: var(--hop-Text-lg-font-weight);
|
|
145
145
|
--line-height: var(--hop-Text-lg-line-height);
|
|
146
146
|
}
|
|
147
|
-
:where(.Text-module__hop-Text--
|
|
147
|
+
:where(.Text-module__hop-Text--xl___f-RXZ) {
|
|
148
148
|
--font-size: var(--hop-Text-xl-font-size);
|
|
149
149
|
--font-family: var(--hop-Text-xl-font-family);
|
|
150
150
|
--font-weight: var(--hop-Text-xl-font-weight);
|
|
151
151
|
--line-height: var(--hop-Text-xl-line-height);
|
|
152
152
|
}
|
|
153
|
-
:where(.Text-module__hop-Text--
|
|
153
|
+
:where(.Text-module__hop-Text--2xl___-DveI) {
|
|
154
154
|
--font-size: var(--hop-Text-2xl-font-size);
|
|
155
155
|
--font-family: var(--hop-Text-2xl-font-family);
|
|
156
156
|
--font-weight: var(--hop-Text-2xl-font-weight);
|
|
157
157
|
--line-height: var(--hop-Text-2xl-line-height);
|
|
158
158
|
}
|
|
159
|
-
:where(.Text-module__hop-Text--
|
|
159
|
+
:where(.Text-module__hop-Text--inherit___zEio8) {
|
|
160
160
|
--font-size: var(--hop-Text-inherit-size-font-size);
|
|
161
161
|
--font-family: var(--hop-Text-inherit-size-font-family);
|
|
162
162
|
--font-weight: var(--hop-Text-inherit-size-font-weight);
|
|
@@ -164,7 +164,7 @@
|
|
|
164
164
|
}
|
|
165
165
|
|
|
166
166
|
/* css-module:/home/runner/work/wl-hopper/wl-hopper/packages/components/src/typography/OverlineText/src/OverlineText.module.css/#css-module-data */
|
|
167
|
-
:where(.OverlineText-module__hop-
|
|
167
|
+
:where(.OverlineText-module__hop-OverlineText___lOJLD) {
|
|
168
168
|
--hop-OverlineText-font-family: var(--hop-overline-font-family);
|
|
169
169
|
--hop-OverlineText-font-size: var(--hop-overline-font-size);
|
|
170
170
|
--hop-OverlineText-font-weight: var(--hop-overline-font-weight);
|
|
@@ -188,39 +188,39 @@
|
|
|
188
188
|
text-transform: uppercase;
|
|
189
189
|
letter-spacing: var(--letter-spacing);
|
|
190
190
|
}
|
|
191
|
-
.OverlineText-module__hop-
|
|
191
|
+
.OverlineText-module__hop-OverlineText__text___EHfnC {
|
|
192
192
|
box-sizing: border-box;
|
|
193
193
|
}
|
|
194
|
-
.OverlineText-module__hop-
|
|
195
|
-
.OverlineText-module__hop-
|
|
194
|
+
.OverlineText-module__hop-OverlineText__text___EHfnC::before,
|
|
195
|
+
.OverlineText-module__hop-OverlineText__text___EHfnC::after {
|
|
196
196
|
content: "";
|
|
197
197
|
display: block;
|
|
198
198
|
box-sizing: border-box;
|
|
199
199
|
inline-size: 0;
|
|
200
200
|
block-size: 0;
|
|
201
201
|
}
|
|
202
|
-
.OverlineText-module__hop-
|
|
202
|
+
.OverlineText-module__hop-OverlineText__text___EHfnC::before {
|
|
203
203
|
margin-block-end: var(--bottom-offset);
|
|
204
204
|
}
|
|
205
|
-
.OverlineText-module__hop-
|
|
205
|
+
.OverlineText-module__hop-OverlineText__text___EHfnC::after {
|
|
206
206
|
margin-block-start: var(--top-offset);
|
|
207
207
|
}
|
|
208
208
|
|
|
209
209
|
/* css-module:/home/runner/work/wl-hopper/wl-hopper/packages/components/src/typography/Label/src/Label.module.css/#css-module-data */
|
|
210
|
-
.Label-module__hop-
|
|
210
|
+
.Label-module__hop-Label___2IpOS {
|
|
211
211
|
--hop-Label-font-size: var(--hop-heading-xs-font-size);
|
|
212
212
|
--hop-Label-font-family: var(--hop-heading-xs-font-family);
|
|
213
213
|
--hop-Label-font-weight: var(--hop-heading-xs-font-weight);
|
|
214
214
|
--hop-Label-line-height: var(--hop-heading-xs-line-height);
|
|
215
215
|
--hop-Label-color: var(--hop-neutral-text-weak);
|
|
216
216
|
}
|
|
217
|
-
:where(.Label-module__hop-
|
|
217
|
+
:where(.Label-module__hop-Label___2IpOS) {
|
|
218
218
|
font-family: var(--hop-Label-font-family);
|
|
219
219
|
font-size: var(--hop-Label-font-size);
|
|
220
220
|
font-weight: var(--hop-Label-font-weight);
|
|
221
221
|
line-height: var(--hop-Label-line-height);
|
|
222
222
|
color: var(--hop-Label-color);
|
|
223
223
|
}
|
|
224
|
-
:where(.Label-module__hop-
|
|
224
|
+
:where(.Label-module__hop-Label__indicator___nEWGk) {
|
|
225
225
|
padding-inline-start: var(--hop-space-20);
|
|
226
226
|
}
|
package/dist/utils/src/index.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import '../../chunk-LQICWONC.js';
|
|
2
2
|
import '../../chunk-SNIF7MEM.js';
|
|
3
|
-
export { EnsureTextWrapper } from '../../chunk-
|
|
3
|
+
export { EnsureTextWrapper } from '../../chunk-ZRGWYBTI.js';
|
|
4
4
|
export { useScale } from '../../chunk-MTDFS4CZ.js';
|
|
5
5
|
export { useFontFaceReady } from '../../chunk-IU6XMS2X.js';
|
|
6
6
|
export { useTruncatedText } from '../../chunk-Z57VHYOF.js';
|
|
7
7
|
export { useSlot } from '../../chunk-H5YTU3U7.js';
|
|
8
8
|
export { useIsOverflow } from '../../chunk-EHXOXTDN.js';
|
|
9
9
|
import '../../chunk-LJXTJRSB.js';
|
|
10
|
-
import '../../chunk-
|
|
11
|
-
import '../../chunk-
|
|
10
|
+
import '../../chunk-MMROXMQV.js';
|
|
11
|
+
import '../../chunk-X7ZM3VW6.js';
|
|
12
12
|
import '../../chunk-TXZ6BMFR.js';
|
|
13
13
|
import '../../chunk-QCA3ZR56.js';
|
|
14
14
|
export { isArray, isDefined, isEmptyArray, isFunction, isNil, isNilOrEmpty, isNull, isNumber, isObject, isPlainObject, isPromise, isString, isUndefined } from '../../chunk-TIPN4VYD.js';
|
|
15
15
|
import '../../chunk-TFVDF4YH.js';
|
|
16
16
|
export { isTextOnlyChildren } from '../../chunk-ZWU6DRRZ.js';
|
|
17
|
-
import '../../chunk-
|
|
17
|
+
import '../../chunk-XT3AM5KT.js';
|
|
18
18
|
import '../../chunk-WPNVVGFW.js';
|
|
19
|
-
import '../../chunk-
|
|
19
|
+
import '../../chunk-Y7G6PIDC.js';
|
|
20
20
|
import '../../chunk-X6SER3TZ.js';
|
|
21
21
|
export { ClearContainerSlots, ClearProviders } from '../../chunk-HXI3MEEK.js';
|
|
22
22
|
export { useRenderProps } from '../../chunk-NH3IVMXB.js';
|
package/package.json
CHANGED
package/dist/chunk-KSKIQSYM.js
DELETED
|
@@ -1,260 +0,0 @@
|
|
|
1
|
-
import { ComboBoxContext } from './chunk-4XHTP4GX.js';
|
|
2
|
-
import { _Popover } from './chunk-UJXKUNEW.js';
|
|
3
|
-
import { EnsureTextWrapper } from './chunk-A3E76SDY.js';
|
|
4
|
-
import { _Footer } from './chunk-AQITZWYM.js';
|
|
5
|
-
import { LabelContext } from './chunk-QCA3ZR56.js';
|
|
6
|
-
import { _ListBox } from './chunk-XQFICAVB.js';
|
|
7
|
-
import { _ListBoxItem } from './chunk-2GYC6ADT.js';
|
|
8
|
-
import { HelperMessageContext } from './chunk-HZKFQ33E.js';
|
|
9
|
-
import { ErrorMessageContext } from './chunk-FAE27DLF.js';
|
|
10
|
-
import { BadgeContext } from './chunk-CQDLZ42T.js';
|
|
11
|
-
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
12
|
-
import { ClearContainerSlots, ClearProviders } from './chunk-HXI3MEEK.js';
|
|
13
|
-
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
14
|
-
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
15
|
-
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
16
|
-
import { IconContext, AngleUpIcon, AngleDownIcon } from '@hopper-ui/icons';
|
|
17
|
-
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
18
|
-
import { useObjectRef, mergeRefs, useResizeObserver } from '@react-aria/utils';
|
|
19
|
-
import { forwardRef, useRef, useState, useCallback } from 'react';
|
|
20
|
-
import { useContextProps, useSlottedContext, InputContext, composeRenderProps, TextContext as TextContext$1, ButtonContext, ComboBox as ComboBox$1, Group, Input, Button } from 'react-aria-components';
|
|
21
|
-
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
22
|
-
|
|
23
|
-
// css-module:./ComboBox.module.css#css-module
|
|
24
|
-
var ComboBox_module_default = { "hop-ComboBox": "ComboBox-module__hop-ComboBox___yka4p", "hop-ComboBox--fluid": "ComboBox-module__hop-ComboBox--fluid___wc-wK", "hop-ComboBox__label": "ComboBox-module__hop-ComboBox__label___JxClR", "hop-ComboBox__trigger": "ComboBox-module__hop-ComboBox__trigger___mwnmp", "hop-ComboBox__trigger--sm": "ComboBox-module__hop-ComboBox__trigger--sm___t-bwh", "hop-ComboBox__trigger--md": "ComboBox-module__hop-ComboBox__trigger--md___SwrW0", "hop-ComboBox__input": "ComboBox-module__hop-ComboBox__input___-iJvh", "hop-ComboBox__button": "ComboBox-module__hop-ComboBox__button___N4euJ", "hop-ComboBox__prefix": "ComboBox-module__hop-ComboBox__prefix___iz3ml", "hop-ComboBox__button-icon": "ComboBox-module__hop-ComboBox__button-icon___EtzJV", "hop-ComboBox__helper-message": "ComboBox-module__hop-ComboBox__helper-message___T5Iem", "hop-ComboBox__error-message": "ComboBox-module__hop-ComboBox__error-message___qYblw" };
|
|
25
|
-
var GlobalComboBoxCssSelector = "hop-ComboBox";
|
|
26
|
-
function ComboBox(props, ref) {
|
|
27
|
-
var _a, _b, _c;
|
|
28
|
-
const {
|
|
29
|
-
inputRef: userProvidedInputRef = null,
|
|
30
|
-
...propsWithoutRef
|
|
31
|
-
} = props;
|
|
32
|
-
[props, ref] = useContextProps(propsWithoutRef, ref, ComboBoxContext);
|
|
33
|
-
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
34
|
-
const {
|
|
35
|
-
className,
|
|
36
|
-
children,
|
|
37
|
-
fieldChildren,
|
|
38
|
-
footer,
|
|
39
|
-
isAutoMenuWidth,
|
|
40
|
-
isFluid: isFluidProp,
|
|
41
|
-
isInvalid,
|
|
42
|
-
items,
|
|
43
|
-
menuTrigger = "focus",
|
|
44
|
-
listBoxProps,
|
|
45
|
-
placeholder,
|
|
46
|
-
popoverProps,
|
|
47
|
-
prefix,
|
|
48
|
-
size: sizeProp,
|
|
49
|
-
style: styleProp,
|
|
50
|
-
triggerProps,
|
|
51
|
-
...otherProps
|
|
52
|
-
} = ownProps;
|
|
53
|
-
const inputRef = useObjectRef(mergeRefs(userProvidedInputRef, (_a = props.inputRef) != null ? _a : null));
|
|
54
|
-
const inputContext = useSlottedContext(InputContext);
|
|
55
|
-
const mergedInputRefs = (inputContext == null ? void 0 : inputContext.ref) ? mergeRefs(inputRef, inputContext.ref) : inputRef;
|
|
56
|
-
const triggerRef = useRef(null);
|
|
57
|
-
const buttonRef = useRef(null);
|
|
58
|
-
const [triggerWidth, setTriggerWidth] = useState(null);
|
|
59
|
-
const onResize = useCallback(() => {
|
|
60
|
-
if (triggerRef.current) {
|
|
61
|
-
setTriggerWidth(triggerRef.current.offsetWidth + "px");
|
|
62
|
-
}
|
|
63
|
-
}, [triggerRef]);
|
|
64
|
-
useResizeObserver({
|
|
65
|
-
ref: triggerRef,
|
|
66
|
-
onResize
|
|
67
|
-
});
|
|
68
|
-
const { stylingProps: triggerStylingProps, ...triggerOwnProps } = useStyledSystem(triggerProps != null ? triggerProps : {});
|
|
69
|
-
const {
|
|
70
|
-
className: triggerClassName,
|
|
71
|
-
style: triggerStyleProp,
|
|
72
|
-
...otherTriggerProps
|
|
73
|
-
} = triggerOwnProps;
|
|
74
|
-
const { stylingProps: popoverStylingProps, ...popoverOwnProps } = useStyledSystem(popoverProps != null ? popoverProps : {});
|
|
75
|
-
const {
|
|
76
|
-
placement = "bottom start",
|
|
77
|
-
style: popoverStyleProp,
|
|
78
|
-
...otherPopoverProps
|
|
79
|
-
} = popoverOwnProps;
|
|
80
|
-
const size = (_b = useResponsiveValue(sizeProp)) != null ? _b : "sm";
|
|
81
|
-
const isFluid = (_c = useResponsiveValue(isFluidProp)) != null ? _c : false;
|
|
82
|
-
const classNames = composeClassnameRenderProps(
|
|
83
|
-
className,
|
|
84
|
-
GlobalComboBoxCssSelector,
|
|
85
|
-
cssModule(
|
|
86
|
-
ComboBox_module_default,
|
|
87
|
-
"hop-ComboBox",
|
|
88
|
-
isFluid && "fluid",
|
|
89
|
-
size
|
|
90
|
-
),
|
|
91
|
-
stylingProps.className
|
|
92
|
-
);
|
|
93
|
-
const triggerClassNames = composeClassnameRenderProps(
|
|
94
|
-
triggerClassName,
|
|
95
|
-
cssModule(
|
|
96
|
-
ComboBox_module_default,
|
|
97
|
-
"hop-ComboBox__trigger",
|
|
98
|
-
size
|
|
99
|
-
),
|
|
100
|
-
triggerStylingProps.className
|
|
101
|
-
);
|
|
102
|
-
const buttonClassNames = composeClassnameRenderProps(
|
|
103
|
-
cssModule(
|
|
104
|
-
ComboBox_module_default,
|
|
105
|
-
"hop-ComboBox__button"
|
|
106
|
-
)
|
|
107
|
-
);
|
|
108
|
-
const inputClassNames = composeClassnameRenderProps(
|
|
109
|
-
inputContext == null ? void 0 : inputContext.className,
|
|
110
|
-
ComboBox_module_default["hop-ComboBox__input"]
|
|
111
|
-
);
|
|
112
|
-
const style = composeRenderProps(styleProp, (prev) => {
|
|
113
|
-
return {
|
|
114
|
-
...stylingProps.style,
|
|
115
|
-
...prev
|
|
116
|
-
};
|
|
117
|
-
});
|
|
118
|
-
const triggerStyle = composeRenderProps(triggerStyleProp, (prev) => {
|
|
119
|
-
return {
|
|
120
|
-
...triggerStylingProps.style,
|
|
121
|
-
...prev
|
|
122
|
-
};
|
|
123
|
-
});
|
|
124
|
-
const popoverStyle = composeRenderProps(popoverStyleProp, (prev) => {
|
|
125
|
-
return {
|
|
126
|
-
...popoverStylingProps.style,
|
|
127
|
-
...prev,
|
|
128
|
-
"--custom-trigger-width": triggerWidth
|
|
129
|
-
};
|
|
130
|
-
});
|
|
131
|
-
const handleMouseDown = useCallback((e) => {
|
|
132
|
-
if (inputRef.current && e.target !== inputRef.current && buttonRef.current && e.target !== buttonRef.current) {
|
|
133
|
-
inputRef.current.focus();
|
|
134
|
-
e.preventDefault();
|
|
135
|
-
}
|
|
136
|
-
}, [inputRef]);
|
|
137
|
-
const prefixMarkup = prefix ? /* @__PURE__ */ jsx(
|
|
138
|
-
SlotProvider,
|
|
139
|
-
{
|
|
140
|
-
values: [
|
|
141
|
-
[TextContext, { size, className: ComboBox_module_default["hop-ComboBox__prefix"] }],
|
|
142
|
-
[IconContext, { size, className: ComboBox_module_default["hop-ComboBox__prefix"] }]
|
|
143
|
-
],
|
|
144
|
-
children: /* @__PURE__ */ jsx(ClearContainerSlots, { children: /* @__PURE__ */ jsx(EnsureTextWrapper, { children: prefix }) })
|
|
145
|
-
}
|
|
146
|
-
) : null;
|
|
147
|
-
const footerMarkup = footer ? /* @__PURE__ */ jsx(
|
|
148
|
-
SlotProvider,
|
|
149
|
-
{
|
|
150
|
-
values: [
|
|
151
|
-
[TextContext, { size, className: ComboBox_module_default["hop-ComboBox__footer-text"] }]
|
|
152
|
-
],
|
|
153
|
-
children: /* @__PURE__ */ jsx(
|
|
154
|
-
ClearProviders,
|
|
155
|
-
{
|
|
156
|
-
values: [
|
|
157
|
-
TextContext$1,
|
|
158
|
-
TextContext,
|
|
159
|
-
ButtonContext
|
|
160
|
-
],
|
|
161
|
-
children: /* @__PURE__ */ jsx(_Footer, { children: /* @__PURE__ */ jsx(EnsureTextWrapper, { children: footer }) })
|
|
162
|
-
}
|
|
163
|
-
)
|
|
164
|
-
}
|
|
165
|
-
) : null;
|
|
166
|
-
return /* @__PURE__ */ jsx(
|
|
167
|
-
ComboBox$1,
|
|
168
|
-
{
|
|
169
|
-
...otherProps,
|
|
170
|
-
ref,
|
|
171
|
-
className: classNames,
|
|
172
|
-
style,
|
|
173
|
-
isInvalid,
|
|
174
|
-
menuTrigger,
|
|
175
|
-
children: (comboBoxRenderProps) => {
|
|
176
|
-
const { isOpen } = comboBoxRenderProps;
|
|
177
|
-
const ButtonIcon = isOpen ? AngleUpIcon : AngleDownIcon;
|
|
178
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
179
|
-
/* @__PURE__ */ jsx(
|
|
180
|
-
SlotProvider,
|
|
181
|
-
{
|
|
182
|
-
values: [
|
|
183
|
-
[LabelContext, {
|
|
184
|
-
className: ComboBox_module_default["hop-ComboBox__label"]
|
|
185
|
-
}],
|
|
186
|
-
[HelperMessageContext, {
|
|
187
|
-
className: ComboBox_module_default["hop-ComboBox__helper-message"]
|
|
188
|
-
}],
|
|
189
|
-
[ErrorMessageContext, {
|
|
190
|
-
className: ComboBox_module_default["hop-ComboBox__error-message"]
|
|
191
|
-
}]
|
|
192
|
-
],
|
|
193
|
-
children: fieldChildren
|
|
194
|
-
}
|
|
195
|
-
),
|
|
196
|
-
/* @__PURE__ */ jsxs(
|
|
197
|
-
Group,
|
|
198
|
-
{
|
|
199
|
-
...otherTriggerProps,
|
|
200
|
-
ref: triggerRef,
|
|
201
|
-
className: triggerClassNames,
|
|
202
|
-
style: triggerStyle,
|
|
203
|
-
onMouseDown: handleMouseDown,
|
|
204
|
-
"data-selected": isOpen || void 0,
|
|
205
|
-
children: [
|
|
206
|
-
prefixMarkup,
|
|
207
|
-
/* @__PURE__ */ jsx(
|
|
208
|
-
Input,
|
|
209
|
-
{
|
|
210
|
-
ref: mergedInputRefs,
|
|
211
|
-
className: inputClassNames,
|
|
212
|
-
placeholder
|
|
213
|
-
}
|
|
214
|
-
),
|
|
215
|
-
/* @__PURE__ */ jsx(Button, { className: buttonClassNames, ref: buttonRef, children: /* @__PURE__ */ jsx(ButtonIcon, { size: "sm", className: ComboBox_module_default["hop-ComboBox__button-icon"] }) })
|
|
216
|
-
]
|
|
217
|
-
}
|
|
218
|
-
),
|
|
219
|
-
/* @__PURE__ */ jsxs(
|
|
220
|
-
_Popover,
|
|
221
|
-
{
|
|
222
|
-
...otherPopoverProps,
|
|
223
|
-
placement,
|
|
224
|
-
isNonDialog: true,
|
|
225
|
-
autoWidth: isAutoMenuWidth,
|
|
226
|
-
style: popoverStyle,
|
|
227
|
-
triggerRef,
|
|
228
|
-
children: [
|
|
229
|
-
/* @__PURE__ */ jsx(
|
|
230
|
-
SlotProvider,
|
|
231
|
-
{
|
|
232
|
-
values: [
|
|
233
|
-
[BadgeContext, {
|
|
234
|
-
variant: "secondary"
|
|
235
|
-
}]
|
|
236
|
-
],
|
|
237
|
-
children: /* @__PURE__ */ jsx(_ListBox, { ...listBoxProps, items, size, isInvalid, children })
|
|
238
|
-
}
|
|
239
|
-
),
|
|
240
|
-
footerMarkup
|
|
241
|
-
]
|
|
242
|
-
}
|
|
243
|
-
)
|
|
244
|
-
] });
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
);
|
|
248
|
-
}
|
|
249
|
-
var _ComboBox = forwardRef(ComboBox);
|
|
250
|
-
_ComboBox.displayName = "ComboBox";
|
|
251
|
-
var CompoundComboBox = Object.assign(_ComboBox, {
|
|
252
|
-
/**
|
|
253
|
-
* A combo box option is an item that is displayed in a combo box.
|
|
254
|
-
*
|
|
255
|
-
* [View Documentation](TODO)
|
|
256
|
-
*/
|
|
257
|
-
Option: _ListBoxItem
|
|
258
|
-
});
|
|
259
|
-
|
|
260
|
-
export { CompoundComboBox, GlobalComboBoxCssSelector };
|