@vellira-ui/tokens 2.44.4 → 2.45.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/css/tokens.css +75 -0
- package/dist/dark/components/radio.d.ts +35 -0
- package/dist/dark/components/radio.d.ts.map +1 -1
- package/dist/dark/components/radio.js +3 -1
- package/dist/factories/createRadioPalette.d.ts +35 -0
- package/dist/factories/createRadioPalette.d.ts.map +1 -1
- package/dist/factories/createRadioPalette.js +36 -0
- package/dist/generated/token-types.d.ts +4 -4
- package/dist/generated/token-types.d.ts.map +1 -1
- package/dist/generated/token-types.js +100 -0
- package/dist/highContrast/components/radio.d.ts +35 -0
- package/dist/highContrast/components/radio.d.ts.map +1 -1
- package/dist/highContrast/components/radio.js +3 -1
- package/dist/light/components/radio.d.ts +35 -0
- package/dist/light/components/radio.d.ts.map +1 -1
- package/dist/light/components/radio.js +3 -1
- package/package.json +1 -1
package/dist/css/tokens.css
CHANGED
|
@@ -1295,6 +1295,31 @@
|
|
|
1295
1295
|
--modal-motion-close-duration: 150ms;
|
|
1296
1296
|
--modal-motion-easing: cubic-bezier(0.22, 1, 0.36, 1);
|
|
1297
1297
|
--modal-motion-open-duration: 180ms;
|
|
1298
|
+
--radio-size-sm-control-size: 14px;
|
|
1299
|
+
--radio-size-sm-indicator-size: 6px;
|
|
1300
|
+
--radio-size-sm-label-font-size: 14px;
|
|
1301
|
+
--radio-size-sm-label-line-height: 20px;
|
|
1302
|
+
--radio-size-sm-description-font-size: 12px;
|
|
1303
|
+
--radio-size-sm-description-line-height: 16px;
|
|
1304
|
+
--radio-size-md-control-size: 16px;
|
|
1305
|
+
--radio-size-md-indicator-size: 8px;
|
|
1306
|
+
--radio-size-md-label-font-size: 16px;
|
|
1307
|
+
--radio-size-md-label-line-height: 24px;
|
|
1308
|
+
--radio-size-md-description-font-size: 14px;
|
|
1309
|
+
--radio-size-md-description-line-height: 20px;
|
|
1310
|
+
--radio-size-lg-control-size: 20px;
|
|
1311
|
+
--radio-size-lg-indicator-size: 10px;
|
|
1312
|
+
--radio-size-lg-label-font-size: 20px;
|
|
1313
|
+
--radio-size-lg-label-line-height: 28px;
|
|
1314
|
+
--radio-size-lg-description-font-size: 16px;
|
|
1315
|
+
--radio-size-lg-description-line-height: 24px;
|
|
1316
|
+
--radio-motion-control-duration: 150ms;
|
|
1317
|
+
--radio-motion-easing: cubic-bezier(0.16, 1, 0.3, 1);
|
|
1318
|
+
--radio-motion-indicator-duration: 180ms;
|
|
1319
|
+
--radio-motion-selected-duration: 260ms;
|
|
1320
|
+
--radio-motion-pressed-scale: 0.96px;
|
|
1321
|
+
--radio-motion-active-scale: 0.92px;
|
|
1322
|
+
--radio-motion-pressed-opacity: 0.8px;
|
|
1298
1323
|
--radio-default-bg: #FFFFFF;
|
|
1299
1324
|
--radio-default-fg: #3D3754;
|
|
1300
1325
|
--radio-default-border: #BBB2D2;
|
|
@@ -3504,6 +3529,31 @@
|
|
|
3504
3529
|
--modal-motion-close-duration: 150ms;
|
|
3505
3530
|
--modal-motion-easing: cubic-bezier(0.22, 1, 0.36, 1);
|
|
3506
3531
|
--modal-motion-open-duration: 180ms;
|
|
3532
|
+
--radio-size-sm-control-size: 14px;
|
|
3533
|
+
--radio-size-sm-indicator-size: 6px;
|
|
3534
|
+
--radio-size-sm-label-font-size: 14px;
|
|
3535
|
+
--radio-size-sm-label-line-height: 20px;
|
|
3536
|
+
--radio-size-sm-description-font-size: 12px;
|
|
3537
|
+
--radio-size-sm-description-line-height: 16px;
|
|
3538
|
+
--radio-size-md-control-size: 16px;
|
|
3539
|
+
--radio-size-md-indicator-size: 8px;
|
|
3540
|
+
--radio-size-md-label-font-size: 16px;
|
|
3541
|
+
--radio-size-md-label-line-height: 24px;
|
|
3542
|
+
--radio-size-md-description-font-size: 14px;
|
|
3543
|
+
--radio-size-md-description-line-height: 20px;
|
|
3544
|
+
--radio-size-lg-control-size: 20px;
|
|
3545
|
+
--radio-size-lg-indicator-size: 10px;
|
|
3546
|
+
--radio-size-lg-label-font-size: 20px;
|
|
3547
|
+
--radio-size-lg-label-line-height: 28px;
|
|
3548
|
+
--radio-size-lg-description-font-size: 16px;
|
|
3549
|
+
--radio-size-lg-description-line-height: 24px;
|
|
3550
|
+
--radio-motion-control-duration: 150ms;
|
|
3551
|
+
--radio-motion-easing: cubic-bezier(0.16, 1, 0.3, 1);
|
|
3552
|
+
--radio-motion-indicator-duration: 180ms;
|
|
3553
|
+
--radio-motion-selected-duration: 260ms;
|
|
3554
|
+
--radio-motion-pressed-scale: 0.96px;
|
|
3555
|
+
--radio-motion-active-scale: 0.92px;
|
|
3556
|
+
--radio-motion-pressed-opacity: 0.8px;
|
|
3507
3557
|
--radio-default-bg: #2F2A42;
|
|
3508
3558
|
--radio-default-fg: #F4F1FB;
|
|
3509
3559
|
--radio-default-border: #4F4867;
|
|
@@ -5724,6 +5774,31 @@
|
|
|
5724
5774
|
--modal-motion-close-duration: 150ms;
|
|
5725
5775
|
--modal-motion-easing: cubic-bezier(0.22, 1, 0.36, 1);
|
|
5726
5776
|
--modal-motion-open-duration: 180ms;
|
|
5777
|
+
--radio-size-sm-control-size: 14px;
|
|
5778
|
+
--radio-size-sm-indicator-size: 6px;
|
|
5779
|
+
--radio-size-sm-label-font-size: 14px;
|
|
5780
|
+
--radio-size-sm-label-line-height: 20px;
|
|
5781
|
+
--radio-size-sm-description-font-size: 12px;
|
|
5782
|
+
--radio-size-sm-description-line-height: 16px;
|
|
5783
|
+
--radio-size-md-control-size: 16px;
|
|
5784
|
+
--radio-size-md-indicator-size: 8px;
|
|
5785
|
+
--radio-size-md-label-font-size: 16px;
|
|
5786
|
+
--radio-size-md-label-line-height: 24px;
|
|
5787
|
+
--radio-size-md-description-font-size: 14px;
|
|
5788
|
+
--radio-size-md-description-line-height: 20px;
|
|
5789
|
+
--radio-size-lg-control-size: 20px;
|
|
5790
|
+
--radio-size-lg-indicator-size: 10px;
|
|
5791
|
+
--radio-size-lg-label-font-size: 20px;
|
|
5792
|
+
--radio-size-lg-label-line-height: 28px;
|
|
5793
|
+
--radio-size-lg-description-font-size: 16px;
|
|
5794
|
+
--radio-size-lg-description-line-height: 24px;
|
|
5795
|
+
--radio-motion-control-duration: 150ms;
|
|
5796
|
+
--radio-motion-easing: cubic-bezier(0.16, 1, 0.3, 1);
|
|
5797
|
+
--radio-motion-indicator-duration: 180ms;
|
|
5798
|
+
--radio-motion-selected-duration: 260ms;
|
|
5799
|
+
--radio-motion-pressed-scale: 0.96px;
|
|
5800
|
+
--radio-motion-active-scale: 0.92px;
|
|
5801
|
+
--radio-motion-pressed-opacity: 0.8px;
|
|
5727
5802
|
--radio-default-bg: #000000;
|
|
5728
5803
|
--radio-default-fg: #FFFFFF;
|
|
5729
5804
|
--radio-default-border: #9CA3AF;
|
|
@@ -1,4 +1,39 @@
|
|
|
1
1
|
export declare const radio: {
|
|
2
|
+
readonly size: {
|
|
3
|
+
readonly sm: {
|
|
4
|
+
readonly controlSize: 14;
|
|
5
|
+
readonly indicatorSize: 6;
|
|
6
|
+
readonly labelFontSize: 14;
|
|
7
|
+
readonly labelLineHeight: 20;
|
|
8
|
+
readonly descriptionFontSize: 12;
|
|
9
|
+
readonly descriptionLineHeight: 16;
|
|
10
|
+
};
|
|
11
|
+
readonly md: {
|
|
12
|
+
readonly controlSize: 16;
|
|
13
|
+
readonly indicatorSize: 8;
|
|
14
|
+
readonly labelFontSize: 16;
|
|
15
|
+
readonly labelLineHeight: 24;
|
|
16
|
+
readonly descriptionFontSize: 14;
|
|
17
|
+
readonly descriptionLineHeight: 20;
|
|
18
|
+
};
|
|
19
|
+
readonly lg: {
|
|
20
|
+
readonly controlSize: 20;
|
|
21
|
+
readonly indicatorSize: 10;
|
|
22
|
+
readonly labelFontSize: 20;
|
|
23
|
+
readonly labelLineHeight: 28;
|
|
24
|
+
readonly descriptionFontSize: 16;
|
|
25
|
+
readonly descriptionLineHeight: 24;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
readonly motion: {
|
|
29
|
+
readonly controlDuration: "150ms";
|
|
30
|
+
readonly easing: "cubic-bezier(0.16, 1, 0.3, 1)";
|
|
31
|
+
readonly indicatorDuration: "180ms";
|
|
32
|
+
readonly selectedDuration: "260ms";
|
|
33
|
+
readonly pressedScale: 0.96;
|
|
34
|
+
readonly activeScale: 0.92;
|
|
35
|
+
readonly pressedOpacity: 0.8;
|
|
36
|
+
};
|
|
2
37
|
readonly default: {
|
|
3
38
|
readonly bg: "#2F2A42";
|
|
4
39
|
readonly fg: "#F4F1FB";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radio.d.ts","sourceRoot":"","sources":["../../../src/dark/components/radio.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"radio.d.ts","sourceRoot":"","sources":["../../../src/dark/components/radio.ts"],"names":[],"mappings":"AA0HA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmCR,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createRadioPalette } from '../../factories/createRadioPalette.js';
|
|
1
|
+
import { createRadioPalette, radioMotionTokens, radioSizeTokens, } from '../../factories/createRadioPalette.js';
|
|
2
2
|
import { colors } from '../../primitives/colors.js';
|
|
3
3
|
import { border } from '../semantic/border.js';
|
|
4
4
|
import { control } from '../semantic/control.js';
|
|
@@ -111,6 +111,8 @@ const danger = createRadioPalette({
|
|
|
111
111
|
},
|
|
112
112
|
});
|
|
113
113
|
export const radio = {
|
|
114
|
+
size: radioSizeTokens,
|
|
115
|
+
motion: radioMotionTokens,
|
|
114
116
|
default: control.default,
|
|
115
117
|
hover: control.hover,
|
|
116
118
|
pressed: control.active,
|
|
@@ -16,4 +16,39 @@ export declare const createRadioPalette: ({ ring, default: defaultState, hover,
|
|
|
16
16
|
readonly hover: RadioState;
|
|
17
17
|
readonly pressed: RadioState;
|
|
18
18
|
};
|
|
19
|
+
export declare const radioSizeTokens: {
|
|
20
|
+
readonly sm: {
|
|
21
|
+
readonly controlSize: 14;
|
|
22
|
+
readonly indicatorSize: 6;
|
|
23
|
+
readonly labelFontSize: 14;
|
|
24
|
+
readonly labelLineHeight: 20;
|
|
25
|
+
readonly descriptionFontSize: 12;
|
|
26
|
+
readonly descriptionLineHeight: 16;
|
|
27
|
+
};
|
|
28
|
+
readonly md: {
|
|
29
|
+
readonly controlSize: 16;
|
|
30
|
+
readonly indicatorSize: 8;
|
|
31
|
+
readonly labelFontSize: 16;
|
|
32
|
+
readonly labelLineHeight: 24;
|
|
33
|
+
readonly descriptionFontSize: 14;
|
|
34
|
+
readonly descriptionLineHeight: 20;
|
|
35
|
+
};
|
|
36
|
+
readonly lg: {
|
|
37
|
+
readonly controlSize: 20;
|
|
38
|
+
readonly indicatorSize: 10;
|
|
39
|
+
readonly labelFontSize: 20;
|
|
40
|
+
readonly labelLineHeight: 28;
|
|
41
|
+
readonly descriptionFontSize: 16;
|
|
42
|
+
readonly descriptionLineHeight: 24;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
export declare const radioMotionTokens: {
|
|
46
|
+
readonly controlDuration: "150ms";
|
|
47
|
+
readonly easing: "cubic-bezier(0.16, 1, 0.3, 1)";
|
|
48
|
+
readonly indicatorDuration: "180ms";
|
|
49
|
+
readonly selectedDuration: "260ms";
|
|
50
|
+
readonly pressedScale: 0.96;
|
|
51
|
+
readonly activeScale: 0.92;
|
|
52
|
+
readonly pressedOpacity: 0.8;
|
|
53
|
+
};
|
|
19
54
|
//# sourceMappingURL=createRadioPalette.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createRadioPalette.d.ts","sourceRoot":"","sources":["../../src/factories/createRadioPalette.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"createRadioPalette.d.ts","sourceRoot":"","sources":["../../src/factories/createRadioPalette.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,UAAU,GAAG;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,UAAU,CAAC;IACpB,KAAK,EAAE,UAAU,CAAC;IAClB,OAAO,EAAE,UAAU,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,kDAKhC,kBAAkB;;;;;CAMR,CAAC;AAEd,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;CAyBlB,CAAC;AAEX,eAAO,MAAM,iBAAiB;;;;;;;;CAQpB,CAAC"}
|
|
@@ -1,6 +1,42 @@
|
|
|
1
|
+
import { typography } from '../tokens/typography.js';
|
|
1
2
|
export const createRadioPalette = ({ ring, default: defaultState, hover, pressed, }) => ({
|
|
2
3
|
ring,
|
|
3
4
|
default: defaultState,
|
|
4
5
|
hover,
|
|
5
6
|
pressed,
|
|
6
7
|
});
|
|
8
|
+
export const radioSizeTokens = {
|
|
9
|
+
sm: {
|
|
10
|
+
controlSize: 14,
|
|
11
|
+
indicatorSize: 6,
|
|
12
|
+
labelFontSize: typography.size.sm,
|
|
13
|
+
labelLineHeight: typography.lineHeight.sm,
|
|
14
|
+
descriptionFontSize: typography.size.xs,
|
|
15
|
+
descriptionLineHeight: typography.lineHeight.xs,
|
|
16
|
+
},
|
|
17
|
+
md: {
|
|
18
|
+
controlSize: 16,
|
|
19
|
+
indicatorSize: 8,
|
|
20
|
+
labelFontSize: typography.size.md,
|
|
21
|
+
labelLineHeight: typography.lineHeight.md,
|
|
22
|
+
descriptionFontSize: typography.size.sm,
|
|
23
|
+
descriptionLineHeight: typography.lineHeight.sm,
|
|
24
|
+
},
|
|
25
|
+
lg: {
|
|
26
|
+
controlSize: 20,
|
|
27
|
+
indicatorSize: 10,
|
|
28
|
+
labelFontSize: typography.size.lg,
|
|
29
|
+
labelLineHeight: typography.lineHeight.lg,
|
|
30
|
+
descriptionFontSize: typography.size.md,
|
|
31
|
+
descriptionLineHeight: typography.lineHeight.md,
|
|
32
|
+
},
|
|
33
|
+
};
|
|
34
|
+
export const radioMotionTokens = {
|
|
35
|
+
controlDuration: '150ms',
|
|
36
|
+
easing: 'cubic-bezier(0.16, 1, 0.3, 1)',
|
|
37
|
+
indicatorDuration: '180ms',
|
|
38
|
+
selectedDuration: '260ms',
|
|
39
|
+
pressedScale: 0.96,
|
|
40
|
+
activeScale: 0.92,
|
|
41
|
+
pressedOpacity: 0.8,
|
|
42
|
+
};
|