@hopper-ui/components 1.3.19 → 1.3.21
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 +19 -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/{ClearButton-_NnHqYE1.d.ts → ClearButton-DTR1qTbm.d.ts} +1 -3
- package/dist/ComboBox/src/ComboBox.css +1179 -866
- package/dist/ComboBox/src/ComboBox.js +6 -6
- package/dist/ComboBox/src/ComboBoxOptions.css +1179 -866
- package/dist/ComboBox/src/ComboBoxOptions.js +58 -56
- package/dist/ComboBox/src/index.css +1179 -866
- package/dist/ComboBox/src/index.js +58 -56
- 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 +1179 -866
- package/dist/Form/src/Form.js +58 -56
- package/dist/Form/src/index.css +1179 -866
- package/dist/Form/src/index.js +58 -56
- 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 +6 -6
- package/dist/Link/src/index.css +49 -49
- package/dist/Link/src/index.js +6 -6
- package/dist/ListBox/src/ListBox.css +274 -274
- package/dist/ListBox/src/ListBox.js +10 -10
- package/dist/ListBox/src/ListBoxItem.css +262 -262
- package/dist/ListBox/src/ListBoxItem.d.ts +2 -6
- package/dist/ListBox/src/ListBoxItem.js +9 -9
- 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 +10 -10
- package/dist/Select/src/Select.css +296 -296
- package/dist/Select/src/Select.js +7 -7
- package/dist/Select/src/SelectOptions.css +1179 -866
- package/dist/Select/src/SelectOptions.js +58 -56
- package/dist/Select/src/SelectValue.css +61 -61
- package/dist/Select/src/SelectValue.js +5 -5
- package/dist/Select/src/index.css +1179 -866
- package/dist/Select/src/index.js +58 -56
- 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 +186 -265
- package/dist/buttons/src/Button.d.ts +5 -14
- package/dist/buttons/src/Button.js +7 -8
- 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.d.ts +1 -1
- package/dist/buttons/src/ClearButton.js +2 -2
- package/dist/buttons/src/ClearButtonContext.d.ts +1 -1
- package/dist/buttons/src/EmbeddedButton.css +98 -98
- package/dist/buttons/src/EmbeddedButton.d.ts +1 -1
- package/dist/buttons/src/EmbeddedButton.js +1 -1
- package/dist/buttons/src/EmbeddedButtonContext.d.ts +1 -1
- 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 +7 -4
- package/dist/buttons/src/index.js +12 -11
- package/dist/checkbox/src/Checkbox.css +46 -46
- package/dist/checkbox/src/Checkbox.js +6 -6
- 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.js +1 -1
- package/dist/checkbox/src/DecorativeCheckbox.css +54 -54
- package/dist/checkbox/src/DecorativeCheckbox.js +6 -6
- package/dist/checkbox/src/index.css +98 -98
- package/dist/checkbox/src/index.js +9 -9
- package/dist/{chunk-PRRWXAH6.js → chunk-2FXHD5EF.js} +2 -2
- package/dist/{chunk-AZZPA2LW.js → chunk-3PONZZJH.js} +1 -1
- package/dist/{chunk-SP77UBAZ.js → chunk-3TN23WXI.js} +2 -2
- package/dist/chunk-3UQFC2NQ.js +7 -0
- package/dist/{chunk-LSNF44NV.js → chunk-4MJUV4Y4.js} +1 -1
- package/dist/{chunk-2REEY4WL.js → chunk-7XRGRMKN.js} +5 -3
- package/dist/{chunk-ZC6L6YVM.js → chunk-AJAXFPMZ.js} +1 -1
- package/dist/{chunk-WNSRRKT4.js → chunk-BZDYEIAN.js} +14 -3
- package/dist/{chunk-ZSX65Q2Z.js → chunk-CRBWHSR5.js} +1 -1
- package/dist/{chunk-MU3JYORH.js → chunk-D3ES4N5I.js} +3 -3
- package/dist/{chunk-UBFL654S.js → chunk-DQ3RMWYV.js} +5 -5
- package/dist/{chunk-FGW443T2.js → chunk-DSDDTQSP.js} +3 -3
- package/dist/{chunk-Q6BAJIO5.js → chunk-E6KLDSL7.js} +2 -2
- package/dist/{chunk-3UDYVVZU.js → chunk-EI3IUNUO.js} +2 -2
- package/dist/{chunk-IS2BGYLY.js → chunk-F6SXVFV7.js} +2 -2
- package/dist/{chunk-M5W6ERG2.js → chunk-H5SFGSQY.js} +2 -2
- package/dist/{chunk-SFCKVMYU.js → chunk-HCDZVQF5.js} +2 -2
- package/dist/{chunk-RX6A4PRX.js → chunk-HEAER6AM.js} +1 -1
- package/dist/{chunk-PBYJNOG2.js → chunk-HIDFOPDG.js} +2 -2
- package/dist/{chunk-64KJ34CI.js → chunk-I7RO3Y4Y.js} +1 -1
- package/dist/{chunk-PPLVWRK2.js → chunk-ID7CLQIZ.js} +1 -1
- package/dist/{chunk-PS7WUB3A.js → chunk-IRP5O2PB.js} +1 -1
- package/dist/{chunk-IRCC3UPO.js → chunk-IVVBR4PT.js} +1 -1
- package/dist/{chunk-DZKGGMUX.js → chunk-J3D3EFH7.js} +2 -2
- package/dist/{chunk-CH737ZX3.js → chunk-KGVQXCKY.js} +6 -6
- package/dist/{chunk-Z3FPJEJF.js → chunk-KWYYG3UT.js} +1 -1
- package/dist/{chunk-O3ZEY7CW.js → chunk-LTIKJWVL.js} +1 -1
- package/dist/{chunk-GL7VLPBW.js → chunk-MCGBD7B2.js} +3 -3
- package/dist/{chunk-GPEHOZZZ.js → chunk-MHDM4YO4.js} +1 -1
- package/dist/{chunk-YJI422TC.js → chunk-N4TMRRF4.js} +2 -2
- package/dist/{chunk-2GICZNLE.js → chunk-NH4G3E35.js} +1 -1
- package/dist/{chunk-HAANV3KV.js → chunk-NZUOHL5V.js} +1 -1
- package/dist/{chunk-C2NLOFTM.js → chunk-OD7U6X4F.js} +2 -2
- package/dist/{chunk-TOGZZNBR.js → chunk-QFWFNJTE.js} +5 -5
- package/dist/{chunk-GNRP6XEK.js → chunk-QTVWIRCB.js} +3 -3
- package/dist/{chunk-XZHYEQHC.js → chunk-RJW3T3TL.js} +12 -6
- package/dist/{chunk-TWW7CCA5.js → chunk-SH2PCVCP.js} +1 -1
- package/dist/{chunk-RG6K6GEC.js → chunk-SM3RKPS2.js} +3 -3
- package/dist/{chunk-32NTVJGG.js → chunk-SUMAGCIA.js} +2 -2
- package/dist/chunk-T54ITIHK.js +107 -0
- package/dist/{chunk-JCIL76AS.js → chunk-UHT3G5QZ.js} +1 -1
- package/dist/chunk-UKR2P5OV.js +130 -0
- package/dist/{chunk-W3BZV5E6.js → chunk-WMRLDPFX.js} +2 -2
- package/dist/{chunk-ESN3V5U5.js → chunk-X5N7I2HV.js} +3 -3
- package/dist/{chunk-S2ZLZ5GK.js → chunk-XSAC6GZB.js} +3 -3
- package/dist/{chunk-I3L55E7N.js → chunk-Y76Z32VB.js} +1 -1
- package/dist/{chunk-PG6KV5GW.js → chunk-YGZQBJTZ.js} +11 -6
- package/dist/{chunk-O5LG53HF.js → chunk-YIIWGRHM.js} +2 -2
- package/dist/{chunk-VJKLOE2J.js → chunk-ZWUASBUA.js} +1 -1
- package/dist/index.css +1179 -866
- package/dist/index.d.ts +7 -4
- package/dist/index.js +58 -56
- package/dist/inputs/src/InputGroup.css +675 -362
- package/dist/inputs/src/InputGroup.js +1 -1
- package/dist/inputs/src/NumberField.css +697 -384
- package/dist/inputs/src/NumberField.js +8 -8
- package/dist/inputs/src/PasswordField.css +685 -372
- package/dist/inputs/src/PasswordField.d.ts +1 -1
- package/dist/inputs/src/PasswordField.js +8 -8
- package/dist/inputs/src/PasswordFieldContext.d.ts +1 -1
- package/dist/inputs/src/RemainingCharacterCount.css +30 -30
- package/dist/inputs/src/RemainingCharacterCount.js +5 -5
- package/dist/inputs/src/SearchField.css +691 -378
- package/dist/inputs/src/SearchField.d.ts +1 -1
- package/dist/inputs/src/SearchField.js +8 -8
- package/dist/inputs/src/SearchFieldContext.d.ts +1 -1
- package/dist/inputs/src/TextArea.css +692 -379
- package/dist/inputs/src/TextArea.js +7 -7
- package/dist/inputs/src/TextField.css +689 -376
- package/dist/inputs/src/TextField.js +11 -11
- package/dist/inputs/src/index.css +735 -422
- package/dist/inputs/src/index.d.ts +1 -1
- package/dist/inputs/src/index.js +17 -17
- package/dist/overlays/Popover/src/Popover.css +1179 -866
- package/dist/overlays/Popover/src/Popover.js +58 -56
- package/dist/overlays/Popover/src/index.css +1179 -866
- package/dist/overlays/Popover/src/index.js +58 -56
- package/dist/radio/src/DecorativeRadio.css +54 -54
- package/dist/radio/src/DecorativeRadio.js +6 -6
- package/dist/radio/src/Radio.css +46 -46
- package/dist/radio/src/Radio.js +6 -6
- 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.js +2 -2
- package/dist/radio/src/index.css +98 -98
- package/dist/radio/src/index.js +10 -10
- package/dist/switch/src/Switch.css +43 -43
- package/dist/switch/src/Switch.js +6 -6
- package/dist/switch/src/SwitchField.css +33 -33
- package/dist/switch/src/SwitchField.js +2 -2
- package/dist/switch/src/index.css +49 -49
- package/dist/switch/src/index.js +8 -8
- package/dist/tag/src/Tag.css +801 -488
- package/dist/tag/src/Tag.d.ts +1 -1
- package/dist/tag/src/Tag.js +9 -9
- package/dist/tag/src/TagContext.d.ts +1 -1
- package/dist/tag/src/TagGroup.css +37 -37
- package/dist/tag/src/TagGroup.d.ts +1 -1
- package/dist/tag/src/TagGroup.js +1 -1
- package/dist/tag/src/TagGroupContext.d.ts +1 -1
- package/dist/tag/src/TagList.css +27 -27
- package/dist/tag/src/index.css +811 -498
- package/dist/tag/src/index.d.ts +1 -1
- package/dist/tag/src/index.js +10 -10
- 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 +6 -6
- package/package.json +10 -10
- package/dist/chunk-2GJNPGAM.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___JWvs8 {
|
|
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___JWvs8) {
|
|
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___Cfweo) {
|
|
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___sAf2J) {
|
|
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___6wrhw) {
|
|
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___jvv5C) {
|
|
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___rJZ8W) {
|
|
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___vy5tr) {
|
|
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___sHzoB) {
|
|
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___45Zf4 {
|
|
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___45Zf4) {
|
|
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___d9F1w) {
|
|
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___-NvEj) {
|
|
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___lFLy8) {
|
|
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___eI9o1) {
|
|
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___gyrV0) {
|
|
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___ZQS8X) {
|
|
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___wmhsR) {
|
|
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___6KBG7) {
|
|
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___MHRJ4 {
|
|
192
192
|
box-sizing: border-box;
|
|
193
193
|
}
|
|
194
|
-
.OverlineText-module__hop-
|
|
195
|
-
.OverlineText-module__hop-
|
|
194
|
+
.OverlineText-module__hop-OverlineText__text___MHRJ4::before,
|
|
195
|
+
.OverlineText-module__hop-OverlineText__text___MHRJ4::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___MHRJ4::before {
|
|
203
203
|
margin-block-end: var(--bottom-offset);
|
|
204
204
|
}
|
|
205
|
-
.OverlineText-module__hop-
|
|
205
|
+
.OverlineText-module__hop-OverlineText__text___MHRJ4::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___2VJx8 {
|
|
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___2VJx8) {
|
|
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___UgwtS) {
|
|
225
225
|
padding-inline-start: var(--hop-space-20);
|
|
226
226
|
}
|
package/dist/utils/src/index.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
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-MHDM4YO4.js';
|
|
10
10
|
export { isTextOnlyChildren } from '../../chunk-ZWU6DRRZ.js';
|
|
11
11
|
import '../../chunk-LJXTJRSB.js';
|
|
12
|
-
import '../../chunk-
|
|
12
|
+
import '../../chunk-HEAER6AM.js';
|
|
13
|
+
import '../../chunk-IRP5O2PB.js';
|
|
13
14
|
import '../../chunk-TXZ6BMFR.js';
|
|
14
|
-
import '../../chunk-RX6A4PRX.js';
|
|
15
15
|
import '../../chunk-QCA3ZR56.js';
|
|
16
16
|
import '../../chunk-TFVDF4YH.js';
|
|
17
|
-
import '../../chunk-
|
|
17
|
+
import '../../chunk-4MJUV4Y4.js';
|
|
18
18
|
import '../../chunk-WPNVVGFW.js';
|
|
19
|
-
import '../../chunk-
|
|
19
|
+
import '../../chunk-3PONZZJH.js';
|
|
20
20
|
import '../../chunk-X6SER3TZ.js';
|
|
21
21
|
export { ClearContainerSlots, ClearProviders } from '../../chunk-HXI3MEEK.js';
|
|
22
22
|
export { SlotProvider } from '../../chunk-M36KANKC.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.21",
|
|
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-2GJNPGAM.js
DELETED
|
@@ -1,187 +0,0 @@
|
|
|
1
|
-
import { useSlot } from './chunk-H5YTU3U7.js';
|
|
2
|
-
import { _Spinner } from './chunk-Q6BAJIO5.js';
|
|
3
|
-
import { ButtonContext } from './chunk-WMTWFKKP.js';
|
|
4
|
-
import { IconListContext } from './chunk-DHVVYSLB.js';
|
|
5
|
-
import { EnsureTextWrapper } from './chunk-GPEHOZZZ.js';
|
|
6
|
-
import { useLocalizedString } from './chunk-TFVDF4YH.js';
|
|
7
|
-
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
8
|
-
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
9
|
-
import { useRenderProps } from './chunk-NH3IVMXB.js';
|
|
10
|
-
import { composeClassnameRenderProps } from './chunk-65JPI4FL.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___GykD-", "hop-Button--icon-only": "Button-module__hop-Button--icon-only___6PD1D", "hop-Button--fluid": "Button-module__hop-Button--fluid___3BOfn", "hop-Button--sm": "Button-module__hop-Button--sm___l4gCq", "hop-Button--primary": "Button-module__hop-Button--primary___kChrM", "hop-Button--md": "Button-module__hop-Button--md___L380n", "hop-Button--secondary": "Button-module__hop-Button--secondary___5nyGD", "hop-Button--upsell": "Button-module__hop-Button--upsell___Kkc-F", "hop-Button--danger": "Button-module__hop-Button--danger___FV0mZ", "hop-Button--ghost-danger": "Button-module__hop-Button--ghost-danger___VuuUz", "hop-Button--ghost-secondary": "Button-module__hop-Button--ghost-secondary___TpSND", "hop-Button--ghost-primary": "Button-module__hop-Button--ghost-primary___skgG5", "hop-Button__Spinner": "Button-module__hop-Button__Spinner___ESK3E", "hop-Button__icon": "Button-module__hop-Button__icon___OgHz4", "hop-Button__icon-list": "Button-module__hop-Button__icon-list___H7MOe", "hop-Button__text": "Button-module__hop-Button__text___qtvCq", "hop-Button__end-icon": "Button-module__hop-Button__end-icon___aUAAx", "hop-Button__end-icon-list": "Button-module__hop-Button__end-icon-list___0FH5h" };
|
|
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 };
|