@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.
- package/dist/css/tokens.css +78 -0
- package/dist/dark/components/modal.d.ts +51 -17
- package/dist/dark/components/modal.d.ts.map +1 -1
- package/dist/dark/components/modal.js +26 -42
- package/dist/factories/createModalTokens.d.ts +107 -0
- package/dist/factories/createModalTokens.d.ts.map +1 -0
- package/dist/factories/createModalTokens.js +82 -0
- package/dist/factories/index.d.ts +1 -0
- package/dist/factories/index.d.ts.map +1 -1
- package/dist/factories/index.js +1 -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 +104 -0
- package/dist/highContrast/components/modal.d.ts +51 -17
- package/dist/highContrast/components/modal.d.ts.map +1 -1
- package/dist/highContrast/components/modal.js +26 -42
- package/dist/light/components/modal.d.ts +51 -17
- package/dist/light/components/modal.d.ts.map +1 -1
- package/dist/light/components/modal.js +26 -42
- package/dist/utils/color.d.ts.map +1 -1
- package/dist/utils/color.js +0 -1
- package/package.json +1 -1
- package/dist/primitives/selectionControl.d.ts +0 -1
- package/dist/primitives/selectionControl.d.ts.map +0 -1
- package/dist/primitives/selectionControl.js +0 -1
package/dist/css/tokens.css
CHANGED
|
@@ -1241,12 +1241,38 @@
|
|
|
1241
1241
|
--input-counter-fg: #6B6386;
|
|
1242
1242
|
--input-spinner-fg: #958CB0;
|
|
1243
1243
|
--modal-overlay-bg: rgba(24, 21, 33, 0.52);
|
|
1244
|
+
--modal-overlay-blur: 4px;
|
|
1245
|
+
--modal-overlay-animation-duration: 200ms;
|
|
1244
1246
|
--modal-content-bg: #FFFFFF;
|
|
1245
1247
|
--modal-content-fg: #3D3754;
|
|
1246
1248
|
--modal-content-border: #E4DDF4;
|
|
1247
1249
|
--modal-content-shadow: 0 20px 60px rgba(24, 21, 33, 0.2), 0 4px 16px rgba(24, 21, 33, 0.14);
|
|
1250
|
+
--modal-content-border-width: 1px;
|
|
1251
|
+
--modal-content-radius: 16px;
|
|
1252
|
+
--modal-content-padding: 16px;
|
|
1253
|
+
--modal-content-gap: 16px;
|
|
1254
|
+
--modal-content-min-width: 320px;
|
|
1255
|
+
--modal-content-max-height: 90vh;
|
|
1256
|
+
--modal-content-native-max-height: 90%;
|
|
1257
|
+
--modal-content-viewport-margin: 32px;
|
|
1258
|
+
--modal-content-top-offset: 40px;
|
|
1259
|
+
--modal-content-z-index-offset: 1;
|
|
1260
|
+
--modal-content-animation-duration: 160ms;
|
|
1261
|
+
--modal-content-size-sm: 400px;
|
|
1262
|
+
--modal-content-size-md: 560px;
|
|
1263
|
+
--modal-content-size-lg: 720px;
|
|
1264
|
+
--modal-content-size-xl: 960px;
|
|
1248
1265
|
--modal-title-fg: #3D3754;
|
|
1249
1266
|
--modal-description-fg: #6B6386;
|
|
1267
|
+
--modal-header-gap: 16px;
|
|
1268
|
+
--modal-header-padding-bottom: 16px;
|
|
1269
|
+
--modal-header-text-gap: 4px;
|
|
1270
|
+
--modal-body-padding-bottom: 16px;
|
|
1271
|
+
--modal-footer-gap: 12px;
|
|
1272
|
+
--modal-footer-padding-top: 16px;
|
|
1273
|
+
--modal-close-button-size: 32px;
|
|
1274
|
+
--modal-close-button-icon-size: 16px;
|
|
1275
|
+
--modal-close-button-radius: 999px;
|
|
1250
1276
|
--modal-close-button-default-bg: transparent;
|
|
1251
1277
|
--modal-close-button-default-fg: #6B6386;
|
|
1252
1278
|
--modal-close-button-default-border: transparent;
|
|
@@ -3299,12 +3325,38 @@
|
|
|
3299
3325
|
--input-counter-fg: #BBB2D2;
|
|
3300
3326
|
--input-spinner-fg: #958CB0;
|
|
3301
3327
|
--modal-overlay-bg: rgba(0, 0, 0, 0.72);
|
|
3328
|
+
--modal-overlay-blur: 4px;
|
|
3329
|
+
--modal-overlay-animation-duration: 200ms;
|
|
3302
3330
|
--modal-content-bg: #242034;
|
|
3303
3331
|
--modal-content-fg: #F4F1FB;
|
|
3304
3332
|
--modal-content-border: #3D3754;
|
|
3305
3333
|
--modal-content-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), 0 4px 16px rgba(0, 0, 0, 0.3);
|
|
3334
|
+
--modal-content-border-width: 1px;
|
|
3335
|
+
--modal-content-radius: 16px;
|
|
3336
|
+
--modal-content-padding: 16px;
|
|
3337
|
+
--modal-content-gap: 16px;
|
|
3338
|
+
--modal-content-min-width: 320px;
|
|
3339
|
+
--modal-content-max-height: 90vh;
|
|
3340
|
+
--modal-content-native-max-height: 90%;
|
|
3341
|
+
--modal-content-viewport-margin: 32px;
|
|
3342
|
+
--modal-content-top-offset: 40px;
|
|
3343
|
+
--modal-content-z-index-offset: 1;
|
|
3344
|
+
--modal-content-animation-duration: 160ms;
|
|
3345
|
+
--modal-content-size-sm: 400px;
|
|
3346
|
+
--modal-content-size-md: 560px;
|
|
3347
|
+
--modal-content-size-lg: 720px;
|
|
3348
|
+
--modal-content-size-xl: 960px;
|
|
3306
3349
|
--modal-title-fg: #F4F1FB;
|
|
3307
3350
|
--modal-description-fg: #BBB2D2;
|
|
3351
|
+
--modal-header-gap: 16px;
|
|
3352
|
+
--modal-header-padding-bottom: 16px;
|
|
3353
|
+
--modal-header-text-gap: 4px;
|
|
3354
|
+
--modal-body-padding-bottom: 16px;
|
|
3355
|
+
--modal-footer-gap: 12px;
|
|
3356
|
+
--modal-footer-padding-top: 16px;
|
|
3357
|
+
--modal-close-button-size: 32px;
|
|
3358
|
+
--modal-close-button-icon-size: 16px;
|
|
3359
|
+
--modal-close-button-radius: 999px;
|
|
3308
3360
|
--modal-close-button-default-bg: transparent;
|
|
3309
3361
|
--modal-close-button-default-fg: #BBB2D2;
|
|
3310
3362
|
--modal-close-button-default-border: transparent;
|
|
@@ -5368,12 +5420,38 @@
|
|
|
5368
5420
|
--input-counter-fg: #EEE8FA;
|
|
5369
5421
|
--input-spinner-fg: #9CA3AF;
|
|
5370
5422
|
--modal-overlay-bg: rgba(0, 0, 0, 0.82);
|
|
5423
|
+
--modal-overlay-blur: 4px;
|
|
5424
|
+
--modal-overlay-animation-duration: 200ms;
|
|
5371
5425
|
--modal-content-bg: #111827;
|
|
5372
5426
|
--modal-content-fg: #FFFFFF;
|
|
5373
5427
|
--modal-content-border: #9CA3AF;
|
|
5374
5428
|
--modal-content-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
|
|
5429
|
+
--modal-content-border-width: 1px;
|
|
5430
|
+
--modal-content-radius: 16px;
|
|
5431
|
+
--modal-content-padding: 16px;
|
|
5432
|
+
--modal-content-gap: 16px;
|
|
5433
|
+
--modal-content-min-width: 320px;
|
|
5434
|
+
--modal-content-max-height: 90vh;
|
|
5435
|
+
--modal-content-native-max-height: 90%;
|
|
5436
|
+
--modal-content-viewport-margin: 32px;
|
|
5437
|
+
--modal-content-top-offset: 40px;
|
|
5438
|
+
--modal-content-z-index-offset: 1;
|
|
5439
|
+
--modal-content-animation-duration: 160ms;
|
|
5440
|
+
--modal-content-size-sm: 400px;
|
|
5441
|
+
--modal-content-size-md: 560px;
|
|
5442
|
+
--modal-content-size-lg: 720px;
|
|
5443
|
+
--modal-content-size-xl: 960px;
|
|
5375
5444
|
--modal-title-fg: #FFFFFF;
|
|
5376
5445
|
--modal-description-fg: #EEE8FA;
|
|
5446
|
+
--modal-header-gap: 16px;
|
|
5447
|
+
--modal-header-padding-bottom: 16px;
|
|
5448
|
+
--modal-header-text-gap: 4px;
|
|
5449
|
+
--modal-body-padding-bottom: 16px;
|
|
5450
|
+
--modal-footer-gap: 12px;
|
|
5451
|
+
--modal-footer-padding-top: 16px;
|
|
5452
|
+
--modal-close-button-size: 32px;
|
|
5453
|
+
--modal-close-button-icon-size: 16px;
|
|
5454
|
+
--modal-close-button-radius: 999px;
|
|
5377
5455
|
--modal-close-button-default-bg: transparent;
|
|
5378
5456
|
--modal-close-button-default-fg: #EEE8FA;
|
|
5379
5457
|
--modal-close-button-default-border: transparent;
|
|
@@ -1,46 +1,80 @@
|
|
|
1
1
|
export declare const modal: {
|
|
2
2
|
readonly overlay: {
|
|
3
|
-
readonly bg:
|
|
3
|
+
readonly bg: string;
|
|
4
|
+
readonly blur: 4;
|
|
5
|
+
readonly animationDuration: "200ms";
|
|
4
6
|
};
|
|
5
7
|
readonly content: {
|
|
6
|
-
readonly bg:
|
|
7
|
-
readonly fg:
|
|
8
|
-
readonly border:
|
|
9
|
-
readonly shadow:
|
|
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:
|
|
31
|
+
readonly fg: string;
|
|
13
32
|
};
|
|
14
33
|
readonly description: {
|
|
15
|
-
readonly fg:
|
|
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:
|
|
54
|
+
readonly fg: string;
|
|
21
55
|
readonly border: "transparent";
|
|
22
56
|
};
|
|
23
57
|
readonly hover: {
|
|
24
|
-
readonly bg:
|
|
25
|
-
readonly fg:
|
|
58
|
+
readonly bg: string;
|
|
59
|
+
readonly fg: string;
|
|
26
60
|
readonly border: "transparent";
|
|
27
61
|
};
|
|
28
62
|
readonly pressed: {
|
|
29
|
-
readonly bg:
|
|
30
|
-
readonly fg:
|
|
63
|
+
readonly bg: string;
|
|
64
|
+
readonly fg: string;
|
|
31
65
|
readonly border: "transparent";
|
|
32
66
|
};
|
|
33
67
|
readonly focus: {
|
|
34
68
|
readonly ring: {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
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:
|
|
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/dark/components/modal.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../../src/dark/components/modal.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsBhB,CAAC"}
|
|
@@ -1,48 +1,32 @@
|
|
|
1
|
+
import { createModalTokens } from '../../factories/createModalTokens.js';
|
|
1
2
|
import { overlay } from '../../semantic/overlay.js';
|
|
3
|
+
import { radius } from '../../tokens/radius.js';
|
|
4
|
+
import { spacing } from '../../tokens/spacing.js';
|
|
2
5
|
import { border } from '../semantic/border.js';
|
|
3
6
|
import { focus } from '../semantic/focus.js';
|
|
4
7
|
import { shadow } from '../semantic/shadow.js';
|
|
5
8
|
import { surface } from '../semantic/surface.js';
|
|
6
9
|
import { text } from '../semantic/text.js';
|
|
7
|
-
export const modal = {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
bg: surface.elevated,
|
|
31
|
-
fg: text.primary,
|
|
32
|
-
border: 'transparent',
|
|
33
|
-
},
|
|
34
|
-
pressed: {
|
|
35
|
-
bg: surface.active,
|
|
36
|
-
fg: text.primary,
|
|
37
|
-
border: 'transparent',
|
|
38
|
-
},
|
|
39
|
-
focus: {
|
|
40
|
-
ring: focus.ring,
|
|
41
|
-
},
|
|
42
|
-
disabled: {
|
|
43
|
-
bg: 'transparent',
|
|
44
|
-
fg: text.disabled,
|
|
45
|
-
border: 'transparent',
|
|
46
|
-
},
|
|
47
|
-
},
|
|
48
|
-
};
|
|
10
|
+
export const modal = createModalTokens({
|
|
11
|
+
overlayBg: overlay.backdrop,
|
|
12
|
+
contentBg: surface.subtle,
|
|
13
|
+
contentFg: text.primary,
|
|
14
|
+
contentBorder: border.muted,
|
|
15
|
+
contentShadow: shadow.xl,
|
|
16
|
+
titleFg: text.primary,
|
|
17
|
+
descriptionFg: text.secondary,
|
|
18
|
+
closeButtonDefaultFg: text.secondary,
|
|
19
|
+
closeButtonHoverBg: surface.elevated,
|
|
20
|
+
closeButtonHoverFg: text.primary,
|
|
21
|
+
closeButtonPressedBg: surface.active,
|
|
22
|
+
closeButtonPressedFg: text.primary,
|
|
23
|
+
closeButtonDisabledFg: text.disabled,
|
|
24
|
+
closeButtonFocusRing: focus.ring,
|
|
25
|
+
radiusLg: radius.lg,
|
|
26
|
+
radiusFull: radius.full,
|
|
27
|
+
spacing1: spacing[1],
|
|
28
|
+
spacing3: spacing[3],
|
|
29
|
+
spacing4: spacing[4],
|
|
30
|
+
spacing8: spacing[8],
|
|
31
|
+
spacing10: spacing[10],
|
|
32
|
+
});
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
type ModalFocusRing = {
|
|
2
|
+
color: string;
|
|
3
|
+
width: string;
|
|
4
|
+
shadow: string;
|
|
5
|
+
offset: string;
|
|
6
|
+
};
|
|
7
|
+
type ModalTokensConfig = {
|
|
8
|
+
overlayBg: string;
|
|
9
|
+
contentBg: string;
|
|
10
|
+
contentFg: string;
|
|
11
|
+
contentBorder: string;
|
|
12
|
+
contentShadow: string;
|
|
13
|
+
titleFg: string;
|
|
14
|
+
descriptionFg: string;
|
|
15
|
+
closeButtonDefaultFg: string;
|
|
16
|
+
closeButtonHoverBg: string;
|
|
17
|
+
closeButtonHoverFg: string;
|
|
18
|
+
closeButtonPressedBg: string;
|
|
19
|
+
closeButtonPressedFg: string;
|
|
20
|
+
closeButtonDisabledFg: string;
|
|
21
|
+
closeButtonFocusRing: ModalFocusRing;
|
|
22
|
+
radiusLg: number;
|
|
23
|
+
radiusFull: number;
|
|
24
|
+
spacing1: number;
|
|
25
|
+
spacing3: number;
|
|
26
|
+
spacing4: number;
|
|
27
|
+
spacing8: number;
|
|
28
|
+
spacing10: number;
|
|
29
|
+
};
|
|
30
|
+
export declare const createModalTokens: (config: ModalTokensConfig) => {
|
|
31
|
+
readonly overlay: {
|
|
32
|
+
readonly bg: string;
|
|
33
|
+
readonly blur: 4;
|
|
34
|
+
readonly animationDuration: "200ms";
|
|
35
|
+
};
|
|
36
|
+
readonly content: {
|
|
37
|
+
readonly bg: string;
|
|
38
|
+
readonly fg: string;
|
|
39
|
+
readonly border: string;
|
|
40
|
+
readonly shadow: string;
|
|
41
|
+
readonly borderWidth: 1;
|
|
42
|
+
readonly radius: number;
|
|
43
|
+
readonly padding: number;
|
|
44
|
+
readonly gap: number;
|
|
45
|
+
readonly minWidth: 320;
|
|
46
|
+
readonly maxHeight: "90vh";
|
|
47
|
+
readonly nativeMaxHeight: "90%";
|
|
48
|
+
readonly viewportMargin: number;
|
|
49
|
+
readonly topOffset: number;
|
|
50
|
+
readonly zIndexOffset: "1";
|
|
51
|
+
readonly animationDuration: "160ms";
|
|
52
|
+
readonly size: {
|
|
53
|
+
readonly sm: 400;
|
|
54
|
+
readonly md: 560;
|
|
55
|
+
readonly lg: 720;
|
|
56
|
+
readonly xl: 960;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
readonly title: {
|
|
60
|
+
readonly fg: string;
|
|
61
|
+
};
|
|
62
|
+
readonly description: {
|
|
63
|
+
readonly fg: string;
|
|
64
|
+
};
|
|
65
|
+
readonly header: {
|
|
66
|
+
readonly gap: number;
|
|
67
|
+
readonly paddingBottom: number;
|
|
68
|
+
readonly textGap: number;
|
|
69
|
+
};
|
|
70
|
+
readonly body: {
|
|
71
|
+
readonly paddingBottom: number;
|
|
72
|
+
};
|
|
73
|
+
readonly footer: {
|
|
74
|
+
readonly gap: number;
|
|
75
|
+
readonly paddingTop: number;
|
|
76
|
+
};
|
|
77
|
+
readonly closeButton: {
|
|
78
|
+
readonly size: 32;
|
|
79
|
+
readonly iconSize: 16;
|
|
80
|
+
readonly radius: number;
|
|
81
|
+
readonly default: {
|
|
82
|
+
readonly bg: "transparent";
|
|
83
|
+
readonly fg: string;
|
|
84
|
+
readonly border: "transparent";
|
|
85
|
+
};
|
|
86
|
+
readonly hover: {
|
|
87
|
+
readonly bg: string;
|
|
88
|
+
readonly fg: string;
|
|
89
|
+
readonly border: "transparent";
|
|
90
|
+
};
|
|
91
|
+
readonly pressed: {
|
|
92
|
+
readonly bg: string;
|
|
93
|
+
readonly fg: string;
|
|
94
|
+
readonly border: "transparent";
|
|
95
|
+
};
|
|
96
|
+
readonly focus: {
|
|
97
|
+
readonly ring: ModalFocusRing;
|
|
98
|
+
};
|
|
99
|
+
readonly disabled: {
|
|
100
|
+
readonly bg: "transparent";
|
|
101
|
+
readonly fg: string;
|
|
102
|
+
readonly border: "transparent";
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
export {};
|
|
107
|
+
//# sourceMappingURL=createModalTokens.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createModalTokens.d.ts","sourceRoot":"","sources":["../../src/factories/createModalTokens.ts"],"names":[],"mappings":"AAAA,KAAK,cAAc,GAAG;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,KAAK,iBAAiB,GAAG;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,oBAAoB,EAAE,MAAM,CAAC;IAC7B,oBAAoB,EAAE,MAAM,CAAC;IAC7B,qBAAqB,EAAE,MAAM,CAAC;IAC9B,oBAAoB,EAAE,cAAc,CAAC;IACrC,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AASF,eAAO,MAAM,iBAAiB,GAAI,QAAQ,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyF9C,CAAC"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
const modalLayout = {
|
|
2
|
+
maxHeight: '90vh',
|
|
3
|
+
nativeMaxHeight: '90%',
|
|
4
|
+
zIndexOffset: '1',
|
|
5
|
+
animationDuration: '160ms',
|
|
6
|
+
};
|
|
7
|
+
export const createModalTokens = (config) => ({
|
|
8
|
+
overlay: {
|
|
9
|
+
bg: config.overlayBg,
|
|
10
|
+
blur: 4,
|
|
11
|
+
animationDuration: '200ms',
|
|
12
|
+
},
|
|
13
|
+
content: {
|
|
14
|
+
bg: config.contentBg,
|
|
15
|
+
fg: config.contentFg,
|
|
16
|
+
border: config.contentBorder,
|
|
17
|
+
shadow: config.contentShadow,
|
|
18
|
+
borderWidth: 1,
|
|
19
|
+
radius: config.radiusLg,
|
|
20
|
+
padding: config.spacing4,
|
|
21
|
+
gap: config.spacing4,
|
|
22
|
+
minWidth: 320,
|
|
23
|
+
maxHeight: modalLayout.maxHeight,
|
|
24
|
+
nativeMaxHeight: modalLayout.nativeMaxHeight,
|
|
25
|
+
viewportMargin: config.spacing8,
|
|
26
|
+
topOffset: config.spacing10,
|
|
27
|
+
zIndexOffset: modalLayout.zIndexOffset,
|
|
28
|
+
animationDuration: modalLayout.animationDuration,
|
|
29
|
+
size: {
|
|
30
|
+
sm: 400,
|
|
31
|
+
md: 560,
|
|
32
|
+
lg: 720,
|
|
33
|
+
xl: 960,
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
title: {
|
|
37
|
+
fg: config.titleFg,
|
|
38
|
+
},
|
|
39
|
+
description: {
|
|
40
|
+
fg: config.descriptionFg,
|
|
41
|
+
},
|
|
42
|
+
header: {
|
|
43
|
+
gap: config.spacing4,
|
|
44
|
+
paddingBottom: config.spacing4,
|
|
45
|
+
textGap: config.spacing1,
|
|
46
|
+
},
|
|
47
|
+
body: {
|
|
48
|
+
paddingBottom: config.spacing4,
|
|
49
|
+
},
|
|
50
|
+
footer: {
|
|
51
|
+
gap: config.spacing3,
|
|
52
|
+
paddingTop: config.spacing4,
|
|
53
|
+
},
|
|
54
|
+
closeButton: {
|
|
55
|
+
size: 32,
|
|
56
|
+
iconSize: 16,
|
|
57
|
+
radius: config.radiusFull,
|
|
58
|
+
default: {
|
|
59
|
+
bg: 'transparent',
|
|
60
|
+
fg: config.closeButtonDefaultFg,
|
|
61
|
+
border: 'transparent',
|
|
62
|
+
},
|
|
63
|
+
hover: {
|
|
64
|
+
bg: config.closeButtonHoverBg,
|
|
65
|
+
fg: config.closeButtonHoverFg,
|
|
66
|
+
border: 'transparent',
|
|
67
|
+
},
|
|
68
|
+
pressed: {
|
|
69
|
+
bg: config.closeButtonPressedBg,
|
|
70
|
+
fg: config.closeButtonPressedFg,
|
|
71
|
+
border: 'transparent',
|
|
72
|
+
},
|
|
73
|
+
focus: {
|
|
74
|
+
ring: config.closeButtonFocusRing,
|
|
75
|
+
},
|
|
76
|
+
disabled: {
|
|
77
|
+
bg: 'transparent',
|
|
78
|
+
fg: config.closeButtonDisabledFg,
|
|
79
|
+
border: 'transparent',
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/factories/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/factories/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC"}
|