@hopper-ui/components 1.3.5 → 1.3.7
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/Avatar/src/AnonymousAvatar.css +10 -10
- package/dist/Avatar/src/AnonymousAvatar.d.ts +8 -2
- package/dist/Avatar/src/AnonymousAvatar.js +4 -2
- package/dist/Avatar/src/Avatar.css +37 -37
- package/dist/Avatar/src/Avatar.d.ts +8 -2
- package/dist/Avatar/src/Avatar.js +5 -3
- package/dist/Avatar/src/DeletedAvatar.css +10 -10
- package/dist/Avatar/src/DeletedAvatar.d.ts +8 -2
- package/dist/Avatar/src/DeletedAvatar.js +4 -2
- package/dist/Avatar/src/RichIconAvatarImage.css +10 -10
- package/dist/Avatar/src/RichIconAvatarImage.d.ts +9 -2
- package/dist/Avatar/src/RichIconAvatarImage.js +3 -1
- package/dist/Avatar/src/index.css +37 -37
- package/dist/Avatar/src/index.js +7 -5
- package/dist/Badge/src/Badge.css +21 -21
- package/dist/Badge/src/Badge.d.ts +24 -2
- package/dist/Badge/src/Badge.js +4 -2
- package/dist/Badge/src/FloatingBadge.css +10 -10
- package/dist/Badge/src/FloatingBadge.d.ts +2 -2
- package/dist/Badge/src/FloatingBadge.js +1 -1
- package/dist/Badge/src/index.css +31 -31
- package/dist/Badge/src/index.js +5 -3
- package/dist/Divider/src/Divider.css +2 -2
- package/dist/Divider/src/Divider.js +1 -1
- package/dist/Divider/src/index.css +2 -2
- package/dist/Divider/src/index.js +1 -1
- package/dist/ErrorMessage/src/ErrorMessage.css +11 -11
- package/dist/ErrorMessage/src/ErrorMessage.js +4 -3
- package/dist/ErrorMessage/src/index.css +11 -11
- package/dist/ErrorMessage/src/index.js +4 -3
- package/dist/Form/src/Form.css +723 -701
- package/dist/Form/src/Form.js +45 -45
- package/dist/Form/src/index.css +723 -701
- package/dist/Form/src/index.js +45 -45
- package/dist/Header/src/Header.d.ts +2 -2
- package/dist/HelperMessage/src/HelperMessage.css +11 -11
- package/dist/HelperMessage/src/HelperMessage.js +2 -2
- package/dist/HelperMessage/src/index.css +11 -11
- package/dist/HelperMessage/src/index.js +2 -2
- package/dist/IconList/src/IconList.css +1 -1
- package/dist/IconList/src/IconList.d.ts +2 -2
- package/dist/IconList/src/IconList.js +1 -1
- package/dist/IconList/src/index.css +1 -1
- package/dist/IconList/src/index.js +1 -1
- package/dist/Link/src/Link.css +31 -31
- package/dist/Link/src/Link.js +3 -3
- package/dist/Link/src/index.css +31 -31
- package/dist/Link/src/index.js +3 -3
- package/dist/ListBox/src/ListBox.css +267 -273
- package/dist/ListBox/src/ListBox.js +8 -8
- package/dist/ListBox/src/ListBoxItem.css +253 -253
- package/dist/ListBox/src/ListBoxItem.js +7 -7
- package/dist/ListBox/src/ListBoxItemSkeleton.css +7 -7
- package/dist/ListBox/src/ListBoxItemSkeleton.d.ts +2 -2
- package/dist/ListBox/src/ListBoxItemSkeleton.js +1 -1
- package/dist/ListBox/src/index.css +267 -273
- package/dist/ListBox/src/index.js +8 -8
- package/dist/Select/src/Select.css +723 -701
- package/dist/Select/src/Select.js +45 -45
- package/dist/Select/src/SelectValue.css +60 -60
- package/dist/Select/src/SelectValue.js +7 -7
- package/dist/Select/src/index.css +723 -701
- package/dist/Select/src/index.js +45 -45
- package/dist/Spinner/src/Spinner.css +19 -19
- package/dist/Spinner/src/Spinner.d.ts +2 -2
- package/dist/Spinner/src/Spinner.js +3 -3
- package/dist/Spinner/src/index.css +19 -19
- package/dist/Spinner/src/index.js +3 -3
- package/dist/buttons/src/Button.css +94 -94
- package/dist/buttons/src/Button.js +5 -5
- package/dist/buttons/src/ButtonGroup.css +11 -11
- package/dist/buttons/src/ButtonGroup.js +1 -1
- package/dist/buttons/src/ClearButton.css +71 -71
- package/dist/buttons/src/ClearButton.js +2 -2
- package/dist/buttons/src/EmbeddedButton.css +71 -71
- package/dist/buttons/src/EmbeddedButton.js +1 -1
- package/dist/buttons/src/index.css +176 -176
- package/dist/buttons/src/index.js +8 -8
- package/dist/checkbox/src/Checkbox.css +28 -28
- package/dist/checkbox/src/Checkbox.js +3 -3
- package/dist/checkbox/src/CheckboxField.css +15 -15
- package/dist/checkbox/src/CheckboxField.d.ts +8 -2
- package/dist/checkbox/src/CheckboxField.js +3 -1
- package/dist/checkbox/src/CheckboxGroup.css +83 -83
- package/dist/checkbox/src/CheckboxGroup.js +2 -2
- package/dist/checkbox/src/CheckboxList.d.ts +2 -2
- package/dist/checkbox/src/DecorativeCheckbox.css +36 -36
- package/dist/checkbox/src/DecorativeCheckbox.js +4 -4
- package/dist/checkbox/src/index.css +83 -83
- package/dist/checkbox/src/index.js +7 -7
- package/dist/{chunk-5PSDYTOT.js → chunk-2LS24P2S.js} +1 -1
- package/dist/{chunk-GR4ZXUOX.js → chunk-4PCMNJTD.js} +15 -13
- package/dist/{chunk-UEHE2IY5.js → chunk-5CR5V44E.js} +23 -11
- package/dist/{chunk-3SMTAPEK.js → chunk-5LGDXMKZ.js} +4 -4
- package/dist/{chunk-2RFHHVN3.js → chunk-AHMI7DHJ.js} +4 -4
- package/dist/{chunk-YZEDTLPG.js → chunk-AWYN6573.js} +1 -1
- package/dist/{chunk-5IRT2QDF.js → chunk-BNBUTFBN.js} +1 -1
- package/dist/{chunk-24JZVLAU.js → chunk-BUI76FPU.js} +1 -1
- package/dist/{chunk-6AFXZYF5.js → chunk-BZC3DOXC.js} +4 -4
- package/dist/{chunk-T6MMAU6N.js → chunk-C4W3WI5F.js} +2 -2
- package/dist/{chunk-LYTJ7OUI.js → chunk-CWP3RDUT.js} +2 -2
- package/dist/{chunk-PSGKAJML.js → chunk-DCTC6KDW.js} +1 -1
- package/dist/{chunk-EBDEMWL7.js → chunk-DMAM2GFN.js} +5 -5
- package/dist/{chunk-CH44JMHK.js → chunk-DNFIKL5N.js} +3 -3
- package/dist/{chunk-QUEZJSCY.js → chunk-DSUR3NPA.js} +3 -3
- package/dist/{chunk-EOXY566V.js → chunk-F4XYXAPX.js} +1 -1
- package/dist/{chunk-7MCVN25U.js → chunk-FKFP4LFR.js} +22 -12
- package/dist/{chunk-52A7OS5J.js → chunk-FSRORCX7.js} +5 -5
- package/dist/{chunk-LI2RM2EK.js → chunk-HIF2U66B.js} +1 -1
- package/dist/{chunk-7XEWB4YU.js → chunk-IA343FCT.js} +25 -18
- package/dist/{chunk-RMXL2PC5.js → chunk-IZUZUN6Z.js} +8 -6
- package/dist/{chunk-SAHIPNPF.js → chunk-JGOXWGEG.js} +5 -5
- package/dist/{chunk-NT6XKRT2.js → chunk-JKE2GH2D.js} +28 -15
- package/dist/{chunk-GEYJZ3VZ.js → chunk-JZGG67JQ.js} +1 -1
- package/dist/{chunk-UQY26ITM.js → chunk-LULNSRRY.js} +1 -1
- package/dist/{chunk-3KW6ENLR.js → chunk-LXWDXMVL.js} +8 -8
- package/dist/{chunk-LSTGTYUX.js → chunk-MDI3RFZS.js} +22 -14
- package/dist/{chunk-XXFIU5GK.js → chunk-MJ24AAEX.js} +1 -1
- package/dist/{chunk-3OVZI77M.js → chunk-MTQURD2G.js} +4 -4
- package/dist/{chunk-HABA5CYG.js → chunk-PGYHBNCP.js} +2 -2
- package/dist/{chunk-D6CIA7NA.js → chunk-PJLVJG4E.js} +1 -1
- package/dist/{chunk-AIO2PFOS.js → chunk-PQTB3F7K.js} +4 -4
- package/dist/{chunk-SUXNDVNP.js → chunk-PVLUQZAG.js} +24 -16
- package/dist/{chunk-4UOBMEPP.js → chunk-SRT6TJ7K.js} +1 -1
- package/dist/{chunk-S4LXTCFZ.js → chunk-SZIBBFKI.js} +4 -4
- package/dist/{chunk-5IRH7LBK.js → chunk-T2DEFREG.js} +22 -14
- package/dist/{chunk-QBGX4KU2.js → chunk-VMSIQERT.js} +3 -3
- package/dist/{chunk-FMNUFTYZ.js → chunk-VZAUDQPW.js} +4 -4
- package/dist/{chunk-RPYDBKIG.js → chunk-WD3GLWJA.js} +2 -2
- package/dist/{chunk-RYROB3P6.js → chunk-YFJWAPT5.js} +1 -1
- package/dist/{chunk-6UW2BF2Z.js → chunk-YUMDUDZX.js} +4 -4
- package/dist/{chunk-LIGWTMRQ.js → chunk-Z63VLZM2.js} +3 -3
- package/dist/{chunk-Y3VCNKJB.js → chunk-ZVOVNXPJ.js} +22 -13
- package/dist/index.css +723 -701
- package/dist/index.d.ts +1 -1
- package/dist/index.js +45 -45
- package/dist/inputs/src/InputGroup.css +191 -191
- package/dist/inputs/src/InputGroup.js +1 -1
- package/dist/inputs/src/NumberField.css +231 -231
- package/dist/inputs/src/NumberField.js +7 -7
- package/dist/inputs/src/PasswordField.css +219 -219
- package/dist/inputs/src/PasswordField.js +8 -8
- package/dist/inputs/src/SearchField.css +225 -225
- package/dist/inputs/src/SearchField.js +9 -9
- package/dist/inputs/src/TextArea.css +225 -225
- package/dist/inputs/src/TextArea.js +7 -7
- package/dist/inputs/src/TextField.css +223 -223
- package/dist/inputs/src/TextField.js +9 -9
- package/dist/inputs/src/index.css +271 -271
- package/dist/inputs/src/index.js +13 -13
- package/dist/layout/src/Content.d.ts +2 -2
- package/dist/layout/src/Footer.d.ts +2 -2
- package/dist/overlays/Popover/src/Popover.css +723 -701
- package/dist/overlays/Popover/src/Popover.d.ts +2 -2
- package/dist/overlays/Popover/src/Popover.js +45 -45
- package/dist/overlays/Popover/src/index.css +723 -701
- package/dist/overlays/Popover/src/index.js +45 -45
- package/dist/radio/src/DecorativeRadio.css +36 -36
- package/dist/radio/src/DecorativeRadio.js +4 -4
- package/dist/radio/src/Radio.css +28 -28
- package/dist/radio/src/Radio.js +3 -3
- package/dist/radio/src/RadioField.css +15 -15
- package/dist/radio/src/RadioField.d.ts +8 -2
- package/dist/radio/src/RadioField.js +3 -1
- package/dist/radio/src/RadioGroup.css +83 -83
- package/dist/radio/src/RadioGroup.js +2 -2
- package/dist/radio/src/RadioList.d.ts +2 -2
- package/dist/radio/src/index.css +83 -83
- package/dist/radio/src/index.js +7 -7
- package/dist/switch/src/Switch.css +25 -25
- package/dist/switch/src/Switch.js +3 -3
- package/dist/switch/src/SwitchField.css +15 -15
- package/dist/switch/src/SwitchField.d.ts +8 -2
- package/dist/switch/src/SwitchField.js +3 -1
- package/dist/switch/src/index.css +31 -31
- package/dist/switch/src/index.js +5 -4
- package/dist/tag/src/Tag.css +323 -323
- package/dist/tag/src/Tag.js +6 -6
- package/dist/tag/src/TagGroup.css +22 -22
- package/dist/tag/src/TagGroup.js +1 -1
- package/dist/tag/src/index.css +336 -336
- package/dist/tag/src/index.js +7 -7
- package/dist/typography/Heading/src/Heading.css +9 -9
- package/dist/typography/Heading/src/Heading.js +1 -1
- package/dist/typography/Heading/src/index.css +9 -9
- package/dist/typography/Heading/src/index.js +1 -1
- package/dist/typography/Label/src/Label.css +3 -3
- package/dist/typography/Label/src/Label.js +1 -1
- package/dist/typography/Label/src/index.css +3 -3
- package/dist/typography/Label/src/index.js +1 -1
- package/dist/typography/OverlineText/src/OverlineText.css +6 -6
- package/dist/typography/OverlineText/src/OverlineText.js +1 -1
- package/dist/typography/OverlineText/src/index.css +6 -6
- package/dist/typography/OverlineText/src/index.js +1 -1
- package/dist/typography/Text/src/Text.css +9 -9
- package/dist/typography/Text/src/Text.js +1 -1
- package/dist/typography/Text/src/index.css +9 -9
- package/dist/typography/Text/src/index.js +1 -1
- package/dist/utils/src/index.d.ts +1 -1
- package/dist/utils/src/index.js +2 -2
- package/dist/utils/src/types.d.ts +3 -3
- package/package.json +4 -4
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { SearchFieldContext } from './chunk-3NKF5TPD.js';
|
|
2
|
-
import { _InputGroup } from './chunk-
|
|
3
|
-
import { _ClearButton } from './chunk-
|
|
2
|
+
import { _InputGroup } from './chunk-BUI76FPU.js';
|
|
3
|
+
import { _ClearButton } from './chunk-AWYN6573.js';
|
|
4
4
|
import { LabelContext } from './chunk-QCA3ZR56.js';
|
|
5
|
-
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
6
5
|
import { HelperMessageContext } from './chunk-HZKFQ33E.js';
|
|
7
6
|
import { ErrorMessageContext } from './chunk-FAE27DLF.js';
|
|
8
7
|
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
8
|
+
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
9
9
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
10
10
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
11
11
|
import { IconContext, SearchIcon } from '@hopper-ui/icons';
|
|
@@ -17,7 +17,7 @@ import { useContextProps, composeRenderProps, Input, SearchField as SearchField$
|
|
|
17
17
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
18
18
|
|
|
19
19
|
// css-module:./SearchField.module.css#css-module
|
|
20
|
-
var SearchField_module_default = { "hop-SearchField": "SearchField-module__hop-
|
|
20
|
+
var SearchField_module_default = { "hop-SearchField": "SearchField-module__hop-SearchField___AV5d9", "hop-SearchField--fluid": "SearchField-module__hop-SearchField--fluid___fk-1h", "hop-SearchField__Label": "SearchField-module__hop-SearchField__Label___cDU1N", "hop-SearchField__prefix": "SearchField-module__hop-SearchField__prefix___CXWRj", "hop-SearchField__InputGroup": "SearchField-module__hop-SearchField__InputGroup___WkPdD", "hop-SearchField--clearable": "SearchField-module__hop-SearchField--clearable___rVtfI", "hop-SearchField__ErrorMessage": "SearchField-module__hop-SearchField__ErrorMessage___fscIC", "hop-SearchField__HelperMessage": "SearchField-module__hop-SearchField__HelperMessage___wlBbe", "hop-SearchField__ClearButton": "SearchField-module__hop-SearchField__ClearButton___7B2Ke" };
|
|
21
21
|
var GlobalSearchFieldCssSelector = "hop-SearchField";
|
|
22
22
|
function SearchField(props, ref) {
|
|
23
23
|
var _a;
|
|
@@ -3,9 +3,9 @@ import { RadioFieldContext } from './chunk-DGLAGYBD.js';
|
|
|
3
3
|
import { RadioGroupContext } from './chunk-5MBJWRZD.js';
|
|
4
4
|
import { LabelContext } from './chunk-QCA3ZR56.js';
|
|
5
5
|
import { RadioContext } from './chunk-FU5CCPLP.js';
|
|
6
|
-
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
7
6
|
import { HelperMessageContext } from './chunk-HZKFQ33E.js';
|
|
8
7
|
import { ErrorMessageContext } from './chunk-FAE27DLF.js';
|
|
8
|
+
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
9
9
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
10
10
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
11
11
|
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
@@ -14,7 +14,7 @@ import { useContextProps, composeRenderProps, RadioGroup as RadioGroup$1 } from
|
|
|
14
14
|
import { jsx } from 'react/jsx-runtime';
|
|
15
15
|
|
|
16
16
|
// css-module:./RadioGroup.module.css#css-module
|
|
17
|
-
var RadioGroup_module_default = { "hop-RadioGroup": "RadioGroup-module__hop-
|
|
17
|
+
var RadioGroup_module_default = { "hop-RadioGroup": "RadioGroup-module__hop-RadioGroup___ByriM", "hop-RadioGroup--bordered": "RadioGroup-module__hop-RadioGroup--bordered___U6RNR", "hop-RadioGroup--sm": "RadioGroup-module__hop-RadioGroup--sm___wPypQ", "hop-RadioGroup--md": "RadioGroup-module__hop-RadioGroup--md___uVawW", "hop-RadioGroup__label": "RadioGroup-module__hop-RadioGroup__label___ieR7x", "hop-RadioGroup__list": "RadioGroup-module__hop-RadioGroup__list___3EuL0", "hop-RadioGroup__radio": "RadioGroup-module__hop-RadioGroup__radio___m6LmJ", "hop-RadioGroup__error-message": "RadioGroup-module__hop-RadioGroup__error-message___QtRJp", "hop-RadioGroup__helper-message": "RadioGroup-module__hop-RadioGroup__helper-message___CHWOA" };
|
|
18
18
|
var GlobalRadioGroupCssSelector = "hop-RadioGroup";
|
|
19
19
|
function RadioGroup(props, ref) {
|
|
20
20
|
var _a, _b;
|
|
@@ -7,7 +7,7 @@ import { useContextProps, Heading as Heading$1 } from 'react-aria-components';
|
|
|
7
7
|
import { jsx } from 'react/jsx-runtime';
|
|
8
8
|
|
|
9
9
|
// css-module:./Heading.module.css#css-module
|
|
10
|
-
var Heading_module_default = { "hop-Heading": "Heading-module__hop-
|
|
10
|
+
var Heading_module_default = { "hop-Heading": "Heading-module__hop-Heading___byI5a", "hop-Heading--xs": "Heading-module__hop-Heading--xs___S-Spm", "hop-Heading--sm": "Heading-module__hop-Heading--sm___eYVWY", "hop-Heading--md": "Heading-module__hop-Heading--md___Trt4d", "hop-Heading--lg": "Heading-module__hop-Heading--lg___8RulN", "hop-Heading--xl": "Heading-module__hop-Heading--xl___XLAp5", "hop-Heading--2xl": "Heading-module__hop-Heading--2xl___ghz3S", "hop-Heading--3xl": "Heading-module__hop-Heading--3xl___sTxzT" };
|
|
11
11
|
var GlobalHeadingCssSelector = "hop-Heading";
|
|
12
12
|
function Heading(props, ref) {
|
|
13
13
|
[props, ref] = useContextProps(props, ref, HeadingContext);
|
|
@@ -2,12 +2,12 @@ import { isFunction } from './chunk-TIPN4VYD.js';
|
|
|
2
2
|
import { useLocalizedString } from './chunk-TFVDF4YH.js';
|
|
3
3
|
import { SectionContext } from './chunk-5H5AZJPQ.js';
|
|
4
4
|
import { ListBoxContext } from './chunk-UIEP5BA5.js';
|
|
5
|
-
import { _ListBoxItem } from './chunk-
|
|
5
|
+
import { _ListBoxItem } from './chunk-IZUZUN6Z.js';
|
|
6
6
|
import { ListBoxItemContext } from './chunk-Y2POLIXK.js';
|
|
7
|
-
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
8
7
|
import { HeaderContext } from './chunk-7JOGKC3W.js';
|
|
9
8
|
import { DividerContext } from './chunk-FYIHMKHI.js';
|
|
10
|
-
import { _Text } from './chunk-
|
|
9
|
+
import { _Text } from './chunk-F4XYXAPX.js';
|
|
10
|
+
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
11
11
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
12
12
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
13
13
|
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
@@ -18,7 +18,7 @@ import { useContextProps, composeRenderProps, ListBox as ListBox$1, Collection }
|
|
|
18
18
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
19
19
|
|
|
20
20
|
// css-module:./ListBox.module.css#css-module
|
|
21
|
-
var ListBox_module_default = { "hop-ListBox": "ListBox-module__hop-
|
|
21
|
+
var ListBox_module_default = { "hop-ListBox": "ListBox-module__hop-ListBox___fCheu", "hop-ListBox--fluid": "ListBox-module__hop-ListBox--fluid___2fafn", "hop-ListBox__section": "ListBox-module__hop-ListBox__section___sIZIS", "hop-ListBox__item": "ListBox-module__hop-ListBox__item___4-Gsh", "hop-ListBox__section-header": "ListBox-module__hop-ListBox__section-header___1GilQ" };
|
|
22
22
|
var GlobalListBoxCssSelector = "hop-ListBox";
|
|
23
23
|
var GlobalListBoxEmptyItemCssSelector = "hop-ListBox__empty-item";
|
|
24
24
|
var ListBoxToTextSizeAdapter = {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { SwitchContext } from './chunk-YHBJAXUY.js';
|
|
2
2
|
import { isTextOnlyChildren } from './chunk-ZWU6DRRZ.js';
|
|
3
|
-
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
4
3
|
import { IconListContext } from './chunk-DHVVYSLB.js';
|
|
5
|
-
import { _Text } from './chunk-
|
|
4
|
+
import { _Text } from './chunk-F4XYXAPX.js';
|
|
6
5
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
7
6
|
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
7
|
+
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
8
8
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
9
9
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
10
10
|
import { IconContext } from '@hopper-ui/icons';
|
|
@@ -14,7 +14,7 @@ import { useContextProps, composeRenderProps, Switch as Switch$1 } from 'react-a
|
|
|
14
14
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
15
15
|
|
|
16
16
|
// css-module:./Switch.module.css#css-module
|
|
17
|
-
var Switch_module_default = { "hop-Switch": "Switch-module__hop-
|
|
17
|
+
var Switch_module_default = { "hop-Switch": "Switch-module__hop-Switch___pDNWk", "hop-Switch--sm": "Switch-module__hop-Switch--sm___iOw3G", "hop-Switch--md": "Switch-module__hop-Switch--md___tQX-I", "hop-Switch__indicator": "Switch-module__hop-Switch__indicator___zn9K-", "hop-Switch__text": "Switch-module__hop-Switch__text___HP1cV", "hop-Switch__icon-list": "Switch-module__hop-Switch__icon-list___Dv9Q0", "hop-Switch__icon": "Switch-module__hop-Switch__icon___ofe0Q" };
|
|
18
18
|
var GlobalSwitchCssSelector = "hop-Switch";
|
|
19
19
|
function Switch(props, ref) {
|
|
20
20
|
var _a;
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
+
import { useRenderProps } from './chunk-NH3IVMXB.js';
|
|
2
|
+
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
1
3
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
2
4
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
3
5
|
import { RichIconAvatarImageContext } from './chunk-JWW56J7M.js';
|
|
4
6
|
import { RichIconContext } from '@hopper-ui/icons';
|
|
5
7
|
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
6
|
-
import clsx from 'clsx';
|
|
7
8
|
import { forwardRef } from 'react';
|
|
8
|
-
import {
|
|
9
|
+
import { mergeProps } from 'react-aria';
|
|
10
|
+
import { useContextProps, composeRenderProps } from 'react-aria-components';
|
|
9
11
|
import { jsx } from 'react/jsx-runtime';
|
|
10
12
|
|
|
11
13
|
// css-module:./RichIconAvatarImage.module.css#css-module
|
|
12
|
-
var RichIconAvatarImage_module_default = { "hop-RichIconAvatarImage": "RichIconAvatarImage-module__hop-
|
|
14
|
+
var RichIconAvatarImage_module_default = { "hop-RichIconAvatarImage": "RichIconAvatarImage-module__hop-RichIconAvatarImage___48JUv", "hop-RichIconAvatarImage--xs": "RichIconAvatarImage-module__hop-RichIconAvatarImage--xs___is3ow", "hop-RichIconAvatarImage--sm": "RichIconAvatarImage-module__hop-RichIconAvatarImage--sm___Uv85l", "hop-RichIconAvatarImage--md": "RichIconAvatarImage-module__hop-RichIconAvatarImage--md___MKeiw", "hop-RichIconAvatarImage--lg": "RichIconAvatarImage-module__hop-RichIconAvatarImage--lg___zWajo", "hop-RichIconAvatarImage--xl": "RichIconAvatarImage-module__hop-RichIconAvatarImage--xl___G8Mrm", "hop-RichIconAvatarImage--2xl": "RichIconAvatarImage-module__hop-RichIconAvatarImage--2xl___IX8Rm", "hop-RichIconAvatarImage__icon": "RichIconAvatarImage-module__hop-RichIconAvatarImage__icon___xjvN9" };
|
|
13
15
|
var GlobalRichIconAvatarImageCssSelector = "hop-RichIconAvatarImage";
|
|
14
16
|
var AvatarToIconSizeAdapter = {
|
|
15
17
|
xs: "md",
|
|
@@ -24,7 +26,6 @@ function RichIconAvatarImage(props, ref) {
|
|
|
24
26
|
[props, ref] = useContextProps(props, ref, RichIconAvatarImageContext);
|
|
25
27
|
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
26
28
|
const {
|
|
27
|
-
children,
|
|
28
29
|
className,
|
|
29
30
|
isDisabled,
|
|
30
31
|
style,
|
|
@@ -33,7 +34,7 @@ function RichIconAvatarImage(props, ref) {
|
|
|
33
34
|
...otherProps
|
|
34
35
|
} = ownProps;
|
|
35
36
|
const size = (_a = useResponsiveValue(sizeValue)) != null ? _a : "md";
|
|
36
|
-
const classNames =
|
|
37
|
+
const classNames = composeClassnameRenderProps(
|
|
37
38
|
className,
|
|
38
39
|
GlobalRichIconAvatarImageCssSelector,
|
|
39
40
|
cssModule(
|
|
@@ -43,20 +44,28 @@ function RichIconAvatarImage(props, ref) {
|
|
|
43
44
|
),
|
|
44
45
|
stylingProps.className
|
|
45
46
|
);
|
|
46
|
-
const mergedStyles = {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
47
|
+
const mergedStyles = composeRenderProps(style, (prev) => {
|
|
48
|
+
return {
|
|
49
|
+
...stylingProps.style,
|
|
50
|
+
...prev
|
|
51
|
+
};
|
|
52
|
+
});
|
|
53
|
+
const renderProps = useRenderProps({
|
|
54
|
+
...props,
|
|
55
|
+
className: classNames,
|
|
56
|
+
style: mergedStyles,
|
|
57
|
+
values: {
|
|
58
|
+
isDisabled: isDisabled || false
|
|
59
|
+
}
|
|
60
|
+
});
|
|
50
61
|
if (!props["aria-label"] && !props["aria-labelledby"]) {
|
|
51
62
|
console.warn("An aria-label or aria-labelledby prop is required for accessibility.");
|
|
52
63
|
}
|
|
53
64
|
return /* @__PURE__ */ jsx(
|
|
54
65
|
"div",
|
|
55
66
|
{
|
|
56
|
-
...otherProps,
|
|
67
|
+
...mergeProps(otherProps, renderProps),
|
|
57
68
|
ref,
|
|
58
|
-
className: classNames,
|
|
59
|
-
style: mergedStyles,
|
|
60
69
|
slot: slot != null ? slot : void 0,
|
|
61
70
|
role: "img",
|
|
62
71
|
"data-disabled": isDisabled || void 0,
|
|
@@ -69,7 +78,7 @@ function RichIconAvatarImage(props, ref) {
|
|
|
69
78
|
size: AvatarToIconSizeAdapter[size]
|
|
70
79
|
}]
|
|
71
80
|
],
|
|
72
|
-
children
|
|
81
|
+
children: renderProps.children
|
|
73
82
|
}
|
|
74
83
|
)
|
|
75
84
|
}
|