@sps-woodland/core 8.56.2 → 8.56.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/action-bar/action-bar/ActionBar.js +44 -59
- package/lib/action-bar/action-bar/ActionBar.ve.js +4 -11
- package/lib/action-bar/action-bar-additional-content/ActionBarAdditionalContent.js +14 -22
- package/lib/action-bar/index.js +54 -74
- package/lib/action-bar/index.umd.cjs +1 -1
- package/lib/action-bar/style.css +2 -1
- package/lib/add-to-list/add-to-list/AddToList.js +220 -302
- package/lib/add-to-list/add-to-list/AddToList.ve.js +79 -24
- package/lib/add-to-list/add-to-list/ItemsList.js +42 -67
- package/lib/add-to-list/add-to-list/ListItem.js +24 -50
- package/lib/add-to-list/index.js +393 -453
- package/lib/add-to-list/index.umd.cjs +1 -1
- package/lib/add-to-list/style.css +2 -1
- package/lib/buttons/button/Button.js +95 -121
- package/lib/buttons/button/Button.ve.js +150 -9
- package/lib/buttons/index.js +281 -171
- package/lib/buttons/index.umd.cjs +1 -1
- package/lib/buttons/style.css +2 -1
- package/lib/cards/card/Card.js +19 -27
- package/lib/cards/card/Card.ve.js +4 -4
- package/lib/cards/card-footer/CardFooter.js +12 -13
- package/lib/cards/card-footer/CardFooter.ve.js +4 -4
- package/lib/cards/card-header/CardHeader.js +12 -13
- package/lib/cards/card-header/CardHeader.ve.js +4 -4
- package/lib/cards/card-title/CardTitle.js +11 -12
- package/lib/cards/card-title/CardTitle.ve.js +4 -4
- package/lib/cards/index.js +52 -52
- package/lib/cards/index.umd.cjs +1 -1
- package/lib/cards/style.css +2 -1
- package/lib/column-manager/column-manager/ColumnManager.js +95 -112
- package/lib/column-manager/column-manager/useColumnManager.js +59 -48
- package/lib/column-manager/index.js +2 -5
- package/lib/components/icon/Icon.ve.js +15 -5
- package/lib/components/icon/icons/sprite.svg.js +4 -4
- package/lib/content-row/content-row/ContentRow.js +146 -173
- package/lib/content-row/content-row/ContentRow.ve.js +105 -18
- package/lib/content-row/content-row-col/ContentRowCol.js +37 -48
- package/lib/content-row/content-row-col/ContentRowCol.ve.js +49 -6
- package/lib/content-row/content-row-expansion/ContentRowExpansion.js +16 -24
- package/lib/content-row/index.js +407 -318
- package/lib/content-row/index.umd.cjs +1 -1
- package/lib/content-row/row-list-auto-layout/RowListAutoLayout.js +24 -39
- package/lib/content-row/row-list-auto-layout/RowListAutoLayout.ve.js +13 -5
- package/lib/content-row/style.css +2 -1
- package/lib/content-tiles/content-tile/ContentTile.js +71 -60
- package/lib/content-tiles/content-tile/ContentTile.ve.js +36 -14
- package/lib/content-tiles/content-tile-list/ContentTileList.js +12 -13
- package/lib/content-tiles/content-tile-list/ContentTileList.ve.js +4 -5
- package/lib/content-tiles/index.js +156 -118
- package/lib/content-tiles/index.umd.cjs +1 -1
- package/lib/content-tiles/style.css +2 -1
- package/lib/core.css +2 -1
- package/lib/dropdowns/dropdown/Dropdown.js +56 -68
- package/lib/dropdowns/dropdown/Dropdown.ve.js +37 -8
- package/lib/dropdowns/index.js +171 -171
- package/lib/dropdowns/index.umd.cjs +1 -1
- package/lib/dropdowns/option-list/Option.js +14 -18
- package/lib/dropdowns/option-list/Option.ve.js +4 -5
- package/lib/dropdowns/option-list/OptionList.js +28 -44
- package/lib/dropdowns/option-list/OptionList.ve.js +4 -5
- package/lib/dropdowns/style.css +2 -1
- package/lib/editable-table/EditableTable.js +68 -85
- package/lib/editable-table/index.js +1 -4
- package/lib/feedback-block/FeedbackBlock.js +40 -35
- package/lib/feedback-block/FeedbackBlock.ve.js +56 -7
- package/lib/feedback-block/index.js +132 -85
- package/lib/feedback-block/index.umd.cjs +1 -1
- package/lib/feedback-block/style.css +2 -1
- package/lib/file-upload/file-upload/FileUpload.js +164 -202
- package/lib/file-upload/file-upload/FileUpload.ve.js +84 -18
- package/lib/file-upload/file-upload/mime-type.enum.js +106 -106
- package/lib/file-upload/index.js +390 -353
- package/lib/file-upload/index.umd.cjs +1 -1
- package/lib/file-upload/style.css +2 -1
- package/lib/filter-tiles/filter-tile/FilterTile.js +41 -46
- package/lib/filter-tiles/filter-tile/FilterTile.ve.js +51 -9
- package/lib/filter-tiles/filter-tile-set/FilterTileSet.js +12 -15
- package/lib/filter-tiles/filter-tile-set/FilterTileSet.ve.js +4 -4
- package/lib/filter-tiles/index.js +142 -107
- package/lib/filter-tiles/index.umd.cjs +1 -1
- package/lib/filter-tiles/style.css +2 -1
- package/lib/focused-task/focused-task/FocusedTask.js +52 -74
- package/lib/focused-task/focused-task/FocusedTask.ve.js +13 -12
- package/lib/focused-task/focused-task/useFocusedTask.js +20 -18
- package/lib/focused-task/focused-task-actions/FocusedTaskActions.js +12 -13
- package/lib/focused-task/index.js +127 -144
- package/lib/focused-task/index.umd.cjs +1 -1
- package/lib/focused-task/style.css +2 -1
- package/lib/growler/Growler.js +78 -90
- package/lib/growler/Growler.ve.js +23 -12
- package/lib/growler/GrowlerListProvider.js +38 -39
- package/lib/growler/Sonner.ve.js +17 -12
- package/lib/growler/index.js +249 -274
- package/lib/growler/index.umd.cjs +1 -1
- package/lib/growler/sonner.js +73 -102
- package/lib/growler/style.css +2 -1
- package/lib/index.js +520 -501
- package/lib/index.umd.cjs +4 -4
- package/lib/insight-card/InsightCard.js +90 -84
- package/lib/insight-card/InsightCard.ve.js +148 -15
- package/lib/insight-card/InsightCardSet.js +12 -12
- package/lib/insight-card/index.js +269 -141
- package/lib/insight-card/index.umd.cjs +1 -1
- package/lib/insight-card/style.css +2 -1
- package/lib/key-value-set/index.js +97 -87
- package/lib/key-value-set/index.umd.cjs +1 -1
- package/lib/key-value-set/key-value-set/KeyValueSet.js +17 -21
- package/lib/key-value-set/key-value-set/KeyValueSet.ve.js +10 -5
- package/lib/key-value-set/key-value-set-item/KeyValueSetItem.js +25 -21
- package/lib/key-value-set/key-value-set-item/KeyValueSetItem.ve.js +13 -6
- package/lib/key-value-set/style.css +2 -1
- package/lib/list-bar/advanced-search/AdvancedSearch.js +51 -54
- package/lib/list-bar/advanced-search/AdvancedSearch.ve.js +30 -8
- package/lib/list-bar/index.js +305 -301
- package/lib/list-bar/index.umd.cjs +1 -1
- package/lib/list-bar/list-bar/InputGroupWrapper.js +10 -19
- package/lib/list-bar/list-bar/ListBar.js +105 -121
- package/lib/list-bar/list-bar/ListBar.ve.js +13 -17
- package/lib/list-bar/list-bar/ListBarSearch.js +20 -21
- package/lib/list-bar/list-bar/ListBarSearchInfo.js +8 -12
- package/lib/list-bar/list-bar/ListBarSortBy.js +28 -38
- package/lib/list-bar/search-results-bar/SearchResultsBar.js +38 -28
- package/lib/list-bar/search-results-bar/SearchResultsBar.ve.js +4 -11
- package/lib/list-bar/style.css +2 -1
- package/lib/matrix/index.js +79 -87
- package/lib/matrix/index.umd.cjs +1 -1
- package/lib/matrix/matrix/Matrix.js +18 -26
- package/lib/matrix/matrix/Matrix.ve.js +4 -7
- package/lib/matrix/matrix-body/MatrixBody.js +10 -13
- package/lib/matrix/matrix-cell/MatrixCell.js +23 -18
- package/lib/matrix/matrix-head/MatrixHead.js +10 -13
- package/lib/matrix/matrix-header/MatrixHeader.js +20 -23
- package/lib/matrix/matrix-row/MatrixRow.js +10 -13
- package/lib/matrix/style.css +2 -1
- package/lib/modal/index.js +197 -187
- package/lib/modal/index.umd.cjs +1 -1
- package/lib/modal/modal/Modal.js +90 -108
- package/lib/modal/modal/Modal.ve.js +43 -13
- package/lib/modal/modal/useModal.js +19 -24
- package/lib/modal/modal-footer/ModalFooter.js +11 -12
- package/lib/modal/style.css +2 -1
- package/lib/node_modules/.pnpm/@vanilla-extract_recipes@0.2.5_@vanilla-extract_css@1.21.3/node_modules/@vanilla-extract/recipes/createRuntimeFn/dist/vanilla-extract-recipes-createRuntimeFn.esm.js +49 -0
- package/lib/node_modules/.pnpm/nanoid@5.1.16/node_modules/nanoid/index.browser.js +8 -10
- package/lib/node_modules/.pnpm/nanoid@5.1.16/node_modules/nanoid/url-alphabet/index.js +4 -4
- package/lib/page-title/heading-level/HeadingLevel.js +8 -12
- package/lib/page-title/index.js +33 -40
- package/lib/page-title/index.umd.cjs +1 -1
- package/lib/page-title/page-subtitle/PageSubtitle.js +13 -18
- package/lib/page-title/page-subtitle/PageSubtitle.ve.js +4 -5
- package/lib/page-title/page-title/PageTitle.js +15 -19
- package/lib/page-title/page-title/PageTitle.ve.js +4 -7
- package/lib/page-title/style.css +2 -1
- package/lib/photo/index.js +174 -177
- package/lib/photo/index.umd.cjs +1 -1
- package/lib/photo/photo/Photo.js +72 -81
- package/lib/photo/photo/Photo.ve.js +21 -7
- package/lib/photo/photo-carousel/PhotoCarousel.js +36 -51
- package/lib/photo/photo-carousel/PhotoCarousel.ve.js +13 -9
- package/lib/photo/style.css +2 -1
- package/lib/product-bar/hooks/usePriorityPlus.js +88 -104
- package/lib/product-bar/index.js +372 -395
- package/lib/product-bar/index.umd.cjs +1 -1
- package/lib/product-bar/product-bar/ProductBar.js +77 -103
- package/lib/product-bar/product-bar/ProductBar.ve.js +46 -15
- package/lib/product-bar/product-bar-name/ProductBarName.js +37 -40
- package/lib/product-bar/product-bar-overflow-menu/ProductBarOverflowMenu.js +48 -70
- package/lib/product-bar/product-bar-overflow-menu/ProductBarOverflowMenu.ve.js +4 -8
- package/lib/product-bar/product-bar-tab/ProductBarTab.js +28 -26
- package/lib/product-bar/slack-link/SlackLink.js +26 -30
- package/lib/product-bar/slack-link/SlackLink.ve.js +4 -5
- package/lib/product-bar/style.css +2 -1
- package/lib/product-bar-vertical/index.js +240 -251
- package/lib/product-bar-vertical/index.umd.cjs +1 -1
- package/lib/product-bar-vertical/product-bar-vertical/ProductBarVertical.js +42 -61
- package/lib/product-bar-vertical/product-bar-vertical/ProductBarVertical.ve.js +53 -23
- package/lib/product-bar-vertical/product-bar-vertical-header/ProductBarVerticalHeader.js +30 -42
- package/lib/product-bar-vertical/product-bar-vertical-item/ProductBarVerticalItem.js +71 -89
- package/lib/product-bar-vertical/product-bar-vertical-section/ProductBarVerticalSection.js +22 -29
- package/lib/product-bar-vertical/style.css +2 -1
- package/lib/progress-indicators/index.js +372 -255
- package/lib/progress-indicators/index.umd.cjs +1 -1
- package/lib/progress-indicators/progress-bar/ProgressBar.js +66 -110
- package/lib/progress-indicators/progress-bar/ProgressBar.ve.js +66 -13
- package/lib/progress-indicators/progress-bar/progress-bar-step/ProgressBarStep.js +34 -54
- package/lib/progress-indicators/progress-bar/progress-bar-step/ProgressBarStep.ve.js +136 -8
- package/lib/progress-indicators/progress-ring/ProgressRing.js +45 -52
- package/lib/progress-indicators/style.css +2 -1
- package/lib/rich-text-editor/index.js +556 -582
- package/lib/rich-text-editor/index.umd.cjs +11 -11
- package/lib/rich-text-editor/rich-text-editor/RTELinkModal.js +29 -33
- package/lib/rich-text-editor/rich-text-editor/RTEToolbarButton.js +23 -37
- package/lib/rich-text-editor/rich-text-editor/RTEToolbarButton.ve.js +13 -6
- package/lib/rich-text-editor/rich-text-editor/RichTextEditor.js +68 -77
- package/lib/rich-text-editor/rich-text-editor/RichTextEditor.ve.js +21 -8
- package/lib/rich-text-editor/rich-text-editor/hooks/useHtmlToMd.js +14 -20
- package/lib/rich-text-editor/rich-text-editor/hooks/useMdToHtml.js +14 -20
- package/lib/rich-text-editor/rich-text-editor/hooks/useRTEContent.js +33 -27
- package/lib/rich-text-editor/rich-text-editor/hooks/useRTEObserver.js +79 -88
- package/lib/rich-text-editor/rich-text-editor/hooks/useRTESelectionListener.js +28 -36
- package/lib/rich-text-editor/rich-text-editor/hooks/useRTEToolbarButtons.js +195 -211
- package/lib/rich-text-editor/rich-text-editor/icons/BOLD.svg.js +4 -4
- package/lib/rich-text-editor/rich-text-editor/icons/INDENT.svg.js +4 -4
- package/lib/rich-text-editor/rich-text-editor/icons/ITALICS.svg.js +4 -4
- package/lib/rich-text-editor/rich-text-editor/icons/LINK.svg.js +4 -4
- package/lib/rich-text-editor/rich-text-editor/icons/ORDERED_LIST.svg.js +4 -4
- package/lib/rich-text-editor/rich-text-editor/icons/OUTDENT.svg.js +4 -4
- package/lib/rich-text-editor/rich-text-editor/icons/REDO.svg.js +4 -4
- package/lib/rich-text-editor/rich-text-editor/icons/UNDO.svg.js +4 -4
- package/lib/rich-text-editor/rich-text-editor/icons/UNLINK.svg.js +4 -4
- package/lib/rich-text-editor/rich-text-editor/icons/UNORDERED_LIST.svg.js +4 -4
- package/lib/rich-text-editor/rich-text-editor/utils/flattenListItemParagraphs.js +12 -12
- package/lib/rich-text-editor/rich-text-editor/utils/removeUnrepresentableBreaks.js +20 -19
- package/lib/rich-text-editor/rich-text-editor/utils/utils.js +11 -15
- package/lib/rich-text-editor/style.css +2 -1
- package/lib/scrollable-container/ScrollableContainer.js +18 -27
- package/lib/scrollable-container/ScrollableContainer.ve.js +4 -4
- package/lib/scrollable-container/index.js +20 -27
- package/lib/scrollable-container/index.umd.cjs +1 -1
- package/lib/scrollable-container/style.css +2 -1
- package/lib/side-nav/index.js +190 -228
- package/lib/side-nav/index.umd.cjs +1 -1
- package/lib/side-nav/side-nav/SideNav.js +43 -60
- package/lib/side-nav/side-nav/SideNav.ve.js +22 -16
- package/lib/side-nav/side-nav/navContext.js +7 -7
- package/lib/side-nav/side-nav-header/SideNavHeader.js +14 -15
- package/lib/side-nav/side-nav-item/SideNavItem.js +68 -94
- package/lib/side-nav/side-nav-section/SideNavSection.js +16 -26
- package/lib/side-nav/style.css +2 -1
- package/lib/sorting-header/caret/caret.ve.js +13 -5
- package/lib/sorting-header/index.js +269 -251
- package/lib/sorting-header/index.umd.cjs +1 -1
- package/lib/sorting-header/sorting-header/SortingHeader.js +110 -124
- package/lib/sorting-header/sorting-header/SortingHeader.ve.js +30 -6
- package/lib/sorting-header/sorting-header-cell/SortingHeaderCell.js +69 -83
- package/lib/sorting-header/sorting-header-cell/SortingHeaderCell.ve.js +21 -7
- package/lib/sorting-header/style.css +2 -1
- package/lib/style.css +2 -1
- package/lib/tabs/index.js +255 -201
- package/lib/tabs/index.umd.cjs +1 -1
- package/lib/tabs/style.css +2 -1
- package/lib/tabs/tab/Tab.js +24 -27
- package/lib/tabs/tab/Tab.ve.js +76 -6
- package/lib/tabs/tab-panel/TabPanel.js +16 -25
- package/lib/tabs/tabs/Tabs.js +101 -112
- package/lib/tabs/tabs/Tabs.ve.js +13 -11
- package/lib/tags/clickable-tag/ClickableTag.js +86 -90
- package/lib/tags/clickable-tag/ClickableTag.ve.js +66 -9
- package/lib/tags/index.js +342 -199
- package/lib/tags/index.umd.cjs +1 -1
- package/lib/tags/split-tag/SplitTag.js +49 -30
- package/lib/tags/split-tag/SplitTag.ve.js +35 -9
- package/lib/tags/style.css +2 -1
- package/lib/tags/tag/Tag.js +42 -38
- package/lib/tags/tag/Tag.ve.js +41 -6
- package/lib/utils/cl.js +5 -5
- package/lib/zero-state/ZeroState.js +36 -29
- package/lib/zero-state/ZeroState.ve.js +29 -11
- package/lib/zero-state/index.js +103 -78
- package/lib/zero-state/index.umd.cjs +1 -1
- package/lib/zero-state/style.css +2 -1
- package/package.json +12 -12
- package/lib/node_modules/.pnpm/@vanilla-extract_recipes@0.2.5_@vanilla-extract_css@1.17.4/node_modules/@vanilla-extract/recipes/createRuntimeFn/dist/vanilla-extract-recipes-createRuntimeFn.esm.js +0 -57
|
@@ -1,148 +1,276 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import * as
|
|
3
|
-
import { useWoodlandLanguage as
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { Icon as e, Metadata as t, cl as n, useChildTestIdAttrBuilder as r } from "@sps-woodland/core";
|
|
2
|
+
import * as i from "react";
|
|
3
|
+
import { useWoodlandLanguage as a } from "@spscommerce/i18n";
|
|
4
|
+
//#region ../../../node_modules/.pnpm/@vanilla-extract+recipes@0.2.5_@vanilla-extract+css@1.21.3/node_modules/@vanilla-extract/recipes/createRuntimeFn/dist/vanilla-extract-recipes-createRuntimeFn.esm.js
|
|
5
|
+
function o(e, t, n) {
|
|
6
|
+
return t in e ? Object.defineProperty(e, t, {
|
|
7
|
+
value: n,
|
|
8
|
+
enumerable: !0,
|
|
9
|
+
configurable: !0,
|
|
10
|
+
writable: !0
|
|
11
|
+
}) : e[t] = n, e;
|
|
11
12
|
}
|
|
12
|
-
function
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
13
|
+
function s(e, t) {
|
|
14
|
+
var n = Object.keys(e);
|
|
15
|
+
if (Object.getOwnPropertySymbols) {
|
|
16
|
+
var r = Object.getOwnPropertySymbols(e);
|
|
17
|
+
t && (r = r.filter(function(t) {
|
|
18
|
+
return Object.getOwnPropertyDescriptor(e, t).enumerable;
|
|
19
|
+
})), n.push.apply(n, r);
|
|
20
|
+
}
|
|
21
|
+
return n;
|
|
21
22
|
}
|
|
22
|
-
function
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
23
|
+
function c(e) {
|
|
24
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
25
|
+
var n = arguments[t] == null ? {} : arguments[t];
|
|
26
|
+
t % 2 ? s(Object(n), !0).forEach(function(t) {
|
|
27
|
+
o(e, t, n[t]);
|
|
28
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : s(Object(n)).forEach(function(t) {
|
|
29
|
+
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
return e;
|
|
32
33
|
}
|
|
33
|
-
var
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
34
|
+
var l = (e, t, n) => {
|
|
35
|
+
for (var r of Object.keys(e)) if (e[r] !== (t[r] ?? n[r])) return !1;
|
|
36
|
+
return !0;
|
|
37
|
+
}, u = (e) => (t) => {
|
|
38
|
+
var n = e.defaultClassName, r = c(c({}, e.defaultVariants), t);
|
|
39
|
+
for (var i in r) {
|
|
40
|
+
var a = r[i] ?? e.defaultVariants[i];
|
|
41
|
+
if (a != null) {
|
|
42
|
+
var o = a;
|
|
43
|
+
typeof o == "boolean" && (o = o === !0 ? "true" : "false");
|
|
44
|
+
var s = e.variantClassNames[i][o];
|
|
45
|
+
s && (n += " " + s);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
for (var [u, d] of e.compoundVariants) l(u, r, e.defaultVariants) && (n += " " + d);
|
|
49
|
+
return n;
|
|
50
|
+
}, d = "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l0", f = u({
|
|
51
|
+
defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l1",
|
|
52
|
+
variantClassNames: {
|
|
53
|
+
kind: {
|
|
54
|
+
general: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l2",
|
|
55
|
+
error: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l3",
|
|
56
|
+
success: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l4",
|
|
57
|
+
warning: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l5",
|
|
58
|
+
processing: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l6"
|
|
59
|
+
},
|
|
60
|
+
horizontal: {
|
|
61
|
+
true: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l7",
|
|
62
|
+
false: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l8"
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
defaultVariants: {
|
|
66
|
+
kind: "general",
|
|
67
|
+
horizontal: !1
|
|
68
|
+
},
|
|
69
|
+
compoundVariants: []
|
|
70
|
+
}), p = u({
|
|
71
|
+
defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l9",
|
|
72
|
+
variantClassNames: { horizontal: {
|
|
73
|
+
true: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4la",
|
|
74
|
+
false: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4lb"
|
|
75
|
+
} },
|
|
76
|
+
defaultVariants: { horizontal: !1 },
|
|
77
|
+
compoundVariants: []
|
|
78
|
+
}), m = u({
|
|
79
|
+
defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4li",
|
|
80
|
+
variantClassNames: { horizontal: {
|
|
81
|
+
true: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4lj",
|
|
82
|
+
false: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4lk"
|
|
83
|
+
} },
|
|
84
|
+
defaultVariants: { horizontal: !1 },
|
|
85
|
+
compoundVariants: []
|
|
86
|
+
}), h = u({
|
|
87
|
+
defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4ll",
|
|
88
|
+
variantClassNames: { horizontal: {
|
|
89
|
+
true: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4lm",
|
|
90
|
+
false: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4ln"
|
|
91
|
+
} },
|
|
92
|
+
defaultVariants: { horizontal: !1 },
|
|
93
|
+
compoundVariants: []
|
|
94
|
+
}), g = u({
|
|
95
|
+
defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4lo",
|
|
96
|
+
variantClassNames: { horizontal: {
|
|
97
|
+
true: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4lp",
|
|
98
|
+
false: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4lq"
|
|
99
|
+
} },
|
|
100
|
+
defaultVariants: { horizontal: !1 },
|
|
101
|
+
compoundVariants: []
|
|
102
|
+
}), _ = u({
|
|
103
|
+
defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4lr",
|
|
104
|
+
variantClassNames: { hasDetail: {
|
|
105
|
+
true: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4ls",
|
|
106
|
+
false: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4lt"
|
|
107
|
+
} },
|
|
108
|
+
defaultVariants: { hasDetail: !1 },
|
|
109
|
+
compoundVariants: []
|
|
110
|
+
}), v = u({
|
|
111
|
+
defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4lu",
|
|
112
|
+
variantClassNames: {
|
|
113
|
+
kind: {
|
|
114
|
+
general: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4lv",
|
|
115
|
+
error: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4lw",
|
|
116
|
+
success: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4lx",
|
|
117
|
+
warning: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4ly",
|
|
118
|
+
processing: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4lz"
|
|
119
|
+
},
|
|
120
|
+
horizontal: {
|
|
121
|
+
true: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l10",
|
|
122
|
+
false: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l11"
|
|
123
|
+
},
|
|
124
|
+
editable: {
|
|
125
|
+
true: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l12",
|
|
126
|
+
false: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l13"
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
defaultVariants: {
|
|
130
|
+
kind: "general",
|
|
131
|
+
horizontal: !1,
|
|
132
|
+
editable: !1
|
|
133
|
+
},
|
|
134
|
+
compoundVariants: [
|
|
135
|
+
[{
|
|
136
|
+
kind: "general",
|
|
137
|
+
editable: !0
|
|
138
|
+
}, "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l14"],
|
|
139
|
+
[{
|
|
140
|
+
kind: "error",
|
|
141
|
+
editable: !0
|
|
142
|
+
}, "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l15"],
|
|
143
|
+
[{
|
|
144
|
+
kind: "success",
|
|
145
|
+
editable: !0
|
|
146
|
+
}, "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l16"],
|
|
147
|
+
[{
|
|
148
|
+
kind: "warning",
|
|
149
|
+
editable: !0
|
|
150
|
+
}, "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l17"],
|
|
151
|
+
[{
|
|
152
|
+
kind: "processing",
|
|
153
|
+
editable: !0
|
|
154
|
+
}, "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l18"]
|
|
155
|
+
]
|
|
156
|
+
}), y = u({
|
|
157
|
+
defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l19",
|
|
158
|
+
variantClassNames: { horizontal: {
|
|
159
|
+
true: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l1a",
|
|
160
|
+
false: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l1b"
|
|
161
|
+
} },
|
|
162
|
+
defaultVariants: { horizontal: !1 },
|
|
163
|
+
compoundVariants: []
|
|
164
|
+
}), b = u({
|
|
165
|
+
defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l1c",
|
|
166
|
+
variantClassNames: { horizontal: {
|
|
167
|
+
true: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l1d",
|
|
168
|
+
false: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l1e"
|
|
169
|
+
} },
|
|
170
|
+
defaultVariants: { horizontal: !1 },
|
|
171
|
+
compoundVariants: []
|
|
172
|
+
}), x = u({
|
|
173
|
+
defaultClassName: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l1f",
|
|
174
|
+
variantClassNames: { horizontal: {
|
|
175
|
+
true: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l1g",
|
|
176
|
+
false: "pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l1h"
|
|
177
|
+
} },
|
|
178
|
+
defaultVariants: { horizontal: !1 },
|
|
179
|
+
compoundVariants: []
|
|
180
|
+
}), S = Object.freeze({
|
|
181
|
+
general: "status-new",
|
|
182
|
+
success: "status-ok",
|
|
183
|
+
error: "status-error",
|
|
184
|
+
warning: "status-warning",
|
|
185
|
+
processing: "status-in-process"
|
|
64
186
|
});
|
|
65
|
-
function
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
187
|
+
function C({ children: t, className: o, horizontal: s = !1, icon: c, kind: l = "general", title: u, metric: d, partnerCount: C, totalPartners: w, onEdit: T, onClick: E, ...D }) {
|
|
188
|
+
let { t: O } = a(), k = r(D), [A, j, M] = (C ? O("insightTile.partnerCount", {
|
|
189
|
+
count: C,
|
|
190
|
+
total: w,
|
|
191
|
+
defaultValue: `${C} |of| ${w}`
|
|
192
|
+
}) : "").split("|");
|
|
193
|
+
return /* @__PURE__ */ i.createElement(i.Fragment, null, /* @__PURE__ */ i.createElement("div", {
|
|
194
|
+
className: n(f({
|
|
195
|
+
kind: l,
|
|
196
|
+
horizontal: s
|
|
197
|
+
}), o),
|
|
198
|
+
onClick: E,
|
|
199
|
+
tabIndex: E ? 0 : void 0,
|
|
200
|
+
role: E && "button",
|
|
201
|
+
onKeyDown: E ? (e) => {
|
|
202
|
+
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), e.currentTarget.click());
|
|
203
|
+
} : void 0,
|
|
204
|
+
...D
|
|
205
|
+
}, /* @__PURE__ */ i.createElement("div", {
|
|
206
|
+
className: p({ horizontal: s }),
|
|
207
|
+
...k("body")
|
|
208
|
+
}, c ? /* @__PURE__ */ i.createElement(e, {
|
|
209
|
+
icon: `${c}`,
|
|
210
|
+
...k("icon")
|
|
211
|
+
}) : /* @__PURE__ */ i.createElement(e, {
|
|
212
|
+
icon: `${S[l]}`,
|
|
213
|
+
...k("icon")
|
|
214
|
+
}), d && /* @__PURE__ */ i.createElement("div", {
|
|
215
|
+
className: m({ horizontal: s }),
|
|
216
|
+
...k("metric")
|
|
217
|
+
}, d), u && /* @__PURE__ */ i.createElement("div", {
|
|
218
|
+
className: g({ horizontal: s }),
|
|
219
|
+
...k("description")
|
|
220
|
+
}, /* @__PURE__ */ i.createElement("div", {
|
|
221
|
+
className: h({ horizontal: s }),
|
|
222
|
+
style: { "-webkit-box-orient": "vertical" },
|
|
223
|
+
...k("title")
|
|
224
|
+
}, u), /* @__PURE__ */ i.createElement("div", {
|
|
225
|
+
className: _({ hasDetail: !!t }),
|
|
226
|
+
...k("detail")
|
|
227
|
+
}, t))), C && /* @__PURE__ */ i.createElement("div", {
|
|
228
|
+
role: T && "button",
|
|
229
|
+
tabIndex: T ? 0 : void 0,
|
|
230
|
+
onClick: T ? (e) => {
|
|
231
|
+
e.stopPropagation(), T();
|
|
232
|
+
} : void 0,
|
|
233
|
+
onKeyDown: T ? (e) => {
|
|
234
|
+
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), e.stopPropagation(), T());
|
|
235
|
+
} : void 0,
|
|
236
|
+
className: v({
|
|
237
|
+
kind: l,
|
|
238
|
+
horizontal: s,
|
|
239
|
+
editable: !!T
|
|
240
|
+
}),
|
|
241
|
+
...k("partner-count")
|
|
242
|
+
}, /* @__PURE__ */ i.createElement("div", { className: b({ horizontal: s }) }, C === w ? /* @__PURE__ */ i.createElement("div", null, O("insightTile.all", { defaultValue: "ALL" })) : /* @__PURE__ */ i.createElement(i.Fragment, null, /* @__PURE__ */ i.createElement("div", null, A), /* @__PURE__ */ i.createElement("div", null, j), /* @__PURE__ */ i.createElement("div", null, M)), /* @__PURE__ */ i.createElement("div", { className: y({ horizontal: s }) }, O("insightTile.partners", { defaultValue: "PARTNERS" }))), T && /* @__PURE__ */ i.createElement(e, {
|
|
243
|
+
className: x({ horizontal: s }),
|
|
244
|
+
icon: "pencil"
|
|
245
|
+
}))));
|
|
123
246
|
}
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
247
|
+
t.set(C, {
|
|
248
|
+
name: "InsightCard",
|
|
249
|
+
props: {
|
|
250
|
+
horizontal: {
|
|
251
|
+
type: "boolean",
|
|
252
|
+
default: "false"
|
|
253
|
+
},
|
|
254
|
+
icon: "IconName",
|
|
255
|
+
kind: {
|
|
256
|
+
type: "InsightCardKind",
|
|
257
|
+
default: "\"general\""
|
|
258
|
+
},
|
|
259
|
+
title: "string",
|
|
260
|
+
metric: "number | string",
|
|
261
|
+
partnerCount: "number",
|
|
262
|
+
totalPartners: "number",
|
|
263
|
+
onEdit: "() => void"
|
|
264
|
+
}
|
|
136
265
|
});
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
266
|
+
//#endregion
|
|
267
|
+
//#region src/insight-card/InsightCardSet.tsx
|
|
268
|
+
function w({ children: e, ...t }) {
|
|
269
|
+
return /* @__PURE__ */ i.createElement("div", {
|
|
270
|
+
className: d,
|
|
271
|
+
...t
|
|
272
|
+
}, e);
|
|
142
273
|
}
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
L as InsightCardIcons,
|
|
147
|
-
M as InsightCardSet
|
|
148
|
-
};
|
|
274
|
+
t.set(w, { name: "InsightCardSet" });
|
|
275
|
+
//#endregion
|
|
276
|
+
export { C as InsightCard, S as InsightCardIcons, w as InsightCardSet };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(e,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):(e=typeof globalThis<`u`?globalThis:e||self,t(e.InsightCard={},e.spsWoodlandCore,e.react,e.spscommerceI18n))})(this,function(e,t,n,r){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var i=Object.create,a=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,c=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,u=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=s(t),c=0,u=i.length,d;c<u;c++)d=i[c],!l.call(e,d)&&d!==n&&a(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(r=o(t,d))||r.enumerable});return e};n=((e,t,n)=>(n=e==null?{}:i(c(e)),u(t||!e||!e.__esModule||!l.call(e,`default`)?a(n,`default`,{value:e,enumerable:!0}):n,e)))(n,1);function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?f(Object(n),!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var m=(e,t,n)=>{for(var r of Object.keys(e))if(e[r]!==(t[r]??n[r]))return!1;return!0},h=e=>t=>{var n=e.defaultClassName,r=p(p({},e.defaultVariants),t);for(var i in r){var a=r[i]??e.defaultVariants[i];if(a!=null){var o=a;typeof o==`boolean`&&(o=o===!0?`true`:`false`);var s=e.variantClassNames[i][o];s&&(n+=` `+s)}}for(var[c,l]of e.compoundVariants)m(c,r,e.defaultVariants)&&(n+=` `+l);return n},g=`pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l0`,_=h({defaultClassName:`pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l1`,variantClassNames:{kind:{general:`pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l2`,error:`pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l3`,success:`pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l4`,warning:`pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l5`,processing:`pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l6`},horizontal:{true:`pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l7`,false:`pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l8`}},defaultVariants:{kind:`general`,horizontal:!1},compoundVariants:[]}),v=h({defaultClassName:`pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l9`,variantClassNames:{horizontal:{true:`pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4la`,false:`pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4lb`}},defaultVariants:{horizontal:!1},compoundVariants:[]}),y=h({defaultClassName:`pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4li`,variantClassNames:{horizontal:{true:`pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4lj`,false:`pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4lk`}},defaultVariants:{horizontal:!1},compoundVariants:[]}),b=h({defaultClassName:`pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4ll`,variantClassNames:{horizontal:{true:`pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4lm`,false:`pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4ln`}},defaultVariants:{horizontal:!1},compoundVariants:[]}),x=h({defaultClassName:`pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4lo`,variantClassNames:{horizontal:{true:`pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4lp`,false:`pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4lq`}},defaultVariants:{horizontal:!1},compoundVariants:[]}),S=h({defaultClassName:`pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4lr`,variantClassNames:{hasDetail:{true:`pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4ls`,false:`pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4lt`}},defaultVariants:{hasDetail:!1},compoundVariants:[]}),C=h({defaultClassName:`pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4lu`,variantClassNames:{kind:{general:`pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4lv`,error:`pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4lw`,success:`pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4lx`,warning:`pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4ly`,processing:`pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4lz`},horizontal:{true:`pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l10`,false:`pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l11`},editable:{true:`pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l12`,false:`pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l13`}},defaultVariants:{kind:`general`,horizontal:!1,editable:!1},compoundVariants:[[{kind:`general`,editable:!0},`pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l14`],[{kind:`error`,editable:!0},`pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l15`],[{kind:`success`,editable:!0},`pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l16`],[{kind:`warning`,editable:!0},`pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l17`],[{kind:`processing`,editable:!0},`pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l18`]]}),w=h({defaultClassName:`pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l19`,variantClassNames:{horizontal:{true:`pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l1a`,false:`pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l1b`}},defaultVariants:{horizontal:!1},compoundVariants:[]}),T=h({defaultClassName:`pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l1c`,variantClassNames:{horizontal:{true:`pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l1d`,false:`pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l1e`}},defaultVariants:{horizontal:!1},compoundVariants:[]}),E=h({defaultClassName:`pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l1f`,variantClassNames:{horizontal:{true:`pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l1g`,false:`pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l1h`}},defaultVariants:{horizontal:!1},compoundVariants:[]}),D=Object.freeze({general:`status-new`,success:`status-ok`,error:`status-error`,warning:`status-warning`,processing:`status-in-process`});function O({children:e,className:i,horizontal:a=!1,icon:o,kind:s=`general`,title:c,metric:l,partnerCount:u,totalPartners:d,onEdit:f,onClick:p,...m}){let{t:h}=(0,r.useWoodlandLanguage)(),g=(0,t.useChildTestIdAttrBuilder)(m),[O,k,A]=(u?h(`insightTile.partnerCount`,{count:u,total:d,defaultValue:`${u} |of| ${d}`}):``).split(`|`);return n.createElement(n.Fragment,null,n.createElement(`div`,{className:(0,t.cl)(_({kind:s,horizontal:a}),i),onClick:p,tabIndex:p?0:void 0,role:p&&`button`,onKeyDown:p?e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),e.currentTarget.click())}:void 0,...m},n.createElement(`div`,{className:v({horizontal:a}),...g(`body`)},o?n.createElement(t.Icon,{icon:`${o}`,...g(`icon`)}):n.createElement(t.Icon,{icon:`${D[s]}`,...g(`icon`)}),l&&n.createElement(`div`,{className:y({horizontal:a}),...g(`metric`)},l),c&&n.createElement(`div`,{className:x({horizontal:a}),...g(`description`)},n.createElement(`div`,{className:b({horizontal:a}),style:{"-webkit-box-orient":`vertical`},...g(`title`)},c),n.createElement(`div`,{className:S({hasDetail:!!e}),...g(`detail`)},e))),u&&n.createElement(`div`,{role:f&&`button`,tabIndex:f?0:void 0,onClick:f?e=>{e.stopPropagation(),f()}:void 0,onKeyDown:f?e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),e.stopPropagation(),f())}:void 0,className:C({kind:s,horizontal:a,editable:!!f}),...g(`partner-count`)},n.createElement(`div`,{className:T({horizontal:a})},u===d?n.createElement(`div`,null,h(`insightTile.all`,{defaultValue:`ALL`})):n.createElement(n.Fragment,null,n.createElement(`div`,null,O),n.createElement(`div`,null,k),n.createElement(`div`,null,A)),n.createElement(`div`,{className:w({horizontal:a})},h(`insightTile.partners`,{defaultValue:`PARTNERS`}))),f&&n.createElement(t.Icon,{className:E({horizontal:a}),icon:`pencil`}))))}t.Metadata.set(O,{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,...t}){return n.createElement(`div`,{className:g,...t},e)}t.Metadata.set(k,{name:`InsightCardSet`}),e.InsightCard=O,e.InsightCardIcons=D,e.InsightCardSet=k});
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
.pkg_sps-woodland_core__family_insight-
|
|
1
|
+
.pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l0{flex-wrap:wrap;margin:-.5rem;display:flex}.pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l1{text-align:center;background:#fff;border-style:solid;border-width:.0625rem;border-radius:.25rem;flex-direction:column;flex:1 0 calc(20% - 20px);min-width:0;margin:.5rem;padding:.9375rem 1.25rem;display:flex}.pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l1:focus{outline-offset:.125rem;outline:.125rem solid #007db8;box-shadow:0 0 0 6px #fff}.pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l2{color:#007db8;border-color:#007db8}.pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l2:hover{background:#007db8}.pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l3{color:#de002e;border-color:#de002e}.pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l3:hover{background:#de002e}.pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l4{color:#0b8940;border-color:#0b8940}.pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l4:hover{background:#0b8940}.pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l5{color:#e7760b;border-color:#e7760b}.pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l5:hover{background:#e7760b}.pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l6{color:#91467f;border-color:#91467f}.pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l6:hover{background:#91467f}.pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l7{flex-direction:row;flex:1 0 calc(50% - 20px);max-width:calc(50% - 20px);height:5.125rem;display:flex}.pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l9{min-width:0;display:block}.pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4la{text-align:left;flex:1;align-items:center;display:flex}.pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4lc{font-size:2rem;line-height:2rem;display:block}.pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4ld{color:#007db8}.pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4le{color:#de002e}.pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4lf{color:#0b8940}.pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4lg{color:#e7760b}.pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4lh{color:#91467f}.pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4li{word-wrap:break-word;color:#000;max-width:100%;font-size:3rem;font-weight:600;line-height:3rem}.pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4lj{order:1;margin-left:.5rem}.pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4ll{color:#1f282c;word-wrap:break-word;-webkit-box-orient:vertical;-webkit-box-pack:center;align-items:center;max-width:100%;min-height:2.125rem;padding-bottom:.125rem;font-size:1rem;font-weight:600;line-height:1rem;display:-webkit-box}.pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4lm{min-height:1rem;margin-bottom:0}.pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4lp{flex:1;min-width:0;margin-left:.5rem}.pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4lr{color:#4b5356;text-transform:uppercase;white-space:nowrap;height:12px;margin-top:.25rem;font-size:.75rem;line-height:.75rem;display:none}.pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4ls{display:block}.pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4lu{color:#fff;grid-template-columns:minmax(0,1fr) auto minmax(auto,1fr);align-items:center;margin:.9375rem -1.25rem -.9375rem;padding:.625rem 1.25rem;font-size:.75rem;font-weight:600;line-height:1.125rem;display:grid}.pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4lv{background:#007db8}.pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4lw{background:#de002e}.pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4lx{background:#0b8940}.pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4ly{background:#e7760b}.pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4lz{background:#91467f}.pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l10{flex-direction:column;justify-content:center;align-items:center;width:84px;margin:-.9375rem -1.25rem -.9375rem 1.25rem;padding:1.25rem .625rem;line-height:.875rem;display:flex}.pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l11{flex-grow:1}.pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l12:focus,.pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l12:focus-visible{outline-offset:.125rem;outline:.125rem solid #007db8;box-shadow:0 0 0 6px #fff}.pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l14:hover{background:#09638d}.pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l15:hover{background:#a30d2d}.pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l16:hover{background:#106b39}.pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l17:hover{background:#aa5e14}.pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l18:hover{background:#6e3c65}.pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l1a{display:none!important}.pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l1c{grid-column:2}.pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l1d{white-space:nowrap}.pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l1g{margin-top:.25rem}.pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l1h{justify-self:end;margin-left:.25rem}.pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l9>svg{font-size:2rem;line-height:2rem}.pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l1c>*{display:inline-block}.pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l1c>:not(:last-child){padding-right:.125rem}.pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4lu>.pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l1f{color:#fff;grid-column:3}.pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l1:hover{cursor:pointer}.pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l1:hover>*,.pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l1:hover>.pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l9>*,.pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l1:hover>.pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l9>.pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4lo>*,.pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l1:hover>.pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4l9>.pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4lo>.pkg_sps-woodland_core__family_insight-card__version_8_56_4__hash_z81y4lr>*{color:#fff!important}
|
|
2
|
+
/*$vite$:1*/
|