@hopper-ui/components 1.3.20 → 1.3.22
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 +18 -0
- package/dist/Avatar/src/AnonymousAvatar.css +37 -37
- package/dist/Avatar/src/AnonymousAvatar.js +3 -3
- package/dist/Avatar/src/Avatar.css +55 -55
- package/dist/Avatar/src/Avatar.js +4 -4
- package/dist/Avatar/src/DeletedAvatar.css +37 -37
- package/dist/Avatar/src/DeletedAvatar.js +3 -3
- package/dist/Avatar/src/RichIconAvatarImage.css +37 -37
- package/dist/Avatar/src/RichIconAvatarImage.js +2 -2
- package/dist/Avatar/src/index.css +55 -55
- package/dist/Avatar/src/index.js +6 -6
- package/dist/Badge/src/Badge.css +42 -42
- package/dist/Badge/src/Badge.d.ts +5 -0
- package/dist/Badge/src/Badge.js +3 -3
- package/dist/Badge/src/FloatingBadge.css +37 -37
- package/dist/Badge/src/FloatingBadge.js +2 -2
- package/dist/Badge/src/index.css +52 -52
- package/dist/Badge/src/index.js +5 -5
- package/dist/ComboBox/src/ComboBox.css +1179 -866
- package/dist/ComboBox/src/ComboBox.js +8 -8
- package/dist/ComboBox/src/ComboBoxOptions.css +1179 -866
- package/dist/ComboBox/src/ComboBoxOptions.js +63 -61
- package/dist/ComboBox/src/index.css +1179 -866
- package/dist/ComboBox/src/index.js +63 -61
- 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 +3 -3
- package/dist/ErrorMessage/src/index.css +29 -29
- package/dist/ErrorMessage/src/index.js +3 -3
- package/dist/Form/src/Form.css +1179 -866
- package/dist/Form/src/Form.js +63 -61
- package/dist/Form/src/index.css +1179 -866
- package/dist/Form/src/index.js +63 -61
- 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 +7 -7
- package/dist/Link/src/index.css +49 -49
- package/dist/Link/src/index.js +7 -7
- package/dist/ListBox/src/ListBox.css +274 -274
- package/dist/ListBox/src/ListBox.js +12 -12
- package/dist/ListBox/src/ListBoxItem.css +262 -262
- package/dist/ListBox/src/ListBoxItem.d.ts +2 -6
- package/dist/ListBox/src/ListBoxItem.js +11 -11
- package/dist/ListBox/src/ListBoxItemContext.d.ts +1 -2
- package/dist/ListBox/src/ListBoxItemSkeleton.css +34 -34
- package/dist/ListBox/src/ListBoxItemSkeleton.d.ts +0 -1
- package/dist/ListBox/src/ListBoxItemSkeleton.js +1 -1
- package/dist/ListBox/src/ListBoxItemSkeletonContext.d.ts +0 -1
- package/dist/ListBox/src/index.css +274 -274
- package/dist/ListBox/src/index.js +12 -12
- package/dist/Select/src/Select.css +296 -296
- package/dist/Select/src/Select.js +8 -8
- package/dist/Select/src/SelectOptions.css +1179 -866
- package/dist/Select/src/SelectOptions.js +63 -61
- package/dist/Select/src/SelectValue.css +61 -61
- package/dist/Select/src/SelectValue.js +6 -6
- package/dist/Select/src/index.css +1179 -866
- package/dist/Select/src/index.js +63 -61
- package/dist/Spinner/src/Spinner.css +37 -37
- package/dist/Spinner/src/Spinner.js +3 -3
- package/dist/Spinner/src/index.css +37 -37
- package/dist/Spinner/src/index.js +3 -3
- package/dist/buttons/src/Button.css +186 -265
- package/dist/buttons/src/Button.d.ts +5 -14
- package/dist/buttons/src/Button.js +8 -9
- package/dist/buttons/src/ButtonContext.d.ts +4 -6
- package/dist/buttons/src/ButtonGroup.css +38 -38
- package/dist/buttons/src/ButtonGroup.d.ts +1 -2
- package/dist/buttons/src/ButtonGroup.js +2 -1
- package/dist/buttons/src/ButtonGroupContext.d.ts +1 -2
- package/dist/buttons/src/ClearButton.css +98 -98
- package/dist/buttons/src/ClearButton.js +3 -3
- package/dist/buttons/src/EmbeddedButton.css +98 -98
- package/dist/buttons/src/EmbeddedButton.js +2 -2
- package/dist/buttons/src/LinkButton.css +627 -0
- package/dist/buttons/src/LinkButton.d.ts +30 -0
- package/dist/buttons/src/LinkButton.js +21 -0
- package/dist/buttons/src/LinkButtonContext.d.ts +9 -0
- package/dist/buttons/src/LinkButtonContext.js +2 -0
- package/dist/buttons/src/index.css +660 -347
- package/dist/buttons/src/index.d.ts +6 -3
- package/dist/buttons/src/index.js +13 -12
- package/dist/checkbox/src/Checkbox.css +46 -46
- package/dist/checkbox/src/Checkbox.js +7 -7
- package/dist/checkbox/src/CheckboxField.css +33 -33
- package/dist/checkbox/src/CheckboxField.js +2 -2
- package/dist/checkbox/src/CheckboxGroup.css +98 -98
- package/dist/checkbox/src/CheckboxGroup.js +2 -2
- package/dist/checkbox/src/DecorativeCheckbox.css +54 -54
- package/dist/checkbox/src/DecorativeCheckbox.js +7 -7
- package/dist/checkbox/src/index.css +98 -98
- package/dist/checkbox/src/index.js +10 -10
- package/dist/{chunk-FZANHOCL.js → chunk-252JECH3.js} +4 -4
- package/dist/{chunk-VOPMQNZU.js → chunk-2H6UV2SG.js} +3 -3
- package/dist/{chunk-K37GG2W4.js → chunk-2VHUBRYW.js} +1 -1
- package/dist/chunk-3UQFC2NQ.js +7 -0
- package/dist/{chunk-ZFLVZHFU.js → chunk-4JSLFCFC.js} +4 -4
- package/dist/{chunk-2GH5MFYM.js → chunk-4O4FBHN5.js} +14 -8
- package/dist/{chunk-3RAC77T3.js → chunk-5TSWWRP5.js} +1 -1
- package/dist/chunk-5YJ67DFM.js +107 -0
- package/dist/{chunk-FGBJ4BQN.js → chunk-6NYROZG5.js} +4 -4
- package/dist/{chunk-FH236DA7.js → chunk-6RICOPVG.js} +6 -6
- package/dist/{chunk-56JPORN2.js → chunk-6RNMY3B3.js} +2 -2
- package/dist/{chunk-3YY4L64N.js → chunk-6UPNVYSM.js} +3 -3
- package/dist/{chunk-EOFFODBT.js → chunk-7J3TNUEU.js} +2 -2
- package/dist/{chunk-FSXYBGL2.js → chunk-B63FSPKP.js} +1 -1
- package/dist/{chunk-D2ZXLYC4.js → chunk-B7HFTI4F.js} +2 -2
- package/dist/{chunk-XAEUK2IS.js → chunk-BPHBGKEP.js} +1 -1
- package/dist/{chunk-UXX325G4.js → chunk-D3SH5S47.js} +3 -3
- package/dist/{chunk-QRJ5QOOH.js → chunk-DBMGIEGU.js} +3 -3
- package/dist/{chunk-LU7FB5PR.js → chunk-FUOWPCCB.js} +7 -7
- package/dist/{chunk-CSG4J7DG.js → chunk-GMVVIPQG.js} +3 -3
- package/dist/chunk-GWG4MVEJ.js +130 -0
- package/dist/{chunk-VR5K6SKY.js → chunk-HA2G7Z3Y.js} +3 -3
- package/dist/{chunk-BAVC57WI.js → chunk-HWO7TXDE.js} +1 -1
- package/dist/{chunk-DDCNAIN3.js → chunk-I6KKIOW4.js} +1 -1
- package/dist/{chunk-LQQIV4NI.js → chunk-IJ63FSF2.js} +3 -3
- package/dist/{chunk-NBU2JO34.js → chunk-IXSK27JB.js} +2 -2
- package/dist/{chunk-7S4WBT4G.js → chunk-JP6GK2ZA.js} +2 -2
- package/dist/{chunk-DF556GIE.js → chunk-JTX57GMF.js} +1 -1
- package/dist/{chunk-G3KPVKSY.js → chunk-KSVVXFS7.js} +1 -1
- package/dist/{chunk-H2IB2YPL.js → chunk-LIWVG7YG.js} +2 -2
- package/dist/{chunk-GQE7EKQR.js → chunk-M5KK5N5H.js} +15 -9
- package/dist/{chunk-MZUJCQXJ.js → chunk-MPQTHOE3.js} +2 -2
- package/dist/{chunk-AW7BK3KI.js → chunk-OA3QBRFE.js} +1 -1
- package/dist/{chunk-LOK2QDPO.js → chunk-OJUEP7CC.js} +6 -5
- package/dist/{chunk-MILAEJ2L.js → chunk-OMUZK3MO.js} +1 -1
- package/dist/{chunk-KFE26Z37.js → chunk-ORU5PV3C.js} +2 -2
- package/dist/{chunk-4AJKRRST.js → chunk-QESAGPPL.js} +4 -4
- package/dist/{chunk-5IJ5WIHP.js → chunk-R4F5OA3R.js} +4 -4
- package/dist/{chunk-2TKSTDV2.js → chunk-RS26HRDP.js} +1 -1
- package/dist/{chunk-PMLYF4LY.js → chunk-RVSFILDF.js} +3 -3
- package/dist/{chunk-653VMV4L.js → chunk-TFUV5RJ3.js} +4 -4
- package/dist/{chunk-EH3ONDLF.js → chunk-X66XJOKK.js} +3 -3
- package/dist/{chunk-F4NDKYBQ.js → chunk-X7NKH6N6.js} +2 -2
- package/dist/{chunk-OQPYRC2F.js → chunk-XZ3DY7TN.js} +2 -2
- package/dist/{chunk-5DE3AIOL.js → chunk-Y4JN2FNO.js} +1 -1
- package/dist/{chunk-YTMJJOJ7.js → chunk-YBR7YMSR.js} +11 -6
- package/dist/{chunk-ETRACW2O.js → chunk-YOLWUQYK.js} +3 -3
- package/dist/{chunk-AKZXMYPT.js → chunk-ZELJHVRI.js} +2 -2
- package/dist/{chunk-NHWFS4AT.js → chunk-ZTILFVDQ.js} +3 -3
- package/dist/index.css +1179 -866
- package/dist/index.d.ts +6 -3
- package/dist/index.js +63 -61
- package/dist/inputs/src/InputGroup.css +675 -362
- package/dist/inputs/src/InputGroup.js +2 -2
- package/dist/inputs/src/NumberField.css +697 -384
- package/dist/inputs/src/NumberField.js +9 -9
- package/dist/inputs/src/PasswordField.css +685 -372
- package/dist/inputs/src/PasswordField.js +9 -9
- package/dist/inputs/src/RemainingCharacterCount.css +30 -30
- package/dist/inputs/src/RemainingCharacterCount.js +6 -6
- package/dist/inputs/src/SearchField.css +691 -378
- package/dist/inputs/src/SearchField.js +9 -9
- package/dist/inputs/src/TextArea.css +692 -379
- package/dist/inputs/src/TextArea.js +8 -8
- package/dist/inputs/src/TextField.css +689 -376
- package/dist/inputs/src/TextField.js +12 -12
- package/dist/inputs/src/index.css +735 -422
- package/dist/inputs/src/index.js +18 -18
- package/dist/overlays/Popover/src/Popover.css +1179 -866
- package/dist/overlays/Popover/src/Popover.js +63 -61
- package/dist/overlays/Popover/src/index.css +1179 -866
- package/dist/overlays/Popover/src/index.js +63 -61
- package/dist/radio/src/DecorativeRadio.css +54 -54
- package/dist/radio/src/DecorativeRadio.js +7 -7
- package/dist/radio/src/Radio.css +46 -46
- package/dist/radio/src/Radio.js +7 -7
- package/dist/radio/src/RadioField.css +33 -33
- package/dist/radio/src/RadioField.js +2 -2
- package/dist/radio/src/RadioGroup.css +98 -98
- package/dist/radio/src/RadioGroup.js +3 -3
- package/dist/radio/src/index.css +98 -98
- package/dist/radio/src/index.js +11 -11
- package/dist/switch/src/Switch.css +43 -43
- package/dist/switch/src/Switch.js +7 -7
- package/dist/switch/src/SwitchField.css +33 -33
- package/dist/switch/src/SwitchField.js +3 -3
- package/dist/switch/src/index.css +49 -49
- package/dist/switch/src/index.js +9 -9
- package/dist/tag/src/Tag.css +801 -488
- package/dist/tag/src/Tag.js +11 -11
- package/dist/tag/src/TagGroup.css +37 -37
- package/dist/tag/src/TagGroup.js +1 -1
- package/dist/tag/src/TagList.css +27 -27
- package/dist/tag/src/index.css +811 -498
- package/dist/tag/src/index.js +12 -12
- package/dist/types-CVCUJ7un.d.ts +4 -0
- 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.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 +7 -7
- package/package.json +10 -10
- package/dist/chunk-BPH5ATEH.js +0 -187
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___Eay4d {
|
|
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___Eay4d) {
|
|
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___d3EXo) {
|
|
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___kJu64) {
|
|
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___5l07Q) {
|
|
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___n4a5t) {
|
|
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___iRAGJ) {
|
|
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___7feao) {
|
|
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___YyZPS) {
|
|
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___a3kO5 {
|
|
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___a3kO5) {
|
|
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___oNTnw) {
|
|
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___w91cp) {
|
|
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___sWC3z) {
|
|
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___CsB7P) {
|
|
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___CIkMe) {
|
|
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___hSu4e) {
|
|
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___KZpNu) {
|
|
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___cowIx) {
|
|
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___bMeuH {
|
|
192
192
|
box-sizing: border-box;
|
|
193
193
|
}
|
|
194
|
-
.OverlineText-module__hop-
|
|
195
|
-
.OverlineText-module__hop-
|
|
194
|
+
.OverlineText-module__hop-OverlineText__text___bMeuH::before,
|
|
195
|
+
.OverlineText-module__hop-OverlineText__text___bMeuH::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___bMeuH::before {
|
|
203
203
|
margin-block-end: var(--bottom-offset);
|
|
204
204
|
}
|
|
205
|
-
.OverlineText-module__hop-
|
|
205
|
+
.OverlineText-module__hop-OverlineText__text___bMeuH::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___lehKc {
|
|
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___lehKc) {
|
|
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___fWyCS) {
|
|
225
225
|
padding-inline-start: var(--hop-space-20);
|
|
226
226
|
}
|
package/dist/utils/src/index.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import '../../chunk-SNIF7MEM.js';
|
|
2
1
|
import '../../chunk-LQICWONC.js';
|
|
2
|
+
import '../../chunk-SNIF7MEM.js';
|
|
3
3
|
export { useFontFaceReady } from '../../chunk-IU6XMS2X.js';
|
|
4
4
|
export { useTruncatedText } from '../../chunk-Z57VHYOF.js';
|
|
5
5
|
export { useScale } from '../../chunk-MTDFS4CZ.js';
|
|
6
6
|
export { useSlot } from '../../chunk-H5YTU3U7.js';
|
|
7
7
|
export { useIsOverflow } from '../../chunk-EHXOXTDN.js';
|
|
8
8
|
export { isArray, isDefined, isEmptyArray, isFunction, isNil, isNilOrEmpty, isNull, isNumber, isObject, isPlainObject, isPromise, isString, isUndefined } from '../../chunk-TIPN4VYD.js';
|
|
9
|
-
export { EnsureTextWrapper } from '../../chunk-
|
|
9
|
+
export { EnsureTextWrapper } from '../../chunk-BPHBGKEP.js';
|
|
10
10
|
export { isTextOnlyChildren } from '../../chunk-ZWU6DRRZ.js';
|
|
11
11
|
import '../../chunk-LJXTJRSB.js';
|
|
12
|
-
import '../../chunk-
|
|
12
|
+
import '../../chunk-OA3QBRFE.js';
|
|
13
|
+
import '../../chunk-HWO7TXDE.js';
|
|
13
14
|
import '../../chunk-TXZ6BMFR.js';
|
|
14
|
-
import '../../chunk-AW7BK3KI.js';
|
|
15
15
|
import '../../chunk-QCA3ZR56.js';
|
|
16
16
|
import '../../chunk-TFVDF4YH.js';
|
|
17
|
-
import '../../chunk-
|
|
17
|
+
import '../../chunk-JTX57GMF.js';
|
|
18
18
|
import '../../chunk-WPNVVGFW.js';
|
|
19
|
-
import '../../chunk-
|
|
19
|
+
import '../../chunk-KSVVXFS7.js';
|
|
20
20
|
import '../../chunk-X6SER3TZ.js';
|
|
21
21
|
export { ClearContainerSlots, ClearProviders } from '../../chunk-HXI3MEEK.js';
|
|
22
|
+
export { SlotProvider } from '../../chunk-M36KANKC.js';
|
|
22
23
|
export { useRenderProps } from '../../chunk-NH3IVMXB.js';
|
|
23
24
|
export { composeClassnameRenderProps } from '../../chunk-65JPI4FL.js';
|
|
24
|
-
export { SlotProvider } from '../../chunk-M36KANKC.js';
|
|
25
25
|
export { cssModule } from '../../chunk-KVDXQMWI.js';
|
|
26
26
|
import '../../chunk-JSBRDJBE.js';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hopper-ui/components",
|
|
3
3
|
"author": "Workleap",
|
|
4
|
-
"version": "1.3.
|
|
4
|
+
"version": "1.3.22",
|
|
5
5
|
"description": "The components package.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"repository": {
|
|
@@ -34,18 +34,18 @@
|
|
|
34
34
|
"README.md"
|
|
35
35
|
],
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"@hopper-ui/styled-system": "^2.
|
|
37
|
+
"@hopper-ui/styled-system": "^2.4",
|
|
38
38
|
"react": "^18",
|
|
39
|
-
"react-aria": "^3.
|
|
40
|
-
"react-aria-components": "^1.
|
|
39
|
+
"react-aria": "^3.35",
|
|
40
|
+
"react-aria-components": "^1.4",
|
|
41
41
|
"react-dom": "^18"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@react-aria/utils": "^3.25.
|
|
45
|
-
"@react-stately/utils": "^3.10.
|
|
46
|
-
"@react-types/shared": "^3.
|
|
44
|
+
"@react-aria/utils": "^3.25.3",
|
|
45
|
+
"@react-stately/utils": "^3.10.4",
|
|
46
|
+
"@react-types/shared": "^3.25.0",
|
|
47
47
|
"clsx": "^2.1.1",
|
|
48
|
-
"@hopper-ui/icons": "2.8.
|
|
48
|
+
"@hopper-ui/icons": "2.8.3"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@swc/core": "1.5.25",
|
|
@@ -70,8 +70,8 @@
|
|
|
70
70
|
"jest-fail-on-console": "3.3.0",
|
|
71
71
|
"jest-fetch-mock": "3.0.3",
|
|
72
72
|
"react": "18.3.1",
|
|
73
|
-
"react-aria": "3.
|
|
74
|
-
"react-aria-components": "1.
|
|
73
|
+
"react-aria": "3.35.0",
|
|
74
|
+
"react-aria-components": "1.4.0",
|
|
75
75
|
"react-dom": "18.3.1",
|
|
76
76
|
"react-test-renderer": "18.3.1",
|
|
77
77
|
"ts-jest": "29.1.4",
|
package/dist/chunk-BPH5ATEH.js
DELETED
|
@@ -1,187 +0,0 @@
|
|
|
1
|
-
import { useSlot } from './chunk-H5YTU3U7.js';
|
|
2
|
-
import { _Spinner } from './chunk-7S4WBT4G.js';
|
|
3
|
-
import { ButtonContext } from './chunk-WMTWFKKP.js';
|
|
4
|
-
import { IconListContext } from './chunk-DHVVYSLB.js';
|
|
5
|
-
import { EnsureTextWrapper } from './chunk-XAEUK2IS.js';
|
|
6
|
-
import { useLocalizedString } from './chunk-TFVDF4YH.js';
|
|
7
|
-
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
8
|
-
import { useRenderProps } from './chunk-NH3IVMXB.js';
|
|
9
|
-
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
10
|
-
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
11
|
-
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
12
|
-
import { IconContext } from '@hopper-ui/icons';
|
|
13
|
-
import { slot, useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
14
|
-
import { chain, filterDOMProps, useRouter, shouldClientNavigate } from '@react-aria/utils';
|
|
15
|
-
import clsx from 'clsx';
|
|
16
|
-
import { forwardRef } from 'react';
|
|
17
|
-
import { useFocusRing, useHover, useButton, mergeProps } from 'react-aria';
|
|
18
|
-
import { useContextProps, ButtonContext as ButtonContext$1, composeRenderProps, DEFAULT_SLOT } from 'react-aria-components';
|
|
19
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
20
|
-
|
|
21
|
-
// css-module:./Button.module.css#css-module
|
|
22
|
-
var Button_module_default = { "hop-Button": "Button-module__hop-Button___HPpVI", "hop-Button--icon-only": "Button-module__hop-Button--icon-only___T3G5d", "hop-Button--fluid": "Button-module__hop-Button--fluid___3YVb7", "hop-Button--sm": "Button-module__hop-Button--sm___0fIDw", "hop-Button--primary": "Button-module__hop-Button--primary___Cx51h", "hop-Button--md": "Button-module__hop-Button--md___uSRhB", "hop-Button--secondary": "Button-module__hop-Button--secondary___UTPB-", "hop-Button--upsell": "Button-module__hop-Button--upsell___kcXh5", "hop-Button--danger": "Button-module__hop-Button--danger___HXRrw", "hop-Button--ghost-danger": "Button-module__hop-Button--ghost-danger___VbKFl", "hop-Button--ghost-secondary": "Button-module__hop-Button--ghost-secondary___WQyum", "hop-Button--ghost-primary": "Button-module__hop-Button--ghost-primary___bYDdD", "hop-Button__Spinner": "Button-module__hop-Button__Spinner___BPaSX", "hop-Button__icon": "Button-module__hop-Button__icon___eA9hq", "hop-Button__icon-list": "Button-module__hop-Button__icon-list___mGVJY", "hop-Button__text": "Button-module__hop-Button__text___zKrFi", "hop-Button__end-icon": "Button-module__hop-Button__end-icon___WL9OE", "hop-Button__end-icon-list": "Button-module__hop-Button__end-icon-list___lcbkq" };
|
|
23
|
-
var GlobalButtonCssSelector = "hop-Button";
|
|
24
|
-
var additionalButtonHTMLAttributes = /* @__PURE__ */ new Set(["form", "formAction", "formEncType", "formMethod", "formNoValidate", "formTarget", "name", "value"]);
|
|
25
|
-
function useSimulatedRACButton(props, ref) {
|
|
26
|
-
const { focusProps, isFocused, isFocusVisible } = useFocusRing(props);
|
|
27
|
-
const { hoverProps, isHovered } = useHover(props);
|
|
28
|
-
const ctx = props;
|
|
29
|
-
const elementType = props.href ? "a" : "button";
|
|
30
|
-
const { buttonProps, isPressed } = useButton({
|
|
31
|
-
...props,
|
|
32
|
-
elementType,
|
|
33
|
-
isDisabled: props.isDisabled || props.isLoading
|
|
34
|
-
}, ref);
|
|
35
|
-
const state = {
|
|
36
|
-
isFocused,
|
|
37
|
-
isFocusVisible,
|
|
38
|
-
isHovered,
|
|
39
|
-
isPressed,
|
|
40
|
-
isDisabled: props.isDisabled || false
|
|
41
|
-
};
|
|
42
|
-
const mergedProps = {
|
|
43
|
-
...mergeProps(buttonProps, focusProps, hoverProps),
|
|
44
|
-
"data-disabled": props.isDisabled || void 0,
|
|
45
|
-
"data-pressed": ctx.isPressed || isPressed || void 0,
|
|
46
|
-
"data-hovered": isHovered || void 0,
|
|
47
|
-
"data-focused": isFocused || void 0,
|
|
48
|
-
"data-focus-visible": isFocusVisible || void 0
|
|
49
|
-
};
|
|
50
|
-
return [mergedProps, state];
|
|
51
|
-
}
|
|
52
|
-
function useCreateRouterLinkClickEventHandler(props) {
|
|
53
|
-
const router = useRouter();
|
|
54
|
-
return (e) => {
|
|
55
|
-
if (!router.isNative && e.currentTarget instanceof HTMLAnchorElement && e.currentTarget.href && // If props are applied to a router Link component, it may have already prevented default.
|
|
56
|
-
!e.isDefaultPrevented() && shouldClientNavigate(e.currentTarget, e) && props.href) {
|
|
57
|
-
e.preventDefault();
|
|
58
|
-
router.open(e.currentTarget, e, props.href, props.routerOptions);
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
|
-
}
|
|
62
|
-
function Button(props, ref) {
|
|
63
|
-
var _a, _b;
|
|
64
|
-
[props, ref] = useContextProps(props, ref, ButtonContext);
|
|
65
|
-
[props, ref] = useContextProps(props, ref, ButtonContext$1);
|
|
66
|
-
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
67
|
-
const [{ onClick, ...buttonProps }, state] = useSimulatedRACButton(ownProps, ref);
|
|
68
|
-
const stringFormatter = useLocalizedString();
|
|
69
|
-
const {
|
|
70
|
-
className,
|
|
71
|
-
children: childrenProp,
|
|
72
|
-
size: sizeProp,
|
|
73
|
-
isFluid: isFluidProp,
|
|
74
|
-
variant = "primary",
|
|
75
|
-
isLoading,
|
|
76
|
-
style: styleProp,
|
|
77
|
-
spinnerProps,
|
|
78
|
-
...otherProps
|
|
79
|
-
} = ownProps;
|
|
80
|
-
const [textRef, hasText] = useSlot();
|
|
81
|
-
const size = (_a = useResponsiveValue(sizeProp)) != null ? _a : "md";
|
|
82
|
-
const isFluid = (_b = useResponsiveValue(isFluidProp)) != null ? _b : false;
|
|
83
|
-
const classNames = composeClassnameRenderProps(
|
|
84
|
-
className,
|
|
85
|
-
GlobalButtonCssSelector,
|
|
86
|
-
cssModule(
|
|
87
|
-
Button_module_default,
|
|
88
|
-
"hop-Button",
|
|
89
|
-
variant,
|
|
90
|
-
size,
|
|
91
|
-
isFluid && "fluid",
|
|
92
|
-
isLoading && "loading",
|
|
93
|
-
!hasText && "icon-only"
|
|
94
|
-
),
|
|
95
|
-
stylingProps.className
|
|
96
|
-
);
|
|
97
|
-
const style = composeRenderProps(styleProp, (prev) => {
|
|
98
|
-
return {
|
|
99
|
-
...stylingProps.style,
|
|
100
|
-
...prev
|
|
101
|
-
};
|
|
102
|
-
});
|
|
103
|
-
const children = composeRenderProps(childrenProp, (prev) => {
|
|
104
|
-
return /* @__PURE__ */ jsx(EnsureTextWrapper, { children: prev });
|
|
105
|
-
});
|
|
106
|
-
const renderProps = useRenderProps({
|
|
107
|
-
className: classNames,
|
|
108
|
-
style,
|
|
109
|
-
children,
|
|
110
|
-
values: state
|
|
111
|
-
});
|
|
112
|
-
const hasAriaLabel = !!buttonProps["aria-label"] || !!buttonProps["aria-labelledby"];
|
|
113
|
-
if (!hasText && !hasAriaLabel) {
|
|
114
|
-
console.warn("[hopper-ui] If you do not provide a text children, you must specify an aria-label for accessibility");
|
|
115
|
-
}
|
|
116
|
-
const handleClick = chain(
|
|
117
|
-
onClick,
|
|
118
|
-
useCreateRouterLinkClickEventHandler(props)
|
|
119
|
-
);
|
|
120
|
-
const As = props.href ? "a" : "button";
|
|
121
|
-
const { className: spinnerClassName, ...otherSpinnerProps } = spinnerProps || {};
|
|
122
|
-
const spinnerClassNames = clsx(Button_module_default["hop-Button__Spinner"], spinnerClassName);
|
|
123
|
-
return /* @__PURE__ */ jsx(
|
|
124
|
-
SlotProvider,
|
|
125
|
-
{
|
|
126
|
-
values: [
|
|
127
|
-
[IconListContext, {
|
|
128
|
-
slots: {
|
|
129
|
-
[DEFAULT_SLOT]: {
|
|
130
|
-
size,
|
|
131
|
-
className: Button_module_default["hop-Button__icon-list"]
|
|
132
|
-
},
|
|
133
|
-
"end-icon": {
|
|
134
|
-
size,
|
|
135
|
-
className: Button_module_default["hop-Button__end-icon-list"]
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
}],
|
|
139
|
-
[IconContext, {
|
|
140
|
-
slots: {
|
|
141
|
-
[DEFAULT_SLOT]: {
|
|
142
|
-
size,
|
|
143
|
-
className: Button_module_default["hop-Button__icon"]
|
|
144
|
-
},
|
|
145
|
-
"end-icon": {
|
|
146
|
-
size,
|
|
147
|
-
className: Button_module_default["hop-Button__end-icon"]
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
}],
|
|
151
|
-
[TextContext, {
|
|
152
|
-
className: Button_module_default["hop-Button__text"],
|
|
153
|
-
size,
|
|
154
|
-
ref: textRef
|
|
155
|
-
}]
|
|
156
|
-
],
|
|
157
|
-
children: /* @__PURE__ */ jsxs(
|
|
158
|
-
As,
|
|
159
|
-
{
|
|
160
|
-
...filterDOMProps(otherProps, { propNames: additionalButtonHTMLAttributes }),
|
|
161
|
-
...buttonProps,
|
|
162
|
-
...renderProps,
|
|
163
|
-
onClick: handleClick,
|
|
164
|
-
ref,
|
|
165
|
-
slot: props.slot || void 0,
|
|
166
|
-
"data-loading": isLoading,
|
|
167
|
-
children: [
|
|
168
|
-
renderProps.children,
|
|
169
|
-
isLoading && /* @__PURE__ */ jsx(
|
|
170
|
-
_Spinner,
|
|
171
|
-
{
|
|
172
|
-
"aria-label": stringFormatter.format("Button.spinnerAriaLabel"),
|
|
173
|
-
size,
|
|
174
|
-
className: spinnerClassNames,
|
|
175
|
-
...otherSpinnerProps
|
|
176
|
-
}
|
|
177
|
-
)
|
|
178
|
-
]
|
|
179
|
-
}
|
|
180
|
-
)
|
|
181
|
-
}
|
|
182
|
-
);
|
|
183
|
-
}
|
|
184
|
-
var _Button = slot("button", forwardRef(Button));
|
|
185
|
-
_Button.displayName = "Button";
|
|
186
|
-
|
|
187
|
-
export { GlobalButtonCssSelector, _Button };
|