@tectra-ng/themes 0.1.3 → 0.1.5
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/fesm2022/tectra-ng-themes.mjs +1066 -55
- package/fesm2022/tectra-ng-themes.mjs.map +1 -1
- package/package.json +2 -2
- package/types/tectra-ng-themes.d.ts +4111 -2069
- package/types/tectra-ng-themes.d.ts.map +1 -1
|
@@ -2222,7 +2222,7 @@ const analogClockTokens = {
|
|
|
2222
2222
|
ringColor: tokenRef("surface-card")
|
|
2223
2223
|
}
|
|
2224
2224
|
};
|
|
2225
|
-
const focusRing = {
|
|
2225
|
+
const focusRing$1 = {
|
|
2226
2226
|
width: "2px",
|
|
2227
2227
|
style: "solid",
|
|
2228
2228
|
color: tokenRef("focus-ring-color"),
|
|
@@ -2264,7 +2264,7 @@ const datePickerTokens = {
|
|
|
2264
2264
|
hoverColor: lightDark(tokenRef("surface-700"), tokenRef("surface-200")),
|
|
2265
2265
|
activeColor: lightDark(tokenRef("surface-800"), tokenRef("surface-100")),
|
|
2266
2266
|
borderRadius: tokenRef("form-field-border-radius"),
|
|
2267
|
-
focusRing
|
|
2267
|
+
focusRing: focusRing$1
|
|
2268
2268
|
},
|
|
2269
2269
|
inputIcon: { color: tokenRef("form-field-icon-color") },
|
|
2270
2270
|
selectMonth: {
|
|
@@ -2315,7 +2315,7 @@ const datePickerTokens = {
|
|
|
2315
2315
|
height: "24.5px",
|
|
2316
2316
|
borderRadius: "50%",
|
|
2317
2317
|
padding: "3.5px",
|
|
2318
|
-
focusRing
|
|
2318
|
+
focusRing: focusRing$1
|
|
2319
2319
|
},
|
|
2320
2320
|
monthView: { margin: "7px 0 0 0" },
|
|
2321
2321
|
month: {
|
|
@@ -2433,65 +2433,1060 @@ const monthCalendarTokens = {
|
|
|
2433
2433
|
neutral: tokenRef("text-muted")
|
|
2434
2434
|
}
|
|
2435
2435
|
};
|
|
2436
|
-
const
|
|
2437
|
-
size: "1em",
|
|
2438
|
-
strokeWidth: "1.75"
|
|
2439
|
-
} };
|
|
2440
|
-
const rippleTokens = { root: {
|
|
2441
|
-
color: "currentColor",
|
|
2442
|
-
opacity: "0.2",
|
|
2443
|
-
enterDuration: "450ms",
|
|
2444
|
-
exitDuration: "350ms",
|
|
2445
|
-
easing: "cubic-bezier(0.2, 0, 0, 1)"
|
|
2446
|
-
} };
|
|
2447
|
-
const toggleButtonTokens = {
|
|
2436
|
+
const tabsTokens = {
|
|
2448
2437
|
root: {
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
color: tokenRef("
|
|
2470
|
-
|
|
2438
|
+
transitionDuration: "0.2s",
|
|
2439
|
+
disabledOpacity: "0.6",
|
|
2440
|
+
focusRingWidth: "2px",
|
|
2441
|
+
focusRingColor: tokenRef("focus-ring-color")
|
|
2442
|
+
},
|
|
2443
|
+
segmented: {
|
|
2444
|
+
gap: "3.5px",
|
|
2445
|
+
padding: "3.5px",
|
|
2446
|
+
borderWidth: "1px",
|
|
2447
|
+
borderColor: tokenRef("surface-border"),
|
|
2448
|
+
borderRadius: "10.5px",
|
|
2449
|
+
background: tokenRef("surface-ground"),
|
|
2450
|
+
focusRingOffset: "1px",
|
|
2451
|
+
tab: {
|
|
2452
|
+
padding: "8.75px 10.5px",
|
|
2453
|
+
gap: "7px",
|
|
2454
|
+
borderRadius: "7px",
|
|
2455
|
+
fontSize: tokenRef("font-size-md"),
|
|
2456
|
+
fontWeight: tokenRef("font-weight-semibold"),
|
|
2457
|
+
lineHeight: "1.25",
|
|
2458
|
+
color: tokenRef("text-muted"),
|
|
2459
|
+
hoverColor: tokenRef("text-muted"),
|
|
2460
|
+
activeBackground: tokenRef("primary-base"),
|
|
2461
|
+
activeColor: tokenRef("primary-contrast"),
|
|
2462
|
+
activeShadow: "none"
|
|
2471
2463
|
},
|
|
2472
|
-
transitionDuration: tokenRef("motion-duration"),
|
|
2473
2464
|
sm: {
|
|
2474
|
-
|
|
2475
|
-
padding: "
|
|
2465
|
+
gap: "1.75px",
|
|
2466
|
+
padding: "1.75px",
|
|
2467
|
+
borderRadius: "7px",
|
|
2468
|
+
tabPadding: "5.25px 7px",
|
|
2469
|
+
tabGap: "3.5px",
|
|
2470
|
+
tabFontSize: "12.25px",
|
|
2471
|
+
tabBorderRadius: "5.25px"
|
|
2472
|
+
}
|
|
2473
|
+
},
|
|
2474
|
+
pills: {
|
|
2475
|
+
gap: "1.75px",
|
|
2476
|
+
padding: "3.5px",
|
|
2477
|
+
borderRadius: "10px",
|
|
2478
|
+
background: tokenRef("surface-ground"),
|
|
2479
|
+
ringColor: tokenRef("surface-border"),
|
|
2480
|
+
focusRingOffset: "1px",
|
|
2481
|
+
transitionDuration: "0.15s",
|
|
2482
|
+
tab: {
|
|
2483
|
+
padding: "5.25px 10.5px",
|
|
2484
|
+
gap: "5.25px",
|
|
2485
|
+
borderRadius: "7px",
|
|
2486
|
+
fontSize: "11.375px",
|
|
2487
|
+
fontWeight: tokenRef("font-weight-medium"),
|
|
2488
|
+
lineHeight: "1.25",
|
|
2489
|
+
color: tokenRef("text-muted"),
|
|
2490
|
+
hoverColor: tokenRef("text-primary"),
|
|
2491
|
+
activeBackground: tokenRef("surface-card"),
|
|
2492
|
+
activeColor: tokenRef("text-primary"),
|
|
2493
|
+
activeShadow: `0 1px 2px rgb(0 0 0 / 0.08), 0 0 0 1px ${tokenRef("surface-border")}`
|
|
2494
|
+
}
|
|
2495
|
+
},
|
|
2496
|
+
raised: {
|
|
2497
|
+
background: tokenRef("surface-card"),
|
|
2498
|
+
ringColor: fade(tokenRef("text-primary"), "86%"),
|
|
2499
|
+
shadow: "0 1px 2px rgb(0 0 0 / 0.06)",
|
|
2500
|
+
pillsActiveBackground: mix(tokenRef("primary-base"), "12%", tokenRef("surface-card")),
|
|
2501
|
+
pillsActiveColor: tokenRef("primary-base"),
|
|
2502
|
+
pillsActiveShadow: `inset 0 0 0 1px ${fade(tokenRef("primary-base"), "72%")}`
|
|
2503
|
+
},
|
|
2504
|
+
line: {
|
|
2505
|
+
background: tokenRef("surface-card"),
|
|
2506
|
+
borderWidth: "0 0 1px 0",
|
|
2507
|
+
borderColor: tokenRef("surface-border"),
|
|
2508
|
+
focusRingOffset: "-1px",
|
|
2509
|
+
transitionDuration: "0.15s",
|
|
2510
|
+
tab: {
|
|
2511
|
+
padding: "12.25px 14px",
|
|
2512
|
+
gap: "7px",
|
|
2513
|
+
borderRadius: "0",
|
|
2514
|
+
fontSize: tokenRef("font-size-md"),
|
|
2515
|
+
fontWeight: tokenRef("font-weight-semibold"),
|
|
2516
|
+
lineHeight: "1.25",
|
|
2517
|
+
color: tokenRef("text-muted"),
|
|
2518
|
+
hoverColor: tokenRef("text-primary"),
|
|
2519
|
+
activeBackground: "transparent",
|
|
2520
|
+
activeColor: tokenRef("primary-base"),
|
|
2521
|
+
activeShadow: "none"
|
|
2476
2522
|
},
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2523
|
+
activeBar: {
|
|
2524
|
+
height: "1px",
|
|
2525
|
+
bottom: "0",
|
|
2526
|
+
background: tokenRef("primary-base"),
|
|
2527
|
+
transition: "250ms cubic-bezier(0.35, 0, 0.25, 1)"
|
|
2528
|
+
}
|
|
2529
|
+
},
|
|
2530
|
+
activate: {
|
|
2531
|
+
scale: "0.94",
|
|
2532
|
+
duration: "220ms",
|
|
2533
|
+
easing: "cubic-bezier(0.2, 0.9, 0.3, 1.2)"
|
|
2534
|
+
},
|
|
2535
|
+
navButton: {
|
|
2536
|
+
width: "31.5px",
|
|
2537
|
+
color: tokenRef("text-muted"),
|
|
2538
|
+
hoverColor: tokenRef("text-primary"),
|
|
2539
|
+
shadowSize: "0px 0px 10px 50px",
|
|
2540
|
+
shadowColor: lightDark("rgba(255, 255, 255, 0.6)", "color-mix(in srgb, var(--tx-surface-card), transparent 50%)")
|
|
2541
|
+
},
|
|
2542
|
+
badge: {
|
|
2543
|
+
size: "17.5px",
|
|
2544
|
+
padding: "0 5.25px",
|
|
2545
|
+
fontSize: "9.625px",
|
|
2546
|
+
fontWeight: tokenRef("font-weight-semibold"),
|
|
2547
|
+
background: fade(tokenRef("text-muted"), "86%"),
|
|
2548
|
+
color: tokenRef("text-muted"),
|
|
2549
|
+
activeBackground: fade(tokenRef("primary-500"), "84%"),
|
|
2550
|
+
activeColor: tokenRef("primary-base"),
|
|
2551
|
+
solidActiveBackground: tokenRef("primary-active"),
|
|
2552
|
+
solidActiveColor: tokenRef("primary-contrast")
|
|
2553
|
+
},
|
|
2554
|
+
description: {
|
|
2555
|
+
gap: "5.25px",
|
|
2556
|
+
fontSize: "11.375px",
|
|
2557
|
+
lineHeight: "1.375",
|
|
2558
|
+
color: tokenRef("text-muted")
|
|
2559
|
+
},
|
|
2560
|
+
panels: {
|
|
2561
|
+
background: "transparent",
|
|
2562
|
+
color: tokenRef("text-primary"),
|
|
2563
|
+
padding: "10.5px 0 0",
|
|
2564
|
+
linePadding: "10.5px 14px 14px 14px",
|
|
2565
|
+
lineBackground: "transparent"
|
|
2566
|
+
}
|
|
2567
|
+
};
|
|
2568
|
+
const menubarTokens = {
|
|
2569
|
+
root: {
|
|
2570
|
+
background: tokenRef("surface-card"),
|
|
2571
|
+
borderColor: tokenRef("surface-border"),
|
|
2572
|
+
borderRadius: tokenRef("radius-lg"),
|
|
2573
|
+
color: tokenRef("text-primary"),
|
|
2574
|
+
gap: "7px",
|
|
2575
|
+
padding: "5.25px",
|
|
2576
|
+
fontSize: tokenRef("font-size-md"),
|
|
2577
|
+
transitionDuration: tokenRef("motion-duration")
|
|
2578
|
+
},
|
|
2579
|
+
item: {
|
|
2580
|
+
padding: "7px 10.5px",
|
|
2581
|
+
gap: "7px",
|
|
2582
|
+
borderRadius: tokenRef("radius-sm"),
|
|
2583
|
+
color: tokenRef("text-primary"),
|
|
2584
|
+
fontWeight: tokenRef("font-weight-regular"),
|
|
2585
|
+
focusBackground: lightDark(tokenRef("surface-100"), tokenRef("surface-800")),
|
|
2586
|
+
focusColor: tokenRef("text-hover"),
|
|
2587
|
+
activeBackground: lightDark(tokenRef("surface-100"), tokenRef("surface-800")),
|
|
2588
|
+
activeColor: tokenRef("text-hover"),
|
|
2589
|
+
disabledOpacity: "0.6",
|
|
2590
|
+
focusRingWidth: "2px",
|
|
2591
|
+
focusRingColor: tokenRef("focus-ring-color"),
|
|
2592
|
+
focusRingOffset: "-2px",
|
|
2593
|
+
icon: {
|
|
2594
|
+
size: "14px",
|
|
2595
|
+
color: lightDark(tokenRef("surface-400"), tokenRef("surface-500")),
|
|
2596
|
+
focusColor: lightDark(tokenRef("surface-500"), tokenRef("surface-400")),
|
|
2597
|
+
activeColor: lightDark(tokenRef("surface-500"), tokenRef("surface-400"))
|
|
2480
2598
|
}
|
|
2481
2599
|
},
|
|
2600
|
+
submenuIcon: {
|
|
2601
|
+
size: "10.5px",
|
|
2602
|
+
color: lightDark(tokenRef("surface-400"), tokenRef("surface-500")),
|
|
2603
|
+
focusColor: lightDark(tokenRef("surface-500"), tokenRef("surface-400"))
|
|
2604
|
+
},
|
|
2605
|
+
mobileButton: {
|
|
2606
|
+
size: "21px",
|
|
2607
|
+
borderRadius: "50%",
|
|
2608
|
+
color: tokenRef("text-muted"),
|
|
2609
|
+
hoverColor: tokenRef("text-muted-hover"),
|
|
2610
|
+
hoverBackground: tokenRef("surface-hover")
|
|
2611
|
+
},
|
|
2612
|
+
mobile: {
|
|
2613
|
+
padding: "5.25px",
|
|
2614
|
+
gap: "2px",
|
|
2615
|
+
background: tokenRef("surface-card"),
|
|
2616
|
+
borderColor: tokenRef("surface-border"),
|
|
2617
|
+
borderRadius: tokenRef("radius-lg"),
|
|
2618
|
+
shadow: tokenRef("shadow-overlay"),
|
|
2619
|
+
indent: "12.25px",
|
|
2620
|
+
offset: "4px",
|
|
2621
|
+
expandDuration: "0.25s",
|
|
2622
|
+
expandEasing: "cubic-bezier(0.2, 0, 0, 1)"
|
|
2623
|
+
}
|
|
2624
|
+
};
|
|
2625
|
+
const splitterTokens = {
|
|
2626
|
+
root: {
|
|
2627
|
+
background: tokenRef("surface-card"),
|
|
2628
|
+
borderColor: tokenRef("surface-border"),
|
|
2629
|
+
borderRadius: tokenRef("radius-md"),
|
|
2630
|
+
color: tokenRef("text-primary"),
|
|
2631
|
+
transitionDuration: tokenRef("motion-duration")
|
|
2632
|
+
},
|
|
2633
|
+
gutter: {
|
|
2634
|
+
background: tokenRef("surface-border"),
|
|
2635
|
+
hitArea: "5px",
|
|
2636
|
+
disabledOpacity: "0.4"
|
|
2637
|
+
},
|
|
2638
|
+
handle: {
|
|
2639
|
+
size: "24px",
|
|
2640
|
+
background: "transparent",
|
|
2641
|
+
borderRadius: tokenRef("radius-lg"),
|
|
2642
|
+
focusRingWidth: "2px",
|
|
2643
|
+
focusRingColor: tokenRef("focus-ring-color"),
|
|
2644
|
+
focusRingOffset: "2px"
|
|
2645
|
+
}
|
|
2646
|
+
};
|
|
2647
|
+
const scrollPanelTokens = {
|
|
2648
|
+
root: {
|
|
2649
|
+
transitionDuration: tokenRef("motion-duration"),
|
|
2650
|
+
focusRingWidth: "2px",
|
|
2651
|
+
focusRingColor: tokenRef("focus-ring-color"),
|
|
2652
|
+
focusRingOffset: "-2px"
|
|
2653
|
+
},
|
|
2654
|
+
bar: {
|
|
2655
|
+
size: "9px",
|
|
2656
|
+
borderRadius: tokenRef("radius-sm"),
|
|
2657
|
+
background: lightDark(tokenRef("surface-100"), tokenRef("surface-800")),
|
|
2658
|
+
focusRingWidth: "2px",
|
|
2659
|
+
focusRingColor: tokenRef("focus-ring-color"),
|
|
2660
|
+
focusRingOffset: "2px"
|
|
2661
|
+
}
|
|
2662
|
+
};
|
|
2663
|
+
const toolbarTokens = {
|
|
2664
|
+
root: {
|
|
2665
|
+
background: tokenRef("surface-card"),
|
|
2666
|
+
borderColor: tokenRef("surface-border"),
|
|
2667
|
+
borderRadius: tokenRef("radius-lg"),
|
|
2668
|
+
color: tokenRef("text-primary"),
|
|
2669
|
+
gap: "7px",
|
|
2670
|
+
padding: "8.75px"
|
|
2671
|
+
},
|
|
2672
|
+
group: { gap: "7px" }
|
|
2673
|
+
};
|
|
2674
|
+
const fileUploadTokens = {
|
|
2675
|
+
root: {
|
|
2676
|
+
gap: "10.5px",
|
|
2677
|
+
color: tokenRef("text-primary"),
|
|
2678
|
+
fontSize: tokenRef("font-size-md"),
|
|
2679
|
+
transitionDuration: "0.2s",
|
|
2680
|
+
easing: "cubic-bezier(0.2, 0, 0, 1)",
|
|
2681
|
+
focusRingWidth: "2px",
|
|
2682
|
+
focusRingColor: tokenRef("focus-ring-color"),
|
|
2683
|
+
focusRingOffset: "2px"
|
|
2684
|
+
},
|
|
2685
|
+
dropzone: {
|
|
2686
|
+
minHeight: "205px",
|
|
2687
|
+
padding: "28px 21px",
|
|
2688
|
+
gap: "12.25px",
|
|
2689
|
+
borderRadius: tokenRef("radius-xl"),
|
|
2690
|
+
borderWidth: "1.5px",
|
|
2691
|
+
dash: "7px 6px",
|
|
2692
|
+
dashPeriod: "13px",
|
|
2693
|
+
borderColor: lightDark(tokenRef("surface-300"), tokenRef("surface-600")),
|
|
2694
|
+
hoverBorderColor: mix(tokenRef("primary-base"), "55%", tokenRef("surface-card")),
|
|
2695
|
+
activeBorderColor: tokenRef("primary-base"),
|
|
2696
|
+
invalidBorderColor: tokenRef("danger-base"),
|
|
2697
|
+
background: mix(tokenRef("text-primary"), "2.5%", tokenRef("surface-card")),
|
|
2698
|
+
hoverBackground: mix(tokenRef("primary-base"), "4%", tokenRef("surface-card")),
|
|
2699
|
+
activeBackground: mix(tokenRef("primary-base"), "8%", tokenRef("surface-card")),
|
|
2700
|
+
disabledOpacity: "0.6"
|
|
2701
|
+
},
|
|
2482
2702
|
icon: {
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2703
|
+
size: "44px",
|
|
2704
|
+
glyphSize: "19.25px",
|
|
2705
|
+
borderRadius: tokenRef("radius-lg"),
|
|
2706
|
+
background: mix(tokenRef("primary-base"), "12%", tokenRef("surface-card")),
|
|
2707
|
+
color: tokenRef("primary-base"),
|
|
2708
|
+
hoverShadow: `0 6px 14px -6px ${mix(tokenRef("primary-base"), "55%", "transparent")}`,
|
|
2709
|
+
lift: "-2px"
|
|
2487
2710
|
},
|
|
2488
|
-
|
|
2489
|
-
|
|
2711
|
+
prompt: {
|
|
2712
|
+
fontWeight: tokenRef("font-weight-medium"),
|
|
2713
|
+
linkColor: tokenRef("primary-base"),
|
|
2714
|
+
linkFontWeight: tokenRef("font-weight-semibold")
|
|
2715
|
+
},
|
|
2716
|
+
hint: {
|
|
2717
|
+
color: tokenRef("text-muted"),
|
|
2718
|
+
fontSize: tokenRef("font-size-sm")
|
|
2719
|
+
},
|
|
2720
|
+
list: { gap: "7px" },
|
|
2721
|
+
file: {
|
|
2722
|
+
padding: "10.5px 12.25px",
|
|
2723
|
+
gap: "12.25px",
|
|
2724
|
+
borderRadius: tokenRef("radius-lg"),
|
|
2725
|
+
borderColor: tokenRef("surface-border"),
|
|
2726
|
+
background: tokenRef("surface-card"),
|
|
2727
|
+
nameFontWeight: tokenRef("font-weight-medium"),
|
|
2728
|
+
metaColor: tokenRef("text-muted"),
|
|
2729
|
+
metaFontSize: tokenRef("font-size-sm"),
|
|
2730
|
+
metaGap: "4px",
|
|
2731
|
+
successColor: tokenRef("success-base"),
|
|
2732
|
+
errorColor: tokenRef("danger-base")
|
|
2733
|
+
},
|
|
2734
|
+
thumbnail: {
|
|
2735
|
+
size: "40px",
|
|
2736
|
+
borderRadius: tokenRef("radius-md"),
|
|
2737
|
+
background: mix(tokenRef("text-primary"), "6%", tokenRef("surface-card")),
|
|
2738
|
+
color: tokenRef("text-muted"),
|
|
2739
|
+
glyphSize: "17.5px",
|
|
2740
|
+
extensionFontSize: "8.75px",
|
|
2741
|
+
largeSize: "56px",
|
|
2742
|
+
largeBorderRadius: tokenRef("radius-lg"),
|
|
2743
|
+
largeGlyphSize: "24.5px",
|
|
2744
|
+
largeExtensionFontSize: "10.5px",
|
|
2745
|
+
imageColor: lightDark(tokenRef("sky-600"), tokenRef("sky-400")),
|
|
2746
|
+
documentColor: lightDark(tokenRef("sky-600"), tokenRef("sky-400")),
|
|
2747
|
+
pdfColor: lightDark(tokenRef("red-600"), tokenRef("red-400")),
|
|
2748
|
+
sheetColor: lightDark(tokenRef("green-600"), tokenRef("green-400")),
|
|
2749
|
+
archiveColor: lightDark(tokenRef("orange-600"), tokenRef("orange-400")),
|
|
2750
|
+
tint: "12%"
|
|
2751
|
+
},
|
|
2752
|
+
progress: {
|
|
2753
|
+
height: "3px",
|
|
2754
|
+
marginTop: "6px",
|
|
2755
|
+
background: mix(tokenRef("text-primary"), "8%", tokenRef("surface-card")),
|
|
2756
|
+
color: tokenRef("primary-base"),
|
|
2757
|
+
successColor: tokenRef("success-base"),
|
|
2758
|
+
errorColor: tokenRef("danger-base")
|
|
2759
|
+
},
|
|
2760
|
+
message: {
|
|
2761
|
+
padding: "8.75px 12.25px",
|
|
2762
|
+
gap: "8.75px",
|
|
2763
|
+
borderRadius: tokenRef("radius-lg"),
|
|
2764
|
+
background: mix(tokenRef("danger-base"), "9%", tokenRef("surface-card")),
|
|
2765
|
+
color: tokenRef("danger-base"),
|
|
2766
|
+
fontSize: tokenRef("font-size-sm")
|
|
2767
|
+
},
|
|
2768
|
+
footer: {
|
|
2769
|
+
gap: "10.5px",
|
|
2770
|
+
summaryColor: tokenRef("text-muted"),
|
|
2771
|
+
summaryFontSize: tokenRef("font-size-sm")
|
|
2772
|
+
},
|
|
2773
|
+
selected: {
|
|
2774
|
+
gap: "8.75px",
|
|
2775
|
+
background: tokenRef("surface-card"),
|
|
2776
|
+
borderColor: tokenRef("surface-border"),
|
|
2777
|
+
progressWidth: "240px",
|
|
2778
|
+
actionsGap: "3.5px"
|
|
2779
|
+
},
|
|
2780
|
+
basic: {
|
|
2781
|
+
gap: "10.5px",
|
|
2782
|
+
labelColor: tokenRef("text-muted"),
|
|
2783
|
+
labelFontSize: tokenRef("font-size-sm")
|
|
2784
|
+
}
|
|
2785
|
+
};
|
|
2786
|
+
const editorContentTokens = {
|
|
2787
|
+
root: {
|
|
2788
|
+
color: tokenRef("text-primary"),
|
|
2789
|
+
fontSize: tokenRef("font-size-md"),
|
|
2790
|
+
lineHeight: "1.625",
|
|
2791
|
+
paragraphGap: "0",
|
|
2792
|
+
blockGap: "0.5em"
|
|
2793
|
+
},
|
|
2794
|
+
heading: {
|
|
2795
|
+
fontWeight: tokenRef("font-weight-semibold"),
|
|
2796
|
+
lineHeight: "1.3",
|
|
2797
|
+
spaceBefore: "0.6em",
|
|
2798
|
+
spaceAfter: "0.15em",
|
|
2799
|
+
h1Size: "1.75em",
|
|
2800
|
+
h2Size: "1.45em",
|
|
2801
|
+
h3Size: "1.225em",
|
|
2802
|
+
h4Size: "1.075em",
|
|
2803
|
+
h5Size: "1em",
|
|
2804
|
+
h6Size: "0.875em",
|
|
2805
|
+
h6Color: tokenRef("text-muted")
|
|
2806
|
+
},
|
|
2807
|
+
link: {
|
|
2808
|
+
color: tokenRef("primary-base"),
|
|
2809
|
+
underlineColor: mix(tokenRef("primary-base"), "35%", "transparent"),
|
|
2810
|
+
hoverUnderlineColor: tokenRef("primary-base")
|
|
2811
|
+
},
|
|
2812
|
+
list: {
|
|
2813
|
+
indent: "1.5em",
|
|
2814
|
+
itemGap: "0.1em",
|
|
2815
|
+
markerColor: tokenRef("text-muted")
|
|
2816
|
+
},
|
|
2817
|
+
task: {
|
|
2818
|
+
size: "16px",
|
|
2819
|
+
gap: "8.75px",
|
|
2490
2820
|
borderRadius: tokenRef("radius-sm"),
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2821
|
+
borderColor: tokenRef("form-field-border-color"),
|
|
2822
|
+
checkedBackground: tokenRef("primary-base"),
|
|
2823
|
+
checkedColor: tokenRef("primary-contrast"),
|
|
2824
|
+
doneColor: tokenRef("text-muted")
|
|
2825
|
+
},
|
|
2826
|
+
quote: {
|
|
2827
|
+
borderWidth: "3px",
|
|
2828
|
+
borderColor: mix(tokenRef("primary-base"), "45%", tokenRef("surface-card")),
|
|
2829
|
+
padding: "0 0 0 14px",
|
|
2830
|
+
color: tokenRef("text-muted")
|
|
2831
|
+
},
|
|
2832
|
+
code: {
|
|
2833
|
+
fontFamily: tokenRef("font-family-mono"),
|
|
2834
|
+
fontSize: "0.875em",
|
|
2835
|
+
padding: "0.15em 0.4em",
|
|
2836
|
+
borderRadius: tokenRef("radius-sm"),
|
|
2837
|
+
background: mix(tokenRef("text-primary"), "7%", tokenRef("surface-card")),
|
|
2838
|
+
color: tokenRef("text-primary")
|
|
2839
|
+
},
|
|
2840
|
+
codeBlock: {
|
|
2841
|
+
padding: "12.25px 14px",
|
|
2842
|
+
borderRadius: tokenRef("radius-lg"),
|
|
2843
|
+
background: mix(tokenRef("text-primary"), "4.5%", tokenRef("surface-card")),
|
|
2844
|
+
borderColor: tokenRef("surface-border"),
|
|
2845
|
+
fontSize: "0.85em",
|
|
2846
|
+
lineHeight: "1.6"
|
|
2847
|
+
},
|
|
2848
|
+
rule: {
|
|
2849
|
+
color: tokenRef("surface-border"),
|
|
2850
|
+
spacing: "0.75em"
|
|
2851
|
+
},
|
|
2852
|
+
image: {
|
|
2853
|
+
borderRadius: tokenRef("radius-lg"),
|
|
2854
|
+
selectedOutline: `2px solid ${tokenRef("primary-base")}`
|
|
2855
|
+
},
|
|
2856
|
+
video: {
|
|
2857
|
+
borderRadius: tokenRef("radius-lg"),
|
|
2858
|
+
aspectRatio: "16 / 9"
|
|
2859
|
+
},
|
|
2860
|
+
mention: {
|
|
2861
|
+
padding: "0.05em 0.35em",
|
|
2862
|
+
borderRadius: tokenRef("radius-sm"),
|
|
2863
|
+
background: mix(tokenRef("primary-base"), "12%", tokenRef("surface-card")),
|
|
2864
|
+
color: tokenRef("primary-base"),
|
|
2865
|
+
fontWeight: tokenRef("font-weight-medium")
|
|
2866
|
+
},
|
|
2867
|
+
callout: {
|
|
2868
|
+
paddingBlock: "12.25px",
|
|
2869
|
+
paddingInlineEnd: "14px",
|
|
2870
|
+
paddingInlineStart: "42px",
|
|
2871
|
+
borderRadius: tokenRef("radius-lg"),
|
|
2872
|
+
tint: "10%",
|
|
2873
|
+
markerSize: "18px",
|
|
2874
|
+
markerStart: "14px",
|
|
2875
|
+
markerFontSize: "11px",
|
|
2876
|
+
infoColor: lightDark(tokenRef("sky-600"), tokenRef("sky-400")),
|
|
2877
|
+
successColor: lightDark(tokenRef("green-600"), tokenRef("green-400")),
|
|
2878
|
+
warnColor: lightDark(tokenRef("orange-600"), tokenRef("orange-400")),
|
|
2879
|
+
dangerColor: lightDark(tokenRef("red-600"), tokenRef("red-400")),
|
|
2880
|
+
markerColor: tokenRef("surface-0")
|
|
2881
|
+
},
|
|
2882
|
+
table: {
|
|
2883
|
+
borderColor: tokenRef("surface-border"),
|
|
2884
|
+
headerBackground: mix(tokenRef("text-primary"), "4%", tokenRef("surface-card")),
|
|
2885
|
+
cellPadding: "7px 10.5px"
|
|
2886
|
+
}
|
|
2887
|
+
};
|
|
2888
|
+
const editorTokens = {
|
|
2889
|
+
root: {
|
|
2890
|
+
borderRadius: tokenRef("radius-lg"),
|
|
2891
|
+
background: tokenRef("form-field-background"),
|
|
2892
|
+
transitionDuration: "0.2s",
|
|
2893
|
+
easing: "cubic-bezier(0.2, 0, 0, 1)"
|
|
2894
|
+
},
|
|
2895
|
+
toolbar: {
|
|
2896
|
+
padding: "5.25px",
|
|
2897
|
+
gap: "1.75px",
|
|
2898
|
+
background: mix(tokenRef("text-primary"), "2.5%", tokenRef("form-field-background")),
|
|
2899
|
+
borderColor: tokenRef("surface-border"),
|
|
2900
|
+
separatorColor: tokenRef("surface-border"),
|
|
2901
|
+
separatorHeight: "17.5px",
|
|
2902
|
+
separatorSpacing: "3.5px"
|
|
2903
|
+
},
|
|
2904
|
+
tool: {
|
|
2905
|
+
size: "29.75px",
|
|
2906
|
+
borderRadius: tokenRef("radius-md"),
|
|
2907
|
+
iconSize: "15px",
|
|
2908
|
+
color: tokenRef("text-muted"),
|
|
2909
|
+
hoverBackground: mix(tokenRef("text-primary"), "7%", "transparent"),
|
|
2910
|
+
hoverColor: tokenRef("text-primary"),
|
|
2911
|
+
activeBackground: mix(tokenRef("primary-base"), "13%", "transparent"),
|
|
2912
|
+
activeColor: tokenRef("primary-base"),
|
|
2913
|
+
disabledOpacity: "0.4",
|
|
2914
|
+
labelFontSize: tokenRef("font-size-sm"),
|
|
2915
|
+
labelFontWeight: tokenRef("font-weight-medium"),
|
|
2916
|
+
labelPadding: "0 8.75px",
|
|
2917
|
+
focusRingWidth: "2px",
|
|
2918
|
+
focusRingColor: tokenRef("focus-ring-color")
|
|
2919
|
+
},
|
|
2920
|
+
ai: {
|
|
2921
|
+
background: mix(tokenRef("primary-base"), "10%", "transparent"),
|
|
2922
|
+
hoverBackground: mix(tokenRef("primary-base"), "17%", "transparent"),
|
|
2923
|
+
color: tokenRef("primary-hover"),
|
|
2924
|
+
animationDuration: "3.2s"
|
|
2925
|
+
},
|
|
2926
|
+
content: {
|
|
2927
|
+
padding: "12.25px 15.75px",
|
|
2928
|
+
minHeight: "140px",
|
|
2929
|
+
placeholderColor: tokenRef("form-field-placeholder-color")
|
|
2930
|
+
},
|
|
2931
|
+
footer: {
|
|
2932
|
+
padding: "5.25px 12.25px",
|
|
2933
|
+
color: tokenRef("text-muted"),
|
|
2934
|
+
fontSize: tokenRef("font-size-xs"),
|
|
2935
|
+
limitColor: tokenRef("danger-base")
|
|
2936
|
+
},
|
|
2937
|
+
image: {
|
|
2938
|
+
handleWidth: "8px",
|
|
2939
|
+
handleHeight: "36px",
|
|
2940
|
+
handleBackground: tokenRef("surface-card"),
|
|
2941
|
+
handleBorderColor: tokenRef("primary-base"),
|
|
2942
|
+
handleShadow: tokenRef("shadow-overlay"),
|
|
2943
|
+
dropCursorColor: tokenRef("primary-base")
|
|
2944
|
+
},
|
|
2945
|
+
bubble: {
|
|
2946
|
+
padding: "3.5px",
|
|
2947
|
+
gap: "1.75px",
|
|
2948
|
+
borderRadius: tokenRef("radius-lg"),
|
|
2949
|
+
background: tokenRef("surface-overlay"),
|
|
2950
|
+
borderColor: tokenRef("surface-overlay-border"),
|
|
2951
|
+
shadow: tokenRef("shadow-overlay"),
|
|
2952
|
+
offset: "8px",
|
|
2953
|
+
linkMaxWidth: "240px"
|
|
2954
|
+
},
|
|
2955
|
+
popover: {
|
|
2956
|
+
padding: "10.5px",
|
|
2957
|
+
gap: "8.75px",
|
|
2958
|
+
width: "300px"
|
|
2959
|
+
},
|
|
2960
|
+
swatch: {
|
|
2961
|
+
size: "22px",
|
|
2962
|
+
gap: "5.25px",
|
|
2963
|
+
borderRadius: tokenRef("radius-sm"),
|
|
2964
|
+
ring: mix(tokenRef("text-primary"), "14%", "transparent"),
|
|
2965
|
+
selectedRing: tokenRef("primary-base")
|
|
2966
|
+
},
|
|
2967
|
+
suggestion: {
|
|
2968
|
+
width: "264px",
|
|
2969
|
+
maxHeight: "260px",
|
|
2970
|
+
padding: "4px",
|
|
2971
|
+
itemPadding: "7px 10.5px",
|
|
2972
|
+
itemGap: "8.75px",
|
|
2973
|
+
itemRadius: tokenRef("radius-sm"),
|
|
2974
|
+
itemFocusBackground: tokenRef("list-focus-background"),
|
|
2975
|
+
avatarSize: "22px",
|
|
2976
|
+
secondaryColor: tokenRef("text-muted")
|
|
2977
|
+
}
|
|
2978
|
+
};
|
|
2979
|
+
const accordionTokens = {
|
|
2980
|
+
root: {
|
|
2981
|
+
transitionDuration: "0.15s",
|
|
2982
|
+
expandDuration: "0.25s",
|
|
2983
|
+
expandEasing: "cubic-bezier(0.2, 0, 0, 1)",
|
|
2984
|
+
disabledOpacity: "0.6"
|
|
2985
|
+
},
|
|
2986
|
+
panel: {
|
|
2987
|
+
borderWidth: "0",
|
|
2988
|
+
borderColor: tokenRef("surface-border")
|
|
2989
|
+
},
|
|
2990
|
+
header: {
|
|
2991
|
+
padding: "14px",
|
|
2992
|
+
gap: "7px",
|
|
2993
|
+
fontSize: tokenRef("font-size-md"),
|
|
2994
|
+
fontWeight: tokenRef("font-weight-semibold"),
|
|
2995
|
+
color: tokenRef("text-muted"),
|
|
2996
|
+
hoverColor: tokenRef("text-primary"),
|
|
2997
|
+
activeColor: tokenRef("text-primary"),
|
|
2998
|
+
activeHoverColor: tokenRef("text-primary"),
|
|
2999
|
+
background: tokenRef("surface-card"),
|
|
3000
|
+
hoverBackground: tokenRef("surface-card"),
|
|
3001
|
+
activeBackground: tokenRef("surface-card"),
|
|
3002
|
+
activeHoverBackground: tokenRef("surface-card"),
|
|
3003
|
+
borderWidth: "0 1px 1px 1px",
|
|
3004
|
+
borderColor: tokenRef("surface-border"),
|
|
3005
|
+
borderRadius: "0",
|
|
3006
|
+
focusRing: {
|
|
3007
|
+
width: "2px",
|
|
3008
|
+
color: tokenRef("focus-ring-color"),
|
|
3009
|
+
offset: "-1px"
|
|
3010
|
+
},
|
|
3011
|
+
toggleIcon: {
|
|
3012
|
+
size: "14px",
|
|
3013
|
+
color: tokenRef("text-muted"),
|
|
3014
|
+
hoverColor: tokenRef("text-primary"),
|
|
3015
|
+
activeColor: tokenRef("text-primary"),
|
|
3016
|
+
activeHoverColor: tokenRef("text-primary")
|
|
3017
|
+
},
|
|
3018
|
+
first: {
|
|
3019
|
+
borderWidth: "1px",
|
|
3020
|
+
topBorderRadius: tokenRef("radius-lg")
|
|
3021
|
+
},
|
|
3022
|
+
last: {
|
|
3023
|
+
bottomBorderRadius: tokenRef("radius-lg"),
|
|
3024
|
+
activeBottomBorderRadius: "0"
|
|
3025
|
+
}
|
|
3026
|
+
},
|
|
3027
|
+
content: {
|
|
3028
|
+
padding: "15px 14px 14px 14px",
|
|
3029
|
+
borderWidth: "0 1px 1px 1px",
|
|
3030
|
+
borderColor: tokenRef("surface-border"),
|
|
3031
|
+
background: tokenRef("surface-card"),
|
|
3032
|
+
color: tokenRef("text-primary"),
|
|
3033
|
+
lastBottomBorderRadius: tokenRef("radius-lg")
|
|
3034
|
+
},
|
|
3035
|
+
tone: {
|
|
3036
|
+
width: "3px",
|
|
3037
|
+
info: lightDark(tokenRef("sky-600"), tokenRef("sky-400")),
|
|
3038
|
+
success: lightDark(tokenRef("green-600"), tokenRef("green-400")),
|
|
3039
|
+
warn: lightDark(tokenRef("orange-600"), tokenRef("orange-400")),
|
|
3040
|
+
danger: lightDark(tokenRef("red-600"), tokenRef("red-400"))
|
|
3041
|
+
}
|
|
3042
|
+
};
|
|
3043
|
+
const iconTokens = { root: {
|
|
3044
|
+
size: "1em",
|
|
3045
|
+
strokeWidth: "1.75"
|
|
3046
|
+
} };
|
|
3047
|
+
const rippleTokens = { root: {
|
|
3048
|
+
color: "currentColor",
|
|
3049
|
+
opacity: "0.2",
|
|
3050
|
+
enterDuration: "450ms",
|
|
3051
|
+
exitDuration: "350ms",
|
|
3052
|
+
easing: "cubic-bezier(0.2, 0, 0, 1)"
|
|
3053
|
+
} };
|
|
3054
|
+
const toggleButtonTokens = {
|
|
3055
|
+
root: {
|
|
3056
|
+
padding: "4px",
|
|
3057
|
+
borderRadius: tokenRef("radius-md"),
|
|
3058
|
+
gap: "8px",
|
|
3059
|
+
fontWeight: tokenRef("font-weight-medium"),
|
|
3060
|
+
fontSize: tokenRef("font-size-md"),
|
|
3061
|
+
background: lightDark(tokenRef("surface-100"), tokenRef("surface-950")),
|
|
3062
|
+
checkedBackground: lightDark(tokenRef("surface-100"), tokenRef("surface-950")),
|
|
3063
|
+
hoverBackground: lightDark(tokenRef("surface-100"), tokenRef("surface-950")),
|
|
3064
|
+
borderColor: lightDark(tokenRef("surface-200"), tokenRef("surface-800")),
|
|
3065
|
+
checkedBorderColor: lightDark(tokenRef("surface-200"), tokenRef("surface-800")),
|
|
3066
|
+
color: lightDark(tokenRef("surface-600"), tokenRef("surface-400")),
|
|
3067
|
+
hoverColor: lightDark(tokenRef("surface-800"), tokenRef("surface-300")),
|
|
3068
|
+
checkedColor: lightDark(tokenRef("surface-900"), tokenRef("surface-0")),
|
|
3069
|
+
disabledBackground: tokenRef("field-disabled-background"),
|
|
3070
|
+
disabledBorderColor: tokenRef("field-disabled-background"),
|
|
3071
|
+
disabledColor: tokenRef("text-muted"),
|
|
3072
|
+
invalidBorderColor: tokenRef("danger-base"),
|
|
3073
|
+
focusRing: {
|
|
3074
|
+
width: "2px",
|
|
3075
|
+
style: "solid",
|
|
3076
|
+
color: tokenRef("focus-ring-color"),
|
|
3077
|
+
offset: "2px"
|
|
3078
|
+
},
|
|
3079
|
+
transitionDuration: tokenRef("motion-duration"),
|
|
3080
|
+
sm: {
|
|
3081
|
+
fontSize: tokenRef("font-size-sm"),
|
|
3082
|
+
padding: "3px"
|
|
3083
|
+
},
|
|
3084
|
+
lg: {
|
|
3085
|
+
fontSize: tokenRef("font-size-lg"),
|
|
3086
|
+
padding: "5px"
|
|
3087
|
+
}
|
|
3088
|
+
},
|
|
3089
|
+
icon: {
|
|
3090
|
+
color: lightDark(tokenRef("surface-600"), tokenRef("surface-400")),
|
|
3091
|
+
hoverColor: lightDark(tokenRef("surface-700"), tokenRef("surface-300")),
|
|
3092
|
+
checkedColor: lightDark(tokenRef("surface-900"), tokenRef("surface-0")),
|
|
3093
|
+
disabledColor: tokenRef("text-muted")
|
|
3094
|
+
},
|
|
3095
|
+
content: {
|
|
3096
|
+
padding: "4px 10px",
|
|
3097
|
+
borderRadius: tokenRef("radius-sm"),
|
|
3098
|
+
checkedBackground: lightDark(tokenRef("surface-0"), tokenRef("surface-800")),
|
|
3099
|
+
checkedShadow: "0px 1px 2px 0px rgba(0, 0, 0, 0.02), 0px 1px 2px 0px rgba(0, 0, 0, 0.04)",
|
|
3100
|
+
sm: { padding: "3px 8px" },
|
|
3101
|
+
lg: { padding: "5px 12px" }
|
|
3102
|
+
}
|
|
3103
|
+
};
|
|
3104
|
+
const numberShadow = "0px 0.5px 0px 0px rgba(0, 0, 0, 0.06), 0px 1px 1px 0px rgba(0, 0, 0, 0.12)";
|
|
3105
|
+
const focusRing = {
|
|
3106
|
+
width: "2px",
|
|
3107
|
+
style: "solid",
|
|
3108
|
+
color: tokenRef("focus-ring-color"),
|
|
3109
|
+
offset: "2px",
|
|
3110
|
+
shadow: "none"
|
|
3111
|
+
};
|
|
3112
|
+
const stepperTokens = {
|
|
3113
|
+
root: {
|
|
3114
|
+
transitionDuration: tokenRef("motion-duration"),
|
|
3115
|
+
panelTransitionDuration: "0.25s"
|
|
3116
|
+
},
|
|
3117
|
+
separator: {
|
|
3118
|
+
background: tokenRef("surface-border"),
|
|
3119
|
+
activeBackground: tokenRef("primary-base"),
|
|
3120
|
+
margin: "0 0 0 19.25px",
|
|
3121
|
+
size: "2px"
|
|
3122
|
+
},
|
|
3123
|
+
step: {
|
|
3124
|
+
padding: "5.25px",
|
|
3125
|
+
gap: "12.25px"
|
|
3126
|
+
},
|
|
3127
|
+
stepHeader: {
|
|
3128
|
+
padding: "0",
|
|
3129
|
+
borderRadius: tokenRef("radius-lg"),
|
|
3130
|
+
gap: "7px",
|
|
3131
|
+
disabledOpacity: "0.6",
|
|
3132
|
+
focusRing
|
|
3133
|
+
},
|
|
3134
|
+
stepTitle: {
|
|
3135
|
+
color: tokenRef("text-muted"),
|
|
3136
|
+
activeColor: tokenRef("primary-base"),
|
|
3137
|
+
fontWeight: tokenRef("font-weight-medium"),
|
|
3138
|
+
fontSize: tokenRef("font-size-md")
|
|
3139
|
+
},
|
|
3140
|
+
stepNumber: {
|
|
3141
|
+
background: tokenRef("surface-card"),
|
|
3142
|
+
activeBackground: tokenRef("surface-card"),
|
|
3143
|
+
borderColor: tokenRef("surface-border"),
|
|
3144
|
+
activeBorderColor: tokenRef("surface-border"),
|
|
3145
|
+
borderWidth: "2px",
|
|
3146
|
+
color: tokenRef("text-muted"),
|
|
3147
|
+
activeColor: tokenRef("primary-base"),
|
|
3148
|
+
size: "28px",
|
|
3149
|
+
fontSize: "14px",
|
|
3150
|
+
fontWeight: tokenRef("font-weight-medium"),
|
|
3151
|
+
borderRadius: "50%",
|
|
3152
|
+
shadow: numberShadow
|
|
3153
|
+
},
|
|
3154
|
+
steppanels: { padding: "10.5px 5.25px 14px 5.25px" },
|
|
3155
|
+
steppanel: {
|
|
3156
|
+
background: "transparent",
|
|
3157
|
+
color: tokenRef("text-primary"),
|
|
3158
|
+
padding: "0",
|
|
3159
|
+
indent: "12.25px"
|
|
3160
|
+
}
|
|
3161
|
+
};
|
|
3162
|
+
const stepsTokens = {
|
|
3163
|
+
root: { transitionDuration: tokenRef("motion-duration") },
|
|
3164
|
+
separator: {
|
|
3165
|
+
background: tokenRef("surface-border"),
|
|
3166
|
+
size: "2px"
|
|
3167
|
+
},
|
|
3168
|
+
itemLink: {
|
|
3169
|
+
borderRadius: tokenRef("radius-lg"),
|
|
3170
|
+
gap: "7px",
|
|
3171
|
+
focusRing
|
|
3172
|
+
},
|
|
3173
|
+
itemLabel: {
|
|
3174
|
+
color: tokenRef("text-muted"),
|
|
3175
|
+
activeColor: tokenRef("primary-base"),
|
|
3176
|
+
fontWeight: tokenRef("font-weight-medium"),
|
|
3177
|
+
fontSize: tokenRef("font-size-md")
|
|
3178
|
+
},
|
|
3179
|
+
itemNumber: {
|
|
3180
|
+
background: tokenRef("surface-card"),
|
|
3181
|
+
activeBackground: tokenRef("surface-card"),
|
|
3182
|
+
borderColor: tokenRef("surface-border"),
|
|
3183
|
+
activeBorderColor: tokenRef("surface-border"),
|
|
3184
|
+
borderWidth: "2px",
|
|
3185
|
+
color: tokenRef("text-muted"),
|
|
3186
|
+
activeColor: tokenRef("primary-base"),
|
|
3187
|
+
size: "28px",
|
|
3188
|
+
fontSize: "16px",
|
|
3189
|
+
fontWeight: tokenRef("font-weight-medium"),
|
|
3190
|
+
borderRadius: "50%",
|
|
3191
|
+
shadow: numberShadow
|
|
3192
|
+
},
|
|
3193
|
+
track: {
|
|
3194
|
+
gap: "7px",
|
|
3195
|
+
buttonPadding: "5.25px 7px",
|
|
3196
|
+
buttonGap: "10.5px",
|
|
3197
|
+
buttonBorderRadius: tokenRef("radius-md"),
|
|
3198
|
+
buttonHoverBackground: tokenRef("surface-hover"),
|
|
3199
|
+
textGap: "1.75px",
|
|
3200
|
+
markerSize: "31.5px",
|
|
3201
|
+
markerFontSize: "12.25px",
|
|
3202
|
+
markerFontWeight: tokenRef("font-weight-semibold"),
|
|
3203
|
+
markerBackground: tokenRef("surface-ground"),
|
|
3204
|
+
markerColor: tokenRef("text-muted"),
|
|
3205
|
+
markerBorderColor: tokenRef("surface-border"),
|
|
3206
|
+
markerBorderWidth: "1px",
|
|
3207
|
+
labelFontSize: "12.25px",
|
|
3208
|
+
labelFontWeight: tokenRef("font-weight-semibold"),
|
|
3209
|
+
labelColor: tokenRef("text-muted"),
|
|
3210
|
+
descriptionFontSize: "10.5px",
|
|
3211
|
+
descriptionColor: tokenRef("text-muted"),
|
|
3212
|
+
lineSize: "1px",
|
|
3213
|
+
lineMargin: "14px",
|
|
3214
|
+
lineMinWidth: "28px",
|
|
3215
|
+
lineBackground: tokenRef("surface-border"),
|
|
3216
|
+
doneLineBackground: mix(tokenRef("green-500"), "45%", tokenRef("surface-border")),
|
|
3217
|
+
doneMarkerBackground: fade(tokenRef("green-500"), "86%"),
|
|
3218
|
+
doneMarkerColor: lightDark(tokenRef("green-600"), tokenRef("green-400")),
|
|
3219
|
+
doneMarkerBorderColor: fade(tokenRef("green-500"), "70%"),
|
|
3220
|
+
doneLabelColor: tokenRef("text-primary"),
|
|
3221
|
+
activeMarkerBackground: tokenRef("primary-base"),
|
|
3222
|
+
activeMarkerColor: tokenRef("primary-contrast"),
|
|
3223
|
+
activeLabelColor: tokenRef("primary-base"),
|
|
3224
|
+
buttonOffset: "-7px",
|
|
3225
|
+
disabledOpacity: "0.6"
|
|
3226
|
+
}
|
|
3227
|
+
};
|
|
3228
|
+
const breadcrumbTokens = {
|
|
3229
|
+
root: {
|
|
3230
|
+
padding: "0",
|
|
3231
|
+
background: "transparent",
|
|
3232
|
+
gap: "7px",
|
|
3233
|
+
transitionDuration: tokenRef("motion-duration")
|
|
3234
|
+
},
|
|
3235
|
+
item: {
|
|
3236
|
+
color: tokenRef("text-muted"),
|
|
3237
|
+
hoverColor: tokenRef("text-primary"),
|
|
3238
|
+
borderRadius: tokenRef("radius-lg"),
|
|
3239
|
+
gap: "7px",
|
|
3240
|
+
fontSize: tokenRef("font-size-md"),
|
|
3241
|
+
fontWeight: tokenRef("font-weight-regular"),
|
|
3242
|
+
iconColor: lightDark(tokenRef("surface-400"), tokenRef("surface-500")),
|
|
3243
|
+
iconHoverColor: lightDark(tokenRef("surface-500"), tokenRef("surface-400")),
|
|
3244
|
+
iconSize: "14px",
|
|
3245
|
+
disabledOpacity: "0.6",
|
|
3246
|
+
focusRingWidth: "2px",
|
|
3247
|
+
focusRingColor: tokenRef("focus-ring-color"),
|
|
3248
|
+
focusRingOffset: "2px"
|
|
3249
|
+
},
|
|
3250
|
+
current: {
|
|
3251
|
+
color: tokenRef("text-primary"),
|
|
3252
|
+
fontWeight: tokenRef("font-weight-semibold")
|
|
3253
|
+
},
|
|
3254
|
+
separator: {
|
|
3255
|
+
color: lightDark(tokenRef("surface-400"), tokenRef("surface-500")),
|
|
3256
|
+
iconSize: "14px"
|
|
3257
|
+
},
|
|
3258
|
+
slash: {
|
|
3259
|
+
color: tokenRef("surface-border"),
|
|
3260
|
+
fontSize: "15.75px"
|
|
3261
|
+
}
|
|
3262
|
+
};
|
|
3263
|
+
const panelMenuTokens = {
|
|
3264
|
+
root: {
|
|
3265
|
+
gap: "7px",
|
|
3266
|
+
transitionDuration: "0.15s",
|
|
3267
|
+
expandDuration: "400ms",
|
|
3268
|
+
expandEasing: "cubic-bezier(0.86, 0, 0.07, 1)",
|
|
3269
|
+
fontSize: tokenRef("font-size-md"),
|
|
3270
|
+
lineHeight: "1.45"
|
|
3271
|
+
},
|
|
3272
|
+
panel: {
|
|
3273
|
+
background: tokenRef("surface-card"),
|
|
3274
|
+
borderColor: tokenRef("surface-border"),
|
|
3275
|
+
borderWidth: "1px",
|
|
3276
|
+
color: tokenRef("text-primary"),
|
|
3277
|
+
padding: "5.25px",
|
|
3278
|
+
borderRadius: tokenRef("radius-lg")
|
|
3279
|
+
},
|
|
3280
|
+
list: { gap: "2px" },
|
|
3281
|
+
item: {
|
|
3282
|
+
padding: "7px 10.5px",
|
|
3283
|
+
gap: "7px",
|
|
3284
|
+
borderRadius: tokenRef("radius-sm"),
|
|
3285
|
+
color: tokenRef("text-primary"),
|
|
3286
|
+
fontWeight: tokenRef("font-weight-regular"),
|
|
3287
|
+
focusBackground: lightDark(tokenRef("surface-100"), tokenRef("surface-800")),
|
|
3288
|
+
focusColor: tokenRef("text-hover"),
|
|
3289
|
+
activeBackground: lightDark(tokenRef("surface-100"), tokenRef("surface-800")),
|
|
3290
|
+
activeColor: tokenRef("text-hover"),
|
|
3291
|
+
disabledOpacity: "0.6",
|
|
3292
|
+
focusRingWidth: "2px",
|
|
3293
|
+
focusRingColor: tokenRef("focus-ring-color"),
|
|
3294
|
+
focusRingOffset: "-2px"
|
|
3295
|
+
},
|
|
3296
|
+
icon: {
|
|
3297
|
+
size: "14px",
|
|
3298
|
+
color: lightDark(tokenRef("surface-400"), tokenRef("surface-500")),
|
|
3299
|
+
focusColor: lightDark(tokenRef("surface-500"), tokenRef("surface-400"))
|
|
3300
|
+
},
|
|
3301
|
+
submenu: { indent: "14px" },
|
|
3302
|
+
submenuIcon: {
|
|
3303
|
+
size: "10.5px",
|
|
3304
|
+
color: lightDark(tokenRef("surface-400"), tokenRef("surface-500")),
|
|
3305
|
+
focusColor: lightDark(tokenRef("surface-500"), tokenRef("surface-400"))
|
|
3306
|
+
},
|
|
3307
|
+
separator: {
|
|
3308
|
+
color: tokenRef("surface-border"),
|
|
3309
|
+
margin: "2px 0"
|
|
3310
|
+
},
|
|
3311
|
+
sidebar: {
|
|
3312
|
+
sectionPadding: "17.5px 21px 5.25px",
|
|
3313
|
+
sectionFontSize: "11.375px",
|
|
3314
|
+
sectionFontWeight: tokenRef("font-weight-semibold"),
|
|
3315
|
+
sectionColor: tokenRef("text-muted"),
|
|
3316
|
+
itemMargin: "1px 10.5px",
|
|
3317
|
+
itemPadding: "7.875px 12.25px 7.875px 16.8px",
|
|
3318
|
+
itemBadgePaddingEnd: "7px",
|
|
3319
|
+
itemBorderRadius: tokenRef("radius-md"),
|
|
3320
|
+
itemFontWeight: tokenRef("font-weight-medium"),
|
|
3321
|
+
itemColor: lightDark(tokenRef("surface-700"), tokenRef("surface-200")),
|
|
3322
|
+
itemHoverBackground: lightDark(tokenRef("surface-100"), tokenRef("surface-800")),
|
|
3323
|
+
itemHoverColor: lightDark(tokenRef("surface-950"), tokenRef("surface-0")),
|
|
3324
|
+
iconSize: "14px",
|
|
3325
|
+
iconGap: "10.5px",
|
|
3326
|
+
iconColor: lightDark(tokenRef("surface-500"), tokenRef("surface-400")),
|
|
3327
|
+
activeBackground: tokenRef("primary-base"),
|
|
3328
|
+
activeColor: tokenRef("primary-contrast"),
|
|
3329
|
+
activeHoverBackground: tokenRef("primary-hover"),
|
|
3330
|
+
activeFontWeight: tokenRef("font-weight-semibold"),
|
|
3331
|
+
indent1: "16.8px",
|
|
3332
|
+
indent2: "25.2px",
|
|
3333
|
+
indent3: "38.5px",
|
|
3334
|
+
indentStep: "8.75px",
|
|
3335
|
+
togglerSize: "10.5px",
|
|
3336
|
+
disabledOpacity: "0.7",
|
|
3337
|
+
focusShadow: `0 0 0 2px ${tokenRef("surface-card")}, 0 0 0 4px ${tokenRef("focus-ring-color")}`,
|
|
3338
|
+
badgeSize: "15.75px",
|
|
3339
|
+
badgePadding: "0 4.375px",
|
|
3340
|
+
badgeGap: "5.25px",
|
|
3341
|
+
badgeFontSize: "8.75px",
|
|
3342
|
+
badgeFontWeight: tokenRef("font-weight-semibold"),
|
|
3343
|
+
badgeBackground: tokenRef("red-600"),
|
|
3344
|
+
badgeColor: tokenRef("surface-0"),
|
|
3345
|
+
lockSize: "10.5px",
|
|
3346
|
+
lockGap: "7px",
|
|
3347
|
+
lockColor: tokenRef("text-muted")
|
|
3348
|
+
}
|
|
3349
|
+
};
|
|
3350
|
+
const imageTokens = {
|
|
3351
|
+
root: {
|
|
3352
|
+
transitionDuration: tokenRef("motion-duration"),
|
|
3353
|
+
easing: "cubic-bezier(0.2, 0, 0, 1)"
|
|
3354
|
+
},
|
|
3355
|
+
preview: {
|
|
3356
|
+
iconSize: "17.5px",
|
|
3357
|
+
maskBackground: tokenRef("mask-background"),
|
|
3358
|
+
maskColor: tokenRef("surface-200"),
|
|
3359
|
+
background: tokenRef("mask-background")
|
|
3360
|
+
},
|
|
3361
|
+
toolbar: {
|
|
3362
|
+
top: "14px",
|
|
3363
|
+
right: "14px",
|
|
3364
|
+
blur: "8px",
|
|
3365
|
+
background: "rgba(255, 255, 255, 0.1)",
|
|
3366
|
+
borderColor: "rgba(255, 255, 255, 0.2)",
|
|
3367
|
+
borderWidth: "1px",
|
|
3368
|
+
borderRadius: "30px",
|
|
3369
|
+
padding: "7px",
|
|
3370
|
+
gap: "7px"
|
|
3371
|
+
},
|
|
3372
|
+
action: {
|
|
3373
|
+
size: "36.75px",
|
|
3374
|
+
iconSize: "17.5px",
|
|
3375
|
+
borderRadius: "50%",
|
|
3376
|
+
color: tokenRef("surface-50"),
|
|
3377
|
+
hoverColor: tokenRef("surface-0"),
|
|
3378
|
+
hoverBackground: "rgba(255, 255, 255, 0.1)",
|
|
3379
|
+
disabledOpacity: "0.5",
|
|
3380
|
+
focusRingWidth: "2px",
|
|
3381
|
+
focusRingColor: tokenRef("focus-ring-color"),
|
|
3382
|
+
focusRingOffset: "2px"
|
|
3383
|
+
}
|
|
3384
|
+
};
|
|
3385
|
+
const galleriaTokens = {
|
|
3386
|
+
root: {
|
|
3387
|
+
borderWidth: "1px",
|
|
3388
|
+
borderColor: tokenRef("surface-border"),
|
|
3389
|
+
borderRadius: tokenRef("radius-lg"),
|
|
3390
|
+
background: tokenRef("surface-card"),
|
|
3391
|
+
transitionDuration: tokenRef("motion-duration"),
|
|
3392
|
+
easing: "cubic-bezier(0.2, 0, 0, 1)",
|
|
3393
|
+
slideDuration: "0.45s",
|
|
3394
|
+
slideEasing: "cubic-bezier(0.2, 0, 0, 1)"
|
|
3395
|
+
},
|
|
3396
|
+
navButton: {
|
|
3397
|
+
background: "rgba(255, 255, 255, 0.1)",
|
|
3398
|
+
hoverBackground: "rgba(255, 255, 255, 0.2)",
|
|
3399
|
+
color: tokenRef("surface-100"),
|
|
3400
|
+
hoverColor: tokenRef("surface-0"),
|
|
3401
|
+
size: "36.75px",
|
|
3402
|
+
gutter: "7px",
|
|
3403
|
+
borderRadius: "50%",
|
|
3404
|
+
iconSize: "17.5px"
|
|
3405
|
+
},
|
|
3406
|
+
thumbnails: {
|
|
3407
|
+
background: tokenRef("surface-card"),
|
|
3408
|
+
padding: "12.25px 3.5px",
|
|
3409
|
+
gap: "3.5px",
|
|
3410
|
+
itemOpacity: "0.5",
|
|
3411
|
+
itemBorderRadius: tokenRef("radius-md"),
|
|
3412
|
+
verticalWidth: "128px"
|
|
3413
|
+
},
|
|
3414
|
+
thumbnailNavButton: {
|
|
3415
|
+
size: "24.5px",
|
|
3416
|
+
iconSize: "12.25px",
|
|
3417
|
+
borderRadius: tokenRef("radius-lg"),
|
|
3418
|
+
gutter: "7px",
|
|
3419
|
+
hoverBackground: lightDark(tokenRef("surface-100"), tokenRef("surface-700")),
|
|
3420
|
+
color: lightDark(tokenRef("surface-600"), tokenRef("surface-400")),
|
|
3421
|
+
hoverColor: lightDark(tokenRef("surface-700"), tokenRef("surface-0"))
|
|
3422
|
+
},
|
|
3423
|
+
caption: {
|
|
3424
|
+
background: "rgba(0, 0, 0, 0.5)",
|
|
3425
|
+
color: tokenRef("surface-100"),
|
|
3426
|
+
padding: "12.25px"
|
|
3427
|
+
},
|
|
3428
|
+
indicatorList: {
|
|
3429
|
+
gap: "7px",
|
|
3430
|
+
padding: "12.25px"
|
|
3431
|
+
},
|
|
3432
|
+
indicator: {
|
|
3433
|
+
size: "12.25px",
|
|
3434
|
+
borderRadius: "50%",
|
|
3435
|
+
background: lightDark(tokenRef("surface-200"), tokenRef("surface-700")),
|
|
3436
|
+
hoverBackground: lightDark(tokenRef("surface-300"), tokenRef("surface-600")),
|
|
3437
|
+
activeBackground: tokenRef("primary-base")
|
|
3438
|
+
},
|
|
3439
|
+
insetIndicator: {
|
|
3440
|
+
listBackground: "rgba(0, 0, 0, 0.5)",
|
|
3441
|
+
background: "rgba(255, 255, 255, 0.4)",
|
|
3442
|
+
hoverBackground: "rgba(255, 255, 255, 0.6)",
|
|
3443
|
+
activeBackground: "rgba(255, 255, 255, 0.9)"
|
|
3444
|
+
},
|
|
3445
|
+
closeButton: {
|
|
3446
|
+
size: "36.75px",
|
|
3447
|
+
gutter: "7px",
|
|
3448
|
+
background: "rgba(255, 255, 255, 0.1)",
|
|
3449
|
+
hoverBackground: "rgba(255, 255, 255, 0.2)",
|
|
3450
|
+
color: tokenRef("surface-50"),
|
|
3451
|
+
hoverColor: tokenRef("surface-0"),
|
|
3452
|
+
borderRadius: "50%",
|
|
3453
|
+
iconSize: "17.5px"
|
|
3454
|
+
},
|
|
3455
|
+
mask: {
|
|
3456
|
+
background: "rgba(0, 0, 0, 0.9)",
|
|
3457
|
+
frameWidth: "min(calc(100vw - 112px), 960px)",
|
|
3458
|
+
imageMaxHeight: "72vh",
|
|
3459
|
+
thumbnailNavColor: tokenRef("surface-100"),
|
|
3460
|
+
thumbnailNavHoverBackground: "rgba(255, 255, 255, 0.1)"
|
|
3461
|
+
},
|
|
3462
|
+
focusRing: {
|
|
3463
|
+
width: "2px",
|
|
3464
|
+
color: tokenRef("focus-ring-color"),
|
|
3465
|
+
offset: "2px"
|
|
3466
|
+
}
|
|
3467
|
+
};
|
|
3468
|
+
const carouselTokens = {
|
|
3469
|
+
root: {
|
|
3470
|
+
transitionDuration: tokenRef("motion-duration"),
|
|
3471
|
+
slideDuration: "0.5s",
|
|
3472
|
+
slideEasing: "cubic-bezier(0.2, 0, 0, 1)"
|
|
3473
|
+
},
|
|
3474
|
+
content: { gap: "3.5px" },
|
|
3475
|
+
indicatorList: {
|
|
3476
|
+
padding: "14px",
|
|
3477
|
+
gap: "7px"
|
|
3478
|
+
},
|
|
3479
|
+
indicator: {
|
|
3480
|
+
width: "24.5px",
|
|
3481
|
+
height: "7px",
|
|
3482
|
+
hitArea: "24px",
|
|
3483
|
+
borderRadius: tokenRef("radius-lg"),
|
|
3484
|
+
background: lightDark(tokenRef("surface-200"), tokenRef("surface-700")),
|
|
3485
|
+
hoverBackground: lightDark(tokenRef("surface-300"), tokenRef("surface-600")),
|
|
3486
|
+
activeBackground: tokenRef("primary-base"),
|
|
3487
|
+
focusRingWidth: "2px",
|
|
3488
|
+
focusRingColor: tokenRef("focus-ring-color"),
|
|
3489
|
+
focusRingOffset: "2px"
|
|
2495
3490
|
}
|
|
2496
3491
|
};
|
|
2497
3492
|
const COMPONENT_TOKENS = {
|
|
@@ -2564,7 +3559,23 @@ const COMPONENT_TOKENS = {
|
|
|
2564
3559
|
datePicker: datePickerTokens,
|
|
2565
3560
|
monthCalendar: monthCalendarTokens,
|
|
2566
3561
|
countdown: countdownTokens,
|
|
2567
|
-
analogClock: analogClockTokens
|
|
3562
|
+
analogClock: analogClockTokens,
|
|
3563
|
+
tabs: tabsTokens,
|
|
3564
|
+
menubar: menubarTokens,
|
|
3565
|
+
accordion: accordionTokens,
|
|
3566
|
+
stepper: stepperTokens,
|
|
3567
|
+
steps: stepsTokens,
|
|
3568
|
+
breadcrumb: breadcrumbTokens,
|
|
3569
|
+
panelMenu: panelMenuTokens,
|
|
3570
|
+
splitter: splitterTokens,
|
|
3571
|
+
scrollPanel: scrollPanelTokens,
|
|
3572
|
+
toolbar: toolbarTokens,
|
|
3573
|
+
fileUpload: fileUploadTokens,
|
|
3574
|
+
editor: editorTokens,
|
|
3575
|
+
editorContent: editorContentTokens,
|
|
3576
|
+
image: imageTokens,
|
|
3577
|
+
galleria: galleriaTokens,
|
|
3578
|
+
carousel: carouselTokens
|
|
2568
3579
|
};
|
|
2569
3580
|
function edgeLight({ accent, surface }) {
|
|
2570
3581
|
const base = primaryBaseStep(accent);
|
|
@@ -4103,6 +5114,6 @@ function presetToCss(preset) {
|
|
|
4103
5114
|
...preset.css ? [preset.css] : []
|
|
4104
5115
|
].join("\n");
|
|
4105
5116
|
}
|
|
4106
|
-
export { COMPONENT_TOKENS, Edge, Paper, Soft, TECTRA_STYLES, Tectra, amountTokens, analogClockTokens, avatarTokens, badgeTokens, buttonTokens, cardTokens, cascadeSelectTokens, checkboxTokens, chipTokens, chipsInputTokens, colorPickerTokens, confirmTokens, contrastWithWhite, countdownTokens, countryTokens, createDarkSemantic, createLightSemantic, createTectraPreset, dataViewTokens, datePickerTokens, deepMerge, definePreset, dialogTokens, dividerTokens, emailSuggestionTokens, fade, fieldMessageTokens, fieldTokens, fieldsetTokens, floatLabelTokens, formFieldTokens, highlightTextTokens, iconLinkTokens, iconTokens, iftaLabelTokens, inputGroupTokens, inputNumberTokens, inputOtpTokens, knobTokens, labelTokens, lightDark, linkTokens, listboxTokens, mentionTokens, menuTokens, messageTokens, mix, monthCalendarTokens, noirScale, overlayBadgeTokens, paginatorTokens, panelTokens, passwordTokens, pillTokens, popoverTokens, presetToCss, primaryBaseStep, progressBarTokens, progressSpinnerTokens, radioButtonTokens, ratingTokens, relativeLuminance, rippleTokens, selectTokens, skeletonTokens, sliderTokens, sparklineTokens, speedDialTokens, splitButtonTokens, statTileTokens, statTilesTokens, statusIconTokens, tableTokens, tagTokens, textareaTokens, timelineTokens, toCssVariables, toStyleObject, toastTokens, toggleButtonTokens, toggleSwitchTokens, tokenRef, tooltipTokens, treeTableTokens, treeTokens, virtualScrollerTokens };
|
|
5117
|
+
export { COMPONENT_TOKENS, Edge, Paper, Soft, TECTRA_STYLES, Tectra, accordionTokens, amountTokens, analogClockTokens, avatarTokens, badgeTokens, breadcrumbTokens, buttonTokens, cardTokens, carouselTokens, cascadeSelectTokens, checkboxTokens, chipTokens, chipsInputTokens, colorPickerTokens, confirmTokens, contrastWithWhite, countdownTokens, countryTokens, createDarkSemantic, createLightSemantic, createTectraPreset, dataViewTokens, datePickerTokens, deepMerge, definePreset, dialogTokens, dividerTokens, editorContentTokens, editorTokens, emailSuggestionTokens, fade, fieldMessageTokens, fieldTokens, fieldsetTokens, fileUploadTokens, floatLabelTokens, formFieldTokens, galleriaTokens, highlightTextTokens, iconLinkTokens, iconTokens, iftaLabelTokens, imageTokens, inputGroupTokens, inputNumberTokens, inputOtpTokens, knobTokens, labelTokens, lightDark, linkTokens, listboxTokens, mentionTokens, menuTokens, menubarTokens, messageTokens, mix, monthCalendarTokens, noirScale, overlayBadgeTokens, paginatorTokens, panelMenuTokens, panelTokens, passwordTokens, pillTokens, popoverTokens, presetToCss, primaryBaseStep, progressBarTokens, progressSpinnerTokens, radioButtonTokens, ratingTokens, relativeLuminance, rippleTokens, scrollPanelTokens, selectTokens, skeletonTokens, sliderTokens, sparklineTokens, speedDialTokens, splitButtonTokens, splitterTokens, statTileTokens, statTilesTokens, statusIconTokens, stepperTokens, stepsTokens, tableTokens, tabsTokens, tagTokens, textareaTokens, timelineTokens, toCssVariables, toStyleObject, toastTokens, toggleButtonTokens, toggleSwitchTokens, tokenRef, toolbarTokens, tooltipTokens, treeTableTokens, treeTokens, virtualScrollerTokens };
|
|
4107
5118
|
|
|
4108
5119
|
//# sourceMappingURL=tectra-ng-themes.mjs.map
|