@sps-woodland/core 8.56.2 → 8.56.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (262) hide show
  1. package/lib/action-bar/action-bar/ActionBar.js +44 -59
  2. package/lib/action-bar/action-bar/ActionBar.ve.js +4 -11
  3. package/lib/action-bar/action-bar-additional-content/ActionBarAdditionalContent.js +14 -22
  4. package/lib/action-bar/index.js +54 -74
  5. package/lib/action-bar/index.umd.cjs +1 -1
  6. package/lib/action-bar/style.css +2 -1
  7. package/lib/add-to-list/add-to-list/AddToList.js +220 -302
  8. package/lib/add-to-list/add-to-list/AddToList.ve.js +79 -24
  9. package/lib/add-to-list/add-to-list/ItemsList.js +42 -67
  10. package/lib/add-to-list/add-to-list/ListItem.js +24 -50
  11. package/lib/add-to-list/index.js +393 -453
  12. package/lib/add-to-list/index.umd.cjs +1 -1
  13. package/lib/add-to-list/style.css +2 -1
  14. package/lib/buttons/button/Button.js +95 -121
  15. package/lib/buttons/button/Button.ve.js +150 -9
  16. package/lib/buttons/index.js +281 -171
  17. package/lib/buttons/index.umd.cjs +1 -1
  18. package/lib/buttons/style.css +2 -1
  19. package/lib/cards/card/Card.js +19 -27
  20. package/lib/cards/card/Card.ve.js +4 -4
  21. package/lib/cards/card-footer/CardFooter.js +12 -13
  22. package/lib/cards/card-footer/CardFooter.ve.js +4 -4
  23. package/lib/cards/card-header/CardHeader.js +12 -13
  24. package/lib/cards/card-header/CardHeader.ve.js +4 -4
  25. package/lib/cards/card-title/CardTitle.js +11 -12
  26. package/lib/cards/card-title/CardTitle.ve.js +4 -4
  27. package/lib/cards/index.js +52 -52
  28. package/lib/cards/index.umd.cjs +1 -1
  29. package/lib/cards/style.css +2 -1
  30. package/lib/column-manager/column-manager/ColumnManager.js +95 -112
  31. package/lib/column-manager/column-manager/useColumnManager.js +59 -48
  32. package/lib/column-manager/index.js +2 -5
  33. package/lib/components/icon/Icon.ve.js +15 -5
  34. package/lib/components/icon/icons/sprite.svg.js +4 -4
  35. package/lib/content-row/content-row/ContentRow.js +146 -173
  36. package/lib/content-row/content-row/ContentRow.ve.js +105 -18
  37. package/lib/content-row/content-row-col/ContentRowCol.js +37 -48
  38. package/lib/content-row/content-row-col/ContentRowCol.ve.js +49 -6
  39. package/lib/content-row/content-row-expansion/ContentRowExpansion.js +16 -24
  40. package/lib/content-row/index.js +407 -318
  41. package/lib/content-row/index.umd.cjs +1 -1
  42. package/lib/content-row/row-list-auto-layout/RowListAutoLayout.js +24 -39
  43. package/lib/content-row/row-list-auto-layout/RowListAutoLayout.ve.js +13 -5
  44. package/lib/content-row/style.css +2 -1
  45. package/lib/content-tiles/content-tile/ContentTile.js +71 -60
  46. package/lib/content-tiles/content-tile/ContentTile.ve.js +36 -14
  47. package/lib/content-tiles/content-tile-list/ContentTileList.js +12 -13
  48. package/lib/content-tiles/content-tile-list/ContentTileList.ve.js +4 -5
  49. package/lib/content-tiles/index.js +156 -118
  50. package/lib/content-tiles/index.umd.cjs +1 -1
  51. package/lib/content-tiles/style.css +2 -1
  52. package/lib/core.css +2 -1
  53. package/lib/dropdowns/dropdown/Dropdown.js +56 -68
  54. package/lib/dropdowns/dropdown/Dropdown.ve.js +37 -8
  55. package/lib/dropdowns/index.js +171 -171
  56. package/lib/dropdowns/index.umd.cjs +1 -1
  57. package/lib/dropdowns/option-list/Option.js +14 -18
  58. package/lib/dropdowns/option-list/Option.ve.js +4 -5
  59. package/lib/dropdowns/option-list/OptionList.js +28 -44
  60. package/lib/dropdowns/option-list/OptionList.ve.js +4 -5
  61. package/lib/dropdowns/style.css +2 -1
  62. package/lib/editable-table/EditableTable.js +68 -85
  63. package/lib/editable-table/index.js +1 -4
  64. package/lib/feedback-block/FeedbackBlock.js +40 -35
  65. package/lib/feedback-block/FeedbackBlock.ve.js +56 -7
  66. package/lib/feedback-block/index.js +132 -85
  67. package/lib/feedback-block/index.umd.cjs +1 -1
  68. package/lib/feedback-block/style.css +2 -1
  69. package/lib/file-upload/file-upload/FileUpload.js +164 -202
  70. package/lib/file-upload/file-upload/FileUpload.ve.js +84 -18
  71. package/lib/file-upload/file-upload/mime-type.enum.js +106 -106
  72. package/lib/file-upload/index.js +390 -353
  73. package/lib/file-upload/index.umd.cjs +1 -1
  74. package/lib/file-upload/style.css +2 -1
  75. package/lib/filter-tiles/filter-tile/FilterTile.js +41 -46
  76. package/lib/filter-tiles/filter-tile/FilterTile.ve.js +51 -9
  77. package/lib/filter-tiles/filter-tile-set/FilterTileSet.js +12 -15
  78. package/lib/filter-tiles/filter-tile-set/FilterTileSet.ve.js +4 -4
  79. package/lib/filter-tiles/index.js +142 -107
  80. package/lib/filter-tiles/index.umd.cjs +1 -1
  81. package/lib/filter-tiles/style.css +2 -1
  82. package/lib/focused-task/focused-task/FocusedTask.js +52 -74
  83. package/lib/focused-task/focused-task/FocusedTask.ve.js +13 -12
  84. package/lib/focused-task/focused-task/useFocusedTask.js +20 -18
  85. package/lib/focused-task/focused-task-actions/FocusedTaskActions.js +12 -13
  86. package/lib/focused-task/index.js +127 -144
  87. package/lib/focused-task/index.umd.cjs +1 -1
  88. package/lib/focused-task/style.css +2 -1
  89. package/lib/growler/Growler.js +78 -90
  90. package/lib/growler/Growler.ve.js +23 -12
  91. package/lib/growler/GrowlerListProvider.js +38 -39
  92. package/lib/growler/Sonner.ve.js +17 -12
  93. package/lib/growler/index.js +249 -274
  94. package/lib/growler/index.umd.cjs +1 -1
  95. package/lib/growler/sonner.js +73 -102
  96. package/lib/growler/style.css +2 -1
  97. package/lib/index.js +520 -501
  98. package/lib/index.umd.cjs +4 -4
  99. package/lib/insight-card/InsightCard.js +90 -84
  100. package/lib/insight-card/InsightCard.ve.js +148 -15
  101. package/lib/insight-card/InsightCardSet.js +12 -12
  102. package/lib/insight-card/index.js +269 -141
  103. package/lib/insight-card/index.umd.cjs +1 -1
  104. package/lib/insight-card/style.css +2 -1
  105. package/lib/key-value-set/index.js +97 -87
  106. package/lib/key-value-set/index.umd.cjs +1 -1
  107. package/lib/key-value-set/key-value-set/KeyValueSet.js +17 -21
  108. package/lib/key-value-set/key-value-set/KeyValueSet.ve.js +10 -5
  109. package/lib/key-value-set/key-value-set-item/KeyValueSetItem.js +25 -21
  110. package/lib/key-value-set/key-value-set-item/KeyValueSetItem.ve.js +13 -6
  111. package/lib/key-value-set/style.css +2 -1
  112. package/lib/list-bar/advanced-search/AdvancedSearch.js +51 -54
  113. package/lib/list-bar/advanced-search/AdvancedSearch.ve.js +30 -8
  114. package/lib/list-bar/index.js +305 -301
  115. package/lib/list-bar/index.umd.cjs +1 -1
  116. package/lib/list-bar/list-bar/InputGroupWrapper.js +10 -19
  117. package/lib/list-bar/list-bar/ListBar.js +105 -121
  118. package/lib/list-bar/list-bar/ListBar.ve.js +13 -17
  119. package/lib/list-bar/list-bar/ListBarSearch.js +20 -21
  120. package/lib/list-bar/list-bar/ListBarSearchInfo.js +8 -12
  121. package/lib/list-bar/list-bar/ListBarSortBy.js +28 -38
  122. package/lib/list-bar/search-results-bar/SearchResultsBar.js +38 -28
  123. package/lib/list-bar/search-results-bar/SearchResultsBar.ve.js +4 -11
  124. package/lib/list-bar/style.css +2 -1
  125. package/lib/matrix/index.js +79 -87
  126. package/lib/matrix/index.umd.cjs +1 -1
  127. package/lib/matrix/matrix/Matrix.js +18 -26
  128. package/lib/matrix/matrix/Matrix.ve.js +4 -7
  129. package/lib/matrix/matrix-body/MatrixBody.js +10 -13
  130. package/lib/matrix/matrix-cell/MatrixCell.js +23 -18
  131. package/lib/matrix/matrix-head/MatrixHead.js +10 -13
  132. package/lib/matrix/matrix-header/MatrixHeader.js +20 -23
  133. package/lib/matrix/matrix-row/MatrixRow.js +10 -13
  134. package/lib/matrix/style.css +2 -1
  135. package/lib/modal/index.js +197 -187
  136. package/lib/modal/index.umd.cjs +1 -1
  137. package/lib/modal/modal/Modal.js +90 -108
  138. package/lib/modal/modal/Modal.ve.js +43 -13
  139. package/lib/modal/modal/useModal.js +19 -24
  140. package/lib/modal/modal-footer/ModalFooter.js +11 -12
  141. package/lib/modal/style.css +2 -1
  142. package/lib/node_modules/.pnpm/@vanilla-extract_recipes@0.2.5_@vanilla-extract_css@1.21.2/node_modules/@vanilla-extract/recipes/createRuntimeFn/dist/vanilla-extract-recipes-createRuntimeFn.esm.js +49 -0
  143. package/lib/node_modules/.pnpm/nanoid@5.1.16/node_modules/nanoid/index.browser.js +8 -10
  144. package/lib/node_modules/.pnpm/nanoid@5.1.16/node_modules/nanoid/url-alphabet/index.js +4 -4
  145. package/lib/page-title/heading-level/HeadingLevel.js +8 -12
  146. package/lib/page-title/index.js +33 -40
  147. package/lib/page-title/index.umd.cjs +1 -1
  148. package/lib/page-title/page-subtitle/PageSubtitle.js +13 -18
  149. package/lib/page-title/page-subtitle/PageSubtitle.ve.js +4 -5
  150. package/lib/page-title/page-title/PageTitle.js +15 -19
  151. package/lib/page-title/page-title/PageTitle.ve.js +4 -7
  152. package/lib/page-title/style.css +2 -1
  153. package/lib/photo/index.js +174 -177
  154. package/lib/photo/index.umd.cjs +1 -1
  155. package/lib/photo/photo/Photo.js +72 -81
  156. package/lib/photo/photo/Photo.ve.js +21 -7
  157. package/lib/photo/photo-carousel/PhotoCarousel.js +36 -51
  158. package/lib/photo/photo-carousel/PhotoCarousel.ve.js +13 -9
  159. package/lib/photo/style.css +2 -1
  160. package/lib/product-bar/hooks/usePriorityPlus.js +88 -104
  161. package/lib/product-bar/index.js +372 -395
  162. package/lib/product-bar/index.umd.cjs +1 -1
  163. package/lib/product-bar/product-bar/ProductBar.js +77 -103
  164. package/lib/product-bar/product-bar/ProductBar.ve.js +46 -15
  165. package/lib/product-bar/product-bar-name/ProductBarName.js +37 -40
  166. package/lib/product-bar/product-bar-overflow-menu/ProductBarOverflowMenu.js +48 -70
  167. package/lib/product-bar/product-bar-overflow-menu/ProductBarOverflowMenu.ve.js +4 -8
  168. package/lib/product-bar/product-bar-tab/ProductBarTab.js +28 -26
  169. package/lib/product-bar/slack-link/SlackLink.js +26 -30
  170. package/lib/product-bar/slack-link/SlackLink.ve.js +4 -5
  171. package/lib/product-bar/style.css +2 -1
  172. package/lib/product-bar-vertical/index.js +240 -251
  173. package/lib/product-bar-vertical/index.umd.cjs +1 -1
  174. package/lib/product-bar-vertical/product-bar-vertical/ProductBarVertical.js +42 -61
  175. package/lib/product-bar-vertical/product-bar-vertical/ProductBarVertical.ve.js +53 -23
  176. package/lib/product-bar-vertical/product-bar-vertical-header/ProductBarVerticalHeader.js +30 -42
  177. package/lib/product-bar-vertical/product-bar-vertical-item/ProductBarVerticalItem.js +71 -89
  178. package/lib/product-bar-vertical/product-bar-vertical-section/ProductBarVerticalSection.js +22 -29
  179. package/lib/product-bar-vertical/style.css +2 -1
  180. package/lib/progress-indicators/index.js +372 -255
  181. package/lib/progress-indicators/index.umd.cjs +1 -1
  182. package/lib/progress-indicators/progress-bar/ProgressBar.js +66 -110
  183. package/lib/progress-indicators/progress-bar/ProgressBar.ve.js +66 -13
  184. package/lib/progress-indicators/progress-bar/progress-bar-step/ProgressBarStep.js +34 -54
  185. package/lib/progress-indicators/progress-bar/progress-bar-step/ProgressBarStep.ve.js +136 -8
  186. package/lib/progress-indicators/progress-ring/ProgressRing.js +45 -52
  187. package/lib/progress-indicators/style.css +2 -1
  188. package/lib/rich-text-editor/index.js +556 -582
  189. package/lib/rich-text-editor/index.umd.cjs +11 -11
  190. package/lib/rich-text-editor/rich-text-editor/RTELinkModal.js +29 -33
  191. package/lib/rich-text-editor/rich-text-editor/RTEToolbarButton.js +23 -37
  192. package/lib/rich-text-editor/rich-text-editor/RTEToolbarButton.ve.js +13 -6
  193. package/lib/rich-text-editor/rich-text-editor/RichTextEditor.js +68 -77
  194. package/lib/rich-text-editor/rich-text-editor/RichTextEditor.ve.js +21 -8
  195. package/lib/rich-text-editor/rich-text-editor/hooks/useHtmlToMd.js +14 -20
  196. package/lib/rich-text-editor/rich-text-editor/hooks/useMdToHtml.js +14 -20
  197. package/lib/rich-text-editor/rich-text-editor/hooks/useRTEContent.js +33 -27
  198. package/lib/rich-text-editor/rich-text-editor/hooks/useRTEObserver.js +79 -88
  199. package/lib/rich-text-editor/rich-text-editor/hooks/useRTESelectionListener.js +28 -36
  200. package/lib/rich-text-editor/rich-text-editor/hooks/useRTEToolbarButtons.js +195 -211
  201. package/lib/rich-text-editor/rich-text-editor/icons/BOLD.svg.js +4 -4
  202. package/lib/rich-text-editor/rich-text-editor/icons/INDENT.svg.js +4 -4
  203. package/lib/rich-text-editor/rich-text-editor/icons/ITALICS.svg.js +4 -4
  204. package/lib/rich-text-editor/rich-text-editor/icons/LINK.svg.js +4 -4
  205. package/lib/rich-text-editor/rich-text-editor/icons/ORDERED_LIST.svg.js +4 -4
  206. package/lib/rich-text-editor/rich-text-editor/icons/OUTDENT.svg.js +4 -4
  207. package/lib/rich-text-editor/rich-text-editor/icons/REDO.svg.js +4 -4
  208. package/lib/rich-text-editor/rich-text-editor/icons/UNDO.svg.js +4 -4
  209. package/lib/rich-text-editor/rich-text-editor/icons/UNLINK.svg.js +4 -4
  210. package/lib/rich-text-editor/rich-text-editor/icons/UNORDERED_LIST.svg.js +4 -4
  211. package/lib/rich-text-editor/rich-text-editor/utils/flattenListItemParagraphs.js +12 -12
  212. package/lib/rich-text-editor/rich-text-editor/utils/removeUnrepresentableBreaks.js +20 -19
  213. package/lib/rich-text-editor/rich-text-editor/utils/utils.js +11 -15
  214. package/lib/rich-text-editor/style.css +2 -1
  215. package/lib/scrollable-container/ScrollableContainer.js +18 -27
  216. package/lib/scrollable-container/ScrollableContainer.ve.js +4 -4
  217. package/lib/scrollable-container/index.js +20 -27
  218. package/lib/scrollable-container/index.umd.cjs +1 -1
  219. package/lib/scrollable-container/style.css +2 -1
  220. package/lib/side-nav/index.js +190 -228
  221. package/lib/side-nav/index.umd.cjs +1 -1
  222. package/lib/side-nav/side-nav/SideNav.js +43 -60
  223. package/lib/side-nav/side-nav/SideNav.ve.js +22 -16
  224. package/lib/side-nav/side-nav/navContext.js +7 -7
  225. package/lib/side-nav/side-nav-header/SideNavHeader.js +14 -15
  226. package/lib/side-nav/side-nav-item/SideNavItem.js +68 -94
  227. package/lib/side-nav/side-nav-section/SideNavSection.js +16 -26
  228. package/lib/side-nav/style.css +2 -1
  229. package/lib/sorting-header/caret/caret.ve.js +13 -5
  230. package/lib/sorting-header/index.js +269 -251
  231. package/lib/sorting-header/index.umd.cjs +1 -1
  232. package/lib/sorting-header/sorting-header/SortingHeader.js +110 -124
  233. package/lib/sorting-header/sorting-header/SortingHeader.ve.js +30 -6
  234. package/lib/sorting-header/sorting-header-cell/SortingHeaderCell.js +69 -83
  235. package/lib/sorting-header/sorting-header-cell/SortingHeaderCell.ve.js +21 -7
  236. package/lib/sorting-header/style.css +2 -1
  237. package/lib/style.css +2 -1
  238. package/lib/tabs/index.js +255 -201
  239. package/lib/tabs/index.umd.cjs +1 -1
  240. package/lib/tabs/style.css +2 -1
  241. package/lib/tabs/tab/Tab.js +24 -27
  242. package/lib/tabs/tab/Tab.ve.js +76 -6
  243. package/lib/tabs/tab-panel/TabPanel.js +16 -25
  244. package/lib/tabs/tabs/Tabs.js +101 -112
  245. package/lib/tabs/tabs/Tabs.ve.js +13 -11
  246. package/lib/tags/clickable-tag/ClickableTag.js +86 -90
  247. package/lib/tags/clickable-tag/ClickableTag.ve.js +66 -9
  248. package/lib/tags/index.js +342 -199
  249. package/lib/tags/index.umd.cjs +1 -1
  250. package/lib/tags/split-tag/SplitTag.js +49 -30
  251. package/lib/tags/split-tag/SplitTag.ve.js +35 -9
  252. package/lib/tags/style.css +2 -1
  253. package/lib/tags/tag/Tag.js +42 -38
  254. package/lib/tags/tag/Tag.ve.js +41 -6
  255. package/lib/utils/cl.js +5 -5
  256. package/lib/zero-state/ZeroState.js +36 -29
  257. package/lib/zero-state/ZeroState.ve.js +29 -11
  258. package/lib/zero-state/index.js +103 -78
  259. package/lib/zero-state/index.umd.cjs +1 -1
  260. package/lib/zero-state/style.css +2 -1
  261. package/package.json +12 -12
  262. package/lib/node_modules/.pnpm/@vanilla-extract_recipes@0.2.5_@vanilla-extract_css@1.17.4/node_modules/@vanilla-extract/recipes/createRuntimeFn/dist/vanilla-extract-recipes-createRuntimeFn.esm.js +0 -57
