@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,142 +1,107 @@
|
|
|
1
1
|
import { PopoverContext } from './chunk-SC6ZK5ON.js';
|
|
2
|
-
import { TagContext } from './chunk-EWMWQ2MC.js';
|
|
3
2
|
import { ContentContext } from './chunk-IXB2WK56.js';
|
|
4
3
|
import { FooterContext } from './chunk-I67NHYK4.js';
|
|
4
|
+
import { PasswordFieldContext } from './chunk-QW45G6K4.js';
|
|
5
|
+
import { SearchFieldContext } from './chunk-3NKF5TPD.js';
|
|
6
|
+
import { TextAreaContext } from './chunk-MHQZXLKW.js';
|
|
7
|
+
import { TextFieldContext } from './chunk-O4XPUINW.js';
|
|
8
|
+
import { NumberFieldContext } from './chunk-ZQ3AWYRR.js';
|
|
5
9
|
import { HeadingContext } from './chunk-TXZ6BMFR.js';
|
|
10
|
+
import { CheckboxFieldContext } from './chunk-ZGNK4GWA.js';
|
|
11
|
+
import { CheckboxGroupContext } from './chunk-N7YDPVZL.js';
|
|
6
12
|
import { ButtonContext } from './chunk-WMTWFKKP.js';
|
|
7
13
|
import { ButtonGroupContext } from './chunk-VJQ7M2BK.js';
|
|
8
|
-
import { _ClearButton } from './chunk-SR3GAXY5.js';
|
|
9
|
-
import { _Spinner } from './chunk-WAUGFWZA.js';
|
|
10
14
|
import { LinkContext } from './chunk-4VVNSXIB.js';
|
|
11
15
|
import { isFunction, isNil } from './chunk-TIPN4VYD.js';
|
|
12
|
-
import {
|
|
16
|
+
import { RadioGroupContext } from './chunk-5MBJWRZD.js';
|
|
17
|
+
import { CheckboxContext } from './chunk-2EAZPH3M.js';
|
|
13
18
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
14
19
|
import { _HopperProvider } from './chunk-NMKBUGSO.js';
|
|
15
|
-
import {
|
|
16
|
-
import { IconListContext } from './chunk-DHVVYSLB.js';
|
|
17
|
-
import { BadgeContext } from './chunk-CQDLZ42T.js';
|
|
18
|
-
import { _Text } from './chunk-6MSRPPI6.js';
|
|
19
|
-
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
20
|
-
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
20
|
+
import { FormContext } from './chunk-EURJK4ZT.js';
|
|
21
21
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
22
22
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
23
|
-
import {
|
|
24
|
-
import { useStyledSystem, useResponsiveValue, useColorSchemeContext } from '@hopper-ui/styled-system';
|
|
23
|
+
import { useStyledSystem, useColorSchemeContext, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
25
24
|
export * from '@hopper-ui/styled-system';
|
|
25
|
+
import clsx from 'clsx';
|
|
26
26
|
import { forwardRef, useReducer, useRef, useEffect } from 'react';
|
|
27
|
-
import { useContextProps,
|
|
27
|
+
import { useContextProps, Popover as Popover$1, Dialog, Form as Form$1 } from 'react-aria-components';
|
|
28
28
|
export { Collection } from 'react-aria-components';
|
|
29
|
-
import { jsx
|
|
30
|
-
import clsx from 'clsx';
|
|
29
|
+
import { jsx } from 'react/jsx-runtime';
|
|
31
30
|
|
|
32
|
-
// css-module:./
|
|
33
|
-
var
|
|
34
|
-
var
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
lg: "sm"
|
|
38
|
-
};
|
|
39
|
-
function Tag(props, ref) {
|
|
40
|
-
var _a;
|
|
41
|
-
[props, ref] = useContextProps(props, ref, TagContext);
|
|
31
|
+
// css-module:./Popover.module.css#css-module
|
|
32
|
+
var Popover_module_default = { "hop-Popover": "Popover-module__hop-Popover___RNUtp", "hop-Popover__dialog": "Popover-module__hop-Popover__dialog___EcMei", "hop-Popover__title": "Popover-module__hop-Popover__title___mb1-K", "hop-Popover__actions": "Popover-module__hop-Popover__actions___OAUQ0", "hop-Popover__action": "Popover-module__hop-Popover__action___5Ok8v", "hop-Popover__content": "Popover-module__hop-Popover__content___n-NbF", "hop-Popover__footer": "Popover-module__hop-Popover__footer___zKrod" };
|
|
33
|
+
var GlobalPopoverCssSelector = "hop-Popover";
|
|
34
|
+
function Popover(props, ref) {
|
|
35
|
+
[props, ref] = useContextProps(props, ref, PopoverContext);
|
|
42
36
|
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
43
37
|
const {
|
|
38
|
+
children,
|
|
44
39
|
className,
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
isLoading,
|
|
48
|
-
size: sizeProp = "md",
|
|
49
|
-
style: styleProp,
|
|
50
|
-
textValue: textValueProp,
|
|
40
|
+
offset = 4,
|
|
41
|
+
boundaryOffset,
|
|
51
42
|
...otherProps
|
|
52
43
|
} = ownProps;
|
|
53
|
-
const
|
|
54
|
-
const
|
|
55
|
-
const textValue = textValueProp != null ? textValueProp : typeof childrenProp === "string" ? childrenProp : void 0;
|
|
56
|
-
const classNames = composeClassnameRenderProps(
|
|
44
|
+
const { colorScheme } = useColorSchemeContext();
|
|
45
|
+
const popoverClassNames = composeClassnameRenderProps(
|
|
57
46
|
className,
|
|
58
|
-
|
|
47
|
+
GlobalPopoverCssSelector,
|
|
59
48
|
cssModule(
|
|
60
|
-
|
|
61
|
-
"hop-
|
|
62
|
-
|
|
63
|
-
),
|
|
64
|
-
stylingProps.className
|
|
49
|
+
Popover_module_default,
|
|
50
|
+
"hop-Popover"
|
|
51
|
+
)
|
|
65
52
|
);
|
|
66
|
-
const style = composeRenderProps(styleProp, (prev) => {
|
|
67
|
-
return {
|
|
68
|
-
...stylingProps.style,
|
|
69
|
-
...prev
|
|
70
|
-
};
|
|
71
|
-
});
|
|
72
|
-
const children = composeRenderProps(childrenProp, (prev) => {
|
|
73
|
-
if (prev && isTextOnlyChildren(prev)) {
|
|
74
|
-
return /* @__PURE__ */ jsx(_Text, { children: prev });
|
|
75
|
-
}
|
|
76
|
-
return prev;
|
|
77
|
-
});
|
|
78
53
|
return /* @__PURE__ */ jsx(
|
|
79
|
-
|
|
54
|
+
Popover$1,
|
|
80
55
|
{
|
|
81
56
|
...otherProps,
|
|
57
|
+
offset,
|
|
82
58
|
ref,
|
|
83
|
-
className:
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
/* @__PURE__ */ jsx(ClearContainerSlots, { children: /* @__PURE__ */ jsx(
|
|
59
|
+
className: popoverClassNames,
|
|
60
|
+
arrowBoundaryOffset: boundaryOffset,
|
|
61
|
+
children: (state) => /* @__PURE__ */ jsx(_HopperProvider, { colorScheme, children: /* @__PURE__ */ jsx(
|
|
62
|
+
Dialog,
|
|
63
|
+
{
|
|
64
|
+
className: clsx(stylingProps.className, Popover_module_default["hop-Popover__dialog"]),
|
|
65
|
+
style: stylingProps.style,
|
|
66
|
+
children: /* @__PURE__ */ jsx(
|
|
92
67
|
SlotProvider,
|
|
93
68
|
{
|
|
94
69
|
values: [
|
|
95
|
-
[
|
|
96
|
-
className:
|
|
97
|
-
size:
|
|
70
|
+
[HeadingContext, {
|
|
71
|
+
className: Popover_module_default["hop-Popover__title"],
|
|
72
|
+
size: "xs"
|
|
73
|
+
}],
|
|
74
|
+
[ButtonContext, {
|
|
75
|
+
size: "sm",
|
|
76
|
+
className: Popover_module_default["hop-Popover__action"]
|
|
77
|
+
}],
|
|
78
|
+
[ButtonGroupContext, {
|
|
79
|
+
size: "sm",
|
|
80
|
+
align: "end",
|
|
81
|
+
className: Popover_module_default["hop-Popover__actions"]
|
|
98
82
|
}],
|
|
99
|
-
[
|
|
100
|
-
className:
|
|
101
|
-
size: "sm"
|
|
83
|
+
[ContentContext, {
|
|
84
|
+
className: Popover_module_default["hop-Popover__content"]
|
|
102
85
|
}],
|
|
103
|
-
[
|
|
104
|
-
className:
|
|
105
|
-
size: "sm"
|
|
86
|
+
[FooterContext, {
|
|
87
|
+
className: Popover_module_default["hop-Popover__footer"]
|
|
106
88
|
}],
|
|
107
|
-
[
|
|
108
|
-
|
|
109
|
-
|
|
89
|
+
[LinkContext, {
|
|
90
|
+
size: "sm",
|
|
91
|
+
variant: "primary",
|
|
92
|
+
isQuiet: true
|
|
110
93
|
}]
|
|
111
94
|
],
|
|
112
|
-
children: children(
|
|
113
|
-
}
|
|
114
|
-
) }),
|
|
115
|
-
allowsRemoving && !isLoading && /* @__PURE__ */ jsx(
|
|
116
|
-
_ClearButton,
|
|
117
|
-
{
|
|
118
|
-
slot: "remove",
|
|
119
|
-
isDisabled,
|
|
120
|
-
className: Tag_module_default["hop-Tag__remove-btn"],
|
|
121
|
-
"aria-label": stringFormatter.format("Tag.removeAriaLabel"),
|
|
122
|
-
size
|
|
123
|
-
}
|
|
124
|
-
),
|
|
125
|
-
isLoading && /* @__PURE__ */ jsx(
|
|
126
|
-
_Spinner,
|
|
127
|
-
{
|
|
128
|
-
"aria-label": stringFormatter.format("Tag.spinnerAriaLabel"),
|
|
129
|
-
size: "sm",
|
|
130
|
-
className: Tag_module_default["hop-Tag__Spinner"]
|
|
95
|
+
children: isFunction(children) && !isNil(children) ? children(state) : children
|
|
131
96
|
}
|
|
132
97
|
)
|
|
133
|
-
|
|
134
|
-
}
|
|
98
|
+
}
|
|
99
|
+
) })
|
|
135
100
|
}
|
|
136
101
|
);
|
|
137
102
|
}
|
|
138
|
-
var
|
|
139
|
-
|
|
103
|
+
var _Popover = forwardRef(Popover);
|
|
104
|
+
_Popover.displayName = "Popover";
|
|
140
105
|
function $0d86e9c8f07f9a7b$export$79c0c687a5963b0a(opts, dispatch) {
|
|
141
106
|
let { cursor, getKey } = opts;
|
|
142
107
|
return {
|
|
@@ -547,79 +512,97 @@ function $f86e6c1ec7da6ebb$export$bc3384a35de93d66(options) {
|
|
|
547
512
|
};
|
|
548
513
|
}
|
|
549
514
|
|
|
550
|
-
// css-module:./
|
|
551
|
-
var
|
|
552
|
-
var
|
|
553
|
-
function
|
|
554
|
-
|
|
515
|
+
// css-module:./Form.module.css#css-module
|
|
516
|
+
var Form_module_default = { "hop-Form": "Form-module__hop-Form___QJzNB" };
|
|
517
|
+
var GlobalFormCssSelector = "hop-Form";
|
|
518
|
+
function Form(props, ref) {
|
|
519
|
+
var _a;
|
|
520
|
+
[props, ref] = useContextProps(props, ref, FormContext);
|
|
555
521
|
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
556
522
|
const {
|
|
557
|
-
children,
|
|
558
523
|
className,
|
|
559
|
-
|
|
560
|
-
|
|
524
|
+
children,
|
|
525
|
+
style,
|
|
526
|
+
isFluid,
|
|
527
|
+
isDisabled,
|
|
528
|
+
size: sizeProp,
|
|
561
529
|
...otherProps
|
|
562
530
|
} = ownProps;
|
|
563
|
-
const
|
|
564
|
-
const
|
|
565
|
-
|
|
566
|
-
GlobalPopoverCssSelector,
|
|
531
|
+
const size = (_a = useResponsiveValue(sizeProp)) != null ? _a : "md";
|
|
532
|
+
const classNames = clsx(
|
|
533
|
+
GlobalFormCssSelector,
|
|
567
534
|
cssModule(
|
|
568
|
-
|
|
569
|
-
"hop-
|
|
570
|
-
)
|
|
535
|
+
Form_module_default,
|
|
536
|
+
"hop-Form"
|
|
537
|
+
),
|
|
538
|
+
stylingProps.className,
|
|
539
|
+
className
|
|
571
540
|
);
|
|
541
|
+
const mergedStyles = {
|
|
542
|
+
...stylingProps.style,
|
|
543
|
+
...style
|
|
544
|
+
};
|
|
572
545
|
return /* @__PURE__ */ jsx(
|
|
573
|
-
|
|
546
|
+
SlotProvider,
|
|
574
547
|
{
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
548
|
+
values: [
|
|
549
|
+
[TextFieldContext, {
|
|
550
|
+
isDisabled,
|
|
551
|
+
isFluid,
|
|
552
|
+
size
|
|
553
|
+
}],
|
|
554
|
+
[PasswordFieldContext, {
|
|
555
|
+
isDisabled,
|
|
556
|
+
isFluid,
|
|
557
|
+
size
|
|
558
|
+
}],
|
|
559
|
+
[SearchFieldContext, {
|
|
560
|
+
isDisabled,
|
|
561
|
+
isFluid,
|
|
562
|
+
size
|
|
563
|
+
}],
|
|
564
|
+
[NumberFieldContext, {
|
|
565
|
+
isDisabled,
|
|
566
|
+
size,
|
|
567
|
+
isFluid
|
|
568
|
+
}],
|
|
569
|
+
[TextAreaContext, {
|
|
570
|
+
isDisabled,
|
|
571
|
+
size,
|
|
572
|
+
isFluid
|
|
573
|
+
}],
|
|
574
|
+
[RadioGroupContext, {
|
|
575
|
+
isDisabled,
|
|
576
|
+
size
|
|
577
|
+
}],
|
|
578
|
+
[CheckboxContext, {
|
|
579
|
+
isDisabled,
|
|
580
|
+
size
|
|
581
|
+
}],
|
|
582
|
+
[CheckboxFieldContext, {
|
|
583
|
+
isDisabled,
|
|
584
|
+
size
|
|
585
|
+
}],
|
|
586
|
+
[CheckboxGroupContext, {
|
|
587
|
+
isDisabled,
|
|
588
|
+
size
|
|
589
|
+
}],
|
|
590
|
+
[ButtonContext, { isDisabled, size }]
|
|
591
|
+
],
|
|
592
|
+
children: /* @__PURE__ */ jsx(
|
|
593
|
+
Form$1,
|
|
582
594
|
{
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
values: [
|
|
589
|
-
[HeadingContext, {
|
|
590
|
-
className: Popover_module_default["hop-Popover__title"],
|
|
591
|
-
size: "xs"
|
|
592
|
-
}],
|
|
593
|
-
[ButtonContext, {
|
|
594
|
-
size: "sm",
|
|
595
|
-
className: Popover_module_default["hop-Popover__action"]
|
|
596
|
-
}],
|
|
597
|
-
[ButtonGroupContext, {
|
|
598
|
-
size: "sm",
|
|
599
|
-
align: "end",
|
|
600
|
-
className: Popover_module_default["hop-Popover__actions"]
|
|
601
|
-
}],
|
|
602
|
-
[ContentContext, {
|
|
603
|
-
className: Popover_module_default["hop-Popover__content"]
|
|
604
|
-
}],
|
|
605
|
-
[FooterContext, {
|
|
606
|
-
className: Popover_module_default["hop-Popover__footer"]
|
|
607
|
-
}],
|
|
608
|
-
[LinkContext, {
|
|
609
|
-
size: "sm",
|
|
610
|
-
variant: "primary",
|
|
611
|
-
isQuiet: true
|
|
612
|
-
}]
|
|
613
|
-
],
|
|
614
|
-
children: isFunction(children) && !isNil(children) ? children(state) : children
|
|
615
|
-
}
|
|
616
|
-
)
|
|
595
|
+
...otherProps,
|
|
596
|
+
ref,
|
|
597
|
+
className: classNames,
|
|
598
|
+
style: mergedStyles,
|
|
599
|
+
children
|
|
617
600
|
}
|
|
618
|
-
)
|
|
601
|
+
)
|
|
619
602
|
}
|
|
620
603
|
);
|
|
621
604
|
}
|
|
622
|
-
var
|
|
623
|
-
|
|
605
|
+
var _Form = forwardRef(Form);
|
|
606
|
+
_Form.displayName = "Form";
|
|
624
607
|
|
|
625
|
-
export { $f86e6c1ec7da6ebb$export$bc3384a35de93d66, GlobalPopoverCssSelector,
|
|
608
|
+
export { $f86e6c1ec7da6ebb$export$bc3384a35de93d66, GlobalFormCssSelector, GlobalPopoverCssSelector, _Form, _Popover };
|
|
@@ -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___zDwCH", "hop-SwitchField--sm": "SwitchField-module__hop-SwitchField--sm___lMs5H", "hop-SwitchField--md": "SwitchField-module__hop-SwitchField--md___QxTMV", "hop-SwitchField__description": "SwitchField-module__hop-SwitchField__description___VfRpb", "hop-SwitchField__switch": "SwitchField-module__hop-SwitchField__switch___CmbgN" };
|
|
15
15
|
var GlobalSwitchFieldCssSelector = "hop-SwitchField";
|
|
16
16
|
var SwitchToDescriptionSizeAdapter = {
|
|
17
17
|
sm: "xs",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { PasswordFieldContext } from './chunk-QW45G6K4.js';
|
|
2
|
-
import { _InputGroup } from './chunk-
|
|
3
|
-
import { _EmbeddedButton } from './chunk-
|
|
2
|
+
import { _InputGroup } from './chunk-TFELIWJO.js';
|
|
3
|
+
import { _EmbeddedButton } from './chunk-DZKJZSTQ.js';
|
|
4
4
|
import { LabelContext } from './chunk-QCA3ZR56.js';
|
|
5
|
-
import { useLocalizedString } from './chunk-
|
|
5
|
+
import { useLocalizedString } from './chunk-F4H76S4H.js';
|
|
6
6
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
7
7
|
import { HelperMessageContext } from './chunk-HZKFQ33E.js';
|
|
8
8
|
import { ErrorMessageContext } from './chunk-FAE27DLF.js';
|
|
@@ -18,7 +18,7 @@ import { useContextProps, composeRenderProps, Input, TextField } from 'react-ari
|
|
|
18
18
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
19
19
|
|
|
20
20
|
// css-module:./PasswordField.module.css#css-module
|
|
21
|
-
var PasswordField_module_default = { "hop-PasswordField": "PasswordField-module__hop-
|
|
21
|
+
var PasswordField_module_default = { "hop-PasswordField": "PasswordField-module__hop-PasswordField___lt7Vx", "hop-PasswordField--fluid": "PasswordField-module__hop-PasswordField--fluid___gKwge", "hop-PasswordField__Label": "PasswordField-module__hop-PasswordField__Label___sPG7D", "hop-PasswordField__InputGroup": "PasswordField-module__hop-PasswordField__InputGroup___xPVPF", "hop-PasswordField__ErrorMessage": "PasswordField-module__hop-PasswordField__ErrorMessage___b3s4v", "hop-PasswordField__HelperMessage": "PasswordField-module__hop-PasswordField__HelperMessage___oeGil" };
|
|
22
22
|
var GlobalPasswordFieldCssSelector = "hop-PasswordField";
|
|
23
23
|
function PasswordField(props, ref) {
|
|
24
24
|
var _a;
|
|
@@ -39,6 +39,7 @@ function PasswordField(props, ref) {
|
|
|
39
39
|
isFluid: isFluidProp,
|
|
40
40
|
isDisabled,
|
|
41
41
|
isInvalid,
|
|
42
|
+
isRequired,
|
|
42
43
|
...otherProps
|
|
43
44
|
} = ownProps;
|
|
44
45
|
const inputRef = useObjectRef(mergeRefs(userProvidedInputRef, props.inputRef !== void 0 ? props.inputRef : null));
|
|
@@ -90,7 +91,7 @@ function PasswordField(props, ref) {
|
|
|
90
91
|
SlotProvider,
|
|
91
92
|
{
|
|
92
93
|
values: [
|
|
93
|
-
[LabelContext, { className: PasswordField_module_default["hop-PasswordField__Label"] }],
|
|
94
|
+
[LabelContext, { className: PasswordField_module_default["hop-PasswordField__Label"], isRequired }],
|
|
94
95
|
[HelperMessageContext, { className: PasswordField_module_default["hop-PasswordField__HelperMessage"] }],
|
|
95
96
|
[ErrorMessageContext, { className: PasswordField_module_default["hop-PasswordField__ErrorMessage"] }]
|
|
96
97
|
],
|
|
@@ -108,6 +109,7 @@ function PasswordField(props, ref) {
|
|
|
108
109
|
className: classNames,
|
|
109
110
|
isDisabled,
|
|
110
111
|
isInvalid,
|
|
112
|
+
isRequired,
|
|
111
113
|
...otherProps,
|
|
112
114
|
children: childrenMarkup
|
|
113
115
|
}
|
|
@@ -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 { AnonymousRichIcon } from '@hopper-ui/icons';
|
|
4
4
|
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
5
5
|
import clsx from 'clsx';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useImageFallback } from './chunk-NS3XVOQ7.js';
|
|
2
|
-
import { _Text } from './chunk-
|
|
2
|
+
import { _Text } from './chunk-K7DU4YR4.js';
|
|
3
3
|
import { AvatarContext } from './chunk-AES7QBQE.js';
|
|
4
|
-
import { _RichIconAvatarImage } from './chunk-
|
|
4
|
+
import { _RichIconAvatarImage } from './chunk-THUFFPGX.js';
|
|
5
5
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
6
6
|
import { BrokenImageRichIcon } from '@hopper-ui/icons';
|
|
7
7
|
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
@@ -12,7 +12,7 @@ import { useContextProps } from 'react-aria-components';
|
|
|
12
12
|
import { jsx } from 'react/jsx-runtime';
|
|
13
13
|
|
|
14
14
|
// css-module:./Avatar.module.css#css-module
|
|
15
|
-
var Avatar_module_default = { "hop-Avatar": "Avatar-module__hop-
|
|
15
|
+
var Avatar_module_default = { "hop-Avatar": "Avatar-module__hop-Avatar___IsFnk", "hop-Avatar--xs": "Avatar-module__hop-Avatar--xs___xVZ4Y", "hop-Avatar--sm": "Avatar-module__hop-Avatar--sm___dAvAi", "hop-Avatar--md": "Avatar-module__hop-Avatar--md___v2kru", "hop-Avatar--lg": "Avatar-module__hop-Avatar--lg___4a7C-", "hop-Avatar--xl": "Avatar-module__hop-Avatar--xl___GGmZt", "hop-Avatar--2xl": "Avatar-module__hop-Avatar--2xl___V0vm2", "hop-Avatar--decorative-option1": "Avatar-module__hop-Avatar--decorative-option1___WjAhq", "hop-Avatar--decorative-option2": "Avatar-module__hop-Avatar--decorative-option2___lp7nc", "hop-Avatar--decorative-option3": "Avatar-module__hop-Avatar--decorative-option3___L4QFf", "hop-Avatar--decorative-option4": "Avatar-module__hop-Avatar--decorative-option4___XDAjT", "hop-Avatar--decorative-option5": "Avatar-module__hop-Avatar--decorative-option5___HT6Yj", "hop-Avatar--decorative-option6": "Avatar-module__hop-Avatar--decorative-option6___ID7fC", "hop-Avatar--decorative-option7": "Avatar-module__hop-Avatar--decorative-option7___yDEQt", "hop-Avatar--decorative-option8": "Avatar-module__hop-Avatar--decorative-option8___FKawW", "hop-Avatar--decorative-option9": "Avatar-module__hop-Avatar--decorative-option9___y4zJc", "hop-Avatar__image": "Avatar-module__hop-Avatar__image___ikmZz" };
|
|
16
16
|
var GlobalAvatarCssSelector = "hop-Avatar";
|
|
17
17
|
var AvatarToTextSizeAdapter = {
|
|
18
18
|
xs: "xs",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { CheckboxContext } from './chunk-2EAZPH3M.js';
|
|
2
|
-
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
3
2
|
import { isTextOnlyChildren } from './chunk-ZWU6DRRZ.js';
|
|
3
|
+
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
4
4
|
import { IconListContext } from './chunk-DHVVYSLB.js';
|
|
5
|
-
import { _Text } from './chunk-
|
|
5
|
+
import { _Text } from './chunk-K7DU4YR4.js';
|
|
6
6
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
7
7
|
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
8
8
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
@@ -14,7 +14,7 @@ import { useContextProps, composeRenderProps, Checkbox as Checkbox$1 } from 'rea
|
|
|
14
14
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
15
15
|
|
|
16
16
|
// css-module:./Checkbox.module.css#css-module
|
|
17
|
-
var Checkbox_module_default = { "hop-Checkbox": "Checkbox-module__hop-
|
|
17
|
+
var Checkbox_module_default = { "hop-Checkbox": "Checkbox-module__hop-Checkbox___RQpte", "hop-Checkbox--focused": "Checkbox-module__hop-Checkbox--focused___sxf-2", "hop-Checkbox--hovered": "Checkbox-module__hop-Checkbox--hovered___9BGUP", "hop-Checkbox--pressed": "Checkbox-module__hop-Checkbox--pressed___o-zB5", "hop-Checkbox--sm": "Checkbox-module__hop-Checkbox--sm___2KCPX", "hop-Checkbox--md": "Checkbox-module__hop-Checkbox--md___WC3aH", "hop-Checkbox__icon": "Checkbox-module__hop-Checkbox__icon___L-2Lw", "hop-Checkbox__icon-list": "Checkbox-module__hop-Checkbox__icon-list___vNkoh", "hop-Checkbox__box": "Checkbox-module__hop-Checkbox__box___ZGHp6", "hop-Checkbox__check": "Checkbox-module__hop-Checkbox__check___kD0CL", "hop-Checkbox__text": "Checkbox-module__hop-Checkbox__text___YwAjq" };
|
|
18
18
|
var GlobalCheckboxCssSelector = "hop-Checkbox";
|
|
19
19
|
function Checkbox(props, ref) {
|
|
20
20
|
var _a;
|
|
@@ -4,12 +4,12 @@ import { SlotProvider } from './chunk-M36KANKC.js';
|
|
|
4
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
|
-
import { forwardRef, useRef, useCallback } from 'react';
|
|
8
|
-
import { useContextProps, useSlottedContext, InputContext, TextAreaContext, composeRenderProps, Group } from 'react-aria-components';
|
|
7
|
+
import { forwardRef, useRef, useContext, useCallback } from 'react';
|
|
8
|
+
import { useContextProps, useSlottedContext, InputContext, TextAreaContext, FieldErrorContext, composeRenderProps, Group } from 'react-aria-components';
|
|
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___JGJFG", "hop-InputGroup--fluid": "InputGroup-module__hop-InputGroup--fluid___6JfQH", "hop-InputGroup--sm": "InputGroup-module__hop-InputGroup--sm___JoxWu", "hop-InputGroup__input": "InputGroup-module__hop-InputGroup__input___2VtDU", "hop-InputGroup__textarea": "InputGroup-module__hop-InputGroup__textarea___eOkGw" };
|
|
13
13
|
var GlobalInputGroupCssSelector = "hop-InputGroup";
|
|
14
14
|
function InputGroup(props, ref) {
|
|
15
15
|
var _a, _b;
|
|
@@ -27,6 +27,7 @@ function InputGroup(props, ref) {
|
|
|
27
27
|
children,
|
|
28
28
|
size: sizeProp,
|
|
29
29
|
isFluid: isFluidProp,
|
|
30
|
+
isInvalid,
|
|
30
31
|
inputClassName,
|
|
31
32
|
inputType = "text",
|
|
32
33
|
onMouseDown,
|
|
@@ -45,6 +46,7 @@ function InputGroup(props, ref) {
|
|
|
45
46
|
),
|
|
46
47
|
stylingProps.className
|
|
47
48
|
);
|
|
49
|
+
const validation = useContext(FieldErrorContext);
|
|
48
50
|
const style = composeRenderProps(styleProp, (prev) => {
|
|
49
51
|
return {
|
|
50
52
|
...stylingProps.style,
|
|
@@ -77,6 +79,7 @@ function InputGroup(props, ref) {
|
|
|
77
79
|
Group,
|
|
78
80
|
{
|
|
79
81
|
...otherProps,
|
|
82
|
+
isInvalid: (validation == null ? void 0 : validation.isInvalid) || isInvalid,
|
|
80
83
|
onMouseDown: handleMouseDown,
|
|
81
84
|
ref,
|
|
82
85
|
className: classNames,
|
|
@@ -9,7 +9,7 @@ import { useContextProps } from 'react-aria-components';
|
|
|
9
9
|
import { jsx } from 'react/jsx-runtime';
|
|
10
10
|
|
|
11
11
|
// css-module:./RichIconAvatarImage.module.css#css-module
|
|
12
|
-
var RichIconAvatarImage_module_default = { "hop-RichIconAvatarImage": "RichIconAvatarImage-module__hop-
|
|
12
|
+
var RichIconAvatarImage_module_default = { "hop-RichIconAvatarImage": "RichIconAvatarImage-module__hop-RichIconAvatarImage___jKuOm", "hop-RichIconAvatarImage--xs": "RichIconAvatarImage-module__hop-RichIconAvatarImage--xs___YOClX", "hop-RichIconAvatarImage--sm": "RichIconAvatarImage-module__hop-RichIconAvatarImage--sm___orivw", "hop-RichIconAvatarImage--md": "RichIconAvatarImage-module__hop-RichIconAvatarImage--md___0grkn", "hop-RichIconAvatarImage--lg": "RichIconAvatarImage-module__hop-RichIconAvatarImage--lg___qCvt-", "hop-RichIconAvatarImage--xl": "RichIconAvatarImage-module__hop-RichIconAvatarImage--xl___lVnHc", "hop-RichIconAvatarImage--2xl": "RichIconAvatarImage-module__hop-RichIconAvatarImage--2xl___RlCbj", "hop-RichIconAvatarImage__icon": "RichIconAvatarImage-module__hop-RichIconAvatarImage__icon___--Ntp" };
|
|
13
13
|
var GlobalRichIconAvatarImageCssSelector = "hop-RichIconAvatarImage";
|
|
14
14
|
var AvatarToIconSizeAdapter = {
|
|
15
15
|
xs: "md",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HelperMessageContext } from './chunk-HZKFQ33E.js';
|
|
2
|
-
import { _Text } from './chunk-
|
|
2
|
+
import { _Text } from './chunk-K7DU4YR4.js';
|
|
3
3
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
4
4
|
import { InfoIcon } from '@hopper-ui/icons';
|
|
5
5
|
import { useStyledSystem } from '@hopper-ui/styled-system';
|
|
@@ -9,7 +9,7 @@ import { useContextProps, FieldErrorContext } from 'react-aria-components';
|
|
|
9
9
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
10
10
|
|
|
11
11
|
// css-module:./HelperMessage.module.css#css-module
|
|
12
|
-
var HelperMessage_module_default = { "hop-HelperMessage": "HelperMessage-module__hop-
|
|
12
|
+
var HelperMessage_module_default = { "hop-HelperMessage": "HelperMessage-module__hop-HelperMessage___g-wQa", "hop-HelperMessage__icon": "HelperMessage-module__hop-HelperMessage__icon___3-slU" };
|
|
13
13
|
var GlobalHelperMessageCssSelector = "hop-HelperMessage";
|
|
14
14
|
function HelperMessage(props, ref) {
|
|
15
15
|
const validation = useContext(FieldErrorContext);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SearchFieldContext } from './chunk-3NKF5TPD.js';
|
|
2
|
-
import { _InputGroup } from './chunk-
|
|
3
|
-
import { _ClearButton } from './chunk-
|
|
2
|
+
import { _InputGroup } from './chunk-TFELIWJO.js';
|
|
3
|
+
import { _ClearButton } from './chunk-WYBQCRQB.js';
|
|
4
4
|
import { LabelContext } from './chunk-QCA3ZR56.js';
|
|
5
5
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
6
6
|
import { HelperMessageContext } from './chunk-HZKFQ33E.js';
|
|
@@ -17,7 +17,7 @@ import { useContextProps, composeRenderProps, Input, SearchField as SearchField$
|
|
|
17
17
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
18
18
|
|
|
19
19
|
// css-module:./SearchField.module.css#css-module
|
|
20
|
-
var SearchField_module_default = { "hop-SearchField": "SearchField-module__hop-
|
|
20
|
+
var SearchField_module_default = { "hop-SearchField": "SearchField-module__hop-SearchField___1Lofe", "hop-SearchField--fluid": "SearchField-module__hop-SearchField--fluid___FFqyK", "hop-SearchField__Label": "SearchField-module__hop-SearchField__Label___X46if", "hop-SearchField__prefix": "SearchField-module__hop-SearchField__prefix___mdypj", "hop-SearchField__InputGroup": "SearchField-module__hop-SearchField__InputGroup___-mBBv", "hop-SearchField--clearable": "SearchField-module__hop-SearchField--clearable___7zPYO", "hop-SearchField__ErrorMessage": "SearchField-module__hop-SearchField__ErrorMessage___ETtN4", "hop-SearchField__HelperMessage": "SearchField-module__hop-SearchField__HelperMessage___yE4eo", "hop-SearchField__ClearButton": "SearchField-module__hop-SearchField__ClearButton___-jk3D" };
|
|
21
21
|
var GlobalSearchFieldCssSelector = "hop-SearchField";
|
|
22
22
|
function SearchField(props, ref) {
|
|
23
23
|
var _a;
|
|
@@ -38,6 +38,7 @@ function SearchField(props, ref) {
|
|
|
38
38
|
icon = /* @__PURE__ */ jsx(SearchIcon, {}),
|
|
39
39
|
isDisabled,
|
|
40
40
|
isInvalid,
|
|
41
|
+
isRequired,
|
|
41
42
|
...otherProps
|
|
42
43
|
} = ownProps;
|
|
43
44
|
const inputRef = useObjectRef(mergeRefs(userProvidedInputRef, props.inputRef !== void 0 ? props.inputRef : null));
|
|
@@ -89,7 +90,7 @@ function SearchField(props, ref) {
|
|
|
89
90
|
SlotProvider,
|
|
90
91
|
{
|
|
91
92
|
values: [
|
|
92
|
-
[LabelContext, { className: SearchField_module_default["hop-SearchField__Label"] }],
|
|
93
|
+
[LabelContext, { className: SearchField_module_default["hop-SearchField__Label"], isRequired }],
|
|
93
94
|
[HelperMessageContext, { className: SearchField_module_default["hop-SearchField__HelperMessage"] }],
|
|
94
95
|
[ErrorMessageContext, { className: SearchField_module_default["hop-SearchField__ErrorMessage"] }]
|
|
95
96
|
],
|
|
@@ -107,6 +108,7 @@ function SearchField(props, ref) {
|
|
|
107
108
|
className: classNames,
|
|
108
109
|
isDisabled,
|
|
109
110
|
isInvalid,
|
|
111
|
+
isRequired,
|
|
110
112
|
...otherProps,
|
|
111
113
|
children: childrenMarkup
|
|
112
114
|
}
|
|
@@ -7,7 +7,7 @@ import { useContextProps } from 'react-aria-components';
|
|
|
7
7
|
import { jsx } from 'react/jsx-runtime';
|
|
8
8
|
|
|
9
9
|
// css-module:./ListBoxItemSkeleton.module.css#css-module
|
|
10
|
-
var ListBoxItemSkeleton_module_default = { "hop-ListBoxItemSkeleton": "ListBoxItemSkeleton-module__hop-
|
|
10
|
+
var ListBoxItemSkeleton_module_default = { "hop-ListBoxItemSkeleton": "ListBoxItemSkeleton-module__hop-ListBoxItemSkeleton___gNkoN", "placeholder-shimmer": "ListBoxItemSkeleton-module__placeholder-shimmer___NWJHR", "hop-ListBoxItemSkeleton--xs": "ListBoxItemSkeleton-module__hop-ListBoxItemSkeleton--xs___FVwx5", "hop-ListBoxItemSkeleton--sm": "ListBoxItemSkeleton-module__hop-ListBoxItemSkeleton--sm___NUBWK", "hop-ListBoxItemSkeleton--md": "ListBoxItemSkeleton-module__hop-ListBoxItemSkeleton--md___8jdqN", "hop-ListBoxItemSkeleton--lg": "ListBoxItemSkeleton-module__hop-ListBoxItemSkeleton--lg___e6YxG" };
|
|
11
11
|
var GlobalListBoxItemSkeletonCssSelector = "hop-ListBoxItemSkeleton";
|
|
12
12
|
function ListBoxItemSkeleton(props, ref) {
|
|
13
13
|
var _a;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ClearButtonContext } from './chunk-DXVKHP4V.js';
|
|
2
|
-
import { _EmbeddedButton } from './chunk-
|
|
3
|
-
import { useLocalizedString } from './chunk-
|
|
2
|
+
import { _EmbeddedButton } from './chunk-DZKJZSTQ.js';
|
|
3
|
+
import { useLocalizedString } from './chunk-F4H76S4H.js';
|
|
4
4
|
import { DismissIcon } from '@hopper-ui/icons';
|
|
5
5
|
import { forwardRef } from 'react';
|
|
6
6
|
import { useContextProps } from 'react-aria-components';
|