@sps-woodland/core 8.56.12 → 8.56.14
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.ve.js +1 -1
- package/lib/action-bar/index.js +3 -59
- package/lib/action-bar/style.css +1 -2
- package/lib/add-to-list/add-to-list/AddToList.js +4 -4
- package/lib/add-to-list/add-to-list/AddToList.ve.js +32 -32
- package/lib/add-to-list/add-to-list/ItemsList.js +3 -3
- package/lib/add-to-list/add-to-list/ListItem.js +1 -1
- package/lib/add-to-list/index.js +1 -402
- package/lib/add-to-list/style.css +1 -2
- package/lib/buttons/button/Button.js +2 -2
- package/lib/buttons/button/Button.ve.js +56 -56
- package/lib/buttons/index.js +1 -285
- package/lib/buttons/style.css +1 -2
- package/lib/cards/card/Card.ve.js +1 -1
- package/lib/cards/card-footer/CardFooter.ve.js +1 -1
- package/lib/cards/card-header/CardHeader.ve.js +1 -1
- package/lib/cards/card-title/CardTitle.ve.js +1 -1
- package/lib/cards/index.js +5 -56
- package/lib/cards/style.css +4 -2
- package/lib/components/icon/Icon.ve.js +5 -5
- package/lib/content-row/content-row/ContentRow.d.ts.map +1 -1
- package/lib/content-row/content-row/ContentRow.js +3 -2
- package/lib/content-row/content-row/ContentRow.ve.js +37 -37
- package/lib/content-row/content-row-col/ContentRowCol.ve.js +14 -14
- package/lib/content-row/index.js +5 -419
- package/lib/content-row/row-list-auto-layout/RowListAutoLayout.ve.js +3 -3
- package/lib/content-row/style.css +3 -2
- package/lib/content-tiles/content-tile/ContentTile.js +3 -3
- package/lib/content-tiles/content-tile/ContentTile.ve.js +12 -12
- package/lib/content-tiles/content-tile-list/ContentTileList.ve.js +1 -1
- package/lib/content-tiles/index.js +3 -162
- package/lib/content-tiles/style.css +2 -2
- package/lib/dropdowns/dropdown/Dropdown.css.d.ts +10 -0
- package/lib/dropdowns/dropdown/Dropdown.css.d.ts.map +1 -1
- package/lib/dropdowns/dropdown/Dropdown.d.ts.map +1 -1
- package/lib/dropdowns/dropdown/Dropdown.js +42 -30
- package/lib/dropdowns/dropdown/Dropdown.ve.js +19 -14
- package/lib/dropdowns/index.js +4 -180
- package/lib/dropdowns/option-list/Option.js +1 -1
- package/lib/dropdowns/option-list/Option.ve.js +1 -1
- package/lib/dropdowns/option-list/OptionList.css.d.ts +1 -0
- package/lib/dropdowns/option-list/OptionList.css.d.ts.map +1 -1
- package/lib/dropdowns/option-list/OptionList.d.ts.map +1 -1
- package/lib/dropdowns/option-list/OptionList.js +16 -16
- package/lib/dropdowns/option-list/OptionList.ve.js +2 -2
- package/lib/dropdowns/style.css +3 -2
- package/lib/feedback-block/FeedbackBlock.ve.js +18 -18
- package/lib/feedback-block/index.js +1 -138
- package/lib/feedback-block/style.css +1 -2
- package/lib/file-upload/file-upload/FileUpload.js +4 -4
- package/lib/file-upload/file-upload/FileUpload.ve.js +28 -28
- package/lib/file-upload/index.js +1 -398
- package/lib/file-upload/style.css +1 -2
- package/lib/filter-tiles/filter-tile/FilterTile.ve.js +20 -20
- package/lib/filter-tiles/filter-tile-set/FilterTileSet.ve.js +1 -1
- package/lib/filter-tiles/index.js +3 -148
- package/lib/filter-tiles/style.css +2 -2
- package/lib/focused-task/focused-task/FocusedTask.ve.js +5 -5
- package/lib/focused-task/index.js +4 -137
- package/lib/focused-task/style.css +1 -2
- package/lib/growler/Growler.js +1 -1
- package/lib/growler/Growler.ve.js +10 -10
- package/lib/growler/Sonner.ve.js +8 -8
- package/lib/growler/index.js +4 -261
- package/lib/growler/style.css +2 -2
- package/lib/index.js +28 -28
- package/lib/index.umd.cjs +1 -1
- package/lib/insight-card/InsightCard.ve.js +54 -54
- package/lib/insight-card/index.js +3 -276
- package/lib/insight-card/style.css +1 -2
- package/lib/key-value-set/index.js +3 -105
- package/lib/key-value-set/key-value-set/KeyValueSet.ve.js +2 -2
- package/lib/key-value-set/key-value-set-item/KeyValueSetItem.ve.js +4 -4
- package/lib/key-value-set/style.css +2 -2
- package/lib/list-bar/advanced-search/AdvancedSearch.ve.js +9 -9
- package/lib/list-bar/index.js +8 -321
- package/lib/list-bar/list-bar/ListBar.js +5 -5
- package/lib/list-bar/list-bar/ListBar.ve.js +4 -4
- package/lib/list-bar/search-results-bar/SearchResultsBar.js +2 -2
- package/lib/list-bar/search-results-bar/SearchResultsBar.ve.js +1 -1
- package/lib/list-bar/style.css +3 -2
- package/lib/matrix/index.js +7 -87
- package/lib/matrix/matrix/Matrix.ve.js +1 -1
- package/lib/matrix/style.css +1 -2
- package/lib/modal/index.js +4 -207
- package/lib/modal/modal/Modal.js +1 -1
- package/lib/modal/modal/Modal.ve.js +23 -23
- package/lib/modal/style.css +1 -2
- package/lib/page-title/index.js +4 -38
- package/lib/page-title/page-subtitle/PageSubtitle.ve.js +1 -1
- package/lib/page-title/page-title/PageTitle.ve.js +1 -1
- package/lib/page-title/style.css +2 -2
- package/lib/photo/index.js +3 -180
- package/lib/photo/photo/Photo.ve.js +7 -7
- package/lib/photo/photo-carousel/PhotoCarousel.ve.js +4 -4
- package/lib/photo/style.css +2 -2
- package/lib/product-bar/index.js +5 -387
- package/lib/product-bar/product-bar/ProductBar.ve.js +17 -17
- package/lib/product-bar/product-bar-name/ProductBarName.js +2 -2
- package/lib/product-bar/product-bar-overflow-menu/ProductBarOverflowMenu.js +3 -3
- package/lib/product-bar/product-bar-overflow-menu/ProductBarOverflowMenu.ve.js +1 -1
- package/lib/product-bar/product-bar-tab/ProductBarTab.js +1 -1
- package/lib/product-bar/slack-link/SlackLink.ve.js +1 -1
- package/lib/product-bar/style.css +3 -2
- package/lib/product-bar-vertical/index.js +5 -250
- package/lib/product-bar-vertical/product-bar-vertical/ProductBarVertical.js +1 -1
- package/lib/product-bar-vertical/product-bar-vertical/ProductBarVertical.ve.js +22 -22
- package/lib/product-bar-vertical/product-bar-vertical-header/ProductBarVerticalHeader.js +1 -1
- package/lib/product-bar-vertical/product-bar-vertical-item/ProductBarVerticalItem.js +2 -2
- package/lib/product-bar-vertical/style.css +1 -2
- package/lib/progress-indicators/index.js +4 -381
- package/lib/progress-indicators/progress-bar/ProgressBar.js +2 -2
- package/lib/progress-indicators/progress-bar/ProgressBar.ve.js +26 -26
- package/lib/progress-indicators/progress-bar/progress-bar-step/ProgressBarStep.ve.js +42 -42
- package/lib/progress-indicators/style.css +2 -2
- package/lib/rich-text-editor/index.js +1 -580
- package/lib/rich-text-editor/rich-text-editor/RTEToolbarButton.ve.js +4 -4
- package/lib/rich-text-editor/rich-text-editor/RichTextEditor.js +2 -2
- package/lib/rich-text-editor/rich-text-editor/RichTextEditor.ve.js +7 -7
- package/lib/rich-text-editor/style.css +2 -2
- package/lib/scrollable-container/ScrollableContainer.ve.js +1 -1
- package/lib/scrollable-container/index.js +1 -22
- package/lib/scrollable-container/style.css +1 -2
- package/lib/side-nav/index.js +5 -202
- package/lib/side-nav/side-nav/SideNav.js +1 -1
- package/lib/side-nav/side-nav/SideNav.ve.js +7 -7
- package/lib/side-nav/side-nav-section/SideNavSection.js +1 -1
- package/lib/side-nav/style.css +1 -2
- package/lib/sorting-header/caret/caret.ve.js +3 -3
- package/lib/sorting-header/index.js +3 -276
- package/lib/sorting-header/sorting-header/SortingHeader.ve.js +9 -9
- package/lib/sorting-header/sorting-header-cell/SortingHeaderCell.ve.js +6 -6
- package/lib/sorting-header/style.css +3 -2
- package/lib/style.css +1 -1
- package/lib/tabs/index.js +4 -261
- package/lib/tabs/style.css +2 -2
- package/lib/tabs/tab/Tab.ve.js +21 -21
- package/lib/tabs/tabs/Tabs.js +2 -2
- package/lib/tabs/tabs/Tabs.ve.js +5 -5
- package/lib/tags/clickable-tag/ClickableTag.js +1 -1
- package/lib/tags/clickable-tag/ClickableTag.ve.js +21 -21
- package/lib/tags/index.js +4 -352
- package/lib/tags/split-tag/SplitTag.js +1 -1
- package/lib/tags/split-tag/SplitTag.ve.js +15 -15
- package/lib/tags/style.css +3 -2
- package/lib/tags/tag/Tag.css.d.ts.map +1 -1
- package/lib/tags/tag/Tag.ve.js +19 -19
- package/lib/zero-state/ZeroState.js +1 -1
- package/lib/zero-state/ZeroState.ve.js +11 -11
- package/lib/zero-state/index.js +1 -109
- package/lib/zero-state/style.css +1 -2
- package/package.json +11 -41
- package/scripts/family-stylesheets.mjs +100 -0
- package/scripts/watch-all.mjs +11 -24
- package/vite.subpaths.config.mjs +15 -4
- package/lib/action-bar/index.umd.cjs +0 -1
- package/lib/add-to-list/index.umd.cjs +0 -1
- package/lib/buttons/index.umd.cjs +0 -1
- package/lib/cards/index.umd.cjs +0 -1
- package/lib/content-row/index.umd.cjs +0 -1
- package/lib/content-tiles/index.umd.cjs +0 -1
- package/lib/core.css +0 -2
- package/lib/dropdowns/index.umd.cjs +0 -1
- package/lib/feedback-block/index.umd.cjs +0 -1
- package/lib/file-upload/index.umd.cjs +0 -1
- package/lib/filter-tiles/index.umd.cjs +0 -1
- package/lib/focused-task/index.umd.cjs +0 -1
- package/lib/growler/index.umd.cjs +0 -1
- package/lib/insight-card/index.umd.cjs +0 -1
- package/lib/key-value-set/index.umd.cjs +0 -1
- package/lib/list-bar/index.umd.cjs +0 -1
- package/lib/matrix/index.umd.cjs +0 -1
- package/lib/modal/index.umd.cjs +0 -1
- package/lib/page-title/index.umd.cjs +0 -1
- package/lib/photo/index.umd.cjs +0 -1
- package/lib/product-bar/index.umd.cjs +0 -1
- package/lib/product-bar-vertical/index.umd.cjs +0 -1
- package/lib/progress-indicators/index.umd.cjs +0 -1
- package/lib/rich-text-editor/index.umd.cjs +0 -13
- package/lib/scrollable-container/index.umd.cjs +0 -1
- package/lib/side-nav/index.umd.cjs +0 -1
- package/lib/sorting-header/index.umd.cjs +0 -1
- package/lib/tabs/index.umd.cjs +0 -1
- package/lib/tags/index.umd.cjs +0 -1
- package/lib/zero-state/index.umd.cjs +0 -1
- package/vite.action-bar.config.mjs +0 -43
- package/vite.add-to-list.config.mjs +0 -43
- package/vite.buttons.config.mjs +0 -44
- package/vite.cards.config.mjs +0 -43
- package/vite.content-row.config.mjs +0 -43
- package/vite.content-tiles.config.mjs +0 -43
- package/vite.dropdowns.config.mjs +0 -44
- package/vite.editable-table.config.mjs +0 -71
- package/vite.feedback-block.config.mjs +0 -43
- package/vite.file-upload.config.mjs +0 -43
- package/vite.filter-tiles.config.mjs +0 -43
- package/vite.focused-task.config.mjs +0 -43
- package/vite.growler.config.mjs +0 -44
- package/vite.insight-card.config.mjs +0 -43
- package/vite.key-value-set.config.mjs +0 -43
- package/vite.list-bar.config.mjs +0 -43
- package/vite.matrix.config.mjs +0 -43
- package/vite.modal.config.mjs +0 -43
- package/vite.page-title.config.mjs +0 -43
- package/vite.photo.config.mjs +0 -43
- package/vite.product-bar-vertical.config.mjs +0 -43
- package/vite.product-bar.config.mjs +0 -45
- package/vite.progress-indicators.config.mjs +0 -43
- package/vite.rich-text-editor.config.mjs +0 -51
- package/vite.scrollable-container.config.mjs +0 -43
- package/vite.side-nav.config.mjs +0 -43
- package/vite.sorting-header.config.mjs +0 -43
- package/vite.tabs.config.mjs +0 -46
- package/vite.tags.config.mjs +0 -43
- package/vite.zero-state.config.mjs +0 -43
|
@@ -1,162 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
//#region src/content-tiles/content-tile-list/ContentTileList.css.ts
|
|
5
|
-
var s = "pkg_sps-woodland_core__family_content-tiles__version_8_56_12__hash_1dggj5e0", c = "pkg_sps-woodland_core__family_content-tiles__version_8_56_12__hash_1dggj5e1";
|
|
6
|
-
//#endregion
|
|
7
|
-
//#region ../../../node_modules/.pnpm/@vanilla-extract+recipes@0.2.5_@vanilla-extract+css@1.21.3/node_modules/@vanilla-extract/recipes/createRuntimeFn/dist/vanilla-extract-recipes-createRuntimeFn.esm.js
|
|
8
|
-
function l(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;
|
|
15
|
-
}
|
|
16
|
-
function u(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;
|
|
25
|
-
}
|
|
26
|
-
function d(e) {
|
|
27
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
28
|
-
var n = arguments[t] == null ? {} : arguments[t];
|
|
29
|
-
t % 2 ? u(Object(n), !0).forEach(function(t) {
|
|
30
|
-
l(e, t, n[t]);
|
|
31
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : u(Object(n)).forEach(function(t) {
|
|
32
|
-
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
return e;
|
|
36
|
-
}
|
|
37
|
-
var f = (e, t, n) => {
|
|
38
|
-
for (var r of Object.keys(e)) if (e[r] !== (t[r] ?? n[r])) return !1;
|
|
39
|
-
return !0;
|
|
40
|
-
}, p = (e) => (t) => {
|
|
41
|
-
var n = e.defaultClassName, r = d(d({}, 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) f(c, r, e.defaultVariants) && (n += " " + l);
|
|
52
|
-
return n;
|
|
53
|
-
}, m = "pkg_sps-woodland_core__family_content-tiles__version_8_56_12__hash_w95inw0", h = p({
|
|
54
|
-
defaultClassName: "pkg_sps-woodland_core__family_content-tiles__version_8_56_12__hash_w95inw1",
|
|
55
|
-
variantClassNames: { disabled: { true: "pkg_sps-woodland_core__family_content-tiles__version_8_56_12__hash_w95inw2" } },
|
|
56
|
-
defaultVariants: { disabled: !1 },
|
|
57
|
-
compoundVariants: []
|
|
58
|
-
}), g = "pkg_sps-woodland_core__family_content-tiles__version_8_56_12__hash_w95inw3", _ = p({
|
|
59
|
-
defaultClassName: "pkg_sps-woodland_core__family_content-tiles__version_8_56_12__hash_w95inw4",
|
|
60
|
-
variantClassNames: {
|
|
61
|
-
error: { true: "pkg_sps-woodland_core__family_content-tiles__version_8_56_12__hash_w95inw5" },
|
|
62
|
-
warning: { true: "pkg_sps-woodland_core__family_content-tiles__version_8_56_12__hash_w95inw6" },
|
|
63
|
-
disabled: { true: "pkg_sps-woodland_core__family_content-tiles__version_8_56_12__hash_w95inw7" }
|
|
64
|
-
},
|
|
65
|
-
defaultVariants: {
|
|
66
|
-
error: !1,
|
|
67
|
-
warning: !1,
|
|
68
|
-
disabled: !1
|
|
69
|
-
},
|
|
70
|
-
compoundVariants: []
|
|
71
|
-
}), v = p({
|
|
72
|
-
defaultClassName: "",
|
|
73
|
-
variantClassNames: {
|
|
74
|
-
error: { true: "pkg_sps-woodland_core__family_content-tiles__version_8_56_12__hash_w95inw8" },
|
|
75
|
-
warning: { true: "pkg_sps-woodland_core__family_content-tiles__version_8_56_12__hash_w95inw9" },
|
|
76
|
-
disabled: { true: "pkg_sps-woodland_core__family_content-tiles__version_8_56_12__hash_w95inwa" }
|
|
77
|
-
},
|
|
78
|
-
defaultVariants: {
|
|
79
|
-
error: !1,
|
|
80
|
-
disabled: !1,
|
|
81
|
-
warning: !1
|
|
82
|
-
},
|
|
83
|
-
compoundVariants: []
|
|
84
|
-
}), y = "pkg_sps-woodland_core__family_content-tiles__version_8_56_12__hash_w95inwc", b = "pkg_sps-woodland_core__family_content-tiles__version_8_56_12__hash_w95inwd";
|
|
85
|
-
//#endregion
|
|
86
|
-
//#region src/content-tiles/content-tile/ContentTile.tsx
|
|
87
|
-
function x({ className: s, href: l, icon: u, error: d = !1, errorIcon: f, title: p, warning: x = !1, warningIcon: S, disabled: C = !1, target: w, onClick: T, tagElement: E, ...D }) {
|
|
88
|
-
let [O] = i(E, [{ custom: (e) => t.isWoodlandComponent(e) && t.get(e).name === "Tag" }]);
|
|
89
|
-
return /* @__PURE__ */ a.createElement("div", {
|
|
90
|
-
className: n(o[3], m, s),
|
|
91
|
-
...D
|
|
92
|
-
}, /* @__PURE__ */ a.createElement("a", {
|
|
93
|
-
href: C ? void 0 : l,
|
|
94
|
-
className: n(_({
|
|
95
|
-
error: d,
|
|
96
|
-
warning: x,
|
|
97
|
-
disabled: C
|
|
98
|
-
}), c),
|
|
99
|
-
target: w,
|
|
100
|
-
onClick: T
|
|
101
|
-
}, (x || d) && /* @__PURE__ */ a.createElement("div", { className: "pkg_sps-woodland_core__family_content-tiles__version_8_56_12__hash_w95inwb" }, x && (S ? r(S) : /* @__PURE__ */ a.createElement(e, {
|
|
102
|
-
icon: "status-warning",
|
|
103
|
-
className: n(v({
|
|
104
|
-
warning: x,
|
|
105
|
-
disabled: C
|
|
106
|
-
}))
|
|
107
|
-
})), d && (f ? r(f) : /* @__PURE__ */ a.createElement(e, {
|
|
108
|
-
icon: "ban",
|
|
109
|
-
className: n(v({
|
|
110
|
-
error: d,
|
|
111
|
-
disabled: C
|
|
112
|
-
}))
|
|
113
|
-
}))), O[0] && /* @__PURE__ */ a.createElement("div", { className: n("pkg_sps-woodland_core__family_content-tiles__version_8_56_12__hash_w95inwf") }, O[0]), /* @__PURE__ */ a.createElement("div", null, /* @__PURE__ */ a.createElement("div", { className: n(g) }, typeof u == "string" ? /* @__PURE__ */ a.createElement("img", {
|
|
114
|
-
className: n(h({ disabled: C })),
|
|
115
|
-
src: u,
|
|
116
|
-
alt: ""
|
|
117
|
-
}) : r(u)), /* @__PURE__ */ a.createElement("div", { className: n(y) }, /* @__PURE__ */ a.createElement("p", { className: n(b) }, p, w === "_blank" && /* @__PURE__ */ a.createElement(e, {
|
|
118
|
-
icon: "tabs",
|
|
119
|
-
className: n("pkg_sps-woodland_core__family_content-tiles__version_8_56_12__hash_w95inwe")
|
|
120
|
-
}))))));
|
|
121
|
-
}
|
|
122
|
-
t.set(x, {
|
|
123
|
-
name: "Content Tile",
|
|
124
|
-
props: {
|
|
125
|
-
href: { type: "string" },
|
|
126
|
-
icon: {
|
|
127
|
-
type: "React.ReactNode | (() => React.ReactNode)",
|
|
128
|
-
required: !0
|
|
129
|
-
},
|
|
130
|
-
error: {
|
|
131
|
-
type: "boolean",
|
|
132
|
-
default: "false"
|
|
133
|
-
},
|
|
134
|
-
errorIcon: { type: "React.ReactNode | (() => React.ReactNode)" },
|
|
135
|
-
title: {
|
|
136
|
-
type: "string",
|
|
137
|
-
required: !0
|
|
138
|
-
},
|
|
139
|
-
warning: {
|
|
140
|
-
type: "boolean",
|
|
141
|
-
default: "false"
|
|
142
|
-
},
|
|
143
|
-
warningIcon: { type: "React.ReactNode | (() => React.ReactNode)" },
|
|
144
|
-
disabled: {
|
|
145
|
-
type: "boolean",
|
|
146
|
-
default: "false"
|
|
147
|
-
},
|
|
148
|
-
target: { type: "string" },
|
|
149
|
-
onClick: { type: "() => void" }
|
|
150
|
-
}
|
|
151
|
-
});
|
|
152
|
-
//#endregion
|
|
153
|
-
//#region src/content-tiles/content-tile-list/ContentTileList.tsx
|
|
154
|
-
function S({ children: e, className: t, ...r }) {
|
|
155
|
-
return /* @__PURE__ */ a.createElement("div", {
|
|
156
|
-
className: n(s, t),
|
|
157
|
-
...r
|
|
158
|
-
}, e);
|
|
159
|
-
}
|
|
160
|
-
t.set(S, { name: "Content Tile List" });
|
|
161
|
-
//#endregion
|
|
162
|
-
export { x as ContentTile, S as ContentTileList };
|
|
1
|
+
import { ContentTile as e } from "./content-tile/ContentTile.js";
|
|
2
|
+
import { ContentTileList as t } from "./content-tile-list/ContentTileList.js";
|
|
3
|
+
export { e as ContentTile, t as ContentTileList };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
.pkg_sps-woodland_core__family_content-
|
|
2
|
-
|
|
1
|
+
.pkg_sps-woodland_core__family_content-tiles__version_8_56_14__hash_1dggj5e0{grid-template-columns:1fr 1fr 1fr 1fr;gap:1rem;display:grid}.pkg_sps-woodland_core__family_content-tiles__version_8_56_14__hash_1dggj5e1{color:#000}.pkg_sps-woodland_core__family_content-tiles__version_8_56_14__hash_1dggj5e1:hover{color:#000;text-decoration:none}
|
|
2
|
+
.pkg_sps-woodland_core__family_content-tiles__version_8_56_14__hash_w95inw0{transition:all .25s}.pkg_sps-woodland_core__family_content-tiles__version_8_56_14__hash_w95inw1{width:3.75rem;height:3.75rem}.pkg_sps-woodland_core__family_content-tiles__version_8_56_14__hash_w95inw2{opacity:.25}.pkg_sps-woodland_core__family_content-tiles__version_8_56_14__hash_w95inw3{width:3.75rem;height:3.75rem;margin:1rem auto}.pkg_sps-woodland_core__family_content-tiles__version_8_56_14__hash_w95inw4{cursor:pointer;background-color:#fff;border:.0625rem solid #d2d4d4;border-radius:.25rem;height:8.625rem;text-decoration:none;display:block;position:relative}.pkg_sps-woodland_core__family_content-tiles__version_8_56_14__hash_w95inw4:hover{color:#000;border-color:#007db8}.pkg_sps-woodland_core__family_content-tiles__version_8_56_14__hash_w95inw4:focus{outline-offset:.125rem;outline:.125rem solid #007db8;box-shadow:0 0 0 6px #fff}.pkg_sps-woodland_core__family_content-tiles__version_8_56_14__hash_w95inw5{border-color:#de002e}.pkg_sps-woodland_core__family_content-tiles__version_8_56_14__hash_w95inw5:hover{cursor:not-allowed;border-color:#de002e}.pkg_sps-woodland_core__family_content-tiles__version_8_56_14__hash_w95inw6{border-color:#e7760b}.pkg_sps-woodland_core__family_content-tiles__version_8_56_14__hash_w95inw7{color:#d2d4d4;background-color:#f3f4f4;border-color:#d2d4d4}.pkg_sps-woodland_core__family_content-tiles__version_8_56_14__hash_w95inw7:hover{cursor:not-allowed;border-color:#d2d4d4}.pkg_sps-woodland_core__family_content-tiles__version_8_56_14__hash_w95inw8{color:#de002e}.pkg_sps-woodland_core__family_content-tiles__version_8_56_14__hash_w95inw9{color:#e7760b}.pkg_sps-woodland_core__family_content-tiles__version_8_56_14__hash_w95inwa{color:#717779}.pkg_sps-woodland_core__family_content-tiles__version_8_56_14__hash_w95inwb{padding:.5rem;position:absolute}.pkg_sps-woodland_core__family_content-tiles__version_8_56_14__hash_w95inwc{text-align:center;padding-left:.5rem;padding-right:.5rem}.pkg_sps-woodland_core__family_content-tiles__version_8_56_14__hash_w95inwd{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.pkg_sps-woodland_core__family_content-tiles__version_8_56_14__hash_w95inwe{color:#007db8;margin-left:.5rem}.pkg_sps-woodland_core__family_content-tiles__version_8_56_14__hash_w95inwf{padding:.5rem;position:absolute;right:0}
|
|
@@ -58,6 +58,16 @@ export declare const dropdown: import("node_modules/@vanilla-extract/recipes/dis
|
|
|
58
58
|
};
|
|
59
59
|
false: {};
|
|
60
60
|
};
|
|
61
|
+
opensUp: {
|
|
62
|
+
true: {
|
|
63
|
+
selectors: {
|
|
64
|
+
'&[aria-expanded="true"]': {
|
|
65
|
+
borderRadius: `0 0 ${string} ${string}`;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
false: {};
|
|
70
|
+
};
|
|
61
71
|
}>;
|
|
62
72
|
export declare const icon: string;
|
|
63
73
|
export declare const dropdownArrow: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dropdown.css.d.ts","sourceRoot":"","sources":["../../../src/dropdowns/dropdown/Dropdown.css.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,QAAQ
|
|
1
|
+
{"version":3,"file":"Dropdown.css.d.ts","sourceRoot":"","sources":["../../../src/dropdowns/dropdown/Dropdown.css.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwGpB,CAAC;AAEF,eAAO,MAAM,IAAI,QAOhB,CAAC;AAEF,eAAO,MAAM,aAAa,QAMxB,CAAC;AAEH,eAAO,MAAM,OAAO;;;;;;;;;EAoBlB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../../../src/dropdowns/dropdown/Dropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../../../src/dropdowns/dropdown/Dropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AASzD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AA0BrD,wBAAgB,QAAQ,CAAC,EACvB,KAAK,EACL,QAAQ,EACR,IAAI,EACJ,IAAgB,EAChB,WAAW,EACX,YAAY,EACZ,QAAQ,EACR,MAAM,EACN,OAAO,EACP,OAAO,EACP,SAAS,EACT,QAAQ,EACR,GAAG,IAAI,EACR,EAAE,cAAc,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,IAAI,CAAC,EAAE,SAAS,GAAG,KAAK,GAAG,SAAS,GAAG,QAAQ,CAAC;IAChD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC,GAAG,KAAK,CAAC,YAAY,CAAC,iBAAiB,CAAC,CAiDzC"}
|
|
@@ -2,41 +2,53 @@ import { dropdown as e, dropdownArrow as t, spinner as n } from "./Dropdown.ve.j
|
|
|
2
2
|
import { Icon as r, Metadata as i, Spinner as a, cl as o, modChildren as s, useChildTestIdAttrBuilder as c } from "@sps-woodland/core";
|
|
3
3
|
import * as l from "react";
|
|
4
4
|
import { useWoodlandLanguage as u } from "@spscommerce/i18n";
|
|
5
|
-
import { MenuButton as d, MenuProvider as f } from "@ariakit/react";
|
|
5
|
+
import { MenuButton as d, MenuProvider as f, useMenuContext as p } from "@ariakit/react";
|
|
6
6
|
//#region src/dropdowns/dropdown/Dropdown.tsx
|
|
7
|
-
|
|
8
|
-
let
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
buttonRef: E,
|
|
12
|
-
loading: x,
|
|
13
|
-
onClose: b
|
|
14
|
-
}], !1), [C]);
|
|
15
|
-
return /* @__PURE__ */ l.createElement(f, null, /* @__PURE__ */ l.createElement(d, {
|
|
16
|
-
ref: E,
|
|
7
|
+
var m = l.forwardRef(({ kind: t, disabled: n, spinning: r, className: i, ...a }, s) => {
|
|
8
|
+
let c = !!(p()?.useState("currentPlacement"))?.startsWith("top");
|
|
9
|
+
return /* @__PURE__ */ l.createElement(d, {
|
|
10
|
+
ref: s,
|
|
17
11
|
className: o(e({
|
|
18
|
-
kind:
|
|
19
|
-
disabled:
|
|
20
|
-
spinning:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
...
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
12
|
+
kind: t,
|
|
13
|
+
disabled: n,
|
|
14
|
+
spinning: r,
|
|
15
|
+
opensUp: c
|
|
16
|
+
}), i),
|
|
17
|
+
disabled: n || r,
|
|
18
|
+
...a
|
|
19
|
+
});
|
|
20
|
+
});
|
|
21
|
+
function h({ label: e, disabled: i, icon: o, kind: d = "default", maxHeightPx: p, maxHeightRem: h, spinning: g, onOpen: _, onClose: v, loading: y, className: b, children: x, ...S }) {
|
|
22
|
+
let { t: C } = u(), w = l.useRef(null), T = c(S), E = l.useMemo(() => s(x, () => [{
|
|
23
|
+
maxHeightPx: p,
|
|
24
|
+
maxHeightRem: h,
|
|
25
|
+
buttonRef: w,
|
|
26
|
+
loading: y,
|
|
27
|
+
onClose: v
|
|
28
|
+
}], !1), [x]);
|
|
29
|
+
return /* @__PURE__ */ l.createElement(f, null, /* @__PURE__ */ l.createElement(m, {
|
|
30
|
+
ref: w,
|
|
31
|
+
kind: d,
|
|
32
|
+
disabled: i,
|
|
33
|
+
spinning: g,
|
|
34
|
+
className: b,
|
|
35
|
+
"data-testid": `${T}__dropdown`,
|
|
36
|
+
...S
|
|
37
|
+
}, g && /* @__PURE__ */ l.createElement(a, {
|
|
38
|
+
color: d === "default" ? "dark" : "light",
|
|
39
|
+
className: n({ spinning: g }),
|
|
40
|
+
title: C("button.spinningTitle", { defaultValue: "Loading..." }),
|
|
41
|
+
"data-testid": `${T}__spinner`
|
|
42
|
+
}), o && /* @__PURE__ */ l.createElement(r, {
|
|
43
|
+
icon: o,
|
|
44
|
+
className: "pkg_sps-woodland_core__family_dropdowns__version_8_56_14__hash_1ra15yxb",
|
|
33
45
|
"aria-hidden": "true"
|
|
34
|
-
}),
|
|
46
|
+
}), e, /* @__PURE__ */ l.createElement(r, {
|
|
35
47
|
icon: "chevron-down",
|
|
36
48
|
className: t
|
|
37
|
-
})),
|
|
49
|
+
})), E);
|
|
38
50
|
}
|
|
39
|
-
i.set(
|
|
51
|
+
i.set(h, {
|
|
40
52
|
name: "Dropdown",
|
|
41
53
|
props: {
|
|
42
54
|
label: {
|
|
@@ -55,4 +67,4 @@ i.set(p, {
|
|
|
55
67
|
}
|
|
56
68
|
});
|
|
57
69
|
//#endregion
|
|
58
|
-
export {
|
|
70
|
+
export { h as Dropdown };
|
|
@@ -2,34 +2,39 @@ import { createRuntimeFn as e } from "../../node_modules/.pnpm/@vanilla-extract_
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
//#region src/dropdowns/dropdown/Dropdown.css.ts
|
|
4
4
|
var t = e({
|
|
5
|
-
defaultClassName: "pkg_sps-
|
|
5
|
+
defaultClassName: "pkg_sps-woodland_core__family_dropdowns__version_8_56_14__hash_1ra15yx0",
|
|
6
6
|
variantClassNames: {
|
|
7
7
|
kind: {
|
|
8
|
-
default: "pkg_sps-
|
|
9
|
-
key: "pkg_sps-
|
|
10
|
-
confirm: "pkg_sps-
|
|
11
|
-
delete: "pkg_sps-
|
|
8
|
+
default: "pkg_sps-woodland_core__family_dropdowns__version_8_56_14__hash_1ra15yx1",
|
|
9
|
+
key: "pkg_sps-woodland_core__family_dropdowns__version_8_56_14__hash_1ra15yx2",
|
|
10
|
+
confirm: "pkg_sps-woodland_core__family_dropdowns__version_8_56_14__hash_1ra15yx3",
|
|
11
|
+
delete: "pkg_sps-woodland_core__family_dropdowns__version_8_56_14__hash_1ra15yx4"
|
|
12
12
|
},
|
|
13
13
|
disabled: {
|
|
14
|
-
true: "pkg_sps-
|
|
15
|
-
false: "pkg_sps-
|
|
14
|
+
true: "pkg_sps-woodland_core__family_dropdowns__version_8_56_14__hash_1ra15yx5",
|
|
15
|
+
false: "pkg_sps-woodland_core__family_dropdowns__version_8_56_14__hash_1ra15yx6"
|
|
16
16
|
},
|
|
17
17
|
spinning: {
|
|
18
|
-
true: "pkg_sps-
|
|
19
|
-
false: "pkg_sps-
|
|
18
|
+
true: "pkg_sps-woodland_core__family_dropdowns__version_8_56_14__hash_1ra15yx7",
|
|
19
|
+
false: "pkg_sps-woodland_core__family_dropdowns__version_8_56_14__hash_1ra15yx8"
|
|
20
|
+
},
|
|
21
|
+
opensUp: {
|
|
22
|
+
true: "pkg_sps-woodland_core__family_dropdowns__version_8_56_14__hash_1ra15yx9",
|
|
23
|
+
false: "pkg_sps-woodland_core__family_dropdowns__version_8_56_14__hash_1ra15yxa"
|
|
20
24
|
}
|
|
21
25
|
},
|
|
22
26
|
defaultVariants: {
|
|
23
27
|
kind: "default",
|
|
24
28
|
disabled: !1,
|
|
25
|
-
spinning: !1
|
|
29
|
+
spinning: !1,
|
|
30
|
+
opensUp: !1
|
|
26
31
|
},
|
|
27
32
|
compoundVariants: []
|
|
28
|
-
}), n = "pkg_sps-
|
|
29
|
-
defaultClassName: "pkg_sps-
|
|
33
|
+
}), n = "pkg_sps-woodland_core__family_dropdowns__version_8_56_14__hash_1ra15yxb", r = "pkg_sps-woodland_core__family_dropdowns__version_8_56_14__hash_1ra15yxc", i = e({
|
|
34
|
+
defaultClassName: "pkg_sps-woodland_core__family_dropdowns__version_8_56_14__hash_1ra15yxd",
|
|
30
35
|
variantClassNames: { spinning: {
|
|
31
|
-
true: "pkg_sps-
|
|
32
|
-
false: "pkg_sps-
|
|
36
|
+
true: "pkg_sps-woodland_core__family_dropdowns__version_8_56_14__hash_1ra15yxe",
|
|
37
|
+
false: "pkg_sps-woodland_core__family_dropdowns__version_8_56_14__hash_1ra15yxf"
|
|
33
38
|
} },
|
|
34
39
|
defaultVariants: {},
|
|
35
40
|
compoundVariants: []
|
package/lib/dropdowns/index.js
CHANGED
|
@@ -1,180 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
//#region ../../../node_modules/.pnpm/@vanilla-extract+recipes@0.2.5_@vanilla-extract+css@1.21.3/node_modules/@vanilla-extract/recipes/createRuntimeFn/dist/vanilla-extract-recipes-createRuntimeFn.esm.js
|
|
6
|
-
function p(e, t, n) {
|
|
7
|
-
return t in e ? Object.defineProperty(e, t, {
|
|
8
|
-
value: n,
|
|
9
|
-
enumerable: !0,
|
|
10
|
-
configurable: !0,
|
|
11
|
-
writable: !0
|
|
12
|
-
}) : e[t] = n, e;
|
|
13
|
-
}
|
|
14
|
-
function m(e, t) {
|
|
15
|
-
var n = Object.keys(e);
|
|
16
|
-
if (Object.getOwnPropertySymbols) {
|
|
17
|
-
var r = Object.getOwnPropertySymbols(e);
|
|
18
|
-
t && (r = r.filter(function(t) {
|
|
19
|
-
return Object.getOwnPropertyDescriptor(e, t).enumerable;
|
|
20
|
-
})), n.push.apply(n, r);
|
|
21
|
-
}
|
|
22
|
-
return n;
|
|
23
|
-
}
|
|
24
|
-
function h(e) {
|
|
25
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
26
|
-
var n = arguments[t] == null ? {} : arguments[t];
|
|
27
|
-
t % 2 ? m(Object(n), !0).forEach(function(t) {
|
|
28
|
-
p(e, t, n[t]);
|
|
29
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : m(Object(n)).forEach(function(t) {
|
|
30
|
-
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
return e;
|
|
34
|
-
}
|
|
35
|
-
var g = (e, t, n) => {
|
|
36
|
-
for (var r of Object.keys(e)) if (e[r] !== (t[r] ?? n[r])) return !1;
|
|
37
|
-
return !0;
|
|
38
|
-
}, _ = (e) => (t) => {
|
|
39
|
-
var n = e.defaultClassName, r = h(h({}, e.defaultVariants), t);
|
|
40
|
-
for (var i in r) {
|
|
41
|
-
var a = r[i] ?? e.defaultVariants[i];
|
|
42
|
-
if (a != null) {
|
|
43
|
-
var o = a;
|
|
44
|
-
typeof o == "boolean" && (o = o === !0 ? "true" : "false");
|
|
45
|
-
var s = e.variantClassNames[i][o];
|
|
46
|
-
s && (n += " " + s);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
for (var [c, l] of e.compoundVariants) g(c, r, e.defaultVariants) && (n += " " + l);
|
|
50
|
-
return n;
|
|
51
|
-
}, v = _({
|
|
52
|
-
defaultClassName: "pkg_sps-woodland_core__family_dropdowns__version_8_56_12__hash_1ra15yx0",
|
|
53
|
-
variantClassNames: {
|
|
54
|
-
kind: {
|
|
55
|
-
default: "pkg_sps-woodland_core__family_dropdowns__version_8_56_12__hash_1ra15yx1",
|
|
56
|
-
key: "pkg_sps-woodland_core__family_dropdowns__version_8_56_12__hash_1ra15yx2",
|
|
57
|
-
confirm: "pkg_sps-woodland_core__family_dropdowns__version_8_56_12__hash_1ra15yx3",
|
|
58
|
-
delete: "pkg_sps-woodland_core__family_dropdowns__version_8_56_12__hash_1ra15yx4"
|
|
59
|
-
},
|
|
60
|
-
disabled: {
|
|
61
|
-
true: "pkg_sps-woodland_core__family_dropdowns__version_8_56_12__hash_1ra15yx5",
|
|
62
|
-
false: "pkg_sps-woodland_core__family_dropdowns__version_8_56_12__hash_1ra15yx6"
|
|
63
|
-
},
|
|
64
|
-
spinning: {
|
|
65
|
-
true: "pkg_sps-woodland_core__family_dropdowns__version_8_56_12__hash_1ra15yx7",
|
|
66
|
-
false: "pkg_sps-woodland_core__family_dropdowns__version_8_56_12__hash_1ra15yx8"
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
|
-
defaultVariants: {
|
|
70
|
-
kind: "default",
|
|
71
|
-
disabled: !1,
|
|
72
|
-
spinning: !1
|
|
73
|
-
},
|
|
74
|
-
compoundVariants: []
|
|
75
|
-
}), y = "pkg_sps-woodland_core__family_dropdowns__version_8_56_12__hash_1ra15yxa", b = _({
|
|
76
|
-
defaultClassName: "pkg_sps-woodland_core__family_dropdowns__version_8_56_12__hash_1ra15yxb",
|
|
77
|
-
variantClassNames: { spinning: {
|
|
78
|
-
true: "pkg_sps-woodland_core__family_dropdowns__version_8_56_12__hash_1ra15yxc",
|
|
79
|
-
false: "pkg_sps-woodland_core__family_dropdowns__version_8_56_12__hash_1ra15yxd"
|
|
80
|
-
} },
|
|
81
|
-
defaultVariants: {},
|
|
82
|
-
compoundVariants: []
|
|
83
|
-
});
|
|
84
|
-
//#endregion
|
|
85
|
-
//#region src/dropdowns/dropdown/Dropdown.tsx
|
|
86
|
-
function x({ label: n, disabled: o, icon: c, kind: u = "default", maxHeightPx: p, maxHeightRem: m, spinning: h, onOpen: g, onClose: _, loading: x, className: S, children: C, ...w }) {
|
|
87
|
-
let { t: T } = f(), E = e.useRef(null), D = s(w), O = e.useMemo(() => a(C, () => [{
|
|
88
|
-
maxHeightPx: p,
|
|
89
|
-
maxHeightRem: m,
|
|
90
|
-
buttonRef: E,
|
|
91
|
-
loading: x,
|
|
92
|
-
onClose: _
|
|
93
|
-
}], !1), [C]);
|
|
94
|
-
return /* @__PURE__ */ e.createElement(d, null, /* @__PURE__ */ e.createElement(l, {
|
|
95
|
-
ref: E,
|
|
96
|
-
className: i(v({
|
|
97
|
-
kind: u,
|
|
98
|
-
disabled: o,
|
|
99
|
-
spinning: h
|
|
100
|
-
}), S),
|
|
101
|
-
disabled: o || h,
|
|
102
|
-
"data-testid": `${D}__dropdown`,
|
|
103
|
-
...w
|
|
104
|
-
}, h && /* @__PURE__ */ e.createElement(r, {
|
|
105
|
-
color: u === "default" ? "dark" : "light",
|
|
106
|
-
className: b({ spinning: h }),
|
|
107
|
-
title: T("button.spinningTitle", { defaultValue: "Loading..." }),
|
|
108
|
-
"data-testid": `${D}__spinner`
|
|
109
|
-
}), c && /* @__PURE__ */ e.createElement(t, {
|
|
110
|
-
icon: c,
|
|
111
|
-
className: "pkg_sps-woodland_core__family_dropdowns__version_8_56_12__hash_1ra15yx9",
|
|
112
|
-
"aria-hidden": "true"
|
|
113
|
-
}), n, /* @__PURE__ */ e.createElement(t, {
|
|
114
|
-
icon: "chevron-down",
|
|
115
|
-
className: y
|
|
116
|
-
})), O);
|
|
117
|
-
}
|
|
118
|
-
n.set(x, {
|
|
119
|
-
name: "Dropdown",
|
|
120
|
-
props: {
|
|
121
|
-
label: {
|
|
122
|
-
type: "string",
|
|
123
|
-
required: !0
|
|
124
|
-
},
|
|
125
|
-
disabled: "boolean",
|
|
126
|
-
icon: "IconName",
|
|
127
|
-
kind: {
|
|
128
|
-
type: "\"default\" | \"key\" | \"confirm\" | \"delete\"",
|
|
129
|
-
default: "\"default\""
|
|
130
|
-
},
|
|
131
|
-
maxHeightPx: "number",
|
|
132
|
-
maxHeightRem: "number",
|
|
133
|
-
spinning: "boolean"
|
|
134
|
-
}
|
|
135
|
-
});
|
|
136
|
-
//#endregion
|
|
137
|
-
//#region src/dropdowns/option-list/Option.css.ts
|
|
138
|
-
var S = "pkg_sps-woodland_core__family_dropdowns__version_8_56_12__hash_1ekfy7k0";
|
|
139
|
-
//#endregion
|
|
140
|
-
//#region src/dropdowns/option-list/Option.tsx
|
|
141
|
-
function C({ disabled: t, children: n, ...r }) {
|
|
142
|
-
return /* @__PURE__ */ e.createElement(u, {
|
|
143
|
-
className: i(S, t && "pkg_sps-woodland_core__family_dropdowns__version_8_56_12__hash_1ekfy7k1"),
|
|
144
|
-
"aria-disabled": t,
|
|
145
|
-
...r
|
|
146
|
-
}, n);
|
|
147
|
-
}
|
|
148
|
-
n.set(C, {
|
|
149
|
-
name: "Option",
|
|
150
|
-
props: {}
|
|
151
|
-
});
|
|
152
|
-
//#endregion
|
|
153
|
-
//#region src/dropdowns/option-list/OptionList.css.ts
|
|
154
|
-
var w = "pkg_sps-woodland_core__family_dropdowns__version_8_56_12__hash_mxlo6o0", T = "pkg_sps-woodland_core__family_dropdowns__version_8_56_12__hash_mxlo6o1";
|
|
155
|
-
//#endregion
|
|
156
|
-
//#region src/dropdowns/option-list/OptionList.tsx
|
|
157
|
-
function E({ buttonRef: t, conformWidth: n, maxHeightPx: a, maxHeightRem: s, minWidth: l, loading: u, onClose: d, children: f, ...p }) {
|
|
158
|
-
let [m, h] = e.useState(void 0);
|
|
159
|
-
e.useEffect(() => {
|
|
160
|
-
n && t?.current && h(t.current.offsetWidth);
|
|
161
|
-
}, [n, t]);
|
|
162
|
-
let g = a ? a / 16 : s, _ = {
|
|
163
|
-
...g ? { maxHeight: `${g}rem` } : {},
|
|
164
|
-
...n && m ? { width: m } : {}
|
|
165
|
-
}, [v] = o(f, [{ type: C }]);
|
|
166
|
-
return /* @__PURE__ */ e.createElement(c, {
|
|
167
|
-
className: i(w),
|
|
168
|
-
style: _,
|
|
169
|
-
onClose: d,
|
|
170
|
-
preventBodyScroll: !0,
|
|
171
|
-
typeahead: !0,
|
|
172
|
-
...p
|
|
173
|
-
}, u ? /* @__PURE__ */ e.createElement(r, { className: T }) : v);
|
|
174
|
-
}
|
|
175
|
-
n.set(E, {
|
|
176
|
-
name: "Option List",
|
|
177
|
-
props: { conformWidth: "boolean" }
|
|
178
|
-
});
|
|
179
|
-
//#endregion
|
|
180
|
-
export { x as Dropdown, C as Option, E as OptionList };
|
|
1
|
+
import { Dropdown as e } from "./dropdown/Dropdown.js";
|
|
2
|
+
import { Option as t } from "./option-list/Option.js";
|
|
3
|
+
import { OptionList as n } from "./option-list/OptionList.js";
|
|
4
|
+
export { e as Dropdown, t as Option, n as OptionList };
|
|
@@ -5,7 +5,7 @@ import { MenuItem as i } from "@ariakit/react";
|
|
|
5
5
|
//#region src/dropdowns/option-list/Option.tsx
|
|
6
6
|
function a({ disabled: t, children: a, ...o }) {
|
|
7
7
|
return /* @__PURE__ */ r.createElement(i, {
|
|
8
|
-
className: n(e, t && "pkg_sps-
|
|
8
|
+
className: n(e, t && "pkg_sps-woodland_core__family_dropdowns__version_8_56_14__hash_1ekfy7k1"),
|
|
9
9
|
"aria-disabled": t,
|
|
10
10
|
...o
|
|
11
11
|
}, a);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* empty css */
|
|
2
2
|
//#region src/dropdowns/option-list/Option.css.ts
|
|
3
|
-
var e = "pkg_sps-
|
|
3
|
+
var e = "pkg_sps-woodland_core__family_dropdowns__version_8_56_14__hash_1ekfy7k0", t = "pkg_sps-woodland_core__family_dropdowns__version_8_56_14__hash_1ekfy7k1";
|
|
4
4
|
//#endregion
|
|
5
5
|
export { t as disabled, e as option };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OptionList.css.d.ts","sourceRoot":"","sources":["../../../src/dropdowns/option-list/OptionList.css.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU,QAuBtB,CAAC;AAEF,eAAO,MAAM,OAAO,QAElB,CAAC"}
|
|
1
|
+
{"version":3,"file":"OptionList.css.d.ts","sourceRoot":"","sources":["../../../src/dropdowns/option-list/OptionList.css.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU,QAuBtB,CAAC;AAEF,eAAO,MAAM,iBAAiB,QAI5B,CAAC;AAEH,eAAO,MAAM,OAAO,QAElB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OptionList.d.ts","sourceRoot":"","sources":["../../../src/dropdowns/option-list/OptionList.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAMzD,wBAAgB,UAAU,CAAC,EACzB,SAAS,EACT,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,QAAQ,EACR,OAAO,EACP,OAAO,EACP,QAAQ,EACR,GAAG,IAAI,EACR,EAAE,cAAc,CAAC;IAChB,SAAS,CAAC,EAAE,GAAG,CAAC;IAChB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC,
|
|
1
|
+
{"version":3,"file":"OptionList.d.ts","sourceRoot":"","sources":["../../../src/dropdowns/option-list/OptionList.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAMzD,wBAAgB,UAAU,CAAC,EACzB,SAAS,EACT,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,QAAQ,EACR,OAAO,EACP,OAAO,EACP,QAAQ,EACR,GAAG,IAAI,EACR,EAAE,cAAc,CAAC;IAChB,SAAS,CAAC,EAAE,GAAG,CAAC;IAChB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC,eAmCD"}
|
|
@@ -2,29 +2,29 @@ import { Option as e } from "./Option.js";
|
|
|
2
2
|
import { optionList as t, spinner as n } from "./OptionList.ve.js";
|
|
3
3
|
import { Metadata as r, Spinner as i, cl as a, selectChildren as o } from "@sps-woodland/core";
|
|
4
4
|
import * as s from "react";
|
|
5
|
-
import { Menu as c } from "@ariakit/react";
|
|
5
|
+
import { Menu as c, useMenuContext as l } from "@ariakit/react";
|
|
6
6
|
//#region src/dropdowns/option-list/OptionList.tsx
|
|
7
|
-
function
|
|
8
|
-
let [
|
|
7
|
+
function u({ buttonRef: r, conformWidth: u, maxHeightPx: d, maxHeightRem: f, minWidth: p, loading: m, onClose: h, children: g, ..._ }) {
|
|
8
|
+
let [v, y] = s.useState(void 0);
|
|
9
9
|
s.useEffect(() => {
|
|
10
|
-
|
|
11
|
-
}, [
|
|
12
|
-
let
|
|
13
|
-
...
|
|
14
|
-
...
|
|
15
|
-
}, [
|
|
10
|
+
u && r?.current && y(r.current.offsetWidth);
|
|
11
|
+
}, [u, r]);
|
|
12
|
+
let b = !!(l()?.useState("currentPlacement"))?.startsWith("top"), x = d ? d / 16 : f, S = {
|
|
13
|
+
...x ? { maxHeight: `${x}rem` } : {},
|
|
14
|
+
...u && v ? { width: v } : {}
|
|
15
|
+
}, [C] = o(g, [{ type: e }]);
|
|
16
16
|
return /* @__PURE__ */ s.createElement(c, {
|
|
17
|
-
className: a(t),
|
|
18
|
-
style:
|
|
19
|
-
onClose:
|
|
17
|
+
className: a(t, b && "pkg_sps-woodland_core__family_dropdowns__version_8_56_14__hash_mxlo6o1"),
|
|
18
|
+
style: S,
|
|
19
|
+
onClose: h,
|
|
20
20
|
preventBodyScroll: !0,
|
|
21
21
|
typeahead: !0,
|
|
22
|
-
...
|
|
23
|
-
},
|
|
22
|
+
..._
|
|
23
|
+
}, m ? /* @__PURE__ */ s.createElement(i, { className: n }) : C);
|
|
24
24
|
}
|
|
25
|
-
r.set(
|
|
25
|
+
r.set(u, {
|
|
26
26
|
name: "Option List",
|
|
27
27
|
props: { conformWidth: "boolean" }
|
|
28
28
|
});
|
|
29
29
|
//#endregion
|
|
30
|
-
export {
|
|
30
|
+
export { u as OptionList };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* empty css */
|
|
2
2
|
//#region src/dropdowns/option-list/OptionList.css.ts
|
|
3
|
-
var e = "pkg_sps-
|
|
3
|
+
var e = "pkg_sps-woodland_core__family_dropdowns__version_8_56_14__hash_mxlo6o0", t = "pkg_sps-woodland_core__family_dropdowns__version_8_56_14__hash_mxlo6o1", n = "pkg_sps-woodland_core__family_dropdowns__version_8_56_14__hash_mxlo6o2";
|
|
4
4
|
//#endregion
|
|
5
|
-
export { e as optionList, t as spinner };
|
|
5
|
+
export { e as optionList, t as optionListOpensUp, n as spinner };
|