@adam-milo/ui 1.0.100 → 1.0.101
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/index15.cjs +1 -1
- package/dist/index15.js +2 -2
- package/dist/index18.cjs +1 -1
- package/dist/index18.js +6 -6
- package/dist/index20.cjs +1 -1
- package/dist/index20.js +2 -2
- package/dist/index3.cjs +1 -1
- package/dist/index3.js +2 -2
- package/dist/index30.cjs +1 -1
- package/dist/index30.js +4 -4
- package/dist/index31.cjs +1 -1
- package/dist/index31.js +2 -2
- package/dist/index32.cjs +1 -1
- package/dist/index32.js +2 -2
- package/dist/index37.cjs +1 -1
- package/dist/index37.js +4 -4
- package/dist/index4.cjs +1 -1
- package/dist/index4.js +2 -2
- package/dist/index45.cjs +1 -1
- package/dist/index45.js +2 -2
- package/dist/index5.cjs +1 -1
- package/dist/index5.js +2 -2
- package/dist/index54.cjs +1 -1
- package/dist/index54.js +6 -6
- package/dist/index55.cjs +1 -1
- package/dist/index55.js +6 -6
- package/dist/index77.cjs +1 -1
- package/dist/index77.js +1 -1
- package/dist/src/components/core/button/Button.component.d.ts.map +1 -1
- package/dist/src/components/core/icon-button/IconButton.component.d.ts.map +1 -1
- package/dist/src/components/core/icon-button/IconButton.types.d.ts +1 -1
- package/dist/src/components/core/icon-button/IconButton.types.d.ts.map +1 -1
- package/dist/src/components/core/menu-icon-button/MenuIconButton.component.d.ts.map +1 -1
- package/dist/src/components/core/menu-icon-button/MenuIconButton.types.d.ts +1 -1
- package/dist/src/components/core/menu-icon-button/MenuIconButton.types.d.ts.map +1 -1
- package/dist/src/components/feedback/ai-loader/AiLoader.component.d.ts.map +1 -1
- package/dist/src/components/feedback/ai-loader/AiLoader.types.d.ts +1 -1
- package/dist/src/components/feedback/ai-loader/AiLoader.types.d.ts.map +1 -1
- package/dist/src/components/feedback/spinner/Spinner.component.d.ts.map +1 -1
- package/dist/src/components/feedback/spinner/Spinner.types.d.ts +1 -1
- package/dist/src/components/feedback/spinner/Spinner.types.d.ts.map +1 -1
- package/dist/src/components/feedback/toast/Toast.component.d.ts +1 -1
- package/dist/src/components/feedback/toast/Toast.component.d.ts.map +1 -1
- package/dist/src/components/feedback/toast/Toast.types.d.ts +1 -0
- package/dist/src/components/feedback/toast/Toast.types.d.ts.map +1 -1
- package/dist/src/components/forms/autocomplete/Autocomplete.component.d.ts.map +1 -1
- package/dist/src/components/forms/autocomplete/Autocomplete.types.d.ts +1 -0
- package/dist/src/components/forms/autocomplete/Autocomplete.types.d.ts.map +1 -1
- package/dist/src/components/forms/controlled/FormField.component.d.ts +1 -1
- package/dist/src/components/forms/controlled/FormField.component.d.ts.map +1 -1
- package/dist/src/components/forms/controlled/FormField.types.d.ts +1 -0
- package/dist/src/components/forms/controlled/FormField.types.d.ts.map +1 -1
- package/dist/src/components/forms/controlled/autocomplete/ControlledAutocomplete.component.d.ts +1 -1
- package/dist/src/components/forms/controlled/autocomplete/ControlledAutocomplete.component.d.ts.map +1 -1
- package/dist/src/components/forms/controlled/autocomplete/ControlledAutocomplete.types.d.ts +1 -0
- package/dist/src/components/forms/controlled/autocomplete/ControlledAutocomplete.types.d.ts.map +1 -1
- package/dist/src/components/forms/controlled/select/ControlledSelect.component.d.ts +1 -1
- package/dist/src/components/forms/controlled/select/ControlledSelect.component.d.ts.map +1 -1
- package/dist/src/components/forms/controlled/select/ControlledSelect.types.d.ts +1 -0
- package/dist/src/components/forms/controlled/select/ControlledSelect.types.d.ts.map +1 -1
- package/dist/src/components/forms/controlled/textarea/ControlledTextarea.component.d.ts +1 -1
- package/dist/src/components/forms/controlled/textarea/ControlledTextarea.component.d.ts.map +1 -1
- package/dist/src/components/forms/controlled/textarea/ControlledTextarea.types.d.ts +1 -0
- package/dist/src/components/forms/controlled/textarea/ControlledTextarea.types.d.ts.map +1 -1
- package/dist/src/components/forms/otp-input/OTPInput.component.d.ts.map +1 -1
- package/dist/src/components/forms/otp-input/OTPInput.types.d.ts +1 -0
- package/dist/src/components/forms/otp-input/OTPInput.types.d.ts.map +1 -1
- package/dist/src/components/layout/stack/Stack.component.d.ts.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index15.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),a=require("./index56.cjs"),r=require("./index70.cjs"),l=t.forwardRef(({length:l=4,label:s,value:i="",onChange:n,onComplete:c,error:d,helperText:o,disabled:u=!1,autoFocus:p=!1,fullWidth:f=!1,centered:y=!1,type:b="numeric",size:g="lg",required:h=!1,"data-cy"
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),a=require("./index56.cjs"),r=require("./index70.cjs"),l=t.forwardRef(({length:l=4,label:s,value:i="",onChange:n,onComplete:c,error:d,helperText:o,disabled:u=!1,autoFocus:p=!1,fullWidth:f=!1,centered:y=!1,type:b="numeric",size:g="lg",required:h=!1,className:m,"data-cy":$,"data-testid":v},x)=>{const S=t.useId(),k=`${S}-label`,D=`${S}-error`,j=`${S}-helper`,C=$||"otp-input",w=v||"otp-input",A="sm"===g?r.digitSizeSmStyles:r.digitSizeLgStyles,I=t.useRef([]),[N,E]=t.useState(()=>i.split("").slice(0,l).concat(Array(l).fill("")).slice(0,l));t.useEffect(()=>{const e=i.split("").slice(0,l).concat(Array(l).fill("")).slice(0,l);E(e)},[i,l]);const q=t.useCallback(e=>"numeric"===b?/^\d$/.test(e):/^[a-zA-Z0-9]$/.test(e),[b]),z=t.useCallback(e=>{E(e);const t=e.join("");n?.(t),e.every(e=>""!==e)&&e.length===l&&c?.(t)},[n,c,l]),P=t.useCallback(e=>{const t=I.current[e];t&&(t.focus(),t.select())},[]),T=t.useCallback((e,t)=>{const a=t.target.value;if(1===a.length&&q(a)){const t=[...N];t[e]=a,z(t),e<l-1&&P(e+1)}else if(a.length>1){const t=a.split("").filter(q),r=[...N];t.forEach((t,a)=>{e+a<l&&(r[e+a]=t)}),z(r);const s=r.findIndex(e=>""===e);P(-1===s?l-1:s)}},[N,l,q,z,P]),B=t.useCallback((e,t)=>{switch(t.key){case"Backspace":if(t.preventDefault(),N[e]){const t=[...N];t[e]="",z(t)}else if(e>0){const t=[...N];t[e-1]="",z(t),P(e-1)}break;case"Delete":if(t.preventDefault(),N[e]){const t=[...N];t[e]="",z(t)}break;case"ArrowLeft":t.preventDefault(),e>0&&P(e-1);break;case"ArrowRight":t.preventDefault(),e<l-1&&P(e+1);break;case"Home":t.preventDefault(),P(0);break;case"End":t.preventDefault(),P(l-1);break;default:if(1===t.key.length&&q(t.key)){t.preventDefault();const a=[...N];a[e]=t.key,z(a),e<l-1&&P(e+1)}}},[N,l,q,z,P]),O=t.useCallback((e,t)=>{t.preventDefault();const a=t.clipboardData.getData("text").split("").filter(q);if(0===a.length)return;const r=[...N];a.forEach((t,a)=>{e+a<l&&(r[e+a]=t)}),z(r);const s=r.findIndex(e=>""===e);P(-1===s?l-1:s)},[N,l,q,z,P]),F=t.useCallback(e=>{e.target.select()},[]);return t.useImperativeHandle(x,()=>({focus:()=>{const e=N.findIndex(e=>""===e);P(-1===e?l-1:e)},clear:()=>{const e=Array(l).fill("");z(e),P(0)},getValue:()=>N.join("")}),[N,l,P,z]),t.useEffect(()=>{p&&!u&&P(0)},[p,u,P]),e.jsxs("div",{className:a.cn(r.wrapperStyles,f&&r.wrapperFullWidthStyles,m),"data-cy":`${C}-wrapper`,"data-testid":`${w}-wrapper`,children:[s&&e.jsx("label",{id:k,className:a.cn(r.labelBaseStyles,d&&r.labelErrorStyles,u&&r.labelDisabledStyles),"data-cy":`${C}-label`,"data-testid":`${w}-label`,children:s}),e.jsx("div",{className:a.cn(r.containerBaseStyles,y&&r.containerCenteredStyles),role:"group","aria-labelledby":s?k:void 0,"aria-label":s?void 0:"OTP Input","data-cy":`${C}-container`,"data-testid":`${w}-container`,children:Array.from({length:l},(t,s)=>e.jsx("input",{ref:e=>{I.current[s]=e},type:"text",inputMode:"numeric"===b?"numeric":"text",pattern:"numeric"===b?"[0-9]*":"[a-zA-Z0-9]*",maxLength:1,value:N[s]||"",onChange:e=>T(s,e),onKeyDown:e=>B(s,e),onPaste:e=>O(s,e),onFocus:F,disabled:u,required:h,"aria-label":`Digit ${s+1} of ${l}`,"aria-invalid":d?"true":"false","aria-describedby":d?D:o?j:void 0,className:a.cn(r.digitBaseStyles,A,d&&r.digitErrorStyles),"data-otp-digit":!0,"data-cy":`${C}-digit-${s}`,"data-testid":`${w}-digit-${s}`,autoComplete:"one-time-code"},s))}),d&&e.jsx("span",{id:D,className:r.errorStyles,role:"alert","data-cy":`${C}-error`,"data-testid":`${w}-error`,children:d}),o&&!d&&e.jsx("span",{id:j,className:r.helperStyles,"data-cy":`${C}-helper`,"data-testid":`${w}-helper`,children:o})]})});l.displayName="OTPInput",exports.OTPInput=l;
|
package/dist/index15.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsxs as e,jsx as t}from"react/jsx-runtime";import{forwardRef as a,useId as r,useRef as i,useState as l,useEffect as n,useCallback as c,useImperativeHandle as s}from"react";import{cn as o}from"./index56.js";import{errorStyles as d,helperStyles as p,labelDisabledStyles as u,labelErrorStyles as f,labelBaseStyles as m,digitErrorStyles as h,digitSizeSmStyles as y,digitSizeLgStyles as g,digitBaseStyles as $,containerCenteredStyles as b,containerBaseStyles as v,wrapperFullWidthStyles as D,wrapperStyles as x}from"./index70.js";const k=a(({length:a=4,label:k,value:A="",onChange:N,onComplete:w,error:j,helperText:I,disabled:C=!1,autoFocus:z=!1,fullWidth:E=!1,centered:P=!1,type:T="numeric",size:q="lg",required:F=!1,"data-cy":
|
|
2
|
-
/* @__PURE__ */t("div",{className:o(v,P&&b),role:"group","aria-labelledby":k?
|
|
1
|
+
import{jsxs as e,jsx as t}from"react/jsx-runtime";import{forwardRef as a,useId as r,useRef as i,useState as l,useEffect as n,useCallback as c,useImperativeHandle as s}from"react";import{cn as o}from"./index56.js";import{errorStyles as d,helperStyles as p,labelDisabledStyles as u,labelErrorStyles as f,labelBaseStyles as m,digitErrorStyles as h,digitSizeSmStyles as y,digitSizeLgStyles as g,digitBaseStyles as $,containerCenteredStyles as b,containerBaseStyles as v,wrapperFullWidthStyles as D,wrapperStyles as x}from"./index70.js";const k=a(({length:a=4,label:k,value:A="",onChange:N,onComplete:w,error:j,helperText:I,disabled:C=!1,autoFocus:z=!1,fullWidth:E=!1,centered:P=!1,type:T="numeric",size:q="lg",required:F=!1,className:L,"data-cy":O,"data-testid":Z},B)=>{const H=r(),K=`${H}-label`,M=`${H}-error`,R=`${H}-helper`,V=O||"otp-input",W=Z||"otp-input",G="sm"===q?y:g,J=i([]),[Q,S]=l(()=>A.split("").slice(0,a).concat(Array(a).fill("")).slice(0,a));n(()=>{const e=A.split("").slice(0,a).concat(Array(a).fill("")).slice(0,a);S(e)},[A,a]);const U=c(e=>"numeric"===T?/^\d$/.test(e):/^[a-zA-Z0-9]$/.test(e),[T]),X=c(e=>{S(e);const t=e.join("");N?.(t),e.every(e=>""!==e)&&e.length===a&&w?.(t)},[N,w,a]),Y=c(e=>{const t=J.current[e];t&&(t.focus(),t.select())},[]),_=c((e,t)=>{const r=t.target.value;if(1===r.length&&U(r)){const t=[...Q];t[e]=r,X(t),e<a-1&&Y(e+1)}else if(r.length>1){const t=r.split("").filter(U),i=[...Q];t.forEach((t,r)=>{e+r<a&&(i[e+r]=t)}),X(i);const l=i.findIndex(e=>""===e);Y(-1===l?a-1:l)}},[Q,a,U,X,Y]),ee=c((e,t)=>{switch(t.key){case"Backspace":if(t.preventDefault(),Q[e]){const t=[...Q];t[e]="",X(t)}else if(e>0){const t=[...Q];t[e-1]="",X(t),Y(e-1)}break;case"Delete":if(t.preventDefault(),Q[e]){const t=[...Q];t[e]="",X(t)}break;case"ArrowLeft":t.preventDefault(),e>0&&Y(e-1);break;case"ArrowRight":t.preventDefault(),e<a-1&&Y(e+1);break;case"Home":t.preventDefault(),Y(0);break;case"End":t.preventDefault(),Y(a-1);break;default:if(1===t.key.length&&U(t.key)){t.preventDefault();const r=[...Q];r[e]=t.key,X(r),e<a-1&&Y(e+1)}}},[Q,a,U,X,Y]),te=c((e,t)=>{t.preventDefault();const r=t.clipboardData.getData("text").split("").filter(U);if(0===r.length)return;const i=[...Q];r.forEach((t,r)=>{e+r<a&&(i[e+r]=t)}),X(i);const l=i.findIndex(e=>""===e);Y(-1===l?a-1:l)},[Q,a,U,X,Y]),ae=c(e=>{e.target.select()},[]);return s(B,()=>({focus:()=>{const e=Q.findIndex(e=>""===e);Y(-1===e?a-1:e)},clear:()=>{const e=Array(a).fill("");X(e),Y(0)},getValue:()=>Q.join("")}),[Q,a,Y,X]),n(()=>{z&&!C&&Y(0)},[z,C,Y]),/* @__PURE__ */e("div",{className:o(x,E&&D,L),"data-cy":`${V}-wrapper`,"data-testid":`${W}-wrapper`,children:[k&&/* @__PURE__ */t("label",{id:K,className:o(m,j&&f,C&&u),"data-cy":`${V}-label`,"data-testid":`${W}-label`,children:k}),
|
|
2
|
+
/* @__PURE__ */t("div",{className:o(v,P&&b),role:"group","aria-labelledby":k?K:void 0,"aria-label":k?void 0:"OTP Input","data-cy":`${V}-container`,"data-testid":`${W}-container`,children:Array.from({length:a},(e,r)=>/* @__PURE__ */t("input",{ref:e=>{J.current[r]=e},type:"text",inputMode:"numeric"===T?"numeric":"text",pattern:"numeric"===T?"[0-9]*":"[a-zA-Z0-9]*",maxLength:1,value:Q[r]||"",onChange:e=>_(r,e),onKeyDown:e=>ee(r,e),onPaste:e=>te(r,e),onFocus:ae,disabled:C,required:F,"aria-label":`Digit ${r+1} of ${a}`,"aria-invalid":j?"true":"false","aria-describedby":j?M:I?R:void 0,className:o($,G,j&&h),"data-otp-digit":!0,"data-cy":`${V}-digit-${r}`,"data-testid":`${W}-digit-${r}`,autoComplete:"one-time-code"},r))}),j&&/* @__PURE__ */t("span",{id:M,className:d,role:"alert","data-cy":`${V}-error`,"data-testid":`${W}-error`,children:j}),I&&!j&&/* @__PURE__ */t("span",{id:R,className:p,"data-cy":`${V}-helper`,"data-testid":`${W}-helper`,children:I})]})});k.displayName="OTPInput";export{k as OTPInput};
|
package/dist/index18.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),a=require("./index56.cjs"),r=require("./index75.cjs"),l=()=>e.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:e.jsx("path",{d:"M5 7.5L10 12.5L15 7.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),s=t.forwardRef(({value:s,onValueChange:i,options:n,label:d,placeholder:o,error:c,helperText:u,fullWidth:p=!1,required:h=!1,disabled:y=!1,noResultsText:b="No results found","data-cy":
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),a=require("./index56.cjs"),r=require("./index75.cjs"),l=()=>e.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:e.jsx("path",{d:"M5 7.5L10 12.5L15 7.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),s=t.forwardRef(({value:s,onValueChange:i,options:n,label:d,placeholder:o,error:c,helperText:u,fullWidth:p=!1,required:h=!1,disabled:y=!1,noResultsText:b="No results found",className:f,"data-cy":v,"data-testid":m},x)=>{const[S,$]=t.useState(!1),[g,w]=t.useState(""),[j,k]=t.useState(-1),N=t.useId(),D=`${N}-error`,C=`${N}-helper`,E=`${N}-listbox`,q=v||"autocomplete",L=m||"autocomplete",R=t.useRef(null),A=t.useRef(null),F=t.useRef([]),M=t.useRef(!1),T=n.find(e=>e.value===s),I=d&&h&&!d.includes("*")?`${d} *`:d,O=S&&g?n.filter(e=>e.label.toLowerCase().includes(g.toLowerCase())):n,W=t.useCallback(()=>{y||($(!0),w(""),k(-1))},[y]),K=t.useCallback(()=>{$(!1),w(""),k(-1)},[]),P=t.useCallback(e=>{e.disabled||(i(e.value),K())},[i,K]);t.useEffect(()=>{const e=e=>{R.current&&!R.current.contains(e.target)&&K()};return S&&document.addEventListener("pointerdown",e),()=>{document.removeEventListener("pointerdown",e)}},[S,K]);const V=e=>{F.current[e]?.scrollIntoView?.({block:"nearest"})},B=(e,t)=>{const a=O.length;if(0===a)return-1;let r=e+t;for(;r>=0&&r<a;){if(!O[r].disabled)return r;r+=t}if(-1===e&&1===t)for(let l=0;l<a;l++)if(!O[l].disabled)return l;return-1===e?-1:e},H=S?g:T?.label??"",U=t.useCallback(e=>{R.current=e,"function"==typeof x?x(e):x&&(x.current=e)},[x]);return e.jsxs("div",{ref:U,className:a.cn(r.wrapperStyles,p&&r.wrapperFullWidthStyles,f),"data-cy":`${q}-wrapper`,"data-testid":`${L}-wrapper`,children:[d&&e.jsx("label",{htmlFor:`${N}-input`,className:a.cn(r.labelStyles,c&&r.labelErrorStyles,y&&r.labelDisabledStyles),"data-cy":`${q}-label`,"data-testid":`${L}-label`,children:I}),e.jsxs("div",{className:a.cn(r.triggerStyles,S&&r.triggerOpenStyles,c&&r.triggerErrorStyles,y&&r.triggerDisabledStyles),onClick:()=>{S||W(),A.current?.focus()},"data-cy":q,"data-testid":L,children:[!S&&T?.flag&&e.jsx("span",{className:r.flagStyles,"aria-hidden":"true",children:T.flag}),e.jsx("input",{ref:A,id:`${N}-input`,type:"text",role:"combobox",className:r.inputStyles,value:H,placeholder:o||d||"Select...","aria-expanded":S,"aria-haspopup":"listbox","aria-controls":S?E:void 0,"aria-autocomplete":"list","aria-activedescendant":j>=0?`${N}-option-${j}`:void 0,"aria-invalid":c?"true":"false","aria-required":h?"true":void 0,"aria-describedby":c?D:u?C:void 0,disabled:y,onChange:e=>{w(e.target.value),k(-1),S||W()},onFocus:()=>{S||M.current||W()},onKeyDown:e=>{switch(e.key){case"ArrowDown":{if(e.preventDefault(),!S)return void W();const t=B(j,1);-1!==t&&(k(t),V(t));break}case"ArrowUp":{if(e.preventDefault(),!S)return void W();const t=B(j,-1);-1!==t&&(k(t),V(t));break}case"Enter":e.preventDefault(),S&&j>=0&&O[j]&&P(O[j]);break;case"Escape":e.preventDefault(),K();break;case"Tab":S&&K()}},"data-cy":`${q}-input`,"data-testid":`${L}-input`}),e.jsx("span",{"aria-hidden":"true",className:a.cn(r.chevronStyles,S&&r.chevronOpenStyles),onMouseDown:e=>{e.preventDefault(),S?(M.current=!0,K(),A.current?.blur(),requestAnimationFrame(()=>{M.current=!1})):(W(),requestAnimationFrame(()=>A.current?.focus()))},onClick:e=>e.stopPropagation(),"data-cy":`${q}-chevron`,"data-testid":`${L}-chevron`,children:e.jsx(l,{})})]}),S&&e.jsx("div",{className:r.dropdownStyles,"data-cy":`${q}-dropdown`,"data-testid":`${L}-dropdown`,children:e.jsx("div",{id:E,role:"listbox",className:r.listStyles,"data-cy":`${q}-list`,"data-testid":`${L}-list`,children:0===O.length?e.jsx("div",{className:r.noResultsStyles,children:b}):O.map((t,l)=>{const i=t.value===s,n=l===j;return e.jsxs("div",{ref:e=>{F.current[l]=e},id:`${N}-option-${l}`,role:"option",tabIndex:-1,"aria-selected":i,"aria-disabled":t.disabled||void 0,className:a.cn(r.itemStyles,n&&r.itemHighlightedStyles,i&&!n&&r.itemSelectedStyles,t.disabled&&r.itemDisabledStyles),onClick:()=>P(t),onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),P(t))},onMouseEnter:()=>k(l),"data-cy":`${q}-item-${t.value}`,"data-testid":`${L}-item-${t.value}`,children:[t.flag&&e.jsx("span",{className:r.flagStyles,"aria-hidden":"true",children:t.flag}),t.label]},t.value)})})}),c&&e.jsx("span",{id:D,className:r.errorStyles,role:"alert","data-cy":`${q}-error`,"data-testid":`${L}-error`,children:c}),u&&!c&&e.jsx("span",{id:C,className:r.helperStyles,"data-cy":`${q}-helper`,"data-testid":`${L}-helper`,children:u})]})});s.displayName="Autocomplete",exports.Autocomplete=s;
|
package/dist/index18.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{jsxs as e,jsx as a}from"react/jsx-runtime";import{forwardRef as t,useState as r,useId as n,useRef as i,useCallback as o,useEffect as
|
|
2
|
-
return e("div",{ref:
|
|
3
|
-
/* @__PURE__ */e("div",{className:
|
|
4
|
-
/* @__PURE__ */a("input",{ref:
|
|
5
|
-
/* @__PURE__ */a("span",{"aria-hidden":"true",className:
|
|
6
|
-
return e("div",{ref:e=>{
|
|
1
|
+
import{jsxs as e,jsx as a}from"react/jsx-runtime";import{forwardRef as t,useState as r,useId as n,useRef as i,useCallback as o,useEffect as l}from"react";import{cn as d}from"./index56.js";import{flagStyles as s,inputStyles as c,dropdownStyles as u,listStyles as p,noResultsStyles as m,itemDisabledStyles as h,itemSelectedStyles as v,itemHighlightedStyles as f,itemStyles as b,errorStyles as $,helperStyles as w,labelDisabledStyles as y,labelErrorStyles as N,labelStyles as g,chevronOpenStyles as k,chevronStyles as x,triggerDisabledStyles as D,triggerErrorStyles as C,triggerOpenStyles as L,triggerStyles as E,wrapperFullWidthStyles as A,wrapperStyles as j}from"./index75.js";const q=()=>/* @__PURE__ */a("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:/* @__PURE__ */a("path",{d:"M5 7.5L10 12.5L15 7.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),F=t(({value:t,onValueChange:F,options:M,label:T,placeholder:I,error:K,helperText:V,fullWidth:W=!1,required:B=!1,disabled:P=!1,noResultsText:R="No results found",className:S,"data-cy":U,"data-testid":z},G)=>{const[H,J]=r(!1),[O,Q]=r(""),[X,Y]=r(-1),Z=n(),_=`${Z}-error`,ee=`${Z}-helper`,ae=`${Z}-listbox`,te=U||"autocomplete",re=z||"autocomplete",ne=i(null),ie=i(null),oe=i([]),le=i(!1),de=M.find(e=>e.value===t),se=T&&B&&!T.includes("*")?`${T} *`:T,ce=H&&O?M.filter(e=>e.label.toLowerCase().includes(O.toLowerCase())):M,ue=o(()=>{P||(J(!0),Q(""),Y(-1))},[P]),pe=o(()=>{J(!1),Q(""),Y(-1)},[]),me=o(e=>{e.disabled||(F(e.value),pe())},[F,pe]);l(()=>{const e=e=>{ne.current&&!ne.current.contains(e.target)&&pe()};return H&&document.addEventListener("pointerdown",e),()=>{document.removeEventListener("pointerdown",e)}},[H,pe]);const he=e=>{oe.current[e]?.scrollIntoView?.({block:"nearest"})},ve=(e,a)=>{const t=ce.length;if(0===t)return-1;let r=e+a;for(;r>=0&&r<t;){if(!ce[r].disabled)return r;r+=a}if(-1===e&&1===a)for(let n=0;n<t;n++)if(!ce[n].disabled)return n;return-1===e?-1:e},fe=H?O:de?.label??"",be=o(e=>{ne.current=e,"function"==typeof G?G(e):G&&(G.current=e)},[G]);/* @__PURE__ */
|
|
2
|
+
return e("div",{ref:be,className:d(j,W&&A,S),"data-cy":`${te}-wrapper`,"data-testid":`${re}-wrapper`,children:[T&&/* @__PURE__ */a("label",{htmlFor:`${Z}-input`,className:d(g,K&&N,P&&y),"data-cy":`${te}-label`,"data-testid":`${re}-label`,children:se}),
|
|
3
|
+
/* @__PURE__ */e("div",{className:d(E,H&&L,K&&C,P&&D),onClick:()=>{H||ue(),ie.current?.focus()},"data-cy":te,"data-testid":re,children:[!H&&de?.flag&&/* @__PURE__ */a("span",{className:s,"aria-hidden":"true",children:de.flag}),
|
|
4
|
+
/* @__PURE__ */a("input",{ref:ie,id:`${Z}-input`,type:"text",role:"combobox",className:c,value:fe,placeholder:I||T||"Select...","aria-expanded":H,"aria-haspopup":"listbox","aria-controls":H?ae:void 0,"aria-autocomplete":"list","aria-activedescendant":X>=0?`${Z}-option-${X}`:void 0,"aria-invalid":K?"true":"false","aria-required":B?"true":void 0,"aria-describedby":K?_:V?ee:void 0,disabled:P,onChange:e=>{Q(e.target.value),Y(-1),H||ue()},onFocus:()=>{H||le.current||ue()},onKeyDown:e=>{switch(e.key){case"ArrowDown":{if(e.preventDefault(),!H)return void ue();const a=ve(X,1);-1!==a&&(Y(a),he(a));break}case"ArrowUp":{if(e.preventDefault(),!H)return void ue();const a=ve(X,-1);-1!==a&&(Y(a),he(a));break}case"Enter":e.preventDefault(),H&&X>=0&&ce[X]&&me(ce[X]);break;case"Escape":e.preventDefault(),pe();break;case"Tab":H&&pe()}},"data-cy":`${te}-input`,"data-testid":`${re}-input`}),
|
|
5
|
+
/* @__PURE__ */a("span",{"aria-hidden":"true",className:d(x,H&&k),onMouseDown:e=>{e.preventDefault(),H?(le.current=!0,pe(),ie.current?.blur(),requestAnimationFrame(()=>{le.current=!1})):(ue(),requestAnimationFrame(()=>ie.current?.focus()))},onClick:e=>e.stopPropagation(),"data-cy":`${te}-chevron`,"data-testid":`${re}-chevron`,children:/* @__PURE__ */a(q,{})})]}),H&&/* @__PURE__ */a("div",{className:u,"data-cy":`${te}-dropdown`,"data-testid":`${re}-dropdown`,children:/* @__PURE__ */a("div",{id:ae,role:"listbox",className:p,"data-cy":`${te}-list`,"data-testid":`${re}-list`,children:0===ce.length?/* @__PURE__ */a("div",{className:m,children:R}):ce.map((r,n)=>{const i=r.value===t,o=n===X;/* @__PURE__ */
|
|
6
|
+
return e("div",{ref:e=>{oe.current[n]=e},id:`${Z}-option-${n}`,role:"option",tabIndex:-1,"aria-selected":i,"aria-disabled":r.disabled||void 0,className:d(b,o&&f,i&&!o&&v,r.disabled&&h),onClick:()=>me(r),onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),me(r))},onMouseEnter:()=>Y(n),"data-cy":`${te}-item-${r.value}`,"data-testid":`${re}-item-${r.value}`,children:[r.flag&&/* @__PURE__ */a("span",{className:s,"aria-hidden":"true",children:r.flag}),r.label]},r.value)})})}),K&&/* @__PURE__ */a("span",{id:_,className:$,role:"alert","data-cy":`${te}-error`,"data-testid":`${re}-error`,children:K}),V&&!K&&/* @__PURE__ */a("span",{id:ee,className:w,"data-cy":`${te}-helper`,"data-testid":`${re}-helper`,children:V})]})});F.displayName="Autocomplete";export{F as Autocomplete};
|
package/dist/index20.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("./index76.cjs");function o({control:o,name:t,rules:
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("./index76.cjs"),n=require("./index56.cjs");function o({control:o,name:t,rules:a,children:s,className:i,"data-cy":l,"data-testid":d}){const c=r.useFormContext(),u=o??c?.control;if(!u)throw new Error("FormField: `control` prop is required when not used inside a <Form> wrapper.");return e.jsx(r.Controller,{control:u,name:t,rules:a,render:({field:r,fieldState:o})=>e.jsx("div",{className:n.cn("contents",i),"data-cy":l,"data-testid":d,children:s({value:r.value,onChange:r.onChange,onBlur:r.onBlur,ref:r.ref,error:o.error?.message,name:r.name})})})}o.displayName="FormField",exports.FormField=o;
|
package/dist/index20.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as e}from"react/jsx-runtime";import{useFormContext as r,Controller as
|
|
2
|
-
return e(
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{useFormContext as r,Controller as o}from"./index76.js";import{cn as n}from"./index56.js";function a({control:a,name:t,rules:i,children:d,className:l,"data-cy":s,"data-testid":m}){const c=r(),u=a??c?.control;if(!u)throw new Error("FormField: `control` prop is required when not used inside a <Form> wrapper.");/* @__PURE__ */
|
|
2
|
+
return e(o,{control:u,name:t,rules:i,render:({field:r,fieldState:o})=>/* @__PURE__ */e("div",{className:n("contents",l),"data-cy":s,"data-testid":m,children:d({value:r.value,onChange:r.onChange,onBlur:r.onBlur,ref:r.ref,error:o.error?.message,name:r.name})})})}a.displayName="FormField";export{a as FormField};
|
package/dist/index3.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),s=require("./index56.cjs"),i=require("./index60.cjs"),n=t.forwardRef(({variant:t,fullWidth:n=!1,icon:r,iconPosition:a="left",className:l,children:c,disabled:d,"data-testid":o,"data-cy":u,...f},x)=>{const b=s.cn(t&&i.baseStyles,t&&i.variantStyles[t],n&&"w-full",l);return e.jsxs("button",{ref:x,disabled:d,className:b,"data-testid":o||(t?`button-${t}`:"button"),"data-cy":u||(t?`button-${t}`:"button"),...f,children:[r&&"left"===a&&e.jsx("span",{className:"inline-flex items-center justify-center w-3.5 h-3.5 flex-shrink-0",children:r}),c,r&&"right"===a&&e.jsx("span",{className:"inline-flex items-center justify-center w-3.5 h-3.5 flex-shrink-0",children:r})]})});n.displayName="Button",exports.Button=n;
|
package/dist/index3.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsxs as t,jsx as e}from"react/jsx-runtime";import{forwardRef as i}from"react";import{cn as n}from"./index56.js";import{variantStyles as
|
|
2
|
-
return t("button",{ref:p,disabled:m,className:x,"data-testid":f
|
|
1
|
+
import{jsxs as t,jsx as e}from"react/jsx-runtime";import{forwardRef as i}from"react";import{cn as n}from"./index56.js";import{variantStyles as r,baseStyles as s}from"./index60.js";const a=i(({variant:i,fullWidth:a=!1,icon:l,iconPosition:o="left",className:c,children:d,disabled:m,"data-testid":f,"data-cy":u,...h},p)=>{const x=n(i&&s,i&&r[i],a&&"w-full",c);/* @__PURE__ */
|
|
2
|
+
return t("button",{ref:p,disabled:m,className:x,"data-testid":f||(i?`button-${i}`:"button"),"data-cy":u||(i?`button-${i}`:"button"),...h,children:[l&&"left"===o&&/* @__PURE__ */e("span",{className:"inline-flex items-center justify-center w-3.5 h-3.5 flex-shrink-0",children:l}),d,l&&"right"===o&&/* @__PURE__ */e("span",{className:"inline-flex items-center justify-center w-3.5 h-3.5 flex-shrink-0",children:l})]})});a.displayName="Button";export{a as Button};
|
package/dist/index30.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),l=require("./index20.cjs"),t=require("./index13.cjs");function r({control:r,name:a,rules:
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),l=require("./index20.cjs"),t=require("./index13.cjs");function r({control:r,name:a,rules:c,options:d,label:n,placeholder:o,fullWidth:s=!1,required:i,disabled:u,helperText:h,className:x,"data-cy":g,"data-testid":m}){return e.jsx(l.FormField,{control:r,name:a,rules:c,className:x,"data-cy":g,"data-testid":m,children:({value:l,onChange:r,error:a})=>e.jsxs(t.Select,{value:l??"",onValueChange:r,disabled:u,children:[e.jsx(t.SelectTrigger,{label:n,placeholder:o,fullWidth:s,hasValue:!!l,error:a,helperText:h,required:i,disabled:u,"data-cy":g??"controlled-select-trigger","data-testid":m??"controlled-select-trigger",children:e.jsx(t.SelectValue,{})}),e.jsx(t.SelectContent,{"data-cy":g?`${g}-content`:"controlled-select-content",children:d.map(l=>e.jsx(t.SelectItem,{value:l.value,flag:l.flag,"data-cy":`select-item-${l.value}`,children:l.label},l.value))})]})})}r.displayName="ControlledSelect",exports.ControlledSelect=r;
|
package/dist/index30.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{jsx as e,jsxs as l}from"react/jsx-runtime";import{FormField as
|
|
2
|
-
return e(
|
|
3
|
-
/* @__PURE__ */e(r,{label:h,placeholder:m,fullWidth:p,hasValue:!!
|
|
4
|
-
/* @__PURE__ */e(o,{"data-cy":
|
|
1
|
+
import{jsx as e,jsxs as l}from"react/jsx-runtime";import{FormField as a}from"./index20.js";import{Select as t,SelectTrigger as r,SelectValue as d,SelectContent as o,SelectItem as c}from"./index13.js";function n({control:n,name:i,rules:s,options:u,label:h,placeholder:m,fullWidth:p=!1,required:f,disabled:g,helperText:b,className:v,"data-cy":x,"data-testid":y}){/* @__PURE__ */
|
|
2
|
+
return e(a,{control:n,name:i,rules:s,className:v,"data-cy":x,"data-testid":y,children:({value:a,onChange:n,error:i})=>/* @__PURE__ */l(t,{value:a??"",onValueChange:n,disabled:g,children:[
|
|
3
|
+
/* @__PURE__ */e(r,{label:h,placeholder:m,fullWidth:p,hasValue:!!a,error:i,helperText:b,required:f,disabled:g,"data-cy":x??"controlled-select-trigger","data-testid":y??"controlled-select-trigger",children:/* @__PURE__ */e(d,{})}),
|
|
4
|
+
/* @__PURE__ */e(o,{"data-cy":x?`${x}-content`:"controlled-select-content",children:u.map(l=>/* @__PURE__ */e(c,{value:l.value,flag:l.flag,"data-cy":`select-item-${l.value}`,children:l.label},l.value))})]})})}n.displayName="ControlledSelect";export{n as ControlledSelect};
|
package/dist/index31.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("./index20.cjs"),l=require("./index18.cjs");function o({control:o,name:r,rules:a,options:d,label:
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("./index20.cjs"),l=require("./index18.cjs");function o({control:o,name:r,rules:a,options:d,label:s,placeholder:n,fullWidth:u=!1,required:c,disabled:i,helperText:p,noResultsText:m,className:x,"data-cy":h,"data-testid":b}){return e.jsx(t.FormField,{control:o,name:r,rules:a,"data-cy":h,"data-testid":b,children:({value:t,onChange:o,error:r})=>e.jsx(l.Autocomplete,{value:t??"",onValueChange:o,options:d,label:s,placeholder:n,fullWidth:u,required:c,disabled:i,error:r,helperText:p,noResultsText:m,className:x,"data-cy":h??"controlled-autocomplete","data-testid":b??"controlled-autocomplete"})})}o.displayName="ControlledAutocomplete",exports.ControlledAutocomplete=o;
|
package/dist/index31.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as e}from"react/jsx-runtime";import{FormField as t}from"./index20.js";import{Autocomplete as l}from"./index18.js";function o({control:o,name:
|
|
2
|
-
return e(t,{control:o,name:
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{FormField as t}from"./index20.js";import{Autocomplete as l}from"./index18.js";function o({control:o,name:a,rules:r,options:d,label:n,placeholder:s,fullWidth:i=!1,required:c,disabled:u,helperText:m,noResultsText:p,className:h,"data-cy":x,"data-testid":f}){/* @__PURE__ */
|
|
2
|
+
return e(t,{control:o,name:a,rules:r,"data-cy":x,"data-testid":f,children:({value:t,onChange:o,error:a})=>/* @__PURE__ */e(l,{value:t??"",onValueChange:o,options:d,label:n,placeholder:s,fullWidth:i,required:c,disabled:u,error:a,helperText:m,noResultsText:p,className:h,"data-cy":x??"controlled-autocomplete","data-testid":f??"controlled-autocomplete"})})}o.displayName="ControlledAutocomplete";export{o as ControlledAutocomplete};
|
package/dist/index32.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("./index20.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("./index20.cjs"),a=require("./index17.cjs");function r({control:r,name:o,rules:l,label:s,tooltip:d,placeholder:i,fullWidth:n=!1,required:u,disabled:c,helperText:h,autoResize:m,minRows:x,maxRows:p,rows:g,showCharCount:b,maxLength:w,validate:C,customHeader:j,customFooterActions:v,borderVariant:y,height:R,className:T,"data-cy":q,"data-testid":f}){return e.jsx(t.FormField,{control:r,name:o,rules:l,"data-cy":q,"data-testid":f,children:({value:t,onChange:r,onBlur:o,error:l})=>e.jsx(a.Textarea,{value:t??"",onChange:e=>r(e.target.value),onBlur:o,label:s,tooltip:d,placeholder:i,fullWidth:n,required:u,disabled:c,error:l,helperText:h,className:T,autoResize:m,minRows:x,maxRows:p,rows:g,showCharCount:b,maxLength:w,validate:C,customHeader:j,customFooterActions:v,borderVariant:y,height:R,"data-cy":q??"controlled-textarea","data-testid":f??"controlled-textarea"})})}r.displayName="ControlledTextarea",exports.ControlledTextarea=r;
|
package/dist/index32.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as e}from"react/jsx-runtime";import{FormField as t}from"./index20.js";import{Textarea as
|
|
2
|
-
return e(t,{control:
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{FormField as t}from"./index20.js";import{Textarea as a}from"./index17.js";function o({control:o,name:r,rules:l,label:d,tooltip:i,placeholder:s,fullWidth:n=!1,required:m,disabled:u,helperText:c,autoResize:h,minRows:x,maxRows:p,rows:w,showCharCount:g,maxLength:C,validate:b,customHeader:f,customFooterActions:R,borderVariant:v,height:y,className:j,"data-cy":N,"data-testid":T}){/* @__PURE__ */
|
|
2
|
+
return e(t,{control:o,name:r,rules:l,"data-cy":N,"data-testid":T,children:({value:t,onChange:o,onBlur:r,error:l})=>/* @__PURE__ */e(a,{value:t??"",onChange:e=>o(e.target.value),onBlur:r,label:d,tooltip:i,placeholder:s,fullWidth:n,required:m,disabled:u,error:l,helperText:c,className:j,autoResize:h,minRows:x,maxRows:p,rows:w,showCharCount:g,maxLength:C,validate:b,customHeader:f,customFooterActions:R,borderVariant:v,height:y,"data-cy":N??"controlled-textarea","data-testid":T??"controlled-textarea"})})}o.displayName="ControlledTextarea";export{o as ControlledTextarea};
|
package/dist/index37.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),e=require("react"),s=require("./index81.cjs"),a=require("./index56.cjs"),i=require("./index82.cjs"),o=require("@adam-milo/icons"),n=e.createContext(null);exports.ToastProvider=function({children:r,duration:c=5e3,position:l="top-right",swipeDirection:d="right",label:u="Notifications","data-cy":
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),e=require("react"),s=require("./index81.cjs"),a=require("./index56.cjs"),i=require("./index82.cjs"),o=require("@adam-milo/icons"),n=e.createContext(null);exports.ToastProvider=function({children:r,duration:c=5e3,position:l="top-right",swipeDirection:d="right",label:u="Notifications",className:x,"data-cy":p,"data-testid":m}){const[y,h]=e.useState([]),j=e.useId(),S=e.useCallback(t=>{const e=`toast-${Date.now()}-${Math.random().toString(36).slice(2,9)}`;h(s=>[...s,{...t,id:e}])},[]),v=e.useCallback(t=>{h(e=>e.filter(e=>e.id!==t))},[]),w=e.useMemo(()=>({toast:S}),[S]);return t.jsx(n.Provider,{value:w,children:t.jsxs(s.Provider,{duration:c,swipeDirection:d,children:[r,y.map(n=>t.jsxs(s.Root,{duration:n.duration??c,onOpenChange:t=>{t||v(n.id)},className:a.cn(i.toastRootStyles,i.toastVariantStyles[n.variant??"default"]),"data-cy":"toast","data-testid":"toast",children:[t.jsxs("div",{className:i.toastContentStyles,children:[n.title&&t.jsx(s.Title,{className:i.toastTitleStyles,"data-cy":"toast-title","data-testid":"toast-title",children:n.title}),t.jsx(s.Description,{className:i.toastDescriptionStyles,"data-cy":"toast-description","data-testid":"toast-description",children:n.description}),n.action&&(e.isValidElement(n.action)?t.jsx(s.Action,{className:i.toastActionStyles,altText:n.actionAltText??"Action",asChild:!0,children:n.action}):t.jsx(s.Action,{className:i.toastActionStyles,altText:n.actionAltText??"Action",children:t.jsx("button",{type:"button",children:n.action})}))]}),t.jsx(s.Close,{className:i.toastCloseStyles,"aria-label":"Close","data-cy":"toast-close","data-testid":"toast-close",children:t.jsx(o.Icon,{name:"Cross2Icon",size:"sm",decorative:!0})})]},n.id)),t.jsx(s.Viewport,{id:j,className:a.cn(i.toastViewportStyles,i.toastViewportPositionStyles[l],x),"aria-label":u,"data-cy":p??"toast-viewport","data-testid":m??"toast-viewport"})]})})},exports.useToast=function(){const t=e.useContext(n);if(!t)throw new Error("useToast must be used within a ToastProvider");return t};
|
package/dist/index37.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{jsx as t,jsxs as a}from"react/jsx-runtime";import{useState as i,useId as
|
|
2
|
-
return t(D.Provider,{value:
|
|
3
|
-
/* @__PURE__ */a("div",{className:
|
|
1
|
+
import{jsx as t,jsxs as a}from"react/jsx-runtime";import{useState as i,useId as e,useCallback as o,useMemo as s,isValidElement as r,useContext as n,createContext as c}from"react";import{Provider as d,Root as l,Title as m,Description as p,Action as h,Close as u,Viewport as f}from"./index81.js";import{cn as N}from"./index56.js";import{toastContentStyles as x,toastTitleStyles as v,toastDescriptionStyles as w,toastActionStyles as y,toastCloseStyles as b,toastVariantStyles as T,toastRootStyles as g,toastViewportPositionStyles as j,toastViewportStyles as A}from"./index82.js";import{Icon as C}from"@adam-milo/icons";const D=c(null);function P({children:n,duration:c=5e3,position:P="top-right",swipeDirection:$="right",label:z="Notifications",className:E,"data-cy":I,"data-testid":M}){const[O,R]=i([]),S=e(),k=o(t=>{const a=`toast-${Date.now()}-${Math.random().toString(36).slice(2,9)}`;R(i=>[...i,{...t,id:a}])},[]),q=o(t=>{R(a=>a.filter(a=>a.id!==t))},[]),B=s(()=>({toast:k}),[k]);/* @__PURE__ */
|
|
2
|
+
return t(D.Provider,{value:B,children:/* @__PURE__ */a(d,{duration:c,swipeDirection:$,children:[n,O.map(i=>/* @__PURE__ */a(l,{duration:i.duration??c,onOpenChange:t=>{t||q(i.id)},className:N(g,T[i.variant??"default"]),"data-cy":"toast","data-testid":"toast",children:[
|
|
3
|
+
/* @__PURE__ */a("div",{className:x,children:[i.title&&/* @__PURE__ */t(m,{className:v,"data-cy":"toast-title","data-testid":"toast-title",children:i.title}),
|
|
4
4
|
/* @__PURE__ */t(p,{className:w,"data-cy":"toast-description","data-testid":"toast-description",children:i.description}),i.action&&(r(i.action)?/* @__PURE__ */t(h,{className:y,altText:i.actionAltText??"Action",asChild:!0,children:i.action}):/* @__PURE__ */t(h,{className:y,altText:i.actionAltText??"Action",children:/* @__PURE__ */t("button",{type:"button",children:i.action})}))]}),
|
|
5
5
|
/* @__PURE__ */t(u,{className:b,"aria-label":"Close","data-cy":"toast-close","data-testid":"toast-close",children:/* @__PURE__ */t(C,{name:"Cross2Icon",size:"sm",decorative:!0})})]},i.id)),
|
|
6
|
-
/* @__PURE__ */t(f,{id:
|
|
6
|
+
/* @__PURE__ */t(f,{id:S,className:N(A,j[P],E),"aria-label":z,"data-cy":I??"toast-viewport","data-testid":M??"toast-viewport"})]})})}function $(){const t=n(D);if(!t)throw new Error("useToast must be used within a ToastProvider");return t}export{P as ToastProvider,$ as useToast};
|
package/dist/index4.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("./index56.cjs"),i=require("@adam-milo/icons"),o=require("./index54.cjs"),n=require("./index61.cjs"),r={sm:"sm",md:"md",lg:"lg"},s={sm:"sm",md:"md",lg:"lg"},l=a.forwardRef(({size:l="md",variant:c="default",icon:d,children:u,
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),a=require("react"),t=require("./index56.cjs"),i=require("@adam-milo/icons"),o=require("./index54.cjs"),n=require("./index61.cjs"),r={sm:"sm",md:"md",lg:"lg"},s={sm:"sm",md:"md",lg:"lg"},l=a.forwardRef(({size:l="md",variant:c="default",icon:d,children:u,className:v,disabled:m,loading:b=!1,iconColor:y,iconStrokeWidth:g,"aria-label":x,"data-testid":f,"data-cy":w,...p},_)=>{const[h,j]=a.useState(!1),[S,q]=a.useState(!1),k=t.cn(n.baseStyles,n.variantStyles[c],n.sizeStyles[l],v),z=m||b,I=(()=>{if(!b&&!z)return"rainbow-overlay"===c?S?"var(--overlay-rainbow-50)":h?"var(--overlay-rainbow-40)":"var(--overlay-rainbow-15)":"outlined-green"===c?S?"var(--overlay-green-blue-15)":h?"var(--overlay-green-blue-10)":void 0:void 0})(),M=b?`${x||"Button"} - Loading`:x;return e.jsxs("button",{ref:_,type:"button",disabled:z,className:k,style:{...I&&{backgroundImage:I},...p.style},onMouseEnter:()=>!b&&j(!0),onMouseLeave:()=>j(!1),onMouseDown:()=>!b&&q(!0),onMouseUp:()=>q(!1),"aria-label":u?void 0:M,"aria-busy":b,"data-testid":f||"icon-button","data-cy":w||"icon-button",...p,children:[b?e.jsx(o.Spinner,{size:s[l],color:"teal",label:`${x||"Button"} loading`,"data-cy":"icon-button-spinner"}):y||g?e.jsx("span",{style:{...y&&{"--icon-fill":y},...g&&{"--icon-sw":g}},className:t.cn("inline-flex",y&&"[&_svg_path]:![fill:var(--icon-fill)] [&_svg_circle]:![fill:var(--icon-fill)] [&_svg_rect]:![fill:var(--icon-fill)]",g&&"[&_svg_path]:![stroke-width:var(--icon-sw)] [&_svg_circle]:![stroke-width:var(--icon-sw)] [&_svg_line]:![stroke-width:var(--icon-sw)]"),children:e.jsx(i.Icon,{name:d,size:r[l],decorative:!!u})}):e.jsx(i.Icon,{name:d,size:r[l],decorative:!!u}),u&&e.jsx("span",{className:"text-[var(--color-system-text)] font-normal whitespace-nowrap","data-cy":"icon-button-text",children:u})]})});l.displayName="IconButton",exports.IconButton=l;
|
package/dist/index4.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsxs as o,jsx as e}from"react/jsx-runtime";import{forwardRef as a,useState as i}from"react";import{cn as t}from"./index56.js";import{Icon as r}from"@adam-milo/icons";import{Spinner as n}from"./index54.js";import{sizeStyles as l,variantStyles as s,baseStyles as c}from"./index61.js";const d={sm:"sm",md:"md",lg:"lg"},m={sm:"sm",md:"md",lg:"lg"},v=a(({size:a="md",variant:v="default",icon:u,children:b,
|
|
2
|
-
return o("button",{ref:
|
|
1
|
+
import{jsxs as o,jsx as e}from"react/jsx-runtime";import{forwardRef as a,useState as i}from"react";import{cn as t}from"./index56.js";import{Icon as r}from"@adam-milo/icons";import{Spinner as n}from"./index54.js";import{sizeStyles as l,variantStyles as s,baseStyles as c}from"./index61.js";const d={sm:"sm",md:"md",lg:"lg"},m={sm:"sm",md:"md",lg:"lg"},v=a(({size:a="md",variant:v="default",icon:u,children:b,className:f,disabled:g,loading:p=!1,iconColor:y,iconStrokeWidth:w,"aria-label":_,"data-testid":h,"data-cy":x,...k},N)=>{const[j,z]=i(!1),[M,B]=i(!1),I=t(c,s[v],l[a],f),L=g||p,$=(()=>{if(!p&&!L)return"rainbow-overlay"===v?M?"var(--overlay-rainbow-50)":j?"var(--overlay-rainbow-40)":"var(--overlay-rainbow-15)":"outlined-green"===v?M?"var(--overlay-green-blue-15)":j?"var(--overlay-green-blue-10)":void 0:void 0})(),C=p?`${_||"Button"} - Loading`:_;/* @__PURE__ */
|
|
2
|
+
return o("button",{ref:N,type:"button",disabled:L,className:I,style:{...$&&{backgroundImage:$},...k.style},onMouseEnter:()=>!p&&z(!0),onMouseLeave:()=>z(!1),onMouseDown:()=>!p&&B(!0),onMouseUp:()=>B(!1),"aria-label":b?void 0:C,"aria-busy":p,"data-testid":h||"icon-button","data-cy":x||"icon-button",...k,children:[p?/* @__PURE__ */e(n,{size:m[a],color:"teal",label:`${_||"Button"} loading`,"data-cy":"icon-button-spinner"}):y||w?/* @__PURE__ */e("span",{style:{...y&&{"--icon-fill":y},...w&&{"--icon-sw":w}},className:t("inline-flex",y&&"[&_svg_path]:![fill:var(--icon-fill)] [&_svg_circle]:![fill:var(--icon-fill)] [&_svg_rect]:![fill:var(--icon-fill)]",w&&"[&_svg_path]:![stroke-width:var(--icon-sw)] [&_svg_circle]:![stroke-width:var(--icon-sw)] [&_svg_line]:![stroke-width:var(--icon-sw)]"),children:/* @__PURE__ */e(r,{name:u,size:d[a],decorative:!!b})}):/* @__PURE__ */e(r,{name:u,size:d[a],decorative:!!b}),b&&/* @__PURE__ */e("span",{className:"text-[var(--color-system-text)] font-normal whitespace-nowrap","data-cy":"icon-button-text",children:b})]})});v.displayName="IconButton";export{v as IconButton};
|
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("./index56.cjs"),t=require("./index91.cjs"),n=require("./index59.cjs"),a=s.forwardRef(({direction:a
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("react"),i=require("./index56.cjs"),t=require("./index91.cjs"),n=require("./index59.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:f,width:w,minWidth:b,maxWidth:j,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(f,e.pt),...n.getResponsiveClasses(f,e.pb)]},[C,h,y,u,x,k,f]),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(w,e,"w-"),...n.getResponsiveSizeClasses(b,s,"min-w-"),...n.getResponsiveSizeClasses(j,i,"max-w-"),...n.getResponsiveSizeClasses(B,a,"h-"),...n.getResponsiveSizeClasses(M,o,"min-h-"),...n.getResponsiveSizeClasses(E,d,"max-h-")]},[w,b,j,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!==f&&e(f)&&(s.paddingBlockStart=f,s.paddingBlockEnd=f);const i=e=>"string"==typeof e&&!t.isSizePreset(e)&&!n.isResponsiveObject(e);return void 0!==w&&i(w)&&(s.width=w),void 0!==b&&i(b)&&(s.minWidth=b),void 0!==j&&i(j)&&(s.maxWidth=j),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,f,w,b,j,B,M,E]),U=a??o??d??l??g?w??b??j?"flex min-w-0":"flex w-full 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"./index56.js";import{isSpacingToken as a,isSizePreset as
|
|
2
|
-
return i("div",{ref:Z,className:d(J??K??L?"flex min-w-0":"flex w-full min-w-0",ni,di,ai,
|
|
1
|
+
import{jsx as i}from"react/jsx-runtime";import{forwardRef as t,useMemo as n}from"react";import{cn as d}from"./index56.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 l,widthPresetStyles as c,minWidthPresetStyles as g,maxWidthPresetStyles as v,heightPresetStyles as h,minHeightPresetStyles as x,maxHeightPresetStyles as f}from"./index91.js";import{getResponsiveBase as k,getResponsiveClasses as y,getResponsiveSizeClasses as w,isResponsiveObject as S}from"./index59.js";const u=t(({direction:t,spacing:u,align:B,justify:E,wrap:I=!1,m:b,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 _=k(t)??"vertical",ii=V||`stack-${_}`,ti=X||`stack-${_}`,ni=n(()=>y(t,e),[t]),di=n(()=>y(u,o),[u]),ai=n(()=>y(B,r),[B]),mi=n(()=>y(E,p),[E]),ei=n(()=>{const i=s;return[...y(b,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)]},[b,j,H,W,N,$,O]),oi=n(()=>{const i=l;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=g,t=v,n=h,d=x,a=f;return[...w(J,c,"w-"),...w(K,i,"min-w-"),...w(L,t,"max-w-"),...w(M,n,"h-"),...w(P,d,"min-h-"),...w(Q,a,"max-h-")]},[J,K,L,M,P,Q]),pi=n(()=>{const i=i=>"string"==typeof i&&!a(i)&&!S(i),t={};void 0!==b&&i(b)&&(t.margin=b),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)&&!S(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},[b,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??u??B??E??I?J??K??L?"flex min-w-0":"flex w-full min-w-0":void 0,ni,di,ai,mi,I&&"flex-wrap",ei,oi,ri,R),style:pi?{...pi,...T}:T,"data-cy":ii,"data-testid":ti,...Y,children:U})});u.displayName="Stack";export{u as Stack};
|
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("./index56.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),s=require("./index56.cjs"),a=require("@adam-milo/icons"),i=require("./index62.cjs"),n={settings:"CustomMenuSettingsIcon",user:"CustomMenuUserIcon"},r=t.forwardRef(({variant:t,selected:r=!1,initials:c,className:o,disabled:l,"aria-label":d,"data-testid":u,"data-cy":m,...y},b)=>{const S=m||`menu-icon-button-${t}`,p=u||`menu-icon-button-${t}`,x=s.cn("group","menu-icon-button-border-mask",i.baseStyles,r&&i.selectedStyles,o);return e.jsx("button",{ref:b,type:"button",disabled:l,className:x,"aria-label":d,"aria-pressed":r,"data-testid":p,"data-cy":S,...y,children:"user"===t&&c?e.jsx("span",{className:s.cn(i.initialsBaseStyles,!r&&i.initialsHoverStyles,r&&i.initialsSelectedStyles),"data-cy":`${S}-initials`,"data-testid":`${p}-initials`,children:c.slice(0,2).toUpperCase()}):e.jsx("span",{className:s.cn(i.iconBaseStyles,!r&&i.iconHoverStyles,r&&i.iconSelectedStyles),"data-cy":`${S}-icon`,"data-testid":`${p}-icon`,children:e.jsx(a.Icon,{name:n[t],size:"lg",color:"inherit",decorative:!0})})})});r.displayName="MenuIconButton",exports.MenuIconButton=r;
|
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:x,type:"button",disabled:
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import{forwardRef as a}from"react";import{cn as e}from"./index56.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"./index62.js";const u={settings:"CustomMenuSettingsIcon",user:"CustomMenuUserIcon"},p=a(({variant:a,selected:p=!1,initials:b,className:f,disabled:y,"aria-label":$,"data-testid":N,"data-cy":g,...h},x)=>{const j=g||`menu-icon-button-${a}`,C=N||`menu-icon-button-${a}`,I=e("group","menu-icon-button-border-mask",n,p&&s,f);/* @__PURE__ */
|
|
2
|
+
return t("button",{ref:x,type:"button",disabled:y,className:I,"aria-label":$,"aria-pressed":p,"data-testid":C,"data-cy":j,...h,children:/* @__PURE__ */t("span","user"===a&&b?{className:e(c,!p&&r,p&&o),"data-cy":`${j}-initials`,"data-testid":`${C}-initials`,children:b.slice(0,2).toUpperCase()}:{className:e(l,!p&&m,p&&d),"data-cy":`${j}-icon`,"data-testid":`${C}-icon`,children:/* @__PURE__ */t(i,{name:u[a],size:"lg",color:"inherit",decorative:!0})})})});p.displayName="MenuIconButton";export{p as MenuIconButton};
|
package/dist/index54.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("react"),s=require("./index56.cjs"),t=require("./index99.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("react"),s=require("./index56.cjs"),t=require("./index99.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/index54.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
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"./index56.js";import{svgStyles as s,colorStyles as i,sizeStyles as c,rootStyles as
|
|
2
|
-
return r("div",{ref:
|
|
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,
|
|
4
|
-
/* @__PURE__ */e("defs",{children:/* @__PURE__ */r("linearGradient",{id:
|
|
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"./index56.js";import{svgStyles as s,colorStyles as i,sizeStyles as c,rootStyles as l}from"./index99.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
5
|
/* @__PURE__ */e("stop",{offset:"0%",stopColor:"var(--color-button-orange-border, #ed6827)"}),
|
|
6
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"===
|
|
7
|
+
/* @__PURE__ */e("circle",{cx:"12",cy:"12",r:"10",stroke:"orange"===d?N:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeDasharray:"47 16"})]}:{children:[
|
|
8
8
|
/* @__PURE__ */e("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round"}),
|
|
9
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})]})});
|
|
10
|
+
/* @__PURE__ */e("span",{className:"sr-only",children:m})]})});d.displayName="Spinner";export{d as Spinner};
|
package/dist/index55.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("react"),a=require("./index56.cjs"),i=require("./index100.cjs"),t=s.forwardRef(({size:t="md",label:r="AI is processing","data-cy":
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("react"),a=require("./index56.cjs"),i=require("./index100.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/index55.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import{jsxs as e,jsx as a}from"react/jsx-runtime";import{forwardRef as
|
|
2
|
-
return e("div",{ref:
|
|
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"./index56.js";import{containerStyles as n,rootStyles as r}from"./index100.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
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:
|
|
4
|
+
/* @__PURE__ */a("defs",{children:/* @__PURE__ */e("linearGradient",{id:f,x1:"0%",y1:"0%",x2:"100%",y2:"100%",gradientUnits:"userSpaceOnUse",children:[
|
|
5
5
|
/* @__PURE__ */a("stop",{offset:"0%",stopColor:"#8FE96D"}),
|
|
6
6
|
/* @__PURE__ */a("stop",{offset:"50%",stopColor:"#41C2C4"}),
|
|
7
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(#${
|
|
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(#${
|
|
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(#${
|
|
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
11
|
/* @__PURE__ */a("span",{className:"sr-only",children:l})]})});l.displayName="AiLoader";export{l as AiLoader};
|
package/dist/index77.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=["flex items-center gap-0 border-b border-transparent h-full","max-sm:w-full max-sm:overflow-x-auto max-sm:[scrollbar-width:none] max-sm:[&::-webkit-scrollbar]:hidden"].join(" "),t=["inline-flex items-center p-0 gap-0 rounded-lg bg-[rgba(255,255,255,0.43)] border border-white","max-sm:w-full max-sm:justify-start max-sm:overflow-x-auto max-sm:[scrollbar-width:none] max-sm:[&::-webkit-scrollbar]:hidden"].join(" "),o=["inline-flex items-center p-1 gap-1 rounded-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=["flex items-center gap-0 border-b border-transparent h-full","max-sm:w-full max-sm:overflow-x-auto max-sm:[scrollbar-width:none] max-sm:[&::-webkit-scrollbar]:hidden"].join(" "),t=["inline-flex items-center p-0 gap-0 rounded-lg bg-[rgba(255,255,255,0.43)] border border-white","max-sm:w-full max-sm:justify-start max-sm:overflow-x-auto max-sm:[scrollbar-width:none] max-sm:[&::-webkit-scrollbar]:hidden"].join(" "),o=["inline-flex items-center p-1 gap-1 rounded-[0.75rem] bg-[var(--color-bg-secondary,#F3F3F5)] border border-[var(--Grey-Grey-01,#F7F9FB)]","w-full justify-start overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden"].join(" "),r=["flex items-center justify-center whitespace-nowrap h-[5.3125rem] py-3 px-4 gap-2.5 min-[1320px]:w-[14.79rem]","text-[1.375rem] font-bold tracking-[0.0825rem] text-[#8C8C9C]","border-0 bg-transparent cursor-pointer select-none -mb-px","[border-bottom-width:4px] [border-bottom-style:solid] [border-bottom-color:transparent]","transition-[color,transform] duration-300 ease-in-out","focus-visible:outline-2 focus-visible:outline-[var(--color-clickable)] focus-visible:outline-offset-2 focus-visible:z-10","disabled:cursor-not-allowed disabled:opacity-50 disabled:pointer-events-none","data-[state=active]:text-[var(--color-clickable)] data-[state=active]:[border-bottom-color:transparent]","hover:text-[var(--color-clickable)]"].join(" "),a=["inline-flex items-center justify-center whitespace-nowrap w-[9.78rem] h-[3.375rem] rounded-lg text-[1.25rem] font-semibold","border-none bg-transparent text-[var(--color-clickable)] cursor-pointer select-none","transition-[background-color,color,box-shadow,transform] duration-500 ease-in-out","focus-visible:outline-2 focus-visible:outline-[var(--color-clickable)] focus-visible:outline-offset-2 focus-visible:z-10","disabled:cursor-not-allowed disabled:opacity-50 disabled:pointer-events-none","data-[state=active]:bg-[rgba(255,255,255,0.85)] data-[state=active]:text-[var(--color-clickable)] data-[state=active]:shadow-[0_4px_16px_0_rgba(0,0,0,0.05)] data-[state=active]:scale-[1.02]","hover:bg-[rgba(255,255,255,0.5)] [&:hover]:data-[state=active]:bg-[rgba(255,255,255,0.85)]"].join(" "),i=["inline-flex flex-1 items-center justify-center whitespace-nowrap rounded-[0.5rem] py-2 px-3 text-sm font-semibold","border-none bg-transparent text-[var(--color-clickable)] cursor-pointer select-none","transition-[background-color,color,box-shadow,transform] duration-300 ease-in-out","focus-visible:outline-2 focus-visible:outline-[var(--color-clickable)] focus-visible:outline-offset-2 focus-visible:z-10","disabled:cursor-not-allowed disabled:opacity-50 disabled:pointer-events-none","data-[state=active]:bg-white data-[state=active]:text-[var(--color-clickable)] data-[state=active]:shadow-[0_4px_16px_0_rgba(0,0,0,0.05)] data-[state=active]:scale-[1.02]","hover:bg-[rgba(255,255,255,0.7)] [&:hover]:data-[state=active]:bg-white"].join(" ");exports.contentStyles="mt-2 focus-visible:outline-2 focus-visible:outline-[var(--color-clickable)] focus-visible:outline-offset-2 focus-visible:rounded",exports.listFullWidthStyles="w-full [&>button]:flex-1 [&>button]:min-w-0 [&>button]:basis-0",exports.listMobileStyles=o,exports.listStyles=e,exports.listTableStyles=t,exports.triggerMobileStyles=i,exports.triggerStyles=r,exports.triggerTableStyles=a;
|
package/dist/index77.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=["flex items-center gap-0 border-b border-transparent h-full","max-sm:w-full max-sm:overflow-x-auto max-sm:[scrollbar-width:none] max-sm:[&::-webkit-scrollbar]:hidden"].join(" "),
|
|
1
|
+
const e=["flex items-center gap-0 border-b border-transparent h-full","max-sm:w-full max-sm:overflow-x-auto max-sm:[scrollbar-width:none] max-sm:[&::-webkit-scrollbar]:hidden"].join(" "),t=["inline-flex items-center p-0 gap-0 rounded-lg bg-[rgba(255,255,255,0.43)] border border-white","max-sm:w-full max-sm:justify-start max-sm:overflow-x-auto max-sm:[scrollbar-width:none] max-sm:[&::-webkit-scrollbar]:hidden"].join(" "),o=["inline-flex items-center p-1 gap-1 rounded-[0.75rem] bg-[var(--color-bg-secondary,#F3F3F5)] border border-[var(--Grey-Grey-01,#F7F9FB)]","w-full justify-start overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden"].join(" "),r="w-full [&>button]:flex-1 [&>button]:min-w-0 [&>button]:basis-0",a=["flex items-center justify-center whitespace-nowrap h-[5.3125rem] py-3 px-4 gap-2.5 min-[1320px]:w-[14.79rem]","text-[1.375rem] font-bold tracking-[0.0825rem] text-[#8C8C9C]","border-0 bg-transparent cursor-pointer select-none -mb-px","[border-bottom-width:4px] [border-bottom-style:solid] [border-bottom-color:transparent]","transition-[color,transform] duration-300 ease-in-out","focus-visible:outline-2 focus-visible:outline-[var(--color-clickable)] focus-visible:outline-offset-2 focus-visible:z-10","disabled:cursor-not-allowed disabled:opacity-50 disabled:pointer-events-none","data-[state=active]:text-[var(--color-clickable)] data-[state=active]:[border-bottom-color:transparent]","hover:text-[var(--color-clickable)]"].join(" "),i=["inline-flex items-center justify-center whitespace-nowrap w-[9.78rem] h-[3.375rem] rounded-lg text-[1.25rem] font-semibold","border-none bg-transparent text-[var(--color-clickable)] cursor-pointer select-none","transition-[background-color,color,box-shadow,transform] duration-500 ease-in-out","focus-visible:outline-2 focus-visible:outline-[var(--color-clickable)] focus-visible:outline-offset-2 focus-visible:z-10","disabled:cursor-not-allowed disabled:opacity-50 disabled:pointer-events-none","data-[state=active]:bg-[rgba(255,255,255,0.85)] data-[state=active]:text-[var(--color-clickable)] data-[state=active]:shadow-[0_4px_16px_0_rgba(0,0,0,0.05)] data-[state=active]:scale-[1.02]","hover:bg-[rgba(255,255,255,0.5)] [&:hover]:data-[state=active]:bg-[rgba(255,255,255,0.85)]"].join(" "),l=["inline-flex flex-1 items-center justify-center whitespace-nowrap rounded-[0.5rem] py-2 px-3 text-sm font-semibold","border-none bg-transparent text-[var(--color-clickable)] cursor-pointer select-none","transition-[background-color,color,box-shadow,transform] duration-300 ease-in-out","focus-visible:outline-2 focus-visible:outline-[var(--color-clickable)] focus-visible:outline-offset-2 focus-visible:z-10","disabled:cursor-not-allowed disabled:opacity-50 disabled:pointer-events-none","data-[state=active]:bg-white data-[state=active]:text-[var(--color-clickable)] data-[state=active]:shadow-[0_4px_16px_0_rgba(0,0,0,0.05)] data-[state=active]:scale-[1.02]","hover:bg-[rgba(255,255,255,0.7)] [&:hover]:data-[state=active]:bg-white"].join(" "),s="mt-2 focus-visible:outline-2 focus-visible:outline-[var(--color-clickable)] focus-visible:outline-offset-2 focus-visible:rounded";export{s as contentStyles,r as listFullWidthStyles,o as listMobileStyles,e as listStyles,t as listTableStyles,l as triggerMobileStyles,a as triggerStyles,i as triggerTableStyles};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.component.d.ts","sourceRoot":"","sources":["../../../../../src/components/core/button/Button.component.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAGlD,YAAY,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAElD,eAAO,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"Button.component.d.ts","sourceRoot":"","sources":["../../../../../src/components/core/button/Button.component.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAGlD,YAAY,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAElD,eAAO,MAAM,MAAM,2GA8ClB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconButton.component.d.ts","sourceRoot":"","sources":["../../../../../src/components/core/icon-button/IconButton.component.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAI1D,YAAY,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAc1D,eAAO,MAAM,UAAU,+
|
|
1
|
+
{"version":3,"file":"IconButton.component.d.ts","sourceRoot":"","sources":["../../../../../src/components/core/icon-button/IconButton.component.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAI1D,YAAY,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAc1D,eAAO,MAAM,UAAU,+GA2GtB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ButtonHTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
import { IconName } from '@adam-milo/icons';
|
|
3
3
|
|
|
4
|
-
export interface IconButtonProps extends
|
|
4
|
+
export interface IconButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
5
5
|
icon: IconName;
|
|
6
6
|
children?: ReactNode;
|
|
7
7
|
size?: 'sm' | 'md' | 'lg';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconButton.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/core/icon-button/IconButton.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACxD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEjD,MAAM,WAAW,eAAgB,SAAQ,
|
|
1
|
+
{"version":3,"file":"IconButton.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/core/icon-button/IconButton.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACxD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEjD,MAAM,WAAW,eAAgB,SAAQ,oBAAoB,CAAC,iBAAiB,CAAC;IAC9E,IAAI,EAAE,QAAQ,CAAC;IACf,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,OAAO,CAAC,EAAE,iBAAiB,GAAG,gBAAgB,GAAG,SAAS,CAAC;IAC3D,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,wDAAwD;IACxD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,6DAA6D;IAC7D,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MenuIconButton.component.d.ts","sourceRoot":"","sources":["../../../../../src/components/core/menu-icon-button/MenuIconButton.component.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAYlE,YAAY,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAOlE,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"MenuIconButton.component.d.ts","sourceRoot":"","sources":["../../../../../src/components/core/menu-icon-button/MenuIconButton.component.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAYlE,YAAY,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAOlE,eAAO,MAAM,cAAc,mHA0E1B,CAAC"}
|