@sps-woodland/core 8.56.1 → 8.56.3
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.css.d.ts.map +1 -1
- package/lib/add-to-list/add-to-list/AddToList.d.ts.map +1 -1
- package/lib/add-to-list/add-to-list/AddToList.js +220 -295
- package/lib/add-to-list/add-to-list/AddToList.ve.js +79 -24
- package/lib/add-to-list/add-to-list/ItemsList.d.ts.map +1 -1
- package/lib/add-to-list/add-to-list/ItemsList.js +42 -66
- package/lib/add-to-list/add-to-list/ListItem.js +24 -50
- package/lib/add-to-list/index.js +393 -444
- package/lib/add-to-list/index.umd.cjs +1 -1
- package/lib/add-to-list/style.css +2 -1
- package/lib/buttons/button/Button.css.d.ts.map +1 -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.css.d.ts.map +1 -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.d.ts.map +1 -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.css.d.ts.map +1 -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.css.d.ts.map +1 -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.css.d.ts.map +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.css.d.ts.map +1 -1
- package/lib/filter-tiles/filter-tile/FilterTile.d.ts.map +1 -1
- package/lib/filter-tiles/filter-tile/FilterTile.js +41 -33
- 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 -94
- 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.2/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 -173
- 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.css.d.ts.map +1 -1
- package/lib/photo/photo-carousel/PhotoCarousel.d.ts.map +1 -1
- package/lib/photo/photo-carousel/PhotoCarousel.js +36 -47
- 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.css.d.ts.map +1 -1
- 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 -216
- package/lib/side-nav/index.umd.cjs +1 -1
- package/lib/side-nav/side-nav/SideNav.css.d.ts.map +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.d.ts.map +1 -1
- package/lib/side-nav/side-nav-item/SideNavItem.js +68 -82
- 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 -243
- 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.css.d.ts +2 -0
- package/lib/sorting-header/sorting-header-cell/SortingHeaderCell.css.d.ts.map +1 -1
- package/lib/sorting-header/sorting-header-cell/SortingHeaderCell.d.ts.map +1 -1
- package/lib/sorting-header/sorting-header-cell/SortingHeaderCell.js +69 -75
- package/lib/sorting-header/sorting-header-cell/SortingHeaderCell.ve.js +21 -5
- package/lib/sorting-header/style.css +2 -1
- package/lib/style.css +2 -1
- package/lib/tabs/index.js +255 -200
- package/lib/tabs/index.umd.cjs +1 -1
- package/lib/tabs/style.css +2 -1
- package/lib/tabs/tab/Tab.css.d.ts.map +1 -1
- package/lib/tabs/tab/Tab.js +24 -27
- package/lib/tabs/tab/Tab.ve.js +76 -6
- package/lib/tabs/tab-panel/TabPanel.d.ts.map +1 -1
- package/lib/tabs/tab-panel/TabPanel.js +16 -23
- package/lib/tabs/tabs/Tabs.css.d.ts +1 -0
- package/lib/tabs/tabs/Tabs.css.d.ts.map +1 -1
- package/lib/tabs/tabs/Tabs.js +101 -112
- package/lib/tabs/tabs/Tabs.ve.js +13 -10
- package/lib/tags/clickable-tag/ClickableTag.css.d.ts +1 -1
- package/lib/tags/clickable-tag/ClickableTag.css.d.ts.map +1 -1
- package/lib/tags/clickable-tag/ClickableTag.d.ts.map +1 -1
- package/lib/tags/clickable-tag/ClickableTag.js +86 -70
- package/lib/tags/clickable-tag/ClickableTag.ve.js +66 -9
- package/lib/tags/index.js +342 -179
- package/lib/tags/index.umd.cjs +1 -1
- package/lib/tags/split-tag/SplitTag.css.d.ts.map +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
package/lib/zero-state/index.js
CHANGED
|
@@ -1,84 +1,109 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import {
|
|
3
|
-
import { BUILDING_LARGE as
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
import { Icon as t, Metadata as n, cl as r, contentOf as i } from "@sps-woodland/core";
|
|
3
|
+
import { BUILDING_LARGE as a } from "@sps-woodland/illustrations";
|
|
4
|
+
//#region ../../../node_modules/.pnpm/@vanilla-extract+recipes@0.2.5_@vanilla-extract+css@1.21.2/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
23
|
function c(e) {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
34
|
+
var l = (e, t, n) => {
|
|
35
|
+
for (var r of Object.keys(e)) if (e[r] !== (t[r] ?? n[r])) return !1;
|
|
36
|
+
return !0;
|
|
37
|
+
}, u = (e) => (t) => {
|
|
38
|
+
var n = e.defaultClassName, r = c(c({}, e.defaultVariants), t);
|
|
39
|
+
for (var i in r) {
|
|
40
|
+
var a = r[i] ?? e.defaultVariants[i];
|
|
41
|
+
if (a != null) {
|
|
42
|
+
var o = a;
|
|
43
|
+
typeof o == "boolean" && (o = o === !0 ? "true" : "false");
|
|
44
|
+
var s = e.variantClassNames[i][o];
|
|
45
|
+
s && (n += " " + s);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
for (var [u, d] of e.compoundVariants) l(u, r, e.defaultVariants) && (n += " " + d);
|
|
49
|
+
return n;
|
|
50
|
+
}, d = u({
|
|
51
|
+
defaultClassName: "pkg_sps-woodland_core__family_zero-state__version_8_56_3__hash_sa7luu0",
|
|
52
|
+
variantClassNames: { micro: {
|
|
53
|
+
true: "pkg_sps-woodland_core__family_zero-state__version_8_56_3__hash_sa7luu1",
|
|
54
|
+
false: "pkg_sps-woodland_core__family_zero-state__version_8_56_3__hash_sa7luu2"
|
|
55
|
+
} },
|
|
56
|
+
defaultVariants: {},
|
|
57
|
+
compoundVariants: []
|
|
58
|
+
}), f = u({
|
|
59
|
+
defaultClassName: "pkg_sps-woodland_core__family_zero-state__version_8_56_3__hash_sa7luu3",
|
|
60
|
+
variantClassNames: { micro: {
|
|
61
|
+
true: "pkg_sps-woodland_core__family_zero-state__version_8_56_3__hash_sa7luu4",
|
|
62
|
+
false: "pkg_sps-woodland_core__family_zero-state__version_8_56_3__hash_sa7luu5"
|
|
63
|
+
} },
|
|
64
|
+
defaultVariants: { micro: !1 },
|
|
65
|
+
compoundVariants: []
|
|
66
|
+
}), p = "pkg_sps-woodland_core__family_zero-state__version_8_56_3__hash_sa7luu6", m = u({
|
|
67
|
+
defaultClassName: "pkg_sps-woodland_core__family_zero-state__version_8_56_3__hash_sa7luu7",
|
|
68
|
+
variantClassNames: { micro: {
|
|
69
|
+
true: "pkg_sps-woodland_core__family_zero-state__version_8_56_3__hash_sa7luu8",
|
|
70
|
+
false: "pkg_sps-woodland_core__family_zero-state__version_8_56_3__hash_sa7luu9"
|
|
71
|
+
} },
|
|
72
|
+
defaultVariants: { micro: !1 },
|
|
73
|
+
compoundVariants: []
|
|
74
|
+
}), h = "pkg_sps-woodland_core__family_zero-state__version_8_56_3__hash_sa7luub", g = "pkg_sps-woodland_core__family_zero-state__version_8_56_3__hash_sa7luuc";
|
|
75
|
+
//#endregion
|
|
76
|
+
//#region src/zero-state/ZeroState.tsx
|
|
77
|
+
function _({ artwork: n, heading: o, illustration: s, subHeading: c, micro: l = !1, children: u, className: _, icon: v, ...y }) {
|
|
78
|
+
let b = s || n || a;
|
|
79
|
+
return /* @__PURE__ */ e.createElement("div", { className: d({ micro: l }) }, /* @__PURE__ */ e.createElement("div", {
|
|
80
|
+
className: r(f({ micro: l }), _),
|
|
81
|
+
...y
|
|
82
|
+
}, l ? /* @__PURE__ */ e.createElement(e.Fragment, null, v ? /* @__PURE__ */ e.createElement(t, {
|
|
83
|
+
className: g,
|
|
84
|
+
icon: v,
|
|
85
|
+
"aria-hidden": "true"
|
|
86
|
+
}) : /* @__PURE__ */ e.createElement("img", {
|
|
87
|
+
style: { height: "3rem" },
|
|
88
|
+
src: b
|
|
89
|
+
})) : /* @__PURE__ */ e.createElement("img", {
|
|
90
|
+
className: p,
|
|
91
|
+
src: b,
|
|
92
|
+
alt: ""
|
|
93
|
+
}), o && (typeof o == "string" ? /* @__PURE__ */ e.createElement("h1", { className: m({ micro: l }) }, o) : i(o)), c && (typeof c == "string" ? /* @__PURE__ */ e.createElement("h2", { className: "pkg_sps-woodland_core__family_zero-state__version_8_56_3__hash_sa7luua" }, c) : i(c)), /* @__PURE__ */ e.createElement("div", { className: h }, u)));
|
|
71
94
|
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
95
|
+
n.set(_, {
|
|
96
|
+
name: "ZeroState",
|
|
97
|
+
props: {
|
|
98
|
+
artwork: { type: "string" },
|
|
99
|
+
heading: { type: "string | ReactNodeOrRenderFn" },
|
|
100
|
+
illustration: { type: "string" },
|
|
101
|
+
subHeading: { type: "string | ReactNodeOrRenderFn" },
|
|
102
|
+
micro: {
|
|
103
|
+
type: "boolean",
|
|
104
|
+
default: "false"
|
|
105
|
+
}
|
|
106
|
+
}
|
|
81
107
|
});
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
};
|
|
108
|
+
//#endregion
|
|
109
|
+
export { _ as ZeroState };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require("react"),require("@sps-woodland/core"),require("@sps-woodland/illustrations")):typeof define==`function`&&define.amd?define([`exports`,`react`,`@sps-woodland/core`,`@sps-woodland/illustrations`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.ZeroState={},e.react,e.spsWoodlandCore,e.spsWoodlandIllustrations))})(this,function(e,t,n,r){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var i=Object.create,a=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,c=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,u=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=s(t),c=0,u=i.length,d;c<u;c++)d=i[c],!l.call(e,d)&&d!==n&&a(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(r=o(t,d))||r.enumerable});return e};t=((e,t,n)=>(n=e==null?{}:i(c(e)),u(t||!e||!e.__esModule||!l.call(e,`default`)?a(n,`default`,{value:e,enumerable:!0}):n,e)))(t,1);function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?f(Object(n),!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var m=(e,t,n)=>{for(var r of Object.keys(e))if(e[r]!==(t[r]??n[r]))return!1;return!0},h=e=>t=>{var n=e.defaultClassName,r=p(p({},e.defaultVariants),t);for(var i in r){var a=r[i]??e.defaultVariants[i];if(a!=null){var o=a;typeof o==`boolean`&&(o=o===!0?`true`:`false`);var s=e.variantClassNames[i][o];s&&(n+=` `+s)}}for(var[c,l]of e.compoundVariants)m(c,r,e.defaultVariants)&&(n+=` `+l);return n},g=h({defaultClassName:`pkg_sps-woodland_core__family_zero-state__version_8_56_3__hash_sa7luu0`,variantClassNames:{micro:{true:`pkg_sps-woodland_core__family_zero-state__version_8_56_3__hash_sa7luu1`,false:`pkg_sps-woodland_core__family_zero-state__version_8_56_3__hash_sa7luu2`}},defaultVariants:{},compoundVariants:[]}),_=h({defaultClassName:`pkg_sps-woodland_core__family_zero-state__version_8_56_3__hash_sa7luu3`,variantClassNames:{micro:{true:`pkg_sps-woodland_core__family_zero-state__version_8_56_3__hash_sa7luu4`,false:`pkg_sps-woodland_core__family_zero-state__version_8_56_3__hash_sa7luu5`}},defaultVariants:{micro:!1},compoundVariants:[]}),v=`pkg_sps-woodland_core__family_zero-state__version_8_56_3__hash_sa7luu6`,y=h({defaultClassName:`pkg_sps-woodland_core__family_zero-state__version_8_56_3__hash_sa7luu7`,variantClassNames:{micro:{true:`pkg_sps-woodland_core__family_zero-state__version_8_56_3__hash_sa7luu8`,false:`pkg_sps-woodland_core__family_zero-state__version_8_56_3__hash_sa7luu9`}},defaultVariants:{micro:!1},compoundVariants:[]}),b=`pkg_sps-woodland_core__family_zero-state__version_8_56_3__hash_sa7luub`,x=`pkg_sps-woodland_core__family_zero-state__version_8_56_3__hash_sa7luuc`;function S({artwork:e,heading:i,illustration:a,subHeading:o,micro:s=!1,children:c,className:l,icon:u,...d}){let f=a||e||r.BUILDING_LARGE;return t.createElement(`div`,{className:g({micro:s})},t.createElement(`div`,{className:(0,n.cl)(_({micro:s}),l),...d},s?t.createElement(t.Fragment,null,u?t.createElement(n.Icon,{className:x,icon:u,"aria-hidden":`true`}):t.createElement(`img`,{style:{height:`3rem`},src:f})):t.createElement(`img`,{className:v,src:f,alt:``}),i&&(typeof i==`string`?t.createElement(`h1`,{className:y({micro:s})},i):(0,n.contentOf)(i)),o&&(typeof o==`string`?t.createElement(`h2`,{className:`pkg_sps-woodland_core__family_zero-state__version_8_56_3__hash_sa7luua`},o):(0,n.contentOf)(o)),t.createElement(`div`,{className:b},c)))}n.Metadata.set(S,{name:`ZeroState`,props:{artwork:{type:`string`},heading:{type:`string | ReactNodeOrRenderFn`},illustration:{type:`string`},subHeading:{type:`string | ReactNodeOrRenderFn`},micro:{type:`boolean`,default:`false`}}}),e.ZeroState=S});
|
package/lib/zero-state/style.css
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
.pkg_sps-woodland_core__family_zero-
|
|
1
|
+
.pkg_sps-woodland_core__family_zero-state__version_8_56_3__hash_sa7luu2{padding:1rem}.pkg_sps-woodland_core__family_zero-state__version_8_56_3__hash_sa7luu3{text-align:center;margin:auto;padding:2rem 0}.pkg_sps-woodland_core__family_zero-state__version_8_56_3__hash_sa7luu4{flex-direction:column;justify-content:center;align-items:center;width:auto;height:100%;display:flex}.pkg_sps-woodland_core__family_zero-state__version_8_56_3__hash_sa7luu6{width:12.5rem;height:6.25rem;margin-bottom:1rem}.pkg_sps-woodland_core__family_zero-state__version_8_56_3__hash_sa7luu7{margin-bottom:0}.pkg_sps-woodland_core__family_zero-state__version_8_56_3__hash_sa7luu8{color:#4b5356;font-size:1rem;font-weight:600;line-height:1.25rem}.pkg_sps-woodland_core__family_zero-state__version_8_56_3__hash_sa7luu9{color:#1f282c;font-size:1.5rem;line-height:1.5rem}.pkg_sps-woodland_core__family_zero-state__version_8_56_3__hash_sa7luua{color:#4b5356;margin-top:.25rem;margin-bottom:0;font-size:.875rem;line-height:1.25rem}.pkg_sps-woodland_core__family_zero-state__version_8_56_3__hash_sa7luub{margin-top:1rem}.pkg_sps-woodland_core__family_zero-state__version_8_56_3__hash_sa7luuc{color:#717779;padding-bottom:.25rem;font-size:3rem;line-height:3rem}@media screen and (width>=768px){.pkg_sps-woodland_core__family_zero-state__version_8_56_3__hash_sa7luu3{width:75%}}@media screen and (width>=992px){.pkg_sps-woodland_core__family_zero-state__version_8_56_3__hash_sa7luu3{width:50%}}
|
|
2
|
+
/*$vite$:1*/
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sps-woodland/core",
|
|
3
3
|
"description": "SPS Woodland Design System core library code",
|
|
4
|
-
"version": "8.56.
|
|
4
|
+
"version": "8.56.3",
|
|
5
5
|
"author": "SPS Commerce",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"repository": "https://github.com/SPSCommerce/woodland/tree/main/packages/@sps-woodland/core",
|
|
@@ -712,27 +712,27 @@
|
|
|
712
712
|
"@spscommerce/utils": "^7.0.0 || ^8.0.0 || ^9.0.0",
|
|
713
713
|
"react": "^16.14.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
714
714
|
"react-dom": "^16.14.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
715
|
-
"@sps-woodland/illustrations": "8.56.
|
|
716
|
-
"@sps-woodland/tokens": "8.56.
|
|
717
|
-
"@spscommerce/ds-react": "8.56.
|
|
718
|
-
"@spscommerce/ds-shared": "8.56.
|
|
719
|
-
"@spscommerce/i18n": "8.56.
|
|
715
|
+
"@sps-woodland/illustrations": "8.56.3",
|
|
716
|
+
"@sps-woodland/tokens": "8.56.3",
|
|
717
|
+
"@spscommerce/ds-react": "8.56.3",
|
|
718
|
+
"@spscommerce/ds-shared": "8.56.3",
|
|
719
|
+
"@spscommerce/i18n": "8.56.3"
|
|
720
720
|
},
|
|
721
721
|
"devDependencies": {
|
|
722
722
|
"@ariakit/react": "0.4.15",
|
|
723
723
|
"@types/mdast": "^4.0.4",
|
|
724
|
-
"@spscommerce/utils": "9.
|
|
725
|
-
"@vanilla-extract/css": "1.
|
|
724
|
+
"@spscommerce/utils": "9.3.3",
|
|
725
|
+
"@vanilla-extract/css": "1.21.2",
|
|
726
726
|
"@vanilla-extract/css-utils": "0.1.3",
|
|
727
727
|
"@vanilla-extract/recipes": "0.2.5",
|
|
728
728
|
"postcss": "^8.5.14",
|
|
729
729
|
"postcss-import": "^16.1.1",
|
|
730
730
|
"react": "16.14.0",
|
|
731
731
|
"react-dom": "16.14.0",
|
|
732
|
-
"@sps-woodland/illustrations": "8.56.
|
|
733
|
-
"@sps-woodland/tokens": "8.56.
|
|
734
|
-
"@spscommerce/ds-react": "8.56.
|
|
735
|
-
"@spscommerce/ds-shared": "8.56.
|
|
732
|
+
"@sps-woodland/illustrations": "8.56.3",
|
|
733
|
+
"@sps-woodland/tokens": "8.56.3",
|
|
734
|
+
"@spscommerce/ds-react": "8.56.3",
|
|
735
|
+
"@spscommerce/ds-shared": "8.56.3"
|
|
736
736
|
},
|
|
737
737
|
"dependencies": {
|
|
738
738
|
"@handsontable/react": "^15.3.0",
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
function s(r, n, e) {
|
|
2
|
-
return n in r ? Object.defineProperty(r, n, {
|
|
3
|
-
value: e,
|
|
4
|
-
enumerable: !0,
|
|
5
|
-
configurable: !0,
|
|
6
|
-
writable: !0
|
|
7
|
-
}) : r[n] = e, r;
|
|
8
|
-
}
|
|
9
|
-
function O(r, n) {
|
|
10
|
-
var e = Object.keys(r);
|
|
11
|
-
if (Object.getOwnPropertySymbols) {
|
|
12
|
-
var t = Object.getOwnPropertySymbols(r);
|
|
13
|
-
n && (t = t.filter(function(u) {
|
|
14
|
-
return Object.getOwnPropertyDescriptor(r, u).enumerable;
|
|
15
|
-
})), e.push.apply(e, t);
|
|
16
|
-
}
|
|
17
|
-
return e;
|
|
18
|
-
}
|
|
19
|
-
function o(r) {
|
|
20
|
-
for (var n = 1; n < arguments.length; n++) {
|
|
21
|
-
var e = arguments[n] != null ? arguments[n] : {};
|
|
22
|
-
n % 2 ? O(Object(e), !0).forEach(function(t) {
|
|
23
|
-
s(r, t, e[t]);
|
|
24
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(e)) : O(Object(e)).forEach(function(t) {
|
|
25
|
-
Object.defineProperty(r, t, Object.getOwnPropertyDescriptor(e, t));
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
return r;
|
|
29
|
-
}
|
|
30
|
-
var v = (r, n, e) => {
|
|
31
|
-
for (var t of Object.keys(r)) {
|
|
32
|
-
var u;
|
|
33
|
-
if (r[t] !== ((u = n[t]) !== null && u !== void 0 ? u : e[t]))
|
|
34
|
-
return !1;
|
|
35
|
-
}
|
|
36
|
-
return !0;
|
|
37
|
-
}, d = (r) => (n) => {
|
|
38
|
-
var e = r.defaultClassName, t = o(o({}, r.defaultVariants), n);
|
|
39
|
-
for (var u in t) {
|
|
40
|
-
var f, p = (f = t[u]) !== null && f !== void 0 ? f : r.defaultVariants[u];
|
|
41
|
-
if (p != null) {
|
|
42
|
-
var a = p;
|
|
43
|
-
typeof a == "boolean" && (a = a === !0 ? "true" : "false");
|
|
44
|
-
var l = (
|
|
45
|
-
// @ts-expect-error
|
|
46
|
-
r.variantClassNames[u][a]
|
|
47
|
-
);
|
|
48
|
-
l && (e += " " + l);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
for (var [i, b] of r.compoundVariants)
|
|
52
|
-
v(i, t, r.defaultVariants) && (e += " " + b);
|
|
53
|
-
return e;
|
|
54
|
-
};
|
|
55
|
-
export {
|
|
56
|
-
d as createRuntimeFn
|
|
57
|
-
};
|