@sps-woodland/core 8.56.1 → 8.56.3
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/lib/action-bar/action-bar/ActionBar.js +44 -59
- package/lib/action-bar/action-bar/ActionBar.ve.js +4 -11
- package/lib/action-bar/action-bar-additional-content/ActionBarAdditionalContent.js +14 -22
- package/lib/action-bar/index.js +54 -74
- package/lib/action-bar/index.umd.cjs +1 -1
- package/lib/action-bar/style.css +2 -1
- package/lib/add-to-list/add-to-list/AddToList.css.d.ts.map +1 -1
- package/lib/add-to-list/add-to-list/AddToList.d.ts.map +1 -1
- package/lib/add-to-list/add-to-list/AddToList.js +220 -295
- package/lib/add-to-list/add-to-list/AddToList.ve.js +79 -24
- package/lib/add-to-list/add-to-list/ItemsList.d.ts.map +1 -1
- package/lib/add-to-list/add-to-list/ItemsList.js +42 -66
- package/lib/add-to-list/add-to-list/ListItem.js +24 -50
- package/lib/add-to-list/index.js +393 -444
- package/lib/add-to-list/index.umd.cjs +1 -1
- package/lib/add-to-list/style.css +2 -1
- package/lib/buttons/button/Button.css.d.ts.map +1 -1
- package/lib/buttons/button/Button.js +95 -121
- package/lib/buttons/button/Button.ve.js +150 -9
- package/lib/buttons/index.js +281 -171
- package/lib/buttons/index.umd.cjs +1 -1
- package/lib/buttons/style.css +2 -1
- package/lib/cards/card/Card.css.d.ts.map +1 -1
- package/lib/cards/card/Card.js +19 -27
- package/lib/cards/card/Card.ve.js +4 -4
- package/lib/cards/card-footer/CardFooter.js +12 -13
- package/lib/cards/card-footer/CardFooter.ve.js +4 -4
- package/lib/cards/card-header/CardHeader.js +12 -13
- package/lib/cards/card-header/CardHeader.ve.js +4 -4
- package/lib/cards/card-title/CardTitle.js +11 -12
- package/lib/cards/card-title/CardTitle.ve.js +4 -4
- package/lib/cards/index.js +52 -52
- package/lib/cards/index.umd.cjs +1 -1
- package/lib/cards/style.css +2 -1
- package/lib/column-manager/column-manager/ColumnManager.d.ts.map +1 -1
- package/lib/column-manager/column-manager/ColumnManager.js +95 -112
- package/lib/column-manager/column-manager/useColumnManager.js +59 -48
- package/lib/column-manager/index.js +2 -5
- package/lib/components/icon/Icon.ve.js +15 -5
- package/lib/components/icon/icons/sprite.svg.js +4 -4
- package/lib/content-row/content-row/ContentRow.js +146 -173
- package/lib/content-row/content-row/ContentRow.ve.js +105 -18
- package/lib/content-row/content-row-col/ContentRowCol.js +37 -48
- package/lib/content-row/content-row-col/ContentRowCol.ve.js +49 -6
- package/lib/content-row/content-row-expansion/ContentRowExpansion.js +16 -24
- package/lib/content-row/index.js +407 -318
- package/lib/content-row/index.umd.cjs +1 -1
- package/lib/content-row/row-list-auto-layout/RowListAutoLayout.js +24 -39
- package/lib/content-row/row-list-auto-layout/RowListAutoLayout.ve.js +13 -5
- package/lib/content-row/style.css +2 -1
- package/lib/content-tiles/content-tile/ContentTile.css.d.ts.map +1 -1
- package/lib/content-tiles/content-tile/ContentTile.js +71 -60
- package/lib/content-tiles/content-tile/ContentTile.ve.js +36 -14
- package/lib/content-tiles/content-tile-list/ContentTileList.js +12 -13
- package/lib/content-tiles/content-tile-list/ContentTileList.ve.js +4 -5
- package/lib/content-tiles/index.js +156 -118
- package/lib/content-tiles/index.umd.cjs +1 -1
- package/lib/content-tiles/style.css +2 -1
- package/lib/core.css +2 -1
- package/lib/dropdowns/dropdown/Dropdown.css.d.ts.map +1 -1
- package/lib/dropdowns/dropdown/Dropdown.js +56 -68
- package/lib/dropdowns/dropdown/Dropdown.ve.js +37 -8
- package/lib/dropdowns/index.js +171 -171
- package/lib/dropdowns/index.umd.cjs +1 -1
- package/lib/dropdowns/option-list/Option.css.d.ts.map +1 -1
- package/lib/dropdowns/option-list/Option.js +14 -18
- package/lib/dropdowns/option-list/Option.ve.js +4 -5
- package/lib/dropdowns/option-list/OptionList.js +28 -44
- package/lib/dropdowns/option-list/OptionList.ve.js +4 -5
- package/lib/dropdowns/style.css +2 -1
- package/lib/editable-table/EditableTable.js +68 -85
- package/lib/editable-table/index.js +1 -4
- package/lib/feedback-block/FeedbackBlock.js +40 -35
- package/lib/feedback-block/FeedbackBlock.ve.js +56 -7
- package/lib/feedback-block/index.js +132 -85
- package/lib/feedback-block/index.umd.cjs +1 -1
- package/lib/feedback-block/style.css +2 -1
- package/lib/file-upload/file-upload/FileUpload.js +164 -202
- package/lib/file-upload/file-upload/FileUpload.ve.js +84 -18
- package/lib/file-upload/file-upload/mime-type.enum.js +106 -106
- package/lib/file-upload/index.js +390 -353
- package/lib/file-upload/index.umd.cjs +1 -1
- package/lib/file-upload/style.css +2 -1
- package/lib/filter-tiles/filter-tile/FilterTile.css.d.ts.map +1 -1
- package/lib/filter-tiles/filter-tile/FilterTile.d.ts.map +1 -1
- package/lib/filter-tiles/filter-tile/FilterTile.js +41 -33
- package/lib/filter-tiles/filter-tile/FilterTile.ve.js +51 -9
- package/lib/filter-tiles/filter-tile-set/FilterTileSet.js +12 -15
- package/lib/filter-tiles/filter-tile-set/FilterTileSet.ve.js +4 -4
- package/lib/filter-tiles/index.js +142 -94
- package/lib/filter-tiles/index.umd.cjs +1 -1
- package/lib/filter-tiles/style.css +2 -1
- package/lib/focused-task/focused-task/FocusedTask.js +52 -74
- package/lib/focused-task/focused-task/FocusedTask.ve.js +13 -12
- package/lib/focused-task/focused-task/useFocusedTask.js +20 -18
- package/lib/focused-task/focused-task-actions/FocusedTaskActions.js +12 -13
- package/lib/focused-task/index.js +127 -144
- package/lib/focused-task/index.umd.cjs +1 -1
- package/lib/focused-task/style.css +2 -1
- package/lib/growler/Growler.js +78 -90
- package/lib/growler/Growler.ve.js +23 -12
- package/lib/growler/GrowlerListProvider.js +38 -39
- package/lib/growler/Sonner.ve.js +17 -12
- package/lib/growler/index.js +249 -274
- package/lib/growler/index.umd.cjs +1 -1
- package/lib/growler/sonner.js +73 -102
- package/lib/growler/style.css +2 -1
- package/lib/index.js +520 -501
- package/lib/index.umd.cjs +4 -4
- package/lib/insight-card/InsightCard.js +90 -84
- package/lib/insight-card/InsightCard.ve.js +148 -15
- package/lib/insight-card/InsightCardSet.js +12 -12
- package/lib/insight-card/index.js +269 -141
- package/lib/insight-card/index.umd.cjs +1 -1
- package/lib/insight-card/style.css +2 -1
- package/lib/key-value-set/index.js +97 -87
- package/lib/key-value-set/index.umd.cjs +1 -1
- package/lib/key-value-set/key-value-set/KeyValueSet.js +17 -21
- package/lib/key-value-set/key-value-set/KeyValueSet.ve.js +10 -5
- package/lib/key-value-set/key-value-set-item/KeyValueSetItem.js +25 -21
- package/lib/key-value-set/key-value-set-item/KeyValueSetItem.ve.js +13 -6
- package/lib/key-value-set/style.css +2 -1
- package/lib/list-bar/advanced-search/AdvancedSearch.js +51 -54
- package/lib/list-bar/advanced-search/AdvancedSearch.ve.js +30 -8
- package/lib/list-bar/index.js +305 -301
- package/lib/list-bar/index.umd.cjs +1 -1
- package/lib/list-bar/list-bar/InputGroupWrapper.js +10 -19
- package/lib/list-bar/list-bar/ListBar.js +105 -121
- package/lib/list-bar/list-bar/ListBar.ve.js +13 -17
- package/lib/list-bar/list-bar/ListBarSearch.js +20 -21
- package/lib/list-bar/list-bar/ListBarSearchInfo.js +8 -12
- package/lib/list-bar/list-bar/ListBarSortBy.js +28 -38
- package/lib/list-bar/search-results-bar/SearchResultsBar.js +38 -28
- package/lib/list-bar/search-results-bar/SearchResultsBar.ve.js +4 -11
- package/lib/list-bar/style.css +2 -1
- package/lib/matrix/index.js +79 -87
- package/lib/matrix/index.umd.cjs +1 -1
- package/lib/matrix/matrix/Matrix.js +18 -26
- package/lib/matrix/matrix/Matrix.ve.js +4 -7
- package/lib/matrix/matrix-body/MatrixBody.js +10 -13
- package/lib/matrix/matrix-cell/MatrixCell.js +23 -18
- package/lib/matrix/matrix-head/MatrixHead.js +10 -13
- package/lib/matrix/matrix-header/MatrixHeader.js +20 -23
- package/lib/matrix/matrix-row/MatrixRow.js +10 -13
- package/lib/matrix/style.css +2 -1
- package/lib/modal/index.js +197 -187
- package/lib/modal/index.umd.cjs +1 -1
- package/lib/modal/modal/Modal.js +90 -108
- package/lib/modal/modal/Modal.ve.js +43 -13
- package/lib/modal/modal/useModal.js +19 -24
- package/lib/modal/modal-footer/ModalFooter.js +11 -12
- package/lib/modal/style.css +2 -1
- package/lib/node_modules/.pnpm/@vanilla-extract_recipes@0.2.5_@vanilla-extract_css@1.21.2/node_modules/@vanilla-extract/recipes/createRuntimeFn/dist/vanilla-extract-recipes-createRuntimeFn.esm.js +49 -0
- package/lib/node_modules/.pnpm/nanoid@5.1.16/node_modules/nanoid/index.browser.js +8 -10
- package/lib/node_modules/.pnpm/nanoid@5.1.16/node_modules/nanoid/url-alphabet/index.js +4 -4
- package/lib/page-title/heading-level/HeadingLevel.js +8 -12
- package/lib/page-title/index.js +33 -40
- package/lib/page-title/index.umd.cjs +1 -1
- package/lib/page-title/page-subtitle/PageSubtitle.js +13 -18
- package/lib/page-title/page-subtitle/PageSubtitle.ve.js +4 -5
- package/lib/page-title/page-title/PageTitle.js +15 -19
- package/lib/page-title/page-title/PageTitle.ve.js +4 -7
- package/lib/page-title/style.css +2 -1
- package/lib/photo/index.js +174 -173
- package/lib/photo/index.umd.cjs +1 -1
- package/lib/photo/photo/Photo.js +72 -81
- package/lib/photo/photo/Photo.ve.js +21 -7
- package/lib/photo/photo-carousel/PhotoCarousel.css.d.ts.map +1 -1
- package/lib/photo/photo-carousel/PhotoCarousel.d.ts.map +1 -1
- package/lib/photo/photo-carousel/PhotoCarousel.js +36 -47
- package/lib/photo/photo-carousel/PhotoCarousel.ve.js +13 -9
- package/lib/photo/style.css +2 -1
- package/lib/product-bar/hooks/usePriorityPlus.js +88 -104
- package/lib/product-bar/index.js +372 -395
- package/lib/product-bar/index.umd.cjs +1 -1
- package/lib/product-bar/product-bar/ProductBar.js +77 -103
- package/lib/product-bar/product-bar/ProductBar.ve.js +46 -15
- package/lib/product-bar/product-bar-name/ProductBarName.js +37 -40
- package/lib/product-bar/product-bar-overflow-menu/ProductBarOverflowMenu.js +48 -70
- package/lib/product-bar/product-bar-overflow-menu/ProductBarOverflowMenu.ve.js +4 -8
- package/lib/product-bar/product-bar-tab/ProductBarTab.js +28 -26
- package/lib/product-bar/slack-link/SlackLink.js +26 -30
- package/lib/product-bar/slack-link/SlackLink.ve.js +4 -5
- package/lib/product-bar/style.css +2 -1
- package/lib/product-bar-vertical/index.js +240 -251
- package/lib/product-bar-vertical/index.umd.cjs +1 -1
- package/lib/product-bar-vertical/product-bar-vertical/ProductBarVertical.js +42 -61
- package/lib/product-bar-vertical/product-bar-vertical/ProductBarVertical.ve.js +53 -23
- package/lib/product-bar-vertical/product-bar-vertical-header/ProductBarVerticalHeader.js +30 -42
- package/lib/product-bar-vertical/product-bar-vertical-item/ProductBarVerticalItem.js +71 -89
- package/lib/product-bar-vertical/product-bar-vertical-section/ProductBarVerticalSection.js +22 -29
- package/lib/product-bar-vertical/style.css +2 -1
- package/lib/progress-indicators/index.js +372 -255
- package/lib/progress-indicators/index.umd.cjs +1 -1
- package/lib/progress-indicators/progress-bar/ProgressBar.js +66 -110
- package/lib/progress-indicators/progress-bar/ProgressBar.ve.js +66 -13
- package/lib/progress-indicators/progress-bar/progress-bar-step/ProgressBarStep.js +34 -54
- package/lib/progress-indicators/progress-bar/progress-bar-step/ProgressBarStep.ve.js +136 -8
- package/lib/progress-indicators/progress-ring/ProgressRing.js +45 -52
- package/lib/progress-indicators/style.css +2 -1
- package/lib/rich-text-editor/index.js +556 -582
- package/lib/rich-text-editor/index.umd.cjs +11 -11
- package/lib/rich-text-editor/rich-text-editor/RTELinkModal.js +29 -33
- package/lib/rich-text-editor/rich-text-editor/RTEToolbarButton.css.d.ts.map +1 -1
- package/lib/rich-text-editor/rich-text-editor/RTEToolbarButton.js +23 -37
- package/lib/rich-text-editor/rich-text-editor/RTEToolbarButton.ve.js +13 -6
- package/lib/rich-text-editor/rich-text-editor/RichTextEditor.js +68 -77
- package/lib/rich-text-editor/rich-text-editor/RichTextEditor.ve.js +21 -8
- package/lib/rich-text-editor/rich-text-editor/hooks/useHtmlToMd.js +14 -20
- package/lib/rich-text-editor/rich-text-editor/hooks/useMdToHtml.js +14 -20
- package/lib/rich-text-editor/rich-text-editor/hooks/useRTEContent.js +33 -27
- package/lib/rich-text-editor/rich-text-editor/hooks/useRTEObserver.js +79 -88
- package/lib/rich-text-editor/rich-text-editor/hooks/useRTESelectionListener.js +28 -36
- package/lib/rich-text-editor/rich-text-editor/hooks/useRTEToolbarButtons.js +195 -211
- package/lib/rich-text-editor/rich-text-editor/icons/BOLD.svg.js +4 -4
- package/lib/rich-text-editor/rich-text-editor/icons/INDENT.svg.js +4 -4
- package/lib/rich-text-editor/rich-text-editor/icons/ITALICS.svg.js +4 -4
- package/lib/rich-text-editor/rich-text-editor/icons/LINK.svg.js +4 -4
- package/lib/rich-text-editor/rich-text-editor/icons/ORDERED_LIST.svg.js +4 -4
- package/lib/rich-text-editor/rich-text-editor/icons/OUTDENT.svg.js +4 -4
- package/lib/rich-text-editor/rich-text-editor/icons/REDO.svg.js +4 -4
- package/lib/rich-text-editor/rich-text-editor/icons/UNDO.svg.js +4 -4
- package/lib/rich-text-editor/rich-text-editor/icons/UNLINK.svg.js +4 -4
- package/lib/rich-text-editor/rich-text-editor/icons/UNORDERED_LIST.svg.js +4 -4
- package/lib/rich-text-editor/rich-text-editor/utils/flattenListItemParagraphs.js +12 -12
- package/lib/rich-text-editor/rich-text-editor/utils/removeUnrepresentableBreaks.js +20 -19
- package/lib/rich-text-editor/rich-text-editor/utils/utils.js +11 -15
- package/lib/rich-text-editor/style.css +2 -1
- package/lib/scrollable-container/ScrollableContainer.js +18 -27
- package/lib/scrollable-container/ScrollableContainer.ve.js +4 -4
- package/lib/scrollable-container/index.js +20 -27
- package/lib/scrollable-container/index.umd.cjs +1 -1
- package/lib/scrollable-container/style.css +2 -1
- package/lib/side-nav/index.js +190 -216
- package/lib/side-nav/index.umd.cjs +1 -1
- package/lib/side-nav/side-nav/SideNav.css.d.ts.map +1 -1
- package/lib/side-nav/side-nav/SideNav.js +43 -60
- package/lib/side-nav/side-nav/SideNav.ve.js +22 -16
- package/lib/side-nav/side-nav/navContext.js +7 -7
- package/lib/side-nav/side-nav-header/SideNavHeader.js +14 -15
- package/lib/side-nav/side-nav-item/SideNavItem.d.ts.map +1 -1
- package/lib/side-nav/side-nav-item/SideNavItem.js +68 -82
- package/lib/side-nav/side-nav-section/SideNavSection.js +16 -26
- package/lib/side-nav/style.css +2 -1
- package/lib/sorting-header/caret/caret.ve.js +13 -5
- package/lib/sorting-header/index.js +269 -243
- package/lib/sorting-header/index.umd.cjs +1 -1
- package/lib/sorting-header/sorting-header/SortingHeader.js +110 -124
- package/lib/sorting-header/sorting-header/SortingHeader.ve.js +30 -6
- package/lib/sorting-header/sorting-header-cell/SortingHeaderCell.css.d.ts +2 -0
- package/lib/sorting-header/sorting-header-cell/SortingHeaderCell.css.d.ts.map +1 -1
- package/lib/sorting-header/sorting-header-cell/SortingHeaderCell.d.ts.map +1 -1
- package/lib/sorting-header/sorting-header-cell/SortingHeaderCell.js +69 -75
- package/lib/sorting-header/sorting-header-cell/SortingHeaderCell.ve.js +21 -5
- package/lib/sorting-header/style.css +2 -1
- package/lib/style.css +2 -1
- package/lib/tabs/index.js +255 -200
- package/lib/tabs/index.umd.cjs +1 -1
- package/lib/tabs/style.css +2 -1
- package/lib/tabs/tab/Tab.css.d.ts.map +1 -1
- package/lib/tabs/tab/Tab.js +24 -27
- package/lib/tabs/tab/Tab.ve.js +76 -6
- package/lib/tabs/tab-panel/TabPanel.d.ts.map +1 -1
- package/lib/tabs/tab-panel/TabPanel.js +16 -23
- package/lib/tabs/tabs/Tabs.css.d.ts +1 -0
- package/lib/tabs/tabs/Tabs.css.d.ts.map +1 -1
- package/lib/tabs/tabs/Tabs.js +101 -112
- package/lib/tabs/tabs/Tabs.ve.js +13 -10
- package/lib/tags/clickable-tag/ClickableTag.css.d.ts +1 -1
- package/lib/tags/clickable-tag/ClickableTag.css.d.ts.map +1 -1
- package/lib/tags/clickable-tag/ClickableTag.d.ts.map +1 -1
- package/lib/tags/clickable-tag/ClickableTag.js +86 -70
- package/lib/tags/clickable-tag/ClickableTag.ve.js +66 -9
- package/lib/tags/index.js +342 -179
- package/lib/tags/index.umd.cjs +1 -1
- package/lib/tags/split-tag/SplitTag.css.d.ts.map +1 -1
- package/lib/tags/split-tag/SplitTag.js +49 -30
- package/lib/tags/split-tag/SplitTag.ve.js +35 -9
- package/lib/tags/style.css +2 -1
- package/lib/tags/tag/Tag.js +42 -38
- package/lib/tags/tag/Tag.ve.js +41 -6
- package/lib/utils/cl.js +5 -5
- package/lib/zero-state/ZeroState.js +36 -29
- package/lib/zero-state/ZeroState.ve.js +29 -11
- package/lib/zero-state/index.js +103 -78
- package/lib/zero-state/index.umd.cjs +1 -1
- package/lib/zero-state/style.css +2 -1
- package/package.json +12 -12
- package/lib/node_modules/.pnpm/@vanilla-extract_recipes@0.2.5_@vanilla-extract_css@1.17.4/node_modules/@vanilla-extract/recipes/createRuntimeFn/dist/vanilla-extract-recipes-createRuntimeFn.esm.js +0 -57
|
@@ -1,32 +1,28 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import { useWoodlandLanguage as
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
},
|
|
20
|
-
/* @__PURE__ */ e.createElement(o, { className: i, icon: "conversation", "aria-hidden": "true" }),
|
|
21
|
-
/* @__PURE__ */ e.createElement("span", null, n("slackLink.label", { defaultValue: "Chat" }))
|
|
22
|
-
);
|
|
1
|
+
import { slackLink as e, slackLinkIcon as t } from "./SlackLink.ve.js";
|
|
2
|
+
import { Icon as n, Metadata as r, cl as i } from "@sps-woodland/core";
|
|
3
|
+
import * as a from "react";
|
|
4
|
+
import { useWoodlandLanguage as o } from "@spscommerce/i18n";
|
|
5
|
+
//#region src/product-bar/slack-link/SlackLink.tsx
|
|
6
|
+
function s({ channelId: r, className: s, ...c }) {
|
|
7
|
+
let { t: l } = o();
|
|
8
|
+
return /* @__PURE__ */ a.createElement("a", {
|
|
9
|
+
className: i(e, s),
|
|
10
|
+
target: "_blank",
|
|
11
|
+
rel: "noreferrer",
|
|
12
|
+
href: `https://spscommerce.slack.com/archives/${r}`,
|
|
13
|
+
...c
|
|
14
|
+
}, /* @__PURE__ */ a.createElement(n, {
|
|
15
|
+
className: t,
|
|
16
|
+
icon: "conversation",
|
|
17
|
+
"aria-hidden": "true"
|
|
18
|
+
}), /* @__PURE__ */ a.createElement("span", null, l("slackLink.label", { defaultValue: "Chat" })));
|
|
23
19
|
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
20
|
+
r.set(s, {
|
|
21
|
+
name: "Slack Link",
|
|
22
|
+
props: { channelId: {
|
|
23
|
+
type: "string",
|
|
24
|
+
required: !0
|
|
25
|
+
} }
|
|
29
26
|
});
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
};
|
|
27
|
+
//#endregion
|
|
28
|
+
export { s as SlackLink };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/* empty css */
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
};
|
|
2
|
+
//#region src/product-bar/slack-link/SlackLink.css.ts
|
|
3
|
+
var e = "pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_pqijiy0", t = "pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_pqijiy1";
|
|
4
|
+
//#endregion
|
|
5
|
+
export { e as slackLink, t as slackLinkIcon };
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
.pkg_sps-woodland_core__family_product-
|
|
1
|
+
.pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_g6gjux0{background-color:#fff;justify-content:center;display:flex;position:fixed;top:0;left:0;right:0;box-shadow:0 1px 2px #00000026}.pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_g6gjux1{background-color:#fff;align-items:center;width:1280px;min-height:3.75rem;padding:0 2rem;display:flex}.pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_g6gjux2{width:100%}.pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_g6gjux4{cursor:pointer;align-content:center;margin-right:2rem;text-decoration:none;display:flex}.pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_g6gjux4:hover{text-decoration:none}.pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_g6gjux4:focus{outline-offset:.125rem;outline:.125rem solid #007db8;box-shadow:0 0 0 6px #fff}.pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_g6gjux5{margin-right:.5rem}.pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_g6gjux7{align-content:center;width:1.5rem;height:1.5rem;margin-right:.5rem;display:flex}.pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_g6gjux8{color:#1f282c;align-content:center;font-size:1rem;font-weight:600;display:flex}.pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_g6gjux9{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_g6gjuxa{text-align:right;flex:1}.pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_g6gjuxb{cursor:pointer;justify-content:center;align-items:center;height:3.625rem;margin-top:.125rem;padding:0 1rem;text-decoration:none;display:flex;color:#4b5356!important;font-size:.875rem!important}.pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_g6gjuxb:hover{text-decoration:none}.pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_g6gjuxb:focus{outline-offset:.125rem;outline:.125rem solid #007db8;box-shadow:0 0 0 6px #fff}.pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_g6gjuxc{box-shadow:inset 0 -.125rem #007db8}.pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_g6gjuxe{color:#d2d4d4}.pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_g6gjuxg{font:inherit;background:0 0;border:none}.pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_g6gjuxg:focus{outline-offset:.125rem;outline:.125rem solid #007db8;box-shadow:0 0 0 6px #fff}.pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_g6gjuxh{background:#d2d4d4;width:.0625rem;height:2.125rem;margin:0 1rem 0 0;display:inline-block}.pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_g6gjuxi{flex-direction:row;margin-bottom:0;padding-left:0;list-style:none;display:flex}.pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_5klvkn0{font:inherit;background:0 0;border:none;flex-shrink:0;gap:.25rem}.pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_5klvkn1{font-size:.75rem;transition:transform .15s}[aria-expanded=true] .pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_5klvkn1{transform:rotate(180deg)}.pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_5klvkn2{overscroll-behavior:contain;z-index:100;background:#fff;border:.0625rem solid #717779;border-radius:.25rem;min-width:120px;overflow-y:auto;box-shadow:0 2px 8px #00000026}.pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_5klvkn2:focus{outline-offset:.125rem;outline:.125rem solid #007db8!important}.pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_5klvkn3{color:#4b5356;cursor:pointer;white-space:nowrap;align-items:center;padding:.5rem 1rem;font-size:.875rem;font-weight:400;text-decoration:none;display:flex}.pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_5klvkn3:hover{background:#e6f2f8;text-decoration:none}.pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_5klvkn3:focus{outline-offset:-.125rem;background:#e6f2f8;outline:.125rem solid #007db8!important}.pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_5klvkn4{font-weight:600;box-shadow:inset 3px 0 #007db8}.pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_pqijiy0{align-items:center;font-size:.875rem;text-decoration:none;display:inline-flex}.pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_pqijiy0:hover{border-bottom:.0625rem solid #007db8;text-decoration:none!important}.pkg_sps-woodland_core__family_product-bar__version_8_56_3__hash_pqijiy1{margin-right:.25rem;font-size:1rem}
|
|
2
|
+
/*$vite$:1*/
|
|
@@ -1,261 +1,250 @@
|
|
|
1
1
|
import * as e from "react";
|
|
2
|
-
import {
|
|
3
|
-
import { Button as
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
2
|
+
import { Icon as t, Metadata as n, cl as r, modChildren as i, selectChildren as a } from "@sps-woodland/core";
|
|
3
|
+
import { Button as o } from "@sps-woodland/core/button";
|
|
4
|
+
//#region ../../../node_modules/.pnpm/@vanilla-extract+recipes@0.2.5_@vanilla-extract+css@1.21.2/node_modules/@vanilla-extract/recipes/createRuntimeFn/dist/vanilla-extract-recipes-createRuntimeFn.esm.js
|
|
5
|
+
function s(e, t, n) {
|
|
6
|
+
return t in e ? Object.defineProperty(e, t, {
|
|
7
|
+
value: n,
|
|
8
|
+
enumerable: !0,
|
|
9
|
+
configurable: !0,
|
|
10
|
+
writable: !0
|
|
11
|
+
}) : e[t] = n, e;
|
|
11
12
|
}
|
|
12
|
-
function
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
13
|
+
function c(e, t) {
|
|
14
|
+
var n = Object.keys(e);
|
|
15
|
+
if (Object.getOwnPropertySymbols) {
|
|
16
|
+
var r = Object.getOwnPropertySymbols(e);
|
|
17
|
+
t && (r = r.filter(function(t) {
|
|
18
|
+
return Object.getOwnPropertyDescriptor(e, t).enumerable;
|
|
19
|
+
})), n.push.apply(n, r);
|
|
20
|
+
}
|
|
21
|
+
return n;
|
|
21
22
|
}
|
|
22
|
-
function
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
23
|
+
function l(e) {
|
|
24
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
25
|
+
var n = arguments[t] == null ? {} : arguments[t];
|
|
26
|
+
t % 2 ? c(Object(n), !0).forEach(function(t) {
|
|
27
|
+
s(e, t, n[t]);
|
|
28
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : c(Object(n)).forEach(function(t) {
|
|
29
|
+
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
return e;
|
|
32
33
|
}
|
|
33
|
-
var
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
},
|
|
98
|
-
...f,
|
|
99
|
-
"aria-expanded": !r && p
|
|
100
|
-
},
|
|
101
|
-
/* @__PURE__ */ e.createElement("div", { className: u("d-flex align-items-center", I) }, c && /* @__PURE__ */ e.createElement(N, { icon: c, className: "mr-3" }), !r && /* @__PURE__ */ e.createElement(
|
|
102
|
-
N,
|
|
103
|
-
{
|
|
104
|
-
className: M,
|
|
105
|
-
icon: p ? "chevron-down" : "chevron-right"
|
|
106
|
-
}
|
|
107
|
-
), /* @__PURE__ */ e.createElement("div", { className: u(S, r && "visually-hidden") }, C))
|
|
108
|
-
)
|
|
109
|
-
), p && (r ? /* @__PURE__ */ e.createElement("div", { className: "visually-hidden" }, h) : h)) : /* @__PURE__ */ e.createElement(
|
|
110
|
-
"li",
|
|
111
|
-
{
|
|
112
|
-
ref: B,
|
|
113
|
-
className: u(z({
|
|
114
|
-
selected: s
|
|
115
|
-
}), r && !c && "visually-hidden")
|
|
116
|
-
},
|
|
117
|
-
/* @__PURE__ */ e.createElement(
|
|
118
|
-
i,
|
|
119
|
-
{
|
|
120
|
-
className: x,
|
|
121
|
-
tabIndex: 0,
|
|
122
|
-
onKeyDown: (n) => {
|
|
123
|
-
(n.key === "Enter" || n.key === " ") && (n.preventDefault(), n.currentTarget.click());
|
|
124
|
-
},
|
|
125
|
-
...f
|
|
126
|
-
},
|
|
127
|
-
/* @__PURE__ */ e.createElement("div", { className: u("d-flex align-items-center", I) }, c && /* @__PURE__ */ e.createElement(N, { icon: c, className: "mr-2" }), /* @__PURE__ */ e.createElement("div", { className: u(S, r && "visually-hidden") }, C))
|
|
128
|
-
)
|
|
129
|
-
));
|
|
130
|
-
}
|
|
131
|
-
b.set(g, {
|
|
132
|
-
name: "ProductBarVerticalItem",
|
|
133
|
-
props: {
|
|
134
|
-
keyId: { type: "string", required: !0 },
|
|
135
|
-
as: { type: "string" },
|
|
136
|
-
active: { type: "boolean", required: !0 },
|
|
137
|
-
collapsed: { type: "boolean", required: !1 },
|
|
138
|
-
icon: { type: "string", required: !1 },
|
|
139
|
-
isMinimized: { type: "boolean", required: !1 },
|
|
140
|
-
onExpandSidebar: { type: "function", required: !1 }
|
|
141
|
-
}
|
|
34
|
+
var u = (e, t, n) => {
|
|
35
|
+
for (var r of Object.keys(e)) if (e[r] !== (t[r] ?? n[r])) return !1;
|
|
36
|
+
return !0;
|
|
37
|
+
}, d = (e) => (t) => {
|
|
38
|
+
var n = e.defaultClassName, r = l(l({}, e.defaultVariants), t);
|
|
39
|
+
for (var i in r) {
|
|
40
|
+
var a = r[i] ?? e.defaultVariants[i];
|
|
41
|
+
if (a != null) {
|
|
42
|
+
var o = a;
|
|
43
|
+
typeof o == "boolean" && (o = o === !0 ? "true" : "false");
|
|
44
|
+
var s = e.variantClassNames[i][o];
|
|
45
|
+
s && (n += " " + s);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
for (var [c, d] of e.compoundVariants) u(c, r, e.defaultVariants) && (n += " " + d);
|
|
49
|
+
return n;
|
|
50
|
+
}, f = "pkg_sps-woodland_core__family_product-bar-vertical__version_8_56_3__hash_1l0rb800", p = "pkg_sps-woodland_core__family_product-bar-vertical__version_8_56_3__hash_1l0rb802", m = d({
|
|
51
|
+
defaultClassName: "pkg_sps-woodland_core__family_product-bar-vertical__version_8_56_3__hash_1l0rb803",
|
|
52
|
+
variantClassNames: { minimized: {
|
|
53
|
+
true: "pkg_sps-woodland_core__family_product-bar-vertical__version_8_56_3__hash_1l0rb804",
|
|
54
|
+
false: "pkg_sps-woodland_core__family_product-bar-vertical__version_8_56_3__hash_1l0rb805"
|
|
55
|
+
} },
|
|
56
|
+
defaultVariants: { minimized: !1 },
|
|
57
|
+
compoundVariants: []
|
|
58
|
+
}), h = d({
|
|
59
|
+
defaultClassName: "pkg_sps-woodland_core__family_product-bar-vertical__version_8_56_3__hash_1l0rb806",
|
|
60
|
+
variantClassNames: { minimized: {
|
|
61
|
+
true: "pkg_sps-woodland_core__family_product-bar-vertical__version_8_56_3__hash_1l0rb807",
|
|
62
|
+
false: "pkg_sps-woodland_core__family_product-bar-vertical__version_8_56_3__hash_1l0rb808"
|
|
63
|
+
} },
|
|
64
|
+
defaultVariants: { minimized: !1 },
|
|
65
|
+
compoundVariants: []
|
|
66
|
+
}), g = "pkg_sps-woodland_core__family_product-bar-vertical__version_8_56_3__hash_1l0rb809", _ = d({
|
|
67
|
+
defaultClassName: "pkg_sps-woodland_core__family_product-bar-vertical__version_8_56_3__hash_1l0rb80a",
|
|
68
|
+
variantClassNames: { minimized: {
|
|
69
|
+
true: "pkg_sps-woodland_core__family_product-bar-vertical__version_8_56_3__hash_1l0rb80b",
|
|
70
|
+
false: "pkg_sps-woodland_core__family_product-bar-vertical__version_8_56_3__hash_1l0rb80c"
|
|
71
|
+
} },
|
|
72
|
+
defaultVariants: { minimized: !1 },
|
|
73
|
+
compoundVariants: []
|
|
74
|
+
}), v = "pkg_sps-woodland_core__family_product-bar-vertical__version_8_56_3__hash_1l0rb80e", y = "pkg_sps-woodland_core__family_product-bar-vertical__version_8_56_3__hash_1l0rb80f", b = "pkg_sps-woodland_core__family_product-bar-vertical__version_8_56_3__hash_1l0rb80g", x = d({
|
|
75
|
+
defaultClassName: "pkg_sps-woodland_core__family_product-bar-vertical__version_8_56_3__hash_1l0rb80h",
|
|
76
|
+
variantClassNames: { selected: {
|
|
77
|
+
true: "pkg_sps-woodland_core__family_product-bar-vertical__version_8_56_3__hash_1l0rb80i",
|
|
78
|
+
false: "pkg_sps-woodland_core__family_product-bar-vertical__version_8_56_3__hash_1l0rb80j"
|
|
79
|
+
} },
|
|
80
|
+
defaultVariants: { selected: !1 },
|
|
81
|
+
compoundVariants: []
|
|
82
|
+
}), S = d({
|
|
83
|
+
defaultClassName: "pkg_sps-woodland_core__family_product-bar-vertical__version_8_56_3__hash_1l0rb80k",
|
|
84
|
+
variantClassNames: { selected: {
|
|
85
|
+
true: "pkg_sps-woodland_core__family_product-bar-vertical__version_8_56_3__hash_1l0rb80l",
|
|
86
|
+
false: "pkg_sps-woodland_core__family_product-bar-vertical__version_8_56_3__hash_1l0rb80m"
|
|
87
|
+
} },
|
|
88
|
+
defaultVariants: { selected: !1 },
|
|
89
|
+
compoundVariants: []
|
|
90
|
+
}), C = "pkg_sps-woodland_core__family_product-bar-vertical__version_8_56_3__hash_1l0rb80o", w = "pkg_sps-woodland_core__family_product-bar-vertical__version_8_56_3__hash_1l0rb80p", T = "pkg_sps-woodland_core__family_product-bar-vertical__version_8_56_3__hash_1l0rb80r", E = d({
|
|
91
|
+
defaultClassName: "",
|
|
92
|
+
variantClassNames: { active: {
|
|
93
|
+
true: "pkg_sps-woodland_core__family_product-bar-vertical__version_8_56_3__hash_1l0rb80s",
|
|
94
|
+
false: "pkg_sps-woodland_core__family_product-bar-vertical__version_8_56_3__hash_1l0rb80t"
|
|
95
|
+
} },
|
|
96
|
+
defaultVariants: {},
|
|
97
|
+
compoundVariants: [[{ active: !0 }, "pkg_sps-woodland_core__family_product-bar-vertical__version_8_56_3__hash_1l0rb80u"]]
|
|
142
98
|
});
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
99
|
+
//#endregion
|
|
100
|
+
//#region src/product-bar-vertical/product-bar-vertical-item/ProductBarVerticalItem.tsx
|
|
101
|
+
function D({ children: o, className: s, as: c, keyId: l, active: u = !1, collapsed: d = !1, isMinimized: f = !1, isMinimizable: p = !1, onExpandSidebar: m, icon: h, ...g }) {
|
|
102
|
+
let _ = c ?? "a", [v, y] = a(o, [{ type: D }]), [O, k] = e.useState(!d), [A] = a(o, [{ type: D }], !0), j = A.some((e) => e.props.active), M = u || !O && j, N = e.useRef(null), P = i(y, (e) => e.type?.displayName === "SpsTag" || n.isWoodlandComponent(e.type) && n.get(e.type).name === "Tag" ? [{ className: r(e.props?.className, E({ active: M })) }] : []);
|
|
103
|
+
return /* @__PURE__ */ e.createElement(e.Fragment, null, v.length ? /* @__PURE__ */ e.createElement("ul", { className: r(b, h && "pkg_sps-woodland_core__family_product-bar-vertical__version_8_56_3__hash_1l0rb80q", f && !h && "visually-hidden") }, /* @__PURE__ */ e.createElement("li", {
|
|
104
|
+
ref: N,
|
|
105
|
+
"data-selected": (f || !O) && j,
|
|
106
|
+
className: S({ selected: (f || !O) && j }),
|
|
107
|
+
"aria-expanded": !f && O,
|
|
108
|
+
onClick: () => f ? m?.() : k(!O)
|
|
109
|
+
}, /* @__PURE__ */ e.createElement(_, {
|
|
110
|
+
className: C,
|
|
111
|
+
tabIndex: 0,
|
|
112
|
+
onKeyDown: (e) => {
|
|
113
|
+
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), f ? m?.() : k(!O));
|
|
114
|
+
},
|
|
115
|
+
...g,
|
|
116
|
+
"aria-expanded": !f && O
|
|
117
|
+
}, /* @__PURE__ */ e.createElement("div", { className: r("d-flex align-items-center", w) }, h && /* @__PURE__ */ e.createElement(t, {
|
|
118
|
+
icon: h,
|
|
119
|
+
className: "mr-3"
|
|
120
|
+
}), !f && /* @__PURE__ */ e.createElement(t, {
|
|
121
|
+
className: "pkg_sps-woodland_core__family_product-bar-vertical__version_8_56_3__hash_1l0rb80n",
|
|
122
|
+
icon: O ? "chevron-down" : "chevron-right"
|
|
123
|
+
}), /* @__PURE__ */ e.createElement("div", { className: r(T, f && "visually-hidden") }, P)))), O && (f ? /* @__PURE__ */ e.createElement("div", { className: "visually-hidden" }, v) : v)) : /* @__PURE__ */ e.createElement("li", {
|
|
124
|
+
ref: N,
|
|
125
|
+
className: r(x({ selected: u }), f && !h && "visually-hidden")
|
|
126
|
+
}, /* @__PURE__ */ e.createElement(_, {
|
|
127
|
+
className: C,
|
|
128
|
+
tabIndex: 0,
|
|
129
|
+
onKeyDown: (e) => {
|
|
130
|
+
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), e.currentTarget.click());
|
|
131
|
+
},
|
|
132
|
+
...g
|
|
133
|
+
}, /* @__PURE__ */ e.createElement("div", { className: r("d-flex align-items-center", w) }, h && /* @__PURE__ */ e.createElement(t, {
|
|
134
|
+
icon: h,
|
|
135
|
+
className: "mr-2"
|
|
136
|
+
}), /* @__PURE__ */ e.createElement("div", { className: r(T, f && "visually-hidden") }, P)))));
|
|
162
137
|
}
|
|
163
|
-
|
|
164
|
-
|
|
138
|
+
n.set(D, {
|
|
139
|
+
name: "ProductBarVerticalItem",
|
|
140
|
+
props: {
|
|
141
|
+
keyId: {
|
|
142
|
+
type: "string",
|
|
143
|
+
required: !0
|
|
144
|
+
},
|
|
145
|
+
as: { type: "string" },
|
|
146
|
+
active: {
|
|
147
|
+
type: "boolean",
|
|
148
|
+
required: !0
|
|
149
|
+
},
|
|
150
|
+
collapsed: {
|
|
151
|
+
type: "boolean",
|
|
152
|
+
required: !1
|
|
153
|
+
},
|
|
154
|
+
icon: {
|
|
155
|
+
type: "string",
|
|
156
|
+
required: !1
|
|
157
|
+
},
|
|
158
|
+
isMinimized: {
|
|
159
|
+
type: "boolean",
|
|
160
|
+
required: !1
|
|
161
|
+
},
|
|
162
|
+
onExpandSidebar: {
|
|
163
|
+
type: "function",
|
|
164
|
+
required: !1
|
|
165
|
+
}
|
|
166
|
+
}
|
|
165
167
|
});
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
}
|
|
183
|
-
},
|
|
184
|
-
t && /* @__PURE__ */ e.createElement(
|
|
185
|
-
"img",
|
|
186
|
-
{
|
|
187
|
-
className: U({ minimized: !!s }),
|
|
188
|
-
src: t,
|
|
189
|
-
"aria-hidden": "true",
|
|
190
|
-
alt: `${_} Logo`
|
|
191
|
-
}
|
|
192
|
-
),
|
|
193
|
-
!s && _ && /* @__PURE__ */ e.createElement("span", { className: X }, _)
|
|
194
|
-
));
|
|
168
|
+
//#endregion
|
|
169
|
+
//#region src/product-bar-vertical/product-bar-vertical-section/ProductBarVerticalSection.tsx
|
|
170
|
+
var O = "file";
|
|
171
|
+
function k({ children: t, className: n, title: r, onSelect: i, isMinimized: o, isMinimizable: s, onExpandSidebar: c, ...l }) {
|
|
172
|
+
let [u, d] = a(t, [{ type: D }]), f = u.map((t) => {
|
|
173
|
+
if (!e.isValidElement(t)) return t;
|
|
174
|
+
let n = {
|
|
175
|
+
isMinimized: o,
|
|
176
|
+
onExpandSidebar: c
|
|
177
|
+
};
|
|
178
|
+
return s && !t.props.icon && (n.icon = O), e.cloneElement(t, n);
|
|
179
|
+
});
|
|
180
|
+
return /* @__PURE__ */ e.createElement("div", {
|
|
181
|
+
className: v,
|
|
182
|
+
...l
|
|
183
|
+
}, /* @__PURE__ */ e.createElement("ul", { className: y }, f), d);
|
|
195
184
|
}
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
})
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
]);
|
|
217
|
-
function i() {
|
|
218
|
-
const o = !r;
|
|
219
|
-
m(o), s && s(o);
|
|
220
|
-
}
|
|
221
|
-
const h = e.Children.map(
|
|
222
|
-
v,
|
|
223
|
-
(o) => e.isValidElement(o) ? e.cloneElement(o, { isMinimized: r }) : o
|
|
224
|
-
), w = c.map(
|
|
225
|
-
(o) => e.isValidElement(o) ? e.cloneElement(o, { isMinimized: r, isMinimizable: t, onExpandSidebar: i }) : o
|
|
226
|
-
), p = D(f, (o) => {
|
|
227
|
-
const E = { isMinimized: r, isMinimizable: t, onExpandSidebar: i };
|
|
228
|
-
return t && !o.props.icon && (E.icon = "file"), [E];
|
|
229
|
-
}, !1);
|
|
230
|
-
return /* @__PURE__ */ e.createElement(
|
|
231
|
-
"div",
|
|
232
|
-
{
|
|
233
|
-
className: u(
|
|
234
|
-
R,
|
|
235
|
-
r && W,
|
|
236
|
-
_
|
|
237
|
-
),
|
|
238
|
-
...d
|
|
239
|
-
},
|
|
240
|
-
/* @__PURE__ */ e.createElement("div", { className: F }, h, t && /* @__PURE__ */ e.createElement("div", { className: u(G({ minimized: r })) }, /* @__PURE__ */ e.createElement(
|
|
241
|
-
A,
|
|
242
|
-
{
|
|
243
|
-
kind: "icon",
|
|
244
|
-
icon: r ? "chevron-right" : "chevron-left",
|
|
245
|
-
onClick: i,
|
|
246
|
-
"aria-expanded": !r
|
|
247
|
-
}
|
|
248
|
-
))),
|
|
249
|
-
e.Children.toArray(w),
|
|
250
|
-
/* @__PURE__ */ e.createElement("ul", { className: j }, e.Children.toArray(p))
|
|
251
|
-
);
|
|
185
|
+
n.set(k, { name: "ProductBarVerticalSection" });
|
|
186
|
+
//#endregion
|
|
187
|
+
//#region src/product-bar-vertical/product-bar-vertical-header/ProductBarVerticalHeader.tsx
|
|
188
|
+
function A({ className: t, name: n, logoSrc: i, href: a, isMinimized: o, ...s }) {
|
|
189
|
+
return /* @__PURE__ */ e.createElement("div", {
|
|
190
|
+
className: r(h({ minimized: !!o }), t),
|
|
191
|
+
...s
|
|
192
|
+
}, /* @__PURE__ */ e.createElement("a", {
|
|
193
|
+
className: g,
|
|
194
|
+
href: a,
|
|
195
|
+
tabIndex: 0,
|
|
196
|
+
onKeyDown: (e) => {
|
|
197
|
+
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), e.currentTarget.click());
|
|
198
|
+
}
|
|
199
|
+
}, i && /* @__PURE__ */ e.createElement("img", {
|
|
200
|
+
className: _({ minimized: !!o }),
|
|
201
|
+
src: i,
|
|
202
|
+
"aria-hidden": "true",
|
|
203
|
+
alt: `${n} Logo`
|
|
204
|
+
}), !o && n && /* @__PURE__ */ e.createElement("span", { className: "pkg_sps-woodland_core__family_product-bar-vertical__version_8_56_3__hash_1l0rb80d" }, n)));
|
|
252
205
|
}
|
|
253
|
-
|
|
254
|
-
|
|
206
|
+
n.set(A, {
|
|
207
|
+
name: "ProductBarVerticalHeader",
|
|
208
|
+
props: {
|
|
209
|
+
name: { type: "string" },
|
|
210
|
+
logoSrc: { type: "string" },
|
|
211
|
+
isMinimized: { type: "boolean" }
|
|
212
|
+
}
|
|
255
213
|
});
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
}
|
|
214
|
+
//#endregion
|
|
215
|
+
//#region src/product-bar-vertical/product-bar-vertical/ProductBarVertical.tsx
|
|
216
|
+
function j({ children: t, className: n, isMinimizable: s, initialIsMinimized: c = !1, onMinimizeToggle: l, ...u }) {
|
|
217
|
+
let [d, h] = e.useState(c), [g, _, v] = a(t, [
|
|
218
|
+
{ type: A },
|
|
219
|
+
{ type: k },
|
|
220
|
+
{ type: D }
|
|
221
|
+
]);
|
|
222
|
+
function b() {
|
|
223
|
+
let e = !d;
|
|
224
|
+
h(e), l && l(e);
|
|
225
|
+
}
|
|
226
|
+
let x = e.Children.map(g, (t) => e.isValidElement(t) ? e.cloneElement(t, { isMinimized: d }) : t), S = _.map((t) => e.isValidElement(t) ? e.cloneElement(t, {
|
|
227
|
+
isMinimized: d,
|
|
228
|
+
isMinimizable: s,
|
|
229
|
+
onExpandSidebar: b
|
|
230
|
+
}) : t), C = i(v, (e) => {
|
|
231
|
+
let t = {
|
|
232
|
+
isMinimized: d,
|
|
233
|
+
isMinimizable: s,
|
|
234
|
+
onExpandSidebar: b
|
|
235
|
+
};
|
|
236
|
+
return s && !e.props.icon && (t.icon = "file"), [t];
|
|
237
|
+
}, !1);
|
|
238
|
+
return /* @__PURE__ */ e.createElement("div", {
|
|
239
|
+
className: r(f, d && "pkg_sps-woodland_core__family_product-bar-vertical__version_8_56_3__hash_1l0rb801", n),
|
|
240
|
+
...u
|
|
241
|
+
}, /* @__PURE__ */ e.createElement("div", { className: p }, x, s && /* @__PURE__ */ e.createElement("div", { className: r(m({ minimized: d })) }, /* @__PURE__ */ e.createElement(o, {
|
|
242
|
+
kind: "icon",
|
|
243
|
+
icon: d ? "chevron-right" : "chevron-left",
|
|
244
|
+
onClick: b,
|
|
245
|
+
"aria-expanded": !d
|
|
246
|
+
}))), e.Children.toArray(S), /* @__PURE__ */ e.createElement("ul", { className: y }, e.Children.toArray(C)));
|
|
247
|
+
}
|
|
248
|
+
n.set(j, { name: "ProductBarVertical" });
|
|
249
|
+
//#endregion
|
|
250
|
+
export { j as ProductBarVertical, A as ProductBarVerticalHeader, D as ProductBarVerticalItem, k as ProductBarVerticalSection };
|