@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,87 +1,93 @@
1
- import { Metadata as I, useChildTestIdAttrBuilder as N, cl as h, Icon as o } from "@sps-woodland/core";
2
- import * as e from "react";
3
- import { useWoodlandLanguage as y } from "@spscommerce/i18n";
4
- import { insightCard as T, insightCardBody as D, insightCardMetricCount as w, insightCardDescription as x, insightCardTitle as P, insightCardDetail as k, insightCardPartnerCount as $, insightCardPartnerCountContent as A, insightCardPartnersText as K, insightCardEditIcon as L } from "./InsightCard.ve.js";
5
- const R = Object.freeze({
6
- general: "status-new",
7
- success: "status-ok",
8
- error: "status-error",
9
- warning: "status-warning",
10
- processing: "status-in-process"
1
+ import { insightCard as e, insightCardBody as t, insightCardDescription as n, insightCardDetail as r, insightCardEditIcon as i, insightCardMetricCount as a, insightCardPartnerCount as o, insightCardPartnerCountContent as s, insightCardPartnersText as c, insightCardTitle as l } from "./InsightCard.ve.js";
2
+ import { Icon as u, Metadata as d, cl as f, useChildTestIdAttrBuilder as p } from "@sps-woodland/core";
3
+ import * as m from "react";
4
+ import { useWoodlandLanguage as h } from "@spscommerce/i18n";
5
+ //#region src/insight-card/InsightCard.tsx
6
+ var g = Object.freeze({
7
+ general: "status-new",
8
+ success: "status-ok",
9
+ error: "status-error",
10
+ warning: "status-warning",
11
+ processing: "status-in-process"
11
12
  });
12
- function V({
13
- children: m,
14
- className: f,
15
- horizontal: a = !1,
16
- icon: u,
17
- kind: l = "general",
18
- title: g,
19
- metric: v,
20
- partnerCount: i,
21
- totalPartners: c,
22
- onEdit: n,
23
- onClick: s,
24
- ...p
25
- }) {
26
- const { t: d } = y(), r = N(p), [E, C, b] = (i ? d("insightTile.partnerCount", {
27
- count: i,
28
- total: c,
29
- defaultValue: `${i} |of| ${c}`
30
- }) : "").split("|");
31
- return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
32
- "div",
33
- {
34
- className: h(T({ kind: l, horizontal: a }), f),
35
- onClick: s,
36
- tabIndex: s ? 0 : void 0,
37
- role: s && "button",
38
- onKeyDown: s ? (t) => {
39
- (t.key === "Enter" || t.key === " ") && (t.preventDefault(), t.currentTarget.click());
40
- } : void 0,
41
- ...p
42
- },
43
- /* @__PURE__ */ e.createElement("div", { className: D({ horizontal: a }), ...r("body") }, u ? /* @__PURE__ */ e.createElement(o, { icon: `${u}`, ...r("icon") }) : /* @__PURE__ */ e.createElement(o, { icon: `${R[l]}`, ...r("icon") }), v && /* @__PURE__ */ e.createElement("div", { className: w({ horizontal: a }), ...r("metric") }, v), g && /* @__PURE__ */ e.createElement("div", { className: x({ horizontal: a }), ...r("description") }, /* @__PURE__ */ e.createElement(
44
- "div",
45
- {
46
- className: P({ horizontal: a }),
47
- style: { "-webkit-box-orient": "vertical" },
48
- ...r("title")
49
- },
50
- g
51
- ), /* @__PURE__ */ e.createElement("div", { className: k({ hasDetail: !!m }), ...r("detail") }, m))),
52
- i && /* @__PURE__ */ e.createElement(
53
- "div",
54
- {
55
- role: n && "button",
56
- tabIndex: n ? 0 : void 0,
57
- onClick: n ? (t) => {
58
- t.stopPropagation(), n();
59
- } : void 0,
60
- onKeyDown: n ? (t) => {
61
- (t.key === "Enter" || t.key === " ") && (t.preventDefault(), t.stopPropagation(), n());
62
- } : void 0,
63
- className: $({ kind: l, horizontal: a, editable: !!n }),
64
- ...r("partner-count")
65
- },
66
- /* @__PURE__ */ e.createElement("div", { className: A({ horizontal: a }) }, i === c ? /* @__PURE__ */ e.createElement("div", null, d("insightTile.all", { defaultValue: "ALL" })) : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", null, E), /* @__PURE__ */ e.createElement("div", null, C), /* @__PURE__ */ e.createElement("div", null, b)), /* @__PURE__ */ e.createElement("div", { className: K({ horizontal: a }) }, d("insightTile.partners", { defaultValue: "PARTNERS" }))),
67
- n && /* @__PURE__ */ e.createElement(o, { className: L({ horizontal: a }), icon: "pencil" })
68
- )
69
- ));
13
+ function _({ children: d, className: _, horizontal: v = !1, icon: y, kind: b = "general", title: x, metric: S, partnerCount: C, totalPartners: w, onEdit: T, onClick: E, ...D }) {
14
+ let { t: O } = h(), k = p(D), [A, j, M] = (C ? O("insightTile.partnerCount", {
15
+ count: C,
16
+ total: w,
17
+ defaultValue: `${C} |of| ${w}`
18
+ }) : "").split("|");
19
+ return /* @__PURE__ */ m.createElement(m.Fragment, null, /* @__PURE__ */ m.createElement("div", {
20
+ className: f(e({
21
+ kind: b,
22
+ horizontal: v
23
+ }), _),
24
+ onClick: E,
25
+ tabIndex: E ? 0 : void 0,
26
+ role: E && "button",
27
+ onKeyDown: E ? (e) => {
28
+ (e.key === "Enter" || e.key === " ") && (e.preventDefault(), e.currentTarget.click());
29
+ } : void 0,
30
+ ...D
31
+ }, /* @__PURE__ */ m.createElement("div", {
32
+ className: t({ horizontal: v }),
33
+ ...k("body")
34
+ }, y ? /* @__PURE__ */ m.createElement(u, {
35
+ icon: `${y}`,
36
+ ...k("icon")
37
+ }) : /* @__PURE__ */ m.createElement(u, {
38
+ icon: `${g[b]}`,
39
+ ...k("icon")
40
+ }), S && /* @__PURE__ */ m.createElement("div", {
41
+ className: a({ horizontal: v }),
42
+ ...k("metric")
43
+ }, S), x && /* @__PURE__ */ m.createElement("div", {
44
+ className: n({ horizontal: v }),
45
+ ...k("description")
46
+ }, /* @__PURE__ */ m.createElement("div", {
47
+ className: l({ horizontal: v }),
48
+ style: { "-webkit-box-orient": "vertical" },
49
+ ...k("title")
50
+ }, x), /* @__PURE__ */ m.createElement("div", {
51
+ className: r({ hasDetail: !!d }),
52
+ ...k("detail")
53
+ }, d))), C && /* @__PURE__ */ m.createElement("div", {
54
+ role: T && "button",
55
+ tabIndex: T ? 0 : void 0,
56
+ onClick: T ? (e) => {
57
+ e.stopPropagation(), T();
58
+ } : void 0,
59
+ onKeyDown: T ? (e) => {
60
+ (e.key === "Enter" || e.key === " ") && (e.preventDefault(), e.stopPropagation(), T());
61
+ } : void 0,
62
+ className: o({
63
+ kind: b,
64
+ horizontal: v,
65
+ editable: !!T
66
+ }),
67
+ ...k("partner-count")
68
+ }, /* @__PURE__ */ m.createElement("div", { className: s({ horizontal: v }) }, C === w ? /* @__PURE__ */ m.createElement("div", null, O("insightTile.all", { defaultValue: "ALL" })) : /* @__PURE__ */ m.createElement(m.Fragment, null, /* @__PURE__ */ m.createElement("div", null, A), /* @__PURE__ */ m.createElement("div", null, j), /* @__PURE__ */ m.createElement("div", null, M)), /* @__PURE__ */ m.createElement("div", { className: c({ horizontal: v }) }, O("insightTile.partners", { defaultValue: "PARTNERS" }))), T && /* @__PURE__ */ m.createElement(u, {
69
+ className: i({ horizontal: v }),
70
+ icon: "pencil"
71
+ }))));
70
72
  }
71
- I.set(V, {
72
- name: "InsightCard",
73
- props: {
74
- horizontal: { type: "boolean", default: "false" },
75
- icon: "IconName",
76
- kind: { type: "InsightCardKind", default: '"general"' },
77
- title: "string",
78
- metric: "number | string",
79
- partnerCount: "number",
80
- totalPartners: "number",
81
- onEdit: "() => void"
82
- }
73
+ d.set(_, {
74
+ name: "InsightCard",
75
+ props: {
76
+ horizontal: {
77
+ type: "boolean",
78
+ default: "false"
79
+ },
80
+ icon: "IconName",
81
+ kind: {
82
+ type: "InsightCardKind",
83
+ default: "\"general\""
84
+ },
85
+ title: "string",
86
+ metric: "number | string",
87
+ partnerCount: "number",
88
+ totalPartners: "number",
89
+ onEdit: "() => void"
90
+ }
83
91
  });
84
- export {
85
- V as InsightCard,
86
- R as InsightCardIcons
87
- };
92
+ //#endregion
93
+ export { _ as InsightCard, g as InsightCardIcons };
@@ -1,16 +1,149 @@
1
1
  /* 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 i = "pkg_sps-woodland_core__family_insight-card__version_8_56_2__hash_z81y4l0", o = _({ defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_56_2__hash_z81y4l1", variantClassNames: { kind: { general: "pkg_sps-woodland_core__family_insight-card__version_8_56_2__hash_z81y4l2", error: "pkg_sps-woodland_core__family_insight-card__version_8_56_2__hash_z81y4l3", success: "pkg_sps-woodland_core__family_insight-card__version_8_56_2__hash_z81y4l4", warning: "pkg_sps-woodland_core__family_insight-card__version_8_56_2__hash_z81y4l5", processing: "pkg_sps-woodland_core__family_insight-card__version_8_56_2__hash_z81y4l6" }, horizontal: { true: "pkg_sps-woodland_core__family_insight-card__version_8_56_2__hash_z81y4l7", false: "pkg_sps-woodland_core__family_insight-card__version_8_56_2__hash_z81y4l8" } }, defaultVariants: { kind: "general", horizontal: !1 }, compoundVariants: [] }), r = _({ defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_56_2__hash_z81y4l9", variantClassNames: { horizontal: { true: "pkg_sps-woodland_core__family_insight-card__version_8_56_2__hash_z81y4la", false: "pkg_sps-woodland_core__family_insight-card__version_8_56_2__hash_z81y4lb" } }, defaultVariants: { horizontal: !1 }, compoundVariants: [] }), n = _({ defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_56_2__hash_z81y4li", variantClassNames: { horizontal: { true: "pkg_sps-woodland_core__family_insight-card__version_8_56_2__hash_z81y4lj", false: "pkg_sps-woodland_core__family_insight-card__version_8_56_2__hash_z81y4lk" } }, defaultVariants: { horizontal: !1 }, compoundVariants: [] }), l = _({ defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_56_2__hash_z81y4ll", variantClassNames: { horizontal: { true: "pkg_sps-woodland_core__family_insight-card__version_8_56_2__hash_z81y4lm", false: "pkg_sps-woodland_core__family_insight-card__version_8_56_2__hash_z81y4ln" } }, defaultVariants: { horizontal: !1 }, compoundVariants: [] }), e = _({ defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_56_2__hash_z81y4lo", variantClassNames: { horizontal: { true: "pkg_sps-woodland_core__family_insight-card__version_8_56_2__hash_z81y4lp", false: "pkg_sps-woodland_core__family_insight-card__version_8_56_2__hash_z81y4lq" } }, defaultVariants: { horizontal: !1 }, compoundVariants: [] }), d = _({ defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_56_2__hash_z81y4lr", variantClassNames: { hasDetail: { true: "pkg_sps-woodland_core__family_insight-card__version_8_56_2__hash_z81y4ls", false: "pkg_sps-woodland_core__family_insight-card__version_8_56_2__hash_z81y4lt" } }, defaultVariants: { hasDetail: !1 }, compoundVariants: [] }), h = _({ defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_56_2__hash_z81y4lu", variantClassNames: { kind: { general: "pkg_sps-woodland_core__family_insight-card__version_8_56_2__hash_z81y4lv", error: "pkg_sps-woodland_core__family_insight-card__version_8_56_2__hash_z81y4lw", success: "pkg_sps-woodland_core__family_insight-card__version_8_56_2__hash_z81y4lx", warning: "pkg_sps-woodland_core__family_insight-card__version_8_56_2__hash_z81y4ly", processing: "pkg_sps-woodland_core__family_insight-card__version_8_56_2__hash_z81y4lz" }, horizontal: { true: "pkg_sps-woodland_core__family_insight-card__version_8_56_2__hash_z81y4l10", false: "pkg_sps-woodland_core__family_insight-card__version_8_56_2__hash_z81y4l11" }, editable: { true: "pkg_sps-woodland_core__family_insight-card__version_8_56_2__hash_z81y4l12", false: "pkg_sps-woodland_core__family_insight-card__version_8_56_2__hash_z81y4l13" } }, defaultVariants: { kind: "general", horizontal: !1, editable: !1 }, compoundVariants: [[{ kind: "general", editable: !0 }, "pkg_sps-woodland_core__family_insight-card__version_8_56_2__hash_z81y4l14"], [{ kind: "error", editable: !0 }, "pkg_sps-woodland_core__family_insight-card__version_8_56_2__hash_z81y4l15"], [{ kind: "success", editable: !0 }, "pkg_sps-woodland_core__family_insight-card__version_8_56_2__hash_z81y4l16"], [{ kind: "warning", editable: !0 }, "pkg_sps-woodland_core__family_insight-card__version_8_56_2__hash_z81y4l17"], [{ kind: "processing", editable: !0 }, "pkg_sps-woodland_core__family_insight-card__version_8_56_2__hash_z81y4l18"]] }), t = _({ defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_56_2__hash_z81y4l19", variantClassNames: { horizontal: { true: "pkg_sps-woodland_core__family_insight-card__version_8_56_2__hash_z81y4l1a", false: "pkg_sps-woodland_core__family_insight-card__version_8_56_2__hash_z81y4l1b" } }, defaultVariants: { horizontal: !1 }, compoundVariants: [] }), c = _({ defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_56_2__hash_z81y4l1c", variantClassNames: { horizontal: { true: "pkg_sps-woodland_core__family_insight-card__version_8_56_2__hash_z81y4l1d", false: "pkg_sps-woodland_core__family_insight-card__version_8_56_2__hash_z81y4l1e" } }, defaultVariants: { horizontal: !1 }, compoundVariants: [] }), g = _({ defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_56_2__hash_z81y4l1f", variantClassNames: { horizontal: { true: "pkg_sps-woodland_core__family_insight-card__version_8_56_2__hash_z81y4l1g", false: "pkg_sps-woodland_core__family_insight-card__version_8_56_2__hash_z81y4l1h" } }, defaultVariants: { horizontal: !1 }, compoundVariants: [] });
4
- export {
5
- o as insightCard,
6
- r as insightCardBody,
7
- e as insightCardDescription,
8
- d as insightCardDetail,
9
- g as insightCardEditIcon,
10
- n as insightCardMetricCount,
11
- h as insightCardPartnerCount,
12
- c as insightCardPartnerCountContent,
13
- t as insightCardPartnersText,
14
- l as insightCardTitle,
15
- i as insightCardWrapper
16
- };
2
+ 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";
3
+ //#region src/insight-card/InsightCard.css.ts
4
+ var t = "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l0", n = e({
5
+ defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l1",
6
+ variantClassNames: {
7
+ kind: {
8
+ general: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l2",
9
+ error: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l3",
10
+ success: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l4",
11
+ warning: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l5",
12
+ processing: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l6"
13
+ },
14
+ horizontal: {
15
+ true: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l7",
16
+ false: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l8"
17
+ }
18
+ },
19
+ defaultVariants: {
20
+ kind: "general",
21
+ horizontal: !1
22
+ },
23
+ compoundVariants: []
24
+ }), r = e({
25
+ defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l9",
26
+ variantClassNames: { horizontal: {
27
+ true: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4la",
28
+ false: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4lb"
29
+ } },
30
+ defaultVariants: { horizontal: !1 },
31
+ compoundVariants: []
32
+ });
33
+ e({
34
+ defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4lc",
35
+ variantClassNames: { kind: {
36
+ general: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4ld",
37
+ error: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4le",
38
+ success: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4lf",
39
+ warning: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4lg",
40
+ processing: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4lh"
41
+ } },
42
+ defaultVariants: { kind: "general" },
43
+ compoundVariants: []
44
+ });
45
+ var i = e({
46
+ defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4li",
47
+ variantClassNames: { horizontal: {
48
+ true: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4lj",
49
+ false: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4lk"
50
+ } },
51
+ defaultVariants: { horizontal: !1 },
52
+ compoundVariants: []
53
+ }), a = e({
54
+ defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4ll",
55
+ variantClassNames: { horizontal: {
56
+ true: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4lm",
57
+ false: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4ln"
58
+ } },
59
+ defaultVariants: { horizontal: !1 },
60
+ compoundVariants: []
61
+ }), o = e({
62
+ defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4lo",
63
+ variantClassNames: { horizontal: {
64
+ true: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4lp",
65
+ false: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4lq"
66
+ } },
67
+ defaultVariants: { horizontal: !1 },
68
+ compoundVariants: []
69
+ }), s = e({
70
+ defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4lr",
71
+ variantClassNames: { hasDetail: {
72
+ true: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4ls",
73
+ false: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4lt"
74
+ } },
75
+ defaultVariants: { hasDetail: !1 },
76
+ compoundVariants: []
77
+ }), c = e({
78
+ defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4lu",
79
+ variantClassNames: {
80
+ kind: {
81
+ general: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4lv",
82
+ error: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4lw",
83
+ success: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4lx",
84
+ warning: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4ly",
85
+ processing: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4lz"
86
+ },
87
+ horizontal: {
88
+ true: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l10",
89
+ false: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l11"
90
+ },
91
+ editable: {
92
+ true: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l12",
93
+ false: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l13"
94
+ }
95
+ },
96
+ defaultVariants: {
97
+ kind: "general",
98
+ horizontal: !1,
99
+ editable: !1
100
+ },
101
+ compoundVariants: [
102
+ [{
103
+ kind: "general",
104
+ editable: !0
105
+ }, "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l14"],
106
+ [{
107
+ kind: "error",
108
+ editable: !0
109
+ }, "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l15"],
110
+ [{
111
+ kind: "success",
112
+ editable: !0
113
+ }, "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l16"],
114
+ [{
115
+ kind: "warning",
116
+ editable: !0
117
+ }, "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l17"],
118
+ [{
119
+ kind: "processing",
120
+ editable: !0
121
+ }, "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l18"]
122
+ ]
123
+ }), l = e({
124
+ defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l19",
125
+ variantClassNames: { horizontal: {
126
+ true: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l1a",
127
+ false: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l1b"
128
+ } },
129
+ defaultVariants: { horizontal: !1 },
130
+ compoundVariants: []
131
+ }), u = e({
132
+ defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l1c",
133
+ variantClassNames: { horizontal: {
134
+ true: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l1d",
135
+ false: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l1e"
136
+ } },
137
+ defaultVariants: { horizontal: !1 },
138
+ compoundVariants: []
139
+ }), d = e({
140
+ defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l1f",
141
+ variantClassNames: { horizontal: {
142
+ true: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l1g",
143
+ false: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l1h"
144
+ } },
145
+ defaultVariants: { horizontal: !1 },
146
+ compoundVariants: []
147
+ });
148
+ //#endregion
149
+ export { n as insightCard, r as insightCardBody, o as insightCardDescription, s as insightCardDetail, d as insightCardEditIcon, i as insightCardMetricCount, c as insightCardPartnerCount, u as insightCardPartnerCountContent, l as insightCardPartnersText, a as insightCardTitle, t as insightCardWrapper };
@@ -1,13 +1,13 @@
1
- import { Metadata as e } from "@sps-woodland/core";
2
- import * as a from "react";
3
- import { insightCardWrapper as i } from "./InsightCard.ve.js";
4
- function m({
5
- children: t,
6
- ...r
7
- }) {
8
- return /* @__PURE__ */ a.createElement("div", { className: i, ...r }, t);
1
+ import { insightCardWrapper as e } from "./InsightCard.ve.js";
2
+ import { Metadata as t } from "@sps-woodland/core";
3
+ import * as n from "react";
4
+ //#region src/insight-card/InsightCardSet.tsx
5
+ function r({ children: t, ...r }) {
6
+ return /* @__PURE__ */ n.createElement("div", {
7
+ className: e,
8
+ ...r
9
+ }, t);
9
10
  }
10
- e.set(m, { name: "InsightCardSet" });
11
- export {
12
- m as InsightCardSet
13
- };
11
+ t.set(r, { name: "InsightCardSet" });
12
+ //#endregion
13
+ export { r as InsightCardSet };