@hopper-ui/components 1.6.1 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/dist/accordion/src/Accordion.css +84 -77
- package/dist/accordion/src/Accordion.js +2 -2
- package/dist/accordion/src/index.css +84 -77
- package/dist/accordion/src/index.js +2 -2
- package/dist/alert/src/Alert.css +617 -325
- package/dist/alert/src/Alert.js +13 -12
- package/dist/alert/src/index.css +617 -325
- package/dist/alert/src/index.js +13 -12
- package/dist/avatar/src/AnonymousAvatar.css +54 -47
- package/dist/avatar/src/AnonymousAvatar.js +2 -2
- package/dist/avatar/src/Avatar.css +72 -65
- package/dist/avatar/src/Avatar.js +5 -5
- package/dist/avatar/src/AvatarGroup.css +71 -64
- package/dist/avatar/src/AvatarGroup.js +8 -8
- package/dist/avatar/src/BrokenAvatar.css +54 -47
- package/dist/avatar/src/BrokenAvatar.js +2 -2
- package/dist/avatar/src/DeletedAvatar.css +54 -47
- package/dist/avatar/src/DeletedAvatar.js +2 -2
- package/dist/avatar/src/RichIconAvatarImage.css +54 -47
- package/dist/avatar/src/RichIconAvatarImage.js +1 -1
- package/dist/avatar/src/index.css +99 -92
- package/dist/avatar/src/index.js +13 -13
- package/dist/badge/src/Badge.css +59 -52
- package/dist/badge/src/Badge.js +3 -3
- package/dist/badge/src/FloatingBadge.css +54 -47
- package/dist/badge/src/FloatingBadge.js +2 -2
- package/dist/badge/src/index.css +69 -62
- package/dist/badge/src/index.js +4 -4
- package/dist/buttons/src/Button.css +110 -103
- package/dist/buttons/src/Button.js +9 -8
- package/dist/buttons/src/ButtonContext.d.ts +13 -3
- package/dist/buttons/src/ButtonGroup.css +55 -48
- package/dist/buttons/src/ButtonGroup.js +3 -1
- package/dist/buttons/src/ButtonGroupContext.d.ts +13 -3
- package/dist/buttons/src/ClearButton.css +115 -108
- package/dist/buttons/src/ClearButton.js +3 -3
- package/dist/buttons/src/CloseButton.css +111 -104
- package/dist/buttons/src/CloseButton.js +10 -9
- package/dist/buttons/src/EmbeddedButton.css +115 -108
- package/dist/buttons/src/EmbeddedButton.js +1 -1
- package/dist/buttons/src/LinkButton.css +119 -112
- package/dist/buttons/src/LinkButton.js +6 -6
- package/dist/buttons/src/ToggleButton.css +630 -0
- package/dist/buttons/src/ToggleButton.d.ts +51 -0
- package/dist/buttons/src/ToggleButton.js +17 -0
- package/dist/buttons/src/ToggleButtonContext.d.ts +22 -0
- package/dist/buttons/src/ToggleButtonContext.js +2 -0
- package/dist/buttons/src/index.css +540 -260
- package/dist/buttons/src/index.d.ts +4 -2
- package/dist/buttons/src/index.js +16 -13
- package/dist/callout/src/Callout.css +552 -272
- package/dist/callout/src/Callout.js +11 -10
- package/dist/callout/src/CompactCallout.css +589 -309
- package/dist/callout/src/CompactCallout.js +11 -10
- package/dist/callout/src/index.css +601 -321
- package/dist/callout/src/index.js +13 -12
- package/dist/card/src/Card.css +47 -40
- package/dist/card/src/Card.js +1 -1
- package/dist/card/src/index.css +47 -40
- package/dist/card/src/index.js +1 -1
- package/dist/checkbox/src/Checkbox.css +63 -56
- package/dist/checkbox/src/Checkbox.js +6 -6
- package/dist/checkbox/src/CheckboxField.css +50 -43
- package/dist/checkbox/src/CheckboxField.js +4 -4
- package/dist/checkbox/src/CheckboxGroup.css +115 -108
- package/dist/checkbox/src/CheckboxGroup.js +10 -9
- package/dist/checkbox/src/DecorativeCheckbox.css +71 -64
- package/dist/checkbox/src/DecorativeCheckbox.js +4 -4
- package/dist/checkbox/src/index.css +115 -108
- package/dist/checkbox/src/index.js +15 -14
- package/dist/{chunk-SGQFSCGP.js → chunk-2AD6XN2R.js} +3 -3
- package/dist/chunk-3ETJUGAP.js +178 -0
- package/dist/{chunk-6EXB57VD.js → chunk-3OGBUJLO.js} +4 -4
- package/dist/chunk-3YYC7XZW.js +190 -0
- package/dist/{chunk-CFBDROF2.js → chunk-57WEWZ4L.js} +2 -2
- package/dist/{chunk-B3VVOS3E.js → chunk-5F2LUFRN.js} +3 -3
- package/dist/{chunk-ZJKGATZR.js → chunk-5I6PDORP.js} +8 -2
- package/dist/{chunk-V6QSG3P7.js → chunk-5MNBACCS.js} +1 -1
- package/dist/{chunk-N63SCDXK.js → chunk-72UDPGXN.js} +2 -2
- package/dist/{chunk-TVDSIL3G.js → chunk-76JOA74P.js} +15 -6
- package/dist/{chunk-3WNM2QCE.js → chunk-7K3TKE2R.js} +2 -2
- package/dist/{chunk-Z6Z2LMH2.js → chunk-7KXUKO5L.js} +1 -1
- package/dist/{chunk-5H7VC5CQ.js → chunk-7WJAJGOX.js} +3 -3
- package/dist/{chunk-IEGPCDG2.js → chunk-A5MNOCQ2.js} +1 -1
- package/dist/{chunk-Q5UDUQNS.js → chunk-BD2ZOQJW.js} +4 -28
- package/dist/chunk-BYERWFG4.js +7 -0
- package/dist/{chunk-54G54DA4.js → chunk-D3QAZ56J.js} +4 -4
- package/dist/{chunk-FVYE4WG4.js → chunk-D7ICCQM5.js} +2 -2
- package/dist/{chunk-NNBUHQU4.js → chunk-DB4Y2SXS.js} +17 -15
- package/dist/{chunk-RNYGUJIL.js → chunk-DGU5YZM5.js} +8 -8
- package/dist/{chunk-H7EN3SVB.js → chunk-DOP43XH5.js} +2 -2
- package/dist/{chunk-2PIBQPSE.js → chunk-DSK6IH5M.js} +4 -4
- package/dist/chunk-E5RHW4IY.js +70 -0
- package/dist/chunk-ESCEY6RN.js +137 -0
- package/dist/{chunk-FMAMU4X6.js → chunk-ETBPFG5Z.js} +8 -4
- package/dist/{chunk-DROINCCH.js → chunk-EWP3IGMD.js} +1 -1
- package/dist/{chunk-HVTA4MEG.js → chunk-F6VSINXC.js} +1 -1
- package/dist/{chunk-MC6PDZR7.js → chunk-FJUFE7XU.js} +10 -8
- package/dist/{chunk-KB2NZRJF.js → chunk-FORSJNLX.js} +20 -10
- package/dist/{chunk-HPOWDWRH.js → chunk-FPHBQO6G.js} +1 -1
- package/dist/{chunk-PDVJDA3N.js → chunk-FSS4CZQI.js} +25 -13
- package/dist/{chunk-S37LFZ2Z.js → chunk-FXNQDM7U.js} +1 -1
- package/dist/{chunk-6C22LT4E.js → chunk-G5AQXKGI.js} +2 -2
- package/dist/{chunk-PZZ76MYC.js → chunk-GDODCIB6.js} +3 -3
- package/dist/{chunk-6BW3MSBX.js → chunk-GHMBKUTU.js} +1 -1
- package/dist/{chunk-4DNIPOHN.js → chunk-GVGOWUJG.js} +2 -2
- package/dist/{chunk-VE63YOPC.js → chunk-HF5YS5Z6.js} +6 -6
- package/dist/{chunk-GN2XLV5G.js → chunk-HL2I2YUG.js} +3 -3
- package/dist/chunk-HZTYQ5FQ.js +22 -0
- package/dist/{chunk-ZICTGDRV.js → chunk-I377K7IX.js} +2 -2
- package/dist/{chunk-RKYCEGIB.js → chunk-JASPC6XG.js} +5 -5
- package/dist/{chunk-ZAORXIJR.js → chunk-JHAHLWQJ.js} +2 -2
- package/dist/{chunk-23MPRPHQ.js → chunk-JNV6W5JC.js} +18 -16
- package/dist/{chunk-TY3S7XMW.js → chunk-JQLKVLV7.js} +2 -2
- package/dist/{chunk-4V3BBI6M.js → chunk-K3GNQGLK.js} +1 -1
- package/dist/{chunk-UZTC5A7X.js → chunk-KD5CC7J2.js} +1 -1
- package/dist/{chunk-VRCFCFB5.js → chunk-KIXYAIPB.js} +4 -4
- package/dist/{chunk-I4IBMLV4.js → chunk-KN6OG3WN.js} +2 -2
- package/dist/{chunk-IKSYTHKX.js → chunk-KOLL65WL.js} +3 -3
- package/dist/{chunk-KNHM5GQQ.js → chunk-L64YORM7.js} +10 -8
- package/dist/{chunk-NOD7XFD7.js → chunk-LO44K2EI.js} +3 -3
- package/dist/{chunk-BARSXCGR.js → chunk-M64J2RXB.js} +2 -2
- package/dist/chunk-MR5BPD6R.js +7 -0
- package/dist/{chunk-PHPJULDV.js → chunk-N6JCPZ5G.js} +2 -2
- package/dist/{chunk-GDUMGSIP.js → chunk-NGZNCS3G.js} +1 -1
- package/dist/{chunk-75DHKNW2.js → chunk-NNLLQWDS.js} +4 -4
- package/dist/{chunk-FCWARLFN.js → chunk-NNPOWTQ4.js} +5 -5
- package/dist/{chunk-N6FVXOZU.js → chunk-NRUHVUQY.js} +1 -1
- package/dist/{chunk-RIEGA5XZ.js → chunk-PPBA6RPY.js} +2 -2
- package/dist/{chunk-WJ55ZV54.js → chunk-PQSMCDAM.js} +3 -0
- package/dist/{chunk-IYYEOE54.js → chunk-PWYDH3ZA.js} +1 -1
- package/dist/{chunk-YPZVGCLY.js → chunk-Q252HANX.js} +3 -3
- package/dist/{chunk-WD34LPOD.js → chunk-Q4BKNDZD.js} +3 -3
- package/dist/{chunk-QYLYNHMO.js → chunk-QCFV6G6K.js} +2 -2
- package/dist/{chunk-G75ACCCJ.js → chunk-QXTTPOP5.js} +1 -1
- package/dist/{chunk-3SSWKFF2.js → chunk-QXZSPZWJ.js} +2 -2
- package/dist/{chunk-MEJX5PMD.js → chunk-RBUBE5ET.js} +1 -1
- package/dist/{chunk-MDFOHG56.js → chunk-RM3WVAEZ.js} +1 -1
- package/dist/{chunk-VOZN65OL.js → chunk-RN3FLBX4.js} +8 -2
- package/dist/{chunk-UWUX4HB6.js → chunk-RNGFFSNG.js} +21 -11
- package/dist/{chunk-LORXIAD3.js → chunk-SLK22PRQ.js} +19 -9
- package/dist/{chunk-FRX2T2G4.js → chunk-TGQ4XIIL.js} +1 -1
- package/dist/{chunk-FM7FVXF6.js → chunk-TXETMX5H.js} +2 -2
- package/dist/{chunk-BROSH5WN.js → chunk-UGZYYO3T.js} +1 -1
- package/dist/{chunk-AI4IV7FO.js → chunk-UH3WEXVR.js} +19 -22
- package/dist/{chunk-ENPVMPHJ.js → chunk-UPGCU4V3.js} +3 -3
- package/dist/{chunk-Y24SHU4H.js → chunk-URTTLQAC.js} +1 -1
- package/dist/{chunk-O7H6JXIB.js → chunk-VECFKZI5.js} +4 -4
- package/dist/{chunk-HCNRBWQR.js → chunk-VEXKMBM6.js} +1 -1
- package/dist/{chunk-BV2IOLOJ.js → chunk-VFURXZPW.js} +3 -3
- package/dist/{chunk-XUTZ5DK5.js → chunk-VQRXNT3Q.js} +2 -2
- package/dist/{chunk-MAWL2EMK.js → chunk-VTHB4J4N.js} +3 -3
- package/dist/{chunk-VB42QDEC.js → chunk-VUWTKMHT.js} +2 -2
- package/dist/{chunk-ZVJPFIET.js → chunk-VX7TMQSF.js} +3 -3
- package/dist/{chunk-S72G6RPK.js → chunk-WEKPO5YP.js} +2 -2
- package/dist/{chunk-J34HZLGN.js → chunk-WLNEXEEX.js} +1 -1
- package/dist/{chunk-4HT6QOTO.js → chunk-WOQOIB6V.js} +9 -3
- package/dist/{chunk-HPSQSM3G.js → chunk-X72OOA2X.js} +3 -3
- package/dist/{chunk-JOCKBZYP.js → chunk-XLJODMSX.js} +8 -2
- package/dist/{chunk-BHXYYOF6.js → chunk-XQ3MES4Y.js} +20 -10
- package/dist/{chunk-DPEJN5GM.js → chunk-Y7ACQLH4.js} +10 -4
- package/dist/{chunk-4VGMZWJ2.js → chunk-YF4DILIQ.js} +1 -1
- package/dist/{chunk-IGVGBFT6.js → chunk-ZHEWPE46.js} +1 -1
- package/dist/{chunk-6OC3EASW.js → chunk-ZWCN6ASW.js} +2 -2
- package/dist/combobox/src/ComboBox.css +960 -684
- package/dist/combobox/src/ComboBox.js +25 -24
- package/dist/combobox/src/index.css +960 -684
- package/dist/combobox/src/index.js +25 -24
- package/dist/contextual-help/src/ContextualHelp.css +4438 -0
- package/dist/contextual-help/src/ContextualHelp.d.ts +40 -0
- package/dist/contextual-help/src/ContextualHelp.js +14 -0
- package/dist/contextual-help/src/ContextualHelpContext.d.ts +13 -0
- package/dist/contextual-help/src/ContextualHelpContext.js +2 -0
- package/dist/contextual-help/src/index.css +4438 -0
- package/dist/contextual-help/src/index.d.ts +10 -0
- package/dist/contextual-help/src/index.js +14 -0
- package/dist/disclosure/src/Disclosure.css +54 -47
- package/dist/disclosure/src/Disclosure.js +2 -2
- package/dist/disclosure/src/DisclosureHeader.css +61 -54
- package/dist/disclosure/src/DisclosureHeader.js +4 -3
- package/dist/disclosure/src/DisclosurePanel.css +54 -47
- package/dist/disclosure/src/DisclosurePanel.js +5 -5
- package/dist/disclosure/src/index.css +79 -72
- package/dist/disclosure/src/index.js +9 -9
- package/dist/divider/src/Divider.css +46 -39
- package/dist/divider/src/Divider.js +1 -1
- package/dist/divider/src/index.css +46 -39
- package/dist/divider/src/index.js +1 -1
- package/dist/error-message/src/ErrorMessage.css +46 -39
- package/dist/error-message/src/ErrorMessage.js +3 -3
- package/dist/error-message/src/index.css +46 -39
- package/dist/error-message/src/index.js +3 -3
- package/dist/form/src/Form.css +44 -37
- package/dist/form/src/Form.js +1 -1
- package/dist/form/src/index.css +44 -37
- package/dist/form/src/index.js +1 -1
- package/dist/header/src/Header.css +279 -0
- package/dist/header/src/Header.js +3 -1
- package/dist/header/src/HeaderContext.d.ts +13 -3
- package/dist/header/src/index.css +279 -0
- package/dist/header/src/index.d.ts +1 -1
- package/dist/header/src/index.js +3 -1
- package/dist/helper-message/src/HelperMessage.css +46 -39
- package/dist/helper-message/src/HelperMessage.js +3 -3
- package/dist/helper-message/src/index.css +46 -39
- package/dist/helper-message/src/index.js +3 -3
- package/dist/hopper-provider/src/HopperProvider.css +45 -38
- package/dist/hopper-provider/src/HopperProvider.js +1 -1
- package/dist/hopper-provider/src/index.css +45 -38
- package/dist/hopper-provider/src/index.js +1 -1
- package/dist/i18n/src/index.js +1 -1
- package/dist/i18n/src/useLocalizedString.js +1 -1
- package/dist/icon-list/src/IconList.css +45 -38
- package/dist/icon-list/src/IconList.js +1 -1
- package/dist/icon-list/src/index.css +45 -38
- package/dist/icon-list/src/index.js +1 -1
- package/dist/illustrated-message/src/IllustratedMessage.css +559 -279
- package/dist/illustrated-message/src/IllustratedMessage.js +2 -2
- package/dist/illustrated-message/src/index.css +559 -279
- package/dist/illustrated-message/src/index.js +2 -2
- package/dist/image/src/Image.css +47 -40
- package/dist/image/src/Image.js +3 -1
- package/dist/image/src/ImageContext.d.ts +13 -3
- package/dist/image/src/SvgImage.css +45 -38
- package/dist/image/src/SvgImage.js +1 -1
- package/dist/image/src/index.css +48 -41
- package/dist/image/src/index.d.ts +1 -1
- package/dist/image/src/index.js +4 -2
- package/dist/index.css +1397 -1044
- package/dist/index.d.ts +13 -7
- package/dist/index.js +124 -118
- package/dist/inputs/src/Input.css +48 -41
- package/dist/inputs/src/Input.js +1 -1
- package/dist/inputs/src/InputGroup.css +50 -43
- package/dist/inputs/src/InputGroup.js +1 -1
- package/dist/inputs/src/NumberField.css +74 -67
- package/dist/inputs/src/NumberField.js +12 -11
- package/dist/inputs/src/PasswordField.css +560 -280
- package/dist/inputs/src/PasswordField.js +12 -11
- package/dist/inputs/src/RemainingCharacterCount.css +47 -40
- package/dist/inputs/src/RemainingCharacterCount.js +4 -4
- package/dist/inputs/src/SearchField.css +566 -286
- package/dist/inputs/src/SearchField.js +13 -12
- package/dist/inputs/src/TextArea.css +71 -64
- package/dist/inputs/src/TextArea.js +11 -10
- package/dist/inputs/src/TextField.css +564 -284
- package/dist/inputs/src/TextField.js +16 -15
- package/dist/inputs/src/index.css +612 -332
- package/dist/inputs/src/index.js +22 -21
- package/dist/layout/src/Content.css +279 -0
- package/dist/layout/src/Content.js +3 -1
- package/dist/layout/src/ContentContext.d.ts +13 -3
- package/dist/layout/src/Footer.css +279 -0
- package/dist/layout/src/Footer.js +3 -1
- package/dist/layout/src/FooterContext.d.ts +13 -3
- package/dist/link/src/Link.css +83 -76
- package/dist/link/src/Link.js +4 -4
- package/dist/link/src/index.css +83 -76
- package/dist/link/src/index.js +4 -4
- package/dist/list-box/src/ListBox.css +318 -311
- package/dist/list-box/src/ListBox.js +10 -10
- package/dist/list-box/src/ListBoxItem.css +306 -299
- package/dist/list-box/src/ListBoxItem.js +7 -7
- package/dist/list-box/src/ListBoxItemSkeleton.css +51 -44
- package/dist/list-box/src/ListBoxItemSkeleton.js +1 -1
- package/dist/list-box/src/index.css +318 -311
- package/dist/list-box/src/index.js +11 -11
- package/dist/menu/src/Menu.css +885 -609
- package/dist/menu/src/Menu.js +4 -4
- package/dist/menu/src/MenuItem.css +123 -116
- package/dist/menu/src/MenuItem.js +3 -3
- package/dist/menu/src/MenuSection.css +46 -39
- package/dist/menu/src/MenuSection.js +1 -1
- package/dist/menu/src/index.css +910 -634
- package/dist/menu/src/index.js +9 -9
- package/dist/modal/src/BaseModal.css +59 -52
- package/dist/modal/src/BaseModal.js +1 -1
- package/dist/modal/src/CustomModal.css +60 -53
- package/dist/modal/src/CustomModal.js +2 -2
- package/dist/modal/src/Modal.css +607 -315
- package/dist/modal/src/Modal.js +12 -11
- package/dist/modal/src/index.css +608 -316
- package/dist/modal/src/index.js +14 -13
- package/dist/overlays/popover/src/Popover.css +877 -597
- package/dist/overlays/popover/src/Popover.js +2 -2
- package/dist/overlays/popover/src/PopoverBase.css +47 -44
- package/dist/overlays/popover/src/PopoverBase.js +1 -1
- package/dist/overlays/popover/src/index.css +880 -604
- package/dist/overlays/popover/src/index.js +3 -3
- package/dist/radio/src/DecorativeRadio.css +71 -64
- package/dist/radio/src/DecorativeRadio.js +4 -4
- package/dist/radio/src/Radio.css +63 -56
- package/dist/radio/src/Radio.js +4 -4
- package/dist/radio/src/RadioField.css +50 -43
- package/dist/radio/src/RadioField.js +3 -3
- package/dist/radio/src/RadioGroup.css +115 -108
- package/dist/radio/src/RadioGroup.js +10 -9
- package/dist/radio/src/index.css +115 -108
- package/dist/radio/src/index.js +15 -14
- package/dist/segmented-control/src/SegmentedControl.css +45 -38
- package/dist/segmented-control/src/SegmentedControl.js +1 -1
- package/dist/segmented-control/src/SegmentedControlItem.css +59 -52
- package/dist/segmented-control/src/SegmentedControlItem.js +3 -3
- package/dist/segmented-control/src/index.css +60 -53
- package/dist/segmented-control/src/index.js +4 -4
- package/dist/select/src/Select.css +904 -628
- package/dist/select/src/Select.js +23 -22
- package/dist/select/src/SelectValue.css +105 -98
- package/dist/select/src/SelectValue.js +4 -4
- package/dist/select/src/index.css +904 -628
- package/dist/select/src/index.js +23 -22
- package/dist/spinner/src/Spinner.css +54 -47
- package/dist/spinner/src/Spinner.js +3 -3
- package/dist/spinner/src/index.css +54 -47
- package/dist/spinner/src/index.js +3 -3
- package/dist/switch/src/Switch.css +60 -53
- package/dist/switch/src/Switch.js +4 -4
- package/dist/switch/src/SwitchField.css +50 -43
- package/dist/switch/src/SwitchField.js +4 -4
- package/dist/switch/src/index.css +66 -59
- package/dist/switch/src/index.js +6 -6
- package/dist/tabs/src/Tab.css +730 -450
- package/dist/tabs/src/Tab.js +4 -4
- package/dist/tabs/src/TabLine.css +46 -39
- package/dist/tabs/src/TabLine.js +1 -1
- package/dist/tabs/src/TabList.css +53 -46
- package/dist/tabs/src/TabList.js +2 -2
- package/dist/tabs/src/TabPanel.css +46 -39
- package/dist/tabs/src/TabPanel.js +1 -1
- package/dist/tabs/src/index.css +741 -461
- package/dist/tabs/src/index.js +7 -7
- package/dist/tag/src/Tag.css +708 -428
- package/dist/tag/src/Tag.js +10 -10
- package/dist/tag/src/TagGroup.css +54 -47
- package/dist/tag/src/TagGroup.js +9 -8
- package/dist/tag/src/index.css +718 -438
- package/dist/tag/src/index.js +15 -14
- package/dist/tile/src/Tile.css +53 -46
- package/dist/tile/src/Tile.js +3 -3
- package/dist/tile/src/TileGroup.css +45 -38
- package/dist/tile/src/TileGroup.js +2 -2
- package/dist/tile/src/index.css +54 -47
- package/dist/tile/src/index.js +5 -5
- package/dist/toggle-arrow/src/ToggleArrow.css +46 -39
- package/dist/toggle-arrow/src/ToggleArrow.js +1 -1
- package/dist/toggle-arrow/src/index.css +46 -39
- package/dist/toggle-arrow/src/index.js +1 -1
- package/dist/tooltip/src/Tooltip.css +54 -47
- package/dist/tooltip/src/Tooltip.js +4 -4
- package/dist/tooltip/src/TooltipTrigger.css +44 -37
- package/dist/tooltip/src/TooltipTrigger.js +2 -2
- package/dist/tooltip/src/index.css +54 -47
- package/dist/tooltip/src/index.js +7 -7
- package/dist/typography/heading/src/Heading.css +44 -37
- package/dist/typography/heading/src/Heading.js +3 -1
- package/dist/typography/heading/src/HeadingContext.d.ts +13 -3
- package/dist/typography/heading/src/index.css +44 -37
- package/dist/typography/heading/src/index.d.ts +1 -1
- package/dist/typography/heading/src/index.js +3 -1
- package/dist/typography/label/src/FieldLabel.css +279 -0
- package/dist/typography/label/src/FieldLabel.d.ts +30 -0
- package/dist/typography/label/src/FieldLabel.js +8 -0
- package/dist/typography/label/src/Label.css +52 -45
- package/dist/typography/label/src/Label.d.ts +0 -10
- package/dist/typography/label/src/Label.js +1 -4
- package/dist/typography/label/src/LabelContext.d.ts +1 -3
- package/dist/typography/label/src/index.css +44 -37
- package/dist/typography/label/src/index.d.ts +4 -2
- package/dist/typography/label/src/index.js +4 -3
- package/dist/typography/overline-text/src/OverlineText.css +44 -37
- package/dist/typography/overline-text/src/OverlineText.js +1 -1
- package/dist/typography/overline-text/src/index.css +44 -37
- package/dist/typography/overline-text/src/index.js +1 -1
- package/dist/typography/paragraph/src/Paragraph.css +44 -37
- package/dist/typography/paragraph/src/Paragraph.js +3 -3
- package/dist/typography/paragraph/src/index.css +44 -37
- package/dist/typography/paragraph/src/index.js +3 -3
- package/dist/typography/text/src/Text.css +44 -37
- package/dist/typography/text/src/Text.js +2 -2
- package/dist/typography/text/src/index.css +44 -37
- package/dist/typography/text/src/index.js +2 -2
- package/dist/utils/src/ClearSlots.css +44 -37
- package/dist/utils/src/ClearSlots.d.ts +1 -2
- package/dist/utils/src/ClearSlots.js +1 -1
- package/dist/utils/src/EnsureTextWrapper.css +44 -37
- package/dist/utils/src/EnsureTextWrapper.js +3 -3
- package/dist/utils/src/index.css +44 -37
- package/dist/utils/src/index.d.ts +2 -1
- package/dist/utils/src/index.js +5 -4
- package/dist/utils/src/types.d.ts +4 -0
- package/dist/utils/src/useProgressVisibility.d.ts +3 -0
- package/dist/utils/src/useProgressVisibility.js +2 -0
- package/package.json +2 -2
- package/dist/chunk-LUQYZSMV.js +0 -121
- package/dist/{chunk-DCO4XGBI.js → chunk-DAF2CRGN.js} +1 -1
|
@@ -1,25 +1,26 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { _CheckboxField as CheckboxField, GlobalCheckboxFieldCssSelector } from '../../chunk-DSK6IH5M.js';
|
|
2
|
+
export { _CheckboxGroup as CheckboxGroup, GlobalCheckboxGroupCssSelector } from '../../chunk-FJUFE7XU.js';
|
|
3
|
+
export { CheckboxFieldContext } from '../../chunk-ZGNK4GWA.js';
|
|
2
4
|
export { CheckboxGroupContext } from '../../chunk-N7YDPVZL.js';
|
|
3
|
-
import '../../chunk-
|
|
5
|
+
import '../../chunk-E5RHW4IY.js';
|
|
6
|
+
import '../../chunk-BD2ZOQJW.js';
|
|
4
7
|
import '../../chunk-YVCZUIU3.js';
|
|
5
|
-
import '../../chunk-
|
|
8
|
+
import '../../chunk-57WEWZ4L.js';
|
|
6
9
|
import '../../chunk-PNEJ6JDM.js';
|
|
7
|
-
import '../../chunk-
|
|
10
|
+
import '../../chunk-DOP43XH5.js';
|
|
8
11
|
import '../../chunk-FV74YT2D.js';
|
|
9
|
-
export { _DecorativeCheckbox as DecorativeCheckbox, GlobalDecorativeCheckboxCssSelector } from '../../chunk-
|
|
10
|
-
export { _Checkbox as Checkbox, GlobalCheckboxCssSelector } from '../../chunk-
|
|
11
|
-
export { _CheckboxField as CheckboxField, GlobalCheckboxFieldCssSelector } from '../../chunk-2PIBQPSE.js';
|
|
12
|
-
export { CheckboxFieldContext } from '../../chunk-ZGNK4GWA.js';
|
|
12
|
+
export { _DecorativeCheckbox as DecorativeCheckbox, GlobalDecorativeCheckboxCssSelector } from '../../chunk-7WJAJGOX.js';
|
|
13
|
+
export { _Checkbox as Checkbox, GlobalCheckboxCssSelector } from '../../chunk-VECFKZI5.js';
|
|
13
14
|
export { CheckboxContext } from '../../chunk-2EAZPH3M.js';
|
|
14
15
|
import '../../chunk-2NSUMKNH.js';
|
|
15
|
-
import '../../chunk-
|
|
16
|
-
import '../../chunk-4V3BBI6M.js';
|
|
16
|
+
import '../../chunk-K3GNQGLK.js';
|
|
17
17
|
import '../../chunk-UYYHPXUH.js';
|
|
18
|
-
import '../../chunk-
|
|
19
|
-
import '../../chunk-
|
|
18
|
+
import '../../chunk-GBWXEK6N.js';
|
|
19
|
+
import '../../chunk-NNLLQWDS.js';
|
|
20
|
+
import '../../chunk-NGZNCS3G.js';
|
|
20
21
|
import '../../chunk-ZWU6DRRZ.js';
|
|
21
|
-
import '../../chunk-
|
|
22
|
-
import '../../chunk-
|
|
22
|
+
import '../../chunk-QCFV6G6K.js';
|
|
23
|
+
import '../../chunk-PQSMCDAM.js';
|
|
23
24
|
import '../../chunk-ZNOU2CGM.js';
|
|
24
25
|
import '../../chunk-65JPI4FL.js';
|
|
25
26
|
import '../../chunk-M36KANKC.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { DisclosureContext } from './chunk-U4HRZ6DN.js';
|
|
2
1
|
import { DisclosurePanelContext } from './chunk-5XY5L6ZN.js';
|
|
2
|
+
import { DisclosureContext } from './chunk-U4HRZ6DN.js';
|
|
3
3
|
import { FormContext } from './chunk-UYYHPXUH.js';
|
|
4
|
-
import { ensureTextWrapper } from './chunk-
|
|
4
|
+
import { ensureTextWrapper } from './chunk-NGZNCS3G.js';
|
|
5
5
|
import { TextContext } from './chunk-ZNOU2CGM.js';
|
|
6
6
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
7
7
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
@@ -12,7 +12,7 @@ import { useContextProps, useSlottedContext, composeRenderProps, DisclosurePanel
|
|
|
12
12
|
import { jsx } from 'react/jsx-runtime';
|
|
13
13
|
|
|
14
14
|
// css-module:./DisclosurePanel.module.css#css-module
|
|
15
|
-
var DisclosurePanel_module_default = { "hop-DisclosurePanel": "DisclosurePanel-module__hop-
|
|
15
|
+
var DisclosurePanel_module_default = { "hop-DisclosurePanel": "DisclosurePanel-module__hop-DisclosurePanel___HLhIQ", "hop-DisclosurePanel--inline": "DisclosurePanel-module__hop-DisclosurePanel--inline___9ivvO", "hop-DisclosurePanel--disabled": "DisclosurePanel-module__hop-DisclosurePanel--disabled___fcp3t", "hop-DisclosurePanel__text": "DisclosurePanel-module__hop-DisclosurePanel__text___OdXkh" };
|
|
16
16
|
var GlobalDisclosurePanelCssSelector = "hop-DisclosurePanel";
|
|
17
17
|
function DisclosurePanel(props, ref) {
|
|
18
18
|
[props, ref] = useContextProps(props, ref, DisclosurePanelContext);
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import { ModalContext } from './chunk-JBPNJWC7.js';
|
|
2
|
+
import { ImageContext } from './chunk-JAR7CXVS.js';
|
|
3
|
+
import { FooterContext } from './chunk-I67NHYK4.js';
|
|
4
|
+
import { HeaderContext } from './chunk-FOQ7KN4V.js';
|
|
5
|
+
import { _BaseModal } from './chunk-ZHEWPE46.js';
|
|
6
|
+
import { HeadingContext } from './chunk-WJRMD4JP.js';
|
|
7
|
+
import { ContentContext } from './chunk-IXB2WK56.js';
|
|
8
|
+
import { ButtonGroupContext } from './chunk-VJQ7M2BK.js';
|
|
9
|
+
import { _CloseButton } from './chunk-HL2I2YUG.js';
|
|
10
|
+
import { ButtonContext } from './chunk-WMTWFKKP.js';
|
|
11
|
+
import { useSlot } from './chunk-H5YTU3U7.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___ySHCj", "hop-Modal__top-container": "Modal-module__hop-Modal__top-container___bFrTu", "hop-Modal__bottom-container": "Modal-module__hop-Modal__bottom-container___WTLwC", "hop-Modal--has-image": "Modal-module__hop-Modal--has-image___sl-TK", "hop-Modal--fullscreen": "Modal-module__hop-Modal--fullscreen___YAq2t", "hop-Modal--fullscreenTakeover": "Modal-module__hop-Modal--fullscreenTakeover___vQhe1", "hop-Modal__close": "Modal-module__hop-Modal__close___-vEV5", "hop-Modal__image": "Modal-module__hop-Modal__image___w1y6y", "hop-Modal__heading": "Modal-module__hop-Modal__heading___3DZyE", "hop-Modal__header": "Modal-module__hop-Modal__header___O6d3Y", "hop-Modal__content": "Modal-module__hop-Modal__content___CT88q", "hop-Modal__footer": "Modal-module__hop-Modal__footer___BNSrO", "hop-Modal__button": "Modal-module__hop-Modal__button___8qI8d", "hop-Modal__button-group": "Modal-module__hop-Modal__button-group___QyHfu" };
|
|
21
|
+
var GlobalModalCssSelector = "hop-Modal";
|
|
22
|
+
var ClearContexts = [ImageContext, HeadingContext, HeaderContext, ContentContext, FooterContext, ButtonContext, ButtonGroupContext];
|
|
23
|
+
var Modal = (props, ref) => {
|
|
24
|
+
var _a;
|
|
25
|
+
[props, ref] = useContextProps(props, ref, ModalContext);
|
|
26
|
+
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
27
|
+
const [imageRef, hasImage] = useSlot();
|
|
28
|
+
const {
|
|
29
|
+
className,
|
|
30
|
+
style,
|
|
31
|
+
slot,
|
|
32
|
+
isDismissible = true,
|
|
33
|
+
isKeyboardDismissDisabled,
|
|
34
|
+
size: sizeProp,
|
|
35
|
+
children: childrenProp,
|
|
36
|
+
isOpen,
|
|
37
|
+
defaultOpen,
|
|
38
|
+
onOpenChange,
|
|
39
|
+
overlayProps,
|
|
40
|
+
...otherProps
|
|
41
|
+
} = ownProps;
|
|
42
|
+
const size = (_a = useResponsiveValue(sizeProp)) != null ? _a : "md";
|
|
43
|
+
const classNames = clsx(
|
|
44
|
+
GlobalModalCssSelector,
|
|
45
|
+
cssModule(
|
|
46
|
+
Modal_module_default,
|
|
47
|
+
GlobalModalCssSelector,
|
|
48
|
+
size,
|
|
49
|
+
hasImage && "has-image"
|
|
50
|
+
),
|
|
51
|
+
stylingProps.className,
|
|
52
|
+
className
|
|
53
|
+
);
|
|
54
|
+
const mergedStyles = {
|
|
55
|
+
...style,
|
|
56
|
+
...stylingProps.style
|
|
57
|
+
};
|
|
58
|
+
const children = composeRenderProps(childrenProp, (prev) => {
|
|
59
|
+
return prev;
|
|
60
|
+
});
|
|
61
|
+
return /* @__PURE__ */ jsx(
|
|
62
|
+
_BaseModal,
|
|
63
|
+
{
|
|
64
|
+
...overlayProps,
|
|
65
|
+
isOpen,
|
|
66
|
+
defaultOpen,
|
|
67
|
+
onOpenChange,
|
|
68
|
+
hasImage,
|
|
69
|
+
size,
|
|
70
|
+
isDismissable: isDismissible,
|
|
71
|
+
isKeyboardDismissDisabled,
|
|
72
|
+
children: /* @__PURE__ */ jsx(
|
|
73
|
+
Dialog,
|
|
74
|
+
{
|
|
75
|
+
...otherProps,
|
|
76
|
+
ref,
|
|
77
|
+
className: classNames,
|
|
78
|
+
style: mergedStyles,
|
|
79
|
+
slot,
|
|
80
|
+
children: (renderProps) => /* @__PURE__ */ jsxs(OverlayTriggerStateContext.Provider, { value: null, children: [
|
|
81
|
+
/* @__PURE__ */ jsxs("div", { className: Modal_module_default["hop-Modal__top-container"], children: [
|
|
82
|
+
/* @__PURE__ */ jsx(
|
|
83
|
+
Provider,
|
|
84
|
+
{
|
|
85
|
+
values: [
|
|
86
|
+
[ImageContext, { isHidden: true }],
|
|
87
|
+
[HeadingContext, {
|
|
88
|
+
className: Modal_module_default["hop-Modal__heading"],
|
|
89
|
+
size: "lg",
|
|
90
|
+
slot: "title",
|
|
91
|
+
clearContexts: ClearContexts
|
|
92
|
+
}],
|
|
93
|
+
[HeaderContext, {
|
|
94
|
+
className: Modal_module_default["hop-Modal__header"],
|
|
95
|
+
clearContexts: ClearContexts
|
|
96
|
+
}],
|
|
97
|
+
[ContentContext, { isHidden: true }],
|
|
98
|
+
[FooterContext, { isHidden: true }],
|
|
99
|
+
[ButtonContext, { isHidden: true }],
|
|
100
|
+
[ButtonGroupContext, { isHidden: true }]
|
|
101
|
+
],
|
|
102
|
+
children: children(renderProps)
|
|
103
|
+
}
|
|
104
|
+
),
|
|
105
|
+
isDismissible && /* @__PURE__ */ jsx(_CloseButton, { className: Modal_module_default["hop-Modal__close"] })
|
|
106
|
+
] }),
|
|
107
|
+
/* @__PURE__ */ jsx(
|
|
108
|
+
Provider,
|
|
109
|
+
{
|
|
110
|
+
values: [
|
|
111
|
+
[ImageContext, { isHidden: true }],
|
|
112
|
+
[HeadingContext, { isHidden: true }],
|
|
113
|
+
[HeaderContext, { isHidden: true }],
|
|
114
|
+
[ContentContext, {
|
|
115
|
+
className: Modal_module_default["hop-Modal__content"],
|
|
116
|
+
clearContexts: ClearContexts
|
|
117
|
+
}],
|
|
118
|
+
[FooterContext, { isHidden: true }],
|
|
119
|
+
[ButtonContext, { isHidden: true }],
|
|
120
|
+
[ButtonGroupContext, { isHidden: true }]
|
|
121
|
+
],
|
|
122
|
+
children: children(renderProps)
|
|
123
|
+
}
|
|
124
|
+
),
|
|
125
|
+
/* @__PURE__ */ jsx("div", { className: Modal_module_default["hop-Modal__bottom-container"], children: /* @__PURE__ */ jsx(
|
|
126
|
+
Provider,
|
|
127
|
+
{
|
|
128
|
+
values: [
|
|
129
|
+
[ImageContext, { isHidden: true }],
|
|
130
|
+
[HeadingContext, { isHidden: true }],
|
|
131
|
+
[HeaderContext, { isHidden: true }],
|
|
132
|
+
[ContentContext, { isHidden: true }],
|
|
133
|
+
[FooterContext, {
|
|
134
|
+
className: Modal_module_default["hop-Modal__footer"],
|
|
135
|
+
clearContexts: ClearContexts
|
|
136
|
+
}],
|
|
137
|
+
[ButtonContext, {
|
|
138
|
+
className: Modal_module_default["hop-Modal__button"],
|
|
139
|
+
clearContexts: ClearContexts
|
|
140
|
+
}],
|
|
141
|
+
[ButtonGroupContext, {
|
|
142
|
+
className: Modal_module_default["hop-Modal__button-group"],
|
|
143
|
+
clearContexts: ClearContexts
|
|
144
|
+
}]
|
|
145
|
+
],
|
|
146
|
+
children: children(renderProps)
|
|
147
|
+
}
|
|
148
|
+
) }),
|
|
149
|
+
/* @__PURE__ */ jsx(
|
|
150
|
+
Provider,
|
|
151
|
+
{
|
|
152
|
+
values: [
|
|
153
|
+
//TODO: should support illustrations
|
|
154
|
+
[ImageContext, {
|
|
155
|
+
className: Modal_module_default["hop-Modal__image"],
|
|
156
|
+
ref: imageRef,
|
|
157
|
+
clearContexts: ClearContexts
|
|
158
|
+
}],
|
|
159
|
+
[HeadingContext, { isHidden: true }],
|
|
160
|
+
[HeaderContext, { isHidden: true }],
|
|
161
|
+
[ContentContext, { isHidden: true }],
|
|
162
|
+
[FooterContext, { isHidden: true }],
|
|
163
|
+
[ButtonContext, { isHidden: true }],
|
|
164
|
+
[ButtonGroupContext, { isHidden: true }]
|
|
165
|
+
],
|
|
166
|
+
children: children(renderProps)
|
|
167
|
+
}
|
|
168
|
+
)
|
|
169
|
+
] })
|
|
170
|
+
}
|
|
171
|
+
)
|
|
172
|
+
}
|
|
173
|
+
);
|
|
174
|
+
};
|
|
175
|
+
var _Modal = forwardRef(Modal);
|
|
176
|
+
_Modal.displayName = "Modal";
|
|
177
|
+
|
|
178
|
+
export { GlobalModalCssSelector, _Modal };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { useImageFallback } from './chunk-QJ5FQN3N.js';
|
|
2
|
-
import { _BrokenAvatar } from './chunk-
|
|
2
|
+
import { _BrokenAvatar } from './chunk-FXNQDM7U.js';
|
|
3
3
|
import { AvatarContext } from './chunk-FA26RZSE.js';
|
|
4
4
|
import { useRenderProps } from './chunk-2NSUMKNH.js';
|
|
5
|
-
import { _Text } from './chunk-
|
|
6
|
-
import { ClearContainerSlots } from './chunk-
|
|
5
|
+
import { _Text } from './chunk-QCFV6G6K.js';
|
|
6
|
+
import { ClearContainerSlots } from './chunk-PQSMCDAM.js';
|
|
7
7
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
8
8
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
9
9
|
import { slot, useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
@@ -13,7 +13,7 @@ import { useContextProps, composeRenderProps } from 'react-aria-components';
|
|
|
13
13
|
import { jsx } from 'react/jsx-runtime';
|
|
14
14
|
|
|
15
15
|
// css-module:./Avatar.module.css#css-module
|
|
16
|
-
var Avatar_module_default = { "hop-Avatar": "Avatar-module__hop-
|
|
16
|
+
var Avatar_module_default = { "hop-Avatar": "Avatar-module__hop-Avatar___sOX9A", "hop-Avatar--xs": "Avatar-module__hop-Avatar--xs___i1aUW", "hop-Avatar--sm": "Avatar-module__hop-Avatar--sm___nwUvL", "hop-Avatar--md": "Avatar-module__hop-Avatar--md___uyw33", "hop-Avatar--lg": "Avatar-module__hop-Avatar--lg___Mui78", "hop-Avatar--xl": "Avatar-module__hop-Avatar--xl___hHaUG", "hop-Avatar--2xl": "Avatar-module__hop-Avatar--2xl___pqrQN", "hop-Avatar--decorative-option1": "Avatar-module__hop-Avatar--decorative-option1___s0WXt", "hop-Avatar--decorative-option2": "Avatar-module__hop-Avatar--decorative-option2___c3i5W", "hop-Avatar--decorative-option3": "Avatar-module__hop-Avatar--decorative-option3___vCyti", "hop-Avatar--decorative-option4": "Avatar-module__hop-Avatar--decorative-option4___JbRKY", "hop-Avatar--decorative-option5": "Avatar-module__hop-Avatar--decorative-option5___xoYBk", "hop-Avatar--decorative-option6": "Avatar-module__hop-Avatar--decorative-option6___T7ZoY", "hop-Avatar--decorative-option7": "Avatar-module__hop-Avatar--decorative-option7___wTPOD", "hop-Avatar--decorative-option8": "Avatar-module__hop-Avatar--decorative-option8___swMm0", "hop-Avatar--decorative-option9": "Avatar-module__hop-Avatar--decorative-option9___en8-c", "hop-Avatar__image": "Avatar-module__hop-Avatar__image___aGfAg" };
|
|
17
17
|
var GlobalAvatarCssSelector = "hop-Avatar";
|
|
18
18
|
var AvatarToTextSizeAdapter = {
|
|
19
19
|
xs: "xs",
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import { PopoverTrigger } from './chunk-KHDRGFVV.js';
|
|
2
|
+
import { _PopoverBase } from './chunk-QXTTPOP5.js';
|
|
3
|
+
import { ContextualHelpContext } from './chunk-MR5BPD6R.js';
|
|
4
|
+
import { ensureTextWrapper } from './chunk-NGZNCS3G.js';
|
|
5
|
+
import { ClearProviders, ClearContainerSlots } from './chunk-PQSMCDAM.js';
|
|
6
|
+
import { TextContext } from './chunk-ZNOU2CGM.js';
|
|
7
|
+
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
8
|
+
import { QuestionIcon, InfoIcon } from '@hopper-ui/icons';
|
|
9
|
+
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
10
|
+
import { useControlledState } from '@react-stately/utils';
|
|
11
|
+
import clsx from 'clsx';
|
|
12
|
+
import { forwardRef, useRef, useState, useCallback, useEffect } from 'react';
|
|
13
|
+
import { useContextProps, ButtonContext, Button, Provider } from 'react-aria-components';
|
|
14
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
15
|
+
|
|
16
|
+
// css-module:./ContextualHelp.module.css#css-module
|
|
17
|
+
var ContextualHelp_module_default = { "hop-ContextualHelp": "ContextualHelp-module__hop-ContextualHelp___-cswK", "hop-ContextualHelp__popover": "ContextualHelp-module__hop-ContextualHelp__popover___-vnF0" };
|
|
18
|
+
var GlobalContextualHelpCssSelector = "hop-ContextualHelp";
|
|
19
|
+
function ContextualHelp(props, ref) {
|
|
20
|
+
var _a;
|
|
21
|
+
[props, ref] = useContextProps(props, ref, ContextualHelpContext);
|
|
22
|
+
const popoverRef = useRef(null);
|
|
23
|
+
const timeoutRef = useRef(null);
|
|
24
|
+
const [openTrigger, setOpenTrigger] = useState(void 0);
|
|
25
|
+
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
26
|
+
const {
|
|
27
|
+
className,
|
|
28
|
+
children,
|
|
29
|
+
defaultOpen,
|
|
30
|
+
isOpen: isOpenProp,
|
|
31
|
+
offset,
|
|
32
|
+
crossOffset,
|
|
33
|
+
onHoverStart,
|
|
34
|
+
onOpenChange,
|
|
35
|
+
onPress,
|
|
36
|
+
popoverProps,
|
|
37
|
+
placement = "top",
|
|
38
|
+
shouldFlip,
|
|
39
|
+
size: sizeProp,
|
|
40
|
+
style,
|
|
41
|
+
slot,
|
|
42
|
+
variant = "help",
|
|
43
|
+
...otherProps
|
|
44
|
+
} = ownProps;
|
|
45
|
+
const [isOpen, setOpen] = useControlledState(isOpenProp, defaultOpen || false, onOpenChange);
|
|
46
|
+
const size = (_a = useResponsiveValue(sizeProp)) != null ? _a : "sm";
|
|
47
|
+
const classNames = clsx(
|
|
48
|
+
GlobalContextualHelpCssSelector,
|
|
49
|
+
cssModule(
|
|
50
|
+
ContextualHelp_module_default,
|
|
51
|
+
GlobalContextualHelpCssSelector,
|
|
52
|
+
placement
|
|
53
|
+
),
|
|
54
|
+
stylingProps.className,
|
|
55
|
+
className
|
|
56
|
+
);
|
|
57
|
+
const mergedStyles = {
|
|
58
|
+
...style,
|
|
59
|
+
...stylingProps.style
|
|
60
|
+
};
|
|
61
|
+
const clearCloseTimeout = useCallback(() => {
|
|
62
|
+
if (timeoutRef.current) {
|
|
63
|
+
clearTimeout(timeoutRef.current);
|
|
64
|
+
timeoutRef.current = null;
|
|
65
|
+
}
|
|
66
|
+
}, []);
|
|
67
|
+
const scheduleClose = useCallback(() => {
|
|
68
|
+
clearCloseTimeout();
|
|
69
|
+
timeoutRef.current = setTimeout(() => {
|
|
70
|
+
setOpen(false);
|
|
71
|
+
}, 50);
|
|
72
|
+
}, [clearCloseTimeout, setOpen]);
|
|
73
|
+
const handleOpenChanged = useCallback((open) => {
|
|
74
|
+
if (openTrigger === "hover") {
|
|
75
|
+
setOpen(open || isOpen);
|
|
76
|
+
} else {
|
|
77
|
+
setOpen(open);
|
|
78
|
+
}
|
|
79
|
+
if (!open) {
|
|
80
|
+
setOpenTrigger(void 0);
|
|
81
|
+
}
|
|
82
|
+
}, [openTrigger, setOpen, isOpen]);
|
|
83
|
+
const handleMouseMove = useCallback((event) => {
|
|
84
|
+
if (!isOpen || openTrigger !== "hover") {
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
const { clientX, clientY } = event;
|
|
88
|
+
if (isPointInSafeArea(clientX, clientY, ref, popoverRef)) {
|
|
89
|
+
clearCloseTimeout();
|
|
90
|
+
} else {
|
|
91
|
+
scheduleClose();
|
|
92
|
+
}
|
|
93
|
+
}, [isOpen, openTrigger, ref, clearCloseTimeout, scheduleClose]);
|
|
94
|
+
const handleTriggerMouseEnter = useCallback(() => {
|
|
95
|
+
clearCloseTimeout();
|
|
96
|
+
setOpen(true);
|
|
97
|
+
}, [clearCloseTimeout, setOpen]);
|
|
98
|
+
useEffect(() => {
|
|
99
|
+
if (isOpen) {
|
|
100
|
+
document.addEventListener("mousemove", handleMouseMove);
|
|
101
|
+
return () => {
|
|
102
|
+
document.removeEventListener("mousemove", handleMouseMove);
|
|
103
|
+
clearCloseTimeout();
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
}, [clearCloseTimeout, handleMouseMove, isOpen]);
|
|
107
|
+
const handlePressed = useCallback((e) => {
|
|
108
|
+
onPress == null ? void 0 : onPress(e);
|
|
109
|
+
setOpenTrigger("click");
|
|
110
|
+
}, [setOpenTrigger, onPress]);
|
|
111
|
+
const handleHoverStarted = useCallback((e) => {
|
|
112
|
+
onHoverStart == null ? void 0 : onHoverStart(e);
|
|
113
|
+
handleTriggerMouseEnter();
|
|
114
|
+
if (openTrigger === void 0) {
|
|
115
|
+
setOpenTrigger("hover");
|
|
116
|
+
}
|
|
117
|
+
}, [handleTriggerMouseEnter, openTrigger, setOpenTrigger, onHoverStart]);
|
|
118
|
+
const Icon = variant === "help" ? QuestionIcon : InfoIcon;
|
|
119
|
+
return (
|
|
120
|
+
/**
|
|
121
|
+
* TODO: Remove the ClearContainerSlots once RAC deploys the issue of Contexts being passed down to Popovers.
|
|
122
|
+
* https://github.com/adobe/react-spectrum/pull/8321#issue-3098913572
|
|
123
|
+
*/
|
|
124
|
+
/* @__PURE__ */ jsx(
|
|
125
|
+
ClearProviders,
|
|
126
|
+
{
|
|
127
|
+
values: [
|
|
128
|
+
ButtonContext
|
|
129
|
+
],
|
|
130
|
+
children: /* @__PURE__ */ jsx(ClearContainerSlots, { children: /* @__PURE__ */ jsxs(PopoverTrigger, { isOpen, onOpenChange: handleOpenChanged, children: [
|
|
131
|
+
/* @__PURE__ */ jsx(
|
|
132
|
+
Button,
|
|
133
|
+
{
|
|
134
|
+
slot: slot != null ? slot : void 0,
|
|
135
|
+
className: classNames,
|
|
136
|
+
style: mergedStyles,
|
|
137
|
+
ref,
|
|
138
|
+
onPress: handlePressed,
|
|
139
|
+
onHoverStart: handleHoverStarted,
|
|
140
|
+
...otherProps,
|
|
141
|
+
children: /* @__PURE__ */ jsx(Icon, { size })
|
|
142
|
+
}
|
|
143
|
+
),
|
|
144
|
+
/* @__PURE__ */ jsx(
|
|
145
|
+
_PopoverBase,
|
|
146
|
+
{
|
|
147
|
+
ref: popoverRef,
|
|
148
|
+
crossOffset,
|
|
149
|
+
isNonModal: openTrigger === "hover",
|
|
150
|
+
offset,
|
|
151
|
+
placement,
|
|
152
|
+
shouldFlip,
|
|
153
|
+
className: clsx(popoverProps == null ? void 0 : popoverProps.className, ContextualHelp_module_default["hop-ContextualHelp__popover"]),
|
|
154
|
+
children: /* @__PURE__ */ jsx(
|
|
155
|
+
Provider,
|
|
156
|
+
{
|
|
157
|
+
values: [
|
|
158
|
+
[TextContext, {
|
|
159
|
+
size: "xs"
|
|
160
|
+
}]
|
|
161
|
+
],
|
|
162
|
+
children: ensureTextWrapper(children)
|
|
163
|
+
}
|
|
164
|
+
)
|
|
165
|
+
}
|
|
166
|
+
)
|
|
167
|
+
] }) })
|
|
168
|
+
}
|
|
169
|
+
)
|
|
170
|
+
);
|
|
171
|
+
}
|
|
172
|
+
function isPointInSafeArea(x, y, triggeRef, popoverRef) {
|
|
173
|
+
if (!triggeRef.current || !popoverRef.current) {
|
|
174
|
+
return false;
|
|
175
|
+
}
|
|
176
|
+
const triggerRect = triggeRef.current.getBoundingClientRect();
|
|
177
|
+
const popoverRect = popoverRef.current.getBoundingClientRect();
|
|
178
|
+
const safeArea = {
|
|
179
|
+
top: Math.min(triggerRect.top, popoverRect.top),
|
|
180
|
+
right: Math.max(triggerRect.right, popoverRect.right),
|
|
181
|
+
bottom: Math.max(triggerRect.bottom, popoverRect.bottom),
|
|
182
|
+
left: Math.min(triggerRect.left, popoverRect.left)
|
|
183
|
+
};
|
|
184
|
+
const isSafe = x >= safeArea.left && x <= safeArea.right && y >= safeArea.top && y <= safeArea.bottom;
|
|
185
|
+
return isSafe;
|
|
186
|
+
}
|
|
187
|
+
var _ContextualHelp = forwardRef(ContextualHelp);
|
|
188
|
+
_ContextualHelp.displayName = "ContextualHelp";
|
|
189
|
+
|
|
190
|
+
export { GlobalContextualHelpCssSelector, _ContextualHelp };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HelperMessageContext } from './chunk-PNEJ6JDM.js';
|
|
2
|
-
import { _Text } from './chunk-
|
|
2
|
+
import { _Text } from './chunk-QCFV6G6K.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___eMQ7m", "hop-HelperMessage__icon": "HelperMessage-module__hop-HelperMessage__icon___hi1Mh" };
|
|
13
13
|
var GlobalHelperMessageCssSelector = "hop-HelperMessage";
|
|
14
14
|
function HelperMessage(props, ref) {
|
|
15
15
|
const validation = useContext(FieldErrorContext);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RadioContext } from './chunk-FU5CCPLP.js';
|
|
2
2
|
import { IconListContext } from './chunk-GBWXEK6N.js';
|
|
3
|
-
import { ensureTextWrapper } from './chunk-
|
|
4
|
-
import { ClearContainerSlots } from './chunk-
|
|
3
|
+
import { ensureTextWrapper } from './chunk-NGZNCS3G.js';
|
|
4
|
+
import { ClearContainerSlots } from './chunk-PQSMCDAM.js';
|
|
5
5
|
import { TextContext } from './chunk-ZNOU2CGM.js';
|
|
6
6
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
7
7
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
@@ -13,7 +13,7 @@ import { useContextProps, composeRenderProps, Radio as Radio$1 } from 'react-ari
|
|
|
13
13
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
14
14
|
|
|
15
15
|
// css-module:./Radio.module.css#css-module
|
|
16
|
-
var Radio_module_default = { "hop-Radio": "Radio-module__hop-
|
|
16
|
+
var Radio_module_default = { "hop-Radio": "Radio-module__hop-Radio___H2CQS", "hop-Radio--sm": "Radio-module__hop-Radio--sm___wsMEb", "hop-Radio--md": "Radio-module__hop-Radio--md___Y9v6E", "hop-Radio__icon": "Radio-module__hop-Radio__icon___AnsTY", "hop-Radio__icon-list": "Radio-module__hop-Radio__icon-list___bpfWX", "hop-Radio__box": "Radio-module__hop-Radio__box___sb7RR", "hop-Radio__bullet": "Radio-module__hop-Radio__bullet___d4tcu", "hop-Radio__text": "Radio-module__hop-Radio__text___y2Kzb" };
|
|
17
17
|
var GlobalRadioCssSelector = "hop-Radio";
|
|
18
18
|
function Radio(props, ref) {
|
|
19
19
|
var _a;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ContentContext } from './chunk-IXB2WK56.js';
|
|
2
|
+
import { ClearProviders } from './chunk-PQSMCDAM.js';
|
|
2
3
|
import { slot, useStyledSystem } from '@hopper-ui/styled-system';
|
|
3
4
|
import clsx from 'clsx';
|
|
4
5
|
import { forwardRef } from 'react';
|
|
@@ -14,8 +15,13 @@ function Content(props, ref) {
|
|
|
14
15
|
children,
|
|
15
16
|
style,
|
|
16
17
|
slot,
|
|
18
|
+
isHidden,
|
|
19
|
+
clearContexts,
|
|
17
20
|
...otherProps
|
|
18
21
|
} = ownProps;
|
|
22
|
+
if (isHidden) {
|
|
23
|
+
return null;
|
|
24
|
+
}
|
|
19
25
|
const classNames = clsx(
|
|
20
26
|
GlobalContentCssSelector,
|
|
21
27
|
stylingProps.className,
|
|
@@ -25,7 +31,7 @@ function Content(props, ref) {
|
|
|
25
31
|
...stylingProps.style,
|
|
26
32
|
...style
|
|
27
33
|
};
|
|
28
|
-
return /* @__PURE__ */ jsx(
|
|
34
|
+
return /* @__PURE__ */ jsx(ClearProviders, { values: clearContexts, children: /* @__PURE__ */ jsx(
|
|
29
35
|
"div",
|
|
30
36
|
{
|
|
31
37
|
ref,
|
|
@@ -35,7 +41,7 @@ function Content(props, ref) {
|
|
|
35
41
|
...otherProps,
|
|
36
42
|
children
|
|
37
43
|
}
|
|
38
|
-
);
|
|
44
|
+
) });
|
|
39
45
|
}
|
|
40
46
|
var _Content = slot("content", forwardRef(Content));
|
|
41
47
|
_Content.displayName = "Content";
|
|
@@ -6,7 +6,7 @@ import { useContextProps, Input as Input$1 } from 'react-aria-components';
|
|
|
6
6
|
import { jsx } from 'react/jsx-runtime';
|
|
7
7
|
|
|
8
8
|
// css-module:./Input.module.css#css-module
|
|
9
|
-
var Input_module_default = { "hop-Input": "Input-module__hop-
|
|
9
|
+
var Input_module_default = { "hop-Input": "Input-module__hop-Input___J6jKQ", "hop-Input--sm": "Input-module__hop-Input--sm___4-YdC" };
|
|
10
10
|
var InputContext = createContext({});
|
|
11
11
|
var Input = forwardRef(function Input2(props, ref) {
|
|
12
12
|
var _a;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { DisclosurePanelContext } from './chunk-5XY5L6ZN.js';
|
|
1
2
|
import { DisclosureHeaderContext } from './chunk-CPAFY34U.js';
|
|
2
3
|
import { DisclosureContext } from './chunk-U4HRZ6DN.js';
|
|
3
|
-
import { DisclosurePanelContext } from './chunk-5XY5L6ZN.js';
|
|
4
4
|
import { AccordionContext } from './chunk-NF64YIEZ.js';
|
|
5
5
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
6
6
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
@@ -11,7 +11,7 @@ import { useContextProps, composeRenderProps, DisclosureGroup } from 'react-aria
|
|
|
11
11
|
import { jsx } from 'react/jsx-runtime';
|
|
12
12
|
|
|
13
13
|
// css-module:./Accordion.module.css#css-module
|
|
14
|
-
var Accordion_module_default = { "hop-Accordion": "Accordion-module__hop-
|
|
14
|
+
var Accordion_module_default = { "hop-Accordion": "Accordion-module__hop-Accordion___8aIDO", "hop-Accordion--inline": "Accordion-module__hop-Accordion--inline___1qVx0", "hop-Accordion__disclosure": "Accordion-module__hop-Accordion__disclosure___Ivbc-", "hop-Accordion__disclosure-header": "Accordion-module__hop-Accordion__disclosure-header___NoAk6", "hop-Accordion__disclosure-panel": "Accordion-module__hop-Accordion__disclosure-panel___HVQa-" };
|
|
15
15
|
var GlobalAccordionCssSelector = "hop-Accordion";
|
|
16
16
|
function Accordion(props, ref) {
|
|
17
17
|
[props, ref] = useContextProps(props, ref, AccordionContext);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { TagGroupContext, InternalTagGroupContext } from './chunk-4BWTFR22.js';
|
|
2
2
|
import { TagContext } from './chunk-EWMWQ2MC.js';
|
|
3
|
-
import {
|
|
4
|
-
import { _HelperMessage } from './chunk-
|
|
5
|
-
import { _ErrorMessage } from './chunk-
|
|
6
|
-
import { useFormProps } from './chunk-
|
|
3
|
+
import { FieldLabel } from './chunk-E5RHW4IY.js';
|
|
4
|
+
import { _HelperMessage } from './chunk-57WEWZ4L.js';
|
|
5
|
+
import { _ErrorMessage } from './chunk-DOP43XH5.js';
|
|
6
|
+
import { useFormProps } from './chunk-K3GNQGLK.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___X4UhS", "hop-TagGroup__label": "TagGroup-module__hop-TagGroup__label___ilXlq", "hop-TagGroup__list": "TagGroup-module__hop-TagGroup__list___8tq8Q", "hop-TagGroup__error-message": "TagGroup-module__hop-TagGroup__error-message___1CYPQ", "hop-TagGroup__helper-message": "TagGroup-module__hop-TagGroup__helper-message___iWSHu" };
|
|
18
18
|
var GlobalTagGroupCssSelector = "hop-TagGroup";
|
|
19
19
|
function TagGroup(props, ref) {
|
|
20
20
|
var _a;
|
|
@@ -24,6 +24,7 @@ function TagGroup(props, ref) {
|
|
|
24
24
|
const {
|
|
25
25
|
className,
|
|
26
26
|
children,
|
|
27
|
+
contextualHelp,
|
|
27
28
|
description,
|
|
28
29
|
errorMessage,
|
|
29
30
|
isInvalid = false,
|
|
@@ -103,7 +104,15 @@ function TagGroup(props, ref) {
|
|
|
103
104
|
style,
|
|
104
105
|
...otherProps,
|
|
105
106
|
children: [
|
|
106
|
-
|
|
107
|
+
/* @__PURE__ */ jsx(
|
|
108
|
+
FieldLabel,
|
|
109
|
+
{
|
|
110
|
+
className: TagGroup_module_default["hop-TagGroup__Label"],
|
|
111
|
+
necessityIndicator,
|
|
112
|
+
contextualHelp,
|
|
113
|
+
children: label
|
|
114
|
+
}
|
|
115
|
+
),
|
|
107
116
|
/* @__PURE__ */ jsx(
|
|
108
117
|
TagList,
|
|
109
118
|
{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TooltipContext } from './chunk-77PD5K3M.js';
|
|
2
2
|
import { TooltipTriggerContext } from './chunk-XXEXHHC6.js';
|
|
3
|
-
import { ensureTextWrapper } from './chunk-
|
|
3
|
+
import { ensureTextWrapper } from './chunk-NGZNCS3G.js';
|
|
4
4
|
import { TextContext } from './chunk-ZNOU2CGM.js';
|
|
5
5
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
6
6
|
import { useStyledSystem, useColorSchemeContext, getRootCSSClasses } from '@hopper-ui/styled-system';
|
|
@@ -10,7 +10,7 @@ import { useContextProps, Provider, Tooltip as Tooltip$1 } from 'react-aria-comp
|
|
|
10
10
|
import { jsx } from 'react/jsx-runtime';
|
|
11
11
|
|
|
12
12
|
// css-module:./Tooltip.module.css#css-module
|
|
13
|
-
var Tooltip_module_default = { "hop-Tooltip": "Tooltip-module__hop-
|
|
13
|
+
var Tooltip_module_default = { "hop-Tooltip": "Tooltip-module__hop-Tooltip___nVbS-", "hop-Tooltip--top": "Tooltip-module__hop-Tooltip--top___0Picg", "hop-Tooltip--right": "Tooltip-module__hop-Tooltip--right___J7XGb", "hop-Tooltip--bottom": "Tooltip-module__hop-Tooltip--bottom___apr36", "hop-Tooltip--left": "Tooltip-module__hop-Tooltip--left___98KWK", "slide": "Tooltip-module__slide___COczJ" };
|
|
14
14
|
var GlobalTooltipCssSelector = "hop-Tooltip";
|
|
15
15
|
function Tooltip(props, ref) {
|
|
16
16
|
[props, ref] = useContextProps(props, ref, TooltipContext);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AvatarContext } from './chunk-FA26RZSE.js';
|
|
2
|
-
import { _RichIconAvatarImage } from './chunk-
|
|
2
|
+
import { _RichIconAvatarImage } from './chunk-NRUHVUQY.js';
|
|
3
3
|
import { useRenderProps } from './chunk-2NSUMKNH.js';
|
|
4
4
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
5
5
|
import { AnonymousRichIcon } from '@hopper-ui/icons';
|