@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,9 +1,9 @@
|
|
|
1
|
-
import { RadioContext } from './chunk-FU5CCPLP.js';
|
|
2
1
|
import { RadioFieldContext } from './chunk-DGLAGYBD.js';
|
|
3
|
-
import {
|
|
2
|
+
import { RadioContext } from './chunk-FU5CCPLP.js';
|
|
4
3
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
5
|
-
import {
|
|
4
|
+
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
6
5
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
6
|
+
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
7
7
|
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
8
8
|
import clsx from 'clsx';
|
|
9
9
|
import { forwardRef } from 'react';
|
|
@@ -12,7 +12,7 @@ import { useContextProps } from 'react-aria-components';
|
|
|
12
12
|
import { jsx } from 'react/jsx-runtime';
|
|
13
13
|
|
|
14
14
|
// css-module:./RadioField.module.css#css-module
|
|
15
|
-
var RadioField_module_default = { "hop-RadioField": "RadioField-module__hop-
|
|
15
|
+
var RadioField_module_default = { "hop-RadioField": "RadioField-module__hop-RadioField___8QRjD", "hop-RadioField--sm": "RadioField-module__hop-RadioField--sm___X4Gkl", "hop-RadioField--md": "RadioField-module__hop-RadioField--md___Z451F", "hop-RadioField__description": "RadioField-module__hop-RadioField__description___SqBmM", "hop-RadioField__radio": "RadioField-module__hop-RadioField__radio___CfAFT" };
|
|
16
16
|
var GlobalRadioFieldCssSelector = "hop-RadioField";
|
|
17
17
|
var RadioToDescriptionSizeAdapter = {
|
|
18
18
|
sm: "xs",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
2
1
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
3
|
-
import {
|
|
2
|
+
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
4
3
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
4
|
+
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
5
5
|
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
6
6
|
import clsx from 'clsx';
|
|
7
7
|
import { forwardRef } from 'react';
|
|
@@ -9,7 +9,7 @@ import { useContextProps, Text as Text$1 } from 'react-aria-components';
|
|
|
9
9
|
import { jsx } from 'react/jsx-runtime';
|
|
10
10
|
|
|
11
11
|
// css-module:./Text.module.css#css-module
|
|
12
|
-
var Text_module_default = { "hop-Text": "Text-module__hop-
|
|
12
|
+
var Text_module_default = { "hop-Text": "Text-module__hop-Text___B7ZPi", "hop-Text--xs": "Text-module__hop-Text--xs___2lyVp", "hop-Text--sm": "Text-module__hop-Text--sm___ZJw0q", "hop-Text--md": "Text-module__hop-Text--md___JVXXA", "hop-Text--lg": "Text-module__hop-Text--lg___cL0LO", "hop-Text--xl": "Text-module__hop-Text--xl___KLn7g", "hop-Text--2xl": "Text-module__hop-Text--2xl___gb6mt", "hop-Text--inherit": "Text-module__hop-Text--inherit___-UFCW" };
|
|
13
13
|
var GlobalTextCssSelector = "hop-Text";
|
|
14
14
|
function Text(props, ref) {
|
|
15
15
|
[props, ref] = useContextProps(props, ref, TextContext);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { _OverlineText } from './chunk-
|
|
2
|
-
import { BadgeContext } from './chunk-
|
|
1
|
+
import { _OverlineText } from './chunk-K4ZGI7DJ.js';
|
|
2
|
+
import { BadgeContext } from './chunk-CQDLZ42T.js';
|
|
3
|
+
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
3
4
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
4
5
|
import { useStyledSystem } from '@hopper-ui/styled-system';
|
|
5
6
|
import clsx from 'clsx';
|
|
@@ -8,7 +9,7 @@ import { useContextProps } from 'react-aria-components';
|
|
|
8
9
|
import { jsx } from 'react/jsx-runtime';
|
|
9
10
|
|
|
10
11
|
// css-module:./Badge.module.css#css-module
|
|
11
|
-
var Badge_module_default = { "hop-Badge": "Badge-module__hop-
|
|
12
|
+
var Badge_module_default = { "hop-Badge": "Badge-module__hop-Badge___vobuo", "hop-Badge--primary": "Badge-module__hop-Badge--primary___qDeOA", "hop-Badge--secondary": "Badge-module__hop-Badge--secondary___jTHaT" };
|
|
12
13
|
var GlobalBadgeCssSelector = "hop-Badge";
|
|
13
14
|
function Badge(props, ref) {
|
|
14
15
|
[props, ref] = useContextProps(props, ref, BadgeContext);
|
|
@@ -36,7 +37,7 @@ function Badge(props, ref) {
|
|
|
36
37
|
...stylingProps.style,
|
|
37
38
|
...style
|
|
38
39
|
};
|
|
39
|
-
return /* @__PURE__ */ jsx(
|
|
40
|
+
return /* @__PURE__ */ jsx(ClearContainerSlots, { children: /* @__PURE__ */ jsx(
|
|
40
41
|
_OverlineText,
|
|
41
42
|
{
|
|
42
43
|
...otherProps,
|
|
@@ -48,7 +49,7 @@ function Badge(props, ref) {
|
|
|
48
49
|
"aria-disabled": isDisabled || void 0,
|
|
49
50
|
children
|
|
50
51
|
}
|
|
51
|
-
);
|
|
52
|
+
) });
|
|
52
53
|
}
|
|
53
54
|
var _Badge = forwardRef(Badge);
|
|
54
55
|
_Badge.displayName = "Badge";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { InputGroupContext } from './chunk-6BFSSZCY.js';
|
|
2
2
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
3
|
-
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
4
3
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
4
|
+
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
5
5
|
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
6
6
|
import { mergeRefs } from '@react-aria/utils';
|
|
7
7
|
import { forwardRef, useRef, useCallback } from 'react';
|
|
@@ -9,7 +9,7 @@ import { useContextProps, useSlottedContext, InputContext, composeRenderProps, G
|
|
|
9
9
|
import { jsx } from 'react/jsx-runtime';
|
|
10
10
|
|
|
11
11
|
// css-module:./InputGroup.module.css#css-module
|
|
12
|
-
var InputGroup_module_default = { "hop-InputGroup": "InputGroup-module__hop-
|
|
12
|
+
var InputGroup_module_default = { "hop-InputGroup": "InputGroup-module__hop-InputGroup___8-hBh", "hop-InputGroup--fluid": "InputGroup-module__hop-InputGroup--fluid___IhxFv", "hop-InputGroup--sm": "InputGroup-module__hop-InputGroup--sm___xBYVZ", "hop-InputGroup__input": "InputGroup-module__hop-InputGroup__input___8IwkG" };
|
|
13
13
|
var GlobalInputGroupCssSelector = "hop-InputGroup";
|
|
14
14
|
function InputGroup(props, ref) {
|
|
15
15
|
var _a, _b;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { useSlot } from './chunk-H5YTU3U7.js';
|
|
2
|
-
import { useRenderProps } from './chunk-NH3IVMXB.js';
|
|
3
|
-
import { useLocalizedString } from './chunk-H6CDFWVR.js';
|
|
4
|
-
import { _Spinner } from './chunk-Y7XWWUMU.js';
|
|
5
2
|
import { ButtonContext } from './chunk-WMTWFKKP.js';
|
|
3
|
+
import { _Spinner } from './chunk-G242LPQE.js';
|
|
4
|
+
import { useLocalizedString } from './chunk-ZOTVZM6F.js';
|
|
5
|
+
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
6
|
+
import { useRenderProps } from './chunk-NH3IVMXB.js';
|
|
6
7
|
import { isTextOnlyChildren } from './chunk-ZWU6DRRZ.js';
|
|
7
|
-
import {
|
|
8
|
+
import { IconListContext } from './chunk-DHVVYSLB.js';
|
|
9
|
+
import { _Text } from './chunk-RG4JKE4N.js';
|
|
8
10
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
9
|
-
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
10
|
-
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
11
11
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
12
|
-
import {
|
|
12
|
+
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
13
13
|
import { IconContext } from '@hopper-ui/icons';
|
|
14
14
|
import { slot, useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
15
15
|
import { chain, filterDOMProps, useRouter, shouldClientNavigate } from '@react-aria/utils';
|
|
@@ -19,7 +19,7 @@ import { useContextProps, ButtonContext as ButtonContext$1, composeRenderProps,
|
|
|
19
19
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
20
20
|
|
|
21
21
|
// css-module:./Button.module.css#css-module
|
|
22
|
-
var Button_module_default = { "hop-Button": "Button-module__hop-
|
|
22
|
+
var Button_module_default = { "hop-Button": "Button-module__hop-Button___6Jiki", "hop-Button--icon-only": "Button-module__hop-Button--icon-only___y4CMb", "hop-Button--fluid": "Button-module__hop-Button--fluid___amZH5", "hop-Button--sm": "Button-module__hop-Button--sm___3GNbY", "hop-Button--primary": "Button-module__hop-Button--primary___7PQ3v", "hop-Button--md": "Button-module__hop-Button--md___jB89G", "hop-Button--secondary": "Button-module__hop-Button--secondary___M28Qu", "hop-Button--upsell": "Button-module__hop-Button--upsell___kpJX6", "hop-Button--danger": "Button-module__hop-Button--danger___3zlGc", "hop-Button--ghost-danger": "Button-module__hop-Button--ghost-danger___Lm-JJ", "hop-Button--ghost-secondary": "Button-module__hop-Button--ghost-secondary___5s8pM", "hop-Button--ghost-primary": "Button-module__hop-Button--ghost-primary___exZqP", "hop-Button__Spinner": "Button-module__hop-Button__Spinner___4F-DD", "hop-Button__icon": "Button-module__hop-Button__icon___2A2PD", "hop-Button__icon-list": "Button-module__hop-Button__icon-list___Zttas", "hop-Button__text": "Button-module__hop-Button__text___Wa9pk", "hop-Button__end-icon": "Button-module__hop-Button__end-icon___471ZI", "hop-Button__end-icon-list": "Button-module__hop-Button__end-icon-list___WAbW6" };
|
|
23
23
|
var GlobalButtonCssSelector = "hop-Button";
|
|
24
24
|
var additionalButtonHTMLAttributes = /* @__PURE__ */ new Set(["form", "formAction", "formEncType", "formMethod", "formNoValidate", "formTarget", "name", "value"]);
|
|
25
25
|
function useSimulatedRACButton(props, ref) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { SwitchFieldContext } from './chunk-H7VJS4MX.js';
|
|
2
2
|
import { SwitchContext } from './chunk-YHBJAXUY.js';
|
|
3
3
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
4
|
-
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
5
4
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
5
|
+
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
6
6
|
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
7
7
|
import clsx from 'clsx';
|
|
8
8
|
import { forwardRef } from 'react';
|
|
@@ -11,7 +11,7 @@ import { useContextProps } from 'react-aria-components';
|
|
|
11
11
|
import { jsx } from 'react/jsx-runtime';
|
|
12
12
|
|
|
13
13
|
// css-module:./SwitchField.module.css#css-module
|
|
14
|
-
var SwitchField_module_default = { "hop-SwitchField": "SwitchField-module__hop-
|
|
14
|
+
var SwitchField_module_default = { "hop-SwitchField": "SwitchField-module__hop-SwitchField___w3L7V", "hop-SwitchField--sm": "SwitchField-module__hop-SwitchField--sm___xSnx9", "hop-SwitchField--md": "SwitchField-module__hop-SwitchField--md___lEJk0", "hop-SwitchField__description": "SwitchField-module__hop-SwitchField__description___qqhZZ", "hop-SwitchField__switch": "SwitchField-module__hop-SwitchField__switch___sDRnX" };
|
|
15
15
|
var GlobalSwitchFieldCssSelector = "hop-SwitchField";
|
|
16
16
|
var SwitchToDescriptionSizeAdapter = {
|
|
17
17
|
sm: "xs",
|
|
@@ -10,7 +10,9 @@ var require_en_US = __commonJS({
|
|
|
10
10
|
"ClearButton.clearAriaLabel": `Clear`,
|
|
11
11
|
"Input.charactersLeft": (args, formatter) => `${formatter.plural(args.charLeft, { "=0": `No characters left`, one: () => `${formatter.number(args.charLeft)} character left`, other: () => `${formatter.number(args.charLeft)} characters left` })}.`,
|
|
12
12
|
"PasswordField.toggleVisibility": `Toggle password visibility`,
|
|
13
|
-
"Tag.removeAriaLabel": `Remove
|
|
13
|
+
"Tag.removeAriaLabel": `Remove`,
|
|
14
|
+
"ListBoxItem.loadingTextValue": `Loading Item`,
|
|
15
|
+
"ListBoxItem.indicatorAriaLabel": `List Item Selection Indicator`
|
|
14
16
|
};
|
|
15
17
|
}
|
|
16
18
|
});
|
|
@@ -24,7 +26,9 @@ var require_fr_CA = __commonJS({
|
|
|
24
26
|
"ClearButton.clearAriaLabel": `Effacer`,
|
|
25
27
|
"Input.charactersLeft": (args, formatter) => `${formatter.plural(args.charLeft, { "=0": `Aucun caract\xE8re restant`, one: () => `${formatter.number(args.charLeft)} caract\xE8re restant`, other: () => `${formatter.number(args.charLeft)} caract\xE8res restants` })}.`,
|
|
26
28
|
"PasswordField.toggleVisibility": `Basculer la visibilit\xE9 du mot de passe`,
|
|
27
|
-
"Tag.removeAriaLabel": `Supprimer
|
|
29
|
+
"Tag.removeAriaLabel": `Supprimer`,
|
|
30
|
+
"ListBoxItem.loadingTextValue": `\xC9l\xE9ment en cours de chargement`,
|
|
31
|
+
"ListBoxItem.indicatorAriaLabel": `Indicateur de s\xE9lection d'\xE9l\xE9ment de liste`
|
|
28
32
|
};
|
|
29
33
|
}
|
|
30
34
|
});
|
package/dist/i18n/src/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { useLocalizedString } from '../../chunk-
|
|
1
|
+
export { useLocalizedString } from '../../chunk-ZOTVZM6F.js';
|
|
2
2
|
import '../../chunk-2P3A4VVY.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { useLocalizedString } from '../../chunk-
|
|
1
|
+
export { useLocalizedString } from '../../chunk-ZOTVZM6F.js';
|
|
2
2
|
import '../../chunk-2P3A4VVY.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* css-module:/home/runner/work/wl-hopper/wl-hopper/packages/components/src/inputs/src/InputGroup.module.css/#css-module-data */
|
|
2
|
-
.InputGroup-module__hop-
|
|
2
|
+
.InputGroup-module__hop-InputGroup___8-hBh {
|
|
3
3
|
--hop-InputGroup-background: var(--hop-neutral-surface);
|
|
4
4
|
--hop-InputGroup-border-color: var(--hop-neutral-border);
|
|
5
5
|
--hop-InputGroup-border-width: 0.0625rem;
|
|
@@ -47,27 +47,27 @@
|
|
|
47
47
|
border: var(--border);
|
|
48
48
|
border-radius: var(--hop-InputGroup-border-radius);
|
|
49
49
|
}
|
|
50
|
-
.InputGroup-module__hop-InputGroup--
|
|
50
|
+
.InputGroup-module__hop-InputGroup--fluid___IhxFv {
|
|
51
51
|
--inline-size: 100% ;
|
|
52
52
|
}
|
|
53
|
-
.InputGroup-module__hop-InputGroup--
|
|
53
|
+
.InputGroup-module__hop-InputGroup--sm___xBYVZ {
|
|
54
54
|
--block-size: var(--hop-InputGroup-sm-block-size);
|
|
55
55
|
}
|
|
56
|
-
.InputGroup-module__hop-
|
|
56
|
+
.InputGroup-module__hop-InputGroup___8-hBh[data-hovered] {
|
|
57
57
|
--background: var(--hop-InputGroup-background-hover);
|
|
58
58
|
--border: var(--hop-InputGroup-border-width) solid var(--hop-InputGroup-border-color-hover) ;
|
|
59
59
|
}
|
|
60
|
-
.InputGroup-module__hop-
|
|
60
|
+
.InputGroup-module__hop-InputGroup___8-hBh[data-focus-within] {
|
|
61
61
|
--border: var(--hop-InputGroup-border-width) solid var(--hop-InputGroup-border-color-focus) ;
|
|
62
62
|
}
|
|
63
|
-
.InputGroup-module__hop-
|
|
63
|
+
.InputGroup-module__hop-InputGroup___8-hBh[data-invalid] {
|
|
64
64
|
--border: var(--hop-InputGroup-border-width) solid var(--hop-InputGroup-border-color-invalid) ;
|
|
65
65
|
}
|
|
66
|
-
.InputGroup-module__hop-
|
|
66
|
+
.InputGroup-module__hop-InputGroup___8-hBh[data-disabled] {
|
|
67
67
|
--background: var(--hop-InputGroup-background-disabled);
|
|
68
68
|
--border: 0.0625rem solid var(--hop-InputGroup-border-color-disabled) ;
|
|
69
69
|
}
|
|
70
|
-
.InputGroup-module__hop-
|
|
70
|
+
.InputGroup-module__hop-InputGroup__input___8IwkG {
|
|
71
71
|
--input-font-family: var(--hop-InputGroup-input-md-font-family);
|
|
72
72
|
--input-font-size: var(--hop-InputGroup-input-md-font-size);
|
|
73
73
|
--input-font-weight: var(--hop-InputGroup-input-md-font-weight);
|
|
@@ -89,23 +89,23 @@
|
|
|
89
89
|
border: none;
|
|
90
90
|
outline: none;
|
|
91
91
|
}
|
|
92
|
-
.InputGroup-module__hop-InputGroup--
|
|
92
|
+
.InputGroup-module__hop-InputGroup--fluid___IhxFv .InputGroup-module__hop-InputGroup__input___8IwkG {
|
|
93
93
|
--input-inline-size: 100%;
|
|
94
94
|
}
|
|
95
|
-
.InputGroup-module__hop-InputGroup--
|
|
95
|
+
.InputGroup-module__hop-InputGroup--sm___xBYVZ .InputGroup-module__hop-InputGroup__input___8IwkG {
|
|
96
96
|
--input-font-family: var(--hop-InputGroup-input-sm-font-family);
|
|
97
97
|
--input-font-size: var(--hop-InputGroup-input-sm-font-size);
|
|
98
98
|
--input-font-weight: var(--hop-InputGroup-input-sm-font-weight);
|
|
99
99
|
--input-line-height: var(--hop-InputGroup-input-sm-line-height);
|
|
100
100
|
--input-block-size: var(--hop-InputGroup-input-sm-block-size);
|
|
101
101
|
}
|
|
102
|
-
.InputGroup-module__hop-
|
|
102
|
+
.InputGroup-module__hop-InputGroup__input___8IwkG::placeholder {
|
|
103
103
|
font-family: var(--hop-InputGroup-placeholder-font-family);
|
|
104
104
|
font-size: var(--hop-InputGroup-placeholder-font-size);
|
|
105
105
|
font-weight: var(--hop-InputGroup-placeholder-font-weight);
|
|
106
106
|
line-height: var(--hop-InputGroup-placeholder-line-height);
|
|
107
107
|
color: var(--input-placeholder-color);
|
|
108
108
|
}
|
|
109
|
-
.InputGroup-module__hop-
|
|
109
|
+
.InputGroup-module__hop-InputGroup__input___8IwkG[data-disabled]::placeholder {
|
|
110
110
|
--input-placeholder-color: var(--hop-InputGroup-placeholder-color-disabled);
|
|
111
111
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { GlobalInputGroupCssSelector, _InputGroup as InputGroup } from '../../chunk-
|
|
1
|
+
export { GlobalInputGroupCssSelector, _InputGroup as InputGroup } from '../../chunk-V5GOY6TV.js';
|
|
2
2
|
import '../../chunk-6BFSSZCY.js';
|
|
3
3
|
import '../../chunk-65JPI4FL.js';
|
|
4
|
-
import '../../chunk-KVDXQMWI.js';
|
|
5
4
|
import '../../chunk-M36KANKC.js';
|
|
5
|
+
import '../../chunk-KVDXQMWI.js';
|
|
6
6
|
import '../../chunk-2P3A4VVY.js';
|