@sps-woodland/core 8.56.2 → 8.56.4

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.3/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,175 +1,148 @@
1
- import * as e from "react";
2
- import { Metadata as Z, selectChildren as _, cl as o, Icon as ee } from "@sps-woodland/core";
3
- import { Button as $ } from "@sps-woodland/core/button";
4
- import { SpsTextInput as te, SpsCheckbox as ne } from "@spscommerce/ds-react";
5
- import { ContentRowCol as a } from "../content-row-col/ContentRowCol.js";
6
- import { ContentRowExpansion as ae } from "../content-row-expansion/ContentRowExpansion.js";
7
- import { useWoodlandLanguage as le } from "@spscommerce/i18n";
8
- import { expandButton as oe, expandIcon as ce, contentTableRowSpacer as re, contentTableRow as se, section as f, contentRow as me, contentRowColGroup as ie, reorderableSection as G, reorderableButton as L, reorderableLayout as ue, indexContainerWrapper as de, indexContainer as pe, indexContainerElement as fe } from "./ContentRow.ve.js";
9
- import { SpsIcon as M, ButtonKind as U } from "@spscommerce/ds-shared";
10
- function Ee({
11
- children: j,
12
- className: y,
13
- alternateLayout: c = !1,
14
- initiallyExpanded: h = !1,
15
- cardSpacing: q = !1,
16
- expanded: w,
17
- onBeforeCollapsed: x,
18
- onBeforeExpanded: g,
19
- onSelectionChange: z,
20
- onCollapsed: R,
21
- onExpanded: S,
22
- selectable: i = !1,
23
- selected: E,
24
- selectIndeterminate: I,
25
- renderExpandedContent: b = !0,
26
- disableSelection: A = !1,
27
- disableExpansion: k = !1,
28
- hideExpansionControl: u = !1,
29
- __autoLayout: v = !1,
30
- __reorderable: m = !1,
31
- __onOrderChange: d = () => {
32
- },
33
- __index: t = 0,
34
- __canBeMovedUp: P,
35
- __canBeMovedDown: B,
36
- ...T
37
- }) {
38
- const [V, [r]] = _(j, [
39
- { type: a },
40
- { type: ae }
41
- ]), { t: D } = le(), [J, F] = e.useState(
42
- b || h
43
- ), [Q, H] = e.useState(h), n = typeof w == "boolean" ? w : Q, W = v ? n : J, [C, N] = e.useState((t + 1).toString() || "");
44
- e.useEffect(() => {
45
- N((t + 1).toString() || "");
46
- }, [t]);
47
- function X(l) {
48
- N(l.target.value);
49
- }
50
- function K() {
51
- Number(C) ? d(t, Number(C) - 1) : (N((t + 1).toString() || ""), d(t, t));
52
- }
53
- function Y(l) {
54
- l.stopPropagation(), n && (!x || x()) ? (H(!1), b || F(!1), R && R()) : !n && (!g || g()) && (H(!0), b || F(!0), S && S());
55
- }
56
- const s = () => /* @__PURE__ */ e.createElement(
57
- ne,
58
- {
59
- disabled: A,
60
- checked: E,
61
- indeterminate: I,
62
- onChange: z
63
- }
64
- ), p = /* @__PURE__ */ e.createElement(
65
- "button",
66
- {
67
- type: "button",
68
- className: o(oe),
69
- onClick: Y,
70
- "aria-label": D(`contentRow.${n ? "collapse" : "expand"}`, { defaultValue: `${n ? "Collapse" : "Expand"}` }),
71
- disabled: k
72
- },
73
- /* @__PURE__ */ e.createElement(
74
- ee,
75
- {
76
- className: o(ce({ disabled: k })),
77
- icon: n ? "minus-circle" : "plus-circle"
78
- }
79
- )
80
- );
81
- if (v) {
82
- const l = /* @__PURE__ */ e.createElement("tr", null, /* @__PURE__ */ e.createElement("td", { className: o(re), colSpan: 100 }));
83
- return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
84
- "tr",
85
- {
86
- className: o(
87
- se({ selected: E || I, expanded: n })
88
- ),
89
- ...T
90
- },
91
- i && !c && /* @__PURE__ */ e.createElement(a, { widthPx: 46, __autoLayout: !0 }, /* @__PURE__ */ e.createElement(s, null)),
92
- r && !c && !u && /* @__PURE__ */ e.createElement(a, { widthPx: 44, __autoLayout: !0 }, p),
93
- r && i && c && /* @__PURE__ */ e.createElement(a, { widthPx: 46, __autoLayout: !0 }, u ? /* @__PURE__ */ e.createElement(s, null) : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("section", { className: f }, /* @__PURE__ */ e.createElement(s, null)), /* @__PURE__ */ e.createElement("section", { className: f }, p))),
94
- V
95
- ), W && r, l);
96
- }
97
- const O = /* @__PURE__ */ e.createElement("div", { className: o(me({ expanded: n }), y), ...T }, /* @__PURE__ */ e.createElement(
98
- "div",
99
- {
100
- className: o(
101
- ie({
102
- expanded: n,
103
- selected: E,
104
- cardSpacing: q,
105
- reorderable: m
106
- })
107
- )
108
- },
109
- m && /* @__PURE__ */ e.createElement(a, { widthPx: 53, style: { position: "relative" } }, /* @__PURE__ */ e.createElement("section", { className: G({ reorderable: m }) }, /* @__PURE__ */ e.createElement(
110
- $,
111
- {
112
- className: L({
113
- up: !0,
114
- disabled: !P
115
- }),
116
- kind: U.ICON,
117
- icon: M.CHEVRON_UP,
118
- onClick: () => d(t, t - 1),
119
- disabled: !P
120
- }
121
- )), /* @__PURE__ */ e.createElement("section", { className: G({ reorderable: m }) }, /* @__PURE__ */ e.createElement(
122
- $,
123
- {
124
- className: L({
125
- down: !0,
126
- disabled: !B
127
- }),
128
- kind: U.ICON,
129
- icon: M.CHEVRON_DOWN,
130
- onClick: () => d(t, t + 1),
131
- disabled: !B
132
- }
133
- ))),
134
- i && !c && /* @__PURE__ */ e.createElement(a, { widthPx: 46 }, /* @__PURE__ */ e.createElement(s, null)),
135
- r && !c && !u && /* @__PURE__ */ e.createElement(a, { widthPx: 44 }, p),
136
- r && i && c && /* @__PURE__ */ e.createElement(a, { widthPx: 46 }, u ? /* @__PURE__ */ e.createElement(s, null) : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("section", { className: f }, /* @__PURE__ */ e.createElement(s, null)), /* @__PURE__ */ e.createElement("section", { className: f }, p))),
137
- V
138
- ), W && r);
139
- return m ? /* @__PURE__ */ e.createElement("div", { className: ue }, /* @__PURE__ */ e.createElement("div", { className: o(de, y) }, /* @__PURE__ */ e.createElement("div", { className: pe }, /* @__PURE__ */ e.createElement(
140
- te,
141
- {
142
- className: fe,
143
- value: C,
144
- onChange: X,
145
- onBlur: () => K(),
146
- onKeyUp: (l) => {
147
- l.key === "Enter" && K();
148
- },
149
- notClearable: !0
150
- }
151
- ))), O) : O;
1
+ import { ContentRowCol as e } from "../content-row-col/ContentRowCol.js";
2
+ import { contentRow as t, contentRowColGroup as ee, contentTableRow as n, contentTableRowSpacer as r, expandButton as i, expandIcon as te, indexContainer as ne, indexContainerElement as re, indexContainerWrapper as ie, reorderableButton as a, reorderableLayout as ae, reorderableSection as o } from "./ContentRow.ve.js";
3
+ import { ContentRowExpansion as s } from "../content-row-expansion/ContentRowExpansion.js";
4
+ import { Icon as c, Metadata as l, cl as u, selectChildren as d } from "@sps-woodland/core";
5
+ import * as f from "react";
6
+ import { useWoodlandLanguage as oe } from "@spscommerce/i18n";
7
+ import { Button as p } from "@sps-woodland/core/button";
8
+ import { SpsCheckbox as se, SpsTextInput as ce } from "@spscommerce/ds-react";
9
+ import { ButtonKind as m, SpsIcon as h } from "@spscommerce/ds-shared";
10
+ //#region src/content-row/content-row/ContentRow.tsx
11
+ function g({ children: l, className: g, alternateLayout: _ = !1, initiallyExpanded: v = !1, cardSpacing: y = !1, expanded: b, onBeforeCollapsed: x, onBeforeExpanded: S, onSelectionChange: C, onCollapsed: w, onExpanded: T, selectable: E = !1, selected: D, selectIndeterminate: O, renderExpandedContent: k = !0, disableSelection: A = !1, disableExpansion: j = !1, hideExpansionControl: M = !1, __autoLayout: N = !1, __reorderable: P = !1, __onOrderChange: F = () => {}, __index: I = 0, __canBeMovedUp: L, __canBeMovedDown: R, ...z }) {
12
+ let [B, [V]] = d(l, [{ type: e }, { type: s }]), { t: H } = oe(), [U, W] = f.useState(k || v), [le, G] = f.useState(v), K = typeof b == "boolean" ? b : le, q = N ? K : U, [J, Y] = f.useState((I + 1).toString() || "");
13
+ f.useEffect(() => {
14
+ Y((I + 1).toString() || "");
15
+ }, [I]);
16
+ function ue(e) {
17
+ Y(e.target.value);
18
+ }
19
+ function X() {
20
+ Number(J) ? F(I, Number(J) - 1) : (Y((I + 1).toString() || ""), F(I, I));
21
+ }
22
+ function de(e) {
23
+ e.stopPropagation(), K && (!x || x()) ? (G(!1), k || W(!1), w && w()) : !K && (!S || S()) && (G(!0), k || W(!0), T && T());
24
+ }
25
+ let Z = () => /* @__PURE__ */ f.createElement(se, {
26
+ disabled: A,
27
+ checked: D,
28
+ indeterminate: O,
29
+ onChange: C
30
+ }), Q = /* @__PURE__ */ f.createElement("button", {
31
+ type: "button",
32
+ className: u(i),
33
+ onClick: de,
34
+ "aria-label": H(`contentRow.${K ? "collapse" : "expand"}`, { defaultValue: `${K ? "Collapse" : "Expand"}` }),
35
+ disabled: j
36
+ }, /* @__PURE__ */ f.createElement(c, {
37
+ className: u(te({ disabled: j })),
38
+ icon: K ? "minus-circle" : "plus-circle"
39
+ }));
40
+ if (N) {
41
+ let t = /* @__PURE__ */ f.createElement("tr", null, /* @__PURE__ */ f.createElement("td", {
42
+ className: u(r),
43
+ colSpan: 100
44
+ }));
45
+ return /* @__PURE__ */ f.createElement(f.Fragment, null, /* @__PURE__ */ f.createElement("tr", {
46
+ className: u(n({
47
+ selected: D || O,
48
+ expanded: K
49
+ })),
50
+ ...z
51
+ }, E && !_ && /* @__PURE__ */ f.createElement(e, {
52
+ widthPx: 46,
53
+ __autoLayout: !0
54
+ }, /* @__PURE__ */ f.createElement(Z, null)), V && !_ && !M && /* @__PURE__ */ f.createElement(e, {
55
+ widthPx: 44,
56
+ __autoLayout: !0
57
+ }, Q), V && E && _ && /* @__PURE__ */ f.createElement(e, {
58
+ widthPx: 46,
59
+ __autoLayout: !0
60
+ }, M ? /* @__PURE__ */ f.createElement(Z, null) : /* @__PURE__ */ f.createElement(f.Fragment, null, /* @__PURE__ */ f.createElement("section", { className: "pkg_sps-woodland_core__family_content-row__version_8_56_4__hash_1m5rxhvu" }, /* @__PURE__ */ f.createElement(Z, null)), /* @__PURE__ */ f.createElement("section", { className: "pkg_sps-woodland_core__family_content-row__version_8_56_4__hash_1m5rxhvu" }, Q))), B), q && V, t);
61
+ }
62
+ let $ = /* @__PURE__ */ f.createElement("div", {
63
+ className: u(t({ expanded: K }), g),
64
+ ...z
65
+ }, /* @__PURE__ */ f.createElement("div", { className: u(ee({
66
+ expanded: K,
67
+ selected: D,
68
+ cardSpacing: y,
69
+ reorderable: P
70
+ })) }, P && /* @__PURE__ */ f.createElement(e, {
71
+ widthPx: 53,
72
+ style: { position: "relative" }
73
+ }, /* @__PURE__ */ f.createElement("section", { className: o({ reorderable: P }) }, /* @__PURE__ */ f.createElement(p, {
74
+ className: a({
75
+ up: !0,
76
+ disabled: !L
77
+ }),
78
+ kind: m.ICON,
79
+ icon: h.CHEVRON_UP,
80
+ onClick: () => F(I, I - 1),
81
+ disabled: !L
82
+ })), /* @__PURE__ */ f.createElement("section", { className: o({ reorderable: P }) }, /* @__PURE__ */ f.createElement(p, {
83
+ className: a({
84
+ down: !0,
85
+ disabled: !R
86
+ }),
87
+ kind: m.ICON,
88
+ icon: h.CHEVRON_DOWN,
89
+ onClick: () => F(I, I + 1),
90
+ disabled: !R
91
+ }))), E && !_ && /* @__PURE__ */ f.createElement(e, { widthPx: 46 }, /* @__PURE__ */ f.createElement(Z, null)), V && !_ && !M && /* @__PURE__ */ f.createElement(e, { widthPx: 44 }, Q), V && E && _ && /* @__PURE__ */ f.createElement(e, { widthPx: 46 }, M ? /* @__PURE__ */ f.createElement(Z, null) : /* @__PURE__ */ f.createElement(f.Fragment, null, /* @__PURE__ */ f.createElement("section", { className: "pkg_sps-woodland_core__family_content-row__version_8_56_4__hash_1m5rxhvu" }, /* @__PURE__ */ f.createElement(Z, null)), /* @__PURE__ */ f.createElement("section", { className: "pkg_sps-woodland_core__family_content-row__version_8_56_4__hash_1m5rxhvu" }, Q))), B), q && V);
92
+ return P ? /* @__PURE__ */ f.createElement("div", { className: ae }, /* @__PURE__ */ f.createElement("div", { className: u(ie, g) }, /* @__PURE__ */ f.createElement("div", { className: ne }, /* @__PURE__ */ f.createElement(ce, {
93
+ className: re,
94
+ value: J,
95
+ onChange: ue,
96
+ onBlur: () => X(),
97
+ onKeyUp: (e) => {
98
+ e.key === "Enter" && X();
99
+ },
100
+ notClearable: !0
101
+ }))), $) : $;
152
102
  }
