@hopper-ui/components 1.1.0 → 1.2.1
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 +18 -0
- package/README.md +1 -1
- package/dist/Avatar/src/AnonymousAvatar.css +10 -10
- package/dist/Avatar/src/AnonymousAvatar.js +2 -2
- package/dist/Avatar/src/Avatar.css +37 -37
- package/dist/Avatar/src/Avatar.js +3 -3
- package/dist/Avatar/src/AvatarContext.d.ts +1 -1
- package/dist/Avatar/src/DeletedAvatar.css +10 -10
- package/dist/Avatar/src/DeletedAvatar.js +2 -2
- package/dist/Avatar/src/RichIconAvatarImage.css +10 -10
- package/dist/Avatar/src/RichIconAvatarImage.js +1 -1
- package/dist/Avatar/src/index.css +37 -37
- package/dist/Avatar/src/index.js +5 -5
- package/dist/Badge/src/Badge.css +10 -10
- package/dist/Badge/src/Badge.js +2 -2
- package/dist/Badge/src/index.css +10 -10
- package/dist/Badge/src/index.js +2 -2
- package/dist/Divider/src/Divider.css +2 -2
- package/dist/Divider/src/Divider.js +1 -1
- package/dist/Divider/src/index.css +2 -2
- package/dist/Divider/src/index.js +1 -1
- package/dist/ErrorMessage/src/ErrorMessage.css +11 -11
- package/dist/ErrorMessage/src/ErrorMessage.js +2 -2
- package/dist/ErrorMessage/src/index.css +11 -11
- package/dist/ErrorMessage/src/index.js +2 -2
- package/dist/Form/src/Form.css +4111 -0
- package/dist/Form/src/Form.d.ts +28 -0
- package/dist/Form/src/Form.js +114 -0
- package/dist/Form/src/FormContext.d.ts +8 -0
- package/dist/Form/src/FormContext.js +2 -0
- package/dist/Form/src/index.css +4111 -0
- package/dist/Form/src/index.d.ts +5 -0
- package/dist/Form/src/index.js +114 -0
- package/dist/HelperMessage/src/HelperMessage.css +11 -11
- package/dist/HelperMessage/src/HelperMessage.js +2 -2
- package/dist/HelperMessage/src/index.css +11 -11
- package/dist/HelperMessage/src/index.js +2 -2
- package/dist/IconList/src/IconList.css +1 -1
- package/dist/IconList/src/IconList.js +1 -1
- package/dist/IconList/src/index.css +1 -1
- package/dist/IconList/src/index.js +1 -1
- package/dist/Link/src/Link.css +31 -31
- package/dist/Link/src/Link.js +3 -3
- package/dist/Link/src/index.css +31 -31
- package/dist/Link/src/index.js +3 -3
- package/dist/ListBox/src/ListBox.css +369 -169
- package/dist/ListBox/src/ListBox.js +13 -12
- package/dist/ListBox/src/ListBoxItem.css +425 -225
- package/dist/ListBox/src/ListBoxItem.js +10 -9
- package/dist/ListBox/src/ListBoxItemSkeleton.css +7 -7
- package/dist/ListBox/src/ListBoxItemSkeleton.js +1 -1
- package/dist/ListBox/src/index.css +369 -169
- package/dist/ListBox/src/index.js +13 -12
- package/dist/Spinner/src/Spinner.css +19 -19
- package/dist/Spinner/src/Spinner.js +2 -2
- package/dist/Spinner/src/index.css +19 -19
- package/dist/Spinner/src/index.js +2 -2
- package/dist/buttons/src/Button.css +94 -94
- package/dist/buttons/src/Button.js +6 -6
- package/dist/buttons/src/ButtonGroup.css +11 -11
- package/dist/buttons/src/ButtonGroup.js +1 -1
- package/dist/buttons/src/ClearButton.css +375 -28
- package/dist/buttons/src/ClearButton.js +3 -3
- package/dist/buttons/src/EmbeddedButton.css +375 -28
- package/dist/buttons/src/EmbeddedButton.d.ts +9 -0
- package/dist/buttons/src/EmbeddedButton.js +1 -1
- package/dist/buttons/src/index.css +480 -133
- package/dist/buttons/src/index.js +9 -9
- package/dist/checkbox/src/Checkbox.css +31 -31
- package/dist/checkbox/src/Checkbox.js +3 -3
- package/dist/checkbox/src/CheckboxField.css +15 -15
- package/dist/checkbox/src/CheckboxField.js +1 -1
- package/dist/checkbox/src/CheckboxGroup.css +62 -59
- package/dist/checkbox/src/CheckboxGroup.js +1 -1
- package/dist/checkbox/src/index.css +62 -59
- package/dist/checkbox/src/index.js +6 -6
- package/dist/{chunk-UMD6RDUS.js → chunk-2DPE3H3G.js} +1 -1
- package/dist/{chunk-BLQ72S4U.js → chunk-462UBJV3.js} +1 -1
- package/dist/{chunk-KA6KVIVV.js → chunk-4APVXEPA.js} +3 -3
- package/dist/{chunk-RD6VCI72.js → chunk-4H7PKEMJ.js} +20 -8
- package/dist/{chunk-BGRKDTCG.js → chunk-55AWCUQF.js} +1 -1
- package/dist/{chunk-QY6U3R3W.js → chunk-6WKRP4MN.js} +3 -2
- package/dist/{chunk-WAUGFWZA.js → chunk-AGRQ7UGN.js} +2 -2
- package/dist/{chunk-Q52NUBN7.js → chunk-BN32T6QQ.js} +2 -2
- package/dist/{chunk-I6OII2RA.js → chunk-C7XRB2J6.js} +3 -3
- package/dist/{chunk-FQO2QRSC.js → chunk-CSE22YXO.js} +1 -1
- package/dist/{chunk-ICDMJUNE.js → chunk-CXWMHWSS.js} +1 -1
- package/dist/{chunk-TGXZJJJA.js → chunk-DZKJZSTQ.js} +6 -2
- package/dist/chunk-EURJK4ZT.js +7 -0
- package/dist/{chunk-GXFFLWNF.js → chunk-F47GZGT7.js} +1 -1
- package/dist/{chunk-YEYNRBMQ.js → chunk-F4H76S4H.js} +6 -2
- package/dist/{chunk-VVY3ONWS.js → chunk-F4KQUFXI.js} +1 -1
- package/dist/{chunk-VFYGHX3N.js → chunk-IUFABTFZ.js} +1 -1
- package/dist/chunk-J6YYPRGY.js +150 -0
- package/dist/chunk-J7BXE7WN.js +172 -0
- package/dist/{chunk-6MSRPPI6.js → chunk-K7DU4YR4.js} +1 -1
- package/dist/{chunk-XHZ4R2MB.js → chunk-LXCCS4SA.js} +4 -4
- package/dist/{chunk-6CDXS774.js → chunk-MFFXNI66.js} +6 -6
- package/dist/{chunk-YE7RARJB.js → chunk-MX5BW5VE.js} +1 -1
- package/dist/{chunk-BXPZ6HPC.js → chunk-PUNJWQAN.js} +142 -159
- package/dist/{chunk-TKB5Q2WX.js → chunk-QGC3OX7W.js} +1 -1
- package/dist/{chunk-GCJT5PQ4.js → chunk-RLDQEH6F.js} +7 -5
- package/dist/{chunk-TVV4RMFR.js → chunk-RYZNMKWB.js} +1 -1
- package/dist/{chunk-PQV24MM4.js → chunk-SPFANCCV.js} +3 -3
- package/dist/{chunk-ZNGSZW7M.js → chunk-T7QJEHL7.js} +3 -3
- package/dist/{chunk-YRUBXLBX.js → chunk-TFELIWJO.js} +6 -3
- package/dist/{chunk-6PH4IIEW.js → chunk-THUFFPGX.js} +1 -1
- package/dist/{chunk-P7UUQGGF.js → chunk-TM4R5NO7.js} +2 -2
- package/dist/{chunk-6K6W32Q7.js → chunk-VQC5F6I7.js} +6 -4
- package/dist/{chunk-AT7ZY6GA.js → chunk-WQSVNGFJ.js} +1 -1
- package/dist/{chunk-SR3GAXY5.js → chunk-WYBQCRQB.js} +2 -2
- package/dist/{chunk-XGI4LDIF.js → chunk-XI3BX2TP.js} +4 -4
- package/dist/chunk-XUCH26RT.js +70 -0
- package/dist/{chunk-CXCOSGTO.js → chunk-YWIDJ55Q.js} +4 -2
- package/dist/{chunk-BQZQTNI6.js → chunk-YXD3IR3T.js} +1 -1
- package/dist/{chunk-A7HLXFSP.js → chunk-ZEXXNE5U.js} +9 -7
- package/dist/{chunk-TMWNNF4J.js → chunk-ZPPQJKHC.js} +3 -3
- package/dist/i18n/src/index.js +1 -1
- package/dist/i18n/src/useLocalizedString.js +1 -1
- package/dist/index.css +1521 -694
- package/dist/index.d.ts +5 -3
- package/dist/index.js +47 -45
- package/dist/inputs/src/InputGroup.css +14 -14
- package/dist/inputs/src/InputGroup.d.ts +2 -1
- package/dist/inputs/src/InputGroup.js +1 -1
- package/dist/inputs/src/NumberField.css +65 -62
- package/dist/inputs/src/NumberField.d.ts +1 -0
- package/dist/inputs/src/NumberField.js +18 -173
- package/dist/inputs/src/PasswordField.css +524 -174
- package/dist/inputs/src/PasswordField.d.ts +1 -0
- package/dist/inputs/src/PasswordField.js +9 -9
- package/dist/inputs/src/SearchField.css +530 -180
- package/dist/inputs/src/SearchField.d.ts +1 -0
- package/dist/inputs/src/SearchField.js +10 -10
- package/dist/inputs/src/TextArea.css +59 -56
- package/dist/inputs/src/TextArea.js +8 -8
- package/dist/inputs/src/TextField.css +525 -175
- package/dist/inputs/src/TextField.d.ts +2 -0
- package/dist/inputs/src/TextField.js +11 -11
- package/dist/inputs/src/index.css +694 -205
- package/dist/inputs/src/index.d.ts +2 -0
- package/dist/inputs/src/index.js +17 -14
- package/dist/overlays/Popover/src/Popover.css +1521 -694
- package/dist/overlays/Popover/src/Popover.js +47 -45
- package/dist/overlays/Popover/src/index.css +1521 -694
- package/dist/overlays/Popover/src/index.js +47 -45
- package/dist/radio/src/Radio.css +31 -31
- package/dist/radio/src/Radio.js +3 -3
- package/dist/radio/src/RadioField.css +15 -15
- package/dist/radio/src/RadioField.js +1 -1
- package/dist/radio/src/RadioGroup.css +62 -59
- package/dist/radio/src/RadioGroup.js +1 -1
- package/dist/radio/src/index.css +62 -59
- package/dist/radio/src/index.js +6 -6
- package/dist/switch/src/Switch.css +25 -25
- package/dist/switch/src/Switch.js +3 -3
- package/dist/switch/src/SwitchField.css +15 -15
- package/dist/switch/src/SwitchField.js +1 -1
- package/dist/switch/src/index.css +31 -31
- package/dist/switch/src/index.js +4 -4
- package/dist/tag/src/Tag.css +1041 -2332
- package/dist/tag/src/Tag.d.ts +6 -1
- package/dist/tag/src/Tag.js +7 -99
- package/dist/tag/src/TagGroup.css +24 -21
- package/dist/tag/src/TagGroup.d.ts +7 -2
- package/dist/tag/src/TagGroup.js +1 -1
- package/dist/tag/src/index.css +1104 -2296
- package/dist/tag/src/index.js +9 -94
- package/dist/typography/Heading/src/Heading.css +9 -9
- package/dist/typography/Heading/src/Heading.js +1 -1
- package/dist/typography/Heading/src/index.css +9 -9
- package/dist/typography/Heading/src/index.js +1 -1
- package/dist/typography/Label/src/Label.css +5 -2
- package/dist/typography/Label/src/Label.d.ts +8 -0
- package/dist/typography/Label/src/Label.js +2 -1
- package/dist/typography/Label/src/index.css +5 -2
- package/dist/typography/Label/src/index.js +2 -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 +1 -1
- package/dist/typography/Text/src/index.css +9 -9
- package/dist/typography/Text/src/index.js +1 -1
- package/dist/utils/src/index.js +1 -1
- package/package.json +3 -3
- package/dist/Chip/src/Chip.css +0 -261
- package/dist/Chip/src/Chip.d.ts +0 -27
- package/dist/Chip/src/Chip.js +0 -10
- package/dist/Chip/src/ChipContext.d.ts +0 -10
- package/dist/Chip/src/ChipContext.js +0 -2
- package/dist/Chip/src/index.css +0 -261
- package/dist/Chip/src/index.d.ts +0 -7
- package/dist/Chip/src/index.js +0 -10
- package/dist/chunk-632B5YBQ.js +0 -7
- package/dist/chunk-7VS566A2.js +0 -43
- package/dist/chunk-OETAIO6N.js +0 -105
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AvatarContext } from './chunk-AES7QBQE.js';
|
|
2
|
-
import { _RichIconAvatarImage } from './chunk-
|
|
2
|
+
import { _RichIconAvatarImage } from './chunk-THUFFPGX.js';
|
|
3
3
|
import { DeletedUserRichIcon } from '@hopper-ui/icons';
|
|
4
4
|
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
5
5
|
import clsx from 'clsx';
|
|
@@ -9,7 +9,7 @@ import { useContextProps, composeRenderProps, Button } from 'react-aria-componen
|
|
|
9
9
|
import { jsx } from 'react/jsx-runtime';
|
|
10
10
|
|
|
11
11
|
// css-module:./EmbeddedButton.module.css#css-module
|
|
12
|
-
var EmbeddedButton_module_default = { "hop-EmbeddedButton": "EmbeddedButton-module__hop-
|
|
12
|
+
var EmbeddedButton_module_default = { "hop-EmbeddedButton": "EmbeddedButton-module__hop-EmbeddedButton___BR2tE", "hop-EmbeddedButton--md": "EmbeddedButton-module__hop-EmbeddedButton--md___-cQfW", "hop-EmbeddedButton--lg": "EmbeddedButton-module__hop-EmbeddedButton--lg___NGhbV", "hop-EmbeddedButton--neutral": "EmbeddedButton-module__hop-EmbeddedButton--neutral___vcdy2", "hop-EmbeddedButton--subdued": "EmbeddedButton-module__hop-EmbeddedButton--subdued___oZwBg", "hop-EmbeddedButton--progress": "EmbeddedButton-module__hop-EmbeddedButton--progress___rYnCU", "hop-EmbeddedButton--positive": "EmbeddedButton-module__hop-EmbeddedButton--positive___oxHkr", "hop-EmbeddedButton--caution": "EmbeddedButton-module__hop-EmbeddedButton--caution___-k3Mi", "hop-EmbeddedButton--negative": "EmbeddedButton-module__hop-EmbeddedButton--negative___foo-0", "hop-EmbeddedButton--option1": "EmbeddedButton-module__hop-EmbeddedButton--option1___CQod-", "hop-EmbeddedButton--option2": "EmbeddedButton-module__hop-EmbeddedButton--option2___B9Yky", "hop-EmbeddedButton--option3": "EmbeddedButton-module__hop-EmbeddedButton--option3___vhwNL", "hop-EmbeddedButton--option4": "EmbeddedButton-module__hop-EmbeddedButton--option4___-Ht34", "hop-EmbeddedButton--option5": "EmbeddedButton-module__hop-EmbeddedButton--option5___dCb-s", "hop-EmbeddedButton--option6": "EmbeddedButton-module__hop-EmbeddedButton--option6___JJJlT", "hop-EmbeddedButton__icon": "EmbeddedButton-module__hop-EmbeddedButton__icon___LTuRz" };
|
|
13
13
|
var GlobalEmbeddedButtonCssSelector = "hop-EmbeddedButton";
|
|
14
14
|
function EmbeddedButton(props, ref) {
|
|
15
15
|
var _a;
|
|
@@ -19,8 +19,10 @@ function EmbeddedButton(props, ref) {
|
|
|
19
19
|
className,
|
|
20
20
|
size: sizeProp,
|
|
21
21
|
isDisabled,
|
|
22
|
+
isSelected = false,
|
|
22
23
|
style: styleProp,
|
|
23
24
|
children,
|
|
25
|
+
variant = "neutral",
|
|
24
26
|
...otherProps
|
|
25
27
|
} = ownProps;
|
|
26
28
|
const size = (_a = useResponsiveValue(sizeProp)) != null ? _a : "md";
|
|
@@ -30,7 +32,8 @@ function EmbeddedButton(props, ref) {
|
|
|
30
32
|
cssModule(
|
|
31
33
|
EmbeddedButton_module_default,
|
|
32
34
|
"hop-EmbeddedButton",
|
|
33
|
-
size
|
|
35
|
+
size,
|
|
36
|
+
variant
|
|
34
37
|
),
|
|
35
38
|
stylingProps.className
|
|
36
39
|
);
|
|
@@ -56,6 +59,7 @@ function EmbeddedButton(props, ref) {
|
|
|
56
59
|
className: classNames,
|
|
57
60
|
style,
|
|
58
61
|
isDisabled,
|
|
62
|
+
"data-selected": isSelected || void 0,
|
|
59
63
|
...otherProps,
|
|
60
64
|
children
|
|
61
65
|
}
|
|
@@ -7,7 +7,7 @@ import { useContextProps, Heading as Heading$1 } from 'react-aria-components';
|
|
|
7
7
|
import { jsx } from 'react/jsx-runtime';
|
|
8
8
|
|
|
9
9
|
// css-module:./Heading.module.css#css-module
|
|
10
|
-
var Heading_module_default = { "hop-Heading": "Heading-module__hop-
|
|
10
|
+
var Heading_module_default = { "hop-Heading": "Heading-module__hop-Heading___uAJ5h", "hop-Heading--xs": "Heading-module__hop-Heading--xs___GM0hn", "hop-Heading--sm": "Heading-module__hop-Heading--sm___jvfjH", "hop-Heading--md": "Heading-module__hop-Heading--md___8sUov", "hop-Heading--lg": "Heading-module__hop-Heading--lg___AaXUx", "hop-Heading--xl": "Heading-module__hop-Heading--xl___V5Rgs", "hop-Heading--2xl": "Heading-module__hop-Heading--2xl___21pHk", "hop-Heading--3xl": "Heading-module__hop-Heading--3xl___Z-RFz" };
|
|
11
11
|
var GlobalHeadingCssSelector = "hop-Heading";
|
|
12
12
|
function Heading(props, ref) {
|
|
13
13
|
[props, ref] = useContextProps(props, ref, HeadingContext);
|
|
@@ -12,7 +12,9 @@ var require_en_US = __commonJS({
|
|
|
12
12
|
"PasswordField.toggleVisibility": `Toggle password visibility`,
|
|
13
13
|
"Tag.removeAriaLabel": `Remove`,
|
|
14
14
|
"ListBoxItem.loadingTextValue": `Loading Item`,
|
|
15
|
-
"ListBoxItem.indicatorAriaLabel": `List Item Selection Indicator
|
|
15
|
+
"ListBoxItem.indicatorAriaLabel": `List Item Selection Indicator`,
|
|
16
|
+
"Label.necessityLabel.required": `Required`,
|
|
17
|
+
"Label.necessityLabel.optional": `Optional`
|
|
16
18
|
};
|
|
17
19
|
}
|
|
18
20
|
});
|
|
@@ -28,7 +30,9 @@ var require_fr_CA = __commonJS({
|
|
|
28
30
|
"PasswordField.toggleVisibility": `Basculer la visibilit\xE9 du mot de passe`,
|
|
29
31
|
"Tag.removeAriaLabel": `Supprimer`,
|
|
30
32
|
"ListBoxItem.loadingTextValue": `\xC9l\xE9ment en cours de chargement`,
|
|
31
|
-
"ListBoxItem.indicatorAriaLabel": `Indicateur de s\xE9lection d'\xE9l\xE9ment de liste
|
|
33
|
+
"ListBoxItem.indicatorAriaLabel": `Indicateur de s\xE9lection d'\xE9l\xE9ment de liste`,
|
|
34
|
+
"Label.necessityLabel.required": `Obligatoire`,
|
|
35
|
+
"Label.necessityLabel.optional": `Facultatif`
|
|
32
36
|
};
|
|
33
37
|
}
|
|
34
38
|
});
|
|
@@ -14,7 +14,7 @@ import { useContextProps, composeRenderProps, RadioGroup as RadioGroup$1 } from
|
|
|
14
14
|
import { jsx } from 'react/jsx-runtime';
|
|
15
15
|
|
|
16
16
|
// css-module:./RadioGroup.module.css#css-module
|
|
17
|
-
var RadioGroup_module_default = { "hop-RadioGroup": "RadioGroup-module__hop-
|
|
17
|
+
var RadioGroup_module_default = { "hop-RadioGroup": "RadioGroup-module__hop-RadioGroup___uUMYg", "hop-RadioGroup--bordered": "RadioGroup-module__hop-RadioGroup--bordered___GS69Y", "hop-RadioGroup--sm": "RadioGroup-module__hop-RadioGroup--sm___aaj9S", "hop-RadioGroup--md": "RadioGroup-module__hop-RadioGroup--md___GZDza", "hop-RadioGroup__label": "RadioGroup-module__hop-RadioGroup__label___6FEgv", "hop-RadioGroup__list": "RadioGroup-module__hop-RadioGroup__list___ram8I", "hop-RadioGroup__radio": "RadioGroup-module__hop-RadioGroup__radio___Wg80N", "hop-RadioGroup__error-message": "RadioGroup-module__hop-RadioGroup__error-message___xY86-", "hop-RadioGroup__helper-message": "RadioGroup-module__hop-RadioGroup__helper-message___vidfD" };
|
|
18
18
|
var GlobalRadioGroupCssSelector = "hop-RadioGroup";
|
|
19
19
|
function RadioGroup(props, ref) {
|
|
20
20
|
var _a, _b;
|
|
@@ -7,7 +7,7 @@ import { useContextProps, Separator } from 'react-aria-components';
|
|
|
7
7
|
import { jsx } from 'react/jsx-runtime';
|
|
8
8
|
|
|
9
9
|
// css-module:./Divider.module.css#css-module
|
|
10
|
-
var Divider_module_default = { "hop-Divider": "Divider-module__hop-
|
|
10
|
+
var Divider_module_default = { "hop-Divider": "Divider-module__hop-Divider___jOTOX", "hop-Divider--vertical": "Divider-module__hop-Divider--vertical___8HYrb" };
|
|
11
11
|
var GlobalDividerCssSelector = "hop-Divider";
|
|
12
12
|
function Divider(props, ref) {
|
|
13
13
|
[props, ref] = useContextProps(props, ref, DividerContext);
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import { TagContext } from './chunk-EWMWQ2MC.js';
|
|
2
|
+
import { _ClearButton } from './chunk-WYBQCRQB.js';
|
|
3
|
+
import { _Spinner } from './chunk-AGRQ7UGN.js';
|
|
4
|
+
import { useLocalizedString } from './chunk-F4H76S4H.js';
|
|
5
|
+
import { isTextOnlyChildren } from './chunk-ZWU6DRRZ.js';
|
|
6
|
+
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
7
|
+
import { IconListContext } from './chunk-DHVVYSLB.js';
|
|
8
|
+
import { BadgeContext } from './chunk-CQDLZ42T.js';
|
|
9
|
+
import { _Text } from './chunk-K7DU4YR4.js';
|
|
10
|
+
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
11
|
+
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
12
|
+
import { AvatarContext } from './chunk-AES7QBQE.js';
|
|
13
|
+
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
14
|
+
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
15
|
+
import { IconContext } from '@hopper-ui/icons';
|
|
16
|
+
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
17
|
+
import { forwardRef } from 'react';
|
|
18
|
+
import { useContextProps, composeRenderProps, Tag as Tag$1 } from 'react-aria-components';
|
|
19
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
20
|
+
|
|
21
|
+
// css-module:./Tag.module.css#css-module
|
|
22
|
+
var Tag_module_default = { "hop-Tag": "Tag-module__hop-Tag___ny25M", "hop-Tag--sm": "Tag-module__hop-Tag--sm___8HZnL", "hop-Tag__remove-btn": "Tag-module__hop-Tag__remove-btn___t3dDt", "hop-Tag__Spinner": "Tag-module__hop-Tag__Spinner___ElUBi", "hop-Tag__avatar": "Tag-module__hop-Tag__avatar___iBocm", "hop-Tag--md": "Tag-module__hop-Tag--md___I7jIl", "hop-Tag--lg": "Tag-module__hop-Tag--lg___qi94e", "hop-Tag--neutral": "Tag-module__hop-Tag--neutral___sFxLb", "hop-Tag--subdued": "Tag-module__hop-Tag--subdued___8gdRL", "hop-Tag--progress": "Tag-module__hop-Tag--progress___NnhA5", "hop-Tag--positive": "Tag-module__hop-Tag--positive___H8sFB", "hop-Tag--caution": "Tag-module__hop-Tag--caution___yiUVc", "hop-Tag--negative": "Tag-module__hop-Tag--negative___Kx5BK", "hop-Tag--option1": "Tag-module__hop-Tag--option1___y-QlT", "hop-Tag--option2": "Tag-module__hop-Tag--option2___eupOO", "hop-Tag--option3": "Tag-module__hop-Tag--option3___HdIm3", "hop-Tag--option4": "Tag-module__hop-Tag--option4___6MNs5", "hop-Tag--option5": "Tag-module__hop-Tag--option5___GBX7K", "hop-Tag--option6": "Tag-module__hop-Tag--option6___AQNi2", "hop-Tag__icon": "Tag-module__hop-Tag__icon___vldcj", "hop-Tag__icon-list": "Tag-module__hop-Tag__icon-list___DzL7g", "hop-Tag__text": "Tag-module__hop-Tag__text___iQuoP", "hop-Tag__badge": "Tag-module__hop-Tag__badge___0hHIo" };
|
|
23
|
+
var GlobalTagCssSelector = "hop-Tag";
|
|
24
|
+
var TagToTextSizeAdapter = {
|
|
25
|
+
sm: "xs",
|
|
26
|
+
md: "xs",
|
|
27
|
+
lg: "sm"
|
|
28
|
+
};
|
|
29
|
+
var TagToAvatarSizeAdapter = {
|
|
30
|
+
sm: "xs",
|
|
31
|
+
md: "xs",
|
|
32
|
+
lg: "sm"
|
|
33
|
+
};
|
|
34
|
+
var TagToButtonSizeAdapter = {
|
|
35
|
+
sm: "md",
|
|
36
|
+
md: "md",
|
|
37
|
+
lg: "lg"
|
|
38
|
+
};
|
|
39
|
+
function Tag(props, ref) {
|
|
40
|
+
var _a;
|
|
41
|
+
[props, ref] = useContextProps(props, ref, TagContext);
|
|
42
|
+
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
43
|
+
const {
|
|
44
|
+
className,
|
|
45
|
+
children: childrenProp,
|
|
46
|
+
isInvalid,
|
|
47
|
+
isLoading,
|
|
48
|
+
size: sizeProp,
|
|
49
|
+
style: styleProp,
|
|
50
|
+
textValue: textValueProp,
|
|
51
|
+
variant = "neutral",
|
|
52
|
+
...otherProps
|
|
53
|
+
} = ownProps;
|
|
54
|
+
const stringFormatter = useLocalizedString();
|
|
55
|
+
const size = (_a = useResponsiveValue(sizeProp)) != null ? _a : "md";
|
|
56
|
+
const textValue = textValueProp != null ? textValueProp : typeof childrenProp === "string" ? childrenProp : void 0;
|
|
57
|
+
const classNames = composeClassnameRenderProps(
|
|
58
|
+
className,
|
|
59
|
+
GlobalTagCssSelector,
|
|
60
|
+
cssModule(
|
|
61
|
+
Tag_module_default,
|
|
62
|
+
"hop-Tag",
|
|
63
|
+
size,
|
|
64
|
+
variant
|
|
65
|
+
),
|
|
66
|
+
stylingProps.className
|
|
67
|
+
);
|
|
68
|
+
const style = composeRenderProps(styleProp, (prev) => {
|
|
69
|
+
return {
|
|
70
|
+
...stylingProps.style,
|
|
71
|
+
...prev
|
|
72
|
+
};
|
|
73
|
+
});
|
|
74
|
+
const children = composeRenderProps(childrenProp, (prev) => {
|
|
75
|
+
if (prev && isTextOnlyChildren(prev)) {
|
|
76
|
+
return /* @__PURE__ */ jsx(_Text, { children: prev });
|
|
77
|
+
}
|
|
78
|
+
return prev;
|
|
79
|
+
});
|
|
80
|
+
return /* @__PURE__ */ jsx(
|
|
81
|
+
Tag$1,
|
|
82
|
+
{
|
|
83
|
+
...otherProps,
|
|
84
|
+
ref,
|
|
85
|
+
className: classNames,
|
|
86
|
+
style,
|
|
87
|
+
textValue,
|
|
88
|
+
"data-invalid": isInvalid || void 0,
|
|
89
|
+
"data-loading": isLoading || void 0,
|
|
90
|
+
children: (tagProps) => {
|
|
91
|
+
const { allowsRemoving, isDisabled, isSelected } = tagProps;
|
|
92
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
93
|
+
/* @__PURE__ */ jsx(ClearContainerSlots, { children: /* @__PURE__ */ jsx(
|
|
94
|
+
SlotProvider,
|
|
95
|
+
{
|
|
96
|
+
values: [
|
|
97
|
+
[TextContext, {
|
|
98
|
+
className: Tag_module_default["hop-Tag__text"],
|
|
99
|
+
size: TagToTextSizeAdapter[size]
|
|
100
|
+
}],
|
|
101
|
+
[IconListContext, {
|
|
102
|
+
className: Tag_module_default["hop-Tag__icon-list"],
|
|
103
|
+
size: "sm"
|
|
104
|
+
}],
|
|
105
|
+
[IconContext, {
|
|
106
|
+
className: Tag_module_default["hop-Tag__icon"],
|
|
107
|
+
size: "sm"
|
|
108
|
+
}],
|
|
109
|
+
[BadgeContext, {
|
|
110
|
+
className: Tag_module_default["hop-Tag__badge"],
|
|
111
|
+
isDisabled
|
|
112
|
+
}],
|
|
113
|
+
[AvatarContext, {
|
|
114
|
+
className: Tag_module_default["hop-Tag__avatar"],
|
|
115
|
+
isDisabled,
|
|
116
|
+
size: TagToAvatarSizeAdapter[size]
|
|
117
|
+
}]
|
|
118
|
+
],
|
|
119
|
+
children: children(tagProps)
|
|
120
|
+
}
|
|
121
|
+
) }),
|
|
122
|
+
allowsRemoving && !isLoading && /* @__PURE__ */ jsx(
|
|
123
|
+
_ClearButton,
|
|
124
|
+
{
|
|
125
|
+
slot: "remove",
|
|
126
|
+
isDisabled,
|
|
127
|
+
className: Tag_module_default["hop-Tag__remove-btn"],
|
|
128
|
+
"aria-label": stringFormatter.format("Tag.removeAriaLabel"),
|
|
129
|
+
size: TagToButtonSizeAdapter[size],
|
|
130
|
+
variant,
|
|
131
|
+
isSelected
|
|
132
|
+
}
|
|
133
|
+
),
|
|
134
|
+
isLoading && /* @__PURE__ */ jsx(
|
|
135
|
+
_Spinner,
|
|
136
|
+
{
|
|
137
|
+
"aria-label": stringFormatter.format("Tag.spinnerAriaLabel"),
|
|
138
|
+
size: "sm",
|
|
139
|
+
className: Tag_module_default["hop-Tag__Spinner"]
|
|
140
|
+
}
|
|
141
|
+
)
|
|
142
|
+
] });
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
);
|
|
146
|
+
}
|
|
147
|
+
var _Tag = forwardRef(Tag);
|
|
148
|
+
_Tag.displayName = "Tag";
|
|
149
|
+
|
|
150
|
+
export { GlobalTagCssSelector, _Tag };
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import { useScale } from './chunk-MTDFS4CZ.js';
|
|
2
|
+
import { NumberFieldContext } from './chunk-ZQ3AWYRR.js';
|
|
3
|
+
import { _InputGroup } from './chunk-TFELIWJO.js';
|
|
4
|
+
import { LabelContext } from './chunk-QCA3ZR56.js';
|
|
5
|
+
import { isTextOnlyChildren } from './chunk-ZWU6DRRZ.js';
|
|
6
|
+
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
7
|
+
import { HelperMessageContext } from './chunk-HZKFQ33E.js';
|
|
8
|
+
import { ErrorMessageContext } from './chunk-FAE27DLF.js';
|
|
9
|
+
import { _Text } from './chunk-K7DU4YR4.js';
|
|
10
|
+
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
11
|
+
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
12
|
+
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
13
|
+
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
14
|
+
import { IconContext, AngleUpIcon, AngleDownIcon } from '@hopper-ui/icons';
|
|
15
|
+
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
16
|
+
import { mergeRefs } from '@react-aria/utils';
|
|
17
|
+
import { useControlledState } from '@react-stately/utils';
|
|
18
|
+
import { forwardRef, useCallback } from 'react';
|
|
19
|
+
import { useObjectRef } from 'react-aria';
|
|
20
|
+
import { useContextProps, composeRenderProps, Input, NumberField as NumberField$1, Button } from 'react-aria-components';
|
|
21
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
22
|
+
|
|
23
|
+
// css-module:./NumberField.module.css#css-module
|
|
24
|
+
var NumberField_module_default = { "hop-NumberField": "NumberField-module__hop-NumberField___UgGQL", "hop-NumberField--fluid": "NumberField-module__hop-NumberField--fluid___JQJsO", "hop-NumberField--mobile": "NumberField-module__hop-NumberField--mobile___-rjzF", "hop-NumberField__Label": "NumberField-module__hop-NumberField__Label___AIkme", "hop-NumberField__prefix": "NumberField-module__hop-NumberField__prefix___k9Amr", "hop-NumberField__InputGroup": "NumberField-module__hop-NumberField__InputGroup___AmBST", "hop-NumberField__ErrorMessage": "NumberField-module__hop-NumberField__ErrorMessage___1ZR-C", "hop-NumberField__HelperMessage": "NumberField-module__hop-NumberField__HelperMessage___aL7XZ", "hop-NumberField__stepper-button": "NumberField-module__hop-NumberField__stepper-button___O8-2A", "hop-NumberField__stepper-button--increment": "NumberField-module__hop-NumberField__stepper-button--increment___yxvZH", "hop-NumberField__stepper-button--decrement": "NumberField-module__hop-NumberField__stepper-button--decrement___z-fu-", "hop-NumberField__stepper-button--mobile": "NumberField-module__hop-NumberField__stepper-button--mobile___2Fw9-", "hop-NumberField__stepper-button__icon": "NumberField-module__hop-NumberField__stepper-button__icon___QtyaS", "hop-NumberField__input": "NumberField-module__hop-NumberField__input___XsNK4" };
|
|
25
|
+
var GlobalNumberFieldCssSelector = "hop-NumberField";
|
|
26
|
+
var StepperButton = ({ direction }) => {
|
|
27
|
+
const scale = useScale();
|
|
28
|
+
const isMobile = scale === "large";
|
|
29
|
+
const StepperIcon = direction === "increment" ? AngleUpIcon : AngleDownIcon;
|
|
30
|
+
const stepperClasses = cssModule(
|
|
31
|
+
NumberField_module_default,
|
|
32
|
+
"hop-NumberField__stepper-button",
|
|
33
|
+
direction,
|
|
34
|
+
isMobile && "mobile"
|
|
35
|
+
);
|
|
36
|
+
return /* @__PURE__ */ jsx(
|
|
37
|
+
Button,
|
|
38
|
+
{
|
|
39
|
+
className: stepperClasses,
|
|
40
|
+
slot: direction,
|
|
41
|
+
children: /* @__PURE__ */ jsx(
|
|
42
|
+
StepperIcon,
|
|
43
|
+
{
|
|
44
|
+
className: NumberField_module_default["hop-NumberField__stepper-button__icon"],
|
|
45
|
+
size: {
|
|
46
|
+
base: "md",
|
|
47
|
+
xs: "sm"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
)
|
|
51
|
+
}
|
|
52
|
+
);
|
|
53
|
+
};
|
|
54
|
+
function NumberField(props, ref) {
|
|
55
|
+
var _a;
|
|
56
|
+
const {
|
|
57
|
+
inputRef: userProvidedInputRef = null,
|
|
58
|
+
...propsWithoutRef
|
|
59
|
+
} = props;
|
|
60
|
+
[props, ref] = useContextProps(propsWithoutRef, ref, NumberFieldContext);
|
|
61
|
+
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
62
|
+
const {
|
|
63
|
+
className,
|
|
64
|
+
style: styleProp,
|
|
65
|
+
size,
|
|
66
|
+
prefix,
|
|
67
|
+
placeholder,
|
|
68
|
+
onChange: onChangeProp,
|
|
69
|
+
children,
|
|
70
|
+
defaultValue,
|
|
71
|
+
value: valueProp,
|
|
72
|
+
isFluid: isFluidProp,
|
|
73
|
+
isDisabled,
|
|
74
|
+
isInvalid,
|
|
75
|
+
isRequired,
|
|
76
|
+
...otherProps
|
|
77
|
+
} = ownProps;
|
|
78
|
+
const inputRef = useObjectRef(mergeRefs(userProvidedInputRef, props.inputRef !== void 0 ? props.inputRef : null));
|
|
79
|
+
const isFluid = (_a = useResponsiveValue(isFluidProp)) != null ? _a : false;
|
|
80
|
+
const scale = useScale();
|
|
81
|
+
const isMobile = scale === "large";
|
|
82
|
+
const classNames = composeClassnameRenderProps(
|
|
83
|
+
className,
|
|
84
|
+
GlobalNumberFieldCssSelector,
|
|
85
|
+
cssModule(
|
|
86
|
+
NumberField_module_default,
|
|
87
|
+
"hop-NumberField",
|
|
88
|
+
isFluid && "fluid",
|
|
89
|
+
isMobile && "mobile"
|
|
90
|
+
),
|
|
91
|
+
stylingProps.className
|
|
92
|
+
);
|
|
93
|
+
const style = composeRenderProps(styleProp, (prev) => {
|
|
94
|
+
return {
|
|
95
|
+
...stylingProps.style,
|
|
96
|
+
...prev
|
|
97
|
+
};
|
|
98
|
+
});
|
|
99
|
+
const handleTextChanged = useCallback((value2) => {
|
|
100
|
+
onChangeProp == null ? void 0 : onChangeProp(value2);
|
|
101
|
+
}, [onChangeProp]);
|
|
102
|
+
const [value, onChange] = useControlledState(valueProp, defaultValue || 0, handleTextChanged);
|
|
103
|
+
const prefixMarkup = prefix ? /* @__PURE__ */ jsx(
|
|
104
|
+
SlotProvider,
|
|
105
|
+
{
|
|
106
|
+
values: [
|
|
107
|
+
[TextContext, { size, className: NumberField_module_default["hop-NumberField__prefix"] }],
|
|
108
|
+
[IconContext, { size, className: NumberField_module_default["hop-NumberField__prefix"] }]
|
|
109
|
+
],
|
|
110
|
+
children: isTextOnlyChildren(prefix) ? /* @__PURE__ */ jsx(_Text, { children: prefix }) : prefix
|
|
111
|
+
}
|
|
112
|
+
) : null;
|
|
113
|
+
const inputMarkup = /* @__PURE__ */ jsx(ClearContainerSlots, { children: /* @__PURE__ */ jsxs(
|
|
114
|
+
_InputGroup,
|
|
115
|
+
{
|
|
116
|
+
isFluid,
|
|
117
|
+
size,
|
|
118
|
+
className: NumberField_module_default["hop-NumberField__InputGroup"],
|
|
119
|
+
isDisabled,
|
|
120
|
+
isInvalid,
|
|
121
|
+
inputClassName: NumberField_module_default["hop-NumberField__input"],
|
|
122
|
+
inputType: "number",
|
|
123
|
+
children: [
|
|
124
|
+
prefixMarkup,
|
|
125
|
+
/* @__PURE__ */ jsx(
|
|
126
|
+
Input,
|
|
127
|
+
{
|
|
128
|
+
ref: inputRef,
|
|
129
|
+
placeholder
|
|
130
|
+
}
|
|
131
|
+
),
|
|
132
|
+
/* @__PURE__ */ jsx(StepperButton, { direction: "increment" }),
|
|
133
|
+
/* @__PURE__ */ jsx(StepperButton, { direction: "decrement" })
|
|
134
|
+
]
|
|
135
|
+
}
|
|
136
|
+
) });
|
|
137
|
+
const childrenMarkup = composeRenderProps(children, (prev) => {
|
|
138
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
139
|
+
/* @__PURE__ */ jsx(
|
|
140
|
+
SlotProvider,
|
|
141
|
+
{
|
|
142
|
+
values: [
|
|
143
|
+
[LabelContext, { className: NumberField_module_default["hop-NumberField__Label"], isRequired }],
|
|
144
|
+
[HelperMessageContext, { className: NumberField_module_default["hop-NumberField__HelperMessage"] }],
|
|
145
|
+
[ErrorMessageContext, { className: NumberField_module_default["hop-NumberField__ErrorMessage"] }]
|
|
146
|
+
],
|
|
147
|
+
children: prev
|
|
148
|
+
}
|
|
149
|
+
),
|
|
150
|
+
inputMarkup
|
|
151
|
+
] });
|
|
152
|
+
});
|
|
153
|
+
return /* @__PURE__ */ jsx(
|
|
154
|
+
NumberField$1,
|
|
155
|
+
{
|
|
156
|
+
ref,
|
|
157
|
+
value,
|
|
158
|
+
style,
|
|
159
|
+
className: classNames,
|
|
160
|
+
onChange,
|
|
161
|
+
isDisabled,
|
|
162
|
+
isInvalid,
|
|
163
|
+
isRequired,
|
|
164
|
+
...otherProps,
|
|
165
|
+
children: childrenMarkup
|
|
166
|
+
}
|
|
167
|
+
);
|
|
168
|
+
}
|
|
169
|
+
var _NumberField = forwardRef(NumberField);
|
|
170
|
+
_NumberField.displayName = "NumberField";
|
|
171
|
+
|
|
172
|
+
export { GlobalNumberFieldCssSelector, _NumberField };
|
|
@@ -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___Ww7PP", "hop-Text--xs": "Text-module__hop-Text--xs___YsuwL", "hop-Text--sm": "Text-module__hop-Text--sm___9lTR-", "hop-Text--md": "Text-module__hop-Text--md___to5eX", "hop-Text--lg": "Text-module__hop-Text--lg___Y-6Mo", "hop-Text--xl": "Text-module__hop-Text--xl___Qo9et", "hop-Text--2xl": "Text-module__hop-Text--2xl___dViKj", "hop-Text--inherit": "Text-module__hop-Text--inherit___uMHTH" };
|
|
13
13
|
var GlobalTextCssSelector = "hop-Text";
|
|
14
14
|
function Text(props, ref) {
|
|
15
15
|
[props, ref] = useContextProps(props, ref, TextContext);
|
|
@@ -2,13 +2,13 @@ import { isFunction } from './chunk-TIPN4VYD.js';
|
|
|
2
2
|
import { useLoadOnScroll } from './chunk-JTNMFPM4.js';
|
|
3
3
|
import { SectionContext } from './chunk-5H5AZJPQ.js';
|
|
4
4
|
import { ListBoxContext } from './chunk-UIEP5BA5.js';
|
|
5
|
-
import { _ListBoxItem } from './chunk-
|
|
6
|
-
import { useLocalizedString } from './chunk-
|
|
5
|
+
import { _ListBoxItem } from './chunk-4H7PKEMJ.js';
|
|
6
|
+
import { useLocalizedString } from './chunk-F4H76S4H.js';
|
|
7
7
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
8
8
|
import { ListBoxItemContext } from './chunk-Y2POLIXK.js';
|
|
9
9
|
import { HeaderContext } from './chunk-7JOGKC3W.js';
|
|
10
10
|
import { DividerContext } from './chunk-FYIHMKHI.js';
|
|
11
|
-
import { _Text } from './chunk-
|
|
11
|
+
import { _Text } from './chunk-K7DU4YR4.js';
|
|
12
12
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
13
13
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
14
14
|
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
@@ -18,7 +18,7 @@ import { useContextProps, composeRenderProps, ListBox as ListBox$1, Collection }
|
|
|
18
18
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
19
19
|
|
|
20
20
|
// css-module:./ListBox.module.css#css-module
|
|
21
|
-
var ListBox_module_default = { "hop-ListBox": "ListBox-module__hop-
|
|
21
|
+
var ListBox_module_default = { "hop-ListBox": "ListBox-module__hop-ListBox___gMv2t", "hop-ListBox--fluid": "ListBox-module__hop-ListBox--fluid___3coRA", "hop-ListBox__section": "ListBox-module__hop-ListBox__section___gO1Qv", "hop-ListBox__item": "ListBox-module__hop-ListBox__item___RB9VA", "hop-ListBox__section-header": "ListBox-module__hop-ListBox__section-header___NklA1", "hop-ListBox__divider": "ListBox-module__hop-ListBox__divider___fsuh2" };
|
|
22
22
|
var GlobalListBoxCssSelector = "hop-ListBox";
|
|
23
23
|
var GlobalListBoxEmptyItemCssSelector = "hop-ListBox__empty-item";
|
|
24
24
|
var ListBoxToTextSizeAdapter = {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { useSlot } from './chunk-H5YTU3U7.js';
|
|
2
2
|
import { ButtonContext } from './chunk-WMTWFKKP.js';
|
|
3
|
-
import { _Spinner } from './chunk-
|
|
4
|
-
import { useLocalizedString } from './chunk-
|
|
5
|
-
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
6
|
-
import { useRenderProps } from './chunk-NH3IVMXB.js';
|
|
3
|
+
import { _Spinner } from './chunk-AGRQ7UGN.js';
|
|
4
|
+
import { useLocalizedString } from './chunk-F4H76S4H.js';
|
|
7
5
|
import { isTextOnlyChildren } from './chunk-ZWU6DRRZ.js';
|
|
6
|
+
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
8
7
|
import { IconListContext } from './chunk-DHVVYSLB.js';
|
|
9
|
-
import {
|
|
8
|
+
import { useRenderProps } from './chunk-NH3IVMXB.js';
|
|
9
|
+
import { _Text } from './chunk-K7DU4YR4.js';
|
|
10
10
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
11
11
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
12
12
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
@@ -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___jX9LE", "hop-Button--icon-only": "Button-module__hop-Button--icon-only___71t1L", "hop-Button--fluid": "Button-module__hop-Button--fluid___SYpjM", "hop-Button--sm": "Button-module__hop-Button--sm___wPAMa", "hop-Button--primary": "Button-module__hop-Button--primary___BvniH", "hop-Button--md": "Button-module__hop-Button--md___B9RAI", "hop-Button--secondary": "Button-module__hop-Button--secondary___lCKXs", "hop-Button--upsell": "Button-module__hop-Button--upsell___NyM1V", "hop-Button--danger": "Button-module__hop-Button--danger___k-o-0", "hop-Button--ghost-danger": "Button-module__hop-Button--ghost-danger___omDnE", "hop-Button--ghost-secondary": "Button-module__hop-Button--ghost-secondary___OFQHT", "hop-Button--ghost-primary": "Button-module__hop-Button--ghost-primary___ceb7C", "hop-Button__Spinner": "Button-module__hop-Button__Spinner___kILk7", "hop-Button__icon": "Button-module__hop-Button__icon___6lA2X", "hop-Button__icon-list": "Button-module__hop-Button__icon-list___N8k0v", "hop-Button__text": "Button-module__hop-Button__text___Rgagt", "hop-Button__end-icon": "Button-module__hop-Button__end-icon___M1yPt", "hop-Button__end-icon-list": "Button-module__hop-Button__end-icon-list___E8IaO" };
|
|
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) {
|
|
@@ -7,7 +7,7 @@ import { useContextProps, Text } from 'react-aria-components';
|
|
|
7
7
|
import { jsx } from 'react/jsx-runtime';
|
|
8
8
|
|
|
9
9
|
// css-module:./OverlineText.module.css#css-module
|
|
10
|
-
var OverlineText_module_default = { "hop-OverlineText": "OverlineText-module__hop-
|
|
10
|
+
var OverlineText_module_default = { "hop-OverlineText": "OverlineText-module__hop-OverlineText___N5J5g", "hop-OverlineText__text": "OverlineText-module__hop-OverlineText__text___EUFfb" };
|
|
11
11
|
var GlobalOverlineTextCssSelector = "hop-OverlineText";
|
|
12
12
|
function OverlineText(props, ref) {
|
|
13
13
|
[props, ref] = useContextProps(props, ref, OverlineTextContext);
|