@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,77 @@
|
|
|
1
|
+
import { TileContext } from './chunk-JTNKUYE5.js';
|
|
2
|
+
import { _Text } from './chunk-TEOQZH4R.js';
|
|
3
|
+
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
4
|
+
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
5
|
+
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
6
|
+
import { CheckmarkIcon } from '@hopper-ui/icons';
|
|
7
|
+
import { useStyledSystem } from '@hopper-ui/styled-system';
|
|
8
|
+
import { forwardRef } from 'react';
|
|
9
|
+
import { useContextProps, composeRenderProps, ToggleButton, Provider } from 'react-aria-components';
|
|
10
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
11
|
+
|
|
12
|
+
// css-module:./Tile.module.css#css-module
|
|
13
|
+
var Tile_module_default = { "hop-Tile": "Tile-module__hop-Tile___R9DcA", "hop-Tile__icon": "Tile-module__hop-Tile__icon___Q0tJ2" };
|
|
14
|
+
var GlobalTileCssSelector = "hop-Tile";
|
|
15
|
+
var Tile = (props, ref) => {
|
|
16
|
+
[props, ref] = useContextProps(props, ref, TileContext);
|
|
17
|
+
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
18
|
+
const {
|
|
19
|
+
className,
|
|
20
|
+
children: childrenProp,
|
|
21
|
+
style,
|
|
22
|
+
isDisabled,
|
|
23
|
+
slot,
|
|
24
|
+
...otherProps
|
|
25
|
+
} = ownProps;
|
|
26
|
+
const classNames = composeClassnameRenderProps(
|
|
27
|
+
GlobalTileCssSelector,
|
|
28
|
+
cssModule(
|
|
29
|
+
Tile_module_default,
|
|
30
|
+
"hop-Tile"
|
|
31
|
+
),
|
|
32
|
+
stylingProps.className,
|
|
33
|
+
className
|
|
34
|
+
);
|
|
35
|
+
const mergedStyles = composeRenderProps(style, (prev) => {
|
|
36
|
+
return {
|
|
37
|
+
...stylingProps.style,
|
|
38
|
+
...prev
|
|
39
|
+
};
|
|
40
|
+
});
|
|
41
|
+
const childrenFn = composeRenderProps(childrenProp, (prev) => {
|
|
42
|
+
return prev;
|
|
43
|
+
});
|
|
44
|
+
return /* @__PURE__ */ jsx(
|
|
45
|
+
ToggleButton,
|
|
46
|
+
{
|
|
47
|
+
...otherProps,
|
|
48
|
+
isDisabled,
|
|
49
|
+
ref,
|
|
50
|
+
className: classNames,
|
|
51
|
+
style: mergedStyles,
|
|
52
|
+
slot: slot != null ? slot : void 0,
|
|
53
|
+
children: (renderProps) => {
|
|
54
|
+
const children = childrenFn(renderProps);
|
|
55
|
+
return /* @__PURE__ */ jsxs(
|
|
56
|
+
Provider,
|
|
57
|
+
{
|
|
58
|
+
values: [
|
|
59
|
+
[TextContext, {
|
|
60
|
+
size: "md",
|
|
61
|
+
className: Tile_module_default["hop-Tile__text"]
|
|
62
|
+
}]
|
|
63
|
+
],
|
|
64
|
+
children: [
|
|
65
|
+
typeof children === "string" ? /* @__PURE__ */ jsx(_Text, { children }) : children,
|
|
66
|
+
/* @__PURE__ */ jsx(CheckmarkIcon, { className: Tile_module_default["hop-Tile__icon"] })
|
|
67
|
+
]
|
|
68
|
+
}
|
|
69
|
+
);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
);
|
|
73
|
+
};
|
|
74
|
+
var _Tile = forwardRef(Tile);
|
|
75
|
+
_Tile.displayName = "Tile";
|
|
76
|
+
|
|
77
|
+
export { GlobalTileCssSelector, _Tile };
|
|
@@ -7,7 +7,7 @@ import { useContextProps } from 'react-aria-components';
|
|
|
7
7
|
import { jsx } from 'react/jsx-runtime';
|
|
8
8
|
|
|
9
9
|
// css-module:./Image.module.css#css-module
|
|
10
|
-
var Image_module_default = { "hop-Image": "Image-module__hop-
|
|
10
|
+
var Image_module_default = { "hop-Image": "Image-module__hop-Image___QtmRN", "hop-Image--rounded": "Image-module__hop-Image--rounded___qBegL", "hop-Image--circular": "Image-module__hop-Image--circular___qGQmX" };
|
|
11
11
|
var GlobalImageCssSelector = "hop-Image";
|
|
12
12
|
function Image(props, ref) {
|
|
13
13
|
[props, ref] = useContextProps(props, ref, ImageContext);
|
|
@@ -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___a6tCB", "hop-Divider--vertical": "Divider-module__hop-Divider--vertical___q6q24" };
|
|
11
11
|
var GlobalDividerCssSelector = "hop-Divider";
|
|
12
12
|
function Divider(props, ref) {
|
|
13
13
|
[props, ref] = useContextProps(props, ref, DividerContext);
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { useFontFaceReady } from './chunk-IU6XMS2X.js';
|
|
2
2
|
import { TextAreaContext } from './chunk-MHQZXLKW.js';
|
|
3
3
|
import { useTruncatedText } from './chunk-Z57VHYOF.js';
|
|
4
|
-
import { _RemainingCharacterCount } from './chunk-
|
|
5
|
-
import { _InputGroup } from './chunk-
|
|
6
|
-
import { _HelperMessage } from './chunk-
|
|
7
|
-
import { _ErrorMessage } from './chunk-
|
|
8
|
-
import { _Label } from './chunk-
|
|
9
|
-
import { useFormProps } from './chunk-
|
|
10
|
-
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
4
|
+
import { _RemainingCharacterCount } from './chunk-YYYKLACT.js';
|
|
5
|
+
import { _InputGroup } from './chunk-RU2R4HRN.js';
|
|
6
|
+
import { _HelperMessage } from './chunk-JHZLARBW.js';
|
|
7
|
+
import { _ErrorMessage } from './chunk-M43P32S2.js';
|
|
8
|
+
import { _Label } from './chunk-WTW6WMRY.js';
|
|
9
|
+
import { useFormProps } from './chunk-I7VLBEP3.js';
|
|
11
10
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
11
|
+
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
12
12
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
13
13
|
import { useStyledSystem, useResponsiveValue, useIsomorphicLayoutEffect } from '@hopper-ui/styled-system';
|
|
14
14
|
import $670gB$react, { forwardRef, useContext, useState, useCallback, useRef, useMemo } from 'react';
|
|
@@ -79,7 +79,7 @@ function $b5e257d569688ac6$export$535bd6ca7f90a273() {
|
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
// css-module:./TextArea.module.css#css-module
|
|
82
|
-
var TextArea_module_default = { "hop-TextArea": "TextArea-module__hop-
|
|
82
|
+
var TextArea_module_default = { "hop-TextArea": "TextArea-module__hop-TextArea___HRJaC", "hop-TextArea--fluid": "TextArea-module__hop-TextArea--fluid___yWvrM", "hop-TextArea__Label": "TextArea-module__hop-TextArea__Label___IkJVe", "hop-TextArea__prefix": "TextArea-module__hop-TextArea__prefix___yCWvd", "hop-TextArea__RemainingCharacterCount": "TextArea-module__hop-TextArea__RemainingCharacterCount___xIxHm", "hop-TextArea__InputGroup": "TextArea-module__hop-TextArea__InputGroup___7JcmJ", "hop-TextArea__ErrorMessage": "TextArea-module__hop-TextArea__ErrorMessage___Zt1yk", "hop-TextArea__HelperMessage": "TextArea-module__hop-TextArea__HelperMessage___Fowsg", "hop-TextArea__textarea": "TextArea-module__hop-TextArea__textarea___Om6nK", "hop-TextArea__textarea--with-character-count": "TextArea-module__hop-TextArea__textarea--with-character-count___bhxTQ", "hop-TextArea__textarea--sm": "TextArea-module__hop-TextArea__textarea--sm___4cfiJ" };
|
|
83
83
|
var GlobalTextAreaCssSelector = "hop-TextArea";
|
|
84
84
|
var DefaultMinimumTextAreaRows = 3;
|
|
85
85
|
var pxToInt = (value) => {
|
|
@@ -112,7 +112,7 @@ function useCalculateRowHeight(input) {
|
|
|
112
112
|
}, [input, fontsLoaded, isSSR]);
|
|
113
113
|
}
|
|
114
114
|
function TextArea(props, ref) {
|
|
115
|
-
var _a, _b;
|
|
115
|
+
var _a, _b, _c;
|
|
116
116
|
const {
|
|
117
117
|
inputRef: userProvidedInputRef = null,
|
|
118
118
|
...propsWithoutRef
|
|
@@ -121,13 +121,13 @@ function TextArea(props, ref) {
|
|
|
121
121
|
props = useFormProps(props);
|
|
122
122
|
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
123
123
|
const [characterCount, setCharacterCount] = useState(() => {
|
|
124
|
-
var _a2, _b2,
|
|
125
|
-
return (_d = (
|
|
124
|
+
var _a2, _b2, _c2, _d;
|
|
125
|
+
return (_d = (_c2 = (_a2 = props.value) == null ? void 0 : _a2.length) != null ? _c2 : (_b2 = props.defaultValue) == null ? void 0 : _b2.length) != null ? _d : 0;
|
|
126
126
|
});
|
|
127
127
|
const {
|
|
128
128
|
className,
|
|
129
129
|
style: styleProp,
|
|
130
|
-
size,
|
|
130
|
+
size: sizeProp,
|
|
131
131
|
showCharacterCount,
|
|
132
132
|
maxLength,
|
|
133
133
|
placeholder,
|
|
@@ -155,6 +155,7 @@ function TextArea(props, ref) {
|
|
|
155
155
|
const isFluid = (_a = useResponsiveValue(isFluidProp)) != null ? _a : false;
|
|
156
156
|
const resizeMode = (_b = useResponsiveValue(resizeModeProp)) != null ? _b : "none";
|
|
157
157
|
const overMaxLength = !!maxLength && characterCount > maxLength;
|
|
158
|
+
const size = (_c = useResponsiveValue(sizeProp)) != null ? _c : "md";
|
|
158
159
|
const classNames = composeClassnameRenderProps(
|
|
159
160
|
className,
|
|
160
161
|
GlobalTextAreaCssSelector,
|
|
@@ -215,24 +216,35 @@ function TextArea(props, ref) {
|
|
|
215
216
|
}
|
|
216
217
|
adjustRows();
|
|
217
218
|
}, [value, adjustRows]);
|
|
218
|
-
const { className: inputGroupClassName,
|
|
219
|
+
const { className: inputGroupClassName, ...otherInputGroupProps } = inputGroupProps != null ? inputGroupProps : {};
|
|
219
220
|
const inputGroupClassNames = clsx(TextArea_module_default["hop-TextArea__InputGroup"], inputGroupClassName);
|
|
220
|
-
const
|
|
221
|
+
const textAreaClassNames = cssModule(
|
|
222
|
+
TextArea_module_default,
|
|
223
|
+
"hop-TextArea__textarea",
|
|
224
|
+
size,
|
|
225
|
+
showCharacterCount && maxLength && "with-character-count"
|
|
226
|
+
);
|
|
221
227
|
const { className: remainingCharacterCountClassName, ...otherRemainingCharacterCountProps } = remainingCharacterCountProps != null ? remainingCharacterCountProps : {};
|
|
222
228
|
const remainingCharacterCountClassNames = clsx(TextArea_module_default["hop-TextArea__RemainingCharacterCount"], remainingCharacterCountClassName);
|
|
223
229
|
const inputMarkup = /* @__PURE__ */ jsx(ClearContainerSlots, { children: /* @__PURE__ */ jsxs(
|
|
224
230
|
_InputGroup,
|
|
225
231
|
{
|
|
226
232
|
isFluid: true,
|
|
227
|
-
size,
|
|
228
233
|
className: inputGroupClassNames,
|
|
229
234
|
isDisabled,
|
|
230
235
|
isInvalid,
|
|
231
|
-
inputClassName: inputGroupInputClassNames,
|
|
232
|
-
inputType: "textarea",
|
|
233
236
|
...otherInputGroupProps,
|
|
234
237
|
children: [
|
|
235
|
-
/* @__PURE__ */ jsx(
|
|
238
|
+
/* @__PURE__ */ jsx(
|
|
239
|
+
TextArea$1,
|
|
240
|
+
{
|
|
241
|
+
ref: mergedTextAreaRef,
|
|
242
|
+
placeholder,
|
|
243
|
+
cols,
|
|
244
|
+
rows,
|
|
245
|
+
className: textAreaClassNames
|
|
246
|
+
}
|
|
247
|
+
),
|
|
236
248
|
showCharacterCount && maxLength && /* @__PURE__ */ jsx(
|
|
237
249
|
_RemainingCharacterCount,
|
|
238
250
|
{
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { CheckboxFieldContext } from './chunk-ZGNK4GWA.js';
|
|
2
2
|
import { CheckboxContext } from './chunk-2EAZPH3M.js';
|
|
3
|
-
import { useFormProps } from './chunk-
|
|
4
|
-
import { _Text } from './chunk-
|
|
5
|
-
import {
|
|
6
|
-
import { useRenderProps } from './chunk-NH3IVMXB.js';
|
|
3
|
+
import { useFormProps } from './chunk-I7VLBEP3.js';
|
|
4
|
+
import { _Text } from './chunk-TEOQZH4R.js';
|
|
5
|
+
import { useRenderProps } from './chunk-2NSUMKNH.js';
|
|
7
6
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
8
7
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
8
|
+
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
9
9
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
10
10
|
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
11
11
|
import { useSlotId } from '@react-aria/utils';
|
|
@@ -15,7 +15,7 @@ import { useContextProps, composeRenderProps } from 'react-aria-components';
|
|
|
15
15
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
16
16
|
|
|
17
17
|
// css-module:./CheckboxField.module.css#css-module
|
|
18
|
-
var CheckboxField_module_default = { "hop-CheckboxField": "CheckboxField-module__hop-
|
|
18
|
+
var CheckboxField_module_default = { "hop-CheckboxField": "CheckboxField-module__hop-CheckboxField___kub-e", "hop-CheckboxField--sm": "CheckboxField-module__hop-CheckboxField--sm___M0zRD", "hop-CheckboxField--md": "CheckboxField-module__hop-CheckboxField--md___NQ26D", "hop-CheckboxField__description": "CheckboxField-module__hop-CheckboxField__description___QJTyb", "hop-CheckboxField__checkbox": "CheckboxField-module__hop-CheckboxField__checkbox___fAzPI" };
|
|
19
19
|
var GlobalCheckboxFieldCssSelector = "hop-CheckboxField";
|
|
20
20
|
var CheckboxToDescriptionSizeAdapter = {
|
|
21
21
|
sm: "xs",
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { _BaseModal } from './chunk-PESGOSPX.js';
|
|
2
|
+
import { CustomModalContext } from './chunk-LUO2HNXA.js';
|
|
3
|
+
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
4
|
+
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
5
|
+
import clsx from 'clsx';
|
|
6
|
+
import { forwardRef } from 'react';
|
|
7
|
+
import { useContextProps, composeRenderProps, Dialog, OverlayTriggerStateContext, DialogTrigger } from 'react-aria-components';
|
|
8
|
+
import { jsx } from 'react/jsx-runtime';
|
|
9
|
+
|
|
10
|
+
// css-module:./CustomModal.module.css#css-module
|
|
11
|
+
var CustomModal_module_default = { "hop-CustomModal": "CustomModal-module__hop-CustomModal___UoQjS" };
|
|
12
|
+
var GlobalCustomModalCssSelector = "hop-CustomModal";
|
|
13
|
+
var CustomModal = (props, ref) => {
|
|
14
|
+
var _a;
|
|
15
|
+
[props, ref] = useContextProps(props, ref, CustomModalContext);
|
|
16
|
+
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
17
|
+
const {
|
|
18
|
+
className,
|
|
19
|
+
style,
|
|
20
|
+
slot,
|
|
21
|
+
isDismissible = true,
|
|
22
|
+
isKeyboardDismissDisabled,
|
|
23
|
+
size: sizeProp,
|
|
24
|
+
overlayProps,
|
|
25
|
+
isOpen,
|
|
26
|
+
defaultOpen,
|
|
27
|
+
onOpenChange,
|
|
28
|
+
children: childrenProp,
|
|
29
|
+
...otherProps
|
|
30
|
+
} = ownProps;
|
|
31
|
+
const size = (_a = useResponsiveValue(sizeProp)) != null ? _a : "md";
|
|
32
|
+
const classNames = clsx(
|
|
33
|
+
GlobalCustomModalCssSelector,
|
|
34
|
+
cssModule(
|
|
35
|
+
CustomModal_module_default,
|
|
36
|
+
GlobalCustomModalCssSelector,
|
|
37
|
+
size.toLowerCase()
|
|
38
|
+
),
|
|
39
|
+
stylingProps.className,
|
|
40
|
+
className
|
|
41
|
+
);
|
|
42
|
+
const mergedStyles = {
|
|
43
|
+
...style,
|
|
44
|
+
...stylingProps.style
|
|
45
|
+
};
|
|
46
|
+
const children = composeRenderProps(childrenProp, (prev) => {
|
|
47
|
+
return prev;
|
|
48
|
+
});
|
|
49
|
+
return /* @__PURE__ */ jsx(
|
|
50
|
+
_BaseModal,
|
|
51
|
+
{
|
|
52
|
+
...overlayProps,
|
|
53
|
+
isOpen,
|
|
54
|
+
defaultOpen,
|
|
55
|
+
onOpenChange,
|
|
56
|
+
size,
|
|
57
|
+
isDismissable: isDismissible,
|
|
58
|
+
isKeyboardDismissDisabled,
|
|
59
|
+
children: /* @__PURE__ */ jsx(
|
|
60
|
+
Dialog,
|
|
61
|
+
{
|
|
62
|
+
...otherProps,
|
|
63
|
+
ref,
|
|
64
|
+
className: classNames,
|
|
65
|
+
style: mergedStyles,
|
|
66
|
+
slot,
|
|
67
|
+
children: (renderProps) => /* @__PURE__ */ jsx(OverlayTriggerStateContext.Provider, { value: null, children: children(renderProps) })
|
|
68
|
+
}
|
|
69
|
+
)
|
|
70
|
+
}
|
|
71
|
+
);
|
|
72
|
+
};
|
|
73
|
+
var _CustomModal = forwardRef(CustomModal);
|
|
74
|
+
_CustomModal.displayName = "CustomModal";
|
|
75
|
+
var CustomModalTrigger = DialogTrigger;
|
|
76
|
+
|
|
77
|
+
export { CustomModalTrigger, GlobalCustomModalCssSelector, _CustomModal };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SpinnerContext } from './chunk-4ZYV2XLW.js';
|
|
2
|
-
import { _Text } from './chunk-
|
|
2
|
+
import { _Text } from './chunk-TEOQZH4R.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___6QAYc", "spin": "Spinner-module__spin___TpF-z", "hop-Spinner--sm": "Spinner-module__hop-Spinner--sm___RBQs1", "hop-Spinner--md": "Spinner-module__hop-Spinner--md___VUJX-", "hop-Spinner--lg": "Spinner-module__hop-Spinner--lg___tWDnE", "hop-Spinner__track": "Spinner-module__hop-Spinner__track___0oF9E", "hop-Spinner__fill": "Spinner-module__hop-Spinner__fill___Eouhn", "hop-Spinner__label": "Spinner-module__hop-Spinner__label___Xl3ga" };
|
|
13
13
|
var GlobalSpinnerCssSelector = "hop-Spinner";
|
|
14
14
|
var SpinnerToTextSizeAdapter = {
|
|
15
15
|
sm: "xs",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { SwitchContext } from './chunk-YHBJAXUY.js';
|
|
2
2
|
import { IconListContext } from './chunk-DHVVYSLB.js';
|
|
3
|
-
import { ensureTextWrapper } from './chunk-
|
|
3
|
+
import { ensureTextWrapper } from './chunk-W7UY3AN2.js';
|
|
4
4
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
5
|
-
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
6
5
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
7
6
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
7
|
+
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
8
8
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
9
9
|
import { IconContext } from '@hopper-ui/icons';
|
|
10
10
|
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
@@ -13,7 +13,7 @@ import { useContextProps, composeRenderProps, Switch as Switch$1 } from 'react-a
|
|
|
13
13
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
14
14
|
|
|
15
15
|
// css-module:./Switch.module.css#css-module
|
|
16
|
-
var Switch_module_default = { "hop-Switch": "Switch-module__hop-
|
|
16
|
+
var Switch_module_default = { "hop-Switch": "Switch-module__hop-Switch___DzGtJ", "hop-Switch--sm": "Switch-module__hop-Switch--sm___qucmN", "hop-Switch--md": "Switch-module__hop-Switch--md___-Vfnu", "hop-Switch__indicator": "Switch-module__hop-Switch__indicator___ZtdHg", "hop-Switch__text": "Switch-module__hop-Switch__text___TseVq", "hop-Switch__icon-list": "Switch-module__hop-Switch__icon-list___XPmfm", "hop-Switch__icon": "Switch-module__hop-Switch__icon___VhmVU" };
|
|
17
17
|
var GlobalSwitchCssSelector = "hop-Switch";
|
|
18
18
|
function Switch(props, ref) {
|
|
19
19
|
var _a;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { BaseModalContext } from './chunk-FLU4UPP6.js';
|
|
2
|
+
import { _HopperProvider } from './chunk-NMKBUGSO.js';
|
|
3
|
+
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
4
|
+
import { useStyledSystem, useColorSchemeContext, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
5
|
+
import clsx from 'clsx';
|
|
6
|
+
import { forwardRef } from 'react';
|
|
7
|
+
import { useContextProps, ModalOverlay, Modal } from 'react-aria-components';
|
|
8
|
+
import { jsx } from 'react/jsx-runtime';
|
|
9
|
+
|
|
10
|
+
// css-module:./BaseModal.module.css#css-module
|
|
11
|
+
var BaseModal_module_default = { "hop-BaseModal": "BaseModal-module__hop-BaseModal___LqXBi", "hop-BaseModal__modal": "BaseModal-module__hop-BaseModal__modal___wUK4L", "hop-BaseModal--image": "BaseModal-module__hop-BaseModal--image___X2n3t", "hop-BaseModal--entering": "BaseModal-module__hop-BaseModal--entering___ZjPB-", "hop-BaseModal--exiting": "BaseModal-module__hop-BaseModal--exiting___7ghxI", "hop-BaseModal--sm": "BaseModal-module__hop-BaseModal--sm___xo0X2", "hop-BaseModal--md": "BaseModal-module__hop-BaseModal--md___2oqMk", "hop-BaseModal--lg": "BaseModal-module__hop-BaseModal--lg___lUuDv", "hop-BaseModal--xl": "BaseModal-module__hop-BaseModal--xl___FSghE", "hop-BaseModal--fullscreen": "BaseModal-module__hop-BaseModal--fullscreen___w4VpB", "hop-BaseModal--fullscreentakeover": "BaseModal-module__hop-BaseModal--fullscreentakeover___NOaiS" };
|
|
12
|
+
var GlobalBaseModalCssSelector = "hop-BaseModal";
|
|
13
|
+
var BaseModal = (props, ref) => {
|
|
14
|
+
var _a;
|
|
15
|
+
[props, ref] = useContextProps(props, ref, BaseModalContext);
|
|
16
|
+
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
17
|
+
const {
|
|
18
|
+
className,
|
|
19
|
+
style,
|
|
20
|
+
slot,
|
|
21
|
+
size: sizeProp,
|
|
22
|
+
children,
|
|
23
|
+
hasImage,
|
|
24
|
+
...otherProps
|
|
25
|
+
} = ownProps;
|
|
26
|
+
const { colorScheme } = useColorSchemeContext();
|
|
27
|
+
const size = (_a = useResponsiveValue(sizeProp)) != null ? _a : "md";
|
|
28
|
+
const classNames = (renderProps) => clsx(
|
|
29
|
+
GlobalBaseModalCssSelector,
|
|
30
|
+
cssModule(
|
|
31
|
+
BaseModal_module_default,
|
|
32
|
+
GlobalBaseModalCssSelector,
|
|
33
|
+
size.toLowerCase(),
|
|
34
|
+
renderProps.isEntering && "entering",
|
|
35
|
+
renderProps.isExiting && "exiting",
|
|
36
|
+
hasImage && "image"
|
|
37
|
+
),
|
|
38
|
+
stylingProps.className,
|
|
39
|
+
className
|
|
40
|
+
);
|
|
41
|
+
const mergedStyles = {
|
|
42
|
+
...style,
|
|
43
|
+
...stylingProps.style
|
|
44
|
+
};
|
|
45
|
+
return /* @__PURE__ */ jsx(
|
|
46
|
+
ModalOverlay,
|
|
47
|
+
{
|
|
48
|
+
className: classNames,
|
|
49
|
+
style: mergedStyles,
|
|
50
|
+
slot,
|
|
51
|
+
...otherProps,
|
|
52
|
+
children: /* @__PURE__ */ jsx(_HopperProvider, { colorScheme, withCssVariables: false, children: /* @__PURE__ */ jsx(Modal, { ...otherProps, ref, className: BaseModal_module_default["hop-BaseModal__modal"], children }) })
|
|
53
|
+
}
|
|
54
|
+
);
|
|
55
|
+
};
|
|
56
|
+
var _BaseModal = forwardRef(BaseModal);
|
|
57
|
+
_BaseModal.displayName = "BaseModal";
|
|
58
|
+
|
|
59
|
+
export { GlobalBaseModalCssSelector, _BaseModal };
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { SelectContext } from './chunk-T24MBA34.js';
|
|
2
|
-
import { _SelectValue } from './chunk-
|
|
3
|
-
import { _Popover } from './chunk-
|
|
2
|
+
import { _SelectValue } from './chunk-26I53B5Y.js';
|
|
3
|
+
import { _Popover } from './chunk-ZNATFVK3.js';
|
|
4
4
|
import { _Footer } from './chunk-VOZN65OL.js';
|
|
5
5
|
import { _ListBoxSection } from './chunk-DZJSSJVJ.js';
|
|
6
|
-
import { _ListBox } from './chunk-
|
|
7
|
-
import { _ListBoxItem } from './chunk-
|
|
8
|
-
import { _HelperMessage } from './chunk-
|
|
9
|
-
import { _ErrorMessage } from './chunk-
|
|
10
|
-
import { _ToggleArrow } from './chunk-
|
|
11
|
-
import { ensureTextWrapper } from './chunk-
|
|
12
|
-
import { _Label } from './chunk-
|
|
13
|
-
import { useFormProps } from './chunk-
|
|
14
|
-
import { BadgeContext } from './chunk-CQDLZ42T.js';
|
|
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';
|
|
10
|
+
import { _ToggleArrow } from './chunk-HCYKOE75.js';
|
|
11
|
+
import { ensureTextWrapper } from './chunk-W7UY3AN2.js';
|
|
12
|
+
import { _Label } from './chunk-WTW6WMRY.js';
|
|
13
|
+
import { useFormProps } from './chunk-I7VLBEP3.js';
|
|
15
14
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
16
|
-
import { ClearContainerSlots, ClearProviders } from './chunk-HXI3MEEK.js';
|
|
17
15
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
18
16
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
17
|
+
import { ClearContainerSlots, ClearProviders } from './chunk-HXI3MEEK.js';
|
|
19
18
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
19
|
+
import { BadgeContext } from './chunk-CQDLZ42T.js';
|
|
20
20
|
import { IconContext } from '@hopper-ui/icons';
|
|
21
21
|
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
22
22
|
import { forwardRef } from 'react';
|
|
@@ -24,7 +24,7 @@ import { useContextProps, composeRenderProps, TextContext as TextContext$1, Butt
|
|
|
24
24
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
25
25
|
|
|
26
26
|
// css-module:./Select.module.css#css-module
|
|
27
|
-
var Select_module_default = { "hop-Select": "Select-module__hop-
|
|
27
|
+
var Select_module_default = { "hop-Select": "Select-module__hop-Select___KVQHv", "hop-Select--fluid": "Select-module__hop-Select--fluid___lSzM2", "hop-Select__label": "Select-module__hop-Select__label___pshdj", "hop-Select__button": "Select-module__hop-Select__button___5rTKm", "hop-Select__button--sm": "Select-module__hop-Select__button--sm___ehRks", "hop-Select__button--md": "Select-module__hop-Select__button--md___BH0-y", "hop-Select__prefix": "Select-module__hop-Select__prefix___TAdOJ", "hop-Select__button-icon": "Select-module__hop-Select__button-icon___wKFHo", "hop-Select__helper-message": "Select-module__hop-Select__helper-message___RpCak", "hop-Select__error-message": "Select-module__hop-Select__error-message___nQVyx" };
|
|
28
28
|
var GlobalSelectCssSelector = "hop-Select";
|
|
29
29
|
function Select(props, ref) {
|
|
30
30
|
var _a, _b, _c, _d;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LinkContext } from './chunk-4VVNSXIB.js';
|
|
2
2
|
import { IconListContext } from './chunk-DHVVYSLB.js';
|
|
3
|
-
import { ensureTextWrapper } from './chunk-
|
|
3
|
+
import { ensureTextWrapper } from './chunk-W7UY3AN2.js';
|
|
4
4
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
5
5
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
6
6
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
@@ -12,7 +12,7 @@ import { useContextProps, composeRenderProps, DEFAULT_SLOT, Link as Link$1 } fro
|
|
|
12
12
|
import { jsx } from 'react/jsx-runtime';
|
|
13
13
|
|
|
14
14
|
// css-module:./Link.module.css#css-module
|
|
15
|
-
var Link_module_default = { "hop-Link": "Link-module__hop-
|
|
15
|
+
var Link_module_default = { "hop-Link": "Link-module__hop-Link___sCeWy", "hop-Link--standalone": "Link-module__hop-Link--standalone___mtN9Z", "hop-Link__text": "Link-module__hop-Link__text___YHRNC", "hop-Link--xs": "Link-module__hop-Link--xs___B-azq", "hop-Link--sm": "Link-module__hop-Link--sm___Hha6o", "hop-Link--md": "Link-module__hop-Link--md___kzxeS", "hop-Link--lg": "Link-module__hop-Link--lg___cfCm0", "hop-Link--xl": "Link-module__hop-Link--xl___6tp83", "hop-Link--2xl": "Link-module__hop-Link--2xl___yLrAg", "hop-Link--quiet": "Link-module__hop-Link--quiet___BRIBW", "hop-Link--primary": "Link-module__hop-Link--primary___DH6qz", "hop-Link--secondary": "Link-module__hop-Link--secondary___CzbnH", "hop-Link__icon": "Link-module__hop-Link__icon___6gm0X", "hop-Link__icon-list": "Link-module__hop-Link__icon-list___g56cl", "hop-Link__start-icon": "Link-module__hop-Link__start-icon___7Jjwz", "hop-Link__start-icon-list": "Link-module__hop-Link__start-icon-list___B4gCj" };
|
|
16
16
|
var GlobalLinkCssSelector = "hop-Link";
|
|
17
17
|
var LinkToIconSizeAdapter = {
|
|
18
18
|
inherit: void 0,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { useSlot } from './chunk-H5YTU3U7.js';
|
|
2
|
-
import { _Spinner } from './chunk-
|
|
2
|
+
import { _Spinner } from './chunk-OKFJ545T.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-W7UY3AN2.js';
|
|
6
6
|
import { useLocalizedString } from './chunk-75DHKNW2.js';
|
|
7
|
-
import { useFormProps } from './chunk-
|
|
7
|
+
import { useFormProps } from './chunk-I7VLBEP3.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___WdkSc", "hop-Button--fluid": "Button-module__hop-Button--fluid___WKkhM", "hop-Button--sm": "Button-module__hop-Button--sm___jIRK1", "hop-Button--md": "Button-module__hop-Button--md___xdwvA", "hop-Button--icon-only": "Button-module__hop-Button--icon-only___OcIIb", "hop-Button--primary": "Button-module__hop-Button--primary___BpoLJ", "hop-Button--secondary": "Button-module__hop-Button--secondary___0Am2U", "hop-Button--upsell": "Button-module__hop-Button--upsell___Wcium", "hop-Button--danger": "Button-module__hop-Button--danger___G7ebm", "hop-Button--ghost-primary": "Button-module__hop-Button--ghost-primary___YvRvt", "hop-Button--ghost-secondary": "Button-module__hop-Button--ghost-secondary___Dv7Ba", "hop-Button--ghost-danger": "Button-module__hop-Button--ghost-danger___KfaHx", "hop-Button__Spinner": "Button-module__hop-Button__Spinner___uLFFh", "hop-Button__icon": "Button-module__hop-Button__icon___kg2E7", "hop-Button__icon-list": "Button-module__hop-Button__icon-list___4RjGy", "hop-Button__text": "Button-module__hop-Button__text___iCLfv", "hop-Button__end-icon": "Button-module__hop-Button__end-icon___qlCLC", "hop-Button__end-icon-list": "Button-module__hop-Button__end-icon-list___1nrOq" };
|
|
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,
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { InputGroupContext } from './chunk-6BFSSZCY.js';
|
|
2
|
+
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
3
|
+
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
4
|
+
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
5
|
+
import { forwardRef, useContext } from 'react';
|
|
6
|
+
import { useContextProps, FieldErrorContext, composeRenderProps, Group } from 'react-aria-components';
|
|
7
|
+
import { jsx } from 'react/jsx-runtime';
|
|
8
|
+
|
|
9
|
+
// css-module:./InputGroup.module.css#css-module
|
|
10
|
+
var InputGroup_module_default = { "hop-InputGroup": "InputGroup-module__hop-InputGroup___9rw5R", "hop-InputGroup--fluid": "InputGroup-module__hop-InputGroup--fluid___sKCvC" };
|
|
11
|
+
var GlobalInputGroupCssSelector = "hop-InputGroup";
|
|
12
|
+
function InputGroup(props, ref) {
|
|
13
|
+
var _a;
|
|
14
|
+
[props, ref] = useContextProps(props, ref, InputGroupContext);
|
|
15
|
+
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
16
|
+
const {
|
|
17
|
+
className,
|
|
18
|
+
style: styleProp,
|
|
19
|
+
children,
|
|
20
|
+
isFluid: isFluidProp,
|
|
21
|
+
isInvalid,
|
|
22
|
+
...otherProps
|
|
23
|
+
} = ownProps;
|
|
24
|
+
const isFluid = (_a = useResponsiveValue(isFluidProp)) != null ? _a : false;
|
|
25
|
+
const classNames = composeClassnameRenderProps(
|
|
26
|
+
className,
|
|
27
|
+
GlobalInputGroupCssSelector,
|
|
28
|
+
cssModule(
|
|
29
|
+
InputGroup_module_default,
|
|
30
|
+
"hop-InputGroup",
|
|
31
|
+
isFluid && "fluid"
|
|
32
|
+
),
|
|
33
|
+
stylingProps.className
|
|
34
|
+
);
|
|
35
|
+
const validation = useContext(FieldErrorContext);
|
|
36
|
+
const style = composeRenderProps(styleProp, (prev) => {
|
|
37
|
+
return {
|
|
38
|
+
...stylingProps.style,
|
|
39
|
+
...prev
|
|
40
|
+
};
|
|
41
|
+
});
|
|
42
|
+
const handlePointerUp = (e) => {
|
|
43
|
+
var _a2;
|
|
44
|
+
if (e.pointerType !== "mouse" && !e.target.closest("button,input,textarea")) {
|
|
45
|
+
e.preventDefault();
|
|
46
|
+
(_a2 = e.currentTarget.querySelector("input")) == null ? void 0 : _a2.focus();
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
const handlePointerDown = (e) => {
|
|
50
|
+
var _a2;
|
|
51
|
+
if (e.pointerType === "mouse" && !e.target.closest("button,input,textarea")) {
|
|
52
|
+
e.preventDefault();
|
|
53
|
+
(_a2 = e.currentTarget.querySelector("input")) == null ? void 0 : _a2.focus();
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
return /* @__PURE__ */ jsx(
|
|
57
|
+
Group,
|
|
58
|
+
{
|
|
59
|
+
isInvalid: (validation == null ? void 0 : validation.isInvalid) || isInvalid,
|
|
60
|
+
onPointerDown: handlePointerDown,
|
|
61
|
+
onPointerUp: handlePointerUp,
|
|
62
|
+
ref,
|
|
63
|
+
className: classNames,
|
|
64
|
+
style,
|
|
65
|
+
...otherProps,
|
|
66
|
+
children
|
|
67
|
+
}
|
|
68
|
+
);
|
|
69
|
+
}
|
|
70
|
+
var _InputGroup = forwardRef(InputGroup);
|
|
71
|
+
_InputGroup.displayName = "InputGroup";
|
|
72
|
+
|
|
73
|
+
export { GlobalInputGroupCssSelector, _InputGroup };
|