@tectra-ng/themes 0.4.3 → 0.4.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tectra-ng/themes",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.5",
|
|
4
4
|
"description": "Light and dark themes for tectra: semantic and component tokens, presets and CSS variables.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://tectra-ng.com",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"presets"
|
|
24
24
|
],
|
|
25
25
|
"peerDependencies": {
|
|
26
|
-
"@tectra-ng/tokens": "^0.4.
|
|
26
|
+
"@tectra-ng/tokens": "^0.4.5"
|
|
27
27
|
},
|
|
28
28
|
"publishConfig": {
|
|
29
29
|
"access": "public"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TectraColorScale, TectraPrimary, TectraPrimary as TectraPrimary$1, TectraSurface, TectraSurface as TectraSurface$1, TectraSurfaceScale } from "@tectra-ng/tokens";
|
|
1
|
+
import { TectraAccent, 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. */
|
|
@@ -165,6 +165,10 @@ export declare const COMPONENT_TOKENS: {
|
|
|
165
165
|
shadow: string;
|
|
166
166
|
};
|
|
167
167
|
transitionDuration: string;
|
|
168
|
+
actionSize: string;
|
|
169
|
+
actionRoom: string;
|
|
170
|
+
iconGap: string;
|
|
171
|
+
panelMaxWidth: string;
|
|
168
172
|
};
|
|
169
173
|
};
|
|
170
174
|
inputGroup: {
|
|
@@ -184,13 +188,19 @@ export declare const COMPONENT_TOKENS: {
|
|
|
184
188
|
fontWeight: string;
|
|
185
189
|
gap: string;
|
|
186
190
|
marginBottom: string;
|
|
191
|
+
lineHeight: string;
|
|
192
|
+
textDisplay: string;
|
|
187
193
|
requiredColor: string;
|
|
188
194
|
hintColor: string;
|
|
195
|
+
hintFontSize: string;
|
|
196
|
+
filledColor: string;
|
|
197
|
+
filledFontSize: string;
|
|
189
198
|
};
|
|
190
199
|
subtle: {
|
|
191
200
|
color: string;
|
|
192
201
|
fontSize: string;
|
|
193
202
|
fontWeight: string;
|
|
203
|
+
lineHeight: string;
|
|
194
204
|
};
|
|
195
205
|
};
|
|
196
206
|
floatLabel: {
|
|
@@ -405,54 +415,63 @@ export declare const COMPONENT_TOKENS: {
|
|
|
405
415
|
};
|
|
406
416
|
outlined: {
|
|
407
417
|
primary: {
|
|
418
|
+
background: string;
|
|
408
419
|
hoverBackground: string;
|
|
409
420
|
activeBackground: string;
|
|
410
421
|
borderColor: string;
|
|
411
422
|
color: string;
|
|
412
423
|
};
|
|
413
424
|
secondary: {
|
|
425
|
+
background: string;
|
|
414
426
|
hoverBackground: string;
|
|
415
427
|
activeBackground: string;
|
|
416
428
|
borderColor: string;
|
|
417
429
|
color: string;
|
|
418
430
|
};
|
|
419
431
|
success: {
|
|
432
|
+
background: string;
|
|
420
433
|
hoverBackground: string;
|
|
421
434
|
activeBackground: string;
|
|
422
435
|
borderColor: string;
|
|
423
436
|
color: string;
|
|
424
437
|
};
|
|
425
438
|
info: {
|
|
439
|
+
background: string;
|
|
426
440
|
hoverBackground: string;
|
|
427
441
|
activeBackground: string;
|
|
428
442
|
borderColor: string;
|
|
429
443
|
color: string;
|
|
430
444
|
};
|
|
431
445
|
warn: {
|
|
446
|
+
background: string;
|
|
432
447
|
hoverBackground: string;
|
|
433
448
|
activeBackground: string;
|
|
434
449
|
borderColor: string;
|
|
435
450
|
color: string;
|
|
436
451
|
};
|
|
437
452
|
help: {
|
|
453
|
+
background: string;
|
|
438
454
|
hoverBackground: string;
|
|
439
455
|
activeBackground: string;
|
|
440
456
|
borderColor: string;
|
|
441
457
|
color: string;
|
|
442
458
|
};
|
|
443
459
|
danger: {
|
|
460
|
+
background: string;
|
|
444
461
|
hoverBackground: string;
|
|
445
462
|
activeBackground: string;
|
|
446
463
|
borderColor: string;
|
|
447
464
|
color: string;
|
|
448
465
|
};
|
|
449
466
|
contrast: {
|
|
467
|
+
background: string;
|
|
450
468
|
hoverBackground: string;
|
|
451
469
|
activeBackground: string;
|
|
452
470
|
borderColor: string;
|
|
453
471
|
color: string;
|
|
454
472
|
};
|
|
455
473
|
plain: {
|
|
474
|
+
background: string;
|
|
456
475
|
hoverBackground: string;
|
|
457
476
|
activeBackground: string;
|
|
458
477
|
borderColor: string;
|
|
@@ -530,6 +549,7 @@ export declare const COMPONENT_TOKENS: {
|
|
|
530
549
|
borderColor: string;
|
|
531
550
|
borderRadius: string;
|
|
532
551
|
shadow: string;
|
|
552
|
+
maxWidth: string;
|
|
533
553
|
};
|
|
534
554
|
list: {
|
|
535
555
|
padding: string;
|
|
@@ -581,6 +601,7 @@ export declare const COMPONENT_TOKENS: {
|
|
|
581
601
|
removeSize: string;
|
|
582
602
|
removeColor: string;
|
|
583
603
|
removeHoverColor: string;
|
|
604
|
+
inputMinWidth: string;
|
|
584
605
|
};
|
|
585
606
|
optionGroup: {
|
|
586
607
|
padding: string;
|
|
@@ -634,6 +655,7 @@ export declare const COMPONENT_TOKENS: {
|
|
|
634
655
|
chipPaddingX: string;
|
|
635
656
|
chipBorderRadius: string;
|
|
636
657
|
inputMinWidth: string;
|
|
658
|
+
chipRemoveSize: string;
|
|
637
659
|
};
|
|
638
660
|
};
|
|
639
661
|
country: {
|
|
@@ -1418,6 +1440,7 @@ export declare const COMPONENT_TOKENS: {
|
|
|
1418
1440
|
focusRingOffset: string;
|
|
1419
1441
|
borderRadius: string;
|
|
1420
1442
|
clearGap: string;
|
|
1443
|
+
clearPadding: string;
|
|
1421
1444
|
clearColor: string;
|
|
1422
1445
|
clearHoverColor: string;
|
|
1423
1446
|
clearFontSize: string;
|
|
@@ -1504,6 +1527,8 @@ export declare const COMPONENT_TOKENS: {
|
|
|
1504
1527
|
iconSize: string;
|
|
1505
1528
|
dotSize: string;
|
|
1506
1529
|
removeSize: string;
|
|
1530
|
+
removeOffset: string;
|
|
1531
|
+
spinDuration: string;
|
|
1507
1532
|
focusRingColor: string;
|
|
1508
1533
|
};
|
|
1509
1534
|
sm: {
|
|
@@ -1571,6 +1596,7 @@ export declare const COMPONENT_TOKENS: {
|
|
|
1571
1596
|
tint: string;
|
|
1572
1597
|
iconSize: string;
|
|
1573
1598
|
actionSize: string;
|
|
1599
|
+
actionOffset: string;
|
|
1574
1600
|
focusRingColor: string;
|
|
1575
1601
|
};
|
|
1576
1602
|
sm: {
|
|
@@ -1750,6 +1776,10 @@ export declare const COMPONENT_TOKENS: {
|
|
|
1750
1776
|
background: string;
|
|
1751
1777
|
color: string;
|
|
1752
1778
|
};
|
|
1779
|
+
solid: {
|
|
1780
|
+
background: string;
|
|
1781
|
+
color: string;
|
|
1782
|
+
};
|
|
1753
1783
|
};
|
|
1754
1784
|
group: {
|
|
1755
1785
|
overlap: string;
|
|
@@ -1835,6 +1865,16 @@ export declare const COMPONENT_TOKENS: {
|
|
|
1835
1865
|
iconBorderRadius: string;
|
|
1836
1866
|
iconColor: string;
|
|
1837
1867
|
iconBackground: string;
|
|
1868
|
+
iconScale: string;
|
|
1869
|
+
headerGap: string;
|
|
1870
|
+
headerEndGap: string;
|
|
1871
|
+
leadGap: string;
|
|
1872
|
+
headingGap: string;
|
|
1873
|
+
titleLineHeight: string;
|
|
1874
|
+
subtitleLineHeight: string;
|
|
1875
|
+
actionsGap: string;
|
|
1876
|
+
footerGap: string;
|
|
1877
|
+
toggleSize: string;
|
|
1838
1878
|
transitionDuration: string;
|
|
1839
1879
|
};
|
|
1840
1880
|
inset: {
|
|
@@ -1864,6 +1904,7 @@ export declare const COMPONENT_TOKENS: {
|
|
|
1864
1904
|
legendBorderColor: string;
|
|
1865
1905
|
legendBorderRadius: string;
|
|
1866
1906
|
togglePadding: string;
|
|
1907
|
+
toggleGap: string;
|
|
1867
1908
|
focusRingWidth: string;
|
|
1868
1909
|
focusRingOffset: string;
|
|
1869
1910
|
focusRingShadow: string;
|
|
@@ -2081,6 +2122,7 @@ export declare const COMPONENT_TOKENS: {
|
|
|
2081
2122
|
shadow: string;
|
|
2082
2123
|
};
|
|
2083
2124
|
action: {
|
|
2125
|
+
gap: string;
|
|
2084
2126
|
padding: string;
|
|
2085
2127
|
fontSize: string;
|
|
2086
2128
|
fontWeight: string;
|
|
@@ -2141,6 +2183,7 @@ export declare const COMPONENT_TOKENS: {
|
|
|
2141
2183
|
subtitle: {
|
|
2142
2184
|
color: string;
|
|
2143
2185
|
fontSize: string;
|
|
2186
|
+
marginTop: string;
|
|
2144
2187
|
};
|
|
2145
2188
|
content: {
|
|
2146
2189
|
padding: string;
|
|
@@ -2467,6 +2510,7 @@ export declare const COMPONENT_TOKENS: {
|
|
|
2467
2510
|
};
|
|
2468
2511
|
columnResizer: {
|
|
2469
2512
|
width: string;
|
|
2513
|
+
hitWidth: string;
|
|
2470
2514
|
lineWidth: string;
|
|
2471
2515
|
color: string;
|
|
2472
2516
|
};
|
|
@@ -2543,6 +2587,8 @@ export declare const COMPONENT_TOKENS: {
|
|
|
2543
2587
|
actions: {
|
|
2544
2588
|
gap: string;
|
|
2545
2589
|
overflowPadding: string;
|
|
2590
|
+
menuIconSize: string;
|
|
2591
|
+
menuIconFontSize: string;
|
|
2546
2592
|
};
|
|
2547
2593
|
card: {
|
|
2548
2594
|
minWidth: string;
|
|
@@ -3326,6 +3372,9 @@ export declare const COMPONENT_TOKENS: {
|
|
|
3326
3372
|
borderWidth: string;
|
|
3327
3373
|
color: string;
|
|
3328
3374
|
activeColor: string;
|
|
3375
|
+
completedBackground: string;
|
|
3376
|
+
completedBorderColor: string;
|
|
3377
|
+
completedColor: string;
|
|
3329
3378
|
size: string;
|
|
3330
3379
|
fontSize: string;
|
|
3331
3380
|
fontWeight: string;
|
|
@@ -3744,6 +3793,7 @@ export declare const COMPONENT_TOKENS: {
|
|
|
3744
3793
|
};
|
|
3745
3794
|
tool: {
|
|
3746
3795
|
size: string;
|
|
3796
|
+
gap: string;
|
|
3747
3797
|
borderRadius: string;
|
|
3748
3798
|
iconSize: string;
|
|
3749
3799
|
color: string;
|
|
@@ -3755,6 +3805,9 @@ export declare const COMPONENT_TOKENS: {
|
|
|
3755
3805
|
labelFontSize: string;
|
|
3756
3806
|
labelFontWeight: string;
|
|
3757
3807
|
labelPadding: string;
|
|
3808
|
+
labelMinWidth: string;
|
|
3809
|
+
menuPadding: string;
|
|
3810
|
+
colorBarHeight: string;
|
|
3758
3811
|
focusRingWidth: string;
|
|
3759
3812
|
focusRingColor: string;
|
|
3760
3813
|
};
|
|
@@ -3763,12 +3816,17 @@ export declare const COMPONENT_TOKENS: {
|
|
|
3763
3816
|
hoverBackground: string;
|
|
3764
3817
|
color: string;
|
|
3765
3818
|
animationDuration: string;
|
|
3819
|
+
gap: string;
|
|
3820
|
+
padding: string;
|
|
3766
3821
|
};
|
|
3767
3822
|
content: {
|
|
3768
3823
|
padding: string;
|
|
3769
3824
|
minHeight: string;
|
|
3770
3825
|
placeholderColor: string;
|
|
3771
3826
|
};
|
|
3827
|
+
table: {
|
|
3828
|
+
cellMinWidth: string;
|
|
3829
|
+
};
|
|
3772
3830
|
footer: {
|
|
3773
3831
|
padding: string;
|
|
3774
3832
|
color: string;
|
|
@@ -3792,6 +3850,8 @@ export declare const COMPONENT_TOKENS: {
|
|
|
3792
3850
|
shadow: string;
|
|
3793
3851
|
offset: string;
|
|
3794
3852
|
linkMaxWidth: string;
|
|
3853
|
+
labelGap: string;
|
|
3854
|
+
itemPadding: string;
|
|
3795
3855
|
};
|
|
3796
3856
|
popover: {
|
|
3797
3857
|
padding: string;
|
|
@@ -3814,6 +3874,7 @@ export declare const COMPONENT_TOKENS: {
|
|
|
3814
3874
|
itemRadius: string;
|
|
3815
3875
|
itemFocusBackground: string;
|
|
3816
3876
|
avatarSize: string;
|
|
3877
|
+
commandIconInset: string;
|
|
3817
3878
|
secondaryColor: string;
|
|
3818
3879
|
};
|
|
3819
3880
|
};
|
|
@@ -3851,6 +3912,8 @@ export declare const COMPONENT_TOKENS: {
|
|
|
3851
3912
|
task: {
|
|
3852
3913
|
size: string;
|
|
3853
3914
|
gap: string;
|
|
3915
|
+
checkWidth: string;
|
|
3916
|
+
checkHeight: string;
|
|
3854
3917
|
borderRadius: string;
|
|
3855
3918
|
borderColor: string;
|
|
3856
3919
|
checkedBackground: string;
|
|
@@ -3890,6 +3953,7 @@ export declare const COMPONENT_TOKENS: {
|
|
|
3890
3953
|
video: {
|
|
3891
3954
|
borderRadius: string;
|
|
3892
3955
|
aspectRatio: string;
|
|
3956
|
+
maxWidth: string;
|
|
3893
3957
|
};
|
|
3894
3958
|
mention: {
|
|
3895
3959
|
padding: string;
|
|
@@ -4000,6 +4064,11 @@ export declare const COMPONENT_TOKENS: {
|
|
|
4000
4064
|
widgetWidth: string;
|
|
4001
4065
|
countColor: string;
|
|
4002
4066
|
countFontSize: string;
|
|
4067
|
+
countMinWidth: string;
|
|
4068
|
+
inputPaddingEnd: string;
|
|
4069
|
+
optionSize: string;
|
|
4070
|
+
optionInset: string;
|
|
4071
|
+
optionFontSize: string;
|
|
4003
4072
|
};
|
|
4004
4073
|
};
|
|
4005
4074
|
codeHighlight: {
|
|
@@ -4350,6 +4419,7 @@ export declare const COMPONENT_TOKENS: {
|
|
|
4350
4419
|
hoverBackground: string;
|
|
4351
4420
|
activeBackground: string;
|
|
4352
4421
|
borderColor: string;
|
|
4422
|
+
shadow: string;
|
|
4353
4423
|
};
|
|
4354
4424
|
};
|
|
4355
4425
|
emptyState: {
|
|
@@ -5569,6 +5639,11 @@ export declare const COMPONENT_TOKENS: {
|
|
|
5569
5639
|
dependencyActiveWidth: string;
|
|
5570
5640
|
dimmedOpacity: string;
|
|
5571
5641
|
toolbarGap: string;
|
|
5642
|
+
tickPaddingX: string;
|
|
5643
|
+
toggleGap: string;
|
|
5644
|
+
barMinWidth: string;
|
|
5645
|
+
insideLabelPadding: string;
|
|
5646
|
+
emptyMinHeight: string;
|
|
5572
5647
|
maxHeight: string;
|
|
5573
5648
|
radius: string;
|
|
5574
5649
|
};
|
|
@@ -5929,6 +6004,24 @@ export interface TectraCssVariable {
|
|
|
5929
6004
|
/** Value as it is written in CSS. */
|
|
5930
6005
|
value: string;
|
|
5931
6006
|
}
|
|
6007
|
+
/** Unit of the sizes in the written CSS variables: `px` as the tokens are, or `rem` to follow the root font size. */
|
|
6008
|
+
export type TectraCssUnits = 'px' | 'rem';
|
|
6009
|
+
/** How a preset is written as CSS variables: extra palettes and the unit of sizes. */
|
|
6010
|
+
export interface TectraCssOptions {
|
|
6011
|
+
/**
|
|
6012
|
+
* Accent palettes written as `--tx-<palette>-<step>` next to the severity palettes, e.g. `['teal', 'rose']`; none by
|
|
6013
|
+
* default. Names of severity palettes (`red`, `green`, `orange`, `yellow`, `sky`, `purple`, `amber`, `blue`) are always
|
|
6014
|
+
* written, from the severity palettes.
|
|
6015
|
+
*/
|
|
6016
|
+
palettes?: readonly TectraAccent[];
|
|
6017
|
+
/**
|
|
6018
|
+
* `rem` writes every px size of the tokens as rem (`px / rootFontSize`), so components scale with `html { font-size }`;
|
|
6019
|
+
* values of 1px and less stay in px so hairline borders stay sharp (default `px`).
|
|
6020
|
+
*/
|
|
6021
|
+
units?: TectraCssUnits;
|
|
6022
|
+
/** Root font size in px that rem sizes are counted from (default 16). */
|
|
6023
|
+
rootFontSize?: number;
|
|
6024
|
+
}
|
|
5932
6025
|
/** Builds the semantic tokens of the light color scheme from the accent and surface palettes. */
|
|
5933
6026
|
export declare function createLightSemantic({ accent, surface }: TectraPalettes): TectraSemanticTokens;
|
|
5934
6027
|
/** Builds the semantic tokens of the dark color scheme from the accent and surface palettes. */
|
|
@@ -6108,54 +6201,63 @@ export declare const buttonTokens: {
|
|
|
6108
6201
|
};
|
|
6109
6202
|
outlined: {
|
|
6110
6203
|
primary: {
|
|
6204
|
+
background: string;
|
|
6111
6205
|
hoverBackground: string;
|
|
6112
6206
|
activeBackground: string;
|
|
6113
6207
|
borderColor: string;
|
|
6114
6208
|
color: string;
|
|
6115
6209
|
};
|
|
6116
6210
|
secondary: {
|
|
6211
|
+
background: string;
|
|
6117
6212
|
hoverBackground: string;
|
|
6118
6213
|
activeBackground: string;
|
|
6119
6214
|
borderColor: string;
|
|
6120
6215
|
color: string;
|
|
6121
6216
|
};
|
|
6122
6217
|
success: {
|
|
6218
|
+
background: string;
|
|
6123
6219
|
hoverBackground: string;
|
|
6124
6220
|
activeBackground: string;
|
|
6125
6221
|
borderColor: string;
|
|
6126
6222
|
color: string;
|
|
6127
6223
|
};
|
|
6128
6224
|
info: {
|
|
6225
|
+
background: string;
|
|
6129
6226
|
hoverBackground: string;
|
|
6130
6227
|
activeBackground: string;
|
|
6131
6228
|
borderColor: string;
|
|
6132
6229
|
color: string;
|
|
6133
6230
|
};
|
|
6134
6231
|
warn: {
|
|
6232
|
+
background: string;
|
|
6135
6233
|
hoverBackground: string;
|
|
6136
6234
|
activeBackground: string;
|
|
6137
6235
|
borderColor: string;
|
|
6138
6236
|
color: string;
|
|
6139
6237
|
};
|
|
6140
6238
|
help: {
|
|
6239
|
+
background: string;
|
|
6141
6240
|
hoverBackground: string;
|
|
6142
6241
|
activeBackground: string;
|
|
6143
6242
|
borderColor: string;
|
|
6144
6243
|
color: string;
|
|
6145
6244
|
};
|
|
6146
6245
|
danger: {
|
|
6246
|
+
background: string;
|
|
6147
6247
|
hoverBackground: string;
|
|
6148
6248
|
activeBackground: string;
|
|
6149
6249
|
borderColor: string;
|
|
6150
6250
|
color: string;
|
|
6151
6251
|
};
|
|
6152
6252
|
contrast: {
|
|
6253
|
+
background: string;
|
|
6153
6254
|
hoverBackground: string;
|
|
6154
6255
|
activeBackground: string;
|
|
6155
6256
|
borderColor: string;
|
|
6156
6257
|
color: string;
|
|
6157
6258
|
};
|
|
6158
6259
|
plain: {
|
|
6260
|
+
background: string;
|
|
6159
6261
|
hoverBackground: string;
|
|
6160
6262
|
activeBackground: string;
|
|
6161
6263
|
borderColor: string;
|
|
@@ -6279,6 +6381,10 @@ export declare const formFieldTokens: {
|
|
|
6279
6381
|
shadow: string;
|
|
6280
6382
|
};
|
|
6281
6383
|
transitionDuration: string;
|
|
6384
|
+
actionSize: string;
|
|
6385
|
+
actionRoom: string;
|
|
6386
|
+
iconGap: string;
|
|
6387
|
+
panelMaxWidth: string;
|
|
6282
6388
|
};
|
|
6283
6389
|
};
|
|
6284
6390
|
type FormFieldTokensShape = typeof formFieldTokens;
|
|
@@ -6306,13 +6412,19 @@ export declare const labelTokens: {
|
|
|
6306
6412
|
fontWeight: string;
|
|
6307
6413
|
gap: string;
|
|
6308
6414
|
marginBottom: string;
|
|
6415
|
+
lineHeight: string;
|
|
6416
|
+
textDisplay: string;
|
|
6309
6417
|
requiredColor: string;
|
|
6310
6418
|
hintColor: string;
|
|
6419
|
+
hintFontSize: string;
|
|
6420
|
+
filledColor: string;
|
|
6421
|
+
filledFontSize: string;
|
|
6311
6422
|
};
|
|
6312
6423
|
subtle: {
|
|
6313
6424
|
color: string;
|
|
6314
6425
|
fontSize: string;
|
|
6315
6426
|
fontWeight: string;
|
|
6427
|
+
lineHeight: string;
|
|
6316
6428
|
};
|
|
6317
6429
|
};
|
|
6318
6430
|
/** Design tokens of `tx-float-label`: colors, sizes and spacing of its root, over, in and on. */
|
|
@@ -6396,6 +6508,7 @@ export declare const selectTokens: {
|
|
|
6396
6508
|
borderColor: string;
|
|
6397
6509
|
borderRadius: string;
|
|
6398
6510
|
shadow: string;
|
|
6511
|
+
maxWidth: string;
|
|
6399
6512
|
};
|
|
6400
6513
|
list: {
|
|
6401
6514
|
padding: string;
|
|
@@ -6447,6 +6560,7 @@ export declare const selectTokens: {
|
|
|
6447
6560
|
removeSize: string;
|
|
6448
6561
|
removeColor: string;
|
|
6449
6562
|
removeHoverColor: string;
|
|
6563
|
+
inputMinWidth: string;
|
|
6450
6564
|
};
|
|
6451
6565
|
optionGroup: {
|
|
6452
6566
|
padding: string;
|
|
@@ -6508,6 +6622,7 @@ export declare const chipsInputTokens: {
|
|
|
6508
6622
|
chipPaddingX: string;
|
|
6509
6623
|
chipBorderRadius: string;
|
|
6510
6624
|
inputMinWidth: string;
|
|
6625
|
+
chipRemoveSize: string;
|
|
6511
6626
|
};
|
|
6512
6627
|
};
|
|
6513
6628
|
type ChipsInputTokensShape = typeof chipsInputTokens;
|
|
@@ -7168,6 +7283,7 @@ export declare const ratingTokens: {
|
|
|
7168
7283
|
focusRingOffset: string;
|
|
7169
7284
|
borderRadius: string;
|
|
7170
7285
|
clearGap: string;
|
|
7286
|
+
clearPadding: string;
|
|
7171
7287
|
clearColor: string;
|
|
7172
7288
|
clearHoverColor: string;
|
|
7173
7289
|
clearFontSize: string;
|
|
@@ -7310,6 +7426,8 @@ export declare const pillTokens: {
|
|
|
7310
7426
|
iconSize: string;
|
|
7311
7427
|
dotSize: string;
|
|
7312
7428
|
removeSize: string;
|
|
7429
|
+
removeOffset: string;
|
|
7430
|
+
spinDuration: string;
|
|
7313
7431
|
focusRingColor: string;
|
|
7314
7432
|
};
|
|
7315
7433
|
sm: {
|
|
@@ -7384,6 +7502,7 @@ export declare const tagTokens: {
|
|
|
7384
7502
|
tint: string;
|
|
7385
7503
|
iconSize: string;
|
|
7386
7504
|
actionSize: string;
|
|
7505
|
+
actionOffset: string;
|
|
7387
7506
|
focusRingColor: string;
|
|
7388
7507
|
};
|
|
7389
7508
|
sm: {
|
|
@@ -7589,6 +7708,10 @@ export declare const avatarTokens: {
|
|
|
7589
7708
|
background: string;
|
|
7590
7709
|
color: string;
|
|
7591
7710
|
};
|
|
7711
|
+
solid: {
|
|
7712
|
+
background: string;
|
|
7713
|
+
color: string;
|
|
7714
|
+
};
|
|
7592
7715
|
};
|
|
7593
7716
|
group: {
|
|
7594
7717
|
overlap: string;
|
|
@@ -7680,6 +7803,16 @@ export declare const panelTokens: {
|
|
|
7680
7803
|
iconBorderRadius: string;
|
|
7681
7804
|
iconColor: string;
|
|
7682
7805
|
iconBackground: string;
|
|
7806
|
+
iconScale: string;
|
|
7807
|
+
headerGap: string;
|
|
7808
|
+
headerEndGap: string;
|
|
7809
|
+
leadGap: string;
|
|
7810
|
+
headingGap: string;
|
|
7811
|
+
titleLineHeight: string;
|
|
7812
|
+
subtitleLineHeight: string;
|
|
7813
|
+
actionsGap: string;
|
|
7814
|
+
footerGap: string;
|
|
7815
|
+
toggleSize: string;
|
|
7683
7816
|
transitionDuration: string;
|
|
7684
7817
|
};
|
|
7685
7818
|
inset: {
|
|
@@ -7710,6 +7843,7 @@ export declare const fieldsetTokens: {
|
|
|
7710
7843
|
legendBorderColor: string;
|
|
7711
7844
|
legendBorderRadius: string;
|
|
7712
7845
|
togglePadding: string;
|
|
7846
|
+
toggleGap: string;
|
|
7713
7847
|
focusRingWidth: string;
|
|
7714
7848
|
focusRingOffset: string;
|
|
7715
7849
|
focusRingShadow: string;
|
|
@@ -7978,6 +8112,7 @@ export declare const toastTokens: {
|
|
|
7978
8112
|
shadow: string;
|
|
7979
8113
|
};
|
|
7980
8114
|
action: {
|
|
8115
|
+
gap: string;
|
|
7981
8116
|
padding: string;
|
|
7982
8117
|
fontSize: string;
|
|
7983
8118
|
fontWeight: string;
|
|
@@ -8045,6 +8180,7 @@ export declare const dialogTokens: {
|
|
|
8045
8180
|
subtitle: {
|
|
8046
8181
|
color: string;
|
|
8047
8182
|
fontSize: string;
|
|
8183
|
+
marginTop: string;
|
|
8048
8184
|
};
|
|
8049
8185
|
content: {
|
|
8050
8186
|
padding: string;
|
|
@@ -8407,6 +8543,7 @@ export declare const tableTokens: {
|
|
|
8407
8543
|
};
|
|
8408
8544
|
columnResizer: {
|
|
8409
8545
|
width: string;
|
|
8546
|
+
hitWidth: string;
|
|
8410
8547
|
lineWidth: string;
|
|
8411
8548
|
color: string;
|
|
8412
8549
|
};
|
|
@@ -8483,6 +8620,8 @@ export declare const tableTokens: {
|
|
|
8483
8620
|
actions: {
|
|
8484
8621
|
gap: string;
|
|
8485
8622
|
overflowPadding: string;
|
|
8623
|
+
menuIconSize: string;
|
|
8624
|
+
menuIconFontSize: string;
|
|
8486
8625
|
};
|
|
8487
8626
|
card: {
|
|
8488
8627
|
minWidth: string;
|
|
@@ -9536,6 +9675,8 @@ export declare const editorContentTokens: {
|
|
|
9536
9675
|
task: {
|
|
9537
9676
|
size: string;
|
|
9538
9677
|
gap: string;
|
|
9678
|
+
checkWidth: string;
|
|
9679
|
+
checkHeight: string;
|
|
9539
9680
|
borderRadius: string;
|
|
9540
9681
|
borderColor: string;
|
|
9541
9682
|
checkedBackground: string;
|
|
@@ -9575,6 +9716,7 @@ export declare const editorContentTokens: {
|
|
|
9575
9716
|
video: {
|
|
9576
9717
|
borderRadius: string;
|
|
9577
9718
|
aspectRatio: string;
|
|
9719
|
+
maxWidth: string;
|
|
9578
9720
|
};
|
|
9579
9721
|
mention: {
|
|
9580
9722
|
padding: string;
|
|
@@ -9626,6 +9768,7 @@ export declare const editorTokens: {
|
|
|
9626
9768
|
};
|
|
9627
9769
|
tool: {
|
|
9628
9770
|
size: string;
|
|
9771
|
+
gap: string;
|
|
9629
9772
|
borderRadius: string;
|
|
9630
9773
|
iconSize: string;
|
|
9631
9774
|
color: string;
|
|
@@ -9637,6 +9780,9 @@ export declare const editorTokens: {
|
|
|
9637
9780
|
labelFontSize: string;
|
|
9638
9781
|
labelFontWeight: string;
|
|
9639
9782
|
labelPadding: string;
|
|
9783
|
+
labelMinWidth: string;
|
|
9784
|
+
menuPadding: string;
|
|
9785
|
+
colorBarHeight: string;
|
|
9640
9786
|
focusRingWidth: string;
|
|
9641
9787
|
focusRingColor: string;
|
|
9642
9788
|
};
|
|
@@ -9645,12 +9791,17 @@ export declare const editorTokens: {
|
|
|
9645
9791
|
hoverBackground: string;
|
|
9646
9792
|
color: string;
|
|
9647
9793
|
animationDuration: string;
|
|
9794
|
+
gap: string;
|
|
9795
|
+
padding: string;
|
|
9648
9796
|
};
|
|
9649
9797
|
content: {
|
|
9650
9798
|
padding: string;
|
|
9651
9799
|
minHeight: string;
|
|
9652
9800
|
placeholderColor: string;
|
|
9653
9801
|
};
|
|
9802
|
+
table: {
|
|
9803
|
+
cellMinWidth: string;
|
|
9804
|
+
};
|
|
9654
9805
|
footer: {
|
|
9655
9806
|
padding: string;
|
|
9656
9807
|
color: string;
|
|
@@ -9674,6 +9825,8 @@ export declare const editorTokens: {
|
|
|
9674
9825
|
shadow: string;
|
|
9675
9826
|
offset: string;
|
|
9676
9827
|
linkMaxWidth: string;
|
|
9828
|
+
labelGap: string;
|
|
9829
|
+
itemPadding: string;
|
|
9677
9830
|
};
|
|
9678
9831
|
popover: {
|
|
9679
9832
|
padding: string;
|
|
@@ -9696,6 +9849,7 @@ export declare const editorTokens: {
|
|
|
9696
9849
|
itemRadius: string;
|
|
9697
9850
|
itemFocusBackground: string;
|
|
9698
9851
|
avatarSize: string;
|
|
9852
|
+
commandIconInset: string;
|
|
9699
9853
|
secondaryColor: string;
|
|
9700
9854
|
};
|
|
9701
9855
|
};
|
|
@@ -9818,6 +9972,11 @@ export declare const codeEditorTokens: {
|
|
|
9818
9972
|
widgetWidth: string;
|
|
9819
9973
|
countColor: string;
|
|
9820
9974
|
countFontSize: string;
|
|
9975
|
+
countMinWidth: string;
|
|
9976
|
+
inputPaddingEnd: string;
|
|
9977
|
+
optionSize: string;
|
|
9978
|
+
optionInset: string;
|
|
9979
|
+
optionFontSize: string;
|
|
9821
9980
|
};
|
|
9822
9981
|
};
|
|
9823
9982
|
/**
|
|
@@ -10177,14 +10336,25 @@ export declare function toCssVariables(tokens: object, prefix?: string): TectraC
|
|
|
10177
10336
|
* `{}` when there are no tokens.
|
|
10178
10337
|
*/
|
|
10179
10338
|
export declare function toStyleObject(tokens: object | undefined, prefix: string): Record<string, string>;
|
|
10339
|
+
/**
|
|
10340
|
+
* Writes every px size in a CSS value as rem, counted from the root font size (default 16); sizes of 1px and less stay
|
|
10341
|
+
* in px, so `1px solid` borders stay sharp.
|
|
10342
|
+
*/
|
|
10343
|
+
export declare function pxToRem(value: string, rootFontSize?: number): string;
|
|
10180
10344
|
/** CSS variables of one component's tokens, named `--tx-<component>-…`. */
|
|
10181
10345
|
export declare function componentVariables(name: string, tokens: object): TectraCssVariable[];
|
|
10182
|
-
/** CSS rule on `:root` with the variables of one component's tokens. */
|
|
10183
|
-
export declare function componentTokensCss(name: string, tokens: object): string;
|
|
10184
|
-
/**
|
|
10185
|
-
|
|
10186
|
-
|
|
10187
|
-
|
|
10346
|
+
/** CSS rule on `:root` with the variables of one component's tokens; `options.units` sets the unit of sizes. */
|
|
10347
|
+
export declare function componentTokensCss(name: string, tokens: object, options?: TectraCssOptions): string;
|
|
10348
|
+
/**
|
|
10349
|
+
* CSS of a preset without component tokens: shared and semantic variables for light and dark and the extra CSS;
|
|
10350
|
+
* `options` adds accent palettes and sets the unit of sizes.
|
|
10351
|
+
*/
|
|
10352
|
+
export declare function presetBaseCss(preset: TectraPreset, options?: TectraCssOptions): string;
|
|
10353
|
+
/**
|
|
10354
|
+
* Full CSS of a preset: the base CSS plus the variables of all component tokens with the preset overrides; `options`
|
|
10355
|
+
* adds accent palettes and sets the unit of sizes.
|
|
10356
|
+
*/
|
|
10357
|
+
export declare function presetToCss(preset: TectraPreset, options?: TectraCssOptions): string;
|
|
10188
10358
|
/**
|
|
10189
10359
|
* Design tokens of `tx-stepper`: colors, sizes and spacing of its root, separator, step, step header, step
|
|
10190
10360
|
* title and other parts.
|
|
@@ -10231,6 +10401,9 @@ export declare const stepperTokens: {
|
|
|
10231
10401
|
borderWidth: string;
|
|
10232
10402
|
color: string;
|
|
10233
10403
|
activeColor: string;
|
|
10404
|
+
completedBackground: string;
|
|
10405
|
+
completedBorderColor: string;
|
|
10406
|
+
completedColor: string;
|
|
10234
10407
|
size: string;
|
|
10235
10408
|
fontSize: string;
|
|
10236
10409
|
fontWeight: string;
|
|
@@ -10791,6 +10964,7 @@ export declare const pageHeaderTokens: {
|
|
|
10791
10964
|
hoverBackground: string;
|
|
10792
10965
|
activeBackground: string;
|
|
10793
10966
|
borderColor: string;
|
|
10967
|
+
shadow: string;
|
|
10794
10968
|
};
|
|
10795
10969
|
};
|
|
10796
10970
|
type PageHeaderTokensShape = typeof pageHeaderTokens;
|
|
@@ -12086,6 +12260,11 @@ export declare const chartTokens: {
|
|
|
12086
12260
|
dependencyActiveWidth: string;
|
|
12087
12261
|
dimmedOpacity: string;
|
|
12088
12262
|
toolbarGap: string;
|
|
12263
|
+
tickPaddingX: string;
|
|
12264
|
+
toggleGap: string;
|
|
12265
|
+
barMinWidth: string;
|
|
12266
|
+
insideLabelPadding: string;
|
|
12267
|
+
emptyMinHeight: string;
|
|
12089
12268
|
maxHeight: string;
|
|
12090
12269
|
radius: string;
|
|
12091
12270
|
};
|