@hopper-ui/components 1.4.4 → 1.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/dist/Accordion/src/Accordion.css +68 -68
- package/dist/Accordion/src/Accordion.js +1 -1
- package/dist/Accordion/src/index.css +68 -68
- package/dist/Accordion/src/index.js +1 -1
- package/dist/Avatar/src/AnonymousAvatar.css +38 -38
- package/dist/Avatar/src/AnonymousAvatar.js +2 -2
- package/dist/Avatar/src/Avatar.css +56 -56
- package/dist/Avatar/src/Avatar.js +3 -3
- package/dist/Avatar/src/DeletedAvatar.css +38 -38
- package/dist/Avatar/src/DeletedAvatar.js +2 -2
- package/dist/Avatar/src/RichIconAvatarImage.css +38 -38
- package/dist/Avatar/src/RichIconAvatarImage.js +1 -1
- package/dist/Avatar/src/index.css +56 -56
- package/dist/Avatar/src/index.js +5 -5
- package/dist/Badge/src/Badge.css +43 -43
- package/dist/Badge/src/Badge.js +2 -2
- package/dist/Badge/src/FloatingBadge.css +38 -38
- package/dist/Badge/src/FloatingBadge.js +1 -1
- package/dist/Badge/src/index.css +53 -53
- package/dist/Badge/src/index.js +3 -3
- package/dist/Card/src/Card.css +31 -31
- package/dist/Card/src/Card.js +1 -1
- package/dist/Card/src/index.css +31 -31
- package/dist/Card/src/index.js +1 -1
- package/dist/ComboBox/src/ComboBox.css +594 -564
- package/dist/ComboBox/src/ComboBox.d.ts +11 -5
- package/dist/ComboBox/src/ComboBox.js +18 -18
- package/dist/ComboBox/src/ComboBoxContext.d.ts +2 -2
- package/dist/ComboBox/src/index.css +594 -564
- package/dist/ComboBox/src/index.d.ts +4 -4
- package/dist/ComboBox/src/index.js +18 -18
- package/dist/Disclosure/src/Disclosure.css +38 -38
- package/dist/Disclosure/src/Disclosure.js +1 -1
- package/dist/Disclosure/src/DisclosureHeader.css +45 -45
- package/dist/Disclosure/src/DisclosureHeader.js +7 -7
- package/dist/Disclosure/src/DisclosurePanel.css +38 -38
- package/dist/Disclosure/src/DisclosurePanel.js +7 -7
- package/dist/Disclosure/src/index.css +63 -63
- package/dist/Disclosure/src/index.js +10 -10
- package/dist/Divider/src/Divider.css +30 -30
- package/dist/Divider/src/Divider.js +1 -1
- package/dist/Divider/src/index.css +30 -30
- package/dist/Divider/src/index.js +1 -1
- package/dist/ErrorMessage/src/ErrorMessage.css +30 -30
- package/dist/ErrorMessage/src/ErrorMessage.js +2 -2
- package/dist/ErrorMessage/src/index.css +30 -30
- package/dist/ErrorMessage/src/index.js +2 -2
- package/dist/Form/src/Form.css +28 -28
- package/dist/Form/src/Form.js +1 -1
- package/dist/Form/src/index.css +28 -28
- package/dist/Form/src/index.js +1 -1
- package/dist/HelperMessage/src/HelperMessage.css +30 -30
- package/dist/HelperMessage/src/HelperMessage.js +2 -2
- package/dist/HelperMessage/src/index.css +30 -30
- package/dist/HelperMessage/src/index.js +2 -2
- package/dist/IconList/src/IconList.css +29 -29
- package/dist/IconList/src/IconList.js +1 -1
- package/dist/IconList/src/index.css +29 -29
- package/dist/IconList/src/index.js +1 -1
- package/dist/IllustratedMessage/src/IllustratedMessage.css +269 -269
- package/dist/IllustratedMessage/src/IllustratedMessage.js +2 -2
- package/dist/IllustratedMessage/src/index.css +269 -269
- package/dist/IllustratedMessage/src/index.js +2 -2
- package/dist/Image/src/Image.css +31 -31
- package/dist/Image/src/Image.js +1 -1
- package/dist/Image/src/SvgImage.css +29 -29
- package/dist/Image/src/SvgImage.js +1 -1
- package/dist/Image/src/index.css +32 -32
- package/dist/Image/src/index.js +2 -2
- package/dist/Link/src/Link.css +80 -50
- package/dist/Link/src/Link.d.ts +4 -0
- package/dist/Link/src/Link.js +7 -7
- package/dist/Link/src/index.css +80 -50
- package/dist/Link/src/index.js +7 -7
- package/dist/ListBox/src/ListBox.css +277 -277
- package/dist/ListBox/src/ListBox.js +11 -11
- package/dist/ListBox/src/ListBoxItem.css +265 -265
- package/dist/ListBox/src/ListBoxItem.js +10 -10
- package/dist/ListBox/src/ListBoxItemSkeleton.css +37 -37
- package/dist/ListBox/src/ListBoxItemSkeleton.js +1 -1
- package/dist/ListBox/src/index.css +277 -277
- package/dist/ListBox/src/index.js +11 -11
- package/dist/SegmentedControl/src/SegmentedControl.css +251 -0
- package/dist/SegmentedControl/src/SegmentedControl.d.ts +43 -0
- package/dist/SegmentedControl/src/SegmentedControl.js +5 -0
- package/dist/SegmentedControl/src/SegmentedControlContext.d.ts +18 -0
- package/dist/SegmentedControl/src/SegmentedControlContext.js +2 -0
- package/dist/SegmentedControl/src/SegmentedControlItem.css +344 -0
- package/dist/SegmentedControl/src/SegmentedControlItem.d.ts +31 -0
- package/dist/SegmentedControl/src/SegmentedControlItem.js +19 -0
- package/dist/SegmentedControl/src/SegmentedControlItemContext.d.ts +12 -0
- package/dist/SegmentedControl/src/SegmentedControlItemContext.js +2 -0
- package/dist/SegmentedControl/src/index.css +362 -0
- package/dist/SegmentedControl/src/index.d.ts +7 -0
- package/dist/SegmentedControl/src/index.js +20 -0
- package/dist/Select/src/Select.css +598 -568
- package/dist/Select/src/Select.d.ts +12 -6
- package/dist/Select/src/Select.js +19 -19
- package/dist/Select/src/SelectContext.d.ts +1 -1
- package/dist/Select/src/SelectValue.css +62 -62
- package/dist/Select/src/SelectValue.js +6 -6
- package/dist/Select/src/index.css +598 -568
- package/dist/Select/src/index.d.ts +6 -6
- package/dist/Select/src/index.js +19 -19
- package/dist/Spinner/src/Spinner.css +38 -38
- package/dist/Spinner/src/Spinner.js +2 -2
- package/dist/Spinner/src/index.css +38 -38
- package/dist/Spinner/src/index.js +2 -2
- package/dist/ToggleArrow/src/ToggleArrow.css +30 -30
- package/dist/ToggleArrow/src/ToggleArrow.js +1 -1
- package/dist/ToggleArrow/src/index.css +30 -30
- package/dist/ToggleArrow/src/index.js +1 -1
- package/dist/buttons/src/Button.css +94 -94
- package/dist/buttons/src/Button.js +8 -8
- package/dist/buttons/src/ButtonGroup.css +39 -39
- package/dist/buttons/src/ButtonGroup.js +2 -2
- package/dist/buttons/src/ClearButton.css +99 -99
- package/dist/buttons/src/ClearButton.js +2 -2
- package/dist/buttons/src/EmbeddedButton.css +99 -99
- package/dist/buttons/src/EmbeddedButton.js +1 -1
- package/dist/buttons/src/LinkButton.css +103 -103
- package/dist/buttons/src/LinkButton.js +7 -7
- package/dist/buttons/src/index.css +250 -250
- package/dist/buttons/src/index.js +14 -14
- package/dist/checkbox/src/Checkbox.css +47 -47
- package/dist/checkbox/src/Checkbox.js +7 -7
- package/dist/checkbox/src/CheckboxField.css +34 -34
- package/dist/checkbox/src/CheckboxField.js +3 -3
- package/dist/checkbox/src/CheckboxGroup.css +99 -99
- package/dist/checkbox/src/CheckboxGroup.js +7 -7
- package/dist/checkbox/src/DecorativeCheckbox.css +55 -55
- package/dist/checkbox/src/DecorativeCheckbox.js +7 -7
- package/dist/checkbox/src/index.css +99 -99
- package/dist/checkbox/src/index.js +13 -13
- package/dist/{chunk-Z7MJ7PV5.js → chunk-25APP2V4.js} +1 -1
- package/dist/{chunk-4O66BZ6D.js → chunk-3AB3J5EP.js} +3 -3
- package/dist/{chunk-SN4PLDSN.js → chunk-3HGZNFEQ.js} +1 -1
- package/dist/{chunk-EV6GK7WQ.js → chunk-4PZCXSIJ.js} +3 -3
- package/dist/{chunk-746EWHEN.js → chunk-4WKUWT6B.js} +6 -6
- package/dist/{chunk-CMG4VD5X.js → chunk-56QFPH7A.js} +1 -1
- package/dist/{chunk-BW663SSE.js → chunk-5CW3ZTUM.js} +3 -3
- package/dist/{chunk-ONMGC33C.js → chunk-5DW5MIOP.js} +1 -1
- package/dist/{chunk-SMLTEO45.js → chunk-5OS5HF6G.js} +2 -2
- package/dist/{chunk-Z4NZLU64.js → chunk-67VFL63C.js} +2 -2
- package/dist/{chunk-LT2MDHP5.js → chunk-6I4ZCACA.js} +1 -1
- package/dist/{chunk-KZXK4WRP.js → chunk-73CBNN4K.js} +7 -7
- package/dist/{chunk-M6RD5JHJ.js → chunk-AZBN2SOE.js} +6 -6
- package/dist/{chunk-JPEUJXYD.js → chunk-B22BEVRV.js} +6 -6
- package/dist/{chunk-6ZYGCRKJ.js → chunk-BOOMSDK7.js} +1 -1
- package/dist/{chunk-F4Z6ISDK.js → chunk-BQJA5YLU.js} +4 -4
- package/dist/{chunk-JIMLRXXF.js → chunk-BQZSLU4S.js} +2 -2
- package/dist/{chunk-BJZAXT2F.js → chunk-C67PNOQX.js} +2 -2
- package/dist/{chunk-WLLYP5GR.js → chunk-CPI34H7R.js} +3 -3
- package/dist/{chunk-GJTJWDMN.js → chunk-D4CWHBFC.js} +7 -7
- package/dist/{chunk-2X2LRNYD.js → chunk-DCIGY462.js} +1 -1
- package/dist/{chunk-QLFOYPBD.js → chunk-DW26OLDB.js} +5 -5
- package/dist/{chunk-JFHEC3M5.js → chunk-E74QE424.js} +5 -3
- package/dist/{chunk-N3R475B6.js → chunk-EOES5IUI.js} +1 -1
- package/dist/{chunk-XY7PAHQB.js → chunk-FQHHLFAB.js} +7 -7
- package/dist/{chunk-3AAGPFDH.js → chunk-GK7I65BF.js} +1 -1
- package/dist/{chunk-NFLZWSYR.js → chunk-IFQPPUVZ.js} +14 -10
- package/dist/{chunk-MLNWMBCL.js → chunk-JELBOYLB.js} +1 -1
- package/dist/chunk-JHX5QEIH.js +8 -0
- package/dist/{chunk-6MY6YECS.js → chunk-KUBUEVXB.js} +2 -2
- package/dist/{chunk-PX2R6M5I.js → chunk-LLEWW4UQ.js} +1 -1
- package/dist/{chunk-64BCMHW2.js → chunk-LPKBOHFG.js} +1 -1
- package/dist/{chunk-SBW6CWYN.js → chunk-LUC6XJU7.js} +15 -11
- package/dist/{chunk-CZZBGCIX.js → chunk-LULTNKIP.js} +2 -2
- package/dist/{chunk-WCRASDES.js → chunk-M5Q2CFRQ.js} +1 -1
- package/dist/{chunk-OUY6UXVS.js → chunk-MISFLYHH.js} +2 -2
- package/dist/{chunk-XEUVFD47.js → chunk-NKCDMR4Y.js} +1 -1
- package/dist/{chunk-7Z6WJCG6.js → chunk-O2YRPX5E.js} +2 -2
- package/dist/{chunk-4JBPIRZN.js → chunk-OMGZXRVE.js} +6 -6
- package/dist/{chunk-MLK5TBAR.js → chunk-OT3SSSAN.js} +1 -1
- package/dist/{chunk-AJYF4K7F.js → chunk-OUGECIOS.js} +2 -2
- package/dist/{chunk-TPRZ7BTR.js → chunk-OUTV4GW4.js} +1 -1
- package/dist/{chunk-LU4ZOPNX.js → chunk-P63VMXVG.js} +2 -2
- package/dist/chunk-Q5WT3U7W.js +108 -0
- package/dist/{chunk-5JGCU3OG.js → chunk-QZL7DSHL.js} +3 -3
- package/dist/{chunk-5LDARV3U.js → chunk-RTB477QF.js} +2 -2
- package/dist/{chunk-NCRCC7XA.js → chunk-SC6GOFII.js} +2 -2
- package/dist/{chunk-6ZDC2YFW.js → chunk-SUB3BVYD.js} +1 -1
- package/dist/chunk-TDKQPTN6.js +7 -0
- package/dist/{chunk-R2EYP5QR.js → chunk-ULU4LXYF.js} +7 -7
- package/dist/chunk-VUDALBYV.js +89 -0
- package/dist/{chunk-BUD4Z25C.js → chunk-WN3TGQHF.js} +10 -10
- package/dist/{chunk-X323OHPE.js → chunk-X5H6RCTP.js} +3 -3
- package/dist/{chunk-WYIF7VLQ.js → chunk-X7PEWS4A.js} +1 -1
- package/dist/{chunk-URJ67DGZ.js → chunk-X7QAJPWB.js} +1 -1
- package/dist/{chunk-WFR36XTH.js → chunk-XE6JG2MF.js} +2 -2
- package/dist/{chunk-4XZTEP4Q.js → chunk-XQIEHXUJ.js} +2 -2
- package/dist/{chunk-BORQ3ZAL.js → chunk-YA5VMTPD.js} +2 -2
- package/dist/{chunk-Q5E3TQRF.js → chunk-YAK3UMON.js} +1 -1
- package/dist/{chunk-7KB2OZW3.js → chunk-YKHKR2GB.js} +2 -2
- package/dist/{chunk-5EC2BYL7.js → chunk-ZLWJJVD3.js} +1 -1
- package/dist/{chunk-R2ZIGLJV.js → chunk-ZXHTDMQB.js} +3 -3
- package/dist/index.css +993 -834
- package/dist/index.d.ts +6 -4
- package/dist/index.js +76 -72
- package/dist/inputs/src/InputGroup.css +265 -265
- package/dist/inputs/src/InputGroup.js +1 -1
- package/dist/inputs/src/NumberField.css +287 -287
- package/dist/inputs/src/NumberField.js +10 -10
- package/dist/inputs/src/PasswordField.css +275 -275
- package/dist/inputs/src/PasswordField.js +10 -10
- package/dist/inputs/src/RemainingCharacterCount.css +31 -31
- package/dist/inputs/src/RemainingCharacterCount.js +6 -6
- package/dist/inputs/src/SearchField.css +281 -281
- package/dist/inputs/src/SearchField.js +11 -11
- package/dist/inputs/src/TextArea.css +282 -282
- package/dist/inputs/src/TextArea.js +10 -10
- package/dist/inputs/src/TextField.css +279 -279
- package/dist/inputs/src/TextField.js +14 -14
- package/dist/inputs/src/index.css +325 -325
- package/dist/inputs/src/index.js +21 -21
- package/dist/overlays/Popover/src/Popover.css +574 -544
- package/dist/overlays/Popover/src/Popover.js +7 -7
- package/dist/overlays/Popover/src/index.css +574 -544
- package/dist/overlays/Popover/src/index.js +7 -7
- package/dist/radio/src/DecorativeRadio.css +55 -55
- package/dist/radio/src/DecorativeRadio.js +7 -7
- package/dist/radio/src/Radio.css +47 -47
- package/dist/radio/src/Radio.js +7 -7
- package/dist/radio/src/RadioField.css +34 -34
- package/dist/radio/src/RadioField.js +2 -2
- package/dist/radio/src/RadioGroup.css +99 -99
- package/dist/radio/src/RadioGroup.js +7 -7
- package/dist/radio/src/index.css +99 -99
- package/dist/radio/src/index.js +13 -13
- package/dist/switch/src/Switch.css +44 -44
- package/dist/switch/src/Switch.js +7 -7
- package/dist/switch/src/SwitchField.css +34 -34
- package/dist/switch/src/SwitchField.js +3 -3
- package/dist/switch/src/index.css +50 -50
- package/dist/switch/src/index.js +9 -9
- package/dist/tag/src/Tag.css +391 -391
- package/dist/tag/src/Tag.js +10 -10
- package/dist/tag/src/TagGroup.css +38 -38
- package/dist/tag/src/TagGroup.js +7 -7
- package/dist/tag/src/index.css +401 -401
- package/dist/tag/src/index.js +14 -14
- package/dist/typography/Heading/src/Heading.css +28 -28
- package/dist/typography/Heading/src/Heading.js +1 -1
- package/dist/typography/Heading/src/index.css +28 -28
- package/dist/typography/Heading/src/index.js +1 -1
- package/dist/typography/Label/src/Label.css +28 -28
- package/dist/typography/Label/src/Label.js +2 -2
- package/dist/typography/Label/src/index.css +28 -28
- package/dist/typography/Label/src/index.js +2 -2
- package/dist/typography/OverlineText/src/OverlineText.css +28 -28
- package/dist/typography/OverlineText/src/OverlineText.js +1 -1
- package/dist/typography/OverlineText/src/index.css +28 -28
- package/dist/typography/OverlineText/src/index.js +1 -1
- package/dist/typography/Text/src/Text.css +28 -28
- package/dist/typography/Text/src/Text.js +1 -1
- package/dist/typography/Text/src/index.css +28 -28
- package/dist/typography/Text/src/index.js +1 -1
- package/dist/utils/src/EnsureTextWrapper.css +28 -28
- package/dist/utils/src/EnsureTextWrapper.js +6 -6
- package/dist/utils/src/index.css +28 -28
- package/dist/utils/src/index.js +8 -8
- package/package.json +1 -1
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import { _Popover } from './chunk-
|
|
1
|
+
import { _Popover } from './chunk-YKHKR2GB.js';
|
|
2
2
|
import { _Footer } from './chunk-VOZN65OL.js';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
3
|
+
import { _ListBoxSection } from './chunk-DZJSSJVJ.js';
|
|
4
|
+
import { _ListBox } from './chunk-QZL7DSHL.js';
|
|
5
|
+
import { _ListBoxItem } from './chunk-DW26OLDB.js';
|
|
6
|
+
import { _HelperMessage } from './chunk-OUGECIOS.js';
|
|
7
|
+
import { _ErrorMessage } from './chunk-SC6GOFII.js';
|
|
8
|
+
import { _ToggleArrow } from './chunk-EOES5IUI.js';
|
|
9
|
+
import { ensureTextWrapper } from './chunk-YAK3UMON.js';
|
|
10
|
+
import { _Label } from './chunk-C67PNOQX.js';
|
|
11
|
+
import { useFormProps } from './chunk-M5Q2CFRQ.js';
|
|
10
12
|
import { ComboBoxContext } from './chunk-4XHTP4GX.js';
|
|
11
13
|
import { BadgeContext } from './chunk-CQDLZ42T.js';
|
|
12
14
|
import { TextContext as TextContext$1 } from './chunk-X6SER3TZ.js';
|
|
@@ -22,7 +24,7 @@ import { useContextProps, useSlottedContext, InputContext, composeRenderProps, T
|
|
|
22
24
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
23
25
|
|
|
24
26
|
// css-module:./ComboBox.module.css#css-module
|
|
25
|
-
var ComboBox_module_default = { "hop-ComboBox": "ComboBox-module__hop-
|
|
27
|
+
var ComboBox_module_default = { "hop-ComboBox": "ComboBox-module__hop-ComboBox___QBKjM", "hop-ComboBox--fluid": "ComboBox-module__hop-ComboBox--fluid___XOIsB", "hop-ComboBox__label": "ComboBox-module__hop-ComboBox__label___MlvpP", "hop-ComboBox__trigger": "ComboBox-module__hop-ComboBox__trigger___6tb-G", "hop-ComboBox__trigger--sm": "ComboBox-module__hop-ComboBox__trigger--sm___o0OJH", "hop-ComboBox__trigger--md": "ComboBox-module__hop-ComboBox__trigger--md___Ljzzr", "hop-ComboBox__input": "ComboBox-module__hop-ComboBox__input___er6-0", "hop-ComboBox__button": "ComboBox-module__hop-ComboBox__button___FRlWD", "hop-ComboBox__prefix": "ComboBox-module__hop-ComboBox__prefix___0W0fg", "hop-ComboBox__button-icon": "ComboBox-module__hop-ComboBox__button-icon___5dInX", "hop-ComboBox__helper-message": "ComboBox-module__hop-ComboBox__helper-message___LizJI", "hop-ComboBox__error-message": "ComboBox-module__hop-ComboBox__error-message___jbGJS" };
|
|
26
28
|
var GlobalComboBoxCssSelector = "hop-ComboBox";
|
|
27
29
|
function ComboBox(props, ref) {
|
|
28
30
|
var _a, _b, _c, _d, _e;
|
|
@@ -274,5 +276,7 @@ function ComboBox(props, ref) {
|
|
|
274
276
|
}
|
|
275
277
|
var _ComboBox = forwardRef(ComboBox);
|
|
276
278
|
_ComboBox.displayName = "ComboBox";
|
|
279
|
+
var ComboBoxItem = _ListBoxItem;
|
|
280
|
+
var ComboBoxSection = _ListBoxSection;
|
|
277
281
|
|
|
278
|
-
export { GlobalComboBoxCssSelector, _ComboBox };
|
|
282
|
+
export { ComboBoxItem, ComboBoxSection, GlobalComboBoxCssSelector, _ComboBox };
|
|
@@ -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___XmSxB", "hop-OverlineText__text": "OverlineText-module__hop-OverlineText__text___VSfku" };
|
|
11
11
|
var GlobalOverlineTextCssSelector = "hop-OverlineText";
|
|
12
12
|
function OverlineText(props, ref) {
|
|
13
13
|
[props, ref] = useContextProps(props, ref, OverlineTextContext);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { createContext } from 'react';
|
|
2
|
+
|
|
3
|
+
// src/SegmentedControl/src/SegmentedControlContext.ts
|
|
4
|
+
var SegmentedControlContext = createContext({});
|
|
5
|
+
SegmentedControlContext.displayName = "SegmentedControlContext";
|
|
6
|
+
var InternalSegmentedControlContext = createContext({});
|
|
7
|
+
|
|
8
|
+
export { InternalSegmentedControlContext, SegmentedControlContext };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RadioContext } from './chunk-FU5CCPLP.js';
|
|
2
2
|
import { IconListContext } from './chunk-DHVVYSLB.js';
|
|
3
|
-
import { ensureTextWrapper } from './chunk-
|
|
3
|
+
import { ensureTextWrapper } from './chunk-YAK3UMON.js';
|
|
4
4
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
5
5
|
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
6
6
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
@@ -13,7 +13,7 @@ import { useContextProps, composeRenderProps, Radio as Radio$1 } from 'react-ari
|
|
|
13
13
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
14
14
|
|
|
15
15
|
// css-module:./Radio.module.css#css-module
|
|
16
|
-
var Radio_module_default = { "hop-Radio": "Radio-module__hop-
|
|
16
|
+
var Radio_module_default = { "hop-Radio": "Radio-module__hop-Radio___8oc3E", "hop-Radio--sm": "Radio-module__hop-Radio--sm___G9sMW", "hop-Radio--md": "Radio-module__hop-Radio--md___-JIuw", "hop-Radio__icon": "Radio-module__hop-Radio__icon___Qkgcp", "hop-Radio__icon-list": "Radio-module__hop-Radio__icon-list___xVxxM", "hop-Radio__box": "Radio-module__hop-Radio__box___K-P27", "hop-Radio__bullet": "Radio-module__hop-Radio__bullet___U45F0", "hop-Radio__text": "Radio-module__hop-Radio__text___J-3ff" };
|
|
17
17
|
var GlobalRadioCssSelector = "hop-Radio";
|
|
18
18
|
function Radio(props, ref) {
|
|
19
19
|
var _a;
|
|
@@ -7,7 +7,7 @@ import { useContextProps } from 'react-aria-components';
|
|
|
7
7
|
import { jsx } from 'react/jsx-runtime';
|
|
8
8
|
|
|
9
9
|
// css-module:./SvgImage.module.css#css-module
|
|
10
|
-
var SvgImage_module_default = { "hop-SvgImage": "SvgImage-module__hop-
|
|
10
|
+
var SvgImage_module_default = { "hop-SvgImage": "SvgImage-module__hop-SvgImage___UnA3a" };
|
|
11
11
|
var GlobalSvgImageCssSelector = "hop-SvgImage";
|
|
12
12
|
function SvgImage(props, ref) {
|
|
13
13
|
[props, ref] = useContextProps(props, ref, SvgImageContext);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ClearButtonContext } from './chunk-DXVKHP4V.js';
|
|
2
|
-
import { _EmbeddedButton } from './chunk-
|
|
2
|
+
import { _EmbeddedButton } from './chunk-NKCDMR4Y.js';
|
|
3
3
|
import { useLocalizedString } from './chunk-TFVDF4YH.js';
|
|
4
4
|
import { DismissIcon } from '@hopper-ui/icons';
|
|
5
5
|
import { forwardRef } from 'react';
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import { SelectContext } from './chunk-T24MBA34.js';
|
|
2
|
-
import { _SelectValue } from './chunk-
|
|
3
|
-
import { _Popover } from './chunk-
|
|
2
|
+
import { _SelectValue } from './chunk-P63VMXVG.js';
|
|
3
|
+
import { _Popover } from './chunk-YKHKR2GB.js';
|
|
4
4
|
import { _Footer } from './chunk-VOZN65OL.js';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
5
|
+
import { _ListBoxSection } from './chunk-DZJSSJVJ.js';
|
|
6
|
+
import { _ListBox } from './chunk-QZL7DSHL.js';
|
|
7
|
+
import { _ListBoxItem } from './chunk-DW26OLDB.js';
|
|
8
|
+
import { _HelperMessage } from './chunk-OUGECIOS.js';
|
|
9
|
+
import { _ErrorMessage } from './chunk-SC6GOFII.js';
|
|
10
|
+
import { _ToggleArrow } from './chunk-EOES5IUI.js';
|
|
11
|
+
import { ensureTextWrapper } from './chunk-YAK3UMON.js';
|
|
12
|
+
import { _Label } from './chunk-C67PNOQX.js';
|
|
13
|
+
import { useFormProps } from './chunk-M5Q2CFRQ.js';
|
|
12
14
|
import { BadgeContext } from './chunk-CQDLZ42T.js';
|
|
13
15
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
14
16
|
import { ClearContainerSlots, ClearProviders } from './chunk-HXI3MEEK.js';
|
|
@@ -22,7 +24,7 @@ import { useContextProps, composeRenderProps, TextContext as TextContext$1, Butt
|
|
|
22
24
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
23
25
|
|
|
24
26
|
// css-module:./Select.module.css#css-module
|
|
25
|
-
var Select_module_default = { "hop-Select": "Select-module__hop-
|
|
27
|
+
var Select_module_default = { "hop-Select": "Select-module__hop-Select___ZRPTO", "hop-Select--fluid": "Select-module__hop-Select--fluid___RcvTj", "hop-Select__label": "Select-module__hop-Select__label___KMg29", "hop-Select__button": "Select-module__hop-Select__button___QBTlf", "hop-Select__button--sm": "Select-module__hop-Select__button--sm___YRGK7", "hop-Select__button--md": "Select-module__hop-Select__button--md___0Qve3", "hop-Select__prefix": "Select-module__hop-Select__prefix___3QzwT", "hop-Select__button-icon": "Select-module__hop-Select__button-icon___n0HWS", "hop-Select__helper-message": "Select-module__hop-Select__helper-message___h-H-A", "hop-Select__error-message": "Select-module__hop-Select__error-message___j5McK" };
|
|
26
28
|
var GlobalSelectCssSelector = "hop-Select";
|
|
27
29
|
function Select(props, ref) {
|
|
28
30
|
var _a, _b, _c, _d;
|
|
@@ -209,5 +211,7 @@ function Select(props, ref) {
|
|
|
209
211
|
}
|
|
210
212
|
var _Select = forwardRef(Select);
|
|
211
213
|
_Select.displayName = "Select";
|
|
214
|
+
var SelectItem = _ListBoxItem;
|
|
215
|
+
var SelectSection = _ListBoxSection;
|
|
212
216
|
|
|
213
|
-
export { GlobalSelectCssSelector, _Select };
|
|
217
|
+
export { GlobalSelectCssSelector, SelectItem, SelectSection, _Select };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RadioFieldContext } from './chunk-DGLAGYBD.js';
|
|
2
2
|
import { RadioContext } from './chunk-FU5CCPLP.js';
|
|
3
|
-
import { _Text } from './chunk-
|
|
3
|
+
import { _Text } from './chunk-BOOMSDK7.js';
|
|
4
4
|
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
5
5
|
import { useRenderProps } from './chunk-NH3IVMXB.js';
|
|
6
6
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
@@ -14,7 +14,7 @@ import { useContextProps, composeRenderProps } from 'react-aria-components';
|
|
|
14
14
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
15
15
|
|
|
16
16
|
// css-module:./RadioField.module.css#css-module
|
|
17
|
-
var RadioField_module_default = { "hop-RadioField": "RadioField-module__hop-
|
|
17
|
+
var RadioField_module_default = { "hop-RadioField": "RadioField-module__hop-RadioField___2rII6", "hop-RadioField--sm": "RadioField-module__hop-RadioField--sm___4LGcP", "hop-RadioField--md": "RadioField-module__hop-RadioField--md___g1Fvr", "hop-RadioField__description": "RadioField-module__hop-RadioField__description___WhFgn", "hop-RadioField__radio": "RadioField-module__hop-RadioField__radio___IZ8iN" };
|
|
18
18
|
var GlobalRadioFieldCssSelector = "hop-RadioField";
|
|
19
19
|
var RadioToDescriptionSizeAdapter = {
|
|
20
20
|
sm: "xs",
|
|
@@ -7,7 +7,7 @@ import { Form as Form$1 } from 'react-aria-components';
|
|
|
7
7
|
import { jsx } from 'react/jsx-runtime';
|
|
8
8
|
|
|
9
9
|
// css-module:./Form.module.css#css-module
|
|
10
|
-
var Form_module_default = { "hop-Form": "Form-module__hop-
|
|
10
|
+
var Form_module_default = { "hop-Form": "Form-module__hop-Form___Z7zNm" };
|
|
11
11
|
var GlobalFormCssSelector = "hop-Form";
|
|
12
12
|
function useFormProps(props) {
|
|
13
13
|
const ctx = useContext(FormContext);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ensureTextWrapper } from './chunk-
|
|
1
|
+
import { ensureTextWrapper } from './chunk-YAK3UMON.js';
|
|
2
2
|
import { FormContext } from './chunk-Q7NXUUB3.js';
|
|
3
3
|
import { DisclosureContext } from './chunk-MUAXK42C.js';
|
|
4
4
|
import { DisclosurePanelContext } from './chunk-7CJXILRD.js';
|
|
@@ -12,7 +12,7 @@ import { useContextProps, useSlottedContext, composeRenderProps, DisclosurePanel
|
|
|
12
12
|
import { jsx } from 'react/jsx-runtime';
|
|
13
13
|
|
|
14
14
|
// css-module:./DisclosurePanel.module.css#css-module
|
|
15
|
-
var DisclosurePanel_module_default = { "hop-DisclosurePanel": "DisclosurePanel-module__hop-
|
|
15
|
+
var DisclosurePanel_module_default = { "hop-DisclosurePanel": "DisclosurePanel-module__hop-DisclosurePanel___7aiDH", "hop-DisclosurePanel--inline": "DisclosurePanel-module__hop-DisclosurePanel--inline___KH6L5", "hop-DisclosurePanel--disabled": "DisclosurePanel-module__hop-DisclosurePanel--disabled___-UfxT", "hop-DisclosurePanel__text": "DisclosurePanel-module__hop-DisclosurePanel__text___g-QEb" };
|
|
16
16
|
var GlobalDisclosurePanelCssSelector = "hop-DisclosurePanel";
|
|
17
17
|
function DisclosurePanel(props, ref) {
|
|
18
18
|
[props, ref] = useContextProps(props, ref, DisclosurePanelContext);
|
|
@@ -20,7 +20,7 @@ function mapOrbiterToHopperVariants(variant) {
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
// css-module:./EmbeddedButton.module.css#css-module
|
|
23
|
-
var EmbeddedButton_module_default = { "hop-EmbeddedButton": "EmbeddedButton-module__hop-
|
|
23
|
+
var EmbeddedButton_module_default = { "hop-EmbeddedButton": "EmbeddedButton-module__hop-EmbeddedButton___yzIQS", "hop-EmbeddedButton--md": "EmbeddedButton-module__hop-EmbeddedButton--md___r2Bw3", "hop-EmbeddedButton--lg": "EmbeddedButton-module__hop-EmbeddedButton--lg___8OhW7", "hop-EmbeddedButton--neutral": "EmbeddedButton-module__hop-EmbeddedButton--neutral___L1B-3", "hop-EmbeddedButton--subdued": "EmbeddedButton-module__hop-EmbeddedButton--subdued___qKe-N", "hop-EmbeddedButton--progress": "EmbeddedButton-module__hop-EmbeddedButton--progress___--F2T", "hop-EmbeddedButton--positive": "EmbeddedButton-module__hop-EmbeddedButton--positive___fpzVV", "hop-EmbeddedButton--caution": "EmbeddedButton-module__hop-EmbeddedButton--caution___eMIOA", "hop-EmbeddedButton--negative": "EmbeddedButton-module__hop-EmbeddedButton--negative___kr4pW", "hop-EmbeddedButton--option1": "EmbeddedButton-module__hop-EmbeddedButton--option1___6lwWT", "hop-EmbeddedButton--option2": "EmbeddedButton-module__hop-EmbeddedButton--option2___PSYKj", "hop-EmbeddedButton--option3": "EmbeddedButton-module__hop-EmbeddedButton--option3___9fXcs", "hop-EmbeddedButton--option4": "EmbeddedButton-module__hop-EmbeddedButton--option4___ymvcy", "hop-EmbeddedButton--option5": "EmbeddedButton-module__hop-EmbeddedButton--option5___LY9cs", "hop-EmbeddedButton--option6": "EmbeddedButton-module__hop-EmbeddedButton--option6___H2A66", "hop-EmbeddedButton__icon": "EmbeddedButton-module__hop-EmbeddedButton__icon___U-qG2" };
|
|
24
24
|
var GlobalEmbeddedButtonCssSelector = "hop-EmbeddedButton";
|
|
25
25
|
function EmbeddedButton(props, ref) {
|
|
26
26
|
var _a;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SwitchContext } from './chunk-YHBJAXUY.js';
|
|
2
2
|
import { IconListContext } from './chunk-DHVVYSLB.js';
|
|
3
|
-
import { ensureTextWrapper } from './chunk-
|
|
3
|
+
import { ensureTextWrapper } from './chunk-YAK3UMON.js';
|
|
4
4
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
5
5
|
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
6
6
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
@@ -13,7 +13,7 @@ import { useContextProps, composeRenderProps, Switch as Switch$1 } from 'react-a
|
|
|
13
13
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
14
14
|
|
|
15
15
|
// css-module:./Switch.module.css#css-module
|
|
16
|
-
var Switch_module_default = { "hop-Switch": "Switch-module__hop-
|
|
16
|
+
var Switch_module_default = { "hop-Switch": "Switch-module__hop-Switch___BN0D1", "hop-Switch--sm": "Switch-module__hop-Switch--sm___XE2Rj", "hop-Switch--md": "Switch-module__hop-Switch--md___1Pvnt", "hop-Switch__indicator": "Switch-module__hop-Switch__indicator___rSH5b", "hop-Switch__text": "Switch-module__hop-Switch__text___qx04A", "hop-Switch__icon-list": "Switch-module__hop-Switch__icon-list___ZGmvM", "hop-Switch__icon": "Switch-module__hop-Switch__icon___KmwwD" };
|
|
17
17
|
var GlobalSwitchCssSelector = "hop-Switch";
|
|
18
18
|
function Switch(props, ref) {
|
|
19
19
|
var _a;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { TagContext } from './chunk-EWMWQ2MC.js';
|
|
2
1
|
import { TagGroupContext } from './chunk-LCAS3YQV.js';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
2
|
+
import { TagContext } from './chunk-EWMWQ2MC.js';
|
|
3
|
+
import { _HelperMessage } from './chunk-OUGECIOS.js';
|
|
4
|
+
import { _ErrorMessage } from './chunk-SC6GOFII.js';
|
|
5
|
+
import { _Label } from './chunk-C67PNOQX.js';
|
|
6
|
+
import { useFormProps } from './chunk-M5Q2CFRQ.js';
|
|
7
7
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
8
8
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
9
9
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
@@ -14,7 +14,7 @@ import { useContextProps, composeRenderProps, FieldErrorContext, TagGroup as Tag
|
|
|
14
14
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
15
15
|
|
|
16
16
|
// css-module:./TagGroup.module.css#css-module
|
|
17
|
-
var TagGroup_module_default = { "hop-TagGroup": "TagGroup-module__hop-
|
|
17
|
+
var TagGroup_module_default = { "hop-TagGroup": "TagGroup-module__hop-TagGroup___AdlNh", "hop-TagGroup__label": "TagGroup-module__hop-TagGroup__label___lDae3", "hop-TagGroup__list": "TagGroup-module__hop-TagGroup__list___KIy3x", "hop-TagGroup__error-message": "TagGroup-module__hop-TagGroup__error-message___9qkuc", "hop-TagGroup__helper-message": "TagGroup-module__hop-TagGroup__helper-message___cJ4Up" };
|
|
18
18
|
var GlobalTagGroupCssSelector = "hop-TagGroup";
|
|
19
19
|
function TagGroup(props, ref) {
|
|
20
20
|
var _a;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _RichIconAvatarImage } from './chunk-
|
|
1
|
+
import { _RichIconAvatarImage } from './chunk-X7QAJPWB.js';
|
|
2
2
|
import { useRenderProps } from './chunk-NH3IVMXB.js';
|
|
3
3
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
4
4
|
import { AvatarContext } from './chunk-AES7QBQE.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HelperMessageContext } from './chunk-HZKFQ33E.js';
|
|
2
|
-
import { _Text } from './chunk-
|
|
2
|
+
import { _Text } from './chunk-BOOMSDK7.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___jW0Zp", "hop-HelperMessage__icon": "HelperMessage-module__hop-HelperMessage__icon___jXeNe" };
|
|
13
13
|
var GlobalHelperMessageCssSelector = "hop-HelperMessage";
|
|
14
14
|
function HelperMessage(props, ref) {
|
|
15
15
|
const validation = useContext(FieldErrorContext);
|
|
@@ -7,7 +7,7 @@ import { useContextProps } from 'react-aria-components';
|
|
|
7
7
|
import { jsx } from 'react/jsx-runtime';
|
|
8
8
|
|
|
9
9
|
// css-module:./Image.module.css#css-module
|
|
10
|
-
var Image_module_default = { "hop-Image": "Image-module__hop-
|
|
10
|
+
var Image_module_default = { "hop-Image": "Image-module__hop-Image___NAS2f", "hop-Image--rounded": "Image-module__hop-Image--rounded___Y-3G1", "hop-Image--circular": "Image-module__hop-Image--circular___-uuJL" };
|
|
11
11
|
var GlobalImageCssSelector = "hop-Image";
|
|
12
12
|
function Image(props, ref) {
|
|
13
13
|
[props, ref] = useContextProps(props, ref, ImageContext);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useIsOverflow } from './chunk-EHXOXTDN.js';
|
|
2
2
|
import { useLocalizedString } from './chunk-TFVDF4YH.js';
|
|
3
|
-
import { _Text } from './chunk-
|
|
3
|
+
import { _Text } from './chunk-BOOMSDK7.js';
|
|
4
4
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
5
5
|
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
6
6
|
import { useRenderProps } from './chunk-NH3IVMXB.js';
|
|
@@ -16,7 +16,7 @@ import { useContextProps, SelectValueContext, SelectStateContext, useSlottedCont
|
|
|
16
16
|
import { jsx } from 'react/jsx-runtime';
|
|
17
17
|
|
|
18
18
|
// css-module:./SelectValue.module.css#css-module
|
|
19
|
-
var SelectValue_module_default = { "hop-SelectValue": "SelectValue-module__hop-
|
|
19
|
+
var SelectValue_module_default = { "hop-SelectValue": "SelectValue-module__hop-SelectValue___848h6", "hop-SelectValue__text": "SelectValue-module__hop-SelectValue__text___-axEo", "hop-SelectValue__avatar": "SelectValue-module__hop-SelectValue__avatar___MO2u9", "hop-SelectValue__icon": "SelectValue-module__hop-SelectValue__icon___6Y4cp", "hop-SelectValue__end-icon": "SelectValue-module__hop-SelectValue__end-icon___T1SQF" };
|
|
20
20
|
var GlobalSelectValueCssSelector = "hop-SelectValue";
|
|
21
21
|
var SelectValueToAvatarSizeAdapter = {
|
|
22
22
|
sm: "xs",
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { InternalSegmentedControlContext } from './chunk-JHX5QEIH.js';
|
|
2
|
+
import { SegmentedControlItemContext } from './chunk-TDKQPTN6.js';
|
|
3
|
+
import { _Text } from './chunk-BOOMSDK7.js';
|
|
4
|
+
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
5
|
+
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
6
|
+
import { IconContext } from '@hopper-ui/icons';
|
|
7
|
+
import { useStyledSystem } from '@hopper-ui/styled-system';
|
|
8
|
+
import clsx from 'clsx';
|
|
9
|
+
import { forwardRef, useContext, useLayoutEffect } from 'react';
|
|
10
|
+
import { useContextProps, ToggleGroupStateContext, ToggleButton, Provider, DEFAULT_SLOT } from 'react-aria-components';
|
|
11
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
12
|
+
|
|
13
|
+
// css-module:./SegmentedControlItem.module.css#css-module
|
|
14
|
+
var SegmentedControlItem_module_default = { "hop-SegmentedControlItem": "SegmentedControlItem-module__hop-SegmentedControlItem___HFbP8", "hop-SegmentedControlItem__slider": "SegmentedControlItem-module__hop-SegmentedControlItem__slider___eqB4q", "hop-SegmentedControlItem__wrapper": "SegmentedControlItem-module__hop-SegmentedControlItem__wrapper___TwKhe", "hop-SegmentedControlItem--md": "SegmentedControlItem-module__hop-SegmentedControlItem--md___y2AwI", "hop-SegmentedControlItem__icon": "SegmentedControlItem-module__hop-SegmentedControlItem__icon___odFx3", "hop-SegmentedControlItem__text": "SegmentedControlItem-module__hop-SegmentedControlItem__text___n3By5", "hop-SegmentedControlItem__start-icon": "SegmentedControlItem-module__hop-SegmentedControlItem__start-icon___u8O1n", "hop-SegmentedControlItem--justified": "SegmentedControlItem-module__hop-SegmentedControlItem--justified___EgUNA" };
|
|
15
|
+
var GlobalSegmentedControlItemCssSelector = "hop-SegmentedControlItem";
|
|
16
|
+
var SegmentedControlItem = (props, ref) => {
|
|
17
|
+
var _a;
|
|
18
|
+
[props, ref] = useContextProps(props, ref, SegmentedControlItemContext);
|
|
19
|
+
const { prevRef, currentSelectedRef, isJustified } = useContext(InternalSegmentedControlContext);
|
|
20
|
+
const state = useContext(ToggleGroupStateContext);
|
|
21
|
+
const itemSelected = state == null ? void 0 : state.selectedKeys.has(props.id);
|
|
22
|
+
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
23
|
+
const {
|
|
24
|
+
className,
|
|
25
|
+
children,
|
|
26
|
+
style,
|
|
27
|
+
slot,
|
|
28
|
+
size = "sm",
|
|
29
|
+
...otherProps
|
|
30
|
+
} = ownProps;
|
|
31
|
+
const classNames = clsx(
|
|
32
|
+
GlobalSegmentedControlItemCssSelector,
|
|
33
|
+
cssModule(
|
|
34
|
+
SegmentedControlItem_module_default,
|
|
35
|
+
"hop-SegmentedControlItem",
|
|
36
|
+
size,
|
|
37
|
+
isJustified && "justified"
|
|
38
|
+
),
|
|
39
|
+
stylingProps.className,
|
|
40
|
+
className
|
|
41
|
+
);
|
|
42
|
+
const mergedStyles = {
|
|
43
|
+
...style,
|
|
44
|
+
...stylingProps.style
|
|
45
|
+
};
|
|
46
|
+
const isReduced = (_a = window.matchMedia) == null ? void 0 : _a.call(window, "(prefers-reduced-motion: reduce)").matches;
|
|
47
|
+
useLayoutEffect(() => {
|
|
48
|
+
if (isReduced || !itemSelected || !(prevRef == null ? void 0 : prevRef.current) || !(currentSelectedRef == null ? void 0 : currentSelectedRef.current)) {
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
const prevSlider = prevRef.current;
|
|
52
|
+
const currentSlider = currentSelectedRef.current;
|
|
53
|
+
const currentItem = currentSlider.getBoundingClientRect();
|
|
54
|
+
const deltaX = prevSlider.left - (currentItem == null ? void 0 : currentItem.left);
|
|
55
|
+
currentSelectedRef.current.animate(
|
|
56
|
+
[
|
|
57
|
+
{ transform: `translateX(${deltaX}px)`, width: `${prevSlider.width}px` },
|
|
58
|
+
{ transform: "translateX(0px)", width: `${currentItem.width}px` }
|
|
59
|
+
],
|
|
60
|
+
{
|
|
61
|
+
duration: 200,
|
|
62
|
+
easing: "ease-out"
|
|
63
|
+
}
|
|
64
|
+
);
|
|
65
|
+
prevRef.current = null;
|
|
66
|
+
}, [currentSelectedRef, isReduced, itemSelected, prevRef]);
|
|
67
|
+
return /* @__PURE__ */ jsx(
|
|
68
|
+
ToggleButton,
|
|
69
|
+
{
|
|
70
|
+
...otherProps,
|
|
71
|
+
ref,
|
|
72
|
+
className: classNames,
|
|
73
|
+
style: mergedStyles,
|
|
74
|
+
slot: slot != null ? slot : void 0,
|
|
75
|
+
children: ({ isSelected, isDisabled }) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
76
|
+
isSelected && !isDisabled && /* @__PURE__ */ jsx("div", { className: SegmentedControlItem_module_default["hop-SegmentedControlItem__slider"], ref: currentSelectedRef }),
|
|
77
|
+
/* @__PURE__ */ jsx(
|
|
78
|
+
Provider,
|
|
79
|
+
{
|
|
80
|
+
values: [
|
|
81
|
+
[IconContext, {
|
|
82
|
+
slots: {
|
|
83
|
+
[DEFAULT_SLOT]: {
|
|
84
|
+
className: SegmentedControlItem_module_default["hop-SegmentedControlItem__icon"],
|
|
85
|
+
size
|
|
86
|
+
},
|
|
87
|
+
"start-icon": {
|
|
88
|
+
className: SegmentedControlItem_module_default["hop-SegmentedControlItem__start-icon"],
|
|
89
|
+
size
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}],
|
|
93
|
+
[TextContext, {
|
|
94
|
+
size: "sm",
|
|
95
|
+
className: SegmentedControlItem_module_default["hop-SegmentedControlItem__text"]
|
|
96
|
+
}]
|
|
97
|
+
],
|
|
98
|
+
children: /* @__PURE__ */ jsx("div", { className: SegmentedControlItem_module_default["hop-SegmentedControlItem__wrapper"], children: typeof children === "string" ? /* @__PURE__ */ jsx(_Text, { children }) : children })
|
|
99
|
+
}
|
|
100
|
+
)
|
|
101
|
+
] })
|
|
102
|
+
}
|
|
103
|
+
);
|
|
104
|
+
};
|
|
105
|
+
var _SegmentedControlItem = forwardRef(SegmentedControlItem);
|
|
106
|
+
_SegmentedControlItem.displayName = "SegmentedControlItem";
|
|
107
|
+
|
|
108
|
+
export { GlobalSegmentedControlItemCssSelector, _SegmentedControlItem };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { isFunction } from './chunk-TIPN4VYD.js';
|
|
2
2
|
import { ListBoxSectionContext } from './chunk-RLDIAT4F.js';
|
|
3
3
|
import { ListBoxContext } from './chunk-UIEP5BA5.js';
|
|
4
|
-
import { _ListBoxItem } from './chunk-
|
|
4
|
+
import { _ListBoxItem } from './chunk-DW26OLDB.js';
|
|
5
5
|
import { ListBoxItemContext } from './chunk-Y2POLIXK.js';
|
|
6
6
|
import { HeaderContext } from './chunk-7JOGKC3W.js';
|
|
7
7
|
import { useLocalizedString } from './chunk-TFVDF4YH.js';
|
|
8
|
-
import { _Text } from './chunk-
|
|
8
|
+
import { _Text } from './chunk-BOOMSDK7.js';
|
|
9
9
|
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
10
10
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
11
11
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
@@ -18,7 +18,7 @@ import { useContextProps, composeRenderProps, ListBox as ListBox$1, Collection }
|
|
|
18
18
|
import { jsx, jsxs } 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___aU9FW", "hop-ListBox--fluid": "ListBox-module__hop-ListBox--fluid___IjDjT", "hop-ListBox__section": "ListBox-module__hop-ListBox__section___T8C6I", "hop-ListBox__item": "ListBox-module__hop-ListBox__item___fXPyl", "hop-ListBox__section-header": "ListBox-module__hop-ListBox__section-header___Cq0Jh" };
|
|
22
22
|
var GlobalListBoxCssSelector = "hop-ListBox";
|
|
23
23
|
var GlobalListBoxEmptyItemCssSelector = "hop-ListBox__empty-item";
|
|
24
24
|
var ListBoxToTextSizeAdapter = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CheckboxContext } from './chunk-2EAZPH3M.js';
|
|
2
2
|
import { IconListContext } from './chunk-DHVVYSLB.js';
|
|
3
|
-
import { ensureTextWrapper } from './chunk-
|
|
3
|
+
import { ensureTextWrapper } from './chunk-YAK3UMON.js';
|
|
4
4
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
5
5
|
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
6
6
|
import { useRenderProps } from './chunk-NH3IVMXB.js';
|
|
@@ -15,7 +15,7 @@ import { useContextProps, composeRenderProps } from 'react-aria-components';
|
|
|
15
15
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
16
16
|
|
|
17
17
|
// css-module:./DecorativeCheckbox.module.css#css-module
|
|
18
|
-
var DecorativeCheckbox_module_default = { "hop-DecorativeCheckbox": "DecorativeCheckbox-module__hop-
|
|
18
|
+
var DecorativeCheckbox_module_default = { "hop-DecorativeCheckbox": "DecorativeCheckbox-module__hop-DecorativeCheckbox___3SolS Checkbox-module__hop-Checkbox___kKIgH", "hop-DecorativeCheckbox--sm": "DecorativeCheckbox-module__hop-DecorativeCheckbox--sm___n-agg Checkbox-module__hop-Checkbox--sm___kOCFn", "hop-DecorativeCheckbox--md": "DecorativeCheckbox-module__hop-DecorativeCheckbox--md___I1uLT Checkbox-module__hop-Checkbox--md___-EsN1", "hop-DecorativeCheckbox__icon": "DecorativeCheckbox-module__hop-DecorativeCheckbox__icon___DfqFS Checkbox-module__hop-Checkbox__icon___Sa4k3", "hop-DecorativeCheckbox__icon-list": "DecorativeCheckbox-module__hop-DecorativeCheckbox__icon-list___RZ0MI Checkbox-module__hop-Checkbox__icon___Sa4k3", "hop-DecorativeCheckbox__box": "DecorativeCheckbox-module__hop-DecorativeCheckbox__box___3ijCD Checkbox-module__hop-Checkbox__box___vtH2J", "hop-DecorativeCheckbox__check": "DecorativeCheckbox-module__hop-DecorativeCheckbox__check___t5qyn Checkbox-module__hop-Checkbox__check___LR4oZ", "hop-DecorativeCheckbox__text": "DecorativeCheckbox-module__hop-DecorativeCheckbox__text___mOiEO Checkbox-module__hop-Checkbox__text___Klogf" };
|
|
19
19
|
var GlobalDecorativeCheckboxCssSelector = "hop-DecorativeCheckbox";
|
|
20
20
|
function DecorativeCheckbox(props, ref) {
|
|
21
21
|
var _a;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ErrorMessageContext } from './chunk-FAE27DLF.js';
|
|
2
|
-
import { _Text } from './chunk-
|
|
2
|
+
import { _Text } from './chunk-BOOMSDK7.js';
|
|
3
3
|
import { useRenderProps } from './chunk-NH3IVMXB.js';
|
|
4
4
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
5
5
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
@@ -10,7 +10,7 @@ import { FieldErrorContext, useContextProps, composeRenderProps } from 'react-ar
|
|
|
10
10
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
11
11
|
|
|
12
12
|
// css-module:./ErrorMessage.module.css#css-module
|
|
13
|
-
var ErrorMessage_module_default = { "hop-ErrorMessage": "ErrorMessage-module__hop-
|
|
13
|
+
var ErrorMessage_module_default = { "hop-ErrorMessage": "ErrorMessage-module__hop-ErrorMessage___5PZtG", "hop-ErrorMessage__icon": "ErrorMessage-module__hop-ErrorMessage__icon___zWB3c" };
|
|
14
14
|
var GlobalErrorMessageCssSelector = "hop-ErrorMessage";
|
|
15
15
|
function ErrorMessage(props, ref) {
|
|
16
16
|
const validation = useContext(FieldErrorContext);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _RichIconAvatarImage } from './chunk-
|
|
1
|
+
import { _RichIconAvatarImage } from './chunk-X7QAJPWB.js';
|
|
2
2
|
import { useRenderProps } from './chunk-NH3IVMXB.js';
|
|
3
3
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
4
4
|
import { AvatarContext } from './chunk-AES7QBQE.js';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { createContext } from 'react';
|
|
2
|
+
|
|
3
|
+
// src/SegmentedControl/src/SegmentedControlItemContext.ts
|
|
4
|
+
var SegmentedControlItemContext = createContext({});
|
|
5
|
+
SegmentedControlItemContext.displayName = "SegmentedControlItemContext";
|
|
6
|
+
|
|
7
|
+
export { SegmentedControlItemContext };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { useScale } from './chunk-MTDFS4CZ.js';
|
|
2
2
|
import { NumberFieldContext } from './chunk-ZQ3AWYRR.js';
|
|
3
|
-
import { _InputGroup } from './chunk-
|
|
4
|
-
import { _HelperMessage } from './chunk-
|
|
5
|
-
import { _ErrorMessage } from './chunk-
|
|
6
|
-
import { ensureTextWrapper } from './chunk-
|
|
7
|
-
import { _Label } from './chunk-
|
|
8
|
-
import { useFormProps } from './chunk-
|
|
3
|
+
import { _InputGroup } from './chunk-X7PEWS4A.js';
|
|
4
|
+
import { _HelperMessage } from './chunk-OUGECIOS.js';
|
|
5
|
+
import { _ErrorMessage } from './chunk-SC6GOFII.js';
|
|
6
|
+
import { ensureTextWrapper } from './chunk-YAK3UMON.js';
|
|
7
|
+
import { _Label } from './chunk-C67PNOQX.js';
|
|
8
|
+
import { useFormProps } from './chunk-M5Q2CFRQ.js';
|
|
9
9
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
10
10
|
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
11
11
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
@@ -22,7 +22,7 @@ import { useContextProps, composeRenderProps, Input, NumberField as NumberField$
|
|
|
22
22
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
23
23
|
|
|
24
24
|
// css-module:./NumberField.module.css#css-module
|
|
25
|
-
var NumberField_module_default = { "hop-NumberField": "NumberField-module__hop-
|
|
25
|
+
var NumberField_module_default = { "hop-NumberField": "NumberField-module__hop-NumberField___904AD", "hop-NumberField--fluid": "NumberField-module__hop-NumberField--fluid___-M-dA", "hop-NumberField--mobile": "NumberField-module__hop-NumberField--mobile___6xLwy", "hop-NumberField__Label": "NumberField-module__hop-NumberField__Label___nhg8f", "hop-NumberField__prefix": "NumberField-module__hop-NumberField__prefix___O9W4o", "hop-NumberField__InputGroup": "NumberField-module__hop-NumberField__InputGroup___2WZlS", "hop-NumberField__ErrorMessage": "NumberField-module__hop-NumberField__ErrorMessage___M6xoZ", "hop-NumberField__HelperMessage": "NumberField-module__hop-NumberField__HelperMessage___ImWD7", "hop-NumberField__stepper-button": "NumberField-module__hop-NumberField__stepper-button___mPQSC", "hop-NumberField__stepper-button--increment": "NumberField-module__hop-NumberField__stepper-button--increment___HCrFm", "hop-NumberField__stepper-button--decrement": "NumberField-module__hop-NumberField__stepper-button--decrement___ksKQh", "hop-NumberField__stepper-button--mobile": "NumberField-module__hop-NumberField__stepper-button--mobile___9lRYY", "hop-NumberField__stepper-button__icon": "NumberField-module__hop-NumberField__stepper-button__icon___SpCpB", "hop-NumberField__input": "NumberField-module__hop-NumberField__input___FJmNe" };
|
|
26
26
|
var GlobalNumberFieldCssSelector = "hop-NumberField";
|
|
27
27
|
var StepperButton = ({ direction }) => {
|
|
28
28
|
const scale = useScale();
|