@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
|
@@ -1,194 +1,23 @@
|
|
|
1
|
-
|
|
1
|
+
export { GlobalPasswordFieldCssSelector, _PasswordField as PasswordField } from '../../chunk-W2ZCHVKP.js';
|
|
2
|
+
import '../../chunk-QW45G6K4.js';
|
|
2
3
|
import '../../chunk-LJXTJRSB.js';
|
|
3
|
-
import '../../chunk-
|
|
4
|
+
import '../../chunk-ZMDHYGEP.js';
|
|
4
5
|
import '../../chunk-TXZ6BMFR.js';
|
|
5
|
-
import '../../chunk-
|
|
6
|
-
import '../../chunk-THCG3QCD.js';
|
|
7
|
-
import '../../chunk-H7VJS4MX.js';
|
|
8
|
-
import '../../chunk-6WWYES56.js';
|
|
9
|
-
import '../../chunk-EWMWQ2MC.js';
|
|
10
|
-
import '../../chunk-LCAS3YQV.js';
|
|
11
|
-
import '../../chunk-WWRB4K4M.js';
|
|
12
|
-
import '../../chunk-XLKYXKWE.js';
|
|
13
|
-
import '../../chunk-W2SKBBWE.js';
|
|
14
|
-
import '../../chunk-5MBJWRZD.js';
|
|
15
|
-
import '../../chunk-NKHMUPAP.js';
|
|
16
|
-
import '../../chunk-A7TZHALP.js';
|
|
17
|
-
import '../../chunk-T6VFQSII.js';
|
|
18
|
-
import '../../chunk-YHBJAXUY.js';
|
|
19
|
-
import '../../chunk-N77LTZ4U.js';
|
|
20
|
-
import '../../chunk-Y7HUXUHX.js';
|
|
21
|
-
import '../../chunk-D6UTDI2K.js';
|
|
22
|
-
import '../../chunk-GFHBDUJD.js';
|
|
23
|
-
import '../../chunk-BD53A2LL.js';
|
|
24
|
-
import '../../chunk-UYVKDU2W.js';
|
|
25
|
-
import '../../chunk-DGLAGYBD.js';
|
|
26
|
-
import '../../chunk-FU5CCPLP.js';
|
|
27
|
-
import '../../chunk-GXBVNCVP.js';
|
|
28
|
-
import '../../chunk-IXB2WK56.js';
|
|
29
|
-
import '../../chunk-TVFC2MJ4.js';
|
|
30
|
-
import '../../chunk-AQITZWYM.js';
|
|
31
|
-
import '../../chunk-I67NHYK4.js';
|
|
32
|
-
import { _InputGroup } from '../../chunk-GWEUWPLT.js';
|
|
6
|
+
import '../../chunk-YZRL7TXT.js';
|
|
33
7
|
import '../../chunk-6BFSSZCY.js';
|
|
34
|
-
import '../../chunk-
|
|
35
|
-
import '../../chunk-WTKIUAHI.js';
|
|
36
|
-
import '../../chunk-22YUFCHD.js';
|
|
37
|
-
import '../../chunk-IIZECZAH.js';
|
|
38
|
-
import '../../chunk-WFPCHFJI.js';
|
|
39
|
-
import '../../chunk-KQPY2D3P.js';
|
|
40
|
-
import { ErrorMessageContext } from '../../chunk-ACVMW6YD.js';
|
|
41
|
-
import { HelperMessageContext } from '../../chunk-ESVVLTEN.js';
|
|
42
|
-
import '../../chunk-ZGNK4GWA.js';
|
|
43
|
-
import '../../chunk-N7YDPVZL.js';
|
|
44
|
-
import '../../chunk-3LRBUQC2.js';
|
|
45
|
-
import '../../chunk-WDUQUPTE.js';
|
|
46
|
-
import '../../chunk-TM6742MU.js';
|
|
47
|
-
import '../../chunk-VJQ7M2BK.js';
|
|
48
|
-
import '../../chunk-P7JRKXBD.js';
|
|
49
|
-
import '../../chunk-DXVKHP4V.js';
|
|
50
|
-
import { _EmbeddedButton } from '../../chunk-F7S2I43Y.js';
|
|
8
|
+
import '../../chunk-4TJUYXYN.js';
|
|
51
9
|
import '../../chunk-O7IJYNVQ.js';
|
|
52
|
-
import '../../chunk-
|
|
53
|
-
import '../../chunk-
|
|
54
|
-
import '../../chunk-
|
|
55
|
-
import '../../chunk-
|
|
10
|
+
import '../../chunk-COBPJHIY.js';
|
|
11
|
+
import '../../chunk-YEYNRBMQ.js';
|
|
12
|
+
import '../../chunk-QCA3ZR56.js';
|
|
13
|
+
import '../../chunk-65JPI4FL.js';
|
|
14
|
+
import '../../chunk-HZKFQ33E.js';
|
|
15
|
+
import '../../chunk-FAE27DLF.js';
|
|
16
|
+
import '../../chunk-EBXHYPDU.js';
|
|
56
17
|
import '../../chunk-WPNVVGFW.js';
|
|
57
|
-
import '../../chunk-
|
|
58
|
-
import '../../chunk-LUAIMTPE.js';
|
|
59
|
-
import '../../chunk-H5YTU3U7.js';
|
|
60
|
-
import '../../chunk-NH3IVMXB.js';
|
|
61
|
-
import { useLocalizedString } from '../../chunk-H6CDFWVR.js';
|
|
62
|
-
import '../../chunk-BVGKXCQH.js';
|
|
63
|
-
import '../../chunk-5F5CWOM4.js';
|
|
64
|
-
import { LabelContext } from '../../chunk-QCA3ZR56.js';
|
|
65
|
-
import '../../chunk-4ZYV2XLW.js';
|
|
66
|
-
import '../../chunk-WMTWFKKP.js';
|
|
67
|
-
import '../../chunk-ANVMQBBG.js';
|
|
68
|
-
import '../../chunk-3OWQHIJ6.js';
|
|
69
|
-
import '../../chunk-KOA2CREJ.js';
|
|
70
|
-
import '../../chunk-ZWU6DRRZ.js';
|
|
71
|
-
import { composeClassnameRenderProps } from '../../chunk-65JPI4FL.js';
|
|
72
|
-
import '../../chunk-DHVVYSLB.js';
|
|
73
|
-
import '../../chunk-4VVNSXIB.js';
|
|
74
|
-
import '../../chunk-FYDLV5BM.js';
|
|
75
|
-
import '../../chunk-OPFRM3JC.js';
|
|
76
|
-
import '../../chunk-7Q7VIED2.js';
|
|
77
|
-
import { ClearContainerSlots } from '../../chunk-HXI3MEEK.js';
|
|
18
|
+
import '../../chunk-E7Y25WJE.js';
|
|
78
19
|
import '../../chunk-X6SER3TZ.js';
|
|
79
|
-
import '../../chunk-
|
|
80
|
-
import '../../chunk-
|
|
81
|
-
import '../../chunk-
|
|
82
|
-
import
|
|
83
|
-
import { SlotProvider } from '../../chunk-M36KANKC.js';
|
|
84
|
-
import '../../chunk-JWW56J7M.js';
|
|
85
|
-
import '../../chunk-NS3XVOQ7.js';
|
|
86
|
-
import '../../chunk-2P3A4VVY.js';
|
|
87
|
-
import { EyeVisibleIcon, EyeHiddenIcon } from '@hopper-ui/icons';
|
|
88
|
-
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
89
|
-
import { mergeRefs } from '@react-aria/utils';
|
|
90
|
-
import { forwardRef, useState } from 'react';
|
|
91
|
-
import { useObjectRef } from 'react-aria';
|
|
92
|
-
import { useContextProps, composeRenderProps, Input, TextField } from 'react-aria-components';
|
|
93
|
-
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
94
|
-
|
|
95
|
-
// css-module:./PasswordField.module.css#css-module
|
|
96
|
-
var PasswordField_module_default = { "hop-PasswordField": "PasswordField-module__hop-PasswordField___8hCMj", "hop-PasswordField--fluid": "PasswordField-module__hop-PasswordField--fluid___UkAS2", "hop-PasswordField__Label": "PasswordField-module__hop-PasswordField__Label___n-9uv", "hop-PasswordField__InputGroup": "PasswordField-module__hop-PasswordField__InputGroup___UdSgp", "hop-PasswordField__ErrorMessage": "PasswordField-module__hop-PasswordField__ErrorMessage___0yeQ8", "hop-PasswordField__HelperMessage": "PasswordField-module__hop-PasswordField__HelperMessage___YDEWX" };
|
|
97
|
-
var GlobalPasswordFieldCssSelector = "hop-PasswordField";
|
|
98
|
-
function PasswordField(props, ref) {
|
|
99
|
-
var _a;
|
|
100
|
-
const {
|
|
101
|
-
inputRef: userProvidedInputRef = null,
|
|
102
|
-
...propsWithoutRef
|
|
103
|
-
} = props;
|
|
104
|
-
[props, ref] = useContextProps(propsWithoutRef, ref, PasswordFieldContext);
|
|
105
|
-
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
106
|
-
const [showPassword, setShowPassword] = useState(false);
|
|
107
|
-
const stringFormatter = useLocalizedString();
|
|
108
|
-
const {
|
|
109
|
-
className,
|
|
110
|
-
style: styleProp,
|
|
111
|
-
size,
|
|
112
|
-
placeholder,
|
|
113
|
-
children,
|
|
114
|
-
isFluid: isFluidProp,
|
|
115
|
-
isDisabled,
|
|
116
|
-
isInvalid,
|
|
117
|
-
...otherProps
|
|
118
|
-
} = ownProps;
|
|
119
|
-
const inputRef = useObjectRef(mergeRefs(userProvidedInputRef, props.inputRef !== void 0 ? props.inputRef : null));
|
|
120
|
-
const isFluid = (_a = useResponsiveValue(isFluidProp)) != null ? _a : false;
|
|
121
|
-
const classNames = composeClassnameRenderProps(
|
|
122
|
-
className,
|
|
123
|
-
GlobalPasswordFieldCssSelector,
|
|
124
|
-
cssModule(
|
|
125
|
-
PasswordField_module_default,
|
|
126
|
-
"hop-PasswordField",
|
|
127
|
-
isFluid && "fluid"
|
|
128
|
-
),
|
|
129
|
-
stylingProps.className
|
|
130
|
-
);
|
|
131
|
-
const style = composeRenderProps(styleProp, (prev) => {
|
|
132
|
-
return {
|
|
133
|
-
...stylingProps.style,
|
|
134
|
-
...prev
|
|
135
|
-
};
|
|
136
|
-
});
|
|
137
|
-
const inputMarkup = /* @__PURE__ */ jsx(ClearContainerSlots, { children: /* @__PURE__ */ jsxs(
|
|
138
|
-
_InputGroup,
|
|
139
|
-
{
|
|
140
|
-
isDisabled,
|
|
141
|
-
isInvalid,
|
|
142
|
-
isFluid,
|
|
143
|
-
size,
|
|
144
|
-
className: PasswordField_module_default["hop-PasswordField__InputGroup"],
|
|
145
|
-
children: [
|
|
146
|
-
/* @__PURE__ */ jsx(Input, { ref: inputRef, placeholder, type: showPassword ? "text" : "password" }),
|
|
147
|
-
/* @__PURE__ */ jsx(
|
|
148
|
-
_EmbeddedButton,
|
|
149
|
-
{
|
|
150
|
-
isDisabled,
|
|
151
|
-
"aria-label": stringFormatter.format("PasswordField.toggleVisibility"),
|
|
152
|
-
onPress: () => {
|
|
153
|
-
setShowPassword((x) => !x);
|
|
154
|
-
},
|
|
155
|
-
size: "lg",
|
|
156
|
-
children: showPassword ? /* @__PURE__ */ jsx(EyeVisibleIcon, {}) : /* @__PURE__ */ jsx(EyeHiddenIcon, {})
|
|
157
|
-
}
|
|
158
|
-
)
|
|
159
|
-
]
|
|
160
|
-
}
|
|
161
|
-
) });
|
|
162
|
-
const childrenMarkup = composeRenderProps(children, (prev) => {
|
|
163
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
164
|
-
/* @__PURE__ */ jsx(
|
|
165
|
-
SlotProvider,
|
|
166
|
-
{
|
|
167
|
-
values: [
|
|
168
|
-
[LabelContext, { className: PasswordField_module_default["hop-PasswordField__Label"] }],
|
|
169
|
-
[HelperMessageContext, { className: PasswordField_module_default["hop-PasswordField__HelperMessage"] }],
|
|
170
|
-
[ErrorMessageContext, { className: PasswordField_module_default["hop-PasswordField__ErrorMessage"] }]
|
|
171
|
-
],
|
|
172
|
-
children: prev
|
|
173
|
-
}
|
|
174
|
-
),
|
|
175
|
-
inputMarkup
|
|
176
|
-
] });
|
|
177
|
-
});
|
|
178
|
-
return /* @__PURE__ */ jsx(
|
|
179
|
-
TextField,
|
|
180
|
-
{
|
|
181
|
-
ref,
|
|
182
|
-
style,
|
|
183
|
-
className: classNames,
|
|
184
|
-
isDisabled,
|
|
185
|
-
isInvalid,
|
|
186
|
-
...otherProps,
|
|
187
|
-
children: childrenMarkup
|
|
188
|
-
}
|
|
189
|
-
);
|
|
190
|
-
}
|
|
191
|
-
var _PasswordField = forwardRef(PasswordField);
|
|
192
|
-
_PasswordField.displayName = "PasswordField";
|
|
193
|
-
|
|
194
|
-
export { GlobalPasswordFieldCssSelector, _PasswordField as PasswordField };
|
|
20
|
+
import '../../chunk-HXI3MEEK.js';
|
|
21
|
+
import '../../chunk-M36KANKC.js';
|
|
22
|
+
import '../../chunk-KVDXQMWI.js';
|
|
23
|
+
import '../../chunk-JSBRDJBE.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { PasswordFieldContext } from '../../chunk-QW45G6K4.js';
|
|
2
|
-
import '../../chunk-
|
|
2
|
+
import '../../chunk-JSBRDJBE.js';
|