@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.
- package/lib/action-bar/action-bar/ActionBar.ve.js +1 -1
- package/lib/action-bar/index.js +1 -1
- package/lib/action-bar/index.umd.cjs +1 -1
- package/lib/action-bar/style.css +1 -1
- package/lib/add-to-list/add-to-list/AddToList.ve.js +1 -1
- package/lib/add-to-list/index.js +1 -1
- package/lib/add-to-list/index.umd.cjs +1 -1
- package/lib/add-to-list/style.css +1 -1
- package/lib/buttons/button/Button.ve.js +1 -1
- package/lib/buttons/index.js +1 -1
- package/lib/buttons/index.umd.cjs +1 -1
- package/lib/buttons/style.css +1 -1
- package/lib/cards/card/Card.ve.js +1 -1
- package/lib/cards/card-footer/CardFooter.ve.js +1 -1
- package/lib/cards/card-header/CardHeader.ve.js +1 -1
- package/lib/cards/card-title/CardTitle.ve.js +1 -1
- package/lib/cards/index.js +4 -4
- package/lib/cards/index.umd.cjs +1 -1
- package/lib/cards/style.css +1 -1
- package/lib/components/icon/Icon.ve.js +1 -1
- package/lib/content-row/content-row/ContentRow.ve.js +1 -1
- package/lib/content-row/content-row-col/ContentRowCol.ve.js +1 -1
- package/lib/content-row/index.js +3 -3
- package/lib/content-row/index.umd.cjs +1 -1
- package/lib/content-row/row-list-auto-layout/RowListAutoLayout.ve.js +1 -1
- package/lib/content-row/style.css +1 -1
- package/lib/content-tiles/content-tile/ContentTile.ve.js +1 -1
- package/lib/content-tiles/content-tile-list/ContentTileList.ve.js +1 -1
- package/lib/content-tiles/index.js +2 -2
- package/lib/content-tiles/index.umd.cjs +1 -1
- package/lib/content-tiles/style.css +1 -1
- package/lib/core.css +1 -1
- package/lib/dropdowns/dropdown/Dropdown.ve.js +1 -1
- package/lib/dropdowns/index.js +3 -3
- package/lib/dropdowns/index.umd.cjs +1 -1
- package/lib/dropdowns/option-list/Option.ve.js +1 -1
- package/lib/dropdowns/option-list/OptionList.ve.js +1 -1
- package/lib/dropdowns/style.css +1 -1
- package/lib/feedback-block/FeedbackBlock.ve.js +1 -1
- package/lib/feedback-block/index.js +1 -1
- package/lib/feedback-block/index.umd.cjs +1 -1
- package/lib/feedback-block/style.css +1 -1
- package/lib/file-upload/file-upload/FileUpload.ve.js +1 -1
- package/lib/file-upload/index.js +1 -1
- package/lib/file-upload/index.umd.cjs +1 -1
- package/lib/file-upload/style.css +1 -1
- package/lib/filter-tiles/filter-tile/FilterTile.ve.js +1 -1
- package/lib/filter-tiles/filter-tile-set/FilterTileSet.ve.js +1 -1
- package/lib/filter-tiles/index.js +2 -2
- package/lib/filter-tiles/index.umd.cjs +1 -1
- package/lib/filter-tiles/style.css +1 -1
- package/lib/focused-task/focused-task/FocusedTask.ve.js +1 -1
- package/lib/focused-task/index.js +1 -1
- package/lib/focused-task/index.umd.cjs +1 -1
- package/lib/focused-task/style.css +1 -1
- package/lib/growler/Growler.ve.js +1 -1
- package/lib/growler/Sonner.ve.js +1 -1
- package/lib/growler/index.js +2 -2
- package/lib/growler/index.umd.cjs +1 -1
- package/lib/growler/style.css +1 -1
- package/lib/index.js +8 -8
- package/lib/index.umd.cjs +1 -1
- package/lib/insight-card/InsightCard.css.d.ts +4 -2
- package/lib/insight-card/InsightCard.css.d.ts.map +1 -1
- package/lib/insight-card/InsightCard.d.ts +2 -1
- package/lib/insight-card/InsightCard.d.ts.map +1 -1
- package/lib/insight-card/InsightCard.js +55 -37
- package/lib/insight-card/InsightCard.ve.js +3 -1
- package/lib/insight-card/index.js +92 -74
- package/lib/insight-card/index.umd.cjs +1 -1
- package/lib/insight-card/style.css +1 -1
- package/lib/key-value-set/index.js +2 -2
- package/lib/key-value-set/index.umd.cjs +1 -1
- package/lib/key-value-set/key-value-set/KeyValueSet.ve.js +1 -1
- package/lib/key-value-set/key-value-set-item/KeyValueSetItem.ve.js +1 -1
- package/lib/key-value-set/style.css +1 -1
- package/lib/list-bar/advanced-search/AdvancedSearch.ve.js +1 -1
- package/lib/list-bar/index.js +3 -3
- package/lib/list-bar/index.umd.cjs +1 -1
- package/lib/list-bar/list-bar/ListBar.ve.js +1 -1
- package/lib/list-bar/search-results-bar/SearchResultsBar.ve.js +1 -1
- package/lib/list-bar/style.css +1 -1
- package/lib/matrix/index.js +1 -1
- package/lib/matrix/index.umd.cjs +1 -1
- package/lib/matrix/matrix/Matrix.ve.js +1 -1
- package/lib/matrix/style.css +1 -1
- package/lib/modal/index.js +1 -1
- package/lib/modal/index.umd.cjs +1 -1
- package/lib/modal/modal/Modal.ve.js +1 -1
- package/lib/modal/style.css +1 -1
- package/lib/page-title/index.js +2 -2
- package/lib/page-title/index.umd.cjs +1 -1
- package/lib/page-title/page-subtitle/PageSubtitle.ve.js +1 -1
- package/lib/page-title/page-title/PageTitle.ve.js +1 -1
- package/lib/page-title/style.css +1 -1
- package/lib/photo/index.js +2 -2
- package/lib/photo/index.umd.cjs +1 -1
- package/lib/photo/photo/Photo.ve.js +1 -1
- package/lib/photo/photo-carousel/PhotoCarousel.ve.js +1 -1
- package/lib/photo/style.css +1 -1
- package/lib/product-bar/index.js +3 -3
- package/lib/product-bar/index.umd.cjs +1 -1
- package/lib/product-bar/product-bar/ProductBar.ve.js +1 -1
- package/lib/product-bar/product-bar-overflow-menu/ProductBarOverflowMenu.ve.js +1 -1
- package/lib/product-bar/slack-link/SlackLink.ve.js +1 -1
- package/lib/product-bar/style.css +1 -1
- package/lib/product-bar-vertical/index.js +1 -1
- package/lib/product-bar-vertical/index.umd.cjs +1 -1
- package/lib/product-bar-vertical/product-bar-vertical/ProductBarVertical.ve.js +1 -1
- package/lib/product-bar-vertical/style.css +1 -1
- package/lib/progress-indicators/index.js +1 -1
- package/lib/progress-indicators/index.umd.cjs +1 -1
- package/lib/progress-indicators/progress-bar/ProgressBar.ve.js +1 -1
- package/lib/progress-indicators/progress-bar/progress-bar-step/ProgressBarStep.ve.js +1 -1
- package/lib/progress-indicators/style.css +1 -1
- package/lib/rich-text-editor/index.js +2 -2
- package/lib/rich-text-editor/index.umd.cjs +1 -1
- package/lib/rich-text-editor/rich-text-editor/RTEToolbarButton.ve.js +1 -1
- package/lib/rich-text-editor/rich-text-editor/RichTextEditor.ve.js +1 -1
- package/lib/rich-text-editor/style.css +1 -1
- package/lib/scrollable-container/ScrollableContainer.ve.js +1 -1
- package/lib/scrollable-container/index.js +1 -1
- package/lib/scrollable-container/index.umd.cjs +1 -1
- package/lib/scrollable-container/style.css +1 -1
- package/lib/side-nav/index.js +1 -1
- package/lib/side-nav/index.umd.cjs +1 -1
- package/lib/side-nav/side-nav/SideNav.ve.js +1 -1
- package/lib/side-nav/style.css +1 -1
- package/lib/sorting-header/caret/caret.ve.js +1 -1
- package/lib/sorting-header/index.js +2 -2
- package/lib/sorting-header/index.umd.cjs +1 -1
- package/lib/sorting-header/sorting-header/SortingHeader.ve.js +1 -1
- package/lib/sorting-header/sorting-header-cell/SortingHeaderCell.ve.js +1 -1
- package/lib/sorting-header/style.css +1 -1
- package/lib/style.css +1 -1
- package/lib/tabs/index.js +2 -2
- package/lib/tabs/index.umd.cjs +1 -1
- package/lib/tabs/style.css +1 -1
- package/lib/tabs/tab/Tab.ve.js +1 -1
- package/lib/tabs/tabs/Tabs.ve.js +1 -1
- package/lib/tags/clickable-tag/ClickableTag.ve.js +1 -1
- package/lib/tags/index.js +3 -3
- package/lib/tags/index.umd.cjs +1 -1
- package/lib/tags/split-tag/SplitTag.ve.js +1 -1
- package/lib/tags/style.css +1 -1
- package/lib/tags/tag/Tag.ve.js +1 -1
- package/lib/zero-state/ZeroState.ve.js +1 -1
- package/lib/zero-state/index.js +1 -1
- package/lib/zero-state/index.umd.cjs +1 -1
- package/lib/zero-state/style.css +1 -1
- 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, "
|
|
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,
|
|
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":"
|
|
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
|
|
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
|
|
4
|
-
import { insightCard as
|
|
5
|
-
const
|
|
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
|
|
13
|
-
children:
|
|
14
|
-
className:
|
|
12
|
+
function V({
|
|
13
|
+
children: m,
|
|
14
|
+
className: f,
|
|
15
15
|
horizontal: a = !1,
|
|
16
|
-
icon:
|
|
17
|
-
kind:
|
|
18
|
-
title:
|
|
19
|
-
metric:
|
|
20
|
-
partnerCount:
|
|
21
|
-
totalPartners:
|
|
22
|
-
|
|
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:
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
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
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
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:
|
|
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:
|
|
46
|
+
className: P({ horizontal: a }),
|
|
46
47
|
style: { "-webkit-box-orient": "vertical" },
|
|
47
|
-
...
|
|
48
|
+
...r("title")
|
|
48
49
|
},
|
|
49
|
-
|
|
50
|
-
), /* @__PURE__ */ e.createElement("div", { className:
|
|
51
|
-
|
|
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
|
-
|
|
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
|
-
|
|
68
|
-
|
|
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-
|
|
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
|
|
2
|
-
import * as
|
|
3
|
-
import { useWoodlandLanguage as
|
|
4
|
-
function
|
|
5
|
-
return
|
|
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
|
-
}) : _[
|
|
10
|
+
}) : _[r] = a, _;
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function y(_, r) {
|
|
13
13
|
var a = Object.keys(_);
|
|
14
14
|
if (Object.getOwnPropertySymbols) {
|
|
15
|
-
var
|
|
16
|
-
|
|
17
|
-
return Object.getOwnPropertyDescriptor(_,
|
|
18
|
-
})), a.push.apply(a,
|
|
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
|
|
23
|
-
for (var
|
|
24
|
-
var a = arguments[
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(_, Object.getOwnPropertyDescriptors(a)) :
|
|
28
|
-
Object.defineProperty(_,
|
|
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
|
|
34
|
-
for (var
|
|
35
|
-
var
|
|
36
|
-
if (_[
|
|
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
|
-
},
|
|
41
|
-
var a = _.defaultClassName,
|
|
42
|
-
for (var
|
|
43
|
-
var
|
|
44
|
-
if (
|
|
45
|
-
var
|
|
46
|
-
typeof
|
|
47
|
-
var
|
|
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[
|
|
49
|
+
_.variantClassNames[i][l]
|
|
50
50
|
);
|
|
51
|
-
|
|
51
|
+
h && (a += " " + h);
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
-
for (var [
|
|
55
|
-
|
|
54
|
+
for (var [t, p] of _.compoundVariants)
|
|
55
|
+
E(t, e, _.defaultVariants) && (a += " " + p);
|
|
56
56
|
return a;
|
|
57
|
-
},
|
|
58
|
-
const
|
|
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
|
|
65
|
+
function B({
|
|
66
66
|
children: _,
|
|
67
|
-
className:
|
|
67
|
+
className: r,
|
|
68
68
|
horizontal: a = !1,
|
|
69
|
-
icon:
|
|
70
|
-
kind:
|
|
71
|
-
title:
|
|
72
|
-
metric:
|
|
73
|
-
partnerCount:
|
|
74
|
-
totalPartners:
|
|
75
|
-
|
|
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:
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
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__ */
|
|
84
|
+
return /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement(
|
|
87
85
|
"div",
|
|
88
86
|
{
|
|
89
|
-
className:
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
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__ */
|
|
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:
|
|
99
|
+
className: T({ horizontal: a }),
|
|
99
100
|
style: { "-webkit-box-orient": "vertical" },
|
|
100
|
-
...
|
|
101
|
+
...d("title")
|
|
101
102
|
},
|
|
102
|
-
|
|
103
|
-
), /* @__PURE__ */
|
|
104
|
-
|
|
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
|
-
|
|
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
|
|
137
|
+
function M({
|
|
120
138
|
children: _,
|
|
121
|
-
...
|
|
139
|
+
...r
|
|
122
140
|
}) {
|
|
123
|
-
return /* @__PURE__ */
|
|
141
|
+
return /* @__PURE__ */ s.createElement("div", { className: P, ...r }, _);
|
|
124
142
|
}
|
|
125
|
-
|
|
143
|
+
w.set(M, { name: "InsightCardSet" });
|
|
126
144
|
export {
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
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,
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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"})}));
|