@vellira-ui/tokens 2.35.1 → 2.37.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.
@@ -1 +1 @@
1
- {"version":3,"file":"token-types.d.ts","sourceRoot":"","sources":["../../src/generated/token-types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEpD,eAAO,MAAM,UAAU,6CAA8C,CAAC;AAEtE,eAAO,MAAM,eAAe,05EAqHlB,CAAC;AAEX,eAAO,MAAM,kBAAkB,q+MAwMrB,CAAC;AAEX,eAAO,MAAM,mBAAmB,8ziFAutDtB,CAAC;AAEX,eAAO,MAAM,cAAc,ypDA+DjB,CAAC;AAEX,eAAO,MAAM,UAAU,qz3FAglEb,CAAC;AAEX,eAAO,MAAM,oBAAoB,w2BAgDvB,CAAC;AAEX,eAAO,MAAM,qBAAqB,w9zEAkhExB,CAAC;AAEX,eAAO,MAAM,gBAAgB,ww1EA8jEnB,CAAC;AAEX,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC;AACpD,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC;AAC9D,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAC;AACpE,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAC;AACtE,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC;AAC5D,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,UAAU,CAAC,C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,MAAM,CAAC,CAAC;AAC1E,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEhE,MAAM,MAAM,gBAAgB,CAAC,CAAC,IAAI;IAChC,QAAQ,EAAE,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,MAAM,GACxC,MAAM,GACN,CAAC,CAAC,CAAC,CAAC,SAAS,MAAM,GACjB,MAAM,GACN,CAAC,CAAC,CAAC,CAAC,SAAS,OAAO,GAClB,OAAO,GACP,CAAC,CAAC,CAAC,CAAC,SAAS,MAAM,GACjB,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GACtB,CAAC,CAAC,CAAC,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,gBAAgB,CAAC,OAAO,UAAU,CAAC,CAAC;AAC7D,MAAM,MAAM,SAAS,GAAG,gBAAgB,CAAC,OAAO,SAAS,CAAC,CAAC;AAC3D,MAAM,MAAM,iBAAiB,GAAG,gBAAgB,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC3E,MAAM,MAAM,YAAY,GAAG,UAAU,GAAG,SAAS,GAAG,iBAAiB,CAAC;AACtE,MAAM,MAAM,aAAa,GAAG,YAAY,CAAC,QAAQ,CAAC,CAAC;AACnD,MAAM,MAAM,qBAAqB,GAAG,YAAY,CAAC,UAAU,CAAC,CAAC;AAC7D,MAAM,MAAM,sBAAsB,GAAG,YAAY,CAAC,YAAY,CAAC,CAAC;AAChE,MAAM,MAAM,iBAAiB,GAAG,YAAY,CAAC,QAAQ,CAAC,CAAC"}
@@ -1204,6 +1204,7 @@ export const componentTokenPaths = [
1204
1204
  'components.input.warning.soft.hover.fg',
1205
1205
  'components.input.warning.soft.hover.icon',
1206
1206
  'components.input.warning.soft.hover.placeholder',
1207
+ 'components.modal.body.paddingBottom',
1207
1208
  'components.modal.closeButton.default.bg',
1208
1209
  'components.modal.closeButton.default.border',
1209
1210
  'components.modal.closeButton.default.fg',
@@ -1217,15 +1218,40 @@ export const componentTokenPaths = [
1217
1218
  'components.modal.closeButton.hover.bg',
1218
1219
  'components.modal.closeButton.hover.border',
1219
1220
  'components.modal.closeButton.hover.fg',
1221
+ 'components.modal.closeButton.iconSize',
1220
1222
  'components.modal.closeButton.pressed.bg',
1221
1223
  'components.modal.closeButton.pressed.border',
1222
1224
  'components.modal.closeButton.pressed.fg',
1225
+ 'components.modal.closeButton.radius',
1226
+ 'components.modal.closeButton.size',
1227
+ 'components.modal.content.animationDuration',
1223
1228
  'components.modal.content.bg',
1224
1229
  'components.modal.content.border',
1230
+ 'components.modal.content.borderWidth',
1225
1231
  'components.modal.content.fg',
1232
+ 'components.modal.content.gap',
1233
+ 'components.modal.content.maxHeight',
1234
+ 'components.modal.content.minWidth',
1235
+ 'components.modal.content.nativeMaxHeight',
1236
+ 'components.modal.content.padding',
1237
+ 'components.modal.content.radius',
1226
1238
  'components.modal.content.shadow',
1239
+ 'components.modal.content.size.lg',
1240
+ 'components.modal.content.size.md',
1241
+ 'components.modal.content.size.sm',
1242
+ 'components.modal.content.size.xl',
1243
+ 'components.modal.content.topOffset',
1244
+ 'components.modal.content.viewportMargin',
1245
+ 'components.modal.content.zIndexOffset',
1227
1246
  'components.modal.description.fg',
1247
+ 'components.modal.footer.gap',
1248
+ 'components.modal.footer.paddingTop',
1249
+ 'components.modal.header.gap',
1250
+ 'components.modal.header.paddingBottom',
1251
+ 'components.modal.header.textGap',
1252
+ 'components.modal.overlay.animationDuration',
1228
1253
  'components.modal.overlay.bg',
1254
+ 'components.modal.overlay.blur',
1229
1255
  'components.modal.title.fg',
1230
1256
  'components.radio.danger.default.bg',
1231
1257
  'components.radio.danger.default.border',
@@ -3136,6 +3162,7 @@ export const tokenPaths = [
3136
3162
  'components.input.warning.soft.hover.fg',
3137
3163
  'components.input.warning.soft.hover.icon',
3138
3164
  'components.input.warning.soft.hover.placeholder',
3165
+ 'components.modal.body.paddingBottom',
3139
3166
  'components.modal.closeButton.default.bg',
3140
3167
  'components.modal.closeButton.default.border',
3141
3168
  'components.modal.closeButton.default.fg',
@@ -3149,15 +3176,40 @@ export const tokenPaths = [
3149
3176
  'components.modal.closeButton.hover.bg',
3150
3177
  'components.modal.closeButton.hover.border',
3151
3178
  'components.modal.closeButton.hover.fg',
3179
+ 'components.modal.closeButton.iconSize',
3152
3180
  'components.modal.closeButton.pressed.bg',
3153
3181
  'components.modal.closeButton.pressed.border',
3154
3182
  'components.modal.closeButton.pressed.fg',
3183
+ 'components.modal.closeButton.radius',
3184
+ 'components.modal.closeButton.size',
3185
+ 'components.modal.content.animationDuration',
3155
3186
  'components.modal.content.bg',
3156
3187
  'components.modal.content.border',
3188
+ 'components.modal.content.borderWidth',
3157
3189
  'components.modal.content.fg',
3190
+ 'components.modal.content.gap',
3191
+ 'components.modal.content.maxHeight',
3192
+ 'components.modal.content.minWidth',
3193
+ 'components.modal.content.nativeMaxHeight',
3194
+ 'components.modal.content.padding',
3195
+ 'components.modal.content.radius',
3158
3196
  'components.modal.content.shadow',
3197
+ 'components.modal.content.size.lg',
3198
+ 'components.modal.content.size.md',
3199
+ 'components.modal.content.size.sm',
3200
+ 'components.modal.content.size.xl',
3201
+ 'components.modal.content.topOffset',
3202
+ 'components.modal.content.viewportMargin',
3203
+ 'components.modal.content.zIndexOffset',
3159
3204
  'components.modal.description.fg',
3205
+ 'components.modal.footer.gap',
3206
+ 'components.modal.footer.paddingTop',
3207
+ 'components.modal.header.gap',
3208
+ 'components.modal.header.paddingBottom',
3209
+ 'components.modal.header.textGap',
3210
+ 'components.modal.overlay.animationDuration',
3160
3211
  'components.modal.overlay.bg',
3212
+ 'components.modal.overlay.blur',
3161
3213
  'components.modal.title.fg',
3162
3214
  'components.radio.danger.default.bg',
3163
3215
  'components.radio.danger.default.border',
@@ -5443,6 +5495,7 @@ export const themeCssVariableNames = [
5443
5495
  '--menu-item-hover-fg',
5444
5496
  '--menu-item-pressed-bg',
5445
5497
  '--menu-item-pressed-fg',
5498
+ '--modal-body-padding-bottom',
5446
5499
  '--modal-close-button-default-bg',
5447
5500
  '--modal-close-button-default-border',
5448
5501
  '--modal-close-button-default-fg',
@@ -5456,15 +5509,40 @@ export const themeCssVariableNames = [
5456
5509
  '--modal-close-button-hover-bg',
5457
5510
  '--modal-close-button-hover-border',
5458
5511
  '--modal-close-button-hover-fg',
5512
+ '--modal-close-button-icon-size',
5459
5513
  '--modal-close-button-pressed-bg',
5460
5514
  '--modal-close-button-pressed-border',
5461
5515
  '--modal-close-button-pressed-fg',
5516
+ '--modal-close-button-radius',
5517
+ '--modal-close-button-size',
5518
+ '--modal-content-animation-duration',
5462
5519
  '--modal-content-bg',
5463
5520
  '--modal-content-border',
5521
+ '--modal-content-border-width',
5464
5522
  '--modal-content-fg',
5523
+ '--modal-content-gap',
5524
+ '--modal-content-max-height',
5525
+ '--modal-content-min-width',
5526
+ '--modal-content-native-max-height',
5527
+ '--modal-content-padding',
5528
+ '--modal-content-radius',
5465
5529
  '--modal-content-shadow',
5530
+ '--modal-content-size-lg',
5531
+ '--modal-content-size-md',
5532
+ '--modal-content-size-sm',
5533
+ '--modal-content-size-xl',
5534
+ '--modal-content-top-offset',
5535
+ '--modal-content-viewport-margin',
5536
+ '--modal-content-z-index-offset',
5466
5537
  '--modal-description-fg',
5538
+ '--modal-footer-gap',
5539
+ '--modal-footer-padding-top',
5540
+ '--modal-header-gap',
5541
+ '--modal-header-padding-bottom',
5542
+ '--modal-header-text-gap',
5543
+ '--modal-overlay-animation-duration',
5467
5544
  '--modal-overlay-bg',
5545
+ '--modal-overlay-blur',
5468
5546
  '--modal-title-fg',
5469
5547
  '--navigation-active-bg',
5470
5548
  '--navigation-active-fg',
@@ -7531,6 +7609,7 @@ export const cssVariableNames = [
7531
7609
  '--menu-item-hover-fg',
7532
7610
  '--menu-item-pressed-bg',
7533
7611
  '--menu-item-pressed-fg',
7612
+ '--modal-body-padding-bottom',
7534
7613
  '--modal-close-button-default-bg',
7535
7614
  '--modal-close-button-default-border',
7536
7615
  '--modal-close-button-default-fg',
@@ -7544,15 +7623,40 @@ export const cssVariableNames = [
7544
7623
  '--modal-close-button-hover-bg',
7545
7624
  '--modal-close-button-hover-border',
7546
7625
  '--modal-close-button-hover-fg',
7626
+ '--modal-close-button-icon-size',
7547
7627
  '--modal-close-button-pressed-bg',
7548
7628
  '--modal-close-button-pressed-border',
7549
7629
  '--modal-close-button-pressed-fg',
7630
+ '--modal-close-button-radius',
7631
+ '--modal-close-button-size',
7632
+ '--modal-content-animation-duration',
7550
7633
  '--modal-content-bg',
7551
7634
  '--modal-content-border',
7635
+ '--modal-content-border-width',
7552
7636
  '--modal-content-fg',
7637
+ '--modal-content-gap',
7638
+ '--modal-content-max-height',
7639
+ '--modal-content-min-width',
7640
+ '--modal-content-native-max-height',
7641
+ '--modal-content-padding',
7642
+ '--modal-content-radius',
7553
7643
  '--modal-content-shadow',
7644
+ '--modal-content-size-lg',
7645
+ '--modal-content-size-md',
7646
+ '--modal-content-size-sm',
7647
+ '--modal-content-size-xl',
7648
+ '--modal-content-top-offset',
7649
+ '--modal-content-viewport-margin',
7650
+ '--modal-content-z-index-offset',
7554
7651
  '--modal-description-fg',
7652
+ '--modal-footer-gap',
7653
+ '--modal-footer-padding-top',
7654
+ '--modal-header-gap',
7655
+ '--modal-header-padding-bottom',
7656
+ '--modal-header-text-gap',
7657
+ '--modal-overlay-animation-duration',
7555
7658
  '--modal-overlay-bg',
7659
+ '--modal-overlay-blur',
7556
7660
  '--modal-title-fg',
7557
7661
  '--navigation-active-bg',
7558
7662
  '--navigation-active-fg',
@@ -1,46 +1,80 @@
1
1
  export declare const modal: {
2
2
  readonly overlay: {
3
- readonly bg: "rgba(0, 0, 0, 0.82)";
3
+ readonly bg: string;
4
+ readonly blur: 4;
5
+ readonly animationDuration: "200ms";
4
6
  };
5
7
  readonly content: {
6
- readonly bg: "#111827";
7
- readonly fg: "#FFFFFF";
8
- readonly border: "#9CA3AF";
9
- readonly shadow: "0 20px 60px rgba(0, 0, 0, 0.8)";
8
+ readonly bg: string;
9
+ readonly fg: string;
10
+ readonly border: string;
11
+ readonly shadow: string;
12
+ readonly borderWidth: 1;
13
+ readonly radius: number;
14
+ readonly padding: number;
15
+ readonly gap: number;
16
+ readonly minWidth: 320;
17
+ readonly maxHeight: "90vh";
18
+ readonly nativeMaxHeight: "90%";
19
+ readonly viewportMargin: number;
20
+ readonly topOffset: number;
21
+ readonly zIndexOffset: "1";
22
+ readonly animationDuration: "160ms";
23
+ readonly size: {
24
+ readonly sm: 400;
25
+ readonly md: 560;
26
+ readonly lg: 720;
27
+ readonly xl: 960;
28
+ };
10
29
  };
11
30
  readonly title: {
12
- readonly fg: "#FFFFFF";
31
+ readonly fg: string;
13
32
  };
14
33
  readonly description: {
15
- readonly fg: "#EEE8FA";
34
+ readonly fg: string;
35
+ };
36
+ readonly header: {
37
+ readonly gap: number;
38
+ readonly paddingBottom: number;
39
+ readonly textGap: number;
40
+ };
41
+ readonly body: {
42
+ readonly paddingBottom: number;
43
+ };
44
+ readonly footer: {
45
+ readonly gap: number;
46
+ readonly paddingTop: number;
16
47
  };
17
48
  readonly closeButton: {
49
+ readonly size: 32;
50
+ readonly iconSize: 16;
51
+ readonly radius: number;
18
52
  readonly default: {
19
53
  readonly bg: "transparent";
20
- readonly fg: "#EEE8FA";
54
+ readonly fg: string;
21
55
  readonly border: "transparent";
22
56
  };
23
57
  readonly hover: {
24
- readonly bg: "#374151";
25
- readonly fg: "#FFFFFF";
58
+ readonly bg: string;
59
+ readonly fg: string;
26
60
  readonly border: "transparent";
27
61
  };
28
62
  readonly pressed: {
29
- readonly bg: "#4B5563";
30
- readonly fg: "#FFFFFF";
63
+ readonly bg: string;
64
+ readonly fg: string;
31
65
  readonly border: "transparent";
32
66
  };
33
67
  readonly focus: {
34
68
  readonly ring: {
35
- readonly color: "#FCD34D";
36
- readonly width: "2px";
37
- readonly shadow: "0 0 0 1px rgba(255, 255, 255, 0.28)";
38
- readonly offset: "#000000";
69
+ color: string;
70
+ width: string;
71
+ shadow: string;
72
+ offset: string;
39
73
  };
40
74
  };
41
75
  readonly disabled: {
42
76
  readonly bg: "transparent";
43
- readonly fg: "#6B7280";
77
+ readonly fg: string;
44
78
  readonly border: "transparent";
45
79
  };
46
80
  };
@@ -1 +1 @@
1
- {"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../../src/highContrast/components/modal.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiDR,CAAC"}
1
+ {"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../../src/highContrast/components/modal.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsBhB,CAAC"}
@@ -1,47 +1,31 @@
1
+ import { createModalTokens } from '../../factories/createModalTokens.js';
2
+ import { radius } from '../../tokens/radius.js';
3
+ import { spacing } from '../../tokens/spacing.js';
1
4
  import { focus } from '../semantic/focus.js';
2
5
  import { overlay } from '../semantic/overlay.js';
3
6
  import { shadow } from '../semantic/shadow.js';
4
7
  import { surface } from '../semantic/surface.js';
5
8
  import { text } from '../semantic/text.js';
6
- export const modal = {
7
- overlay: {
8
- bg: overlay.backdrop,
9
- },
10
- content: {
11
- bg: overlay.modal.bg,
12
- fg: text.primary,
13
- border: overlay.modal.border,
14
- shadow: shadow.xl,
15
- },
16
- title: {
17
- fg: text.primary,
18
- },
19
- description: {
20
- fg: text.secondary,
21
- },
22
- closeButton: {
23
- default: {
24
- bg: 'transparent',
25
- fg: text.secondary,
26
- border: 'transparent',
27
- },
28
- hover: {
29
- bg: surface.hover,
30
- fg: text.primary,
31
- border: 'transparent',
32
- },
33
- pressed: {
34
- bg: surface.pressed,
35
- fg: text.primary,
36
- border: 'transparent',
37
- },
38
- focus: {
39
- ring: focus.ring,
40
- },
41
- disabled: {
42
- bg: 'transparent',
43
- fg: text.disabled,
44
- border: 'transparent',
45
- },
46
- },
47
- };
9
+ export const modal = createModalTokens({
10
+ overlayBg: overlay.backdrop,
11
+ contentBg: overlay.modal.bg,
12
+ contentFg: text.primary,
13
+ contentBorder: overlay.modal.border,
14
+ contentShadow: shadow.xl,
15
+ titleFg: text.primary,
16
+ descriptionFg: text.secondary,
17
+ closeButtonDefaultFg: text.secondary,
18
+ closeButtonHoverBg: surface.hover,
19
+ closeButtonHoverFg: text.primary,
20
+ closeButtonPressedBg: surface.pressed,
21
+ closeButtonPressedFg: text.primary,
22
+ closeButtonDisabledFg: text.disabled,
23
+ closeButtonFocusRing: focus.ring,
24
+ radiusLg: radius.lg,
25
+ radiusFull: radius.full,
26
+ spacing1: spacing[1],
27
+ spacing3: spacing[3],
28
+ spacing4: spacing[4],
29
+ spacing8: spacing[8],
30
+ spacing10: spacing[10],
31
+ });
@@ -1,46 +1,80 @@
1
1
  export declare const modal: {
2
2
  readonly overlay: {
3
- readonly bg: "rgba(24, 21, 33, 0.52)";
3
+ readonly bg: string;
4
+ readonly blur: 4;
5
+ readonly animationDuration: "200ms";
4
6
  };
5
7
  readonly content: {
6
- readonly bg: "#FFFFFF";
7
- readonly fg: "#3D3754";
8
- readonly border: "#E4DDF4";
9
- readonly shadow: "0 20px 60px rgba(24, 21, 33, 0.2), 0 4px 16px rgba(24, 21, 33, 0.14)";
8
+ readonly bg: string;
9
+ readonly fg: string;
10
+ readonly border: string;
11
+ readonly shadow: string;
12
+ readonly borderWidth: 1;
13
+ readonly radius: number;
14
+ readonly padding: number;
15
+ readonly gap: number;
16
+ readonly minWidth: 320;
17
+ readonly maxHeight: "90vh";
18
+ readonly nativeMaxHeight: "90%";
19
+ readonly viewportMargin: number;
20
+ readonly topOffset: number;
21
+ readonly zIndexOffset: "1";
22
+ readonly animationDuration: "160ms";
23
+ readonly size: {
24
+ readonly sm: 400;
25
+ readonly md: 560;
26
+ readonly lg: 720;
27
+ readonly xl: 960;
28
+ };
10
29
  };
11
30
  readonly title: {
12
- readonly fg: "#3D3754";
31
+ readonly fg: string;
13
32
  };
14
33
  readonly description: {
15
- readonly fg: "#6B6386";
34
+ readonly fg: string;
35
+ };
36
+ readonly header: {
37
+ readonly gap: number;
38
+ readonly paddingBottom: number;
39
+ readonly textGap: number;
40
+ };
41
+ readonly body: {
42
+ readonly paddingBottom: number;
43
+ };
44
+ readonly footer: {
45
+ readonly gap: number;
46
+ readonly paddingTop: number;
16
47
  };
17
48
  readonly closeButton: {
49
+ readonly size: 32;
50
+ readonly iconSize: 16;
51
+ readonly radius: number;
18
52
  readonly default: {
19
53
  readonly bg: "transparent";
20
- readonly fg: "#6B6386";
54
+ readonly fg: string;
21
55
  readonly border: "transparent";
22
56
  };
23
57
  readonly hover: {
24
- readonly bg: "#F4F1FB";
25
- readonly fg: "#3D3754";
58
+ readonly bg: string;
59
+ readonly fg: string;
26
60
  readonly border: "transparent";
27
61
  };
28
62
  readonly pressed: {
29
- readonly bg: "#E4DDF4";
30
- readonly fg: "#3D3754";
63
+ readonly bg: string;
64
+ readonly fg: string;
31
65
  readonly border: "transparent";
32
66
  };
33
67
  readonly focus: {
34
68
  readonly ring: {
35
- readonly color: "#5037C8";
36
- readonly width: "2px";
37
- readonly shadow: "0 0 8px rgba(99, 70, 232, 0.14)";
38
- readonly offset: "#FFFFFF";
69
+ color: string;
70
+ width: string;
71
+ shadow: string;
72
+ offset: string;
39
73
  };
40
74
  };
41
75
  readonly disabled: {
42
76
  readonly bg: "transparent";
43
- readonly fg: "#958CB0";
77
+ readonly fg: string;
44
78
  readonly border: "transparent";
45
79
  };
46
80
  };
@@ -1 +1 @@
1
- {"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../../src/light/components/modal.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiDR,CAAC"}
1
+ {"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../../src/light/components/modal.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsBhB,CAAC"}
@@ -1,47 +1,31 @@
1
+ import { createModalTokens } from '../../factories/createModalTokens.js';
2
+ import { radius } from '../../tokens/radius.js';
3
+ import { spacing } from '../../tokens/spacing.js';
1
4
  import { focus } from '../semantic/focus.js';
2
5
  import { overlay } from '../semantic/overlay.js';
3
6
  import { shadow } from '../semantic/shadow.js';
4
7
  import { surface } from '../semantic/surface.js';
5
8
  import { text } from '../semantic/text.js';
6
- export const modal = {
7
- overlay: {
8
- bg: overlay.backdrop,
9
- },
10
- content: {
11
- bg: overlay.modal.bg,
12
- fg: text.primary,
13
- border: overlay.modal.border,
14
- shadow: shadow.xl,
15
- },
16
- title: {
17
- fg: text.primary,
18
- },
19
- description: {
20
- fg: text.secondary,
21
- },
22
- closeButton: {
23
- default: {
24
- bg: 'transparent',
25
- fg: text.secondary,
26
- border: 'transparent',
27
- },
28
- hover: {
29
- bg: surface.hover,
30
- fg: text.primary,
31
- border: 'transparent',
32
- },
33
- pressed: {
34
- bg: surface.pressed,
35
- fg: text.primary,
36
- border: 'transparent',
37
- },
38
- focus: {
39
- ring: focus.ring,
40
- },
41
- disabled: {
42
- bg: 'transparent',
43
- fg: text.disabled,
44
- border: 'transparent',
45
- },
46
- },
47
- };
9
+ export const modal = createModalTokens({
10
+ overlayBg: overlay.backdrop,
11
+ contentBg: overlay.modal.bg,
12
+ contentFg: text.primary,
13
+ contentBorder: overlay.modal.border,
14
+ contentShadow: shadow.xl,
15
+ titleFg: text.primary,
16
+ descriptionFg: text.secondary,
17
+ closeButtonDefaultFg: text.secondary,
18
+ closeButtonHoverBg: surface.hover,
19
+ closeButtonHoverFg: text.primary,
20
+ closeButtonPressedBg: surface.pressed,
21
+ closeButtonPressedFg: text.primary,
22
+ closeButtonDisabledFg: text.disabled,
23
+ closeButtonFocusRing: focus.ring,
24
+ radiusLg: radius.lg,
25
+ radiusFull: radius.full,
26
+ spacing1: spacing[1],
27
+ spacing3: spacing[3],
28
+ spacing4: spacing[4],
29
+ spacing8: spacing[8],
30
+ spacing10: spacing[10],
31
+ });
@@ -1 +1 @@
1
- {"version":3,"file":"color.d.ts","sourceRoot":"","sources":["../../src/utils/color.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,GAAI,KAAK,MAAM,EAAE,OAAO,MAAM,KAAG,MAetD,CAAC"}
1
+ {"version":3,"file":"color.d.ts","sourceRoot":"","sources":["../../src/utils/color.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,GAAI,KAAK,MAAM,EAAE,OAAO,MAAM,KAAG,MAetD,CAAC"}
@@ -1,4 +1,3 @@
1
- // packages/tokens/src/utils/color.ts
2
1
  export const withAlpha = (hex, alpha) => {
3
2
  const normalized = hex.replace('#', '');
4
3
  if (normalized.length !== 6) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vellira-ui/tokens",
3
- "version": "2.35.1",
3
+ "version": "2.37.0",
4
4
  "description": "Design tokens for Vellira Design System",
5
5
  "author": "Roman Bakurov",
6
6
  "license": "MIT",
@@ -1 +0,0 @@
1
- //# sourceMappingURL=selectionControl.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"selectionControl.d.ts","sourceRoot":"","sources":["../../src/primitives/selectionControl.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- "use strict";