@adam-milo/ui 1.0.102 → 1.0.104
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/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/index10.cjs +1 -1
- package/dist/index10.js +1 -1
- package/dist/index100.cjs +1 -1
- package/dist/index100.js +1 -1
- package/dist/index101.cjs +1 -1
- package/dist/index101.js +1 -1
- package/dist/index102.cjs +1 -1
- package/dist/index102.js +1 -1
- package/dist/index103.cjs +1 -1
- package/dist/index103.js +1 -1
- package/dist/index104.cjs +1 -1
- package/dist/index104.js +1 -1
- package/dist/index105.cjs +1 -1
- package/dist/index105.js +5 -3
- package/dist/index106.cjs +1 -1
- package/dist/index106.js +1 -2
- package/dist/index107.cjs +1 -1
- package/dist/index107.js +1 -1
- package/dist/index108.cjs +1 -1
- package/dist/index108.js +3 -1
- package/dist/index109.cjs +1 -1
- package/dist/index109.js +2 -1
- package/dist/index11.cjs +1 -1
- package/dist/index11.js +1 -1
- package/dist/index110.cjs +1 -1
- package/dist/index110.js +1 -1
- package/dist/index111.cjs +1 -1
- package/dist/index111.js +1 -1
- package/dist/index112.cjs +1 -1
- package/dist/index112.js +1 -1
- package/dist/index113.cjs +1 -1
- package/dist/index113.js +1 -1
- package/dist/index114.cjs +1 -1
- package/dist/index114.js +1 -1
- package/dist/index115.cjs +1 -1
- package/dist/index115.js +1 -5
- package/dist/index116.cjs +1 -1
- package/dist/index116.js +1 -3
- package/dist/index117.cjs +1 -1
- package/dist/index117.js +1 -1
- package/dist/index118.cjs +1 -1
- package/dist/index118.js +3 -1
- package/dist/index119.cjs +1 -1
- package/dist/index119.js +1 -4
- package/dist/index12.cjs +1 -1
- package/dist/index12.js +1 -1
- package/dist/index120.cjs +1 -1
- package/dist/index120.js +1 -1
- package/dist/index121.cjs +1 -1
- package/dist/index121.js +4 -2
- package/dist/index122.cjs +1 -1
- package/dist/index122.js +1 -1
- package/dist/index123.cjs +1 -1
- package/dist/index123.js +2 -1
- package/dist/index124.cjs +1 -1
- package/dist/index124.js +1 -1
- package/dist/index125.cjs +1 -1
- package/dist/index125.js +1 -1
- package/dist/index126.cjs +1 -1
- package/dist/index126.js +1 -1
- package/dist/index127.cjs +1 -0
- package/dist/index127.js +1 -0
- package/dist/index128.cjs +1 -0
- package/dist/index128.js +1 -0
- package/dist/index13.cjs +1 -1
- package/dist/index13.js +1 -1
- package/dist/index14.cjs +1 -1
- package/dist/index14.js +1 -1
- package/dist/index15.cjs +1 -1
- package/dist/index15.js +1 -1
- package/dist/index16.cjs +1 -1
- package/dist/index16.js +1 -1
- package/dist/index17.cjs +1 -1
- package/dist/index17.js +3 -3
- package/dist/index18.cjs +1 -1
- package/dist/index18.js +1 -1
- package/dist/index19.cjs +1 -1
- package/dist/index19.js +1 -1
- package/dist/index20.cjs +1 -1
- package/dist/index20.js +1 -1
- package/dist/index21.cjs +1 -1
- package/dist/index21.js +1 -1
- package/dist/index22.cjs +1 -1
- package/dist/index22.js +1 -1
- package/dist/index23.cjs +1 -1
- package/dist/index23.js +1 -1
- package/dist/index24.cjs +1 -1
- package/dist/index24.js +1 -1
- package/dist/index25.cjs +1 -1
- package/dist/index25.js +1 -1
- package/dist/index26.cjs +1 -1
- package/dist/index26.js +1 -1
- package/dist/index27.cjs +1 -1
- package/dist/index27.js +1 -1
- package/dist/index28.cjs +1 -1
- package/dist/index28.js +1 -1
- package/dist/index3.cjs +1 -1
- package/dist/index3.js +1 -1
- package/dist/index32.cjs +1 -1
- package/dist/index32.js +1 -1
- package/dist/index33.cjs +1 -1
- package/dist/index33.js +4 -4
- package/dist/index34.cjs +1 -1
- package/dist/index34.js +1 -1
- package/dist/index35.cjs +1 -1
- package/dist/index35.js +1 -1
- package/dist/index36.cjs +1 -1
- package/dist/index36.js +4 -4
- package/dist/index37.cjs +1 -1
- package/dist/index37.js +8 -6
- package/dist/index38.cjs +1 -1
- package/dist/index38.js +1 -1
- package/dist/index39.cjs +1 -1
- package/dist/index39.js +9 -9
- package/dist/index4.cjs +1 -1
- package/dist/index4.js +2 -2
- package/dist/index40.cjs +1 -1
- package/dist/index40.js +1 -1
- package/dist/index41.cjs +1 -1
- package/dist/index41.js +1 -1
- package/dist/index42.cjs +1 -1
- package/dist/index42.js +1 -1
- package/dist/index43.cjs +1 -1
- package/dist/index43.js +1 -1
- package/dist/index44.cjs +1 -1
- package/dist/index44.js +1 -1
- package/dist/index45.cjs +1 -1
- package/dist/index45.js +1 -1
- package/dist/index46.cjs +1 -1
- package/dist/index46.js +1 -1
- package/dist/index47.cjs +1 -1
- package/dist/index47.js +1 -1
- package/dist/index48.cjs +1 -1
- package/dist/index48.js +4 -5
- package/dist/index49.cjs +1 -1
- package/dist/index49.js +2 -3
- package/dist/index5.cjs +1 -1
- package/dist/index5.js +2 -2
- package/dist/index50.cjs +1 -1
- package/dist/index50.js +3 -2
- package/dist/index51.cjs +1 -1
- package/dist/index51.js +2 -2
- package/dist/index52.cjs +1 -1
- package/dist/index52.js +2 -2
- package/dist/index53.cjs +1 -1
- package/dist/index53.js +2 -2
- package/dist/index54.cjs +1 -1
- package/dist/index54.js +2 -10
- package/dist/index55.cjs +1 -1
- package/dist/index55.js +10 -11
- package/dist/index56.cjs +1 -1
- package/dist/index56.js +11 -1
- package/dist/index57.cjs +1 -1
- package/dist/index57.js +1 -1
- package/dist/index58.cjs +1 -1
- package/dist/index58.js +1 -1
- package/dist/index59.cjs +1 -1
- package/dist/index59.js +1 -1
- package/dist/index6.cjs +1 -1
- package/dist/index6.js +1 -1
- package/dist/index60.cjs +1 -1
- package/dist/index60.js +1 -1
- package/dist/index61.cjs +1 -1
- package/dist/index61.js +1 -1
- package/dist/index62.cjs +1 -1
- package/dist/index62.js +1 -1
- package/dist/index63.cjs +1 -1
- package/dist/index63.js +1 -9
- package/dist/index64.cjs +1 -1
- package/dist/index64.js +9 -1
- package/dist/index65.cjs +1 -1
- package/dist/index65.js +1 -1
- package/dist/index66.cjs +1 -1
- package/dist/index66.js +1 -1
- package/dist/index67.cjs +1 -1
- package/dist/index67.js +1 -1
- package/dist/index68.cjs +1 -1
- package/dist/index68.js +1 -1
- package/dist/index69.cjs +1 -1
- package/dist/index69.js +1 -1
- package/dist/index7.cjs +1 -1
- package/dist/index7.js +1 -1
- package/dist/index70.cjs +1 -1
- package/dist/index70.js +1 -1
- package/dist/index71.cjs +1 -1
- package/dist/index71.js +1 -1
- package/dist/index72.cjs +1 -1
- package/dist/index72.js +1 -7
- package/dist/index73.cjs +1 -1
- package/dist/index73.js +7 -1
- package/dist/index74.cjs +1 -1
- package/dist/index74.js +1 -1
- package/dist/index75.cjs +1 -1
- package/dist/index75.js +1 -1
- package/dist/index76.cjs +1 -1
- package/dist/index76.js +1 -1
- package/dist/index77.cjs +1 -1
- package/dist/index77.js +1 -1
- package/dist/index78.cjs +1 -1
- package/dist/index78.js +1 -1
- package/dist/index79.cjs +1 -1
- package/dist/index79.js +1 -1
- package/dist/index8.cjs +1 -1
- package/dist/index8.js +3 -3
- package/dist/index80.cjs +1 -1
- package/dist/index80.js +1 -1
- package/dist/index81.cjs +1 -1
- package/dist/index81.js +1 -1
- package/dist/index82.cjs +1 -1
- package/dist/index82.js +1 -10
- package/dist/index83.cjs +1 -1
- package/dist/index83.js +10 -1
- package/dist/index84.cjs +1 -1
- package/dist/index84.js +1 -1
- package/dist/index85.cjs +1 -1
- package/dist/index85.js +1 -1
- package/dist/index86.cjs +1 -1
- package/dist/index86.js +1 -1
- package/dist/index87.cjs +1 -1
- package/dist/index87.js +1 -1
- package/dist/index88.cjs +1 -1
- package/dist/index88.js +1 -1
- package/dist/index89.cjs +1 -1
- package/dist/index89.js +1 -1
- package/dist/index9.cjs +1 -1
- package/dist/index9.js +1 -1
- package/dist/index90.cjs +1 -1
- package/dist/index90.js +1 -1
- package/dist/index91.cjs +1 -1
- package/dist/index91.js +1 -1
- package/dist/index92.cjs +1 -1
- package/dist/index92.js +1 -1
- package/dist/index93.cjs +1 -1
- package/dist/index93.js +1 -1
- package/dist/index94.cjs +1 -1
- package/dist/index94.js +1 -1
- package/dist/index95.cjs +1 -1
- package/dist/index95.js +1 -1
- package/dist/index96.cjs +1 -1
- package/dist/index96.js +1 -1
- package/dist/index97.cjs +1 -1
- package/dist/index97.js +1 -1
- package/dist/index98.cjs +1 -1
- package/dist/index98.js +1 -1
- package/dist/index99.cjs +1 -1
- package/dist/index99.js +1 -1
- package/dist/src/components/core/button/Button.styles.d.ts.map +1 -1
- package/dist/src/components/core/menu-icon-button/MenuIconButton.component.d.ts.map +1 -1
- package/dist/src/components/data-display/datatable/DataTable.component.d.ts.map +1 -1
- package/dist/src/components/data-display/datatable/DataTable.styles.d.ts +4 -2
- package/dist/src/components/data-display/datatable/DataTable.styles.d.ts.map +1 -1
- package/dist/src/components/data-display/datatable/DataTable.types.d.ts +2 -0
- package/dist/src/components/data-display/datatable/DataTable.types.d.ts.map +1 -1
- package/dist/src/components/feedback/alert/Alert.component.d.ts.map +1 -1
- package/dist/src/components/feedback/toast/Toast.component.d.ts.map +1 -1
- package/dist/src/components/feedback/toast/Toast.styles.d.ts +3 -3
- package/dist/src/components/feedback/toast/Toast.styles.d.ts.map +1 -1
- package/dist/src/components/forms/_shared/FormTooltip.d.ts.map +1 -1
- package/dist/src/components/forms/password-checklist/PasswordChecklist.component.d.ts.map +1 -1
- package/dist/src/components/forms/textarea/Textarea.component.d.ts.map +1 -1
- package/dist/src/components/forms/toggle/Toggle.styles.d.ts +2 -2
- package/dist/src/components/forms/toggle/Toggle.styles.d.ts.map +1 -1
- package/dist/src/components/layout/auth-layout/AuthLayout.component.d.ts +1 -1
- package/dist/src/components/layout/auth-layout/AuthLayout.component.d.ts.map +1 -1
- package/dist/src/components/layout/auth-layout/AuthLayout.styles.d.ts +0 -2
- package/dist/src/components/layout/auth-layout/AuthLayout.styles.d.ts.map +1 -1
- package/dist/src/components/layout/auth-layout/AuthLayout.types.d.ts +0 -4
- package/dist/src/components/layout/auth-layout/AuthLayout.types.d.ts.map +1 -1
- package/dist/src/components/layout/main-content/MainContent.component.d.ts +5 -0
- package/dist/src/components/layout/main-content/MainContent.component.d.ts.map +1 -0
- package/dist/src/components/layout/main-content/MainContent.styles.d.ts +2 -0
- package/dist/src/components/layout/main-content/MainContent.styles.d.ts.map +1 -0
- package/dist/src/components/layout/main-content/MainContent.types.d.ts +11 -0
- package/dist/src/components/layout/main-content/MainContent.types.d.ts.map +1 -0
- package/dist/src/components/navigation/stepper/Stepper.styles.d.ts.map +1 -1
- package/dist/src/components/navigation/tabs/Tabs.component.d.ts.map +1 -1
- package/dist/src/components/navigation/tabs/Tabs.styles.d.ts +1 -1
- package/dist/src/components/navigation/tabs/Tabs.styles.d.ts.map +1 -1
- package/dist/src/components/navigation/top-nav/TopNav.styles.d.ts.map +1 -1
- package/dist/src/components/overlays/dialog/Dialog.styles.d.ts +1 -1
- package/dist/src/components/overlays/dialog/Dialog.styles.d.ts.map +1 -1
- package/dist/src/index.d.ts +3 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index44.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),a=require("react"),t=require("@radix-ui/react-dialog"),r=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),a=require("react"),t=require("@radix-ui/react-dialog"),r=require("./index57.cjs"),s=require("./index92.cjs"),d=require("@adam-milo/icons");function o(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const t in e)if("default"!==t){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(a,t,r.get?r:{enumerable:!0,get:()=>e[t]})}return a.default=e,Object.freeze(a)}const c=o(t),n=a.forwardRef(({open:a,onOpenChange:t,side:d="right",width:o="28rem",padding:n,className:i,overlay:l=!0,closeOnOverlayClick:y=!0,closeOnEscape:w=!0,children:p,"data-cy":f,"data-testid":u},m)=>{const x=f||`drawer-${d}`,D=u||`drawer-${d}`;return e.jsx(c.Root,{open:a,onOpenChange:t,children:e.jsxs(c.Portal,{children:[l&&e.jsx(c.Overlay,{className:s.overlayStyles,"data-cy":`${x}-overlay`,"data-testid":`${D}-overlay`}),e.jsx(c.Content,{ref:m,className:r.cn(s.panelBaseStyles,s.panelSideStyles[d],i),style:{width:o,...n?{padding:n}:void 0},onEscapeKeyDown:w?void 0:e=>e.preventDefault(),onInteractOutside:y?void 0:e=>e.preventDefault(),"data-cy":x,"data-testid":D,"data-side":d,children:p})]})})});n.displayName="Drawer";const i=a.forwardRef(({className:a,"data-cy":t,"data-testid":o,...n},i)=>{const l=t||"drawer-close-button",y=o||"drawer-close-button";return e.jsx(c.Close,{ref:i,className:r.cn(s.closeButtonStyles,a),"data-cy":l,"data-testid":y,"aria-label":"Close drawer",...n,children:e.jsx(d.Icon,{name:"CustomCloseXIcon",size:"xs",decorative:!0})})});i.displayName="DrawerCloseButton";const l=a.forwardRef(({className:a,"data-cy":t,"data-testid":d,...o},c)=>{const n=t||"drawer-header",i=d||"drawer-header";return e.jsx("header",{ref:c,className:r.cn(s.headerStyles,a),"data-cy":n,"data-testid":i,...o})});l.displayName="DrawerHeader";const y=a.forwardRef(({className:a,"data-cy":t,"data-testid":d,...o},n)=>{const i=t||"drawer-title",l=d||"drawer-title";return e.jsx(c.Title,{ref:n,className:r.cn(s.titleStyles,a),"data-cy":i,"data-testid":l,...o})});y.displayName="DrawerTitle";const w=a.forwardRef(({className:a,"data-cy":t,"data-testid":d,...o},n)=>{const i=t||"drawer-description",l=d||"drawer-description";return e.jsx(c.Description,{ref:n,className:r.cn(s.descriptionStyles,a),"data-cy":i,"data-testid":l,...o})});w.displayName="DrawerDescription";const p=a.forwardRef(({className:a,"data-cy":t,"data-testid":d,...o},c)=>{const n=t||"drawer-body",i=d||"drawer-body";return e.jsx("div",{ref:c,role:"region","aria-label":"Drawer content",className:r.cn(s.bodyStyles,a),"data-cy":n,"data-testid":i,...o})});p.displayName="DrawerBody";const f=a.forwardRef(({className:a,"data-cy":t,"data-testid":d,...o},c)=>{const n=t||"drawer-footer",i=d||"drawer-footer";return e.jsx("footer",{ref:c,className:r.cn(s.footerStyles,a),"data-cy":n,"data-testid":i,...o})});f.displayName="DrawerFooter",exports.Drawer=n,exports.DrawerBody=p,exports.DrawerCloseButton=i,exports.DrawerDescription=w,exports.DrawerFooter=f,exports.DrawerHeader=l,exports.DrawerTitle=y;
|
package/dist/index44.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{jsx as a,jsxs as e}from"react/jsx-runtime";import{forwardRef as t}from"react";import*as r from"@radix-ui/react-dialog";import{cn as d}from"./
|
|
1
|
+
import{jsx as a,jsxs as e}from"react/jsx-runtime";import{forwardRef as t}from"react";import*as r from"@radix-ui/react-dialog";import{cn as d}from"./index57.js";import{overlayStyles as s,panelSideStyles as o,panelBaseStyles as i,closeButtonStyles as c,headerStyles as n,titleStyles as l,descriptionStyles as m,bodyStyles as y,footerStyles as p}from"./index92.js";import{Icon as w}from"@adam-milo/icons";const N=t(({open:t,onOpenChange:c,side:n="right",width:l="28rem",padding:m,className:y,overlay:p=!0,closeOnOverlayClick:w=!0,closeOnEscape:N=!0,children:f,"data-cy":u,"data-testid":h},D)=>{const v=u||`drawer-${n}`,C=h||`drawer-${n}`;/* @__PURE__ */
|
|
2
2
|
return a(r.Root,{open:t,onOpenChange:c,children:/* @__PURE__ */e(r.Portal,{children:[p&&/* @__PURE__ */a(r.Overlay,{className:s,"data-cy":`${v}-overlay`,"data-testid":`${C}-overlay`}),
|
|
3
3
|
/* @__PURE__ */a(r.Content,{ref:D,className:d(i,o[n],y),style:{width:l,...m?{padding:m}:void 0},onEscapeKeyDown:N?void 0:a=>a.preventDefault(),onInteractOutside:w?void 0:a=>a.preventDefault(),"data-cy":v,"data-testid":C,"data-side":n,children:f})]})})});N.displayName="Drawer";const f=t(({className:e,"data-cy":t,"data-testid":s,...o},i)=>{const n=t||"drawer-close-button",l=s||"drawer-close-button";/* @__PURE__ */
|
|
4
4
|
return a(r.Close,{ref:i,className:d(c,e),"data-cy":n,"data-testid":l,"aria-label":"Close drawer",...o,children:/* @__PURE__ */a(w,{name:"CustomCloseXIcon",size:"xs",decorative:!0})})});f.displayName="DrawerCloseButton";const u=t(({className:e,"data-cy":t,"data-testid":r,...s},o)=>{const i=t||"drawer-header",c=r||"drawer-header";/* @__PURE__ */
|
package/dist/index45.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("react"),i=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("react"),i=require("./index57.cjs"),t=require("./index93.cjs"),n=require("./index60.cjs"),a=s.forwardRef(({direction:a,spacing:o,align:d,justify:l,wrap:g=!1,m:p,mt:r,mb:m,ms:v,me:c,mx:R,my:S,p:C,pt:h,pb:y,ps:u,pe:x,px:k,py:b,width:j,minWidth:f,maxWidth:w,height:B,minHeight:M,maxHeight:E,className:I,style:P,children:z,"data-cy":H,"data-testid":W,...q},O)=>{const N=n.getResponsiveBase(a)??"vertical",T=H||`stack-${N}`,$=W||`stack-${N}`,A=s.useMemo(()=>n.getResponsiveClasses(a,t.directionStyles),[a]),D=s.useMemo(()=>n.getResponsiveClasses(o,t.spacingStyles),[o]),F=s.useMemo(()=>n.getResponsiveClasses(d,t.alignStyles),[d]),G=s.useMemo(()=>n.getResponsiveClasses(l,t.justifyStyles),[l]),J=s.useMemo(()=>{const e=t.marginStyles;return[...n.getResponsiveClasses(p,e.m),...n.getResponsiveClasses(r,e.mt),...n.getResponsiveClasses(m,e.mb),...n.getResponsiveClasses(v,e.ms),...n.getResponsiveClasses(c,e.me),...n.getResponsiveClasses(R,e.ms),...n.getResponsiveClasses(R,e.me),...n.getResponsiveClasses(S,e.mt),...n.getResponsiveClasses(S,e.mb)]},[p,r,m,v,c,R,S]),K=s.useMemo(()=>{const e=t.paddingStyles;return[...n.getResponsiveClasses(C,e.p),...n.getResponsiveClasses(h,e.pt),...n.getResponsiveClasses(y,e.pb),...n.getResponsiveClasses(u,e.ps),...n.getResponsiveClasses(x,e.pe),...n.getResponsiveClasses(k,e.ps),...n.getResponsiveClasses(k,e.pe),...n.getResponsiveClasses(b,e.pt),...n.getResponsiveClasses(b,e.pb)]},[C,h,y,u,x,k,b]),L=s.useMemo(()=>{const e=t.widthPresetStyles,s=t.minWidthPresetStyles,i=t.maxWidthPresetStyles,a=t.heightPresetStyles,o=t.minHeightPresetStyles,d=t.maxHeightPresetStyles;return[...n.getResponsiveSizeClasses(j,e,"w-"),...n.getResponsiveSizeClasses(f,s,"min-w-"),...n.getResponsiveSizeClasses(w,i,"max-w-"),...n.getResponsiveSizeClasses(B,a,"h-"),...n.getResponsiveSizeClasses(M,o,"min-h-"),...n.getResponsiveSizeClasses(E,d,"max-h-")]},[j,f,w,B,M,E]),Q=s.useMemo(()=>{const e=e=>"string"==typeof e&&!t.isSpacingToken(e)&&!n.isResponsiveObject(e),s={};void 0!==p&&e(p)&&(s.margin=p),void 0!==r&&e(r)&&(s.marginBlockStart=r),void 0!==m&&e(m)&&(s.marginBlockEnd=m),void 0!==v&&e(v)&&(s.marginInlineStart=v),void 0!==c&&e(c)&&(s.marginInlineEnd=c),void 0!==R&&e(R)&&(s.marginInlineStart=R,s.marginInlineEnd=R),void 0!==S&&e(S)&&(s.marginBlockStart=S,s.marginBlockEnd=S),void 0!==C&&e(C)&&(s.padding=C),void 0!==h&&e(h)&&(s.paddingBlockStart=h),void 0!==y&&e(y)&&(s.paddingBlockEnd=y),void 0!==u&&e(u)&&(s.paddingInlineStart=u),void 0!==x&&e(x)&&(s.paddingInlineEnd=x),void 0!==k&&e(k)&&(s.paddingInlineStart=k,s.paddingInlineEnd=k),void 0!==b&&e(b)&&(s.paddingBlockStart=b,s.paddingBlockEnd=b);const i=e=>"string"==typeof e&&!t.isSizePreset(e)&&!n.isResponsiveObject(e);return void 0!==j&&i(j)&&(s.width=j),void 0!==f&&i(f)&&(s.minWidth=f),void 0!==w&&i(w)&&(s.maxWidth=w),void 0!==B&&i(B)&&(s.height=B),void 0!==M&&i(M)&&(s.minHeight=M),void 0!==E&&i(E)&&(s.maxHeight=E),Object.keys(s).length?s:void 0},[p,r,m,v,c,R,S,C,h,y,u,x,k,b,j,f,w,B,M,E]),U=a??o??d??l??g?"flex min-w-0":void 0;return e.jsx("div",{ref:O,className:i.cn(U,A,D,F,G,g&&"flex-wrap",J,K,L,I),style:Q?{...Q,...P}:P,"data-cy":T,"data-testid":$,...q,children:z})});a.displayName="Stack",exports.Stack=a;
|
package/dist/index45.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as i}from"react/jsx-runtime";import{forwardRef as t,useMemo as n}from"react";import{cn as d}from"./
|
|
1
|
+
import{jsx as i}from"react/jsx-runtime";import{forwardRef as t,useMemo as n}from"react";import{cn as d}from"./index57.js";import{isSpacingToken as a,isSizePreset as m,directionStyles as e,spacingStyles as o,alignStyles as r,justifyStyles as p,marginStyles as s,paddingStyles as c,widthPresetStyles as g,minWidthPresetStyles as l,maxWidthPresetStyles as v,heightPresetStyles as h,minHeightPresetStyles as x,maxHeightPresetStyles as k}from"./index93.js";import{getResponsiveBase as f,getResponsiveClasses as y,getResponsiveSizeClasses as S,isResponsiveObject as w}from"./index60.js";const B=t(({direction:t,spacing:B,align:E,justify:I,wrap:b=!1,m:u,mt:j,mb:H,ms:W,me:N,mx:$,my:O,p:q,pt:z,pb:A,ps:C,pe:D,px:F,py:G,width:J,minWidth:K,maxWidth:L,height:M,minHeight:P,maxHeight:Q,className:R,style:T,children:U,"data-cy":V,"data-testid":X,...Y},Z)=>{const _=f(t)??"vertical",ii=V||`stack-${_}`,ti=X||`stack-${_}`,ni=n(()=>y(t,e),[t]),di=n(()=>y(B,o),[B]),ai=n(()=>y(E,r),[E]),mi=n(()=>y(I,p),[I]),ei=n(()=>{const i=s;return[...y(u,i.m),...y(j,i.mt),...y(H,i.mb),...y(W,i.ms),...y(N,i.me),...y($,i.ms),...y($,i.me),...y(O,i.mt),...y(O,i.mb)]},[u,j,H,W,N,$,O]),oi=n(()=>{const i=c;return[...y(q,i.p),...y(z,i.pt),...y(A,i.pb),...y(C,i.ps),...y(D,i.pe),...y(F,i.ps),...y(F,i.pe),...y(G,i.pt),...y(G,i.pb)]},[q,z,A,C,D,F,G]),ri=n(()=>{const i=l,t=v,n=h,d=x,a=k;return[...S(J,g,"w-"),...S(K,i,"min-w-"),...S(L,t,"max-w-"),...S(M,n,"h-"),...S(P,d,"min-h-"),...S(Q,a,"max-h-")]},[J,K,L,M,P,Q]),pi=n(()=>{const i=i=>"string"==typeof i&&!a(i)&&!w(i),t={};void 0!==u&&i(u)&&(t.margin=u),void 0!==j&&i(j)&&(t.marginBlockStart=j),void 0!==H&&i(H)&&(t.marginBlockEnd=H),void 0!==W&&i(W)&&(t.marginInlineStart=W),void 0!==N&&i(N)&&(t.marginInlineEnd=N),void 0!==$&&i($)&&(t.marginInlineStart=$,t.marginInlineEnd=$),void 0!==O&&i(O)&&(t.marginBlockStart=O,t.marginBlockEnd=O),void 0!==q&&i(q)&&(t.padding=q),void 0!==z&&i(z)&&(t.paddingBlockStart=z),void 0!==A&&i(A)&&(t.paddingBlockEnd=A),void 0!==C&&i(C)&&(t.paddingInlineStart=C),void 0!==D&&i(D)&&(t.paddingInlineEnd=D),void 0!==F&&i(F)&&(t.paddingInlineStart=F,t.paddingInlineEnd=F),void 0!==G&&i(G)&&(t.paddingBlockStart=G,t.paddingBlockEnd=G);const n=i=>"string"==typeof i&&!m(i)&&!w(i);return void 0!==J&&n(J)&&(t.width=J),void 0!==K&&n(K)&&(t.minWidth=K),void 0!==L&&n(L)&&(t.maxWidth=L),void 0!==M&&n(M)&&(t.height=M),void 0!==P&&n(P)&&(t.minHeight=P),void 0!==Q&&n(Q)&&(t.maxHeight=Q),Object.keys(t).length?t:void 0},[u,j,H,W,N,$,O,q,z,A,C,D,F,G,J,K,L,M,P,Q]);/* @__PURE__ */
|
|
2
2
|
return i("div",{ref:Z,className:d(t??B??E??I??b?"flex min-w-0":void 0,ni,di,ai,mi,b&&"flex-wrap",ei,oi,ri,R),style:pi?{...pi,...T}:T,"data-cy":ii,"data-testid":ti,...Y,children:U})});B.displayName="Stack";export{B as Stack};
|
package/dist/index46.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),a=require("react"),r=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),a=require("react"),r=require("./index57.cjs"),t=require("./index94.cjs"),s=require("./index60.cjs"),i=a.forwardRef(({className:i,center:n=!0,maxWidth:d="lg",padding:c="md","data-cy":o,"data-testid":u,children:l,...m},x)=>{const p=o||"container",g=u||"container",j=a.useMemo(()=>s.getResponsiveClasses(d,t.maxWidthMap),[d]),f=a.useMemo(()=>s.getResponsiveClasses(c,t.paddingMap),[c]);return e.jsx("div",{ref:x,className:r.cn("w-full box-border",n&&"mx-auto",...j,...f,i),"data-cy":p,"data-testid":g,"data-center":n,...m,children:l})});i.displayName="Container",exports.Container=i;
|
package/dist/index46.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as t}from"react/jsx-runtime";import{forwardRef as r,useMemo as a}from"react";import{cn as e}from"./
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import{forwardRef as r,useMemo as a}from"react";import{cn as e}from"./index57.js";import{maxWidthMap as i,paddingMap as d}from"./index94.js";import{getResponsiveClasses as o}from"./index60.js";const n=r(({className:r,center:n=!0,maxWidth:m="lg",padding:c="md","data-cy":s,"data-testid":l,children:p,...x},f)=>{const j=s||"container",u=l||"container",h=a(()=>o(m,i),[m]),y=a(()=>o(c,d),[c]);/* @__PURE__ */
|
|
2
2
|
return t("div",{ref:f,className:e("w-full box-border",n&&"mx-auto",...h,...y,r),"data-cy":j,"data-testid":u,"data-center":n,...x,children:p})});n.displayName="Container";export{n as Container};
|
package/dist/index47.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),r=require("@radix-ui/react-separator"),i=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),r=require("@radix-ui/react-separator"),i=require("./index57.cjs"),a=require("./index95.cjs"),o=require("./index60.cjs");function n(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const r in e)if("default"!==r){const i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:()=>e[r]})}return t.default=e,Object.freeze(t)}const s=n(r),c=t.forwardRef(({orientation:r="horizontal",decorative:n=!0,spacing:c="0",color:d,className:l,style:u,"data-cy":p,"data-testid":f,...g},y)=>{const b=p||`divider-${r}`,j=f||`divider-${r}`,v=t.useMemo(()=>{const e="horizontal"===r?a.spacingHorizontalMap:a.spacingVerticalMap;return o.getResponsiveClasses(c,e)},[c,r]);return e.jsx(s.Root,{ref:y,decorative:n,orientation:r,className:i.cn(a.baseStyles,a.orientationStyles[r],...v,l),style:{...d&&{backgroundColor:d},...u},"data-cy":b,"data-testid":j,...g})});c.displayName="Divider",exports.Divider=c;
|
package/dist/index47.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as r}from"react/jsx-runtime";import{forwardRef as t,useMemo as o}from"react";import*as i from"@radix-ui/react-separator";import{cn as a}from"./
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import{forwardRef as t,useMemo as o}from"react";import*as i from"@radix-ui/react-separator";import{cn as a}from"./index57.js";import{orientationStyles as e,baseStyles as d,spacingHorizontalMap as s,spacingVerticalMap as m}from"./index95.js";import{getResponsiveClasses as n}from"./index60.js";const c=t(({orientation:t="horizontal",decorative:c=!0,spacing:p="0",color:l,className:f,style:x,"data-cy":v,"data-testid":y,...j},u)=>{const N=v||`divider-${t}`,g=y||`divider-${t}`,h=o(()=>n(p,"horizontal"===t?s:m),[p,t]);/* @__PURE__ */
|
|
2
2
|
return r(i.Root,{ref:u,decorative:c,orientation:t,className:a(d,e[t],...h,f),style:{...l&&{backgroundColor:l},...x},"data-cy":N,"data-testid":g,...j})});c.displayName="Divider";export{c as Divider};
|
package/dist/index48.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),a=require("react"),t=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),a=require("react"),t=require("./index57.cjs"),s=require("@adam-milo/icons"),n=require("./index5.cjs"),r=require("./index96.cjs"),l=a.forwardRef(({children:a,logoCenterOnMobile:l=!1,logo:o,nav:i,onHamburgerClick:d,onLogoClick:c,logoAriaLabel:u="Go to home",showSettings:y=!0,showUserMenu:g=!0,userInitials:m,onSettingsClick:b,onUserMenuClick:h,activeMenu:p=null,className:x,headerClassName:$,"data-testid":S,"data-cy":j,...v},C)=>{const k=j||"auth-layout",N=S||"auth-layout";return e.jsxs("div",{ref:C,className:t.cn(r.rootStyles,x),"data-testid":N,"data-cy":k,...v,children:[e.jsx("div",{className:t.cn(r.backgroundStyles),"data-testid":`${N}-background`,"data-cy":`${k}-background`,"aria-hidden":"true"}),e.jsxs("header",{className:t.cn(r.headerBaseStyles,(y||g||null!=i)&&r.headerDesktopLayoutAlwaysStyles,l&&!(y||g||null!=i)&&r.headerMobileLogoCenterStyles,null!=i&&r.headerWithNavStyles,$),"data-testid":`${N}-header`,"data-cy":`${k}-header`,children:[c?e.jsx("button",{type:"button",onClick:c,className:t.cn(r.logoWrapperBaseStyles,r.logoButtonStyles,l&&!(y||g||null!=i)&&r.logoWrapperMobileCenterStyles),"data-testid":`${N}-logo`,"data-cy":`${k}-logo`,"aria-label":u,children:o}):e.jsx("div",{className:t.cn(r.logoWrapperBaseStyles,l&&!(y||g||null!=i)&&r.logoWrapperMobileCenterStyles),"data-testid":`${N}-logo`,"data-cy":`${k}-logo`,children:o}),null!=i&&e.jsx("nav",{className:r.navWrapperStyles,"data-testid":`${N}-nav`,"data-cy":`${k}-nav`,children:i}),(y||g||null!=i)&&e.jsxs("nav",{className:t.cn(r.menuWrapperStyles),"aria-label":"Header menu","data-testid":`${N}-menu`,"data-cy":`${k}-menu`,children:[y&&e.jsx(n.MenuIconButton,{variant:"settings",selected:"settings"===p,onClick:b,"aria-label":"Settings","data-testid":`${N}-settings-btn`,"data-cy":`${k}-settings-btn`}),g&&e.jsx(n.MenuIconButton,{variant:"user",initials:m,selected:"user"===p,onClick:h,"aria-label":m?`User menu - ${m}`:"User menu","data-testid":`${N}-user-btn`,"data-cy":`${k}-user-btn`}),null!=i&&e.jsx("button",{type:"button",onClick:d,className:"hidden max-lg:flex items-center justify-center p-2 bg-transparent border-none cursor-pointer","aria-label":"Open menu","data-testid":`${N}-hamburger`,"data-cy":`${k}-hamburger`,children:e.jsx(s.Icon,{name:"CustomHamburgerIcon",size:"lg",color:"text",decorative:!0})})]})]}),a]})});l.displayName="AuthLayout",exports.AuthLayout=l;
|
package/dist/index48.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import{jsxs as a,jsx as e}from"react/jsx-runtime";import{forwardRef as t}from"react";import{cn as n}from"./
|
|
2
|
-
return a("div",{ref:
|
|
3
|
-
/* @__PURE__ */e("div",{className:n(
|
|
4
|
-
/* @__PURE__ */a("header",{className:n(h,(x||
|
|
5
|
-
/* @__PURE__ */e("main",{className:n($,S,I,O),"data-testid":`${D}-main`,"data-cy":`${B}-main`,children:t})]})});p.displayName="AuthLayout";export{p as AuthLayout};
|
|
1
|
+
import{jsxs as a,jsx as e}from"react/jsx-runtime";import{forwardRef as t}from"react";import{cn as n}from"./index57.js";import{Icon as l}from"@adam-milo/icons";import{MenuIconButton as i}from"./index5.js";import{navWrapperStyles as r,backgroundStyles as s,logoWrapperMobileCenterStyles as o,logoButtonStyles as d,logoWrapperBaseStyles as c,menuWrapperStyles as u,headerWithNavStyles as m,headerMobileLogoCenterStyles as g,headerDesktopLayoutAlwaysStyles as b,headerBaseStyles as h,rootStyles as $}from"./index96.js";const y=t(({children:t,logoCenterOnMobile:y=!1,logo:p,nav:v,onHamburgerClick:C,onLogoClick:N,logoAriaLabel:k="Go to home",showSettings:f=!0,showUserMenu:x=!0,userInitials:j,onSettingsClick:M,onUserMenuClick:U,activeMenu:H=null,className:L,headerClassName:S,"data-testid":w,"data-cy":A,...I},O)=>{const z=A||"auth-layout",G=w||"auth-layout";/* @__PURE__ */
|
|
2
|
+
return a("div",{ref:O,className:n($,L),"data-testid":G,"data-cy":z,...I,children:[
|
|
3
|
+
/* @__PURE__ */e("div",{className:n(s),"data-testid":`${G}-background`,"data-cy":`${z}-background`,"aria-hidden":"true"}),
|
|
4
|
+
/* @__PURE__ */a("header",{className:n(h,(f||x||null!=v)&&b,y&&!(f||x||null!=v)&&g,null!=v&&m,S),"data-testid":`${G}-header`,"data-cy":`${z}-header`,children:[N?/* @__PURE__ */e("button",{type:"button",onClick:N,className:n(c,d,y&&!(f||x||null!=v)&&o),"data-testid":`${G}-logo`,"data-cy":`${z}-logo`,"aria-label":k,children:p}):/* @__PURE__ */e("div",{className:n(c,y&&!(f||x||null!=v)&&o),"data-testid":`${G}-logo`,"data-cy":`${z}-logo`,children:p}),null!=v&&/* @__PURE__ */e("nav",{className:r,"data-testid":`${G}-nav`,"data-cy":`${z}-nav`,children:v}),(f||x||null!=v)&&/* @__PURE__ */a("nav",{className:n(u),"aria-label":"Header menu","data-testid":`${G}-menu`,"data-cy":`${z}-menu`,children:[f&&/* @__PURE__ */e(i,{variant:"settings",selected:"settings"===H,onClick:M,"aria-label":"Settings","data-testid":`${G}-settings-btn`,"data-cy":`${z}-settings-btn`}),x&&/* @__PURE__ */e(i,{variant:"user",initials:j,selected:"user"===H,onClick:U,"aria-label":j?`User menu - ${j}`:"User menu","data-testid":`${G}-user-btn`,"data-cy":`${z}-user-btn`}),null!=v&&/* @__PURE__ */e("button",{type:"button",onClick:C,className:"hidden max-lg:flex items-center justify-center p-2 bg-transparent border-none cursor-pointer","aria-label":"Open menu","data-testid":`${G}-hamburger`,"data-cy":`${z}-hamburger`,children:/* @__PURE__ */e(l,{name:"CustomHamburgerIcon",size:"lg",color:"text",decorative:!0})})]})]}),t]})});y.displayName="AuthLayout";export{y as AuthLayout};
|
package/dist/index49.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),n=require("./index57.cjs"),a=require("./index97.cjs"),r=t.forwardRef(({children:t,className:r,"data-testid":i,"data-cy":s,...c},d)=>{const o=s||"main-content",l=i||"main-content";return e.jsx("main",{ref:d,className:n.cn(a.mainContentBaseStyles,r),"data-testid":l,"data-cy":o,...c,children:t})});r.displayName="MainContent",exports.MainContent=r;
|
package/dist/index49.js
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
return
|
|
3
|
-
/* @__PURE__ */a("div",{className:s("flex items-center shrink-0 border-0 border-none",n&&["max-sm:absolute max-sm:inset-x-0 max-sm:top-0 max-sm:bottom-0","max-sm:flex max-sm:justify-center max-sm:items-center","max-sm:w-full max-sm:max-w-none","max-sm:[&>*]:shrink-0 max-sm:[&>*]:basis-auto"].join(" ")),"data-cy":`${c}-logo`,"data-testid":`${h}-logo`,children:t}),null!=r?/* @__PURE__ */a("nav",{className:"flex items-center max-sm:hidden","data-cy":`${c}-nav`,"data-testid":`${h}-nav`,children:r}):null,null!=m?/* @__PURE__ */a("div",{className:"flex items-center gap-2 shrink-0 border-0 border-none","data-cy":`${c}-right`,"data-testid":`${h}-right`,children:m}):null]})});r.displayName="SimpleHeader";export{r as SimpleHeader};
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import{forwardRef as a}from"react";import{cn as e}from"./index57.js";import{mainContentBaseStyles as n}from"./index97.js";const r=a(({children:a,className:r,"data-testid":i,"data-cy":m,...o},c)=>{const s=m||"main-content",d=i||"main-content";/* @__PURE__ */
|
|
2
|
+
return t("main",{ref:c,className:e(n,r),"data-testid":d,"data-cy":s,...o,children:a})});r.displayName="MainContent";export{r as MainContent};
|
package/dist/index5.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),s=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),s=require("./index57.cjs"),i=require("@adam-milo/icons"),a=require("./index63.cjs"),n={settings:"CustomMenuSettingsIcon",user:"CustomMenuUserIcon"},r={settings:"Settings",user:"User menu"},c=t.forwardRef(({variant:t,selected:c=!1,initials:o,className:l,disabled:d,"aria-label":u,"data-testid":m,"data-cy":y,...S},b)=>{const p=y||`menu-icon-button-${t}`,x=m||`menu-icon-button-${t}`,g=s.cn("group","menu-icon-button-border-mask",a.baseStyles,c&&a.selectedStyles,l);return e.jsx("button",{ref:b,type:"button",disabled:d,className:g,"aria-label":u||r[t],"aria-pressed":c,"data-testid":x,"data-cy":p,...S,children:"user"===t&&o?e.jsx("span",{className:s.cn(a.initialsBaseStyles,!c&&a.initialsHoverStyles,c&&a.initialsSelectedStyles),"data-cy":`${p}-initials`,"data-testid":`${x}-initials`,children:o.slice(0,2).toUpperCase()}):e.jsx("span",{className:s.cn(a.iconBaseStyles,!c&&a.iconHoverStyles,c&&a.iconSelectedStyles),"data-cy":`${p}-icon`,"data-testid":`${x}-icon`,children:e.jsx(i.Icon,{name:n[t],size:"lg",color:"inherit",decorative:!0})})})});c.displayName="MenuIconButton",exports.MenuIconButton=c;
|
package/dist/index5.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as t}from"react/jsx-runtime";import{forwardRef as
|
|
2
|
-
return t("button",{ref:
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import{forwardRef as e}from"react";import{cn as a}from"./index57.js";import{Icon as i}from"@adam-milo/icons";import{selectedStyles as s,baseStyles as n,initialsSelectedStyles as o,initialsHoverStyles as r,initialsBaseStyles as c,iconSelectedStyles as d,iconHoverStyles as m,iconBaseStyles as l}from"./index63.js";const u={settings:"CustomMenuSettingsIcon",user:"CustomMenuUserIcon"},p={settings:"Settings",user:"User menu"},b=e(({variant:e,selected:b=!1,initials:f,className:g,disabled:y,"aria-label":$,"data-testid":N,"data-cy":h,...x},j)=>{const C=h||`menu-icon-button-${e}`,I=N||`menu-icon-button-${e}`,M=a("group","menu-icon-button-border-mask",n,b&&s,g);/* @__PURE__ */
|
|
2
|
+
return t("button",{ref:j,type:"button",disabled:y,className:M,"aria-label":$||p[e],"aria-pressed":b,"data-testid":I,"data-cy":C,...x,children:/* @__PURE__ */t("span","user"===e&&f?{className:a(c,!b&&r,b&&o),"data-cy":`${C}-initials`,"data-testid":`${I}-initials`,children:f.slice(0,2).toUpperCase()}:{className:a(l,!b&&m,b&&d),"data-cy":`${C}-icon`,"data-testid":`${I}-icon`,children:/* @__PURE__ */t(i,{name:u[e],size:"lg",color:"inherit",decorative:!0})})})});b.displayName="MenuIconButton";export{b as MenuIconButton};
|
package/dist/index50.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),a=require("react"),t=require("./index57.cjs"),s=a.forwardRef(({logo:a,nav:s,right:r,logoCenterOnMobile:n=!1,className:m,"data-cy":i,"data-testid":d,...l},o)=>{const x=i??"simple-header",c=d??"simple-header";return e.jsxs("header",{ref:o,className:t.cn("flex flex-row items-center justify-between bg-transparent z-[100] border-0 border-none",n&&"max-sm:relative",m),style:{padding:"20px 16px"},"data-cy":x,"data-testid":c,...l,children:[e.jsx("div",{className:t.cn("flex items-center shrink-0 border-0 border-none",n&&["max-sm:absolute max-sm:inset-x-0 max-sm:top-0 max-sm:bottom-0","max-sm:flex max-sm:justify-center max-sm:items-center","max-sm:w-full max-sm:max-w-none","max-sm:[&>*]:shrink-0 max-sm:[&>*]:basis-auto"].join(" ")),"data-cy":`${x}-logo`,"data-testid":`${c}-logo`,children:a}),null!=s?e.jsx("nav",{className:"flex items-center max-sm:hidden","data-cy":`${x}-nav`,"data-testid":`${c}-nav`,children:s}):null,null!=r?e.jsx("div",{className:"flex items-center gap-2 shrink-0 border-0 border-none","data-cy":`${x}-right`,"data-testid":`${c}-right`,children:r}):null]})});s.displayName="SimpleHeader",exports.SimpleHeader=s;
|
package/dist/index50.js
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import{jsx as
|
|
2
|
-
return
|
|
1
|
+
import{jsxs as e,jsx as a}from"react/jsx-runtime";import{forwardRef as t}from"react";import{cn as s}from"./index57.js";const r=t(({logo:t,nav:r,right:m,logoCenterOnMobile:n=!1,className:i,"data-cy":d,"data-testid":l,...o},x)=>{const c=d??"simple-header",h=l??"simple-header";/* @__PURE__ */
|
|
2
|
+
return e("header",{ref:x,className:s("flex flex-row items-center justify-between bg-transparent z-[100] border-0 border-none",n&&"max-sm:relative",i),style:{padding:"20px 16px"},"data-cy":c,"data-testid":h,...o,children:[
|
|
3
|
+
/* @__PURE__ */a("div",{className:s("flex items-center shrink-0 border-0 border-none",n&&["max-sm:absolute max-sm:inset-x-0 max-sm:top-0 max-sm:bottom-0","max-sm:flex max-sm:justify-center max-sm:items-center","max-sm:w-full max-sm:max-w-none","max-sm:[&>*]:shrink-0 max-sm:[&>*]:basis-auto"].join(" ")),"data-cy":`${c}-logo`,"data-testid":`${h}-logo`,children:t}),null!=r?/* @__PURE__ */a("nav",{className:"flex items-center max-sm:hidden","data-cy":`${c}-nav`,"data-testid":`${h}-nav`,children:r}):null,null!=m?/* @__PURE__ */a("div",{className:"flex items-center gap-2 shrink-0 border-0 border-none","data-cy":`${c}-right`,"data-testid":`${h}-right`,children:m}):null]})});r.displayName="SimpleHeader";export{r as SimpleHeader};
|
package/dist/index51.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("react"),t=require("./index57.cjs"),r=require("./index98.cjs"),a=require("./index60.cjs"),i=s.forwardRef(({columns:i=3,rows:o,gap:n="4",rowGap:c,columnGap:d,align:u="stretch",justify:p="stretch",autoFitMinWidth:l="15rem",className:g,children:m,style:M,"data-cy":y,"data-testid":f,...j},v)=>{const R=a.getResponsiveBase(i)??3,x=y??`grid-${R}col`,G=f??`grid-${R}col`,h=s.useMemo(()=>a.getResponsiveClasses(i,r.gridColumnsMap),[i]),q=s.useMemo(()=>{if(c??d){const e="object"==typeof n?a.getResponsiveBase(n)??"4":n,s=c??e,t=d??e;return[`${r.columnGapMap[t]} ${r.rowGapMap[s]}`]}return a.getResponsiveClasses(n,r.gapMap)},[n,c,d]),w=s.useMemo(()=>a.getResponsiveClasses(u,r.alignMap),[u]),C=s.useMemo(()=>a.getResponsiveClasses(p,r.justifyMap),[p]),$={...M,..."auto"===R&&{"--grid-auto-fit-min":l}};return e.jsx("div",{ref:v,className:t.cn("grid",h,q,w,C,o&&r.gridRowsMap[o],g),style:$,"data-cy":x,"data-testid":G,...j,children:m})});i.displayName="Grid",exports.Grid=i;
|
package/dist/index51.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as t}from"react/jsx-runtime";import{forwardRef as
|
|
2
|
-
return t(
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import{forwardRef as r,useMemo as i}from"react";import{cn as e}from"./index57.js";import{columnGapMap as o,rowGapMap as a,gridColumnsMap as s,gapMap as d,alignMap as c,justifyMap as m,gridRowsMap as n}from"./index98.js";import{getResponsiveBase as l,getResponsiveClasses as p}from"./index60.js";const f=r(({columns:r=3,rows:f,gap:u="4",rowGap:y,columnGap:g,align:j="stretch",justify:h="stretch",autoFitMinWidth:x="15rem",className:$,children:G,style:N,"data-cy":w,"data-testid":b,...v},F)=>{const M=l(r)??3,W=w??`grid-${M}col`,k=b??`grid-${M}col`,q=i(()=>p(r,s),[r]),z=i(()=>{if(y??g){const t="object"==typeof u?l(u)??"4":u,r=y??t;return[`${o[g??t]} ${a[r]}`]}return p(u,d)},[u,y,g]),A=i(()=>p(j,c),[j]),B=i(()=>p(h,m),[h]),C={...N,..."auto"===M&&{"--grid-auto-fit-min":x}};/* @__PURE__ */
|
|
2
|
+
return t("div",{ref:F,className:e("grid",q,z,A,B,f&&n[f],$),style:C,"data-cy":W,"data-testid":k,...v,children:G})});f.displayName="Grid";export{f as Grid};
|
package/dist/index52.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),r=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),r=require("./index57.cjs"),a=require("./index99.cjs"),s=t.forwardRef(({size:t="md",weight:s="regular",as:i="p",color:c="text",align:l="start",truncate:d=!1,className:n="","data-cy":o,"data-testid":u,children:x,...y},g)=>{const S=o||`text-${t}-${s}`,m=u||`text-${t}-${s}`,j=r.cn(a.rootStyles,a.sizeStyles[t],a.weightStyles[s],a.colorStyles[c],a.alignStyles[l],d&&"truncate",n);return e.jsx(i,{ref:g,className:j,"data-cy":S,"data-testid":m,...y,children:x})});s.displayName="Text",exports.Text=s;
|
package/dist/index52.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
return
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import{forwardRef as e}from"react";import{cn as r}from"./index57.js";import{alignStyles as a,colorStyles as i,weightStyles as s,sizeStyles as c,rootStyles as m}from"./index99.js";const o=e(({size:e="md",weight:o="regular",as:d="p",color:n="text",align:l="start",truncate:x=!1,className:p="","data-cy":f,"data-testid":u,children:$,...g},h)=>{const j=f||`text-${e}-${o}`,y=u||`text-${e}-${o}`,N=r(m,c[e],s[o],i[n],a[l],x&&"truncate",p);/* @__PURE__ */
|
|
2
|
+
return t(d,{ref:h,className:N,"data-cy":j,"data-testid":y,...g,children:$})});o.displayName="Text";export{o as Text};
|
package/dist/index53.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),r=require("./index57.cjs"),i=require("./index100.cjs"),s=t.forwardRef(({level:t=2,size:s,weight:a="bold",color:l="text",align:d="start",className:n="",required:c,"data-cy":o,"data-testid":g,children:u,...y},h)=>{const x=s??i.levelToSizeMap[t],S=o||`heading-h${t}-${x}`,j=g||`heading-h${t}-${x}`,m=c?"string"==typeof u?u.includes("*")?u:`${u} *`:e.jsxs(e.Fragment,{children:[u," *"]}):u,p=r.cn(i.rootStyles,i.sizeStyles[x],i.weightStyles[a],i.colorStyles[l],i.alignStyles[d],n),$=`h${t}`;return e.jsx($,{ref:h,className:p,"data-cy":S,"data-testid":j,...y,children:m})});s.displayName="Heading",exports.Heading=s;
|
package/dist/index53.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as
|
|
2
|
-
return
|
|
1
|
+
import{jsxs as e,Fragment as t,jsx as r}from"react/jsx-runtime";import{forwardRef as i}from"react";import{cn as a}from"./index57.js";import{levelToSizeMap as d,alignStyles as s,colorStyles as n,weightStyles as o,sizeStyles as c,rootStyles as l}from"./index100.js";const m=i(({level:i=2,size:m,weight:h="bold",color:p="text",align:f="start",className:g="",required:$,"data-cy":x,"data-testid":u,children:y,...j},N)=>{const b=m??d[i],q=x||`heading-h${i}-${b}`,v=u||`heading-h${i}-${b}`,w=$?"string"==typeof y?y.includes("*")?y:`${y} *`/* @__PURE__ */:e(t,{children:[y," *"]}):y,z=a(l,c[b],o[h],n[p],s[f],g);/* @__PURE__ */
|
|
2
|
+
return r(`h${i}`,{ref:N,className:z,"data-cy":q,"data-testid":v,...j,children:w})});m.displayName="Heading";export{m as Heading};
|
package/dist/index54.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),i=require("react"),s=require("./index57.cjs"),r=require("./index101.cjs"),t=i.forwardRef(({children:i,color:t="action",size:a="md",weight:d="medium",underline:l=!1,disabled:n=!1,href:c,onClick:o,className:u,"data-cy":m,"data-testid":y,...f},x)=>{const b=m||"link",h=y||"link";return e.jsx("a",{ref:x,href:n?void 0:c,onClick:e=>{n?e.preventDefault():o?.(e)},className:s.cn(r.rootStyles,r.colorClasses[t],r.sizeClasses[a],r.weightClasses[d],l&&r.underlineStyles,n&&r.disabledStyles,u),"aria-disabled":n,tabIndex:n?-1:void 0,"data-cy":b,"data-testid":h,...f,children:i})});t.displayName="Link",exports.Link=t;
|
package/dist/index54.js
CHANGED
|
@@ -1,10 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
return
|
|
3
|
-
/* @__PURE__ */e("svg",{className:s,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,children:/* @__PURE__ */r(o,b?{children:[
|
|
4
|
-
/* @__PURE__ */e("defs",{children:/* @__PURE__ */r("linearGradient",{id:x,x1:"17",y1:"3",x2:"3",y2:"17",gradientUnits:"userSpaceOnUse",children:[
|
|
5
|
-
/* @__PURE__ */e("stop",{offset:"0%",stopColor:"var(--color-button-orange-border, #ed6827)"}),
|
|
6
|
-
/* @__PURE__ */e("stop",{offset:"100%",stopColor:"var(--color-button-orange, #F27424)",stopOpacity:"0.75"})]})}),
|
|
7
|
-
/* @__PURE__ */e("circle",{cx:"12",cy:"12",r:"10",stroke:"orange"===d?N:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeDasharray:"47 16"})]}:{children:[
|
|
8
|
-
/* @__PURE__ */e("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round"}),
|
|
9
|
-
/* @__PURE__ */e("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeDasharray:"40 60"})]})}),
|
|
10
|
-
/* @__PURE__ */e("span",{className:"sr-only",children:m})]})});d.displayName="Spinner";export{d as Spinner};
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{forwardRef as i}from"react";import{cn as a}from"./index57.js";import{disabledStyles as t,underlineStyles as r,weightClasses as d,sizeClasses as n,colorClasses as o,rootStyles as m}from"./index101.js";const s=i(({children:i,color:s="action",size:c="md",weight:l="medium",underline:f=!1,disabled:p=!1,href:h,onClick:k,className:u,"data-cy":x,"data-testid":b,...j},v)=>{const y=x||"link",N=b||"link";/* @__PURE__ */
|
|
2
|
+
return e("a",{ref:v,href:p?void 0:h,onClick:e=>{p?e.preventDefault():k?.(e)},className:a(m,o[s],n[c],d[l],f&&r,p&&t,u),"aria-disabled":p,tabIndex:p?-1:void 0,"data-cy":y,"data-testid":N,...j,children:i})});s.displayName="Link";export{s as Link};
|
package/dist/index55.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("react"),s=require("./index57.cjs"),t=require("./index102.cjs"),a=r.forwardRef(({size:a="md",color:o="action",variant:n="default",label:i="Loading",className:c,"data-cy":l,"data-testid":d,...x},p)=>{const u=`spinner-grad-${r.useId().replace(/:/g,"")}`,y=l||"spinner",g=d||"spinner",j="segmented"===n,h=`url(#${u})`;return e.jsxs("div",{ref:p,className:s.cn(t.rootStyles,t.sizeStyles[a],j&&"orange"===o?"text-[var(--color-button-orange)]":t.colorStyles[o],c),role:"status","aria-label":i,"data-cy":y,"data-testid":g,"data-variant":n,...x,children:[e.jsx("svg",{className:t.svgStyles,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,children:j?e.jsxs(e.Fragment,{children:[e.jsx("defs",{children:e.jsxs("linearGradient",{id:u,x1:"17",y1:"3",x2:"3",y2:"17",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{offset:"0%",stopColor:"var(--color-button-orange-border, #ed6827)"}),e.jsx("stop",{offset:"100%",stopColor:"var(--color-button-orange, #F27424)",stopOpacity:"0.75"})]})}),e.jsx("circle",{cx:"12",cy:"12",r:"10",stroke:"orange"===o?h:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeDasharray:"47 16"})]}):e.jsxs(e.Fragment,{children:[e.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round"}),e.jsx("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeDasharray:"40 60"})]})}),e.jsx("span",{className:"sr-only",children:i})]})});a.displayName="Spinner",exports.Spinner=a;
|
package/dist/index55.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import{jsxs as
|
|
2
|
-
return
|
|
3
|
-
/* @__PURE__ */e("svg",{className:
|
|
4
|
-
/* @__PURE__ */
|
|
5
|
-
/* @__PURE__ */
|
|
6
|
-
/* @__PURE__ */
|
|
7
|
-
/* @__PURE__ */
|
|
8
|
-
/* @__PURE__ */
|
|
9
|
-
/* @__PURE__ */
|
|
10
|
-
/* @__PURE__ */
|
|
11
|
-
/* @__PURE__ */a("span",{className:"sr-only",children:l})]})});l.displayName="AiLoader";export{l as AiLoader};
|
|
1
|
+
import{jsxs as r,jsx as e,Fragment as o}from"react/jsx-runtime";import{forwardRef as t,useId as a}from"react";import{cn as n}from"./index57.js";import{svgStyles as s,colorStyles as i,sizeStyles as c,rootStyles as l}from"./index102.js";const d=t(({size:t="md",color:d="action",variant:p="default",label:m="Loading",className:u,"data-cy":h,"data-testid":g,...y},f)=>{const x=`spinner-grad-${a().replace(/:/g,"")}`,k=h||"spinner",v=g||"spinner",b="segmented"===p,N=`url(#${x})`;/* @__PURE__ */
|
|
2
|
+
return r("div",{ref:f,className:n(l,c[t],b&&"orange"===d?"text-[var(--color-button-orange)]":i[d],u),role:"status","aria-label":m,"data-cy":k,"data-testid":v,"data-variant":p,...y,children:[
|
|
3
|
+
/* @__PURE__ */e("svg",{className:s,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,children:/* @__PURE__ */r(o,b?{children:[
|
|
4
|
+
/* @__PURE__ */e("defs",{children:/* @__PURE__ */r("linearGradient",{id:x,x1:"17",y1:"3",x2:"3",y2:"17",gradientUnits:"userSpaceOnUse",children:[
|
|
5
|
+
/* @__PURE__ */e("stop",{offset:"0%",stopColor:"var(--color-button-orange-border, #ed6827)"}),
|
|
6
|
+
/* @__PURE__ */e("stop",{offset:"100%",stopColor:"var(--color-button-orange, #F27424)",stopOpacity:"0.75"})]})}),
|
|
7
|
+
/* @__PURE__ */e("circle",{cx:"12",cy:"12",r:"10",stroke:"orange"===d?N:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeDasharray:"47 16"})]}:{children:[
|
|
8
|
+
/* @__PURE__ */e("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round"}),
|
|
9
|
+
/* @__PURE__ */e("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeDasharray:"40 60"})]})}),
|
|
10
|
+
/* @__PURE__ */e("span",{className:"sr-only",children:m})]})});d.displayName="Spinner";export{d as Spinner};
|
package/dist/index56.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("react"),a=require("./index57.cjs"),i=require("./index103.cjs"),t=s.forwardRef(({size:t="md",label:r="AI is processing",className:n,"data-cy":l,"data-testid":o,...d},c)=>{const C=`ai-loader-grad-${s.useId().replace(/:/g,"")}`,u=l||"ai-loader",m=o||"ai-loader";return e.jsxs("div",{ref:c,className:a.cn(i.rootStyles,i.containerStyles[t],n),role:"status","aria-label":r,"data-cy":u,"data-testid":m,...d,children:[e.jsxs("svg",{className:"absolute inset-0 w-full h-full",viewBox:"0 0 124 130",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[e.jsx("defs",{children:e.jsxs("linearGradient",{id:C,x1:"0%",y1:"0%",x2:"100%",y2:"100%",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{offset:"0%",stopColor:"#8FE96D"}),e.jsx("stop",{offset:"50%",stopColor:"#41C2C4"}),e.jsx("stop",{offset:"100%",stopColor:"#329CB2"})]})}),e.jsx("g",{className:"motion-reduce:animate-none animate-[pulse_2s_ease-in-out_infinite]",children:e.jsx("path",{d:"M33.787 0C34.644 7.815 37.572 15.321 42.293 21.789C47.014 28.257 53.367 33.466 60.698 36.94C53.367 40.414 47.014 45.623 42.293 52.091C37.572 58.559 34.644 66.065 33.787 73.88C32.93 66.065 30.002 58.559 25.281 52.091C20.56 45.623 14.207 40.414 6.876 36.94C14.207 33.466 20.56 28.257 25.281 21.789C30.002 15.321 32.93 7.815 33.787 0Z",fill:`url(#${C})`,className:"origin-center"})}),e.jsx("g",{className:"motion-reduce:animate-none animate-[pulse_2s_ease-in-out_0.3s_infinite]",transform:"translate(80, 42)",children:e.jsx("path",{d:"M21.897 0C22.464 5.062 24.409 9.921 27.486 14.108C30.564 18.295 34.633 21.657 39.294 23.906C34.633 26.155 30.564 29.517 27.486 33.704C24.409 37.891 22.464 42.75 21.897 47.812C21.33 42.75 19.385 37.891 16.308 33.704C13.231 29.517 9.161 26.155 4.5 23.906C9.161 21.657 13.231 18.295 16.308 14.108C19.385 9.921 21.33 5.062 21.897 0Z",fill:`url(#${C})`,className:"origin-center"})}),e.jsx("g",{className:"motion-reduce:animate-none animate-[pulse_2s_ease-in-out_0.6s_infinite]",transform:"translate(48, 101)",children:e.jsx("path",{d:"M14.234 0C14.602 3.289 15.842 6.445 17.827 9.166C19.812 11.887 22.473 14.078 25.558 15.534C22.473 16.99 19.812 19.181 17.827 21.902C15.842 24.623 14.602 27.779 14.234 31.068C13.866 27.779 12.626 24.623 10.641 21.902C8.656 19.181 5.995 16.99 2.91 15.534C5.995 14.078 8.656 11.887 10.641 9.166C12.626 6.445 13.866 3.289 14.234 0Z",fill:`url(#${C})`,className:"origin-center"})})]}),e.jsx("span",{className:"sr-only",children:r})]})});t.displayName="AiLoader",exports.AiLoader=t;
|
package/dist/index56.js
CHANGED
|
@@ -1 +1,11 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{jsxs as e,jsx as a}from"react/jsx-runtime";import{forwardRef as s,useId as i}from"react";import{cn as t}from"./index57.js";import{containerStyles as n,rootStyles as r}from"./index103.js";const l=s(({size:s="md",label:l="AI is processing",className:o,"data-cy":d,"data-testid":c,...m},C)=>{const f=`ai-loader-grad-${i().replace(/:/g,"")}`,p=d||"ai-loader",u=c||"ai-loader";/* @__PURE__ */
|
|
2
|
+
return e("div",{ref:C,className:t(r,n[s],o),role:"status","aria-label":l,"data-cy":p,"data-testid":u,...m,children:[
|
|
3
|
+
/* @__PURE__ */e("svg",{className:"absolute inset-0 w-full h-full",viewBox:"0 0 124 130",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[
|
|
4
|
+
/* @__PURE__ */a("defs",{children:/* @__PURE__ */e("linearGradient",{id:f,x1:"0%",y1:"0%",x2:"100%",y2:"100%",gradientUnits:"userSpaceOnUse",children:[
|
|
5
|
+
/* @__PURE__ */a("stop",{offset:"0%",stopColor:"#8FE96D"}),
|
|
6
|
+
/* @__PURE__ */a("stop",{offset:"50%",stopColor:"#41C2C4"}),
|
|
7
|
+
/* @__PURE__ */a("stop",{offset:"100%",stopColor:"#329CB2"})]})}),
|
|
8
|
+
/* @__PURE__ */a("g",{className:"motion-reduce:animate-none animate-[pulse_2s_ease-in-out_infinite]",children:/* @__PURE__ */a("path",{d:"M33.787 0C34.644 7.815 37.572 15.321 42.293 21.789C47.014 28.257 53.367 33.466 60.698 36.94C53.367 40.414 47.014 45.623 42.293 52.091C37.572 58.559 34.644 66.065 33.787 73.88C32.93 66.065 30.002 58.559 25.281 52.091C20.56 45.623 14.207 40.414 6.876 36.94C14.207 33.466 20.56 28.257 25.281 21.789C30.002 15.321 32.93 7.815 33.787 0Z",fill:`url(#${f})`,className:"origin-center"})}),
|
|
9
|
+
/* @__PURE__ */a("g",{className:"motion-reduce:animate-none animate-[pulse_2s_ease-in-out_0.3s_infinite]",transform:"translate(80, 42)",children:/* @__PURE__ */a("path",{d:"M21.897 0C22.464 5.062 24.409 9.921 27.486 14.108C30.564 18.295 34.633 21.657 39.294 23.906C34.633 26.155 30.564 29.517 27.486 33.704C24.409 37.891 22.464 42.75 21.897 47.812C21.33 42.75 19.385 37.891 16.308 33.704C13.231 29.517 9.161 26.155 4.5 23.906C9.161 21.657 13.231 18.295 16.308 14.108C19.385 9.921 21.33 5.062 21.897 0Z",fill:`url(#${f})`,className:"origin-center"})}),
|
|
10
|
+
/* @__PURE__ */a("g",{className:"motion-reduce:animate-none animate-[pulse_2s_ease-in-out_0.6s_infinite]",transform:"translate(48, 101)",children:/* @__PURE__ */a("path",{d:"M14.234 0C14.602 3.289 15.842 6.445 17.827 9.166C19.812 11.887 22.473 14.078 25.558 15.534C22.473 16.99 19.812 19.181 17.827 21.902C15.842 24.623 14.602 27.779 14.234 31.068C13.866 27.779 12.626 24.623 10.641 21.902C8.656 19.181 5.995 16.99 2.91 15.534C5.995 14.078 8.656 11.887 10.641 9.166C12.626 6.445 13.866 3.289 14.234 0Z",fill:`url(#${f})`,className:"origin-center"})})]}),
|
|
11
|
+
/* @__PURE__ */a("span",{className:"sr-only",children:l})]})});l.displayName="AiLoader";export{l as AiLoader};
|
package/dist/index57.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("clsx"),r=require("tailwind-merge");let t=0;exports.cn=function(...t){return r.twMerge(e.clsx(t))},exports.generateId=function(e="id"){return t+=1,`${e}-${t}`};
|
package/dist/index57.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{clsx as r}from"clsx";import{twMerge as t}from"tailwind-merge";function i(...i){return t(r(i))}let n=0;function o(r="id"){return n+=1,`${r}-${n}`}export{i as cn,o as generateId};
|
package/dist/index58.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=e=>e.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),t={safeText:t=>{const r=e(t);if(!/^[\p{L}\p{N}\s.,;:!?\-_()[\]{}'"/\\@#&+=*%$€£₪]*$/u.test(r))return"Contains invalid or unsupported characters"},noInjection:e=>{if([/<[^>]*>/i,/javascript:/i,/on\w+\s*=/i,/\bSELECT\b.*\bFROM\b/i,/\bINSERT\b.*\bINTO\b/i,/\bUPDATE\b.*\bSET\b/i,/\bDELETE\b.*\bFROM\b/i,/\bDROP\b.*\b(TABLE|DATABASE)\b/i,/\${.*}/,/`[^`]*`/,/\|\s*(bash|sh|cmd|powershell)/i].some(t=>t.test(e)))return"Text contains potentially unsafe content"},alphanumeric:e=>{if(!/^[\p{L}\p{N}]*$/u.test(e))return"Only letters and numbers are allowed"},alphanumericWithSpaces:e=>{if(!/^[\p{L}\p{N}\s]*$/u.test(e))return"Only letters, numbers, and spaces are allowed"},minLength:e=>t=>{const r=t.trim();if(r.length<e)return`Must be at least ${e} characters (currently ${r.length})`},maxLength:e=>t=>{if(t.length>e)return`Must not exceed ${e} characters (currently ${t.length})`},required:e=>{if(0===e.trim().length)return"This field is required"},noExcessiveWhitespace:e=>{if(/\s{3,}/.test(e))return"Excessive whitespace detected"},compose:(...e)=>t=>{for(const r of e){const e=r(t);if(e)return e}}},r=t.noInjection;exports.defaultValidation=r,exports.normalizeWhitespace=e,exports.textValidators=t;
|
package/dist/index58.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e={
|
|
1
|
+
const e=e=>e.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),t={safeText:t=>{const n=e(t);if(!/^[\p{L}\p{N}\s.,;:!?\-_()[\]{}'"/\\@#&+=*%$€£₪]*$/u.test(n))return"Contains invalid or unsupported characters"},noInjection:e=>{if([/<[^>]*>/i,/javascript:/i,/on\w+\s*=/i,/\bSELECT\b.*\bFROM\b/i,/\bINSERT\b.*\bINTO\b/i,/\bUPDATE\b.*\bSET\b/i,/\bDELETE\b.*\bFROM\b/i,/\bDROP\b.*\b(TABLE|DATABASE)\b/i,/\${.*}/,/`[^`]*`/,/\|\s*(bash|sh|cmd|powershell)/i].some(t=>t.test(e)))return"Text contains potentially unsafe content"},alphanumeric:e=>{if(!/^[\p{L}\p{N}]*$/u.test(e))return"Only letters and numbers are allowed"},alphanumericWithSpaces:e=>{if(!/^[\p{L}\p{N}\s]*$/u.test(e))return"Only letters, numbers, and spaces are allowed"},minLength:e=>t=>{const n=t.trim();if(n.length<e)return`Must be at least ${e} characters (currently ${n.length})`},maxLength:e=>t=>{if(t.length>e)return`Must not exceed ${e} characters (currently ${t.length})`},required:e=>{if(0===e.trim().length)return"This field is required"},noExcessiveWhitespace:e=>{if(/\s{3,}/.test(e))return"Excessive whitespace detected"},compose:(...e)=>t=>{for(const n of e){const e=n(t);if(e)return e}}},n=t.noInjection;export{n as defaultValidation,e as normalizeWhitespace,t as textValidators};
|
package/dist/index59.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.defaultPhoneMask={mask:"### ### ####",placeholder:"123 456 7890",maxLength:10},exports.formatWithMask=function(e,t){const n=e.replace(/\D/g,"").slice(0,t.maxLength);let r="",o=0;for(let a=0;a<t.mask.length&&o<n.length;a++)"#"===t.mask[a]?(r+=n[o],o++):r+=t.mask[a];return r},exports.getPhoneDigits=function(e){return e.replace(/\D/g,"")},exports.isValidPhoneLength=function(e,t){return e.replace(/\D/g,"").length===t.maxLength};
|
package/dist/index59.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const e={mask:"### ### ####",placeholder:"123 456 7890",maxLength:10};function n(e,n){const t=e.replace(/\D/g,"").slice(0,n.maxLength);let r="",a=0;for(let l=0;l<n.mask.length&&a<t.length;l++)"#"===n.mask[l]?(r+=t[a],a++):r+=n.mask[l];return r}function t(e){return e.replace(/\D/g,"")}function r(e,n){return e.replace(/\D/g,"").length===n.maxLength}export{e as defaultPhoneMask,n as formatWithMask,t as getPhoneDigits,r as isValidPhoneLength};
|
package/dist/index6.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),e=require("react"),t=require("email-validator"),i=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),e=require("react"),t=require("email-validator"),i=require("./index64.cjs"),r=e.forwardRef(({validateEmail:r=!0,invalidEmailMessage:l="Not a valid email address",validate:d,"data-cy":s,"data-testid":u,...n},m)=>{const o=e.useCallback(a=>{if(a)return t.validate(a)?void 0:l},[l]),c=e.useCallback(a=>r?d?o(a)||d(a):o(a):d?.(a),[r,d,o]);return a.jsx(i.Input,{ref:m,type:"email",validate:c,"data-cy":s||"email-input","data-testid":u||"email-input",...n})});r.displayName="EmailInput",exports.EmailInput=r;
|
package/dist/index6.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as a}from"react/jsx-runtime";import{forwardRef as t,useCallback as i}from"react";import{validate as e}from"email-validator";import{Input as r}from"./
|
|
1
|
+
import{jsx as a}from"react/jsx-runtime";import{forwardRef as t,useCallback as i}from"react";import{validate as e}from"email-validator";import{Input as r}from"./index64.js";const m=t(({validateEmail:t=!0,invalidEmailMessage:m="Not a valid email address",validate:d,"data-cy":l,"data-testid":o,...s},n)=>{const p=i(a=>{if(a)return e(a)?void 0:m},[m]),v=i(a=>t?d?p(a)||d(a):p(a):d?.(a),[t,d,p]);/* @__PURE__ */
|
|
2
2
|
return a(r,{ref:n,type:"email",validate:v,"data-cy":l||"email-input","data-testid":o||"email-input",...s})});m.displayName="EmailInput";export{m as EmailInput};
|
package/dist/index60.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),t=["base","sm","md","lg","xl"],n={sm:640,md:768,lg:1024,xl:1280},o={base:"",sm:"sm:",md:"md:",lg:"lg:",xl:"xl:"};function i(e){return null!==e&&"object"==typeof e&&!Array.isArray(e)}function s(e,n){for(let o=n;o>=0;o--){const n=e[t[o]];if(void 0!==n)return n}}exports.getResponsiveBase=function(e){if(void 0!==e){if(!i(e))return e;for(const n of t){const t=e[n];if(void 0!==t)return t}}},exports.getResponsiveClasses=function(e,n){if(void 0===e)return[];if(!i(e)){const t=n[e];return t?[t]:[]}const r=t.map((t,n)=>s(e,n)),c=[];let u;for(let i=0;i<t.length;i++){const e=r[i];if(void 0===e)continue;if(e===u)continue;u=e;const s=n[e];if(!s)continue;const f=o[t[i]];c.push(f?`${f}${s}`:s)}return c},exports.getResponsiveSizeClasses=function(e,n,r){if(void 0===e)return[];if(!i(e)){const t=n[e];return t?[t]:[]}const c=t.map((t,n)=>s(e,n)),u=[];let f;for(let i=0;i<t.length;i++){const e=c[i];if(void 0===e)continue;if(e===f)continue;f=e;const s=n[e]??("string"==typeof e?`${r}[${e}]`:void 0);if(!s)continue;const d=o[t[i]];u.push(d?`${d}${s}`:s)}return u},exports.isResponsiveObject=i,exports.useResponsiveValue=function(t){const o=e.useCallback(()=>{if(void 0===t)return;if(!i(t))return t;if("undefined"==typeof window)return t.base;const e=window.innerWidth;return e>=n.xl&&void 0!==t.xl?t.xl:e>=n.lg&&void 0!==t.lg?t.lg:e>=n.md&&void 0!==t.md?t.md:e>=n.sm&&void 0!==t.sm?t.sm:e>=n.xl?s(t,4):e>=n.lg?s(t,3):e>=n.md?s(t,2):e>=n.sm?s(t,1):t.base},[t]),[r,c]=e.useState(o);return e.useEffect(()=>{if(void 0===t||!i(t))return void c(void 0===t?void 0:t);const e=()=>c(o());e();const s=Object.values(n).map(e=>window.matchMedia(`(min-width: ${e}px)`));return s.forEach(t=>t.addEventListener("change",e)),()=>s.forEach(t=>t.removeEventListener("change",e))},[t,o]),r};
|