@hopper-ui/components 1.4.7 → 1.4.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/dist/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 +7 -7
- 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 +9 -9
- package/dist/Badge/src/Badge.css +43 -43
- package/dist/Badge/src/Badge.js +5 -5
- 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 +7 -7
- package/dist/Callout/src/Callout.css +262 -262
- package/dist/Callout/src/Callout.js +13 -13
- 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 +26 -23
- 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 +26 -23
- 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 +4 -4
- package/dist/ErrorMessage/src/index.css +30 -30
- package/dist/ErrorMessage/src/index.js +4 -4
- 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/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 +16 -16
- package/dist/ListBox/src/ListBoxItem.css +263 -263
- package/dist/ListBox/src/ListBoxItem.js +15 -15
- 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 +16 -16
- package/dist/Modal/src/BaseModal.css +347 -0
- package/dist/Modal/src/BaseModal.d.ts +24 -0
- package/dist/Modal/src/BaseModal.js +5 -0
- package/dist/Modal/src/BaseModalContext.d.ts +8 -0
- package/dist/Modal/src/BaseModalContext.js +2 -0
- package/dist/Modal/src/CustomModal.css +361 -0
- package/dist/Modal/src/CustomModal.d.ts +35 -0
- package/dist/Modal/src/CustomModal.js +7 -0
- package/dist/Modal/src/CustomModalContext.d.ts +8 -0
- package/dist/Modal/src/CustomModalContext.js +2 -0
- package/dist/Modal/src/Modal.css +1806 -0
- package/dist/Modal/src/Modal.d.ts +33 -0
- package/dist/Modal/src/Modal.js +37 -0
- package/dist/Modal/src/ModalContext.d.ts +8 -0
- package/dist/Modal/src/ModalContext.js +2 -0
- package/dist/Modal/src/ModalTrigger.d.ts +5 -0
- package/dist/Modal/src/ModalTrigger.js +2 -0
- package/dist/Modal/src/index.css +1820 -0
- package/dist/Modal/src/index.d.ts +8 -0
- package/dist/Modal/src/index.js +40 -0
- 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 +23 -23
- package/dist/Select/src/SelectValue.css +62 -62
- package/dist/Select/src/SelectValue.js +10 -10
- package/dist/Select/src/index.css +576 -576
- package/dist/Select/src/index.js +23 -23
- 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 +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 +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.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 +12 -12
- 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 +9 -9
- 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 +9 -9
- package/dist/checkbox/src/CheckboxField.css +34 -34
- package/dist/checkbox/src/CheckboxField.js +5 -5
- package/dist/checkbox/src/CheckboxGroup.css +99 -99
- package/dist/checkbox/src/CheckboxGroup.js +9 -9
- package/dist/checkbox/src/DecorativeCheckbox.css +55 -55
- package/dist/checkbox/src/DecorativeCheckbox.js +10 -10
- package/dist/checkbox/src/index.css +99 -99
- package/dist/checkbox/src/index.js +16 -16
- package/dist/{chunk-P5EIKUXO.js → chunk-26I53B5Y.js} +5 -5
- package/dist/{chunk-NH3IVMXB.js → chunk-2NSUMKNH.js} +1 -1
- package/dist/{chunk-7UNZPFF5.js → chunk-2NUBBFM5.js} +13 -12
- package/dist/{chunk-TZEOP7YF.js → chunk-35HDR5EW.js} +1 -1
- package/dist/{chunk-MIZJXB3R.js → chunk-35MPBJ2Y.js} +6 -6
- package/dist/chunk-3MTGAZ77.js +7 -0
- package/dist/{chunk-IIAAY3DD.js → chunk-3TXCNKNC.js} +2 -2
- package/dist/{chunk-MF2LIHC6.js → chunk-4O36V5KR.js} +4 -4
- package/dist/{chunk-K7JDZAO3.js → chunk-4VGF4WNW.js} +11 -11
- package/dist/{chunk-ERIQNISN.js → chunk-6HV32IPY.js} +1 -1
- package/dist/{chunk-JAR25BBL.js → chunk-7RPAPVYW.js} +4 -4
- package/dist/{chunk-4B5NJLD3.js → chunk-B277P7AQ.js} +1 -1
- package/dist/{chunk-KBHWDMMF.js → chunk-BTV2OYVC.js} +1 -3
- package/dist/{chunk-55OPYST3.js → chunk-BXG66HY3.js} +1 -1
- package/dist/{chunk-DW44WR6W.js → chunk-C34TTCEP.js} +4 -4
- package/dist/chunk-DRFFM5PG.js +6 -0
- package/dist/chunk-EG6J2LGD.js +34 -0
- package/dist/{chunk-RYJBYNZT.js → chunk-EZ5RRUX5.js} +1 -1
- package/dist/chunk-FLU4UPP6.js +7 -0
- package/dist/{chunk-ZVNGQXRR.js → chunk-GEZPNFFE.js} +2 -2
- package/dist/{chunk-6LIFUQT4.js → chunk-GGPG3AP3.js} +5 -5
- package/dist/{chunk-NJUYQ7VF.js → chunk-GTHTPLWR.js} +3 -3
- package/dist/{chunk-MO4EWTIM.js → chunk-H7ATUWV2.js} +2 -2
- package/dist/{chunk-OIELLCFE.js → chunk-HCYKOE75.js} +1 -1
- package/dist/{chunk-GNPTWYD3.js → chunk-HSK7PS5Z.js} +3 -3
- package/dist/{chunk-7EUXODLY.js → chunk-I7VLBEP3.js} +1 -1
- package/dist/chunk-IJY4EEMM.js +120 -0
- package/dist/{chunk-BHIQ5PPC.js → chunk-JA3YZAMV.js} +2 -2
- package/dist/{chunk-Z3WDZ52E.js → chunk-JALNC6MF.js} +1 -1
- package/dist/{chunk-2DF25AEQ.js → chunk-JHZLARBW.js} +2 -2
- package/dist/chunk-JTNKUYE5.js +8 -0
- package/dist/{chunk-ZWDUMUN4.js → chunk-JWHK6VZE.js} +2 -2
- package/dist/{chunk-XLPW4NX3.js → chunk-KRWMJC24.js} +53 -74
- package/dist/{chunk-JZ6DMATL.js → chunk-KYGM6GSZ.js} +5 -5
- package/dist/{chunk-MHQ3VHAA.js → chunk-L52ZO6DK.js} +6 -6
- package/dist/chunk-LUO2HNXA.js +7 -0
- package/dist/{chunk-N3XC5CZP.js → chunk-M43P32S2.js} +3 -3
- package/dist/{chunk-HXNEWO5D.js → chunk-MJD4HEF7.js} +16 -14
- package/dist/{chunk-UICYQNAO.js → chunk-MRKDMC6T.js} +4 -4
- package/dist/chunk-MS353K3B.js +77 -0
- package/dist/{chunk-OCG7CSY5.js → chunk-MYDMC5AL.js} +1 -1
- package/dist/{chunk-WICGT2T5.js → chunk-NSFQDIGS.js} +1 -1
- package/dist/{chunk-DOYWH7O2.js → chunk-O4BGMHFN.js} +30 -18
- package/dist/{chunk-J6RDT7TX.js → chunk-O7ASYBWX.js} +5 -5
- package/dist/chunk-O7T4L4C5.js +77 -0
- package/dist/{chunk-HJXC5SRI.js → chunk-OKFJ545T.js} +2 -2
- package/dist/{chunk-YQLCOKBQ.js → chunk-OLY7SREJ.js} +3 -3
- package/dist/chunk-PESGOSPX.js +59 -0
- package/dist/{chunk-OQFPMKF2.js → chunk-PFUFA75W.js} +13 -13
- package/dist/chunk-PH5BSJDK.js +7 -0
- package/dist/{chunk-IYRRO5H3.js → chunk-QHB7NUOZ.js} +2 -2
- package/dist/{chunk-LMATFHSS.js → chunk-R54ZMYQ4.js} +5 -5
- package/dist/chunk-RU2R4HRN.js +73 -0
- package/dist/chunk-RZVA6GTJ.js +75 -0
- package/dist/{chunk-NFIZ44XF.js → chunk-SQ4WQLG3.js} +5 -5
- package/dist/{chunk-3JJL6GD6.js → chunk-TEOQZH4R.js} +2 -2
- package/dist/{chunk-7SCKD7PW.js → chunk-TFMCSZBX.js} +4 -4
- package/dist/{chunk-5JYQWCE5.js → chunk-V6IGV2A6.js} +9 -9
- package/dist/{chunk-HMG6U7FQ.js → chunk-VLRWUC3G.js} +3 -3
- package/dist/{chunk-2GGER6XM.js → chunk-W2QZ6LNV.js} +1 -1
- package/dist/{chunk-4BXMSXYQ.js → chunk-W7UY3AN2.js} +1 -1
- package/dist/{chunk-7DLSOYOU.js → chunk-WEOELGV3.js} +5 -5
- package/dist/{chunk-WX5UNPM3.js → chunk-WNCTZPDC.js} +1 -1
- package/dist/{chunk-WLIPEWRM.js → chunk-WOHPT4IQ.js} +3 -3
- package/dist/{chunk-PHQ6YPQQ.js → chunk-WTW6WMRY.js} +2 -2
- package/dist/{chunk-K3IUMMRF.js → chunk-XCLYO62A.js} +4 -4
- package/dist/{chunk-JUVZRX26.js → chunk-XPU2VOT2.js} +4 -4
- package/dist/{chunk-JNJYQ26N.js → chunk-YDFVC72F.js} +14 -14
- package/dist/{chunk-BXPKRAAY.js → chunk-YE2X3QC5.js} +1 -1
- package/dist/{chunk-2XVB536Z.js → chunk-YGO4PKGI.js} +18 -26
- package/dist/{chunk-W5HTSWT3.js → chunk-YI3NOFUB.js} +3 -3
- package/dist/{chunk-MPCOEMN2.js → chunk-YYYKLACT.js} +3 -3
- package/dist/{chunk-KXAYZ6PQ.js → chunk-Z2OMFFPS.js} +1 -1
- package/dist/{chunk-SV6RSWOR.js → chunk-ZNATFVK3.js} +2 -2
- package/dist/{chunk-I73SWVA3.js → chunk-ZSBIKIOS.js} +4 -4
- package/dist/{chunk-Y7ATRH3L.js → chunk-ZVFVY7LL.js} +3 -3
- package/dist/index.css +1468 -1337
- package/dist/index.d.ts +12 -4
- package/dist/index.js +98 -90
- 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 +14 -15
- package/dist/inputs/src/PasswordField.css +346 -380
- package/dist/inputs/src/PasswordField.d.ts +4 -4
- package/dist/inputs/src/PasswordField.js +15 -14
- package/dist/inputs/src/PasswordFieldContext.d.ts +2 -2
- package/dist/inputs/src/RemainingCharacterCount.css +31 -31
- package/dist/inputs/src/RemainingCharacterCount.js +9 -9
- package/dist/inputs/src/SearchField.css +350 -386
- package/dist/inputs/src/SearchField.d.ts +2 -2
- package/dist/inputs/src/SearchField.js +17 -16
- package/dist/inputs/src/SearchFieldContext.d.ts +2 -2
- package/dist/inputs/src/TextArea.css +122 -1498
- package/dist/inputs/src/TextArea.js +13 -14
- package/dist/inputs/src/TextField.css +348 -384
- package/dist/inputs/src/TextField.js +19 -18
- package/dist/inputs/src/index.css +625 -628
- package/dist/inputs/src/index.d.ts +4 -3
- package/dist/inputs/src/index.js +23 -23
- 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 +10 -10
- 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 +4 -4
- package/dist/radio/src/RadioGroup.css +99 -99
- package/dist/radio/src/RadioGroup.js +8 -8
- package/dist/radio/src/index.css +99 -99
- package/dist/radio/src/index.js +15 -15
- 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 +5 -5
- package/dist/switch/src/index.css +50 -50
- package/dist/switch/src/index.js +12 -12
- package/dist/tag/src/Tag.css +392 -392
- package/dist/tag/src/Tag.d.ts +46 -5
- package/dist/tag/src/Tag.js +15 -15
- 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 +9 -9
- 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 +20 -20
- 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.d.ts +0 -1
- package/dist/utils/src/index.js +9 -10
- package/dist/utils/src/types.d.ts +1 -1
- package/dist/utils/src/useRenderProps.js +1 -1
- package/package.json +5 -2
- 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
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { ModalContext } from './chunk-PH5BSJDK.js';
|
|
2
|
+
import { _BaseModal } from './chunk-PESGOSPX.js';
|
|
3
|
+
import { ImageContext } from './chunk-XNHE2OVW.js';
|
|
4
|
+
import { FooterContext } from './chunk-I67NHYK4.js';
|
|
5
|
+
import { ButtonGroupContext } from './chunk-VJQ7M2BK.js';
|
|
6
|
+
import { HeaderContext } from './chunk-7JOGKC3W.js';
|
|
7
|
+
import { _CloseButton } from './chunk-H7ATUWV2.js';
|
|
8
|
+
import { useSlot } from './chunk-H5YTU3U7.js';
|
|
9
|
+
import { ContentContext } from './chunk-IXB2WK56.js';
|
|
10
|
+
import { ButtonContext } from './chunk-WMTWFKKP.js';
|
|
11
|
+
import { HeadingContext } from './chunk-TXZ6BMFR.js';
|
|
12
|
+
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
13
|
+
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
14
|
+
import clsx from 'clsx';
|
|
15
|
+
import { forwardRef } from 'react';
|
|
16
|
+
import { useContextProps, composeRenderProps, Dialog, OverlayTriggerStateContext, Provider } from 'react-aria-components';
|
|
17
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
18
|
+
|
|
19
|
+
// css-module:./Modal.module.css#css-module
|
|
20
|
+
var Modal_module_default = { "hop-Modal": "Modal-module__hop-Modal___wjZ7y", "hop-Modal--fullscreen": "Modal-module__hop-Modal--fullscreen___90lIb", "hop-Modal--fullscreentakeover": "Modal-module__hop-Modal--fullscreentakeover___P3i5c", "hop-Modal__image": "Modal-module__hop-Modal__image___J33n9", "hop-Modal__close": "Modal-module__hop-Modal__close___mfifl", "hop-Modal__heading": "Modal-module__hop-Modal__heading___jk-kR", "hop-Modal__header": "Modal-module__hop-Modal__header___Kqi1n", "hop-Modal__content": "Modal-module__hop-Modal__content___jTeGe", "hop-Modal__footer": "Modal-module__hop-Modal__footer___z69Zp", "hop-Modal__button": "Modal-module__hop-Modal__button___Nj5d0", "hop-Modal__button-group": "Modal-module__hop-Modal__button-group___ZtwUy" };
|
|
21
|
+
var GlobalModalCssSelector = "hop-Modal";
|
|
22
|
+
var Modal = (props, ref) => {
|
|
23
|
+
var _a;
|
|
24
|
+
[props, ref] = useContextProps(props, ref, ModalContext);
|
|
25
|
+
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
26
|
+
const [imageRef, hasImage] = useSlot();
|
|
27
|
+
const {
|
|
28
|
+
className,
|
|
29
|
+
style,
|
|
30
|
+
slot,
|
|
31
|
+
isDismissible = true,
|
|
32
|
+
isKeyboardDismissDisabled,
|
|
33
|
+
size: sizeProp,
|
|
34
|
+
children: childrenProp,
|
|
35
|
+
isOpen,
|
|
36
|
+
defaultOpen,
|
|
37
|
+
onOpenChange,
|
|
38
|
+
overlayProps,
|
|
39
|
+
...otherProps
|
|
40
|
+
} = ownProps;
|
|
41
|
+
const size = (_a = useResponsiveValue(sizeProp)) != null ? _a : "md";
|
|
42
|
+
const classNames = clsx(
|
|
43
|
+
GlobalModalCssSelector,
|
|
44
|
+
cssModule(
|
|
45
|
+
Modal_module_default,
|
|
46
|
+
GlobalModalCssSelector,
|
|
47
|
+
size.toLowerCase()
|
|
48
|
+
),
|
|
49
|
+
stylingProps.className,
|
|
50
|
+
className
|
|
51
|
+
);
|
|
52
|
+
const mergedStyles = {
|
|
53
|
+
...style,
|
|
54
|
+
...stylingProps.style
|
|
55
|
+
};
|
|
56
|
+
const children = composeRenderProps(childrenProp, (prev) => {
|
|
57
|
+
return prev;
|
|
58
|
+
});
|
|
59
|
+
return /* @__PURE__ */ jsx(
|
|
60
|
+
_BaseModal,
|
|
61
|
+
{
|
|
62
|
+
...overlayProps,
|
|
63
|
+
isOpen,
|
|
64
|
+
defaultOpen,
|
|
65
|
+
onOpenChange,
|
|
66
|
+
hasImage,
|
|
67
|
+
size,
|
|
68
|
+
isDismissable: isDismissible,
|
|
69
|
+
isKeyboardDismissDisabled,
|
|
70
|
+
children: /* @__PURE__ */ jsx(
|
|
71
|
+
Dialog,
|
|
72
|
+
{
|
|
73
|
+
...otherProps,
|
|
74
|
+
ref,
|
|
75
|
+
className: classNames,
|
|
76
|
+
style: mergedStyles,
|
|
77
|
+
slot,
|
|
78
|
+
children: (renderProps) => /* @__PURE__ */ jsxs(OverlayTriggerStateContext.Provider, { value: null, children: [
|
|
79
|
+
isDismissible && /* @__PURE__ */ jsx(_CloseButton, { className: Modal_module_default["hop-Modal__close"] }),
|
|
80
|
+
/* @__PURE__ */ jsx(
|
|
81
|
+
Provider,
|
|
82
|
+
{
|
|
83
|
+
values: [
|
|
84
|
+
[ImageContext, {
|
|
85
|
+
className: Modal_module_default["hop-Modal__image"],
|
|
86
|
+
ref: imageRef
|
|
87
|
+
}],
|
|
88
|
+
[HeadingContext, {
|
|
89
|
+
className: Modal_module_default["hop-Modal__heading"],
|
|
90
|
+
slot: "title"
|
|
91
|
+
}],
|
|
92
|
+
[HeaderContext, {
|
|
93
|
+
className: Modal_module_default["hop-Modal__header"]
|
|
94
|
+
}],
|
|
95
|
+
[ContentContext, {
|
|
96
|
+
className: Modal_module_default["hop-Modal__content"]
|
|
97
|
+
}],
|
|
98
|
+
[FooterContext, {
|
|
99
|
+
className: Modal_module_default["hop-Modal__footer"]
|
|
100
|
+
}],
|
|
101
|
+
[ButtonContext, {
|
|
102
|
+
className: Modal_module_default["hop-Modal__button"]
|
|
103
|
+
}],
|
|
104
|
+
[ButtonGroupContext, {
|
|
105
|
+
className: Modal_module_default["hop-Modal__button-group"]
|
|
106
|
+
}]
|
|
107
|
+
],
|
|
108
|
+
children: children(renderProps)
|
|
109
|
+
}
|
|
110
|
+
)
|
|
111
|
+
] })
|
|
112
|
+
}
|
|
113
|
+
)
|
|
114
|
+
}
|
|
115
|
+
);
|
|
116
|
+
};
|
|
117
|
+
var _Modal = forwardRef(Modal);
|
|
118
|
+
_Modal.displayName = "Modal";
|
|
119
|
+
|
|
120
|
+
export { GlobalModalCssSelector, _Modal };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { InternalSegmentedControlContext } from './chunk-JHX5QEIH.js';
|
|
2
2
|
import { SegmentedControlItemContext } from './chunk-TDKQPTN6.js';
|
|
3
|
-
import { _Text } from './chunk-
|
|
3
|
+
import { _Text } from './chunk-TEOQZH4R.js';
|
|
4
4
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
5
5
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
6
6
|
import { IconContext } from '@hopper-ui/icons';
|
|
@@ -11,7 +11,7 @@ import { useContextProps, ToggleGroupStateContext, ToggleButton, Provider, DEFAU
|
|
|
11
11
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
12
12
|
|
|
13
13
|
// css-module:./SegmentedControlItem.module.css#css-module
|
|
14
|
-
var SegmentedControlItem_module_default = { "hop-SegmentedControlItem": "SegmentedControlItem-module__hop-
|
|
14
|
+
var SegmentedControlItem_module_default = { "hop-SegmentedControlItem": "SegmentedControlItem-module__hop-SegmentedControlItem___DIh-p", "hop-SegmentedControlItem__slider": "SegmentedControlItem-module__hop-SegmentedControlItem__slider___iYM0q", "hop-SegmentedControlItem__wrapper": "SegmentedControlItem-module__hop-SegmentedControlItem__wrapper___BNDJ0", "hop-SegmentedControlItem--md": "SegmentedControlItem-module__hop-SegmentedControlItem--md___y2AgY", "hop-SegmentedControlItem__icon": "SegmentedControlItem-module__hop-SegmentedControlItem__icon___UCdZn", "hop-SegmentedControlItem__text": "SegmentedControlItem-module__hop-SegmentedControlItem__text___iXHlB", "hop-SegmentedControlItem__start-icon": "SegmentedControlItem-module__hop-SegmentedControlItem__start-icon___b8mM8", "hop-SegmentedControlItem--justified": "SegmentedControlItem-module__hop-SegmentedControlItem--justified___MIZxE" };
|
|
15
15
|
var GlobalSegmentedControlItemCssSelector = "hop-SegmentedControlItem";
|
|
16
16
|
var SegmentedControlItem = (props, ref) => {
|
|
17
17
|
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:./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___DFXbP", "hop-Card--main": "Card-module__hop-Card--main___xIrmj", "hop-Card--second-level": "Card-module__hop-Card--second-level___sw3LY" };
|
|
11
11
|
var GlobalCardCssSelector = "hop-Card";
|
|
12
12
|
var Card = (props, ref) => {
|
|
13
13
|
[props, ref] = useContextProps(props, ref, CardContext);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HelperMessageContext } from './chunk-HZKFQ33E.js';
|
|
2
|
-
import { _Text } from './chunk-
|
|
2
|
+
import { _Text } from './chunk-TEOQZH4R.js';
|
|
3
3
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
4
4
|
import { InfoIcon } from '@hopper-ui/icons';
|
|
5
5
|
import { useStyledSystem } from '@hopper-ui/styled-system';
|
|
@@ -9,7 +9,7 @@ import { useContextProps, FieldErrorContext } from 'react-aria-components';
|
|
|
9
9
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
10
10
|
|
|
11
11
|
// css-module:./HelperMessage.module.css#css-module
|
|
12
|
-
var HelperMessage_module_default = { "hop-HelperMessage": "HelperMessage-module__hop-
|
|
12
|
+
var HelperMessage_module_default = { "hop-HelperMessage": "HelperMessage-module__hop-HelperMessage___V7HTt", "hop-HelperMessage__icon": "HelperMessage-module__hop-HelperMessage__icon___yyO6X" };
|
|
13
13
|
var GlobalHelperMessageCssSelector = "hop-HelperMessage";
|
|
14
14
|
function HelperMessage(props, ref) {
|
|
15
15
|
const validation = useContext(FieldErrorContext);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CalloutContext } from './chunk-NZ4VFVXA.js';
|
|
2
|
-
import { _CloseButton } from './chunk-
|
|
2
|
+
import { _CloseButton } from './chunk-H7ATUWV2.js';
|
|
3
3
|
import { useSlot } from './chunk-H5YTU3U7.js';
|
|
4
4
|
import { ContentContext } from './chunk-IXB2WK56.js';
|
|
5
5
|
import { ButtonContext } from './chunk-WMTWFKKP.js';
|
|
@@ -14,7 +14,7 @@ import { useContextProps } from 'react-aria-components';
|
|
|
14
14
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
15
15
|
|
|
16
16
|
// css-module:./Callout.module.css#css-module
|
|
17
|
-
var Callout_module_default = { "hop-Callout": "Callout-module__hop-
|
|
17
|
+
var Callout_module_default = { "hop-Callout": "Callout-module__hop-Callout___-My7q", "hop-Callout__icon": "Callout-module__hop-Callout__icon___BQ0JB", "hop-Callout__heading": "Callout-module__hop-Callout__heading___v-Cro", "hop-Callout__content": "Callout-module__hop-Callout__content___PtGin", "hop-Callout__button": "Callout-module__hop-Callout__button___4Esvh", "hop-Callout__dismiss": "Callout-module__hop-Callout__dismiss___Au4Ub", "hop-Callout--information": "Callout-module__hop-Callout--information___PkjRH", "hop-Callout--success": "Callout-module__hop-Callout--success___2NhbN", "hop-Callout--warning": "Callout-module__hop-Callout--warning___-jTqa", "hop-Callout--upsell": "Callout-module__hop-Callout--upsell___FVQ5b", "hop-Callout--subtle-fill": "Callout-module__hop-Callout--subtle-fill___03isf" };
|
|
18
18
|
var GlobalCalloutCssSelector = "hop-Callout";
|
|
19
19
|
var Callout = (props, ref) => {
|
|
20
20
|
[props, ref] = useContextProps(props, ref, CalloutContext);
|
|
@@ -1,30 +1,32 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { InputContext, Input } from './chunk-EG6J2LGD.js';
|
|
2
|
+
import { _InputGroup } from './chunk-RU2R4HRN.js';
|
|
3
|
+
import { _Popover } from './chunk-ZNATFVK3.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-MRKDMC6T.js';
|
|
7
|
+
import { _ListBoxItem } from './chunk-V6IGV2A6.js';
|
|
8
|
+
import { _HelperMessage } from './chunk-JHZLARBW.js';
|
|
9
|
+
import { _ErrorMessage } from './chunk-M43P32S2.js';
|
|
7
10
|
import { ComboBoxContext } from './chunk-4XHTP4GX.js';
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { useFormProps } from './chunk-7EUXODLY.js';
|
|
13
|
-
import { BadgeContext } from './chunk-CQDLZ42T.js';
|
|
11
|
+
import { _ToggleArrow } from './chunk-HCYKOE75.js';
|
|
12
|
+
import { ensureTextWrapper } from './chunk-W7UY3AN2.js';
|
|
13
|
+
import { _Label } from './chunk-WTW6WMRY.js';
|
|
14
|
+
import { useFormProps } from './chunk-I7VLBEP3.js';
|
|
14
15
|
import { TextContext as TextContext$1 } from './chunk-X6SER3TZ.js';
|
|
15
|
-
import { ClearProviders, ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
16
16
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
17
17
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
18
|
+
import { ClearProviders, ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
18
19
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
20
|
+
import { BadgeContext } from './chunk-CQDLZ42T.js';
|
|
19
21
|
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___hT-ka", "hop-ComboBox--fluid": "ComboBox-module__hop-ComboBox--fluid___BJX9N", "hop-ComboBox__label": "ComboBox-module__hop-ComboBox__label___0A9v1", "hop-ComboBox__trigger": "ComboBox-module__hop-ComboBox__trigger___BvA1t", "hop-ComboBox__button": "ComboBox-module__hop-ComboBox__button___6POUD", "hop-ComboBox__prefix": "ComboBox-module__hop-ComboBox__prefix___qBzWu", "hop-ComboBox__helper-message": "ComboBox-module__hop-ComboBox__helper-message___Wn6ws", "hop-ComboBox__error-message": "ComboBox-module__hop-ComboBox__error-message___rzl2D" };
|
|
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,10 +1,10 @@
|
|
|
1
1
|
import { RadioFieldContext } from './chunk-DGLAGYBD.js';
|
|
2
2
|
import { RadioGroupContext } from './chunk-5MBJWRZD.js';
|
|
3
3
|
import { RadioContext } from './chunk-FU5CCPLP.js';
|
|
4
|
-
import { _HelperMessage } from './chunk-
|
|
5
|
-
import { _ErrorMessage } from './chunk-
|
|
6
|
-
import { _Label } from './chunk-
|
|
7
|
-
import { useFormProps } from './chunk-
|
|
4
|
+
import { _HelperMessage } from './chunk-JHZLARBW.js';
|
|
5
|
+
import { _ErrorMessage } from './chunk-M43P32S2.js';
|
|
6
|
+
import { _Label } from './chunk-WTW6WMRY.js';
|
|
7
|
+
import { useFormProps } from './chunk-I7VLBEP3.js';
|
|
8
8
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
9
9
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
10
10
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
@@ -15,7 +15,7 @@ import { useContextProps, composeRenderProps, RadioGroup as RadioGroup$1 } from
|
|
|
15
15
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
16
16
|
|
|
17
17
|
// css-module:./RadioGroup.module.css#css-module
|
|
18
|
-
var RadioGroup_module_default = { "hop-RadioGroup": "RadioGroup-module__hop-
|
|
18
|
+
var RadioGroup_module_default = { "hop-RadioGroup": "RadioGroup-module__hop-RadioGroup___8FI2v", "hop-RadioGroup--bordered": "RadioGroup-module__hop-RadioGroup--bordered___--DjV", "hop-RadioGroup--sm": "RadioGroup-module__hop-RadioGroup--sm___mn67v", "hop-RadioGroup--md": "RadioGroup-module__hop-RadioGroup--md___NovvY", "hop-RadioGroup__label": "RadioGroup-module__hop-RadioGroup__label___N8hY0", "hop-RadioGroup__list": "RadioGroup-module__hop-RadioGroup__list___NHfJB", "hop-RadioGroup__radio": "RadioGroup-module__hop-RadioGroup__radio___oqhMS", "hop-RadioGroup__error-message": "RadioGroup-module__hop-RadioGroup__error-message___th0kG", "hop-RadioGroup__helper-message": "RadioGroup-module__hop-RadioGroup__helper-message___zNMY7" };
|
|
19
19
|
var GlobalRadioGroupCssSelector = "hop-RadioGroup";
|
|
20
20
|
function RadioGroup(props, ref) {
|
|
21
21
|
var _a, _b, _c;
|
|
@@ -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-JHZLARBW.js';
|
|
4
|
+
import { _ErrorMessage } from './chunk-M43P32S2.js';
|
|
5
|
+
import { _Label } from './chunk-WTW6WMRY.js';
|
|
6
|
+
import { useFormProps } from './chunk-I7VLBEP3.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___5kSAi", "hop-TagGroup__label": "TagGroup-module__hop-TagGroup__label___Z43-v", "hop-TagGroup__list": "TagGroup-module__hop-TagGroup__list___xUOYR", "hop-TagGroup__error-message": "TagGroup-module__hop-TagGroup__error-message___xsrTf", "hop-TagGroup__helper-message": "TagGroup-module__hop-TagGroup__helper-message___YLkm0" };
|
|
18
18
|
var GlobalTagGroupCssSelector = "hop-TagGroup";
|
|
19
19
|
function TagGroup(props, ref) {
|
|
20
20
|
var _a;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ErrorMessageContext } from './chunk-FAE27DLF.js';
|
|
2
|
-
import { _Text } from './chunk-
|
|
3
|
-
import { useRenderProps } from './chunk-
|
|
2
|
+
import { _Text } from './chunk-TEOQZH4R.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 { WarningIcon } from '@hopper-ui/icons';
|
|
@@ -10,7 +10,7 @@ import { FieldErrorContext, useContextProps, composeRenderProps } from 'react-ar
|
|
|
10
10
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
11
11
|
|
|
12
12
|
// css-module:./ErrorMessage.module.css#css-module
|
|
13
|
-
var ErrorMessage_module_default = { "hop-ErrorMessage": "ErrorMessage-module__hop-
|
|
13
|
+
var ErrorMessage_module_default = { "hop-ErrorMessage": "ErrorMessage-module__hop-ErrorMessage___TlSrl", "hop-ErrorMessage__icon": "ErrorMessage-module__hop-ErrorMessage__icon___XJNoD" };
|
|
14
14
|
var GlobalErrorMessageCssSelector = "hop-ErrorMessage";
|
|
15
15
|
function ErrorMessage(props, ref) {
|
|
16
16
|
const validation = useContext(FieldErrorContext);
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { _InputGroup } from './chunk-2JXEPUMG.js';
|
|
2
1
|
import { PasswordFieldContext } from './chunk-QW45G6K4.js';
|
|
3
|
-
import { _EmbeddedButton } from './chunk-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
2
|
+
import { _EmbeddedButton } from './chunk-BTV2OYVC.js';
|
|
3
|
+
import { Input } from './chunk-EG6J2LGD.js';
|
|
4
|
+
import { _InputGroup } from './chunk-RU2R4HRN.js';
|
|
5
|
+
import { _HelperMessage } from './chunk-JHZLARBW.js';
|
|
6
|
+
import { _ErrorMessage } from './chunk-M43P32S2.js';
|
|
7
|
+
import { _Label } from './chunk-WTW6WMRY.js';
|
|
7
8
|
import { useLocalizedString } from './chunk-75DHKNW2.js';
|
|
8
|
-
import { useFormProps } from './chunk-
|
|
9
|
-
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
9
|
+
import { useFormProps } from './chunk-I7VLBEP3.js';
|
|
10
10
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
11
|
+
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
11
12
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
12
13
|
import { EyeVisibleIcon, EyeHiddenIcon } from '@hopper-ui/icons';
|
|
13
14
|
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
@@ -15,11 +16,11 @@ import { mergeRefs } from '@react-aria/utils';
|
|
|
15
16
|
import clsx from 'clsx';
|
|
16
17
|
import { forwardRef, useState } from 'react';
|
|
17
18
|
import { useObjectRef } from 'react-aria';
|
|
18
|
-
import { useContextProps, composeRenderProps,
|
|
19
|
+
import { useContextProps, composeRenderProps, TextField } from 'react-aria-components';
|
|
19
20
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
20
21
|
|
|
21
22
|
// css-module:./PasswordField.module.css#css-module
|
|
22
|
-
var PasswordField_module_default = { "hop-PasswordField": "PasswordField-module__hop-
|
|
23
|
+
var PasswordField_module_default = { "hop-PasswordField": "PasswordField-module__hop-PasswordField___q6L8n", "hop-PasswordField--fluid": "PasswordField-module__hop-PasswordField--fluid___l-TcN", "hop-PasswordField__Label": "PasswordField-module__hop-PasswordField__Label___p5VmJ", "hop-PasswordField__InputGroup": "PasswordField-module__hop-PasswordField__InputGroup___psVl2", "hop-PasswordField__ErrorMessage": "PasswordField-module__hop-PasswordField__ErrorMessage___H8-vu", "hop-PasswordField__HelperMessage": "PasswordField-module__hop-PasswordField__HelperMessage___qDFUU" };
|
|
23
24
|
var GlobalPasswordFieldCssSelector = "hop-PasswordField";
|
|
24
25
|
function PasswordField(props, ref) {
|
|
25
26
|
var _a;
|
|
@@ -76,21 +77,22 @@ function PasswordField(props, ref) {
|
|
|
76
77
|
isDisabled,
|
|
77
78
|
isInvalid,
|
|
78
79
|
isFluid: true,
|
|
79
|
-
size,
|
|
80
80
|
className: inputGroupClassNames,
|
|
81
81
|
...otherInputGroupProps,
|
|
82
82
|
children: [
|
|
83
|
-
/* @__PURE__ */ jsx(Input, { ref: inputRef, placeholder, type: showPassword ? "text" : "password", ...inputProps }),
|
|
83
|
+
/* @__PURE__ */ jsx(Input, { ref: inputRef, placeholder, type: showPassword ? "text" : "password", size, ...inputProps }),
|
|
84
84
|
/* @__PURE__ */ jsx(
|
|
85
85
|
_EmbeddedButton,
|
|
86
86
|
{
|
|
87
87
|
isDisabled,
|
|
88
88
|
"aria-label": stringFormatter.format("PasswordField.toggleVisibility"),
|
|
89
|
-
onPress: () => {
|
|
90
|
-
setShowPassword((x) => !x);
|
|
91
|
-
},
|
|
92
89
|
size: "lg",
|
|
93
90
|
...embeddedButtonProps,
|
|
91
|
+
onPress: (e) => {
|
|
92
|
+
var _a2;
|
|
93
|
+
setShowPassword((x) => !x);
|
|
94
|
+
(_a2 = embeddedButtonProps == null ? void 0 : embeddedButtonProps.onPress) == null ? void 0 : _a2.call(embeddedButtonProps, e);
|
|
95
|
+
},
|
|
94
96
|
children: showPassword ? /* @__PURE__ */ jsx(EyeVisibleIcon, {}) : /* @__PURE__ */ jsx(EyeHiddenIcon, {})
|
|
95
97
|
}
|
|
96
98
|
)
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { isFunction } from './chunk-TIPN4VYD.js';
|
|
2
2
|
import { ListBoxSectionContext } from './chunk-RLDIAT4F.js';
|
|
3
3
|
import { ListBoxContext } from './chunk-UIEP5BA5.js';
|
|
4
|
-
import { _ListBoxItem } from './chunk-
|
|
4
|
+
import { _ListBoxItem } from './chunk-V6IGV2A6.js';
|
|
5
5
|
import { ListBoxItemContext } from './chunk-Y2POLIXK.js';
|
|
6
6
|
import { HeaderContext } from './chunk-7JOGKC3W.js';
|
|
7
7
|
import { useLocalizedString } from './chunk-75DHKNW2.js';
|
|
8
|
-
import { _Text } from './chunk-
|
|
9
|
-
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
8
|
+
import { _Text } from './chunk-TEOQZH4R.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 { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
14
14
|
import { useLoadMore } from '@react-aria/utils';
|
|
@@ -18,7 +18,7 @@ import { useContextProps, composeRenderProps, ListBox as ListBox$1, Collection }
|
|
|
18
18
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
19
19
|
|
|
20
20
|
// css-module:./ListBox.module.css#css-module
|
|
21
|
-
var ListBox_module_default = { "hop-ListBox": "ListBox-module__hop-
|
|
21
|
+
var ListBox_module_default = { "hop-ListBox": "ListBox-module__hop-ListBox___lzwLl", "hop-ListBox--fluid": "ListBox-module__hop-ListBox--fluid___aFGr1", "hop-ListBox__section": "ListBox-module__hop-ListBox__section___3t3I0", "hop-ListBox__item": "ListBox-module__hop-ListBox__item___WHmBg", "hop-ListBox__section-header": "ListBox-module__hop-ListBox__section-header___FUmbX" };
|
|
22
22
|
var GlobalListBoxCssSelector = "hop-ListBox";
|
|
23
23
|
var GlobalListBoxEmptyItemCssSelector = "hop-ListBox__empty-item";
|
|
24
24
|
var ListBoxToTextSizeAdapter = {
|