153
- Z.set(Ee, {
154
- name: "Content Row",
155
- props: {
156
- alternateLayout: { type: "boolean", default: "false" },
157
- initiallyExpanded: { type: "boolean", default: "false" },
158
- cardSpacing: { type: "boolean", default: "false" },
159
- expanded: { type: "boolean" },
160
- onBeforeCollapsed: { type: "() => boolean" },
161
- onBeforeExpanded: { type: "() => boolean" },
162
- onSelectionChange: { type: "ChangeEventHandler" },
163
- onCollapsed: { type: "() => void" },
164
- onExpanded: { type: "() => void" },
165
- selectable: { type: "boolean", default: "false" },
166
- selected: { type: "boolean" },
167
- renderExpandedContent: { type: "boolean", default: "true" },
168
- disableSelection: { type: "boolean", default: "false" },
169
- disableExpansion: { type: "boolean", default: "false" },
170
- hideExpansionControl: { type: "boolean", default: "false" }
171
- }
103
+ l.set(g, {
104
+ name: "Content Row",
105
+ props: {
106
+ alternateLayout: {
107
+ type: "boolean",
108
+ default: "false"
109
+ },
110
+ initiallyExpanded: {
111
+ type: "boolean",
112
+ default: "false"
113
+ },
114
+ cardSpacing: {
115
+ type: "boolean",
116
+ default: "false"
117
+ },
118
+ expanded: { type: "boolean" },
119
+ onBeforeCollapsed: { type: "() => boolean" },
120
+ onBeforeExpanded: { type: "() => boolean" },
121
+ onSelectionChange: { type: "ChangeEventHandler" },
122
+ onCollapsed: { type: "() => void" },
123
+ onExpanded: { type: "() => void" },
124
+ selectable: {
125
+ type: "boolean",
126
+ default: "false"
127
+ },
128
+ selected: { type: "boolean" },
129
+ renderExpandedContent: {
130
+ type: "boolean",
131
+ default: "true"
132
+ },
133
+ disableSelection: {
134
+ type: "boolean",
135
+ default: "false"
136
+ },
137
+ disableExpansion: {
138
+ type: "boolean",
139
+ default: "false"
140
+ },
141
+ hideExpansionControl: {
142
+ type: "boolean",
143
+ default: "false"
144
+ }
145
+ }
172
146
  });
173
- export {
174
- Ee as ContentRow
175
- };
147
+ //#endregion
148
+ export { g as ContentRow };
@@ -1,19 +1,106 @@
1
+ import { createRuntimeFn as e } from "../../node_modules/.pnpm/@vanilla-extract_recipes@0.2.5_@vanilla-extract_css@1.21.3/node_modules/@vanilla-extract/recipes/createRuntimeFn/dist/vanilla-extract-recipes-createRuntimeFn.esm.js";
1
2
  /* empty css */
2
- import { createRuntimeFn as _ } from "../../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";
3
- var e = _({ defaultClassName: "pkg_sps-woodland_core__family_content-row__version_8_56_2__hash_1m5rxhv4", variantClassNames: { expanded: { true: "pkg_sps-woodland_core__family_content-row__version_8_56_2__hash_1m5rxhv5", false: "pkg_sps-woodland_core__family_content-row__version_8_56_2__hash_1m5rxhv6" } }, defaultVariants: { expanded: !1 }, compoundVariants: [] }), r = _({ defaultClassName: "pkg_sps-woodland_core__family_content-row__version_8_56_2__hash_1m5rxhv7", variantClassNames: { cardSpacing: { true: "pkg_sps-woodland_core__family_content-row__version_8_56_2__hash_1m5rxhv8", false: "pkg_sps-woodland_core__family_content-row__version_8_56_2__hash_1m5rxhv9" }, expanded: { true: "pkg_sps-woodland_core__family_content-row__version_8_56_2__hash_1m5rxhva", false: "pkg_sps-woodland_core__family_content-row__version_8_56_2__hash_1m5rxhvb" }, selected: { true: "pkg_sps-woodland_core__family_content-row__version_8_56_2__hash_1m5rxhvc", false: "pkg_sps-woodland_core__family_content-row__version_8_56_2__hash_1m5rxhvd" }, reorderable: { true: "pkg_sps-woodland_core__family_content-row__version_8_56_2__hash_1m5rxhve", false: "pkg_sps-woodland_core__family_content-row__version_8_56_2__hash_1m5rxhvf" } }, defaultVariants: { expanded: !1, selected: !1, cardSpacing: !1 }, compoundVariants: [[{ expanded: !0, cardSpacing: !0 }, "pkg_sps-woodland_core__family_content-row__version_8_56_2__hash_1m5rxhvg"]] }), s = _({ defaultClassName: "pkg_sps-woodland_core__family_content-row__version_8_56_2__hash_1m5rxhvh", variantClassNames: { selected: { true: "pkg_sps-woodland_core__family_content-row__version_8_56_2__hash_1m5rxhvi", false: "pkg_sps-woodland_core__family_content-row__version_8_56_2__hash_1m5rxhvj" }, expanded: { true: "pkg_sps-woodland_core__family_content-row__version_8_56_2__hash_1m5rxhvk", false: "pkg_sps-woodland_core__family_content-row__version_8_56_2__hash_1m5rxhvl" } }, defaultVariants: { selected: !1, expanded: !1 }, compoundVariants: [] }), n = "pkg_sps-woodland_core__family_content-row__version_8_56_2__hash_1m5rxhvm", t = "pkg_sps-woodland_core__family_content-row__version_8_56_2__hash_1m5rxhvn", l = _({ defaultClassName: "pkg_sps-woodland_core__family_content-row__version_8_56_2__hash_1m5rxhvo", variantClassNames: { disabled: { true: "pkg_sps-woodland_core__family_content-row__version_8_56_2__hash_1m5rxhvp", false: "pkg_sps-woodland_core__family_content-row__version_8_56_2__hash_1m5rxhvq" } }, defaultVariants: {}, compoundVariants: [] }), d = _({ defaultClassName: "pkg_sps-woodland_core__family_content-row__version_8_56_2__hash_1m5rxhvr", variantClassNames: { __autoLayout: { true: "pkg_sps-woodland_core__family_content-row__version_8_56_2__hash_1m5rxhvs", false: "pkg_sps-woodland_core__family_content-row__version_8_56_2__hash_1m5rxhvt" } }, defaultVariants: { __autoLayout: !1 }, compoundVariants: [] }), h = "pkg_sps-woodland_core__family_content-row__version_8_56_2__hash_1m5rxhvu", i = "pkg_sps-woodland_core__family_content-row__version_8_56_2__hash_1m5rxhvv", p = _({ defaultClassName: "pkg_sps-woodland_core__family_content-row__version_8_56_2__hash_1m5rxhvw", variantClassNames: { reorderable: { true: "pkg_sps-woodland_core__family_content-row__version_8_56_2__hash_1m5rxhvx", false: "pkg_sps-woodland_core__family_content-row__version_8_56_2__hash_1m5rxhvy" } }, defaultVariants: { reorderable: !1 }, compoundVariants: [] }), c = "pkg_sps-woodland_core__family_content-row__version_8_56_2__hash_1m5rxhvz", m = "pkg_sps-woodland_core__family_content-row__version_8_56_2__hash_1m5rxhv10", v = "pkg_sps-woodland_core__family_content-row__version_8_56_2__hash_1m5rxhv11", w = _({ defaultClassName: "pkg_sps-woodland_core__family_content-row__version_8_56_2__hash_1m5rxhv12", variantClassNames: { disabled: { true: "pkg_sps-woodland_core__family_content-row__version_8_56_2__hash_1m5rxhv13", false: "pkg_sps-woodland_core__family_content-row__version_8_56_2__hash_1m5rxhv14" }, up: { true: "pkg_sps-woodland_core__family_content-row__version_8_56_2__hash_1m5rxhv15", false: "pkg_sps-woodland_core__family_content-row__version_8_56_2__hash_1m5rxhv16" }, down: { true: "pkg_sps-woodland_core__family_content-row__version_8_56_2__hash_1m5rxhv17", false: "pkg_sps-woodland_core__family_content-row__version_8_56_2__hash_1m5rxhv18" } }, defaultVariants: { disabled: !1, up: !1, down: !1 }, compoundVariants: [] });
4
- export {
5
- e as contentRow,
6
- r as contentRowColGroup,
7
- d as contentRowExpansion,
8
- s as contentTableRow,
9
- n as contentTableRowSpacer,
10
- t as expandButton,
11
- l as expandIcon,
12
- m as indexContainer,
13
- v as indexContainerElement,
14
- c as indexContainerWrapper,
15
- w as reorderableButton,
16
- i as reorderableLayout,
17
- p as reorderableSection,
18
- h as section
19
- };
3
+ //#region src/content-row/content-row/ContentRow.css.ts
4
+ var t = e({
5
+ defaultClassName: "pkg_sps-woodland_core__family_content-row__version_8_56_4__hash_1m5rxhv4",
6
+ variantClassNames: { expanded: {
7
+ true: "pkg_sps-woodland_core__family_content-row__version_8_56_4__hash_1m5rxhv5",
8
+ false: "pkg_sps-woodland_core__family_content-row__version_8_56_4__hash_1m5rxhv6"
9
+ } },
10
+ defaultVariants: { expanded: !1 },
11
+ compoundVariants: []
12
+ }), n = e({
13
+ defaultClassName: "pkg_sps-woodland_core__family_content-row__version_8_56_4__hash_1m5rxhv7",
14
+ variantClassNames: {
15
+ cardSpacing: {
16
+ true: "pkg_sps-woodland_core__family_content-row__version_8_56_4__hash_1m5rxhv8",
17
+ false: "pkg_sps-woodland_core__family_content-row__version_8_56_4__hash_1m5rxhv9"
18
+ },
19
+ expanded: {
20
+ true: "pkg_sps-woodland_core__family_content-row__version_8_56_4__hash_1m5rxhva",
21
+ false: "pkg_sps-woodland_core__family_content-row__version_8_56_4__hash_1m5rxhvb"
22
+ },
23
+ selected: {
24
+ true: "pkg_sps-woodland_core__family_content-row__version_8_56_4__hash_1m5rxhvc",
25
+ false: "pkg_sps-woodland_core__family_content-row__version_8_56_4__hash_1m5rxhvd"
26
+ },
27
+ reorderable: {
28
+ true: "pkg_sps-woodland_core__family_content-row__version_8_56_4__hash_1m5rxhve",
29
+ false: "pkg_sps-woodland_core__family_content-row__version_8_56_4__hash_1m5rxhvf"
30
+ }
31
+ },
32
+ defaultVariants: {
33
+ expanded: !1,
34
+ selected: !1,
35
+ cardSpacing: !1
36
+ },
37
+ compoundVariants: [[{
38
+ expanded: !0,
39
+ cardSpacing: !0
40
+ }, "pkg_sps-woodland_core__family_content-row__version_8_56_4__hash_1m5rxhvg"]]
41
+ }), r = e({
42
+ defaultClassName: "pkg_sps-woodland_core__family_content-row__version_8_56_4__hash_1m5rxhvh",
43
+ variantClassNames: {
44
+ selected: {
45
+ true: "pkg_sps-woodland_core__family_content-row__version_8_56_4__hash_1m5rxhvi",
46
+ false: "pkg_sps-woodland_core__family_content-row__version_8_56_4__hash_1m5rxhvj"
47
+ },
48
+ expanded: {
49
+ true: "pkg_sps-woodland_core__family_content-row__version_8_56_4__hash_1m5rxhvk",
50
+ false: "pkg_sps-woodland_core__family_content-row__version_8_56_4__hash_1m5rxhvl"
51
+ }
52
+ },
53
+ defaultVariants: {
54
+ selected: !1,
55
+ expanded: !1
56
+ },
57
+ compoundVariants: []
58
+ }), i = "pkg_sps-woodland_core__family_content-row__version_8_56_4__hash_1m5rxhvm", a = "pkg_sps-woodland_core__family_content-row__version_8_56_4__hash_1m5rxhvn", o = e({
59
+ defaultClassName: "pkg_sps-woodland_core__family_content-row__version_8_56_4__hash_1m5rxhvo",
60
+ variantClassNames: { disabled: {
61
+ true: "pkg_sps-woodland_core__family_content-row__version_8_56_4__hash_1m5rxhvp",
62
+ false: "pkg_sps-woodland_core__family_content-row__version_8_56_4__hash_1m5rxhvq"
63
+ } },
64
+ defaultVariants: {},
65
+ compoundVariants: []
66
+ }), s = e({
67
+ defaultClassName: "pkg_sps-woodland_core__family_content-row__version_8_56_4__hash_1m5rxhvr",
68
+ variantClassNames: { __autoLayout: {
69
+ true: "pkg_sps-woodland_core__family_content-row__version_8_56_4__hash_1m5rxhvs",
70
+ false: "pkg_sps-woodland_core__family_content-row__version_8_56_4__hash_1m5rxhvt"
71
+ } },
72
+ defaultVariants: { __autoLayout: !1 },
73
+ compoundVariants: []
74
+ }), c = "pkg_sps-woodland_core__family_content-row__version_8_56_4__hash_1m5rxhvu", l = "pkg_sps-woodland_core__family_content-row__version_8_56_4__hash_1m5rxhvv", u = e({
75
+ defaultClassName: "pkg_sps-woodland_core__family_content-row__version_8_56_4__hash_1m5rxhvw",
76
+ variantClassNames: { reorderable: {
77
+ true: "pkg_sps-woodland_core__family_content-row__version_8_56_4__hash_1m5rxhvx",
78
+ false: "pkg_sps-woodland_core__family_content-row__version_8_56_4__hash_1m5rxhvy"
79
+ } },
80
+ defaultVariants: { reorderable: !1 },
81
+ compoundVariants: []
82
+ }), d = "pkg_sps-woodland_core__family_content-row__version_8_56_4__hash_1m5rxhvz", f = "pkg_sps-woodland_core__family_content-row__version_8_56_4__hash_1m5rxhv10", p = "pkg_sps-woodland_core__family_content-row__version_8_56_4__hash_1m5rxhv11", m = e({
83
+ defaultClassName: "pkg_sps-woodland_core__family_content-row__version_8_56_4__hash_1m5rxhv12",
84
+ variantClassNames: {
85
+ disabled: {
86
+ true: "pkg_sps-woodland_core__family_content-row__version_8_56_4__hash_1m5rxhv13",
87
+ false: "pkg_sps-woodland_core__family_content-row__version_8_56_4__hash_1m5rxhv14"
88
+ },
89
+ up: {
90
+ true: "pkg_sps-woodland_core__family_content-row__version_8_56_4__hash_1m5rxhv15",
91
+ false: "pkg_sps-woodland_core__family_content-row__version_8_56_4__hash_1m5rxhv16"
92
+ },
93
+ down: {
94
+ true: "pkg_sps-woodland_core__family_content-row__version_8_56_4__hash_1m5rxhv17",
95
+ false: "pkg_sps-woodland_core__family_content-row__version_8_56_4__hash_1m5rxhv18"
96
+ }
97
+ },
98
+ defaultVariants: {
99
+ disabled: !1,
100
+ up: !1,
101
+ down: !1
102
+ },
103
+ compoundVariants: []
104
+ });
105
+ //#endregion
106
+ export { t as contentRow, n as contentRowColGroup, s as contentRowExpansion, r as contentTableRow, i as contentTableRowSpacer, a as expandButton, o as expandIcon, f as indexContainer, p as indexContainerElement, d as indexContainerWrapper, m as reorderableButton, l as reorderableLayout, u as reorderableSection, c as section };
@@ -1,50 +1,39 @@
1
- import * as s from "react";
2
- import { Metadata as y, cl as c } from "@sps-woodland/core";
3
- import { contentRowTableCol as b, contentRowCol as C } from "./ContentRowCol.ve.js";
4
- function R({
5
- children: e,
6
- className: t,
7
- borderless: o,
8
- lean: n,
9
- widthPx: a,
10
- widthRem: f,
11
- style: l,
12
- wrapContent: r = !1,
13
- __autoLayout: w = !1,
14
- ...m
15
- }) {
16
- const p = a ? a / 16 : f, i = p ? {
17
- ...l,
18
- width: `${p}rem`
19
- } : l;
20
- return w ? /* @__PURE__ */ s.createElement(
21
- "td",
22
- {
23
- className: c(b({ lean: n, borderless: o, wrapContent: r }), t),
24
- ...m,
25
- style: i
26
- },
27
- e
28
- ) : /* @__PURE__ */ s.createElement(
29
- "div",
30
- {
31
- className: c(C({ lean: n, borderless: o, wrapContent: r }), t),
32
- ...m,
33
- style: i
34
- },
35
- e
36
- );
1
+ import { contentRowCol as e, contentRowTableCol as t } from "./ContentRowCol.ve.js";
2
+ import { Metadata as n, cl as r } from "@sps-woodland/core";
3
+ import * as i from "react";
4
+ //#region src/content-row/content-row-col/ContentRowCol.tsx
5
+ function a({ children: n, className: a, borderless: o, lean: s, widthPx: c, widthRem: l, style: u, wrapContent: d = !1, __autoLayout: f = !1, ...p }) {
6
+ let m = c ? c / 16 : l, h = m ? {
7
+ ...u,
8
+ width: `${m}rem`
9
+ } : u;
10
+ return f ? /* @__PURE__ */ i.createElement("td", {
11
+ className: r(t({
12
+ lean: s,
13
+ borderless: o,
14
+ wrapContent: d
15
+ }), a),
16
+ ...p,
17
+ style: h
18
+ }, n) : /* @__PURE__ */ i.createElement("div", {
19
+ className: r(e({
20
+ lean: s,
21
+ borderless: o,
22
+ wrapContent: d
23
+ }), a),
24
+ ...p,
25
+ style: h
26
+ }, n);
37
27
  }
38
- y.set(R, {
39
- name: "Content Row Col",
40
- props: {
41
- borderless: { type: "boolean" },
42
- lean: { type: "boolean" },
43
- widthPx: { type: "number" },
44
- widthRem: { type: "number" },
45
- wrapContent: { type: "boolean" }
46
- }
28
+ n.set(a, {
29
+ name: "Content Row Col",
30
+ props: {
31
+ borderless: { type: "boolean" },
32
+ lean: { type: "boolean" },
33
+ widthPx: { type: "number" },
34
+ widthRem: { type: "number" },
35
+ wrapContent: { type: "boolean" }
36
+ }
47
37
  });
48
- export {
49
- R as ContentRowCol
50
- };
38
+ //#endregion
39
+ export { a as ContentRowCol };
@@ -1,8 +1,51 @@
1
+ import { createRuntimeFn as e } from "../../node_modules/.pnpm/@vanilla-extract_recipes@0.2.5_@vanilla-extract_css@1.21.3/node_modules/@vanilla-extract/recipes/createRuntimeFn/dist/vanilla-extract-recipes-createRuntimeFn.esm.js";
1
2
  /* empty css */
2
3
  /* empty css */
3
- import { createRuntimeFn as _ } from "../../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";
4
- var s = _({ defaultClassName: "pkg_sps-woodland_core__family_content-row__version_8_56_2__hash_gqq3jr0", variantClassNames: { lean: { true: "pkg_sps-woodland_core__family_content-row__version_8_56_2__hash_gqq3jr1", false: "pkg_sps-woodland_core__family_content-row__version_8_56_2__hash_gqq3jr2" }, borderless: { true: "pkg_sps-woodland_core__family_content-row__version_8_56_2__hash_gqq3jr3", false: "pkg_sps-woodland_core__family_content-row__version_8_56_2__hash_gqq3jr4" }, wrapContent: { true: "pkg_sps-woodland_core__family_content-row__version_8_56_2__hash_gqq3jr5", false: "pkg_sps-woodland_core__family_content-row__version_8_56_2__hash_gqq3jr6" } }, defaultVariants: { lean: !1, borderless: !1, wrapContent: !1 }, compoundVariants: [] }), r = _({ defaultClassName: "pkg_sps-woodland_core__family_content-row__version_8_56_2__hash_gqq3jr7", variantClassNames: { lean: { true: "pkg_sps-woodland_core__family_content-row__version_8_56_2__hash_gqq3jr8", false: "pkg_sps-woodland_core__family_content-row__version_8_56_2__hash_gqq3jr9" }, borderless: { true: "pkg_sps-woodland_core__family_content-row__version_8_56_2__hash_gqq3jra", false: "pkg_sps-woodland_core__family_content-row__version_8_56_2__hash_gqq3jrb" }, wrapContent: { true: "pkg_sps-woodland_core__family_content-row__version_8_56_2__hash_gqq3jrc", false: "pkg_sps-woodland_core__family_content-row__version_8_56_2__hash_gqq3jrd" } }, defaultVariants: { lean: !1, borderless: !1, wrapContent: !1 }, compoundVariants: [] });
5
- export {
6
- s as contentRowCol,
7
- r as contentRowTableCol
8
- };
4
+ //#region src/content-row/content-row-col/ContentRowCol.css.ts
5
+ var t = e({
6
+ defaultClassName: "pkg_sps-woodland_core__family_content-row__version_8_56_4__hash_gqq3jr0",
7
+ variantClassNames: {
8
+ lean: {
9
+ true: "pkg_sps-woodland_core__family_content-row__version_8_56_4__hash_gqq3jr1",
10
+ false: "pkg_sps-woodland_core__family_content-row__version_8_56_4__hash_gqq3jr2"
11
+ },
12
+ borderless: {
13
+ true: "pkg_sps-woodland_core__family_content-row__version_8_56_4__hash_gqq3jr3",
14
+ false: "pkg_sps-woodland_core__family_content-row__version_8_56_4__hash_gqq3jr4"
15
+ },
16
+ wrapContent: {
17
+ true: "pkg_sps-woodland_core__family_content-row__version_8_56_4__hash_gqq3jr5",
18
+ false: "pkg_sps-woodland_core__family_content-row__version_8_56_4__hash_gqq3jr6"
19
+ }
20
+ },
21
+ defaultVariants: {
22
+ lean: !1,
23
+ borderless: !1,
24
+ wrapContent: !1
25
+ },
26
+ compoundVariants: []
27
+ }), n = e({
28
+ defaultClassName: "pkg_sps-woodland_core__family_content-row__version_8_56_4__hash_gqq3jr7",
29
+ variantClassNames: {
30
+ lean: {
31
+ true: "pkg_sps-woodland_core__family_content-row__version_8_56_4__hash_gqq3jr8",
32
+ false: "pkg_sps-woodland_core__family_content-row__version_8_56_4__hash_gqq3jr9"
33
+ },
34
+ borderless: {
35
+ true: "pkg_sps-woodland_core__family_content-row__version_8_56_4__hash_gqq3jra",
36
+ false: "pkg_sps-woodland_core__family_content-row__version_8_56_4__hash_gqq3jrb"
37
+ },
38
+ wrapContent: {
39
+ true: "pkg_sps-woodland_core__family_content-row__version_8_56_4__hash_gqq3jrc",
40
+ false: "pkg_sps-woodland_core__family_content-row__version_8_56_4__hash_gqq3jrd"
41
+ }
42
+ },
43
+ defaultVariants: {
44
+ lean: !1,
45
+ borderless: !1,
46
+ wrapContent: !1
47
+ },
48
+ compoundVariants: []
49
+ });
50
+ //#endregion
51
+ export { t as contentRowCol, n as contentRowTableCol };