@sps-woodland/core 8.56.2 → 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.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.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 -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
package/lib/content-row/index.js
CHANGED
|
@@ -1,330 +1,419 @@
|
|
|
1
1
|
import * as e from "react";
|
|
2
|
-
import {
|
|
3
|
-
import { Button as
|
|
4
|
-
import {
|
|
5
|
-
import { useWoodlandLanguage as
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
2
|
+
import { Icon as t, Metadata as n, cl as r, modChildren as i, selectChildren as a } from "@sps-woodland/core";
|
|
3
|
+
import { Button as o } from "@sps-woodland/core/button";
|
|
4
|
+
import { SpsCheckbox as s, SpsTextInput as c } from "@spscommerce/ds-react";
|
|
5
|
+
import { useWoodlandLanguage as l } from "@spscommerce/i18n";
|
|
6
|
+
import { ButtonKind as u, SpsIcon as d } from "@spscommerce/ds-shared";
|
|
7
|
+
//#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
|
|
8
|
+
function f(e, t, n) {
|
|
9
|
+
return t in e ? Object.defineProperty(e, t, {
|
|
10
|
+
value: n,
|
|
11
|
+
enumerable: !0,
|
|
12
|
+
configurable: !0,
|
|
13
|
+
writable: !0
|
|
14
|
+
}) : e[t] = n, e;
|
|
14
15
|
}
|
|
15
|
-
function
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
16
|
+
function p(e, t) {
|
|
17
|
+
var n = Object.keys(e);
|
|
18
|
+
if (Object.getOwnPropertySymbols) {
|
|
19
|
+
var r = Object.getOwnPropertySymbols(e);
|
|
20
|
+
t && (r = r.filter(function(t) {
|
|
21
|
+
return Object.getOwnPropertyDescriptor(e, t).enumerable;
|
|
22
|
+
})), n.push.apply(n, r);
|
|
23
|
+
}
|
|
24
|
+
return n;
|
|
24
25
|
}
|
|
25
|
-
function
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
26
|
+
function m(e) {
|
|
27
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
28
|
+
var n = arguments[t] == null ? {} : arguments[t];
|
|
29
|
+
t % 2 ? p(Object(n), !0).forEach(function(t) {
|
|
30
|
+
f(e, t, n[t]);
|
|
31
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : p(Object(n)).forEach(function(t) {
|
|
32
|
+
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
return e;
|
|
35
36
|
}
|
|
36
|
-
var
|
|
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
|
-
|
|
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
|
-
name: "Content Row Col",
|
|
97
|
-
props: {
|
|
98
|
-
borderless: { type: "boolean" },
|
|
99
|
-
lean: { type: "boolean" },
|
|
100
|
-
widthPx: { type: "number" },
|
|
101
|
-
widthRem: { type: "number" },
|
|
102
|
-
wrapContent: { type: "boolean" }
|
|
103
|
-
}
|
|
37
|
+
var h = (e, t, n) => {
|
|
38
|
+
for (var r of Object.keys(e)) if (e[r] !== (t[r] ?? n[r])) return !1;
|
|
39
|
+
return !0;
|
|
40
|
+
}, g = (e) => (t) => {
|
|
41
|
+
var n = e.defaultClassName, r = m(m({}, e.defaultVariants), t);
|
|
42
|
+
for (var i in r) {
|
|
43
|
+
var a = r[i] ?? e.defaultVariants[i];
|
|
44
|
+
if (a != null) {
|
|
45
|
+
var o = a;
|
|
46
|
+
typeof o == "boolean" && (o = o === !0 ? "true" : "false");
|
|
47
|
+
var s = e.variantClassNames[i][o];
|
|
48
|
+
s && (n += " " + s);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
for (var [c, l] of e.compoundVariants) h(c, r, e.defaultVariants) && (n += " " + l);
|
|
52
|
+
return n;
|
|
53
|
+
}, _ = g({
|
|
54
|
+
defaultClassName: "pkg_sps-woodland_core__family_content-row__version_8_56_3__hash_gqq3jr0",
|
|
55
|
+
variantClassNames: {
|
|
56
|
+
lean: {
|
|
57
|
+
true: "pkg_sps-woodland_core__family_content-row__version_8_56_3__hash_gqq3jr1",
|
|
58
|
+
false: "pkg_sps-woodland_core__family_content-row__version_8_56_3__hash_gqq3jr2"
|
|
59
|
+
},
|
|
60
|
+
borderless: {
|
|
61
|
+
true: "pkg_sps-woodland_core__family_content-row__version_8_56_3__hash_gqq3jr3",
|
|
62
|
+
false: "pkg_sps-woodland_core__family_content-row__version_8_56_3__hash_gqq3jr4"
|
|
63
|
+
},
|
|
64
|
+
wrapContent: {
|
|
65
|
+
true: "pkg_sps-woodland_core__family_content-row__version_8_56_3__hash_gqq3jr5",
|
|
66
|
+
false: "pkg_sps-woodland_core__family_content-row__version_8_56_3__hash_gqq3jr6"
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
defaultVariants: {
|
|
70
|
+
lean: !1,
|
|
71
|
+
borderless: !1,
|
|
72
|
+
wrapContent: !1
|
|
73
|
+
},
|
|
74
|
+
compoundVariants: []
|
|
75
|
+
}), v = g({
|
|
76
|
+
defaultClassName: "pkg_sps-woodland_core__family_content-row__version_8_56_3__hash_gqq3jr7",
|
|
77
|
+
variantClassNames: {
|
|
78
|
+
lean: {
|
|
79
|
+
true: "pkg_sps-woodland_core__family_content-row__version_8_56_3__hash_gqq3jr8",
|
|
80
|
+
false: "pkg_sps-woodland_core__family_content-row__version_8_56_3__hash_gqq3jr9"
|
|
81
|
+
},
|
|
82
|
+
borderless: {
|
|
83
|
+
true: "pkg_sps-woodland_core__family_content-row__version_8_56_3__hash_gqq3jra",
|
|
84
|
+
false: "pkg_sps-woodland_core__family_content-row__version_8_56_3__hash_gqq3jrb"
|
|
85
|
+
},
|
|
86
|
+
wrapContent: {
|
|
87
|
+
true: "pkg_sps-woodland_core__family_content-row__version_8_56_3__hash_gqq3jrc",
|
|
88
|
+
false: "pkg_sps-woodland_core__family_content-row__version_8_56_3__hash_gqq3jrd"
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
defaultVariants: {
|
|
92
|
+
lean: !1,
|
|
93
|
+
borderless: !1,
|
|
94
|
+
wrapContent: !1
|
|
95
|
+
},
|
|
96
|
+
compoundVariants: []
|
|
104
97
|
});
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
98
|
+
//#endregion
|
|
99
|
+
//#region src/content-row/content-row-col/ContentRowCol.tsx
|
|
100
|
+
function y({ children: t, className: n, borderless: i, lean: a, widthPx: o, widthRem: s, style: c, wrapContent: l = !1, __autoLayout: u = !1, ...d }) {
|
|
101
|
+
let f = o ? o / 16 : s, p = f ? {
|
|
102
|
+
...c,
|
|
103
|
+
width: `${f}rem`
|
|
104
|
+
} : c;
|
|
105
|
+
return u ? /* @__PURE__ */ e.createElement("td", {
|
|
106
|
+
className: r(v({
|
|
107
|
+
lean: a,
|
|
108
|
+
borderless: i,
|
|
109
|
+
wrapContent: l
|
|
110
|
+
}), n),
|
|
111
|
+
...d,
|
|
112
|
+
style: p
|
|
113
|
+
}, t) : /* @__PURE__ */ e.createElement("div", {
|
|
114
|
+
className: r(_({
|
|
115
|
+
lean: a,
|
|
116
|
+
borderless: i,
|
|
117
|
+
wrapContent: l
|
|
118
|
+
}), n),
|
|
119
|
+
...d,
|
|
120
|
+
style: p
|
|
121
|
+
}, t);
|
|
121
122
|
}
|
|
122
|
-
|
|
123
|
-
|
|
123
|
+
n.set(y, {
|
|
124
|
+
name: "Content Row Col",
|
|
125
|
+
props: {
|
|
126
|
+
borderless: { type: "boolean" },
|
|
127
|
+
lean: { type: "boolean" },
|
|
128
|
+
widthPx: { type: "number" },
|
|
129
|
+
widthRem: { type: "number" },
|
|
130
|
+
wrapContent: { type: "boolean" }
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
//#endregion
|
|
134
|
+
//#region src/content-row/content-row/ContentRow.css.ts
|
|
135
|
+
var ee = g({
|
|
136
|
+
defaultClassName: "pkg_sps-woodland_core__family_content-row__version_8_56_3__hash_1m5rxhv4",
|
|
137
|
+
variantClassNames: { expanded: {
|
|
138
|
+
true: "pkg_sps-woodland_core__family_content-row__version_8_56_3__hash_1m5rxhv5",
|
|
139
|
+
false: "pkg_sps-woodland_core__family_content-row__version_8_56_3__hash_1m5rxhv6"
|
|
140
|
+
} },
|
|
141
|
+
defaultVariants: { expanded: !1 },
|
|
142
|
+
compoundVariants: []
|
|
143
|
+
}), te = g({
|
|
144
|
+
defaultClassName: "pkg_sps-woodland_core__family_content-row__version_8_56_3__hash_1m5rxhv7",
|
|
145
|
+
variantClassNames: {
|
|
146
|
+
cardSpacing: {
|
|
147
|
+
true: "pkg_sps-woodland_core__family_content-row__version_8_56_3__hash_1m5rxhv8",
|
|
148
|
+
false: "pkg_sps-woodland_core__family_content-row__version_8_56_3__hash_1m5rxhv9"
|
|
149
|
+
},
|
|
150
|
+
expanded: {
|
|
151
|
+
true: "pkg_sps-woodland_core__family_content-row__version_8_56_3__hash_1m5rxhva",
|
|
152
|
+
false: "pkg_sps-woodland_core__family_content-row__version_8_56_3__hash_1m5rxhvb"
|
|
153
|
+
},
|
|
154
|
+
selected: {
|
|
155
|
+
true: "pkg_sps-woodland_core__family_content-row__version_8_56_3__hash_1m5rxhvc",
|
|
156
|
+
false: "pkg_sps-woodland_core__family_content-row__version_8_56_3__hash_1m5rxhvd"
|
|
157
|
+
},
|
|
158
|
+
reorderable: {
|
|
159
|
+
true: "pkg_sps-woodland_core__family_content-row__version_8_56_3__hash_1m5rxhve",
|
|
160
|
+
false: "pkg_sps-woodland_core__family_content-row__version_8_56_3__hash_1m5rxhvf"
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
defaultVariants: {
|
|
164
|
+
expanded: !1,
|
|
165
|
+
selected: !1,
|
|
166
|
+
cardSpacing: !1
|
|
167
|
+
},
|
|
168
|
+
compoundVariants: [[{
|
|
169
|
+
expanded: !0,
|
|
170
|
+
cardSpacing: !0
|
|
171
|
+
}, "pkg_sps-woodland_core__family_content-row__version_8_56_3__hash_1m5rxhvg"]]
|
|
172
|
+
}), ne = g({
|
|
173
|
+
defaultClassName: "pkg_sps-woodland_core__family_content-row__version_8_56_3__hash_1m5rxhvh",
|
|
174
|
+
variantClassNames: {
|
|
175
|
+
selected: {
|
|
176
|
+
true: "pkg_sps-woodland_core__family_content-row__version_8_56_3__hash_1m5rxhvi",
|
|
177
|
+
false: "pkg_sps-woodland_core__family_content-row__version_8_56_3__hash_1m5rxhvj"
|
|
178
|
+
},
|
|
179
|
+
expanded: {
|
|
180
|
+
true: "pkg_sps-woodland_core__family_content-row__version_8_56_3__hash_1m5rxhvk",
|
|
181
|
+
false: "pkg_sps-woodland_core__family_content-row__version_8_56_3__hash_1m5rxhvl"
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
defaultVariants: {
|
|
185
|
+
selected: !1,
|
|
186
|
+
expanded: !1
|
|
187
|
+
},
|
|
188
|
+
compoundVariants: []
|
|
189
|
+
}), re = "pkg_sps-woodland_core__family_content-row__version_8_56_3__hash_1m5rxhvm", ie = "pkg_sps-woodland_core__family_content-row__version_8_56_3__hash_1m5rxhvn", b = g({
|
|
190
|
+
defaultClassName: "pkg_sps-woodland_core__family_content-row__version_8_56_3__hash_1m5rxhvo",
|
|
191
|
+
variantClassNames: { disabled: {
|
|
192
|
+
true: "pkg_sps-woodland_core__family_content-row__version_8_56_3__hash_1m5rxhvp",
|
|
193
|
+
false: "pkg_sps-woodland_core__family_content-row__version_8_56_3__hash_1m5rxhvq"
|
|
194
|
+
} },
|
|
195
|
+
defaultVariants: {},
|
|
196
|
+
compoundVariants: []
|
|
197
|
+
}), x = g({
|
|
198
|
+
defaultClassName: "pkg_sps-woodland_core__family_content-row__version_8_56_3__hash_1m5rxhvr",
|
|
199
|
+
variantClassNames: { __autoLayout: {
|
|
200
|
+
true: "pkg_sps-woodland_core__family_content-row__version_8_56_3__hash_1m5rxhvs",
|
|
201
|
+
false: "pkg_sps-woodland_core__family_content-row__version_8_56_3__hash_1m5rxhvt"
|
|
202
|
+
} },
|
|
203
|
+
defaultVariants: { __autoLayout: !1 },
|
|
204
|
+
compoundVariants: []
|
|
205
|
+
}), ae = "pkg_sps-woodland_core__family_content-row__version_8_56_3__hash_1m5rxhvv", S = g({
|
|
206
|
+
defaultClassName: "pkg_sps-woodland_core__family_content-row__version_8_56_3__hash_1m5rxhvw",
|
|
207
|
+
variantClassNames: { reorderable: {
|
|
208
|
+
true: "pkg_sps-woodland_core__family_content-row__version_8_56_3__hash_1m5rxhvx",
|
|
209
|
+
false: "pkg_sps-woodland_core__family_content-row__version_8_56_3__hash_1m5rxhvy"
|
|
210
|
+
} },
|
|
211
|
+
defaultVariants: { reorderable: !1 },
|
|
212
|
+
compoundVariants: []
|
|
213
|
+
}), C = "pkg_sps-woodland_core__family_content-row__version_8_56_3__hash_1m5rxhvz", oe = "pkg_sps-woodland_core__family_content-row__version_8_56_3__hash_1m5rxhv10", w = "pkg_sps-woodland_core__family_content-row__version_8_56_3__hash_1m5rxhv11", T = g({
|
|
214
|
+
defaultClassName: "pkg_sps-woodland_core__family_content-row__version_8_56_3__hash_1m5rxhv12",
|
|
215
|
+
variantClassNames: {
|
|
216
|
+
disabled: {
|
|
217
|
+
true: "pkg_sps-woodland_core__family_content-row__version_8_56_3__hash_1m5rxhv13",
|
|
218
|
+
false: "pkg_sps-woodland_core__family_content-row__version_8_56_3__hash_1m5rxhv14"
|
|
219
|
+
},
|
|
220
|
+
up: {
|
|
221
|
+
true: "pkg_sps-woodland_core__family_content-row__version_8_56_3__hash_1m5rxhv15",
|
|
222
|
+
false: "pkg_sps-woodland_core__family_content-row__version_8_56_3__hash_1m5rxhv16"
|
|
223
|
+
},
|
|
224
|
+
down: {
|
|
225
|
+
true: "pkg_sps-woodland_core__family_content-row__version_8_56_3__hash_1m5rxhv17",
|
|
226
|
+
false: "pkg_sps-woodland_core__family_content-row__version_8_56_3__hash_1m5rxhv18"
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
defaultVariants: {
|
|
230
|
+
disabled: !1,
|
|
231
|
+
up: !1,
|
|
232
|
+
down: !1
|
|
233
|
+
},
|
|
234
|
+
compoundVariants: []
|
|
124
235
|
});
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
kind: z.ICON,
|
|
232
|
-
icon: M.CHEVRON_UP,
|
|
233
|
-
onClick: () => k(d, d - 1),
|
|
234
|
-
disabled: !I
|
|
235
|
-
}
|
|
236
|
-
)), /* @__PURE__ */ e.createElement("section", { className: Q({ reorderable: C }) }, /* @__PURE__ */ e.createElement(
|
|
237
|
-
K,
|
|
238
|
-
{
|
|
239
|
-
className: X({
|
|
240
|
-
down: !0,
|
|
241
|
-
disabled: !L
|
|
242
|
-
}),
|
|
243
|
-
kind: z.ICON,
|
|
244
|
-
icon: M.CHEVRON_DOWN,
|
|
245
|
-
onClick: () => k(d, d + 1),
|
|
246
|
-
disabled: !L
|
|
247
|
-
}
|
|
248
|
-
))),
|
|
249
|
-
w && !a && /* @__PURE__ */ e.createElement(m, { widthPx: 46 }, /* @__PURE__ */ e.createElement(x, null)),
|
|
250
|
-
g && !a && !b && /* @__PURE__ */ e.createElement(m, { widthPx: 44 }, E),
|
|
251
|
-
g && w && a && /* @__PURE__ */ e.createElement(m, { widthPx: 46 }, b ? /* @__PURE__ */ e.createElement(x, null) : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("section", { className: N }, /* @__PURE__ */ e.createElement(x, null)), /* @__PURE__ */ e.createElement("section", { className: N }, E))),
|
|
252
|
-
T
|
|
253
|
-
), A && g);
|
|
254
|
-
return C ? /* @__PURE__ */ e.createElement("div", { className: ge }, /* @__PURE__ */ e.createElement("div", { className: s(xe, n) }, /* @__PURE__ */ e.createElement("div", { className: Ce }, /* @__PURE__ */ e.createElement(
|
|
255
|
-
se,
|
|
256
|
-
{
|
|
257
|
-
className: be,
|
|
258
|
-
value: R,
|
|
259
|
-
onChange: oe,
|
|
260
|
-
onBlur: () => D(),
|
|
261
|
-
onKeyUp: (v) => {
|
|
262
|
-
v.key === "Enter" && D();
|
|
263
|
-
},
|
|
264
|
-
notClearable: !0
|
|
265
|
-
}
|
|
266
|
-
))), F) : F;
|
|
236
|
+
//#endregion
|
|
237
|
+
//#region src/content-row/content-row-expansion/ContentRowExpansion.tsx
|
|
238
|
+
function E({ children: t, className: n, __autoLayout: i = !1, ...a }) {
|
|
239
|
+
return i ? /* @__PURE__ */ e.createElement("tr", null, /* @__PURE__ */ e.createElement("td", {
|
|
240
|
+
className: r(x({ __autoLayout: i }), n),
|
|
241
|
+
colSpan: 100,
|
|
242
|
+
...a
|
|
243
|
+
}, t)) : /* @__PURE__ */ e.createElement("div", {
|
|
244
|
+
className: r(x({ __autoLayout: i }), n),
|
|
245
|
+
...a
|
|
246
|
+
}, t);
|
|
247
|
+
}
|
|
248
|
+
n.set(E, { name: "Content Row Expansion" });
|
|
249
|
+
//#endregion
|
|
250
|
+
//#region src/content-row/content-row/ContentRow.tsx
|
|
251
|
+
function D({ children: n, className: i, alternateLayout: f = !1, initiallyExpanded: p = !1, cardSpacing: m = !1, expanded: h, onBeforeCollapsed: g, onBeforeExpanded: _, onSelectionChange: v, onCollapsed: x, onExpanded: D, selectable: O = !1, selected: k, selectIndeterminate: A, renderExpandedContent: j = !0, disableSelection: M = !1, disableExpansion: N = !1, hideExpansionControl: P = !1, __autoLayout: F = !1, __reorderable: I = !1, __onOrderChange: L = () => {}, __index: R = 0, __canBeMovedUp: z, __canBeMovedDown: B, ...V }) {
|
|
252
|
+
let [H, [U]] = a(n, [{ type: y }, { type: E }]), { t: se } = l(), [ce, W] = e.useState(j || p), [le, G] = e.useState(p), K = typeof h == "boolean" ? h : le, q = F ? K : ce, [J, Y] = e.useState((R + 1).toString() || "");
|
|
253
|
+
e.useEffect(() => {
|
|
254
|
+
Y((R + 1).toString() || "");
|
|
255
|
+
}, [R]);
|
|
256
|
+
function ue(e) {
|
|
257
|
+
Y(e.target.value);
|
|
258
|
+
}
|
|
259
|
+
function X() {
|
|
260
|
+
Number(J) ? L(R, Number(J) - 1) : (Y((R + 1).toString() || ""), L(R, R));
|
|
261
|
+
}
|
|
262
|
+
function de(e) {
|
|
263
|
+
e.stopPropagation(), K && (!g || g()) ? (G(!1), j || W(!1), x && x()) : !K && (!_ || _()) && (G(!0), j || W(!0), D && D());
|
|
264
|
+
}
|
|
265
|
+
let Z = () => /* @__PURE__ */ e.createElement(s, {
|
|
266
|
+
disabled: M,
|
|
267
|
+
checked: k,
|
|
268
|
+
indeterminate: A,
|
|
269
|
+
onChange: v
|
|
270
|
+
}), Q = /* @__PURE__ */ e.createElement("button", {
|
|
271
|
+
type: "button",
|
|
272
|
+
className: r(ie),
|
|
273
|
+
onClick: de,
|
|
274
|
+
"aria-label": se(`contentRow.${K ? "collapse" : "expand"}`, { defaultValue: `${K ? "Collapse" : "Expand"}` }),
|
|
275
|
+
disabled: N
|
|
276
|
+
}, /* @__PURE__ */ e.createElement(t, {
|
|
277
|
+
className: r(b({ disabled: N })),
|
|
278
|
+
icon: K ? "minus-circle" : "plus-circle"
|
|
279
|
+
}));
|
|
280
|
+
if (F) {
|
|
281
|
+
let t = /* @__PURE__ */ e.createElement("tr", null, /* @__PURE__ */ e.createElement("td", {
|
|
282
|
+
className: r(re),
|
|
283
|
+
colSpan: 100
|
|
284
|
+
}));
|
|
285
|
+
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("tr", {
|
|
286
|
+
className: r(ne({
|
|
287
|
+
selected: k || A,
|
|
288
|
+
expanded: K
|
|
289
|
+
})),
|
|
290
|
+
...V
|
|
291
|
+
}, O && !f && /* @__PURE__ */ e.createElement(y, {
|
|
292
|
+
widthPx: 46,
|
|
293
|
+
__autoLayout: !0
|
|
294
|
+
}, /* @__PURE__ */ e.createElement(Z, null)), U && !f && !P && /* @__PURE__ */ e.createElement(y, {
|
|
295
|
+
widthPx: 44,
|
|
296
|
+
__autoLayout: !0
|
|
297
|
+
}, Q), U && O && f && /* @__PURE__ */ e.createElement(y, {
|
|
298
|
+
widthPx: 46,
|
|
299
|
+
__autoLayout: !0
|
|
300
|
+
}, P ? /* @__PURE__ */ e.createElement(Z, null) : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("section", { className: "pkg_sps-woodland_core__family_content-row__version_8_56_3__hash_1m5rxhvu" }, /* @__PURE__ */ e.createElement(Z, null)), /* @__PURE__ */ e.createElement("section", { className: "pkg_sps-woodland_core__family_content-row__version_8_56_3__hash_1m5rxhvu" }, Q))), H), q && U, t);
|
|
301
|
+
}
|
|
302
|
+
let $ = /* @__PURE__ */ e.createElement("div", {
|
|
303
|
+
className: r(ee({ expanded: K }), i),
|
|
304
|
+
...V
|
|
305
|
+
}, /* @__PURE__ */ e.createElement("div", { className: r(te({
|
|
306
|
+
expanded: K,
|
|
307
|
+
selected: k,
|
|
308
|
+
cardSpacing: m,
|
|
309
|
+
reorderable: I
|
|
310
|
+
})) }, I && /* @__PURE__ */ e.createElement(y, {
|
|
311
|
+
widthPx: 53,
|
|
312
|
+
style: { position: "relative" }
|
|
313
|
+
}, /* @__PURE__ */ e.createElement("section", { className: S({ reorderable: I }) }, /* @__PURE__ */ e.createElement(o, {
|
|
314
|
+
className: T({
|
|
315
|
+
up: !0,
|
|
316
|
+
disabled: !z
|
|
317
|
+
}),
|
|
318
|
+
kind: u.ICON,
|
|
319
|
+
icon: d.CHEVRON_UP,
|
|
320
|
+
onClick: () => L(R, R - 1),
|
|
321
|
+
disabled: !z
|
|
322
|
+
})), /* @__PURE__ */ e.createElement("section", { className: S({ reorderable: I }) }, /* @__PURE__ */ e.createElement(o, {
|
|
323
|
+
className: T({
|
|
324
|
+
down: !0,
|
|
325
|
+
disabled: !B
|
|
326
|
+
}),
|
|
327
|
+
kind: u.ICON,
|
|
328
|
+
icon: d.CHEVRON_DOWN,
|
|
329
|
+
onClick: () => L(R, R + 1),
|
|
330
|
+
disabled: !B
|
|
331
|
+
}))), O && !f && /* @__PURE__ */ e.createElement(y, { widthPx: 46 }, /* @__PURE__ */ e.createElement(Z, null)), U && !f && !P && /* @__PURE__ */ e.createElement(y, { widthPx: 44 }, Q), U && O && f && /* @__PURE__ */ e.createElement(y, { widthPx: 46 }, P ? /* @__PURE__ */ e.createElement(Z, null) : /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("section", { className: "pkg_sps-woodland_core__family_content-row__version_8_56_3__hash_1m5rxhvu" }, /* @__PURE__ */ e.createElement(Z, null)), /* @__PURE__ */ e.createElement("section", { className: "pkg_sps-woodland_core__family_content-row__version_8_56_3__hash_1m5rxhvu" }, Q))), H), q && U);
|
|
332
|
+
return I ? /* @__PURE__ */ e.createElement("div", { className: ae }, /* @__PURE__ */ e.createElement("div", { className: r(C, i) }, /* @__PURE__ */ e.createElement("div", { className: oe }, /* @__PURE__ */ e.createElement(c, {
|
|
333
|
+
className: w,
|
|
334
|
+
value: J,
|
|
335
|
+
onChange: ue,
|
|
336
|
+
onBlur: () => X(),
|
|
337
|
+
onKeyUp: (e) => {
|
|
338
|
+
e.key === "Enter" && X();
|
|
339
|
+
},
|
|
340
|
+
notClearable: !0
|
|
341
|
+
}))), $) : $;
|
|
267
342
|
}
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
343
|
+
n.set(D, {
|
|
344
|
+
name: "Content Row",
|
|
345
|
+
props: {
|
|
346
|
+
alternateLayout: {
|
|
347
|
+
type: "boolean",
|
|
348
|
+
default: "false"
|
|
349
|
+
},
|
|
350
|
+
initiallyExpanded: {
|
|
351
|
+
type: "boolean",
|
|
352
|
+
default: "false"
|
|
353
|
+
},
|
|
354
|
+
cardSpacing: {
|
|
355
|
+
type: "boolean",
|
|
356
|
+
default: "false"
|
|
357
|
+
},
|
|
358
|
+
expanded: { type: "boolean" },
|
|
359
|
+
onBeforeCollapsed: { type: "() => boolean" },
|
|
360
|
+
onBeforeExpanded: { type: "() => boolean" },
|
|
361
|
+
onSelectionChange: { type: "ChangeEventHandler" },
|
|
362
|
+
onCollapsed: { type: "() => void" },
|
|
363
|
+
onExpanded: { type: "() => void" },
|
|
364
|
+
selectable: {
|
|
365
|
+
type: "boolean",
|
|
366
|
+
default: "false"
|
|
367
|
+
},
|
|
368
|
+
selected: { type: "boolean" },
|
|
369
|
+
renderExpandedContent: {
|
|
370
|
+
type: "boolean",
|
|
371
|
+
default: "true"
|
|
372
|
+
},
|
|
373
|
+
disableSelection: {
|
|
374
|
+
type: "boolean",
|
|
375
|
+
default: "false"
|
|
376
|
+
},
|
|
377
|
+
disableExpansion: {
|
|
378
|
+
type: "boolean",
|
|
379
|
+
default: "false"
|
|
380
|
+
},
|
|
381
|
+
hideExpansionControl: {
|
|
382
|
+
type: "boolean",
|
|
383
|
+
default: "false"
|
|
384
|
+
}
|
|
385
|
+
}
|
|
287
386
|
});
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
387
|
+
//#endregion
|
|
388
|
+
//#region src/content-row/row-list-auto-layout/RowListAutoLayout.css.ts
|
|
389
|
+
var O = g({
|
|
390
|
+
defaultClassName: "pkg_sps-woodland_core__family_content-row__version_8_56_3__hash_14j3gmi0",
|
|
391
|
+
variantClassNames: { wrapContent: {
|
|
392
|
+
true: "pkg_sps-woodland_core__family_content-row__version_8_56_3__hash_14j3gmi1",
|
|
393
|
+
false: "pkg_sps-woodland_core__family_content-row__version_8_56_3__hash_14j3gmi2"
|
|
394
|
+
} },
|
|
395
|
+
defaultVariants: { wrapContent: !1 },
|
|
396
|
+
compoundVariants: []
|
|
397
|
+
}), k = /* @__PURE__ */ new Set([
|
|
398
|
+
"Content Row",
|
|
399
|
+
"Content Row Col",
|
|
400
|
+
"Content Row Expansion",
|
|
401
|
+
"Sorting Header",
|
|
402
|
+
"Sorting Header Cell"
|
|
295
403
|
]);
|
|
296
|
-
function
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
})
|
|
302
|
-
const t = e.useMemo(
|
|
303
|
-
() => re(_, (r) => f.isWoodlandComponent(r.type) && Ne.has(f.get(r.type).name) ? [
|
|
304
|
-
{
|
|
305
|
-
__autoLayout: !0
|
|
306
|
-
}
|
|
307
|
-
] : [{}]),
|
|
308
|
-
[_]
|
|
309
|
-
), [[l], c] = e.useMemo(
|
|
310
|
-
() => Y(t, [
|
|
311
|
-
{
|
|
312
|
-
type: (r) => !!(f.isWoodlandComponent(r.type) && f.get(r.type).name === "Sorting Header")
|
|
313
|
-
}
|
|
314
|
-
]),
|
|
315
|
-
[t]
|
|
316
|
-
);
|
|
317
|
-
return /* @__PURE__ */ e.createElement("table", { className: s(Ee({ wrapContent: a }), n), ...o }, l ? /* @__PURE__ */ e.createElement("thead", null, l) : null, /* @__PURE__ */ e.createElement("tbody", null, c));
|
|
404
|
+
function A({ children: t, className: o, wrapContent: s = !1, ...c }) {
|
|
405
|
+
let l = e.useMemo(() => i(t, (e) => n.isWoodlandComponent(e.type) && k.has(n.get(e.type).name) ? [{ __autoLayout: !0 }] : [{}]), [t]), [[u], d] = e.useMemo(() => a(l, [{ type: (e) => !!(n.isWoodlandComponent(e.type) && n.get(e.type).name === "Sorting Header") }]), [l]);
|
|
406
|
+
return /* @__PURE__ */ e.createElement("table", {
|
|
407
|
+
className: r(O({ wrapContent: s }), o),
|
|
408
|
+
...c
|
|
409
|
+
}, u ? /* @__PURE__ */ e.createElement("thead", null, u) : null, /* @__PURE__ */ e.createElement("tbody", null, d));
|
|
318
410
|
}
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
411
|
+
n.set(A, {
|
|
412
|
+
name: "Row List Auto Layout",
|
|
413
|
+
props: { wrapContent: {
|
|
414
|
+
type: "boolean",
|
|
415
|
+
default: "false"
|
|
416
|
+
} }
|
|
324
417
|
});
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
m as ContentRowCol,
|
|
328
|
-
Z as ContentRowExpansion,
|
|
329
|
-
qe as RowListAutoLayout
|
|
330
|
-
};
|
|
418
|
+
//#endregion
|
|
419
|
+
export { D as ContentRow, y as ContentRowCol, E as ContentRowExpansion, A as RowListAutoLayout };
|