@easypost/easy-ui 1.0.0-alpha.50 → 1.0.0-alpha.51
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/Badge/index.js +14 -14
- package/Badge/index.mjs +14 -14
- package/Banner/index.js +5 -5
- package/Banner/index.mjs +5 -5
- package/Button/Button.d.ts +3 -1
- package/Button/Button.d.ts.map +1 -1
- package/Button/Button.stories.d.ts +10 -9
- package/Button/Button.stories.d.ts.map +1 -1
- package/Button/index.js +1 -1
- package/Button/index.mjs +1 -1
- package/Button/utilities.d.ts +3 -0
- package/Button/utilities.d.ts.map +1 -1
- package/CHANGELOG.md +7 -0
- package/Calendar/index.js +16 -16
- package/Calendar/index.mjs +25 -25
- package/Card/index.js +1 -1
- package/Card/index.mjs +1 -1
- package/Checkbox/index.js +1 -1
- package/Checkbox/index.mjs +1 -1
- package/CodeBlock/index.js +14 -14
- package/CodeBlock/index.mjs +16 -16
- package/CodeSnippet/index.js +1 -1
- package/CodeSnippet/index.mjs +1 -1
- package/DataGrid/index.js +59 -59
- package/DataGrid/index.mjs +73 -73
- package/Drawer/index.js +18 -18
- package/Drawer/index.mjs +21 -21
- package/DropdownButton/DropdownButton.stories.d.ts +5 -5
- package/DropdownButton/DropdownButton.stories.d.ts.map +1 -1
- package/DropdownButton/index.js +13 -13
- package/DropdownButton/index.mjs +13 -13
- package/EmptyStateCard/index.js +8 -8
- package/EmptyStateCard/index.mjs +8 -8
- package/FocusedProductLayout/index.js +23 -23
- package/FocusedProductLayout/index.mjs +23 -23
- package/FormLayout/index.js +5 -5
- package/FormLayout/index.mjs +5 -5
- package/HorizontalGrid/index.js +1 -1
- package/HorizontalGrid/index.mjs +1 -1
- package/HorizontalStack/index.js +1 -1
- package/HorizontalStack/index.mjs +1 -1
- package/Icon/index.js +1 -1
- package/Icon/index.mjs +1 -1
- package/IconButton/IconButton.stories.d.ts +5 -5
- package/IconButton/IconButton.stories.d.ts.map +1 -1
- package/IconButton/index.js +13 -13
- package/IconButton/index.mjs +13 -13
- package/InputField/index.js +1 -1
- package/InputField/index.mjs +1 -1
- package/InputField/useInputField.d.ts +1 -1
- package/Menu/Menu.stories.d.ts +3 -0
- package/Menu/Menu.stories.d.ts.map +1 -1
- package/Menu/MenuItem.d.ts.map +1 -1
- package/Menu/MenuOverlay.d.ts +17 -1
- package/Menu/MenuOverlay.d.ts.map +1 -1
- package/Menu/MenuSection.d.ts.map +1 -1
- package/Menu/index.js +1 -1
- package/Menu/index.mjs +1 -1
- package/Menu/utilities.d.ts +14 -0
- package/Menu/utilities.d.ts.map +1 -1
- package/Modal/index.js +19 -19
- package/Modal/index.mjs +22 -22
- package/NexusLayout/index.js +29 -29
- package/NexusLayout/index.mjs +32 -32
- package/Notification/index.js +1 -1
- package/Notification/index.mjs +1 -1
- package/Pagination/index.js +8 -8
- package/Pagination/index.mjs +8 -8
- package/PillGroup/index.js +6 -6
- package/PillGroup/index.mjs +21 -21
- package/ProductLayout/index.js +22 -22
- package/ProductLayout/index.mjs +25 -25
- package/Provider/index.js +1 -1
- package/Provider/index.mjs +2 -2
- package/RadioGroup/index.js +16 -16
- package/RadioGroup/index.mjs +25 -25
- package/SearchNav/index.js +30 -30
- package/SearchNav/index.mjs +30 -30
- package/SectionCard/index.js +7 -7
- package/SectionCard/index.mjs +7 -7
- package/Select/index.js +5 -5
- package/Select/index.mjs +5 -5
- package/SelectorErrorTooltip/index.js +1 -1
- package/SelectorErrorTooltip/index.mjs +1 -1
- package/Spinner/index.js +1 -1
- package/Spinner/index.mjs +1 -1
- package/SplitToggleCard/index.js +4 -4
- package/SplitToggleCard/index.mjs +4 -4
- package/Stepper/index.js +1 -1
- package/Stepper/index.mjs +1 -1
- package/TabNav/index.js +1 -1
- package/TabNav/index.mjs +1 -1
- package/TabPanels/index.js +1 -1
- package/TabPanels/index.mjs +7 -7
- package/Tabs/index.js +1 -1
- package/Tabs/index.mjs +1 -1
- package/Text/index.js +1 -1
- package/Text/index.mjs +1 -1
- package/TextField/index.js +1 -1
- package/TextField/index.mjs +1 -1
- package/Textarea/index.js +1 -1
- package/Textarea/index.mjs +1 -1
- package/Toggle/index.js +1 -1
- package/Toggle/index.mjs +1 -1
- package/ToggleCard/index.js +2 -2
- package/ToggleCard/index.mjs +2 -2
- package/Tooltip/index.js +1 -1
- package/Tooltip/index.mjs +1 -1
- package/UnstyledButton/index.js +1 -1
- package/UnstyledButton/index.mjs +1 -1
- package/VerticalNav/index.js +25 -25
- package/VerticalNav/index.mjs +26 -26
- package/VerticalStack/index.js +1 -1
- package/VerticalStack/index.mjs +1 -1
- package/__chunks__/{Button-C-mB1EYo.js → Button-CmD64QHM.js} +18 -18
- package/__chunks__/{Button-Cozw9-m0.mjs → Button-MAW230DJ.mjs} +18 -18
- package/__chunks__/{Card-D5esBfKs.mjs → Card-DGfYl_59.mjs} +12 -12
- package/__chunks__/{Card-CdZZPjdi.js → Card-R59fzj3D.js} +12 -12
- package/__chunks__/{Checkbox-fgdDL8Px.mjs → Checkbox-Ba17R9Me.mjs} +24 -24
- package/__chunks__/{Checkbox-DwWYoXAb.js → Checkbox-CmWLfIf5.js} +20 -20
- package/__chunks__/{CodeSnippet-CvGyrwuz.mjs → CodeSnippet-Cg2yqHEL.mjs} +2 -2
- package/__chunks__/{CodeSnippet-58AO7aHj.js → CodeSnippet-DnRi1zYt.js} +2 -2
- package/__chunks__/{FocusScope-DvD_pBFD.mjs → FocusScope-CjqREKhC.mjs} +3 -3
- package/__chunks__/{HelpMenu-DVYCUwcR.mjs → HelpMenu-C6YpBA_k.mjs} +7 -7
- package/__chunks__/{HelpMenu-DSWVDWlE.js → HelpMenu-LqjnU6B5.js} +7 -7
- package/__chunks__/{HorizontalGrid-C7kgKRft.js → HorizontalGrid-CaRVABQC.js} +1 -1
- package/__chunks__/{HorizontalGrid-DHOuWfNd.mjs → HorizontalGrid-Cq1Kn_YA.mjs} +1 -1
- package/__chunks__/{HorizontalStack-B55fQ7wl.js → HorizontalStack-BCdQy_30.js} +1 -1
- package/__chunks__/{HorizontalStack-BfGot1sk.mjs → HorizontalStack-BR78qm70.mjs} +1 -1
- package/__chunks__/{Icon-B9N6In4d.mjs → Icon-CsV8dQQm.mjs} +2 -2
- package/__chunks__/{Icon-0Aepk36j.js → Icon-Zte0ahKA.js} +2 -2
- package/__chunks__/{InputField-DpZDDBRI.mjs → InputField-0nt-c6A-.mjs} +10 -10
- package/__chunks__/{InputField-CFm0QRF2.js → InputField-DnmD_5dk.js} +5 -5
- package/__chunks__/{InputIcon-BDeDh51H.js → InputIcon-CO8cC16W.js} +25 -25
- package/__chunks__/{InputIcon-C0O8aQLE.mjs → InputIcon-WvKiG8-J.mjs} +25 -25
- package/__chunks__/{Menu-y3ibNiZf.js → Menu-DywMr2qv.js} +72 -25
- package/__chunks__/{Menu-DFIPOTVY.mjs → Menu-JWYDsIM8.mjs} +78 -31
- package/__chunks__/{Notification-C2f4ZUOA.mjs → Notification-CjXnveJm.mjs} +20 -20
- package/__chunks__/{Notification-DKf4hi-k.js → Notification-DzT477jX.js} +15 -15
- package/__chunks__/{Overlay-NSOiekJL.mjs → Overlay-Dz_4R38U.mjs} +2 -2
- package/__chunks__/{SelectOverlay-D9bddTht.mjs → SelectOverlay-00AM3v2y.mjs} +32 -32
- package/__chunks__/{SelectOverlay-C06AcPFT.js → SelectOverlay-C1_4dzMC.js} +21 -21
- package/__chunks__/{SelectorErrorTooltip-houttOE4.mjs → SelectorErrorTooltip-0nsfBmcs.mjs} +4 -4
- package/__chunks__/{SelectorErrorTooltip-B4c63TSV.js → SelectorErrorTooltip-Bc-Sd0bp.js} +4 -4
- package/__chunks__/{Spinner-uRV-Py_H.mjs → Spinner-BKREfd3i.mjs} +8 -8
- package/__chunks__/{Spinner-CrvpgZz3.js → Spinner-BdZBA8PL.js} +5 -5
- package/__chunks__/{Stepper-CzOhqh9s.js → Stepper-CQpiq4EU.js} +26 -26
- package/__chunks__/{Stepper-8pmHgGMW.mjs → Stepper-d2Ervejf.mjs} +28 -28
- package/__chunks__/{TabNav-VfVP0i2f.js → TabNav-BFg_oRV3.js} +1 -1
- package/__chunks__/{TabNav-BLHhKoF3.mjs → TabNav-BTQ_qSQL.mjs} +1 -1
- package/__chunks__/{Tabs-hmc36j2A.js → Tabs-CGUaAlMI.js} +17 -17
- package/__chunks__/{Tabs-BF2fjh5_.mjs → Tabs-D6dblFwF.mjs} +19 -19
- package/__chunks__/{Text-CLNl4ktK.js → Text-Bq6ipzm3.js} +34 -34
- package/__chunks__/{Text-Co1k1a0Q.mjs → Text-WpS48dIg.mjs} +34 -34
- package/__chunks__/{Toggle-sHxf5_Z1.mjs → Toggle-BQzlDTjD.mjs} +14 -14
- package/__chunks__/{Toggle-B56Z2_Wn.js → Toggle-CNNb1-5k.js} +12 -12
- package/__chunks__/{Tooltip-H--IFdjD.mjs → Tooltip-De2H3lpF.mjs} +12 -13
- package/__chunks__/{Tooltip-BFYMYM8t.js → Tooltip-Dp7uYQ-L.js} +11 -12
- package/__chunks__/{UnstyledButton-Bl1UoMqJ.js → UnstyledButton-DVpiY5Qh.js} +7 -4
- package/__chunks__/{UnstyledButton-NAjBMn23.mjs → UnstyledButton-DcvMv4SL.mjs} +8 -5
- package/__chunks__/{VerticalStack-CIBy26G5.mjs → VerticalStack-CByiLhy3.mjs} +3 -3
- package/__chunks__/{VerticalStack-DVQ47Sgy.js → VerticalStack-Dz0-4vfW.js} +3 -3
- package/__chunks__/{VisuallyHidden-BUfWRoE5.mjs → VisuallyHidden-CBNzWIG8.mjs} +2 -2
- package/__chunks__/{ariaHideOutside-enBbyPlv.mjs → ariaHideOutside-CGNrOhSc.mjs} +4 -4
- package/__chunks__/{context-vBsWZ3Ni.mjs → context-D3I6RuRU.mjs} +1 -1
- package/__chunks__/{focusSafely-Cg665ed0.mjs → focusSafely-MxnwWbsu.mjs} +1 -1
- package/__chunks__/{mergeProps-CTaIJjOz.mjs → mergeProps-SJQ-f8LF.mjs} +3 -3
- package/__chunks__/{scrollIntoView-kxx1IN_-.mjs → scrollIntoView-C4vMSOYx.mjs} +1 -1
- package/__chunks__/{useButton-DXm5VgDJ.mjs → useButton-COCB0O4M.mjs} +3 -3
- package/__chunks__/{useButton-DbLIL_Ws.js → useButton-hrdBTa5u.js} +1 -1
- package/__chunks__/{useDialog-uuzOXBNO.mjs → useDialog-47nl4w_8.mjs} +4 -4
- package/__chunks__/{useEdgeInterceptors-CHGcWJgn.js → useEdgeInterceptors-D8jJYqF3.js} +5 -5
- package/__chunks__/{useEdgeInterceptors-DuFYe9N2.mjs → useEdgeInterceptors-DNVZfje3.mjs} +5 -5
- package/__chunks__/{useField-V_J-oAim.mjs → useField-DPD-La1H.mjs} +2 -2
- package/__chunks__/{useFocus-DSrpUdfo.mjs → useFocus-DOcjAFnP.mjs} +1 -1
- package/__chunks__/{useFocusRing-DEnOkFNv.mjs → useFocusRing-Cj5zef_6.mjs} +3 -3
- package/__chunks__/{useFocusVisible-3GO81-mK.mjs → useFocusVisible-DXAxI2Xj.mjs} +5 -5
- package/__chunks__/{useFocusWithin-Dowl-zQ8.mjs → useFocusWithin-Bg5BTlgA.mjs} +1 -1
- package/__chunks__/{useFocusable-DKo4wWkA.js → useFocusable-By9yXfUQ.js} +32 -2
- package/__chunks__/{useFocusable-D7496iqi.mjs → useFocusable-Uo_zjP6s.mjs} +36 -6
- package/__chunks__/{useFormReset-Z8kPFt1Y.mjs → useFormReset-CFhWic3i.mjs} +1 -1
- package/__chunks__/{useFormValidation-IDftdxEG.mjs → useFormValidation-C_CD-7QE.mjs} +2 -2
- package/__chunks__/{useHasTabbableChild-BiqyiyYV.mjs → useHasTabbableChild-DhoFI49t.mjs} +2 -2
- package/__chunks__/{useHighlightSelectionDescription-Bhj3NHov.mjs → useHighlightSelectionDescription-BGSwVQtc.mjs} +3 -3
- package/__chunks__/{useLabel-D5AQm8lF.mjs → useLabel-BlM5Qwvq.mjs} +2 -2
- package/__chunks__/{useLabels-GVN_BrWS.mjs → useLabels-DdXkBiwn.mjs} +1 -1
- package/__chunks__/{useLocalizedStringFormatter-D8BlhW_5.mjs → useLocalizedStringFormatter-DJWWtB78.mjs} +1 -1
- package/__chunks__/{useOverlayPosition-DOUNnvBc.js → useModal-BV6_Azqp.js} +67 -0
- package/__chunks__/{useOverlayPosition-C15BXmuc.mjs → useModal-sVKQd6HX.mjs} +72 -5
- package/__chunks__/{usePress-DPi5mXfq.mjs → usePress-CA-sH9oY.mjs} +4 -4
- package/__chunks__/{useSelectableItem-CHyfwMdA.mjs → useSelectableItem-Dn-hODEw.mjs} +7 -7
- package/__chunks__/{useSelectableList-UrsfEn_q.mjs → useSelectableList-DjrCndUM.mjs} +2 -2
- package/__chunks__/{useSyncRef-BiS62sNy.mjs → useSyncRef-Cp332icp.mjs} +1 -1
- package/__chunks__/{useToggle-aIu1nW8S.mjs → useToggle-V7BhKpNo.mjs} +4 -4
- package/__chunks__/{useToggle-U50aBv7S.js → useToggle-qLiVQ6Y2.js} +1 -1
- package/__chunks__/{useTriggerWidth-E4NybnOT.js → useTriggerWidth-Bj1hzfIg.js} +67 -2
- package/__chunks__/{useTriggerWidth-BMatkUuB.mjs → useTriggerWidth-CI9YrWOP.mjs} +81 -16
- package/package.json +1 -1
- package/style.css +1053 -1056
- package/utilities/storybook.d.ts +25 -1
- package/utilities/storybook.d.ts.map +1 -1
- package/__chunks__/useKeyboard-C9jAeK81.mjs +0 -52
- package/__chunks__/useKeyboard-cV-AdZ-T.js +0 -51
- package/__chunks__/useModal-D548rAs-.js +0 -86
- package/__chunks__/useModal-kt-e-joU.mjs +0 -87
package/utilities/storybook.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { Decorator } from "@storybook/react";
|
|
|
2
2
|
import React, { ComponentProps, ReactNode, SVGProps } from "react";
|
|
3
3
|
import type { Placement as AriaPlacement } from "react-aria";
|
|
4
4
|
import { SortDescriptor } from "react-stately";
|
|
5
|
-
export declare function createLabelledOptionsControl(opts: Record<string, unknown>, control?: {}): {
|
|
5
|
+
export declare function createLabelledOptionsControl(opts: Record<string, unknown>, control?: {}, restProps?: {}): {
|
|
6
6
|
options: string[];
|
|
7
7
|
mapping: Record<string, unknown>;
|
|
8
8
|
control: {
|
|
@@ -58,6 +58,30 @@ export declare function getThemeTokensControl(pattern: string): {
|
|
|
58
58
|
labels: {};
|
|
59
59
|
};
|
|
60
60
|
};
|
|
61
|
+
export declare function getFilledButtonsColorMapping(): {
|
|
62
|
+
options: string[];
|
|
63
|
+
mapping: Record<string, unknown>;
|
|
64
|
+
control: {
|
|
65
|
+
type: string;
|
|
66
|
+
labels: {};
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
export declare function getOutlinedButtonsColorMapping(): {
|
|
70
|
+
options: string[];
|
|
71
|
+
mapping: Record<string, unknown>;
|
|
72
|
+
control: {
|
|
73
|
+
type: string;
|
|
74
|
+
labels: {};
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
export declare function getLinkButtonsColorMapping(): {
|
|
78
|
+
options: string[];
|
|
79
|
+
mapping: Record<string, unknown>;
|
|
80
|
+
control: {
|
|
81
|
+
type: string;
|
|
82
|
+
labels: {};
|
|
83
|
+
};
|
|
84
|
+
};
|
|
61
85
|
export declare const InlineStoryDecorator: Decorator;
|
|
62
86
|
export declare const InlineStoryOnDarkBackgroundDecorator: Decorator;
|
|
63
87
|
export declare const FullScreenStoryPreviewStyle: () => React.JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storybook.d.ts","sourceRoot":"","sources":["../../src/utilities/storybook.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,KAAK,EAAE,EAAE,cAAc,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnE,OAAO,KAAK,EAAE,SAAS,IAAI,aAAa,EAAE,MAAM,YAAY,CAAC;AAG7D,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"storybook.d.ts","sourceRoot":"","sources":["../../src/utilities/storybook.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,KAAK,EAAE,EAAE,cAAc,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnE,OAAO,KAAK,EAAE,SAAS,IAAI,aAAa,EAAE,MAAM,YAAY,CAAC;AAG7D,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAQ/C,wBAAgB,4BAA4B,CAC1C,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,OAAO,KAAK,EACZ,SAAS,KAAK;;;;;;;EAYf;AAED,wBAAgB,4BAA4B;;;;;;;EAE3C;AAED,wBAAgB,wBAAwB;;;;;;;EAEvC;AAED,wBAAgB,yBAAyB;;;;;;;EAExC;AAED,wBAAgB,+BAA+B;;;;;;;EAE9C;AAED,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,MAAM;;;;;;;EAErD;AAED,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,MAAM;;;;;;;EAEpD;AAQD,wBAAgB,4BAA4B;;;;;;;EAe3C;AAED,wBAAgB,8BAA8B;;;;;;;EAe7C;AAED,wBAAgB,0BAA0B;;;;;;;EAczC;AAcD,eAAO,MAAM,oBAAoB,EAAE,SAIlC,CAAC;AAEF,eAAO,MAAM,oCAAoC,EAAE,SAIlD,CAAC;AAGF,eAAO,MAAM,2BAA2B,yBAUvC,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,sBAAsB,EAAE,SAgCpC,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAazB,aAAa,EAAE,CAAC;AAErB,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,wCAKxB,mBAAmB,sBAgBrB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,SAW5B,CAAC;AAEF,wBAAgB,YAAY,CAAC,KAAK,EAAE,QAAQ,CAAC,aAAa,CAAC,qBAgB1D;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,QAAQ,CAAC,aAAa,CAAC,qBAwB9D;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,QAAQ,CAAC,aAAa,CAAC,qBAkBxD;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,cAAc,CAAC,KAAK,CAAC,qBAOxD;AAED,wBAAgB,0BAA0B,CAAC,cAAc,EAAE,cAAc,OAC5D,MAAM,KAAK,MAAM,YAQ7B;AAED,wBAAgB,cAAc,sBAgC7B;AAKD,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,cAAc,CAAC,QAAQ,CAAC,qBAEvE;AAED,wBAAgB,aAAa,wBA2B5B"}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __defProps = Object.defineProperties;
|
|
3
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
-
var __spreadValues = (a, b) => {
|
|
9
|
-
for (var prop in b || (b = {}))
|
|
10
|
-
if (__hasOwnProp.call(b, prop))
|
|
11
|
-
__defNormalProp(a, prop, b[prop]);
|
|
12
|
-
if (__getOwnPropSymbols)
|
|
13
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
-
if (__propIsEnum.call(b, prop))
|
|
15
|
-
__defNormalProp(a, prop, b[prop]);
|
|
16
|
-
}
|
|
17
|
-
return a;
|
|
18
|
-
};
|
|
19
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
function $93925083ecbb358c$export$48d1ea6320830260(handler) {
|
|
21
|
-
if (!handler) return void 0;
|
|
22
|
-
let shouldStopPropagation = true;
|
|
23
|
-
return (e) => {
|
|
24
|
-
let event = __spreadProps(__spreadValues({}, e), {
|
|
25
|
-
preventDefault() {
|
|
26
|
-
e.preventDefault();
|
|
27
|
-
},
|
|
28
|
-
isDefaultPrevented() {
|
|
29
|
-
return e.isDefaultPrevented();
|
|
30
|
-
},
|
|
31
|
-
stopPropagation() {
|
|
32
|
-
console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.");
|
|
33
|
-
},
|
|
34
|
-
continuePropagation() {
|
|
35
|
-
shouldStopPropagation = false;
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
handler(event);
|
|
39
|
-
if (shouldStopPropagation) e.stopPropagation();
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
function $46d819fcbaf35654$export$8f71654801c2f7cd(props) {
|
|
43
|
-
return {
|
|
44
|
-
keyboardProps: props.isDisabled ? {} : {
|
|
45
|
-
onKeyDown: $93925083ecbb358c$export$48d1ea6320830260(props.onKeyDown),
|
|
46
|
-
onKeyUp: $93925083ecbb358c$export$48d1ea6320830260(props.onKeyUp)
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
export {
|
|
51
|
-
$46d819fcbaf35654$export$8f71654801c2f7cd as $
|
|
52
|
-
};
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __defProps = Object.defineProperties;
|
|
4
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
5
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
8
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
9
|
-
var __spreadValues = (a, b) => {
|
|
10
|
-
for (var prop in b || (b = {}))
|
|
11
|
-
if (__hasOwnProp.call(b, prop))
|
|
12
|
-
__defNormalProp(a, prop, b[prop]);
|
|
13
|
-
if (__getOwnPropSymbols)
|
|
14
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
15
|
-
if (__propIsEnum.call(b, prop))
|
|
16
|
-
__defNormalProp(a, prop, b[prop]);
|
|
17
|
-
}
|
|
18
|
-
return a;
|
|
19
|
-
};
|
|
20
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
21
|
-
function $93925083ecbb358c$export$48d1ea6320830260(handler) {
|
|
22
|
-
if (!handler) return void 0;
|
|
23
|
-
let shouldStopPropagation = true;
|
|
24
|
-
return (e) => {
|
|
25
|
-
let event = __spreadProps(__spreadValues({}, e), {
|
|
26
|
-
preventDefault() {
|
|
27
|
-
e.preventDefault();
|
|
28
|
-
},
|
|
29
|
-
isDefaultPrevented() {
|
|
30
|
-
return e.isDefaultPrevented();
|
|
31
|
-
},
|
|
32
|
-
stopPropagation() {
|
|
33
|
-
console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.");
|
|
34
|
-
},
|
|
35
|
-
continuePropagation() {
|
|
36
|
-
shouldStopPropagation = false;
|
|
37
|
-
}
|
|
38
|
-
});
|
|
39
|
-
handler(event);
|
|
40
|
-
if (shouldStopPropagation) e.stopPropagation();
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
function $46d819fcbaf35654$export$8f71654801c2f7cd(props) {
|
|
44
|
-
return {
|
|
45
|
-
keyboardProps: props.isDisabled ? {} : {
|
|
46
|
-
onKeyDown: $93925083ecbb358c$export$48d1ea6320830260(props.onKeyDown),
|
|
47
|
-
onKeyUp: $93925083ecbb358c$export$48d1ea6320830260(props.onKeyUp)
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
exports.$46d819fcbaf35654$export$8f71654801c2f7cd = $46d819fcbaf35654$export$8f71654801c2f7cd;
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
6
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7
|
-
var __spreadValues = (a, b) => {
|
|
8
|
-
for (var prop in b || (b = {}))
|
|
9
|
-
if (__hasOwnProp.call(b, prop))
|
|
10
|
-
__defNormalProp(a, prop, b[prop]);
|
|
11
|
-
if (__getOwnPropSymbols)
|
|
12
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
13
|
-
if (__propIsEnum.call(b, prop))
|
|
14
|
-
__defNormalProp(a, prop, b[prop]);
|
|
15
|
-
}
|
|
16
|
-
return a;
|
|
17
|
-
};
|
|
18
|
-
var __objRest = (source, exclude) => {
|
|
19
|
-
var target = {};
|
|
20
|
-
for (var prop in source)
|
|
21
|
-
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
22
|
-
target[prop] = source[prop];
|
|
23
|
-
if (source != null && __getOwnPropSymbols)
|
|
24
|
-
for (var prop of __getOwnPropSymbols(source)) {
|
|
25
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
26
|
-
target[prop] = source[prop];
|
|
27
|
-
}
|
|
28
|
-
return target;
|
|
29
|
-
};
|
|
30
|
-
const React = require("react");
|
|
31
|
-
const ReactDOM = require("react-dom");
|
|
32
|
-
const mergeProps = require("./mergeProps-DniMwM6P.js");
|
|
33
|
-
const $f57aed4a881a3485$var$Context = /* @__PURE__ */ React.createContext(null);
|
|
34
|
-
function $f57aed4a881a3485$export$178405afcd8c5eb(props) {
|
|
35
|
-
let { children } = props;
|
|
36
|
-
let parent = React.useContext($f57aed4a881a3485$var$Context);
|
|
37
|
-
let [modalCount, setModalCount] = React.useState(0);
|
|
38
|
-
let context = React.useMemo(() => ({
|
|
39
|
-
parent,
|
|
40
|
-
modalCount,
|
|
41
|
-
addModal() {
|
|
42
|
-
setModalCount((count) => count + 1);
|
|
43
|
-
if (parent) parent.addModal();
|
|
44
|
-
},
|
|
45
|
-
removeModal() {
|
|
46
|
-
setModalCount((count) => count - 1);
|
|
47
|
-
if (parent) parent.removeModal();
|
|
48
|
-
}
|
|
49
|
-
}), [
|
|
50
|
-
parent,
|
|
51
|
-
modalCount
|
|
52
|
-
]);
|
|
53
|
-
return /* @__PURE__ */ React.createElement($f57aed4a881a3485$var$Context.Provider, {
|
|
54
|
-
value: context
|
|
55
|
-
}, children);
|
|
56
|
-
}
|
|
57
|
-
function $f57aed4a881a3485$export$d9aaed4c3ece1bc0() {
|
|
58
|
-
let context = React.useContext($f57aed4a881a3485$var$Context);
|
|
59
|
-
return {
|
|
60
|
-
modalProviderProps: {
|
|
61
|
-
"aria-hidden": context && context.modalCount > 0 ? true : void 0
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
function $f57aed4a881a3485$var$OverlayContainerDOM(props) {
|
|
66
|
-
let { modalProviderProps } = $f57aed4a881a3485$export$d9aaed4c3ece1bc0();
|
|
67
|
-
return /* @__PURE__ */ React.createElement("div", __spreadValues(__spreadValues({
|
|
68
|
-
"data-overlay-container": true
|
|
69
|
-
}, props), modalProviderProps));
|
|
70
|
-
}
|
|
71
|
-
function $f57aed4a881a3485$export$bf688221f59024e5(props) {
|
|
72
|
-
return /* @__PURE__ */ React.createElement($f57aed4a881a3485$export$178405afcd8c5eb, null, /* @__PURE__ */ React.createElement($f57aed4a881a3485$var$OverlayContainerDOM, props));
|
|
73
|
-
}
|
|
74
|
-
function $f57aed4a881a3485$export$b47c3594eab58386(props) {
|
|
75
|
-
let isSSR = mergeProps.$b5e257d569688ac6$export$535bd6ca7f90a273();
|
|
76
|
-
let _a = props, { portalContainer = isSSR ? null : document.body } = _a, rest = __objRest(_a, ["portalContainer"]);
|
|
77
|
-
React.useEffect(() => {
|
|
78
|
-
if (portalContainer === null || portalContainer === void 0 ? void 0 : portalContainer.closest("[data-overlay-container]")) throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.");
|
|
79
|
-
}, [
|
|
80
|
-
portalContainer
|
|
81
|
-
]);
|
|
82
|
-
if (!portalContainer) return null;
|
|
83
|
-
let contents = /* @__PURE__ */ React.createElement($f57aed4a881a3485$export$bf688221f59024e5, rest);
|
|
84
|
-
return /* @__PURE__ */ ReactDOM.createPortal(contents, portalContainer);
|
|
85
|
-
}
|
|
86
|
-
exports.$f57aed4a881a3485$export$b47c3594eab58386 = $f57aed4a881a3485$export$b47c3594eab58386;
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
-
var __spreadValues = (a, b) => {
|
|
7
|
-
for (var prop in b || (b = {}))
|
|
8
|
-
if (__hasOwnProp.call(b, prop))
|
|
9
|
-
__defNormalProp(a, prop, b[prop]);
|
|
10
|
-
if (__getOwnPropSymbols)
|
|
11
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
12
|
-
if (__propIsEnum.call(b, prop))
|
|
13
|
-
__defNormalProp(a, prop, b[prop]);
|
|
14
|
-
}
|
|
15
|
-
return a;
|
|
16
|
-
};
|
|
17
|
-
var __objRest = (source, exclude) => {
|
|
18
|
-
var target = {};
|
|
19
|
-
for (var prop in source)
|
|
20
|
-
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
21
|
-
target[prop] = source[prop];
|
|
22
|
-
if (source != null && __getOwnPropSymbols)
|
|
23
|
-
for (var prop of __getOwnPropSymbols(source)) {
|
|
24
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
25
|
-
target[prop] = source[prop];
|
|
26
|
-
}
|
|
27
|
-
return target;
|
|
28
|
-
};
|
|
29
|
-
import React__default, { useContext, useState, useMemo } from "react";
|
|
30
|
-
import ReactDOM from "react-dom";
|
|
31
|
-
import { c as $b5e257d569688ac6$export$535bd6ca7f90a273 } from "./mergeProps-CTaIJjOz.mjs";
|
|
32
|
-
const $f57aed4a881a3485$var$Context = /* @__PURE__ */ React__default.createContext(null);
|
|
33
|
-
function $f57aed4a881a3485$export$178405afcd8c5eb(props) {
|
|
34
|
-
let { children } = props;
|
|
35
|
-
let parent = useContext($f57aed4a881a3485$var$Context);
|
|
36
|
-
let [modalCount, setModalCount] = useState(0);
|
|
37
|
-
let context = useMemo(() => ({
|
|
38
|
-
parent,
|
|
39
|
-
modalCount,
|
|
40
|
-
addModal() {
|
|
41
|
-
setModalCount((count) => count + 1);
|
|
42
|
-
if (parent) parent.addModal();
|
|
43
|
-
},
|
|
44
|
-
removeModal() {
|
|
45
|
-
setModalCount((count) => count - 1);
|
|
46
|
-
if (parent) parent.removeModal();
|
|
47
|
-
}
|
|
48
|
-
}), [
|
|
49
|
-
parent,
|
|
50
|
-
modalCount
|
|
51
|
-
]);
|
|
52
|
-
return /* @__PURE__ */ React__default.createElement($f57aed4a881a3485$var$Context.Provider, {
|
|
53
|
-
value: context
|
|
54
|
-
}, children);
|
|
55
|
-
}
|
|
56
|
-
function $f57aed4a881a3485$export$d9aaed4c3ece1bc0() {
|
|
57
|
-
let context = useContext($f57aed4a881a3485$var$Context);
|
|
58
|
-
return {
|
|
59
|
-
modalProviderProps: {
|
|
60
|
-
"aria-hidden": context && context.modalCount > 0 ? true : void 0
|
|
61
|
-
}
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
function $f57aed4a881a3485$var$OverlayContainerDOM(props) {
|
|
65
|
-
let { modalProviderProps } = $f57aed4a881a3485$export$d9aaed4c3ece1bc0();
|
|
66
|
-
return /* @__PURE__ */ React__default.createElement("div", __spreadValues(__spreadValues({
|
|
67
|
-
"data-overlay-container": true
|
|
68
|
-
}, props), modalProviderProps));
|
|
69
|
-
}
|
|
70
|
-
function $f57aed4a881a3485$export$bf688221f59024e5(props) {
|
|
71
|
-
return /* @__PURE__ */ React__default.createElement($f57aed4a881a3485$export$178405afcd8c5eb, null, /* @__PURE__ */ React__default.createElement($f57aed4a881a3485$var$OverlayContainerDOM, props));
|
|
72
|
-
}
|
|
73
|
-
function $f57aed4a881a3485$export$b47c3594eab58386(props) {
|
|
74
|
-
let isSSR = $b5e257d569688ac6$export$535bd6ca7f90a273();
|
|
75
|
-
let _a = props, { portalContainer = isSSR ? null : document.body } = _a, rest = __objRest(_a, ["portalContainer"]);
|
|
76
|
-
React__default.useEffect(() => {
|
|
77
|
-
if (portalContainer === null || portalContainer === void 0 ? void 0 : portalContainer.closest("[data-overlay-container]")) throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.");
|
|
78
|
-
}, [
|
|
79
|
-
portalContainer
|
|
80
|
-
]);
|
|
81
|
-
if (!portalContainer) return null;
|
|
82
|
-
let contents = /* @__PURE__ */ React__default.createElement($f57aed4a881a3485$export$bf688221f59024e5, rest);
|
|
83
|
-
return /* @__PURE__ */ ReactDOM.createPortal(contents, portalContainer);
|
|
84
|
-
}
|
|
85
|
-
export {
|
|
86
|
-
$f57aed4a881a3485$export$b47c3594eab58386 as $
|
|
87
|
-
};
|