@easypost/easy-ui 1.0.0-alpha.112 → 1.0.0-alpha.114
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 +12 -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 +284 -218
- 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 +198 -142
- 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-CQdi4TMV.js} +15 -12
- package/__chunks__/{Button-BsGH6vGC.mjs → Button-JL1YQxJ5.mjs} +16 -13
- package/__chunks__/{Calendar-D09mdpmC.js → Calendar-C9zdRov0.js} +3 -2
- package/__chunks__/{Calendar-BGZysoV0.mjs → Calendar-DLzAtdfg.mjs} +3 -2
- package/__chunks__/{CalendarBase-Bn9o8BdD.mjs → CalendarBase-DJ38_qK6.mjs} +86 -64
- package/__chunks__/{CalendarBase-DHxad3N9.js → CalendarBase-M-f289w8.js} +86 -64
- package/__chunks__/{Card-CJug4GMX.mjs → Card-BgjWYPVY.mjs} +21 -12
- package/__chunks__/{Card-BM2DKiVA.js → Card-LPIW5drP.js} +21 -12
- package/__chunks__/{Checkbox-D2-8vvdr.js → Checkbox-B_-6lfKk.js} +36 -28
- package/__chunks__/{Checkbox-BWfY9XqH.mjs → Checkbox-DcaO0fC3.mjs} +36 -28
- package/__chunks__/{CodeSnippet-CIijbclb.js → CodeSnippet-25l4r2Gh.js} +16 -12
- package/__chunks__/{CodeSnippet-QpCpkoXv.mjs → CodeSnippet-B3nsMpvq.mjs} +16 -12
- package/__chunks__/{DatePickerBase-CFB0JDQA.mjs → DatePickerBase-BQc8LKWg.mjs} +80 -62
- package/__chunks__/{DatePickerBase-DSPIErms.js → DatePickerBase-BYYfRTEY.js} +80 -62
- package/__chunks__/EasyPostLogo-C9-Q0lSn.js +22 -0
- package/__chunks__/EasyPostLogo-DgIgAGa3.mjs +23 -0
- package/__chunks__/{HelpMenu-CO6kYktc.mjs → HelpMenu-BZRV42ab.mjs} +30 -21
- package/__chunks__/{HelpMenu-nihaGEVy.js → HelpMenu-C2t8KQuU.js} +30 -20
- package/__chunks__/{HorizontalGrid-CAwv7zKY.js → HorizontalGrid-CAoDcmPW.js} +5 -3
- package/__chunks__/{HorizontalGrid-Dz8EFgmu.mjs → HorizontalGrid-DbLeJBt8.mjs} +6 -4
- package/__chunks__/{HorizontalStack-CxE8tPx_.mjs → HorizontalStack-CJavrBHm.mjs} +6 -4
- package/__chunks__/{HorizontalStack-CXpjASZi.js → HorizontalStack-CWdKKY8L.js} +5 -3
- package/__chunks__/{Icon-0SN9dbwU.mjs → Icon-BIpaQJ_I.mjs} +11 -10
- package/__chunks__/{Icon-W8F9w-jS.js → Icon-BRlbo3RF.js} +11 -10
- package/__chunks__/{InputCaption-C3Hf9Hvt.js → InputCaption-CccF4ynE.js} +19 -15
- package/__chunks__/{InputCaption-BJO9_Tby.mjs → InputCaption-DoyGkWQe.mjs} +19 -15
- package/__chunks__/{InputField-dq5XIhr1.mjs → InputField-CAY9O90X.mjs} +77 -66
- package/__chunks__/{InputField-CDHznUZd.js → InputField-DGb4ZDoR.js} +77 -66
- package/__chunks__/{InputIcon-Bpg4lyQx.mjs → InputIcon-CEATdJ1j.mjs} +9 -8
- package/__chunks__/{InputIcon-DdcvN3A4.js → InputIcon-DDKBJ_Tk.js} +9 -8
- package/__chunks__/{KebabButton-Bf1OdC5_.mjs → KebabButton-D-5Mjaj0.mjs} +15 -8
- package/__chunks__/{KebabButton-DdzHU7is.js → KebabButton-TbapERgy.js} +15 -8
- package/__chunks__/{Menu-DHwqwFlg.mjs → Menu-Ci1FGh8B.mjs} +88 -70
- package/__chunks__/{Menu-Kfc6nxFP.js → Menu-MGDv1tob.js} +88 -70
- package/__chunks__/{Notification-vF_YGVIP.js → Notification-DDQHWloB.js} +62 -48
- package/__chunks__/{Notification-BoT3Hm0B.mjs → Notification-DnNx0rb6.mjs} +64 -50
- package/__chunks__/{PillGroup-CAHVIlU0.js → PillGroup-BK8VCf3B.js} +41 -27
- package/__chunks__/{PillGroup-DjLJ4wVb.mjs → PillGroup-DN72MPhg.mjs} +41 -27
- package/__chunks__/{RadioGroup-DUu5GEpn.mjs → RadioGroup-BfKaJnSo.mjs} +58 -40
- package/__chunks__/{RadioGroup-CGQKZwDU.js → RadioGroup-BiCqtR0F.js} +58 -40
- package/__chunks__/{RangeCalendar-LPcJB19o.mjs → RangeCalendar-BdTjX8NT.mjs} +3 -2
- package/__chunks__/{RangeCalendar-Ckqj2J9L.js → RangeCalendar-Dz6LyRYS.js} +3 -2
- package/__chunks__/{SelectOverlay-CmbC4zrD.js → SelectOverlay-Bva0SG8D.js} +62 -51
- package/__chunks__/{SelectOverlay-DptO7xtn.mjs → SelectOverlay-q23ZLLi4.mjs} +62 -51
- package/__chunks__/{SelectorErrorTooltip-_D8DSBKs.js → SelectorErrorTooltip-BNLrFRLN.js} +19 -11
- package/__chunks__/{SelectorErrorTooltip-Dw1Fvd_q.mjs → SelectorErrorTooltip-rO2-k3Gl.mjs} +19 -12
- package/__chunks__/{Spinner-DOmPV59I.mjs → Spinner-COsekFr1.mjs} +17 -13
- package/__chunks__/{Spinner-D0ifPtVV.js → Spinner-vRnrcEz0.js} +16 -12
- package/__chunks__/{Stepper-BEyDIPNJ.mjs → Stepper-DlI-16t-.mjs} +48 -37
- package/__chunks__/{Stepper-CX0Mu37p.js → Stepper-lhcjfVFY.js} +47 -36
- package/__chunks__/{TabNav-vCt_zTvE.mjs → TabNav-BNhQF0b0.mjs} +10 -8
- package/__chunks__/{TabNav-B8aEzVyr.js → TabNav-bVgyfEV7.js} +10 -8
- package/__chunks__/{Tabs-DJ4aKu11.mjs → Tabs-BaROnbKg.mjs} +47 -38
- package/__chunks__/{Tabs-BL8odO0p.js → Tabs-DSngzN9A.js} +46 -37
- package/__chunks__/{Text-YOL3isF4.mjs → Text-D6oT5WJQ.mjs} +5 -4
- package/__chunks__/{Text-CSESKR_s.js → Text-DkzMEqky.js} +5 -4
- package/__chunks__/{TextField-D2QhDAdD.mjs → TextField-818kTElu.mjs} +3 -3
- package/__chunks__/{TextField-94cCP805.js → TextField-DKQVJPP_.js} +3 -3
- package/__chunks__/{Theme-DqbmY4wy.js → Theme-C2nSZUpG.js} +27 -17
- package/__chunks__/{Theme-BAFk7BvV.mjs → Theme-M__gFMM3.mjs} +28 -18
- package/__chunks__/{Toggle-D2ucsFxO.js → Toggle-BmJjrdVn.js} +43 -37
- package/__chunks__/{Toggle-CxjLdmzW.mjs → Toggle-DlDQ7rr2.mjs} +43 -37
- package/__chunks__/{Tooltip-DqpxBjpa.js → Tooltip-BSMvNula.js} +25 -17
- package/__chunks__/{Tooltip-DAyUY3na.mjs → Tooltip-BXRi0h4E.mjs} +25 -17
- package/__chunks__/{UnstyledButton-BFpQ2Irc.js → UnstyledButton-DW8CjaXN.js} +5 -3
- package/__chunks__/{UnstyledButton-DpQ5Ic9D.mjs → UnstyledButton-DxJLvL-G.mjs} +6 -4
- package/__chunks__/{VerticalStack-Dzpv3O67.js → VerticalStack-BHkiocKU.js} +5 -3
- package/__chunks__/{VerticalStack-C2yDQVHD.mjs → VerticalStack-DoMqBfYD.mjs} +6 -4
- package/__chunks__/index-CqNUlUoB.js +217 -0
- package/__chunks__/index-ee-P7jQr.mjs +218 -0
- package/__chunks__/{useEdgeInterceptors-D_DARZZd.mjs → useEdgeInterceptors-OZmGXvtF.mjs} +17 -14
- package/__chunks__/{useEdgeInterceptors-Ihk8NfjJ.js → useEdgeInterceptors-Rb2Hf0v8.js} +16 -13
- package/package.json +4 -6
- 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.mjs
CHANGED
|
@@ -29,26 +29,27 @@ var __objRest = (source, exclude) => {
|
|
|
29
29
|
}
|
|
30
30
|
return target;
|
|
31
31
|
};
|
|
32
|
-
import
|
|
32
|
+
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
33
|
+
import React__default, { useState, useCallback, forwardRef, useRef, useMemo, useContext, createContext, Fragment as Fragment$1 } from "react";
|
|
33
34
|
import { classNames, variationName } from "../utilities/css.mjs";
|
|
34
35
|
import { a as $d2b4bc8c273e7be6$export$353f5b6fc5456de1 } from "../__chunks__/Button-B4DxcTvZ.mjs";
|
|
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-
|
|
36
|
+
import { H as HorizontalStack } from "../__chunks__/HorizontalStack-CJavrBHm.mjs";
|
|
37
|
+
import { I as Icon } from "../__chunks__/Icon-BIpaQJ_I.mjs";
|
|
38
|
+
import { M as Menu } from "../__chunks__/Menu-Ci1FGh8B.mjs";
|
|
39
|
+
import { T as Text } from "../__chunks__/Text-D6oT5WJQ.mjs";
|
|
39
40
|
import { $ as $f7dceffc5ad7768b$export$4e328f61c538687f } from "../__chunks__/useFocusRing-BWKhJSvH.mjs";
|
|
40
41
|
import { $ as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "../__chunks__/mergeProps-COnPag8r.mjs";
|
|
41
42
|
import { $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "../__chunks__/useHover-FWU5y5-k.mjs";
|
|
42
43
|
import { $ as $f6c31cce2adf654f$export$45712eceda6fad21 } from "../__chunks__/usePress-Cw67P1FM.mjs";
|
|
43
44
|
import { $ as $298d61e98472621b$export$dcf14c9974fe2767 } from "../__chunks__/useLink-y6WGv96n.mjs";
|
|
44
|
-
import { V as VerticalStack } from "../__chunks__/VerticalStack-
|
|
45
|
+
import { V as VerticalStack } from "../__chunks__/VerticalStack-DoMqBfYD.mjs";
|
|
45
46
|
import { $ as $de32f1b87079253c$export$2e1e1122cf0cba88, a as $07b14b47974efb58$export$5b6b19405a83ff9d, b as $de32f1b87079253c$export$3ddf2d174ce01153 } from "../__chunks__/Dialog-DIhV589X.mjs";
|
|
46
47
|
import { A as ArrowBack } from "../__chunks__/ArrowBack-BFS-tCpV.mjs";
|
|
47
48
|
import { S as Search } from "../__chunks__/Search-Cyblmqo5.mjs";
|
|
48
49
|
import { E as ExpandMore400 } from "../__chunks__/ExpandMore400-CH7GNxqk.mjs";
|
|
49
|
-
import { U as UnstyledButton } from "../__chunks__/UnstyledButton-
|
|
50
|
-
import { R as RadioGroup, u as useRadioGroupContext } from "../__chunks__/RadioGroup-
|
|
51
|
-
import { T as TextField } from "../__chunks__/TextField-
|
|
50
|
+
import { U as UnstyledButton } from "../__chunks__/UnstyledButton-DxJLvL-G.mjs";
|
|
51
|
+
import { R as RadioGroup, u as useRadioGroupContext } from "../__chunks__/RadioGroup-BfKaJnSo.mjs";
|
|
52
|
+
import { T as TextField } from "../__chunks__/TextField-818kTElu.mjs";
|
|
52
53
|
import { flattenChildren } from "../utilities/react.mjs";
|
|
53
54
|
const button = "_button_1sch8_4";
|
|
54
55
|
const focused$1 = "_focused_1sch8_25";
|
|
@@ -68,11 +69,12 @@ const styles$4 = {
|
|
|
68
69
|
};
|
|
69
70
|
function ForgeLayoutActions(props) {
|
|
70
71
|
const { children } = props;
|
|
71
|
-
return
|
|
72
|
+
return jsx(HorizontalStack, {
|
|
72
73
|
wrap: false,
|
|
73
74
|
gap: "1",
|
|
74
|
-
align: "end"
|
|
75
|
-
|
|
75
|
+
align: "end",
|
|
76
|
+
children
|
|
77
|
+
});
|
|
76
78
|
}
|
|
77
79
|
function ForgeLayoutMenuAction(props) {
|
|
78
80
|
const { accessibilityLabel = "Actions", iconSymbol, children, renderBadge } = props;
|
|
@@ -83,18 +85,25 @@ function ForgeLayoutMenuAction(props) {
|
|
|
83
85
|
const { focusProps, isFocusVisible } = $f7dceffc5ad7768b$export$4e328f61c538687f({});
|
|
84
86
|
const { hoverProps, isHovered } = $6179b936705e76d3$export$ae780daf29e6d456({});
|
|
85
87
|
const className = classNames(styles$4.button, isFocusVisible && styles$4.focused, isHovered && styles$4.hovered, isOpen && styles$4.open);
|
|
86
|
-
return
|
|
88
|
+
return jsxs(Menu, {
|
|
87
89
|
isOpen,
|
|
88
|
-
onOpenChange: handleOpenChange
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
90
|
+
onOpenChange: handleOpenChange,
|
|
91
|
+
children: [jsx(Menu.Trigger, {
|
|
92
|
+
children: jsxs(PressableButton, __spreadProps(__spreadValues({
|
|
93
|
+
className
|
|
94
|
+
}, $3ef42575df84b30b$export$9d1611c77c2fe928(focusProps, hoverProps)), {
|
|
95
|
+
children: [jsx(Text, {
|
|
96
|
+
visuallyHidden: true,
|
|
97
|
+
children: accessibilityLabel
|
|
98
|
+
}), jsx(Icon, {
|
|
99
|
+
symbol: iconSymbol
|
|
100
|
+
}), renderBadge && jsx("div", {
|
|
101
|
+
className: styles$4.badgeContainer,
|
|
102
|
+
children: renderBadge()
|
|
103
|
+
})]
|
|
104
|
+
}))
|
|
105
|
+
}), children]
|
|
106
|
+
});
|
|
98
107
|
}
|
|
99
108
|
function ForgeLayoutLinkAction(props) {
|
|
100
109
|
const { accessibilityLabel = "Actions", iconSymbol, renderBadge, isSelected } = props;
|
|
@@ -103,44 +112,52 @@ function ForgeLayoutLinkAction(props) {
|
|
|
103
112
|
const { focusProps, isFocusVisible } = $f7dceffc5ad7768b$export$4e328f61c538687f(props);
|
|
104
113
|
const { hoverProps, isHovered } = $6179b936705e76d3$export$ae780daf29e6d456(props);
|
|
105
114
|
const className = classNames(styles$4.button, isFocusVisible && styles$4.focused, isHovered && styles$4.hovered, isSelected && styles$4.selected);
|
|
106
|
-
return
|
|
115
|
+
return jsxs("a", __spreadProps(__spreadValues({
|
|
107
116
|
ref,
|
|
108
117
|
className
|
|
109
118
|
}, $3ef42575df84b30b$export$9d1611c77c2fe928(hoverProps, focusProps, linkProps)), {
|
|
110
|
-
"aria-current": isSelected ? "true" : void 0
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
119
|
+
"aria-current": isSelected ? "true" : void 0,
|
|
120
|
+
children: [jsx(Text, {
|
|
121
|
+
visuallyHidden: true,
|
|
122
|
+
children: accessibilityLabel
|
|
123
|
+
}), jsx(Icon, {
|
|
124
|
+
symbol: iconSymbol
|
|
125
|
+
}), renderBadge && jsx("div", {
|
|
126
|
+
className: styles$4.badgeContainer,
|
|
127
|
+
children: renderBadge()
|
|
128
|
+
})]
|
|
129
|
+
}));
|
|
118
130
|
}
|
|
119
131
|
function ForgeLayoutButtonAction(props) {
|
|
120
132
|
const _a = props, { accessibilityLabel = "Actions", iconSymbol, renderBadge, isSelected } = _a, buttonProps = __objRest(_a, ["accessibilityLabel", "iconSymbol", "renderBadge", "isSelected"]);
|
|
121
133
|
const ref = useRef(null);
|
|
122
134
|
const className = classNames(styles$4.button, isSelected && styles$4.selected);
|
|
123
|
-
return
|
|
135
|
+
return jsxs($d2b4bc8c273e7be6$export$353f5b6fc5456de1, __spreadProps(__spreadValues({
|
|
124
136
|
ref,
|
|
125
137
|
className,
|
|
126
138
|
"aria-current": isSelected ? "true" : void 0
|
|
127
|
-
}, buttonProps),
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
139
|
+
}, buttonProps), {
|
|
140
|
+
children: [jsx(Text, {
|
|
141
|
+
visuallyHidden: true,
|
|
142
|
+
children: accessibilityLabel
|
|
143
|
+
}), jsx(Icon, {
|
|
144
|
+
symbol: iconSymbol
|
|
145
|
+
}), renderBadge && jsx("div", {
|
|
146
|
+
className: styles$4.badgeContainer,
|
|
147
|
+
children: renderBadge()
|
|
148
|
+
})]
|
|
149
|
+
}));
|
|
134
150
|
}
|
|
135
151
|
function ForgeLayoutActionBadge(props) {
|
|
136
152
|
const { children } = props;
|
|
137
|
-
return
|
|
138
|
-
className: styles$4.badge
|
|
139
|
-
|
|
153
|
+
return jsx("div", {
|
|
154
|
+
className: styles$4.badge,
|
|
155
|
+
children
|
|
156
|
+
});
|
|
140
157
|
}
|
|
141
158
|
const PressableButton = forwardRef((props, ref) => {
|
|
142
159
|
const { pressProps } = $f6c31cce2adf654f$export$45712eceda6fad21(props);
|
|
143
|
-
return
|
|
160
|
+
return jsx("button", __spreadProps(__spreadValues({}, pressProps), {
|
|
144
161
|
ref,
|
|
145
162
|
className: classNames(pressProps.className)
|
|
146
163
|
}));
|
|
@@ -177,26 +194,31 @@ function ForgeLayoutNav(props) {
|
|
|
177
194
|
if (navState === "collapsed") {
|
|
178
195
|
return null;
|
|
179
196
|
}
|
|
180
|
-
return
|
|
181
|
-
value: context
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
197
|
+
return jsx(ForgeLayoutNavContext.Provider, {
|
|
198
|
+
value: context,
|
|
199
|
+
children: jsx("div", {
|
|
200
|
+
className: styles$3.nav,
|
|
201
|
+
children: jsxs(VerticalStack, {
|
|
202
|
+
as: "nav",
|
|
203
|
+
"aria-label": title,
|
|
204
|
+
gap: "1",
|
|
205
|
+
inlineAlign: "start",
|
|
206
|
+
children: [jsx(Logo, {}), children]
|
|
207
|
+
})
|
|
208
|
+
})
|
|
209
|
+
});
|
|
190
210
|
}
|
|
191
211
|
function ForgeLayoutNavSection(props) {
|
|
192
212
|
const { title, children } = props;
|
|
193
|
-
return
|
|
213
|
+
return jsxs(VerticalStack, {
|
|
194
214
|
gap: "1",
|
|
195
|
-
inlineAlign: "start"
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
215
|
+
inlineAlign: "start",
|
|
216
|
+
children: [jsx(Text, {
|
|
217
|
+
variant: "overline",
|
|
218
|
+
color: "primary.600",
|
|
219
|
+
children: title
|
|
220
|
+
}), children]
|
|
221
|
+
});
|
|
200
222
|
}
|
|
201
223
|
function ForgeLayoutNavLink(props) {
|
|
202
224
|
const { href, iconSymbol, children } = props;
|
|
@@ -207,67 +229,75 @@ function ForgeLayoutNavLink(props) {
|
|
|
207
229
|
const { hoverProps, isHovered } = $6179b936705e76d3$export$ae780daf29e6d456(props);
|
|
208
230
|
const isSelected = href === selectedHref;
|
|
209
231
|
const className = classNames(styles$3.link, isFocusVisible && styles$3.focused, isHovered && styles$3.hovered, isSelected && styles$3.selected);
|
|
210
|
-
return
|
|
232
|
+
return jsxs("a", __spreadProps(__spreadValues({
|
|
211
233
|
ref,
|
|
212
234
|
className
|
|
213
235
|
}, $3ef42575df84b30b$export$9d1611c77c2fe928(hoverProps, focusProps, linkProps)), {
|
|
214
|
-
"aria-current": isSelected ? "page" : void 0
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
236
|
+
"aria-current": isSelected ? "page" : void 0,
|
|
237
|
+
children: [jsx(Icon, {
|
|
238
|
+
symbol: iconSymbol
|
|
239
|
+
}), jsx(Text, {
|
|
240
|
+
variant: "subtitle2",
|
|
241
|
+
children
|
|
242
|
+
})]
|
|
243
|
+
}));
|
|
220
244
|
}
|
|
221
245
|
function Logo() {
|
|
222
|
-
return
|
|
246
|
+
return jsxs("svg", {
|
|
223
247
|
width: "95",
|
|
224
248
|
height: "24",
|
|
225
249
|
fill: "none",
|
|
226
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
227
|
-
|
|
228
|
-
|
|
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
|
-
|
|
250
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
251
|
+
children: [jsxs("g", {
|
|
252
|
+
clipPath: "url(#clip0_1141_3360)",
|
|
253
|
+
children: [jsx("path", {
|
|
254
|
+
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",
|
|
255
|
+
fill: "url(#paint0_linear_1141_3360)"
|
|
256
|
+
}), jsx("path", {
|
|
257
|
+
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",
|
|
258
|
+
fill: "#061340"
|
|
259
|
+
})]
|
|
260
|
+
}), jsxs("defs", {
|
|
261
|
+
children: [jsxs("linearGradient", {
|
|
262
|
+
id: "paint0_linear_1141_3360",
|
|
263
|
+
x1: "2.381",
|
|
264
|
+
y1: "20.234",
|
|
265
|
+
x2: "18.847",
|
|
266
|
+
y2: "3.923",
|
|
267
|
+
gradientUnits: "userSpaceOnUse",
|
|
268
|
+
children: [jsx("stop", {
|
|
269
|
+
stopColor: "#BC4543"
|
|
270
|
+
}), jsx("stop", {
|
|
271
|
+
offset: ".5",
|
|
272
|
+
stopColor: "#F95C59"
|
|
273
|
+
}), jsx("stop", {
|
|
274
|
+
offset: ".59",
|
|
275
|
+
stopColor: "#F86059"
|
|
276
|
+
}), jsx("stop", {
|
|
277
|
+
offset: ".68",
|
|
278
|
+
stopColor: "#F86C59"
|
|
279
|
+
}), jsx("stop", {
|
|
280
|
+
offset: ".78",
|
|
281
|
+
stopColor: "#F7815A"
|
|
282
|
+
}), jsx("stop", {
|
|
283
|
+
offset: ".87",
|
|
284
|
+
stopColor: "#F69E5B"
|
|
285
|
+
}), jsx("stop", {
|
|
286
|
+
offset: ".97",
|
|
287
|
+
stopColor: "#F4C35D"
|
|
288
|
+
}), jsx("stop", {
|
|
289
|
+
offset: "1",
|
|
290
|
+
stopColor: "#F4D35E"
|
|
291
|
+
})]
|
|
292
|
+
}), jsx("clipPath", {
|
|
293
|
+
id: "clip0_1141_3360",
|
|
294
|
+
children: jsx("path", {
|
|
295
|
+
fill: "#fff",
|
|
296
|
+
d: "M0 0H95V24H0z"
|
|
297
|
+
})
|
|
298
|
+
})]
|
|
299
|
+
})]
|
|
300
|
+
});
|
|
271
301
|
}
|
|
272
302
|
const header = "_header_otc59_4";
|
|
273
303
|
const headerBg = "_headerBg_otc59_18";
|
|
@@ -285,15 +315,17 @@ const useForgeLayoutHeader = () => {
|
|
|
285
315
|
};
|
|
286
316
|
function ForgeLayoutHeader(props) {
|
|
287
317
|
const { areControlsGrouped = true, children } = props;
|
|
288
|
-
return
|
|
318
|
+
return jsx(ForgeLayoutHeaderContext.Provider, {
|
|
289
319
|
value: {
|
|
290
320
|
areControlsGrouped
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
321
|
+
},
|
|
322
|
+
children: jsxs("header", {
|
|
323
|
+
className: styles$2.header,
|
|
324
|
+
children: [jsx("div", {
|
|
325
|
+
className: styles$2.headerBg
|
|
326
|
+
}), children]
|
|
327
|
+
})
|
|
328
|
+
});
|
|
297
329
|
}
|
|
298
330
|
const controls = "_controls_1moaa_4";
|
|
299
331
|
const breadcrumbNavigationContainer = "_breadcrumbNavigationContainer_1moaa_11";
|
|
@@ -326,9 +358,14 @@ function ForgeLayoutControls(props) {
|
|
|
326
358
|
if (navState !== visibleWhenNavStateIs) {
|
|
327
359
|
return null;
|
|
328
360
|
}
|
|
329
|
-
return
|
|
330
|
-
|
|
331
|
-
|
|
361
|
+
return jsx(Fragment, {
|
|
362
|
+
children: areControlsGrouped ? jsx("div", {
|
|
363
|
+
className: styles$1.controls,
|
|
364
|
+
children
|
|
365
|
+
}) : jsx(Fragment, {
|
|
366
|
+
children
|
|
367
|
+
})
|
|
368
|
+
});
|
|
332
369
|
}
|
|
333
370
|
function ForgeLayoutBreadcrumbsNavigation(props) {
|
|
334
371
|
const { children } = props;
|
|
@@ -344,114 +381,139 @@ function ForgeLayoutBreadcrumbsNavigation(props) {
|
|
|
344
381
|
breadcrumbs: breadcrumbs2
|
|
345
382
|
};
|
|
346
383
|
}, [children]);
|
|
347
|
-
return
|
|
348
|
-
className: styles$1.breadcrumbNavigationContainer
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
384
|
+
return jsxs("div", {
|
|
385
|
+
className: styles$1.breadcrumbNavigationContainer,
|
|
386
|
+
children: [jsx("div", {
|
|
387
|
+
className: styles$1.backButtonContainer,
|
|
388
|
+
children: backButton2
|
|
389
|
+
}), jsx("div", {
|
|
390
|
+
className: styles$1.breadcrumbsContainer,
|
|
391
|
+
children: breadcrumbs
|
|
392
|
+
})]
|
|
393
|
+
});
|
|
354
394
|
}
|
|
355
395
|
function ForgeLayoutBackButton(props) {
|
|
356
396
|
const _a = props, { children } = _a, restButtonProps = __objRest(_a, ["children"]);
|
|
357
|
-
return
|
|
358
|
-
className: styles$1.backButton
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
397
|
+
return jsxs(UnstyledButton, __spreadProps(__spreadValues({}, restButtonProps), {
|
|
398
|
+
className: styles$1.backButton,
|
|
399
|
+
children: [jsx(Icon, {
|
|
400
|
+
symbol: ArrowBack,
|
|
401
|
+
size: "sm"
|
|
402
|
+
}), jsx(Text, {
|
|
403
|
+
variant: "subtitle1",
|
|
404
|
+
children
|
|
405
|
+
})]
|
|
406
|
+
}));
|
|
365
407
|
}
|
|
366
408
|
function ForgeLayoutBreadcrumbs(props) {
|
|
367
409
|
const { children } = props;
|
|
368
410
|
const breadcrumbs = useMemo(() => flattenChildren(children), [children]);
|
|
369
|
-
return
|
|
411
|
+
return jsx(HorizontalStack, {
|
|
370
412
|
blockAlign: "center",
|
|
371
|
-
gap: "0.5"
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
413
|
+
gap: "0.5",
|
|
414
|
+
children: breadcrumbs.map((breadcrumb, idx) => {
|
|
415
|
+
if (idx === 0) {
|
|
416
|
+
return jsx(Fragment$1, {
|
|
417
|
+
children: breadcrumb
|
|
418
|
+
}, idx);
|
|
419
|
+
} else {
|
|
420
|
+
return jsxs(Fragment$1, {
|
|
421
|
+
children: [jsx(ForgeLayoutBreadcrumb, {
|
|
422
|
+
children: ">"
|
|
423
|
+
}, idx), breadcrumb]
|
|
424
|
+
}, idx);
|
|
425
|
+
}
|
|
426
|
+
})
|
|
427
|
+
});
|
|
385
428
|
}
|
|
386
429
|
function ForgeLayoutBreadcrumb(props) {
|
|
387
430
|
const { children } = props;
|
|
388
|
-
return
|
|
431
|
+
return jsx(Text, {
|
|
389
432
|
variant: "body1",
|
|
390
|
-
color: "neutral.700"
|
|
391
|
-
|
|
433
|
+
color: "neutral.700",
|
|
434
|
+
children
|
|
435
|
+
});
|
|
392
436
|
}
|
|
393
437
|
function ForgeLayoutModeSwitcher(props) {
|
|
394
438
|
const { onModeChange } = props;
|
|
395
439
|
const { mode } = useForgeLayout();
|
|
396
440
|
const [isOpen, setIsOpen] = useState(false);
|
|
397
|
-
return
|
|
398
|
-
|
|
399
|
-
|
|
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
|
-
|
|
441
|
+
return jsxs($de32f1b87079253c$export$2e1e1122cf0cba88, {
|
|
442
|
+
children: [jsxs($d2b4bc8c273e7be6$export$353f5b6fc5456de1, {
|
|
443
|
+
className: classNames(styles$1.trigger, isOpen && styles$1.triggerPopoverOpen),
|
|
444
|
+
onPress: () => setIsOpen(true),
|
|
445
|
+
children: [jsx(Text, {
|
|
446
|
+
variant: "subtitle1",
|
|
447
|
+
color: mode === "test" ? "warning.600" : "positive.600",
|
|
448
|
+
truncate: true,
|
|
449
|
+
children: mode === "test" ? TEST_MODE : PRODUCTION_MODE
|
|
450
|
+
}), jsx(Icon, {
|
|
451
|
+
symbol: ExpandMore400,
|
|
452
|
+
size: "md",
|
|
453
|
+
color: "neutral.500"
|
|
454
|
+
})]
|
|
455
|
+
}), jsx($07b14b47974efb58$export$5b6b19405a83ff9d, {
|
|
456
|
+
className: styles$1.popover,
|
|
457
|
+
offset: POPOVER_OFFSET,
|
|
458
|
+
crossOffset: POPOVER_CROSS_OFFSET,
|
|
459
|
+
isOpen,
|
|
460
|
+
onOpenChange: setIsOpen,
|
|
461
|
+
children: jsx($de32f1b87079253c$export$3ddf2d174ce01153, {
|
|
462
|
+
children: jsxs(VerticalStack, {
|
|
463
|
+
gap: "1",
|
|
464
|
+
children: [jsx(Text, {
|
|
465
|
+
variant: "subtitle1",
|
|
466
|
+
color: "neutral.800",
|
|
467
|
+
children: "Instance Switcher"
|
|
468
|
+
}), jsxs(RadioGroup, {
|
|
469
|
+
"aria-label": "Select a mode",
|
|
470
|
+
onChange: onModeChange,
|
|
471
|
+
value: mode,
|
|
472
|
+
children: [jsx(ForgeLayoutModeSwitcherRadioGroupItem, {
|
|
473
|
+
value: "test"
|
|
474
|
+
}), jsx(ForgeLayoutModeSwitcherRadioGroupItem, {
|
|
475
|
+
value: "production"
|
|
476
|
+
})]
|
|
477
|
+
})]
|
|
478
|
+
})
|
|
479
|
+
})
|
|
480
|
+
})]
|
|
481
|
+
});
|
|
428
482
|
}
|
|
429
483
|
function ForgeLayoutModeSwitcherRadioGroupItem(props) {
|
|
430
484
|
const _a = props, { value } = _a, restProps = __objRest(_a, ["value"]);
|
|
431
485
|
const state = useRadioGroupContext();
|
|
432
486
|
const isSelected = value === state.selectedValue;
|
|
433
|
-
return
|
|
487
|
+
return jsx(RadioGroup.Item, __spreadProps(__spreadValues({
|
|
434
488
|
value
|
|
435
|
-
}, restProps),
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
489
|
+
}, restProps), {
|
|
490
|
+
children: jsxs(VerticalStack, {
|
|
491
|
+
children: [jsx(Text, {
|
|
492
|
+
variant: "subtitle2",
|
|
493
|
+
color: isSelected ? "primary.800" : "primary.700",
|
|
494
|
+
children: value === "test" ? TEST_MODE : PRODUCTION_MODE
|
|
495
|
+
}), jsxs(Text, {
|
|
496
|
+
variant: "overline",
|
|
497
|
+
children: ["View data using the", " ", jsxs(Text, {
|
|
498
|
+
color: value === "test" ? "warning.600" : "positive.600",
|
|
499
|
+
children: [value === "test" ? TEST_MODE.toUpperCase() : PRODUCTION_MODE.toUpperCase(), " ", "API", " "]
|
|
500
|
+
}), "keys"]
|
|
501
|
+
})]
|
|
502
|
+
})
|
|
503
|
+
}));
|
|
443
504
|
}
|
|
444
505
|
function ForgeLayoutSearch(props) {
|
|
445
506
|
const _a = props, { "aria-label": ariaLabel = "Search for content" } = _a, textFieldProps = __objRest(_a, ["aria-label"]);
|
|
446
|
-
return
|
|
447
|
-
className: styles$1.searchContainer
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
507
|
+
return jsx("div", {
|
|
508
|
+
className: styles$1.searchContainer,
|
|
509
|
+
children: jsx(TextField, __spreadValues({
|
|
510
|
+
size: "sm",
|
|
511
|
+
type: "search",
|
|
512
|
+
"aria-label": ariaLabel,
|
|
513
|
+
placeholder: "/ search",
|
|
514
|
+
iconAtStart: Search
|
|
515
|
+
}, textFieldProps))
|
|
516
|
+
});
|
|
455
517
|
}
|
|
456
518
|
const ForgeLayout$1 = "_ForgeLayout_irfr5_4";
|
|
457
519
|
const modeTest = "_modeTest_irfr5_21";
|
|
@@ -485,25 +547,29 @@ function ForgeLayout(props) {
|
|
|
485
547
|
navState
|
|
486
548
|
};
|
|
487
549
|
}, [mode, navState]);
|
|
488
|
-
return
|
|
489
|
-
value: context
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
550
|
+
return jsxs(ForgeLayoutContext.Provider, {
|
|
551
|
+
value: context,
|
|
552
|
+
children: [jsx("div", {
|
|
553
|
+
className: bgClassName
|
|
554
|
+
}), jsx("div", {
|
|
555
|
+
className,
|
|
556
|
+
children
|
|
557
|
+
})]
|
|
558
|
+
});
|
|
495
559
|
}
|
|
496
560
|
function ForgeLayoutBody(props) {
|
|
497
561
|
const { children } = props;
|
|
498
|
-
return
|
|
499
|
-
className: styles.body
|
|
500
|
-
|
|
562
|
+
return jsx("div", {
|
|
563
|
+
className: styles.body,
|
|
564
|
+
children
|
|
565
|
+
});
|
|
501
566
|
}
|
|
502
567
|
function ForgeLayoutContent(props) {
|
|
503
568
|
const { children } = props;
|
|
504
|
-
return
|
|
505
|
-
className: styles.content
|
|
506
|
-
|
|
569
|
+
return jsx("main", {
|
|
570
|
+
className: styles.content,
|
|
571
|
+
children
|
|
572
|
+
});
|
|
507
573
|
}
|
|
508
574
|
ForgeLayout.Nav = ForgeLayoutNav;
|
|
509
575
|
ForgeLayout.NavSection = ForgeLayoutNavSection;
|