@safronman/ui-kit-ictagram 0.1.3
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/LICENSE +21 -0
- package/README.md +60 -0
- package/dist/components/ui/button.d.ts +10 -0
- package/dist/components/ui/typography.d.ts +8 -0
- package/dist/index.cjs +11 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3410 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/utils.d.ts +2 -0
- package/dist/styles.css +1 -0
- package/package.json +119 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 safronman
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# @safronman/ui-kit-ictagram
|
|
2
|
+
|
|
3
|
+
Reusable React UI components for Ictagram projects.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pnpm add @safronman/ui-kit-ictagram
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Peer dependencies:
|
|
12
|
+
|
|
13
|
+
- `react@^19`
|
|
14
|
+
- `react-dom@^19`
|
|
15
|
+
|
|
16
|
+
## Usage
|
|
17
|
+
|
|
18
|
+
Import the styles once in your app entry file:
|
|
19
|
+
|
|
20
|
+
```ts
|
|
21
|
+
import '@safronman/ui-kit-ictagram/styles.css';
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Then use components:
|
|
25
|
+
|
|
26
|
+
```tsx
|
|
27
|
+
import { Button, Typography } from '@safronman/ui-kit-ictagram';
|
|
28
|
+
|
|
29
|
+
export function Example() {
|
|
30
|
+
return (
|
|
31
|
+
<div>
|
|
32
|
+
<Typography variant="h2">UI kit demo</Typography>
|
|
33
|
+
<Button variant="primary">Click</Button>
|
|
34
|
+
</div>
|
|
35
|
+
);
|
|
36
|
+
}
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Local Development
|
|
40
|
+
|
|
41
|
+
- `pnpm dev` - start Vite dev server
|
|
42
|
+
- `pnpm storybook` - run Storybook
|
|
43
|
+
- `pnpm lint` - lint source
|
|
44
|
+
- `pnpm typecheck` - TypeScript project check
|
|
45
|
+
- `pnpm build` - build distributable package into `dist/`
|
|
46
|
+
|
|
47
|
+
## Release Process
|
|
48
|
+
|
|
49
|
+
This repo uses [Changesets](https://github.com/changesets/changesets) + GitHub Actions.
|
|
50
|
+
|
|
51
|
+
1. Create a changeset:
|
|
52
|
+
`pnpm changeset`
|
|
53
|
+
2. Commit the generated file in `.changeset/`.
|
|
54
|
+
3. Merge into `main`.
|
|
55
|
+
4. Release workflow bumps version and publishes to npm using `NPM_TOKEN`.
|
|
56
|
+
|
|
57
|
+
## Package Exports
|
|
58
|
+
|
|
59
|
+
- `@safronman/ui-kit-ictagram` - components and utilities
|
|
60
|
+
- `@safronman/ui-kit-ictagram/styles.css` - package styles
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare const buttonVariants: (props?: ({
|
|
4
|
+
variant?: "primary" | "secondary" | "outline" | "text" | null | undefined;
|
|
5
|
+
size?: "default" | "xs" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
|
|
6
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
|
+
declare function Button({ className, variant, size, asChild, ...props }: React.ComponentProps<'button'> & VariantProps<typeof buttonVariants> & {
|
|
8
|
+
asChild?: boolean;
|
|
9
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export { Button };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare const Typography: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref"> & VariantProps<(props?: ({
|
|
4
|
+
variant?: "h1" | "h2" | "h3" | "large" | "body16" | "body16Bold" | "body14" | "body14Medium" | "body14Bold" | "body12" | "body12Semibold" | "link14" | "link12" | "muted" | "lead" | null | undefined;
|
|
5
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string> & {
|
|
6
|
+
asChild?: boolean;
|
|
7
|
+
} & React.RefAttributes<HTMLParagraphElement>>;
|
|
8
|
+
export { Typography };
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ge=require("react");function ar(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const z=ar(ge);var de={exports:{}},re={};var Ee;function ir(){if(Ee)return re;Ee=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(o,n,a){var i=null;if(a!==void 0&&(i=""+a),n.key!==void 0&&(i=""+n.key),"key"in n){a={};for(var u in n)u!=="key"&&(a[u]=n[u])}else a=n;return n=a.ref,{$$typeof:e,type:o,key:i,ref:n!==void 0?n:null,props:a}}return re.Fragment=t,re.jsx=r,re.jsxs=r,re}var te={};var Ce;function lr(){return Ce||(Ce=1,process.env.NODE_ENV!=="production"&&(function(){function e(s){if(s==null)return null;if(typeof s=="function")return s.$$typeof===se?null:s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case _:return"Fragment";case X:return"Profiler";case M:return"StrictMode";case V:return"Suspense";case q:return"SuspenseList";case ne:return"Activity"}if(typeof s=="object")switch(typeof s.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),s.$$typeof){case A:return"Portal";case W:return s.displayName||"Context";case B:return(s._context.displayName||"Context")+".Consumer";case D:var b=s.render;return s=s.displayName,s||(s=b.displayName||b.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case f:return b=s.displayName||null,b!==null?b:e(s.type)||"Memo";case T:b=s._payload,s=s._init;try{return e(s(b))}catch{}}return null}function t(s){return""+s}function r(s){try{t(s);var b=!1}catch{b=!0}if(b){b=console;var x=b.error,w=typeof Symbol=="function"&&Symbol.toStringTag&&s[Symbol.toStringTag]||s.constructor.name||"Object";return x.call(b,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",w),t(s)}}function o(s){if(s===_)return"<>";if(typeof s=="object"&&s!==null&&s.$$typeof===T)return"<...>";try{var b=e(s);return b?"<"+b+">":"<...>"}catch{return"<...>"}}function n(){var s=F.A;return s===null?null:s.getOwner()}function a(){return Error("react-stack-top-frame")}function i(s){if(K.call(s,"key")){var b=Object.getOwnPropertyDescriptor(s,"key").get;if(b&&b.isReactWarning)return!1}return s.key!==void 0}function u(s,b){function x(){N||(N=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",b))}x.isReactWarning=!0,Object.defineProperty(s,"key",{get:x,configurable:!0})}function l(){var s=e(this.type);return I[s]||(I[s]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),s=this.props.ref,s!==void 0?s:null}function m(s,b,x,w,E,C){var k=x.ref;return s={$$typeof:P,type:s,key:b,props:x,_owner:w},(k!==void 0?k:null)!==null?Object.defineProperty(s,"ref",{enumerable:!1,get:l}):Object.defineProperty(s,"ref",{enumerable:!1,value:null}),s._store={},Object.defineProperty(s._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(s,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(s,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:E}),Object.defineProperty(s,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:C}),Object.freeze&&(Object.freeze(s.props),Object.freeze(s)),s}function h(s,b,x,w,E,C){var k=b.children;if(k!==void 0)if(w)if(ee(k)){for(w=0;w<k.length;w++)y(k[w]);Object.freeze&&Object.freeze(k)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else y(k);if(K.call(b,"key")){k=e(s);var L=Object.keys(b).filter(function(ae){return ae!=="key"});w=0<L.length?"{key: someKey, "+L.join(": ..., ")+": ...}":"{key: someKey}",p[k+w]||(L=0<L.length?"{"+L.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
2
|
+
let props = %s;
|
|
3
|
+
<%s {...props} />
|
|
4
|
+
React keys must be passed directly to JSX without using spread:
|
|
5
|
+
let props = %s;
|
|
6
|
+
<%s key={someKey} {...props} />`,w,k,L,k),p[k+w]=!0)}if(k=null,x!==void 0&&(r(x),k=""+x),i(b)&&(r(b.key),k=""+b.key),"key"in b){x={};for(var R in b)R!=="key"&&(x[R]=b[R])}else x=b;return k&&u(x,typeof s=="function"?s.displayName||s.name||"Unknown":s),m(s,k,x,n(),E,C)}function y(s){v(s)?s._store&&(s._store.validated=1):typeof s=="object"&&s!==null&&s.$$typeof===T&&(s._payload.status==="fulfilled"?v(s._payload.value)&&s._payload.value._store&&(s._payload.value._store.validated=1):s._store&&(s._store.validated=1))}function v(s){return typeof s=="object"&&s!==null&&s.$$typeof===P}var O=ge,P=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),M=Symbol.for("react.strict_mode"),X=Symbol.for("react.profiler"),B=Symbol.for("react.consumer"),W=Symbol.for("react.context"),D=Symbol.for("react.forward_ref"),V=Symbol.for("react.suspense"),q=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),ne=Symbol.for("react.activity"),se=Symbol.for("react.client.reference"),F=O.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=Object.prototype.hasOwnProperty,ee=Array.isArray,j=console.createTask?console.createTask:function(){return null};O={react_stack_bottom_frame:function(s){return s()}};var N,I={},Z=O.react_stack_bottom_frame.bind(O,a)(),Q=j(o(a)),p={};te.Fragment=_,te.jsx=function(s,b,x){var w=1e4>F.recentlyCreatedOwnerStacks++;return h(s,b,x,!1,w?Error("react-stack-top-frame"):Z,w?j(o(s)):Q)},te.jsxs=function(s,b,x){var w=1e4>F.recentlyCreatedOwnerStacks++;return h(s,b,x,!0,w?Error("react-stack-top-frame"):Z,w?j(o(s)):Q)}})()),te}var Se;function cr(){return Se||(Se=1,process.env.NODE_ENV==="production"?de.exports=ir():de.exports=lr()),de.exports}var pe=cr(),ue={exports:{}},ye={};var Te;function dr(){if(Te)return ye;Te=1;var e=ge.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return ye.c=function(t){return e.H.useMemoCache(t)},ye}var ve={};var Ae;function ur(){return Ae||(Ae=1,process.env.NODE_ENV!=="production"&&(function(){var e=ge.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;ve.c=function(t){var r=e.H;return r===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
7
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
8
|
+
2. You might be breaking the Rules of Hooks
|
|
9
|
+
3. You might have more than one copy of React in the same app
|
|
10
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),r.useMemoCache(t)}})()),ve}var ze;function mr(){return ze||(ze=1,process.env.NODE_ENV==="production"?ue.exports=dr():ue.exports=ur()),ue.exports}var We=mr();function De(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(r=De(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function Fe(){for(var e,t,r=0,o="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=De(e))&&(o&&(o+=" "),o+=t);return o}const Oe=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Ne=Fe,Ye=(e,t)=>r=>{var o;if(t?.variants==null)return Ne(e,r?.class,r?.className);const{variants:n,defaultVariants:a}=t,i=Object.keys(n).map(m=>{const h=r?.[m],y=a?.[m];if(h===null)return null;const v=Oe(h)||Oe(y);return n[m][v]}),u=r&&Object.entries(r).reduce((m,h)=>{let[y,v]=h;return v===void 0||(m[y]=v),m},{}),l=t==null||(o=t.compoundVariants)===null||o===void 0?void 0:o.reduce((m,h)=>{let{class:y,className:v,...O}=h;return Object.entries(O).every(P=>{let[A,_]=P;return Array.isArray(_)?_.includes({...a,...u}[A]):{...a,...u}[A]===_})?[...m,y,v]:m},[]);return Ne(e,i,l,r?.class,r?.className)};function Pe(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function fr(...e){return t=>{let r=!1;const o=e.map(n=>{const a=Pe(n,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let n=0;n<o.length;n++){const a=o[n];typeof a=="function"?a():Pe(e[n],null)}}}}function pr(e){const t=br(e),r=z.forwardRef((o,n)=>{const{children:a,...i}=o,u=z.Children.toArray(a),l=u.find(hr);if(l){const m=l.props.children,h=u.map(y=>y===l?z.Children.count(m)>1?z.Children.only(null):z.isValidElement(m)?m.props.children:null:y);return pe.jsx(t,{...i,ref:n,children:z.isValidElement(m)?z.cloneElement(m,void 0,h):null})}return pe.jsx(t,{...i,ref:n,children:a})});return r.displayName=`${e}.Slot`,r}var $e=pr("Slot");function br(e){const t=z.forwardRef((r,o)=>{const{children:n,...a}=r;if(z.isValidElement(n)){const i=vr(n),u=yr(a,n.props);return n.type!==z.Fragment&&(u.ref=o?fr(o,i):i),z.cloneElement(n,u)}return z.Children.count(n)>1?z.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var gr=Symbol("radix.slottable");function hr(e){return z.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===gr}function yr(e,t){const r={...t};for(const o in t){const n=e[o],a=t[o];/^on[A-Z]/.test(o)?n&&a?r[o]=(...u)=>{const l=a(...u);return n(...u),l}:n&&(r[o]=n):o==="style"?r[o]={...n,...a}:o==="className"&&(r[o]=[n,a].filter(Boolean).join(" "))}return{...e,...r}}function vr(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}const xr=(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},kr=(e,t)=>({classGroupId:e,validator:t}),Ue=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),be="-",je=[],wr="arbitrary..",Rr=e=>{const t=Er(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return _r(i);const u=i.split(be),l=u[0]===""&&u.length>1?1:0;return Be(u,l,t)},getConflictingClassGroupIds:(i,u)=>{if(u){const l=o[i],m=r[i];return l?m?xr(m,l):l:m||je}return r[i]||je}}},Be=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const n=e[t],a=r.nextPart.get(n);if(a){const m=Be(e,t+1,a);if(m)return m}const i=r.validators;if(i===null)return;const u=t===0?e.join(be):e.slice(t).join(be),l=i.length;for(let m=0;m<l;m++){const h=i[m];if(h.validator(u))return h.classGroupId}},_r=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?wr+o:void 0})(),Er=e=>{const{theme:t,classGroups:r}=e;return Cr(r,t)},Cr=(e,t)=>{const r=Ue();for(const o in e){const n=e[o];we(n,r,o,t)}return r},we=(e,t,r,o)=>{const n=e.length;for(let a=0;a<n;a++){const i=e[a];Sr(i,t,r,o)}},Sr=(e,t,r,o)=>{if(typeof e=="string"){Tr(e,t,r);return}if(typeof e=="function"){Ar(e,t,r,o);return}zr(e,t,r,o)},Tr=(e,t,r)=>{const o=e===""?t:qe(t,e);o.classGroupId=r},Ar=(e,t,r,o)=>{if(Or(e)){we(e(o),t,r,o);return}t.validators===null&&(t.validators=[]),t.validators.push(kr(r,e))},zr=(e,t,r,o)=>{const n=Object.entries(e),a=n.length;for(let i=0;i<a;i++){const[u,l]=n[i];we(l,qe(t,u),r,o)}},qe=(e,t)=>{let r=e;const o=t.split(be),n=o.length;for(let a=0;a<n;a++){const i=o[a];let u=r.nextPart.get(i);u||(u=Ue(),r.nextPart.set(i,u)),r=u}return r},Or=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Nr=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),o=Object.create(null);const n=(a,i)=>{r[a]=i,t++,t>e&&(t=0,o=r,r=Object.create(null))};return{get(a){let i=r[a];if(i!==void 0)return i;if((i=o[a])!==void 0)return n(a,i),i},set(a,i){a in r?r[a]=i:n(a,i)}}},ke="!",Ie=":",Pr=[],Me=(e,t,r,o,n)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:o,isExternal:n}),jr=e=>{const{prefix:t,experimentalParseClassName:r}=e;let o=n=>{const a=[];let i=0,u=0,l=0,m;const h=n.length;for(let A=0;A<h;A++){const _=n[A];if(i===0&&u===0){if(_===Ie){a.push(n.slice(l,A)),l=A+1;continue}if(_==="/"){m=A;continue}}_==="["?i++:_==="]"?i--:_==="("?u++:_===")"&&u--}const y=a.length===0?n:n.slice(l);let v=y,O=!1;y.endsWith(ke)?(v=y.slice(0,-1),O=!0):y.startsWith(ke)&&(v=y.slice(1),O=!0);const P=m&&m>l?m-l:void 0;return Me(a,O,v,P)};if(t){const n=t+Ie,a=o;o=i=>i.startsWith(n)?a(i.slice(n.length)):Me(Pr,!1,i,void 0,!0)}if(r){const n=o;o=a=>r({className:a,parseClassName:n})}return o},Ir=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,o)=>{t.set(r,1e6+o)}),r=>{const o=[];let n=[];for(let a=0;a<r.length;a++){const i=r[a],u=i[0]==="[",l=t.has(i);u||l?(n.length>0&&(n.sort(),o.push(...n),n=[]),o.push(i)):n.push(i)}return n.length>0&&(n.sort(),o.push(...n)),o}},Mr=e=>({cache:Nr(e.cacheSize),parseClassName:jr(e),sortModifiers:Ir(e),...Rr(e)}),Vr=/\s+/,Lr=(e,t)=>{const{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:n,sortModifiers:a}=t,i=[],u=e.trim().split(Vr);let l="";for(let m=u.length-1;m>=0;m-=1){const h=u[m],{isExternal:y,modifiers:v,hasImportantModifier:O,baseClassName:P,maybePostfixModifierPosition:A}=r(h);if(y){l=h+(l.length>0?" "+l:l);continue}let _=!!A,M=o(_?P.substring(0,A):P);if(!M){if(!_){l=h+(l.length>0?" "+l:l);continue}if(M=o(P),!M){l=h+(l.length>0?" "+l:l);continue}_=!1}const X=v.length===0?"":v.length===1?v[0]:a(v).join(":"),B=O?X+ke:X,W=B+M;if(i.indexOf(W)>-1)continue;i.push(W);const D=n(M,_);for(let V=0;V<D.length;++V){const q=D[V];i.push(B+q)}l=h+(l.length>0?" "+l:l)}return l},Gr=(...e)=>{let t=0,r,o,n="";for(;t<e.length;)(r=e[t++])&&(o=He(r))&&(n&&(n+=" "),n+=o);return n},He=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=He(e[o]))&&(r&&(r+=" "),r+=t);return r},Wr=(e,...t)=>{let r,o,n,a;const i=l=>{const m=t.reduce((h,y)=>y(h),e());return r=Mr(m),o=r.cache.get,n=r.cache.set,a=u,u(l)},u=l=>{const m=o(l);if(m)return m;const h=Lr(l,r);return n(l,h),h};return a=i,(...l)=>a(Gr(...l))},Dr=[],S=e=>{const t=r=>r[e]||Dr;return t.isThemeGetter=!0,t},Je=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Xe=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Fr=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Yr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,$r=/\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$/,Ur=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Br=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,qr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Y=e=>Fr.test(e),g=e=>!!e&&!Number.isNaN(Number(e)),$=e=>!!e&&Number.isInteger(Number(e)),xe=e=>e.endsWith("%")&&g(e.slice(0,-1)),G=e=>Yr.test(e),Ze=()=>!0,Hr=e=>$r.test(e)&&!Ur.test(e),Re=()=>!1,Jr=e=>Br.test(e),Xr=e=>qr.test(e),Zr=e=>!c(e)&&!d(e),Qr=e=>U(e,er,Re),c=e=>Je.test(e),H=e=>U(e,rr,Hr),Ve=e=>U(e,at,g),Kr=e=>U(e,or,Ze),et=e=>U(e,tr,Re),Le=e=>U(e,Qe,Re),rt=e=>U(e,Ke,Xr),me=e=>U(e,nr,Jr),d=e=>Xe.test(e),oe=e=>J(e,rr),tt=e=>J(e,tr),Ge=e=>J(e,Qe),ot=e=>J(e,er),nt=e=>J(e,Ke),fe=e=>J(e,nr,!0),st=e=>J(e,or,!0),U=(e,t,r)=>{const o=Je.exec(e);return o?o[1]?t(o[1]):r(o[2]):!1},J=(e,t,r=!1)=>{const o=Xe.exec(e);return o?o[1]?t(o[1]):r:!1},Qe=e=>e==="position"||e==="percentage",Ke=e=>e==="image"||e==="url",er=e=>e==="length"||e==="size"||e==="bg-size",rr=e=>e==="length",at=e=>e==="number",tr=e=>e==="family-name",or=e=>e==="number"||e==="weight",nr=e=>e==="shadow",it=()=>{const e=S("color"),t=S("font"),r=S("text"),o=S("font-weight"),n=S("tracking"),a=S("leading"),i=S("breakpoint"),u=S("container"),l=S("spacing"),m=S("radius"),h=S("shadow"),y=S("inset-shadow"),v=S("text-shadow"),O=S("drop-shadow"),P=S("blur"),A=S("perspective"),_=S("aspect"),M=S("ease"),X=S("animate"),B=()=>["auto","avoid","all","avoid-page","page","left","right","column"],W=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],D=()=>[...W(),d,c],V=()=>["auto","hidden","clip","visible","scroll"],q=()=>["auto","contain","none"],f=()=>[d,c,l],T=()=>[Y,"full","auto",...f()],ne=()=>[$,"none","subgrid",d,c],se=()=>["auto",{span:["full",$,d,c]},$,d,c],F=()=>[$,"auto",d,c],K=()=>["auto","min","max","fr",d,c],ee=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],j=()=>["start","end","center","stretch","center-safe","end-safe"],N=()=>["auto",...f()],I=()=>[Y,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...f()],Z=()=>[Y,"screen","full","dvw","lvw","svw","min","max","fit",...f()],Q=()=>[Y,"screen","full","lh","dvh","lvh","svh","min","max","fit",...f()],p=()=>[e,d,c],s=()=>[...W(),Ge,Le,{position:[d,c]}],b=()=>["no-repeat",{repeat:["","x","y","space","round"]}],x=()=>["auto","cover","contain",ot,Qr,{size:[d,c]}],w=()=>[xe,oe,H],E=()=>["","none","full",m,d,c],C=()=>["",g,oe,H],k=()=>["solid","dashed","dotted","double"],L=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],R=()=>[g,xe,Ge,Le],ae=()=>["","none",P,d,c],ie=()=>["none",g,d,c],le=()=>["none",g,d,c],he=()=>[g,d,c],ce=()=>[Y,"full",...f()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[G],breakpoint:[G],color:[Ze],container:[G],"drop-shadow":[G],ease:["in","out","in-out"],font:[Zr],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[G],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[G],shadow:[G],spacing:["px",g],text:[G],"text-shadow":[G],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Y,c,d,_]}],container:["container"],columns:[{columns:[g,c,d,u]}],"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:D()}],overflow:[{overflow:V()}],"overflow-x":[{"overflow-x":V()}],"overflow-y":[{"overflow-y":V()}],overscroll:[{overscroll:q()}],"overscroll-x":[{"overscroll-x":q()}],"overscroll-y":[{"overscroll-y":q()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:["visible","invisible","collapse"],z:[{z:[$,"auto",d,c]}],basis:[{basis:[Y,"full","auto",u,...f()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[g,Y,"auto","initial","none",c]}],grow:[{grow:["",g,d,c]}],shrink:[{shrink:["",g,d,c]}],order:[{order:[$,"first","last","none",d,c]}],"grid-cols":[{"grid-cols":ne()}],"col-start-end":[{col:se()}],"col-start":[{"col-start":F()}],"col-end":[{"col-end":F()}],"grid-rows":[{"grid-rows":ne()}],"row-start-end":[{row:se()}],"row-start":[{"row-start":F()}],"row-end":[{"row-end":F()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":K()}],"auto-rows":[{"auto-rows":K()}],gap:[{gap:f()}],"gap-x":[{"gap-x":f()}],"gap-y":[{"gap-y":f()}],"justify-content":[{justify:[...ee(),"normal"]}],"justify-items":[{"justify-items":[...j(),"normal"]}],"justify-self":[{"justify-self":["auto",...j()]}],"align-content":[{content:["normal",...ee()]}],"align-items":[{items:[...j(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...j(),{baseline:["","last"]}]}],"place-content":[{"place-content":ee()}],"place-items":[{"place-items":[...j(),"baseline"]}],"place-self":[{"place-self":["auto",...j()]}],p:[{p:f()}],px:[{px:f()}],py:[{py:f()}],ps:[{ps:f()}],pe:[{pe:f()}],pbs:[{pbs:f()}],pbe:[{pbe:f()}],pt:[{pt:f()}],pr:[{pr:f()}],pb:[{pb:f()}],pl:[{pl:f()}],m:[{m:N()}],mx:[{mx:N()}],my:[{my:N()}],ms:[{ms:N()}],me:[{me:N()}],mbs:[{mbs:N()}],mbe:[{mbe:N()}],mt:[{mt:N()}],mr:[{mr:N()}],mb:[{mb:N()}],ml:[{ml:N()}],"space-x":[{"space-x":f()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":f()}],"space-y-reverse":["space-y-reverse"],size:[{size:I()}],"inline-size":[{inline:["auto",...Z()]}],"min-inline-size":[{"min-inline":["auto",...Z()]}],"max-inline-size":[{"max-inline":["none",...Z()]}],"block-size":[{block:["auto",...Q()]}],"min-block-size":[{"min-block":["auto",...Q()]}],"max-block-size":[{"max-block":["none",...Q()]}],w:[{w:[u,"screen",...I()]}],"min-w":[{"min-w":[u,"screen","none",...I()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[i]},...I()]}],h:[{h:["screen","lh",...I()]}],"min-h":[{"min-h":["screen","lh","none",...I()]}],"max-h":[{"max-h":["screen","lh",...I()]}],"font-size":[{text:["base",r,oe,H]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,st,Kr]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",xe,c]}],"font-family":[{font:[tt,et,t]}],"font-features":[{"font-features":[c]}],"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:[n,d,c]}],"line-clamp":[{"line-clamp":[g,"none",d,Ve]}],leading:[{leading:[a,...f()]}],"list-image":[{"list-image":["none",d,c]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",d,c]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:p()}],"text-color":[{text:p()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...k(),"wavy"]}],"text-decoration-thickness":[{decoration:[g,"from-font","auto",d,H]}],"text-decoration-color":[{decoration:p()}],"underline-offset":[{"underline-offset":[g,"auto",d,c]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:f()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",d,c]}],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",d,c]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:s()}],"bg-repeat":[{bg:b()}],"bg-size":[{bg:x()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},$,d,c],radial:["",d,c],conic:[$,d,c]},nt,rt]}],"bg-color":[{bg:p()}],"gradient-from-pos":[{from:w()}],"gradient-via-pos":[{via:w()}],"gradient-to-pos":[{to:w()}],"gradient-from":[{from:p()}],"gradient-via":[{via:p()}],"gradient-to":[{to:p()}],rounded:[{rounded:E()}],"rounded-s":[{"rounded-s":E()}],"rounded-e":[{"rounded-e":E()}],"rounded-t":[{"rounded-t":E()}],"rounded-r":[{"rounded-r":E()}],"rounded-b":[{"rounded-b":E()}],"rounded-l":[{"rounded-l":E()}],"rounded-ss":[{"rounded-ss":E()}],"rounded-se":[{"rounded-se":E()}],"rounded-ee":[{"rounded-ee":E()}],"rounded-es":[{"rounded-es":E()}],"rounded-tl":[{"rounded-tl":E()}],"rounded-tr":[{"rounded-tr":E()}],"rounded-br":[{"rounded-br":E()}],"rounded-bl":[{"rounded-bl":E()}],"border-w":[{border:C()}],"border-w-x":[{"border-x":C()}],"border-w-y":[{"border-y":C()}],"border-w-s":[{"border-s":C()}],"border-w-e":[{"border-e":C()}],"border-w-bs":[{"border-bs":C()}],"border-w-be":[{"border-be":C()}],"border-w-t":[{"border-t":C()}],"border-w-r":[{"border-r":C()}],"border-w-b":[{"border-b":C()}],"border-w-l":[{"border-l":C()}],"divide-x":[{"divide-x":C()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":C()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...k(),"hidden","none"]}],"divide-style":[{divide:[...k(),"hidden","none"]}],"border-color":[{border:p()}],"border-color-x":[{"border-x":p()}],"border-color-y":[{"border-y":p()}],"border-color-s":[{"border-s":p()}],"border-color-e":[{"border-e":p()}],"border-color-bs":[{"border-bs":p()}],"border-color-be":[{"border-be":p()}],"border-color-t":[{"border-t":p()}],"border-color-r":[{"border-r":p()}],"border-color-b":[{"border-b":p()}],"border-color-l":[{"border-l":p()}],"divide-color":[{divide:p()}],"outline-style":[{outline:[...k(),"none","hidden"]}],"outline-offset":[{"outline-offset":[g,d,c]}],"outline-w":[{outline:["",g,oe,H]}],"outline-color":[{outline:p()}],shadow:[{shadow:["","none",h,fe,me]}],"shadow-color":[{shadow:p()}],"inset-shadow":[{"inset-shadow":["none",y,fe,me]}],"inset-shadow-color":[{"inset-shadow":p()}],"ring-w":[{ring:C()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:p()}],"ring-offset-w":[{"ring-offset":[g,H]}],"ring-offset-color":[{"ring-offset":p()}],"inset-ring-w":[{"inset-ring":C()}],"inset-ring-color":[{"inset-ring":p()}],"text-shadow":[{"text-shadow":["none",v,fe,me]}],"text-shadow-color":[{"text-shadow":p()}],opacity:[{opacity:[g,d,c]}],"mix-blend":[{"mix-blend":[...L(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":L()}],"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":[g]}],"mask-image-linear-from-pos":[{"mask-linear-from":R()}],"mask-image-linear-to-pos":[{"mask-linear-to":R()}],"mask-image-linear-from-color":[{"mask-linear-from":p()}],"mask-image-linear-to-color":[{"mask-linear-to":p()}],"mask-image-t-from-pos":[{"mask-t-from":R()}],"mask-image-t-to-pos":[{"mask-t-to":R()}],"mask-image-t-from-color":[{"mask-t-from":p()}],"mask-image-t-to-color":[{"mask-t-to":p()}],"mask-image-r-from-pos":[{"mask-r-from":R()}],"mask-image-r-to-pos":[{"mask-r-to":R()}],"mask-image-r-from-color":[{"mask-r-from":p()}],"mask-image-r-to-color":[{"mask-r-to":p()}],"mask-image-b-from-pos":[{"mask-b-from":R()}],"mask-image-b-to-pos":[{"mask-b-to":R()}],"mask-image-b-from-color":[{"mask-b-from":p()}],"mask-image-b-to-color":[{"mask-b-to":p()}],"mask-image-l-from-pos":[{"mask-l-from":R()}],"mask-image-l-to-pos":[{"mask-l-to":R()}],"mask-image-l-from-color":[{"mask-l-from":p()}],"mask-image-l-to-color":[{"mask-l-to":p()}],"mask-image-x-from-pos":[{"mask-x-from":R()}],"mask-image-x-to-pos":[{"mask-x-to":R()}],"mask-image-x-from-color":[{"mask-x-from":p()}],"mask-image-x-to-color":[{"mask-x-to":p()}],"mask-image-y-from-pos":[{"mask-y-from":R()}],"mask-image-y-to-pos":[{"mask-y-to":R()}],"mask-image-y-from-color":[{"mask-y-from":p()}],"mask-image-y-to-color":[{"mask-y-to":p()}],"mask-image-radial":[{"mask-radial":[d,c]}],"mask-image-radial-from-pos":[{"mask-radial-from":R()}],"mask-image-radial-to-pos":[{"mask-radial-to":R()}],"mask-image-radial-from-color":[{"mask-radial-from":p()}],"mask-image-radial-to-color":[{"mask-radial-to":p()}],"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":W()}],"mask-image-conic-pos":[{"mask-conic":[g]}],"mask-image-conic-from-pos":[{"mask-conic-from":R()}],"mask-image-conic-to-pos":[{"mask-conic-to":R()}],"mask-image-conic-from-color":[{"mask-conic-from":p()}],"mask-image-conic-to-color":[{"mask-conic-to":p()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:s()}],"mask-repeat":[{mask:b()}],"mask-size":[{mask:x()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",d,c]}],filter:[{filter:["","none",d,c]}],blur:[{blur:ae()}],brightness:[{brightness:[g,d,c]}],contrast:[{contrast:[g,d,c]}],"drop-shadow":[{"drop-shadow":["","none",O,fe,me]}],"drop-shadow-color":[{"drop-shadow":p()}],grayscale:[{grayscale:["",g,d,c]}],"hue-rotate":[{"hue-rotate":[g,d,c]}],invert:[{invert:["",g,d,c]}],saturate:[{saturate:[g,d,c]}],sepia:[{sepia:["",g,d,c]}],"backdrop-filter":[{"backdrop-filter":["","none",d,c]}],"backdrop-blur":[{"backdrop-blur":ae()}],"backdrop-brightness":[{"backdrop-brightness":[g,d,c]}],"backdrop-contrast":[{"backdrop-contrast":[g,d,c]}],"backdrop-grayscale":[{"backdrop-grayscale":["",g,d,c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[g,d,c]}],"backdrop-invert":[{"backdrop-invert":["",g,d,c]}],"backdrop-opacity":[{"backdrop-opacity":[g,d,c]}],"backdrop-saturate":[{"backdrop-saturate":[g,d,c]}],"backdrop-sepia":[{"backdrop-sepia":["",g,d,c]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":f()}],"border-spacing-x":[{"border-spacing-x":f()}],"border-spacing-y":[{"border-spacing-y":f()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",d,c]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[g,"initial",d,c]}],ease:[{ease:["linear","initial",M,d,c]}],delay:[{delay:[g,d,c]}],animate:[{animate:["none",X,d,c]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[A,d,c]}],"perspective-origin":[{"perspective-origin":D()}],rotate:[{rotate:ie()}],"rotate-x":[{"rotate-x":ie()}],"rotate-y":[{"rotate-y":ie()}],"rotate-z":[{"rotate-z":ie()}],scale:[{scale:le()}],"scale-x":[{"scale-x":le()}],"scale-y":[{"scale-y":le()}],"scale-z":[{"scale-z":le()}],"scale-3d":["scale-3d"],skew:[{skew:he()}],"skew-x":[{"skew-x":he()}],"skew-y":[{"skew-y":he()}],transform:[{transform:[d,c,"","none","gpu","cpu"]}],"transform-origin":[{origin:D()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ce()}],"translate-x":[{"translate-x":ce()}],"translate-y":[{"translate-y":ce()}],"translate-z":[{"translate-z":ce()}],"translate-none":["translate-none"],accent:[{accent:p()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:p()}],"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",d,c]}],"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":f()}],"scroll-mx":[{"scroll-mx":f()}],"scroll-my":[{"scroll-my":f()}],"scroll-ms":[{"scroll-ms":f()}],"scroll-me":[{"scroll-me":f()}],"scroll-mbs":[{"scroll-mbs":f()}],"scroll-mbe":[{"scroll-mbe":f()}],"scroll-mt":[{"scroll-mt":f()}],"scroll-mr":[{"scroll-mr":f()}],"scroll-mb":[{"scroll-mb":f()}],"scroll-ml":[{"scroll-ml":f()}],"scroll-p":[{"scroll-p":f()}],"scroll-px":[{"scroll-px":f()}],"scroll-py":[{"scroll-py":f()}],"scroll-ps":[{"scroll-ps":f()}],"scroll-pe":[{"scroll-pe":f()}],"scroll-pbs":[{"scroll-pbs":f()}],"scroll-pbe":[{"scroll-pbe":f()}],"scroll-pt":[{"scroll-pt":f()}],"scroll-pr":[{"scroll-pr":f()}],"scroll-pb":[{"scroll-pb":f()}],"scroll-pl":[{"scroll-pl":f()}],"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",d,c]}],fill:[{fill:["none",...p()]}],"stroke-w":[{stroke:[g,oe,H,Ve]}],stroke:[{stroke:["none",...p()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","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","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","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-bs","border-w-be","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-bs","border-color-be","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-mbs","scroll-mbe","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-pbs","scroll-pbe","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"]}},lt=Wr(it);function _e(...e){return lt(Fe(e))}const ct=Ye("inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-[2px] border border-transparent box-border typography-h3 transition-colors outline-none disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{primary:"bg-primary-500 text-light-100 hover:bg-primary-100 active:bg-primary-700 active:text-light-500 focus-visible:border-2 focus-visible:border-primary-700 disabled:bg-primary-900 disabled:text-light-900",secondary:"bg-dark-300 text-light-100 hover:bg-dark-100 active:bg-dark-400 focus-visible:border focus-visible:border-primary-300 disabled:bg-dark-500 disabled:text-light-900",outline:"border-primary-500 bg-transparent text-primary-500 hover:border-primary-100 hover:text-primary-100 active:border-primary-700 active:text-primary-700 focus-visible:border-2 focus-visible:border-primary-700 disabled:border-primary-900 disabled:text-primary-900",text:"bg-transparent text-primary-500 hover:text-primary-100 active:text-primary-700 focus-visible:border-2 focus-visible:border-primary-700 disabled:text-primary-900"},size:{default:"h-9 px-6 py-1.5",xs:"h-6 gap-1 rounded-[2px] px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-8 gap-1.5 rounded-[2px] px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-[2px] px-6 has-[>svg]:px-4",icon:"size-9","icon-xs":"size-6 rounded-[2px] [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"primary",size:"default"}});function dt(e){const t=We.c(16);let r,o,n,a,i;t[0]!==e?({className:r,variant:n,size:a,asChild:i,...o}=e,t[0]=e,t[1]=r,t[2]=o,t[3]=n,t[4]=a,t[5]=i):(r=t[1],o=t[2],n=t[3],a=t[4],i=t[5]);const u=n===void 0?"primary":n,l=a===void 0?"default":a,h=(i===void 0?!1:i)?$e:"button";let y;t[6]!==r||t[7]!==l||t[8]!==u?(y=_e(ct({variant:u,size:l,className:r})),t[6]=r,t[7]=l,t[8]=u,t[9]=y):y=t[9];let v;return t[10]!==h||t[11]!==o||t[12]!==l||t[13]!==y||t[14]!==u?(v=pe.jsx(h,{"data-slot":"button","data-variant":u,"data-size":l,className:y,...o}),t[10]=h,t[11]=o,t[12]=l,t[13]=y,t[14]=u,t[15]=v):v=t[15],v}const ut=Ye("",{variants:{variant:{large:"text-large",h1:"text-h1",h2:"text-h2",h3:"text-h3",body16:"text-body-16",body16Bold:"text-body-16-bold",body14:"text-body-14",body14Medium:"text-body-14-medium",body14Bold:"text-body-14-bold",body12:"text-body-12",body12Semibold:"text-body-12-semibold",link14:"text-link-14 underline underline-offset-4",link12:"text-link-12 underline underline-offset-4",muted:"text-body-14 text-muted-foreground",lead:"text-body-16 text-muted-foreground"}},defaultVariants:{variant:"body14"}}),sr=z.forwardRef((e,t)=>{const r=We.c(13);let o,n,a,i;r[0]!==e?({className:o,variant:i,asChild:a,...n}=e,r[0]=e,r[1]=o,r[2]=n,r[3]=a,r[4]=i):(o=r[1],n=r[2],a=r[3],i=r[4]);const l=(a===void 0?!1:a)?$e:"p";let m;r[5]!==o||r[6]!==i?(m=_e(ut({variant:i}),o),r[5]=o,r[6]=i,r[7]=m):m=r[7];let h;return r[8]!==l||r[9]!==n||r[10]!==t||r[11]!==m?(h=pe.jsx(l,{ref:t,className:m,...n}),r[8]=l,r[9]=n,r[10]=t,r[11]=m,r[12]=h):h=r[12],h});sr.displayName="Typography";exports.Button=dt;exports.Typography=sr;exports.cn=_e;
|
|
11
|
+
//# sourceMappingURL=index.cjs.map
|