@easypost/easy-ui 1.0.0-alpha.113 → 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/index.js +8 -8
- package/AlertBadge/index.mjs +8 -8
- package/Badge/index.js +12 -12
- package/Badge/index.mjs +12 -12
- package/Banner/index.js +7 -7
- package/Banner/index.mjs +7 -7
- package/Button/index.js +1 -1
- package/Button/index.mjs +1 -1
- package/CHANGELOG.md +6 -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 +14 -14
- package/CheckableCard/index.mjs +14 -14
- package/Checkbox/index.js +1 -1
- package/Checkbox/index.mjs +1 -1
- package/CodeBlock/index.js +30 -30
- package/CodeBlock/index.mjs +30 -30
- package/CodeSnippet/index.js +1 -1
- package/CodeSnippet/index.mjs +1 -1
- package/ColorPicker/index.js +24 -24
- package/ColorPicker/index.mjs +24 -24
- package/CustomerPortalLayout/index.js +36 -36
- package/CustomerPortalLayout/index.mjs +36 -36
- package/DataGrid/index.js +78 -78
- package/DataGrid/index.mjs +78 -78
- package/DatePicker/index.js +6 -6
- package/DatePicker/index.mjs +6 -6
- package/DateRangePicker/index.js +6 -6
- package/DateRangePicker/index.mjs +6 -6
- package/Drawer/index.js +24 -24
- package/Drawer/index.mjs +24 -24
- package/DropdownButton/index.js +7 -7
- package/DropdownButton/index.mjs +7 -7
- package/EmptyStateCard/index.js +18 -18
- package/EmptyStateCard/index.mjs +18 -18
- package/FocusedProductLayout/index.js +38 -38
- package/FocusedProductLayout/index.mjs +38 -38
- package/ForgeLayout/index.js +91 -91
- package/ForgeLayout/index.mjs +92 -92
- package/FormLayout/index.js +11 -11
- package/FormLayout/index.mjs +11 -11
- 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 +7 -7
- package/IconButton/index.mjs +7 -7
- 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 +39 -39
- package/Modal/index.mjs +39 -39
- package/MultiSelect/index.js +30 -30
- package/MultiSelect/index.mjs +31 -31
- package/MultipageSection/index.js +28 -28
- package/MultipageSection/index.mjs +28 -28
- package/NexusLayout/index.js +44 -44
- package/NexusLayout/index.mjs +44 -44
- package/Notification/index.js +1 -1
- package/Notification/index.mjs +1 -1
- package/Pagination/index.js +21 -21
- package/Pagination/index.mjs +21 -21
- package/PillGroup/index.js +1 -1
- package/PillGroup/index.mjs +1 -1
- package/PlanCard/illustrations/Building01/index.js +88 -88
- package/PlanCard/illustrations/Building01/index.mjs +88 -88
- package/PlanCard/illustrations/Building02/index.js +33 -33
- package/PlanCard/illustrations/Building02/index.mjs +33 -33
- package/PlanCard/illustrations/Building03/index.js +120 -120
- package/PlanCard/illustrations/Building03/index.mjs +120 -120
- package/PlanCard/illustrations/Building04/index.js +236 -236
- package/PlanCard/illustrations/Building04/index.mjs +236 -236
- package/PlanCard/index.js +17 -17
- package/PlanCard/index.mjs +17 -17
- package/ProductLayout/index.js +48 -48
- package/ProductLayout/index.mjs +48 -48
- package/Provider/index.js +7 -7
- package/Provider/index.mjs +7 -7
- package/RadioButtonGroup/index.js +5 -5
- package/RadioButtonGroup/index.mjs +5 -5
- 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/index.js +70 -70
- package/SearchNav/index.mjs +71 -71
- package/SectionCard/index.js +16 -16
- package/SectionCard/index.mjs +16 -16
- package/Select/index.js +20 -20
- package/Select/index.mjs +20 -20
- 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 +11 -11
- package/SplitToggleCard/index.mjs +11 -11
- 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 +7 -7
- package/TabPanels/index.mjs +7 -7
- package/Tabs/index.js +1 -1
- package/Tabs/index.mjs +1 -1
- package/Text/index.js +1 -1
- package/Text/index.mjs +1 -1
- package/TextField/index.js +1 -1
- package/TextField/index.mjs +1 -1
- package/Textarea/index.js +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 +7 -7
- package/ToggleCard/index.mjs +7 -7
- 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 +39 -39
- package/VerticalNav/index.mjs +39 -39
- package/VerticalStack/index.js +1 -1
- package/VerticalStack/index.mjs +1 -1
- package/__chunks__/{Button-C3vDXJsJ.js → Button-CQdi4TMV.js} +7 -7
- package/__chunks__/{Button-Dexauftx.mjs → Button-JL1YQxJ5.mjs} +7 -7
- package/__chunks__/{Calendar-BEbdigVB.js → Calendar-C9zdRov0.js} +3 -3
- package/__chunks__/{Calendar-BOxw8lwX.mjs → Calendar-DLzAtdfg.mjs} +3 -3
- package/__chunks__/{CalendarBase-3a9i7QNo.mjs → CalendarBase-DJ38_qK6.mjs} +32 -32
- package/__chunks__/{CalendarBase-Bx8bdXeT.js → CalendarBase-M-f289w8.js} +32 -32
- package/__chunks__/{Card-8778avMv.mjs → Card-BgjWYPVY.mjs} +5 -5
- package/__chunks__/{Card-DIZFYg6E.js → Card-LPIW5drP.js} +5 -5
- package/__chunks__/{Checkbox-DFWhjlaO.js → Checkbox-B_-6lfKk.js} +14 -14
- package/__chunks__/{Checkbox-C-NlI-Ym.mjs → Checkbox-DcaO0fC3.mjs} +14 -14
- package/__chunks__/{CodeSnippet-BCOMwE07.js → CodeSnippet-25l4r2Gh.js} +5 -5
- package/__chunks__/{CodeSnippet-CWnMHdVu.mjs → CodeSnippet-B3nsMpvq.mjs} +5 -5
- package/__chunks__/{DatePickerBase-C4PwUr9x.mjs → DatePickerBase-BQc8LKWg.mjs} +30 -30
- package/__chunks__/{DatePickerBase-XoRply_u.js → DatePickerBase-BYYfRTEY.js} +30 -30
- package/__chunks__/{EasyPostLogo-D3WNdZ29.js → EasyPostLogo-C9-Q0lSn.js} +5 -5
- package/__chunks__/{EasyPostLogo-tf6CCEAq.mjs → EasyPostLogo-DgIgAGa3.mjs} +5 -5
- package/__chunks__/{HelpMenu-8r0cjx5z.mjs → HelpMenu-BZRV42ab.mjs} +14 -14
- package/__chunks__/{HelpMenu-DBo_fklD.js → HelpMenu-C2t8KQuU.js} +14 -14
- package/__chunks__/{HorizontalGrid-BAvSeg39.js → HorizontalGrid-CAoDcmPW.js} +2 -2
- package/__chunks__/{HorizontalGrid-C4MBFEH-.mjs → HorizontalGrid-DbLeJBt8.mjs} +2 -2
- package/__chunks__/{HorizontalStack-BkE82C73.mjs → HorizontalStack-CJavrBHm.mjs} +2 -2
- package/__chunks__/{HorizontalStack-DidoI4Ks.js → HorizontalStack-CWdKKY8L.js} +2 -2
- package/__chunks__/{Icon-DzTns8u5.mjs → Icon-BIpaQJ_I.mjs} +3 -3
- package/__chunks__/{Icon-BVa5ddiD.js → Icon-BRlbo3RF.js} +3 -3
- package/__chunks__/{InputCaption-Dkyn1sg6.js → InputCaption-CccF4ynE.js} +6 -6
- package/__chunks__/{InputCaption-B8bZH6sX.mjs → InputCaption-DoyGkWQe.mjs} +6 -6
- package/__chunks__/{InputField-BTrYBVAD.mjs → InputField-CAY9O90X.mjs} +21 -21
- package/__chunks__/{InputField-Dvkk5R1K.js → InputField-DGb4ZDoR.js} +21 -21
- package/__chunks__/{InputIcon-BLJ6dx_5.mjs → InputIcon-CEATdJ1j.mjs} +4 -4
- package/__chunks__/{InputIcon-BSIAXX9k.js → InputIcon-DDKBJ_Tk.js} +4 -4
- package/__chunks__/{KebabButton-DSK0ISAn.mjs → KebabButton-D-5Mjaj0.mjs} +7 -7
- package/__chunks__/{KebabButton-3FnxY-Fz.js → KebabButton-TbapERgy.js} +7 -7
- package/__chunks__/{Menu-C2F4fvhd.mjs → Menu-Ci1FGh8B.mjs} +29 -29
- package/__chunks__/{Menu-Du8SsMeJ.js → Menu-MGDv1tob.js} +29 -29
- package/__chunks__/{Notification-CeJn5Qq1.js → Notification-DDQHWloB.js} +21 -21
- package/__chunks__/{Notification-CgUT2gv6.mjs → Notification-DnNx0rb6.mjs} +21 -21
- package/__chunks__/{PillGroup-rTS853Rr.js → PillGroup-BK8VCf3B.js} +14 -14
- package/__chunks__/{PillGroup-EJ8t8SrT.mjs → PillGroup-DN72MPhg.mjs} +14 -14
- package/__chunks__/{RadioGroup-DBgIqOkZ.mjs → RadioGroup-BfKaJnSo.mjs} +19 -19
- package/__chunks__/{RadioGroup-BFqH1Csi.js → RadioGroup-BiCqtR0F.js} +19 -19
- package/__chunks__/{RangeCalendar-BSsmX9l4.mjs → RangeCalendar-BdTjX8NT.mjs} +3 -3
- package/__chunks__/{RangeCalendar-Do2nei5A.js → RangeCalendar-Dz6LyRYS.js} +3 -3
- package/__chunks__/{SelectOverlay-DjiJHthj.js → SelectOverlay-Bva0SG8D.js} +20 -20
- package/__chunks__/{SelectOverlay-DUIIhF4t.mjs → SelectOverlay-q23ZLLi4.mjs} +20 -20
- package/__chunks__/{SelectorErrorTooltip-BMxbuFiM.js → SelectorErrorTooltip-BNLrFRLN.js} +8 -8
- package/__chunks__/{SelectorErrorTooltip-BC-1JoX3.mjs → SelectorErrorTooltip-rO2-k3Gl.mjs} +8 -8
- package/__chunks__/{Spinner-2PFCOK3I.mjs → Spinner-COsekFr1.mjs} +7 -7
- package/__chunks__/{Spinner-Dd68v9QX.js → Spinner-vRnrcEz0.js} +7 -7
- package/__chunks__/{Stepper-q3YNLglj.mjs → Stepper-DlI-16t-.mjs} +17 -17
- package/__chunks__/{Stepper-BZ90AIx0.js → Stepper-lhcjfVFY.js} +17 -17
- package/__chunks__/{TabNav-BnpNl7tj.mjs → TabNav-BNhQF0b0.mjs} +4 -4
- package/__chunks__/{TabNav-CLVG0bL2.js → TabNav-bVgyfEV7.js} +4 -4
- package/__chunks__/{Tabs-CtyYEye0.mjs → Tabs-BaROnbKg.mjs} +14 -14
- package/__chunks__/{Tabs-5_61DIBw.js → Tabs-DSngzN9A.js} +14 -14
- package/__chunks__/{Text-u9mYLeWj.mjs → Text-D6oT5WJQ.mjs} +2 -2
- package/__chunks__/{Text-C4CEsglh.js → Text-DkzMEqky.js} +2 -2
- package/__chunks__/{TextField-D1JGaTQv.mjs → TextField-818kTElu.mjs} +3 -3
- package/__chunks__/{TextField-DE1vPtQm.js → TextField-DKQVJPP_.js} +3 -3
- package/__chunks__/{Theme-unLHjjnm.js → Theme-C2nSZUpG.js} +10 -10
- package/__chunks__/{Theme-CyUCrGdN.mjs → Theme-M__gFMM3.mjs} +10 -10
- package/__chunks__/{Toggle-BHzAGPDh.js → Toggle-BmJjrdVn.js} +11 -11
- package/__chunks__/{Toggle-DioYP2KQ.mjs → Toggle-DlDQ7rr2.mjs} +11 -11
- package/__chunks__/{Tooltip-COjtKErw.js → Tooltip-BSMvNula.js} +9 -9
- package/__chunks__/{Tooltip-BKGkKnOx.mjs → Tooltip-BXRi0h4E.mjs} +9 -9
- package/__chunks__/{UnstyledButton-_YQekhlm.js → UnstyledButton-DW8CjaXN.js} +2 -2
- package/__chunks__/{UnstyledButton-BCg7eEyP.mjs → UnstyledButton-DxJLvL-G.mjs} +2 -2
- package/__chunks__/{VerticalStack-CunLpHRv.js → VerticalStack-BHkiocKU.js} +2 -2
- package/__chunks__/{VerticalStack-Cbdpucbh.mjs → VerticalStack-DoMqBfYD.mjs} +2 -2
- package/__chunks__/{useEdgeInterceptors-BBmo6MI4.mjs → useEdgeInterceptors-OZmGXvtF.mjs} +6 -6
- package/__chunks__/{useEdgeInterceptors-BLxn3eUi.js → useEdgeInterceptors-Rb2Hf0v8.js} +6 -6
- package/package.json +1 -1
- package/__chunks__/jsx-runtime-CH1d66I3.js +0 -320
- package/__chunks__/jsx-runtime-DTpFD6nx.mjs +0 -321
package/SearchNav/index.js
CHANGED
|
@@ -31,22 +31,22 @@ var __objRest = (source, exclude) => {
|
|
|
31
31
|
return target;
|
|
32
32
|
};
|
|
33
33
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
34
|
-
const jsxRuntime = require("
|
|
34
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
35
35
|
const React = require("react");
|
|
36
36
|
const utilities_css = require("../utilities/css.js");
|
|
37
37
|
const utilities_react = require("../utilities/react.js");
|
|
38
|
-
const Menu = require("../__chunks__/Menu-
|
|
39
|
-
const Text = require("../__chunks__/Text-
|
|
40
|
-
const Icon = require("../__chunks__/Icon-
|
|
41
|
-
const UnstyledButton = require("../__chunks__/UnstyledButton-
|
|
42
|
-
const SelectOverlay = require("../__chunks__/SelectOverlay-
|
|
38
|
+
const Menu = require("../__chunks__/Menu-MGDv1tob.js");
|
|
39
|
+
const Text = require("../__chunks__/Text-DkzMEqky.js");
|
|
40
|
+
const Icon = require("../__chunks__/Icon-BRlbo3RF.js");
|
|
41
|
+
const UnstyledButton = require("../__chunks__/UnstyledButton-DW8CjaXN.js");
|
|
42
|
+
const SelectOverlay = require("../__chunks__/SelectOverlay-Bva0SG8D.js");
|
|
43
43
|
const useTriggerWidth = require("../__chunks__/useTriggerWidth-NhYqZmlX.js");
|
|
44
44
|
const ExpandMore400 = require("../__chunks__/ExpandMore400-CJpvxyJm.js");
|
|
45
45
|
const Close = require("../__chunks__/Close-BQ2IlPyf.js");
|
|
46
46
|
const Menu$1 = require("../__chunks__/Menu-OacI_98l.js");
|
|
47
47
|
const Search$1 = require("../__chunks__/Search-BY7IgEyX.js");
|
|
48
|
-
const HorizontalStack = require("../__chunks__/HorizontalStack-
|
|
49
|
-
const Button = require("../__chunks__/Button-
|
|
48
|
+
const HorizontalStack = require("../__chunks__/HorizontalStack-CWdKKY8L.js");
|
|
49
|
+
const Button = require("../__chunks__/Button-CQdi4TMV.js");
|
|
50
50
|
function _interopNamespaceDefault(e) {
|
|
51
51
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
52
52
|
if (e) {
|
|
@@ -82,7 +82,7 @@ const styles$7 = {
|
|
|
82
82
|
};
|
|
83
83
|
function Separator(props) {
|
|
84
84
|
const { group } = props;
|
|
85
|
-
return jsxRuntime.
|
|
85
|
+
return jsxRuntime.jsx("div", {
|
|
86
86
|
className: utilities_css.classNames(styles$7.separator, styles$7[utilities_css.variationName("group", group)])
|
|
87
87
|
});
|
|
88
88
|
}
|
|
@@ -100,14 +100,14 @@ function useInternalSearchNavContext() {
|
|
|
100
100
|
}
|
|
101
101
|
function LogoGroup(_props) {
|
|
102
102
|
const { logo: logo2, title, selector } = useInternalSearchNavContext();
|
|
103
|
-
return jsxRuntime.
|
|
103
|
+
return jsxRuntime.jsxs("div", {
|
|
104
104
|
className: utilities_css.classNames(styles$6.logoGroup),
|
|
105
|
-
children: [logo2, title && jsxRuntime.
|
|
106
|
-
children: [jsxRuntime.
|
|
105
|
+
children: [logo2, title && jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
106
|
+
children: [jsxRuntime.jsx(Separator, {
|
|
107
107
|
group: "logo"
|
|
108
108
|
}), title]
|
|
109
|
-
}), selector && jsxRuntime.
|
|
110
|
-
children: [jsxRuntime.
|
|
109
|
+
}), selector && jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
110
|
+
children: [jsxRuntime.jsx(Separator, {
|
|
111
111
|
group: "logo"
|
|
112
112
|
}), selector]
|
|
113
113
|
})]
|
|
@@ -120,7 +120,7 @@ const styles$5 = {
|
|
|
120
120
|
};
|
|
121
121
|
function Search(props) {
|
|
122
122
|
const { children } = props;
|
|
123
|
-
return jsxRuntime.
|
|
123
|
+
return jsxRuntime.jsx("div", {
|
|
124
124
|
className: utilities_css.classNames(styles$5.search),
|
|
125
125
|
children
|
|
126
126
|
});
|
|
@@ -176,43 +176,43 @@ const styles$4 = {
|
|
|
176
176
|
function CTAGroup(_props) {
|
|
177
177
|
const { menuOverlayProps, ctaMenuSymbol, primaryCTAItem, secondaryCTAItems } = useInternalSearchNavContext();
|
|
178
178
|
const totalItems = (secondaryCTAItems == null ? void 0 : secondaryCTAItems.length) || 0;
|
|
179
|
-
return jsxRuntime.
|
|
180
|
-
children: [jsxRuntime.
|
|
179
|
+
return jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
180
|
+
children: [jsxRuntime.jsxs("div", {
|
|
181
181
|
className: utilities_css.classNames(styles$4.ctaGroup, styles$4.ctaGroupExpanded),
|
|
182
182
|
children: [secondaryCTAItems == null ? void 0 : secondaryCTAItems.map((item, index) => {
|
|
183
183
|
const isLastChild = index === totalItems - 1;
|
|
184
184
|
const itemEle = item;
|
|
185
|
-
return jsxRuntime.
|
|
186
|
-
children: [itemEle, !isLastChild && jsxRuntime.
|
|
185
|
+
return jsxRuntime.jsxs(React.Fragment, {
|
|
186
|
+
children: [itemEle, !isLastChild && jsxRuntime.jsx(Separator, {
|
|
187
187
|
group: "cta"
|
|
188
188
|
})]
|
|
189
189
|
}, itemEle.key);
|
|
190
|
-
}), primaryCTAItem && jsxRuntime.
|
|
191
|
-
children: [jsxRuntime.
|
|
190
|
+
}), primaryCTAItem && jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
191
|
+
children: [jsxRuntime.jsx(Separator, {
|
|
192
192
|
group: "cta"
|
|
193
193
|
}), primaryCTAItem]
|
|
194
194
|
})]
|
|
195
|
-
}), jsxRuntime.
|
|
195
|
+
}), jsxRuntime.jsxs("div", {
|
|
196
196
|
className: utilities_css.classNames(styles$4.ctaGroup, styles$4.ctaGroupMenu),
|
|
197
|
-
children: [jsxRuntime.
|
|
198
|
-
children: [jsxRuntime.
|
|
199
|
-
children: jsxRuntime.
|
|
197
|
+
children: [jsxRuntime.jsxs(Menu.Menu, {
|
|
198
|
+
children: [jsxRuntime.jsx(Menu.Menu.Trigger, {
|
|
199
|
+
children: jsxRuntime.jsxs(UnstyledButton.UnstyledButton, {
|
|
200
200
|
className: utilities_css.classNames(styles$4.menuBtn),
|
|
201
|
-
children: [jsxRuntime.
|
|
201
|
+
children: [jsxRuntime.jsx(Icon.Icon, {
|
|
202
202
|
symbol: ctaMenuSymbol ? ctaMenuSymbol : Help
|
|
203
|
-
}), jsxRuntime.
|
|
203
|
+
}), jsxRuntime.jsx(Text.Text, {
|
|
204
204
|
visuallyHidden: true,
|
|
205
205
|
children: "menu"
|
|
206
206
|
})]
|
|
207
207
|
})
|
|
208
|
-
}), jsxRuntime.
|
|
208
|
+
}), jsxRuntime.jsx(Menu.Menu.Overlay, __spreadProps(__spreadValues({
|
|
209
209
|
placement: "bottom right"
|
|
210
210
|
}, menuOverlayProps), {
|
|
211
|
-
children: jsxRuntime.
|
|
211
|
+
children: jsxRuntime.jsx(Menu.Menu.Section, {
|
|
212
212
|
"aria-label": "Nav actions",
|
|
213
213
|
children: secondaryCTAItems == null ? void 0 : secondaryCTAItems.map((item) => {
|
|
214
214
|
const itemEle = item;
|
|
215
|
-
return jsxRuntime.
|
|
215
|
+
return jsxRuntime.jsx(Menu.Menu.Item, {
|
|
216
216
|
href: itemEle.props.href,
|
|
217
217
|
target: itemEle.props.target,
|
|
218
218
|
children: itemEle.props.label
|
|
@@ -220,8 +220,8 @@ function CTAGroup(_props) {
|
|
|
220
220
|
})
|
|
221
221
|
})
|
|
222
222
|
}))]
|
|
223
|
-
}), primaryCTAItem && jsxRuntime.
|
|
224
|
-
children: [jsxRuntime.
|
|
223
|
+
}), primaryCTAItem && jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
224
|
+
children: [jsxRuntime.jsx(Separator, {
|
|
225
225
|
group: "cta"
|
|
226
226
|
}), primaryCTAItem]
|
|
227
227
|
})]
|
|
@@ -235,7 +235,7 @@ const styles$3 = {
|
|
|
235
235
|
};
|
|
236
236
|
function Logo(props) {
|
|
237
237
|
const { children } = props;
|
|
238
|
-
return jsxRuntime.
|
|
238
|
+
return jsxRuntime.jsx("div", {
|
|
239
239
|
className: utilities_css.classNames(styles$3.logo),
|
|
240
240
|
children
|
|
241
241
|
});
|
|
@@ -247,11 +247,11 @@ const styles$2 = {
|
|
|
247
247
|
};
|
|
248
248
|
function SecondaryCTAItem(props) {
|
|
249
249
|
const _a = props, { symbol, label, hideLabelOnDesktop = false } = _a, restProps = __objRest(_a, ["symbol", "label", "hideLabelOnDesktop"]);
|
|
250
|
-
return jsxRuntime.
|
|
250
|
+
return jsxRuntime.jsxs(UnstyledButton.UnstyledButton, __spreadProps(__spreadValues({}, restProps), {
|
|
251
251
|
className: utilities_css.classNames(styles$2.cta),
|
|
252
|
-
children: [symbol && jsxRuntime.
|
|
252
|
+
children: [symbol && jsxRuntime.jsx(Icon.Icon, {
|
|
253
253
|
symbol
|
|
254
|
-
}), hideLabelOnDesktop ? jsxRuntime.
|
|
254
|
+
}), hideLabelOnDesktop ? jsxRuntime.jsx(Text.Text, {
|
|
255
255
|
visuallyHidden: true,
|
|
256
256
|
children: label
|
|
257
257
|
}) : label]
|
|
@@ -268,18 +268,18 @@ function SelectorTrigger(props) {
|
|
|
268
268
|
var _a;
|
|
269
269
|
const { valueProps, label } = props;
|
|
270
270
|
const { triggerProps, triggerRef, selectState } = SelectOverlay.useInternalSelectContext();
|
|
271
|
-
return jsxRuntime.
|
|
272
|
-
children: [jsxRuntime.
|
|
271
|
+
return jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
272
|
+
children: [jsxRuntime.jsx(SelectOverlay.$bdd25dc72710631f$export$cbd84cdb2e668835, {
|
|
273
273
|
state: selectState,
|
|
274
274
|
triggerRef,
|
|
275
275
|
label
|
|
276
|
-
}), jsxRuntime.
|
|
276
|
+
}), jsxRuntime.jsxs(UnstyledButton.UnstyledButton, __spreadProps(__spreadValues({}, triggerProps), {
|
|
277
277
|
ref: triggerRef,
|
|
278
278
|
className: utilities_css.classNames(styles$1.triggerBtn),
|
|
279
|
-
children: [jsxRuntime.
|
|
279
|
+
children: [jsxRuntime.jsx("span", __spreadProps(__spreadValues({}, valueProps), {
|
|
280
280
|
className: utilities_css.classNames(styles$1.text),
|
|
281
281
|
children: (_a = selectState.selectedItem) == null ? void 0 : _a.rendered
|
|
282
|
-
})), jsxRuntime.
|
|
282
|
+
})), jsxRuntime.jsx(Icon.Icon, {
|
|
283
283
|
symbol: ExpandMore400.ExpandMore400,
|
|
284
284
|
size: "xs"
|
|
285
285
|
})]
|
|
@@ -301,12 +301,12 @@ function Selector(props) {
|
|
|
301
301
|
triggerWidth
|
|
302
302
|
};
|
|
303
303
|
}, [triggerProps, listBoxPropsFromSelect, selectState, triggerWidth]);
|
|
304
|
-
return jsxRuntime.
|
|
304
|
+
return jsxRuntime.jsxs(SelectOverlay.InternalSelectContext.Provider, {
|
|
305
305
|
value: context,
|
|
306
|
-
children: [jsxRuntime.
|
|
306
|
+
children: [jsxRuntime.jsx(SelectorTrigger, {
|
|
307
307
|
valueProps,
|
|
308
308
|
label
|
|
309
|
-
}), jsxRuntime.
|
|
309
|
+
}), jsxRuntime.jsx(SelectOverlay.SelectOverlay, {})]
|
|
310
310
|
});
|
|
311
311
|
}
|
|
312
312
|
Selector.displayName = "SearchNav.Selector";
|
|
@@ -329,48 +329,48 @@ function CondensedSearchNav() {
|
|
|
329
329
|
const [isSearchOpen, setIsSearchOpen] = React.useState(false);
|
|
330
330
|
const { search: search2, selectorChildren, secondaryCTAItems, primaryCTAItem, selectorLabel, menuOverlayProps, condensedBehavior } = useInternalSearchNavContext();
|
|
331
331
|
const hasMenuToShow = !!selectorChildren || !!secondaryCTAItems;
|
|
332
|
-
return jsxRuntime.
|
|
332
|
+
return jsxRuntime.jsx("div", {
|
|
333
333
|
className: utilities_css.classNames(styles.condensed),
|
|
334
|
-
children: isSearchOpen ? jsxRuntime.
|
|
334
|
+
children: isSearchOpen ? jsxRuntime.jsxs("div", {
|
|
335
335
|
className: utilities_css.classNames(styles.condensedSearch),
|
|
336
|
-
children: [search2, jsxRuntime.
|
|
336
|
+
children: [search2, jsxRuntime.jsx(UnstyledButton.UnstyledButton, {
|
|
337
337
|
className: utilities_css.classNames(styles.btn),
|
|
338
338
|
onPress: () => setIsSearchOpen((prev) => !prev),
|
|
339
|
-
children: jsxRuntime.
|
|
339
|
+
children: jsxRuntime.jsx(Icon.Icon, {
|
|
340
340
|
symbol: Close.Close,
|
|
341
341
|
size: "xs"
|
|
342
342
|
})
|
|
343
343
|
})]
|
|
344
|
-
}) : jsxRuntime.
|
|
345
|
-
children: [condensedBehavior === "collapse-to-menu" && hasMenuToShow ? jsxRuntime.
|
|
344
|
+
}) : jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
345
|
+
children: [condensedBehavior === "collapse-to-menu" && hasMenuToShow ? jsxRuntime.jsxs(Menu.Menu, {
|
|
346
346
|
isOpen: isMenuOpen,
|
|
347
347
|
onOpenChange: setIsMenuOpen,
|
|
348
|
-
children: [jsxRuntime.
|
|
349
|
-
children: jsxRuntime.
|
|
348
|
+
children: [jsxRuntime.jsx(Menu.Menu.Trigger, {
|
|
349
|
+
children: jsxRuntime.jsxs(UnstyledButton.UnstyledButton, {
|
|
350
350
|
className: utilities_css.classNames(styles.btn, styles.menuBtn, isMenuOpen && styles.menuOpen),
|
|
351
|
-
children: [jsxRuntime.
|
|
351
|
+
children: [jsxRuntime.jsx(Icon.Icon, {
|
|
352
352
|
symbol: Menu$1.Menu
|
|
353
|
-
}), jsxRuntime.
|
|
353
|
+
}), jsxRuntime.jsx(Text.Text, {
|
|
354
354
|
visuallyHidden: true,
|
|
355
355
|
children: "menu"
|
|
356
356
|
})]
|
|
357
357
|
})
|
|
358
|
-
}), jsxRuntime.
|
|
358
|
+
}), jsxRuntime.jsxs(Menu.Menu.Overlay, __spreadProps(__spreadValues({
|
|
359
359
|
placement: "bottom left"
|
|
360
360
|
}, menuOverlayProps), {
|
|
361
|
-
children: [jsxRuntime.
|
|
361
|
+
children: [jsxRuntime.jsx(Menu.Menu.Section, {
|
|
362
362
|
"aria-label": selectorLabel,
|
|
363
363
|
children: selectorChildren == null ? void 0 : selectorChildren.map((item) => {
|
|
364
364
|
const itemEle = item;
|
|
365
|
-
return jsxRuntime.
|
|
365
|
+
return jsxRuntime.jsx(Menu.Menu.Item, {
|
|
366
366
|
children: itemEle.props.children
|
|
367
367
|
}, utilities_react.getFlattenedKey(itemEle.key));
|
|
368
368
|
})
|
|
369
|
-
}), jsxRuntime.
|
|
369
|
+
}), jsxRuntime.jsx(Menu.Menu.Section, {
|
|
370
370
|
"aria-label": "Nav actions",
|
|
371
371
|
children: secondaryCTAItems == null ? void 0 : secondaryCTAItems.map((item) => {
|
|
372
372
|
const itemEle = item;
|
|
373
|
-
return jsxRuntime.
|
|
373
|
+
return jsxRuntime.jsx(Menu.Menu.Item, {
|
|
374
374
|
href: itemEle.props.href,
|
|
375
375
|
target: itemEle.props.target,
|
|
376
376
|
children: itemEle.props.label
|
|
@@ -378,16 +378,16 @@ function CondensedSearchNav() {
|
|
|
378
378
|
})
|
|
379
379
|
})]
|
|
380
380
|
}))]
|
|
381
|
-
}) : jsxRuntime.
|
|
381
|
+
}) : jsxRuntime.jsx(LogoGroup, {
|
|
382
382
|
children: null
|
|
383
|
-
}), (search2 || primaryCTAItem) && jsxRuntime.
|
|
383
|
+
}), (search2 || primaryCTAItem) && jsxRuntime.jsxs(HorizontalStack.HorizontalStack, {
|
|
384
384
|
gap: "2",
|
|
385
|
-
children: [search2 && jsxRuntime.
|
|
385
|
+
children: [search2 && jsxRuntime.jsxs(UnstyledButton.UnstyledButton, {
|
|
386
386
|
className: utilities_css.classNames(styles.btn, styles.searchBtn),
|
|
387
387
|
onPress: () => setIsSearchOpen((prev) => !prev),
|
|
388
|
-
children: [jsxRuntime.
|
|
388
|
+
children: [jsxRuntime.jsx(Icon.Icon, {
|
|
389
389
|
symbol: Search$1.Search
|
|
390
|
-
}), jsxRuntime.
|
|
390
|
+
}), jsxRuntime.jsx(Text.Text, {
|
|
391
391
|
visuallyHidden: true,
|
|
392
392
|
children: "search"
|
|
393
393
|
})]
|
|
@@ -398,7 +398,7 @@ function CondensedSearchNav() {
|
|
|
398
398
|
}
|
|
399
399
|
function PrimaryCTAItem(props) {
|
|
400
400
|
const _a = props, { label } = _a, restProps = __objRest(_a, ["label"]);
|
|
401
|
-
return jsxRuntime.
|
|
401
|
+
return jsxRuntime.jsx(Button.Button, __spreadProps(__spreadValues({}, restProps), {
|
|
402
402
|
variant: "outlined",
|
|
403
403
|
size: "sm",
|
|
404
404
|
color: "support",
|
|
@@ -408,7 +408,7 @@ function PrimaryCTAItem(props) {
|
|
|
408
408
|
PrimaryCTAItem.displayName = "SearchNav.PrimaryCTAItem";
|
|
409
409
|
function Title(props) {
|
|
410
410
|
const { children } = props;
|
|
411
|
-
return jsxRuntime.
|
|
411
|
+
return jsxRuntime.jsx(Text.Text, {
|
|
412
412
|
variant: "subtitle1",
|
|
413
413
|
transform: "uppercase",
|
|
414
414
|
children
|
|
@@ -509,14 +509,14 @@ function SearchNav(props) {
|
|
|
509
509
|
}
|
|
510
510
|
};
|
|
511
511
|
}, [children, menuOverlayProps, ctaMenuSymbol, condensedBehavior]);
|
|
512
|
-
return jsxRuntime.
|
|
512
|
+
return jsxRuntime.jsx(InternalSearchNavContext.Provider, {
|
|
513
513
|
value: context,
|
|
514
|
-
children: jsxRuntime.
|
|
514
|
+
children: jsxRuntime.jsxs("nav", {
|
|
515
515
|
className: utilities_css.classNames(styles$8.nav),
|
|
516
|
-
children: [jsxRuntime.
|
|
516
|
+
children: [jsxRuntime.jsx("div", {
|
|
517
517
|
className: utilities_css.classNames(styles$8.desktop, onlyLogoGroup2 && styles$8.onlyLogoGroup),
|
|
518
518
|
children
|
|
519
|
-
}), !onlyLogoGroup2 && jsxRuntime.
|
|
519
|
+
}), !onlyLogoGroup2 && jsxRuntime.jsx(CondensedSearchNav, {})]
|
|
520
520
|
})
|
|
521
521
|
});
|
|
522
522
|
}
|
package/SearchNav/index.mjs
CHANGED
|
@@ -29,23 +29,23 @@ var __objRest = (source, exclude) => {
|
|
|
29
29
|
}
|
|
30
30
|
return target;
|
|
31
31
|
};
|
|
32
|
-
import {
|
|
32
|
+
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
33
33
|
import * as React from "react";
|
|
34
|
-
import React__default, { createContext, useContext, Fragment, useMemo, useState } from "react";
|
|
34
|
+
import React__default, { createContext, useContext, Fragment as Fragment$1, useMemo, useState } from "react";
|
|
35
35
|
import { classNames, variationName } from "../utilities/css.mjs";
|
|
36
36
|
import { getFlattenedKey, getDisplayNameFromReactNode, flattenChildren, filterChildrenByDisplayName } from "../utilities/react.mjs";
|
|
37
|
-
import { M as Menu } from "../__chunks__/Menu-
|
|
38
|
-
import { T as Text } from "../__chunks__/Text-
|
|
39
|
-
import { I as Icon } from "../__chunks__/Icon-
|
|
40
|
-
import { U as UnstyledButton } from "../__chunks__/UnstyledButton-
|
|
41
|
-
import { u as useInternalSelectContext, $ as $bdd25dc72710631f$export$cbd84cdb2e668835, a as $2bc3a590c5373a4e$export$5159ec8b34d4ec12, b as $58aed456727eb0f3$export$e64b2f635402ca43, I as InternalSelectContext, S as SelectOverlay, d as SelectOption } from "../__chunks__/SelectOverlay-
|
|
37
|
+
import { M as Menu } from "../__chunks__/Menu-Ci1FGh8B.mjs";
|
|
38
|
+
import { T as Text } from "../__chunks__/Text-D6oT5WJQ.mjs";
|
|
39
|
+
import { I as Icon } from "../__chunks__/Icon-BIpaQJ_I.mjs";
|
|
40
|
+
import { U as UnstyledButton } from "../__chunks__/UnstyledButton-DxJLvL-G.mjs";
|
|
41
|
+
import { u as useInternalSelectContext, $ as $bdd25dc72710631f$export$cbd84cdb2e668835, a as $2bc3a590c5373a4e$export$5159ec8b34d4ec12, b as $58aed456727eb0f3$export$e64b2f635402ca43, I as InternalSelectContext, S as SelectOverlay, d as SelectOption } from "../__chunks__/SelectOverlay-q23ZLLi4.mjs";
|
|
42
42
|
import { u as useTriggerWidth } from "../__chunks__/useTriggerWidth-CBghrvjy.mjs";
|
|
43
43
|
import { E as ExpandMore400 } from "../__chunks__/ExpandMore400-CH7GNxqk.mjs";
|
|
44
44
|
import { C as Close } from "../__chunks__/Close-Cq6Q6MN6.mjs";
|
|
45
45
|
import { M as Menu$1 } from "../__chunks__/Menu-qMqvSorL.mjs";
|
|
46
46
|
import { S as Search$1 } from "../__chunks__/Search-Cyblmqo5.mjs";
|
|
47
|
-
import { H as HorizontalStack } from "../__chunks__/HorizontalStack-
|
|
48
|
-
import { B as Button } from "../__chunks__/Button-
|
|
47
|
+
import { H as HorizontalStack } from "../__chunks__/HorizontalStack-CJavrBHm.mjs";
|
|
48
|
+
import { B as Button } from "../__chunks__/Button-JL1YQxJ5.mjs";
|
|
49
49
|
const nav = "_nav_1sb0u_4";
|
|
50
50
|
const desktop = "_desktop_1sb0u_16";
|
|
51
51
|
const onlyLogoGroup = "_onlyLogoGroup_1sb0u_29";
|
|
@@ -64,7 +64,7 @@ const styles$7 = {
|
|
|
64
64
|
};
|
|
65
65
|
function Separator(props) {
|
|
66
66
|
const { group } = props;
|
|
67
|
-
return
|
|
67
|
+
return jsx("div", {
|
|
68
68
|
className: classNames(styles$7.separator, styles$7[variationName("group", group)])
|
|
69
69
|
});
|
|
70
70
|
}
|
|
@@ -82,14 +82,14 @@ function useInternalSearchNavContext() {
|
|
|
82
82
|
}
|
|
83
83
|
function LogoGroup(_props) {
|
|
84
84
|
const { logo: logo2, title, selector } = useInternalSearchNavContext();
|
|
85
|
-
return
|
|
85
|
+
return jsxs("div", {
|
|
86
86
|
className: classNames(styles$6.logoGroup),
|
|
87
|
-
children: [logo2, title &&
|
|
88
|
-
children: [
|
|
87
|
+
children: [logo2, title && jsxs(Fragment, {
|
|
88
|
+
children: [jsx(Separator, {
|
|
89
89
|
group: "logo"
|
|
90
90
|
}), title]
|
|
91
|
-
}), selector &&
|
|
92
|
-
children: [
|
|
91
|
+
}), selector && jsxs(Fragment, {
|
|
92
|
+
children: [jsx(Separator, {
|
|
93
93
|
group: "logo"
|
|
94
94
|
}), selector]
|
|
95
95
|
})]
|
|
@@ -102,7 +102,7 @@ const styles$5 = {
|
|
|
102
102
|
};
|
|
103
103
|
function Search(props) {
|
|
104
104
|
const { children } = props;
|
|
105
|
-
return
|
|
105
|
+
return jsx("div", {
|
|
106
106
|
className: classNames(styles$5.search),
|
|
107
107
|
children
|
|
108
108
|
});
|
|
@@ -158,43 +158,43 @@ const styles$4 = {
|
|
|
158
158
|
function CTAGroup(_props) {
|
|
159
159
|
const { menuOverlayProps, ctaMenuSymbol, primaryCTAItem, secondaryCTAItems } = useInternalSearchNavContext();
|
|
160
160
|
const totalItems = (secondaryCTAItems == null ? void 0 : secondaryCTAItems.length) || 0;
|
|
161
|
-
return
|
|
162
|
-
children: [
|
|
161
|
+
return jsxs(Fragment, {
|
|
162
|
+
children: [jsxs("div", {
|
|
163
163
|
className: classNames(styles$4.ctaGroup, styles$4.ctaGroupExpanded),
|
|
164
164
|
children: [secondaryCTAItems == null ? void 0 : secondaryCTAItems.map((item, index) => {
|
|
165
165
|
const isLastChild = index === totalItems - 1;
|
|
166
166
|
const itemEle = item;
|
|
167
|
-
return
|
|
168
|
-
children: [itemEle, !isLastChild &&
|
|
167
|
+
return jsxs(Fragment$1, {
|
|
168
|
+
children: [itemEle, !isLastChild && jsx(Separator, {
|
|
169
169
|
group: "cta"
|
|
170
170
|
})]
|
|
171
171
|
}, itemEle.key);
|
|
172
|
-
}), primaryCTAItem &&
|
|
173
|
-
children: [
|
|
172
|
+
}), primaryCTAItem && jsxs(Fragment, {
|
|
173
|
+
children: [jsx(Separator, {
|
|
174
174
|
group: "cta"
|
|
175
175
|
}), primaryCTAItem]
|
|
176
176
|
})]
|
|
177
|
-
}),
|
|
177
|
+
}), jsxs("div", {
|
|
178
178
|
className: classNames(styles$4.ctaGroup, styles$4.ctaGroupMenu),
|
|
179
|
-
children: [
|
|
180
|
-
children: [
|
|
181
|
-
children:
|
|
179
|
+
children: [jsxs(Menu, {
|
|
180
|
+
children: [jsx(Menu.Trigger, {
|
|
181
|
+
children: jsxs(UnstyledButton, {
|
|
182
182
|
className: classNames(styles$4.menuBtn),
|
|
183
|
-
children: [
|
|
183
|
+
children: [jsx(Icon, {
|
|
184
184
|
symbol: ctaMenuSymbol ? ctaMenuSymbol : Help
|
|
185
|
-
}),
|
|
185
|
+
}), jsx(Text, {
|
|
186
186
|
visuallyHidden: true,
|
|
187
187
|
children: "menu"
|
|
188
188
|
})]
|
|
189
189
|
})
|
|
190
|
-
}),
|
|
190
|
+
}), jsx(Menu.Overlay, __spreadProps(__spreadValues({
|
|
191
191
|
placement: "bottom right"
|
|
192
192
|
}, menuOverlayProps), {
|
|
193
|
-
children:
|
|
193
|
+
children: jsx(Menu.Section, {
|
|
194
194
|
"aria-label": "Nav actions",
|
|
195
195
|
children: secondaryCTAItems == null ? void 0 : secondaryCTAItems.map((item) => {
|
|
196
196
|
const itemEle = item;
|
|
197
|
-
return
|
|
197
|
+
return jsx(Menu.Item, {
|
|
198
198
|
href: itemEle.props.href,
|
|
199
199
|
target: itemEle.props.target,
|
|
200
200
|
children: itemEle.props.label
|
|
@@ -202,8 +202,8 @@ function CTAGroup(_props) {
|
|
|
202
202
|
})
|
|
203
203
|
})
|
|
204
204
|
}))]
|
|
205
|
-
}), primaryCTAItem &&
|
|
206
|
-
children: [
|
|
205
|
+
}), primaryCTAItem && jsxs(Fragment, {
|
|
206
|
+
children: [jsx(Separator, {
|
|
207
207
|
group: "cta"
|
|
208
208
|
}), primaryCTAItem]
|
|
209
209
|
})]
|
|
@@ -217,7 +217,7 @@ const styles$3 = {
|
|
|
217
217
|
};
|
|
218
218
|
function Logo(props) {
|
|
219
219
|
const { children } = props;
|
|
220
|
-
return
|
|
220
|
+
return jsx("div", {
|
|
221
221
|
className: classNames(styles$3.logo),
|
|
222
222
|
children
|
|
223
223
|
});
|
|
@@ -229,11 +229,11 @@ const styles$2 = {
|
|
|
229
229
|
};
|
|
230
230
|
function SecondaryCTAItem(props) {
|
|
231
231
|
const _a = props, { symbol, label, hideLabelOnDesktop = false } = _a, restProps = __objRest(_a, ["symbol", "label", "hideLabelOnDesktop"]);
|
|
232
|
-
return
|
|
232
|
+
return jsxs(UnstyledButton, __spreadProps(__spreadValues({}, restProps), {
|
|
233
233
|
className: classNames(styles$2.cta),
|
|
234
|
-
children: [symbol &&
|
|
234
|
+
children: [symbol && jsx(Icon, {
|
|
235
235
|
symbol
|
|
236
|
-
}), hideLabelOnDesktop ?
|
|
236
|
+
}), hideLabelOnDesktop ? jsx(Text, {
|
|
237
237
|
visuallyHidden: true,
|
|
238
238
|
children: label
|
|
239
239
|
}) : label]
|
|
@@ -250,18 +250,18 @@ function SelectorTrigger(props) {
|
|
|
250
250
|
var _a;
|
|
251
251
|
const { valueProps, label } = props;
|
|
252
252
|
const { triggerProps, triggerRef, selectState } = useInternalSelectContext();
|
|
253
|
-
return
|
|
254
|
-
children: [
|
|
253
|
+
return jsxs(Fragment, {
|
|
254
|
+
children: [jsx($bdd25dc72710631f$export$cbd84cdb2e668835, {
|
|
255
255
|
state: selectState,
|
|
256
256
|
triggerRef,
|
|
257
257
|
label
|
|
258
|
-
}),
|
|
258
|
+
}), jsxs(UnstyledButton, __spreadProps(__spreadValues({}, triggerProps), {
|
|
259
259
|
ref: triggerRef,
|
|
260
260
|
className: classNames(styles$1.triggerBtn),
|
|
261
|
-
children: [
|
|
261
|
+
children: [jsx("span", __spreadProps(__spreadValues({}, valueProps), {
|
|
262
262
|
className: classNames(styles$1.text),
|
|
263
263
|
children: (_a = selectState.selectedItem) == null ? void 0 : _a.rendered
|
|
264
|
-
})),
|
|
264
|
+
})), jsx(Icon, {
|
|
265
265
|
symbol: ExpandMore400,
|
|
266
266
|
size: "xs"
|
|
267
267
|
})]
|
|
@@ -283,12 +283,12 @@ function Selector(props) {
|
|
|
283
283
|
triggerWidth
|
|
284
284
|
};
|
|
285
285
|
}, [triggerProps, listBoxPropsFromSelect, selectState, triggerWidth]);
|
|
286
|
-
return
|
|
286
|
+
return jsxs(InternalSelectContext.Provider, {
|
|
287
287
|
value: context,
|
|
288
|
-
children: [
|
|
288
|
+
children: [jsx(SelectorTrigger, {
|
|
289
289
|
valueProps,
|
|
290
290
|
label
|
|
291
|
-
}),
|
|
291
|
+
}), jsx(SelectOverlay, {})]
|
|
292
292
|
});
|
|
293
293
|
}
|
|
294
294
|
Selector.displayName = "SearchNav.Selector";
|
|
@@ -311,48 +311,48 @@ function CondensedSearchNav() {
|
|
|
311
311
|
const [isSearchOpen, setIsSearchOpen] = useState(false);
|
|
312
312
|
const { search: search2, selectorChildren, secondaryCTAItems, primaryCTAItem, selectorLabel, menuOverlayProps, condensedBehavior } = useInternalSearchNavContext();
|
|
313
313
|
const hasMenuToShow = !!selectorChildren || !!secondaryCTAItems;
|
|
314
|
-
return
|
|
314
|
+
return jsx("div", {
|
|
315
315
|
className: classNames(styles.condensed),
|
|
316
|
-
children: isSearchOpen ?
|
|
316
|
+
children: isSearchOpen ? jsxs("div", {
|
|
317
317
|
className: classNames(styles.condensedSearch),
|
|
318
|
-
children: [search2,
|
|
318
|
+
children: [search2, jsx(UnstyledButton, {
|
|
319
319
|
className: classNames(styles.btn),
|
|
320
320
|
onPress: () => setIsSearchOpen((prev) => !prev),
|
|
321
|
-
children:
|
|
321
|
+
children: jsx(Icon, {
|
|
322
322
|
symbol: Close,
|
|
323
323
|
size: "xs"
|
|
324
324
|
})
|
|
325
325
|
})]
|
|
326
|
-
}) :
|
|
327
|
-
children: [condensedBehavior === "collapse-to-menu" && hasMenuToShow ?
|
|
326
|
+
}) : jsxs(Fragment, {
|
|
327
|
+
children: [condensedBehavior === "collapse-to-menu" && hasMenuToShow ? jsxs(Menu, {
|
|
328
328
|
isOpen: isMenuOpen,
|
|
329
329
|
onOpenChange: setIsMenuOpen,
|
|
330
|
-
children: [
|
|
331
|
-
children:
|
|
330
|
+
children: [jsx(Menu.Trigger, {
|
|
331
|
+
children: jsxs(UnstyledButton, {
|
|
332
332
|
className: classNames(styles.btn, styles.menuBtn, isMenuOpen && styles.menuOpen),
|
|
333
|
-
children: [
|
|
333
|
+
children: [jsx(Icon, {
|
|
334
334
|
symbol: Menu$1
|
|
335
|
-
}),
|
|
335
|
+
}), jsx(Text, {
|
|
336
336
|
visuallyHidden: true,
|
|
337
337
|
children: "menu"
|
|
338
338
|
})]
|
|
339
339
|
})
|
|
340
|
-
}),
|
|
340
|
+
}), jsxs(Menu.Overlay, __spreadProps(__spreadValues({
|
|
341
341
|
placement: "bottom left"
|
|
342
342
|
}, menuOverlayProps), {
|
|
343
|
-
children: [
|
|
343
|
+
children: [jsx(Menu.Section, {
|
|
344
344
|
"aria-label": selectorLabel,
|
|
345
345
|
children: selectorChildren == null ? void 0 : selectorChildren.map((item) => {
|
|
346
346
|
const itemEle = item;
|
|
347
|
-
return
|
|
347
|
+
return jsx(Menu.Item, {
|
|
348
348
|
children: itemEle.props.children
|
|
349
349
|
}, getFlattenedKey(itemEle.key));
|
|
350
350
|
})
|
|
351
|
-
}),
|
|
351
|
+
}), jsx(Menu.Section, {
|
|
352
352
|
"aria-label": "Nav actions",
|
|
353
353
|
children: secondaryCTAItems == null ? void 0 : secondaryCTAItems.map((item) => {
|
|
354
354
|
const itemEle = item;
|
|
355
|
-
return
|
|
355
|
+
return jsx(Menu.Item, {
|
|
356
356
|
href: itemEle.props.href,
|
|
357
357
|
target: itemEle.props.target,
|
|
358
358
|
children: itemEle.props.label
|
|
@@ -360,16 +360,16 @@ function CondensedSearchNav() {
|
|
|
360
360
|
})
|
|
361
361
|
})]
|
|
362
362
|
}))]
|
|
363
|
-
}) :
|
|
363
|
+
}) : jsx(LogoGroup, {
|
|
364
364
|
children: null
|
|
365
|
-
}), (search2 || primaryCTAItem) &&
|
|
365
|
+
}), (search2 || primaryCTAItem) && jsxs(HorizontalStack, {
|
|
366
366
|
gap: "2",
|
|
367
|
-
children: [search2 &&
|
|
367
|
+
children: [search2 && jsxs(UnstyledButton, {
|
|
368
368
|
className: classNames(styles.btn, styles.searchBtn),
|
|
369
369
|
onPress: () => setIsSearchOpen((prev) => !prev),
|
|
370
|
-
children: [
|
|
370
|
+
children: [jsx(Icon, {
|
|
371
371
|
symbol: Search$1
|
|
372
|
-
}),
|
|
372
|
+
}), jsx(Text, {
|
|
373
373
|
visuallyHidden: true,
|
|
374
374
|
children: "search"
|
|
375
375
|
})]
|
|
@@ -380,7 +380,7 @@ function CondensedSearchNav() {
|
|
|
380
380
|
}
|
|
381
381
|
function PrimaryCTAItem(props) {
|
|
382
382
|
const _a = props, { label } = _a, restProps = __objRest(_a, ["label"]);
|
|
383
|
-
return
|
|
383
|
+
return jsx(Button, __spreadProps(__spreadValues({}, restProps), {
|
|
384
384
|
variant: "outlined",
|
|
385
385
|
size: "sm",
|
|
386
386
|
color: "support",
|
|
@@ -390,7 +390,7 @@ function PrimaryCTAItem(props) {
|
|
|
390
390
|
PrimaryCTAItem.displayName = "SearchNav.PrimaryCTAItem";
|
|
391
391
|
function Title(props) {
|
|
392
392
|
const { children } = props;
|
|
393
|
-
return
|
|
393
|
+
return jsx(Text, {
|
|
394
394
|
variant: "subtitle1",
|
|
395
395
|
transform: "uppercase",
|
|
396
396
|
children
|
|
@@ -491,14 +491,14 @@ function SearchNav(props) {
|
|
|
491
491
|
}
|
|
492
492
|
};
|
|
493
493
|
}, [children, menuOverlayProps, ctaMenuSymbol, condensedBehavior]);
|
|
494
|
-
return
|
|
494
|
+
return jsx(InternalSearchNavContext.Provider, {
|
|
495
495
|
value: context,
|
|
496
|
-
children:
|
|
496
|
+
children: jsxs("nav", {
|
|
497
497
|
className: classNames(styles$8.nav),
|
|
498
|
-
children: [
|
|
498
|
+
children: [jsx("div", {
|
|
499
499
|
className: classNames(styles$8.desktop, onlyLogoGroup2 && styles$8.onlyLogoGroup),
|
|
500
500
|
children
|
|
501
|
-
}), !onlyLogoGroup2 &&
|
|
501
|
+
}), !onlyLogoGroup2 && jsx(CondensedSearchNav, {})]
|
|
502
502
|
})
|
|
503
503
|
});
|
|
504
504
|
}
|