@ngrok/mantle 0.1.26 → 0.1.28

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.
@@ -1,6 +1,36 @@
1
1
  import * as react from 'react';
2
- import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
2
+ import { W as WithValidation } from './types-Cs5ck3Vt.js';
3
+ import { z } from 'zod';
3
4
 
4
- declare const Checkbox: react.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & react.RefAttributes<HTMLButtonElement>, "ref"> & react.RefAttributes<HTMLButtonElement>>;
5
+ type CheckedState = boolean | "indeterminate";
6
+ /**
7
+ * A form control that allows the user to toggle between checked and not checked.
8
+ */
9
+ declare const Checkbox: react.ForwardRefExoticComponent<Omit<Omit<react.DetailedHTMLProps<react.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "type" | "checked" | "defaultChecked"> & WithValidation & {
10
+ /**
11
+ * The controlled checked state of the checkbox. Must be used in conjunction with onChange.
12
+ */
13
+ checked?: CheckedState | undefined;
14
+ /**
15
+ * The checked state of the checkbox when it is initially rendered. Use when you do not need to control its checked state.
16
+ */
17
+ defaultChecked?: CheckedState | undefined;
18
+ } & react.RefAttributes<HTMLInputElement>>;
5
19
 
6
- export { Checkbox };
20
+ type CheckboxOptions = {
21
+ /**
22
+ * The value to use when the checkbox is checked.
23
+ */
24
+ trueValue?: "on" | (string & {});
25
+ /**
26
+ * The error message to display when the value is not valid.
27
+ * Pass a function to customize the message based on the data.
28
+ */
29
+ message?: string | ((data: unknown) => string);
30
+ };
31
+ /**
32
+ * A zod schema for a checkbox input value.
33
+ */
34
+ declare function zodCheckbox(options?: CheckboxOptions): z.ZodLiteral<"on" | (string & {})>;
35
+
36
+ export { Checkbox, zodCheckbox };
package/dist/checkbox.js CHANGED
@@ -1,2 +1,2 @@
1
- import{a as r}from"./chunk-A5H52ODC.js";import*as t from"@radix-ui/react-checkbox";import{forwardRef as s}from"react";import{jsx as e,jsxs as m}from"react/jsx-runtime";var a=s(({className:o,...i},c)=>m(t.Root,{ref:c,className:r("size-4 shrink-0 cursor-pointer appearance-none rounded border border-form bg-form disabled:cursor-default disabled:opacity-50","data-state-checked:border-transparent data-state-checked:bg-accent-500 data-state-indeterminate:border-transparent data-state-indeterminate:bg-accent-500","focus:border-accent-600 focus-visible:outline-none focus-visible:ring-4 focus-visible:ring-focus-accent focus:data-state-checked:border-accent-600 focus:data-state-indeterminate:border-accent-600",o),...i,children:[e(t.Indicator,{className:"hidden items-center justify-center leading-none text-on-filled data-state-checked:flex",children:e(n,{className:"size-3"})}),e(t.Indicator,{className:"hidden items-center justify-center text-on-filled data-state-indeterminate:flex",children:e(d,{className:"size-3"})}),e(t.Indicator,{})]}));a.displayName="Checkbox";var n=({className:o,style:i})=>e("svg",{className:o,style:i,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M12.7071 4.29289C13.0976 4.68342 13.0976 5.31658 12.7071 5.70711L6.70711 11.7071C6.31658 12.0976 5.68342 12.0976 5.29289 11.7071L3.29289 9.70711C2.90237 9.31658 2.90237 8.68342 3.29289 8.29289C3.68342 7.90237 4.31658 7.90237 4.70711 8.29289L6 9.58579L11.2929 4.29289C11.6834 3.90237 12.3166 3.90237 12.7071 4.29289Z",fill:"currentColor"})}),d=({className:o,style:i})=>e("svg",{className:o,style:i,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M4 8C4 7.44772 4.44772 7 5 7H11C11.5523 7 12 7.44772 12 8C12 8.55228 11.5523 9 11 9H5C4.44772 9 4 8.55228 4 8Z",fill:"currentColor"})});export{a as Checkbox};
1
+ import{a as p}from"./chunk-NREABJ6Y.js";import{a as f}from"./chunk-A5H52ODC.js";import k from"clsx";import{forwardRef as C,useEffect as b,useRef as x,useState as w}from"react";import{jsx as y}from"react/jsx-runtime";var t=n=>n==="indeterminate",m=C(({"aria-invalid":n,className:o,checked:e,defaultChecked:a,onClick:c,readOnly:s,validation:d,...g},v)=>{let i=x(null),[r]=w(a),l=n!=null&&n!=="false"?"error":typeof d=="function"?d():d,h=n??l==="error";return b(()=>{i.current&&(i.current.indeterminate=t(e))},[e]),b(()=>{i.current&&(i.current.indeterminate=t(r))},[r]),y("input",{"aria-checked":t(e)?"mixed":e,"aria-invalid":h,className:k("shrink-0 cursor-pointer select-none appearance-none rounded border border-form bg-form disabled:cursor-default disabled:opacity-50","bg-center bg-no-repeat focus:outline-none","focus-visible:border-accent-600 focus-visible:outline-none focus-visible:ring-4 focus-visible:ring-focus-accent","checked:bg-accent-500 checked:bg-checked-icon","indeterminate:bg-accent-500 indeterminate:bg-indeterminate-icon","data-validation-success:border-success-600 data-validation-success:checked:bg-success-500 data-validation-success:indeterminate:bg-success-500 focus-visible:data-validation-success:border-success-600 focus-visible:data-validation-success:ring-focus-success","data-validation-warning:border-warning-600 data-validation-warning:checked:bg-warning-500 data-validation-warning:indeterminate:bg-warning-500 focus-visible:data-validation-warning:border-warning-600 focus-visible:data-validation-warning:ring-focus-warning","data-validation-error:border-danger-600 data-validation-error:checked:bg-danger-500 data-validation-error:indeterminate:bg-danger-500 focus-visible:data-validation-error:border-danger-600 focus-visible:data-validation-error:ring-focus-danger",f("block size-4 p-0",o)),checked:t(e)?void 0:e,"data-validation":l||void 0,defaultChecked:t(r)?void 0:r,onClick:u=>{if(s){u.preventDefault();return}c?.(u)},readOnly:s,ref:p(i,v),type:"checkbox",...g})});m.displayName="Checkbox";import{z as R}from"zod";function S(n){let{trueValue:o="on",message:e="Invalid value"}=n??{};return R.literal(o,{errorMap:(a,c)=>({message:typeof e=="function"?e(c.data):e??a.message??a.code})})}export{m as Checkbox,S as zodCheckbox};
2
2
  //# sourceMappingURL=checkbox.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../packages/checkbox/src/checkbox.tsx"],"sourcesContent":["import * as CheckboxPrimitive from \"@radix-ui/react-checkbox\";\nimport { forwardRef } from \"react\";\nimport type { ComponentPropsWithoutRef, ElementRef } from \"react\";\nimport { cx } from \"../../cx\";\nimport type { WithStyleProps } from \"../../types\";\n\ntype Props = ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>;\n\nconst Checkbox = forwardRef<ElementRef<typeof CheckboxPrimitive.Root>, Props>(({ className, ...props }, ref) => (\n\t<CheckboxPrimitive.Root\n\t\tref={ref}\n\t\tclassName={cx(\n\t\t\t\"size-4 shrink-0 cursor-pointer appearance-none rounded border border-form bg-form disabled:cursor-default disabled:opacity-50\",\n\t\t\t\"data-state-checked:border-transparent data-state-checked:bg-accent-500 data-state-indeterminate:border-transparent data-state-indeterminate:bg-accent-500\",\n\t\t\t\"focus:border-accent-600 focus-visible:outline-none focus-visible:ring-4 focus-visible:ring-focus-accent focus:data-state-checked:border-accent-600 focus:data-state-indeterminate:border-accent-600\",\n\t\t\tclassName,\n\t\t)}\n\t\t{...props}\n\t>\n\t\t<CheckboxPrimitive.Indicator className=\"hidden items-center justify-center leading-none text-on-filled data-state-checked:flex\">\n\t\t\t<CheckedIcon className=\"size-3\" />\n\t\t</CheckboxPrimitive.Indicator>\n\t\t<CheckboxPrimitive.Indicator className=\"hidden items-center justify-center text-on-filled data-state-indeterminate:flex\">\n\t\t\t<IndeterminateIcon className=\"size-3\" />\n\t\t</CheckboxPrimitive.Indicator>\n\t\t<CheckboxPrimitive.Indicator />\n\t</CheckboxPrimitive.Root>\n));\nCheckbox.displayName = \"Checkbox\";\n\nexport { Checkbox };\n\nconst CheckedIcon = ({ className, style }: WithStyleProps) => (\n\t<svg className={className} style={style} viewBox=\"0 0 16 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n\t\t<path\n\t\t\td=\"M12.7071 4.29289C13.0976 4.68342 13.0976 5.31658 12.7071 5.70711L6.70711 11.7071C6.31658 12.0976 5.68342 12.0976 5.29289 11.7071L3.29289 9.70711C2.90237 9.31658 2.90237 8.68342 3.29289 8.29289C3.68342 7.90237 4.31658 7.90237 4.70711 8.29289L6 9.58579L11.2929 4.29289C11.6834 3.90237 12.3166 3.90237 12.7071 4.29289Z\"\n\t\t\tfill=\"currentColor\"\n\t\t/>\n\t</svg>\n);\n\nconst IndeterminateIcon = ({ className, style }: WithStyleProps) => (\n\t<svg className={className} style={style} viewBox=\"0 0 16 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n\t\t<path\n\t\t\td=\"M4 8C4 7.44772 4.44772 7 5 7H11C11.5523 7 12 7.44772 12 8C12 8.55228 11.5523 9 11 9H5C4.44772 9 4 8.55228 4 8Z\"\n\t\t\tfill=\"currentColor\"\n\t\t/>\n\t</svg>\n);\n"],"mappings":"wCAAA,UAAYA,MAAuB,2BACnC,OAAS,cAAAC,MAAkB,QAQ1B,OAWE,OAAAC,EAXF,QAAAC,MAAA,oBADD,IAAMC,EAAWC,EAA6D,CAAC,CAAE,UAAAC,EAAW,GAAGC,CAAM,EAAGC,IACvGL,EAAmB,OAAlB,CACA,IAAKK,EACL,UAAWC,EACV,gIACA,4JACA,sMACAH,CACD,EACC,GAAGC,EAEJ,UAAAL,EAAmB,YAAlB,CAA4B,UAAU,yFACtC,SAAAA,EAACQ,EAAA,CAAY,UAAU,SAAS,EACjC,EACAR,EAAmB,YAAlB,CAA4B,UAAU,kFACtC,SAAAA,EAACS,EAAA,CAAkB,UAAU,SAAS,EACvC,EACAT,EAAmB,YAAlB,EAA4B,GAC9B,CACA,EACDE,EAAS,YAAc,WAIvB,IAAMQ,EAAc,CAAC,CAAE,UAAAC,EAAW,MAAAC,CAAM,IACvCC,EAAC,OAAI,UAAWF,EAAW,MAAOC,EAAO,QAAQ,YAAY,KAAK,OAAO,MAAM,6BAC9E,SAAAC,EAAC,QACA,EAAE,8TACF,KAAK,eACN,EACD,EAGKC,EAAoB,CAAC,CAAE,UAAAH,EAAW,MAAAC,CAAM,IAC7CC,EAAC,OAAI,UAAWF,EAAW,MAAOC,EAAO,QAAQ,YAAY,KAAK,OAAO,MAAM,6BAC9E,SAAAC,EAAC,QACA,EAAE,iHACF,KAAK,eACN,EACD","names":["CheckboxPrimitive","forwardRef","jsx","jsxs","Checkbox","forwardRef","className","props","ref","cx","CheckedIcon","IndeterminateIcon","CheckedIcon","className","style","jsx","IndeterminateIcon"]}