@@ -1,205 +1,167 @@
1
- import * as e from "react";
2
- import { Metadata as de, cl as z, Spinner as me } from "@sps-woodland/core";
3
- import { MIMEType as W } from "./mime-type.enum.js";
4
- import { parseFileSize as Ee } from "@spscommerce/utils";
5
- import { Button as b } from "@sps-woodland/core/button";
6
- import { GENERAL_ERROR_LARGE as ge, UPLOAD_LARGE as ye } from "@sps-woodland/illustrations";
7
- import { useWoodlandLanguage as he } from "@spscommerce/i18n";
8
- import { fileUpload as Ue, fileUploadContent as ve, fileUploadInstructions as j, fileUploadIcon as Fe, fileUploadImage as Ne, fileUploadTitle as De, erroredFiles as Te, erroredFileMessage as G, fileUploadRequirements as Ce, fileUploadDownloadButton as Le, fileUploadCloseButton as Se, fileUploadForm as we, erroredFileName as ke, erroredFilenameSegment as _ } from "./FileUpload.ve.js";
9
- function q({ list: U }) {
10
- return /* @__PURE__ */ e.createElement(e.Fragment, null, U.map((i, d) => {
11
- const m = Math.floor(i.length / 2);
12
- return /* @__PURE__ */ e.createElement("div", { className: ke, key: i }, /* @__PURE__ */ e.createElement("span", { className: _ }, i.substring(0, m)), /* @__PURE__ */ e.createElement("div", { className: _ }, /* @__PURE__ */ e.createElement("span", null, i.substring(m))), d < U.length - 1 ? "," : "");
13
- }));
1
+ import { MIMEType as e } from "./mime-type.enum.js";
2
+ import { erroredFileName as t, erroredFilenameSegment as n, erroredFiles as r, fileUpload as i, fileUploadContent as a, fileUploadForm as ee, fileUploadIcon as te, fileUploadImage as ne, fileUploadInstructions as o, fileUploadRequirements as s, fileUploadTitle as c } from "./FileUpload.ve.js";
3
+ import { Metadata as l, Spinner as re, cl as u } from "@sps-woodland/core";
4
+ import * as d from "react";
5
+ import { useWoodlandLanguage as f } from "@spscommerce/i18n";
6
+ import { parseFileSize as p } from "@spscommerce/utils";
7
+ import { Button as m } from "@sps-woodland/core/button";
8
+ import { GENERAL_ERROR_LARGE as h, UPLOAD_LARGE as g } from "@sps-woodland/illustrations";
9
+ //#region src/file-upload/file-upload/FileUpload.tsx
10
+ function _({ list: e }) {
11
+ return /* @__PURE__ */ d.createElement(d.Fragment, null, e.map((r, i) => {
12
+ let a = Math.floor(r.length / 2);
13
+ return /* @__PURE__ */ d.createElement("div", {
14
+ className: t,
15
+ key: r
16
+ }, /* @__PURE__ */ d.createElement("span", { className: n }, r.substring(0, a)), /* @__PURE__ */ d.createElement("div", { className: n }, /* @__PURE__ */ d.createElement("span", null, r.substring(a))), i < e.length - 1 ? "," : "");
17
+ }));
14
18
  }
15
- function Ae({
16
- constrainContentWidth: U,
17
- description: i,
18
- multiple: d = !1,
19
- dismissable: m,
20
- processing: w,
21
- mini: C,
22
- downloadLabel: k,
23
- acceptExtensions: E,
24
- maxSize: n,
25
- customRequirement: A,
26
- onSelection: H,
27
- onDismiss: R,
28
- download: V,
29
- shown: v,
30
- className: J,
31
- disabled: a,
32
- children: Re,
33
- ...K
34
- }) {
35
- const F = e.useRef(/* @__PURE__ */ new Set()), L = e.useRef(/* @__PURE__ */ new Set()), [Q, M] = e.useState(v), [Ve, X] = e.useState([]), [Y, Z] = e.useState(""), [$, ee] = e.useState(), [te, N] = e.useState(!1), [g, D] = e.useState(!1), [c, O] = e.useState([]), [p, I] = e.useState([]), [y, le] = e.useState(""), B = e.useMemo(
36
- () => (
37
- // use Set to dedupe as the same file might be on both lists
38
- (/* @__PURE__ */ new Set([...c, ...p])).size
39
- ),
40
- [c, p]
41
- ), { t: r } = he(), T = (d ? r("fileUpload.instructions.other", {
42
- defaultValue: "Drag and drop your files here or |browse for files| on your desktop."
43
- }) : r("fileUpload.instructions.one", {
44
- defaultValue: "Drag and drop your file here or |browse for a file| on your desktop."
45
- })).split("|"), x = i || (d ? "Files" : "File"), o = e.useRef(null);
46
- e.useEffect(() => {
47
- v && M(v);
48
- }, [v]), e.useEffect(() => {
49
- n && ae(n);
50
- }, [n]), e.useEffect(() => {
51
- E && re(E);
52
- }, [E]);
53
- function ne() {
54
- m && (M(!1), R && R());
55
- }
56
- function ae(t) {
57
- try {
58
- ee(Ee(t));
59
- } catch {
60
- throw new Error(`Could not parse "${t}" as a file size.`);
61
- }
62
- }
63
- function re(t) {
64
- const f = (Array.isArray(t) ? t : t.trim().split(/\s?,\s?/)).map((l) => l.replace(/^\./, "")), s = f.map((l) => `.${l}`.toLowerCase());
65
- le(
66
- s.map((l, u) => u > 0 && u === s.length - 1 ? `or ${l}` : l).join(s.length > 2 ? ", " : " ")
67
- ), F.current.clear(), L.current.clear();
68
- for (const l of f) {
69
- L.current.add(l.toLowerCase());
70
- const u = Object.keys(W).includes(l.toUpperCase()) ? W[l.toUpperCase()] : [];
71
- for (const S of u)
72
- F.current.add(S);
73
- }
74
- Z(s.concat(Array.from(F.current)).join(","));
75
- }
76
- function P(t) {
77
- O([]), I([]);
78
- const h = [], f = [], s = t ? Array.from(t) : [];
79
- for (const l of s) {
80
- const u = l.name.split(".").pop()?.toLowerCase() ?? "", S = l.type ? F.current.has(l.type) : L.current.has(u);
81
- E && !S && f.push(l.name), n && $ && l.size > $ && h.push(l.name);
82
- }
83
- h.length || f.length ? (D(!0), o.current && o.current.value && (o.current.value = "")) : (X(s), H(s)), O(h), I(f);
84
- }
85
- function oe(t) {
86
- t.preventDefault(), D(!1), o.current && o.current.click();
87
- }
88
- function se() {
89
- V && V();
90
- }
91
- function ie(t) {
92
- t.stopPropagation(), P(t.target.files), o.current && o.current.value && (o.current.value = "");
93
- }
94
- function ce(t) {
95
- t.preventDefault(), t.stopPropagation(), N(!0), D(!1);
96
- }
97
- function pe(t) {
98
- t.preventDefault(), N(!0), D(!1);
99
- }
100
- function fe(t) {
101
- t.preventDefault(), N(!1);
102
- }
103
- function ue(t) {
104
- t.preventDefault(), t.stopPropagation(), N(!1), t.dataTransfer.files && P(t.dataTransfer.files);
105
- }
106
- return /* @__PURE__ */ e.createElement(
107
- "div",
108
- {
109
- onDrop: a ? () => {
110
- } : ue,
111
- onDragOver: a ? () => {
112
- } : ce,
113
- onDragLeave: a ? () => {
114
- } : fe,
115
- onDragEnter: a ? () => {
116
- } : pe,
117
- className: z(Ue({ active: te, mini: C, error: g, shown: Q, disabled: a }), J),
118
- ...K
119
- },
120
- /* @__PURE__ */ e.createElement("div", { className: z(ve({ constrainContentWidth: U, disabled: a })) }, w ? /* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement(me, { size: "md", "aria-hidden": "true" }), /* @__PURE__ */ e.createElement("div", { className: j }, r("fileUpload.processing", { defaultValue: "Processing Upload..." }))) : /* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement("div", { className: Fe({ mini: C, error: g, disabled: a }), "aria-hidden": "true" }, /* @__PURE__ */ e.createElement(
121
- "img",
122
- {
123
- className: Ne,
124
- src: g ? ge : ye,
125
- alt: "Upload Icon"
126
- }
127
- )), /* @__PURE__ */ e.createElement("div", { className: De({ mini: C }) }, g ? /* @__PURE__ */ e.createElement("div", null, r(
128
- B > 1 ? "fileUpload.cancelled.other" : "fileUpload.cancelled.one",
129
- {
130
- defaultValue: B > 1 ? "File Upload(s) Failed" : "File Upload Failed"
131
- }
132
- )) : /* @__PURE__ */ e.createElement("div", null, r("fileUpload.title", {
133
- description: x,
134
- defaultValue: `Upload your ${x}`
135
- }))), g ? /* @__PURE__ */ e.createElement("div", { className: Te }, c.length > 0 && /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(q, { list: c }), /* @__PURE__ */ e.createElement("div", { className: G }, r(
136
- c.length === 1 ? "fileUpload.error.tooLarge.one" : "fileUpload.error.tooLarge.other",
137
- {
138
- size: n,
139
- defaultValue: c.length === 1 ? `Selected file is larger than the size limit of ${n}.` : `Selected files are larger than the size limit of ${n}.`
140
- }
141
- ))), p.length > 0 && /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(q, { list: p }), /* @__PURE__ */ e.createElement("div", { className: G }, r(
142
- p.length === 1 ? "fileUpload.error.wrongType.one" : "fileUpload.error.wrongType.other",
143
- {
144
- fileTypes: y,
145
- defaultValue: p.length === 1 ? `Selected file is not an accepted file type: ${y}.` : `Selected files are not accepted file types: ${y}.`
146
- }
147
- )))) : /* @__PURE__ */ e.createElement("span", null), /* @__PURE__ */ e.createElement("div", { className: j }, /* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement("span", null, T[0]), a ? /* @__PURE__ */ e.createElement("u", null, T[1]) : /* @__PURE__ */ e.createElement("a", { href: "", onClick: oe }, T[1]), /* @__PURE__ */ e.createElement("span", null, T[2]))), /* @__PURE__ */ e.createElement("div", { className: Ce }, E ? /* @__PURE__ */ e.createElement("span", null, "(", " ", r("fileUpload.acceptedTypes", {
148
- fileTypes: y,
149
- defaultValue: `${y} format accepted`
150
- }), " ", ")") : "", n ? /* @__PURE__ */ e.createElement("span", null, "(", " ", r("fileUpload.maximumSize", {
151
- size: n,
152
- defaultValue: `${n} maximum`
153
- }), " ", ")") : "", A ? /* @__PURE__ */ e.createElement("span", null, " ", A, " ") : ""), k && /* @__PURE__ */ e.createElement("div", { className: Le }, /* @__PURE__ */ e.createElement(
154
- b,
155
- {
156
- disabled: a,
157
- kind: "link",
158
- icon: "download-cloud",
159
- onClick: se
160
- },
161
- k
162
- )))),
163
- m && !w && /* @__PURE__ */ e.createElement("div", { className: Se }, /* @__PURE__ */ e.createElement(
164
- b,
165
- {
166
- disabled: a,
167
- kind: "icon",
168
- icon: "x",
169
- title: r("fileUpload.close", { defaultValue: "Close" }),
170
- onClick: ne
171
- }
172
- )),
173
- /* @__PURE__ */ e.createElement("form", { className: we }, /* @__PURE__ */ e.createElement(
174
- "input",
175
- {
176
- ref: o,
177
- type: "file",
178
- accept: Y || "*/*",
179
- multiple: d || void 0,
180
- onChange: ie
181
- }
182
- ))
183
- );
19
+ function v({ constrainContentWidth: t, description: n, multiple: l = !1, dismissable: v, processing: y, mini: b, downloadLabel: x, acceptExtensions: S, maxSize: C, customRequirement: w, onSelection: T, onDismiss: E, download: D, shown: O, className: ie, disabled: k, children: ae, ...oe }) {
20
+ let A = d.useRef(/* @__PURE__ */ new Set()), j = d.useRef(/* @__PURE__ */ new Set()), [se, M] = d.useState(O), [ce, N] = d.useState([]), [P, F] = d.useState(""), [I, L] = d.useState(), [R, z] = d.useState(!1), [B, V] = d.useState(!1), [H, U] = d.useState([]), [W, G] = d.useState([]), [K, le] = d.useState(""), q = d.useMemo(() => (/* @__PURE__ */ new Set([...H, ...W])).size, [H, W]), { t: J } = f(), Y = (l ? J("fileUpload.instructions.other", { defaultValue: "Drag and drop your files here or |browse for files| on your desktop." }) : J("fileUpload.instructions.one", { defaultValue: "Drag and drop your file here or |browse for a file| on your desktop." })).split("|"), X = n || (l ? "Files" : "File"), Z = d.useRef(null);
21
+ d.useEffect(() => {
22
+ O && M(O);
23
+ }, [O]), d.useEffect(() => {
24
+ C && de(C);
25
+ }, [C]), d.useEffect(() => {
26
+ S && fe(S);
27
+ }, [S]);
28
+ function ue() {
29
+ v && (M(!1), E && E());
30
+ }
31
+ function de(e) {
32
+ try {
33
+ L(p(e));
34
+ } catch {
35
+ throw Error(`Could not parse "${e}" as a file size.`);
36
+ }
37
+ }
38
+ function fe(t) {
39
+ let n = (Array.isArray(t) ? t : t.trim().split(/\s?,\s?/)).map((e) => e.replace(/^\./, "")), r = n.map((e) => `.${e}`.toLowerCase());
40
+ le(r.map((e, t) => t > 0 && t === r.length - 1 ? `or ${e}` : e).join(r.length > 2 ? ", " : " ")), A.current.clear(), j.current.clear();
41
+ for (let t of n) {
42
+ j.current.add(t.toLowerCase());
43
+ let n = Object.keys(e).includes(t.toUpperCase()) ? e[t.toUpperCase()] : [];
44
+ for (let e of n) A.current.add(e);
45
+ }
46
+ F(r.concat(Array.from(A.current)).join(","));
47
+ }
48
+ function Q(e) {
49
+ U([]), G([]);
50
+ let t = [], n = [], r = e ? Array.from(e) : [];
51
+ for (let e of r) {
52
+ let r = e.name.split(".").pop()?.toLowerCase() ?? "", i = e.type ? A.current.has(e.type) : j.current.has(r);
53
+ S && !i && n.push(e.name), C && I && e.size > I && t.push(e.name);
54
+ }
55
+ t.length || n.length ? (V(!0), Z.current && Z.current.value && (Z.current.value = "")) : (N(r), T(r)), U(t), G(n);
56
+ }
57
+ function pe(e) {
58
+ e.preventDefault(), V(!1), Z.current && Z.current.click();
59
+ }
60
+ function $() {
61
+ D && D();
62
+ }
63
+ function me(e) {
64
+ e.stopPropagation(), Q(e.target.files), Z.current && Z.current.value && (Z.current.value = "");
65
+ }
66
+ function he(e) {
67
+ e.preventDefault(), e.stopPropagation(), z(!0), V(!1);
68
+ }
69
+ function ge(e) {
70
+ e.preventDefault(), z(!0), V(!1);
71
+ }
72
+ function _e(e) {
73
+ e.preventDefault(), z(!1);
74
+ }
75
+ function ve(e) {
76
+ e.preventDefault(), e.stopPropagation(), z(!1), e.dataTransfer.files && Q(e.dataTransfer.files);
77
+ }
78
+ return /* @__PURE__ */ d.createElement("div", {
79
+ onDrop: k ? () => {} : ve,
80
+ onDragOver: k ? () => {} : he,
81
+ onDragLeave: k ? () => {} : _e,
82
+ onDragEnter: k ? () => {} : ge,
83
+ className: u(i({
84
+ active: R,
85
+ mini: b,
86
+ error: B,
87
+ shown: se,
88
+ disabled: k
89
+ }), ie),
90
+ ...oe
91
+ }, /* @__PURE__ */ d.createElement("div", { className: u(a({
92
+ constrainContentWidth: t,
93
+ disabled: k
94
+ })) }, y ? /* @__PURE__ */ d.createElement("div", null, /* @__PURE__ */ d.createElement(re, {
95
+ size: "md",
96
+ "aria-hidden": "true"
97
+ }), /* @__PURE__ */ d.createElement("div", { className: o }, J("fileUpload.processing", { defaultValue: "Processing Upload..." }))) : /* @__PURE__ */ d.createElement("div", null, /* @__PURE__ */ d.createElement("div", {
98
+ className: te({
99
+ mini: b,
100
+ error: B,
101
+ disabled: k
102
+ }),
103
+ "aria-hidden": "true"
104
+ }, /* @__PURE__ */ d.createElement("img", {
105
+ className: ne,
106
+ src: B ? h : g,
107
+ alt: "Upload Icon"
108
+ })), /* @__PURE__ */ d.createElement("div", { className: c({ mini: b }) }, B ? /* @__PURE__ */ d.createElement("div", null, J(q > 1 ? "fileUpload.cancelled.other" : "fileUpload.cancelled.one", { defaultValue: q > 1 ? "File Upload(s) Failed" : "File Upload Failed" })) : /* @__PURE__ */ d.createElement("div", null, J("fileUpload.title", {
109
+ description: X,
110
+ defaultValue: `Upload your ${X}`
111
+ }))), B ? /* @__PURE__ */ d.createElement("div", { className: r }, H.length > 0 && /* @__PURE__ */ d.createElement(d.Fragment, null, /* @__PURE__ */ d.createElement(_, { list: H }), /* @__PURE__ */ d.createElement("div", { className: "pkg_sps-woodland_core__family_file-upload__version_8_56_3__hash_17kn1zku" }, J(H.length === 1 ? "fileUpload.error.tooLarge.one" : "fileUpload.error.tooLarge.other", {
112
+ size: C,
113
+ defaultValue: H.length === 1 ? `Selected file is larger than the size limit of ${C}.` : `Selected files are larger than the size limit of ${C}.`
114
+ }))), W.length > 0 && /* @__PURE__ */ d.createElement(d.Fragment, null, /* @__PURE__ */ d.createElement(_, { list: W }), /* @__PURE__ */ d.createElement("div", { className: "pkg_sps-woodland_core__family_file-upload__version_8_56_3__hash_17kn1zku" }, J(W.length === 1 ? "fileUpload.error.wrongType.one" : "fileUpload.error.wrongType.other", {
115
+ fileTypes: K,
116
+ defaultValue: W.length === 1 ? `Selected file is not an accepted file type: ${K}.` : `Selected files are not accepted file types: ${K}.`
117
+ })))) : /* @__PURE__ */ d.createElement("span", null), /* @__PURE__ */ d.createElement("div", { className: o }, /* @__PURE__ */ d.createElement("div", null, /* @__PURE__ */ d.createElement("span", null, Y[0]), k ? /* @__PURE__ */ d.createElement("u", null, Y[1]) : /* @__PURE__ */ d.createElement("a", {
118
+ href: "",
119
+ onClick: pe
120
+ }, Y[1]), /* @__PURE__ */ d.createElement("span", null, Y[2]))), /* @__PURE__ */ d.createElement("div", { className: s }, S ? /* @__PURE__ */ d.createElement("span", null, "(", " ", J("fileUpload.acceptedTypes", {
121
+ fileTypes: K,
122
+ defaultValue: `${K} format accepted`
123
+ }), " ", ")") : "", C ? /* @__PURE__ */ d.createElement("span", null, "(", " ", J("fileUpload.maximumSize", {
124
+ size: C,
125
+ defaultValue: `${C} maximum`
126
+ }), " ", ")") : "", w ? /* @__PURE__ */ d.createElement("span", null, " ", w, " ") : ""), x && /* @__PURE__ */ d.createElement("div", { className: "pkg_sps-woodland_core__family_file-upload__version_8_56_3__hash_17kn1zkw" }, /* @__PURE__ */ d.createElement(m, {
127
+ disabled: k,
128
+ kind: "link",
129
+ icon: "download-cloud",
130
+ onClick: $
131
+ }, x)))), v && !y && /* @__PURE__ */ d.createElement("div", { className: "pkg_sps-woodland_core__family_file-upload__version_8_56_3__hash_17kn1zkx" }, /* @__PURE__ */ d.createElement(m, {
132
+ disabled: k,
133
+ kind: "icon",
134
+ icon: "x",
135
+ title: J("fileUpload.close", { defaultValue: "Close" }),
136
+ onClick: ue
137
+ })), /* @__PURE__ */ d.createElement("form", { className: ee }, /* @__PURE__ */ d.createElement("input", {
138
+ ref: Z,
139
+ type: "file",
140
+ accept: P || "*/*",
141
+ multiple: l || void 0,
142
+ onChange: me
143
+ })));
184
144
  }
