@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
|
@@ -1,46 +1,30 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}, [u] = h(m, [{ type: L }]);
|
|
25
|
-
return /* @__PURE__ */ t.createElement(
|
|
26
|
-
E,
|
|
27
|
-
{
|
|
28
|
-
className: y(O),
|
|
29
|
-
style: d,
|
|
30
|
-
onClose: a,
|
|
31
|
-
preventBodyScroll: !0,
|
|
32
|
-
typeahead: !0,
|
|
33
|
-
...c
|
|
34
|
-
},
|
|
35
|
-
p ? /* @__PURE__ */ t.createElement(S, { className: W }) : u
|
|
36
|
-
);
|
|
1
|
+
import { Option as e } from "./Option.js";
|
|
2
|
+
import { optionList as t, spinner as n } from "./OptionList.ve.js";
|
|
3
|
+
import { Metadata as r, Spinner as i, cl as a, selectChildren as o } from "@sps-woodland/core";
|
|
4
|
+
import * as s from "react";
|
|
5
|
+
import { Menu as c } from "@ariakit/react";
|
|
6
|
+
//#region src/dropdowns/option-list/OptionList.tsx
|
|
7
|
+
function l({ buttonRef: r, conformWidth: l, maxHeightPx: u, maxHeightRem: d, minWidth: f, loading: p, onClose: m, children: h, ...g }) {
|
|
8
|
+
let [_, v] = s.useState(void 0);
|
|
9
|
+
s.useEffect(() => {
|
|
10
|
+
l && r?.current && v(r.current.offsetWidth);
|
|
11
|
+
}, [l, r]);
|
|
12
|
+
let y = u ? u / 16 : d, b = {
|
|
13
|
+
...y ? { maxHeight: `${y}rem` } : {},
|
|
14
|
+
...l && _ ? { width: _ } : {}
|
|
15
|
+
}, [x] = o(h, [{ type: e }]);
|
|
16
|
+
return /* @__PURE__ */ s.createElement(c, {
|
|
17
|
+
className: a(t),
|
|
18
|
+
style: b,
|
|
19
|
+
onClose: m,
|
|
20
|
+
preventBodyScroll: !0,
|
|
21
|
+
typeahead: !0,
|
|
22
|
+
...g
|
|
23
|
+
}, p ? /* @__PURE__ */ s.createElement(i, { className: n }) : x);
|
|
37
24
|
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
conformWidth: "boolean"
|
|
42
|
-
}
|
|
25
|
+
r.set(l, {
|
|
26
|
+
name: "Option List",
|
|
27
|
+
props: { conformWidth: "boolean" }
|
|
43
28
|
});
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
};
|
|
29
|
+
//#endregion
|
|
30
|
+
export { l as OptionList };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/* empty css */
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
};
|
|
2
|
+
//#region src/dropdowns/option-list/OptionList.css.ts
|
|
3
|
+
var e = "pkg_sps-woodland_core__family_dropdowns__version_8_56_3__hash_mxlo6o0", t = "pkg_sps-woodland_core__family_dropdowns__version_8_56_3__hash_mxlo6o1";
|
|
4
|
+
//#endregion
|
|
5
|
+
export { e as optionList, t as spinner };
|
package/lib/dropdowns/style.css
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
.pkg_sps-
|
|
1
|
+
.pkg_sps-woodland_core__family_dropdowns__version_8_56_3__hash_1ra15yx0{color:inherit;cursor:pointer;border-style:solid;border-width:.0625rem;border-radius:.25rem;padding:.5rem 30px .5rem 1rem;font-size:.75rem;font-weight:600;line-height:.875rem;text-decoration:none;display:inline-block;position:relative}.pkg_sps-woodland_core__family_dropdowns__version_8_56_3__hash_1ra15yx0:focus{outline-offset:.125rem;outline:.125rem solid #007db8;box-shadow:0 0 0 6px #fff}.pkg_sps-woodland_core__family_dropdowns__version_8_56_3__hash_1ra15yx0[aria-expanded=true]{border-radius:.25rem .25rem 0 0}.pkg_sps-woodland_core__family_dropdowns__version_8_56_3__hash_1ra15yx1{color:#4b5356;background:#e9e9ea;border-color:#d2d4d4}.pkg_sps-woodland_core__family_dropdowns__version_8_56_3__hash_1ra15yx1:hover{background:#d2d4d4}.pkg_sps-woodland_core__family_dropdowns__version_8_56_3__hash_1ra15yx2{color:#fff;background:#4b5356;border-color:#1f282c}.pkg_sps-woodland_core__family_dropdowns__version_8_56_3__hash_1ra15yx2:hover{background:#1f282c}.pkg_sps-woodland_core__family_dropdowns__version_8_56_3__hash_1ra15yx3{color:#fff;background:#007db8;border-color:#09638d}.pkg_sps-woodland_core__family_dropdowns__version_8_56_3__hash_1ra15yx3:hover{background:#09638d}.pkg_sps-woodland_core__family_dropdowns__version_8_56_3__hash_1ra15yx4{color:#fff;background:#de002e;border-color:#a30d2d}.pkg_sps-woodland_core__family_dropdowns__version_8_56_3__hash_1ra15yx4:hover{background:#a30d2d}.pkg_sps-woodland_core__family_dropdowns__version_8_56_3__hash_1ra15yx5{cursor:not-allowed;color:#717779;background:#fff;border-color:#d2d4d4}.pkg_sps-woodland_core__family_dropdowns__version_8_56_3__hash_1ra15yx7{cursor:not-allowed;display:inline-block;color:#0000!important}.pkg_sps-woodland_core__family_dropdowns__version_8_56_3__hash_1ra15yx9{margin-right:.25rem;font-size:.875rem;line-height:0}.pkg_sps-woodland_core__family_dropdowns__version_8_56_3__hash_1ra15yxa{font-size:.75rem;line-height:0;position:absolute;top:10px;right:12px}.pkg_sps-woodland_core__family_dropdowns__version_8_56_3__hash_1ra15yxb{margin:-.875rem -.4375rem;position:absolute;top:22px;left:50%}.pkg_sps-woodland_core__family_dropdowns__version_8_56_3__hash_1ra15yxc{cursor:not-allowed}.pkg_sps-woodland_core__family_dropdowns__version_8_56_3__hash_1ra15yxd{display:none}.pkg_sps-woodland_core__family_dropdowns__version_8_56_3__hash_1ra15yxb>i{border-width:.125rem;width:.875rem;height:.875rem;display:block}.pkg_sps-woodland_core__family_dropdowns__version_8_56_3__hash_1ekfy7k0{cursor:pointer;white-space:break-spaces;overflow-wrap:break-word;padding:.5rem 1rem;font-weight:400;display:block}.pkg_sps-woodland_core__family_dropdowns__version_8_56_3__hash_1ekfy7k0:hover{background:#e6f2f8}.pkg_sps-woodland_core__family_dropdowns__version_8_56_3__hash_1ekfy7k0:focus{outline-offset:.125rem;background:#e6f2f8;outline:.125rem solid #007db8;box-shadow:0 0 0 6px #fff}.pkg_sps-woodland_core__family_dropdowns__version_8_56_3__hash_1ekfy7k1{color:#717779}.pkg_sps-woodland_core__family_dropdowns__version_8_56_3__hash_mxlo6o0{overscroll-behavior:contain;z-index:100;background:#fff;border:.0625rem solid #717779;border-radius:0 0 .25rem .25rem;font-size:.75rem;overflow-y:auto}.pkg_sps-woodland_core__family_dropdowns__version_8_56_3__hash_mxlo6o0:focus{outline-offset:.125rem;box-shadow:0 0 0 6px #fff;outline:.125rem solid #007db8!important}.pkg_sps-woodland_core__family_dropdowns__version_8_56_3__hash_mxlo6o1{margin:1rem 4rem}
|
|
2
|
+
/*$vite$:1*/
|
|
@@ -1,87 +1,70 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import { icon as e } from "../components/icon/Icon.ve.js";
|
|
2
|
+
import t from "../components/icon/icons/sprite.svg.js";
|
|
3
|
+
import { cl as n } from "../utils/cl.js";
|
|
4
|
+
import * as r from "react";
|
|
5
|
+
import { sprinkles as i } from "@sps-woodland/tokens";
|
|
6
|
+
import { registerAllModules as a } from "handsontable/registry";
|
|
7
|
+
import { HotTable as o } from "@handsontable/react";
|
|
8
|
+
//#region src/editable-table/EditableTable.tsx
|
|
9
|
+
a();
|
|
10
|
+
var s = "wds-editable-table__required-indicator", c = "woodlandIconSprites", l = "http://www.w3.org/2000/svg";
|
|
11
|
+
function u() {
|
|
12
|
+
if (document.getElementById(c)) return;
|
|
13
|
+
let e = document.createElement("div");
|
|
14
|
+
e.style.display = "none", e.id = c, e.innerHTML = decodeURIComponent(t), document.body.appendChild(e);
|
|
15
15
|
}
|
|
16
|
-
function
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
t.setAttribute("height", "1em"), t.setAttribute("width", `${s}em`), t.setAttribute("href", `#${c}`), r.appendChild(t), o.replaceChildren(r);
|
|
16
|
+
function d(t, r, { size: a, color: o, className: s, ariaLabel: c }) {
|
|
17
|
+
u();
|
|
18
|
+
let d = document.getElementById(r), f = 1;
|
|
19
|
+
if (d) {
|
|
20
|
+
let e = d.getAttribute("height"), t = d.getAttribute("width");
|
|
21
|
+
e && t && (f = Number(t) / Number(e));
|
|
22
|
+
}
|
|
23
|
+
let p = document.createElementNS(l, "svg");
|
|
24
|
+
p.setAttribute("style", `height: 1em; width: ${f}em; overflow: visible;`), p.setAttribute("class", n(i({ color: o }), e({ size: a }), s)), c && p.setAttribute("aria-label", c);
|
|
25
|
+
let m = document.createElementNS(l, "use");
|
|
26
|
+
m.setAttribute("height", "1em"), m.setAttribute("width", `${f}em`), m.setAttribute("href", `#${r}`), p.appendChild(m), t.replaceChildren(p);
|
|
28
27
|
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
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
|
-
|
|
71
|
-
|
|
72
|
-
color: "red-medium",
|
|
73
|
-
ariaLabel: "Required",
|
|
74
|
-
className: f
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
|
-
licenseKey: "c0365-d23e1-f7d91-a482d-2be12",
|
|
79
|
-
...a
|
|
80
|
-
}
|
|
81
|
-
)
|
|
82
|
-
);
|
|
83
|
-
}
|
|
84
|
-
);
|
|
85
|
-
export {
|
|
86
|
-
T as EditableTable
|
|
87
|
-
};
|
|
28
|
+
var f = r.forwardRef(({ autoWrapCol: e = !0, autoWrapRow: t = !0, afterRender: n, beforeContextMenuShow: i, requiredColumns: a = [], ...c }, l) => {
|
|
29
|
+
let u = r.useRef(null), f = l ?? u;
|
|
30
|
+
return /* @__PURE__ */ r.createElement("div", { onKeyDown: (e) => {
|
|
31
|
+
if (e.key === "Escape") {
|
|
32
|
+
let t = f.current?.hotInstance?.getActiveEditor();
|
|
33
|
+
t && t.isOpened() && (e.stopPropagation(), t.close(), t.finishEditing(!0));
|
|
34
|
+
}
|
|
35
|
+
} }, /* @__PURE__ */ r.createElement(o, {
|
|
36
|
+
ref: f,
|
|
37
|
+
height: "auto",
|
|
38
|
+
className: "wds-editable-table",
|
|
39
|
+
autoWrapRow: t,
|
|
40
|
+
autoWrapCol: e,
|
|
41
|
+
beforeContextMenuShow: (e) => {
|
|
42
|
+
let t = e.menu?.container;
|
|
43
|
+
t && (t.classList.add("wds-editable-table"), t.setAttribute("data-react-aria-top-layer", "true"), t.inert = !1), i && i(e);
|
|
44
|
+
},
|
|
45
|
+
afterRender: (e) => {
|
|
46
|
+
f.current?.hotElementRef.querySelectorAll(".htAutocomplete:not(.htDimmed)").forEach((e) => {
|
|
47
|
+
let t = e.querySelector(".htAutocompleteArrow");
|
|
48
|
+
t && d(t, "chevron-down", {
|
|
49
|
+
size: "xs",
|
|
50
|
+
color: "grey-medium"
|
|
51
|
+
});
|
|
52
|
+
}), n && n(e);
|
|
53
|
+
},
|
|
54
|
+
afterGetColHeader: (e, t) => {
|
|
55
|
+
if (a.includes(e) && !t.querySelector(`.${s}`)) {
|
|
56
|
+
let e = document.createElement("span");
|
|
57
|
+
t.insertBefore(e, t.firstChild), d(e, "asterisk", {
|
|
58
|
+
size: "xs",
|
|
59
|
+
color: "red-medium",
|
|
60
|
+
ariaLabel: "Required",
|
|
61
|
+
className: s
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
licenseKey: "c0365-d23e1-f7d91-a482d-2be12",
|
|
66
|
+
...c
|
|
67
|
+
}));
|
|
68
|
+
});
|
|
69
|
+
//#endregion
|
|
70
|
+
export { f as EditableTable };
|
|
@@ -1,38 +1,43 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { feedbackBlock as e, feedbackBlockIcon as t, feedbackBlockText as n } from "./FeedbackBlock.ve.js";
|
|
2
|
+
import { Icon as r, Metadata as i, cl as a } from "@sps-woodland/core";
|
|
3
|
+
import * as o from "react";
|
|
4
|
+
//#region src/feedback-block/FeedbackBlock.tsx
|
|
5
|
+
var s = Object.freeze({
|
|
6
|
+
tip: "lightbulb",
|
|
7
|
+
success: "checkmark",
|
|
8
|
+
warning: "exclamation-triangle",
|
|
9
|
+
error: "exclamation-circle",
|
|
10
|
+
info: "info-circle"
|
|
10
11
|
});
|
|
11
|
-
function
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
12
|
+
function c({ children: i, className: c, kind: l = "tip", micro: u, ...d }) {
|
|
13
|
+
return /* @__PURE__ */ o.createElement("div", {
|
|
14
|
+
className: a(e({
|
|
15
|
+
kind: l,
|
|
16
|
+
micro: u
|
|
17
|
+
}), c),
|
|
18
|
+
...d
|
|
19
|
+
}, /* @__PURE__ */ o.createElement(r, {
|
|
20
|
+
size: u ? "sm" : "lg",
|
|
21
|
+
className: t({
|
|
22
|
+
kind: l,
|
|
23
|
+
micro: u
|
|
24
|
+
}),
|
|
25
|
+
icon: s[l],
|
|
26
|
+
"aria-hidden": "true"
|
|
27
|
+
}), /* @__PURE__ */ o.createElement("span", { className: n({ micro: u }) }, i));
|
|
27
28
|
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
29
|
+
i.set(c, {
|
|
30
|
+
name: "FeedbackBlock",
|
|
31
|
+
props: {
|
|
32
|
+
kind: {
|
|
33
|
+
type: "FeedbackBlockKind",
|
|
34
|
+
default: "tip"
|
|
35
|
+
},
|
|
36
|
+
micro: {
|
|
37
|
+
type: "boolean",
|
|
38
|
+
default: "false"
|
|
39
|
+
}
|
|
40
|
+
}
|
|
34
41
|
});
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
d as FeedbackBlockIcons
|
|
38
|
-
};
|
|
42
|
+
//#endregion
|
|
43
|
+
export { c as FeedbackBlock, s as FeedbackBlockIcons };
|
|
@@ -1,8 +1,57 @@
|
|
|
1
|
+
import { createRuntimeFn as e } from "../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";
|
|
1
2
|
/* empty css */
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
//#region src/feedback-block/FeedbackBlock.css.ts
|
|
4
|
+
var t = e({
|
|
5
|
+
defaultClassName: "pkg_sps-woodland_core__family_feedback-block__version_8_56_3__hash_1x0ztso0",
|
|
6
|
+
variantClassNames: {
|
|
7
|
+
kind: {
|
|
8
|
+
tip: "pkg_sps-woodland_core__family_feedback-block__version_8_56_3__hash_1x0ztso1",
|
|
9
|
+
success: "pkg_sps-woodland_core__family_feedback-block__version_8_56_3__hash_1x0ztso2",
|
|
10
|
+
warning: "pkg_sps-woodland_core__family_feedback-block__version_8_56_3__hash_1x0ztso3",
|
|
11
|
+
info: "pkg_sps-woodland_core__family_feedback-block__version_8_56_3__hash_1x0ztso4",
|
|
12
|
+
error: "pkg_sps-woodland_core__family_feedback-block__version_8_56_3__hash_1x0ztso5"
|
|
13
|
+
},
|
|
14
|
+
micro: {
|
|
15
|
+
true: "pkg_sps-woodland_core__family_feedback-block__version_8_56_3__hash_1x0ztso6",
|
|
16
|
+
false: "pkg_sps-woodland_core__family_feedback-block__version_8_56_3__hash_1x0ztso7"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
defaultVariants: {
|
|
20
|
+
kind: "tip",
|
|
21
|
+
micro: !1
|
|
22
|
+
},
|
|
23
|
+
compoundVariants: []
|
|
24
|
+
}), n = e({
|
|
25
|
+
defaultClassName: "",
|
|
26
|
+
variantClassNames: {
|
|
27
|
+
kind: {
|
|
28
|
+
tip: "pkg_sps-woodland_core__family_feedback-block__version_8_56_3__hash_1x0ztso8",
|
|
29
|
+
success: "pkg_sps-woodland_core__family_feedback-block__version_8_56_3__hash_1x0ztso9",
|
|
30
|
+
warning: "pkg_sps-woodland_core__family_feedback-block__version_8_56_3__hash_1x0ztsoa",
|
|
31
|
+
info: "pkg_sps-woodland_core__family_feedback-block__version_8_56_3__hash_1x0ztsob",
|
|
32
|
+
error: "pkg_sps-woodland_core__family_feedback-block__version_8_56_3__hash_1x0ztsoc"
|
|
33
|
+
},
|
|
34
|
+
micro: {
|
|
35
|
+
true: "pkg_sps-woodland_core__family_feedback-block__version_8_56_3__hash_1x0ztsod",
|
|
36
|
+
false: "pkg_sps-woodland_core__family_feedback-block__version_8_56_3__hash_1x0ztsoe"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
defaultVariants: {
|
|
40
|
+
kind: "tip",
|
|
41
|
+
micro: !1
|
|
42
|
+
},
|
|
43
|
+
compoundVariants: [[{
|
|
44
|
+
kind: "tip",
|
|
45
|
+
micro: !0
|
|
46
|
+
}, "pkg_sps-woodland_core__family_feedback-block__version_8_56_3__hash_1x0ztsof"]]
|
|
47
|
+
}), r = e({
|
|
48
|
+
defaultClassName: "",
|
|
49
|
+
variantClassNames: { micro: {
|
|
50
|
+
true: "pkg_sps-woodland_core__family_feedback-block__version_8_56_3__hash_1x0ztsog",
|
|
51
|
+
false: "pkg_sps-woodland_core__family_feedback-block__version_8_56_3__hash_1x0ztsoh"
|
|
52
|
+
} },
|
|
53
|
+
defaultVariants: { micro: !1 },
|
|
54
|
+
compoundVariants: []
|
|
55
|
+
});
|
|
56
|
+
//#endregion
|
|
57
|
+
export { t as feedbackBlock, n as feedbackBlockIcon, r as feedbackBlockText };
|