@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,317 +1,321 @@
1
1
  import * as e from "react";
2
- import { Metadata as f, modChildren as J, cl as B, selectChildren as Q, addProps as U, PortalContext as X, contentOf as Z } from "@sps-woodland/core";
3
- import { Button as b } from "@sps-woodland/core/button";
4
- import { Tag as N } from "@sps-woodland/core/tag";
5
- import { lockToAnimationFrames as $ } from "@spscommerce/utils";
6
- import { SpsInputGroup as ee, SpsCheckbox as ae, SpsDropdown as te, SpsForm as re } from "@spscommerce/ds-react";
7
- import { useWoodlandLanguage as z } from "@spscommerce/i18n";
8
- import { sprinkles as se } from "@sps-woodland/tokens";
9
- var ne = "pkg_sps-woodland_core__family_list-bar__version_8_56_2__hash_1o1g57h0", _e = "pkg_sps-woodland_core__family_list-bar__version_8_56_2__hash_1o1g57h1", oe = "pkg_sps-woodland_core__family_list-bar__version_8_56_2__hash_1o1g57h2", le = "pkg_sps-woodland_core__family_list-bar__version_8_56_2__hash_1o1g57h3", ie = "pkg_sps-woodland_core__family_list-bar__version_8_56_2__hash_1o1g57h4", ce = "pkg_sps-woodland_core__family_list-bar__version_8_56_2__hash_1o1g57h5", de = "pkg_sps-woodland_core__family_list-bar__version_8_56_2__hash_1o1g57h6", pe = "pkg_sps-woodland_core__family_list-bar__version_8_56_2__hash_1o1g57h7";
10
- function A({
11
- results: a,
12
- selections: r,
13
- zeroStateText: t,
14
- onClear: s,
15
- className: n,
16
- children: i,
17
- ...c
18
- }) {
19
- const { t: _ } = z(), p = r ? Object.keys(r).reduce((o, d) => (r[d].length > 0 && (o[d] = r[d]), o), {}) : {};
20
- return /* @__PURE__ */ e.createElement("div", { className: _e, ...c }, a != null && /* @__PURE__ */ e.createElement("div", { className: oe }, /* @__PURE__ */ e.createElement("span", null, _("searchResultsBar.results", { defaultValue: "Results:" })), /* @__PURE__ */ e.createElement(N, { className: le, kind: "info" }, /* @__PURE__ */ e.createElement("span", null, a))), /* @__PURE__ */ e.createElement("div", { className: ie }, Object.keys(p).length > 0 ? Object.keys(p).map((o, d) => /* @__PURE__ */ e.createElement(e.Fragment, { key: o }, /* @__PURE__ */ e.createElement("span", { key: d, className: ce }, o, ":"), p[o].map((h, v) => /* @__PURE__ */ e.createElement(N, { className: de, key: v, kind: "key" }, /* @__PURE__ */ e.createElement("span", null, h))))) : /* @__PURE__ */ e.createElement("span", { className: "font-italic" }, t || _("searchResultsBar.noAdvancedSearchSelections", { defaultValue: "No Advanced Search Selections" }))), /* @__PURE__ */ e.createElement("div", { className: pe }, /* @__PURE__ */ e.createElement(b, { fill: !0, noWrap: !0, kind: "link", onClick: s }, _("searchResultsBar.clearResults", { defaultValue: "Clear Results" }))));
2
+ import { Metadata as t, PortalContext as n, addProps as r, cl as i, contentOf as a, modChildren as o, selectChildren as s } from "@sps-woodland/core";
3
+ import { Button as c } from "@sps-woodland/core/button";
4
+ import { Tag as l } from "@sps-woodland/core/tag";
5
+ import { lockToAnimationFrames as u } from "@spscommerce/utils";
6
+ import { SpsCheckbox as d, SpsDropdown as f, SpsForm as p, SpsInputGroup as m } from "@spscommerce/ds-react";
7
+ import { useWoodlandLanguage as h } from "@spscommerce/i18n";
8
+ import { sprinkles as g } from "@sps-woodland/tokens";
9
+ //#region src/list-bar/search-results-bar/SearchResultsBar.css.ts
10
+ var _ = "pkg_sps-woodland_core__family_list-bar__version_8_56_3__hash_1o1g57h0", v = "pkg_sps-woodland_core__family_list-bar__version_8_56_3__hash_1o1g57h1", y = "pkg_sps-woodland_core__family_list-bar__version_8_56_3__hash_1o1g57h4", b = "pkg_sps-woodland_core__family_list-bar__version_8_56_3__hash_1o1g57h5", x = "pkg_sps-woodland_core__family_list-bar__version_8_56_3__hash_1o1g57h6", S = "pkg_sps-woodland_core__family_list-bar__version_8_56_3__hash_1o1g57h7";
11
+ //#endregion
12
+ //#region src/list-bar/search-results-bar/SearchResultsBar.tsx
13
+ function C({ results: t, selections: n, zeroStateText: r, onClear: i, className: a, children: o, ...s }) {
14
+ let { t: u } = h(), d = n ? Object.keys(n).reduce((e, t) => (n[t].length > 0 && (e[t] = n[t]), e), {}) : {};
15
+ return /* @__PURE__ */ e.createElement("div", {
16
+ className: v,
17
+ ...s
18
+ }, t != null && /* @__PURE__ */ e.createElement("div", { className: "pkg_sps-woodland_core__family_list-bar__version_8_56_3__hash_1o1g57h2" }, /* @__PURE__ */ e.createElement("span", null, u("searchResultsBar.results", { defaultValue: "Results:" })), /* @__PURE__ */ e.createElement(l, {
19
+ className: "pkg_sps-woodland_core__family_list-bar__version_8_56_3__hash_1o1g57h3",
20
+ kind: "info"
21
+ }, /* @__PURE__ */ e.createElement("span", null, t))), /* @__PURE__ */ e.createElement("div", { className: y }, Object.keys(d).length > 0 ? Object.keys(d).map((t, n) => /* @__PURE__ */ e.createElement(e.Fragment, { key: t }, /* @__PURE__ */ e.createElement("span", {
22
+ key: n,
23
+ className: b
24
+ }, t, ":"), d[t].map((t, n) => /* @__PURE__ */ e.createElement(l, {
25
+ className: x,
26
+ key: n,
27
+ kind: "key"
28
+ }, /* @__PURE__ */ e.createElement("span", null, t))))) : /* @__PURE__ */ e.createElement("span", { className: "font-italic" }, r || u("searchResultsBar.noAdvancedSearchSelections", { defaultValue: "No Advanced Search Selections" }))), /* @__PURE__ */ e.createElement("div", { className: S }, /* @__PURE__ */ e.createElement(c, {
29
+ fill: !0,
30
+ noWrap: !0,
31
+ kind: "link",
32
+ onClick: i
33
+ }, u("searchResultsBar.clearResults", { defaultValue: "Clear Results" }))));
21
34
  }
22
- f.set(A, {
23
- name: "Search Results Bar",
24
- props: {
25
- results: { type: "number | string | null" },
26
- selections: { type: "{ [key: string]: string[] }" },
27
- zeroStateText: { type: "string" },
28
- onClear: { type: "() => void" }
29
- }
35
+ t.set(C, {
36
+ name: "Search Results Bar",
37
+ props: {
38
+ results: { type: "number | string | null" },
39
+ selections: { type: "{ [key: string]: string[] }" },
40
+ zeroStateText: { type: "string" },
41
+ onClear: { type: "() => void" }
42
+ }
30
43
  });
31
- function me(a, r, t) {
32
- return r in a ? Object.defineProperty(a, r, {
33
- value: t,
34
- enumerable: !0,
35
- configurable: !0,
36
- writable: !0
37
- }) : a[r] = t, a;
44
+ //#endregion
45
+ //#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
46
+ function w(e, t, n) {
47
+ return t in e ? Object.defineProperty(e, t, {
48
+ value: n,
49
+ enumerable: !0,
50
+ configurable: !0,
51
+ writable: !0
52
+ }) : e[t] = n, e;
38
53
  }
39
- function P(a, r) {
40
- var t = Object.keys(a);
41
- if (Object.getOwnPropertySymbols) {
42
- var s = Object.getOwnPropertySymbols(a);
43
- r && (s = s.filter(function(n) {
44
- return Object.getOwnPropertyDescriptor(a, n).enumerable;
45
- })), t.push.apply(t, s);
46
- }
47
- return t;
54
+ function T(e, t) {
55
+ var n = Object.keys(e);
56
+ if (Object.getOwnPropertySymbols) {
57
+ var r = Object.getOwnPropertySymbols(e);
58
+ t && (r = r.filter(function(t) {
59
+ return Object.getOwnPropertyDescriptor(e, t).enumerable;
60
+ })), n.push.apply(n, r);
61
+ }
62
+ return n;
48
63
  }
49
- function L(a) {
50
- for (var r = 1; r < arguments.length; r++) {
51
- var t = arguments[r] != null ? arguments[r] : {};
52
- r % 2 ? P(Object(t), !0).forEach(function(s) {
53
- me(a, s, t[s]);
54
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) : P(Object(t)).forEach(function(s) {
55
- Object.defineProperty(a, s, Object.getOwnPropertyDescriptor(t, s));
56
- });
57
- }
58
- return a;
64
+ function E(e) {
65
+ for (var t = 1; t < arguments.length; t++) {
66
+ var n = arguments[t] == null ? {} : arguments[t];
67
+ t % 2 ? T(Object(n), !0).forEach(function(t) {
68
+ w(e, t, n[t]);
69
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : T(Object(n)).forEach(function(t) {
70
+ Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
71
+ });
72
+ }
73
+ return e;
59
74
  }
60
- var ue = (a, r, t) => {
61
- for (var s of Object.keys(a)) {
62
- var n;
63
- if (a[s] !== ((n = r[s]) !== null && n !== void 0 ? n : t[s]))
64
- return !1;
65
- }
66
- return !0;
67
- }, C = (a) => (r) => {
68
- var t = a.defaultClassName, s = L(L({}, a.defaultVariants), r);
69
- for (var n in s) {
70
- var i, c = (i = s[n]) !== null && i !== void 0 ? i : a.defaultVariants[n];
71
- if (c != null) {
72
- var _ = c;
73
- typeof _ == "boolean" && (_ = _ === !0 ? "true" : "false");
74
- var p = (
75
- // @ts-expect-error
76
- a.variantClassNames[n][_]
77
- );
78
- p && (t += " " + p);
79
- }
80
- }
81
- for (var [o, d] of a.compoundVariants)
82
- ue(o, s, a.defaultVariants) && (t += " " + d);
83
- return t;
84
- }, fe = C({ defaultClassName: "pkg_sps-woodland_core__family_list-bar__version_8_56_2__hash_uzzgwv1", variantClassNames: { pinned: { true: "pkg_sps-woodland_core__family_list-bar__version_8_56_2__hash_uzzgwv2", false: "pkg_sps-woodland_core__family_list-bar__version_8_56_2__hash_uzzgwv3" } }, defaultVariants: { pinned: !1 }, compoundVariants: [] }), he = "pkg_sps-woodland_core__family_list-bar__version_8_56_2__hash_uzzgwv4", ve = "pkg_sps-woodland_core__family_list-bar__version_8_56_2__hash_uzzgwv5", ye = "pkg_sps-woodland_core__family_list-bar__version_8_56_2__hash_uzzgwv6", ge = "pkg_sps-woodland_core__family_list-bar__version_8_56_2__hash_uzzgwv7", be = "pkg_sps-woodland_core__family_list-bar__version_8_56_2__hash_uzzgwv8", we = "pkg_sps-woodland_core__family_list-bar__version_8_56_2__hash_uzzgwv9", Se = "pkg_sps-woodland_core__family_list-bar__version_8_56_2__hash_uzzgwva", j = "pkg_sps-woodland_core__family_list-bar__version_8_56_2__hash_uzzgwvb", Ee = "pkg_sps-woodland_core__family_list-bar__version_8_56_2__hash_uzzgwvc", ke = "pkg_sps-woodland_core__family_list-bar__version_8_56_2__hash_uzzgwvd", Be = "pkg_sps-woodland_core__family_list-bar__version_8_56_2__hash_uzzgwve", Ne = "pkg_sps-woodland_core__family_list-bar__version_8_56_2__hash_uzzgwvf";
85
- function ze({
86
- children: a
87
- }) {
88
- const r = J(
89
- a,
90
- (t) => t.type === b ? [
91
- {
92
- className: B(t.props.className, Be)
93
- }
94
- ] : []
95
- );
96
- return /* @__PURE__ */ e.createElement(e.Fragment, null, r);
75
+ var D = (e, t, n) => {
76
+ for (var r of Object.keys(e)) if (e[r] !== (t[r] ?? n[r])) return !1;
77
+ return !0;
78
+ }, O = (e) => (t) => {
79
+ var n = e.defaultClassName, r = E(E({}, e.defaultVariants), t);
80
+ for (var i in r) {
81
+ var a = r[i] ?? e.defaultVariants[i];
82
+ if (a != null) {
83
+ var o = a;
84
+ typeof o == "boolean" && (o = o === !0 ? "true" : "false");
85
+ var s = e.variantClassNames[i][o];
86
+ s && (n += " " + s);
87
+ }
88
+ }
89
+ for (var [c, l] of e.compoundVariants) D(c, r, e.defaultVariants) && (n += " " + l);
90
+ return n;
91
+ }, k = O({
92
+ defaultClassName: "pkg_sps-woodland_core__family_list-bar__version_8_56_3__hash_uzzgwv1",
93
+ variantClassNames: { pinned: {
94
+ true: "pkg_sps-woodland_core__family_list-bar__version_8_56_3__hash_uzzgwv2",
95
+ false: "pkg_sps-woodland_core__family_list-bar__version_8_56_3__hash_uzzgwv3"
96
+ } },
97
+ defaultVariants: { pinned: !1 },
98
+ compoundVariants: []
99
+ }), A = "pkg_sps-woodland_core__family_list-bar__version_8_56_3__hash_uzzgwv4", j = "pkg_sps-woodland_core__family_list-bar__version_8_56_3__hash_uzzgwv6", M = "pkg_sps-woodland_core__family_list-bar__version_8_56_3__hash_uzzgwvb", N = "pkg_sps-woodland_core__family_list-bar__version_8_56_3__hash_uzzgwvc", P = "pkg_sps-woodland_core__family_list-bar__version_8_56_3__hash_uzzgwvd", F = "pkg_sps-woodland_core__family_list-bar__version_8_56_3__hash_uzzgwve", I = "pkg_sps-woodland_core__family_list-bar__version_8_56_3__hash_uzzgwvf";
100
+ //#endregion
101
+ //#region src/list-bar/list-bar/InputGroupWrapper.tsx
102
+ function L({ children: t }) {
103
+ let n = o(t, (e) => e.type === c ? [{ className: i(e.props.className, F) }] : []);
104
+ return /* @__PURE__ */ e.createElement(e.Fragment, null, n);
97
105
  }
98
- function I({
99
- onSubmit: a,
100
- children: r
101
- }) {
102
- function t(s) {
103
- s.preventDefault(), a && a(s);
104
- }
105
- return /* @__PURE__ */ e.createElement("form", { onSubmit: t, className: Ee, noValidate: !0 }, /* @__PURE__ */ e.createElement(ee, { className: ke }, /* @__PURE__ */ e.createElement(ze, null, r)));
106
+ //#endregion
107
+ //#region src/list-bar/list-bar/ListBarSearch.tsx
108
+ function R({ onSubmit: t, children: n }) {
109
+ function r(e) {
110
+ e.preventDefault(), t && t(e);
111
+ }
112
+ return /* @__PURE__ */ e.createElement("form", {
113
+ onSubmit: r,
114
+ className: N,
115
+ noValidate: !0
116
+ }, /* @__PURE__ */ e.createElement(m, { className: P }, /* @__PURE__ */ e.createElement(L, null, n)));
106
117
  }
107
- f.set(I, {
108
- name: "ListBarSearch",
109
- props: {
110
- onSubmit: { type: "FormEventHandler" }
111
- }
118
+ t.set(R, {
119
+ name: "ListBarSearch",
120
+ props: { onSubmit: { type: "FormEventHandler" } }
112
121
  });
113
- function x({
114
- children: a
115
- }) {
116
- return /* @__PURE__ */ e.createElement("div", null, a);
122
+ //#endregion
123
+ //#region src/list-bar/list-bar/ListBarSearchInfo.tsx
124
+ function z({ children: t }) {
125
+ return /* @__PURE__ */ e.createElement("div", null, t);
117
126
  }
118
- f.set(x, {
119
- name: "ListBarSearchInfo"
120
- });
121
- function Ce({
122
- advancedSearch: a,
123
- onToggleAdvancedSearch: r,
124
- title: t,
125
- onToolbarPinned: s,
126
- selectable: n,
127
- isSelected: i,
128
- isIndeterminate: c,
129
- disableSelection: _ = !1,
130
- onSelectionChange: p,
131
- pinResultsBar: o,
132
- pinToolbar: d = !0,
133
- advancedSearchToggleText: h,
134
- children: v,
135
- className: w,
136
- ...S
137
- }) {
138
- const { t: M } = z();
139
- let E = null;
140
- const [m, R] = e.useState(!1), y = e.useRef(null), u = e.useRef(null), { "data-testid": O } = S, k = $(() => {
141
- if (y.current && d) {
142
- const l = y.current.getBoundingClientRect();
143
- if (!l)
144
- return;
145
- const Y = Math.round(l.height), K = Math.round(l.top), q = Math.round(window.scrollY);
146
- Y > 0 && K <= 60 && (typeof E == "number" ? q <= E && (E = null, R(!1)) : (E = Math.round(window.scrollY), R(!0), r && r(!1)));
147
- }
148
- });
149
- e.useEffect(() => (window.addEventListener("scroll", k), window.addEventListener("resize", k), () => {
150
- window.removeEventListener("scroll", k), window.removeEventListener("resize", k);
151
- }), []);
152
- const g = e.useRef();
153
- e.useLayoutEffect(() => {
154
- if (u.current && y.current && d) {
155
- if (m && g.current)
156
- u.current.style.height = g.current.height, u.current.style.width = g.current.width, u.current.style.marginBottom = g.current.marginBottom;
157
- else if (!m) {
158
- u.current.style.height = "", u.current.style.width = "", u.current.style.marginBottom = "";
159
- const l = window.getComputedStyle(y.current);
160
- g.current = {
161
- height: l.height,
162
- width: l.width,
163
- marginBottom: l.marginBottom
164
- };
165
- }
166
- }
167
- }, [m]);
168
- function D() {
169
- r && r(!a?.isOpen);
170
- }
171
- function W(l) {
172
- s && s(l);
173
- }
174
- e.useEffect(() => {
175
- W(m);
176
- }, [m]);
177
- const [
178
- F,
179
- G,
180
- H,
181
- [T],
182
- V
183
- ] = Q(v, [
184
- { type: I },
185
- { type: x },
186
- { type: A },
187
- {
188
- custom: (l) => f.isWoodlandComponent(l) && f.get(l).name === "Tabs"
189
- }
190
- ]);
191
- return /* @__PURE__ */ e.createElement("div", { className: B(w), ref: u, ...S }, /* @__PURE__ */ e.createElement("div", { className: fe({ pinned: m }), ref: y }, T ? U(T, { context: "container" }) : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: he }, !!n && /* @__PURE__ */ e.createElement("div", { className: ve }, /* @__PURE__ */ e.createElement(
192
- ae,
193
- {
194
- checked: i,
195
- disabled: _,
196
- indeterminate: c,
197
- onChange: () => {
198
- p?.(!i);
199
- }
200
- }
201
- )), /* @__PURE__ */ e.createElement("div", { className: ye }, !t && F, !t && G, F.length > 0 && a && /* @__PURE__ */ e.createElement(
202
- "div",
203
- {
204
- className: ge,
205
- "data-testid": `${O}__advanced-search`
206
- },
207
- /* @__PURE__ */ e.createElement("div", { className: be }, /* @__PURE__ */ e.createElement(b, { kind: "link", onClick: D }, h ?? M("listToolbar.advancedSearchToggle", { defaultValue: "Advanced Search" }))),
208
- (a.enteredFields || 0) > 0 && /* @__PURE__ */ e.createElement(N, { className: we, kind: "info", "data-testid": `${O}__entered-fields` }, /* @__PURE__ */ e.createElement("span", null, a.enteredFields))
209
- ), t && /* @__PURE__ */ e.createElement("div", { className: Se }, t)), m ? /* @__PURE__ */ e.createElement("div", { className: j }, /* @__PURE__ */ e.createElement(X.Provider, { value: { fixed: !0 } }, V)) : /* @__PURE__ */ e.createElement("div", { className: j }, V)), /* @__PURE__ */ e.createElement("div", { className: ne }, (!m || o) && H))));
127
+ t.set(z, { name: "ListBarSearchInfo" });
128
+ //#endregion
129
+ //#region src/list-bar/list-bar/ListBar.tsx
130
+ function B({ advancedSearch: a, onToggleAdvancedSearch: o, title: f, onToolbarPinned: p, selectable: m, isSelected: g, isIndeterminate: v, disableSelection: y = !1, onSelectionChange: b, pinResultsBar: x, pinToolbar: S = !0, advancedSearchToggleText: w, children: T, className: E, ...D }) {
131
+ let { t: O } = h(), N = null, [P, F] = e.useState(!1), I = e.useRef(null), L = e.useRef(null), { "data-testid": B } = D, V = u(() => {
132
+ if (I.current && S) {
133
+ let e = I.current.getBoundingClientRect();
134
+ if (!e) return;
135
+ let t = Math.round(e.height), n = Math.round(e.top), r = Math.round(window.scrollY);
136
+ t > 0 && n <= 60 && (typeof N == "number" ? r <= N && (N = null, F(!1)) : (N = Math.round(window.scrollY), F(!0), o && o(!1)));
137
+ }
138
+ });
139
+ e.useEffect(() => (window.addEventListener("scroll", V), window.addEventListener("resize", V), () => {
140
+ window.removeEventListener("scroll", V), window.removeEventListener("resize", V);
141
+ }), []);
142
+ let H = e.useRef();
143
+ e.useLayoutEffect(() => {
144
+ if (L.current && I.current && S) {
145
+ if (P && H.current) L.current.style.height = H.current.height, L.current.style.width = H.current.width, L.current.style.marginBottom = H.current.marginBottom;
146
+ else if (!P) {
147
+ L.current.style.height = "", L.current.style.width = "", L.current.style.marginBottom = "";
148
+ let e = window.getComputedStyle(I.current);
149
+ H.current = {
150
+ height: e.height,
151
+ width: e.width,
152
+ marginBottom: e.marginBottom
153
+ };
154
+ }
155
+ }
156
+ }, [P]);
157
+ function U() {
158
+ o && o(!a?.isOpen);
159
+ }
160
+ function W(e) {
161
+ p && p(e);
162
+ }
163
+ e.useEffect(() => {
164
+ W(P);
165
+ }, [P]);
166
+ let [G, K, q, [J], Y] = s(T, [
167
+ { type: R },
168
+ { type: z },
169
+ { type: C },
170
+ { custom: (e) => t.isWoodlandComponent(e) && t.get(e).name === "Tabs" }
171
+ ]);
172
+ return /* @__PURE__ */ e.createElement("div", {
173
+ className: i(E),
174
+ ref: L,
175
+ ...D
176
+ }, /* @__PURE__ */ e.createElement("div", {
177
+ className: k({ pinned: P }),
178
+ ref: I
179
+ }, J ? r(J, { context: "container" }) : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: A }, !!m && /* @__PURE__ */ e.createElement("div", { className: "pkg_sps-woodland_core__family_list-bar__version_8_56_3__hash_uzzgwv5" }, /* @__PURE__ */ e.createElement(d, {
180
+ checked: g,
181
+ disabled: y,
182
+ indeterminate: v,
183
+ onChange: () => {
184
+ b?.(!g);
185
+ }
186
+ })), /* @__PURE__ */ e.createElement("div", { className: j }, !f && G, !f && K, G.length > 0 && a && /* @__PURE__ */ e.createElement("div", {
187
+ className: "pkg_sps-woodland_core__family_list-bar__version_8_56_3__hash_uzzgwv7",
188
+ "data-testid": `${B}__advanced-search`
189
+ }, /* @__PURE__ */ e.createElement("div", { className: "pkg_sps-woodland_core__family_list-bar__version_8_56_3__hash_uzzgwv8" }, /* @__PURE__ */ e.createElement(c, {
190
+ kind: "link",
191
+ onClick: U
192
+ }, w ?? O("listToolbar.advancedSearchToggle", { defaultValue: "Advanced Search" }))), (a.enteredFields || 0) > 0 && /* @__PURE__ */ e.createElement(l, {
193
+ className: "pkg_sps-woodland_core__family_list-bar__version_8_56_3__hash_uzzgwv9",
194
+ kind: "info",
195
+ "data-testid": `${B}__entered-fields`
196
+ }, /* @__PURE__ */ e.createElement("span", null, a.enteredFields))), f && /* @__PURE__ */ e.createElement("div", { className: "pkg_sps-woodland_core__family_list-bar__version_8_56_3__hash_uzzgwva" }, f)), P ? /* @__PURE__ */ e.createElement("div", { className: M }, /* @__PURE__ */ e.createElement(n.Provider, { value: { fixed: !0 } }, Y)) : /* @__PURE__ */ e.createElement("div", { className: M }, Y)), /* @__PURE__ */ e.createElement("div", { className: _ }, (!P || x) && q))));
210
197
  }
211
- f.set(Ce, {
212
- name: "ListBar",
213
- props: {
214
- activeTab: { type: "Tab" },
215
- advancedSearch: { type: "{ isOpen: boolean, enteredFields: number }" },
216
- onToggleAdvancedSearch: { type: "(boolean) => void" },
217
- title: { type: "string" },
218
- onToolbarPinned: { type: "(boolean) => void" },
219
- selectable: { type: "boolean" },
220
- disableSelection: { type: "boolean", default: "false" },
221
- isSelected: { type: "boolean" },
222
- isIndeterminate: { type: "boolean" },
223
- onSelectionChange: { type: "(boolean) => void" },
224
- pinResultsBar: { type: "boolean" },
225
- pinToolbar: { type: "boolean", default: "true" },
226
- advancedSearchToggleText: { type: "string" }
227
- }
198
+ t.set(B, {
199
+ name: "ListBar",
200
+ props: {
201
+ activeTab: { type: "Tab" },
202
+ advancedSearch: { type: "{ isOpen: boolean, enteredFields: number }" },
203
+ onToggleAdvancedSearch: { type: "(boolean) => void" },
204
+ title: { type: "string" },
205
+ onToolbarPinned: { type: "(boolean) => void" },
206
+ selectable: { type: "boolean" },
207
+ disableSelection: {
208
+ type: "boolean",
209
+ default: "false"
210
+ },
211
+ isSelected: { type: "boolean" },
212
+ isIndeterminate: { type: "boolean" },
213
+ onSelectionChange: { type: "(boolean) => void" },
214
+ pinResultsBar: { type: "boolean" },
215
+ pinToolbar: {
216
+ type: "boolean",
217
+ default: "true"
218
+ },
219
+ advancedSearchToggleText: { type: "string" }
220
+ }
228
221
  });
229
- function Re({
230
- options: a,
231
- activeOption: r,
232
- onSortChange: t,
233
- defaultOption: s,
234
- className: n,
235
- ...i
236
- }) {
237
- const c = (a || []).map((_) => [
238
- { label: _.label, icon: _.icon },
239
- () => {
240
- t && t(_);
241
- }
242
- ]);
243
- return /* @__PURE__ */ e.createElement(
244
- te,
245
- {
246
- className: B(n, Ne),
247
- icon: r?.icon || s?.icon,
248
- label: r?.label || s?.label,
249
- options: c
250
- }
251
- );
222
+ //#endregion
223
+ //#region src/list-bar/list-bar/ListBarSortBy.tsx
224
+ function V({ options: t, activeOption: n, onSortChange: r, defaultOption: a, className: o, ...s }) {
225
+ let c = (t || []).map((e) => [{
226
+ label: e.label,
227
+ icon: e.icon
228
+ }, () => {
229
+ r && r(e);
230
+ }]);
231
+ return /* @__PURE__ */ e.createElement(f, {
232
+ className: i(o, I),
233
+ icon: n?.icon || a?.icon,
234
+ label: n?.label || a?.label,
235
+ options: c
236
+ });
252
237
  }
253
- f.set(Re, {
254
- name: "ListBarSortBy",
255
- props: {
256
- options: { type: "SortOption[]" },
257
- activeOption: { type: "SortOption" },
258
- onSortChange: { type: "(option: SortOption) => void" },
259
- defaultOption: { type: "SortOption" }
260
- }
238
+ t.set(V, {
239
+ name: "ListBarSortBy",
240
+ props: {
241
+ options: { type: "SortOption[]" },
242
+ activeOption: { type: "SortOption" },
243
+ onSortChange: { type: "(option: SortOption) => void" },
244
+ defaultOption: { type: "SortOption" }
245
+ }
261
246
  });
262
- var Oe = C({ defaultClassName: "pkg_sps-woodland_core__family_list-bar__version_8_56_2__hash_am9pfc0", variantClassNames: { open: { true: "pkg_sps-woodland_core__family_list-bar__version_8_56_2__hash_am9pfc1", false: "pkg_sps-woodland_core__family_list-bar__version_8_56_2__hash_am9pfc2" }, compact: { true: "pkg_sps-woodland_core__family_list-bar__version_8_56_2__hash_am9pfc3", false: "pkg_sps-woodland_core__family_list-bar__version_8_56_2__hash_am9pfc4" } }, defaultVariants: { open: !1, compact: !1 }, compoundVariants: [] }), Fe = C({ defaultClassName: "pkg_sps-woodland_core__family_list-bar__version_8_56_2__hash_am9pfc5", variantClassNames: { open: { true: "pkg_sps-woodland_core__family_list-bar__version_8_56_2__hash_am9pfc6", false: "pkg_sps-woodland_core__family_list-bar__version_8_56_2__hash_am9pfc7" } }, defaultVariants: { open: !0 }, compoundVariants: [] }), Te = "pkg_sps-woodland_core__family_list-bar__version_8_56_2__hash_am9pfc8", Ve = "pkg_sps-woodland_core__family_list-bar__version_8_56_2__hash_am9pfc9";
263
- function Pe({
264
- formArray: a,
265
- formGroup: r,
266
- formMeta: t,
267
- onSubmit: s,
268
- controlsDisabled: n,
269
- footerLinks: i,
270
- isOpen: c,
271
- onClear: _,
272
- submitButtonText: p,
273
- compact: o,
274
- className: d,
275
- children: h,
276
- ...v
277
- }) {
278
- const { t: w } = z();
279
- function S() {
280
- _ && _();
281
- }
282
- return /* @__PURE__ */ e.createElement("div", { className: B(Oe({ open: c, compact: o })), ...v }, /* @__PURE__ */ e.createElement(re, { onSubmit: s, formArray: a, formGroup: r, formMeta: t }, /* @__PURE__ */ e.createElement("div", { className: Fe({ open: c }) }, h), /* @__PURE__ */ e.createElement("div", { className: Te }, i && /* @__PURE__ */ e.createElement("div", { id: "footer_links" }, Z(i)), /* @__PURE__ */ e.createElement("div", { className: Ve }, /* @__PURE__ */ e.createElement(
283
- b,
284
- {
285
- kind: "default",
286
- type: "button",
287
- className: se({ mr: "sm" }),
288
- onClick: S,
289
- disabled: n
290
- },
291
- w("advancedSearch.clear", { defaultValue: "Clear Fields" })
292
- ), /* @__PURE__ */ e.createElement(b, { kind: "key", type: "submit", disabled: n }, p ?? w("advancedSearch.search", { defaultValue: "Search" }))))));
247
+ //#endregion
248
+ //#region src/list-bar/advanced-search/AdvancedSearch.css.ts
249
+ var H = O({
250
+ defaultClassName: "pkg_sps-woodland_core__family_list-bar__version_8_56_3__hash_am9pfc0",
251
+ variantClassNames: {
252
+ open: {
253
+ true: "pkg_sps-woodland_core__family_list-bar__version_8_56_3__hash_am9pfc1",
254
+ false: "pkg_sps-woodland_core__family_list-bar__version_8_56_3__hash_am9pfc2"
255
+ },
256
+ compact: {
257
+ true: "pkg_sps-woodland_core__family_list-bar__version_8_56_3__hash_am9pfc3",
258
+ false: "pkg_sps-woodland_core__family_list-bar__version_8_56_3__hash_am9pfc4"
259
+ }
260
+ },
261
+ defaultVariants: {
262
+ open: !1,
263
+ compact: !1
264
+ },
265
+ compoundVariants: []
266
+ }), U = O({
267
+ defaultClassName: "pkg_sps-woodland_core__family_list-bar__version_8_56_3__hash_am9pfc5",
268
+ variantClassNames: { open: {
269
+ true: "pkg_sps-woodland_core__family_list-bar__version_8_56_3__hash_am9pfc6",
270
+ false: "pkg_sps-woodland_core__family_list-bar__version_8_56_3__hash_am9pfc7"
271
+ } },
272
+ defaultVariants: { open: !0 },
273
+ compoundVariants: []
274
+ }), W = "pkg_sps-woodland_core__family_list-bar__version_8_56_3__hash_am9pfc8", G = "pkg_sps-woodland_core__family_list-bar__version_8_56_3__hash_am9pfc9";
275
+ //#endregion
276
+ //#region src/list-bar/advanced-search/AdvancedSearch.tsx
277
+ function K({ formArray: t, formGroup: n, formMeta: r, onSubmit: o, controlsDisabled: s, footerLinks: l, isOpen: u, onClear: d, submitButtonText: f, compact: m, className: _, children: v, ...y }) {
278
+ let { t: b } = h();
279
+ function x() {
280
+ d && d();
281
+ }
282
+ return /* @__PURE__ */ e.createElement("div", {
283
+ className: i(H({
284
+ open: u,
285
+ compact: m
286
+ })),
287
+ ...y
288
+ }, /* @__PURE__ */ e.createElement(p, {
289
+ onSubmit: o,
290
+ formArray: t,
291
+ formGroup: n,
292
+ formMeta: r
293
+ }, /* @__PURE__ */ e.createElement("div", { className: U({ open: u }) }, v), /* @__PURE__ */ e.createElement("div", { className: W }, l && /* @__PURE__ */ e.createElement("div", { id: "footer_links" }, a(l)), /* @__PURE__ */ e.createElement("div", { className: G }, /* @__PURE__ */ e.createElement(c, {
294
+ kind: "default",
295
+ type: "button",
296
+ className: g({ mr: "sm" }),
297
+ onClick: x,
298
+ disabled: s
299
+ }, b("advancedSearch.clear", { defaultValue: "Clear Fields" })), /* @__PURE__ */ e.createElement(c, {
300
+ kind: "key",
301
+ type: "submit",
302
+ disabled: s
303
+ }, f ?? b("advancedSearch.search", { defaultValue: "Search" }))))));
293
304
  }
294
- f.set(Pe, {
295
- name: "Advanced Search",
296
- props: {
297
- formArray: { type: "SpsFormArray<any>" },
298
- formGroup: { type: "SpsFormGroup" },
299
- formMeta: { type: "SpsFormSetMeta<any>" },
300
- onSubmit: { type: "React.FormEventHandler" },
301
- controlsDisabled: { type: "boolean" },
302
- footerLinks: { type: "React.ReactNode | (() => React.ReactNode)" },
303
- isOpen: { type: "boolean" },
304
- onClear: { type: "() => void" },
305
- submitButtonText: { type: "string" },
306
- compact: { type: "boolean" }
307
- }
305
+ t.set(K, {
306
+ name: "Advanced Search",
307
+ props: {
308
+ formArray: { type: "SpsFormArray<any>" },
309
+ formGroup: { type: "SpsFormGroup" },
310
+ formMeta: { type: "SpsFormSetMeta<any>" },
311
+ onSubmit: { type: "React.FormEventHandler" },
312
+ controlsDisabled: { type: "boolean" },
313
+ footerLinks: { type: "React.ReactNode | (() => React.ReactNode)" },
314
+ isOpen: { type: "boolean" },
315
+ onClear: { type: "() => void" },
316
+ submitButtonText: { type: "string" },
317
+ compact: { type: "boolean" }
318
+ }
308
319
  });
309
- export {
310
- Pe as AdvancedSearch,
311
- ze as InputGroupWrapper,
312
- Ce as ListBar,
313
- I as ListBarSearch,
314
- x as ListBarSearchInfo,
315
- Re as ListBarSortBy,
316
- A as SearchResultsBar
317
- };
320
+ //#endregion
321
+ export { K as AdvancedSearch, L as InputGroupWrapper, B as ListBar, R as ListBarSearch, z as ListBarSearchInfo, V as ListBarSortBy, C as SearchResultsBar };