@hopper-ui/components 1.4.6 → 1.4.8
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 +19 -0
- package/dist/Accordion/src/Accordion.css +68 -68
- package/dist/Accordion/src/Accordion.js +3 -3
- package/dist/Accordion/src/index.css +68 -68
- package/dist/Accordion/src/index.js +3 -3
- package/dist/Avatar/src/AnonymousAvatar.css +38 -38
- package/dist/Avatar/src/AnonymousAvatar.js +3 -3
- package/dist/Avatar/src/Avatar.css +56 -56
- package/dist/Avatar/src/Avatar.js +5 -5
- package/dist/Avatar/src/DeletedAvatar.css +38 -38
- package/dist/Avatar/src/DeletedAvatar.js +3 -3
- package/dist/Avatar/src/RichIconAvatarImage.css +38 -38
- package/dist/Avatar/src/RichIconAvatarImage.js +2 -2
- package/dist/Avatar/src/index.css +56 -56
- package/dist/Avatar/src/index.js +7 -7
- package/dist/Badge/src/Badge.css +43 -43
- package/dist/Badge/src/Badge.js +3 -3
- package/dist/Badge/src/FloatingBadge.css +38 -38
- package/dist/Badge/src/FloatingBadge.js +2 -2
- package/dist/Badge/src/index.css +53 -53
- package/dist/Badge/src/index.js +5 -5
- package/dist/Callout/src/Callout.css +1649 -0
- package/dist/Callout/src/Callout.d.ts +38 -0
- package/dist/Callout/src/Callout.js +30 -0
- package/dist/Callout/src/CalloutContext.d.ts +10 -0
- package/dist/Callout/src/CalloutContext.js +2 -0
- package/dist/Callout/src/CompactCallout.css +1750 -0
- package/dist/Callout/src/CompactCallout.d.ts +18 -0
- package/dist/Callout/src/CompactCallout.js +31 -0
- package/dist/Callout/src/CompactCalloutContext.d.ts +11 -0
- package/dist/Callout/src/CompactCalloutContext.js +2 -0
- package/dist/Callout/src/index.css +1835 -0
- package/dist/Callout/src/index.d.ts +9 -0
- package/dist/Callout/src/index.js +33 -0
- 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 +3200 -2838
- package/dist/ComboBox/src/ComboBox.d.ts +6 -6
- package/dist/ComboBox/src/ComboBox.js +28 -25
- package/dist/ComboBox/src/ComboBoxContext.d.ts +3 -2
- package/dist/ComboBox/src/index.css +3200 -2838
- package/dist/ComboBox/src/index.d.ts +4 -3
- package/dist/ComboBox/src/index.js +28 -25
- package/dist/Disclosure/src/Disclosure.css +38 -38
- package/dist/Disclosure/src/Disclosure.js +3 -3
- package/dist/Disclosure/src/DisclosureHeader.css +45 -45
- package/dist/Disclosure/src/DisclosureHeader.js +10 -10
- package/dist/Disclosure/src/DisclosurePanel.css +38 -38
- package/dist/Disclosure/src/DisclosurePanel.js +9 -9
- package/dist/Disclosure/src/index.css +63 -63
- package/dist/Disclosure/src/index.js +14 -14
- 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 +3 -3
- package/dist/ErrorMessage/src/index.css +30 -30
- package/dist/ErrorMessage/src/index.js +3 -3
- 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 +281 -269
- package/dist/IllustratedMessage/src/IllustratedMessage.js +2 -2
- package/dist/IllustratedMessage/src/index.css +281 -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 +59 -59
- package/dist/Link/src/Link.js +8 -8
- package/dist/Link/src/index.css +59 -59
- package/dist/Link/src/index.js +8 -8
- package/dist/ListBox/src/ListBox.css +275 -275
- package/dist/ListBox/src/ListBox.js +14 -14
- package/dist/ListBox/src/ListBoxItem.css +263 -263
- package/dist/ListBox/src/ListBoxItem.js +12 -12
- package/dist/ListBox/src/ListBoxItemSkeleton.css +35 -35
- package/dist/ListBox/src/ListBoxItemSkeleton.js +1 -1
- package/dist/ListBox/src/index.css +275 -275
- package/dist/ListBox/src/index.js +14 -14
- package/dist/SegmentedControl/src/SegmentedControl.css +29 -29
- package/dist/SegmentedControl/src/SegmentedControl.js +1 -1
- package/dist/SegmentedControl/src/SegmentedControlItem.css +43 -43
- package/dist/SegmentedControl/src/SegmentedControlItem.js +7 -7
- package/dist/SegmentedControl/src/index.css +44 -44
- package/dist/SegmentedControl/src/index.d.ts +2 -0
- package/dist/SegmentedControl/src/index.js +10 -10
- package/dist/Select/src/Select.css +587 -575
- package/dist/Select/src/Select.js +26 -26
- package/dist/Select/src/SelectValue.css +62 -62
- package/dist/Select/src/SelectValue.js +8 -8
- package/dist/Select/src/index.css +587 -575
- package/dist/Select/src/index.js +26 -26
- 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/Tile/src/Tile.css +326 -0
- package/dist/Tile/src/Tile.d.ts +20 -0
- package/dist/Tile/src/Tile.js +19 -0
- package/dist/Tile/src/TileContext.d.ts +9 -0
- package/dist/Tile/src/TileContext.js +2 -0
- package/dist/Tile/src/TileGroup.css +241 -0
- package/dist/Tile/src/TileGroup.d.ts +30 -0
- package/dist/Tile/src/TileGroup.js +6 -0
- package/dist/Tile/src/TileGroupContext.d.ts +8 -0
- package/dist/Tile/src/TileGroupContext.js +2 -0
- package/dist/Tile/src/index.css +334 -0
- package/dist/Tile/src/index.d.ts +7 -0
- package/dist/Tile/src/index.js +21 -0
- 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 +10 -10
- package/dist/buttons/src/ButtonGroup.css +39 -39
- package/dist/buttons/src/ButtonGroup.js +1 -1
- package/dist/buttons/src/ClearButton.css +99 -99
- package/dist/buttons/src/ClearButton.d.ts +12 -5
- package/dist/buttons/src/ClearButton.js +4 -4
- package/dist/buttons/src/ClearButtonContext.d.ts +2 -4
- package/dist/buttons/src/CloseButton.css +679 -0
- package/dist/buttons/src/CloseButton.d.ts +18 -0
- package/dist/buttons/src/CloseButton.js +27 -0
- package/dist/buttons/src/CloseButtonContext.d.ts +13 -0
- package/dist/buttons/src/CloseButtonContext.js +2 -0
- package/dist/buttons/src/EmbeddedButton.css +99 -99
- package/dist/buttons/src/EmbeddedButton.d.ts +27 -7
- package/dist/buttons/src/EmbeddedButton.js +1 -1
- package/dist/buttons/src/EmbeddedButtonContext.d.ts +1 -4
- package/dist/buttons/src/LinkButton.css +103 -103
- package/dist/buttons/src/LinkButton.js +8 -8
- package/dist/buttons/src/index.css +262 -250
- package/dist/buttons/src/index.d.ts +4 -1
- package/dist/buttons/src/index.js +17 -15
- package/dist/checkbox/src/Checkbox.css +47 -47
- package/dist/checkbox/src/Checkbox.js +8 -8
- package/dist/checkbox/src/CheckboxField.css +34 -34
- package/dist/checkbox/src/CheckboxField.js +4 -4
- package/dist/checkbox/src/CheckboxGroup.css +99 -99
- package/dist/checkbox/src/CheckboxGroup.js +9 -9
- package/dist/checkbox/src/DecorativeCheckbox.css +55 -55
- package/dist/checkbox/src/DecorativeCheckbox.js +9 -9
- package/dist/checkbox/src/index.css +99 -99
- package/dist/checkbox/src/index.js +16 -16
- package/dist/{chunk-NH3IVMXB.js → chunk-2NSUMKNH.js} +1 -1
- package/dist/chunk-3MTGAZ77.js +7 -0
- package/dist/{chunk-FQHHLFAB.js → chunk-53WBWLKL.js} +12 -11
- package/dist/chunk-56WMYNUD.js +79 -0
- package/dist/{chunk-73CBNN4K.js → chunk-5TGWIM5C.js} +16 -14
- package/dist/{chunk-OUGECIOS.js → chunk-6CVROWNN.js} +2 -2
- package/dist/{chunk-67VFL63C.js → chunk-725VVVMA.js} +1 -1
- package/dist/{chunk-OMGZXRVE.js → chunk-72CSHV4D.js} +6 -6
- package/dist/{chunk-TFVDF4YH.js → chunk-75DHKNW2.js} +2 -0
- package/dist/chunk-7HIGRTLG.js +34 -0
- package/dist/{chunk-ZLWJJVD3.js → chunk-7JQJ5U7J.js} +1 -1
- package/dist/{chunk-Q5WT3U7W.js → chunk-7SMF3TO5.js} +2 -2
- package/dist/{chunk-OUTV4GW4.js → chunk-AD5GQ24L.js} +1 -1
- package/dist/{chunk-GK7I65BF.js → chunk-B7MWXJWS.js} +2 -2
- package/dist/{chunk-X5H6RCTP.js → chunk-BPO44JV2.js} +4 -4
- package/dist/{chunk-XE6JG2MF.js → chunk-CKH5EUEC.js} +3 -3
- package/dist/{chunk-JELBOYLB.js → chunk-CYICQ2TZ.js} +1 -1
- package/dist/{chunk-RTB477QF.js → chunk-CZRMFNRT.js} +3 -3
- package/dist/{chunk-KUBUEVXB.js → chunk-EZF74GSX.js} +2 -2
- package/dist/chunk-EZXZMHPJ.js +77 -0
- package/dist/chunk-F6D7LSXZ.js +73 -0
- package/dist/{chunk-25APP2V4.js → chunk-F6NQHY35.js} +1 -1
- package/dist/{chunk-5OS5HF6G.js → chunk-GOY3T3HI.js} +3 -3
- package/dist/chunk-GRCAVJC6.js +7 -0
- package/dist/{chunk-5CW3ZTUM.js → chunk-GZYLFGDT.js} +4 -4
- package/dist/{chunk-C67PNOQX.js → chunk-I2LTZFXN.js} +3 -3
- package/dist/{chunk-X7QAJPWB.js → chunk-IMUQCB4Q.js} +2 -2
- package/dist/{chunk-BQZSLU4S.js → chunk-IYT75GWO.js} +2 -2
- package/dist/chunk-JTNKUYE5.js +8 -0
- package/dist/{chunk-3AB3J5EP.js → chunk-JZ4LJ4M4.js} +4 -4
- package/dist/{chunk-BQJA5YLU.js → chunk-KFH2WZVX.js} +7 -7
- package/dist/{chunk-MISFLYHH.js → chunk-KIQW5BE4.js} +3 -3
- package/dist/{chunk-IFQPPUVZ.js → chunk-KVJHBVJU.js} +51 -72
- package/dist/{chunk-XQIEHXUJ.js → chunk-KW6WJUD5.js} +4 -4
- package/dist/{chunk-DCIGY462.js → chunk-M35EMGMO.js} +1 -1
- package/dist/{chunk-ULU4LXYF.js → chunk-ML4JW4EF.js} +17 -25
- package/dist/chunk-MM2SG6JU.js +75 -0
- package/dist/{chunk-YKHKR2GB.js → chunk-N455JVEG.js} +4 -4
- package/dist/chunk-NHKYEZTW.js +56 -0
- package/dist/{chunk-E74QE424.js → chunk-NIOF2SKT.js} +2 -2
- package/dist/{chunk-6I4ZCACA.js → chunk-NXT7EAML.js} +3 -3
- package/dist/chunk-NZ4VFVXA.js +7 -0
- package/dist/{chunk-3HGZNFEQ.js → chunk-OSGTA6DG.js} +1 -1
- package/dist/{chunk-56QFPH7A.js → chunk-PAVQC74G.js} +1 -1
- package/dist/{chunk-YA5VMTPD.js → chunk-PXOVV47X.js} +2 -2
- package/dist/{chunk-DW26OLDB.js → chunk-Q5XBTXXT.js} +7 -7
- package/dist/{chunk-LULTNKIP.js → chunk-QOFWY452.js} +3 -3
- package/dist/{chunk-SUB3BVYD.js → chunk-QR6WDDBN.js} +2 -2
- package/dist/{chunk-LLEWW4UQ.js → chunk-QVXYZX5B.js} +1 -1
- package/dist/chunk-RBWFFWIG.js +7 -0
- package/dist/{chunk-LUC6XJU7.js → chunk-RZG5PUET.js} +11 -11
- package/dist/{chunk-D4CWHBFC.js → chunk-S4VWM2B6.js} +29 -17
- package/dist/{chunk-YAK3UMON.js → chunk-SRMMLWHK.js} +1 -1
- package/dist/chunk-SSV5APP2.js +118 -0
- package/dist/{chunk-CPI34H7R.js → chunk-TMVLBCMF.js} +3 -3
- package/dist/{chunk-P63VMXVG.js → chunk-U2E2PK7O.js} +4 -4
- package/dist/{chunk-WN3TGQHF.js → chunk-UC2WGSJH.js} +13 -13
- package/dist/{chunk-4WKUWT6B.js → chunk-UIG77WBM.js} +6 -6
- package/dist/{chunk-SC6GOFII.js → chunk-UXCNMI34.js} +3 -3
- package/dist/{chunk-VUDALBYV.js → chunk-UXGG4SUH.js} +1 -1
- package/dist/{chunk-OT3SSSAN.js → chunk-VFZ2K6U6.js} +2 -2
- package/dist/{chunk-B22BEVRV.js → chunk-VHVRECJY.js} +6 -6
- package/dist/{chunk-M5Q2CFRQ.js → chunk-VOXZA4YS.js} +1 -1
- package/dist/{chunk-EOES5IUI.js → chunk-W2TEMTXK.js} +1 -1
- package/dist/{chunk-QZL7DSHL.js → chunk-WNFSIU36.js} +4 -4
- package/dist/{chunk-AZBN2SOE.js → chunk-XV2C6MXF.js} +9 -9
- package/dist/{chunk-LPKBOHFG.js → chunk-YHRCBRDZ.js} +2 -2
- package/dist/{chunk-ZXHTDMQB.js → chunk-YMQMJAC4.js} +3 -3
- package/dist/{chunk-5DW5MIOP.js → chunk-YP2IQM4Y.js} +3 -3
- package/dist/{chunk-4PZCXSIJ.js → chunk-Z2SUHJJH.js} +4 -4
- package/dist/{chunk-BOOMSDK7.js → chunk-Z7ORLEY6.js} +1 -1
- package/dist/{chunk-NKCDMR4Y.js → chunk-ZJBNVQTB.js} +1 -3
- package/dist/{chunk-O2YRPX5E.js → chunk-ZMNX5LVE.js} +2 -2
- package/dist/i18n/src/index.js +1 -1
- package/dist/i18n/src/useLocalizedString.js +1 -1
- package/dist/index.css +1636 -1563
- package/dist/index.d.ts +14 -4
- package/dist/index.js +94 -88
- package/dist/inputs/src/Input.css +302 -0
- package/dist/inputs/src/Input.d.ts +15 -0
- package/dist/inputs/src/Input.js +3 -0
- package/dist/inputs/src/InputGroup.css +47 -1471
- package/dist/inputs/src/InputGroup.d.ts +1 -18
- package/dist/inputs/src/InputGroup.js +1 -3
- package/dist/inputs/src/InputGroupContext.d.ts +0 -2
- package/dist/inputs/src/NumberField.css +130 -1514
- package/dist/inputs/src/NumberField.js +13 -14
- package/dist/inputs/src/PasswordField.css +357 -379
- package/dist/inputs/src/PasswordField.d.ts +4 -4
- package/dist/inputs/src/PasswordField.js +14 -13
- package/dist/inputs/src/PasswordFieldContext.d.ts +2 -2
- package/dist/inputs/src/RemainingCharacterCount.css +31 -31
- package/dist/inputs/src/RemainingCharacterCount.js +8 -8
- package/dist/inputs/src/SearchField.css +361 -385
- package/dist/inputs/src/SearchField.d.ts +2 -2
- package/dist/inputs/src/SearchField.js +16 -15
- package/dist/inputs/src/SearchFieldContext.d.ts +2 -2
- package/dist/inputs/src/TextArea.css +122 -1486
- package/dist/inputs/src/TextArea.js +12 -13
- package/dist/inputs/src/TextField.css +359 -383
- package/dist/inputs/src/TextField.js +18 -17
- package/dist/inputs/src/index.css +636 -627
- package/dist/inputs/src/index.d.ts +4 -3
- package/dist/inputs/src/index.js +23 -23
- package/dist/overlays/Popover/src/Popover.css +563 -551
- package/dist/overlays/Popover/src/Popover.js +10 -10
- package/dist/overlays/Popover/src/index.css +563 -551
- package/dist/overlays/Popover/src/index.js +10 -10
- package/dist/radio/src/DecorativeRadio.css +55 -55
- package/dist/radio/src/DecorativeRadio.js +9 -9
- package/dist/radio/src/Radio.css +47 -47
- package/dist/radio/src/Radio.js +8 -8
- package/dist/radio/src/RadioField.css +34 -34
- package/dist/radio/src/RadioField.js +3 -3
- package/dist/radio/src/RadioGroup.css +99 -99
- package/dist/radio/src/RadioGroup.js +9 -9
- package/dist/radio/src/index.css +99 -99
- package/dist/radio/src/index.js +16 -16
- package/dist/switch/src/Switch.css +44 -44
- package/dist/switch/src/Switch.js +8 -8
- package/dist/switch/src/SwitchField.css +34 -34
- package/dist/switch/src/SwitchField.js +4 -4
- package/dist/switch/src/index.css +50 -50
- package/dist/switch/src/index.js +11 -11
- package/dist/tag/src/Tag.css +403 -391
- package/dist/tag/src/Tag.d.ts +46 -5
- package/dist/tag/src/Tag.js +12 -12
- package/dist/tag/src/TagContext.d.ts +3 -1
- package/dist/tag/src/TagGroup.css +38 -38
- package/dist/tag/src/TagGroup.d.ts +3 -1
- package/dist/tag/src/TagGroup.js +9 -9
- package/dist/tag/src/TagGroupContext.d.ts +3 -1
- package/dist/tag/src/index.css +413 -401
- package/dist/tag/src/index.d.ts +3 -1
- package/dist/tag/src/index.js +18 -18
- 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 +3 -3
- package/dist/typography/Label/src/index.css +28 -28
- package/dist/typography/Label/src/index.js +3 -3
- 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 +7 -7
- package/dist/utils/src/index.css +28 -28
- package/dist/utils/src/index.d.ts +0 -1
- package/dist/utils/src/index.js +9 -10
- package/dist/utils/src/types.d.ts +1 -1
- package/dist/utils/src/useRenderProps.js +1 -1
- package/package.json +2 -2
- package/dist/ClearButton-wcnm_ugx.d.ts +0 -80
- package/dist/chunk-MTDFS4CZ.js +0 -12
- package/dist/chunk-X7PEWS4A.js +0 -102
- package/dist/utils/src/useScale.d.ts +0 -11
- package/dist/utils/src/useScale.js +0 -2
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { InternalTileContext } from './chunk-JTNKUYE5.js';
|
|
2
|
+
import { TileGroupContext } from './chunk-3MTGAZ77.js';
|
|
3
|
+
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
4
|
+
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
5
|
+
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
6
|
+
import { forwardRef } from 'react';
|
|
7
|
+
import { useContextProps, composeRenderProps, ToggleButtonGroup, Provider } from 'react-aria-components';
|
|
8
|
+
import { jsx } from 'react/jsx-runtime';
|
|
9
|
+
|
|
10
|
+
// css-module:./TileGroup.module.css#css-module
|
|
11
|
+
var TileGroup_module_default = { "hop-TileGroup": "TileGroup-module__hop-TileGroup___qtBC1" };
|
|
12
|
+
var GlobalTileGroupCssSelector = "hop-TileGroup";
|
|
13
|
+
var TileGroup = (props, ref) => {
|
|
14
|
+
[props, ref] = useContextProps(props, ref, TileGroupContext);
|
|
15
|
+
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
16
|
+
const {
|
|
17
|
+
className,
|
|
18
|
+
children: childrenProp,
|
|
19
|
+
style,
|
|
20
|
+
slot,
|
|
21
|
+
isDisabled,
|
|
22
|
+
selectionMode = "single",
|
|
23
|
+
disallowEmptySelection = true,
|
|
24
|
+
numberOfColumns = 3,
|
|
25
|
+
...otherProps
|
|
26
|
+
} = ownProps;
|
|
27
|
+
const columns = useResponsiveValue(numberOfColumns);
|
|
28
|
+
const classNames = composeClassnameRenderProps(
|
|
29
|
+
GlobalTileGroupCssSelector,
|
|
30
|
+
cssModule(
|
|
31
|
+
TileGroup_module_default,
|
|
32
|
+
"hop-TileGroup"
|
|
33
|
+
),
|
|
34
|
+
stylingProps.className,
|
|
35
|
+
className
|
|
36
|
+
);
|
|
37
|
+
const mergedStyles = composeRenderProps(style, (prev) => {
|
|
38
|
+
return {
|
|
39
|
+
...stylingProps.style,
|
|
40
|
+
...{
|
|
41
|
+
gridTemplateColumns: `repeat(${columns}, 1fr)`
|
|
42
|
+
},
|
|
43
|
+
...prev
|
|
44
|
+
};
|
|
45
|
+
});
|
|
46
|
+
const children = composeRenderProps(childrenProp, (prev) => {
|
|
47
|
+
return prev;
|
|
48
|
+
});
|
|
49
|
+
return /* @__PURE__ */ jsx(
|
|
50
|
+
ToggleButtonGroup,
|
|
51
|
+
{
|
|
52
|
+
ref,
|
|
53
|
+
className: classNames,
|
|
54
|
+
style: mergedStyles,
|
|
55
|
+
slot: slot != null ? slot : void 0,
|
|
56
|
+
isDisabled,
|
|
57
|
+
selectionMode,
|
|
58
|
+
disallowEmptySelection,
|
|
59
|
+
...otherProps,
|
|
60
|
+
children: (renderProps) => /* @__PURE__ */ jsx(
|
|
61
|
+
Provider,
|
|
62
|
+
{
|
|
63
|
+
values: [
|
|
64
|
+
[InternalTileContext, { isDisabled }]
|
|
65
|
+
],
|
|
66
|
+
children: children(renderProps)
|
|
67
|
+
}
|
|
68
|
+
)
|
|
69
|
+
}
|
|
70
|
+
);
|
|
71
|
+
};
|
|
72
|
+
var _TileGroup = forwardRef(TileGroup);
|
|
73
|
+
_TileGroup.displayName = "TileGroup";
|
|
74
|
+
|
|
75
|
+
export { GlobalTileGroupCssSelector, _TileGroup };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { PopoverContext } from './chunk-SC6ZK5ON.js';
|
|
2
2
|
import { FooterContext } from './chunk-I67NHYK4.js';
|
|
3
3
|
import { LinkButtonContext } from './chunk-3UQFC2NQ.js';
|
|
4
|
-
import { LinkContext } from './chunk-4VVNSXIB.js';
|
|
5
4
|
import { isFunction, isNil } from './chunk-TIPN4VYD.js';
|
|
6
5
|
import { ListBoxContext } from './chunk-UIEP5BA5.js';
|
|
7
|
-
import {
|
|
6
|
+
import { _HopperProvider } from './chunk-NMKBUGSO.js';
|
|
8
7
|
import { ButtonGroupContext } from './chunk-VJQ7M2BK.js';
|
|
8
|
+
import { LinkContext } from './chunk-4VVNSXIB.js';
|
|
9
|
+
import { ContentContext } from './chunk-IXB2WK56.js';
|
|
9
10
|
import { ButtonContext } from './chunk-WMTWFKKP.js';
|
|
10
|
-
import { _HopperProvider } from './chunk-NMKBUGSO.js';
|
|
11
11
|
import { HeadingContext } from './chunk-TXZ6BMFR.js';
|
|
12
12
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
13
13
|
import { SlotProvider } from './chunk-M36KANKC.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___s-Tc5", "fade": "Popover-module__fade___KKdAL", "hop-Popover__wrapper": "Popover-module__hop-Popover__wrapper___F22pC", "hop-Popover__dialog": "Popover-module__hop-Popover__dialog___9sc7A", "hop-Popover__dropdown": "Popover-module__hop-Popover__dropdown___fmSkA", "hop-Popover__title": "Popover-module__hop-Popover__title___E1FTb", "hop-Popover__content": "Popover-module__hop-Popover__content___ruY0N", "hop-Popover__list-box": "Popover-module__hop-Popover__list-box___Y9ii3", "hop-Popover__footer": "Popover-module__hop-Popover__footer___-mtVR", "hop-Popover__actions": "Popover-module__hop-Popover__actions___WKs0C", "hop-Popover__action": "Popover-module__hop-Popover__action___LBeX8" };
|
|
23
23
|
var GlobalPopoverCssSelector = "hop-Popover";
|
|
24
24
|
function Popover(props, ref) {
|
|
25
25
|
var _a;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { _Button } from './chunk-KFH2WZVX.js';
|
|
2
|
+
import { CloseButtonContext } from './chunk-RBWFFWIG.js';
|
|
3
|
+
import { useLocalizedString } from './chunk-75DHKNW2.js';
|
|
4
|
+
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
5
|
+
import { DismissIcon } from '@hopper-ui/icons';
|
|
6
|
+
import { useStyledSystem } from '@hopper-ui/styled-system';
|
|
7
|
+
import clsx from 'clsx';
|
|
8
|
+
import { forwardRef } from 'react';
|
|
9
|
+
import { useContextProps } from 'react-aria-components';
|
|
10
|
+
import { jsx } from 'react/jsx-runtime';
|
|
11
|
+
|
|
12
|
+
// css-module:./CloseButton.module.css#css-module
|
|
13
|
+
var CloseButton_module_default = { "hop-CloseButton": "CloseButton-module__hop-CloseButton___bJPhs" };
|
|
14
|
+
var GlobalCloseButtonCssSelector = "hop-CloseButton";
|
|
15
|
+
function CloseButton(props, ref) {
|
|
16
|
+
[props, ref] = useContextProps(props, ref, CloseButtonContext);
|
|
17
|
+
const stringFormatter = useLocalizedString();
|
|
18
|
+
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
19
|
+
const {
|
|
20
|
+
"aria-label": ariaLabel = stringFormatter.format("CloseButton.ariaLabel"),
|
|
21
|
+
className,
|
|
22
|
+
style,
|
|
23
|
+
variant = "ghost-secondary",
|
|
24
|
+
...otherProps
|
|
25
|
+
} = ownProps;
|
|
26
|
+
const classNames = clsx(
|
|
27
|
+
GlobalCloseButtonCssSelector,
|
|
28
|
+
cssModule(
|
|
29
|
+
CloseButton_module_default,
|
|
30
|
+
"hop-CloseButton"
|
|
31
|
+
),
|
|
32
|
+
stylingProps.className,
|
|
33
|
+
className
|
|
34
|
+
);
|
|
35
|
+
const mergedStyles = {
|
|
36
|
+
...style,
|
|
37
|
+
...stylingProps.style
|
|
38
|
+
};
|
|
39
|
+
return /* @__PURE__ */ jsx(
|
|
40
|
+
_Button,
|
|
41
|
+
{
|
|
42
|
+
className: classNames,
|
|
43
|
+
style: mergedStyles,
|
|
44
|
+
ref,
|
|
45
|
+
"aria-label": ariaLabel,
|
|
46
|
+
variant,
|
|
47
|
+
slot: "close",
|
|
48
|
+
...otherProps,
|
|
49
|
+
children: /* @__PURE__ */ jsx(DismissIcon, {})
|
|
50
|
+
}
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
var _CloseButton = forwardRef(CloseButton);
|
|
54
|
+
_CloseButton.displayName = "CloseButton";
|
|
55
|
+
|
|
56
|
+
export { GlobalCloseButtonCssSelector, _CloseButton };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LinkContext } from './chunk-4VVNSXIB.js';
|
|
2
2
|
import { IconListContext } from './chunk-DHVVYSLB.js';
|
|
3
|
-
import { ensureTextWrapper } from './chunk-
|
|
3
|
+
import { ensureTextWrapper } from './chunk-SRMMLWHK.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___li45Z", "hop-Link--standalone": "Link-module__hop-Link--standalone___kvGih", "hop-Link__text": "Link-module__hop-Link__text___nnbb-", "hop-Link--xs": "Link-module__hop-Link--xs___c-e4r", "hop-Link--sm": "Link-module__hop-Link--sm___1-6nB", "hop-Link--md": "Link-module__hop-Link--md___e0wE3", "hop-Link--lg": "Link-module__hop-Link--lg___IN-nr", "hop-Link--xl": "Link-module__hop-Link--xl___I7paI", "hop-Link--2xl": "Link-module__hop-Link--2xl___THFux", "hop-Link--quiet": "Link-module__hop-Link--quiet___XIA5v", "hop-Link--primary": "Link-module__hop-Link--primary___g0nJ6", "hop-Link--secondary": "Link-module__hop-Link--secondary___Ac9gm", "hop-Link__icon": "Link-module__hop-Link__icon___ZPYB4", "hop-Link__icon-list": "Link-module__hop-Link__icon-list___8aWXu", "hop-Link__start-icon": "Link-module__hop-Link__start-icon___qwBP7", "hop-Link__start-icon-list": "Link-module__hop-Link__start-icon-list___YELk-" };
|
|
16
16
|
var GlobalLinkCssSelector = "hop-Link";
|
|
17
17
|
var LinkToIconSizeAdapter = {
|
|
18
18
|
inherit: void 0,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DisclosureHeaderContext } from './chunk-GFRTCF4B.js';
|
|
2
|
-
import { DisclosureContext } from './chunk-MUAXK42C.js';
|
|
3
1
|
import { DisclosurePanelContext } from './chunk-7CJXILRD.js';
|
|
2
|
+
import { DisclosureContext } from './chunk-MUAXK42C.js';
|
|
3
|
+
import { DisclosureHeaderContext } from './chunk-GFRTCF4B.js';
|
|
4
4
|
import { AccordionContext } from './chunk-7IM3UQB4.js';
|
|
5
5
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
6
6
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
@@ -11,7 +11,7 @@ import { useContextProps, composeRenderProps, DisclosureGroup } from 'react-aria
|
|
|
11
11
|
import { jsx } from 'react/jsx-runtime';
|
|
12
12
|
|
|
13
13
|
// css-module:./Accordion.module.css#css-module
|
|
14
|
-
var Accordion_module_default = { "hop-Accordion": "Accordion-module__hop-
|
|
14
|
+
var Accordion_module_default = { "hop-Accordion": "Accordion-module__hop-Accordion___wBFPg", "hop-Accordion--inline": "Accordion-module__hop-Accordion--inline___NSSQi", "hop-Accordion__disclosure": "Accordion-module__hop-Accordion__disclosure___e-V8U", "hop-Accordion__disclosure-header": "Accordion-module__hop-Accordion__disclosure-header___fdDsT", "hop-Accordion__disclosure-panel": "Accordion-module__hop-Accordion__disclosure-panel___uZA-v" };
|
|
15
15
|
var GlobalAccordionCssSelector = "hop-Accordion";
|
|
16
16
|
function Accordion(props, ref) {
|
|
17
17
|
[props, ref] = useContextProps(props, ref, AccordionContext);
|
|
@@ -8,7 +8,7 @@ import { useContextProps } from 'react-aria-components';
|
|
|
8
8
|
import { jsx } from 'react/jsx-runtime';
|
|
9
9
|
|
|
10
10
|
// css-module:./IconList.module.css#css-module
|
|
11
|
-
var IconList_module_default = { "hop-IconList": "IconList-module__hop-
|
|
11
|
+
var IconList_module_default = { "hop-IconList": "IconList-module__hop-IconList___KxG-w" };
|
|
12
12
|
var GlobalIconListCssSelector = "hop-IconList";
|
|
13
13
|
function IconList(props, ref) {
|
|
14
14
|
[props, ref] = useContextProps(props, ref, IconListContext);
|
|
@@ -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___o-v-P", "hop-Heading--xs": "Heading-module__hop-Heading--xs___KXQEX", "hop-Heading--sm": "Heading-module__hop-Heading--sm___-WdRn", "hop-Heading--md": "Heading-module__hop-Heading--md___ukpIT", "hop-Heading--lg": "Heading-module__hop-Heading--lg___i2P5H", "hop-Heading--xl": "Heading-module__hop-Heading--xl___Tsi-u", "hop-Heading--2xl": "Heading-module__hop-Heading--2xl___yfzVl", "hop-Heading--3xl": "Heading-module__hop-Heading--3xl___4mhyI" };
|
|
11
11
|
var GlobalHeadingCssSelector = "hop-Heading";
|
|
12
12
|
function Heading(props, ref) {
|
|
13
13
|
[props, ref] = useContextProps(props, ref, HeadingContext);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { IllustratedMessageContext } from './chunk-XL7LO6IZ.js';
|
|
2
2
|
import { ImageContext } from './chunk-XNHE2OVW.js';
|
|
3
3
|
import { SvgImageContext } from './chunk-M2XJDWZ7.js';
|
|
4
|
-
import { ContentContext } from './chunk-IXB2WK56.js';
|
|
5
4
|
import { ButtonGroupContext } from './chunk-VJQ7M2BK.js';
|
|
5
|
+
import { ContentContext } from './chunk-IXB2WK56.js';
|
|
6
6
|
import { ButtonContext } from './chunk-WMTWFKKP.js';
|
|
7
7
|
import { HeadingContext } from './chunk-TXZ6BMFR.js';
|
|
8
8
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
@@ -14,7 +14,7 @@ import { useContextProps } from 'react-aria-components';
|
|
|
14
14
|
import { jsx } from 'react/jsx-runtime';
|
|
15
15
|
|
|
16
16
|
// css-module:./IllustratedMessage.module.css#css-module
|
|
17
|
-
var IllustratedMessage_module_default = { "hop-IllustratedMessage": "IllustratedMessage-module__hop-
|
|
17
|
+
var IllustratedMessage_module_default = { "hop-IllustratedMessage": "IllustratedMessage-module__hop-IllustratedMessage___SIwW0", "hop-IllustratedMessage--sm": "IllustratedMessage-module__hop-IllustratedMessage--sm___ZRGIG", "hop-IllustratedMessage--md": "IllustratedMessage-module__hop-IllustratedMessage--md___XGong", "hop-IllustratedMessage--lg": "IllustratedMessage-module__hop-IllustratedMessage--lg___wXiUU", "hop-IllustratedMessage__image": "IllustratedMessage-module__hop-IllustratedMessage__image___md6Hk", "hop-IllustratedMessage__heading": "IllustratedMessage-module__hop-IllustratedMessage__heading___iAnKw", "hop-IllustratedMessage-md": "IllustratedMessage-module__hop-IllustratedMessage-md___DW5tt", "hop-IllustratedMessage__content": "IllustratedMessage-module__hop-IllustratedMessage__content___5R8TP", "hop-IllustratedMessage__buttonGroup": "IllustratedMessage-module__hop-IllustratedMessage__buttonGroup___hAJ5a", "hop-IllustratedMessage__button": "IllustratedMessage-module__hop-IllustratedMessage__button___jt125" };
|
|
18
18
|
var GlobalIllustratedMessageCssSelector = "hop-IllustratedMessage";
|
|
19
19
|
function IllustratedMessage(props, ref) {
|
|
20
20
|
[props, ref] = useContextProps(props, ref, IllustratedMessageContext);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { _DecorativeRadio } from './chunk-
|
|
2
|
-
import { _DecorativeCheckbox } from './chunk-
|
|
1
|
+
import { _DecorativeRadio } from './chunk-CKH5EUEC.js';
|
|
2
|
+
import { _DecorativeCheckbox } from './chunk-CZRMFNRT.js';
|
|
3
3
|
import { ListBoxItemContext } from './chunk-Y2POLIXK.js';
|
|
4
|
-
import { _ListBoxItemSkeleton } from './chunk-
|
|
4
|
+
import { _ListBoxItemSkeleton } from './chunk-7JQJ5U7J.js';
|
|
5
5
|
import { IconListContext } from './chunk-DHVVYSLB.js';
|
|
6
|
-
import { ensureTextWrapper } from './chunk-
|
|
6
|
+
import { ensureTextWrapper } from './chunk-SRMMLWHK.js';
|
|
7
7
|
import { BadgeContext } from './chunk-CQDLZ42T.js';
|
|
8
8
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
9
9
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.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___m1ALo", "hop-ListBoxItem--xs": "ListBoxItem-module__hop-ListBoxItem--xs___6DdyN", "hop-ListBoxItem--sm": "ListBoxItem-module__hop-ListBoxItem--sm___-gE5a", "hop-ListBoxItem--md": "ListBoxItem-module__hop-ListBoxItem--md___9mDGy", "hop-ListBoxItem--lg": "ListBoxItem-module__hop-ListBoxItem--lg___DGH28", "hop-ListBoxItem__inner": "ListBoxItem-module__hop-ListBoxItem__inner___u2NI2", "hop-ListBoxItem__checkmark": "ListBoxItem-module__hop-ListBoxItem__checkmark___IMC6d", "hop-ListBoxItem__description": "ListBoxItem-module__hop-ListBoxItem__description___3j4Z3", "hop-ListBoxItem__radio": "ListBoxItem-module__hop-ListBoxItem__radio___nwk7L", "hop-ListBoxItem__checkbox": "ListBoxItem-module__hop-ListBoxItem__checkbox___JXwL8", "hop-ListBoxItem__avatar": "ListBoxItem-module__hop-ListBoxItem__avatar___h2JAc", "hop-ListBoxItem__icon-list": "ListBoxItem-module__hop-ListBoxItem__icon-list___YJcaA", "hop-ListBoxItem__icon": "ListBoxItem-module__hop-ListBoxItem__icon___01LED", "hop-ListBoxItem__label": "ListBoxItem-module__hop-ListBoxItem__label___YZgBK", "hop-ListBoxItem__end-icon-list": "ListBoxItem-module__hop-ListBoxItem__end-icon-list___l72VG", "hop-ListBoxItem__end-icon": "ListBoxItem-module__hop-ListBoxItem__end-icon___sRF8h", "hop-ListBoxItem__badge": "ListBoxItem-module__hop-ListBoxItem__badge___NU5K8" };
|
|
22
22
|
var GlobalListBoxItemCssSelector = "hop-ListBoxItem";
|
|
23
23
|
var ListBoxItemToIconSizeAdapter = {
|
|
24
24
|
xs: "sm",
|
|
@@ -66,9 +66,9 @@ function ListBoxItemInner(props) {
|
|
|
66
66
|
setIsListHasSelectionEnd((prev) => isListHasSelection && !prev);
|
|
67
67
|
}
|
|
68
68
|
};
|
|
69
|
-
const { className: radioClassName, ...otherRadioProps } = radioProps
|
|
69
|
+
const { className: radioClassName, ...otherRadioProps } = radioProps != null ? radioProps : {};
|
|
70
70
|
const radioClassNames = clsx(ListBoxItem_module_default["hop-ListBoxItem__radio"], radioClassName);
|
|
71
|
-
const { className: checkboxClassName, ...otherCheckboxProps } = checkboxProps
|
|
71
|
+
const { className: checkboxClassName, ...otherCheckboxProps } = checkboxProps != null ? checkboxProps : {};
|
|
72
72
|
const checkboxClassNames = clsx(ListBoxItem_module_default["hop-ListBoxItem__checkbox"], checkboxClassName);
|
|
73
73
|
return /* @__PURE__ */ jsxs(
|
|
74
74
|
"div",
|
|
@@ -1,8 +1,8 @@
|
|
|
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-Z7ORLEY6.js';
|
|
4
4
|
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
5
|
-
import { useRenderProps } from './chunk-
|
|
5
|
+
import { useRenderProps } from './chunk-2NSUMKNH.js';
|
|
6
6
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
7
7
|
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
8
8
|
import { cssModule } from './chunk-KVDXQMWI.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___rXzDT", "hop-RadioField--sm": "RadioField-module__hop-RadioField--sm___SNFax", "hop-RadioField--md": "RadioField-module__hop-RadioField--md___7GeiA", "hop-RadioField__description": "RadioField-module__hop-RadioField__description___Vpr2W", "hop-RadioField__radio": "RadioField-module__hop-RadioField__radio___DRbLg" };
|
|
18
18
|
var GlobalRadioFieldCssSelector = "hop-RadioField";
|
|
19
19
|
var RadioToDescriptionSizeAdapter = {
|
|
20
20
|
sm: "xs",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _RichIconAvatarImage } from './chunk-
|
|
2
|
-
import { useRenderProps } from './chunk-
|
|
1
|
+
import { _RichIconAvatarImage } from './chunk-IMUQCB4Q.js';
|
|
2
|
+
import { useRenderProps } from './chunk-2NSUMKNH.js';
|
|
3
3
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
4
4
|
import { AvatarContext } from './chunk-AES7QBQE.js';
|
|
5
5
|
import { AnonymousRichIcon } from '@hopper-ui/icons';
|
|
@@ -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___9K7NO" };
|
|
11
11
|
var GlobalSvgImageCssSelector = "hop-SvgImage";
|
|
12
12
|
function SvgImage(props, ref) {
|
|
13
13
|
[props, ref] = useContextProps(props, ref, SvgImageContext);
|
|
@@ -1,16 +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-U2E2PK7O.js';
|
|
3
|
+
import { _Popover } from './chunk-N455JVEG.js';
|
|
4
4
|
import { _Footer } from './chunk-VOZN65OL.js';
|
|
5
5
|
import { _ListBoxSection } from './chunk-DZJSSJVJ.js';
|
|
6
|
-
import { _ListBox } from './chunk-
|
|
7
|
-
import { _ListBoxItem } from './chunk-
|
|
8
|
-
import { _HelperMessage } from './chunk-
|
|
9
|
-
import { _ErrorMessage } from './chunk-
|
|
10
|
-
import { _ToggleArrow } from './chunk-
|
|
11
|
-
import { ensureTextWrapper } from './chunk-
|
|
12
|
-
import { _Label } from './chunk-
|
|
13
|
-
import { useFormProps } from './chunk-
|
|
6
|
+
import { _ListBox } from './chunk-WNFSIU36.js';
|
|
7
|
+
import { _ListBoxItem } from './chunk-Q5XBTXXT.js';
|
|
8
|
+
import { _HelperMessage } from './chunk-6CVROWNN.js';
|
|
9
|
+
import { _ErrorMessage } from './chunk-UXCNMI34.js';
|
|
10
|
+
import { _ToggleArrow } from './chunk-W2TEMTXK.js';
|
|
11
|
+
import { ensureTextWrapper } from './chunk-SRMMLWHK.js';
|
|
12
|
+
import { _Label } from './chunk-I2LTZFXN.js';
|
|
13
|
+
import { useFormProps } from './chunk-VOXZA4YS.js';
|
|
14
14
|
import { BadgeContext } from './chunk-CQDLZ42T.js';
|
|
15
15
|
import { TextContext } from './chunk-X6SER3TZ.js';
|
|
16
16
|
import { ClearContainerSlots, ClearProviders } from './chunk-HXI3MEEK.js';
|
|
@@ -24,7 +24,7 @@ import { useContextProps, composeRenderProps, TextContext as TextContext$1, Butt
|
|
|
24
24
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
25
25
|
|
|
26
26
|
// css-module:./Select.module.css#css-module
|
|
27
|
-
var Select_module_default = { "hop-Select": "Select-module__hop-
|
|
27
|
+
var Select_module_default = { "hop-Select": "Select-module__hop-Select___xzHsW", "hop-Select--fluid": "Select-module__hop-Select--fluid___s5ghH", "hop-Select__label": "Select-module__hop-Select__label___PhbIV", "hop-Select__button": "Select-module__hop-Select__button___qNH-2", "hop-Select__button--sm": "Select-module__hop-Select__button--sm___81kk1", "hop-Select__button--md": "Select-module__hop-Select__button--md___zHXmU", "hop-Select__prefix": "Select-module__hop-Select__prefix___3N3tB", "hop-Select__button-icon": "Select-module__hop-Select__button-icon___E4NAh", "hop-Select__helper-message": "Select-module__hop-Select__helper-message___Gq5Bm", "hop-Select__error-message": "Select-module__hop-Select__error-message___-LynD" };
|
|
28
28
|
var GlobalSelectCssSelector = "hop-Select";
|
|
29
29
|
function Select(props, ref) {
|
|
30
30
|
var _a, _b, _c, _d;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { useFontFaceReady } from './chunk-IU6XMS2X.js';
|
|
2
2
|
import { TextAreaContext } from './chunk-MHQZXLKW.js';
|
|
3
3
|
import { useTruncatedText } from './chunk-Z57VHYOF.js';
|
|
4
|
-
import { _RemainingCharacterCount } from './chunk-
|
|
5
|
-
import { _InputGroup } from './chunk-
|
|
6
|
-
import { _HelperMessage } from './chunk-
|
|
7
|
-
import { _ErrorMessage } from './chunk-
|
|
8
|
-
import { _Label } from './chunk-
|
|
9
|
-
import { useFormProps } from './chunk-
|
|
4
|
+
import { _RemainingCharacterCount } from './chunk-KW6WJUD5.js';
|
|
5
|
+
import { _InputGroup } from './chunk-F6D7LSXZ.js';
|
|
6
|
+
import { _HelperMessage } from './chunk-6CVROWNN.js';
|
|
7
|
+
import { _ErrorMessage } from './chunk-UXCNMI34.js';
|
|
8
|
+
import { _Label } from './chunk-I2LTZFXN.js';
|
|
9
|
+
import { useFormProps } from './chunk-VOXZA4YS.js';
|
|
10
10
|
import { ClearContainerSlots } from './chunk-HXI3MEEK.js';
|
|
11
11
|
import { composeClassnameRenderProps } from './chunk-65JPI4FL.js';
|
|
12
12
|
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
@@ -79,7 +79,7 @@ function $b5e257d569688ac6$export$535bd6ca7f90a273() {
|
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
// css-module:./TextArea.module.css#css-module
|
|
82
|
-
var TextArea_module_default = { "hop-TextArea": "TextArea-module__hop-
|
|
82
|
+
var TextArea_module_default = { "hop-TextArea": "TextArea-module__hop-TextArea___Msdue", "hop-TextArea--fluid": "TextArea-module__hop-TextArea--fluid___-ep5B", "hop-TextArea__Label": "TextArea-module__hop-TextArea__Label___3kZZE", "hop-TextArea__prefix": "TextArea-module__hop-TextArea__prefix___SQQ-m", "hop-TextArea__RemainingCharacterCount": "TextArea-module__hop-TextArea__RemainingCharacterCount___FVXxr", "hop-TextArea__InputGroup": "TextArea-module__hop-TextArea__InputGroup___LllwU", "hop-TextArea__ErrorMessage": "TextArea-module__hop-TextArea__ErrorMessage___5faIS", "hop-TextArea__HelperMessage": "TextArea-module__hop-TextArea__HelperMessage___X2Ax6", "hop-TextArea__textarea": "TextArea-module__hop-TextArea__textarea___8QL26", "hop-TextArea__textarea--with-character-count": "TextArea-module__hop-TextArea__textarea--with-character-count___SL9w3", "hop-TextArea__textarea--sm": "TextArea-module__hop-TextArea__textarea--sm___Bakth" };
|
|
83
83
|
var GlobalTextAreaCssSelector = "hop-TextArea";
|
|
84
84
|
var DefaultMinimumTextAreaRows = 3;
|
|
85
85
|
var pxToInt = (value) => {
|
|
@@ -112,7 +112,7 @@ function useCalculateRowHeight(input) {
|
|
|
112
112
|
}, [input, fontsLoaded, isSSR]);
|
|
113
113
|
}
|
|
114
114
|
function TextArea(props, ref) {
|
|
115
|
-
var _a, _b;
|
|
115
|
+
var _a, _b, _c;
|
|
116
116
|
const {
|
|
117
117
|
inputRef: userProvidedInputRef = null,
|
|
118
118
|
...propsWithoutRef
|
|
@@ -121,13 +121,13 @@ function TextArea(props, ref) {
|
|
|
121
121
|
props = useFormProps(props);
|
|
122
122
|
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
123
123
|
const [characterCount, setCharacterCount] = useState(() => {
|
|
124
|
-
var _a2, _b2,
|
|
125
|
-
return (_d = (
|
|
124
|
+
var _a2, _b2, _c2, _d;
|
|
125
|
+
return (_d = (_c2 = (_a2 = props.value) == null ? void 0 : _a2.length) != null ? _c2 : (_b2 = props.defaultValue) == null ? void 0 : _b2.length) != null ? _d : 0;
|
|
126
126
|
});
|
|
127
127
|
const {
|
|
128
128
|
className,
|
|
129
129
|
style: styleProp,
|
|
130
|
-
size,
|
|
130
|
+
size: sizeProp,
|
|
131
131
|
showCharacterCount,
|
|
132
132
|
maxLength,
|
|
133
133
|
placeholder,
|
|
@@ -155,6 +155,7 @@ function TextArea(props, ref) {
|
|
|
155
155
|
const isFluid = (_a = useResponsiveValue(isFluidProp)) != null ? _a : false;
|
|
156
156
|
const resizeMode = (_b = useResponsiveValue(resizeModeProp)) != null ? _b : "none";
|
|
157
157
|
const overMaxLength = !!maxLength && characterCount > maxLength;
|
|
158
|
+
const size = (_c = useResponsiveValue(sizeProp)) != null ? _c : "md";
|
|
158
159
|
const classNames = composeClassnameRenderProps(
|
|
159
160
|
className,
|
|
160
161
|
GlobalTextAreaCssSelector,
|
|
@@ -215,24 +216,35 @@ function TextArea(props, ref) {
|
|
|
215
216
|
}
|
|
216
217
|
adjustRows();
|
|
217
218
|
}, [value, adjustRows]);
|
|
218
|
-
const { className: inputGroupClassName,
|
|
219
|
+
const { className: inputGroupClassName, ...otherInputGroupProps } = inputGroupProps != null ? inputGroupProps : {};
|
|
219
220
|
const inputGroupClassNames = clsx(TextArea_module_default["hop-TextArea__InputGroup"], inputGroupClassName);
|
|
220
|
-
const
|
|
221
|
+
const textAreaClassNames = cssModule(
|
|
222
|
+
TextArea_module_default,
|
|
223
|
+
"hop-TextArea__textarea",
|
|
224
|
+
size,
|
|
225
|
+
showCharacterCount && maxLength && "with-character-count"
|
|
226
|
+
);
|
|
221
227
|
const { className: remainingCharacterCountClassName, ...otherRemainingCharacterCountProps } = remainingCharacterCountProps != null ? remainingCharacterCountProps : {};
|
|
222
228
|
const remainingCharacterCountClassNames = clsx(TextArea_module_default["hop-TextArea__RemainingCharacterCount"], remainingCharacterCountClassName);
|
|
223
229
|
const inputMarkup = /* @__PURE__ */ jsx(ClearContainerSlots, { children: /* @__PURE__ */ jsxs(
|
|
224
230
|
_InputGroup,
|
|
225
231
|
{
|
|
226
232
|
isFluid: true,
|
|
227
|
-
size,
|
|
228
233
|
className: inputGroupClassNames,
|
|
229
234
|
isDisabled,
|
|
230
235
|
isInvalid,
|
|
231
|
-
inputClassName: inputGroupInputClassNames,
|
|
232
|
-
inputType: "textarea",
|
|
233
236
|
...otherInputGroupProps,
|
|
234
237
|
children: [
|
|
235
|
-
/* @__PURE__ */ jsx(
|
|
238
|
+
/* @__PURE__ */ jsx(
|
|
239
|
+
TextArea$1,
|
|
240
|
+
{
|
|
241
|
+
ref: mergedTextAreaRef,
|
|
242
|
+
placeholder,
|
|
243
|
+
cols,
|
|
244
|
+
rows,
|
|
245
|
+
className: textAreaClassNames
|
|
246
|
+
}
|
|
247
|
+
),
|
|
236
248
|
showCharacterCount && maxLength && /* @__PURE__ */ jsx(
|
|
237
249
|
_RemainingCharacterCount,
|
|
238
250
|
{
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { CalloutContext } from './chunk-NZ4VFVXA.js';
|
|
2
|
+
import { _CloseButton } from './chunk-NHKYEZTW.js';
|
|
3
|
+
import { useSlot } from './chunk-H5YTU3U7.js';
|
|
4
|
+
import { ContentContext } from './chunk-IXB2WK56.js';
|
|
5
|
+
import { ButtonContext } from './chunk-WMTWFKKP.js';
|
|
6
|
+
import { HeadingContext } from './chunk-TXZ6BMFR.js';
|
|
7
|
+
import { SlotProvider } from './chunk-M36KANKC.js';
|
|
8
|
+
import { cssModule } from './chunk-KVDXQMWI.js';
|
|
9
|
+
import { InfoRichIcon, UpsellRichIcon, SuccessRichIcon, CautionRichIcon, RichIconContext } from '@hopper-ui/icons';
|
|
10
|
+
import { useStyledSystem, useResponsiveValue } from '@hopper-ui/styled-system';
|
|
11
|
+
import clsx from 'clsx';
|
|
12
|
+
import { forwardRef, useMemo } from 'react';
|
|
13
|
+
import { useContextProps } from 'react-aria-components';
|
|
14
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
15
|
+
|
|
16
|
+
// css-module:./Callout.module.css#css-module
|
|
17
|
+
var Callout_module_default = { "hop-Callout": "Callout-module__hop-Callout___7S9Ut", "hop-Callout__icon": "Callout-module__hop-Callout__icon___t7w5G", "hop-Callout__heading": "Callout-module__hop-Callout__heading___zSHa5", "hop-Callout__content": "Callout-module__hop-Callout__content___HaNGE", "hop-Callout__button": "Callout-module__hop-Callout__button___DX6lV", "hop-Callout__dismiss": "Callout-module__hop-Callout__dismiss___CDTSX", "hop-Callout--information": "Callout-module__hop-Callout--information___uSE-c", "hop-Callout--success": "Callout-module__hop-Callout--success___AgZgE", "hop-Callout--warning": "Callout-module__hop-Callout--warning___qW3cJ", "hop-Callout--upsell": "Callout-module__hop-Callout--upsell___abHWk", "hop-Callout--subtle-fill": "Callout-module__hop-Callout--subtle-fill___bMBdq" };
|
|
18
|
+
var GlobalCalloutCssSelector = "hop-Callout";
|
|
19
|
+
var Callout = (props, ref) => {
|
|
20
|
+
[props, ref] = useContextProps(props, ref, CalloutContext);
|
|
21
|
+
const { stylingProps, ...ownProps } = useStyledSystem(props);
|
|
22
|
+
const {
|
|
23
|
+
className,
|
|
24
|
+
children,
|
|
25
|
+
style,
|
|
26
|
+
slot,
|
|
27
|
+
hideIcon: hideIconProp,
|
|
28
|
+
onClose,
|
|
29
|
+
fillStyle = "border",
|
|
30
|
+
variant = "information",
|
|
31
|
+
...otherProps
|
|
32
|
+
} = ownProps;
|
|
33
|
+
const hideIcon = useResponsiveValue(hideIconProp);
|
|
34
|
+
const [iconRef, hasIcon] = useSlot();
|
|
35
|
+
const classNames = clsx(
|
|
36
|
+
GlobalCalloutCssSelector,
|
|
37
|
+
cssModule(
|
|
38
|
+
Callout_module_default,
|
|
39
|
+
"hop-Callout",
|
|
40
|
+
variant,
|
|
41
|
+
fillStyle === "subtleFill" && "subtle-fill"
|
|
42
|
+
),
|
|
43
|
+
stylingProps.className,
|
|
44
|
+
className
|
|
45
|
+
);
|
|
46
|
+
const mergedStyles = {
|
|
47
|
+
...style,
|
|
48
|
+
...stylingProps.style
|
|
49
|
+
};
|
|
50
|
+
const icon = useMemo(() => {
|
|
51
|
+
if (hideIcon) {
|
|
52
|
+
return null;
|
|
53
|
+
}
|
|
54
|
+
switch (variant) {
|
|
55
|
+
case "warning":
|
|
56
|
+
return /* @__PURE__ */ jsx(CautionRichIcon, {});
|
|
57
|
+
case "success":
|
|
58
|
+
return /* @__PURE__ */ jsx(SuccessRichIcon, {});
|
|
59
|
+
case "upsell":
|
|
60
|
+
return /* @__PURE__ */ jsx(UpsellRichIcon, {});
|
|
61
|
+
default:
|
|
62
|
+
return /* @__PURE__ */ jsx(InfoRichIcon, {});
|
|
63
|
+
}
|
|
64
|
+
}, [hideIcon, variant]);
|
|
65
|
+
return /* @__PURE__ */ jsx(
|
|
66
|
+
"div",
|
|
67
|
+
{
|
|
68
|
+
ref,
|
|
69
|
+
className: classNames,
|
|
70
|
+
style: mergedStyles,
|
|
71
|
+
slot: slot != null ? slot : void 0,
|
|
72
|
+
...otherProps,
|
|
73
|
+
children: /* @__PURE__ */ jsxs(
|
|
74
|
+
SlotProvider,
|
|
75
|
+
{
|
|
76
|
+
values: [
|
|
77
|
+
[HeadingContext, {
|
|
78
|
+
className: Callout_module_default["hop-Callout__heading"]
|
|
79
|
+
}],
|
|
80
|
+
[ContentContext, {
|
|
81
|
+
className: Callout_module_default["hop-Callout__content"]
|
|
82
|
+
}],
|
|
83
|
+
[ButtonContext, {
|
|
84
|
+
className: Callout_module_default["hop-Callout__button"]
|
|
85
|
+
}],
|
|
86
|
+
[RichIconContext, {
|
|
87
|
+
className: Callout_module_default["hop-Callout__icon"],
|
|
88
|
+
variant,
|
|
89
|
+
size: "xl"
|
|
90
|
+
}]
|
|
91
|
+
],
|
|
92
|
+
children: [
|
|
93
|
+
!hasIcon && icon,
|
|
94
|
+
/* @__PURE__ */ jsx(
|
|
95
|
+
SlotProvider,
|
|
96
|
+
{
|
|
97
|
+
values: [
|
|
98
|
+
[RichIconContext, {
|
|
99
|
+
className: Callout_module_default["hop-Callout__icon"],
|
|
100
|
+
variant,
|
|
101
|
+
size: "xl",
|
|
102
|
+
ref: iconRef
|
|
103
|
+
}]
|
|
104
|
+
],
|
|
105
|
+
children
|
|
106
|
+
}
|
|
107
|
+
),
|
|
108
|
+
onClose && /* @__PURE__ */ jsx(_CloseButton, { size: "sm", className: Callout_module_default["hop-Callout__dismiss"], onPress: onClose })
|
|
109
|
+
]
|
|
110
|
+
}
|
|
111
|
+
)
|
|
112
|
+
}
|
|
113
|
+
);
|
|
114
|
+
};
|
|
115
|
+
var _Callout = forwardRef(Callout);
|
|
116
|
+
_Callout.displayName = "Callout";
|
|
117
|
+
|
|
118
|
+
export { GlobalCalloutCssSelector, _Callout };
|