@hopper-ui/components 1.2.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/dist/Avatar/src/AnonymousAvatar.css +10 -10
- package/dist/Avatar/src/AnonymousAvatar.js +2 -2
- package/dist/Avatar/src/Avatar.css +37 -37
- package/dist/Avatar/src/Avatar.js +3 -3
- package/dist/Avatar/src/DeletedAvatar.css +10 -10
- package/dist/Avatar/src/DeletedAvatar.js +2 -2
- package/dist/Avatar/src/RichIconAvatarImage.css +10 -10
- package/dist/Avatar/src/RichIconAvatarImage.js +1 -1
- package/dist/Avatar/src/index.css +37 -37
- package/dist/Avatar/src/index.js +5 -5
- package/dist/Badge/src/Badge.css +10 -10
- package/dist/Badge/src/Badge.js +2 -2
- package/dist/Badge/src/index.css +10 -10
- package/dist/Badge/src/index.js +2 -2
- package/dist/Divider/src/Divider.css +2 -2
- package/dist/Divider/src/Divider.js +1 -1
- package/dist/Divider/src/index.css +2 -2
- package/dist/Divider/src/index.js +1 -1
- package/dist/ErrorMessage/src/ErrorMessage.css +11 -11
- package/dist/ErrorMessage/src/ErrorMessage.js +2 -2
- package/dist/ErrorMessage/src/index.css +11 -11
- package/dist/ErrorMessage/src/index.js +2 -2
- package/dist/Form/src/Form.css +862 -605
- package/dist/Form/src/Form.js +67 -65
- package/dist/Form/src/index.css +862 -605
- package/dist/Form/src/index.js +67 -65
- package/dist/HelperMessage/src/HelperMessage.css +11 -11
- package/dist/HelperMessage/src/HelperMessage.js +2 -2
- package/dist/HelperMessage/src/index.css +11 -11
- package/dist/HelperMessage/src/index.js +2 -2
- package/dist/IconList/src/IconList.css +1 -1
- package/dist/IconList/src/IconList.js +1 -1
- package/dist/IconList/src/index.css +1 -1
- package/dist/IconList/src/index.js +1 -1
- package/dist/Link/src/Link.css +31 -31
- package/dist/Link/src/Link.js +2 -2
- package/dist/Link/src/index.css +31 -31
- package/dist/Link/src/index.js +2 -2
- package/dist/ListBox/src/ListBox.css +226 -198
- package/dist/ListBox/src/ListBox.js +12 -13
- package/dist/ListBox/src/ListBoxItem.css +208 -182
- package/dist/ListBox/src/ListBoxItem.js +10 -10
- package/dist/ListBox/src/ListBoxItemSkeleton.css +7 -7
- package/dist/ListBox/src/ListBoxItemSkeleton.js +1 -1
- package/dist/ListBox/src/index.css +226 -198
- package/dist/ListBox/src/index.js +12 -13
- package/dist/Select/src/Select.css +4368 -0
- package/dist/Select/src/Select.d.ts +93 -0
- package/dist/Select/src/Select.js +116 -0
- package/dist/Select/src/SelectContext.d.ts +16 -0
- package/dist/Select/src/SelectContext.js +2 -0
- package/dist/Select/src/SelectValue.css +443 -0
- package/dist/Select/src/SelectValue.d.ts +31 -0
- package/dist/Select/src/SelectValue.js +19 -0
- package/dist/Select/src/index.css +4368 -0
- package/dist/Select/src/index.d.ts +13 -0
- package/dist/Select/src/index.js +116 -0
- package/dist/Spinner/src/Spinner.css +19 -19
- package/dist/Spinner/src/Spinner.js +2 -2
- package/dist/Spinner/src/index.css +19 -19
- package/dist/Spinner/src/index.js +2 -2
- package/dist/buttons/src/Button.css +94 -94
- package/dist/buttons/src/Button.js +5 -5
- package/dist/buttons/src/ButtonGroup.css +11 -11
- package/dist/buttons/src/ButtonGroup.js +1 -1
- package/dist/buttons/src/ClearButton.css +70 -70
- package/dist/buttons/src/ClearButton.js +3 -3
- package/dist/buttons/src/EmbeddedButton.css +70 -70
- package/dist/buttons/src/EmbeddedButton.js +1 -1
- package/dist/buttons/src/index.css +175 -175
- package/dist/buttons/src/index.js +10 -10
- package/dist/checkbox/src/Checkbox.css +31 -31
- package/dist/checkbox/src/Checkbox.js +2 -2
- package/dist/checkbox/src/CheckboxField.css +15 -15
- package/dist/checkbox/src/CheckboxField.js +1 -1
- package/dist/checkbox/src/CheckboxGroup.css +60 -60
- package/dist/checkbox/src/CheckboxGroup.js +3 -3
- package/dist/checkbox/src/index.css +60 -60
- package/dist/checkbox/src/index.js +6 -6
- package/dist/{chunk-CKKLDA5J.js → chunk-3573Q6QG.js} +2 -2
- package/dist/{chunk-SZSQZ4C7.js → chunk-3ZRCYKIV.js} +2 -2
- package/dist/{chunk-VISBUD2K.js → chunk-4RMADICI.js} +4 -4
- package/dist/{chunk-W474WFOP.js → chunk-6C5RI4RT.js} +9 -11
- package/dist/{chunk-L5KI4ZCL.js → chunk-6H5DRQZH.js} +2 -2
- package/dist/{chunk-VYKPDMP3.js → chunk-7L5MCX2A.js} +2 -2
- package/dist/{chunk-COIGQP33.js → chunk-AZJME7JV.js} +3 -3
- package/dist/{chunk-PQXVL3YJ.js → chunk-BODCT27J.js} +1 -1
- package/dist/{chunk-XUJNQNB3.js → chunk-BQITTESM.js} +1 -1
- package/dist/{chunk-T6MAOVLH.js → chunk-BRU54ERL.js} +2 -2
- package/dist/{chunk-2XO5CZBO.js → chunk-BTHPJL3A.js} +2 -2
- package/dist/{chunk-CEUQHDEQ.js → chunk-C72PRNOP.js} +1 -1
- package/dist/{chunk-IUOLKHYQ.js → chunk-CAHZCRTK.js} +1 -1
- package/dist/{chunk-TG623HPA.js → chunk-CU36N5JQ.js} +4 -4
- package/dist/{chunk-S5CK32KM.js → chunk-CWX45XWS.js} +3 -3
- package/dist/{chunk-XT2MZWEV.js → chunk-D5PBETXF.js} +1 -1
- package/dist/{chunk-5IB23E3O.js → chunk-D7DIUGRI.js} +1 -1
- package/dist/{chunk-V5Q245NH.js → chunk-DFVORYEU.js} +2 -2
- package/dist/{chunk-354H4FNA.js → chunk-DLZGJBL7.js} +1 -1
- package/dist/{chunk-X253QCYD.js → chunk-DXEWBV4C.js} +2 -2
- package/dist/chunk-EHXOXTDN.js +29 -0
- package/dist/{chunk-FOD7XUSJ.js → chunk-FOXOPL2E.js} +5 -5
- package/dist/{chunk-HCRWIU7V.js → chunk-GRJ3VKHY.js} +5 -5
- package/dist/{chunk-RWAVMW7T.js → chunk-HIDHDS2L.js} +2 -2
- package/dist/{chunk-IXWYHDGU.js → chunk-JIRLWUDP.js} +3 -3
- package/dist/{chunk-M3K4IYX6.js → chunk-JQMXGSAE.js} +1 -1
- package/dist/{chunk-MJHMFANK.js → chunk-LFN43ROH.js} +2 -2
- package/dist/{chunk-FA4IXLWZ.js → chunk-LYPR2YMY.js} +5 -5
- package/dist/{chunk-JJ4EFTES.js → chunk-O2ZMTKCT.js} +1 -1
- package/dist/{chunk-FOKTHCFK.js → chunk-OLS7K6PO.js} +2 -2
- package/dist/{chunk-W2BQZEW6.js → chunk-QQI3KNHZ.js} +6 -7
- package/dist/{chunk-TCOZUCPD.js → chunk-SCXYAGZI.js} +271 -46
- package/dist/{chunk-PFABSIDM.js → chunk-SKEMSZ63.js} +2 -2
- package/dist/{chunk-EJUIYBAC.js → chunk-SSDFINDD.js} +2 -2
- package/dist/chunk-T24MBA34.js +7 -0
- package/dist/{chunk-RQKU3XDG.js → chunk-T37HTUEU.js} +1 -1
- package/dist/{chunk-UT4CSUUM.js → chunk-T3CLGQI6.js} +1 -1
- package/dist/{chunk-BKCMCC7V.js → chunk-T742LIIS.js} +1 -1
- package/dist/{chunk-F4H76S4H.js → chunk-TFVDF4YH.js} +4 -2
- package/dist/{chunk-U56LEEEA.js → chunk-TOWSC7FO.js} +4 -4
- package/dist/{chunk-J44DIB5J.js → chunk-TTY5HDLL.js} +2 -2
- package/dist/chunk-YB7IYQW4.js +118 -0
- package/dist/{chunk-Q63YLWI6.js → chunk-ZHOQYYHY.js} +1 -1
- package/dist/i18n/src/index.js +1 -1
- package/dist/i18n/src/useLocalizedString.js +1 -1
- package/dist/index.css +862 -605
- package/dist/index.d.ts +6 -2
- package/dist/index.js +67 -65
- package/dist/inputs/src/InputGroup.css +14 -16
- package/dist/inputs/src/InputGroup.js +1 -1
- package/dist/inputs/src/NumberField.css +64 -65
- package/dist/inputs/src/NumberField.js +8 -8
- package/dist/inputs/src/PasswordField.css +218 -219
- package/dist/inputs/src/PasswordField.js +10 -10
- package/dist/inputs/src/SearchField.css +224 -225
- package/dist/inputs/src/SearchField.js +12 -12
- package/dist/inputs/src/TextArea.css +58 -59
- package/dist/inputs/src/TextArea.js +9 -9
- package/dist/inputs/src/TextField.css +219 -220
- package/dist/inputs/src/TextField.js +11 -11
- package/dist/inputs/src/index.css +271 -268
- package/dist/inputs/src/index.js +18 -18
- package/dist/overlays/Popover/src/Popover.css +862 -605
- package/dist/overlays/Popover/src/Popover.d.ts +26 -3
- package/dist/overlays/Popover/src/Popover.js +67 -65
- package/dist/overlays/Popover/src/PopoverContext.d.ts +3 -0
- package/dist/overlays/Popover/src/index.css +862 -605
- package/dist/overlays/Popover/src/index.d.ts +4 -1
- package/dist/overlays/Popover/src/index.js +67 -65
- package/dist/radio/src/Radio.css +31 -31
- package/dist/radio/src/Radio.js +2 -2
- package/dist/radio/src/RadioField.css +15 -15
- package/dist/radio/src/RadioField.js +2 -2
- package/dist/radio/src/RadioGroup.css +60 -60
- package/dist/radio/src/RadioGroup.js +2 -2
- package/dist/radio/src/index.css +60 -60
- package/dist/radio/src/index.js +6 -6
- package/dist/switch/src/Switch.css +25 -25
- package/dist/switch/src/Switch.js +2 -2
- package/dist/switch/src/SwitchField.css +15 -15
- package/dist/switch/src/SwitchField.js +2 -2
- package/dist/switch/src/index.css +31 -31
- package/dist/switch/src/index.js +4 -4
- package/dist/tag/src/Tag.css +301 -301
- package/dist/tag/src/Tag.js +6 -6
- package/dist/tag/src/TagGroup.css +22 -22
- package/dist/tag/src/TagGroup.js +2 -2
- package/dist/tag/src/index.css +314 -314
- package/dist/tag/src/index.js +9 -9
- package/dist/typography/Heading/src/Heading.css +9 -9
- package/dist/typography/Heading/src/Heading.js +1 -1
- package/dist/typography/Heading/src/index.css +9 -9
- package/dist/typography/Heading/src/index.js +1 -1
- package/dist/typography/Label/src/Label.css +3 -3
- package/dist/typography/Label/src/Label.js +2 -2
- package/dist/typography/Label/src/index.css +3 -3
- package/dist/typography/Label/src/index.js +2 -2
- package/dist/typography/OverlineText/src/OverlineText.css +6 -6
- package/dist/typography/OverlineText/src/OverlineText.js +1 -1
- package/dist/typography/OverlineText/src/index.css +6 -6
- package/dist/typography/OverlineText/src/index.js +1 -1
- package/dist/typography/Text/src/Text.css +9 -9
- package/dist/typography/Text/src/Text.js +1 -1
- package/dist/typography/Text/src/index.css +9 -9
- package/dist/typography/Text/src/index.js +1 -1
- package/dist/utils/src/index.d.ts +1 -0
- package/dist/utils/src/index.js +3 -2
- package/dist/utils/src/useIsOverflow.d.ts +5 -0
- package/dist/utils/src/useIsOverflow.js +2 -0
- package/package.json +7 -7
- package/dist/ListBox/src/useLoadOnScroll.d.ts +0 -16
- package/dist/ListBox/src/useLoadOnScroll.js +0 -2
- package/dist/chunk-JTNMFPM4.js +0 -41
package/dist/tag/src/index.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
export { GlobalTagCssSelector, _Tag as Tag } from '../../chunk-FOD7XUSJ.js';
|
|
2
|
-
export { GlobalTagGroupCssSelector, _TagGroup as TagGroup } from '../../chunk-V5Q245NH.js';
|
|
3
|
-
export { TagContext } from '../../chunk-EWMWQ2MC.js';
|
|
4
|
-
export { TagGroupContext } from '../../chunk-LCAS3YQV.js';
|
|
5
1
|
export { GlobalTagListCssSelector, _TagList as TagList } from '../../chunk-WWRB4K4M.js';
|
|
2
|
+
export { GlobalTagCssSelector, _Tag as Tag } from '../../chunk-FOXOPL2E.js';
|
|
3
|
+
export { GlobalTagGroupCssSelector, _TagGroup as TagGroup } from '../../chunk-DFVORYEU.js';
|
|
6
4
|
export { TagListContext } from '../../chunk-XLKYXKWE.js';
|
|
7
|
-
|
|
5
|
+
export { TagContext } from '../../chunk-EWMWQ2MC.js';
|
|
6
|
+
export { TagGroupContext } from '../../chunk-LCAS3YQV.js';
|
|
7
|
+
import '../../chunk-BTHPJL3A.js';
|
|
8
8
|
import '../../chunk-DXVKHP4V.js';
|
|
9
|
-
import '../../chunk-
|
|
9
|
+
import '../../chunk-D7DIUGRI.js';
|
|
10
10
|
import '../../chunk-O7IJYNVQ.js';
|
|
11
|
-
import '../../chunk-
|
|
11
|
+
import '../../chunk-3573Q6QG.js';
|
|
12
12
|
import '../../chunk-4ZYV2XLW.js';
|
|
13
13
|
import '../../chunk-QCA3ZR56.js';
|
|
14
|
-
import '../../chunk-
|
|
14
|
+
import '../../chunk-TFVDF4YH.js';
|
|
15
15
|
import '../../chunk-ZWU6DRRZ.js';
|
|
16
16
|
import '../../chunk-65JPI4FL.js';
|
|
17
17
|
import '../../chunk-HZKFQ33E.js';
|
|
18
18
|
import '../../chunk-DHVVYSLB.js';
|
|
19
19
|
import '../../chunk-CQDLZ42T.js';
|
|
20
20
|
import '../../chunk-FAE27DLF.js';
|
|
21
|
-
import '../../chunk-
|
|
21
|
+
import '../../chunk-D5PBETXF.js';
|
|
22
22
|
import '../../chunk-X6SER3TZ.js';
|
|
23
23
|
import '../../chunk-HXI3MEEK.js';
|
|
24
24
|
import '../../chunk-AES7QBQE.js';
|
|
@@ -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___qD-ZA {
|
|
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___qD-ZA) {
|
|
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___mwtYu) {
|
|
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___H6NDx) {
|
|
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___EMItL) {
|
|
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___qwUN7) {
|
|
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___3ROoJ) {
|
|
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___9FgeA) {
|
|
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___Lg0Pe) {
|
|
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);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { GlobalHeadingCssSelector, H1, H2, H3, H4, H5, H6, _Heading as Heading } from '../../../chunk-
|
|
1
|
+
export { GlobalHeadingCssSelector, H1, H2, H3, H4, H5, H6, _Heading as Heading } from '../../../chunk-BODCT27J.js';
|
|
2
2
|
import '../../../chunk-TXZ6BMFR.js';
|
|
3
3
|
import '../../../chunk-KVDXQMWI.js';
|
|
4
4
|
import '../../../chunk-JSBRDJBE.js';
|
|
@@ -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___qD-ZA {
|
|
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___qD-ZA) {
|
|
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___mwtYu) {
|
|
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___H6NDx) {
|
|
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___EMItL) {
|
|
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___qwUN7) {
|
|
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___3ROoJ) {
|
|
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___9FgeA) {
|
|
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___Lg0Pe) {
|
|
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);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { GlobalHeadingCssSelector, H1, H2, H3, H4, H5, H6, _Heading as Heading } from '../../../chunk-
|
|
1
|
+
export { GlobalHeadingCssSelector, H1, H2, H3, H4, H5, H6, _Heading as Heading } from '../../../chunk-BODCT27J.js';
|
|
2
2
|
export { HeadingContext } from '../../../chunk-TXZ6BMFR.js';
|
|
3
3
|
import '../../../chunk-KVDXQMWI.js';
|
|
4
4
|
import '../../../chunk-JSBRDJBE.js';
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
/* css-module:/home/runner/work/wl-hopper/wl-hopper/packages/components/src/typography/Label/src/Label.module.css/#css-module-data */
|
|
2
|
-
.Label-module__hop-
|
|
2
|
+
.Label-module__hop-Label___mvHHn {
|
|
3
3
|
--hop-Label-font-size: var(--hop-heading-xs-font-size);
|
|
4
4
|
--hop-Label-font-family: var(--hop-heading-xs-font-family);
|
|
5
5
|
--hop-Label-font-weight: var(--hop-heading-xs-font-weight);
|
|
6
6
|
--hop-Label-line-height: var(--hop-heading-xs-line-height);
|
|
7
7
|
--hop-Label-color: var(--hop-neutral-text-weak);
|
|
8
8
|
}
|
|
9
|
-
:where(.Label-module__hop-
|
|
9
|
+
:where(.Label-module__hop-Label___mvHHn) {
|
|
10
10
|
font-family: var(--hop-Label-font-family);
|
|
11
11
|
font-size: var(--hop-Label-font-size);
|
|
12
12
|
font-weight: var(--hop-Label-font-weight);
|
|
13
13
|
line-height: var(--hop-Label-line-height);
|
|
14
14
|
color: var(--hop-Label-color);
|
|
15
15
|
}
|
|
16
|
-
:where(.Label-module__hop-
|
|
16
|
+
:where(.Label-module__hop-Label__indicator___eN8aZ) {
|
|
17
17
|
padding-inline-start: var(--hop-space-20);
|
|
18
18
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { GlobalLabelCssSelector, _Label as Label } from '../../../chunk-
|
|
1
|
+
export { GlobalLabelCssSelector, _Label as Label } from '../../../chunk-HIDHDS2L.js';
|
|
2
2
|
import '../../../chunk-QCA3ZR56.js';
|
|
3
|
-
import '../../../chunk-
|
|
3
|
+
import '../../../chunk-TFVDF4YH.js';
|
|
4
4
|
import '../../../chunk-KVDXQMWI.js';
|
|
5
5
|
import '../../../chunk-JSBRDJBE.js';
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
/* css-module:/home/runner/work/wl-hopper/wl-hopper/packages/components/src/typography/Label/src/Label.module.css/#css-module-data */
|
|
2
|
-
.Label-module__hop-
|
|
2
|
+
.Label-module__hop-Label___mvHHn {
|
|
3
3
|
--hop-Label-font-size: var(--hop-heading-xs-font-size);
|
|
4
4
|
--hop-Label-font-family: var(--hop-heading-xs-font-family);
|
|
5
5
|
--hop-Label-font-weight: var(--hop-heading-xs-font-weight);
|
|
6
6
|
--hop-Label-line-height: var(--hop-heading-xs-line-height);
|
|
7
7
|
--hop-Label-color: var(--hop-neutral-text-weak);
|
|
8
8
|
}
|
|
9
|
-
:where(.Label-module__hop-
|
|
9
|
+
:where(.Label-module__hop-Label___mvHHn) {
|
|
10
10
|
font-family: var(--hop-Label-font-family);
|
|
11
11
|
font-size: var(--hop-Label-font-size);
|
|
12
12
|
font-weight: var(--hop-Label-font-weight);
|
|
13
13
|
line-height: var(--hop-Label-line-height);
|
|
14
14
|
color: var(--hop-Label-color);
|
|
15
15
|
}
|
|
16
|
-
:where(.Label-module__hop-
|
|
16
|
+
:where(.Label-module__hop-Label__indicator___eN8aZ) {
|
|
17
17
|
padding-inline-start: var(--hop-space-20);
|
|
18
18
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { GlobalLabelCssSelector, _Label as Label } from '../../../chunk-
|
|
1
|
+
export { GlobalLabelCssSelector, _Label as Label } from '../../../chunk-HIDHDS2L.js';
|
|
2
2
|
export { LabelContext } from '../../../chunk-QCA3ZR56.js';
|
|
3
|
-
import '../../../chunk-
|
|
3
|
+
import '../../../chunk-TFVDF4YH.js';
|
|
4
4
|
import '../../../chunk-KVDXQMWI.js';
|
|
5
5
|
import '../../../chunk-JSBRDJBE.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* css-module:/home/runner/work/wl-hopper/wl-hopper/packages/components/src/typography/OverlineText/src/OverlineText.module.css/#css-module-data */
|
|
2
|
-
:where(.OverlineText-module__hop-
|
|
2
|
+
:where(.OverlineText-module__hop-OverlineText___SbFVm) {
|
|
3
3
|
--hop-OverlineText-font-family: var(--hop-overline-font-family);
|
|
4
4
|
--hop-OverlineText-font-size: var(--hop-overline-font-size);
|
|
5
5
|
--hop-OverlineText-font-weight: var(--hop-overline-font-weight);
|
|
@@ -23,20 +23,20 @@
|
|
|
23
23
|
text-transform: uppercase;
|
|
24
24
|
letter-spacing: var(--letter-spacing);
|
|
25
25
|
}
|
|
26
|
-
.OverlineText-module__hop-
|
|
26
|
+
.OverlineText-module__hop-OverlineText__text___Cb3CN {
|
|
27
27
|
box-sizing: border-box;
|
|
28
28
|
}
|
|
29
|
-
.OverlineText-module__hop-
|
|
30
|
-
.OverlineText-module__hop-
|
|
29
|
+
.OverlineText-module__hop-OverlineText__text___Cb3CN::before,
|
|
30
|
+
.OverlineText-module__hop-OverlineText__text___Cb3CN::after {
|
|
31
31
|
content: "";
|
|
32
32
|
display: block;
|
|
33
33
|
box-sizing: border-box;
|
|
34
34
|
inline-size: 0;
|
|
35
35
|
block-size: 0;
|
|
36
36
|
}
|
|
37
|
-
.OverlineText-module__hop-
|
|
37
|
+
.OverlineText-module__hop-OverlineText__text___Cb3CN::before {
|
|
38
38
|
margin-block-end: var(--bottom-offset);
|
|
39
39
|
}
|
|
40
|
-
.OverlineText-module__hop-
|
|
40
|
+
.OverlineText-module__hop-OverlineText__text___Cb3CN::after {
|
|
41
41
|
margin-block-start: var(--top-offset);
|
|
42
42
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { GlobalOverlineTextCssSelector, _OverlineText as OverlineText } from '../../../chunk-
|
|
1
|
+
export { GlobalOverlineTextCssSelector, _OverlineText as OverlineText } from '../../../chunk-C72PRNOP.js';
|
|
2
2
|
import '../../../chunk-WPNVVGFW.js';
|
|
3
3
|
import '../../../chunk-KVDXQMWI.js';
|
|
4
4
|
import '../../../chunk-JSBRDJBE.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* css-module:/home/runner/work/wl-hopper/wl-hopper/packages/components/src/typography/OverlineText/src/OverlineText.module.css/#css-module-data */
|
|
2
|
-
:where(.OverlineText-module__hop-
|
|
2
|
+
:where(.OverlineText-module__hop-OverlineText___SbFVm) {
|
|
3
3
|
--hop-OverlineText-font-family: var(--hop-overline-font-family);
|
|
4
4
|
--hop-OverlineText-font-size: var(--hop-overline-font-size);
|
|
5
5
|
--hop-OverlineText-font-weight: var(--hop-overline-font-weight);
|
|
@@ -23,20 +23,20 @@
|
|
|
23
23
|
text-transform: uppercase;
|
|
24
24
|
letter-spacing: var(--letter-spacing);
|
|
25
25
|
}
|
|
26
|
-
.OverlineText-module__hop-
|
|
26
|
+
.OverlineText-module__hop-OverlineText__text___Cb3CN {
|
|
27
27
|
box-sizing: border-box;
|
|
28
28
|
}
|
|
29
|
-
.OverlineText-module__hop-
|
|
30
|
-
.OverlineText-module__hop-
|
|
29
|
+
.OverlineText-module__hop-OverlineText__text___Cb3CN::before,
|
|
30
|
+
.OverlineText-module__hop-OverlineText__text___Cb3CN::after {
|
|
31
31
|
content: "";
|
|
32
32
|
display: block;
|
|
33
33
|
box-sizing: border-box;
|
|
34
34
|
inline-size: 0;
|
|
35
35
|
block-size: 0;
|
|
36
36
|
}
|
|
37
|
-
.OverlineText-module__hop-
|
|
37
|
+
.OverlineText-module__hop-OverlineText__text___Cb3CN::before {
|
|
38
38
|
margin-block-end: var(--bottom-offset);
|
|
39
39
|
}
|
|
40
|
-
.OverlineText-module__hop-
|
|
40
|
+
.OverlineText-module__hop-OverlineText__text___Cb3CN::after {
|
|
41
41
|
margin-block-start: var(--top-offset);
|
|
42
42
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { GlobalOverlineTextCssSelector, _OverlineText as OverlineText } from '../../../chunk-
|
|
1
|
+
export { GlobalOverlineTextCssSelector, _OverlineText as OverlineText } from '../../../chunk-C72PRNOP.js';
|
|
2
2
|
export { OverlineTextContext } from '../../../chunk-WPNVVGFW.js';
|
|
3
3
|
import '../../../chunk-KVDXQMWI.js';
|
|
4
4
|
import '../../../chunk-JSBRDJBE.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* css-module:/home/runner/work/wl-hopper/wl-hopper/packages/components/src/typography/Text/src/Text.module.css/#css-module-data */
|
|
2
|
-
.Text-module__hop-
|
|
2
|
+
.Text-module__hop-Text___TrcWf {
|
|
3
3
|
--hop-Text-xs-font-size: var(--hop-body-xs-font-size);
|
|
4
4
|
--hop-Text-xs-font-family: var(--hop-body-xs-font-family);
|
|
5
5
|
--hop-Text-xs-font-weight: var(--hop-body-xs-font-weight);
|
|
@@ -29,49 +29,49 @@
|
|
|
29
29
|
--hop-Text-inherit-size-font-weight: inherit;
|
|
30
30
|
--hop-Text-inherit-size-line-height: inherit;
|
|
31
31
|
}
|
|
32
|
-
:where(.Text-module__hop-
|
|
32
|
+
:where(.Text-module__hop-Text___TrcWf) {
|
|
33
33
|
font-family: var(--font-family);
|
|
34
34
|
font-size: var(--font-size);
|
|
35
35
|
font-weight: var(--font-weight);
|
|
36
36
|
line-height: var(--line-height);
|
|
37
37
|
}
|
|
38
|
-
:where(.Text-module__hop-Text--
|
|
38
|
+
:where(.Text-module__hop-Text--xs___rF5yE) {
|
|
39
39
|
--font-size: var(--hop-Text-xs-font-size);
|
|
40
40
|
--font-family: var(--hop-Text-xs-font-family);
|
|
41
41
|
--font-weight: var(--hop-Text-xs-font-weight);
|
|
42
42
|
--line-height: var(--hop-Text-xs-line-height);
|
|
43
43
|
}
|
|
44
|
-
:where(.Text-module__hop-Text--
|
|
44
|
+
:where(.Text-module__hop-Text--sm___tPgW7) {
|
|
45
45
|
--font-size: var(--hop-Text-sm-font-size);
|
|
46
46
|
--font-family: var(--hop-Text-sm-font-family);
|
|
47
47
|
--font-weight: var(--hop-Text-sm-font-weight);
|
|
48
48
|
--line-height: var(--hop-Text-sm-line-height);
|
|
49
49
|
}
|
|
50
|
-
:where(.Text-module__hop-Text--
|
|
50
|
+
:where(.Text-module__hop-Text--md___g9Wf2) {
|
|
51
51
|
--font-size: var(--hop-Text-md-font-size);
|
|
52
52
|
--font-family: var(--hop-Text-md-font-family);
|
|
53
53
|
--font-weight: var(--hop-Text-md-font-weight);
|
|
54
54
|
--line-height: var(--hop-Text-md-line-height);
|
|
55
55
|
}
|
|
56
|
-
:where(.Text-module__hop-Text--
|
|
56
|
+
:where(.Text-module__hop-Text--lg___gXea2) {
|
|
57
57
|
--font-size: var(--hop-Text-lg-font-size);
|
|
58
58
|
--font-family: var(--hop-Text-lg-font-family);
|
|
59
59
|
--font-weight: var(--hop-Text-lg-font-weight);
|
|
60
60
|
--line-height: var(--hop-Text-lg-line-height);
|
|
61
61
|
}
|
|
62
|
-
:where(.Text-module__hop-Text--
|
|
62
|
+
:where(.Text-module__hop-Text--xl___iGie8) {
|
|
63
63
|
--font-size: var(--hop-Text-xl-font-size);
|
|
64
64
|
--font-family: var(--hop-Text-xl-font-family);
|
|
65
65
|
--font-weight: var(--hop-Text-xl-font-weight);
|
|
66
66
|
--line-height: var(--hop-Text-xl-line-height);
|
|
67
67
|
}
|
|
68
|
-
:where(.Text-module__hop-Text--
|
|
68
|
+
:where(.Text-module__hop-Text--2xl___p5vcB) {
|
|
69
69
|
--font-size: var(--hop-Text-2xl-font-size);
|
|
70
70
|
--font-family: var(--hop-Text-2xl-font-family);
|
|
71
71
|
--font-weight: var(--hop-Text-2xl-font-weight);
|
|
72
72
|
--line-height: var(--hop-Text-2xl-line-height);
|
|
73
73
|
}
|
|
74
|
-
:where(.Text-module__hop-Text--
|
|
74
|
+
:where(.Text-module__hop-Text--inherit___Jg8ZC) {
|
|
75
75
|
--font-size: var(--hop-Text-inherit-size-font-size);
|
|
76
76
|
--font-family: var(--hop-Text-inherit-size-font-family);
|
|
77
77
|
--font-weight: var(--hop-Text-inherit-size-font-weight);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { GlobalTextCssSelector, _Text as Text } from '../../../chunk-
|
|
1
|
+
export { GlobalTextCssSelector, _Text as Text } from '../../../chunk-D5PBETXF.js';
|
|
2
2
|
import '../../../chunk-X6SER3TZ.js';
|
|
3
3
|
import '../../../chunk-HXI3MEEK.js';
|
|
4
4
|
import '../../../chunk-M36KANKC.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* css-module:/home/runner/work/wl-hopper/wl-hopper/packages/components/src/typography/Text/src/Text.module.css/#css-module-data */
|
|
2
|
-
.Text-module__hop-
|
|
2
|
+
.Text-module__hop-Text___TrcWf {
|
|
3
3
|
--hop-Text-xs-font-size: var(--hop-body-xs-font-size);
|
|
4
4
|
--hop-Text-xs-font-family: var(--hop-body-xs-font-family);
|
|
5
5
|
--hop-Text-xs-font-weight: var(--hop-body-xs-font-weight);
|
|
@@ -29,49 +29,49 @@
|
|
|
29
29
|
--hop-Text-inherit-size-font-weight: inherit;
|
|
30
30
|
--hop-Text-inherit-size-line-height: inherit;
|
|
31
31
|
}
|
|
32
|
-
:where(.Text-module__hop-
|
|
32
|
+
:where(.Text-module__hop-Text___TrcWf) {
|
|
33
33
|
font-family: var(--font-family);
|
|
34
34
|
font-size: var(--font-size);
|
|
35
35
|
font-weight: var(--font-weight);
|
|
36
36
|
line-height: var(--line-height);
|
|
37
37
|
}
|
|
38
|
-
:where(.Text-module__hop-Text--
|
|
38
|
+
:where(.Text-module__hop-Text--xs___rF5yE) {
|
|
39
39
|
--font-size: var(--hop-Text-xs-font-size);
|
|
40
40
|
--font-family: var(--hop-Text-xs-font-family);
|
|
41
41
|
--font-weight: var(--hop-Text-xs-font-weight);
|
|
42
42
|
--line-height: var(--hop-Text-xs-line-height);
|
|
43
43
|
}
|
|
44
|
-
:where(.Text-module__hop-Text--
|
|
44
|
+
:where(.Text-module__hop-Text--sm___tPgW7) {
|
|
45
45
|
--font-size: var(--hop-Text-sm-font-size);
|
|
46
46
|
--font-family: var(--hop-Text-sm-font-family);
|
|
47
47
|
--font-weight: var(--hop-Text-sm-font-weight);
|
|
48
48
|
--line-height: var(--hop-Text-sm-line-height);
|
|
49
49
|
}
|
|
50
|
-
:where(.Text-module__hop-Text--
|
|
50
|
+
:where(.Text-module__hop-Text--md___g9Wf2) {
|
|
51
51
|
--font-size: var(--hop-Text-md-font-size);
|
|
52
52
|
--font-family: var(--hop-Text-md-font-family);
|
|
53
53
|
--font-weight: var(--hop-Text-md-font-weight);
|
|
54
54
|
--line-height: var(--hop-Text-md-line-height);
|
|
55
55
|
}
|
|
56
|
-
:where(.Text-module__hop-Text--
|
|
56
|
+
:where(.Text-module__hop-Text--lg___gXea2) {
|
|
57
57
|
--font-size: var(--hop-Text-lg-font-size);
|
|
58
58
|
--font-family: var(--hop-Text-lg-font-family);
|
|
59
59
|
--font-weight: var(--hop-Text-lg-font-weight);
|
|
60
60
|
--line-height: var(--hop-Text-lg-line-height);
|
|
61
61
|
}
|
|
62
|
-
:where(.Text-module__hop-Text--
|
|
62
|
+
:where(.Text-module__hop-Text--xl___iGie8) {
|
|
63
63
|
--font-size: var(--hop-Text-xl-font-size);
|
|
64
64
|
--font-family: var(--hop-Text-xl-font-family);
|
|
65
65
|
--font-weight: var(--hop-Text-xl-font-weight);
|
|
66
66
|
--line-height: var(--hop-Text-xl-line-height);
|
|
67
67
|
}
|
|
68
|
-
:where(.Text-module__hop-Text--
|
|
68
|
+
:where(.Text-module__hop-Text--2xl___p5vcB) {
|
|
69
69
|
--font-size: var(--hop-Text-2xl-font-size);
|
|
70
70
|
--font-family: var(--hop-Text-2xl-font-family);
|
|
71
71
|
--font-weight: var(--hop-Text-2xl-font-weight);
|
|
72
72
|
--line-height: var(--hop-Text-2xl-line-height);
|
|
73
73
|
}
|
|
74
|
-
:where(.Text-module__hop-Text--
|
|
74
|
+
:where(.Text-module__hop-Text--inherit___Jg8ZC) {
|
|
75
75
|
--font-size: var(--hop-Text-inherit-size-font-size);
|
|
76
76
|
--font-family: var(--hop-Text-inherit-size-font-family);
|
|
77
77
|
--font-weight: var(--hop-Text-inherit-size-font-weight);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { GlobalTextCssSelector, _Text as Text } from '../../../chunk-
|
|
1
|
+
export { GlobalTextCssSelector, _Text as Text } from '../../../chunk-D5PBETXF.js';
|
|
2
2
|
export { TextContext } from '../../../chunk-X6SER3TZ.js';
|
|
3
3
|
import '../../../chunk-HXI3MEEK.js';
|
|
4
4
|
import '../../../chunk-M36KANKC.js';
|
|
@@ -4,6 +4,7 @@ export { Size, SizeAdapter } from './sizeAdapter.js';
|
|
|
4
4
|
export { BaseComponentProps, DOMProps, InteractionProps, RenderProps, RenderPropsHookOptions, StyleProps, StyleRenderProps } from './types.js';
|
|
5
5
|
export { isTextOnlyChildren } from './isTextOnlyChildren.js';
|
|
6
6
|
export { SlotProvider, SlotProviderProps } from './SlotProvider.js';
|
|
7
|
+
export { useIsOverflow } from './useIsOverflow.js';
|
|
7
8
|
export { useFontFaceReady } from './useFontFaceReady.js';
|
|
8
9
|
export { Scale, useScale } from './useScale.js';
|
|
9
10
|
export { useSlot } from './useSlot.js';
|
package/dist/utils/src/index.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import '../../chunk-SNIF7MEM.js';
|
|
2
1
|
import '../../chunk-LQICWONC.js';
|
|
3
|
-
|
|
2
|
+
import '../../chunk-SNIF7MEM.js';
|
|
4
3
|
export { useTruncatedText } from '../../chunk-Z57VHYOF.js';
|
|
4
|
+
export { useFontFaceReady } from '../../chunk-IU6XMS2X.js';
|
|
5
5
|
export { useScale } from '../../chunk-MTDFS4CZ.js';
|
|
6
6
|
export { useSlot } from '../../chunk-H5YTU3U7.js';
|
|
7
|
+
export { useIsOverflow } from '../../chunk-EHXOXTDN.js';
|
|
7
8
|
export { isArray, isDefined, isEmptyArray, isFunction, isNil, isNilOrEmpty, isNull, isNumber, isObject, isPlainObject, isPromise, isString, isUndefined } from '../../chunk-TIPN4VYD.js';
|
|
8
9
|
export { isTextOnlyChildren } from '../../chunk-ZWU6DRRZ.js';
|
|
9
10
|
export { composeClassnameRenderProps } from '../../chunk-65JPI4FL.js';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hopper-ui/components",
|
|
3
3
|
"author": "Workleap",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.3.0",
|
|
5
5
|
"description": "The components package.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"repository": {
|
|
@@ -36,16 +36,16 @@
|
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"@hopper-ui/styled-system": "^2.1.0",
|
|
38
38
|
"react": "^18",
|
|
39
|
-
"react-aria": "^3.
|
|
40
|
-
"react-aria-components": "^1.
|
|
39
|
+
"react-aria": "^3.34",
|
|
40
|
+
"react-aria-components": "^1.3.0",
|
|
41
41
|
"react-dom": "^18"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@react-aria/utils": "^3.
|
|
45
|
-
"@react-stately/utils": "^3.10.
|
|
46
|
-
"@react-types/shared": "^3.
|
|
44
|
+
"@react-aria/utils": "^3.25.2",
|
|
45
|
+
"@react-stately/utils": "^3.10.3",
|
|
46
|
+
"@react-types/shared": "^3.24.1",
|
|
47
47
|
"clsx": "^2.1.1",
|
|
48
|
-
"@hopper-ui/icons": "2.
|
|
48
|
+
"@hopper-ui/icons": "2.8.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@swc/core": "1.5.25",
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { RefObject } from 'react';
|
|
2
|
-
|
|
3
|
-
interface LoadOnScrollProps {
|
|
4
|
-
/** Whether data is currently being loaded. */
|
|
5
|
-
isLoading?: boolean;
|
|
6
|
-
/** Handler that is called when more items should be loaded, e.g. while scrolling near the bottom. */
|
|
7
|
-
onLoadMore?: () => void;
|
|
8
|
-
/**
|
|
9
|
-
* The amount of offset (in pixels) from the bottom of your scrollable region that should trigger load more.
|
|
10
|
-
* @default 5
|
|
11
|
-
*/
|
|
12
|
-
scrollOffset?: number;
|
|
13
|
-
}
|
|
14
|
-
declare function useLoadOnScroll(props: LoadOnScrollProps, ref: RefObject<HTMLElement | null>): () => void;
|
|
15
|
-
|
|
16
|
-
export { type LoadOnScrollProps, useLoadOnScroll };
|
package/dist/chunk-JTNMFPM4.js
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { useIsomorphicLayoutEffect } from '@hopper-ui/styled-system';
|
|
2
|
-
import { useState, useRef, useCallback } from 'react';
|
|
3
|
-
|
|
4
|
-
// src/ListBox/src/useLoadOnScroll.ts
|
|
5
|
-
function useLoadOnScroll(props, ref) {
|
|
6
|
-
const { isLoading, onLoadMore, scrollOffset = 5 } = props;
|
|
7
|
-
const [hasLoaded, setHasLoaded] = useState(false);
|
|
8
|
-
const isLoadingRef = useRef(isLoading);
|
|
9
|
-
const prevProps = useRef(props);
|
|
10
|
-
const onScroll = useCallback(() => {
|
|
11
|
-
if (ref.current && !isLoadingRef.current && onLoadMore) {
|
|
12
|
-
const shouldLoadMore = ref.current.scrollHeight - ref.current.scrollTop - ref.current.clientHeight < scrollOffset;
|
|
13
|
-
if (shouldLoadMore) {
|
|
14
|
-
isLoadingRef.current = true;
|
|
15
|
-
onLoadMore();
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
}, [onLoadMore, ref, scrollOffset]);
|
|
19
|
-
const lastContentSize = useRef(0);
|
|
20
|
-
useIsomorphicLayoutEffect(() => {
|
|
21
|
-
var _a;
|
|
22
|
-
const wasLoading = isLoadingRef.current;
|
|
23
|
-
if (props !== prevProps.current) {
|
|
24
|
-
isLoadingRef.current = isLoading;
|
|
25
|
-
prevProps.current = props;
|
|
26
|
-
}
|
|
27
|
-
const shouldLoadMore = !hasLoaded && (ref == null ? void 0 : ref.current) && !isLoadingRef.current && onLoadMore && ref.current.clientHeight === ref.current.scrollHeight && (wasLoading || ref.current.scrollHeight !== lastContentSize.current);
|
|
28
|
-
if (shouldLoadMore) {
|
|
29
|
-
isLoadingRef.current = true;
|
|
30
|
-
onLoadMore == null ? void 0 : onLoadMore();
|
|
31
|
-
setHasLoaded(true);
|
|
32
|
-
}
|
|
33
|
-
lastContentSize.current = ((_a = ref.current) == null ? void 0 : _a.scrollHeight) || 0;
|
|
34
|
-
return () => {
|
|
35
|
-
setHasLoaded(false);
|
|
36
|
-
};
|
|
37
|
-
}, [isLoading, onLoadMore, props, ref]);
|
|
38
|
-
return onScroll;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export { useLoadOnScroll };
|