@hopper-ui/components 1.4.10 → 1.4.12
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 +12 -0
- package/README.md +2 -2
- package/dist/Accordion/src/Accordion.css +68 -68
- package/dist/Accordion/src/Accordion.js +3 -3
- package/dist/Accordion/src/index.css +68 -68
- package/dist/Accordion/src/index.js +3 -3
- package/dist/Avatar/src/AnonymousAvatar.css +38 -38
- package/dist/Avatar/src/AnonymousAvatar.js +4 -4
- package/dist/Avatar/src/Avatar.css +56 -56
- package/dist/Avatar/src/Avatar.js +6 -6
- package/dist/Avatar/src/DeletedAvatar.css +38 -38
- package/dist/Avatar/src/DeletedAvatar.js +4 -4
- package/dist/Avatar/src/RichIconAvatarImage.css +38 -38
- package/dist/Avatar/src/RichIconAvatarImage.js +2 -2
- package/dist/Avatar/src/index.css +56 -56
- package/dist/Avatar/src/index.js +8 -8
- package/dist/Badge/src/Badge.css +43 -43
- package/dist/Badge/src/Badge.js +4 -4
- package/dist/Badge/src/FloatingBadge.css +38 -38
- package/dist/Badge/src/FloatingBadge.js +4 -4
- package/dist/Badge/src/index.css +53 -53
- package/dist/Badge/src/index.js +6 -6
- package/dist/Callout/src/Callout.css +262 -262
- package/dist/Callout/src/Callout.js +12 -12
- package/dist/Callout/src/CompactCallout.css +293 -293
- package/dist/Callout/src/CompactCallout.js +14 -14
- package/dist/Callout/src/index.css +304 -304
- package/dist/Callout/src/index.js +15 -15
- package/dist/Card/src/Card.css +31 -31
- package/dist/Card/src/Card.js +1 -1
- package/dist/Card/src/index.css +31 -31
- package/dist/Card/src/index.js +1 -1
- package/dist/ComboBox/src/ComboBox.css +632 -632
- package/dist/ComboBox/src/ComboBox.js +24 -24
- package/dist/ComboBox/src/index.css +632 -632
- package/dist/ComboBox/src/index.js +24 -24
- package/dist/Disclosure/src/Disclosure.css +38 -38
- package/dist/Disclosure/src/Disclosure.js +3 -3
- package/dist/Disclosure/src/DisclosureHeader.css +45 -45
- package/dist/Disclosure/src/DisclosureHeader.js +11 -11
- package/dist/Disclosure/src/DisclosurePanel.css +38 -38
- package/dist/Disclosure/src/DisclosurePanel.js +11 -11
- package/dist/Disclosure/src/index.css +63 -63
- package/dist/Disclosure/src/index.js +15 -15
- package/dist/Divider/src/Divider.css +30 -30
- package/dist/Divider/src/Divider.js +1 -1
- package/dist/Divider/src/index.css +30 -30
- package/dist/Divider/src/index.js +1 -1
- package/dist/ErrorMessage/src/ErrorMessage.css +30 -30
- package/dist/ErrorMessage/src/ErrorMessage.js +3 -3
- package/dist/ErrorMessage/src/index.css +30 -30
- package/dist/ErrorMessage/src/index.js +3 -3
- package/dist/Form/src/Form.css +28 -28
- package/dist/Form/src/Form.js +1 -1
- package/dist/Form/src/index.css +28 -28
- package/dist/Form/src/index.js +1 -1
- package/dist/HelperMessage/src/HelperMessage.css +30 -30
- package/dist/HelperMessage/src/HelperMessage.js +3 -3
- package/dist/HelperMessage/src/index.css +30 -30
- package/dist/HelperMessage/src/index.js +3 -3
- package/dist/HopperProvider/src/HopperProvider.d.ts +19 -2
- package/dist/HopperProvider/src/HopperProvider.js +1 -1
- package/dist/HopperProvider/src/index.d.ts +2 -2
- package/dist/HopperProvider/src/index.js +1 -1
- package/dist/IconList/src/IconList.css +29 -29
- package/dist/IconList/src/IconList.js +1 -1
- package/dist/IconList/src/index.css +29 -29
- package/dist/IconList/src/index.js +1 -1
- package/dist/IllustratedMessage/src/IllustratedMessage.css +270 -270
- package/dist/IllustratedMessage/src/IllustratedMessage.js +1 -1
- package/dist/IllustratedMessage/src/index.css +270 -270
- package/dist/IllustratedMessage/src/index.js +1 -1
- package/dist/Image/src/Image.css +31 -31
- package/dist/Image/src/Image.js +1 -1
- package/dist/Image/src/SvgImage.css +29 -29
- package/dist/Image/src/SvgImage.js +1 -1
- package/dist/Image/src/index.css +32 -32
- package/dist/Image/src/index.js +2 -2
- package/dist/Link/src/Link.css +59 -59
- package/dist/Link/src/Link.js +9 -9
- package/dist/Link/src/index.css +59 -59
- package/dist/Link/src/index.js +9 -9
- package/dist/ListBox/src/ListBox.css +275 -275
- package/dist/ListBox/src/ListBox.js +15 -15
- package/dist/ListBox/src/ListBoxItem.css +263 -263
- package/dist/ListBox/src/ListBoxItem.js +14 -14
- package/dist/ListBox/src/ListBoxItemSkeleton.css +35 -35
- package/dist/ListBox/src/ListBoxItemSkeleton.js +1 -1
- package/dist/ListBox/src/index.css +275 -275
- package/dist/ListBox/src/index.js +15 -15
- package/dist/Modal/src/BaseModal.css +43 -43
- package/dist/Modal/src/BaseModal.js +2 -2
- package/dist/Modal/src/CustomModal.css +44 -44
- package/dist/Modal/src/CustomModal.js +3 -3
- package/dist/Modal/src/Modal.css +290 -290
- package/dist/Modal/src/Modal.js +17 -17
- package/dist/Modal/src/index.css +291 -291
- package/dist/Modal/src/index.js +18 -18
- package/dist/SegmentedControl/src/SegmentedControl.css +29 -29
- package/dist/SegmentedControl/src/SegmentedControl.js +1 -1
- package/dist/SegmentedControl/src/SegmentedControlItem.css +43 -43
- package/dist/SegmentedControl/src/SegmentedControlItem.js +8 -8
- package/dist/SegmentedControl/src/index.css +44 -44
- package/dist/SegmentedControl/src/index.js +9 -9
- package/dist/Select/src/Select.css +576 -576
- package/dist/Select/src/Select.js +22 -22
- package/dist/Select/src/SelectValue.css +62 -62
- package/dist/Select/src/SelectValue.js +9 -9
- package/dist/Select/src/index.css +576 -576
- package/dist/Select/src/index.js +22 -22
- package/dist/Spinner/src/Spinner.css +38 -38
- package/dist/Spinner/src/Spinner.js +3 -3
- package/dist/Spinner/src/index.css +38 -38
- package/dist/Spinner/src/index.js +3 -3
- package/dist/Tile/src/Tile.css +37 -37
- package/dist/Tile/src/Tile.js +8 -8
- package/dist/Tile/src/TileGroup.css +29 -29
- package/dist/Tile/src/TileGroup.js +1 -1
- package/dist/Tile/src/index.css +38 -38
- package/dist/Tile/src/index.js +9 -9
- package/dist/ToggleArrow/src/ToggleArrow.css +30 -30
- package/dist/ToggleArrow/src/ToggleArrow.js +1 -1
- package/dist/ToggleArrow/src/index.css +30 -30
- package/dist/ToggleArrow/src/index.js +1 -1
- package/dist/buttons/src/Button.css +94 -94
- package/dist/buttons/src/Button.js +10 -10
- package/dist/buttons/src/ButtonGroup.css +39 -39
- package/dist/buttons/src/ButtonGroup.js +1 -1
- package/dist/buttons/src/ClearButton.css +99 -99
- package/dist/buttons/src/ClearButton.js +2 -2
- package/dist/buttons/src/CloseButton.css +95 -95
- package/dist/buttons/src/CloseButton.js +11 -11
- package/dist/buttons/src/EmbeddedButton.css +99 -99
- package/dist/buttons/src/EmbeddedButton.js +1 -1
- package/dist/buttons/src/LinkButton.css +103 -103
- package/dist/buttons/src/LinkButton.js +10 -10
- package/dist/buttons/src/index.css +251 -251
- package/dist/buttons/src/index.js +17 -17
- package/dist/checkbox/src/Checkbox.css +47 -47
- package/dist/checkbox/src/Checkbox.js +9 -9
- package/dist/checkbox/src/CheckboxField.css +34 -34
- package/dist/checkbox/src/CheckboxField.js +4 -4
- package/dist/checkbox/src/CheckboxGroup.css +99 -99
- package/dist/checkbox/src/CheckboxGroup.js +7 -7
- package/dist/checkbox/src/DecorativeCheckbox.css +55 -55
- package/dist/checkbox/src/DecorativeCheckbox.js +9 -9
- package/dist/checkbox/src/index.css +99 -99
- package/dist/checkbox/src/index.js +14 -14
- package/dist/{chunk-GTCXBX4V.js → chunk-32D3FJMM.js} +7 -7
- package/dist/{chunk-T3WRJK3V.js → chunk-3MC425VU.js} +9 -9
- package/dist/{chunk-PLPALRH6.js → chunk-3N2QWRKE.js} +14 -14
- package/dist/{chunk-AWXL6NRM.js → chunk-4AQGIVW5.js} +2 -2
- package/dist/{chunk-P4ZMZ54Q.js → chunk-4CUD5Z4N.js} +1 -1
- package/dist/{chunk-G52FWGYE.js → chunk-4DFTU64I.js} +4 -4
- package/dist/{chunk-PSM3JOML.js → chunk-5P2MPWIV.js} +2 -2
- package/dist/{chunk-YHFZVPBU.js → chunk-5TVQ5F6N.js} +3 -3
- package/dist/{chunk-WDSDGZYH.js → chunk-66FTID3Q.js} +5 -5
- package/dist/{chunk-RAWGWYOF.js → chunk-74YWITDM.js} +2 -2
- package/dist/{chunk-5TJHLTQ6.js → chunk-77E4FM6W.js} +1 -1
- package/dist/{chunk-CDFCAPSB.js → chunk-7JSUDCVX.js} +4 -4
- package/dist/{chunk-NB2FBBIE.js → chunk-7KUR6YOB.js} +3 -3
- package/dist/{chunk-UAZKXXEX.js → chunk-7OENJXSV.js} +1 -1
- package/dist/{chunk-B47MWYFI.js → chunk-A3JEMKIP.js} +4 -4
- package/dist/{chunk-M7VXXZLC.js → chunk-AZA6SSSV.js} +2 -2
- package/dist/{chunk-5JF7EUKN.js → chunk-B6WL2FNU.js} +5 -5
- package/dist/{chunk-REKY4BJM.js → chunk-CRSNDOH5.js} +1 -1
- package/dist/{chunk-QLI42RZN.js → chunk-DBIOAF7Z.js} +2 -2
- package/dist/{chunk-XJ3VC7WV.js → chunk-DFPHOLFA.js} +3 -3
- package/dist/{chunk-GBV5HCMX.js → chunk-DMRZHMKX.js} +5 -5
- package/dist/{chunk-NMKBUGSO.js → chunk-DVVK2IWW.js} +23 -4
- package/dist/{chunk-L5OLND54.js → chunk-DZFW22OT.js} +2 -2
- package/dist/{chunk-EUVOO6AN.js → chunk-E74DRWIJ.js} +5 -5
- package/dist/{chunk-MA6J3BKQ.js → chunk-E776DPQT.js} +1 -1
- package/dist/{chunk-S7RI5RQO.js → chunk-EFDSC6S4.js} +1 -1
- package/dist/{chunk-SMSHSMED.js → chunk-EMCQWDWQ.js} +1 -1
- package/dist/{chunk-4474CZXU.js → chunk-FHAXAT2H.js} +8 -8
- package/dist/{chunk-GNEWMHV7.js → chunk-FMMXILW4.js} +4 -4
- package/dist/{chunk-VFJTSO5R.js → chunk-FNVLRU3K.js} +4 -4
- package/dist/{chunk-YP5OBIRV.js → chunk-FO6ZOBAQ.js} +1 -1
- package/dist/{chunk-HNWPRKJS.js → chunk-GACETSMF.js} +2 -2
- package/dist/{chunk-DE66YUPA.js → chunk-GKAWWPNQ.js} +4 -4
- package/dist/{chunk-V5AZC3EI.js → chunk-GZJX23ZE.js} +1 -1
- package/dist/{chunk-R5L7SK34.js → chunk-HBKQPCYU.js} +1 -1
- package/dist/{chunk-FJWEWI6U.js → chunk-HGJ2NRZU.js} +1 -1
- package/dist/{chunk-WPEOD36Y.js → chunk-HQV3FPNZ.js} +6 -6
- package/dist/{chunk-TJDT2TJG.js → chunk-I3TCA6QA.js} +1 -1
- package/dist/{chunk-GPQWIEKH.js → chunk-IAZ4WGX4.js} +9 -9
- package/dist/{chunk-EEBGOP3G.js → chunk-ITRR4F5G.js} +1 -1
- package/dist/{chunk-THWHGUB6.js → chunk-IZZGYOYD.js} +1 -1
- package/dist/{chunk-I7FKLVMO.js → chunk-JOKUQCNO.js} +9 -9
- package/dist/{chunk-3ZSXVHWK.js → chunk-K6ZPJSNZ.js} +1 -1
- package/dist/{chunk-EU5SU3GO.js → chunk-KB2LVNFQ.js} +2 -2
- package/dist/{chunk-Z5FJSEQP.js → chunk-KFTGGBF2.js} +9 -9
- package/dist/{chunk-ERCGNLSF.js → chunk-KTWOFCUO.js} +6 -6
- package/dist/{chunk-K3O2JWWU.js → chunk-KW6STO3X.js} +3 -3
- package/dist/{chunk-K3YSAZUD.js → chunk-L2WNBH5A.js} +1 -1
- package/dist/{chunk-IQCSFR6R.js → chunk-LLFAKYOY.js} +2 -2
- package/dist/{chunk-HYVZXVN6.js → chunk-MPOCBRLG.js} +3 -3
- package/dist/{chunk-2B6UJXL6.js → chunk-NEY6GQXA.js} +13 -13
- package/dist/{chunk-A6YPAPMB.js → chunk-NLWQD76H.js} +4 -4
- package/dist/{chunk-5GJRY5OC.js → chunk-O7MK7LUV.js} +4 -4
- package/dist/{chunk-JQHTQISK.js → chunk-OHMQIK55.js} +2 -2
- package/dist/{chunk-7KRTACMF.js → chunk-QI5TLIXP.js} +2 -2
- package/dist/{chunk-TN2S45IN.js → chunk-QQG55TXU.js} +1 -1
- package/dist/{chunk-ATO2OHLR.js → chunk-R3RD23KP.js} +4 -4
- package/dist/{chunk-3G33VYB7.js → chunk-SWWLTUOO.js} +2 -2
- package/dist/{chunk-JLYHWRJV.js → chunk-TDPQX5UK.js} +1 -1
- package/dist/{chunk-JRWAJ3QT.js → chunk-UD2DCC7K.js} +3 -3
- package/dist/{chunk-DMFMZLME.js → chunk-ULPBO5OL.js} +2 -2
- package/dist/{chunk-NHM5FY74.js → chunk-VIMP4YZP.js} +4 -4
- package/dist/{chunk-A3SYNZKP.js → chunk-VLW6W2HN.js} +3 -3
- package/dist/{chunk-P6WDC6ZS.js → chunk-VSDE5S36.js} +11 -11
- package/dist/{chunk-ANIQSFMU.js → chunk-W573EI6H.js} +1 -1
- package/dist/{chunk-FXFWNXEG.js → chunk-WAU7DOS4.js} +3 -3
- package/dist/{chunk-5JOBLX2X.js → chunk-XCGLXG6T.js} +4 -4
- package/dist/{chunk-UQZ4HW3G.js → chunk-Y7W3KBYN.js} +2 -2
- package/dist/{chunk-FIZFXOX5.js → chunk-YF2Y7BWX.js} +2 -2
- package/dist/{chunk-TLDLLMGL.js → chunk-YZWGTNUA.js} +3 -3
- package/dist/index.css +906 -906
- package/dist/index.d.ts +8 -6
- package/dist/index.js +90 -90
- package/dist/inputs/src/Input.css +32 -32
- package/dist/inputs/src/Input.js +1 -1
- package/dist/inputs/src/InputGroup.css +34 -34
- package/dist/inputs/src/InputGroup.js +1 -1
- package/dist/inputs/src/NumberField.css +58 -58
- package/dist/inputs/src/NumberField.js +13 -13
- package/dist/inputs/src/PasswordField.css +271 -271
- package/dist/inputs/src/PasswordField.js +13 -13
- package/dist/inputs/src/RemainingCharacterCount.css +31 -31
- package/dist/inputs/src/RemainingCharacterCount.js +8 -8
- package/dist/inputs/src/SearchField.css +277 -277
- package/dist/inputs/src/SearchField.js +14 -14
- package/dist/inputs/src/TextArea.css +55 -55
- package/dist/inputs/src/TextArea.js +12 -12
- package/dist/inputs/src/TextField.css +275 -275
- package/dist/inputs/src/TextField.js +16 -16
- package/dist/inputs/src/index.css +323 -323
- package/dist/inputs/src/index.js +20 -20
- package/dist/overlays/Popover/src/Popover.css +552 -552
- package/dist/overlays/Popover/src/Popover.js +9 -9
- package/dist/overlays/Popover/src/index.css +552 -552
- package/dist/overlays/Popover/src/index.js +9 -9
- package/dist/radio/src/DecorativeRadio.css +55 -55
- package/dist/radio/src/DecorativeRadio.js +9 -9
- package/dist/radio/src/Radio.css +47 -47
- package/dist/radio/src/Radio.js +9 -9
- package/dist/radio/src/RadioField.css +34 -34
- package/dist/radio/src/RadioField.js +3 -3
- package/dist/radio/src/RadioGroup.css +99 -99
- package/dist/radio/src/RadioGroup.js +7 -7
- package/dist/radio/src/index.css +99 -99
- package/dist/radio/src/index.js +14 -14
- package/dist/switch/src/Switch.css +44 -44
- package/dist/switch/src/Switch.js +9 -9
- package/dist/switch/src/SwitchField.css +34 -34
- package/dist/switch/src/SwitchField.js +4 -4
- package/dist/switch/src/index.css +50 -50
- package/dist/switch/src/index.js +11 -11
- package/dist/tag/src/Tag.css +392 -392
- package/dist/tag/src/Tag.js +14 -14
- package/dist/tag/src/TagGroup.css +38 -38
- package/dist/tag/src/TagGroup.js +8 -8
- package/dist/tag/src/index.css +402 -402
- package/dist/tag/src/index.js +19 -19
- package/dist/typography/Heading/src/Heading.css +28 -28
- package/dist/typography/Heading/src/Heading.js +1 -1
- package/dist/typography/Heading/src/index.css +28 -28
- package/dist/typography/Heading/src/index.js +1 -1
- package/dist/typography/Label/src/Label.css +28 -28
- package/dist/typography/Label/src/Label.js +2 -2
- package/dist/typography/Label/src/index.css +28 -28
- package/dist/typography/Label/src/index.js +2 -2
- package/dist/typography/OverlineText/src/OverlineText.css +28 -28
- package/dist/typography/OverlineText/src/OverlineText.js +1 -1
- package/dist/typography/OverlineText/src/index.css +28 -28
- package/dist/typography/OverlineText/src/index.js +1 -1
- package/dist/typography/Text/src/Text.css +28 -28
- package/dist/typography/Text/src/Text.js +2 -2
- package/dist/typography/Text/src/index.css +28 -28
- package/dist/typography/Text/src/index.js +2 -2
- package/dist/utils/src/EnsureTextWrapper.css +28 -28
- package/dist/utils/src/EnsureTextWrapper.js +8 -8
- package/dist/utils/src/index.css +28 -28
- package/dist/utils/src/index.js +9 -9
- package/package.json +3 -3
|
@@ -1,11 +1,30 @@
|
|
|
1
1
|
import { StyledSystemProvider } from '@hopper-ui/styled-system';
|
|
2
2
|
import clsx from 'clsx';
|
|
3
|
-
import { forwardRef } from 'react';
|
|
3
|
+
import { createContext, forwardRef, useContext } from 'react';
|
|
4
4
|
import { I18nProvider, RouterProvider } from 'react-aria-components';
|
|
5
5
|
import { jsx } from 'react/jsx-runtime';
|
|
6
6
|
|
|
7
7
|
// src/HopperProvider/src/HopperProvider.tsx
|
|
8
8
|
var GlobalHopperProviderCssSelector = "hop-HopperProvider";
|
|
9
|
+
var HopperContext = createContext(null);
|
|
10
|
+
function useHopperContext() {
|
|
11
|
+
const context = useContext(HopperContext);
|
|
12
|
+
if (context === null) {
|
|
13
|
+
throw new Error("useHopperContext must be used within a HopperProvider");
|
|
14
|
+
}
|
|
15
|
+
return context;
|
|
16
|
+
}
|
|
17
|
+
function useForwardedHopperContext() {
|
|
18
|
+
const context = useContext(HopperContext);
|
|
19
|
+
return {
|
|
20
|
+
locale: context == null ? void 0 : context.locale,
|
|
21
|
+
colorScheme: context == null ? void 0 : context.colorScheme,
|
|
22
|
+
navigate: context == null ? void 0 : context.navigate,
|
|
23
|
+
useHref: context == null ? void 0 : context.useHref,
|
|
24
|
+
withCssVariables: false
|
|
25
|
+
// we never need to re-add css variables in a nested provider
|
|
26
|
+
};
|
|
27
|
+
}
|
|
9
28
|
var HopperProvider = (props, ref) => {
|
|
10
29
|
const {
|
|
11
30
|
children,
|
|
@@ -26,7 +45,7 @@ var HopperProvider = (props, ref) => {
|
|
|
26
45
|
if (navigate) {
|
|
27
46
|
content = /* @__PURE__ */ jsx(RouterProvider, { navigate, useHref, children });
|
|
28
47
|
}
|
|
29
|
-
return /* @__PURE__ */ jsx(
|
|
48
|
+
return /* @__PURE__ */ jsx(HopperContext.Provider, { value: props, children: /* @__PURE__ */ jsx(
|
|
30
49
|
StyledSystemProvider,
|
|
31
50
|
{
|
|
32
51
|
ref,
|
|
@@ -37,9 +56,9 @@ var HopperProvider = (props, ref) => {
|
|
|
37
56
|
...rest,
|
|
38
57
|
children: /* @__PURE__ */ jsx(I18nProvider, { locale, children: content })
|
|
39
58
|
}
|
|
40
|
-
);
|
|
59
|
+
) });
|
|
41
60
|
};
|
|
42
61
|
var _HopperProvider = forwardRef(HopperProvider);
|
|
43
62
|
_HopperProvider.displayName = "HopperProvider";
|
|
44
63
|
|
|
45
|
-
export { GlobalHopperProviderCssSelector, _HopperProvider };
|
|
64
|
+
export { GlobalHopperProviderCssSelector, HopperContext, _HopperProvider, useForwardedHopperContext, useHopperContext };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _Button } from './chunk-
|
|
1
|
+
import { _Button } from './chunk-FMMXILW4.js';
|
|
2
2
|
import { CloseButtonContext } from './chunk-RBWFFWIG.js';
|
|
3
3
|
import { useLocalizedString } from './chunk-75DHKNW2.js';
|
|
4
4
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
@@ -10,7 +10,7 @@ import { useContextProps } from 'react-aria-components';
|
|
|
10
10
|
import { jsx } from 'react/jsx-runtime';
|
|
11
11
|
|
|
12
12
|
// css-module:./CloseButton.module.css#css-module
|
|
13
|
-
var CloseButton_module_default = { "hop-CloseButton": "CloseButton-module__hop-
|
|
13
|
+
var CloseButton_module_default = { "hop-CloseButton": "CloseButton-module__hop-CloseButton___vXkdj" };
|
|
14
14
|
var GlobalCloseButtonCssSelector = "hop-CloseButton";
|
|
15
15
|
function CloseButton(props, ref) {
|
|
16
16
|
[props, ref] = useContextProps(props, ref, CloseButtonContext);
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { BaseModalContext } from './chunk-FLU4UPP6.js';
|
|
2
|
-
import { _HopperProvider } from './chunk-
|
|
2
|
+
import { useForwardedHopperContext, _HopperProvider } from './chunk-DVVK2IWW.js';
|
|
3
3
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
4
|
-
import { useStyledSystem,
|
|
4
|
+
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
5
5
|
import clsx from 'clsx';
|
|
6
6
|
import { forwardRef } from 'react';
|
|
7
7
|
import { useContextProps, ModalOverlay, Modal } from 'react-aria-components';
|
|
8
8
|
import { jsx } from 'react/jsx-runtime';
|
|
9
9
|
|
|
10
10
|
// css-module:./BaseModal.module.css#css-module
|
|
11
|
-
var BaseModal_module_default = { "hop-BaseModal": "BaseModal-module__hop-
|
|
11
|
+
var BaseModal_module_default = { "hop-BaseModal": "BaseModal-module__hop-BaseModal___nGdhM", "hop-BaseModal__modal": "BaseModal-module__hop-BaseModal__modal___mGwtA", "hop-BaseModal--image": "BaseModal-module__hop-BaseModal--image___AJ6WB", "hop-BaseModal--entering": "BaseModal-module__hop-BaseModal--entering___PHXQ5", "hop-BaseModal--exiting": "BaseModal-module__hop-BaseModal--exiting___hASTi", "hop-BaseModal--sm": "BaseModal-module__hop-BaseModal--sm___vkP4q", "hop-BaseModal--md": "BaseModal-module__hop-BaseModal--md___-3UP7", "hop-BaseModal--lg": "BaseModal-module__hop-BaseModal--lg___O9MSu", "hop-BaseModal--xl": "BaseModal-module__hop-BaseModal--xl___Sd9XX", "hop-BaseModal--fullscreen": "BaseModal-module__hop-BaseModal--fullscreen___ToNbW", "hop-BaseModal--fullscreentakeover": "BaseModal-module__hop-BaseModal--fullscreentakeover___5KhSQ" };
|
|
12
12
|
var GlobalBaseModalCssSelector = "hop-BaseModal";
|
|
13
13
|
var BaseModal = (props, ref) => {
|
|
14
14
|
var _a;
|
|
@@ -23,8 +23,8 @@ var BaseModal = (props, ref) => {
|
|
|
23
23
|
hasImage,
|
|
24
24
|
...otherProps
|
|
25
25
|
} = ownProps;
|
|
26
|
-
const { colorScheme } = useColorSchemeContext();
|
|
27
26
|
const size = (_a = useResponsiveValue(sizeProp)) != null ? _a : "md";
|
|
27
|
+
const prevContextProps = useForwardedHopperContext();
|
|
28
28
|
const classNames = (renderProps) => clsx(
|
|
29
29
|
GlobalBaseModalCssSelector,
|
|
30
30
|
cssModule(
|
|
@@ -49,7 +49,7 @@ var BaseModal = (props, ref) => {
|
|
|
49
49
|
style: mergedStyles,
|
|
50
50
|
slot,
|
|
51
51
|
...otherProps,
|
|
52
|
-
children: /* @__PURE__ */ jsx(_HopperProvider, {
|
|
52
|
+
children: /* @__PURE__ */ jsx(_HopperProvider, { ...prevContextProps, children: /* @__PURE__ */ jsx(Modal, { ...otherProps, ref, className: BaseModal_module_default["hop-BaseModal__modal"], children }) })
|
|
53
53
|
}
|
|
54
54
|
);
|
|
55
55
|
};
|
|
@@ -7,7 +7,7 @@ import { useContextProps, Text } from 'react-aria-components';
|
|
|
7
7
|
import { jsx } from 'react/jsx-runtime';
|
|
8
8
|
|
|
9
9
|
// css-module:./OverlineText.module.css#css-module
|
|
10
|
-
var OverlineText_module_default = { "hop-OverlineText": "OverlineText-module__hop-
|
|
10
|
+
var OverlineText_module_default = { "hop-OverlineText": "OverlineText-module__hop-OverlineText___MyaTu", "hop-OverlineText__text": "OverlineText-module__hop-OverlineText__text___nFJUJ" };
|
|
11
11
|
var GlobalOverlineTextCssSelector = "hop-OverlineText";
|
|
12
12
|
function OverlineText(props, ref) {
|
|
13
13
|
[props, ref] = useContextProps(props, ref, OverlineTextContext);
|
|
@@ -8,7 +8,7 @@ import { useContextProps } from 'react-aria-components';
|
|
|
8
8
|
import { jsx } from 'react/jsx-runtime';
|
|
9
9
|
|
|
10
10
|
// css-module:./ToggleArrow.module.css#css-module
|
|
11
|
-
var ToggleArrow_module_default = { "hop-ToggleArrow": "ToggleArrow-module__hop-
|
|
11
|
+
var ToggleArrow_module_default = { "hop-ToggleArrow": "ToggleArrow-module__hop-ToggleArrow___AXIoI" };
|
|
12
12
|
var GlobalToggleArrowCssSelector = "hop-ToggleArrow";
|
|
13
13
|
function ToggleArrow(props, ref) {
|
|
14
14
|
[props, ref] = useContextProps(props, ref, ToggleArrowContext);
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { useFontFaceReady } from './chunk-IU6XMS2X.js';
|
|
2
2
|
import { TextAreaContext } from './chunk-MHQZXLKW.js';
|
|
3
3
|
import { useTruncatedText } from './chunk-Z57VHYOF.js';
|
|
4
|
-
import { _RemainingCharacterCount } from './chunk-
|
|
5
|
-
import { _InputGroup } from './chunk-
|
|
6
|
-
import { _HelperMessage } from './chunk-
|
|
7
|
-
import { _ErrorMessage } from './chunk-
|
|
8
|
-
import { _Label } from './chunk-
|
|
9
|
-
import { useFormProps } from './chunk-
|
|
10
|
-
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
4
|
+
import { _RemainingCharacterCount } from './chunk-DBIOAF7Z.js';
|
|
5
|
+
import { _InputGroup } from './chunk-4CUD5Z4N.js';
|
|
6
|
+
import { _HelperMessage } from './chunk-74YWITDM.js';
|
|
7
|
+
import { _ErrorMessage } from './chunk-SWWLTUOO.js';
|
|
8
|
+
import { _Label } from './chunk-GACETSMF.js';
|
|
9
|
+
import { useFormProps } from './chunk-I3TCA6QA.js';
|
|
11
10
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
11
|
+
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
12
12
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
13
13
|
import { useStyledSystem, useResponsiveValue, useIsomorphicLayoutEffect } from '@hopper-ui/styled-system';
|
|
14
14
|
import $670gB$react, { forwardRef, useContext, useState, useCallback, useRef, useMemo } from 'react';
|
|
@@ -79,7 +79,7 @@ function $b5e257d569688ac6$export$535bd6ca7f90a273() {
|
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
// css-module:./TextArea.module.css#css-module
|
|
82
|
-
var TextArea_module_default = { "hop-TextArea": "TextArea-module__hop-
|
|
82
|
+
var TextArea_module_default = { "hop-TextArea": "TextArea-module__hop-TextArea___sgC5M", "hop-TextArea--fluid": "TextArea-module__hop-TextArea--fluid___b1gzQ", "hop-TextArea__Label": "TextArea-module__hop-TextArea__Label___5fQ0B", "hop-TextArea__prefix": "TextArea-module__hop-TextArea__prefix___gN2gZ", "hop-TextArea__RemainingCharacterCount": "TextArea-module__hop-TextArea__RemainingCharacterCount___29CO6", "hop-TextArea__InputGroup": "TextArea-module__hop-TextArea__InputGroup___-K1Yz", "hop-TextArea__ErrorMessage": "TextArea-module__hop-TextArea__ErrorMessage___8Qb5d", "hop-TextArea__HelperMessage": "TextArea-module__hop-TextArea__HelperMessage___-RSqR", "hop-TextArea__textarea": "TextArea-module__hop-TextArea__textarea___7meDw", "hop-TextArea__textarea--with-character-count": "TextArea-module__hop-TextArea__textarea--with-character-count___nuHvt", "hop-TextArea__textarea--sm": "TextArea-module__hop-TextArea__textarea--sm___xtc8u" };
|
|
83
83
|
var GlobalTextAreaCssSelector = "hop-TextArea";
|
|
84
84
|
var DefaultMinimumTextAreaRows = 3;
|
|
85
85
|
var pxToInt = (value) => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { useSlot } from './chunk-H5YTU3U7.js';
|
|
2
|
-
import { _Spinner } from './chunk-
|
|
2
|
+
import { _Spinner } from './chunk-QI5TLIXP.js';
|
|
3
3
|
import { IconListContext } from './chunk-DHVVYSLB.js';
|
|
4
4
|
import { ButtonContext } from './chunk-WMTWFKKP.js';
|
|
5
|
-
import { ensureTextWrapper } from './chunk-
|
|
5
|
+
import { ensureTextWrapper } from './chunk-EMCQWDWQ.js';
|
|
6
6
|
import { useLocalizedString } from './chunk-75DHKNW2.js';
|
|
7
|
-
import { useFormProps } from './chunk-
|
|
7
|
+
import { useFormProps } from './chunk-I3TCA6QA.js';
|
|
8
8
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
9
9
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
10
10
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
@@ -17,7 +17,7 @@ import { useContextProps, composeRenderProps, DEFAULT_SLOT, Button as Button$1 }
|
|
|
17
17
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
18
18
|
|
|
19
19
|
// css-module:./Button.module.css#css-module
|
|
20
|
-
var Button_module_default = { "hop-Button": "Button-module__hop-
|
|
20
|
+
var Button_module_default = { "hop-Button": "Button-module__hop-Button___8hj4n", "hop-Button--fluid": "Button-module__hop-Button--fluid___EyMfR", "hop-Button--sm": "Button-module__hop-Button--sm___wPpoi", "hop-Button--md": "Button-module__hop-Button--md___U2duX", "hop-Button--icon-only": "Button-module__hop-Button--icon-only___YCE2R", "hop-Button--primary": "Button-module__hop-Button--primary___iWJ-5", "hop-Button--secondary": "Button-module__hop-Button--secondary___DfPfI", "hop-Button--upsell": "Button-module__hop-Button--upsell___dyCxC", "hop-Button--danger": "Button-module__hop-Button--danger___5b82D", "hop-Button--ghost-primary": "Button-module__hop-Button--ghost-primary___jEXVT", "hop-Button--ghost-secondary": "Button-module__hop-Button--ghost-secondary___sNSEV", "hop-Button--ghost-danger": "Button-module__hop-Button--ghost-danger___pddWx", "hop-Button__Spinner": "Button-module__hop-Button__Spinner___jF4Q6", "hop-Button__icon": "Button-module__hop-Button__icon___8EXxw", "hop-Button__icon-list": "Button-module__hop-Button__icon-list___P-2Ml", "hop-Button__text": "Button-module__hop-Button__text___0GyaQ", "hop-Button__end-icon": "Button-module__hop-Button__end-icon___kB6WR", "hop-Button__end-icon-list": "Button-module__hop-Button__end-icon-list___S7Tia" };
|
|
21
21
|
var GlobalButtonCssSelector = "hop-Button";
|
|
22
22
|
function Button(props, ref) {
|
|
23
23
|
var _a, _b;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { useImageFallback } from './chunk-3ZCLNFNH.js';
|
|
2
|
-
import { _Text } from './chunk-
|
|
3
|
-
import {
|
|
2
|
+
import { _Text } from './chunk-YF2Y7BWX.js';
|
|
3
|
+
import { AvatarContext } from './chunk-AES7QBQE.js';
|
|
4
|
+
import { _RichIconAvatarImage } from './chunk-OHMQIK55.js';
|
|
4
5
|
import { useRenderProps } from './chunk-2NSUMKNH.js';
|
|
5
6
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
6
7
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
7
|
-
import { AvatarContext } from './chunk-AES7QBQE.js';
|
|
8
8
|
import { BrokenImageRichIcon } from '@hopper-ui/icons';
|
|
9
9
|
import { slot, useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
10
10
|
import { filterDOMProps, mergeProps } from '@react-aria/utils';
|
|
@@ -13,7 +13,7 @@ import { useContextProps, composeRenderProps } from 'react-aria-components';
|
|
|
13
13
|
import { jsx } from 'react/jsx-runtime';
|
|
14
14
|
|
|
15
15
|
// css-module:./Avatar.module.css#css-module
|
|
16
|
-
var Avatar_module_default = { "hop-Avatar": "Avatar-module__hop-
|
|
16
|
+
var Avatar_module_default = { "hop-Avatar": "Avatar-module__hop-Avatar___QYPFd", "hop-Avatar--xs": "Avatar-module__hop-Avatar--xs___yWYPq", "hop-Avatar--sm": "Avatar-module__hop-Avatar--sm___y5f69", "hop-Avatar--md": "Avatar-module__hop-Avatar--md___mxeEO", "hop-Avatar--lg": "Avatar-module__hop-Avatar--lg___kJPDx", "hop-Avatar--xl": "Avatar-module__hop-Avatar--xl___OKFzW", "hop-Avatar--2xl": "Avatar-module__hop-Avatar--2xl___YKmCU", "hop-Avatar--decorative-option1": "Avatar-module__hop-Avatar--decorative-option1___S2910", "hop-Avatar--decorative-option2": "Avatar-module__hop-Avatar--decorative-option2___r3lrw", "hop-Avatar--decorative-option3": "Avatar-module__hop-Avatar--decorative-option3___cNr-y", "hop-Avatar--decorative-option4": "Avatar-module__hop-Avatar--decorative-option4___ZcTQo", "hop-Avatar--decorative-option5": "Avatar-module__hop-Avatar--decorative-option5___bb--h", "hop-Avatar--decorative-option6": "Avatar-module__hop-Avatar--decorative-option6___9BgxM", "hop-Avatar--decorative-option7": "Avatar-module__hop-Avatar--decorative-option7___m4b1Z", "hop-Avatar--decorative-option8": "Avatar-module__hop-Avatar--decorative-option8___HkFjm", "hop-Avatar--decorative-option9": "Avatar-module__hop-Avatar--decorative-option9___mqTTG", "hop-Avatar__image": "Avatar-module__hop-Avatar__image___OsiIS" };
|
|
17
17
|
var GlobalAvatarCssSelector = "hop-Avatar";
|
|
18
18
|
var AvatarToTextSizeAdapter = {
|
|
19
19
|
xs: "xs",
|
|
@@ -11,7 +11,7 @@ import { useContextProps } from 'react-aria-components';
|
|
|
11
11
|
import { jsx } from 'react/jsx-runtime';
|
|
12
12
|
|
|
13
13
|
// css-module:./ButtonGroup.module.css#css-module
|
|
14
|
-
var ButtonGroup_module_default = { "hop-ButtonGroup": "ButtonGroup-module__hop-
|
|
14
|
+
var ButtonGroup_module_default = { "hop-ButtonGroup": "ButtonGroup-module__hop-ButtonGroup___M6bib", "hop-ButtonGroup--horizontal": "ButtonGroup-module__hop-ButtonGroup--horizontal___bLpG-", "hop-ButtonGroup--vertical": "ButtonGroup-module__hop-ButtonGroup--vertical___0AljA", "hop-ButtonGroup--start": "ButtonGroup-module__hop-ButtonGroup--start___tFbPs", "hop-ButtonGroup--center": "ButtonGroup-module__hop-ButtonGroup--center___u42Rb", "hop-ButtonGroup--end": "ButtonGroup-module__hop-ButtonGroup--end___qNBc8", "hop-ButtonGroup--wrap": "ButtonGroup-module__hop-ButtonGroup--wrap___0C-ZI", "hop-ButtonGroup--fluid": "ButtonGroup-module__hop-ButtonGroup--fluid___DxRjI" };
|
|
15
15
|
var GlobalButtonGroupCssSelector = "hop-ButtonGroup";
|
|
16
16
|
function ButtonGroup(props, ref) {
|
|
17
17
|
var _a, _b, _c, _d;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LabelContext } from './chunk-QCA3ZR56.js';
|
|
2
2
|
import { useLocalizedString } from './chunk-75DHKNW2.js';
|
|
3
|
-
import { useFormProps } from './chunk-
|
|
3
|
+
import { useFormProps } from './chunk-I3TCA6QA.js';
|
|
4
4
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
5
5
|
import { useStyledSystem } from '@hopper-ui/styled-system';
|
|
6
6
|
import { filterDOMProps } from '@react-aria/utils';
|
|
@@ -10,7 +10,7 @@ import { useContextProps, Label as Label$1 } from 'react-aria-components';
|
|
|
10
10
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
11
11
|
|
|
12
12
|
// css-module:./Label.module.css#css-module
|
|
13
|
-
var Label_module_default = { "hop-Label": "Label-module__hop-
|
|
13
|
+
var Label_module_default = { "hop-Label": "Label-module__hop-Label___QDaau", "hop-Label__indicator": "Label-module__hop-Label__indicator___JMHih" };
|
|
14
14
|
var GlobalLabelCssSelector = "hop-Label";
|
|
15
15
|
function Label(props, ref) {
|
|
16
16
|
[props, ref] = useContextProps(props, ref, LabelContext);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { CheckboxContext } from './chunk-2EAZPH3M.js';
|
|
2
2
|
import { IconListContext } from './chunk-DHVVYSLB.js';
|
|
3
|
-
import { ensureTextWrapper } from './chunk-
|
|
4
|
-
import { useFormProps } from './chunk-
|
|
3
|
+
import { ensureTextWrapper } from './chunk-EMCQWDWQ.js';
|
|
4
|
+
import { useFormProps } from './chunk-I3TCA6QA.js';
|
|
5
5
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
6
|
-
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
7
6
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
8
7
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
8
|
+
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
9
9
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
10
10
|
import { MinusIcon, CheckmarkIcon, IconContext } from '@hopper-ui/icons';
|
|
11
11
|
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
@@ -14,7 +14,7 @@ import { useContextProps, composeRenderProps, Checkbox as Checkbox$1 } from 'rea
|
|
|
14
14
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
15
15
|
|
|
16
16
|
// css-module:./Checkbox.module.css#css-module
|
|
17
|
-
var Checkbox_module_default = { "hop-Checkbox": "Checkbox-module__hop-
|
|
17
|
+
var Checkbox_module_default = { "hop-Checkbox": "Checkbox-module__hop-Checkbox___HIhOc", "hop-Checkbox--sm": "Checkbox-module__hop-Checkbox--sm___35CAE", "hop-Checkbox--md": "Checkbox-module__hop-Checkbox--md___X1T4u", "hop-Checkbox__icon": "Checkbox-module__hop-Checkbox__icon___Y0iVF", "hop-Checkbox__icon-list": "Checkbox-module__hop-Checkbox__icon-list___WjjCl", "hop-Checkbox__box": "Checkbox-module__hop-Checkbox__box___5XUfy", "hop-Checkbox__check": "Checkbox-module__hop-Checkbox__check___gW9LJ", "hop-Checkbox__text": "Checkbox-module__hop-Checkbox__text___69y0R" };
|
|
18
18
|
var GlobalCheckboxCssSelector = "hop-Checkbox";
|
|
19
19
|
function Checkbox(props, ref) {
|
|
20
20
|
var _a;
|
|
@@ -7,7 +7,7 @@ import { useContextProps } from 'react-aria-components';
|
|
|
7
7
|
import { jsx } from 'react/jsx-runtime';
|
|
8
8
|
|
|
9
9
|
// css-module:./ListBoxItemSkeleton.module.css#css-module
|
|
10
|
-
var ListBoxItemSkeleton_module_default = { "hop-ListBoxItemSkeleton": "ListBoxItemSkeleton-module__hop-
|
|
10
|
+
var ListBoxItemSkeleton_module_default = { "hop-ListBoxItemSkeleton": "ListBoxItemSkeleton-module__hop-ListBoxItemSkeleton___H3OlW", "placeholder-shimmer": "ListBoxItemSkeleton-module__placeholder-shimmer___Fihvm", "hop-ListBoxItemSkeleton--xs": "ListBoxItemSkeleton-module__hop-ListBoxItemSkeleton--xs___9dFaI", "hop-ListBoxItemSkeleton--sm": "ListBoxItemSkeleton-module__hop-ListBoxItemSkeleton--sm___5fYlV", "hop-ListBoxItemSkeleton--md": "ListBoxItemSkeleton-module__hop-ListBoxItemSkeleton--md___hWspS", "hop-ListBoxItemSkeleton--lg": "ListBoxItemSkeleton-module__hop-ListBoxItemSkeleton--lg___vBFRO" };
|
|
11
11
|
var GlobalListBoxItemSkeletonCssSelector = "hop-ListBoxItemSkeleton";
|
|
12
12
|
function ListBoxItemSkeleton(props, ref) {
|
|
13
13
|
var _a;
|
|
@@ -6,7 +6,7 @@ import { useContextProps, Input as Input$1 } from 'react-aria-components';
|
|
|
6
6
|
import { jsx } from 'react/jsx-runtime';
|
|
7
7
|
|
|
8
8
|
// css-module:./Input.module.css#css-module
|
|
9
|
-
var Input_module_default = { "hop-Input": "Input-module__hop-
|
|
9
|
+
var Input_module_default = { "hop-Input": "Input-module__hop-Input___cvyOt", "hop-Input--sm": "Input-module__hop-Input--sm___scIfS" };
|
|
10
10
|
var InputContext = createContext({});
|
|
11
11
|
var Input = forwardRef(function Input2(props, ref) {
|
|
12
12
|
var _a;
|
|
@@ -7,7 +7,7 @@ import { useContextProps, Heading as Heading$1 } from 'react-aria-components';
|
|
|
7
7
|
import { jsx } from 'react/jsx-runtime';
|
|
8
8
|
|
|
9
9
|
// css-module:./Heading.module.css#css-module
|
|
10
|
-
var Heading_module_default = { "hop-Heading": "Heading-module__hop-
|
|
10
|
+
var Heading_module_default = { "hop-Heading": "Heading-module__hop-Heading___cDj46", "hop-Heading--xs": "Heading-module__hop-Heading--xs___653bM", "hop-Heading--sm": "Heading-module__hop-Heading--sm___Zo3-T", "hop-Heading--md": "Heading-module__hop-Heading--md___Mp9H8", "hop-Heading--lg": "Heading-module__hop-Heading--lg___nmdh7", "hop-Heading--xl": "Heading-module__hop-Heading--xl___BfTAL", "hop-Heading--2xl": "Heading-module__hop-Heading--2xl___GVdzd", "hop-Heading--3xl": "Heading-module__hop-Heading--3xl___c4yjS" };
|
|
11
11
|
var GlobalHeadingCssSelector = "hop-Heading";
|
|
12
12
|
function Heading(props, ref) {
|
|
13
13
|
[props, ref] = useContextProps(props, ref, HeadingContext);
|
|
@@ -3,7 +3,7 @@ import { LinkButtonContext } from './chunk-3UQFC2NQ.js';
|
|
|
3
3
|
import { FooterContext } from './chunk-I67NHYK4.js';
|
|
4
4
|
import { isFunction, isNil } from './chunk-TIPN4VYD.js';
|
|
5
5
|
import { ListBoxContext } from './chunk-UIEP5BA5.js';
|
|
6
|
-
import { _HopperProvider } from './chunk-
|
|
6
|
+
import { useForwardedHopperContext, _HopperProvider } from './chunk-DVVK2IWW.js';
|
|
7
7
|
import { ButtonGroupContext } from './chunk-VJQ7M2BK.js';
|
|
8
8
|
import { LinkContext } from './chunk-4VVNSXIB.js';
|
|
9
9
|
import { ContentContext } from './chunk-IXB2WK56.js';
|
|
@@ -12,19 +12,20 @@ import { HeadingContext } from './chunk-TXZ6BMFR.js';
|
|
|
12
12
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
13
13
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
14
14
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
15
|
-
import { useStyledSystem, useResponsiveValue
|
|
15
|
+
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
16
16
|
import clsx from 'clsx';
|
|
17
17
|
import { forwardRef } from 'react';
|
|
18
18
|
import { useContextProps, composeRenderProps, Popover as Popover$1, Dialog } from 'react-aria-components';
|
|
19
19
|
import { jsx } from 'react/jsx-runtime';
|
|
20
20
|
|
|
21
21
|
// css-module:./Popover.module.css#css-module
|
|
22
|
-
var Popover_module_default = { "hop-Popover": "Popover-module__hop-
|
|
22
|
+
var Popover_module_default = { "hop-Popover": "Popover-module__hop-Popover___1REfy", "fade": "Popover-module__fade___l0K-u", "hop-Popover__wrapper": "Popover-module__hop-Popover__wrapper___3WVku", "hop-Popover__dialog": "Popover-module__hop-Popover__dialog___GbQZH", "hop-Popover__dropdown": "Popover-module__hop-Popover__dropdown___NtQTA", "hop-Popover__title": "Popover-module__hop-Popover__title___mEbdt", "hop-Popover__content": "Popover-module__hop-Popover__content___I21FJ", "hop-Popover__list-box": "Popover-module__hop-Popover__list-box___XrjJ0", "hop-Popover__footer": "Popover-module__hop-Popover__footer___kefPf", "hop-Popover__actions": "Popover-module__hop-Popover__actions___-iKQO", "hop-Popover__action": "Popover-module__hop-Popover__action___Lu-41" };
|
|
23
23
|
var GlobalPopoverCssSelector = "hop-Popover";
|
|
24
24
|
function Popover(props, ref) {
|
|
25
25
|
var _a;
|
|
26
26
|
[props, ref] = useContextProps(props, ref, PopoverContext);
|
|
27
27
|
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
28
|
+
const prevContextProps = useForwardedHopperContext();
|
|
28
29
|
const {
|
|
29
30
|
isAutoWidth,
|
|
30
31
|
children,
|
|
@@ -46,7 +47,6 @@ function Popover(props, ref) {
|
|
|
46
47
|
slot,
|
|
47
48
|
...containerOtherProps
|
|
48
49
|
} = containerOwnProps;
|
|
49
|
-
const { colorScheme } = useColorSchemeContext();
|
|
50
50
|
const popoverClassNames = composeClassnameRenderProps(
|
|
51
51
|
className,
|
|
52
52
|
GlobalPopoverCssSelector,
|
|
@@ -84,7 +84,7 @@ function Popover(props, ref) {
|
|
|
84
84
|
children: (state) => {
|
|
85
85
|
const content = isFunction(children) && !isNil(children) ? children(state) : children;
|
|
86
86
|
if (isNonDialog) {
|
|
87
|
-
return /* @__PURE__ */ jsx(_HopperProvider, {
|
|
87
|
+
return /* @__PURE__ */ jsx(_HopperProvider, { ...prevContextProps, className: Popover_module_default["hop-Popover__wrapper"], children: /* @__PURE__ */ jsx(
|
|
88
88
|
"div",
|
|
89
89
|
{
|
|
90
90
|
...containerOtherProps,
|
|
@@ -113,7 +113,7 @@ function Popover(props, ref) {
|
|
|
113
113
|
}
|
|
114
114
|
) });
|
|
115
115
|
}
|
|
116
|
-
return /* @__PURE__ */ jsx(_HopperProvider, {
|
|
116
|
+
return /* @__PURE__ */ jsx(_HopperProvider, { ...prevContextProps, children: /* @__PURE__ */ jsx(Dialog, { ...containerOtherProps, className: containerClassNames, style: containerStyle, children: /* @__PURE__ */ jsx(
|
|
117
117
|
SlotProvider,
|
|
118
118
|
{
|
|
119
119
|
values: [
|
|
@@ -7,7 +7,7 @@ import { Form as Form$1 } from 'react-aria-components';
|
|
|
7
7
|
import { jsx } from 'react/jsx-runtime';
|
|
8
8
|
|
|
9
9
|
// css-module:./Form.module.css#css-module
|
|
10
|
-
var Form_module_default = { "hop-Form": "Form-module__hop-
|
|
10
|
+
var Form_module_default = { "hop-Form": "Form-module__hop-Form___sH6BH" };
|
|
11
11
|
var GlobalFormCssSelector = "hop-Form";
|
|
12
12
|
function useFormProps(props) {
|
|
13
13
|
const ctx = useContext(FormContext);
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { NumberFieldContext } from './chunk-ZQ3AWYRR.js';
|
|
2
|
-
import { _InputGroup } from './chunk-
|
|
3
|
-
import { Input } from './chunk-
|
|
4
|
-
import { _HelperMessage } from './chunk-
|
|
5
|
-
import { _ErrorMessage } from './chunk-
|
|
6
|
-
import { ensureTextWrapper } from './chunk-
|
|
7
|
-
import { _Label } from './chunk-
|
|
8
|
-
import { useFormProps } from './chunk-
|
|
2
|
+
import { _InputGroup } from './chunk-4CUD5Z4N.js';
|
|
3
|
+
import { Input } from './chunk-HBKQPCYU.js';
|
|
4
|
+
import { _HelperMessage } from './chunk-74YWITDM.js';
|
|
5
|
+
import { _ErrorMessage } from './chunk-SWWLTUOO.js';
|
|
6
|
+
import { ensureTextWrapper } from './chunk-EMCQWDWQ.js';
|
|
7
|
+
import { _Label } from './chunk-GACETSMF.js';
|
|
8
|
+
import { useFormProps } from './chunk-I3TCA6QA.js';
|
|
9
9
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
10
|
-
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
11
10
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
12
11
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
12
|
+
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
13
13
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
14
14
|
import { IconContext, AngleUpIcon, AngleDownIcon } from '@hopper-ui/icons';
|
|
15
15
|
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
@@ -22,7 +22,7 @@ import { useContextProps, composeRenderProps, NumberField as NumberField$1, Butt
|
|
|
22
22
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
23
23
|
|
|
24
24
|
// css-module:./NumberField.module.css#css-module
|
|
25
|
-
var NumberField_module_default = { "hop-NumberField": "NumberField-module__hop-
|
|
25
|
+
var NumberField_module_default = { "hop-NumberField": "NumberField-module__hop-NumberField___PUXSO", "hop-NumberField--fluid": "NumberField-module__hop-NumberField--fluid___Q5ycl", "hop-NumberField__Label": "NumberField-module__hop-NumberField__Label___zwgq6", "hop-NumberField__prefix": "NumberField-module__hop-NumberField__prefix___O5zZR", "hop-NumberField__InputGroup": "NumberField-module__hop-NumberField__InputGroup___0-7wP", "hop-NumberField__ErrorMessage": "NumberField-module__hop-NumberField__ErrorMessage___Ce63U", "hop-NumberField__HelperMessage": "NumberField-module__hop-NumberField__HelperMessage___-MFFd", "hop-NumberField__steppers": "NumberField-module__hop-NumberField__steppers___QDyNO", "hop-NumberField__stepper-button": "NumberField-module__hop-NumberField__stepper-button___ZzWak", "hop-NumberField__stepper-button--increment": "NumberField-module__hop-NumberField__stepper-button--increment___em1rs", "hop-NumberField__stepper-button--decrement": "NumberField-module__hop-NumberField__stepper-button--decrement___RxrAM", "hop-NumberField__stepper-button__icon": "NumberField-module__hop-NumberField__stepper-button__icon___XhwQI", "hop-NumberField__input": "NumberField-module__hop-NumberField__input___UQUUn" };
|
|
26
26
|
var GlobalNumberFieldCssSelector = "hop-NumberField";
|
|
27
27
|
var StepperButton = ({ direction }) => {
|
|
28
28
|
const StepperIcon = direction === "increment" ? AngleUpIcon : AngleDownIcon;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _EmbeddedButton } from './chunk-
|
|
1
|
+
import { _EmbeddedButton } from './chunk-CRSNDOH5.js';
|
|
2
2
|
import { ClearButtonContext } from './chunk-DXVKHP4V.js';
|
|
3
3
|
import { useLocalizedString } from './chunk-75DHKNW2.js';
|
|
4
4
|
import { DismissIcon } from '@hopper-ui/icons';
|
|
@@ -7,7 +7,7 @@ import { useContextProps } from 'react-aria-components';
|
|
|
7
7
|
import { jsx } from 'react/jsx-runtime';
|
|
8
8
|
|
|
9
9
|
// css-module:./SvgImage.module.css#css-module
|
|
10
|
-
var SvgImage_module_default = { "hop-SvgImage": "SvgImage-module__hop-
|
|
10
|
+
var SvgImage_module_default = { "hop-SvgImage": "SvgImage-module__hop-SvgImage___YnGuu" };
|
|
11
11
|
var GlobalSvgImageCssSelector = "hop-SvgImage";
|
|
12
12
|
function SvgImage(props, ref) {
|
|
13
13
|
[props, ref] = useContextProps(props, ref, SvgImageContext);
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { SearchFieldContext } from './chunk-3NKF5TPD.js';
|
|
2
|
-
import { _ClearButton } from './chunk-
|
|
3
|
-
import { _InputGroup } from './chunk-
|
|
4
|
-
import { Input } from './chunk-
|
|
5
|
-
import { _HelperMessage } from './chunk-
|
|
6
|
-
import { _ErrorMessage } from './chunk-
|
|
7
|
-
import { _Label } from './chunk-
|
|
8
|
-
import { useFormProps } from './chunk-
|
|
9
|
-
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
2
|
+
import { _ClearButton } from './chunk-ITRR4F5G.js';
|
|
3
|
+
import { _InputGroup } from './chunk-4CUD5Z4N.js';
|
|
4
|
+
import { Input } from './chunk-HBKQPCYU.js';
|
|
5
|
+
import { _HelperMessage } from './chunk-74YWITDM.js';
|
|
6
|
+
import { _ErrorMessage } from './chunk-SWWLTUOO.js';
|
|
7
|
+
import { _Label } from './chunk-GACETSMF.js';
|
|
8
|
+
import { useFormProps } from './chunk-I3TCA6QA.js';
|
|
10
9
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
11
10
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
11
|
+
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
12
12
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
13
13
|
import { IconContext, SearchIcon } from '@hopper-ui/icons';
|
|
14
14
|
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
@@ -20,7 +20,7 @@ import { useContextProps, composeRenderProps, SearchField as SearchField$1 } fro
|
|
|
20
20
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
21
21
|
|
|
22
22
|
// css-module:./SearchField.module.css#css-module
|
|
23
|
-
var SearchField_module_default = { "hop-SearchField": "SearchField-module__hop-
|
|
23
|
+
var SearchField_module_default = { "hop-SearchField": "SearchField-module__hop-SearchField___XGUwo", "hop-SearchField--fluid": "SearchField-module__hop-SearchField--fluid___6LfSr", "hop-SearchField__Label": "SearchField-module__hop-SearchField__Label___MmZS6", "hop-SearchField__prefix": "SearchField-module__hop-SearchField__prefix___nCX9O", "hop-SearchField__InputGroup": "SearchField-module__hop-SearchField__InputGroup___NUyvC", "hop-SearchField--clearable": "SearchField-module__hop-SearchField--clearable___P-9LX", "hop-SearchField__ErrorMessage": "SearchField-module__hop-SearchField__ErrorMessage___TWKId", "hop-SearchField__HelperMessage": "SearchField-module__hop-SearchField__HelperMessage___M30oD", "hop-SearchField__ClearButton": "SearchField-module__hop-SearchField__ClearButton___lAvi4" };
|
|
24
24
|
var GlobalSearchFieldCssSelector = "hop-SearchField";
|
|
25
25
|
function SearchField(props, ref) {
|
|
26
26
|
var _a;
|
|
@@ -14,7 +14,7 @@ import { useContextProps } from 'react-aria-components';
|
|
|
14
14
|
import { jsx } from 'react/jsx-runtime';
|
|
15
15
|
|
|
16
16
|
// css-module:./IllustratedMessage.module.css#css-module
|
|
17
|
-
var IllustratedMessage_module_default = { "hop-IllustratedMessage": "IllustratedMessage-module__hop-
|
|
17
|
+
var IllustratedMessage_module_default = { "hop-IllustratedMessage": "IllustratedMessage-module__hop-IllustratedMessage___YfpaP", "hop-IllustratedMessage--sm": "IllustratedMessage-module__hop-IllustratedMessage--sm___DgCZU", "hop-IllustratedMessage--md": "IllustratedMessage-module__hop-IllustratedMessage--md___TQpCf", "hop-IllustratedMessage--lg": "IllustratedMessage-module__hop-IllustratedMessage--lg___flxuS", "hop-IllustratedMessage__image": "IllustratedMessage-module__hop-IllustratedMessage__image___miWk5", "hop-IllustratedMessage__heading": "IllustratedMessage-module__hop-IllustratedMessage__heading___BA3-H", "hop-IllustratedMessage-md": "IllustratedMessage-module__hop-IllustratedMessage-md___gzoKX", "hop-IllustratedMessage__content": "IllustratedMessage-module__hop-IllustratedMessage__content___pzR-6", "hop-IllustratedMessage__buttonGroup": "IllustratedMessage-module__hop-IllustratedMessage__buttonGroup___gZIJD", "hop-IllustratedMessage__button": "IllustratedMessage-module__hop-IllustratedMessage__button___o5-EY" };
|
|
18
18
|
var GlobalIllustratedMessageCssSelector = "hop-IllustratedMessage";
|
|
19
19
|
function IllustratedMessage(props, ref) {
|
|
20
20
|
[props, ref] = useContextProps(props, ref, IllustratedMessageContext);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LinkContext } from './chunk-4VVNSXIB.js';
|
|
2
2
|
import { IconListContext } from './chunk-DHVVYSLB.js';
|
|
3
|
-
import { ensureTextWrapper } from './chunk-
|
|
3
|
+
import { ensureTextWrapper } from './chunk-EMCQWDWQ.js';
|
|
4
4
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
5
5
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
6
6
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
@@ -12,7 +12,7 @@ import { useContextProps, composeRenderProps, DEFAULT_SLOT, Link as Link$1 } fro
|
|
|
12
12
|
import { jsx } from 'react/jsx-runtime';
|
|
13
13
|
|
|
14
14
|
// css-module:./Link.module.css#css-module
|
|
15
|
-
var Link_module_default = { "hop-Link": "Link-module__hop-
|
|
15
|
+
var Link_module_default = { "hop-Link": "Link-module__hop-Link___0wa1p", "hop-Link--standalone": "Link-module__hop-Link--standalone___uT7pp", "hop-Link__text": "Link-module__hop-Link__text___H7Y97", "hop-Link--xs": "Link-module__hop-Link--xs___f3-C-", "hop-Link--sm": "Link-module__hop-Link--sm___5qFPe", "hop-Link--md": "Link-module__hop-Link--md___Lm8EU", "hop-Link--lg": "Link-module__hop-Link--lg___4kEU5", "hop-Link--xl": "Link-module__hop-Link--xl___KmCgI", "hop-Link--2xl": "Link-module__hop-Link--2xl___DDo14", "hop-Link--quiet": "Link-module__hop-Link--quiet___MXwkd", "hop-Link--primary": "Link-module__hop-Link--primary___QuFU3", "hop-Link--secondary": "Link-module__hop-Link--secondary___iPT5U", "hop-Link__icon": "Link-module__hop-Link__icon___ODaBt", "hop-Link__icon-list": "Link-module__hop-Link__icon-list___Fv58U", "hop-Link__start-icon": "Link-module__hop-Link__start-icon___aFsYF", "hop-Link__start-icon-list": "Link-module__hop-Link__start-icon-list___HQEcz" };
|
|
16
16
|
var GlobalLinkCssSelector = "hop-Link";
|
|
17
17
|
var LinkToIconSizeAdapter = {
|
|
18
18
|
inherit: void 0,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { PasswordFieldContext } from './chunk-QW45G6K4.js';
|
|
2
|
-
import { _EmbeddedButton } from './chunk-
|
|
3
|
-
import { _InputGroup } from './chunk-
|
|
4
|
-
import { Input } from './chunk-
|
|
5
|
-
import { _HelperMessage } from './chunk-
|
|
6
|
-
import { _ErrorMessage } from './chunk-
|
|
7
|
-
import { _Label } from './chunk-
|
|
2
|
+
import { _EmbeddedButton } from './chunk-CRSNDOH5.js';
|
|
3
|
+
import { _InputGroup } from './chunk-4CUD5Z4N.js';
|
|
4
|
+
import { Input } from './chunk-HBKQPCYU.js';
|
|
5
|
+
import { _HelperMessage } from './chunk-74YWITDM.js';
|
|
6
|
+
import { _ErrorMessage } from './chunk-SWWLTUOO.js';
|
|
7
|
+
import { _Label } from './chunk-GACETSMF.js';
|
|
8
8
|
import { useLocalizedString } from './chunk-75DHKNW2.js';
|
|
9
|
-
import { useFormProps } from './chunk-
|
|
10
|
-
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
9
|
+
import { useFormProps } from './chunk-I3TCA6QA.js';
|
|
11
10
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
11
|
+
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
12
12
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
13
13
|
import { EyeVisibleIcon, EyeHiddenIcon } from '@hopper-ui/icons';
|
|
14
14
|
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
@@ -20,7 +20,7 @@ import { useContextProps, composeRenderProps, TextField } from 'react-aria-compo
|
|
|
20
20
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
21
21
|
|
|
22
22
|
// css-module:./PasswordField.module.css#css-module
|
|
23
|
-
var PasswordField_module_default = { "hop-PasswordField": "PasswordField-module__hop-
|
|
23
|
+
var PasswordField_module_default = { "hop-PasswordField": "PasswordField-module__hop-PasswordField___qE7D0", "hop-PasswordField--fluid": "PasswordField-module__hop-PasswordField--fluid___EiTEZ", "hop-PasswordField__Label": "PasswordField-module__hop-PasswordField__Label___mJ0WC", "hop-PasswordField__InputGroup": "PasswordField-module__hop-PasswordField__InputGroup___gHZ9J", "hop-PasswordField__ErrorMessage": "PasswordField-module__hop-PasswordField__ErrorMessage___6ldeM", "hop-PasswordField__HelperMessage": "PasswordField-module__hop-PasswordField__HelperMessage___p8aCw" };
|
|
24
24
|
var GlobalPasswordFieldCssSelector = "hop-PasswordField";
|
|
25
25
|
function PasswordField(props, ref) {
|
|
26
26
|
var _a;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { TagGroupContext } from './chunk-LCAS3YQV.js';
|
|
2
1
|
import { TagContext } from './chunk-EWMWQ2MC.js';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
2
|
+
import { TagGroupContext } from './chunk-LCAS3YQV.js';
|
|
3
|
+
import { _HelperMessage } from './chunk-74YWITDM.js';
|
|
4
|
+
import { _ErrorMessage } from './chunk-SWWLTUOO.js';
|
|
5
|
+
import { _Label } from './chunk-GACETSMF.js';
|
|
6
|
+
import { useFormProps } from './chunk-I3TCA6QA.js';
|
|
7
7
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
8
8
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
9
9
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
@@ -14,7 +14,7 @@ import { useContextProps, composeRenderProps, FieldErrorContext, TagGroup as Tag
|
|
|
14
14
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
15
15
|
|
|
16
16
|
// css-module:./TagGroup.module.css#css-module
|
|
17
|
-
var TagGroup_module_default = { "hop-TagGroup": "TagGroup-module__hop-
|
|
17
|
+
var TagGroup_module_default = { "hop-TagGroup": "TagGroup-module__hop-TagGroup___Jd5EA", "hop-TagGroup__label": "TagGroup-module__hop-TagGroup__label___xw62Y", "hop-TagGroup__list": "TagGroup-module__hop-TagGroup__list___0IA41", "hop-TagGroup__error-message": "TagGroup-module__hop-TagGroup__error-message___ruGO2", "hop-TagGroup__helper-message": "TagGroup-module__hop-TagGroup__helper-message___zXe7Z" };
|
|
18
18
|
var GlobalTagGroupCssSelector = "hop-TagGroup";
|
|
19
19
|
function TagGroup(props, ref) {
|
|
20
20
|
var _a;
|