@easypost/easy-ui 1.0.0-alpha.61 → 1.0.0-alpha.63
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 +1 -1
- package/Button/Button.d.ts.map +1 -1
- package/Button/Button.stories.d.ts +1 -0
- 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 +1 -0
- package/Button/utilities.d.ts.map +1 -1
- package/CHANGELOG.md +16 -0
- package/Calendar/index.js +1 -1
- package/Calendar/index.mjs +1 -1
- 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 +63 -63
- package/DataGrid/index.mjs +72 -72
- package/DatePicker/index.js +5 -5
- package/DatePicker/index.mjs +12 -12
- package/DateRangePicker/index.js +5 -5
- package/DateRangePicker/index.mjs +12 -12
- package/Drawer/index.js +23 -22
- package/Drawer/index.mjs +22 -21
- 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 +25 -78
- package/FocusedProductLayout/index.mjs +24 -61
- package/ForgeLayout/ForgeLayout.d.ts +14 -22
- package/ForgeLayout/ForgeLayout.d.ts.map +1 -1
- package/ForgeLayout/ForgeLayout.stories.d.ts.map +1 -1
- package/ForgeLayout/ForgeLayoutControls.d.ts +38 -0
- package/ForgeLayout/ForgeLayoutControls.d.ts.map +1 -0
- package/ForgeLayout/ForgeLayoutHeader.d.ts +18 -0
- package/ForgeLayout/ForgeLayoutHeader.d.ts.map +1 -0
- package/ForgeLayout/index.js +426 -62
- package/ForgeLayout/index.mjs +429 -65
- 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/index.js +13 -13
- package/IconButton/index.mjs +13 -13
- package/InputField/index.js +1 -1
- package/InputField/index.mjs +1 -1
- package/KebabButton/index.js +1 -1
- package/KebabButton/index.mjs +1 -1
- package/Menu/index.js +1 -1
- package/Menu/index.mjs +1 -1
- package/Modal/index.js +24 -23
- package/Modal/index.mjs +23 -22
- package/NexusLayout/index.js +30 -30
- 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 +15 -14
- package/PillGroup/index.mjs +23 -22
- package/ProductLayout/index.js +27 -26
- package/ProductLayout/index.mjs +26 -25
- package/Provider/index.js +2 -2
- package/Provider/index.mjs +2 -2
- package/RadioButtonGroup/index.js +5 -5
- package/RadioButtonGroup/index.mjs +8 -8
- package/RadioGroup/index.js +3 -332
- package/RadioGroup/index.mjs +3 -332
- package/RangeCalendar/index.js +1 -1
- package/RangeCalendar/index.mjs +1 -1
- package/SearchNav/index.js +50 -86
- package/SearchNav/index.mjs +50 -86
- package/SectionCard/index.js +7 -7
- package/SectionCard/index.mjs +7 -7
- package/Select/index.js +6 -6
- package/Select/index.mjs +6 -6
- 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 +4 -4
- 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 +2 -43
- package/TextField/index.mjs +2 -43
- 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__/ArrowBack-BFS-tCpV.mjs +41 -0
- package/__chunks__/ArrowBack-C_LSatif.js +57 -0
- package/__chunks__/{Button-jgkOum0d.js → Button-BvLvcmfd.js} +6 -2
- package/__chunks__/{Button-DcYNVtp7.mjs → Button-CDRssWxC.mjs} +12 -8
- package/__chunks__/{Button-gxCTl22H.mjs → Button-DnBd1tE4.mjs} +20 -18
- package/__chunks__/{Button-BzB8v2mS.js → Button-HZGRa7IL.js} +20 -18
- package/__chunks__/{Calendar-C9hD67Rz.mjs → Calendar-COrthCOR.mjs} +2 -2
- package/__chunks__/{Calendar-BS8zgZK8.js → Calendar-fF8Ifu6-.js} +1 -1
- package/__chunks__/{CalendarBase-4iGD1mPK.mjs → CalendarBase-DfXqYv3I.mjs} +28 -28
- package/__chunks__/{CalendarBase-saNix6u1.js → CalendarBase-Vp3Xr9Ha.js} +21 -21
- package/__chunks__/{Card-Cr-bIjoN.mjs → Card-CRKK5X8A.mjs} +12 -12
- package/__chunks__/{Card-DaFTIHZD.js → Card-D88JRTci.js} +12 -12
- package/__chunks__/{Checkbox-BY4UkCg7.js → Checkbox-Bin5UVge.js} +21 -21
- package/__chunks__/{Checkbox-BR4RBHLp.mjs → Checkbox-DLAdFxZB.mjs} +24 -24
- package/__chunks__/{CodeSnippet-H-6ta_Y8.js → CodeSnippet-3x6WIH4w.js} +2 -2
- package/__chunks__/{CodeSnippet-ChZIz_CO.mjs → CodeSnippet-Dv1LkDCe.mjs} +2 -2
- package/__chunks__/{DatePickerBase-vorBKIfJ.js → DatePickerBase-C4wv9REt.js} +20 -20
- package/__chunks__/{DatePickerBase-DlbnqBLN.mjs → DatePickerBase-DjNK3joa.mjs} +31 -31
- package/__chunks__/{FocusScope-Co1hHX8R.js → FocusScope-DFE0IeGl.js} +1 -1
- package/__chunks__/{FocusScope-CjcZn1Rq.mjs → FocusScope-Qg8vUhZ_.mjs} +2 -2
- package/__chunks__/{HelpMenu-BzUSoyPi.js → HelpMenu-DDg5YzkU.js} +7 -7
- package/__chunks__/{HelpMenu-yEjZgR1V.mjs → HelpMenu-DwxE4dED.mjs} +7 -7
- package/__chunks__/{HorizontalGrid-Bhj16LbM.js → HorizontalGrid-B5UdZtSD.js} +1 -1
- package/__chunks__/{HorizontalGrid-D4bJqbQV.mjs → HorizontalGrid-CQJNpH_g.mjs} +1 -1
- package/__chunks__/{HorizontalStack-_DnrRlDb.js → HorizontalStack-BZVZY2L3.js} +1 -1
- package/__chunks__/{HorizontalStack-BDZp8p9E.mjs → HorizontalStack-F_QqY0Nh.mjs} +1 -1
- package/__chunks__/{Icon-BdtOD2WX.mjs → Icon-BP2sMOEQ.mjs} +2 -2
- package/__chunks__/{Icon-DJ8CpeVT.js → Icon-J_YUTa8G.js} +2 -2
- package/__chunks__/{InputCaption-BBbxPdvJ.mjs → InputCaption-BDIDBzxu.mjs} +2 -2
- package/__chunks__/{InputCaption-CEIuQ6BY.js → InputCaption-EdW8TyWi.js} +2 -2
- package/__chunks__/{InputField-CPxOg_cd.mjs → InputField-BixuNEjG.mjs} +10 -10
- package/__chunks__/{InputField-BUU9HZ1I.js → InputField-CeQG6X1e.js} +6 -6
- package/__chunks__/{InputIcon-MHt_XLtO.mjs → InputIcon-Ba5OzsKo.mjs} +31 -31
- package/__chunks__/{InputIcon-nUumrcJ5.js → InputIcon-CusLxe5T.js} +31 -31
- package/__chunks__/{KebabButton-BapJTvS6.mjs → KebabButton-BNTa7oyV.mjs} +5 -5
- package/__chunks__/{KebabButton-C3KI5LDA.js → KebabButton-BY-1XUv1.js} +5 -5
- package/__chunks__/{Menu-LzJveIa-.mjs → Menu-BTop6cMU.mjs} +22 -21
- package/__chunks__/{Menu-CkQaJJAH.js → Menu-DMRGN00c.js} +19 -18
- package/__chunks__/{Notification-CAmvbAK1.mjs → Notification-BUGy3_I5.mjs} +20 -20
- package/__chunks__/{Notification-C5_bwXj4.js → Notification-DH9kYI2j.js} +16 -16
- package/__chunks__/{Overlay-ZinDp2HW.js → Overlay-Dmwy9VjC.js} +59 -3
- package/__chunks__/{Overlay-d3z5W5Nn.mjs → Overlay-DyfvFsGi.mjs} +63 -7
- package/__chunks__/RadioGroup-AnutNNEP.js +333 -0
- package/__chunks__/RadioGroup-BGkcZ05k.mjs +334 -0
- package/__chunks__/{RangeCalendar-Bhk32GB_.mjs → RangeCalendar-DBT1OAVs.mjs} +3 -3
- package/__chunks__/{RangeCalendar-5enltd2P.js → RangeCalendar-vZBVH6tC.js} +1 -1
- package/__chunks__/Search-BY7IgEyX.js +57 -0
- package/__chunks__/Search-Cyblmqo5.mjs +41 -0
- package/__chunks__/{SelectOverlay-MLWWpDpl.mjs → SelectOverlay-B5f293nC.mjs} +34 -34
- package/__chunks__/{SelectOverlay-DKJvzJJ7.js → SelectOverlay-LJQe-vam.js} +25 -25
- package/__chunks__/{SelectorErrorTooltip-DLyZgeUf.mjs → SelectorErrorTooltip-CEUMKEsA.mjs} +4 -4
- package/__chunks__/{SelectorErrorTooltip-DowQ2whn.js → SelectorErrorTooltip-Dy2Mpy2O.js} +4 -4
- package/__chunks__/{Spinner-BFydR08g.js → Spinner-BZdapiOh.js} +5 -5
- package/__chunks__/{Spinner-hJoFNoHJ.mjs → Spinner-fvqf25Op.mjs} +8 -8
- package/__chunks__/{Stepper-CxWpMLEW.js → Stepper-B9_lzdDm.js} +26 -26
- package/__chunks__/{Stepper-BY8zQdW2.mjs → Stepper-DcLt3_ji.mjs} +28 -28
- package/__chunks__/{TabNav-burpvHrg.mjs → TabNav-BoiZj3RP.mjs} +1 -1
- package/__chunks__/{TabNav-1cTg6TWo.js → TabNav-CwEWCqMi.js} +1 -1
- package/__chunks__/{Tabs-DHXJckwb.js → Tabs-BFPgkckQ.js} +17 -17
- package/__chunks__/{Tabs-BzZ9w82m.mjs → Tabs-CrheURAq.mjs} +19 -19
- package/__chunks__/{Text-Dfbyoxsz.js → Text-D2pJpElk.js} +34 -34
- package/__chunks__/{Text-CQ_8wg0t.mjs → Text-D_RgAqQT.mjs} +34 -34
- package/__chunks__/TextField-CN_1Oumr.js +44 -0
- package/__chunks__/TextField-CTG1CCY2.mjs +45 -0
- package/__chunks__/{Toggle-BiaALtul.mjs → Toggle-3m7Kw6Df.mjs} +14 -14
- package/__chunks__/{Toggle-CYKsPbEK.js → Toggle-g6ZteN5I.js} +12 -12
- package/__chunks__/{Tooltip-5ZgKkdk8.mjs → Tooltip-C6VFxZnS.mjs} +13 -13
- package/__chunks__/{Tooltip-Bzqm5boz.js → Tooltip-CCaMosZz.js} +11 -11
- package/__chunks__/{UnstyledButton-BlB066YT.mjs → UnstyledButton-Ctqv-3bt.mjs} +5 -3
- package/__chunks__/{UnstyledButton-Dn8KZHdh.js → UnstyledButton-Dmq9K7Jv.js} +4 -2
- package/__chunks__/{VerticalStack-_gyNJbOa.js → VerticalStack-DSkRse5s.js} +3 -3
- package/__chunks__/{VerticalStack-eKUWFHU3.mjs → VerticalStack-jXfiEwjb.mjs} +3 -3
- package/__chunks__/{VisuallyHidden-DmDK0fH3.mjs → VisuallyHidden-BC5PXI9q.mjs} +2 -2
- package/__chunks__/{ariaHideOutside-a1MUBVQF.js → ariaHideOutside-B6WqGXJj.js} +1 -1
- package/__chunks__/{ariaHideOutside-B-UoCW1g.mjs → ariaHideOutside-CxWZQtI1.mjs} +3 -3
- package/__chunks__/{context-DEwqildc.mjs → context-BZCcafjG.mjs} +1 -1
- package/__chunks__/{context-C6CFGY_J.js → context-CYcq9Zvo.js} +12 -0
- package/__chunks__/{context-CgOWZch5.mjs → context-EpOG85wC.mjs} +13 -1
- package/__chunks__/{focusSafely-DcMa3q3g.mjs → focusSafely-BWGCG3W3.mjs} +2 -2
- package/__chunks__/{focusSafely-sLifanM7.js → focusSafely-BvrXUhlW.js} +1 -1
- package/__chunks__/{mergeProps-T961Q1yJ.mjs → mergeProps-DSi85raC.mjs} +4 -4
- package/__chunks__/{scrollIntoView-GfnXaOCE.mjs → scrollIntoView-CZM0k-rp.mjs} +1 -1
- package/__chunks__/{useButton-BoMy_zYC.mjs → useButton-BK6hwK02.mjs} +3 -3
- package/__chunks__/{useButton-DvulUoU2.js → useButton-DZ0C3d-K.js} +2 -2
- package/__chunks__/{useCollator-DXoNI6C-.mjs → useCollator-B-keb3wA.mjs} +1 -1
- package/__chunks__/{useDialog-o0QWfg2a.mjs → useDialog-c-C07qhw.mjs} +5 -29
- package/__chunks__/{useDialog-DILXRLSs.js → useDialog-wy_ru95P.js} +3 -27
- package/__chunks__/{useEdgeInterceptors-DfiAHAYW.js → useEdgeInterceptors-C-eRb7cQ.js} +5 -5
- package/__chunks__/{useEdgeInterceptors-wWqxCUZX.mjs → useEdgeInterceptors-C_U6I4V4.mjs} +5 -5
- package/__chunks__/{useEvent-C5RCZjKr.mjs → useEvent-B0fsKtsf.mjs} +1 -1
- package/__chunks__/{useField-DWmSslhe.mjs → useField-B6VplZ_n.mjs} +2 -2
- package/__chunks__/{useFocus-BEhCbr7O.mjs → useFocus-BJ7JikEx.mjs} +1 -1
- package/__chunks__/{useFocusRing-BUwbt1Yv.mjs → useFocusRing-YOWeCHgO.mjs} +3 -3
- package/__chunks__/{useFocusVisible-8tH_I2iV.mjs → useFocusVisible-ng1Hn25t.mjs} +1 -1
- package/__chunks__/{useFocusWithin-CfhMwfXS.mjs → useFocusWithin-B-vQAW9V.mjs} +1 -1
- package/__chunks__/{useFocusable-BfXLORiH.js → useFocusable-8kJcp2yc.js} +5 -5
- package/__chunks__/{useFocusable-DoNt-Wd3.mjs → useFocusable-CNor_Zjt.mjs} +4 -4
- package/__chunks__/{useFormReset-CmXMJVpO.mjs → useFormReset-DA1Lwdha.mjs} +1 -1
- package/__chunks__/{useFormValidation-D5Y_7NR2.mjs → useFormValidation-v2O6VL2V.mjs} +2 -2
- package/__chunks__/{useHasTabbableChild-DUcbkV37.mjs → useHasTabbableChild-BKgmY6ej.mjs} +2 -2
- package/__chunks__/{useHasTabbableChild-C34XhtMr.js → useHasTabbableChild-Cs10TUUE.js} +1 -1
- package/__chunks__/{useHighlightSelectionDescription-DWm7Wr6h.mjs → useHighlightSelectionDescription-Cebr-N8X.mjs} +3 -3
- package/__chunks__/{useLabel-C0Q8946u.mjs → useLabel-D37VV43W.mjs} +2 -2
- package/__chunks__/{useLabels-Bly436JP.mjs → useLabels-5f58TiCH.mjs} +1 -1
- package/__chunks__/{useLink-BOdtE_Mk.js → useLink-DSnaSTQf.js} +2 -2
- package/__chunks__/{useLink-B_g4ae9e.mjs → useLink-xdTgcuUM.mjs} +3 -3
- package/__chunks__/{useLocalizedStringFormatter-CLrYoOi9.mjs → useLocalizedStringFormatter-BHXy3Wtu.mjs} +1 -1
- package/__chunks__/useModalOverlay-BljLSPJ0.js +47 -0
- package/__chunks__/useModalOverlay-S0R2uVTX.mjs +48 -0
- package/__chunks__/useObjectRef-BOGMJ5vM.js +18 -0
- package/__chunks__/useObjectRef-wU82Pkgx.mjs +19 -0
- package/__chunks__/{useOverlayPosition-B_X4JGFp.mjs → useOverlayPosition-BjK7cu6U.mjs} +3 -3
- package/__chunks__/{useOverlayPosition-ucZjuzzI.js → useOverlayPosition-CMvGmqVL.js} +1 -1
- package/__chunks__/{useOverlayTrigger-Do68TGFi.mjs → useOverlayTrigger-DDcXdZOM.mjs} +2 -2
- package/__chunks__/{useOverlayTrigger-MyMg5wFE.js → useOverlayTrigger-Dp7RXQ9B.js} +1 -1
- package/__chunks__/{usePress-Dz8YYpge.js → usePress-DNETV97g.js} +2 -3
- package/__chunks__/{usePress-BAsZaqDB.mjs → usePress-Db4pSZfY.mjs} +2 -3
- package/__chunks__/{useSelectableItem-DL-4kc1g.mjs → useSelectableItem-D61t76J1.mjs} +9 -9
- package/__chunks__/{useSelectableItem-BGvBbIwY.js → useSelectableItem-DpEX9QBc.js} +4 -4
- package/__chunks__/{useSelectableList-BQ06AmlV.mjs → useSelectableList-BdG5I7cy.mjs} +2 -2
- package/__chunks__/{useSelectableList-F8fB4Dtg.js → useSelectableList-UkBCcTuC.js} +1 -1
- package/__chunks__/{useToggle-CU6aSiOx.mjs → useToggle-BDx-p-Zv.mjs} +4 -4
- package/__chunks__/{useToggle-D7gzXCXF.js → useToggle-BfpHeO2F.js} +2 -2
- package/__chunks__/{useTriggerWidth-DA668KiC.mjs → useTriggerWidth-CRz8zSDa.mjs} +4 -4
- package/__chunks__/{useTriggerWidth-ROE4ZhGv.js → useTriggerWidth-Dj7C0lza.js} +2 -2
- package/__chunks__/{utilities-DKvHenAr.js → utilities-CaBPUKEB.js} +2 -2
- package/__chunks__/{utilities-DmLL16up.mjs → utilities-DASknbaa.mjs} +6 -6
- package/__chunks__/{utils-XuD3IFpv.mjs → utils-D4ddhsBL.mjs} +58 -21
- package/__chunks__/{utils-DXO9zsKE.js → utils-DIF5XAA2.js} +55 -18
- package/package.json +1 -1
- package/style.css +1655 -1565
- package/utilities/storybook.d.ts +8 -0
- package/utilities/storybook.d.ts.map +1 -1
- package/__chunks__/useSyncRef-CPg4onT-.js +0 -13
- package/__chunks__/useSyncRef-CpaiKz0R.mjs +0 -14
package/ForgeLayout/index.mjs
CHANGED
|
@@ -29,27 +29,225 @@ var __objRest = (source, exclude) => {
|
|
|
29
29
|
}
|
|
30
30
|
return target;
|
|
31
31
|
};
|
|
32
|
-
import React__default, {
|
|
32
|
+
import React__default, { createContext, forwardRef, useContext, useRef, useState, useCallback, useMemo, Fragment } from "react";
|
|
33
33
|
import { classNames, variationName } from "../utilities/css.mjs";
|
|
34
|
-
import { $ as $d2b4bc8c273e7be6$export$353f5b6fc5456de1 } from "../__chunks__/Button-
|
|
35
|
-
import { H as HorizontalStack } from "../__chunks__/HorizontalStack-
|
|
36
|
-
import { I as Icon } from "../__chunks__/Icon-
|
|
37
|
-
import { M as Menu } from "../__chunks__/Menu-
|
|
38
|
-
import { T as Text } from "../__chunks__/Text-
|
|
39
|
-
import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../__chunks__/useFocusRing-
|
|
34
|
+
import { $ as $f39a9eba43920ace$export$b5d7cc18bb8d2b59, a as $d2b4bc8c273e7be6$export$24d547caef80ccd1, b as $d2b4bc8c273e7be6$export$353f5b6fc5456de1 } from "../__chunks__/Button-CDRssWxC.mjs";
|
|
35
|
+
import { H as HorizontalStack } from "../__chunks__/HorizontalStack-F_QqY0Nh.mjs";
|
|
36
|
+
import { I as Icon } from "../__chunks__/Icon-BP2sMOEQ.mjs";
|
|
37
|
+
import { $ as $a28c903ee9ad8dc5$export$79fefeb1c2091ac3, M as Menu } from "../__chunks__/Menu-BTop6cMU.mjs";
|
|
38
|
+
import { T as Text } from "../__chunks__/Text-D_RgAqQT.mjs";
|
|
39
|
+
import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../__chunks__/useFocusRing-YOWeCHgO.mjs";
|
|
40
40
|
import { $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "../__chunks__/useHover-BOYR4wqI.mjs";
|
|
41
|
-
import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "../__chunks__/usePress-
|
|
42
|
-
import { $ as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "../__chunks__/mergeProps-
|
|
43
|
-
import { $ as $298d61e98472621b$export$dcf14c9974fe2767 } from "../__chunks__/useLink-
|
|
44
|
-
import { V as VerticalStack } from "../__chunks__/VerticalStack-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
41
|
+
import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "../__chunks__/usePress-Db4pSZfY.mjs";
|
|
42
|
+
import { d as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, $ as $3ef42575df84b30b$export$9d1611c77c2fe928, c as $bdb11010cef70236$export$f680877a34711e37 } from "../__chunks__/mergeProps-DSi85raC.mjs";
|
|
43
|
+
import { $ as $298d61e98472621b$export$dcf14c9974fe2767 } from "../__chunks__/useLink-xdTgcuUM.mjs";
|
|
44
|
+
import { V as VerticalStack } from "../__chunks__/VerticalStack-jXfiEwjb.mjs";
|
|
45
|
+
import { $ as $64fa3d84918910a7$export$29f1550f4b0d4415, b as $64fa3d84918910a7$export$45fda7c47f93fd48, c as $64fa3d84918910a7$export$6d3443f2c48bfc20, a as $64fa3d84918910a7$export$4d86445c2cf5e3, d as $64fa3d84918910a7$export$2881499e37b75b9a, e as $64fa3d84918910a7$export$c62b8e45d58ddad9 } from "../__chunks__/utils-D4ddhsBL.mjs";
|
|
46
|
+
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "../__chunks__/filterDOMProps-EDDcM64A.mjs";
|
|
47
|
+
import { c as $fc909762b330b746$export$61c6a8c84e605fb6, d as $337b884510726a0d$export$c6fdb837b070b4ff, e as $f1ab8c75478c6f73$export$3351871ee4b288b8 } from "../__chunks__/Overlay-DyfvFsGi.mjs";
|
|
48
|
+
import { $ as $f2f8a6077418541e$export$542a6fd13ac93354, a as $86ea4cb521eb2e37$export$2317d149ed6f78c4 } from "../__chunks__/utilities-DASknbaa.mjs";
|
|
49
|
+
import { $ as $628037886ba31236$export$f9d5c8beee7d008d } from "../__chunks__/useOverlayTrigger-DDcXdZOM.mjs";
|
|
50
|
+
import { $ as $40df3f8667284809$export$d55e7ee900f34e93 } from "../__chunks__/useDialog-c-C07qhw.mjs";
|
|
51
|
+
import { A as ArrowBack } from "../__chunks__/ArrowBack-BFS-tCpV.mjs";
|
|
52
|
+
import { S as Search } from "../__chunks__/Search-Cyblmqo5.mjs";
|
|
53
|
+
import { E as ExpandMore400 } from "../__chunks__/ExpandMore400-CH7GNxqk.mjs";
|
|
54
|
+
import { U as UnstyledButton } from "../__chunks__/UnstyledButton-Ctqv-3bt.mjs";
|
|
55
|
+
import { R as RadioGroup, u as useRadioGroupContext } from "../__chunks__/RadioGroup-BGkcZ05k.mjs";
|
|
56
|
+
import { T as TextField } from "../__chunks__/TextField-CTG1CCY2.mjs";
|
|
57
|
+
import { flattenChildren } from "../utilities/react.mjs";
|
|
58
|
+
createContext(null);
|
|
59
|
+
createContext(null);
|
|
60
|
+
createContext(null);
|
|
61
|
+
createContext(null);
|
|
62
|
+
createContext(null);
|
|
63
|
+
const $4e85f108e88277b8$export$d688439359537581 = createContext({});
|
|
64
|
+
const $44f671af83e7d9e0$export$2de4954e8ae13b9f = /* @__PURE__ */ createContext({
|
|
65
|
+
placement: "bottom"
|
|
66
|
+
});
|
|
67
|
+
const $07b14b47974efb58$export$9b9a0cd73afb7ca4 = /* @__PURE__ */ createContext(null);
|
|
68
|
+
function $07b14b47974efb58$var$Popover(props, ref) {
|
|
69
|
+
[props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $07b14b47974efb58$export$9b9a0cd73afb7ca4);
|
|
70
|
+
let contextState = useContext($de32f1b87079253c$export$d2f961adcb0afbe);
|
|
71
|
+
let localState = $fc909762b330b746$export$61c6a8c84e605fb6(props);
|
|
72
|
+
let state = props.isOpen != null || props.defaultOpen != null || !contextState ? localState : contextState;
|
|
73
|
+
let isExiting = $64fa3d84918910a7$export$45fda7c47f93fd48(ref, state.isOpen) || props.isExiting || false;
|
|
74
|
+
let isHidden = $f39a9eba43920ace$export$b5d7cc18bb8d2b59();
|
|
75
|
+
if (isHidden) {
|
|
76
|
+
let children = props.children;
|
|
77
|
+
if (typeof children === "function") children = children({
|
|
78
|
+
trigger: props.trigger || null,
|
|
79
|
+
placement: "bottom",
|
|
80
|
+
isEntering: false,
|
|
81
|
+
isExiting: false,
|
|
82
|
+
defaultChildren: null
|
|
83
|
+
});
|
|
84
|
+
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, children);
|
|
85
|
+
}
|
|
86
|
+
if (state && !state.isOpen && !isExiting) return null;
|
|
87
|
+
return /* @__PURE__ */ React__default.createElement($07b14b47974efb58$var$PopoverInner, __spreadProps(__spreadValues({}, props), {
|
|
88
|
+
triggerRef: props.triggerRef,
|
|
89
|
+
state,
|
|
90
|
+
popoverRef: ref,
|
|
91
|
+
isExiting
|
|
92
|
+
}));
|
|
93
|
+
}
|
|
94
|
+
const $07b14b47974efb58$export$5b6b19405a83ff9d = /* @__PURE__ */ forwardRef($07b14b47974efb58$var$Popover);
|
|
95
|
+
function $07b14b47974efb58$var$PopoverInner(_a) {
|
|
96
|
+
var _b = _a, { state, isExiting, UNSTABLE_portalContainer } = _b, props = __objRest(_b, ["state", "isExiting", "UNSTABLE_portalContainer"]);
|
|
97
|
+
let arrowRef = useRef(null);
|
|
98
|
+
let [arrowWidth, setArrowWidth] = useState(0);
|
|
99
|
+
$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
100
|
+
if (arrowRef.current && state.isOpen) setArrowWidth(arrowRef.current.getBoundingClientRect().width);
|
|
101
|
+
}, [
|
|
102
|
+
state.isOpen,
|
|
103
|
+
arrowRef
|
|
104
|
+
]);
|
|
105
|
+
var _props_offset;
|
|
106
|
+
let { popoverProps, underlayProps, arrowProps, placement } = $f2f8a6077418541e$export$542a6fd13ac93354(__spreadProps(__spreadValues({}, props), {
|
|
107
|
+
offset: (_props_offset = props.offset) !== null && _props_offset !== void 0 ? _props_offset : 8,
|
|
108
|
+
arrowSize: arrowWidth
|
|
109
|
+
}), state);
|
|
110
|
+
let ref = props.popoverRef;
|
|
111
|
+
let isEntering = $64fa3d84918910a7$export$6d3443f2c48bfc20(ref, !!placement) || props.isEntering || false;
|
|
112
|
+
let renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3(__spreadProps(__spreadValues({}, props), {
|
|
113
|
+
defaultClassName: "react-aria-Popover",
|
|
114
|
+
values: {
|
|
115
|
+
trigger: props.trigger || null,
|
|
116
|
+
placement,
|
|
117
|
+
isEntering,
|
|
118
|
+
isExiting
|
|
119
|
+
}
|
|
120
|
+
}));
|
|
121
|
+
let style = __spreadValues(__spreadValues({}, popoverProps.style), renderProps.style);
|
|
122
|
+
return /* @__PURE__ */ React__default.createElement($337b884510726a0d$export$c6fdb837b070b4ff, __spreadProps(__spreadValues({}, props), {
|
|
123
|
+
isExiting,
|
|
124
|
+
portalContainer: UNSTABLE_portalContainer
|
|
125
|
+
}), !props.isNonModal && state.isOpen && /* @__PURE__ */ React__default.createElement("div", __spreadProps(__spreadValues({
|
|
126
|
+
"data-testid": "underlay"
|
|
127
|
+
}, underlayProps), {
|
|
128
|
+
style: {
|
|
129
|
+
position: "fixed",
|
|
130
|
+
inset: 0
|
|
131
|
+
}
|
|
132
|
+
})), /* @__PURE__ */ React__default.createElement("div", __spreadProps(__spreadValues(__spreadValues({}, $3ef42575df84b30b$export$9d1611c77c2fe928($65484d02dcb7eb3e$export$457c3d6518dd4c6f(props), popoverProps)), renderProps), {
|
|
133
|
+
ref,
|
|
134
|
+
slot: props.slot || void 0,
|
|
135
|
+
style,
|
|
136
|
+
"data-trigger": props.trigger,
|
|
137
|
+
"data-placement": placement,
|
|
138
|
+
"data-entering": isEntering || void 0,
|
|
139
|
+
"data-exiting": isExiting || void 0
|
|
140
|
+
}), !props.isNonModal && /* @__PURE__ */ React__default.createElement($86ea4cb521eb2e37$export$2317d149ed6f78c4, {
|
|
141
|
+
onDismiss: state.close
|
|
142
|
+
}), /* @__PURE__ */ React__default.createElement($44f671af83e7d9e0$export$2de4954e8ae13b9f.Provider, {
|
|
143
|
+
value: __spreadProps(__spreadValues({}, arrowProps), {
|
|
144
|
+
placement,
|
|
145
|
+
ref: arrowRef
|
|
146
|
+
})
|
|
147
|
+
}, renderProps.children), /* @__PURE__ */ React__default.createElement($86ea4cb521eb2e37$export$2317d149ed6f78c4, {
|
|
148
|
+
onDismiss: state.close
|
|
149
|
+
})));
|
|
150
|
+
}
|
|
151
|
+
const $3674c52c6b3c5bce$export$795aec4671cbae19 = /* @__PURE__ */ createContext(null);
|
|
152
|
+
const $de32f1b87079253c$export$8b93a07348a7730c = /* @__PURE__ */ createContext(null);
|
|
153
|
+
const $de32f1b87079253c$export$d2f961adcb0afbe = /* @__PURE__ */ createContext(null);
|
|
154
|
+
function $de32f1b87079253c$export$2e1e1122cf0cba88(props) {
|
|
155
|
+
let state = $a28c903ee9ad8dc5$export$79fefeb1c2091ac3(props);
|
|
156
|
+
let buttonRef = useRef(null);
|
|
157
|
+
let { triggerProps, overlayProps } = $628037886ba31236$export$f9d5c8beee7d008d({
|
|
158
|
+
type: "dialog"
|
|
159
|
+
}, state, buttonRef);
|
|
160
|
+
triggerProps.id = $bdb11010cef70236$export$f680877a34711e37();
|
|
161
|
+
overlayProps["aria-labelledby"] = triggerProps.id;
|
|
162
|
+
return /* @__PURE__ */ React__default.createElement($64fa3d84918910a7$export$2881499e37b75b9a, {
|
|
163
|
+
values: [
|
|
164
|
+
[
|
|
165
|
+
$de32f1b87079253c$export$d2f961adcb0afbe,
|
|
166
|
+
state
|
|
167
|
+
],
|
|
168
|
+
[
|
|
169
|
+
$3674c52c6b3c5bce$export$795aec4671cbae19,
|
|
170
|
+
state
|
|
171
|
+
],
|
|
172
|
+
[
|
|
173
|
+
$de32f1b87079253c$export$8b93a07348a7730c,
|
|
174
|
+
overlayProps
|
|
175
|
+
],
|
|
176
|
+
[
|
|
177
|
+
$07b14b47974efb58$export$9b9a0cd73afb7ca4,
|
|
178
|
+
{
|
|
179
|
+
trigger: "DialogTrigger",
|
|
180
|
+
triggerRef: buttonRef
|
|
181
|
+
}
|
|
182
|
+
]
|
|
183
|
+
]
|
|
184
|
+
}, /* @__PURE__ */ React__default.createElement($f1ab8c75478c6f73$export$3351871ee4b288b8, __spreadProps(__spreadValues({}, triggerProps), {
|
|
185
|
+
ref: buttonRef,
|
|
186
|
+
isPressed: state.isOpen
|
|
187
|
+
}), props.children));
|
|
188
|
+
}
|
|
189
|
+
function $de32f1b87079253c$var$Dialog(props, ref) {
|
|
190
|
+
let originalAriaLabelledby = props["aria-labelledby"];
|
|
191
|
+
[props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $de32f1b87079253c$export$8b93a07348a7730c);
|
|
192
|
+
let { dialogProps, titleProps } = $40df3f8667284809$export$d55e7ee900f34e93(__spreadProps(__spreadValues({}, props), {
|
|
193
|
+
// Only pass aria-labelledby from props, not context.
|
|
194
|
+
// Context is used as a fallback below.
|
|
195
|
+
"aria-labelledby": originalAriaLabelledby
|
|
196
|
+
}), ref);
|
|
197
|
+
let state = useContext($de32f1b87079253c$export$d2f961adcb0afbe);
|
|
198
|
+
if (!dialogProps["aria-label"] && !dialogProps["aria-labelledby"]) {
|
|
199
|
+
if (props["aria-labelledby"]) dialogProps["aria-labelledby"] = props["aria-labelledby"];
|
|
200
|
+
else console.warn('If a Dialog does not contain a <Heading slot="title">, it must have an aria-label or aria-labelledby attribute for accessibility.');
|
|
201
|
+
}
|
|
202
|
+
let renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
|
|
203
|
+
defaultClassName: "react-aria-Dialog",
|
|
204
|
+
className: props.className,
|
|
205
|
+
style: props.style,
|
|
206
|
+
children: props.children,
|
|
207
|
+
values: {
|
|
208
|
+
close: (state === null || state === void 0 ? void 0 : state.close) || (() => {
|
|
209
|
+
})
|
|
210
|
+
}
|
|
211
|
+
});
|
|
212
|
+
return /* @__PURE__ */ React__default.createElement("section", __spreadProps(__spreadValues(__spreadValues(__spreadValues({}, $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props)), dialogProps), renderProps), {
|
|
213
|
+
ref,
|
|
214
|
+
slot: props.slot || void 0
|
|
215
|
+
}), /* @__PURE__ */ React__default.createElement($64fa3d84918910a7$export$2881499e37b75b9a, {
|
|
216
|
+
values: [
|
|
217
|
+
[
|
|
218
|
+
$4e85f108e88277b8$export$d688439359537581,
|
|
219
|
+
{
|
|
220
|
+
slots: {
|
|
221
|
+
[$64fa3d84918910a7$export$c62b8e45d58ddad9]: {},
|
|
222
|
+
title: __spreadProps(__spreadValues({}, titleProps), {
|
|
223
|
+
level: 2
|
|
224
|
+
})
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
],
|
|
228
|
+
[
|
|
229
|
+
$d2b4bc8c273e7be6$export$24d547caef80ccd1,
|
|
230
|
+
{
|
|
231
|
+
slots: {
|
|
232
|
+
[$64fa3d84918910a7$export$c62b8e45d58ddad9]: {},
|
|
233
|
+
close: {
|
|
234
|
+
onPress: () => state === null || state === void 0 ? void 0 : state.close()
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
]
|
|
239
|
+
]
|
|
240
|
+
}, renderProps.children));
|
|
241
|
+
}
|
|
242
|
+
const $de32f1b87079253c$export$3ddf2d174ce01153 = /* @__PURE__ */ forwardRef($de32f1b87079253c$var$Dialog);
|
|
243
|
+
const button = "_button_15pb8_5";
|
|
244
|
+
const focused$1 = "_focused_15pb8_26";
|
|
245
|
+
const hovered$1 = "_hovered_15pb8_40";
|
|
246
|
+
const selected$1 = "_selected_15pb8_45";
|
|
247
|
+
const open = "_open_15pb8_46";
|
|
248
|
+
const badgeContainer = "_badgeContainer_15pb8_51";
|
|
249
|
+
const badge = "_badge_15pb8_51";
|
|
250
|
+
const styles$4 = {
|
|
53
251
|
button,
|
|
54
252
|
focused: focused$1,
|
|
55
253
|
hovered: hovered$1,
|
|
@@ -74,7 +272,7 @@ function ForgeLayoutMenuAction(props) {
|
|
|
74
272
|
}, []);
|
|
75
273
|
const { focusProps, isFocusVisible } = $f7dceffc5ad7768b$export$4e328f61c538687f({});
|
|
76
274
|
const { hoverProps, isHovered } = $6179b936705e76d3$export$ae780daf29e6d456({});
|
|
77
|
-
const className = classNames(styles$
|
|
275
|
+
const className = classNames(styles$4.button, isFocusVisible && styles$4.focused, isHovered && styles$4.hovered, isOpen && styles$4.open);
|
|
78
276
|
return React__default.createElement(Menu, {
|
|
79
277
|
isOpen,
|
|
80
278
|
onOpenChange: handleOpenChange
|
|
@@ -85,7 +283,7 @@ function ForgeLayoutMenuAction(props) {
|
|
|
85
283
|
}, accessibilityLabel), React__default.createElement(Icon, {
|
|
86
284
|
symbol: iconSymbol
|
|
87
285
|
}), renderBadge && React__default.createElement("div", {
|
|
88
|
-
className: styles$
|
|
286
|
+
className: styles$4.badgeContainer
|
|
89
287
|
}, renderBadge()))), children);
|
|
90
288
|
}
|
|
91
289
|
function ForgeLayoutLinkAction(props) {
|
|
@@ -94,7 +292,7 @@ function ForgeLayoutLinkAction(props) {
|
|
|
94
292
|
const { linkProps } = $298d61e98472621b$export$dcf14c9974fe2767(props, ref);
|
|
95
293
|
const { focusProps, isFocusVisible } = $f7dceffc5ad7768b$export$4e328f61c538687f(props);
|
|
96
294
|
const { hoverProps, isHovered } = $6179b936705e76d3$export$ae780daf29e6d456(props);
|
|
97
|
-
const className = classNames(styles$
|
|
295
|
+
const className = classNames(styles$4.button, isFocusVisible && styles$4.focused, isHovered && styles$4.hovered, isSelected && styles$4.selected);
|
|
98
296
|
return React__default.createElement("a", __spreadProps(__spreadValues({
|
|
99
297
|
ref,
|
|
100
298
|
className
|
|
@@ -105,13 +303,13 @@ function ForgeLayoutLinkAction(props) {
|
|
|
105
303
|
}, accessibilityLabel), React__default.createElement(Icon, {
|
|
106
304
|
symbol: iconSymbol
|
|
107
305
|
}), renderBadge && React__default.createElement("div", {
|
|
108
|
-
className: styles$
|
|
306
|
+
className: styles$4.badgeContainer
|
|
109
307
|
}, renderBadge()));
|
|
110
308
|
}
|
|
111
309
|
function ForgeLayoutButtonAction(props) {
|
|
112
310
|
const _a = props, { accessibilityLabel = "Actions", iconSymbol, renderBadge, isSelected } = _a, buttonProps = __objRest(_a, ["accessibilityLabel", "iconSymbol", "renderBadge", "isSelected"]);
|
|
113
311
|
const ref = useRef(null);
|
|
114
|
-
const className = classNames(styles$
|
|
312
|
+
const className = classNames(styles$4.button, isSelected && styles$4.selected);
|
|
115
313
|
return React__default.createElement($d2b4bc8c273e7be6$export$353f5b6fc5456de1, __spreadValues({
|
|
116
314
|
ref,
|
|
117
315
|
className,
|
|
@@ -121,13 +319,13 @@ function ForgeLayoutButtonAction(props) {
|
|
|
121
319
|
}, accessibilityLabel), React__default.createElement(Icon, {
|
|
122
320
|
symbol: iconSymbol
|
|
123
321
|
}), renderBadge && React__default.createElement("div", {
|
|
124
|
-
className: styles$
|
|
322
|
+
className: styles$4.badgeContainer
|
|
125
323
|
}, renderBadge()));
|
|
126
324
|
}
|
|
127
325
|
function ForgeLayoutActionBadge(props) {
|
|
128
326
|
const { children } = props;
|
|
129
327
|
return React__default.createElement("div", {
|
|
130
|
-
className: styles$
|
|
328
|
+
className: styles$4.badge
|
|
131
329
|
}, children);
|
|
132
330
|
}
|
|
133
331
|
const PressableButton = forwardRef((props, ref) => {
|
|
@@ -138,12 +336,12 @@ const PressableButton = forwardRef((props, ref) => {
|
|
|
138
336
|
}));
|
|
139
337
|
});
|
|
140
338
|
PressableButton.displayName = "PressableButton";
|
|
141
|
-
const nav = "
|
|
142
|
-
const link = "
|
|
143
|
-
const focused = "
|
|
144
|
-
const hovered = "
|
|
145
|
-
const selected = "
|
|
146
|
-
const styles$
|
|
339
|
+
const nav = "_nav_kupyp_5";
|
|
340
|
+
const link = "_link_kupyp_18";
|
|
341
|
+
const focused = "_focused_kupyp_27";
|
|
342
|
+
const hovered = "_hovered_kupyp_39";
|
|
343
|
+
const selected = "_selected_kupyp_43";
|
|
344
|
+
const styles$3 = {
|
|
147
345
|
nav,
|
|
148
346
|
link,
|
|
149
347
|
focused,
|
|
@@ -172,7 +370,7 @@ function ForgeLayoutNav(props) {
|
|
|
172
370
|
return React__default.createElement(ForgeLayoutNavContext.Provider, {
|
|
173
371
|
value: context
|
|
174
372
|
}, React__default.createElement("div", {
|
|
175
|
-
className: styles$
|
|
373
|
+
className: styles$3.nav
|
|
176
374
|
}, React__default.createElement(VerticalStack, {
|
|
177
375
|
as: "nav",
|
|
178
376
|
"aria-label": title,
|
|
@@ -198,7 +396,7 @@ function ForgeLayoutNavLink(props) {
|
|
|
198
396
|
const { focusProps, isFocusVisible } = $f7dceffc5ad7768b$export$4e328f61c538687f(props);
|
|
199
397
|
const { hoverProps, isHovered } = $6179b936705e76d3$export$ae780daf29e6d456(props);
|
|
200
398
|
const isSelected = href === selectedHref;
|
|
201
|
-
const className = classNames(styles$
|
|
399
|
+
const className = classNames(styles$3.link, isFocusVisible && styles$3.focused, isHovered && styles$3.hovered, isSelected && styles$3.selected);
|
|
202
400
|
return React__default.createElement("a", __spreadProps(__spreadValues({
|
|
203
401
|
ref,
|
|
204
402
|
className
|
|
@@ -231,25 +429,203 @@ function Logo() {
|
|
|
231
429
|
fill: "#0B2780"
|
|
232
430
|
}));
|
|
233
431
|
}
|
|
234
|
-
const
|
|
235
|
-
const
|
|
236
|
-
const
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
const
|
|
241
|
-
const
|
|
242
|
-
const
|
|
432
|
+
const header = "_header_ky32d_5";
|
|
433
|
+
const headerBg = "_headerBg_ky32d_19";
|
|
434
|
+
const styles$2 = {
|
|
435
|
+
header,
|
|
436
|
+
headerBg
|
|
437
|
+
};
|
|
438
|
+
const ForgeLayoutHeaderContext = createContext(null);
|
|
439
|
+
const useForgeLayoutHeader = () => {
|
|
440
|
+
const context = useContext(ForgeLayoutHeaderContext);
|
|
441
|
+
if (!context) {
|
|
442
|
+
throw new Error("useForgeLayoutHeader must be used within a ForgeLayoutHeader");
|
|
443
|
+
}
|
|
444
|
+
return context;
|
|
445
|
+
};
|
|
446
|
+
function ForgeLayoutHeader(props) {
|
|
447
|
+
const { areControlsGrouped = true, children } = props;
|
|
448
|
+
return React__default.createElement(ForgeLayoutHeaderContext.Provider, {
|
|
449
|
+
value: {
|
|
450
|
+
areControlsGrouped
|
|
451
|
+
}
|
|
452
|
+
}, React__default.createElement("header", {
|
|
453
|
+
className: styles$2.header
|
|
454
|
+
}, React__default.createElement("div", {
|
|
455
|
+
className: styles$2.headerBg
|
|
456
|
+
}), children));
|
|
457
|
+
}
|
|
458
|
+
const controls = "_controls_5yy4h_5";
|
|
459
|
+
const breadcrumbNavigationContainer = "_breadcrumbNavigationContainer_5yy4h_12";
|
|
460
|
+
const backButtonContainer = "_backButtonContainer_5yy4h_19";
|
|
461
|
+
const backButton = "_backButton_5yy4h_19";
|
|
462
|
+
const breadcrumbsContainer = "_breadcrumbsContainer_5yy4h_34";
|
|
463
|
+
const trigger = "_trigger_5yy4h_38";
|
|
464
|
+
const triggerPopoverOpen = "_triggerPopoverOpen_5yy4h_60";
|
|
465
|
+
const popover = "_popover_5yy4h_64";
|
|
466
|
+
const searchContainer = "_searchContainer_5yy4h_72";
|
|
467
|
+
const styles$1 = {
|
|
468
|
+
controls,
|
|
469
|
+
breadcrumbNavigationContainer,
|
|
470
|
+
backButtonContainer,
|
|
471
|
+
backButton,
|
|
472
|
+
breadcrumbsContainer,
|
|
473
|
+
trigger,
|
|
474
|
+
triggerPopoverOpen,
|
|
475
|
+
popover,
|
|
476
|
+
searchContainer
|
|
477
|
+
};
|
|
478
|
+
const TEST_MODE = "Test";
|
|
479
|
+
const PRODUCTION_MODE = "Production";
|
|
480
|
+
const POPOVER_CROSS_OFFSET = 116;
|
|
481
|
+
const POPOVER_OFFSET = 2;
|
|
482
|
+
function ForgeLayoutControls(props) {
|
|
483
|
+
const { navState } = useForgeLayout();
|
|
484
|
+
const { areControlsGrouped } = useForgeLayoutHeader();
|
|
485
|
+
const { children, visibleWhenNavStateIs = "expanded" } = props;
|
|
486
|
+
if (navState !== visibleWhenNavStateIs) {
|
|
487
|
+
return null;
|
|
488
|
+
}
|
|
489
|
+
return React__default.createElement(React__default.Fragment, null, areControlsGrouped ? React__default.createElement("div", {
|
|
490
|
+
className: styles$1.controls
|
|
491
|
+
}, children) : React__default.createElement(React__default.Fragment, null, children));
|
|
492
|
+
}
|
|
493
|
+
function ForgeLayoutBreadcrumbsNavigation(props) {
|
|
494
|
+
const { children } = props;
|
|
495
|
+
const { backButton: backButton2, breadcrumbs } = useMemo(() => {
|
|
496
|
+
const breadcrumbNavigationChildren = flattenChildren(children);
|
|
497
|
+
const backButton22 = breadcrumbNavigationChildren.length > 0 ? breadcrumbNavigationChildren[0] : null;
|
|
498
|
+
const breadcrumbs2 = breadcrumbNavigationChildren.length > 1 ? breadcrumbNavigationChildren[1] : null;
|
|
499
|
+
if (!backButton22 || !breadcrumbs2) {
|
|
500
|
+
throw new Error("ForgeLayout.BreadcrumbNavigation must contain ForgeLayout.BackButton and ForgeLayout.Breadcrumbs");
|
|
501
|
+
}
|
|
502
|
+
return {
|
|
503
|
+
backButton: backButton22,
|
|
504
|
+
breadcrumbs: breadcrumbs2
|
|
505
|
+
};
|
|
506
|
+
}, [children]);
|
|
507
|
+
return React__default.createElement("div", {
|
|
508
|
+
className: styles$1.breadcrumbNavigationContainer
|
|
509
|
+
}, React__default.createElement("div", {
|
|
510
|
+
className: styles$1.backButtonContainer
|
|
511
|
+
}, backButton2), React__default.createElement("div", {
|
|
512
|
+
className: styles$1.breadcrumbsContainer
|
|
513
|
+
}, breadcrumbs));
|
|
514
|
+
}
|
|
515
|
+
function ForgeLayoutBackButton(props) {
|
|
516
|
+
const _a = props, { children } = _a, restButtonProps = __objRest(_a, ["children"]);
|
|
517
|
+
return React__default.createElement(UnstyledButton, __spreadProps(__spreadValues({}, restButtonProps), {
|
|
518
|
+
className: styles$1.backButton
|
|
519
|
+
}), React__default.createElement(Icon, {
|
|
520
|
+
symbol: ArrowBack,
|
|
521
|
+
size: "sm"
|
|
522
|
+
}), React__default.createElement(Text, {
|
|
523
|
+
variant: "subtitle1"
|
|
524
|
+
}, children));
|
|
525
|
+
}
|
|
526
|
+
function ForgeLayoutBreadcrumbs(props) {
|
|
527
|
+
const { children } = props;
|
|
528
|
+
const breadcrumbs = useMemo(() => flattenChildren(children), [children]);
|
|
529
|
+
return React__default.createElement(HorizontalStack, {
|
|
530
|
+
blockAlign: "center",
|
|
531
|
+
gap: "0.5"
|
|
532
|
+
}, breadcrumbs.map((breadcrumb, idx) => {
|
|
533
|
+
if (idx === 0) {
|
|
534
|
+
return React__default.createElement(Fragment, {
|
|
535
|
+
key: idx
|
|
536
|
+
}, breadcrumb);
|
|
537
|
+
} else {
|
|
538
|
+
return React__default.createElement(Fragment, {
|
|
539
|
+
key: idx
|
|
540
|
+
}, React__default.createElement(ForgeLayoutBreadcrumb, {
|
|
541
|
+
key: idx
|
|
542
|
+
}, ">"), breadcrumb);
|
|
543
|
+
}
|
|
544
|
+
}));
|
|
545
|
+
}
|
|
546
|
+
function ForgeLayoutBreadcrumb(props) {
|
|
547
|
+
const { children } = props;
|
|
548
|
+
return React__default.createElement(Text, {
|
|
549
|
+
variant: "body1",
|
|
550
|
+
color: "neutral.700"
|
|
551
|
+
}, children);
|
|
552
|
+
}
|
|
553
|
+
function ForgeLayoutModeSwitcher(props) {
|
|
554
|
+
const { onModeChange } = props;
|
|
555
|
+
const { mode } = useForgeLayout();
|
|
556
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
557
|
+
return React__default.createElement($de32f1b87079253c$export$2e1e1122cf0cba88, null, React__default.createElement($d2b4bc8c273e7be6$export$353f5b6fc5456de1, {
|
|
558
|
+
className: classNames(styles$1.trigger, isOpen && styles$1.triggerPopoverOpen),
|
|
559
|
+
onPress: () => setIsOpen(true)
|
|
560
|
+
}, React__default.createElement(Text, {
|
|
561
|
+
variant: "subtitle1",
|
|
562
|
+
color: mode === "test" ? "warning.600" : "positive.600",
|
|
563
|
+
truncate: true
|
|
564
|
+
}, mode === "test" ? TEST_MODE : PRODUCTION_MODE), React__default.createElement(Icon, {
|
|
565
|
+
symbol: ExpandMore400,
|
|
566
|
+
size: "md",
|
|
567
|
+
color: "neutral.500"
|
|
568
|
+
})), React__default.createElement($07b14b47974efb58$export$5b6b19405a83ff9d, {
|
|
569
|
+
className: styles$1.popover,
|
|
570
|
+
offset: POPOVER_OFFSET,
|
|
571
|
+
crossOffset: POPOVER_CROSS_OFFSET,
|
|
572
|
+
isOpen,
|
|
573
|
+
onOpenChange: setIsOpen
|
|
574
|
+
}, React__default.createElement($de32f1b87079253c$export$3ddf2d174ce01153, null, React__default.createElement(VerticalStack, {
|
|
575
|
+
gap: "1"
|
|
576
|
+
}, React__default.createElement(Text, {
|
|
577
|
+
variant: "subtitle1",
|
|
578
|
+
color: "neutral.800"
|
|
579
|
+
}, "Instance Switcher"), React__default.createElement(RadioGroup, {
|
|
580
|
+
"aria-label": "Select a mode",
|
|
581
|
+
onChange: onModeChange,
|
|
582
|
+
value: mode
|
|
583
|
+
}, React__default.createElement(ForgeLayoutModeSwitcherRadioGroupItem, {
|
|
584
|
+
value: "test"
|
|
585
|
+
}), React__default.createElement(ForgeLayoutModeSwitcherRadioGroupItem, {
|
|
586
|
+
value: "production"
|
|
587
|
+
}))))));
|
|
588
|
+
}
|
|
589
|
+
function ForgeLayoutModeSwitcherRadioGroupItem(props) {
|
|
590
|
+
const _a = props, { value } = _a, restProps = __objRest(_a, ["value"]);
|
|
591
|
+
const state = useRadioGroupContext();
|
|
592
|
+
const isSelected = value === state.selectedValue;
|
|
593
|
+
return React__default.createElement(RadioGroup.Item, __spreadValues({
|
|
594
|
+
value
|
|
595
|
+
}, restProps), React__default.createElement(VerticalStack, null, React__default.createElement(Text, {
|
|
596
|
+
variant: "subtitle2",
|
|
597
|
+
color: isSelected ? "primary.800" : "primary.700"
|
|
598
|
+
}, value === "test" ? TEST_MODE : PRODUCTION_MODE), React__default.createElement(Text, {
|
|
599
|
+
variant: "overline"
|
|
600
|
+
}, "View data using the", " ", React__default.createElement(Text, {
|
|
601
|
+
color: value === "test" ? "warning.600" : "positive.600"
|
|
602
|
+
}, value === "test" ? TEST_MODE.toUpperCase() : PRODUCTION_MODE.toUpperCase(), " ", "API", " "), "keys")));
|
|
603
|
+
}
|
|
604
|
+
function ForgeLayoutSearch(props) {
|
|
605
|
+
const _a = props, { "aria-label": ariaLabel = "Search for content" } = _a, textFieldProps = __objRest(_a, ["aria-label"]);
|
|
606
|
+
return React__default.createElement("div", {
|
|
607
|
+
className: styles$1.searchContainer
|
|
608
|
+
}, React__default.createElement(TextField, __spreadValues({
|
|
609
|
+
size: "sm",
|
|
610
|
+
type: "search",
|
|
611
|
+
"aria-label": ariaLabel,
|
|
612
|
+
placeholder: "/ search",
|
|
613
|
+
iconAtStart: Search
|
|
614
|
+
}, textFieldProps)));
|
|
615
|
+
}
|
|
616
|
+
const ForgeLayout$1 = "_ForgeLayout_si9oh_5";
|
|
617
|
+
const modeTest = "_modeTest_si9oh_22";
|
|
618
|
+
const bg = "_bg_si9oh_28";
|
|
619
|
+
const backgroundDecoration01 = "_backgroundDecoration01_si9oh_37";
|
|
620
|
+
const body = "_body_si9oh_43";
|
|
621
|
+
const content = "_content_si9oh_49";
|
|
243
622
|
const styles = {
|
|
244
623
|
ForgeLayout: ForgeLayout$1,
|
|
245
624
|
modeTest,
|
|
246
625
|
bg,
|
|
247
626
|
backgroundDecoration01,
|
|
248
627
|
body,
|
|
249
|
-
|
|
250
|
-
headerBg,
|
|
251
|
-
content,
|
|
252
|
-
controls
|
|
628
|
+
content
|
|
253
629
|
};
|
|
254
630
|
const ForgeLayoutContext = React__default.createContext(null);
|
|
255
631
|
const useForgeLayout = () => {
|
|
@@ -277,24 +653,6 @@ function ForgeLayout(props) {
|
|
|
277
653
|
className
|
|
278
654
|
}, children));
|
|
279
655
|
}
|
|
280
|
-
function ForgeLayoutHeader(props) {
|
|
281
|
-
const { children } = props;
|
|
282
|
-
return React__default.createElement("header", {
|
|
283
|
-
className: styles.header
|
|
284
|
-
}, React__default.createElement("div", {
|
|
285
|
-
className: styles.headerBg
|
|
286
|
-
}), children);
|
|
287
|
-
}
|
|
288
|
-
function ForgeLayoutControls(props) {
|
|
289
|
-
const { navState } = useForgeLayout();
|
|
290
|
-
const { children, visibleWhenNavStateIs = "expanded" } = props;
|
|
291
|
-
if (navState !== visibleWhenNavStateIs) {
|
|
292
|
-
return null;
|
|
293
|
-
}
|
|
294
|
-
return React__default.createElement("div", {
|
|
295
|
-
className: styles.controls
|
|
296
|
-
}, children);
|
|
297
|
-
}
|
|
298
656
|
function ForgeLayoutBody(props) {
|
|
299
657
|
const { children } = props;
|
|
300
658
|
return React__default.createElement("div", {
|
|
@@ -313,6 +671,12 @@ ForgeLayout.NavLink = ForgeLayoutNavLink;
|
|
|
313
671
|
ForgeLayout.Body = ForgeLayoutBody;
|
|
314
672
|
ForgeLayout.Header = ForgeLayoutHeader;
|
|
315
673
|
ForgeLayout.Controls = ForgeLayoutControls;
|
|
674
|
+
ForgeLayout.BreadcrumbsNavigation = ForgeLayoutBreadcrumbsNavigation;
|
|
675
|
+
ForgeLayout.BackButton = ForgeLayoutBackButton;
|
|
676
|
+
ForgeLayout.Breadcrumbs = ForgeLayoutBreadcrumbs;
|
|
677
|
+
ForgeLayout.Breadcrumb = ForgeLayoutBreadcrumb;
|
|
678
|
+
ForgeLayout.ModeSwitcher = ForgeLayoutModeSwitcher;
|
|
679
|
+
ForgeLayout.Search = ForgeLayoutSearch;
|
|
316
680
|
ForgeLayout.Actions = ForgeLayoutActions;
|
|
317
681
|
ForgeLayout.ActionBadge = ForgeLayoutActionBadge;
|
|
318
682
|
ForgeLayout.MenuAction = ForgeLayoutMenuAction;
|
package/FormLayout/index.js
CHANGED
|
@@ -30,8 +30,8 @@ var __objRest = (source, exclude) => {
|
|
|
30
30
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
31
31
|
const React = require("react");
|
|
32
32
|
const utilities_css = require("../utilities/css.js");
|
|
33
|
-
const HorizontalGrid = require("../__chunks__/HorizontalGrid-
|
|
34
|
-
const Text = require("../__chunks__/Text-
|
|
33
|
+
const HorizontalGrid = require("../__chunks__/HorizontalGrid-B5UdZtSD.js");
|
|
34
|
+
const Text = require("../__chunks__/Text-D2pJpElk.js");
|
|
35
35
|
const utilities_react = require("../utilities/react.js");
|
|
36
36
|
function Grid(props) {
|
|
37
37
|
const { children, columns } = props;
|
|
@@ -40,7 +40,7 @@ function Grid(props) {
|
|
|
40
40
|
gap: "2"
|
|
41
41
|
}, children);
|
|
42
42
|
}
|
|
43
|
-
const Header$1 = "
|
|
43
|
+
const Header$1 = "_Header_1e4tv_5";
|
|
44
44
|
const styles$2 = {
|
|
45
45
|
Header: Header$1
|
|
46
46
|
};
|
|
@@ -58,7 +58,7 @@ function HelperText(props) {
|
|
|
58
58
|
}, children);
|
|
59
59
|
}
|
|
60
60
|
const WithinSectionContext = React.createContext(false);
|
|
61
|
-
const Section$1 = "
|
|
61
|
+
const Section$1 = "_Section_ondio_5";
|
|
62
62
|
const styles$1 = {
|
|
63
63
|
Section: Section$1
|
|
64
64
|
};
|
|
@@ -107,7 +107,7 @@ function Title(props) {
|
|
|
107
107
|
}, restProps), textProps), children);
|
|
108
108
|
}
|
|
109
109
|
Title.displayName = "FormLayout.Title";
|
|
110
|
-
const FormLayout$1 = "
|
|
110
|
+
const FormLayout$1 = "_FormLayout_1g6qy_5";
|
|
111
111
|
const styles = {
|
|
112
112
|
FormLayout: FormLayout$1
|
|
113
113
|
};
|
package/FormLayout/index.mjs
CHANGED
|
@@ -28,8 +28,8 @@ var __objRest = (source, exclude) => {
|
|
|
28
28
|
};
|
|
29
29
|
import React__default, { createContext, useMemo, isValidElement, useContext } from "react";
|
|
30
30
|
import { classNames } from "../utilities/css.mjs";
|
|
31
|
-
import { H as HorizontalGrid } from "../__chunks__/HorizontalGrid-
|
|
32
|
-
import { T as Text } from "../__chunks__/Text-
|
|
31
|
+
import { H as HorizontalGrid } from "../__chunks__/HorizontalGrid-CQJNpH_g.mjs";
|
|
32
|
+
import { T as Text } from "../__chunks__/Text-D_RgAqQT.mjs";
|
|
33
33
|
import { deepFind } from "../utilities/react.mjs";
|
|
34
34
|
function Grid(props) {
|
|
35
35
|
const { children, columns } = props;
|
|
@@ -38,7 +38,7 @@ function Grid(props) {
|
|
|
38
38
|
gap: "2"
|
|
39
39
|
}, children);
|
|
40
40
|
}
|
|
41
|
-
const Header$1 = "
|
|
41
|
+
const Header$1 = "_Header_1e4tv_5";
|
|
42
42
|
const styles$2 = {
|
|
43
43
|
Header: Header$1
|
|
44
44
|
};
|
|
@@ -56,7 +56,7 @@ function HelperText(props) {
|
|
|
56
56
|
}, children);
|
|
57
57
|
}
|
|
58
58
|
const WithinSectionContext = createContext(false);
|
|
59
|
-
const Section$1 = "
|
|
59
|
+
const Section$1 = "_Section_ondio_5";
|
|
60
60
|
const styles$1 = {
|
|
61
61
|
Section: Section$1
|
|
62
62
|
};
|
|
@@ -105,7 +105,7 @@ function Title(props) {
|
|
|
105
105
|
}, restProps), textProps), children);
|
|
106
106
|
}
|
|
107
107
|
Title.displayName = "FormLayout.Title";
|
|
108
|
-
const FormLayout$1 = "
|
|
108
|
+
const FormLayout$1 = "_FormLayout_1g6qy_5";
|
|
109
109
|
const styles = {
|
|
110
110
|
FormLayout: FormLayout$1
|
|
111
111
|
};
|
package/HorizontalGrid/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const HorizontalGrid = require("../__chunks__/HorizontalGrid-
|
|
3
|
+
const HorizontalGrid = require("../__chunks__/HorizontalGrid-B5UdZtSD.js");
|
|
4
4
|
exports.HorizontalGrid = HorizontalGrid.HorizontalGrid;
|