@tectra-ng/themes 0.4.1 → 0.4.3
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/README.md +16 -3
- package/fesm2022/tectra-ng-themes.mjs +320 -307
- package/fesm2022/tectra-ng-themes.mjs.map +1 -1
- package/package.json +2 -2
- package/types/tectra-ng-themes.d.ts +380 -28
- package/types/tectra-ng-themes.d.ts.map +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TectraColorScale, TectraPrimary, TectraSurface, TectraSurfaceScale } from "@tectra-ng/tokens";
|
|
1
|
+
import { TectraColorScale, TectraPrimary, TectraPrimary as TectraPrimary$1, TectraSurface, TectraSurface as TectraSurface$1, TectraSurfaceScale } from "@tectra-ng/tokens";
|
|
2
2
|
/** Makes every field of an object type, at any depth, optional; used for preset and style overrides. */
|
|
3
3
|
export type TectraDeepPartial<T> = { [K in keyof T]?: T[K] extends object ? TectraDeepPartial<T[K]> : T[K]; };
|
|
4
4
|
/** Colors of one severity (or the primary color) in a color scheme. */
|
|
@@ -91,6 +91,15 @@ export interface TectraSemanticTokens {
|
|
|
91
91
|
overlay: string;
|
|
92
92
|
modal: string;
|
|
93
93
|
};
|
|
94
|
+
/**
|
|
95
|
+
* Frame of a content surface — cards, panels, stat tiles, data views, filters panels: one corner radius and one
|
|
96
|
+
* shadow (`--tx-content-radius`, `--tx-content-shadow`), so a style changes them together and an app can draw a
|
|
97
|
+
* matching frame on any page. For no shadow use `0 0 transparent`, not `none` (the shadow joins a border ring).
|
|
98
|
+
*/
|
|
99
|
+
content: {
|
|
100
|
+
radius: string;
|
|
101
|
+
shadow: string;
|
|
102
|
+
};
|
|
94
103
|
}
|
|
95
104
|
/** Default component tokens of every tectra component, by component name; presets override parts of it. */
|
|
96
105
|
export declare const COMPONENT_TOKENS: {
|
|
@@ -503,6 +512,12 @@ export declare const COMPONENT_TOKENS: {
|
|
|
503
512
|
activeColor: string;
|
|
504
513
|
};
|
|
505
514
|
};
|
|
515
|
+
buttonGroup: {
|
|
516
|
+
root: {
|
|
517
|
+
dividerColor: string;
|
|
518
|
+
dividerWidth: string;
|
|
519
|
+
};
|
|
520
|
+
};
|
|
506
521
|
select: {
|
|
507
522
|
root: {
|
|
508
523
|
dropdownColor: string;
|
|
@@ -683,6 +698,39 @@ export declare const COMPONENT_TOKENS: {
|
|
|
683
698
|
selectedRing: string;
|
|
684
699
|
};
|
|
685
700
|
};
|
|
701
|
+
colorSwatches: {
|
|
702
|
+
root: {
|
|
703
|
+
gap: string;
|
|
704
|
+
size: string;
|
|
705
|
+
borderRadius: string;
|
|
706
|
+
ringColor: string;
|
|
707
|
+
hoverScale: string;
|
|
708
|
+
selectedRingColor: string;
|
|
709
|
+
selectedRingWidth: string;
|
|
710
|
+
selectedRingOffset: string;
|
|
711
|
+
checkColor: string;
|
|
712
|
+
checkShadow: string;
|
|
713
|
+
checkSize: string;
|
|
714
|
+
checkStrokeWidth: string;
|
|
715
|
+
focusRingColor: string;
|
|
716
|
+
focusRingWidth: string;
|
|
717
|
+
focusRingOffset: string;
|
|
718
|
+
invalidRingColor: string;
|
|
719
|
+
disabledOpacity: string;
|
|
720
|
+
transitionDuration: string;
|
|
721
|
+
transitionEasing: string;
|
|
722
|
+
};
|
|
723
|
+
sm: {
|
|
724
|
+
size: string;
|
|
725
|
+
gap: string;
|
|
726
|
+
checkSize: string;
|
|
727
|
+
};
|
|
728
|
+
lg: {
|
|
729
|
+
size: string;
|
|
730
|
+
gap: string;
|
|
731
|
+
checkSize: string;
|
|
732
|
+
};
|
|
733
|
+
};
|
|
686
734
|
mention: {
|
|
687
735
|
root: {
|
|
688
736
|
panelWidth: string;
|
|
@@ -887,6 +935,68 @@ export declare const COMPONENT_TOKENS: {
|
|
|
887
935
|
};
|
|
888
936
|
};
|
|
889
937
|
};
|
|
938
|
+
selectButton: {
|
|
939
|
+
root: {
|
|
940
|
+
gap: string;
|
|
941
|
+
padding: string;
|
|
942
|
+
borderWidth: string;
|
|
943
|
+
borderColor: string;
|
|
944
|
+
borderRadius: string;
|
|
945
|
+
background: string;
|
|
946
|
+
invalidBorderColor: string;
|
|
947
|
+
disabledOpacity: string;
|
|
948
|
+
transitionDuration: string;
|
|
949
|
+
focusRing: {
|
|
950
|
+
width: string;
|
|
951
|
+
color: string;
|
|
952
|
+
offset: string;
|
|
953
|
+
};
|
|
954
|
+
sm: {
|
|
955
|
+
gap: string;
|
|
956
|
+
padding: string;
|
|
957
|
+
borderRadius: string;
|
|
958
|
+
};
|
|
959
|
+
lg: {
|
|
960
|
+
gap: string;
|
|
961
|
+
padding: string;
|
|
962
|
+
borderRadius: string;
|
|
963
|
+
};
|
|
964
|
+
};
|
|
965
|
+
item: {
|
|
966
|
+
padding: string;
|
|
967
|
+
iconOnlyPadding: string;
|
|
968
|
+
gap: string;
|
|
969
|
+
borderRadius: string;
|
|
970
|
+
fontSize: string;
|
|
971
|
+
fontWeight: string;
|
|
972
|
+
lineHeight: string;
|
|
973
|
+
color: string;
|
|
974
|
+
hoverColor: string;
|
|
975
|
+
hoverBackground: string;
|
|
976
|
+
activeBackground: string;
|
|
977
|
+
activeColor: string;
|
|
978
|
+
activeShadow: string;
|
|
979
|
+
sm: {
|
|
980
|
+
padding: string;
|
|
981
|
+
iconOnlyPadding: string;
|
|
982
|
+
gap: string;
|
|
983
|
+
fontSize: string;
|
|
984
|
+
borderRadius: string;
|
|
985
|
+
};
|
|
986
|
+
lg: {
|
|
987
|
+
padding: string;
|
|
988
|
+
iconOnlyPadding: string;
|
|
989
|
+
gap: string;
|
|
990
|
+
fontSize: string;
|
|
991
|
+
borderRadius: string;
|
|
992
|
+
};
|
|
993
|
+
};
|
|
994
|
+
activate: {
|
|
995
|
+
scale: string;
|
|
996
|
+
duration: string;
|
|
997
|
+
easing: string;
|
|
998
|
+
};
|
|
999
|
+
};
|
|
890
1000
|
message: {
|
|
891
1001
|
root: {
|
|
892
1002
|
borderRadius: string;
|
|
@@ -912,6 +1022,9 @@ export declare const COMPONENT_TOKENS: {
|
|
|
912
1022
|
fontSize: string;
|
|
913
1023
|
tint: string;
|
|
914
1024
|
};
|
|
1025
|
+
actions: {
|
|
1026
|
+
gap: string;
|
|
1027
|
+
};
|
|
915
1028
|
closeButton: {
|
|
916
1029
|
size: string;
|
|
917
1030
|
borderRadius: string;
|
|
@@ -1710,6 +1823,7 @@ export declare const COMPONENT_TOKENS: {
|
|
|
1710
1823
|
background: string;
|
|
1711
1824
|
borderColor: string;
|
|
1712
1825
|
borderRadius: string;
|
|
1826
|
+
shadow: string;
|
|
1713
1827
|
padding: string;
|
|
1714
1828
|
gap: string;
|
|
1715
1829
|
color: string;
|
|
@@ -1868,6 +1982,8 @@ export declare const COMPONENT_TOKENS: {
|
|
|
1868
1982
|
arrow: {
|
|
1869
1983
|
size: string;
|
|
1870
1984
|
inset: string;
|
|
1985
|
+
background: string;
|
|
1986
|
+
shadow: string;
|
|
1871
1987
|
};
|
|
1872
1988
|
};
|
|
1873
1989
|
popover: {
|
|
@@ -1909,6 +2025,10 @@ export declare const COMPONENT_TOKENS: {
|
|
|
1909
2025
|
arrow: {
|
|
1910
2026
|
size: string;
|
|
1911
2027
|
inset: string;
|
|
2028
|
+
background: string;
|
|
2029
|
+
borderColor: string;
|
|
2030
|
+
borderWidth: string;
|
|
2031
|
+
shadow: string;
|
|
1912
2032
|
};
|
|
1913
2033
|
focusRing: {
|
|
1914
2034
|
width: string;
|
|
@@ -2172,6 +2292,14 @@ export declare const COMPONENT_TOKENS: {
|
|
|
2172
2292
|
fontWeight: string;
|
|
2173
2293
|
itemBorderWidth: string;
|
|
2174
2294
|
};
|
|
2295
|
+
arrow: {
|
|
2296
|
+
size: string;
|
|
2297
|
+
inset: string;
|
|
2298
|
+
background: string;
|
|
2299
|
+
borderColor: string;
|
|
2300
|
+
borderWidth: string;
|
|
2301
|
+
shadow: string;
|
|
2302
|
+
};
|
|
2175
2303
|
context: {
|
|
2176
2304
|
background: string;
|
|
2177
2305
|
borderColor: string;
|
|
@@ -2447,8 +2575,13 @@ export declare const COMPONENT_TOKENS: {
|
|
|
2447
2575
|
borderColor: string;
|
|
2448
2576
|
borderWidth: string;
|
|
2449
2577
|
borderRadius: string;
|
|
2578
|
+
shadow: string;
|
|
2450
2579
|
transitionDuration: string;
|
|
2451
2580
|
};
|
|
2581
|
+
content: {
|
|
2582
|
+
padding: string;
|
|
2583
|
+
gridPadding: string;
|
|
2584
|
+
};
|
|
2452
2585
|
header: {
|
|
2453
2586
|
background: string;
|
|
2454
2587
|
color: string;
|
|
@@ -2527,6 +2660,7 @@ export declare const COMPONENT_TOKENS: {
|
|
|
2527
2660
|
borderColor: string;
|
|
2528
2661
|
borderWidth: string;
|
|
2529
2662
|
borderRadius: string;
|
|
2663
|
+
shadow: string;
|
|
2530
2664
|
paddingX: string;
|
|
2531
2665
|
paddingY: string;
|
|
2532
2666
|
gap: string;
|
|
@@ -2652,6 +2786,7 @@ export declare const COMPONENT_TOKENS: {
|
|
|
2652
2786
|
borderColor: string;
|
|
2653
2787
|
hoverBorderColor: string;
|
|
2654
2788
|
activeBorderColor: string;
|
|
2789
|
+
invalidBorderColor: string;
|
|
2655
2790
|
color: string;
|
|
2656
2791
|
hoverColor: string;
|
|
2657
2792
|
activeColor: string;
|
|
@@ -3291,6 +3426,12 @@ export declare const COMPONENT_TOKENS: {
|
|
|
3291
3426
|
item: {
|
|
3292
3427
|
color: string;
|
|
3293
3428
|
hoverColor: string;
|
|
3429
|
+
textColor: string;
|
|
3430
|
+
linkDecoration: string;
|
|
3431
|
+
linkDecorationColor: string;
|
|
3432
|
+
linkHoverDecorationColor: string;
|
|
3433
|
+
linkDecorationThickness: string;
|
|
3434
|
+
linkUnderlineOffset: string;
|
|
3294
3435
|
borderRadius: string;
|
|
3295
3436
|
gap: string;
|
|
3296
3437
|
fontSize: string;
|
|
@@ -4080,6 +4221,7 @@ export declare const COMPONENT_TOKENS: {
|
|
|
4080
4221
|
background: string;
|
|
4081
4222
|
borderColor: string;
|
|
4082
4223
|
borderRadius: string;
|
|
4224
|
+
shadow: string;
|
|
4083
4225
|
padding: string;
|
|
4084
4226
|
gap: string;
|
|
4085
4227
|
color: string;
|
|
@@ -4137,6 +4279,7 @@ export declare const COMPONENT_TOKENS: {
|
|
|
4137
4279
|
titleFontSize: string;
|
|
4138
4280
|
titleFontWeight: string;
|
|
4139
4281
|
titleLetterSpacing: string;
|
|
4282
|
+
titleTextTransform: string;
|
|
4140
4283
|
mutedColor: string;
|
|
4141
4284
|
rowGap: string;
|
|
4142
4285
|
rowHeight: string;
|
|
@@ -4651,6 +4794,7 @@ export declare const COMPONENT_TOKENS: {
|
|
|
4651
4794
|
groupFontSize: string;
|
|
4652
4795
|
groupFontWeight: string;
|
|
4653
4796
|
groupLetterSpacing: string;
|
|
4797
|
+
groupTextTransform: string;
|
|
4654
4798
|
groupColor: string;
|
|
4655
4799
|
statusGap: string;
|
|
4656
4800
|
statusPadding: string;
|
|
@@ -4836,6 +4980,16 @@ export declare const COMPONENT_TOKENS: {
|
|
|
4836
4980
|
hiddenScale: string;
|
|
4837
4981
|
};
|
|
4838
4982
|
};
|
|
4983
|
+
themeConfigurator: {
|
|
4984
|
+
root: {
|
|
4985
|
+
width: string;
|
|
4986
|
+
gap: string;
|
|
4987
|
+
sectionGap: string;
|
|
4988
|
+
labelColor: string;
|
|
4989
|
+
labelFontSize: string;
|
|
4990
|
+
labelFontWeight: string;
|
|
4991
|
+
};
|
|
4992
|
+
};
|
|
4839
4993
|
switchLanguage: {
|
|
4840
4994
|
root: {
|
|
4841
4995
|
height: string;
|
|
@@ -5059,6 +5213,8 @@ export declare const COMPONENT_TOKENS: {
|
|
|
5059
5213
|
duration: string;
|
|
5060
5214
|
easing: string;
|
|
5061
5215
|
stagger: string;
|
|
5216
|
+
hold: string;
|
|
5217
|
+
fadeDuration: string;
|
|
5062
5218
|
};
|
|
5063
5219
|
};
|
|
5064
5220
|
hoverEffect: {
|
|
@@ -5407,6 +5563,11 @@ export declare const COMPONENT_TOKENS: {
|
|
|
5407
5563
|
milestoneSize: string;
|
|
5408
5564
|
milestoneColor: string;
|
|
5409
5565
|
milestoneRadius: string;
|
|
5566
|
+
dependencyColor: string;
|
|
5567
|
+
dependencyWidth: string;
|
|
5568
|
+
dependencyActiveColor: string;
|
|
5569
|
+
dependencyActiveWidth: string;
|
|
5570
|
+
dimmedOpacity: string;
|
|
5410
5571
|
toolbarGap: string;
|
|
5411
5572
|
maxHeight: string;
|
|
5412
5573
|
radius: string;
|
|
@@ -5713,6 +5874,21 @@ export declare const COMPONENT_TOKENS: {
|
|
|
5713
5874
|
type ComponentTokensShape = typeof COMPONENT_TOKENS;
|
|
5714
5875
|
/** Type of `COMPONENT_TOKENS`: the component tokens by component name. */
|
|
5715
5876
|
export interface TectraComponentTokens extends ComponentTokensShape {}
|
|
5877
|
+
/** A look for the kit: semantic and component token overrides and optional CSS on top of the default look. */
|
|
5878
|
+
export interface TectraStyle {
|
|
5879
|
+
/** Name of the style, like `soft`. */
|
|
5880
|
+
name: string;
|
|
5881
|
+
/** Name of the style to show to people. */
|
|
5882
|
+
label: string;
|
|
5883
|
+
/** Builds overrides of the light semantic tokens from the palettes. */
|
|
5884
|
+
light?: (palettes: TectraPalettes) => TectraDeepPartial<TectraSemanticTokens>;
|
|
5885
|
+
/** Builds overrides of the dark semantic tokens from the palettes. */
|
|
5886
|
+
dark?: (palettes: TectraPalettes) => TectraDeepPartial<TectraSemanticTokens>;
|
|
5887
|
+
/** Overrides of the component tokens. */
|
|
5888
|
+
components?: TectraDeepPartial<TectraComponentTokens>;
|
|
5889
|
+
/** Extra CSS that goes with the style. */
|
|
5890
|
+
css?: string;
|
|
5891
|
+
}
|
|
5716
5892
|
/** Color scales a preset is built from. */
|
|
5717
5893
|
export interface TectraPalettes {
|
|
5718
5894
|
/** Scale of the primary color. */
|
|
@@ -5720,6 +5896,15 @@ export interface TectraPalettes {
|
|
|
5720
5896
|
/** Scale of the neutral surface and text colors, with a `0` step for white. */
|
|
5721
5897
|
surface: TectraSurfaceScale;
|
|
5722
5898
|
}
|
|
5899
|
+
/** What `createTectraPreset` built a preset from: the style object, the primary color and the surface palette. */
|
|
5900
|
+
export interface TectraPresetSource {
|
|
5901
|
+
/** The style object. */
|
|
5902
|
+
style: TectraStyle;
|
|
5903
|
+
/** The primary color. */
|
|
5904
|
+
primary: TectraPrimary$1;
|
|
5905
|
+
/** The surface palette. */
|
|
5906
|
+
surface: TectraSurface$1;
|
|
5907
|
+
}
|
|
5723
5908
|
/** A complete theme: palettes, semantic tokens of both color schemes, component token overrides and extra CSS. */
|
|
5724
5909
|
export interface TectraPreset {
|
|
5725
5910
|
/** Name of the preset, like `soft-blue-ink`. */
|
|
@@ -5734,6 +5919,8 @@ export interface TectraPreset {
|
|
|
5734
5919
|
components: TectraDeepPartial<TectraComponentTokens>;
|
|
5735
5920
|
/** Extra CSS added after the variables. */
|
|
5736
5921
|
css?: string;
|
|
5922
|
+
/** What the preset was built from; `createTectraPreset` sets it and `TxThemeService.updateTheme` starts from it. */
|
|
5923
|
+
source?: TectraPresetSource;
|
|
5737
5924
|
}
|
|
5738
5925
|
/** One CSS custom property with its value. */
|
|
5739
5926
|
export interface TectraCssVariable {
|
|
@@ -6031,6 +6218,16 @@ export declare const buttonTokens: {
|
|
|
6031
6218
|
type ButtonTokensShape = typeof buttonTokens;
|
|
6032
6219
|
/** Type of `buttonTokens`: the shape of the component tokens that presets and `dt` overrides can change. */
|
|
6033
6220
|
export interface TectraButtonTokens extends ButtonTokensShape {}
|
|
6221
|
+
/** Design tokens of `tx-button-group`: the divider between two solid buttons. */
|
|
6222
|
+
export declare const buttonGroupTokens: {
|
|
6223
|
+
root: {
|
|
6224
|
+
dividerColor: string;
|
|
6225
|
+
dividerWidth: string;
|
|
6226
|
+
};
|
|
6227
|
+
};
|
|
6228
|
+
type ButtonGroupTokensShape = typeof buttonGroupTokens;
|
|
6229
|
+
/** Type of `buttonGroupTokens`: the shape of the component tokens that presets and `dt` overrides can change. */
|
|
6230
|
+
export interface TectraButtonGroupTokens extends ButtonGroupTokensShape {}
|
|
6034
6231
|
/**
|
|
6035
6232
|
* Shared tokens of the text-like form fields (`txInput`, `tx-select`, `tx-datepicker` and others):
|
|
6036
6233
|
* background, border, text and placeholder colors in every state, and the focus ring.
|
|
@@ -6567,6 +6764,9 @@ export declare const messageTokens: {
|
|
|
6567
6764
|
fontSize: string;
|
|
6568
6765
|
tint: string;
|
|
6569
6766
|
};
|
|
6767
|
+
actions: {
|
|
6768
|
+
gap: string;
|
|
6769
|
+
};
|
|
6570
6770
|
closeButton: {
|
|
6571
6771
|
size: string;
|
|
6572
6772
|
borderRadius: string;
|
|
@@ -6985,6 +7185,43 @@ export declare const ratingTokens: {
|
|
|
6985
7185
|
type RatingTokensShape = typeof ratingTokens;
|
|
6986
7186
|
/** Type of `ratingTokens`: the shape of the component tokens that presets and `dt` overrides can change. */
|
|
6987
7187
|
export interface TectraRatingTokens extends RatingTokensShape {}
|
|
7188
|
+
/** Design tokens of `tx-color-swatches`: size, spacing and rings of the color dots, plus the `sm` and `lg` sizes. */
|
|
7189
|
+
export declare const colorSwatchesTokens: {
|
|
7190
|
+
root: {
|
|
7191
|
+
gap: string;
|
|
7192
|
+
size: string;
|
|
7193
|
+
borderRadius: string;
|
|
7194
|
+
ringColor: string;
|
|
7195
|
+
hoverScale: string;
|
|
7196
|
+
selectedRingColor: string;
|
|
7197
|
+
selectedRingWidth: string;
|
|
7198
|
+
selectedRingOffset: string;
|
|
7199
|
+
checkColor: string;
|
|
7200
|
+
checkShadow: string;
|
|
7201
|
+
checkSize: string;
|
|
7202
|
+
checkStrokeWidth: string;
|
|
7203
|
+
focusRingColor: string;
|
|
7204
|
+
focusRingWidth: string;
|
|
7205
|
+
focusRingOffset: string;
|
|
7206
|
+
invalidRingColor: string;
|
|
7207
|
+
disabledOpacity: string;
|
|
7208
|
+
transitionDuration: string;
|
|
7209
|
+
transitionEasing: string;
|
|
7210
|
+
};
|
|
7211
|
+
sm: {
|
|
7212
|
+
size: string;
|
|
7213
|
+
gap: string;
|
|
7214
|
+
checkSize: string;
|
|
7215
|
+
};
|
|
7216
|
+
lg: {
|
|
7217
|
+
size: string;
|
|
7218
|
+
gap: string;
|
|
7219
|
+
checkSize: string;
|
|
7220
|
+
};
|
|
7221
|
+
};
|
|
7222
|
+
type ColorSwatchesTokensShape = typeof colorSwatchesTokens;
|
|
7223
|
+
/** Type of `colorSwatchesTokens`: the shape of the component tokens that presets and `dt` overrides can change. */
|
|
7224
|
+
export interface TectraColorSwatchesTokens extends ColorSwatchesTokensShape {}
|
|
6988
7225
|
/** Design tokens of `tx-knob`: its colors, sizes and spacing. */
|
|
6989
7226
|
export declare const knobTokens: {
|
|
6990
7227
|
root: {
|
|
@@ -7431,6 +7668,7 @@ export declare const panelTokens: {
|
|
|
7431
7668
|
background: string;
|
|
7432
7669
|
borderColor: string;
|
|
7433
7670
|
borderRadius: string;
|
|
7671
|
+
shadow: string;
|
|
7434
7672
|
padding: string;
|
|
7435
7673
|
gap: string;
|
|
7436
7674
|
color: string;
|
|
@@ -7627,6 +7865,8 @@ export declare const tooltipTokens: {
|
|
|
7627
7865
|
arrow: {
|
|
7628
7866
|
size: string;
|
|
7629
7867
|
inset: string;
|
|
7868
|
+
background: string;
|
|
7869
|
+
shadow: string;
|
|
7630
7870
|
};
|
|
7631
7871
|
};
|
|
7632
7872
|
type TooltipTokensShape = typeof tooltipTokens;
|
|
@@ -7675,6 +7915,10 @@ export declare const popoverTokens: {
|
|
|
7675
7915
|
arrow: {
|
|
7676
7916
|
size: string;
|
|
7677
7917
|
inset: string;
|
|
7918
|
+
background: string;
|
|
7919
|
+
borderColor: string;
|
|
7920
|
+
borderWidth: string;
|
|
7921
|
+
shadow: string;
|
|
7678
7922
|
};
|
|
7679
7923
|
focusRing: {
|
|
7680
7924
|
width: string;
|
|
@@ -7966,6 +8210,14 @@ export declare const menuTokens: {
|
|
|
7966
8210
|
fontWeight: string;
|
|
7967
8211
|
itemBorderWidth: string;
|
|
7968
8212
|
};
|
|
8213
|
+
arrow: {
|
|
8214
|
+
size: string;
|
|
8215
|
+
inset: string;
|
|
8216
|
+
background: string;
|
|
8217
|
+
borderColor: string;
|
|
8218
|
+
borderWidth: string;
|
|
8219
|
+
shadow: string;
|
|
8220
|
+
};
|
|
7969
8221
|
context: {
|
|
7970
8222
|
background: string;
|
|
7971
8223
|
borderColor: string;
|
|
@@ -8349,8 +8601,13 @@ export declare const dataViewTokens: {
|
|
|
8349
8601
|
borderColor: string;
|
|
8350
8602
|
borderWidth: string;
|
|
8351
8603
|
borderRadius: string;
|
|
8604
|
+
shadow: string;
|
|
8352
8605
|
transitionDuration: string;
|
|
8353
8606
|
};
|
|
8607
|
+
content: {
|
|
8608
|
+
padding: string;
|
|
8609
|
+
gridPadding: string;
|
|
8610
|
+
};
|
|
8354
8611
|
header: {
|
|
8355
8612
|
background: string;
|
|
8356
8613
|
color: string;
|
|
@@ -8451,6 +8708,7 @@ export declare const statTileTokens: {
|
|
|
8451
8708
|
borderColor: string;
|
|
8452
8709
|
borderWidth: string;
|
|
8453
8710
|
borderRadius: string;
|
|
8711
|
+
shadow: string;
|
|
8454
8712
|
paddingX: string;
|
|
8455
8713
|
paddingY: string;
|
|
8456
8714
|
gap: string;
|
|
@@ -8647,6 +8905,7 @@ export declare const datePickerTokens: {
|
|
|
8647
8905
|
borderColor: string;
|
|
8648
8906
|
hoverBorderColor: string;
|
|
8649
8907
|
activeBorderColor: string;
|
|
8908
|
+
invalidBorderColor: string;
|
|
8650
8909
|
color: string;
|
|
8651
8910
|
hoverColor: string;
|
|
8652
8911
|
activeColor: string;
|
|
@@ -9776,21 +10035,75 @@ export declare const toggleButtonTokens: {
|
|
|
9776
10035
|
type ToggleButtonTokensShape = typeof toggleButtonTokens;
|
|
9777
10036
|
/** Type of `toggleButtonTokens`: the shape of the component tokens that presets and `dt` overrides can change. */
|
|
9778
10037
|
export interface TectraToggleButtonTokens extends ToggleButtonTokensShape {}
|
|
9779
|
-
/**
|
|
9780
|
-
|
|
9781
|
-
|
|
9782
|
-
|
|
9783
|
-
|
|
9784
|
-
|
|
9785
|
-
|
|
9786
|
-
|
|
9787
|
-
|
|
9788
|
-
|
|
9789
|
-
|
|
9790
|
-
|
|
9791
|
-
|
|
9792
|
-
|
|
9793
|
-
|
|
10038
|
+
/**
|
|
10039
|
+
* Design tokens of `tx-select-button`: the track (same look as the segmented `tx-tabs`), its items in every size,
|
|
10040
|
+
* the selected item and the pop when an item gets selected.
|
|
10041
|
+
*/
|
|
10042
|
+
export declare const selectButtonTokens: {
|
|
10043
|
+
root: {
|
|
10044
|
+
gap: string;
|
|
10045
|
+
padding: string;
|
|
10046
|
+
borderWidth: string;
|
|
10047
|
+
borderColor: string;
|
|
10048
|
+
borderRadius: string;
|
|
10049
|
+
background: string;
|
|
10050
|
+
invalidBorderColor: string;
|
|
10051
|
+
disabledOpacity: string;
|
|
10052
|
+
transitionDuration: string;
|
|
10053
|
+
focusRing: {
|
|
10054
|
+
width: string;
|
|
10055
|
+
color: string;
|
|
10056
|
+
offset: string;
|
|
10057
|
+
};
|
|
10058
|
+
sm: {
|
|
10059
|
+
gap: string;
|
|
10060
|
+
padding: string;
|
|
10061
|
+
borderRadius: string;
|
|
10062
|
+
};
|
|
10063
|
+
lg: {
|
|
10064
|
+
gap: string;
|
|
10065
|
+
padding: string;
|
|
10066
|
+
borderRadius: string;
|
|
10067
|
+
};
|
|
10068
|
+
};
|
|
10069
|
+
item: {
|
|
10070
|
+
padding: string;
|
|
10071
|
+
iconOnlyPadding: string;
|
|
10072
|
+
gap: string;
|
|
10073
|
+
borderRadius: string;
|
|
10074
|
+
fontSize: string;
|
|
10075
|
+
fontWeight: string;
|
|
10076
|
+
lineHeight: string;
|
|
10077
|
+
color: string;
|
|
10078
|
+
hoverColor: string;
|
|
10079
|
+
hoverBackground: string;
|
|
10080
|
+
activeBackground: string;
|
|
10081
|
+
activeColor: string;
|
|
10082
|
+
activeShadow: string;
|
|
10083
|
+
sm: {
|
|
10084
|
+
padding: string;
|
|
10085
|
+
iconOnlyPadding: string;
|
|
10086
|
+
gap: string;
|
|
10087
|
+
fontSize: string;
|
|
10088
|
+
borderRadius: string;
|
|
10089
|
+
};
|
|
10090
|
+
lg: {
|
|
10091
|
+
padding: string;
|
|
10092
|
+
iconOnlyPadding: string;
|
|
10093
|
+
gap: string;
|
|
10094
|
+
fontSize: string;
|
|
10095
|
+
borderRadius: string;
|
|
10096
|
+
};
|
|
10097
|
+
};
|
|
10098
|
+
activate: {
|
|
10099
|
+
scale: string;
|
|
10100
|
+
duration: string;
|
|
10101
|
+
easing: string;
|
|
10102
|
+
};
|
|
10103
|
+
};
|
|
10104
|
+
type SelectButtonTokensShape = typeof selectButtonTokens;
|
|
10105
|
+
/** Type of `selectButtonTokens`: the shape of the component tokens that presets and `dt` overrides can change. */
|
|
10106
|
+
export interface TectraSelectButtonTokens extends SelectButtonTokensShape {}
|
|
9794
10107
|
/** Relative luminance of a `#rrggbb` color, from 0 (black) to 1 (white). */
|
|
9795
10108
|
export declare function relativeLuminance(hex: string): number;
|
|
9796
10109
|
/** Contrast ratio of a `#rrggbb` color against white. */
|
|
@@ -9803,7 +10116,6 @@ export declare function primaryBaseStep(scale: TectraColorScale): 600 | 700;
|
|
|
9803
10116
|
/** All built-in styles by name; using it pulls every style into the bundle. */
|
|
9804
10117
|
export declare const TECTRA_STYLES: {
|
|
9805
10118
|
tectra: TectraStyle;
|
|
9806
|
-
soft: TectraStyle;
|
|
9807
10119
|
edge: TectraStyle;
|
|
9808
10120
|
paper: TectraStyle;
|
|
9809
10121
|
};
|
|
@@ -9811,23 +10123,18 @@ export declare const TECTRA_STYLES: {
|
|
|
9811
10123
|
export type TectraStyleName = keyof typeof TECTRA_STYLES;
|
|
9812
10124
|
/** The default style: the base look with no overrides. */
|
|
9813
10125
|
export declare const tectraStyle: TectraStyle;
|
|
9814
|
-
/**
|
|
9815
|
-
* Soft look: pill buttons, tags and segments, filled borderless fields, tonal secondary buttons, large radii
|
|
9816
|
-
* on cards and overlays, glow focus.
|
|
9817
|
-
*/
|
|
9818
|
-
export declare const softStyle: TectraStyle;
|
|
9819
10126
|
/** Edge look: sharp corners, strong borders and solid selection. */
|
|
9820
10127
|
export declare const edgeStyle: TectraStyle;
|
|
9821
10128
|
/** Paper look: filled fields with an underline, elevation shadows and focus halos. */
|
|
9822
10129
|
export declare const paperStyle: TectraStyle;
|
|
9823
10130
|
/** Options of `createTectraPreset`: the style, the primary color and the surface palette. */
|
|
9824
10131
|
export interface TectraPresetOptions {
|
|
9825
|
-
/** Style object such as `
|
|
10132
|
+
/** Style object such as `edgeStyle` (default `tectraStyle`); pass the object, not its name. */
|
|
9826
10133
|
style?: TectraStyle;
|
|
9827
10134
|
/** Primary accent color, or `noir` for a color that follows the surface (default `blue`). */
|
|
9828
|
-
primary?: TectraPrimary;
|
|
10135
|
+
primary?: TectraPrimary$1;
|
|
9829
10136
|
/** Neutral surface palette (default `ink`). */
|
|
9830
|
-
surface?: TectraSurface;
|
|
10137
|
+
surface?: TectraSurface$1;
|
|
9831
10138
|
}
|
|
9832
10139
|
/** Builds the `noir` accent scale from a surface scale, so the primary color is black and white. */
|
|
9833
10140
|
export declare function noirScale(surface: TectraSurfaceScale): TectraColorScale;
|
|
@@ -9835,12 +10142,27 @@ export declare function noirScale(surface: TectraSurfaceScale): TectraColorScale
|
|
|
9835
10142
|
export declare function createTectraPreset({ style, primary, surface }?: TectraPresetOptions): TectraPreset;
|
|
9836
10143
|
/** Ready preset with the default style, blue primary and ink surface. */
|
|
9837
10144
|
export declare const Tectra: TectraPreset;
|
|
9838
|
-
/** Ready preset with the soft style, blue primary and ink surface. */
|
|
9839
|
-
export declare const Soft: TectraPreset;
|
|
9840
10145
|
/** Ready preset with the edge style, blue primary and ink surface. */
|
|
9841
10146
|
export declare const Edge: TectraPreset;
|
|
9842
10147
|
/** Ready preset with the paper style, blue primary and ink surface. */
|
|
9843
10148
|
export declare const Paper: TectraPreset;
|
|
10149
|
+
/** A color a theme picker offers: the value `createTectraPreset` takes, the color of its swatch and a label. */
|
|
10150
|
+
export interface TectraColorChoice<T extends string = string> {
|
|
10151
|
+
/** The value passed to `createTectraPreset`, like `teal`. */
|
|
10152
|
+
value: T;
|
|
10153
|
+
/** CSS color of the swatch. */
|
|
10154
|
+
color: string;
|
|
10155
|
+
/** Name to show to people, like `Teal`. */
|
|
10156
|
+
label: string;
|
|
10157
|
+
}
|
|
10158
|
+
/** The primary colors `createTectraPreset` takes, in picker order; the `noir` swatch follows the text color. */
|
|
10159
|
+
export declare function tectraPrimaryChoices(): TectraColorChoice<TectraPrimary>[];
|
|
10160
|
+
/** The surface palettes `createTectraPreset` takes, each with the middle step of its scale as the swatch. */
|
|
10161
|
+
export declare function tectraSurfaceChoices(): TectraColorChoice<TectraSurface>[];
|
|
10162
|
+
/** Whether a value is the name of a primary color that `createTectraPreset` takes. */
|
|
10163
|
+
export declare function isTectraPrimary(value: unknown): value is TectraPrimary;
|
|
10164
|
+
/** Whether a value is the name of a surface palette that `createTectraPreset` takes. */
|
|
10165
|
+
export declare function isTectraSurface(value: unknown): value is TectraSurface;
|
|
9844
10166
|
/** Merges overrides into a base object at any depth, without changing the base; arrays and values replace. */
|
|
9845
10167
|
export declare function deepMerge<T>(base: T, overrides: TectraDeepPartial<T> | undefined): T;
|
|
9846
10168
|
/** Creates a preset from a base preset and deep overrides. */
|
|
@@ -10020,6 +10342,12 @@ export declare const breadcrumbTokens: {
|
|
|
10020
10342
|
item: {
|
|
10021
10343
|
color: string;
|
|
10022
10344
|
hoverColor: string;
|
|
10345
|
+
textColor: string;
|
|
10346
|
+
linkDecoration: string;
|
|
10347
|
+
linkDecorationColor: string;
|
|
10348
|
+
linkHoverDecorationColor: string;
|
|
10349
|
+
linkDecorationThickness: string;
|
|
10350
|
+
linkUnderlineOffset: string;
|
|
10023
10351
|
borderRadius: string;
|
|
10024
10352
|
gap: string;
|
|
10025
10353
|
fontSize: string;
|
|
@@ -10327,6 +10655,7 @@ export declare const filtersPanelTokens: {
|
|
|
10327
10655
|
background: string;
|
|
10328
10656
|
borderColor: string;
|
|
10329
10657
|
borderRadius: string;
|
|
10658
|
+
shadow: string;
|
|
10330
10659
|
padding: string;
|
|
10331
10660
|
gap: string;
|
|
10332
10661
|
color: string;
|
|
@@ -10384,6 +10713,7 @@ export declare const filtersPanelTokens: {
|
|
|
10384
10713
|
titleFontSize: string;
|
|
10385
10714
|
titleFontWeight: string;
|
|
10386
10715
|
titleLetterSpacing: string;
|
|
10716
|
+
titleTextTransform: string;
|
|
10387
10717
|
mutedColor: string;
|
|
10388
10718
|
rowGap: string;
|
|
10389
10719
|
rowHeight: string;
|
|
@@ -10948,6 +11278,7 @@ export declare const commandPaletteTokens: {
|
|
|
10948
11278
|
groupFontSize: string;
|
|
10949
11279
|
groupFontWeight: string;
|
|
10950
11280
|
groupLetterSpacing: string;
|
|
11281
|
+
groupTextTransform: string;
|
|
10951
11282
|
groupColor: string;
|
|
10952
11283
|
statusGap: string;
|
|
10953
11284
|
statusPadding: string;
|
|
@@ -11158,6 +11489,20 @@ export declare const switchThemeTokens: {
|
|
|
11158
11489
|
type SwitchThemeTokensShape = typeof switchThemeTokens;
|
|
11159
11490
|
/** Type of `switchThemeTokens`: the shape of the component tokens that presets and `dt` overrides can change. */
|
|
11160
11491
|
export interface TectraSwitchThemeTokens extends SwitchThemeTokensShape {}
|
|
11492
|
+
/** Design tokens of `tx-theme-configurator`: its width, the spacing of its rows and the look of their labels. */
|
|
11493
|
+
export declare const themeConfiguratorTokens: {
|
|
11494
|
+
root: {
|
|
11495
|
+
width: string;
|
|
11496
|
+
gap: string;
|
|
11497
|
+
sectionGap: string;
|
|
11498
|
+
labelColor: string;
|
|
11499
|
+
labelFontSize: string;
|
|
11500
|
+
labelFontWeight: string;
|
|
11501
|
+
};
|
|
11502
|
+
};
|
|
11503
|
+
type ThemeConfiguratorTokensShape = typeof themeConfiguratorTokens;
|
|
11504
|
+
/** Type of `themeConfiguratorTokens`: the shape of the component tokens that presets and `dt` overrides can change. */
|
|
11505
|
+
export interface TectraThemeConfiguratorTokens extends ThemeConfiguratorTokensShape {}
|
|
11161
11506
|
/** Design tokens of `tx-switch-language`: colors, sizes and spacing of its root, thumb and option. */
|
|
11162
11507
|
export declare const switchLanguageTokens: {
|
|
11163
11508
|
root: {
|
|
@@ -11735,6 +12080,11 @@ export declare const chartTokens: {
|
|
|
11735
12080
|
milestoneSize: string;
|
|
11736
12081
|
milestoneColor: string;
|
|
11737
12082
|
milestoneRadius: string;
|
|
12083
|
+
dependencyColor: string;
|
|
12084
|
+
dependencyWidth: string;
|
|
12085
|
+
dependencyActiveColor: string;
|
|
12086
|
+
dependencyActiveWidth: string;
|
|
12087
|
+
dimmedOpacity: string;
|
|
11738
12088
|
toolbarGap: string;
|
|
11739
12089
|
maxHeight: string;
|
|
11740
12090
|
radius: string;
|
|
@@ -12057,6 +12407,8 @@ export declare const confettiTokens: {
|
|
|
12057
12407
|
duration: string;
|
|
12058
12408
|
easing: string;
|
|
12059
12409
|
stagger: string;
|
|
12410
|
+
hold: string;
|
|
12411
|
+
fadeDuration: string;
|
|
12060
12412
|
};
|
|
12061
12413
|
};
|
|
12062
12414
|
type ConfettiTokensShape = typeof confettiTokens;
|
|
@@ -12086,5 +12438,5 @@ export declare const mascotTokens: {
|
|
|
12086
12438
|
type MascotTokensShape = typeof mascotTokens;
|
|
12087
12439
|
/** Type of `mascotTokens`: the shape of the component tokens that presets and `dt` overrides can change. */
|
|
12088
12440
|
export interface TectraMascotTokens extends MascotTokensShape {}
|
|
12089
|
-
export {};
|
|
12441
|
+
export type { TectraPrimary, TectraSurface };
|
|
12090
12442
|
//# sourceMappingURL=tectra-ng-themes.d.ts.map
|