1
+ {"version":3,"sources":["../packages/checkbox/src/checkbox.tsx","../packages/checkbox/src/zod.ts"],"sourcesContent":["import clsx from \"clsx\";\nimport { forwardRef, useEffect, useRef, useState } from \"react\";\nimport type { ComponentPropsWithoutRef, ElementRef } from \"react\";\nimport { composeRefs } from \"../../compose-refs\";\nimport { cx } from \"../../cx\";\nimport type { WithValidation } from \"../../input\";\n\ntype CheckedState = boolean | \"indeterminate\";\n\nconst isIndeterminate = (checked: CheckedState | undefined): checked is \"indeterminate\" => checked === \"indeterminate\";\n\ntype Props = Omit<ComponentPropsWithoutRef<\"input\">, \"type\" | \"checked\" | \"defaultChecked\"> &\n\tWithValidation & {\n\t\t/**\n\t\t * The controlled checked state of the checkbox. Must be used in conjunction with onChange.\n\t\t */\n\t\tchecked?: CheckedState;\n\t\t/**\n\t\t * The checked state of the checkbox when it is initially rendered. Use when you do not need to control its checked state.\n\t\t */\n\t\tdefaultChecked?: CheckedState;\n\t};\n\n/**\n * A form control that allows the user to toggle between checked and not checked.\n */\nconst Checkbox = forwardRef<ElementRef<\"input\">, Props>(\n\t(\n\t\t{\n\t\t\t\"aria-invalid\": _ariaInvalid,\n\t\t\tclassName,\n\t\t\tchecked: _checked,\n\t\t\tdefaultChecked: _defaultChecked,\n\t\t\tonClick,\n\t\t\treadOnly,\n\t\t\tvalidation: _validation,\n\t\t\t...props\n\t\t},\n\t\tref,\n\t) => {\n\t\tconst innerRef = useRef<ElementRef<\"input\">>(null);\n\t\tconst [defaultChecked] = useState(_defaultChecked);\n\t\tconst isInvalid = _ariaInvalid != null && _ariaInvalid !== \"false\";\n\t\tconst validation = isInvalid ? \"error\" : typeof _validation === \"function\" ? _validation() : _validation;\n\t\tconst ariaInvalid = _ariaInvalid ?? validation === \"error\";\n\n\t\tuseEffect(() => {\n\t\t\tif (innerRef.current) {\n\t\t\t\tinnerRef.current.indeterminate = isIndeterminate(_checked);\n\t\t\t}\n\t\t}, [_checked]);\n\n\t\tuseEffect(() => {\n\t\t\tif (innerRef.current) {\n\t\t\t\tinnerRef.current.indeterminate = isIndeterminate(defaultChecked);\n\t\t\t}\n\t\t}, [defaultChecked]);\n\n\t\treturn (\n\t\t\t<input\n\t\t\t\taria-checked={isIndeterminate(_checked) ? \"mixed\" : _checked}\n\t\t\t\taria-invalid={ariaInvalid}\n\t\t\t\tclassName={clsx(\n\t\t\t\t\t\"shrink-0 cursor-pointer select-none appearance-none rounded border border-form bg-form disabled:cursor-default disabled:opacity-50\",\n\t\t\t\t\t\"bg-center bg-no-repeat focus:outline-none\",\n\t\t\t\t\t\"focus-visible:border-accent-600 focus-visible:outline-none focus-visible:ring-4 focus-visible:ring-focus-accent\",\n\t\t\t\t\t\"checked:bg-accent-500 checked:bg-checked-icon\",\n\t\t\t\t\t\"indeterminate:bg-accent-500 indeterminate:bg-indeterminate-icon\",\n\t\t\t\t\t\"data-validation-success:border-success-600 data-validation-success:checked:bg-success-500 data-validation-success:indeterminate:bg-success-500 focus-visible:data-validation-success:border-success-600 focus-visible:data-validation-success:ring-focus-success\",\n\t\t\t\t\t\"data-validation-warning:border-warning-600 data-validation-warning:checked:bg-warning-500 data-validation-warning:indeterminate:bg-warning-500 focus-visible:data-validation-warning:border-warning-600 focus-visible:data-validation-warning:ring-focus-warning\",\n\t\t\t\t\t\"data-validation-error:border-danger-600 data-validation-error:checked:bg-danger-500 data-validation-error:indeterminate:bg-danger-500 focus-visible:data-validation-error:border-danger-600 focus-visible:data-validation-error:ring-focus-danger\",\n\t\t\t\t\tcx(\"block size-4 p-0\", className),\n\t\t\t\t)}\n\t\t\t\tchecked={isIndeterminate(_checked) ? undefined : _checked}\n\t\t\t\tdata-validation={validation || undefined} // eslint-disable-line @typescript-eslint/prefer-nullish-coalescing\n\t\t\t\tdefaultChecked={isIndeterminate(defaultChecked) ? undefined : defaultChecked}\n\t\t\t\tonClick={(event) => {\n\t\t\t\t\tif (readOnly) {\n\t\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tonClick?.(event);\n\t\t\t\t}}\n\t\t\t\treadOnly={readOnly}\n\t\t\t\tref={composeRefs(innerRef, ref)}\n\t\t\t\ttype=\"checkbox\"\n\t\t\t\t{...props}\n\t\t\t/>\n\t\t);\n\t},\n);\nCheckbox.displayName = \"Checkbox\";\n\nexport {\n\t//,\n\tCheckbox,\n};\n","import { z } from \"zod\";\n\ntype CheckboxOptions = {\n\t/**\n\t * The value to use when the checkbox is checked.\n\t */\n\ttrueValue?: \"on\" | (string & {});\n\t/**\n\t * The error message to display when the value is not valid.\n\t * Pass a function to customize the message based on the data.\n\t */\n\tmessage?: string | ((data: unknown) => string);\n};\n\n/**\n * A zod schema for a checkbox input value.\n */\nfunction zodCheckbox(options?: CheckboxOptions) {\n\tconst { trueValue = \"on\", message = \"Invalid value\" } = options ?? {};\n\n\treturn z.literal(trueValue, {\n\t\terrorMap: (issue, args) => ({\n\t\t\tmessage: typeof message === \"function\" ? message(args.data) : message ?? issue.message ?? issue.code,\n\t\t}),\n\t});\n}\n\nexport {\n\t//\n\tzodCheckbox,\n};\n"],"mappings":"gFAAA,OAAOA,MAAU,OACjB,OAAS,cAAAC,EAAY,aAAAC,EAAW,UAAAC,EAAQ,YAAAC,MAAgB,QA0DrD,cAAAC,MAAA,oBAlDH,IAAMC,EAAmBC,GAAkEA,IAAY,gBAiBjGC,EAAWC,EAChB,CACC,CACC,eAAgBC,EAChB,UAAAC,EACA,QAASC,EACT,eAAgBC,EAChB,QAAAC,EACA,SAAAC,EACA,WAAYC,EACZ,GAAGC,CACJ,EACAC,IACI,CACJ,IAAMC,EAAWC,EAA4B,IAAI,EAC3C,CAACC,CAAc,EAAIC,EAAST,CAAe,EAE3CU,EADYb,GAAgB,MAAQA,IAAiB,QAC5B,QAAU,OAAOM,GAAgB,WAAaA,EAAY,EAAIA,EACvFQ,EAAcd,GAAgBa,IAAe,QAEnD,OAAAE,EAAU,IAAM,CACXN,EAAS,UACZA,EAAS,QAAQ,cAAgBb,EAAgBM,CAAQ,EAE3D,EAAG,CAACA,CAAQ,CAAC,EAEba,EAAU,IAAM,CACXN,EAAS,UACZA,EAAS,QAAQ,cAAgBb,EAAgBe,CAAc,EAEjE,EAAG,CAACA,CAAc,CAAC,EAGlBhB,EAAC,SACA,eAAcC,EAAgBM,CAAQ,EAAI,QAAUA,EACpD,eAAcY,EACd,UAAWE,EACV,qIACA,4CACA,kHACA,gDACA,kEACA,mQACA,mQACA,oPACAC,EAAG,mBAAoBhB,CAAS,CACjC,EACA,QAASL,EAAgBM,CAAQ,EAAI,OAAYA,EACjD,kBAAiBW,GAAc,OAC/B,eAAgBjB,EAAgBe,CAAc,EAAI,OAAYA,EAC9D,QAAUO,GAAU,CACnB,GAAIb,EAAU,CACba,EAAM,eAAe,EACrB,MACD,CACAd,IAAUc,CAAK,CAChB,EACA,SAAUb,EACV,IAAKc,EAAYV,EAAUD,CAAG,EAC9B,KAAK,WACJ,GAAGD,EACL,CAEF,CACD,EACAT,EAAS,YAAc,WC3FvB,OAAS,KAAAsB,MAAS,MAiBlB,SAASC,EAAYC,EAA2B,CAC/C,GAAM,CAAE,UAAAC,EAAY,KAAM,QAAAC,EAAU,eAAgB,EAAIF,GAAW,CAAC,EAEpE,OAAOF,EAAE,QAAQG,EAAW,CAC3B,SAAU,CAACE,EAAOC,KAAU,CAC3B,QAAS,OAAOF,GAAY,WAAaA,EAAQE,EAAK,IAAI,EAAIF,GAAWC,EAAM,SAAWA,EAAM,IACjG,EACD,CAAC,CACF","names":["clsx","forwardRef","useEffect","useRef","useState","jsx","isIndeterminate","checked","Checkbox","forwardRef","_ariaInvalid","className","_checked","_defaultChecked","onClick","readOnly","_validation","props","ref","innerRef","useRef","defaultChecked","useState","validation","ariaInvalid","useEffect","clsx","cx","event","composeRefs","z","zodCheckbox","options","trueValue","message","issue","args"]}
@@ -0,0 +1,2 @@
1
+ import{a as w}from"./chunk-NREABJ6Y.js";import{a as y}from"./chunk-A5H52ODC.js";import{CheckCircle as R}from"@phosphor-icons/react/CheckCircle";import{Warning as E}from"@phosphor-icons/react/Warning";import{WarningDiamond as L}from"@phosphor-icons/react/WarningDiamond";import W from"clsx";import{createContext as A,forwardRef as C,useContext as N,useRef as V}from"react";import{jsx as e,jsxs as P}from"react/jsx-runtime";var I=C(({children:t,className:n,...r},a)=>{let o=!!t,p=V(null);return o?e(x,{className:n,forwardedRef:a,innerRef:p,...r,children:t}):e(x,{...r,className:n,forwardedRef:a,innerRef:p,children:e(f,{...r})})});I.displayName="Input";var f=C(({"aria-invalid":t,className:n,validation:r,...a},o)=>{let{"aria-invalid":p,forwardedRef:d,innerRef:i,validation:c,...l}=N(g),u=c??r,m=p??t??u==="error",s={...l,...a,type:a.type??l.type??"text"};return e("div",{className:"min-w-0 flex-1 text-left",children:e("input",{"aria-invalid":m,"data-validation":u||void 0,className:y("w-full bg-form placeholder:text-placeholder focus:outline-none",n),ref:w(o,d,i),...s})})});f.displayName="InputCapture";var g=A({validation:void 0,innerRef:{current:null}}),x=({"aria-invalid":t,"aria-disabled":n,children:r,className:a,disabled:o,forwardedRef:p,innerRef:d,style:i,type:c,validation:l,...u})=>{let s=t!=null&&t!=="false"?"error":typeof l=="function"?l():l,b=t??s==="error";return e(g.Provider,{value:{"aria-invalid":t,"aria-disabled":n,disabled:o,type:c,validation:s,...u,forwardedRef:p,innerRef:d},children:P("div",{"aria-invalid":b,"aria-disabled":o??n,"data-validation":s||void 0,className:y("relative flex h-11 w-full items-center gap-1.5 rounded-md border bg-form px-3 py-2 file:border-0 file:bg-transparent file:text-sm file:font-medium focus-within:outline-none focus-within:ring-4 focus-visible:outline-none focus-visible:ring-4 sm:h-9 sm:text-sm","aria-disabled:opacity-50","has-[input:not(:first-child)]:ps-2.5 has-[input:not(:last-child)]:pe-2.5 [&>:not(input)]:shrink-0 [&_svg]:size-6 sm:[&_svg]:size-5","border-form text-strong has-[:focus-visible]:border-accent-600 has-[:focus-visible]:ring-focus-accent","data-validation-success:border-success-600 has-[:focus-visible]:data-validation-success:border-success-600 has-[:focus-visible]:data-validation-success:ring-focus-success","data-validation-warning:border-warning-600 has-[:focus-visible]:data-validation-warning:border-warning-600 has-[:focus-visible]:data-validation-warning:ring-focus-warning","data-validation-error:border-danger-600 has-[:focus-visible]:data-validation-error:border-danger-600 has-[:focus-visible]:data-validation-error:ring-focus-danger",a),onClick:()=>{d?.current?.focus()},style:i,children:[r,e(k,{name:u.name,validation:s})]})})};var k=({name:t,validation:n})=>{switch(n){case"error":return P("div",{className:"pointer-events-none order-last select-none text-danger-600",children:[e("span",{className:"sr-only",children:W("The value entered for the",t,"input has failed validation.")}),e(E,{"aria-hidden":!0,weight:"fill"})]});case"success":return e("div",{className:"pointer-events-none order-last select-none text-success-600",children:e(R,{weight:"fill"})});case"warning":return e("div",{className:"pointer-events-none order-last select-none text-warning-600",children:e(L,{weight:"fill"})});default:return null}};import{Eye as F}from"@phosphor-icons/react/Eye";import{EyeClosed as B}from"@phosphor-icons/react/EyeClosed";import O from"clsx";import{forwardRef as z,useEffect as S,useState as T}from"react";import{jsx as M,jsxs as h}from"react/jsx-runtime";var H=z(({maskHiddenValue:t=!1,onBlur:n,onFocus:r,onValueVisibilityChange:a,showValue:o=!1,...p},d)=>{let[i,c]=T(o),l=i?"text":"password",u=i?F:B;S(()=>{c(o)},[o]);let[m,s]=T(!1);return h(I,{onBlur:v=>{s(!1),n?.(v)},onFocus:v=>{s(!0),r?.(v)},type:l,ref:d,...p,children:[M(f,{className:O(t&&!i&&!m&&"max-w-6")}),h("button",{type:"button",tabIndex:-1,className:"ml-1 cursor-pointer bg-inherit p-0 text-body hover:text-strong",onClick:()=>{c(!i),a?.(!i)},children:[h("span",{className:"sr-only",children:["Turn password visibility ",i?"off":"on"]}),M(u,{"aria-hidden":!0})]})]})});H.displayName="PasswordInput";function j(t){return t!=null&&t instanceof HTMLInputElement}export{I as a,f as b,H as c,j as d};
2
+ //# sourceMappingURL=chunk-PAIFJ2P6.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../packages/input/src/input.tsx","../packages/input/src/password-input.tsx","../packages/input/src/is-input.ts"],"sourcesContent":["import { CheckCircle } from \"@phosphor-icons/react/CheckCircle\";\nimport { Warning } from \"@phosphor-icons/react/Warning\";\nimport { WarningDiamond } from \"@phosphor-icons/react/WarningDiamond\";\nimport clsx from \"clsx\";\nimport type { ElementRef, ForwardedRef, InputHTMLAttributes, MutableRefObject, PropsWithChildren } from \"react\";\nimport { createContext, forwardRef, useContext, useRef } from \"react\";\nimport { composeRefs } from \"../../compose-refs\";\nimport { cx } from \"../../cx\";\nimport type { Validation, WithAutoComplete, WithInputType, WithValidation } from \"./types\";\n\ntype BaseProps = WithAutoComplete & WithInputType & WithValidation;\n\n/**\n * The props for the `Input` component.\n */\ntype InputProps = Omit<InputHTMLAttributes<HTMLInputElement>, \"autoComplete\" | \"type\"> & BaseProps & PropsWithChildren;\n\n/**\n * Used to create interactive controls for web-based forms in order to accept data from the user\n */\nconst Input = forwardRef<HTMLInputElement, InputProps>(({ children, className, ...props }, forwardedRef) => {\n\tconst hasChildren = Boolean(children);\n\tconst innerRef = useRef<ElementRef<\"input\">>(null);\n\n\tif (hasChildren) {\n\t\treturn (\n\t\t\t<InputContainer className={className} forwardedRef={forwardedRef} innerRef={innerRef} {...props}>\n\t\t\t\t{children}\n\t\t\t</InputContainer>\n\t\t);\n\t}\n\n\treturn (\n\t\t<InputContainer {...props} className={className} forwardedRef={forwardedRef} innerRef={innerRef}>\n\t\t\t<InputCapture {...props} />\n\t\t</InputContainer>\n\t);\n});\nInput.displayName = \"Input\";\n\ntype InputCaptureProps = Omit<InputHTMLAttributes<HTMLInputElement>, \"autoComplete\" | \"type\"> & BaseProps;\n\n/**\n * The actual <input /> element that captures user input.\n */\nconst InputCapture = forwardRef<HTMLInputElement, InputCaptureProps>(\n\t({ \"aria-invalid\": _ariaInvalid, className, validation: _validation, ...restProps }, ref) => {\n\t\tconst {\n\t\t\t\"aria-invalid\": ctxAriaInvalid,\n\t\t\tforwardedRef: ctxForwardedRef,\n\t\t\tinnerRef: ctxInnerRef,\n\t\t\tvalidation: ctxValidation,\n\t\t\t...ctx\n\t\t} = useContext(InputContext);\n\n\t\tconst validation = ctxValidation ?? _validation;\n\t\tconst ariaInvalid = ctxAriaInvalid ?? _ariaInvalid ?? validation === \"error\";\n\t\tconst props = { ...ctx, ...restProps, type: restProps.type ?? ctx.type ?? \"text\" };\n\n\t\treturn (\n\t\t\t<div className=\"min-w-0 flex-1 text-left\">\n\t\t\t\t<input\n\t\t\t\t\taria-invalid={ariaInvalid}\n\t\t\t\t\tdata-validation={validation || undefined} // eslint-disable-line @typescript-eslint/prefer-nullish-coalescing\n\t\t\t\t\tclassName={cx(\"w-full bg-form placeholder:text-placeholder focus:outline-none\", className)}\n\t\t\t\t\tref={composeRefs(ref, ctxForwardedRef, ctxInnerRef)}\n\t\t\t\t\t{...props}\n\t\t\t\t/>\n\t\t\t</div>\n\t\t);\n\t},\n);\nInputCapture.displayName = \"InputCapture\";\n\ntype InputContextType = Omit<InputHTMLAttributes<HTMLInputElement>, \"autoComplete\" | \"type\"> &\n\tBaseProps & {\n\t\t/**\n\t\t * inner ref for the input element, controlled by `Input`\n\t\t */\n\t\tinnerRef: MutableRefObject<HTMLInputElement | null>;\n\t\t/**\n\t\t * forwarded ref to the input element, forwarded from `Input` to `InputCapture`\n\t\t */\n\t\tforwardedRef?: ForwardedRef<HTMLInputElement>;\n\t};\n\nconst InputContext = createContext<InputContextType>({ validation: undefined, innerRef: { current: null } });\n\ntype InputContainerProps = InputHTMLAttributes<HTMLInputElement> &\n\tBaseProps & {\n\t\t/**\n\t\t * @private inner ref for the input element, controlled by `Input`\n\t\t */\n\t\tinnerRef: MutableRefObject<HTMLInputElement | null>;\n\t\t/**\n\t\t * @private ref to the input element, forwarded from `Input` to `InputCapture`\n\t\t */\n\t\tforwardedRef: ForwardedRef<HTMLInputElement>;\n\t};\n\n/**\n * The container for the input element.\n */\nconst InputContainer = ({\n\t\"aria-invalid\": _ariaInvalid,\n\t\"aria-disabled\": _ariaDisabled,\n\tchildren,\n\tclassName,\n\tdisabled,\n\tforwardedRef,\n\tinnerRef,\n\tstyle,\n\ttype,\n\tvalidation: _validation,\n\t...props\n}: InputContainerProps) => {\n\tconst isInvalid = _ariaInvalid != null && _ariaInvalid !== \"false\";\n\tconst validation = isInvalid ? \"error\" : typeof _validation === \"function\" ? _validation() : _validation;\n\tconst ariaInvalid = _ariaInvalid ?? validation === \"error\";\n\n\treturn (\n\t\t<InputContext.Provider\n\t\t\tvalue={{\n\t\t\t\t\"aria-invalid\": _ariaInvalid,\n\t\t\t\t\"aria-disabled\": _ariaDisabled,\n\t\t\t\tdisabled,\n\t\t\t\ttype,\n\t\t\t\tvalidation,\n\t\t\t\t...props,\n\t\t\t\tforwardedRef,\n\t\t\t\tinnerRef,\n\t\t\t}}\n\t\t>\n\t\t\t<div\n\t\t\t\taria-invalid={ariaInvalid}\n\t\t\t\taria-disabled={disabled ?? _ariaDisabled}\n\t\t\t\tdata-validation={validation || undefined} // eslint-disable-line @typescript-eslint/prefer-nullish-coalescing\n\t\t\t\tclassName={cx(\n\t\t\t\t\t\"relative flex h-11 w-full items-center gap-1.5 rounded-md border bg-form px-3 py-2 file:border-0 file:bg-transparent file:text-sm file:font-medium focus-within:outline-none focus-within:ring-4 focus-visible:outline-none focus-visible:ring-4 sm:h-9 sm:text-sm\",\n\t\t\t\t\t\"aria-disabled:opacity-50\",\n\t\t\t\t\t\"has-[input:not(:first-child)]:ps-2.5 has-[input:not(:last-child)]:pe-2.5 [&>:not(input)]:shrink-0 [&_svg]:size-6 sm:[&_svg]:size-5\",\n\t\t\t\t\t\"border-form text-strong has-[:focus-visible]:border-accent-600 has-[:focus-visible]:ring-focus-accent\",\n\t\t\t\t\t\"data-validation-success:border-success-600 has-[:focus-visible]:data-validation-success:border-success-600 has-[:focus-visible]:data-validation-success:ring-focus-success\",\n\t\t\t\t\t\"data-validation-warning:border-warning-600 has-[:focus-visible]:data-validation-warning:border-warning-600 has-[:focus-visible]:data-validation-warning:ring-focus-warning\",\n\t\t\t\t\t\"data-validation-error:border-danger-600 has-[:focus-visible]:data-validation-error:border-danger-600 has-[:focus-visible]:data-validation-error:ring-focus-danger\",\n\t\t\t\t\tclassName,\n\t\t\t\t)}\n\t\t\t\tonClick={() => {\n\t\t\t\t\tinnerRef?.current?.focus();\n\t\t\t\t}}\n\t\t\t\tstyle={style}\n\t\t\t>\n\t\t\t\t{children}\n\t\t\t\t<ValidationFeedback name={props.name} validation={validation} />\n\t\t\t</div>\n\t\t</InputContext.Provider>\n\t);\n};\n\nexport { Input, InputCapture };\nexport type { InputProps, InputCaptureProps };\n\nconst ValidationFeedback = ({ name, validation }: { name?: string; validation: Validation | undefined }) => {\n\tswitch (validation) {\n\t\tcase \"error\":\n\t\t\treturn (\n\t\t\t\t<div className=\"pointer-events-none order-last select-none text-danger-600\">\n\t\t\t\t\t<span className=\"sr-only\">{clsx(\"The value entered for the\", name, \"input has failed validation.\")}</span>\n\t\t\t\t\t<Warning aria-hidden weight=\"fill\" />\n\t\t\t\t</div>\n\t\t\t);\n\t\tcase \"success\":\n\t\t\treturn (\n\t\t\t\t<div className=\"pointer-events-none order-last select-none text-success-600\">\n\t\t\t\t\t<CheckCircle weight=\"fill\" />\n\t\t\t\t</div>\n\t\t\t);\n\t\tcase \"warning\":\n\t\t\treturn (\n\t\t\t\t<div className=\"pointer-events-none order-last select-none text-warning-600\">\n\t\t\t\t\t<WarningDiamond weight=\"fill\" />\n\t\t\t\t</div>\n\t\t\t);\n\t\tdefault:\n\t\t\treturn null;\n\t}\n};\n","import { Eye } from \"@phosphor-icons/react/Eye\";\nimport { EyeClosed } from \"@phosphor-icons/react/EyeClosed\";\nimport clsx from \"clsx\";\nimport { forwardRef, useEffect, useState } from \"react\";\nimport type { InputHTMLAttributes } from \"react\";\nimport { Input, InputCapture } from \"./input\";\nimport type { InputType, WithAutoComplete, WithValidation } from \"./types\";\n\ntype PasswordInputProps = Omit<InputHTMLAttributes<HTMLInputElement>, \"autoComplete\" | \"type\"> &\n\tWithValidation &\n\tWithAutoComplete & {\n\t\t/**\n\t\t * Mask the true length of the password input with a fixed width when the value is hidden and the input is not focused.\n\t\t * @default false\n\t\t */\n\t\tmaskHiddenValue?: boolean;\n\t\t/**\n\t\t * Callback for when the visibility of the password value changes.\n\t\t */\n\t\tonValueVisibilityChange?: (visible: boolean) => void;\n\t\t/**\n\t\t * Show/hide the password value as a controlled state.\n\t\t * @default false\n\t\t */\n\t\tshowValue?: boolean;\n\t};\n\ntype PasswordInputType = Extract<InputType, \"text\" | \"password\">;\n\nconst PasswordInput = forwardRef<HTMLInputElement, PasswordInputProps>(\n\t({ maskHiddenValue = false, onBlur, onFocus, onValueVisibilityChange, showValue = false, ...props }, ref) => {\n\t\tconst [showPassword, setShowPassword] = useState<boolean>(showValue);\n\t\tconst type: PasswordInputType = showPassword ? \"text\" : \"password\";\n\t\tconst EyeCon = showPassword ? Eye : EyeClosed;\n\n\t\tuseEffect(() => {\n\t\t\tsetShowPassword(showValue);\n\t\t}, [showValue]);\n\n\t\tconst [isFocused, setIsFocused] = useState(false);\n\t\tconst shouldMaskHiddenValue = maskHiddenValue && !showPassword && !isFocused;\n\n\t\treturn (\n\t\t\t<Input\n\t\t\t\tonBlur={(event) => {\n\t\t\t\t\tsetIsFocused(false);\n\t\t\t\t\tonBlur?.(event);\n\t\t\t\t}}\n\t\t\t\tonFocus={(event) => {\n\t\t\t\t\tsetIsFocused(true);\n\t\t\t\t\tonFocus?.(event);\n\t\t\t\t}}\n\t\t\t\ttype={type}\n\t\t\t\tref={ref}\n\t\t\t\t{...props}\n\t\t\t>\n\t\t\t\t<InputCapture className={clsx(shouldMaskHiddenValue && \"max-w-6\")} />\n\t\t\t\t<button\n\t\t\t\t\ttype=\"button\"\n\t\t\t\t\ttabIndex={-1}\n\t\t\t\t\tclassName=\"ml-1 cursor-pointer bg-inherit p-0 text-body hover:text-strong\"\n\t\t\t\t\tonClick={() => {\n\t\t\t\t\t\tsetShowPassword(!showPassword);\n\t\t\t\t\t\tonValueVisibilityChange?.(!showPassword);\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\t<span className=\"sr-only\">Turn password visibility {showPassword ? \"off\" : \"on\"}</span>\n\t\t\t\t\t<EyeCon aria-hidden />\n\t\t\t\t</button>\n\t\t\t</Input>\n\t\t);\n\t},\n);\nPasswordInput.displayName = \"PasswordInput\";\n\nexport { PasswordInput };\nexport type { PasswordInputProps };\n","/**\n * Type guard for an HTMLInputElement.\n */\nexport function isInput(value: unknown): value is HTMLInputElement {\n\treturn value != null && value instanceof HTMLInputElement;\n}\n"],"mappings":"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","names":["CheckCircle","Warning","WarningDiamond","clsx","createContext","forwardRef","useContext","useRef","jsx","jsxs","Input","forwardRef","children","className","props","forwardedRef","hasChildren","innerRef","useRef","InputContainer","InputCapture","_ariaInvalid","_validation","restProps","ref","ctxAriaInvalid","ctxForwardedRef","ctxInnerRef","ctxValidation","ctx","useContext","InputContext","validation","ariaInvalid","cx","composeRefs","createContext","_ariaDisabled","disabled","style","type","ValidationFeedback","ValidationFeedback","name","validation","jsxs","jsx","clsx","Warning","CheckCircle","WarningDiamond","Eye","EyeClosed","clsx","forwardRef","useEffect","useState","jsx","jsxs","PasswordInput","forwardRef","maskHiddenValue","onBlur","onFocus","onValueVisibilityChange","showValue","props","ref","showPassword","setShowPassword","useState","type","EyeCon","Eye","EyeClosed","useEffect","isFocused","setIsFocused","Input","event","InputCapture","clsx","isInput","value"]}
package/dist/input.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as react from 'react';
2
2
  import { InputHTMLAttributes, PropsWithChildren } from 'react';
