@helden-inc/cce-ui 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,86 +1,66 @@
1
- # React + TypeScript + Vite
1
+ # @helden-inc/cce-ui
2
2
 
3
- This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
3
+ A UI component library for Helden CCE applications, built with React, TypeScript, and Tailwind CSS.
4
4
 
5
- Currently, two official plugins are available:
5
+ ## Installation
6
6
 
7
- - [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Babel](https://babeljs.io/) (or [oxc](https://oxc.rs) when used in [rolldown-vite](https://vite.dev/guide/rolldown)) for Fast Refresh
8
- - [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
7
+ ```bash
8
+ npm install @helden-inc/cce-ui
9
+ # or
10
+ yarn add @helden-inc/cce-ui
11
+ ```
9
12
 
10
- ## React Compiler
13
+ ## Usage
11
14
 
12
- The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see [this documentation](https://react.dev/learn/react-compiler/installation).
15
+ Import components and styles in your React application:
13
16
 
14
- ## Expanding the ESLint configuration
17
+ ```tsx
18
+ import { Button, Input } from '@helden-inc/cce-ui';
19
+ import '@helden-inc/cce-ui/style.css';
20
+ ```
15
21
 
16
- If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:
22
+ ### Components
17
23
 
18
- ```js
19
- export default defineConfig([
20
- globalIgnores(['dist']),
21
- {
22
- files: ['**/*.{ts,tsx}'],
23
- extends: [
24
- // Other configs...
24
+ #### Button
25
25
 
26
- // Remove tseslint.configs.recommended and replace with this
27
- tseslint.configs.recommendedTypeChecked,
28
- // Alternatively, use this for stricter rules
29
- tseslint.configs.strictTypeChecked,
30
- // Optionally, add this for stylistic rules
31
- tseslint.configs.stylisticTypeChecked,
26
+ A flexible button component with support for titles, descriptions, and custom actions.
32
27
 
33
- // Other configs...
34
- ],
35
- languageOptions: {
36
- parserOptions: {
37
- project: ['./tsconfig.node.json', './tsconfig.app.json'],
38
- tsconfigRootDir: import.meta.dirname,
39
- },
40
- // other options...
41
- },
42
- },
43
- ])
28
+ ```tsx
29
+ <Button
30
+ title="Click me"
31
+ description="This is a description"
32
+ onClick={() => console.log('Clicked')}
33
+ />
44
34
  ```
45
35
 
46
- You can also install [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) and [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) for React-specific lint rules:
47
-
48
- ```js
49
- // eslint.config.js
50
- import reactX from 'eslint-plugin-react-x'
51
- import reactDom from 'eslint-plugin-react-dom'
52
-
53
- export default defineConfig([
54
- globalIgnores(['dist']),
55
- {
56
- files: ['**/*.{ts,tsx}'],
57
- extends: [
58
- // Other configs...
59
- // Enable lint rules for React
60
- reactX.configs['recommended-typescript'],
61
- // Enable lint rules for React DOM
62
- reactDom.configs.recommended,
63
- ],
64
- languageOptions: {
65
- parserOptions: {
66
- project: ['./tsconfig.node.json', './tsconfig.app.json'],
67
- tsconfigRootDir: import.meta.dirname,
68
- },
69
- // other options...
70
- },
71
- },
72
- ])
73
- ```
36
+ **Props:**
74
37
 
75
- # Adding components
38
+ | Prop | Type | Default | Description |
39
+ |------|------|---------|-------------|
40
+ | `title` | `ReactNode` | - | The main text of the button. |
41
+ | `description` | `ReactNode` | - | Secondary text below the title. |
42
+ | `action` | `ReactNode` | `ArrowIcon` | Custom element for the action area (right side). |
43
+ | `size` | `'sm' \| 'md' \| 'lg'` | `'md'` | The size of the button. |
44
+ | `variant` | `'default' \| 'outline'` | `'default'` | Visual style variant. |
45
+ | `children` | `ReactNode` | - | Used if `title` and `description` are not provided. |
76
46
 
77
- ## Button
78
- ```bash
79
- npx shadcn@latest add button
47
+ #### Input
48
+
49
+ A simple input component.
50
+
51
+ ```tsx
52
+ <Input />
80
53
  ```
81
54
 
55
+ ## Development
82
56
 
83
- # kalau tree sudah terpasang:
84
57
  ```bash
85
- tree -a -F src > src-structure.txt
58
+ # Install dependencies
59
+ npm install
60
+
61
+ # Start dev server
62
+ npm run dev
63
+
64
+ # Build the library
65
+ npm run build
86
66
  ```
@@ -1,11 +1,14 @@
1
- import type { ButtonHTMLAttributes, ReactNode } from "react";
1
+ import { type ButtonHTMLAttributes, type ReactNode } from "react";
2
2
  type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
3
3
  title?: ReactNode;
4
4
  description?: ReactNode;
5
5
  action?: ReactNode;
6
+ icon?: ReactNode;
6
7
  size?: "sm" | "md" | "lg";
7
8
  variant?: "default" | "outline";
9
+ color?: "green" | "orange" | "custom";
10
+ customColor?: string;
8
11
  };
9
- declare function Button({ title, description, action, size, variant, className, type, children, ...props }: ButtonProps): import("react/jsx-runtime").JSX.Element;
12
+ declare function Button({ title, description, action, icon, size, variant, color, customColor, className, type, children, ...props }: ButtonProps): import("react/jsx-runtime").JSX.Element;
10
13
  export default Button;
11
14
  //# sourceMappingURL=Button.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../src/components/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAI7D,KAAK,WAAW,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,GAAG;IACzD,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;CACnC,CAAC;AAoBF,iBAAS,MAAM,CAAC,EACZ,KAAK,EACL,WAAW,EACX,MAAM,EACN,IAAW,EACX,OAAmB,EACnB,SAAS,EACT,IAAe,EACf,QAAQ,EACR,GAAG,KAAK,EACX,EAAE,WAAW,2CA+Cb;AAED,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../src/components/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGH,KAAK,oBAAoB,EAEzB,KAAK,SAAS,EACjB,MAAM,OAAO,CAAC;AAIf,KAAK,WAAW,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,GAAG;IACzD,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;IAChC,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,QAAQ,CAAC;IACtC,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAkDF,iBAAS,MAAM,CAAC,EACZ,KAAK,EACL,WAAW,EACX,MAAM,EACN,IAAI,EACJ,IAAW,EACX,OAAmB,EACnB,KAAe,EACf,WAAW,EACX,SAAS,EACT,IAAe,EACf,QAAQ,EACR,GAAG,KAAK,EACX,EAAE,WAAW,2CA6Db;AAED,eAAe,MAAM,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { type ReactNode } from "react";
2
+ type CardProps = {
3
+ image?: ReactNode;
4
+ badge?: ReactNode;
5
+ title?: ReactNode;
6
+ description?: ReactNode;
7
+ action?: ReactNode;
8
+ orientation?: "vertical" | "horizontal";
9
+ accent?: string;
10
+ className?: string;
11
+ bodyClassName?: string;
12
+ };
13
+ declare const Card: ({ image, badge, title, description, action, orientation, accent, className, bodyClassName, }: CardProps) => import("react/jsx-runtime").JSX.Element;
14
+ export default Card;
15
+ //# sourceMappingURL=Card.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../src/components/Card.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,KAAK,SAAS,GAAG;IACb,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,WAAW,CAAC,EAAE,UAAU,GAAG,YAAY,CAAC;IACxC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,QAAA,MAAM,IAAI,GAAI,8FAUX,SAAS,4CAgDX,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -1,3 +1,10 @@
1
- declare function Input(): import("react/jsx-runtime").JSX.Element;
1
+ import { type InputHTMLAttributes, type ReactNode } from "react";
2
+ declare const Input: import("react").ForwardRefExoticComponent<InputHTMLAttributes<HTMLInputElement> & {
3
+ label?: ReactNode;
4
+ description?: ReactNode;
5
+ error?: ReactNode;
6
+ icon?: ReactNode;
7
+ wrapperClassName?: string;
8
+ } & import("react").RefAttributes<HTMLInputElement>>;
2
9
  export default Input;
3
10
  //# sourceMappingURL=Input.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../src/components/Input.tsx"],"names":[],"mappings":"AAAA,iBAAS,KAAK,4CAEb;AAED,eAAe,KAAK,CAAA"}
1
+ {"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../src/components/Input.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,mBAAmB,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAYpF,QAAA,MAAM,KAAK;YAPC,SAAS;kBACH,SAAS;YACf,SAAS;WACV,SAAS;uBACG,MAAM;oDAyE5B,CAAC;AAIF,eAAe,KAAK,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { type ButtonHTMLAttributes, type InputHTMLAttributes, type ReactNode } from "react";
2
+ declare const InputButton: import("react").ForwardRefExoticComponent<InputHTMLAttributes<HTMLInputElement> & {
3
+ label?: ReactNode;
4
+ description?: ReactNode;
5
+ error?: ReactNode;
6
+ icon?: ReactNode;
7
+ buttonLabel?: ReactNode;
8
+ buttonProps?: ButtonHTMLAttributes<HTMLButtonElement>;
9
+ color?: "green" | "orange" | "custom";
10
+ customColor?: string;
11
+ wrapperClassName?: string;
12
+ inputClassName?: string;
13
+ buttonClassName?: string;
14
+ } & import("react").RefAttributes<HTMLInputElement>>;
15
+ export default InputButton;
16
+ //# sourceMappingURL=InputButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InputButton.d.ts","sourceRoot":"","sources":["../../src/components/InputButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGH,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,SAAS,EACjB,MAAM,OAAO,CAAC;AAkBf,QAAA,MAAM,WAAW;YAbL,SAAS;kBACH,SAAS;YACf,SAAS;WACV,SAAS;kBACF,SAAS;kBACT,oBAAoB,CAAC,iBAAiB,CAAC;YAC7C,OAAO,GAAG,QAAQ,GAAG,QAAQ;kBACvB,MAAM;uBACD,MAAM;qBACR,MAAM;sBACL,MAAM;oDA0G3B,CAAC;AAIF,eAAe,WAAW,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { type ReactNode, type SelectHTMLAttributes } from "react";
2
+ type SelectOption = {
3
+ label: string;
4
+ value: string;
5
+ disabled?: boolean;
6
+ };
7
+ declare const Select: import("react").ForwardRefExoticComponent<SelectHTMLAttributes<HTMLSelectElement> & {
8
+ label?: ReactNode;
9
+ description?: ReactNode;
10
+ error?: ReactNode;
11
+ options?: SelectOption[];
12
+ placeholder?: string;
13
+ icon?: ReactNode;
14
+ searchable?: boolean;
15
+ onValueChange?: (value: string | string[]) => void;
16
+ wrapperClassName?: string;
17
+ } & import("react").RefAttributes<HTMLSelectElement>>;
18
+ export default Select;
19
+ //# sourceMappingURL=Select.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../src/components/Select.tsx"],"names":[],"mappings":"AAAA,OAAO,EAOH,KAAK,SAAS,EACd,KAAK,oBAAoB,EAC5B,MAAM,OAAO,CAAC;AAIf,KAAK,YAAY,GAAG;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAcF,QAAA,MAAM,MAAM;YAXA,SAAS;kBACH,SAAS;YACf,SAAS;cACP,YAAY,EAAE;kBACV,MAAM;WACb,SAAS;iBACH,OAAO;oBACJ,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,KAAK,IAAI;uBAC/B,MAAM;qDAuW5B,CAAC;AAIF,eAAe,MAAM,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { type ElementType, type ReactNode } from "react";
2
+ type TypographyVariant = "h1" | "tussenkop" | "h2" | "body";
3
+ type TypographyProps<T extends ElementType> = {
4
+ as?: T;
5
+ variant?: TypographyVariant;
6
+ children: ReactNode;
7
+ className?: string;
8
+ };
9
+ declare const Typography: import("react").ForwardRefExoticComponent<TypographyProps<ElementType> & import("react").RefAttributes<HTMLElement>>;
10
+ export default Typography;
11
+ //# sourceMappingURL=Typography.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Typography.d.ts","sourceRoot":"","sources":["../../src/components/Typography.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,WAAW,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAIrE,KAAK,iBAAiB,GAAG,IAAI,GAAG,WAAW,GAAG,IAAI,GAAG,MAAM,CAAC;AAE5D,KAAK,eAAe,CAAC,CAAC,SAAS,WAAW,IAAI;IAC1C,EAAE,CAAC,EAAE,CAAC,CAAC;IACP,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAC5B,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAgBF,QAAA,MAAM,UAAU,sHAaf,CAAC;AAIF,eAAe,UAAU,CAAC"}
package/dist/index.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const y=require("react/jsx-runtime");function ke(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(r=ke(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function Oe(){for(var e,t,r=0,o="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=ke(e))&&(o&&(o+=" "),o+=t);return o}const Le=(e,t)=>{const r=new Array(e.length+t.length);for(let o=0;o<e.length;o++)r[o]=e[o];for(let o=0;o<t.length;o++)r[e.length+o]=t[o];return r},_e=(e,t)=>({classGroupId:e,validator:t}),ye=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),Z="-",be=[],Ee="arbitrary..",Ve=e=>{const t=Fe(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return Be(l);const u=l.split(Z),i=u[0]===""&&u.length>1?1:0;return ve(u,i,t)},getConflictingClassGroupIds:(l,u)=>{if(u){const i=o[l],f=r[l];return i?f?Le(f,i):i:f||be}return r[l]||be}}},ve=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const a=e[t],d=r.nextPart.get(a);if(d){const f=ve(e,t+1,d);if(f)return f}const l=r.validators;if(l===null)return;const u=t===0?e.join(Z):e.slice(t).join(Z),i=l.length;for(let f=0;f<i;f++){const b=l[f];if(b.validator(u))return b.classGroupId}},Be=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),o=t.slice(0,r);return o?Ee+o:void 0})(),Fe=e=>{const{theme:t,classGroups:r}=e;return We(r,t)},We=(e,t)=>{const r=ye();for(const o in e){const a=e[o];ae(a,r,o,t)}return r},ae=(e,t,r,o)=>{const a=e.length;for(let d=0;d<a;d++){const l=e[d];Ue(l,t,r,o)}},Ue=(e,t,r,o)=>{if(typeof e=="string"){$e(e,t,r);return}if(typeof e=="function"){De(e,t,r,o);return}Ye(e,t,r,o)},$e=(e,t,r)=>{const o=e===""?t:Ce(t,e);o.classGroupId=r},De=(e,t,r,o)=>{if(qe(e)){ae(e(o),t,r,o);return}t.validators===null&&(t.validators=[]),t.validators.push(_e(r,e))},Ye=(e,t,r,o)=>{const a=Object.entries(e),d=a.length;for(let l=0;l<d;l++){const[u,i]=a[l];ae(i,Ce(t,u),r,o)}},Ce=(e,t)=>{let r=e;const o=t.split(Z),a=o.length;for(let d=0;d<a;d++){const l=o[d];let u=r.nextPart.get(l);u||(u=ye(),r.nextPart.set(l,u)),r=u}return r},qe=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Xe=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),o=Object.create(null);const a=(d,l)=>{r[d]=l,t++,t>e&&(t=0,o=r,r=Object.create(null))};return{get(d){let l=r[d];if(l!==void 0)return l;if((l=o[d])!==void 0)return a(d,l),l},set(d,l){d in r?r[d]=l:a(d,l)}}},ne="!",ge=":",Je=[],he=(e,t,r,o,a)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:o,isExternal:a}),He=e=>{const{prefix:t,experimentalParseClassName:r}=e;let o=a=>{const d=[];let l=0,u=0,i=0,f;const b=a.length;for(let C=0;C<b;C++){const w=a[C];if(l===0&&u===0){if(w===ge){d.push(a.slice(i,C)),i=C+1;continue}if(w==="/"){f=C;continue}}w==="["?l++:w==="]"?l--:w==="("?u++:w===")"&&u--}const v=d.length===0?a:a.slice(i);let z=v,I=!1;v.endsWith(ne)?(z=v.slice(0,-1),I=!0):v.startsWith(ne)&&(z=v.slice(1),I=!0);const M=f&&f>i?f-i:void 0;return he(d,I,z,M)};if(t){const a=t+ge,d=o;o=l=>l.startsWith(a)?d(l.slice(a.length)):he(Je,!1,l,void 0,!0)}if(r){const a=o;o=d=>r({className:d,parseClassName:a})}return o},Ke=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,o)=>{t.set(r,1e6+o)}),r=>{const o=[];let a=[];for(let d=0;d<r.length;d++){const l=r[d],u=l[0]==="[",i=t.has(l);u||i?(a.length>0&&(a.sort(),o.push(...a),a=[]),o.push(l)):a.push(l)}return a.length>0&&(a.sort(),o.push(...a)),o}},Qe=e=>({cache:Xe(e.cacheSize),parseClassName:He(e),sortModifiers:Ke(e),...Ve(e)}),Ze=/\s+/,eo=(e,t)=>{const{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:a,sortModifiers:d}=t,l=[],u=e.trim().split(Ze);let i="";for(let f=u.length-1;f>=0;f-=1){const b=u[f],{isExternal:v,modifiers:z,hasImportantModifier:I,baseClassName:M,maybePostfixModifierPosition:C}=r(b);if(v){i=b+(i.length>0?" "+i:i);continue}let w=!!C,P=o(w?M.substring(0,C):M);if(!P){if(!w){i=b+(i.length>0?" "+i:i);continue}if(P=o(M),!P){i=b+(i.length>0?" "+i:i);continue}w=!1}const $=z.length===0?"":z.length===1?z[0]:d(z).join(":"),F=I?$+ne:$,O=F+P;if(l.indexOf(O)>-1)continue;l.push(O);const L=a(P,w);for(let G=0;G<L.length;++G){const W=L[G];l.push(F+W)}i=b+(i.length>0?" "+i:i)}return i},oo=(...e)=>{let t=0,r,o,a="";for(;t<e.length;)(r=e[t++])&&(o=ze(r))&&(a&&(a+=" "),a+=o);return a},ze=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=ze(e[o]))&&(r&&(r+=" "),r+=t);return r},ro=(e,...t)=>{let r,o,a,d;const l=i=>{const f=t.reduce((b,v)=>v(b),e());return r=Qe(f),o=r.cache.get,a=r.cache.set,d=u,u(i)},u=i=>{const f=o(i);if(f)return f;const b=eo(i,r);return a(i,b),b};return d=l,(...i)=>d(oo(...i))},to=[],g=e=>{const t=r=>r[e]||to;return t.isThemeGetter=!0,t},Ae=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Se=/^\((?:(\w[\w-]*):)?(.+)\)$/i,so=/^\d+\/\d+$/,no=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ao=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,lo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,io=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,co=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,E=e=>so.test(e),p=e=>!!e&&!Number.isNaN(Number(e)),j=e=>!!e&&Number.isInteger(Number(e)),te=e=>e.endsWith("%")&&p(e.slice(0,-1)),R=e=>no.test(e),mo=()=>!0,po=e=>ao.test(e)&&!lo.test(e),Re=()=>!1,uo=e=>io.test(e),fo=e=>co.test(e),bo=e=>!s(e)&&!n(e),go=e=>V(e,Me,Re),s=e=>Ae.test(e),N=e=>V(e,Pe,po),se=e=>V(e,yo,p),xe=e=>V(e,je,Re),ho=e=>V(e,Ie,fo),H=e=>V(e,Ge,uo),n=e=>Se.test(e),U=e=>B(e,Pe),xo=e=>B(e,vo),we=e=>B(e,je),wo=e=>B(e,Me),ko=e=>B(e,Ie),K=e=>B(e,Ge,!0),V=(e,t,r)=>{const o=Ae.exec(e);return o?o[1]?t(o[1]):r(o[2]):!1},B=(e,t,r=!1)=>{const o=Se.exec(e);return o?o[1]?t(o[1]):r:!1},je=e=>e==="position"||e==="percentage",Ie=e=>e==="image"||e==="url",Me=e=>e==="length"||e==="size"||e==="bg-size",Pe=e=>e==="length",yo=e=>e==="number",vo=e=>e==="family-name",Ge=e=>e==="shadow",Co=()=>{const e=g("color"),t=g("font"),r=g("text"),o=g("font-weight"),a=g("tracking"),d=g("leading"),l=g("breakpoint"),u=g("container"),i=g("spacing"),f=g("radius"),b=g("shadow"),v=g("inset-shadow"),z=g("text-shadow"),I=g("drop-shadow"),M=g("blur"),C=g("perspective"),w=g("aspect"),P=g("ease"),$=g("animate"),F=()=>["auto","avoid","all","avoid-page","page","left","right","column"],O=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],L=()=>[...O(),n,s],G=()=>["auto","hidden","clip","visible","scroll"],W=()=>["auto","contain","none"],m=()=>[n,s,i],A=()=>[E,"full","auto",...m()],le=()=>[j,"none","subgrid",n,s],ie=()=>["auto",{span:["full",j,n,s]},j,n,s],D=()=>[j,"auto",n,s],ce=()=>["auto","min","max","fr",n,s],ee=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],_=()=>["start","end","center","stretch","center-safe","end-safe"],S=()=>["auto",...m()],T=()=>[E,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...m()],c=()=>[e,n,s],de=()=>[...O(),we,xe,{position:[n,s]}],me=()=>["no-repeat",{repeat:["","x","y","space","round"]}],pe=()=>["auto","cover","contain",wo,go,{size:[n,s]}],oe=()=>[te,U,N],x=()=>["","none","full",f,n,s],k=()=>["",p,U,N],Y=()=>["solid","dashed","dotted","double"],ue=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],h=()=>[p,te,we,xe],fe=()=>["","none",M,n,s],q=()=>["none",p,n,s],X=()=>["none",p,n,s],re=()=>[p,n,s],J=()=>[E,"full",...m()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[R],breakpoint:[R],color:[mo],container:[R],"drop-shadow":[R],ease:["in","out","in-out"],font:[bo],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[R],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[R],shadow:[R],spacing:["px",p],text:[R],"text-shadow":[R],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",E,s,n,w]}],container:["container"],columns:[{columns:[p,s,n,u]}],"break-after":[{"break-after":F()}],"break-before":[{"break-before":F()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:L()}],overflow:[{overflow:G()}],"overflow-x":[{"overflow-x":G()}],"overflow-y":[{"overflow-y":G()}],overscroll:[{overscroll:W()}],"overscroll-x":[{"overscroll-x":W()}],"overscroll-y":[{"overscroll-y":W()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:A()}],"inset-x":[{"inset-x":A()}],"inset-y":[{"inset-y":A()}],start:[{start:A()}],end:[{end:A()}],top:[{top:A()}],right:[{right:A()}],bottom:[{bottom:A()}],left:[{left:A()}],visibility:["visible","invisible","collapse"],z:[{z:[j,"auto",n,s]}],basis:[{basis:[E,"full","auto",u,...m()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[p,E,"auto","initial","none",s]}],grow:[{grow:["",p,n,s]}],shrink:[{shrink:["",p,n,s]}],order:[{order:[j,"first","last","none",n,s]}],"grid-cols":[{"grid-cols":le()}],"col-start-end":[{col:ie()}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":le()}],"row-start-end":[{row:ie()}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ce()}],"auto-rows":[{"auto-rows":ce()}],gap:[{gap:m()}],"gap-x":[{"gap-x":m()}],"gap-y":[{"gap-y":m()}],"justify-content":[{justify:[...ee(),"normal"]}],"justify-items":[{"justify-items":[..._(),"normal"]}],"justify-self":[{"justify-self":["auto",..._()]}],"align-content":[{content:["normal",...ee()]}],"align-items":[{items:[..._(),{baseline:["","last"]}]}],"align-self":[{self:["auto",..._(),{baseline:["","last"]}]}],"place-content":[{"place-content":ee()}],"place-items":[{"place-items":[..._(),"baseline"]}],"place-self":[{"place-self":["auto",..._()]}],p:[{p:m()}],px:[{px:m()}],py:[{py:m()}],ps:[{ps:m()}],pe:[{pe:m()}],pt:[{pt:m()}],pr:[{pr:m()}],pb:[{pb:m()}],pl:[{pl:m()}],m:[{m:S()}],mx:[{mx:S()}],my:[{my:S()}],ms:[{ms:S()}],me:[{me:S()}],mt:[{mt:S()}],mr:[{mr:S()}],mb:[{mb:S()}],ml:[{ml:S()}],"space-x":[{"space-x":m()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":m()}],"space-y-reverse":["space-y-reverse"],size:[{size:T()}],w:[{w:[u,"screen",...T()]}],"min-w":[{"min-w":[u,"screen","none",...T()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[l]},...T()]}],h:[{h:["screen","lh",...T()]}],"min-h":[{"min-h":["screen","lh","none",...T()]}],"max-h":[{"max-h":["screen","lh",...T()]}],"font-size":[{text:["base",r,U,N]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,n,se]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",te,s]}],"font-family":[{font:[xo,s,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[a,n,s]}],"line-clamp":[{"line-clamp":[p,"none",n,se]}],leading:[{leading:[d,...m()]}],"list-image":[{"list-image":["none",n,s]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",n,s]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:c()}],"text-color":[{text:c()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Y(),"wavy"]}],"text-decoration-thickness":[{decoration:[p,"from-font","auto",n,N]}],"text-decoration-color":[{decoration:c()}],"underline-offset":[{"underline-offset":[p,"auto",n,s]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:m()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",n,s]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",n,s]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:de()}],"bg-repeat":[{bg:me()}],"bg-size":[{bg:pe()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},j,n,s],radial:["",n,s],conic:[j,n,s]},ko,ho]}],"bg-color":[{bg:c()}],"gradient-from-pos":[{from:oe()}],"gradient-via-pos":[{via:oe()}],"gradient-to-pos":[{to:oe()}],"gradient-from":[{from:c()}],"gradient-via":[{via:c()}],"gradient-to":[{to:c()}],rounded:[{rounded:x()}],"rounded-s":[{"rounded-s":x()}],"rounded-e":[{"rounded-e":x()}],"rounded-t":[{"rounded-t":x()}],"rounded-r":[{"rounded-r":x()}],"rounded-b":[{"rounded-b":x()}],"rounded-l":[{"rounded-l":x()}],"rounded-ss":[{"rounded-ss":x()}],"rounded-se":[{"rounded-se":x()}],"rounded-ee":[{"rounded-ee":x()}],"rounded-es":[{"rounded-es":x()}],"rounded-tl":[{"rounded-tl":x()}],"rounded-tr":[{"rounded-tr":x()}],"rounded-br":[{"rounded-br":x()}],"rounded-bl":[{"rounded-bl":x()}],"border-w":[{border:k()}],"border-w-x":[{"border-x":k()}],"border-w-y":[{"border-y":k()}],"border-w-s":[{"border-s":k()}],"border-w-e":[{"border-e":k()}],"border-w-t":[{"border-t":k()}],"border-w-r":[{"border-r":k()}],"border-w-b":[{"border-b":k()}],"border-w-l":[{"border-l":k()}],"divide-x":[{"divide-x":k()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":k()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Y(),"hidden","none"]}],"divide-style":[{divide:[...Y(),"hidden","none"]}],"border-color":[{border:c()}],"border-color-x":[{"border-x":c()}],"border-color-y":[{"border-y":c()}],"border-color-s":[{"border-s":c()}],"border-color-e":[{"border-e":c()}],"border-color-t":[{"border-t":c()}],"border-color-r":[{"border-r":c()}],"border-color-b":[{"border-b":c()}],"border-color-l":[{"border-l":c()}],"divide-color":[{divide:c()}],"outline-style":[{outline:[...Y(),"none","hidden"]}],"outline-offset":[{"outline-offset":[p,n,s]}],"outline-w":[{outline:["",p,U,N]}],"outline-color":[{outline:c()}],shadow:[{shadow:["","none",b,K,H]}],"shadow-color":[{shadow:c()}],"inset-shadow":[{"inset-shadow":["none",v,K,H]}],"inset-shadow-color":[{"inset-shadow":c()}],"ring-w":[{ring:k()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:c()}],"ring-offset-w":[{"ring-offset":[p,N]}],"ring-offset-color":[{"ring-offset":c()}],"inset-ring-w":[{"inset-ring":k()}],"inset-ring-color":[{"inset-ring":c()}],"text-shadow":[{"text-shadow":["none",z,K,H]}],"text-shadow-color":[{"text-shadow":c()}],opacity:[{opacity:[p,n,s]}],"mix-blend":[{"mix-blend":[...ue(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ue()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[p]}],"mask-image-linear-from-pos":[{"mask-linear-from":h()}],"mask-image-linear-to-pos":[{"mask-linear-to":h()}],"mask-image-linear-from-color":[{"mask-linear-from":c()}],"mask-image-linear-to-color":[{"mask-linear-to":c()}],"mask-image-t-from-pos":[{"mask-t-from":h()}],"mask-image-t-to-pos":[{"mask-t-to":h()}],"mask-image-t-from-color":[{"mask-t-from":c()}],"mask-image-t-to-color":[{"mask-t-to":c()}],"mask-image-r-from-pos":[{"mask-r-from":h()}],"mask-image-r-to-pos":[{"mask-r-to":h()}],"mask-image-r-from-color":[{"mask-r-from":c()}],"mask-image-r-to-color":[{"mask-r-to":c()}],"mask-image-b-from-pos":[{"mask-b-from":h()}],"mask-image-b-to-pos":[{"mask-b-to":h()}],"mask-image-b-from-color":[{"mask-b-from":c()}],"mask-image-b-to-color":[{"mask-b-to":c()}],"mask-image-l-from-pos":[{"mask-l-from":h()}],"mask-image-l-to-pos":[{"mask-l-to":h()}],"mask-image-l-from-color":[{"mask-l-from":c()}],"mask-image-l-to-color":[{"mask-l-to":c()}],"mask-image-x-from-pos":[{"mask-x-from":h()}],"mask-image-x-to-pos":[{"mask-x-to":h()}],"mask-image-x-from-color":[{"mask-x-from":c()}],"mask-image-x-to-color":[{"mask-x-to":c()}],"mask-image-y-from-pos":[{"mask-y-from":h()}],"mask-image-y-to-pos":[{"mask-y-to":h()}],"mask-image-y-from-color":[{"mask-y-from":c()}],"mask-image-y-to-color":[{"mask-y-to":c()}],"mask-image-radial":[{"mask-radial":[n,s]}],"mask-image-radial-from-pos":[{"mask-radial-from":h()}],"mask-image-radial-to-pos":[{"mask-radial-to":h()}],"mask-image-radial-from-color":[{"mask-radial-from":c()}],"mask-image-radial-to-color":[{"mask-radial-to":c()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":O()}],"mask-image-conic-pos":[{"mask-conic":[p]}],"mask-image-conic-from-pos":[{"mask-conic-from":h()}],"mask-image-conic-to-pos":[{"mask-conic-to":h()}],"mask-image-conic-from-color":[{"mask-conic-from":c()}],"mask-image-conic-to-color":[{"mask-conic-to":c()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:de()}],"mask-repeat":[{mask:me()}],"mask-size":[{mask:pe()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",n,s]}],filter:[{filter:["","none",n,s]}],blur:[{blur:fe()}],brightness:[{brightness:[p,n,s]}],contrast:[{contrast:[p,n,s]}],"drop-shadow":[{"drop-shadow":["","none",I,K,H]}],"drop-shadow-color":[{"drop-shadow":c()}],grayscale:[{grayscale:["",p,n,s]}],"hue-rotate":[{"hue-rotate":[p,n,s]}],invert:[{invert:["",p,n,s]}],saturate:[{saturate:[p,n,s]}],sepia:[{sepia:["",p,n,s]}],"backdrop-filter":[{"backdrop-filter":["","none",n,s]}],"backdrop-blur":[{"backdrop-blur":fe()}],"backdrop-brightness":[{"backdrop-brightness":[p,n,s]}],"backdrop-contrast":[{"backdrop-contrast":[p,n,s]}],"backdrop-grayscale":[{"backdrop-grayscale":["",p,n,s]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p,n,s]}],"backdrop-invert":[{"backdrop-invert":["",p,n,s]}],"backdrop-opacity":[{"backdrop-opacity":[p,n,s]}],"backdrop-saturate":[{"backdrop-saturate":[p,n,s]}],"backdrop-sepia":[{"backdrop-sepia":["",p,n,s]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":m()}],"border-spacing-x":[{"border-spacing-x":m()}],"border-spacing-y":[{"border-spacing-y":m()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",n,s]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[p,"initial",n,s]}],ease:[{ease:["linear","initial",P,n,s]}],delay:[{delay:[p,n,s]}],animate:[{animate:["none",$,n,s]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[C,n,s]}],"perspective-origin":[{"perspective-origin":L()}],rotate:[{rotate:q()}],"rotate-x":[{"rotate-x":q()}],"rotate-y":[{"rotate-y":q()}],"rotate-z":[{"rotate-z":q()}],scale:[{scale:X()}],"scale-x":[{"scale-x":X()}],"scale-y":[{"scale-y":X()}],"scale-z":[{"scale-z":X()}],"scale-3d":["scale-3d"],skew:[{skew:re()}],"skew-x":[{"skew-x":re()}],"skew-y":[{"skew-y":re()}],transform:[{transform:[n,s,"","none","gpu","cpu"]}],"transform-origin":[{origin:L()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:J()}],"translate-x":[{"translate-x":J()}],"translate-y":[{"translate-y":J()}],"translate-z":[{"translate-z":J()}],"translate-none":["translate-none"],accent:[{accent:c()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:c()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",n,s]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":m()}],"scroll-mx":[{"scroll-mx":m()}],"scroll-my":[{"scroll-my":m()}],"scroll-ms":[{"scroll-ms":m()}],"scroll-me":[{"scroll-me":m()}],"scroll-mt":[{"scroll-mt":m()}],"scroll-mr":[{"scroll-mr":m()}],"scroll-mb":[{"scroll-mb":m()}],"scroll-ml":[{"scroll-ml":m()}],"scroll-p":[{"scroll-p":m()}],"scroll-px":[{"scroll-px":m()}],"scroll-py":[{"scroll-py":m()}],"scroll-ps":[{"scroll-ps":m()}],"scroll-pe":[{"scroll-pe":m()}],"scroll-pt":[{"scroll-pt":m()}],"scroll-pr":[{"scroll-pr":m()}],"scroll-pb":[{"scroll-pb":m()}],"scroll-pl":[{"scroll-pl":m()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",n,s]}],fill:[{fill:["none",...c()]}],"stroke-w":[{stroke:[p,U,N,se]}],stroke:[{stroke:["none",...c()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},zo=ro(Co);function Q(...e){return zo(Oe(e))}const Ao=y.jsx("span",{className:"-ml-12 flex h-12 w-12 items-center justify-center rounded-full border-2 border-neutral-800 bg-white shadow-[0_2px_0_rgba(0,0,0,0.15)]",children:y.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",className:"h-5 w-5","aria-hidden":"true",children:[y.jsx("path",{d:"M5 12h12"}),y.jsx("path",{d:"m13 6 6 6-6 6"})]})});function Te({title:e,description:t,action:r,size:o="md",variant:a="default",className:d,type:l="button",children:u,...i}){const b=e!=null||t!=null?y.jsxs("span",{className:"flex flex-col gap-1",children:[e?y.jsx("span",{className:"text-lg font-semibold",children:e}):null,t?y.jsx("span",{className:"text-sm text-neutral-600",children:t}):null]}):y.jsx("span",{className:"text-lg font-semibold",children:u});return y.jsxs("button",{type:l,className:Q("cursor-pointer inline-flex items-stretch overflow-hidden rounded-md border-2 border-neutral-800 text-neutral-900 shadow-[0_2px_0_rgba(0,0,0,0.15)]",a==="default"?"bg-white":"bg-transparent",o==="sm"&&"text-sm",o==="md"&&"text-base",o==="lg"&&"text-lg",d),...i,children:[y.jsx("span",{className:Q("flex items-center py-4 pl-8 pr-12",o==="sm"&&"py-3 pl-6 pr-10",o==="lg"&&"py-5 pl-10 pr-14"),children:b}),y.jsx("span",{className:Q("relative flex items-center justify-center rounded-r-md px-6",a==="default"?"bg-emerald-500":"bg-transparent",o==="sm"&&"px-5",o==="lg"&&"px-7"),children:r??Ao})]})}function Ne(){return y.jsx("div",{children:"Input"})}const So={Button:Te,Input:Ne};exports.Button=Te;exports.Input=Ne;exports.cn=Q;exports.default=So;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("react/jsx-runtime"),S=require("react");function Ne(e){var o,r,t="";if(typeof e=="string"||typeof e=="number")t+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(o=0;o<s;o++)e[o]&&(r=Ne(e[o]))&&(t&&(t+=" "),t+=r)}else for(r in e)e[r]&&(t&&(t+=" "),t+=r);return t}function Fe(){for(var e,o,r=0,t="",s=arguments.length;r<s;r++)(e=arguments[r])&&(o=Ne(e))&&(t&&(t+=" "),t+=o);return t}const Ve=(e,o)=>{const r=new Array(e.length+o.length);for(let t=0;t<e.length;t++)r[t]=e[t];for(let t=0;t<o.length;t++)r[e.length+t]=o[t];return r},We=(e,o)=>({classGroupId:e,validator:o}),Ce=(e=new Map,o=null,r)=>({nextPart:e,validators:o,classGroupId:r}),ce="-",we=[],De="arbitrary..",$e=e=>{const o=Ye(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:t}=e;return{getClassGroupId:n=>{if(n.startsWith("[")&&n.endsWith("]"))return Ue(n);const p=n.split(ce),c=p[0]===""&&p.length>1?1:0;return Se(p,c,o)},getConflictingClassGroupIds:(n,p)=>{if(p){const c=t[n],g=r[n];return c?g?Ve(g,c):c:g||we}return r[n]||we}}},Se=(e,o,r)=>{if(e.length-o===0)return r.classGroupId;const s=e[o],d=r.nextPart.get(s);if(d){const g=Se(e,o+1,d);if(g)return g}const n=r.validators;if(n===null)return;const p=o===0?e.join(ce):e.slice(o).join(ce),c=n.length;for(let g=0;g<c;g++){const x=n[g];if(x.validator(p))return x.classGroupId}},Ue=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const o=e.slice(1,-1),r=o.indexOf(":"),t=o.slice(0,r);return t?De+t:void 0})(),Ye=e=>{const{theme:o,classGroups:r}=e;return Xe(r,o)},Xe=(e,o)=>{const r=Ce();for(const t in e){const s=e[t];fe(s,r,t,o)}return r},fe=(e,o,r,t)=>{const s=e.length;for(let d=0;d<s;d++){const n=e[d];qe(n,o,r,t)}},qe=(e,o,r,t)=>{if(typeof e=="string"){Je(e,o,r);return}if(typeof e=="function"){Qe(e,o,r,t);return}He(e,o,r,t)},Je=(e,o,r)=>{const t=e===""?o:ze(o,e);t.classGroupId=r},Qe=(e,o,r,t)=>{if(Ke(e)){fe(e(t),o,r,t);return}o.validators===null&&(o.validators=[]),o.validators.push(We(r,e))},He=(e,o,r,t)=>{const s=Object.entries(e),d=s.length;for(let n=0;n<d;n++){const[p,c]=s[n];fe(c,ze(o,p),r,t)}},ze=(e,o)=>{let r=e;const t=o.split(ce),s=t.length;for(let d=0;d<s;d++){const n=t[d];let p=r.nextPart.get(n);p||(p=Ce(),r.nextPart.set(n,p)),r=p}return r},Ke=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Ze=e=>{if(e<1)return{get:()=>{},set:()=>{}};let o=0,r=Object.create(null),t=Object.create(null);const s=(d,n)=>{r[d]=n,o++,o>e&&(o=0,t=r,r=Object.create(null))};return{get(d){let n=r[d];if(n!==void 0)return n;if((n=t[d])!==void 0)return s(d,n),n},set(d,n){d in r?r[d]=n:s(d,n)}}},be="!",ye=":",et=[],ve=(e,o,r,t,s)=>({modifiers:e,hasImportantModifier:o,baseClassName:r,maybePostfixModifierPosition:t,isExternal:s}),tt=e=>{const{prefix:o,experimentalParseClassName:r}=e;let t=s=>{const d=[];let n=0,p=0,c=0,g;const x=s.length;for(let C=0;C<x;C++){const v=s[C];if(n===0&&p===0){if(v===ye){d.push(s.slice(c,C)),c=C+1;continue}if(v==="/"){g=C;continue}}v==="["?n++:v==="]"?n--:v==="("?p++:v===")"&&p--}const w=d.length===0?s:s.slice(c);let y=w,j=!1;w.endsWith(be)?(y=w.slice(0,-1),j=!0):w.startsWith(be)&&(y=w.slice(1),j=!0);const z=g&&g>c?g-c:void 0;return ve(d,j,y,z)};if(o){const s=o+ye,d=t;t=n=>n.startsWith(s)?d(n.slice(s.length)):ve(et,!1,n,void 0,!0)}if(r){const s=t;t=d=>r({className:d,parseClassName:s})}return t},rt=e=>{const o=new Map;return e.orderSensitiveModifiers.forEach((r,t)=>{o.set(r,1e6+t)}),r=>{const t=[];let s=[];for(let d=0;d<r.length;d++){const n=r[d],p=n[0]==="[",c=o.has(n);p||c?(s.length>0&&(s.sort(),t.push(...s),s=[]),t.push(n)):s.push(n)}return s.length>0&&(s.sort(),t.push(...s)),t}},ot=e=>({cache:Ze(e.cacheSize),parseClassName:tt(e),sortModifiers:rt(e),...$e(e)}),st=/\s+/,nt=(e,o)=>{const{parseClassName:r,getClassGroupId:t,getConflictingClassGroupIds:s,sortModifiers:d}=o,n=[],p=e.trim().split(st);let c="";for(let g=p.length-1;g>=0;g-=1){const x=p[g],{isExternal:w,modifiers:y,hasImportantModifier:j,baseClassName:z,maybePostfixModifierPosition:C}=r(x);if(w){c=x+(c.length>0?" "+c:c);continue}let v=!!C,G=t(v?z.substring(0,C):z);if(!G){if(!v){c=x+(c.length>0?" "+c:c);continue}if(G=t(z),!G){c=x+(c.length>0?" "+c:c);continue}v=!1}const V=y.length===0?"":y.length===1?y[0]:d(y).join(":"),B=j?V+be:V,L=B+G;if(n.indexOf(L)>-1)continue;n.push(L);const M=s(G,v);for(let A=0;A<M.length;++A){const T=M[A];n.push(B+T)}c=x+(c.length>0?" "+c:c)}return c},at=(...e)=>{let o=0,r,t,s="";for(;o<e.length;)(r=e[o++])&&(t=Ae(r))&&(s&&(s+=" "),s+=t);return s},Ae=e=>{if(typeof e=="string")return e;let o,r="";for(let t=0;t<e.length;t++)e[t]&&(o=Ae(e[t]))&&(r&&(r+=" "),r+=o);return r},lt=(e,...o)=>{let r,t,s,d;const n=c=>{const g=o.reduce((x,w)=>w(x),e());return r=ot(g),t=r.cache.get,s=r.cache.set,d=p,p(c)},p=c=>{const g=t(c);if(g)return g;const x=nt(c,r);return s(c,x),x};return d=n,(...c)=>d(at(...c))},it=[],N=e=>{const o=r=>r[e]||it;return o.isThemeGetter=!0,o},Ie=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Re=/^\((?:(\w[\w-]*):)?(.+)\)$/i,dt=/^\d+\/\d+$/,ct=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ut=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,mt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,pt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,bt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Z=e=>dt.test(e),f=e=>!!e&&!Number.isNaN(Number(e)),X=e=>!!e&&Number.isInteger(Number(e)),me=e=>e.endsWith("%")&&f(e.slice(0,-1)),D=e=>ct.test(e),ft=()=>!0,gt=e=>ut.test(e)&&!mt.test(e),Me=()=>!1,ht=e=>pt.test(e),xt=e=>bt.test(e),kt=e=>!l(e)&&!i(e),wt=e=>ee(e,Ee,Me),l=e=>Ie.test(e),Q=e=>ee(e,Ge,gt),pe=e=>ee(e,Nt,f),je=e=>ee(e,Pe,Me),yt=e=>ee(e,Te,xt),ie=e=>ee(e,Le,ht),i=e=>Re.test(e),ne=e=>te(e,Ge),vt=e=>te(e,Ct),_e=e=>te(e,Pe),jt=e=>te(e,Ee),_t=e=>te(e,Te),de=e=>te(e,Le,!0),ee=(e,o,r)=>{const t=Ie.exec(e);return t?t[1]?o(t[1]):r(t[2]):!1},te=(e,o,r=!1)=>{const t=Re.exec(e);return t?t[1]?o(t[1]):r:!1},Pe=e=>e==="position"||e==="percentage",Te=e=>e==="image"||e==="url",Ee=e=>e==="length"||e==="size"||e==="bg-size",Ge=e=>e==="length",Nt=e=>e==="number",Ct=e=>e==="family-name",Le=e=>e==="shadow",St=()=>{const e=N("color"),o=N("font"),r=N("text"),t=N("font-weight"),s=N("tracking"),d=N("leading"),n=N("breakpoint"),p=N("container"),c=N("spacing"),g=N("radius"),x=N("shadow"),w=N("inset-shadow"),y=N("text-shadow"),j=N("drop-shadow"),z=N("blur"),C=N("perspective"),v=N("aspect"),G=N("ease"),V=N("animate"),B=()=>["auto","avoid","all","avoid-page","page","left","right","column"],L=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],M=()=>[...L(),i,l],A=()=>["auto","hidden","clip","visible","scroll"],T=()=>["auto","contain","none"],m=()=>[i,l,c],I=()=>[Z,"full","auto",...m()],q=()=>[X,"none","subgrid",i,l],re=()=>["auto",{span:["full",X,i,l]},X,i,l],$=()=>[X,"auto",i,l],J=()=>["auto","min","max","fr",i,l],oe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],U=()=>["start","end","center","stretch","center-safe","end-safe"],O=()=>["auto",...m()],W=()=>[Z,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...m()],u=()=>[e,i,l],E=()=>[...L(),_e,je,{position:[i,l]}],H=()=>["no-repeat",{repeat:["","x","y","space","round"]}],se=()=>["auto","cover","contain",jt,wt,{size:[i,l]}],Y=()=>[me,ne,Q],_=()=>["","none","full",g,i,l],R=()=>["",f,ne,Q],K=()=>["solid","dashed","dotted","double"],b=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],h=()=>[f,me,_e,je],P=()=>["","none",z,i,l],F=()=>["none",f,i,l],ae=()=>["none",f,i,l],ue=()=>[f,i,l],le=()=>[Z,"full",...m()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[D],breakpoint:[D],color:[ft],container:[D],"drop-shadow":[D],ease:["in","out","in-out"],font:[kt],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[D],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[D],shadow:[D],spacing:["px",f],text:[D],"text-shadow":[D],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Z,l,i,v]}],container:["container"],columns:[{columns:[f,l,i,p]}],"break-after":[{"break-after":B()}],"break-before":[{"break-before":B()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:M()}],overflow:[{overflow:A()}],"overflow-x":[{"overflow-x":A()}],"overflow-y":[{"overflow-y":A()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:I()}],"inset-x":[{"inset-x":I()}],"inset-y":[{"inset-y":I()}],start:[{start:I()}],end:[{end:I()}],top:[{top:I()}],right:[{right:I()}],bottom:[{bottom:I()}],left:[{left:I()}],visibility:["visible","invisible","collapse"],z:[{z:[X,"auto",i,l]}],basis:[{basis:[Z,"full","auto",p,...m()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[f,Z,"auto","initial","none",l]}],grow:[{grow:["",f,i,l]}],shrink:[{shrink:["",f,i,l]}],order:[{order:[X,"first","last","none",i,l]}],"grid-cols":[{"grid-cols":q()}],"col-start-end":[{col:re()}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":q()}],"row-start-end":[{row:re()}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":J()}],"auto-rows":[{"auto-rows":J()}],gap:[{gap:m()}],"gap-x":[{"gap-x":m()}],"gap-y":[{"gap-y":m()}],"justify-content":[{justify:[...oe(),"normal"]}],"justify-items":[{"justify-items":[...U(),"normal"]}],"justify-self":[{"justify-self":["auto",...U()]}],"align-content":[{content:["normal",...oe()]}],"align-items":[{items:[...U(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...U(),{baseline:["","last"]}]}],"place-content":[{"place-content":oe()}],"place-items":[{"place-items":[...U(),"baseline"]}],"place-self":[{"place-self":["auto",...U()]}],p:[{p:m()}],px:[{px:m()}],py:[{py:m()}],ps:[{ps:m()}],pe:[{pe:m()}],pt:[{pt:m()}],pr:[{pr:m()}],pb:[{pb:m()}],pl:[{pl:m()}],m:[{m:O()}],mx:[{mx:O()}],my:[{my:O()}],ms:[{ms:O()}],me:[{me:O()}],mt:[{mt:O()}],mr:[{mr:O()}],mb:[{mb:O()}],ml:[{ml:O()}],"space-x":[{"space-x":m()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":m()}],"space-y-reverse":["space-y-reverse"],size:[{size:W()}],w:[{w:[p,"screen",...W()]}],"min-w":[{"min-w":[p,"screen","none",...W()]}],"max-w":[{"max-w":[p,"screen","none","prose",{screen:[n]},...W()]}],h:[{h:["screen","lh",...W()]}],"min-h":[{"min-h":["screen","lh","none",...W()]}],"max-h":[{"max-h":["screen","lh",...W()]}],"font-size":[{text:["base",r,ne,Q]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[t,i,pe]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",me,l]}],"font-family":[{font:[vt,l,o]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,i,l]}],"line-clamp":[{"line-clamp":[f,"none",i,pe]}],leading:[{leading:[d,...m()]}],"list-image":[{"list-image":["none",i,l]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",i,l]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:u()}],"text-color":[{text:u()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...K(),"wavy"]}],"text-decoration-thickness":[{decoration:[f,"from-font","auto",i,Q]}],"text-decoration-color":[{decoration:u()}],"underline-offset":[{"underline-offset":[f,"auto",i,l]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:m()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",i,l]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",i,l]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:E()}],"bg-repeat":[{bg:H()}],"bg-size":[{bg:se()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},X,i,l],radial:["",i,l],conic:[X,i,l]},_t,yt]}],"bg-color":[{bg:u()}],"gradient-from-pos":[{from:Y()}],"gradient-via-pos":[{via:Y()}],"gradient-to-pos":[{to:Y()}],"gradient-from":[{from:u()}],"gradient-via":[{via:u()}],"gradient-to":[{to:u()}],rounded:[{rounded:_()}],"rounded-s":[{"rounded-s":_()}],"rounded-e":[{"rounded-e":_()}],"rounded-t":[{"rounded-t":_()}],"rounded-r":[{"rounded-r":_()}],"rounded-b":[{"rounded-b":_()}],"rounded-l":[{"rounded-l":_()}],"rounded-ss":[{"rounded-ss":_()}],"rounded-se":[{"rounded-se":_()}],"rounded-ee":[{"rounded-ee":_()}],"rounded-es":[{"rounded-es":_()}],"rounded-tl":[{"rounded-tl":_()}],"rounded-tr":[{"rounded-tr":_()}],"rounded-br":[{"rounded-br":_()}],"rounded-bl":[{"rounded-bl":_()}],"border-w":[{border:R()}],"border-w-x":[{"border-x":R()}],"border-w-y":[{"border-y":R()}],"border-w-s":[{"border-s":R()}],"border-w-e":[{"border-e":R()}],"border-w-t":[{"border-t":R()}],"border-w-r":[{"border-r":R()}],"border-w-b":[{"border-b":R()}],"border-w-l":[{"border-l":R()}],"divide-x":[{"divide-x":R()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":R()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...K(),"hidden","none"]}],"divide-style":[{divide:[...K(),"hidden","none"]}],"border-color":[{border:u()}],"border-color-x":[{"border-x":u()}],"border-color-y":[{"border-y":u()}],"border-color-s":[{"border-s":u()}],"border-color-e":[{"border-e":u()}],"border-color-t":[{"border-t":u()}],"border-color-r":[{"border-r":u()}],"border-color-b":[{"border-b":u()}],"border-color-l":[{"border-l":u()}],"divide-color":[{divide:u()}],"outline-style":[{outline:[...K(),"none","hidden"]}],"outline-offset":[{"outline-offset":[f,i,l]}],"outline-w":[{outline:["",f,ne,Q]}],"outline-color":[{outline:u()}],shadow:[{shadow:["","none",x,de,ie]}],"shadow-color":[{shadow:u()}],"inset-shadow":[{"inset-shadow":["none",w,de,ie]}],"inset-shadow-color":[{"inset-shadow":u()}],"ring-w":[{ring:R()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:u()}],"ring-offset-w":[{"ring-offset":[f,Q]}],"ring-offset-color":[{"ring-offset":u()}],"inset-ring-w":[{"inset-ring":R()}],"inset-ring-color":[{"inset-ring":u()}],"text-shadow":[{"text-shadow":["none",y,de,ie]}],"text-shadow-color":[{"text-shadow":u()}],opacity:[{opacity:[f,i,l]}],"mix-blend":[{"mix-blend":[...b(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":b()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[f]}],"mask-image-linear-from-pos":[{"mask-linear-from":h()}],"mask-image-linear-to-pos":[{"mask-linear-to":h()}],"mask-image-linear-from-color":[{"mask-linear-from":u()}],"mask-image-linear-to-color":[{"mask-linear-to":u()}],"mask-image-t-from-pos":[{"mask-t-from":h()}],"mask-image-t-to-pos":[{"mask-t-to":h()}],"mask-image-t-from-color":[{"mask-t-from":u()}],"mask-image-t-to-color":[{"mask-t-to":u()}],"mask-image-r-from-pos":[{"mask-r-from":h()}],"mask-image-r-to-pos":[{"mask-r-to":h()}],"mask-image-r-from-color":[{"mask-r-from":u()}],"mask-image-r-to-color":[{"mask-r-to":u()}],"mask-image-b-from-pos":[{"mask-b-from":h()}],"mask-image-b-to-pos":[{"mask-b-to":h()}],"mask-image-b-from-color":[{"mask-b-from":u()}],"mask-image-b-to-color":[{"mask-b-to":u()}],"mask-image-l-from-pos":[{"mask-l-from":h()}],"mask-image-l-to-pos":[{"mask-l-to":h()}],"mask-image-l-from-color":[{"mask-l-from":u()}],"mask-image-l-to-color":[{"mask-l-to":u()}],"mask-image-x-from-pos":[{"mask-x-from":h()}],"mask-image-x-to-pos":[{"mask-x-to":h()}],"mask-image-x-from-color":[{"mask-x-from":u()}],"mask-image-x-to-color":[{"mask-x-to":u()}],"mask-image-y-from-pos":[{"mask-y-from":h()}],"mask-image-y-to-pos":[{"mask-y-to":h()}],"mask-image-y-from-color":[{"mask-y-from":u()}],"mask-image-y-to-color":[{"mask-y-to":u()}],"mask-image-radial":[{"mask-radial":[i,l]}],"mask-image-radial-from-pos":[{"mask-radial-from":h()}],"mask-image-radial-to-pos":[{"mask-radial-to":h()}],"mask-image-radial-from-color":[{"mask-radial-from":u()}],"mask-image-radial-to-color":[{"mask-radial-to":u()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":L()}],"mask-image-conic-pos":[{"mask-conic":[f]}],"mask-image-conic-from-pos":[{"mask-conic-from":h()}],"mask-image-conic-to-pos":[{"mask-conic-to":h()}],"mask-image-conic-from-color":[{"mask-conic-from":u()}],"mask-image-conic-to-color":[{"mask-conic-to":u()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:E()}],"mask-repeat":[{mask:H()}],"mask-size":[{mask:se()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",i,l]}],filter:[{filter:["","none",i,l]}],blur:[{blur:P()}],brightness:[{brightness:[f,i,l]}],contrast:[{contrast:[f,i,l]}],"drop-shadow":[{"drop-shadow":["","none",j,de,ie]}],"drop-shadow-color":[{"drop-shadow":u()}],grayscale:[{grayscale:["",f,i,l]}],"hue-rotate":[{"hue-rotate":[f,i,l]}],invert:[{invert:["",f,i,l]}],saturate:[{saturate:[f,i,l]}],sepia:[{sepia:["",f,i,l]}],"backdrop-filter":[{"backdrop-filter":["","none",i,l]}],"backdrop-blur":[{"backdrop-blur":P()}],"backdrop-brightness":[{"backdrop-brightness":[f,i,l]}],"backdrop-contrast":[{"backdrop-contrast":[f,i,l]}],"backdrop-grayscale":[{"backdrop-grayscale":["",f,i,l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f,i,l]}],"backdrop-invert":[{"backdrop-invert":["",f,i,l]}],"backdrop-opacity":[{"backdrop-opacity":[f,i,l]}],"backdrop-saturate":[{"backdrop-saturate":[f,i,l]}],"backdrop-sepia":[{"backdrop-sepia":["",f,i,l]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":m()}],"border-spacing-x":[{"border-spacing-x":m()}],"border-spacing-y":[{"border-spacing-y":m()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",i,l]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[f,"initial",i,l]}],ease:[{ease:["linear","initial",G,i,l]}],delay:[{delay:[f,i,l]}],animate:[{animate:["none",V,i,l]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[C,i,l]}],"perspective-origin":[{"perspective-origin":M()}],rotate:[{rotate:F()}],"rotate-x":[{"rotate-x":F()}],"rotate-y":[{"rotate-y":F()}],"rotate-z":[{"rotate-z":F()}],scale:[{scale:ae()}],"scale-x":[{"scale-x":ae()}],"scale-y":[{"scale-y":ae()}],"scale-z":[{"scale-z":ae()}],"scale-3d":["scale-3d"],skew:[{skew:ue()}],"skew-x":[{"skew-x":ue()}],"skew-y":[{"skew-y":ue()}],transform:[{transform:[i,l,"","none","gpu","cpu"]}],"transform-origin":[{origin:M()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:le()}],"translate-x":[{"translate-x":le()}],"translate-y":[{"translate-y":le()}],"translate-z":[{"translate-z":le()}],"translate-none":["translate-none"],accent:[{accent:u()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:u()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",i,l]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":m()}],"scroll-mx":[{"scroll-mx":m()}],"scroll-my":[{"scroll-my":m()}],"scroll-ms":[{"scroll-ms":m()}],"scroll-me":[{"scroll-me":m()}],"scroll-mt":[{"scroll-mt":m()}],"scroll-mr":[{"scroll-mr":m()}],"scroll-mb":[{"scroll-mb":m()}],"scroll-ml":[{"scroll-ml":m()}],"scroll-p":[{"scroll-p":m()}],"scroll-px":[{"scroll-px":m()}],"scroll-py":[{"scroll-py":m()}],"scroll-ps":[{"scroll-ps":m()}],"scroll-pe":[{"scroll-pe":m()}],"scroll-pt":[{"scroll-pt":m()}],"scroll-pr":[{"scroll-pr":m()}],"scroll-pb":[{"scroll-pb":m()}],"scroll-pl":[{"scroll-pl":m()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",i,l]}],fill:[{fill:["none",...u()]}],"stroke-w":[{stroke:[f,ne,Q,pe]}],stroke:[{stroke:["none",...u()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},zt=lt(St);function k(...e){return zt(Fe(e))}const At=(e,o)=>{const r={sm:{wrapper:"-ml-10 h-6 w-6",icon:"h-4 w-4"},md:{wrapper:"-ml-12 h-8 w-8",icon:"h-6 w-6"},lg:{wrapper:"-ml-14 h-10 w-10",icon:"h-6 w-6"}}[e],t=o&&S.isValidElement(o)?o:null,s=t?S.cloneElement(t,{className:k("h-full w-full",t.props.className)}):o;return a.jsx("span",{className:k(r.wrapper,"flex items-center justify-center rounded-full border border-neutral-800 bg-white text-neutral-900 shadow-[0_3px_10px_rgba(0,0,0,0.12)] dark:border-neutral-200 dark:bg-neutral-950 dark:text-neutral-100 dark:shadow-[0_3px_10px_rgba(0,0,0,0.5)]"),children:a.jsx("span",{className:k(r.icon,"flex items-center justify-center transition-transform duration-200 ease-out group-hover:translate-x-[2px] group-disabled:translate-x-0"),children:s??a.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-full w-full","aria-hidden":"true",children:[a.jsx("path",{d:"M5 12h12"}),a.jsx("path",{d:"m13 6 6 6-6 6"})]})})})};function Oe({title:e,description:o,action:r,icon:t,size:s="md",variant:d="default",color:n="green",customColor:p,className:c,type:g="button",children:x,...w}){const y=e!=null||o!=null,j=d==="default"?n==="orange"?"bg-[#F0822D]":n==="custom"?"":"bg-[#00A167]":"bg-transparent",z=d==="default"&&n==="custom"?{backgroundColor:p}:void 0,C=y?a.jsxs("span",{className:"flex flex-col gap-1 text-start",children:[e?a.jsx("span",{className:"text-lg font-semibold",children:e}):null,o?a.jsx("span",{className:"text-sm text-neutral-600 dark:text-neutral-300",children:o}):null]}):a.jsx("span",{className:"text-lg font-semibold",children:x});return a.jsxs("button",{type:g,className:k("group inline-flex cursor-pointer items-stretch overflow-hidden rounded-md border border-neutral-800 text-neutral-900 shadow-[0_4px_4px_rgba(0,0,0,0.2)] transition-shadow duration-200 ease-out hover:shadow-[0_8px_5px_rgba(0,0,0,0.18)] disabled:cursor-not-allowed disabled:opacity-60 disabled:shadow-[0_4px_12px_rgba(0,0,0,0.12)] dark:border-neutral-200 dark:text-neutral-100 dark:shadow-[0_8px_18px_rgba(0,0,0,0.45)] dark:hover:shadow-[0_10px_22px_rgba(0,0,0,0.5)] dark:disabled:shadow-[0_6px_16px_rgba(0,0,0,0.35)]",d==="default"?"bg-white dark:bg-neutral-950":"bg-transparent",s==="sm"&&"text-sm",s==="md"&&"text-base",s==="lg"&&"text-lg",c),...w,children:[a.jsx("span",{className:k("flex items-center",s==="sm"&&"py-2 pl-6 pr-10",s==="md"&&"py-3 pl-8 pr-12",s==="lg"&&"py-3 pl-10 pr-14"),children:C}),a.jsx("span",{className:k("relative flex items-center justify-center rounded-r-md px-6 transition-colors duration-200 ease-out group-disabled:opacity-70",j,s==="sm"&&"px-5",s==="lg"&&"px-7"),style:z,children:r??At(s,t)})]})}const ge=S.forwardRef(({label:e,description:o,error:r,icon:t,wrapperClassName:s,id:d,required:n,className:p,...c},g)=>{const x=S.useId(),w=d??x,y=r??o,j=!!r;return a.jsxs("div",{className:k("space-y-2",s),children:[e?a.jsxs("label",{htmlFor:w,className:"text-sm font-semibold text-neutral-900 dark:text-neutral-100",children:[e,n?a.jsx("span",{className:"ml-1 text-red-500","aria-hidden":"true",children:"*"}):null]}):null,a.jsxs("div",{className:"relative",children:[a.jsx("input",{ref:g,id:w,required:n,className:k("w-full rounded-md border border-neutral-800 bg-white px-4 py-3 text-base text-neutral-900 shadow-[0_4px_4px_rgba(0,0,0,0.2)] transition focus:outline-none focus:ring-2 focus:ring-neutral-900/15 disabled:cursor-not-allowed disabled:opacity-60 dark:border-neutral-200 dark:bg-neutral-950 dark:text-neutral-100 dark:shadow-[0_6px_14px_rgba(0,0,0,0.45)] dark:focus:ring-neutral-100/15",j&&"border-red-500 focus:ring-red-500/20 dark:border-red-400 dark:focus:ring-red-400/20",t&&"pr-12",p),...c}),t?a.jsx("span",{className:"pointer-events-none absolute right-4 top-1/2 -translate-y-1/2 text-neutral-500 dark:text-neutral-400",children:t}):null]}),y?a.jsx("p",{className:k("text-sm",j?"text-red-600 dark:text-red-400":"text-neutral-600 dark:text-neutral-300"),children:y}):null]})});ge.displayName="Input";const he=S.forwardRef(({label:e,description:o,error:r,icon:t,buttonLabel:s="Action",buttonProps:d,color:n="green",customColor:p,wrapperClassName:c,inputClassName:g,buttonClassName:x,id:w,required:y,className:j,disabled:z,...C},v)=>{const G=S.useId(),V=w??G,B=r??o,L=!!r,{className:M,...A}=d??{},T=A.disabled??z,m=n==="orange"?"bg-[#F0822D]":n==="custom"?"":"bg-[#00A167]",I=n==="custom"?{backgroundColor:p}:void 0;return a.jsxs("div",{className:k("space-y-2",c),children:[e?a.jsxs("label",{htmlFor:V,className:"text-sm font-semibold text-neutral-900 dark:text-neutral-100",children:[e,y?a.jsx("span",{className:"ml-1 text-red-500","aria-hidden":"true",children:"*"}):null]}):null,a.jsxs("div",{className:k("relative flex items-stretch",j),children:[a.jsx("input",{ref:v,id:V,required:y,disabled:z,className:k("w-full rounded-l-md rounded-r-none border border-neutral-800 border-r-0 bg-white px-4 py-3 text-base text-neutral-900 shadow-[0_4px_4px_rgba(0,0,0,0.2)] transition focus:outline-none focus:ring-2 focus:ring-neutral-900/15 disabled:cursor-not-allowed disabled:opacity-60 dark:border-neutral-200 dark:bg-neutral-950 dark:text-neutral-100 dark:shadow-[0_6px_14px_rgba(0,0,0,0.45)] dark:focus:ring-neutral-100/15",L&&"border-red-500 focus:ring-red-500/20 dark:border-red-400 dark:focus:ring-red-400/20",t&&"pr-20",g),...C}),a.jsxs("div",{className:"relative flex",children:[t?a.jsx("span",{className:"pointer-events-none absolute -left-5 top-1/2 z-10 flex h-10 w-10 -translate-y-1/2 items-center justify-center rounded-full border border-neutral-800 bg-white text-neutral-700 shadow-[0_3px_10px_rgba(0,0,0,0.12)] dark:border-neutral-200 dark:bg-neutral-950 dark:text-neutral-200 dark:shadow-[0_3px_10px_rgba(0,0,0,0.5)]",children:t}):null,a.jsx("button",{type:"button",...A,disabled:T,className:k("inline-flex items-center justify-center rounded-r-md rounded-l-none border border-neutral-800 border-l-0 px-6 text-sm font-semibold uppercase tracking-wide text-white shadow-[0_4px_4px_rgba(0,0,0,0.2)] transition hover:shadow-[0_6px_8px_rgba(0,0,0,0.18)] disabled:cursor-not-allowed disabled:opacity-60 dark:border-neutral-200 dark:shadow-[0_8px_18px_rgba(0,0,0,0.45)]",m,M,x),style:I,children:s})]})]}),B?a.jsx("p",{className:k("text-sm",L?"text-red-600 dark:text-red-400":"text-neutral-600 dark:text-neutral-300"),children:B}):null]})});he.displayName="InputButton";const xe=S.forwardRef(({label:e,description:o,error:r,options:t,placeholder:s,icon:d,searchable:n,wrapperClassName:p,id:c,required:g,className:x,children:w,name:y,multiple:j,disabled:z,value:C,defaultValue:v,onValueChange:G,...V},B)=>{const L=S.useId(),M=c??L,A=r??o,T=!!r,[m,I]=S.useState(!1),[q,re]=S.useState(""),$=S.useRef(null),J=S.useMemo(()=>{if(t)return t;const b=[];return(Array.isArray(w)?w:[w]).forEach(P=>{if(!P||typeof P!="object"||!("props"in P))return;const F=P.props;F?.value!=null&&b.push({label:String(F.children??F.value),value:String(F.value),disabled:F.disabled})}),b},[t,w]),oe=!!n||!!j,U=()=>j?Array.isArray(v)?v.map(String):typeof v=="string"?[v]:[]:typeof v=="string"?v:"",[O,W]=S.useState(U),u=C??O,E=Array.isArray(u)?u.map(String):u?[String(u)]:[],H=J.filter(b=>E.includes(b.value)).map(b=>b.label),se=S.useMemo(()=>{if(!q.trim())return J;const b=q.toLowerCase();return J.filter(h=>h.label.toLowerCase().includes(b))},[J,q]),Y=d===void 0?a.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4","aria-hidden":"true",children:a.jsx("path",{d:"m6 9 6 6 6-6"})}):d;S.useEffect(()=>{m||re("")},[m]),S.useEffect(()=>{if(!m)return;const b=h=>{$.current&&h.target instanceof Node&&!$.current.contains(h.target)&&I(!1)};return document.addEventListener("mousedown",b),()=>{document.removeEventListener("mousedown",b)}},[m]);const _=b=>{C===void 0&&W(b),G?.(b)},R=b=>{if(j){const h=E.includes(b)?E.filter(P=>P!==b):[...E,b];_(h);return}_(b),I(!1)},K=b=>{const h=E.filter(P=>P!==b);_(h)};return oe?a.jsxs("div",{className:k("space-y-2",p),children:[e?a.jsxs("label",{htmlFor:M,className:"text-sm font-semibold text-neutral-900 dark:text-neutral-100",children:[e,g?a.jsx("span",{className:"ml-1 text-red-500","aria-hidden":"true",children:"*"}):null]}):null,a.jsxs("div",{className:"relative",ref:$,children:[a.jsxs("button",{type:"button",id:M,disabled:z,className:k("flex w-full items-center justify-between gap-3 rounded-md border border-neutral-800 bg-white px-4 py-3 text-left text-base text-neutral-900 shadow-[0_4px_4px_rgba(0,0,0,0.2)] transition focus:outline-none focus:ring-2 focus:ring-neutral-900/15 disabled:cursor-not-allowed disabled:opacity-60 dark:border-neutral-200 dark:bg-neutral-950 dark:text-neutral-100 dark:shadow-[0_6px_14px_rgba(0,0,0,0.45)] dark:focus:ring-neutral-100/15",T&&"border-red-500 focus:ring-red-500/20 dark:border-red-400 dark:focus:ring-red-400/20",x),onClick:()=>I(b=>!b),children:[a.jsx("span",{className:"flex flex-wrap items-center gap-2",children:j&&H.length>0?H.map((b,h)=>a.jsxs("span",{className:"inline-flex items-center gap-2 rounded-full border border-neutral-800 bg-white px-3 py-1 text-sm font-semibold text-neutral-900 shadow-[0_2px_0_rgba(0,0,0,0.12)] dark:border-neutral-200 dark:bg-neutral-950 dark:text-neutral-100",children:[b,a.jsx("button",{type:"button",className:"text-xs text-neutral-600 hover:text-neutral-900 dark:text-neutral-400 dark:hover:text-neutral-200",onClick:P=>{P.stopPropagation(),K(E[h])},children:"✕"})]},`${b}-${h}`)):H[0]??a.jsx("span",{className:"text-neutral-500 dark:text-neutral-400",children:s??"Select an option"})}),Y?a.jsx("span",{className:"text-neutral-500 dark:text-neutral-400",children:Y}):null]}),y?a.jsx("input",{type:"hidden",name:y,value:j?E.join(","):E[0]??""}):null,m?a.jsxs("div",{className:"absolute z-20 mt-2 w-full rounded-md border border-neutral-800 bg-white shadow-[0_12px_24px_rgba(0,0,0,0.18)] dark:border-neutral-200 dark:bg-neutral-950 dark:shadow-[0_16px_28px_rgba(0,0,0,0.5)]",children:[n?a.jsx("div",{className:"border-b border-neutral-200 px-3 py-2 dark:border-neutral-800",children:a.jsx("input",{type:"text",value:q,onChange:b=>re(b.target.value),placeholder:"Search...",className:"w-full bg-transparent text-sm text-neutral-900 outline-none placeholder:text-neutral-500 dark:text-neutral-100 dark:placeholder:text-neutral-400"})}):null,a.jsx("div",{className:"max-h-56 overflow-auto py-1",children:se.length===0?a.jsx("div",{className:"px-4 py-2 text-sm text-neutral-500 dark:text-neutral-400",children:"No results found."}):se.map(b=>{const h=E.includes(b.value);return a.jsxs("button",{type:"button",disabled:b.disabled,onClick:()=>R(b.value),className:k("flex w-full items-center justify-between px-4 py-2 text-sm text-neutral-900 transition hover:bg-neutral-100 disabled:cursor-not-allowed disabled:opacity-60 dark:text-neutral-100 dark:hover:bg-neutral-900",h&&"bg-neutral-100 font-semibold dark:bg-neutral-900"),children:[a.jsx("span",{children:b.label}),h?a.jsx("span",{className:"text-xs text-neutral-500 dark:text-neutral-400",children:"Selected"}):null]},b.value)})})]}):null]}),A?a.jsx("p",{className:k("text-sm",T?"text-red-600 dark:text-red-400":"text-neutral-600 dark:text-neutral-300"),children:A}):null]}):a.jsxs("div",{className:k("space-y-2",p),children:[e?a.jsxs("label",{htmlFor:M,className:"text-sm font-semibold text-neutral-900 dark:text-neutral-100",children:[e,g?a.jsx("span",{className:"ml-1 text-red-500","aria-hidden":"true",children:"*"}):null]}):null,a.jsxs("div",{className:"relative",children:[a.jsxs("select",{ref:B,id:M,required:g,disabled:z,multiple:j,name:y,className:k("w-full appearance-none rounded-md border border-neutral-800 bg-white px-4 py-3 pr-12 text-base text-neutral-900 shadow-[0_4px_4px_rgba(0,0,0,0.2)] transition focus:outline-none focus:ring-2 focus:ring-neutral-900/15 disabled:cursor-not-allowed disabled:opacity-60 dark:border-neutral-200 dark:bg-neutral-950 dark:text-neutral-100 dark:shadow-[0_6px_14px_rgba(0,0,0,0.45)] dark:focus:ring-neutral-100/15",T&&"border-red-500 focus:ring-red-500/20 dark:border-red-400 dark:focus:ring-red-400/20",x),...V,children:[s?a.jsx("option",{value:"",disabled:!0,hidden:!0,children:s}):null,t?t.map(b=>a.jsx("option",{value:b.value,disabled:b.disabled,children:b.label},b.value)):w]}),Y?a.jsx("span",{className:"pointer-events-none absolute right-4 top-1/2 -translate-y-1/2 text-neutral-500 dark:text-neutral-400",children:Y}):null]}),A?a.jsx("p",{className:k("text-sm",T?"text-red-600 dark:text-red-400":"text-neutral-600 dark:text-neutral-300"),children:A}):null]})});xe.displayName="Select";const It={h1:"heading-1 font-display font-normal",tussenkop:"heading-3 font-semibold",h2:"heading-2",body:"body-text"},Rt={h1:"h1",tussenkop:"h3",h2:"h2",body:"p"},ke=S.forwardRef(({as:e,variant:o="body",className:r,children:t,...s},d)=>{const n=e??Rt[o];return a.jsx(n,{ref:d,className:k(It[o],r),...s,children:t})});ke.displayName="Typography";const Be=({image:e,badge:o,title:r,description:t,action:s,orientation:d="vertical",accent:n="#00A167",className:p,bodyClassName:c})=>a.jsxs("article",{className:k("overflow-hidden rounded-2xl border border-neutral-800 bg-white shadow-[0_10px_20px_rgba(0,0,0,0.14)] dark:border-neutral-200 dark:bg-neutral-950 dark:shadow-[0_12px_26px_rgba(0,0,0,0.45)]",d==="horizontal"&&"grid gap-0 md:grid-cols-[1.1fr_1fr]",p),children:[e?a.jsxs("div",{className:"relative overflow-hidden",children:[o?a.jsx("div",{className:"absolute left-4 top-4 z-10 rounded-full bg-[#f4b37a] px-3 py-1 text-xs font-semibold text-[#1d1d1b]",children:o}):null,a.jsx("div",{className:"h-full w-full",children:e}),d=="vertical"?a.jsx("div",{className:"absolute inset-x-0 bottom-0 h-2 bg-[#f4b37a]"}):null]}):null,a.jsxs("div",{className:k("relative space-y-3 p-6",d==="horizontal"&&"md:border-l-4",c),style:d==="horizontal"?{borderColor:n}:void 0,children:[s?a.jsx("div",{className:"absolute -top-6 right-6 z-10",children:s}):null,r?a.jsx("h3",{className:"heading-2 text-[#1d1d1b] dark:text-[#f1f1ee]",children:r}):null,t?a.jsx("p",{className:"body-text text-[#4b4b4b] dark:text-[#c9c4bc]",children:t}):null]})]}),Mt={Button:Oe,Input:ge,InputButton:he,Select:xe,Typography:ke,Card:Be};exports.Button=Oe;exports.Card=Be;exports.Input=ge;exports.InputButton=he;exports.Select=xe;exports.Typography=ke;exports.cn=k;exports.default=Mt;
2
2
  //# sourceMappingURL=index.cjs.map