@yahoo/uds 1.7.4 → 1.8.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cli/bin/uds-darwin-arm64-baseline +0 -0
- package/cli/bin/uds-linux-x64-baseline +0 -0
- package/cli/commands/codemod/codemod.ts +12 -9
- package/cli/commands/login.ts +2 -0
- package/cli/commands/logout.ts +3 -0
- package/cli/commands/purge.ts +2 -0
- package/cli/commands/sync.ts +2 -0
- package/cli/commands/uds.ts +2 -0
- package/cli/commands/version.ts +2 -0
- package/cli/tsconfig.json +4 -4
- package/cli/utils/analytics.ts +30 -0
- package/cli/utils/auth.ts +2 -2
- package/dist/analytics/server.cjs +1 -0
- package/dist/analytics/server.d.cts +1 -0
- package/dist/analytics/server.d.ts +1 -0
- package/dist/analytics/server.js +1 -0
- package/dist/chunk-3LHMB72F.cjs +1 -2
- package/dist/chunk-AWEUIM22.cjs +1 -3
- package/dist/chunk-FK7UKIGU.js +2 -0
- package/dist/chunk-FRZFCKD2.js +1 -2
- package/dist/chunk-J6D4HCFT.cjs +1 -2
- package/dist/chunk-LNFRMD6G.cjs +1 -2
- package/dist/chunk-LPM6JKIW.js +1 -2
- package/dist/chunk-PECN66KD.cjs +1 -3
- package/dist/chunk-PSTMMXTR.js +1 -2
- package/dist/chunk-QELQ6JY6.cjs +2 -0
- package/dist/chunk-RGE634O5.js +1 -2
- package/dist/chunk-SSMBE7SI.cjs +1 -2
- package/dist/chunk-VZAZKBYK.cjs +1 -2
- package/dist/chunk-WLOEKYUI.cjs +2 -4
- package/dist/chunk-YRYDHL65.js +1 -2
- package/dist/client/index.cjs +2 -3
- package/dist/client/index.js +3 -5
- package/dist/experimental/index.cjs +2 -3
- package/dist/experimental/index.js +2 -3
- package/dist/fixtures.cjs +1 -1
- package/dist/fixtures.js +1 -1
- package/dist/flags.cjs +1 -0
- package/dist/flags.d.cts +22 -0
- package/dist/flags.d.ts +22 -0
- package/dist/flags.js +2 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -22
- package/dist/index.d.ts +1 -22
- package/dist/index.js +1 -2
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/tailwind/plugin.cjs +2 -3
- package/dist/tailwind/plugin.js +2 -3
- package/dist/tailwind/purger.cjs +1 -2
- package/dist/tailwind/tsMorph.cjs +1 -3
- package/dist/tailwind/tsMorph.js +1 -2
- package/dist/tokens/index.cjs +1 -1
- package/dist/tokens/index.js +1 -1
- package/package.json +23 -3
- package/cli/codemods/propsToClass.test.tsx +0 -97
- package/cli/utils/auth.test.ts +0 -202
- package/cli/utils/purgeCSS.test.ts +0 -210
- package/dist/chunk-KEQTRKKF.js +0 -3
- package/dist/chunk-RILYWBPB.cjs +0 -1
Binary file
|
Binary file
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { type Props } from 'bluebun';
|
2
2
|
import prompts from 'prompts';
|
3
3
|
|
4
|
+
import { trackEvent } from '../../utils/analytics';
|
4
5
|
import { getCommandHelp, getSubCommandsChoices } from '../../utils/getCommandHelp';
|
5
6
|
import { getDirChoices } from '../../utils/getDirChoices';
|
6
7
|
|
@@ -13,6 +14,11 @@ export default {
|
|
13
14
|
const isRootCommand = Boolean(!props?.first);
|
14
15
|
const dirChoices = getDirChoices();
|
15
16
|
|
17
|
+
const runCodeMod = async (codemod: string, selectedDirs: string[]) => {
|
18
|
+
const mod = (await import(`./${codemod}`)).default;
|
19
|
+
return mod.run({ ...props, selectedDirs });
|
20
|
+
};
|
21
|
+
|
16
22
|
if (isRootCommand) {
|
17
23
|
// Prompt the user to setup the codemod runner
|
18
24
|
const { selectedDirs, selectedCodemods, didConfirm } = await prompts([
|
@@ -49,10 +55,9 @@ export default {
|
|
49
55
|
|
50
56
|
// Run each codemod and provide the selectedDirs
|
51
57
|
return Promise.all(
|
52
|
-
selectedCodemods.map(async (
|
53
|
-
|
54
|
-
|
55
|
-
);
|
58
|
+
selectedCodemods.map(async (codemod: string) => {
|
59
|
+
await runCodeMod(codemod, selectedDirs);
|
60
|
+
return trackEvent('codemod', { codemod });
|
56
61
|
}),
|
57
62
|
);
|
58
63
|
} else if (subCommandIsValid) {
|
@@ -71,11 +76,9 @@ export default {
|
|
71
76
|
process.exit(1);
|
72
77
|
}
|
73
78
|
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
selectedDirs,
|
78
|
-
});
|
79
|
+
const codemod = props.first!;
|
80
|
+
await runCodeMod(codemod, selectedDirs);
|
81
|
+
return trackEvent('codemod', { codemod });
|
79
82
|
} else {
|
80
83
|
// Throw the help message
|
81
84
|
await getCommandHelp({
|
package/cli/commands/login.ts
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
import { magenta, print, red } from 'bluebun';
|
2
2
|
|
3
|
+
import { trackEvent } from '../utils/analytics';
|
3
4
|
import { login } from '../utils/auth';
|
4
5
|
|
5
6
|
export default {
|
@@ -11,6 +12,7 @@ export default {
|
|
11
12
|
const user = await login();
|
12
13
|
if (user) {
|
13
14
|
print(magenta(`🔒 Logged in as ${user.email}`));
|
15
|
+
return await trackEvent('login');
|
14
16
|
}
|
15
17
|
} catch (error) {
|
16
18
|
if (error instanceof Error) {
|
package/cli/commands/logout.ts
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
import { magenta, print, red } from 'bluebun';
|
2
2
|
|
3
|
+
import { trackEvent } from '../utils/analytics';
|
3
4
|
import { logout } from '../utils/auth';
|
4
5
|
|
5
6
|
export default {
|
@@ -7,6 +8,8 @@ export default {
|
|
7
8
|
description: '👤 Sign out of UDS CLI',
|
8
9
|
run: async () => {
|
9
10
|
try {
|
11
|
+
// Track logout event before logout is run. Otherwise, there's no user object to track.
|
12
|
+
await trackEvent('logout');
|
10
13
|
await logout();
|
11
14
|
print(magenta('👋 You have been logged out.'));
|
12
15
|
} catch (error) {
|
package/cli/commands/purge.ts
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
import { Props, spinStart, spinStop } from 'bluebun';
|
2
2
|
|
3
|
+
import { trackEvent } from '../utils/analytics';
|
3
4
|
import { purge, PurgeOptions } from '../utils/purgeCSS';
|
4
5
|
|
5
6
|
interface PurgeProps extends Props {
|
@@ -15,6 +16,7 @@ export default {
|
|
15
16
|
try {
|
16
17
|
await purge(props.options);
|
17
18
|
spinStop('✅', 'Purging css done!');
|
19
|
+
return await trackEvent('purge');
|
18
20
|
} catch (error) {
|
19
21
|
if (error instanceof Error) {
|
20
22
|
spinStop('❌', error.message);
|
package/cli/commands/sync.ts
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
import { magenta, print, Props } from 'bluebun';
|
2
2
|
|
3
|
+
import { trackEvent } from '../utils/analytics';
|
3
4
|
import { setupConfigWorker } from '../utils/setupConfigWorker';
|
4
5
|
import { SyncOptions } from '../utils/types';
|
5
6
|
|
@@ -31,6 +32,7 @@ export default {
|
|
31
32
|
}
|
32
33
|
},
|
33
34
|
});
|
35
|
+
return await trackEvent('sync', { id });
|
34
36
|
} catch {
|
35
37
|
console.error(
|
36
38
|
'❌ An error occurred while syncing. Please reach out to #uds-ask channel for support.',
|
package/cli/commands/uds.ts
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
import { print, type Props, red } from 'bluebun';
|
2
2
|
|
3
|
+
import { trackEvent } from '../utils/analytics';
|
3
4
|
import { getAuthenticatedUser } from '../utils/auth';
|
4
5
|
import { getCommandHelp } from '../utils/getCommandHelp';
|
5
6
|
|
@@ -9,6 +10,7 @@ export default {
|
|
9
10
|
run: async (props: Props) => {
|
10
11
|
if (props.first) {
|
11
12
|
print(red(`Unknown command: ${props.first}`));
|
13
|
+
await trackEvent('unknown_cmd', { cmd: props.first });
|
12
14
|
}
|
13
15
|
const user = await getAuthenticatedUser();
|
14
16
|
const notes = user ? `🔒 Logged in as ${user.email}` : undefined;
|
package/cli/commands/version.ts
CHANGED
@@ -1,11 +1,13 @@
|
|
1
1
|
import { print } from 'bluebun';
|
2
2
|
|
3
3
|
import packageJson from '../../package.json';
|
4
|
+
import { trackEvent } from '../utils/analytics';
|
4
5
|
|
5
6
|
export default {
|
6
7
|
name: 'version',
|
7
8
|
description: `${packageJson.version}`,
|
8
9
|
run: async () => {
|
9
10
|
print(packageJson.version);
|
11
|
+
await trackEvent('version', { version: packageJson.version });
|
10
12
|
},
|
11
13
|
};
|
package/cli/tsconfig.json
CHANGED
@@ -18,14 +18,14 @@
|
|
18
18
|
"strict": true,
|
19
19
|
"types": ["bun-types"],
|
20
20
|
"target": "esnext",
|
21
|
-
"lib": ["
|
21
|
+
"lib": ["ESNext"],
|
22
22
|
"module": "esnext",
|
23
23
|
"moduleResolution": "bundler",
|
24
24
|
"paths": {
|
25
25
|
"@yahoo/uds/scripts/*": ["../scripts/*"],
|
26
26
|
"@yahoo/uds/*": ["../src/*"],
|
27
27
|
"@yahoo/uds/tailwind/tsMorph": ["../scripts/utils/tsMorph.ts"],
|
28
|
-
"root/*": ["../../*"]
|
29
|
-
}
|
30
|
-
}
|
28
|
+
"root/*": ["../../*"]
|
29
|
+
}
|
30
|
+
}
|
31
31
|
}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
import {
|
2
|
+
type EventName,
|
3
|
+
GA_MEASUREMENT_IDS,
|
4
|
+
GA_MEASUREMENT_SECRETS,
|
5
|
+
track,
|
6
|
+
} from '@yahoo/uds/analytics/server';
|
7
|
+
import { getFeatureFlags } from '@yahoo/uds/flags';
|
8
|
+
|
9
|
+
import { getAuthenticatedUser } from './auth';
|
10
|
+
|
11
|
+
export async function setup() {
|
12
|
+
const user = await getAuthenticatedUser();
|
13
|
+
if (user) {
|
14
|
+
await track.init({
|
15
|
+
appName: 'cli',
|
16
|
+
apiSecret: GA_MEASUREMENT_SECRETS.cli,
|
17
|
+
measurementId: GA_MEASUREMENT_IDS.cli,
|
18
|
+
// @ts-expect-error type is fine
|
19
|
+
user,
|
20
|
+
});
|
21
|
+
}
|
22
|
+
}
|
23
|
+
|
24
|
+
export async function trackEvent(...args: Parameters<typeof track.event<EventName['cli']>>) {
|
25
|
+
const { useCLIAuth } = getFeatureFlags();
|
26
|
+
if (useCLIAuth) {
|
27
|
+
await setup();
|
28
|
+
await track.event(...args);
|
29
|
+
}
|
30
|
+
}
|
package/cli/utils/auth.ts
CHANGED
@@ -9,11 +9,11 @@ import {
|
|
9
9
|
getAuth,
|
10
10
|
GoogleAuthProvider,
|
11
11
|
signInWithCredential,
|
12
|
-
User as FirebaseUser,
|
13
12
|
} from 'firebase/auth';
|
14
13
|
import { google, oauth2_v2 } from 'googleapis';
|
15
14
|
import http from 'http';
|
16
15
|
import open from 'open';
|
16
|
+
import { type FirebaseUser } from 'root/database/firebase';
|
17
17
|
|
18
18
|
import clientSecrets from './client_secrets.json';
|
19
19
|
|
@@ -253,7 +253,7 @@ async function getAuthenticatedUser(cliPath = DEFAULT_CLI_PATH): Promise<User |
|
|
253
253
|
return user;
|
254
254
|
}
|
255
255
|
|
256
|
-
await logout(cachePath); // remove cached user.
|
256
|
+
await logout(cachePath); // remove cached user if they're not a @yahooinc.com email.
|
257
257
|
} catch (err) {
|
258
258
|
if ((err as NodeJS.ErrnoException).code !== 'ENOENT') {
|
259
259
|
console.error(err);
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";var e=require("os"),t=require("child_process"),r=require("crypto");function n(e){return e&&e.__esModule?e:{default:e}}var i=n(e),s=n(t),a=/^(\w+)\:\s+flags=/,o=/^(\w+)\s{2,}link encap:\w+/i,c=/(?:ether|HWaddr)\s+((?:[a-z0-9]{2}\:){5}[a-z0-9]{2})/i,f=/inet\s(?:addr\:)?(\d+\.\d+\.\d+\.\d+)/;function l(){let e="eth";const t=i.default.platform();return"darwin"===t?e="en":"win32"===t&&(e=void 0),e}function u(e,t){return"IPv4"===t?"IPv4"===e||4===e:"IPv6"===t?"IPv6"===e||6===e:e===t}function d(e,t,r=!1){let n;for(const i of e)if(u(i.family,t)){if(r&&i.address.startsWith("127."))continue;if("IPv6"!==t)return i;if(0===i.scopeid)return i;n||(n=i)}return n}function h(e,t){let r;r=e,r=r||l();const n=function(e,t){const r=i.default.networkInterfaces(),n=!t;if(e=e||"IPv4",t=t||l())for(let n=-1;n<8;n++){const i=r[t+(n>=0?n:"")];if(i){const t=d(i,e);if(t)return t}}if(n)for(const t in r){const n=r[t];if(n){const t=d(n,e,!0);if(t)return t}}}("IPv4",r);return n?(process.env.CI||"ff:00:00:00:00:00"!==n.mac&&"00:00:00:00:00:00"!==n.mac||(n.mac=""),n.mac?t(null,n.mac):void s.default.exec("win32"===i.default.platform()?"ipconfig/all":"/sbin/ifconfig",{timeout:5e3},((e,i)=>{if(e||!i)return t(e);if(!r)return t();const s=function(e,t,r){const n=e.split("\n");for(let e=0;e<n.length;e++){let i=n[e].trimEnd();const s=a.exec(i)||o.exec(i);if(!s)continue;if(0!==s[1].indexOf(t))continue;let l=null,u=null,d=c.exec(i);for(d&&(u=d[1]),e++;;){if(i=n[e],!i||a.exec(i)||o.exec(i)){e--;break}u||(d=c.exec(i),d&&(u=d[1])),l||(d=f.exec(i),d&&(l=d[1])),e++}if(l===r)return u}return null}(i||"",r,n.address);t(null,s)}))):t()}var p=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;var m=function(e){return"string"==typeof e&&p.test(e)};var g=function(e){if(!m(e))throw TypeError("Invalid UUID");let t;return Uint8Array.of((t=parseInt(e.slice(0,8),16))>>>24,t>>>16&255,t>>>8&255,255&t,(t=parseInt(e.slice(9,13),16))>>>8,255&t,(t=parseInt(e.slice(14,18),16))>>>8,255&t,(t=parseInt(e.slice(19,23),16))>>>8,255&t,(t=parseInt(e.slice(24,36),16))/1099511627776&255,t/4294967296&255,t>>>24&255,t>>>16&255,t>>>8&255,255&t)},y=[];for(let e=0;e<256;++e)y.push((e+256).toString(16).slice(1));function w(e,t,r,n,i,s){const a="string"==typeof r?function(e){e=unescape(encodeURIComponent(e));const t=new Uint8Array(e.length);for(let r=0;r<e.length;++r)t[r]=e.charCodeAt(r);return t}(r):r,o="string"==typeof n?g(n):n;if("string"==typeof n&&(n=g(n)),16!==n?.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let c=new Uint8Array(16+a.length);if(c.set(o),c.set(a,o.length),c=t(c),c[6]=15&c[6]|e,c[8]=63&c[8]|128,i){s=s||0;for(let e=0;e<16;++e)i[s+e]=c[e];return i}return function(e,t=0){return(y[e[t+0]]+y[e[t+1]]+y[e[t+2]]+y[e[t+3]]+"-"+y[e[t+4]]+y[e[t+5]]+"-"+y[e[t+6]]+y[e[t+7]]+"-"+y[e[t+8]]+y[e[t+9]]+"-"+y[e[t+10]]+y[e[t+11]]+y[e[t+12]]+y[e[t+13]]+y[e[t+14]]+y[e[t+15]]).toLowerCase()}(c)}var v=function(e){return Array.isArray(e)?e=Buffer.from(e):"string"==typeof e&&(e=Buffer.from(e,"utf8")),r.createHash("sha1").update(e).digest()};function I(e,t,r,n){return w(80,v,e,t,r,n)}I.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",I.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8";var S=I;async function E(){const e=await new Promise(((e,t)=>{h("",((r,n)=>{if(r)return t(r);e(n||null)}))}))??i.default.hostname();return S(e,"6ba7b810-9dad-11d1-80b4-00c04fd430c8")}var b={all:"G-0C2FBF3K5Y",docs:"G-6HSWE4WFFV",cli:"G-4N1G785K8W","figma-plugin":"G-Q1PFL2R17E","figma-dev-mode":"G-ZD8YHG3NWV",metrics:"G-1JW6B5D3JH",configurator:"G-JEHT4QPKB0"},U={all:"GwoNoIVUQwy-AP5hKnoskw",cli:"lrds1CjyTGimkKEA9hvmmQ","figma-plugin":"CgJ4b2ISS8KArcJHihE9og","figma-dev-mode":"Ns1whhmxTE-QIpDdbZr45Q"},_="production"===process.env.NODE_ENV,D=new class{#e;#t;#r;#n=!1;appName;user;debugMode;async init({appName:e,measurementId:t,apiSecret:r,debugMode:n,user:i}){if(!this.#n)return this.#e=t,this.#t=r,this.user=i,this.appName=e,this.debugMode=n??!_,E().then((e=>{this.#r=e,this.#n=!0,this.#i()}));console.info("UDS analytics: already initialized.")}getClientId(){return this.#r}#i(){if(!this.#n)throw new Error("UDS analytics: not been initialized. Have you called init()?");if(!this.#e)throw new Error("UDS analytics: measurement property ID has not been set.");if(!this.#r)throw new Error("UDS analytics - client ID has not been set.");if(!this.user)throw new Error("UDS analytics: user has not been set.");if(!this.user.analyticsContext)throw new Error("UDS analytics: user is missing analyticsContext.")}pageview(e={}){return this.event("page_view",e)}event(e,t={}){return this.#s(e,t)}error(e={}){return this.#s("error",e)}async#s(e,t={}){this.#i();const{role:r,team:n}=this.user.analyticsContext??{},i=r&&n?{role:{value:r},team:{value:n}}:void 0,s={client_id:this.#r,user_id:this.user.id,user_properties:i,events:[{name:e,params:{app_name:this.appName,engagement_time_msec:"0",...this.debugMode&&{debug_mode:!0},...t}}]},a=[{id:this.#e,apiSecret:this.#t},{id:b.all,apiSecret:U.all}].map((async({id:t,apiSecret:r})=>{try{const n=new URL("https://www.google-analytics.com/mp/collect");n.searchParams.set("measurement_id",t),n.searchParams.set("api_secret",r);const i=await fetch(n.toString(),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)});if(!i.ok)throw new Error(`HTTP error status: ${i.status}`);_||console.log(`UDS analytics: event "${e}" sent successfully to ${t}.`)}catch(e){console.error(`UDS analytics: error sending event to ${t}:`,e)}}));return Promise.allSettled(a)}};exports.GA_MEASUREMENT_IDS=b,exports.GA_MEASUREMENT_SECRETS=U,exports.track=D;
|
@@ -0,0 +1 @@
|
|
1
|
+
export { EventName, GA_MEASUREMENT_IDS, GA_MEASUREMENT_SECRETS, track } from '@yahoo/uds-analytics/providers/google/server';
|
@@ -0,0 +1 @@
|
|
1
|
+
export { EventName, GA_MEASUREMENT_IDS, GA_MEASUREMENT_SECRETS, track } from '@yahoo/uds-analytics/providers/google/server';
|
@@ -0,0 +1 @@
|
|
1
|
+
import e from"node:os";import t from"node:child_process";import r from"os";import{createHash as n}from"crypto";/*! © 2024 Yahoo, Inc. UDS v0.0.0-development */var i=/^(\w+)\:\s+flags=/,s=/^(\w+)\s{2,}link encap:\w+/i,a=/(?:ether|HWaddr)\s+((?:[a-z0-9]{2}\:){5}[a-z0-9]{2})/i,o=/inet\s(?:addr\:)?(\d+\.\d+\.\d+\.\d+)/;function c(){let t="eth";const r=e.platform();return"darwin"===r?t="en":"win32"===r&&(t=void 0),t}function f(e,t){return"IPv4"===t?"IPv4"===e||4===e:"IPv6"===t?"IPv6"===e||6===e:e===t}function l(e,t,r=!1){let n;for(const i of e)if(f(i.family,t)){if(r&&i.address.startsWith("127."))continue;if("IPv6"!==t)return i;if(0===i.scopeid)return i;n||(n=i)}return n}function u(r,n){let f;f=r,f=f||c();const u=function(t,r){const n=e.networkInterfaces(),i=!r;if(t=t||"IPv4",r=r||c())for(let e=-1;e<8;e++){const i=n[r+(e>=0?e:"")];if(i){const e=l(i,t);if(e)return e}}if(i)for(const e in n){const r=n[e];if(r){const e=l(r,t,!0);if(e)return e}}}("IPv4",f);return u?(process.env.CI||"ff:00:00:00:00:00"!==u.mac&&"00:00:00:00:00:00"!==u.mac||(u.mac=""),u.mac?n(null,u.mac):void t.exec("win32"===e.platform()?"ipconfig/all":"/sbin/ifconfig",{timeout:5e3},((e,t)=>{if(e||!t)return n(e);if(!f)return n();const r=function(e,t,r){const n=e.split("\n");for(let e=0;e<n.length;e++){let c=n[e].trimEnd();const f=i.exec(c)||s.exec(c);if(!f)continue;if(0!==f[1].indexOf(t))continue;let l=null,u=null,d=a.exec(c);for(d&&(u=d[1]),e++;;){if(c=n[e],!c||i.exec(c)||s.exec(c)){e--;break}u||(d=a.exec(c),d&&(u=d[1])),l||(d=o.exec(c),d&&(l=d[1])),e++}if(l===r)return u}return null}(t||"",f,u.address);n(null,r)}))):n()}var d=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;var m=function(e){return"string"==typeof e&&d.test(e)};var h=function(e){if(!m(e))throw TypeError("Invalid UUID");let t;return Uint8Array.of((t=parseInt(e.slice(0,8),16))>>>24,t>>>16&255,t>>>8&255,255&t,(t=parseInt(e.slice(9,13),16))>>>8,255&t,(t=parseInt(e.slice(14,18),16))>>>8,255&t,(t=parseInt(e.slice(19,23),16))>>>8,255&t,(t=parseInt(e.slice(24,36),16))/1099511627776&255,t/4294967296&255,t>>>24&255,t>>>16&255,t>>>8&255,255&t)},p=[];for(let e=0;e<256;++e)p.push((e+256).toString(16).slice(1));function g(e,t,r,n,i,s){const a="string"==typeof r?function(e){e=unescape(encodeURIComponent(e));const t=new Uint8Array(e.length);for(let r=0;r<e.length;++r)t[r]=e.charCodeAt(r);return t}(r):r,o="string"==typeof n?h(n):n;if("string"==typeof n&&(n=h(n)),16!==n?.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let c=new Uint8Array(16+a.length);if(c.set(o),c.set(a,o.length),c=t(c),c[6]=15&c[6]|e,c[8]=63&c[8]|128,i){s=s||0;for(let e=0;e<16;++e)i[s+e]=c[e];return i}return function(e,t=0){return(p[e[t+0]]+p[e[t+1]]+p[e[t+2]]+p[e[t+3]]+"-"+p[e[t+4]]+p[e[t+5]]+"-"+p[e[t+6]]+p[e[t+7]]+"-"+p[e[t+8]]+p[e[t+9]]+"-"+p[e[t+10]]+p[e[t+11]]+p[e[t+12]]+p[e[t+13]]+p[e[t+14]]+p[e[t+15]]).toLowerCase()}(c)}var y=function(e){return Array.isArray(e)?e=Buffer.from(e):"string"==typeof e&&(e=Buffer.from(e,"utf8")),n("sha1").update(e).digest()};function w(e,t,r,n){return g(80,y,e,t,r,n)}w.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",w.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8";var v=w;async function I(){const e=await new Promise(((e,t)=>{u("",((r,n)=>{if(r)return t(r);e(n||null)}))}))??r.hostname();return v(e,"6ba7b810-9dad-11d1-80b4-00c04fd430c8")}var b={all:"G-0C2FBF3K5Y",docs:"G-6HSWE4WFFV",cli:"G-4N1G785K8W","figma-plugin":"G-Q1PFL2R17E","figma-dev-mode":"G-ZD8YHG3NWV",metrics:"G-1JW6B5D3JH",configurator:"G-JEHT4QPKB0"},S={all:"GwoNoIVUQwy-AP5hKnoskw",cli:"lrds1CjyTGimkKEA9hvmmQ","figma-plugin":"CgJ4b2ISS8KArcJHihE9og","figma-dev-mode":"Ns1whhmxTE-QIpDdbZr45Q"},E="production"===process.env.NODE_ENV,U=new class{#e;#t;#r;#n=!1;appName;user;debugMode;async init({appName:e,measurementId:t,apiSecret:r,debugMode:n,user:i}){if(!this.#n)return this.#e=t,this.#t=r,this.user=i,this.appName=e,this.debugMode=n??!E,I().then((e=>{this.#r=e,this.#n=!0,this.#i()}));console.info("UDS analytics: already initialized.")}getClientId(){return this.#r}#i(){if(!this.#n)throw new Error("UDS analytics: not been initialized. Have you called init()?");if(!this.#e)throw new Error("UDS analytics: measurement property ID has not been set.");if(!this.#r)throw new Error("UDS analytics - client ID has not been set.");if(!this.user)throw new Error("UDS analytics: user has not been set.");if(!this.user.analyticsContext)throw new Error("UDS analytics: user is missing analyticsContext.")}pageview(e={}){return this.event("page_view",e)}event(e,t={}){return this.#s(e,t)}error(e={}){return this.#s("error",e)}async#s(e,t={}){this.#i();const{role:r,team:n}=this.user.analyticsContext??{},i=r&&n?{role:{value:r},team:{value:n}}:void 0,s={client_id:this.#r,user_id:this.user.id,user_properties:i,events:[{name:e,params:{app_name:this.appName,engagement_time_msec:"0",...this.debugMode&&{debug_mode:!0},...t}}]},a=[{id:this.#e,apiSecret:this.#t},{id:b.all,apiSecret:S.all}].map((async({id:t,apiSecret:r})=>{try{const n=new URL("https://www.google-analytics.com/mp/collect");n.searchParams.set("measurement_id",t),n.searchParams.set("api_secret",r);const i=await fetch(n.toString(),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)});if(!i.ok)throw new Error(`HTTP error status: ${i.status}`);E||console.log(`UDS analytics: event "${e}" sent successfully to ${t}.`)}catch(e){console.error(`UDS analytics: error sending event to ${t}:`,e)}}));return Promise.allSettled(a)}};export{b as GA_MEASUREMENT_IDS,S as GA_MEASUREMENT_SECRETS,U as track};
|
package/dist/chunk-3LHMB72F.cjs
CHANGED
@@ -1,2 +1 @@
|
|
1
|
-
"use strict";
|
2
|
-
/*! © 2024 Yahoo, Inc. UDS v0.0.0-development */var l={fontSize:{display1:46,display2:37,display3:33,title1:29,title2:25,title3:21,title4:17,headline1:13,body1:13,label1:12,label2:12,caption1:11,caption2:11,legal1:10},lineHeight:{display1:44,display2:44,display3:44,title1:36,title2:32,title3:28,title4:24,headline1:16,body1:16,label1:16,label2:16,caption1:16,caption2:16,legal1:12}},e={fontSize:{display1:46,display2:38,display3:34,title1:30,title2:26,title3:22,title4:18,headline1:14,body1:14,label1:13,label2:13,caption1:12,caption2:12,legal1:11},lineHeight:{...l.lineHeight,title1:40,headline1:20,body1:20,legal1:16}},t={fontSize:{display1:47,display2:39,display3:35,title1:31,title2:27,title3:23,title4:19,headline1:15,body1:15,label1:13,label2:13,caption1:12,caption2:12,legal1:11},lineHeight:{...e.lineHeight,title2:36,title3:32}},i={fontSize:{...t.fontSize,display1:48,display2:40,display3:36,title1:32,title2:28,title3:24,title4:20,headline1:16,body1:16,label1:14,label2:14},lineHeight:{...t.lineHeight,title2:36,title3:32,headline1:20,body1:20,label1:20,label2:20}},a={fontSize:{display1:50,display2:42,display3:38,title1:34,title2:30,title3:26,title4:22,headline1:18,body1:16,label1:16,label2:16,caption1:14,caption2:14,legal1:13},lineHeight:{...i.lineHeight,title1:44,headline1:24,body1:24,caption1:20,caption2:20}},n={fontSize:{display1:52,display2:44,display3:40,title1:36,title2:32,title3:28,title4:26,headline1:20,body1:20,label1:18,label2:18,caption1:16,caption2:16,legal1:15},lineHeight:{...a.lineHeight,title2:40,title3:36,headline1:28,body1:28,label1:24,label2:24,legal1:20}},o={fontSize:{display1:54,display2:46,display3:42,title1:38,title2:34,title3:30,title4:28,headline1:22,body1:22,label1:20,label2:20,caption1:18,caption2:18,legal1:17},lineHeight:{...n.lineHeight,title1:48,title2:44,title4:32,label1:28,label2:28,caption1:24,caption2:24}};exports.entries=function(l){return Object.entries(l)},exports.fontFamily={display1:"sans",display2:"sans",display3:"sans",title1:"sans",title2:"sans",title3:"sans",title4:"sans",headline1:"sans",body1:"sans",label1:"sans",label2:"sans",caption1:"sans",caption2:"sans",legal1:"sans"},exports.fontWeight={display1:"black",display2:"extrabold",display3:"extrabold",title1:"bold",title2:"bold",title3:"bold",title4:"bold",headline1:"semibold",body1:"regular",label1:"semibold",label2:"regular",caption1:"semibold",caption2:"regular",legal1:"semibold"},exports.fontWeightMap={thin:"100",extralight:"200",light:"300",regular:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},exports.large=i,exports.mapValues=function(l,e){return Object.keys(l).reduce(((t,i,a)=>(t[i]=e(l[i],i,a),t)),{})},exports.medium=t,exports.small=e,exports.textTransform={display1:"uppercase",display2:"none",display3:"none",title1:"none",title2:"none",title3:"none",title4:"none",headline1:"none",body1:"none",label1:"none",label2:"none",caption1:"none",caption2:"none",legal1:"none"},exports.xLarge=a,exports.xSmall=l,exports.xxLarge=n,exports.xxxLarge=o;
|
1
|
+
"use strict";/*! © 2024 Yahoo, Inc. UDS v0.0.0-development */var l={fontSize:{display1:46,display2:37,display3:33,title1:29,title2:25,title3:21,title4:17,headline1:13,body1:13,label1:12,label2:12,caption1:11,caption2:11,legal1:10},lineHeight:{display1:44,display2:44,display3:44,title1:36,title2:32,title3:28,title4:24,headline1:16,body1:16,label1:16,label2:16,caption1:16,caption2:16,legal1:12}},e={fontSize:{display1:46,display2:38,display3:34,title1:30,title2:26,title3:22,title4:18,headline1:14,body1:14,label1:13,label2:13,caption1:12,caption2:12,legal1:11},lineHeight:{...l.lineHeight,title1:40,headline1:20,body1:20,legal1:16}},t={fontSize:{display1:47,display2:39,display3:35,title1:31,title2:27,title3:23,title4:19,headline1:15,body1:15,label1:13,label2:13,caption1:12,caption2:12,legal1:11},lineHeight:{...e.lineHeight,title2:36,title3:32}},i={fontSize:{...t.fontSize,display1:48,display2:40,display3:36,title1:32,title2:28,title3:24,title4:20,headline1:16,body1:16,label1:14,label2:14},lineHeight:{...t.lineHeight,title2:36,title3:32,headline1:20,body1:20,label1:20,label2:20}},a={fontSize:{display1:50,display2:42,display3:38,title1:34,title2:30,title3:26,title4:22,headline1:18,body1:16,label1:16,label2:16,caption1:14,caption2:14,legal1:13},lineHeight:{...i.lineHeight,title1:44,headline1:24,body1:24,caption1:20,caption2:20}},n={fontSize:{display1:52,display2:44,display3:40,title1:36,title2:32,title3:28,title4:26,headline1:20,body1:20,label1:18,label2:18,caption1:16,caption2:16,legal1:15},lineHeight:{...a.lineHeight,title2:40,title3:36,headline1:28,body1:28,label1:24,label2:24,legal1:20}},o={fontSize:{display1:54,display2:46,display3:42,title1:38,title2:34,title3:30,title4:28,headline1:22,body1:22,label1:20,label2:20,caption1:18,caption2:18,legal1:17},lineHeight:{...n.lineHeight,title1:48,title2:44,title4:32,label1:28,label2:28,caption1:24,caption2:24}};exports.entries=function(l){return Object.entries(l)},exports.fontFamily={display1:"sans",display2:"sans",display3:"sans",title1:"sans",title2:"sans",title3:"sans",title4:"sans",headline1:"sans",body1:"sans",label1:"sans",label2:"sans",caption1:"sans",caption2:"sans",legal1:"sans"},exports.fontWeight={display1:"black",display2:"extrabold",display3:"extrabold",title1:"bold",title2:"bold",title3:"bold",title4:"bold",headline1:"semibold",body1:"regular",label1:"semibold",label2:"regular",caption1:"semibold",caption2:"regular",legal1:"semibold"},exports.fontWeightMap={thin:"100",extralight:"200",light:"300",regular:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},exports.large=i,exports.mapValues=function(l,e){return Object.keys(l).reduce(((t,i,a)=>(t[i]=e(l[i],i,a),t)),{})},exports.medium=t,exports.small=e,exports.textTransform={display1:"uppercase",display2:"none",display3:"none",title1:"none",title2:"none",title3:"none",title4:"none",headline1:"none",body1:"none",label1:"none",label2:"none",caption1:"none",caption2:"none",legal1:"none"},exports.xLarge=a,exports.xSmall=l,exports.xxLarge=n,exports.xxxLarge=o;
|
package/dist/chunk-AWEUIM22.cjs
CHANGED
@@ -1,3 +1 @@
|
|
1
|
-
"use strict";var t=require("./chunk-3LHMB72F.cjs"),r=require("./chunk-J6D4HCFT.cjs");
|
2
|
-
/*! © 2024 Yahoo, Inc. UDS v0.0.0-development */
|
3
|
-
function e(e){const{palette:o,spectrum:n}=e,i={},a={spectrum:{},palette:{}};for(const[e,o]of t.entries(n))for(const[n,s]of t.entries(o)){const t=`${e}-${n}`,o=`--${r.SPECTRUM_COLOR_PREFIX}-${t}`;a.spectrum[e]||(a.spectrum[e]={}),a.spectrum[e][n]=`rgb(var(${o}))`,i[o]=s}return t.entries(o).forEach((([t,e])=>{for(const[o,{hue:n,step:s,opacity:c}]of Object.entries(e)){t in a.palette||(a.palette[t]={});const e=`--${r.UDS_PREFIX}-${t}-color-${o}`;i[e]=`var(--${r.SPECTRUM_COLOR_PREFIX}-${n}-${s})`,a.palette[t][o]=c?`rgb(var(${e}) / ${c})`:`rgb(var(${e}))`}})),{_vars:i,_raw:e,tailwindConfig:a}}function o(e){const o={},n={};for(const[i,a="regular"]of t.entries(e)){const e=`--${r.FONT_WEIGHT_PREFIX}-${i}`,s="number"==typeof a?`${a}`:t.fontWeightMap[a];o[e]=s,n[i]=`var(${e})`}return{_vars:o,_raw:e,tailwindConfig:{...t.fontWeightMap,...n}}}function n(r,e,o){const n={},i={};for(const[a,s]of t.entries(e)){const t=`--${r}-${a}`,e=o?o(s):s;n[t]=e,i[a]=`var(${t})`}return{_vars:n,_raw:e,tailwindConfig:i}}function i(r,e){if(!e)return{_vars:{},_raw:{},tailwindConfig:{}};const o={},n={};for(const[i,a]of t.entries(e)){const t=`--${r}-${i}`,e=`${a}px`;o[t]=e,n[i]=`var(${t})`}return{_vars:o,_raw:e,tailwindConfig:n}}exports.parseTokens=function(a){const{colorMode:s,scaleMode:c}=a;return{...a,colorMode:{light:e(s.light),dark:e(s.dark)},scaleMode:t.mapValues(c,(({borderRadius:t,borderWidth:e,fontSize:a,lineHeight:s,fontFamily:c,fontWeight:f,textTransform:_,avatarSizes:u,iconSizes:R})=>({fontFamily:n(r.FONT_FAMILY_PREFIX,c,(t=>`var(--${r.FONT_FAMILY_PREFIX}-${t})`)),fontSize:i(r.FONT_SIZE_PREFIX,a),fontWeight:o(f),lineHeight:i(r.LINE_HEIGHT_PREFIX,s),textTransform:n(r.TEXT_TRANSFORM_PREFIX,_),borderRadius:i(r.BORDER_RADIUS_PREFIX,t),borderWidth:i(r.BORDER_WIDTH_PREFIX,e),avatarSizes:i(r.AVATAR_SIZE_PREFIX,u),iconSizes:i(r.ICON_SIZE_PREFIX,R)})))}};
|
1
|
+
"use strict";var t=require("./chunk-3LHMB72F.cjs"),r=require("./chunk-J6D4HCFT.cjs");/*! © 2024 Yahoo, Inc. UDS v0.0.0-development */function e(e){const{palette:o,spectrum:n}=e,i={},a={spectrum:{},palette:{}};for(const[e,o]of t.entries(n))for(const[n,s]of t.entries(o)){const t=`${e}-${n}`,o=`--${r.SPECTRUM_COLOR_PREFIX}-${t}`;a.spectrum[e]||(a.spectrum[e]={}),a.spectrum[e][n]=`rgb(var(${o}))`,i[o]=s}return t.entries(o).forEach((([t,e])=>{for(const[o,{hue:n,step:s,opacity:c}]of Object.entries(e)){t in a.palette||(a.palette[t]={});const e=`--${r.UDS_PREFIX}-${t}-color-${o}`;i[e]=`var(--${r.SPECTRUM_COLOR_PREFIX}-${n}-${s})`,a.palette[t][o]=c?`rgb(var(${e}) / ${c})`:`rgb(var(${e}))`}})),{_vars:i,_raw:e,tailwindConfig:a}}function o(e){const o={},n={};for(const[i,a="regular"]of t.entries(e)){const e=`--${r.FONT_WEIGHT_PREFIX}-${i}`,s="number"==typeof a?`${a}`:t.fontWeightMap[a];o[e]=s,n[i]=`var(${e})`}return{_vars:o,_raw:e,tailwindConfig:{...t.fontWeightMap,...n}}}function n(r,e,o){const n={},i={};for(const[a,s]of t.entries(e)){const t=`--${r}-${a}`,e=o?o(s):s;n[t]=e,i[a]=`var(${t})`}return{_vars:n,_raw:e,tailwindConfig:i}}function i(r,e){if(!e)return{_vars:{},_raw:{},tailwindConfig:{}};const o={},n={};for(const[i,a]of t.entries(e)){const t=`--${r}-${i}`,e=`${a}px`;o[t]=e,n[i]=`var(${t})`}return{_vars:o,_raw:e,tailwindConfig:n}}exports.parseTokens=function(a){const{colorMode:s,scaleMode:c}=a;return{...a,colorMode:{light:e(s.light),dark:e(s.dark)},scaleMode:t.mapValues(c,(({borderRadius:t,borderWidth:e,fontSize:a,lineHeight:s,fontFamily:c,fontWeight:f,textTransform:_,avatarSizes:u,iconSizes:R})=>({fontFamily:n(r.FONT_FAMILY_PREFIX,c,(t=>`var(--${r.FONT_FAMILY_PREFIX}-${t})`)),fontSize:i(r.FONT_SIZE_PREFIX,a),fontWeight:o(f),lineHeight:i(r.LINE_HEIGHT_PREFIX,s),textTransform:n(r.TEXT_TRANSFORM_PREFIX,_),borderRadius:i(r.BORDER_RADIUS_PREFIX,t),borderWidth:i(r.BORDER_WIDTH_PREFIX,e),avatarSizes:i(r.AVATAR_SIZE_PREFIX,u),iconSizes:i(r.ICON_SIZE_PREFIX,R)})))}};
|
@@ -0,0 +1,2 @@
|
|
1
|
+
import{normalIconSizes as r}from"./chunk-YRYDHL65.js";import{variants as t}from"./chunk-RGE634O5.js";import{lineColors as n,borderWidths as e,borderRadii as o,foregroundColors as s,spectrumColors as c,backgroundColors as i,textVariants as l}from"@yahoo/uds/fixtures";import{getFeatureFlags as a}from"@yahoo/uds/flags";import u from"clsx";import f from"imurmurhash";import{extendTailwindMerge as m}from"tailwind-merge";import{forwardRef as d,Children as p,isValidElement as h,cloneElement as y}from"react";import{jsx as b}from"react/jsx-runtime";/*! © 2024 Yahoo, Inc. UDS v0.0.0-development */
|
2
|
+
function g(r){return"boolean"==typeof r?`${r}`:0===r?"0":r}function v(r){const t=Object.create(null),n=Object.keys(r);for(let e=0,o=n.length;e<o;e++){const o=n[e];void 0!==r[o]&&(t[o]=r[o])}return t}var x=m({extend:{theme:{borderColor:n,borderWidth:e,borderRadius:o}},override:{classGroups:{"text-color":[{text:[...s,...c]}],"bg-color":[{bg:i}],"font-family":[{font:["icons",...l]}],leading:[{leading:l}]},conflictingClassGroups:{}}}),j=(...r)=>{const t=u(r);return x(t)},w=r=>t=>{if(!r?.variants)return j(r?.base,t?.className);const{variants:n,defaultVariants:e}=r,o=Object.keys(n).map((r=>{const o=t?.[r],s=e?.[r],c=g(o)||g(s);return n[r][c]})),s={...e,...t&&v(t)},c=r?.compoundVariants?.reduce(((r,{className:t,...n})=>Object.entries(n).every((([r,t])=>s[r]===t))?j(r,t):r),"");return j(r?.base,o,c,t?.className)},N=w({variants:t}),O=new Map,k=r=>{const{useGetStylesCache:t}=a();if(t){const t=function(r){const t=Object.create(null),n=Object.keys(r).sort();for(let e=0,o=n.length;e<o;e++){const o=n[e];t[o]=r[o]}return t}(v(r)),n=(new f).hash(JSON.stringify(t)).result();if(O.has(n))return O.get(n);const e=N(t);return O.set(n,e),e}return N(r)},C=d((function({name:t,size:n="md",variant:e="outline",color:o="primary",className:s,...c},i){const l=k({color:o,flex:"none",className:s}),a=r[n];return b("svg",{ref:i,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:`0 0 ${a} ${a}`,"aria-hidden":"true",focusable:"false",className:l,...c,children:b(t,{size:n,variant:e})})}));function G(...r){return t=>r.forEach((r=>function(r,t){"function"==typeof r?r(t):null!=r&&(r.current=t)}(r,t)))}function S(){const r=d(((r,n)=>{const{children:o,...s}=r,c=p.toArray(o),i=c.find(e);if(i){const r=i.props.children,e=c.map((t=>t===i?p.count(r)>1?p.only(null):h(r)?r.props.children:null:t));return b(t,{...s,ref:n,children:h(r)?y(r,void 0,e):null})}return b(t,{...s,ref:n,children:o})}));r.displayName="Slot";const t=d(((r,t)=>{const{children:n,...e}=r;return h(n)?y(n,{...o(e,n.props),ref:t?G(t,n.ref):n.ref}):p.count(n)>1?p.only(null):null}));t.displayName="SlotClone";const n=({children:r})=>r;function e(r){return h(r)&&r.type===n}function o(r,t){const n={...t};for(const e in t){const o=r[e],s=t[e];/^on[A-Z]/.test(e)?o&&s?n[e]=(...r)=>{s(...r),o(...r)}:o&&(n[e]=o):"style"===e&&(n[e]={...o,...s})}return{...r,...n}}return r}export{C as Icon,S as createSlot,w as cva,j as cx,k as getStyles};
|
package/dist/chunk-FRZFCKD2.js
CHANGED
@@ -1,3 +1,2 @@
|
|
1
|
-
import{fromEntries as r,FONT_DECLARATIONS_MAP as o}from"./chunk-YRYDHL65.js";import{entries as a}from"./chunk-BEYSF2MO.js";import{FONT_FAMILY_PREFIX as e}from"./chunk-33B23P5G.js";import n from"tailwindcss/plugin"
|
2
|
-
/*! © 2024 Yahoo, Inc. UDS v0.0.0-development */
|
1
|
+
import{fromEntries as r,FONT_DECLARATIONS_MAP as o}from"./chunk-YRYDHL65.js";import{entries as a}from"./chunk-BEYSF2MO.js";import{FONT_FAMILY_PREFIX as e}from"./chunk-33B23P5G.js";import n from"tailwindcss/plugin";/*! © 2024 Yahoo, Inc. UDS v0.0.0-development */
|
3
2
|
function t(r,a){for(const e of r){const{declarations:r}=o[e];for(const o of r)a({"@font-face":o})}}var s=n.withOptions((function({fontIds:r}){return function({addBase:o}){t(r,o)}}));function i(r){return{light:{colorScheme:"light",...r.colorMode.light._vars},dark:{colorScheme:"dark",...r.colorMode.dark._vars}}}function c(r){return r.flatMap((r=>{const{declarations:a}=o[r];return a.map((r=>r))}))}function l(r){return`"${r}"`}function f(n){return r(a(n).map((([r,a])=>{const n=`--${e}-${r}`,t=o[a];return[n,[t.declarations[0].fontFamily,...t.fallback].map(l).join(", ")]})))}function d(r){return{...r.borderRadius._vars,...r.borderWidth._vars,...r.avatarSizes._vars,...r.iconSizes._vars,...r.fontFamily._vars,...r.fontSize._vars,...r.fontWeight._vars,...r.lineHeight._vars,...r.textTransform._vars}}function u(r){return{xSmall:d(r.scaleMode.xSmall),small:d(r.scaleMode.small),medium:d(r.scaleMode.medium),large:d(r.scaleMode.large),xLarge:d(r.scaleMode.xLarge),xxLarge:d(r.scaleMode.xxLarge),xxxLarge:d(r.scaleMode.xxxLarge)}}export{t as addFontFaceDeclarations,s as addFontsPlugin,i as getColorModeStyles,c as getFontFaceDeclarations,f as getFontStyles,u as getScaleModeStyles};
|
package/dist/chunk-J6D4HCFT.cjs
CHANGED
@@ -1,2 +1 @@
|
|
1
|
-
"use strict";
|
2
|
-
/*! © 2024 Yahoo, Inc. UDS v0.0.0-development */var o="uds",e=`${o}-avatar-size`,t=`${o}-border-radius`,r=`${o}-border-width`,s=`${o}-font`,_=`${o}-font-size`,E=`${o}-font-weight`,n=`${o}-icon-size`,d=`${o}-line-height`,A=`${o}-motion`,i=`${o}-spectrum-color`,S=`${o}-text-transform`,a=`${o}-color-mode-dark`,l=`${o}-color-mode-light`,L=`${o}-scale-mode-xsmall`,$=`${o}-scale-mode-small`,c=`${o}-scale-mode-medium`,p=`${o}-scale-mode-large`,x=`${o}-scale-mode-xlarge`,b=`${o}-scale-mode-xxlarge`,R=`${o}-scale-mode-xxxlarge`,M=l,O=p,C={borderRadius:`--${o}-button-border-radius`,borderWidth:`--${o}-button-border-width`,color:`--${o}-button-color`,backgroundColor:`--${o}-button-background-color`,borderColor:`--${o}-button-border-color`,padding:`--${o}-button-padding`,columnGap:`--${o}-button-gap`,fontFamily:`--${o}-button-font`,fontWeight:`--${o}-button-font-weight`,fontSize:`--${o}-button-font-size`,lineHeight:`--${o}-button-line-height`,textTransform:`--${o}-button-text-transform`,iconSize:`--${o}-button-icon-size`,effects:{scale:{rest:`--${o}-button-effects-scale--rest`,hover:`--${o}-button-effects-scale--hover`,pressed:`--${o}-button-effects-scale--pressed`}}},u={padding:`--${o}-icon-button-padding`,iconSize:`--${o}-icon-button-icon-size`};exports.AVATAR_SIZE_PREFIX=e,exports.BORDER_RADIUS_PREFIX=t,exports.BORDER_WIDTH_PREFIX=r,exports.BUTTON_CSS_VAR_MAP=C,exports.DARK_COLOR_MODE_CLASSNAME=a,exports.DEFAULT_COLOR_MODE_CLASSNAME=M,exports.DEFAULT_SCALE_MODE_CLASSNAME=O,exports.FONT_FAMILY_PREFIX=s,exports.FONT_SIZE_PREFIX=_,exports.FONT_WEIGHT_PREFIX=E,exports.ICON_BUTTON_CSS_VAR_MAP=u,exports.ICON_SIZE_PREFIX=n,exports.LARGE_SCALE_MODE_CLASSNAME=p,exports.LIGHT_COLOR_MODE_CLASSNAME=l,exports.LINE_HEIGHT_PREFIX=d,exports.MEDIUM_SCALE_MODE_CLASSNAME=c,exports.MOTION_PREFIX=A,exports.PSEUDO_STYLE_SELECTOR_MAP={hover:":hover:not([disabled])",pressed:":active:not([disabled])",disabled:":disabled",focused:":focus-visible",notDisabled:":not(:disabled)"},exports.SMALL_SCALE_MODE_CLASSNAME=$,exports.SPECTRUM_COLOR_PREFIX=i,exports.TEXT_TRANSFORM_PREFIX=S,exports.UDS_PREFIX=o,exports.XLARGE_SCALE_MODE_CLASSNAME=x,exports.XSMALL_SCALE_MODE_CLASSNAME=L,exports.XXLARGE_SCALE_MODE_CLASSNAME=b,exports.XXXLARGE_SCALE_MODE_CLASSNAME=R;
|
1
|
+
"use strict";/*! © 2024 Yahoo, Inc. UDS v0.0.0-development */var o="uds",e=`${o}-avatar-size`,t=`${o}-border-radius`,r=`${o}-border-width`,s=`${o}-font`,_=`${o}-font-size`,E=`${o}-font-weight`,n=`${o}-icon-size`,d=`${o}-line-height`,A=`${o}-motion`,i=`${o}-spectrum-color`,S=`${o}-text-transform`,a=`${o}-color-mode-dark`,l=`${o}-color-mode-light`,L=`${o}-scale-mode-xsmall`,$=`${o}-scale-mode-small`,c=`${o}-scale-mode-medium`,p=`${o}-scale-mode-large`,x=`${o}-scale-mode-xlarge`,b=`${o}-scale-mode-xxlarge`,R=`${o}-scale-mode-xxxlarge`,M=l,O=p,C={borderRadius:`--${o}-button-border-radius`,borderWidth:`--${o}-button-border-width`,color:`--${o}-button-color`,backgroundColor:`--${o}-button-background-color`,borderColor:`--${o}-button-border-color`,padding:`--${o}-button-padding`,columnGap:`--${o}-button-gap`,fontFamily:`--${o}-button-font`,fontWeight:`--${o}-button-font-weight`,fontSize:`--${o}-button-font-size`,lineHeight:`--${o}-button-line-height`,textTransform:`--${o}-button-text-transform`,iconSize:`--${o}-button-icon-size`,effects:{scale:{rest:`--${o}-button-effects-scale--rest`,hover:`--${o}-button-effects-scale--hover`,pressed:`--${o}-button-effects-scale--pressed`}}},u={padding:`--${o}-icon-button-padding`,iconSize:`--${o}-icon-button-icon-size`};exports.AVATAR_SIZE_PREFIX=e,exports.BORDER_RADIUS_PREFIX=t,exports.BORDER_WIDTH_PREFIX=r,exports.BUTTON_CSS_VAR_MAP=C,exports.DARK_COLOR_MODE_CLASSNAME=a,exports.DEFAULT_COLOR_MODE_CLASSNAME=M,exports.DEFAULT_SCALE_MODE_CLASSNAME=O,exports.FONT_FAMILY_PREFIX=s,exports.FONT_SIZE_PREFIX=_,exports.FONT_WEIGHT_PREFIX=E,exports.ICON_BUTTON_CSS_VAR_MAP=u,exports.ICON_SIZE_PREFIX=n,exports.LARGE_SCALE_MODE_CLASSNAME=p,exports.LIGHT_COLOR_MODE_CLASSNAME=l,exports.LINE_HEIGHT_PREFIX=d,exports.MEDIUM_SCALE_MODE_CLASSNAME=c,exports.MOTION_PREFIX=A,exports.PSEUDO_STYLE_SELECTOR_MAP={hover:":hover:not([disabled])",pressed:":active:not([disabled])",disabled:":disabled",focused:":focus-visible",notDisabled:":not(:disabled)"},exports.SMALL_SCALE_MODE_CLASSNAME=$,exports.SPECTRUM_COLOR_PREFIX=i,exports.TEXT_TRANSFORM_PREFIX=S,exports.UDS_PREFIX=o,exports.XLARGE_SCALE_MODE_CLASSNAME=x,exports.XSMALL_SCALE_MODE_CLASSNAME=L,exports.XXLARGE_SCALE_MODE_CLASSNAME=b,exports.XXXLARGE_SCALE_MODE_CLASSNAME=R;
|
package/dist/chunk-LNFRMD6G.cjs
CHANGED
@@ -1,2 +1 @@
|
|
1
|
-
"use strict";var e=require("./chunk-J6D4HCFT.cjs"),t={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:{sans:"font-sans","sans-alt":"font-sans-alt",serif:"font-serif","serif-alt":"font-serif-alt",mono:"font-mono",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-sm",sm:"rounded",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:e.DARK_COLOR_MODE_CLASSNAME,light:e.LIGHT_COLOR_MODE_CLASSNAME},scaleMode:{xSmall:e.XSMALL_SCALE_MODE_CLASSNAME,small:e.SMALL_SCALE_MODE_CLASSNAME,medium:e.MEDIUM_SCALE_MODE_CLASSNAME,large:e.LARGE_SCALE_MODE_CLASSNAME,xLarge:e.XLARGE_SCALE_MODE_CLASSNAME,xxxLarge:e.XXXLARGE_SCALE_MODE_CLASSNAME,xxLarge:e.XXLARGE_SCALE_MODE_CLASSNAME},buttonPalette:{accent:"uds-button-accent",brand:"uds-button-brand",alert:"uds-button-alert",positive:"uds-button-positive",warning:"uds-button-warning"},buttonVariant:{primary:"uds-button-primary",secondary:"uds-button-secondary",tertiary:"uds-button-tertiary"},buttonSize:{sm:"uds-button-sm",md:"uds-button-md",lg:"uds-button-lg"},iconButtonSize:{xs:"uds-icon-button-xs",sm:"uds-icon-button-sm",md:"uds-icon-button-md",lg:"uds-icon-button-lg",xl:"uds-icon-button-xl"}};
|
2
|
-
/*! © 2024 Yahoo, Inc. UDS v0.0.0-development */exports.variants=t;
|
1
|
+
"use strict";var e=require("./chunk-J6D4HCFT.cjs"),t={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:{sans:"font-sans","sans-alt":"font-sans-alt",serif:"font-serif","serif-alt":"font-serif-alt",mono:"font-mono",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-sm",sm:"rounded",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:e.DARK_COLOR_MODE_CLASSNAME,light:e.LIGHT_COLOR_MODE_CLASSNAME},scaleMode:{xSmall:e.XSMALL_SCALE_MODE_CLASSNAME,small:e.SMALL_SCALE_MODE_CLASSNAME,medium:e.MEDIUM_SCALE_MODE_CLASSNAME,large:e.LARGE_SCALE_MODE_CLASSNAME,xLarge:e.XLARGE_SCALE_MODE_CLASSNAME,xxxLarge:e.XXXLARGE_SCALE_MODE_CLASSNAME,xxLarge:e.XXLARGE_SCALE_MODE_CLASSNAME},buttonPalette:{accent:"uds-button-accent",brand:"uds-button-brand",alert:"uds-button-alert",positive:"uds-button-positive",warning:"uds-button-warning"},buttonVariant:{primary:"uds-button-primary",secondary:"uds-button-secondary",tertiary:"uds-button-tertiary"},buttonSize:{sm:"uds-button-sm",md:"uds-button-md",lg:"uds-button-lg"},iconButtonSize:{xs:"uds-icon-button-xs",sm:"uds-icon-button-sm",md:"uds-icon-button-md",lg:"uds-icon-button-lg",xl:"uds-icon-button-xl"}};/*! © 2024 Yahoo, Inc. UDS v0.0.0-development */exports.variants=t;
|
package/dist/chunk-LPM6JKIW.js
CHANGED
@@ -1,3 +1,2 @@
|
|
1
|
-
import{mapValues as t,entries as r,fontWeightMap as o}from"./chunk-BEYSF2MO.js";import{SPECTRUM_COLOR_PREFIX as n,FONT_FAMILY_PREFIX as e,FONT_SIZE_PREFIX as i,LINE_HEIGHT_PREFIX as a,TEXT_TRANSFORM_PREFIX as s,BORDER_RADIUS_PREFIX as c,BORDER_WIDTH_PREFIX as f,AVATAR_SIZE_PREFIX as $,ICON_SIZE_PREFIX as u,UDS_PREFIX as l,FONT_WEIGHT_PREFIX as d}from"./chunk-33B23P5G.js"
|
2
|
-
/*! © 2024 Yahoo, Inc. UDS v0.0.0-development */
|
1
|
+
import{mapValues as t,entries as r,fontWeightMap as o}from"./chunk-BEYSF2MO.js";import{SPECTRUM_COLOR_PREFIX as n,FONT_FAMILY_PREFIX as e,FONT_SIZE_PREFIX as i,LINE_HEIGHT_PREFIX as a,TEXT_TRANSFORM_PREFIX as s,BORDER_RADIUS_PREFIX as c,BORDER_WIDTH_PREFIX as f,AVATAR_SIZE_PREFIX as $,ICON_SIZE_PREFIX as u,UDS_PREFIX as l,FONT_WEIGHT_PREFIX as d}from"./chunk-33B23P5G.js";/*! © 2024 Yahoo, Inc. UDS v0.0.0-development */
|
3
2
|
function p(t){const{palette:o,spectrum:e}=t,i={},a={spectrum:{},palette:{}};for(const[t,o]of r(e))for(const[e,s]of r(o)){const r=`--${n}-${`${t}-${e}`}`;a.spectrum[t]||(a.spectrum[t]={}),a.spectrum[t][e]=`rgb(var(${r}))`,i[r]=s}return r(o).forEach((([t,r])=>{for(const[o,{hue:e,step:s,opacity:c}]of Object.entries(r)){t in a.palette||(a.palette[t]={});const r=`--${l}-${t}-color-${o}`;i[r]=`var(--${n}-${e}-${s})`,a.palette[t][o]=c?`rgb(var(${r}) / ${c})`:`rgb(var(${r}))`}})),{_vars:i,_raw:t,tailwindConfig:a}}function g(t){const n={},e={};for(const[i,a="regular"]of r(t)){const t=`--${d}-${i}`,r="number"==typeof a?`${a}`:o[a];n[t]=r,e[i]=`var(${t})`}return{_vars:n,_raw:t,tailwindConfig:{...o,...e}}}function v(t,o,n){const e={},i={};for(const[a,s]of r(o)){const r=`--${t}-${a}`,o=n?n(s):s;e[r]=o,i[a]=`var(${r})`}return{_vars:e,_raw:o,tailwindConfig:i}}function m(t,o){if(!o)return{_vars:{},_raw:{},tailwindConfig:{}};const n={},e={};for(const[i,a]of r(o)){const r=`--${t}-${i}`,o=`${a}px`;n[r]=o,e[i]=`var(${r})`}return{_vars:n,_raw:o,tailwindConfig:e}}function h(r){const{colorMode:o,scaleMode:n}=r;return{...r,colorMode:{light:p(o.light),dark:p(o.dark)},scaleMode:t(n,(({borderRadius:t,borderWidth:r,fontSize:o,lineHeight:n,fontFamily:l,fontWeight:d,textTransform:p,avatarSizes:h,iconSizes:w})=>({fontFamily:v(e,l,(t=>`var(--${e}-${t})`)),fontSize:m(i,o),fontWeight:g(d),lineHeight:m(a,n),textTransform:v(s,p),borderRadius:m(c,t),borderWidth:m(f,r),avatarSizes:m($,h),iconSizes:m(u,w)})))}}export{h as parseTokens};
|
package/dist/chunk-PECN66KD.cjs
CHANGED
@@ -1,3 +1 @@
|
|
1
|
-
"use strict";var r=require("./chunk-WLOEKYUI.cjs"),e=require("./chunk-3LHMB72F.cjs"),t=require("./chunk-J6D4HCFT.cjs"),n=require("@yahoo/uds/fixtures");
|
2
|
-
/*! © 2024 Yahoo, Inc. UDS v0.0.0-development */
|
3
|
-
function o({variant:r,speed:e,control:n}){return`${[`--${t.MOTION_PREFIX}`,r,e,n].join("-")}`}exports.getMotionStyles=function(t){const i=e.entries(t).flatMap((([r,t])=>e.entries(t).flatMap((([e,t])=>n.motionSpringConfigOptions.map((n=>[o({variant:r,speed:e,control:n}),`${t[n]}`]))))));return r.fromEntries(i)},exports.getMotionVar=o;
|
1
|
+
"use strict";var r=require("./chunk-WLOEKYUI.cjs"),e=require("./chunk-3LHMB72F.cjs"),t=require("./chunk-J6D4HCFT.cjs"),n=require("@yahoo/uds/fixtures");/*! © 2024 Yahoo, Inc. UDS v0.0.0-development */function o({variant:r,speed:e,control:n}){return`${[`--${t.MOTION_PREFIX}`,r,e,n].join("-")}`}exports.getMotionStyles=function(t){const i=e.entries(t).flatMap((([r,t])=>e.entries(t).flatMap((([e,t])=>n.motionSpringConfigOptions.map((n=>[o({variant:r,speed:e,control:n}),`${t[n]}`]))))));return r.fromEntries(i)},exports.getMotionVar=o;
|
package/dist/chunk-PSTMMXTR.js
CHANGED
@@ -1,2 +1 @@
|
|
1
|
-
import{fromEntries as o}from"./chunk-YRYDHL65.js";import{entries as r}from"./chunk-BEYSF2MO.js";import{MOTION_PREFIX as t}from"./chunk-33B23P5G.js";import{motionSpringConfigOptions as n}from"@yahoo/uds/fixtures";
|
2
|
-
/*! © 2024 Yahoo, Inc. UDS v0.0.0-development */function a({variant:o,speed:r,control:n}){return`${[`--${t}`,o,r,n].join("-")}`}function i(t){const i=r(t).flatMap((([o,t])=>r(t).flatMap((([r,t])=>n.map((n=>[a({variant:o,speed:r,control:n}),`${t[n]}`]))))));return o(i)}export{i as getMotionStyles,a as getMotionVar};
|
1
|
+
import{fromEntries as o}from"./chunk-YRYDHL65.js";import{entries as r}from"./chunk-BEYSF2MO.js";import{MOTION_PREFIX as t}from"./chunk-33B23P5G.js";import{motionSpringConfigOptions as n}from"@yahoo/uds/fixtures";/*! © 2024 Yahoo, Inc. UDS v0.0.0-development */function a({variant:o,speed:r,control:n}){return`${[`--${t}`,o,r,n].join("-")}`}function i(t){const i=r(t).flatMap((([o,t])=>r(t).flatMap((([r,t])=>n.map((n=>[a({variant:o,speed:r,control:n}),`${t[n]}`]))))));return o(i)}export{i as getMotionStyles,a as getMotionVar};
|
@@ -0,0 +1,2 @@
|
|
1
|
+
"use strict";var e=require("./chunk-WLOEKYUI.cjs"),r=require("./chunk-LNFRMD6G.cjs"),n=require("@yahoo/uds/fixtures"),t=require("@yahoo/uds/flags"),o=require("clsx"),s=require("imurmurhash"),l=require("tailwind-merge"),i=require("react"),a=require("react/jsx-runtime");function c(e){return e&&e.__esModule?e:{default:e}}var u=c(o),d=c(s);/*! © 2024 Yahoo, Inc. UDS v0.0.0-development */
|
2
|
+
function f(e){return"boolean"==typeof e?`${e}`:0===e?"0":e}function h(e){const r=Object.create(null),n=Object.keys(e);for(let t=0,o=n.length;t<o;t++){const o=n[t];void 0!==e[o]&&(r[o]=e[o])}return r}var m=l.extendTailwindMerge({extend:{theme:{borderColor:n.lineColors,borderWidth:n.borderWidths,borderRadius:n.borderRadii}},override:{classGroups:{"text-color":[{text:[...n.foregroundColors,...n.spectrumColors]}],"bg-color":[{bg:n.backgroundColors}],"font-family":[{font:["icons",...n.textVariants]}],leading:[{leading:n.textVariants}]},conflictingClassGroups:{}}}),p=(...e)=>{const r=u.default(e);return m(r)},x=e=>r=>{if(!e?.variants)return p(e?.base,r?.className);const{variants:n,defaultVariants:t}=e,o=Object.keys(n).map((e=>{const o=r?.[e],s=t?.[e],l=f(o)||f(s);return n[e][l]})),s={...t,...r&&h(r)},l=e?.compoundVariants?.reduce(((e,{className:r,...n})=>Object.entries(n).every((([e,r])=>s[e]===r))?p(e,r):e),"");return p(e?.base,o,l,r?.className)},g=x({variants:r.variants}),y=new Map,b=e=>{const{useGetStylesCache:r}=t.getFeatureFlags();if(r){const r=function(e){const r=Object.create(null),n=Object.keys(e).sort();for(let t=0,o=n.length;t<o;t++){const o=n[t];r[o]=e[o]}return r}(h(e)),n=(new d.default).hash(JSON.stringify(r)).result();if(y.has(n))return y.get(n);const t=g(r);return y.set(n,t),t}return g(e)},v=i.forwardRef((function({name:r,size:n="md",variant:t="outline",color:o="primary",className:s,...l},i){const c=b({color:o,flex:"none",className:s}),u=e.normalIconSizes[n];return a.jsx("svg",{ref:i,xmlns:"http://www.w3.org/2000/svg",width:u,height:u,viewBox:`0 0 ${u} ${u}`,"aria-hidden":"true",focusable:"false",className:c,...l,children:a.jsx(r,{size:n,variant:t})})}));function j(...e){return r=>e.forEach((e=>function(e,r){"function"==typeof e?e(r):null!=e&&(e.current=r)}(e,r)))}exports.Icon=v,exports.createSlot=function(){const e=i.forwardRef(((e,n)=>{const{children:o,...s}=e,l=i.Children.toArray(o),c=l.find(t);if(c){const e=c.props.children,t=l.map((r=>r===c?i.Children.count(e)>1?i.Children.only(null):i.isValidElement(e)?e.props.children:null:r));return a.jsx(r,{...s,ref:n,children:i.isValidElement(e)?i.cloneElement(e,void 0,t):null})}return a.jsx(r,{...s,ref:n,children:o})}));e.displayName="Slot";const r=i.forwardRef(((e,r)=>{const{children:n,...t}=e;return i.isValidElement(n)?i.cloneElement(n,{...o(t,n.props),ref:r?j(r,n.ref):n.ref}):i.Children.count(n)>1?i.Children.only(null):null}));r.displayName="SlotClone";const n=({children:e})=>e;function t(e){return i.isValidElement(e)&&e.type===n}function o(e,r){const n={...r};for(const t in r){const o=e[t],s=r[t];/^on[A-Z]/.test(t)?o&&s?n[t]=(...e)=>{s(...e),o(...e)}:o&&(n[t]=o):"style"===t&&(n[t]={...o,...s})}return{...e,...n}}return e},exports.cva=x,exports.cx=p,exports.getStyles=b;
|
package/dist/chunk-RGE634O5.js
CHANGED
@@ -1,3 +1,2 @@
|
|
1
|
-
import{DARK_COLOR_MODE_CLASSNAME as e,LIGHT_COLOR_MODE_CLASSNAME as t,XSMALL_SCALE_MODE_CLASSNAME as r,SMALL_SCALE_MODE_CLASSNAME as o,MEDIUM_SCALE_MODE_CLASSNAME as a,LARGE_SCALE_MODE_CLASSNAME as n,XLARGE_SCALE_MODE_CLASSNAME as p,XXXLARGE_SCALE_MODE_CLASSNAME as l,XXLARGE_SCALE_MODE_CLASSNAME as i}from"./chunk-33B23P5G.js"
|
2
|
-
/*! © 2024 Yahoo, Inc. UDS v0.0.0-development */
|
1
|
+
import{DARK_COLOR_MODE_CLASSNAME as e,LIGHT_COLOR_MODE_CLASSNAME as t,XSMALL_SCALE_MODE_CLASSNAME as r,SMALL_SCALE_MODE_CLASSNAME as o,MEDIUM_SCALE_MODE_CLASSNAME as a,LARGE_SCALE_MODE_CLASSNAME as n,XLARGE_SCALE_MODE_CLASSNAME as p,XXXLARGE_SCALE_MODE_CLASSNAME as l,XXLARGE_SCALE_MODE_CLASSNAME as i}from"./chunk-33B23P5G.js";/*! © 2024 Yahoo, Inc. UDS v0.0.0-development */
|
3
2
|
var d={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:{sans:"font-sans","sans-alt":"font-sans-alt",serif:"font-serif","serif-alt":"font-serif-alt",mono:"font-mono",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-sm",sm:"rounded",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:e,light:t},scaleMode:{xSmall:r,small:o,medium:a,large:n,xLarge:p,xxxLarge:l,xxLarge:i},buttonPalette:{accent:"uds-button-accent",brand:"uds-button-brand",alert:"uds-button-alert",positive:"uds-button-positive",warning:"uds-button-warning"},buttonVariant:{primary:"uds-button-primary",secondary:"uds-button-secondary",tertiary:"uds-button-tertiary"},buttonSize:{sm:"uds-button-sm",md:"uds-button-md",lg:"uds-button-lg"},iconButtonSize:{xs:"uds-icon-button-xs",sm:"uds-icon-button-sm",md:"uds-icon-button-md",lg:"uds-icon-button-lg",xl:"uds-icon-button-xl"}};export{d as variants};
|
package/dist/chunk-SSMBE7SI.cjs
CHANGED
@@ -1,3 +1,2 @@
|
|
1
|
-
"use strict";var e=require("./chunk-WLOEKYUI.cjs"),r=require("./chunk-3LHMB72F.cjs"),t=require("./chunk-J6D4HCFT.cjs");function a(e){return e&&e.__esModule?e:{default:e}}
|
2
|
-
/*! © 2024 Yahoo, Inc. UDS v0.0.0-development */
|
1
|
+
"use strict";var e=require("./chunk-WLOEKYUI.cjs"),r=require("./chunk-3LHMB72F.cjs"),t=require("./chunk-J6D4HCFT.cjs");function a(e){return e&&e.__esModule?e:{default:e}}/*! © 2024 Yahoo, Inc. UDS v0.0.0-development */
|
3
2
|
function o(r,t){for(const a of r){const{declarations:r}=e.FONT_DECLARATIONS_MAP[a];for(const e of r)t({"@font-face":e})}}var n=a(require("tailwindcss/plugin")).default.withOptions((function({fontIds:e}){return function({addBase:r}){o(e,r)}}));function s(e){return`"${e}"`}function c(e){return{...e.borderRadius._vars,...e.borderWidth._vars,...e.avatarSizes._vars,...e.iconSizes._vars,...e.fontFamily._vars,...e.fontSize._vars,...e.fontWeight._vars,...e.lineHeight._vars,...e.textTransform._vars}}exports.addFontFaceDeclarations=o,exports.addFontsPlugin=n,exports.getColorModeStyles=function(e){return{light:{colorScheme:"light",...e.colorMode.light._vars},dark:{colorScheme:"dark",...e.colorMode.dark._vars}}},exports.getFontFaceDeclarations=function(r){return r.flatMap((r=>{const{declarations:t}=e.FONT_DECLARATIONS_MAP[r];return t.map((e=>e))}))},exports.getFontStyles=function(a){return e.fromEntries(r.entries(a).map((([r,a])=>{const o=`--${t.FONT_FAMILY_PREFIX}-${r}`,n=e.FONT_DECLARATIONS_MAP[a];return[o,[n.declarations[0].fontFamily,...n.fallback].map(s).join(", ")]})))},exports.getScaleModeStyles=function(e){return{xSmall:c(e.scaleMode.xSmall),small:c(e.scaleMode.small),medium:c(e.scaleMode.medium),large:c(e.scaleMode.large),xLarge:c(e.scaleMode.xLarge),xxLarge:c(e.scaleMode.xxLarge),xxxLarge:c(e.scaleMode.xxxLarge)}};
|
package/dist/chunk-VZAZKBYK.cjs
CHANGED
@@ -1,2 +1 @@
|
|
1
|
-
"use strict";
|
2
|
-
/*! © 2024 Yahoo, Inc. UDS v0.0.0-development */var e=(e=>"undefined"!=typeof require?require:"undefined"!=typeof Proxy?new Proxy(e,{get:(e,r)=>("undefined"!=typeof require?require:e)[r]}):e)((function(e){if("undefined"!=typeof require)return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}));exports.__require=e;
|
1
|
+
"use strict";/*! © 2024 Yahoo, Inc. UDS v0.0.0-development */var e=(e=>"undefined"!=typeof require?require:"undefined"!=typeof Proxy?new Proxy(e,{get:(e,r)=>("undefined"!=typeof require?require:e)[r]}):e)((function(e){if("undefined"!=typeof require)return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}));exports.__require=e;
|