@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,84 +1,109 @@
1
- import * as s from "react";
2
- import { Metadata as v, cl as h, Icon as y, contentOf as p } from "@sps-woodland/core";
3
- import { BUILDING_LARGE as g } from "@sps-woodland/illustrations";
4
- function w(e, r, t) {
5
- return r in e ? Object.defineProperty(e, r, {
6
- value: t,
7
- enumerable: !0,
8
- configurable: !0,
9
- writable: !0
10
- }) : e[r] = t, e;
1
+ import * as e from "react";
2
+ import { Icon as t, Metadata as n, cl as r, contentOf as i } from "@sps-woodland/core";
3
+ import { BUILDING_LARGE as a } from "@sps-woodland/illustrations";
4
+ //#region ../../../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
5
+ function o(e, t, n) {
6
+ return t in e ? Object.defineProperty(e, t, {
7
+ value: n,
8
+ enumerable: !0,
9
+ configurable: !0,
10
+ writable: !0
11
+ }) : e[t] = n, e;
11
12
  }
12
- function m(e, r) {
13
- var t = Object.keys(e);
14
- if (Object.getOwnPropertySymbols) {
15
- var a = Object.getOwnPropertySymbols(e);
16
- r && (a = a.filter(function(_) {
17
- return Object.getOwnPropertyDescriptor(e, _).enumerable;
18
- })), t.push.apply(t, a);
19
- }
20
- return t;
13
+ function s(e, t) {
14
+ var n = Object.keys(e);
15
+ if (Object.getOwnPropertySymbols) {
16
+ var r = Object.getOwnPropertySymbols(e);
17
+ t && (r = r.filter(function(t) {
18
+ return Object.getOwnPropertyDescriptor(e, t).enumerable;
19
+ })), n.push.apply(n, r);
20
+ }
21
+ return n;
21
22
  }
22
23
  function c(e) {
23
- for (var r = 1; r < arguments.length; r++) {
24
- var t = arguments[r] != null ? arguments[r] : {};
25
- r % 2 ? m(Object(t), !0).forEach(function(a) {
26
- w(e, a, t[a]);
27
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : m(Object(t)).forEach(function(a) {
28
- Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(t, a));
29
- });
30
- }
31
- return e;
24
+ for (var t = 1; t < arguments.length; t++) {
25
+ var n = arguments[t] == null ? {} : arguments[t];
26
+ t % 2 ? s(Object(n), !0).forEach(function(t) {
27
+ o(e, t, n[t]);
28
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : s(Object(n)).forEach(function(t) {
29
+ Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
30
+ });
31
+ }
32
+ return e;
32
33
  }
33
- var O = (e, r, t) => {
34
- for (var a of Object.keys(e)) {
35
- var _;
36
- if (e[a] !== ((_ = r[a]) !== null && _ !== void 0 ? _ : t[a]))
37
- return !1;
38
- }
39
- return !0;
40
- }, f = (e) => (r) => {
41
- var t = e.defaultClassName, a = c(c({}, e.defaultVariants), r);
42
- for (var _ in a) {
43
- var l, n = (l = a[_]) !== null && l !== void 0 ? l : e.defaultVariants[_];
44
- if (n != null) {
45
- var o = n;
46
- typeof o == "boolean" && (o = o === !0 ? "true" : "false");
47
- var u = (
48
- // @ts-expect-error
49
- e.variantClassNames[_][o]
50
- );
51
- u && (t += " " + u);
52
- }
53
- }
54
- for (var [i, d] of e.compoundVariants)
55
- O(i, a, e.defaultVariants) && (t += " " + d);
56
- return t;
57
- }, z = f({ defaultClassName: "pkg_sps-woodland_core__family_zero-state__version_8_56_2__hash_sa7luu0", variantClassNames: { micro: { true: "pkg_sps-woodland_core__family_zero-state__version_8_56_2__hash_sa7luu1", false: "pkg_sps-woodland_core__family_zero-state__version_8_56_2__hash_sa7luu2" } }, defaultVariants: {}, compoundVariants: [] }), b = f({ defaultClassName: "pkg_sps-woodland_core__family_zero-state__version_8_56_2__hash_sa7luu3", variantClassNames: { micro: { true: "pkg_sps-woodland_core__family_zero-state__version_8_56_2__hash_sa7luu4", false: "pkg_sps-woodland_core__family_zero-state__version_8_56_2__hash_sa7luu5" } }, defaultVariants: { micro: !1 }, compoundVariants: [] }), N = "pkg_sps-woodland_core__family_zero-state__version_8_56_2__hash_sa7luu6", S = f({ defaultClassName: "pkg_sps-woodland_core__family_zero-state__version_8_56_2__hash_sa7luu7", variantClassNames: { micro: { true: "pkg_sps-woodland_core__family_zero-state__version_8_56_2__hash_sa7luu8", false: "pkg_sps-woodland_core__family_zero-state__version_8_56_2__hash_sa7luu9" } }, defaultVariants: { micro: !1 }, compoundVariants: [] }), E = "pkg_sps-woodland_core__family_zero-state__version_8_56_2__hash_sa7luua", P = "pkg_sps-woodland_core__family_zero-state__version_8_56_2__hash_sa7luub", V = "pkg_sps-woodland_core__family_zero-state__version_8_56_2__hash_sa7luuc";
58
- function j({
59
- artwork: e,
60
- heading: r,
61
- illustration: t,
62
- subHeading: a,
63
- micro: _ = !1,
64
- children: l,
65
- className: n,
66
- icon: o,
67
- ...u
68
- }) {
69
- const i = t || e || g;
70
- return /* @__PURE__ */ s.createElement("div", { className: z({ micro: _ }) }, /* @__PURE__ */ s.createElement("div", { className: h(b({ micro: _ }), n), ...u }, _ ? /* @__PURE__ */ s.createElement(s.Fragment, null, o ? /* @__PURE__ */ s.createElement(y, { className: V, icon: o, "aria-hidden": "true" }) : /* @__PURE__ */ s.createElement("img", { style: { height: "3rem" }, src: i })) : /* @__PURE__ */ s.createElement("img", { className: N, src: i, alt: "" }), r && (typeof r == "string" ? /* @__PURE__ */ s.createElement("h1", { className: S({ micro: _ }) }, r) : p(r)), a && (typeof a == "string" ? /* @__PURE__ */ s.createElement("h2", { className: E }, a) : p(a)), /* @__PURE__ */ s.createElement("div", { className: P }, l)));
34
+ var l = (e, t, n) => {
35
+ for (var r of Object.keys(e)) if (e[r] !== (t[r] ?? n[r])) return !1;
36
+ return !0;
37
+ }, u = (e) => (t) => {
38
+ var n = e.defaultClassName, r = c(c({}, e.defaultVariants), t);
39
+ for (var i in r) {
40
+ var a = r[i] ?? e.defaultVariants[i];
41
+ if (a != null) {
42
+ var o = a;
43
+ typeof o == "boolean" && (o = o === !0 ? "true" : "false");
44
+ var s = e.variantClassNames[i][o];
45
+ s && (n += " " + s);
46
+ }
47
+ }
48
+ for (var [u, d] of e.compoundVariants) l(u, r, e.defaultVariants) && (n += " " + d);
49
+ return n;
50
+ }, d = u({
51
+ defaultClassName: "pkg_sps-woodland_core__family_zero-state__version_8_56_4__hash_sa7luu0",
52
+ variantClassNames: { micro: {
53
+ true: "pkg_sps-woodland_core__family_zero-state__version_8_56_4__hash_sa7luu1",
54
+ false: "pkg_sps-woodland_core__family_zero-state__version_8_56_4__hash_sa7luu2"
55
+ } },
56
+ defaultVariants: {},
57
+ compoundVariants: []
58
+ }), f = u({
59
+ defaultClassName: "pkg_sps-woodland_core__family_zero-state__version_8_56_4__hash_sa7luu3",
60
+ variantClassNames: { micro: {
61
+ true: "pkg_sps-woodland_core__family_zero-state__version_8_56_4__hash_sa7luu4",
62
+ false: "pkg_sps-woodland_core__family_zero-state__version_8_56_4__hash_sa7luu5"
63
+ } },
64
+ defaultVariants: { micro: !1 },
65
+ compoundVariants: []
66
+ }), p = "pkg_sps-woodland_core__family_zero-state__version_8_56_4__hash_sa7luu6", m = u({
67
+ defaultClassName: "pkg_sps-woodland_core__family_zero-state__version_8_56_4__hash_sa7luu7",
68
+ variantClassNames: { micro: {
69
+ true: "pkg_sps-woodland_core__family_zero-state__version_8_56_4__hash_sa7luu8",
70
+ false: "pkg_sps-woodland_core__family_zero-state__version_8_56_4__hash_sa7luu9"
71
+ } },
72
+ defaultVariants: { micro: !1 },
73
+ compoundVariants: []
74
+ }), h = "pkg_sps-woodland_core__family_zero-state__version_8_56_4__hash_sa7luub", g = "pkg_sps-woodland_core__family_zero-state__version_8_56_4__hash_sa7luuc";
75
+ //#endregion
76
+ //#region src/zero-state/ZeroState.tsx
77
+ function _({ artwork: n, heading: o, illustration: s, subHeading: c, micro: l = !1, children: u, className: _, icon: v, ...y }) {
78
+ let b = s || n || a;
79
+ return /* @__PURE__ */ e.createElement("div", { className: d({ micro: l }) }, /* @__PURE__ */ e.createElement("div", {
80
+ className: r(f({ micro: l }), _),
81
+ ...y
82
+ }, l ? /* @__PURE__ */ e.createElement(e.Fragment, null, v ? /* @__PURE__ */ e.createElement(t, {
83
+ className: g,
84
+ icon: v,
85
+ "aria-hidden": "true"
86
+ }) : /* @__PURE__ */ e.createElement("img", {
87
+ style: { height: "3rem" },
88
+ src: b
89
+ })) : /* @__PURE__ */ e.createElement("img", {
90
+ className: p,
91
+ src: b,
92
+ alt: ""
93
+ }), o && (typeof o == "string" ? /* @__PURE__ */ e.createElement("h1", { className: m({ micro: l }) }, o) : i(o)), c && (typeof c == "string" ? /* @__PURE__ */ e.createElement("h2", { className: "pkg_sps-woodland_core__family_zero-state__version_8_56_4__hash_sa7luua" }, c) : i(c)), /* @__PURE__ */ e.createElement("div", { className: h }, u)));
71
94
  }
72
- v.set(j, {
73
- name: "ZeroState",
74
- props: {
75
- artwork: { type: "string" },
76
- heading: { type: "string | ReactNodeOrRenderFn" },
77
- illustration: { type: "string" },
78
- subHeading: { type: "string | ReactNodeOrRenderFn" },
79
- micro: { type: "boolean", default: "false" }
80
- }
95
+ n.set(_, {
96
+ name: "ZeroState",
97
+ props: {
98
+ artwork: { type: "string" },
99
+ heading: { type: "string | ReactNodeOrRenderFn" },
100
+ illustration: { type: "string" },
101
+ subHeading: { type: "string | ReactNodeOrRenderFn" },
102
+ micro: {
103
+ type: "boolean",
104
+ default: "false"
105
+ }
106
+ }
81
107
  });
82
- export {
83
- j as ZeroState
84
- };
108
+ //#endregion
109
+ export { _ as ZeroState };
@@ -1 +1 @@
1
- (function(o,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("react"),require("@sps-woodland/core"),require("@sps-woodland/illustrations")):typeof define=="function"&&define.amd?define(["exports","react","@sps-woodland/core","@sps-woodland/illustrations"],l):(o=typeof globalThis<"u"?globalThis:o||self,l(o.ZeroState={},o.react,o.spsWoodlandCore,o.spsWoodlandIllustrations))})(this,(function(o,l,u,y){"use strict";function g(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,a.get?a:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const _=g(l);function O(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function m(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),t.push.apply(t,a)}return t}function v(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?m(Object(t),!0).forEach(function(a){O(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):m(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))})}return e}var w=(e,r,t)=>{for(var a of Object.keys(e)){var s;if(e[a]!==((s=r[a])!==null&&s!==void 0?s:t[a]))return!1}return!0},c=e=>r=>{var t=e.defaultClassName,a=v(v({},e.defaultVariants),r);for(var s in a){var i,d=(i=a[s])!==null&&i!==void 0?i:e.defaultVariants[s];if(d!=null){var n=d;typeof n=="boolean"&&(n=n===!0?"true":"false");var f=e.variantClassNames[s][n];f&&(t+=" "+f)}}for(var[p,V]of e.compoundVariants)w(p,a,e.defaultVariants)&&(t+=" "+V);return t},b=c({defaultClassName:"pkg_sps-woodland_core__family_zero-state__version_8_56_2__hash_sa7luu0",variantClassNames:{micro:{true:"pkg_sps-woodland_core__family_zero-state__version_8_56_2__hash_sa7luu1",false:"pkg_sps-woodland_core__family_zero-state__version_8_56_2__hash_sa7luu2"}},defaultVariants:{},compoundVariants:[]}),z=c({defaultClassName:"pkg_sps-woodland_core__family_zero-state__version_8_56_2__hash_sa7luu3",variantClassNames:{micro:{true:"pkg_sps-woodland_core__family_zero-state__version_8_56_2__hash_sa7luu4",false:"pkg_sps-woodland_core__family_zero-state__version_8_56_2__hash_sa7luu5"}},defaultVariants:{micro:!1},compoundVariants:[]}),S="pkg_sps-woodland_core__family_zero-state__version_8_56_2__hash_sa7luu6",j=c({defaultClassName:"pkg_sps-woodland_core__family_zero-state__version_8_56_2__hash_sa7luu7",variantClassNames:{micro:{true:"pkg_sps-woodland_core__family_zero-state__version_8_56_2__hash_sa7luu8",false:"pkg_sps-woodland_core__family_zero-state__version_8_56_2__hash_sa7luu9"}},defaultVariants:{micro:!1},compoundVariants:[]}),N="pkg_sps-woodland_core__family_zero-state__version_8_56_2__hash_sa7luua",P="pkg_sps-woodland_core__family_zero-state__version_8_56_2__hash_sa7luub",E="pkg_sps-woodland_core__family_zero-state__version_8_56_2__hash_sa7luuc";function h({artwork:e,heading:r,illustration:t,subHeading:a,micro:s=!1,children:i,className:d,icon:n,...f}){const p=t||e||y.BUILDING_LARGE;return _.createElement("div",{className:b({micro:s})},_.createElement("div",{className:u.cl(z({micro:s}),d),...f},s?_.createElement(_.Fragment,null,n?_.createElement(u.Icon,{className:E,icon:n,"aria-hidden":"true"}):_.createElement("img",{style:{height:"3rem"},src:p})):_.createElement("img",{className:S,src:p,alt:""}),r&&(typeof r=="string"?_.createElement("h1",{className:j({micro:s})},r):u.contentOf(r)),a&&(typeof a=="string"?_.createElement("h2",{className:N},a):u.contentOf(a)),_.createElement("div",{className:P},i)))}u.Metadata.set(h,{name:"ZeroState",props:{artwork:{type:"string"},heading:{type:"string | ReactNodeOrRenderFn"},illustration:{type:"string"},subHeading:{type:"string | ReactNodeOrRenderFn"},micro:{type:"boolean",default:"false"}}}),o.ZeroState=h,Object.defineProperty(o,Symbol.toStringTag,{value:"Module"})}));
1
+ (function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require("react"),require("@sps-woodland/core"),require("@sps-woodland/illustrations")):typeof define==`function`&&define.amd?define([`exports`,`react`,`@sps-woodland/core`,`@sps-woodland/illustrations`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.ZeroState={},e.react,e.spsWoodlandCore,e.spsWoodlandIllustrations))})(this,function(e,t,n,r){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var i=Object.create,a=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,c=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,u=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=s(t),c=0,u=i.length,d;c<u;c++)d=i[c],!l.call(e,d)&&d!==n&&a(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(r=o(t,d))||r.enumerable});return e};t=((e,t,n)=>(n=e==null?{}:i(c(e)),u(t||!e||!e.__esModule||!l.call(e,`default`)?a(n,`default`,{value:e,enumerable:!0}):n,e)))(t,1);function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?f(Object(n),!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var m=(e,t,n)=>{for(var r of Object.keys(e))if(e[r]!==(t[r]??n[r]))return!1;return!0},h=e=>t=>{var n=e.defaultClassName,r=p(p({},e.defaultVariants),t);for(var i in r){var a=r[i]??e.defaultVariants[i];if(a!=null){var o=a;typeof o==`boolean`&&(o=o===!0?`true`:`false`);var s=e.variantClassNames[i][o];s&&(n+=` `+s)}}for(var[c,l]of e.compoundVariants)m(c,r,e.defaultVariants)&&(n+=` `+l);return n},g=h({defaultClassName:`pkg_sps-woodland_core__family_zero-state__version_8_56_4__hash_sa7luu0`,variantClassNames:{micro:{true:`pkg_sps-woodland_core__family_zero-state__version_8_56_4__hash_sa7luu1`,false:`pkg_sps-woodland_core__family_zero-state__version_8_56_4__hash_sa7luu2`}},defaultVariants:{},compoundVariants:[]}),_=h({defaultClassName:`pkg_sps-woodland_core__family_zero-state__version_8_56_4__hash_sa7luu3`,variantClassNames:{micro:{true:`pkg_sps-woodland_core__family_zero-state__version_8_56_4__hash_sa7luu4`,false:`pkg_sps-woodland_core__family_zero-state__version_8_56_4__hash_sa7luu5`}},defaultVariants:{micro:!1},compoundVariants:[]}),v=`pkg_sps-woodland_core__family_zero-state__version_8_56_4__hash_sa7luu6`,y=h({defaultClassName:`pkg_sps-woodland_core__family_zero-state__version_8_56_4__hash_sa7luu7`,variantClassNames:{micro:{true:`pkg_sps-woodland_core__family_zero-state__version_8_56_4__hash_sa7luu8`,false:`pkg_sps-woodland_core__family_zero-state__version_8_56_4__hash_sa7luu9`}},defaultVariants:{micro:!1},compoundVariants:[]}),b=`pkg_sps-woodland_core__family_zero-state__version_8_56_4__hash_sa7luub`,x=`pkg_sps-woodland_core__family_zero-state__version_8_56_4__hash_sa7luuc`;function S({artwork:e,heading:i,illustration:a,subHeading:o,micro:s=!1,children:c,className:l,icon:u,...d}){let f=a||e||r.BUILDING_LARGE;return t.createElement(`div`,{className:g({micro:s})},t.createElement(`div`,{className:(0,n.cl)(_({micro:s}),l),...d},s?t.createElement(t.Fragment,null,u?t.createElement(n.Icon,{className:x,icon:u,"aria-hidden":`true`}):t.createElement(`img`,{style:{height:`3rem`},src:f})):t.createElement(`img`,{className:v,src:f,alt:``}),i&&(typeof i==`string`?t.createElement(`h1`,{className:y({micro:s})},i):(0,n.contentOf)(i)),o&&(typeof o==`string`?t.createElement(`h2`,{className:`pkg_sps-woodland_core__family_zero-state__version_8_56_4__hash_sa7luua`},o):(0,n.contentOf)(o)),t.createElement(`div`,{className:b},c)))}n.Metadata.set(S,{name:`ZeroState`,props:{artwork:{type:`string`},heading:{type:`string | ReactNodeOrRenderFn`},illustration:{type:`string`},subHeading:{type:`string | ReactNodeOrRenderFn`},micro:{type:`boolean`,default:`false`}}}),e.ZeroState=S});
@@ -1 +1,2 @@
1
- .pkg_sps-woodland_core__family_zero-state__version_8_56_2__hash_sa7luu2{padding:1rem}.pkg_sps-woodland_core__family_zero-state__version_8_56_2__hash_sa7luu3{margin:auto;padding-top:2rem;padding-right:0;padding-bottom:2rem;padding-left:0;text-align:center}.pkg_sps-woodland_core__family_zero-state__version_8_56_2__hash_sa7luu4{align-items:center;display:flex;flex-direction:column;height:100%;justify-content:center;width:auto}.pkg_sps-woodland_core__family_zero-state__version_8_56_2__hash_sa7luu6{height:6.25rem;margin-bottom:1rem;width:12.5rem}.pkg_sps-woodland_core__family_zero-state__version_8_56_2__hash_sa7luu7{margin-bottom:0}.pkg_sps-woodland_core__family_zero-state__version_8_56_2__hash_sa7luu8{color:#4b5356;font-size:1rem;font-weight:600;line-height:1.25rem}.pkg_sps-woodland_core__family_zero-state__version_8_56_2__hash_sa7luu9{color:#1f282c;font-size:1.5rem;line-height:1.5rem}.pkg_sps-woodland_core__family_zero-state__version_8_56_2__hash_sa7luua{color:#4b5356;font-size:.875rem;line-height:1.25rem;margin-top:.25rem;margin-bottom:0}.pkg_sps-woodland_core__family_zero-state__version_8_56_2__hash_sa7luub{margin-top:1rem}.pkg_sps-woodland_core__family_zero-state__version_8_56_2__hash_sa7luuc{color:#717779;font-size:3rem;line-height:3rem;padding-bottom:.25rem}@media screen and (min-width:768px){.pkg_sps-woodland_core__family_zero-state__version_8_56_2__hash_sa7luu3{width:75%}}@media screen and (min-width:992px){.pkg_sps-woodland_core__family_zero-state__version_8_56_2__hash_sa7luu3{width:50%}}
1
+ .pkg_sps-woodland_core__family_zero-state__version_8_56_4__hash_sa7luu2{padding:1rem}.pkg_sps-woodland_core__family_zero-state__version_8_56_4__hash_sa7luu3{text-align:center;margin:auto;padding:2rem 0}.pkg_sps-woodland_core__family_zero-state__version_8_56_4__hash_sa7luu4{flex-direction:column;justify-content:center;align-items:center;width:auto;height:100%;display:flex}.pkg_sps-woodland_core__family_zero-state__version_8_56_4__hash_sa7luu6{width:12.5rem;height:6.25rem;margin-bottom:1rem}.pkg_sps-woodland_core__family_zero-state__version_8_56_4__hash_sa7luu7{margin-bottom:0}.pkg_sps-woodland_core__family_zero-state__version_8_56_4__hash_sa7luu8{color:#4b5356;font-size:1rem;font-weight:600;line-height:1.25rem}.pkg_sps-woodland_core__family_zero-state__version_8_56_4__hash_sa7luu9{color:#1f282c;font-size:1.5rem;line-height:1.5rem}.pkg_sps-woodland_core__family_zero-state__version_8_56_4__hash_sa7luua{color:#4b5356;margin-top:.25rem;margin-bottom:0;font-size:.875rem;line-height:1.25rem}.pkg_sps-woodland_core__family_zero-state__version_8_56_4__hash_sa7luub{margin-top:1rem}.pkg_sps-woodland_core__family_zero-state__version_8_56_4__hash_sa7luuc{color:#717779;padding-bottom:.25rem;font-size:3rem;line-height:3rem}@media screen and (width>=768px){.pkg_sps-woodland_core__family_zero-state__version_8_56_4__hash_sa7luu3{width:75%}}@media screen and (width>=992px){.pkg_sps-woodland_core__family_zero-state__version_8_56_4__hash_sa7luu3{width:50%}}
2
+ /*$vite$:1*/
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sps-woodland/core",
3
3
  "description": "SPS Woodland Design System core library code",
4
- "version": "8.56.2",
4
+ "version": "8.56.4",
5
5
  "author": "SPS Commerce",
6
6
  "license": "UNLICENSED",
7
7
  "repository": "https://github.com/SPSCommerce/woodland/tree/main/packages/@sps-woodland/core",
@@ -712,27 +712,27 @@
712
712
  "@spscommerce/utils": "^7.0.0 || ^8.0.0 || ^9.0.0",
713
713
  "react": "^16.14.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
714
714
  "react-dom": "^16.14.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
715
- "@sps-woodland/illustrations": "8.56.2",
716
- "@sps-woodland/tokens": "8.56.2",
717
- "@spscommerce/ds-react": "8.56.2",
718
- "@spscommerce/ds-shared": "8.56.2",
719
- "@spscommerce/i18n": "8.56.2"
715
+ "@sps-woodland/illustrations": "8.56.4",
716
+ "@sps-woodland/tokens": "8.56.4",
717
+ "@spscommerce/ds-react": "8.56.4",
718
+ "@spscommerce/ds-shared": "8.56.4",
719
+ "@spscommerce/i18n": "8.56.4"
720
720
  },
721
721
  "devDependencies": {
722
722
  "@ariakit/react": "0.4.15",
723
723
  "@types/mdast": "^4.0.4",
724
- "@spscommerce/utils": "9.1.1",
725
- "@vanilla-extract/css": "1.17.4",
724
+ "@spscommerce/utils": "9.3.3",
725
+ "@vanilla-extract/css": "1.21.3",
726
726
  "@vanilla-extract/css-utils": "0.1.3",
727
727
  "@vanilla-extract/recipes": "0.2.5",
728
728
  "postcss": "^8.5.14",
729
729
  "postcss-import": "^16.1.1",
730
730
  "react": "16.14.0",
731
731
  "react-dom": "16.14.0",
732
- "@sps-woodland/illustrations": "8.56.2",
733
- "@sps-woodland/tokens": "8.56.2",
734
- "@spscommerce/ds-react": "8.56.2",
735
- "@spscommerce/ds-shared": "8.56.2"
732
+ "@sps-woodland/illustrations": "8.56.4",
733
+ "@sps-woodland/tokens": "8.56.4",
734
+ "@spscommerce/ds-react": "8.56.4",
735
+ "@spscommerce/ds-shared": "8.56.4"
736
736
  },
737
737
  "dependencies": {
738
738
  "@handsontable/react": "^15.3.0",
@@ -1,57 +0,0 @@
1
- function s(r, n, e) {
2
- return n in r ? Object.defineProperty(r, n, {
3
- value: e,
4
- enumerable: !0,
5
- configurable: !0,
6
- writable: !0
7
- }) : r[n] = e, r;
8
- }
9
- function O(r, n) {
10
- var e = Object.keys(r);
11
- if (Object.getOwnPropertySymbols) {
12
- var t = Object.getOwnPropertySymbols(r);
13
- n && (t = t.filter(function(u) {
14
- return Object.getOwnPropertyDescriptor(r, u).enumerable;
15
- })), e.push.apply(e, t);
16
- }
17
- return e;
18
- }
19
- function o(r) {
20
- for (var n = 1; n < arguments.length; n++) {
21
- var e = arguments[n] != null ? arguments[n] : {};
22
- n % 2 ? O(Object(e), !0).forEach(function(t) {
23
- s(r, t, e[t]);
24
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(e)) : O(Object(e)).forEach(function(t) {
25
- Object.defineProperty(r, t, Object.getOwnPropertyDescriptor(e, t));
26
- });
27
- }
28
- return r;
29
- }
30
- var v = (r, n, e) => {
31
- for (var t of Object.keys(r)) {
32
- var u;
33
- if (r[t] !== ((u = n[t]) !== null && u !== void 0 ? u : e[t]))
34
- return !1;
35
- }
36
- return !0;
37
- }, d = (r) => (n) => {
38
- var e = r.defaultClassName, t = o(o({}, r.defaultVariants), n);
39
- for (var u in t) {
40
- var f, p = (f = t[u]) !== null && f !== void 0 ? f : r.defaultVariants[u];
41
- if (p != null) {
42
- var a = p;
43
- typeof a == "boolean" && (a = a === !0 ? "true" : "false");
44
- var l = (
45
- // @ts-expect-error
46
- r.variantClassNames[u][a]
47
- );
48
- l && (e += " " + l);
49
- }
50
- }
51
- for (var [i, b] of r.compoundVariants)
52
- v(i, t, r.defaultVariants) && (e += " " + b);
53
- return e;
54
- };
55
- export {
56
- d as createRuntimeFn
57
- };