@hopper-ui/components 1.0.4 → 1.0.6
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 +13 -0
- package/README.md +3 -0
- package/dist/Avatar/src/AnonymousAvatar.css +69 -0
- package/dist/Avatar/src/AnonymousAvatar.d.ts +29 -0
- package/dist/Avatar/src/AnonymousAvatar.js +7 -0
- package/dist/Avatar/src/Avatar.css +265 -0
- package/dist/Avatar/src/Avatar.d.ts +60 -0
- package/dist/Avatar/src/Avatar.js +11 -0
- package/dist/Avatar/src/AvatarContext.d.ts +12 -0
- package/dist/Avatar/src/AvatarContext.js +2 -0
- package/dist/Avatar/src/DeletedAvatar.css +69 -0
- package/dist/Avatar/src/DeletedAvatar.d.ts +29 -0
- package/dist/Avatar/src/DeletedAvatar.js +7 -0
- package/dist/Avatar/src/RichIconAvatarImage.css +69 -0
- package/dist/Avatar/src/RichIconAvatarImage.d.ts +32 -0
- package/dist/Avatar/src/RichIconAvatarImage.js +5 -0
- package/dist/Avatar/src/RichIconAvatarImageContext.d.ts +14 -0
- package/dist/Avatar/src/RichIconAvatarImageContext.js +2 -0
- package/dist/Avatar/src/index.css +265 -0
- package/dist/Avatar/src/index.d.ts +14 -0
- package/dist/Avatar/src/index.js +13 -0
- package/dist/Avatar/src/useImageFallback.d.ts +34 -0
- package/dist/Avatar/src/useImageFallback.js +2 -0
- package/dist/{badge → Badge}/src/Badge.css +11 -11
- package/dist/{badge → Badge}/src/Badge.d.ts +1 -1
- package/dist/{badge → Badge}/src/Badge.js +4 -3
- package/dist/Badge/src/BadgeContext.js +2 -0
- package/dist/{badge → Badge}/src/index.css +11 -11
- package/dist/{badge → Badge}/src/index.js +4 -3
- 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 +5 -5
- package/dist/ErrorMessage/src/ErrorMessageContext.js +2 -0
- package/dist/{errorMessage → ErrorMessage}/src/index.css +12 -12
- package/dist/{errorMessage → ErrorMessage}/src/index.js +5 -5
- 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 +5 -5
- package/dist/HelperMessage/src/HelperMessageContext.js +2 -0
- package/dist/{helperMessage → HelperMessage}/src/index.css +12 -12
- package/dist/{helperMessage → HelperMessage}/src/index.js +5 -5
- package/dist/HopperProvider/src/HopperProvider.d.ts +1 -1
- package/dist/HopperProvider/src/HopperProvider.js +1 -1
- package/dist/HopperProvider/src/index.js +1 -1
- package/dist/IconList/src/IconList.css +1 -1
- package/dist/IconList/src/IconList.js +2 -2
- 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/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 +3 -3
- package/dist/Spinner/src/index.css +19 -19
- package/dist/Spinner/src/index.js +3 -3
- package/dist/buttons/src/Button.css +103 -103
- package/dist/buttons/src/Button.d.ts +2 -2
- package/dist/buttons/src/Button.js +12 -12
- package/dist/buttons/src/ButtonGroup.css +11 -11
- package/dist/buttons/src/ButtonGroup.js +3 -3
- package/dist/buttons/src/ClearButton.css +12 -12
- package/dist/buttons/src/ClearButton.js +4 -4
- package/dist/buttons/src/EmbeddedButton.css +12 -12
- package/dist/buttons/src/EmbeddedButton.js +2 -2
- package/dist/buttons/src/index.css +126 -126
- package/dist/buttons/src/index.js +16 -16
- package/dist/checkbox/src/Checkbox.css +81 -96
- 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/CheckboxField.css +15 -15
- package/dist/checkbox/src/CheckboxField.js +2 -2
- package/dist/checkbox/src/CheckboxGroup.css +118 -133
- package/dist/checkbox/src/CheckboxGroup.js +4 -4
- package/dist/checkbox/src/index.css +118 -133
- package/dist/checkbox/src/index.js +10 -10
- package/dist/{chunk-BGESEKEN.js → chunk-2XUHTPCX.js} +13 -7
- package/dist/{chunk-FGDSWA7S.js → chunk-37NW34QM.js} +5 -5
- package/dist/{chunk-F7HR3VI4.js → chunk-3A6TTZAA.js} +2 -2
- package/dist/{chunk-LSVXKVG4.js → chunk-3LH2JHUO.js} +4 -4
- package/dist/{chunk-ZAJJD5FY.js → chunk-4JAV3FIH.js} +6 -6
- package/dist/chunk-4TXFHYHL.js +52 -0
- package/dist/{chunk-OMBQ3J4O.js → chunk-53FHDOG7.js} +13 -7
- package/dist/chunk-5H5AZJPQ.js +7 -0
- package/dist/{chunk-WTKIUAHI.js → chunk-632B5YBQ.js} +1 -1
- package/dist/{chunk-XSASR6CK.js → chunk-6QMIRVLY.js} +2 -2
- package/dist/chunk-7JOGKC3W.js +7 -0
- package/dist/chunk-AES7QBQE.js +7 -0
- package/dist/chunk-BC5A7RHI.js +1260 -0
- package/dist/{chunk-HDYG2F3D.js → chunk-BKC74M6Y.js} +3 -3
- package/dist/{chunk-ZSFJVMJN.js → chunk-CQDLZ42T.js} +1 -1
- package/dist/chunk-E4ALW4MZ.js +250 -0
- package/dist/chunk-E4WFKXW4.js +161 -0
- package/dist/{chunk-PEPKE5SW.js → chunk-F2URSFJA.js} +5 -5
- package/dist/{chunk-ACVMW6YD.js → chunk-FAE27DLF.js} +1 -1
- package/dist/chunk-FYIHMKHI.js +7 -0
- package/dist/{chunk-Y7XWWUMU.js → chunk-G242LPQE.js} +2 -2
- package/dist/chunk-GFHBDUJD.js +17 -0
- package/dist/{chunk-2CKDJG6R.js → chunk-HR25MLRP.js} +1 -1
- package/dist/{chunk-ESVVLTEN.js → chunk-HZKFQ33E.js} +1 -1
- package/dist/chunk-I4VPBQI7.js +7 -0
- package/dist/chunk-ITQK6JTD.js +81 -0
- package/dist/chunk-J33IFG4U.js +46 -0
- package/dist/chunk-J53HGLCT.js +49 -0
- package/dist/{chunk-PDYU6DNF.js → chunk-JRDN364E.js} +5 -5
- package/dist/chunk-JTNMFPM4.js +41 -0
- package/dist/chunk-JUMJ6A3K.js +46 -0
- package/dist/chunk-JWW56J7M.js +7 -0
- package/dist/{chunk-BCHUEONM.js → chunk-K4ZGI7DJ.js} +1 -1
- package/dist/chunk-L5A2UTQV.js +43 -0
- package/dist/{chunk-6MSYEF4W.js → chunk-MED2BIDV.js} +2 -2
- package/dist/{chunk-QJBQRYJS.js → chunk-MVRI6GLQ.js} +3 -3
- package/dist/{chunk-Z3ID4UEE.js → chunk-N77LTZ4U.js} +3 -15
- package/dist/{chunk-ANVMQBBG.js → chunk-NMKBUGSO.js} +12 -1
- package/dist/chunk-NS3XVOQ7.js +53 -0
- package/dist/chunk-O5PTD6IN.js +41 -0
- package/dist/{chunk-5GRWAXTT.js → chunk-OHB5QR5P.js} +2 -2
- package/dist/chunk-OKZYR4RF.js +7 -0
- package/dist/{chunk-GBABMUAI.js → chunk-P5CWOV3L.js} +3 -3
- package/dist/{chunk-RCFB4SN4.js → chunk-QBCCF2C2.js} +6 -6
- package/dist/chunk-RA7PM75O.js +142 -0
- package/dist/{chunk-TSXPLL55.js → chunk-RCX5B3S3.js} +4 -4
- package/dist/{chunk-WGDP4ECF.js → chunk-RG4JKE4N.js} +3 -3
- package/dist/{chunk-LRXYIR2A.js → chunk-SOSHKMNI.js} +6 -5
- package/dist/chunk-UIEP5BA5.js +7 -0
- package/dist/{chunk-DZTMUFVC.js → chunk-V5GOY6TV.js} +2 -2
- package/dist/{chunk-Y3L6TPP3.js → chunk-XGKPMLYD.js} +8 -8
- package/dist/{chunk-N745TDH5.js → chunk-XRC7XE6B.js} +2 -2
- package/dist/chunk-Y2POLIXK.js +7 -0
- package/dist/{chunk-H6CDFWVR.js → chunk-ZOTVZM6F.js} +6 -2
- package/dist/i18n/src/index.js +1 -1
- package/dist/i18n/src/useLocalizedString.js +1 -1
- package/dist/inputs/src/InputGroup.css +12 -12
- package/dist/inputs/src/InputGroup.js +2 -2
- package/dist/inputs/src/PasswordField.css +1340 -570
- package/dist/inputs/src/PasswordField.js +80 -164
- package/dist/inputs/src/SearchField.css +1325 -576
- package/dist/inputs/src/SearchField.d.ts +2 -2
- package/dist/inputs/src/SearchField.js +80 -164
- package/dist/inputs/src/TextField.css +1337 -571
- package/dist/inputs/src/TextField.js +79 -56
- package/dist/inputs/src/index.css +1237 -471
- package/dist/inputs/src/index.d.ts +4 -0
- package/dist/inputs/src/index.js +79 -56
- package/dist/layout/src/Grid.d.ts +2 -22
- package/dist/layout/src/Grid.js +1 -1
- package/dist/layout/src/grid-helpers.d.ts +24 -0
- package/dist/layout/src/grid-helpers.js +2 -0
- package/dist/overlays/Popover/src/Popover.css +1480 -639
- package/dist/overlays/Popover/src/Popover.d.ts +5 -6
- package/dist/overlays/Popover/src/Popover.js +80 -54
- package/dist/overlays/Popover/src/PopoverContext.d.ts +1 -2
- 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 +1480 -639
- package/dist/overlays/Popover/src/index.d.ts +3 -2
- package/dist/overlays/Popover/src/index.js +80 -54
- package/dist/radio/src/Radio.css +69 -81
- 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/RadioField.css +15 -15
- package/dist/radio/src/RadioField.js +4 -4
- package/dist/radio/src/RadioGroup.css +106 -118
- package/dist/radio/src/RadioGroup.js +5 -5
- package/dist/radio/src/index.css +106 -118
- package/dist/radio/src/index.js +11 -11
- package/dist/switch/src/Switch.css +27 -28
- package/dist/switch/src/Switch.js +6 -6
- package/dist/switch/src/SwitchField.css +15 -15
- package/dist/switch/src/SwitchField.js +2 -2
- package/dist/switch/src/index.css +33 -34
- package/dist/switch/src/index.js +7 -7
- package/dist/tag/src/Tag.css +1550 -633
- package/dist/tag/src/Tag.js +80 -52
- package/dist/tag/src/TagGroup.css +30 -30
- package/dist/tag/src/TagGroup.js +5 -5
- package/dist/tag/src/index.css +1550 -633
- package/dist/tag/src/index.js +80 -52
- package/dist/typography/Heading/src/Heading.css +1439 -522
- package/dist/typography/Heading/src/Heading.js +80 -52
- package/dist/typography/Heading/src/index.css +1439 -522
- package/dist/typography/Heading/src/index.js +80 -52
- package/dist/typography/Label/src/Label.css +9 -9
- package/dist/typography/Label/src/Label.js +1 -1
- package/dist/typography/Label/src/index.css +9 -9
- package/dist/typography/Label/src/index.js +1 -1
- package/dist/typography/OverlineText/src/OverlineText.css +6 -6
- package/dist/typography/OverlineText/src/OverlineText.js +1 -1
- package/dist/typography/OverlineText/src/index.css +6 -6
- package/dist/typography/OverlineText/src/index.js +1 -1
- package/dist/typography/Text/src/Text.css +9 -9
- package/dist/typography/Text/src/Text.js +3 -3
- package/dist/typography/Text/src/index.css +9 -9
- package/dist/typography/Text/src/index.js +3 -3
- package/dist/utils/src/index.d.ts +1 -1
- package/dist/utils/src/index.js +3 -3
- package/dist/utils/src/types.d.ts +16 -1
- package/package.json +5 -4
- package/dist/badge/src/BadgeContext.js +0 -2
- package/dist/chip/src/ChipContext.js +0 -2
- package/dist/chunk-CPWTHZGJ.js +0 -156
- package/dist/chunk-LJXTJRSB.js +0 -1
- package/dist/chunk-SWMFTL46.js +0 -373
- package/dist/chunk-TR7YX3IZ.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,186 +1,102 @@
|
|
|
1
|
-
|
|
2
|
-
import '../../chunk-
|
|
3
|
-
import '../../chunk-SWMFTL46.js';
|
|
1
|
+
export { GlobalPasswordFieldCssSelector, _PasswordField as PasswordField } from '../../chunk-BC5A7RHI.js';
|
|
2
|
+
import '../../chunk-I4VPBQI7.js';
|
|
4
3
|
import '../../chunk-TXZ6BMFR.js';
|
|
5
|
-
import '../../chunk-
|
|
6
|
-
import '../../chunk-FGDSWA7S.js';
|
|
7
|
-
import '../../chunk-EWMWQ2MC.js';
|
|
8
|
-
import '../../chunk-LCAS3YQV.js';
|
|
4
|
+
import '../../chunk-SC6ZK5ON.js';
|
|
9
5
|
import '../../chunk-WWRB4K4M.js';
|
|
10
|
-
import '../../chunk-
|
|
11
|
-
import '../../chunk-PDYU6DNF.js';
|
|
12
|
-
import '../../chunk-5MBJWRZD.js';
|
|
13
|
-
import '../../chunk-NKHMUPAP.js';
|
|
14
|
-
import '../../chunk-A7TZHALP.js';
|
|
15
|
-
import '../../chunk-ZAJJD5FY.js';
|
|
16
|
-
import '../../chunk-N745TDH5.js';
|
|
6
|
+
import '../../chunk-XRC7XE6B.js';
|
|
17
7
|
import '../../chunk-H7VJS4MX.js';
|
|
8
|
+
import '../../chunk-37NW34QM.js';
|
|
9
|
+
import '../../chunk-XLKYXKWE.js';
|
|
10
|
+
import '../../chunk-EWMWQ2MC.js';
|
|
11
|
+
import '../../chunk-LCAS3YQV.js';
|
|
12
|
+
import '../../chunk-RCX5B3S3.js';
|
|
13
|
+
import '../../chunk-4JAV3FIH.js';
|
|
18
14
|
import '../../chunk-YHBJAXUY.js';
|
|
19
|
-
import '../../chunk-
|
|
15
|
+
import '../../chunk-AQITZWYM.js';
|
|
16
|
+
import '../../chunk-I67NHYK4.js';
|
|
17
|
+
import '../../chunk-N77LTZ4U.js';
|
|
20
18
|
import '../../chunk-Y7HUXUHX.js';
|
|
21
19
|
import '../../chunk-D6UTDI2K.js';
|
|
22
|
-
import '../../chunk-
|
|
23
|
-
import '../../chunk-
|
|
24
|
-
import '../../chunk-
|
|
25
|
-
import '../../chunk-DGLAGYBD.js';
|
|
20
|
+
import '../../chunk-GFHBDUJD.js';
|
|
21
|
+
import '../../chunk-3NKF5TPD.js';
|
|
22
|
+
import '../../chunk-O4XPUINW.js';
|
|
26
23
|
import '../../chunk-GXBVNCVP.js';
|
|
27
24
|
import '../../chunk-IXB2WK56.js';
|
|
28
25
|
import '../../chunk-TVFC2MJ4.js';
|
|
29
|
-
import '../../chunk-
|
|
30
|
-
import '../../chunk-I67NHYK4.js';
|
|
31
|
-
import { _InputGroup } from '../../chunk-DZTMUFVC.js';
|
|
26
|
+
import '../../chunk-V5GOY6TV.js';
|
|
32
27
|
import '../../chunk-6BFSSZCY.js';
|
|
33
|
-
import '../../chunk-
|
|
34
|
-
import '../../chunk-
|
|
35
|
-
import '../../chunk-
|
|
36
|
-
import '../../chunk-GBABMUAI.js';
|
|
37
|
-
import '../../chunk-XSASR6CK.js';
|
|
38
|
-
import '../../chunk-LSVXKVG4.js';
|
|
39
|
-
import { ErrorMessageContext } from '../../chunk-ACVMW6YD.js';
|
|
40
|
-
import { HelperMessageContext } from '../../chunk-ESVVLTEN.js';
|
|
28
|
+
import '../../chunk-QW45G6K4.js';
|
|
29
|
+
import '../../chunk-6QMIRVLY.js';
|
|
30
|
+
import '../../chunk-3LH2JHUO.js';
|
|
41
31
|
import '../../chunk-ZGNK4GWA.js';
|
|
42
32
|
import '../../chunk-N7YDPVZL.js';
|
|
43
33
|
import '../../chunk-3LRBUQC2.js';
|
|
44
34
|
import '../../chunk-WDUQUPTE.js';
|
|
45
|
-
import '../../chunk-
|
|
35
|
+
import '../../chunk-XGKPMLYD.js';
|
|
36
|
+
import '../../chunk-H5YTU3U7.js';
|
|
37
|
+
import '../../chunk-BKC74M6Y.js';
|
|
38
|
+
import '../../chunk-WMTWFKKP.js';
|
|
46
39
|
import '../../chunk-VJQ7M2BK.js';
|
|
47
|
-
import '../../chunk-
|
|
40
|
+
import '../../chunk-OHB5QR5P.js';
|
|
48
41
|
import '../../chunk-DXVKHP4V.js';
|
|
49
|
-
import
|
|
42
|
+
import '../../chunk-MED2BIDV.js';
|
|
50
43
|
import '../../chunk-O7IJYNVQ.js';
|
|
51
|
-
import '../../chunk-
|
|
44
|
+
import '../../chunk-O5PTD6IN.js';
|
|
45
|
+
import '../../chunk-G242LPQE.js';
|
|
46
|
+
import '../../chunk-HR25MLRP.js';
|
|
47
|
+
import '../../chunk-4ZYV2XLW.js';
|
|
48
|
+
import '../../chunk-RA7PM75O.js';
|
|
49
|
+
import '../../chunk-TIPN4VYD.js';
|
|
50
|
+
import '../../chunk-JTNMFPM4.js';
|
|
51
|
+
import '../../chunk-5H5AZJPQ.js';
|
|
52
|
+
import '../../chunk-UIEP5BA5.js';
|
|
53
|
+
import '../../chunk-E4ALW4MZ.js';
|
|
54
|
+
import '../../chunk-JRDN364E.js';
|
|
55
|
+
import '../../chunk-DGLAGYBD.js';
|
|
56
|
+
import '../../chunk-5MBJWRZD.js';
|
|
57
|
+
import '../../chunk-NKHMUPAP.js';
|
|
58
|
+
import '../../chunk-A7TZHALP.js';
|
|
59
|
+
import '../../chunk-2XUHTPCX.js';
|
|
60
|
+
import '../../chunk-FU5CCPLP.js';
|
|
61
|
+
import '../../chunk-53FHDOG7.js';
|
|
52
62
|
import '../../chunk-2EAZPH3M.js';
|
|
53
|
-
import '../../chunk-
|
|
54
|
-
import '../../chunk-
|
|
55
|
-
import '../../chunk-
|
|
56
|
-
import '../../chunk-
|
|
57
|
-
import '../../chunk-
|
|
58
|
-
import '../../chunk-
|
|
63
|
+
import '../../chunk-ZOTVZM6F.js';
|
|
64
|
+
import '../../chunk-QCA3ZR56.js';
|
|
65
|
+
import '../../chunk-Y2POLIXK.js';
|
|
66
|
+
import '../../chunk-4TXFHYHL.js';
|
|
67
|
+
import '../../chunk-OKZYR4RF.js';
|
|
68
|
+
import '../../chunk-NMKBUGSO.js';
|
|
69
|
+
import '../../chunk-3A6TTZAA.js';
|
|
70
|
+
import '../../chunk-QBCCF2C2.js';
|
|
71
|
+
import '../../chunk-4VVNSXIB.js';
|
|
72
|
+
import '../../chunk-65JPI4FL.js';
|
|
73
|
+
import '../../chunk-MVRI6GLQ.js';
|
|
59
74
|
import '../../chunk-NH3IVMXB.js';
|
|
60
|
-
import
|
|
61
|
-
import '../../chunk-
|
|
62
|
-
import '../../chunk-
|
|
63
|
-
import
|
|
64
|
-
import '../../chunk-
|
|
65
|
-
import '../../chunk-
|
|
66
|
-
import '../../chunk-
|
|
67
|
-
import '../../chunk-
|
|
68
|
-
import '../../chunk-
|
|
75
|
+
import '../../chunk-FAE27DLF.js';
|
|
76
|
+
import '../../chunk-L5A2UTQV.js';
|
|
77
|
+
import '../../chunk-7JOGKC3W.js';
|
|
78
|
+
import '../../chunk-P5CWOV3L.js';
|
|
79
|
+
import '../../chunk-HZKFQ33E.js';
|
|
80
|
+
import '../../chunk-SOSHKMNI.js';
|
|
81
|
+
import '../../chunk-K4ZGI7DJ.js';
|
|
82
|
+
import '../../chunk-WPNVVGFW.js';
|
|
83
|
+
import '../../chunk-CQDLZ42T.js';
|
|
84
|
+
import '../../chunk-F2URSFJA.js';
|
|
69
85
|
import '../../chunk-ZWU6DRRZ.js';
|
|
70
|
-
import '../../chunk-WGDP4ECF.js';
|
|
71
|
-
import { ClearContainerSlots } from '../../chunk-HXI3MEEK.js';
|
|
72
|
-
import '../../chunk-X6SER3TZ.js';
|
|
73
|
-
import { composeClassnameRenderProps } from '../../chunk-65JPI4FL.js';
|
|
74
|
-
import { cssModule } from '../../chunk-KVDXQMWI.js';
|
|
75
|
-
import { SlotProvider } from '../../chunk-M36KANKC.js';
|
|
76
86
|
import '../../chunk-DHVVYSLB.js';
|
|
77
|
-
import '../../chunk-
|
|
87
|
+
import '../../chunk-632B5YBQ.js';
|
|
88
|
+
import '../../chunk-J53HGLCT.js';
|
|
89
|
+
import '../../chunk-FYIHMKHI.js';
|
|
90
|
+
import '../../chunk-JUMJ6A3K.js';
|
|
91
|
+
import '../../chunk-E4WFKXW4.js';
|
|
92
|
+
import '../../chunk-RG4JKE4N.js';
|
|
93
|
+
import '../../chunk-X6SER3TZ.js';
|
|
94
|
+
import '../../chunk-HXI3MEEK.js';
|
|
95
|
+
import '../../chunk-J33IFG4U.js';
|
|
96
|
+
import '../../chunk-AES7QBQE.js';
|
|
97
|
+
import '../../chunk-ITQK6JTD.js';
|
|
98
|
+
import '../../chunk-M36KANKC.js';
|
|
99
|
+
import '../../chunk-KVDXQMWI.js';
|
|
100
|
+
import '../../chunk-JWW56J7M.js';
|
|
101
|
+
import '../../chunk-NS3XVOQ7.js';
|
|
78
102
|
import '../../chunk-2P3A4VVY.js';
|
|
79
|
-
import { EyeVisibleIcon, EyeHiddenIcon } from '@hopper-ui/icons';
|
|
80
|
-
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
81
|
-
import { mergeRefs } from '@react-aria/utils';
|
|
82
|
-
import { forwardRef, useState } from 'react';
|
|
83
|
-
import { useObjectRef } from 'react-aria';
|
|
84
|
-
import { useContextProps, composeRenderProps, Input, TextField } from 'react-aria-components';
|
|
85
|
-
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
86
|
-
|
|
87
|
-
// css-module:./PasswordField.module.css#css-module
|
|
88
|
-
var PasswordField_module_default = { "hop-PasswordField": "PasswordField-module__hop-PasswordField___mJRFd", "hop-PasswordField--fluid": "PasswordField-module__hop-PasswordField--fluid___q--tB", "hop-PasswordField__Label": "PasswordField-module__hop-PasswordField__Label___0pyUY", "hop-PasswordField__InputGroup": "PasswordField-module__hop-PasswordField__InputGroup___cr3zO", "hop-PasswordField__ErrorMessage": "PasswordField-module__hop-PasswordField__ErrorMessage___Wn5v5", "hop-PasswordField__HelperMessage": "PasswordField-module__hop-PasswordField__HelperMessage___cnVKd" };
|
|
89
|
-
var GlobalPasswordFieldCssSelector = "hop-PasswordField";
|
|
90
|
-
function PasswordField(props, ref) {
|
|
91
|
-
var _a;
|
|
92
|
-
const {
|
|
93
|
-
inputRef: userProvidedInputRef = null,
|
|
94
|
-
...propsWithoutRef
|
|
95
|
-
} = props;
|
|
96
|
-
[props, ref] = useContextProps(propsWithoutRef, ref, PasswordFieldContext);
|
|
97
|
-
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
98
|
-
const [showPassword, setShowPassword] = useState(false);
|
|
99
|
-
const stringFormatter = useLocalizedString();
|
|
100
|
-
const {
|
|
101
|
-
className,
|
|
102
|
-
style: styleProp,
|
|
103
|
-
size,
|
|
104
|
-
placeholder,
|
|
105
|
-
children,
|
|
106
|
-
isFluid: isFluidProp,
|
|
107
|
-
isDisabled,
|
|
108
|
-
isInvalid,
|
|
109
|
-
...otherProps
|
|
110
|
-
} = ownProps;
|
|
111
|
-
const inputRef = useObjectRef(mergeRefs(userProvidedInputRef, props.inputRef !== void 0 ? props.inputRef : null));
|
|
112
|
-
const isFluid = (_a = useResponsiveValue(isFluidProp)) != null ? _a : false;
|
|
113
|
-
const classNames = composeClassnameRenderProps(
|
|
114
|
-
className,
|
|
115
|
-
GlobalPasswordFieldCssSelector,
|
|
116
|
-
cssModule(
|
|
117
|
-
PasswordField_module_default,
|
|
118
|
-
"hop-PasswordField",
|
|
119
|
-
isFluid && "fluid"
|
|
120
|
-
),
|
|
121
|
-
stylingProps.className
|
|
122
|
-
);
|
|
123
|
-
const style = composeRenderProps(styleProp, (prev) => {
|
|
124
|
-
return {
|
|
125
|
-
...stylingProps.style,
|
|
126
|
-
...prev
|
|
127
|
-
};
|
|
128
|
-
});
|
|
129
|
-
const inputMarkup = /* @__PURE__ */ jsx(ClearContainerSlots, { children: /* @__PURE__ */ jsxs(
|
|
130
|
-
_InputGroup,
|
|
131
|
-
{
|
|
132
|
-
isDisabled,
|
|
133
|
-
isInvalid,
|
|
134
|
-
isFluid,
|
|
135
|
-
size,
|
|
136
|
-
className: PasswordField_module_default["hop-PasswordField__InputGroup"],
|
|
137
|
-
children: [
|
|
138
|
-
/* @__PURE__ */ jsx(Input, { ref: inputRef, placeholder, type: showPassword ? "text" : "password" }),
|
|
139
|
-
/* @__PURE__ */ jsx(
|
|
140
|
-
_EmbeddedButton,
|
|
141
|
-
{
|
|
142
|
-
isDisabled,
|
|
143
|
-
"aria-label": stringFormatter.format("PasswordField.toggleVisibility"),
|
|
144
|
-
onPress: () => {
|
|
145
|
-
setShowPassword((x) => !x);
|
|
146
|
-
},
|
|
147
|
-
size: "lg",
|
|
148
|
-
children: showPassword ? /* @__PURE__ */ jsx(EyeVisibleIcon, {}) : /* @__PURE__ */ jsx(EyeHiddenIcon, {})
|
|
149
|
-
}
|
|
150
|
-
)
|
|
151
|
-
]
|
|
152
|
-
}
|
|
153
|
-
) });
|
|
154
|
-
const childrenMarkup = composeRenderProps(children, (prev) => {
|
|
155
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
156
|
-
/* @__PURE__ */ jsx(
|
|
157
|
-
SlotProvider,
|
|
158
|
-
{
|
|
159
|
-
values: [
|
|
160
|
-
[LabelContext, { className: PasswordField_module_default["hop-PasswordField__Label"] }],
|
|
161
|
-
[HelperMessageContext, { className: PasswordField_module_default["hop-PasswordField__HelperMessage"] }],
|
|
162
|
-
[ErrorMessageContext, { className: PasswordField_module_default["hop-PasswordField__ErrorMessage"] }]
|
|
163
|
-
],
|
|
164
|
-
children: prev
|
|
165
|
-
}
|
|
166
|
-
),
|
|
167
|
-
inputMarkup
|
|
168
|
-
] });
|
|
169
|
-
});
|
|
170
|
-
return /* @__PURE__ */ jsx(
|
|
171
|
-
TextField,
|
|
172
|
-
{
|
|
173
|
-
ref,
|
|
174
|
-
style,
|
|
175
|
-
className: classNames,
|
|
176
|
-
isDisabled,
|
|
177
|
-
isInvalid,
|
|
178
|
-
...otherProps,
|
|
179
|
-
children: childrenMarkup
|
|
180
|
-
}
|
|
181
|
-
);
|
|
182
|
-
}
|
|
183
|
-
var _PasswordField = forwardRef(PasswordField);
|
|
184
|
-
_PasswordField.displayName = "PasswordField";
|
|
185
|
-
|
|
186
|
-
export { GlobalPasswordFieldCssSelector, _PasswordField as PasswordField };
|