3
- import { a as WithAutoComplete, b as WithInputType, W as WithValidation } from './types-DcL7_eQM.js';
4
- export { A as AutoComplete, I as InputType } from './types-DcL7_eQM.js';
3
+ import { a as WithAutoComplete, b as WithInputType, W as WithValidation } from './types-Cs5ck3Vt.js';
4
+ export { A as AutoComplete, I as InputType, V as Validation } from './types-Cs5ck3Vt.js';
5
5
 
6
6
  type BaseProps = WithAutoComplete & WithInputType & WithValidation;
7
7
  /**
package/dist/input.js CHANGED
@@ -1,2 +1,2 @@
1
- import{a,b,c,d}from"./chunk-GTKZKU43.js";import"./chunk-NREABJ6Y.js";import"./chunk-A5H52ODC.js";export{a as Input,b as InputCapture,c as PasswordInput,d as isInput};
1
+ import{a,b,c,d}from"./chunk-PAIFJ2P6.js";import"./chunk-NREABJ6Y.js";import"./chunk-A5H52ODC.js";export{a as Input,b as InputCapture,c as PasswordInput,d as isInput};
2
2
  //# sourceMappingURL=input.js.map
@@ -1,2 +1,2 @@
1
- import{d as y}from"./chunk-GTKZKU43.js";import"./chunk-NREABJ6Y.js";import{a as c}from"./chunk-A5H52ODC.js";import{Radio as u,RadioGroup as H}from"@headlessui/react";import{Slot as N}from"@radix-ui/react-slot";import m from"clsx";import{Children as k,cloneElement as L,createContext as E,forwardRef as n,isValidElement as S,useContext as R,useRef as T}from"react";import{Fragment as b,jsx as a}from"react/jsx-runtime";var f=n((e,o)=>a(H,{...e,ref:o}));f.displayName="RadioGroup";var l=E({autofocus:!1,checked:!1,disabled:!1,focus:!1,hover:!1}),x=n(({children:e,className:o,...t},r)=>a(u,{className:c("group/radio flex cursor-default gap-2 py-1 text-base focus:outline-none aria-enabled:cursor-pointer sm:text-sm [&_label]:cursor-inherit",o),as:"div",...t,ref:r,children:d=>a(l.Provider,{value:d,children:e})}));x.displayName="RadioItem";var z=({checked:e,disabled:o,focus:t,hover:r})=>a("span",{className:c("flex size-4 items-center justify-center rounded-full border border-form",o&&"cursor-default opacity-50",e&&"border-accent-500 bg-accent-500",t&&!o&&"border-accent-600 ring-4 ring-focus-accent",r&&"border-accent-600"),children:e&&a("span",{className:"size-2 rounded-full bg-[#fff]"})}),M=({children:e,className:o,...t})=>{let r=R(l);return a("div",{className:c("radio-indicator inline-flex size-6 select-none items-center justify-center sm:size-5",o),...t,children:e==null?a(z,{...r}):typeof e=="function"?e(r):e})},P=n(({className:e,...o},t)=>a(f,{className:m("-space-y-px",e),...o,ref:t}));P.displayName="RadioGroupList";var v=n(({children:e,className:o,...t},r)=>a(u,{as:"div",className:c("group/radio relative flex select-none gap-2 border border-form px-3 py-2 text-base sm:text-sm [&_label]:cursor-inherit","focus:outline-none aria-enabled:cursor-pointer","first-of-type:rounded-tl-md first-of-type:rounded-tr-md last-of-type:rounded-bl-md last-of-type:rounded-br-md","aria-disabled:border-form/50 aria-enabled:hover:z-1 aria-enabled:hover:border-accent-600","aria-checked:z-1 aria-checked:border-accent-500/40 aria-checked:bg-accent-500/10 not-disabled:hover:aria-checked:border-accent-600","has-[.radio-indicator:first-child]:pl-2 has-[.radio-indicator:last-child]:pr-2",o),ref:r,...t,children:d=>a(b,{children:a(l.Provider,{value:d,children:e})})}));v.displayName="RadioListItem";var C=n(({children:e,className:o,...t},r)=>a(u,{as:"div",className:m("group/radio relative rounded-md border border-card bg-card p-4 text-base sm:text-sm [&_label]:cursor-inherit","focus:outline-none aria-enabled:cursor-pointer","first-of-type:rounded-tl-md first-of-type:rounded-tr-md last-of-type:rounded-bl-md last-of-type:rounded-br-md","aria-disabled:border-form/50 aria-enabled:hover:z-1 aria-enabled:hover:border-accent-600","aria-checked:z-1 aria-checked:border-accent-500/40 aria-checked:bg-accent-500/10 aria-enabled:hover:aria-checked:border-accent-600",o),...t,ref:r,children:d=>a(b,{children:a(l.Provider,{value:d,children:e})})}));C.displayName="RadioCard";var w=({asChild:e=!1,children:o,className:t,...r})=>{let d=R(l);return a(e?N:"div",{className:m("min-w-0 flex-1",d.disabled&&"opacity-50",t),...r,children:o})},I=n(({className:e,...o},t)=>a(f,{className:m("flex flex-row flex-nowrap -space-x-px",e),...o,ref:t}));I.displayName="RadioButtonGroup";var g=n(({children:e,className:o,...t},r)=>a(u,{as:"div",className:c("group/radio relative flex flex-1 select-none items-center justify-center gap-2 border border-form px-3 py-2 text-base sm:text-sm [&_label]:cursor-inherit","focus:outline-none aria-enabled:cursor-pointer","first-of-type:rounded-bl-md first-of-type:rounded-tl-md last-of-type:rounded-br-md last-of-type:rounded-tr-md","aria-disabled:opacity-50 aria-enabled:hover:z-1 aria-enabled:hover:border-accent-600","aria-checked:z-1 aria-checked:border-accent-500/40 aria-checked:bg-accent-500/10 not-disabled:hover:aria-checked:border-accent-600","has-[.radio-indicator:first-child]:pl-2 has-[.radio-indicator:last-child]:pr-2",o),ref:r,...t,children:d=>a(b,{children:a(l.Provider,{value:d,children:e})})}));g.displayName="RadioButton";var B=({children:e,onClick:o,onKeyDown:t,...r})=>{let d=T(null),s=R(l),p=k.only(e),G=s.disabled||!s.checked;return a("div",{ref:d,"aria-disabled":s.disabled,onKeyDown:i=>{if(s.disabled){i.stopPropagation(),i.preventDefault();return}switch(i.key){case"Enter":case"Tab":break;default:i.stopPropagation()}t?.(i)},onClick:i=>{if(s.disabled){i.stopPropagation(),i.preventDefault();return}let h=i.target;y(h)&&window.requestAnimationFrame(()=>{h.focus()}),o?.(i)},...r,children:S(p)?L(p,{disabled:s.disabled||p.props.disabled,tabIndex:G?-1:p.props.tabIndex}):null})};export{g as RadioButton,I as RadioButtonGroup,C as RadioCard,f as RadioGroup,P as RadioGroupList,M as RadioIndicator,B as RadioInputSandbox,x as RadioItem,w as RadioItemContent,v as RadioListItem};
1
+ import{d as y}from"./chunk-PAIFJ2P6.js";import"./chunk-NREABJ6Y.js";import{a as c}from"./chunk-A5H52ODC.js";import{Radio as u,RadioGroup as H}from"@headlessui/react";import{Slot as N}from"@radix-ui/react-slot";import m from"clsx";import{Children as k,cloneElement as L,createContext as E,forwardRef as n,isValidElement as S,useContext as R,useRef as T}from"react";import{Fragment as b,jsx as a}from"react/jsx-runtime";var f=n((e,o)=>a(H,{...e,ref:o}));f.displayName="RadioGroup";var l=E({autofocus:!1,checked:!1,disabled:!1,focus:!1,hover:!1}),x=n(({children:e,className:o,...t},r)=>a(u,{className:c("group/radio flex cursor-default gap-2 py-1 text-base focus:outline-none aria-enabled:cursor-pointer sm:text-sm [&_label]:cursor-inherit",o),as:"div",...t,ref:r,children:d=>a(l.Provider,{value:d,children:e})}));x.displayName="RadioItem";var z=({checked:e,disabled:o,focus:t,hover:r})=>a("span",{className:c("flex size-4 items-center justify-center rounded-full border border-form",o&&"cursor-default opacity-50",e&&"border-accent-500 bg-accent-500",t&&!o&&"border-accent-600 ring-4 ring-focus-accent",r&&"border-accent-600"),children:e&&a("span",{className:"size-2 rounded-full bg-[#fff]"})}),M=({children:e,className:o,...t})=>{let r=R(l);return a("div",{className:c("radio-indicator inline-flex size-6 select-none items-center justify-center sm:size-5",o),...t,children:e==null?a(z,{...r}):typeof e=="function"?e(r):e})},P=n(({className:e,...o},t)=>a(f,{className:m("-space-y-px",e),...o,ref:t}));P.displayName="RadioGroupList";var v=n(({children:e,className:o,...t},r)=>a(u,{as:"div",className:c("group/radio relative flex select-none gap-2 border border-form px-3 py-2 text-base sm:text-sm [&_label]:cursor-inherit","focus:outline-none aria-enabled:cursor-pointer","first-of-type:rounded-tl-md first-of-type:rounded-tr-md last-of-type:rounded-bl-md last-of-type:rounded-br-md","aria-disabled:border-form/50 aria-enabled:hover:z-1 aria-enabled:hover:border-accent-600","aria-checked:z-1 aria-checked:border-accent-500/40 aria-checked:bg-accent-500/10 not-disabled:hover:aria-checked:border-accent-600","has-[.radio-indicator:first-child]:pl-2 has-[.radio-indicator:last-child]:pr-2",o),ref:r,...t,children:d=>a(b,{children:a(l.Provider,{value:d,children:e})})}));v.displayName="RadioListItem";var C=n(({children:e,className:o,...t},r)=>a(u,{as:"div",className:m("group/radio relative rounded-md border border-card bg-card p-4 text-base sm:text-sm [&_label]:cursor-inherit","focus:outline-none aria-enabled:cursor-pointer","first-of-type:rounded-tl-md first-of-type:rounded-tr-md last-of-type:rounded-bl-md last-of-type:rounded-br-md","aria-disabled:border-form/50 aria-enabled:hover:z-1 aria-enabled:hover:border-accent-600","aria-checked:z-1 aria-checked:border-accent-500/40 aria-checked:bg-accent-500/10 aria-enabled:hover:aria-checked:border-accent-600",o),...t,ref:r,children:d=>a(b,{children:a(l.Provider,{value:d,children:e})})}));C.displayName="RadioCard";var w=({asChild:e=!1,children:o,className:t,...r})=>{let d=R(l);return a(e?N:"div",{className:m("min-w-0 flex-1",d.disabled&&"opacity-50",t),...r,children:o})},I=n(({className:e,...o},t)=>a(f,{className:m("flex flex-row flex-nowrap -space-x-px",e),...o,ref:t}));I.displayName="RadioButtonGroup";var g=n(({children:e,className:o,...t},r)=>a(u,{as:"div",className:c("group/radio relative flex flex-1 select-none items-center justify-center gap-2 border border-form px-3 py-2 text-base sm:text-sm [&_label]:cursor-inherit","focus:outline-none aria-enabled:cursor-pointer","first-of-type:rounded-bl-md first-of-type:rounded-tl-md last-of-type:rounded-br-md last-of-type:rounded-tr-md","aria-disabled:opacity-50 aria-enabled:hover:z-1 aria-enabled:hover:border-accent-600","aria-checked:z-1 aria-checked:border-accent-500/40 aria-checked:bg-accent-500/10 not-disabled:hover:aria-checked:border-accent-600","has-[.radio-indicator:first-child]:pl-2 has-[.radio-indicator:last-child]:pr-2",o),ref:r,...t,children:d=>a(b,{children:a(l.Provider,{value:d,children:e})})}));g.displayName="RadioButton";var B=({children:e,onClick:o,onKeyDown:t,...r})=>{let d=T(null),s=R(l),p=k.only(e),G=s.disabled||!s.checked;return a("div",{ref:d,"aria-disabled":s.disabled,onKeyDown:i=>{if(s.disabled){i.stopPropagation(),i.preventDefault();return}switch(i.key){case"Enter":case"Tab":break;default:i.stopPropagation()}t?.(i)},onClick:i=>{if(s.disabled){i.stopPropagation(),i.preventDefault();return}let h=i.target;y(h)&&window.requestAnimationFrame(()=>{h.focus()}),o?.(i)},...r,children:S(p)?L(p,{disabled:s.disabled||p.props.disabled,tabIndex:G?-1:p.props.tabIndex}):null})};export{g as RadioButton,I as RadioButtonGroup,C as RadioCard,f as RadioGroup,P as RadioGroupList,M as RadioIndicator,B as RadioInputSandbox,x as RadioItem,w as RadioItemContent,v as RadioListItem};
2
2
  //# sourceMappingURL=radio-group.js.map
package/dist/select.d.ts CHANGED
@@ -2,7 +2,7 @@ import * as _radix_ui_react_separator from '@radix-ui/react-separator';
2
2
  import * as react from 'react';
3
3
  import { FocusEvent, SelectHTMLAttributes } from 'react';
4
4
  import * as SelectPrimitive from '@radix-ui/react-select';
5
- import { W as WithValidation } from './types-DcL7_eQM.js';
5
+ import { W as WithValidation } from './types-Cs5ck3Vt.js';
6
6
 
7
7
  type WithAriaInvalid = Pick<SelectHTMLAttributes<HTMLSelectElement>, "aria-invalid">;
8
8
  /**
package/dist/select.js CHANGED
@@ -1,2 +1,2 @@
1
- import{a as f}from"./chunk-NREABJ6Y.js";import{b as u}from"./chunk-R3JOSY7M.js";import{a as o}from"./chunk-A5H52ODC.js";import{CaretDown as S}from"@phosphor-icons/react/CaretDown";import{CaretUp as R}from"@phosphor-icons/react/CaretUp";import{Check as N}from"@phosphor-icons/react/Check";import*as e from"@radix-ui/react-select";import{createContext as T,forwardRef as l,useContext as B}from"react";import{jsx as i,jsxs as p}from"react/jsx-runtime";var g=T({}),h=l(({"aria-invalid":a,children:r,validation:t,onBlur:n,onChange:c,...s},d)=>i(e.Root,{...s,onValueChange:c,children:i(g.Provider,{value:{"aria-invalid":a,validation:t,onBlur:n,ref:d},children:r})}));h.displayName="Select";var W=e.Group,E=e.Value,P=l(({"aria-invalid":a,className:r,children:t,validation:n,...c},s)=>{let d=B(g),m=d["aria-invalid"]??a,v=m!=null&&m!=="false"?"error":d.validation??n;return p(e.Trigger,{"aria-invalid":m??v==="error","data-validation":v||void 0,className:o("flex h-11 w-full items-center justify-between rounded-md border border-form bg-form px-3 py-2 text-strong placeholder:text-placeholder hover:border-neutral-400 hover:bg-form-hover hover:text-strong disabled:pointer-events-none disabled:opacity-50 sm:h-9 sm:text-sm [&>span]:line-clamp-1 [&>span]:text-left","focus:outline-none focus-visible:ring-4 aria-expanded:ring-4","focus-visible:border-accent-600 focus-visible:ring-focus-accent aria-expanded:border-accent-600 aria-expanded:ring-focus-accent","data-validation-success:border-success-600 data-validation-success:focus-visible:border-success-600 data-validation-success:focus-visible:ring-focus-success data-validation-success:aria-expanded:border-success-600 data-validation-success:aria-expanded:ring-focus-success","data-validation-warning:border-warning-600 data-validation-warning:focus-visible:border-warning-600 data-validation-warning:focus-visible:ring-focus-warning data-validation-warning:aria-expanded:border-warning-600 data-validation-warning:aria-expanded:ring-focus-warning","data-validation-error:border-danger-600 data-validation-error:focus-visible:border-danger-600 data-validation-error:focus-visible:ring-focus-danger data-validation-error:aria-expanded:border-danger-600 data-validation-error:aria-expanded:ring-focus-danger",r),ref:f(s,d.ref),...c,children:[t,i(e.Icon,{asChild:!0,children:i(S,{className:"size-4 shrink-0",weight:"bold"})})]})});P.displayName="SelectTrigger";var b=l(({className:a,...r},t)=>i(e.ScrollUpButton,{ref:t,className:o("flex cursor-default items-center justify-center py-1",a),...r,children:i(R,{className:"size-4 shrink-0",weight:"bold"})}));b.displayName="SelectScrollUpButton";var y=l(({className:a,...r},t)=>i(e.ScrollDownButton,{ref:t,className:o("flex cursor-default items-center justify-center py-1",a),...r,children:i(S,{className:"size-4 shrink-0",weight:"bold"})}));y.displayName="SelectScrollDownButton";var x=l(({className:a,children:r,position:t="popper",width:n,...c},s)=>i(e.Portal,{children:p(e.Content,{ref:s,className:o("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-popover shadow-md data-side-bottom:slide-in-from-top-2 data-side-left:slide-in-from-right-2 data-side-right:slide-in-from-left-2 data-side-top:slide-in-from-bottom-2 data-state-closed:animate-out data-state-closed:fade-out-0 data-state-closed:zoom-out-95 data-state-open:animate-in data-state-open:fade-in-0 data-state-open:zoom-in-95","bg-popover",t==="popper"&&"max-h-[var(--radix-select-content-available-height)] data-side-bottom:translate-y-2 data-side-left:-translate-x-2 data-side-right:translate-x-2 data-side-top:-translate-y-2",n==="trigger"&&"w-[var(--radix-select-trigger-width)]",a),position:t,...c,children:[i(b,{}),i(e.Viewport,{className:o("p-1",t==="popper"&&"h-[var(--radix-select-trigger-height)] w-full"),children:r}),i(y,{})]})}));x.displayName="SelectContent";var w=l(({className:a,...r},t)=>i(e.Label,{ref:t,className:o("px-2 py-1.5 text-sm font-semibold",a),...r}));w.displayName="SelectLabel";var C=l(({className:a,children:r,...t},n)=>p(e.Item,{ref:n,className:o("relative flex w-full cursor-pointer select-none items-center rounded py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-popover-hover data-disabled:pointer-events-none data-disabled:opacity-50 data-state-checked:bg-filled-accent data-state-checked:text-on-filled",a),...t,children:[i(e.ItemText,{children:r}),i(e.ItemIndicator,{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:i(N,{className:"size-4 shrink-0",weight:"bold"})})]}));C.displayName="SelectItem";var I=l(({className:a,...r},t)=>i(u,{ref:t,className:o("-mx-1 my-1 h-px w-auto",a),...r}));I.displayName="SelectSeparator";export{h as Select,x as SelectContent,W as SelectGroup,C as SelectItem,w as SelectLabel,I as SelectSeparator,P as SelectTrigger,E as SelectValue};
1
+ import{b as S}from"./chunk-R3JOSY7M.js";import{a as u}from"./chunk-NREABJ6Y.js";import{a as r}from"./chunk-A5H52ODC.js";import{CaretDown as g}from"@phosphor-icons/react/CaretDown";import{CaretUp as T}from"@phosphor-icons/react/CaretUp";import{Check as B}from"@phosphor-icons/react/Check";import*as e from"@radix-ui/react-select";import{createContext as W,forwardRef as n,useContext as E}from"react";import{jsx as i,jsxs as f}from"react/jsx-runtime";var h=W({}),P=n(({"aria-invalid":a,children:o,validation:t,onBlur:l,onChange:c,...s},d)=>i(e.Root,{...s,onValueChange:c,children:i(h.Provider,{value:{"aria-invalid":a,validation:t,onBlur:l,ref:d},children:o})}));P.displayName="Select";var L=e.Group,V=e.Value,b=n(({"aria-invalid":a,className:o,children:t,validation:l,...c},s)=>{let d=E(h),m=d["aria-invalid"]??a,N=m!=null&&m!=="false",p=d.validation??l,v=N?"error":typeof p=="function"?p():p;return f(e.Trigger,{"aria-invalid":m??v==="error","data-validation":v||void 0,className:r("flex h-11 w-full items-center justify-between rounded-md border border-form bg-form px-3 py-2 text-strong placeholder:text-placeholder hover:border-neutral-400 hover:bg-form-hover hover:text-strong disabled:pointer-events-none disabled:opacity-50 sm:h-9 sm:text-sm [&>span]:line-clamp-1 [&>span]:text-left","focus:outline-none focus-visible:ring-4 aria-expanded:ring-4","focus-visible:border-accent-600 focus-visible:ring-focus-accent aria-expanded:border-accent-600 aria-expanded:ring-focus-accent","data-validation-success:border-success-600 data-validation-success:focus-visible:border-success-600 data-validation-success:focus-visible:ring-focus-success data-validation-success:aria-expanded:border-success-600 data-validation-success:aria-expanded:ring-focus-success","data-validation-warning:border-warning-600 data-validation-warning:focus-visible:border-warning-600 data-validation-warning:focus-visible:ring-focus-warning data-validation-warning:aria-expanded:border-warning-600 data-validation-warning:aria-expanded:ring-focus-warning","data-validation-error:border-danger-600 data-validation-error:focus-visible:border-danger-600 data-validation-error:focus-visible:ring-focus-danger data-validation-error:aria-expanded:border-danger-600 data-validation-error:aria-expanded:ring-focus-danger",o),ref:u(s,d.ref),...c,children:[t,i(e.Icon,{asChild:!0,children:i(g,{className:"size-4 shrink-0",weight:"bold"})})]})});b.displayName="SelectTrigger";var y=n(({className:a,...o},t)=>i(e.ScrollUpButton,{ref:t,className:r("flex cursor-default items-center justify-center py-1",a),...o,children:i(T,{className:"size-4 shrink-0",weight:"bold"})}));y.displayName="SelectScrollUpButton";var x=n(({className:a,...o},t)=>i(e.ScrollDownButton,{ref:t,className:r("flex cursor-default items-center justify-center py-1",a),...o,children:i(g,{className:"size-4 shrink-0",weight:"bold"})}));x.displayName="SelectScrollDownButton";var w=n(({className:a,children:o,position:t="popper",width:l,...c},s)=>i(e.Portal,{children:f(e.Content,{ref:s,className:r("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-popover shadow-md data-side-bottom:slide-in-from-top-2 data-side-left:slide-in-from-right-2 data-side-right:slide-in-from-left-2 data-side-top:slide-in-from-bottom-2 data-state-closed:animate-out data-state-closed:fade-out-0 data-state-closed:zoom-out-95 data-state-open:animate-in data-state-open:fade-in-0 data-state-open:zoom-in-95","bg-popover",t==="popper"&&"max-h-[var(--radix-select-content-available-height)] data-side-bottom:translate-y-2 data-side-left:-translate-x-2 data-side-right:translate-x-2 data-side-top:-translate-y-2",l==="trigger"&&"w-[var(--radix-select-trigger-width)]",a),position:t,...c,children:[i(y,{}),i(e.Viewport,{className:r("p-1",t==="popper"&&"h-[var(--radix-select-trigger-height)] w-full"),children:o}),i(x,{})]})}));w.displayName="SelectContent";var C=n(({className:a,...o},t)=>i(e.Label,{ref:t,className:r("px-2 py-1.5 text-sm font-semibold",a),...o}));C.displayName="SelectLabel";var R=n(({className:a,children:o,...t},l)=>f(e.Item,{ref:l,className:r("relative flex w-full cursor-pointer select-none items-center rounded py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-popover-hover data-disabled:pointer-events-none data-disabled:opacity-50 data-state-checked:bg-filled-accent data-state-checked:text-on-filled",a),...t,children:[i(e.ItemText,{children:o}),i(e.ItemIndicator,{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:i(B,{className:"size-4 shrink-0",weight:"bold"})})]}));R.displayName="SelectItem";var I=n(({className:a,...o},t)=>i(S,{ref:t,className:r("-mx-1 my-1 h-px w-auto",a),...o}));I.displayName="SelectSeparator";export{P as Select,w as SelectContent,L as SelectGroup,R as SelectItem,C as SelectLabel,I as SelectSeparator,b as SelectTrigger,V as SelectValue};
2
2
  //# sourceMappingURL=select.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../packages/select/src/select.tsx"],"sourcesContent":["import { CaretDown } from \"@phosphor-icons/react/CaretDown\";\nimport { CaretUp } from \"@phosphor-icons/react/CaretUp\";\nimport { Check } from \"@phosphor-icons/react/Check\";\nimport * as SelectPrimitive from \"@radix-ui/react-select\";\nimport type { ComponentPropsWithoutRef, ElementRef, FocusEvent, Ref, SelectHTMLAttributes } from \"react\";\nimport { createContext, forwardRef, useContext } from \"react\";\nimport { composeRefs } from \"../../compose-refs\";\nimport { cx } from \"../../cx\";\nimport type { WithValidation } from \"../../input\";\nimport { Separator } from \"../../separator\";\n\ntype WithAriaInvalid = Pick<SelectHTMLAttributes<HTMLSelectElement>, \"aria-invalid\">;\ntype SelectContextType = WithValidation &\n\tWithAriaInvalid & {\n\t\t/**\n\t\t * Ref for the trigger button.\n\t\t */\n\t\tref?: Ref<HTMLButtonElement>;\n\t\t/**\n\t\t * Event handler called when Select blurs.\n\t\t * @note this is a no-op for now until we can guarantee that it works identically to a native select onBlur\n\t\t */\n\t\tonBlur?: (event: FocusEvent<HTMLButtonElement>) => void;\n\t};\n\nconst SelectContext = createContext<SelectContextType>({});\n\ntype SelectProps = Omit<ComponentPropsWithoutRef<typeof SelectPrimitive.Root>, \"onValueChange\"> &\n\tWithValidation &\n\tWithAriaInvalid & {\n\t\t/**\n\t\t * Event handler called when the value changes.\n\t\t */\n\t\tonChange?: (value: string) => void;\n\t\t/**\n\t\t * Event handler called when Select blurs.\n\t\t * @note this is a no-op for now until we can guarantee that it works identically to a native select onBlur\n\t\t */\n\t\tonBlur?: (event: FocusEvent<HTMLButtonElement>) => void;\n\t};\n\n/**\n * Displays a list of options for the user to pick from—triggered by a button.\n */\nconst Select = forwardRef<HTMLButtonElement, SelectProps>(\n\t({ \"aria-invalid\": _ariaInvalid, children, validation, onBlur, onChange, ...props }, ref) => {\n\t\treturn (\n\t\t\t<SelectPrimitive.Root {...props} onValueChange={onChange}>\n\t\t\t\t<SelectContext.Provider value={{ \"aria-invalid\": _ariaInvalid, validation, onBlur, ref }}>\n\t\t\t\t\t{children}\n\t\t\t\t</SelectContext.Provider>\n\t\t\t</SelectPrimitive.Root>\n\t\t);\n\t},\n);\nSelect.displayName = \"Select\";\n\n/**\n * A group of related options within a select menu. Similar to an html `<optgroup>` element.\n * Use in conjunction with Select.Label to ensure good accessibility via automatic labelling.\n */\nconst SelectGroup = SelectPrimitive.Group;\n\n/**\n * The part that reflects the selected value. By default the selected item's text will be rendered. if you require more control, you can instead control the select and pass your own children. It should not be styled to ensure correct positioning. An optional placeholder prop is also available for when the select has no value.\n */\nconst SelectValue = SelectPrimitive.Value;\n\ntype SelectTriggerProps = ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger> & WithAriaInvalid & WithValidation;\n\n/**\n * The button that toggles the select. The Select.Content will position itself adjacent to the trigger.\n */\nconst SelectTrigger = forwardRef<ElementRef<typeof SelectPrimitive.Trigger>, SelectTriggerProps>(\n\t({ \"aria-invalid\": ariaInValidProp, className, children, validation: _validation, ...props }, ref) => {\n\t\tconst ctx = useContext(SelectContext);\n\t\tconst _ariaInvalid = ctx[\"aria-invalid\"] ?? ariaInValidProp;\n\t\tconst isInvalid = _ariaInvalid != null && _ariaInvalid !== \"false\";\n\t\tconst validation = isInvalid ? \"error\" : ctx.validation ?? _validation;\n\t\tconst ariaInvalid = _ariaInvalid ?? validation === \"error\";\n\n\t\treturn (\n\t\t\t<SelectPrimitive.Trigger\n\t\t\t\taria-invalid={ariaInvalid}\n\t\t\t\tdata-validation={validation || undefined} // eslint-disable-line @typescript-eslint/prefer-nullish-coalescing\n\t\t\t\tclassName={cx(\n\t\t\t\t\t\"flex h-11 w-full items-center justify-between rounded-md border border-form bg-form px-3 py-2 text-strong placeholder:text-placeholder hover:border-neutral-400 hover:bg-form-hover hover:text-strong disabled:pointer-events-none disabled:opacity-50 sm:h-9 sm:text-sm [&>span]:line-clamp-1 [&>span]:text-left\",\n\t\t\t\t\t\"focus:outline-none focus-visible:ring-4 aria-expanded:ring-4\",\n\t\t\t\t\t\"focus-visible:border-accent-600 focus-visible:ring-focus-accent aria-expanded:border-accent-600 aria-expanded:ring-focus-accent\",\n\t\t\t\t\t\"data-validation-success:border-success-600 data-validation-success:focus-visible:border-success-600 data-validation-success:focus-visible:ring-focus-success data-validation-success:aria-expanded:border-success-600 data-validation-success:aria-expanded:ring-focus-success\",\n\t\t\t\t\t\"data-validation-warning:border-warning-600 data-validation-warning:focus-visible:border-warning-600 data-validation-warning:focus-visible:ring-focus-warning data-validation-warning:aria-expanded:border-warning-600 data-validation-warning:aria-expanded:ring-focus-warning\",\n\t\t\t\t\t\"data-validation-error:border-danger-600 data-validation-error:focus-visible:border-danger-600 data-validation-error:focus-visible:ring-focus-danger data-validation-error:aria-expanded:border-danger-600 data-validation-error:aria-expanded:ring-focus-danger\",\n\t\t\t\t\tclassName,\n\t\t\t\t)}\n\t\t\t\tref={composeRefs(ref, ctx.ref)}\n\t\t\t\t{...props}\n\t\t\t>\n\t\t\t\t{children}\n\t\t\t\t<SelectPrimitive.Icon asChild>\n\t\t\t\t\t<CaretDown className=\"size-4 shrink-0\" weight=\"bold\" />\n\t\t\t\t</SelectPrimitive.Icon>\n\t\t\t</SelectPrimitive.Trigger>\n\t\t);\n\t},\n);\nSelectTrigger.displayName = \"SelectTrigger\";\n\nconst SelectScrollUpButton = forwardRef<\n\tElementRef<typeof SelectPrimitive.ScrollUpButton>,\n\tComponentPropsWithoutRef<typeof SelectPrimitive.ScrollUpButton>\n>(({ className, ...props }, ref) => (\n\t<SelectPrimitive.ScrollUpButton\n\t\tref={ref}\n\t\tclassName={cx(\"flex cursor-default items-center justify-center py-1\", className)}\n\t\t{...props}\n\t>\n\t\t<CaretUp className=\"size-4 shrink-0\" weight=\"bold\" />\n\t</SelectPrimitive.ScrollUpButton>\n));\nSelectScrollUpButton.displayName = \"SelectScrollUpButton\";\n\nconst SelectScrollDownButton = forwardRef<\n\tElementRef<typeof SelectPrimitive.ScrollDownButton>,\n\tComponentPropsWithoutRef<typeof SelectPrimitive.ScrollDownButton>\n>(({ className, ...props }, ref) => (\n\t<SelectPrimitive.ScrollDownButton\n\t\tref={ref}\n\t\tclassName={cx(\"flex cursor-default items-center justify-center py-1\", className)}\n\t\t{...props}\n\t>\n\t\t<CaretDown className=\"size-4 shrink-0\" weight=\"bold\" />\n\t</SelectPrimitive.ScrollDownButton>\n));\nSelectScrollDownButton.displayName = \"SelectScrollDownButton\";\n\ntype SelectContentProps = ComponentPropsWithoutRef<typeof SelectPrimitive.Content> & {\n\twidth?: \"trigger\" | \"content\";\n};\n\n/**\n * The component that pops out when the select is open as a portal adjacent to the trigger button.\n * It contains a scrolling viewport of the select items.\n */\nconst SelectContent = forwardRef<ElementRef<typeof SelectPrimitive.Content>, SelectContentProps>(\n\t({ className, children, position = \"popper\", width, ...props }, ref) => (\n\t\t<SelectPrimitive.Portal>\n\t\t\t<SelectPrimitive.Content\n\t\t\t\tref={ref}\n\t\t\t\tclassName={cx(\n\t\t\t\t\t\"relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-popover shadow-md data-side-bottom:slide-in-from-top-2 data-side-left:slide-in-from-right-2 data-side-right:slide-in-from-left-2 data-side-top:slide-in-from-bottom-2 data-state-closed:animate-out data-state-closed:fade-out-0 data-state-closed:zoom-out-95 data-state-open:animate-in data-state-open:fade-in-0 data-state-open:zoom-in-95\",\n\t\t\t\t\t\"bg-popover\",\n\t\t\t\t\tposition === \"popper\" &&\n\t\t\t\t\t\t\"max-h-[var(--radix-select-content-available-height)] data-side-bottom:translate-y-2 data-side-left:-translate-x-2 data-side-right:translate-x-2 data-side-top:-translate-y-2\",\n\t\t\t\t\twidth === \"trigger\" && \"w-[var(--radix-select-trigger-width)]\",\n\t\t\t\t\tclassName,\n\t\t\t\t)}\n\t\t\t\tposition={position}\n\t\t\t\t{...props}\n\t\t\t>\n\t\t\t\t<SelectScrollUpButton />\n\t\t\t\t<SelectPrimitive.Viewport\n\t\t\t\t\tclassName={cx(\"p-1\", position === \"popper\" && \"h-[var(--radix-select-trigger-height)] w-full\")}\n\t\t\t\t>\n\t\t\t\t\t{children}\n\t\t\t\t</SelectPrimitive.Viewport>\n\t\t\t\t<SelectScrollDownButton />\n\t\t\t</SelectPrimitive.Content>\n\t\t</SelectPrimitive.Portal>\n\t),\n);\nSelectContent.displayName = \"SelectContent\";\n\n/**\n * Used to render the label of a group. It won't be focusable using arrow keys.\n */\nconst SelectLabel = forwardRef<\n\tElementRef<typeof SelectPrimitive.Label>,\n\tComponentPropsWithoutRef<typeof SelectPrimitive.Label>\n>(({ className, ...props }, ref) => (\n\t<SelectPrimitive.Label ref={ref} className={cx(\"px-2 py-1.5 text-sm font-semibold\", className)} {...props} />\n));\nSelectLabel.displayName = \"SelectLabel\";\n\n/**\n * An option within a select menu. Similar to an html `<option>` element.\n * Contains a `value` prop that will be passed to the `onChange` handler of the `Select` component when selected.\n * Displays the children as the option's text.\n */\nconst SelectItem = forwardRef<\n\tElementRef<typeof SelectPrimitive.Item>,\n\tComponentPropsWithoutRef<typeof SelectPrimitive.Item>\n>(({ className, children, ...props }, ref) => (\n\t<SelectPrimitive.Item\n\t\tref={ref}\n\t\tclassName={cx(\n\t\t\t\"relative flex w-full cursor-pointer select-none items-center rounded py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-popover-hover data-disabled:pointer-events-none data-disabled:opacity-50 data-state-checked:bg-filled-accent data-state-checked:text-on-filled\",\n\t\t\tclassName,\n\t\t)}\n\t\t{...props}\n\t>\n\t\t<SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>\n\t\t<SelectPrimitive.ItemIndicator className=\"absolute right-2 flex h-3.5 w-3.5 items-center justify-center\">\n\t\t\t<Check className=\"size-4 shrink-0\" weight=\"bold\" />\n\t\t</SelectPrimitive.ItemIndicator>\n\t</SelectPrimitive.Item>\n));\nSelectItem.displayName = \"SelectItem\";\n\n/**\n * Used to visually separate items in the select.\n */\nconst SelectSeparator = forwardRef<ElementRef<typeof Separator>, ComponentPropsWithoutRef<typeof Separator>>(\n\t({ className, ...props }, ref) => (\n\t\t<Separator ref={ref} className={cx(\"-mx-1 my-1 h-px w-auto\", className)} {...props} />\n\t),\n);\nSelectSeparator.displayName = \"SelectSeparator\";\n\nexport {\n\tSelect,\n\tSelectGroup,\n\tSelectValue,\n\tSelectTrigger,\n\tSelectContent,\n\tSelectLabel,\n\tSelectItem,\n\tSelectSeparator,\n\tSelectScrollUpButton,\n\tSelectScrollDownButton,\n};\n"],"mappings":"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","names":["CaretDown","CaretUp","Check","SelectPrimitive","createContext","forwardRef","useContext","jsx","jsxs","SelectContext","createContext","Select","forwardRef","_ariaInvalid","children","validation","onBlur","onChange","props","ref","SelectGroup","SelectValue","SelectTrigger","ariaInValidProp","className","_validation","ctx","useContext","cx","composeRefs","CaretDown","SelectScrollUpButton","CaretUp","SelectScrollDownButton","SelectContent","position","width","SelectLabel","SelectItem","Check","SelectSeparator","Separator"]}
