@hopper-ui/components 1.5.12 → 1.5.13
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 +6 -0
- package/README.md +0 -3
- package/dist/accordion/src/Accordion.css +574 -0
- package/dist/accordion/src/Accordion.js +9 -0
- package/dist/accordion/src/AccordionContext.js +2 -0
- package/dist/accordion/src/index.css +574 -0
- package/dist/accordion/src/index.js +9 -0
- package/dist/alert/src/Alert.css +1892 -0
- package/dist/alert/src/Alert.d.ts +75 -0
- package/dist/alert/src/Alert.js +29 -0
- package/dist/alert/src/AlertContext.d.ts +9 -0
- package/dist/alert/src/AlertContext.js +2 -0
- package/dist/alert/src/AlertTrigger.js +2 -0
- package/dist/alert/src/index.css +1892 -0
- package/dist/alert/src/index.d.ts +7 -0
- package/dist/alert/src/index.js +30 -0
- package/dist/avatar/src/AnonymousAvatar.css +304 -0
- package/dist/avatar/src/AnonymousAvatar.d.ts +35 -0
- package/dist/avatar/src/AnonymousAvatar.js +9 -0
- package/dist/avatar/src/Avatar.css +420 -0
- package/dist/avatar/src/Avatar.d.ts +66 -0
- package/dist/avatar/src/Avatar.js +14 -0
- package/dist/avatar/src/AvatarContext.d.ts +12 -0
- package/dist/avatar/src/AvatarContext.js +2 -0
- package/dist/avatar/src/AvatarGroup.css +366 -0
- package/dist/avatar/src/AvatarGroup.d.ts +53 -0
- package/dist/avatar/src/AvatarGroup.js +18 -0
- package/dist/avatar/src/AvatarGroupContext.d.ts +16 -0
- package/dist/avatar/src/AvatarGroupContext.js +2 -0
- package/dist/avatar/src/BrokenAvatar.css +304 -0
- package/dist/avatar/src/BrokenAvatar.d.ts +35 -0
- package/dist/avatar/src/BrokenAvatar.js +9 -0
- package/dist/avatar/src/DeletedAvatar.css +304 -0
- package/dist/avatar/src/DeletedAvatar.d.ts +35 -0
- package/dist/avatar/src/DeletedAvatar.js +9 -0
- package/dist/avatar/src/RichIconAvatarImage.css +304 -0
- package/dist/avatar/src/RichIconAvatarImage.d.ts +39 -0
- package/dist/avatar/src/RichIconAvatarImage.js +7 -0
- package/dist/avatar/src/RichIconAvatarImageContext.d.ts +14 -0
- package/dist/avatar/src/RichIconAvatarImageContext.js +2 -0
- package/dist/avatar/src/index.css +552 -0
- package/dist/avatar/src/index.d.ts +17 -0
- package/dist/avatar/src/index.js +27 -0
- package/dist/avatar/src/useImageFallback.js +2 -0
- package/dist/badge/src/Badge.css +344 -0
- package/dist/badge/src/Badge.js +10 -0
- package/dist/badge/src/BadgeContext.js +2 -0
- package/dist/badge/src/FloatingBadge.css +331 -0
- package/dist/badge/src/FloatingBadge.js +8 -0
- package/dist/badge/src/FloatingBadgeContext.js +2 -0
- package/dist/badge/src/index.css +441 -0
- package/dist/badge/src/index.js +13 -0
- package/dist/buttons/src/Button.css +171 -171
- package/dist/buttons/src/Button.d.ts +1 -1
- package/dist/buttons/src/Button.js +12 -19
- package/dist/buttons/src/ButtonContext.d.ts +1 -1
- package/dist/buttons/src/ButtonGroup.css +114 -114
- package/dist/buttons/src/ButtonGroup.js +2 -2
- package/dist/buttons/src/ClearButton.css +174 -174
- package/dist/buttons/src/ClearButton.js +2 -2
- package/dist/buttons/src/CloseButton.css +172 -172
- package/dist/buttons/src/CloseButton.d.ts +1 -1
- package/dist/buttons/src/CloseButton.js +13 -20
- package/dist/buttons/src/CloseButtonContext.d.ts +1 -1
- package/dist/buttons/src/EmbeddedButton.css +174 -174
- package/dist/buttons/src/EmbeddedButton.js +1 -1
- package/dist/buttons/src/LinkButton.css +179 -179
- package/dist/buttons/src/LinkButton.js +9 -17
- package/dist/buttons/src/index.css +328 -328
- package/dist/buttons/src/index.d.ts +1 -1
- package/dist/buttons/src/index.js +18 -25
- package/dist/callout/src/Callout.css +1662 -0
- package/dist/callout/src/Callout.js +25 -0
- package/dist/callout/src/CalloutContext.js +2 -0
- package/dist/callout/src/CompactCallout.css +1834 -0
- package/dist/callout/src/CompactCallout.js +25 -0
- package/dist/callout/src/CompactCalloutContext.js +2 -0
- package/dist/callout/src/index.css +1931 -0
- package/dist/callout/src/index.js +28 -0
- package/dist/card/src/Card.css +265 -0
- package/dist/card/src/Card.js +4 -0
- package/dist/card/src/CardContext.js +2 -0
- package/dist/card/src/index.css +265 -0
- package/dist/card/src/index.js +4 -0
- package/dist/checkbox/src/Checkbox.css +123 -123
- package/dist/checkbox/src/Checkbox.js +8 -16
- package/dist/checkbox/src/CheckboxField.css +109 -109
- package/dist/checkbox/src/CheckboxField.js +6 -6
- package/dist/checkbox/src/CheckboxGroup.css +177 -177
- package/dist/checkbox/src/CheckboxGroup.js +13 -13
- package/dist/checkbox/src/DecorativeCheckbox.css +131 -131
- package/dist/checkbox/src/DecorativeCheckbox.js +6 -16
- package/dist/checkbox/src/index.css +177 -177
- package/dist/checkbox/src/index.js +19 -24
- package/dist/chunk-26SAFLH2.js +103 -0
- package/dist/chunk-27MSAOIK.js +115 -0
- package/dist/chunk-2O2NCTBM.js +126 -0
- package/dist/chunk-2OHC57EK.js +49 -0
- package/dist/chunk-336PKPIF.js +82 -0
- package/dist/chunk-3B2PUC6W.js +7 -0
- package/dist/chunk-3IAYQDEZ.js +167 -0
- package/dist/chunk-3M3OPDB5.js +70 -0
- package/dist/chunk-3ZHH7T6Q.js +88 -0
- package/dist/chunk-4HEOTMP7.js +7 -0
- package/dist/chunk-4JPU7V7P.js +60 -0
- package/dist/chunk-4LOEZQ6K.js +108 -0
- package/dist/chunk-5CURYPE7.js +7 -0
- package/dist/chunk-5DT3S5YY.js +7 -0
- package/dist/chunk-5K3V5PGZ.js +7 -0
- package/dist/chunk-5UAXAY5Z.js +50 -0
- package/dist/chunk-5XY5L6ZN.js +7 -0
- package/dist/chunk-6BJLSAMM.js +8 -0
- package/dist/chunk-6HPTG4I7.js +89 -0
- package/dist/chunk-6KB3ZPEX.js +112 -0
- package/dist/chunk-77PD5K3M.js +7 -0
- package/dist/chunk-AAMIUZW2.js +41 -0
- package/dist/chunk-AB4BRU6Z.js +7 -0
- package/dist/chunk-AJKN2ALX.js +7 -0
- package/dist/chunk-AQ5PVP2O.js +77 -0
- package/dist/chunk-BAQO6H5D.js +217 -0
- package/dist/chunk-BBFLIS2N.js +76 -0
- package/dist/chunk-BDNN5DKK.js +7 -0
- package/dist/chunk-BQQSNNMG.js +44 -0
- package/dist/chunk-C3X6NC6X.js +122 -0
- package/dist/chunk-CFXK2ZSA.js +85 -0
- package/dist/chunk-CHA2MOQZ.js +32 -0
- package/dist/chunk-CJ3TZIBR.js +87 -0
- package/dist/chunk-CPAFY34U.js +7 -0
- package/dist/chunk-D4HRZVZO.js +7 -0
- package/dist/chunk-DCO4XGBI.js +131 -0
- package/dist/chunk-DIYUJMQO.js +91 -0
- package/dist/chunk-DNWSS3V2.js +123 -0
- package/dist/chunk-DQT6VAIZ.js +94 -0
- package/dist/chunk-DRIRW7MJ.js +77 -0
- package/dist/chunk-E42M72WS.js +74 -0
- package/dist/chunk-EGASA3QE.js +52 -0
- package/dist/chunk-FA26RZSE.js +7 -0
- package/dist/chunk-FDJDFE4U.js +7 -0
- package/dist/chunk-FFSXWRQ4.js +91 -0
- package/dist/chunk-FIEPLQID.js +58 -0
- package/dist/chunk-FJYBZVXI.js +219 -0
- package/dist/chunk-FOQ7KN4V.js +7 -0
- package/dist/chunk-FV74YT2D.js +7 -0
- package/dist/chunk-G7F2YUBR.js +7 -0
- package/dist/chunk-GBWXEK6N.js +7 -0
- package/dist/chunk-GEZ2O7GH.js +85 -0
- package/dist/chunk-H3CEJLCO.js +58 -0
- package/dist/chunk-H3THQ7OK.js +57 -0
- package/dist/chunk-H4FHS5GM.js +66 -0
- package/dist/chunk-HANWII4T.js +57 -0
- package/dist/chunk-IJC3LMVD.js +72 -0
- package/dist/chunk-J7GMVQDE.js +53 -0
- package/dist/chunk-JAR7CXVS.js +7 -0
- package/dist/chunk-JBPNJWC7.js +7 -0
- package/dist/chunk-JOCKBZYP.js +43 -0
- package/dist/chunk-KHDRGFVV.js +7 -0
- package/dist/chunk-KZSTJ3QZ.js +7 -0
- package/dist/chunk-LKH3JL3P.js +58 -0
- package/dist/chunk-LOJ6Y766.js +87 -0
- package/dist/chunk-LWPDIKEX.js +7 -0
- package/dist/chunk-M4CKZFAM.js +7 -0
- package/dist/chunk-MOZ6M5ZZ.js +7 -0
- package/dist/chunk-MSIFNLMK.js +246 -0
- package/dist/chunk-MTULE7GI.js +7 -0
- package/dist/chunk-MYC273X2.js +121 -0
- package/dist/chunk-ND5XR6RA.js +56 -0
- package/dist/chunk-NF64YIEZ.js +7 -0
- package/dist/chunk-NT7BHGVD.js +135 -0
- package/dist/chunk-NX7YNFUX.js +7 -0
- package/dist/chunk-OBWROGLB.js +157 -0
- package/dist/chunk-OKYRSI6N.js +52 -0
- package/dist/chunk-OLY4PH6S.js +7 -0
- package/dist/chunk-ONWB6QY6.js +153 -0
- package/dist/chunk-OXQZEGVN.js +46 -0
- package/dist/chunk-PA5BIB6Z.js +6 -0
- package/dist/chunk-PB7U6BYO.js +116 -0
- package/dist/chunk-PHYO5KW6.js +84 -0
- package/dist/chunk-PJGCHONW.js +58 -0
- package/dist/chunk-PN5BRTOO.js +41 -0
- package/dist/chunk-PNEJ6JDM.js +7 -0
- package/dist/chunk-Q3CGFKER.js +64 -0
- package/dist/chunk-Q7VZSQA4.js +52 -0
- package/dist/chunk-QF25FXI5.js +101 -0
- package/dist/chunk-QJ5FQN3N.js +56 -0
- package/dist/chunk-QOA4KYYB.js +98 -0
- package/dist/chunk-QYMSYYF5.js +56 -0
- package/dist/chunk-RFZC5CHX.js +7 -0
- package/dist/chunk-RNGNPV6Q.js +7 -0
- package/dist/chunk-RPAKOGH6.js +80 -0
- package/dist/chunk-RZFNJMEH.js +7 -0
- package/dist/chunk-S7KMOXY2.js +8 -0
- package/dist/chunk-SA322LHS.js +76 -0
- package/dist/chunk-SVY4NPVL.js +288 -0
- package/dist/chunk-SYFFZMMH.js +144 -0
- package/dist/chunk-TFDJKYCC.js +62 -0
- package/dist/chunk-TKMQCZDW.js +75 -0
- package/dist/chunk-TNLYOFSX.js +146 -0
- package/dist/chunk-TWKILUSS.js +100 -0
- package/dist/chunk-TZEU4NKY.js +124 -0
- package/dist/chunk-U4HRZ6DN.js +7 -0
- package/dist/chunk-UYYHPXUH.js +7 -0
- package/dist/chunk-V53G7BNL.js +74 -0
- package/dist/chunk-VJBJDRCA.js +131 -0
- package/dist/chunk-VS3PE4S6.js +7 -0
- package/dist/chunk-W4TCUPPA.js +7 -0
- package/dist/chunk-W5LSA7PK.js +135 -0
- package/dist/chunk-W6VX3CL4.js +261 -0
- package/dist/chunk-WBSUD7UN.js +174 -0
- package/dist/chunk-WCUPQIIB.js +160 -0
- package/dist/chunk-WJ55ZV54.js +27 -0
- package/dist/chunk-WJRMD4JP.js +7 -0
- package/dist/chunk-WPIH4OAE.js +12 -0
- package/dist/chunk-WUU53CNO.js +124 -0
- package/dist/chunk-X7VALEJB.js +73 -0
- package/dist/chunk-XDFCDNZP.js +90 -0
- package/dist/chunk-XFG3CXMD.js +6 -0
- package/dist/chunk-XXEXHHC6.js +7 -0
- package/dist/chunk-YCKOALBB.js +57 -0
- package/dist/chunk-YDPBF37I.js +67 -0
- package/dist/chunk-YKZRBQ6B.js +7 -0
- package/dist/chunk-YMTZYK3U.js +68 -0
- package/dist/chunk-YVCZUIU3.js +7 -0
- package/dist/chunk-YYRU4JQR.js +114 -0
- package/dist/chunk-ZNOU2CGM.js +7 -0
- package/dist/chunk-ZOTXNUAV.js +7 -0
- package/dist/chunk-ZRDKRE3E.js +7 -0
- package/dist/chunk-ZSFJVMJN.js +7 -0
- package/dist/chunk-ZXON3BAA.js +14 -0
- package/dist/chunk-ZXRWEYKU.js +125 -0
- package/dist/combobox/src/ComboBox.css +4542 -0
- package/dist/combobox/src/ComboBox.d.ts +107 -0
- package/dist/combobox/src/ComboBox.js +54 -0
- package/dist/combobox/src/ComboBoxContext.d.ts +22 -0
- package/dist/combobox/src/ComboBoxContext.js +2 -0
- package/dist/combobox/src/index.css +4542 -0
- package/dist/combobox/src/index.d.ts +18 -0
- package/dist/combobox/src/index.js +54 -0
- package/dist/disclosure/src/Disclosure.css +304 -0
- package/dist/disclosure/src/Disclosure.js +9 -0
- package/dist/disclosure/src/DisclosureContext.js +2 -0
- package/dist/disclosure/src/DisclosureHeader.css +410 -0
- package/dist/disclosure/src/DisclosureHeader.d.ts +21 -0
- package/dist/disclosure/src/DisclosureHeader.js +12 -0
- package/dist/disclosure/src/DisclosureHeaderContext.d.ts +9 -0
- package/dist/disclosure/src/DisclosureHeaderContext.js +2 -0
- package/dist/disclosure/src/DisclosurePanel.css +293 -0
- package/dist/disclosure/src/DisclosurePanel.js +13 -0
- package/dist/disclosure/src/DisclosurePanelContext.js +2 -0
- package/dist/disclosure/src/index.css +529 -0
- package/dist/disclosure/src/index.d.ts +10 -0
- package/dist/disclosure/src/index.js +20 -0
- package/dist/divider/src/Divider.css +268 -0
- package/dist/divider/src/Divider.js +4 -0
- package/dist/divider/src/DividerContext.js +2 -0
- package/dist/divider/src/index.css +268 -0
- package/dist/divider/src/index.js +4 -0
- package/dist/error-message/src/ErrorMessage.css +257 -0
- package/dist/error-message/src/ErrorMessage.d.ts +20 -0
- package/dist/error-message/src/ErrorMessage.js +10 -0
- package/dist/error-message/src/ErrorMessageContext.d.ts +9 -0
- package/dist/error-message/src/ErrorMessageContext.js +2 -0
- package/dist/error-message/src/index.css +257 -0
- package/dist/error-message/src/index.d.ts +6 -0
- package/dist/error-message/src/index.js +10 -0
- package/dist/form/src/Form.css +234 -0
- package/dist/form/src/Form.js +4 -0
- package/dist/form/src/FormContext.js +2 -0
- package/dist/form/src/index.css +234 -0
- package/dist/form/src/index.js +4 -0
- package/dist/header/src/Header.js +3 -0
- package/dist/header/src/HeaderContext.js +2 -0
- package/dist/header/src/index.js +3 -0
- package/dist/helper-message/src/HelperMessage.css +249 -0
- package/dist/helper-message/src/HelperMessage.d.ts +20 -0
- package/dist/helper-message/src/HelperMessage.js +8 -0
- package/dist/helper-message/src/HelperMessageContext.d.ts +9 -0
- package/dist/helper-message/src/HelperMessageContext.js +2 -0
- package/dist/helper-message/src/index.css +249 -0
- package/dist/helper-message/src/index.d.ts +6 -0
- package/dist/helper-message/src/index.js +8 -0
- package/dist/hopper-provider/src/HopperProvider.js +2 -0
- package/dist/hopper-provider/src/index.js +2 -0
- package/dist/icon-list/src/IconList.css +243 -0
- package/dist/icon-list/src/IconList.js +4 -0
- package/dist/icon-list/src/IconListContext.js +2 -0
- package/dist/icon-list/src/index.css +243 -0
- package/dist/icon-list/src/index.js +4 -0
- package/dist/illustrated-message/src/IllustratedMessage.css +1671 -0
- package/dist/illustrated-message/src/IllustratedMessage.js +11 -0
- package/dist/illustrated-message/src/IllustratedMessageContext.js +2 -0
- package/dist/illustrated-message/src/index.css +1671 -0
- package/dist/illustrated-message/src/index.js +11 -0
- package/dist/image/src/Image.css +248 -0
- package/dist/image/src/Image.js +4 -0
- package/dist/image/src/ImageContext.js +2 -0
- package/dist/image/src/SvgImage.css +242 -0
- package/dist/image/src/SvgImage.js +4 -0
- package/dist/image/src/SvgImageContext.js +2 -0
- package/dist/image/src/index.css +256 -0
- package/dist/image/src/index.js +6 -0
- package/dist/index.css +1294 -1112
- package/dist/index.d.ts +101 -95
- package/dist/index.js +156 -151
- package/dist/inputs/src/Input.css +107 -107
- package/dist/inputs/src/Input.js +1 -1
- package/dist/inputs/src/InputGroup.css +109 -109
- package/dist/inputs/src/InputGroup.js +1 -1
- package/dist/inputs/src/NumberField.css +121 -121
- package/dist/inputs/src/NumberField.js +16 -21
- package/dist/inputs/src/PasswordField.css +350 -350
- package/dist/inputs/src/PasswordField.js +16 -21
- package/dist/inputs/src/RemainingCharacterCount.css +106 -106
- package/dist/inputs/src/RemainingCharacterCount.js +4 -13
- package/dist/inputs/src/SearchField.css +356 -356
- package/dist/inputs/src/SearchField.js +17 -22
- package/dist/inputs/src/TextArea.css +118 -118
- package/dist/inputs/src/TextArea.js +14 -19
- package/dist/inputs/src/TextField.css +354 -354
- package/dist/inputs/src/TextField.js +21 -26
- package/dist/inputs/src/index.css +402 -402
- package/dist/inputs/src/index.js +27 -32
- package/dist/link/src/Link.css +426 -0
- package/dist/link/src/Link.js +12 -0
- package/dist/link/src/LinkContext.js +2 -0
- package/dist/link/src/index.css +426 -0
- package/dist/link/src/index.js +12 -0
- package/dist/list-box/src/ListBox.css +2331 -0
- package/dist/list-box/src/ListBox.js +27 -0
- package/dist/list-box/src/ListBoxContext.js +2 -0
- package/dist/list-box/src/ListBoxItem.css +2231 -0
- package/dist/list-box/src/ListBoxItem.js +21 -0
- package/dist/list-box/src/ListBoxItemContext.js +2 -0
- package/dist/list-box/src/ListBoxItemSkeleton.css +291 -0
- package/dist/list-box/src/ListBoxItemSkeleton.js +4 -0
- package/dist/list-box/src/ListBoxItemSkeletonContext.js +2 -0
- package/dist/list-box/src/ListBoxSection.js +3 -0
- package/dist/list-box/src/ListBoxSectionContext.d.ts +9 -0
- package/dist/list-box/src/ListBoxSectionContext.js +2 -0
- package/dist/list-box/src/index.css +2331 -0
- package/dist/list-box/src/index.d.ts +16 -0
- package/dist/list-box/src/index.js +28 -0
- package/dist/modal/src/BaseModal.css +348 -0
- package/dist/modal/src/BaseModal.js +4 -0
- package/dist/modal/src/BaseModalContext.js +2 -0
- package/dist/modal/src/CustomModal.css +362 -0
- package/dist/modal/src/CustomModal.js +6 -0
- package/dist/modal/src/CustomModalContext.js +2 -0
- package/dist/modal/src/Modal.css +1815 -0
- package/dist/modal/src/Modal.js +30 -0
- package/dist/modal/src/ModalContext.js +2 -0
- package/dist/modal/src/ModalTrigger.js +2 -0
- package/dist/modal/src/index.css +1829 -0
- package/dist/modal/src/index.js +33 -0
- package/dist/overlays/popover/src/Popover.css +3995 -0
- package/dist/overlays/popover/src/Popover.js +16 -0
- package/dist/overlays/popover/src/PopoverBase.css +268 -0
- package/dist/overlays/popover/src/PopoverBase.js +5 -0
- package/dist/overlays/popover/src/PopoverBaseContext.js +2 -0
- package/dist/overlays/popover/src/PopoverContext.js +2 -0
- package/dist/overlays/popover/src/PopoverTrigger.js +2 -0
- package/dist/overlays/popover/src/index.css +4029 -0
- package/dist/overlays/popover/src/index.js +19 -0
- package/dist/radio/src/DecorativeRadio.css +131 -131
- package/dist/radio/src/DecorativeRadio.js +6 -16
- package/dist/radio/src/Radio.css +123 -123
- package/dist/radio/src/Radio.js +6 -16
- package/dist/radio/src/RadioField.css +95 -95
- package/dist/radio/src/RadioField.js +4 -4
- package/dist/radio/src/RadioGroup.css +163 -163
- package/dist/radio/src/RadioGroup.js +12 -12
- package/dist/radio/src/index.css +177 -177
- package/dist/radio/src/index.js +18 -23
- package/dist/segmented-control/src/SegmentedControl.css +252 -0
- package/dist/segmented-control/src/SegmentedControl.js +5 -0
- package/dist/segmented-control/src/SegmentedControlContext.js +2 -0
- package/dist/segmented-control/src/SegmentedControlItem.css +345 -0
- package/dist/segmented-control/src/SegmentedControlItem.js +9 -0
- package/dist/segmented-control/src/SegmentedControlItemContext.js +2 -0
- package/dist/segmented-control/src/index.css +363 -0
- package/dist/segmented-control/src/index.js +10 -0
- package/dist/select/src/Select.css +4203 -0
- package/dist/select/src/Select.d.ts +114 -0
- package/dist/select/src/Select.js +53 -0
- package/dist/select/src/SelectContext.d.ts +21 -0
- package/dist/select/src/SelectContext.js +2 -0
- package/dist/select/src/SelectValue.css +589 -0
- package/dist/select/src/SelectValue.js +12 -0
- package/dist/select/src/index.css +4203 -0
- package/dist/select/src/index.d.ts +18 -0
- package/dist/select/src/index.js +53 -0
- package/dist/spinner/src/Spinner.css +303 -0
- package/dist/spinner/src/Spinner.js +9 -0
- package/dist/spinner/src/SpinnerContext.js +2 -0
- package/dist/spinner/src/index.css +303 -0
- package/dist/spinner/src/index.js +9 -0
- package/dist/switch/src/Switch.css +120 -120
- package/dist/switch/src/Switch.js +6 -16
- package/dist/switch/src/SwitchField.css +95 -95
- package/dist/switch/src/SwitchField.js +5 -5
- package/dist/switch/src/index.css +126 -126
- package/dist/switch/src/index.js +8 -18
- package/dist/tabs/src/Tab.css +2888 -0
- package/dist/tabs/src/Tab.js +10 -0
- package/dist/tabs/src/TabLine.css +253 -0
- package/dist/tabs/src/TabLine.js +3 -0
- package/dist/tabs/src/TabList.css +308 -0
- package/dist/tabs/src/TabList.js +5 -0
- package/dist/tabs/src/TabPanel.css +246 -0
- package/dist/tabs/src/TabPanel.js +4 -0
- package/dist/tabs/src/Tabs.js +3 -0
- package/dist/tabs/src/TabsContext.js +2 -0
- package/dist/tabs/src/index.css +2974 -0
- package/dist/tabs/src/index.js +14 -0
- package/dist/tag/src/Tag.css +605 -473
- package/dist/tag/src/Tag.d.ts +1 -1
- package/dist/tag/src/Tag.js +16 -23
- package/dist/tag/src/TagContext.d.ts +1 -1
- package/dist/tag/src/TagGroup.css +101 -101
- package/dist/tag/src/TagGroup.d.ts +1 -1
- package/dist/tag/src/TagGroup.js +12 -12
- package/dist/tag/src/TagGroupContext.d.ts +1 -1
- package/dist/tag/src/index.css +617 -485
- package/dist/tag/src/index.d.ts +1 -1
- package/dist/tag/src/index.js +23 -28
- package/dist/tile/src/Tile.css +327 -0
- package/dist/tile/src/Tile.js +9 -0
- package/dist/tile/src/TileContext.js +2 -0
- package/dist/tile/src/TileGroup.css +242 -0
- package/dist/tile/src/TileGroup.js +6 -0
- package/dist/tile/src/TileGroupContext.js +2 -0
- package/dist/tile/src/index.css +335 -0
- package/dist/tile/src/index.js +11 -0
- package/dist/toggle-arrow/src/ToggleArrow.css +244 -0
- package/dist/toggle-arrow/src/ToggleArrow.js +4 -0
- package/dist/toggle-arrow/src/ToggleArrowContext.js +2 -0
- package/dist/toggle-arrow/src/index.css +244 -0
- package/dist/toggle-arrow/src/index.js +4 -0
- package/dist/tooltip/src/Tooltip.css +285 -0
- package/dist/tooltip/src/Tooltip.js +11 -0
- package/dist/tooltip/src/TooltipContext.js +2 -0
- package/dist/tooltip/src/TooltipTrigger.css +234 -0
- package/dist/tooltip/src/TooltipTrigger.js +6 -0
- package/dist/tooltip/src/TooltipTriggerContext.js +2 -0
- package/dist/tooltip/src/index.css +285 -0
- package/dist/tooltip/src/index.js +15 -0
- package/dist/typography/heading/src/Heading.css +234 -0
- package/dist/typography/heading/src/Heading.js +4 -0
- package/dist/typography/heading/src/HeadingContext.js +2 -0
- package/dist/typography/heading/src/index.css +234 -0
- package/dist/typography/heading/src/index.js +4 -0
- package/dist/typography/label/src/Label.css +234 -0
- package/dist/typography/label/src/Label.js +7 -0
- package/dist/typography/label/src/LabelContext.js +2 -0
- package/dist/typography/label/src/index.css +234 -0
- package/dist/typography/label/src/index.js +7 -0
- package/dist/typography/overline-text/src/OverlineText.css +234 -0
- package/dist/typography/overline-text/src/OverlineText.js +4 -0
- package/dist/typography/overline-text/src/OverlineTextContext.js +2 -0
- package/dist/typography/overline-text/src/index.css +234 -0
- package/dist/typography/overline-text/src/index.js +4 -0
- package/dist/typography/text/src/Text.css +234 -0
- package/dist/typography/text/src/Text.js +6 -0
- package/dist/typography/text/src/TextContext.js +2 -0
- package/dist/typography/text/src/index.css +234 -0
- package/dist/typography/text/src/index.js +6 -0
- package/dist/utils/src/ClearSlots.css +89 -89
- package/dist/utils/src/ClearSlots.js +2 -2
- package/dist/utils/src/EnsureTextWrapper.css +103 -103
- package/dist/utils/src/EnsureTextWrapper.js +4 -14
- package/dist/utils/src/index.css +103 -103
- package/dist/utils/src/index.js +7 -17
- package/package.json +1 -1
- package/dist/Accordion/src/Accordion.css +0 -574
- package/dist/Accordion/src/Accordion.js +0 -9
- package/dist/Accordion/src/AccordionContext.js +0 -2
- package/dist/Accordion/src/index.css +0 -574
- package/dist/Accordion/src/index.js +0 -9
- package/dist/Alert/src/Alert.css +0 -1892
- package/dist/Alert/src/Alert.d.ts +0 -75
- package/dist/Alert/src/Alert.js +0 -35
- package/dist/Alert/src/AlertContext.d.ts +0 -9
- package/dist/Alert/src/AlertContext.js +0 -2
- package/dist/Alert/src/AlertTrigger.js +0 -2
- package/dist/Alert/src/index.css +0 -1892
- package/dist/Alert/src/index.d.ts +0 -7
- package/dist/Alert/src/index.js +0 -36
- package/dist/Avatar/src/AnonymousAvatar.css +0 -304
- package/dist/Avatar/src/AnonymousAvatar.d.ts +0 -35
- package/dist/Avatar/src/AnonymousAvatar.js +0 -9
- package/dist/Avatar/src/Avatar.css +0 -420
- package/dist/Avatar/src/Avatar.d.ts +0 -66
- package/dist/Avatar/src/Avatar.js +0 -14
- package/dist/Avatar/src/AvatarContext.d.ts +0 -12
- package/dist/Avatar/src/AvatarContext.js +0 -2
- package/dist/Avatar/src/BrokenAvatar.css +0 -304
- package/dist/Avatar/src/BrokenAvatar.d.ts +0 -35
- package/dist/Avatar/src/BrokenAvatar.js +0 -9
- package/dist/Avatar/src/DeletedAvatar.css +0 -304
- package/dist/Avatar/src/DeletedAvatar.d.ts +0 -35
- package/dist/Avatar/src/DeletedAvatar.js +0 -9
- package/dist/Avatar/src/RichIconAvatarImage.css +0 -304
- package/dist/Avatar/src/RichIconAvatarImage.d.ts +0 -39
- package/dist/Avatar/src/RichIconAvatarImage.js +0 -7
- package/dist/Avatar/src/RichIconAvatarImageContext.d.ts +0 -14
- package/dist/Avatar/src/RichIconAvatarImageContext.js +0 -2
- package/dist/Avatar/src/index.css +0 -420
- package/dist/Avatar/src/index.d.ts +0 -15
- package/dist/Avatar/src/index.js +0 -16
- package/dist/Avatar/src/useImageFallback.js +0 -2
- package/dist/Badge/src/Badge.css +0 -344
- package/dist/Badge/src/Badge.js +0 -10
- package/dist/Badge/src/BadgeContext.js +0 -2
- package/dist/Badge/src/FloatingBadge.css +0 -331
- package/dist/Badge/src/FloatingBadge.js +0 -8
- package/dist/Badge/src/FloatingBadgeContext.js +0 -2
- package/dist/Badge/src/index.css +0 -441
- package/dist/Badge/src/index.js +0 -13
- package/dist/Callout/src/Callout.css +0 -1662
- package/dist/Callout/src/Callout.js +0 -31
- package/dist/Callout/src/CalloutContext.js +0 -2
- package/dist/Callout/src/CompactCallout.css +0 -1834
- package/dist/Callout/src/CompactCallout.js +0 -32
- package/dist/Callout/src/CompactCalloutContext.js +0 -2
- package/dist/Callout/src/index.css +0 -1931
- package/dist/Callout/src/index.js +0 -34
- package/dist/Card/src/Card.css +0 -265
- package/dist/Card/src/Card.js +0 -4
- package/dist/Card/src/CardContext.js +0 -2
- package/dist/Card/src/index.css +0 -265
- package/dist/Card/src/index.js +0 -4
- package/dist/ComboBox/src/ComboBox.css +0 -4410
- package/dist/ComboBox/src/ComboBox.d.ts +0 -107
- package/dist/ComboBox/src/ComboBox.js +0 -58
- package/dist/ComboBox/src/ComboBoxContext.d.ts +0 -22
- package/dist/ComboBox/src/ComboBoxContext.js +0 -2
- package/dist/ComboBox/src/index.css +0 -4410
- package/dist/ComboBox/src/index.d.ts +0 -18
- package/dist/ComboBox/src/index.js +0 -58
- package/dist/Disclosure/src/Disclosure.css +0 -304
- package/dist/Disclosure/src/Disclosure.js +0 -9
- package/dist/Disclosure/src/DisclosureContext.js +0 -2
- package/dist/Disclosure/src/DisclosureHeader.css +0 -410
- package/dist/Disclosure/src/DisclosureHeader.d.ts +0 -21
- package/dist/Disclosure/src/DisclosureHeader.js +0 -22
- package/dist/Disclosure/src/DisclosureHeaderContext.d.ts +0 -9
- package/dist/Disclosure/src/DisclosureHeaderContext.js +0 -2
- package/dist/Disclosure/src/DisclosurePanel.css +0 -293
- package/dist/Disclosure/src/DisclosurePanel.js +0 -22
- package/dist/Disclosure/src/DisclosurePanelContext.js +0 -2
- package/dist/Disclosure/src/index.css +0 -529
- package/dist/Disclosure/src/index.d.ts +0 -10
- package/dist/Disclosure/src/index.js +0 -27
- package/dist/Divider/src/Divider.css +0 -268
- package/dist/Divider/src/Divider.js +0 -4
- package/dist/Divider/src/DividerContext.js +0 -2
- package/dist/Divider/src/index.css +0 -268
- package/dist/Divider/src/index.js +0 -4
- package/dist/ErrorMessage/src/ErrorMessage.css +0 -257
- package/dist/ErrorMessage/src/ErrorMessage.d.ts +0 -20
- package/dist/ErrorMessage/src/ErrorMessage.js +0 -10
- package/dist/ErrorMessage/src/ErrorMessageContext.d.ts +0 -9
- package/dist/ErrorMessage/src/ErrorMessageContext.js +0 -2
- package/dist/ErrorMessage/src/index.css +0 -257
- package/dist/ErrorMessage/src/index.d.ts +0 -6
- package/dist/ErrorMessage/src/index.js +0 -10
- package/dist/Form/src/Form.css +0 -234
- package/dist/Form/src/Form.js +0 -4
- package/dist/Form/src/FormContext.js +0 -2
- package/dist/Form/src/index.css +0 -234
- package/dist/Form/src/index.js +0 -4
- package/dist/Header/src/Header.js +0 -3
- package/dist/Header/src/HeaderContext.js +0 -2
- package/dist/Header/src/index.js +0 -3
- package/dist/HelperMessage/src/HelperMessage.css +0 -249
- package/dist/HelperMessage/src/HelperMessage.d.ts +0 -20
- package/dist/HelperMessage/src/HelperMessage.js +0 -8
- package/dist/HelperMessage/src/HelperMessageContext.d.ts +0 -9
- package/dist/HelperMessage/src/HelperMessageContext.js +0 -2
- package/dist/HelperMessage/src/index.css +0 -249
- package/dist/HelperMessage/src/index.d.ts +0 -6
- package/dist/HelperMessage/src/index.js +0 -8
- package/dist/HopperProvider/src/HopperProvider.js +0 -2
- package/dist/HopperProvider/src/index.js +0 -2
- package/dist/IconList/src/IconList.css +0 -243
- package/dist/IconList/src/IconList.js +0 -4
- package/dist/IconList/src/IconListContext.js +0 -2
- package/dist/IconList/src/index.css +0 -243
- package/dist/IconList/src/index.js +0 -4
- package/dist/IllustratedMessage/src/IllustratedMessage.css +0 -1671
- package/dist/IllustratedMessage/src/IllustratedMessage.js +0 -11
- package/dist/IllustratedMessage/src/IllustratedMessageContext.js +0 -2
- package/dist/IllustratedMessage/src/index.css +0 -1671
- package/dist/IllustratedMessage/src/index.js +0 -11
- package/dist/Image/src/Image.css +0 -248
- package/dist/Image/src/Image.js +0 -4
- package/dist/Image/src/ImageContext.js +0 -2
- package/dist/Image/src/SvgImage.css +0 -242
- package/dist/Image/src/SvgImage.js +0 -4
- package/dist/Image/src/SvgImageContext.js +0 -2
- package/dist/Image/src/index.css +0 -256
- package/dist/Image/src/index.js +0 -6
- package/dist/Link/src/Link.css +0 -426
- package/dist/Link/src/Link.js +0 -22
- package/dist/Link/src/LinkContext.js +0 -2
- package/dist/Link/src/index.css +0 -426
- package/dist/Link/src/index.js +0 -22
- package/dist/ListBox/src/ListBox.css +0 -2199
- package/dist/ListBox/src/ListBox.js +0 -36
- package/dist/ListBox/src/ListBoxContext.js +0 -2
- package/dist/ListBox/src/ListBoxItem.css +0 -2099
- package/dist/ListBox/src/ListBoxItem.js +0 -31
- package/dist/ListBox/src/ListBoxItemContext.js +0 -2
- package/dist/ListBox/src/ListBoxItemSkeleton.css +0 -291
- package/dist/ListBox/src/ListBoxItemSkeleton.js +0 -4
- package/dist/ListBox/src/ListBoxItemSkeletonContext.js +0 -2
- package/dist/ListBox/src/index.css +0 -2199
- package/dist/ListBox/src/index.d.ts +0 -14
- package/dist/ListBox/src/index.js +0 -36
- package/dist/ListBoxSection/src/ListBoxSection.js +0 -3
- package/dist/ListBoxSection/src/ListBoxSectionContext.d.ts +0 -9
- package/dist/ListBoxSection/src/ListBoxSectionContext.js +0 -2
- package/dist/ListBoxSection/src/index.d.ts +0 -6
- package/dist/ListBoxSection/src/index.js +0 -3
- package/dist/Modal/src/BaseModal.css +0 -348
- package/dist/Modal/src/BaseModal.js +0 -4
- package/dist/Modal/src/BaseModalContext.js +0 -2
- package/dist/Modal/src/CustomModal.css +0 -362
- package/dist/Modal/src/CustomModal.js +0 -6
- package/dist/Modal/src/CustomModalContext.js +0 -2
- package/dist/Modal/src/Modal.css +0 -1815
- package/dist/Modal/src/Modal.js +0 -36
- package/dist/Modal/src/ModalContext.js +0 -2
- package/dist/Modal/src/ModalTrigger.js +0 -2
- package/dist/Modal/src/index.css +0 -1829
- package/dist/Modal/src/index.js +0 -39
- package/dist/SegmentedControl/src/SegmentedControl.css +0 -252
- package/dist/SegmentedControl/src/SegmentedControl.js +0 -5
- package/dist/SegmentedControl/src/SegmentedControlContext.js +0 -2
- package/dist/SegmentedControl/src/SegmentedControlItem.css +0 -345
- package/dist/SegmentedControl/src/SegmentedControlItem.js +0 -19
- package/dist/SegmentedControl/src/SegmentedControlItemContext.js +0 -2
- package/dist/SegmentedControl/src/index.css +0 -363
- package/dist/SegmentedControl/src/index.js +0 -20
- package/dist/Select/src/Select.css +0 -4071
- package/dist/Select/src/Select.d.ts +0 -114
- package/dist/Select/src/Select.js +0 -57
- package/dist/Select/src/SelectContext.d.ts +0 -21
- package/dist/Select/src/SelectContext.js +0 -2
- package/dist/Select/src/SelectValue.css +0 -457
- package/dist/Select/src/SelectValue.js +0 -21
- package/dist/Select/src/index.css +0 -4071
- package/dist/Select/src/index.d.ts +0 -18
- package/dist/Select/src/index.js +0 -57
- package/dist/Spinner/src/Spinner.css +0 -303
- package/dist/Spinner/src/Spinner.js +0 -9
- package/dist/Spinner/src/SpinnerContext.js +0 -2
- package/dist/Spinner/src/index.css +0 -303
- package/dist/Spinner/src/index.js +0 -9
- package/dist/Tabs/src/Tab.css +0 -2756
- package/dist/Tabs/src/Tab.js +0 -10
- package/dist/Tabs/src/TabLine.css +0 -253
- package/dist/Tabs/src/TabLine.js +0 -3
- package/dist/Tabs/src/TabList.css +0 -308
- package/dist/Tabs/src/TabList.js +0 -5
- package/dist/Tabs/src/TabPanel.css +0 -246
- package/dist/Tabs/src/TabPanel.js +0 -4
- package/dist/Tabs/src/Tabs.js +0 -3
- package/dist/Tabs/src/TabsContext.js +0 -2
- package/dist/Tabs/src/index.css +0 -2842
- package/dist/Tabs/src/index.js +0 -14
- package/dist/Tile/src/Tile.css +0 -327
- package/dist/Tile/src/Tile.js +0 -19
- package/dist/Tile/src/TileContext.js +0 -2
- package/dist/Tile/src/TileGroup.css +0 -242
- package/dist/Tile/src/TileGroup.js +0 -6
- package/dist/Tile/src/TileGroupContext.js +0 -2
- package/dist/Tile/src/index.css +0 -335
- package/dist/Tile/src/index.js +0 -21
- package/dist/ToggleArrow/src/ToggleArrow.css +0 -244
- package/dist/ToggleArrow/src/ToggleArrow.js +0 -4
- package/dist/ToggleArrow/src/ToggleArrowContext.js +0 -2
- package/dist/ToggleArrow/src/index.css +0 -244
- package/dist/ToggleArrow/src/index.js +0 -4
- package/dist/Tooltip/src/Tooltip.css +0 -285
- package/dist/Tooltip/src/Tooltip.js +0 -21
- package/dist/Tooltip/src/TooltipContext.js +0 -2
- package/dist/Tooltip/src/TooltipTrigger.css +0 -234
- package/dist/Tooltip/src/TooltipTrigger.js +0 -6
- package/dist/Tooltip/src/TooltipTriggerContext.js +0 -2
- package/dist/Tooltip/src/index.css +0 -285
- package/dist/Tooltip/src/index.js +0 -25
- package/dist/chunk-2275KHRM.js +0 -85
- package/dist/chunk-24A5HTNX.js +0 -76
- package/dist/chunk-2CH4NRJK.js +0 -74
- package/dist/chunk-2DJOSCOS.js +0 -261
- package/dist/chunk-34C3NQQ7.js +0 -57
- package/dist/chunk-3GDBPRCQ.js +0 -44
- package/dist/chunk-3MTGAZ77.js +0 -7
- package/dist/chunk-3ZCLNFNH.js +0 -56
- package/dist/chunk-3ZFWPRCT.js +0 -101
- package/dist/chunk-4GLP7EEA.js +0 -131
- package/dist/chunk-4VVNSXIB.js +0 -7
- package/dist/chunk-4XHTP4GX.js +0 -7
- package/dist/chunk-4ZYV2XLW.js +0 -7
- package/dist/chunk-54LJAB7Z.js +0 -77
- package/dist/chunk-5GJBTYRR.js +0 -75
- package/dist/chunk-5GXZIX65.js +0 -68
- package/dist/chunk-5ZUPQ3QC.js +0 -116
- package/dist/chunk-6IH5OUNU.js +0 -41
- package/dist/chunk-6SWDOG5U.js +0 -219
- package/dist/chunk-6V3S5OPQ.js +0 -91
- package/dist/chunk-7BXDKWKO.js +0 -56
- package/dist/chunk-7CJXILRD.js +0 -7
- package/dist/chunk-7GQLLEUS.js +0 -58
- package/dist/chunk-7IM3UQB4.js +0 -7
- package/dist/chunk-7JOGKC3W.js +0 -7
- package/dist/chunk-7QO2PGJT.js +0 -6
- package/dist/chunk-7TR6VC7R.js +0 -144
- package/dist/chunk-AES7QBQE.js +0 -7
- package/dist/chunk-AOYH6YRJ.js +0 -62
- package/dist/chunk-BAIN4DDL.js +0 -85
- package/dist/chunk-BBIW2KBW.js +0 -167
- package/dist/chunk-BCUPLQ4B.js +0 -7
- package/dist/chunk-BZGCNB2Q.js +0 -73
- package/dist/chunk-CIGS4QGT.js +0 -7
- package/dist/chunk-CQDLZ42T.js +0 -7
- package/dist/chunk-CQIEYCDR.js +0 -246
- package/dist/chunk-D5BPOB2U.js +0 -146
- package/dist/chunk-DAPJWTDY.js +0 -52
- package/dist/chunk-DBIN32YS.js +0 -1
- package/dist/chunk-DFLH2TRR.js +0 -76
- package/dist/chunk-DHVVYSLB.js +0 -7
- package/dist/chunk-DPJMFJEG.js +0 -84
- package/dist/chunk-DRFFM5PG.js +0 -6
- package/dist/chunk-DVVK2IWW.js +0 -64
- package/dist/chunk-DZJSSJVJ.js +0 -41
- package/dist/chunk-E273RKXA.js +0 -70
- package/dist/chunk-E4LQY732.js +0 -80
- package/dist/chunk-E6ZFQPRY.js +0 -288
- package/dist/chunk-ETEKSNHP.js +0 -122
- package/dist/chunk-EZADKOST.js +0 -67
- package/dist/chunk-F4RAZBGB.js +0 -89
- package/dist/chunk-FAE27DLF.js +0 -7
- package/dist/chunk-FAJP57AU.js +0 -52
- package/dist/chunk-FLU4UPP6.js +0 -7
- package/dist/chunk-FUPP4KDU.js +0 -153
- package/dist/chunk-FYIHMKHI.js +0 -7
- package/dist/chunk-FZK3TKHG.js +0 -7
- package/dist/chunk-G3VDMQ5I.js +0 -56
- package/dist/chunk-G55ZK3TC.js +0 -114
- package/dist/chunk-GFRTCF4B.js +0 -7
- package/dist/chunk-GHYAFDMB.js +0 -7
- package/dist/chunk-GRCAVJC6.js +0 -7
- package/dist/chunk-HZKFQ33E.js +0 -7
- package/dist/chunk-I4VPBQI7.js +0 -7
- package/dist/chunk-I6EAOTCD.js +0 -135
- package/dist/chunk-IFSZVCXH.js +0 -74
- package/dist/chunk-IO4H6ABI.js +0 -124
- package/dist/chunk-IUBPSWJV.js +0 -58
- package/dist/chunk-IYQDX37T.js +0 -49
- package/dist/chunk-J6WBI2I2.js +0 -7
- package/dist/chunk-JHX5QEIH.js +0 -8
- package/dist/chunk-JNC77FI2.js +0 -60
- package/dist/chunk-JTNKUYE5.js +0 -8
- package/dist/chunk-JWW56J7M.js +0 -7
- package/dist/chunk-KEDDVTHL.js +0 -32
- package/dist/chunk-KL2A2QFJ.js +0 -53
- package/dist/chunk-LBQWBVCJ.js +0 -124
- package/dist/chunk-LNNTDKK3.js +0 -123
- package/dist/chunk-LUO2HNXA.js +0 -7
- package/dist/chunk-LVSPT6MM.js +0 -98
- package/dist/chunk-M2XJDWZ7.js +0 -7
- package/dist/chunk-MRNKKBQY.js +0 -108
- package/dist/chunk-MUAXK42C.js +0 -7
- package/dist/chunk-MVQISVDN.js +0 -7
- package/dist/chunk-NEDQLIJJ.js +0 -125
- package/dist/chunk-NSWO6KOB.js +0 -160
- package/dist/chunk-NZ4VFVXA.js +0 -7
- package/dist/chunk-OKZYR4RF.js +0 -7
- package/dist/chunk-OQ65XPCF.js +0 -157
- package/dist/chunk-ORQ4RJXE.js +0 -46
- package/dist/chunk-PH5BSJDK.js +0 -7
- package/dist/chunk-PPEXQFD7.js +0 -77
- package/dist/chunk-PVTWTQPF.js +0 -135
- package/dist/chunk-Q7NXUUB3.js +0 -7
- package/dist/chunk-QBRIIOYC.js +0 -87
- package/dist/chunk-QCA3ZR56.js +0 -7
- package/dist/chunk-QEUVT6WW.js +0 -91
- package/dist/chunk-QFKBNLTS.js +0 -100
- package/dist/chunk-QITF3KZ6.js +0 -50
- package/dist/chunk-QLBR32KW.js +0 -121
- package/dist/chunk-RLDIAT4F.js +0 -7
- package/dist/chunk-RWXYJW3R.js +0 -52
- package/dist/chunk-SC6ZK5ON.js +0 -7
- package/dist/chunk-T24MBA34.js +0 -7
- package/dist/chunk-TDKQPTN6.js +0 -7
- package/dist/chunk-TXZ6BMFR.js +0 -7
- package/dist/chunk-U2XK4LGL.js +0 -57
- package/dist/chunk-UHJKIOGM.js +0 -88
- package/dist/chunk-UIEP5BA5.js +0 -7
- package/dist/chunk-URGEWIYL.js +0 -131
- package/dist/chunk-UXVER6A6.js +0 -94
- package/dist/chunk-V2EQFVTJ.js +0 -7
- package/dist/chunk-V4PG262Z.js +0 -58
- package/dist/chunk-VUR7ZP2L.js +0 -115
- package/dist/chunk-W6K7P5BX.js +0 -87
- package/dist/chunk-WPJCS7L2.js +0 -43
- package/dist/chunk-WPNVVGFW.js +0 -7
- package/dist/chunk-WUDGWFTV.js +0 -174
- package/dist/chunk-WWKN7BDU.js +0 -217
- package/dist/chunk-X6SER3TZ.js +0 -7
- package/dist/chunk-XIRBRHNM.js +0 -126
- package/dist/chunk-XL7LO6IZ.js +0 -7
- package/dist/chunk-XNHE2OVW.js +0 -7
- package/dist/chunk-Y2POLIXK.js +0 -7
- package/dist/chunk-Y67OCNQ4.js +0 -72
- package/dist/chunk-Y7TOOHUJ.js +0 -90
- package/dist/chunk-YJANLD7B.js +0 -57
- package/dist/chunk-YOMX6DZZ.js +0 -14
- package/dist/chunk-YPFNLIK3.js +0 -66
- package/dist/chunk-YQKPVF5F.js +0 -58
- package/dist/chunk-Z2BW6FYZ.js +0 -82
- package/dist/chunk-ZJUDBIS4.js +0 -12
- package/dist/chunk-ZMIX3DJQ.js +0 -27
- package/dist/chunk-ZZ3HDXLO.js +0 -103
- package/dist/overlays/Popover/src/Popover.css +0 -3863
- package/dist/overlays/Popover/src/Popover.js +0 -28
- package/dist/overlays/Popover/src/PopoverBase.css +0 -268
- package/dist/overlays/Popover/src/PopoverBase.js +0 -5
- package/dist/overlays/Popover/src/PopoverBaseContext.js +0 -2
- package/dist/overlays/Popover/src/PopoverContext.js +0 -2
- package/dist/overlays/Popover/src/PopoverTrigger.js +0 -2
- package/dist/overlays/Popover/src/index.css +0 -3897
- package/dist/overlays/Popover/src/index.js +0 -31
- package/dist/typography/Heading/src/Heading.css +0 -234
- package/dist/typography/Heading/src/Heading.js +0 -4
- package/dist/typography/Heading/src/HeadingContext.js +0 -2
- package/dist/typography/Heading/src/index.css +0 -234
- package/dist/typography/Heading/src/index.js +0 -4
- package/dist/typography/Label/src/Label.css +0 -234
- package/dist/typography/Label/src/Label.js +0 -7
- package/dist/typography/Label/src/LabelContext.js +0 -2
- package/dist/typography/Label/src/index.css +0 -234
- package/dist/typography/Label/src/index.js +0 -7
- package/dist/typography/OverlineText/src/OverlineText.css +0 -234
- package/dist/typography/OverlineText/src/OverlineText.js +0 -4
- package/dist/typography/OverlineText/src/OverlineTextContext.js +0 -2
- package/dist/typography/OverlineText/src/index.css +0 -234
- package/dist/typography/OverlineText/src/index.js +0 -4
- package/dist/typography/Text/src/Text.css +0 -234
- package/dist/typography/Text/src/Text.js +0 -6
- package/dist/typography/Text/src/TextContext.js +0 -2
- package/dist/typography/Text/src/index.css +0 -234
- package/dist/typography/Text/src/index.js +0 -6
- /package/dist/{Accordion → accordion}/src/Accordion.d.ts +0 -0
- /package/dist/{Accordion → accordion}/src/AccordionContext.d.ts +0 -0
- /package/dist/{Accordion → accordion}/src/index.d.ts +0 -0
- /package/dist/{Alert → alert}/src/AlertTrigger.d.ts +0 -0
- /package/dist/{Avatar → avatar}/src/useImageFallback.d.ts +0 -0
- /package/dist/{Badge → badge}/src/Badge.d.ts +0 -0
- /package/dist/{Badge → badge}/src/BadgeContext.d.ts +0 -0
- /package/dist/{Badge → badge}/src/FloatingBadge.d.ts +0 -0
- /package/dist/{Badge → badge}/src/FloatingBadgeContext.d.ts +0 -0
- /package/dist/{Badge → badge}/src/index.d.ts +0 -0
- /package/dist/{Callout → callout}/src/Callout.d.ts +0 -0
- /package/dist/{Callout → callout}/src/CalloutContext.d.ts +0 -0
- /package/dist/{Callout → callout}/src/CompactCallout.d.ts +0 -0
- /package/dist/{Callout → callout}/src/CompactCalloutContext.d.ts +0 -0
- /package/dist/{Callout → callout}/src/index.d.ts +0 -0
- /package/dist/{Card → card}/src/Card.d.ts +0 -0
- /package/dist/{Card → card}/src/CardContext.d.ts +0 -0
- /package/dist/{Card → card}/src/index.d.ts +0 -0
- /package/dist/{Disclosure → disclosure}/src/Disclosure.d.ts +0 -0
- /package/dist/{Disclosure → disclosure}/src/DisclosureContext.d.ts +0 -0
- /package/dist/{Disclosure → disclosure}/src/DisclosurePanel.d.ts +0 -0
- /package/dist/{Disclosure → disclosure}/src/DisclosurePanelContext.d.ts +0 -0
- /package/dist/{Divider → divider}/src/Divider.d.ts +0 -0
- /package/dist/{Divider → divider}/src/DividerContext.d.ts +0 -0
- /package/dist/{Divider → divider}/src/index.d.ts +0 -0
- /package/dist/{Form → form}/src/Form.d.ts +0 -0
- /package/dist/{Form → form}/src/FormContext.d.ts +0 -0
- /package/dist/{Form → form}/src/index.d.ts +0 -0
- /package/dist/{Header → header}/src/Header.d.ts +0 -0
- /package/dist/{Header → header}/src/HeaderContext.d.ts +0 -0
- /package/dist/{Header → header}/src/index.d.ts +0 -0
- /package/dist/{HopperProvider → hopper-provider}/src/HopperProvider.d.ts +0 -0
- /package/dist/{HopperProvider → hopper-provider}/src/index.d.ts +0 -0
- /package/dist/{IconList → icon-list}/src/IconList.d.ts +0 -0
- /package/dist/{IconList → icon-list}/src/IconListContext.d.ts +0 -0
- /package/dist/{IconList → icon-list}/src/index.d.ts +0 -0
- /package/dist/{IllustratedMessage → illustrated-message}/src/IllustratedMessage.d.ts +0 -0
- /package/dist/{IllustratedMessage → illustrated-message}/src/IllustratedMessageContext.d.ts +0 -0
- /package/dist/{IllustratedMessage → illustrated-message}/src/index.d.ts +0 -0
- /package/dist/{Image → image}/src/Image.d.ts +0 -0
- /package/dist/{Image → image}/src/ImageContext.d.ts +0 -0
- /package/dist/{Image → image}/src/SvgImage.d.ts +0 -0
- /package/dist/{Image → image}/src/SvgImageContext.d.ts +0 -0
- /package/dist/{Image → image}/src/index.d.ts +0 -0
- /package/dist/{Link → link}/src/Link.d.ts +0 -0
- /package/dist/{Link → link}/src/LinkContext.d.ts +0 -0
- /package/dist/{Link → link}/src/index.d.ts +0 -0
- /package/dist/{ListBox → list-box}/src/ListBox.d.ts +0 -0
- /package/dist/{ListBox → list-box}/src/ListBoxContext.d.ts +0 -0
- /package/dist/{ListBox → list-box}/src/ListBoxItem.d.ts +0 -0
- /package/dist/{ListBox → list-box}/src/ListBoxItemContext.d.ts +0 -0
- /package/dist/{ListBox → list-box}/src/ListBoxItemSkeleton.d.ts +0 -0
- /package/dist/{ListBox → list-box}/src/ListBoxItemSkeletonContext.d.ts +0 -0
- /package/dist/{ListBoxSection → list-box}/src/ListBoxSection.d.ts +0 -0
- /package/dist/{Modal → modal}/src/BaseModal.d.ts +0 -0
- /package/dist/{Modal → modal}/src/BaseModalContext.d.ts +0 -0
- /package/dist/{Modal → modal}/src/CustomModal.d.ts +0 -0
- /package/dist/{Modal → modal}/src/CustomModalContext.d.ts +0 -0
- /package/dist/{Modal → modal}/src/Modal.d.ts +0 -0
- /package/dist/{Modal → modal}/src/ModalContext.d.ts +0 -0
- /package/dist/{Modal → modal}/src/ModalTrigger.d.ts +0 -0
- /package/dist/{Modal → modal}/src/index.d.ts +0 -0
- /package/dist/overlays/{Popover → popover}/src/Popover.d.ts +0 -0
- /package/dist/overlays/{Popover → popover}/src/PopoverBase.d.ts +0 -0
- /package/dist/overlays/{Popover → popover}/src/PopoverBaseContext.d.ts +0 -0
- /package/dist/overlays/{Popover → popover}/src/PopoverContext.d.ts +0 -0
- /package/dist/overlays/{Popover → popover}/src/PopoverTrigger.d.ts +0 -0
- /package/dist/overlays/{Popover → popover}/src/index.d.ts +0 -0
- /package/dist/{SegmentedControl → segmented-control}/src/SegmentedControl.d.ts +0 -0
- /package/dist/{SegmentedControl → segmented-control}/src/SegmentedControlContext.d.ts +0 -0
- /package/dist/{SegmentedControl → segmented-control}/src/SegmentedControlItem.d.ts +0 -0
- /package/dist/{SegmentedControl → segmented-control}/src/SegmentedControlItemContext.d.ts +0 -0
- /package/dist/{SegmentedControl → segmented-control}/src/index.d.ts +0 -0
- /package/dist/{Select → select}/src/SelectValue.d.ts +0 -0
- /package/dist/{Spinner → spinner}/src/Spinner.d.ts +0 -0
- /package/dist/{Spinner → spinner}/src/SpinnerContext.d.ts +0 -0
- /package/dist/{Spinner → spinner}/src/index.d.ts +0 -0
- /package/dist/{Tabs → tabs}/src/Tab.d.ts +0 -0
- /package/dist/{Tabs → tabs}/src/TabLine.d.ts +0 -0
- /package/dist/{Tabs → tabs}/src/TabList.d.ts +0 -0
- /package/dist/{Tabs → tabs}/src/TabPanel.d.ts +0 -0
- /package/dist/{Tabs → tabs}/src/Tabs.d.ts +0 -0
- /package/dist/{Tabs → tabs}/src/TabsContext.d.ts +0 -0
- /package/dist/{Tabs → tabs}/src/index.d.ts +0 -0
- /package/dist/{Tile → tile}/src/Tile.d.ts +0 -0
- /package/dist/{Tile → tile}/src/TileContext.d.ts +0 -0
- /package/dist/{Tile → tile}/src/TileGroup.d.ts +0 -0
- /package/dist/{Tile → tile}/src/TileGroupContext.d.ts +0 -0
- /package/dist/{Tile → tile}/src/index.d.ts +0 -0
- /package/dist/{ToggleArrow → toggle-arrow}/src/ToggleArrow.d.ts +0 -0
- /package/dist/{ToggleArrow → toggle-arrow}/src/ToggleArrowContext.d.ts +0 -0
- /package/dist/{ToggleArrow → toggle-arrow}/src/index.d.ts +0 -0
- /package/dist/{Tooltip → tooltip}/src/Tooltip.d.ts +0 -0
- /package/dist/{Tooltip → tooltip}/src/TooltipContext.d.ts +0 -0
- /package/dist/{Tooltip → tooltip}/src/TooltipTrigger.d.ts +0 -0
- /package/dist/{Tooltip → tooltip}/src/TooltipTriggerContext.d.ts +0 -0
- /package/dist/{Tooltip → tooltip}/src/index.d.ts +0 -0
- /package/dist/typography/{Heading → heading}/src/Heading.d.ts +0 -0
- /package/dist/typography/{Heading → heading}/src/HeadingContext.d.ts +0 -0
- /package/dist/typography/{Heading → heading}/src/index.d.ts +0 -0
- /package/dist/typography/{Label → label}/src/Label.d.ts +0 -0
- /package/dist/typography/{Label → label}/src/LabelContext.d.ts +0 -0
- /package/dist/typography/{Label → label}/src/index.d.ts +0 -0
- /package/dist/typography/{OverlineText → overline-text}/src/OverlineText.d.ts +0 -0
- /package/dist/typography/{OverlineText → overline-text}/src/OverlineTextContext.d.ts +0 -0
- /package/dist/typography/{OverlineText → overline-text}/src/index.d.ts +0 -0
- /package/dist/typography/{Text → text}/src/Text.d.ts +0 -0
- /package/dist/typography/{Text → text}/src/TextContext.d.ts +0 -0
- /package/dist/typography/{Text → text}/src/index.d.ts +0 -0
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
import { useImageFallback } from './chunk-QJ5FQN3N.js';
|
|
2
|
+
import { _BrokenAvatar } from './chunk-FIEPLQID.js';
|
|
3
|
+
import { AvatarContext } from './chunk-FA26RZSE.js';
|
|
4
|
+
import { useRenderProps } from './chunk-2NSUMKNH.js';
|
|
5
|
+
import { _Text } from './chunk-LKH3JL3P.js';
|
|
6
|
+
import { ClearContainerSlots } from './chunk-WJ55ZV54.js';
|
|
7
|
+
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
8
|
+
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
9
|
+
import { slot, useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
10
|
+
import { filterDOMProps, mergeProps } from '@react-aria/utils';
|
|
11
|
+
import { forwardRef, useMemo } from 'react';
|
|
12
|
+
import { useContextProps, composeRenderProps } from 'react-aria-components';
|
|
13
|
+
import { jsx } from 'react/jsx-runtime';
|
|
14
|
+
|
|
15
|
+
// css-module:./Avatar.module.css#css-module
|
|
16
|
+
var Avatar_module_default = { "hop-Avatar": "Avatar-module__hop-Avatar___pwT6-", "hop-Avatar--xs": "Avatar-module__hop-Avatar--xs___CIL7T", "hop-Avatar--sm": "Avatar-module__hop-Avatar--sm___N5wai", "hop-Avatar--md": "Avatar-module__hop-Avatar--md___3KRWO", "hop-Avatar--lg": "Avatar-module__hop-Avatar--lg___GYfBm", "hop-Avatar--xl": "Avatar-module__hop-Avatar--xl___uQT1c", "hop-Avatar--2xl": "Avatar-module__hop-Avatar--2xl___UHIr7", "hop-Avatar--decorative-option1": "Avatar-module__hop-Avatar--decorative-option1___JznCu", "hop-Avatar--decorative-option2": "Avatar-module__hop-Avatar--decorative-option2___rS0y8", "hop-Avatar--decorative-option3": "Avatar-module__hop-Avatar--decorative-option3___QDC20", "hop-Avatar--decorative-option4": "Avatar-module__hop-Avatar--decorative-option4___7pt7-", "hop-Avatar--decorative-option5": "Avatar-module__hop-Avatar--decorative-option5___feRPw", "hop-Avatar--decorative-option6": "Avatar-module__hop-Avatar--decorative-option6___7rZA7", "hop-Avatar--decorative-option7": "Avatar-module__hop-Avatar--decorative-option7___NNBws", "hop-Avatar--decorative-option8": "Avatar-module__hop-Avatar--decorative-option8___6miu0", "hop-Avatar--decorative-option9": "Avatar-module__hop-Avatar--decorative-option9___bd6Po", "hop-Avatar__image": "Avatar-module__hop-Avatar__image___frF0l" };
|
|
17
|
+
var GlobalAvatarCssSelector = "hop-Avatar";
|
|
18
|
+
var AvatarToTextSizeAdapter = {
|
|
19
|
+
xs: "xs",
|
|
20
|
+
sm: "xs",
|
|
21
|
+
md: "md",
|
|
22
|
+
lg: "lg",
|
|
23
|
+
xl: "xl",
|
|
24
|
+
"2xl": "xl"
|
|
25
|
+
};
|
|
26
|
+
function getColorIndex(name, maxNumberOfColor) {
|
|
27
|
+
let hashCode = 0;
|
|
28
|
+
for (let i = name.length - 1; i >= 0; i--) {
|
|
29
|
+
const character = name.charCodeAt(i);
|
|
30
|
+
const shift = i % 8;
|
|
31
|
+
hashCode ^= (character << shift) + (character >> 8 - shift);
|
|
32
|
+
}
|
|
33
|
+
return hashCode % maxNumberOfColor;
|
|
34
|
+
}
|
|
35
|
+
function getColorName(name) {
|
|
36
|
+
const variantToUse = `option${getColorIndex(name, 8) + 1}`;
|
|
37
|
+
return `decorative-${variantToUse}`;
|
|
38
|
+
}
|
|
39
|
+
function AvatarInitials(props) {
|
|
40
|
+
var _a;
|
|
41
|
+
const {
|
|
42
|
+
name,
|
|
43
|
+
size: sizeValue
|
|
44
|
+
} = props;
|
|
45
|
+
const size = (_a = useResponsiveValue(sizeValue)) != null ? _a : "md";
|
|
46
|
+
const initials = useMemo(() => {
|
|
47
|
+
const cleanName = name.replace(/\s+/g, " ").trim();
|
|
48
|
+
const [firstName, lastName] = cleanName.split(" ");
|
|
49
|
+
const letters = firstName && lastName ? `${firstName.charAt(0)}${lastName.charAt(0)}` : firstName.charAt(0);
|
|
50
|
+
return size === "xs" && letters.length > 1 ? letters.charAt(0) : letters;
|
|
51
|
+
}, [name, size]);
|
|
52
|
+
return /* @__PURE__ */ jsx(
|
|
53
|
+
_Text,
|
|
54
|
+
{
|
|
55
|
+
size: AvatarToTextSizeAdapter[size],
|
|
56
|
+
children: initials
|
|
57
|
+
}
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
function Avatar(props, ref) {
|
|
61
|
+
var _a;
|
|
62
|
+
[props, ref] = useContextProps(props, ref, AvatarContext);
|
|
63
|
+
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
64
|
+
const {
|
|
65
|
+
"aria-label": ariaLabel,
|
|
66
|
+
fallbackSrc,
|
|
67
|
+
imageProps,
|
|
68
|
+
isDisabled,
|
|
69
|
+
name,
|
|
70
|
+
size: sizeValue,
|
|
71
|
+
slot,
|
|
72
|
+
src,
|
|
73
|
+
className,
|
|
74
|
+
style,
|
|
75
|
+
...otherProps
|
|
76
|
+
} = ownProps;
|
|
77
|
+
const domProps = filterDOMProps(otherProps);
|
|
78
|
+
const { onError, onLoad, ...otherImageProps } = imageProps != null ? imageProps : {};
|
|
79
|
+
const { imageUrl, status } = useImageFallback({ src, fallbackSrc, onError, onLoad });
|
|
80
|
+
const imageLoaded = status === "loaded";
|
|
81
|
+
const imageFailed = status === "failed";
|
|
82
|
+
const size = (_a = useResponsiveValue(sizeValue)) != null ? _a : "md";
|
|
83
|
+
const isFallbackInitials = fallbackSrc === null;
|
|
84
|
+
const isBrokenImage = imageFailed && !isFallbackInitials;
|
|
85
|
+
const isImage = src && !imageFailed && imageLoaded;
|
|
86
|
+
const isInitials = !src || !isImage && isFallbackInitials;
|
|
87
|
+
const classNames = composeClassnameRenderProps(
|
|
88
|
+
className,
|
|
89
|
+
GlobalAvatarCssSelector,
|
|
90
|
+
cssModule(
|
|
91
|
+
Avatar_module_default,
|
|
92
|
+
"hop-Avatar",
|
|
93
|
+
size,
|
|
94
|
+
isBrokenImage && "broken-image",
|
|
95
|
+
isImage && "image",
|
|
96
|
+
isInitials && getColorName(name)
|
|
97
|
+
),
|
|
98
|
+
stylingProps.className
|
|
99
|
+
);
|
|
100
|
+
const mergedStyles = composeRenderProps(style, (prev) => {
|
|
101
|
+
return {
|
|
102
|
+
...stylingProps.style,
|
|
103
|
+
...prev
|
|
104
|
+
};
|
|
105
|
+
});
|
|
106
|
+
const renderProps = useRenderProps({
|
|
107
|
+
...props,
|
|
108
|
+
className: classNames,
|
|
109
|
+
style: mergedStyles,
|
|
110
|
+
values: {
|
|
111
|
+
isDisabled: isDisabled || false
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
if (isBrokenImage) {
|
|
115
|
+
return /* @__PURE__ */ jsx(
|
|
116
|
+
_BrokenAvatar,
|
|
117
|
+
{
|
|
118
|
+
...mergeProps(domProps, renderProps),
|
|
119
|
+
"aria-label": ariaLabel != null ? ariaLabel : name,
|
|
120
|
+
isDisabled,
|
|
121
|
+
ref,
|
|
122
|
+
size,
|
|
123
|
+
slot
|
|
124
|
+
}
|
|
125
|
+
);
|
|
126
|
+
}
|
|
127
|
+
let content = null;
|
|
128
|
+
if (isInitials) {
|
|
129
|
+
content = /* @__PURE__ */ jsx(
|
|
130
|
+
AvatarInitials,
|
|
131
|
+
{
|
|
132
|
+
...otherProps,
|
|
133
|
+
name,
|
|
134
|
+
size
|
|
135
|
+
}
|
|
136
|
+
);
|
|
137
|
+
}
|
|
138
|
+
if (imageLoaded) {
|
|
139
|
+
content = /* @__PURE__ */ jsx(
|
|
140
|
+
"img",
|
|
141
|
+
{
|
|
142
|
+
...filterDOMProps(otherImageProps),
|
|
143
|
+
alt: "",
|
|
144
|
+
"aria-hidden": true,
|
|
145
|
+
className: Avatar_module_default["hop-Avatar__image"],
|
|
146
|
+
onError,
|
|
147
|
+
src: imageUrl
|
|
148
|
+
}
|
|
149
|
+
);
|
|
150
|
+
}
|
|
151
|
+
return /* @__PURE__ */ jsx(
|
|
152
|
+
"div",
|
|
153
|
+
{
|
|
154
|
+
...mergeProps(domProps, renderProps),
|
|
155
|
+
"aria-label": ariaLabel != null ? ariaLabel : name,
|
|
156
|
+
"data-disabled": isDisabled || void 0,
|
|
157
|
+
role: "img",
|
|
158
|
+
slot: slot != null ? slot : void 0,
|
|
159
|
+
ref,
|
|
160
|
+
children: /* @__PURE__ */ jsx(ClearContainerSlots, { children: content })
|
|
161
|
+
}
|
|
162
|
+
);
|
|
163
|
+
}
|
|
164
|
+
var _Avatar = slot("avatar", forwardRef(Avatar));
|
|
165
|
+
_Avatar.displayName = "Avatar";
|
|
166
|
+
|
|
167
|
+
export { AvatarToTextSizeAdapter, GlobalAvatarCssSelector, _Avatar };
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { TooltipTriggerContext } from './chunk-XXEXHHC6.js';
|
|
2
|
+
import { TooltipContext } from './chunk-77PD5K3M.js';
|
|
3
|
+
import { ensureTextWrapper } from './chunk-WPIH4OAE.js';
|
|
4
|
+
import { TextContext } from './chunk-ZNOU2CGM.js';
|
|
5
|
+
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
6
|
+
import { useStyledSystem, useColorSchemeContext, getRootCSSClasses } from '@hopper-ui/styled-system';
|
|
7
|
+
import clsx from 'clsx';
|
|
8
|
+
import { forwardRef, useContext } from 'react';
|
|
9
|
+
import { useContextProps, Provider, Tooltip as Tooltip$1 } from 'react-aria-components';
|
|
10
|
+
import { jsx } from 'react/jsx-runtime';
|
|
11
|
+
|
|
12
|
+
// css-module:./Tooltip.module.css#css-module
|
|
13
|
+
var Tooltip_module_default = { "hop-Tooltip": "Tooltip-module__hop-Tooltip___gyu8Y", "hop-Tooltip--top": "Tooltip-module__hop-Tooltip--top___MRzWV", "hop-Tooltip--right": "Tooltip-module__hop-Tooltip--right___mLgo7", "hop-Tooltip--bottom": "Tooltip-module__hop-Tooltip--bottom___nlDGF", "hop-Tooltip--left": "Tooltip-module__hop-Tooltip--left___-Lb9O", "slide": "Tooltip-module__slide___aHYPY" };
|
|
14
|
+
var GlobalTooltipCssSelector = "hop-Tooltip";
|
|
15
|
+
function Tooltip(props, ref) {
|
|
16
|
+
[props, ref] = useContextProps(props, ref, TooltipContext);
|
|
17
|
+
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
18
|
+
const { colorScheme } = useColorSchemeContext();
|
|
19
|
+
const { containerPadding, crossOffset, offset, placement = "top", shouldFlip } = useContext(TooltipTriggerContext);
|
|
20
|
+
const {
|
|
21
|
+
className,
|
|
22
|
+
children,
|
|
23
|
+
style,
|
|
24
|
+
...otherProps
|
|
25
|
+
} = ownProps;
|
|
26
|
+
const classNames = clsx(
|
|
27
|
+
GlobalTooltipCssSelector,
|
|
28
|
+
getRootCSSClasses(colorScheme),
|
|
29
|
+
cssModule(
|
|
30
|
+
Tooltip_module_default,
|
|
31
|
+
"hop-Tooltip",
|
|
32
|
+
placement
|
|
33
|
+
),
|
|
34
|
+
stylingProps.className,
|
|
35
|
+
className
|
|
36
|
+
);
|
|
37
|
+
const mergedStyles = {
|
|
38
|
+
...style,
|
|
39
|
+
...stylingProps.style
|
|
40
|
+
};
|
|
41
|
+
return /* @__PURE__ */ jsx(
|
|
42
|
+
Provider,
|
|
43
|
+
{
|
|
44
|
+
values: [
|
|
45
|
+
[TextContext, {
|
|
46
|
+
size: "xs"
|
|
47
|
+
}]
|
|
48
|
+
],
|
|
49
|
+
children: /* @__PURE__ */ jsx(
|
|
50
|
+
Tooltip$1,
|
|
51
|
+
{
|
|
52
|
+
ref,
|
|
53
|
+
style: mergedStyles,
|
|
54
|
+
className: classNames,
|
|
55
|
+
containerPadding,
|
|
56
|
+
crossOffset,
|
|
57
|
+
offset,
|
|
58
|
+
placement,
|
|
59
|
+
shouldFlip,
|
|
60
|
+
...otherProps,
|
|
61
|
+
children: ensureTextWrapper(children)
|
|
62
|
+
}
|
|
63
|
+
)
|
|
64
|
+
}
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
var _Tooltip = forwardRef(Tooltip);
|
|
68
|
+
_Tooltip.displayName = "Tooltip";
|
|
69
|
+
|
|
70
|
+
export { GlobalTooltipCssSelector, _Tooltip };
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { RadioContext } from './chunk-FU5CCPLP.js';
|
|
2
|
+
import { IconListContext } from './chunk-GBWXEK6N.js';
|
|
3
|
+
import { ensureTextWrapper } from './chunk-WPIH4OAE.js';
|
|
4
|
+
import { ClearContainerSlots } from './chunk-WJ55ZV54.js';
|
|
5
|
+
import { TextContext } from './chunk-ZNOU2CGM.js';
|
|
6
|
+
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
7
|
+
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
8
|
+
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
9
|
+
import { BulletIcon, IconContext } from '@hopper-ui/icons';
|
|
10
|
+
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
11
|
+
import { forwardRef } from 'react';
|
|
12
|
+
import { useContextProps, composeRenderProps, Radio as Radio$1 } from 'react-aria-components';
|
|
13
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
14
|
+
|
|
15
|
+
// css-module:./Radio.module.css#css-module
|
|
16
|
+
var Radio_module_default = { "hop-Radio": "Radio-module__hop-Radio___fNVqT", "hop-Radio--sm": "Radio-module__hop-Radio--sm___QtkaP", "hop-Radio--md": "Radio-module__hop-Radio--md___-8BC4", "hop-Radio__icon": "Radio-module__hop-Radio__icon___f-O9q", "hop-Radio__icon-list": "Radio-module__hop-Radio__icon-list___Urz54", "hop-Radio__box": "Radio-module__hop-Radio__box___HKX8m", "hop-Radio__bullet": "Radio-module__hop-Radio__bullet___tlKI9", "hop-Radio__text": "Radio-module__hop-Radio__text___30Fay" };
|
|
17
|
+
var GlobalRadioCssSelector = "hop-Radio";
|
|
18
|
+
function Radio(props, ref) {
|
|
19
|
+
var _a;
|
|
20
|
+
[props, ref] = useContextProps(props, ref, RadioContext);
|
|
21
|
+
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
22
|
+
const {
|
|
23
|
+
className,
|
|
24
|
+
children: childrenProp,
|
|
25
|
+
size: sizeProp = "md",
|
|
26
|
+
style: styleProp,
|
|
27
|
+
...otherProps
|
|
28
|
+
} = ownProps;
|
|
29
|
+
const size = (_a = useResponsiveValue(sizeProp)) != null ? _a : "md";
|
|
30
|
+
const classNames = composeClassnameRenderProps(
|
|
31
|
+
className,
|
|
32
|
+
GlobalRadioCssSelector,
|
|
33
|
+
cssModule(
|
|
34
|
+
Radio_module_default,
|
|
35
|
+
"hop-Radio",
|
|
36
|
+
size
|
|
37
|
+
),
|
|
38
|
+
stylingProps.className
|
|
39
|
+
);
|
|
40
|
+
const style = composeRenderProps(styleProp, (prev) => {
|
|
41
|
+
return {
|
|
42
|
+
...stylingProps.style,
|
|
43
|
+
...prev
|
|
44
|
+
};
|
|
45
|
+
});
|
|
46
|
+
const children = composeRenderProps(childrenProp, (prev) => {
|
|
47
|
+
return ensureTextWrapper(prev);
|
|
48
|
+
});
|
|
49
|
+
return /* @__PURE__ */ jsx(
|
|
50
|
+
Radio$1,
|
|
51
|
+
{
|
|
52
|
+
ref,
|
|
53
|
+
className: classNames,
|
|
54
|
+
style,
|
|
55
|
+
...otherProps,
|
|
56
|
+
children: (radioProps) => {
|
|
57
|
+
const radioIconClassName = Radio_module_default["hop-Radio__bullet"];
|
|
58
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
59
|
+
/* @__PURE__ */ jsx("div", { className: Radio_module_default["hop-Radio__box"], children: /* @__PURE__ */ jsx(BulletIcon, { size, className: radioIconClassName }) }),
|
|
60
|
+
/* @__PURE__ */ jsx(ClearContainerSlots, { children: /* @__PURE__ */ jsx(
|
|
61
|
+
SlotProvider,
|
|
62
|
+
{
|
|
63
|
+
values: [
|
|
64
|
+
[TextContext, {
|
|
65
|
+
className: Radio_module_default["hop-Radio__text"],
|
|
66
|
+
size
|
|
67
|
+
}],
|
|
68
|
+
[IconListContext, {
|
|
69
|
+
className: Radio_module_default["hop-Radio__icon-list"],
|
|
70
|
+
size
|
|
71
|
+
}],
|
|
72
|
+
[IconContext, {
|
|
73
|
+
className: Radio_module_default["hop-Radio__icon"],
|
|
74
|
+
size
|
|
75
|
+
}]
|
|
76
|
+
],
|
|
77
|
+
children: children(radioProps)
|
|
78
|
+
}
|
|
79
|
+
) })
|
|
80
|
+
] });
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
);
|
|
84
|
+
}
|
|
85
|
+
var _Radio = forwardRef(Radio);
|
|
86
|
+
_Radio.displayName = "Radio";
|
|
87
|
+
|
|
88
|
+
export { GlobalRadioCssSelector, _Radio };
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { ImageContext } from './chunk-JAR7CXVS.js';
|
|
2
|
+
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
3
|
+
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
4
|
+
import clsx from 'clsx';
|
|
5
|
+
import { forwardRef } from 'react';
|
|
6
|
+
import { useContextProps } from 'react-aria-components';
|
|
7
|
+
import { jsx } from 'react/jsx-runtime';
|
|
8
|
+
|
|
9
|
+
// css-module:./Image.module.css#css-module
|
|
10
|
+
var Image_module_default = { "hop-Image": "Image-module__hop-Image___O4JGM", "hop-Image--rounded": "Image-module__hop-Image--rounded___vgkwt", "hop-Image--circular": "Image-module__hop-Image--circular___gCq34" };
|
|
11
|
+
var GlobalImageCssSelector = "hop-Image";
|
|
12
|
+
function Image(props, ref) {
|
|
13
|
+
[props, ref] = useContextProps(props, ref, ImageContext);
|
|
14
|
+
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
15
|
+
const {
|
|
16
|
+
className,
|
|
17
|
+
style,
|
|
18
|
+
shape,
|
|
19
|
+
src,
|
|
20
|
+
slot,
|
|
21
|
+
alt,
|
|
22
|
+
...otherProps
|
|
23
|
+
} = ownProps;
|
|
24
|
+
if (alt === void 0) {
|
|
25
|
+
console.warn(
|
|
26
|
+
'The `alt` prop was not provided to an image. Add `alt` text for screen readers, or set `alt=""` prop to indicate that the image is decorative or redundant with displayed text and should not be announced by screen readers.'
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
const classNames = clsx(
|
|
30
|
+
className,
|
|
31
|
+
GlobalImageCssSelector,
|
|
32
|
+
cssModule(
|
|
33
|
+
Image_module_default,
|
|
34
|
+
"hop-Image",
|
|
35
|
+
shape
|
|
36
|
+
),
|
|
37
|
+
stylingProps.className
|
|
38
|
+
);
|
|
39
|
+
const mergedStyles = {
|
|
40
|
+
...stylingProps.style,
|
|
41
|
+
...style
|
|
42
|
+
};
|
|
43
|
+
const srcValue = useResponsiveValue(src);
|
|
44
|
+
return /* @__PURE__ */ jsx(
|
|
45
|
+
"img",
|
|
46
|
+
{
|
|
47
|
+
...otherProps,
|
|
48
|
+
alt: alt != null ? alt : "",
|
|
49
|
+
slot: slot != null ? slot : void 0,
|
|
50
|
+
className: classNames,
|
|
51
|
+
style: mergedStyles,
|
|
52
|
+
ref,
|
|
53
|
+
src: srcValue
|
|
54
|
+
}
|
|
55
|
+
);
|
|
56
|
+
}
|
|
57
|
+
var _Image = forwardRef(Image);
|
|
58
|
+
_Image.displayName = "Image";
|
|
59
|
+
|
|
60
|
+
export { GlobalImageCssSelector, _Image };
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { InternalSegmentedControlContext } from './chunk-6BJLSAMM.js';
|
|
2
|
+
import { SegmentedControlItemContext } from './chunk-VS3PE4S6.js';
|
|
3
|
+
import { _Text } from './chunk-LKH3JL3P.js';
|
|
4
|
+
import { TextContext } from './chunk-ZNOU2CGM.js';
|
|
5
|
+
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
6
|
+
import { IconContext } from '@hopper-ui/icons';
|
|
7
|
+
import { useStyledSystem } from '@hopper-ui/styled-system';
|
|
8
|
+
import clsx from 'clsx';
|
|
9
|
+
import { forwardRef, useContext, useLayoutEffect } from 'react';
|
|
10
|
+
import { useContextProps, ToggleGroupStateContext, ToggleButton, Provider, DEFAULT_SLOT } from 'react-aria-components';
|
|
11
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
12
|
+
|
|
13
|
+
// css-module:./SegmentedControlItem.module.css#css-module
|
|
14
|
+
var SegmentedControlItem_module_default = { "hop-SegmentedControlItem": "SegmentedControlItem-module__hop-SegmentedControlItem___rT5o0", "hop-SegmentedControlItem__slider": "SegmentedControlItem-module__hop-SegmentedControlItem__slider___NOj66", "hop-SegmentedControlItem__wrapper": "SegmentedControlItem-module__hop-SegmentedControlItem__wrapper___4au1W", "hop-SegmentedControlItem--md": "SegmentedControlItem-module__hop-SegmentedControlItem--md___LRMEB", "hop-SegmentedControlItem__icon": "SegmentedControlItem-module__hop-SegmentedControlItem__icon___atxbM", "hop-SegmentedControlItem__text": "SegmentedControlItem-module__hop-SegmentedControlItem__text___nmdDN", "hop-SegmentedControlItem__start-icon": "SegmentedControlItem-module__hop-SegmentedControlItem__start-icon___DX3GV", "hop-SegmentedControlItem--justified": "SegmentedControlItem-module__hop-SegmentedControlItem--justified___sy6il" };
|
|
15
|
+
var GlobalSegmentedControlItemCssSelector = "hop-SegmentedControlItem";
|
|
16
|
+
var SegmentedControlItem = (props, ref) => {
|
|
17
|
+
var _a;
|
|
18
|
+
[props, ref] = useContextProps(props, ref, SegmentedControlItemContext);
|
|
19
|
+
const { prevRef, currentSelectedRef, isJustified } = useContext(InternalSegmentedControlContext);
|
|
20
|
+
const state = useContext(ToggleGroupStateContext);
|
|
21
|
+
const itemSelected = state == null ? void 0 : state.selectedKeys.has(props.id);
|
|
22
|
+
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
23
|
+
const {
|
|
24
|
+
className,
|
|
25
|
+
children,
|
|
26
|
+
style,
|
|
27
|
+
slot,
|
|
28
|
+
size = "sm",
|
|
29
|
+
...otherProps
|
|
30
|
+
} = ownProps;
|
|
31
|
+
const classNames = clsx(
|
|
32
|
+
GlobalSegmentedControlItemCssSelector,
|
|
33
|
+
cssModule(
|
|
34
|
+
SegmentedControlItem_module_default,
|
|
35
|
+
"hop-SegmentedControlItem",
|
|
36
|
+
size,
|
|
37
|
+
isJustified && "justified"
|
|
38
|
+
),
|
|
39
|
+
stylingProps.className,
|
|
40
|
+
className
|
|
41
|
+
);
|
|
42
|
+
const mergedStyles = {
|
|
43
|
+
...style,
|
|
44
|
+
...stylingProps.style
|
|
45
|
+
};
|
|
46
|
+
const isReduced = (_a = window.matchMedia) == null ? void 0 : _a.call(window, "(prefers-reduced-motion: reduce)").matches;
|
|
47
|
+
useLayoutEffect(() => {
|
|
48
|
+
if (isReduced || !itemSelected || !(prevRef == null ? void 0 : prevRef.current) || !(currentSelectedRef == null ? void 0 : currentSelectedRef.current)) {
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
const prevSlider = prevRef.current;
|
|
52
|
+
const currentSlider = currentSelectedRef.current;
|
|
53
|
+
const currentItem = currentSlider.getBoundingClientRect();
|
|
54
|
+
const deltaX = prevSlider.left - (currentItem == null ? void 0 : currentItem.left);
|
|
55
|
+
currentSelectedRef.current.animate(
|
|
56
|
+
[
|
|
57
|
+
{ transform: `translateX(${deltaX}px)`, width: `${prevSlider.width}px` },
|
|
58
|
+
{ transform: "translateX(0px)", width: `${currentItem.width}px` }
|
|
59
|
+
],
|
|
60
|
+
{
|
|
61
|
+
duration: 200,
|
|
62
|
+
easing: "ease-out"
|
|
63
|
+
}
|
|
64
|
+
);
|
|
65
|
+
prevRef.current = null;
|
|
66
|
+
}, [currentSelectedRef, isReduced, itemSelected, prevRef]);
|
|
67
|
+
return /* @__PURE__ */ jsx(
|
|
68
|
+
ToggleButton,
|
|
69
|
+
{
|
|
70
|
+
...otherProps,
|
|
71
|
+
ref,
|
|
72
|
+
className: classNames,
|
|
73
|
+
style: mergedStyles,
|
|
74
|
+
slot: slot != null ? slot : void 0,
|
|
75
|
+
children: ({ isSelected, isDisabled }) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
76
|
+
isSelected && !isDisabled && /* @__PURE__ */ jsx("div", { className: SegmentedControlItem_module_default["hop-SegmentedControlItem__slider"], ref: currentSelectedRef }),
|
|
77
|
+
/* @__PURE__ */ jsx(
|
|
78
|
+
Provider,
|
|
79
|
+
{
|
|
80
|
+
values: [
|
|
81
|
+
[IconContext, {
|
|
82
|
+
slots: {
|
|
83
|
+
[DEFAULT_SLOT]: {
|
|
84
|
+
className: SegmentedControlItem_module_default["hop-SegmentedControlItem__icon"],
|
|
85
|
+
size
|
|
86
|
+
},
|
|
87
|
+
"start-icon": {
|
|
88
|
+
className: SegmentedControlItem_module_default["hop-SegmentedControlItem__start-icon"],
|
|
89
|
+
size
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}],
|
|
93
|
+
[TextContext, {
|
|
94
|
+
size: "sm",
|
|
95
|
+
className: SegmentedControlItem_module_default["hop-SegmentedControlItem__text"]
|
|
96
|
+
}]
|
|
97
|
+
],
|
|
98
|
+
children: /* @__PURE__ */ jsx("div", { className: SegmentedControlItem_module_default["hop-SegmentedControlItem__wrapper"], children: typeof children === "string" ? /* @__PURE__ */ jsx(_Text, { children }) : children })
|
|
99
|
+
}
|
|
100
|
+
)
|
|
101
|
+
] })
|
|
102
|
+
}
|
|
103
|
+
);
|
|
104
|
+
};
|
|
105
|
+
var _SegmentedControlItem = forwardRef(SegmentedControlItem);
|
|
106
|
+
_SegmentedControlItem.displayName = "SegmentedControlItem";
|
|
107
|
+
|
|
108
|
+
export { GlobalSegmentedControlItemCssSelector, _SegmentedControlItem };
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { ToggleArrowContext } from './chunk-LWPDIKEX.js';
|
|
2
|
+
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
3
|
+
import { AngleDownIcon } from '@hopper-ui/icons';
|
|
4
|
+
import { useStyledSystem } from '@hopper-ui/styled-system';
|
|
5
|
+
import clsx from 'clsx';
|
|
6
|
+
import { forwardRef } from 'react';
|
|
7
|
+
import { useContextProps } from 'react-aria-components';
|
|
8
|
+
import { jsx } from 'react/jsx-runtime';
|
|
9
|
+
|
|
10
|
+
// css-module:./ToggleArrow.module.css#css-module
|
|
11
|
+
var ToggleArrow_module_default = { "hop-ToggleArrow": "ToggleArrow-module__hop-ToggleArrow___EjFdI" };
|
|
12
|
+
var GlobalToggleArrowCssSelector = "hop-ToggleArrow";
|
|
13
|
+
function ToggleArrow(props, ref) {
|
|
14
|
+
[props, ref] = useContextProps(props, ref, ToggleArrowContext);
|
|
15
|
+
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
16
|
+
const {
|
|
17
|
+
className,
|
|
18
|
+
isExpanded,
|
|
19
|
+
style: styleProp,
|
|
20
|
+
...otherProps
|
|
21
|
+
} = ownProps;
|
|
22
|
+
const classNames = clsx(
|
|
23
|
+
GlobalToggleArrowCssSelector,
|
|
24
|
+
cssModule(
|
|
25
|
+
ToggleArrow_module_default,
|
|
26
|
+
"hop-ToggleArrow"
|
|
27
|
+
),
|
|
28
|
+
stylingProps.className,
|
|
29
|
+
className
|
|
30
|
+
);
|
|
31
|
+
const style = {
|
|
32
|
+
...stylingProps.style,
|
|
33
|
+
...styleProp
|
|
34
|
+
};
|
|
35
|
+
return /* @__PURE__ */ jsx(
|
|
36
|
+
AngleDownIcon,
|
|
37
|
+
{
|
|
38
|
+
ref,
|
|
39
|
+
className: classNames,
|
|
40
|
+
style,
|
|
41
|
+
size: "sm",
|
|
42
|
+
"data-expanded": isExpanded || void 0,
|
|
43
|
+
...otherProps
|
|
44
|
+
}
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
var _ToggleArrow = forwardRef(ToggleArrow);
|
|
48
|
+
_ToggleArrow.displayName = "ToggleArrow";
|
|
49
|
+
|
|
50
|
+
export { GlobalToggleArrowCssSelector, _ToggleArrow };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { createContext } from 'react';
|
|
2
|
+
|
|
3
|
+
// src/segmented-control/src/SegmentedControlContext.ts
|
|
4
|
+
var SegmentedControlContext = createContext({});
|
|
5
|
+
SegmentedControlContext.displayName = "SegmentedControlContext";
|
|
6
|
+
var InternalSegmentedControlContext = createContext({});
|
|
7
|
+
|
|
8
|
+
export { InternalSegmentedControlContext, SegmentedControlContext };
|