@sps-woodland/core 8.53.31 → 8.55.0

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 (151) hide show
  1. package/lib/action-bar/action-bar/ActionBar.ve.js +1 -1
  2. package/lib/action-bar/index.js +1 -1
  3. package/lib/action-bar/index.umd.cjs +1 -1
  4. package/lib/action-bar/style.css +1 -1
  5. package/lib/add-to-list/add-to-list/AddToList.ve.js +1 -1
  6. package/lib/add-to-list/index.js +1 -1
  7. package/lib/add-to-list/index.umd.cjs +1 -1
  8. package/lib/add-to-list/style.css +1 -1
  9. package/lib/buttons/button/Button.ve.js +1 -1
  10. package/lib/buttons/index.js +1 -1
  11. package/lib/buttons/index.umd.cjs +1 -1
  12. package/lib/buttons/style.css +1 -1
  13. package/lib/cards/card/Card.ve.js +1 -1
  14. package/lib/cards/card-footer/CardFooter.ve.js +1 -1
  15. package/lib/cards/card-header/CardHeader.ve.js +1 -1
  16. package/lib/cards/card-title/CardTitle.ve.js +1 -1
  17. package/lib/cards/index.js +4 -4
  18. package/lib/cards/index.umd.cjs +1 -1
  19. package/lib/cards/style.css +1 -1
  20. package/lib/components/icon/Icon.ve.js +1 -1
  21. package/lib/content-row/content-row/ContentRow.ve.js +1 -1
  22. package/lib/content-row/content-row-col/ContentRowCol.ve.js +1 -1
  23. package/lib/content-row/index.js +3 -3
  24. package/lib/content-row/index.umd.cjs +1 -1
  25. package/lib/content-row/row-list-auto-layout/RowListAutoLayout.ve.js +1 -1
  26. package/lib/content-row/style.css +1 -1
  27. package/lib/content-tiles/content-tile/ContentTile.ve.js +1 -1
  28. package/lib/content-tiles/content-tile-list/ContentTileList.ve.js +1 -1
  29. package/lib/content-tiles/index.js +2 -2
  30. package/lib/content-tiles/index.umd.cjs +1 -1
  31. package/lib/content-tiles/style.css +1 -1
  32. package/lib/core.css +1 -1
  33. package/lib/dropdowns/dropdown/Dropdown.ve.js +1 -1
  34. package/lib/dropdowns/index.js +3 -3
  35. package/lib/dropdowns/index.umd.cjs +1 -1
  36. package/lib/dropdowns/option-list/Option.ve.js +1 -1
  37. package/lib/dropdowns/option-list/OptionList.ve.js +1 -1
  38. package/lib/dropdowns/style.css +1 -1
  39. package/lib/feedback-block/FeedbackBlock.ve.js +1 -1
  40. package/lib/feedback-block/index.js +1 -1
  41. package/lib/feedback-block/index.umd.cjs +1 -1
  42. package/lib/feedback-block/style.css +1 -1
  43. package/lib/file-upload/file-upload/FileUpload.ve.js +1 -1
  44. package/lib/file-upload/index.js +1 -1
  45. package/lib/file-upload/index.umd.cjs +1 -1
  46. package/lib/file-upload/style.css +1 -1
  47. package/lib/filter-tiles/filter-tile/FilterTile.ve.js +1 -1
  48. package/lib/filter-tiles/filter-tile-set/FilterTileSet.ve.js +1 -1
  49. package/lib/filter-tiles/index.js +2 -2
  50. package/lib/filter-tiles/index.umd.cjs +1 -1
  51. package/lib/filter-tiles/style.css +1 -1
  52. package/lib/focused-task/focused-task/FocusedTask.ve.js +1 -1
  53. package/lib/focused-task/index.js +1 -1
  54. package/lib/focused-task/index.umd.cjs +1 -1
  55. package/lib/focused-task/style.css +1 -1
  56. package/lib/growler/Growler.ve.js +1 -1
  57. package/lib/growler/Sonner.ve.js +1 -1
  58. package/lib/growler/index.js +2 -2
  59. package/lib/growler/index.umd.cjs +1 -1
  60. package/lib/growler/style.css +1 -1
  61. package/lib/index.js +8 -8
  62. package/lib/index.umd.cjs +1 -1
  63. package/lib/insight-card/InsightCard.css.d.ts +4 -2
  64. package/lib/insight-card/InsightCard.css.d.ts.map +1 -1
  65. package/lib/insight-card/InsightCard.d.ts +2 -1
  66. package/lib/insight-card/InsightCard.d.ts.map +1 -1
  67. package/lib/insight-card/InsightCard.js +55 -37
  68. package/lib/insight-card/InsightCard.ve.js +3 -1
  69. package/lib/insight-card/index.js +92 -74
  70. package/lib/insight-card/index.umd.cjs +1 -1
  71. package/lib/insight-card/style.css +1 -1
  72. package/lib/key-value-set/index.js +2 -2
  73. package/lib/key-value-set/index.umd.cjs +1 -1
  74. package/lib/key-value-set/key-value-set/KeyValueSet.ve.js +1 -1
  75. package/lib/key-value-set/key-value-set-item/KeyValueSetItem.ve.js +1 -1
  76. package/lib/key-value-set/style.css +1 -1
  77. package/lib/list-bar/advanced-search/AdvancedSearch.ve.js +1 -1
  78. package/lib/list-bar/index.js +3 -3
  79. package/lib/list-bar/index.umd.cjs +1 -1
  80. package/lib/list-bar/list-bar/ListBar.ve.js +1 -1
  81. package/lib/list-bar/search-results-bar/SearchResultsBar.ve.js +1 -1
  82. package/lib/list-bar/style.css +1 -1
  83. package/lib/matrix/index.js +1 -1
  84. package/lib/matrix/index.umd.cjs +1 -1
  85. package/lib/matrix/matrix/Matrix.ve.js +1 -1
  86. package/lib/matrix/style.css +1 -1
  87. package/lib/modal/index.js +1 -1
  88. package/lib/modal/index.umd.cjs +1 -1
  89. package/lib/modal/modal/Modal.ve.js +1 -1
  90. package/lib/modal/style.css +1 -1
  91. package/lib/page-title/index.js +2 -2
  92. package/lib/page-title/index.umd.cjs +1 -1
  93. package/lib/page-title/page-subtitle/PageSubtitle.ve.js +1 -1
  94. package/lib/page-title/page-title/PageTitle.ve.js +1 -1
  95. package/lib/page-title/style.css +1 -1
  96. package/lib/photo/index.js +2 -2
  97. package/lib/photo/index.umd.cjs +1 -1
  98. package/lib/photo/photo/Photo.ve.js +1 -1
  99. package/lib/photo/photo-carousel/PhotoCarousel.ve.js +1 -1
  100. package/lib/photo/style.css +1 -1
  101. package/lib/product-bar/index.js +3 -3
  102. package/lib/product-bar/index.umd.cjs +1 -1
  103. package/lib/product-bar/product-bar/ProductBar.ve.js +1 -1
  104. package/lib/product-bar/product-bar-overflow-menu/ProductBarOverflowMenu.ve.js +1 -1
  105. package/lib/product-bar/slack-link/SlackLink.ve.js +1 -1
  106. package/lib/product-bar/style.css +1 -1
  107. package/lib/product-bar-vertical/index.js +1 -1
  108. package/lib/product-bar-vertical/index.umd.cjs +1 -1
  109. package/lib/product-bar-vertical/product-bar-vertical/ProductBarVertical.ve.js +1 -1
  110. package/lib/product-bar-vertical/style.css +1 -1
  111. package/lib/progress-indicators/index.js +1 -1
  112. package/lib/progress-indicators/index.umd.cjs +1 -1
  113. package/lib/progress-indicators/progress-bar/ProgressBar.ve.js +1 -1
  114. package/lib/progress-indicators/progress-bar/progress-bar-step/ProgressBarStep.ve.js +1 -1
  115. package/lib/progress-indicators/style.css +1 -1
  116. package/lib/rich-text-editor/index.js +2 -2
  117. package/lib/rich-text-editor/index.umd.cjs +1 -1
  118. package/lib/rich-text-editor/rich-text-editor/RTEToolbarButton.ve.js +1 -1
  119. package/lib/rich-text-editor/rich-text-editor/RichTextEditor.ve.js +1 -1
  120. package/lib/rich-text-editor/style.css +1 -1
  121. package/lib/scrollable-container/ScrollableContainer.ve.js +1 -1
  122. package/lib/scrollable-container/index.js +1 -1
  123. package/lib/scrollable-container/index.umd.cjs +1 -1
  124. package/lib/scrollable-container/style.css +1 -1
  125. package/lib/side-nav/index.js +1 -1
  126. package/lib/side-nav/index.umd.cjs +1 -1
  127. package/lib/side-nav/side-nav/SideNav.ve.js +1 -1
  128. package/lib/side-nav/style.css +1 -1
  129. package/lib/sorting-header/caret/caret.ve.js +1 -1
  130. package/lib/sorting-header/index.js +2 -2
  131. package/lib/sorting-header/index.umd.cjs +1 -1
  132. package/lib/sorting-header/sorting-header/SortingHeader.ve.js +1 -1
  133. package/lib/sorting-header/sorting-header-cell/SortingHeaderCell.ve.js +1 -1
  134. package/lib/sorting-header/style.css +1 -1
  135. package/lib/style.css +1 -1
  136. package/lib/tabs/index.js +2 -2
  137. package/lib/tabs/index.umd.cjs +1 -1
  138. package/lib/tabs/style.css +1 -1
  139. package/lib/tabs/tab/Tab.ve.js +1 -1
  140. package/lib/tabs/tabs/Tabs.ve.js +1 -1
  141. package/lib/tags/clickable-tag/ClickableTag.ve.js +1 -1
  142. package/lib/tags/index.js +3 -3
  143. package/lib/tags/index.umd.cjs +1 -1
  144. package/lib/tags/split-tag/SplitTag.ve.js +1 -1
  145. package/lib/tags/style.css +1 -1
  146. package/lib/tags/tag/Tag.ve.js +1 -1
  147. package/lib/zero-state/ZeroState.ve.js +1 -1
  148. package/lib/zero-state/index.js +1 -1
  149. package/lib/zero-state/index.umd.cjs +1 -1
  150. package/lib/zero-state/style.css +1 -1
  151. package/package.json +10 -10
