@solibo/solibo-ui 2.2.6 → 2.2.8
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/dist/assets/index15.css +1 -1
- package/dist/assets/index46.css +1 -1
- package/dist/components/app-link/index.cjs +0 -1
- package/dist/components/app-link/index.js +0 -1
- package/dist/components/app-shell/index.cjs +0 -1
- package/dist/components/app-shell/index.js +0 -1
- package/dist/components/aside/index.cjs +0 -1
- package/dist/components/aside/index.js +0 -1
- package/dist/components/avatar/index.cjs +0 -1
- package/dist/components/avatar/index.js +0 -1
- package/dist/components/badge/index.cjs +0 -1
- package/dist/components/badge/index.js +0 -1
- package/dist/components/banner/index.cjs +0 -1
- package/dist/components/banner/index.js +0 -1
- package/dist/components/branding/index.cjs +0 -1
- package/dist/components/branding/index.js +0 -1
- package/dist/components/button/index.cjs +0 -1
- package/dist/components/button/index.js +0 -1
- package/dist/components/card/index.cjs +0 -1
- package/dist/components/card/index.js +0 -1
- package/dist/components/checkbox/index.cjs +0 -1
- package/dist/components/checkbox/index.js +0 -1
- package/dist/components/chip/index.cjs +0 -1
- package/dist/components/chip/index.js +0 -1
- package/dist/components/clipboard/index.cjs +0 -1
- package/dist/components/clipboard/index.js +0 -1
- package/dist/components/collapsible/index.cjs +0 -1
- package/dist/components/collapsible/index.js +0 -1
- package/dist/components/controls/index.cjs +0 -1
- package/dist/components/controls/index.js +0 -1
- package/dist/components/croppable/index.cjs +0 -1
- package/dist/components/croppable/index.js +0 -1
- package/dist/components/dialog/index.cjs +0 -1
- package/dist/components/dialog/index.js +0 -1
- package/dist/components/divider/index.cjs +0 -1
- package/dist/components/divider/index.js +0 -1
- package/dist/components/dropdown/index.cjs +0 -1
- package/dist/components/dropdown/index.js +0 -1
- package/dist/components/dropzone/index.cjs +0 -1
- package/dist/components/dropzone/index.js +0 -1
- package/dist/components/editor/index.cjs +0 -1
- package/dist/components/editor/index.js +0 -1
- package/dist/components/empty-state/index.cjs +0 -1
- package/dist/components/empty-state/index.js +0 -1
- package/dist/components/fieldset/index.cjs +0 -1
- package/dist/components/fieldset/index.js +0 -1
- package/dist/components/figure/index.cjs +1 -2
- package/dist/components/figure/index.js +16 -15
- package/dist/components/file/index.cjs +0 -1
- package/dist/components/file/index.js +0 -1
- package/dist/components/footer/index.cjs +0 -1
- package/dist/components/footer/index.js +0 -1
- package/dist/components/form/index.cjs +0 -1
- package/dist/components/form/index.js +0 -1
- package/dist/components/graph/index.cjs +0 -1
- package/dist/components/graph/index.js +0 -1
- package/dist/components/group/index.cjs +0 -1
- package/dist/components/group/index.js +0 -1
- package/dist/components/header/index.cjs +0 -1
- package/dist/components/header/index.js +0 -1
- package/dist/components/icon/index.cjs +0 -1
- package/dist/components/icon/index.js +0 -1
- package/dist/components/iframe/index.cjs +1 -2
- package/dist/components/iframe/index.js +86 -82
- package/dist/components/image/index.cjs +0 -1
- package/dist/components/image/index.js +0 -1
- package/dist/components/input/index.cjs +0 -1
- package/dist/components/input/index.js +0 -1
- package/dist/components/link/index.cjs +0 -1
- package/dist/components/link/index.js +0 -1
- package/dist/components/list/index.cjs +0 -1
- package/dist/components/list/index.js +0 -1
- package/dist/components/loading/index.cjs +0 -1
- package/dist/components/loading/index.js +0 -1
- package/dist/components/menu/index.cjs +0 -1
- package/dist/components/menu/index.js +0 -1
- package/dist/components/message/index.cjs +0 -1
- package/dist/components/message/index.js +0 -1
- package/dist/components/messages/index.cjs +1 -2
- package/dist/components/messages/index.js +89 -68
- package/dist/components/nav/index.cjs +0 -1
- package/dist/components/nav/index.js +0 -1
- package/dist/components/object/index.cjs +0 -1
- package/dist/components/object/index.js +0 -1
- package/dist/components/page-layout/index.cjs +0 -1
- package/dist/components/page-layout/index.js +0 -1
- package/dist/components/panel/index.cjs +0 -1
- package/dist/components/panel/index.js +0 -1
- package/dist/components/popover/index.cjs +0 -1
- package/dist/components/popover/index.js +0 -1
- package/dist/components/portal/index.cjs +0 -1
- package/dist/components/portal/index.js +0 -1
- package/dist/components/search/index.cjs +0 -1
- package/dist/components/search/index.js +0 -1
- package/dist/components/select/index.cjs +0 -1
- package/dist/components/select/index.js +0 -1
- package/dist/components/sortable/index.cjs +0 -1
- package/dist/components/sortable/index.js +0 -1
- package/dist/components/table/index.cjs +0 -1
- package/dist/components/table/index.js +0 -1
- package/dist/components/textarea/index.cjs +0 -1
- package/dist/components/textarea/index.js +0 -1
- package/dist/components/toast/index.cjs +0 -1
- package/dist/components/toast/index.js +0 -1
- package/dist/components/toasts/index.cjs +0 -1
- package/dist/components/toasts/index.js +0 -1
- package/dist/components/toggle/index.cjs +0 -1
- package/dist/components/toggle/index.js +0 -1
- package/dist/components/toolbar/index.cjs +0 -1
- package/dist/components/toolbar/index.js +0 -1
- package/dist/components/tooltip/index.cjs +0 -1
- package/dist/components/tooltip/index.js +0 -1
- package/dist/components/widget/index.cjs +0 -1
- package/dist/components/widget/index.js +0 -1
- package/dist/icons-BIdcCH-v.cjs +0 -1
- package/dist/icons-DVeBguFb.js +0 -1
- package/dist/index-7blZaPiA.cjs +0 -1
- package/dist/index-Dd20d_9U.js +0 -1
- package/dist/index-Dx-KtGBg.js +0 -1
- package/dist/index-VLDsM9it.cjs +0 -1
- package/dist/index.cjs +0 -1
- package/dist/index.d.ts +4 -2
- package/dist/index.js +0 -1
- package/dist/menu-popover-Ceb_9V67.js +0 -1
- package/dist/menu-popover-bqblnK6P.cjs +0 -1
- package/dist/tokens.json +1 -1
- package/dist/use-touched-B999bBr8.js +0 -1
- package/dist/use-touched-Bq5Gjbpz.cjs +0 -1
- package/package.json +1 -1
package/dist/assets/index15.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._messages_88pw2_1 [data-type=avatar]{margin-bottom:var(--scale-8)}._messages_88pw2_1 [data-component=tooltip]{margin:var(--shape-spacing-sm)}._messages_88pw2_1>ul{background-color:var(--colors-semantic-bg-surface);padding:var(--utils-tokens-unit) 0;overflow-anchor:none;scroll-behavior:auto}._messages_88pw2_1>ul>li{margin-bottom:var(--scale-24)}._fill_88pw2_22{display:grid;flex:1;grid-template-rows:minmax(0,1fr) auto;min-height:0}._fill_88pw2_22>[data-message-list]{margin:0;min-height:0;overflow-y:auto}
|
package/dist/assets/index46.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._figure_8kovu_1{display:inline-block;margin:0;padding:0}._figure_8kovu_1>img{background-color:var(--colors-semantic-interactive-neutral);border-radius:var(--shape-border-radius-radius-md);display:block;-o-object-fit:cover;object-fit:cover;-o-object-position:center;object-position:center;width:100%}._figure_8kovu_1 input[type=file]{display:none}._preview_8kovu_20>img{height:auto;max-height:calc(var(--utils-tokens-unit) * 25);max-width:calc(var(--utils-tokens-unit) * 20);min-height:calc(var(--utils-tokens-unit) * 6);min-width:calc(var(--utils-tokens-unit) * 6);-o-object-fit:contain;object-fit:contain;width:auto}._preview_8kovu_20>img+[data-component=controls]{margin-top:var(--shape-spacing-xs)}@media (width <= 480px){._preview_8kovu_20>img{max-height:calc(var(--utils-tokens-unit) * 20);max-width:calc(var(--utils-tokens-unit) * 15)}}._reserved_8kovu_43{max-width:100%;width:var(--shape-image-desktop-max-width)}._reserved_8kovu_43>:first-child:not(figcaption){box-sizing:border-box;height:var(--shape-image-desktop-max-height);max-height:none;max-width:100%;min-height:0;min-width:0;-o-object-fit:contain;object-fit:contain;overflow:hidden;width:100%}._reserved_8kovu_43>:first-child:not(img,figcaption){align-content:center;background-color:var(--colors-semantic-interactive-neutral);border-radius:var(--shape-border-radius-radius-md);display:grid;overflow-wrap:anywhere;padding:var(--shape-spacing-sm);text-align:center}._reserved_8kovu_43>:first-child+[data-component=controls]{margin-top:var(--shape-spacing-xs)}@media (width <= 480px){._reserved_8kovu_43{width:var(--shape-image-mobile-max-width)}._reserved_8kovu_43>:first-child:not(figcaption){height:var(--shape-image-mobile-max-height)}}
|
|
@@ -1,2 +1 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index24.css');const l=require("react/jsx-runtime"),s=require("classix"),a=require("../link/index.cjs"),t="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='24'%20fill='none'%3e%3cpath%20fill='%23000'%20d='M16.705%2012.763c.012-.92.262-1.822.727-2.622a5.5%205.5%200%200%201%201.933-1.954A5.7%205.7%200%200%200%2017.4%206.478a5.8%205.8%200%200%200-2.54-.669c-1.896-.194-3.734%201.107-4.7%201.107-.985%200-2.472-1.088-4.074-1.056a6.1%206.1%200%200%200-2.93.854%205.9%205.9%200%200%200-2.12%202.153c-2.182%203.69-.554%209.114%201.537%2012.097%201.047%201.46%202.27%203.092%203.87%203.035%201.566-.064%202.15-.975%204.04-.975%201.873%200%202.422.974%204.054.938%201.68-.027%202.74-1.468%203.749-2.942A12%2012%200%200%200%2020%2017.612a5.37%205.37%200%200%201-2.395-1.94%205.2%205.2%200%200%201-.9-2.909M13.62%203.847A5.29%205.29%200%200%200%2014.88%200a5.64%205.64%200%200%200-3.621%201.83%205.1%205.1%200%200%200-1.023%201.726%205%205%200%200%200-.268%201.978c.7.007%201.393-.141%202.025-.433a4.6%204.6%200%200%200%201.629-1.254'/%3e%3c/svg%3e",p="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='21'%20height='24'%20fill='none'%3e%3cpath%20fill='%23EA4335'%20d='M9.805%2011.462.09%2022.006l.001.006C.39%2023.158%201.411%2024%202.625%2024c.486%200%20.941-.134%201.332-.37l.03-.018%2010.936-6.453z'/%3e%3cpath%20fill='%23FBBC04'%20d='m19.633%209.666-.009-.006-4.721-2.799-5.32%204.84%205.339%205.457%204.696-2.77A2.7%202.7%200%200%200%2021%2012.022a2.69%202.69%200%200%200-1.367-2.356'/%3e%3cpath%20fill='%234285F4'%20d='M.09%201.993a2.7%202.7%200%200%200-.09.69v18.633q0%20.36.09.69L10.14%2011.73z'/%3e%3cpath%20fill='%2334A853'%20d='m9.877%2012%205.027-5.14L3.982.383A2.6%202.6%200%200%200%202.626%200C1.412%200%20.389.844.09%201.99v.003z'/%3e%3c/svg%3e",g="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='74'%20height='15'%3e%3cpath%20d='M57.518%2011.41h1.629V.398h-1.629zm14.67-7.045-1.866%204.774h-.056l-1.938-4.774h-1.755l2.906%206.672-1.656%203.712h1.698L74%204.365zm-9.236%205.794c-.534%200-1.278-.269-1.278-.936%200-.849.926-1.175%201.727-1.175.715%200%201.053.156%201.488.369-.127%201.02-.997%201.742-1.937%201.742m.196-6.035c-1.179%200-2.401.524-2.906%201.686l1.446.609c.309-.609.884-.808%201.488-.808.843%200%201.699.51%201.713%201.417v.113c-.295-.17-.926-.425-1.699-.425-1.558%200-3.145.865-3.145%202.48%200%201.473%201.278%202.422%202.71%202.422%201.095%200%201.7-.495%202.078-1.077h.056v.85h1.572V7.17c0-1.954-1.446-3.045-3.313-3.045M53.082%205.705h-2.316V1.931h2.316c1.218%200%201.91%201.017%201.91%201.887%200%20.853-.692%201.887-1.91%201.887M53.04.398h-3.902V11.41h1.628V7.238h2.274c1.805%200%203.58-1.32%203.58-3.42%200-2.101-1.775-3.42-3.58-3.42m-21.282%209.763c-1.125%200-2.067-.95-2.067-2.256%200-1.32.942-2.285%202.067-2.285%201.112%200%201.983.965%201.983%202.285%200%201.305-.871%202.256-1.983%202.256m1.87-5.18h-.056c-.366-.44-1.068-.837-1.954-.837-1.857%200-3.558%201.646-3.558%203.76%200%202.1%201.701%203.733%203.558%203.733.886%200%201.588-.397%201.954-.852h.057v.54c0%201.433-.76%202.2-1.983%202.2-.999%200-1.618-.725-1.87-1.335l-1.421.596c.408.994%201.49%202.214%203.29%202.214%201.913%200%203.53-1.135%203.53-3.902V4.37H33.63zm2.673%206.429h1.631V.397h-1.631zm4.035-3.633c-.042-1.447%201.111-2.185%201.94-2.185.648%200%201.196.326%201.379.794zM45.4%206.528c-.31-.837-1.252-2.384-3.178-2.384-1.913%200-3.501%201.518-3.501%203.747%200%202.1%201.574%203.746%203.683%203.746%201.702%200%202.687-1.05%203.095-1.66l-1.266-.852c-.422.624-.999%201.036-1.829%201.036s-1.42-.384-1.8-1.135l4.964-2.073zM5.85%205.294v1.589h3.768c-.112.894-.407%201.547-.857%202-.549.554-1.407%201.165-2.91%201.165-2.322%200-4.136-1.888-4.136-4.23%200-2.341%201.814-4.228%204.135-4.228%201.252%200%202.166.497%202.84%201.135l1.112-1.121C8.859.696%207.608%200%205.85%200%202.672%200%200%202.612%200%205.819s2.672%205.818%205.85%205.818c1.715%200%203.009-.568%204.021-1.632%201.042-1.05%201.365-2.526%201.365-3.718%200-.37-.028-.71-.085-.993zm9.67%204.867c-1.124%200-2.095-.937-2.095-2.27%200-1.349.97-2.271%202.096-2.271%201.124%200%202.095.922%202.095%202.27%200%201.334-.97%202.27-2.095%202.27m0-6.017c-2.053%200-3.726%201.575-3.726%203.747%200%202.157%201.673%203.746%203.727%203.746s3.726-1.59%203.726-3.746c0-2.172-1.673-3.747-3.726-3.747m8.13%206.017c-1.125%200-2.096-.937-2.096-2.27%200-1.349.97-2.271%202.096-2.271%201.125%200%202.095.922%202.095%202.27%200%201.334-.97%202.27-2.095%202.27m0-6.017c-2.053%200-3.726%201.575-3.726%203.747%200%202.157%201.673%203.746%203.726%203.746s3.726-1.59%203.726-3.746c0-2.172-1.673-3.747-3.726-3.747'/%3e%3c/svg%3e",i="_apple_mjwlf_17",h="_google_mjwlf_49",e={"app-link":"_app-link_mjwlf_1",apple:i,google:h},n=({label:o,type:c})=>l.jsxs(a.Link,{to:c==="apple"?"https://apps.apple.com/app/6478964287":"https://play.google.com/store/apps/details?id=no.solibo.mobile.home",className:s(e["app-link"],e[c]),"data-component":"applink",children:[c==="apple"?l.jsx("img",{src:t,alt:"Apple logo"}):l.jsx("img",{src:p,alt:"Google logo"}),l.jsxs("div",{children:[l.jsx("span",{children:o}),l.jsx("span",{children:c==="google"?l.jsx("img",{src:g,alt:"Google Play logo"}):"App Store"})]})]});exports.AppLink=n;
|
|
2
|
-
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,2 +1 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index25.css');const c=require("react/jsx-runtime"),o=require("classix"),i="_shell_1tx67_1",l={shell:i,"single-column":"_single-column_1tx67_16"},r=({children:s,className:t,navigation:e,...n})=>c.jsxs("div",{className:o(l.shell,!e&&l["single-column"],t),...n,"data-component":"appshell",children:[e,s]});exports.AppShell=r;
|
|
2
|
-
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,2 +1 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index26.css');const s=require("react/jsx-runtime"),u=require("classix"),_=require("react"),b=require("../button/index.cjs"),f=require("../icon/index.cjs"),p="_aside_1lij6_3",j="_sidebar_1lij6_9",y="_open_1lij6_62",k="_sticky_1lij6_81",e={aside:p,sidebar:j,open:y,sticky:k},x={default:e.default,sidebar:e.sidebar},g=({children:c,className:i,sticky:d=!1,variant:n="default"})=>{const[t,o]=_.useState(!1);return s.jsxs("aside",{className:u(i&&i,t&&e.open,e.aside,d&&e.sticky,x[n]),onClick:l=>{var r;const a=l.target.closest("a[href]");a&&!((r=a.getAttribute("href"))!=null&&r.startsWith("#"))&&o(!1)},"data-component":"aside",children:[n==="sidebar"&&s.jsx(b.Button,{"data-sidebar-toggle":"true",onClick:()=>o(!t),variant:"tertiary",children:s.jsx(f.Icon,{name:t?"X":"List"})}),c]})};exports.Aside=g;
|
|
2
|
-
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,2 +1 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index27.css');const a=require("react/jsx-runtime"),b=require("classix"),u=require("../figure/index.cjs"),p=require("../icon/index.cjs"),x=require("../link/index.cjs"),j="_avatar_gphab_1",v="_secondary_gphab_9",N="_media_gphab_14",y="_role_gphab_14",f="_details_gphab_63",k="_text_gphab_85",q="_initials_gphab_110",A="_small_gphab_114",I="_medium_gphab_122",L="_large_gphab_134",S="_link_gphab_154",s={avatar:j,secondary:v,"color-1":"_color-1_gphab_14","color-solibo":"_color-solibo_gphab_14",media:N,role:y,"color-2":"_color-2_gphab_19","color-board":"_color-board_gphab_19","color-3":"_color-3_gphab_24","color-owner":"_color-owner_gphab_24","color-4":"_color-4_gphab_29","color-renter":"_color-renter_gphab_29","color-5":"_color-5_gphab_34","color-external":"_color-external_gphab_34",details:f,text:k,"role-name":"_role-name_gphab_94",initials:q,small:A,medium:I,large:L,link:S},$={large:s.large,medium:s.medium,small:s.small},h={large:"large",medium:"medium",small:"medium"},w=i=>{const e=i.trim().split(/\s+/).filter(Boolean),c=Array.from(e[0]??"")[0]??"",t=e.length>1?Array.from(e[e.length-1])[0]:"";return`${c}${t}`.toLocaleUpperCase()},F=({accessibleLabel:i,color:e,icon:c,imageUrl:t,link:_,name:l,role:o,size:r="small",text:n})=>{const m=i||l||"User Avatar",d=l?w(l):"",g=a.jsxs("div",{className:b(s.avatar,$[r],e&&s[`color-${e}`]),"data-color":e,"data-size":r,"data-component":"avatar",children:[a.jsx("span",{className:s.media,children:a.jsx(u.Figure,{accessibleLabel:m,children:c?a.jsx(p.Icon,{name:c,size:h[r]}):t?a.jsx("img",{src:t,alt:m}):d?a.jsx("span",{"aria-hidden":"true",className:s.initials,children:d}):a.jsx(p.Icon,{name:"User",size:h[r]})})}),(l||o||n)&&a.jsxs("span",{className:s.details,children:[l&&a.jsx("strong",{children:l}),r==="small"&&(n||o)&&a.jsxs("span",{className:s.text,children:[n,n&&o&&" | ",o&&a.jsx("span",{className:s["role-name"],children:o})]}),(r==="medium"||r==="large")&&a.jsxs("span",{className:s.secondary,children:[n&&a.jsx("span",{className:s.text,children:n}),o&&a.jsx("span",{className:s.role,children:o})]})]})]});return _?a.jsx(x.Link,{className:s.link,to:_,"data-component":"avatar",children:g}):g};exports.Avatar=F;
|
|
2
|
-
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,2 +1 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index28.css');const _=require("react/jsx-runtime"),u=require("classix"),s=require("../icon/index.cjs"),t="_badge_1b5u6_1",i="_small_1b5u6_20",g="_highlight_1b5u6_25",b="_info_1b5u6_31",m="_primary_1b5u6_36",h="_success_1b5u6_41",p="_warning_1b5u6_46",o={badge:t,small:i,highlight:g,info:b,primary:m,success:h,warning:p,"color-1":"_color-1_1b5u6_51","color-2":"_color-2_1b5u6_56","color-yellow":"_color-yellow_1b5u6_57","color-3":"_color-3_1b5u6_62","color-peach":"_color-peach_1b5u6_63","color-4":"_color-4_1b5u6_68","color-magenta":"_color-magenta_1b5u6_69","color-5":"_color-5_1b5u6_74","color-purple":"_color-purple_1b5u6_75","color-6":"_color-6_1b5u6_80","color-blue":"_color-blue_1b5u6_81","color-7":"_color-7_1b5u6_86","color-green":"_color-green_1b5u6_87"},d={default:o.default,highlight:o.highlight,info:o.info,primary:o.primary,success:o.success,warning:o.warning},f=({color:c,children:r,icon:l,position:e="left",size:n="large",variant:a="default"})=>r===0||r==null?null:_.jsxs("span",{className:u(o.badge,d[a],c&&o[`color-${c}`],o[n]),"data-component":"badge",children:[l&&e=="left"&&_.jsx(s.Icon,{name:l,size:"small"}),_.jsx("span",{children:r}),l&&e=="right"&&_.jsx(s.Icon,{name:l,size:"small"})]});exports.Badge=f;
|
|
2
|
-
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,2 +1 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index29.css');const t=require("react/jsx-runtime"),s=require("classix"),i=require("../button/index.cjs"),o="_banner_hqbfl_13",u="_visible_hqbfl_32",r={banner:o,visible:u},d=({button:a,message:b,onClick:e,onDismiss:n,visible:c=!1})=>{const l=()=>{e==null||e(),n==null||n()};return t.jsxs("div",{"aria-live":"assertive",className:s(r.banner,c&&r.visible),"data-component":"banner",children:[b,t.jsx(i.Button,{onClick:l,children:a})]})};exports.Banner=d;
|
|
2
|
-
//# sourceMappingURL=index.cjs.map
|
|
@@ -13,4 +13,3 @@
|
|
|
13
13
|
<path d="M58.0965 23.6933C57.8777 24.2829 57.5301 25.3211 57.2597 26.1799H57.015C56.7576 25.3211 56.3842 24.2444 56.1911 23.719L54.8136 20.1558H52.8438V27.8461H53.951V24.0394C53.951 23.1422 53.9639 22.0143 53.938 21.1298H54.1569C54.4274 22.0399 54.7878 23.1293 55.187 24.206L56.4486 27.3847H57.646L58.9334 24.2573C59.3325 23.2447 59.7187 22.0655 60.002 21.1298H60.2466C60.2209 22.0014 60.1951 23.1678 60.1951 24.0394V27.8461H61.3667V20.1558H59.5128L58.0965 23.6933Z" fill="#F8FAC0"/>
|
|
14
14
|
<path d="M63.0637 27.8461H68.4195V26.8079H64.2482V24.4495H68.0075V23.4241H64.2482V21.194H68.4324V20.1558H63.0637V27.8461Z" fill="#F8FAC0"/>
|
|
15
15
|
</svg>`,i=({size:C=99})=>t.jsx("img",{alt:"Solibo Home",className:H.branding,src:a(n),style:{width:C},"data-component":"branding"});exports.Branding=i;
|
|
16
|
-
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,2 +1 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index31.css');const e=require("react/jsx-runtime"),g=require("classix"),y=require("../loading/index.cjs"),p=require("../badge/index.cjs"),b=require("../icon/index.cjs"),x="_button_1o0tk_1",k="_large_1o0tk_20",j="_small_1o0tk_24",f="_danger_1o0tk_34",h="_simple_1o0tk_40",q="_primary_1o0tk_49",v="_secondary_1o0tk_60",B="_tertiary_1o0tk_87",t={button:x,large:k,small:j,danger:f,simple:h,primary:q,secondary:v,tertiary:B},S={primary:t.primary,secondary:t.secondary,simple:t.simple,tertiary:t.tertiary},z={large:t.large,medium:t.medium,small:t.small};function I({badge:o,children:s,className:a,disabled:i=!1,icon:r,intent:l="default",isLoading:m=!1,onClick:c,ref:_,size:n="medium",variant:d="secondary",...u}){return e.jsxs("button",{className:g(t.button,S[d],z[n],a,l==="danger"&&t.danger),disabled:i,onClick:c,ref:_,type:"button",...u,"data-component":"button",children:[m?e.jsx(y.Loading,{size:n==="large"?"medium":"small"}):r&&e.jsx(b.Icon,{name:r,size:n==="large"?"medium":"small"}),s,e.jsx(p.Badge,{variant:"highlight",children:o})]})}exports.Button=I;
|
|
2
|
-
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,2 +1 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index32.css');const t=require("react/jsx-runtime"),d=require("classix"),q=require("../badge/index.cjs"),b=require("../checkbox/index.cjs"),g=require("../figure/index.cjs"),T=require("../icon/index.cjs"),k="_card_1pyj3_1",E="_head_1pyj3_28",F="_center_1pyj3_40",I="_content_1pyj3_52",S="_preview_1pyj3_58",$="_margin_1pyj3_98",z="_outlined_1pyj3_142",B="_clickable_1pyj3_148",C="_muted_1pyj3_159",M="_selected_1pyj3_164",e={card:k,head:E,center:F,content:I,preview:S,"preview-leading":"_preview-leading_1pyj3_69","preview-trailing":"_preview-trailing_1pyj3_70","preview-content":"_preview-content_1pyj3_90",margin:$,outlined:z,clickable:B,muted:C,selected:M,"image-top":"_image-top_1pyj3_169","image-left":"_image-left_1pyj3_180"},O=({appearance:x="default",actions:y,badge:p,checkbox:s,className:f,children:o,emphasis:u="default",fullWidth:v=!1,header:_,icon:j,image:a,imagePosition:c="top",onClick:r,onKeyDown:m,preview:l,selected:h=(s==null?void 0:s.checked)??!1,tabIndex:N,variant:i="default",...w})=>t.jsxs("article",{className:d(e.card,x==="outlined"&&e.outlined,u==="muted"&&e.muted,r&&e.clickable,h&&e.selected,f),"data-emphasis":u,"data-minimal":i==="minimal","data-span":v?"all":void 0,...w,onClick:r,onKeyDown:n=>{m==null||m(n),!(n.defaultPrevented||!r)&&n.currentTarget===document.activeElement&&(n.key==="Enter"||n.key===" ")&&(n.preventDefault(),n.currentTarget.click())},tabIndex:N??(r?0:-1),"data-component":"card",children:[a&&i!=="minimal"&&c==="top"&&t.jsx(g.Figure,{className:e[`image-${c}`],children:a}),t.jsxs("section",{children:[t.jsxs("div",{className:d(e.head,i==="minimal"&&e.center),children:[s&&t.jsx("span",{onClick:n=>n.stopPropagation(),children:t.jsx(b.Checkbox,{...s})}),a&&i!=="minimal"&&c==="left"&&t.jsx(g.Figure,{className:e[`image-${c}`],children:a}),_,p&&t.jsx(q.Badge,{...p}),j&&t.jsx(T.Icon,{name:j,size:"medium"}),y]}),o&&i!=="minimal"&&t.jsx("div",{className:d(e.content,!!_&&e.margin),children:o}),l&&i!=="minimal"&&t.jsxs("div",{className:d(e.preview,!!_&&e.margin),children:[t.jsx("span",{className:e["preview-leading"],children:l.leading}),t.jsx("span",{className:e["preview-content"],children:l.children}),t.jsx("span",{className:e["preview-trailing"],children:l.trailing})]})]})]});exports.Card=O;
|
|
2
|
-
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,2 +1 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index33.css');const e=require("react/jsx-runtime"),x=require("../../icons-BIdcCH-v.cjs"),b=require("../loading/index.cjs"),h="_checkbox_3o7pi_3",l={checkbox:h},a=({checked:s,disabled:t,isLoading:c,label:o,onChange:n,...i})=>{const r={"--icon-svg":x.iconSVG("Check")};return e.jsxs("label",{className:l.checkbox,"data-component":"checkbox",children:[e.jsx("input",{checked:s,disabled:t||c,onChange:n,type:"checkbox",style:r,...i}),c&&e.jsx(b.Loading,{size:"small",sticky:!0}),o&&o]})};exports.Checkbox=a;
|
|
2
|
-
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,2 +1 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index34.css');const e=require("react/jsx-runtime"),t=require("classix"),d=require("../icon/index.cjs"),p=require("../button/index.cjs"),_=require("../link/index.cjs"),h="_chip_zhdgo_1",m="_clickable_zhdgo_22",u="_divider_zhdgo_39",k="_link_zhdgo_47",i={chip:h,clickable:m,delete:"_delete_zhdgo_35",divider:u,link:k},x=({accessibleLabel:o,className:s,label:c,link:a,onDelete:l,...r})=>e.jsx(e.Fragment,{children:a?e.jsxs("span",{className:t(i.chip,s),...r,"data-component":"chip",children:[e.jsx(_.Link,{className:t(i.link,i.clickable),onClick:n=>n.stopPropagation(),to:a,children:c}),e.jsx("span",{"aria-hidden":"true",className:i.divider}),e.jsx(p.Button,{"aria-label":o??`Delete ${c}`,className:t(i.delete,i.clickable),icon:"X",onClick:n=>{n.stopPropagation(),l()},variant:"simple"})]}):e.jsxs("button",{...r,"aria-label":o??`Delete ${c}`,className:t(i.chip,i.clickable,s),onClick:n=>{n.stopPropagation(),l()},type:"button","data-component":"chip",children:[c,e.jsx(d.Icon,{name:"X",size:"small"})]})});exports.Chip=x;
|
|
2
|
-
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,2 +1 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index35.css');const t=require("react/jsx-runtime"),l=require("../icon/index.cjs"),s="_clipboard_1npqh_1",d="_label_1npqh_9",c={clipboard:s,label:d},p=({label:o,onSuccess:a})=>{const i=async()=>{if(navigator.clipboard)return navigator.clipboard.writeText(o);const e=document.createElement("textarea");e.value=o,e.style.position="fixed",e.style.opacity="0",document.body.appendChild(e),e.select();const r=document.execCommand("copy");if(e.remove(),!r)throw new Error("Unable to copy text to clipboard")},n=()=>{i().then(()=>a())};return t.jsxs("span",{className:c.clipboard,onClick:n,onKeyDown:e=>{(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),n())},role:"button",tabIndex:0,"data-component":"clipboard",children:[t.jsx("span",{className:c.label,children:o}),t.jsx(l.Icon,{name:"Copy",size:"small"})]})};exports.Clipboard=p;
|
|
2
|
-
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,2 +1 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index36.css');const n=require("react/jsx-runtime"),l=require("react"),u=require("../icon/index.cjs"),f="_collapsible_1nzgt_1",m="_content_1nzgt_12",b="_indicator_1nzgt_16",i={collapsible:f,content:m,indicator:b},v=({children:a,disabled:r,open:d,summary:p})=>{const s=l.useRef(null);return l.useEffect(()=>{const t=s.current;if(!t)return;let e;const c=()=>{e===void 0&&(e=t.open,t.open=!0)},o=()=>{e!==void 0&&(t.open=e,e=void 0)};return window.addEventListener("beforeprint",c),window.addEventListener("afterprint",o),()=>{window.removeEventListener("beforeprint",c),window.removeEventListener("afterprint",o),o()}},[]),n.jsxs("details",{ref:s,className:i.collapsible,open:r||d||void 0,"data-component":"collapsible",children:[n.jsxs("summary",{children:[n.jsx("span",{className:i.content,"data-content":"collapsible-summary",children:p}),!r&&n.jsx("span",{className:i.indicator,"data-content":"collapsible-indicator",children:n.jsx(u.Icon,{name:"CaretDown",size:"medium"})})]}),a]})};exports.Collapsible=v;
|
|
2
|
-
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index37.css');const b=require("react/jsx-runtime"),Z=require("classix"),l=require("react"),ee=require("../button/index.cjs"),A=require("../../menu-popover-bqblnK6P.cjs"),te="_controls_t1re6_13",ne="_inline_t1re6_43",ie="_embedded_t1re6_48",re="_fixed_t1re6_49",oe="_adaptive_t1re6_60",se="_measurement_t1re6_65",h={controls:te,default:"_default_t1re6_28",inline:ne,embedded:ie,fixed:re,adaptive:oe,measurement:se,"non-button-content":"_non-button-content_t1re6_99","overflow-trigger":"_overflow-trigger_t1re6_128"},de={primary:2,secondary:1,tertiary:0,simple:0},ce={default:h.default,embedded:h.embedded,fixed:h.fixed,inline:h.inline},ae=s=>de[s.props.variant??"secondary"];function le({buttons:s,menuAccessibleLabel:i,triggerAccessibleLabel:n}){const x=s.map(o=>({button:o,isDanger:o.props.intent==="danger",value:o}));return b.jsx(A.MenuPopover,{triggerAccessibleLabel:n,"data-component":"overflowmenu",children:({close:o,initialFocus:r})=>b.jsx(A.MenuActionList,{actions:x,initialFocus:r,menuAccessibleLabel:i,onSelect:()=>o(),usesMenuSemantics:!0})})}const p=(s,i)=>{const n=Number.parseFloat(String(s[i]));return Number.isFinite(n)?n:0},ue=s=>{if(!s.trim().endsWith("px"))return;const i=Number.parseFloat(s);return Number.isFinite(i)?i:void 0},me=(s,i)=>{const n=s.parentElement;if(!n)return;const x=n.getBoundingClientRect(),o=getComputedStyle(n),r=x.width||n.clientWidth,S=x.left+p(o,"borderLeftWidth")+p(o,"paddingLeft"),M=x.left+r-p(o,"borderRightWidth")-p(o,"paddingRight"),_=Array.from(n.children).slice(0,Array.from(n.children).indexOf(s)),y=_.reduce((f,u)=>Math.max(f,u.getBoundingClientRect().right),S),c=_.length>0?p(o,"columnGap"):0,a=Math.max(0,M-y-c),R=(i==null?void 0:i.parent)===n?Math.max(0,r-i.parentWidth):0;return{availableWidth:R>0?Math.max(a,((i==null?void 0:i.availableWidth)??0)+R):a,parent:n,parentWidth:r}},fe=({children:s,className:i,maxVisibleButtons:n,overflow:x,overflowAccessibleLabel:o="More actions",variant:r="default",...S})=>{const M=l.Children.toArray(s),_=[],y=[];M.forEach(e=>{l.isValidElement(e)&&e.type===ee.Button?_.push(e):y.push(e)});const c=_.map((e,d)=>({button:e,index:d,rank:ae(e)})).sort((e,d)=>e.rank-d.rank||e.index-d.index).map(({button:e,index:d})=>l.cloneElement(e,{key:e.key??d})),a=r==="embedded"||r==="fixed"&&x==="menu",R=typeof n=="number"&&Number.isFinite(n)?Math.floor(n):0,f=r==="embedded"&&R>0?Math.min(c.length,R):c.length,u=l.useRef(null),N=l.useRef(void 0),z=l.useRef(null),E=l.useRef(null),[F,C]=l.useState(f),k=c.map(e=>String(e.key)).join(`
|
|
2
2
|
`),[D,G]=l.useState(k);D!==k&&(G(k),C(f));const g=l.useCallback(()=>{var L,I,T;if(!a){C(f);return}const e=u.current,d=z.current;if(!e||!d)return;const W=Array.from(d.querySelectorAll('[data-component="button"]')),w=W.at(-1);if(!w)return;const v=W.slice(0,c.length).map(t=>t.getBoundingClientRect().width);if(v.length!==c.length)return;const m=getComputedStyle(e),H=p(m,"paddingLeft")+p(m,"paddingRight")+p(m,"borderLeftWidth")+p(m,"borderRightWidth"),J=ue(m.maxWidth),B=r==="embedded"?me(e,N.current):void 0;B&&(N.current=B);const Q=(B==null?void 0:B.availableWidth)??((L=e.parentElement)==null?void 0:L.clientWidth)??0,U=((I=window.visualViewport)==null?void 0:I.width)??document.documentElement.clientWidth,V=Math.min(...[J,Q,U].filter(t=>typeof t=="number"&&Number.isFinite(t)&&t>0));if(!Number.isFinite(V))return;const q=Math.max(0,V-H),P=((T=E.current)==null?void 0:T.getBoundingClientRect().width)??0,X=v.reduce((t,Y)=>t+Y,0);if(f===c.length&&P+X<=q){C(t=>t===f?t:f);return}let K=P+w.getBoundingClientRect().width,j=0;for(let t=0;t<f&&!(K+v[t]>q);t+=1)K+=v[t],j=t+1;C(t=>t===j?t:j)},[a,c.length,r,f]);if(l.useLayoutEffect(()=>{var d,W,w,v;if(g(),!a)return;const e=typeof ResizeObserver>"u"?void 0:new ResizeObserver(g);return u.current&&(e==null||e.observe(u.current)),(d=u.current)!=null&&d.parentElement&&(e==null||e.observe(u.current.parentElement)),r==="embedded"&&((W=u.current)!=null&&W.parentElement)&&Array.from(u.current.parentElement.children).forEach(m=>{m!==u.current&&(e==null||e.observe(m))}),E.current&&(e==null||e.observe(E.current)),window.addEventListener("resize",g),(w=window.visualViewport)==null||w.addEventListener("resize",g),(v=document.fonts)==null||v.ready.then(g),()=>{var m;e==null||e.disconnect(),window.removeEventListener("resize",g),(m=window.visualViewport)==null||m.removeEventListener("resize",g)}},[a,s,g,r]),M.length===0)return null;const $=a?c.slice(0,F):c,O=a?c.slice(F):[];return b.jsxs("div",{"data-dynamic-position":r==="fixed"?!0:void 0,"data-adaptive":a?!0:void 0,className:Z(h.controls,ce[r],a&&h.adaptive,i),ref:u,...S,"data-component":"controls",children:[a&&b.jsxs("div",{"aria-hidden":"true",className:h.measurement,ref:z,children:[c.map((e,d)=>l.cloneElement(e,{"aria-hidden":!0,id:void 0,key:`measure-${String(e.key??d)}`,onClick:void 0,ref:void 0,tabIndex:-1})),b.jsx(A.MenuPopover,{triggerAccessibleLabel:o,children:null})]}),r!=="embedded"&&y.length>0&&b.jsx("span",{className:h["non-button-content"],ref:E,children:y}),$,O.length>0&&b.jsx("span",{className:h["overflow-trigger"],children:b.jsx(le,{buttons:O,menuAccessibleLabel:o,triggerAccessibleLabel:o})})]})};exports.Controls=fe;
|
|
3
|
-
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,2 +1 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index38.css');const i=require("react/jsx-runtime"),gt=require("classix"),c=require("react"),Vt=require("../toolbar/index.cjs"),ot=require("../button/index.cjs"),Ct=require("../figure/index.cjs"),te=require("../icon/index.cjs"),X=10,Z=.1,ee=.92,y=(s,d,R)=>Math.min(R,Math.max(d,s)),ne=s=>new Promise((d,R)=>{const f=URL.createObjectURL(s),h=new globalThis.Image;h.onload=()=>{URL.revokeObjectURL(f),d(h)},h.onerror=()=>{URL.revokeObjectURL(f),R(new Error("croppable-image-load-failed"))},h.src=f}),re=async({file:s,fill:d,transform:R,viewport:f})=>{const h=await ne(s),z=f.width/h.naturalWidth,Q=f.height/h.naturalHeight,j=Math.max(z,Q),q=h.naturalWidth*j,k=h.naturalHeight*j,M=d==="width"?Math.max(Z,z/j):d==="height"?Math.max(Z,Q/j):Z,P=y(R.zoom,M,X),D=j*P,O=q*P,$=k*P,ct=(f.width-O)/2+R.offset.x,E=(f.height-$)/2+R.offset.y,F=y(-ct/D,0,h.naturalWidth),v=y(-E/D,0,h.naturalHeight),_=y(f.width/D,1,Math.max(1,h.naturalWidth-F)),b=y(f.height/D,1,Math.max(1,h.naturalHeight-v)),T=document.createElement("canvas"),U=T.getContext("2d");if(!U)throw new Error("croppable-image-context-missing");T.width=Math.max(1,Math.round(_)),T.height=Math.max(1,Math.round(b)),U.drawImage(h,F,v,_,b,0,0,T.width,T.height);const g=s.type.startsWith("image/")?s.type:"image/jpeg",x=await new Promise(Y=>{T.toBlob(Y,g,ee)});if(!x)throw new Error("croppable-image-export-failed");return new globalThis.File([x],s.name,{lastModified:Date.now(),type:x.type||g})},oe="_croppable_1tvcl_1",ce="_empty_1tvcl_15",se="_action_1tvcl_28",ie="_caption_1tvcl_36",ae="_media_1tvcl_43",ue="_viewport_1tvcl_54",le="_draggable_1tvcl_66",de="_dragging_1tvcl_70",fe="_inner_1tvcl_74",he="_standalone_1tvcl_90",l={croppable:oe,empty:ce,"drop-target":"_drop-target_1tvcl_23",action:se,caption:ie,media:ae,viewport:ue,draggable:le,dragging:de,inner:fe,standalone:he},pe=192,L={offset:{x:0,y:0},zoom:1},It=(s,d)=>(s==null?void 0:s.file)===d.file&&(s==null?void 0:s.source)===d.source&&(s==null?void 0:s.settings)===d.settings,me=({cancelLabel:s,children:d,deleteLabel:R,fill:f="none",height:h,image:z,isDeleting:Q,isSaving:j,onCroppableChange:q,onDelete:k,onFileChange:M,onImageChange:P,onSave:D,onTransformChange:O,saveLabel:$,standalone:ct,transform:E,uploadLabel:F})=>{const v=c.useRef(null),_=c.useRef(null),b=c.useRef(null),T=c.useRef(null),U=c.useRef(0),g=c.useRef(P),x=c.useRef(null),Y=c.useRef(null),H=c.useRef(null),G=c.useRef(new Map),u=c.useRef(L),st=c.useRef(null),[w,V]=c.useState(null),[it,at]=c.useState(null),[xt,C]=c.useState(!1),[Lt,ut]=c.useState(!1),[St,lt]=c.useState(L),[S,dt]=c.useState(null),[m,At]=c.useState({width:0,height:0}),[wt,ft]=c.useState(null),[J,tt]=c.useState(null),K=(()=>{const t=m.width,e=m.height;if(!t||!e)return{width:0,height:0,minZoom:Z};if(!w)return{width:t,height:e,minZoom:Z};const r=t/w.width,n=e/w.height,o=Math.max(r,n),a=f==="width"?r/o:f==="height"?n/o:0;return{width:w.width*o,height:w.height*o,minZoom:Math.max(Z,a)}})(),B=K.minZoom,A=E??St,N=y(A.zoom,B,X),et=it??z??null,yt=!d&&!!z&&!it&&!S,nt=!yt,_t=d??(et?i.jsx("img",{alt:"",draggable:!1,onLoad:t=>{const e=t.currentTarget;e.naturalWidth&&e.naturalHeight&&V({width:e.naturalWidth,height:e.naturalHeight})},src:et}):null),I=_t==null,ht={file:S,source:it,settings:JSON.stringify([f,N,A.offset.x,A.offset.y,m.width,m.height])};c.useEffect(()=>{!J||!z||z===J.image&&z!==J.crop.source||(ft(J.crop),tt(null))},[z,J]);const pt=(t,e)=>{const{maxX:r,maxY:n}=Rt(e);return{x:y(t.x,-r,r),y:y(t.y,-n,n)}},bt=(t,e)=>{const r=st.current;if(!r)return null;const n=r.getBoundingClientRect(),o=t-n.left-n.width/2,a=e-n.top-n.height/2;return{x:o,y:a}},Nt=(t,e,r,n)=>{const o=y(e,B,X),a=y(r,B,X);if(o===0)return t;const p=a/o;return{x:(1-p)*n.x+p*t.x,y:(1-p)*n.y+p*t.y}},Wt=(t,e,r)=>{const n=u.current.zoom,o=y(t,B,X),a=u.current.offset,p=r?Nt(a,n,o,r):e,W=pt(p,o);u.current={zoom:o,offset:W},E||lt({zoom:o,offset:W}),O==null||O({zoom:o,offset:W})},rt=(t,e,r)=>{Y.current={zoom:t,offset:e,anchor:r??null},_.current==null&&(_.current=window.requestAnimationFrame(()=>{_.current=null;const n=Y.current;Y.current=null;const o=(n==null?void 0:n.zoom)??u.current.zoom,a=(n==null?void 0:n.offset)??u.current.offset,p=(n==null?void 0:n.anchor)??null;Wt(o,a,p)}))},Xt=t=>{if(I||!nt)return;const e=t.ctrlKey?.001:25e-5,r=u.current.zoom*Math.exp(-t.deltaY*e),n=bt(t.clientX,t.clientY);rt(r,u.current.offset,n)},Rt=t=>{const e=m.width,r=m.height;if(!e||!r)return{maxX:0,maxY:0};const n=y(t,B,X),o=K.width*n,a=K.height*n,p=Math.max(0,(o-e)/2),W=Math.max(0,(a-r)/2);return{maxX:p,maxY:W}},zt=t=>{if(tt(null),ft(null),x.current&&(URL.revokeObjectURL(x.current),x.current=null),!t){at(null),dt(null),M==null||M(null);return}const e=URL.createObjectURL(t);x.current=e,at(e),V(null),dt(t),rt(L.zoom,L.offset),u.current=L,M==null||M(t)},kt=t=>{var e;zt(((e=t.target.files)==null?void 0:e[0])??null),t.target.value=""},Mt=t=>!j&&(Array.from(t.items??[]).some(e=>e.kind==="file"&&e.type.startsWith("image/"))||Array.from(t.files??[]).some(e=>e.type.startsWith("image/"))),Yt=t=>{if(t.preventDefault(),t.stopPropagation(),U.current=0,ut(!1),j)return;const e=Array.from(t.dataTransfer.files).find(r=>r.type.startsWith("image/"));e&&zt(e)},jt=()=>{tt(null),ft(null),_.current!=null&&(window.cancelAnimationFrame(_.current),_.current=null),Y.current=null,v.current=null,b.current=null,H.current=null,G.current.clear(),C(!1),x.current&&(URL.revokeObjectURL(x.current),x.current=null),at(null),V(null),dt(null),u.current=L,lt(L),O==null||O(L),M==null||M(null)},Ht=t=>{t.stopPropagation(),jt()},Bt=t=>{t.stopPropagation(),jt(),k==null||k()},Zt=t=>{if(!(I||!nt||t.pointerType==="mouse"&&t.button!==0)){if(t.currentTarget.setPointerCapture(t.pointerId),t.pointerType==="touch"){const e=G.current;if(e.set(t.pointerId,{x:t.clientX,y:t.clientY}),e.size===2){b.current=null,v.current=null,C(!1);const[r,n]=Array.from(e.values());H.current=Math.hypot(r.x-n.x,r.y-n.y);return}}v.current=t.pointerId,b.current={x:t.clientX,y:t.clientY,originX:u.current.offset.x,originY:u.current.offset.y}}},qt=t=>{if(I||!nt)return;if(t.pointerType==="touch"){const o=G.current;if(!o.has(t.pointerId))return;if(o.set(t.pointerId,{x:t.clientX,y:t.clientY}),o.size===2){const[a,p]=Array.from(o.values()),W=a.x-p.x,Gt=a.y-p.y,Ot=Math.hypot(W,Gt),Ut={x:(a.x+p.x)/2,y:(a.y+p.y)/2};if(H.current){const Jt=Ot/H.current,Kt=u.current.zoom*Jt,Qt=bt(Ut.x,Ut.y);rt(Kt,u.current.offset,Qt)}H.current=Ot;return}}if(v.current!==t.pointerId||!b.current||!mt)return;const e=t.clientX-b.current.x,r=t.clientY-b.current.y,n=Math.abs(e)+Math.abs(r);!xt&&n>2&&C(!0),!(n<=1)&&rt(u.current.zoom,{x:b.current.originX+e,y:b.current.originY+r})},Dt=t=>{t.pointerType==="touch"&&(G.current.delete(t.pointerId),G.current.size<2&&(H.current=null)),v.current===t.pointerId&&(v.current=null,b.current=null,C(!1))};c.useEffect(()=>{if(!E)return;const t=y(E.zoom,B,X);u.current={zoom:t,offset:pt(E.offset,t)}},[E,m.width,m.height,w==null?void 0:w.width,w==null?void 0:w.height]),c.useEffect(()=>()=>{x.current&&URL.revokeObjectURL(x.current)},[]),c.useEffect(()=>{const t=st.current;if(!t)return;const e=()=>{const o=t.getBoundingClientRect();At(a=>a.width===o.width&&a.height===o.height?a:{width:o.width,height:o.height}),q&&q(o)};e();const r=()=>e();if(window.addEventListener("scroll",r,!0),typeof ResizeObserver>"u"){const o=()=>e();return window.addEventListener("resize",o),()=>{window.removeEventListener("resize",o),window.removeEventListener("scroll",r,!0)}}const n=new ResizeObserver(()=>e());return n.observe(t),()=>{n.disconnect(),window.removeEventListener("scroll",r,!0)}},[q]),c.useEffect(()=>{if(E)return;const t=u.current.offset,e=pt(t,N);t.x===e.x&&t.y===e.y||(u.current={zoom:u.current.zoom,offset:e},lt(r=>({...r,offset:e})))},[N,w,m.width,m.height]),c.useEffect(()=>{et||V(null)},[et]),c.useEffect(()=>{g.current=P},[P]),c.useEffect(()=>{var r;if(!P)return;if(!S||!m.width||!m.height||d){(r=g.current)==null||r.call(g,null);return}let t=!0;const e=window.setTimeout(()=>{re({file:S,fill:f,transform:{zoom:N,offset:A.offset},viewport:m}).then(n=>{var o;t&&((o=g.current)==null||o.call(g,n))}).catch(()=>{var n;t&&((n=g.current)==null||n.call(g,null))})},75);return()=>{t=!1,window.clearTimeout(e)}},[d,N,A.offset,f,S,m]),c.useEffect(()=>()=>{_.current!=null&&(window.cancelAnimationFrame(_.current),_.current=null)},[]);const Et=Rt(N),mt=!I&&nt&&(Et.maxX>0||Et.maxY>0),vt=!I&&!yt&&!!D&&!It(wt,ht),Tt=!!z&&!d&&!!S&&!It(wt,ht),$t=!Tt&&!I&&!!(S||k),Pt=()=>{var t;return(t=T.current)==null?void 0:t.click()},Ft=t=>{t.preventDefault(),t.stopPropagation(),Pt()};return i.jsxs("div",{className:gt(l.croppable,ct&&l.standalone,Lt&&l["drop-target"]),onDragEnter:t=>{t.preventDefault(),t.stopPropagation(),U.current+=1,ut(Mt(t.dataTransfer))},onDragOver:t=>{t.preventDefault(),t.stopPropagation(),t.dataTransfer.dropEffect=Mt(t.dataTransfer)?"copy":"none"},onDragLeave:t=>{t.preventDefault(),t.stopPropagation(),U.current=Math.max(0,U.current-1),U.current||ut(!1)},onDrop:Yt,onClick:()=>{I&&Pt()},"data-component":"croppable",children:[i.jsx("input",{accept:"image/*",onChange:kt,ref:T,type:"file"}),i.jsx("div",{className:l.viewport,ref:st,onDragStart:t=>t.preventDefault(),onPointerDown:Zt,onPointerMove:qt,onPointerUp:Dt,onPointerCancel:Dt,onWheel:Xt,style:{"--croppable-height":`${h??pe}px`,"--croppable-zoom":N,"--croppable-x":`${A.offset.x}px`,"--croppable-y":`${A.offset.y}px`,...w?{"--croppable-image-width":`${K.width}px`,"--croppable-image-height":`${K.height}px`}:null},children:I?i.jsx("div",{className:l.empty,children:i.jsx(Ct.Figure,{children:i.jsx(te.Icon,{name:"Image",size:"large"})})}):i.jsx("div",{className:gt(l.media,mt&&l.draggable,mt&&xt&&l.dragging),children:i.jsx("div",{className:gt(l.inner),children:_t})})}),i.jsxs(Vt.Toolbar,{children:[vt&&i.jsxs("span",{className:l.action,children:[i.jsx(ot.Button,{isLoading:j,"aria-label":$??"Save image",icon:"FloppyDisk",onClick:()=>{tt({image:z,crop:ht}),D==null||D()},variant:"primary"}),$&&i.jsx("span",{className:l.caption,children:$})]}),!vt&&i.jsxs("span",{className:l.action,children:[i.jsx(ot.Button,{"aria-label":F,icon:"UploadSimple",onClick:Ft,variant:"secondary"}),i.jsx("span",{className:l.caption,children:F})]}),Tt&&i.jsxs("span",{className:l.action,children:[i.jsx(ot.Button,{"aria-label":s??"Cancel changes",icon:"X",onClick:Ht,variant:"secondary"}),s&&i.jsx("span",{className:l.caption,children:s})]}),$t&&i.jsxs("span",{className:l.action,children:[i.jsx(ot.Button,{"aria-label":R??"Delete image",icon:"Trash",intent:"danger",isLoading:Q,onClick:Bt,variant:"secondary"}),R&&i.jsx("span",{className:l.caption,children:R})]})]})]})};exports.Croppable=me;
|
|
2
|
-
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,2 +1 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index39.css');const e=require("react/jsx-runtime"),p=require("classix"),a=require("react"),j=require("../button/index.cjs"),P=require("../icon/index.cjs"),T="_dialog_cz5d0_3",X="_close_cz5d0_34",E="_fullscreen_cz5d0_45",F="_structured_cz5d0_87",M="_content_cz5d0_87",S="_header_cz5d0_96",Y="_controls_cz5d0_101",r={dialog:T,close:X,fullscreen:E,structured:F,content:M,header:S,controls:Y},z=l=>a.Children.toArray(l).some(s=>a.isValidElement(s)?s.type===j.Button&&s.props.intent==="danger"?!0:z(s.props.children):!1),w=({children:l,className:s,controls:n,fullscreen:f=!1,header:_,onCancel:i,onClick:d,onClose:u,open:o=!1,setOpen:c,...B})=>{const g=a.useRef(null),m=z(n),h=f||_!=null||n!=null;a.useEffect(()=>{const t=g.current;t&&(o&&!t.open?t.showModal():!o&&t.open&&t.close())},[o]);const b=t=>{i==null||i(t),!(t.defaultPrevented||!c)&&(t.preventDefault(),c(!1))},q=t=>{if(d==null||d(t),m||t.defaultPrevented||t.target!==t.currentTarget||!c)return;const{bottom:N,left:R,right:D,top:k}=t.currentTarget.getBoundingClientRect();(t.clientX<R||t.clientX>D||t.clientY<k||t.clientY>N)&&c(!1)},y=t=>{u==null||u(t),o&&(c==null||c(!1))},x=c&&!m?e.jsx(j.Button,{"aria-label":"Close dialog",className:r.close,onClick:()=>c(!1),variant:"simple",children:e.jsx(P.Icon,{name:"X"})}):null;return e.jsx("dialog",{className:p(r.dialog,h&&r.structured,f&&r.fullscreen,s),onCancel:b,onClick:q,onClose:y,ref:g,...B,"data-component":"dialog",children:h?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:r.header,children:[_,x]}),e.jsx("div",{className:r.content,children:l}),n!=null&&e.jsx("div",{className:r.controls,children:n})]}):e.jsxs(e.Fragment,{children:[x,l]})})};exports.Dialog=w;
|
|
2
|
-
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,2 +1 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index40.css');const r=require("react/jsx-runtime"),d=require("classix"),t="_divider_1oie5_1",s={divider:t},o=({className:e,...i})=>r.jsx("hr",{className:d(s.divider,e),...i,"data-component":"divider"});exports.Divider=o;
|
|
2
|
-
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,2 +1 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index41.css');const s=require("react/jsx-runtime"),C=require("classix"),r=require("react"),V=require("../button/index.cjs"),$e=require("../../icons-BIdcCH-v.cjs"),fe=require("../../index-7blZaPiA.cjs"),De=require("../list/index.cjs"),Fe=require("../loading/index.cjs"),F=require("../../index-VLDsM9it.cjs");function L(t){return typeof t=="string"||typeof t=="number"?String(t):Array.isArray(t)?t.map(L).join(" "):r.isValidElement(t)?L(t.props.children):""}function Le(t){return r.isValidElement(t)&&t.type==="option"}function Me(t){return r.isValidElement(t)&&t.type==="optgroup"}function Qe(t){return r.isValidElement(t)&&t.type===r.Fragment}function We(t){return r.isValidElement(t)&&t.type===F.Select}function Z(t,c,i=!1){const o=[];return r.Children.forEach(t,n=>{if(Qe(n))o.push(...Z(n.props.children,c,i));else if(Le(n)){const a=L(n.props.children).trim(),h=n.props.value!=null?String(n.props.value):a;o.push({disabled:i||!!n.props.disabled,groupLabel:c,hidden:!!n.props.hidden,isPlaceholder:!!(n.props.hidden&&h===""),label:n.props.children,selected:!!n.props.selected,text:a,value:h})}else Me(n)&&o.push(...Z(n.props.children,n.props.label,i||!!n.props.disabled))}),o}function ze(t){const c=t.trim();if(!c)return null;const o=[.../[*?]/.test(c)?c:`*${c}*`].map(n=>n==="*"?".*":n==="?"?".":n.replace(/[|\\{}()[\]^$+.,]/g,"\\$&")).join("");return new RegExp(`^${o}$`,"i")}function Ge(t,c){const i=ze(c),o=t.filter(n=>!n.hidden&&!n.isPlaceholder);return i?o.filter(n=>i.test([n.groupLabel,n.text,n.value].filter(Boolean).join(" "))):o}function Pe(t,c){return t.find(i=>i.value===c)??t.find(i=>i.isPlaceholder)??t[0]}function Te(t,c,i){var o,n;return c!=null?String(c):i!=null?String(i):((o=t.find(a=>a.selected))==null?void 0:o.value)??((n=t[0])==null?void 0:n.value)??""}function Ae(t){if(We(t)){const{children:c,placeholder:i,...o}=t.props;return{children:s.jsxs(s.Fragment,{children:[i&&s.jsx("option",{hidden:!0,value:"",children:i}),c]}),props:o}}return{children:t.props.children,props:t.props}}const Ke="_combobox_5r227_3",Oe="_dropdown_5r227_20",He="_empty_5r227_25",Je="_group_5r227_26",Ue="_placeholder_5r227_27",Xe="_filter_5r227_35",Ye="_native_5r227_45",Ze="_option_5r227_55",et="_options_5r227_76",tt="_panel_5r227_83",nt="_selected_5r227_108",st="_text_5r227_112",rt="_trigger_5r227_120",lt="_minimal_5r227_157",it="_inline_5r227_217",ot="_label_5r227_249",l={combobox:Ke,"combobox-input":"_combobox-input_5r227_12",dropdown:Oe,empty:He,group:Je,placeholder:Ue,filter:Xe,native:Ye,option:Ze,options:et,panel:tt,selected:nt,text:st,trigger:rt,minimal:lt,inline:it,label:ot,"inline-field":"_inline-field_5r227_255"};function pe(t,c){return{"--icon-svg":$e.iconSVG(t,c)}}const ct=({children:t,className:c,combobox:i=!1,createOption:o,emptyLabel:n="No matches found",errorLabel:a,onRetry:h,retryLabel:me="Retry",label:b,filterOptions:_e=!0,hasNextPage:v=!1,loading:m=!1,loadMoreLabel:be="Load more",onLoadMore:g,onOpenChange:I,onSearchChange:B,searchValue:M,renderOption:Q,searchPlaceholder:W="Filter",selectedItems:ve,variant:j="default",...xe})=>{const z=Ae(t),{defaultValue:ye,onChange:G,value:P,...he}=z.props,u=F.sanitizeSelectProps(he),{className:ge,...je}=u,ee=r.useRef(null),te=r.useRef(null),k=r.useId(),ne=r.useRef(null),x=r.useRef(null),se=r.useRef(null),re=r.useRef(null),T=r.useRef(!1),A=r.useRef(!1),K=r.useRef(g),le=!!g,w=Z(z.children),E=P!=null,O=Te(w,P,ye),[H,J]=r.useState(()=>O),[d,we]=r.useState(!1),[Ee,Re]=r.useState(""),R=M??Ee,N=r.useCallback(e=>{M===void 0&&Re(e),B==null||B(e)},[B,M]),p=r.useCallback(e=>{T.current===e||e&&u.disabled||(T.current=e,we(e),I==null||I(e),e||N(""))},[I,u.disabled,N]),q=E?String(P):H,ie={default:F.resolveColor("--colors-semantic-content-secondary"),white:F.resolveColor("--color-white","white")},oe=j==="minimal"?ie.white:ie.default,$=Pe(w,q),Ne=pe("CaretDown",oe),Se=pe("MagnifyingGlass",oe),U=Ge(w,_e?R:""),y=R.trim(),D=!!(i&&o&&y&&o.isValid(y)),Ce=b&&j==="inline"?fe.formatInlineLabel(b):b,ce=e=>e?(Q==null?void 0:Q({groupLabel:e.groupLabel,isSelected:e.value===q,label:e.label,text:e.text,value:e.value}))??e.label:"Select an option";r.useEffect(()=>{!E&&!w.some(e=>e.value===H)&&J(O)},[O,H,E,w]),r.useEffect(()=>{var e;d&&((e=x.current)==null||e.focus())},[d]),r.useEffect(()=>{if(!d)return;const e=f=>{var _;(_=te.current)!=null&&_.contains(f.target)||p(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[p,d]),r.useEffect(()=>{K.current=g},[g]),r.useEffect(()=>{u.disabled&&p(!1)},[p,u.disabled]);const X=r.useCallback(()=>{!T.current||u.disabled||m||a||!v||!K.current||A.current||(A.current=!0,K.current())},[a,v,m,u.disabled]);r.useEffect(()=>{if(A.current=!1,!d||u.disabled||m||a||!v||!le)return;const e=re.current,f=se.current;if(!e||!f||typeof IntersectionObserver>"u")return;let _=!0;const S=new IntersectionObserver(ke=>{_&&ke.some(qe=>qe.isIntersecting)&&X()},{root:f});return S.observe(e),()=>{_=!1,S.disconnect()}},[d,m,a,v,le,X,U.length,R,u.disabled]);const Ve=e=>{E||J(e.target.value),G==null||G(e)},Y=()=>{var e;p(!1),i||(e=ee.current)==null||e.focus()},ae=()=>{var e;N(""),p(!0),(e=x.current)==null||e.focus()},ue=()=>{!o||!D||(o.onCreate(y),ae())},Ie=e=>{var S;E||J(e);const f=ne.current;if(!f){Y();return}const _=(S=Object.getOwnPropertyDescriptor(HTMLSelectElement.prototype,"value"))==null?void 0:S.set;_==null||_.call(f,e),f.dispatchEvent(new Event("change",{bubbles:!0})),i?ae():Y()},Be=e=>{e.key==="Escape"&&Y(),e.key==="Enter"&&e.target===x.current&&D&&(e.preventDefault(),ue())},de=s.jsxs("div",{className:C(l.dropdown,j==="inline"&&l.inline,j==="minimal"&&l.minimal,c),onKeyDown:Be,ref:te,...xe,"data-component":"dropdown",children:[s.jsx("select",{...je,"aria-hidden":"true",className:C(l.native,ge),onChange:Ve,ref:ne,tabIndex:-1,value:q,children:z.children}),i?s.jsxs("div",{className:l.combobox,onClick:()=>{var e;return(e=x.current)==null?void 0:e.focus()},children:[ve,s.jsx("input",{"aria-autocomplete":"list","aria-expanded":d,"aria-label":u["aria-label"]??b??W,className:l["combobox-input"],disabled:u.disabled,onChange:e=>{N(e.target.value),p(!0)},onClick:()=>p(!0),onFocus:()=>p(!0),placeholder:W||void 0,ref:x,role:"combobox",type:"text",value:R})]}):s.jsx(V.Button,{"aria-expanded":d,"aria-haspopup":"dialog","aria-labelledby":b?`${k} ${k}-value`:void 0,className:C(l.trigger,($==null?void 0:$.isPlaceholder)&&l.placeholder),"data-open":d?"true":void 0,disabled:u.disabled,onClick:()=>p(!d),ref:ee,style:Ne,variant:"simple",children:s.jsx("span",{className:l.text,id:`${k}-value`,children:ce($)})}),d&&s.jsxs("div",{className:l.panel,children:[!i&&s.jsx(fe.Input,{"aria-label":"Filter",className:l.filter,icon:"MagnifyingGlass",onChange:e=>N(e.target.value),placeholder:W,ref:x,style:Se,type:"search",value:R}),s.jsxs(De.List,{"aria-label":"Dropdown","aria-busy":m||void 0,className:l.options,ref:se,children:[U.map(e=>{const f=e.value===q;return s.jsx("li",{"data-component":"dropdown",children:s.jsxs(V.Button,{"aria-label":f?`${e.text}, selected`:e.text,className:C(l.option,f&&l.selected),disabled:e.disabled,onClick:()=>Ie(e.value),variant:"tertiary",children:[s.jsx("span",{className:l.text,children:ce(e)}),e.groupLabel&&s.jsx("small",{className:l.group,children:e.groupLabel})]})},`${e.groupLabel??"root"}-${e.value}`)}),D&&o&&s.jsx("li",{children:s.jsx(V.Button,{"aria-label":L(o.render(y))||y,className:l.option,onClick:ue,variant:"tertiary",children:s.jsx("span",{className:l.text,children:o.render(y)})})}),U.length===0&&!D&&!m&&!a&&!v&&s.jsx("li",{className:l.empty,children:n}),a&&s.jsxs("li",{className:l.empty,children:[s.jsx("span",{role:"alert",children:a}),h&&s.jsx(V.Button,{disabled:m,onClick:h,variant:"tertiary",children:me})]}),m&&s.jsx("li",{"aria-label":"Loading",className:l.empty,role:"status",children:s.jsx(Fe.Loading,{size:"small"})}),v&&g&&!a&&s.jsx("li",{ref:re,children:s.jsx(V.Button,{className:l.option,disabled:m,onClick:X,variant:"tertiary",children:be})})]})]})]});return b?s.jsxs("div",{className:C(l.label,j==="inline"&&l["inline-field"]),"data-component":"dropdown",children:[s.jsx("span",{id:k,children:Ce}),de]}):de};exports.Dropdown=ct;
|
|
2
|
-
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,2 +1 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index42.css');const i=require("react/jsx-runtime"),b=require("classix"),F=require("react"),q=require("../button/index.cjs"),I=require("../icon/index.cjs"),R="_dropzone_1rpsf_1",S="_dragging_1rpsf_19",T="_minimal_1rpsf_23",g={dropzone:R,dragging:S,minimal:T},k=({accepts:D,label:m="Select files",maxFileSize:_,multiple:u=!1,onChange:n,onValidation:a,variant:p="default",...y})=>{const f=F.useRef(null),[x,l]=F.useState(!1),c=e=>{e.preventDefault(),e.stopPropagation()},v=e=>{const t=f.current;if(!t)return;const s=new DataTransfer;for(const r of e)s.items.add(r);t.files=s.files,n==null||n({target:t,currentTarget:t})},z=e=>{const{validFiles:t,emptyFiles:s,oversizedFiles:r}=e.reduce((d,o)=>(o.size===0?d.emptyFiles.push(o):_&&o.size>_?d.oversizedFiles.push(o):d.validFiles.push(o),d),{validFiles:[],emptyFiles:[],oversizedFiles:[]});return(s.length>0||r.length>0)&&(a==null||a(s,r)),t},j=e=>{c(e),l(!1);const t=Array.from(e.dataTransfer.files??[]),s=z(t);if(s.length===0)return;const r=u?s:s.slice(0,1);v(r)},h=e=>{const t=Array.from(e.target.files??[]),s=z(t);if(s.length===t.length){n==null||n(e);return}const r=u?s:s.slice(0,1);v(r)};return i.jsx("div",{className:b(g.dropzone,g[p],x&&g.dragging),onDragEnter:e=>{c(e),l(!0)},onDragOver:e=>{c(e),l(!0)},onDragLeave:e=>{c(e),l(!1)},onDrop:j,...y,"data-component":"dropzone",children:i.jsxs("label",{children:[i.jsx("input",{accept:D,"aria-label":m,hidden:!0,multiple:u,onChange:h,ref:f,type:"file"}),i.jsx(I.Icon,{name:"UploadSimple",size:p==="minimal"?"medium":"large"}),i.jsx("br",{}),p!=="minimal"&&i.jsx(q.Button,{onClick:()=>{var e;return(e=f.current)==null?void 0:e.click()},type:"button",children:m})]})})};exports.Dropzone=k;
|
|
2
|
-
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,2 +1 @@
|
|
|
1
1
|
"use strict";require('../../assets/index43.css');var Ct=Object.defineProperty;var Nt=(u,n,i)=>n in u?Ct(u,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):u[n]=i;var W=(u,n,i)=>Nt(u,typeof n!="symbol"?n+"":n,i);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),vt=require("@lexical/html"),w=require("@lexical/link"),$=require("@lexical/list"),St=require("@lexical/react/LexicalAutoFocusPlugin"),jt=require("@lexical/react/LexicalAutoLinkPlugin"),ft=require("@lexical/react/LexicalComposerContext"),At=require("@lexical/react/LexicalContentEditable"),Et=require("@lexical/react/LexicalErrorBoundary"),Mt=require("@lexical/react/LexicalExtensionComposer"),wt=require("@lexical/react/LexicalHistoryPlugin"),$t=require("@lexical/react/LexicalLinkPlugin"),Tt=require("@lexical/react/LexicalListPlugin"),Ot=require("@lexical/react/LexicalOnChangePlugin"),Rt=require("@lexical/react/LexicalRichTextPlugin"),st=require("classix"),l=require("lexical"),r=require("react"),_t=require("sanitize-html"),Pt=require("../file/index.cjs"),yt=require("@lexical/utils"),I=require("../button/index.cjs"),M=require("../icon/index.cjs"),pt=require("../../index-7blZaPiA.cjs"),qt=require("../toolbar/index.cjs"),Lt=l.createCommand();class nt extends l.DecoratorNode{constructor(i,a,h,g,o,f,x){super(o);W(this,"__src");W(this,"__alt");W(this,"__width");W(this,"__height");W(this,"__soliboDocumentId");W(this,"__soliboDocumentSlot");this.__src=i,this.__alt=a,this.__width=h,this.__height=g,this.__soliboDocumentId=f,this.__soliboDocumentSlot=x}static getType(){return"image"}static clone(i){return new nt(i.__src,i.__alt,i.__width,i.__height,i.__key,i.__soliboDocumentId,i.__soliboDocumentSlot)}static importJSON(i){return at({alt:i.alt,height:i.height,soliboDocumentId:i.soliboDocumentId,soliboDocumentSlot:i.soliboDocumentSlot,src:i.src,width:i.width})}exportJSON(){return{alt:this.__alt,height:this.__height,...this.__soliboDocumentId?{soliboDocumentId:this.__soliboDocumentId}:void 0,...this.__soliboDocumentSlot?{soliboDocumentSlot:this.__soliboDocumentSlot}:void 0,src:this.__src,type:"image",version:1,width:this.__width}}static importDOM(){return{img:i=>({conversion:a=>{if(!(a instanceof HTMLImageElement))return null;const h=a.getAttribute("src")??"";if(!h)return null;const g=a.getAttribute("width"),o=a.getAttribute("height");return{node:at({alt:a.getAttribute("alt")??"",height:o?Number(o):void 0,soliboDocumentId:a.getAttribute("data-solibo-document-id")??void 0,soliboDocumentSlot:a.getAttribute("data-solibo-document-slot")??void 0,src:h,width:g?Number(g):void 0})}},priority:0})}}exportDOM(){const i=document.createElement("img");return this.__soliboDocumentSlot||i.setAttribute("src",this.__src),this.__soliboDocumentId&&i.setAttribute("data-solibo-document-id",this.__soliboDocumentId),this.__soliboDocumentSlot&&i.setAttribute("data-solibo-document-slot",this.__soliboDocumentSlot),this.__alt&&i.setAttribute("alt",this.__alt),this.__width&&i.setAttribute("width",String(this.__width)),this.__height&&i.setAttribute("height",String(this.__height)),{element:i}}createDOM(){return document.createElement("span")}updateDOM(){return!1}isInline(){return!0}getSrc(){return this.__src}setSrc(i){const a=this.getWritable();return a.__src=i,a}setWidth(i){const a=this.getWritable();return a.__width=i,a.__height=void 0,a}decorate(i){return e.jsx("img",{alt:this.__alt,height:this.__height,"data-solibo-document-id":this.__soliboDocumentId,"data-solibo-document-slot":this.__soliboDocumentSlot,onClick:a=>{a.preventDefault(),i.dispatchCommand(Lt,{key:this.getKey(),soliboDocumentSlot:this.__soliboDocumentSlot,src:this.__src,width:this.__width})},src:this.__src,width:this.__width})}}function at({alt:u="",height:n,soliboDocumentId:i,soliboDocumentSlot:a,src:h,width:g}){return l.$applyNodeReplacement(new nt(h,u,g,n,void 0,i,a))}function ht(u){return u instanceof nt}const Bt=({createImages:u})=>{const[n]=ft.useLexicalComposerContext();return r.useEffect(()=>n.registerCommand(l.PASTE_COMMAND,i=>{var o;if(!("clipboardData"in i))return!1;const a=i,h=Array.from(((o=a.clipboardData)==null?void 0:o.items)??[]).flatMap(f=>{if(f.kind!=="file"||!f.type.startsWith("image/"))return[];const x=f.getAsFile();return x?[x]:[]});if(h.length===0)return!1;a.preventDefault();const g=u(h);return n.update(()=>{l.$insertNodes(g.map(f=>at(f)))}),!0},l.COMMAND_PRIORITY_HIGH),[u,n]),null},Ut=/(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))/,Ft=/((https?:\/\/(www\.)?)|(www\.))[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)/,Kt=[u=>{const n=Ut.exec(u);return n!=null&&n.length?{index:n.index,length:n[0].length,text:n[0],url:`mailto:${n[0]}`}:null},u=>{const n=Ft.exec(u);return n!=null&&n.length?{index:n.index,length:n[0].length,text:n[0],url:n[0].startsWith("http")?n[0]:`https://${n[0]}`}:null}];function gt(u){try{const n=new URL(u);return n.protocol==="http:"||n.protocol==="https:"}catch{return!1}}const Wt="_field_csex1_3",Ht="_editor_csex1_8",Gt="_invalid_csex1_42",zt="_error_csex1_46",Zt="_dragging_csex1_52",Vt="_content_csex1_56",Xt="_files_csex1_71",Yt="_placeholder_csex1_79",Jt="_fill_csex1_87",Qt="_meta_csex1_115",te="_active_csex1_124",ee="_submit_csex1_143",ie="_bold_csex1_147",se="_italic_csex1_151",ne="_underline_csex1_155",re="_link_csex1_159",oe="_list_csex1_165",le="_paragraph_csex1_166",_={field:Wt,editor:Ht,invalid:Gt,error:zt,dragging:Zt,content:Vt,"has-files":"_has-files_csex1_67",files:Xt,placeholder:Yt,fill:Jt,"fill-editor":"_fill-editor_csex1_95",meta:Qt,active:te,"image-sizes":"_image-sizes_csex1_136",submit:ee,bold:ie,italic:se,underline:ne,link:re,list:oe,paragraph:le},ae=[{label:"Small",width:320},{label:"Medium",width:640},{label:"Large",width:960},{label:"Original",width:void 0}],ce=({disabled:u=!1,isSubmitting:n=!1,onFilesSelected:i,onInlineImageRemove:a,onSubmit:h,submitLabel:g="Submit"})=>{const[o]=ft.useLexicalComposerContext(),[f,x]=r.useState(!1),[y,rt]=r.useState(!1),[ot,H]=r.useState(!1),[lt,k]=r.useState(!1),[S,b]=r.useState(!1),[O,q]=r.useState(!1),[Y,J]=r.useState(""),[p,Q]=r.useState(null),[G,R]=r.useState(null),[ct,tt]=r.useState(void 0),[B,j]=r.useState(""),A=gt(B.trim()),v=r.useRef(null),T=r.useRef(null),U=r.useRef(null),L=r.useRef(null),z=r.useRef(!1),et=t=>t.preventDefault(),Z=r.useCallback(t=>{L.current=l.$isRangeSelection(t)?t.clone():null},[]),V=r.useCallback(t=>{o.update(()=>{L.current&&l.$setSelection(L.current),t()}),L.current=null},[o]),F=t=>{z.current=!0,t.preventDefault()},s=()=>{if(z.current){z.current=!1;return}dt()},c=r.useCallback(()=>{rt(!1),J(""),Q(null),R(null),tt(void 0)},[]),d=r.useCallback(()=>{b(!1),j("")},[]),C=r.useCallback(t=>{rt(!0),J((t==null?void 0:t.src)??""),Q((t==null?void 0:t.key)??null),R((t==null?void 0:t.soliboDocumentSlot)??null),tt(t==null?void 0:t.width),d(),t!=null&&t.soliboDocumentSlot||setTimeout(()=>{var m;return(m=T.current)==null?void 0:m.focus()},0)},[d]),it=r.useCallback(t=>{o.getEditorState().read(()=>{Z(l.$getSelection())}),b(!0),j(t),c(),setTimeout(()=>{var m;return(m=U.current)==null?void 0:m.focus()},0)},[c,o,Z]),ut=r.useCallback(()=>{const t=B.trim();gt(t)&&(V(()=>{o.dispatchCommand(w.TOGGLE_LINK_COMMAND,{url:t,target:"_blank"});const m=l.$getSelection();if(!l.$isRangeSelection(m))return;const E=m.getNodes().at(-1)??null,K=(E==null?void 0:E.getParent())??null,D=w.$isLinkNode(E)?E:w.$isLinkNode(K)?K:null;if(D){const P=D.getLastChild();if(l.$isTextNode(P)){const xt=P.getTextContent(),bt=xt.replace(/\s+$/,"");bt!==xt&&P.setTextContent(bt)}const X=D.getNextSibling();if(l.$isTextNode(X)&&/^\s/.test(X.getTextContent())){X.select(1,1);return}const N=l.$createTextNode(" ");D.insertAfter(N),N.selectEnd()}}),d())},[d,o,B,V]),dt=r.useCallback(()=>{const t=Y.trim();if(!t){c();return}o.update(()=>{if(p){const m=l.$getNodeByKey(p);ht(m)&&m.setSrc(t);return}l.$insertNodes([at({src:t})])}),c()},[c,o,p,Y]),Dt=r.useCallback(()=>{if(!p){c();return}o.update(()=>{const t=l.$getNodeByKey(p);if(ht(t)){const m=t.getParent();l.$isParagraphNode(m)&&m.getChildrenSize()===1?m.remove():t.remove(),G&&(a==null||a(G))}}),c()},[c,o,p,G,a]),It=r.useCallback(t=>{p&&(o.update(()=>{const m=l.$getNodeByKey(p);ht(m)&&m.setWidth(t)}),tt(t))},[o,p]),kt=r.useCallback(()=>{V(()=>{o.dispatchCommand(w.TOGGLE_LINK_COMMAND,null)}),d()},[d,o,V]),mt=r.useCallback(()=>{const t=l.$getSelection();if(!l.$isRangeSelection(t)){if(l.$isNodeSelection(t)){const K=t.getNodes(),D=K[0]??null,P=(D==null?void 0:D.getParent())??null;x(K.some(N=>l.$isTextNode(N)&&N.hasFormat("bold"))),H(K.some(N=>l.$isTextNode(N)&&N.hasFormat("italic"))),k(K.some(N=>l.$isTextNode(N)&&N.hasFormat("underline"))),q($.$isListNode(P)||$.$isListItemNode(P)||$.$isListNode(D)||$.$isListItemNode(D));const X=w.$isLinkNode(D)?D:w.$isLinkNode(P)?P:null;if(X){b(!0),j(X.getURL());return}b(!1),j(""),L.current=null;return}x(!1),H(!1),k(!1),q(!1),b(!1),j(""),L.current=null;return}const[m]=t.getNodes(),E=(m==null?void 0:m.getParent())??null;if(x(t.hasFormat("bold")),H(t.hasFormat("italic")),k(t.hasFormat("underline")),q($.$isListNode(E)||$.$isListItemNode(E)),w.$isLinkNode(E)){b(!0),j(E.getURL()),Z(t);return}b(!1),j(""),L.current=null},[Z]);return r.useEffect(()=>yt.mergeRegister(o.registerUpdateListener(({editorState:t})=>{t.read(()=>{mt()})}),o.registerCommand(Lt,t=>(C(t),!0),l.COMMAND_PRIORITY_LOW),o.registerCommand(l.SELECTION_CHANGE_COMMAND,()=>(o.getEditorState().read(()=>{mt()}),!1),l.COMMAND_PRIORITY_LOW)),[o,C,mt]),e.jsxs(qt.Toolbar,{variant:"editor","data-component":"editortoolbar",children:[e.jsx(I.Button,{"aria-label":"Bold","data-active":f,onClick:()=>{o.dispatchCommand(l.FORMAT_TEXT_COMMAND,"bold")},title:"Bold",variant:"tertiary",children:e.jsx(M.Icon,{name:"TextB"})}),e.jsx(I.Button,{"aria-label":"Italic","data-active":ot,onClick:()=>{o.dispatchCommand(l.FORMAT_TEXT_COMMAND,"italic")},title:"Italic",variant:"tertiary",children:e.jsx(M.Icon,{name:"TextItalic"})}),e.jsx(I.Button,{"aria-label":"Underline","data-active":lt,onClick:()=>{o.dispatchCommand(l.FORMAT_TEXT_COMMAND,"underline")},title:"Underline",variant:"tertiary",children:e.jsx(M.Icon,{name:"TextUnderline"})}),e.jsx(I.Button,{"aria-label":"List","data-active":O,onClick:()=>{O?o.dispatchCommand($.REMOVE_LIST_COMMAND,void 0):o.dispatchCommand($.INSERT_UNORDERED_LIST_COMMAND,void 0)},title:"List",variant:"tertiary",children:e.jsx(M.Icon,{name:"ListBullets"})}),e.jsx(I.Button,{"aria-label":"Link","data-active":S,onClick:()=>{S?it(B):(o.dispatchCommand(w.TOGGLE_LINK_COMMAND,{url:"https://"}),it("https://"))},title:"Link",variant:"tertiary",children:e.jsx(M.Icon,{name:"Link"})}),i&&e.jsxs(e.Fragment,{children:[e.jsx("input",{hidden:!0,multiple:!0,onChange:t=>{t.target.files&&i(t.target.files),t.target.value=""},ref:v,type:"file"}),e.jsx(I.Button,{"aria-label":"Upload files",onClick:()=>{var t;return(t=v.current)==null?void 0:t.click()},title:"Upload files",variant:"tertiary",children:e.jsx(M.Icon,{name:"Paperclip"})})]}),h&&e.jsx(I.Button,{"aria-label":g,className:_.submit,"data-cy":"toolbar-submit-button",disabled:u,icon:"PaperPlaneTilt",isLoading:n,onClick:()=>h(),variant:"primary",children:e.jsx("span",{children:g})}),e.jsxs("div",{className:st(_.meta,S||y?_.active:""),children:[S&&e.jsxs(e.Fragment,{children:[e.jsx(pt.Input,{"aria-invalid":!A,onBlur:()=>ut(),onChange:t=>j(t.target.value),onKeyDown:t=>{t.key==="Enter"&&(t.preventDefault(),ut())},ref:U,value:B}),e.jsx(I.Button,{"aria-label":"Apply link",disabled:!A,onClick:()=>{ut()},onMouseDown:et,variant:"tertiary",children:e.jsx(M.Icon,{name:"Check"})}),e.jsx(I.Button,{"aria-label":"Remove link",onClick:()=>kt(),onMouseDown:et,variant:"tertiary",children:e.jsx(M.Icon,{name:"Trash",variant:"danger"})})]}),y&&e.jsxs(e.Fragment,{children:[!G&&e.jsxs(e.Fragment,{children:[e.jsx(pt.Input,{className:st(_.active),onBlur:s,onChange:t=>J(t.target.value),onKeyDown:t=>{t.key==="Enter"&&(t.preventDefault(),z.current=!0,dt())},ref:T,value:Y}),e.jsx(I.Button,{"aria-label":"Apply image",onClick:()=>dt(),onMouseDown:F,variant:"tertiary",children:e.jsx(M.Icon,{name:"Check"})})]}),e.jsx("div",{className:_["image-sizes"],children:ae.map(({label:t,width:m})=>e.jsx(I.Button,{"aria-label":`${t} image`,"data-active":ct===m,onClick:()=>It(m),onMouseDown:et,variant:"tertiary",children:t},t))}),e.jsx(I.Button,{"aria-label":"Remove image",onClick:()=>Dt(),onMouseDown:F,variant:"tertiary",children:e.jsx(M.Icon,{name:"Trash",variant:"danger"})})]})]})]})},ue=l.defineExtension({name:"solibo-editor",namespace:"Editor",nodes:[w.AutoLinkNode,w.LinkNode,$.ListNode,$.ListItemNode,nt],onError(u){throw u},theme:{link:_.link,list:{ol:_.list,ul:_.list},paragraph:_.paragraph,text:{bold:_.bold,italic:_.italic,underline:_.underline}}});function de({autofocus:u,content:n="",lastEmittedContentRef:i}){const[a]=ft.useLexicalComposerContext();return r.useEffect(()=>{i.current!==n&&a.update(()=>{const g=new DOMParser().parseFromString(n,"text/html"),o=vt.$generateNodesFromDOM(a,g),f=l.$getRoot();f.clear().select(),l.$insertNodes(o),u?f.selectEnd():l.$setSelection(null)})},[u,n,a,i]),null}const me=({autofocus:u=!1,autolink:n=!1,content:i,disabled:a=!1,errorMessage:h,fill:g=!1,files:o,inline:f=!1,inlineImages:x,invalid:y=!1,isSubmitting:rt=!1,maxRows:ot=12,minRows:H=1,onChange:lt,onFilesChange:k,onInlineImagesChange:S,onSubmit:b,onUpload:O,placeholder:q,required:Y=!1,submitLabel:J})=>{const p=r.useId(),Q=r.useRef(void 0),[G,R]=r.useState(!1),[ct,tt]=r.useState([]),[B,j]=r.useState([]),A=r.useRef(new Map),v=o??ct,T=x??B,U=s=>{o===void 0&&tt(s),k==null||k(s)},L=r.useCallback(s=>{x===void 0&&j(s),S==null||S(s)},[x,S]),z=r.useCallback(s=>{const c=s.map(d=>{const C=`pasted-${crypto.randomUUID()}`,it=URL.createObjectURL(d);return A.current.set(C,it),{image:{alt:d.name,soliboDocumentSlot:C,src:it},pending:{file:d,slot:C}}});return L([...T,...c.map(({pending:d})=>d)]),c.map(({image:d})=>d)},[T,L]),et=r.useCallback(s=>{L(T.filter(d=>d.slot!==s));const c=A.current.get(s);c&&URL.revokeObjectURL(c),A.current.delete(s)},[T,L]);r.useEffect(()=>()=>{A.current.forEach(s=>URL.revokeObjectURL(s)),A.current.clear()},[]),r.useEffect(()=>{const s=new Set(T.map(c=>c.slot));A.current.forEach((c,d)=>{s.has(d)||(URL.revokeObjectURL(c),A.current.delete(d))})},[T]);const Z=s=>{if(typeof DataTransfer<"u"){const c=new DataTransfer;return s.forEach(d=>c.items.add(d)),c.files}return Object.assign([...s],{item:c=>s[c]??null})},V=async()=>{try{v.length>0&&await(O==null?void 0:O(Z(v))),await(b==null?void 0:b()),v.length>0&&U([])}catch{return}},F=s=>{s.preventDefault(),s.stopPropagation()};return e.jsxs("div",{className:st(_.field,g&&_.fill),"data-max-rows":ot,"data-min-rows":H,onDragEnter:s=>{F(s),R(!!k)},onDragOver:s=>{F(s),R(!!k)},onDragLeave:s=>{F(s),R(!1)},onDropCapture:s=>{var d;const c=(d=s.dataTransfer)==null?void 0:d.files;c!=null&&c.length&&(F(s),(k||O)&&U([...v,...Array.from(c)]),R(!1))},onDrop:s=>{s.preventDefault(),R(!1)},"data-component":"editor",children:[e.jsx("div",{className:st(_.editor,g&&_["fill-editor"],y&&_.invalid,v.length>0&&_["has-files"]),style:{"--editor-max-height":`calc(${ot*1.25}em + (2 * var(--scale-8)))`,"--editor-min-height":`calc(${H*1.25}em + (2 * var(--scale-8)))`},children:e.jsxs(Mt.LexicalExtensionComposer,{contentEditable:null,extension:ue,children:[!f&&e.jsx(ce,{disabled:a,isSubmitting:rt,onInlineImageRemove:et,onFilesSelected:O||k?s=>{U([...v,...Array.from(s)])}:void 0,onSubmit:b?()=>void V():void 0,submitLabel:J}),e.jsx("div",{className:st(_.content,G&&_.dragging),children:e.jsx(Rt.RichTextPlugin,{contentEditable:e.jsx(At.ContentEditable,{"aria-placeholder":q??"",ariaErrorMessage:y&&h?p:void 0,ariaInvalid:y||void 0,ariaRequired:Y||void 0,placeholder:()=>q?e.jsx("div",{className:_.placeholder,children:q}):null}),ErrorBoundary:Et.LexicalErrorBoundary})}),v.length>0&&e.jsx("div",{"aria-label":"Files to upload",className:_.files,role:"region",children:v.map((s,c)=>e.jsx(Pt.File,{deleteAccessibleLabel:`Remove ${s.name} from upload queue`,name:s.name,onDelete:()=>U(v.filter((d,C)=>C!==c))},`${s.name}-${s.size}-${s.lastModified}-${c}`))}),u&&e.jsx(St.AutoFocusPlugin,{}),n&&e.jsx(jt.AutoLinkPlugin,{matchers:Kt}),e.jsx(wt.HistoryPlugin,{}),S&&e.jsx(Bt,{createImages:z}),i!==void 0&&e.jsx(de,{autofocus:u,content:i,lastEmittedContentRef:Q}),e.jsx($t.LinkPlugin,{validateUrl:gt}),e.jsx(Tt.ListPlugin,{}),lt&&e.jsx(Ot.OnChangePlugin,{onChange:(s,c)=>{s.read(()=>{const d=vt.$generateHtmlFromNodes(c,null),C=_t(d,{allowedAttributes:{..._t.defaults.allowedAttributes,img:[..._t.defaults.allowedAttributes.img??[],"data-solibo-document-id","data-solibo-document-slot"]},allowedTags:["a","b","br","i","img","li","ol","p","u","ul"]});Q.current=C,lt(C)})}})]})}),y&&h&&e.jsx("div",{className:_.error,id:p,children:h})]})};exports.Editor=me;
|
|
2
|
-
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,2 +1 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index44.css');const e=require("react/jsx-runtime"),c=require("../icon/index.cjs"),m="_header_1nfk9_14",s={"empty-state":"_empty-state_1nfk9_3",header:m},i=({button:n,content:a,header:r,icon:t})=>e.jsxs("div",{className:s["empty-state"],"data-component":"emptystate",children:[e.jsxs("p",{className:s.header,children:[t&&e.jsx(c.Icon,{gap:"right",name:t,size:"medium"}),r]}),e.jsx("p",{children:a}),n]});exports.EmptyState=i;
|
|
2
|
-
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,2 +1 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index45.css');const s=require("react/jsx-runtime"),i=require("classix"),l="_fieldset_109id_1",d={fieldset:l},o=({className:e,...t})=>s.jsx("fieldset",{className:i(d.fieldset,e),...t,"data-component":"fieldset"});exports.Fieldset=o;
|
|
2
|
-
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index46.css');const
|
|
2
|
-
//# sourceMappingURL=index.cjs.map
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index46.css');const s=require("react/jsx-runtime"),n=require("classix"),c="_figure_8kovu_1",v="_preview_8kovu_20",d="_reserved_8kovu_43",e={figure:c,preview:v,reserved:d},g=({accessibleLabel:r,children:t,className:o,reserveSpace:u=!1,variant:i="default"})=>s.jsxs("figure",{className:n(e.figure,i==="preview"&&e.preview,i==="preview"&&u&&e.reserved,o),"data-component":"figure",children:[t,r&&s.jsx("figcaption",{"data-content":"screen-reader",children:r})]});exports.Figure=g;
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { jsxs as n, jsx as
|
|
2
|
-
import
|
|
3
|
-
import '../../assets/index46.css';const p = "
|
|
4
|
-
figure:
|
|
5
|
-
preview:
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
i
|
|
13
|
-
|
|
1
|
+
import { jsxs as n, jsx as v } from "react/jsx-runtime";
|
|
2
|
+
import c from "classix";
|
|
3
|
+
import '../../assets/index46.css';const f = "_figure_8kovu_1", p = "_preview_8kovu_20", u = "_reserved_8kovu_43", e = {
|
|
4
|
+
figure: f,
|
|
5
|
+
preview: p,
|
|
6
|
+
reserved: u
|
|
7
|
+
}, g = ({
|
|
8
|
+
accessibleLabel: r,
|
|
9
|
+
children: o,
|
|
10
|
+
className: s,
|
|
11
|
+
reserveSpace: t = !1,
|
|
12
|
+
variant: i = "default"
|
|
13
|
+
}) => /* @__PURE__ */ n("figure", { className: c(e.figure, i === "preview" && e.preview, i === "preview" && t && e.reserved, s), "data-component": "figure", children: [
|
|
14
|
+
o,
|
|
15
|
+
r && /* @__PURE__ */ v("figcaption", { "data-content": "screen-reader", children: r })
|
|
14
16
|
] });
|
|
15
17
|
export {
|
|
16
|
-
|
|
18
|
+
g as Figure
|
|
17
19
|
};
|
|
18
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index47.css');const e=require("react/jsx-runtime"),j=require("../figure/index.cjs"),x=require("../icon/index.cjs"),f=require("../button/index.cjs"),N="_file_1uuq9_1",q="_action_1uuq9_14",F="_details_1uuq9_61",b="_name_1uuq9_68",g="_extension_1uuq9_80",I="_subtitle_1uuq9_90",s={file:N,action:q,delete:"_delete_1uuq9_15",details:F,"name-line":"_name-line_1uuq9_68",name:b,extension:g,subtitle:I},P={".doc":"FileDoc",".docx":"FileDoc",".pdf":"FilePdf",".ppt":"FilePpt",".pptx":"FilePpt",".xls":"FileXls",".xlsx":"FileXls"},y=({deleteAccessibleLabel:_,name:t,onClick:n,onDelete:o,ref:p,subtitle:r,url:u})=>{const i=t.lastIndexOf("."),d=i>0&&i<t.length-1,m=d?t.slice(0,i):t,a=d?t.slice(i):"",h=P[a.toLowerCase()]??"FileText",c=e.jsxs(e.Fragment,{children:[e.jsx(j.Figure,{children:e.jsx(x.Icon,{name:h})}),e.jsxs("span",{className:s.details,children:[e.jsxs("span",{className:s["name-line"],children:[e.jsx("span",{className:s.name,children:m}),a&&e.jsx("span",{className:s.extension,children:a})]}),r&&e.jsx("span",{className:s.subtitle,children:r})]})]});return e.jsxs("div",{className:s.file,ref:p,"data-component":"file",children:[u?e.jsx("a",{className:s.action,href:u,onClick:l=>{l.stopPropagation(),n&&(l.preventDefault(),n())},title:t,children:c}):n?e.jsx("button",{"aria-label":t,className:s.action,"data-actionable":"true","data-print-content":!0,onClick:l=>{l.stopPropagation(),n()},title:t,type:"button",children:c}):e.jsx("div",{className:s.action,title:t,children:c}),o&&e.jsx(f.Button,{"aria-label":_??`Delete ${t}`,className:s.delete,onClick:()=>o(),variant:"tertiary",children:e.jsx(x.Icon,{name:"Trash",size:"small"})})]})};exports.File=y;
|
|
2
|
-
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,2 +1 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index48.css');const c=require("react/jsx-runtime"),a=require("classix"),u="_footer_8tfam_1",m="_columns_8tfam_5",t={footer:u,columns:m},l=({animation:e,children:o,className:n,variant:s="default",...r})=>c.jsx("footer",{className:a(t.footer,s==="columns"&&t.columns,n),"data-animation":e,...r,"data-component":"footer",children:o&&o});exports.Footer=l;
|
|
2
|
-
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,2 +1 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index23.css');const l=require("react/jsx-runtime"),n=require("classix"),m="_form_11zqf_1",i="_fill_11zqf_30",t={form:m,fill:i},a=({animation:r,children:o,className:e,fill:s=!1,...f})=>l.jsx("form",{className:n(e,s&&t.fill,t.form),"data-animation":r,...f,"data-component":"form",children:o&&o});exports.Form=a;
|
|
2
|
-
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,2 +1 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index22.css');const a=require("react/jsx-runtime"),b=require("classix"),j=require("../loading/index.cjs"),q="_graph_plhqd_11",v="_plot_plhqd_20",N="_item_plhqd_34",y="_column_plhqd_40",f="_value_plhqd_48",k="_track_plhqd_58",M="_bar_plhqd_65",V="_label_plhqd_87",l={graph:q,plot:v,item:N,column:y,value:f,track:k,bar:M,label:V,"is-loading":"_is-loading_plhqd_96"},h=s=>Number.isFinite(s)?Math.max(0,s):0,S=({accessibleLabel:s,className:i,height:r,items:n=[],style:p,valueFormatter:d=t=>t.toLocaleString(),...u})=>{const t=n.reduce((e,c)=>Math.max(e,h(c.value)),0),_={...p,"--graph-columns":Math.max(n.length,1),"--graph-height":r||"calc(var(--utils-tokens-unit) * 16)"};return a.jsxs("figure",{className:b(l.graph,i),style:_,...u,"data-component":"graph",children:[s&&a.jsx("figcaption",{"data-content":"screen-reader",children:s}),n.length>0?a.jsx("ul",{className:l.plot,children:n.map((e,c)=>{const o=h(e.value),m=t>0?o/t*100:0,g=o>0?Math.max(m,6):0,x={"--bar-color":e.color,"--bar-delay":c*50+"ms","--bar-height":g+"%"};return a.jsxs("li",{className:l.item,"data-component":"graph",children:[a.jsxs("div",{className:l.column,children:[a.jsx("span",{className:l.value,children:d(e.value)}),a.jsx("span",{className:l.track,children:a.jsx("span",{className:l.bar,style:x})})]}),a.jsx("span",{className:l.label,title:e.label,children:e.label})]},e.label+c)})}):a.jsx("div",{className:l["is-loading"],children:a.jsx(j.Loading,{})})]})};exports.Graph=S;
|
|
2
|
-
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,2 +1 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index21.css');const g=require("react/jsx-runtime"),j=require("classix"),m="_row_13j4j_1",u="_stack_13j4j_2",f="_between_13j4j_19",w="_end_13j4j_23",b="_fields_13j4j_27",s={row:m,stack:u,between:f,end:w,fields:b},v={none:"0",small:"var(--shape-spacing-xs)",medium:"var(--shape-spacing-sm)",large:"var(--shape-spacing-md)"},x={start:"flex-start",center:"center",end:"flex-end"},k=({animation:a,align:t,children:r,className:o,constrainFields:c=!1,gap:d="none",justify:n,layout:e,style:i,stackOnMobile:l=!1,...p})=>{const _={...i,"--group-align":t?x[t]:e==="stack"?"stretch":"center","--group-gap":v[d]};return g.jsx("div",{className:j(o,e&&s[e],n&&s[n],c&&s.fields),"data-stack-on-mobile":l||void 0,"data-animation":a,"data-wrapper":!0,style:_,...p,"data-component":"group",children:r})};exports.Group=k;
|
|
2
|
-
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,2 +1 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index20.css');const t=require("react/jsx-runtime"),l=require("classix"),m="_header_tbj7k_1",p="_controls_tbj7k_58",v="_cta_tbj7k_85",k="_sized_tbj7k_135",g="_details_tbj7k_139",x="_description_tbj7k_146",f="_warning_tbj7k_154",N="_value_tbj7k_159",y="_jumbo_tbj7k_164",w="_inset_tbj7k_174",z="_panel_tbj7k_178",e={header:m,controls:p,cta:v,"header-content":"_header-content_tbj7k_97",sized:k,details:g,description:x,warning:f,value:N,jumbo:y,inset:w,panel:z},q={default:e.default,jumbo:e.jumbo,panel:e.panel},H=({backButton:i,capitalize:d=!1,children:_,controls:a,details:n,cta:c,header:j,inset:h=!1,size:s,subHeader:u,variant:b="default"})=>{const o=t.jsxs("div",{className:e["header-content"],children:[i,j,u,n&&t.jsxs("div",{className:e.details,children:[t.jsx("div",{className:l(e.description,n.tone==="warning"&&e.warning),children:n.description}),n.value!=null&&t.jsx("strong",{className:e.value,children:n.value})]})]}),r=a?t.jsxs("div",{className:e.controls,children:[o,a]}):o;return t.jsxs("header",{className:l(e.header,q[b],d&&e.capitalize,h&&e.inset,s&&e.sized),style:s?{"--header-heading-size":`var(--typography-font-sizes-${s==="label"?"label-lg":s})`}:void 0,"data-component":"header",children:[c?t.jsxs("div",{className:e.cta,children:[r,c]}):r,_]})};exports.Header=H;
|
|
2
|
-
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,2 +1 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index49.css');const c=require("react/jsx-runtime"),r=require("classix"),l=require("../../icons-BIdcCH-v.cjs"),_="_icon_23h6o_1",m="_large_23h6o_10",g="_medium_23h6o_15",d="_small_23h6o_20",u="_tiny_23h6o_25",h="_danger_23h6o_30",n={icon:_,large:m,medium:g,small:d,tiny:u,danger:h,"gap-right":"_gap-right_23h6o_34","gap-left":"_gap-left_23h6o_38"},y={large:n.large,medium:n.medium,small:n.small,tiny:n.tiny},p={danger:n.danger},S=({gap:e="none",name:t,size:s="medium",variant:o,weight:i})=>{const a={maskImage:l.iconSVG(t,void 0,i)};return c.jsx("span",{"aria-hidden":"true",className:r(e!=="none"&&n[`gap-${e}`],y[s],n.icon,o&&p[o]),style:a,"data-component":"icon"})};exports.Icon=S;
|
|
2
|
-
//# sourceMappingURL=index.cjs.map
|