@yahoo/uds 0.2.2 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cli/preload.ts +10 -0
- package/cli/utils/purgeCSS.test.ts +45 -5
- package/cli/utils/purgeCSS.ts +68 -4
- package/dist/experimental/index.cjs +1 -1
- package/dist/experimental/index.js +1 -1
- package/dist/tailwindPurge/utils.cjs +1 -0
- package/dist/tailwindPurge/utils.d.cts +25 -0
- package/dist/tailwindPurge/utils.d.ts +25 -0
- package/dist/tailwindPurge/utils.js +1 -0
- package/dist/tailwindPurge.cjs +1 -1
- package/dist/tailwindPurge.d.cts +5 -1
- package/dist/tailwindPurge.d.ts +5 -1
- package/dist/tailwindPurge.js +1 -1
- package/package.json +15 -1
package/cli/preload.ts
CHANGED
@@ -29,4 +29,14 @@ mock.module('@yahoo/uds/tailwindPurge', () => ({
|
|
29
29
|
fontFamily:
|
30
30
|
'font-icons font-sans font-sans-beta font-sans-condensed font-serif-text font-serif-display font-display1 font-title1 font-title2 font-title3 font-title4 font-headline1 font-body1 font-label1 font-label2 font-caption1 font-caption2 font-legal1',
|
31
31
|
},
|
32
|
+
componentToTwClasses: {
|
33
|
+
Box: 'flex',
|
34
|
+
HStack: 'container fill',
|
35
|
+
Icon: 'flex fill outline',
|
36
|
+
Image: 'flex',
|
37
|
+
Pressable: 'flex',
|
38
|
+
Text: 'flex text',
|
39
|
+
VStack: 'container fill',
|
40
|
+
Button: '',
|
41
|
+
},
|
32
42
|
}));
|
@@ -5,16 +5,34 @@ import {
|
|
5
5
|
getComponentsToConvertToTW,
|
6
6
|
getFiles,
|
7
7
|
getTailwindSafelist,
|
8
|
+
getUsedProps,
|
8
9
|
isUDSComponent,
|
9
10
|
parseFiles,
|
10
11
|
} from './purgeCSS';
|
11
12
|
|
12
13
|
const PAGE_A_CODE = `
|
13
|
-
import { Button } from '@yahoo/uds';
|
14
|
+
import { HStack, Button } from '@yahoo/uds';
|
15
|
+
|
16
|
+
const functionWithProp = () => {
|
17
|
+
const vars = {
|
18
|
+
isActive: false
|
19
|
+
};
|
20
|
+
|
21
|
+
return {
|
22
|
+
...vars,
|
23
|
+
color: 'blue'
|
24
|
+
}
|
25
|
+
}
|
26
|
+
|
27
|
+
const AnotherComponent = () => {
|
28
|
+
const propsList = functionWithProp();
|
29
|
+
return <HStack test="test" {...propsList}>meow</HStack>
|
30
|
+
}
|
14
31
|
|
15
32
|
const PageA = () => {
|
16
33
|
return (
|
17
34
|
<div>
|
35
|
+
<HStack />
|
18
36
|
<Button> Click me </Button>
|
19
37
|
</div>
|
20
38
|
)
|
@@ -37,7 +55,7 @@ const PageB = () => {
|
|
37
55
|
`;
|
38
56
|
|
39
57
|
const FILES = ['/pages/PageA.tsx', '/pages/PageB.tsx'];
|
40
|
-
const IMPORTED_UDS_COMPONENTS = ['
|
58
|
+
const IMPORTED_UDS_COMPONENTS = ['HStack', 'Button', 'Spinner'];
|
41
59
|
|
42
60
|
describe('purgeCSS', () => {
|
43
61
|
const project = new Project();
|
@@ -67,10 +85,10 @@ describe('purgeCSS', () => {
|
|
67
85
|
|
68
86
|
describe('getTailwindSafelist', () => {
|
69
87
|
it('returns the tailwind classes corresponding to the props on a component', () => {
|
70
|
-
const res = getTailwindSafelist(IMPORTED_UDS_COMPONENTS);
|
88
|
+
const res = getTailwindSafelist(project, IMPORTED_UDS_COMPONENTS);
|
71
89
|
|
72
90
|
expect(res).toEqual(
|
73
|
-
'
|
91
|
+
'container fill items-start items-end items-center items-stretch items-baseline justify-start justify-end justify-center justify-between justify-around justify-evenly text-accent text-alert text-black text-brand text-positive text-warning text-white ',
|
74
92
|
);
|
75
93
|
});
|
76
94
|
});
|
@@ -85,7 +103,7 @@ describe('purgeCSS', () => {
|
|
85
103
|
|
86
104
|
describe('isUDSComponent', () => {
|
87
105
|
it('returns true if the component is exported from UDS', () => {
|
88
|
-
const res = isUDSComponent('
|
106
|
+
const res = isUDSComponent('HStack');
|
89
107
|
|
90
108
|
expect(res).toBeTrue();
|
91
109
|
});
|
@@ -96,4 +114,26 @@ describe('purgeCSS', () => {
|
|
96
114
|
expect(res).toBeFalse();
|
97
115
|
});
|
98
116
|
});
|
117
|
+
|
118
|
+
describe('getUsedProps', () => {
|
119
|
+
it('return the list of all used props in the project for a given component', () => {
|
120
|
+
project.createSourceFile(FILES[0], PAGE_A_CODE, {
|
121
|
+
overwrite: true,
|
122
|
+
});
|
123
|
+
project.createSourceFile(FILES[1], PAGE_B_CODE, {
|
124
|
+
overwrite: true,
|
125
|
+
});
|
126
|
+
|
127
|
+
const usedProps = getUsedProps(project, 'HStack');
|
128
|
+
|
129
|
+
expect(usedProps).toEqual([
|
130
|
+
'test',
|
131
|
+
'color',
|
132
|
+
'isActive',
|
133
|
+
'flexGrow',
|
134
|
+
'alignItems',
|
135
|
+
'justifyContent',
|
136
|
+
]);
|
137
|
+
});
|
138
|
+
});
|
99
139
|
});
|
package/cli/utils/purgeCSS.ts
CHANGED
@@ -2,13 +2,18 @@ import path from 'node:path';
|
|
2
2
|
|
3
3
|
import {
|
4
4
|
componentsDependencies,
|
5
|
+
componentToTwClasses,
|
5
6
|
componentToVariants,
|
6
7
|
variantsList,
|
7
8
|
variantToTailwindClass,
|
8
9
|
} from '@yahoo/uds/tailwindPurge';
|
10
|
+
import {
|
11
|
+
findReferencesAsJsxElements,
|
12
|
+
getUsedPropsInReference,
|
13
|
+
} from '@yahoo/uds/tailwindPurge/utils';
|
9
14
|
import { spinStart } from 'bluebun';
|
10
15
|
import FastGlob from 'fast-glob';
|
11
|
-
import { Project } from 'ts-morph';
|
16
|
+
import { JsxOpeningElement, JsxSelfClosingElement, Project, ts } from 'ts-morph';
|
12
17
|
|
13
18
|
type SafeList = string;
|
14
19
|
type ImportsList = string[];
|
@@ -25,6 +30,37 @@ export const getFiles = async (): Promise<Files> => {
|
|
25
30
|
return files;
|
26
31
|
};
|
27
32
|
|
33
|
+
/**
|
34
|
+
* Find all JSX references for a named import.
|
35
|
+
*
|
36
|
+
* @example
|
37
|
+
* const references = findNamedImportReferences(project, '@yahoo/uds', 'HStack')
|
38
|
+
*/
|
39
|
+
export function findNamedImportReferences(
|
40
|
+
project: Project,
|
41
|
+
moduleSpecifierValue: string,
|
42
|
+
namedImportName: string,
|
43
|
+
) {
|
44
|
+
const references: (JsxOpeningElement | JsxSelfClosingElement)[] = [];
|
45
|
+
for (const sourceFile of project.getSourceFiles()) {
|
46
|
+
for (const importDeclaration of sourceFile.getImportDeclarations()) {
|
47
|
+
if (importDeclaration.getModuleSpecifierValue() === moduleSpecifierValue) {
|
48
|
+
for (const namedImport of importDeclaration.getNamedImports()) {
|
49
|
+
if (namedImport.getName() === namedImportName) {
|
50
|
+
const identifier = namedImport.getFirstDescendantByKindOrThrow(
|
51
|
+
ts.SyntaxKind.Identifier,
|
52
|
+
);
|
53
|
+
|
54
|
+
references.push(...findReferencesAsJsxElements(identifier));
|
55
|
+
}
|
56
|
+
}
|
57
|
+
}
|
58
|
+
}
|
59
|
+
}
|
60
|
+
|
61
|
+
return references;
|
62
|
+
}
|
63
|
+
|
28
64
|
/**
|
29
65
|
* Given a file it returns the list of imports from @yahoo/uds
|
30
66
|
*/
|
@@ -59,26 +95,54 @@ export const parseFiles = (project: Project, files: Files): ImportsList => {
|
|
59
95
|
return Array.from(importsSet) as string[];
|
60
96
|
};
|
61
97
|
|
62
|
-
export const getTailwindSafelist = (componentList: string[]): SafeList => {
|
98
|
+
export const getTailwindSafelist = (project: Project, componentList: string[]): SafeList => {
|
99
|
+
let safeList: SafeList = '';
|
63
100
|
const validVariants = new Set<string>(variantsList);
|
64
101
|
const usedProps = new Set<string>();
|
65
102
|
componentList.forEach((component: string) => {
|
66
103
|
if (isUDSComponent(component)) {
|
104
|
+
// get the TW classes relevant for each prop
|
105
|
+
// these classes are used internally in UDS,
|
106
|
+
// they either have been initialized or used by other UDS components
|
67
107
|
componentToVariants[component].forEach((prop: string) => {
|
68
108
|
if (validVariants.has(prop) && !usedProps.has(prop)) {
|
69
109
|
usedProps.add(prop);
|
70
110
|
}
|
71
111
|
});
|
112
|
+
|
113
|
+
// scan the project for used props and
|
114
|
+
// get the corresponding css for those used props
|
115
|
+
getUsedProps(project, component).forEach((prop: string) => {
|
116
|
+
if (validVariants.has(prop) && !usedProps.has(prop)) {
|
117
|
+
usedProps.add(prop);
|
118
|
+
}
|
119
|
+
});
|
120
|
+
|
121
|
+
// get the inline TW classes used in each component
|
122
|
+
safeList += `${componentToTwClasses[component]} `;
|
72
123
|
}
|
73
124
|
});
|
74
125
|
|
75
|
-
let safeList = '';
|
76
126
|
for (const prop of usedProps) {
|
77
127
|
safeList += `${variantToTailwindClass[prop]} `;
|
78
128
|
}
|
79
129
|
return safeList;
|
80
130
|
};
|
81
131
|
|
132
|
+
/**
|
133
|
+
* Get the used props for a given component.
|
134
|
+
*
|
135
|
+
* @example
|
136
|
+
* const usedProps = getUsedProps(project, 'HStack');
|
137
|
+
*/
|
138
|
+
export const getUsedProps = (project: Project, component: string) => {
|
139
|
+
const references = findNamedImportReferences(project, '@yahoo/uds', component);
|
140
|
+
// for each reference find the used/references props
|
141
|
+
const usedProps = references.map((reference) => getUsedPropsInReference(reference)).flat();
|
142
|
+
|
143
|
+
return usedProps;
|
144
|
+
};
|
145
|
+
|
82
146
|
export const isUDSComponent = (component: string): boolean => {
|
83
147
|
return !!componentToVariants[component];
|
84
148
|
};
|
@@ -128,7 +192,7 @@ async function purge() {
|
|
128
192
|
// 3. Now that we have the importer components
|
129
193
|
const udsComponents = getComponentsToConvertToTW(udsImports);
|
130
194
|
// 4. Generate the CSS we need
|
131
|
-
const safeList = getTailwindSafelist(udsComponents);
|
195
|
+
const safeList = getTailwindSafelist(project, udsComponents);
|
132
196
|
// 5. Write the allowlist to a file
|
133
197
|
await saveToFile(safeList);
|
134
198
|
}
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";var Lt=Object.create;var to=Object.defineProperty;var Mt=Object.getOwnPropertyDescriptor;var Ht=Object.getOwnPropertyNames;var Nt=Object.getPrototypeOf,_t=Object.prototype.hasOwnProperty;var Bt=(o,e)=>{for(var t in e)to(o,t,{get:e[t],enumerable:!0})},So=(o,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of Ht(e))!_t.call(o,a)&&a!==t&&to(o,a,{get:()=>e[a],enumerable:!(r=Mt(e,a))||r.enumerable});return o};var Ot=(o,e,t)=>(t=o!=null?Lt(Nt(o)):{},So(e||!o||!o.__esModule?to(t,"default",{value:o,enumerable:!0}):t,o)),zt=o=>So(to({},"__esModule",{value:!0}),o);var xr={};Bt(xr,{Accordion:()=>Yo,Avatar:()=>Jo,Button:()=>ro,Chip:()=>ot,Dropdown:()=>pt,DropdownItem:()=>dt,DropdownItemPressable:()=>co,DropdownItems:()=>mt,DropdownTrigger:()=>ft,IconButton:()=>bo,Modal:()=>ht,ModalDismiss:()=>xt,ModalHeader:()=>yt,Popover:()=>no,PopoverAnchor:()=>nt,PopoverArrow:()=>so,PopoverDescription:()=>st,PopoverDisclosure:()=>lo,PopoverDisclosureArrow:()=>lt,PopoverDismiss:()=>it,PopoverHeading:()=>at,PopoverProvider:()=>io,Spinner:()=>vt,Tab:()=>Tt,TabList:()=>Pt,TabPanel:()=>Ct,Table:()=>T,Tabs:()=>wt,TextInput:()=>mo,TextInputGroup:()=>kt,TextInputLabel:()=>fo,ToastContainer:()=>At,toast:()=>Xe.toast,useModalStore:()=>gt,usePopoverStore:()=>m.usePopoverStore});module.exports=zt(xr);var zo=require("react");var x=require("@yahoo/uds/fixtures"),_o=Ot(require("clsx"),1),Bo=require("tailwind-merge");function ho(o){return typeof o=="boolean"?`${o}`:o===0?"0":o}var b="uds",Tr=`${b}-spectrum-color`,Cr=`${b}-font`,Sr=`${b}-icon-size`,kr=`${b}-avatar-size`,Ar=`${b}-border-radius`,Rr=`${b}-border-width`,Er=`${b}-spacing`,Dr=`${b}-font-size`,Ir=`${b}-line-height`,Lr=`${b}-font-weight`,Mr=`${b}-text-transform`,ko=`${b}-color-mode-dark`,Ao=`${b}-color-mode-light`,Ro=`${b}-scale-mode-xsmall`,Eo=`${b}-scale-mode-small`,Do=`${b}-scale-mode-medium`,Io=`${b}-scale-mode-large`,Lo=`${b}-scale-mode-xlarge`,Mo=`${b}-scale-mode-xxlarge`,Ho=`${b}-scale-mode-xxxlarge`;var Hr=`--${b}-font-icons`,Nr=`--${b}-font-sans`,_r=`--${b}-font-sans-beta`,Br=`--${b}-font-sans-condensed`,Or=`--${b}-font-serif-display`,zr=`--${b}-font-serif-text`;var No={color:{accent:"text-accent",alert:"text-alert",black:"text-black",brand:"text-brand",positive:"text-positive",warning:"text-warning",white:"text-white",transparent:"text-transparent",muted:"text-muted","on-color":"text-on-color",primary:"text-primary",secondary:"text-secondary",tertiary:"text-tertiary"},colorChecked:{accent:"data-[state=checked]:text-accent",alert:"data-[state=checked]:text-alert",black:"data-[state=checked]:text-black",brand:"data-[state=checked]:text-brand",positive:"data-[state=checked]:text-positive",warning:"data-[state=checked]:text-warning",white:"data-[state=checked]:text-white",transparent:"data-[state=checked]:text-transparent",primary:"data-[state=checked]:text-primary",secondary:"data-[state=checked]:text-secondary",muted:"data-[state=checked]:text-muted","on-color":"data-[state=checked]:text-on-color",tertiary:"data-[state=checked]:text-tertiary"},placeholderColor:{accent:"placeholder:text-accent",alert:"placeholder:text-alert",black:"placeholder:text-black",brand:"placeholder:text-brand",positive:"placeholder:text-positive",warning:"placeholder:text-warning",white:"placeholder:text-white",transparent:"placeholder:text-transparent",muted:"placeholder:text-muted","on-color":"placeholder:text-on-color",primary:"placeholder:text-primary",secondary:"placeholder:text-secondary",tertiary:"placeholder:text-tertiary"},fontFamily:{icons:"font-icons",sans:"font-sans","sans-beta":"font-sans-beta","sans-condensed":"font-sans-condensed","serif-text":"font-serif-text","serif-display":"font-serif-display",display1:"font-display1",display2:"font-display2",display3:"font-display3",title1:"font-title1",title2:"font-title2",title3:"font-title3",title4:"font-title4",headline1:"font-headline1",body1:"font-body1",label1:"font-label1",label2:"font-label2",caption1:"font-caption1",caption2:"font-caption2",legal1:"font-legal1"},fontSize:{display1:"font-size-display1",display2:"font-size-display2",display3:"font-size-display3",title1:"font-size-title1",title2:"font-size-title2",title3:"font-size-title3",title4:"font-size-title4",headline1:"font-size-headline1",body1:"font-size-body1",label1:"font-size-label1",label2:"font-size-label2",caption1:"font-size-caption1",caption2:"font-size-caption2",legal1:"font-size-legal1"},fontWeight:{thin:"font-weight-thin",extralight:"font-weight-extralight",light:"font-weight-light",regular:"font-weight-regular",medium:"font-weight-medium",semibold:"font-weight-semibold",bold:"font-weight-bold",extrabold:"font-weight-extrabold",black:"font-weight-black",display1:"font-weight-display1",display2:"font-weight-display2",display3:"font-weight-display3",title1:"font-weight-title1",title2:"font-weight-title2",title3:"font-weight-title3",title4:"font-weight-title4",headline1:"font-weight-headline1",body1:"font-weight-body1",label1:"font-weight-label1",label2:"font-weight-label2",caption1:"font-weight-caption1",caption2:"font-weight-caption2",legal1:"font-weight-legal1"},lineHeight:{display1:"leading-display1",display2:"leading-display2",display3:"leading-display3",title1:"leading-title1",title2:"leading-title2",title3:"leading-title3",title4:"leading-title4",headline1:"leading-headline1",body1:"leading-body1",label1:"leading-label1",label2:"leading-label2",caption1:"leading-caption1",caption2:"leading-caption2",legal1:"leading-legal1"},textAlign:{center:"text-center",justify:"text-justify",start:"text-start",end:"text-end"},textTransform:{display1:"case-display1",display2:"case-display2",display3:"case-display3",title1:"case-title1",title2:"case-title2",title3:"case-title3",title4:"case-title4",headline1:"case-headline1",body1:"case-body1",label1:"case-label1",label2:"case-label2",caption1:"case-caption1",caption2:"case-caption2",legal1:"case-legal1",none:"normal-case",uppercase:"uppercase",lowercase:"lowercase",capitalize:"capitalize"},spacing:{none:"p-[0px]",1:"p-1",2:"p-2",3:"p-3",4:"p-4",5:"p-5",6:"p-6",7:"p-7",8:"p-8",9:"p-9",10:"p-10",11:"p-11",12:"p-12",13:"p-13",14:"p-14"},spacingHorizontal:{none:"px-none",1:"px-1",2:"px-2",3:"px-3",4:"px-4",5:"px-5",6:"px-6",7:"px-7",8:"px-8",9:"px-9",10:"px-10",11:"px-11",12:"px-12",13:"px-13",14:"px-14"},spacingVertical:{none:"py-none",1:"py-1",2:"py-2",3:"py-3",4:"py-4",5:"py-5",6:"py-6",7:"py-7",8:"py-8",9:"py-9",10:"py-10",11:"py-11",12:"py-12",13:"py-13",14:"py-14"},spacingBottom:{none:"pb-none",1:"pb-1",2:"pb-2",3:"pb-3",4:"pb-4",5:"pb-5",6:"pb-6",7:"pb-7",8:"pb-8",9:"pb-9",10:"pb-10",11:"pb-11",12:"pb-12",13:"pb-13",14:"pb-14"},spacingEnd:{none:"pe-none",1:"pe-1",2:"pe-2",3:"pe-3",4:"pe-4",5:"pe-5",6:"pe-6",7:"pe-7",8:"pe-8",9:"pe-9",10:"pe-10",11:"pe-11",12:"pe-12",13:"pe-13",14:"pe-14"},spacingStart:{none:"ps-none",1:"ps-1",2:"ps-2",3:"ps-3",4:"ps-4",5:"ps-5",6:"ps-6",7:"ps-7",8:"ps-8",9:"ps-9",10:"ps-10",11:"ps-11",12:"ps-12",13:"ps-13",14:"ps-14"},spacingTop:{none:"pt-none",1:"pt-1",2:"pt-2",3:"pt-3",4:"pt-4",5:"pt-5",6:"pt-6",7:"pt-7",8:"pt-8",9:"pt-9",10:"pt-10",11:"pt-11",12:"pt-12",13:"pt-13",14:"pt-14"},offset:{none:"-m-none",1:"-m-1",2:"-m-2",3:"-m-3",4:"-m-4",5:"-m-5",6:"-m-6",7:"-m-7",8:"-m-8",9:"-m-9",10:"-m-10",11:"-m-11",12:"-m-12",13:"-m-13",14:"-m-14"},offsetVertical:{none:"-my-none",1:"-my-1",2:"-my-2",3:"-my-3",4:"-my-4",5:"-my-5",6:"-my-6",7:"-my-7",8:"-my-8",9:"-my-9",10:"-my-10",11:"-my-11",12:"-my-12",13:"-my-13",14:"-my-14"},offsetHorizontal:{none:"-mx-none",1:"-mx-1",2:"-mx-2",3:"-mx-3",4:"-mx-4",5:"-mx-5",6:"-mx-6",7:"-mx-7",8:"-mx-8",9:"-mx-9",10:"-mx-10",11:"-mx-11",12:"-mx-12",13:"-mx-13",14:"-mx-14"},offsetBottom:{none:"-mb-none",1:"-mb-1",2:"-mb-2",3:"-mb-3",4:"-mb-4",5:"-mb-5",6:"-mb-6",7:"-mb-7",8:"-mb-8",9:"-mb-9",10:"-mb-10",11:"-mb-11",12:"-mb-12",13:"-mb-13",14:"-mb-14"},offsetEnd:{none:"-me-none",1:"-me-1",2:"-me-2",3:"-me-3",4:"-me-4",5:"-me-5",6:"-me-6",7:"-me-7",8:"-me-8",9:"-me-9",10:"-me-10",11:"-me-11",12:"-me-12",13:"-me-13",14:"-me-14"},offsetStart:{none:"-ms-none",1:"-ms-1",2:"-ms-2",3:"-ms-3",4:"-ms-4",5:"-ms-5",6:"-ms-6",7:"-ms-7",8:"-ms-8",9:"-ms-9",10:"-ms-10",11:"-ms-11",12:"-ms-12",13:"-ms-13",14:"-ms-14"},offsetTop:{none:"-mt-none",1:"-mt-1",2:"-mt-2",3:"-mt-3",4:"-mt-4",5:"-mt-5",6:"-mt-6",7:"-mt-7",8:"-mt-8",9:"-mt-9",10:"-mt-10",11:"-mt-11",12:"-mt-12",13:"-mt-13",14:"-mt-14"},columnGap:{none:"gap-x-none",1:"gap-x-1",2:"gap-x-2",3:"gap-x-3",4:"gap-x-4",5:"gap-x-5",6:"gap-x-6",7:"gap-x-7",8:"gap-x-8",9:"gap-x-9",10:"gap-x-10",11:"gap-x-11",12:"gap-x-12",13:"gap-x-13",14:"gap-x-14"},rowGap:{none:"gap-y-none",1:"gap-y-1",2:"gap-y-2",3:"gap-y-3",4:"gap-y-4",5:"gap-y-5",6:"gap-y-6",7:"gap-y-7",8:"gap-y-8",9:"gap-y-9",10:"gap-y-10",11:"gap-y-11",12:"gap-y-12",13:"gap-y-13",14:"gap-y-14"},backgroundColor:{accent:"bg-accent",alert:"bg-alert",black:"bg-black",brand:"bg-brand",positive:"bg-positive",warning:"bg-warning",white:"bg-white","accent-wash":"bg-accent-wash","alert-wash":"bg-alert-wash","brand-wash":"bg-brand-wash","elevation-1":"bg-elevation-1","elevation-2":"bg-elevation-2","elevation-3":"bg-elevation-3","elevation-3-inverse":"bg-elevation-3-inverse",overlay:"bg-overlay","positive-wash":"bg-positive-wash",primary:"bg-primary",secondary:"bg-secondary",transparent:"bg-transparent","warning-wash":"bg-warning-wash"},backgroundColorOnActive:{accent:"active:bg-accent",alert:"active:bg-alert",black:"active:bg-black",brand:"active:bg-brand",positive:"active:bg-positive",warning:"active:bg-warning",white:"active:bg-white","accent-wash":"active:bg-accent-wash","alert-wash":"active:bg-alert-wash","brand-wash":"active:bg-brand-wash","elevation-1":"active:bg-elevation-1","elevation-2":"active:bg-elevation-2","elevation-3":"active:bg-elevation-3","elevation-3-inverse":"active:bg-elevation-3-inverse",overlay:"active:bg-overlay","positive-wash":"active:bg-positive-wash",primary:"active:bg-primary",secondary:"active:bg-secondary",transparent:"active:bg-transparent","warning-wash":"active:bg-warning-wash"},backgroundColorOnHover:{accent:"hover:bg-accent/80",alert:"hover:bg-alert/80",black:"hover:bg-black/80",brand:"hover:bg-brand/80",positive:"hover:bg-positive/80",warning:"hover:bg-warning/80",white:"hover:bg-white/80","accent-wash":"hover:bg-accent-wash/80","alert-wash":"hover:bg-alert-wash/80","brand-wash":"hover:bg-brand-wash/80","elevation-1":"hover:bg-elevation-1/80","elevation-2":"hover:bg-elevation-2/80","elevation-3":"hover:bg-elevation-3/80","elevation-3-inverse":"hover:bg-elevation-3-inverse/80",overlay:"hover:bg-overlay/80","positive-wash":"hover:bg-positive-wash/80",primary:"hover:bg-primary/80",secondary:"hover:bg-secondary/80",transparent:"hover:bg-transparent/80","warning-wash":"hover:bg-warning-wash/80"},backgroundColorOnChecked:{accent:"data-[state=checked]:bg-accent",alert:"data-[state=checked]:bg-alert",black:"data-[state=checked]:bg-black",brand:"data-[state=checked]:bg-brand",positive:"data-[state=checked]:bg-positive",warning:"data-[state=checked]:bg-warning",white:"data-[state=checked]:bg-white","accent-wash":"data-[state=checked]:bg-accent-wash","alert-wash":"data-[state=checked]:bg-alert-wash","brand-wash":"data-[state=checked]:bg-brand-wash","elevation-1":"data-[state=checked]:bg-elevation-1","elevation-2":"data-[state=checked]:bg-elevation-2","elevation-3":"data-[state=checked]:bg-elevation-3","elevation-3-inverse":"data-[state=checked]:bg-elevation-3-inverse",overlay:"data-[state=checked]:bg-overlay","positive-wash":"data-[state=checked]:bg-positive-wash",primary:"data-[state=checked]:bg-primary",secondary:"data-[state=checked]:bg-secondary",transparent:"data-[state=checked]:bg-transparent","warning-wash":"data-[state=checked]:bg-warning-wash"},backgroundColorOnFocus:{accent:"focus:bg-accent",alert:"focus:bg-alert",black:"focus:bg-black",brand:"focus:bg-brand",positive:"focus:bg-positive",warning:"focus:bg-warning",white:"focus:bg-white","accent-wash":"focus:bg-accent-wash","alert-wash":"focus:bg-alert-wash","brand-wash":"focus:bg-brand-wash","elevation-1":"focus:bg-elevation-1","elevation-2":"focus:bg-elevation-2","elevation-3":"focus:bg-elevation-3","elevation-3-inverse":"focus:bg-elevation-3-inverse",overlay:"focus:bg-overlay","positive-wash":"focus:bg-positive-wash",primary:"focus:bg-primary",secondary:"focus:bg-secondary",transparent:"focus:bg-transparent","warning-wash":"focus:bg-warning-wash"},elevation:{1:"bg-elevation-1 z-30 shadow-1",2:"bg-elevation-2 z-40 shadow-2",3:"bg-elevation-3 z-50 shadow-3"},opacity:{0:"opacity-0",5:"opacity-5",10:"opacity-10",20:"opacity-20",25:"opacity-25",30:"opacity-30",40:"opacity-40",50:"opacity-50",60:"opacity-60",70:"opacity-70",75:"opacity-75",80:"opacity-80",90:"opacity-90",95:"opacity-95",100:"opacity-100"},borderColor:{accent:"border-accent",alert:"border-alert",black:"border-black",brand:"border-brand",positive:"border-positive",warning:"border-warning",white:"border-white",transparent:"border-transparent",muted:"border-muted",primary:"border-primary",secondary:"border-secondary",tertiary:"border-tertiary"},borderColorOnActive:{accent:"active:border-accent",alert:"active:border-alert",black:"active:border-black",brand:"active:border-brand",positive:"active:border-positive",warning:"active:border-warning",white:"active:border-white",transparent:"active:border-transparent",muted:"active:border-muted",primary:"active:border-primary",secondary:"active:border-secondary",tertiary:"active:border-tertiary"},borderColorOnFocus:{accent:"focus:border-accent",alert:"focus:border-alert",black:"focus:border-black",brand:"focus:border-brand",positive:"focus:border-positive",warning:"focus:border-warning",white:"focus:border-white",transparent:"focus:border-transparent",muted:"focus:border-muted",primary:"focus:border-primary",secondary:"focus:border-secondary",tertiary:"focus:border-tertiary"},borderColorOnHover:{accent:"hover:border-accent",alert:"hover:border-alert",black:"hover:border-black",brand:"hover:border-brand",positive:"hover:border-positive",warning:"hover:border-warning",white:"hover:border-white",transparent:"hover:border-transparent",muted:"hover:border-muted",primary:"hover:border-primary",secondary:"hover:border-secondary",tertiary:"hover:border-tertiary"},borderColorOnChecked:{accent:"data-[state=checked]:border-accent",alert:"data-[state=checked]:border-alert",black:"data-[state=checked]:border-black",brand:"data-[state=checked]:border-brand",positive:"data-[state=checked]:border-positive",warning:"data-[state=checked]:border-warning",white:"data-[state=checked]:border-white",transparent:"data-[state=checked]:border-transparent",muted:"data-[state=checked]:border-muted",primary:"data-[state=checked]:border-primary",secondary:"data-[state=checked]:border-secondary",tertiary:"data-[state=checked]:border-tertiary"},borderStartColor:{accent:"border-s-accent",alert:"border-s-alert",black:"border-s-black",brand:"border-s-brand",positive:"border-s-positive",warning:"border-s-warning",white:"border-s-white",transparent:"border-s-transparent",muted:"border-s-muted",primary:"border-s-primary",secondary:"border-s-secondary",tertiary:"border-s-tertiary"},borderEndColor:{accent:"border-e-accent",alert:"border-e-alert",black:"border-e-black",brand:"border-e-brand",positive:"border-e-positive",warning:"border-e-warning",white:"border-e-white",transparent:"border-e-transparent",muted:"border-e-muted",primary:"border-e-primary",secondary:"border-e-secondary",tertiary:"border-e-tertiary"},borderBottomColor:{accent:"border-b-accent",alert:"border-b-alert",black:"border-b-black",brand:"border-b-brand",positive:"border-b-positive",warning:"border-b-warning",white:"border-b-white",transparent:"border-b-transparent",muted:"border-b-muted",primary:"border-b-primary",secondary:"border-b-secondary",tertiary:"border-b-tertiary"},borderTopColor:{accent:"border-t-accent",alert:"border-t-alert",black:"border-t-black",brand:"border-t-brand",positive:"border-t-positive",warning:"border-t-warning",white:"border-t-white",transparent:"border-t-transparent",muted:"border-t-muted",primary:"border-t-primary",secondary:"border-t-secondary",tertiary:"border-t-tertiary"},borderRadius:{none:"rounded-none",xs:"rounded-xs",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl",full:"rounded-full"},borderTopStartRadius:{none:"rounded-ss-none",xs:"rounded-ss-xs",sm:"rounded-ss-sm",md:"rounded-ss-md",lg:"rounded-ss-lg",xl:"rounded-ss-xl",full:"rounded-ss-full"},borderTopEndRadius:{none:"rounded-se-none",xs:"rounded-se-xs",sm:"rounded-se-sm",md:"rounded-se-md",lg:"rounded-se-lg",xl:"rounded-se-xl",full:"rounded-se-full"},borderBottomStartRadius:{none:"rounded-es-none",xs:"rounded-es-xs",sm:"rounded-es-sm",md:"rounded-es-md",lg:"rounded-es-lg",xl:"rounded-es-xl",full:"rounded-es-full"},borderBottomEndRadius:{none:"rounded-ee-none",xs:"rounded-ee-xs",sm:"rounded-ee-sm",md:"rounded-ee-md",lg:"rounded-ee-lg",xl:"rounded-ee-xl",full:"rounded-ee-full"},bordered:{true:"border-thin border-solid"},borderWidth:{none:"border-none",thin:"border-thin",medium:"border-medium",thick:"border-thick"},borderVerticalWidth:{none:"border-y-none",thin:"border-y-thin",medium:"border-y-medium",thick:"border-y-thick"},borderHorizontalWidth:{none:"border-x-none",thin:"border-x-thin",medium:"border-x-medium",thick:"border-x-thick"},borderStartWidth:{none:"border-s-none",thin:"border-s-thin",medium:"border-s-medium",thick:"border-s-thick"},borderEndWidth:{none:"border-e-none",thin:"border-e-thin",medium:"border-e-medium",thick:"border-e-thick"},borderTopWidth:{none:"border-t-none",thin:"border-t-thin",medium:"border-t-medium",thick:"border-t-thick"},borderBottomWidth:{none:"border-b-none",thin:"border-b-thin",medium:"border-b-medium",thick:"border-b-thick"},borderedVertical:{true:"border-y-thin"},borderedTop:{true:"border-t-thin"},borderedBottom:{true:"border-b-thin"},borderedHorizontal:{true:"border-x-thin"},borderedEnd:{true:"border-e-thin"},borderedStart:{true:"border-s-thin"},height:{auto:"h-auto",full:"h-full",screen:"h-screen",min:"h-min",max:"h-max",fit:"h-fit","1/2":"h-1/2","1/3":"h-1/3","2/3":"h-2/3","1/4":"h-1/4","2/4":"h-2/4","3/4":"h-3/4","1/5":"h-1/5","2/5":"h-2/5","3/5":"h-3/5","4/5":"h-4/5","1/6":"h-1/6","2/6":"h-2/6","3/6":"h-3/6","4/6":"h-4/6","5/6":"h-5/6"},minHeight:{full:"min-h-full",min:"min-h-min",max:"min-h-max",fit:"min-h-fit",screen:"min-h-screen"},maxHeight:{full:"max-h-full",min:"max-h-min",max:"max-h-max",fit:"max-h-fit",screen:"max-h-screen",none:"max-h-[0px]"},width:{auto:"w-auto",full:"w-full",screen:"w-screen",min:"w-min",max:"w-max",fit:"w-fit","1/2":"w-1/2","1/3":"w-1/3","2/3":"w-2/3","1/4":"w-1/4","2/4":"w-2/4","3/4":"w-3/4","1/5":"w-1/5","2/5":"w-2/5","3/5":"w-3/5","4/5":"w-4/5","1/6":"w-1/6","2/6":"w-2/6","3/6":"w-3/6","4/6":"w-4/6","5/6":"w-5/6","1/12":"w-1/12","2/12":"w-2/12","3/12":"w-3/12","4/12":"w-4/12","5/12":"w-5/12","6/12":"w-6/12","7/12":"w-7/12","8/12":"w-8/12","9/12":"w-9/12","10/12":"w-10/12","11/12":"w-11/12"},minWidth:{full:"min-w-full",min:"min-w-min",max:"min-w-max",fit:"min-w-fit",screen:"min-w-screen"},maxWidth:{none:"max-w-[0px]",full:"max-w-full",min:"max-w-min",max:"max-w-max",fit:"max-w-fit"},avatarSize:{s:"avatarSize-s",m:"avatarSize-m",l:"avatarSize-l"},iconSize:{s:"iconSize-s leading-none",m:"iconSize-m leading-none",l:"iconSize-l leading-none"},alignContent:{"flex-start":"content-start","flex-end":"content-end",center:"content-center",stretch:"content-stretch","space-between":"content-between","space-around":"content-around"},alignItems:{"flex-start":"items-start","flex-end":"items-end",center:"items-center",stretch:"items-stretch",baseline:"items-baseline"},alignSelf:{auto:"self-auto","flex-start":"self-start","flex-end":"self-end",center:"self-center",stretch:"self-stretch",baseline:"self-baseline"},flex:{1:"flex-1",auto:"flex-auto",initial:"flex-initial",none:"flex-none"},flexDirection:{row:"flex-row",column:"flex-col","row-reverse":"flex-row-reverse","column-reverse":"flex-col-reverse"},flexGrow:{0:"grow-0",1:"grow",2:"grow-[2]",3:"grow-[3]"},flexShrink:{0:"shrink-0",1:"shrink"},flexWrap:{wrap:"flex-wrap","wrap-reverse":"flex-wrap-reverse",nowrap:"flex-nowrap"},justifyContent:{"flex-start":"justify-start","flex-end":"justify-end",center:"justify-center","space-between":"justify-between","space-around":"justify-around","space-evenly":"justify-evenly"},flexBasis:{"min-content":"basis-[min-content]"},display:{block:"block","inline-block":"inline-block",inline:"inline",flex:"flex","inline-flex":"inline-flex",table:"table","inline-table":"inline-table","table-caption":"table-caption","table-cell":"table-cell","table-column":"table-column","table-column-group":"table-column-group","table-footer-group":"table-footer-group","table-header-group":"table-header-group","table-row-group":"table-row-group","table-row":"table-row","flow-root":"flow-root",grid:"grid",contents:"contents"},overflow:{auto:"overflow-auto",hidden:"overflow-hidden",clip:"overflow-clip",visible:"overflow-visible",scroll:"overflow-scroll"},overflowX:{auto:"overflow-x-auto",hidden:"overflow-x-hidden",clip:"overflow-x-clip",visible:"overflow-x-visible",scroll:"overflow-x-scroll"},overflowY:{auto:"overflow-y-auto",hidden:"overflow-y-hidden",clip:"overflow-y-clip",visible:"overflow-y-visible",scroll:"overflow-y-scroll"},position:{static:"static",fixed:"fixed",absolute:"absolute",relative:"relative",sticky:"sticky"},zIndex:{0:"z-0",10:"z-10",20:"z-20",30:"z-40",40:"z-30",50:"z-50",auto:"z-auto"},contentFit:{contain:"object-contain",cover:"object-cover",fill:"object-fill",none:"object-none","scale-down":"object-scale-down"},colorMode:{dark:ko,light:Ao},scaleMode:{xSmall:Ro,small:Eo,medium:Do,large:Io,xLarge:Lo,xxxLarge:Ho,xxLarge:Mo}};var Vt=(0,Bo.extendTailwindMerge)({cacheSize:0,extend:{theme:{borderColor:x.lineColors,borderWidth:x.borderWidths,borderRadius:x.borderRadii}},override:{classGroups:{"text-color":[{text:x.foregroundColors}],"bg-color":[{bg:x.backgroundColors}],"font-family":[{font:["icons",...x.textVariants]}],leading:[{leading:x.textVariants}],shadow:[{shadow:x.elevations}]},conflictingClassGroups:{}}}),h=(...o)=>{let e=(0,_o.default)(o);return Vt(e)},Ft=o=>e=>{if(!o?.variants)return h(o?.base,e?.className);let{variants:t,defaultVariants:r}=o,a=Object.keys(t).map(s=>{let i=e?.[s],p=r?.[s],d=ho(i)||ho(p);return t[s][d]}),n={...r,...e&&Object.entries(e).reduce((s,[i,p])=>typeof p>"u"?s:{...s,[i]:p},{})},l=o?.compoundVariants?.reduce((s,{className:i,...p})=>Object.entries(p).every(([d,u])=>n[d]===u)?h(s,i):s,"");return h(o?.base,a,l,e?.className)},c=Ft({variants:No});var y=require("react");function Gt(o,e){typeof o=="function"?o(e):o!=null&&(o.current=e)}function Oo(...o){return e=>o.forEach(t=>Gt(t,e))}var xo=require("react/jsx-runtime");function A(){let o=(0,y.forwardRef)((n,l)=>{let{children:s,...i}=n,p=y.Children.toArray(s),d=p.find(r);if(d){let u=d.props.children,w=p.map(C=>C===d?y.Children.count(u)>1?y.Children.only(null):(0,y.isValidElement)(u)?u.props.children:null:C);return(0,xo.jsx)(e,{...i,ref:l,children:(0,y.isValidElement)(u)?(0,y.cloneElement)(u,void 0,w):null})}return(0,xo.jsx)(e,{...i,ref:l,children:s})});o.displayName="Slot";let e=(0,y.forwardRef)((n,l)=>{let{children:s,...i}=n;return(0,y.isValidElement)(s)?(0,y.cloneElement)(s,{...a(i,s.props),ref:l?Oo(l,s.ref):s.ref}):y.Children.count(s)>1?y.Children.only(null):null});e.displayName="SlotClone";let t=({children:n})=>n;function r(n){return(0,y.isValidElement)(n)&&n.type===t}function a(n,l){let s={...l};for(let i in l){let p=n[i],d=l[i];/^on[A-Z]/.test(i)?p&&d?s[i]=(...w)=>{d(...w),p(...w)}:p&&(s[i]=p):i==="style"&&(s[i]={...p,...d})}return{...n,...s}}return o}var Vo=require("react/jsx-runtime"),Ut=A(),v=(0,zo.forwardRef)(function({className:e,asChild:t=!1,size:r="l",color:a="primary",name:n,colorChecked:l,opacity:s,textAlign:i,backgroundColor:p,backgroundColorOnActive:d,backgroundColorOnHover:u,backgroundColorOnChecked:w,bordered:C,borderedTop:H,borderedBottom:N,borderedStart:_,borderedEnd:B,borderedHorizontal:O,borderedVertical:z,borderRadius:V,borderTopStartRadius:F,borderTopEndRadius:G,borderBottomStartRadius:U,borderBottomEndRadius:W,borderColor:X,borderColorOnActive:$,borderColorOnFocus:Z,borderColorOnChecked:K,borderColorOnHover:Y,borderStartColor:q,borderEndColor:J,borderTopColor:Q,borderBottomColor:j,borderWidth:ee,borderVerticalWidth:oe,borderHorizontalWidth:te,borderStartWidth:re,borderEndWidth:ae,borderTopWidth:ne,borderBottomWidth:se,alignContent:ie,alignItems:le,alignSelf:pe,flex:ce,flexDirection:de,flexGrow:be,flexShrink:me,flexWrap:fe,justifyContent:ue,flexBasis:ge,display:ye,zIndex:he,overflow:xe,overflowX:ve,overflowY:we,position:Pe,spacing:Te,spacingHorizontal:Ce,spacingVertical:Se,spacingBottom:ke,spacingEnd:Ae,spacingStart:Re,spacingTop:Ee,offset:De,offsetVertical:Ie,offsetHorizontal:Le,offsetBottom:Me,offsetEnd:He,offsetStart:Ne,offsetTop:_e,columnGap:Be,rowGap:Oe,height:ze,minHeight:Ve,maxHeight:Fe,width:Ge,minWidth:Ue,maxWidth:$e,...Je},oo){let go=t?Ut:"span",yo=c({iconSize:r,color:a,colorChecked:l,opacity:s,fontFamily:"icons",textAlign:i,backgroundColor:p,backgroundColorOnActive:d,backgroundColorOnHover:u,backgroundColorOnChecked:w,bordered:C,borderedTop:H,borderedBottom:N,borderedStart:_,borderedEnd:B,borderedHorizontal:O,borderedVertical:z,borderRadius:V,borderTopStartRadius:F,borderTopEndRadius:G,borderBottomStartRadius:U,borderBottomEndRadius:W,borderColor:X,borderColorOnActive:$,borderColorOnFocus:Z,borderColorOnChecked:K,borderColorOnHover:Y,borderStartColor:q,borderEndColor:J,borderTopColor:Q,borderBottomColor:j,borderWidth:ee,borderVerticalWidth:oe,borderHorizontalWidth:te,borderStartWidth:re,borderEndWidth:ae,borderTopWidth:ne,borderBottomWidth:se,alignContent:ie,alignItems:le,alignSelf:pe,flex:ce,flexDirection:de,flexGrow:be,flexShrink:me,flexWrap:fe,justifyContent:ue,flexBasis:ge,display:ye,zIndex:he,overflow:xe,overflowX:ve,overflowY:we,position:Pe,spacing:Te,spacingHorizontal:Ce,spacingVertical:Se,spacingBottom:ke,spacingEnd:Ae,spacingStart:Re,spacingTop:Ee,offset:De,offsetVertical:Ie,offsetHorizontal:Le,offsetBottom:Me,offsetEnd:He,offsetStart:Ne,offsetTop:_e,columnGap:Be,rowGap:Oe,height:ze,minHeight:Ve,maxHeight:Fe,width:Ge,minWidth:Ue,maxWidth:$e,className:e});return(0,Vo.jsx)(go,{className:yo,ref:oo,...Je,children:n})});var Fo=require("react");var Go=require("react/jsx-runtime"),Wt=A(),P=(0,Fo.forwardRef)(function({className:e,asChild:t,onPress:r,onClick:a=r,backgroundColor:n,backgroundColorOnActive:l,backgroundColorOnHover:s,backgroundColorOnChecked:i,elevation:p,opacity:d,bordered:u,borderedTop:w,borderedBottom:C,borderedStart:H,borderedEnd:N,borderedHorizontal:_,borderedVertical:B,borderRadius:O,borderTopStartRadius:z,borderTopEndRadius:V,borderBottomStartRadius:F,borderBottomEndRadius:G,borderColor:U,borderColorOnActive:W,borderColorOnFocus:X,borderColorOnChecked:$,borderColorOnHover:Z,borderStartColor:K,borderEndColor:Y,borderTopColor:q,borderBottomColor:J,borderWidth:Q,borderVerticalWidth:j,borderHorizontalWidth:ee,borderStartWidth:oe,borderEndWidth:te,borderTopWidth:re,borderBottomWidth:ae,alignContent:ne,alignItems:se,alignSelf:ie,flex:le,flexDirection:pe,flexGrow:ce,flexShrink:de,flexWrap:be,justifyContent:me,flexBasis:fe,display:ue,zIndex:ge,overflow:ye,overflowX:he,overflowY:xe,position:ve,spacing:we,spacingHorizontal:Pe,spacingVertical:Te,spacingBottom:Ce,spacingEnd:Se,spacingStart:ke,spacingTop:Ae,offset:Re,offsetVertical:Ee,offsetHorizontal:De,offsetBottom:Ie,offsetEnd:Le,offsetStart:Me,offsetTop:He,columnGap:Ne,rowGap:_e,height:Be,minHeight:Oe,maxHeight:ze,width:Ve,minWidth:Fe,maxWidth:Ge,...Ue},$e){let Je=c({backgroundColor:n,backgroundColorOnActive:l,backgroundColorOnHover:s,backgroundColorOnChecked:i,elevation:p,opacity:d,bordered:u,borderedTop:w,borderedBottom:C,borderedStart:H,borderedEnd:N,borderedHorizontal:_,borderedVertical:B,borderRadius:O,borderTopStartRadius:z,borderTopEndRadius:V,borderBottomStartRadius:F,borderBottomEndRadius:G,borderColor:U,borderColorOnActive:W,borderColorOnFocus:X,borderColorOnChecked:$,borderColorOnHover:Z,borderStartColor:K,borderEndColor:Y,borderTopColor:q,borderBottomColor:J,borderWidth:Q,borderVerticalWidth:j,borderHorizontalWidth:ee,borderStartWidth:oe,borderEndWidth:te,borderTopWidth:re,borderBottomWidth:ae,alignContent:ne,alignItems:se,alignSelf:ie,flex:le,flexDirection:pe,flexGrow:ce,flexShrink:de,flexWrap:be,justifyContent:me,flexBasis:fe,display:ue,zIndex:ge,overflow:ye,overflowX:he,overflowY:xe,position:ve,spacing:we,spacingHorizontal:Pe,spacingVertical:Te,spacingBottom:Ce,spacingEnd:Se,spacingStart:ke,spacingTop:Ae,offset:Re,offsetVertical:Ee,offsetHorizontal:De,offsetBottom:Ie,offsetEnd:Le,offsetStart:Me,offsetTop:He,columnGap:Ne,rowGap:_e,height:Be,minHeight:Oe,maxHeight:ze,width:Ve,minWidth:Fe,maxWidth:Ge,className:e});return(0,Go.jsx)(t?Wt:"button",{className:Je,ref:$e,onClick:a,...Ue})});var Uo=require("react");var Wo=require("react/jsx-runtime"),Xt=A(),$t={display1:"h1",display2:"h1",display3:"h1",title1:"h1",title2:"h2",title3:"h3",title4:"h4",headline1:"h5",body1:"p",label1:"p",label2:"p",caption1:"p",caption2:"p",legal1:"p"},f=(0,Uo.forwardRef)(function({className:e,asChild:t,color:r="primary",colorChecked:a,variant:n="body1",as:l=$t[n],fontSize:s=n,fontFamily:i=n,fontWeight:p=n,lineHeight:d=n,textTransform:u=n,textAlign:w,backgroundColor:C,backgroundColorOnActive:H,backgroundColorOnHover:N,backgroundColorOnChecked:_,opacity:B,bordered:O,borderedTop:z,borderedBottom:V,borderedStart:F,borderedEnd:G,borderedHorizontal:U,borderedVertical:W,borderRadius:X,borderTopStartRadius:$,borderTopEndRadius:Z,borderBottomStartRadius:K,borderBottomEndRadius:Y,borderColor:q,borderColorOnActive:J,borderColorOnFocus:Q,borderColorOnChecked:j,borderColorOnHover:ee,borderStartColor:oe,borderEndColor:te,borderTopColor:re,borderBottomColor:ae,borderWidth:ne,borderVerticalWidth:se,borderHorizontalWidth:ie,borderStartWidth:le,borderEndWidth:pe,borderTopWidth:ce,borderBottomWidth:de,alignContent:be,alignItems:me,alignSelf:fe,flex:ue,flexDirection:ge,flexGrow:ye,flexShrink:he,flexWrap:xe,justifyContent:ve,flexBasis:we,display:Pe,zIndex:Te,overflow:Ce,overflowX:Se,overflowY:ke,position:Ae,spacing:Re,spacingHorizontal:Ee,spacingVertical:De,spacingBottom:Ie,spacingEnd:Le,spacingStart:Me,spacingTop:He,offset:Ne,offsetVertical:_e,offsetHorizontal:Be,offsetBottom:Oe,offsetEnd:ze,offsetStart:Ve,offsetTop:Fe,columnGap:Ge,rowGap:Ue,height:$e,minHeight:Je,maxHeight:oo,width:go,minWidth:yo,maxWidth:Rt,...Et},Dt){let It=c({className:e,color:r,colorChecked:a,fontFamily:i,fontSize:s,fontWeight:p,lineHeight:d,textTransform:u,textAlign:w,backgroundColor:C,backgroundColorOnActive:H,backgroundColorOnHover:N,backgroundColorOnChecked:_,opacity:B,bordered:O,borderedTop:z,borderedBottom:V,borderedStart:F,borderedEnd:G,borderedHorizontal:U,borderedVertical:W,borderRadius:X,borderTopStartRadius:$,borderTopEndRadius:Z,borderBottomStartRadius:K,borderBottomEndRadius:Y,borderColor:q,borderColorOnActive:J,borderColorOnFocus:Q,borderColorOnChecked:j,borderColorOnHover:ee,borderStartColor:oe,borderEndColor:te,borderTopColor:re,borderBottomColor:ae,borderWidth:ne,borderVerticalWidth:se,borderHorizontalWidth:ie,borderStartWidth:le,borderEndWidth:pe,borderTopWidth:ce,borderBottomWidth:de,alignContent:be,alignItems:me,alignSelf:fe,flex:ue,flexDirection:ge,flexGrow:ye,flexShrink:he,flexWrap:xe,justifyContent:ve,flexBasis:we,display:Pe,zIndex:Te,overflow:Ce,overflowX:Se,overflowY:ke,position:Ae,spacing:Re,spacingHorizontal:Ee,spacingVertical:De,spacingBottom:Ie,spacingEnd:Le,spacingStart:Me,spacingTop:He,offset:Ne,offsetVertical:_e,offsetHorizontal:Be,offsetBottom:Oe,offsetEnd:ze,offsetStart:Ve,offsetTop:Fe,columnGap:Ge,rowGap:Ue,height:$e,minHeight:Je,maxHeight:oo,width:go,minWidth:yo,maxWidth:Rt});return(0,Wo.jsx)(t?Xt:l,{className:It,ref:Dt,...Et})});var Zo=require("react");var Xo=require("react");var $o=require("react/jsx-runtime"),Zt=A(),D=(0,Xo.forwardRef)(function({asChild:e,className:t,elevation:r,backgroundColor:a=r?`elevation-${r}`:void 0,backgroundColorOnActive:n,backgroundColorOnHover:l,backgroundColorOnChecked:s,opacity:i,bordered:p,borderedTop:d,borderedBottom:u,borderedStart:w,borderedEnd:C,borderedHorizontal:H,borderedVertical:N,borderRadius:_,borderTopStartRadius:B,borderTopEndRadius:O,borderBottomStartRadius:z,borderBottomEndRadius:V,borderColor:F,borderColorOnActive:G,borderColorOnFocus:U,borderColorOnChecked:W,borderColorOnHover:X,borderStartColor:$,borderEndColor:Z,borderTopColor:K,borderBottomColor:Y,borderWidth:q,borderVerticalWidth:J,borderHorizontalWidth:Q,borderStartWidth:j,borderEndWidth:ee,borderTopWidth:oe,borderBottomWidth:te,alignContent:re,alignItems:ae,alignSelf:ne,flex:se,flexDirection:ie,flexGrow:le,flexShrink:pe,flexWrap:ce,justifyContent:de,flexBasis:be,display:me="flex",zIndex:fe,overflow:ue,overflowX:ge,overflowY:ye,position:he,spacing:xe,spacingHorizontal:ve,spacingVertical:we,spacingBottom:Pe,spacingEnd:Te,spacingStart:Ce,spacingTop:Se,offset:ke,offsetVertical:Ae,offsetHorizontal:Re,offsetBottom:Ee,offsetEnd:De,offsetStart:Ie,offsetTop:Le,columnGap:Me,rowGap:He,height:Ne,minHeight:_e,maxHeight:Be,width:Oe,minWidth:ze,maxWidth:Ve,...Fe},Ge){let Ue=c({elevation:r,backgroundColor:a,backgroundColorOnActive:n,backgroundColorOnHover:l,backgroundColorOnChecked:s,opacity:i,bordered:p,borderedTop:d,borderedBottom:u,borderedStart:w,borderedEnd:C,borderedHorizontal:H,borderedVertical:N,borderRadius:_,borderTopStartRadius:B,borderTopEndRadius:O,borderBottomStartRadius:z,borderBottomEndRadius:V,borderColor:F,borderColorOnActive:G,borderColorOnFocus:U,borderColorOnChecked:W,borderColorOnHover:X,borderStartColor:$,borderEndColor:Z,borderTopColor:K,borderBottomColor:Y,borderWidth:q,borderVerticalWidth:J,borderHorizontalWidth:Q,borderStartWidth:j,borderEndWidth:ee,borderTopWidth:oe,borderBottomWidth:te,alignContent:re,alignItems:ae,alignSelf:ne,flex:se,flexDirection:ie,flexGrow:le,flexShrink:pe,flexWrap:ce,justifyContent:de,flexBasis:be,display:me,zIndex:fe,overflow:ue,overflowX:ge,overflowY:ye,position:he,spacing:xe,spacingHorizontal:ve,spacingVertical:we,spacingBottom:Pe,spacingEnd:Te,spacingStart:Ce,spacingTop:Se,offset:ke,offsetVertical:Ae,offsetHorizontal:Re,offsetBottom:Ee,offsetEnd:De,offsetStart:Ie,offsetTop:Le,columnGap:Me,rowGap:He,height:Ne,minHeight:_e,maxHeight:Be,width:Oe,minWidth:ze,maxWidth:Ve,className:t});return(0,$o.jsx)(e?Zt:"div",{className:Ue,ref:Ge,...Fe})});var Ko=require("react/jsx-runtime"),S=(0,Zo.forwardRef)(function({gap:e,...t},r){return(0,Ko.jsx)(D,{ref:r,flexDirection:"column",columnGap:e,rowGap:e,...t})});var R=require("react/jsx-runtime");function Yo({label:o,children:e,onClick:t,open:r,spacingHorizontal:a="6",_content:n,...l}){return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsxs)(P,{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",spacingVertical:"6",spacingHorizontal:a,backgroundColorOnHover:"secondary",borderRadius:"md",width:"full",onClick:t,...l,children:[(0,R.jsx)(f,{variant:"title4",children:o}),(0,R.jsx)(v,{name:r?"chevronDown":"chevronUp",size:"s"})]}),(0,R.jsx)(S,{overflow:"hidden",maxHeight:r?"full":"none",className:"transition-[max-height] duration-500 ease-in-out",spacingHorizontal:a,...n,children:(0,R.jsx)(S,{minHeight:"min",children:e})})]})}var qo={display:"inline-flex",alignItems:"center",justifyContent:"center",overflow:"hidden",backgroundColor:"primary",contentFit:"cover"},vo={base:{display:"inline-flex",alignItems:"center",justifyContent:"center",borderRadius:"full",minWidth:"fit"},variant:{accent:{color:"on-color",backgroundColor:"accent",borderColor:"accent",bordered:!0},"accent-outline":{color:"accent",backgroundColor:"transparent",borderColor:"accent",bordered:!0},"accent-ghost":{color:"accent"},"accent-wash":{color:"accent",backgroundColor:"accent-wash",borderColor:"accent",bordered:!0},brand:{color:"on-color",backgroundColor:"brand",borderColor:"brand",bordered:!0},"brand-outline":{color:"brand",backgroundColor:"transparent",borderColor:"brand",bordered:!0},"brand-ghost":{color:"brand"},"brand-wash":{color:"brand",backgroundColor:"brand-wash",borderColor:"brand",bordered:!0},positive:{color:"on-color",backgroundColor:"positive",borderColor:"positive",bordered:!0},"positive-outline":{color:"positive",backgroundColor:"transparent",borderColor:"positive",bordered:!0},"positive-ghost":{color:"positive"},"positive-wash":{color:"positive",backgroundColor:"positive-wash",borderColor:"positive",bordered:!0},alert:{color:"on-color",backgroundColor:"alert",borderColor:"alert",bordered:!0},"alert-outline":{color:"alert",backgroundColor:"transparent",borderColor:"alert",bordered:!0},"alert-ghost":{color:"alert"},"alert-wash":{color:"alert",backgroundColor:"alert-wash",borderColor:"alert",bordered:!0},warning:{color:"on-color",backgroundColor:"warning",borderColor:"warning",bordered:!0},"warning-outline":{color:"warning",backgroundColor:"transparent",borderColor:"warning",bordered:!0},"warning-ghost":{color:"warning"},"warning-wash":{color:"warning",backgroundColor:"warning-wash",borderColor:"warning",bordered:!0},"primary-outline":{color:"primary",borderColor:"muted",bordered:!0},"primary-ghost":{color:"primary"},secondary:{backgroundColor:"secondary",color:"primary"}},size:{s:{variant:"label1",spacingHorizontal:"6",spacingVertical:"4",columnGap:"4"},m:{variant:"headline1",spacingHorizontal:"7",spacingVertical:"5",columnGap:"4"},l:{variant:"headline1",spacingHorizontal:"8",spacingVertical:"6",columnGap:"4"}}};function Ze({variant:o="accent",size:e="s"}){let{color:t,...r}=vo.variant[o],{variant:a,...n}=vo.size[e];return{pressable:{...vo.base,...r,...n},text:{color:t,variant:a,textAlign:"center"},icon:{color:t,size:"s"}}}var Qo=require("react/jsx-runtime");function Jo({size:o,shape:e,src:t,alt:r,...a}){let n=c({...qo,avatarSize:o,borderRadius:e});return(0,Qo.jsx)("img",{src:t,alt:r,className:n,...a})}var jo=require("react");var Ke=require("react/jsx-runtime"),ro=(0,jo.forwardRef)(function({variant:e="accent",size:t,startIcon:r,endIcon:a,children:n,...l},s){let i=Ze({variant:e,size:t}),p=r?(0,Ke.jsx)(v,{name:r,...i.icon}):null,d=a?(0,Ke.jsx)(v,{name:a,...i.icon}):null;return(0,Ke.jsxs)(P,{...i.pressable,ref:s,...l,children:[p,(0,Ke.jsx)(f,{...i.text,children:n}),d]})});var Ye=require("react/jsx-runtime"),et={accent:"on-color",secondary:"primary"},Kt={accent:"on-color",secondary:"tertiary"};function ot({children:o,variant:e,startIcon:t,startContent:r=t?(0,Ye.jsx)(v,{name:t,size:"s",color:et[e]}):null,endIcon:a,endContent:n=a?(0,Ye.jsx)(v,{name:a,size:"s",color:et[e]}):null}){return(0,Ye.jsxs)(P,{display:"inline-flex",flexDirection:"row",columnGap:"4",borderRadius:"full",backgroundColor:e,alignItems:"center",spacingVertical:"4",spacingHorizontal:"5",children:[r,(0,Ye.jsx)(f,{variant:"label2",color:Kt[e],children:o}),n]})}var m=require("@ariakit/react");var tt=require("react");var rt=require("react/jsx-runtime"),ao=(0,tt.forwardRef)(function({gap:e,...t},r){return(0,rt.jsx)(D,{ref:r,flexDirection:"row",rowGap:e,columnGap:e,...t})});var Qe=require("react/jsx-runtime");function at({children:o,leading:e,trailing:t}){return(0,Qe.jsxs)(ao,{children:[e,(0,Qe.jsx)(f,{variant:"headline1",asChild:!0,children:(0,Qe.jsx)(m.PopoverHeading,{children:o})}),t]})}var no=m.Popover,so=m.PopoverArrow,nt=m.PopoverAnchor,st=m.PopoverDescription,it=m.PopoverDismiss,io=m.PopoverProvider,lo=m.PopoverDisclosure,lt=m.PopoverDisclosureArrow;var pt=io;var po=require("react");var ct=require("react/jsx-runtime"),co=(0,po.forwardRef)(function({children:e,onClick:t,...r},a){let n=(0,m.usePopoverStore)(),l=(0,po.useCallback)(s=>{s.preventDefault(),t?.(()=>n.setOpen(!1))},[t,n]);return(0,ct.jsx)(P,{display:"flex",flexDirection:"row",alignItems:"flex-start",spacingVertical:"6",spacingHorizontal:"8",columnGap:"5",borderColor:"muted",className:"hover:bg-gray-2",onClick:t?l:void 0,ref:a,...r,children:e})});var I=require("react/jsx-runtime");function dt({title:o,description:e,_title:t,_description:r,startIcon:a,endIcon:n,...l}){return(0,I.jsxs)(co,{...l,children:[a&&(0,I.jsx)(v,{name:a,size:"s"}),(0,I.jsxs)(S,{gap:"3",alignItems:"flex-start",children:[o&&(0,I.jsx)(f,{variant:"headline1",...t,children:o}),e&&(0,I.jsx)(f,{variant:"label2",color:"muted",...r,children:e})]}),n&&(0,I.jsx)(v,{name:n,size:"s"})]})}var bt=require("react");var je=require("react/jsx-runtime"),mt=(0,bt.forwardRef)(function({children:e,className:t,overflow:r="scroll",...a},n){return(0,je.jsx)(S,{borderRadius:"lg",elevation:"3",className:h("max-h-[312px] min-w-[220px]",t),overflow:r,spacingVertical:"4",asChild:!0,children:(0,je.jsxs)(no,{preventBodyScroll:!0,...a,ref:n,children:[(0,je.jsx)(so,{className:"!fill-elevation-3 !stroke-muted !stroke-1"}),e]})})});var wo=require("react/jsx-runtime");function ft({children:o,variant:e,size:t,...r}){let a=Ze({variant:e,size:t}),n=e?a.pressable:{display:"flex",flexDirection:"row",alignItems:"center",columnGap:"6",justifyContent:"space-between"};return(0,wo.jsx)(P,{...n,...r,asChild:!0,children:(0,wo.jsx)(lo,{children:o})})}var ut=require("react");var Po=require("react/jsx-runtime"),Yt={s:"w-[36px] h-[36px]",m:"w-[48px] h-[48px]",l:"w-[64px] h-[64px]"},bo=(0,ut.forwardRef)(function({variant:e="accent",size:t="s",name:r,className:a,color:n,...l},s){let i=Ze({variant:e,size:t});return(0,Po.jsx)(P,{...i.pressable,spacingHorizontal:i.pressable.spacingVertical,ref:s,className:h("leading-[0px]",Yt[t],a),...l,children:(0,Po.jsx)(v,{name:r,...i.icon,color:n})})});var qe=require("@ariakit/react");var L=require("react/jsx-runtime");function gt(o){return(0,qe.useDialogStore)({animated:!0,...o})}function yt({children:o,handleClose:e}){return(0,L.jsxs)(ao,{alignItems:"center",justifyContent:"space-between",children:[(0,L.jsx)(f,{variant:"headline1",children:o}),(0,L.jsx)(ro,{variant:"accent-ghost",size:"m",spacingEnd:"none",spacingVertical:"none",onClick:e,children:"close"})]})}function ht({className:o,...e}){return(0,L.jsx)(S,{borderRadius:"md",elevation:"3",position:"fixed",height:"fit",zIndex:"50",className:h("inset-8 top-[250px] mx-auto w-[600px] origin-center scale-95 opacity-0 transition duration-150 data-[enter]:scale-100 data-[enter]:opacity-100",o),spacing:"8",asChild:!0,overflow:"hidden",children:(0,L.jsx)(qe.Dialog,{backdrop:(0,L.jsx)("div",{className:"data-[enter]:bg-overlay opacity-0 backdrop-blur-0 transition duration-150 data-[enter]:opacity-100 data-[enter]:backdrop-blur-sm"}),...e})})}var xt=qe.DialogDismiss;var We=require("react/jsx-runtime");function vt({className:o,...e}){return(0,We.jsxs)("div",{role:"status",className:h("self-center",o),...e,style:{width:8,maxWidth:8,height:8,maxHeight:8},children:[(0,We.jsxs)("svg",{"aria-hidden":"true",className:"text-gray-3 fill-accent h-8 w-8 animate-spin",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,We.jsx)("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),(0,We.jsx)("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]}),(0,We.jsx)("span",{className:"sr-only",children:"Loading..."})]})}var M=require("react");var g=require("react/jsx-runtime"),qt=(0,M.forwardRef)(function({children:e,className:t,display:r="table",overflow:a="hidden",borderColor:n="muted",elevation:l="1",borderRadius:s="md",...i},p){return(0,g.jsx)(D,{asChild:!0,borderColor:n,elevation:l,borderRadius:s,className:t,overflow:a,display:r,...i,children:(0,g.jsx)("table",{ref:p,children:e})})}),Jt=(0,M.forwardRef)(function({children:e,display:t="table-row",...r},a){return(0,g.jsx)(D,{asChild:!0,display:t,...r,children:(0,g.jsx)("tr",{ref:a,children:e})})}),Qt=(0,M.forwardRef)(function({children:e,display:t="table-header-group",...r},a){return(0,g.jsx)(D,{asChild:!0,display:t,...r,children:(0,g.jsx)("thead",{ref:a,children:e})})}),jt=(0,M.forwardRef)(function({children:e,display:t="table-row-group",...r},a){return(0,g.jsx)(D,{asChild:!0,display:t,...r,children:(0,g.jsx)("tbody",{ref:a,children:e})})}),er=(0,M.forwardRef)(function({asHeaderCell:e,className:t,display:r="table-cell",spacing:a="5",borderBottomColor:n="muted",color:l="primary",...s},i){let p=c({textAlign:"start",className:t});return(0,g.jsx)(f,{asChild:!0,variant:e?"headline1":"body1",color:l,display:r,spacing:a,borderBottomColor:n,borderedBottom:!0,className:p,children:(0,g.jsx)(e?"th":"td",{scope:e==="row"?"row":e?"column":void 0,...s,ref:i})})});T.Root=qt;T.Row=Jt;T.Header=Qt;T.Body=jt;T.Cell=er;function T({data:o,columns:e}){return(0,g.jsxs)(T.Root,{children:[(0,g.jsx)(T.Header,{children:(0,g.jsx)(T.Row,{children:e.map((t,r)=>(0,g.jsx)(T.Cell,{asHeaderCell:"column",children:t.title},r))})}),(0,g.jsx)(T.Body,{children:o.map((t,r)=>(0,g.jsx)(T.Row,{children:e.map((a,n)=>{let l=t[a.dataIndex];return(0,g.jsx)(T.Cell,{children:a.render?a.render(l,t,r):(0,M.isValidElement)(l)?l:String(l)},n)})},r))})]})}var k=require("@ariakit/react"),To=require("react");var E=require("react/jsx-runtime"),or=A();function wt(o){return(0,E.jsx)(k.TabProvider,{...o})}var Pt=(0,To.forwardRef)(function({className:e,...t},r){let a=c({display:"flex",flexDirection:"row",columnGap:"7",className:e});return(0,E.jsx)(k.TabList,{ref:r,...t,className:a})}),Tt=function({asChild:e,label:t,value:r,startIcon:a}){let n=e?or:"a",l=c({}),s=(0,k.useTabContext)();if(!s)throw new Error("Tab must be wrapped in a Tabs component");let i=s?.useState().activeId===r,p=i?"accent":"primary";return(0,E.jsx)(k.Tab,{id:r,className:l,render:(0,E.jsx)(n,{children:(0,E.jsxs)(P,{borderColor:i?"accent":"transparent",borderBottomWidth:"thick",spacingVertical:"6",flexDirection:"row",columnGap:"8",children:[a?(0,E.jsx)(v,{name:a,color:p,size:"m"}):null,(0,E.jsx)(f,{color:p,variant:"headline1",children:t})]})})})},Ct=(0,To.forwardRef)(function(e,t){let r=(0,k.useTabContext)();if(!r)throw new Error("TabPanel must be wrapped in a Tabs component");let a=r.useState("selectedId");return(0,E.jsx)(k.TabPanel,{ref:t,tabId:a,...e})});var St=require("react/jsx-runtime");function mo({className:o,disabled:e,backgroundColor:t=e?"secondary":"primary",borderColor:r="tertiary",borderWidth:a="thin",borderRadius:n="md",color:l="primary",placeholderColor:s="tertiary",spacingVertical:i="5",spacingHorizontal:p="6",fontSize:d="body1",...u}){return(0,St.jsx)("input",{type:"text","data-1p-ignore":!0,className:h(c({backgroundColor:t,borderColor:r,borderWidth:a,borderRadius:n,spacingVertical:i,spacingHorizontal:p,width:"full",fontSize:d,fontWeight:d,lineHeight:d,fontFamily:d,color:l,placeholderColor:s}),o),disabled:e,...u})}var uo=require("react/jsx-runtime");function fo({children:o,required:e}){return(0,uo.jsxs)(f,{variant:"caption2",children:[o,e&&(0,uo.jsx)(f,{variant:"caption2",as:"span",color:"alert",spacingStart:"2",children:"*"})]})}var eo=require("react/jsx-runtime");function kt({label:o,required:e,...t}){return(0,eo.jsxs)(S,{gap:"4",width:"full",children:[(0,eo.jsx)(fo,{required:e,children:o}),(0,eo.jsx)(mo,{required:e,...t})]})}var Xe=require("react-toastify");var Co=require("react/jsx-runtime"),tr=c({elevation:"3",borderRadius:"md",spacingVertical:"6",spacingHorizontal:"5",display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",columnGap:"5",overflow:"hidden",position:"relative",className:"cursor-pointer"}),rr=c({fontSize:"label2",lineHeight:"label2",fontWeight:"label2"}),ar=c({backgroundColor:"positive"}),nr=c({backgroundColor:"alert"}),sr=c({backgroundColor:"accent"}),ir=c({backgroundColor:"warning"}),lr=c({backgroundColor:"elevation-3-inverse"}),pr=c({backgroundColor:"elevation-3-inverse"}),cr=c({backgroundColor:"positive-wash",color:"positive"}),dr=c({backgroundColor:"alert-wash",color:"alert"}),br=c({backgroundColor:"accent-wash",color:"accent"}),mr=c({backgroundColor:"warning-wash",color:"warning"}),fr=c({backgroundColor:"elevation-3-inverse",color:"on-color"}),ur=c({backgroundColor:"elevation-3-inverse",color:"on-color"}),gr=o=>{let{type:e="default"}=o??{},t={success:cr,error:dr,info:br,warning:mr,default:fr,dark:ur}[e];return h(tr,t)};function yr(o){let{type:e="default",defaultClassName:t=""}=o??{},r={success:ar,error:nr,info:sr,warning:ir,default:lr,dark:pr}[e],a=t.replace(/Toastify__progress-bar-theme--light/,"");return h(a,r)}function hr({closeToast:o,type:e}){let t={success:"positive",error:"alert",info:"accent",warning:"warning",default:"on-color",dark:"white"}[e];return(0,Co.jsx)(bo,{name:"close",size:"s",variant:"accent-ghost",color:t,onClick:o})}function At(o){return(0,Co.jsx)(Xe.ToastContainer,{toastClassName:gr,bodyClassName:rr,progressClassName:yr,transition:Xe.Slide,closeButton:hr,...o})}0&&(module.exports={Accordion,Avatar,Button,Chip,Dropdown,DropdownItem,DropdownItemPressable,DropdownItems,DropdownTrigger,IconButton,Modal,ModalDismiss,ModalHeader,Popover,PopoverAnchor,PopoverArrow,PopoverDescription,PopoverDisclosure,PopoverDisclosureArrow,PopoverDismiss,PopoverHeading,PopoverProvider,Spinner,Tab,TabList,TabPanel,Table,Tabs,TextInput,TextInputGroup,TextInputLabel,ToastContainer,toast,useModalStore,usePopoverStore});
|
1
|
+
"use strict";var Lt=Object.create;var to=Object.defineProperty;var Mt=Object.getOwnPropertyDescriptor;var Ht=Object.getOwnPropertyNames;var Nt=Object.getPrototypeOf,_t=Object.prototype.hasOwnProperty;var Bt=(o,e)=>{for(var t in e)to(o,t,{get:e[t],enumerable:!0})},So=(o,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of Ht(e))!_t.call(o,a)&&a!==t&&to(o,a,{get:()=>e[a],enumerable:!(r=Mt(e,a))||r.enumerable});return o};var Ot=(o,e,t)=>(t=o!=null?Lt(Nt(o)):{},So(e||!o||!o.__esModule?to(t,"default",{value:o,enumerable:!0}):t,o)),zt=o=>So(to({},"__esModule",{value:!0}),o);var xr={};Bt(xr,{Accordion:()=>Yo,Avatar:()=>Jo,Button:()=>ro,Chip:()=>ot,Dropdown:()=>pt,DropdownItem:()=>dt,DropdownItemPressable:()=>co,DropdownItems:()=>mt,DropdownTrigger:()=>ft,IconButton:()=>bo,Modal:()=>ht,ModalDismiss:()=>xt,ModalHeader:()=>yt,Popover:()=>no,PopoverAnchor:()=>nt,PopoverArrow:()=>so,PopoverDescription:()=>st,PopoverDisclosure:()=>lo,PopoverDisclosureArrow:()=>lt,PopoverDismiss:()=>it,PopoverHeading:()=>at,PopoverProvider:()=>io,Spinner:()=>vt,Tab:()=>Tt,TabList:()=>Pt,TabPanel:()=>Ct,Table:()=>T,Tabs:()=>wt,TextInput:()=>mo,TextInputGroup:()=>kt,TextInputLabel:()=>fo,ToastContainer:()=>At,toast:()=>Xe.toast,useModalStore:()=>gt,usePopoverStore:()=>m.usePopoverStore});module.exports=zt(xr);var zo=require("react");var x=require("@yahoo/uds/fixtures"),_o=Ot(require("clsx"),1),Bo=require("tailwind-merge");function ho(o){return typeof o=="boolean"?`${o}`:o===0?"0":o}var b="uds",Tr=`${b}-spectrum-color`,Cr=`${b}-font`,Sr=`${b}-icon-size`,kr=`${b}-avatar-size`,Ar=`${b}-border-radius`,Rr=`${b}-border-width`,Er=`${b}-spacing`,Ir=`${b}-font-size`,Dr=`${b}-line-height`,Lr=`${b}-font-weight`,Mr=`${b}-text-transform`,ko=`${b}-color-mode-dark`,Ao=`${b}-color-mode-light`,Ro=`${b}-scale-mode-xsmall`,Eo=`${b}-scale-mode-small`,Io=`${b}-scale-mode-medium`,Do=`${b}-scale-mode-large`,Lo=`${b}-scale-mode-xlarge`,Mo=`${b}-scale-mode-xxlarge`,Ho=`${b}-scale-mode-xxxlarge`;var Hr=`--${b}-font-icons`,Nr=`--${b}-font-sans`,_r=`--${b}-font-sans-beta`,Br=`--${b}-font-sans-condensed`,Or=`--${b}-font-serif-display`,zr=`--${b}-font-serif-text`;var No={color:{accent:"text-accent",alert:"text-alert",black:"text-black",brand:"text-brand",positive:"text-positive",warning:"text-warning",white:"text-white",transparent:"text-transparent",muted:"text-muted","on-color":"text-on-color",primary:"text-primary",secondary:"text-secondary",tertiary:"text-tertiary"},colorChecked:{accent:"data-[state=checked]:text-accent",alert:"data-[state=checked]:text-alert",black:"data-[state=checked]:text-black",brand:"data-[state=checked]:text-brand",positive:"data-[state=checked]:text-positive",warning:"data-[state=checked]:text-warning",white:"data-[state=checked]:text-white",transparent:"data-[state=checked]:text-transparent",primary:"data-[state=checked]:text-primary",secondary:"data-[state=checked]:text-secondary",muted:"data-[state=checked]:text-muted","on-color":"data-[state=checked]:text-on-color",tertiary:"data-[state=checked]:text-tertiary"},placeholderColor:{accent:"placeholder:text-accent",alert:"placeholder:text-alert",black:"placeholder:text-black",brand:"placeholder:text-brand",positive:"placeholder:text-positive",warning:"placeholder:text-warning",white:"placeholder:text-white",transparent:"placeholder:text-transparent",muted:"placeholder:text-muted","on-color":"placeholder:text-on-color",primary:"placeholder:text-primary",secondary:"placeholder:text-secondary",tertiary:"placeholder:text-tertiary"},fontFamily:{icons:"font-icons",sans:"font-sans","sans-beta":"font-sans-beta","sans-condensed":"font-sans-condensed","serif-text":"font-serif-text","serif-display":"font-serif-display",display1:"font-display1",display2:"font-display2",display3:"font-display3",title1:"font-title1",title2:"font-title2",title3:"font-title3",title4:"font-title4",headline1:"font-headline1",body1:"font-body1",label1:"font-label1",label2:"font-label2",caption1:"font-caption1",caption2:"font-caption2",legal1:"font-legal1"},fontSize:{display1:"font-size-display1",display2:"font-size-display2",display3:"font-size-display3",title1:"font-size-title1",title2:"font-size-title2",title3:"font-size-title3",title4:"font-size-title4",headline1:"font-size-headline1",body1:"font-size-body1",label1:"font-size-label1",label2:"font-size-label2",caption1:"font-size-caption1",caption2:"font-size-caption2",legal1:"font-size-legal1"},fontWeight:{thin:"font-weight-thin",extralight:"font-weight-extralight",light:"font-weight-light",regular:"font-weight-regular",medium:"font-weight-medium",semibold:"font-weight-semibold",bold:"font-weight-bold",extrabold:"font-weight-extrabold",black:"font-weight-black",display1:"font-weight-display1",display2:"font-weight-display2",display3:"font-weight-display3",title1:"font-weight-title1",title2:"font-weight-title2",title3:"font-weight-title3",title4:"font-weight-title4",headline1:"font-weight-headline1",body1:"font-weight-body1",label1:"font-weight-label1",label2:"font-weight-label2",caption1:"font-weight-caption1",caption2:"font-weight-caption2",legal1:"font-weight-legal1"},lineHeight:{display1:"leading-display1",display2:"leading-display2",display3:"leading-display3",title1:"leading-title1",title2:"leading-title2",title3:"leading-title3",title4:"leading-title4",headline1:"leading-headline1",body1:"leading-body1",label1:"leading-label1",label2:"leading-label2",caption1:"leading-caption1",caption2:"leading-caption2",legal1:"leading-legal1"},textAlign:{center:"text-center",justify:"text-justify",start:"text-start",end:"text-end"},textTransform:{display1:"case-display1",display2:"case-display2",display3:"case-display3",title1:"case-title1",title2:"case-title2",title3:"case-title3",title4:"case-title4",headline1:"case-headline1",body1:"case-body1",label1:"case-label1",label2:"case-label2",caption1:"case-caption1",caption2:"case-caption2",legal1:"case-legal1",none:"normal-case",uppercase:"uppercase",lowercase:"lowercase",capitalize:"capitalize"},spacing:{none:"p-[0px]",1:"p-1",2:"p-2",3:"p-3",4:"p-4",5:"p-5",6:"p-6",7:"p-7",8:"p-8",9:"p-9",10:"p-10",11:"p-11",12:"p-12",13:"p-13",14:"p-14"},spacingHorizontal:{none:"px-none",1:"px-1",2:"px-2",3:"px-3",4:"px-4",5:"px-5",6:"px-6",7:"px-7",8:"px-8",9:"px-9",10:"px-10",11:"px-11",12:"px-12",13:"px-13",14:"px-14"},spacingVertical:{none:"py-none",1:"py-1",2:"py-2",3:"py-3",4:"py-4",5:"py-5",6:"py-6",7:"py-7",8:"py-8",9:"py-9",10:"py-10",11:"py-11",12:"py-12",13:"py-13",14:"py-14"},spacingBottom:{none:"pb-none",1:"pb-1",2:"pb-2",3:"pb-3",4:"pb-4",5:"pb-5",6:"pb-6",7:"pb-7",8:"pb-8",9:"pb-9",10:"pb-10",11:"pb-11",12:"pb-12",13:"pb-13",14:"pb-14"},spacingEnd:{none:"pe-none",1:"pe-1",2:"pe-2",3:"pe-3",4:"pe-4",5:"pe-5",6:"pe-6",7:"pe-7",8:"pe-8",9:"pe-9",10:"pe-10",11:"pe-11",12:"pe-12",13:"pe-13",14:"pe-14"},spacingStart:{none:"ps-none",1:"ps-1",2:"ps-2",3:"ps-3",4:"ps-4",5:"ps-5",6:"ps-6",7:"ps-7",8:"ps-8",9:"ps-9",10:"ps-10",11:"ps-11",12:"ps-12",13:"ps-13",14:"ps-14"},spacingTop:{none:"pt-none",1:"pt-1",2:"pt-2",3:"pt-3",4:"pt-4",5:"pt-5",6:"pt-6",7:"pt-7",8:"pt-8",9:"pt-9",10:"pt-10",11:"pt-11",12:"pt-12",13:"pt-13",14:"pt-14"},offset:{none:"-m-none",1:"-m-1",2:"-m-2",3:"-m-3",4:"-m-4",5:"-m-5",6:"-m-6",7:"-m-7",8:"-m-8",9:"-m-9",10:"-m-10",11:"-m-11",12:"-m-12",13:"-m-13",14:"-m-14"},offsetVertical:{none:"-my-none",1:"-my-1",2:"-my-2",3:"-my-3",4:"-my-4",5:"-my-5",6:"-my-6",7:"-my-7",8:"-my-8",9:"-my-9",10:"-my-10",11:"-my-11",12:"-my-12",13:"-my-13",14:"-my-14"},offsetHorizontal:{none:"-mx-none",1:"-mx-1",2:"-mx-2",3:"-mx-3",4:"-mx-4",5:"-mx-5",6:"-mx-6",7:"-mx-7",8:"-mx-8",9:"-mx-9",10:"-mx-10",11:"-mx-11",12:"-mx-12",13:"-mx-13",14:"-mx-14"},offsetBottom:{none:"-mb-none",1:"-mb-1",2:"-mb-2",3:"-mb-3",4:"-mb-4",5:"-mb-5",6:"-mb-6",7:"-mb-7",8:"-mb-8",9:"-mb-9",10:"-mb-10",11:"-mb-11",12:"-mb-12",13:"-mb-13",14:"-mb-14"},offsetEnd:{none:"-me-none",1:"-me-1",2:"-me-2",3:"-me-3",4:"-me-4",5:"-me-5",6:"-me-6",7:"-me-7",8:"-me-8",9:"-me-9",10:"-me-10",11:"-me-11",12:"-me-12",13:"-me-13",14:"-me-14"},offsetStart:{none:"-ms-none",1:"-ms-1",2:"-ms-2",3:"-ms-3",4:"-ms-4",5:"-ms-5",6:"-ms-6",7:"-ms-7",8:"-ms-8",9:"-ms-9",10:"-ms-10",11:"-ms-11",12:"-ms-12",13:"-ms-13",14:"-ms-14"},offsetTop:{none:"-mt-none",1:"-mt-1",2:"-mt-2",3:"-mt-3",4:"-mt-4",5:"-mt-5",6:"-mt-6",7:"-mt-7",8:"-mt-8",9:"-mt-9",10:"-mt-10",11:"-mt-11",12:"-mt-12",13:"-mt-13",14:"-mt-14"},columnGap:{none:"gap-x-none",1:"gap-x-1",2:"gap-x-2",3:"gap-x-3",4:"gap-x-4",5:"gap-x-5",6:"gap-x-6",7:"gap-x-7",8:"gap-x-8",9:"gap-x-9",10:"gap-x-10",11:"gap-x-11",12:"gap-x-12",13:"gap-x-13",14:"gap-x-14"},rowGap:{none:"gap-y-none",1:"gap-y-1",2:"gap-y-2",3:"gap-y-3",4:"gap-y-4",5:"gap-y-5",6:"gap-y-6",7:"gap-y-7",8:"gap-y-8",9:"gap-y-9",10:"gap-y-10",11:"gap-y-11",12:"gap-y-12",13:"gap-y-13",14:"gap-y-14"},backgroundColor:{accent:"bg-accent",alert:"bg-alert",black:"bg-black",brand:"bg-brand",positive:"bg-positive",warning:"bg-warning",white:"bg-white","accent-wash":"bg-accent-wash","alert-wash":"bg-alert-wash","brand-wash":"bg-brand-wash","elevation-1":"bg-elevation-1","elevation-2":"bg-elevation-2","elevation-3":"bg-elevation-3","elevation-3-inverse":"bg-elevation-3-inverse",overlay:"bg-overlay","positive-wash":"bg-positive-wash",primary:"bg-primary",secondary:"bg-secondary",transparent:"bg-transparent","warning-wash":"bg-warning-wash"},backgroundColorOnActive:{accent:"active:bg-accent",alert:"active:bg-alert",black:"active:bg-black",brand:"active:bg-brand",positive:"active:bg-positive",warning:"active:bg-warning",white:"active:bg-white","accent-wash":"active:bg-accent-wash","alert-wash":"active:bg-alert-wash","brand-wash":"active:bg-brand-wash","elevation-1":"active:bg-elevation-1","elevation-2":"active:bg-elevation-2","elevation-3":"active:bg-elevation-3","elevation-3-inverse":"active:bg-elevation-3-inverse",overlay:"active:bg-overlay","positive-wash":"active:bg-positive-wash",primary:"active:bg-primary",secondary:"active:bg-secondary",transparent:"active:bg-transparent","warning-wash":"active:bg-warning-wash"},backgroundColorOnHover:{accent:"hover:bg-accent/80",alert:"hover:bg-alert/80",black:"hover:bg-black/80",brand:"hover:bg-brand/80",positive:"hover:bg-positive/80",warning:"hover:bg-warning/80",white:"hover:bg-white/80","accent-wash":"hover:bg-accent-wash/80","alert-wash":"hover:bg-alert-wash/80","brand-wash":"hover:bg-brand-wash/80","elevation-1":"hover:bg-elevation-1/80","elevation-2":"hover:bg-elevation-2/80","elevation-3":"hover:bg-elevation-3/80","elevation-3-inverse":"hover:bg-elevation-3-inverse/80",overlay:"hover:bg-overlay/80","positive-wash":"hover:bg-positive-wash/80",primary:"hover:bg-primary/80",secondary:"hover:bg-secondary/80",transparent:"hover:bg-transparent/80","warning-wash":"hover:bg-warning-wash/80"},backgroundColorOnChecked:{accent:"data-[state=checked]:bg-accent",alert:"data-[state=checked]:bg-alert",black:"data-[state=checked]:bg-black",brand:"data-[state=checked]:bg-brand",positive:"data-[state=checked]:bg-positive",warning:"data-[state=checked]:bg-warning",white:"data-[state=checked]:bg-white","accent-wash":"data-[state=checked]:bg-accent-wash","alert-wash":"data-[state=checked]:bg-alert-wash","brand-wash":"data-[state=checked]:bg-brand-wash","elevation-1":"data-[state=checked]:bg-elevation-1","elevation-2":"data-[state=checked]:bg-elevation-2","elevation-3":"data-[state=checked]:bg-elevation-3","elevation-3-inverse":"data-[state=checked]:bg-elevation-3-inverse",overlay:"data-[state=checked]:bg-overlay","positive-wash":"data-[state=checked]:bg-positive-wash",primary:"data-[state=checked]:bg-primary",secondary:"data-[state=checked]:bg-secondary",transparent:"data-[state=checked]:bg-transparent","warning-wash":"data-[state=checked]:bg-warning-wash"},backgroundColorOnFocus:{accent:"focus:bg-accent",alert:"focus:bg-alert",black:"focus:bg-black",brand:"focus:bg-brand",positive:"focus:bg-positive",warning:"focus:bg-warning",white:"focus:bg-white","accent-wash":"focus:bg-accent-wash","alert-wash":"focus:bg-alert-wash","brand-wash":"focus:bg-brand-wash","elevation-1":"focus:bg-elevation-1","elevation-2":"focus:bg-elevation-2","elevation-3":"focus:bg-elevation-3","elevation-3-inverse":"focus:bg-elevation-3-inverse",overlay:"focus:bg-overlay","positive-wash":"focus:bg-positive-wash",primary:"focus:bg-primary",secondary:"focus:bg-secondary",transparent:"focus:bg-transparent","warning-wash":"focus:bg-warning-wash"},elevation:{1:"bg-elevation-1 z-30 shadow-1",2:"bg-elevation-2 z-40 shadow-2",3:"bg-elevation-3 z-50 shadow-3"},opacity:{0:"opacity-0",5:"opacity-5",10:"opacity-10",20:"opacity-20",25:"opacity-25",30:"opacity-30",40:"opacity-40",50:"opacity-50",60:"opacity-60",70:"opacity-70",75:"opacity-75",80:"opacity-80",90:"opacity-90",95:"opacity-95",100:"opacity-100"},borderColor:{accent:"border-accent",alert:"border-alert",black:"border-black",brand:"border-brand",positive:"border-positive",warning:"border-warning",white:"border-white",transparent:"border-transparent",muted:"border-muted",primary:"border-primary",secondary:"border-secondary",tertiary:"border-tertiary"},borderColorOnActive:{accent:"active:border-accent",alert:"active:border-alert",black:"active:border-black",brand:"active:border-brand",positive:"active:border-positive",warning:"active:border-warning",white:"active:border-white",transparent:"active:border-transparent",muted:"active:border-muted",primary:"active:border-primary",secondary:"active:border-secondary",tertiary:"active:border-tertiary"},borderColorOnFocus:{accent:"focus:border-accent",alert:"focus:border-alert",black:"focus:border-black",brand:"focus:border-brand",positive:"focus:border-positive",warning:"focus:border-warning",white:"focus:border-white",transparent:"focus:border-transparent",muted:"focus:border-muted",primary:"focus:border-primary",secondary:"focus:border-secondary",tertiary:"focus:border-tertiary"},borderColorOnHover:{accent:"hover:border-accent",alert:"hover:border-alert",black:"hover:border-black",brand:"hover:border-brand",positive:"hover:border-positive",warning:"hover:border-warning",white:"hover:border-white",transparent:"hover:border-transparent",muted:"hover:border-muted",primary:"hover:border-primary",secondary:"hover:border-secondary",tertiary:"hover:border-tertiary"},borderColorOnChecked:{accent:"data-[state=checked]:border-accent",alert:"data-[state=checked]:border-alert",black:"data-[state=checked]:border-black",brand:"data-[state=checked]:border-brand",positive:"data-[state=checked]:border-positive",warning:"data-[state=checked]:border-warning",white:"data-[state=checked]:border-white",transparent:"data-[state=checked]:border-transparent",muted:"data-[state=checked]:border-muted",primary:"data-[state=checked]:border-primary",secondary:"data-[state=checked]:border-secondary",tertiary:"data-[state=checked]:border-tertiary"},borderStartColor:{accent:"border-s-accent",alert:"border-s-alert",black:"border-s-black",brand:"border-s-brand",positive:"border-s-positive",warning:"border-s-warning",white:"border-s-white",transparent:"border-s-transparent",muted:"border-s-muted",primary:"border-s-primary",secondary:"border-s-secondary",tertiary:"border-s-tertiary"},borderEndColor:{accent:"border-e-accent",alert:"border-e-alert",black:"border-e-black",brand:"border-e-brand",positive:"border-e-positive",warning:"border-e-warning",white:"border-e-white",transparent:"border-e-transparent",muted:"border-e-muted",primary:"border-e-primary",secondary:"border-e-secondary",tertiary:"border-e-tertiary"},borderBottomColor:{accent:"border-b-accent",alert:"border-b-alert",black:"border-b-black",brand:"border-b-brand",positive:"border-b-positive",warning:"border-b-warning",white:"border-b-white",transparent:"border-b-transparent",muted:"border-b-muted",primary:"border-b-primary",secondary:"border-b-secondary",tertiary:"border-b-tertiary"},borderTopColor:{accent:"border-t-accent",alert:"border-t-alert",black:"border-t-black",brand:"border-t-brand",positive:"border-t-positive",warning:"border-t-warning",white:"border-t-white",transparent:"border-t-transparent",muted:"border-t-muted",primary:"border-t-primary",secondary:"border-t-secondary",tertiary:"border-t-tertiary"},borderRadius:{none:"rounded-none",xs:"rounded-xs",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl",full:"rounded-full"},borderTopStartRadius:{none:"rounded-ss-none",xs:"rounded-ss-xs",sm:"rounded-ss-sm",md:"rounded-ss-md",lg:"rounded-ss-lg",xl:"rounded-ss-xl",full:"rounded-ss-full"},borderTopEndRadius:{none:"rounded-se-none",xs:"rounded-se-xs",sm:"rounded-se-sm",md:"rounded-se-md",lg:"rounded-se-lg",xl:"rounded-se-xl",full:"rounded-se-full"},borderBottomStartRadius:{none:"rounded-es-none",xs:"rounded-es-xs",sm:"rounded-es-sm",md:"rounded-es-md",lg:"rounded-es-lg",xl:"rounded-es-xl",full:"rounded-es-full"},borderBottomEndRadius:{none:"rounded-ee-none",xs:"rounded-ee-xs",sm:"rounded-ee-sm",md:"rounded-ee-md",lg:"rounded-ee-lg",xl:"rounded-ee-xl",full:"rounded-ee-full"},bordered:{true:"border-thin border-solid"},borderWidth:{none:"border-none",thin:"border-thin",medium:"border-medium",thick:"border-thick"},borderVerticalWidth:{none:"border-y-none",thin:"border-y-thin",medium:"border-y-medium",thick:"border-y-thick"},borderHorizontalWidth:{none:"border-x-none",thin:"border-x-thin",medium:"border-x-medium",thick:"border-x-thick"},borderStartWidth:{none:"border-s-none",thin:"border-s-thin",medium:"border-s-medium",thick:"border-s-thick"},borderEndWidth:{none:"border-e-none",thin:"border-e-thin",medium:"border-e-medium",thick:"border-e-thick"},borderTopWidth:{none:"border-t-none",thin:"border-t-thin",medium:"border-t-medium",thick:"border-t-thick"},borderBottomWidth:{none:"border-b-none",thin:"border-b-thin",medium:"border-b-medium",thick:"border-b-thick"},borderedVertical:{true:"border-y-thin"},borderedTop:{true:"border-t-thin"},borderedBottom:{true:"border-b-thin"},borderedHorizontal:{true:"border-x-thin"},borderedEnd:{true:"border-e-thin"},borderedStart:{true:"border-s-thin"},height:{auto:"h-auto",full:"h-full",screen:"h-screen",min:"h-min",max:"h-max",fit:"h-fit","1/2":"h-1/2","1/3":"h-1/3","2/3":"h-2/3","1/4":"h-1/4","2/4":"h-2/4","3/4":"h-3/4","1/5":"h-1/5","2/5":"h-2/5","3/5":"h-3/5","4/5":"h-4/5","1/6":"h-1/6","2/6":"h-2/6","3/6":"h-3/6","4/6":"h-4/6","5/6":"h-5/6"},minHeight:{full:"min-h-full",min:"min-h-min",max:"min-h-max",fit:"min-h-fit",screen:"min-h-screen"},maxHeight:{full:"max-h-full",min:"max-h-min",max:"max-h-max",fit:"max-h-fit",screen:"max-h-screen",none:"max-h-[0px]"},width:{auto:"w-auto",full:"w-full",screen:"w-screen",min:"w-min",max:"w-max",fit:"w-fit","1/2":"w-1/2","1/3":"w-1/3","2/3":"w-2/3","1/4":"w-1/4","2/4":"w-2/4","3/4":"w-3/4","1/5":"w-1/5","2/5":"w-2/5","3/5":"w-3/5","4/5":"w-4/5","1/6":"w-1/6","2/6":"w-2/6","3/6":"w-3/6","4/6":"w-4/6","5/6":"w-5/6","1/12":"w-1/12","2/12":"w-2/12","3/12":"w-3/12","4/12":"w-4/12","5/12":"w-5/12","6/12":"w-6/12","7/12":"w-7/12","8/12":"w-8/12","9/12":"w-9/12","10/12":"w-10/12","11/12":"w-11/12"},minWidth:{full:"min-w-full",min:"min-w-min",max:"min-w-max",fit:"min-w-fit",screen:"min-w-screen"},maxWidth:{none:"max-w-[0px]",full:"max-w-full",min:"max-w-min",max:"max-w-max",fit:"max-w-fit"},avatarSize:{s:"avatarSize-s",m:"avatarSize-m",l:"avatarSize-l"},iconSize:{s:"iconSize-s leading-none",m:"iconSize-m leading-none",l:"iconSize-l leading-none"},alignContent:{"flex-start":"content-start","flex-end":"content-end",center:"content-center",stretch:"content-stretch","space-between":"content-between","space-around":"content-around"},alignItems:{"flex-start":"items-start","flex-end":"items-end",center:"items-center",stretch:"items-stretch",baseline:"items-baseline"},alignSelf:{auto:"self-auto","flex-start":"self-start","flex-end":"self-end",center:"self-center",stretch:"self-stretch",baseline:"self-baseline"},flex:{1:"flex-1",auto:"flex-auto",initial:"flex-initial",none:"flex-none"},flexDirection:{row:"flex-row",column:"flex-col","row-reverse":"flex-row-reverse","column-reverse":"flex-col-reverse"},flexGrow:{0:"grow-0",1:"grow",2:"grow-[2]",3:"grow-[3]"},flexShrink:{0:"shrink-0",1:"shrink"},flexWrap:{wrap:"flex-wrap","wrap-reverse":"flex-wrap-reverse",nowrap:"flex-nowrap"},justifyContent:{"flex-start":"justify-start","flex-end":"justify-end",center:"justify-center","space-between":"justify-between","space-around":"justify-around","space-evenly":"justify-evenly"},flexBasis:{"min-content":"basis-[min-content]"},display:{block:"block","inline-block":"inline-block",inline:"inline",flex:"flex","inline-flex":"inline-flex",table:"table","inline-table":"inline-table","table-caption":"table-caption","table-cell":"table-cell","table-column":"table-column","table-column-group":"table-column-group","table-footer-group":"table-footer-group","table-header-group":"table-header-group","table-row-group":"table-row-group","table-row":"table-row","flow-root":"flow-root",grid:"grid",contents:"contents"},overflow:{auto:"overflow-auto",hidden:"overflow-hidden",clip:"overflow-clip",visible:"overflow-visible",scroll:"overflow-scroll"},overflowX:{auto:"overflow-x-auto",hidden:"overflow-x-hidden",clip:"overflow-x-clip",visible:"overflow-x-visible",scroll:"overflow-x-scroll"},overflowY:{auto:"overflow-y-auto",hidden:"overflow-y-hidden",clip:"overflow-y-clip",visible:"overflow-y-visible",scroll:"overflow-y-scroll"},position:{static:"static",fixed:"fixed",absolute:"absolute",relative:"relative",sticky:"sticky"},zIndex:{0:"z-0",10:"z-10",20:"z-20",30:"z-40",40:"z-30",50:"z-50",auto:"z-auto"},contentFit:{contain:"object-contain",cover:"object-cover",fill:"object-fill",none:"object-none","scale-down":"object-scale-down"},colorMode:{dark:ko,light:Ao},scaleMode:{xSmall:Ro,small:Eo,medium:Io,large:Do,xLarge:Lo,xxxLarge:Ho,xxLarge:Mo}};var Vt=(0,Bo.extendTailwindMerge)({cacheSize:0,extend:{theme:{borderColor:x.lineColors,borderWidth:x.borderWidths,borderRadius:x.borderRadii}},override:{classGroups:{"text-color":[{text:x.foregroundColors}],"bg-color":[{bg:x.backgroundColors}],"font-family":[{font:["icons",...x.textVariants]}],leading:[{leading:x.textVariants}],shadow:[{shadow:x.elevations}]},conflictingClassGroups:{}}}),h=(...o)=>{let e=(0,_o.default)(o);return Vt(e)},Ft=o=>e=>{if(!o?.variants)return h(o?.base,e?.className);let{variants:t,defaultVariants:r}=o,a=Object.keys(t).map(s=>{let i=e?.[s],p=r?.[s],d=ho(i)||ho(p);return t[s][d]}),n={...r,...e&&Object.entries(e).reduce((s,[i,p])=>typeof p>"u"?s:{...s,[i]:p},{})},l=o?.compoundVariants?.reduce((s,{className:i,...p})=>Object.entries(p).every(([d,u])=>n[d]===u)?h(s,i):s,"");return h(o?.base,a,l,e?.className)},c=Ft({variants:No});var y=require("react");function Gt(o,e){typeof o=="function"?o(e):o!=null&&(o.current=e)}function Oo(...o){return e=>o.forEach(t=>Gt(t,e))}var xo=require("react/jsx-runtime");function A(){let o=(0,y.forwardRef)((n,l)=>{let{children:s,...i}=n,p=y.Children.toArray(s),d=p.find(r);if(d){let u=d.props.children,w=p.map(C=>C===d?y.Children.count(u)>1?y.Children.only(null):(0,y.isValidElement)(u)?u.props.children:null:C);return(0,xo.jsx)(e,{...i,ref:l,children:(0,y.isValidElement)(u)?(0,y.cloneElement)(u,void 0,w):null})}return(0,xo.jsx)(e,{...i,ref:l,children:s})});o.displayName="Slot";let e=(0,y.forwardRef)((n,l)=>{let{children:s,...i}=n;return(0,y.isValidElement)(s)?(0,y.cloneElement)(s,{...a(i,s.props),ref:l?Oo(l,s.ref):s.ref}):y.Children.count(s)>1?y.Children.only(null):null});e.displayName="SlotClone";let t=({children:n})=>n;function r(n){return(0,y.isValidElement)(n)&&n.type===t}function a(n,l){let s={...l};for(let i in l){let p=n[i],d=l[i];/^on[A-Z]/.test(i)?p&&d?s[i]=(...w)=>{d(...w),p(...w)}:p&&(s[i]=p):i==="style"&&(s[i]={...p,...d})}return{...n,...s}}return o}var Vo=require("react/jsx-runtime"),Ut=A(),v=(0,zo.forwardRef)(function({className:e,asChild:t=!1,size:r="l",color:a="primary",name:n,colorChecked:l,opacity:s,textAlign:i,backgroundColor:p,backgroundColorOnActive:d,backgroundColorOnHover:u,backgroundColorOnChecked:w,bordered:C,borderedTop:H,borderedBottom:N,borderedStart:_,borderedEnd:B,borderedHorizontal:O,borderedVertical:z,borderRadius:V,borderTopStartRadius:F,borderTopEndRadius:G,borderBottomStartRadius:U,borderBottomEndRadius:W,borderColor:X,borderColorOnActive:$,borderColorOnFocus:Z,borderColorOnChecked:K,borderColorOnHover:Y,borderStartColor:q,borderEndColor:J,borderTopColor:Q,borderBottomColor:j,borderWidth:ee,borderVerticalWidth:oe,borderHorizontalWidth:te,borderStartWidth:re,borderEndWidth:ae,borderTopWidth:ne,borderBottomWidth:se,alignContent:ie,alignItems:le,alignSelf:pe,flex:ce,flexDirection:de,flexGrow:be,flexShrink:me,flexWrap:fe,justifyContent:ue,flexBasis:ge,display:ye,zIndex:he,overflow:xe,overflowX:ve,overflowY:we,position:Pe,spacing:Te,spacingHorizontal:Ce,spacingVertical:Se,spacingBottom:ke,spacingEnd:Ae,spacingStart:Re,spacingTop:Ee,offset:Ie,offsetVertical:De,offsetHorizontal:Le,offsetBottom:Me,offsetEnd:He,offsetStart:Ne,offsetTop:_e,columnGap:Be,rowGap:Oe,height:ze,minHeight:Ve,maxHeight:Fe,width:Ge,minWidth:Ue,maxWidth:$e,...Je},oo){let go=t?Ut:"span",yo=c({iconSize:r,color:a,colorChecked:l,opacity:s,fontFamily:"icons",textAlign:i,backgroundColor:p,backgroundColorOnActive:d,backgroundColorOnHover:u,backgroundColorOnChecked:w,bordered:C,borderedTop:H,borderedBottom:N,borderedStart:_,borderedEnd:B,borderedHorizontal:O,borderedVertical:z,borderRadius:V,borderTopStartRadius:F,borderTopEndRadius:G,borderBottomStartRadius:U,borderBottomEndRadius:W,borderColor:X,borderColorOnActive:$,borderColorOnFocus:Z,borderColorOnChecked:K,borderColorOnHover:Y,borderStartColor:q,borderEndColor:J,borderTopColor:Q,borderBottomColor:j,borderWidth:ee,borderVerticalWidth:oe,borderHorizontalWidth:te,borderStartWidth:re,borderEndWidth:ae,borderTopWidth:ne,borderBottomWidth:se,alignContent:ie,alignItems:le,alignSelf:pe,flex:ce,flexDirection:de,flexGrow:be,flexShrink:me,flexWrap:fe,justifyContent:ue,flexBasis:ge,display:ye,zIndex:he,overflow:xe,overflowX:ve,overflowY:we,position:Pe,spacing:Te,spacingHorizontal:Ce,spacingVertical:Se,spacingBottom:ke,spacingEnd:Ae,spacingStart:Re,spacingTop:Ee,offset:Ie,offsetVertical:De,offsetHorizontal:Le,offsetBottom:Me,offsetEnd:He,offsetStart:Ne,offsetTop:_e,columnGap:Be,rowGap:Oe,height:ze,minHeight:Ve,maxHeight:Fe,width:Ge,minWidth:Ue,maxWidth:$e,className:e});return(0,Vo.jsx)(go,{className:yo,ref:oo,...Je,children:n})});var Fo=require("react");var Go=require("react/jsx-runtime"),Wt=A(),P=(0,Fo.forwardRef)(function({className:e,asChild:t,onPress:r,onClick:a=r,backgroundColor:n,backgroundColorOnActive:l,backgroundColorOnHover:s,backgroundColorOnChecked:i,elevation:p,opacity:d,bordered:u,borderedTop:w,borderedBottom:C,borderedStart:H,borderedEnd:N,borderedHorizontal:_,borderedVertical:B,borderRadius:O,borderTopStartRadius:z,borderTopEndRadius:V,borderBottomStartRadius:F,borderBottomEndRadius:G,borderColor:U,borderColorOnActive:W,borderColorOnFocus:X,borderColorOnChecked:$,borderColorOnHover:Z,borderStartColor:K,borderEndColor:Y,borderTopColor:q,borderBottomColor:J,borderWidth:Q,borderVerticalWidth:j,borderHorizontalWidth:ee,borderStartWidth:oe,borderEndWidth:te,borderTopWidth:re,borderBottomWidth:ae,alignContent:ne,alignItems:se,alignSelf:ie,flex:le,flexDirection:pe,flexGrow:ce,flexShrink:de,flexWrap:be,justifyContent:me,flexBasis:fe,display:ue,zIndex:ge,overflow:ye,overflowX:he,overflowY:xe,position:ve,spacing:we,spacingHorizontal:Pe,spacingVertical:Te,spacingBottom:Ce,spacingEnd:Se,spacingStart:ke,spacingTop:Ae,offset:Re,offsetVertical:Ee,offsetHorizontal:Ie,offsetBottom:De,offsetEnd:Le,offsetStart:Me,offsetTop:He,columnGap:Ne,rowGap:_e,height:Be,minHeight:Oe,maxHeight:ze,width:Ve,minWidth:Fe,maxWidth:Ge,...Ue},$e){let Je=c({backgroundColor:n,backgroundColorOnActive:l,backgroundColorOnHover:s,backgroundColorOnChecked:i,elevation:p,opacity:d,bordered:u,borderedTop:w,borderedBottom:C,borderedStart:H,borderedEnd:N,borderedHorizontal:_,borderedVertical:B,borderRadius:O,borderTopStartRadius:z,borderTopEndRadius:V,borderBottomStartRadius:F,borderBottomEndRadius:G,borderColor:U,borderColorOnActive:W,borderColorOnFocus:X,borderColorOnChecked:$,borderColorOnHover:Z,borderStartColor:K,borderEndColor:Y,borderTopColor:q,borderBottomColor:J,borderWidth:Q,borderVerticalWidth:j,borderHorizontalWidth:ee,borderStartWidth:oe,borderEndWidth:te,borderTopWidth:re,borderBottomWidth:ae,alignContent:ne,alignItems:se,alignSelf:ie,flex:le,flexDirection:pe,flexGrow:ce,flexShrink:de,flexWrap:be,justifyContent:me,flexBasis:fe,display:ue,zIndex:ge,overflow:ye,overflowX:he,overflowY:xe,position:ve,spacing:we,spacingHorizontal:Pe,spacingVertical:Te,spacingBottom:Ce,spacingEnd:Se,spacingStart:ke,spacingTop:Ae,offset:Re,offsetVertical:Ee,offsetHorizontal:Ie,offsetBottom:De,offsetEnd:Le,offsetStart:Me,offsetTop:He,columnGap:Ne,rowGap:_e,height:Be,minHeight:Oe,maxHeight:ze,width:Ve,minWidth:Fe,maxWidth:Ge,className:e});return(0,Go.jsx)(t?Wt:"button",{className:Je,ref:$e,onClick:a,...Ue})});var Uo=require("react");var Wo=require("react/jsx-runtime"),Xt=A(),$t={display1:"h1",display2:"h1",display3:"h1",title1:"h1",title2:"h2",title3:"h3",title4:"h4",headline1:"h5",body1:"p",label1:"p",label2:"p",caption1:"p",caption2:"p",legal1:"p"},f=(0,Uo.forwardRef)(function({className:e,asChild:t,color:r="primary",colorChecked:a,variant:n="body1",as:l=$t[n],fontSize:s=n,fontFamily:i=n,fontWeight:p=n,lineHeight:d=n,textTransform:u=n,textAlign:w,backgroundColor:C,backgroundColorOnActive:H,backgroundColorOnHover:N,backgroundColorOnChecked:_,opacity:B,bordered:O,borderedTop:z,borderedBottom:V,borderedStart:F,borderedEnd:G,borderedHorizontal:U,borderedVertical:W,borderRadius:X,borderTopStartRadius:$,borderTopEndRadius:Z,borderBottomStartRadius:K,borderBottomEndRadius:Y,borderColor:q,borderColorOnActive:J,borderColorOnFocus:Q,borderColorOnChecked:j,borderColorOnHover:ee,borderStartColor:oe,borderEndColor:te,borderTopColor:re,borderBottomColor:ae,borderWidth:ne,borderVerticalWidth:se,borderHorizontalWidth:ie,borderStartWidth:le,borderEndWidth:pe,borderTopWidth:ce,borderBottomWidth:de,alignContent:be,alignItems:me,alignSelf:fe,flex:ue,flexDirection:ge,flexGrow:ye,flexShrink:he,flexWrap:xe,justifyContent:ve,flexBasis:we,display:Pe,zIndex:Te,overflow:Ce,overflowX:Se,overflowY:ke,position:Ae,spacing:Re,spacingHorizontal:Ee,spacingVertical:Ie,spacingBottom:De,spacingEnd:Le,spacingStart:Me,spacingTop:He,offset:Ne,offsetVertical:_e,offsetHorizontal:Be,offsetBottom:Oe,offsetEnd:ze,offsetStart:Ve,offsetTop:Fe,columnGap:Ge,rowGap:Ue,height:$e,minHeight:Je,maxHeight:oo,width:go,minWidth:yo,maxWidth:Rt,...Et},It){let Dt=c({className:e,color:r,colorChecked:a,fontFamily:i,fontSize:s,fontWeight:p,lineHeight:d,textTransform:u,textAlign:w,backgroundColor:C,backgroundColorOnActive:H,backgroundColorOnHover:N,backgroundColorOnChecked:_,opacity:B,bordered:O,borderedTop:z,borderedBottom:V,borderedStart:F,borderedEnd:G,borderedHorizontal:U,borderedVertical:W,borderRadius:X,borderTopStartRadius:$,borderTopEndRadius:Z,borderBottomStartRadius:K,borderBottomEndRadius:Y,borderColor:q,borderColorOnActive:J,borderColorOnFocus:Q,borderColorOnChecked:j,borderColorOnHover:ee,borderStartColor:oe,borderEndColor:te,borderTopColor:re,borderBottomColor:ae,borderWidth:ne,borderVerticalWidth:se,borderHorizontalWidth:ie,borderStartWidth:le,borderEndWidth:pe,borderTopWidth:ce,borderBottomWidth:de,alignContent:be,alignItems:me,alignSelf:fe,flex:ue,flexDirection:ge,flexGrow:ye,flexShrink:he,flexWrap:xe,justifyContent:ve,flexBasis:we,display:Pe,zIndex:Te,overflow:Ce,overflowX:Se,overflowY:ke,position:Ae,spacing:Re,spacingHorizontal:Ee,spacingVertical:Ie,spacingBottom:De,spacingEnd:Le,spacingStart:Me,spacingTop:He,offset:Ne,offsetVertical:_e,offsetHorizontal:Be,offsetBottom:Oe,offsetEnd:ze,offsetStart:Ve,offsetTop:Fe,columnGap:Ge,rowGap:Ue,height:$e,minHeight:Je,maxHeight:oo,width:go,minWidth:yo,maxWidth:Rt});return(0,Wo.jsx)(t?Xt:l,{className:Dt,ref:It,...Et})});var Zo=require("react");var Xo=require("react");var $o=require("react/jsx-runtime"),Zt=A(),I=(0,Xo.forwardRef)(function({asChild:e,className:t,elevation:r,backgroundColor:a=r?`elevation-${r}`:void 0,backgroundColorOnActive:n,backgroundColorOnHover:l,backgroundColorOnChecked:s,opacity:i,bordered:p,borderedTop:d,borderedBottom:u,borderedStart:w,borderedEnd:C,borderedHorizontal:H,borderedVertical:N,borderRadius:_,borderTopStartRadius:B,borderTopEndRadius:O,borderBottomStartRadius:z,borderBottomEndRadius:V,borderColor:F,borderColorOnActive:G,borderColorOnFocus:U,borderColorOnChecked:W,borderColorOnHover:X,borderStartColor:$,borderEndColor:Z,borderTopColor:K,borderBottomColor:Y,borderWidth:q,borderVerticalWidth:J,borderHorizontalWidth:Q,borderStartWidth:j,borderEndWidth:ee,borderTopWidth:oe,borderBottomWidth:te,alignContent:re,alignItems:ae,alignSelf:ne,flex:se,flexDirection:ie,flexGrow:le,flexShrink:pe,flexWrap:ce,justifyContent:de,flexBasis:be,display:me="flex",zIndex:fe,overflow:ue,overflowX:ge,overflowY:ye,position:he,spacing:xe,spacingHorizontal:ve,spacingVertical:we,spacingBottom:Pe,spacingEnd:Te,spacingStart:Ce,spacingTop:Se,offset:ke,offsetVertical:Ae,offsetHorizontal:Re,offsetBottom:Ee,offsetEnd:Ie,offsetStart:De,offsetTop:Le,columnGap:Me,rowGap:He,height:Ne,minHeight:_e,maxHeight:Be,width:Oe,minWidth:ze,maxWidth:Ve,...Fe},Ge){let Ue=c({elevation:r,backgroundColor:a,backgroundColorOnActive:n,backgroundColorOnHover:l,backgroundColorOnChecked:s,opacity:i,bordered:p,borderedTop:d,borderedBottom:u,borderedStart:w,borderedEnd:C,borderedHorizontal:H,borderedVertical:N,borderRadius:_,borderTopStartRadius:B,borderTopEndRadius:O,borderBottomStartRadius:z,borderBottomEndRadius:V,borderColor:F,borderColorOnActive:G,borderColorOnFocus:U,borderColorOnChecked:W,borderColorOnHover:X,borderStartColor:$,borderEndColor:Z,borderTopColor:K,borderBottomColor:Y,borderWidth:q,borderVerticalWidth:J,borderHorizontalWidth:Q,borderStartWidth:j,borderEndWidth:ee,borderTopWidth:oe,borderBottomWidth:te,alignContent:re,alignItems:ae,alignSelf:ne,flex:se,flexDirection:ie,flexGrow:le,flexShrink:pe,flexWrap:ce,justifyContent:de,flexBasis:be,display:me,zIndex:fe,overflow:ue,overflowX:ge,overflowY:ye,position:he,spacing:xe,spacingHorizontal:ve,spacingVertical:we,spacingBottom:Pe,spacingEnd:Te,spacingStart:Ce,spacingTop:Se,offset:ke,offsetVertical:Ae,offsetHorizontal:Re,offsetBottom:Ee,offsetEnd:Ie,offsetStart:De,offsetTop:Le,columnGap:Me,rowGap:He,height:Ne,minHeight:_e,maxHeight:Be,width:Oe,minWidth:ze,maxWidth:Ve,className:t});return(0,$o.jsx)(e?Zt:"div",{className:Ue,ref:Ge,...Fe})});var Ko=require("react/jsx-runtime"),S=(0,Zo.forwardRef)(function({gap:e,...t},r){return(0,Ko.jsx)(I,{ref:r,flexDirection:"column",columnGap:e,rowGap:e,...t})});var R=require("react/jsx-runtime");function Yo({label:o,children:e,onClick:t,open:r,spacingHorizontal:a="6",_content:n,...l}){return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsxs)(P,{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",spacingVertical:"6",spacingHorizontal:a,backgroundColorOnHover:"secondary",borderRadius:"md",width:"full",onClick:t,...l,children:[(0,R.jsx)(f,{variant:"title4",children:o}),(0,R.jsx)(v,{name:r?"chevronDown":"chevronUp",size:"s"})]}),(0,R.jsx)(S,{overflow:"hidden",maxHeight:r?"full":"none",className:"transition-[max-height] duration-500 ease-in-out",spacingHorizontal:a,...n,children:(0,R.jsx)(S,{minHeight:"min",children:e})})]})}var qo={display:"inline-flex",alignItems:"center",justifyContent:"center",overflow:"hidden",backgroundColor:"primary",contentFit:"cover"},vo={base:{display:"inline-flex",alignItems:"center",justifyContent:"center",borderRadius:"full",minWidth:"fit"},variant:{accent:{color:"on-color",backgroundColor:"accent",borderColor:"accent",bordered:!0},"accent-outline":{color:"accent",backgroundColor:"transparent",borderColor:"accent",bordered:!0},"accent-ghost":{color:"accent"},"accent-wash":{color:"accent",backgroundColor:"accent-wash",borderColor:"accent",bordered:!0},brand:{color:"on-color",backgroundColor:"brand",borderColor:"brand",bordered:!0},"brand-outline":{color:"brand",backgroundColor:"transparent",borderColor:"brand",bordered:!0},"brand-ghost":{color:"brand"},"brand-wash":{color:"brand",backgroundColor:"brand-wash",borderColor:"brand",bordered:!0},positive:{color:"on-color",backgroundColor:"positive",borderColor:"positive",bordered:!0},"positive-outline":{color:"positive",backgroundColor:"transparent",borderColor:"positive",bordered:!0},"positive-ghost":{color:"positive"},"positive-wash":{color:"positive",backgroundColor:"positive-wash",borderColor:"positive",bordered:!0},alert:{color:"on-color",backgroundColor:"alert",borderColor:"alert",bordered:!0},"alert-outline":{color:"alert",backgroundColor:"transparent",borderColor:"alert",bordered:!0},"alert-ghost":{color:"alert"},"alert-wash":{color:"alert",backgroundColor:"alert-wash",borderColor:"alert",bordered:!0},warning:{color:"on-color",backgroundColor:"warning",borderColor:"warning",bordered:!0},"warning-outline":{color:"warning",backgroundColor:"transparent",borderColor:"warning",bordered:!0},"warning-ghost":{color:"warning"},"warning-wash":{color:"warning",backgroundColor:"warning-wash",borderColor:"warning",bordered:!0},"primary-outline":{color:"primary",borderColor:"muted",bordered:!0},"primary-ghost":{color:"primary"},secondary:{backgroundColor:"secondary",color:"primary"}},size:{s:{variant:"label1",spacingHorizontal:"6",spacingVertical:"4",columnGap:"4"},m:{variant:"headline1",spacingHorizontal:"7",spacingVertical:"5",columnGap:"4"},l:{variant:"headline1",spacingHorizontal:"8",spacingVertical:"6",columnGap:"4"}}};function Ze({variant:o="accent",size:e="s"}){let{color:t,...r}=vo.variant[o],{variant:a,...n}=vo.size[e];return{pressable:{...vo.base,...r,...n},text:{color:t,variant:a,textAlign:"center"},icon:{color:t,size:"s"}}}var Qo=require("react/jsx-runtime");function Jo({size:o,shape:e,src:t,alt:r,...a}){let n=c({...qo,avatarSize:o,borderRadius:e});return(0,Qo.jsx)("img",{src:t,alt:r,className:n,...a})}var jo=require("react");var Ke=require("react/jsx-runtime"),ro=(0,jo.forwardRef)(function({variant:e="accent",size:t,startIcon:r,endIcon:a,children:n,...l},s){let i=Ze({variant:e,size:t}),p=r?(0,Ke.jsx)(v,{name:r,...i.icon}):null,d=a?(0,Ke.jsx)(v,{name:a,...i.icon}):null;return(0,Ke.jsxs)(P,{...i.pressable,ref:s,...l,children:[p,(0,Ke.jsx)(f,{...i.text,children:n}),d]})});var Ye=require("react/jsx-runtime"),et={accent:"on-color",secondary:"primary"},Kt={accent:"on-color",secondary:"tertiary"};function ot({children:o,variant:e,startIcon:t,startContent:r=t?(0,Ye.jsx)(v,{name:t,size:"s",color:et[e]}):null,endIcon:a,endContent:n=a?(0,Ye.jsx)(v,{name:a,size:"s",color:et[e]}):null}){return(0,Ye.jsxs)(P,{display:"inline-flex",flexDirection:"row",columnGap:"4",borderRadius:"full",backgroundColor:e,alignItems:"center",spacingVertical:"4",spacingHorizontal:"5",children:[r,(0,Ye.jsx)(f,{variant:"label2",color:Kt[e],children:o}),n]})}var m=require("@ariakit/react");var tt=require("react");var rt=require("react/jsx-runtime"),ao=(0,tt.forwardRef)(function({gap:e,...t},r){return(0,rt.jsx)(I,{ref:r,flexDirection:"row",rowGap:e,columnGap:e,...t})});var Qe=require("react/jsx-runtime");function at({children:o,leading:e,trailing:t}){return(0,Qe.jsxs)(ao,{children:[e,(0,Qe.jsx)(f,{variant:"headline1",asChild:!0,children:(0,Qe.jsx)(m.PopoverHeading,{children:o})}),t]})}var no=m.Popover,so=m.PopoverArrow,nt=m.PopoverAnchor,st=m.PopoverDescription,it=m.PopoverDismiss,io=m.PopoverProvider,lo=m.PopoverDisclosure,lt=m.PopoverDisclosureArrow;var pt=io;var po=require("react");var ct=require("react/jsx-runtime"),co=(0,po.forwardRef)(function({children:e,onClick:t,...r},a){let n=(0,m.usePopoverStore)(),l=(0,po.useCallback)(s=>{s.preventDefault(),t?.(()=>n.setOpen(!1))},[t,n]);return(0,ct.jsx)(P,{display:"flex",flexDirection:"row",alignItems:"flex-start",spacingVertical:"6",spacingHorizontal:"8",columnGap:"5",borderColor:"muted",className:"hover:bg-gray-2",onClick:t?l:void 0,ref:a,...r,children:e})});var D=require("react/jsx-runtime");function dt({title:o,description:e,_title:t,_description:r,startIcon:a,endIcon:n,...l}){return(0,D.jsxs)(co,{...l,children:[a&&(0,D.jsx)(v,{name:a,size:"s"}),(0,D.jsxs)(S,{gap:"3",alignItems:"flex-start",children:[o&&(0,D.jsx)(f,{variant:"headline1",...t,children:o}),e&&(0,D.jsx)(f,{variant:"label2",color:"muted",...r,children:e})]}),n&&(0,D.jsx)(v,{name:n,size:"s"})]})}var bt=require("react");var je=require("react/jsx-runtime"),mt=(0,bt.forwardRef)(function({children:e,className:t,overflow:r="scroll",...a},n){return(0,je.jsx)(S,{borderRadius:"lg",elevation:"3",className:h("max-h-[312px] min-w-[220px]",t),overflow:r,spacingVertical:"4",asChild:!0,children:(0,je.jsxs)(no,{preventBodyScroll:!0,...a,ref:n,children:[(0,je.jsx)(so,{className:"!fill-elevation-3 !stroke-muted !stroke-1"}),e]})})});var wo=require("react/jsx-runtime");function ft({children:o,variant:e,size:t,...r}){let a=Ze({variant:e,size:t}),n=e?a.pressable:{display:"flex",flexDirection:"row",alignItems:"center",columnGap:"6",justifyContent:"space-between"};return(0,wo.jsx)(P,{...n,...r,asChild:!0,children:(0,wo.jsx)(lo,{children:o})})}var ut=require("react");var Po=require("react/jsx-runtime"),Yt={s:"w-[36px] h-[36px]",m:"w-[48px] h-[48px]",l:"w-[64px] h-[64px]"},bo=(0,ut.forwardRef)(function({variant:e="accent",size:t="s",name:r,className:a,color:n,...l},s){let i=Ze({variant:e,size:t});return(0,Po.jsx)(P,{...i.pressable,spacingHorizontal:i.pressable.spacingVertical,ref:s,className:h("leading-[0px]",Yt[t],a),...l,children:(0,Po.jsx)(v,{name:r,...i.icon,color:n})})});var qe=require("@ariakit/react");var L=require("react/jsx-runtime");function gt(o){return(0,qe.useDialogStore)({animated:!0,...o})}function yt({children:o,handleClose:e}){return(0,L.jsxs)(ao,{alignItems:"center",justifyContent:"space-between",children:[(0,L.jsx)(f,{variant:"headline1",children:o}),(0,L.jsx)(ro,{variant:"accent-ghost",size:"m",spacingEnd:"none",spacingVertical:"none",onClick:e,children:"close"})]})}function ht({className:o,...e}){return(0,L.jsx)(S,{borderRadius:"md",elevation:"3",position:"fixed",height:"fit",zIndex:"50",className:h("inset-8 top-[250px] mx-auto w-[600px] origin-center scale-95 opacity-0 transition duration-150 data-[enter]:scale-100 data-[enter]:opacity-100",o),spacing:"8",asChild:!0,overflow:"hidden",children:(0,L.jsx)(qe.Dialog,{backdrop:(0,L.jsx)("div",{className:"data-[enter]:bg-overlay opacity-0 backdrop-blur-0 transition duration-150 data-[enter]:opacity-100 data-[enter]:backdrop-blur-sm"}),...e})})}var xt=qe.DialogDismiss;var We=require("react/jsx-runtime");function vt({className:o,...e}){return(0,We.jsxs)("div",{role:"status",className:h("self-center",o),...e,style:{width:8,maxWidth:8,height:8,maxHeight:8},children:[(0,We.jsxs)("svg",{"aria-hidden":"true",className:"text-gray-3 fill-accent h-8 w-8 animate-spin",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,We.jsx)("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),(0,We.jsx)("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]}),(0,We.jsx)("span",{className:"sr-only",children:"Loading..."})]})}var M=require("react");var g=require("react/jsx-runtime"),qt=(0,M.forwardRef)(function({children:e,className:t,display:r="table",overflow:a="hidden",borderColor:n="muted",elevation:l="1",borderRadius:s="md",...i},p){return(0,g.jsx)(I,{asChild:!0,borderColor:n,elevation:l,borderRadius:s,className:t,overflow:a,display:r,...i,children:(0,g.jsx)("table",{ref:p,children:e})})}),Jt=(0,M.forwardRef)(function({children:e,display:t="table-row",...r},a){return(0,g.jsx)(I,{asChild:!0,display:t,...r,children:(0,g.jsx)("tr",{ref:a,children:e})})}),Qt=(0,M.forwardRef)(function({children:e,display:t="table-header-group",...r},a){return(0,g.jsx)(I,{asChild:!0,display:t,...r,children:(0,g.jsx)("thead",{ref:a,children:e})})}),jt=(0,M.forwardRef)(function({children:e,display:t="table-row-group",...r},a){return(0,g.jsx)(I,{asChild:!0,display:t,...r,children:(0,g.jsx)("tbody",{ref:a,children:e})})}),er=(0,M.forwardRef)(function({asHeaderCell:e,className:t,display:r="table-cell",spacing:a="5",borderBottomColor:n="muted",color:l="primary",...s},i){let p=c({textAlign:"start",className:t});return(0,g.jsx)(f,{asChild:!0,variant:e?"headline1":"body1",color:l,display:r,spacing:a,borderBottomColor:n,borderedBottom:!0,className:p,children:(0,g.jsx)(e?"th":"td",{scope:e==="row"?"row":e?"column":void 0,...s,ref:i})})});T.Root=qt;T.Row=Jt;T.Header=Qt;T.Body=jt;T.Cell=er;function T({data:o,columns:e}){return(0,g.jsxs)(T.Root,{children:[(0,g.jsx)(T.Header,{children:(0,g.jsx)(T.Row,{children:e.map((t,r)=>(0,g.jsx)(T.Cell,{asHeaderCell:"column",children:t.title},r))})}),(0,g.jsx)(T.Body,{children:o.map((t,r)=>(0,g.jsx)(T.Row,{children:e.map((a,n)=>{let l=t[a.dataIndex];return(0,g.jsx)(T.Cell,{children:a.render?a.render(l,t,r):(0,M.isValidElement)(l)?l:String(l)},n)})},r))})]})}var k=require("@ariakit/react"),To=require("react");var E=require("react/jsx-runtime"),or=A();function wt(o){return(0,E.jsx)(k.TabProvider,{...o})}var Pt=(0,To.forwardRef)(function({className:e,...t},r){let a=c({display:"flex",flexDirection:"row",columnGap:"7",className:e});return(0,E.jsx)(k.TabList,{ref:r,...t,className:a})}),Tt=function({asChild:e,label:t,value:r,startIcon:a}){let n=e?or:"a",l=c({}),s=(0,k.useTabContext)();if(!s)throw new Error("Tab must be wrapped in a Tabs component");let i=s?.useState().activeId===r,p=i?"accent":"primary";return(0,E.jsx)(k.Tab,{id:r,className:l,render:(0,E.jsx)(n,{children:(0,E.jsxs)(P,{borderColor:i?"accent":"transparent",borderBottomWidth:"thick",spacingBottom:"3",spacingTop:"6",children:[a?(0,E.jsx)(v,{name:a,color:p,size:"m"}):null,(0,E.jsx)(f,{color:p,variant:"headline1",children:t})]})})})},Ct=(0,To.forwardRef)(function(e,t){let r=(0,k.useTabContext)();if(!r)throw new Error("TabPanel must be wrapped in a Tabs component");let a=r.useState("selectedId");return(0,E.jsx)(k.TabPanel,{ref:t,tabId:a,...e})});var St=require("react/jsx-runtime");function mo({className:o,disabled:e,backgroundColor:t=e?"secondary":"primary",borderColor:r="tertiary",borderWidth:a="thin",borderRadius:n="md",color:l="primary",placeholderColor:s="tertiary",spacingVertical:i="5",spacingHorizontal:p="6",fontSize:d="body1",...u}){return(0,St.jsx)("input",{type:"text","data-1p-ignore":!0,className:h(c({backgroundColor:t,borderColor:r,borderWidth:a,borderRadius:n,spacingVertical:i,spacingHorizontal:p,width:"full",fontSize:d,fontWeight:d,lineHeight:d,fontFamily:d,color:l,placeholderColor:s}),o),disabled:e,...u})}var uo=require("react/jsx-runtime");function fo({children:o,required:e}){return(0,uo.jsxs)(f,{variant:"caption2",children:[o,e&&(0,uo.jsx)(f,{variant:"caption2",as:"span",color:"alert",spacingStart:"2",children:"*"})]})}var eo=require("react/jsx-runtime");function kt({label:o,required:e,...t}){return(0,eo.jsxs)(S,{gap:"4",width:"full",children:[(0,eo.jsx)(fo,{required:e,children:o}),(0,eo.jsx)(mo,{required:e,...t})]})}var Xe=require("react-toastify");var Co=require("react/jsx-runtime"),tr=c({elevation:"3",borderRadius:"md",spacingVertical:"6",spacingHorizontal:"5",display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",columnGap:"5",overflow:"hidden",position:"relative",className:"cursor-pointer"}),rr=c({fontSize:"label2",lineHeight:"label2",fontWeight:"label2"}),ar=c({backgroundColor:"positive"}),nr=c({backgroundColor:"alert"}),sr=c({backgroundColor:"accent"}),ir=c({backgroundColor:"warning"}),lr=c({backgroundColor:"elevation-3-inverse"}),pr=c({backgroundColor:"elevation-3-inverse"}),cr=c({backgroundColor:"positive-wash",color:"positive"}),dr=c({backgroundColor:"alert-wash",color:"alert"}),br=c({backgroundColor:"accent-wash",color:"accent"}),mr=c({backgroundColor:"warning-wash",color:"warning"}),fr=c({backgroundColor:"elevation-3-inverse",color:"on-color"}),ur=c({backgroundColor:"elevation-3-inverse",color:"on-color"}),gr=o=>{let{type:e="default"}=o??{},t={success:cr,error:dr,info:br,warning:mr,default:fr,dark:ur}[e];return h(tr,t)};function yr(o){let{type:e="default",defaultClassName:t=""}=o??{},r={success:ar,error:nr,info:sr,warning:ir,default:lr,dark:pr}[e],a=t.replace(/Toastify__progress-bar-theme--light/,"");return h(a,r)}function hr({closeToast:o,type:e}){let t={success:"positive",error:"alert",info:"accent",warning:"warning",default:"on-color",dark:"white"}[e];return(0,Co.jsx)(bo,{name:"close",size:"s",variant:"accent-ghost",color:t,onClick:o})}function At(o){return(0,Co.jsx)(Xe.ToastContainer,{toastClassName:gr,bodyClassName:rr,progressClassName:yr,transition:Xe.Slide,closeButton:hr,...o})}0&&(module.exports={Accordion,Avatar,Button,Chip,Dropdown,DropdownItem,DropdownItemPressable,DropdownItems,DropdownTrigger,IconButton,Modal,ModalDismiss,ModalHeader,Popover,PopoverAnchor,PopoverArrow,PopoverDescription,PopoverDisclosure,PopoverDisclosureArrow,PopoverDismiss,PopoverHeading,PopoverProvider,Spinner,Tab,TabList,TabPanel,Table,Tabs,TextInput,TextInputGroup,TextInputLabel,ToastContainer,toast,useModalStore,usePopoverStore});
|
@@ -1 +1 @@
|
|
1
|
-
import{forwardRef as et}from"react";import{backgroundColors as Uo,borderRadii as Wo,borderWidths as Xo,elevations as $o,foregroundColors as Zo,lineColors as Ko,textVariants as wo}from"@yahoo/uds/fixtures";import Yo from"clsx";import{extendTailwindMerge as qo}from"tailwind-merge";function Ye(o){return typeof o=="boolean"?`${o}`:o===0?"0":o}var b="uds",Qr=`${b}-spectrum-color`,jr=`${b}-font`,ea=`${b}-icon-size`,oa=`${b}-avatar-size`,ta=`${b}-border-radius`,ra=`${b}-border-width`,aa=`${b}-spacing`,na=`${b}-font-size`,sa=`${b}-line-height`,ia=`${b}-font-weight`,la=`${b}-text-transform`,co=`${b}-color-mode-dark`,bo=`${b}-color-mode-light`,mo=`${b}-scale-mode-xsmall`,fo=`${b}-scale-mode-small`,uo=`${b}-scale-mode-medium`,go=`${b}-scale-mode-large`,yo=`${b}-scale-mode-xlarge`,ho=`${b}-scale-mode-xxlarge`,xo=`${b}-scale-mode-xxxlarge`;var pa=`--${b}-font-icons`,ca=`--${b}-font-sans`,da=`--${b}-font-sans-beta`,ba=`--${b}-font-sans-condensed`,ma=`--${b}-font-serif-display`,fa=`--${b}-font-serif-text`;var vo={color:{accent:"text-accent",alert:"text-alert",black:"text-black",brand:"text-brand",positive:"text-positive",warning:"text-warning",white:"text-white",transparent:"text-transparent",muted:"text-muted","on-color":"text-on-color",primary:"text-primary",secondary:"text-secondary",tertiary:"text-tertiary"},colorChecked:{accent:"data-[state=checked]:text-accent",alert:"data-[state=checked]:text-alert",black:"data-[state=checked]:text-black",brand:"data-[state=checked]:text-brand",positive:"data-[state=checked]:text-positive",warning:"data-[state=checked]:text-warning",white:"data-[state=checked]:text-white",transparent:"data-[state=checked]:text-transparent",primary:"data-[state=checked]:text-primary",secondary:"data-[state=checked]:text-secondary",muted:"data-[state=checked]:text-muted","on-color":"data-[state=checked]:text-on-color",tertiary:"data-[state=checked]:text-tertiary"},placeholderColor:{accent:"placeholder:text-accent",alert:"placeholder:text-alert",black:"placeholder:text-black",brand:"placeholder:text-brand",positive:"placeholder:text-positive",warning:"placeholder:text-warning",white:"placeholder:text-white",transparent:"placeholder:text-transparent",muted:"placeholder:text-muted","on-color":"placeholder:text-on-color",primary:"placeholder:text-primary",secondary:"placeholder:text-secondary",tertiary:"placeholder:text-tertiary"},fontFamily:{icons:"font-icons",sans:"font-sans","sans-beta":"font-sans-beta","sans-condensed":"font-sans-condensed","serif-text":"font-serif-text","serif-display":"font-serif-display",display1:"font-display1",display2:"font-display2",display3:"font-display3",title1:"font-title1",title2:"font-title2",title3:"font-title3",title4:"font-title4",headline1:"font-headline1",body1:"font-body1",label1:"font-label1",label2:"font-label2",caption1:"font-caption1",caption2:"font-caption2",legal1:"font-legal1"},fontSize:{display1:"font-size-display1",display2:"font-size-display2",display3:"font-size-display3",title1:"font-size-title1",title2:"font-size-title2",title3:"font-size-title3",title4:"font-size-title4",headline1:"font-size-headline1",body1:"font-size-body1",label1:"font-size-label1",label2:"font-size-label2",caption1:"font-size-caption1",caption2:"font-size-caption2",legal1:"font-size-legal1"},fontWeight:{thin:"font-weight-thin",extralight:"font-weight-extralight",light:"font-weight-light",regular:"font-weight-regular",medium:"font-weight-medium",semibold:"font-weight-semibold",bold:"font-weight-bold",extrabold:"font-weight-extrabold",black:"font-weight-black",display1:"font-weight-display1",display2:"font-weight-display2",display3:"font-weight-display3",title1:"font-weight-title1",title2:"font-weight-title2",title3:"font-weight-title3",title4:"font-weight-title4",headline1:"font-weight-headline1",body1:"font-weight-body1",label1:"font-weight-label1",label2:"font-weight-label2",caption1:"font-weight-caption1",caption2:"font-weight-caption2",legal1:"font-weight-legal1"},lineHeight:{display1:"leading-display1",display2:"leading-display2",display3:"leading-display3",title1:"leading-title1",title2:"leading-title2",title3:"leading-title3",title4:"leading-title4",headline1:"leading-headline1",body1:"leading-body1",label1:"leading-label1",label2:"leading-label2",caption1:"leading-caption1",caption2:"leading-caption2",legal1:"leading-legal1"},textAlign:{center:"text-center",justify:"text-justify",start:"text-start",end:"text-end"},textTransform:{display1:"case-display1",display2:"case-display2",display3:"case-display3",title1:"case-title1",title2:"case-title2",title3:"case-title3",title4:"case-title4",headline1:"case-headline1",body1:"case-body1",label1:"case-label1",label2:"case-label2",caption1:"case-caption1",caption2:"case-caption2",legal1:"case-legal1",none:"normal-case",uppercase:"uppercase",lowercase:"lowercase",capitalize:"capitalize"},spacing:{none:"p-[0px]",1:"p-1",2:"p-2",3:"p-3",4:"p-4",5:"p-5",6:"p-6",7:"p-7",8:"p-8",9:"p-9",10:"p-10",11:"p-11",12:"p-12",13:"p-13",14:"p-14"},spacingHorizontal:{none:"px-none",1:"px-1",2:"px-2",3:"px-3",4:"px-4",5:"px-5",6:"px-6",7:"px-7",8:"px-8",9:"px-9",10:"px-10",11:"px-11",12:"px-12",13:"px-13",14:"px-14"},spacingVertical:{none:"py-none",1:"py-1",2:"py-2",3:"py-3",4:"py-4",5:"py-5",6:"py-6",7:"py-7",8:"py-8",9:"py-9",10:"py-10",11:"py-11",12:"py-12",13:"py-13",14:"py-14"},spacingBottom:{none:"pb-none",1:"pb-1",2:"pb-2",3:"pb-3",4:"pb-4",5:"pb-5",6:"pb-6",7:"pb-7",8:"pb-8",9:"pb-9",10:"pb-10",11:"pb-11",12:"pb-12",13:"pb-13",14:"pb-14"},spacingEnd:{none:"pe-none",1:"pe-1",2:"pe-2",3:"pe-3",4:"pe-4",5:"pe-5",6:"pe-6",7:"pe-7",8:"pe-8",9:"pe-9",10:"pe-10",11:"pe-11",12:"pe-12",13:"pe-13",14:"pe-14"},spacingStart:{none:"ps-none",1:"ps-1",2:"ps-2",3:"ps-3",4:"ps-4",5:"ps-5",6:"ps-6",7:"ps-7",8:"ps-8",9:"ps-9",10:"ps-10",11:"ps-11",12:"ps-12",13:"ps-13",14:"ps-14"},spacingTop:{none:"pt-none",1:"pt-1",2:"pt-2",3:"pt-3",4:"pt-4",5:"pt-5",6:"pt-6",7:"pt-7",8:"pt-8",9:"pt-9",10:"pt-10",11:"pt-11",12:"pt-12",13:"pt-13",14:"pt-14"},offset:{none:"-m-none",1:"-m-1",2:"-m-2",3:"-m-3",4:"-m-4",5:"-m-5",6:"-m-6",7:"-m-7",8:"-m-8",9:"-m-9",10:"-m-10",11:"-m-11",12:"-m-12",13:"-m-13",14:"-m-14"},offsetVertical:{none:"-my-none",1:"-my-1",2:"-my-2",3:"-my-3",4:"-my-4",5:"-my-5",6:"-my-6",7:"-my-7",8:"-my-8",9:"-my-9",10:"-my-10",11:"-my-11",12:"-my-12",13:"-my-13",14:"-my-14"},offsetHorizontal:{none:"-mx-none",1:"-mx-1",2:"-mx-2",3:"-mx-3",4:"-mx-4",5:"-mx-5",6:"-mx-6",7:"-mx-7",8:"-mx-8",9:"-mx-9",10:"-mx-10",11:"-mx-11",12:"-mx-12",13:"-mx-13",14:"-mx-14"},offsetBottom:{none:"-mb-none",1:"-mb-1",2:"-mb-2",3:"-mb-3",4:"-mb-4",5:"-mb-5",6:"-mb-6",7:"-mb-7",8:"-mb-8",9:"-mb-9",10:"-mb-10",11:"-mb-11",12:"-mb-12",13:"-mb-13",14:"-mb-14"},offsetEnd:{none:"-me-none",1:"-me-1",2:"-me-2",3:"-me-3",4:"-me-4",5:"-me-5",6:"-me-6",7:"-me-7",8:"-me-8",9:"-me-9",10:"-me-10",11:"-me-11",12:"-me-12",13:"-me-13",14:"-me-14"},offsetStart:{none:"-ms-none",1:"-ms-1",2:"-ms-2",3:"-ms-3",4:"-ms-4",5:"-ms-5",6:"-ms-6",7:"-ms-7",8:"-ms-8",9:"-ms-9",10:"-ms-10",11:"-ms-11",12:"-ms-12",13:"-ms-13",14:"-ms-14"},offsetTop:{none:"-mt-none",1:"-mt-1",2:"-mt-2",3:"-mt-3",4:"-mt-4",5:"-mt-5",6:"-mt-6",7:"-mt-7",8:"-mt-8",9:"-mt-9",10:"-mt-10",11:"-mt-11",12:"-mt-12",13:"-mt-13",14:"-mt-14"},columnGap:{none:"gap-x-none",1:"gap-x-1",2:"gap-x-2",3:"gap-x-3",4:"gap-x-4",5:"gap-x-5",6:"gap-x-6",7:"gap-x-7",8:"gap-x-8",9:"gap-x-9",10:"gap-x-10",11:"gap-x-11",12:"gap-x-12",13:"gap-x-13",14:"gap-x-14"},rowGap:{none:"gap-y-none",1:"gap-y-1",2:"gap-y-2",3:"gap-y-3",4:"gap-y-4",5:"gap-y-5",6:"gap-y-6",7:"gap-y-7",8:"gap-y-8",9:"gap-y-9",10:"gap-y-10",11:"gap-y-11",12:"gap-y-12",13:"gap-y-13",14:"gap-y-14"},backgroundColor:{accent:"bg-accent",alert:"bg-alert",black:"bg-black",brand:"bg-brand",positive:"bg-positive",warning:"bg-warning",white:"bg-white","accent-wash":"bg-accent-wash","alert-wash":"bg-alert-wash","brand-wash":"bg-brand-wash","elevation-1":"bg-elevation-1","elevation-2":"bg-elevation-2","elevation-3":"bg-elevation-3","elevation-3-inverse":"bg-elevation-3-inverse",overlay:"bg-overlay","positive-wash":"bg-positive-wash",primary:"bg-primary",secondary:"bg-secondary",transparent:"bg-transparent","warning-wash":"bg-warning-wash"},backgroundColorOnActive:{accent:"active:bg-accent",alert:"active:bg-alert",black:"active:bg-black",brand:"active:bg-brand",positive:"active:bg-positive",warning:"active:bg-warning",white:"active:bg-white","accent-wash":"active:bg-accent-wash","alert-wash":"active:bg-alert-wash","brand-wash":"active:bg-brand-wash","elevation-1":"active:bg-elevation-1","elevation-2":"active:bg-elevation-2","elevation-3":"active:bg-elevation-3","elevation-3-inverse":"active:bg-elevation-3-inverse",overlay:"active:bg-overlay","positive-wash":"active:bg-positive-wash",primary:"active:bg-primary",secondary:"active:bg-secondary",transparent:"active:bg-transparent","warning-wash":"active:bg-warning-wash"},backgroundColorOnHover:{accent:"hover:bg-accent/80",alert:"hover:bg-alert/80",black:"hover:bg-black/80",brand:"hover:bg-brand/80",positive:"hover:bg-positive/80",warning:"hover:bg-warning/80",white:"hover:bg-white/80","accent-wash":"hover:bg-accent-wash/80","alert-wash":"hover:bg-alert-wash/80","brand-wash":"hover:bg-brand-wash/80","elevation-1":"hover:bg-elevation-1/80","elevation-2":"hover:bg-elevation-2/80","elevation-3":"hover:bg-elevation-3/80","elevation-3-inverse":"hover:bg-elevation-3-inverse/80",overlay:"hover:bg-overlay/80","positive-wash":"hover:bg-positive-wash/80",primary:"hover:bg-primary/80",secondary:"hover:bg-secondary/80",transparent:"hover:bg-transparent/80","warning-wash":"hover:bg-warning-wash/80"},backgroundColorOnChecked:{accent:"data-[state=checked]:bg-accent",alert:"data-[state=checked]:bg-alert",black:"data-[state=checked]:bg-black",brand:"data-[state=checked]:bg-brand",positive:"data-[state=checked]:bg-positive",warning:"data-[state=checked]:bg-warning",white:"data-[state=checked]:bg-white","accent-wash":"data-[state=checked]:bg-accent-wash","alert-wash":"data-[state=checked]:bg-alert-wash","brand-wash":"data-[state=checked]:bg-brand-wash","elevation-1":"data-[state=checked]:bg-elevation-1","elevation-2":"data-[state=checked]:bg-elevation-2","elevation-3":"data-[state=checked]:bg-elevation-3","elevation-3-inverse":"data-[state=checked]:bg-elevation-3-inverse",overlay:"data-[state=checked]:bg-overlay","positive-wash":"data-[state=checked]:bg-positive-wash",primary:"data-[state=checked]:bg-primary",secondary:"data-[state=checked]:bg-secondary",transparent:"data-[state=checked]:bg-transparent","warning-wash":"data-[state=checked]:bg-warning-wash"},backgroundColorOnFocus:{accent:"focus:bg-accent",alert:"focus:bg-alert",black:"focus:bg-black",brand:"focus:bg-brand",positive:"focus:bg-positive",warning:"focus:bg-warning",white:"focus:bg-white","accent-wash":"focus:bg-accent-wash","alert-wash":"focus:bg-alert-wash","brand-wash":"focus:bg-brand-wash","elevation-1":"focus:bg-elevation-1","elevation-2":"focus:bg-elevation-2","elevation-3":"focus:bg-elevation-3","elevation-3-inverse":"focus:bg-elevation-3-inverse",overlay:"focus:bg-overlay","positive-wash":"focus:bg-positive-wash",primary:"focus:bg-primary",secondary:"focus:bg-secondary",transparent:"focus:bg-transparent","warning-wash":"focus:bg-warning-wash"},elevation:{1:"bg-elevation-1 z-30 shadow-1",2:"bg-elevation-2 z-40 shadow-2",3:"bg-elevation-3 z-50 shadow-3"},opacity:{0:"opacity-0",5:"opacity-5",10:"opacity-10",20:"opacity-20",25:"opacity-25",30:"opacity-30",40:"opacity-40",50:"opacity-50",60:"opacity-60",70:"opacity-70",75:"opacity-75",80:"opacity-80",90:"opacity-90",95:"opacity-95",100:"opacity-100"},borderColor:{accent:"border-accent",alert:"border-alert",black:"border-black",brand:"border-brand",positive:"border-positive",warning:"border-warning",white:"border-white",transparent:"border-transparent",muted:"border-muted",primary:"border-primary",secondary:"border-secondary",tertiary:"border-tertiary"},borderColorOnActive:{accent:"active:border-accent",alert:"active:border-alert",black:"active:border-black",brand:"active:border-brand",positive:"active:border-positive",warning:"active:border-warning",white:"active:border-white",transparent:"active:border-transparent",muted:"active:border-muted",primary:"active:border-primary",secondary:"active:border-secondary",tertiary:"active:border-tertiary"},borderColorOnFocus:{accent:"focus:border-accent",alert:"focus:border-alert",black:"focus:border-black",brand:"focus:border-brand",positive:"focus:border-positive",warning:"focus:border-warning",white:"focus:border-white",transparent:"focus:border-transparent",muted:"focus:border-muted",primary:"focus:border-primary",secondary:"focus:border-secondary",tertiary:"focus:border-tertiary"},borderColorOnHover:{accent:"hover:border-accent",alert:"hover:border-alert",black:"hover:border-black",brand:"hover:border-brand",positive:"hover:border-positive",warning:"hover:border-warning",white:"hover:border-white",transparent:"hover:border-transparent",muted:"hover:border-muted",primary:"hover:border-primary",secondary:"hover:border-secondary",tertiary:"hover:border-tertiary"},borderColorOnChecked:{accent:"data-[state=checked]:border-accent",alert:"data-[state=checked]:border-alert",black:"data-[state=checked]:border-black",brand:"data-[state=checked]:border-brand",positive:"data-[state=checked]:border-positive",warning:"data-[state=checked]:border-warning",white:"data-[state=checked]:border-white",transparent:"data-[state=checked]:border-transparent",muted:"data-[state=checked]:border-muted",primary:"data-[state=checked]:border-primary",secondary:"data-[state=checked]:border-secondary",tertiary:"data-[state=checked]:border-tertiary"},borderStartColor:{accent:"border-s-accent",alert:"border-s-alert",black:"border-s-black",brand:"border-s-brand",positive:"border-s-positive",warning:"border-s-warning",white:"border-s-white",transparent:"border-s-transparent",muted:"border-s-muted",primary:"border-s-primary",secondary:"border-s-secondary",tertiary:"border-s-tertiary"},borderEndColor:{accent:"border-e-accent",alert:"border-e-alert",black:"border-e-black",brand:"border-e-brand",positive:"border-e-positive",warning:"border-e-warning",white:"border-e-white",transparent:"border-e-transparent",muted:"border-e-muted",primary:"border-e-primary",secondary:"border-e-secondary",tertiary:"border-e-tertiary"},borderBottomColor:{accent:"border-b-accent",alert:"border-b-alert",black:"border-b-black",brand:"border-b-brand",positive:"border-b-positive",warning:"border-b-warning",white:"border-b-white",transparent:"border-b-transparent",muted:"border-b-muted",primary:"border-b-primary",secondary:"border-b-secondary",tertiary:"border-b-tertiary"},borderTopColor:{accent:"border-t-accent",alert:"border-t-alert",black:"border-t-black",brand:"border-t-brand",positive:"border-t-positive",warning:"border-t-warning",white:"border-t-white",transparent:"border-t-transparent",muted:"border-t-muted",primary:"border-t-primary",secondary:"border-t-secondary",tertiary:"border-t-tertiary"},borderRadius:{none:"rounded-none",xs:"rounded-xs",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl",full:"rounded-full"},borderTopStartRadius:{none:"rounded-ss-none",xs:"rounded-ss-xs",sm:"rounded-ss-sm",md:"rounded-ss-md",lg:"rounded-ss-lg",xl:"rounded-ss-xl",full:"rounded-ss-full"},borderTopEndRadius:{none:"rounded-se-none",xs:"rounded-se-xs",sm:"rounded-se-sm",md:"rounded-se-md",lg:"rounded-se-lg",xl:"rounded-se-xl",full:"rounded-se-full"},borderBottomStartRadius:{none:"rounded-es-none",xs:"rounded-es-xs",sm:"rounded-es-sm",md:"rounded-es-md",lg:"rounded-es-lg",xl:"rounded-es-xl",full:"rounded-es-full"},borderBottomEndRadius:{none:"rounded-ee-none",xs:"rounded-ee-xs",sm:"rounded-ee-sm",md:"rounded-ee-md",lg:"rounded-ee-lg",xl:"rounded-ee-xl",full:"rounded-ee-full"},bordered:{true:"border-thin border-solid"},borderWidth:{none:"border-none",thin:"border-thin",medium:"border-medium",thick:"border-thick"},borderVerticalWidth:{none:"border-y-none",thin:"border-y-thin",medium:"border-y-medium",thick:"border-y-thick"},borderHorizontalWidth:{none:"border-x-none",thin:"border-x-thin",medium:"border-x-medium",thick:"border-x-thick"},borderStartWidth:{none:"border-s-none",thin:"border-s-thin",medium:"border-s-medium",thick:"border-s-thick"},borderEndWidth:{none:"border-e-none",thin:"border-e-thin",medium:"border-e-medium",thick:"border-e-thick"},borderTopWidth:{none:"border-t-none",thin:"border-t-thin",medium:"border-t-medium",thick:"border-t-thick"},borderBottomWidth:{none:"border-b-none",thin:"border-b-thin",medium:"border-b-medium",thick:"border-b-thick"},borderedVertical:{true:"border-y-thin"},borderedTop:{true:"border-t-thin"},borderedBottom:{true:"border-b-thin"},borderedHorizontal:{true:"border-x-thin"},borderedEnd:{true:"border-e-thin"},borderedStart:{true:"border-s-thin"},height:{auto:"h-auto",full:"h-full",screen:"h-screen",min:"h-min",max:"h-max",fit:"h-fit","1/2":"h-1/2","1/3":"h-1/3","2/3":"h-2/3","1/4":"h-1/4","2/4":"h-2/4","3/4":"h-3/4","1/5":"h-1/5","2/5":"h-2/5","3/5":"h-3/5","4/5":"h-4/5","1/6":"h-1/6","2/6":"h-2/6","3/6":"h-3/6","4/6":"h-4/6","5/6":"h-5/6"},minHeight:{full:"min-h-full",min:"min-h-min",max:"min-h-max",fit:"min-h-fit",screen:"min-h-screen"},maxHeight:{full:"max-h-full",min:"max-h-min",max:"max-h-max",fit:"max-h-fit",screen:"max-h-screen",none:"max-h-[0px]"},width:{auto:"w-auto",full:"w-full",screen:"w-screen",min:"w-min",max:"w-max",fit:"w-fit","1/2":"w-1/2","1/3":"w-1/3","2/3":"w-2/3","1/4":"w-1/4","2/4":"w-2/4","3/4":"w-3/4","1/5":"w-1/5","2/5":"w-2/5","3/5":"w-3/5","4/5":"w-4/5","1/6":"w-1/6","2/6":"w-2/6","3/6":"w-3/6","4/6":"w-4/6","5/6":"w-5/6","1/12":"w-1/12","2/12":"w-2/12","3/12":"w-3/12","4/12":"w-4/12","5/12":"w-5/12","6/12":"w-6/12","7/12":"w-7/12","8/12":"w-8/12","9/12":"w-9/12","10/12":"w-10/12","11/12":"w-11/12"},minWidth:{full:"min-w-full",min:"min-w-min",max:"min-w-max",fit:"min-w-fit",screen:"min-w-screen"},maxWidth:{none:"max-w-[0px]",full:"max-w-full",min:"max-w-min",max:"max-w-max",fit:"max-w-fit"},avatarSize:{s:"avatarSize-s",m:"avatarSize-m",l:"avatarSize-l"},iconSize:{s:"iconSize-s leading-none",m:"iconSize-m leading-none",l:"iconSize-l leading-none"},alignContent:{"flex-start":"content-start","flex-end":"content-end",center:"content-center",stretch:"content-stretch","space-between":"content-between","space-around":"content-around"},alignItems:{"flex-start":"items-start","flex-end":"items-end",center:"items-center",stretch:"items-stretch",baseline:"items-baseline"},alignSelf:{auto:"self-auto","flex-start":"self-start","flex-end":"self-end",center:"self-center",stretch:"self-stretch",baseline:"self-baseline"},flex:{1:"flex-1",auto:"flex-auto",initial:"flex-initial",none:"flex-none"},flexDirection:{row:"flex-row",column:"flex-col","row-reverse":"flex-row-reverse","column-reverse":"flex-col-reverse"},flexGrow:{0:"grow-0",1:"grow",2:"grow-[2]",3:"grow-[3]"},flexShrink:{0:"shrink-0",1:"shrink"},flexWrap:{wrap:"flex-wrap","wrap-reverse":"flex-wrap-reverse",nowrap:"flex-nowrap"},justifyContent:{"flex-start":"justify-start","flex-end":"justify-end",center:"justify-center","space-between":"justify-between","space-around":"justify-around","space-evenly":"justify-evenly"},flexBasis:{"min-content":"basis-[min-content]"},display:{block:"block","inline-block":"inline-block",inline:"inline",flex:"flex","inline-flex":"inline-flex",table:"table","inline-table":"inline-table","table-caption":"table-caption","table-cell":"table-cell","table-column":"table-column","table-column-group":"table-column-group","table-footer-group":"table-footer-group","table-header-group":"table-header-group","table-row-group":"table-row-group","table-row":"table-row","flow-root":"flow-root",grid:"grid",contents:"contents"},overflow:{auto:"overflow-auto",hidden:"overflow-hidden",clip:"overflow-clip",visible:"overflow-visible",scroll:"overflow-scroll"},overflowX:{auto:"overflow-x-auto",hidden:"overflow-x-hidden",clip:"overflow-x-clip",visible:"overflow-x-visible",scroll:"overflow-x-scroll"},overflowY:{auto:"overflow-y-auto",hidden:"overflow-y-hidden",clip:"overflow-y-clip",visible:"overflow-y-visible",scroll:"overflow-y-scroll"},position:{static:"static",fixed:"fixed",absolute:"absolute",relative:"relative",sticky:"sticky"},zIndex:{0:"z-0",10:"z-10",20:"z-20",30:"z-40",40:"z-30",50:"z-50",auto:"z-auto"},contentFit:{contain:"object-contain",cover:"object-cover",fill:"object-fill",none:"object-none","scale-down":"object-scale-down"},colorMode:{dark:co,light:bo},scaleMode:{xSmall:mo,small:fo,medium:uo,large:go,xLarge:yo,xxxLarge:xo,xxLarge:ho}};var Jo=qo({cacheSize:0,extend:{theme:{borderColor:Ko,borderWidth:Xo,borderRadius:Wo}},override:{classGroups:{"text-color":[{text:Zo}],"bg-color":[{bg:Uo}],"font-family":[{font:["icons",...wo]}],leading:[{leading:wo}],shadow:[{shadow:$o}]},conflictingClassGroups:{}}}),u=(...o)=>{let e=Yo(o);return Jo(e)},Qo=o=>e=>{if(!o?.variants)return u(o?.base,e?.className);let{variants:t,defaultVariants:r}=o,a=Object.keys(t).map(s=>{let i=e?.[s],p=r?.[s],d=Ye(i)||Ye(p);return t[s][d]}),n={...r,...e&&Object.entries(e).reduce((s,[i,p])=>typeof p>"u"?s:{...s,[i]:p},{})},l=o?.compoundVariants?.reduce((s,{className:i,...p})=>Object.entries(p).every(([d,f])=>n[d]===f)?u(s,i):s,"");return u(o?.base,a,l,e?.className)},c=Qo({variants:vo});import{Children as ze,cloneElement as To,forwardRef as Co,isValidElement as Ue}from"react";function jo(o,e){typeof o=="function"?o(e):o!=null&&(o.current=e)}function Po(...o){return e=>o.forEach(t=>jo(t,e))}import{jsx as So}from"react/jsx-runtime";function T(){let o=Co((n,l)=>{let{children:s,...i}=n,p=ze.toArray(s),d=p.find(r);if(d){let f=d.props.children,h=p.map(w=>w===d?ze.count(f)>1?ze.only(null):Ue(f)?f.props.children:null:w);return So(e,{...i,ref:l,children:Ue(f)?To(f,void 0,h):null})}return So(e,{...i,ref:l,children:s})});o.displayName="Slot";let e=Co((n,l)=>{let{children:s,...i}=n;return Ue(s)?To(s,{...a(i,s.props),ref:l?Po(l,s.ref):s.ref}):ze.count(s)>1?ze.only(null):null});e.displayName="SlotClone";let t=({children:n})=>n;function r(n){return Ue(n)&&n.type===t}function a(n,l){let s={...l};for(let i in l){let p=n[i],d=l[i];/^on[A-Z]/.test(i)?p&&d?s[i]=(...h)=>{d(...h),p(...h)}:p&&(s[i]=p):i==="style"&&(s[i]={...p,...d})}return{...n,...s}}return o}import{jsx as tt}from"react/jsx-runtime";var ot=T(),y=et(function({className:e,asChild:t=!1,size:r="l",color:a="primary",name:n,colorChecked:l,opacity:s,textAlign:i,backgroundColor:p,backgroundColorOnActive:d,backgroundColorOnHover:f,backgroundColorOnChecked:h,bordered:w,borderedTop:S,borderedBottom:k,borderedStart:A,borderedEnd:R,borderedHorizontal:E,borderedVertical:D,borderRadius:I,borderTopStartRadius:L,borderTopEndRadius:M,borderBottomStartRadius:H,borderBottomEndRadius:N,borderColor:_,borderColorOnActive:B,borderColorOnFocus:O,borderColorOnChecked:z,borderColorOnHover:V,borderStartColor:F,borderEndColor:G,borderTopColor:U,borderBottomColor:W,borderWidth:X,borderVerticalWidth:$,borderHorizontalWidth:Z,borderStartWidth:K,borderEndWidth:Y,borderTopWidth:q,borderBottomWidth:J,alignContent:Q,alignItems:j,alignSelf:ee,flex:oe,flexDirection:te,flexGrow:re,flexShrink:ae,flexWrap:ne,justifyContent:se,flexBasis:ie,display:le,zIndex:pe,overflow:ce,overflowX:de,overflowY:be,position:me,spacing:fe,spacingHorizontal:ue,spacingVertical:ge,spacingBottom:ye,spacingEnd:he,spacingStart:xe,spacingTop:ve,offset:we,offsetVertical:Pe,offsetHorizontal:Te,offsetBottom:Ce,offsetEnd:Se,offsetStart:ke,offsetTop:Ae,columnGap:Re,rowGap:Ee,height:De,minHeight:Ie,maxHeight:Le,width:Me,minWidth:He,maxWidth:_e,...Oe},Ge){let Ze=t?ot:"span",Ke=c({iconSize:r,color:a,colorChecked:l,opacity:s,fontFamily:"icons",textAlign:i,backgroundColor:p,backgroundColorOnActive:d,backgroundColorOnHover:f,backgroundColorOnChecked:h,bordered:w,borderedTop:S,borderedBottom:k,borderedStart:A,borderedEnd:R,borderedHorizontal:E,borderedVertical:D,borderRadius:I,borderTopStartRadius:L,borderTopEndRadius:M,borderBottomStartRadius:H,borderBottomEndRadius:N,borderColor:_,borderColorOnActive:B,borderColorOnFocus:O,borderColorOnChecked:z,borderColorOnHover:V,borderStartColor:F,borderEndColor:G,borderTopColor:U,borderBottomColor:W,borderWidth:X,borderVerticalWidth:$,borderHorizontalWidth:Z,borderStartWidth:K,borderEndWidth:Y,borderTopWidth:q,borderBottomWidth:J,alignContent:Q,alignItems:j,alignSelf:ee,flex:oe,flexDirection:te,flexGrow:re,flexShrink:ae,flexWrap:ne,justifyContent:se,flexBasis:ie,display:le,zIndex:pe,overflow:ce,overflowX:de,overflowY:be,position:me,spacing:fe,spacingHorizontal:ue,spacingVertical:ge,spacingBottom:ye,spacingEnd:he,spacingStart:xe,spacingTop:ve,offset:we,offsetVertical:Pe,offsetHorizontal:Te,offsetBottom:Ce,offsetEnd:Se,offsetStart:ke,offsetTop:Ae,columnGap:Re,rowGap:Ee,height:De,minHeight:Ie,maxHeight:Le,width:Me,minWidth:He,maxWidth:_e,className:e});return tt(Ze,{className:Ke,ref:Ge,...Oe,children:n})});import{forwardRef as rt}from"react";import{jsx as nt}from"react/jsx-runtime";var at=T(),x=rt(function({className:e,asChild:t,onPress:r,onClick:a=r,backgroundColor:n,backgroundColorOnActive:l,backgroundColorOnHover:s,backgroundColorOnChecked:i,elevation:p,opacity:d,bordered:f,borderedTop:h,borderedBottom:w,borderedStart:S,borderedEnd:k,borderedHorizontal:A,borderedVertical:R,borderRadius:E,borderTopStartRadius:D,borderTopEndRadius:I,borderBottomStartRadius:L,borderBottomEndRadius:M,borderColor:H,borderColorOnActive:N,borderColorOnFocus:_,borderColorOnChecked:B,borderColorOnHover:O,borderStartColor:z,borderEndColor:V,borderTopColor:F,borderBottomColor:G,borderWidth:U,borderVerticalWidth:W,borderHorizontalWidth:X,borderStartWidth:$,borderEndWidth:Z,borderTopWidth:K,borderBottomWidth:Y,alignContent:q,alignItems:J,alignSelf:Q,flex:j,flexDirection:ee,flexGrow:oe,flexShrink:te,flexWrap:re,justifyContent:ae,flexBasis:ne,display:se,zIndex:ie,overflow:le,overflowX:pe,overflowY:ce,position:de,spacing:be,spacingHorizontal:me,spacingVertical:fe,spacingBottom:ue,spacingEnd:ge,spacingStart:ye,spacingTop:he,offset:xe,offsetVertical:ve,offsetHorizontal:we,offsetBottom:Pe,offsetEnd:Te,offsetStart:Ce,offsetTop:Se,columnGap:ke,rowGap:Ae,height:Re,minHeight:Ee,maxHeight:De,width:Ie,minWidth:Le,maxWidth:Me,...He},_e){let Oe=c({backgroundColor:n,backgroundColorOnActive:l,backgroundColorOnHover:s,backgroundColorOnChecked:i,elevation:p,opacity:d,bordered:f,borderedTop:h,borderedBottom:w,borderedStart:S,borderedEnd:k,borderedHorizontal:A,borderedVertical:R,borderRadius:E,borderTopStartRadius:D,borderTopEndRadius:I,borderBottomStartRadius:L,borderBottomEndRadius:M,borderColor:H,borderColorOnActive:N,borderColorOnFocus:_,borderColorOnChecked:B,borderColorOnHover:O,borderStartColor:z,borderEndColor:V,borderTopColor:F,borderBottomColor:G,borderWidth:U,borderVerticalWidth:W,borderHorizontalWidth:X,borderStartWidth:$,borderEndWidth:Z,borderTopWidth:K,borderBottomWidth:Y,alignContent:q,alignItems:J,alignSelf:Q,flex:j,flexDirection:ee,flexGrow:oe,flexShrink:te,flexWrap:re,justifyContent:ae,flexBasis:ne,display:se,zIndex:ie,overflow:le,overflowX:pe,overflowY:ce,position:de,spacing:be,spacingHorizontal:me,spacingVertical:fe,spacingBottom:ue,spacingEnd:ge,spacingStart:ye,spacingTop:he,offset:xe,offsetVertical:ve,offsetHorizontal:we,offsetBottom:Pe,offsetEnd:Te,offsetStart:Ce,offsetTop:Se,columnGap:ke,rowGap:Ae,height:Re,minHeight:Ee,maxHeight:De,width:Ie,minWidth:Le,maxWidth:Me,className:e});return nt(t?at:"button",{className:Oe,ref:_e,onClick:a,...He})});import{forwardRef as st}from"react";import{jsx as pt}from"react/jsx-runtime";var it=T(),lt={display1:"h1",display2:"h1",display3:"h1",title1:"h1",title2:"h2",title3:"h3",title4:"h4",headline1:"h5",body1:"p",label1:"p",label2:"p",caption1:"p",caption2:"p",legal1:"p"},m=st(function({className:e,asChild:t,color:r="primary",colorChecked:a,variant:n="body1",as:l=lt[n],fontSize:s=n,fontFamily:i=n,fontWeight:p=n,lineHeight:d=n,textTransform:f=n,textAlign:h,backgroundColor:w,backgroundColorOnActive:S,backgroundColorOnHover:k,backgroundColorOnChecked:A,opacity:R,bordered:E,borderedTop:D,borderedBottom:I,borderedStart:L,borderedEnd:M,borderedHorizontal:H,borderedVertical:N,borderRadius:_,borderTopStartRadius:B,borderTopEndRadius:O,borderBottomStartRadius:z,borderBottomEndRadius:V,borderColor:F,borderColorOnActive:G,borderColorOnFocus:U,borderColorOnChecked:W,borderColorOnHover:X,borderStartColor:$,borderEndColor:Z,borderTopColor:K,borderBottomColor:Y,borderWidth:q,borderVerticalWidth:J,borderHorizontalWidth:Q,borderStartWidth:j,borderEndWidth:ee,borderTopWidth:oe,borderBottomWidth:te,alignContent:re,alignItems:ae,alignSelf:ne,flex:se,flexDirection:ie,flexGrow:le,flexShrink:pe,flexWrap:ce,justifyContent:de,flexBasis:be,display:me,zIndex:fe,overflow:ue,overflowX:ge,overflowY:ye,position:he,spacing:xe,spacingHorizontal:ve,spacingVertical:we,spacingBottom:Pe,spacingEnd:Te,spacingStart:Ce,spacingTop:Se,offset:ke,offsetVertical:Ae,offsetHorizontal:Re,offsetBottom:Ee,offsetEnd:De,offsetStart:Ie,offsetTop:Le,columnGap:Me,rowGap:He,height:_e,minHeight:Oe,maxHeight:Ge,width:Ze,minWidth:Ke,maxWidth:zo,...Vo},Fo){let Go=c({className:e,color:r,colorChecked:a,fontFamily:i,fontSize:s,fontWeight:p,lineHeight:d,textTransform:f,textAlign:h,backgroundColor:w,backgroundColorOnActive:S,backgroundColorOnHover:k,backgroundColorOnChecked:A,opacity:R,bordered:E,borderedTop:D,borderedBottom:I,borderedStart:L,borderedEnd:M,borderedHorizontal:H,borderedVertical:N,borderRadius:_,borderTopStartRadius:B,borderTopEndRadius:O,borderBottomStartRadius:z,borderBottomEndRadius:V,borderColor:F,borderColorOnActive:G,borderColorOnFocus:U,borderColorOnChecked:W,borderColorOnHover:X,borderStartColor:$,borderEndColor:Z,borderTopColor:K,borderBottomColor:Y,borderWidth:q,borderVerticalWidth:J,borderHorizontalWidth:Q,borderStartWidth:j,borderEndWidth:ee,borderTopWidth:oe,borderBottomWidth:te,alignContent:re,alignItems:ae,alignSelf:ne,flex:se,flexDirection:ie,flexGrow:le,flexShrink:pe,flexWrap:ce,justifyContent:de,flexBasis:be,display:me,zIndex:fe,overflow:ue,overflowX:ge,overflowY:ye,position:he,spacing:xe,spacingHorizontal:ve,spacingVertical:we,spacingBottom:Pe,spacingEnd:Te,spacingStart:Ce,spacingTop:Se,offset:ke,offsetVertical:Ae,offsetHorizontal:Re,offsetBottom:Ee,offsetEnd:De,offsetStart:Ie,offsetTop:Le,columnGap:Me,rowGap:He,height:_e,minHeight:Oe,maxHeight:Ge,width:Ze,minWidth:Ke,maxWidth:zo});return pt(t?it:l,{className:Go,ref:Fo,...Vo})});import{forwardRef as mt}from"react";import{forwardRef as ct}from"react";import{jsx as bt}from"react/jsx-runtime";var dt=T(),C=ct(function({asChild:e,className:t,elevation:r,backgroundColor:a=r?`elevation-${r}`:void 0,backgroundColorOnActive:n,backgroundColorOnHover:l,backgroundColorOnChecked:s,opacity:i,bordered:p,borderedTop:d,borderedBottom:f,borderedStart:h,borderedEnd:w,borderedHorizontal:S,borderedVertical:k,borderRadius:A,borderTopStartRadius:R,borderTopEndRadius:E,borderBottomStartRadius:D,borderBottomEndRadius:I,borderColor:L,borderColorOnActive:M,borderColorOnFocus:H,borderColorOnChecked:N,borderColorOnHover:_,borderStartColor:B,borderEndColor:O,borderTopColor:z,borderBottomColor:V,borderWidth:F,borderVerticalWidth:G,borderHorizontalWidth:U,borderStartWidth:W,borderEndWidth:X,borderTopWidth:$,borderBottomWidth:Z,alignContent:K,alignItems:Y,alignSelf:q,flex:J,flexDirection:Q,flexGrow:j,flexShrink:ee,flexWrap:oe,justifyContent:te,flexBasis:re,display:ae="flex",zIndex:ne,overflow:se,overflowX:ie,overflowY:le,position:pe,spacing:ce,spacingHorizontal:de,spacingVertical:be,spacingBottom:me,spacingEnd:fe,spacingStart:ue,spacingTop:ge,offset:ye,offsetVertical:he,offsetHorizontal:xe,offsetBottom:ve,offsetEnd:we,offsetStart:Pe,offsetTop:Te,columnGap:Ce,rowGap:Se,height:ke,minHeight:Ae,maxHeight:Re,width:Ee,minWidth:De,maxWidth:Ie,...Le},Me){let He=c({elevation:r,backgroundColor:a,backgroundColorOnActive:n,backgroundColorOnHover:l,backgroundColorOnChecked:s,opacity:i,bordered:p,borderedTop:d,borderedBottom:f,borderedStart:h,borderedEnd:w,borderedHorizontal:S,borderedVertical:k,borderRadius:A,borderTopStartRadius:R,borderTopEndRadius:E,borderBottomStartRadius:D,borderBottomEndRadius:I,borderColor:L,borderColorOnActive:M,borderColorOnFocus:H,borderColorOnChecked:N,borderColorOnHover:_,borderStartColor:B,borderEndColor:O,borderTopColor:z,borderBottomColor:V,borderWidth:F,borderVerticalWidth:G,borderHorizontalWidth:U,borderStartWidth:W,borderEndWidth:X,borderTopWidth:$,borderBottomWidth:Z,alignContent:K,alignItems:Y,alignSelf:q,flex:J,flexDirection:Q,flexGrow:j,flexShrink:ee,flexWrap:oe,justifyContent:te,flexBasis:re,display:ae,zIndex:ne,overflow:se,overflowX:ie,overflowY:le,position:pe,spacing:ce,spacingHorizontal:de,spacingVertical:be,spacingBottom:me,spacingEnd:fe,spacingStart:ue,spacingTop:ge,offset:ye,offsetVertical:he,offsetHorizontal:xe,offsetBottom:ve,offsetEnd:we,offsetStart:Pe,offsetTop:Te,columnGap:Ce,rowGap:Se,height:ke,minHeight:Ae,maxHeight:Re,width:Ee,minWidth:De,maxWidth:Ie,className:t});return bt(e?dt:"div",{className:He,ref:Me,...Le})});import{jsx as ft}from"react/jsx-runtime";var P=mt(function({gap:e,...t},r){return ft(C,{ref:r,flexDirection:"column",columnGap:e,rowGap:e,...t})});import{Fragment as gt,jsx as We,jsxs as ko}from"react/jsx-runtime";function ut({label:o,children:e,onClick:t,open:r,spacingHorizontal:a="6",_content:n,...l}){return ko(gt,{children:[ko(x,{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",spacingVertical:"6",spacingHorizontal:a,backgroundColorOnHover:"secondary",borderRadius:"md",width:"full",onClick:t,...l,children:[We(m,{variant:"title4",children:o}),We(y,{name:r?"chevronDown":"chevronUp",size:"s"})]}),We(P,{overflow:"hidden",maxHeight:r?"full":"none",className:"transition-[max-height] duration-500 ease-in-out",spacingHorizontal:a,...n,children:We(P,{minHeight:"min",children:e})})]})}var Ao={display:"inline-flex",alignItems:"center",justifyContent:"center",overflow:"hidden",backgroundColor:"primary",contentFit:"cover"},qe={base:{display:"inline-flex",alignItems:"center",justifyContent:"center",borderRadius:"full",minWidth:"fit"},variant:{accent:{color:"on-color",backgroundColor:"accent",borderColor:"accent",bordered:!0},"accent-outline":{color:"accent",backgroundColor:"transparent",borderColor:"accent",bordered:!0},"accent-ghost":{color:"accent"},"accent-wash":{color:"accent",backgroundColor:"accent-wash",borderColor:"accent",bordered:!0},brand:{color:"on-color",backgroundColor:"brand",borderColor:"brand",bordered:!0},"brand-outline":{color:"brand",backgroundColor:"transparent",borderColor:"brand",bordered:!0},"brand-ghost":{color:"brand"},"brand-wash":{color:"brand",backgroundColor:"brand-wash",borderColor:"brand",bordered:!0},positive:{color:"on-color",backgroundColor:"positive",borderColor:"positive",bordered:!0},"positive-outline":{color:"positive",backgroundColor:"transparent",borderColor:"positive",bordered:!0},"positive-ghost":{color:"positive"},"positive-wash":{color:"positive",backgroundColor:"positive-wash",borderColor:"positive",bordered:!0},alert:{color:"on-color",backgroundColor:"alert",borderColor:"alert",bordered:!0},"alert-outline":{color:"alert",backgroundColor:"transparent",borderColor:"alert",bordered:!0},"alert-ghost":{color:"alert"},"alert-wash":{color:"alert",backgroundColor:"alert-wash",borderColor:"alert",bordered:!0},warning:{color:"on-color",backgroundColor:"warning",borderColor:"warning",bordered:!0},"warning-outline":{color:"warning",backgroundColor:"transparent",borderColor:"warning",bordered:!0},"warning-ghost":{color:"warning"},"warning-wash":{color:"warning",backgroundColor:"warning-wash",borderColor:"warning",bordered:!0},"primary-outline":{color:"primary",borderColor:"muted",bordered:!0},"primary-ghost":{color:"primary"},secondary:{backgroundColor:"secondary",color:"primary"}},size:{s:{variant:"label1",spacingHorizontal:"6",spacingVertical:"4",columnGap:"4"},m:{variant:"headline1",spacingHorizontal:"7",spacingVertical:"5",columnGap:"4"},l:{variant:"headline1",spacingHorizontal:"8",spacingVertical:"6",columnGap:"4"}}};function Be({variant:o="accent",size:e="s"}){let{color:t,...r}=qe.variant[o],{variant:a,...n}=qe.size[e];return{pressable:{...qe.base,...r,...n},text:{color:t,variant:a,textAlign:"center"},icon:{color:t,size:"s"}}}import{jsx as ht}from"react/jsx-runtime";function yt({size:o,shape:e,src:t,alt:r,...a}){let n=c({...Ao,avatarSize:o,borderRadius:e});return ht("img",{src:t,alt:r,className:n,...a})}import{forwardRef as xt}from"react";import{jsx as Je,jsxs as vt}from"react/jsx-runtime";var Qe=xt(function({variant:e="accent",size:t,startIcon:r,endIcon:a,children:n,...l},s){let i=Be({variant:e,size:t}),p=r?Je(y,{name:r,...i.icon}):null,d=a?Je(y,{name:a,...i.icon}):null;return vt(x,{...i.pressable,ref:s,...l,children:[p,Je(m,{...i.text,children:n}),d]})});import{jsx as je,jsxs as Tt}from"react/jsx-runtime";var Ro={accent:"on-color",secondary:"primary"},wt={accent:"on-color",secondary:"tertiary"};function Pt({children:o,variant:e,startIcon:t,startContent:r=t?je(y,{name:t,size:"s",color:Ro[e]}):null,endIcon:a,endContent:n=a?je(y,{name:a,size:"s",color:Ro[e]}):null}){return Tt(x,{display:"inline-flex",flexDirection:"row",columnGap:"4",borderRadius:"full",backgroundColor:e,alignItems:"center",spacingVertical:"4",spacingHorizontal:"5",children:[r,je(m,{variant:"label2",color:wt[e],children:o}),n]})}import{Popover as kt,PopoverAnchor as At,PopoverArrow as Rt,PopoverDescription as Et,PopoverDisclosure as Dt,PopoverDisclosureArrow as It,PopoverDismiss as Lt,PopoverHeading as Mt,PopoverProvider as Ht,usePopoverStore as eo}from"@ariakit/react";import{forwardRef as Ct}from"react";import{jsx as St}from"react/jsx-runtime";var Xe=Ct(function({gap:e,...t},r){return St(C,{ref:r,flexDirection:"row",rowGap:e,columnGap:e,...t})});import{jsx as Eo,jsxs as Vt}from"react/jsx-runtime";function Nt({children:o,leading:e,trailing:t}){return Vt(Xe,{children:[e,Eo(m,{variant:"headline1",asChild:!0,children:Eo(Mt,{children:o})}),t]})}var oo=kt,to=Rt,_t=At,Bt=Et,Ot=Lt,ro=Ht,ao=Dt,zt=It;var Ft=ro;import{forwardRef as Gt,useCallback as Ut}from"react";import{jsx as Wt}from"react/jsx-runtime";var no=Gt(function({children:e,onClick:t,...r},a){let n=eo(),l=Ut(s=>{s.preventDefault(),t?.(()=>n.setOpen(!1))},[t,n]);return Wt(x,{display:"flex",flexDirection:"row",alignItems:"flex-start",spacingVertical:"6",spacingHorizontal:"8",columnGap:"5",borderColor:"muted",className:"hover:bg-gray-2",onClick:t?l:void 0,ref:a,...r,children:e})});import{jsx as $e,jsxs as Do}from"react/jsx-runtime";function Xt({title:o,description:e,_title:t,_description:r,startIcon:a,endIcon:n,...l}){return Do(no,{...l,children:[a&&$e(y,{name:a,size:"s"}),Do(P,{gap:"3",alignItems:"flex-start",children:[o&&$e(m,{variant:"headline1",...t,children:o}),e&&$e(m,{variant:"label2",color:"muted",...r,children:e})]}),n&&$e(y,{name:n,size:"s"})]})}import{forwardRef as $t}from"react";import{jsx as Io,jsxs as Kt}from"react/jsx-runtime";var Zt=$t(function({children:e,className:t,overflow:r="scroll",...a},n){return Io(P,{borderRadius:"lg",elevation:"3",className:u("max-h-[312px] min-w-[220px]",t),overflow:r,spacingVertical:"4",asChild:!0,children:Kt(oo,{preventBodyScroll:!0,...a,ref:n,children:[Io(to,{className:"!fill-elevation-3 !stroke-muted !stroke-1"}),e]})})});import{jsx as Lo}from"react/jsx-runtime";function Yt({children:o,variant:e,size:t,...r}){let a=Be({variant:e,size:t}),n=e?a.pressable:{display:"flex",flexDirection:"row",alignItems:"center",columnGap:"6",justifyContent:"space-between"};return Lo(x,{...n,...r,asChild:!0,children:Lo(ao,{children:o})})}import{forwardRef as qt}from"react";import{jsx as Mo}from"react/jsx-runtime";var Jt={s:"w-[36px] h-[36px]",m:"w-[48px] h-[48px]",l:"w-[64px] h-[64px]"},so=qt(function({variant:e="accent",size:t="s",name:r,className:a,color:n,...l},s){let i=Be({variant:e,size:t});return Mo(x,{...i.pressable,spacingHorizontal:i.pressable.spacingVertical,ref:s,className:u("leading-[0px]",Jt[t],a),...l,children:Mo(y,{name:r,...i.icon,color:n})})});import{Dialog as Qt,DialogDismiss as jt,useDialogStore as er}from"@ariakit/react";import{jsx as Ve,jsxs as nr}from"react/jsx-runtime";function or(o){return er({animated:!0,...o})}function tr({children:o,handleClose:e}){return nr(Xe,{alignItems:"center",justifyContent:"space-between",children:[Ve(m,{variant:"headline1",children:o}),Ve(Qe,{variant:"accent-ghost",size:"m",spacingEnd:"none",spacingVertical:"none",onClick:e,children:"close"})]})}function rr({className:o,...e}){return Ve(P,{borderRadius:"md",elevation:"3",position:"fixed",height:"fit",zIndex:"50",className:u("inset-8 top-[250px] mx-auto w-[600px] origin-center scale-95 opacity-0 transition duration-150 data-[enter]:scale-100 data-[enter]:opacity-100",o),spacing:"8",asChild:!0,overflow:"hidden",children:Ve(Qt,{backdrop:Ve("div",{className:"data-[enter]:bg-overlay opacity-0 backdrop-blur-0 transition duration-150 data-[enter]:opacity-100 data-[enter]:backdrop-blur-sm"}),...e})})}var ar=jt;import{jsx as io,jsxs as Ho}from"react/jsx-runtime";function sr({className:o,...e}){return Ho("div",{role:"status",className:u("self-center",o),...e,style:{width:8,maxWidth:8,height:8,maxHeight:8},children:[Ho("svg",{"aria-hidden":"true",className:"text-gray-3 fill-accent h-8 w-8 animate-spin",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[io("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),io("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]}),io("span",{className:"sr-only",children:"Loading..."})]})}import{forwardRef as Fe,isValidElement as ir}from"react";import{jsx as g,jsxs as mr}from"react/jsx-runtime";var lr=Fe(function({children:e,className:t,display:r="table",overflow:a="hidden",borderColor:n="muted",elevation:l="1",borderRadius:s="md",...i},p){return g(C,{asChild:!0,borderColor:n,elevation:l,borderRadius:s,className:t,overflow:a,display:r,...i,children:g("table",{ref:p,children:e})})}),pr=Fe(function({children:e,display:t="table-row",...r},a){return g(C,{asChild:!0,display:t,...r,children:g("tr",{ref:a,children:e})})}),cr=Fe(function({children:e,display:t="table-header-group",...r},a){return g(C,{asChild:!0,display:t,...r,children:g("thead",{ref:a,children:e})})}),dr=Fe(function({children:e,display:t="table-row-group",...r},a){return g(C,{asChild:!0,display:t,...r,children:g("tbody",{ref:a,children:e})})}),br=Fe(function({asHeaderCell:e,className:t,display:r="table-cell",spacing:a="5",borderBottomColor:n="muted",color:l="primary",...s},i){let p=c({textAlign:"start",className:t});return g(m,{asChild:!0,variant:e?"headline1":"body1",color:l,display:r,spacing:a,borderBottomColor:n,borderedBottom:!0,className:p,children:g(e?"th":"td",{scope:e==="row"?"row":e?"column":void 0,...s,ref:i})})});v.Root=lr;v.Row=pr;v.Header=cr;v.Body=dr;v.Cell=br;function v({data:o,columns:e}){return mr(v.Root,{children:[g(v.Header,{children:g(v.Row,{children:e.map((t,r)=>g(v.Cell,{asHeaderCell:"column",children:t.title},r))})}),g(v.Body,{children:o.map((t,r)=>g(v.Row,{children:e.map((a,n)=>{let l=t[a.dataIndex];return g(v.Cell,{children:a.render?a.render(l,t,r):ir(l)?l:String(l)},n)})},r))})]})}import{Tab as fr,TabList as ur,TabPanel as gr,TabProvider as yr,useTabContext as No}from"@ariakit/react";import{forwardRef as _o}from"react";import{jsx as Ne,jsxs as Tr}from"react/jsx-runtime";var hr=T();function xr(o){return Ne(yr,{...o})}var vr=_o(function({className:e,...t},r){let a=c({display:"flex",flexDirection:"row",columnGap:"7",className:e});return Ne(ur,{ref:r,...t,className:a})}),wr=function({asChild:e,label:t,value:r,startIcon:a}){let n=e?hr:"a",l=c({}),s=No();if(!s)throw new Error("Tab must be wrapped in a Tabs component");let i=s?.useState().activeId===r,p=i?"accent":"primary";return Ne(fr,{id:r,className:l,render:Ne(n,{children:Tr(x,{borderColor:i?"accent":"transparent",borderBottomWidth:"thick",spacingVertical:"6",flexDirection:"row",columnGap:"8",children:[a?Ne(y,{name:a,color:p,size:"m"}):null,Ne(m,{color:p,variant:"headline1",children:t})]})})})},Pr=_o(function(e,t){let r=No();if(!r)throw new Error("TabPanel must be wrapped in a Tabs component");let a=r.useState("selectedId");return Ne(gr,{ref:t,tabId:a,...e})});import{jsx as Cr}from"react/jsx-runtime";function lo({className:o,disabled:e,backgroundColor:t=e?"secondary":"primary",borderColor:r="tertiary",borderWidth:a="thin",borderRadius:n="md",color:l="primary",placeholderColor:s="tertiary",spacingVertical:i="5",spacingHorizontal:p="6",fontSize:d="body1",...f}){return Cr("input",{type:"text","data-1p-ignore":!0,className:u(c({backgroundColor:t,borderColor:r,borderWidth:a,borderRadius:n,spacingVertical:i,spacingHorizontal:p,width:"full",fontSize:d,fontWeight:d,lineHeight:d,fontFamily:d,color:l,placeholderColor:s}),o),disabled:e,...f})}import{jsx as Sr,jsxs as kr}from"react/jsx-runtime";function po({children:o,required:e}){return kr(m,{variant:"caption2",children:[o,e&&Sr(m,{variant:"caption2",as:"span",color:"alert",spacingStart:"2",children:"*"})]})}import{jsx as Bo,jsxs as Rr}from"react/jsx-runtime";function Ar({label:o,required:e,...t}){return Rr(P,{gap:"4",width:"full",children:[Bo(po,{required:e,children:o}),Bo(lo,{required:e,...t})]})}import{Slide as Er,toast as Dr,ToastContainer as Ir}from"react-toastify";import{jsx as Oo}from"react/jsx-runtime";var Lr=c({elevation:"3",borderRadius:"md",spacingVertical:"6",spacingHorizontal:"5",display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",columnGap:"5",overflow:"hidden",position:"relative",className:"cursor-pointer"}),Mr=c({fontSize:"label2",lineHeight:"label2",fontWeight:"label2"}),Hr=c({backgroundColor:"positive"}),Nr=c({backgroundColor:"alert"}),_r=c({backgroundColor:"accent"}),Br=c({backgroundColor:"warning"}),Or=c({backgroundColor:"elevation-3-inverse"}),zr=c({backgroundColor:"elevation-3-inverse"}),Vr=c({backgroundColor:"positive-wash",color:"positive"}),Fr=c({backgroundColor:"alert-wash",color:"alert"}),Gr=c({backgroundColor:"accent-wash",color:"accent"}),Ur=c({backgroundColor:"warning-wash",color:"warning"}),Wr=c({backgroundColor:"elevation-3-inverse",color:"on-color"}),Xr=c({backgroundColor:"elevation-3-inverse",color:"on-color"}),$r=o=>{let{type:e="default"}=o??{},t={success:Vr,error:Fr,info:Gr,warning:Ur,default:Wr,dark:Xr}[e];return u(Lr,t)};function Zr(o){let{type:e="default",defaultClassName:t=""}=o??{},r={success:Hr,error:Nr,info:_r,warning:Br,default:Or,dark:zr}[e],a=t.replace(/Toastify__progress-bar-theme--light/,"");return u(a,r)}function Kr({closeToast:o,type:e}){let t={success:"positive",error:"alert",info:"accent",warning:"warning",default:"on-color",dark:"white"}[e];return Oo(so,{name:"close",size:"s",variant:"accent-ghost",color:t,onClick:o})}function Yr(o){return Oo(Ir,{toastClassName:$r,bodyClassName:Mr,progressClassName:Zr,transition:Er,closeButton:Kr,...o})}export{ut as Accordion,yt as Avatar,Qe as Button,Pt as Chip,Ft as Dropdown,Xt as DropdownItem,no as DropdownItemPressable,Zt as DropdownItems,Yt as DropdownTrigger,so as IconButton,rr as Modal,ar as ModalDismiss,tr as ModalHeader,oo as Popover,_t as PopoverAnchor,to as PopoverArrow,Bt as PopoverDescription,ao as PopoverDisclosure,zt as PopoverDisclosureArrow,Ot as PopoverDismiss,Nt as PopoverHeading,ro as PopoverProvider,sr as Spinner,wr as Tab,vr as TabList,Pr as TabPanel,v as Table,xr as Tabs,lo as TextInput,Ar as TextInputGroup,po as TextInputLabel,Yr as ToastContainer,Dr as toast,or as useModalStore,eo as usePopoverStore};
|
1
|
+
import{forwardRef as et}from"react";import{backgroundColors as Uo,borderRadii as Wo,borderWidths as Xo,elevations as $o,foregroundColors as Zo,lineColors as Ko,textVariants as wo}from"@yahoo/uds/fixtures";import Yo from"clsx";import{extendTailwindMerge as qo}from"tailwind-merge";function Ye(o){return typeof o=="boolean"?`${o}`:o===0?"0":o}var b="uds",Qr=`${b}-spectrum-color`,jr=`${b}-font`,ea=`${b}-icon-size`,oa=`${b}-avatar-size`,ta=`${b}-border-radius`,ra=`${b}-border-width`,aa=`${b}-spacing`,na=`${b}-font-size`,sa=`${b}-line-height`,ia=`${b}-font-weight`,la=`${b}-text-transform`,co=`${b}-color-mode-dark`,bo=`${b}-color-mode-light`,mo=`${b}-scale-mode-xsmall`,fo=`${b}-scale-mode-small`,uo=`${b}-scale-mode-medium`,go=`${b}-scale-mode-large`,yo=`${b}-scale-mode-xlarge`,ho=`${b}-scale-mode-xxlarge`,xo=`${b}-scale-mode-xxxlarge`;var pa=`--${b}-font-icons`,ca=`--${b}-font-sans`,da=`--${b}-font-sans-beta`,ba=`--${b}-font-sans-condensed`,ma=`--${b}-font-serif-display`,fa=`--${b}-font-serif-text`;var vo={color:{accent:"text-accent",alert:"text-alert",black:"text-black",brand:"text-brand",positive:"text-positive",warning:"text-warning",white:"text-white",transparent:"text-transparent",muted:"text-muted","on-color":"text-on-color",primary:"text-primary",secondary:"text-secondary",tertiary:"text-tertiary"},colorChecked:{accent:"data-[state=checked]:text-accent",alert:"data-[state=checked]:text-alert",black:"data-[state=checked]:text-black",brand:"data-[state=checked]:text-brand",positive:"data-[state=checked]:text-positive",warning:"data-[state=checked]:text-warning",white:"data-[state=checked]:text-white",transparent:"data-[state=checked]:text-transparent",primary:"data-[state=checked]:text-primary",secondary:"data-[state=checked]:text-secondary",muted:"data-[state=checked]:text-muted","on-color":"data-[state=checked]:text-on-color",tertiary:"data-[state=checked]:text-tertiary"},placeholderColor:{accent:"placeholder:text-accent",alert:"placeholder:text-alert",black:"placeholder:text-black",brand:"placeholder:text-brand",positive:"placeholder:text-positive",warning:"placeholder:text-warning",white:"placeholder:text-white",transparent:"placeholder:text-transparent",muted:"placeholder:text-muted","on-color":"placeholder:text-on-color",primary:"placeholder:text-primary",secondary:"placeholder:text-secondary",tertiary:"placeholder:text-tertiary"},fontFamily:{icons:"font-icons",sans:"font-sans","sans-beta":"font-sans-beta","sans-condensed":"font-sans-condensed","serif-text":"font-serif-text","serif-display":"font-serif-display",display1:"font-display1",display2:"font-display2",display3:"font-display3",title1:"font-title1",title2:"font-title2",title3:"font-title3",title4:"font-title4",headline1:"font-headline1",body1:"font-body1",label1:"font-label1",label2:"font-label2",caption1:"font-caption1",caption2:"font-caption2",legal1:"font-legal1"},fontSize:{display1:"font-size-display1",display2:"font-size-display2",display3:"font-size-display3",title1:"font-size-title1",title2:"font-size-title2",title3:"font-size-title3",title4:"font-size-title4",headline1:"font-size-headline1",body1:"font-size-body1",label1:"font-size-label1",label2:"font-size-label2",caption1:"font-size-caption1",caption2:"font-size-caption2",legal1:"font-size-legal1"},fontWeight:{thin:"font-weight-thin",extralight:"font-weight-extralight",light:"font-weight-light",regular:"font-weight-regular",medium:"font-weight-medium",semibold:"font-weight-semibold",bold:"font-weight-bold",extrabold:"font-weight-extrabold",black:"font-weight-black",display1:"font-weight-display1",display2:"font-weight-display2",display3:"font-weight-display3",title1:"font-weight-title1",title2:"font-weight-title2",title3:"font-weight-title3",title4:"font-weight-title4",headline1:"font-weight-headline1",body1:"font-weight-body1",label1:"font-weight-label1",label2:"font-weight-label2",caption1:"font-weight-caption1",caption2:"font-weight-caption2",legal1:"font-weight-legal1"},lineHeight:{display1:"leading-display1",display2:"leading-display2",display3:"leading-display3",title1:"leading-title1",title2:"leading-title2",title3:"leading-title3",title4:"leading-title4",headline1:"leading-headline1",body1:"leading-body1",label1:"leading-label1",label2:"leading-label2",caption1:"leading-caption1",caption2:"leading-caption2",legal1:"leading-legal1"},textAlign:{center:"text-center",justify:"text-justify",start:"text-start",end:"text-end"},textTransform:{display1:"case-display1",display2:"case-display2",display3:"case-display3",title1:"case-title1",title2:"case-title2",title3:"case-title3",title4:"case-title4",headline1:"case-headline1",body1:"case-body1",label1:"case-label1",label2:"case-label2",caption1:"case-caption1",caption2:"case-caption2",legal1:"case-legal1",none:"normal-case",uppercase:"uppercase",lowercase:"lowercase",capitalize:"capitalize"},spacing:{none:"p-[0px]",1:"p-1",2:"p-2",3:"p-3",4:"p-4",5:"p-5",6:"p-6",7:"p-7",8:"p-8",9:"p-9",10:"p-10",11:"p-11",12:"p-12",13:"p-13",14:"p-14"},spacingHorizontal:{none:"px-none",1:"px-1",2:"px-2",3:"px-3",4:"px-4",5:"px-5",6:"px-6",7:"px-7",8:"px-8",9:"px-9",10:"px-10",11:"px-11",12:"px-12",13:"px-13",14:"px-14"},spacingVertical:{none:"py-none",1:"py-1",2:"py-2",3:"py-3",4:"py-4",5:"py-5",6:"py-6",7:"py-7",8:"py-8",9:"py-9",10:"py-10",11:"py-11",12:"py-12",13:"py-13",14:"py-14"},spacingBottom:{none:"pb-none",1:"pb-1",2:"pb-2",3:"pb-3",4:"pb-4",5:"pb-5",6:"pb-6",7:"pb-7",8:"pb-8",9:"pb-9",10:"pb-10",11:"pb-11",12:"pb-12",13:"pb-13",14:"pb-14"},spacingEnd:{none:"pe-none",1:"pe-1",2:"pe-2",3:"pe-3",4:"pe-4",5:"pe-5",6:"pe-6",7:"pe-7",8:"pe-8",9:"pe-9",10:"pe-10",11:"pe-11",12:"pe-12",13:"pe-13",14:"pe-14"},spacingStart:{none:"ps-none",1:"ps-1",2:"ps-2",3:"ps-3",4:"ps-4",5:"ps-5",6:"ps-6",7:"ps-7",8:"ps-8",9:"ps-9",10:"ps-10",11:"ps-11",12:"ps-12",13:"ps-13",14:"ps-14"},spacingTop:{none:"pt-none",1:"pt-1",2:"pt-2",3:"pt-3",4:"pt-4",5:"pt-5",6:"pt-6",7:"pt-7",8:"pt-8",9:"pt-9",10:"pt-10",11:"pt-11",12:"pt-12",13:"pt-13",14:"pt-14"},offset:{none:"-m-none",1:"-m-1",2:"-m-2",3:"-m-3",4:"-m-4",5:"-m-5",6:"-m-6",7:"-m-7",8:"-m-8",9:"-m-9",10:"-m-10",11:"-m-11",12:"-m-12",13:"-m-13",14:"-m-14"},offsetVertical:{none:"-my-none",1:"-my-1",2:"-my-2",3:"-my-3",4:"-my-4",5:"-my-5",6:"-my-6",7:"-my-7",8:"-my-8",9:"-my-9",10:"-my-10",11:"-my-11",12:"-my-12",13:"-my-13",14:"-my-14"},offsetHorizontal:{none:"-mx-none",1:"-mx-1",2:"-mx-2",3:"-mx-3",4:"-mx-4",5:"-mx-5",6:"-mx-6",7:"-mx-7",8:"-mx-8",9:"-mx-9",10:"-mx-10",11:"-mx-11",12:"-mx-12",13:"-mx-13",14:"-mx-14"},offsetBottom:{none:"-mb-none",1:"-mb-1",2:"-mb-2",3:"-mb-3",4:"-mb-4",5:"-mb-5",6:"-mb-6",7:"-mb-7",8:"-mb-8",9:"-mb-9",10:"-mb-10",11:"-mb-11",12:"-mb-12",13:"-mb-13",14:"-mb-14"},offsetEnd:{none:"-me-none",1:"-me-1",2:"-me-2",3:"-me-3",4:"-me-4",5:"-me-5",6:"-me-6",7:"-me-7",8:"-me-8",9:"-me-9",10:"-me-10",11:"-me-11",12:"-me-12",13:"-me-13",14:"-me-14"},offsetStart:{none:"-ms-none",1:"-ms-1",2:"-ms-2",3:"-ms-3",4:"-ms-4",5:"-ms-5",6:"-ms-6",7:"-ms-7",8:"-ms-8",9:"-ms-9",10:"-ms-10",11:"-ms-11",12:"-ms-12",13:"-ms-13",14:"-ms-14"},offsetTop:{none:"-mt-none",1:"-mt-1",2:"-mt-2",3:"-mt-3",4:"-mt-4",5:"-mt-5",6:"-mt-6",7:"-mt-7",8:"-mt-8",9:"-mt-9",10:"-mt-10",11:"-mt-11",12:"-mt-12",13:"-mt-13",14:"-mt-14"},columnGap:{none:"gap-x-none",1:"gap-x-1",2:"gap-x-2",3:"gap-x-3",4:"gap-x-4",5:"gap-x-5",6:"gap-x-6",7:"gap-x-7",8:"gap-x-8",9:"gap-x-9",10:"gap-x-10",11:"gap-x-11",12:"gap-x-12",13:"gap-x-13",14:"gap-x-14"},rowGap:{none:"gap-y-none",1:"gap-y-1",2:"gap-y-2",3:"gap-y-3",4:"gap-y-4",5:"gap-y-5",6:"gap-y-6",7:"gap-y-7",8:"gap-y-8",9:"gap-y-9",10:"gap-y-10",11:"gap-y-11",12:"gap-y-12",13:"gap-y-13",14:"gap-y-14"},backgroundColor:{accent:"bg-accent",alert:"bg-alert",black:"bg-black",brand:"bg-brand",positive:"bg-positive",warning:"bg-warning",white:"bg-white","accent-wash":"bg-accent-wash","alert-wash":"bg-alert-wash","brand-wash":"bg-brand-wash","elevation-1":"bg-elevation-1","elevation-2":"bg-elevation-2","elevation-3":"bg-elevation-3","elevation-3-inverse":"bg-elevation-3-inverse",overlay:"bg-overlay","positive-wash":"bg-positive-wash",primary:"bg-primary",secondary:"bg-secondary",transparent:"bg-transparent","warning-wash":"bg-warning-wash"},backgroundColorOnActive:{accent:"active:bg-accent",alert:"active:bg-alert",black:"active:bg-black",brand:"active:bg-brand",positive:"active:bg-positive",warning:"active:bg-warning",white:"active:bg-white","accent-wash":"active:bg-accent-wash","alert-wash":"active:bg-alert-wash","brand-wash":"active:bg-brand-wash","elevation-1":"active:bg-elevation-1","elevation-2":"active:bg-elevation-2","elevation-3":"active:bg-elevation-3","elevation-3-inverse":"active:bg-elevation-3-inverse",overlay:"active:bg-overlay","positive-wash":"active:bg-positive-wash",primary:"active:bg-primary",secondary:"active:bg-secondary",transparent:"active:bg-transparent","warning-wash":"active:bg-warning-wash"},backgroundColorOnHover:{accent:"hover:bg-accent/80",alert:"hover:bg-alert/80",black:"hover:bg-black/80",brand:"hover:bg-brand/80",positive:"hover:bg-positive/80",warning:"hover:bg-warning/80",white:"hover:bg-white/80","accent-wash":"hover:bg-accent-wash/80","alert-wash":"hover:bg-alert-wash/80","brand-wash":"hover:bg-brand-wash/80","elevation-1":"hover:bg-elevation-1/80","elevation-2":"hover:bg-elevation-2/80","elevation-3":"hover:bg-elevation-3/80","elevation-3-inverse":"hover:bg-elevation-3-inverse/80",overlay:"hover:bg-overlay/80","positive-wash":"hover:bg-positive-wash/80",primary:"hover:bg-primary/80",secondary:"hover:bg-secondary/80",transparent:"hover:bg-transparent/80","warning-wash":"hover:bg-warning-wash/80"},backgroundColorOnChecked:{accent:"data-[state=checked]:bg-accent",alert:"data-[state=checked]:bg-alert",black:"data-[state=checked]:bg-black",brand:"data-[state=checked]:bg-brand",positive:"data-[state=checked]:bg-positive",warning:"data-[state=checked]:bg-warning",white:"data-[state=checked]:bg-white","accent-wash":"data-[state=checked]:bg-accent-wash","alert-wash":"data-[state=checked]:bg-alert-wash","brand-wash":"data-[state=checked]:bg-brand-wash","elevation-1":"data-[state=checked]:bg-elevation-1","elevation-2":"data-[state=checked]:bg-elevation-2","elevation-3":"data-[state=checked]:bg-elevation-3","elevation-3-inverse":"data-[state=checked]:bg-elevation-3-inverse",overlay:"data-[state=checked]:bg-overlay","positive-wash":"data-[state=checked]:bg-positive-wash",primary:"data-[state=checked]:bg-primary",secondary:"data-[state=checked]:bg-secondary",transparent:"data-[state=checked]:bg-transparent","warning-wash":"data-[state=checked]:bg-warning-wash"},backgroundColorOnFocus:{accent:"focus:bg-accent",alert:"focus:bg-alert",black:"focus:bg-black",brand:"focus:bg-brand",positive:"focus:bg-positive",warning:"focus:bg-warning",white:"focus:bg-white","accent-wash":"focus:bg-accent-wash","alert-wash":"focus:bg-alert-wash","brand-wash":"focus:bg-brand-wash","elevation-1":"focus:bg-elevation-1","elevation-2":"focus:bg-elevation-2","elevation-3":"focus:bg-elevation-3","elevation-3-inverse":"focus:bg-elevation-3-inverse",overlay:"focus:bg-overlay","positive-wash":"focus:bg-positive-wash",primary:"focus:bg-primary",secondary:"focus:bg-secondary",transparent:"focus:bg-transparent","warning-wash":"focus:bg-warning-wash"},elevation:{1:"bg-elevation-1 z-30 shadow-1",2:"bg-elevation-2 z-40 shadow-2",3:"bg-elevation-3 z-50 shadow-3"},opacity:{0:"opacity-0",5:"opacity-5",10:"opacity-10",20:"opacity-20",25:"opacity-25",30:"opacity-30",40:"opacity-40",50:"opacity-50",60:"opacity-60",70:"opacity-70",75:"opacity-75",80:"opacity-80",90:"opacity-90",95:"opacity-95",100:"opacity-100"},borderColor:{accent:"border-accent",alert:"border-alert",black:"border-black",brand:"border-brand",positive:"border-positive",warning:"border-warning",white:"border-white",transparent:"border-transparent",muted:"border-muted",primary:"border-primary",secondary:"border-secondary",tertiary:"border-tertiary"},borderColorOnActive:{accent:"active:border-accent",alert:"active:border-alert",black:"active:border-black",brand:"active:border-brand",positive:"active:border-positive",warning:"active:border-warning",white:"active:border-white",transparent:"active:border-transparent",muted:"active:border-muted",primary:"active:border-primary",secondary:"active:border-secondary",tertiary:"active:border-tertiary"},borderColorOnFocus:{accent:"focus:border-accent",alert:"focus:border-alert",black:"focus:border-black",brand:"focus:border-brand",positive:"focus:border-positive",warning:"focus:border-warning",white:"focus:border-white",transparent:"focus:border-transparent",muted:"focus:border-muted",primary:"focus:border-primary",secondary:"focus:border-secondary",tertiary:"focus:border-tertiary"},borderColorOnHover:{accent:"hover:border-accent",alert:"hover:border-alert",black:"hover:border-black",brand:"hover:border-brand",positive:"hover:border-positive",warning:"hover:border-warning",white:"hover:border-white",transparent:"hover:border-transparent",muted:"hover:border-muted",primary:"hover:border-primary",secondary:"hover:border-secondary",tertiary:"hover:border-tertiary"},borderColorOnChecked:{accent:"data-[state=checked]:border-accent",alert:"data-[state=checked]:border-alert",black:"data-[state=checked]:border-black",brand:"data-[state=checked]:border-brand",positive:"data-[state=checked]:border-positive",warning:"data-[state=checked]:border-warning",white:"data-[state=checked]:border-white",transparent:"data-[state=checked]:border-transparent",muted:"data-[state=checked]:border-muted",primary:"data-[state=checked]:border-primary",secondary:"data-[state=checked]:border-secondary",tertiary:"data-[state=checked]:border-tertiary"},borderStartColor:{accent:"border-s-accent",alert:"border-s-alert",black:"border-s-black",brand:"border-s-brand",positive:"border-s-positive",warning:"border-s-warning",white:"border-s-white",transparent:"border-s-transparent",muted:"border-s-muted",primary:"border-s-primary",secondary:"border-s-secondary",tertiary:"border-s-tertiary"},borderEndColor:{accent:"border-e-accent",alert:"border-e-alert",black:"border-e-black",brand:"border-e-brand",positive:"border-e-positive",warning:"border-e-warning",white:"border-e-white",transparent:"border-e-transparent",muted:"border-e-muted",primary:"border-e-primary",secondary:"border-e-secondary",tertiary:"border-e-tertiary"},borderBottomColor:{accent:"border-b-accent",alert:"border-b-alert",black:"border-b-black",brand:"border-b-brand",positive:"border-b-positive",warning:"border-b-warning",white:"border-b-white",transparent:"border-b-transparent",muted:"border-b-muted",primary:"border-b-primary",secondary:"border-b-secondary",tertiary:"border-b-tertiary"},borderTopColor:{accent:"border-t-accent",alert:"border-t-alert",black:"border-t-black",brand:"border-t-brand",positive:"border-t-positive",warning:"border-t-warning",white:"border-t-white",transparent:"border-t-transparent",muted:"border-t-muted",primary:"border-t-primary",secondary:"border-t-secondary",tertiary:"border-t-tertiary"},borderRadius:{none:"rounded-none",xs:"rounded-xs",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl",full:"rounded-full"},borderTopStartRadius:{none:"rounded-ss-none",xs:"rounded-ss-xs",sm:"rounded-ss-sm",md:"rounded-ss-md",lg:"rounded-ss-lg",xl:"rounded-ss-xl",full:"rounded-ss-full"},borderTopEndRadius:{none:"rounded-se-none",xs:"rounded-se-xs",sm:"rounded-se-sm",md:"rounded-se-md",lg:"rounded-se-lg",xl:"rounded-se-xl",full:"rounded-se-full"},borderBottomStartRadius:{none:"rounded-es-none",xs:"rounded-es-xs",sm:"rounded-es-sm",md:"rounded-es-md",lg:"rounded-es-lg",xl:"rounded-es-xl",full:"rounded-es-full"},borderBottomEndRadius:{none:"rounded-ee-none",xs:"rounded-ee-xs",sm:"rounded-ee-sm",md:"rounded-ee-md",lg:"rounded-ee-lg",xl:"rounded-ee-xl",full:"rounded-ee-full"},bordered:{true:"border-thin border-solid"},borderWidth:{none:"border-none",thin:"border-thin",medium:"border-medium",thick:"border-thick"},borderVerticalWidth:{none:"border-y-none",thin:"border-y-thin",medium:"border-y-medium",thick:"border-y-thick"},borderHorizontalWidth:{none:"border-x-none",thin:"border-x-thin",medium:"border-x-medium",thick:"border-x-thick"},borderStartWidth:{none:"border-s-none",thin:"border-s-thin",medium:"border-s-medium",thick:"border-s-thick"},borderEndWidth:{none:"border-e-none",thin:"border-e-thin",medium:"border-e-medium",thick:"border-e-thick"},borderTopWidth:{none:"border-t-none",thin:"border-t-thin",medium:"border-t-medium",thick:"border-t-thick"},borderBottomWidth:{none:"border-b-none",thin:"border-b-thin",medium:"border-b-medium",thick:"border-b-thick"},borderedVertical:{true:"border-y-thin"},borderedTop:{true:"border-t-thin"},borderedBottom:{true:"border-b-thin"},borderedHorizontal:{true:"border-x-thin"},borderedEnd:{true:"border-e-thin"},borderedStart:{true:"border-s-thin"},height:{auto:"h-auto",full:"h-full",screen:"h-screen",min:"h-min",max:"h-max",fit:"h-fit","1/2":"h-1/2","1/3":"h-1/3","2/3":"h-2/3","1/4":"h-1/4","2/4":"h-2/4","3/4":"h-3/4","1/5":"h-1/5","2/5":"h-2/5","3/5":"h-3/5","4/5":"h-4/5","1/6":"h-1/6","2/6":"h-2/6","3/6":"h-3/6","4/6":"h-4/6","5/6":"h-5/6"},minHeight:{full:"min-h-full",min:"min-h-min",max:"min-h-max",fit:"min-h-fit",screen:"min-h-screen"},maxHeight:{full:"max-h-full",min:"max-h-min",max:"max-h-max",fit:"max-h-fit",screen:"max-h-screen",none:"max-h-[0px]"},width:{auto:"w-auto",full:"w-full",screen:"w-screen",min:"w-min",max:"w-max",fit:"w-fit","1/2":"w-1/2","1/3":"w-1/3","2/3":"w-2/3","1/4":"w-1/4","2/4":"w-2/4","3/4":"w-3/4","1/5":"w-1/5","2/5":"w-2/5","3/5":"w-3/5","4/5":"w-4/5","1/6":"w-1/6","2/6":"w-2/6","3/6":"w-3/6","4/6":"w-4/6","5/6":"w-5/6","1/12":"w-1/12","2/12":"w-2/12","3/12":"w-3/12","4/12":"w-4/12","5/12":"w-5/12","6/12":"w-6/12","7/12":"w-7/12","8/12":"w-8/12","9/12":"w-9/12","10/12":"w-10/12","11/12":"w-11/12"},minWidth:{full:"min-w-full",min:"min-w-min",max:"min-w-max",fit:"min-w-fit",screen:"min-w-screen"},maxWidth:{none:"max-w-[0px]",full:"max-w-full",min:"max-w-min",max:"max-w-max",fit:"max-w-fit"},avatarSize:{s:"avatarSize-s",m:"avatarSize-m",l:"avatarSize-l"},iconSize:{s:"iconSize-s leading-none",m:"iconSize-m leading-none",l:"iconSize-l leading-none"},alignContent:{"flex-start":"content-start","flex-end":"content-end",center:"content-center",stretch:"content-stretch","space-between":"content-between","space-around":"content-around"},alignItems:{"flex-start":"items-start","flex-end":"items-end",center:"items-center",stretch:"items-stretch",baseline:"items-baseline"},alignSelf:{auto:"self-auto","flex-start":"self-start","flex-end":"self-end",center:"self-center",stretch:"self-stretch",baseline:"self-baseline"},flex:{1:"flex-1",auto:"flex-auto",initial:"flex-initial",none:"flex-none"},flexDirection:{row:"flex-row",column:"flex-col","row-reverse":"flex-row-reverse","column-reverse":"flex-col-reverse"},flexGrow:{0:"grow-0",1:"grow",2:"grow-[2]",3:"grow-[3]"},flexShrink:{0:"shrink-0",1:"shrink"},flexWrap:{wrap:"flex-wrap","wrap-reverse":"flex-wrap-reverse",nowrap:"flex-nowrap"},justifyContent:{"flex-start":"justify-start","flex-end":"justify-end",center:"justify-center","space-between":"justify-between","space-around":"justify-around","space-evenly":"justify-evenly"},flexBasis:{"min-content":"basis-[min-content]"},display:{block:"block","inline-block":"inline-block",inline:"inline",flex:"flex","inline-flex":"inline-flex",table:"table","inline-table":"inline-table","table-caption":"table-caption","table-cell":"table-cell","table-column":"table-column","table-column-group":"table-column-group","table-footer-group":"table-footer-group","table-header-group":"table-header-group","table-row-group":"table-row-group","table-row":"table-row","flow-root":"flow-root",grid:"grid",contents:"contents"},overflow:{auto:"overflow-auto",hidden:"overflow-hidden",clip:"overflow-clip",visible:"overflow-visible",scroll:"overflow-scroll"},overflowX:{auto:"overflow-x-auto",hidden:"overflow-x-hidden",clip:"overflow-x-clip",visible:"overflow-x-visible",scroll:"overflow-x-scroll"},overflowY:{auto:"overflow-y-auto",hidden:"overflow-y-hidden",clip:"overflow-y-clip",visible:"overflow-y-visible",scroll:"overflow-y-scroll"},position:{static:"static",fixed:"fixed",absolute:"absolute",relative:"relative",sticky:"sticky"},zIndex:{0:"z-0",10:"z-10",20:"z-20",30:"z-40",40:"z-30",50:"z-50",auto:"z-auto"},contentFit:{contain:"object-contain",cover:"object-cover",fill:"object-fill",none:"object-none","scale-down":"object-scale-down"},colorMode:{dark:co,light:bo},scaleMode:{xSmall:mo,small:fo,medium:uo,large:go,xLarge:yo,xxxLarge:xo,xxLarge:ho}};var Jo=qo({cacheSize:0,extend:{theme:{borderColor:Ko,borderWidth:Xo,borderRadius:Wo}},override:{classGroups:{"text-color":[{text:Zo}],"bg-color":[{bg:Uo}],"font-family":[{font:["icons",...wo]}],leading:[{leading:wo}],shadow:[{shadow:$o}]},conflictingClassGroups:{}}}),u=(...o)=>{let e=Yo(o);return Jo(e)},Qo=o=>e=>{if(!o?.variants)return u(o?.base,e?.className);let{variants:t,defaultVariants:r}=o,a=Object.keys(t).map(s=>{let i=e?.[s],p=r?.[s],d=Ye(i)||Ye(p);return t[s][d]}),n={...r,...e&&Object.entries(e).reduce((s,[i,p])=>typeof p>"u"?s:{...s,[i]:p},{})},l=o?.compoundVariants?.reduce((s,{className:i,...p})=>Object.entries(p).every(([d,f])=>n[d]===f)?u(s,i):s,"");return u(o?.base,a,l,e?.className)},c=Qo({variants:vo});import{Children as ze,cloneElement as To,forwardRef as Co,isValidElement as Ue}from"react";function jo(o,e){typeof o=="function"?o(e):o!=null&&(o.current=e)}function Po(...o){return e=>o.forEach(t=>jo(t,e))}import{jsx as So}from"react/jsx-runtime";function T(){let o=Co((n,l)=>{let{children:s,...i}=n,p=ze.toArray(s),d=p.find(r);if(d){let f=d.props.children,h=p.map(w=>w===d?ze.count(f)>1?ze.only(null):Ue(f)?f.props.children:null:w);return So(e,{...i,ref:l,children:Ue(f)?To(f,void 0,h):null})}return So(e,{...i,ref:l,children:s})});o.displayName="Slot";let e=Co((n,l)=>{let{children:s,...i}=n;return Ue(s)?To(s,{...a(i,s.props),ref:l?Po(l,s.ref):s.ref}):ze.count(s)>1?ze.only(null):null});e.displayName="SlotClone";let t=({children:n})=>n;function r(n){return Ue(n)&&n.type===t}function a(n,l){let s={...l};for(let i in l){let p=n[i],d=l[i];/^on[A-Z]/.test(i)?p&&d?s[i]=(...h)=>{d(...h),p(...h)}:p&&(s[i]=p):i==="style"&&(s[i]={...p,...d})}return{...n,...s}}return o}import{jsx as tt}from"react/jsx-runtime";var ot=T(),y=et(function({className:e,asChild:t=!1,size:r="l",color:a="primary",name:n,colorChecked:l,opacity:s,textAlign:i,backgroundColor:p,backgroundColorOnActive:d,backgroundColorOnHover:f,backgroundColorOnChecked:h,bordered:w,borderedTop:S,borderedBottom:k,borderedStart:A,borderedEnd:R,borderedHorizontal:E,borderedVertical:I,borderRadius:D,borderTopStartRadius:L,borderTopEndRadius:M,borderBottomStartRadius:H,borderBottomEndRadius:N,borderColor:_,borderColorOnActive:B,borderColorOnFocus:O,borderColorOnChecked:z,borderColorOnHover:V,borderStartColor:F,borderEndColor:G,borderTopColor:U,borderBottomColor:W,borderWidth:X,borderVerticalWidth:$,borderHorizontalWidth:Z,borderStartWidth:K,borderEndWidth:Y,borderTopWidth:q,borderBottomWidth:J,alignContent:Q,alignItems:j,alignSelf:ee,flex:oe,flexDirection:te,flexGrow:re,flexShrink:ae,flexWrap:ne,justifyContent:se,flexBasis:ie,display:le,zIndex:pe,overflow:ce,overflowX:de,overflowY:be,position:me,spacing:fe,spacingHorizontal:ue,spacingVertical:ge,spacingBottom:ye,spacingEnd:he,spacingStart:xe,spacingTop:ve,offset:we,offsetVertical:Pe,offsetHorizontal:Te,offsetBottom:Ce,offsetEnd:Se,offsetStart:ke,offsetTop:Ae,columnGap:Re,rowGap:Ee,height:Ie,minHeight:De,maxHeight:Le,width:Me,minWidth:He,maxWidth:_e,...Oe},Ge){let Ze=t?ot:"span",Ke=c({iconSize:r,color:a,colorChecked:l,opacity:s,fontFamily:"icons",textAlign:i,backgroundColor:p,backgroundColorOnActive:d,backgroundColorOnHover:f,backgroundColorOnChecked:h,bordered:w,borderedTop:S,borderedBottom:k,borderedStart:A,borderedEnd:R,borderedHorizontal:E,borderedVertical:I,borderRadius:D,borderTopStartRadius:L,borderTopEndRadius:M,borderBottomStartRadius:H,borderBottomEndRadius:N,borderColor:_,borderColorOnActive:B,borderColorOnFocus:O,borderColorOnChecked:z,borderColorOnHover:V,borderStartColor:F,borderEndColor:G,borderTopColor:U,borderBottomColor:W,borderWidth:X,borderVerticalWidth:$,borderHorizontalWidth:Z,borderStartWidth:K,borderEndWidth:Y,borderTopWidth:q,borderBottomWidth:J,alignContent:Q,alignItems:j,alignSelf:ee,flex:oe,flexDirection:te,flexGrow:re,flexShrink:ae,flexWrap:ne,justifyContent:se,flexBasis:ie,display:le,zIndex:pe,overflow:ce,overflowX:de,overflowY:be,position:me,spacing:fe,spacingHorizontal:ue,spacingVertical:ge,spacingBottom:ye,spacingEnd:he,spacingStart:xe,spacingTop:ve,offset:we,offsetVertical:Pe,offsetHorizontal:Te,offsetBottom:Ce,offsetEnd:Se,offsetStart:ke,offsetTop:Ae,columnGap:Re,rowGap:Ee,height:Ie,minHeight:De,maxHeight:Le,width:Me,minWidth:He,maxWidth:_e,className:e});return tt(Ze,{className:Ke,ref:Ge,...Oe,children:n})});import{forwardRef as rt}from"react";import{jsx as nt}from"react/jsx-runtime";var at=T(),x=rt(function({className:e,asChild:t,onPress:r,onClick:a=r,backgroundColor:n,backgroundColorOnActive:l,backgroundColorOnHover:s,backgroundColorOnChecked:i,elevation:p,opacity:d,bordered:f,borderedTop:h,borderedBottom:w,borderedStart:S,borderedEnd:k,borderedHorizontal:A,borderedVertical:R,borderRadius:E,borderTopStartRadius:I,borderTopEndRadius:D,borderBottomStartRadius:L,borderBottomEndRadius:M,borderColor:H,borderColorOnActive:N,borderColorOnFocus:_,borderColorOnChecked:B,borderColorOnHover:O,borderStartColor:z,borderEndColor:V,borderTopColor:F,borderBottomColor:G,borderWidth:U,borderVerticalWidth:W,borderHorizontalWidth:X,borderStartWidth:$,borderEndWidth:Z,borderTopWidth:K,borderBottomWidth:Y,alignContent:q,alignItems:J,alignSelf:Q,flex:j,flexDirection:ee,flexGrow:oe,flexShrink:te,flexWrap:re,justifyContent:ae,flexBasis:ne,display:se,zIndex:ie,overflow:le,overflowX:pe,overflowY:ce,position:de,spacing:be,spacingHorizontal:me,spacingVertical:fe,spacingBottom:ue,spacingEnd:ge,spacingStart:ye,spacingTop:he,offset:xe,offsetVertical:ve,offsetHorizontal:we,offsetBottom:Pe,offsetEnd:Te,offsetStart:Ce,offsetTop:Se,columnGap:ke,rowGap:Ae,height:Re,minHeight:Ee,maxHeight:Ie,width:De,minWidth:Le,maxWidth:Me,...He},_e){let Oe=c({backgroundColor:n,backgroundColorOnActive:l,backgroundColorOnHover:s,backgroundColorOnChecked:i,elevation:p,opacity:d,bordered:f,borderedTop:h,borderedBottom:w,borderedStart:S,borderedEnd:k,borderedHorizontal:A,borderedVertical:R,borderRadius:E,borderTopStartRadius:I,borderTopEndRadius:D,borderBottomStartRadius:L,borderBottomEndRadius:M,borderColor:H,borderColorOnActive:N,borderColorOnFocus:_,borderColorOnChecked:B,borderColorOnHover:O,borderStartColor:z,borderEndColor:V,borderTopColor:F,borderBottomColor:G,borderWidth:U,borderVerticalWidth:W,borderHorizontalWidth:X,borderStartWidth:$,borderEndWidth:Z,borderTopWidth:K,borderBottomWidth:Y,alignContent:q,alignItems:J,alignSelf:Q,flex:j,flexDirection:ee,flexGrow:oe,flexShrink:te,flexWrap:re,justifyContent:ae,flexBasis:ne,display:se,zIndex:ie,overflow:le,overflowX:pe,overflowY:ce,position:de,spacing:be,spacingHorizontal:me,spacingVertical:fe,spacingBottom:ue,spacingEnd:ge,spacingStart:ye,spacingTop:he,offset:xe,offsetVertical:ve,offsetHorizontal:we,offsetBottom:Pe,offsetEnd:Te,offsetStart:Ce,offsetTop:Se,columnGap:ke,rowGap:Ae,height:Re,minHeight:Ee,maxHeight:Ie,width:De,minWidth:Le,maxWidth:Me,className:e});return nt(t?at:"button",{className:Oe,ref:_e,onClick:a,...He})});import{forwardRef as st}from"react";import{jsx as pt}from"react/jsx-runtime";var it=T(),lt={display1:"h1",display2:"h1",display3:"h1",title1:"h1",title2:"h2",title3:"h3",title4:"h4",headline1:"h5",body1:"p",label1:"p",label2:"p",caption1:"p",caption2:"p",legal1:"p"},m=st(function({className:e,asChild:t,color:r="primary",colorChecked:a,variant:n="body1",as:l=lt[n],fontSize:s=n,fontFamily:i=n,fontWeight:p=n,lineHeight:d=n,textTransform:f=n,textAlign:h,backgroundColor:w,backgroundColorOnActive:S,backgroundColorOnHover:k,backgroundColorOnChecked:A,opacity:R,bordered:E,borderedTop:I,borderedBottom:D,borderedStart:L,borderedEnd:M,borderedHorizontal:H,borderedVertical:N,borderRadius:_,borderTopStartRadius:B,borderTopEndRadius:O,borderBottomStartRadius:z,borderBottomEndRadius:V,borderColor:F,borderColorOnActive:G,borderColorOnFocus:U,borderColorOnChecked:W,borderColorOnHover:X,borderStartColor:$,borderEndColor:Z,borderTopColor:K,borderBottomColor:Y,borderWidth:q,borderVerticalWidth:J,borderHorizontalWidth:Q,borderStartWidth:j,borderEndWidth:ee,borderTopWidth:oe,borderBottomWidth:te,alignContent:re,alignItems:ae,alignSelf:ne,flex:se,flexDirection:ie,flexGrow:le,flexShrink:pe,flexWrap:ce,justifyContent:de,flexBasis:be,display:me,zIndex:fe,overflow:ue,overflowX:ge,overflowY:ye,position:he,spacing:xe,spacingHorizontal:ve,spacingVertical:we,spacingBottom:Pe,spacingEnd:Te,spacingStart:Ce,spacingTop:Se,offset:ke,offsetVertical:Ae,offsetHorizontal:Re,offsetBottom:Ee,offsetEnd:Ie,offsetStart:De,offsetTop:Le,columnGap:Me,rowGap:He,height:_e,minHeight:Oe,maxHeight:Ge,width:Ze,minWidth:Ke,maxWidth:zo,...Vo},Fo){let Go=c({className:e,color:r,colorChecked:a,fontFamily:i,fontSize:s,fontWeight:p,lineHeight:d,textTransform:f,textAlign:h,backgroundColor:w,backgroundColorOnActive:S,backgroundColorOnHover:k,backgroundColorOnChecked:A,opacity:R,bordered:E,borderedTop:I,borderedBottom:D,borderedStart:L,borderedEnd:M,borderedHorizontal:H,borderedVertical:N,borderRadius:_,borderTopStartRadius:B,borderTopEndRadius:O,borderBottomStartRadius:z,borderBottomEndRadius:V,borderColor:F,borderColorOnActive:G,borderColorOnFocus:U,borderColorOnChecked:W,borderColorOnHover:X,borderStartColor:$,borderEndColor:Z,borderTopColor:K,borderBottomColor:Y,borderWidth:q,borderVerticalWidth:J,borderHorizontalWidth:Q,borderStartWidth:j,borderEndWidth:ee,borderTopWidth:oe,borderBottomWidth:te,alignContent:re,alignItems:ae,alignSelf:ne,flex:se,flexDirection:ie,flexGrow:le,flexShrink:pe,flexWrap:ce,justifyContent:de,flexBasis:be,display:me,zIndex:fe,overflow:ue,overflowX:ge,overflowY:ye,position:he,spacing:xe,spacingHorizontal:ve,spacingVertical:we,spacingBottom:Pe,spacingEnd:Te,spacingStart:Ce,spacingTop:Se,offset:ke,offsetVertical:Ae,offsetHorizontal:Re,offsetBottom:Ee,offsetEnd:Ie,offsetStart:De,offsetTop:Le,columnGap:Me,rowGap:He,height:_e,minHeight:Oe,maxHeight:Ge,width:Ze,minWidth:Ke,maxWidth:zo});return pt(t?it:l,{className:Go,ref:Fo,...Vo})});import{forwardRef as mt}from"react";import{forwardRef as ct}from"react";import{jsx as bt}from"react/jsx-runtime";var dt=T(),C=ct(function({asChild:e,className:t,elevation:r,backgroundColor:a=r?`elevation-${r}`:void 0,backgroundColorOnActive:n,backgroundColorOnHover:l,backgroundColorOnChecked:s,opacity:i,bordered:p,borderedTop:d,borderedBottom:f,borderedStart:h,borderedEnd:w,borderedHorizontal:S,borderedVertical:k,borderRadius:A,borderTopStartRadius:R,borderTopEndRadius:E,borderBottomStartRadius:I,borderBottomEndRadius:D,borderColor:L,borderColorOnActive:M,borderColorOnFocus:H,borderColorOnChecked:N,borderColorOnHover:_,borderStartColor:B,borderEndColor:O,borderTopColor:z,borderBottomColor:V,borderWidth:F,borderVerticalWidth:G,borderHorizontalWidth:U,borderStartWidth:W,borderEndWidth:X,borderTopWidth:$,borderBottomWidth:Z,alignContent:K,alignItems:Y,alignSelf:q,flex:J,flexDirection:Q,flexGrow:j,flexShrink:ee,flexWrap:oe,justifyContent:te,flexBasis:re,display:ae="flex",zIndex:ne,overflow:se,overflowX:ie,overflowY:le,position:pe,spacing:ce,spacingHorizontal:de,spacingVertical:be,spacingBottom:me,spacingEnd:fe,spacingStart:ue,spacingTop:ge,offset:ye,offsetVertical:he,offsetHorizontal:xe,offsetBottom:ve,offsetEnd:we,offsetStart:Pe,offsetTop:Te,columnGap:Ce,rowGap:Se,height:ke,minHeight:Ae,maxHeight:Re,width:Ee,minWidth:Ie,maxWidth:De,...Le},Me){let He=c({elevation:r,backgroundColor:a,backgroundColorOnActive:n,backgroundColorOnHover:l,backgroundColorOnChecked:s,opacity:i,bordered:p,borderedTop:d,borderedBottom:f,borderedStart:h,borderedEnd:w,borderedHorizontal:S,borderedVertical:k,borderRadius:A,borderTopStartRadius:R,borderTopEndRadius:E,borderBottomStartRadius:I,borderBottomEndRadius:D,borderColor:L,borderColorOnActive:M,borderColorOnFocus:H,borderColorOnChecked:N,borderColorOnHover:_,borderStartColor:B,borderEndColor:O,borderTopColor:z,borderBottomColor:V,borderWidth:F,borderVerticalWidth:G,borderHorizontalWidth:U,borderStartWidth:W,borderEndWidth:X,borderTopWidth:$,borderBottomWidth:Z,alignContent:K,alignItems:Y,alignSelf:q,flex:J,flexDirection:Q,flexGrow:j,flexShrink:ee,flexWrap:oe,justifyContent:te,flexBasis:re,display:ae,zIndex:ne,overflow:se,overflowX:ie,overflowY:le,position:pe,spacing:ce,spacingHorizontal:de,spacingVertical:be,spacingBottom:me,spacingEnd:fe,spacingStart:ue,spacingTop:ge,offset:ye,offsetVertical:he,offsetHorizontal:xe,offsetBottom:ve,offsetEnd:we,offsetStart:Pe,offsetTop:Te,columnGap:Ce,rowGap:Se,height:ke,minHeight:Ae,maxHeight:Re,width:Ee,minWidth:Ie,maxWidth:De,className:t});return bt(e?dt:"div",{className:He,ref:Me,...Le})});import{jsx as ft}from"react/jsx-runtime";var P=mt(function({gap:e,...t},r){return ft(C,{ref:r,flexDirection:"column",columnGap:e,rowGap:e,...t})});import{Fragment as gt,jsx as We,jsxs as ko}from"react/jsx-runtime";function ut({label:o,children:e,onClick:t,open:r,spacingHorizontal:a="6",_content:n,...l}){return ko(gt,{children:[ko(x,{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",spacingVertical:"6",spacingHorizontal:a,backgroundColorOnHover:"secondary",borderRadius:"md",width:"full",onClick:t,...l,children:[We(m,{variant:"title4",children:o}),We(y,{name:r?"chevronDown":"chevronUp",size:"s"})]}),We(P,{overflow:"hidden",maxHeight:r?"full":"none",className:"transition-[max-height] duration-500 ease-in-out",spacingHorizontal:a,...n,children:We(P,{minHeight:"min",children:e})})]})}var Ao={display:"inline-flex",alignItems:"center",justifyContent:"center",overflow:"hidden",backgroundColor:"primary",contentFit:"cover"},qe={base:{display:"inline-flex",alignItems:"center",justifyContent:"center",borderRadius:"full",minWidth:"fit"},variant:{accent:{color:"on-color",backgroundColor:"accent",borderColor:"accent",bordered:!0},"accent-outline":{color:"accent",backgroundColor:"transparent",borderColor:"accent",bordered:!0},"accent-ghost":{color:"accent"},"accent-wash":{color:"accent",backgroundColor:"accent-wash",borderColor:"accent",bordered:!0},brand:{color:"on-color",backgroundColor:"brand",borderColor:"brand",bordered:!0},"brand-outline":{color:"brand",backgroundColor:"transparent",borderColor:"brand",bordered:!0},"brand-ghost":{color:"brand"},"brand-wash":{color:"brand",backgroundColor:"brand-wash",borderColor:"brand",bordered:!0},positive:{color:"on-color",backgroundColor:"positive",borderColor:"positive",bordered:!0},"positive-outline":{color:"positive",backgroundColor:"transparent",borderColor:"positive",bordered:!0},"positive-ghost":{color:"positive"},"positive-wash":{color:"positive",backgroundColor:"positive-wash",borderColor:"positive",bordered:!0},alert:{color:"on-color",backgroundColor:"alert",borderColor:"alert",bordered:!0},"alert-outline":{color:"alert",backgroundColor:"transparent",borderColor:"alert",bordered:!0},"alert-ghost":{color:"alert"},"alert-wash":{color:"alert",backgroundColor:"alert-wash",borderColor:"alert",bordered:!0},warning:{color:"on-color",backgroundColor:"warning",borderColor:"warning",bordered:!0},"warning-outline":{color:"warning",backgroundColor:"transparent",borderColor:"warning",bordered:!0},"warning-ghost":{color:"warning"},"warning-wash":{color:"warning",backgroundColor:"warning-wash",borderColor:"warning",bordered:!0},"primary-outline":{color:"primary",borderColor:"muted",bordered:!0},"primary-ghost":{color:"primary"},secondary:{backgroundColor:"secondary",color:"primary"}},size:{s:{variant:"label1",spacingHorizontal:"6",spacingVertical:"4",columnGap:"4"},m:{variant:"headline1",spacingHorizontal:"7",spacingVertical:"5",columnGap:"4"},l:{variant:"headline1",spacingHorizontal:"8",spacingVertical:"6",columnGap:"4"}}};function Be({variant:o="accent",size:e="s"}){let{color:t,...r}=qe.variant[o],{variant:a,...n}=qe.size[e];return{pressable:{...qe.base,...r,...n},text:{color:t,variant:a,textAlign:"center"},icon:{color:t,size:"s"}}}import{jsx as ht}from"react/jsx-runtime";function yt({size:o,shape:e,src:t,alt:r,...a}){let n=c({...Ao,avatarSize:o,borderRadius:e});return ht("img",{src:t,alt:r,className:n,...a})}import{forwardRef as xt}from"react";import{jsx as Je,jsxs as vt}from"react/jsx-runtime";var Qe=xt(function({variant:e="accent",size:t,startIcon:r,endIcon:a,children:n,...l},s){let i=Be({variant:e,size:t}),p=r?Je(y,{name:r,...i.icon}):null,d=a?Je(y,{name:a,...i.icon}):null;return vt(x,{...i.pressable,ref:s,...l,children:[p,Je(m,{...i.text,children:n}),d]})});import{jsx as je,jsxs as Tt}from"react/jsx-runtime";var Ro={accent:"on-color",secondary:"primary"},wt={accent:"on-color",secondary:"tertiary"};function Pt({children:o,variant:e,startIcon:t,startContent:r=t?je(y,{name:t,size:"s",color:Ro[e]}):null,endIcon:a,endContent:n=a?je(y,{name:a,size:"s",color:Ro[e]}):null}){return Tt(x,{display:"inline-flex",flexDirection:"row",columnGap:"4",borderRadius:"full",backgroundColor:e,alignItems:"center",spacingVertical:"4",spacingHorizontal:"5",children:[r,je(m,{variant:"label2",color:wt[e],children:o}),n]})}import{Popover as kt,PopoverAnchor as At,PopoverArrow as Rt,PopoverDescription as Et,PopoverDisclosure as It,PopoverDisclosureArrow as Dt,PopoverDismiss as Lt,PopoverHeading as Mt,PopoverProvider as Ht,usePopoverStore as eo}from"@ariakit/react";import{forwardRef as Ct}from"react";import{jsx as St}from"react/jsx-runtime";var Xe=Ct(function({gap:e,...t},r){return St(C,{ref:r,flexDirection:"row",rowGap:e,columnGap:e,...t})});import{jsx as Eo,jsxs as Vt}from"react/jsx-runtime";function Nt({children:o,leading:e,trailing:t}){return Vt(Xe,{children:[e,Eo(m,{variant:"headline1",asChild:!0,children:Eo(Mt,{children:o})}),t]})}var oo=kt,to=Rt,_t=At,Bt=Et,Ot=Lt,ro=Ht,ao=It,zt=Dt;var Ft=ro;import{forwardRef as Gt,useCallback as Ut}from"react";import{jsx as Wt}from"react/jsx-runtime";var no=Gt(function({children:e,onClick:t,...r},a){let n=eo(),l=Ut(s=>{s.preventDefault(),t?.(()=>n.setOpen(!1))},[t,n]);return Wt(x,{display:"flex",flexDirection:"row",alignItems:"flex-start",spacingVertical:"6",spacingHorizontal:"8",columnGap:"5",borderColor:"muted",className:"hover:bg-gray-2",onClick:t?l:void 0,ref:a,...r,children:e})});import{jsx as $e,jsxs as Io}from"react/jsx-runtime";function Xt({title:o,description:e,_title:t,_description:r,startIcon:a,endIcon:n,...l}){return Io(no,{...l,children:[a&&$e(y,{name:a,size:"s"}),Io(P,{gap:"3",alignItems:"flex-start",children:[o&&$e(m,{variant:"headline1",...t,children:o}),e&&$e(m,{variant:"label2",color:"muted",...r,children:e})]}),n&&$e(y,{name:n,size:"s"})]})}import{forwardRef as $t}from"react";import{jsx as Do,jsxs as Kt}from"react/jsx-runtime";var Zt=$t(function({children:e,className:t,overflow:r="scroll",...a},n){return Do(P,{borderRadius:"lg",elevation:"3",className:u("max-h-[312px] min-w-[220px]",t),overflow:r,spacingVertical:"4",asChild:!0,children:Kt(oo,{preventBodyScroll:!0,...a,ref:n,children:[Do(to,{className:"!fill-elevation-3 !stroke-muted !stroke-1"}),e]})})});import{jsx as Lo}from"react/jsx-runtime";function Yt({children:o,variant:e,size:t,...r}){let a=Be({variant:e,size:t}),n=e?a.pressable:{display:"flex",flexDirection:"row",alignItems:"center",columnGap:"6",justifyContent:"space-between"};return Lo(x,{...n,...r,asChild:!0,children:Lo(ao,{children:o})})}import{forwardRef as qt}from"react";import{jsx as Mo}from"react/jsx-runtime";var Jt={s:"w-[36px] h-[36px]",m:"w-[48px] h-[48px]",l:"w-[64px] h-[64px]"},so=qt(function({variant:e="accent",size:t="s",name:r,className:a,color:n,...l},s){let i=Be({variant:e,size:t});return Mo(x,{...i.pressable,spacingHorizontal:i.pressable.spacingVertical,ref:s,className:u("leading-[0px]",Jt[t],a),...l,children:Mo(y,{name:r,...i.icon,color:n})})});import{Dialog as Qt,DialogDismiss as jt,useDialogStore as er}from"@ariakit/react";import{jsx as Ve,jsxs as nr}from"react/jsx-runtime";function or(o){return er({animated:!0,...o})}function tr({children:o,handleClose:e}){return nr(Xe,{alignItems:"center",justifyContent:"space-between",children:[Ve(m,{variant:"headline1",children:o}),Ve(Qe,{variant:"accent-ghost",size:"m",spacingEnd:"none",spacingVertical:"none",onClick:e,children:"close"})]})}function rr({className:o,...e}){return Ve(P,{borderRadius:"md",elevation:"3",position:"fixed",height:"fit",zIndex:"50",className:u("inset-8 top-[250px] mx-auto w-[600px] origin-center scale-95 opacity-0 transition duration-150 data-[enter]:scale-100 data-[enter]:opacity-100",o),spacing:"8",asChild:!0,overflow:"hidden",children:Ve(Qt,{backdrop:Ve("div",{className:"data-[enter]:bg-overlay opacity-0 backdrop-blur-0 transition duration-150 data-[enter]:opacity-100 data-[enter]:backdrop-blur-sm"}),...e})})}var ar=jt;import{jsx as io,jsxs as Ho}from"react/jsx-runtime";function sr({className:o,...e}){return Ho("div",{role:"status",className:u("self-center",o),...e,style:{width:8,maxWidth:8,height:8,maxHeight:8},children:[Ho("svg",{"aria-hidden":"true",className:"text-gray-3 fill-accent h-8 w-8 animate-spin",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[io("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),io("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]}),io("span",{className:"sr-only",children:"Loading..."})]})}import{forwardRef as Fe,isValidElement as ir}from"react";import{jsx as g,jsxs as mr}from"react/jsx-runtime";var lr=Fe(function({children:e,className:t,display:r="table",overflow:a="hidden",borderColor:n="muted",elevation:l="1",borderRadius:s="md",...i},p){return g(C,{asChild:!0,borderColor:n,elevation:l,borderRadius:s,className:t,overflow:a,display:r,...i,children:g("table",{ref:p,children:e})})}),pr=Fe(function({children:e,display:t="table-row",...r},a){return g(C,{asChild:!0,display:t,...r,children:g("tr",{ref:a,children:e})})}),cr=Fe(function({children:e,display:t="table-header-group",...r},a){return g(C,{asChild:!0,display:t,...r,children:g("thead",{ref:a,children:e})})}),dr=Fe(function({children:e,display:t="table-row-group",...r},a){return g(C,{asChild:!0,display:t,...r,children:g("tbody",{ref:a,children:e})})}),br=Fe(function({asHeaderCell:e,className:t,display:r="table-cell",spacing:a="5",borderBottomColor:n="muted",color:l="primary",...s},i){let p=c({textAlign:"start",className:t});return g(m,{asChild:!0,variant:e?"headline1":"body1",color:l,display:r,spacing:a,borderBottomColor:n,borderedBottom:!0,className:p,children:g(e?"th":"td",{scope:e==="row"?"row":e?"column":void 0,...s,ref:i})})});v.Root=lr;v.Row=pr;v.Header=cr;v.Body=dr;v.Cell=br;function v({data:o,columns:e}){return mr(v.Root,{children:[g(v.Header,{children:g(v.Row,{children:e.map((t,r)=>g(v.Cell,{asHeaderCell:"column",children:t.title},r))})}),g(v.Body,{children:o.map((t,r)=>g(v.Row,{children:e.map((a,n)=>{let l=t[a.dataIndex];return g(v.Cell,{children:a.render?a.render(l,t,r):ir(l)?l:String(l)},n)})},r))})]})}import{Tab as fr,TabList as ur,TabPanel as gr,TabProvider as yr,useTabContext as No}from"@ariakit/react";import{forwardRef as _o}from"react";import{jsx as Ne,jsxs as Tr}from"react/jsx-runtime";var hr=T();function xr(o){return Ne(yr,{...o})}var vr=_o(function({className:e,...t},r){let a=c({display:"flex",flexDirection:"row",columnGap:"7",className:e});return Ne(ur,{ref:r,...t,className:a})}),wr=function({asChild:e,label:t,value:r,startIcon:a}){let n=e?hr:"a",l=c({}),s=No();if(!s)throw new Error("Tab must be wrapped in a Tabs component");let i=s?.useState().activeId===r,p=i?"accent":"primary";return Ne(fr,{id:r,className:l,render:Ne(n,{children:Tr(x,{borderColor:i?"accent":"transparent",borderBottomWidth:"thick",spacingBottom:"3",spacingTop:"6",children:[a?Ne(y,{name:a,color:p,size:"m"}):null,Ne(m,{color:p,variant:"headline1",children:t})]})})})},Pr=_o(function(e,t){let r=No();if(!r)throw new Error("TabPanel must be wrapped in a Tabs component");let a=r.useState("selectedId");return Ne(gr,{ref:t,tabId:a,...e})});import{jsx as Cr}from"react/jsx-runtime";function lo({className:o,disabled:e,backgroundColor:t=e?"secondary":"primary",borderColor:r="tertiary",borderWidth:a="thin",borderRadius:n="md",color:l="primary",placeholderColor:s="tertiary",spacingVertical:i="5",spacingHorizontal:p="6",fontSize:d="body1",...f}){return Cr("input",{type:"text","data-1p-ignore":!0,className:u(c({backgroundColor:t,borderColor:r,borderWidth:a,borderRadius:n,spacingVertical:i,spacingHorizontal:p,width:"full",fontSize:d,fontWeight:d,lineHeight:d,fontFamily:d,color:l,placeholderColor:s}),o),disabled:e,...f})}import{jsx as Sr,jsxs as kr}from"react/jsx-runtime";function po({children:o,required:e}){return kr(m,{variant:"caption2",children:[o,e&&Sr(m,{variant:"caption2",as:"span",color:"alert",spacingStart:"2",children:"*"})]})}import{jsx as Bo,jsxs as Rr}from"react/jsx-runtime";function Ar({label:o,required:e,...t}){return Rr(P,{gap:"4",width:"full",children:[Bo(po,{required:e,children:o}),Bo(lo,{required:e,...t})]})}import{Slide as Er,toast as Ir,ToastContainer as Dr}from"react-toastify";import{jsx as Oo}from"react/jsx-runtime";var Lr=c({elevation:"3",borderRadius:"md",spacingVertical:"6",spacingHorizontal:"5",display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",columnGap:"5",overflow:"hidden",position:"relative",className:"cursor-pointer"}),Mr=c({fontSize:"label2",lineHeight:"label2",fontWeight:"label2"}),Hr=c({backgroundColor:"positive"}),Nr=c({backgroundColor:"alert"}),_r=c({backgroundColor:"accent"}),Br=c({backgroundColor:"warning"}),Or=c({backgroundColor:"elevation-3-inverse"}),zr=c({backgroundColor:"elevation-3-inverse"}),Vr=c({backgroundColor:"positive-wash",color:"positive"}),Fr=c({backgroundColor:"alert-wash",color:"alert"}),Gr=c({backgroundColor:"accent-wash",color:"accent"}),Ur=c({backgroundColor:"warning-wash",color:"warning"}),Wr=c({backgroundColor:"elevation-3-inverse",color:"on-color"}),Xr=c({backgroundColor:"elevation-3-inverse",color:"on-color"}),$r=o=>{let{type:e="default"}=o??{},t={success:Vr,error:Fr,info:Gr,warning:Ur,default:Wr,dark:Xr}[e];return u(Lr,t)};function Zr(o){let{type:e="default",defaultClassName:t=""}=o??{},r={success:Hr,error:Nr,info:_r,warning:Br,default:Or,dark:zr}[e],a=t.replace(/Toastify__progress-bar-theme--light/,"");return u(a,r)}function Kr({closeToast:o,type:e}){let t={success:"positive",error:"alert",info:"accent",warning:"warning",default:"on-color",dark:"white"}[e];return Oo(so,{name:"close",size:"s",variant:"accent-ghost",color:t,onClick:o})}function Yr(o){return Oo(Dr,{toastClassName:$r,bodyClassName:Mr,progressClassName:Zr,transition:Er,closeButton:Kr,...o})}export{ut as Accordion,yt as Avatar,Qe as Button,Pt as Chip,Ft as Dropdown,Xt as DropdownItem,no as DropdownItemPressable,Zt as DropdownItems,Yt as DropdownTrigger,so as IconButton,rr as Modal,ar as ModalDismiss,tr as ModalHeader,oo as Popover,_t as PopoverAnchor,to as PopoverArrow,Bt as PopoverDescription,ao as PopoverDisclosure,zt as PopoverDisclosureArrow,Ot as PopoverDismiss,Nt as PopoverHeading,ro as PopoverProvider,sr as Spinner,wr as Tab,vr as TabList,Pr as TabPanel,v as Table,xr as Tabs,lo as TextInput,Ar as TextInputGroup,po as TextInputLabel,Yr as ToastContainer,Ir as toast,or as useModalStore,eo as usePopoverStore};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";var l=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var x=Object.getOwnPropertyNames;var g=Object.prototype.hasOwnProperty;var m=(n,e)=>{for(var i in e)l(n,i,{get:e[i],enumerable:!0})},E=(n,e,i,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of x(e))!g.call(n,r)&&r!==i&&l(n,r,{get:()=>e[r],enumerable:!(s=u(e,r))||s.enumerable});return n};var F=n=>E(l({},"__esModule",{value:!0}),n);var C={};m(C,{findReferencesAsJsxElements:()=>J,getJsxElement:()=>D,getJsxElements:()=>f,getReactFunctionDeclaration:()=>d,getUsedPropsInReference:()=>A,isForwardRefExpression:()=>a,isJsxComponent:()=>c});module.exports=F(C);var t=require("ts-morph");function a(n){if(t.Node.isCallExpression(n)){let e=n.getExpression();if(t.Node.isIdentifier(e)&&e.getText()==="forwardRef"||t.Node.isPropertyAccessExpression(e)&&e.getText()==="React.forwardRef")return!0}return!1}function c(n){let e;return t.Node.isVariableDeclaration(n)||t.Node.isFunctionDeclaration(n)||t.Node.isClassDeclaration(n)?e=n.getName():(t.Node.isFunctionExpression(n)||t.Node.isArrowFunction(n))&&(e=n.getFirstAncestorByKind(t.SyntaxKind.VariableDeclaration)?.getName()),e?/[A-Z]/.test(e.charAt(0)):!1}function d(n){if(c(n)){if(t.Node.isFunctionDeclaration(n))return n;if(t.Node.isVariableDeclaration(n)){let e=n.getInitializer();if(e){if(a(e)){let[i]=e.getArguments();if(t.Node.isFunctionDeclaration(i)||t.Node.isFunctionExpression(i)||t.Node.isArrowFunction(i))return i}else if(t.Node.isFunctionDeclaration(e)||t.Node.isFunctionExpression(e)||t.Node.isArrowFunction(e))return e}}}return null}function D(n,e){return f(n).find(i=>i.getFirstDescendantByKindOrThrow(t.SyntaxKind.Identifier).getText()===e)}function f(n){return n.getDescendants().filter(e=>t.Node.isJsxElement(e)||t.Node.isJsxSelfClosingElement(e))}function J(n){let e=[];for(let i of n.findReferencesAsNodes()){let s=i.getFirstAncestor(r=>t.Node.isJsxOpeningElement(r)||t.Node.isJsxSelfClosingElement(r));s&&e.push(s)}return e}var A=n=>n.getAttributes().map(s=>{if(t.Node.isJsxAttribute(s))return[s.getNameNode().getText()];if(t.Node.isJsxSpreadAttribute(s)){let r=s.getExpression().getChildren(),o=r.length===0?s.getExpression():r.pop();return!o||o?.getText()==="props"?[]:o.getType().getProperties().map(p=>p.getName()).flat()}return[]}).flat();0&&(module.exports={findReferencesAsJsxElements,getJsxElement,getJsxElements,getReactFunctionDeclaration,getUsedPropsInReference,isForwardRefExpression,isJsxComponent});
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import { Node, CallExpression, VariableDeclaration, FunctionDeclaration, FunctionExpression, ArrowFunction, ClassDeclaration, JsxElement, JsxSelfClosingElement, Identifier, JsxOpeningElement } from 'ts-morph';
|
2
|
+
|
3
|
+
/** Determines if an expression is using React.forwardRef. */
|
4
|
+
declare function isForwardRefExpression(node: Node): node is CallExpression;
|
5
|
+
/** Determines if a node is a JSX component. */
|
6
|
+
declare function isJsxComponent(node: Node): node is VariableDeclaration | FunctionDeclaration | FunctionExpression | ArrowFunction | ClassDeclaration;
|
7
|
+
/** Returns a functional component declaration, unwrapping forwardRef if needed. */
|
8
|
+
declare function getReactFunctionDeclaration(declaration: Node): ArrowFunction | FunctionDeclaration | FunctionExpression | null;
|
9
|
+
/** Get the first descendant JsxElement based on the identifier. */
|
10
|
+
declare function getJsxElement(node: Node, name: string): JsxElement | JsxSelfClosingElement | undefined;
|
11
|
+
/** Get all descendant JsxElement nodes. */
|
12
|
+
declare function getJsxElements(node: Node): (JsxElement | JsxSelfClosingElement)[];
|
13
|
+
/**
|
14
|
+
* Traces component references.
|
15
|
+
*
|
16
|
+
* This is similar to `findReferencesAsNodes` but returns JsxSelfClosingElement and JsxElement nodes.
|
17
|
+
* Note, this currently does not account for cases where the component is used as a prop or is renamed.
|
18
|
+
*/
|
19
|
+
declare function findReferencesAsJsxElements(identifer: Identifier): (JsxOpeningElement | JsxSelfClosingElement)[];
|
20
|
+
/**
|
21
|
+
* Get used props on a reference.
|
22
|
+
*/
|
23
|
+
declare const getUsedPropsInReference: (reference: JsxOpeningElement | JsxSelfClosingElement) => string[];
|
24
|
+
|
25
|
+
export { findReferencesAsJsxElements, getJsxElement, getJsxElements, getReactFunctionDeclaration, getUsedPropsInReference, isForwardRefExpression, isJsxComponent };
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import { Node, CallExpression, VariableDeclaration, FunctionDeclaration, FunctionExpression, ArrowFunction, ClassDeclaration, JsxElement, JsxSelfClosingElement, Identifier, JsxOpeningElement } from 'ts-morph';
|
2
|
+
|
3
|
+
/** Determines if an expression is using React.forwardRef. */
|
4
|
+
declare function isForwardRefExpression(node: Node): node is CallExpression;
|
5
|
+
/** Determines if a node is a JSX component. */
|
6
|
+
declare function isJsxComponent(node: Node): node is VariableDeclaration | FunctionDeclaration | FunctionExpression | ArrowFunction | ClassDeclaration;
|
7
|
+
/** Returns a functional component declaration, unwrapping forwardRef if needed. */
|
8
|
+
declare function getReactFunctionDeclaration(declaration: Node): ArrowFunction | FunctionDeclaration | FunctionExpression | null;
|
9
|
+
/** Get the first descendant JsxElement based on the identifier. */
|
10
|
+
declare function getJsxElement(node: Node, name: string): JsxElement | JsxSelfClosingElement | undefined;
|
11
|
+
/** Get all descendant JsxElement nodes. */
|
12
|
+
declare function getJsxElements(node: Node): (JsxElement | JsxSelfClosingElement)[];
|
13
|
+
/**
|
14
|
+
* Traces component references.
|
15
|
+
*
|
16
|
+
* This is similar to `findReferencesAsNodes` but returns JsxSelfClosingElement and JsxElement nodes.
|
17
|
+
* Note, this currently does not account for cases where the component is used as a prop or is renamed.
|
18
|
+
*/
|
19
|
+
declare function findReferencesAsJsxElements(identifer: Identifier): (JsxOpeningElement | JsxSelfClosingElement)[];
|
20
|
+
/**
|
21
|
+
* Get used props on a reference.
|
22
|
+
*/
|
23
|
+
declare const getUsedPropsInReference: (reference: JsxOpeningElement | JsxSelfClosingElement) => string[];
|
24
|
+
|
25
|
+
export { findReferencesAsJsxElements, getJsxElement, getJsxElements, getReactFunctionDeclaration, getUsedPropsInReference, isForwardRefExpression, isJsxComponent };
|
@@ -0,0 +1 @@
|
|
1
|
+
import{Node as t,SyntaxKind as l}from"ts-morph";function c(n){if(t.isCallExpression(n)){let e=n.getExpression();if(t.isIdentifier(e)&&e.getText()==="forwardRef"||t.isPropertyAccessExpression(e)&&e.getText()==="React.forwardRef")return!0}return!1}function f(n){let e;return t.isVariableDeclaration(n)||t.isFunctionDeclaration(n)||t.isClassDeclaration(n)?e=n.getName():(t.isFunctionExpression(n)||t.isArrowFunction(n))&&(e=n.getFirstAncestorByKind(l.VariableDeclaration)?.getName()),e?/[A-Z]/.test(e.charAt(0)):!1}function g(n){if(f(n)){if(t.isFunctionDeclaration(n))return n;if(t.isVariableDeclaration(n)){let e=n.getInitializer();if(e){if(c(e)){let[i]=e.getArguments();if(t.isFunctionDeclaration(i)||t.isFunctionExpression(i)||t.isArrowFunction(i))return i}else if(t.isFunctionDeclaration(e)||t.isFunctionExpression(e)||t.isArrowFunction(e))return e}}}return null}function m(n,e){return p(n).find(i=>i.getFirstDescendantByKindOrThrow(l.Identifier).getText()===e)}function p(n){return n.getDescendants().filter(e=>t.isJsxElement(e)||t.isJsxSelfClosingElement(e))}function E(n){let e=[];for(let i of n.findReferencesAsNodes()){let s=i.getFirstAncestor(r=>t.isJsxOpeningElement(r)||t.isJsxSelfClosingElement(r));s&&e.push(s)}return e}var F=n=>n.getAttributes().map(s=>{if(t.isJsxAttribute(s))return[s.getNameNode().getText()];if(t.isJsxSpreadAttribute(s)){let r=s.getExpression().getChildren(),o=r.length===0?s.getExpression():r.pop();return!o||o?.getText()==="props"?[]:o.getType().getProperties().map(a=>a.getName()).flat()}return[]}).flat();export{E as findReferencesAsJsxElements,m as getJsxElement,p as getJsxElements,g as getReactFunctionDeclaration,F as getUsedPropsInReference,c as isForwardRefExpression,f as isJsxComponent};
|
package/dist/tailwindPurge.cjs
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
"use strict";var a=Object.defineProperty;var n=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var s=Object.prototype.hasOwnProperty;var l=(t,e)=>{for(var r in e)a(t,r,{get:e[r],enumerable:!0})},b=(t,e,r,d)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of i(e))!s.call(t,o)&&o!==r&&a(t,o,{get:()=>e[o],enumerable:!(d=n(e,o))||d.enumerable});return t};var c=t=>b(a({},"__esModule",{value:!0}),t);var f={};l(f,{componentToVariants:()=>h,componentsDependencies:()=>m,variantToTailwindClass:()=>p,variantsList:()=>g});module.exports=c(f);var p={color:"text-accent text-alert text-black text-brand text-positive text-warning text-white text-transparent text-muted text-on-color text-primary text-secondary text-tertiary",colorChecked:"data-[state=checked]:text-accent data-[state=checked]:text-alert data-[state=checked]:text-black data-[state=checked]:text-brand data-[state=checked]:text-positive data-[state=checked]:text-warning data-[state=checked]:text-white data-[state=checked]:text-transparent data-[state=checked]:text-primary data-[state=checked]:text-secondary data-[state=checked]:text-muted data-[state=checked]:text-on-color data-[state=checked]:text-tertiary",placeholderColor:"placeholder:text-accent placeholder:text-alert placeholder:text-black placeholder:text-brand placeholder:text-positive placeholder:text-warning placeholder:text-white placeholder:text-transparent placeholder:text-muted placeholder:text-on-color placeholder:text-primary placeholder:text-secondary placeholder:text-tertiary",fontFamily:"font-icons font-sans font-sans-beta font-sans-condensed font-serif-text font-serif-display font-display1 font-display2 font-display3 font-title1 font-title2 font-title3 font-title4 font-headline1 font-body1 font-label1 font-label2 font-caption1 font-caption2 font-legal1",fontSize:"font-size-display1 font-size-display2 font-size-display3 font-size-title1 font-size-title2 font-size-title3 font-size-title4 font-size-headline1 font-size-body1 font-size-label1 font-size-label2 font-size-caption1 font-size-caption2 font-size-legal1",fontWeight:"font-weight-thin font-weight-extralight font-weight-light font-weight-regular font-weight-medium font-weight-semibold font-weight-bold font-weight-extrabold font-weight-black font-weight-display1 font-weight-display2 font-weight-display3 font-weight-title1 font-weight-title2 font-weight-title3 font-weight-title4 font-weight-headline1 font-weight-body1 font-weight-label1 font-weight-label2 font-weight-caption1 font-weight-caption2 font-weight-legal1",lineHeight:"leading-display1 leading-display2 leading-display3 leading-title1 leading-title2 leading-title3 leading-title4 leading-headline1 leading-body1 leading-label1 leading-label2 leading-caption1 leading-caption2 leading-legal1",textAlign:"text-center text-justify text-start text-end",textTransform:"case-display1 case-display2 case-display3 case-title1 case-title2 case-title3 case-title4 case-headline1 case-body1 case-label1 case-label2 case-caption1 case-caption2 case-legal1 normal-case uppercase lowercase capitalize",spacing:"p-1 p-2 p-3 p-4 p-5 p-6 p-7 p-8 p-9 p-10 p-11 p-12 p-13 p-14 p-[0px]",spacingHorizontal:"px-1 px-2 px-3 px-4 px-5 px-6 px-7 px-8 px-9 px-10 px-11 px-12 px-13 px-14 px-none",spacingVertical:"py-1 py-2 py-3 py-4 py-5 py-6 py-7 py-8 py-9 py-10 py-11 py-12 py-13 py-14 py-none",spacingBottom:"pb-1 pb-2 pb-3 pb-4 pb-5 pb-6 pb-7 pb-8 pb-9 pb-10 pb-11 pb-12 pb-13 pb-14 pb-none",spacingEnd:"pe-1 pe-2 pe-3 pe-4 pe-5 pe-6 pe-7 pe-8 pe-9 pe-10 pe-11 pe-12 pe-13 pe-14 pe-none",spacingStart:"ps-1 ps-2 ps-3 ps-4 ps-5 ps-6 ps-7 ps-8 ps-9 ps-10 ps-11 ps-12 ps-13 ps-14 ps-none",spacingTop:"pt-1 pt-2 pt-3 pt-4 pt-5 pt-6 pt-7 pt-8 pt-9 pt-10 pt-11 pt-12 pt-13 pt-14 pt-none",offset:"-m-1 -m-2 -m-3 -m-4 -m-5 -m-6 -m-7 -m-8 -m-9 -m-10 -m-11 -m-12 -m-13 -m-14 -m-none",offsetVertical:"-my-1 -my-2 -my-3 -my-4 -my-5 -my-6 -my-7 -my-8 -my-9 -my-10 -my-11 -my-12 -my-13 -my-14 -my-none",offsetHorizontal:"-mx-1 -mx-2 -mx-3 -mx-4 -mx-5 -mx-6 -mx-7 -mx-8 -mx-9 -mx-10 -mx-11 -mx-12 -mx-13 -mx-14 -mx-none",offsetBottom:"-mb-1 -mb-2 -mb-3 -mb-4 -mb-5 -mb-6 -mb-7 -mb-8 -mb-9 -mb-10 -mb-11 -mb-12 -mb-13 -mb-14 -mb-none",offsetEnd:"-me-1 -me-2 -me-3 -me-4 -me-5 -me-6 -me-7 -me-8 -me-9 -me-10 -me-11 -me-12 -me-13 -me-14 -me-none",offsetStart:"-ms-1 -ms-2 -ms-3 -ms-4 -ms-5 -ms-6 -ms-7 -ms-8 -ms-9 -ms-10 -ms-11 -ms-12 -ms-13 -ms-14 -ms-none",offsetTop:"-mt-1 -mt-2 -mt-3 -mt-4 -mt-5 -mt-6 -mt-7 -mt-8 -mt-9 -mt-10 -mt-11 -mt-12 -mt-13 -mt-14 -mt-none",columnGap:"gap-x-1 gap-x-2 gap-x-3 gap-x-4 gap-x-5 gap-x-6 gap-x-7 gap-x-8 gap-x-9 gap-x-10 gap-x-11 gap-x-12 gap-x-13 gap-x-14 gap-x-none",rowGap:"gap-y-1 gap-y-2 gap-y-3 gap-y-4 gap-y-5 gap-y-6 gap-y-7 gap-y-8 gap-y-9 gap-y-10 gap-y-11 gap-y-12 gap-y-13 gap-y-14 gap-y-none",backgroundColor:"bg-accent bg-alert bg-black bg-brand bg-positive bg-warning bg-white bg-accent-wash bg-alert-wash bg-brand-wash bg-elevation-1 bg-elevation-2 bg-elevation-3 bg-elevation-3-inverse bg-overlay bg-positive-wash bg-primary bg-secondary bg-transparent bg-warning-wash",backgroundColorOnActive:"active:bg-accent active:bg-alert active:bg-black active:bg-brand active:bg-positive active:bg-warning active:bg-white active:bg-accent-wash active:bg-alert-wash active:bg-brand-wash active:bg-elevation-1 active:bg-elevation-2 active:bg-elevation-3 active:bg-elevation-3-inverse active:bg-overlay active:bg-positive-wash active:bg-primary active:bg-secondary active:bg-transparent active:bg-warning-wash",backgroundColorOnHover:"hover:bg-accent/80 hover:bg-alert/80 hover:bg-black/80 hover:bg-brand/80 hover:bg-positive/80 hover:bg-warning/80 hover:bg-white/80 hover:bg-accent-wash/80 hover:bg-alert-wash/80 hover:bg-brand-wash/80 hover:bg-elevation-1/80 hover:bg-elevation-2/80 hover:bg-elevation-3/80 hover:bg-elevation-3-inverse/80 hover:bg-overlay/80 hover:bg-positive-wash/80 hover:bg-primary/80 hover:bg-secondary/80 hover:bg-transparent/80 hover:bg-warning-wash/80",backgroundColorOnChecked:"data-[state=checked]:bg-accent data-[state=checked]:bg-alert data-[state=checked]:bg-black data-[state=checked]:bg-brand data-[state=checked]:bg-positive data-[state=checked]:bg-warning data-[state=checked]:bg-white data-[state=checked]:bg-accent-wash data-[state=checked]:bg-alert-wash data-[state=checked]:bg-brand-wash data-[state=checked]:bg-elevation-1 data-[state=checked]:bg-elevation-2 data-[state=checked]:bg-elevation-3 data-[state=checked]:bg-elevation-3-inverse data-[state=checked]:bg-overlay data-[state=checked]:bg-positive-wash data-[state=checked]:bg-primary data-[state=checked]:bg-secondary data-[state=checked]:bg-transparent data-[state=checked]:bg-warning-wash",backgroundColorOnFocus:"focus:bg-accent focus:bg-alert focus:bg-black focus:bg-brand focus:bg-positive focus:bg-warning focus:bg-white focus:bg-accent-wash focus:bg-alert-wash focus:bg-brand-wash focus:bg-elevation-1 focus:bg-elevation-2 focus:bg-elevation-3 focus:bg-elevation-3-inverse focus:bg-overlay focus:bg-positive-wash focus:bg-primary focus:bg-secondary focus:bg-transparent focus:bg-warning-wash",elevation:"bg-elevation-1 z-30 shadow-1 bg-elevation-2 z-40 shadow-2 bg-elevation-3 z-50 shadow-3",opacity:"opacity-0 opacity-5 opacity-10 opacity-20 opacity-25 opacity-30 opacity-40 opacity-50 opacity-60 opacity-70 opacity-75 opacity-80 opacity-90 opacity-95 opacity-100",borderColor:"border-accent border-alert border-black border-brand border-positive border-warning border-white border-transparent border-muted border-primary border-secondary border-tertiary",borderColorOnActive:"active:border-accent active:border-alert active:border-black active:border-brand active:border-positive active:border-warning active:border-white active:border-transparent active:border-muted active:border-primary active:border-secondary active:border-tertiary",borderColorOnFocus:"focus:border-accent focus:border-alert focus:border-black focus:border-brand focus:border-positive focus:border-warning focus:border-white focus:border-transparent focus:border-muted focus:border-primary focus:border-secondary focus:border-tertiary",borderColorOnHover:"hover:border-accent hover:border-alert hover:border-black hover:border-brand hover:border-positive hover:border-warning hover:border-white hover:border-transparent hover:border-muted hover:border-primary hover:border-secondary hover:border-tertiary",borderColorOnChecked:"data-[state=checked]:border-accent data-[state=checked]:border-alert data-[state=checked]:border-black data-[state=checked]:border-brand data-[state=checked]:border-positive data-[state=checked]:border-warning data-[state=checked]:border-white data-[state=checked]:border-transparent data-[state=checked]:border-muted data-[state=checked]:border-primary data-[state=checked]:border-secondary data-[state=checked]:border-tertiary",borderStartColor:"border-s-accent border-s-alert border-s-black border-s-brand border-s-positive border-s-warning border-s-white border-s-transparent border-s-muted border-s-primary border-s-secondary border-s-tertiary",borderEndColor:"border-e-accent border-e-alert border-e-black border-e-brand border-e-positive border-e-warning border-e-white border-e-transparent border-e-muted border-e-primary border-e-secondary border-e-tertiary",borderBottomColor:"border-b-accent border-b-alert border-b-black border-b-brand border-b-positive border-b-warning border-b-white border-b-transparent border-b-muted border-b-primary border-b-secondary border-b-tertiary",borderTopColor:"border-t-accent border-t-alert border-t-black border-t-brand border-t-positive border-t-warning border-t-white border-t-transparent border-t-muted border-t-primary border-t-secondary border-t-tertiary",borderRadius:"rounded-none rounded-xs rounded-sm rounded-md rounded-lg rounded-xl rounded-full",borderTopStartRadius:"rounded-ss-none rounded-ss-xs rounded-ss-sm rounded-ss-md rounded-ss-lg rounded-ss-xl rounded-ss-full",borderTopEndRadius:"rounded-se-none rounded-se-xs rounded-se-sm rounded-se-md rounded-se-lg rounded-se-xl rounded-se-full",borderBottomStartRadius:"rounded-es-none rounded-es-xs rounded-es-sm rounded-es-md rounded-es-lg rounded-es-xl rounded-es-full",borderBottomEndRadius:"rounded-ee-none rounded-ee-xs rounded-ee-sm rounded-ee-md rounded-ee-lg rounded-ee-xl rounded-ee-full",bordered:"border-thin border-solid",borderWidth:"border-none border-thin border-medium border-thick",borderVerticalWidth:"border-y-none border-y-thin border-y-medium border-y-thick",borderHorizontalWidth:"border-x-none border-x-thin border-x-medium border-x-thick",borderStartWidth:"border-s-none border-s-thin border-s-medium border-s-thick",borderEndWidth:"border-e-none border-e-thin border-e-medium border-e-thick",borderTopWidth:"border-t-none border-t-thin border-t-medium border-t-thick",borderBottomWidth:"border-b-none border-b-thin border-b-medium border-b-thick",borderedVertical:"border-y-thin",borderedTop:"border-t-thin",borderedBottom:"border-b-thin",borderedHorizontal:"border-x-thin",borderedEnd:"border-e-thin",borderedStart:"border-s-thin",height:"h-auto h-full h-screen h-min h-max h-fit h-1/2 h-1/3 h-2/3 h-1/4 h-2/4 h-3/4 h-1/5 h-2/5 h-3/5 h-4/5 h-1/6 h-2/6 h-3/6 h-4/6 h-5/6",minHeight:"min-h-full min-h-min min-h-max min-h-fit min-h-screen",maxHeight:"max-h-full max-h-min max-h-max max-h-fit max-h-screen max-h-[0px]",width:"w-auto w-full w-screen w-min w-max w-fit w-1/2 w-1/3 w-2/3 w-1/4 w-2/4 w-3/4 w-1/5 w-2/5 w-3/5 w-4/5 w-1/6 w-2/6 w-3/6 w-4/6 w-5/6 w-1/12 w-2/12 w-3/12 w-4/12 w-5/12 w-6/12 w-7/12 w-8/12 w-9/12 w-10/12 w-11/12",minWidth:"min-w-full min-w-min min-w-max min-w-fit min-w-screen",maxWidth:"max-w-[0px] max-w-full max-w-min max-w-max max-w-fit",avatarSize:"avatarSize-s avatarSize-m avatarSize-l",iconSize:"iconSize-s leading-none iconSize-m leading-none iconSize-l leading-none",alignContent:"content-start content-end content-center content-stretch content-between content-around",alignItems:"items-start items-end items-center items-stretch items-baseline",alignSelf:"self-auto self-start self-end self-center self-stretch self-baseline",flex:"flex-1 flex-auto flex-initial flex-none",flexDirection:"flex-row flex-col flex-row-reverse flex-col-reverse",flexGrow:"grow-0 grow grow-[2] grow-[3]",flexShrink:"shrink-0 shrink",flexWrap:"flex-wrap flex-wrap-reverse flex-nowrap",justifyContent:"justify-start justify-end justify-center justify-between justify-around justify-evenly",flexBasis:"basis-[min-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 contents",overflow:"overflow-auto overflow-hidden overflow-clip overflow-visible overflow-scroll",overflowX:"overflow-x-auto overflow-x-hidden overflow-x-clip overflow-x-visible overflow-x-scroll",overflowY:"overflow-y-auto overflow-y-hidden overflow-y-clip overflow-y-visible overflow-y-scroll",position:"static fixed absolute relative sticky",zIndex:"z-0 z-10 z-20 z-40 z-30 z-50 z-auto",contentFit:"object-contain object-cover object-fill object-none object-scale-down",colorMode:"uds-color-mode-dark uds-color-mode-light",scaleMode:"uds-scale-mode-xsmall uds-scale-mode-small uds-scale-mode-medium uds-scale-mode-large uds-scale-mode-xlarge uds-scale-mode-xxxlarge uds-scale-mode-xxlarge"},g=["color","colorChecked","placeholderColor","fontFamily","fontSize","fontWeight","lineHeight","textAlign","textTransform","spacing","spacingHorizontal","spacingVertical","spacingBottom","spacingEnd","spacingStart","spacingTop","offset","offsetVertical","offsetHorizontal","offsetBottom","offsetEnd","offsetStart","offsetTop","columnGap","rowGap","backgroundColor","backgroundColorOnActive","backgroundColorOnHover","backgroundColorOnChecked","backgroundColorOnFocus","elevation","opacity","borderColor","borderColorOnActive","borderColorOnFocus","borderColorOnHover","borderColorOnChecked","borderStartColor","borderEndColor","borderBottomColor","borderTopColor","borderRadius","borderTopStartRadius","borderTopEndRadius","borderBottomStartRadius","borderBottomEndRadius","bordered","borderWidth","borderVerticalWidth","borderHorizontalWidth","borderStartWidth","borderEndWidth","borderTopWidth","borderBottomWidth","borderedVertical","borderedTop","borderedBottom","borderedHorizontal","borderedEnd","borderedStart","height","minHeight","maxHeight","width","minWidth","maxWidth","avatarSize","iconSize","alignContent","alignItems","alignSelf","flex","flexDirection","flexGrow","flexShrink","flexWrap","justifyContent","flexBasis","display","overflow","overflowX","overflowY","position","zIndex","contentFit","colorMode","scaleMode"],h={Box:["backgroundColor","display","flexDirection","rowGap","columnGap","borderColor","elevation","borderRadius","overflow"],HStack:["alignItems","justifyContent"],Icon:["color"],Image:["contentFit","backgroundColor","flexShrink","display"],Pressable:["display","flexDirection","alignItems","justifyContent","spacingVertical","spacingHorizontal","backgroundColorOnHover","borderRadius","width","backgroundColor","backgroundColorOnActive","backgroundColorOnFocus","backgroundColorOnChecked","elevation","bordered","borderedTop","borderedBottom","borderedStart","borderedEnd","borderedHorizontal","borderedVertical","borderTopStartRadius","borderTopEndRadius","borderBottomStartRadius","borderBottomEndRadius","borderColor","borderColorOnActive","borderColorOnFocus","borderColorOnChecked","borderColorOnHover","borderStartColor","borderEndColor","borderTopColor","borderBottomColor","borderWidth","borderVerticalWidth","borderHorizontalWidth","borderStartWidth","borderEndWidth","borderTopWidth","borderBottomWidth","alignContent","alignSelf","flex","flexGrow","flexShrink","flexWrap","flexBasis","zIndex","overflow","overflowX","overflowY","position","opacity","height","minHeight","maxHeight","minWidth","maxWidth","spacing","spacingBottom","spacingEnd","spacingStart","spacingTop","offset","offsetVertical","offsetHorizontal","offsetBottom","offsetEnd","offsetStart","offsetTop","columnGap","rowGap"],Text:["color","fontSize","fontFamily","fontWeight","lineHeight","textTransform","textAlign","display","spacing","borderBottomColor","borderedBottom","spacingStart"],VStack:["overflow","maxHeight","spacingHorizontal","minHeight","alignItems","borderRadius","elevation","spacingVertical","position","height","zIndex","spacing","width"]},m={Box:[],HStack:["Box"],Icon:[],Image:[],Pressable:[],Text:[],VStack:["Box"]};0&&(module.exports={componentToVariants,componentsDependencies,variantToTailwindClass,variantsList});
|
1
|
+
"use strict";var a=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var s=Object.prototype.hasOwnProperty;var l=(t,e)=>{for(var r in e)a(t,r,{get:e[r],enumerable:!0})},b=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of i(e))!s.call(t,o)&&o!==r&&a(t,o,{get:()=>e[o],enumerable:!(n=d(e,o))||n.enumerable});return t};var c=t=>b(a({},"__esModule",{value:!0}),t);var x={};l(x,{componentToTwClasses:()=>m,componentToVariants:()=>h,componentsDependencies:()=>f,variantToTailwindClass:()=>p,variantsList:()=>g});module.exports=c(x);var p={color:"text-accent text-alert text-black text-brand text-positive text-warning text-white text-transparent text-muted text-on-color text-primary text-secondary text-tertiary",colorChecked:"data-[state=checked]:text-accent data-[state=checked]:text-alert data-[state=checked]:text-black data-[state=checked]:text-brand data-[state=checked]:text-positive data-[state=checked]:text-warning data-[state=checked]:text-white data-[state=checked]:text-transparent data-[state=checked]:text-primary data-[state=checked]:text-secondary data-[state=checked]:text-muted data-[state=checked]:text-on-color data-[state=checked]:text-tertiary",placeholderColor:"placeholder:text-accent placeholder:text-alert placeholder:text-black placeholder:text-brand placeholder:text-positive placeholder:text-warning placeholder:text-white placeholder:text-transparent placeholder:text-muted placeholder:text-on-color placeholder:text-primary placeholder:text-secondary placeholder:text-tertiary",fontFamily:"font-icons font-sans font-sans-beta font-sans-condensed font-serif-text font-serif-display font-display1 font-display2 font-display3 font-title1 font-title2 font-title3 font-title4 font-headline1 font-body1 font-label1 font-label2 font-caption1 font-caption2 font-legal1",fontSize:"font-size-display1 font-size-display2 font-size-display3 font-size-title1 font-size-title2 font-size-title3 font-size-title4 font-size-headline1 font-size-body1 font-size-label1 font-size-label2 font-size-caption1 font-size-caption2 font-size-legal1",fontWeight:"font-weight-thin font-weight-extralight font-weight-light font-weight-regular font-weight-medium font-weight-semibold font-weight-bold font-weight-extrabold font-weight-black font-weight-display1 font-weight-display2 font-weight-display3 font-weight-title1 font-weight-title2 font-weight-title3 font-weight-title4 font-weight-headline1 font-weight-body1 font-weight-label1 font-weight-label2 font-weight-caption1 font-weight-caption2 font-weight-legal1",lineHeight:"leading-display1 leading-display2 leading-display3 leading-title1 leading-title2 leading-title3 leading-title4 leading-headline1 leading-body1 leading-label1 leading-label2 leading-caption1 leading-caption2 leading-legal1",textAlign:"text-center text-justify text-start text-end",textTransform:"case-display1 case-display2 case-display3 case-title1 case-title2 case-title3 case-title4 case-headline1 case-body1 case-label1 case-label2 case-caption1 case-caption2 case-legal1 normal-case uppercase lowercase capitalize",spacing:"p-1 p-2 p-3 p-4 p-5 p-6 p-7 p-8 p-9 p-10 p-11 p-12 p-13 p-14 p-[0px]",spacingHorizontal:"px-1 px-2 px-3 px-4 px-5 px-6 px-7 px-8 px-9 px-10 px-11 px-12 px-13 px-14 px-none",spacingVertical:"py-1 py-2 py-3 py-4 py-5 py-6 py-7 py-8 py-9 py-10 py-11 py-12 py-13 py-14 py-none",spacingBottom:"pb-1 pb-2 pb-3 pb-4 pb-5 pb-6 pb-7 pb-8 pb-9 pb-10 pb-11 pb-12 pb-13 pb-14 pb-none",spacingEnd:"pe-1 pe-2 pe-3 pe-4 pe-5 pe-6 pe-7 pe-8 pe-9 pe-10 pe-11 pe-12 pe-13 pe-14 pe-none",spacingStart:"ps-1 ps-2 ps-3 ps-4 ps-5 ps-6 ps-7 ps-8 ps-9 ps-10 ps-11 ps-12 ps-13 ps-14 ps-none",spacingTop:"pt-1 pt-2 pt-3 pt-4 pt-5 pt-6 pt-7 pt-8 pt-9 pt-10 pt-11 pt-12 pt-13 pt-14 pt-none",offset:"-m-1 -m-2 -m-3 -m-4 -m-5 -m-6 -m-7 -m-8 -m-9 -m-10 -m-11 -m-12 -m-13 -m-14 -m-none",offsetVertical:"-my-1 -my-2 -my-3 -my-4 -my-5 -my-6 -my-7 -my-8 -my-9 -my-10 -my-11 -my-12 -my-13 -my-14 -my-none",offsetHorizontal:"-mx-1 -mx-2 -mx-3 -mx-4 -mx-5 -mx-6 -mx-7 -mx-8 -mx-9 -mx-10 -mx-11 -mx-12 -mx-13 -mx-14 -mx-none",offsetBottom:"-mb-1 -mb-2 -mb-3 -mb-4 -mb-5 -mb-6 -mb-7 -mb-8 -mb-9 -mb-10 -mb-11 -mb-12 -mb-13 -mb-14 -mb-none",offsetEnd:"-me-1 -me-2 -me-3 -me-4 -me-5 -me-6 -me-7 -me-8 -me-9 -me-10 -me-11 -me-12 -me-13 -me-14 -me-none",offsetStart:"-ms-1 -ms-2 -ms-3 -ms-4 -ms-5 -ms-6 -ms-7 -ms-8 -ms-9 -ms-10 -ms-11 -ms-12 -ms-13 -ms-14 -ms-none",offsetTop:"-mt-1 -mt-2 -mt-3 -mt-4 -mt-5 -mt-6 -mt-7 -mt-8 -mt-9 -mt-10 -mt-11 -mt-12 -mt-13 -mt-14 -mt-none",columnGap:"gap-x-1 gap-x-2 gap-x-3 gap-x-4 gap-x-5 gap-x-6 gap-x-7 gap-x-8 gap-x-9 gap-x-10 gap-x-11 gap-x-12 gap-x-13 gap-x-14 gap-x-none",rowGap:"gap-y-1 gap-y-2 gap-y-3 gap-y-4 gap-y-5 gap-y-6 gap-y-7 gap-y-8 gap-y-9 gap-y-10 gap-y-11 gap-y-12 gap-y-13 gap-y-14 gap-y-none",backgroundColor:"bg-accent bg-alert bg-black bg-brand bg-positive bg-warning bg-white bg-accent-wash bg-alert-wash bg-brand-wash bg-elevation-1 bg-elevation-2 bg-elevation-3 bg-elevation-3-inverse bg-overlay bg-positive-wash bg-primary bg-secondary bg-transparent bg-warning-wash",backgroundColorOnActive:"active:bg-accent active:bg-alert active:bg-black active:bg-brand active:bg-positive active:bg-warning active:bg-white active:bg-accent-wash active:bg-alert-wash active:bg-brand-wash active:bg-elevation-1 active:bg-elevation-2 active:bg-elevation-3 active:bg-elevation-3-inverse active:bg-overlay active:bg-positive-wash active:bg-primary active:bg-secondary active:bg-transparent active:bg-warning-wash",backgroundColorOnHover:"hover:bg-accent/80 hover:bg-alert/80 hover:bg-black/80 hover:bg-brand/80 hover:bg-positive/80 hover:bg-warning/80 hover:bg-white/80 hover:bg-accent-wash/80 hover:bg-alert-wash/80 hover:bg-brand-wash/80 hover:bg-elevation-1/80 hover:bg-elevation-2/80 hover:bg-elevation-3/80 hover:bg-elevation-3-inverse/80 hover:bg-overlay/80 hover:bg-positive-wash/80 hover:bg-primary/80 hover:bg-secondary/80 hover:bg-transparent/80 hover:bg-warning-wash/80",backgroundColorOnChecked:"data-[state=checked]:bg-accent data-[state=checked]:bg-alert data-[state=checked]:bg-black data-[state=checked]:bg-brand data-[state=checked]:bg-positive data-[state=checked]:bg-warning data-[state=checked]:bg-white data-[state=checked]:bg-accent-wash data-[state=checked]:bg-alert-wash data-[state=checked]:bg-brand-wash data-[state=checked]:bg-elevation-1 data-[state=checked]:bg-elevation-2 data-[state=checked]:bg-elevation-3 data-[state=checked]:bg-elevation-3-inverse data-[state=checked]:bg-overlay data-[state=checked]:bg-positive-wash data-[state=checked]:bg-primary data-[state=checked]:bg-secondary data-[state=checked]:bg-transparent data-[state=checked]:bg-warning-wash",backgroundColorOnFocus:"focus:bg-accent focus:bg-alert focus:bg-black focus:bg-brand focus:bg-positive focus:bg-warning focus:bg-white focus:bg-accent-wash focus:bg-alert-wash focus:bg-brand-wash focus:bg-elevation-1 focus:bg-elevation-2 focus:bg-elevation-3 focus:bg-elevation-3-inverse focus:bg-overlay focus:bg-positive-wash focus:bg-primary focus:bg-secondary focus:bg-transparent focus:bg-warning-wash",elevation:"bg-elevation-1 z-30 shadow-1 bg-elevation-2 z-40 shadow-2 bg-elevation-3 z-50 shadow-3",opacity:"opacity-0 opacity-5 opacity-10 opacity-20 opacity-25 opacity-30 opacity-40 opacity-50 opacity-60 opacity-70 opacity-75 opacity-80 opacity-90 opacity-95 opacity-100",borderColor:"border-accent border-alert border-black border-brand border-positive border-warning border-white border-transparent border-muted border-primary border-secondary border-tertiary",borderColorOnActive:"active:border-accent active:border-alert active:border-black active:border-brand active:border-positive active:border-warning active:border-white active:border-transparent active:border-muted active:border-primary active:border-secondary active:border-tertiary",borderColorOnFocus:"focus:border-accent focus:border-alert focus:border-black focus:border-brand focus:border-positive focus:border-warning focus:border-white focus:border-transparent focus:border-muted focus:border-primary focus:border-secondary focus:border-tertiary",borderColorOnHover:"hover:border-accent hover:border-alert hover:border-black hover:border-brand hover:border-positive hover:border-warning hover:border-white hover:border-transparent hover:border-muted hover:border-primary hover:border-secondary hover:border-tertiary",borderColorOnChecked:"data-[state=checked]:border-accent data-[state=checked]:border-alert data-[state=checked]:border-black data-[state=checked]:border-brand data-[state=checked]:border-positive data-[state=checked]:border-warning data-[state=checked]:border-white data-[state=checked]:border-transparent data-[state=checked]:border-muted data-[state=checked]:border-primary data-[state=checked]:border-secondary data-[state=checked]:border-tertiary",borderStartColor:"border-s-accent border-s-alert border-s-black border-s-brand border-s-positive border-s-warning border-s-white border-s-transparent border-s-muted border-s-primary border-s-secondary border-s-tertiary",borderEndColor:"border-e-accent border-e-alert border-e-black border-e-brand border-e-positive border-e-warning border-e-white border-e-transparent border-e-muted border-e-primary border-e-secondary border-e-tertiary",borderBottomColor:"border-b-accent border-b-alert border-b-black border-b-brand border-b-positive border-b-warning border-b-white border-b-transparent border-b-muted border-b-primary border-b-secondary border-b-tertiary",borderTopColor:"border-t-accent border-t-alert border-t-black border-t-brand border-t-positive border-t-warning border-t-white border-t-transparent border-t-muted border-t-primary border-t-secondary border-t-tertiary",borderRadius:"rounded-none rounded-xs rounded-sm rounded-md rounded-lg rounded-xl rounded-full",borderTopStartRadius:"rounded-ss-none rounded-ss-xs rounded-ss-sm rounded-ss-md rounded-ss-lg rounded-ss-xl rounded-ss-full",borderTopEndRadius:"rounded-se-none rounded-se-xs rounded-se-sm rounded-se-md rounded-se-lg rounded-se-xl rounded-se-full",borderBottomStartRadius:"rounded-es-none rounded-es-xs rounded-es-sm rounded-es-md rounded-es-lg rounded-es-xl rounded-es-full",borderBottomEndRadius:"rounded-ee-none rounded-ee-xs rounded-ee-sm rounded-ee-md rounded-ee-lg rounded-ee-xl rounded-ee-full",bordered:"border-thin border-solid",borderWidth:"border-none border-thin border-medium border-thick",borderVerticalWidth:"border-y-none border-y-thin border-y-medium border-y-thick",borderHorizontalWidth:"border-x-none border-x-thin border-x-medium border-x-thick",borderStartWidth:"border-s-none border-s-thin border-s-medium border-s-thick",borderEndWidth:"border-e-none border-e-thin border-e-medium border-e-thick",borderTopWidth:"border-t-none border-t-thin border-t-medium border-t-thick",borderBottomWidth:"border-b-none border-b-thin border-b-medium border-b-thick",borderedVertical:"border-y-thin",borderedTop:"border-t-thin",borderedBottom:"border-b-thin",borderedHorizontal:"border-x-thin",borderedEnd:"border-e-thin",borderedStart:"border-s-thin",height:"h-auto h-full h-screen h-min h-max h-fit h-1/2 h-1/3 h-2/3 h-1/4 h-2/4 h-3/4 h-1/5 h-2/5 h-3/5 h-4/5 h-1/6 h-2/6 h-3/6 h-4/6 h-5/6",minHeight:"min-h-full min-h-min min-h-max min-h-fit min-h-screen",maxHeight:"max-h-full max-h-min max-h-max max-h-fit max-h-screen max-h-[0px]",width:"w-auto w-full w-screen w-min w-max w-fit w-1/2 w-1/3 w-2/3 w-1/4 w-2/4 w-3/4 w-1/5 w-2/5 w-3/5 w-4/5 w-1/6 w-2/6 w-3/6 w-4/6 w-5/6 w-1/12 w-2/12 w-3/12 w-4/12 w-5/12 w-6/12 w-7/12 w-8/12 w-9/12 w-10/12 w-11/12",minWidth:"min-w-full min-w-min min-w-max min-w-fit min-w-screen",maxWidth:"max-w-[0px] max-w-full max-w-min max-w-max max-w-fit",avatarSize:"avatarSize-s avatarSize-m avatarSize-l",iconSize:"iconSize-s leading-none iconSize-m leading-none iconSize-l leading-none",alignContent:"content-start content-end content-center content-stretch content-between content-around",alignItems:"items-start items-end items-center items-stretch items-baseline",alignSelf:"self-auto self-start self-end self-center self-stretch self-baseline",flex:"flex-1 flex-auto flex-initial flex-none",flexDirection:"flex-row flex-col flex-row-reverse flex-col-reverse",flexGrow:"grow-0 grow grow-[2] grow-[3]",flexShrink:"shrink-0 shrink",flexWrap:"flex-wrap flex-wrap-reverse flex-nowrap",justifyContent:"justify-start justify-end justify-center justify-between justify-around justify-evenly",flexBasis:"basis-[min-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 contents",overflow:"overflow-auto overflow-hidden overflow-clip overflow-visible overflow-scroll",overflowX:"overflow-x-auto overflow-x-hidden overflow-x-clip overflow-x-visible overflow-x-scroll",overflowY:"overflow-y-auto overflow-y-hidden overflow-y-clip overflow-y-visible overflow-y-scroll",position:"static fixed absolute relative sticky",zIndex:"z-0 z-10 z-20 z-40 z-30 z-50 z-auto",contentFit:"object-contain object-cover object-fill object-none object-scale-down",colorMode:"uds-color-mode-dark uds-color-mode-light",scaleMode:"uds-scale-mode-xsmall uds-scale-mode-small uds-scale-mode-medium uds-scale-mode-large uds-scale-mode-xlarge uds-scale-mode-xxxlarge uds-scale-mode-xxlarge"},g=["color","colorChecked","placeholderColor","fontFamily","fontSize","fontWeight","lineHeight","textAlign","textTransform","spacing","spacingHorizontal","spacingVertical","spacingBottom","spacingEnd","spacingStart","spacingTop","offset","offsetVertical","offsetHorizontal","offsetBottom","offsetEnd","offsetStart","offsetTop","columnGap","rowGap","backgroundColor","backgroundColorOnActive","backgroundColorOnHover","backgroundColorOnChecked","backgroundColorOnFocus","elevation","opacity","borderColor","borderColorOnActive","borderColorOnFocus","borderColorOnHover","borderColorOnChecked","borderStartColor","borderEndColor","borderBottomColor","borderTopColor","borderRadius","borderTopStartRadius","borderTopEndRadius","borderBottomStartRadius","borderBottomEndRadius","bordered","borderWidth","borderVerticalWidth","borderHorizontalWidth","borderStartWidth","borderEndWidth","borderTopWidth","borderBottomWidth","borderedVertical","borderedTop","borderedBottom","borderedHorizontal","borderedEnd","borderedStart","height","minHeight","maxHeight","width","minWidth","maxWidth","avatarSize","iconSize","alignContent","alignItems","alignSelf","flex","flexDirection","flexGrow","flexShrink","flexWrap","justifyContent","flexBasis","display","overflow","overflowX","overflowY","position","zIndex","contentFit","colorMode","scaleMode"],h={Box:["backgroundColor","display","flexDirection","rowGap","columnGap","borderColor","elevation","borderRadius","overflow"],HStack:["alignItems","justifyContent"],Icon:["color"],Image:["contentFit","backgroundColor","flexShrink","display"],Pressable:["display","flexDirection","alignItems","justifyContent","spacingVertical","spacingHorizontal","backgroundColorOnHover","borderRadius","width","backgroundColor","backgroundColorOnActive","backgroundColorOnFocus","backgroundColorOnChecked","elevation","bordered","borderedTop","borderedBottom","borderedStart","borderedEnd","borderedHorizontal","borderedVertical","borderTopStartRadius","borderTopEndRadius","borderBottomStartRadius","borderBottomEndRadius","borderColor","borderColorOnActive","borderColorOnFocus","borderColorOnChecked","borderColorOnHover","borderStartColor","borderEndColor","borderTopColor","borderBottomColor","borderWidth","borderVerticalWidth","borderHorizontalWidth","borderStartWidth","borderEndWidth","borderTopWidth","borderBottomWidth","alignContent","alignSelf","flex","flexGrow","flexShrink","flexWrap","flexBasis","zIndex","overflow","overflowX","overflowY","position","opacity","height","minHeight","maxHeight","minWidth","maxWidth","spacing","spacingBottom","spacingEnd","spacingStart","spacingTop","offset","offsetVertical","offsetHorizontal","offsetBottom","offsetEnd","offsetStart","offsetTop","columnGap","rowGap"],Text:["color","fontSize","fontFamily","fontWeight","lineHeight","textTransform","textAlign","display","spacing","borderBottomColor","borderedBottom","spacingStart"],VStack:["overflow","maxHeight","spacingHorizontal","minHeight","alignItems","borderRadius","elevation","spacingVertical","position","height","zIndex","spacing","width"]},m={Box:"flex",HStack:"container fill",Icon:"flex fill outline",Image:"flex",Pressable:"flex",Text:"flex text",VStack:"container fill"},f={Box:[],HStack:["Box"],Icon:[],Image:[],Pressable:[],Text:[],VStack:["Box"]};0&&(module.exports={componentToTwClasses,componentToVariants,componentsDependencies,variantToTailwindClass,variantsList});
|
2
2
|
//! This file is generated by purgeCSS.ts from @yahoo/uds
|
3
3
|
//! Do not edit directly
|
4
4
|
//! If there is issue with this file please report to #ask-uds
|
package/dist/tailwindPurge.d.cts
CHANGED
@@ -8,9 +8,13 @@ type VariantsList = string[];
|
|
8
8
|
type ComponentDependencies = {
|
9
9
|
[key: string]: string[];
|
10
10
|
};
|
11
|
+
type ComponentToTwClasses = {
|
12
|
+
[key: string]: string;
|
13
|
+
};
|
11
14
|
declare const variantToTailwindClass: VariantToTailwindClass;
|
12
15
|
declare const variantsList: VariantsList;
|
13
16
|
declare const componentToVariants: ComponentToVariants;
|
17
|
+
declare const componentToTwClasses: ComponentToTwClasses;
|
14
18
|
declare const componentsDependencies: ComponentDependencies;
|
15
19
|
|
16
|
-
export { type ComponentDependencies, type ComponentToVariants, type VariantToTailwindClass, type VariantsList, componentToVariants, componentsDependencies, variantToTailwindClass, variantsList };
|
20
|
+
export { type ComponentDependencies, type ComponentToTwClasses, type ComponentToVariants, type VariantToTailwindClass, type VariantsList, componentToTwClasses, componentToVariants, componentsDependencies, variantToTailwindClass, variantsList };
|
package/dist/tailwindPurge.d.ts
CHANGED
@@ -8,9 +8,13 @@ type VariantsList = string[];
|
|
8
8
|
type ComponentDependencies = {
|
9
9
|
[key: string]: string[];
|
10
10
|
};
|
11
|
+
type ComponentToTwClasses = {
|
12
|
+
[key: string]: string;
|
13
|
+
};
|
11
14
|
declare const variantToTailwindClass: VariantToTailwindClass;
|
12
15
|
declare const variantsList: VariantsList;
|
13
16
|
declare const componentToVariants: ComponentToVariants;
|
17
|
+
declare const componentToTwClasses: ComponentToTwClasses;
|
14
18
|
declare const componentsDependencies: ComponentDependencies;
|
15
19
|
|
16
|
-
export { type ComponentDependencies, type ComponentToVariants, type VariantToTailwindClass, type VariantsList, componentToVariants, componentsDependencies, variantToTailwindClass, variantsList };
|
20
|
+
export { type ComponentDependencies, type ComponentToTwClasses, type ComponentToVariants, type VariantToTailwindClass, type VariantsList, componentToTwClasses, componentToVariants, componentsDependencies, variantToTailwindClass, variantsList };
|
package/dist/tailwindPurge.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
var e={color:"text-accent text-alert text-black text-brand text-positive text-warning text-white text-transparent text-muted text-on-color text-primary text-secondary text-tertiary",colorChecked:"data-[state=checked]:text-accent data-[state=checked]:text-alert data-[state=checked]:text-black data-[state=checked]:text-brand data-[state=checked]:text-positive data-[state=checked]:text-warning data-[state=checked]:text-white data-[state=checked]:text-transparent data-[state=checked]:text-primary data-[state=checked]:text-secondary data-[state=checked]:text-muted data-[state=checked]:text-on-color data-[state=checked]:text-tertiary",placeholderColor:"placeholder:text-accent placeholder:text-alert placeholder:text-black placeholder:text-brand placeholder:text-positive placeholder:text-warning placeholder:text-white placeholder:text-transparent placeholder:text-muted placeholder:text-on-color placeholder:text-primary placeholder:text-secondary placeholder:text-tertiary",fontFamily:"font-icons font-sans font-sans-beta font-sans-condensed font-serif-text font-serif-display font-display1 font-display2 font-display3 font-title1 font-title2 font-title3 font-title4 font-headline1 font-body1 font-label1 font-label2 font-caption1 font-caption2 font-legal1",fontSize:"font-size-display1 font-size-display2 font-size-display3 font-size-title1 font-size-title2 font-size-title3 font-size-title4 font-size-headline1 font-size-body1 font-size-label1 font-size-label2 font-size-caption1 font-size-caption2 font-size-legal1",fontWeight:"font-weight-thin font-weight-extralight font-weight-light font-weight-regular font-weight-medium font-weight-semibold font-weight-bold font-weight-extrabold font-weight-black font-weight-display1 font-weight-display2 font-weight-display3 font-weight-title1 font-weight-title2 font-weight-title3 font-weight-title4 font-weight-headline1 font-weight-body1 font-weight-label1 font-weight-label2 font-weight-caption1 font-weight-caption2 font-weight-legal1",lineHeight:"leading-display1 leading-display2 leading-display3 leading-title1 leading-title2 leading-title3 leading-title4 leading-headline1 leading-body1 leading-label1 leading-label2 leading-caption1 leading-caption2 leading-legal1",textAlign:"text-center text-justify text-start text-end",textTransform:"case-display1 case-display2 case-display3 case-title1 case-title2 case-title3 case-title4 case-headline1 case-body1 case-label1 case-label2 case-caption1 case-caption2 case-legal1 normal-case uppercase lowercase capitalize",spacing:"p-1 p-2 p-3 p-4 p-5 p-6 p-7 p-8 p-9 p-10 p-11 p-12 p-13 p-14 p-[0px]",spacingHorizontal:"px-1 px-2 px-3 px-4 px-5 px-6 px-7 px-8 px-9 px-10 px-11 px-12 px-13 px-14 px-none",spacingVertical:"py-1 py-2 py-3 py-4 py-5 py-6 py-7 py-8 py-9 py-10 py-11 py-12 py-13 py-14 py-none",spacingBottom:"pb-1 pb-2 pb-3 pb-4 pb-5 pb-6 pb-7 pb-8 pb-9 pb-10 pb-11 pb-12 pb-13 pb-14 pb-none",spacingEnd:"pe-1 pe-2 pe-3 pe-4 pe-5 pe-6 pe-7 pe-8 pe-9 pe-10 pe-11 pe-12 pe-13 pe-14 pe-none",spacingStart:"ps-1 ps-2 ps-3 ps-4 ps-5 ps-6 ps-7 ps-8 ps-9 ps-10 ps-11 ps-12 ps-13 ps-14 ps-none",spacingTop:"pt-1 pt-2 pt-3 pt-4 pt-5 pt-6 pt-7 pt-8 pt-9 pt-10 pt-11 pt-12 pt-13 pt-14 pt-none",offset:"-m-1 -m-2 -m-3 -m-4 -m-5 -m-6 -m-7 -m-8 -m-9 -m-10 -m-11 -m-12 -m-13 -m-14 -m-none",offsetVertical:"-my-1 -my-2 -my-3 -my-4 -my-5 -my-6 -my-7 -my-8 -my-9 -my-10 -my-11 -my-12 -my-13 -my-14 -my-none",offsetHorizontal:"-mx-1 -mx-2 -mx-3 -mx-4 -mx-5 -mx-6 -mx-7 -mx-8 -mx-9 -mx-10 -mx-11 -mx-12 -mx-13 -mx-14 -mx-none",offsetBottom:"-mb-1 -mb-2 -mb-3 -mb-4 -mb-5 -mb-6 -mb-7 -mb-8 -mb-9 -mb-10 -mb-11 -mb-12 -mb-13 -mb-14 -mb-none",offsetEnd:"-me-1 -me-2 -me-3 -me-4 -me-5 -me-6 -me-7 -me-8 -me-9 -me-10 -me-11 -me-12 -me-13 -me-14 -me-none",offsetStart:"-ms-1 -ms-2 -ms-3 -ms-4 -ms-5 -ms-6 -ms-7 -ms-8 -ms-9 -ms-10 -ms-11 -ms-12 -ms-13 -ms-14 -ms-none",offsetTop:"-mt-1 -mt-2 -mt-3 -mt-4 -mt-5 -mt-6 -mt-7 -mt-8 -mt-9 -mt-10 -mt-11 -mt-12 -mt-13 -mt-14 -mt-none",columnGap:"gap-x-1 gap-x-2 gap-x-3 gap-x-4 gap-x-5 gap-x-6 gap-x-7 gap-x-8 gap-x-9 gap-x-10 gap-x-11 gap-x-12 gap-x-13 gap-x-14 gap-x-none",rowGap:"gap-y-1 gap-y-2 gap-y-3 gap-y-4 gap-y-5 gap-y-6 gap-y-7 gap-y-8 gap-y-9 gap-y-10 gap-y-11 gap-y-12 gap-y-13 gap-y-14 gap-y-none",backgroundColor:"bg-accent bg-alert bg-black bg-brand bg-positive bg-warning bg-white bg-accent-wash bg-alert-wash bg-brand-wash bg-elevation-1 bg-elevation-2 bg-elevation-3 bg-elevation-3-inverse bg-overlay bg-positive-wash bg-primary bg-secondary bg-transparent bg-warning-wash",backgroundColorOnActive:"active:bg-accent active:bg-alert active:bg-black active:bg-brand active:bg-positive active:bg-warning active:bg-white active:bg-accent-wash active:bg-alert-wash active:bg-brand-wash active:bg-elevation-1 active:bg-elevation-2 active:bg-elevation-3 active:bg-elevation-3-inverse active:bg-overlay active:bg-positive-wash active:bg-primary active:bg-secondary active:bg-transparent active:bg-warning-wash",backgroundColorOnHover:"hover:bg-accent/80 hover:bg-alert/80 hover:bg-black/80 hover:bg-brand/80 hover:bg-positive/80 hover:bg-warning/80 hover:bg-white/80 hover:bg-accent-wash/80 hover:bg-alert-wash/80 hover:bg-brand-wash/80 hover:bg-elevation-1/80 hover:bg-elevation-2/80 hover:bg-elevation-3/80 hover:bg-elevation-3-inverse/80 hover:bg-overlay/80 hover:bg-positive-wash/80 hover:bg-primary/80 hover:bg-secondary/80 hover:bg-transparent/80 hover:bg-warning-wash/80",backgroundColorOnChecked:"data-[state=checked]:bg-accent data-[state=checked]:bg-alert data-[state=checked]:bg-black data-[state=checked]:bg-brand data-[state=checked]:bg-positive data-[state=checked]:bg-warning data-[state=checked]:bg-white data-[state=checked]:bg-accent-wash data-[state=checked]:bg-alert-wash data-[state=checked]:bg-brand-wash data-[state=checked]:bg-elevation-1 data-[state=checked]:bg-elevation-2 data-[state=checked]:bg-elevation-3 data-[state=checked]:bg-elevation-3-inverse data-[state=checked]:bg-overlay data-[state=checked]:bg-positive-wash data-[state=checked]:bg-primary data-[state=checked]:bg-secondary data-[state=checked]:bg-transparent data-[state=checked]:bg-warning-wash",backgroundColorOnFocus:"focus:bg-accent focus:bg-alert focus:bg-black focus:bg-brand focus:bg-positive focus:bg-warning focus:bg-white focus:bg-accent-wash focus:bg-alert-wash focus:bg-brand-wash focus:bg-elevation-1 focus:bg-elevation-2 focus:bg-elevation-3 focus:bg-elevation-3-inverse focus:bg-overlay focus:bg-positive-wash focus:bg-primary focus:bg-secondary focus:bg-transparent focus:bg-warning-wash",elevation:"bg-elevation-1 z-30 shadow-1 bg-elevation-2 z-40 shadow-2 bg-elevation-3 z-50 shadow-3",opacity:"opacity-0 opacity-5 opacity-10 opacity-20 opacity-25 opacity-30 opacity-40 opacity-50 opacity-60 opacity-70 opacity-75 opacity-80 opacity-90 opacity-95 opacity-100",borderColor:"border-accent border-alert border-black border-brand border-positive border-warning border-white border-transparent border-muted border-primary border-secondary border-tertiary",borderColorOnActive:"active:border-accent active:border-alert active:border-black active:border-brand active:border-positive active:border-warning active:border-white active:border-transparent active:border-muted active:border-primary active:border-secondary active:border-tertiary",borderColorOnFocus:"focus:border-accent focus:border-alert focus:border-black focus:border-brand focus:border-positive focus:border-warning focus:border-white focus:border-transparent focus:border-muted focus:border-primary focus:border-secondary focus:border-tertiary",borderColorOnHover:"hover:border-accent hover:border-alert hover:border-black hover:border-brand hover:border-positive hover:border-warning hover:border-white hover:border-transparent hover:border-muted hover:border-primary hover:border-secondary hover:border-tertiary",borderColorOnChecked:"data-[state=checked]:border-accent data-[state=checked]:border-alert data-[state=checked]:border-black data-[state=checked]:border-brand data-[state=checked]:border-positive data-[state=checked]:border-warning data-[state=checked]:border-white data-[state=checked]:border-transparent data-[state=checked]:border-muted data-[state=checked]:border-primary data-[state=checked]:border-secondary data-[state=checked]:border-tertiary",borderStartColor:"border-s-accent border-s-alert border-s-black border-s-brand border-s-positive border-s-warning border-s-white border-s-transparent border-s-muted border-s-primary border-s-secondary border-s-tertiary",borderEndColor:"border-e-accent border-e-alert border-e-black border-e-brand border-e-positive border-e-warning border-e-white border-e-transparent border-e-muted border-e-primary border-e-secondary border-e-tertiary",borderBottomColor:"border-b-accent border-b-alert border-b-black border-b-brand border-b-positive border-b-warning border-b-white border-b-transparent border-b-muted border-b-primary border-b-secondary border-b-tertiary",borderTopColor:"border-t-accent border-t-alert border-t-black border-t-brand border-t-positive border-t-warning border-t-white border-t-transparent border-t-muted border-t-primary border-t-secondary border-t-tertiary",borderRadius:"rounded-none rounded-xs rounded-sm rounded-md rounded-lg rounded-xl rounded-full",borderTopStartRadius:"rounded-ss-none rounded-ss-xs rounded-ss-sm rounded-ss-md rounded-ss-lg rounded-ss-xl rounded-ss-full",borderTopEndRadius:"rounded-se-none rounded-se-xs rounded-se-sm rounded-se-md rounded-se-lg rounded-se-xl rounded-se-full",borderBottomStartRadius:"rounded-es-none rounded-es-xs rounded-es-sm rounded-es-md rounded-es-lg rounded-es-xl rounded-es-full",borderBottomEndRadius:"rounded-ee-none rounded-ee-xs rounded-ee-sm rounded-ee-md rounded-ee-lg rounded-ee-xl rounded-ee-full",bordered:"border-thin border-solid",borderWidth:"border-none border-thin border-medium border-thick",borderVerticalWidth:"border-y-none border-y-thin border-y-medium border-y-thick",borderHorizontalWidth:"border-x-none border-x-thin border-x-medium border-x-thick",borderStartWidth:"border-s-none border-s-thin border-s-medium border-s-thick",borderEndWidth:"border-e-none border-e-thin border-e-medium border-e-thick",borderTopWidth:"border-t-none border-t-thin border-t-medium border-t-thick",borderBottomWidth:"border-b-none border-b-thin border-b-medium border-b-thick",borderedVertical:"border-y-thin",borderedTop:"border-t-thin",borderedBottom:"border-b-thin",borderedHorizontal:"border-x-thin",borderedEnd:"border-e-thin",borderedStart:"border-s-thin",height:"h-auto h-full h-screen h-min h-max h-fit h-1/2 h-1/3 h-2/3 h-1/4 h-2/4 h-3/4 h-1/5 h-2/5 h-3/5 h-4/5 h-1/6 h-2/6 h-3/6 h-4/6 h-5/6",minHeight:"min-h-full min-h-min min-h-max min-h-fit min-h-screen",maxHeight:"max-h-full max-h-min max-h-max max-h-fit max-h-screen max-h-[0px]",width:"w-auto w-full w-screen w-min w-max w-fit w-1/2 w-1/3 w-2/3 w-1/4 w-2/4 w-3/4 w-1/5 w-2/5 w-3/5 w-4/5 w-1/6 w-2/6 w-3/6 w-4/6 w-5/6 w-1/12 w-2/12 w-3/12 w-4/12 w-5/12 w-6/12 w-7/12 w-8/12 w-9/12 w-10/12 w-11/12",minWidth:"min-w-full min-w-min min-w-max min-w-fit min-w-screen",maxWidth:"max-w-[0px] max-w-full max-w-min max-w-max max-w-fit",avatarSize:"avatarSize-s avatarSize-m avatarSize-l",iconSize:"iconSize-s leading-none iconSize-m leading-none iconSize-l leading-none",alignContent:"content-start content-end content-center content-stretch content-between content-around",alignItems:"items-start items-end items-center items-stretch items-baseline",alignSelf:"self-auto self-start self-end self-center self-stretch self-baseline",flex:"flex-1 flex-auto flex-initial flex-none",flexDirection:"flex-row flex-col flex-row-reverse flex-col-reverse",flexGrow:"grow-0 grow grow-[2] grow-[3]",flexShrink:"shrink-0 shrink",flexWrap:"flex-wrap flex-wrap-reverse flex-nowrap",justifyContent:"justify-start justify-end justify-center justify-between justify-around justify-evenly",flexBasis:"basis-[min-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 contents",overflow:"overflow-auto overflow-hidden overflow-clip overflow-visible overflow-scroll",overflowX:"overflow-x-auto overflow-x-hidden overflow-x-clip overflow-x-visible overflow-x-scroll",overflowY:"overflow-y-auto overflow-y-hidden overflow-y-clip overflow-y-visible overflow-y-scroll",position:"static fixed absolute relative sticky",zIndex:"z-0 z-10 z-20 z-40 z-30 z-50 z-auto",contentFit:"object-contain object-cover object-fill object-none object-scale-down",colorMode:"uds-color-mode-dark uds-color-mode-light",scaleMode:"uds-scale-mode-xsmall uds-scale-mode-small uds-scale-mode-medium uds-scale-mode-large uds-scale-mode-xlarge uds-scale-mode-xxxlarge uds-scale-mode-xxlarge"},t=["color","colorChecked","placeholderColor","fontFamily","fontSize","fontWeight","lineHeight","textAlign","textTransform","spacing","spacingHorizontal","spacingVertical","spacingBottom","spacingEnd","spacingStart","spacingTop","offset","offsetVertical","offsetHorizontal","offsetBottom","offsetEnd","offsetStart","offsetTop","columnGap","rowGap","backgroundColor","backgroundColorOnActive","backgroundColorOnHover","backgroundColorOnChecked","backgroundColorOnFocus","elevation","opacity","borderColor","borderColorOnActive","borderColorOnFocus","borderColorOnHover","borderColorOnChecked","borderStartColor","borderEndColor","borderBottomColor","borderTopColor","borderRadius","borderTopStartRadius","borderTopEndRadius","borderBottomStartRadius","borderBottomEndRadius","bordered","borderWidth","borderVerticalWidth","borderHorizontalWidth","borderStartWidth","borderEndWidth","borderTopWidth","borderBottomWidth","borderedVertical","borderedTop","borderedBottom","borderedHorizontal","borderedEnd","borderedStart","height","minHeight","maxHeight","width","minWidth","maxWidth","avatarSize","iconSize","alignContent","alignItems","alignSelf","flex","flexDirection","flexGrow","flexShrink","flexWrap","justifyContent","flexBasis","display","overflow","overflowX","overflowY","position","zIndex","contentFit","colorMode","scaleMode"],o={Box:["backgroundColor","display","flexDirection","rowGap","columnGap","borderColor","elevation","borderRadius","overflow"],HStack:["alignItems","justifyContent"],Icon:["color"],Image:["contentFit","backgroundColor","flexShrink","display"],Pressable:["display","flexDirection","alignItems","justifyContent","spacingVertical","spacingHorizontal","backgroundColorOnHover","borderRadius","width","backgroundColor","backgroundColorOnActive","backgroundColorOnFocus","backgroundColorOnChecked","elevation","bordered","borderedTop","borderedBottom","borderedStart","borderedEnd","borderedHorizontal","borderedVertical","borderTopStartRadius","borderTopEndRadius","borderBottomStartRadius","borderBottomEndRadius","borderColor","borderColorOnActive","borderColorOnFocus","borderColorOnChecked","borderColorOnHover","borderStartColor","borderEndColor","borderTopColor","borderBottomColor","borderWidth","borderVerticalWidth","borderHorizontalWidth","borderStartWidth","borderEndWidth","borderTopWidth","borderBottomWidth","alignContent","alignSelf","flex","flexGrow","flexShrink","flexWrap","flexBasis","zIndex","overflow","overflowX","overflowY","position","opacity","height","minHeight","maxHeight","minWidth","maxWidth","spacing","spacingBottom","spacingEnd","spacingStart","spacingTop","offset","offsetVertical","offsetHorizontal","offsetBottom","offsetEnd","offsetStart","offsetTop","columnGap","rowGap"],Text:["color","fontSize","fontFamily","fontWeight","lineHeight","textTransform","textAlign","display","spacing","borderBottomColor","borderedBottom","spacingStart"],VStack:["overflow","maxHeight","spacingHorizontal","minHeight","alignItems","borderRadius","elevation","spacingVertical","position","height","zIndex","spacing","width"]},r={Box:[],HStack:["Box"],Icon:[],Image:[],Pressable:[],Text:[],VStack:["Box"]};export{o as componentToVariants,r as componentsDependencies,e as variantToTailwindClass,t as variantsList};
|
1
|
+
var e={color:"text-accent text-alert text-black text-brand text-positive text-warning text-white text-transparent text-muted text-on-color text-primary text-secondary text-tertiary",colorChecked:"data-[state=checked]:text-accent data-[state=checked]:text-alert data-[state=checked]:text-black data-[state=checked]:text-brand data-[state=checked]:text-positive data-[state=checked]:text-warning data-[state=checked]:text-white data-[state=checked]:text-transparent data-[state=checked]:text-primary data-[state=checked]:text-secondary data-[state=checked]:text-muted data-[state=checked]:text-on-color data-[state=checked]:text-tertiary",placeholderColor:"placeholder:text-accent placeholder:text-alert placeholder:text-black placeholder:text-brand placeholder:text-positive placeholder:text-warning placeholder:text-white placeholder:text-transparent placeholder:text-muted placeholder:text-on-color placeholder:text-primary placeholder:text-secondary placeholder:text-tertiary",fontFamily:"font-icons font-sans font-sans-beta font-sans-condensed font-serif-text font-serif-display font-display1 font-display2 font-display3 font-title1 font-title2 font-title3 font-title4 font-headline1 font-body1 font-label1 font-label2 font-caption1 font-caption2 font-legal1",fontSize:"font-size-display1 font-size-display2 font-size-display3 font-size-title1 font-size-title2 font-size-title3 font-size-title4 font-size-headline1 font-size-body1 font-size-label1 font-size-label2 font-size-caption1 font-size-caption2 font-size-legal1",fontWeight:"font-weight-thin font-weight-extralight font-weight-light font-weight-regular font-weight-medium font-weight-semibold font-weight-bold font-weight-extrabold font-weight-black font-weight-display1 font-weight-display2 font-weight-display3 font-weight-title1 font-weight-title2 font-weight-title3 font-weight-title4 font-weight-headline1 font-weight-body1 font-weight-label1 font-weight-label2 font-weight-caption1 font-weight-caption2 font-weight-legal1",lineHeight:"leading-display1 leading-display2 leading-display3 leading-title1 leading-title2 leading-title3 leading-title4 leading-headline1 leading-body1 leading-label1 leading-label2 leading-caption1 leading-caption2 leading-legal1",textAlign:"text-center text-justify text-start text-end",textTransform:"case-display1 case-display2 case-display3 case-title1 case-title2 case-title3 case-title4 case-headline1 case-body1 case-label1 case-label2 case-caption1 case-caption2 case-legal1 normal-case uppercase lowercase capitalize",spacing:"p-1 p-2 p-3 p-4 p-5 p-6 p-7 p-8 p-9 p-10 p-11 p-12 p-13 p-14 p-[0px]",spacingHorizontal:"px-1 px-2 px-3 px-4 px-5 px-6 px-7 px-8 px-9 px-10 px-11 px-12 px-13 px-14 px-none",spacingVertical:"py-1 py-2 py-3 py-4 py-5 py-6 py-7 py-8 py-9 py-10 py-11 py-12 py-13 py-14 py-none",spacingBottom:"pb-1 pb-2 pb-3 pb-4 pb-5 pb-6 pb-7 pb-8 pb-9 pb-10 pb-11 pb-12 pb-13 pb-14 pb-none",spacingEnd:"pe-1 pe-2 pe-3 pe-4 pe-5 pe-6 pe-7 pe-8 pe-9 pe-10 pe-11 pe-12 pe-13 pe-14 pe-none",spacingStart:"ps-1 ps-2 ps-3 ps-4 ps-5 ps-6 ps-7 ps-8 ps-9 ps-10 ps-11 ps-12 ps-13 ps-14 ps-none",spacingTop:"pt-1 pt-2 pt-3 pt-4 pt-5 pt-6 pt-7 pt-8 pt-9 pt-10 pt-11 pt-12 pt-13 pt-14 pt-none",offset:"-m-1 -m-2 -m-3 -m-4 -m-5 -m-6 -m-7 -m-8 -m-9 -m-10 -m-11 -m-12 -m-13 -m-14 -m-none",offsetVertical:"-my-1 -my-2 -my-3 -my-4 -my-5 -my-6 -my-7 -my-8 -my-9 -my-10 -my-11 -my-12 -my-13 -my-14 -my-none",offsetHorizontal:"-mx-1 -mx-2 -mx-3 -mx-4 -mx-5 -mx-6 -mx-7 -mx-8 -mx-9 -mx-10 -mx-11 -mx-12 -mx-13 -mx-14 -mx-none",offsetBottom:"-mb-1 -mb-2 -mb-3 -mb-4 -mb-5 -mb-6 -mb-7 -mb-8 -mb-9 -mb-10 -mb-11 -mb-12 -mb-13 -mb-14 -mb-none",offsetEnd:"-me-1 -me-2 -me-3 -me-4 -me-5 -me-6 -me-7 -me-8 -me-9 -me-10 -me-11 -me-12 -me-13 -me-14 -me-none",offsetStart:"-ms-1 -ms-2 -ms-3 -ms-4 -ms-5 -ms-6 -ms-7 -ms-8 -ms-9 -ms-10 -ms-11 -ms-12 -ms-13 -ms-14 -ms-none",offsetTop:"-mt-1 -mt-2 -mt-3 -mt-4 -mt-5 -mt-6 -mt-7 -mt-8 -mt-9 -mt-10 -mt-11 -mt-12 -mt-13 -mt-14 -mt-none",columnGap:"gap-x-1 gap-x-2 gap-x-3 gap-x-4 gap-x-5 gap-x-6 gap-x-7 gap-x-8 gap-x-9 gap-x-10 gap-x-11 gap-x-12 gap-x-13 gap-x-14 gap-x-none",rowGap:"gap-y-1 gap-y-2 gap-y-3 gap-y-4 gap-y-5 gap-y-6 gap-y-7 gap-y-8 gap-y-9 gap-y-10 gap-y-11 gap-y-12 gap-y-13 gap-y-14 gap-y-none",backgroundColor:"bg-accent bg-alert bg-black bg-brand bg-positive bg-warning bg-white bg-accent-wash bg-alert-wash bg-brand-wash bg-elevation-1 bg-elevation-2 bg-elevation-3 bg-elevation-3-inverse bg-overlay bg-positive-wash bg-primary bg-secondary bg-transparent bg-warning-wash",backgroundColorOnActive:"active:bg-accent active:bg-alert active:bg-black active:bg-brand active:bg-positive active:bg-warning active:bg-white active:bg-accent-wash active:bg-alert-wash active:bg-brand-wash active:bg-elevation-1 active:bg-elevation-2 active:bg-elevation-3 active:bg-elevation-3-inverse active:bg-overlay active:bg-positive-wash active:bg-primary active:bg-secondary active:bg-transparent active:bg-warning-wash",backgroundColorOnHover:"hover:bg-accent/80 hover:bg-alert/80 hover:bg-black/80 hover:bg-brand/80 hover:bg-positive/80 hover:bg-warning/80 hover:bg-white/80 hover:bg-accent-wash/80 hover:bg-alert-wash/80 hover:bg-brand-wash/80 hover:bg-elevation-1/80 hover:bg-elevation-2/80 hover:bg-elevation-3/80 hover:bg-elevation-3-inverse/80 hover:bg-overlay/80 hover:bg-positive-wash/80 hover:bg-primary/80 hover:bg-secondary/80 hover:bg-transparent/80 hover:bg-warning-wash/80",backgroundColorOnChecked:"data-[state=checked]:bg-accent data-[state=checked]:bg-alert data-[state=checked]:bg-black data-[state=checked]:bg-brand data-[state=checked]:bg-positive data-[state=checked]:bg-warning data-[state=checked]:bg-white data-[state=checked]:bg-accent-wash data-[state=checked]:bg-alert-wash data-[state=checked]:bg-brand-wash data-[state=checked]:bg-elevation-1 data-[state=checked]:bg-elevation-2 data-[state=checked]:bg-elevation-3 data-[state=checked]:bg-elevation-3-inverse data-[state=checked]:bg-overlay data-[state=checked]:bg-positive-wash data-[state=checked]:bg-primary data-[state=checked]:bg-secondary data-[state=checked]:bg-transparent data-[state=checked]:bg-warning-wash",backgroundColorOnFocus:"focus:bg-accent focus:bg-alert focus:bg-black focus:bg-brand focus:bg-positive focus:bg-warning focus:bg-white focus:bg-accent-wash focus:bg-alert-wash focus:bg-brand-wash focus:bg-elevation-1 focus:bg-elevation-2 focus:bg-elevation-3 focus:bg-elevation-3-inverse focus:bg-overlay focus:bg-positive-wash focus:bg-primary focus:bg-secondary focus:bg-transparent focus:bg-warning-wash",elevation:"bg-elevation-1 z-30 shadow-1 bg-elevation-2 z-40 shadow-2 bg-elevation-3 z-50 shadow-3",opacity:"opacity-0 opacity-5 opacity-10 opacity-20 opacity-25 opacity-30 opacity-40 opacity-50 opacity-60 opacity-70 opacity-75 opacity-80 opacity-90 opacity-95 opacity-100",borderColor:"border-accent border-alert border-black border-brand border-positive border-warning border-white border-transparent border-muted border-primary border-secondary border-tertiary",borderColorOnActive:"active:border-accent active:border-alert active:border-black active:border-brand active:border-positive active:border-warning active:border-white active:border-transparent active:border-muted active:border-primary active:border-secondary active:border-tertiary",borderColorOnFocus:"focus:border-accent focus:border-alert focus:border-black focus:border-brand focus:border-positive focus:border-warning focus:border-white focus:border-transparent focus:border-muted focus:border-primary focus:border-secondary focus:border-tertiary",borderColorOnHover:"hover:border-accent hover:border-alert hover:border-black hover:border-brand hover:border-positive hover:border-warning hover:border-white hover:border-transparent hover:border-muted hover:border-primary hover:border-secondary hover:border-tertiary",borderColorOnChecked:"data-[state=checked]:border-accent data-[state=checked]:border-alert data-[state=checked]:border-black data-[state=checked]:border-brand data-[state=checked]:border-positive data-[state=checked]:border-warning data-[state=checked]:border-white data-[state=checked]:border-transparent data-[state=checked]:border-muted data-[state=checked]:border-primary data-[state=checked]:border-secondary data-[state=checked]:border-tertiary",borderStartColor:"border-s-accent border-s-alert border-s-black border-s-brand border-s-positive border-s-warning border-s-white border-s-transparent border-s-muted border-s-primary border-s-secondary border-s-tertiary",borderEndColor:"border-e-accent border-e-alert border-e-black border-e-brand border-e-positive border-e-warning border-e-white border-e-transparent border-e-muted border-e-primary border-e-secondary border-e-tertiary",borderBottomColor:"border-b-accent border-b-alert border-b-black border-b-brand border-b-positive border-b-warning border-b-white border-b-transparent border-b-muted border-b-primary border-b-secondary border-b-tertiary",borderTopColor:"border-t-accent border-t-alert border-t-black border-t-brand border-t-positive border-t-warning border-t-white border-t-transparent border-t-muted border-t-primary border-t-secondary border-t-tertiary",borderRadius:"rounded-none rounded-xs rounded-sm rounded-md rounded-lg rounded-xl rounded-full",borderTopStartRadius:"rounded-ss-none rounded-ss-xs rounded-ss-sm rounded-ss-md rounded-ss-lg rounded-ss-xl rounded-ss-full",borderTopEndRadius:"rounded-se-none rounded-se-xs rounded-se-sm rounded-se-md rounded-se-lg rounded-se-xl rounded-se-full",borderBottomStartRadius:"rounded-es-none rounded-es-xs rounded-es-sm rounded-es-md rounded-es-lg rounded-es-xl rounded-es-full",borderBottomEndRadius:"rounded-ee-none rounded-ee-xs rounded-ee-sm rounded-ee-md rounded-ee-lg rounded-ee-xl rounded-ee-full",bordered:"border-thin border-solid",borderWidth:"border-none border-thin border-medium border-thick",borderVerticalWidth:"border-y-none border-y-thin border-y-medium border-y-thick",borderHorizontalWidth:"border-x-none border-x-thin border-x-medium border-x-thick",borderStartWidth:"border-s-none border-s-thin border-s-medium border-s-thick",borderEndWidth:"border-e-none border-e-thin border-e-medium border-e-thick",borderTopWidth:"border-t-none border-t-thin border-t-medium border-t-thick",borderBottomWidth:"border-b-none border-b-thin border-b-medium border-b-thick",borderedVertical:"border-y-thin",borderedTop:"border-t-thin",borderedBottom:"border-b-thin",borderedHorizontal:"border-x-thin",borderedEnd:"border-e-thin",borderedStart:"border-s-thin",height:"h-auto h-full h-screen h-min h-max h-fit h-1/2 h-1/3 h-2/3 h-1/4 h-2/4 h-3/4 h-1/5 h-2/5 h-3/5 h-4/5 h-1/6 h-2/6 h-3/6 h-4/6 h-5/6",minHeight:"min-h-full min-h-min min-h-max min-h-fit min-h-screen",maxHeight:"max-h-full max-h-min max-h-max max-h-fit max-h-screen max-h-[0px]",width:"w-auto w-full w-screen w-min w-max w-fit w-1/2 w-1/3 w-2/3 w-1/4 w-2/4 w-3/4 w-1/5 w-2/5 w-3/5 w-4/5 w-1/6 w-2/6 w-3/6 w-4/6 w-5/6 w-1/12 w-2/12 w-3/12 w-4/12 w-5/12 w-6/12 w-7/12 w-8/12 w-9/12 w-10/12 w-11/12",minWidth:"min-w-full min-w-min min-w-max min-w-fit min-w-screen",maxWidth:"max-w-[0px] max-w-full max-w-min max-w-max max-w-fit",avatarSize:"avatarSize-s avatarSize-m avatarSize-l",iconSize:"iconSize-s leading-none iconSize-m leading-none iconSize-l leading-none",alignContent:"content-start content-end content-center content-stretch content-between content-around",alignItems:"items-start items-end items-center items-stretch items-baseline",alignSelf:"self-auto self-start self-end self-center self-stretch self-baseline",flex:"flex-1 flex-auto flex-initial flex-none",flexDirection:"flex-row flex-col flex-row-reverse flex-col-reverse",flexGrow:"grow-0 grow grow-[2] grow-[3]",flexShrink:"shrink-0 shrink",flexWrap:"flex-wrap flex-wrap-reverse flex-nowrap",justifyContent:"justify-start justify-end justify-center justify-between justify-around justify-evenly",flexBasis:"basis-[min-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 contents",overflow:"overflow-auto overflow-hidden overflow-clip overflow-visible overflow-scroll",overflowX:"overflow-x-auto overflow-x-hidden overflow-x-clip overflow-x-visible overflow-x-scroll",overflowY:"overflow-y-auto overflow-y-hidden overflow-y-clip overflow-y-visible overflow-y-scroll",position:"static fixed absolute relative sticky",zIndex:"z-0 z-10 z-20 z-40 z-30 z-50 z-auto",contentFit:"object-contain object-cover object-fill object-none object-scale-down",colorMode:"uds-color-mode-dark uds-color-mode-light",scaleMode:"uds-scale-mode-xsmall uds-scale-mode-small uds-scale-mode-medium uds-scale-mode-large uds-scale-mode-xlarge uds-scale-mode-xxxlarge uds-scale-mode-xxlarge"},t=["color","colorChecked","placeholderColor","fontFamily","fontSize","fontWeight","lineHeight","textAlign","textTransform","spacing","spacingHorizontal","spacingVertical","spacingBottom","spacingEnd","spacingStart","spacingTop","offset","offsetVertical","offsetHorizontal","offsetBottom","offsetEnd","offsetStart","offsetTop","columnGap","rowGap","backgroundColor","backgroundColorOnActive","backgroundColorOnHover","backgroundColorOnChecked","backgroundColorOnFocus","elevation","opacity","borderColor","borderColorOnActive","borderColorOnFocus","borderColorOnHover","borderColorOnChecked","borderStartColor","borderEndColor","borderBottomColor","borderTopColor","borderRadius","borderTopStartRadius","borderTopEndRadius","borderBottomStartRadius","borderBottomEndRadius","bordered","borderWidth","borderVerticalWidth","borderHorizontalWidth","borderStartWidth","borderEndWidth","borderTopWidth","borderBottomWidth","borderedVertical","borderedTop","borderedBottom","borderedHorizontal","borderedEnd","borderedStart","height","minHeight","maxHeight","width","minWidth","maxWidth","avatarSize","iconSize","alignContent","alignItems","alignSelf","flex","flexDirection","flexGrow","flexShrink","flexWrap","justifyContent","flexBasis","display","overflow","overflowX","overflowY","position","zIndex","contentFit","colorMode","scaleMode"],o={Box:["backgroundColor","display","flexDirection","rowGap","columnGap","borderColor","elevation","borderRadius","overflow"],HStack:["alignItems","justifyContent"],Icon:["color"],Image:["contentFit","backgroundColor","flexShrink","display"],Pressable:["display","flexDirection","alignItems","justifyContent","spacingVertical","spacingHorizontal","backgroundColorOnHover","borderRadius","width","backgroundColor","backgroundColorOnActive","backgroundColorOnFocus","backgroundColorOnChecked","elevation","bordered","borderedTop","borderedBottom","borderedStart","borderedEnd","borderedHorizontal","borderedVertical","borderTopStartRadius","borderTopEndRadius","borderBottomStartRadius","borderBottomEndRadius","borderColor","borderColorOnActive","borderColorOnFocus","borderColorOnChecked","borderColorOnHover","borderStartColor","borderEndColor","borderTopColor","borderBottomColor","borderWidth","borderVerticalWidth","borderHorizontalWidth","borderStartWidth","borderEndWidth","borderTopWidth","borderBottomWidth","alignContent","alignSelf","flex","flexGrow","flexShrink","flexWrap","flexBasis","zIndex","overflow","overflowX","overflowY","position","opacity","height","minHeight","maxHeight","minWidth","maxWidth","spacing","spacingBottom","spacingEnd","spacingStart","spacingTop","offset","offsetVertical","offsetHorizontal","offsetBottom","offsetEnd","offsetStart","offsetTop","columnGap","rowGap"],Text:["color","fontSize","fontFamily","fontWeight","lineHeight","textTransform","textAlign","display","spacing","borderBottomColor","borderedBottom","spacingStart"],VStack:["overflow","maxHeight","spacingHorizontal","minHeight","alignItems","borderRadius","elevation","spacingVertical","position","height","zIndex","spacing","width"]},r={Box:"flex",HStack:"container fill",Icon:"flex fill outline",Image:"flex",Pressable:"flex",Text:"flex text",VStack:"container fill"},a={Box:[],HStack:["Box"],Icon:[],Image:[],Pressable:[],Text:[],VStack:["Box"]};export{r as componentToTwClasses,o as componentToVariants,a as componentsDependencies,e as variantToTailwindClass,t as variantsList};
|
2
2
|
//! This file is generated by purgeCSS.ts from @yahoo/uds
|
3
3
|
//! Do not edit directly
|
4
4
|
//! If there is issue with this file please report to #ask-uds
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@yahoo/uds",
|
3
3
|
"description": "Yahoo Universal System",
|
4
|
-
"version": "0.
|
4
|
+
"version": "0.3.0",
|
5
5
|
"type": "module",
|
6
6
|
"bin": {
|
7
7
|
"uds": "./cli/uds-cli"
|
@@ -64,6 +64,16 @@
|
|
64
64
|
"default": "./dist/tailwindPurge.cjs"
|
65
65
|
}
|
66
66
|
},
|
67
|
+
"./tailwindPurge/utils": {
|
68
|
+
"import": {
|
69
|
+
"types": "./dist/tailwindPurge/utils.d.ts",
|
70
|
+
"default": "./dist/tailwindPurge/utils.js"
|
71
|
+
},
|
72
|
+
"require": {
|
73
|
+
"types": "./dist/tailwindPurge/utils.cjs",
|
74
|
+
"default": "./dist/tailwindPurge/utils.cjs"
|
75
|
+
}
|
76
|
+
},
|
67
77
|
"./fixtures": {
|
68
78
|
"import": {
|
69
79
|
"types": "./dist/fixtures/index.d.ts",
|
@@ -145,11 +155,15 @@
|
|
145
155
|
"ts-morph": "^21.0.1"
|
146
156
|
},
|
147
157
|
"devDependencies": {
|
158
|
+
"@fullhuman/postcss-purgecss": "^5.0.0",
|
148
159
|
"@types/react": "^18.2.48",
|
149
160
|
"@types/react-dom": "^18.2.18",
|
161
|
+
"autoprefixer": "^10.4.17",
|
150
162
|
"chalk": "^5.3.0",
|
151
163
|
"concurrently": "^8.2.2",
|
164
|
+
"postcss": "^8.4.35",
|
152
165
|
"shared": "workspace:*",
|
166
|
+
"tailwindcss": "^3.4.1",
|
153
167
|
"tsconfig": "workspace:*",
|
154
168
|
"tsup": "^8.0.1"
|
155
169
|
},
|