@yahoo/uds 3.62.1 → 3.64.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli/FlattenButtonVariant.mock.tsx +17 -0
- package/dist/{Box-BPqozJKV.d.ts → Box--dJZH_rm.d.ts} +1 -1
- package/dist/{Box-CAXnChUr.d.cts → Box-BYHIqBW7.d.cts} +1 -1
- package/dist/{Box-BtGFIN-Y.d.cts → Box-CPuhAyke.d.ts} +1 -1
- package/dist/{Box-DHkDJtKc.d.ts → Box-Z1sx8kY_.d.cts} +1 -1
- package/dist/{Pressable-Dv2u0J8g.d.cts → Pressable-B2MfBeRr.d.cts} +1 -1
- package/dist/{Pressable-DDfuPMmu.d.ts → Pressable-DJ1rXy1y.d.ts} +1 -1
- package/dist/{Pressable-DNTom4uz.d.ts → Pressable-DiHQSTHz.d.ts} +1 -1
- package/dist/{Pressable-h8PFMRAD.d.cts → Pressable-DtzH7hBC.d.cts} +1 -1
- package/dist/{Text-Bc780hS6.d.cts → Text-C3rnosjh.d.ts} +7 -7
- package/dist/{Text-OknYJMzK.d.ts → Text-Dj2Pbxi_.d.cts} +7 -7
- package/dist/{Text-pkInF_RQ.d.ts → Text-MttXuiDO.d.cts} +7 -7
- package/dist/{Text-DqfpRrk9.d.cts → Text-uefIU8bE.d.ts} +7 -7
- package/dist/{VStack-C4UvcxG-.d.ts → VStack-B6GYDqa0.d.ts} +2 -2
- package/dist/{VStack-Bv-I1HBt.d.cts → VStack-BiJs2i59.d.cts} +2 -2
- package/dist/{VStack-DqqmcZ-1.d.ts → VStack-CYpp5Wa0.d.ts} +2 -2
- package/dist/{VStack-BzpyA6pg.d.cts → VStack-DSQShH8m.d.cts} +2 -2
- package/dist/{chunk-DDEQ5ROD.js → chunk-6HBRFJUU.js} +1 -1
- package/dist/chunk-6K6GGQQ2.cjs +1 -0
- package/dist/chunk-6THPHJSQ.cjs +1 -0
- package/dist/{chunk-H4HQHSH3.js → chunk-6VNCVYKB.js} +2 -2
- package/dist/{chunk-A5EJNYIP.cjs → chunk-6WXK2RIZ.cjs} +1 -1
- package/dist/{chunk-UENRZFGM.js → chunk-7ODTLDW2.js} +1 -1
- package/dist/{chunk-MNVPSAPL.js → chunk-7PDRKN2R.js} +1 -1
- package/dist/{chunk-3Y5I44KY.cjs → chunk-7YPLUG7X.cjs} +1 -1
- package/dist/chunk-A2OJLMOY.js +1 -0
- package/dist/chunk-A7OSNZQ4.cjs +1 -0
- package/dist/{chunk-K477DQVL.cjs → chunk-AGCCYYM2.cjs} +1 -1
- package/dist/chunk-AZXEQF7C.js +2 -0
- package/dist/{chunk-3HO7CT7Z.cjs → chunk-BMP5TZVZ.cjs} +1 -1
- package/dist/chunk-BRM6VXBO.cjs +1 -0
- package/dist/{chunk-2R3UAZWG.js → chunk-BXINZTSJ.js} +3 -3
- package/dist/chunk-C2XEOEF3.js +2 -0
- package/dist/{chunk-TRONEN3U.cjs → chunk-C5HXKCKH.cjs} +1 -1
- package/dist/{chunk-5DLZXPAK.cjs → chunk-CGHQHGYY.cjs} +1 -1
- package/dist/{chunk-4FMK26LZ.js → chunk-D7MUW3EG.js} +1 -1
- package/dist/{chunk-UZJNSQCF.js → chunk-DFLTCYEQ.js} +2 -2
- package/dist/{chunk-XLCSJWEJ.js → chunk-DK4BCT4X.js} +1 -1
- package/dist/{chunk-LMPIMLGP.cjs → chunk-E2KVZ3FW.cjs} +1 -1
- package/dist/{chunk-5SAGUHGK.cjs → chunk-EFKAW2BI.cjs} +2 -2
- package/dist/{chunk-MLXIOGCQ.cjs → chunk-EUBXXJNQ.cjs} +1 -1
- package/dist/chunk-EUHS2LRV.js +2 -0
- package/dist/{chunk-PVBZ5YHQ.js → chunk-FEHICJMH.js} +2 -2
- package/dist/{chunk-36WHBOYO.cjs → chunk-IBEJS4QY.cjs} +1 -1
- package/dist/chunk-JY33SU6G.cjs +1 -0
- package/dist/{chunk-UQB36STA.cjs → chunk-JY5DPKJL.cjs} +1 -1
- package/dist/{chunk-74JOPQAN.cjs → chunk-KQYW7REL.cjs} +1 -1
- package/dist/chunk-LGVDORBF.js +2 -0
- package/dist/{chunk-NBRYRYT7.js → chunk-MNKPZNCD.js} +1 -1
- package/dist/{chunk-UXTWTF2X.cjs → chunk-N2X6LD4P.cjs} +1 -1
- package/dist/{chunk-FYZJS6PY.cjs → chunk-O7H45A6H.cjs} +1 -1
- package/dist/chunk-O7UVSJ5U.js +2 -0
- package/dist/chunk-OSIGO5ER.cjs +1 -0
- package/dist/{chunk-KGWI7YBY.cjs → chunk-QCYX4YGV.cjs} +1 -1
- package/dist/chunk-QZDENCIR.cjs +1 -0
- package/dist/chunk-RUVVMG6V.js +2 -0
- package/dist/chunk-SNWFPB5H.cjs +1 -0
- package/dist/chunk-TSFJJXPE.js +2 -0
- package/dist/chunk-VETD7I64.js +1 -0
- package/dist/{chunk-4CSRT7Y4.js → chunk-WEIHOHSB.js} +1 -1
- package/dist/{chunk-YAR3WPVO.js → chunk-WTCFWBEP.js} +1 -1
- package/dist/{chunk-BODZPWTT.js → chunk-XOHE32Q2.js} +1 -1
- package/dist/chunk-XRY2AFCC.js +2 -0
- package/dist/client/Menu.cjs +1 -1
- package/dist/client/Menu.d.cts +4 -4
- package/dist/client/Menu.d.ts +4 -4
- package/dist/client/Menu.js +2 -2
- package/dist/client/index.cjs +1 -1
- package/dist/client/index.d.cts +4 -4
- package/dist/client/index.d.ts +4 -4
- package/dist/client/index.js +1 -1
- package/dist/defaultTokensConfig.cjs +1 -1
- package/dist/defaultTokensConfig.d.cts +7513 -3710
- package/dist/defaultTokensConfig.d.ts +7513 -3710
- package/dist/defaultTokensConfig.js +1 -1
- package/dist/experimental/client/SwitchV2.cjs +2 -1
- package/dist/experimental/client/SwitchV2.d.cts +1 -1
- package/dist/experimental/client/SwitchV2.d.ts +1 -1
- package/dist/experimental/client/SwitchV2.js +1 -1
- package/dist/experimental/client/index.cjs +2 -2
- package/dist/experimental/client/index.js +2 -2
- package/dist/experimental/index.cjs +1 -1
- package/dist/experimental/index.js +1 -1
- package/dist/fixtures.cjs +161 -181
- package/dist/fixtures.d.cts +7 -13
- package/dist/fixtures.d.ts +7 -13
- package/dist/fixtures.js +156 -170
- package/dist/{index-hEma1xw-.d.cts → index-CF87-Wn8.d.ts} +27 -21
- package/dist/{index-CETOayIc.d.cts → index-CyzMnp_C.d.cts} +27 -21
- package/dist/{index-2rGFJ5FX.d.ts → index-Dp0sWo0y.d.ts} +27 -21
- package/dist/{index-DJfunG6F.d.ts → index-M_d5Reyr.d.cts} +27 -21
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +46 -44
- package/dist/index.d.ts +46 -44
- package/dist/index.js +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/tailwind/plugin.cjs +1 -1
- package/dist/tailwind/plugin.d.cts +3 -10
- package/dist/tailwind/plugin.d.ts +3 -10
- package/dist/tailwind/plugin.js +1 -1
- package/dist/tailwind/purger.cjs +1 -1
- package/dist/tailwind/purger.js +1 -1
- package/dist/tailwind/tsMorph.cjs +1 -1
- package/dist/tailwind/tsMorph.js +2 -2
- package/dist/tailwind/utils.cjs +1 -1
- package/dist/tailwind/utils.d.cts +2 -2
- package/dist/tailwind/utils.d.ts +2 -2
- package/dist/tailwind/utils.js +1 -1
- package/dist/tokens/automation/configs.cjs +1 -1
- package/dist/tokens/automation/configs.d.cts +21 -3
- package/dist/tokens/automation/configs.d.ts +21 -3
- package/dist/tokens/automation/configs.js +1 -1
- package/dist/tokens/automation/properties.cjs +1 -1
- package/dist/tokens/automation/properties.d.cts +2 -2
- package/dist/tokens/automation/properties.d.ts +2 -2
- package/dist/tokens/automation/properties.js +1 -1
- package/dist/tokens/index.cjs +1 -1
- package/dist/tokens/index.d.cts +86 -44
- package/dist/tokens/index.d.ts +86 -44
- package/dist/tokens/index.js +1 -1
- package/dist/tokens/parseTokens.cjs +1 -1
- package/dist/tokens/parseTokens.d.cts +1 -1
- package/dist/tokens/parseTokens.d.ts +1 -1
- package/dist/tokens/parseTokens.js +1 -1
- package/dist/{types-BvOFo15W.d.cts → types-fpiurdUk.d.cts} +1 -3
- package/dist/{types-BvOFo15W.d.ts → types-fpiurdUk.d.ts} +1 -3
- package/dist/{types-8Ow4Y7RA.d.cts → universalTokensConfigAuto-4Elh49mo.d.cts} +12863 -9187
- package/dist/{types-8Ow4Y7RA.d.ts → universalTokensConfigAuto-4Elh49mo.d.ts} +12863 -9187
- package/dist/{types-BzoCuKCE.d.cts → universalTokensConfigAuto-DMkgiw7i.d.cts} +12863 -9187
- package/dist/{types-BzoCuKCE.d.ts → universalTokensConfigAuto-DMkgiw7i.d.ts} +12863 -9187
- package/package.json +1 -1
- package/dist/chunk-34ELYHSN.js +0 -2
- package/dist/chunk-3RH3MQJN.js +0 -2
- package/dist/chunk-4UBSZT2O.js +0 -2
- package/dist/chunk-CT6EVSBR.cjs +0 -1
- package/dist/chunk-DHVRF7EV.js +0 -2
- package/dist/chunk-DKCYJNNB.js +0 -1
- package/dist/chunk-IIJ76JTE.js +0 -2
- package/dist/chunk-IL624YNH.cjs +0 -1
- package/dist/chunk-KHJXWDJY.js +0 -2
- package/dist/chunk-MAUK7QR2.js +0 -2
- package/dist/chunk-MIW2I7PH.js +0 -1
- package/dist/chunk-MVEKLQGM.cjs +0 -1
- package/dist/chunk-MWEHOHYJ.js +0 -2
- package/dist/chunk-OQ37WTUR.cjs +0 -1
- package/dist/chunk-SXUCNY2G.cjs +0 -1
- package/dist/chunk-U7C4F57A.cjs +0 -1
- package/dist/chunk-YLFRCCE4.cjs +0 -1
- package/dist/chunk-ZBNHYKKG.cjs +0 -1
package/dist/fixtures.js
CHANGED
|
@@ -1617,6 +1617,110 @@ var shadowColors = [
|
|
|
1617
1617
|
"black",
|
|
1618
1618
|
"current"
|
|
1619
1619
|
];
|
|
1620
|
+
var opacitySteps = [
|
|
1621
|
+
"0",
|
|
1622
|
+
"1",
|
|
1623
|
+
"2",
|
|
1624
|
+
"3",
|
|
1625
|
+
"4",
|
|
1626
|
+
"5",
|
|
1627
|
+
"6",
|
|
1628
|
+
"7",
|
|
1629
|
+
"8",
|
|
1630
|
+
"9",
|
|
1631
|
+
"10",
|
|
1632
|
+
"11",
|
|
1633
|
+
"12",
|
|
1634
|
+
"13",
|
|
1635
|
+
"14",
|
|
1636
|
+
"15",
|
|
1637
|
+
"16",
|
|
1638
|
+
"17",
|
|
1639
|
+
"18",
|
|
1640
|
+
"19",
|
|
1641
|
+
"20",
|
|
1642
|
+
"21",
|
|
1643
|
+
"22",
|
|
1644
|
+
"23",
|
|
1645
|
+
"24",
|
|
1646
|
+
"25",
|
|
1647
|
+
"26",
|
|
1648
|
+
"27",
|
|
1649
|
+
"28",
|
|
1650
|
+
"29",
|
|
1651
|
+
"30",
|
|
1652
|
+
"31",
|
|
1653
|
+
"32",
|
|
1654
|
+
"33",
|
|
1655
|
+
"34",
|
|
1656
|
+
"35",
|
|
1657
|
+
"36",
|
|
1658
|
+
"37",
|
|
1659
|
+
"38",
|
|
1660
|
+
"39",
|
|
1661
|
+
"40",
|
|
1662
|
+
"41",
|
|
1663
|
+
"42",
|
|
1664
|
+
"43",
|
|
1665
|
+
"44",
|
|
1666
|
+
"45",
|
|
1667
|
+
"46",
|
|
1668
|
+
"47",
|
|
1669
|
+
"48",
|
|
1670
|
+
"49",
|
|
1671
|
+
"50",
|
|
1672
|
+
"51",
|
|
1673
|
+
"52",
|
|
1674
|
+
"53",
|
|
1675
|
+
"54",
|
|
1676
|
+
"55",
|
|
1677
|
+
"56",
|
|
1678
|
+
"57",
|
|
1679
|
+
"58",
|
|
1680
|
+
"59",
|
|
1681
|
+
"60",
|
|
1682
|
+
"61",
|
|
1683
|
+
"62",
|
|
1684
|
+
"63",
|
|
1685
|
+
"64",
|
|
1686
|
+
"65",
|
|
1687
|
+
"66",
|
|
1688
|
+
"67",
|
|
1689
|
+
"68",
|
|
1690
|
+
"69",
|
|
1691
|
+
"70",
|
|
1692
|
+
"71",
|
|
1693
|
+
"72",
|
|
1694
|
+
"73",
|
|
1695
|
+
"74",
|
|
1696
|
+
"75",
|
|
1697
|
+
"76",
|
|
1698
|
+
"77",
|
|
1699
|
+
"78",
|
|
1700
|
+
"79",
|
|
1701
|
+
"80",
|
|
1702
|
+
"81",
|
|
1703
|
+
"82",
|
|
1704
|
+
"83",
|
|
1705
|
+
"84",
|
|
1706
|
+
"85",
|
|
1707
|
+
"86",
|
|
1708
|
+
"87",
|
|
1709
|
+
"88",
|
|
1710
|
+
"89",
|
|
1711
|
+
"90",
|
|
1712
|
+
"91",
|
|
1713
|
+
"92",
|
|
1714
|
+
"93",
|
|
1715
|
+
"94",
|
|
1716
|
+
"95",
|
|
1717
|
+
"96",
|
|
1718
|
+
"97",
|
|
1719
|
+
"98",
|
|
1720
|
+
"99",
|
|
1721
|
+
"100"
|
|
1722
|
+
];
|
|
1723
|
+
var opacityMap = fromEntries(opacitySteps.map((key) => [key, `${parseInt(key) / 100}`]));
|
|
1620
1724
|
var backgroundColors = [...backgroundPaletteColors, ...alwaysPaletteAliases, ...elevationAliases];
|
|
1621
1725
|
var foregroundColors = [...foregroundPaletteColors, ...alwaysPaletteAliases];
|
|
1622
1726
|
var lineColors = [...linePaletteColors, ...alwaysPaletteAliases, ...elevationAliases];
|
|
@@ -2386,13 +2490,6 @@ var shadowOffsets = [
|
|
|
2386
2490
|
"11",
|
|
2387
2491
|
"12",
|
|
2388
2492
|
"14",
|
|
2389
|
-
"px",
|
|
2390
|
-
"0.5",
|
|
2391
|
-
"1.5",
|
|
2392
|
-
"2.5",
|
|
2393
|
-
"3.5",
|
|
2394
|
-
"4.5",
|
|
2395
|
-
"5.5",
|
|
2396
2493
|
"16",
|
|
2397
2494
|
"20",
|
|
2398
2495
|
"24",
|
|
@@ -2409,6 +2506,13 @@ var shadowOffsets = [
|
|
|
2409
2506
|
"72",
|
|
2410
2507
|
"80",
|
|
2411
2508
|
"96",
|
|
2509
|
+
"px",
|
|
2510
|
+
"0.5",
|
|
2511
|
+
"1.5",
|
|
2512
|
+
"2.5",
|
|
2513
|
+
"3.5",
|
|
2514
|
+
"4.5",
|
|
2515
|
+
"5.5",
|
|
2412
2516
|
"-1",
|
|
2413
2517
|
"-2",
|
|
2414
2518
|
"-3",
|
|
@@ -2422,13 +2526,6 @@ var shadowOffsets = [
|
|
|
2422
2526
|
"-11",
|
|
2423
2527
|
"-12",
|
|
2424
2528
|
"-14",
|
|
2425
|
-
"-px",
|
|
2426
|
-
"-0.5",
|
|
2427
|
-
"-1.5",
|
|
2428
|
-
"-2.5",
|
|
2429
|
-
"-3.5",
|
|
2430
|
-
"-4.5",
|
|
2431
|
-
"-5.5",
|
|
2432
2529
|
"-16",
|
|
2433
2530
|
"-20",
|
|
2434
2531
|
"-24",
|
|
@@ -2444,7 +2541,14 @@ var shadowOffsets = [
|
|
|
2444
2541
|
"-64",
|
|
2445
2542
|
"-72",
|
|
2446
2543
|
"-80",
|
|
2447
|
-
"-96"
|
|
2544
|
+
"-96",
|
|
2545
|
+
"-px",
|
|
2546
|
+
"-0.5",
|
|
2547
|
+
"-1.5",
|
|
2548
|
+
"-2.5",
|
|
2549
|
+
"-3.5",
|
|
2550
|
+
"-4.5",
|
|
2551
|
+
"-5.5"
|
|
2448
2552
|
];
|
|
2449
2553
|
var shadowOffsetMap = {
|
|
2450
2554
|
"-96": -384,
|
|
@@ -2536,13 +2640,6 @@ var shadowSpreadRadii = [
|
|
|
2536
2640
|
"11",
|
|
2537
2641
|
"12",
|
|
2538
2642
|
"14",
|
|
2539
|
-
"px",
|
|
2540
|
-
"0.5",
|
|
2541
|
-
"1.5",
|
|
2542
|
-
"2.5",
|
|
2543
|
-
"3.5",
|
|
2544
|
-
"4.5",
|
|
2545
|
-
"5.5",
|
|
2546
2643
|
"16",
|
|
2547
2644
|
"20",
|
|
2548
2645
|
"24",
|
|
@@ -2559,6 +2656,13 @@ var shadowSpreadRadii = [
|
|
|
2559
2656
|
"72",
|
|
2560
2657
|
"80",
|
|
2561
2658
|
"96",
|
|
2659
|
+
"px",
|
|
2660
|
+
"0.5",
|
|
2661
|
+
"1.5",
|
|
2662
|
+
"2.5",
|
|
2663
|
+
"3.5",
|
|
2664
|
+
"4.5",
|
|
2665
|
+
"5.5",
|
|
2562
2666
|
"-1",
|
|
2563
2667
|
"-2",
|
|
2564
2668
|
"-3",
|
|
@@ -2572,13 +2676,6 @@ var shadowSpreadRadii = [
|
|
|
2572
2676
|
"-11",
|
|
2573
2677
|
"-12",
|
|
2574
2678
|
"-14",
|
|
2575
|
-
"-px",
|
|
2576
|
-
"-0.5",
|
|
2577
|
-
"-1.5",
|
|
2578
|
-
"-2.5",
|
|
2579
|
-
"-3.5",
|
|
2580
|
-
"-4.5",
|
|
2581
|
-
"-5.5",
|
|
2582
2679
|
"-16",
|
|
2583
2680
|
"-20",
|
|
2584
2681
|
"-24",
|
|
@@ -2594,7 +2691,14 @@ var shadowSpreadRadii = [
|
|
|
2594
2691
|
"-64",
|
|
2595
2692
|
"-72",
|
|
2596
2693
|
"-80",
|
|
2597
|
-
"-96"
|
|
2694
|
+
"-96",
|
|
2695
|
+
"-px",
|
|
2696
|
+
"-0.5",
|
|
2697
|
+
"-1.5",
|
|
2698
|
+
"-2.5",
|
|
2699
|
+
"-3.5",
|
|
2700
|
+
"-4.5",
|
|
2701
|
+
"-5.5"
|
|
2598
2702
|
];
|
|
2599
2703
|
var shadowSpreadRadiusMap = {
|
|
2600
2704
|
"-96": -384,
|
|
@@ -2688,60 +2792,55 @@ var shadowOpacities = [
|
|
|
2688
2792
|
"13",
|
|
2689
2793
|
"14",
|
|
2690
2794
|
"15",
|
|
2691
|
-
"50",
|
|
2692
|
-
"100",
|
|
2693
2795
|
"16",
|
|
2694
|
-
"20",
|
|
2695
|
-
"24",
|
|
2696
|
-
"28",
|
|
2697
|
-
"32",
|
|
2698
|
-
"36",
|
|
2699
|
-
"40",
|
|
2700
|
-
"44",
|
|
2701
|
-
"48",
|
|
2702
|
-
"52",
|
|
2703
|
-
"56",
|
|
2704
|
-
"60",
|
|
2705
|
-
"64",
|
|
2706
|
-
"72",
|
|
2707
|
-
"80",
|
|
2708
|
-
"96",
|
|
2709
|
-
"75",
|
|
2710
2796
|
"17",
|
|
2711
2797
|
"18",
|
|
2712
2798
|
"19",
|
|
2799
|
+
"20",
|
|
2713
2800
|
"21",
|
|
2714
2801
|
"22",
|
|
2715
2802
|
"23",
|
|
2803
|
+
"24",
|
|
2716
2804
|
"25",
|
|
2717
2805
|
"26",
|
|
2718
2806
|
"27",
|
|
2807
|
+
"28",
|
|
2719
2808
|
"29",
|
|
2720
2809
|
"30",
|
|
2721
2810
|
"31",
|
|
2811
|
+
"32",
|
|
2722
2812
|
"33",
|
|
2723
2813
|
"34",
|
|
2724
2814
|
"35",
|
|
2815
|
+
"36",
|
|
2725
2816
|
"37",
|
|
2726
2817
|
"38",
|
|
2727
2818
|
"39",
|
|
2819
|
+
"40",
|
|
2728
2820
|
"41",
|
|
2729
2821
|
"42",
|
|
2730
2822
|
"43",
|
|
2823
|
+
"44",
|
|
2731
2824
|
"45",
|
|
2732
2825
|
"46",
|
|
2733
2826
|
"47",
|
|
2827
|
+
"48",
|
|
2734
2828
|
"49",
|
|
2829
|
+
"50",
|
|
2735
2830
|
"51",
|
|
2831
|
+
"52",
|
|
2736
2832
|
"53",
|
|
2737
2833
|
"54",
|
|
2738
2834
|
"55",
|
|
2835
|
+
"56",
|
|
2739
2836
|
"57",
|
|
2740
2837
|
"58",
|
|
2741
2838
|
"59",
|
|
2839
|
+
"60",
|
|
2742
2840
|
"61",
|
|
2743
2841
|
"62",
|
|
2744
2842
|
"63",
|
|
2843
|
+
"64",
|
|
2745
2844
|
"65",
|
|
2746
2845
|
"66",
|
|
2747
2846
|
"67",
|
|
@@ -2749,12 +2848,15 @@ var shadowOpacities = [
|
|
|
2749
2848
|
"69",
|
|
2750
2849
|
"70",
|
|
2751
2850
|
"71",
|
|
2851
|
+
"72",
|
|
2752
2852
|
"73",
|
|
2753
2853
|
"74",
|
|
2854
|
+
"75",
|
|
2754
2855
|
"76",
|
|
2755
2856
|
"77",
|
|
2756
2857
|
"78",
|
|
2757
2858
|
"79",
|
|
2859
|
+
"80",
|
|
2758
2860
|
"81",
|
|
2759
2861
|
"82",
|
|
2760
2862
|
"83",
|
|
@@ -2770,9 +2872,11 @@ var shadowOpacities = [
|
|
|
2770
2872
|
"93",
|
|
2771
2873
|
"94",
|
|
2772
2874
|
"95",
|
|
2875
|
+
"96",
|
|
2773
2876
|
"97",
|
|
2774
2877
|
"98",
|
|
2775
|
-
"99"
|
|
2878
|
+
"99",
|
|
2879
|
+
"100"
|
|
2776
2880
|
];
|
|
2777
2881
|
var shadowOpacityMap = fromEntries(shadowOpacities.map((key) => [key, parseInt(key)]));
|
|
2778
2882
|
var tshirtSizes = [
|
|
@@ -2837,99 +2941,12 @@ var buttonSizes = [
|
|
|
2837
2941
|
"md",
|
|
2838
2942
|
"lg"
|
|
2839
2943
|
];
|
|
2840
|
-
var
|
|
2841
|
-
"hover",
|
|
2842
|
-
"pressed"
|
|
2843
|
-
];
|
|
2844
|
-
var buttonKinds = [
|
|
2845
|
-
"fill",
|
|
2846
|
-
"outline",
|
|
2847
|
-
"ghost"
|
|
2848
|
-
];
|
|
2849
|
-
var buttonIconSvgSize = "sm";
|
|
2850
|
-
var buttonColorProperties = [
|
|
2851
|
-
"backgroundColor",
|
|
2852
|
-
"borderColor",
|
|
2853
|
-
"color"
|
|
2854
|
-
];
|
|
2855
|
-
var buttonSizeProperties = [
|
|
2856
|
-
"spacingHorizontal",
|
|
2857
|
-
"spacingVertical",
|
|
2858
|
-
"gap",
|
|
2859
|
-
"iconSize",
|
|
2860
|
-
"textVariant"
|
|
2861
|
-
];
|
|
2862
|
-
var buttonMotionProperties = [
|
|
2863
|
-
"toString",
|
|
2864
|
-
"charAt",
|
|
2865
|
-
"charCodeAt",
|
|
2866
|
-
"concat",
|
|
2867
|
-
"indexOf",
|
|
2868
|
-
"lastIndexOf",
|
|
2869
|
-
"localeCompare",
|
|
2870
|
-
"match",
|
|
2871
|
-
"replace",
|
|
2872
|
-
"search",
|
|
2873
|
-
"slice",
|
|
2874
|
-
"split",
|
|
2875
|
-
"substring",
|
|
2876
|
-
"toLowerCase",
|
|
2877
|
-
"toLocaleLowerCase",
|
|
2878
|
-
"toUpperCase",
|
|
2879
|
-
"toLocaleUpperCase",
|
|
2880
|
-
"trim",
|
|
2881
|
-
"length",
|
|
2882
|
-
"substr",
|
|
2883
|
-
"valueOf",
|
|
2884
|
-
"codePointAt",
|
|
2885
|
-
"includes",
|
|
2886
|
-
"endsWith",
|
|
2887
|
-
"normalize",
|
|
2888
|
-
"repeat",
|
|
2889
|
-
"startsWith",
|
|
2890
|
-
"anchor",
|
|
2891
|
-
"big",
|
|
2892
|
-
"blink",
|
|
2893
|
-
"bold",
|
|
2894
|
-
"fixed",
|
|
2895
|
-
"fontcolor",
|
|
2896
|
-
"fontsize",
|
|
2897
|
-
"italics",
|
|
2898
|
-
"link",
|
|
2899
|
-
"small",
|
|
2900
|
-
"strike",
|
|
2901
|
-
"sub",
|
|
2902
|
-
"sup",
|
|
2903
|
-
"padStart",
|
|
2904
|
-
"padEnd",
|
|
2905
|
-
"trimEnd",
|
|
2906
|
-
"trimStart",
|
|
2907
|
-
"trimLeft",
|
|
2908
|
-
"trimRight",
|
|
2909
|
-
"matchAll",
|
|
2910
|
-
"__@iterator@86",
|
|
2911
|
-
"at"
|
|
2912
|
-
];
|
|
2913
|
-
var buttonMotionEffects = [
|
|
2944
|
+
var scaleEffects = [
|
|
2914
2945
|
"none",
|
|
2915
2946
|
"up",
|
|
2916
2947
|
"down"
|
|
2917
2948
|
];
|
|
2918
|
-
var
|
|
2919
|
-
"uds-button-accent",
|
|
2920
|
-
"uds-button-brand",
|
|
2921
|
-
"uds-button-alert",
|
|
2922
|
-
"uds-button-positive",
|
|
2923
|
-
"uds-button-warning",
|
|
2924
|
-
"uds-button-info",
|
|
2925
|
-
"uds-button-primary",
|
|
2926
|
-
"uds-button-secondary",
|
|
2927
|
-
"uds-button-tertiary",
|
|
2928
|
-
"uds-button-sm",
|
|
2929
|
-
"uds-button-md",
|
|
2930
|
-
"uds-button-lg",
|
|
2931
|
-
"uds-button"
|
|
2932
|
-
];
|
|
2949
|
+
var buttonIconSvgSize = "sm";
|
|
2933
2950
|
var iconButtonSizes = [
|
|
2934
2951
|
"sm",
|
|
2935
2952
|
"md",
|
|
@@ -2937,14 +2954,6 @@ var iconButtonSizes = [
|
|
|
2937
2954
|
"xl",
|
|
2938
2955
|
"xs"
|
|
2939
2956
|
];
|
|
2940
|
-
var iconButtonClassNames = [
|
|
2941
|
-
"uds-icon-button-sm",
|
|
2942
|
-
"uds-icon-button-md",
|
|
2943
|
-
"uds-icon-button-lg",
|
|
2944
|
-
"uds-icon-button-xl",
|
|
2945
|
-
"uds-icon-button-xs",
|
|
2946
|
-
"uds-icon-button"
|
|
2947
|
-
];
|
|
2948
2957
|
var inputSizes = [
|
|
2949
2958
|
"md",
|
|
2950
2959
|
"lg"
|
|
@@ -2970,29 +2979,6 @@ var motionSpringConfigOptions = [
|
|
|
2970
2979
|
"damping",
|
|
2971
2980
|
"stiffness"
|
|
2972
2981
|
];
|
|
2973
|
-
var scaleEffectMap = {
|
|
2974
|
-
none: {
|
|
2975
|
-
xs: "1",
|
|
2976
|
-
sm: "1",
|
|
2977
|
-
md: "1",
|
|
2978
|
-
lg: "1",
|
|
2979
|
-
xl: "1"
|
|
2980
|
-
},
|
|
2981
|
-
up: {
|
|
2982
|
-
xs: "1.0125",
|
|
2983
|
-
sm: "1.03",
|
|
2984
|
-
md: "1.125",
|
|
2985
|
-
lg: "1.25",
|
|
2986
|
-
xl: "2"
|
|
2987
|
-
},
|
|
2988
|
-
down: {
|
|
2989
|
-
xs: "0.9875",
|
|
2990
|
-
sm: "0.97",
|
|
2991
|
-
md: "0.875",
|
|
2992
|
-
lg: "0.75",
|
|
2993
|
-
xl: "0.5"
|
|
2994
|
-
}
|
|
2995
|
-
};
|
|
2996
2982
|
var shadowVariants = [
|
|
2997
2983
|
"sm",
|
|
2998
2984
|
"md",
|
|
@@ -3053,4 +3039,4 @@ var badgeSizes = [
|
|
|
3053
3039
|
"lg",
|
|
3054
3040
|
"xs"
|
|
3055
3041
|
];
|
|
3056
|
-
export { typographyStyleProperties, tshirtSizes, textVariantsWithoutEmphasized, textVariantsUi, textVariantsTypography, textVariants, textTransforms, textProperties, textDecorationLines, tailwindColorsAsUds, switchSizes, spectrumColors, spacingMap, spacingAliases, sortPalette, shadowVariantsWithInvert, shadowVariantsInvert, shadowVariants, shadowSpreadRadiusMap, shadowSpreadRadii, shadowPaletteColors, shadowOpacityMap, shadowOpacities, shadowOffsets, shadowOffsetMap, shadowColors, scaleModes,
|
|
3042
|
+
export { typographyStyleProperties, tshirtSizes, textVariantsWithoutEmphasized, textVariantsUi, textVariantsTypography, textVariants, textTransforms, textProperties, textDecorationLines, tailwindColorsAsUds, switchSizes, spectrumColors, spacingMap, spacingAliases, sortPalette, shadowVariantsWithInvert, shadowVariantsInvert, shadowVariants, shadowSpreadRadiusMap, shadowSpreadRadii, shadowPaletteColors, shadowOpacityMap, shadowOpacities, shadowOffsets, shadowOffsetMap, shadowColors, scaleModes, scaleEffects, regionModes, palette, opacitySteps, opacityMap, motionVariants, motionVariantSpeeds, motionSpringConfigOptions, motionSpringConfig, linePaletteColors, lineColors, inputSizes, iconVariants, iconSizes, iconButtonSizes, hues, hueSteps, foregroundPaletteColors, foregroundColors, fontWeights, fontUrls, fontIds, fontAliases, elevationShadowLayerCount, elevationLevels, colorModes, chipVariants, chipSizes, checkboxVariants, checkboxSizes, buttonVariantsTertiary, buttonVariantsSecondary, buttonVariantsPrimary, buttonVariantsFlat, buttonVariants, buttonSizes, buttonPalettes, buttonIconSvgSize, breakpoints, borderWidthsWithElevation, borderWidths, borderWidthRamp, borderRadiusRamp, borderRadii, badgeVariants, badgeSizes, backgroundPaletteColors, backgroundColors, avatarSizes, avatarShapes, alwaysPaletteAliases };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as properties from '@yahoo/uds/fixtures';
|
|
2
|
-
import {
|
|
2
|
+
import { n as ShadowPreset, f as UniversalTokensConfig } from './universalTokensConfigAuto-4Elh49mo.js';
|
|
3
3
|
|
|
4
4
|
type DispatchContext = {
|
|
5
5
|
componentName: string;
|
|
@@ -31,6 +31,7 @@ declare const publicProperties: {
|
|
|
31
31
|
readonly padding: ConfigurableProperty<"spacingAliases", unknown>;
|
|
32
32
|
readonly gap: ConfigurableProperty<"spacingAliases", unknown>;
|
|
33
33
|
readonly color: ConfigurableProperty<"foregroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases", unknown>;
|
|
34
|
+
readonly opacity: ConfigurableProperty<"opacitySteps", unknown>;
|
|
34
35
|
readonly fontWeight: ConfigurableProperty<"textVariants", unknown>;
|
|
35
36
|
readonly iconSize: ConfigurableProperty<"iconSizes", unknown>;
|
|
36
37
|
readonly spacingHorizontal: ConfigurableProperty<"spacingAliases", unknown>;
|
|
@@ -41,6 +42,7 @@ declare const publicProperties: {
|
|
|
41
42
|
readonly insetShadow: ConfigurableProperty<"shadowVariantsWithInvert", string | [] | [ShadowPreset] | [ShadowPreset, ShadowPreset] | [ShadowPreset, ShadowPreset, ShadowPreset]>;
|
|
42
43
|
readonly height: ConfigurableProperty<"spacingAliases", unknown>;
|
|
43
44
|
readonly width: ConfigurableProperty<"spacingAliases", unknown>;
|
|
45
|
+
readonly scaleEffect: ConfigurableProperty<"scaleEffects", unknown>;
|
|
44
46
|
};
|
|
45
47
|
declare const configurableProperties: {
|
|
46
48
|
outlineWidth: ConfigurableProperty<"spacingAliases" | "borderWidths", unknown>;
|
|
@@ -60,6 +62,7 @@ declare const configurableProperties: {
|
|
|
60
62
|
padding: ConfigurableProperty<"spacingAliases", unknown>;
|
|
61
63
|
gap: ConfigurableProperty<"spacingAliases", unknown>;
|
|
62
64
|
color: ConfigurableProperty<"foregroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases", unknown>;
|
|
65
|
+
opacity: ConfigurableProperty<"opacitySteps", unknown>;
|
|
63
66
|
fontWeight: ConfigurableProperty<"textVariants", unknown>;
|
|
64
67
|
iconSize: ConfigurableProperty<"iconSizes", unknown>;
|
|
65
68
|
spacingHorizontal: ConfigurableProperty<"spacingAliases", unknown>;
|
|
@@ -70,6 +73,7 @@ declare const configurableProperties: {
|
|
|
70
73
|
insetShadow: ConfigurableProperty<"shadowVariantsWithInvert", string | [] | [ShadowPreset] | [ShadowPreset, ShadowPreset] | [ShadowPreset, ShadowPreset, ShadowPreset]>;
|
|
71
74
|
height: ConfigurableProperty<"spacingAliases", unknown>;
|
|
72
75
|
width: ConfigurableProperty<"spacingAliases", unknown>;
|
|
76
|
+
scaleEffect: ConfigurableProperty<"scaleEffects", unknown>;
|
|
73
77
|
};
|
|
74
78
|
type ExtendablePropertiesName = keyof typeof configurableProperties;
|
|
75
79
|
type ConfigurablePropertiesName = keyof typeof publicProperties;
|
|
@@ -78,6 +82,7 @@ interface SelectedConfigurableProperty<C extends ConfigurablePropertiesName, O e
|
|
|
78
82
|
name: C;
|
|
79
83
|
typeOfFixture: T;
|
|
80
84
|
values: V;
|
|
85
|
+
skipRestState?: boolean;
|
|
81
86
|
pseudoStates?: PossibleStates[];
|
|
82
87
|
supportsCustom?: boolean;
|
|
83
88
|
defaults: {
|
|
@@ -85,7 +90,7 @@ interface SelectedConfigurableProperty<C extends ConfigurablePropertiesName, O e
|
|
|
85
90
|
};
|
|
86
91
|
}
|
|
87
92
|
|
|
88
|
-
type AllPossibleProperties = Exclude<keyof typeof properties, '
|
|
93
|
+
type AllPossibleProperties = Exclude<keyof typeof properties, 'iconButtonSize' | 'iconButtonStates' | 'buttonIconSvgSize' | 'buttonPalettes' | 'buttonSizes' | 'buttonStates' | 'buttonVariants' | 'elevationLevels'> | 'shadowVariantConfig';
|
|
89
94
|
type PossibleStates = 'hover' | 'pressed' | 'focused' | 'invalid' | 'focus-within' | 'focused-keyboard' | 'visited' | 'readonly' | 'disabled' | 'invalid&hover' | 'invalid&pressed';
|
|
90
95
|
type PossibleStatesWithRest = 'rest' | PossibleStates;
|
|
91
96
|
interface LayerConfig {
|
|
@@ -126,9 +131,9 @@ interface ComponentConfig {
|
|
|
126
131
|
description: string;
|
|
127
132
|
overrideComponentName?: string;
|
|
128
133
|
subComponents?: Record<string, SubComponentConfig>;
|
|
129
|
-
variants?: Record<string, VariantConfigWithProperties | VariantConfigWithComponentStates>;
|
|
134
|
+
variants?: Record<string, VariantConfigWithProperties | VariantConfigWithComponentStates | VariantConfig>;
|
|
130
135
|
}
|
|
131
|
-
type AutoComponents = Omit<UniversalTokensConfig, 'colorMode' | 'font' | 'scaleMode' | 'version' | 'motion' | '
|
|
136
|
+
type AutoComponents = Omit<UniversalTokensConfig, 'colorMode' | 'font' | 'scaleMode' | 'version' | 'motion' | 'shadow' | 'breakpoints' | 'typography' | 'globalDefaults' | 'elevation'>;
|
|
132
137
|
type AutoComponentName = keyof AutoComponents;
|
|
133
138
|
type AllVariantKeys = {
|
|
134
139
|
[K in keyof AutoComponents]: {
|
|
@@ -145,6 +150,7 @@ type SchemaStateValue<T = any> = {
|
|
|
145
150
|
declare const statePseudoMapDocsMode: Record<PossibleStates | 'rest', string>;
|
|
146
151
|
declare function findFixtureType(property: SelectedConfigurableProperty<ConfigurablePropertiesName, string>, variantKey: string): string;
|
|
147
152
|
declare function toMinimalDbConfigObject<C extends ComponentConfig>(config: C): any;
|
|
153
|
+
declare function generateDefaultClassName(componentName: string, variantType: string, layerKey: string, subComponentName?: string): string;
|
|
148
154
|
declare function generateClassName({ componentName, variantKey, variantValue, layer, layerOptionalPseudoSelector, subComponentName, stateKey, stateValue, }: {
|
|
149
155
|
componentName: string;
|
|
150
156
|
variantKey: string;
|
|
@@ -173,9 +179,19 @@ declare function generateDeclaration({ componentName, variantKey, variantValue,
|
|
|
173
179
|
generatePseudoStateClassModifier?: boolean;
|
|
174
180
|
};
|
|
175
181
|
}): Record<string, Record<string, string>>;
|
|
176
|
-
declare function
|
|
182
|
+
declare function generateConfigStyles<C extends ComponentConfig>(config: C, schema: any, theme: ThemeFn, previewOptions?: {
|
|
177
183
|
generatePseudoStateClassModifier: boolean;
|
|
178
184
|
}): Record<string, Record<string, string>>;
|
|
185
|
+
/**
|
|
186
|
+
* @param config - Component configuration (Button, IconButton, etc.)
|
|
187
|
+
* @param schema - Production schema with defaults and variables
|
|
188
|
+
* @param theme - Tailwind theme function to resolve design tokens
|
|
189
|
+
* @param previewOptions - Options for generating preview mode class modifiers
|
|
190
|
+
* @returns CSS styles object with grouped selectors for default aliases
|
|
191
|
+
*/
|
|
192
|
+
declare const generateStyles: (config: ComponentConfig, schema: any, theme: ThemeFn, previewOptions: {
|
|
193
|
+
generatePseudoStateClassModifier: boolean;
|
|
194
|
+
}) => Record<string, Record<string, string>>;
|
|
179
195
|
declare function createConfigurableProperty<C extends ConfigurablePropertiesName, O extends string, T extends (typeof configurableProperties)[C]['possibleFixtures'], V extends readonly (readonly string[])[] = readonly (readonly string[])[]>(prop: {
|
|
180
196
|
name: C;
|
|
181
197
|
typeOfFixture: T;
|
|
@@ -184,27 +200,17 @@ declare function createConfigurableProperty<C extends ConfigurablePropertiesName
|
|
|
184
200
|
[K in O]: V[number][number];
|
|
185
201
|
};
|
|
186
202
|
label: string;
|
|
203
|
+
skipRestState?: boolean;
|
|
187
204
|
pseudoStates?: PossibleStates[];
|
|
188
205
|
supportsCustom?: boolean;
|
|
189
206
|
}): SelectedConfigurableProperty<C, O, T, V>;
|
|
190
|
-
|
|
191
|
-
* @deprecated use the new functions instead
|
|
192
|
-
*/
|
|
193
|
-
declare function createVariantConfig<O extends string, T extends Record<string, SelectedConfigurableProperty<ConfigurablePropertiesName, O>>>(config: {
|
|
207
|
+
declare function createVariantConfig(config: {
|
|
194
208
|
label: string;
|
|
195
209
|
description: string;
|
|
196
210
|
isConfigurable: boolean;
|
|
197
|
-
default:
|
|
198
|
-
options: readonly
|
|
199
|
-
|
|
200
|
-
}): VariantConfig<O>;
|
|
201
|
-
declare function createComponentStateConfig(config: {
|
|
202
|
-
label: string;
|
|
203
|
-
options: string[];
|
|
204
|
-
layers: {
|
|
205
|
-
root: LayerConfig;
|
|
206
|
-
} & Record<string, LayerConfig>;
|
|
207
|
-
}): ComponentStateConfig;
|
|
211
|
+
default: string;
|
|
212
|
+
options: readonly string[];
|
|
213
|
+
}): VariantConfig;
|
|
208
214
|
declare function createVariantConfigWithProperties(config: {
|
|
209
215
|
label: string;
|
|
210
216
|
description: string;
|
|
@@ -242,4 +248,4 @@ declare function createSubComponentConfig(config: {
|
|
|
242
248
|
variants: Record<string, VariantConfigWithProperties | VariantConfigWithComponentStates>;
|
|
243
249
|
}): SubComponentConfig;
|
|
244
250
|
|
|
245
|
-
export { type AllPossibleProperties as A, type ConfigurablePropertiesName as C, type ExtendablePropertiesName as E, type LayerConfig as L, type PossibleStates as P, type SelectedConfigurableProperty as S, type VariantConfig as V, type PossibleStatesWithRest as a, type ComponentStateConfig as b, configurableProperties as c, type SubComponentConfig as d, type VariantConfigWithProperties as e, type VariantConfigWithComponentStates as f, type ComponentConfig as g, type AutoComponents as h, type AutoComponentName as i, type AllVariantKeys as j, type SchemaStateValue as k, findFixtureType as l,
|
|
251
|
+
export { type AllPossibleProperties as A, type ConfigurablePropertiesName as C, type ExtendablePropertiesName as E, type LayerConfig as L, type PossibleStates as P, type SelectedConfigurableProperty as S, type VariantConfig as V, type PossibleStatesWithRest as a, type ComponentStateConfig as b, configurableProperties as c, type SubComponentConfig as d, type VariantConfigWithProperties as e, type VariantConfigWithComponentStates as f, type ComponentConfig as g, type AutoComponents as h, type AutoComponentName as i, type AllVariantKeys as j, type SchemaStateValue as k, findFixtureType as l, generateDefaultClassName as m, generateClassName as n, generateDeclaration as o, generateConfigStyles as p, generateStyles as q, createConfigurableProperty as r, statePseudoMapDocsMode as s, toMinimalDbConfigObject as t, createVariantConfig as u, createVariantConfigWithProperties as v, createVariantConfigWithComponentStates as w, createComponentStates as x, createLayerConfig as y, createSubComponentConfig as z };
|