@easypost/easy-ui 1.0.0-alpha.111 → 1.0.0-alpha.113
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/AlertBadge/AlertBadge.d.ts +1 -1
- package/AlertBadge/AlertBadge.d.ts.map +1 -1
- package/AlertBadge/index.js +20 -16
- package/AlertBadge/index.mjs +20 -16
- package/Badge/index.js +29 -19
- package/Badge/index.mjs +29 -19
- package/Banner/index.js +19 -12
- package/Banner/index.mjs +19 -12
- package/Button/index.js +1 -1
- package/Button/index.mjs +1 -1
- package/CHANGELOG.md +13 -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/CheckableCard/index.js +33 -24
- package/CheckableCard/index.mjs +33 -24
- package/Checkbox/index.js +1 -1
- package/Checkbox/index.mjs +1 -1
- package/CodeBlock/CodeBlock.d.ts.map +1 -1
- package/CodeBlock/context.d.ts +2 -1
- package/CodeBlock/context.d.ts.map +1 -1
- package/CodeBlock/index.js +81 -59
- package/CodeBlock/index.mjs +81 -59
- package/CodeSnippet/index.js +1 -1
- package/CodeSnippet/index.mjs +1 -1
- package/ColorPicker/index.js +71 -54
- package/ColorPicker/index.mjs +71 -54
- package/CustomerPortalLayout/index.js +101 -72
- package/CustomerPortalLayout/index.mjs +101 -72
- package/DataGrid/index.js +229 -173
- package/DataGrid/index.mjs +229 -173
- package/DatePicker/index.js +10 -8
- package/DatePicker/index.mjs +10 -8
- package/DateRangePicker/index.js +10 -8
- package/DateRangePicker/index.mjs +10 -8
- package/Drawer/context.d.ts +2 -2
- package/Drawer/context.d.ts.map +1 -1
- package/Drawer/index.js +99 -78
- package/Drawer/index.mjs +99 -78
- package/Drawer/useIntersectionDetection.d.ts +1 -1
- package/Drawer/useIntersectionDetection.d.ts.map +1 -1
- package/DropdownButton/index.js +15 -7
- package/DropdownButton/index.mjs +16 -8
- package/EmptyStateCard/index.js +53 -33
- package/EmptyStateCard/index.mjs +53 -33
- package/FocusedProductLayout/index.js +104 -76
- package/FocusedProductLayout/index.mjs +104 -76
- package/ForgeLayout/index.js +283 -217
- package/ForgeLayout/index.mjs +283 -217
- package/FormLayout/index.js +38 -24
- package/FormLayout/index.mjs +38 -24
- 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 +16 -9
- package/IconButton/index.mjs +17 -10
- 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/MenuTrigger.d.ts +1 -1
- package/Menu/MenuTrigger.d.ts.map +1 -1
- package/Menu/index.js +1 -1
- package/Menu/index.mjs +1 -1
- package/Modal/context.d.ts +3 -3
- package/Modal/context.d.ts.map +1 -1
- package/Modal/index.js +124 -93
- package/Modal/index.mjs +124 -93
- package/Modal/useIntersectionDetection.d.ts +1 -1
- package/Modal/useIntersectionDetection.d.ts.map +1 -1
- package/MultiSelect/MultiSelectDropdown.d.ts +2 -2
- package/MultiSelect/MultiSelectDropdown.d.ts.map +1 -1
- package/MultiSelect/index.js +106 -83
- package/MultiSelect/index.mjs +107 -84
- package/MultiSelect/utilities.d.ts +1 -1
- package/MultiSelect/utilities.d.ts.map +1 -1
- package/MultipageSection/index.js +94 -71
- package/MultipageSection/index.mjs +94 -71
- package/NexusLayout/index.js +136 -102
- package/NexusLayout/index.mjs +136 -102
- package/Notification/NotificationTransition.d.ts +1 -1
- package/Notification/NotificationTransition.d.ts.map +1 -1
- package/Notification/index.js +1 -1
- package/Notification/index.mjs +1 -1
- package/Pagination/index.js +62 -50
- package/Pagination/index.mjs +63 -51
- package/PillGroup/index.js +1 -1
- package/PillGroup/index.mjs +1 -1
- package/PlanCard/illustrations/Building01/index.js +532 -531
- package/PlanCard/illustrations/Building01/index.mjs +532 -531
- package/PlanCard/illustrations/Building02/index.js +206 -205
- package/PlanCard/illustrations/Building02/index.mjs +206 -205
- package/PlanCard/illustrations/Building03/index.js +773 -772
- package/PlanCard/illustrations/Building03/index.mjs +773 -772
- package/PlanCard/illustrations/Building04/index.js +1528 -1527
- package/PlanCard/illustrations/Building04/index.mjs +1528 -1527
- package/PlanCard/index.js +59 -36
- package/PlanCard/index.mjs +60 -37
- package/ProductLayout/index.js +132 -91
- package/ProductLayout/index.mjs +132 -91
- package/Provider/index.js +18 -14
- package/Provider/index.mjs +18 -14
- package/RadioButtonGroup/index.js +14 -10
- package/RadioButtonGroup/index.mjs +14 -10
- package/RadioGroup/index.js +1 -1
- package/RadioGroup/index.mjs +1 -1
- package/RangeCalendar/index.js +1 -1
- package/RangeCalendar/index.mjs +1 -1
- package/SearchNav/CondensedSearchNav.d.ts.map +1 -1
- package/SearchNav/index.js +197 -141
- package/SearchNav/index.mjs +197 -141
- package/SearchNav/utilities.d.ts +3 -3
- package/SearchNav/utilities.d.ts.map +1 -1
- package/SectionCard/index.js +43 -25
- package/SectionCard/index.mjs +43 -25
- package/Select/index.js +74 -62
- package/Select/index.mjs +74 -62
- 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 +22 -16
- package/SplitToggleCard/index.mjs +22 -16
- 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 +22 -16
- package/TabPanels/index.mjs +24 -18
- 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 +3 -3
- package/Textarea/index.mjs +3 -3
- package/Theme/index.js +1 -1
- package/Theme/index.mjs +1 -1
- package/Toggle/index.js +1 -1
- package/Toggle/index.mjs +1 -1
- package/ToggleCard/index.js +20 -15
- package/ToggleCard/index.mjs +21 -16
- 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 +115 -88
- package/VerticalNav/index.mjs +115 -88
- package/VerticalStack/index.js +1 -1
- package/VerticalStack/index.mjs +1 -1
- package/__chunks__/{Button-5AuHgwU3.js → Button-C3vDXJsJ.js} +15 -12
- package/__chunks__/{Button-BsGH6vGC.mjs → Button-Dexauftx.mjs} +16 -13
- package/__chunks__/{Calendar-D09mdpmC.js → Calendar-BEbdigVB.js} +3 -2
- package/__chunks__/{Calendar-BGZysoV0.mjs → Calendar-BOxw8lwX.mjs} +3 -2
- package/__chunks__/{CalendarBase-Bn9o8BdD.mjs → CalendarBase-3a9i7QNo.mjs} +86 -64
- package/__chunks__/{CalendarBase-DHxad3N9.js → CalendarBase-Bx8bdXeT.js} +86 -64
- package/__chunks__/{Card-CJug4GMX.mjs → Card-8778avMv.mjs} +21 -12
- package/__chunks__/{Card-BM2DKiVA.js → Card-DIZFYg6E.js} +21 -12
- package/__chunks__/{Checkbox-BWfY9XqH.mjs → Checkbox-C-NlI-Ym.mjs} +36 -28
- package/__chunks__/{Checkbox-D2-8vvdr.js → Checkbox-DFWhjlaO.js} +36 -28
- package/__chunks__/{CodeSnippet-CIijbclb.js → CodeSnippet-BCOMwE07.js} +16 -12
- package/__chunks__/{CodeSnippet-QpCpkoXv.mjs → CodeSnippet-CWnMHdVu.mjs} +16 -12
- package/__chunks__/{DatePickerBase-CFB0JDQA.mjs → DatePickerBase-C4PwUr9x.mjs} +80 -62
- package/__chunks__/{DatePickerBase-DSPIErms.js → DatePickerBase-XoRply_u.js} +80 -62
- package/__chunks__/EasyPostLogo-D3WNdZ29.js +22 -0
- package/__chunks__/EasyPostLogo-tf6CCEAq.mjs +23 -0
- package/__chunks__/{HelpMenu-CO6kYktc.mjs → HelpMenu-8r0cjx5z.mjs} +30 -21
- package/__chunks__/{HelpMenu-nihaGEVy.js → HelpMenu-DBo_fklD.js} +30 -20
- package/__chunks__/{HorizontalGrid-CAwv7zKY.js → HorizontalGrid-BAvSeg39.js} +5 -3
- package/__chunks__/{HorizontalGrid-Dz8EFgmu.mjs → HorizontalGrid-C4MBFEH-.mjs} +6 -4
- package/__chunks__/{HorizontalStack-CxE8tPx_.mjs → HorizontalStack-BkE82C73.mjs} +6 -4
- package/__chunks__/{HorizontalStack-CXpjASZi.js → HorizontalStack-DidoI4Ks.js} +5 -3
- package/__chunks__/{Icon-W8F9w-jS.js → Icon-BVa5ddiD.js} +11 -10
- package/__chunks__/{Icon-0SN9dbwU.mjs → Icon-DzTns8u5.mjs} +11 -10
- package/__chunks__/{InputCaption-BJO9_Tby.mjs → InputCaption-B8bZH6sX.mjs} +19 -15
- package/__chunks__/{InputCaption-C3Hf9Hvt.js → InputCaption-Dkyn1sg6.js} +19 -15
- package/__chunks__/{InputField-dq5XIhr1.mjs → InputField-BTrYBVAD.mjs} +77 -66
- package/__chunks__/{InputField-CDHznUZd.js → InputField-Dvkk5R1K.js} +77 -66
- package/__chunks__/{InputIcon-Bpg4lyQx.mjs → InputIcon-BLJ6dx_5.mjs} +9 -8
- package/__chunks__/{InputIcon-DdcvN3A4.js → InputIcon-BSIAXX9k.js} +9 -8
- package/__chunks__/{KebabButton-DdzHU7is.js → KebabButton-3FnxY-Fz.js} +15 -8
- package/__chunks__/{KebabButton-Bf1OdC5_.mjs → KebabButton-DSK0ISAn.mjs} +15 -8
- package/__chunks__/{Menu-DHwqwFlg.mjs → Menu-C2F4fvhd.mjs} +88 -70
- package/__chunks__/{Menu-Kfc6nxFP.js → Menu-Du8SsMeJ.js} +88 -70
- package/__chunks__/{Notification-vF_YGVIP.js → Notification-CeJn5Qq1.js} +62 -48
- package/__chunks__/{Notification-BoT3Hm0B.mjs → Notification-CgUT2gv6.mjs} +64 -50
- package/__chunks__/{PillGroup-DjLJ4wVb.mjs → PillGroup-EJ8t8SrT.mjs} +41 -27
- package/__chunks__/{PillGroup-CAHVIlU0.js → PillGroup-rTS853Rr.js} +41 -27
- package/__chunks__/{RadioGroup-CGQKZwDU.js → RadioGroup-BFqH1Csi.js} +58 -40
- package/__chunks__/{RadioGroup-DUu5GEpn.mjs → RadioGroup-DBgIqOkZ.mjs} +58 -40
- package/__chunks__/{RangeCalendar-LPcJB19o.mjs → RangeCalendar-BSsmX9l4.mjs} +3 -2
- package/__chunks__/{RangeCalendar-Ckqj2J9L.js → RangeCalendar-Do2nei5A.js} +3 -2
- package/__chunks__/{SelectOverlay-DptO7xtn.mjs → SelectOverlay-DUIIhF4t.mjs} +62 -51
- package/__chunks__/{SelectOverlay-CmbC4zrD.js → SelectOverlay-DjiJHthj.js} +62 -51
- package/__chunks__/{SelectorErrorTooltip-Dw1Fvd_q.mjs → SelectorErrorTooltip-BC-1JoX3.mjs} +19 -12
- package/__chunks__/{SelectorErrorTooltip-_D8DSBKs.js → SelectorErrorTooltip-BMxbuFiM.js} +19 -11
- package/__chunks__/{Spinner-DOmPV59I.mjs → Spinner-2PFCOK3I.mjs} +17 -13
- package/__chunks__/{Spinner-D0ifPtVV.js → Spinner-Dd68v9QX.js} +16 -12
- package/__chunks__/{Stepper-CX0Mu37p.js → Stepper-BZ90AIx0.js} +47 -36
- package/__chunks__/{Stepper-BEyDIPNJ.mjs → Stepper-q3YNLglj.mjs} +48 -37
- package/__chunks__/{TabNav-vCt_zTvE.mjs → TabNav-BnpNl7tj.mjs} +10 -8
- package/__chunks__/{TabNav-B8aEzVyr.js → TabNav-CLVG0bL2.js} +10 -8
- package/__chunks__/{Tabs-BL8odO0p.js → Tabs-5_61DIBw.js} +46 -37
- package/__chunks__/{Tabs-DJ4aKu11.mjs → Tabs-CtyYEye0.mjs} +47 -38
- package/__chunks__/{Text-CSESKR_s.js → Text-C4CEsglh.js} +5 -4
- package/__chunks__/{Text-YOL3isF4.mjs → Text-u9mYLeWj.mjs} +5 -4
- package/__chunks__/{TextField-D2QhDAdD.mjs → TextField-D1JGaTQv.mjs} +3 -3
- package/__chunks__/{TextField-94cCP805.js → TextField-DE1vPtQm.js} +3 -3
- package/__chunks__/{Theme-BAFk7BvV.mjs → Theme-CyUCrGdN.mjs} +28 -18
- package/__chunks__/{Theme-DqbmY4wy.js → Theme-unLHjjnm.js} +27 -17
- package/__chunks__/{Toggle-D2ucsFxO.js → Toggle-BHzAGPDh.js} +43 -37
- package/__chunks__/{Toggle-CxjLdmzW.mjs → Toggle-DioYP2KQ.mjs} +43 -37
- package/__chunks__/{Tooltip-DAyUY3na.mjs → Tooltip-BKGkKnOx.mjs} +25 -17
- package/__chunks__/{Tooltip-DqpxBjpa.js → Tooltip-COjtKErw.js} +25 -17
- package/__chunks__/{UnstyledButton-DpQ5Ic9D.mjs → UnstyledButton-BCg7eEyP.mjs} +6 -4
- package/__chunks__/{UnstyledButton-BFpQ2Irc.js → UnstyledButton-_YQekhlm.js} +5 -3
- package/__chunks__/{VerticalStack-C2yDQVHD.mjs → VerticalStack-Cbdpucbh.mjs} +6 -4
- package/__chunks__/{VerticalStack-Dzpv3O67.js → VerticalStack-CunLpHRv.js} +5 -3
- package/__chunks__/index-CqNUlUoB.js +217 -0
- package/__chunks__/index-ee-P7jQr.mjs +218 -0
- package/__chunks__/jsx-runtime-CH1d66I3.js +320 -0
- package/__chunks__/jsx-runtime-DTpFD6nx.mjs +321 -0
- package/__chunks__/{useEdgeInterceptors-D_DARZZd.mjs → useEdgeInterceptors-BBmo6MI4.mjs} +17 -14
- package/__chunks__/{useEdgeInterceptors-Ihk8NfjJ.js → useEdgeInterceptors-BLxn3eUi.js} +16 -13
- package/package.json +5 -7
- package/types.d.ts +1 -1
- package/types.d.ts.map +1 -1
- package/utilities/Noop.d.ts +1 -1
- package/utilities/Noop.d.ts.map +1 -1
- package/utilities/react.d.ts +1 -1
- package/utilities/react.d.ts.map +1 -1
- package/utilities/react.js +1 -1
- package/utilities/react.mjs +1 -1
- package/utilities/test.d.ts +1 -0
- package/utilities/test.d.ts.map +1 -1
- package/__chunks__/EasyPostLogo-B3Um5vvS.mjs +0 -22
- package/__chunks__/EasyPostLogo-DQt5KlFX.js +0 -21
- package/__chunks__/index-CUcRN4NO.js +0 -311
- package/__chunks__/index-Izk6uvQC.mjs +0 -312
package/ForgeLayout/index.js
CHANGED
|
@@ -31,26 +31,27 @@ var __objRest = (source, exclude) => {
|
|
|
31
31
|
return target;
|
|
32
32
|
};
|
|
33
33
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
34
|
+
const jsxRuntime = require("../__chunks__/jsx-runtime-CH1d66I3.js");
|
|
34
35
|
const React = require("react");
|
|
35
36
|
const utilities_css = require("../utilities/css.js");
|
|
36
37
|
const Button = require("../__chunks__/Button-BpQFyL49.js");
|
|
37
|
-
const HorizontalStack = require("../__chunks__/HorizontalStack-
|
|
38
|
-
const Icon = require("../__chunks__/Icon-
|
|
39
|
-
const Menu = require("../__chunks__/Menu-
|
|
40
|
-
const Text = require("../__chunks__/Text-
|
|
38
|
+
const HorizontalStack = require("../__chunks__/HorizontalStack-DidoI4Ks.js");
|
|
39
|
+
const Icon = require("../__chunks__/Icon-BVa5ddiD.js");
|
|
40
|
+
const Menu = require("../__chunks__/Menu-Du8SsMeJ.js");
|
|
41
|
+
const Text = require("../__chunks__/Text-C4CEsglh.js");
|
|
41
42
|
const useFocusRing = require("../__chunks__/useFocusRing-DbC9E5wC.js");
|
|
42
43
|
const mergeProps = require("../__chunks__/mergeProps-DLPcevok.js");
|
|
43
44
|
const useHover = require("../__chunks__/useHover-Ck1otl-j.js");
|
|
44
45
|
const usePress = require("../__chunks__/usePress-B5G5CgVn.js");
|
|
45
46
|
const useLink = require("../__chunks__/useLink-CChqhQkC.js");
|
|
46
|
-
const VerticalStack = require("../__chunks__/VerticalStack-
|
|
47
|
+
const VerticalStack = require("../__chunks__/VerticalStack-CunLpHRv.js");
|
|
47
48
|
const Dialog = require("../__chunks__/Dialog-iU9BJB0o.js");
|
|
48
49
|
const ArrowBack = require("../__chunks__/ArrowBack-C_LSatif.js");
|
|
49
50
|
const Search = require("../__chunks__/Search-BY7IgEyX.js");
|
|
50
51
|
const ExpandMore400 = require("../__chunks__/ExpandMore400-CJpvxyJm.js");
|
|
51
|
-
const UnstyledButton = require("../__chunks__/UnstyledButton-
|
|
52
|
-
const RadioGroup = require("../__chunks__/RadioGroup-
|
|
53
|
-
const TextField = require("../__chunks__/TextField-
|
|
52
|
+
const UnstyledButton = require("../__chunks__/UnstyledButton-_YQekhlm.js");
|
|
53
|
+
const RadioGroup = require("../__chunks__/RadioGroup-BFqH1Csi.js");
|
|
54
|
+
const TextField = require("../__chunks__/TextField-DE1vPtQm.js");
|
|
54
55
|
const utilities_react = require("../utilities/react.js");
|
|
55
56
|
const button = "_button_1sch8_4";
|
|
56
57
|
const focused$1 = "_focused_1sch8_25";
|
|
@@ -70,11 +71,12 @@ const styles$4 = {
|
|
|
70
71
|
};
|
|
71
72
|
function ForgeLayoutActions(props) {
|
|
72
73
|
const { children } = props;
|
|
73
|
-
return
|
|
74
|
+
return jsxRuntime.jsxRuntimeExports.jsx(HorizontalStack.HorizontalStack, {
|
|
74
75
|
wrap: false,
|
|
75
76
|
gap: "1",
|
|
76
|
-
align: "end"
|
|
77
|
-
|
|
77
|
+
align: "end",
|
|
78
|
+
children
|
|
79
|
+
});
|
|
78
80
|
}
|
|
79
81
|
function ForgeLayoutMenuAction(props) {
|
|
80
82
|
const { accessibilityLabel = "Actions", iconSymbol, children, renderBadge } = props;
|
|
@@ -85,18 +87,25 @@ function ForgeLayoutMenuAction(props) {
|
|
|
85
87
|
const { focusProps, isFocusVisible } = useFocusRing.$f7dceffc5ad7768b$export$4e328f61c538687f({});
|
|
86
88
|
const { hoverProps, isHovered } = useHover.$6179b936705e76d3$export$ae780daf29e6d456({});
|
|
87
89
|
const className = utilities_css.classNames(styles$4.button, isFocusVisible && styles$4.focused, isHovered && styles$4.hovered, isOpen && styles$4.open);
|
|
88
|
-
return
|
|
90
|
+
return jsxRuntime.jsxRuntimeExports.jsxs(Menu.Menu, {
|
|
89
91
|
isOpen,
|
|
90
|
-
onOpenChange: handleOpenChange
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
92
|
+
onOpenChange: handleOpenChange,
|
|
93
|
+
children: [jsxRuntime.jsxRuntimeExports.jsx(Menu.Menu.Trigger, {
|
|
94
|
+
children: jsxRuntime.jsxRuntimeExports.jsxs(PressableButton, __spreadProps(__spreadValues({
|
|
95
|
+
className
|
|
96
|
+
}, mergeProps.$3ef42575df84b30b$export$9d1611c77c2fe928(focusProps, hoverProps)), {
|
|
97
|
+
children: [jsxRuntime.jsxRuntimeExports.jsx(Text.Text, {
|
|
98
|
+
visuallyHidden: true,
|
|
99
|
+
children: accessibilityLabel
|
|
100
|
+
}), jsxRuntime.jsxRuntimeExports.jsx(Icon.Icon, {
|
|
101
|
+
symbol: iconSymbol
|
|
102
|
+
}), renderBadge && jsxRuntime.jsxRuntimeExports.jsx("div", {
|
|
103
|
+
className: styles$4.badgeContainer,
|
|
104
|
+
children: renderBadge()
|
|
105
|
+
})]
|
|
106
|
+
}))
|
|
107
|
+
}), children]
|
|
108
|
+
});
|
|
100
109
|
}
|
|
101
110
|
function ForgeLayoutLinkAction(props) {
|
|
102
111
|
const { accessibilityLabel = "Actions", iconSymbol, renderBadge, isSelected } = props;
|
|
@@ -105,44 +114,52 @@ function ForgeLayoutLinkAction(props) {
|
|
|
105
114
|
const { focusProps, isFocusVisible } = useFocusRing.$f7dceffc5ad7768b$export$4e328f61c538687f(props);
|
|
106
115
|
const { hoverProps, isHovered } = useHover.$6179b936705e76d3$export$ae780daf29e6d456(props);
|
|
107
116
|
const className = utilities_css.classNames(styles$4.button, isFocusVisible && styles$4.focused, isHovered && styles$4.hovered, isSelected && styles$4.selected);
|
|
108
|
-
return
|
|
117
|
+
return jsxRuntime.jsxRuntimeExports.jsxs("a", __spreadProps(__spreadValues({
|
|
109
118
|
ref,
|
|
110
119
|
className
|
|
111
120
|
}, mergeProps.$3ef42575df84b30b$export$9d1611c77c2fe928(hoverProps, focusProps, linkProps)), {
|
|
112
|
-
"aria-current": isSelected ? "true" : void 0
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
121
|
+
"aria-current": isSelected ? "true" : void 0,
|
|
122
|
+
children: [jsxRuntime.jsxRuntimeExports.jsx(Text.Text, {
|
|
123
|
+
visuallyHidden: true,
|
|
124
|
+
children: accessibilityLabel
|
|
125
|
+
}), jsxRuntime.jsxRuntimeExports.jsx(Icon.Icon, {
|
|
126
|
+
symbol: iconSymbol
|
|
127
|
+
}), renderBadge && jsxRuntime.jsxRuntimeExports.jsx("div", {
|
|
128
|
+
className: styles$4.badgeContainer,
|
|
129
|
+
children: renderBadge()
|
|
130
|
+
})]
|
|
131
|
+
}));
|
|
120
132
|
}
|
|
121
133
|
function ForgeLayoutButtonAction(props) {
|
|
122
134
|
const _a = props, { accessibilityLabel = "Actions", iconSymbol, renderBadge, isSelected } = _a, buttonProps = __objRest(_a, ["accessibilityLabel", "iconSymbol", "renderBadge", "isSelected"]);
|
|
123
135
|
const ref = React.useRef(null);
|
|
124
136
|
const className = utilities_css.classNames(styles$4.button, isSelected && styles$4.selected);
|
|
125
|
-
return
|
|
137
|
+
return jsxRuntime.jsxRuntimeExports.jsxs(Button.$d2b4bc8c273e7be6$export$353f5b6fc5456de1, __spreadProps(__spreadValues({
|
|
126
138
|
ref,
|
|
127
139
|
className,
|
|
128
140
|
"aria-current": isSelected ? "true" : void 0
|
|
129
|
-
}, buttonProps),
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
141
|
+
}, buttonProps), {
|
|
142
|
+
children: [jsxRuntime.jsxRuntimeExports.jsx(Text.Text, {
|
|
143
|
+
visuallyHidden: true,
|
|
144
|
+
children: accessibilityLabel
|
|
145
|
+
}), jsxRuntime.jsxRuntimeExports.jsx(Icon.Icon, {
|
|
146
|
+
symbol: iconSymbol
|
|
147
|
+
}), renderBadge && jsxRuntime.jsxRuntimeExports.jsx("div", {
|
|
148
|
+
className: styles$4.badgeContainer,
|
|
149
|
+
children: renderBadge()
|
|
150
|
+
})]
|
|
151
|
+
}));
|
|
136
152
|
}
|
|
137
153
|
function ForgeLayoutActionBadge(props) {
|
|
138
154
|
const { children } = props;
|
|
139
|
-
return
|
|
140
|
-
className: styles$4.badge
|
|
141
|
-
|
|
155
|
+
return jsxRuntime.jsxRuntimeExports.jsx("div", {
|
|
156
|
+
className: styles$4.badge,
|
|
157
|
+
children
|
|
158
|
+
});
|
|
142
159
|
}
|
|
143
160
|
const PressableButton = React.forwardRef((props, ref) => {
|
|
144
161
|
const { pressProps } = usePress.$f6c31cce2adf654f$export$45712eceda6fad21(props);
|
|
145
|
-
return
|
|
162
|
+
return jsxRuntime.jsxRuntimeExports.jsx("button", __spreadProps(__spreadValues({}, pressProps), {
|
|
146
163
|
ref,
|
|
147
164
|
className: utilities_css.classNames(pressProps.className)
|
|
148
165
|
}));
|
|
@@ -179,26 +196,31 @@ function ForgeLayoutNav(props) {
|
|
|
179
196
|
if (navState === "collapsed") {
|
|
180
197
|
return null;
|
|
181
198
|
}
|
|
182
|
-
return
|
|
183
|
-
value: context
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
199
|
+
return jsxRuntime.jsxRuntimeExports.jsx(ForgeLayoutNavContext.Provider, {
|
|
200
|
+
value: context,
|
|
201
|
+
children: jsxRuntime.jsxRuntimeExports.jsx("div", {
|
|
202
|
+
className: styles$3.nav,
|
|
203
|
+
children: jsxRuntime.jsxRuntimeExports.jsxs(VerticalStack.VerticalStack, {
|
|
204
|
+
as: "nav",
|
|
205
|
+
"aria-label": title,
|
|
206
|
+
gap: "1",
|
|
207
|
+
inlineAlign: "start",
|
|
208
|
+
children: [jsxRuntime.jsxRuntimeExports.jsx(Logo, {}), children]
|
|
209
|
+
})
|
|
210
|
+
})
|
|
211
|
+
});
|
|
192
212
|
}
|
|
193
213
|
function ForgeLayoutNavSection(props) {
|
|
194
214
|
const { title, children } = props;
|
|
195
|
-
return
|
|
215
|
+
return jsxRuntime.jsxRuntimeExports.jsxs(VerticalStack.VerticalStack, {
|
|
196
216
|
gap: "1",
|
|
197
|
-
inlineAlign: "start"
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
217
|
+
inlineAlign: "start",
|
|
218
|
+
children: [jsxRuntime.jsxRuntimeExports.jsx(Text.Text, {
|
|
219
|
+
variant: "overline",
|
|
220
|
+
color: "primary.600",
|
|
221
|
+
children: title
|
|
222
|
+
}), children]
|
|
223
|
+
});
|
|
202
224
|
}
|
|
203
225
|
function ForgeLayoutNavLink(props) {
|
|
204
226
|
const { href, iconSymbol, children } = props;
|
|
@@ -209,67 +231,75 @@ function ForgeLayoutNavLink(props) {
|
|
|
209
231
|
const { hoverProps, isHovered } = useHover.$6179b936705e76d3$export$ae780daf29e6d456(props);
|
|
210
232
|
const isSelected = href === selectedHref;
|
|
211
233
|
const className = utilities_css.classNames(styles$3.link, isFocusVisible && styles$3.focused, isHovered && styles$3.hovered, isSelected && styles$3.selected);
|
|
212
|
-
return
|
|
234
|
+
return jsxRuntime.jsxRuntimeExports.jsxs("a", __spreadProps(__spreadValues({
|
|
213
235
|
ref,
|
|
214
236
|
className
|
|
215
237
|
}, mergeProps.$3ef42575df84b30b$export$9d1611c77c2fe928(hoverProps, focusProps, linkProps)), {
|
|
216
|
-
"aria-current": isSelected ? "page" : void 0
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
238
|
+
"aria-current": isSelected ? "page" : void 0,
|
|
239
|
+
children: [jsxRuntime.jsxRuntimeExports.jsx(Icon.Icon, {
|
|
240
|
+
symbol: iconSymbol
|
|
241
|
+
}), jsxRuntime.jsxRuntimeExports.jsx(Text.Text, {
|
|
242
|
+
variant: "subtitle2",
|
|
243
|
+
children
|
|
244
|
+
})]
|
|
245
|
+
}));
|
|
222
246
|
}
|
|
223
247
|
function Logo() {
|
|
224
|
-
return
|
|
248
|
+
return jsxRuntime.jsxRuntimeExports.jsxs("svg", {
|
|
225
249
|
width: "95",
|
|
226
250
|
height: "24",
|
|
227
251
|
fill: "none",
|
|
228
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
252
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
253
|
+
children: [jsxRuntime.jsxRuntimeExports.jsxs("g", {
|
|
254
|
+
clipPath: "url(#clip0_1141_3360)",
|
|
255
|
+
children: [jsxRuntime.jsxRuntimeExports.jsx("path", {
|
|
256
|
+
d: "M21.036 17.22v-1.548l-10.037 5.851a.919.919 0 0 1-.927 0l-4.786-2.79v-2.448l4.786 2.79c.287.167.64.167.927 0l10.037-5.85v-2.448l-10.037 5.85a.919.919 0 0 1-.927 0l-4.786-2.79V11.39l4.786 2.79c.287.167.64.167.927 0l10.037-5.851V6.78a1.56 1.56 0 0 0-.772-1.35L11.308.209a1.528 1.528 0 0 0-1.543 0L.808 5.43a1.56 1.56 0 0 0-.772 1.35v10.44c0 .557.294 1.072.772 1.35l8.956 5.22a1.528 1.528 0 0 0 1.543 0l8.956-5.22a1.56 1.56 0 0 0 .772-1.35h.001z",
|
|
257
|
+
fill: "url(#paint0_linear_1141_3360)"
|
|
258
|
+
}), jsxRuntime.jsxRuntimeExports.jsx("path", {
|
|
259
|
+
d: "M33.126 8.058v2.762h3.907v1.788h-3.907v4.725H31V6.16h6.868v1.9h-4.742zm20.575 3.689c0 3.384-2.678 5.746-5.703 5.746-3.024 0-5.702-2.362-5.702-5.746C42.296 8.363 44.974 6 47.998 6c3.025 0 5.703 2.363 5.703 5.747zm-2.158 0c0-2.203-1.622-3.784-3.545-3.784-1.922 0-3.56 1.58-3.56 3.784 0 2.204 1.622 3.784 3.56 3.784 1.939 0 3.545-1.58 3.545-3.784zm13.642 5.586l-2.457-3.8h-1.827v3.8h-2.064V6.16h3.797c2.473 0 4.033 1.532 4.033 3.752 0 1.548-.757 2.698-2.048 3.257l2.757 4.167h-2.19l-.001-.002zm-4.286-5.604h1.622c1.245 0 2.08-.543 2.08-1.82 0-1.276-.835-1.82-2.08-1.82H60.9v3.64zm16.134 5.764c-3.089 0-5.702-2.362-5.702-5.746C71.33 8.363 74.008 6 77.033 6c1.434 0 2.725.48 3.685 1.324l-1.244 1.437c-.63-.48-1.465-.798-2.316-.798-2.064 0-3.687 1.58-3.687 3.784 0 2.204 1.544 3.784 3.592 3.784 1.528 0 2.71-.67 3.008-2.427h-2.756v-1.74h4.648c.457 3.816-1.986 6.13-4.932 6.13h.002zM94 15.402v1.932h-6.868V6.16h6.727v1.931h-4.664v2.682h3.545v1.883h-3.545v2.746H94z",
|
|
260
|
+
fill: "#061340"
|
|
261
|
+
})]
|
|
262
|
+
}), jsxRuntime.jsxRuntimeExports.jsxs("defs", {
|
|
263
|
+
children: [jsxRuntime.jsxRuntimeExports.jsxs("linearGradient", {
|
|
264
|
+
id: "paint0_linear_1141_3360",
|
|
265
|
+
x1: "2.381",
|
|
266
|
+
y1: "20.234",
|
|
267
|
+
x2: "18.847",
|
|
268
|
+
y2: "3.923",
|
|
269
|
+
gradientUnits: "userSpaceOnUse",
|
|
270
|
+
children: [jsxRuntime.jsxRuntimeExports.jsx("stop", {
|
|
271
|
+
stopColor: "#BC4543"
|
|
272
|
+
}), jsxRuntime.jsxRuntimeExports.jsx("stop", {
|
|
273
|
+
offset: ".5",
|
|
274
|
+
stopColor: "#F95C59"
|
|
275
|
+
}), jsxRuntime.jsxRuntimeExports.jsx("stop", {
|
|
276
|
+
offset: ".59",
|
|
277
|
+
stopColor: "#F86059"
|
|
278
|
+
}), jsxRuntime.jsxRuntimeExports.jsx("stop", {
|
|
279
|
+
offset: ".68",
|
|
280
|
+
stopColor: "#F86C59"
|
|
281
|
+
}), jsxRuntime.jsxRuntimeExports.jsx("stop", {
|
|
282
|
+
offset: ".78",
|
|
283
|
+
stopColor: "#F7815A"
|
|
284
|
+
}), jsxRuntime.jsxRuntimeExports.jsx("stop", {
|
|
285
|
+
offset: ".87",
|
|
286
|
+
stopColor: "#F69E5B"
|
|
287
|
+
}), jsxRuntime.jsxRuntimeExports.jsx("stop", {
|
|
288
|
+
offset: ".97",
|
|
289
|
+
stopColor: "#F4C35D"
|
|
290
|
+
}), jsxRuntime.jsxRuntimeExports.jsx("stop", {
|
|
291
|
+
offset: "1",
|
|
292
|
+
stopColor: "#F4D35E"
|
|
293
|
+
})]
|
|
294
|
+
}), jsxRuntime.jsxRuntimeExports.jsx("clipPath", {
|
|
295
|
+
id: "clip0_1141_3360",
|
|
296
|
+
children: jsxRuntime.jsxRuntimeExports.jsx("path", {
|
|
297
|
+
fill: "#fff",
|
|
298
|
+
d: "M0 0H95V24H0z"
|
|
299
|
+
})
|
|
300
|
+
})]
|
|
301
|
+
})]
|
|
302
|
+
});
|
|
273
303
|
}
|
|
274
304
|
const header = "_header_otc59_4";
|
|
275
305
|
const headerBg = "_headerBg_otc59_18";
|
|
@@ -287,15 +317,17 @@ const useForgeLayoutHeader = () => {
|
|
|
287
317
|
};
|
|
288
318
|
function ForgeLayoutHeader(props) {
|
|
289
319
|
const { areControlsGrouped = true, children } = props;
|
|
290
|
-
return
|
|
320
|
+
return jsxRuntime.jsxRuntimeExports.jsx(ForgeLayoutHeaderContext.Provider, {
|
|
291
321
|
value: {
|
|
292
322
|
areControlsGrouped
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
323
|
+
},
|
|
324
|
+
children: jsxRuntime.jsxRuntimeExports.jsxs("header", {
|
|
325
|
+
className: styles$2.header,
|
|
326
|
+
children: [jsxRuntime.jsxRuntimeExports.jsx("div", {
|
|
327
|
+
className: styles$2.headerBg
|
|
328
|
+
}), children]
|
|
329
|
+
})
|
|
330
|
+
});
|
|
299
331
|
}
|
|
300
332
|
const controls = "_controls_1moaa_4";
|
|
301
333
|
const breadcrumbNavigationContainer = "_breadcrumbNavigationContainer_1moaa_11";
|
|
@@ -328,9 +360,14 @@ function ForgeLayoutControls(props) {
|
|
|
328
360
|
if (navState !== visibleWhenNavStateIs) {
|
|
329
361
|
return null;
|
|
330
362
|
}
|
|
331
|
-
return
|
|
332
|
-
|
|
333
|
-
|
|
363
|
+
return jsxRuntime.jsxRuntimeExports.jsx(jsxRuntime.jsxRuntimeExports.Fragment, {
|
|
364
|
+
children: areControlsGrouped ? jsxRuntime.jsxRuntimeExports.jsx("div", {
|
|
365
|
+
className: styles$1.controls,
|
|
366
|
+
children
|
|
367
|
+
}) : jsxRuntime.jsxRuntimeExports.jsx(jsxRuntime.jsxRuntimeExports.Fragment, {
|
|
368
|
+
children
|
|
369
|
+
})
|
|
370
|
+
});
|
|
334
371
|
}
|
|
335
372
|
function ForgeLayoutBreadcrumbsNavigation(props) {
|
|
336
373
|
const { children } = props;
|
|
@@ -346,114 +383,139 @@ function ForgeLayoutBreadcrumbsNavigation(props) {
|
|
|
346
383
|
breadcrumbs: breadcrumbs2
|
|
347
384
|
};
|
|
348
385
|
}, [children]);
|
|
349
|
-
return
|
|
350
|
-
className: styles$1.breadcrumbNavigationContainer
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
386
|
+
return jsxRuntime.jsxRuntimeExports.jsxs("div", {
|
|
387
|
+
className: styles$1.breadcrumbNavigationContainer,
|
|
388
|
+
children: [jsxRuntime.jsxRuntimeExports.jsx("div", {
|
|
389
|
+
className: styles$1.backButtonContainer,
|
|
390
|
+
children: backButton2
|
|
391
|
+
}), jsxRuntime.jsxRuntimeExports.jsx("div", {
|
|
392
|
+
className: styles$1.breadcrumbsContainer,
|
|
393
|
+
children: breadcrumbs
|
|
394
|
+
})]
|
|
395
|
+
});
|
|
356
396
|
}
|
|
357
397
|
function ForgeLayoutBackButton(props) {
|
|
358
398
|
const _a = props, { children } = _a, restButtonProps = __objRest(_a, ["children"]);
|
|
359
|
-
return
|
|
360
|
-
className: styles$1.backButton
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
399
|
+
return jsxRuntime.jsxRuntimeExports.jsxs(UnstyledButton.UnstyledButton, __spreadProps(__spreadValues({}, restButtonProps), {
|
|
400
|
+
className: styles$1.backButton,
|
|
401
|
+
children: [jsxRuntime.jsxRuntimeExports.jsx(Icon.Icon, {
|
|
402
|
+
symbol: ArrowBack.ArrowBack,
|
|
403
|
+
size: "sm"
|
|
404
|
+
}), jsxRuntime.jsxRuntimeExports.jsx(Text.Text, {
|
|
405
|
+
variant: "subtitle1",
|
|
406
|
+
children
|
|
407
|
+
})]
|
|
408
|
+
}));
|
|
367
409
|
}
|
|
368
410
|
function ForgeLayoutBreadcrumbs(props) {
|
|
369
411
|
const { children } = props;
|
|
370
412
|
const breadcrumbs = React.useMemo(() => utilities_react.flattenChildren(children), [children]);
|
|
371
|
-
return
|
|
413
|
+
return jsxRuntime.jsxRuntimeExports.jsx(HorizontalStack.HorizontalStack, {
|
|
372
414
|
blockAlign: "center",
|
|
373
|
-
gap: "0.5"
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
415
|
+
gap: "0.5",
|
|
416
|
+
children: breadcrumbs.map((breadcrumb, idx) => {
|
|
417
|
+
if (idx === 0) {
|
|
418
|
+
return jsxRuntime.jsxRuntimeExports.jsx(React.Fragment, {
|
|
419
|
+
children: breadcrumb
|
|
420
|
+
}, idx);
|
|
421
|
+
} else {
|
|
422
|
+
return jsxRuntime.jsxRuntimeExports.jsxs(React.Fragment, {
|
|
423
|
+
children: [jsxRuntime.jsxRuntimeExports.jsx(ForgeLayoutBreadcrumb, {
|
|
424
|
+
children: ">"
|
|
425
|
+
}, idx), breadcrumb]
|
|
426
|
+
}, idx);
|
|
427
|
+
}
|
|
428
|
+
})
|
|
429
|
+
});
|
|
387
430
|
}
|
|
388
431
|
function ForgeLayoutBreadcrumb(props) {
|
|
389
432
|
const { children } = props;
|
|
390
|
-
return
|
|
433
|
+
return jsxRuntime.jsxRuntimeExports.jsx(Text.Text, {
|
|
391
434
|
variant: "body1",
|
|
392
|
-
color: "neutral.700"
|
|
393
|
-
|
|
435
|
+
color: "neutral.700",
|
|
436
|
+
children
|
|
437
|
+
});
|
|
394
438
|
}
|
|
395
439
|
function ForgeLayoutModeSwitcher(props) {
|
|
396
440
|
const { onModeChange } = props;
|
|
397
441
|
const { mode } = useForgeLayout();
|
|
398
442
|
const [isOpen, setIsOpen] = React.useState(false);
|
|
399
|
-
return
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
443
|
+
return jsxRuntime.jsxRuntimeExports.jsxs(Dialog.$de32f1b87079253c$export$2e1e1122cf0cba88, {
|
|
444
|
+
children: [jsxRuntime.jsxRuntimeExports.jsxs(Button.$d2b4bc8c273e7be6$export$353f5b6fc5456de1, {
|
|
445
|
+
className: utilities_css.classNames(styles$1.trigger, isOpen && styles$1.triggerPopoverOpen),
|
|
446
|
+
onPress: () => setIsOpen(true),
|
|
447
|
+
children: [jsxRuntime.jsxRuntimeExports.jsx(Text.Text, {
|
|
448
|
+
variant: "subtitle1",
|
|
449
|
+
color: mode === "test" ? "warning.600" : "positive.600",
|
|
450
|
+
truncate: true,
|
|
451
|
+
children: mode === "test" ? TEST_MODE : PRODUCTION_MODE
|
|
452
|
+
}), jsxRuntime.jsxRuntimeExports.jsx(Icon.Icon, {
|
|
453
|
+
symbol: ExpandMore400.ExpandMore400,
|
|
454
|
+
size: "md",
|
|
455
|
+
color: "neutral.500"
|
|
456
|
+
})]
|
|
457
|
+
}), jsxRuntime.jsxRuntimeExports.jsx(Dialog.$07b14b47974efb58$export$5b6b19405a83ff9d, {
|
|
458
|
+
className: styles$1.popover,
|
|
459
|
+
offset: POPOVER_OFFSET,
|
|
460
|
+
crossOffset: POPOVER_CROSS_OFFSET,
|
|
461
|
+
isOpen,
|
|
462
|
+
onOpenChange: setIsOpen,
|
|
463
|
+
children: jsxRuntime.jsxRuntimeExports.jsx(Dialog.$de32f1b87079253c$export$3ddf2d174ce01153, {
|
|
464
|
+
children: jsxRuntime.jsxRuntimeExports.jsxs(VerticalStack.VerticalStack, {
|
|
465
|
+
gap: "1",
|
|
466
|
+
children: [jsxRuntime.jsxRuntimeExports.jsx(Text.Text, {
|
|
467
|
+
variant: "subtitle1",
|
|
468
|
+
color: "neutral.800",
|
|
469
|
+
children: "Instance Switcher"
|
|
470
|
+
}), jsxRuntime.jsxRuntimeExports.jsxs(RadioGroup.RadioGroup, {
|
|
471
|
+
"aria-label": "Select a mode",
|
|
472
|
+
onChange: onModeChange,
|
|
473
|
+
value: mode,
|
|
474
|
+
children: [jsxRuntime.jsxRuntimeExports.jsx(ForgeLayoutModeSwitcherRadioGroupItem, {
|
|
475
|
+
value: "test"
|
|
476
|
+
}), jsxRuntime.jsxRuntimeExports.jsx(ForgeLayoutModeSwitcherRadioGroupItem, {
|
|
477
|
+
value: "production"
|
|
478
|
+
})]
|
|
479
|
+
})]
|
|
480
|
+
})
|
|
481
|
+
})
|
|
482
|
+
})]
|
|
483
|
+
});
|
|
430
484
|
}
|
|
431
485
|
function ForgeLayoutModeSwitcherRadioGroupItem(props) {
|
|
432
486
|
const _a = props, { value } = _a, restProps = __objRest(_a, ["value"]);
|
|
433
487
|
const state = RadioGroup.useRadioGroupContext();
|
|
434
488
|
const isSelected = value === state.selectedValue;
|
|
435
|
-
return
|
|
489
|
+
return jsxRuntime.jsxRuntimeExports.jsx(RadioGroup.RadioGroup.Item, __spreadProps(__spreadValues({
|
|
436
490
|
value
|
|
437
|
-
}, restProps),
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
491
|
+
}, restProps), {
|
|
492
|
+
children: jsxRuntime.jsxRuntimeExports.jsxs(VerticalStack.VerticalStack, {
|
|
493
|
+
children: [jsxRuntime.jsxRuntimeExports.jsx(Text.Text, {
|
|
494
|
+
variant: "subtitle2",
|
|
495
|
+
color: isSelected ? "primary.800" : "primary.700",
|
|
496
|
+
children: value === "test" ? TEST_MODE : PRODUCTION_MODE
|
|
497
|
+
}), jsxRuntime.jsxRuntimeExports.jsxs(Text.Text, {
|
|
498
|
+
variant: "overline",
|
|
499
|
+
children: ["View data using the", " ", jsxRuntime.jsxRuntimeExports.jsxs(Text.Text, {
|
|
500
|
+
color: value === "test" ? "warning.600" : "positive.600",
|
|
501
|
+
children: [value === "test" ? TEST_MODE.toUpperCase() : PRODUCTION_MODE.toUpperCase(), " ", "API", " "]
|
|
502
|
+
}), "keys"]
|
|
503
|
+
})]
|
|
504
|
+
})
|
|
505
|
+
}));
|
|
445
506
|
}
|
|
446
507
|
function ForgeLayoutSearch(props) {
|
|
447
508
|
const _a = props, { "aria-label": ariaLabel = "Search for content" } = _a, textFieldProps = __objRest(_a, ["aria-label"]);
|
|
448
|
-
return
|
|
449
|
-
className: styles$1.searchContainer
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
509
|
+
return jsxRuntime.jsxRuntimeExports.jsx("div", {
|
|
510
|
+
className: styles$1.searchContainer,
|
|
511
|
+
children: jsxRuntime.jsxRuntimeExports.jsx(TextField.TextField, __spreadValues({
|
|
512
|
+
size: "sm",
|
|
513
|
+
type: "search",
|
|
514
|
+
"aria-label": ariaLabel,
|
|
515
|
+
placeholder: "/ search",
|
|
516
|
+
iconAtStart: Search.Search
|
|
517
|
+
}, textFieldProps))
|
|
518
|
+
});
|
|
457
519
|
}
|
|
458
520
|
const ForgeLayout$1 = "_ForgeLayout_irfr5_4";
|
|
459
521
|
const modeTest = "_modeTest_irfr5_21";
|
|
@@ -487,25 +549,29 @@ function ForgeLayout(props) {
|
|
|
487
549
|
navState
|
|
488
550
|
};
|
|
489
551
|
}, [mode, navState]);
|
|
490
|
-
return
|
|
491
|
-
value: context
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
552
|
+
return jsxRuntime.jsxRuntimeExports.jsxs(ForgeLayoutContext.Provider, {
|
|
553
|
+
value: context,
|
|
554
|
+
children: [jsxRuntime.jsxRuntimeExports.jsx("div", {
|
|
555
|
+
className: bgClassName
|
|
556
|
+
}), jsxRuntime.jsxRuntimeExports.jsx("div", {
|
|
557
|
+
className,
|
|
558
|
+
children
|
|
559
|
+
})]
|
|
560
|
+
});
|
|
497
561
|
}
|
|
498
562
|
function ForgeLayoutBody(props) {
|
|
499
563
|
const { children } = props;
|
|
500
|
-
return
|
|
501
|
-
className: styles.body
|
|
502
|
-
|
|
564
|
+
return jsxRuntime.jsxRuntimeExports.jsx("div", {
|
|
565
|
+
className: styles.body,
|
|
566
|
+
children
|
|
567
|
+
});
|
|
503
568
|
}
|
|
504
569
|
function ForgeLayoutContent(props) {
|
|
505
570
|
const { children } = props;
|
|
506
|
-
return
|
|
507
|
-
className: styles.content
|
|
508
|
-
|
|
571
|
+
return jsxRuntime.jsxRuntimeExports.jsx("main", {
|
|
572
|
+
className: styles.content,
|
|
573
|
+
children
|
|
574
|
+
});
|
|
509
575
|
}
|
|
510
576
|
ForgeLayout.Nav = ForgeLayoutNav;
|
|
511
577
|
ForgeLayout.NavSection = ForgeLayoutNavSection;
|