@yahoo/uds 0.5.8 → 0.5.10
Sign up to get free protection for your applications and to get access to all the features.
- package/cli/README.md +1 -0
- package/cli/bin/uds-darwin-arm64-baseline +0 -0
- package/cli/bin/uds-linux-x64-baseline +0 -0
- package/cli/cli.ts +26 -0
- package/cli/commands/purge.ts +6 -2
- package/cli/compile.ts +35 -0
- package/cli/consts.ts +9 -0
- package/cli/exec.ts +36 -0
- package/cli/tsconfig.json +1 -0
- package/cli/uds-cli +34 -6
- package/cli/utils/configWorker.ts +2 -0
- package/cli/utils/purgeCSS.test.ts +1 -1
- package/cli/utils/purgeCSS.ts +31 -11
- package/dist/{Image.native-taa2jsQc.d.ts → Image.native-BxsXWBqp.d.ts} +1 -1
- package/dist/{Image.native-No-SNzS_.d.cts → Image.native-DBoB1LOc.d.cts} +1 -1
- package/dist/{VStack-B4TMNdfk.d.cts → VStack-BFIFJUVx.d.cts} +1 -1
- package/dist/{VStack-pgMJmuKn.d.ts → VStack-zgq0Zq3N.d.ts} +1 -1
- package/dist/experimental/index.cjs +2 -2
- package/dist/experimental/index.d.cts +2 -2
- package/dist/experimental/index.d.ts +2 -2
- package/dist/experimental/index.js +2 -2
- package/dist/experimental/index.native.cjs +1 -1
- package/dist/experimental/index.native.d.cts +3 -3
- package/dist/experimental/index.native.d.ts +3 -3
- package/dist/experimental/index.native.js +1 -1
- package/dist/fixtures.cjs +26 -1
- package/dist/fixtures.d.ts +6 -2
- package/dist/fixtures.js +22 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +2 -2
- package/dist/{index.native-BzvT-a_y.d.ts → index.native-Gbm66c6M.d.ts} +1 -1
- package/dist/{index.native-WZqIALTD.d.cts → index.native-OW5d35eT.d.cts} +1 -1
- package/dist/index.native.cjs +1 -1
- package/dist/index.native.d.cts +32 -5
- package/dist/index.native.d.ts +32 -5
- package/dist/index.native.js +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/tailwind/plugin.cjs +1 -1
- package/dist/tailwind/plugin.d.cts +1 -1
- package/dist/tailwind/plugin.d.ts +1 -1
- package/dist/tailwind/plugin.js +3 -3
- package/dist/tailwind/purger.cjs +2 -2
- package/dist/tailwind/purger.js +3 -3
- package/dist/tailwind/tsMorph.cjs +1 -1
- package/dist/tailwind/tsMorph.js +2 -2
- package/dist/tokens/index.cjs +1 -1
- package/dist/tokens/index.d.cts +30 -3
- package/dist/tokens/index.d.ts +30 -3
- package/dist/tokens/index.js +2 -2
- package/dist/tokens/index.native.cjs +1 -1
- package/dist/tokens/index.native.d.cts +2 -2
- package/dist/tokens/index.native.d.ts +2 -2
- package/dist/tokens/index.native.js +1 -1
- package/dist/tokens/parseTokens.cjs +1 -1
- package/dist/tokens/parseTokens.d.cts +2 -2
- package/dist/tokens/parseTokens.d.ts +2 -2
- package/dist/tokens/parseTokens.js +1 -1
- package/dist/{types-CHw8YXrX.d.cts → types-BofdnBTe.d.cts} +41 -30
- package/dist/{types-CHw8YXrX.d.ts → types-BofdnBTe.d.ts} +41 -30
- package/dist/{types-FhFpiSwO.d.cts → types-CLPge83Y.d.cts} +41 -30
- package/dist/{types-FhFpiSwO.d.ts → types-CLPge83Y.d.ts} +41 -30
- package/package.json +195 -198
package/cli/README.md
CHANGED
@@ -90,6 +90,7 @@ uds purge
|
|
90
90
|
|
91
91
|
| Flag | Description | Default | Required |
|
92
92
|
| -------- | --------------------------- | ------------------ | -------- |
|
93
|
+
| `entry` | The entry to source files | ./src/ | |
|
93
94
|
| `output` | Output path of the safelist | ./dist/safelist.ts | |
|
94
95
|
| `config` | UDS config | ./uds.config.ts | |
|
95
96
|
|
Binary file
|
Binary file
|
package/cli/cli.ts
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
// Start bluebun to run the correct CLI command
|
2
|
+
import { parseArgs } from 'node:util';
|
3
|
+
|
4
|
+
import { run } from 'bluebun';
|
5
|
+
|
6
|
+
function main() {
|
7
|
+
// We need to pass the path from Node to the Bun binaries
|
8
|
+
// because there's an issue where the Bun binaries struggle to resolve
|
9
|
+
const { values } = parseArgs({
|
10
|
+
args: Bun.argv,
|
11
|
+
options: {
|
12
|
+
commandsPath: {
|
13
|
+
type: 'string',
|
14
|
+
},
|
15
|
+
},
|
16
|
+
strict: false,
|
17
|
+
allowPositionals: true,
|
18
|
+
});
|
19
|
+
|
20
|
+
run({
|
21
|
+
name: 'uds',
|
22
|
+
cliPath: values.commandsPath!.toString(),
|
23
|
+
});
|
24
|
+
}
|
25
|
+
|
26
|
+
main();
|
package/cli/commands/purge.ts
CHANGED
@@ -11,13 +11,17 @@ export default {
|
|
11
11
|
description: `Purge unused CSS`,
|
12
12
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
13
13
|
run: async (props: PurgeProps) => {
|
14
|
-
spinStart('Purging css...');
|
14
|
+
spinStart('Purging css started...');
|
15
15
|
try {
|
16
16
|
await purge(props.options);
|
17
17
|
spinStop('✅', 'Purging css done!');
|
18
18
|
} catch (error) {
|
19
|
+
if (error instanceof Error) {
|
20
|
+
spinStop('❌', error.message);
|
21
|
+
} else {
|
22
|
+
spinStop('❌', 'Purging css failed! Please reach out to #uds-ask channel for support.');
|
23
|
+
}
|
19
24
|
process.exitCode = 1;
|
20
|
-
spinStop('❌', 'Purging css failed! Please reach out to #uds-ask channel for support.');
|
21
25
|
}
|
22
26
|
},
|
23
27
|
};
|
package/cli/compile.ts
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
/**
|
2
|
+
* This script compiles the UDS CLI for all the Bun supported platforms.
|
3
|
+
*/
|
4
|
+
import { $, fileURLToPath } from 'bun';
|
5
|
+
import path from 'path';
|
6
|
+
|
7
|
+
import { SUPPORTED_BUN_PLATFORMS } from './consts';
|
8
|
+
|
9
|
+
const __filename = fileURLToPath(import.meta.url);
|
10
|
+
const __dirname = path.dirname(__filename);
|
11
|
+
const libPath = __dirname;
|
12
|
+
const entry = path.join(libPath, './cli.ts');
|
13
|
+
|
14
|
+
const main = async () => {
|
15
|
+
// Compile the UDS CLI for all the supported platforms
|
16
|
+
await Promise.all(
|
17
|
+
SUPPORTED_BUN_PLATFORMS.map(async (supportedPlatform) => {
|
18
|
+
console.log(`Building UDS CLI for ${supportedPlatform}`);
|
19
|
+
await $`bun build --compile --minify --sourcemap --target=bun-${supportedPlatform} ${entry} --outfile ${path.join(libPath, './bin', `./uds-${supportedPlatform}`)} `;
|
20
|
+
}),
|
21
|
+
);
|
22
|
+
|
23
|
+
// Compile the script that will auto-detect the platform and architecture
|
24
|
+
const shellOutput = await $`bun build ${path.join(libPath, './exec.ts')} --target node`;
|
25
|
+
|
26
|
+
// Add shebang at the top of the file and write to disk
|
27
|
+
await Bun.write(
|
28
|
+
path.join(libPath, './uds-cli'),
|
29
|
+
`#!/usr/bin/env node \n
|
30
|
+
// Note: This file is generated, do not edit directly! Edit exec.ts instead. \n` +
|
31
|
+
shellOutput.text(),
|
32
|
+
);
|
33
|
+
};
|
34
|
+
|
35
|
+
await main();
|
package/cli/consts.ts
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
// Supported target platforms by Bun
|
2
|
+
// https://bun.sh/docs/bundler/executables#cross-compile-to-other-platforms
|
3
|
+
export const SUPPORTED_BUN_PLATFORMS = [
|
4
|
+
'linux-x64-baseline',
|
5
|
+
'linux-arm64',
|
6
|
+
'darwin-x64',
|
7
|
+
'darwin-arm64-baseline',
|
8
|
+
'windows-x64-baseline',
|
9
|
+
];
|
package/cli/exec.ts
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
/**
|
2
|
+
* This file is the entry point for the UDS CLI. It automatically detects
|
3
|
+
* the current platform where the command is being run, and subsequently, loads the correct
|
4
|
+
* binary for that platform and architecture combination.
|
5
|
+
*/
|
6
|
+
import { execFileSync } from 'child_process';
|
7
|
+
import path from 'path';
|
8
|
+
import { fileURLToPath } from 'url';
|
9
|
+
|
10
|
+
import { SUPPORTED_BUN_PLATFORMS } from './consts';
|
11
|
+
|
12
|
+
const detectPlatform = () => {
|
13
|
+
const __filename = fileURLToPath(import.meta.url);
|
14
|
+
const __dirname = path.dirname(__filename);
|
15
|
+
const libPath = __dirname;
|
16
|
+
|
17
|
+
const currentPlatform: string = process.platform !== 'win32' ? process.platform : 'windows';
|
18
|
+
const currentPlatformWithArch = `${currentPlatform}-${process.arch}`;
|
19
|
+
|
20
|
+
const platform = SUPPORTED_BUN_PLATFORMS.find((bunPlatform) =>
|
21
|
+
bunPlatform.includes(currentPlatformWithArch),
|
22
|
+
);
|
23
|
+
|
24
|
+
if (platform) {
|
25
|
+
const pathToBinary = path.join(libPath, './bin', `./uds-${platform}`);
|
26
|
+
execFileSync(pathToBinary, process.argv.slice(2).concat([`--commandsPath=${libPath}`]), {
|
27
|
+
stdio: 'inherit',
|
28
|
+
});
|
29
|
+
} else {
|
30
|
+
throw new Error(
|
31
|
+
'Unsupported platform 😢, pleaes reach out to the UDS team for support #uds-ask.',
|
32
|
+
);
|
33
|
+
}
|
34
|
+
};
|
35
|
+
|
36
|
+
detectPlatform();
|
package/cli/tsconfig.json
CHANGED
package/cli/uds-cli
CHANGED
@@ -1,7 +1,35 @@
|
|
1
|
-
#!/usr/bin/env
|
1
|
+
#!/usr/bin/env node
|
2
2
|
|
3
|
-
//
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
}
|
3
|
+
// Note: This file is generated, do not edit directly! Edit exec.ts instead.
|
4
|
+
// cli/exec.ts
|
5
|
+
import {execFileSync} from "child_process";
|
6
|
+
import path from "path";
|
7
|
+
import {fileURLToPath} from "url";
|
8
|
+
|
9
|
+
// cli/consts.ts
|
10
|
+
var SUPPORTED_BUN_PLATFORMS = [
|
11
|
+
"linux-x64-baseline",
|
12
|
+
"linux-arm64",
|
13
|
+
"darwin-x64",
|
14
|
+
"darwin-arm64-baseline",
|
15
|
+
"windows-x64-baseline"
|
16
|
+
];
|
17
|
+
|
18
|
+
// cli/exec.ts
|
19
|
+
var detectPlatform = () => {
|
20
|
+
const __filename2 = fileURLToPath(import.meta.url);
|
21
|
+
const __dirname2 = path.dirname(__filename2);
|
22
|
+
const libPath = __dirname2;
|
23
|
+
const currentPlatform = process.platform !== "win32" ? process.platform : "windows";
|
24
|
+
const currentPlatformWithArch = `${currentPlatform}-${process.arch}`;
|
25
|
+
const platform = SUPPORTED_BUN_PLATFORMS.find((bunPlatform) => bunPlatform.includes(currentPlatformWithArch));
|
26
|
+
if (platform) {
|
27
|
+
const pathToBinary = path.join(libPath, "./bin", `./uds-${platform}`);
|
28
|
+
execFileSync(pathToBinary, process.argv.slice(2).concat([`--commandsPath=${libPath}`]), {
|
29
|
+
stdio: "inherit"
|
30
|
+
});
|
31
|
+
} else {
|
32
|
+
throw new Error("Unsupported platform \uD83D\uDE22, pleaes reach out to the UDS team for support #uds-ask.");
|
33
|
+
}
|
34
|
+
};
|
35
|
+
detectPlatform();
|
@@ -30,6 +30,8 @@ self.onmessage = async ({ data }: ConfigWorkerThreadMessage) => {
|
|
30
30
|
try {
|
31
31
|
console.log('Fetching from configurator...');
|
32
32
|
|
33
|
+
// We're using Bun's fetch here because we're in a worker.
|
34
|
+
// eslint-disable-next-line n/no-unsupported-features/node-builtins
|
33
35
|
const resp = await fetch(`${CLOUD_FUNCTION}?id=${id}`);
|
34
36
|
if (!resp.ok) {
|
35
37
|
throw new Error(`Error fetching config id '${id}'. Does it exist in the Configurator?`);
|
package/cli/utils/purgeCSS.ts
CHANGED
@@ -1,12 +1,15 @@
|
|
1
1
|
import path from 'node:path';
|
2
2
|
|
3
|
+
import {
|
4
|
+
findReferencesAsJsxElements,
|
5
|
+
getUsedPropsInReference,
|
6
|
+
} from '@yahoo/uds/scripts/utils/tsMorph';
|
3
7
|
import {
|
4
8
|
componentsDependencies,
|
5
9
|
componentToTwClasses,
|
6
10
|
componentToVariants,
|
7
11
|
variantsList,
|
8
12
|
} from '@yahoo/uds/tailwind/purger';
|
9
|
-
import { findReferencesAsJsxElements, getUsedPropsInReference } from '@yahoo/uds/tailwind/tsMorph';
|
10
13
|
import {
|
11
14
|
ColorModeConfig,
|
12
15
|
DARK_COLOR_MODE_CLASSNAME,
|
@@ -56,11 +59,17 @@ type SafeList = string[];
|
|
56
59
|
type ImportsList = string[];
|
57
60
|
type Files = string[];
|
58
61
|
|
59
|
-
export const getFiles = async (): Promise<Files> => {
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
62
|
+
export const getFiles = async (entry: string): Promise<Files> => {
|
63
|
+
let files: string[] = [];
|
64
|
+
try {
|
65
|
+
const workspaceDir = Bun.env.PWD;
|
66
|
+
const srcDir = path.join(workspaceDir, entry);
|
67
|
+
const glob = new Bun.Glob('**/*.{jsx,tsx}');
|
68
|
+
files = await Array.fromAsync(glob.scan({ cwd: srcDir, absolute: true }));
|
69
|
+
} catch (error) {
|
70
|
+
throw new Error(`Couldn't find the entry directory: ${entry}. Please make sure it exists.`);
|
71
|
+
}
|
72
|
+
return files;
|
64
73
|
};
|
65
74
|
|
66
75
|
/**
|
@@ -357,11 +366,13 @@ export const scanGetStylesReferences = (project: Project): Map<string, Set<strin
|
|
357
366
|
type PurgeOptions = {
|
358
367
|
config?: string;
|
359
368
|
output?: string;
|
369
|
+
entry?: string;
|
360
370
|
};
|
361
371
|
|
362
372
|
async function purge({
|
363
373
|
config: configPath = Bun.env.UDS_OUT_FILE ?? './uds.config.ts',
|
364
374
|
output: output = 'dist/safelist.ts',
|
375
|
+
entry: entry = '/src/',
|
365
376
|
}: PurgeOptions) {
|
366
377
|
const workspaceDir = Bun.env.PWD;
|
367
378
|
const srcDir = path.join(workspaceDir, '/tsconfig.json');
|
@@ -371,16 +382,25 @@ async function purge({
|
|
371
382
|
|
372
383
|
const outputFile = Bun.file(path.join(`${Bun.env.PWD}`, output));
|
373
384
|
|
374
|
-
// we need to load the UDS config
|
375
|
-
const configAbsolutePath = path.
|
376
|
-
//
|
377
|
-
|
385
|
+
// // we need to load the UDS config
|
386
|
+
const configAbsolutePath = path.join(workspaceDir, configPath);
|
387
|
+
// The config is currently unused because we haven't implemented the feature to toggle the color and scale modes
|
388
|
+
// in the configurator. This is a placeholder for when we do, so we can purge the unused classes.
|
389
|
+
let config: { config: UniversalTokensConfig } | undefined;
|
390
|
+
try {
|
391
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
392
|
+
config = await import(configAbsolutePath);
|
393
|
+
} catch (error) {
|
394
|
+
throw new Error(
|
395
|
+
"Couldn't load the UDS config. Make sure you have uds.config.ts in the root of your project.",
|
396
|
+
);
|
397
|
+
}
|
378
398
|
|
379
399
|
spinStart('Getting used UDS components...');
|
380
400
|
|
381
401
|
// 1. Get all files from the current dir
|
382
402
|
print('Loading the project...');
|
383
|
-
const files = await getFiles();
|
403
|
+
const files = await getFiles(entry);
|
384
404
|
|
385
405
|
// 2. For each file get the imports;
|
386
406
|
print('Going through the imports...');
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as react from 'react';
|
2
|
-
import { b as UniversalPressableProps, c as UniversalIconButtonProps, d as UniversalImageProps } from './types-
|
2
|
+
import { b as UniversalPressableProps, c as UniversalIconButtonProps, d as UniversalImageProps } from './types-CLPge83Y.js';
|
3
3
|
import { View, PressableProps as PressableProps$1, StyleProp, ViewStyle } from 'react-native';
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
5
5
|
import { ImageProps as ImageProps$1 } from 'expo-image';
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as react from 'react';
|
2
|
-
import { b as UniversalPressableProps, c as UniversalIconButtonProps, d as UniversalImageProps } from './types-
|
2
|
+
import { b as UniversalPressableProps, c as UniversalIconButtonProps, d as UniversalImageProps } from './types-CLPge83Y.cjs';
|
3
3
|
import { View, PressableProps as PressableProps$1, StyleProp, ViewStyle } from 'react-native';
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
5
5
|
import { ImageProps as ImageProps$1 } from 'expo-image';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import * as react from 'react';
|
2
2
|
import { Ref } from 'react';
|
3
|
-
import {
|
3
|
+
import { aY as UniversalBoxProps, a$ as UniversalIconProps, b0 as UniversalPressableProps, b2 as UniversalTextProps, g as UniversalStackProps } from './types-BofdnBTe.cjs';
|
4
4
|
|
5
5
|
type DivProps = React.HTMLAttributes<HTMLDivElement>;
|
6
6
|
interface BoxProps extends UniversalBoxProps, DivProps {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import * as react from 'react';
|
2
2
|
import { Ref } from 'react';
|
3
|
-
import {
|
3
|
+
import { aY as UniversalBoxProps, a$ as UniversalIconProps, b0 as UniversalPressableProps, b2 as UniversalTextProps, g as UniversalStackProps } from './types-BofdnBTe.js';
|
4
4
|
|
5
5
|
type DivProps = React.HTMLAttributes<HTMLDivElement>;
|
6
6
|
interface BoxProps extends UniversalBoxProps, DivProps {
|
@@ -1,4 +1,4 @@
|
|
1
1
|
"use strict";var e=require("react/jsx-runtime"),r=require("@yahoo/uds/fixtures"),t=require("clsx"),o=require("tailwind-merge"),a=require("react"),n=require("@ariakit/react"),i=require("react-toastify");function l(e){return e&&e.__esModule?e:{default:e}}var s=l(t),d=({size:r,variant:t})=>{if("outline"===t)switch(r){case"sm":return e.jsx(e.Fragment,{children:e.jsx("path",{fill:"currentColor",d:"M7.795 12.199 1.381 5.783 2.795 4.37l5 5 5-5 1.414 1.414z"})});case"md":return e.jsx(e.Fragment,{children:e.jsx("path",{fill:"currentColor",d:"M11.56 17.24 4.31 9.756 5.78 8.24l5.781 5.969 5.782-5.969 1.469 1.516z"})});case"lg":return e.jsx(e.Fragment,{children:e.jsx("path",{fill:"currentColor",d:"M15.768 23.536 3 10.767 4.768 9l11 11 11-11 1.767 1.768z"})})}if("fill"===t)switch(r){case"sm":return e.jsx(e.Fragment,{children:e.jsx("path",{fill:"currentColor",d:"M8.001 12.627 1.375 6l1.626-1.626 5 5 5-5L14.628 6z"})});case"md":return e.jsx(e.Fragment,{children:e.jsx("path",{fill:"currentColor",d:"m12 17.763-7.686-7.686 1.839-1.839L12 14.086l5.848-5.848 1.838 1.839z"})});case"lg":return e.jsx(e.Fragment,{children:e.jsx("path",{fill:"currentColor",d:"M16.121 24.243 3 11.12 5.121 9l11 11 11-11 2.122 2.121z"})})}return e.jsx(e.Fragment,{})},c=({size:r,variant:t})=>{if("outline"===t)switch(r){case"sm":return e.jsx(e.Fragment,{children:e.jsx("path",{fill:"currentColor",d:"m7.795 3.37 6.414 6.414-1.414 1.414-5-5-5 5-1.414-1.414z"})});case"md":return e.jsx(e.Fragment,{children:e.jsx("path",{fill:"currentColor",d:"m11.56 6.24 7.25 7.485-1.468 1.515-5.781-5.968-5.782 5.968-1.468-1.515z"})});case"lg":return e.jsx(e.Fragment,{children:e.jsx("path",{fill:"currentColor",d:"m15.649 7.38 12.767 12.768-1.767 1.767-11-11-11 11-1.768-1.767z"})})}if("fill"===t)switch(r){case"sm":return e.jsx(e.Fragment,{children:e.jsx("path",{fill:"currentColor",d:"M8.001 3.374 14.628 10 13 11.627l-5-5-5 5L1.375 10z"})});case"md":return e.jsx(e.Fragment,{children:e.jsx("path",{fill:"currentColor",d:"m12 6.238 7.686 7.686-1.838 1.839L12 9.915l-5.847 5.848-1.839-1.839z"})});case"lg":return e.jsx(e.Fragment,{children:e.jsx("path",{fill:"currentColor",d:"M16 7.379 29.122 20.5 27 22.622l-11-11-11 11L2.88 20.5z"})})}return e.jsx(e.Fragment,{})},p=({size:r,variant:t})=>{if("outline"===t)switch(r){case"sm":return e.jsx(e.Fragment,{children:e.jsx("path",{fill:"currentColor",d:"m9.169 7.896 5.364-5.363L13.26 1.26 7.896 6.624 2.533 1.26 1.26 2.533l5.363 5.363L1.26 13.26l1.273 1.273 5.363-5.364 5.364 5.364 1.273-1.273z"})});case"md":return e.jsx(e.Fragment,{children:e.jsx("path",{fill:"currentColor",d:"m13.44 11.956 6.572-6.571L18.527 3.9l-6.571 6.57L5.385 3.9 3.9 5.385l6.57 6.57-6.57 6.572 1.485 1.485 6.57-6.571 6.572 6.57 1.485-1.484z"})});case"lg":return e.jsx(e.Fragment,{children:e.jsx("path",{fill:"currentColor",d:"M17.702 15.934 28.818 4.818 27.05 3.05 15.934 14.166 4.818 3.05 3.05 4.818l11.116 11.116L3.05 27.05l1.768 1.768 11.116-11.116L27.05 28.818l1.768-1.768z"})})}if("fill"===t)switch(r){case"sm":return e.jsx(e.Fragment,{children:e.jsx("path",{fill:"currentColor",d:"m9.485 8 5.257-5.258-1.485-1.484L8 6.515 2.742 1.258 1.257 2.742 6.515 8l-5.258 5.258 1.485 1.485L8 9.485l5.257 5.258 1.485-1.485z"})});case"md":return e.jsx(e.Fragment,{children:e.jsx("path",{fill:"currentColor",d:"m12 13.768 6.337 6.337 1.768-1.768L13.768 12l6.337-6.337-1.768-1.768L12 10.232 5.663 3.895 3.895 5.663 10.232 12l-6.337 6.337 1.768 1.768z"})});case"lg":return e.jsx(e.Fragment,{children:e.jsx("path",{fill:"currentColor",d:"M17.91 16 28.954 4.955l-1.91-1.91L16 14.091 4.955 3.045l-1.91 1.91L14.091 16 3.045 27.045l1.91 1.91L16 17.909l11.045 11.046 1.91-1.91z"})})}return e.jsx(e.Fragment,{})};
|
2
|
-
/*! © 2024 Yahoo, Inc. UDS v0.5.8 */function m(e){return"boolean"==typeof e?`${e}`:0===e?"0":e}var b,f="uds",u={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",current:"text-current"},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",current:"placeholder:text-current"},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:{0:"p-0",px:"p-px",.5:"p-0.5",1:"p-1",1.5:"p-1.5",2:"p-2",2.5:"p-2.5",3:"p-3",3.5:"p-3.5",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",14:"p-14",16:"p-16",20:"p-20",24:"p-24",28:"p-28",32:"p-32",36:"p-36",40:"p-40",44:"p-44",48:"p-48",52:"p-52",56:"p-56",60:"p-60",64:"p-64",72:"p-72",80:"p-80",96:"p-96"},spacingHorizontal:{0:"px-0",px:"px-px",.5:"px-0.5",1:"px-1",1.5:"px-1.5",2:"px-2",2.5:"px-2.5",3:"px-3",3.5:"px-3.5",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",14:"px-14",16:"px-16",20:"px-20",24:"px-24",28:"px-28",32:"px-32",36:"px-36",40:"px-40",44:"px-44",48:"px-48",52:"px-52",56:"px-56",60:"px-60",64:"px-64",72:"px-72",80:"px-80",96:"px-96"},spacingVertical:{0:"py-0",px:"py-px",.5:"py-0.5",1:"py-1",1.5:"py-1.5",2:"py-2",2.5:"py-2.5",3:"py-3",3.5:"py-3.5",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",14:"py-14",16:"py-16",20:"py-20",24:"py-24",28:"py-28",32:"py-32",36:"py-36",40:"py-40",44:"py-44",48:"py-48",52:"py-52",56:"py-56",60:"py-60",64:"py-64",72:"py-72",80:"py-80",96:"py-96"},spacingBottom:{0:"pb-0",px:"pb-px",.5:"pb-0.5",1:"pb-1",1.5:"pb-1.5",2:"pb-2",2.5:"pb-2.5",3:"pb-3",3.5:"pb-3.5",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",14:"pb-14",16:"pb-16",20:"pb-20",24:"pb-24",28:"pb-28",32:"pb-32",36:"pb-36",40:"pb-40",44:"pb-44",48:"pb-48",52:"pb-52",56:"pb-56",60:"pb-60",64:"pb-64",72:"pb-72",80:"pb-80",96:"pb-96"},spacingEnd:{0:"pe-0",px:"pe-px",.5:"pe-0.5",1:"pe-1",1.5:"pe-1.5",2:"pe-2",2.5:"pe-2.5",3:"pe-3",3.5:"pe-3.5",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",14:"pe-14",16:"pe-16",20:"pe-20",24:"pe-24",28:"pe-28",32:"pe-32",36:"pe-36",40:"pe-40",44:"pe-44",48:"pe-48",52:"pe-52",56:"pe-56",60:"pe-60",64:"pe-64",72:"pe-72",80:"pe-80",96:"pe-96"},spacingStart:{0:"ps-0",px:"ps-px",.5:"ps-0.5",1:"ps-1",1.5:"ps-1.5",2:"ps-2",2.5:"ps-2.5",3:"ps-3",3.5:"ps-3.5",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",14:"ps-14",16:"ps-16",20:"ps-20",24:"ps-24",28:"ps-28",32:"ps-32",36:"ps-36",40:"ps-40",44:"ps-44",48:"ps-48",52:"ps-52",56:"ps-56",60:"ps-60",64:"ps-64",72:"ps-72",80:"ps-80",96:"ps-96"},spacingTop:{0:"pt-0",px:"pt-px",.5:"pt-0.5",1:"pt-1",1.5:"pt-1.5",2:"pt-2",2.5:"pt-2.5",3:"pt-3",3.5:"pt-3.5",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",14:"pt-14",16:"pt-16",20:"pt-20",24:"pt-24",28:"pt-28",32:"pt-32",36:"pt-36",40:"pt-40",44:"pt-44",48:"pt-48",52:"pt-52",56:"pt-56",60:"pt-60",64:"pt-64",72:"pt-72",80:"pt-80",96:"pt-96"},offset:{0:"-m-0",px:"-m-px",.5:"-m-0.5",1:"-m-1",1.5:"-m-1.5",2:"-m-2",2.5:"-m-2.5",3:"-m-3",3.5:"-m-3.5",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",14:"-m-14",16:"-m-16",20:"-m-20",24:"-m-24",28:"-m-28",32:"-m-32",36:"-m-36",40:"-m-40",44:"-m-44",48:"-m-48",52:"-m-52",56:"-m-56",60:"-m-60",64:"-m-64",72:"-m-72",80:"-m-80",96:"-m-96"},offsetVertical:{0:"-my-0",px:"-my-px",.5:"-my-0.5",1:"-my-1",1.5:"-my-1.5",2:"-my-2",2.5:"-my-2.5",3:"-my-3",3.5:"-my-3.5",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",14:"-my-14",16:"-my-16",20:"-my-20",24:"-my-24",28:"-my-28",32:"-my-32",36:"-my-36",40:"-my-40",44:"-my-44",48:"-my-48",52:"-my-52",56:"-my-56",60:"-my-60",64:"-my-64",72:"-my-72",80:"-my-80",96:"-my-96"},offsetHorizontal:{0:"-mx-0",px:"-mx-px",.5:"-mx-0.5",1:"-mx-1",1.5:"-mx-1.5",2:"-mx-2",2.5:"-mx-2.5",3:"-mx-3",3.5:"-mx-3.5",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",14:"-mx-14",16:"-mx-16",20:"-mx-20",24:"-mx-24",28:"-mx-28",32:"-mx-32",36:"-mx-36",40:"-mx-40",44:"-mx-44",48:"-mx-48",52:"-mx-52",56:"-mx-56",60:"-mx-60",64:"-mx-64",72:"-mx-72",80:"-mx-80",96:"-mx-96"},offsetBottom:{0:"-mb-0",px:"-mb-px",.5:"-mb-0.5",1:"-mb-1",1.5:"-mb-1.5",2:"-mb-2",2.5:"-mb-2.5",3:"-mb-3",3.5:"-mb-3.5",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",14:"-mb-14",16:"-mb-16",20:"-mb-20",24:"-mb-24",28:"-mb-28",32:"-mb-32",36:"-mb-36",40:"-mb-40",44:"-mb-44",48:"-mb-48",52:"-mb-52",56:"-mb-56",60:"-mb-60",64:"-mb-64",72:"-mb-72",80:"-mb-80",96:"-mb-96"},offsetEnd:{0:"-me-0",px:"-me-px",.5:"-me-0.5",1:"-me-1",1.5:"-me-1.5",2:"-me-2",2.5:"-me-2.5",3:"-me-3",3.5:"-me-3.5",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",14:"-me-14",16:"-me-16",20:"-me-20",24:"-me-24",28:"-me-28",32:"-me-32",36:"-me-36",40:"-me-40",44:"-me-44",48:"-me-48",52:"-me-52",56:"-me-56",60:"-me-60",64:"-me-64",72:"-me-72",80:"-me-80",96:"-me-96"},offsetStart:{0:"-ms-0",px:"-ms-px",.5:"-ms-0.5",1:"-ms-1",1.5:"-ms-1.5",2:"-ms-2",2.5:"-ms-2.5",3:"-ms-3",3.5:"-ms-3.5",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",14:"-ms-14",16:"-ms-16",20:"-ms-20",24:"-ms-24",28:"-ms-28",32:"-ms-32",36:"-ms-36",40:"-ms-40",44:"-ms-44",48:"-ms-48",52:"-ms-52",56:"-ms-56",60:"-ms-60",64:"-ms-64",72:"-ms-72",80:"-ms-80",96:"-ms-96"},offsetTop:{0:"-mt-0",px:"-mt-px",.5:"-mt-0.5",1:"-mt-1",1.5:"-mt-1.5",2:"-mt-2",2.5:"-mt-2.5",3:"-mt-3",3.5:"-mt-3.5",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",14:"-mt-14",16:"-mt-16",20:"-mt-20",24:"-mt-24",28:"-mt-28",32:"-mt-32",36:"-mt-36",40:"-mt-40",44:"-mt-44",48:"-mt-48",52:"-mt-52",56:"-mt-56",60:"-mt-60",64:"-mt-64",72:"-mt-72",80:"-mt-80",96:"-mt-96"},columnGap:{0:"gap-x-0",px:"gap-x-px",.5:"gap-x-0.5",1:"gap-x-1",1.5:"gap-x-1.5",2:"gap-x-2",2.5:"gap-x-2.5",3:"gap-x-3",3.5:"gap-x-3.5",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",14:"gap-x-14",16:"gap-x-16",20:"gap-x-20",24:"gap-x-24",28:"gap-x-28",32:"gap-x-32",36:"gap-x-36",40:"gap-x-40",44:"gap-x-44",48:"gap-x-48",52:"gap-x-52",56:"gap-x-56",60:"gap-x-60",64:"gap-x-64",72:"gap-x-72",80:"gap-x-80",96:"gap-x-96"},rowGap:{0:"gap-y-0",px:"gap-y-px",.5:"gap-y-0.5",1:"gap-y-1",1.5:"gap-y-1.5",2:"gap-y-2",2.5:"gap-y-2.5",3:"gap-y-3",3.5:"gap-y-3.5",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",14:"gap-y-14",16:"gap-y-16",20:"gap-y-20",24:"gap-y-24",28:"gap-y-28",32:"gap-y-32",36:"gap-y-36",40:"gap-y-40",44:"gap-y-44",48:"gap-y-48",52:"gap-y-52",56:"gap-y-56",60:"gap-y-60",64:"gap-y-64",72:"gap-y-72",80:"gap-y-80",96:"gap-y-96"},backgroundColor:{accent:"bg-accent",alert:"bg-alert",black:"bg-black",brand:"bg-brand",positive:"bg-positive",warning:"bg-warning",white:"bg-white",primary:"bg-primary",secondary:"bg-secondary",transparent:"bg-transparent",current:"bg-current"},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",current:"border-current"},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",current:"border-s-current"},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",current:"border-e-current"},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",current:"border-b-current"},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",current:"border-t-current"},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"},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"},avatarSize:{sm:"avatarSize-sm",md:"avatarSize-md",lg:"avatarSize-lg"},iconSize:{sm:"iconSize-sm leading-none",md:"iconSize-md leading-none",lg:"iconSize-lg 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"},contentFit:{contain:"object-contain",cover:"object-cover",fill:"object-fill",none:"object-none","scale-down":"object-scale-down"},colorMode:{dark:`${f}-color-mode-dark`,light:`${f}-color-mode-light`},scaleMode:{xSmall:`${f}-scale-mode-xsmall`,small:`${f}-scale-mode-small`,medium:`${f}-scale-mode-medium`,large:`${f}-scale-mode-large`,xLarge:`${f}-scale-mode-xlarge`,xxxLarge:`${f}-scale-mode-xxxlarge`,xxLarge:`${f}-scale-mode-xxlarge`},buttonCategory:{accent:"button button-accent",brand:"button button-brand",alert:"button button-alert",positive:"button button-positive",warning:"button button-warning"},buttonVariant:{primary:"button-primary",secondary:"button-secondary",tertiary:"button-tertiary"},buttonSize:{sm:"button-sm",md:"button-md",lg:"button-lg"}},x=o.extendTailwindMerge({cacheSize:0,extend:{theme:{borderColor:r.lineColors,borderWidth:r.borderWidths,borderRadius:r.borderRadii}},override:{classGroups:{"text-color":[{text:[...r.foregroundColors,...r.spectrumColors]}],"bg-color":[{bg:r.backgroundColors}],"font-family":[{font:["icons",...r.textVariants]}],leading:[{leading:r.textVariants}]},conflictingClassGroups:{}}}),g=(...e)=>{const r=s.default(e);return x(r)},h=(b={variants:u},e=>{if(!b?.variants)return g(b?.base,e?.className);const{variants:r,defaultVariants:t}=b,o=Object.keys(r).map((o=>{const a=e?.[o],n=t?.[o],i=m(a)||m(n);return r[o][i]})),a={...t,...e&&Object.entries(e).reduce(((e,[r,t])=>void 0===t?e:{...e,[r]:t}),{})},n=b?.compoundVariants?.reduce(((e,{className:r,...t})=>Object.entries(t).every((([e,r])=>a[e]===r))?g(e,r):e),"");return g(b?.base,o,n,e?.className)}),y={sm:16,md:24,lg:32},w=a.forwardRef((function({name:r,size:t="md",variant:o="outline",color:a="primary",className:n,...i},l){const s=h({color:a,className:n}),d=y[t];return e.jsx("svg",{ref:l,xmlns:"http://www.w3.org/2000/svg",width:d,height:d,viewBox:`0 0 ${d} ${d}`,"aria-hidden":"true",focusable:"false",className:s,...i,children:e.jsx(r,{size:t,variant:o})})}));function v(...e){return r=>e.forEach((e=>function(e,r){"function"==typeof e?e(r):null!=e&&(e.current=r)}(e,r)))}function C(){const r=a.forwardRef(((r,o)=>{const{children:i,...l}=r,s=a.Children.toArray(i),d=s.find(n);if(d){const r=d.props.children,n=s.map((e=>e===d?a.Children.count(r)>1?a.Children.only(null):a.isValidElement(r)?r.props.children:null:e));return e.jsx(t,{...l,ref:o,children:a.isValidElement(r)?a.cloneElement(r,void 0,n):null})}return e.jsx(t,{...l,ref:o,children:i})}));r.displayName="Slot";const t=a.forwardRef(((e,r)=>{const{children:t,...o}=e;return a.isValidElement(t)?a.cloneElement(t,{...i(o,t.props),ref:r?v(r,t.ref):t.ref}):a.Children.count(t)>1?a.Children.only(null):null}));t.displayName="SlotClone";const o=({children:e})=>e;function n(e){return a.isValidElement(e)&&e.type===o}function i(e,r){const t={...r};for(const o in r){const a=e[o],n=r[o];/^on[A-Z]/.test(o)?a&&n?t[o]=(...e)=>{n(...e),a(...e)}:a&&(t[o]=a):"style"===o&&(t[o]={...a,...n})}return{...e,...t}}return r}var j=C(),z=a.forwardRef((function({className:r,asChild:t,onPress:o,onClick:a=o,backgroundColor:n,borderRadius:i,borderTopStartRadius:l,borderTopEndRadius:s,borderBottomStartRadius:d,borderBottomEndRadius:c,borderColor:p,borderStartColor:m,borderEndColor:b,borderTopColor:f,borderBottomColor:u,borderWidth:x,borderVerticalWidth:g,borderHorizontalWidth:y,borderStartWidth:w,borderEndWidth:v,borderTopWidth:C,borderBottomWidth:z,alignContent:k,alignItems:S,alignSelf:W,flex:R,flexDirection:T,flexGrow:B,flexShrink:N,flexWrap:E,justifyContent:H,flexBasis:V,display:G,overflow:D,overflowX:I,overflowY:P,position:F,spacing:L,spacingHorizontal:M,spacingVertical:A,spacingBottom:$,spacingEnd:q,spacingStart:X,spacingTop:Y,offset:_,offsetVertical:O,offsetHorizontal:Z,offsetBottom:J,offsetEnd:K,offsetStart:Q,offsetTop:U,columnGap:ee,rowGap:re,...te},oe){const ae=h({backgroundColor:n,borderRadius:i,borderTopStartRadius:l,borderTopEndRadius:s,borderBottomStartRadius:d,borderBottomEndRadius:c,borderColor:p,borderStartColor:m,borderEndColor:b,borderTopColor:f,borderBottomColor:u,borderWidth:x,borderVerticalWidth:g,borderHorizontalWidth:y,borderStartWidth:w,borderEndWidth:v,borderTopWidth:C,borderBottomWidth:z,alignContent:k,alignItems:S,alignSelf:W,flex:R,flexDirection:T,flexGrow:B,flexShrink:N,flexWrap:E,justifyContent:H,flexBasis:V,display:G,overflow:D,overflowX:I,overflowY:P,position:F,spacing:L,spacingHorizontal:M,spacingVertical:A,spacingBottom:$,spacingEnd:q,spacingStart:X,spacingTop:Y,offset:_,offsetVertical:O,offsetHorizontal:Z,offsetBottom:J,offsetEnd:K,offsetStart:Q,offsetTop:U,columnGap:ee,rowGap:re,className:r}),ne=t?j:"button";return e.jsx(ne,{className:ae,ref:oe,onClick:a,...te})})),k=C(),S={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"},W=a.forwardRef((function({className:r,asChild:t,color:o="primary",variant:a="body1",as:n=S[a],fontSize:i=a,fontFamily:l=a,fontWeight:s=a,lineHeight:d=a,textTransform:c=a,textAlign:p,backgroundColor:m,borderRadius:b,borderTopStartRadius:f,borderTopEndRadius:u,borderBottomStartRadius:x,borderBottomEndRadius:g,borderColor:y,borderStartColor:w,borderEndColor:v,borderTopColor:C,borderBottomColor:j,borderWidth:z,borderVerticalWidth:W,borderHorizontalWidth:R,borderStartWidth:T,borderEndWidth:B,borderTopWidth:N,borderBottomWidth:E,alignContent:H,alignItems:V,alignSelf:G,flex:D,flexDirection:I,flexGrow:P,flexShrink:F,flexWrap:L,justifyContent:M,flexBasis:A,display:$,overflow:q,overflowX:X,overflowY:Y,position:_,spacing:O,spacingHorizontal:Z,spacingVertical:J,spacingBottom:K,spacingEnd:Q,spacingStart:U,spacingTop:ee,offset:re,offsetVertical:te,offsetHorizontal:oe,offsetBottom:ae,offsetEnd:ne,offsetStart:ie,offsetTop:le,columnGap:se,rowGap:de,...ce},pe){const me=h({className:r,color:o,fontFamily:l,fontSize:i,fontWeight:s,lineHeight:d,textTransform:c,textAlign:p,backgroundColor:m,borderRadius:b,borderTopStartRadius:f,borderTopEndRadius:u,borderBottomStartRadius:x,borderBottomEndRadius:g,borderColor:y,borderStartColor:w,borderEndColor:v,borderTopColor:C,borderBottomColor:j,borderWidth:z,borderVerticalWidth:W,borderHorizontalWidth:R,borderStartWidth:T,borderEndWidth:B,borderTopWidth:N,borderBottomWidth:E,alignContent:H,alignItems:V,alignSelf:G,flex:D,flexDirection:I,flexGrow:P,flexShrink:F,flexWrap:L,justifyContent:M,flexBasis:A,display:$,overflow:q,overflowX:X,overflowY:Y,position:_,spacing:O,spacingHorizontal:Z,spacingVertical:J,spacingBottom:K,spacingEnd:Q,spacingStart:U,spacingTop:ee,offset:re,offsetVertical:te,offsetHorizontal:oe,offsetBottom:ae,offsetEnd:ne,offsetStart:ie,offsetTop:le,columnGap:se,rowGap:de}),be=t?k:n;return e.jsx(be,{className:me,ref:pe,...ce})})),R=C(),T=a.forwardRef((function({asChild:r,className:t,backgroundColor:o,borderRadius:a,borderTopStartRadius:n,borderTopEndRadius:i,borderBottomStartRadius:l,borderBottomEndRadius:s,borderColor:d,borderStartColor:c,borderEndColor:p,borderTopColor:m,borderBottomColor:b,borderWidth:f,borderVerticalWidth:u,borderHorizontalWidth:x,borderStartWidth:g,borderEndWidth:y,borderTopWidth:w,borderBottomWidth:v,alignContent:C,alignItems:j,alignSelf:z,flex:k,flexDirection:S,flexGrow:W,flexShrink:T,flexWrap:B,justifyContent:N,flexBasis:E,display:H="flex",overflow:V,overflowX:G,overflowY:D,position:I,spacing:P,spacingHorizontal:F,spacingVertical:L,spacingBottom:M,spacingEnd:A,spacingStart:$,spacingTop:q,offset:X,offsetVertical:Y,offsetHorizontal:_,offsetBottom:O,offsetEnd:Z,offsetStart:J,offsetTop:K,columnGap:Q,rowGap:U,...ee},re){const te=h({backgroundColor:o,borderRadius:a,borderTopStartRadius:n,borderTopEndRadius:i,borderBottomStartRadius:l,borderBottomEndRadius:s,borderColor:d,borderStartColor:c,borderEndColor:p,borderTopColor:m,borderBottomColor:b,borderWidth:f,borderVerticalWidth:u,borderHorizontalWidth:x,borderStartWidth:g,borderEndWidth:y,borderTopWidth:w,borderBottomWidth:v,alignContent:C,alignItems:j,alignSelf:z,flex:k,flexDirection:S,flexGrow:W,flexShrink:T,flexWrap:B,justifyContent:N,flexBasis:E,display:H,overflow:V,overflowX:G,overflowY:D,position:I,spacing:P,spacingHorizontal:F,spacingVertical:L,spacingBottom:M,spacingEnd:A,spacingStart:$,spacingTop:q,offset:X,offsetVertical:Y,offsetHorizontal:_,offsetBottom:O,offsetEnd:Z,offsetStart:J,offsetTop:K,columnGap:Q,rowGap:U,className:t}),oe=r?R:"div";return e.jsx(oe,{className:te,ref:re,...ee})})),B=a.forwardRef((function({gap:r,...t},o){return e.jsx(T,{ref:o,flexDirection:"column",columnGap:r,rowGap:r,...t})}));var N={display:"inline-flex",alignItems:"center",justifyContent:"center",overflow:"hidden",backgroundColor:"primary",contentFit:"cover"},E={base:{display:"inline-flex",alignItems:"center",justifyContent:"center",borderRadius:"full",className:"min-w-fit"},variant:{accent:{color:"on-color",backgroundColor:"accent",borderColor:"accent",borderWidth:"thin"},"accent-outline":{color:"accent",backgroundColor:"transparent",borderColor:"accent",borderWidth:"thin"},"accent-ghost":{color:"accent"},brand:{color:"on-color",backgroundColor:"brand",borderColor:"brand",borderWidth:"thin"},"brand-outline":{color:"brand",backgroundColor:"transparent",borderColor:"brand",borderWidth:"thin"},"brand-ghost":{color:"brand"},positive:{color:"on-color",backgroundColor:"positive",borderColor:"positive",borderWidth:"thin"},"positive-outline":{color:"positive",backgroundColor:"transparent",borderColor:"positive",borderWidth:"thin"},"positive-ghost":{color:"positive"},alert:{color:"on-color",backgroundColor:"alert",borderColor:"alert",borderWidth:"thin"},"alert-outline":{color:"alert",backgroundColor:"transparent",borderColor:"alert",borderWidth:"thin"},"alert-ghost":{color:"alert"},warning:{color:"on-color",backgroundColor:"warning",borderColor:"warning",borderWidth:"thin"},"warning-outline":{color:"warning",backgroundColor:"transparent",borderColor:"warning",borderWidth:"thin"},"warning-ghost":{color:"warning"},"primary-outline":{color:"primary",borderColor:"muted",borderWidth:"thin"},"primary-ghost":{color:"primary"},secondary:{backgroundColor:"secondary",color:"primary"}},size:{sm:{variant:"label1",spacingHorizontal:"4",spacingVertical:"2",columnGap:"2"},md:{variant:"headline1",spacingHorizontal:"6",spacingVertical:"3",columnGap:"2"},lg:{variant:"headline1",spacingHorizontal:"8",spacingVertical:"4",columnGap:"2"}}};function H({variant:e="accent",size:r="sm"}){const{color:t,...o}=E.variant[e],{variant:a,...n}=E.size[r];return{pressable:{...E.base,...o,...n},text:{color:t,variant:a,textAlign:"center"},icon:{color:t,size:"sm",variant:"outline"}}}var V=a.forwardRef((function({variant:r="accent",size:t,startIcon:o,endIcon:a,children:n,...i},l){const s=H({variant:r,size:t}),d=o?e.jsx(w,{name:o,variant:s.icon.variant,size:s.icon.size,color:s.icon.color}):null,c=a?e.jsx(w,{name:a,variant:s.icon.variant,size:s.icon.size,color:s.icon.color}):null;return e.jsxs(z,{...s.pressable,ref:l,...i,children:[d,e.jsx(W,{...s.text,children:n}),c]})})),G={accent:"on-color",secondary:"primary"},D={accent:"on-color",secondary:"tertiary"};var I=a.forwardRef((function({gap:r,...t},o){return e.jsx(T,{ref:o,flexDirection:"row",rowGap:r,columnGap:r,...t})}));var P=n.Popover,F=n.PopoverArrow,L=n.PopoverAnchor,M=n.PopoverDescription,A=n.PopoverDismiss,$=n.PopoverProvider,q=n.PopoverDisclosure,X=n.PopoverDisclosureArrow,Y=$,_=a.forwardRef((function({children:r,disabled:t,onClick:o,...i},l){const s=n.usePopoverStore(),d=a.useCallback((e=>{e.preventDefault();o?.((()=>s.setOpen(!1)))}),[o,s]);return e.jsx(z,{display:"flex",flexDirection:"row",alignItems:"flex-start",spacingVertical:"4",spacingHorizontal:"8",columnGap:"3",borderColor:"muted",className:g(!t&&"hover:bg-gray-2",t&&"cursor-default"),onClick:o?d:void 0,ref:l,...i,children:r})}));var O=a.forwardRef((function({children:r,className:t,overflow:o="scroll",...a},n){return e.jsx(B,{borderRadius:"lg",backgroundColor:"primary",className:g("max-h-[312px] min-w-[220px] shadow-md",t),overflow:o,spacingVertical:"2",asChild:!0,children:e.jsxs(P,{preventBodyScroll:!0,...a,ref:n,children:[e.jsx(F,{className:"!fill-elevation-3 !stroke-muted !stroke-1"}),r]})})}));var Z={sm:"w-[36px] h-[36px]",md:"w-[44px] h-[44px]",lg:"w-[52px] h-[52px]"},J=a.forwardRef((function({variant:r="accent",size:t="sm",name:o,className:a,color:n,...i},l){const s=H({variant:r,size:t});return e.jsx(z,{...s.pressable,spacingHorizontal:s.pressable.spacingVertical,ref:l,className:g("leading-[0px]","select-none",Z[t],a),...i,children:e.jsx(w,{name:o,...s.icon,color:n})})}));var K=n.DialogDismiss;var Q=a.forwardRef((function({children:r,className:t,display:o="table",overflow:a="hidden",borderColor:n="muted",borderRadius:i="md",...l},s){return e.jsx(T,{asChild:!0,borderColor:n,borderRadius:i,className:t,overflow:a,display:o,...l,children:e.jsx("table",{ref:s,children:r})})})),U=a.forwardRef((function({children:r,display:t="table-row",...o},a){return e.jsx(T,{asChild:!0,display:t,...o,children:e.jsx("tr",{ref:a,children:r})})})),ee=a.forwardRef((function({children:r,display:t="table-header-group",...o},a){return e.jsx(T,{asChild:!0,display:t,...o,children:e.jsx("thead",{ref:a,children:r})})})),re=a.forwardRef((function({children:r,display:t="table-row-group",...o},a){return e.jsx(T,{asChild:!0,display:t,...o,children:e.jsx("tbody",{ref:a,children:r})})})),te=a.forwardRef((function({asHeaderCell:r,className:t,display:o="table-cell",spacing:a="3",borderBottomColor:n="muted",color:i="primary",...l},s){const d=h({textAlign:"start",className:t}),c=r?"th":"td",p="row"===r?"row":r?"column":void 0,m=r?"headline1":"body1";return e.jsx(W,{asChild:!0,variant:m,color:i,display:o,spacing:a,borderBottomColor:n,borderBottomWidth:"thin",className:d,children:e.jsx(c,{scope:p,...l,ref:s})})}));function oe({data:r,columns:t,...o}){return e.jsxs(oe.Root,{...o,children:[e.jsx(oe.Header,{children:e.jsx(oe.Row,{children:t.map(((r,t)=>e.jsx(oe.Cell,{asHeaderCell:"column",children:r.title},t)))})}),e.jsx(oe.Body,{children:r.map(((r,o)=>e.jsx(oe.Row,{children:t.map(((t,n)=>{const i=r[t.dataIndex];return e.jsx(oe.Cell,{children:t.render?t.render(i,r,o):a.isValidElement(i)?i:String(i)},n)}))},o)))})]})}oe.Root=Q,oe.Row=U,oe.Header=ee,oe.Body=re,oe.Cell=te;var ae=C();var ne=a.forwardRef((function({className:r,...t},o){const a=h({display:"flex",flexDirection:"row",columnGap:"6",className:r});return e.jsx(n.TabList,{ref:o,...t,className:a})})),ie=a.forwardRef((function(r,t){const o=n.useTabContext();if(!o)throw new Error("TabPanel must be wrapped in a Tabs component");const a=o.useState("selectedId");return e.jsx(n.TabPanel,{ref:t,tabId:a,...r})}));function le({className:r,disabled:t,backgroundColor:o=(t?"secondary":"primary"),borderColor:a="tertiary",borderWidth:n="thin",borderRadius:i="md",color:l="primary",placeholderColor:s="tertiary",spacingVertical:d="3",spacingHorizontal:c="4",fontSize:p="body1",...m}){return e.jsx("input",{type:"text","data-1p-ignore":!0,className:g(h({backgroundColor:o,borderColor:a,borderWidth:n,borderRadius:i,spacingVertical:d,spacingHorizontal:c,fontSize:p,fontWeight:p,lineHeight:p,fontFamily:p,color:l,placeholderColor:s}),"w-full",r),disabled:t,...m})}function se({children:r,required:t}){return e.jsxs(W,{variant:"caption2",color:"primary",children:[r,t&&e.jsx(W,{variant:"caption2",as:"span",color:"alert",spacingStart:"0.5",children:"*"})]})}var de=h({borderRadius:"md",spacingVertical:"4",spacingHorizontal:"3",display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",columnGap:"5",overflow:"hidden",position:"relative",className:"cursor-pointer"}),ce=h({fontSize:"label2",lineHeight:"label2",fontWeight:"label2"}),pe=h({backgroundColor:"positive"}),me=h({backgroundColor:"alert"}),be=h({backgroundColor:"accent"}),fe=h({backgroundColor:"warning"}),ue=h({backgroundColor:"accent"}),xe=h({backgroundColor:"brand"}),ge=h({backgroundColor:"accent"}),he=e=>"default"===e?.type?g(de,ge):e?.defaultClassName??"";function ye(e){const{type:r="default",defaultClassName:t=""}=e??{},o={success:pe,error:me,info:be,warning:fe,default:ue,dark:xe}[r],a=t.replace(/Toastify__progress-bar-theme--light/,"");return g(a,o)}function we({closeToast:r,type:t}){const o={success:"positive",error:"alert",info:"accent",warning:"warning",default:"on-color",dark:"white"}[t];return e.jsx(J,{name:p,size:"sm",variant:"accent-ghost",color:o,onClick:r})}
|
3
|
-
/*! © 2024 Yahoo, Inc. UDS v0.0.
|
2
|
+
/*! © 2024 Yahoo, Inc. UDS v0.5.10 */function m(e){return"boolean"==typeof e?`${e}`:0===e?"0":e}var b,f="uds",u={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",current:"text-current"},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",current:"placeholder:text-current"},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:{0:"p-0",px:"p-px",.5:"p-0.5",1:"p-1",1.5:"p-1.5",2:"p-2",2.5:"p-2.5",3:"p-3",3.5:"p-3.5",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",14:"p-14",16:"p-16",20:"p-20",24:"p-24",28:"p-28",32:"p-32",36:"p-36",40:"p-40",44:"p-44",48:"p-48",52:"p-52",56:"p-56",60:"p-60",64:"p-64",72:"p-72",80:"p-80",96:"p-96"},spacingHorizontal:{0:"px-0",px:"px-px",.5:"px-0.5",1:"px-1",1.5:"px-1.5",2:"px-2",2.5:"px-2.5",3:"px-3",3.5:"px-3.5",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",14:"px-14",16:"px-16",20:"px-20",24:"px-24",28:"px-28",32:"px-32",36:"px-36",40:"px-40",44:"px-44",48:"px-48",52:"px-52",56:"px-56",60:"px-60",64:"px-64",72:"px-72",80:"px-80",96:"px-96"},spacingVertical:{0:"py-0",px:"py-px",.5:"py-0.5",1:"py-1",1.5:"py-1.5",2:"py-2",2.5:"py-2.5",3:"py-3",3.5:"py-3.5",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",14:"py-14",16:"py-16",20:"py-20",24:"py-24",28:"py-28",32:"py-32",36:"py-36",40:"py-40",44:"py-44",48:"py-48",52:"py-52",56:"py-56",60:"py-60",64:"py-64",72:"py-72",80:"py-80",96:"py-96"},spacingBottom:{0:"pb-0",px:"pb-px",.5:"pb-0.5",1:"pb-1",1.5:"pb-1.5",2:"pb-2",2.5:"pb-2.5",3:"pb-3",3.5:"pb-3.5",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",14:"pb-14",16:"pb-16",20:"pb-20",24:"pb-24",28:"pb-28",32:"pb-32",36:"pb-36",40:"pb-40",44:"pb-44",48:"pb-48",52:"pb-52",56:"pb-56",60:"pb-60",64:"pb-64",72:"pb-72",80:"pb-80",96:"pb-96"},spacingEnd:{0:"pe-0",px:"pe-px",.5:"pe-0.5",1:"pe-1",1.5:"pe-1.5",2:"pe-2",2.5:"pe-2.5",3:"pe-3",3.5:"pe-3.5",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",14:"pe-14",16:"pe-16",20:"pe-20",24:"pe-24",28:"pe-28",32:"pe-32",36:"pe-36",40:"pe-40",44:"pe-44",48:"pe-48",52:"pe-52",56:"pe-56",60:"pe-60",64:"pe-64",72:"pe-72",80:"pe-80",96:"pe-96"},spacingStart:{0:"ps-0",px:"ps-px",.5:"ps-0.5",1:"ps-1",1.5:"ps-1.5",2:"ps-2",2.5:"ps-2.5",3:"ps-3",3.5:"ps-3.5",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",14:"ps-14",16:"ps-16",20:"ps-20",24:"ps-24",28:"ps-28",32:"ps-32",36:"ps-36",40:"ps-40",44:"ps-44",48:"ps-48",52:"ps-52",56:"ps-56",60:"ps-60",64:"ps-64",72:"ps-72",80:"ps-80",96:"ps-96"},spacingTop:{0:"pt-0",px:"pt-px",.5:"pt-0.5",1:"pt-1",1.5:"pt-1.5",2:"pt-2",2.5:"pt-2.5",3:"pt-3",3.5:"pt-3.5",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",14:"pt-14",16:"pt-16",20:"pt-20",24:"pt-24",28:"pt-28",32:"pt-32",36:"pt-36",40:"pt-40",44:"pt-44",48:"pt-48",52:"pt-52",56:"pt-56",60:"pt-60",64:"pt-64",72:"pt-72",80:"pt-80",96:"pt-96"},offset:{0:"-m-0",px:"-m-px",.5:"-m-0.5",1:"-m-1",1.5:"-m-1.5",2:"-m-2",2.5:"-m-2.5",3:"-m-3",3.5:"-m-3.5",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",14:"-m-14",16:"-m-16",20:"-m-20",24:"-m-24",28:"-m-28",32:"-m-32",36:"-m-36",40:"-m-40",44:"-m-44",48:"-m-48",52:"-m-52",56:"-m-56",60:"-m-60",64:"-m-64",72:"-m-72",80:"-m-80",96:"-m-96"},offsetVertical:{0:"-my-0",px:"-my-px",.5:"-my-0.5",1:"-my-1",1.5:"-my-1.5",2:"-my-2",2.5:"-my-2.5",3:"-my-3",3.5:"-my-3.5",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",14:"-my-14",16:"-my-16",20:"-my-20",24:"-my-24",28:"-my-28",32:"-my-32",36:"-my-36",40:"-my-40",44:"-my-44",48:"-my-48",52:"-my-52",56:"-my-56",60:"-my-60",64:"-my-64",72:"-my-72",80:"-my-80",96:"-my-96"},offsetHorizontal:{0:"-mx-0",px:"-mx-px",.5:"-mx-0.5",1:"-mx-1",1.5:"-mx-1.5",2:"-mx-2",2.5:"-mx-2.5",3:"-mx-3",3.5:"-mx-3.5",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",14:"-mx-14",16:"-mx-16",20:"-mx-20",24:"-mx-24",28:"-mx-28",32:"-mx-32",36:"-mx-36",40:"-mx-40",44:"-mx-44",48:"-mx-48",52:"-mx-52",56:"-mx-56",60:"-mx-60",64:"-mx-64",72:"-mx-72",80:"-mx-80",96:"-mx-96"},offsetBottom:{0:"-mb-0",px:"-mb-px",.5:"-mb-0.5",1:"-mb-1",1.5:"-mb-1.5",2:"-mb-2",2.5:"-mb-2.5",3:"-mb-3",3.5:"-mb-3.5",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",14:"-mb-14",16:"-mb-16",20:"-mb-20",24:"-mb-24",28:"-mb-28",32:"-mb-32",36:"-mb-36",40:"-mb-40",44:"-mb-44",48:"-mb-48",52:"-mb-52",56:"-mb-56",60:"-mb-60",64:"-mb-64",72:"-mb-72",80:"-mb-80",96:"-mb-96"},offsetEnd:{0:"-me-0",px:"-me-px",.5:"-me-0.5",1:"-me-1",1.5:"-me-1.5",2:"-me-2",2.5:"-me-2.5",3:"-me-3",3.5:"-me-3.5",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",14:"-me-14",16:"-me-16",20:"-me-20",24:"-me-24",28:"-me-28",32:"-me-32",36:"-me-36",40:"-me-40",44:"-me-44",48:"-me-48",52:"-me-52",56:"-me-56",60:"-me-60",64:"-me-64",72:"-me-72",80:"-me-80",96:"-me-96"},offsetStart:{0:"-ms-0",px:"-ms-px",.5:"-ms-0.5",1:"-ms-1",1.5:"-ms-1.5",2:"-ms-2",2.5:"-ms-2.5",3:"-ms-3",3.5:"-ms-3.5",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",14:"-ms-14",16:"-ms-16",20:"-ms-20",24:"-ms-24",28:"-ms-28",32:"-ms-32",36:"-ms-36",40:"-ms-40",44:"-ms-44",48:"-ms-48",52:"-ms-52",56:"-ms-56",60:"-ms-60",64:"-ms-64",72:"-ms-72",80:"-ms-80",96:"-ms-96"},offsetTop:{0:"-mt-0",px:"-mt-px",.5:"-mt-0.5",1:"-mt-1",1.5:"-mt-1.5",2:"-mt-2",2.5:"-mt-2.5",3:"-mt-3",3.5:"-mt-3.5",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",14:"-mt-14",16:"-mt-16",20:"-mt-20",24:"-mt-24",28:"-mt-28",32:"-mt-32",36:"-mt-36",40:"-mt-40",44:"-mt-44",48:"-mt-48",52:"-mt-52",56:"-mt-56",60:"-mt-60",64:"-mt-64",72:"-mt-72",80:"-mt-80",96:"-mt-96"},columnGap:{0:"gap-x-0",px:"gap-x-px",.5:"gap-x-0.5",1:"gap-x-1",1.5:"gap-x-1.5",2:"gap-x-2",2.5:"gap-x-2.5",3:"gap-x-3",3.5:"gap-x-3.5",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",14:"gap-x-14",16:"gap-x-16",20:"gap-x-20",24:"gap-x-24",28:"gap-x-28",32:"gap-x-32",36:"gap-x-36",40:"gap-x-40",44:"gap-x-44",48:"gap-x-48",52:"gap-x-52",56:"gap-x-56",60:"gap-x-60",64:"gap-x-64",72:"gap-x-72",80:"gap-x-80",96:"gap-x-96"},rowGap:{0:"gap-y-0",px:"gap-y-px",.5:"gap-y-0.5",1:"gap-y-1",1.5:"gap-y-1.5",2:"gap-y-2",2.5:"gap-y-2.5",3:"gap-y-3",3.5:"gap-y-3.5",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",14:"gap-y-14",16:"gap-y-16",20:"gap-y-20",24:"gap-y-24",28:"gap-y-28",32:"gap-y-32",36:"gap-y-36",40:"gap-y-40",44:"gap-y-44",48:"gap-y-48",52:"gap-y-52",56:"gap-y-56",60:"gap-y-60",64:"gap-y-64",72:"gap-y-72",80:"gap-y-80",96:"gap-y-96"},backgroundColor:{accent:"bg-accent",alert:"bg-alert",black:"bg-black",brand:"bg-brand",positive:"bg-positive",warning:"bg-warning",white:"bg-white",primary:"bg-primary",secondary:"bg-secondary",transparent:"bg-transparent",current:"bg-current"},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",current:"border-current"},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",current:"border-s-current"},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",current:"border-e-current"},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",current:"border-b-current"},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",current:"border-t-current"},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"},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"},avatarSize:{sm:"avatarSize-sm",md:"avatarSize-md",lg:"avatarSize-lg"},iconSize:{sm:"iconSize-sm leading-none",md:"iconSize-md leading-none",lg:"iconSize-lg 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"},contentFit:{contain:"object-contain",cover:"object-cover",fill:"object-fill",none:"object-none","scale-down":"object-scale-down"},colorMode:{dark:`${f}-color-mode-dark`,light:`${f}-color-mode-light`},scaleMode:{xSmall:`${f}-scale-mode-xsmall`,small:`${f}-scale-mode-small`,medium:`${f}-scale-mode-medium`,large:`${f}-scale-mode-large`,xLarge:`${f}-scale-mode-xlarge`,xxxLarge:`${f}-scale-mode-xxxlarge`,xxLarge:`${f}-scale-mode-xxlarge`},buttonCategory:{accent:"button-accent",brand:"button-brand",alert:"button-alert",positive:"button-positive",warning:"button-warning"},buttonVariant:{primary:"button-primary",secondary:"button-secondary",tertiary:"button-tertiary"},buttonSize:{sm:"button-sm",md:"button-md",lg:"button-lg"}},x=o.extendTailwindMerge({cacheSize:0,extend:{theme:{borderColor:r.lineColors,borderWidth:r.borderWidths,borderRadius:r.borderRadii}},override:{classGroups:{"text-color":[{text:[...r.foregroundColors,...r.spectrumColors]}],"bg-color":[{bg:r.backgroundColors}],"font-family":[{font:["icons",...r.textVariants]}],leading:[{leading:r.textVariants}]},conflictingClassGroups:{}}}),g=(...e)=>{const r=s.default(e);return x(r)},h=(b={variants:u},e=>{if(!b?.variants)return g(b?.base,e?.className);const{variants:r,defaultVariants:t}=b,o=Object.keys(r).map((o=>{const a=e?.[o],n=t?.[o],i=m(a)||m(n);return r[o][i]})),a={...t,...e&&Object.entries(e).reduce(((e,[r,t])=>void 0===t?e:{...e,[r]:t}),{})},n=b?.compoundVariants?.reduce(((e,{className:r,...t})=>Object.entries(t).every((([e,r])=>a[e]===r))?g(e,r):e),"");return g(b?.base,o,n,e?.className)}),y={sm:16,md:24,lg:32},w=a.forwardRef((function({name:r,size:t="md",variant:o="outline",color:a="primary",className:n,...i},l){const s=h({color:a,className:n}),d=y[t];return e.jsx("svg",{ref:l,xmlns:"http://www.w3.org/2000/svg",width:d,height:d,viewBox:`0 0 ${d} ${d}`,"aria-hidden":"true",focusable:"false",className:s,...i,children:e.jsx(r,{size:t,variant:o})})}));function v(...e){return r=>e.forEach((e=>function(e,r){"function"==typeof e?e(r):null!=e&&(e.current=r)}(e,r)))}function C(){const r=a.forwardRef(((r,o)=>{const{children:i,...l}=r,s=a.Children.toArray(i),d=s.find(n);if(d){const r=d.props.children,n=s.map((e=>e===d?a.Children.count(r)>1?a.Children.only(null):a.isValidElement(r)?r.props.children:null:e));return e.jsx(t,{...l,ref:o,children:a.isValidElement(r)?a.cloneElement(r,void 0,n):null})}return e.jsx(t,{...l,ref:o,children:i})}));r.displayName="Slot";const t=a.forwardRef(((e,r)=>{const{children:t,...o}=e;return a.isValidElement(t)?a.cloneElement(t,{...i(o,t.props),ref:r?v(r,t.ref):t.ref}):a.Children.count(t)>1?a.Children.only(null):null}));t.displayName="SlotClone";const o=({children:e})=>e;function n(e){return a.isValidElement(e)&&e.type===o}function i(e,r){const t={...r};for(const o in r){const a=e[o],n=r[o];/^on[A-Z]/.test(o)?a&&n?t[o]=(...e)=>{n(...e),a(...e)}:a&&(t[o]=a):"style"===o&&(t[o]={...a,...n})}return{...e,...t}}return r}var j=C(),z=a.forwardRef((function({className:r,asChild:t,onPress:o,onClick:a=o,backgroundColor:n,borderRadius:i,borderTopStartRadius:l,borderTopEndRadius:s,borderBottomStartRadius:d,borderBottomEndRadius:c,borderColor:p,borderStartColor:m,borderEndColor:b,borderTopColor:f,borderBottomColor:u,borderWidth:x,borderVerticalWidth:g,borderHorizontalWidth:y,borderStartWidth:w,borderEndWidth:v,borderTopWidth:C,borderBottomWidth:z,alignContent:k,alignItems:S,alignSelf:W,flex:R,flexDirection:T,flexGrow:B,flexShrink:N,flexWrap:E,justifyContent:H,flexBasis:V,display:G,overflow:D,overflowX:I,overflowY:P,position:F,spacing:L,spacingHorizontal:M,spacingVertical:A,spacingBottom:$,spacingEnd:q,spacingStart:X,spacingTop:Y,offset:_,offsetVertical:O,offsetHorizontal:Z,offsetBottom:J,offsetEnd:K,offsetStart:Q,offsetTop:U,columnGap:ee,rowGap:re,...te},oe){const ae=h({backgroundColor:n,borderRadius:i,borderTopStartRadius:l,borderTopEndRadius:s,borderBottomStartRadius:d,borderBottomEndRadius:c,borderColor:p,borderStartColor:m,borderEndColor:b,borderTopColor:f,borderBottomColor:u,borderWidth:x,borderVerticalWidth:g,borderHorizontalWidth:y,borderStartWidth:w,borderEndWidth:v,borderTopWidth:C,borderBottomWidth:z,alignContent:k,alignItems:S,alignSelf:W,flex:R,flexDirection:T,flexGrow:B,flexShrink:N,flexWrap:E,justifyContent:H,flexBasis:V,display:G,overflow:D,overflowX:I,overflowY:P,position:F,spacing:L,spacingHorizontal:M,spacingVertical:A,spacingBottom:$,spacingEnd:q,spacingStart:X,spacingTop:Y,offset:_,offsetVertical:O,offsetHorizontal:Z,offsetBottom:J,offsetEnd:K,offsetStart:Q,offsetTop:U,columnGap:ee,rowGap:re,className:r}),ne=t?j:"button";return e.jsx(ne,{className:ae,ref:oe,onClick:a,...te})})),k=C(),S={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"},W=a.forwardRef((function({className:r,asChild:t,color:o="primary",variant:a="body1",as:n=S[a],fontSize:i=a,fontFamily:l=a,fontWeight:s=a,lineHeight:d=a,textTransform:c=a,textAlign:p,backgroundColor:m,borderRadius:b,borderTopStartRadius:f,borderTopEndRadius:u,borderBottomStartRadius:x,borderBottomEndRadius:g,borderColor:y,borderStartColor:w,borderEndColor:v,borderTopColor:C,borderBottomColor:j,borderWidth:z,borderVerticalWidth:W,borderHorizontalWidth:R,borderStartWidth:T,borderEndWidth:B,borderTopWidth:N,borderBottomWidth:E,alignContent:H,alignItems:V,alignSelf:G,flex:D,flexDirection:I,flexGrow:P,flexShrink:F,flexWrap:L,justifyContent:M,flexBasis:A,display:$,overflow:q,overflowX:X,overflowY:Y,position:_,spacing:O,spacingHorizontal:Z,spacingVertical:J,spacingBottom:K,spacingEnd:Q,spacingStart:U,spacingTop:ee,offset:re,offsetVertical:te,offsetHorizontal:oe,offsetBottom:ae,offsetEnd:ne,offsetStart:ie,offsetTop:le,columnGap:se,rowGap:de,...ce},pe){const me=h({className:r,color:o,fontFamily:l,fontSize:i,fontWeight:s,lineHeight:d,textTransform:c,textAlign:p,backgroundColor:m,borderRadius:b,borderTopStartRadius:f,borderTopEndRadius:u,borderBottomStartRadius:x,borderBottomEndRadius:g,borderColor:y,borderStartColor:w,borderEndColor:v,borderTopColor:C,borderBottomColor:j,borderWidth:z,borderVerticalWidth:W,borderHorizontalWidth:R,borderStartWidth:T,borderEndWidth:B,borderTopWidth:N,borderBottomWidth:E,alignContent:H,alignItems:V,alignSelf:G,flex:D,flexDirection:I,flexGrow:P,flexShrink:F,flexWrap:L,justifyContent:M,flexBasis:A,display:$,overflow:q,overflowX:X,overflowY:Y,position:_,spacing:O,spacingHorizontal:Z,spacingVertical:J,spacingBottom:K,spacingEnd:Q,spacingStart:U,spacingTop:ee,offset:re,offsetVertical:te,offsetHorizontal:oe,offsetBottom:ae,offsetEnd:ne,offsetStart:ie,offsetTop:le,columnGap:se,rowGap:de}),be=t?k:n;return e.jsx(be,{className:me,ref:pe,...ce})})),R=C(),T=a.forwardRef((function({asChild:r,className:t,backgroundColor:o,borderRadius:a,borderTopStartRadius:n,borderTopEndRadius:i,borderBottomStartRadius:l,borderBottomEndRadius:s,borderColor:d,borderStartColor:c,borderEndColor:p,borderTopColor:m,borderBottomColor:b,borderWidth:f,borderVerticalWidth:u,borderHorizontalWidth:x,borderStartWidth:g,borderEndWidth:y,borderTopWidth:w,borderBottomWidth:v,alignContent:C,alignItems:j,alignSelf:z,flex:k,flexDirection:S,flexGrow:W,flexShrink:T,flexWrap:B,justifyContent:N,flexBasis:E,display:H="flex",overflow:V,overflowX:G,overflowY:D,position:I,spacing:P,spacingHorizontal:F,spacingVertical:L,spacingBottom:M,spacingEnd:A,spacingStart:$,spacingTop:q,offset:X,offsetVertical:Y,offsetHorizontal:_,offsetBottom:O,offsetEnd:Z,offsetStart:J,offsetTop:K,columnGap:Q,rowGap:U,...ee},re){const te=h({backgroundColor:o,borderRadius:a,borderTopStartRadius:n,borderTopEndRadius:i,borderBottomStartRadius:l,borderBottomEndRadius:s,borderColor:d,borderStartColor:c,borderEndColor:p,borderTopColor:m,borderBottomColor:b,borderWidth:f,borderVerticalWidth:u,borderHorizontalWidth:x,borderStartWidth:g,borderEndWidth:y,borderTopWidth:w,borderBottomWidth:v,alignContent:C,alignItems:j,alignSelf:z,flex:k,flexDirection:S,flexGrow:W,flexShrink:T,flexWrap:B,justifyContent:N,flexBasis:E,display:H,overflow:V,overflowX:G,overflowY:D,position:I,spacing:P,spacingHorizontal:F,spacingVertical:L,spacingBottom:M,spacingEnd:A,spacingStart:$,spacingTop:q,offset:X,offsetVertical:Y,offsetHorizontal:_,offsetBottom:O,offsetEnd:Z,offsetStart:J,offsetTop:K,columnGap:Q,rowGap:U,className:t}),oe=r?R:"div";return e.jsx(oe,{className:te,ref:re,...ee})})),B=a.forwardRef((function({gap:r,...t},o){return e.jsx(T,{ref:o,flexDirection:"column",columnGap:r,rowGap:r,...t})}));var N={display:"inline-flex",alignItems:"center",justifyContent:"center",overflow:"hidden",backgroundColor:"primary",contentFit:"cover"},E={base:{display:"inline-flex",alignItems:"center",justifyContent:"center",borderRadius:"full",className:"min-w-fit"},variant:{accent:{color:"on-color",backgroundColor:"accent",borderColor:"accent",borderWidth:"thin"},"accent-outline":{color:"accent",backgroundColor:"transparent",borderColor:"accent",borderWidth:"thin"},"accent-ghost":{color:"accent"},brand:{color:"on-color",backgroundColor:"brand",borderColor:"brand",borderWidth:"thin"},"brand-outline":{color:"brand",backgroundColor:"transparent",borderColor:"brand",borderWidth:"thin"},"brand-ghost":{color:"brand"},positive:{color:"on-color",backgroundColor:"positive",borderColor:"positive",borderWidth:"thin"},"positive-outline":{color:"positive",backgroundColor:"transparent",borderColor:"positive",borderWidth:"thin"},"positive-ghost":{color:"positive"},alert:{color:"on-color",backgroundColor:"alert",borderColor:"alert",borderWidth:"thin"},"alert-outline":{color:"alert",backgroundColor:"transparent",borderColor:"alert",borderWidth:"thin"},"alert-ghost":{color:"alert"},warning:{color:"on-color",backgroundColor:"warning",borderColor:"warning",borderWidth:"thin"},"warning-outline":{color:"warning",backgroundColor:"transparent",borderColor:"warning",borderWidth:"thin"},"warning-ghost":{color:"warning"},"primary-outline":{color:"primary",borderColor:"muted",borderWidth:"thin"},"primary-ghost":{color:"primary"},secondary:{backgroundColor:"secondary",color:"primary"}},size:{sm:{variant:"label1",spacingHorizontal:"4",spacingVertical:"2",columnGap:"2"},md:{variant:"headline1",spacingHorizontal:"6",spacingVertical:"3",columnGap:"2"},lg:{variant:"headline1",spacingHorizontal:"8",spacingVertical:"4",columnGap:"2"}}};function H({variant:e="accent",size:r="sm"}){const{color:t,...o}=E.variant[e],{variant:a,...n}=E.size[r];return{pressable:{...E.base,...o,...n},text:{color:t,variant:a,textAlign:"center"},icon:{color:t,size:"sm",variant:"outline"}}}var V=a.forwardRef((function({variant:r="accent",size:t,startIcon:o,endIcon:a,children:n,...i},l){const s=H({variant:r,size:t}),d=o?e.jsx(w,{name:o,variant:s.icon.variant,size:s.icon.size,color:s.icon.color}):null,c=a?e.jsx(w,{name:a,variant:s.icon.variant,size:s.icon.size,color:s.icon.color}):null;return e.jsxs(z,{...s.pressable,ref:l,...i,children:[d,e.jsx(W,{...s.text,children:n}),c]})})),G={accent:"on-color",secondary:"primary"},D={accent:"on-color",secondary:"tertiary"};var I=a.forwardRef((function({gap:r,...t},o){return e.jsx(T,{ref:o,flexDirection:"row",rowGap:r,columnGap:r,...t})}));var P=n.Popover,F=n.PopoverArrow,L=n.PopoverAnchor,M=n.PopoverDescription,A=n.PopoverDismiss,$=n.PopoverProvider,q=n.PopoverDisclosure,X=n.PopoverDisclosureArrow,Y=$,_=a.forwardRef((function({children:r,disabled:t,onClick:o,...i},l){const s=n.usePopoverStore(),d=a.useCallback((e=>{e.preventDefault();o?.((()=>s.setOpen(!1)))}),[o,s]);return e.jsx(z,{display:"flex",flexDirection:"row",alignItems:"flex-start",spacingVertical:"4",spacingHorizontal:"8",columnGap:"3",borderColor:"muted",className:g(!t&&"hover:bg-gray-2",t&&"cursor-default"),onClick:o?d:void 0,ref:l,...i,children:r})}));var O=a.forwardRef((function({children:r,className:t,overflow:o="scroll",...a},n){return e.jsx(B,{borderRadius:"lg",backgroundColor:"primary",className:g("max-h-[312px] min-w-[220px] shadow-md",t),overflow:o,spacingVertical:"2",asChild:!0,children:e.jsxs(P,{preventBodyScroll:!0,...a,ref:n,children:[e.jsx(F,{className:"!fill-elevation-3 !stroke-muted !stroke-1"}),r]})})}));var Z={sm:"w-[36px] h-[36px]",md:"w-[44px] h-[44px]",lg:"w-[52px] h-[52px]"},J=a.forwardRef((function({variant:r="accent",size:t="sm",name:o,className:a,color:n,...i},l){const s=H({variant:r,size:t});return e.jsx(z,{...s.pressable,spacingHorizontal:s.pressable.spacingVertical,ref:l,className:g("leading-[0px]","select-none",Z[t],a),...i,children:e.jsx(w,{name:o,...s.icon,color:n})})}));var K=n.DialogDismiss;var Q=a.forwardRef((function({children:r,className:t,display:o="table",overflow:a="hidden",borderColor:n="muted",borderRadius:i="md",...l},s){return e.jsx(T,{asChild:!0,borderColor:n,borderRadius:i,className:t,overflow:a,display:o,...l,children:e.jsx("table",{ref:s,children:r})})})),U=a.forwardRef((function({children:r,display:t="table-row",...o},a){return e.jsx(T,{asChild:!0,display:t,...o,children:e.jsx("tr",{ref:a,children:r})})})),ee=a.forwardRef((function({children:r,display:t="table-header-group",...o},a){return e.jsx(T,{asChild:!0,display:t,...o,children:e.jsx("thead",{ref:a,children:r})})})),re=a.forwardRef((function({children:r,display:t="table-row-group",...o},a){return e.jsx(T,{asChild:!0,display:t,...o,children:e.jsx("tbody",{ref:a,children:r})})})),te=a.forwardRef((function({asHeaderCell:r,className:t,display:o="table-cell",spacing:a="3",borderBottomColor:n="muted",color:i="primary",...l},s){const d=h({textAlign:"start",className:t}),c=r?"th":"td",p="row"===r?"row":r?"column":void 0,m=r?"headline1":"body1";return e.jsx(W,{asChild:!0,variant:m,color:i,display:o,spacing:a,borderBottomColor:n,borderBottomWidth:"thin",className:d,children:e.jsx(c,{scope:p,...l,ref:s})})}));function oe({data:r,columns:t,...o}){return e.jsxs(oe.Root,{...o,children:[e.jsx(oe.Header,{children:e.jsx(oe.Row,{children:t.map(((r,t)=>e.jsx(oe.Cell,{asHeaderCell:"column",children:r.title},t)))})}),e.jsx(oe.Body,{children:r.map(((r,o)=>e.jsx(oe.Row,{children:t.map(((t,n)=>{const i=r[t.dataIndex];return e.jsx(oe.Cell,{children:t.render?t.render(i,r,o):a.isValidElement(i)?i:String(i)},n)}))},o)))})]})}oe.Root=Q,oe.Row=U,oe.Header=ee,oe.Body=re,oe.Cell=te;var ae=C();var ne=a.forwardRef((function({className:r,...t},o){const a=h({display:"flex",flexDirection:"row",columnGap:"6",className:r});return e.jsx(n.TabList,{ref:o,...t,className:a})})),ie=a.forwardRef((function(r,t){const o=n.useTabContext();if(!o)throw new Error("TabPanel must be wrapped in a Tabs component");const a=o.useState("selectedId");return e.jsx(n.TabPanel,{ref:t,tabId:a,...r})}));function le({className:r,disabled:t,backgroundColor:o=(t?"secondary":"primary"),borderColor:a="tertiary",borderWidth:n="thin",borderRadius:i="md",color:l="primary",placeholderColor:s="tertiary",spacingVertical:d="3",spacingHorizontal:c="4",fontSize:p="body1",...m}){return e.jsx("input",{type:"text","data-1p-ignore":!0,className:g(h({backgroundColor:o,borderColor:a,borderWidth:n,borderRadius:i,spacingVertical:d,spacingHorizontal:c,fontSize:p,fontWeight:p,lineHeight:p,fontFamily:p,color:l,placeholderColor:s}),"w-full",r),disabled:t,...m})}function se({children:r,required:t}){return e.jsxs(W,{variant:"caption2",color:"primary",children:[r,t&&e.jsx(W,{variant:"caption2",as:"span",color:"alert",spacingStart:"0.5",children:"*"})]})}var de=h({borderRadius:"md",spacingVertical:"4",spacingHorizontal:"3",display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",columnGap:"5",overflow:"hidden",position:"relative",className:"cursor-pointer"}),ce=h({fontSize:"label2",lineHeight:"label2",fontWeight:"label2"}),pe=h({backgroundColor:"positive"}),me=h({backgroundColor:"alert"}),be=h({backgroundColor:"accent"}),fe=h({backgroundColor:"warning"}),ue=h({backgroundColor:"accent"}),xe=h({backgroundColor:"brand"}),ge=h({backgroundColor:"accent"}),he=e=>"default"===e?.type?g(de,ge):e?.defaultClassName??"";function ye(e){const{type:r="default",defaultClassName:t=""}=e??{},o={success:pe,error:me,info:be,warning:fe,default:ue,dark:xe}[r],a=t.replace(/Toastify__progress-bar-theme--light/,"");return g(a,o)}function we({closeToast:r,type:t}){const o={success:"positive",error:"alert",info:"accent",warning:"warning",default:"on-color",dark:"white"}[t];return e.jsx(J,{name:p,size:"sm",variant:"accent-ghost",color:o,onClick:r})}
|
3
|
+
/*! © 2024 Yahoo, Inc. UDS v0.0.13 */
|
4
4
|
Object.defineProperty(exports,"usePopoverStore",{enumerable:!0,get:function(){return n.usePopoverStore}}),Object.defineProperty(exports,"toast",{enumerable:!0,get:function(){return i.toast}}),exports.Accordion=function({label:r,children:t,onClick:o,open:a,spacingHorizontal:n="4",_content:i,className:l,...s}){return e.jsxs(e.Fragment,{children:[e.jsxs(z,{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",spacingVertical:"4",spacingHorizontal:n,borderRadius:"md",onClick:o,className:g("hover:bg-secondary/80","w-full",l),...s,children:[e.jsx(W,{variant:"title4",color:"primary",children:r}),e.jsx(w,{name:a?d:c,variant:"fill",size:"sm",color:"primary"})]}),e.jsx(B,{overflow:"hidden",className:g("transition-[max-height]","duration-500","ease-in-out",a?"max-h-full":"max-h-0"),spacingHorizontal:n,...i,children:e.jsx(B,{className:"min-h-min",children:t})})]})},exports.Avatar=function({size:r,shape:t,src:o,alt:a,...n}){const i=h({...N,avatarSize:r,borderRadius:t});return e.jsx("img",{src:o,alt:a,className:i,...n})},exports.Button=V,exports.Chip=function({children:r,variant:t,startIcon:o,startContent:a=(o?e.jsx(w,{name:o,variant:"fill",size:"sm",color:G[t]}):null),endIcon:n,endContent:i=(n?e.jsx(w,{name:n,variant:"fill",size:"sm",color:G[t]}):null)}){return e.jsxs(z,{display:"inline-flex",flexDirection:"row",columnGap:"2",borderRadius:"full",backgroundColor:t,alignItems:"center",spacingVertical:"2",spacingHorizontal:"3",children:[a,e.jsx(W,{variant:"label2",color:D[t],children:r}),i]})},exports.Dropdown=Y,exports.DropdownItem=function({title:r,description:t,_title:o,_description:a,startIcon:n,endIcon:i,...l}){return e.jsxs(_,{...l,children:[n&&e.jsx(w,{name:n,size:"md",color:"primary"}),e.jsxs(B,{gap:"3",alignItems:"flex-start",children:[r&&e.jsx(W,{variant:"headline1",color:"primary",...o,children:r}),t&&e.jsx(W,{variant:"label2",color:"muted",...a,children:t})]}),i&&e.jsx(w,{name:i,size:"md",color:"primary"})]})},exports.DropdownItemPressable=_,exports.DropdownItems=O,exports.DropdownTrigger=function({children:r,variant:t,size:o,...a}){const n=H({variant:t,size:o}),i=t?n.pressable:{display:"flex",flexDirection:"row",alignItems:"center",columnGap:"6",justifyContent:"space-between"};return e.jsx(z,{...i,...a,asChild:!0,children:e.jsx(q,{children:r})})},exports.IconButton=J,exports.Modal=function({className:r,...t}){return e.jsx(B,{borderRadius:"md",position:"fixed",backgroundColor:"primary",className:g("inset-8 top-[250px] z-50 mx-auto h-fit w-[600px] origin-center scale-95 opacity-0 shadow-md transition duration-150 data-[enter]:scale-100 data-[enter]:opacity-100",r),spacing:"8",asChild:!0,overflow:"hidden",children:e.jsx(n.Dialog,{backdrop:e.jsx("div",{className:"data-[enter]:bg-primary opacity-0 backdrop-blur-0 transition duration-150 data-[enter]:opacity-60 data-[enter]:backdrop-blur-sm"}),...t})})},exports.ModalDismiss=K,exports.ModalHeader=function({children:r,handleClose:t}){return e.jsxs(I,{alignItems:"center",justifyContent:"space-between",children:[e.jsx(W,{variant:"headline1",color:"primary",children:r}),e.jsx(V,{variant:"accent-ghost",size:"md",spacingEnd:"0",spacingVertical:"0",onClick:t,children:"close"})]})},exports.Popover=P,exports.PopoverAnchor=L,exports.PopoverArrow=F,exports.PopoverDescription=M,exports.PopoverDisclosure=q,exports.PopoverDisclosureArrow=X,exports.PopoverDismiss=A,exports.PopoverHeading=function({children:r,leading:t,trailing:o}){return e.jsxs(I,{children:[t,e.jsx(W,{variant:"headline1",color:"primary",asChild:!0,children:e.jsx(n.PopoverHeading,{children:r})}),o]})},exports.PopoverProvider=$,exports.Spinner=function({className:r,...t}){return e.jsxs("div",{role:"status",className:g("self-center","relative",r),...t,style:{width:32,maxWidth:32,height:32,maxHeight:32},children:[e.jsxs("svg",{"aria-hidden":"true",className:"text-gray-3 fill-accent top-half left-half absolute left-0 right-0 animate-spin",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.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"}),e.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"})]}),e.jsx("span",{className:"sr-only",children:"Loading..."})]})},exports.Tab=function({asChild:r,label:t,value:o,startIcon:a}){const i=r?ae:"button",l=h({});if(!n.useTabContext())throw new Error("Tab must be wrapped in a Tabs component");const s=g("text-primary","border-b-transparent","aria-selected:border-b-accent","aria-selected:text-accent");return e.jsx(n.Tab,{id:o,className:l,render:e.jsx(z,{borderBottomWidth:"thick",spacingBottom:"1",spacingTop:"4",className:s,asChild:!0,children:e.jsxs(i,{children:[a?e.jsx(w,{name:a,className:"text-current",size:"md"}):null,e.jsx(W,{className:"text-current",variant:"headline1",as:"span",children:t})]})})})},exports.TabList=ne,exports.TabPanel=ie,exports.Table=oe,exports.Tabs=function(r){return e.jsx(n.TabProvider,{...r})},exports.TextInput=le,exports.TextInputGroup=function({label:r,required:t,...o}){return e.jsxs(B,{gap:"4",className:"w-full",children:[e.jsx(se,{required:t,children:r}),e.jsx(le,{required:t,...o})]})},exports.TextInputLabel=se,exports.ToastContainer=function(r){return e.jsx(i.ToastContainer,{toastClassName:he,bodyClassName:ce,progressClassName:ye,transition:i.Slide,closeButton:we,...r})},exports.useModalStore=function(e){return n.useDialogStore({animated:!0,...e})};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
2
|
-
import { c as PressableProps, e as VStackProps, b as IconProps, a as BoxProps, d as TextProps } from '../VStack-
|
3
|
-
import {
|
2
|
+
import { c as PressableProps, e as VStackProps, b as IconProps, a as BoxProps, d as TextProps } from '../VStack-BFIFJUVx.cjs';
|
3
|
+
import { aX as UniversalAvatarProps, aZ as UniversalButtonProps, b2 as UniversalTextProps, av as Overflow, T as ButtonVariant, N as ButtonSize, a_ as UniversalIconButtonProps, a0 as Display, b1 as UniversalTextInputProps } from '../types-BofdnBTe.cjs';
|
4
4
|
import * as react from 'react';
|
5
5
|
import react__default, { PropsWithChildren, TableHTMLAttributes, TdHTMLAttributes } from 'react';
|
6
6
|
import * as _ariakit_react from '@ariakit/react';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
2
|
-
import { c as PressableProps, e as VStackProps, b as IconProps, a as BoxProps, d as TextProps } from '../VStack-
|
3
|
-
import {
|
2
|
+
import { c as PressableProps, e as VStackProps, b as IconProps, a as BoxProps, d as TextProps } from '../VStack-zgq0Zq3N.js';
|
3
|
+
import { aX as UniversalAvatarProps, aZ as UniversalButtonProps, b2 as UniversalTextProps, av as Overflow, T as ButtonVariant, N as ButtonSize, a_ as UniversalIconButtonProps, a0 as Display, b1 as UniversalTextInputProps } from '../types-BofdnBTe.js';
|
4
4
|
import * as react from 'react';
|
5
5
|
import react__default, { PropsWithChildren, TableHTMLAttributes, TdHTMLAttributes } from 'react';
|
6
6
|
import * as _ariakit_react from '@ariakit/react';
|