@hopper-ui/components 1.3.32 → 1.3.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/Avatar/src/AnonymousAvatar.css +44 -37
- package/dist/Avatar/src/AnonymousAvatar.js +2 -2
- package/dist/Avatar/src/Avatar.css +62 -55
- package/dist/Avatar/src/Avatar.js +3 -3
- package/dist/Avatar/src/DeletedAvatar.css +44 -37
- package/dist/Avatar/src/DeletedAvatar.js +2 -2
- package/dist/Avatar/src/RichIconAvatarImage.css +44 -37
- package/dist/Avatar/src/RichIconAvatarImage.js +1 -1
- package/dist/Avatar/src/index.css +62 -55
- package/dist/Avatar/src/index.js +5 -5
- package/dist/Badge/src/Badge.css +49 -42
- package/dist/Badge/src/Badge.js +2 -2
- package/dist/Badge/src/FloatingBadge.css +44 -37
- package/dist/Badge/src/FloatingBadge.js +1 -1
- package/dist/Badge/src/index.css +59 -52
- package/dist/Badge/src/index.js +3 -3
- package/dist/Card/src/Card.css +39 -30
- package/dist/Card/src/Card.js +2 -2
- package/dist/Card/src/index.css +39 -30
- package/dist/Card/src/index.js +2 -2
- package/dist/ComboBox/src/ComboBox.css +578 -570
- package/dist/ComboBox/src/ComboBox.js +28 -24
- package/dist/ComboBox/src/index.css +578 -570
- package/dist/ComboBox/src/index.js +28 -24
- package/dist/Disclosure/src/Disclosure.css +305 -0
- package/dist/Disclosure/src/Disclosure.d.ts +16 -0
- package/dist/Disclosure/src/Disclosure.js +9 -0
- package/dist/Disclosure/src/DisclosureContext.d.ts +8 -0
- package/dist/Disclosure/src/DisclosureContext.js +2 -0
- package/dist/Disclosure/src/DisclosureHeader.css +405 -0
- package/dist/Disclosure/src/DisclosureHeader.d.ts +21 -0
- package/dist/Disclosure/src/DisclosureHeader.js +22 -0
- package/dist/Disclosure/src/DisclosureHeaderContext.d.ts +9 -0
- package/dist/Disclosure/src/DisclosureHeaderContext.js +2 -0
- package/dist/Disclosure/src/DisclosurePanel.css +292 -0
- package/dist/Disclosure/src/DisclosurePanel.d.ts +15 -0
- package/dist/Disclosure/src/DisclosurePanel.js +22 -0
- package/dist/Disclosure/src/DisclosurePanelContext.d.ts +8 -0
- package/dist/Disclosure/src/DisclosurePanelContext.js +2 -0
- package/dist/Disclosure/src/index.css +526 -0
- package/dist/Disclosure/src/index.d.ts +10 -0
- package/dist/Disclosure/src/index.js +27 -0
- package/dist/Divider/src/Divider.css +36 -29
- package/dist/Divider/src/Divider.js +1 -1
- package/dist/Divider/src/index.css +36 -29
- package/dist/Divider/src/index.js +1 -1
- package/dist/ErrorMessage/src/ErrorMessage.css +36 -29
- package/dist/ErrorMessage/src/ErrorMessage.js +2 -2
- package/dist/ErrorMessage/src/index.css +36 -29
- package/dist/ErrorMessage/src/index.js +2 -2
- package/dist/Form/src/Form.css +28 -5005
- package/dist/Form/src/Form.d.ts +6 -3
- package/dist/Form/src/Form.js +2 -28
- package/dist/Form/src/FormContext.d.ts +3 -3
- package/dist/Form/src/FormContext.js +1 -1
- package/dist/Form/src/index.css +28 -5005
- package/dist/Form/src/index.d.ts +1 -1
- package/dist/Form/src/index.js +2 -28
- package/dist/HelperMessage/src/HelperMessage.css +36 -29
- package/dist/HelperMessage/src/HelperMessage.js +2 -2
- package/dist/HelperMessage/src/index.css +36 -29
- package/dist/HelperMessage/src/index.js +2 -2
- package/dist/IconList/src/IconList.css +35 -28
- package/dist/IconList/src/IconList.js +1 -1
- package/dist/IconList/src/index.css +35 -28
- package/dist/IconList/src/index.js +1 -1
- package/dist/Link/src/Link.css +56 -49
- package/dist/Link/src/Link.js +9 -7
- package/dist/Link/src/index.css +56 -49
- package/dist/Link/src/index.js +9 -7
- package/dist/ListBox/src/ListBox.css +281 -274
- package/dist/ListBox/src/ListBox.js +15 -13
- package/dist/ListBox/src/ListBoxItem.css +269 -262
- package/dist/ListBox/src/ListBoxItem.js +13 -11
- package/dist/ListBox/src/ListBoxItemSkeleton.css +41 -34
- package/dist/ListBox/src/ListBoxItemSkeleton.js +1 -1
- package/dist/ListBox/src/index.css +281 -274
- package/dist/ListBox/src/index.js +15 -13
- package/dist/Section/src/Section.js +1 -1
- package/dist/Section/src/index.js +1 -1
- package/dist/Select/src/Select.css +582 -564
- package/dist/Select/src/Select.js +29 -25
- package/dist/Select/src/SelectValue.css +68 -61
- package/dist/Select/src/SelectValue.js +7 -5
- package/dist/Select/src/index.css +582 -564
- package/dist/Select/src/index.js +29 -25
- package/dist/Spinner/src/Spinner.css +44 -37
- package/dist/Spinner/src/Spinner.js +2 -2
- package/dist/Spinner/src/index.css +44 -37
- package/dist/Spinner/src/index.js +2 -2
- package/dist/{tag/src/TagList.css → ToggleArrow/src/ToggleArrow.css} +44 -27
- package/dist/ToggleArrow/src/ToggleArrow.d.ts +21 -0
- package/dist/ToggleArrow/src/ToggleArrow.js +4 -0
- package/dist/ToggleArrow/src/ToggleArrowContext.d.ts +10 -0
- package/dist/ToggleArrow/src/ToggleArrowContext.js +2 -0
- package/dist/ToggleArrow/src/index.css +243 -0
- package/dist/ToggleArrow/src/index.d.ts +7 -0
- package/dist/ToggleArrow/src/index.js +4 -0
- package/dist/buttons/src/Button.css +100 -93
- package/dist/buttons/src/Button.js +11 -9
- package/dist/buttons/src/ButtonGroup.css +45 -38
- package/dist/buttons/src/ButtonGroup.js +1 -1
- package/dist/buttons/src/ClearButton.css +105 -98
- package/dist/buttons/src/ClearButton.js +2 -2
- package/dist/buttons/src/EmbeddedButton.css +105 -98
- package/dist/buttons/src/EmbeddedButton.js +1 -1
- package/dist/buttons/src/LinkButton.css +109 -102
- package/dist/buttons/src/LinkButton.js +10 -8
- package/dist/buttons/src/index.css +256 -249
- package/dist/buttons/src/index.js +15 -13
- package/dist/checkbox/src/Checkbox.css +53 -46
- package/dist/checkbox/src/Checkbox.js +10 -8
- package/dist/checkbox/src/CheckboxField.css +93 -86
- package/dist/checkbox/src/CheckboxField.js +4 -2
- package/dist/checkbox/src/CheckboxGroup.css +105 -98
- package/dist/checkbox/src/CheckboxGroup.js +9 -7
- package/dist/checkbox/src/DecorativeCheckbox.css +61 -54
- package/dist/checkbox/src/DecorativeCheckbox.js +10 -8
- package/dist/checkbox/src/index.css +105 -98
- package/dist/checkbox/src/index.js +17 -15
- package/dist/{chunk-B2PZHGGT.js → chunk-2DFRNPSR.js} +2 -2
- package/dist/{chunk-PR6Q2XJD.js → chunk-333PGOMR.js} +18 -10
- package/dist/{chunk-SWQEWYNM.js → chunk-566DZ4RC.js} +1 -1
- package/dist/{chunk-2PIWQBQ7.js → chunk-5SMJSNMW.js} +2 -2
- package/dist/chunk-5ZXBTCX3.js +124 -0
- package/dist/{chunk-425TRLX5.js → chunk-6AMCBCFX.js} +2 -2
- package/dist/{chunk-7ITDXJPN.js → chunk-6L4MTZT4.js} +7 -5
- package/dist/{chunk-BAX352BZ.js → chunk-6NX5XSZH.js} +8 -2
- package/dist/{chunk-2ZAWI3VO.js → chunk-75I7LTO3.js} +1 -1
- package/dist/chunk-7CJXILRD.js +7 -0
- package/dist/{chunk-UOVCHVGX.js → chunk-7FQHEXNP.js} +7 -5
- package/dist/{chunk-7OZNJCXL.js → chunk-7FQXKGYA.js} +8 -6
- package/dist/{chunk-VYNPGUH2.js → chunk-7FV3FDFI.js} +1 -1
- package/dist/{chunk-F3GTLFKR.js → chunk-7H7A6BGG.js} +1 -1
- package/dist/{chunk-ZUL2DWRU.js → chunk-BFYJWYHU.js} +2 -2
- package/dist/{chunk-MY7R6ZMF.js → chunk-C2ON6QTY.js} +2 -2
- package/dist/{chunk-FXB7BBJB.js → chunk-CC5QQ4YM.js} +2 -2
- package/dist/{chunk-ZTS67CFU.js → chunk-CS2YF25E.js} +2 -2
- package/dist/{chunk-QDIICTRS.js → chunk-DVIAXHYK.js} +4 -2
- package/dist/{chunk-MOIFFJJ3.js → chunk-E6TOJ3QU.js} +1 -1
- package/dist/{chunk-WXP3P4KY.js → chunk-EABCCXRD.js} +4 -4
- package/dist/{chunk-X5SCISRD.js → chunk-EXO4OJ7Z.js} +2 -2
- package/dist/{chunk-Y75VH6OP.js → chunk-G7QY3NWV.js} +1 -1
- package/dist/chunk-GFRTCF4B.js +7 -0
- package/dist/{chunk-UJAYZEVR.js → chunk-GO5KCRGN.js} +2 -2
- package/dist/{chunk-UEZ6JMBX.js → chunk-GQJ7GNYQ.js} +1 -1
- package/dist/chunk-GUCWHJZX.js +79 -0
- package/dist/chunk-GVEPINW7.js +67 -0
- package/dist/{chunk-VYFGV7LF.js → chunk-GYJQJEJS.js} +5 -3
- package/dist/chunk-J6WBI2I2.js +7 -0
- package/dist/{chunk-OEMWDVBB.js → chunk-K22HKHG2.js} +3 -3
- package/dist/{chunk-HPEGBHAQ.js → chunk-K5WUDBPF.js} +1 -1
- package/dist/{chunk-OFYHUD3N.js → chunk-KFMYXZFT.js} +2 -2
- package/dist/{chunk-N7ORIARY.js → chunk-KFPJZFZS.js} +2 -2
- package/dist/{chunk-OAUTLKSG.js → chunk-L7ORX4VV.js} +9 -7
- package/dist/chunk-LHX75LVJ.js +50 -0
- package/dist/{chunk-77K422AK.js → chunk-LVCA23CC.js} +1 -1
- package/dist/chunk-MUAXK42C.js +7 -0
- package/dist/{chunk-WJ6YDFFC.js → chunk-NIERUDZ6.js} +1 -1
- package/dist/{chunk-MMCWVCOD.js → chunk-NR7UTMYX.js} +2 -2
- package/dist/{chunk-JHZLRSJY.js → chunk-NUV3PDGE.js} +1 -1
- package/dist/{chunk-5YGTZWHS.js → chunk-O5LFX4XZ.js} +1 -1
- package/dist/{chunk-U7NERCPG.js → chunk-OFQN5TXX.js} +8 -6
- package/dist/{chunk-6XSOF5IT.js → chunk-PUQ7RTX4.js} +5 -3
- package/dist/{chunk-EURJK4ZT.js → chunk-Q7NXUUB3.js} +1 -1
- package/dist/{chunk-NLZXVLBW.js → chunk-QTD66QJH.js} +2 -2
- package/dist/{chunk-5TE4QKZ2.js → chunk-R5343IYO.js} +2 -2
- package/dist/chunk-RAAORA53.js +123 -0
- package/dist/{chunk-JZV3EU5P.js → chunk-RBENLQVB.js} +8 -6
- package/dist/{chunk-4XMDZ5QF.js → chunk-SBSBVVKM.js} +1 -1
- package/dist/chunk-SH3CLZKH.js +68 -0
- package/dist/{chunk-SMNKMZIC.js → chunk-SNDPAUAL.js} +10 -8
- package/dist/{chunk-MCSPPEQN.js → chunk-T3PSAQEK.js} +1 -1
- package/dist/{chunk-PME32XAH.js → chunk-U5SHNMC3.js} +8 -6
- package/dist/{chunk-KXZYWFM3.js → chunk-UMCSSGCS.js} +6 -4
- package/dist/{chunk-7RTEFFZS.js → chunk-VHRMFZPJ.js} +5 -5
- package/dist/{chunk-UYXVO6TB.js → chunk-WILQEDLK.js} +3 -3
- package/dist/{chunk-XTY7LASB.js → chunk-WWXZNKBE.js} +3 -3
- package/dist/{chunk-YTKE4ERV.js → chunk-Z57BGAOZ.js} +19 -11
- package/dist/{chunk-XDJMIWOT.js → chunk-ZRT7MWIL.js} +6 -4
- package/dist/index.css +1244 -957
- package/dist/index.d.ts +8 -4
- package/dist/index.js +84 -78
- package/dist/inputs/src/InputGroup.css +271 -264
- package/dist/inputs/src/InputGroup.js +1 -1
- package/dist/inputs/src/NumberField.css +293 -286
- package/dist/inputs/src/NumberField.js +14 -12
- package/dist/inputs/src/PasswordField.css +281 -274
- package/dist/inputs/src/PasswordField.js +13 -11
- package/dist/inputs/src/RemainingCharacterCount.css +37 -30
- package/dist/inputs/src/RemainingCharacterCount.js +7 -5
- package/dist/inputs/src/SearchField.css +287 -280
- package/dist/inputs/src/SearchField.js +14 -12
- package/dist/inputs/src/TextArea.css +288 -281
- package/dist/inputs/src/TextArea.js +13 -11
- package/dist/inputs/src/TextField.css +285 -278
- package/dist/inputs/src/TextField.js +17 -15
- package/dist/inputs/src/index.css +331 -324
- package/dist/inputs/src/index.js +25 -23
- package/dist/overlays/Popover/src/Popover.css +548 -541
- package/dist/overlays/Popover/src/Popover.js +11 -9
- package/dist/overlays/Popover/src/index.css +548 -541
- package/dist/overlays/Popover/src/index.js +11 -9
- package/dist/radio/src/DecorativeRadio.css +61 -54
- package/dist/radio/src/DecorativeRadio.js +9 -7
- package/dist/radio/src/Radio.css +53 -46
- package/dist/radio/src/Radio.js +9 -7
- package/dist/radio/src/RadioField.css +40 -33
- package/dist/radio/src/RadioField.js +2 -2
- package/dist/radio/src/RadioGroup.css +105 -98
- package/dist/radio/src/RadioGroup.js +9 -7
- package/dist/radio/src/index.css +105 -98
- package/dist/radio/src/index.js +17 -15
- package/dist/switch/src/Switch.css +50 -43
- package/dist/switch/src/Switch.js +9 -7
- package/dist/switch/src/SwitchField.css +40 -33
- package/dist/switch/src/SwitchField.js +2 -2
- package/dist/switch/src/index.css +56 -49
- package/dist/switch/src/index.js +10 -8
- package/dist/tag/src/Tag.css +397 -390
- package/dist/tag/src/Tag.js +12 -10
- package/dist/tag/src/TagGroup.css +44 -37
- package/dist/tag/src/TagGroup.d.ts +16 -10
- package/dist/tag/src/TagGroup.js +14 -4
- package/dist/tag/src/TagGroupContext.d.ts +2 -1
- package/dist/tag/src/index.css +407 -400
- package/dist/tag/src/index.d.ts +2 -3
- package/dist/tag/src/index.js +19 -16
- package/dist/typography/Heading/src/Heading.css +34 -27
- package/dist/typography/Heading/src/Heading.js +1 -1
- package/dist/typography/Heading/src/index.css +34 -27
- package/dist/typography/Heading/src/index.js +1 -1
- package/dist/typography/Label/src/Label.css +34 -27
- package/dist/typography/Label/src/Label.js +3 -1
- package/dist/typography/Label/src/index.css +34 -27
- package/dist/typography/Label/src/index.js +3 -1
- package/dist/typography/OverlineText/src/OverlineText.css +34 -27
- package/dist/typography/OverlineText/src/OverlineText.js +1 -1
- package/dist/typography/OverlineText/src/index.css +34 -27
- package/dist/typography/OverlineText/src/index.js +1 -1
- package/dist/typography/Text/src/Text.css +34 -27
- package/dist/typography/Text/src/Text.js +1 -1
- package/dist/typography/Text/src/index.css +34 -27
- package/dist/typography/Text/src/index.js +1 -1
- package/dist/utils/src/EnsureTextWrapper.css +34 -27
- package/dist/utils/src/EnsureTextWrapper.d.ts +1 -1
- package/dist/utils/src/EnsureTextWrapper.js +7 -5
- package/dist/utils/src/index.css +34 -27
- package/dist/utils/src/index.js +7 -5
- package/dist/utils/src/types.d.ts +1 -1
- package/package.json +9 -9
- package/dist/chunk-52EKMM7G.js +0 -94
- package/dist/chunk-TPVDUGOO.js +0 -44
- package/dist/chunk-UYDOZLJW.js +0 -153
- package/dist/chunk-XLKYXKWE.js +0 -7
- package/dist/tag/src/TagList.d.ts +0 -15
- package/dist/tag/src/TagList.js +0 -4
- package/dist/tag/src/TagListContext.d.ts +0 -8
- package/dist/tag/src/TagListContext.js +0 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LinkContext } from './chunk-4VVNSXIB.js';
|
|
2
|
-
import { ensureTextWrapper } from './chunk-UYXVO6TB.js';
|
|
3
2
|
import { IconListContext } from './chunk-DHVVYSLB.js';
|
|
3
|
+
import { ensureTextWrapper } from './chunk-WILQEDLK.js';
|
|
4
4
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
5
5
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
6
6
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
@@ -12,7 +12,7 @@ import { useContextProps, composeRenderProps, DEFAULT_SLOT, Link as Link$1 } fro
|
|
|
12
12
|
import { jsx } from 'react/jsx-runtime';
|
|
13
13
|
|
|
14
14
|
// css-module:./Link.module.css#css-module
|
|
15
|
-
var Link_module_default = { "hop-Link": "Link-module__hop-
|
|
15
|
+
var Link_module_default = { "hop-Link": "Link-module__hop-Link___ztDdh", "hop-Link--quiet": "Link-module__hop-Link--quiet___NQCmZ", "hop-Link--primary": "Link-module__hop-Link--primary___dFZ6l", "hop-Link--secondary": "Link-module__hop-Link--secondary___MqpEn", "hop-Link__icon": "Link-module__hop-Link__icon___sE6CK", "hop-Link__icon-list": "Link-module__hop-Link__icon-list___FC4VI", "hop-Link__text": "Link-module__hop-Link__text___-v-OA", "hop-Link__start-icon": "Link-module__hop-Link__start-icon___fD7L-", "hop-Link__start-icon-list": "Link-module__hop-Link__start-icon-list___siiJs" };
|
|
16
16
|
var GlobalLinkCssSelector = "hop-Link";
|
|
17
17
|
var LinkToIconSizeAdapter = {
|
|
18
18
|
inherit: void 0,
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { TagGroupContext } from './chunk-LCAS3YQV.js';
|
|
2
|
+
import { TagContext } from './chunk-EWMWQ2MC.js';
|
|
3
|
+
import { _HelperMessage } from './chunk-EXO4OJ7Z.js';
|
|
4
|
+
import { _ErrorMessage } from './chunk-KFPJZFZS.js';
|
|
5
|
+
import { _Label } from './chunk-6NX5XSZH.js';
|
|
6
|
+
import { useFormProps } from './chunk-SH3CLZKH.js';
|
|
7
|
+
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
8
|
+
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
9
|
+
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
10
|
+
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
11
|
+
import clsx from 'clsx';
|
|
12
|
+
import { forwardRef } from 'react';
|
|
13
|
+
import { useContextProps, composeRenderProps, FieldErrorContext, TagGroup as TagGroup$1, TagList } from 'react-aria-components';
|
|
14
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
15
|
+
|
|
16
|
+
// css-module:./TagGroup.module.css#css-module
|
|
17
|
+
var TagGroup_module_default = { "hop-TagGroup": "TagGroup-module__hop-TagGroup___-82Bs", "hop-TagGroup__label": "TagGroup-module__hop-TagGroup__label___8v0Gh", "hop-TagGroup__list": "TagGroup-module__hop-TagGroup__list___6gKT9", "hop-TagGroup__error-message": "TagGroup-module__hop-TagGroup__error-message___uSlkg", "hop-TagGroup__helper-message": "TagGroup-module__hop-TagGroup__helper-message___2WpP7" };
|
|
18
|
+
var GlobalTagGroupCssSelector = "hop-TagGroup";
|
|
19
|
+
function TagGroup(props, ref) {
|
|
20
|
+
var _a;
|
|
21
|
+
[props, ref] = useContextProps(props, ref, TagGroupContext);
|
|
22
|
+
props = useFormProps(props);
|
|
23
|
+
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
24
|
+
const {
|
|
25
|
+
className,
|
|
26
|
+
children,
|
|
27
|
+
description,
|
|
28
|
+
errorMessage,
|
|
29
|
+
isInvalid = false,
|
|
30
|
+
items,
|
|
31
|
+
label,
|
|
32
|
+
necessityIndicator,
|
|
33
|
+
renderEmptyState,
|
|
34
|
+
style: styleProp,
|
|
35
|
+
size: sizeProp,
|
|
36
|
+
tagListProps,
|
|
37
|
+
variant,
|
|
38
|
+
...otherProps
|
|
39
|
+
} = ownProps;
|
|
40
|
+
const size = (_a = useResponsiveValue(sizeProp)) != null ? _a : "md";
|
|
41
|
+
const { stylingProps: tagListStylingProps, ...tagListOwnProps } = useStyledSystem(tagListProps != null ? tagListProps : {});
|
|
42
|
+
const {
|
|
43
|
+
className: tagListClassName,
|
|
44
|
+
style: tagListStyleProp,
|
|
45
|
+
...otherTagListProps
|
|
46
|
+
} = tagListOwnProps;
|
|
47
|
+
const classNames = clsx(
|
|
48
|
+
className,
|
|
49
|
+
GlobalTagGroupCssSelector,
|
|
50
|
+
stylingProps.className,
|
|
51
|
+
cssModule(
|
|
52
|
+
TagGroup_module_default,
|
|
53
|
+
"hop-TagGroup",
|
|
54
|
+
size
|
|
55
|
+
)
|
|
56
|
+
);
|
|
57
|
+
const tagListClassNames = composeClassnameRenderProps(
|
|
58
|
+
tagListClassName,
|
|
59
|
+
cssModule(
|
|
60
|
+
TagGroup_module_default,
|
|
61
|
+
"hop-TagGroup__list",
|
|
62
|
+
size
|
|
63
|
+
),
|
|
64
|
+
tagListStylingProps.className
|
|
65
|
+
);
|
|
66
|
+
const style = {
|
|
67
|
+
...stylingProps.style,
|
|
68
|
+
...styleProp
|
|
69
|
+
};
|
|
70
|
+
const tagListStyle = composeRenderProps(tagListStyleProp, (prev) => {
|
|
71
|
+
return {
|
|
72
|
+
...tagListStylingProps.style,
|
|
73
|
+
...prev
|
|
74
|
+
};
|
|
75
|
+
});
|
|
76
|
+
return /* @__PURE__ */ jsx(
|
|
77
|
+
SlotProvider,
|
|
78
|
+
{
|
|
79
|
+
values: [
|
|
80
|
+
[TagContext, {
|
|
81
|
+
className: TagGroup_module_default["hop-TagGroup__tag"],
|
|
82
|
+
isInvalid,
|
|
83
|
+
size,
|
|
84
|
+
variant
|
|
85
|
+
}],
|
|
86
|
+
[FieldErrorContext, {
|
|
87
|
+
isInvalid,
|
|
88
|
+
validationErrors: [],
|
|
89
|
+
validationDetails: {}
|
|
90
|
+
}]
|
|
91
|
+
],
|
|
92
|
+
children: /* @__PURE__ */ jsxs(
|
|
93
|
+
TagGroup$1,
|
|
94
|
+
{
|
|
95
|
+
ref,
|
|
96
|
+
className: classNames,
|
|
97
|
+
style,
|
|
98
|
+
...otherProps,
|
|
99
|
+
children: [
|
|
100
|
+
label && /* @__PURE__ */ jsx(_Label, { className: TagGroup_module_default["hop-TagGroup__Label"], necessityIndicator, children: label }),
|
|
101
|
+
/* @__PURE__ */ jsx(
|
|
102
|
+
TagList,
|
|
103
|
+
{
|
|
104
|
+
items,
|
|
105
|
+
renderEmptyState,
|
|
106
|
+
className: tagListClassNames,
|
|
107
|
+
style: tagListStyle,
|
|
108
|
+
...otherTagListProps,
|
|
109
|
+
children
|
|
110
|
+
}
|
|
111
|
+
),
|
|
112
|
+
description && /* @__PURE__ */ jsx(_HelperMessage, { className: TagGroup_module_default["hop-TagGroup__error-message"], hideIcon: true, children: description }),
|
|
113
|
+
/* @__PURE__ */ jsx(_ErrorMessage, { className: TagGroup_module_default["hop-TagGroup__helper-message"], hideIcon: true, children: errorMessage })
|
|
114
|
+
]
|
|
115
|
+
}
|
|
116
|
+
)
|
|
117
|
+
}
|
|
118
|
+
);
|
|
119
|
+
}
|
|
120
|
+
var _TagGroup = forwardRef(TagGroup);
|
|
121
|
+
_TagGroup.displayName = "TagGroup";
|
|
122
|
+
|
|
123
|
+
export { GlobalTagGroupCssSelector, _TagGroup };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { _DecorativeRadio } from './chunk-
|
|
2
|
-
import { _DecorativeCheckbox } from './chunk-
|
|
3
|
-
import { ensureTextWrapper } from './chunk-UYXVO6TB.js';
|
|
1
|
+
import { _DecorativeRadio } from './chunk-GO5KCRGN.js';
|
|
2
|
+
import { _DecorativeCheckbox } from './chunk-K22HKHG2.js';
|
|
4
3
|
import { ListBoxItemContext } from './chunk-Y2POLIXK.js';
|
|
5
|
-
import { _ListBoxItemSkeleton } from './chunk-
|
|
4
|
+
import { _ListBoxItemSkeleton } from './chunk-NIERUDZ6.js';
|
|
6
5
|
import { IconListContext } from './chunk-DHVVYSLB.js';
|
|
6
|
+
import { ensureTextWrapper } from './chunk-WILQEDLK.js';
|
|
7
7
|
import { BadgeContext } from './chunk-CQDLZ42T.js';
|
|
8
8
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
9
9
|
import { AvatarContext } from './chunk-AES7QBQE.js';
|
|
@@ -18,7 +18,7 @@ import { useContextProps, composeRenderProps, ListBoxItem as ListBoxItem$1, List
|
|
|
18
18
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
19
19
|
|
|
20
20
|
// css-module:./ListBoxItem.module.css#css-module
|
|
21
|
-
var ListBoxItem_module_default = { "hop-ListBoxItem": "ListBoxItem-module__hop-
|
|
21
|
+
var ListBoxItem_module_default = { "hop-ListBoxItem": "ListBoxItem-module__hop-ListBoxItem___OY7dv", "hop-ListBoxItem--xs": "ListBoxItem-module__hop-ListBoxItem--xs___Zx26e", "hop-ListBoxItem--sm": "ListBoxItem-module__hop-ListBoxItem--sm___azhDu", "hop-ListBoxItem--md": "ListBoxItem-module__hop-ListBoxItem--md___qOF-E", "hop-ListBoxItem--lg": "ListBoxItem-module__hop-ListBoxItem--lg___kBOyF", "hop-ListBoxItem__inner": "ListBoxItem-module__hop-ListBoxItem__inner___B-PtJ", "hop-ListBoxItem__checkmark": "ListBoxItem-module__hop-ListBoxItem__checkmark___iEHH8", "hop-ListBoxItem__description": "ListBoxItem-module__hop-ListBoxItem__description___-8A0f", "hop-ListBoxItem__radio": "ListBoxItem-module__hop-ListBoxItem__radio___fm0P0", "hop-ListBoxItem__checkbox": "ListBoxItem-module__hop-ListBoxItem__checkbox___sJL8T", "hop-ListBoxItem__avatar": "ListBoxItem-module__hop-ListBoxItem__avatar___3YvjT", "hop-ListBoxItem__icon-list": "ListBoxItem-module__hop-ListBoxItem__icon-list___MUTFV", "hop-ListBoxItem__icon": "ListBoxItem-module__hop-ListBoxItem__icon___g21-2", "hop-ListBoxItem__label": "ListBoxItem-module__hop-ListBoxItem__label___rGZNX", "hop-ListBoxItem__end-icon-list": "ListBoxItem-module__hop-ListBoxItem__end-icon-list___sVARh", "hop-ListBoxItem__end-icon": "ListBoxItem-module__hop-ListBoxItem__end-icon___WD-AV", "hop-ListBoxItem__badge": "ListBoxItem-module__hop-ListBoxItem__badge___JJWk-" };
|
|
22
22
|
var GlobalListBoxItemCssSelector = "hop-ListBoxItem";
|
|
23
23
|
var ListBoxItemToIconSizeAdapter = {
|
|
24
24
|
xs: "sm",
|
|
@@ -39,6 +39,7 @@ var ListBoxItemToAvatarSizeAdapter = {
|
|
|
39
39
|
lg: "md"
|
|
40
40
|
};
|
|
41
41
|
function ListBoxItemInner(props) {
|
|
42
|
+
var _a, _b;
|
|
42
43
|
const listStateContext = useContext(ListStateContext);
|
|
43
44
|
const {
|
|
44
45
|
selectionMode,
|
|
@@ -57,7 +58,8 @@ function ListBoxItemInner(props) {
|
|
|
57
58
|
const isRadio = selectionIndicator === "input" && selectionMode === "single";
|
|
58
59
|
const isCheckbox = selectionIndicator === "input" && selectionMode === "multiple";
|
|
59
60
|
const isCheck = selectionIndicator === "check" && selectionMode !== "none";
|
|
60
|
-
const
|
|
61
|
+
const selectedKeysLength = (_b = (_a = listStateContext == null ? void 0 : listStateContext.selectionManager) == null ? void 0 : _a.selectedKeys) == null ? void 0 : _b.size;
|
|
62
|
+
const isListHasSelection = (selectedKeysLength != null ? selectedKeysLength : 0) > 0;
|
|
61
63
|
const [isListHasSelectionEnd, setIsListHasSelectionEnd] = useState(isListHasSelection);
|
|
62
64
|
const handleTransitionEnd = (event) => {
|
|
63
65
|
if (event.propertyName === "grid-template-columns") {
|
|
@@ -10,7 +10,7 @@ import { useContextProps } from 'react-aria-components';
|
|
|
10
10
|
import { jsx } from 'react/jsx-runtime';
|
|
11
11
|
|
|
12
12
|
// css-module:./FloatingBadge.module.css#css-module
|
|
13
|
-
var FloatingBadge_module_default = { "hop-FloatingBadge": "FloatingBadge-module__hop-
|
|
13
|
+
var FloatingBadge_module_default = { "hop-FloatingBadge": "FloatingBadge-module__hop-FloatingBadge___GP4fp", "hop-FloatingBadge__badge": "FloatingBadge-module__hop-FloatingBadge__badge___sfFMJ" };
|
|
14
14
|
var GlobalFloatingBadgeCssSelector = "hop-FloatingBadge";
|
|
15
15
|
function FloatingBadge(props, ref) {
|
|
16
16
|
[props, ref] = useContextProps(props, ref, FloatingBadgeContext);
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { FormContext } from './chunk-Q7NXUUB3.js';
|
|
2
|
+
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
3
|
+
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
4
|
+
import clsx from 'clsx';
|
|
5
|
+
import { forwardRef, useContext, useMemo } from 'react';
|
|
6
|
+
import { Form as Form$1 } from 'react-aria-components';
|
|
7
|
+
import { jsx } from 'react/jsx-runtime';
|
|
8
|
+
|
|
9
|
+
// css-module:./Form.module.css#css-module
|
|
10
|
+
var Form_module_default = { "hop-Form": "Form-module__hop-Form___iuRf1" };
|
|
11
|
+
var GlobalFormCssSelector = "hop-Form";
|
|
12
|
+
function useFormProps(props) {
|
|
13
|
+
const ctx = useContext(FormContext);
|
|
14
|
+
return useMemo(() => {
|
|
15
|
+
let result = props;
|
|
16
|
+
if (ctx) {
|
|
17
|
+
result = { ...props };
|
|
18
|
+
for (const key in ctx) {
|
|
19
|
+
if (result[key] === void 0) {
|
|
20
|
+
result[key] = ctx[key];
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
return result;
|
|
25
|
+
}, [ctx, props]);
|
|
26
|
+
}
|
|
27
|
+
function Form(props, ref) {
|
|
28
|
+
var _a;
|
|
29
|
+
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
30
|
+
const {
|
|
31
|
+
className,
|
|
32
|
+
children,
|
|
33
|
+
style,
|
|
34
|
+
isFluid,
|
|
35
|
+
isDisabled,
|
|
36
|
+
necessityIndicator,
|
|
37
|
+
size: sizeProp,
|
|
38
|
+
...otherProps
|
|
39
|
+
} = ownProps;
|
|
40
|
+
const size = (_a = useResponsiveValue(sizeProp)) != null ? _a : "md";
|
|
41
|
+
const classNames = clsx(
|
|
42
|
+
GlobalFormCssSelector,
|
|
43
|
+
cssModule(
|
|
44
|
+
Form_module_default,
|
|
45
|
+
"hop-Form"
|
|
46
|
+
),
|
|
47
|
+
stylingProps.className,
|
|
48
|
+
className
|
|
49
|
+
);
|
|
50
|
+
const mergedStyles = {
|
|
51
|
+
...stylingProps.style,
|
|
52
|
+
...style
|
|
53
|
+
};
|
|
54
|
+
return /* @__PURE__ */ jsx(FormContext.Provider, { value: { isDisabled, isFluid, necessityIndicator, size }, children: /* @__PURE__ */ jsx(
|
|
55
|
+
Form$1,
|
|
56
|
+
{
|
|
57
|
+
ref,
|
|
58
|
+
className: classNames,
|
|
59
|
+
style: mergedStyles,
|
|
60
|
+
...otherProps,
|
|
61
|
+
children
|
|
62
|
+
}
|
|
63
|
+
) });
|
|
64
|
+
}
|
|
65
|
+
var _Form = forwardRef(Form);
|
|
66
|
+
_Form.displayName = "Form";
|
|
67
|
+
|
|
68
|
+
export { GlobalFormCssSelector, _Form, useFormProps };
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { useTruncatedText } from './chunk-Z57VHYOF.js';
|
|
2
|
-
import {
|
|
3
|
-
import { _RemainingCharacterCount } from './chunk-MMCWVCOD.js';
|
|
4
|
-
import { _ClearButton } from './chunk-VYNPGUH2.js';
|
|
2
|
+
import { _RemainingCharacterCount } from './chunk-NR7UTMYX.js';
|
|
5
3
|
import { TextFieldContext } from './chunk-O4XPUINW.js';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
4
|
+
import { _InputGroup } from './chunk-7H7A6BGG.js';
|
|
5
|
+
import { _ClearButton } from './chunk-7FV3FDFI.js';
|
|
6
|
+
import { _HelperMessage } from './chunk-EXO4OJ7Z.js';
|
|
7
|
+
import { ensureTextWrapper } from './chunk-WILQEDLK.js';
|
|
8
|
+
import { _ErrorMessage } from './chunk-KFPJZFZS.js';
|
|
9
|
+
import { _Label } from './chunk-6NX5XSZH.js';
|
|
10
|
+
import { useFormProps } from './chunk-SH3CLZKH.js';
|
|
10
11
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
11
12
|
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
12
13
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
@@ -23,7 +24,7 @@ import { useContextProps, composeRenderProps, Input, TextField as TextField$1 }
|
|
|
23
24
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
24
25
|
|
|
25
26
|
// css-module:./TextField.module.css#css-module
|
|
26
|
-
var TextField_module_default = { "hop-TextField": "TextField-module__hop-
|
|
27
|
+
var TextField_module_default = { "hop-TextField": "TextField-module__hop-TextField___0wa1v", "hop-TextField--fluid": "TextField-module__hop-TextField--fluid___Q-df2", "hop-TextField__Label": "TextField-module__hop-TextField__Label___Lm2Nf", "hop-TextField__prefix": "TextField-module__hop-TextField__prefix___Cd9QR", "hop-TextField__InputGroup": "TextField-module__hop-TextField__InputGroup___-L8XZ", "hop-TextField__ErrorMessage": "TextField-module__hop-TextField__ErrorMessage___RQdGZ", "hop-TextField__HelperMessage": "TextField-module__hop-TextField__HelperMessage___7Oja2" };
|
|
27
28
|
var GlobalTextFieldCssSelector = "hop-TextField";
|
|
28
29
|
function TextField(props, ref) {
|
|
29
30
|
var _a;
|
|
@@ -32,6 +33,7 @@ function TextField(props, ref) {
|
|
|
32
33
|
...propsWithoutRef
|
|
33
34
|
} = props;
|
|
34
35
|
[props, ref] = useContextProps(propsWithoutRef, ref, TextFieldContext);
|
|
36
|
+
props = useFormProps(props);
|
|
35
37
|
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
36
38
|
const [characterCount, setCharacterCount] = useState(() => {
|
|
37
39
|
var _a2, _b, _c, _d;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AvatarContext } from './chunk-AES7QBQE.js';
|
|
2
|
-
import { _RichIconAvatarImage } from './chunk-
|
|
2
|
+
import { _RichIconAvatarImage } from './chunk-566DZ4RC.js';
|
|
3
3
|
import { useRenderProps } from './chunk-NH3IVMXB.js';
|
|
4
4
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
5
5
|
import { DeletedUserRichIcon } from '@hopper-ui/icons';
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { _InputGroup } from './chunk-F3GTLFKR.js';
|
|
2
|
-
import { _ClearButton } from './chunk-VYNPGUH2.js';
|
|
3
1
|
import { SearchFieldContext } from './chunk-3NKF5TPD.js';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
2
|
+
import { _InputGroup } from './chunk-7H7A6BGG.js';
|
|
3
|
+
import { _ClearButton } from './chunk-7FV3FDFI.js';
|
|
4
|
+
import { _HelperMessage } from './chunk-EXO4OJ7Z.js';
|
|
5
|
+
import { _ErrorMessage } from './chunk-KFPJZFZS.js';
|
|
6
|
+
import { _Label } from './chunk-6NX5XSZH.js';
|
|
7
|
+
import { useFormProps } from './chunk-SH3CLZKH.js';
|
|
7
8
|
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
8
9
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
9
10
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
@@ -18,7 +19,7 @@ import { useContextProps, composeRenderProps, Input, SearchField as SearchField$
|
|
|
18
19
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
19
20
|
|
|
20
21
|
// css-module:./SearchField.module.css#css-module
|
|
21
|
-
var SearchField_module_default = { "hop-SearchField": "SearchField-module__hop-
|
|
22
|
+
var SearchField_module_default = { "hop-SearchField": "SearchField-module__hop-SearchField___WVc-Q", "hop-SearchField--fluid": "SearchField-module__hop-SearchField--fluid___ttX6n", "hop-SearchField__Label": "SearchField-module__hop-SearchField__Label___WpBtQ", "hop-SearchField__prefix": "SearchField-module__hop-SearchField__prefix___7ppXL", "hop-SearchField__InputGroup": "SearchField-module__hop-SearchField__InputGroup___mUujJ", "hop-SearchField--clearable": "SearchField-module__hop-SearchField--clearable___HJeNc", "hop-SearchField__ErrorMessage": "SearchField-module__hop-SearchField__ErrorMessage___um1dS", "hop-SearchField__HelperMessage": "SearchField-module__hop-SearchField__HelperMessage___uR6ko", "hop-SearchField__ClearButton": "SearchField-module__hop-SearchField__ClearButton___XsIBc" };
|
|
22
23
|
var GlobalSearchFieldCssSelector = "hop-SearchField";
|
|
23
24
|
function SearchField(props, ref) {
|
|
24
25
|
var _a;
|
|
@@ -27,6 +28,7 @@ function SearchField(props, ref) {
|
|
|
27
28
|
...propsWithoutRef
|
|
28
29
|
} = props;
|
|
29
30
|
[props, ref] = useContextProps(propsWithoutRef, ref, SearchFieldContext);
|
|
31
|
+
props = useFormProps(props);
|
|
30
32
|
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
31
33
|
const {
|
|
32
34
|
className,
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { CheckboxFieldContext } from './chunk-ZGNK4GWA.js';
|
|
2
2
|
import { CheckboxGroupContext } from './chunk-N7YDPVZL.js';
|
|
3
|
-
import { _HelperMessage } from './chunk-X5SCISRD.js';
|
|
4
3
|
import { CheckboxContext } from './chunk-2EAZPH3M.js';
|
|
5
|
-
import {
|
|
6
|
-
import { _ErrorMessage } from './chunk-
|
|
4
|
+
import { _HelperMessage } from './chunk-EXO4OJ7Z.js';
|
|
5
|
+
import { _ErrorMessage } from './chunk-KFPJZFZS.js';
|
|
6
|
+
import { _Label } from './chunk-6NX5XSZH.js';
|
|
7
|
+
import { useFormProps } from './chunk-SH3CLZKH.js';
|
|
7
8
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
8
9
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
9
10
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
@@ -14,11 +15,12 @@ import { useContextProps, composeRenderProps, CheckboxGroup as CheckboxGroup$1 }
|
|
|
14
15
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
15
16
|
|
|
16
17
|
// css-module:./CheckboxGroup.module.css#css-module
|
|
17
|
-
var CheckboxGroup_module_default = { "hop-CheckboxGroup": "CheckboxGroup-module__hop-
|
|
18
|
+
var CheckboxGroup_module_default = { "hop-CheckboxGroup": "CheckboxGroup-module__hop-CheckboxGroup___mhtTe", "hop-CheckboxGroup--bordered": "CheckboxGroup-module__hop-CheckboxGroup--bordered___CdRxU", "hop-CheckboxGroup--sm": "CheckboxGroup-module__hop-CheckboxGroup--sm___gaz-v", "hop-CheckboxGroup--md": "CheckboxGroup-module__hop-CheckboxGroup--md___98Lvg", "hop-CheckboxGroup__label": "CheckboxGroup-module__hop-CheckboxGroup__label___Uy0WD", "hop-CheckboxGroup__list": "CheckboxGroup-module__hop-CheckboxGroup__list___Qs99h", "hop-CheckboxGroup__checkbox": "CheckboxGroup-module__hop-CheckboxGroup__checkbox___ckpf2", "hop-CheckboxGroup__error-message": "CheckboxGroup-module__hop-CheckboxGroup__error-message___6Csfh", "hop-CheckboxGroup__helper-message": "CheckboxGroup-module__hop-CheckboxGroup__helper-message___JZC2F" };
|
|
18
19
|
var GlobalCheckboxGroupCssSelector = "hop-CheckboxGroup";
|
|
19
20
|
function CheckboxGroup(props, ref) {
|
|
20
21
|
var _a, _b, _c;
|
|
21
22
|
[props, ref] = useContextProps(props, ref, CheckboxGroupContext);
|
|
23
|
+
props = useFormProps(props);
|
|
22
24
|
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
23
25
|
const { stylingProps: listStylingProps, ...listProps } = useStyledSystem((_a = ownProps.listProps) != null ? _a : {});
|
|
24
26
|
const {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { PopoverContext } from './chunk-SC6ZK5ON.js';
|
|
2
2
|
import { ButtonGroupContext } from './chunk-VJQ7M2BK.js';
|
|
3
|
-
import {
|
|
3
|
+
import { LinkButtonContext } from './chunk-3UQFC2NQ.js';
|
|
4
|
+
import { ButtonContext } from './chunk-WMTWFKKP.js';
|
|
4
5
|
import { isFunction, isNil } from './chunk-TIPN4VYD.js';
|
|
5
6
|
import { ListBoxContext } from './chunk-UIEP5BA5.js';
|
|
6
7
|
import { _HopperProvider } from './chunk-NMKBUGSO.js';
|
|
7
|
-
import {
|
|
8
|
-
import { ButtonContext } from './chunk-WMTWFKKP.js';
|
|
8
|
+
import { LinkContext } from './chunk-4VVNSXIB.js';
|
|
9
9
|
import { HeadingContext } from './chunk-TXZ6BMFR.js';
|
|
10
|
-
import { FooterContext } from './chunk-I67NHYK4.js';
|
|
11
10
|
import { ContentContext } from './chunk-IXB2WK56.js';
|
|
11
|
+
import { FooterContext } from './chunk-I67NHYK4.js';
|
|
12
12
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
13
13
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
14
14
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
@@ -19,7 +19,7 @@ import { useContextProps, composeRenderProps, Popover as Popover$1, Dialog } fro
|
|
|
19
19
|
import { jsx } from 'react/jsx-runtime';
|
|
20
20
|
|
|
21
21
|
// css-module:./Popover.module.css#css-module
|
|
22
|
-
var Popover_module_default = { "hop-Popover": "Popover-module__hop-
|
|
22
|
+
var Popover_module_default = { "hop-Popover": "Popover-module__hop-Popover___fhuWl", "fade": "Popover-module__fade___8DImD", "hop-Popover__wrapper": "Popover-module__hop-Popover__wrapper___IR9Gb", "hop-Popover__dialog": "Popover-module__hop-Popover__dialog___hCMLD", "hop-Popover__dropdown": "Popover-module__hop-Popover__dropdown___6j5bB", "hop-Popover__title": "Popover-module__hop-Popover__title___HSdgs", "hop-Popover__content": "Popover-module__hop-Popover__content___-1NfA", "hop-Popover__list-box": "Popover-module__hop-Popover__list-box___vd-yn", "hop-Popover__footer": "Popover-module__hop-Popover__footer___sF7TE", "hop-Popover__actions": "Popover-module__hop-Popover__actions___x-cAX", "hop-Popover__action": "Popover-module__hop-Popover__action___-uIRT" };
|
|
23
23
|
var GlobalPopoverCssSelector = "hop-Popover";
|
|
24
24
|
function Popover(props, ref) {
|
|
25
25
|
var _a;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { isTextOnlyChildren } from './chunk-ZWU6DRRZ.js';
|
|
2
|
-
import { _Text } from './chunk-
|
|
2
|
+
import { _Text } from './chunk-75I7LTO3.js';
|
|
3
3
|
import { jsx } from 'react/jsx-runtime';
|
|
4
4
|
|
|
5
|
-
function ensureTextWrapper(children) {
|
|
5
|
+
function ensureTextWrapper(children, elementType) {
|
|
6
6
|
if (children && isTextOnlyChildren(children)) {
|
|
7
|
-
return /* @__PURE__ */ jsx(_Text, { children });
|
|
7
|
+
return /* @__PURE__ */ jsx(_Text, { elementType, children });
|
|
8
8
|
}
|
|
9
9
|
return children;
|
|
10
10
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { _Text } from './chunk-
|
|
1
|
+
import { _Text } from './chunk-75I7LTO3.js';
|
|
2
2
|
import { useImageFallback } from './chunk-LI5HSYF7.js';
|
|
3
3
|
import { AvatarContext } from './chunk-AES7QBQE.js';
|
|
4
|
-
import { _RichIconAvatarImage } from './chunk-
|
|
4
|
+
import { _RichIconAvatarImage } from './chunk-566DZ4RC.js';
|
|
5
5
|
import { useRenderProps } from './chunk-NH3IVMXB.js';
|
|
6
6
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
7
7
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
@@ -13,7 +13,7 @@ import { useContextProps, composeRenderProps } from 'react-aria-components';
|
|
|
13
13
|
import { jsx } from 'react/jsx-runtime';
|
|
14
14
|
|
|
15
15
|
// css-module:./Avatar.module.css#css-module
|
|
16
|
-
var Avatar_module_default = { "hop-Avatar": "Avatar-module__hop-
|
|
16
|
+
var Avatar_module_default = { "hop-Avatar": "Avatar-module__hop-Avatar___2wZ7d", "hop-Avatar--xs": "Avatar-module__hop-Avatar--xs___z8zIk", "hop-Avatar--sm": "Avatar-module__hop-Avatar--sm___Zw8x0", "hop-Avatar--md": "Avatar-module__hop-Avatar--md___-Z5oG", "hop-Avatar--lg": "Avatar-module__hop-Avatar--lg___uUSB-", "hop-Avatar--xl": "Avatar-module__hop-Avatar--xl___yFt46", "hop-Avatar--2xl": "Avatar-module__hop-Avatar--2xl___wiCYV", "hop-Avatar--decorative-option1": "Avatar-module__hop-Avatar--decorative-option1___13Mxt", "hop-Avatar--decorative-option2": "Avatar-module__hop-Avatar--decorative-option2___an9xd", "hop-Avatar--decorative-option3": "Avatar-module__hop-Avatar--decorative-option3___YY-5V", "hop-Avatar--decorative-option4": "Avatar-module__hop-Avatar--decorative-option4___01f67", "hop-Avatar--decorative-option5": "Avatar-module__hop-Avatar--decorative-option5___iG8u0", "hop-Avatar--decorative-option6": "Avatar-module__hop-Avatar--decorative-option6___JdrSS", "hop-Avatar--decorative-option7": "Avatar-module__hop-Avatar--decorative-option7___sekS1", "hop-Avatar--decorative-option8": "Avatar-module__hop-Avatar--decorative-option8___nsipT", "hop-Avatar--decorative-option9": "Avatar-module__hop-Avatar--decorative-option9___YXiOL", "hop-Avatar__image": "Avatar-module__hop-Avatar__image___UqeUZ" };
|
|
17
17
|
var GlobalAvatarCssSelector = "hop-Avatar";
|
|
18
18
|
var AvatarToTextSizeAdapter = {
|
|
19
19
|
xs: "xs",
|
|
@@ -1,30 +1,33 @@
|
|
|
1
|
-
import { _SelectValue } from './chunk-2PIWQBQ7.js';
|
|
2
1
|
import { SelectContext } from './chunk-T24MBA34.js';
|
|
3
|
-
import {
|
|
2
|
+
import { _SelectValue } from './chunk-5SMJSNMW.js';
|
|
3
|
+
import { _Popover } from './chunk-VHRMFZPJ.js';
|
|
4
4
|
import { _Footer } from './chunk-VOZN65OL.js';
|
|
5
|
-
import { _ListBox } from './chunk-
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
5
|
+
import { _ListBox } from './chunk-EABCCXRD.js';
|
|
6
|
+
import { _HelperMessage } from './chunk-EXO4OJ7Z.js';
|
|
7
|
+
import { ensureTextWrapper } from './chunk-WILQEDLK.js';
|
|
8
|
+
import { _ErrorMessage } from './chunk-KFPJZFZS.js';
|
|
9
|
+
import { _ToggleArrow } from './chunk-LHX75LVJ.js';
|
|
10
|
+
import { _Label } from './chunk-6NX5XSZH.js';
|
|
11
|
+
import { useFormProps } from './chunk-SH3CLZKH.js';
|
|
10
12
|
import { BadgeContext } from './chunk-CQDLZ42T.js';
|
|
11
13
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
12
14
|
import { ClearContainerSlots, ClearProviders } from './chunk-HXI3MEEK.js';
|
|
13
15
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
14
16
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
15
17
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
16
|
-
import { IconContext
|
|
18
|
+
import { IconContext } from '@hopper-ui/icons';
|
|
17
19
|
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
18
20
|
import { forwardRef } from 'react';
|
|
19
21
|
import { useContextProps, composeRenderProps, TextContext as TextContext$1, ButtonContext, Select as Select$1, Button } from 'react-aria-components';
|
|
20
22
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
21
23
|
|
|
22
24
|
// css-module:./Select.module.css#css-module
|
|
23
|
-
var Select_module_default = { "hop-Select": "Select-module__hop-
|
|
25
|
+
var Select_module_default = { "hop-Select": "Select-module__hop-Select___Gdtq5", "hop-Select--fluid": "Select-module__hop-Select--fluid___wLtrm", "hop-Select__label": "Select-module__hop-Select__label___Cbz16", "hop-Select__button": "Select-module__hop-Select__button___eTvmp", "hop-Select__button--sm": "Select-module__hop-Select__button--sm___1FwbV", "hop-Select__button--md": "Select-module__hop-Select__button--md___MLXWH", "hop-Select__prefix": "Select-module__hop-Select__prefix___2h5tm", "hop-Select__button-icon": "Select-module__hop-Select__button-icon___9JJ4H", "hop-Select__helper-message": "Select-module__hop-Select__helper-message___5zmXU", "hop-Select__error-message": "Select-module__hop-Select__error-message___Zgj6f" };
|
|
24
26
|
var GlobalSelectCssSelector = "hop-Select";
|
|
25
27
|
function Select(props, ref) {
|
|
26
28
|
var _a, _b, _c, _d;
|
|
27
29
|
[props, ref] = useContextProps(props, ref, SelectContext);
|
|
30
|
+
props = useFormProps(props);
|
|
28
31
|
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
29
32
|
const {
|
|
30
33
|
align: alignProp,
|
|
@@ -138,7 +141,6 @@ function Select(props, ref) {
|
|
|
138
141
|
...otherProps,
|
|
139
142
|
children: (selectRenderProps) => {
|
|
140
143
|
const { isOpen } = selectRenderProps;
|
|
141
|
-
const ButtonIcon = isOpen ? AngleUpIcon : AngleDownIcon;
|
|
142
144
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
143
145
|
label && /* @__PURE__ */ jsx(
|
|
144
146
|
_Label,
|
|
@@ -190,7 +192,13 @@ function Select(props, ref) {
|
|
|
190
192
|
/* @__PURE__ */ jsx(_SelectValue, { size, children: (valueRenderProps) => {
|
|
191
193
|
return renderValue == null ? void 0 : renderValue(valueRenderProps);
|
|
192
194
|
} }),
|
|
193
|
-
/* @__PURE__ */ jsx(
|
|
195
|
+
/* @__PURE__ */ jsx(
|
|
196
|
+
_ToggleArrow,
|
|
197
|
+
{
|
|
198
|
+
className: Select_module_default["hop-Select__button-icon"],
|
|
199
|
+
isExpanded: isOpen
|
|
200
|
+
}
|
|
201
|
+
)
|
|
194
202
|
] }),
|
|
195
203
|
description && /* @__PURE__ */ jsx(_HelperMessage, { className: Select_module_default["hop-Select__helper-message"], children: description }),
|
|
196
204
|
/* @__PURE__ */ jsx(_ErrorMessage, { className: Select_module_default["hop-Select__error-message"], children: errorMessage })
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { useSlot } from './chunk-H5YTU3U7.js';
|
|
2
|
-
import { _Spinner } from './chunk-
|
|
3
|
-
import { ensureTextWrapper } from './chunk-UYXVO6TB.js';
|
|
4
|
-
import { IconListContext } from './chunk-DHVVYSLB.js';
|
|
2
|
+
import { _Spinner } from './chunk-CC5QQ4YM.js';
|
|
5
3
|
import { ButtonContext } from './chunk-WMTWFKKP.js';
|
|
4
|
+
import { IconListContext } from './chunk-DHVVYSLB.js';
|
|
5
|
+
import { ensureTextWrapper } from './chunk-WILQEDLK.js';
|
|
6
6
|
import { useLocalizedString } from './chunk-TFVDF4YH.js';
|
|
7
|
+
import { useFormProps } from './chunk-SH3CLZKH.js';
|
|
7
8
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
8
9
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
9
10
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
@@ -16,11 +17,12 @@ import { useContextProps, composeRenderProps, DEFAULT_SLOT, Button as Button$1 }
|
|
|
16
17
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
17
18
|
|
|
18
19
|
// css-module:./Button.module.css#css-module
|
|
19
|
-
var Button_module_default = { "hop-Button": "Button-module__hop-
|
|
20
|
+
var Button_module_default = { "hop-Button": "Button-module__hop-Button___aWAvb", "hop-Button--fluid": "Button-module__hop-Button--fluid___pOgS1", "hop-Button--sm": "Button-module__hop-Button--sm___EJn1m", "hop-Button--md": "Button-module__hop-Button--md___4XpPr", "hop-Button--icon-only": "Button-module__hop-Button--icon-only___E63X8", "hop-Button--primary": "Button-module__hop-Button--primary___Lm30i", "hop-Button--secondary": "Button-module__hop-Button--secondary___bl3yb", "hop-Button--upsell": "Button-module__hop-Button--upsell___ZsXQr", "hop-Button--danger": "Button-module__hop-Button--danger___VMtVT", "hop-Button--ghost-primary": "Button-module__hop-Button--ghost-primary___7eXLd", "hop-Button--ghost-secondary": "Button-module__hop-Button--ghost-secondary___6099y", "hop-Button--ghost-danger": "Button-module__hop-Button--ghost-danger___NOYOj", "hop-Button__Spinner": "Button-module__hop-Button__Spinner___tUy92", "hop-Button__icon": "Button-module__hop-Button__icon___WqWnu", "hop-Button__icon-list": "Button-module__hop-Button__icon-list___6mPwn", "hop-Button__text": "Button-module__hop-Button__text___yHV7K", "hop-Button__end-icon": "Button-module__hop-Button__end-icon___YziQH", "hop-Button__end-icon-list": "Button-module__hop-Button__end-icon-list___e0mxc" };
|
|
20
21
|
var GlobalButtonCssSelector = "hop-Button";
|
|
21
22
|
function Button(props, ref) {
|
|
22
23
|
var _a, _b;
|
|
23
24
|
[props, ref] = useContextProps(props, ref, ButtonContext);
|
|
25
|
+
props = useFormProps(props);
|
|
24
26
|
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
25
27
|
const stringFormatter = useLocalizedString();
|
|
26
28
|
const {
|