@@ -10,11 +10,13 @@ export declare const insightCardWrapper: string;
10
10
  export declare const insightCard: import("node_modules/@vanilla-extract/recipes/dist/declarations/src/types").RuntimeFn<Pick<InsightCardVariantDefinitions, "kind" | "horizontal">>;
11
11
  export declare const insightCardBody: import("node_modules/@vanilla-extract/recipes/dist/declarations/src/types").RuntimeFn<Pick<InsightCardVariantDefinitions, "horizontal">>;
12
12
  export declare const insightCardIcon: import("node_modules/@vanilla-extract/recipes/dist/declarations/src/types").RuntimeFn<Pick<InsightCardVariantDefinitions, "kind">>;
13
- export declare const insightCardMetricCount: import("node_modules/@vanilla-extract/recipes/dist/declarations/src/types").RuntimeFn<Pick<InsightCardVariantDefinitions, "kind" | "horizontal">>;
13
+ export declare const insightCardMetricCount: import("node_modules/@vanilla-extract/recipes/dist/declarations/src/types").RuntimeFn<Pick<InsightCardVariantDefinitions, "horizontal">>;
14
14
  export declare const insightCardTitle: import("node_modules/@vanilla-extract/recipes/dist/declarations/src/types").RuntimeFn<Pick<InsightCardVariantDefinitions, "horizontal">>;
15
15
  export declare const insightCardDescription: import("node_modules/@vanilla-extract/recipes/dist/declarations/src/types").RuntimeFn<Pick<InsightCardVariantDefinitions, "horizontal">>;
16
16
  export declare const insightCardDetail: import("node_modules/@vanilla-extract/recipes/dist/declarations/src/types").RuntimeFn<Pick<InsightCardVariantDefinitions, "hasDetail">>;
17
- export declare const insightCardPartnerCount: import("node_modules/@vanilla-extract/recipes/dist/declarations/src/types").RuntimeFn<Pick<InsightCardVariantDefinitions, "kind" | "horizontal">>;
17
+ export declare const insightCardPartnerCount: import("node_modules/@vanilla-extract/recipes/dist/declarations/src/types").RuntimeFn<Pick<InsightCardVariantDefinitions, "kind" | "horizontal" | "editable">>;
18
18
  export declare const insightCardPartnersText: import("node_modules/@vanilla-extract/recipes/dist/declarations/src/types").RuntimeFn<Pick<InsightCardVariantDefinitions, "horizontal">>;
19
+ export declare const insightCardPartnerCountContent: import("node_modules/@vanilla-extract/recipes/dist/declarations/src/types").RuntimeFn<Pick<InsightCardVariantDefinitions, "horizontal">>;
20
+ export declare const insightCardEditIcon: import("node_modules/@vanilla-extract/recipes/dist/declarations/src/types").RuntimeFn<Pick<InsightCardVariantDefinitions, "horizontal">>;
19
21
  export {};
20
22
  //# sourceMappingURL=InsightCard.css.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"InsightCard.css.d.ts","sourceRoot":"","sources":["../../src/insight-card/InsightCard.css.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,KAAK,EAAE,kBAAkB,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAElG,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,OAAO,MAAM,CAAC,SAAS,CAAC,CAAC,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC;AAEtF,UAAU,6BAA8B,SAAQ,kBAAkB;IAChE,IAAI,EAAE,aAAa,CAAC,eAAe,CAAC,CAAC;IACrC,UAAU,EAAE,oBAAoB,CAAC;IACjC,SAAS,EAAE,oBAAoB,CAAC;CACjC;AAED,eAAO,MAAM,kBAAkB,QAI7B,CAAC;AAEH,eAAO,MAAM,WAAW,mJA2EtB,CAAC;AAEH,eAAO,MAAM,eAAe,0IAmB1B,CAAC;AAEH,eAAO,MAAM,eAAe,oIA4B1B,CAAC;AAEH,eAAO,MAAM,sBAAsB,mJAwCjC,CAAC;AAEH,eAAO,MAAM,gBAAgB,0IA2B3B,CAAC;AAEH,eAAO,MAAM,sBAAsB,0IAejC,CAAC;AAEH,eAAO,MAAM,iBAAiB,yIAsB5B,CAAC;AAEH,eAAO,MAAM,uBAAuB,mJAoDlC,CAAC;AAEH,eAAO,MAAM,uBAAuB,0IAalC,CAAC"}
