@hopper-ui/components 1.0.5 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/README.md +3 -0
- package/dist/Avatar/src/AnonymousAvatar.css +10 -10
- package/dist/Avatar/src/AnonymousAvatar.js +4 -4
- package/dist/Avatar/src/Avatar.css +37 -37
- package/dist/Avatar/src/Avatar.js +7 -7
- package/dist/Avatar/src/AvatarContext.js +1 -1
- package/dist/Avatar/src/DeletedAvatar.css +10 -10
- package/dist/Avatar/src/DeletedAvatar.js +4 -4
- package/dist/Avatar/src/RichIconAvatarImage.css +10 -10
- package/dist/Avatar/src/RichIconAvatarImage.js +3 -3
- package/dist/Avatar/src/RichIconAvatarImageContext.js +1 -1
- package/dist/Avatar/src/index.css +37 -37
- package/dist/Avatar/src/index.js +9 -9
- package/dist/Avatar/src/useImageFallback.js +1 -1
- package/dist/{badge → Badge}/src/Badge.css +11 -11
- package/dist/{badge → Badge}/src/Badge.d.ts +1 -1
- package/dist/Badge/src/Badge.js +7 -0
- package/dist/Badge/src/BadgeContext.js +2 -0
- package/dist/{badge → Badge}/src/index.css +11 -11
- package/dist/Badge/src/index.js +7 -0
- package/dist/{chip → Chip}/src/Chip.css +34 -34
- package/dist/{chip → Chip}/src/Chip.js +6 -6
- package/dist/Chip/src/ChipContext.js +2 -0
- package/dist/{chip → Chip}/src/index.css +34 -34
- package/dist/{chip → Chip}/src/index.js +6 -6
- package/dist/Divider/src/Divider.css +32 -0
- package/dist/Divider/src/Divider.d.ts +15 -0
- package/dist/Divider/src/Divider.js +4 -0
- package/dist/Divider/src/DividerContext.d.ts +8 -0
- package/dist/Divider/src/DividerContext.js +2 -0
- package/dist/Divider/src/index.css +32 -0
- package/dist/Divider/src/index.d.ts +5 -0
- package/dist/Divider/src/index.js +4 -0
- package/dist/{errorMessage → ErrorMessage}/src/ErrorMessage.css +12 -12
- package/dist/{errorMessage → ErrorMessage}/src/ErrorMessage.js +6 -6
- package/dist/ErrorMessage/src/ErrorMessageContext.js +2 -0
- package/dist/{errorMessage → ErrorMessage}/src/index.css +12 -12
- package/dist/{errorMessage → ErrorMessage}/src/index.js +6 -6
- package/dist/Header/src/Header.d.ts +17 -0
- package/dist/Header/src/Header.js +3 -0
- package/dist/Header/src/HeaderContext.d.ts +10 -0
- package/dist/Header/src/HeaderContext.js +2 -0
- package/dist/Header/src/index.d.ts +7 -0
- package/dist/Header/src/index.js +3 -0
- package/dist/{helperMessage → HelperMessage}/src/HelperMessage.css +12 -12
- package/dist/{helperMessage → HelperMessage}/src/HelperMessage.js +6 -6
- package/dist/HelperMessage/src/HelperMessageContext.js +2 -0
- package/dist/{helperMessage → HelperMessage}/src/index.css +12 -12
- package/dist/{helperMessage → HelperMessage}/src/index.js +6 -6
- package/dist/HopperProvider/src/HopperProvider.d.ts +1 -1
- package/dist/HopperProvider/src/HopperProvider.js +2 -2
- package/dist/HopperProvider/src/index.js +2 -2
- package/dist/IconList/src/IconList.css +1 -1
- package/dist/IconList/src/IconList.js +2 -2
- package/dist/IconList/src/IconListContext.js +1 -1
- package/dist/IconList/src/index.css +1 -1
- package/dist/IconList/src/index.js +2 -2
- package/dist/Link/src/Link.css +31 -31
- package/dist/Link/src/Link.js +7 -7
- package/dist/Link/src/LinkContext.js +1 -1
- package/dist/Link/src/index.css +31 -31
- package/dist/Link/src/index.js +7 -7
- package/dist/ListBox/src/ListBox.css +1434 -0
- package/dist/ListBox/src/ListBox.d.ts +48 -0
- package/dist/ListBox/src/ListBox.js +34 -0
- package/dist/ListBox/src/ListBoxContext.d.ts +10 -0
- package/dist/ListBox/src/ListBoxContext.js +2 -0
- package/dist/ListBox/src/ListBoxItem.css +1297 -0
- package/dist/ListBox/src/ListBoxItem.d.ts +39 -0
- package/dist/ListBox/src/ListBoxItem.js +27 -0
- package/dist/ListBox/src/ListBoxItemContext.d.ts +9 -0
- package/dist/ListBox/src/ListBoxItemContext.js +2 -0
- package/dist/ListBox/src/ListBoxItemSkeleton.css +56 -0
- package/dist/ListBox/src/ListBoxItemSkeleton.d.ts +23 -0
- package/dist/ListBox/src/ListBoxItemSkeleton.js +4 -0
- package/dist/ListBox/src/ListBoxItemSkeletonContext.d.ts +10 -0
- package/dist/ListBox/src/ListBoxItemSkeletonContext.js +2 -0
- package/dist/ListBox/src/index.css +1434 -0
- package/dist/ListBox/src/index.d.ts +8 -0
- package/dist/ListBox/src/index.js +34 -0
- package/dist/ListBox/src/useLoadOnScroll.d.ts +16 -0
- package/dist/ListBox/src/useLoadOnScroll.js +2 -0
- package/dist/Section/src/Section.d.ts +19 -0
- package/dist/Section/src/Section.js +3 -0
- package/dist/Section/src/SectionContext.d.ts +9 -0
- package/dist/Section/src/SectionContext.js +2 -0
- package/dist/Section/src/index.d.ts +6 -0
- package/dist/Section/src/index.js +3 -0
- package/dist/Spinner/src/Spinner.css +19 -19
- package/dist/Spinner/src/Spinner.js +4 -4
- package/dist/Spinner/src/SpinnerContext.js +1 -1
- package/dist/Spinner/src/index.css +19 -19
- package/dist/Spinner/src/index.js +4 -4
- package/dist/buttons/src/Button.css +103 -103
- package/dist/buttons/src/Button.js +12 -12
- package/dist/buttons/src/ButtonContext.js +1 -1
- package/dist/buttons/src/ButtonGroup.css +11 -11
- package/dist/buttons/src/ButtonGroup.js +4 -4
- package/dist/buttons/src/ButtonGroupContext.js +1 -1
- package/dist/buttons/src/ClearButton.css +12 -12
- package/dist/buttons/src/ClearButton.js +5 -5
- package/dist/buttons/src/ClearButtonContext.js +1 -1
- package/dist/buttons/src/EmbeddedButton.css +12 -12
- package/dist/buttons/src/EmbeddedButton.js +3 -3
- package/dist/buttons/src/EmbeddedButtonContext.js +1 -1
- package/dist/buttons/src/index.css +126 -126
- package/dist/buttons/src/index.js +16 -16
- package/dist/checkbox/src/Checkbox.css +79 -94
- package/dist/checkbox/src/Checkbox.d.ts +3 -1
- package/dist/checkbox/src/Checkbox.js +6 -6
- package/dist/checkbox/src/CheckboxContext.d.ts +2 -0
- package/dist/checkbox/src/CheckboxContext.js +1 -1
- package/dist/checkbox/src/CheckboxField.css +15 -15
- package/dist/checkbox/src/CheckboxField.js +3 -3
- package/dist/checkbox/src/CheckboxFieldContext.js +1 -1
- package/dist/checkbox/src/CheckboxGroup.css +116 -131
- package/dist/checkbox/src/CheckboxGroup.js +6 -6
- package/dist/checkbox/src/CheckboxGroupContext.js +1 -1
- package/dist/checkbox/src/CheckboxList.js +1 -1
- package/dist/checkbox/src/CheckboxListContext.js +1 -1
- package/dist/checkbox/src/index.css +116 -131
- package/dist/checkbox/src/index.js +12 -12
- package/dist/{chunk-GELM73MQ.js → chunk-2NJ3RDMJ.js} +12 -6
- package/dist/chunk-3LGP5T4C.js +625 -0
- package/dist/{chunk-W2SKBBWE.js → chunk-3WUDQLLR.js} +5 -5
- package/dist/{chunk-F7S2I43Y.js → chunk-4TJUYXYN.js} +2 -2
- package/dist/{chunk-22YUFCHD.js → chunk-4V75RYJN.js} +3 -3
- package/dist/{chunk-KOA2CREJ.js → chunk-5CIADHZR.js} +5 -5
- package/dist/chunk-5H5AZJPQ.js +7 -0
- package/dist/{chunk-WTKIUAHI.js → chunk-632B5YBQ.js} +1 -1
- package/dist/{chunk-WFPCHFJI.js → chunk-666H6UTL.js} +2 -2
- package/dist/chunk-7JOGKC3W.js +7 -0
- package/dist/chunk-AE24HPDG.js +49 -0
- package/dist/{chunk-UOBWYTW7.js → chunk-CK5HMGDC.js} +11 -11
- package/dist/{chunk-5F5CWOM4.js → chunk-COBPJHIY.js} +1 -1
- package/dist/{chunk-ZSFJVMJN.js → chunk-CQDLZ42T.js} +1 -1
- package/dist/{chunk-THCG3QCD.js → chunk-CXIMLIUB.js} +3 -3
- package/dist/chunk-DESANYPD.js +142 -0
- package/dist/{chunk-7Q7VIED2.js → chunk-E7Y25WJE.js} +3 -3
- package/dist/{chunk-3IEED7AY.js → chunk-EBXHYPDU.js} +1 -1
- package/dist/{chunk-ACVMW6YD.js → chunk-FAE27DLF.js} +1 -1
- package/dist/{chunk-TM6742MU.js → chunk-FMSIW5AX.js} +3 -3
- package/dist/chunk-FYIHMKHI.js +7 -0
- package/dist/{chunk-P7JRKXBD.js → chunk-HVUX7ZQ3.js} +2 -2
- package/dist/{chunk-ESVVLTEN.js → chunk-HZKFQ33E.js} +1 -1
- package/dist/chunk-I4VPBQI7.js +7 -0
- package/dist/{chunk-6WWYES56.js → chunk-IUQNDY3E.js} +5 -5
- package/dist/{chunk-2P3A4VVY.js → chunk-JSBRDJBE.js} +1 -6
- package/dist/chunk-JTNMFPM4.js +41 -0
- package/dist/chunk-L5A2UTQV.js +43 -0
- package/dist/{chunk-Z33QZKRG.js → chunk-LIUW56HE.js} +1 -1
- package/dist/{chunk-WNVTTHBK.js → chunk-LM4HMPSD.js} +6 -5
- package/dist/{chunk-ANVMQBBG.js → chunk-NMKBUGSO.js} +12 -1
- package/dist/{chunk-BD53A2LL.js → chunk-NQOLP5NY.js} +12 -6
- package/dist/chunk-O5PTD6IN.js +41 -0
- package/dist/{chunk-LUAIMTPE.js → chunk-OKAYIZ45.js} +7 -7
- package/dist/chunk-OKZYR4RF.js +7 -0
- package/dist/{chunk-CP4AWOFU.js → chunk-QACERXDV.js} +2 -2
- package/dist/{chunk-FYDLV5BM.js → chunk-R2UVMOIP.js} +1 -1
- package/dist/chunk-RW4GDPRX.js +52 -0
- package/dist/{chunk-OPFRM3JC.js → chunk-SHVSB6MD.js} +4 -4
- package/dist/{chunk-KQPY2D3P.js → chunk-SSCPXYN6.js} +5 -5
- package/dist/chunk-SXPMPVDJ.js +250 -0
- package/dist/chunk-U4NXU44C.js +118 -0
- package/dist/chunk-UIEP5BA5.js +7 -0
- package/dist/{chunk-KOJGCQ3F.js → chunk-UUUU6SUW.js} +4 -4
- package/dist/chunk-W2ZCHVKP.js +119 -0
- package/dist/{chunk-3OWQHIJ6.js → chunk-WSNJNUUA.js} +1 -1
- package/dist/{chunk-IIZECZAH.js → chunk-WXJ3U2DV.js} +3 -3
- package/dist/{chunk-UYVKDU2W.js → chunk-XC7OT325.js} +3 -3
- package/dist/{chunk-BVGKXCQH.js → chunk-XVKZ3Q3B.js} +2 -2
- package/dist/chunk-Y2POLIXK.js +7 -0
- package/dist/{chunk-H6CDFWVR.js → chunk-YEYNRBMQ.js} +7 -3
- package/dist/{chunk-T6VFQSII.js → chunk-YTPFSLHU.js} +5 -5
- package/dist/{chunk-GWEUWPLT.js → chunk-YZRL7TXT.js} +2 -2
- package/dist/chunk-ZMDHYGEP.js +57 -0
- package/dist/i18n/src/index.js +2 -2
- package/dist/i18n/src/useLocalizedString.js +2 -2
- package/dist/index.css +3297 -0
- package/dist/index.d.ts +113 -0
- package/dist/index.js +107 -0
- package/dist/inputs/src/InputGroup.css +12 -12
- package/dist/inputs/src/InputGroup.js +3 -3
- package/dist/inputs/src/InputGroupContext.js +1 -1
- package/dist/inputs/src/PasswordField.css +202 -1793
- package/dist/inputs/src/PasswordField.js +17 -188
- package/dist/inputs/src/PasswordFieldContext.js +1 -1
- package/dist/inputs/src/SearchField.css +208 -1799
- package/dist/inputs/src/SearchField.js +18 -187
- package/dist/inputs/src/SearchFieldContext.js +1 -1
- package/dist/inputs/src/TextField.css +203 -1794
- package/dist/inputs/src/TextField.js +16 -77
- package/dist/inputs/src/TextFieldContext.js +1 -1
- package/dist/inputs/src/index.css +292 -1794
- package/dist/inputs/src/index.d.ts +4 -0
- package/dist/inputs/src/index.js +20 -77
- package/dist/layout/src/Content.js +1 -1
- package/dist/layout/src/ContentContext.js +1 -1
- package/dist/layout/src/Flex.js +1 -1
- package/dist/layout/src/Footer.js +1 -1
- package/dist/layout/src/FooterContext.js +1 -1
- package/dist/layout/src/Grid.js +1 -1
- package/dist/layout/src/Inline.js +1 -1
- package/dist/layout/src/Stack.js +1 -1
- package/dist/layout/src/grid-helpers.js +1 -1
- package/dist/overlays/Popover/src/Popover.css +1211 -555
- package/dist/overlays/Popover/src/Popover.d.ts +5 -6
- package/dist/overlays/Popover/src/Popover.js +84 -61
- package/dist/overlays/Popover/src/PopoverContext.d.ts +1 -2
- package/dist/overlays/Popover/src/PopoverContext.js +1 -1
- package/dist/overlays/Popover/src/PopoverTrigger.d.ts +8 -0
- package/dist/overlays/Popover/src/PopoverTrigger.js +2 -0
- package/dist/overlays/Popover/src/index.css +1211 -555
- package/dist/overlays/Popover/src/index.d.ts +3 -2
- package/dist/overlays/Popover/src/index.js +84 -61
- package/dist/radio/src/Radio.css +67 -79
- package/dist/radio/src/Radio.d.ts +3 -1
- package/dist/radio/src/Radio.js +6 -6
- package/dist/radio/src/RadioContext.d.ts +2 -0
- package/dist/radio/src/RadioContext.js +1 -1
- package/dist/radio/src/RadioField.css +15 -15
- package/dist/radio/src/RadioField.js +4 -4
- package/dist/radio/src/RadioFieldContext.js +1 -1
- package/dist/radio/src/RadioGroup.css +104 -116
- package/dist/radio/src/RadioGroup.js +6 -6
- package/dist/radio/src/RadioGroupContext.js +1 -1
- package/dist/radio/src/RadioList.js +1 -1
- package/dist/radio/src/RadioListContext.js +1 -1
- package/dist/radio/src/index.css +104 -116
- package/dist/radio/src/index.js +11 -11
- package/dist/switch/src/Switch.css +25 -25
- package/dist/switch/src/Switch.js +6 -6
- package/dist/switch/src/SwitchContext.js +1 -1
- package/dist/switch/src/SwitchField.css +15 -15
- package/dist/switch/src/SwitchField.js +4 -4
- package/dist/switch/src/SwitchFieldContext.js +1 -1
- package/dist/switch/src/index.css +31 -31
- package/dist/switch/src/index.js +8 -8
- package/dist/tag/src/Tag.css +1280 -548
- package/dist/tag/src/Tag.js +85 -60
- package/dist/tag/src/TagContext.js +1 -1
- package/dist/tag/src/TagGroup.css +30 -30
- package/dist/tag/src/TagGroup.js +6 -6
- package/dist/tag/src/TagGroupContext.js +1 -1
- package/dist/tag/src/TagList.js +1 -1
- package/dist/tag/src/TagListContext.js +1 -1
- package/dist/tag/src/index.css +1280 -548
- package/dist/tag/src/index.js +85 -60
- package/dist/typography/Heading/src/Heading.css +9 -2490
- package/dist/typography/Heading/src/Heading.js +2 -80
- package/dist/typography/Heading/src/HeadingContext.js +1 -1
- package/dist/typography/Heading/src/index.css +9 -2490
- package/dist/typography/Heading/src/index.js +2 -80
- package/dist/typography/Label/src/Label.css +9 -9
- package/dist/typography/Label/src/Label.js +2 -2
- package/dist/typography/Label/src/LabelContext.js +1 -1
- package/dist/typography/Label/src/index.css +9 -9
- package/dist/typography/Label/src/index.js +2 -2
- package/dist/typography/OverlineText/src/OverlineText.css +6 -6
- package/dist/typography/OverlineText/src/OverlineText.js +2 -2
- package/dist/typography/OverlineText/src/OverlineTextContext.js +1 -1
- package/dist/typography/OverlineText/src/index.css +6 -6
- package/dist/typography/OverlineText/src/index.js +2 -2
- package/dist/typography/Text/src/Text.css +9 -9
- package/dist/typography/Text/src/Text.js +4 -4
- package/dist/typography/Text/src/TextContext.js +1 -1
- package/dist/typography/Text/src/index.css +9 -9
- package/dist/typography/Text/src/index.js +4 -4
- package/dist/utils/src/ClearSlots.js +1 -1
- package/dist/utils/src/SlotProvider.js +1 -1
- package/dist/utils/src/assertion.js +1 -1
- package/dist/utils/src/composeClassnameRenderProps.js +1 -1
- package/dist/utils/src/cssModule.js +1 -1
- package/dist/utils/src/index.d.ts +1 -1
- package/dist/utils/src/index.js +4 -4
- package/dist/utils/src/isTextOnlyChildren.js +1 -1
- package/dist/utils/src/types.d.ts +16 -1
- package/dist/utils/src/useRenderProps.js +1 -1
- package/dist/utils/src/useSlot.js +1 -1
- package/package.json +2 -2
- package/dist/badge/src/Badge.js +0 -6
- package/dist/badge/src/BadgeContext.js +0 -2
- package/dist/badge/src/index.js +0 -6
- package/dist/chip/src/ChipContext.js +0 -2
- package/dist/chunk-NXNV5JDN.js +0 -392
- package/dist/chunk-ZCEVY7LM.js +0 -96
- package/dist/errorMessage/src/ErrorMessageContext.js +0 -2
- package/dist/helperMessage/src/HelperMessageContext.js +0 -2
- /package/dist/{badge → Badge}/src/BadgeContext.d.ts +0 -0
- /package/dist/{badge → Badge}/src/index.d.ts +0 -0
- /package/dist/{chip → Chip}/src/Chip.d.ts +0 -0
- /package/dist/{chip → Chip}/src/ChipContext.d.ts +0 -0
- /package/dist/{chip → Chip}/src/index.d.ts +0 -0
- /package/dist/{errorMessage → ErrorMessage}/src/ErrorMessage.d.ts +0 -0
- /package/dist/{errorMessage → ErrorMessage}/src/ErrorMessageContext.d.ts +0 -0
- /package/dist/{errorMessage → ErrorMessage}/src/index.d.ts +0 -0
- /package/dist/{helperMessage → HelperMessage}/src/HelperMessage.d.ts +0 -0
- /package/dist/{helperMessage → HelperMessage}/src/HelperMessageContext.d.ts +0 -0
- /package/dist/{helperMessage → HelperMessage}/src/index.d.ts +0 -0
package/dist/chunk-NXNV5JDN.js
DELETED
|
@@ -1,392 +0,0 @@
|
|
|
1
|
-
import { HeadingContext } from './chunk-TXZ6BMFR.js';
|
|
2
|
-
import { isArray, isDefined, isEmptyArray, isFunction, isNil, isNilOrEmpty, isNull, isNumber, isObject, isPlainObject, isPromise, isString, isUndefined } from './chunk-TIPN4VYD.js';
|
|
3
|
-
import { GlobalSwitchFieldCssSelector, _SwitchField } from './chunk-THCG3QCD.js';
|
|
4
|
-
import { SwitchFieldContext } from './chunk-H7VJS4MX.js';
|
|
5
|
-
import { GlobalTagGroupCssSelector, _TagGroup } from './chunk-6WWYES56.js';
|
|
6
|
-
import { TagContext } from './chunk-EWMWQ2MC.js';
|
|
7
|
-
import { TagGroupContext } from './chunk-LCAS3YQV.js';
|
|
8
|
-
import { GlobalTagListCssSelector, _TagList } from './chunk-WWRB4K4M.js';
|
|
9
|
-
import { TagListContext } from './chunk-XLKYXKWE.js';
|
|
10
|
-
import { GlobalRadioGroupCssSelector, _RadioGroup } from './chunk-W2SKBBWE.js';
|
|
11
|
-
import { RadioGroupContext } from './chunk-5MBJWRZD.js';
|
|
12
|
-
import { GlobalRadioListCssSelector, _RadioList } from './chunk-NKHMUPAP.js';
|
|
13
|
-
import { RadioListContext } from './chunk-A7TZHALP.js';
|
|
14
|
-
import { GlobalSwitchCssSelector, _Switch } from './chunk-T6VFQSII.js';
|
|
15
|
-
import { SwitchContext } from './chunk-YHBJAXUY.js';
|
|
16
|
-
import { _Grid } from './chunk-N77LTZ4U.js';
|
|
17
|
-
import { _Inline } from './chunk-Y7HUXUHX.js';
|
|
18
|
-
import { _Stack } from './chunk-D6UTDI2K.js';
|
|
19
|
-
import { fitContent, minmax, repeat } from './chunk-GFHBDUJD.js';
|
|
20
|
-
import { GlobalRadioCssSelector, _Radio } from './chunk-BD53A2LL.js';
|
|
21
|
-
import { GlobalRadioFieldCssSelector, _RadioField } from './chunk-UYVKDU2W.js';
|
|
22
|
-
import { RadioFieldContext } from './chunk-DGLAGYBD.js';
|
|
23
|
-
import { RadioContext } from './chunk-FU5CCPLP.js';
|
|
24
|
-
import { _Content, GlobalContentCssSelector } from './chunk-GXBVNCVP.js';
|
|
25
|
-
import { ContentContext } from './chunk-IXB2WK56.js';
|
|
26
|
-
import { _Flex } from './chunk-TVFC2MJ4.js';
|
|
27
|
-
import { _Footer, GlobalFooterCssSelector } from './chunk-AQITZWYM.js';
|
|
28
|
-
import { FooterContext } from './chunk-I67NHYK4.js';
|
|
29
|
-
import { _Chip, GlobalChipCssSelector } from './chunk-KOJGCQ3F.js';
|
|
30
|
-
import { ChipContext } from './chunk-WTKIUAHI.js';
|
|
31
|
-
import { _ErrorMessage, GlobalErrorMessageCssSelector } from './chunk-22YUFCHD.js';
|
|
32
|
-
import { GlobalHelperMessageCssSelector, _HelperMessage } from './chunk-IIZECZAH.js';
|
|
33
|
-
import { _CheckboxField, GlobalCheckboxFieldCssSelector } from './chunk-WFPCHFJI.js';
|
|
34
|
-
import { _CheckboxGroup, GlobalCheckboxGroupCssSelector } from './chunk-KQPY2D3P.js';
|
|
35
|
-
import { ErrorMessageContext } from './chunk-ACVMW6YD.js';
|
|
36
|
-
import { HelperMessageContext } from './chunk-ESVVLTEN.js';
|
|
37
|
-
import { CheckboxFieldContext } from './chunk-ZGNK4GWA.js';
|
|
38
|
-
import { CheckboxGroupContext } from './chunk-N7YDPVZL.js';
|
|
39
|
-
import { _CheckboxList, GlobalCheckboxListCssSelector } from './chunk-3LRBUQC2.js';
|
|
40
|
-
import { CheckboxListContext } from './chunk-WDUQUPTE.js';
|
|
41
|
-
import { _ButtonGroup, GlobalButtonGroupCssSelector } from './chunk-TM6742MU.js';
|
|
42
|
-
import { ButtonGroupContext } from './chunk-VJQ7M2BK.js';
|
|
43
|
-
import { _ClearButton, GlobalClearButtonCssSelector } from './chunk-P7JRKXBD.js';
|
|
44
|
-
import { ClearButtonContext } from './chunk-DXVKHP4V.js';
|
|
45
|
-
import { _EmbeddedButton, GlobalEmbeddedButtonCssSelector } from './chunk-F7S2I43Y.js';
|
|
46
|
-
import { EmbeddedButtonContext } from './chunk-O7IJYNVQ.js';
|
|
47
|
-
import { _Checkbox, GlobalCheckboxCssSelector } from './chunk-GELM73MQ.js';
|
|
48
|
-
import { CheckboxContext } from './chunk-2EAZPH3M.js';
|
|
49
|
-
import { _Badge, GlobalBadgeCssSelector } from './chunk-WNVTTHBK.js';
|
|
50
|
-
import { GlobalOverlineTextCssSelector, _OverlineText } from './chunk-3IEED7AY.js';
|
|
51
|
-
import { OverlineTextContext } from './chunk-WPNVVGFW.js';
|
|
52
|
-
import { BadgeContext } from './chunk-ZSFJVMJN.js';
|
|
53
|
-
import { _Button, GlobalButtonCssSelector } from './chunk-LUAIMTPE.js';
|
|
54
|
-
import { useSlot } from './chunk-H5YTU3U7.js';
|
|
55
|
-
import { useRenderProps } from './chunk-NH3IVMXB.js';
|
|
56
|
-
import { useLocalizedString } from './chunk-H6CDFWVR.js';
|
|
57
|
-
import { GlobalSpinnerCssSelector, _Spinner } from './chunk-BVGKXCQH.js';
|
|
58
|
-
import { GlobalLabelCssSelector, _Label } from './chunk-5F5CWOM4.js';
|
|
59
|
-
import { LabelContext } from './chunk-QCA3ZR56.js';
|
|
60
|
-
import { SpinnerContext } from './chunk-4ZYV2XLW.js';
|
|
61
|
-
import { ButtonContext } from './chunk-WMTWFKKP.js';
|
|
62
|
-
import { GlobalHopperProviderCssSelector, _HopperProvider } from './chunk-ANVMQBBG.js';
|
|
63
|
-
import { GlobalIconListCssSelector, _IconList } from './chunk-3OWQHIJ6.js';
|
|
64
|
-
import { GlobalLinkCssSelector, _Link } from './chunk-KOA2CREJ.js';
|
|
65
|
-
import { isTextOnlyChildren } from './chunk-ZWU6DRRZ.js';
|
|
66
|
-
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
67
|
-
import { IconListContext } from './chunk-DHVVYSLB.js';
|
|
68
|
-
import { LinkContext } from './chunk-4VVNSXIB.js';
|
|
69
|
-
import { _AnonymousAvatar, GlobalAnonymousAvatarCssSelector } from './chunk-FYDLV5BM.js';
|
|
70
|
-
import { _Avatar, AvatarToTextSizeAdapter, GlobalAvatarCssSelector } from './chunk-OPFRM3JC.js';
|
|
71
|
-
import { GlobalTextCssSelector, _Text } from './chunk-7Q7VIED2.js';
|
|
72
|
-
import { ClearContainerSlots, ClearProviders } from './chunk-HXI3MEEK.js';
|
|
73
|
-
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
74
|
-
import { _DeletedAvatar, GlobalDeletedAvatarCssSelector } from './chunk-Z33QZKRG.js';
|
|
75
|
-
import { AvatarContext } from './chunk-AES7QBQE.js';
|
|
76
|
-
import { AvatarToIconSizeAdapter, GlobalRichIconAvatarImageCssSelector, _RichIconAvatarImage } from './chunk-CP4AWOFU.js';
|
|
77
|
-
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
78
|
-
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
79
|
-
import { RichIconAvatarImageContext } from './chunk-JWW56J7M.js';
|
|
80
|
-
import { __export, __reExport } from './chunk-2P3A4VVY.js';
|
|
81
|
-
import * as styled_system_star from '@hopper-ui/styled-system';
|
|
82
|
-
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
83
|
-
import clsx from 'clsx';
|
|
84
|
-
import { forwardRef } from 'react';
|
|
85
|
-
import { useContextProps, Heading as Heading$1, composeRenderProps, Tag as Tag$1 } from 'react-aria-components';
|
|
86
|
-
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
87
|
-
import { IconContext } from '@hopper-ui/icons';
|
|
88
|
-
|
|
89
|
-
// src/index.ts
|
|
90
|
-
var src_exports = {};
|
|
91
|
-
__export(src_exports, {
|
|
92
|
-
AnonymousAvatar: () => _AnonymousAvatar,
|
|
93
|
-
Avatar: () => _Avatar,
|
|
94
|
-
AvatarContext: () => AvatarContext,
|
|
95
|
-
AvatarToIconSizeAdapter: () => AvatarToIconSizeAdapter,
|
|
96
|
-
AvatarToTextSizeAdapter: () => AvatarToTextSizeAdapter,
|
|
97
|
-
Badge: () => _Badge,
|
|
98
|
-
BadgeContext: () => BadgeContext,
|
|
99
|
-
Button: () => _Button,
|
|
100
|
-
ButtonContext: () => ButtonContext,
|
|
101
|
-
ButtonGroup: () => _ButtonGroup,
|
|
102
|
-
ButtonGroupContext: () => ButtonGroupContext,
|
|
103
|
-
Checkbox: () => _Checkbox,
|
|
104
|
-
CheckboxContext: () => CheckboxContext,
|
|
105
|
-
CheckboxField: () => _CheckboxField,
|
|
106
|
-
CheckboxFieldContext: () => CheckboxFieldContext,
|
|
107
|
-
CheckboxGroup: () => _CheckboxGroup,
|
|
108
|
-
CheckboxGroupContext: () => CheckboxGroupContext,
|
|
109
|
-
CheckboxList: () => _CheckboxList,
|
|
110
|
-
CheckboxListContext: () => CheckboxListContext,
|
|
111
|
-
Chip: () => _Chip,
|
|
112
|
-
ChipContext: () => ChipContext,
|
|
113
|
-
ClearButton: () => _ClearButton,
|
|
114
|
-
ClearButtonContext: () => ClearButtonContext,
|
|
115
|
-
ClearContainerSlots: () => ClearContainerSlots,
|
|
116
|
-
ClearProviders: () => ClearProviders,
|
|
117
|
-
Content: () => _Content,
|
|
118
|
-
ContentContext: () => ContentContext,
|
|
119
|
-
DeletedAvatar: () => _DeletedAvatar,
|
|
120
|
-
EmbeddedButton: () => _EmbeddedButton,
|
|
121
|
-
EmbeddedButtonContext: () => EmbeddedButtonContext,
|
|
122
|
-
ErrorMessage: () => _ErrorMessage,
|
|
123
|
-
ErrorMessageContext: () => ErrorMessageContext,
|
|
124
|
-
Flex: () => _Flex,
|
|
125
|
-
Footer: () => _Footer,
|
|
126
|
-
FooterContext: () => FooterContext,
|
|
127
|
-
GlobalAnonymousAvatarCssSelector: () => GlobalAnonymousAvatarCssSelector,
|
|
128
|
-
GlobalAvatarCssSelector: () => GlobalAvatarCssSelector,
|
|
129
|
-
GlobalBadgeCssSelector: () => GlobalBadgeCssSelector,
|
|
130
|
-
GlobalButtonCssSelector: () => GlobalButtonCssSelector,
|
|
131
|
-
GlobalButtonGroupCssSelector: () => GlobalButtonGroupCssSelector,
|
|
132
|
-
GlobalCheckboxCssSelector: () => GlobalCheckboxCssSelector,
|
|
133
|
-
GlobalCheckboxFieldCssSelector: () => GlobalCheckboxFieldCssSelector,
|
|
134
|
-
GlobalCheckboxGroupCssSelector: () => GlobalCheckboxGroupCssSelector,
|
|
135
|
-
GlobalCheckboxListCssSelector: () => GlobalCheckboxListCssSelector,
|
|
136
|
-
GlobalChipCssSelector: () => GlobalChipCssSelector,
|
|
137
|
-
GlobalClearButtonCssSelector: () => GlobalClearButtonCssSelector,
|
|
138
|
-
GlobalContentCssSelector: () => GlobalContentCssSelector,
|
|
139
|
-
GlobalDeletedAvatarCssSelector: () => GlobalDeletedAvatarCssSelector,
|
|
140
|
-
GlobalEmbeddedButtonCssSelector: () => GlobalEmbeddedButtonCssSelector,
|
|
141
|
-
GlobalErrorMessageCssSelector: () => GlobalErrorMessageCssSelector,
|
|
142
|
-
GlobalFooterCssSelector: () => GlobalFooterCssSelector,
|
|
143
|
-
GlobalHeadingCssSelector: () => GlobalHeadingCssSelector,
|
|
144
|
-
GlobalHelperMessageCssSelector: () => GlobalHelperMessageCssSelector,
|
|
145
|
-
GlobalHopperProviderCssSelector: () => GlobalHopperProviderCssSelector,
|
|
146
|
-
GlobalIconListCssSelector: () => GlobalIconListCssSelector,
|
|
147
|
-
GlobalLabelCssSelector: () => GlobalLabelCssSelector,
|
|
148
|
-
GlobalLinkCssSelector: () => GlobalLinkCssSelector,
|
|
149
|
-
GlobalOverlineTextCssSelector: () => GlobalOverlineTextCssSelector,
|
|
150
|
-
GlobalRadioCssSelector: () => GlobalRadioCssSelector,
|
|
151
|
-
GlobalRadioFieldCssSelector: () => GlobalRadioFieldCssSelector,
|
|
152
|
-
GlobalRadioGroupCssSelector: () => GlobalRadioGroupCssSelector,
|
|
153
|
-
GlobalRadioListCssSelector: () => GlobalRadioListCssSelector,
|
|
154
|
-
GlobalRichIconAvatarImageCssSelector: () => GlobalRichIconAvatarImageCssSelector,
|
|
155
|
-
GlobalSpinnerCssSelector: () => GlobalSpinnerCssSelector,
|
|
156
|
-
GlobalSwitchCssSelector: () => GlobalSwitchCssSelector,
|
|
157
|
-
GlobalSwitchFieldCssSelector: () => GlobalSwitchFieldCssSelector,
|
|
158
|
-
GlobalTagCssSelector: () => GlobalTagCssSelector,
|
|
159
|
-
GlobalTagGroupCssSelector: () => GlobalTagGroupCssSelector,
|
|
160
|
-
GlobalTagListCssSelector: () => GlobalTagListCssSelector,
|
|
161
|
-
GlobalTextCssSelector: () => GlobalTextCssSelector,
|
|
162
|
-
Grid: () => _Grid,
|
|
163
|
-
H1: () => H1,
|
|
164
|
-
H2: () => H2,
|
|
165
|
-
H3: () => H3,
|
|
166
|
-
H4: () => H4,
|
|
167
|
-
H5: () => H5,
|
|
168
|
-
H6: () => H6,
|
|
169
|
-
Heading: () => _Heading,
|
|
170
|
-
HeadingContext: () => HeadingContext,
|
|
171
|
-
HelperMessage: () => _HelperMessage,
|
|
172
|
-
HelperMessageContext: () => HelperMessageContext,
|
|
173
|
-
HopperProvider: () => _HopperProvider,
|
|
174
|
-
IconList: () => _IconList,
|
|
175
|
-
IconListContext: () => IconListContext,
|
|
176
|
-
Inline: () => _Inline,
|
|
177
|
-
Label: () => _Label,
|
|
178
|
-
LabelContext: () => LabelContext,
|
|
179
|
-
Link: () => _Link,
|
|
180
|
-
LinkContext: () => LinkContext,
|
|
181
|
-
OverlineText: () => _OverlineText,
|
|
182
|
-
OverlineTextContext: () => OverlineTextContext,
|
|
183
|
-
Radio: () => _Radio,
|
|
184
|
-
RadioContext: () => RadioContext,
|
|
185
|
-
RadioField: () => _RadioField,
|
|
186
|
-
RadioFieldContext: () => RadioFieldContext,
|
|
187
|
-
RadioGroup: () => _RadioGroup,
|
|
188
|
-
RadioGroupContext: () => RadioGroupContext,
|
|
189
|
-
RadioList: () => _RadioList,
|
|
190
|
-
RadioListContext: () => RadioListContext,
|
|
191
|
-
RichIconAvatarImage: () => _RichIconAvatarImage,
|
|
192
|
-
RichIconAvatarImageContext: () => RichIconAvatarImageContext,
|
|
193
|
-
SlotProvider: () => SlotProvider,
|
|
194
|
-
Spinner: () => _Spinner,
|
|
195
|
-
SpinnerContext: () => SpinnerContext,
|
|
196
|
-
Stack: () => _Stack,
|
|
197
|
-
Switch: () => _Switch,
|
|
198
|
-
SwitchContext: () => SwitchContext,
|
|
199
|
-
SwitchField: () => _SwitchField,
|
|
200
|
-
SwitchFieldContext: () => SwitchFieldContext,
|
|
201
|
-
Tag: () => _Tag,
|
|
202
|
-
TagContext: () => TagContext,
|
|
203
|
-
TagGroup: () => _TagGroup,
|
|
204
|
-
TagGroupContext: () => TagGroupContext,
|
|
205
|
-
TagList: () => _TagList,
|
|
206
|
-
TagListContext: () => TagListContext,
|
|
207
|
-
Text: () => _Text,
|
|
208
|
-
TextContext: () => TextContext,
|
|
209
|
-
composeClassnameRenderProps: () => composeClassnameRenderProps,
|
|
210
|
-
cssModule: () => cssModule,
|
|
211
|
-
fitContent: () => fitContent,
|
|
212
|
-
isArray: () => isArray,
|
|
213
|
-
isDefined: () => isDefined,
|
|
214
|
-
isEmptyArray: () => isEmptyArray,
|
|
215
|
-
isFunction: () => isFunction,
|
|
216
|
-
isNil: () => isNil,
|
|
217
|
-
isNilOrEmpty: () => isNilOrEmpty,
|
|
218
|
-
isNull: () => isNull,
|
|
219
|
-
isNumber: () => isNumber,
|
|
220
|
-
isObject: () => isObject,
|
|
221
|
-
isPlainObject: () => isPlainObject,
|
|
222
|
-
isPromise: () => isPromise,
|
|
223
|
-
isString: () => isString,
|
|
224
|
-
isTextOnlyChildren: () => isTextOnlyChildren,
|
|
225
|
-
isUndefined: () => isUndefined,
|
|
226
|
-
minmax: () => minmax,
|
|
227
|
-
repeat: () => repeat,
|
|
228
|
-
useRenderProps: () => useRenderProps,
|
|
229
|
-
useSlot: () => useSlot
|
|
230
|
-
});
|
|
231
|
-
|
|
232
|
-
// css-module:./Heading.module.css#css-module
|
|
233
|
-
var Heading_module_default = { "hop-Heading": "Heading-module__hop-Heading___N6RDM", "hop-Heading--xs": "Heading-module__hop-Heading--xs___PspSb", "hop-Heading--sm": "Heading-module__hop-Heading--sm___I-Ypn", "hop-Heading--md": "Heading-module__hop-Heading--md___bJB6G", "hop-Heading--lg": "Heading-module__hop-Heading--lg___NYsEb", "hop-Heading--xl": "Heading-module__hop-Heading--xl___K-lV8", "hop-Heading--2xl": "Heading-module__hop-Heading--2xl___Uxjjw", "hop-Heading--3xl": "Heading-module__hop-Heading--3xl___YLUEv" };
|
|
234
|
-
var GlobalHeadingCssSelector = "hop-Heading";
|
|
235
|
-
function Heading(props, ref) {
|
|
236
|
-
[props, ref] = useContextProps(props, ref, HeadingContext);
|
|
237
|
-
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
238
|
-
const { className, size: sizeProp, children, style, ...otherProps } = ownProps;
|
|
239
|
-
const size = (0, src_exports.useResponsiveValue)(sizeProp != null ? sizeProp : "md");
|
|
240
|
-
const classNames = clsx(
|
|
241
|
-
GlobalHeadingCssSelector,
|
|
242
|
-
cssModule(
|
|
243
|
-
Heading_module_default,
|
|
244
|
-
"hop-Heading",
|
|
245
|
-
size
|
|
246
|
-
),
|
|
247
|
-
stylingProps.className,
|
|
248
|
-
className
|
|
249
|
-
);
|
|
250
|
-
const mergedStyles = {
|
|
251
|
-
...stylingProps.style,
|
|
252
|
-
...style
|
|
253
|
-
};
|
|
254
|
-
return /* @__PURE__ */ jsx(
|
|
255
|
-
Heading$1,
|
|
256
|
-
{
|
|
257
|
-
...otherProps,
|
|
258
|
-
ref,
|
|
259
|
-
className: classNames,
|
|
260
|
-
style: mergedStyles,
|
|
261
|
-
children
|
|
262
|
-
}
|
|
263
|
-
);
|
|
264
|
-
}
|
|
265
|
-
var _Heading = forwardRef(Heading);
|
|
266
|
-
_Heading.displayName = "Heading";
|
|
267
|
-
function createHeading(as) {
|
|
268
|
-
const level = parseInt(as[1]);
|
|
269
|
-
return forwardRef((props, ref) => {
|
|
270
|
-
return /* @__PURE__ */ jsx(_Heading, { ...props, ref, level });
|
|
271
|
-
});
|
|
272
|
-
}
|
|
273
|
-
var H1 = createHeading("h1");
|
|
274
|
-
var H2 = createHeading("h2");
|
|
275
|
-
var H3 = createHeading("h3");
|
|
276
|
-
var H4 = createHeading("h4");
|
|
277
|
-
var H5 = createHeading("h5");
|
|
278
|
-
var H6 = createHeading("h6");
|
|
279
|
-
|
|
280
|
-
// src/index.ts
|
|
281
|
-
__reExport(src_exports, styled_system_star);
|
|
282
|
-
|
|
283
|
-
// css-module:./Tag.module.css#css-module
|
|
284
|
-
var Tag_module_default = { "hop-Tag": "Tag-module__hop-Tag___qFqyh", "hop-Tag--md": "Tag-module__hop-Tag--md___yD2R0", "hop-Tag__icon": "Tag-module__hop-Tag__icon___BuZdB", "hop-Tag__icon-list": "Tag-module__hop-Tag__icon-list___XpdrM", "hop-Tag__badge": "Tag-module__hop-Tag__badge___KsNAZ", "hop-Tag__remove-btn": "Tag-module__hop-Tag__remove-btn___1-nqJ", "hop-Tag__Spinner": "Tag-module__hop-Tag__Spinner___4ylYp", "hop-Tag--lg": "Tag-module__hop-Tag--lg___QYYXG", "hop-Tag__text": "Tag-module__hop-Tag__text___JF8Qt", "hop-Badge--secondary": "Tag-module__hop-Badge--secondary___Hb-el" };
|
|
285
|
-
var GlobalTagCssSelector = "hop-Tag";
|
|
286
|
-
var TagToTextSizeAdapter = {
|
|
287
|
-
md: "xs",
|
|
288
|
-
lg: "sm"
|
|
289
|
-
};
|
|
290
|
-
function Tag(props, ref) {
|
|
291
|
-
var _a;
|
|
292
|
-
[props, ref] = useContextProps(props, ref, TagContext);
|
|
293
|
-
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
294
|
-
const {
|
|
295
|
-
className,
|
|
296
|
-
children: childrenProp,
|
|
297
|
-
isInvalid,
|
|
298
|
-
isLoading,
|
|
299
|
-
size: sizeProp = "md",
|
|
300
|
-
style: styleProp,
|
|
301
|
-
textValue: textValueProp,
|
|
302
|
-
...otherProps
|
|
303
|
-
} = ownProps;
|
|
304
|
-
const stringFormatter = useLocalizedString();
|
|
305
|
-
const size = (_a = useResponsiveValue(sizeProp)) != null ? _a : "md";
|
|
306
|
-
const textValue = textValueProp != null ? textValueProp : typeof childrenProp === "string" ? childrenProp : void 0;
|
|
307
|
-
const classNames = composeClassnameRenderProps(
|
|
308
|
-
className,
|
|
309
|
-
GlobalTagCssSelector,
|
|
310
|
-
cssModule(
|
|
311
|
-
Tag_module_default,
|
|
312
|
-
"hop-Tag",
|
|
313
|
-
size
|
|
314
|
-
),
|
|
315
|
-
stylingProps.className
|
|
316
|
-
);
|
|
317
|
-
const style = composeRenderProps(styleProp, (prev) => {
|
|
318
|
-
return {
|
|
319
|
-
...stylingProps.style,
|
|
320
|
-
...prev
|
|
321
|
-
};
|
|
322
|
-
});
|
|
323
|
-
const children = composeRenderProps(childrenProp, (prev) => {
|
|
324
|
-
if (prev && isTextOnlyChildren(prev)) {
|
|
325
|
-
return /* @__PURE__ */ jsx(_Text, { children: prev });
|
|
326
|
-
}
|
|
327
|
-
return prev;
|
|
328
|
-
});
|
|
329
|
-
return /* @__PURE__ */ jsx(
|
|
330
|
-
Tag$1,
|
|
331
|
-
{
|
|
332
|
-
...otherProps,
|
|
333
|
-
ref,
|
|
334
|
-
className: classNames,
|
|
335
|
-
style,
|
|
336
|
-
textValue,
|
|
337
|
-
"data-invalid": isInvalid || void 0,
|
|
338
|
-
"data-loading": isLoading || void 0,
|
|
339
|
-
children: (tagProps) => {
|
|
340
|
-
const { allowsRemoving, isDisabled } = tagProps;
|
|
341
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
342
|
-
/* @__PURE__ */ jsx(ClearContainerSlots, { children: /* @__PURE__ */ jsx(
|
|
343
|
-
SlotProvider,
|
|
344
|
-
{
|
|
345
|
-
values: [
|
|
346
|
-
[TextContext, {
|
|
347
|
-
className: Tag_module_default["hop-Tag__text"],
|
|
348
|
-
size: TagToTextSizeAdapter[size]
|
|
349
|
-
}],
|
|
350
|
-
[IconListContext, {
|
|
351
|
-
className: Tag_module_default["hop-Tag__icon-list"],
|
|
352
|
-
size: "sm"
|
|
353
|
-
}],
|
|
354
|
-
[IconContext, {
|
|
355
|
-
className: Tag_module_default["hop-Tag__icon"],
|
|
356
|
-
size: "sm"
|
|
357
|
-
}],
|
|
358
|
-
[BadgeContext, {
|
|
359
|
-
className: Tag_module_default["hop-Tag__badge"],
|
|
360
|
-
isDisabled
|
|
361
|
-
}]
|
|
362
|
-
],
|
|
363
|
-
children: children(tagProps)
|
|
364
|
-
}
|
|
365
|
-
) }),
|
|
366
|
-
allowsRemoving && !isLoading && /* @__PURE__ */ jsx(
|
|
367
|
-
_ClearButton,
|
|
368
|
-
{
|
|
369
|
-
slot: "remove",
|
|
370
|
-
isDisabled,
|
|
371
|
-
className: Tag_module_default["hop-Tag__remove-btn"],
|
|
372
|
-
"aria-label": stringFormatter.format("Tag.removeAriaLabel"),
|
|
373
|
-
size
|
|
374
|
-
}
|
|
375
|
-
),
|
|
376
|
-
isLoading && /* @__PURE__ */ jsx(
|
|
377
|
-
_Spinner,
|
|
378
|
-
{
|
|
379
|
-
"aria-label": stringFormatter.format("Tag.spinnerAriaLabel"),
|
|
380
|
-
size: "sm",
|
|
381
|
-
className: Tag_module_default["hop-Tag__Spinner"]
|
|
382
|
-
}
|
|
383
|
-
)
|
|
384
|
-
] });
|
|
385
|
-
}
|
|
386
|
-
}
|
|
387
|
-
);
|
|
388
|
-
}
|
|
389
|
-
var _Tag = forwardRef(Tag);
|
|
390
|
-
_Tag.displayName = "Tag";
|
|
391
|
-
|
|
392
|
-
export { GlobalHeadingCssSelector, GlobalTagCssSelector, H1, H2, H3, H4, H5, H6, _Heading, _Tag, src_exports };
|
package/dist/chunk-ZCEVY7LM.js
DELETED
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { PopoverContext } from './chunk-SC6ZK5ON.js';
|
|
2
|
-
import { src_exports } from './chunk-NXNV5JDN.js';
|
|
3
|
-
import { HeadingContext } from './chunk-TXZ6BMFR.js';
|
|
4
|
-
import { isFunction, isNil } from './chunk-TIPN4VYD.js';
|
|
5
|
-
import { ContentContext } from './chunk-IXB2WK56.js';
|
|
6
|
-
import { FooterContext } from './chunk-I67NHYK4.js';
|
|
7
|
-
import { ButtonGroupContext } from './chunk-VJQ7M2BK.js';
|
|
8
|
-
import { ButtonContext } from './chunk-WMTWFKKP.js';
|
|
9
|
-
import { _HopperProvider } from './chunk-ANVMQBBG.js';
|
|
10
|
-
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
11
|
-
import { LinkContext } from './chunk-4VVNSXIB.js';
|
|
12
|
-
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
13
|
-
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
14
|
-
import { useStyledSystem } from '@hopper-ui/styled-system';
|
|
15
|
-
import clsx from 'clsx';
|
|
16
|
-
import { forwardRef } from 'react';
|
|
17
|
-
import { DialogTrigger, useContextProps, Popover as Popover$1, Dialog } from 'react-aria-components';
|
|
18
|
-
import { jsx } from 'react/jsx-runtime';
|
|
19
|
-
|
|
20
|
-
// css-module:./Popover.module.css#css-module
|
|
21
|
-
var Popover_module_default = { "hop-Popover": "Popover-module__hop-Popover___c-Ekg", "hop-Popover__dialog": "Popover-module__hop-Popover__dialog___oxAHL", "hop-Popover__title": "Popover-module__hop-Popover__title___R9VLN", "hop-Popover__actions": "Popover-module__hop-Popover__actions___gTQ99", "hop-Popover__action": "Popover-module__hop-Popover__action___gI-Mg", "hop-Popover__content": "Popover-module__hop-Popover__content___t34xa", "hop-Popover__footer": "Popover-module__hop-Popover__footer___9yOCm" };
|
|
22
|
-
var GlobalPopoverCssSelector = "hop-Popover";
|
|
23
|
-
var PopoverTrigger = (props) => /* @__PURE__ */ jsx(DialogTrigger, { ...props, children: props.children });
|
|
24
|
-
function Popover(props, ref) {
|
|
25
|
-
[props, ref] = useContextProps(props, ref, PopoverContext);
|
|
26
|
-
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
27
|
-
const {
|
|
28
|
-
children,
|
|
29
|
-
className,
|
|
30
|
-
offset = 4,
|
|
31
|
-
boundaryOffset,
|
|
32
|
-
...otherProps
|
|
33
|
-
} = ownProps;
|
|
34
|
-
const { colorScheme } = (0, src_exports.useColorSchemeContext)();
|
|
35
|
-
const popoverClassNames = composeClassnameRenderProps(
|
|
36
|
-
className,
|
|
37
|
-
GlobalPopoverCssSelector,
|
|
38
|
-
cssModule(
|
|
39
|
-
Popover_module_default,
|
|
40
|
-
"hop-Popover"
|
|
41
|
-
)
|
|
42
|
-
);
|
|
43
|
-
return /* @__PURE__ */ jsx(
|
|
44
|
-
Popover$1,
|
|
45
|
-
{
|
|
46
|
-
...otherProps,
|
|
47
|
-
offset,
|
|
48
|
-
ref,
|
|
49
|
-
className: popoverClassNames,
|
|
50
|
-
arrowBoundaryOffset: boundaryOffset,
|
|
51
|
-
children: (state) => /* @__PURE__ */ jsx(_HopperProvider, { colorScheme, children: /* @__PURE__ */ jsx(
|
|
52
|
-
Dialog,
|
|
53
|
-
{
|
|
54
|
-
className: clsx(stylingProps.className, Popover_module_default["hop-Popover__dialog"]),
|
|
55
|
-
style: stylingProps.style,
|
|
56
|
-
children: /* @__PURE__ */ jsx(
|
|
57
|
-
SlotProvider,
|
|
58
|
-
{
|
|
59
|
-
values: [
|
|
60
|
-
[HeadingContext, {
|
|
61
|
-
className: Popover_module_default["hop-Popover__title"],
|
|
62
|
-
size: "xs"
|
|
63
|
-
}],
|
|
64
|
-
[ButtonContext, {
|
|
65
|
-
size: "sm",
|
|
66
|
-
className: Popover_module_default["hop-Popover__action"]
|
|
67
|
-
}],
|
|
68
|
-
[ButtonGroupContext, {
|
|
69
|
-
size: "sm",
|
|
70
|
-
align: "end",
|
|
71
|
-
className: Popover_module_default["hop-Popover__actions"]
|
|
72
|
-
}],
|
|
73
|
-
[ContentContext, {
|
|
74
|
-
className: Popover_module_default["hop-Popover__content"]
|
|
75
|
-
}],
|
|
76
|
-
[FooterContext, {
|
|
77
|
-
className: Popover_module_default["hop-Popover__footer"]
|
|
78
|
-
}],
|
|
79
|
-
[LinkContext, {
|
|
80
|
-
size: "sm",
|
|
81
|
-
variant: "primary",
|
|
82
|
-
isQuiet: true
|
|
83
|
-
}]
|
|
84
|
-
],
|
|
85
|
-
children: isFunction(children) && !isNil(children) ? children(state) : children
|
|
86
|
-
}
|
|
87
|
-
)
|
|
88
|
-
}
|
|
89
|
-
) })
|
|
90
|
-
}
|
|
91
|
-
);
|
|
92
|
-
}
|
|
93
|
-
var _Popover = forwardRef(Popover);
|
|
94
|
-
_Popover.displayName = "Popover";
|
|
95
|
-
|
|
96
|
-
export { GlobalPopoverCssSelector, PopoverTrigger, _Popover };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|