@hopper-ui/components 1.4.7 → 1.4.8
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/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 +3 -3
- package/dist/Avatar/src/Avatar.css +56 -56
- package/dist/Avatar/src/Avatar.js +4 -4
- package/dist/Avatar/src/DeletedAvatar.css +38 -38
- package/dist/Avatar/src/DeletedAvatar.js +3 -3
- 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 +6 -6
- package/dist/Badge/src/Badge.css +43 -43
- package/dist/Badge/src/Badge.js +3 -3
- package/dist/Badge/src/FloatingBadge.css +38 -38
- package/dist/Badge/src/FloatingBadge.js +1 -1
- package/dist/Badge/src/index.css +53 -53
- package/dist/Badge/src/index.js +4 -4
- package/dist/Callout/src/Callout.css +262 -262
- package/dist/Callout/src/Callout.js +11 -11
- package/dist/Callout/src/CompactCallout.css +293 -293
- package/dist/Callout/src/CompactCallout.js +13 -13
- package/dist/Callout/src/index.css +304 -304
- package/dist/Callout/src/index.js +14 -14
- 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 +3202 -2852
- package/dist/ComboBox/src/ComboBox.d.ts +6 -6
- package/dist/ComboBox/src/ComboBox.js +21 -18
- package/dist/ComboBox/src/ComboBoxContext.d.ts +3 -2
- package/dist/ComboBox/src/index.css +3202 -2852
- package/dist/ComboBox/src/index.d.ts +4 -3
- package/dist/ComboBox/src/index.js +21 -18
- 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 +8 -8
- package/dist/Disclosure/src/DisclosurePanel.css +38 -38
- package/dist/Disclosure/src/DisclosurePanel.js +8 -8
- package/dist/Disclosure/src/index.css +63 -63
- package/dist/Disclosure/src/index.js +12 -12
- 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 +2 -2
- package/dist/HelperMessage/src/index.css +30 -30
- package/dist/HelperMessage/src/index.js +2 -2
- 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 +7 -7
- package/dist/Link/src/index.css +59 -59
- package/dist/Link/src/index.js +7 -7
- package/dist/ListBox/src/ListBox.css +275 -275
- package/dist/ListBox/src/ListBox.js +12 -12
- package/dist/ListBox/src/ListBoxItem.css +263 -263
- package/dist/ListBox/src/ListBoxItem.js +11 -11
- 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 +12 -12
- 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 +6 -6
- package/dist/SegmentedControl/src/index.css +44 -44
- package/dist/SegmentedControl/src/index.js +7 -7
- package/dist/Select/src/Select.css +576 -576
- package/dist/Select/src/Select.js +18 -18
- package/dist/Select/src/SelectValue.css +62 -62
- package/dist/Select/src/SelectValue.js +7 -7
- package/dist/Select/src/index.css +576 -576
- package/dist/Select/src/index.js +18 -18
- package/dist/Spinner/src/Spinner.css +38 -38
- package/dist/Spinner/src/Spinner.js +2 -2
- package/dist/Spinner/src/index.css +38 -38
- package/dist/Spinner/src/index.js +2 -2
- package/dist/Tile/src/Tile.css +326 -0
- package/dist/Tile/src/Tile.d.ts +20 -0
- package/dist/Tile/src/Tile.js +19 -0
- package/dist/Tile/src/TileContext.d.ts +9 -0
- package/dist/Tile/src/TileContext.js +2 -0
- package/dist/Tile/src/TileGroup.css +241 -0
- package/dist/Tile/src/TileGroup.d.ts +30 -0
- package/dist/Tile/src/TileGroup.js +6 -0
- package/dist/Tile/src/TileGroupContext.d.ts +8 -0
- package/dist/Tile/src/TileGroupContext.js +2 -0
- package/dist/Tile/src/index.css +334 -0
- package/dist/Tile/src/index.d.ts +7 -0
- package/dist/Tile/src/index.js +21 -0
- 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 +8 -8
- 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.d.ts +12 -5
- package/dist/buttons/src/ClearButton.js +3 -3
- package/dist/buttons/src/ClearButtonContext.d.ts +2 -4
- package/dist/buttons/src/CloseButton.css +95 -95
- package/dist/buttons/src/CloseButton.js +10 -10
- package/dist/buttons/src/EmbeddedButton.css +99 -99
- package/dist/buttons/src/EmbeddedButton.d.ts +27 -7
- package/dist/buttons/src/EmbeddedButton.js +1 -1
- package/dist/buttons/src/EmbeddedButtonContext.d.ts +1 -4
- package/dist/buttons/src/LinkButton.css +103 -103
- package/dist/buttons/src/LinkButton.js +8 -8
- package/dist/buttons/src/index.css +251 -251
- package/dist/buttons/src/index.d.ts +2 -1
- package/dist/buttons/src/index.js +17 -17
- package/dist/checkbox/src/Checkbox.css +47 -47
- package/dist/checkbox/src/Checkbox.js +7 -7
- 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 +8 -8
- package/dist/checkbox/src/DecorativeCheckbox.css +55 -55
- package/dist/checkbox/src/DecorativeCheckbox.js +8 -8
- package/dist/checkbox/src/index.css +99 -99
- package/dist/checkbox/src/index.js +14 -14
- package/dist/{chunk-NH3IVMXB.js → chunk-2NSUMKNH.js} +1 -1
- package/dist/chunk-3MTGAZ77.js +7 -0
- package/dist/{chunk-7UNZPFF5.js → chunk-53WBWLKL.js} +12 -11
- package/dist/{chunk-ZVNGQXRR.js → chunk-56WMYNUD.js} +3 -3
- package/dist/{chunk-HXNEWO5D.js → chunk-5TGWIM5C.js} +15 -13
- package/dist/{chunk-2DF25AEQ.js → chunk-6CVROWNN.js} +2 -2
- package/dist/{chunk-RYJBYNZT.js → chunk-725VVVMA.js} +1 -1
- package/dist/{chunk-MHQ3VHAA.js → chunk-72CSHV4D.js} +6 -6
- package/dist/chunk-7HIGRTLG.js +34 -0
- package/dist/{chunk-TZEOP7YF.js → chunk-7JQJ5U7J.js} +1 -1
- package/dist/{chunk-BHIQ5PPC.js → chunk-7SMF3TO5.js} +2 -2
- package/dist/{chunk-OCG7CSY5.js → chunk-AD5GQ24L.js} +1 -1
- package/dist/{chunk-JAR25BBL.js → chunk-B7MWXJWS.js} +1 -1
- package/dist/{chunk-J6RDT7TX.js → chunk-BPO44JV2.js} +4 -4
- package/dist/{chunk-7SCKD7PW.js → chunk-CKH5EUEC.js} +3 -3
- package/dist/{chunk-WX5UNPM3.js → chunk-CYICQ2TZ.js} +1 -1
- package/dist/{chunk-I73SWVA3.js → chunk-CZRMFNRT.js} +3 -3
- package/dist/{chunk-NJUYQ7VF.js → chunk-EZF74GSX.js} +2 -2
- package/dist/chunk-EZXZMHPJ.js +77 -0
- package/dist/chunk-F6D7LSXZ.js +73 -0
- package/dist/{chunk-Z3WDZ52E.js → chunk-F6NQHY35.js} +1 -1
- package/dist/{chunk-6LIFUQT4.js → chunk-GOY3T3HI.js} +3 -3
- package/dist/{chunk-7DLSOYOU.js → chunk-GZYLFGDT.js} +4 -4
- package/dist/{chunk-PHQ6YPQQ.js → chunk-I2LTZFXN.js} +2 -2
- package/dist/{chunk-IIAAY3DD.js → chunk-IMUQCB4Q.js} +2 -2
- package/dist/{chunk-HJXC5SRI.js → chunk-IYT75GWO.js} +2 -2
- package/dist/chunk-JTNKUYE5.js +8 -0
- package/dist/{chunk-JUVZRX26.js → chunk-JZ4LJ4M4.js} +4 -4
- package/dist/{chunk-LMATFHSS.js → chunk-KFH2WZVX.js} +5 -5
- package/dist/{chunk-MF2LIHC6.js → chunk-KIQW5BE4.js} +3 -3
- package/dist/{chunk-XLPW4NX3.js → chunk-KVJHBVJU.js} +51 -72
- package/dist/{chunk-MPCOEMN2.js → chunk-KW6WJUD5.js} +3 -3
- package/dist/{chunk-WICGT2T5.js → chunk-M35EMGMO.js} +1 -1
- package/dist/{chunk-2XVB536Z.js → chunk-ML4JW4EF.js} +17 -25
- package/dist/chunk-MM2SG6JU.js +75 -0
- package/dist/{chunk-SV6RSWOR.js → chunk-N455JVEG.js} +1 -1
- package/dist/{chunk-MO4EWTIM.js → chunk-NHKYEZTW.js} +2 -2
- package/dist/{chunk-IYRRO5H3.js → chunk-NIOF2SKT.js} +2 -2
- package/dist/{chunk-GNPTWYD3.js → chunk-NXT7EAML.js} +3 -3
- package/dist/{chunk-4B5NJLD3.js → chunk-OSGTA6DG.js} +1 -1
- package/dist/{chunk-ERIQNISN.js → chunk-PAVQC74G.js} +1 -1
- package/dist/{chunk-2GGER6XM.js → chunk-PXOVV47X.js} +1 -1
- package/dist/{chunk-5JYQWCE5.js → chunk-Q5XBTXXT.js} +7 -7
- package/dist/{chunk-DW44WR6W.js → chunk-QOFWY452.js} +3 -3
- package/dist/{chunk-HMG6U7FQ.js → chunk-QR6WDDBN.js} +2 -2
- package/dist/{chunk-KXAYZ6PQ.js → chunk-QVXYZX5B.js} +1 -1
- package/dist/{chunk-OQFPMKF2.js → chunk-RZG5PUET.js} +11 -11
- package/dist/{chunk-DOYWH7O2.js → chunk-S4VWM2B6.js} +29 -17
- package/dist/{chunk-4BXMSXYQ.js → chunk-SRMMLWHK.js} +1 -1
- package/dist/{chunk-ZWDUMUN4.js → chunk-SSV5APP2.js} +2 -2
- package/dist/{chunk-K3IUMMRF.js → chunk-TMVLBCMF.js} +3 -3
- package/dist/{chunk-P5EIKUXO.js → chunk-U2E2PK7O.js} +3 -3
- package/dist/{chunk-JNJYQ26N.js → chunk-UC2WGSJH.js} +13 -13
- package/dist/{chunk-MIZJXB3R.js → chunk-UIG77WBM.js} +6 -6
- package/dist/{chunk-N3XC5CZP.js → chunk-UXCNMI34.js} +3 -3
- package/dist/{chunk-BXPKRAAY.js → chunk-UXGG4SUH.js} +1 -1
- package/dist/{chunk-WLIPEWRM.js → chunk-VFZ2K6U6.js} +2 -2
- package/dist/{chunk-JZ6DMATL.js → chunk-VHVRECJY.js} +5 -5
- package/dist/{chunk-7EUXODLY.js → chunk-VOXZA4YS.js} +1 -1
- package/dist/{chunk-OIELLCFE.js → chunk-W2TEMTXK.js} +1 -1
- package/dist/{chunk-UICYQNAO.js → chunk-WNFSIU36.js} +3 -3
- package/dist/{chunk-K7JDZAO3.js → chunk-XV2C6MXF.js} +8 -8
- package/dist/{chunk-55OPYST3.js → chunk-YHRCBRDZ.js} +1 -1
- package/dist/{chunk-W5HTSWT3.js → chunk-YMQMJAC4.js} +4 -4
- package/dist/{chunk-Y7ATRH3L.js → chunk-YP2IQM4Y.js} +3 -3
- package/dist/{chunk-NFIZ44XF.js → chunk-Z2SUHJJH.js} +4 -4
- package/dist/{chunk-3JJL6GD6.js → chunk-Z7ORLEY6.js} +1 -1
- package/dist/{chunk-KBHWDMMF.js → chunk-ZJBNVQTB.js} +1 -3
- package/dist/{chunk-YQLCOKBQ.js → chunk-ZMNX5LVE.js} +2 -2
- package/dist/index.css +1845 -1948
- package/dist/index.d.ts +6 -4
- package/dist/index.js +83 -83
- package/dist/inputs/src/Input.css +302 -0
- package/dist/inputs/src/Input.d.ts +15 -0
- package/dist/inputs/src/Input.js +3 -0
- package/dist/inputs/src/InputGroup.css +47 -1483
- package/dist/inputs/src/InputGroup.d.ts +1 -18
- package/dist/inputs/src/InputGroup.js +1 -3
- package/dist/inputs/src/InputGroupContext.d.ts +0 -2
- package/dist/inputs/src/NumberField.css +130 -1526
- package/dist/inputs/src/NumberField.js +12 -13
- package/dist/inputs/src/PasswordField.css +346 -380
- package/dist/inputs/src/PasswordField.d.ts +4 -4
- package/dist/inputs/src/PasswordField.js +13 -12
- package/dist/inputs/src/PasswordFieldContext.d.ts +2 -2
- package/dist/inputs/src/RemainingCharacterCount.css +31 -31
- package/dist/inputs/src/RemainingCharacterCount.js +7 -7
- package/dist/inputs/src/SearchField.css +350 -386
- package/dist/inputs/src/SearchField.d.ts +2 -2
- package/dist/inputs/src/SearchField.js +15 -14
- package/dist/inputs/src/SearchFieldContext.d.ts +2 -2
- package/dist/inputs/src/TextArea.css +122 -1498
- package/dist/inputs/src/TextArea.js +11 -12
- package/dist/inputs/src/TextField.css +348 -384
- package/dist/inputs/src/TextField.js +17 -16
- package/dist/inputs/src/index.css +625 -628
- package/dist/inputs/src/index.d.ts +4 -3
- package/dist/inputs/src/index.js +22 -22
- package/dist/overlays/Popover/src/Popover.css +552 -552
- package/dist/overlays/Popover/src/Popover.js +6 -6
- package/dist/overlays/Popover/src/index.css +552 -552
- package/dist/overlays/Popover/src/index.js +6 -6
- package/dist/radio/src/DecorativeRadio.css +55 -55
- package/dist/radio/src/DecorativeRadio.js +8 -8
- package/dist/radio/src/Radio.css +47 -47
- package/dist/radio/src/Radio.js +7 -7
- 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 +13 -13
- package/dist/switch/src/Switch.css +44 -44
- package/dist/switch/src/Switch.js +7 -7
- 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 +10 -10
- package/dist/tag/src/Tag.css +392 -392
- package/dist/tag/src/Tag.d.ts +46 -5
- package/dist/tag/src/Tag.js +11 -11
- package/dist/tag/src/TagContext.d.ts +3 -1
- package/dist/tag/src/TagGroup.css +38 -38
- package/dist/tag/src/TagGroup.d.ts +3 -1
- package/dist/tag/src/TagGroup.js +8 -8
- package/dist/tag/src/TagGroupContext.d.ts +3 -1
- package/dist/tag/src/index.css +402 -402
- package/dist/tag/src/index.d.ts +3 -1
- package/dist/tag/src/index.js +17 -17
- 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 +1 -1
- package/dist/typography/Text/src/index.css +28 -28
- package/dist/typography/Text/src/index.js +1 -1
- package/dist/utils/src/EnsureTextWrapper.css +28 -28
- package/dist/utils/src/EnsureTextWrapper.js +6 -6
- package/dist/utils/src/index.css +28 -28
- package/dist/utils/src/index.d.ts +0 -1
- package/dist/utils/src/index.js +8 -9
- package/dist/utils/src/types.d.ts +1 -1
- package/dist/utils/src/useRenderProps.js +1 -1
- package/package.json +1 -1
- package/dist/ClearButton-wcnm_ugx.d.ts +0 -80
- package/dist/chunk-2JXEPUMG.js +0 -102
- package/dist/chunk-MTDFS4CZ.js +0 -12
- package/dist/utils/src/useScale.d.ts +0 -11
- package/dist/utils/src/useScale.js +0 -2
|
@@ -7,7 +7,7 @@ import { useContextProps } from 'react-aria-components';
|
|
|
7
7
|
import { jsx } from 'react/jsx-runtime';
|
|
8
8
|
|
|
9
9
|
// css-module:./Card.module.css#css-module
|
|
10
|
-
var Card_module_default = { "hop-Card": "Card-module__hop-
|
|
10
|
+
var Card_module_default = { "hop-Card": "Card-module__hop-Card___3Ch3G", "hop-Card--main": "Card-module__hop-Card--main___SonMh", "hop-Card--second-level": "Card-module__hop-Card--second-level___8Vy6g" };
|
|
11
11
|
var GlobalCardCssSelector = "hop-Card";
|
|
12
12
|
var Card = (props, ref) => {
|
|
13
13
|
[props, ref] = useContextProps(props, ref, CardContext);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { _OverlineText } from './chunk-
|
|
1
|
+
import { _OverlineText } from './chunk-CYICQ2TZ.js';
|
|
2
2
|
import { BadgeContext } from './chunk-CQDLZ42T.js';
|
|
3
3
|
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
4
|
-
import { useRenderProps } from './chunk-
|
|
4
|
+
import { useRenderProps } from './chunk-2NSUMKNH.js';
|
|
5
5
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
6
6
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
7
7
|
import { slot, useStyledSystem } from '@hopper-ui/styled-system';
|
|
@@ -23,7 +23,7 @@ function mapOrbiterToHopperVariants(variant) {
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
// css-module:./Badge.module.css#css-module
|
|
26
|
-
var Badge_module_default = { "hop-Badge": "Badge-module__hop-
|
|
26
|
+
var Badge_module_default = { "hop-Badge": "Badge-module__hop-Badge___qe0X9", "hop-Badge--primary": "Badge-module__hop-Badge--primary___-DNrq", "hop-Badge--secondary": "Badge-module__hop-Badge--secondary___dRkhc", "hop-Badge--subdued": "Badge-module__hop-Badge--subdued___Nk53Z" };
|
|
27
27
|
var GlobalBadgeCssSelector = "hop-Badge";
|
|
28
28
|
function Badge(props, ref) {
|
|
29
29
|
[props, ref] = useContextProps(props, ref, BadgeContext);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { _Text } from './chunk-
|
|
1
|
+
import { _Text } from './chunk-Z7ORLEY6.js';
|
|
2
2
|
import { useImageFallback } from './chunk-3ZCLNFNH.js';
|
|
3
|
-
import { _RichIconAvatarImage } from './chunk-
|
|
4
|
-
import { useRenderProps } from './chunk-
|
|
3
|
+
import { _RichIconAvatarImage } from './chunk-IMUQCB4Q.js';
|
|
4
|
+
import { useRenderProps } from './chunk-2NSUMKNH.js';
|
|
5
5
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
6
6
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
7
7
|
import { AvatarContext } from './chunk-AES7QBQE.js';
|
|
@@ -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___uaglU", "hop-Avatar--xs": "Avatar-module__hop-Avatar--xs___KT2Cs", "hop-Avatar--sm": "Avatar-module__hop-Avatar--sm___KOKG9", "hop-Avatar--md": "Avatar-module__hop-Avatar--md___s05cw", "hop-Avatar--lg": "Avatar-module__hop-Avatar--lg___ejJXn", "hop-Avatar--xl": "Avatar-module__hop-Avatar--xl___9iWCW", "hop-Avatar--2xl": "Avatar-module__hop-Avatar--2xl___bApAA", "hop-Avatar--decorative-option1": "Avatar-module__hop-Avatar--decorative-option1___wikqa", "hop-Avatar--decorative-option2": "Avatar-module__hop-Avatar--decorative-option2___bOBre", "hop-Avatar--decorative-option3": "Avatar-module__hop-Avatar--decorative-option3___0shrA", "hop-Avatar--decorative-option4": "Avatar-module__hop-Avatar--decorative-option4___x8O4c", "hop-Avatar--decorative-option5": "Avatar-module__hop-Avatar--decorative-option5___P3g-d", "hop-Avatar--decorative-option6": "Avatar-module__hop-Avatar--decorative-option6___qOLjq", "hop-Avatar--decorative-option7": "Avatar-module__hop-Avatar--decorative-option7___vWdmE", "hop-Avatar--decorative-option8": "Avatar-module__hop-Avatar--decorative-option8___9rdja", "hop-Avatar--decorative-option9": "Avatar-module__hop-Avatar--decorative-option9___YogVd", "hop-Avatar__image": "Avatar-module__hop-Avatar__image___gzGxH" };
|
|
17
17
|
var GlobalAvatarCssSelector = "hop-Avatar";
|
|
18
18
|
var AvatarToTextSizeAdapter = {
|
|
19
19
|
xs: "xs",
|
|
@@ -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-VOXZA4YS.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___fv4X4", "hop-Label__indicator": "Label-module__hop-Label__indicator___5kTP2" };
|
|
14
14
|
var GlobalLabelCssSelector = "hop-Label";
|
|
15
15
|
function Label(props, ref) {
|
|
16
16
|
[props, ref] = useContextProps(props, ref, LabelContext);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RichIconAvatarImageContext } from './chunk-JWW56J7M.js';
|
|
2
|
-
import { useRenderProps } from './chunk-
|
|
2
|
+
import { useRenderProps } from './chunk-2NSUMKNH.js';
|
|
3
3
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
4
4
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
5
5
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
@@ -11,7 +11,7 @@ import { useContextProps, composeRenderProps } from 'react-aria-components';
|
|
|
11
11
|
import { jsx } from 'react/jsx-runtime';
|
|
12
12
|
|
|
13
13
|
// css-module:./RichIconAvatarImage.module.css#css-module
|
|
14
|
-
var RichIconAvatarImage_module_default = { "hop-RichIconAvatarImage": "RichIconAvatarImage-module__hop-
|
|
14
|
+
var RichIconAvatarImage_module_default = { "hop-RichIconAvatarImage": "RichIconAvatarImage-module__hop-RichIconAvatarImage___0IsPN", "hop-RichIconAvatarImage--xs": "RichIconAvatarImage-module__hop-RichIconAvatarImage--xs___DPIb2", "hop-RichIconAvatarImage--sm": "RichIconAvatarImage-module__hop-RichIconAvatarImage--sm___PH9xm", "hop-RichIconAvatarImage--md": "RichIconAvatarImage-module__hop-RichIconAvatarImage--md___xQ8ur", "hop-RichIconAvatarImage--lg": "RichIconAvatarImage-module__hop-RichIconAvatarImage--lg___KadVI", "hop-RichIconAvatarImage--xl": "RichIconAvatarImage-module__hop-RichIconAvatarImage--xl___9KUqe", "hop-RichIconAvatarImage--2xl": "RichIconAvatarImage-module__hop-RichIconAvatarImage--2xl___zgLKn", "hop-RichIconAvatarImage__icon": "RichIconAvatarImage-module__hop-RichIconAvatarImage__icon___2pOPp" };
|
|
15
15
|
var GlobalRichIconAvatarImageCssSelector = "hop-RichIconAvatarImage";
|
|
16
16
|
var AvatarToIconSizeAdapter = {
|
|
17
17
|
xs: "md",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SpinnerContext } from './chunk-4ZYV2XLW.js';
|
|
2
|
-
import { _Text } from './chunk-
|
|
2
|
+
import { _Text } from './chunk-Z7ORLEY6.js';
|
|
3
3
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
4
4
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
5
5
|
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
@@ -9,7 +9,7 @@ import { useContextProps, ProgressBar } from 'react-aria-components';
|
|
|
9
9
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
10
10
|
|
|
11
11
|
// css-module:./Spinner.module.css#css-module
|
|
12
|
-
var Spinner_module_default = { "hop-Spinner": "Spinner-module__hop-
|
|
12
|
+
var Spinner_module_default = { "hop-Spinner": "Spinner-module__hop-Spinner___hkpDy", "spin": "Spinner-module__spin___N3YMK", "hop-Spinner--sm": "Spinner-module__hop-Spinner--sm___kHuxY", "hop-Spinner--md": "Spinner-module__hop-Spinner--md___zdnoq", "hop-Spinner--lg": "Spinner-module__hop-Spinner--lg___brMOC", "hop-Spinner__track": "Spinner-module__hop-Spinner__track___yu4cv", "hop-Spinner__fill": "Spinner-module__hop-Spinner__fill___asRxx", "hop-Spinner__label": "Spinner-module__hop-Spinner__label___nSWTU" };
|
|
13
13
|
var GlobalSpinnerCssSelector = "hop-Spinner";
|
|
14
14
|
var SpinnerToTextSizeAdapter = {
|
|
15
15
|
sm: "xs",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { SwitchContext } from './chunk-YHBJAXUY.js';
|
|
2
1
|
import { SwitchFieldContext } from './chunk-H7VJS4MX.js';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { SwitchContext } from './chunk-YHBJAXUY.js';
|
|
3
|
+
import { _Text } from './chunk-Z7ORLEY6.js';
|
|
4
|
+
import { useRenderProps } from './chunk-2NSUMKNH.js';
|
|
5
5
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
6
6
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
7
7
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
@@ -13,7 +13,7 @@ import { useContextProps, composeRenderProps } from 'react-aria-components';
|
|
|
13
13
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
14
14
|
|
|
15
15
|
// css-module:./SwitchField.module.css#css-module
|
|
16
|
-
var SwitchField_module_default = { "hop-SwitchField": "SwitchField-module__hop-
|
|
16
|
+
var SwitchField_module_default = { "hop-SwitchField": "SwitchField-module__hop-SwitchField___S4HCy", "hop-SwitchField--sm": "SwitchField-module__hop-SwitchField--sm___lVE-c", "hop-SwitchField--md": "SwitchField-module__hop-SwitchField--md___jTeoX", "hop-SwitchField__description": "SwitchField-module__hop-SwitchField__description___bkapL", "hop-SwitchField__switch": "SwitchField-module__hop-SwitchField__switch___K5lq-" };
|
|
17
17
|
var GlobalSwitchFieldCssSelector = "hop-SwitchField";
|
|
18
18
|
var SwitchToDescriptionSizeAdapter = {
|
|
19
19
|
sm: "xs",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { useSlot } from './chunk-H5YTU3U7.js';
|
|
2
|
-
import { _Spinner } from './chunk-
|
|
2
|
+
import { _Spinner } from './chunk-IYT75GWO.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-SRMMLWHK.js';
|
|
6
6
|
import { useLocalizedString } from './chunk-75DHKNW2.js';
|
|
7
|
-
import { useFormProps } from './chunk-
|
|
7
|
+
import { useFormProps } from './chunk-VOXZA4YS.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___Ojez3", "hop-Button--fluid": "Button-module__hop-Button--fluid___Dagxg", "hop-Button--sm": "Button-module__hop-Button--sm___GfzEN", "hop-Button--md": "Button-module__hop-Button--md___T0R4o", "hop-Button--icon-only": "Button-module__hop-Button--icon-only___Tjy-f", "hop-Button--primary": "Button-module__hop-Button--primary___Z-C-k", "hop-Button--secondary": "Button-module__hop-Button--secondary___ddXsj", "hop-Button--upsell": "Button-module__hop-Button--upsell___GF-S1", "hop-Button--danger": "Button-module__hop-Button--danger___2bBxQ", "hop-Button--ghost-primary": "Button-module__hop-Button--ghost-primary___HkCuf", "hop-Button--ghost-secondary": "Button-module__hop-Button--ghost-secondary___Hxqok", "hop-Button--ghost-danger": "Button-module__hop-Button--ghost-danger___yGySx", "hop-Button__Spinner": "Button-module__hop-Button__Spinner___AYk-P", "hop-Button__icon": "Button-module__hop-Button__icon___VXnHZ", "hop-Button__icon-list": "Button-module__hop-Button__icon-list___WxNSG", "hop-Button__text": "Button-module__hop-Button__text___1mYTK", "hop-Button__end-icon": "Button-module__hop-Button__end-icon___h4k7L", "hop-Button__end-icon-list": "Button-module__hop-Button__end-icon-list___OMSZ2" };
|
|
21
21
|
var GlobalButtonCssSelector = "hop-Button";
|
|
22
22
|
function Button(props, ref) {
|
|
23
23
|
var _a, _b;
|
|
@@ -62,7 +62,7 @@ function Button(props, ref) {
|
|
|
62
62
|
const children = composeRenderProps(childrenProp, (prev) => {
|
|
63
63
|
return ensureTextWrapper(prev);
|
|
64
64
|
});
|
|
65
|
-
const { className: spinnerClassName, ...otherSpinnerProps } = spinnerProps
|
|
65
|
+
const { className: spinnerClassName, ...otherSpinnerProps } = spinnerProps != null ? spinnerProps : {};
|
|
66
66
|
const spinnerClassNames = clsx(Button_module_default["hop-Button__Spinner"], spinnerClassName);
|
|
67
67
|
return /* @__PURE__ */ jsx(
|
|
68
68
|
SlotProvider,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ensureTextWrapper } from './chunk-
|
|
1
|
+
import { ensureTextWrapper } from './chunk-SRMMLWHK.js';
|
|
2
2
|
import { FormContext } from './chunk-Q7NXUUB3.js';
|
|
3
|
-
import { DisclosureContext } from './chunk-MUAXK42C.js';
|
|
4
3
|
import { DisclosurePanelContext } from './chunk-7CJXILRD.js';
|
|
4
|
+
import { DisclosureContext } from './chunk-MUAXK42C.js';
|
|
5
5
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
6
6
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
7
7
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
@@ -12,7 +12,7 @@ import { useContextProps, useSlottedContext, composeRenderProps, DisclosurePanel
|
|
|
12
12
|
import { jsx } from 'react/jsx-runtime';
|
|
13
13
|
|
|
14
14
|
// css-module:./DisclosurePanel.module.css#css-module
|
|
15
|
-
var DisclosurePanel_module_default = { "hop-DisclosurePanel": "DisclosurePanel-module__hop-
|
|
15
|
+
var DisclosurePanel_module_default = { "hop-DisclosurePanel": "DisclosurePanel-module__hop-DisclosurePanel___AyYRE", "hop-DisclosurePanel--inline": "DisclosurePanel-module__hop-DisclosurePanel--inline___6Xp8X", "hop-DisclosurePanel--disabled": "DisclosurePanel-module__hop-DisclosurePanel--disabled___mlVsm", "hop-DisclosurePanel__text": "DisclosurePanel-module__hop-DisclosurePanel__text___5O9-4" };
|
|
16
16
|
var GlobalDisclosurePanelCssSelector = "hop-DisclosurePanel";
|
|
17
17
|
function DisclosurePanel(props, ref) {
|
|
18
18
|
[props, ref] = useContextProps(props, ref, DisclosurePanelContext);
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _InputGroup } from './chunk-F6D7LSXZ.js';
|
|
2
|
+
import { InputContext, Input } from './chunk-7HIGRTLG.js';
|
|
3
|
+
import { _Popover } from './chunk-N455JVEG.js';
|
|
2
4
|
import { _Footer } from './chunk-VOZN65OL.js';
|
|
3
5
|
import { _ListBoxSection } from './chunk-DZJSSJVJ.js';
|
|
4
|
-
import { _ListBox } from './chunk-
|
|
5
|
-
import { _ListBoxItem } from './chunk-
|
|
6
|
-
import { _HelperMessage } from './chunk-
|
|
6
|
+
import { _ListBox } from './chunk-WNFSIU36.js';
|
|
7
|
+
import { _ListBoxItem } from './chunk-Q5XBTXXT.js';
|
|
8
|
+
import { _HelperMessage } from './chunk-6CVROWNN.js';
|
|
9
|
+
import { _ErrorMessage } from './chunk-UXCNMI34.js';
|
|
10
|
+
import { _ToggleArrow } from './chunk-W2TEMTXK.js';
|
|
11
|
+
import { ensureTextWrapper } from './chunk-SRMMLWHK.js';
|
|
12
|
+
import { _Label } from './chunk-I2LTZFXN.js';
|
|
13
|
+
import { useFormProps } from './chunk-VOXZA4YS.js';
|
|
7
14
|
import { ComboBoxContext } from './chunk-4XHTP4GX.js';
|
|
8
|
-
import { _ErrorMessage } from './chunk-N3XC5CZP.js';
|
|
9
|
-
import { _ToggleArrow } from './chunk-OIELLCFE.js';
|
|
10
|
-
import { ensureTextWrapper } from './chunk-4BXMSXYQ.js';
|
|
11
|
-
import { _Label } from './chunk-PHQ6YPQQ.js';
|
|
12
|
-
import { useFormProps } from './chunk-7EUXODLY.js';
|
|
13
15
|
import { BadgeContext } from './chunk-CQDLZ42T.js';
|
|
14
16
|
import { TextContext as TextContext$1 } from './chunk-X6SER3TZ.js';
|
|
15
17
|
import { ClearProviders, ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
@@ -20,11 +22,11 @@ import { IconContext } from '@hopper-ui/icons';
|
|
|
20
22
|
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
21
23
|
import { useObjectRef, mergeRefs, useResizeObserver } from '@react-aria/utils';
|
|
22
24
|
import { forwardRef, useRef, useState, useCallback } from 'react';
|
|
23
|
-
import { useContextProps, useSlottedContext,
|
|
25
|
+
import { useContextProps, useSlottedContext, composeRenderProps, TextContext, ButtonContext, ComboBox as ComboBox$1, Button } from 'react-aria-components';
|
|
24
26
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
25
27
|
|
|
26
28
|
// css-module:./ComboBox.module.css#css-module
|
|
27
|
-
var ComboBox_module_default = { "hop-ComboBox": "ComboBox-module__hop-
|
|
29
|
+
var ComboBox_module_default = { "hop-ComboBox": "ComboBox-module__hop-ComboBox___fgbNY", "hop-ComboBox--fluid": "ComboBox-module__hop-ComboBox--fluid___H0DoH", "hop-ComboBox__label": "ComboBox-module__hop-ComboBox__label___Dphfc", "hop-ComboBox__trigger": "ComboBox-module__hop-ComboBox__trigger___RxhHZ", "hop-ComboBox__button": "ComboBox-module__hop-ComboBox__button___SOdje", "hop-ComboBox__prefix": "ComboBox-module__hop-ComboBox__prefix___nvDN8", "hop-ComboBox__helper-message": "ComboBox-module__hop-ComboBox__helper-message___8T3DF", "hop-ComboBox__error-message": "ComboBox-module__hop-ComboBox__error-message___RSeVN" };
|
|
28
30
|
var GlobalComboBoxCssSelector = "hop-ComboBox";
|
|
29
31
|
function ComboBox(props, ref) {
|
|
30
32
|
var _a, _b, _c, _d, _e;
|
|
@@ -44,6 +46,7 @@ function ComboBox(props, ref) {
|
|
|
44
46
|
errorMessage,
|
|
45
47
|
footer,
|
|
46
48
|
isAutoMenuWidth,
|
|
49
|
+
isDisabled,
|
|
47
50
|
isFluid: isFluidProp,
|
|
48
51
|
isInvalid,
|
|
49
52
|
isLoading,
|
|
@@ -68,7 +71,6 @@ function ComboBox(props, ref) {
|
|
|
68
71
|
const inputContext = useSlottedContext(InputContext);
|
|
69
72
|
const mergedInputRefs = (inputContext == null ? void 0 : inputContext.ref) ? mergeRefs(inputRef, inputContext.ref) : inputRef;
|
|
70
73
|
const triggerRef = useRef(null);
|
|
71
|
-
const buttonRef = useRef(null);
|
|
72
74
|
const [triggerWidth, setTriggerWidth] = useState(null);
|
|
73
75
|
const onResize = useCallback(() => {
|
|
74
76
|
if (triggerRef.current) {
|
|
@@ -79,12 +81,10 @@ function ComboBox(props, ref) {
|
|
|
79
81
|
ref: triggerRef,
|
|
80
82
|
onResize
|
|
81
83
|
});
|
|
82
|
-
const { stylingProps: triggerStylingProps, ...triggerOwnProps } = useStyledSystem(triggerProps != null ? triggerProps : {});
|
|
83
84
|
const {
|
|
84
85
|
className: triggerClassName,
|
|
85
|
-
style: triggerStyleProp,
|
|
86
86
|
...otherTriggerProps
|
|
87
|
-
} =
|
|
87
|
+
} = triggerProps != null ? triggerProps : {};
|
|
88
88
|
const {
|
|
89
89
|
style: popoverStyleProp
|
|
90
90
|
} = popoverProps != null ? popoverProps : {};
|
|
@@ -109,35 +109,19 @@ function ComboBox(props, ref) {
|
|
|
109
109
|
ComboBox_module_default,
|
|
110
110
|
"hop-ComboBox__trigger",
|
|
111
111
|
size
|
|
112
|
-
),
|
|
113
|
-
triggerStylingProps.className
|
|
114
|
-
);
|
|
115
|
-
const buttonClassNames = composeClassnameRenderProps(
|
|
116
|
-
cssModule(
|
|
117
|
-
ComboBox_module_default,
|
|
118
|
-
"hop-ComboBox__button"
|
|
119
112
|
)
|
|
120
113
|
);
|
|
121
|
-
const inputClassNames = composeClassnameRenderProps(
|
|
122
|
-
inputContext == null ? void 0 : inputContext.className,
|
|
123
|
-
ComboBox_module_default["hop-ComboBox__input"]
|
|
124
|
-
);
|
|
125
114
|
const style = composeRenderProps(styleProp, (prev) => {
|
|
126
115
|
return {
|
|
127
116
|
...stylingProps.style,
|
|
128
117
|
...prev
|
|
129
118
|
};
|
|
130
119
|
});
|
|
131
|
-
const triggerStyle = composeRenderProps(triggerStyleProp, (prev) => {
|
|
132
|
-
return {
|
|
133
|
-
...triggerStylingProps.style,
|
|
134
|
-
...prev
|
|
135
|
-
};
|
|
136
|
-
});
|
|
137
120
|
const popoverStyle = composeRenderProps(popoverStyleProp, (prev) => {
|
|
138
121
|
return {
|
|
139
122
|
...prev,
|
|
140
123
|
"--custom-trigger-width": triggerWidth
|
|
124
|
+
// TODO: declaring a variable here and using it in the Popover.module.css is a mistake.
|
|
141
125
|
};
|
|
142
126
|
});
|
|
143
127
|
const footerMarkup = footer ? /* @__PURE__ */ jsx(
|
|
@@ -161,12 +145,6 @@ function ComboBox(props, ref) {
|
|
|
161
145
|
)
|
|
162
146
|
}
|
|
163
147
|
) : null;
|
|
164
|
-
const handleMouseDown = useCallback((e) => {
|
|
165
|
-
if (inputRef.current && e.target !== inputRef.current && buttonRef.current && e.target !== buttonRef.current) {
|
|
166
|
-
inputRef.current.focus();
|
|
167
|
-
e.preventDefault();
|
|
168
|
-
}
|
|
169
|
-
}, [inputRef]);
|
|
170
148
|
const prefixMarkup = prefix ? /* @__PURE__ */ jsx(
|
|
171
149
|
SlotProvider,
|
|
172
150
|
{
|
|
@@ -187,9 +165,9 @@ function ComboBox(props, ref) {
|
|
|
187
165
|
isRequired,
|
|
188
166
|
items,
|
|
189
167
|
menuTrigger,
|
|
168
|
+
isDisabled,
|
|
190
169
|
...otherProps,
|
|
191
|
-
children: (
|
|
192
|
-
const { isOpen } = comboBoxRenderProps;
|
|
170
|
+
children: ({ isOpen }) => {
|
|
193
171
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
194
172
|
label && /* @__PURE__ */ jsx(
|
|
195
173
|
_Label,
|
|
@@ -200,6 +178,38 @@ function ComboBox(props, ref) {
|
|
|
200
178
|
children: label
|
|
201
179
|
}
|
|
202
180
|
),
|
|
181
|
+
/* @__PURE__ */ jsxs(
|
|
182
|
+
_InputGroup,
|
|
183
|
+
{
|
|
184
|
+
ref: triggerRef,
|
|
185
|
+
className: triggerClassNames,
|
|
186
|
+
"data-selected": isOpen || void 0,
|
|
187
|
+
isFluid: true,
|
|
188
|
+
isDisabled,
|
|
189
|
+
isInvalid,
|
|
190
|
+
...otherTriggerProps,
|
|
191
|
+
children: [
|
|
192
|
+
prefixMarkup,
|
|
193
|
+
/* @__PURE__ */ jsx(
|
|
194
|
+
Input,
|
|
195
|
+
{
|
|
196
|
+
ref: mergedInputRefs,
|
|
197
|
+
placeholder,
|
|
198
|
+
size
|
|
199
|
+
}
|
|
200
|
+
),
|
|
201
|
+
/* @__PURE__ */ jsx(Button, { className: ComboBox_module_default["hop-ComboBox__button"], children: /* @__PURE__ */ jsx(
|
|
202
|
+
_ToggleArrow,
|
|
203
|
+
{
|
|
204
|
+
className: ComboBox_module_default["hop-ComboBox__button-icon"],
|
|
205
|
+
isExpanded: isOpen
|
|
206
|
+
}
|
|
207
|
+
) })
|
|
208
|
+
]
|
|
209
|
+
}
|
|
210
|
+
),
|
|
211
|
+
description && /* @__PURE__ */ jsx(_HelperMessage, { className: ComboBox_module_default["hop-ComboBox__helper-message"], children: description }),
|
|
212
|
+
/* @__PURE__ */ jsx(_ErrorMessage, { className: ComboBox_module_default["hop-ComboBox__error-message"], children: errorMessage }),
|
|
203
213
|
/* @__PURE__ */ jsxs(
|
|
204
214
|
_Popover,
|
|
205
215
|
{
|
|
@@ -237,38 +247,7 @@ function ComboBox(props, ref) {
|
|
|
237
247
|
footerMarkup
|
|
238
248
|
]
|
|
239
249
|
}
|
|
240
|
-
)
|
|
241
|
-
/* @__PURE__ */ jsxs(
|
|
242
|
-
Group,
|
|
243
|
-
{
|
|
244
|
-
ref: triggerRef,
|
|
245
|
-
className: triggerClassNames,
|
|
246
|
-
style: triggerStyle,
|
|
247
|
-
onMouseDown: handleMouseDown,
|
|
248
|
-
"data-selected": isOpen || void 0,
|
|
249
|
-
...otherTriggerProps,
|
|
250
|
-
children: [
|
|
251
|
-
prefixMarkup,
|
|
252
|
-
/* @__PURE__ */ jsx(
|
|
253
|
-
Input,
|
|
254
|
-
{
|
|
255
|
-
ref: mergedInputRefs,
|
|
256
|
-
className: inputClassNames,
|
|
257
|
-
placeholder
|
|
258
|
-
}
|
|
259
|
-
),
|
|
260
|
-
/* @__PURE__ */ jsx(Button, { className: buttonClassNames, ref: buttonRef, children: /* @__PURE__ */ jsx(
|
|
261
|
-
_ToggleArrow,
|
|
262
|
-
{
|
|
263
|
-
className: ComboBox_module_default["hop-ComboBox__button-icon"],
|
|
264
|
-
isExpanded: isOpen
|
|
265
|
-
}
|
|
266
|
-
) })
|
|
267
|
-
]
|
|
268
|
-
}
|
|
269
|
-
),
|
|
270
|
-
description && /* @__PURE__ */ jsx(_HelperMessage, { className: ComboBox_module_default["hop-ComboBox__helper-message"], children: description }),
|
|
271
|
-
/* @__PURE__ */ jsx(_ErrorMessage, { className: ComboBox_module_default["hop-ComboBox__error-message"], children: errorMessage })
|
|
250
|
+
)
|
|
272
251
|
] });
|
|
273
252
|
}
|
|
274
253
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useLocalizedString } from './chunk-75DHKNW2.js';
|
|
2
|
-
import { _Text } from './chunk-
|
|
3
|
-
import { useRenderProps } from './chunk-
|
|
2
|
+
import { _Text } from './chunk-Z7ORLEY6.js';
|
|
3
|
+
import { useRenderProps } from './chunk-2NSUMKNH.js';
|
|
4
4
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
5
5
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
6
6
|
import { useStyledSystem } from '@hopper-ui/styled-system';
|
|
@@ -10,7 +10,7 @@ import { composeRenderProps } from 'react-aria-components';
|
|
|
10
10
|
import { jsx } from 'react/jsx-runtime';
|
|
11
11
|
|
|
12
12
|
// css-module:./RemainingCharacterCount.module.css#css-module
|
|
13
|
-
var RemainingCharacterCount_module_default = { "hop-RemainingCharacterCount": "RemainingCharacterCount-module__hop-
|
|
13
|
+
var RemainingCharacterCount_module_default = { "hop-RemainingCharacterCount": "RemainingCharacterCount-module__hop-RemainingCharacterCount___1Y--o" };
|
|
14
14
|
var GlobalRemainingCharacterCountCssSelector = "hop-RemainingCharacterCount";
|
|
15
15
|
function RemainingCharacterCount(props, ref) {
|
|
16
16
|
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
@@ -7,7 +7,7 @@ import { useContextProps, Separator } from 'react-aria-components';
|
|
|
7
7
|
import { jsx } from 'react/jsx-runtime';
|
|
8
8
|
|
|
9
9
|
// css-module:./Divider.module.css#css-module
|
|
10
|
-
var Divider_module_default = { "hop-Divider": "Divider-module__hop-
|
|
10
|
+
var Divider_module_default = { "hop-Divider": "Divider-module__hop-Divider___OxCkp", "hop-Divider--vertical": "Divider-module__hop-Divider--vertical___ccTCS" };
|
|
11
11
|
var GlobalDividerCssSelector = "hop-Divider";
|
|
12
12
|
function Divider(props, ref) {
|
|
13
13
|
[props, ref] = useContextProps(props, ref, DividerContext);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { useScale } from './chunk-MTDFS4CZ.js';
|
|
2
1
|
import { NumberFieldContext } from './chunk-ZQ3AWYRR.js';
|
|
3
|
-
import { _InputGroup } from './chunk-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
2
|
+
import { _InputGroup } from './chunk-F6D7LSXZ.js';
|
|
3
|
+
import { Input } from './chunk-7HIGRTLG.js';
|
|
4
|
+
import { _HelperMessage } from './chunk-6CVROWNN.js';
|
|
5
|
+
import { _ErrorMessage } from './chunk-UXCNMI34.js';
|
|
6
|
+
import { ensureTextWrapper } from './chunk-SRMMLWHK.js';
|
|
7
|
+
import { _Label } from './chunk-I2LTZFXN.js';
|
|
8
|
+
import { useFormProps } from './chunk-VOXZA4YS.js';
|
|
9
9
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
10
10
|
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
11
11
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
@@ -18,21 +18,18 @@ import { useControlledState } from '@react-stately/utils';
|
|
|
18
18
|
import clsx from 'clsx';
|
|
19
19
|
import { forwardRef, useCallback } from 'react';
|
|
20
20
|
import { useObjectRef } from 'react-aria';
|
|
21
|
-
import { useContextProps, composeRenderProps,
|
|
21
|
+
import { useContextProps, composeRenderProps, NumberField as NumberField$1, Button } from 'react-aria-components';
|
|
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___dhnwb", "hop-NumberField--fluid": "NumberField-module__hop-NumberField--fluid___Fd5JF", "hop-NumberField__Label": "NumberField-module__hop-NumberField__Label___eSiJV", "hop-NumberField__prefix": "NumberField-module__hop-NumberField__prefix___HmWRG", "hop-NumberField__InputGroup": "NumberField-module__hop-NumberField__InputGroup___LxxHA", "hop-NumberField__ErrorMessage": "NumberField-module__hop-NumberField__ErrorMessage___9soGX", "hop-NumberField__HelperMessage": "NumberField-module__hop-NumberField__HelperMessage___O7-rE", "hop-NumberField__steppers": "NumberField-module__hop-NumberField__steppers___jnJho", "hop-NumberField__stepper-button": "NumberField-module__hop-NumberField__stepper-button___sC0Lo", "hop-NumberField__stepper-button--increment": "NumberField-module__hop-NumberField__stepper-button--increment___H939x", "hop-NumberField__stepper-button--decrement": "NumberField-module__hop-NumberField__stepper-button--decrement___vI5jT", "hop-NumberField__stepper-button__icon": "NumberField-module__hop-NumberField__stepper-button__icon___vbB-0", "hop-NumberField__input": "NumberField-module__hop-NumberField__input___w-Nqt" };
|
|
26
26
|
var GlobalNumberFieldCssSelector = "hop-NumberField";
|
|
27
27
|
var StepperButton = ({ direction }) => {
|
|
28
|
-
const scale = useScale();
|
|
29
|
-
const isMobile = scale === "large";
|
|
30
28
|
const StepperIcon = direction === "increment" ? AngleUpIcon : AngleDownIcon;
|
|
31
29
|
const stepperClasses = cssModule(
|
|
32
30
|
NumberField_module_default,
|
|
33
31
|
"hop-NumberField__stepper-button",
|
|
34
|
-
direction
|
|
35
|
-
isMobile && "mobile"
|
|
32
|
+
direction
|
|
36
33
|
);
|
|
37
34
|
return /* @__PURE__ */ jsx(
|
|
38
35
|
Button,
|
|
@@ -82,16 +79,13 @@ function NumberField(props, ref) {
|
|
|
82
79
|
} = ownProps;
|
|
83
80
|
const inputRef = useObjectRef(mergeRefs(userProvidedInputRef, props.inputRef !== void 0 ? props.inputRef : null));
|
|
84
81
|
const isFluid = (_a = useResponsiveValue(isFluidProp)) != null ? _a : false;
|
|
85
|
-
const scale = useScale();
|
|
86
|
-
const isMobile = scale === "large";
|
|
87
82
|
const classNames = composeClassnameRenderProps(
|
|
88
83
|
className,
|
|
89
84
|
GlobalNumberFieldCssSelector,
|
|
90
85
|
cssModule(
|
|
91
86
|
NumberField_module_default,
|
|
92
87
|
"hop-NumberField",
|
|
93
|
-
isFluid && "fluid"
|
|
94
|
-
isMobile && "mobile"
|
|
88
|
+
isFluid && "fluid"
|
|
95
89
|
),
|
|
96
90
|
stylingProps.className
|
|
97
91
|
);
|
|
@@ -115,25 +109,23 @@ function NumberField(props, ref) {
|
|
|
115
109
|
children: ensureTextWrapper(prefix)
|
|
116
110
|
}
|
|
117
111
|
) : null;
|
|
118
|
-
const { className: inputGroupClassName,
|
|
112
|
+
const { className: inputGroupClassName, ...otherInputGroupProps } = inputGroupProps != null ? inputGroupProps : {};
|
|
119
113
|
const inputGroupClassNames = clsx(NumberField_module_default["hop-NumberField__InputGroup"], inputGroupClassName);
|
|
120
|
-
const inputGroupInputClassNames = clsx(NumberField_module_default["hop-NumberField__input"], inputGroupInputClassName);
|
|
121
114
|
const inputMarkup = /* @__PURE__ */ jsx(ClearContainerSlots, { children: /* @__PURE__ */ jsxs(
|
|
122
115
|
_InputGroup,
|
|
123
116
|
{
|
|
124
117
|
isFluid: true,
|
|
125
|
-
size,
|
|
126
118
|
className: inputGroupClassNames,
|
|
127
119
|
isDisabled,
|
|
128
120
|
isInvalid,
|
|
129
|
-
inputClassName: inputGroupInputClassNames,
|
|
130
|
-
inputType: "number",
|
|
131
121
|
...otherInputGroupProps,
|
|
132
122
|
children: [
|
|
133
123
|
prefixMarkup,
|
|
134
|
-
/* @__PURE__ */ jsx(Input, { ref: inputRef }),
|
|
135
|
-
/* @__PURE__ */
|
|
136
|
-
|
|
124
|
+
/* @__PURE__ */ jsx(Input, { ref: inputRef, className: NumberField_module_default["hop-NumberField__input"], size }),
|
|
125
|
+
/* @__PURE__ */ jsxs("div", { className: NumberField_module_default["hop-NumberField__steppers"], children: [
|
|
126
|
+
/* @__PURE__ */ jsx(StepperButton, { direction: "increment" }),
|
|
127
|
+
/* @__PURE__ */ jsx(StepperButton, { direction: "decrement" })
|
|
128
|
+
] })
|
|
137
129
|
]
|
|
138
130
|
}
|
|
139
131
|
) });
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { InternalTileContext } from './chunk-JTNKUYE5.js';
|
|
2
|
+
import { TileGroupContext } from './chunk-3MTGAZ77.js';
|
|
3
|
+
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
4
|
+
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
5
|
+
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
6
|
+
import { forwardRef } from 'react';
|
|
7
|
+
import { useContextProps, composeRenderProps, ToggleButtonGroup, Provider } from 'react-aria-components';
|
|
8
|
+
import { jsx } from 'react/jsx-runtime';
|
|
9
|
+
|
|
10
|
+
// css-module:./TileGroup.module.css#css-module
|
|
11
|
+
var TileGroup_module_default = { "hop-TileGroup": "TileGroup-module__hop-TileGroup___qtBC1" };
|
|
12
|
+
var GlobalTileGroupCssSelector = "hop-TileGroup";
|
|
13
|
+
var TileGroup = (props, ref) => {
|
|
14
|
+
[props, ref] = useContextProps(props, ref, TileGroupContext);
|
|
15
|
+
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
16
|
+
const {
|
|
17
|
+
className,
|
|
18
|
+
children: childrenProp,
|
|
19
|
+
style,
|
|
20
|
+
slot,
|
|
21
|
+
isDisabled,
|
|
22
|
+
selectionMode = "single",
|
|
23
|
+
disallowEmptySelection = true,
|
|
24
|
+
numberOfColumns = 3,
|
|
25
|
+
...otherProps
|
|
26
|
+
} = ownProps;
|
|
27
|
+
const columns = useResponsiveValue(numberOfColumns);
|
|
28
|
+
const classNames = composeClassnameRenderProps(
|
|
29
|
+
GlobalTileGroupCssSelector,
|
|
30
|
+
cssModule(
|
|
31
|
+
TileGroup_module_default,
|
|
32
|
+
"hop-TileGroup"
|
|
33
|
+
),
|
|
34
|
+
stylingProps.className,
|
|
35
|
+
className
|
|
36
|
+
);
|
|
37
|
+
const mergedStyles = composeRenderProps(style, (prev) => {
|
|
38
|
+
return {
|
|
39
|
+
...stylingProps.style,
|
|
40
|
+
...{
|
|
41
|
+
gridTemplateColumns: `repeat(${columns}, 1fr)`
|
|
42
|
+
},
|
|
43
|
+
...prev
|
|
44
|
+
};
|
|
45
|
+
});
|
|
46
|
+
const children = composeRenderProps(childrenProp, (prev) => {
|
|
47
|
+
return prev;
|
|
48
|
+
});
|
|
49
|
+
return /* @__PURE__ */ jsx(
|
|
50
|
+
ToggleButtonGroup,
|
|
51
|
+
{
|
|
52
|
+
ref,
|
|
53
|
+
className: classNames,
|
|
54
|
+
style: mergedStyles,
|
|
55
|
+
slot: slot != null ? slot : void 0,
|
|
56
|
+
isDisabled,
|
|
57
|
+
selectionMode,
|
|
58
|
+
disallowEmptySelection,
|
|
59
|
+
...otherProps,
|
|
60
|
+
children: (renderProps) => /* @__PURE__ */ jsx(
|
|
61
|
+
Provider,
|
|
62
|
+
{
|
|
63
|
+
values: [
|
|
64
|
+
[InternalTileContext, { isDisabled }]
|
|
65
|
+
],
|
|
66
|
+
children: children(renderProps)
|
|
67
|
+
}
|
|
68
|
+
)
|
|
69
|
+
}
|
|
70
|
+
);
|
|
71
|
+
};
|
|
72
|
+
var _TileGroup = forwardRef(TileGroup);
|
|
73
|
+
_TileGroup.displayName = "TileGroup";
|
|
74
|
+
|
|
75
|
+
export { GlobalTileGroupCssSelector, _TileGroup };
|
|
@@ -19,7 +19,7 @@ import { useContextProps, composeRenderProps, Popover as Popover$1, Dialog } fro
|
|
|
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___s-Tc5", "fade": "Popover-module__fade___KKdAL", "hop-Popover__wrapper": "Popover-module__hop-Popover__wrapper___F22pC", "hop-Popover__dialog": "Popover-module__hop-Popover__dialog___9sc7A", "hop-Popover__dropdown": "Popover-module__hop-Popover__dropdown___fmSkA", "hop-Popover__title": "Popover-module__hop-Popover__title___E1FTb", "hop-Popover__content": "Popover-module__hop-Popover__content___ruY0N", "hop-Popover__list-box": "Popover-module__hop-Popover__list-box___Y9ii3", "hop-Popover__footer": "Popover-module__hop-Popover__footer___-mtVR", "hop-Popover__actions": "Popover-module__hop-Popover__actions___WKs0C", "hop-Popover__action": "Popover-module__hop-Popover__action___LBeX8" };
|
|
23
23
|
var GlobalPopoverCssSelector = "hop-Popover";
|
|
24
24
|
function Popover(props, ref) {
|
|
25
25
|
var _a;
|