@sps-woodland/core 8.56.21 → 8.56.23
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 +1 -2
- package/lib/action-bar/action-bar/ActionBar.ve.js +2 -3
- package/lib/action-bar/action-bar-additional-content/ActionBarAdditionalContent.js +1 -2
- package/lib/action-bar/index.js +3 -3
- package/lib/action-bar/style.css +1 -1
- package/lib/add-to-list/add-to-list/AddToList.js +65 -66
- package/lib/add-to-list/add-to-list/AddToList.ve.js +34 -35
- package/lib/add-to-list/add-to-list/ItemsList.js +4 -5
- package/lib/add-to-list/add-to-list/ListItem.js +2 -3
- package/lib/add-to-list/style.css +1 -1
- package/lib/buttons/button/Button.js +3 -4
- package/lib/buttons/button/Button.ve.js +58 -59
- package/lib/buttons/style.css +1 -1
- package/lib/cards/card/Card.js +1 -2
- package/lib/cards/card/Card.ve.js +2 -3
- package/lib/cards/card-footer/CardFooter.js +1 -2
- package/lib/cards/card-footer/CardFooter.ve.js +2 -3
- package/lib/cards/card-header/CardHeader.js +1 -2
- package/lib/cards/card-header/CardHeader.ve.js +2 -3
- package/lib/cards/card-title/CardTitle.js +1 -2
- package/lib/cards/card-title/CardTitle.ve.js +2 -3
- package/lib/cards/index.js +3 -3
- package/lib/cards/style.css +4 -4
- package/lib/column-manager/column-manager/ColumnManager.js +1 -2
- package/lib/column-manager/column-manager/useColumnManager.js +1 -2
- package/lib/components/icon/Icon.ve.js +7 -8
- package/lib/components/icon/icons/sprite.svg.js +1 -2
- package/lib/content-row/content-row/ContentRow.js +17 -18
- package/lib/content-row/content-row/ContentRow.ve.js +39 -40
- package/lib/content-row/content-row-col/ContentRowCol.js +1 -2
- package/lib/content-row/content-row-col/ContentRowCol.ve.js +16 -17
- package/lib/content-row/content-row-expansion/ContentRowExpansion.js +1 -2
- package/lib/content-row/index.js +4 -4
- package/lib/content-row/row-list-auto-layout/RowListAutoLayout.js +1 -2
- package/lib/content-row/row-list-auto-layout/RowListAutoLayout.ve.js +5 -6
- package/lib/content-row/style.css +3 -3
- package/lib/content-tiles/content-tile/ContentTile.js +4 -5
- package/lib/content-tiles/content-tile/ContentTile.ve.js +15 -16
- package/lib/content-tiles/content-tile-list/ContentTileList.js +1 -2
- package/lib/content-tiles/content-tile-list/ContentTileList.ve.js +2 -3
- package/lib/content-tiles/style.css +2 -2
- package/lib/dropdowns/dropdown/Dropdown.js +2 -3
- package/lib/dropdowns/dropdown/Dropdown.ve.js +17 -18
- package/lib/dropdowns/index.js +3 -3
- package/lib/dropdowns/option-list/Option.js +2 -3
- package/lib/dropdowns/option-list/Option.ve.js +2 -3
- package/lib/dropdowns/option-list/OptionList.js +2 -3
- package/lib/dropdowns/option-list/OptionList.ve.js +2 -3
- package/lib/dropdowns/style.css +3 -3
- package/lib/editable-table/EditableTable.js +1 -2
- package/lib/feedback-block/FeedbackBlock.js +1 -2
- package/lib/feedback-block/FeedbackBlock.ve.js +22 -23
- package/lib/feedback-block/style.css +1 -1
- package/lib/file-upload/file-upload/FileUpload.js +5 -6
- package/lib/file-upload/file-upload/FileUpload.ve.js +30 -31
- package/lib/file-upload/file-upload/mime-type.enum.js +1 -2
- package/lib/file-upload/style.css +1 -1
- package/lib/filter-tiles/filter-tile/FilterTile.js +1 -2
- package/lib/filter-tiles/filter-tile/FilterTile.ve.js +22 -23
- package/lib/filter-tiles/filter-tile-set/FilterTileSet.js +1 -2
- package/lib/filter-tiles/filter-tile-set/FilterTileSet.ve.js +2 -3
- package/lib/filter-tiles/style.css +2 -2
- package/lib/focused-task/focused-task/FocusedTask.js +9 -10
- package/lib/focused-task/focused-task/FocusedTask.ve.js +7 -8
- package/lib/focused-task/focused-task/useFocusedTask.js +1 -2
- package/lib/focused-task/focused-task-actions/FocusedTaskActions.js +1 -2
- package/lib/focused-task/index.js +4 -4
- package/lib/focused-task/style.css +1 -1
- package/lib/growler/Growler.js +2 -3
- package/lib/growler/Growler.ve.js +12 -13
- package/lib/growler/GrowlerListProvider.js +12 -13
- package/lib/growler/Sonner.ve.js +10 -11
- package/lib/growler/sonner.js +1 -2
- package/lib/growler/style.css +2 -2
- package/lib/index.js +64 -100
- package/lib/index.umd.cjs +2 -2
- package/lib/insight-card/InsightCard.js +1 -2
- package/lib/insight-card/InsightCard.ve.js +55 -56
- package/lib/insight-card/InsightCardSet.js +1 -2
- package/lib/insight-card/style.css +1 -1
- package/lib/key-value-set/key-value-set/KeyValueSet.js +1 -2
- package/lib/key-value-set/key-value-set/KeyValueSet.ve.js +4 -5
- package/lib/key-value-set/key-value-set-item/KeyValueSetItem.js +1 -2
- package/lib/key-value-set/key-value-set-item/KeyValueSetItem.ve.js +6 -7
- package/lib/key-value-set/style.css +2 -2
- package/lib/list-bar/advanced-search/AdvancedSearch.js +1 -2
- package/lib/list-bar/advanced-search/AdvancedSearch.ve.js +11 -12
- package/lib/list-bar/index.js +7 -7
- package/lib/list-bar/list-bar/InputGroupWrapper.js +1 -2
- package/lib/list-bar/list-bar/ListBar.js +16 -17
- package/lib/list-bar/list-bar/ListBar.ve.js +6 -7
- package/lib/list-bar/list-bar/ListBarSearch.js +1 -2
- package/lib/list-bar/list-bar/ListBarSearchInfo.js +1 -2
- package/lib/list-bar/list-bar/ListBarSortBy.js +1 -2
- package/lib/list-bar/search-results-bar/SearchResultsBar.js +3 -4
- package/lib/list-bar/search-results-bar/SearchResultsBar.ve.js +2 -3
- package/lib/list-bar/style.css +3 -3
- package/lib/matrix/matrix/Matrix.js +1 -2
- package/lib/matrix/matrix/Matrix.ve.js +2 -3
- package/lib/matrix/matrix-body/MatrixBody.js +1 -2
- package/lib/matrix/matrix-cell/MatrixCell.js +1 -2
- package/lib/matrix/matrix-head/MatrixHead.js +1 -2
- package/lib/matrix/matrix-header/MatrixHeader.js +1 -2
- package/lib/matrix/matrix-row/MatrixRow.js +1 -2
- package/lib/matrix/style.css +1 -1
- package/lib/modal/index.js +4 -4
- package/lib/modal/modal/Modal.js +15 -16
- package/lib/modal/modal/Modal.ve.js +25 -26
- package/lib/modal/modal/useModal.js +1 -2
- package/lib/modal/modal-footer/ModalFooter.js +1 -2
- package/lib/modal/style.css +1 -1
- package/lib/node_modules/.pnpm/@vanilla-extract_recipes@0.5.7_@vanilla-extract_css@1.21.3/node_modules/@vanilla-extract/recipes/dist/createRuntimeFn-62c9670f.esm.js +1 -2
- package/lib/node_modules/.pnpm/nanoid@5.1.16/node_modules/nanoid/index.browser.js +1 -2
- package/lib/node_modules/.pnpm/nanoid@5.1.16/node_modules/nanoid/url-alphabet/index.js +1 -2
- package/lib/page-title/heading-level/HeadingLevel.js +1 -2
- package/lib/page-title/index.js +4 -4
- package/lib/page-title/page-subtitle/PageSubtitle.js +1 -2
- package/lib/page-title/page-subtitle/PageSubtitle.ve.js +2 -3
- package/lib/page-title/page-title/PageTitle.js +1 -2
- package/lib/page-title/page-title/PageTitle.ve.js +2 -3
- package/lib/page-title/style.css +2 -2
- package/lib/photo/photo/Photo.js +1 -2
- package/lib/photo/photo/Photo.ve.js +9 -10
- package/lib/photo/photo-carousel/PhotoCarousel.js +1 -2
- package/lib/photo/photo-carousel/PhotoCarousel.ve.js +6 -7
- package/lib/photo/style.css +2 -2
- package/lib/product-bar/hooks/usePriorityPlus.js +1 -2
- package/lib/product-bar/index.js +4 -4
- package/lib/product-bar/product-bar/ProductBar.js +12 -13
- package/lib/product-bar/product-bar/ProductBar.ve.js +19 -20
- package/lib/product-bar/product-bar-name/ProductBarName.js +3 -4
- package/lib/product-bar/product-bar-overflow-menu/ProductBarOverflowMenu.js +4 -5
- package/lib/product-bar/product-bar-overflow-menu/ProductBarOverflowMenu.ve.js +2 -3
- package/lib/product-bar/product-bar-tab/ProductBarTab.js +2 -3
- package/lib/product-bar/slack-link/SlackLink.js +1 -2
- package/lib/product-bar/slack-link/SlackLink.ve.js +2 -3
- package/lib/product-bar/style.css +3 -3
- package/lib/product-bar-vertical/index.js +5 -5
- package/lib/product-bar-vertical/product-bar-vertical/ProductBarVertical.js +11 -12
- package/lib/product-bar-vertical/product-bar-vertical/ProductBarVertical.ve.js +25 -26
- package/lib/product-bar-vertical/product-bar-vertical-header/ProductBarVerticalHeader.js +2 -3
- package/lib/product-bar-vertical/product-bar-vertical-item/ProductBarVerticalItem.js +3 -4
- package/lib/product-bar-vertical/product-bar-vertical-section/ProductBarVerticalSection.js +6 -7
- package/lib/product-bar-vertical/style.css +1 -1
- package/lib/progress-indicators/index.js +3 -3
- package/lib/progress-indicators/progress-bar/ProgressBar.js +8 -9
- package/lib/progress-indicators/progress-bar/ProgressBar.ve.js +28 -29
- package/lib/progress-indicators/progress-bar/progress-bar-step/ProgressBarStep.js +1 -2
- package/lib/progress-indicators/progress-bar/progress-bar-step/ProgressBarStep.ve.js +45 -46
- package/lib/progress-indicators/progress-ring/ProgressRing.js +1 -2
- package/lib/progress-indicators/style.css +2 -2
- package/lib/rich-text-editor/rich-text-editor/RTELinkModal.js +1 -2
- package/lib/rich-text-editor/rich-text-editor/RTEToolbarButton.js +1 -2
- package/lib/rich-text-editor/rich-text-editor/RTEToolbarButton.ve.js +6 -7
- package/lib/rich-text-editor/rich-text-editor/RichTextEditor.js +3 -4
- package/lib/rich-text-editor/rich-text-editor/RichTextEditor.ve.js +9 -10
- package/lib/rich-text-editor/rich-text-editor/hooks/useHtmlToMd.js +1 -2
- package/lib/rich-text-editor/rich-text-editor/hooks/useMdToHtml.js +1 -2
- package/lib/rich-text-editor/rich-text-editor/hooks/useRTEContent.js +1 -2
- package/lib/rich-text-editor/rich-text-editor/hooks/useRTEObserver.js +1 -2
- package/lib/rich-text-editor/rich-text-editor/hooks/useRTESelectionListener.js +1 -2
- package/lib/rich-text-editor/rich-text-editor/hooks/useRTEToolbarButtons.js +64 -65
- package/lib/rich-text-editor/rich-text-editor/icons/BOLD.svg.js +1 -2
- package/lib/rich-text-editor/rich-text-editor/icons/INDENT.svg.js +1 -2
- package/lib/rich-text-editor/rich-text-editor/icons/ITALICS.svg.js +1 -2
- package/lib/rich-text-editor/rich-text-editor/icons/LINK.svg.js +1 -2
- package/lib/rich-text-editor/rich-text-editor/icons/ORDERED_LIST.svg.js +1 -2
- package/lib/rich-text-editor/rich-text-editor/icons/OUTDENT.svg.js +1 -2
- package/lib/rich-text-editor/rich-text-editor/icons/REDO.svg.js +1 -2
- package/lib/rich-text-editor/rich-text-editor/icons/UNDO.svg.js +1 -2
- package/lib/rich-text-editor/rich-text-editor/icons/UNLINK.svg.js +1 -2
- package/lib/rich-text-editor/rich-text-editor/icons/UNORDERED_LIST.svg.js +1 -2
- package/lib/rich-text-editor/rich-text-editor/utils/flattenListItemParagraphs.js +1 -2
- package/lib/rich-text-editor/rich-text-editor/utils/removeUnrepresentableBreaks.js +1 -2
- package/lib/rich-text-editor/rich-text-editor/utils/utils.js +1 -2
- package/lib/rich-text-editor/style.css +2 -2
- package/lib/scrollable-container/ScrollableContainer.js +1 -2
- package/lib/scrollable-container/ScrollableContainer.ve.js +2 -3
- package/lib/scrollable-container/style.css +1 -1
- package/lib/side-nav/index.js +4 -4
- package/lib/side-nav/side-nav/SideNav.js +13 -14
- package/lib/side-nav/side-nav/SideNav.ve.js +9 -10
- package/lib/side-nav/side-nav/navContext.js +1 -2
- package/lib/side-nav/side-nav-header/SideNavHeader.js +1 -2
- package/lib/side-nav/side-nav-item/SideNavItem.js +1 -2
- package/lib/side-nav/side-nav-section/SideNavSection.js +2 -3
- package/lib/side-nav/style.css +1 -1
- package/lib/sorting-header/caret/caret.ve.js +5 -6
- package/lib/sorting-header/index.js +3 -3
- package/lib/sorting-header/sorting-header/SortingHeader.js +1 -2
- package/lib/sorting-header/sorting-header/SortingHeader.ve.js +11 -12
- package/lib/sorting-header/sorting-header-cell/SortingHeaderCell.js +1 -2
- package/lib/sorting-header/sorting-header-cell/SortingHeaderCell.ve.js +8 -9
- package/lib/sorting-header/style.css +3 -3
- package/lib/style.css +1 -1
- package/lib/tabs/index.js +4 -4
- package/lib/tabs/style.css +2 -2
- package/lib/tabs/tab/Tab.js +1 -2
- package/lib/tabs/tab/Tab.ve.js +24 -25
- package/lib/tabs/tab-panel/TabPanel.js +1 -2
- package/lib/tabs/tabs/Tabs.js +8 -9
- package/lib/tabs/tabs/Tabs.ve.js +7 -8
- package/lib/tags/clickable-tag/ClickableTag.js +2 -3
- package/lib/tags/clickable-tag/ClickableTag.ve.js +23 -24
- package/lib/tags/split-tag/SplitTag.js +2 -3
- package/lib/tags/split-tag/SplitTag.ve.js +17 -18
- package/lib/tags/style.css +3 -3
- package/lib/tags/tag/Tag.js +1 -2
- package/lib/tags/tag/Tag.ve.js +21 -22
- package/lib/utils/cl.js +1 -2
- package/lib/zero-state/ZeroState.js +2 -3
- package/lib/zero-state/ZeroState.ve.js +13 -14
- package/lib/zero-state/style.css +1 -1
- package/package.json +11 -11
|
@@ -5,7 +5,7 @@ import * as d from "react";
|
|
|
5
5
|
import { useWoodlandLanguage as f } from "@spscommerce/i18n";
|
|
6
6
|
import { Button as p } from "@sps-woodland/core/button";
|
|
7
7
|
import { Tag as m } from "@sps-woodland/core/tag";
|
|
8
|
-
|
|
8
|
+
// src/action-bar/action-bar/ActionBar.tsx
|
|
9
9
|
function h({ className: c, children: h, clearSelected: g, itemsSelected: _, itemsSelectedLabel: v, clearSelectedLabel: y, ...b }) {
|
|
10
10
|
let { t: x } = f(), [S, C] = u(h, [{ type: s }]);
|
|
11
11
|
return Number(_) > 0 ? /* @__PURE__ */ d.createElement("div", {
|
|
@@ -42,5 +42,4 @@ c.set(h, {
|
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
});
|
|
45
|
-
//#endregion
|
|
46
45
|
export { h as ActionBar };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/* empty css */
|
|
2
|
-
|
|
3
|
-
var e = "pkg_sps-woodland_core__family_action-
|
|
4
|
-
//#endregion
|
|
2
|
+
// src/action-bar/action-bar/ActionBar.css.ts
|
|
3
|
+
var e = "pkg_sps-woodland_core__family_action-bar__version_8_56_23__hash_nz1a1l0", t = "pkg_sps-woodland_core__family_action-bar__version_8_56_23__hash_nz1a1l1", n = "pkg_sps-woodland_core__family_action-bar__version_8_56_23__hash_nz1a1l2", r = "pkg_sps-woodland_core__family_action-bar__version_8_56_23__hash_nz1a1l3", i = "pkg_sps-woodland_core__family_action-bar__version_8_56_23__hash_nz1a1l4", a = "pkg_sps-woodland_core__family_action-bar__version_8_56_23__hash_nz1a1l5", o = "pkg_sps-woodland_core__family_action-bar__version_8_56_23__hash_nz1a1l6", s = "pkg_sps-woodland_core__family_action-bar__version_8_56_23__hash_nz1a1l7";
|
|
5
4
|
export { a as actionButtons, s as additionalContent, o as clearSelected, t as content, n as contentMainBar, r as itemsSelected, i as itemsSelectedTag, e as root };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { additionalContent as e } from "../action-bar/ActionBar.ve.js";
|
|
2
2
|
import { Box as t, Metadata as n, cl as r } from "@sps-woodland/core";
|
|
3
3
|
import * as i from "react";
|
|
4
|
-
|
|
4
|
+
// src/action-bar/action-bar-additional-content/ActionBarAdditionalContent.tsx
|
|
5
5
|
function a({ className: n, children: a, ...o }) {
|
|
6
6
|
return /* @__PURE__ */ i.createElement(t, {
|
|
7
7
|
className: r(e, n),
|
|
@@ -12,5 +12,4 @@ n.set(a, {
|
|
|
12
12
|
name: "ActionBarAdditionalContent",
|
|
13
13
|
props: {}
|
|
14
14
|
});
|
|
15
|
-
//#endregion
|
|
16
15
|
export { a as ActionBarAdditionalContent };
|
package/lib/action-bar/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
1
|
+
import { ActionBar as e } from "./action-bar/ActionBar.js";
|
|
2
|
+
import { ActionBarAdditionalContent as t } from "./action-bar-additional-content/ActionBarAdditionalContent.js";
|
|
3
|
+
export { e as ActionBar, t as ActionBarAdditionalContent };
|
package/lib/action-bar/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.pkg_sps-woodland_core__family_action-
|
|
1
|
+
.pkg_sps-woodland_core__family_action-bar__version_8_56_23__hash_nz1a1l0{z-index:99;background-color:#fff;justify-content:center;padding:.5rem;display:flex;position:fixed;bottom:0;left:0;right:0;box-shadow:0 0 .25rem .25rem #1f282c1a}.pkg_sps-woodland_core__family_action-bar__version_8_56_23__hash_nz1a1l1{flex-direction:column;width:100%;max-width:1280px;padding-left:1.25rem;padding-right:1.25rem;display:flex}.pkg_sps-woodland_core__family_action-bar__version_8_56_23__hash_nz1a1l2{align-items:center;width:100%;height:2rem;display:flex}.pkg_sps-woodland_core__family_action-bar__version_8_56_23__hash_nz1a1l3{flex:1}.pkg_sps-woodland_core__family_action-bar__version_8_56_23__hash_nz1a1l4{margin-right:.25rem}.pkg_sps-woodland_core__family_action-bar__version_8_56_23__hash_nz1a1l5{flex:2;justify-content:center;align-items:center;display:flex}.pkg_sps-woodland_core__family_action-bar__version_8_56_23__hash_nz1a1l6{text-align:right;flex:1}.pkg_sps-woodland_core__family_action-bar__version_8_56_23__hash_nz1a1l7{margin-bottom:.5rem}
|
|
@@ -1,65 +1,65 @@
|
|
|
1
1
|
import { nanoid as e } from "../../node_modules/.pnpm/nanoid@5.1.16/node_modules/nanoid/index.browser.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { ItemsList as t } from "./ItemsList.js";
|
|
3
|
+
import { dragHandle as n, dragPreview as r, draggableBox as i, droppableContainer as a, flexListWrapper as o, leftList as s, offItems as c, phantomDroppableContainer as l, rightList as u, rowButton as d } from "./AddToList.ve.js";
|
|
4
4
|
import { ListItem as f } from "./ListItem.js";
|
|
5
5
|
import { Metadata as p, cl as m, useChildTestIdAttrBuilder as h } from "@sps-woodland/core";
|
|
6
6
|
import * as g from "react";
|
|
7
7
|
import { useWoodlandLanguage as ee } from "@spscommerce/i18n";
|
|
8
8
|
import { grid as _ } from "@sps-woodland/tokens";
|
|
9
9
|
import { Button as v } from "@sps-woodland/core/buttons";
|
|
10
|
-
import { DragPreview as
|
|
10
|
+
import { DragPreview as y, useButton as te, useDrag as ne, useDrop as re } from "react-aria";
|
|
11
11
|
import { SpsTextInput as ie, useSpsForm as ae } from "@spscommerce/ds-react";
|
|
12
12
|
import { SpsIcon as oe } from "@spscommerce/ds-shared";
|
|
13
13
|
import { DOCUMENT_SEARCH_NO_RESULTS_LARGE as se, DOCUMENT_SEARCH_NO_RESULTS_SMALL as ce } from "@sps-woodland/illustrations";
|
|
14
14
|
import { ZeroState as b } from "@sps-woodland/core/zero-state";
|
|
15
15
|
import { Card as x } from "@sps-woodland/core/card";
|
|
16
|
-
|
|
16
|
+
// src/add-to-list/add-to-list/AddToList.tsx
|
|
17
17
|
function S({ onList: p, offList: S, onHeader: C, offHeader: w, showFilter: le, showCount: T, showIcons: E, showMoveAllLinks: D, manualSort: O, maxDisplayedItems: ue, maxHeightPx: k, maxHeightRem: de, onChange: A, onListZeroState: j, offListZeroState: M, vertical: N = !1, onListAlphaSort: P = !0, "data-testid": F }) {
|
|
18
|
-
let I = h({ "data-testid": F }), { t: L } = ee(), { formValue:
|
|
18
|
+
let I = h({ "data-testid": F }), { t: L } = ee(), { formValue: R, formMeta: z } = ae({ filterString: "" }), [B, V] = g.useState(""), H = k ? k / 16 : de, U = H ? `${H}rem` : "", W = g.useCallback((t, n) => (!O && P || n === "right" ? [...t].sort((e, t) => e.label.localeCompare(t.label)) : t).map((t) => {
|
|
19
19
|
let n = { ...t };
|
|
20
20
|
return n.id ||= e(), n;
|
|
21
|
-
}), [O, P]),
|
|
21
|
+
}), [O, P]), G = g.useMemo(() => W(p, "left"), [p, W]), K = g.useMemo(() => W(S, "right"), [S, W]), q = g.useCallback((e) => !B || e.label.toLowerCase().includes(B.toLowerCase()), [B]), J = (e, t, n) => {
|
|
22
22
|
let r = n.find((t) => t.label === e);
|
|
23
|
-
r ? t ===
|
|
24
|
-
onList: [...
|
|
25
|
-
offList:
|
|
26
|
-
}) : n ===
|
|
27
|
-
onList:
|
|
28
|
-
offList: [...
|
|
23
|
+
r ? t === G ? A({
|
|
24
|
+
onList: [...G, r],
|
|
25
|
+
offList: K.filter((e) => e.label !== r.label)
|
|
26
|
+
}) : n === G && A({
|
|
27
|
+
onList: G.filter((e) => e.label !== r.label),
|
|
28
|
+
offList: [...K, r]
|
|
29
29
|
}) : console.error("could not remove item");
|
|
30
30
|
};
|
|
31
|
-
function
|
|
32
|
-
|
|
31
|
+
function fe(e) {
|
|
32
|
+
V(e.target.value);
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function Y(e) {
|
|
35
35
|
A(e === "left" ? {
|
|
36
|
-
onList:
|
|
37
|
-
offList: [...
|
|
36
|
+
onList: G.filter((e) => e.required),
|
|
37
|
+
offList: [...K, ...G.filter((e) => !e.required)]
|
|
38
38
|
} : {
|
|
39
|
-
onList: [...
|
|
39
|
+
onList: [...G, ...K],
|
|
40
40
|
offList: []
|
|
41
41
|
});
|
|
42
42
|
}
|
|
43
|
-
let
|
|
44
|
-
let { className: t, index: n, isPhantomDroppableContainer: r, children:
|
|
43
|
+
let X = g.useCallback((e) => {
|
|
44
|
+
let { className: t, index: n, isPhantomDroppableContainer: r, children: i, ...o } = e, s = g.useRef(null), { dropProps: c, isDropTarget: u } = re({
|
|
45
45
|
ref: s,
|
|
46
46
|
async onDrop(e) {
|
|
47
|
-
let t = await Promise.all(e.items.filter((e) => e.kind === "text" && e.types.has("text/plain")).map((e) => e.getText("text/plain"))), { index: r } = JSON.parse(t[0]), i = [...
|
|
47
|
+
let t = await Promise.all(e.items.filter((e) => e.kind === "text" && e.types.has("text/plain")).map((e) => e.getText("text/plain"))), { index: r } = JSON.parse(t[0]), i = [...G], [a] = i.splice(r, 1), o = n > r ? n - 1 : n;
|
|
48
48
|
i.splice(o, 0, a), A({
|
|
49
49
|
onList: i,
|
|
50
|
-
offList:
|
|
50
|
+
offList: K
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
53
|
});
|
|
54
54
|
return /* @__PURE__ */ g.createElement("div", {
|
|
55
55
|
ref: s,
|
|
56
|
-
...O ?
|
|
57
|
-
className: m(t, r ?
|
|
56
|
+
...O ? c : [],
|
|
57
|
+
className: m(t, r ? l({ isDropTarget: u }) : a({ isDropTarget: u })),
|
|
58
58
|
...I("droppable-container"),
|
|
59
59
|
...o
|
|
60
|
-
},
|
|
61
|
-
}, [
|
|
62
|
-
let { label:
|
|
60
|
+
}, i);
|
|
61
|
+
}, [G, O]), pe = g.useCallback((e) => {
|
|
62
|
+
let { label: t, data: a, listIndex: o, required: s } = e, c = g.useRef(null), l = g.useRef(null), u = {
|
|
63
63
|
...a,
|
|
64
64
|
index: o
|
|
65
65
|
}, { dragProps: d, dragButtonProps: f, isDragging: p } = ne({
|
|
@@ -68,64 +68,64 @@ function S({ onList: p, offList: S, onHeader: C, offHeader: w, showFilter: le, s
|
|
|
68
68
|
getItems() {
|
|
69
69
|
return [{ "text/plain": JSON.stringify(u) }];
|
|
70
70
|
}
|
|
71
|
-
}), { buttonProps: h } =
|
|
71
|
+
}), { buttonProps: h } = te(f, l);
|
|
72
72
|
return /* @__PURE__ */ g.createElement("div", {
|
|
73
73
|
...O ? d : {},
|
|
74
74
|
role: O ? "button" : "listitem",
|
|
75
75
|
tabIndex: 0,
|
|
76
|
-
id: `${
|
|
77
|
-
className: m(
|
|
76
|
+
id: `${t}${o}-drag`,
|
|
77
|
+
className: m(i({ isDragging: p })),
|
|
78
78
|
...I("draggable-item")
|
|
79
|
-
}, /* @__PURE__ */ g.createElement(
|
|
79
|
+
}, /* @__PURE__ */ g.createElement(X, { index: o }, O && /* @__PURE__ */ g.createElement("i", {
|
|
80
80
|
...h,
|
|
81
81
|
ref: l,
|
|
82
|
-
className: "pkg_sps-woodland_core__family_add-to-
|
|
83
|
-
}),
|
|
82
|
+
className: "pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx9k"
|
|
83
|
+
}), t, !s && /* @__PURE__ */ g.createElement(v, {
|
|
84
84
|
kind: "icon",
|
|
85
85
|
icon: "x",
|
|
86
86
|
"aria-label": L("addToList.remove", {
|
|
87
|
-
elementName:
|
|
88
|
-
defaultValue: `Remove ${
|
|
87
|
+
elementName: t,
|
|
88
|
+
defaultValue: `Remove ${t}`
|
|
89
89
|
}),
|
|
90
90
|
onClick: () => {
|
|
91
|
-
|
|
91
|
+
J(t, K, G);
|
|
92
92
|
},
|
|
93
|
-
className: "pkg_sps-woodland_core__family_add-to-
|
|
93
|
+
className: "pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx9x",
|
|
94
94
|
...I("move-item-button")
|
|
95
|
-
})), /* @__PURE__ */ g.createElement(
|
|
96
|
-
}, [
|
|
97
|
-
return /* @__PURE__ */ g.createElement("div", { "data-testid": F }, le && /* @__PURE__ */ g.createElement("div", { className: _.root }, /* @__PURE__ */ g.createElement("div", { className: m(_[12], "pkg_sps-woodland_core__family_add-to-
|
|
98
|
-
value:
|
|
99
|
-
formMeta:
|
|
95
|
+
})), /* @__PURE__ */ g.createElement(y, { ref: c }, () => /* @__PURE__ */ g.createElement("div", { className: r }, /* @__PURE__ */ g.createElement("i", { className: n }), t)));
|
|
96
|
+
}, [G, O]), Z = g.useMemo(() => G.filter(q), [G, q]), Q = g.useMemo(() => K.filter(q).slice(0, ue), [K, q]), me = !B && !!D && Z.length > 0, he = !B && !!D && Q.length > 0, ge = !B && K.length > Q.length, $ = !!O && !B && Z.length > 0 && !H;
|
|
97
|
+
return /* @__PURE__ */ g.createElement("div", { "data-testid": F }, le && /* @__PURE__ */ g.createElement("div", { className: _.root }, /* @__PURE__ */ g.createElement("div", { className: m(_[12], "pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx912") }, /* @__PURE__ */ g.createElement(ie, {
|
|
98
|
+
value: R.filterString,
|
|
99
|
+
formMeta: z.fields.filterString,
|
|
100
100
|
icon: oe.FILTER,
|
|
101
|
-
onChange:
|
|
101
|
+
onChange: fe,
|
|
102
102
|
...I("filter-input")
|
|
103
|
-
}))), /* @__PURE__ */ g.createElement("div", { className: m(
|
|
103
|
+
}))), /* @__PURE__ */ g.createElement("div", { className: m(o({ vertical: N })) }, /* @__PURE__ */ g.createElement(t, {
|
|
104
104
|
headerText: C,
|
|
105
|
-
showCount: !
|
|
105
|
+
showCount: !B && T,
|
|
106
106
|
showIcons: E,
|
|
107
107
|
showMoveAllLinks: me,
|
|
108
|
-
disableMoveAllLinks:
|
|
109
|
-
maxHeight:
|
|
108
|
+
disableMoveAllLinks: G.every((e) => e.required),
|
|
109
|
+
maxHeight: U,
|
|
110
110
|
vertical: N,
|
|
111
111
|
side: "left",
|
|
112
|
-
className:
|
|
112
|
+
className: s({ vertical: N }),
|
|
113
113
|
otherHeader: w,
|
|
114
|
-
itemCount:
|
|
115
|
-
moveAll:
|
|
114
|
+
itemCount: G.length,
|
|
115
|
+
moveAll: Y,
|
|
116
116
|
adjustForPhantomDroppableContainer: $,
|
|
117
117
|
...I("on-items-list")
|
|
118
|
-
}, Z.length > 0 ? /* @__PURE__ */ g.createElement(g.Fragment, null, O && !
|
|
118
|
+
}, Z.length > 0 ? /* @__PURE__ */ g.createElement(g.Fragment, null, O && !B && Z.map((e, t) => /* @__PURE__ */ g.createElement(g.Fragment, { key: e.id }, /* @__PURE__ */ g.createElement(pe, {
|
|
119
119
|
data: e,
|
|
120
120
|
label: e.label,
|
|
121
121
|
required: e.required,
|
|
122
122
|
listIndex: t
|
|
123
|
-
}), t === Z.length - 1 && /* @__PURE__ */ g.createElement(
|
|
123
|
+
}), t === Z.length - 1 && /* @__PURE__ */ g.createElement(X, {
|
|
124
124
|
isPhantomDroppableContainer: !0,
|
|
125
125
|
index: t + 1
|
|
126
|
-
}))), (!O ||
|
|
126
|
+
}))), (!O || B) && Z.map((e) => /* @__PURE__ */ g.createElement(f, {
|
|
127
127
|
key: e.id,
|
|
128
|
-
filtering: !!
|
|
128
|
+
filtering: !!B,
|
|
129
129
|
manualSorting: O,
|
|
130
130
|
id: e.id,
|
|
131
131
|
...I("item")
|
|
@@ -137,9 +137,9 @@ function S({ onList: p, offList: S, onHeader: C, offHeader: w, showFilter: le, s
|
|
|
137
137
|
defaultValue: `Remove ${e.label}`
|
|
138
138
|
}),
|
|
139
139
|
onClick: () => {
|
|
140
|
-
|
|
140
|
+
J(e.label, K, G);
|
|
141
141
|
},
|
|
142
|
-
className: "pkg_sps-woodland_core__family_add-to-
|
|
142
|
+
className: "pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx9x",
|
|
143
143
|
...I("move-item-button")
|
|
144
144
|
})))) : /* @__PURE__ */ g.createElement(x, null, j ? /* @__PURE__ */ g.createElement(g.Fragment, null, j) : /* @__PURE__ */ g.createElement(b, {
|
|
145
145
|
heading: L("addToList.noDataZeroStateColumnTitle", { defaultValue: "This Column is Empty" }),
|
|
@@ -150,24 +150,24 @@ function S({ onList: p, offList: S, onHeader: C, offHeader: w, showFilter: le, s
|
|
|
150
150
|
artwork: se,
|
|
151
151
|
micro: !0,
|
|
152
152
|
...I("on-list-zero-state")
|
|
153
|
-
}))), /* @__PURE__ */ g.createElement(
|
|
153
|
+
}))), /* @__PURE__ */ g.createElement(t, {
|
|
154
154
|
headerText: w,
|
|
155
|
-
showCount: !
|
|
155
|
+
showCount: !B && T,
|
|
156
156
|
showIcons: E,
|
|
157
157
|
showMoveAllLinks: he,
|
|
158
158
|
showMoreOptionsText: ge,
|
|
159
|
-
maxHeight:
|
|
159
|
+
maxHeight: U,
|
|
160
160
|
vertical: N,
|
|
161
161
|
side: "right",
|
|
162
|
-
className:
|
|
162
|
+
className: u({ vertical: N }),
|
|
163
163
|
otherHeader: C,
|
|
164
|
-
itemCount:
|
|
165
|
-
moveAll:
|
|
164
|
+
itemCount: K.length,
|
|
165
|
+
moveAll: Y,
|
|
166
166
|
adjustForPhantomDroppableContainer: $,
|
|
167
167
|
...I("off-items-list")
|
|
168
168
|
}, Q.length > 0 ? Q.map((e) => /* @__PURE__ */ g.createElement(f, {
|
|
169
169
|
key: e.id,
|
|
170
|
-
className:
|
|
170
|
+
className: c,
|
|
171
171
|
...I("item")
|
|
172
172
|
}, e.label, /* @__PURE__ */ g.createElement(v, {
|
|
173
173
|
kind: "icon",
|
|
@@ -177,9 +177,9 @@ function S({ onList: p, offList: S, onHeader: C, offHeader: w, showFilter: le, s
|
|
|
177
177
|
defaultValue: `Add ${e.label}`
|
|
178
178
|
}),
|
|
179
179
|
onClick: () => {
|
|
180
|
-
|
|
180
|
+
J(e.label, G, K);
|
|
181
181
|
},
|
|
182
|
-
className:
|
|
182
|
+
className: d,
|
|
183
183
|
...I("move-item-button")
|
|
184
184
|
}))) : /* @__PURE__ */ g.createElement(x, null, M ? /* @__PURE__ */ g.createElement(g.Fragment, null, M) : /* @__PURE__ */ g.createElement(b, {
|
|
185
185
|
heading: L("addToList.noDataZeroStateColumnTitle", { defaultValue: "This Column is Empty" }),
|
|
@@ -218,5 +218,4 @@ p.set(S, {
|
|
|
218
218
|
offListZeroState: { type: "ZeroState" }
|
|
219
219
|
}
|
|
220
220
|
});
|
|
221
|
-
//#endregion
|
|
222
221
|
export { S as AddToList };
|
|
@@ -1,80 +1,79 @@
|
|
|
1
|
-
import { c as e } from "../../node_modules/.pnpm/@vanilla-extract_recipes@0.5.7_@vanilla-extract_css@1.21.3/node_modules/@vanilla-extract/recipes/dist/createRuntimeFn-62c9670f.esm.js";
|
|
2
1
|
/* empty css */
|
|
3
|
-
|
|
2
|
+
import { c as e } from "../../node_modules/.pnpm/@vanilla-extract_recipes@0.5.7_@vanilla-extract_css@1.21.3/node_modules/@vanilla-extract/recipes/dist/createRuntimeFn-62c9670f.esm.js";
|
|
3
|
+
// src/add-to-list/add-to-list/AddToList.css.ts
|
|
4
4
|
var t = e({
|
|
5
|
-
defaultClassName: "pkg_sps-woodland_core__family_add-to-
|
|
5
|
+
defaultClassName: "pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx90",
|
|
6
6
|
variantClassNames: { vertical: {
|
|
7
|
-
true: "pkg_sps-woodland_core__family_add-to-
|
|
8
|
-
false: "pkg_sps-woodland_core__family_add-to-
|
|
7
|
+
true: "pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx91",
|
|
8
|
+
false: "pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx92"
|
|
9
9
|
} },
|
|
10
10
|
defaultVariants: {},
|
|
11
11
|
compoundVariants: []
|
|
12
12
|
}), n = e({
|
|
13
|
-
defaultClassName: "pkg_sps-woodland_core__family_add-to-
|
|
13
|
+
defaultClassName: "pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx93",
|
|
14
14
|
variantClassNames: { vertical: {
|
|
15
|
-
true: "pkg_sps-woodland_core__family_add-to-
|
|
16
|
-
false: "pkg_sps-woodland_core__family_add-to-
|
|
15
|
+
true: "pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx94",
|
|
16
|
+
false: "pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx95"
|
|
17
17
|
} },
|
|
18
18
|
defaultVariants: {},
|
|
19
19
|
compoundVariants: []
|
|
20
|
-
}), r = "pkg_sps-woodland_core__family_add-to-
|
|
21
|
-
defaultClassName: "pkg_sps-woodland_core__family_add-to-
|
|
20
|
+
}), r = "pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx96", i = e({
|
|
21
|
+
defaultClassName: "pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx97",
|
|
22
22
|
variantClassNames: {
|
|
23
23
|
isLeftSide: {
|
|
24
|
-
true: "pkg_sps-woodland_core__family_add-to-
|
|
25
|
-
false: "pkg_sps-woodland_core__family_add-to-
|
|
24
|
+
true: "pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx98",
|
|
25
|
+
false: "pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx99"
|
|
26
26
|
},
|
|
27
27
|
isRightSide: {
|
|
28
|
-
true: "pkg_sps-woodland_core__family_add-to-
|
|
29
|
-
false: "pkg_sps-woodland_core__family_add-to-
|
|
28
|
+
true: "pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx9a",
|
|
29
|
+
false: "pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx9b"
|
|
30
30
|
},
|
|
31
31
|
adjustForPhantomDroppableContainer: {
|
|
32
|
-
true: "pkg_sps-woodland_core__family_add-to-
|
|
33
|
-
false: "pkg_sps-woodland_core__family_add-to-
|
|
32
|
+
true: "pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx9c",
|
|
33
|
+
false: "pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx9d"
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
defaultVariants: {},
|
|
37
37
|
compoundVariants: []
|
|
38
38
|
}), a = e({
|
|
39
|
-
defaultClassName: "pkg_sps-woodland_core__family_add-to-
|
|
39
|
+
defaultClassName: "pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx9e",
|
|
40
40
|
variantClassNames: { vertical: {
|
|
41
|
-
true: "pkg_sps-woodland_core__family_add-to-
|
|
42
|
-
false: "pkg_sps-woodland_core__family_add-to-
|
|
41
|
+
true: "pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx9f",
|
|
42
|
+
false: "pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx9g"
|
|
43
43
|
} },
|
|
44
44
|
defaultVariants: {},
|
|
45
45
|
compoundVariants: []
|
|
46
46
|
}), o = e({
|
|
47
|
-
defaultClassName: "pkg_sps-woodland_core__family_add-to-
|
|
47
|
+
defaultClassName: "pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx9h",
|
|
48
48
|
variantClassNames: { vertical: {
|
|
49
|
-
true: "pkg_sps-woodland_core__family_add-to-
|
|
50
|
-
false: "pkg_sps-woodland_core__family_add-to-
|
|
49
|
+
true: "pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx9i",
|
|
50
|
+
false: "pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx9j"
|
|
51
51
|
} },
|
|
52
52
|
defaultVariants: {},
|
|
53
53
|
compoundVariants: []
|
|
54
|
-
}), s = "pkg_sps-woodland_core__family_add-to-
|
|
55
|
-
defaultClassName: "pkg_sps-woodland_core__family_add-to-
|
|
54
|
+
}), s = "pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx9k", c = "pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx9l", l = "pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx9m", u = e({
|
|
55
|
+
defaultClassName: "pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx9n",
|
|
56
56
|
variantClassNames: { isDragging: {
|
|
57
|
-
true: "pkg_sps-woodland_core__family_add-to-
|
|
58
|
-
false: "pkg_sps-woodland_core__family_add-to-
|
|
57
|
+
true: "pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx9o",
|
|
58
|
+
false: "pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx9p"
|
|
59
59
|
} },
|
|
60
60
|
defaultVariants: {},
|
|
61
61
|
compoundVariants: []
|
|
62
|
-
}), d = "pkg_sps-woodland_core__family_add-to-
|
|
63
|
-
defaultClassName: "pkg_sps-woodland_core__family_add-to-
|
|
62
|
+
}), d = "pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx9q", f = e({
|
|
63
|
+
defaultClassName: "pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx9r",
|
|
64
64
|
variantClassNames: { isDropTarget: {
|
|
65
|
-
true: "pkg_sps-woodland_core__family_add-to-
|
|
66
|
-
false: "pkg_sps-woodland_core__family_add-to-
|
|
65
|
+
true: "pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx9s",
|
|
66
|
+
false: "pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx9t"
|
|
67
67
|
} },
|
|
68
68
|
defaultVariants: {},
|
|
69
69
|
compoundVariants: []
|
|
70
70
|
}), p = e({
|
|
71
|
-
defaultClassName: "pkg_sps-woodland_core__family_add-to-
|
|
71
|
+
defaultClassName: "pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx9u",
|
|
72
72
|
variantClassNames: { isDropTarget: {
|
|
73
|
-
true: "pkg_sps-woodland_core__family_add-to-
|
|
74
|
-
false: "pkg_sps-woodland_core__family_add-to-
|
|
73
|
+
true: "pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx9v",
|
|
74
|
+
false: "pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx9w"
|
|
75
75
|
} },
|
|
76
76
|
defaultVariants: {},
|
|
77
77
|
compoundVariants: []
|
|
78
|
-
}), m = "pkg_sps-woodland_core__family_add-to-
|
|
79
|
-
//#endregion
|
|
78
|
+
}), m = "pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx9x", h = "pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx9y", g = "pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx9z", _ = "pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx910", v = "pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx911", y = "pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx912", b = "pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx913";
|
|
80
79
|
export { h as columnHeads, s as dragHandle, c as dragHandleDisabled, d as dragPreview, u as draggableBox, f as droppableContainer, y as filterContainer, t as flexListWrapper, g as headIcons, _ as headTag, n as leftList, o as listComponentWrapper, l as listItem, i as listItemsSeparator, r as listItemsWrapper, b as moveAllButtonAdjustmentForPhantomDroppableContainer, v as offItems, p as phantomDroppableContainer, a as rightList, m as rowButton };
|
|
@@ -6,7 +6,7 @@ import { Button as l } from "@sps-woodland/core/buttons";
|
|
|
6
6
|
import { Tag as u } from "@sps-woodland/core/tag";
|
|
7
7
|
import { ScrollableContainer as d } from "@sps-woodland/core/scrollable-container";
|
|
8
8
|
import { FeedbackBlock as f } from "@sps-woodland/core/feedback-block";
|
|
9
|
-
|
|
9
|
+
// src/add-to-list/add-to-list/ItemsList.tsx
|
|
10
10
|
function p({ headerText: p, showCount: m, showIcons: h, showMoveAllLinks: g, showMoreOptionsText: _, disableMoveAllLinks: v, maxHeight: y, children: b, side: x, itemCount: S, otherHeader: C, className: w, vertical: T, moveAll: E, adjustForPhantomDroppableContainer: D, "data-testid": O }) {
|
|
11
11
|
let k = o({ "data-testid": O }), { t: A } = c(), j = A(x === "left" ? "addToList.onColumnHeader" : "addToList.offColumnHeader"), M = x === "left" ? "eye" : "eye-slash", N = A(x === "left" ? "addToList.offColumnHeader" : "addToList.onColumnHeader"), P = A("addToList.moveAllItemsToCol", { columnName: C || N }), F = T ? /* @__PURE__ */ s.createElement(s.Fragment, null) : /* @__PURE__ */ s.createElement("div", { className: n({
|
|
12
12
|
isLeftSide: x === "left",
|
|
@@ -24,12 +24,12 @@ function p({ headerText: p, showCount: m, showIcons: h, showMoveAllLinks: g, sho
|
|
|
24
24
|
...k("column-header")
|
|
25
25
|
}, h && /* @__PURE__ */ s.createElement(i, {
|
|
26
26
|
icon: M,
|
|
27
|
-
className: "pkg_sps-woodland_core__family_add-to-
|
|
27
|
+
className: "pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx9z"
|
|
28
28
|
}), p || j, m && /* @__PURE__ */ s.createElement(u, {
|
|
29
29
|
kind: "key",
|
|
30
|
-
className: "pkg_sps-woodland_core__family_add-to-
|
|
30
|
+
className: "pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx910"
|
|
31
31
|
}, S)), y ? /* @__PURE__ */ s.createElement("div", { className: r }, F, /* @__PURE__ */ s.createElement(d, { maxHeight: y }, b)) : /* @__PURE__ */ s.createElement("div", { className: r }, F, b), g && S > 0 && /* @__PURE__ */ s.createElement(l, {
|
|
32
|
-
className: D && x === "right" ? "pkg_sps-woodland_core__family_add-to-
|
|
32
|
+
className: D && x === "right" ? "pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx913" : void 0,
|
|
33
33
|
kind: "link",
|
|
34
34
|
onClick: I,
|
|
35
35
|
disabled: v,
|
|
@@ -39,5 +39,4 @@ function p({ headerText: p, showCount: m, showIcons: h, showMoveAllLinks: g, sho
|
|
|
39
39
|
micro: !0
|
|
40
40
|
}, A("addToList.moreOptionsAvailable", { defaultValue: "More options available. Use the search field to filter results." })));
|
|
41
41
|
}
|
|
42
|
-
//#endregion
|
|
43
42
|
export { p as ItemsList };
|
|
@@ -4,7 +4,7 @@ import * as i from "react";
|
|
|
4
4
|
import { useWoodlandLanguage as a } from "@spscommerce/i18n";
|
|
5
5
|
import { SpsTooltip as o } from "@spscommerce/ds-react";
|
|
6
6
|
import { Position as s, TooltipShowTrigger as c } from "@spscommerce/ds-shared";
|
|
7
|
-
|
|
7
|
+
// src/add-to-list/add-to-list/ListItem.tsx
|
|
8
8
|
function l({ className: n, children: l, filtering: u, manualSorting: d, id: f, "data-testid": p }) {
|
|
9
9
|
let { t: m } = a();
|
|
10
10
|
return /* @__PURE__ */ i.createElement(i.Fragment, null, /* @__PURE__ */ i.createElement("div", {
|
|
@@ -12,7 +12,7 @@ function l({ className: n, children: l, filtering: u, manualSorting: d, id: f, "
|
|
|
12
12
|
className: r(n, e({ isDropTarget: !1 }), t, "listitem-component"),
|
|
13
13
|
"data-testid": p
|
|
14
14
|
}, d && u && /* @__PURE__ */ i.createElement("i", {
|
|
15
|
-
className: "pkg_sps-woodland_core__family_add-to-
|
|
15
|
+
className: "pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx9l",
|
|
16
16
|
id: `list-item-${f}-drag-handle`
|
|
17
17
|
}), l), d && u && /* @__PURE__ */ i.createElement(o, {
|
|
18
18
|
for: `list-item-${f}-drag-handle`,
|
|
@@ -21,5 +21,4 @@ function l({ className: n, children: l, filtering: u, manualSorting: d, id: f, "
|
|
|
21
21
|
}, m("addToList.disabledDragTooltip", { defaultValue: "Drag and drop are disabled when filters are engaged" })));
|
|
22
22
|
}
|
|
23
23
|
n.set(l, { name: "ListItem" });
|
|
24
|
-
//#endregion
|
|
25
24
|
export { l as ListItem };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.pkg_sps-woodland_core__family_add-to-
|
|
1
|
+
.pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx90{flex-direction:row;align-content:space-between;display:flex}.pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx91{flex-direction:column}.pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx93{margin-right:1rem;position:relative}.pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx94{margin-bottom:1.375rem;margin-right:0}.pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx96{position:relative}.pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx97{background-color:#d2d4d4;width:.0625rem;height:100%;position:absolute;top:0}.pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx98{left:calc(100% + 1rem)}.pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx9a{left:-1rem}.pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx9c{height:calc(100% - 1.5625rem)}.pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx9e{margin-left:1rem}.pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx9f{margin-left:0}.pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx9h{flex-shrink:0;align-self:stretch;width:calc(50% - 1rem)}.pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx9i{width:100%}.pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx9k{cursor:grab;background:url(data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjE4IiB2aWV3Qm94PSIwIDAgOCAxOCIgd2lkdGg9IjgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0ibTE2IDcwODFoM3YzaC0zem0wIDVoM3YzaC0zem0wIDVoM3YzaC0zem0wIDVoM3YzaC0zem01LTE1aDN2M2gtM3ptMCA1aDN2M2gtM3ptMCA1aDN2M2gtM3ptMCA1aDN2M2gtM3oiIGZpbGw9IiNhNWE5YWIiIGZpbGwtcnVsZT0iZXZlbm9kZCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTE2IC03MDgxKSIvPjwvc3ZnPg==) 0 no-repeat;border:none;width:.375rem;height:1.125rem;padding:0 1rem 0 0;line-height:1.125rem;display:block}.pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx9k:focus{outline-offset:.125rem;outline:.125rem solid #007db8;box-shadow:0 0 0 6px #fff}.pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx9l{opacity:.25;background:url(data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjE4IiB2aWV3Qm94PSIwIDAgOCAxOCIgd2lkdGg9IjgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0ibTE2IDcwODFoM3YzaC0zem0wIDVoM3YzaC0zem0wIDVoM3YzaC0zem0wIDVoM3YzaC0zem01LTE1aDN2M2gtM3ptMCA1aDN2M2gtM3ptMCA1aDN2M2gtM3ptMCA1aDN2M2gtM3oiIGZpbGw9IiNhNWE5YWIiIGZpbGwtcnVsZT0iZXZlbm9kZCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTE2IC03MDgxKSIvPjwvc3ZnPg==) 0 no-repeat;width:.375rem;height:1.125rem;padding:0 1rem 0 0;line-height:1.125rem;display:block}.pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx9m{border:.0625rem solid #d2d4d4;border-bottom:none}.pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx9m:last-child{border-bottom:.0625rem solid #d2d4d4}.pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx9n{border:.0625rem solid #d2d4d4;border-bottom:none;position:relative}.pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx9n:focus{outline-offset:.125rem;outline:.125rem solid #007db8;box-shadow:0 0 0 6px #fff}.pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx9o{color:#717779;background-color:#f3f4f4}.pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx9q{background-color:#e6f2f8;border:.0625rem solid #d2d4d4;flex-direction:row;flex:1;justify-content:flex-start;align-items:stretch;width:100%;min-width:17.75rem;padding:.75rem;font-size:.75rem;line-height:1.125rem;display:flex}.pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx9r{flex-direction:row;justify-content:flex-start;width:100%;padding:.75rem;font-size:.75rem;line-height:1.125rem;display:flex;position:relative}.pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx9r:focus{background-color:#e6f2f8}.pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx9s{box-shadow:inset 0 .25rem #007db8}.pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx9u{border-top:.0625rem solid #d2d4d4;width:100%;padding:.75rem;font-size:.75rem;line-height:1.125rem;position:relative}.pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx9u:focus{outline:none}.pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx9v{box-shadow:inset 0 .25rem #007db8}.pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx9x{position:absolute;top:.375rem;right:.375rem}.pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx9y{justify-content:flex-start;align-items:center;margin-bottom:.25rem;font-size:.875rem;font-weight:600;line-height:1.25rem;display:flex}.pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx9z{margin-right:.25rem;font-size:.875rem;line-height:1.25rem}.pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx910{margin-left:.25rem}.pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx911{border-bottom:none;flex-direction:row;justify-content:flex-start;align-items:stretch;width:100%;padding:.75rem;font-size:.75rem;line-height:1.125rem;display:flex;position:relative}.pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx911:last-child{border-bottom:.0625rem solid #d2d4d4}.pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx912{margin-bottom:1.25rem}.pkg_sps-woodland_core__family_add-to-list__version_8_56_23__hash_13b8tx913{margin-top:1.5625rem}
|
|
@@ -6,7 +6,7 @@ import { useButton as u } from "@react-aria/button";
|
|
|
6
6
|
import { useHover as d } from "@react-aria/interactions";
|
|
7
7
|
import { mergeProps as f } from "@react-aria/utils";
|
|
8
8
|
import { FocusRing as p } from "@react-aria/focus";
|
|
9
|
-
|
|
9
|
+
// src/buttons/button/Button.tsx
|
|
10
10
|
var m = c.forwardRef(({ as: a, onClick: m, onPress: h, children: g, className: _, isDisabled: v, disabled: y, fill: b, href: x, icon: S, kind: C = "default", noWrap: w, spinning: T, spinningTitle: E, title: D, ...O }, k) => {
|
|
11
11
|
let A = a ?? (x ? "a" : "button"), j = {
|
|
12
12
|
onPress: h ?? m,
|
|
@@ -31,13 +31,13 @@ var m = c.forwardRef(({ as: a, onClick: m, onPress: h, children: g, className: _
|
|
|
31
31
|
...x ? { href: x } : { type: L },
|
|
32
32
|
...O
|
|
33
33
|
}, { t: B } = l(), V = S && (S === "ai-color" ? /* @__PURE__ */ c.createElement(i, {
|
|
34
|
-
className: "pkg_sps-
|
|
34
|
+
className: "pkg_sps-woodland_core__family_buttons__version_8_56_23__hash_1flqieq1g",
|
|
35
35
|
icon: C === "default" || C === "link" ? "ai-color" : "ai",
|
|
36
36
|
size: "sm",
|
|
37
37
|
"aria-hidden": "true",
|
|
38
38
|
"data-testid": `${M}__${S}-icon`
|
|
39
39
|
}) : /* @__PURE__ */ c.createElement(i, {
|
|
40
|
-
className: "pkg_sps-
|
|
40
|
+
className: "pkg_sps-woodland_core__family_buttons__version_8_56_23__hash_1flqieq1g",
|
|
41
41
|
icon: S,
|
|
42
42
|
size: "sm",
|
|
43
43
|
"aria-hidden": "true",
|
|
@@ -92,5 +92,4 @@ a.set(m, {
|
|
|
92
92
|
},
|
|
93
93
|
panellable: !0
|
|
94
94
|
});
|
|
95
|
-
//#endregion
|
|
96
95
|
export { m as Button };
|