@adam-milo/ui 1.0.128 → 1.0.130
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 +2 -2
- 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 +1 -1
- package/dist/index106.cjs +1 -1
- package/dist/index106.js +1 -1
- package/dist/index107.cjs +1 -1
- package/dist/index107.js +1 -1
- package/dist/index108.cjs +1 -1
- package/dist/index108.js +1 -1
- package/dist/index109.cjs +1 -1
- package/dist/index109.js +1 -1
- package/dist/index11.cjs +1 -1
- package/dist/index11.js +1 -1
- package/dist/index110.cjs +1 -1
- package/dist/index110.js +1 -3
- package/dist/index111.cjs +1 -1
- package/dist/index111.js +1 -2
- 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 -1
- package/dist/index116.cjs +1 -1
- package/dist/index116.js +1 -1
- package/dist/index117.cjs +1 -1
- package/dist/index117.js +1 -1
- package/dist/index118.cjs +1 -1
- package/dist/index118.js +1 -1
- package/dist/index119.cjs +1 -1
- package/dist/index119.js +1 -1
- package/dist/index12.cjs +1 -1
- package/dist/index12.js +1 -1
- package/dist/index120.cjs +1 -1
- package/dist/index120.js +1 -5
- package/dist/index121.cjs +1 -1
- package/dist/index121.js +1 -3
- package/dist/index122.cjs +1 -1
- package/dist/index122.js +1 -1
- package/dist/index123.cjs +1 -1
- package/dist/index123.js +1 -1
- package/dist/index124.cjs +1 -1
- package/dist/index124.js +1 -4
- package/dist/index125.cjs +1 -1
- package/dist/index125.js +1 -1
- package/dist/index126.cjs +1 -1
- package/dist/index126.js +1 -2
- 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 +1 -1
- package/dist/index18.cjs +1 -1
- package/dist/index18.js +8 -3
- package/dist/index19.cjs +1 -1
- package/dist/index19.js +3 -6
- package/dist/index20.cjs +1 -1
- package/dist/index20.js +6 -2
- package/dist/index21.cjs +1 -1
- package/dist/index21.js +2 -2
- package/dist/index22.cjs +1 -1
- package/dist/index22.js +2 -2
- package/dist/index23.cjs +1 -1
- package/dist/index23.js +2 -2
- package/dist/index24.cjs +1 -1
- package/dist/index24.js +2 -2
- package/dist/index25.cjs +1 -1
- package/dist/index25.js +2 -2
- package/dist/index26.cjs +1 -1
- package/dist/index26.js +2 -2
- package/dist/index27.cjs +1 -1
- package/dist/index27.js +2 -2
- package/dist/index28.cjs +1 -1
- package/dist/index28.js +2 -2
- package/dist/index29.cjs +1 -1
- package/dist/index29.js +2 -2
- package/dist/index3.cjs +1 -1
- package/dist/index3.js +1 -1
- package/dist/index30.cjs +1 -1
- package/dist/index30.js +2 -2
- package/dist/index31.cjs +1 -1
- package/dist/index31.js +2 -4
- package/dist/index32.cjs +1 -1
- package/dist/index32.js +4 -2
- package/dist/index33.cjs +1 -1
- package/dist/index33.js +2 -2
- package/dist/index34.cjs +1 -1
- package/dist/index34.js +2 -4
- package/dist/index35.cjs +1 -1
- package/dist/index35.js +4 -8
- package/dist/index36.cjs +1 -1
- package/dist/index36.js +8 -2
- package/dist/index37.cjs +1 -1
- package/dist/index37.js +2 -4
- package/dist/index38.cjs +1 -1
- package/dist/index38.js +4 -8
- package/dist/index39.cjs +1 -1
- package/dist/index39.js +8 -8
- package/dist/index4.cjs +1 -1
- package/dist/index4.js +1 -1
- package/dist/index40.cjs +1 -1
- package/dist/index40.js +8 -9
- package/dist/index41.cjs +1 -1
- package/dist/index41.js +9 -2
- package/dist/index42.cjs +1 -1
- package/dist/index42.js +2 -5
- package/dist/index43.cjs +1 -1
- package/dist/index43.js +5 -2
- package/dist/index44.cjs +1 -1
- package/dist/index44.js +2 -10
- package/dist/index45.cjs +1 -1
- package/dist/index45.js +2 -9
- package/dist/index46.cjs +1 -1
- package/dist/index46.js +3 -2
- package/dist/index47.cjs +1 -1
- package/dist/index47.js +3 -2
- package/dist/index48.cjs +1 -1
- package/dist/index48.js +24 -2
- package/dist/index49.cjs +1 -1
- package/dist/index49.js +10 -4
- package/dist/index5.cjs +1 -1
- package/dist/index5.js +1 -1
- package/dist/index50.cjs +1 -1
- package/dist/index50.js +13 -2
- package/dist/index51.cjs +1 -1
- package/dist/index51.js +38 -3
- package/dist/index52.cjs +1 -1
- package/dist/index52.js +10 -2
- package/dist/index53.cjs +1 -1
- package/dist/index53.js +1 -2
- package/dist/index54.cjs +1 -1
- package/dist/index54.js +9 -2
- package/dist/index55.cjs +1 -1
- package/dist/index55.js +2 -2
- package/dist/index56.cjs +1 -1
- package/dist/index56.js +2 -10
- package/dist/index57.cjs +1 -1
- package/dist/index57.js +2 -11
- package/dist/index58.cjs +1 -1
- package/dist/index58.js +4 -1
- package/dist/index59.cjs +1 -1
- package/dist/index59.js +2 -1
- package/dist/index6.cjs +1 -1
- package/dist/index6.js +1 -1
- package/dist/index60.cjs +1 -1
- package/dist/index60.js +3 -1
- package/dist/index61.cjs +1 -1
- package/dist/index61.js +2 -1
- package/dist/index62.cjs +1 -1
- package/dist/index62.js +2 -1
- package/dist/index63.cjs +1 -1
- package/dist/index63.js +2 -1
- package/dist/index64.cjs +1 -1
- package/dist/index64.js +2 -1
- package/dist/index65.cjs +1 -1
- package/dist/index65.js +10 -9
- package/dist/index66.cjs +1 -1
- package/dist/index66.js +11 -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 -2
- package/dist/index71.cjs +1 -1
- package/dist/index71.js +1 -1
- package/dist/index72.cjs +1 -1
- package/dist/index72.js +1 -1
- package/dist/index73.cjs +1 -1
- package/dist/index73.js +1 -1
- package/dist/index74.cjs +1 -1
- package/dist/index74.js +9 -1
- package/dist/index75.cjs +1 -1
- package/dist/index75.js +1 -7
- 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 +2 -1
- package/dist/index8.cjs +1 -1
- package/dist/index8.js +1 -1
- 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 -1
- package/dist/index83.cjs +1 -1
- package/dist/index83.js +1 -1
- package/dist/index84.cjs +1 -1
- package/dist/index84.js +1 -1
- package/dist/index85.cjs +1 -1
- package/dist/index85.js +7 -10
- 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/menu-icon-button/MenuIconButton.styles.d.ts +1 -1
- package/dist/src/components/core/menu-icon-button/MenuIconButton.styles.d.ts.map +1 -1
- package/dist/src/components/data-display/check-filter/CheckFilter.component.d.ts +8 -0
- package/dist/src/components/data-display/check-filter/CheckFilter.component.d.ts.map +1 -0
- package/dist/src/components/data-display/check-filter/CheckFilter.styles.d.ts +6 -0
- package/dist/src/components/data-display/check-filter/CheckFilter.styles.d.ts.map +1 -0
- package/dist/src/components/data-display/check-filter/CheckFilter.types.d.ts +68 -0
- package/dist/src/components/data-display/check-filter/CheckFilter.types.d.ts.map +1 -0
- package/dist/src/components/data-display/chip-group/ChipGroup.component.d.ts.map +1 -1
- package/dist/src/components/data-display/chip-group/ChipGroup.utils.d.ts +21 -0
- package/dist/src/components/data-display/chip-group/ChipGroup.utils.d.ts.map +1 -0
- package/dist/src/components/data-display/chip-group/useChipOverflow.d.ts +18 -0
- package/dist/src/components/data-display/chip-group/useChipOverflow.d.ts.map +1 -0
- package/dist/src/components/data-display/date-filter/DateFilter.component.d.ts +9 -0
- package/dist/src/components/data-display/date-filter/DateFilter.component.d.ts.map +1 -0
- package/dist/src/components/data-display/date-filter/DateFilter.styles.d.ts +96 -0
- package/dist/src/components/data-display/date-filter/DateFilter.styles.d.ts.map +1 -0
- package/dist/src/components/data-display/date-filter/DateFilter.types.d.ts +102 -0
- package/dist/src/components/data-display/date-filter/DateFilter.types.d.ts.map +1 -0
- package/dist/src/components/data-display/date-filter/dateUtils.d.ts +100 -0
- package/dist/src/components/data-display/date-filter/dateUtils.d.ts.map +1 -0
- package/dist/src/components/data-display/filter/Filter.component.d.ts +21 -0
- package/dist/src/components/data-display/filter/Filter.component.d.ts.map +1 -0
- package/dist/src/components/data-display/filter/Filter.styles.d.ts +27 -0
- package/dist/src/components/data-display/filter/Filter.styles.d.ts.map +1 -0
- package/dist/src/components/data-display/filter/Filter.types.d.ts +141 -0
- package/dist/src/components/data-display/filter/Filter.types.d.ts.map +1 -0
- package/dist/src/components/data-display/filter-button/FilterButton.component.d.ts +5 -0
- package/dist/src/components/data-display/filter-button/FilterButton.component.d.ts.map +1 -0
- package/dist/src/components/data-display/filter-button/FilterButton.styles.d.ts +10 -0
- package/dist/src/components/data-display/filter-button/FilterButton.styles.d.ts.map +1 -0
- package/dist/src/components/data-display/filter-button/FilterButton.types.d.ts +18 -0
- package/dist/src/components/data-display/filter-button/FilterButton.types.d.ts.map +1 -0
- package/dist/src/components/data-display/numeric-filter/NumericFilter.component.d.ts +8 -0
- package/dist/src/components/data-display/numeric-filter/NumericFilter.component.d.ts.map +1 -0
- package/dist/src/components/data-display/numeric-filter/NumericFilter.styles.d.ts +14 -0
- package/dist/src/components/data-display/numeric-filter/NumericFilter.styles.d.ts.map +1 -0
- package/dist/src/components/data-display/numeric-filter/NumericFilter.types.d.ts +53 -0
- package/dist/src/components/data-display/numeric-filter/NumericFilter.types.d.ts.map +1 -0
- package/dist/src/components/data-display/range-filter/RangeFilter.component.d.ts +8 -0
- package/dist/src/components/data-display/range-filter/RangeFilter.component.d.ts.map +1 -0
- package/dist/src/components/data-display/range-filter/RangeFilter.styles.d.ts +18 -0
- package/dist/src/components/data-display/range-filter/RangeFilter.styles.d.ts.map +1 -0
- package/dist/src/components/data-display/range-filter/RangeFilter.types.d.ts +44 -0
- package/dist/src/components/data-display/range-filter/RangeFilter.types.d.ts.map +1 -0
- package/dist/src/components/data-display/sort-button/SortButton.component.d.ts +5 -0
- package/dist/src/components/data-display/sort-button/SortButton.component.d.ts.map +1 -0
- package/dist/src/components/data-display/sort-button/SortButton.styles.d.ts +5 -0
- package/dist/src/components/data-display/sort-button/SortButton.styles.d.ts.map +1 -0
- package/dist/src/components/data-display/sort-button/SortButton.types.d.ts +27 -0
- package/dist/src/components/data-display/sort-button/SortButton.types.d.ts.map +1 -0
- package/dist/src/components/forms/numeric-input/NumericInput.component.d.ts.map +1 -1
- package/dist/src/components/forms/numeric-input/NumericInput.types.d.ts +14 -0
- package/dist/src/components/forms/numeric-input/NumericInput.types.d.ts.map +1 -1
- package/dist/src/components/forms/slider/Slider.component.d.ts +5 -0
- package/dist/src/components/forms/slider/Slider.component.d.ts.map +1 -0
- package/dist/src/components/forms/slider/Slider.styles.d.ts +21 -0
- package/dist/src/components/forms/slider/Slider.styles.d.ts.map +1 -0
- package/dist/src/components/forms/slider/Slider.types.d.ts +72 -0
- package/dist/src/components/forms/slider/Slider.types.d.ts.map +1 -0
- package/dist/src/components/overlays/popover/Popover.component.d.ts +27 -0
- package/dist/src/components/overlays/popover/Popover.component.d.ts.map +1 -0
- package/dist/src/components/overlays/popover/Popover.styles.d.ts +2 -0
- package/dist/src/components/overlays/popover/Popover.styles.d.ts.map +1 -0
- package/dist/src/components/overlays/popover/Popover.types.d.ts +18 -0
- package/dist/src/components/overlays/popover/Popover.types.d.ts.map +1 -0
- package/dist/src/index.d.ts +19 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/lib/useMergedRef.d.ts +8 -4
- package/dist/src/lib/useMergedRef.d.ts.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +4 -2
- package/dist/index127.cjs +0 -1
- package/dist/index127.js +0 -1
- package/dist/index128.cjs +0 -1
- package/dist/index128.js +0 -1
- package/dist/index129.cjs +0 -1
- package/dist/index129.js +0 -1
- package/dist/index130.cjs +0 -1
- package/dist/index130.js +0 -1
- package/dist/index131.cjs +0 -1
- package/dist/index131.js +0 -1
package/dist/index54.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"),a=require("react"),t=require("@radix-ui/react-dialog"),r=require("./index67.cjs"),s=require("./index112.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/index54.js
CHANGED
|
@@ -1,2 +1,9 @@
|
|
|
1
|
-
import{
|
|
2
|
-
return r(
|
|
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"./index67.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"./index112.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
|
+
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
|
+
/* @__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
|
+
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__ */
|
|
5
|
+
return a("header",{ref:o,className:d(n,e),"data-cy":i,"data-testid":c,...s})});u.displayName="DrawerHeader";const h=t(({className:e,"data-cy":t,"data-testid":s,...o},i)=>{const c=t||"drawer-title",n=s||"drawer-title";/* @__PURE__ */
|
|
6
|
+
return a(r.Title,{ref:i,className:d(l,e),"data-cy":c,"data-testid":n,...o})});h.displayName="DrawerTitle";const D=t(({className:e,"data-cy":t,"data-testid":s,...o},i)=>{const c=t||"drawer-description",n=s||"drawer-description";/* @__PURE__ */
|
|
7
|
+
return a(r.Description,{ref:i,className:d(m,e),"data-cy":c,"data-testid":n,...o})});D.displayName="DrawerDescription";const v=t(({className:e,"data-cy":t,"data-testid":r,...s},o)=>{const i=t||"drawer-body",c=r||"drawer-body";/* @__PURE__ */
|
|
8
|
+
return a("div",{ref:o,role:"region","aria-label":"Drawer content",className:d(y,e),"data-cy":i,"data-testid":c,...s})});v.displayName="DrawerBody";const C=t(({className:e,"data-cy":t,"data-testid":r,...s},o)=>{const i=t||"drawer-footer",c=r||"drawer-footer";/* @__PURE__ */
|
|
9
|
+
return a("footer",{ref:o,className:d(p,e),"data-cy":i,"data-testid":c,...s})});C.displayName="DrawerFooter";export{N as Drawer,v as DrawerBody,f as DrawerCloseButton,D as DrawerDescription,C as DrawerFooter,u as DrawerHeader,h as DrawerTitle};
|
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"),s=require("react"),i=require("./index67.cjs"),t=require("./index113.cjs"),n=require("./index70.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/index55.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as
|
|
2
|
-
return
|
|
1
|
+
import{jsx as i}from"react/jsx-runtime";import{forwardRef as t,useMemo as n}from"react";import{cn as d}from"./index67.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"./index113.js";import{getResponsiveBase as f,getResponsiveClasses as y,getResponsiveSizeClasses as S,isResponsiveObject as w}from"./index70.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
|
+
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/index56.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"),r=require("./index67.cjs"),t=require("./index114.cjs"),s=require("./index70.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/index56.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)"}),
|
|
6
|
-
/* @__PURE__ */e("stop",{offset:"100%",stopColor:"var(--color-button-orange)",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 t}from"react/jsx-runtime";import{forwardRef as r,useMemo as a}from"react";import{cn as e}from"./index67.js";import{maxWidthMap as i,paddingMap as d}from"./index114.js";import{getResponsiveClasses as o}from"./index70.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
|
+
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/index57.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("@radix-ui/react-separator"),i=require("./index67.cjs"),a=require("./index115.cjs"),o=require("./index70.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/index57.js
CHANGED
|
@@ -1,11 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
return
|
|
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:"var(--color-lime)"}),
|
|
6
|
-
/* @__PURE__ */a("stop",{offset:"50%",stopColor:"var(--color-teal-bright)"}),
|
|
7
|
-
/* @__PURE__ */a("stop",{offset:"100%",stopColor:"var(--color-button-blue)"})]})}),
|
|
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};
|
|
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"./index67.js";import{orientationStyles as e,baseStyles as d,spacingHorizontalMap as s,spacingVerticalMap as m}from"./index115.js";import{getResponsiveClasses as n}from"./index70.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
|
+
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/index58.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"),a=require("react"),t=require("./index67.cjs"),s=require("@adam-milo/icons"),n=require("./index5.cjs"),l=require("./index116.cjs"),r=a.forwardRef(({children:a,logoCenterOnMobile:r=!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,scrollMode:x="auto",className:S,headerClassName:$,"data-testid":j,"data-cy":v,...C},k)=>{const N=v||"auth-layout",M=j||"auth-layout",W="contained"===x?l.rootContainedStyles:l.rootAutoStyles;return e.jsxs("div",{ref:k,className:t.cn(W,S),"data-testid":M,"data-cy":N,"data-scroll-mode":x,...C,children:[e.jsx("div",{className:t.cn(l.backgroundStyles),"data-testid":`${M}-background`,"data-cy":`${N}-background`,"aria-hidden":"true"}),e.jsxs("header",{className:t.cn(l.headerBaseStyles,(y||g||null!=i)&&l.headerDesktopLayoutAlwaysStyles,r&&!(y||g||null!=i)&&l.headerMobileLogoCenterStyles,null!=i&&l.headerWithNavStyles,$),"data-testid":`${M}-header`,"data-cy":`${N}-header`,children:[c?e.jsx("button",{type:"button",onClick:c,className:t.cn(l.logoWrapperBaseStyles,l.logoButtonStyles,r&&!(y||g||null!=i)&&l.logoWrapperMobileCenterStyles),"data-testid":`${M}-logo`,"data-cy":`${N}-logo`,"aria-label":u,children:o}):e.jsx("div",{className:t.cn(l.logoWrapperBaseStyles,r&&!(y||g||null!=i)&&l.logoWrapperMobileCenterStyles),"data-testid":`${M}-logo`,"data-cy":`${N}-logo`,children:o}),null!=i&&e.jsx("nav",{className:l.navWrapperStyles,"data-testid":`${M}-nav`,"data-cy":`${N}-nav`,children:i}),(y||g||null!=i)&&e.jsxs("nav",{className:t.cn(l.menuWrapperStyles),"aria-label":"Header menu","data-testid":`${M}-menu`,"data-cy":`${N}-menu`,children:[y&&e.jsx(n.MenuIconButton,{variant:"settings",selected:"settings"===p,onClick:b,"aria-label":"Settings","data-testid":`${M}-settings-btn`,"data-cy":`${N}-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":`${M}-user-btn`,"data-cy":`${N}-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":`${M}-hamburger`,"data-cy":`${N}-hamburger`,children:e.jsx(s.Icon,{name:"CustomHamburgerIcon",size:"lg",color:"text",decorative:!0})})]})]}),a]})});r.displayName="AuthLayout",exports.AuthLayout=r;
|
package/dist/index58.js
CHANGED
|
@@ -1 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{jsxs as a,jsx as e}from"react/jsx-runtime";import{forwardRef as t}from"react";import{cn as n}from"./index67.js";import{Icon as l}from"@adam-milo/icons";import{MenuIconButton as r}from"./index5.js";import{navWrapperStyles as i,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,rootContainedStyles as $,rootAutoStyles as y}from"./index116.js";const p=t(({children:t,logoCenterOnMobile:p=!1,logo:v,nav:C,onHamburgerClick:N,onLogoClick:k,logoAriaLabel:f="Go to home",showSettings:x=!0,showUserMenu:j=!0,userInitials:M,onSettingsClick:U,onUserMenuClick:H,activeMenu:L=null,scrollMode:S="auto",className:w,headerClassName:A,"data-testid":I,"data-cy":O,...z},G)=>{const q=O||"auth-layout",B=I||"auth-layout";/* @__PURE__ */
|
|
2
|
+
return a("div",{ref:G,className:n("contained"===S?$:y,w),"data-testid":B,"data-cy":q,"data-scroll-mode":S,...z,children:[
|
|
3
|
+
/* @__PURE__ */e("div",{className:n(s),"data-testid":`${B}-background`,"data-cy":`${q}-background`,"aria-hidden":"true"}),
|
|
4
|
+
/* @__PURE__ */a("header",{className:n(h,(x||j||null!=C)&&b,p&&!(x||j||null!=C)&&g,null!=C&&m,A),"data-testid":`${B}-header`,"data-cy":`${q}-header`,children:[k?/* @__PURE__ */e("button",{type:"button",onClick:k,className:n(c,d,p&&!(x||j||null!=C)&&o),"data-testid":`${B}-logo`,"data-cy":`${q}-logo`,"aria-label":f,children:v}):/* @__PURE__ */e("div",{className:n(c,p&&!(x||j||null!=C)&&o),"data-testid":`${B}-logo`,"data-cy":`${q}-logo`,children:v}),null!=C&&/* @__PURE__ */e("nav",{className:i,"data-testid":`${B}-nav`,"data-cy":`${q}-nav`,children:C}),(x||j||null!=C)&&/* @__PURE__ */a("nav",{className:n(u),"aria-label":"Header menu","data-testid":`${B}-menu`,"data-cy":`${q}-menu`,children:[x&&/* @__PURE__ */e(r,{variant:"settings",selected:"settings"===L,onClick:U,"aria-label":"Settings","data-testid":`${B}-settings-btn`,"data-cy":`${q}-settings-btn`}),j&&/* @__PURE__ */e(r,{variant:"user",initials:M,selected:"user"===L,onClick:H,"aria-label":M?`User menu - ${M}`:"User menu","data-testid":`${B}-user-btn`,"data-cy":`${q}-user-btn`}),null!=C&&/* @__PURE__ */e("button",{type:"button",onClick:N,className:"hidden max-lg:flex items-center justify-center p-2 bg-transparent border-none cursor-pointer","aria-label":"Open menu","data-testid":`${B}-hamburger`,"data-cy":`${q}-hamburger`,children:/* @__PURE__ */e(l,{name:"CustomHamburgerIcon",size:"lg",color:"text",decorative:!0})})]})]}),t]})});p.displayName="AuthLayout";export{p as AuthLayout};
|
package/dist/index59.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("react/jsx-runtime"),t=require("react"),n=require("./index67.cjs"),a=require("./index117.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/index59.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import{forwardRef as a}from"react";import{cn as e}from"./index67.js";import{mainContentBaseStyles as n}from"./index117.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/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("./index74.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"./index74.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"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),a=require("react"),t=require("./index67.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/index60.js
CHANGED
|
@@ -1 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import{jsxs as e,jsx as a}from"react/jsx-runtime";import{forwardRef as t}from"react";import{cn as s}from"./index67.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/index61.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("react"),t=require("./index67.cjs"),r=require("./index118.cjs"),a=require("./index70.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/index61.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import{forwardRef as r,useMemo as i}from"react";import{cn as e}from"./index67.js";import{columnGapMap as o,rowGapMap as a,gridColumnsMap as s,gapMap as d,alignMap as c,justifyMap as m,gridRowsMap as n}from"./index118.js";import{getResponsiveBase as l,getResponsiveClasses as p}from"./index70.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/index62.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/jsx-runtime"),t=require("react"),r=require("./index67.cjs"),a=require("./index119.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/index62.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import{forwardRef as e}from"react";import{cn as r}from"./index67.js";import{alignStyles as a,colorStyles as i,weightStyles as s,sizeStyles as c,rootStyles as m}from"./index119.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/index63.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("react/jsx-runtime"),t=require("react"),r=require("./index67.cjs"),i=require("./index120.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/index63.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
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"./index67.js";import{levelToSizeMap as d,alignStyles as s,colorStyles as n,weightStyles as o,sizeStyles as c,rootStyles as l}from"./index120.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/index64.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("react/jsx-runtime"),i=require("react"),s=require("./index67.cjs"),r=require("./index121.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/index64.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{forwardRef as i}from"react";import{cn as a}from"./index67.js";import{disabledStyles as t,underlineStyles as r,weightClasses as d,sizeClasses as n,colorClasses as o,rootStyles as m}from"./index121.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/index65.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("./index67.cjs"),t=require("./index122.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)"}),e.jsx("stop",{offset:"100%",stopColor:"var(--color-button-orange)",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/index65.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import{jsxs as
|
|
2
|
-
return
|
|
3
|
-
/* @__PURE__ */e("
|
|
4
|
-
/* @__PURE__ */
|
|
5
|
-
/* @__PURE__ */
|
|
6
|
-
/* @__PURE__ */
|
|
7
|
-
/* @__PURE__ */
|
|
8
|
-
/* @__PURE__ */
|
|
9
|
-
/* @__PURE__ */
|
|
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"./index67.js";import{svgStyles as s,colorStyles as i,sizeStyles as c,rootStyles as l}from"./index122.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)"}),
|
|
6
|
+
/* @__PURE__ */e("stop",{offset:"100%",stopColor:"var(--color-button-orange)",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/index66.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=require("react/jsx-runtime"),s=require("react"),a=require("./index67.cjs"),r=require("./index123.cjs"),t=s.forwardRef(({size:t="md",label:i="AI is processing",className:n,"data-cy":l,"data-testid":o,...c},d)=>{const u=`ai-loader-grad-${s.useId().replace(/:/g,"")}`,m=l||"ai-loader",C=o||"ai-loader";return e.jsxs("div",{ref:d,className:a.cn(r.rootStyles,r.containerStyles[t],n),role:"status","aria-label":i,"data-cy":m,"data-testid":C,...c,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:u,x1:"0%",y1:"0%",x2:"100%",y2:"100%",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{offset:"0%",stopColor:"var(--color-lime)"}),e.jsx("stop",{offset:"50%",stopColor:"var(--color-teal-bright)"}),e.jsx("stop",{offset:"100%",stopColor:"var(--color-button-blue)"})]})}),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(#${u})`,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(#${u})`,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(#${u})`,className:"origin-center"})})]}),e.jsx("span",{className:"sr-only",children:i})]})});t.displayName="AiLoader",exports.AiLoader=t;
|
package/dist/index66.js
CHANGED
|
@@ -1 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
import{jsxs as e,jsx as a}from"react/jsx-runtime";import{forwardRef as i,useId as s}from"react";import{cn as t}from"./index67.js";import{containerStyles as r,rootStyles as n}from"./index123.js";const l=i(({size:i="md",label:l="AI is processing",className:o,"data-cy":c,"data-testid":d,...m},C)=>{const f=`ai-loader-grad-${s().replace(/:/g,"")}`,p=c||"ai-loader",u=d||"ai-loader";/* @__PURE__ */
|
|
2
|
+
return e("div",{ref:C,className:t(n,r[i],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:"var(--color-lime)"}),
|
|
6
|
+
/* @__PURE__ */a("stop",{offset:"50%",stopColor:"var(--color-teal-bright)"}),
|
|
7
|
+
/* @__PURE__ */a("stop",{offset:"100%",stopColor:"var(--color-button-blue)"})]})}),
|
|
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/index67.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("clsx"),t=require("tailwind-merge"),r=require("./index124.cjs"),n=t.extendTailwindMerge({extend:{theme:{text:r.FONT_SIZE_SCALE,leading:r.LINE_HEIGHT_SCALE}}});let i=0;exports.cn=function(...t){return n(e.clsx(t))},exports.generateId=function(e="id"){return i+=1,`${e}-${i}`};
|
package/dist/index67.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{clsx as t}from"clsx";import{extendTailwindMerge as e}from"tailwind-merge";import{LINE_HEIGHT_SCALE as r,FONT_SIZE_SCALE as n}from"./index124.js";const i=e({extend:{theme:{text:n,leading:r}}});function o(...e){return i(t(e))}let m=0;function d(t="id"){return m+=1,`${t}-${m}`}export{o as cn,d as generateId};
|
package/dist/index68.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=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/index68.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
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/index69.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/index69.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
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/index7.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("./index67.cjs"),r=require("./index11.cjs"),s=require("./index19.cjs");exports.EmailForm=function({title:o="Email details",companyName:n="Your Company name",poweredByText:l="Powered by",brandName:i="Adam Milo",templateName:c="Default email",instructionText:d="You can edit the email subject and message before sending.",subject:m,defaultSubject:u="Invitation to continue your application",onSubjectChange:x,onSubjectBlur:p,message:v,defaultMessage:h="Hi,\nThank you for your interest in this opportunity.\nAs part of the process, we'd like to invite you to complete a short online assessment.\nPlease follow the instructions below to begin.",onMessageChange:g,onMessageBlur:f,footerText:b="*Please use a stable internet connection via Chrome or Firefox browsers only\n\nIf you have a certificate allowing adjustments in the test (such as extra time) please contact the organization to which you applied for.\n\nIf you need a transcript, a test in black and white, or any other accessibility adjustments - please contact our support team at: support@adam-milo.com\n\nGood Luck,\n\n[Your company name]",className:j,"data-cy":y="email-form","data-testid":w="email-form"}){const[N,S]=a.useState(u),[C,E]=a.useState(h);a.useEffect(()=>{void 0===m&&S(u)},[u,m]),a.useEffect(()=>{void 0===v&&E(h)},[h,v]);const T=m??N,k=v??C;return e.jsx("div",{className:t.cn("w-full max-w-[60.5rem]",j),dir:"ltr","data-cy":y,"data-testid":w,children:e.jsxs("div",{className:"flex flex-col gap-[var(--spacing-6)]",children:[e.jsx("h3",{className:"text-18 font-bold leading-normal text-[var(--color-action)]",children:o}),e.jsxs("div",{className:"overflow-hidden rounded-[var(--radius-md)] border border-[var(--color-border)] bg-[var(--color-card)]",children:[e.jsxs("div",{className:"flex h-[2rem] items-center justify-between bg-[var(--color-email-strip-bg)] ps-[0.5rem] pe-[0.75rem] py-[0.25rem]",children:[e.jsxs("div",{className:"flex items-center gap-[var(--spacing-3)]",children:[e.jsx("div",{className:"flex h-full w-[7.5rem] items-center justify-center rounded-[0.125rem] bg-[var(--color-overlay-black-10)] px-[0.25rem]",children:e.jsx("span",{className:"whitespace-nowrap text-center text-12 font-normal leading-normal text-[var(--color-card)]",children:n})}),e.jsxs("div",{className:"flex flex-col items-center justify-center text-center leading-normal",children:[e.jsx("span",{className:"whitespace-nowrap text-[0.5625rem] leading-normal text-[var(--color-system-text)]",children:l}),e.jsx("span",{className:"whitespace-nowrap text-[0.5625rem] font-bold leading-normal text-[var(--color-border)]",children:i})]})]}),e.jsx("span",{className:"whitespace-nowrap text-14 font-normal leading-normal text-[var(--color-card)]",children:c})]}),e.jsxs("div",{className:"flex flex-col gap-[var(--spacing-3)] bg-[var(--color-card)] p-[var(--spacing-3)]",children:[e.jsx("p",{className:"text-14 font-normal leading-normal text-[var(--color-system-text)]",children:d}),e.jsx(r.AlphanumericInput,{value:T,onChange:e=>{return a=e.target.value,void 0===m&&S(a),void x?.(a);var a},onBlur:e=>p?.(e.target.value.trim()),allowAllChars:!0,allowHyphen:!0,allowSpace:!0,allowUnderscore:!0,"aria-label":"Email subject","data-cy":`${y}-subject`,"data-testid":`${w}-subject`}),e.jsx(s.Textarea,{value:k,onChange:e=>{return a=e.target.value,void 0===v&&E(a),void g?.(a);var a},onBlur:e=>f?.(e.target.value.trim()),minRows:8,"aria-label":"Email body","data-cy":`${y}-message`,"data-testid":`${w}-message`}),e.jsx("div",{className:"border-t border-[var(--color-bg-secondary)] pt-[var(--spacing-2)] text-12 font-normal leading-14 text-[var(--color-icon-secondary)]",children:e.jsx("p",{className:"whitespace-pre-line text-[0.9rem]",children:b})})]})]})]})})};
|