@sps-woodland/file-upload 8.34.13 → 8.34.15

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/index.js CHANGED
@@ -134,7 +134,7 @@ var ge = (a, i, l) => {
134
134
  for (var [F, k] of a.compoundVariants)
135
135
  ge(F, t, a.defaultVariants) && (l += " " + k);
136
136
  return l;
137
- }, Fe = C({ defaultClassName: "pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jw0", variantClassNames: { active: { true: "pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jw1", false: "pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jw2" }, mini: { true: "pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jw3", false: "pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jw4" }, error: { true: "pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jw5", false: "pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jw6" }, shown: { true: "pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jw7", false: "pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jw8" }, disabled: { true: "pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jw9", false: "pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jwa" } }, defaultVariants: { active: !1, mini: !1, error: !1, shown: !0, disabled: !1 }, compoundVariants: [] }), xe = C({ defaultClassName: "pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jwb", variantClassNames: { constrainContentWidth: { true: "pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jwc", false: "pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jwd" }, disabled: { true: "pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jwe", false: "pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jwf" } }, defaultVariants: { constrainContentWidth: !1, disabled: !1 }, compoundVariants: [] }), z = "pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jwg", be = C({ defaultClassName: "pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jwh", variantClassNames: { mini: { true: "pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jwi", false: "pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jwj" }, error: { true: "pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jwk", false: "pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jwl" }, disabled: { true: "pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jwm", false: "pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jwn" } }, defaultVariants: { mini: !1, error: !1, disabled: !1 }, compoundVariants: [] }), Ee = C({ defaultClassName: "pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jwo", variantClassNames: { mini: { true: "pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jwp", false: "pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jwq" } }, defaultVariants: { mini: !1 }, compoundVariants: [] }), Ue = "pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jwr", ye = "pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jws", G = "pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jwt", Se = "pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jwu", je = "pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jwv", Ce = "pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jww", ke = "pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jwx", De = "pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jwy";
137
+ }, Fe = C({ defaultClassName: "pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jw0", variantClassNames: { active: { true: "pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jw1", false: "pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jw2" }, mini: { true: "pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jw3", false: "pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jw4" }, error: { true: "pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jw5", false: "pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jw6" }, shown: { true: "pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jw7", false: "pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jw8" }, disabled: { true: "pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jw9", false: "pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jwa" } }, defaultVariants: { active: !1, mini: !1, error: !1, shown: !0, disabled: !1 }, compoundVariants: [] }), xe = C({ defaultClassName: "pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jwb", variantClassNames: { constrainContentWidth: { true: "pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jwc", false: "pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jwd" }, disabled: { true: "pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jwe", false: "pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jwf" } }, defaultVariants: { constrainContentWidth: !1, disabled: !1 }, compoundVariants: [] }), z = "pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jwg", be = C({ defaultClassName: "pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jwh", variantClassNames: { mini: { true: "pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jwi", false: "pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jwj" }, error: { true: "pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jwk", false: "pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jwl" }, disabled: { true: "pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jwm", false: "pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jwn" } }, defaultVariants: { mini: !1, error: !1, disabled: !1 }, compoundVariants: [] }), Ee = C({ defaultClassName: "pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jwo", variantClassNames: { mini: { true: "pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jwp", false: "pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jwq" } }, defaultVariants: { mini: !1 }, compoundVariants: [] }), Ue = "pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jwr", ye = "pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jws", G = "pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jwt", Se = "pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jwu", je = "pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jwv", Ce = "pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jww", ke = "pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jwx", De = "pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jwy";
138
138
  function X({
139
139
  constrainContentWidth: a,
140
140
  description: i,
package/lib/index.umd.cjs CHANGED
@@ -1,4 +1,4 @@
1
- (function(n,g){typeof exports=="object"&&typeof module<"u"?g(exports,require("react"),require("@sps-woodland/core"),require("@spscommerce/utils"),require("@sps-woodland/buttons"),require("@sps-woodland/illustrations"),require("@spscommerce/i18n")):typeof define=="function"&&define.amd?define(["exports","react","@sps-woodland/core","@spscommerce/utils","@sps-woodland/buttons","@sps-woodland/illustrations","@spscommerce/i18n"],g):(n=typeof globalThis<"u"?globalThis:n||self,g(n.FileUpload={},n.React,n.core,n.utils,n.buttons,n.illustrations,n.i18n))})(this,function(n,g,b,p,A,M,J){"use strict";function K(o){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const l in o)if(l!=="default"){const t=Object.getOwnPropertyDescriptor(o,l);Object.defineProperty(i,l,t.get?t:{enumerable:!0,get:()=>o[l]})}}return i.default=o,Object.freeze(i)}const e=K(g),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"],DOCX:["application/vnd.openxmlformats-officedocument.wordprocessingml.document"],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"],PPT:["application/vnd.ms-powerpoint"],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"],XLS:["application/vnd.ms-excel"],XLSX:["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],XML:["application/xml"],XUL:["application/vnd.mozilla.xul+xml"],ZIP:["application/zip"]};function Y(o,i,l){return i in o?Object.defineProperty(o,i,{value:l,enumerable:!0,configurable:!0,writable:!0}):o[i]=l,o}function B(o,i){var l=Object.keys(o);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(o);i&&(t=t.filter(function(s){return Object.getOwnPropertyDescriptor(o,s).enumerable})),l.push.apply(l,t)}return l}function R(o){for(var i=1;i<arguments.length;i++){var l=arguments[i]!=null?arguments[i]:{};i%2?B(Object(l),!0).forEach(function(t){Y(o,t,l[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(l)):B(Object(l)).forEach(function(t){Object.defineProperty(o,t,Object.getOwnPropertyDescriptor(l,t))})}return o}var $=(o,i,l)=>{for(var t of Object.keys(o)){var s;if(o[t]!==((s=i[t])!==null&&s!==void 0?s:l[t]))return!1}return!0},E=o=>i=>{var l=o.defaultClassName,t=R(R({},o.defaultVariants),i);for(var s in t){var v,F=(v=t[s])!==null&&v!==void 0?v:o.defaultVariants[s];if(F!=null){var c=F;typeof c=="boolean"&&(c=c===!0?"true":"false");var _=o.variantClassNames[s][c];_&&(l+=" "+_)}}for(var[U,N]of o.compoundVariants)$(U,t,o.defaultVariants)&&(l+=" "+N);return l},Q=E({defaultClassName:"pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jw0",variantClassNames:{active:{true:"pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jw1",false:"pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jw2"},mini:{true:"pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jw3",false:"pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jw4"},error:{true:"pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jw5",false:"pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jw6"},shown:{true:"pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jw7",false:"pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jw8"},disabled:{true:"pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jw9",false:"pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jwa"}},defaultVariants:{active:!1,mini:!1,error:!1,shown:!0,disabled:!1},compoundVariants:[]}),ee=E({defaultClassName:"pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jwb",variantClassNames:{constrainContentWidth:{true:"pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jwc",false:"pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jwd"},disabled:{true:"pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jwe",false:"pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jwf"}},defaultVariants:{constrainContentWidth:!1,disabled:!1},compoundVariants:[]}),I="pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jwg",oe=E({defaultClassName:"pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jwh",variantClassNames:{mini:{true:"pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jwi",false:"pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jwj"},error:{true:"pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jwk",false:"pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jwl"},disabled:{true:"pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jwm",false:"pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jwn"}},defaultVariants:{mini:!1,error:!1,disabled:!1},compoundVariants:[]}),ae=E({defaultClassName:"pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jwo",variantClassNames:{mini:{true:"pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jwp",false:"pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jwq"}},defaultVariants:{mini:!1},compoundVariants:[]}),le="pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jwr",te="pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jws",L="pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jwt",ie="pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jwu",ne="pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jwv",se="pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jww",re="pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jwx",pe="pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jwy";function T({constrainContentWidth:o,description:i,multiple:l=!1,dismissable:t,processing:s,mini:v,downloadLabel:F,acceptExtensions:c,maxSize:_,customRequirement:U,onSelection:N,onDismiss:W,download:z,shown:y,className:ce,disabled:f,children:Te,..._e}){const S=e.useRef(new Set),[fe,G]=e.useState(y),[Ne,ue]=e.useState([]),[me,he]=e.useState(""),[X,we]=e.useState(),[ve,j]=e.useState(!1),[x,k]=e.useState(!1),[C,q]=e.useState([]),[Z,ge]=e.useState(""),{t:w}=J.useWoodlandLanguage(),O=(l?w("fileUpload.instructions.other",{defaultValue:"Drag and drop your files here or |browse for files| on your desktop."}):w("fileUpload.instructions.one",{defaultValue:"Drag and drop your file here or |browse for a file| on your desktop."})).split("|"),H=i||(l?"Files":"File"),u=e.useRef(null);e.useEffect(()=>{y&&G(y)},[y]),e.useEffect(()=>{_&&xe(_)},[_]),e.useEffect(()=>{c&&be(c)},[c]);function Fe(){t&&(G(!1),W&&W())}function xe(a){try{we(p.parseFileSize(a))}catch{throw new Error(`Could not parse "${a}" as a file size.`)}}function be(a){const m=(Array.isArray(a)?a:a.trim().split(/\s?,\s?/)).map(h=>h.replace(/^\./,"")),d=m.map(h=>`.${h}`.toLowerCase());ge(d.map((h,D)=>D>0&&D===d.length-1?`or ${h}`:h).join(d.length>2?", ":" ")),S.current.clear();for(const h of m){const D=Object.keys(V).includes(h.toUpperCase())?V[h.toUpperCase()]:[];for(const Oe of D)S.current.add(Oe)}he(d.concat(Array.from(S.current)).join(","))}function P(a){q([]);let r=[];const m=Array.from(a);for(const d of m)d===null?r.push("Not a file"):(c&&!S.current.has(d.type)&&r.push(d.name),_&&X&&d.size>X&&r.indexOf(d.name)===-1&&r.push(d.name));r.length?(k(!0),u.current&&u.current.value&&(u.current.value="")):(ue(m),N(m)),q(r)}function Ee(a){a.preventDefault(),k(!1),u.current&&u.current.click()}function Ue(){z&&z()}function ye(a){a.stopPropagation(),P(a.target.files||[]),u.current&&u.current.value&&(u.current.value="")}function Se(a){a.preventDefault(),a.stopPropagation(),j(!0),k(!1)}function je(a){a.preventDefault(),j(!0),k(!1)}function ke(a){a.preventDefault(),j(!1)}function Ce(a){a.preventDefault(),a.stopPropagation(),j(!1),a.dataTransfer.items?P(Array.from(a.dataTransfer.items).map(r=>r.getAsFile())):P(a.dataTransfer.files)}return e.createElement("div",{onDrop:f?()=>{}:Ce,onDragOver:f?()=>{}:Se,onDragLeave:f?()=>{}:ke,onDragEnter:f?()=>{}:je,className:b.cl(Q({active:ve,mini:v,error:x,shown:fe,disabled:f}),ce),..._e},e.createElement("div",{className:b.cl(ee({constrainContentWidth:o,disabled:f}))},s?e.createElement("div",null,e.createElement(b.Spinner,{size:"md","aria-hidden":"true"}),e.createElement("div",{className:I},w("fileUpload.processing",{defaultValue:"Processing Upload..."}))):e.createElement("div",null,e.createElement("div",{className:oe({mini:v,error:x,disabled:f}),"aria-hidden":"true"},e.createElement("img",{className:pe,src:x?M.GENERAL_ERROR_LARGE:M.UPLOAD_LARGE,alt:"Upload Icon"})),e.createElement("div",{className:ae({mini:v})},x?e.createElement("div",null,w(C.length>1?"fileUpload.cancelled.other":"fileUpload.cancelled.one",{defaultValue:C.length>1?"File Upload(s) Failed":"File Upload Failed"})):e.createElement("div",null,w("fileUpload.title",{description:H,defaultValue:`Upload your ${H}`}))),x?e.createElement("div",{className:le},new Set(C.map((a,r)=>{const m=Math.floor(a.length/2);return e.createElement("div",{className:te,key:a},e.createElement("span",{className:L},a.substr(0,m)),e.createElement("div",{className:L},e.createElement("span",null,a.substr(m))),r<C.length-1?",":"")}))):e.createElement("span",null),e.createElement("div",{className:I},e.createElement("div",null,e.createElement("span",null,O[0]),f?e.createElement("u",null,O[1]):e.createElement("a",{href:"",onClick:Ee},O[1]),e.createElement("span",null,O[2]))),e.createElement("div",{className:ie},c?e.createElement("span",null,"("," ",w("fileUpload.acceptedTypes",{fileTypes:Z,defaultValue:`${Z} format accepted`})," ",")"):"",_?e.createElement("span",null,"( ",w("fileUpload.maximumSize",{size:_,defaultValue:`${_} maximum`})," )"):"",U?e.createElement("span",null," ",U," "):""),F&&e.createElement("div",{className:ne},e.createElement(A.Button,{disabled:f,kind:"link",icon:"download-cloud",onClick:Ue},F)))),t&&!s&&e.createElement("div",{className:se},e.createElement(A.Button,{disabled:f,kind:"icon",icon:"x",title:w("fileUpload.close",{defaultValue:"Close"}),onClick:Fe})),e.createElement("form",{className:re},e.createElement("input",{ref:u,type:"file",accept:me||"*/*",multiple:l||void 0,onChange:ye})))}b.Metadata.set(T,{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"}}});const de={"File Upload":{components:[T],examples:{basic:{label:"Basic File Upload",description:"Simply allow the user to drag-and-drop or select a single file or multiple files at once.",examples:{basic:{description:"Single file upload",react:p.code`
1
+ (function(n,g){typeof exports=="object"&&typeof module<"u"?g(exports,require("react"),require("@sps-woodland/core"),require("@spscommerce/utils"),require("@sps-woodland/buttons"),require("@sps-woodland/illustrations"),require("@spscommerce/i18n")):typeof define=="function"&&define.amd?define(["exports","react","@sps-woodland/core","@spscommerce/utils","@sps-woodland/buttons","@sps-woodland/illustrations","@spscommerce/i18n"],g):(n=typeof globalThis<"u"?globalThis:n||self,g(n.FileUpload={},n.React,n.core,n.utils,n.buttons,n.illustrations,n.i18n))})(this,function(n,g,b,p,A,M,J){"use strict";function K(o){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const l in o)if(l!=="default"){const t=Object.getOwnPropertyDescriptor(o,l);Object.defineProperty(i,l,t.get?t:{enumerable:!0,get:()=>o[l]})}}return i.default=o,Object.freeze(i)}const e=K(g),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"],DOCX:["application/vnd.openxmlformats-officedocument.wordprocessingml.document"],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"],PPT:["application/vnd.ms-powerpoint"],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"],XLS:["application/vnd.ms-excel"],XLSX:["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],XML:["application/xml"],XUL:["application/vnd.mozilla.xul+xml"],ZIP:["application/zip"]};function Y(o,i,l){return i in o?Object.defineProperty(o,i,{value:l,enumerable:!0,configurable:!0,writable:!0}):o[i]=l,o}function B(o,i){var l=Object.keys(o);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(o);i&&(t=t.filter(function(s){return Object.getOwnPropertyDescriptor(o,s).enumerable})),l.push.apply(l,t)}return l}function R(o){for(var i=1;i<arguments.length;i++){var l=arguments[i]!=null?arguments[i]:{};i%2?B(Object(l),!0).forEach(function(t){Y(o,t,l[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(l)):B(Object(l)).forEach(function(t){Object.defineProperty(o,t,Object.getOwnPropertyDescriptor(l,t))})}return o}var $=(o,i,l)=>{for(var t of Object.keys(o)){var s;if(o[t]!==((s=i[t])!==null&&s!==void 0?s:l[t]))return!1}return!0},E=o=>i=>{var l=o.defaultClassName,t=R(R({},o.defaultVariants),i);for(var s in t){var v,F=(v=t[s])!==null&&v!==void 0?v:o.defaultVariants[s];if(F!=null){var c=F;typeof c=="boolean"&&(c=c===!0?"true":"false");var _=o.variantClassNames[s][c];_&&(l+=" "+_)}}for(var[U,N]of o.compoundVariants)$(U,t,o.defaultVariants)&&(l+=" "+N);return l},Q=E({defaultClassName:"pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jw0",variantClassNames:{active:{true:"pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jw1",false:"pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jw2"},mini:{true:"pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jw3",false:"pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jw4"},error:{true:"pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jw5",false:"pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jw6"},shown:{true:"pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jw7",false:"pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jw8"},disabled:{true:"pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jw9",false:"pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jwa"}},defaultVariants:{active:!1,mini:!1,error:!1,shown:!0,disabled:!1},compoundVariants:[]}),ee=E({defaultClassName:"pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jwb",variantClassNames:{constrainContentWidth:{true:"pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jwc",false:"pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jwd"},disabled:{true:"pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jwe",false:"pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jwf"}},defaultVariants:{constrainContentWidth:!1,disabled:!1},compoundVariants:[]}),I="pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jwg",oe=E({defaultClassName:"pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jwh",variantClassNames:{mini:{true:"pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jwi",false:"pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jwj"},error:{true:"pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jwk",false:"pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jwl"},disabled:{true:"pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jwm",false:"pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jwn"}},defaultVariants:{mini:!1,error:!1,disabled:!1},compoundVariants:[]}),ae=E({defaultClassName:"pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jwo",variantClassNames:{mini:{true:"pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jwp",false:"pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jwq"}},defaultVariants:{mini:!1},compoundVariants:[]}),le="pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jwr",te="pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jws",L="pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jwt",ie="pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jwu",ne="pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jwv",se="pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jww",re="pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jwx",pe="pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jwy";function T({constrainContentWidth:o,description:i,multiple:l=!1,dismissable:t,processing:s,mini:v,downloadLabel:F,acceptExtensions:c,maxSize:_,customRequirement:U,onSelection:N,onDismiss:W,download:z,shown:y,className:ce,disabled:f,children:Te,..._e}){const S=e.useRef(new Set),[fe,G]=e.useState(y),[Ne,ue]=e.useState([]),[me,he]=e.useState(""),[X,we]=e.useState(),[ve,j]=e.useState(!1),[x,k]=e.useState(!1),[C,q]=e.useState([]),[Z,ge]=e.useState(""),{t:w}=J.useWoodlandLanguage(),O=(l?w("fileUpload.instructions.other",{defaultValue:"Drag and drop your files here or |browse for files| on your desktop."}):w("fileUpload.instructions.one",{defaultValue:"Drag and drop your file here or |browse for a file| on your desktop."})).split("|"),H=i||(l?"Files":"File"),u=e.useRef(null);e.useEffect(()=>{y&&G(y)},[y]),e.useEffect(()=>{_&&xe(_)},[_]),e.useEffect(()=>{c&&be(c)},[c]);function Fe(){t&&(G(!1),W&&W())}function xe(a){try{we(p.parseFileSize(a))}catch{throw new Error(`Could not parse "${a}" as a file size.`)}}function be(a){const m=(Array.isArray(a)?a:a.trim().split(/\s?,\s?/)).map(h=>h.replace(/^\./,"")),d=m.map(h=>`.${h}`.toLowerCase());ge(d.map((h,D)=>D>0&&D===d.length-1?`or ${h}`:h).join(d.length>2?", ":" ")),S.current.clear();for(const h of m){const D=Object.keys(V).includes(h.toUpperCase())?V[h.toUpperCase()]:[];for(const Oe of D)S.current.add(Oe)}he(d.concat(Array.from(S.current)).join(","))}function P(a){q([]);let r=[];const m=Array.from(a);for(const d of m)d===null?r.push("Not a file"):(c&&!S.current.has(d.type)&&r.push(d.name),_&&X&&d.size>X&&r.indexOf(d.name)===-1&&r.push(d.name));r.length?(k(!0),u.current&&u.current.value&&(u.current.value="")):(ue(m),N(m)),q(r)}function Ee(a){a.preventDefault(),k(!1),u.current&&u.current.click()}function Ue(){z&&z()}function ye(a){a.stopPropagation(),P(a.target.files||[]),u.current&&u.current.value&&(u.current.value="")}function Se(a){a.preventDefault(),a.stopPropagation(),j(!0),k(!1)}function je(a){a.preventDefault(),j(!0),k(!1)}function ke(a){a.preventDefault(),j(!1)}function Ce(a){a.preventDefault(),a.stopPropagation(),j(!1),a.dataTransfer.items?P(Array.from(a.dataTransfer.items).map(r=>r.getAsFile())):P(a.dataTransfer.files)}return e.createElement("div",{onDrop:f?()=>{}:Ce,onDragOver:f?()=>{}:Se,onDragLeave:f?()=>{}:ke,onDragEnter:f?()=>{}:je,className:b.cl(Q({active:ve,mini:v,error:x,shown:fe,disabled:f}),ce),..._e},e.createElement("div",{className:b.cl(ee({constrainContentWidth:o,disabled:f}))},s?e.createElement("div",null,e.createElement(b.Spinner,{size:"md","aria-hidden":"true"}),e.createElement("div",{className:I},w("fileUpload.processing",{defaultValue:"Processing Upload..."}))):e.createElement("div",null,e.createElement("div",{className:oe({mini:v,error:x,disabled:f}),"aria-hidden":"true"},e.createElement("img",{className:pe,src:x?M.GENERAL_ERROR_LARGE:M.UPLOAD_LARGE,alt:"Upload Icon"})),e.createElement("div",{className:ae({mini:v})},x?e.createElement("div",null,w(C.length>1?"fileUpload.cancelled.other":"fileUpload.cancelled.one",{defaultValue:C.length>1?"File Upload(s) Failed":"File Upload Failed"})):e.createElement("div",null,w("fileUpload.title",{description:H,defaultValue:`Upload your ${H}`}))),x?e.createElement("div",{className:le},new Set(C.map((a,r)=>{const m=Math.floor(a.length/2);return e.createElement("div",{className:te,key:a},e.createElement("span",{className:L},a.substr(0,m)),e.createElement("div",{className:L},e.createElement("span",null,a.substr(m))),r<C.length-1?",":"")}))):e.createElement("span",null),e.createElement("div",{className:I},e.createElement("div",null,e.createElement("span",null,O[0]),f?e.createElement("u",null,O[1]):e.createElement("a",{href:"",onClick:Ee},O[1]),e.createElement("span",null,O[2]))),e.createElement("div",{className:ie},c?e.createElement("span",null,"("," ",w("fileUpload.acceptedTypes",{fileTypes:Z,defaultValue:`${Z} format accepted`})," ",")"):"",_?e.createElement("span",null,"( ",w("fileUpload.maximumSize",{size:_,defaultValue:`${_} maximum`})," )"):"",U?e.createElement("span",null," ",U," "):""),F&&e.createElement("div",{className:ne},e.createElement(A.Button,{disabled:f,kind:"link",icon:"download-cloud",onClick:Ue},F)))),t&&!s&&e.createElement("div",{className:se},e.createElement(A.Button,{disabled:f,kind:"icon",icon:"x",title:w("fileUpload.close",{defaultValue:"Close"}),onClick:Fe})),e.createElement("form",{className:re},e.createElement("input",{ref:u,type:"file",accept:me||"*/*",multiple:l||void 0,onChange:ye})))}b.Metadata.set(T,{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"}}});const de={"File Upload":{components:[T],examples:{basic:{label:"Basic File Upload",description:"Simply allow the user to drag-and-drop or select a single file or multiple files at once.",examples:{basic:{description:"Single file upload",react:p.code`
2
2
  import { FileUpload } from "@sps-woodland/file-upload";
3
3
 
4
4
  function Component() {
package/lib/style.css CHANGED
@@ -1 +1 @@
1
- .pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jw0{border-width:.0625rem;border-style:dashed;border-radius:.25rem;display:block;padding:1rem;position:relative}.pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jw1{background-color:#f4ecf2;border-color:#91467f;border-style:solid}.pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jw3{padding:1rem}.pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jw5{border-color:#de002e}.pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jw8{display:none}.pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jw9{border-color:#d2d4d4}.pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jwb{color:#4b5356;margin:0 auto;text-align:center}.pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jwc{width:50%}.pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jwe{color:#717779}.pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jwg{font-size:.75rem;line-height:1.25rem}.pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jwh{color:#717779;display:block;margin-bottom:1rem}.pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jwi{font-size:1.5rem;line-height:1.5rem}.pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jwj{font-size:3rem;line-height:3rem}.pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jwk{color:#de002e}.pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jwm{opacity:.5}.pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jwo{font-weight:600;margin-bottom:.25rem}.pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jwp{font-size:1rem;line-height:1.25rem}.pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jwq{font-size:1.125rem;line-height:1.25rem}.pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jwr{font-size:.875rem;font-weight:600;line-height:1.25rem}.pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jws{display:flex;justify-content:center;white-space:nowrap}.pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jwt{max-width:50%;overflow:hidden}.pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jwt:first-child{text-overflow:ellipsis}.pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jwt:last-child{float:right}.pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jwu{font-size:.75rem;line-height:1.125rem;margin-top:.25rem}.pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jwu>span+span{margin-left:.125rem}.pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jwv{margin-top:1rem}.pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jww{position:absolute;right:.5rem;top:.5rem}.pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jwx{display:none}.pkg_sps-woodland_file-upload__version_8_34_13__hash_rh07jwy{height:3rem}
1
+ .pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jw0{border-width:.0625rem;border-style:dashed;border-radius:.25rem;display:block;padding:1rem;position:relative}.pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jw1{background-color:#f4ecf2;border-color:#91467f;border-style:solid}.pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jw3{padding:1rem}.pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jw5{border-color:#de002e}.pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jw8{display:none}.pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jw9{border-color:#d2d4d4}.pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jwb{color:#4b5356;margin:0 auto;text-align:center}.pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jwc{width:50%}.pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jwe{color:#717779}.pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jwg{font-size:.75rem;line-height:1.25rem}.pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jwh{color:#717779;display:block;margin-bottom:1rem}.pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jwi{font-size:1.5rem;line-height:1.5rem}.pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jwj{font-size:3rem;line-height:3rem}.pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jwk{color:#de002e}.pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jwm{opacity:.5}.pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jwo{font-weight:600;margin-bottom:.25rem}.pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jwp{font-size:1rem;line-height:1.25rem}.pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jwq{font-size:1.125rem;line-height:1.25rem}.pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jwr{font-size:.875rem;font-weight:600;line-height:1.25rem}.pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jws{display:flex;justify-content:center;white-space:nowrap}.pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jwt{max-width:50%;overflow:hidden}.pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jwt:first-child{text-overflow:ellipsis}.pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jwt:last-child{float:right}.pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jwu{font-size:.75rem;line-height:1.125rem;margin-top:.25rem}.pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jwu>span+span{margin-left:.125rem}.pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jwv{margin-top:1rem}.pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jww{position:absolute;right:.5rem;top:.5rem}.pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jwx{display:none}.pkg_sps-woodland_file-upload__version_8_34_15__hash_rh07jwy{height:3rem}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sps-woodland/file-upload",
3
3
  "description": "SPS Woodland Design System file upload component",
4
- "version": "8.34.13",
4
+ "version": "8.34.15",
5
5
  "author": "SPS Commerce",
6
6
  "license": "UNLICENSED",
7
7
  "repository": "https://github.com/SPSCommerce/woodland/tree/main/packages/@sps-woodland/file-upload",
@@ -12,10 +12,10 @@
12
12
  "types": "./lib/index.d.ts",
13
13
  "exports": {
14
14
  ".": {
15
+ "types": "./lib/index.d.ts",
15
16
  "require": "./lib/index.umd.cjs",
16
17
  "import": "./lib/index.js",
17
- "default": "./lib/index.js",
18
- "types": "./lib/index.d.ts"
18
+ "default": "./lib/index.js"
19
19
  },
20
20
  "./lib/style.css": {
21
21
  "import": "./lib/style.css",
@@ -27,32 +27,32 @@
27
27
  },
28
28
  "peerDependencies": {
29
29
  "@spscommerce/ds-illustrations": "^6.12.1",
30
- "@spscommerce/utils": "^7.0.0",
30
+ "@spscommerce/utils": "^7.0.0 || ^8.0.0",
31
31
  "react": "^16.14.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
32
32
  "react-dom": "^16.14.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
33
- "@sps-woodland/buttons": "8.34.13",
34
- "@sps-woodland/core": "8.34.13",
35
- "@sps-woodland/tokens": "8.34.13",
36
- "@sps-woodland/illustrations": "8.34.13",
37
- "@spscommerce/ds-react": "8.34.13",
38
- "@spscommerce/ds-shared": "8.34.13",
39
- "@spscommerce/i18n": "8.34.13"
33
+ "@sps-woodland/buttons": "8.34.15",
34
+ "@sps-woodland/core": "8.34.15",
35
+ "@sps-woodland/illustrations": "8.34.15",
36
+ "@sps-woodland/tokens": "8.34.15",
37
+ "@spscommerce/ds-react": "8.34.15",
38
+ "@spscommerce/ds-shared": "8.34.15",
39
+ "@spscommerce/i18n": "8.34.15"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@spscommerce/ds-illustrations": "^6.12.1",
43
- "@spscommerce/utils": "^7.0.0",
44
- "@vanilla-extract/css": "^1.9.3",
43
+ "@spscommerce/utils": "^8.1.1",
44
+ "@vanilla-extract/css": "^1.17.4",
45
45
  "@vanilla-extract/recipes": "^0.2.5",
46
46
  "react": "^16.14.0",
47
47
  "react-dom": "^16.14.0",
48
- "@sps-woodland/buttons": "8.34.13",
49
- "@sps-woodland/core": "8.34.13",
50
- "@sps-woodland/tokens": "8.34.13",
51
- "@spscommerce/ds-colors": "8.34.13",
52
- "@sps-woodland/illustrations": "8.34.13",
53
- "@spscommerce/ds-react": "8.34.13",
54
- "@spscommerce/ds-shared": "8.34.13",
55
- "@spscommerce/i18n": "8.34.13"
48
+ "@sps-woodland/buttons": "8.34.15",
49
+ "@sps-woodland/core": "8.34.15",
50
+ "@sps-woodland/illustrations": "8.34.15",
51
+ "@sps-woodland/tokens": "8.34.15",
52
+ "@spscommerce/ds-colors": "8.34.15",
53
+ "@spscommerce/ds-react": "8.34.15",
54
+ "@spscommerce/ds-shared": "8.34.15",
55
+ "@spscommerce/i18n": "8.34.15"
56
56
  },
57
57
  "scripts": {
58
58
  "build": "pnpm run build:js && pnpm run build:types",
package/vite.config.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import path from "path";
1
+ import path from "node:path";
2
2
  import { vanillaExtractPlugin } from "@vanilla-extract/vite-plugin";
3
3
  import { defineConfig } from "vite";
4
4
  import { getVanillaExtractPluginProps } from "../../../scripts/vanilla-extract-plugin-props.mjs";