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