@sps-woodland/core 8.53.12 → 8.53.13
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 +8 -8
- package/lib/action-bar/index.js +30 -30
- package/lib/action-bar/index.umd.cjs +1 -1
- package/lib/action-bar/style.css +1 -1
- package/lib/add-to-list/add-to-list/AddToList.ve.js +19 -19
- package/lib/add-to-list/index.js +183 -183
- package/lib/add-to-list/index.umd.cjs +1 -1
- package/lib/add-to-list/style.css +1 -1
- package/lib/buttons/button/Button.ve.js +4 -4
- package/lib/buttons/index.js +48 -48
- package/lib/buttons/index.umd.cjs +1 -1
- package/lib/buttons/style.css +1 -1
- package/lib/cards/card/Card.ve.js +1 -1
- package/lib/cards/card-footer/CardFooter.ve.js +2 -2
- package/lib/cards/card-header/CardHeader.ve.js +1 -1
- package/lib/cards/card-title/CardTitle.ve.js +2 -2
- package/lib/cards/index.js +21 -21
- package/lib/cards/index.umd.cjs +1 -1
- package/lib/cards/style.css +1 -1
- package/lib/content-row/content-row/ContentRow.ve.js +13 -13
- package/lib/content-row/content-row-col/ContentRowCol.ve.js +2 -2
- package/lib/content-row/index.js +152 -152
- package/lib/content-row/index.umd.cjs +1 -1
- package/lib/content-row/row-list-auto-layout/RowListAutoLayout.ve.js +2 -2
- package/lib/content-row/style.css +1 -1
- package/lib/content-tiles/content-tile/ContentTile.ve.js +7 -7
- package/lib/content-tiles/content-tile-list/ContentTileList.ve.js +3 -3
- package/lib/content-tiles/index.js +59 -59
- package/lib/content-tiles/index.umd.cjs +1 -1
- package/lib/content-tiles/style.css +1 -1
- package/lib/core.css +1 -1
- package/lib/dropdowns/dropdown/Dropdown.ve.js +3 -3
- package/lib/dropdowns/index.js +84 -84
- package/lib/dropdowns/index.umd.cjs +1 -1
- package/lib/dropdowns/option-list/Option.ve.js +1 -1
- package/lib/dropdowns/option-list/OptionList.ve.js +1 -1
- package/lib/dropdowns/style.css +1 -1
- package/lib/feedback-block/FeedbackBlock.ve.js +3 -3
- package/lib/feedback-block/index.js +54 -54
- package/lib/feedback-block/index.umd.cjs +1 -1
- package/lib/feedback-block/style.css +1 -1
- package/lib/file-upload/file-upload/FileUpload.ve.js +14 -14
- package/lib/file-upload/index.js +110 -110
- package/lib/file-upload/index.umd.cjs +1 -1
- package/lib/file-upload/style.css +1 -1
- package/lib/filter-tiles/filter-tile/FilterTile.ve.js +5 -5
- package/lib/filter-tiles/filter-tile-set/FilterTileSet.ve.js +2 -2
- package/lib/filter-tiles/index.js +55 -55
- package/lib/filter-tiles/index.umd.cjs +1 -1
- package/lib/filter-tiles/style.css +1 -1
- package/lib/focused-task/focused-task/FocusedTask.ve.js +9 -9
- package/lib/focused-task/index.js +49 -49
- package/lib/focused-task/index.umd.cjs +1 -1
- package/lib/focused-task/style.css +1 -1
- package/lib/growler/Growler.ve.js +7 -7
- package/lib/growler/Sonner.ve.js +7 -7
- package/lib/growler/index.js +80 -80
- package/lib/growler/index.umd.cjs +1 -1
- package/lib/growler/style.css +1 -1
- package/lib/index.js +104 -104
- package/lib/index.umd.cjs +2 -2
- package/lib/insight-card/InsightCard.ve.js +7 -7
- package/lib/insight-card/index.js +59 -59
- package/lib/insight-card/index.umd.cjs +1 -1
- package/lib/insight-card/style.css +1 -1
- package/lib/key-value-set/index.js +53 -53
- package/lib/key-value-set/index.umd.cjs +1 -1
- 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 +3 -3
- package/lib/key-value-set/style.css +1 -1
- package/lib/list-bar/advanced-search/AdvancedSearch.ve.js +5 -5
- package/lib/list-bar/index.js +88 -88
- package/lib/list-bar/index.umd.cjs +1 -1
- package/lib/list-bar/list-bar/ListBar.ve.js +12 -12
- package/lib/list-bar/search-results-bar/SearchResultsBar.ve.js +8 -8
- package/lib/list-bar/style.css +1 -1
- package/lib/matrix/index.js +29 -29
- package/lib/matrix/index.umd.cjs +1 -1
- package/lib/matrix/matrix/Matrix.ve.js +2 -2
- package/lib/matrix/style.css +1 -1
- package/lib/modal/index.js +86 -86
- package/lib/modal/index.umd.cjs +1 -1
- package/lib/modal/modal/Modal.ve.js +9 -9
- package/lib/modal/style.css +1 -1
- package/lib/page-title/index.js +17 -17
- package/lib/page-title/index.umd.cjs +1 -1
- package/lib/page-title/page-subtitle/PageSubtitle.ve.js +3 -3
- package/lib/page-title/page-title/PageTitle.ve.js +4 -4
- package/lib/page-title/style.css +1 -1
- package/lib/photo/index.js +67 -67
- package/lib/photo/index.umd.cjs +1 -1
- package/lib/photo/photo/Photo.ve.js +1 -1
- package/lib/photo/photo-carousel/PhotoCarousel.ve.js +1 -1
- package/lib/photo/style.css +1 -1
- package/lib/product-bar/index.js +62 -62
- package/lib/product-bar/index.umd.cjs +1 -1
- package/lib/product-bar/product-bar/ProductBar.ve.js +10 -10
- package/lib/product-bar/product-bar-overflow-menu/ProductBarOverflowMenu.ve.js +5 -5
- package/lib/product-bar/slack-link/SlackLink.ve.js +2 -2
- package/lib/product-bar/style.css +1 -1
- package/lib/product-bar-vertical/index.js +69 -69
- package/lib/product-bar-vertical/index.umd.cjs +1 -1
- package/lib/product-bar-vertical/product-bar-vertical/ProductBarVertical.ve.js +20 -20
- package/lib/product-bar-vertical/style.css +1 -1
- package/lib/progress-indicators/index.js +79 -79
- package/lib/progress-indicators/index.umd.cjs +1 -1
- package/lib/progress-indicators/progress-bar/ProgressBar.ve.js +10 -10
- package/lib/progress-indicators/progress-bar/progress-bar-step/ProgressBarStep.ve.js +4 -4
- package/lib/progress-indicators/style.css +1 -1
- package/lib/rich-text-editor/index.js +85 -85
- package/lib/rich-text-editor/index.umd.cjs +2 -2
- package/lib/rich-text-editor/rich-text-editor/RTEToolbarButton.ve.js +2 -2
- package/lib/rich-text-editor/rich-text-editor/RichTextEditor.ve.js +5 -5
- package/lib/rich-text-editor/style.css +1 -1
- package/lib/scrollable-container/ScrollableContainer.ve.js +1 -1
- package/lib/scrollable-container/index.js +8 -8
- package/lib/scrollable-container/index.umd.cjs +1 -1
- package/lib/scrollable-container/style.css +1 -1
- package/lib/side-nav/index.js +78 -78
- package/lib/side-nav/index.umd.cjs +1 -1
- package/lib/side-nav/side-nav/SideNav.ve.js +12 -12
- package/lib/side-nav/style.css +1 -1
- package/lib/sorting-header/caret/caret.ve.js +2 -2
- package/lib/sorting-header/index.js +125 -125
- package/lib/sorting-header/index.umd.cjs +1 -1
- package/lib/sorting-header/sorting-header/SortingHeader.ve.js +3 -3
- package/lib/sorting-header/sorting-header-cell/SortingHeaderCell.ve.js +2 -2
- package/lib/sorting-header/style.css +1 -1
- package/lib/style.css +1 -1
- package/lib/tabs/index.js +100 -100
- package/lib/tabs/index.umd.cjs +1 -1
- package/lib/tabs/style.css +1 -1
- package/lib/tabs/tab/Tab.ve.js +2 -2
- package/lib/tabs/tabs/Tabs.ve.js +5 -5
- package/lib/tags/clickable-tag/ClickableTag.ve.js +4 -4
- package/lib/tags/index.js +80 -80
- package/lib/tags/index.umd.cjs +1 -1
- package/lib/tags/split-tag/SplitTag.ve.js +2 -2
- package/lib/tags/style.css +1 -1
- package/lib/tags/tag/Tag.ve.js +3 -3
- package/lib/zero-state/ZeroState.ve.js +6 -6
- package/lib/zero-state/index.js +42 -42
- package/lib/zero-state/index.umd.cjs +1 -1
- package/lib/zero-state/style.css +1 -1
- package/package.json +10 -10
package/lib/file-upload/index.js
CHANGED
|
@@ -2,8 +2,8 @@ import * as e from "react";
|
|
|
2
2
|
import { Metadata as ve, cl as j, Spinner as he } from "@sps-woodland/core";
|
|
3
3
|
import { parseFileSize as ge } from "@spscommerce/utils";
|
|
4
4
|
import { Button as B } from "@sps-woodland/core/button";
|
|
5
|
-
import { GENERAL_ERROR_LARGE as ke, UPLOAD_LARGE as
|
|
6
|
-
import { useWoodlandLanguage as
|
|
5
|
+
import { GENERAL_ERROR_LARGE as ke, UPLOAD_LARGE as ye } from "@sps-woodland/illustrations";
|
|
6
|
+
import { useWoodlandLanguage as we } from "@spscommerce/i18n";
|
|
7
7
|
const W = {
|
|
8
8
|
"7Z": ["application/x-7z-compressed"],
|
|
9
9
|
AAC: ["audio/aac"],
|
|
@@ -108,222 +108,222 @@ const W = {
|
|
|
108
108
|
XUL: ["application/vnd.mozilla.xul+xml"],
|
|
109
109
|
ZIP: ["application/zip"]
|
|
110
110
|
};
|
|
111
|
-
function
|
|
112
|
-
return
|
|
113
|
-
value:
|
|
111
|
+
function Ee(a, n, t) {
|
|
112
|
+
return n in a ? Object.defineProperty(a, n, {
|
|
113
|
+
value: t,
|
|
114
114
|
enumerable: !0,
|
|
115
115
|
configurable: !0,
|
|
116
116
|
writable: !0
|
|
117
|
-
}) : a[
|
|
117
|
+
}) : a[n] = t, a;
|
|
118
118
|
}
|
|
119
|
-
function G(a,
|
|
120
|
-
var
|
|
119
|
+
function G(a, n) {
|
|
120
|
+
var t = Object.keys(a);
|
|
121
121
|
if (Object.getOwnPropertySymbols) {
|
|
122
|
-
var
|
|
123
|
-
|
|
124
|
-
return Object.getOwnPropertyDescriptor(a,
|
|
125
|
-
})),
|
|
122
|
+
var l = Object.getOwnPropertySymbols(a);
|
|
123
|
+
n && (l = l.filter(function(s) {
|
|
124
|
+
return Object.getOwnPropertyDescriptor(a, s).enumerable;
|
|
125
|
+
})), t.push.apply(t, l);
|
|
126
126
|
}
|
|
127
|
-
return
|
|
127
|
+
return t;
|
|
128
128
|
}
|
|
129
129
|
function Z(a) {
|
|
130
|
-
for (var
|
|
131
|
-
var
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(
|
|
135
|
-
Object.defineProperty(a,
|
|
130
|
+
for (var n = 1; n < arguments.length; n++) {
|
|
131
|
+
var t = arguments[n] != null ? arguments[n] : {};
|
|
132
|
+
n % 2 ? G(Object(t), !0).forEach(function(l) {
|
|
133
|
+
Ee(a, l, t[l]);
|
|
134
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) : G(Object(t)).forEach(function(l) {
|
|
135
|
+
Object.defineProperty(a, l, Object.getOwnPropertyDescriptor(t, l));
|
|
136
136
|
});
|
|
137
137
|
}
|
|
138
138
|
return a;
|
|
139
139
|
}
|
|
140
|
-
var xe = (a,
|
|
141
|
-
for (var
|
|
142
|
-
var
|
|
143
|
-
if (a[
|
|
140
|
+
var xe = (a, n, t) => {
|
|
141
|
+
for (var l of Object.keys(a)) {
|
|
142
|
+
var s;
|
|
143
|
+
if (a[l] !== ((s = n[l]) !== null && s !== void 0 ? s : t[l]))
|
|
144
144
|
return !1;
|
|
145
145
|
}
|
|
146
146
|
return !0;
|
|
147
|
-
}, F = (a) => (
|
|
148
|
-
var
|
|
149
|
-
for (var
|
|
150
|
-
var m, k = (m =
|
|
147
|
+
}, F = (a) => (n) => {
|
|
148
|
+
var t = a.defaultClassName, l = Z(Z({}, a.defaultVariants), n);
|
|
149
|
+
for (var s in l) {
|
|
150
|
+
var m, k = (m = l[s]) !== null && m !== void 0 ? m : a.defaultVariants[s];
|
|
151
151
|
if (k != null) {
|
|
152
152
|
var p = k;
|
|
153
153
|
typeof p == "boolean" && (p = p === !0 ? "true" : "false");
|
|
154
|
-
var
|
|
154
|
+
var r = (
|
|
155
155
|
// @ts-expect-error
|
|
156
|
-
a.variantClassNames[
|
|
156
|
+
a.variantClassNames[s][p]
|
|
157
157
|
);
|
|
158
|
-
|
|
158
|
+
r && (t += " " + r);
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
161
|
for (var [x, S] of a.compoundVariants)
|
|
162
|
-
xe(x,
|
|
163
|
-
return
|
|
164
|
-
}, Oe = F({ defaultClassName: "pkg_sps-
|
|
162
|
+
xe(x, l, a.defaultVariants) && (t += " " + S);
|
|
163
|
+
return t;
|
|
164
|
+
}, Oe = F({ defaultClassName: "pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zk0", variantClassNames: { active: { true: "pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zk1", false: "pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zk2" }, mini: { true: "pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zk3", false: "pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zk4" }, error: { true: "pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zk5", false: "pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zk6" }, shown: { true: "pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zk7", false: "pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zk8" }, disabled: { true: "pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zk9", false: "pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zka" } }, defaultVariants: { active: !1, mini: !1, error: !1, shown: !0, disabled: !1 }, compoundVariants: [] }), ze = F({ defaultClassName: "pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zkb", variantClassNames: { constrainContentWidth: { true: "pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zkc", false: "pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zkd" }, disabled: { true: "pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zke", false: "pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zkf" } }, defaultVariants: { constrainContentWidth: !1, disabled: !1 }, compoundVariants: [] }), $ = "pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zkg", Pe = F({ defaultClassName: "pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zkh", variantClassNames: { mini: { true: "pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zki", false: "pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zkj" }, error: { true: "pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zkk", false: "pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zkl" }, disabled: { true: "pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zkm", false: "pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zkn" } }, defaultVariants: { mini: !1, error: !1, disabled: !1 }, compoundVariants: [] }), Te = F({ defaultClassName: "pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zko", variantClassNames: { mini: { true: "pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zkp", false: "pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zkq" } }, defaultVariants: { mini: !1 }, compoundVariants: [] }), be = "pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zkr", Fe = "pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zks", q = "pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zkt", H = "pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zku", Se = "pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zkv", Ce = "pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zkw", De = "pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zkx", Ue = "pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zky", Me = "pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zkz";
|
|
165
165
|
function J({ list: a }) {
|
|
166
|
-
return /* @__PURE__ */ e.createElement(e.Fragment, null, a.map((
|
|
167
|
-
const
|
|
168
|
-
return /* @__PURE__ */ e.createElement("div", { className: Fe, key:
|
|
166
|
+
return /* @__PURE__ */ e.createElement(e.Fragment, null, a.map((n, t) => {
|
|
167
|
+
const l = Math.floor(n.length / 2);
|
|
168
|
+
return /* @__PURE__ */ e.createElement("div", { className: Fe, key: n }, /* @__PURE__ */ e.createElement("span", { className: q }, n.substring(0, l)), /* @__PURE__ */ e.createElement("div", { className: q }, /* @__PURE__ */ e.createElement("span", null, n.substring(l))), t < a.length - 1 ? "," : "");
|
|
169
169
|
}));
|
|
170
170
|
}
|
|
171
171
|
function Le({
|
|
172
172
|
constrainContentWidth: a,
|
|
173
|
-
description:
|
|
174
|
-
multiple:
|
|
175
|
-
dismissable:
|
|
176
|
-
processing:
|
|
173
|
+
description: n,
|
|
174
|
+
multiple: t = !1,
|
|
175
|
+
dismissable: l,
|
|
176
|
+
processing: s,
|
|
177
177
|
mini: m,
|
|
178
178
|
downloadLabel: k,
|
|
179
179
|
acceptExtensions: p,
|
|
180
|
-
maxSize:
|
|
180
|
+
maxSize: r,
|
|
181
181
|
customRequirement: x,
|
|
182
182
|
onSelection: S,
|
|
183
183
|
onDismiss: U,
|
|
184
184
|
download: M,
|
|
185
185
|
shown: O,
|
|
186
186
|
className: K,
|
|
187
|
-
disabled:
|
|
187
|
+
disabled: _,
|
|
188
188
|
children: Ae,
|
|
189
189
|
...Q
|
|
190
190
|
}) {
|
|
191
|
-
const z = e.useRef(/* @__PURE__ */ new Set()), C = e.useRef(/* @__PURE__ */ new Set()), [Y, L] = e.useState(O), [Ve, ee] = e.useState([]), [ae,
|
|
191
|
+
const z = e.useRef(/* @__PURE__ */ new Set()), C = e.useRef(/* @__PURE__ */ new Set()), [Y, L] = e.useState(O), [Ve, ee] = e.useState([]), [ae, oe] = e.useState(""), [A, te] = e.useState(), [le, P] = e.useState(!1), [y, T] = e.useState(!1), [u, V] = e.useState([]), [v, N] = e.useState([]), [w, ne] = e.useState(""), X = e.useMemo(
|
|
192
192
|
() => (
|
|
193
193
|
// use Set to dedupe as the same file might be on both lists
|
|
194
194
|
(/* @__PURE__ */ new Set([...u, ...v])).size
|
|
195
195
|
),
|
|
196
196
|
[u, v]
|
|
197
|
-
), { t:
|
|
197
|
+
), { t: c } = we(), b = (t ? c("fileUpload.instructions.other", {
|
|
198
198
|
defaultValue: "Drag and drop your files here or |browse for files| on your desktop."
|
|
199
|
-
}) :
|
|
199
|
+
}) : c("fileUpload.instructions.one", {
|
|
200
200
|
defaultValue: "Drag and drop your file here or |browse for a file| on your desktop."
|
|
201
|
-
})).split("|"), I =
|
|
201
|
+
})).split("|"), I = n || (t ? "Files" : "File"), d = e.useRef(null);
|
|
202
202
|
e.useEffect(() => {
|
|
203
203
|
O && L(O);
|
|
204
204
|
}, [O]), e.useEffect(() => {
|
|
205
|
-
|
|
206
|
-
}, [
|
|
207
|
-
p &&
|
|
205
|
+
r && re(r);
|
|
206
|
+
}, [r]), e.useEffect(() => {
|
|
207
|
+
p && se(p);
|
|
208
208
|
}, [p]);
|
|
209
|
-
function
|
|
210
|
-
|
|
209
|
+
function ie() {
|
|
210
|
+
l && (L(!1), U && U());
|
|
211
211
|
}
|
|
212
|
-
function
|
|
212
|
+
function re(o) {
|
|
213
213
|
try {
|
|
214
|
-
|
|
214
|
+
te(ge(o));
|
|
215
215
|
} catch {
|
|
216
|
-
throw new Error(`Could not parse "${
|
|
216
|
+
throw new Error(`Could not parse "${o}" as a file size.`);
|
|
217
217
|
}
|
|
218
218
|
}
|
|
219
|
-
function
|
|
220
|
-
const h = (Array.isArray(
|
|
221
|
-
|
|
222
|
-
f.map((
|
|
219
|
+
function se(o) {
|
|
220
|
+
const h = (Array.isArray(o) ? o : o.trim().split(/\s?,\s?/)).map((i) => i.replace(/^\./, "")), f = h.map((i) => `.${i}`.toLowerCase());
|
|
221
|
+
ne(
|
|
222
|
+
f.map((i, g) => g > 0 && g === f.length - 1 ? `or ${i}` : i).join(f.length > 2 ? ", " : " ")
|
|
223
223
|
), z.current.clear(), C.current.clear();
|
|
224
|
-
for (const
|
|
225
|
-
C.current.add(
|
|
226
|
-
const g = Object.keys(W).includes(
|
|
224
|
+
for (const i of h) {
|
|
225
|
+
C.current.add(i.toLowerCase());
|
|
226
|
+
const g = Object.keys(W).includes(i.toUpperCase()) ? W[i.toUpperCase()] : [];
|
|
227
227
|
for (const D of g)
|
|
228
228
|
z.current.add(D);
|
|
229
229
|
}
|
|
230
|
-
|
|
230
|
+
oe(f.concat(Array.from(z.current)).join(","));
|
|
231
231
|
}
|
|
232
|
-
function R(
|
|
232
|
+
function R(o) {
|
|
233
233
|
V([]), N([]);
|
|
234
|
-
const
|
|
235
|
-
for (const
|
|
236
|
-
const g =
|
|
237
|
-
p && !D && h.push(
|
|
234
|
+
const E = [], h = [], f = o ? Array.from(o) : [];
|
|
235
|
+
for (const i of f) {
|
|
236
|
+
const g = i.name.split(".").pop()?.toLowerCase() ?? "", D = i.type ? z.current.has(i.type) : C.current.has(g);
|
|
237
|
+
p && !D && h.push(i.name), r && A && i.size > A && E.push(i.name);
|
|
238
238
|
}
|
|
239
|
-
|
|
239
|
+
E.length || h.length ? (T(!0), d.current && d.current.value && (d.current.value = "")) : (ee(f), S(f)), V(E), N(h);
|
|
240
240
|
}
|
|
241
|
-
function pe(
|
|
242
|
-
|
|
241
|
+
function pe(o) {
|
|
242
|
+
o.preventDefault(), T(!1), d.current && d.current.click();
|
|
243
243
|
}
|
|
244
|
-
function
|
|
244
|
+
function _e() {
|
|
245
245
|
M && M();
|
|
246
246
|
}
|
|
247
|
-
function
|
|
248
|
-
|
|
247
|
+
function ce(o) {
|
|
248
|
+
o.stopPropagation(), R(o.target.files), d.current && d.current.value && (d.current.value = "");
|
|
249
249
|
}
|
|
250
|
-
function de(
|
|
251
|
-
|
|
250
|
+
function de(o) {
|
|
251
|
+
o.preventDefault(), o.stopPropagation(), P(!0), T(!1);
|
|
252
252
|
}
|
|
253
|
-
function fe(
|
|
254
|
-
|
|
253
|
+
function fe(o) {
|
|
254
|
+
o.preventDefault(), P(!0), T(!1);
|
|
255
255
|
}
|
|
256
|
-
function me(
|
|
257
|
-
|
|
256
|
+
function me(o) {
|
|
257
|
+
o.preventDefault(), P(!1);
|
|
258
258
|
}
|
|
259
|
-
function ue(
|
|
260
|
-
|
|
259
|
+
function ue(o) {
|
|
260
|
+
o.preventDefault(), o.stopPropagation(), P(!1), o.dataTransfer.files && R(o.dataTransfer.files);
|
|
261
261
|
}
|
|
262
262
|
return /* @__PURE__ */ e.createElement(
|
|
263
263
|
"div",
|
|
264
264
|
{
|
|
265
|
-
onDrop:
|
|
265
|
+
onDrop: _ ? () => {
|
|
266
266
|
} : ue,
|
|
267
|
-
onDragOver:
|
|
267
|
+
onDragOver: _ ? () => {
|
|
268
268
|
} : de,
|
|
269
|
-
onDragLeave:
|
|
269
|
+
onDragLeave: _ ? () => {
|
|
270
270
|
} : me,
|
|
271
|
-
onDragEnter:
|
|
271
|
+
onDragEnter: _ ? () => {
|
|
272
272
|
} : fe,
|
|
273
|
-
className: j(Oe({ active:
|
|
273
|
+
className: j(Oe({ active: le, mini: m, error: y, shown: Y, disabled: _ }), K),
|
|
274
274
|
...Q
|
|
275
275
|
},
|
|
276
|
-
/* @__PURE__ */ e.createElement("div", { className: j(ze({ constrainContentWidth: a, disabled:
|
|
276
|
+
/* @__PURE__ */ e.createElement("div", { className: j(ze({ constrainContentWidth: a, disabled: _ })) }, s ? /* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement(he, { size: "md", "aria-hidden": "true" }), /* @__PURE__ */ e.createElement("div", { className: $ }, c("fileUpload.processing", { defaultValue: "Processing Upload..." }))) : /* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement("div", { className: Pe({ mini: m, error: y, disabled: _ }), "aria-hidden": "true" }, /* @__PURE__ */ e.createElement(
|
|
277
277
|
"img",
|
|
278
278
|
{
|
|
279
279
|
className: Me,
|
|
280
|
-
src:
|
|
280
|
+
src: y ? ke : ye,
|
|
281
281
|
alt: "Upload Icon"
|
|
282
282
|
}
|
|
283
|
-
)), /* @__PURE__ */ e.createElement("div", { className: Te({ mini: m }) },
|
|
283
|
+
)), /* @__PURE__ */ e.createElement("div", { className: Te({ mini: m }) }, y ? /* @__PURE__ */ e.createElement("div", null, c(
|
|
284
284
|
X > 1 ? "fileUpload.cancelled.other" : "fileUpload.cancelled.one",
|
|
285
285
|
{
|
|
286
286
|
defaultValue: X > 1 ? "File Upload(s) Failed" : "File Upload Failed"
|
|
287
287
|
}
|
|
288
|
-
)) : /* @__PURE__ */ e.createElement("div", null,
|
|
288
|
+
)) : /* @__PURE__ */ e.createElement("div", null, c("fileUpload.title", {
|
|
289
289
|
description: I,
|
|
290
290
|
defaultValue: `Upload your ${I}`
|
|
291
|
-
}))),
|
|
291
|
+
}))), y ? /* @__PURE__ */ e.createElement("div", { className: be }, u.length > 0 && /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(J, { list: u }), /* @__PURE__ */ e.createElement("div", { className: H }, c(
|
|
292
292
|
u.length === 1 ? "fileUpload.error.tooLarge.one" : "fileUpload.error.tooLarge.other",
|
|
293
293
|
{
|
|
294
|
-
size:
|
|
295
|
-
defaultValue: u.length === 1 ? `Selected file is larger than the size limit of ${
|
|
294
|
+
size: r,
|
|
295
|
+
defaultValue: u.length === 1 ? `Selected file is larger than the size limit of ${r}.` : `Selected files are larger than the size limit of ${r}.`
|
|
296
296
|
}
|
|
297
|
-
))), v.length > 0 && /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(J, { list: v }), /* @__PURE__ */ e.createElement("div", { className: H },
|
|
297
|
+
))), v.length > 0 && /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(J, { list: v }), /* @__PURE__ */ e.createElement("div", { className: H }, c(
|
|
298
298
|
v.length === 1 ? "fileUpload.error.wrongType.one" : "fileUpload.error.wrongType.other",
|
|
299
299
|
{
|
|
300
|
-
fileTypes:
|
|
301
|
-
defaultValue: v.length === 1 ? `Selected file is not an accepted file type: ${
|
|
300
|
+
fileTypes: w,
|
|
301
|
+
defaultValue: v.length === 1 ? `Selected file is not an accepted file type: ${w}.` : `Selected files are not accepted file types: ${w}.`
|
|
302
302
|
}
|
|
303
|
-
)))) : /* @__PURE__ */ e.createElement("span", null), /* @__PURE__ */ e.createElement("div", { className: $ }, /* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement("span", null, b[0]),
|
|
304
|
-
fileTypes:
|
|
305
|
-
defaultValue: `${
|
|
306
|
-
}), " ", ")") : "",
|
|
307
|
-
size:
|
|
308
|
-
defaultValue: `${
|
|
303
|
+
)))) : /* @__PURE__ */ e.createElement("span", null), /* @__PURE__ */ e.createElement("div", { className: $ }, /* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement("span", null, b[0]), _ ? /* @__PURE__ */ e.createElement("u", null, b[1]) : /* @__PURE__ */ e.createElement("a", { href: "", onClick: pe }, b[1]), /* @__PURE__ */ e.createElement("span", null, b[2]))), /* @__PURE__ */ e.createElement("div", { className: Se }, p ? /* @__PURE__ */ e.createElement("span", null, "(", " ", c("fileUpload.acceptedTypes", {
|
|
304
|
+
fileTypes: w,
|
|
305
|
+
defaultValue: `${w} format accepted`
|
|
306
|
+
}), " ", ")") : "", r ? /* @__PURE__ */ e.createElement("span", null, "(", " ", c("fileUpload.maximumSize", {
|
|
307
|
+
size: r,
|
|
308
|
+
defaultValue: `${r} maximum`
|
|
309
309
|
}), " ", ")") : "", x ? /* @__PURE__ */ e.createElement("span", null, " ", x, " ") : ""), k && /* @__PURE__ */ e.createElement("div", { className: Ce }, /* @__PURE__ */ e.createElement(
|
|
310
310
|
B,
|
|
311
311
|
{
|
|
312
|
-
disabled:
|
|
312
|
+
disabled: _,
|
|
313
313
|
kind: "link",
|
|
314
314
|
icon: "download-cloud",
|
|
315
|
-
onClick:
|
|
315
|
+
onClick: _e
|
|
316
316
|
},
|
|
317
317
|
k
|
|
318
318
|
)))),
|
|
319
|
-
|
|
319
|
+
l && !s && /* @__PURE__ */ e.createElement("div", { className: De }, /* @__PURE__ */ e.createElement(
|
|
320
320
|
B,
|
|
321
321
|
{
|
|
322
|
-
disabled:
|
|
322
|
+
disabled: _,
|
|
323
323
|
kind: "icon",
|
|
324
324
|
icon: "x",
|
|
325
|
-
title:
|
|
326
|
-
onClick:
|
|
325
|
+
title: c("fileUpload.close", { defaultValue: "Close" }),
|
|
326
|
+
onClick: ie
|
|
327
327
|
}
|
|
328
328
|
)),
|
|
329
329
|
/* @__PURE__ */ e.createElement("form", { className: Ue }, /* @__PURE__ */ e.createElement(
|
|
@@ -332,8 +332,8 @@ function Le({
|
|
|
332
332
|
ref: d,
|
|
333
333
|
type: "file",
|
|
334
334
|
accept: ae || "*/*",
|
|
335
|
-
multiple:
|
|
336
|
-
onChange:
|
|
335
|
+
multiple: t || void 0,
|
|
336
|
+
onChange: ce
|
|
337
337
|
}
|
|
338
338
|
))
|
|
339
339
|
);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(l,w){typeof exports=="object"&&typeof module<"u"?w(exports,require("react"),require("@sps-woodland/core"),require("@spscommerce/utils"),require("@sps-woodland/core/button"),require("@sps-woodland/illustrations"),require("@spscommerce/i18n")):typeof define=="function"&&define.amd?define(["exports","react","@sps-woodland/core","@spscommerce/utils","@sps-woodland/core/button","@sps-woodland/illustrations","@spscommerce/i18n"],w):(l=typeof globalThis<"u"?globalThis:l||self,w(l.FileUpload={},l.react,l.spsWoodlandCore,l.spscommerceUtils,l.spsWoodlandCoreButton,l.spsWoodlandIllustrations,l.spscommerceI18n))})(this,(function(l,w,z,ae,A,N,te){"use strict";function ne(a){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(a){for(const t in a)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(a,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:()=>a[t]})}}return n.default=a,Object.freeze(n)}const e=ne(w),V={"7Z":["application/x-7z-compressed"],AAC:["audio/aac"],ABW:["application/x-abiword"],ARC:["application/octet-stream"],AVI:["video/x-msvideo"],AZW:["application/vnd.amazon.ebook"],BIN:["application/octet-stream"],BMP:["image/bmp"],BZ:["application/x-bzip"],BZ2:["application/x-bzip2"],CER:["application/pkix-cert","application/x-x509-ca-cert"],CSH:["application/x-csh"],CSS:["text/css"],CSV:["text/csv","application/vnd.ms-excel"],DOC:["application/msword"],DOT:["application/msword"],DOCX:["application/vnd.openxmlformats-officedocument.wordprocessingml.document"],DOTX:["application/vnd.openxmlformats-officedocument.wordprocessingml.template"],DOCM:["application/vnd.ms-word.document.macroEnabled.12"],DOTM:["application/vnd.ms-word.template.macroEnabled.12"],EDI:["application/edi-x12","application/edifact"],EML:["application/octet-stream","message/rfc822","multipart/mixed","message/rfc5322","message/rfc6532"],EOT:["application/vnd.ms-fontobject"],EPUB:["application/epub+zip"],ES:["application/ecmascript"],FLV:["video/x-flv"],GIF:["image/gif"],GZ:["application/x-gzip"],HTM:["text/html"],HTML:["text/html"],ICO:["image/x-icon"],ICS:["text/calendar"],JAR:["application/java-archive"],JPEG:["image/jpeg"],JPG:["image/jpeg"],JS:["application/javascript"],JSON:["application/json"],M3U:["audio/x-mpequrl"],MID:["audio/midi"],MIDI:["audio/midi"],MOV:["video/quicktime"],MP3:["audio/mpeg3"],MP4:["video/mp4"],MPEG:["video/mpeg"],MPKG:["application/vnd.apple.installer+xml"],ODP:["application/vnd.oasis.opendocument.presentation"],ODS:["application/vnd.oasis.opendocument.spreadsheet"],ODT:["application/vnd.oasis.opendocument.text"],OGA:["audio/ogg"],OGV:["video/ogg"],OGX:["application/ogg"],OTF:["font/otf"],PNG:["image/png"],PDF:["application/pdf"],POT:["application/vnd.ms-powerpoint"],POTM:["application/vnd.ms-powerpoint.template.macroEnabled.12"],POTX:["application/vnd.openxmlformats-officedocument.presentationml.template"],PPA:["application/vnd.ms-powerpoint"],PPAM:["application/vnd.ms-powerpoint.addin.macroEnabled.12"],PPS:["application/vnd.ms-powerpoint"],PPSM:["application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],PPT:["application/vnd.ms-powerpoint"],PPTM:["application/vnd.ms-powerpoint.presentation.macroEnabled.12"],PPSX:["application/vnd.openxmlformats-officedocument.presentationml.slideshow"],PPTX:["application/vnd.openxmlformats-officedocument.presentationml.presentation"],RAR:["application/x-rar-compressed"],RTF:["application/rtf"],SH:["application/x-sh"],SVG:["image/svg+xml"],SWF:["application/x-shockwave-flash"],TAR:["application/x-tar"],TIF:["image/tiff"],TIFF:["image/tiff"],TS:["application/typescript"],TTF:["font/ttf"],TXT:["text/plain"],VSD:["application/vnd.visio"],WAV:["audio/wav"],WEBA:["audio/webm"],WEBM:["video/webm"],WEBP:["image/webp"],WOFF:["font/woff"],WOFF2:["font/woff2"],XHTML:["application/xhtml+xml"],XLA:["application/vnd.ms-excel"],XLS:["application/vnd.ms-excel"],XLSB:["application/vnd.ms-excel.sheet.binary.macroEnabled.12"],XLT:["application/vnd.ms-excel"],XLAM:["application/vnd.ms-excel.addin.macroEnabled.12"],XLSM:["application/vnd.ms-excel.sheet.macroEnabled.12"],XLSX:["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],XLTM:["application/vnd.ms-excel.template.macroEnabled.12"],XLTX:["application/vnd.openxmlformats-officedocument.spreadsheetml.template"],XML:["application/xml"],XUL:["application/vnd.mozilla.xul+xml"],ZIP:["application/zip"]};function oe(a,n,t){return n in a?Object.defineProperty(a,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[n]=t,a}function j(a,n){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(a);n&&(o=o.filter(function(p){return Object.getOwnPropertyDescriptor(a,p).enumerable})),t.push.apply(t,o)}return t}function I(a){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?j(Object(t),!0).forEach(function(o){oe(a,o,t[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):j(Object(t)).forEach(function(o){Object.defineProperty(a,o,Object.getOwnPropertyDescriptor(t,o))})}return a}var se=(a,n,t)=>{for(var o of Object.keys(a)){var p;if(a[o]!==((p=n[o])!==null&&p!==void 0?p:t[o]))return!1}return!0},P=a=>n=>{var t=a.defaultClassName,o=I(I({},a.defaultVariants),n);for(var p in o){var m,E=(m=o[p])!==null&&m!==void 0?m:a.defaultVariants[p];if(E!=null){var c=E;typeof c=="boolean"&&(c=c===!0?"true":"false");var i=a.variantClassNames[p][c];i&&(t+=" "+i)}}for(var[T,D]of a.compoundVariants)se(T,o,a.defaultVariants)&&(t+=" "+D);return t},re=P({defaultClassName:"pkg_sps-woodland_core__version_8_53_12__hash_17kn1zk0",variantClassNames:{active:{true:"pkg_sps-woodland_core__version_8_53_12__hash_17kn1zk1",false:"pkg_sps-woodland_core__version_8_53_12__hash_17kn1zk2"},mini:{true:"pkg_sps-woodland_core__version_8_53_12__hash_17kn1zk3",false:"pkg_sps-woodland_core__version_8_53_12__hash_17kn1zk4"},error:{true:"pkg_sps-woodland_core__version_8_53_12__hash_17kn1zk5",false:"pkg_sps-woodland_core__version_8_53_12__hash_17kn1zk6"},shown:{true:"pkg_sps-woodland_core__version_8_53_12__hash_17kn1zk7",false:"pkg_sps-woodland_core__version_8_53_12__hash_17kn1zk8"},disabled:{true:"pkg_sps-woodland_core__version_8_53_12__hash_17kn1zk9",false:"pkg_sps-woodland_core__version_8_53_12__hash_17kn1zka"}},defaultVariants:{active:!1,mini:!1,error:!1,shown:!0,disabled:!1},compoundVariants:[]}),ie=P({defaultClassName:"pkg_sps-woodland_core__version_8_53_12__hash_17kn1zkb",variantClassNames:{constrainContentWidth:{true:"pkg_sps-woodland_core__version_8_53_12__hash_17kn1zkc",false:"pkg_sps-woodland_core__version_8_53_12__hash_17kn1zkd"},disabled:{true:"pkg_sps-woodland_core__version_8_53_12__hash_17kn1zke",false:"pkg_sps-woodland_core__version_8_53_12__hash_17kn1zkf"}},defaultVariants:{constrainContentWidth:!1,disabled:!1},compoundVariants:[]}),X="pkg_sps-woodland_core__version_8_53_12__hash_17kn1zkg",le=P({defaultClassName:"pkg_sps-woodland_core__version_8_53_12__hash_17kn1zkh",variantClassNames:{mini:{true:"pkg_sps-woodland_core__version_8_53_12__hash_17kn1zki",false:"pkg_sps-woodland_core__version_8_53_12__hash_17kn1zkj"},error:{true:"pkg_sps-woodland_core__version_8_53_12__hash_17kn1zkk",false:"pkg_sps-woodland_core__version_8_53_12__hash_17kn1zkl"},disabled:{true:"pkg_sps-woodland_core__version_8_53_12__hash_17kn1zkm",false:"pkg_sps-woodland_core__version_8_53_12__hash_17kn1zkn"}},defaultVariants:{mini:!1,error:!1,disabled:!1},compoundVariants:[]}),pe=P({defaultClassName:"pkg_sps-woodland_core__version_8_53_12__hash_17kn1zko",variantClassNames:{mini:{true:"pkg_sps-woodland_core__version_8_53_12__hash_17kn1zkp",false:"pkg_sps-woodland_core__version_8_53_12__hash_17kn1zkq"}},defaultVariants:{mini:!1},compoundVariants:[]}),ce="pkg_sps-woodland_core__version_8_53_12__hash_17kn1zkr",_e="pkg_sps-woodland_core__version_8_53_12__hash_17kn1zks",R="pkg_sps-woodland_core__version_8_53_12__hash_17kn1zkt",B="pkg_sps-woodland_core__version_8_53_12__hash_17kn1zku",de="pkg_sps-woodland_core__version_8_53_12__hash_17kn1zkv",fe="pkg_sps-woodland_core__version_8_53_12__hash_17kn1zkw",ue="pkg_sps-woodland_core__version_8_53_12__hash_17kn1zkx",me="pkg_sps-woodland_core__version_8_53_12__hash_17kn1zky",ve="pkg_sps-woodland_core__version_8_53_12__hash_17kn1zkz";function W({list:a}){return e.createElement(e.Fragment,null,a.map((n,t)=>{const o=Math.floor(n.length/2);return e.createElement("div",{className:_e,key:n},e.createElement("span",{className:R},n.substring(0,o)),e.createElement("div",{className:R},e.createElement("span",null,n.substring(o))),t<a.length-1?",":"")}))}function G({constrainContentWidth:a,description:n,multiple:t=!1,dismissable:o,processing:p,mini:m,downloadLabel:E,acceptExtensions:c,maxSize:i,customRequirement:T,onSelection:D,onDismiss:q,download:Z,shown:b,className:he,disabled:_,children:Ae,...ge}){const F=e.useRef(new Set),M=e.useRef(new Set),[ke,$]=e.useState(b),[Ne,we]=e.useState([]),[Ee,ye]=e.useState(""),[H,Oe]=e.useState(),[xe,S]=e.useState(!1),[y,C]=e.useState(!1),[v,J]=e.useState([]),[h,K]=e.useState([]),[O,ze]=e.useState(""),Q=e.useMemo(()=>new Set([...v,...h]).size,[v,h]),{t:d}=te.useWoodlandLanguage(),U=(t?d("fileUpload.instructions.other",{defaultValue:"Drag and drop your files here or |browse for files| on your desktop."}):d("fileUpload.instructions.one",{defaultValue:"Drag and drop your file here or |browse for a file| on your desktop."})).split("|"),Y=n||(t?"Files":"File"),f=e.useRef(null);e.useEffect(()=>{b&&$(b)},[b]),e.useEffect(()=>{i&&Te(i)},[i]),e.useEffect(()=>{c&&be(c)},[c]);function Pe(){o&&($(!1),q&&q())}function Te(s){try{Oe(ae.parseFileSize(s))}catch{throw new Error(`Could not parse "${s}" as a file size.`)}}function be(s){const g=(Array.isArray(s)?s:s.trim().split(/\s?,\s?/)).map(r=>r.replace(/^\./,"")),u=g.map(r=>`.${r}`.toLowerCase());ze(u.map((r,k)=>k>0&&k===u.length-1?`or ${r}`:r).join(u.length>2?", ":" ")),F.current.clear(),M.current.clear();for(const r of g){M.current.add(r.toLowerCase());const k=Object.keys(V).includes(r.toUpperCase())?V[r.toUpperCase()]:[];for(const L of k)F.current.add(L)}ye(u.concat(Array.from(F.current)).join(","))}function ee(s){J([]),K([]);const x=[],g=[],u=s?Array.from(s):[];for(const r of u){const k=r.name.split(".").pop()?.toLowerCase()??"",L=r.type?F.current.has(r.type):M.current.has(k);c&&!L&&g.push(r.name),i&&H&&r.size>H&&x.push(r.name)}x.length||g.length?(C(!0),f.current&&f.current.value&&(f.current.value="")):(we(u),D(u)),J(x),K(g)}function Fe(s){s.preventDefault(),C(!1),f.current&&f.current.click()}function Se(){Z&&Z()}function Ce(s){s.stopPropagation(),ee(s.target.files),f.current&&f.current.value&&(f.current.value="")}function Ue(s){s.preventDefault(),s.stopPropagation(),S(!0),C(!1)}function De(s){s.preventDefault(),S(!0),C(!1)}function Me(s){s.preventDefault(),S(!1)}function Le(s){s.preventDefault(),s.stopPropagation(),S(!1),s.dataTransfer.files&&ee(s.dataTransfer.files)}return e.createElement("div",{onDrop:_?()=>{}:Le,onDragOver:_?()=>{}:Ue,onDragLeave:_?()=>{}:Me,onDragEnter:_?()=>{}:De,className:z.cl(re({active:xe,mini:m,error:y,shown:ke,disabled:_}),he),...ge},e.createElement("div",{className:z.cl(ie({constrainContentWidth:a,disabled:_}))},p?e.createElement("div",null,e.createElement(z.Spinner,{size:"md","aria-hidden":"true"}),e.createElement("div",{className:X},d("fileUpload.processing",{defaultValue:"Processing Upload..."}))):e.createElement("div",null,e.createElement("div",{className:le({mini:m,error:y,disabled:_}),"aria-hidden":"true"},e.createElement("img",{className:ve,src:y?N.GENERAL_ERROR_LARGE:N.UPLOAD_LARGE,alt:"Upload Icon"})),e.createElement("div",{className:pe({mini:m})},y?e.createElement("div",null,d(Q>1?"fileUpload.cancelled.other":"fileUpload.cancelled.one",{defaultValue:Q>1?"File Upload(s) Failed":"File Upload Failed"})):e.createElement("div",null,d("fileUpload.title",{description:Y,defaultValue:`Upload your ${Y}`}))),y?e.createElement("div",{className:ce},v.length>0&&e.createElement(e.Fragment,null,e.createElement(W,{list:v}),e.createElement("div",{className:B},d(v.length===1?"fileUpload.error.tooLarge.one":"fileUpload.error.tooLarge.other",{size:i,defaultValue:v.length===1?`Selected file is larger than the size limit of ${i}.`:`Selected files are larger than the size limit of ${i}.`}))),h.length>0&&e.createElement(e.Fragment,null,e.createElement(W,{list:h}),e.createElement("div",{className:B},d(h.length===1?"fileUpload.error.wrongType.one":"fileUpload.error.wrongType.other",{fileTypes:O,defaultValue:h.length===1?`Selected file is not an accepted file type: ${O}.`:`Selected files are not accepted file types: ${O}.`})))):e.createElement("span",null),e.createElement("div",{className:X},e.createElement("div",null,e.createElement("span",null,U[0]),_?e.createElement("u",null,U[1]):e.createElement("a",{href:"",onClick:Fe},U[1]),e.createElement("span",null,U[2]))),e.createElement("div",{className:de},c?e.createElement("span",null,"("," ",d("fileUpload.acceptedTypes",{fileTypes:O,defaultValue:`${O} format accepted`})," ",")"):"",i?e.createElement("span",null,"("," ",d("fileUpload.maximumSize",{size:i,defaultValue:`${i} maximum`})," ",")"):"",T?e.createElement("span",null," ",T," "):""),E&&e.createElement("div",{className:fe},e.createElement(A.Button,{disabled:_,kind:"link",icon:"download-cloud",onClick:Se},E)))),o&&!p&&e.createElement("div",{className:ue},e.createElement(A.Button,{disabled:_,kind:"icon",icon:"x",title:d("fileUpload.close",{defaultValue:"Close"}),onClick:Pe})),e.createElement("form",{className:me},e.createElement("input",{ref:f,type:"file",accept:Ee||"*/*",multiple:t||void 0,onChange:Ce})))}z.Metadata.set(G,{name:"FileUpload",props:{constrainContentWidth:{type:"boolean"},description:{type:"string"},multiple:{type:"boolean"},dismissable:{type:"boolean"},mini:{type:"boolean"},downloadLabel:{type:"string"},acceptExtensions:{type:"string[] | string"},maxSize:{type:"string"},customRequirement:{type:"string"},onSelection:{type:"(files: File[]) => void",required:!0},dismissal:{type:"() => void"},download:{type:"() => void"},disabled:{type:"boolean"}}}),l.FileUpload=G,Object.defineProperty(l,Symbol.toStringTag,{value:"Module"})}));
|
|
1
|
+
(function(r,y){typeof exports=="object"&&typeof module<"u"?y(exports,require("react"),require("@sps-woodland/core"),require("@spscommerce/utils"),require("@sps-woodland/core/button"),require("@sps-woodland/illustrations"),require("@spscommerce/i18n")):typeof define=="function"&&define.amd?define(["exports","react","@sps-woodland/core","@spscommerce/utils","@sps-woodland/core/button","@sps-woodland/illustrations","@spscommerce/i18n"],y):(r=typeof globalThis<"u"?globalThis:r||self,y(r.FileUpload={},r.react,r.spsWoodlandCore,r.spscommerceUtils,r.spsWoodlandCoreButton,r.spsWoodlandIllustrations,r.spscommerceI18n))})(this,(function(r,y,z,ae,A,N,oe){"use strict";function te(a){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(a){for(const o in a)if(o!=="default"){const n=Object.getOwnPropertyDescriptor(a,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:()=>a[o]})}}return t.default=a,Object.freeze(t)}const e=te(y),V={"7Z":["application/x-7z-compressed"],AAC:["audio/aac"],ABW:["application/x-abiword"],ARC:["application/octet-stream"],AVI:["video/x-msvideo"],AZW:["application/vnd.amazon.ebook"],BIN:["application/octet-stream"],BMP:["image/bmp"],BZ:["application/x-bzip"],BZ2:["application/x-bzip2"],CER:["application/pkix-cert","application/x-x509-ca-cert"],CSH:["application/x-csh"],CSS:["text/css"],CSV:["text/csv","application/vnd.ms-excel"],DOC:["application/msword"],DOT:["application/msword"],DOCX:["application/vnd.openxmlformats-officedocument.wordprocessingml.document"],DOTX:["application/vnd.openxmlformats-officedocument.wordprocessingml.template"],DOCM:["application/vnd.ms-word.document.macroEnabled.12"],DOTM:["application/vnd.ms-word.template.macroEnabled.12"],EDI:["application/edi-x12","application/edifact"],EML:["application/octet-stream","message/rfc822","multipart/mixed","message/rfc5322","message/rfc6532"],EOT:["application/vnd.ms-fontobject"],EPUB:["application/epub+zip"],ES:["application/ecmascript"],FLV:["video/x-flv"],GIF:["image/gif"],GZ:["application/x-gzip"],HTM:["text/html"],HTML:["text/html"],ICO:["image/x-icon"],ICS:["text/calendar"],JAR:["application/java-archive"],JPEG:["image/jpeg"],JPG:["image/jpeg"],JS:["application/javascript"],JSON:["application/json"],M3U:["audio/x-mpequrl"],MID:["audio/midi"],MIDI:["audio/midi"],MOV:["video/quicktime"],MP3:["audio/mpeg3"],MP4:["video/mp4"],MPEG:["video/mpeg"],MPKG:["application/vnd.apple.installer+xml"],ODP:["application/vnd.oasis.opendocument.presentation"],ODS:["application/vnd.oasis.opendocument.spreadsheet"],ODT:["application/vnd.oasis.opendocument.text"],OGA:["audio/ogg"],OGV:["video/ogg"],OGX:["application/ogg"],OTF:["font/otf"],PNG:["image/png"],PDF:["application/pdf"],POT:["application/vnd.ms-powerpoint"],POTM:["application/vnd.ms-powerpoint.template.macroEnabled.12"],POTX:["application/vnd.openxmlformats-officedocument.presentationml.template"],PPA:["application/vnd.ms-powerpoint"],PPAM:["application/vnd.ms-powerpoint.addin.macroEnabled.12"],PPS:["application/vnd.ms-powerpoint"],PPSM:["application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],PPT:["application/vnd.ms-powerpoint"],PPTM:["application/vnd.ms-powerpoint.presentation.macroEnabled.12"],PPSX:["application/vnd.openxmlformats-officedocument.presentationml.slideshow"],PPTX:["application/vnd.openxmlformats-officedocument.presentationml.presentation"],RAR:["application/x-rar-compressed"],RTF:["application/rtf"],SH:["application/x-sh"],SVG:["image/svg+xml"],SWF:["application/x-shockwave-flash"],TAR:["application/x-tar"],TIF:["image/tiff"],TIFF:["image/tiff"],TS:["application/typescript"],TTF:["font/ttf"],TXT:["text/plain"],VSD:["application/vnd.visio"],WAV:["audio/wav"],WEBA:["audio/webm"],WEBM:["video/webm"],WEBP:["image/webp"],WOFF:["font/woff"],WOFF2:["font/woff2"],XHTML:["application/xhtml+xml"],XLA:["application/vnd.ms-excel"],XLS:["application/vnd.ms-excel"],XLSB:["application/vnd.ms-excel.sheet.binary.macroEnabled.12"],XLT:["application/vnd.ms-excel"],XLAM:["application/vnd.ms-excel.addin.macroEnabled.12"],XLSM:["application/vnd.ms-excel.sheet.macroEnabled.12"],XLSX:["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],XLTM:["application/vnd.ms-excel.template.macroEnabled.12"],XLTX:["application/vnd.openxmlformats-officedocument.spreadsheetml.template"],XML:["application/xml"],XUL:["application/vnd.mozilla.xul+xml"],ZIP:["application/zip"]};function ne(a,t,o){return t in a?Object.defineProperty(a,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):a[t]=o,a}function j(a,t){var o=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);t&&(n=n.filter(function(p){return Object.getOwnPropertyDescriptor(a,p).enumerable})),o.push.apply(o,n)}return o}function I(a){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?j(Object(o),!0).forEach(function(n){ne(a,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(o)):j(Object(o)).forEach(function(n){Object.defineProperty(a,n,Object.getOwnPropertyDescriptor(o,n))})}return a}var le=(a,t,o)=>{for(var n of Object.keys(a)){var p;if(a[n]!==((p=t[n])!==null&&p!==void 0?p:o[n]))return!1}return!0},P=a=>t=>{var o=a.defaultClassName,n=I(I({},a.defaultVariants),t);for(var p in n){var m,w=(m=n[p])!==null&&m!==void 0?m:a.defaultVariants[p];if(w!=null){var _=w;typeof _=="boolean"&&(_=_===!0?"true":"false");var s=a.variantClassNames[p][_];s&&(o+=" "+s)}}for(var[T,D]of a.compoundVariants)le(T,n,a.defaultVariants)&&(o+=" "+D);return o},ie=P({defaultClassName:"pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zk0",variantClassNames:{active:{true:"pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zk1",false:"pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zk2"},mini:{true:"pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zk3",false:"pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zk4"},error:{true:"pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zk5",false:"pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zk6"},shown:{true:"pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zk7",false:"pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zk8"},disabled:{true:"pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zk9",false:"pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zka"}},defaultVariants:{active:!1,mini:!1,error:!1,shown:!0,disabled:!1},compoundVariants:[]}),se=P({defaultClassName:"pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zkb",variantClassNames:{constrainContentWidth:{true:"pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zkc",false:"pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zkd"},disabled:{true:"pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zke",false:"pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zkf"}},defaultVariants:{constrainContentWidth:!1,disabled:!1},compoundVariants:[]}),X="pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zkg",re=P({defaultClassName:"pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zkh",variantClassNames:{mini:{true:"pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zki",false:"pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zkj"},error:{true:"pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zkk",false:"pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zkl"},disabled:{true:"pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zkm",false:"pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zkn"}},defaultVariants:{mini:!1,error:!1,disabled:!1},compoundVariants:[]}),pe=P({defaultClassName:"pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zko",variantClassNames:{mini:{true:"pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zkp",false:"pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zkq"}},defaultVariants:{mini:!1},compoundVariants:[]}),_e="pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zkr",ce="pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zks",R="pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zkt",B="pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zku",de="pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zkv",fe="pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zkw",ue="pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zkx",me="pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zky",ve="pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zkz";function W({list:a}){return e.createElement(e.Fragment,null,a.map((t,o)=>{const n=Math.floor(t.length/2);return e.createElement("div",{className:ce,key:t},e.createElement("span",{className:R},t.substring(0,n)),e.createElement("div",{className:R},e.createElement("span",null,t.substring(n))),o<a.length-1?",":"")}))}function G({constrainContentWidth:a,description:t,multiple:o=!1,dismissable:n,processing:p,mini:m,downloadLabel:w,acceptExtensions:_,maxSize:s,customRequirement:T,onSelection:D,onDismiss:q,download:Z,shown:b,className:he,disabled:c,children:Ae,...ge}){const F=e.useRef(new Set),M=e.useRef(new Set),[ke,$]=e.useState(b),[Ne,ye]=e.useState([]),[we,Ee]=e.useState(""),[H,Oe]=e.useState(),[xe,S]=e.useState(!1),[E,C]=e.useState(!1),[v,J]=e.useState([]),[h,K]=e.useState([]),[O,ze]=e.useState(""),Q=e.useMemo(()=>new Set([...v,...h]).size,[v,h]),{t:d}=oe.useWoodlandLanguage(),U=(o?d("fileUpload.instructions.other",{defaultValue:"Drag and drop your files here or |browse for files| on your desktop."}):d("fileUpload.instructions.one",{defaultValue:"Drag and drop your file here or |browse for a file| on your desktop."})).split("|"),Y=t||(o?"Files":"File"),f=e.useRef(null);e.useEffect(()=>{b&&$(b)},[b]),e.useEffect(()=>{s&&Te(s)},[s]),e.useEffect(()=>{_&&be(_)},[_]);function Pe(){n&&($(!1),q&&q())}function Te(l){try{Oe(ae.parseFileSize(l))}catch{throw new Error(`Could not parse "${l}" as a file size.`)}}function be(l){const g=(Array.isArray(l)?l:l.trim().split(/\s?,\s?/)).map(i=>i.replace(/^\./,"")),u=g.map(i=>`.${i}`.toLowerCase());ze(u.map((i,k)=>k>0&&k===u.length-1?`or ${i}`:i).join(u.length>2?", ":" ")),F.current.clear(),M.current.clear();for(const i of g){M.current.add(i.toLowerCase());const k=Object.keys(V).includes(i.toUpperCase())?V[i.toUpperCase()]:[];for(const L of k)F.current.add(L)}Ee(u.concat(Array.from(F.current)).join(","))}function ee(l){J([]),K([]);const x=[],g=[],u=l?Array.from(l):[];for(const i of u){const k=i.name.split(".").pop()?.toLowerCase()??"",L=i.type?F.current.has(i.type):M.current.has(k);_&&!L&&g.push(i.name),s&&H&&i.size>H&&x.push(i.name)}x.length||g.length?(C(!0),f.current&&f.current.value&&(f.current.value="")):(ye(u),D(u)),J(x),K(g)}function Fe(l){l.preventDefault(),C(!1),f.current&&f.current.click()}function Se(){Z&&Z()}function Ce(l){l.stopPropagation(),ee(l.target.files),f.current&&f.current.value&&(f.current.value="")}function Ue(l){l.preventDefault(),l.stopPropagation(),S(!0),C(!1)}function De(l){l.preventDefault(),S(!0),C(!1)}function Me(l){l.preventDefault(),S(!1)}function Le(l){l.preventDefault(),l.stopPropagation(),S(!1),l.dataTransfer.files&&ee(l.dataTransfer.files)}return e.createElement("div",{onDrop:c?()=>{}:Le,onDragOver:c?()=>{}:Ue,onDragLeave:c?()=>{}:Me,onDragEnter:c?()=>{}:De,className:z.cl(ie({active:xe,mini:m,error:E,shown:ke,disabled:c}),he),...ge},e.createElement("div",{className:z.cl(se({constrainContentWidth:a,disabled:c}))},p?e.createElement("div",null,e.createElement(z.Spinner,{size:"md","aria-hidden":"true"}),e.createElement("div",{className:X},d("fileUpload.processing",{defaultValue:"Processing Upload..."}))):e.createElement("div",null,e.createElement("div",{className:re({mini:m,error:E,disabled:c}),"aria-hidden":"true"},e.createElement("img",{className:ve,src:E?N.GENERAL_ERROR_LARGE:N.UPLOAD_LARGE,alt:"Upload Icon"})),e.createElement("div",{className:pe({mini:m})},E?e.createElement("div",null,d(Q>1?"fileUpload.cancelled.other":"fileUpload.cancelled.one",{defaultValue:Q>1?"File Upload(s) Failed":"File Upload Failed"})):e.createElement("div",null,d("fileUpload.title",{description:Y,defaultValue:`Upload your ${Y}`}))),E?e.createElement("div",{className:_e},v.length>0&&e.createElement(e.Fragment,null,e.createElement(W,{list:v}),e.createElement("div",{className:B},d(v.length===1?"fileUpload.error.tooLarge.one":"fileUpload.error.tooLarge.other",{size:s,defaultValue:v.length===1?`Selected file is larger than the size limit of ${s}.`:`Selected files are larger than the size limit of ${s}.`}))),h.length>0&&e.createElement(e.Fragment,null,e.createElement(W,{list:h}),e.createElement("div",{className:B},d(h.length===1?"fileUpload.error.wrongType.one":"fileUpload.error.wrongType.other",{fileTypes:O,defaultValue:h.length===1?`Selected file is not an accepted file type: ${O}.`:`Selected files are not accepted file types: ${O}.`})))):e.createElement("span",null),e.createElement("div",{className:X},e.createElement("div",null,e.createElement("span",null,U[0]),c?e.createElement("u",null,U[1]):e.createElement("a",{href:"",onClick:Fe},U[1]),e.createElement("span",null,U[2]))),e.createElement("div",{className:de},_?e.createElement("span",null,"("," ",d("fileUpload.acceptedTypes",{fileTypes:O,defaultValue:`${O} format accepted`})," ",")"):"",s?e.createElement("span",null,"("," ",d("fileUpload.maximumSize",{size:s,defaultValue:`${s} maximum`})," ",")"):"",T?e.createElement("span",null," ",T," "):""),w&&e.createElement("div",{className:fe},e.createElement(A.Button,{disabled:c,kind:"link",icon:"download-cloud",onClick:Se},w)))),n&&!p&&e.createElement("div",{className:ue},e.createElement(A.Button,{disabled:c,kind:"icon",icon:"x",title:d("fileUpload.close",{defaultValue:"Close"}),onClick:Pe})),e.createElement("form",{className:me},e.createElement("input",{ref:f,type:"file",accept:we||"*/*",multiple:o||void 0,onChange:Ce})))}z.Metadata.set(G,{name:"FileUpload",props:{constrainContentWidth:{type:"boolean"},description:{type:"string"},multiple:{type:"boolean"},dismissable:{type:"boolean"},mini:{type:"boolean"},downloadLabel:{type:"string"},acceptExtensions:{type:"string[] | string"},maxSize:{type:"string"},customRequirement:{type:"string"},onSelection:{type:"(files: File[]) => void",required:!0},dismissal:{type:"() => void"},download:{type:"() => void"},disabled:{type:"boolean"}}}),r.FileUpload=G,Object.defineProperty(r,Symbol.toStringTag,{value:"Module"})}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.pkg_sps-
|
|
1
|
+
.pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zk0{border-width:.0625rem;border-style:dashed;border-radius:.25rem;display:block;padding:1rem;position:relative}.pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zk1{background-color:#f4ecf2;border-color:#91467f;border-style:solid}.pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zk3{padding:1rem}.pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zk5{border-color:#de002e}.pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zk8{display:none}.pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zk9{border-color:#d2d4d4}.pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zkb{color:#4b5356;margin:0 auto;text-align:center}.pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zkc{width:50%}.pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zke{color:#717779}.pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zkg{font-size:.75rem;line-height:1.25rem}.pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zkh{color:#717779;display:block;margin-bottom:1rem}.pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zki{font-size:1.5rem;line-height:1.5rem}.pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zkj{font-size:3rem;line-height:3rem}.pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zkk{color:#de002e}.pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zkm{opacity:.5}.pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zko{font-weight:600;margin-bottom:.25rem}.pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zkp{font-size:1rem;line-height:1.25rem}.pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zkq{font-size:1.125rem;line-height:1.25rem}.pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zkr{font-size:.875rem;font-weight:600;line-height:1.25rem}.pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zks{display:flex;justify-content:center;white-space:nowrap}.pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zkt{max-width:50%;overflow:hidden}.pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zkt:first-child{text-overflow:ellipsis}.pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zkt:last-child{float:right}.pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zku{font-weight:400}.pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zkv{font-size:.75rem;line-height:1.125rem;margin-top:.25rem}.pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zkv>span+span{margin-left:.125rem}.pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zkw{margin-top:1rem}.pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zkx{position:absolute;right:.5rem;top:.5rem}.pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zky{display:none}.pkg_sps-woodland_core__family_file-upload__version_8_53_13__hash_17kn1zkz{height:3rem}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/* empty css */
|
|
2
2
|
import { createRuntimeFn as _ } from "../../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";
|
|
3
|
-
var
|
|
3
|
+
var s = "pkg_sps-woodland_core__family_filter-tiles__version_8_53_13__hash_1fdabiv0", a = _({ defaultClassName: "pkg_sps-woodland_core__family_filter-tiles__version_8_53_13__hash_1fdabiv1", variantClassNames: { kind: { general: "pkg_sps-woodland_core__family_filter-tiles__version_8_53_13__hash_1fdabiv2", error: "pkg_sps-woodland_core__family_filter-tiles__version_8_53_13__hash_1fdabiv3", success: "pkg_sps-woodland_core__family_filter-tiles__version_8_53_13__hash_1fdabiv4", warning: "pkg_sps-woodland_core__family_filter-tiles__version_8_53_13__hash_1fdabiv5", processing: "pkg_sps-woodland_core__family_filter-tiles__version_8_53_13__hash_1fdabiv6" }, active: { true: "pkg_sps-woodland_core__family_filter-tiles__version_8_53_13__hash_1fdabiv7" } }, defaultVariants: {}, compoundVariants: [[{ kind: "general", active: !0 }, "pkg_sps-woodland_core__family_filter-tiles__version_8_53_13__hash_1fdabiv8"], [{ kind: "warning", active: !0 }, "pkg_sps-woodland_core__family_filter-tiles__version_8_53_13__hash_1fdabiv9"], [{ kind: "error", active: !0 }, "pkg_sps-woodland_core__family_filter-tiles__version_8_53_13__hash_1fdabiva"], [{ kind: "processing", active: !0 }, "pkg_sps-woodland_core__family_filter-tiles__version_8_53_13__hash_1fdabivb"], [{ kind: "success", active: !0 }, "pkg_sps-woodland_core__family_filter-tiles__version_8_53_13__hash_1fdabivc"]] }), r = "pkg_sps-woodland_core__family_filter-tiles__version_8_53_13__hash_1fdabivd", l = "pkg_sps-woodland_core__family_filter-tiles__version_8_53_13__hash_1fdabive", o = _({ defaultClassName: "pkg_sps-woodland_core__family_filter-tiles__version_8_53_13__hash_1fdabivf", variantClassNames: { kind: { general: "pkg_sps-woodland_core__family_filter-tiles__version_8_53_13__hash_1fdabivg", error: "pkg_sps-woodland_core__family_filter-tiles__version_8_53_13__hash_1fdabivh", success: "pkg_sps-woodland_core__family_filter-tiles__version_8_53_13__hash_1fdabivi", warning: "pkg_sps-woodland_core__family_filter-tiles__version_8_53_13__hash_1fdabivj", processing: "pkg_sps-woodland_core__family_filter-tiles__version_8_53_13__hash_1fdabivk" } }, defaultVariants: { kind: "general" }, compoundVariants: [] });
|
|
4
4
|
export {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
s as tile,
|
|
6
|
+
a as tileBody,
|
|
7
|
+
o as tileFooter,
|
|
8
|
+
l as tileTitle,
|
|
9
9
|
r as tileValue
|
|
10
10
|
};
|