1
+ {"version":3,"file":"InsightCard.css.d.ts","sourceRoot":"","sources":["../../src/insight-card/InsightCard.css.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,KAAK,EAAE,kBAAkB,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAElG,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,OAAO,MAAM,CAAC,SAAS,CAAC,CAAC,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC;AAEtF,UAAU,6BAA8B,SAAQ,kBAAkB;IAChE,IAAI,EAAE,aAAa,CAAC,eAAe,CAAC,CAAC;IACrC,UAAU,EAAE,oBAAoB,CAAC;IACjC,SAAS,EAAE,oBAAoB,CAAC;CACjC;AAED,eAAO,MAAM,kBAAkB,QAI7B,CAAC;AAEH,eAAO,MAAM,WAAW,mJAuFtB,CAAC;AAEH,eAAO,MAAM,eAAe,0IAmB1B,CAAC;AAEH,eAAO,MAAM,eAAe,oIA4B1B,CAAC;AAEH,eAAO,MAAM,sBAAsB,0IAqBjC,CAAC;AAEH,eAAO,MAAM,gBAAgB,0IA2B3B,CAAC;AAEH,eAAO,MAAM,sBAAsB,0IAejC,CAAC;AAEH,eAAO,MAAM,iBAAiB,yIAsB5B,CAAC;AAEH,eAAO,MAAM,uBAAuB,gKAyIlC,CAAC;AAEH,eAAO,MAAM,uBAAuB,0IAalC,CAAC;AAEH,eAAO,MAAM,8BAA8B,0IAiBzC,CAAC;AAEH,eAAO,MAAM,mBAAmB,0IAgB9B,CAAC"}
@@ -3,7 +3,7 @@ import type { IconName } from "@sps-woodland/tokens";
3
3
  import * as React from "react";
4
4
  export type InsightCardKind = "general" | "success" | "error" | "warning" | "processing";
5
5
  export declare const InsightCardIcons: Record<InsightCardKind, IconName>;
6
- export declare function InsightCard({ children, className, horizontal, icon, kind, title, metric, partnerCount, totalPartners, ...rest }: ComponentProps<{
6
+ export declare function InsightCard({ children, className, horizontal, icon, kind, title, metric, partnerCount, totalPartners, onEdit, onClick, ...rest }: ComponentProps<{
7
7
  horizontal?: boolean;
8
8
  icon?: IconName;
9
9
  kind?: InsightCardKind;
@@ -11,5 +11,6 @@ export declare function InsightCard({ children, className, horizontal, icon, kin
11
11
  metric?: number | string;
12
12
  partnerCount?: number;
13
13
  totalPartners?: number;
14
+ onEdit?: () => void;
14
15
  }, HTMLDivElement>): React.ReactElement;
15
16
  //# sourceMappingURL=InsightCard.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"InsightCard.d.ts","sourceRoot":"","sources":["../../src/insight-card/InsightCard.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,YAAY,CAAC;AAEzF,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,eAAe,EAAE,QAAQ,CAM7D,CAAC;AAEH,wBAAgB,WAAW,CAAC,EAC1B,QAAQ,EACR,SAAS,EACT,UAAkB,EAClB,IAAI,EACJ,IAAgB,EAChB,KAAK,EACL,MAAM,EACN,YAAY,EACZ,aAAa,EACb,GAAG,IAAI,EACR,EAAE,cAAc,CAAC;IAChB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,EAAE,cAAc,CAAC,GAAG,KAAK,CAAC,YAAY,CAyEtC"}
1
+ {"version":3,"file":"InsightCard.d.ts","sourceRoot":"","sources":["../../src/insight-card/InsightCard.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAe/B,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,YAAY,CAAC;AAEzF,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,eAAe,EAAE,QAAQ,CAM7D,CAAC;AAEH,wBAAgB,WAAW,CAAC,EAC1B,QAAQ,EACR,SAAS,EACT,UAAkB,EAClB,IAAI,EACJ,IAAgB,EAChB,KAAK,EACL,MAAM,EACN,YAAY,EACZ,aAAa,EACb,MAAM,EACN,OAAO,EACP,GAAG,IAAI,EACR,EAAE,cAAc,CACf;IACE,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;CACrB,EACD,cAAc,CACf,GAAG,KAAK,CAAC,YAAY,CAgHrB"}
@@ -1,57 +1,74 @@
1
- import { Metadata as v, useChildTestIdAttrBuilder as C, cl as h, Icon as u } from "@sps-woodland/core";
1
+ import { Metadata as I, useChildTestIdAttrBuilder as N, cl as h, Icon as o } from "@sps-woodland/core";
2
2
  import * as e from "react";
3
- import { useWoodlandLanguage as N } from "@spscommerce/i18n";
4
- import { insightCard as I, insightCardBody as b, insightCardMetricCount as T, insightCardDescription as y, insightCardTitle as w, insightCardDetail as x, insightCardPartnerCount as $, insightCardPartnersText as A } from "./InsightCard.ve.js";
5
- const D = Object.freeze({
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
6
  general: "status-new",
7
7
  success: "status-ok",
8
8
  error: "status-error",
9
9
  warning: "status-warning",
10
10
  processing: "status-in-process"
11
11
  });
12
- function L({
13
- children: l,
14
- className: g,
12
+ function V({
13
+ children: m,
14
+ className: f,
15
15
  horizontal: a = !1,
16
- icon: c,
17
- kind: s = "general",
18
- title: m,
19
- metric: d,
20
- partnerCount: n,
21
- totalPartners: i,
22
- ...o
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
23
25
  }) {
24
- const { t: r } = N(), t = C(o), [
25
- E,
26
- f,
27
- p
28
- ] = (n ? r("insightTile.partnerCount", {
29
- count: n,
30
- total: i,
31
- defaultValue: `${n} |of| ${i}`
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}`
32
30
  }) : "").split("|");
33
31
  return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
34
32
  "div",
35
33
  {
36
- className: h(
37
- I({ kind: s, horizontal: a }),
38
- g
39
- ),
40
- ...o
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
41
42
  },
42
- /* @__PURE__ */ e.createElement("div", { className: b({ horizontal: a }), ...t("body") }, c ? /* @__PURE__ */ e.createElement(u, { icon: `${c}`, ...t("icon") }) : /* @__PURE__ */ e.createElement(u, { icon: `${D[s]}`, ...t("icon") }), d && /* @__PURE__ */ e.createElement("div", { className: T({ kind: s, horizontal: a }), ...t("metric") }, d), m && /* @__PURE__ */ e.createElement("div", { className: y({ horizontal: a }), ...t("description") }, /* @__PURE__ */ e.createElement(
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(
43
44
  "div",
44
45
  {
45
- className: w({ horizontal: a }),
46
+ className: P({ horizontal: a }),
46
47
  style: { "-webkit-box-orient": "vertical" },
47
- ...t("title")
48
+ ...r("title")
48
49
  },
49
- m
50
- ), /* @__PURE__ */ e.createElement("div", { className: x({ hasDetail: !!l }), ...t("detail") }, l))),
51
- n && /* @__PURE__ */ e.createElement("div", { className: $({ kind: s, horizontal: a }), ...t("partner-count") }, n === i ? /* @__PURE__ */ e.createElement("div", null, r("insightTile.all", { defaultValue: "ALL" })) : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", null, E), /* @__PURE__ */ e.createElement("div", null, f), /* @__PURE__ */ e.createElement("div", null, p)), /* @__PURE__ */ e.createElement("div", { className: A({ horizontal: a }) }, r("insightTile.partners", { defaultValue: "PARTNERS" })))
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
+ )
52
69
  ));
53
70
  }
54
- v.set(L, {
71
+ I.set(V, {
55
72
  name: "InsightCard",
56
73
  props: {
57
74
  horizontal: { type: "boolean", default: "false" },
@@ -60,10 +77,11 @@ v.set(L, {
60
77
  title: "string",
61
78
  metric: "number | string",
62
79
  partnerCount: "number",
63
- totalPartners: "number"
80
+ totalPartners: "number",
81
+ onEdit: "() => void"
64
82
  }
65
83
  });
66
84
  export {
67
- L as InsightCard,
68
- D as InsightCardIcons
85
+ V as InsightCard,
86
+ R as InsightCardIcons
69
87
  };
@@ -1,13 +1,15 @@
1
1
  /* empty css */
2
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_53_31__hash_z81y4l0", o = _({ defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l1", variantClassNames: { kind: { general: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l2", error: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l3", success: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l4", warning: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l5", processing: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l6" }, horizontal: { true: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l7", false: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l8" } }, defaultVariants: { kind: "general", horizontal: !1 }, compoundVariants: [] }), r = _({ defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l9", variantClassNames: { horizontal: { true: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4la", false: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lb" } }, defaultVariants: { horizontal: !1 }, compoundVariants: [] }), n = _({ defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4li", variantClassNames: { kind: { general: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lj", error: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lk", success: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4ll", warning: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lm", processing: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4ln" }, horizontal: { true: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lo", false: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lp" } }, defaultVariants: { kind: "general", horizontal: !1 }, compoundVariants: [] }), l = _({ defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lq", variantClassNames: { horizontal: { true: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lr", false: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4ls" } }, defaultVariants: { horizontal: !1 }, compoundVariants: [] }), e = _({ defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lt", variantClassNames: { horizontal: { true: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lu", false: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lv" } }, defaultVariants: { horizontal: !1 }, compoundVariants: [] }), d = _({ defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lw", variantClassNames: { hasDetail: { true: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lx", false: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4ly" } }, defaultVariants: { hasDetail: !1 }, compoundVariants: [] }), h = _({ defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lz", variantClassNames: { kind: { general: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l10", error: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l11", success: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l12", warning: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l13", processing: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l14" }, horizontal: { true: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l15", false: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l16" } }, defaultVariants: { kind: "general", horizontal: !1 }, compoundVariants: [] }), t = _({ defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l17", variantClassNames: { horizontal: { true: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l18", false: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l19" } }, defaultVariants: { horizontal: !1 }, compoundVariants: [] });
3
+ var i = "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l0", o = _({ defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l1", variantClassNames: { kind: { general: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l2", error: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l3", success: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l4", warning: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l5", processing: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l6" }, horizontal: { true: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l7", false: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l8" } }, defaultVariants: { kind: "general", horizontal: !1 }, compoundVariants: [] }), r = _({ defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l9", variantClassNames: { horizontal: { true: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4la", false: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4lb" } }, defaultVariants: { horizontal: !1 }, compoundVariants: [] }), n = _({ defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4li", variantClassNames: { horizontal: { true: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4lj", false: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4lk" } }, defaultVariants: { horizontal: !1 }, compoundVariants: [] }), l = _({ defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4ll", variantClassNames: { horizontal: { true: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4lm", false: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4ln" } }, defaultVariants: { horizontal: !1 }, compoundVariants: [] }), e = _({ defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4lo", variantClassNames: { horizontal: { true: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4lp", false: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4lq" } }, defaultVariants: { horizontal: !1 }, compoundVariants: [] }), d = _({ defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4lr", variantClassNames: { hasDetail: { true: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4ls", false: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4lt" } }, defaultVariants: { hasDetail: !1 }, compoundVariants: [] }), h = _({ defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4lu", variantClassNames: { kind: { general: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4lv", error: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4lw", success: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4lx", warning: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4ly", processing: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4lz" }, horizontal: { true: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l10", false: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l11" }, editable: { true: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l12", false: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l13" } }, defaultVariants: { kind: "general", horizontal: !1, editable: !1 }, compoundVariants: [[{ kind: "general", editable: !0 }, "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l14"], [{ kind: "error", editable: !0 }, "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l15"], [{ kind: "success", editable: !0 }, "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l16"], [{ kind: "warning", editable: !0 }, "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l17"], [{ kind: "processing", editable: !0 }, "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l18"]] }), t = _({ defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l19", variantClassNames: { horizontal: { true: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l1a", false: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l1b" } }, defaultVariants: { horizontal: !1 }, compoundVariants: [] }), c = _({ defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l1c", variantClassNames: { horizontal: { true: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l1d", false: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l1e" } }, defaultVariants: { horizontal: !1 }, compoundVariants: [] }), g = _({ defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l1f", variantClassNames: { horizontal: { true: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l1g", false: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l1h" } }, defaultVariants: { horizontal: !1 }, compoundVariants: [] });
4
4
  export {
5
5
  o as insightCard,
6
6
  r as insightCardBody,
7
7
  e as insightCardDescription,
8
8
  d as insightCardDetail,
9
+ g as insightCardEditIcon,
9
10
  n as insightCardMetricCount,
10
11
  h as insightCardPartnerCount,
12
+ c as insightCardPartnerCountContent,
11
13
  t as insightCardPartnersText,
12
14
  l as insightCardTitle,
13
15
  i as insightCardWrapper
@@ -1,110 +1,127 @@
1
- import { Metadata as u, useChildTestIdAttrBuilder as z, cl as k, Icon as g } from "@sps-woodland/core";
2
- import * as r from "react";
3
- import { useWoodlandLanguage as C } from "@spscommerce/i18n";
4
- function N(_, e, a) {
5
- return e in _ ? Object.defineProperty(_, e, {
1
+ import { Metadata as w, useChildTestIdAttrBuilder as b, cl as N, Icon as m } from "@sps-woodland/core";
2
+ import * as s from "react";
3
+ import { useWoodlandLanguage as V } from "@spscommerce/i18n";
4
+ function O(_, r, a) {
5
+ return r in _ ? Object.defineProperty(_, r, {
6
6
  value: a,
7
7
  enumerable: !0,
8
8
  configurable: !0,
9
9
  writable: !0
10
- }) : _[e] = a, _;
10
+ }) : _[r] = a, _;
11
11
  }
12
- function f(_, e) {
12
+ function y(_, r) {
13
13
  var a = Object.keys(_);
14
14
  if (Object.getOwnPropertySymbols) {
15
- var s = Object.getOwnPropertySymbols(_);
16
- e && (s = s.filter(function(n) {
17
- return Object.getOwnPropertyDescriptor(_, n).enumerable;
18
- })), a.push.apply(a, s);
15
+ var e = Object.getOwnPropertySymbols(_);
16
+ r && (e = e.filter(function(i) {
17
+ return Object.getOwnPropertyDescriptor(_, i).enumerable;
18
+ })), a.push.apply(a, e);
19
19
  }
20
20
  return a;
21
21
  }
22
- function m(_) {
23
- for (var e = 1; e < arguments.length; e++) {
24
- var a = arguments[e] != null ? arguments[e] : {};
25
- e % 2 ? f(Object(a), !0).forEach(function(s) {
26
- N(_, s, a[s]);
27
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(_, Object.getOwnPropertyDescriptors(a)) : f(Object(a)).forEach(function(s) {
28
- Object.defineProperty(_, s, Object.getOwnPropertyDescriptor(a, s));
22
+ function v(_) {
23
+ for (var r = 1; r < arguments.length; r++) {
24
+ var a = arguments[r] != null ? arguments[r] : {};
25
+ r % 2 ? y(Object(a), !0).forEach(function(e) {
26
+ O(_, e, a[e]);
27
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(_, Object.getOwnPropertyDescriptors(a)) : y(Object(a)).forEach(function(e) {
28
+ Object.defineProperty(_, e, Object.getOwnPropertyDescriptor(a, e));
29
29
  });
30
30
  }
31
31
  return _;
32
32
  }
33
- var b = (_, e, a) => {
34
- for (var s of Object.keys(_)) {
35
- var n;
36
- if (_[s] !== ((n = e[s]) !== null && n !== void 0 ? n : a[s]))
33
+ var E = (_, r, a) => {
34
+ for (var e of Object.keys(_)) {
35
+ var i;
36
+ if (_[e] !== ((i = r[e]) !== null && i !== void 0 ? i : a[e]))
37
37
  return !1;
38
38
  }
39
39
  return !0;
40
- }, t = (_) => (e) => {
41
- var a = _.defaultClassName, s = m(m({}, _.defaultVariants), e);
42
- for (var n in s) {
43
- var o, c = (o = s[n]) !== null && o !== void 0 ? o : _.defaultVariants[n];
44
- if (c != null) {
45
- var i = c;
46
- typeof i == "boolean" && (i = i === !0 ? "true" : "false");
47
- var d = (
40
+ }, o = (_) => (r) => {
41
+ var a = _.defaultClassName, e = v(v({}, _.defaultVariants), r);
42
+ for (var i in e) {
43
+ var c, g = (c = e[i]) !== null && c !== void 0 ? c : _.defaultVariants[i];
44
+ if (g != null) {
45
+ var l = g;
46
+ typeof l == "boolean" && (l = l === !0 ? "true" : "false");
47
+ var h = (
48
48
  // @ts-expect-error
49
- _.variantClassNames[n][i]
49
+ _.variantClassNames[i][l]
50
50
  );
51
- d && (a += " " + d);
51
+ h && (a += " " + h);
52
52
  }
53
53
  }
54
- for (var [p, h] of _.compoundVariants)
55
- b(p, s, _.defaultVariants) && (a += " " + h);
54
+ for (var [t, p] of _.compoundVariants)
55
+ E(t, e, _.defaultVariants) && (a += " " + p);
56
56
  return a;
57
- }, V = "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l0", E = t({ defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l1", variantClassNames: { kind: { general: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l2", error: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l3", success: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l4", warning: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l5", processing: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l6" }, horizontal: { true: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l7", false: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l8" } }, defaultVariants: { kind: "general", horizontal: !1 }, compoundVariants: [] }), O = t({ defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l9", variantClassNames: { horizontal: { true: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4la", false: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lb" } }, defaultVariants: { horizontal: !1 }, compoundVariants: [] }), P = t({ defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4li", variantClassNames: { kind: { general: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lj", error: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lk", success: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4ll", warning: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lm", processing: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4ln" }, horizontal: { true: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lo", false: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lp" } }, defaultVariants: { kind: "general", horizontal: !1 }, compoundVariants: [] }), j = t({ defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lq", variantClassNames: { horizontal: { true: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lr", false: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4ls" } }, defaultVariants: { horizontal: !1 }, compoundVariants: [] }), I = t({ defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lt", variantClassNames: { horizontal: { true: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lu", false: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lv" } }, defaultVariants: { horizontal: !1 }, compoundVariants: [] }), D = t({ defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lw", variantClassNames: { hasDetail: { true: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lx", false: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4ly" } }, defaultVariants: { hasDetail: !1 }, compoundVariants: [] }), T = t({ defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lz", variantClassNames: { kind: { general: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l10", error: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l11", success: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l12", warning: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l13", processing: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l14" }, horizontal: { true: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l15", false: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l16" } }, defaultVariants: { kind: "general", horizontal: !1 }, compoundVariants: [] }), x = t({ defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l17", variantClassNames: { horizontal: { true: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l18", false: "pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l19" } }, defaultVariants: { horizontal: !1 }, compoundVariants: [] });
58
- const S = Object.freeze({
57
+ }, P = "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l0", I = o({ defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l1", variantClassNames: { kind: { general: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l2", error: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l3", success: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l4", warning: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l5", processing: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l6" }, horizontal: { true: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l7", false: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l8" } }, defaultVariants: { kind: "general", horizontal: !1 }, compoundVariants: [] }), D = o({ defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l9", variantClassNames: { horizontal: { true: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4la", false: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4lb" } }, defaultVariants: { horizontal: !1 }, compoundVariants: [] }), j = o({ defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4li", variantClassNames: { horizontal: { true: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4lj", false: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4lk" } }, defaultVariants: { horizontal: !1 }, compoundVariants: [] }), T = o({ defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4ll", variantClassNames: { horizontal: { true: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4lm", false: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4ln" } }, defaultVariants: { horizontal: !1 }, compoundVariants: [] }), x = o({ defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4lo", variantClassNames: { horizontal: { true: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4lp", false: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4lq" } }, defaultVariants: { horizontal: !1 }, compoundVariants: [] }), S = o({ defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4lr", variantClassNames: { hasDetail: { true: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4ls", false: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4lt" } }, defaultVariants: { hasDetail: !1 }, compoundVariants: [] }), A = o({ defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4lu", variantClassNames: { kind: { general: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4lv", error: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4lw", success: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4lx", warning: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4ly", processing: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4lz" }, horizontal: { true: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l10", false: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l11" }, editable: { true: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l12", false: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l13" } }, defaultVariants: { kind: "general", horizontal: !1, editable: !1 }, compoundVariants: [[{ kind: "general", editable: !0 }, "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l14"], [{ kind: "error", editable: !0 }, "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l15"], [{ kind: "success", editable: !0 }, "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l16"], [{ kind: "warning", editable: !0 }, "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l17"], [{ kind: "processing", editable: !0 }, "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l18"]] }), K = o({ defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l19", variantClassNames: { horizontal: { true: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l1a", false: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l1b" } }, defaultVariants: { horizontal: !1 }, compoundVariants: [] }), R = o({ defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l1c", variantClassNames: { horizontal: { true: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l1d", false: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l1e" } }, defaultVariants: { horizontal: !1 }, compoundVariants: [] }), F = o({ defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l1f", variantClassNames: { horizontal: { true: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l1g", false: "pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l1h" } }, defaultVariants: { horizontal: !1 }, compoundVariants: [] });
58
+ const L = Object.freeze({
59
59
  general: "status-new",
60
60
  success: "status-ok",
61
61
  error: "status-error",
62
62
  warning: "status-warning",
63
63
  processing: "status-in-process"
64
64
  });
65
- function A({
65
+ function B({
66
66
  children: _,
67
- className: e,
67
+ className: r,
68
68
  horizontal: a = !1,
69
- icon: s,
70
- kind: n = "general",
71
- title: o,
72
- metric: c,
73
- partnerCount: i,
74
- totalPartners: d,
75
- ...p
69
+ icon: e,
70
+ kind: i = "general",
71
+ title: c,
72
+ metric: g,
73
+ partnerCount: l,
74
+ totalPartners: h,
75
+ onEdit: t,
76
+ onClick: p,
77
+ ...u
76
78
  }) {
77
- const { t: h } = C(), l = z(p), [
78
- y,
79
- v,
80
- w
81
- ] = (i ? h("insightTile.partnerCount", {
82
- count: i,
83
- total: d,
84
- defaultValue: `${i} |of| ${d}`
79
+ const { t: f } = V(), d = b(u), [z, k, C] = (l ? f("insightTile.partnerCount", {
80
+ count: l,
81
+ total: h,
82
+ defaultValue: `${l} |of| ${h}`
85
83
  }) : "").split("|");
86
- return /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(
84
+ return /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement(
87
85
  "div",
88
86
  {
89
- className: k(
90
- E({ kind: n, horizontal: a }),
91
- e
92
- ),
93
- ...p
87
+ className: N(I({ kind: i, horizontal: a }), r),
88
+ onClick: p,
89
+ tabIndex: p ? 0 : void 0,
90
+ role: p && "button",
91
+ onKeyDown: p ? (n) => {
92
+ (n.key === "Enter" || n.key === " ") && (n.preventDefault(), n.currentTarget.click());
93
+ } : void 0,
94
+ ...u
94
95
  },
95
- /* @__PURE__ */ r.createElement("div", { className: O({ horizontal: a }), ...l("body") }, s ? /* @__PURE__ */ r.createElement(g, { icon: `${s}`, ...l("icon") }) : /* @__PURE__ */ r.createElement(g, { icon: `${S[n]}`, ...l("icon") }), c && /* @__PURE__ */ r.createElement("div", { className: P({ kind: n, horizontal: a }), ...l("metric") }, c), o && /* @__PURE__ */ r.createElement("div", { className: I({ horizontal: a }), ...l("description") }, /* @__PURE__ */ r.createElement(
96
+ /* @__PURE__ */ s.createElement("div", { className: D({ horizontal: a }), ...d("body") }, e ? /* @__PURE__ */ s.createElement(m, { icon: `${e}`, ...d("icon") }) : /* @__PURE__ */ s.createElement(m, { icon: `${L[i]}`, ...d("icon") }), g && /* @__PURE__ */ s.createElement("div", { className: j({ horizontal: a }), ...d("metric") }, g), c && /* @__PURE__ */ s.createElement("div", { className: x({ horizontal: a }), ...d("description") }, /* @__PURE__ */ s.createElement(
96
97
  "div",
97
98
  {
98
- className: j({ horizontal: a }),
99
+ className: T({ horizontal: a }),
99
100
  style: { "-webkit-box-orient": "vertical" },
100
- ...l("title")
101
+ ...d("title")
101
102
  },
102
- o
103
- ), /* @__PURE__ */ r.createElement("div", { className: D({ hasDetail: !!_ }), ...l("detail") }, _))),
104
- i && /* @__PURE__ */ r.createElement("div", { className: T({ kind: n, horizontal: a }), ...l("partner-count") }, i === d ? /* @__PURE__ */ r.createElement("div", null, h("insightTile.all", { defaultValue: "ALL" })) : /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement("div", null, y), /* @__PURE__ */ r.createElement("div", null, v), /* @__PURE__ */ r.createElement("div", null, w)), /* @__PURE__ */ r.createElement("div", { className: x({ horizontal: a }) }, h("insightTile.partners", { defaultValue: "PARTNERS" })))
103
+ c
104
+ ), /* @__PURE__ */ s.createElement("div", { className: S({ hasDetail: !!_ }), ...d("detail") }, _))),
105
+ l && /* @__PURE__ */ s.createElement(
106
+ "div",
107
+ {
108
+ role: t && "button",
109
+ tabIndex: t ? 0 : void 0,
110
+ onClick: t ? (n) => {
111
+ n.stopPropagation(), t();
112
+ } : void 0,
113
+ onKeyDown: t ? (n) => {
114
+ (n.key === "Enter" || n.key === " ") && (n.preventDefault(), n.stopPropagation(), t());
115
+ } : void 0,
116
+ className: A({ kind: i, horizontal: a, editable: !!t }),
117
+ ...d("partner-count")
118
+ },
119
+ /* @__PURE__ */ s.createElement("div", { className: R({ horizontal: a }) }, l === h ? /* @__PURE__ */ s.createElement("div", null, f("insightTile.all", { defaultValue: "ALL" })) : /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement("div", null, z), /* @__PURE__ */ s.createElement("div", null, k), /* @__PURE__ */ s.createElement("div", null, C)), /* @__PURE__ */ s.createElement("div", { className: K({ horizontal: a }) }, f("insightTile.partners", { defaultValue: "PARTNERS" }))),
120
+ t && /* @__PURE__ */ s.createElement(m, { className: F({ horizontal: a }), icon: "pencil" })
121
+ )
105
122
  ));
106
123
  }
107
- u.set(A, {
124
+ w.set(B, {
108
125
  name: "InsightCard",
109
126
  props: {
110
127
  horizontal: { type: "boolean", default: "false" },
@@ -113,18 +130,19 @@ u.set(A, {
113
130
  title: "string",
114
131
  metric: "number | string",
115
132
  partnerCount: "number",
116
- totalPartners: "number"
133
+ totalPartners: "number",
134
+ onEdit: "() => void"
117
135
  }
118
136
  });
119
- function R({
137
+ function M({
120
138
  children: _,
121
- ...e
139
+ ...r
122
140
  }) {
123
- return /* @__PURE__ */ r.createElement("div", { className: V, ...e }, _);
141
+ return /* @__PURE__ */ s.createElement("div", { className: P, ...r }, _);
124
142
  }
125
- u.set(R, { name: "InsightCardSet" });
143
+ w.set(M, { name: "InsightCardSet" });
126
144
  export {
127
- A as InsightCard,
128
- S as InsightCardIcons,
129
- R as InsightCardSet
145
+ B as InsightCard,
146
+ L as InsightCardIcons,
147
+ M as InsightCardSet
130
148
  };
@@ -1 +1 @@
1
- (function(i,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("@sps-woodland/core"),require("react"),require("@spscommerce/i18n")):typeof define=="function"&&define.amd?define(["exports","@sps-woodland/core","react","@spscommerce/i18n"],t):(i=typeof globalThis<"u"?globalThis:i||self,t(i.InsightCard={},i.spsWoodlandCore,i.react,i.spscommerceI18n))})(this,(function(i,t,z,k){"use strict";function C(_){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(_){for(const a in _)if(a!=="default"){const s=Object.getOwnPropertyDescriptor(_,a);Object.defineProperty(e,a,s.get?s:{enumerable:!0,get:()=>_[a]})}}return e.default=_,Object.freeze(e)}const r=C(z);function b(_,e,a){return e in _?Object.defineProperty(_,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):_[e]=a,_}function u(_,e){var a=Object.keys(_);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(_);e&&(s=s.filter(function(n){return Object.getOwnPropertyDescriptor(_,n).enumerable})),a.push.apply(a,s)}return a}function m(_){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?arguments[e]:{};e%2?u(Object(a),!0).forEach(function(s){b(_,s,a[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_,Object.getOwnPropertyDescriptors(a)):u(Object(a)).forEach(function(s){Object.defineProperty(_,s,Object.getOwnPropertyDescriptor(a,s))})}return _}var N=(_,e,a)=>{for(var s of Object.keys(_)){var n;if(_[s]!==((n=e[s])!==null&&n!==void 0?n:a[s]))return!1}return!0},o=_=>e=>{var a=_.defaultClassName,s=m(m({},_.defaultVariants),e);for(var n in s){var c,p=(c=s[n])!==null&&c!==void 0?c:_.defaultVariants[n];if(p!=null){var l=p;typeof l=="boolean"&&(l=l===!0?"true":"false");var h=_.variantClassNames[n][l];h&&(a+=" "+h)}}for(var[g,f]of _.compoundVariants)N(g,s,_.defaultVariants)&&(a+=" "+f);return a},O="pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l0",V=o({defaultClassName:"pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l1",variantClassNames:{kind:{general:"pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l2",error:"pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l3",success:"pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l4",warning:"pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l5",processing:"pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l6"},horizontal:{true:"pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l7",false:"pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l8"}},defaultVariants:{kind:"general",horizontal:!1},compoundVariants:[]}),E=o({defaultClassName:"pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l9",variantClassNames:{horizontal:{true:"pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4la",false:"pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lb"}},defaultVariants:{horizontal:!1},compoundVariants:[]}),I=o({defaultClassName:"pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4li",variantClassNames:{kind:{general:"pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lj",error:"pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lk",success:"pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4ll",warning:"pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lm",processing:"pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4ln"},horizontal:{true:"pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lo",false:"pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lp"}},defaultVariants:{kind:"general",horizontal:!1},compoundVariants:[]}),j=o({defaultClassName:"pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lq",variantClassNames:{horizontal:{true:"pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lr",false:"pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4ls"}},defaultVariants:{horizontal:!1},compoundVariants:[]}),P=o({defaultClassName:"pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lt",variantClassNames:{horizontal:{true:"pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lu",false:"pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lv"}},defaultVariants:{horizontal:!1},compoundVariants:[]}),T=o({defaultClassName:"pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lw",variantClassNames:{hasDetail:{true:"pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lx",false:"pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4ly"}},defaultVariants:{hasDetail:!1},compoundVariants:[]}),D=o({defaultClassName:"pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lz",variantClassNames:{kind:{general:"pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l10",error:"pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l11",success:"pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l12",warning:"pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l13",processing:"pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l14"},horizontal:{true:"pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l15",false:"pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l16"}},defaultVariants:{kind:"general",horizontal:!1},compoundVariants:[]}),S=o({defaultClassName:"pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l17",variantClassNames:{horizontal:{true:"pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l18",false:"pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l19"}},defaultVariants:{horizontal:!1},compoundVariants:[]});const y=Object.freeze({general:"status-new",success:"status-ok",error:"status-error",warning:"status-warning",processing:"status-in-process"});function v({children:_,className:e,horizontal:a=!1,icon:s,kind:n="general",title:c,metric:p,partnerCount:l,totalPartners:h,...g}){const{t:f}=k.useWoodlandLanguage(),d=t.useChildTestIdAttrBuilder(g),[M,q,x]=(l?f("insightTile.partnerCount",{count:l,total:h,defaultValue:`${l} |of| ${h}`}):"").split("|");return r.createElement(r.Fragment,null,r.createElement("div",{className:t.cl(V({kind:n,horizontal:a}),e),...g},r.createElement("div",{className:E({horizontal:a}),...d("body")},s?r.createElement(t.Icon,{icon:`${s}`,...d("icon")}):r.createElement(t.Icon,{icon:`${y[n]}`,...d("icon")}),p&&r.createElement("div",{className:I({kind:n,horizontal:a}),...d("metric")},p),c&&r.createElement("div",{className:P({horizontal:a}),...d("description")},r.createElement("div",{className:j({horizontal:a}),style:{"-webkit-box-orient":"vertical"},...d("title")},c),r.createElement("div",{className:T({hasDetail:!!_}),...d("detail")},_))),l&&r.createElement("div",{className:D({kind:n,horizontal:a}),...d("partner-count")},l===h?r.createElement("div",null,f("insightTile.all",{defaultValue:"ALL"})):r.createElement(r.Fragment,null,r.createElement("div",null,M),r.createElement("div",null,q),r.createElement("div",null,x)),r.createElement("div",{className:S({horizontal:a})},f("insightTile.partners",{defaultValue:"PARTNERS"})))))}t.Metadata.set(v,{name:"InsightCard",props:{horizontal:{type:"boolean",default:"false"},icon:"IconName",kind:{type:"InsightCardKind",default:'"general"'},title:"string",metric:"number | string",partnerCount:"number",totalPartners:"number"}});function w({children:_,...e}){return r.createElement("div",{className:O,...e},_)}t.Metadata.set(w,{name:"InsightCardSet"}),i.InsightCard=v,i.InsightCardIcons=y,i.InsightCardSet=w,Object.defineProperty(i,Symbol.toStringTag,{value:"Module"})}));
1
+ (function(i,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("@sps-woodland/core"),require("react"),require("@spscommerce/i18n")):typeof define=="function"&&define.amd?define(["exports","@sps-woodland/core","react","@spscommerce/i18n"],t):(i=typeof globalThis<"u"?globalThis:i||self,t(i.InsightCard={},i.spsWoodlandCore,i.react,i.spscommerceI18n))})(this,(function(i,t,b,N){"use strict";function V(_){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(_){for(const a in _)if(a!=="default"){const s=Object.getOwnPropertyDescriptor(_,a);Object.defineProperty(e,a,s.get?s:{enumerable:!0,get:()=>_[a]})}}return e.default=_,Object.freeze(e)}const r=V(b);function O(_,e,a){return e in _?Object.defineProperty(_,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):_[e]=a,_}function y(_,e){var a=Object.keys(_);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(_);e&&(s=s.filter(function(n){return Object.getOwnPropertyDescriptor(_,n).enumerable})),a.push.apply(a,s)}return a}function v(_){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?arguments[e]:{};e%2?y(Object(a),!0).forEach(function(s){O(_,s,a[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_,Object.getOwnPropertyDescriptors(a)):y(Object(a)).forEach(function(s){Object.defineProperty(_,s,Object.getOwnPropertyDescriptor(a,s))})}return _}var I=(_,e,a)=>{for(var s of Object.keys(_)){var n;if(_[s]!==((n=e[s])!==null&&n!==void 0?n:a[s]))return!1}return!0},o=_=>e=>{var a=_.defaultClassName,s=v(v({},_.defaultVariants),e);for(var n in s){var p,u=(p=s[n])!==null&&p!==void 0?p:_.defaultVariants[n];if(u!=null){var d=u;typeof d=="boolean"&&(d=d===!0?"true":"false");var f=_.variantClassNames[n][d];f&&(a+=" "+f)}}for(var[c,g]of _.compoundVariants)I(c,s,_.defaultVariants)&&(a+=" "+g);return a},E="pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l0",P=o({defaultClassName:"pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l1",variantClassNames:{kind:{general:"pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l2",error:"pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l3",success:"pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l4",warning:"pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l5",processing:"pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l6"},horizontal:{true:"pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l7",false:"pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l8"}},defaultVariants:{kind:"general",horizontal:!1},compoundVariants:[]}),j=o({defaultClassName:"pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l9",variantClassNames:{horizontal:{true:"pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4la",false:"pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4lb"}},defaultVariants:{horizontal:!1},compoundVariants:[]}),D=o({defaultClassName:"pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4li",variantClassNames:{horizontal:{true:"pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4lj",false:"pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4lk"}},defaultVariants:{horizontal:!1},compoundVariants:[]}),T=o({defaultClassName:"pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4ll",variantClassNames:{horizontal:{true:"pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4lm",false:"pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4ln"}},defaultVariants:{horizontal:!1},compoundVariants:[]}),S=o({defaultClassName:"pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4lo",variantClassNames:{horizontal:{true:"pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4lp",false:"pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4lq"}},defaultVariants:{horizontal:!1},compoundVariants:[]}),x=o({defaultClassName:"pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4lr",variantClassNames:{hasDetail:{true:"pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4ls",false:"pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4lt"}},defaultVariants:{hasDetail:!1},compoundVariants:[]}),M=o({defaultClassName:"pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4lu",variantClassNames:{kind:{general:"pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4lv",error:"pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4lw",success:"pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4lx",warning:"pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4ly",processing:"pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4lz"},horizontal:{true:"pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l10",false:"pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l11"},editable:{true:"pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l12",false:"pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l13"}},defaultVariants:{kind:"general",horizontal:!1,editable:!1},compoundVariants:[[{kind:"general",editable:!0},"pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l14"],[{kind:"error",editable:!0},"pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l15"],[{kind:"success",editable:!0},"pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l16"],[{kind:"warning",editable:!0},"pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l17"],[{kind:"processing",editable:!0},"pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l18"]]}),q=o({defaultClassName:"pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l19",variantClassNames:{horizontal:{true:"pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l1a",false:"pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l1b"}},defaultVariants:{horizontal:!1},compoundVariants:[]}),A=o({defaultClassName:"pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l1c",variantClassNames:{horizontal:{true:"pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l1d",false:"pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l1e"}},defaultVariants:{horizontal:!1},compoundVariants:[]}),K=o({defaultClassName:"pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l1f",variantClassNames:{horizontal:{true:"pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l1g",false:"pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l1h"}},defaultVariants:{horizontal:!1},compoundVariants:[]});const w=Object.freeze({general:"status-new",success:"status-ok",error:"status-error",warning:"status-warning",processing:"status-in-process"});function z({children:_,className:e,horizontal:a=!1,icon:s,kind:n="general",title:p,metric:u,partnerCount:d,totalPartners:f,onEdit:c,onClick:g,...C}){const{t:m}=N.useWoodlandLanguage(),h=t.useChildTestIdAttrBuilder(C),[R,F,L]=(d?m("insightTile.partnerCount",{count:d,total:f,defaultValue:`${d} |of| ${f}`}):"").split("|");return r.createElement(r.Fragment,null,r.createElement("div",{className:t.cl(P({kind:n,horizontal:a}),e),onClick:g,tabIndex:g?0:void 0,role:g&&"button",onKeyDown:g?l=>{(l.key==="Enter"||l.key===" ")&&(l.preventDefault(),l.currentTarget.click())}:void 0,...C},r.createElement("div",{className:j({horizontal:a}),...h("body")},s?r.createElement(t.Icon,{icon:`${s}`,...h("icon")}):r.createElement(t.Icon,{icon:`${w[n]}`,...h("icon")}),u&&r.createElement("div",{className:D({horizontal:a}),...h("metric")},u),p&&r.createElement("div",{className:S({horizontal:a}),...h("description")},r.createElement("div",{className:T({horizontal:a}),style:{"-webkit-box-orient":"vertical"},...h("title")},p),r.createElement("div",{className:x({hasDetail:!!_}),...h("detail")},_))),d&&r.createElement("div",{role:c&&"button",tabIndex:c?0:void 0,onClick:c?l=>{l.stopPropagation(),c()}:void 0,onKeyDown:c?l=>{(l.key==="Enter"||l.key===" ")&&(l.preventDefault(),l.stopPropagation(),c())}:void 0,className:M({kind:n,horizontal:a,editable:!!c}),...h("partner-count")},r.createElement("div",{className:A({horizontal:a})},d===f?r.createElement("div",null,m("insightTile.all",{defaultValue:"ALL"})):r.createElement(r.Fragment,null,r.createElement("div",null,R),r.createElement("div",null,F),r.createElement("div",null,L)),r.createElement("div",{className:q({horizontal:a})},m("insightTile.partners",{defaultValue:"PARTNERS"}))),c&&r.createElement(t.Icon,{className:K({horizontal:a}),icon:"pencil"}))))}t.Metadata.set(z,{name:"InsightCard",props:{horizontal:{type:"boolean",default:"false"},icon:"IconName",kind:{type:"InsightCardKind",default:'"general"'},title:"string",metric:"number | string",partnerCount:"number",totalPartners:"number",onEdit:"() => void"}});function k({children:_,...e}){return r.createElement("div",{className:E,...e},_)}t.Metadata.set(k,{name:"InsightCardSet"}),i.InsightCard=z,i.InsightCardIcons=w,i.InsightCardSet=k,Object.defineProperty(i,Symbol.toStringTag,{value:"Module"})}));
@@ -1 +1 @@
1
- .pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l0{display:flex;flex-wrap:wrap;margin:-.5rem}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l1{background:#fff;border-width:.0625rem;border-style:solid;border-radius:.25rem;display:block;flex:1 0 calc(20% - 20px);margin:.5rem;min-width:0;padding:.9375rem 1.25rem;text-align:center}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l2{border-color:#007db8;color:#007db8}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l2:hover{background:#007db8}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l3{border-color:#de002e;color:#de002e}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l3:hover{background:#de002e}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l4{border-color:#0b8940;color:#0b8940}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l4:hover{background:#0b8940}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l5{border-color:#e7760b;color:#e7760b}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l5:hover{background:#e7760b}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l6{border-color:#91467f;color:#91467f}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l6:hover{background:#91467f}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l7{display:flex;flex:1 0 calc(50% - 20px);height:5.125rem;max-width:calc(50% - 20px)}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l9{display:block;min-width:0}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4la{align-items:center;display:flex;flex:1;text-align:left}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lc{display:block;font-size:2rem;line-height:2rem}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4ld{color:#007db8}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4le{color:#de002e}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lf{color:#0b8940}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lg{color:#e7760b}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lh{color:#91467f}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4li{font-size:3rem;font-weight:600;line-height:3rem;max-width:100%;word-wrap:break-word}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lj{color:#007db8}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lk{color:#de002e}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4ll{color:#0b8940}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lm{color:#e7760b}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4ln{color:#91467f}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lo{margin-left:.5rem;order:1}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lq{-webkit-box-orient:vertical;-webkit-box-pack:center;align-items:center;color:#1f282c;display:-webkit-box;font-weight:600;min-height:2.125rem;font-size:1rem;line-height:1rem;padding-bottom:.125rem;max-width:100%;word-wrap:break-word}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lr{min-height:1rem;margin-bottom:0}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lu{flex:1;margin-left:.5rem;min-width:0}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lw{color:#4b5356;display:none;height:12px;font-size:.75rem;line-height:.75rem;margin-top:.25rem;text-transform:uppercase;white-space:nowrap}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lx{display:block}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lz{color:#fff;font-weight:600;font-size:.75rem;line-height:1.125rem;margin:.9375rem -1.25rem -.9375rem;padding:.625rem 1.25rem}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l10{background:#007db8}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l11{background:#de002e}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l12{background:#0b8940}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l13{background:#e7760b}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l14{background:#91467f}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l15{display:flex;flex-direction:column;justify-content:center;line-height:.875rem;margin:-.9375rem -1.25rem -.9375rem 1.25rem;padding:1.25rem .625rem;width:3.75rem}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l18{display:none!important}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l9>svg{font-size:2rem;line-height:2rem}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lz>*{display:inline-block}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lz>*:not(:last-child){padding-right:.125rem}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l1:hover{cursor:pointer}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l1:hover>*{color:#fff!important}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l1:hover>.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l9>*{color:#fff!important}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l1:hover>.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l9>.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lt>*{color:#fff!important}.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l1:hover>.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4l9>.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lt>.pkg_sps-woodland_core__family_insight-card__version_8_53_31__hash_z81y4lw>*{color:#fff!important}
1
+ .pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l0{display:flex;flex-wrap:wrap;margin:-.5rem}.pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l1{background:#fff;border-width:.0625rem;border-style:solid;border-radius:.25rem;display:flex;flex-direction:column;flex:1 0 calc(20% - 20px);margin:.5rem;min-width:0;padding:.9375rem 1.25rem;text-align:center}.pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l1:focus{outline-color:#007db8;outline-style:solid;outline-offset:.125rem;outline-width:.125rem;box-shadow:0 0 0 6px #fff}.pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l2{border-color:#007db8;color:#007db8}.pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l2:hover{background:#007db8}.pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l3{border-color:#de002e;color:#de002e}.pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l3:hover{background:#de002e}.pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l4{border-color:#0b8940;color:#0b8940}.pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l4:hover{background:#0b8940}.pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l5{border-color:#e7760b;color:#e7760b}.pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l5:hover{background:#e7760b}.pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l6{border-color:#91467f;color:#91467f}.pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l6:hover{background:#91467f}.pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l7{display:flex;flex-direction:row;flex:1 0 calc(50% - 20px);height:5.125rem;max-width:calc(50% - 20px)}.pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l9{display:block;min-width:0}.pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4la{align-items:center;display:flex;flex:1;text-align:left}.pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4lc{display:block;font-size:2rem;line-height:2rem}.pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4ld{color:#007db8}.pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4le{color:#de002e}.pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4lf{color:#0b8940}.pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4lg{color:#e7760b}.pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4lh{color:#91467f}.pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4li{font-size:3rem;font-weight:600;line-height:3rem;max-width:100%;word-wrap:break-word;color:#000}.pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4lj{margin-left:.5rem;order:1}.pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4ll{-webkit-box-orient:vertical;-webkit-box-pack:center;align-items:center;color:#1f282c;display:-webkit-box;font-weight:600;min-height:2.125rem;font-size:1rem;line-height:1rem;padding-bottom:.125rem;max-width:100%;word-wrap:break-word}.pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4lm{min-height:1rem;margin-bottom:0}.pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4lp{flex:1;margin-left:.5rem;min-width:0}.pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4lr{color:#4b5356;display:none;height:12px;font-size:.75rem;line-height:.75rem;margin-top:.25rem;text-transform:uppercase;white-space:nowrap}.pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4ls{display:block}.pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4lu{color:#fff;font-weight:600;font-size:.75rem;line-height:1.125rem;margin:.9375rem -1.25rem -.9375rem;padding:.625rem 1.25rem;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(auto,1fr);align-items:center}.pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4lv{background:#007db8}.pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4lw{background:#de002e}.pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4lx{background:#0b8940}.pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4ly{background:#e7760b}.pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4lz{background:#91467f}.pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l10{display:flex;flex-direction:column;justify-content:center;align-items:center;line-height:.875rem;margin:-.9375rem -1.25rem -.9375rem 1.25rem;padding:1.25rem .625rem;width:84px}.pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l11{flex-grow:1}.pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l12:focus{outline-color:#007db8;outline-style:solid;outline-offset:.125rem;outline-width:.125rem;box-shadow:0 0 0 6px #fff}.pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l12:focus-visible{outline-color:#007db8;outline-style:solid;outline-offset:.125rem;outline-width:.125rem;box-shadow:0 0 0 6px #fff}.pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l14:hover{background:#09638d}.pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l15:hover{background:#a30d2d}.pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l16:hover{background:#106b39}.pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l17:hover{background:#aa5e14}.pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l18:hover{background:#6e3c65}.pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l1a{display:none!important}.pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l1c{grid-column:2}.pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l1d{white-space:nowrap}.pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l1g{margin-top:.25rem}.pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l1h{justify-self:end;margin-left:.25rem}.pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l9>svg{font-size:2rem;line-height:2rem}.pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l1c>*{display:inline-block}.pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l1c>*:not(:last-child){padding-right:.125rem}.pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4lu>.pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l1f{grid-column:3;color:#fff}.pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l1:hover{cursor:pointer}.pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l1:hover>*{color:#fff!important}.pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l1:hover>.pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l9>*{color:#fff!important}.pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l1:hover>.pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l9>.pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4lo>*{color:#fff!important}.pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l1:hover>.pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4l9>.pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4lo>.pkg_sps-woodland_core__family_insight-card__version_8_55_0__hash_z81y4lr>*{color:#fff!important}
@@ -53,7 +53,7 @@ var h = (e, t, a) => {
53
53
  for (var [d, v] of e.compoundVariants)
54
54
  h(d, r, e.defaultVariants) && (a += " " + v);
55
55
  return a;
56
- }, w = c({ defaultClassName: "pkg_sps-woodland_core__family_key-value-set__version_8_53_31__hash_1ovxcsc1", variantClassNames: { inline: { true: "pkg_sps-woodland_core__family_key-value-set__version_8_53_31__hash_1ovxcsc2 pkg_sps-woodland_core__family_key-value-set__version_8_53_31__hash_1ovxcsc0" } }, defaultVariants: {}, compoundVariants: [] });
56
+ }, w = c({ defaultClassName: "pkg_sps-woodland_core__family_key-value-set__version_8_55_0__hash_1ovxcsc1", variantClassNames: { inline: { true: "pkg_sps-woodland_core__family_key-value-set__version_8_55_0__hash_1ovxcsc2 pkg_sps-woodland_core__family_key-value-set__version_8_55_0__hash_1ovxcsc0" } }, defaultVariants: {}, compoundVariants: [] });
57
57
  function b({
58
58
  children: e,
59
59
  className: t,
@@ -71,7 +71,7 @@ i.set(b, {
71
71
  inline: { type: "boolean", default: "false" }
72
72
  }
73
73
  });
74
- var V = "pkg_sps-woodland_core__family_key-value-set__version_8_53_31__hash_fm6p690", g = c({ defaultClassName: "pkg_sps-woodland_core__family_key-value-set__version_8_53_31__hash_fm6p691", variantClassNames: { wrap: { normal: "pkg_sps-woodland_core__family_key-value-set__version_8_53_31__hash_fm6p692", truncate: "pkg_sps-woodland_core__family_key-value-set__version_8_53_31__hash_fm6p693" } }, defaultVariants: {}, compoundVariants: [] });
74
+ var V = "pkg_sps-woodland_core__family_key-value-set__version_8_55_0__hash_fm6p690", g = c({ defaultClassName: "pkg_sps-woodland_core__family_key-value-set__version_8_55_0__hash_fm6p691", variantClassNames: { wrap: { normal: "pkg_sps-woodland_core__family_key-value-set__version_8_55_0__hash_fm6p692", truncate: "pkg_sps-woodland_core__family_key-value-set__version_8_55_0__hash_fm6p693" } }, defaultVariants: {}, compoundVariants: [] });
75
75
  function k({
76
76
  children: e,
77
77
  className: t,
@@ -1 +1 @@
1
- (function(s,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("@sps-woodland/core"),require("react")):typeof define=="function"&&define.amd?define(["exports","@sps-woodland/core","react"],o):(s=typeof globalThis<"u"?globalThis:s||self,o(s.KeyValueSet={},s.spsWoodlandCore,s.react))})(this,(function(s,o,v){"use strict";function O(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 _=O(v);function b(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function i(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function p(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?i(Object(t),!0).forEach(function(a){b(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):i(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))})}return e}var h=(e,r,t)=>{for(var a of Object.keys(e)){var n;if(e[a]!==((n=r[a])!==null&&n!==void 0?n:t[a]))return!1}return!0},d=e=>r=>{var t=e.defaultClassName,a=p(p({},e.defaultVariants),r);for(var n in a){var l,u=(l=a[n])!==null&&l!==void 0?l:e.defaultVariants[n];if(u!=null){var f=u;typeof f=="boolean"&&(f=f===!0?"true":"false");var y=e.variantClassNames[n][f];y&&(t+=" "+y)}}for(var[j,S]of e.compoundVariants)h(j,a,e.defaultVariants)&&(t+=" "+S);return t},w=d({defaultClassName:"pkg_sps-woodland_core__family_key-value-set__version_8_53_31__hash_1ovxcsc1",variantClassNames:{inline:{true:"pkg_sps-woodland_core__family_key-value-set__version_8_53_31__hash_1ovxcsc2 pkg_sps-woodland_core__family_key-value-set__version_8_53_31__hash_1ovxcsc0"}},defaultVariants:{},compoundVariants:[]});function c({children:e,className:r,inline:t,...a}){return _.createElement("div",{className:o.cl(w({inline:t}),r),...a},e)}o.Metadata.set(c,{name:"KeyValueSet",props:{inline:{type:"boolean",default:"false"}}});var g="pkg_sps-woodland_core__family_key-value-set__version_8_53_31__hash_fm6p690",V=d({defaultClassName:"pkg_sps-woodland_core__family_key-value-set__version_8_53_31__hash_fm6p691",variantClassNames:{wrap:{normal:"pkg_sps-woodland_core__family_key-value-set__version_8_53_31__hash_fm6p692",truncate:"pkg_sps-woodland_core__family_key-value-set__version_8_53_31__hash_fm6p693"}},defaultVariants:{},compoundVariants:[]});function m({children:e,className:r,itemKey:t,wrap:a,...n}){const l=o.useChildTestIdAttrBuilder(n),u=a==="truncate"&&typeof e=="string"?e:void 0;return _.createElement(_.Fragment,null,_.createElement("span",{className:g,...l("key")},t),_.createElement("span",{className:o.cl(V({wrap:a}),r),title:u,...n},e))}o.Metadata.set(m,{name:"KeyValueSetItem",props:{itemKey:{type:"React.ReactNode | (() => React.ReactNode)",required:!0},wrap:{type:"'normal' | 'truncate'"}}}),s.KeyValueSet=c,s.KeyValueSetItem=m,Object.defineProperty(s,Symbol.toStringTag,{value:"Module"})}));
1
+ (function(s,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("@sps-woodland/core"),require("react")):typeof define=="function"&&define.amd?define(["exports","@sps-woodland/core","react"],o):(s=typeof globalThis<"u"?globalThis:s||self,o(s.KeyValueSet={},s.spsWoodlandCore,s.react))})(this,(function(s,o,v){"use strict";function O(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 _=O(v);function b(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function i(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function p(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?i(Object(t),!0).forEach(function(a){b(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):i(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))})}return e}var h=(e,r,t)=>{for(var a of Object.keys(e)){var n;if(e[a]!==((n=r[a])!==null&&n!==void 0?n:t[a]))return!1}return!0},d=e=>r=>{var t=e.defaultClassName,a=p(p({},e.defaultVariants),r);for(var n in a){var l,u=(l=a[n])!==null&&l!==void 0?l:e.defaultVariants[n];if(u!=null){var f=u;typeof f=="boolean"&&(f=f===!0?"true":"false");var y=e.variantClassNames[n][f];y&&(t+=" "+y)}}for(var[j,S]of e.compoundVariants)h(j,a,e.defaultVariants)&&(t+=" "+S);return t},w=d({defaultClassName:"pkg_sps-woodland_core__family_key-value-set__version_8_55_0__hash_1ovxcsc1",variantClassNames:{inline:{true:"pkg_sps-woodland_core__family_key-value-set__version_8_55_0__hash_1ovxcsc2 pkg_sps-woodland_core__family_key-value-set__version_8_55_0__hash_1ovxcsc0"}},defaultVariants:{},compoundVariants:[]});function c({children:e,className:r,inline:t,...a}){return _.createElement("div",{className:o.cl(w({inline:t}),r),...a},e)}o.Metadata.set(c,{name:"KeyValueSet",props:{inline:{type:"boolean",default:"false"}}});var g="pkg_sps-woodland_core__family_key-value-set__version_8_55_0__hash_fm6p690",V=d({defaultClassName:"pkg_sps-woodland_core__family_key-value-set__version_8_55_0__hash_fm6p691",variantClassNames:{wrap:{normal:"pkg_sps-woodland_core__family_key-value-set__version_8_55_0__hash_fm6p692",truncate:"pkg_sps-woodland_core__family_key-value-set__version_8_55_0__hash_fm6p693"}},defaultVariants:{},compoundVariants:[]});function m({children:e,className:r,itemKey:t,wrap:a,...n}){const l=o.useChildTestIdAttrBuilder(n),u=a==="truncate"&&typeof e=="string"?e:void 0;return _.createElement(_.Fragment,null,_.createElement("span",{className:g,...l("key")},t),_.createElement("span",{className:o.cl(V({wrap:a}),r),title:u,...n},e))}o.Metadata.set(m,{name:"KeyValueSetItem",props:{itemKey:{type:"React.ReactNode | (() => React.ReactNode)",required:!0},wrap:{type:"'normal' | 'truncate'"}}}),s.KeyValueSet=c,s.KeyValueSetItem=m,Object.defineProperty(s,Symbol.toStringTag,{value:"Module"})}));