1
+ {"version":3,"sources":["../packages/select/src/select.tsx"],"sourcesContent":["import { CaretDown } from \"@phosphor-icons/react/CaretDown\";\nimport { CaretUp } from \"@phosphor-icons/react/CaretUp\";\nimport { Check } from \"@phosphor-icons/react/Check\";\nimport * as SelectPrimitive from \"@radix-ui/react-select\";\nimport type { ComponentPropsWithoutRef, ElementRef, FocusEvent, Ref, SelectHTMLAttributes } from \"react\";\nimport { createContext, forwardRef, useContext } from \"react\";\nimport { composeRefs } from \"../../compose-refs\";\nimport { cx } from \"../../cx\";\nimport type { WithValidation } from \"../../input\";\nimport { Separator } from \"../../separator\";\n\ntype WithAriaInvalid = Pick<SelectHTMLAttributes<HTMLSelectElement>, \"aria-invalid\">;\ntype SelectContextType = WithValidation &\n\tWithAriaInvalid & {\n\t\t/**\n\t\t * Ref for the trigger button.\n\t\t */\n\t\tref?: Ref<HTMLButtonElement>;\n\t\t/**\n\t\t * Event handler called when Select blurs.\n\t\t * @note this is a no-op for now until we can guarantee that it works identically to a native select onBlur\n\t\t */\n\t\tonBlur?: (event: FocusEvent<HTMLButtonElement>) => void;\n\t};\n\nconst SelectContext = createContext<SelectContextType>({});\n\ntype SelectProps = Omit<ComponentPropsWithoutRef<typeof SelectPrimitive.Root>, \"onValueChange\"> &\n\tWithValidation &\n\tWithAriaInvalid & {\n\t\t/**\n\t\t * Event handler called when the value changes.\n\t\t */\n\t\tonChange?: (value: string) => void;\n\t\t/**\n\t\t * Event handler called when Select blurs.\n\t\t * @note this is a no-op for now until we can guarantee that it works identically to a native select onBlur\n\t\t */\n\t\tonBlur?: (event: FocusEvent<HTMLButtonElement>) => void;\n\t};\n\n/**\n * Displays a list of options for the user to pick from—triggered by a button.\n */\nconst Select = forwardRef<HTMLButtonElement, SelectProps>(\n\t({ \"aria-invalid\": _ariaInvalid, children, validation, onBlur, onChange, ...props }, ref) => {\n\t\treturn (\n\t\t\t<SelectPrimitive.Root {...props} onValueChange={onChange}>\n\t\t\t\t<SelectContext.Provider value={{ \"aria-invalid\": _ariaInvalid, validation, onBlur, ref }}>\n\t\t\t\t\t{children}\n\t\t\t\t</SelectContext.Provider>\n\t\t\t</SelectPrimitive.Root>\n\t\t);\n\t},\n);\nSelect.displayName = \"Select\";\n\n/**\n * A group of related options within a select menu. Similar to an html `<optgroup>` element.\n * Use in conjunction with Select.Label to ensure good accessibility via automatic labelling.\n */\nconst SelectGroup = SelectPrimitive.Group;\n\n/**\n * The part that reflects the selected value. By default the selected item's text will be rendered. if you require more control, you can instead control the select and pass your own children. It should not be styled to ensure correct positioning. An optional placeholder prop is also available for when the select has no value.\n */\nconst SelectValue = SelectPrimitive.Value;\n\ntype SelectTriggerProps = ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger> & WithAriaInvalid & WithValidation;\n\n/**\n * The button that toggles the select. The Select.Content will position itself adjacent to the trigger.\n */\nconst SelectTrigger = forwardRef<ElementRef<typeof SelectPrimitive.Trigger>, SelectTriggerProps>(\n\t({ \"aria-invalid\": ariaInValidProp, className, children, validation: propValidation, ...props }, ref) => {\n\t\tconst ctx = useContext(SelectContext);\n\t\tconst _ariaInvalid = ctx[\"aria-invalid\"] ?? ariaInValidProp;\n\t\tconst isInvalid = _ariaInvalid != null && _ariaInvalid !== \"false\";\n\t\tconst _validation = ctx.validation ?? propValidation;\n\t\tconst validation = isInvalid ? \"error\" : typeof _validation === \"function\" ? _validation() : _validation;\n\t\tconst ariaInvalid = _ariaInvalid ?? validation === \"error\";\n\n\t\treturn (\n\t\t\t<SelectPrimitive.Trigger\n\t\t\t\taria-invalid={ariaInvalid}\n\t\t\t\tdata-validation={validation || undefined} // eslint-disable-line @typescript-eslint/prefer-nullish-coalescing\n\t\t\t\tclassName={cx(\n\t\t\t\t\t\"flex h-11 w-full items-center justify-between rounded-md border border-form bg-form px-3 py-2 text-strong placeholder:text-placeholder hover:border-neutral-400 hover:bg-form-hover hover:text-strong disabled:pointer-events-none disabled:opacity-50 sm:h-9 sm:text-sm [&>span]:line-clamp-1 [&>span]:text-left\",\n\t\t\t\t\t\"focus:outline-none focus-visible:ring-4 aria-expanded:ring-4\",\n\t\t\t\t\t\"focus-visible:border-accent-600 focus-visible:ring-focus-accent aria-expanded:border-accent-600 aria-expanded:ring-focus-accent\",\n\t\t\t\t\t\"data-validation-success:border-success-600 data-validation-success:focus-visible:border-success-600 data-validation-success:focus-visible:ring-focus-success data-validation-success:aria-expanded:border-success-600 data-validation-success:aria-expanded:ring-focus-success\",\n\t\t\t\t\t\"data-validation-warning:border-warning-600 data-validation-warning:focus-visible:border-warning-600 data-validation-warning:focus-visible:ring-focus-warning data-validation-warning:aria-expanded:border-warning-600 data-validation-warning:aria-expanded:ring-focus-warning\",\n\t\t\t\t\t\"data-validation-error:border-danger-600 data-validation-error:focus-visible:border-danger-600 data-validation-error:focus-visible:ring-focus-danger data-validation-error:aria-expanded:border-danger-600 data-validation-error:aria-expanded:ring-focus-danger\",\n\t\t\t\t\tclassName,\n\t\t\t\t)}\n\t\t\t\tref={composeRefs(ref, ctx.ref)}\n\t\t\t\t{...props}\n\t\t\t>\n\t\t\t\t{children}\n\t\t\t\t<SelectPrimitive.Icon asChild>\n\t\t\t\t\t<CaretDown className=\"size-4 shrink-0\" weight=\"bold\" />\n\t\t\t\t</SelectPrimitive.Icon>\n\t\t\t</SelectPrimitive.Trigger>\n\t\t);\n\t},\n);\nSelectTrigger.displayName = \"SelectTrigger\";\n\nconst SelectScrollUpButton = forwardRef<\n\tElementRef<typeof SelectPrimitive.ScrollUpButton>,\n\tComponentPropsWithoutRef<typeof SelectPrimitive.ScrollUpButton>\n>(({ className, ...props }, ref) => (\n\t<SelectPrimitive.ScrollUpButton\n\t\tref={ref}\n\t\tclassName={cx(\"flex cursor-default items-center justify-center py-1\", className)}\n\t\t{...props}\n\t>\n\t\t<CaretUp className=\"size-4 shrink-0\" weight=\"bold\" />\n\t</SelectPrimitive.ScrollUpButton>\n));\nSelectScrollUpButton.displayName = \"SelectScrollUpButton\";\n\nconst SelectScrollDownButton = forwardRef<\n\tElementRef<typeof SelectPrimitive.ScrollDownButton>,\n\tComponentPropsWithoutRef<typeof SelectPrimitive.ScrollDownButton>\n>(({ className, ...props }, ref) => (\n\t<SelectPrimitive.ScrollDownButton\n\t\tref={ref}\n\t\tclassName={cx(\"flex cursor-default items-center justify-center py-1\", className)}\n\t\t{...props}\n\t>\n\t\t<CaretDown className=\"size-4 shrink-0\" weight=\"bold\" />\n\t</SelectPrimitive.ScrollDownButton>\n));\nSelectScrollDownButton.displayName = \"SelectScrollDownButton\";\n\ntype SelectContentProps = ComponentPropsWithoutRef<typeof SelectPrimitive.Content> & {\n\twidth?: \"trigger\" | \"content\";\n};\n\n/**\n * The component that pops out when the select is open as a portal adjacent to the trigger button.\n * It contains a scrolling viewport of the select items.\n */\nconst SelectContent = forwardRef<ElementRef<typeof SelectPrimitive.Content>, SelectContentProps>(\n\t({ className, children, position = \"popper\", width, ...props }, ref) => (\n\t\t<SelectPrimitive.Portal>\n\t\t\t<SelectPrimitive.Content\n\t\t\t\tref={ref}\n\t\t\t\tclassName={cx(\n\t\t\t\t\t\"relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-popover shadow-md data-side-bottom:slide-in-from-top-2 data-side-left:slide-in-from-right-2 data-side-right:slide-in-from-left-2 data-side-top:slide-in-from-bottom-2 data-state-closed:animate-out data-state-closed:fade-out-0 data-state-closed:zoom-out-95 data-state-open:animate-in data-state-open:fade-in-0 data-state-open:zoom-in-95\",\n\t\t\t\t\t\"bg-popover\",\n\t\t\t\t\tposition === \"popper\" &&\n\t\t\t\t\t\t\"max-h-[var(--radix-select-content-available-height)] data-side-bottom:translate-y-2 data-side-left:-translate-x-2 data-side-right:translate-x-2 data-side-top:-translate-y-2\",\n\t\t\t\t\twidth === \"trigger\" && \"w-[var(--radix-select-trigger-width)]\",\n\t\t\t\t\tclassName,\n\t\t\t\t)}\n\t\t\t\tposition={position}\n\t\t\t\t{...props}\n\t\t\t>\n\t\t\t\t<SelectScrollUpButton />\n\t\t\t\t<SelectPrimitive.Viewport\n\t\t\t\t\tclassName={cx(\"p-1\", position === \"popper\" && \"h-[var(--radix-select-trigger-height)] w-full\")}\n\t\t\t\t>\n\t\t\t\t\t{children}\n\t\t\t\t</SelectPrimitive.Viewport>\n\t\t\t\t<SelectScrollDownButton />\n\t\t\t</SelectPrimitive.Content>\n\t\t</SelectPrimitive.Portal>\n\t),\n);\nSelectContent.displayName = \"SelectContent\";\n\n/**\n * Used to render the label of a group. It won't be focusable using arrow keys.\n */\nconst SelectLabel = forwardRef<\n\tElementRef<typeof SelectPrimitive.Label>,\n\tComponentPropsWithoutRef<typeof SelectPrimitive.Label>\n>(({ className, ...props }, ref) => (\n\t<SelectPrimitive.Label ref={ref} className={cx(\"px-2 py-1.5 text-sm font-semibold\", className)} {...props} />\n));\nSelectLabel.displayName = \"SelectLabel\";\n\n/**\n * An option within a select menu. Similar to an html `<option>` element.\n * Contains a `value` prop that will be passed to the `onChange` handler of the `Select` component when selected.\n * Displays the children as the option's text.\n */\nconst SelectItem = forwardRef<\n\tElementRef<typeof SelectPrimitive.Item>,\n\tComponentPropsWithoutRef<typeof SelectPrimitive.Item>\n>(({ className, children, ...props }, ref) => (\n\t<SelectPrimitive.Item\n\t\tref={ref}\n\t\tclassName={cx(\n\t\t\t\"relative flex w-full cursor-pointer select-none items-center rounded py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-popover-hover data-disabled:pointer-events-none data-disabled:opacity-50 data-state-checked:bg-filled-accent data-state-checked:text-on-filled\",\n\t\t\tclassName,\n\t\t)}\n\t\t{...props}\n\t>\n\t\t<SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>\n\t\t<SelectPrimitive.ItemIndicator className=\"absolute right-2 flex h-3.5 w-3.5 items-center justify-center\">\n\t\t\t<Check className=\"size-4 shrink-0\" weight=\"bold\" />\n\t\t</SelectPrimitive.ItemIndicator>\n\t</SelectPrimitive.Item>\n));\nSelectItem.displayName = \"SelectItem\";\n\n/**\n * Used to visually separate items in the select.\n */\nconst SelectSeparator = forwardRef<ElementRef<typeof Separator>, ComponentPropsWithoutRef<typeof Separator>>(\n\t({ className, ...props }, ref) => (\n\t\t<Separator ref={ref} className={cx(\"-mx-1 my-1 h-px w-auto\", className)} {...props} />\n\t),\n);\nSelectSeparator.displayName = \"SelectSeparator\";\n\nexport {\n\tSelect,\n\tSelectGroup,\n\tSelectValue,\n\tSelectTrigger,\n\tSelectContent,\n\tSelectLabel,\n\tSelectItem,\n\tSelectSeparator,\n\tSelectScrollUpButton,\n\tSelectScrollDownButton,\n};\n"],"mappings":"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","names":["CaretDown","CaretUp","Check","SelectPrimitive","createContext","forwardRef","useContext","jsx","jsxs","SelectContext","createContext","Select","forwardRef","_ariaInvalid","children","validation","onBlur","onChange","props","ref","SelectGroup","SelectValue","SelectTrigger","ariaInValidProp","className","propValidation","ctx","useContext","isInvalid","_validation","cx","composeRefs","CaretDown","SelectScrollUpButton","CaretUp","SelectScrollDownButton","SelectContent","position","width","SelectLabel","SelectItem","Check","SelectSeparator","Separator"]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var _tailwindcssanimate = require('tailwindcss-animate'); var _tailwindcssanimate2 = _interopRequireDefault(_tailwindcssanimate);var _defaultTheme = require('tailwindcss/defaultTheme'); var _defaultTheme2 = _interopRequireDefault(_defaultTheme);var _plugin = require('tailwindcss/plugin'); var _plugin2 = _interopRequireDefault(_plugin);var s=_plugin2.default.call(void 0, a=>{a.addVariant("aria-enabled",({modifySelectors:e,separator:h})=>{e(({className:l})=>`:not([aria-disabled]).${a.e(`aria-enabled${h}${l}`)}`)})});var v=_plugin2.default.call(void 0, a=>{a.addVariant("firefox",({container:e,separator:h})=>{let l=a.postcss.atRule({name:"supports",params:"(-moz-appearance:none)"});l.append(e.nodes),e.append(l),l.walkRules(r=>{r.selector=`.${a.e(`firefox${h}${r.selector.slice(1).replace(/\\/g,"")}`)}`})})});var p=_plugin2.default.call(void 0, a=>{a.addVariant("pointer-coarse",({container:e,separator:h})=>{let l=a.postcss.atRule({name:"media",params:"(pointer: coarse)"});l.append(e.nodes),e.append(l),l.walkRules(r=>{r.selector=`.${a.e(`pointer-coarse${h}${r.selector.slice(1).replace(/\\/g,"")}`)}`})}),a.addVariant("pointer-fine",({container:e,separator:h})=>{let l=a.postcss.atRule({name:"media",params:"(pointer: fine)"});l.append(e.nodes),e.append(l),l.walkRules(r=>{r.selector=`.${a.e(`pointer-fine${h}${r.selector.slice(1).replace(/\\/g,"")}`)}`})}),a.addVariant("pointer-none",({container:e,separator:h})=>{let l=a.postcss.atRule({name:"media",params:"(pointer: none)"});l.append(e.nodes),e.append(l),l.walkRules(r=>{r.selector=`.${a.e(`pointer-none${h}${r.selector.slice(1).replace(/\\/g,"")}`)}`})}),a.addVariant("hover-hover",({container:e,separator:h})=>{let l=a.postcss.atRule({name:"media",params:"(hover: hover)"});l.append(e.nodes),e.append(l),l.walkRules(r=>{r.selector=`.${a.e(`hover-hover${h}${r.selector.slice(1).replace(/\\/g,"")}`)}`})}),a.addVariant("hover-none",({container:e,separator:h})=>{let l=a.postcss.atRule({name:"media",params:"(hover: none)"});l.append(e.nodes),e.append(l),l.walkRules(r=>{r.selector=`.${a.e(`hover-none${h}${r.selector.slice(1).replace(/\\/g,"")}`)}`})})});var d={inherit:"inherit",current:"currentColor",transparent:"transparent",white:"hsl(var(--white) / <alpha-value>)",black:"hsl(var(--black) / <alpha-value>)",gray:{50:"hsl(var(--gray-50) / <alpha-value>)",100:"hsl(var(--gray-100) / <alpha-value>)",200:"hsl(var(--gray-200) / <alpha-value>)",300:"hsl(var(--gray-300) / <alpha-value>)",400:"hsl(var(--gray-400) / <alpha-value>)",500:"hsl(var(--gray-500) / <alpha-value>)",600:"hsl(var(--gray-600) / <alpha-value>)",700:"hsl(var(--gray-700) / <alpha-value>)",800:"hsl(var(--gray-800) / <alpha-value>)",900:"hsl(var(--gray-900) / <alpha-value>)",950:"hsl(var(--gray-950) / <alpha-value>)"},red:{50:"hsl(var(--red-50) / <alpha-value>)",100:"hsl(var(--red-100) / <alpha-value>)",200:"hsl(var(--red-200) / <alpha-value>)",300:"hsl(var(--red-300) / <alpha-value>)",400:"hsl(var(--red-400) / <alpha-value>)",500:"hsl(var(--red-500) / <alpha-value>)",600:"hsl(var(--red-600) / <alpha-value>)",700:"hsl(var(--red-700) / <alpha-value>)",800:"hsl(var(--red-800) / <alpha-value>)",900:"hsl(var(--red-900) / <alpha-value>)",950:"hsl(var(--red-950) / <alpha-value>)"},orange:{50:"hsl(var(--orange-50) / <alpha-value>)",100:"hsl(var(--orange-100) / <alpha-value>)",200:"hsl(var(--orange-200) / <alpha-value>)",300:"hsl(var(--orange-300) / <alpha-value>)",400:"hsl(var(--orange-400) / <alpha-value>)",500:"hsl(var(--orange-500) / <alpha-value>)",600:"hsl(var(--orange-600) / <alpha-value>)",700:"hsl(var(--orange-700) / <alpha-value>)",800:"hsl(var(--orange-800) / <alpha-value>)",900:"hsl(var(--orange-900) / <alpha-value>)",950:"hsl(var(--orange-950) / <alpha-value>)"},amber:{50:"hsl(var(--amber-50) / <alpha-value>)",100:"hsl(var(--amber-100) / <alpha-value>)",200:"hsl(var(--amber-200) / <alpha-value>)",300:"hsl(var(--amber-300) / <alpha-value>)",400:"hsl(var(--amber-400) / <alpha-value>)",500:"hsl(var(--amber-500) / <alpha-value>)",600:"hsl(var(--amber-600) / <alpha-value>)",700:"hsl(var(--amber-700) / <alpha-value>)",800:"hsl(var(--amber-800) / <alpha-value>)",900:"hsl(var(--amber-900) / <alpha-value>)",950:"hsl(var(--amber-950) / <alpha-value>)"},yellow:{50:"hsl(var(--yellow-50) / <alpha-value>)",100:"hsl(var(--yellow-100) / <alpha-value>)",200:"hsl(var(--yellow-200) / <alpha-value>)",300:"hsl(var(--yellow-300) / <alpha-value>)",400:"hsl(var(--yellow-400) / <alpha-value>)",500:"hsl(var(--yellow-500) / <alpha-value>)",600:"hsl(var(--yellow-600) / <alpha-value>)",700:"hsl(var(--yellow-700) / <alpha-value>)",800:"hsl(var(--yellow-800) / <alpha-value>)",900:"hsl(var(--yellow-900) / <alpha-value>)",950:"hsl(var(--yellow-950) / <alpha-value>)"},lime:{50:"hsl(var(--lime-50) / <alpha-value>)",100:"hsl(var(--lime-100) / <alpha-value>)",200:"hsl(var(--lime-200) / <alpha-value>)",300:"hsl(var(--lime-300) / <alpha-value>)",400:"hsl(var(--lime-400) / <alpha-value>)",500:"hsl(var(--lime-500) / <alpha-value>)",600:"hsl(var(--lime-600) / <alpha-value>)",700:"hsl(var(--lime-700) / <alpha-value>)",800:"hsl(var(--lime-800) / <alpha-value>)",900:"hsl(var(--lime-900) / <alpha-value>)",950:"hsl(var(--lime-950) / <alpha-value>)"},green:{50:"hsl(var(--green-50) / <alpha-value>)",100:"hsl(var(--green-100) / <alpha-value>)",200:"hsl(var(--green-200) / <alpha-value>)",300:"hsl(var(--green-300) / <alpha-value>)",400:"hsl(var(--green-400) / <alpha-value>)",500:"hsl(var(--green-500) / <alpha-value>)",600:"hsl(var(--green-600) / <alpha-value>)",700:"hsl(var(--green-700) / <alpha-value>)",800:"hsl(var(--green-800) / <alpha-value>)",900:"hsl(var(--green-900) / <alpha-value>)",950:"hsl(var(--green-950) / <alpha-value>)"},emerald:{50:"hsl(var(--emerald-50) / <alpha-value>)",100:"hsl(var(--emerald-100) / <alpha-value>)",200:"hsl(var(--emerald-200) / <alpha-value>)",300:"hsl(var(--emerald-300) / <alpha-value>)",400:"hsl(var(--emerald-400) / <alpha-value>)",500:"hsl(var(--emerald-500) / <alpha-value>)",600:"hsl(var(--emerald-600) / <alpha-value>)",700:"hsl(var(--emerald-700) / <alpha-value>)",800:"hsl(var(--emerald-800) / <alpha-value>)",900:"hsl(var(--emerald-900) / <alpha-value>)",950:"hsl(var(--emerald-950) / <alpha-value>)"},teal:{50:"hsl(var(--teal-50) / <alpha-value>)",100:"hsl(var(--teal-100) / <alpha-value>)",200:"hsl(var(--teal-200) / <alpha-value>)",300:"hsl(var(--teal-300) / <alpha-value>)",400:"hsl(var(--teal-400) / <alpha-value>)",500:"hsl(var(--teal-500) / <alpha-value>)",600:"hsl(var(--teal-600) / <alpha-value>)",700:"hsl(var(--teal-700) / <alpha-value>)",800:"hsl(var(--teal-800) / <alpha-value>)",900:"hsl(var(--teal-900) / <alpha-value>)",950:"hsl(var(--teal-950) / <alpha-value>)"},cyan:{50:"hsl(var(--cyan-50) / <alpha-value>)",100:"hsl(var(--cyan-100) / <alpha-value>)",200:"hsl(var(--cyan-200) / <alpha-value>)",300:"hsl(var(--cyan-300) / <alpha-value>)",400:"hsl(var(--cyan-400) / <alpha-value>)",500:"hsl(var(--cyan-500) / <alpha-value>)",600:"hsl(var(--cyan-600) / <alpha-value>)",700:"hsl(var(--cyan-700) / <alpha-value>)",800:"hsl(var(--cyan-800) / <alpha-value>)",900:"hsl(var(--cyan-900) / <alpha-value>)",950:"hsl(var(--cyan-950) / <alpha-value>)"},sky:{50:"hsl(var(--sky-50) / <alpha-value>)",100:"hsl(var(--sky-100) / <alpha-value>)",200:"hsl(var(--sky-200) / <alpha-value>)",300:"hsl(var(--sky-300) / <alpha-value>)",400:"hsl(var(--sky-400) / <alpha-value>)",500:"hsl(var(--sky-500) / <alpha-value>)",600:"hsl(var(--sky-600) / <alpha-value>)",700:"hsl(var(--sky-700) / <alpha-value>)",800:"hsl(var(--sky-800) / <alpha-value>)",900:"hsl(var(--sky-900) / <alpha-value>)",950:"hsl(var(--sky-950) / <alpha-value>)"},blue:{50:"hsl(var(--blue-50) / <alpha-value>)",100:"hsl(var(--blue-100) / <alpha-value>)",200:"hsl(var(--blue-200) / <alpha-value>)",300:"hsl(var(--blue-300) / <alpha-value>)",400:"hsl(var(--blue-400) / <alpha-value>)",500:"hsl(var(--blue-500) / <alpha-value>)",600:"hsl(var(--blue-600) / <alpha-value>)",700:"hsl(var(--blue-700) / <alpha-value>)",800:"hsl(var(--blue-800) / <alpha-value>)",900:"hsl(var(--blue-900) / <alpha-value>)",950:"hsl(var(--blue-950) / <alpha-value>)"},indigo:{50:"hsl(var(--indigo-50) / <alpha-value>)",100:"hsl(var(--indigo-100) / <alpha-value>)",200:"hsl(var(--indigo-200) / <alpha-value>)",300:"hsl(var(--indigo-300) / <alpha-value>)",400:"hsl(var(--indigo-400) / <alpha-value>)",500:"hsl(var(--indigo-500) / <alpha-value>)",600:"hsl(var(--indigo-600) / <alpha-value>)",700:"hsl(var(--indigo-700) / <alpha-value>)",800:"hsl(var(--indigo-800) / <alpha-value>)",900:"hsl(var(--indigo-900) / <alpha-value>)",950:"hsl(var(--indigo-950) / <alpha-value>)"},violet:{50:"hsl(var(--violet-50) / <alpha-value>)",100:"hsl(var(--violet-100) / <alpha-value>)",200:"hsl(var(--violet-200) / <alpha-value>)",300:"hsl(var(--violet-300) / <alpha-value>)",400:"hsl(var(--violet-400) / <alpha-value>)",500:"hsl(var(--violet-500) / <alpha-value>)",600:"hsl(var(--violet-600) / <alpha-value>)",700:"hsl(var(--violet-700) / <alpha-value>)",800:"hsl(var(--violet-800) / <alpha-value>)",900:"hsl(var(--violet-900) / <alpha-value>)",950:"hsl(var(--violet-950) / <alpha-value>)"},purple:{50:"hsl(var(--purple-50) / <alpha-value>)",100:"hsl(var(--purple-100) / <alpha-value>)",200:"hsl(var(--purple-200) / <alpha-value>)",300:"hsl(var(--purple-300) / <alpha-value>)",400:"hsl(var(--purple-400) / <alpha-value>)",500:"hsl(var(--purple-500) / <alpha-value>)",600:"hsl(var(--purple-600) / <alpha-value>)",700:"hsl(var(--purple-700) / <alpha-value>)",800:"hsl(var(--purple-800) / <alpha-value>)",900:"hsl(var(--purple-900) / <alpha-value>)",950:"hsl(var(--purple-950) / <alpha-value>)"},fuchsia:{50:"hsl(var(--fuchsia-50) / <alpha-value>)",100:"hsl(var(--fuchsia-100) / <alpha-value>)",200:"hsl(var(--fuchsia-200) / <alpha-value>)",300:"hsl(var(--fuchsia-300) / <alpha-value>)",400:"hsl(var(--fuchsia-400) / <alpha-value>)",500:"hsl(var(--fuchsia-500) / <alpha-value>)",600:"hsl(var(--fuchsia-600) / <alpha-value>)",700:"hsl(var(--fuchsia-700) / <alpha-value>)",800:"hsl(var(--fuchsia-800) / <alpha-value>)",900:"hsl(var(--fuchsia-900) / <alpha-value>)",950:"hsl(var(--fuchsia-950) / <alpha-value>)"},pink:{50:"hsl(var(--pink-50) / <alpha-value>)",100:"hsl(var(--pink-100) / <alpha-value>)",200:"hsl(var(--pink-200) / <alpha-value>)",300:"hsl(var(--pink-300) / <alpha-value>)",400:"hsl(var(--pink-400) / <alpha-value>)",500:"hsl(var(--pink-500) / <alpha-value>)",600:"hsl(var(--pink-600) / <alpha-value>)",700:"hsl(var(--pink-700) / <alpha-value>)",800:"hsl(var(--pink-800) / <alpha-value>)",900:"hsl(var(--pink-900) / <alpha-value>)",950:"hsl(var(--pink-950) / <alpha-value>)"},rose:{50:"hsl(var(--rose-50) / <alpha-value>)",100:"hsl(var(--rose-100) / <alpha-value>)",200:"hsl(var(--rose-200) / <alpha-value>)",300:"hsl(var(--rose-300) / <alpha-value>)",400:"hsl(var(--rose-400) / <alpha-value>)",500:"hsl(var(--rose-500) / <alpha-value>)",600:"hsl(var(--rose-600) / <alpha-value>)",700:"hsl(var(--rose-700) / <alpha-value>)",800:"hsl(var(--rose-800) / <alpha-value>)",900:"hsl(var(--rose-900) / <alpha-value>)",950:"hsl(var(--rose-950) / <alpha-value>)"},neutral:{50:"hsl(var(--neutral-50) / <alpha-value>)",100:"hsl(var(--neutral-100) / <alpha-value>)",200:"hsl(var(--neutral-200) / <alpha-value>)",300:"hsl(var(--neutral-300) / <alpha-value>)",400:"hsl(var(--neutral-400) / <alpha-value>)",500:"hsl(var(--neutral-500) / <alpha-value>)",600:"hsl(var(--neutral-600) / <alpha-value>)",700:"hsl(var(--neutral-700) / <alpha-value>)",800:"hsl(var(--neutral-800) / <alpha-value>)",900:"hsl(var(--neutral-900) / <alpha-value>)",950:"hsl(var(--neutral-950) / <alpha-value>)"},accent:{50:"hsl(var(--accent-50) / <alpha-value>)",100:"hsl(var(--accent-100) / <alpha-value>)",200:"hsl(var(--accent-200) / <alpha-value>)",300:"hsl(var(--accent-300) / <alpha-value>)",400:"hsl(var(--accent-400) / <alpha-value>)",500:"hsl(var(--accent-500) / <alpha-value>)",600:"hsl(var(--accent-600) / <alpha-value>)",700:"hsl(var(--accent-700) / <alpha-value>)",800:"hsl(var(--accent-800) / <alpha-value>)",900:"hsl(var(--accent-900) / <alpha-value>)",950:"hsl(var(--accent-950) / <alpha-value>)"},danger:{50:"hsl(var(--danger-50) / <alpha-value>)",100:"hsl(var(--danger-100) / <alpha-value>)",200:"hsl(var(--danger-200) / <alpha-value>)",300:"hsl(var(--danger-300) / <alpha-value>)",400:"hsl(var(--danger-400) / <alpha-value>)",500:"hsl(var(--danger-500) / <alpha-value>)",600:"hsl(var(--danger-600) / <alpha-value>)",700:"hsl(var(--danger-700) / <alpha-value>)",800:"hsl(var(--danger-800) / <alpha-value>)",900:"hsl(var(--danger-900) / <alpha-value>)",950:"hsl(var(--danger-950) / <alpha-value>)"},warning:{50:"hsl(var(--warning-50) / <alpha-value>)",100:"hsl(var(--warning-100) / <alpha-value>)",200:"hsl(var(--warning-200) / <alpha-value>)",300:"hsl(var(--warning-300) / <alpha-value>)",400:"hsl(var(--warning-400) / <alpha-value>)",500:"hsl(var(--warning-500) / <alpha-value>)",600:"hsl(var(--warning-600) / <alpha-value>)",700:"hsl(var(--warning-700) / <alpha-value>)",800:"hsl(var(--warning-800) / <alpha-value>)",900:"hsl(var(--warning-900) / <alpha-value>)",950:"hsl(var(--warning-950) / <alpha-value>)"},success:{50:"hsl(var(--success-50) / <alpha-value>)",100:"hsl(var(--success-100) / <alpha-value>)",200:"hsl(var(--success-200) / <alpha-value>)",300:"hsl(var(--success-300) / <alpha-value>)",400:"hsl(var(--success-400) / <alpha-value>)",500:"hsl(var(--success-500) / <alpha-value>)",600:"hsl(var(--success-600) / <alpha-value>)",700:"hsl(var(--success-700) / <alpha-value>)",800:"hsl(var(--success-800) / <alpha-value>)",900:"hsl(var(--success-900) / <alpha-value>)",950:"hsl(var(--success-950) / <alpha-value>)"}},g= exports.mantlePreset ={content:[],darkMode:"class",theme:{colors:d,container:{center:!0,padding:"2rem",screens:{"2xl":"1400px"}},extend:{animation:{"accordion-down":"accordion-down 0.2s ease-out","accordion-up":"accordion-up 0.2s ease-out"},aria:{collapsed:'expanded="false"',invalid:'invalid="true"',unchecked:'checked="false"'},boxShadow:{sm:"0px 1px 2px 0 hsl(var(--shadow-color) / var(--shadow-first))",DEFAULT:"0px 1px 2px -1px hsl(var(--shadow-color) / var(--shadow-second)), 0px 1px 3px 0px hsl(var(--shadow-color) / var(--shadow-second))",md:"0px 2px 13px 0px hsl(var(--shadow-color) / var(--shadow-first)), 0px 2px 4px -2px hsl(var(--shadow-color) / var(--shadow-second)), 0px 4px 6px -1px hsl(var(--shadow-color) / var(--shadow-second))",lg:"0px 1px 13px 0px hsl(var(--shadow-color) / var(--shadow-first)), 0px 4px 6px -4px hsl(var(--shadow-color) / var(--shadow-second)), 0px 10px 15px -3px hsl(var(--shadow-color) / var(--shadow-second))",xl:"0px 0px 15px 0px hsl(var(--shadow-color) / var(--shadow-first)), 0px 8px 10px -6px hsl(var(--shadow-color) / var(--shadow-second)), 0px 20px 25px -5px hsl(var(--shadow-color) / var(--shadow-second))","2xl":"0px 0px 15px 0px hsl(var(--shadow-color) / var(--shadow-first)), 0px 11px 10px 0px hsl(var(--shadow-color) / var(--shadow-first)), 0px 17px 25px 2px hsl(var(--shadow-color) / var(--shadow-second))",inner:"inset 0px 2px 4px 0px hsl(var(--shadow-color) / var(--shadow-first))"},backgroundColor:{base:"hsl(var(--bg-base))",card:"hsl(var(--bg-card))",dialog:"hsl(var(--bg-dialog))",form:"hsl(var(--bg-form))",overlay:"hsl(var(--bg-overlay))",popover:"hsl(var(--bg-popover))",tooltip:"hsl(var(--bg-tooltip))","base-hover":"hsl(var(--bg-base-hover))","card-hover":"hsl(var(--bg-card-hover))","filled-accent-active":"hsl(var(--bg-filled-accent-active))","filled-accent-hover":"hsl(var(--bg-filled-accent-hover))","filled-accent":"hsl(var(--bg-filled-accent))","filled-danger-active":"hsl(var(--bg-filled-danger-active))","filled-danger-hover":"hsl(var(--bg-filled-danger-hover))","filled-danger":"hsl(var(--bg-filled-danger))","filled-neutral-active":"hsl(var(--bg-filled-neutral-active))","filled-neutral-hover":"hsl(var(--bg-filled-neutral-hover))","filled-neutral":"hsl(var(--bg-filled-neutral))","filled-success-active":"hsl(var(--bg-filled-success-active))","filled-success-hover":"hsl(var(--bg-filled-success-hover))","filled-success":"hsl(var(--bg-filled-success))","filled-warning-active":"hsl(var(--bg-filled-warning-active))","filled-warning-hover":"hsl(var(--bg-filled-warning-hover))","filled-warning":"hsl(var(--bg-filled-warning))","form-active":"hsl(var(--bg-form-active))","form-hover":"hsl(var(--bg-form-hover))","popover-hover":"hsl(var(--bg-popover-hover))"},textColor:{body:"hsl(var(--text-body))",muted:"hsl(var(--text-muted))",placeholder:"hsl(var(--text-placeholder))",strong:"hsl(var(--text-strong))",tooltip:"hsl(var(--text-tooltip))","on-filled":"hsl(var(--text-on-filled))"},borderColor:{base:"hsl(var(--border-base))",card:"hsl(var(--border-card))",dialog:"hsl(var(--border-dialog))",form:"hsl(var(--border-form))",popover:"hsl(var(--border-popover))","base-muted":"hsl(var(--border-base-muted))","card-muted":"hsl(var(--border-card-muted))","dialog-muted":"hsl(var(--border-dialog-muted))","popover-muted":"hsl(var(--border-popover-muted))"},ringColor:{"focus-accent":"hsl(var(--ring-focus-accent))","focus-danger":"hsl(var(--ring-focus-danger))","focus-neutral":"hsl(var(--ring-focus-neutral))","focus-success":"hsl(var(--ring-focus-success))","focus-warning":"hsl(var(--ring-focus-warning))"},cursor:{inherit:"inherit",initial:"initial"},data:{"active-item":"active-item","drag-over":'drag-over="true"',disabled:"disabled",highlighted:"highlighted","orientation-horizontal":'orientation="horizontal"',"orientation-vertical":'orientation="vertical"',"side-bottom":'side="bottom"',"side-left":'side="left"',"side-right":'side="right"',"side-top":'side="top"',"state-active":'state~="active"',"state-checked":'state~="checked"',"state-closed":'state~="closed"',"state-idle":'state~="idle"',"state-inactive":'state~="inactive"',"state-indeterminate":'state~="indeterminate"',"state-open":'state~="open"',"state-pending":'state~="pending"',"state-selected":'state~="selected"',"state-submitting":'state~="submitting"',"state-unchecked":'state~="unchecked"',"validation-error":'validation="error"',"validation-success":'validation="success"',"validation-warning":'validation="warning"'},fontFamily:{sans:["EuclidSquare",..._defaultTheme2.default.fontFamily.sans],mono:["IBMPlexMono",..._defaultTheme2.default.fontFamily.mono]},fontSize:{"size-inherit":"inherit"},fontWeight:{initial:"initial"},keyframes:{"accordion-down":{from:{height:"0"},to:{height:"var(--radix-accordion-content-height)"}},"accordion-up":{from:{height:"var(--radix-accordion-content-height)"},to:{height:"0"}}},lineHeight:{0:"0",initial:"initial"},screens:{xs:"480px"},spacing:{"1.25":"0.3125rem"},transitionProperty:{"max-height":"max-height"},zIndex:{1:"1",max:"2147483647"}}},plugins:[_tailwindcssanimate2.default,v,p,_plugin2.default.call(void 0, function({addVariant:a}){a("dark-high-contrast",[":is(.dark-high-contrast &)"]),a("high-contrast",[":is(.light-high-contrast &)"])}),_plugin2.default.call(void 0, function({addVariant:a}){a("not-disabled",["&:not(:disabled)"])}),s]};exports.mantlePreset = g;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var x=Object.create;var i=Object.defineProperty;var y=Object.getOwnPropertyDescriptor;var k=Object.getOwnPropertyNames;var P=Object.getPrototypeOf,R=Object.prototype.hasOwnProperty;var t=(a,l)=>()=>(l||a((l={exports:{}}).exports,l),l.exports);var $=(a,l,s,e)=>{if(l&&typeof l=="object"||typeof l=="function")for(let r of k(l))!R.call(a,r)&&r!==s&&i(a,r,{get:()=>l[r],enumerable:!(e=y(l,r))||e.enumerable});return a};var C=(a,l,s)=>(s=a!=null?x(P(a)):{},$(l||!a||!a.__esModule?i(s,"default",{value:a,enumerable:!0}):s,a));var u=t((U,n)=>{"use strict";n.exports={aqua:/#00ffff(ff)?(?!\w)|#0ff(f)?(?!\w)/gi,azure:/#f0ffff(ff)?(?!\w)/gi,beige:/#f5f5dc(ff)?(?!\w)/gi,bisque:/#ffe4c4(ff)?(?!\w)/gi,black:/#000000(ff)?(?!\w)|#000(f)?(?!\w)/gi,blue:/#0000ff(ff)?(?!\w)|#00f(f)?(?!\w)/gi,brown:/#a52a2a(ff)?(?!\w)/gi,coral:/#ff7f50(ff)?(?!\w)/gi,cornsilk:/#fff8dc(ff)?(?!\w)/gi,crimson:/#dc143c(ff)?(?!\w)/gi,cyan:/#00ffff(ff)?(?!\w)|#0ff(f)?(?!\w)/gi,darkblue:/#00008b(ff)?(?!\w)/gi,darkcyan:/#008b8b(ff)?(?!\w)/gi,darkgrey:/#a9a9a9(ff)?(?!\w)/gi,darkred:/#8b0000(ff)?(?!\w)/gi,deeppink:/#ff1493(ff)?(?!\w)/gi,dimgrey:/#696969(ff)?(?!\w)/gi,gold:/#ffd700(ff)?(?!\w)/gi,green:/#008000(ff)?(?!\w)/gi,grey:/#808080(ff)?(?!\w)/gi,honeydew:/#f0fff0(ff)?(?!\w)/gi,hotpink:/#ff69b4(ff)?(?!\w)/gi,indigo:/#4b0082(ff)?(?!\w)/gi,ivory:/#fffff0(ff)?(?!\w)/gi,khaki:/#f0e68c(ff)?(?!\w)/gi,lavender:/#e6e6fa(ff)?(?!\w)/gi,lime:/#00ff00(ff)?(?!\w)|#0f0(f)?(?!\w)/gi,linen:/#faf0e6(ff)?(?!\w)/gi,maroon:/#800000(ff)?(?!\w)/gi,moccasin:/#ffe4b5(ff)?(?!\w)/gi,navy:/#000080(ff)?(?!\w)/gi,oldlace:/#fdf5e6(ff)?(?!\w)/gi,olive:/#808000(ff)?(?!\w)/gi,orange:/#ffa500(ff)?(?!\w)/gi,orchid:/#da70d6(ff)?(?!\w)/gi,peru:/#cd853f(ff)?(?!\w)/gi,pink:/#ffc0cb(ff)?(?!\w)/gi,plum:/#dda0dd(ff)?(?!\w)/gi,purple:/#800080(ff)?(?!\w)/gi,red:/#ff0000(ff)?(?!\w)|#f00(f)?(?!\w)/gi,salmon:/#fa8072(ff)?(?!\w)/gi,seagreen:/#2e8b57(ff)?(?!\w)/gi,seashell:/#fff5ee(ff)?(?!\w)/gi,sienna:/#a0522d(ff)?(?!\w)/gi,silver:/#c0c0c0(ff)?(?!\w)/gi,skyblue:/#87ceeb(ff)?(?!\w)/gi,snow:/#fffafa(ff)?(?!\w)/gi,tan:/#d2b48c(ff)?(?!\w)/gi,teal:/#008080(ff)?(?!\w)/gi,thistle:/#d8bfd8(ff)?(?!\w)/gi,tomato:/#ff6347(ff)?(?!\w)/gi,violet:/#ee82ee(ff)?(?!\w)/gi,wheat:/#f5deb3(ff)?(?!\w)/gi,white:/#ffffff(ff)?(?!\w)|#fff(f)?(?!\w)/gi}});var f=t((D,c)=>{"use strict";var h=u(),o={whitespace:/\s+/g,urlHexPairs:/%[\dA-F]{2}/g,quotes:/"/g};function V(a){return a.trim().replace(o.whitespace," ")}function A(a){return encodeURIComponent(a).replace(o.urlHexPairs,E)}function I(a){return Object.keys(h).forEach(function(l){h[l].test(a)&&(a=a.replace(h[l],l))}),a}function E(a){switch(a){case"%20":return" ";case"%3D":return"=";case"%3A":return":";case"%2F":return"/";default:return a.toLowerCase()}}function v(a){if(typeof a!="string")throw new TypeError("Expected a string, but received "+typeof a);a.charCodeAt(0)===65279&&(a=a.slice(1));var l=I(V(a)).replace(o.quotes,"'");return"data:image/svg+xml,"+A(l)}v.toSrcset=function(l){return v(l).replace(/ /g,"%20")};c.exports=v});var p=C(f(),1);var _tailwindcssanimate = require('tailwindcss-animate'); var _tailwindcssanimate2 = _interopRequireDefault(_tailwindcssanimate);var _defaultTheme = require('tailwindcss/defaultTheme'); var _defaultTheme2 = _interopRequireDefault(_defaultTheme);var _plugin = require('tailwindcss/plugin'); var _plugin2 = _interopRequireDefault(_plugin);var d=_plugin2.default.call(void 0, a=>{a.addVariant("aria-enabled",({modifySelectors:l,separator:s})=>{l(({className:e})=>`:not([aria-disabled]).${a.e(`aria-enabled${s}${e}`)}`)})});var g=_plugin2.default.call(void 0, a=>{a.addVariant("firefox",({container:l,separator:s})=>{let e=a.postcss.atRule({name:"supports",params:"(-moz-appearance:none)"});e.append(l.nodes),l.append(e),e.walkRules(r=>{r.selector=`.${a.e(`firefox${s}${r.selector.slice(1).replace(/\\/g,"")}`)}`})})});var w=_plugin2.default.call(void 0, a=>{a.addVariant("pointer-coarse",({container:l,separator:s})=>{let e=a.postcss.atRule({name:"media",params:"(pointer: coarse)"});e.append(l.nodes),l.append(e),e.walkRules(r=>{r.selector=`.${a.e(`pointer-coarse${s}${r.selector.slice(1).replace(/\\/g,"")}`)}`})}),a.addVariant("pointer-fine",({container:l,separator:s})=>{let e=a.postcss.atRule({name:"media",params:"(pointer: fine)"});e.append(l.nodes),l.append(e),e.walkRules(r=>{r.selector=`.${a.e(`pointer-fine${s}${r.selector.slice(1).replace(/\\/g,"")}`)}`})}),a.addVariant("pointer-none",({container:l,separator:s})=>{let e=a.postcss.atRule({name:"media",params:"(pointer: none)"});e.append(l.nodes),l.append(e),e.walkRules(r=>{r.selector=`.${a.e(`pointer-none${s}${r.selector.slice(1).replace(/\\/g,"")}`)}`})}),a.addVariant("hover-hover",({container:l,separator:s})=>{let e=a.postcss.atRule({name:"media",params:"(hover: hover)"});e.append(l.nodes),l.append(e),e.walkRules(r=>{r.selector=`.${a.e(`hover-hover${s}${r.selector.slice(1).replace(/\\/g,"")}`)}`})}),a.addVariant("hover-none",({container:l,separator:s})=>{let e=a.postcss.atRule({name:"media",params:"(hover: none)"});e.append(l.nodes),l.append(e),e.walkRules(r=>{r.selector=`.${a.e(`hover-none${s}${r.selector.slice(1).replace(/\\/g,"")}`)}`})})});var q={inherit:"inherit",current:"currentColor",transparent:"transparent",white:"hsl(var(--white) / <alpha-value>)",black:"hsl(var(--black) / <alpha-value>)",gray:{50:"hsl(var(--gray-50) / <alpha-value>)",100:"hsl(var(--gray-100) / <alpha-value>)",200:"hsl(var(--gray-200) / <alpha-value>)",300:"hsl(var(--gray-300) / <alpha-value>)",400:"hsl(var(--gray-400) / <alpha-value>)",500:"hsl(var(--gray-500) / <alpha-value>)",600:"hsl(var(--gray-600) / <alpha-value>)",700:"hsl(var(--gray-700) / <alpha-value>)",800:"hsl(var(--gray-800) / <alpha-value>)",900:"hsl(var(--gray-900) / <alpha-value>)",950:"hsl(var(--gray-950) / <alpha-value>)"},red:{50:"hsl(var(--red-50) / <alpha-value>)",100:"hsl(var(--red-100) / <alpha-value>)",200:"hsl(var(--red-200) / <alpha-value>)",300:"hsl(var(--red-300) / <alpha-value>)",400:"hsl(var(--red-400) / <alpha-value>)",500:"hsl(var(--red-500) / <alpha-value>)",600:"hsl(var(--red-600) / <alpha-value>)",700:"hsl(var(--red-700) / <alpha-value>)",800:"hsl(var(--red-800) / <alpha-value>)",900:"hsl(var(--red-900) / <alpha-value>)",950:"hsl(var(--red-950) / <alpha-value>)"},orange:{50:"hsl(var(--orange-50) / <alpha-value>)",100:"hsl(var(--orange-100) / <alpha-value>)",200:"hsl(var(--orange-200) / <alpha-value>)",300:"hsl(var(--orange-300) / <alpha-value>)",400:"hsl(var(--orange-400) / <alpha-value>)",500:"hsl(var(--orange-500) / <alpha-value>)",600:"hsl(var(--orange-600) / <alpha-value>)",700:"hsl(var(--orange-700) / <alpha-value>)",800:"hsl(var(--orange-800) / <alpha-value>)",900:"hsl(var(--orange-900) / <alpha-value>)",950:"hsl(var(--orange-950) / <alpha-value>)"},amber:{50:"hsl(var(--amber-50) / <alpha-value>)",100:"hsl(var(--amber-100) / <alpha-value>)",200:"hsl(var(--amber-200) / <alpha-value>)",300:"hsl(var(--amber-300) / <alpha-value>)",400:"hsl(var(--amber-400) / <alpha-value>)",500:"hsl(var(--amber-500) / <alpha-value>)",600:"hsl(var(--amber-600) / <alpha-value>)",700:"hsl(var(--amber-700) / <alpha-value>)",800:"hsl(var(--amber-800) / <alpha-value>)",900:"hsl(var(--amber-900) / <alpha-value>)",950:"hsl(var(--amber-950) / <alpha-value>)"},yellow:{50:"hsl(var(--yellow-50) / <alpha-value>)",100:"hsl(var(--yellow-100) / <alpha-value>)",200:"hsl(var(--yellow-200) / <alpha-value>)",300:"hsl(var(--yellow-300) / <alpha-value>)",400:"hsl(var(--yellow-400) / <alpha-value>)",500:"hsl(var(--yellow-500) / <alpha-value>)",600:"hsl(var(--yellow-600) / <alpha-value>)",700:"hsl(var(--yellow-700) / <alpha-value>)",800:"hsl(var(--yellow-800) / <alpha-value>)",900:"hsl(var(--yellow-900) / <alpha-value>)",950:"hsl(var(--yellow-950) / <alpha-value>)"},lime:{50:"hsl(var(--lime-50) / <alpha-value>)",100:"hsl(var(--lime-100) / <alpha-value>)",200:"hsl(var(--lime-200) / <alpha-value>)",300:"hsl(var(--lime-300) / <alpha-value>)",400:"hsl(var(--lime-400) / <alpha-value>)",500:"hsl(var(--lime-500) / <alpha-value>)",600:"hsl(var(--lime-600) / <alpha-value>)",700:"hsl(var(--lime-700) / <alpha-value>)",800:"hsl(var(--lime-800) / <alpha-value>)",900:"hsl(var(--lime-900) / <alpha-value>)",950:"hsl(var(--lime-950) / <alpha-value>)"},green:{50:"hsl(var(--green-50) / <alpha-value>)",100:"hsl(var(--green-100) / <alpha-value>)",200:"hsl(var(--green-200) / <alpha-value>)",300:"hsl(var(--green-300) / <alpha-value>)",400:"hsl(var(--green-400) / <alpha-value>)",500:"hsl(var(--green-500) / <alpha-value>)",600:"hsl(var(--green-600) / <alpha-value>)",700:"hsl(var(--green-700) / <alpha-value>)",800:"hsl(var(--green-800) / <alpha-value>)",900:"hsl(var(--green-900) / <alpha-value>)",950:"hsl(var(--green-950) / <alpha-value>)"},emerald:{50:"hsl(var(--emerald-50) / <alpha-value>)",100:"hsl(var(--emerald-100) / <alpha-value>)",200:"hsl(var(--emerald-200) / <alpha-value>)",300:"hsl(var(--emerald-300) / <alpha-value>)",400:"hsl(var(--emerald-400) / <alpha-value>)",500:"hsl(var(--emerald-500) / <alpha-value>)",600:"hsl(var(--emerald-600) / <alpha-value>)",700:"hsl(var(--emerald-700) / <alpha-value>)",800:"hsl(var(--emerald-800) / <alpha-value>)",900:"hsl(var(--emerald-900) / <alpha-value>)",950:"hsl(var(--emerald-950) / <alpha-value>)"},teal:{50:"hsl(var(--teal-50) / <alpha-value>)",100:"hsl(var(--teal-100) / <alpha-value>)",200:"hsl(var(--teal-200) / <alpha-value>)",300:"hsl(var(--teal-300) / <alpha-value>)",400:"hsl(var(--teal-400) / <alpha-value>)",500:"hsl(var(--teal-500) / <alpha-value>)",600:"hsl(var(--teal-600) / <alpha-value>)",700:"hsl(var(--teal-700) / <alpha-value>)",800:"hsl(var(--teal-800) / <alpha-value>)",900:"hsl(var(--teal-900) / <alpha-value>)",950:"hsl(var(--teal-950) / <alpha-value>)"},cyan:{50:"hsl(var(--cyan-50) / <alpha-value>)",100:"hsl(var(--cyan-100) / <alpha-value>)",200:"hsl(var(--cyan-200) / <alpha-value>)",300:"hsl(var(--cyan-300) / <alpha-value>)",400:"hsl(var(--cyan-400) / <alpha-value>)",500:"hsl(var(--cyan-500) / <alpha-value>)",600:"hsl(var(--cyan-600) / <alpha-value>)",700:"hsl(var(--cyan-700) / <alpha-value>)",800:"hsl(var(--cyan-800) / <alpha-value>)",900:"hsl(var(--cyan-900) / <alpha-value>)",950:"hsl(var(--cyan-950) / <alpha-value>)"},sky:{50:"hsl(var(--sky-50) / <alpha-value>)",100:"hsl(var(--sky-100) / <alpha-value>)",200:"hsl(var(--sky-200) / <alpha-value>)",300:"hsl(var(--sky-300) / <alpha-value>)",400:"hsl(var(--sky-400) / <alpha-value>)",500:"hsl(var(--sky-500) / <alpha-value>)",600:"hsl(var(--sky-600) / <alpha-value>)",700:"hsl(var(--sky-700) / <alpha-value>)",800:"hsl(var(--sky-800) / <alpha-value>)",900:"hsl(var(--sky-900) / <alpha-value>)",950:"hsl(var(--sky-950) / <alpha-value>)"},blue:{50:"hsl(var(--blue-50) / <alpha-value>)",100:"hsl(var(--blue-100) / <alpha-value>)",200:"hsl(var(--blue-200) / <alpha-value>)",300:"hsl(var(--blue-300) / <alpha-value>)",400:"hsl(var(--blue-400) / <alpha-value>)",500:"hsl(var(--blue-500) / <alpha-value>)",600:"hsl(var(--blue-600) / <alpha-value>)",700:"hsl(var(--blue-700) / <alpha-value>)",800:"hsl(var(--blue-800) / <alpha-value>)",900:"hsl(var(--blue-900) / <alpha-value>)",950:"hsl(var(--blue-950) / <alpha-value>)"},indigo:{50:"hsl(var(--indigo-50) / <alpha-value>)",100:"hsl(var(--indigo-100) / <alpha-value>)",200:"hsl(var(--indigo-200) / <alpha-value>)",300:"hsl(var(--indigo-300) / <alpha-value>)",400:"hsl(var(--indigo-400) / <alpha-value>)",500:"hsl(var(--indigo-500) / <alpha-value>)",600:"hsl(var(--indigo-600) / <alpha-value>)",700:"hsl(var(--indigo-700) / <alpha-value>)",800:"hsl(var(--indigo-800) / <alpha-value>)",900:"hsl(var(--indigo-900) / <alpha-value>)",950:"hsl(var(--indigo-950) / <alpha-value>)"},violet:{50:"hsl(var(--violet-50) / <alpha-value>)",100:"hsl(var(--violet-100) / <alpha-value>)",200:"hsl(var(--violet-200) / <alpha-value>)",300:"hsl(var(--violet-300) / <alpha-value>)",400:"hsl(var(--violet-400) / <alpha-value>)",500:"hsl(var(--violet-500) / <alpha-value>)",600:"hsl(var(--violet-600) / <alpha-value>)",700:"hsl(var(--violet-700) / <alpha-value>)",800:"hsl(var(--violet-800) / <alpha-value>)",900:"hsl(var(--violet-900) / <alpha-value>)",950:"hsl(var(--violet-950) / <alpha-value>)"},purple:{50:"hsl(var(--purple-50) / <alpha-value>)",100:"hsl(var(--purple-100) / <alpha-value>)",200:"hsl(var(--purple-200) / <alpha-value>)",300:"hsl(var(--purple-300) / <alpha-value>)",400:"hsl(var(--purple-400) / <alpha-value>)",500:"hsl(var(--purple-500) / <alpha-value>)",600:"hsl(var(--purple-600) / <alpha-value>)",700:"hsl(var(--purple-700) / <alpha-value>)",800:"hsl(var(--purple-800) / <alpha-value>)",900:"hsl(var(--purple-900) / <alpha-value>)",950:"hsl(var(--purple-950) / <alpha-value>)"},fuchsia:{50:"hsl(var(--fuchsia-50) / <alpha-value>)",100:"hsl(var(--fuchsia-100) / <alpha-value>)",200:"hsl(var(--fuchsia-200) / <alpha-value>)",300:"hsl(var(--fuchsia-300) / <alpha-value>)",400:"hsl(var(--fuchsia-400) / <alpha-value>)",500:"hsl(var(--fuchsia-500) / <alpha-value>)",600:"hsl(var(--fuchsia-600) / <alpha-value>)",700:"hsl(var(--fuchsia-700) / <alpha-value>)",800:"hsl(var(--fuchsia-800) / <alpha-value>)",900:"hsl(var(--fuchsia-900) / <alpha-value>)",950:"hsl(var(--fuchsia-950) / <alpha-value>)"},pink:{50:"hsl(var(--pink-50) / <alpha-value>)",100:"hsl(var(--pink-100) / <alpha-value>)",200:"hsl(var(--pink-200) / <alpha-value>)",300:"hsl(var(--pink-300) / <alpha-value>)",400:"hsl(var(--pink-400) / <alpha-value>)",500:"hsl(var(--pink-500) / <alpha-value>)",600:"hsl(var(--pink-600) / <alpha-value>)",700:"hsl(var(--pink-700) / <alpha-value>)",800:"hsl(var(--pink-800) / <alpha-value>)",900:"hsl(var(--pink-900) / <alpha-value>)",950:"hsl(var(--pink-950) / <alpha-value>)"},rose:{50:"hsl(var(--rose-50) / <alpha-value>)",100:"hsl(var(--rose-100) / <alpha-value>)",200:"hsl(var(--rose-200) / <alpha-value>)",300:"hsl(var(--rose-300) / <alpha-value>)",400:"hsl(var(--rose-400) / <alpha-value>)",500:"hsl(var(--rose-500) / <alpha-value>)",600:"hsl(var(--rose-600) / <alpha-value>)",700:"hsl(var(--rose-700) / <alpha-value>)",800:"hsl(var(--rose-800) / <alpha-value>)",900:"hsl(var(--rose-900) / <alpha-value>)",950:"hsl(var(--rose-950) / <alpha-value>)"},neutral:{50:"hsl(var(--neutral-50) / <alpha-value>)",100:"hsl(var(--neutral-100) / <alpha-value>)",200:"hsl(var(--neutral-200) / <alpha-value>)",300:"hsl(var(--neutral-300) / <alpha-value>)",400:"hsl(var(--neutral-400) / <alpha-value>)",500:"hsl(var(--neutral-500) / <alpha-value>)",600:"hsl(var(--neutral-600) / <alpha-value>)",700:"hsl(var(--neutral-700) / <alpha-value>)",800:"hsl(var(--neutral-800) / <alpha-value>)",900:"hsl(var(--neutral-900) / <alpha-value>)",950:"hsl(var(--neutral-950) / <alpha-value>)"},accent:{50:"hsl(var(--accent-50) / <alpha-value>)",100:"hsl(var(--accent-100) / <alpha-value>)",200:"hsl(var(--accent-200) / <alpha-value>)",300:"hsl(var(--accent-300) / <alpha-value>)",400:"hsl(var(--accent-400) / <alpha-value>)",500:"hsl(var(--accent-500) / <alpha-value>)",600:"hsl(var(--accent-600) / <alpha-value>)",700:"hsl(var(--accent-700) / <alpha-value>)",800:"hsl(var(--accent-800) / <alpha-value>)",900:"hsl(var(--accent-900) / <alpha-value>)",950:"hsl(var(--accent-950) / <alpha-value>)"},danger:{50:"hsl(var(--danger-50) / <alpha-value>)",100:"hsl(var(--danger-100) / <alpha-value>)",200:"hsl(var(--danger-200) / <alpha-value>)",300:"hsl(var(--danger-300) / <alpha-value>)",400:"hsl(var(--danger-400) / <alpha-value>)",500:"hsl(var(--danger-500) / <alpha-value>)",600:"hsl(var(--danger-600) / <alpha-value>)",700:"hsl(var(--danger-700) / <alpha-value>)",800:"hsl(var(--danger-800) / <alpha-value>)",900:"hsl(var(--danger-900) / <alpha-value>)",950:"hsl(var(--danger-950) / <alpha-value>)"},warning:{50:"hsl(var(--warning-50) / <alpha-value>)",100:"hsl(var(--warning-100) / <alpha-value>)",200:"hsl(var(--warning-200) / <alpha-value>)",300:"hsl(var(--warning-300) / <alpha-value>)",400:"hsl(var(--warning-400) / <alpha-value>)",500:"hsl(var(--warning-500) / <alpha-value>)",600:"hsl(var(--warning-600) / <alpha-value>)",700:"hsl(var(--warning-700) / <alpha-value>)",800:"hsl(var(--warning-800) / <alpha-value>)",900:"hsl(var(--warning-900) / <alpha-value>)",950:"hsl(var(--warning-950) / <alpha-value>)"},success:{50:"hsl(var(--success-50) / <alpha-value>)",100:"hsl(var(--success-100) / <alpha-value>)",200:"hsl(var(--success-200) / <alpha-value>)",300:"hsl(var(--success-300) / <alpha-value>)",400:"hsl(var(--success-400) / <alpha-value>)",500:"hsl(var(--success-500) / <alpha-value>)",600:"hsl(var(--success-600) / <alpha-value>)",700:"hsl(var(--success-700) / <alpha-value>)",800:"hsl(var(--success-800) / <alpha-value>)",900:"hsl(var(--success-900) / <alpha-value>)",950:"hsl(var(--success-950) / <alpha-value>)"}},H= exports.mantlePreset ={content:[],darkMode:"class",theme:{colors:q,container:{center:!0,padding:"2rem",screens:{"2xl":"1400px"}},extend:{animation:{"accordion-down":"accordion-down 0.2s ease-out","accordion-up":"accordion-up 0.2s ease-out"},aria:{collapsed:'expanded="false"',invalid:'invalid="true"',unchecked:'checked="false"'},backgroundImage:{"checked-icon":`url("${(0,p.default)('<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="#fff" d="M12.7071 4.29289c.3905.39053.3905 1.02369 0 1.41422L6.70711 11.7071c-.39053.3905-1.02369.3905-1.41422 0l-2-1.99999c-.39052-.39053-.39052-1.02369 0-1.41422.39053-.39052 1.02369-.39052 1.41422 0L6 9.58579l5.2929-5.2929c.3905-.39052 1.0237-.39052 1.4142 0Z"/></svg>')}")`,"indeterminate-icon":`url("${(0,p.default)('<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="#fff" d="M4 8c0-.55228.44772-1 1-1h6c.5523 0 1 .44772 1 1s-.4477 1-1 1H5c-.55228 0-1-.44772-1-1Z"/></svg>')}")`},boxShadow:{sm:"0px 1px 2px 0 hsl(var(--shadow-color) / var(--shadow-first))",DEFAULT:"0px 1px 2px -1px hsl(var(--shadow-color) / var(--shadow-second)), 0px 1px 3px 0px hsl(var(--shadow-color) / var(--shadow-second))",md:"0px 2px 13px 0px hsl(var(--shadow-color) / var(--shadow-first)), 0px 2px 4px -2px hsl(var(--shadow-color) / var(--shadow-second)), 0px 4px 6px -1px hsl(var(--shadow-color) / var(--shadow-second))",lg:"0px 1px 13px 0px hsl(var(--shadow-color) / var(--shadow-first)), 0px 4px 6px -4px hsl(var(--shadow-color) / var(--shadow-second)), 0px 10px 15px -3px hsl(var(--shadow-color) / var(--shadow-second))",xl:"0px 0px 15px 0px hsl(var(--shadow-color) / var(--shadow-first)), 0px 8px 10px -6px hsl(var(--shadow-color) / var(--shadow-second)), 0px 20px 25px -5px hsl(var(--shadow-color) / var(--shadow-second))","2xl":"0px 0px 15px 0px hsl(var(--shadow-color) / var(--shadow-first)), 0px 11px 10px 0px hsl(var(--shadow-color) / var(--shadow-first)), 0px 17px 25px 2px hsl(var(--shadow-color) / var(--shadow-second))",inner:"inset 0px 2px 4px 0px hsl(var(--shadow-color) / var(--shadow-first))"},backgroundColor:{base:"hsl(var(--bg-base))",card:"hsl(var(--bg-card))",dialog:"hsl(var(--bg-dialog))",form:"hsl(var(--bg-form))",overlay:"hsl(var(--bg-overlay))",popover:"hsl(var(--bg-popover))",tooltip:"hsl(var(--bg-tooltip))","base-hover":"hsl(var(--bg-base-hover))","card-hover":"hsl(var(--bg-card-hover))","filled-accent-active":"hsl(var(--bg-filled-accent-active))","filled-accent-hover":"hsl(var(--bg-filled-accent-hover))","filled-accent":"hsl(var(--bg-filled-accent))","filled-danger-active":"hsl(var(--bg-filled-danger-active))","filled-danger-hover":"hsl(var(--bg-filled-danger-hover))","filled-danger":"hsl(var(--bg-filled-danger))","filled-neutral-active":"hsl(var(--bg-filled-neutral-active))","filled-neutral-hover":"hsl(var(--bg-filled-neutral-hover))","filled-neutral":"hsl(var(--bg-filled-neutral))","filled-success-active":"hsl(var(--bg-filled-success-active))","filled-success-hover":"hsl(var(--bg-filled-success-hover))","filled-success":"hsl(var(--bg-filled-success))","filled-warning-active":"hsl(var(--bg-filled-warning-active))","filled-warning-hover":"hsl(var(--bg-filled-warning-hover))","filled-warning":"hsl(var(--bg-filled-warning))","form-active":"hsl(var(--bg-form-active))","form-hover":"hsl(var(--bg-form-hover))","popover-hover":"hsl(var(--bg-popover-hover))"},textColor:{body:"hsl(var(--text-body))",muted:"hsl(var(--text-muted))",placeholder:"hsl(var(--text-placeholder))",strong:"hsl(var(--text-strong))",tooltip:"hsl(var(--text-tooltip))","on-filled":"hsl(var(--text-on-filled))"},borderColor:{base:"hsl(var(--border-base))",card:"hsl(var(--border-card))",dialog:"hsl(var(--border-dialog))",form:"hsl(var(--border-form))",popover:"hsl(var(--border-popover))","base-muted":"hsl(var(--border-base-muted))","card-muted":"hsl(var(--border-card-muted))","dialog-muted":"hsl(var(--border-dialog-muted))","popover-muted":"hsl(var(--border-popover-muted))"},ringColor:{"focus-accent":"hsl(var(--ring-focus-accent))","focus-danger":"hsl(var(--ring-focus-danger))","focus-neutral":"hsl(var(--ring-focus-neutral))","focus-success":"hsl(var(--ring-focus-success))","focus-warning":"hsl(var(--ring-focus-warning))"},cursor:{inherit:"inherit",initial:"initial"},data:{"active-item":"active-item","drag-over":'drag-over="true"',disabled:"disabled",highlighted:"highlighted","orientation-horizontal":'orientation="horizontal"',"orientation-vertical":'orientation="vertical"',"side-bottom":'side="bottom"',"side-left":'side="left"',"side-right":'side="right"',"side-top":'side="top"',"state-active":'state~="active"',"state-checked":'state~="checked"',"state-closed":'state~="closed"',"state-idle":'state~="idle"',"state-inactive":'state~="inactive"',"state-indeterminate":'state~="indeterminate"',"state-open":'state~="open"',"state-pending":'state~="pending"',"state-selected":'state~="selected"',"state-submitting":'state~="submitting"',"state-unchecked":'state~="unchecked"',"validation-error":'validation="error"',"validation-success":'validation="success"',"validation-warning":'validation="warning"'},fontFamily:{sans:["EuclidSquare",..._defaultTheme2.default.fontFamily.sans],mono:["IBMPlexMono",..._defaultTheme2.default.fontFamily.mono]},fontSize:{"size-inherit":"inherit"},fontWeight:{initial:"initial"},keyframes:{"accordion-down":{from:{height:"0"},to:{height:"var(--radix-accordion-content-height)"}},"accordion-up":{from:{height:"var(--radix-accordion-content-height)"},to:{height:"0"}}},lineHeight:{0:"0",initial:"initial"},screens:{xs:"480px"},spacing:{"1.25":"0.3125rem"},transitionProperty:{"max-height":"max-height"},zIndex:{1:"1",max:"2147483647"}}},plugins:[_tailwindcssanimate2.default,g,w,_plugin2.default.call(void 0, function({addVariant:a}){a("dark-high-contrast",[":is(.dark-high-contrast &)"]),a("high-contrast",[":is(.light-high-contrast &)"])}),_plugin2.default.call(void 0, function({addVariant:a}){a("not-disabled",["&:not(:disabled)"])}),d]};exports.mantlePreset = H;
2
2
  //# sourceMappingURL=tailwind-preset.cjs.map