185
- de.set(Ae, {
186
- name: "FileUpload",
187
- props: {
188
- constrainContentWidth: { type: "boolean" },
189
- description: { type: "string" },
190
- multiple: { type: "boolean" },
191
- dismissable: { type: "boolean" },
192
- mini: { type: "boolean" },
193
- downloadLabel: { type: "string" },
194
- acceptExtensions: { type: "string[] | string" },
195
- maxSize: { type: "string" },
196
- customRequirement: { type: "string" },
197
- onSelection: { type: "(files: File[]) => void", required: !0 },
198
- dismissal: { type: "() => void" },
199
- download: { type: "() => void" },
200
- disabled: { type: "boolean" }
201
- }
145
+ l.set(v, {
146
+ name: "FileUpload",
147
+ props: {
148
+ constrainContentWidth: { type: "boolean" },
149
+ description: { type: "string" },
150
+ multiple: { type: "boolean" },
151
+ dismissable: { type: "boolean" },
152
+ mini: { type: "boolean" },
153
+ downloadLabel: { type: "string" },
154
+ acceptExtensions: { type: "string[] | string" },
155
+ maxSize: { type: "string" },
156
+ customRequirement: { type: "string" },
157
+ onSelection: {
158
+ type: "(files: File[]) => void",
159
+ required: !0
160
+ },
161
+ dismissal: { type: "() => void" },
162
+ download: { type: "() => void" },
163
+ disabled: { type: "boolean" }
164
+ }
202
165
  });
203
- export {
204
- Ae as FileUpload
205
- };
166
+ //#endregion
167
+ export { v as FileUpload };
@@ -1,19 +1,85 @@
1
+ import { createRuntimeFn as e } from "../../node_modules/.pnpm/@vanilla-extract_recipes@0.2.5_@vanilla-extract_css@1.21.2/node_modules/@vanilla-extract/recipes/createRuntimeFn/dist/vanilla-extract-recipes-createRuntimeFn.esm.js";
1
2
  /* empty css */
2
- 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 l = _({ defaultClassName: "pkg_sps-woodland_core__family_file-upload__version_8_56_2__hash_17kn1zk0", variantClassNames: { active: { true: "pkg_sps-woodland_core__family_file-upload__version_8_56_2__hash_17kn1zk1", false: "pkg_sps-woodland_core__family_file-upload__version_8_56_2__hash_17kn1zk2" }, mini: { true: "pkg_sps-woodland_core__family_file-upload__version_8_56_2__hash_17kn1zk3", false: "pkg_sps-woodland_core__family_file-upload__version_8_56_2__hash_17kn1zk4" }, error: { true: "pkg_sps-woodland_core__family_file-upload__version_8_56_2__hash_17kn1zk5", false: "pkg_sps-woodland_core__family_file-upload__version_8_56_2__hash_17kn1zk6" }, shown: { true: "pkg_sps-woodland_core__family_file-upload__version_8_56_2__hash_17kn1zk7", false: "pkg_sps-woodland_core__family_file-upload__version_8_56_2__hash_17kn1zk8" }, disabled: { true: "pkg_sps-woodland_core__family_file-upload__version_8_56_2__hash_17kn1zk9", false: "pkg_sps-woodland_core__family_file-upload__version_8_56_2__hash_17kn1zka" } }, defaultVariants: { active: !1, mini: !1, error: !1, shown: !0, disabled: !1 }, compoundVariants: [] }), e = _({ defaultClassName: "pkg_sps-woodland_core__family_file-upload__version_8_56_2__hash_17kn1zkb", variantClassNames: { constrainContentWidth: { true: "pkg_sps-woodland_core__family_file-upload__version_8_56_2__hash_17kn1zkc", false: "pkg_sps-woodland_core__family_file-upload__version_8_56_2__hash_17kn1zkd" }, disabled: { true: "pkg_sps-woodland_core__family_file-upload__version_8_56_2__hash_17kn1zke", false: "pkg_sps-woodland_core__family_file-upload__version_8_56_2__hash_17kn1zkf" } }, defaultVariants: { constrainContentWidth: !1, disabled: !1 }, compoundVariants: [] }), s = "pkg_sps-woodland_core__family_file-upload__version_8_56_2__hash_17kn1zkg", i = _({ defaultClassName: "pkg_sps-woodland_core__family_file-upload__version_8_56_2__hash_17kn1zkh", variantClassNames: { mini: { true: "pkg_sps-woodland_core__family_file-upload__version_8_56_2__hash_17kn1zki", false: "pkg_sps-woodland_core__family_file-upload__version_8_56_2__hash_17kn1zkj" }, error: { true: "pkg_sps-woodland_core__family_file-upload__version_8_56_2__hash_17kn1zkk", false: "pkg_sps-woodland_core__family_file-upload__version_8_56_2__hash_17kn1zkl" }, disabled: { true: "pkg_sps-woodland_core__family_file-upload__version_8_56_2__hash_17kn1zkm", false: "pkg_sps-woodland_core__family_file-upload__version_8_56_2__hash_17kn1zkn" } }, defaultVariants: { mini: !1, error: !1, disabled: !1 }, compoundVariants: [] }), n = _({ defaultClassName: "pkg_sps-woodland_core__family_file-upload__version_8_56_2__hash_17kn1zko", variantClassNames: { mini: { true: "pkg_sps-woodland_core__family_file-upload__version_8_56_2__hash_17kn1zkp", false: "pkg_sps-woodland_core__family_file-upload__version_8_56_2__hash_17kn1zkq" } }, defaultVariants: { mini: !1 }, compoundVariants: [] }), d = "pkg_sps-woodland_core__family_file-upload__version_8_56_2__hash_17kn1zkr", r = "pkg_sps-woodland_core__family_file-upload__version_8_56_2__hash_17kn1zks", p = "pkg_sps-woodland_core__family_file-upload__version_8_56_2__hash_17kn1zkt", f = "pkg_sps-woodland_core__family_file-upload__version_8_56_2__hash_17kn1zku", k = "pkg_sps-woodland_core__family_file-upload__version_8_56_2__hash_17kn1zkv", h = "pkg_sps-woodland_core__family_file-upload__version_8_56_2__hash_17kn1zkw", u = "pkg_sps-woodland_core__family_file-upload__version_8_56_2__hash_17kn1zkx", m = "pkg_sps-woodland_core__family_file-upload__version_8_56_2__hash_17kn1zky", t = "pkg_sps-woodland_core__family_file-upload__version_8_56_2__hash_17kn1zkz";
4
- export {
5
- f as erroredFileMessage,
6
- r as erroredFileName,
7
- p as erroredFilenameSegment,
8
- d as erroredFiles,
9
- l as fileUpload,
10
- u as fileUploadCloseButton,
11
- e as fileUploadContent,
12
- h as fileUploadDownloadButton,
13
- m as fileUploadForm,
14
- i as fileUploadIcon,
15
- t as fileUploadImage,
16
- s as fileUploadInstructions,
17
- k as fileUploadRequirements,
18
- n as fileUploadTitle
19
- };
3
+ //#region src/file-upload/file-upload/FileUpload.css.ts
4
+ var t = e({
5
+ defaultClassName: "pkg_sps-woodland_core__family_file-upload__version_8_56_3__hash_17kn1zk0",
6
+ variantClassNames: {
7
+ active: {
8
+ true: "pkg_sps-woodland_core__family_file-upload__version_8_56_3__hash_17kn1zk1",
9
+ false: "pkg_sps-woodland_core__family_file-upload__version_8_56_3__hash_17kn1zk2"
10
+ },
11
+ mini: {
12
+ true: "pkg_sps-woodland_core__family_file-upload__version_8_56_3__hash_17kn1zk3",
13
+ false: "pkg_sps-woodland_core__family_file-upload__version_8_56_3__hash_17kn1zk4"
14
+ },
15
+ error: {
16
+ true: "pkg_sps-woodland_core__family_file-upload__version_8_56_3__hash_17kn1zk5",
17
+ false: "pkg_sps-woodland_core__family_file-upload__version_8_56_3__hash_17kn1zk6"
18
+ },
19
+ shown: {
20
+ true: "pkg_sps-woodland_core__family_file-upload__version_8_56_3__hash_17kn1zk7",
21
+ false: "pkg_sps-woodland_core__family_file-upload__version_8_56_3__hash_17kn1zk8"
22
+ },
23
+ disabled: {
24
+ true: "pkg_sps-woodland_core__family_file-upload__version_8_56_3__hash_17kn1zk9",
25
+ false: "pkg_sps-woodland_core__family_file-upload__version_8_56_3__hash_17kn1zka"
26
+ }
27
+ },
28
+ defaultVariants: {
29
+ active: !1,
30
+ mini: !1,
31
+ error: !1,
32
+ shown: !0,
33
+ disabled: !1
34
+ },
35
+ compoundVariants: []
36
+ }), n = e({
37
+ defaultClassName: "pkg_sps-woodland_core__family_file-upload__version_8_56_3__hash_17kn1zkb",
38
+ variantClassNames: {
39
+ constrainContentWidth: {
40
+ true: "pkg_sps-woodland_core__family_file-upload__version_8_56_3__hash_17kn1zkc",
41
+ false: "pkg_sps-woodland_core__family_file-upload__version_8_56_3__hash_17kn1zkd"
42
+ },
43
+ disabled: {
44
+ true: "pkg_sps-woodland_core__family_file-upload__version_8_56_3__hash_17kn1zke",
45
+ false: "pkg_sps-woodland_core__family_file-upload__version_8_56_3__hash_17kn1zkf"
46
+ }
47
+ },
48
+ defaultVariants: {
49
+ constrainContentWidth: !1,
50
+ disabled: !1
51
+ },
52
+ compoundVariants: []
53
+ }), r = "pkg_sps-woodland_core__family_file-upload__version_8_56_3__hash_17kn1zkg", i = e({
54
+ defaultClassName: "pkg_sps-woodland_core__family_file-upload__version_8_56_3__hash_17kn1zkh",
55
+ variantClassNames: {
56
+ mini: {
57
+ true: "pkg_sps-woodland_core__family_file-upload__version_8_56_3__hash_17kn1zki",
58
+ false: "pkg_sps-woodland_core__family_file-upload__version_8_56_3__hash_17kn1zkj"
59
+ },
60
+ error: {
61
+ true: "pkg_sps-woodland_core__family_file-upload__version_8_56_3__hash_17kn1zkk",
62
+ false: "pkg_sps-woodland_core__family_file-upload__version_8_56_3__hash_17kn1zkl"
63
+ },
64
+ disabled: {
65
+ true: "pkg_sps-woodland_core__family_file-upload__version_8_56_3__hash_17kn1zkm",
66
+ false: "pkg_sps-woodland_core__family_file-upload__version_8_56_3__hash_17kn1zkn"
67
+ }
68
+ },
69
+ defaultVariants: {
70
+ mini: !1,
71
+ error: !1,
72
+ disabled: !1
73
+ },
74
+ compoundVariants: []
75
+ }), a = e({
76
+ defaultClassName: "pkg_sps-woodland_core__family_file-upload__version_8_56_3__hash_17kn1zko",
77
+ variantClassNames: { mini: {
78
+ true: "pkg_sps-woodland_core__family_file-upload__version_8_56_3__hash_17kn1zkp",
79
+ false: "pkg_sps-woodland_core__family_file-upload__version_8_56_3__hash_17kn1zkq"
80
+ } },
81
+ defaultVariants: { mini: !1 },
82
+ compoundVariants: []
83
+ }), o = "pkg_sps-woodland_core__family_file-upload__version_8_56_3__hash_17kn1zkr", s = "pkg_sps-woodland_core__family_file-upload__version_8_56_3__hash_17kn1zks", c = "pkg_sps-woodland_core__family_file-upload__version_8_56_3__hash_17kn1zkt", l = "pkg_sps-woodland_core__family_file-upload__version_8_56_3__hash_17kn1zku", u = "pkg_sps-woodland_core__family_file-upload__version_8_56_3__hash_17kn1zkv", d = "pkg_sps-woodland_core__family_file-upload__version_8_56_3__hash_17kn1zkw", f = "pkg_sps-woodland_core__family_file-upload__version_8_56_3__hash_17kn1zkx", p = "pkg_sps-woodland_core__family_file-upload__version_8_56_3__hash_17kn1zky", m = "pkg_sps-woodland_core__family_file-upload__version_8_56_3__hash_17kn1zkz";
84
+ //#endregion
85
+ export { l as erroredFileMessage, s as erroredFileName, c as erroredFilenameSegment, o as erroredFiles, t as fileUpload, f as fileUploadCloseButton, n as fileUploadContent, d as fileUploadDownloadButton, p as fileUploadForm, i as fileUploadIcon, m as fileUploadImage, r as fileUploadInstructions, u as fileUploadRequirements, a as fileUploadTitle };