@vellira-ui/tokens 2.98.6 → 2.98.7
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 +141 -189
- package/dist/dark/components/dropdown.d.ts +9 -9
- package/dist/dark/components/dropdown.d.ts.map +1 -1
- package/dist/dark/components/dropdown.js +4 -3
- package/dist/dark/components/input.d.ts +1 -1
- package/dist/dark/components/input.js +4 -4
- package/dist/dark/components/modal.js +1 -1
- package/dist/dark/components/radio.js +1 -1
- package/dist/dark/components/select.js +2 -2
- package/dist/dark/semantic/action.d.ts +2 -2
- package/dist/dark/semantic/action.js +2 -2
- package/dist/dark/semantic/border.d.ts +1 -1
- package/dist/dark/semantic/border.js +1 -1
- package/dist/dark/semantic/control.js +1 -1
- package/dist/dark/semantic/focus.d.ts +1 -1
- package/dist/dark/semantic/focus.js +1 -1
- package/dist/dark/semantic/icons.d.ts +2 -2
- package/dist/dark/semantic/icons.js +2 -2
- package/dist/dark/semantic/index.d.ts +0 -1
- package/dist/dark/semantic/index.d.ts.map +1 -1
- package/dist/dark/semantic/index.js +0 -1
- package/dist/dark/semantic/overlay.d.ts +2 -2
- package/dist/dark/semantic/overlay.js +2 -2
- package/dist/dark/semantic/status.d.ts +6 -6
- package/dist/dark/semantic/status.js +6 -6
- package/dist/dark/semantic/surface.d.ts +0 -1
- package/dist/dark/semantic/surface.d.ts.map +1 -1
- package/dist/dark/semantic/surface.js +0 -1
- package/dist/dark/semantic/text.d.ts +2 -2
- package/dist/dark/semantic/text.js +2 -2
- package/dist/factories/componentFocusRing.d.ts +13 -0
- package/dist/factories/componentFocusRing.d.ts.map +1 -0
- package/dist/factories/componentFocusRing.js +6 -0
- package/dist/factories/createContextMenuTokens.d.ts +2 -1
- package/dist/factories/createContextMenuTokens.d.ts.map +1 -1
- package/dist/factories/createContextMenuTokens.js +3 -2
- package/dist/factories/createModalTokens.d.ts +3 -2
- package/dist/factories/createModalTokens.d.ts.map +1 -1
- package/dist/factories/createModalTokens.js +4 -3
- package/dist/factories/createPopoverTokens.d.ts +1 -1
- package/dist/factories/createPopoverTokens.d.ts.map +1 -1
- package/dist/factories/createPopoverTokens.js +2 -2
- 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 +168 -232
- package/dist/highContrast/components/dropdown.d.ts +8 -8
- package/dist/highContrast/components/dropdown.d.ts.map +1 -1
- package/dist/highContrast/components/dropdown.js +4 -3
- package/dist/highContrast/components/input.d.ts +4 -4
- package/dist/highContrast/components/input.js +4 -4
- package/dist/highContrast/components/radio.js +1 -1
- package/dist/highContrast/components/select.d.ts +1 -1
- package/dist/highContrast/components/select.js +2 -2
- package/dist/highContrast/semantic/action.d.ts +2 -2
- package/dist/highContrast/semantic/action.js +2 -2
- package/dist/highContrast/semantic/border.d.ts +1 -1
- package/dist/highContrast/semantic/border.js +1 -1
- package/dist/highContrast/semantic/focus.d.ts +1 -1
- package/dist/highContrast/semantic/focus.js +1 -1
- package/dist/highContrast/semantic/icons.d.ts +4 -4
- package/dist/highContrast/semantic/icons.js +4 -4
- package/dist/highContrast/semantic/index.d.ts +0 -1
- package/dist/highContrast/semantic/index.d.ts.map +1 -1
- package/dist/highContrast/semantic/index.js +0 -1
- package/dist/highContrast/semantic/overlay.d.ts +2 -2
- package/dist/highContrast/semantic/overlay.js +2 -2
- package/dist/highContrast/semantic/status.d.ts +4 -4
- package/dist/highContrast/semantic/status.js +4 -4
- package/dist/highContrast/semantic/surface.d.ts +0 -1
- package/dist/highContrast/semantic/surface.d.ts.map +1 -1
- package/dist/highContrast/semantic/surface.js +0 -1
- package/dist/light/components/dropdown.d.ts +8 -8
- package/dist/light/components/dropdown.d.ts.map +1 -1
- package/dist/light/components/dropdown.js +4 -3
- package/dist/light/components/input.js +4 -4
- package/dist/light/components/radio.js +1 -1
- package/dist/light/components/select.js +2 -2
- package/dist/light/semantic/action.d.ts +2 -2
- package/dist/light/semantic/action.js +2 -2
- package/dist/light/semantic/border.d.ts +1 -1
- package/dist/light/semantic/border.js +1 -1
- package/dist/light/semantic/focus.d.ts +1 -1
- package/dist/light/semantic/focus.js +1 -1
- package/dist/light/semantic/icons.d.ts +2 -2
- package/dist/light/semantic/icons.js +2 -2
- package/dist/light/semantic/index.d.ts +0 -1
- package/dist/light/semantic/index.d.ts.map +1 -1
- package/dist/light/semantic/index.js +0 -1
- package/dist/light/semantic/menu.js +1 -1
- package/dist/light/semantic/overlay.d.ts +2 -2
- package/dist/light/semantic/overlay.js +2 -2
- package/dist/light/semantic/status.d.ts +4 -4
- package/dist/light/semantic/status.js +4 -4
- package/dist/light/semantic/surface.d.ts +0 -1
- package/dist/light/semantic/surface.d.ts.map +1 -1
- package/dist/light/semantic/surface.js +0 -1
- package/dist/preservation/token-migrations.d.ts +169 -13
- package/dist/preservation/token-migrations.d.ts.map +1 -1
- package/dist/preservation/token-migrations.js +260 -30
- package/dist/token-architecture.d.ts +55 -9
- package/dist/token-architecture.d.ts.map +1 -1
- package/dist/token-architecture.js +126 -20
- package/package.json +1 -1
- package/dist/dark/semantic/navigation.d.ts +0 -34
- package/dist/dark/semantic/navigation.d.ts.map +0 -1
- package/dist/dark/semantic/navigation.js +0 -37
- package/dist/highContrast/semantic/navigation.d.ts +0 -34
- package/dist/highContrast/semantic/navigation.d.ts.map +0 -1
- package/dist/highContrast/semantic/navigation.js +0 -36
- package/dist/light/semantic/navigation.d.ts +0 -34
- package/dist/light/semantic/navigation.d.ts.map +0 -1
- package/dist/light/semantic/navigation.js +0 -37
|
@@ -7,7 +7,7 @@ import { shadow } from '../semantic/shadow.js';
|
|
|
7
7
|
import { surface } from '../semantic/surface.js';
|
|
8
8
|
import { text } from '../semantic/text.js';
|
|
9
9
|
const closeButtonHoverBg = surface.elevated;
|
|
10
|
-
const closeButtonPressedBg = surface.
|
|
10
|
+
const closeButtonPressedBg = surface.pressed;
|
|
11
11
|
export const modal = createModalTokensFromSemantics({
|
|
12
12
|
closeButtonHoverBg,
|
|
13
13
|
closeButtonPressedBg,
|
|
@@ -157,13 +157,13 @@ export const select = {
|
|
|
157
157
|
},
|
|
158
158
|
hover: {
|
|
159
159
|
...control.hover,
|
|
160
|
-
icon: icons.
|
|
160
|
+
icon: icons.interactiveHover,
|
|
161
161
|
placeholder: text.secondary,
|
|
162
162
|
},
|
|
163
163
|
focus: {
|
|
164
164
|
bg: 'transparent',
|
|
165
165
|
fg: text.primary,
|
|
166
|
-
border: border.
|
|
166
|
+
border: border.interactive,
|
|
167
167
|
ring: focus.ring.color,
|
|
168
168
|
icon: icons.brand,
|
|
169
169
|
placeholder: text.secondary,
|
|
@@ -26,7 +26,7 @@ export declare const action: {
|
|
|
26
26
|
readonly border: "transparent";
|
|
27
27
|
};
|
|
28
28
|
};
|
|
29
|
-
readonly
|
|
29
|
+
readonly accent: {
|
|
30
30
|
readonly default: {
|
|
31
31
|
readonly bg: "#1FBEDB";
|
|
32
32
|
readonly fg: "#000000";
|
|
@@ -53,7 +53,7 @@ export declare const action: {
|
|
|
53
53
|
readonly border: "transparent";
|
|
54
54
|
};
|
|
55
55
|
};
|
|
56
|
-
readonly
|
|
56
|
+
readonly neutral: {
|
|
57
57
|
readonly default: {
|
|
58
58
|
readonly bg: "#BBB2D2";
|
|
59
59
|
readonly fg: "#000000";
|
|
@@ -28,7 +28,7 @@ export const action = {
|
|
|
28
28
|
border: 'transparent',
|
|
29
29
|
},
|
|
30
30
|
},
|
|
31
|
-
|
|
31
|
+
accent: {
|
|
32
32
|
default: {
|
|
33
33
|
bg: colors.secondary[500],
|
|
34
34
|
fg: text.inverse,
|
|
@@ -55,7 +55,7 @@ export const action = {
|
|
|
55
55
|
border: 'transparent',
|
|
56
56
|
},
|
|
57
57
|
},
|
|
58
|
-
|
|
58
|
+
neutral: {
|
|
59
59
|
default: {
|
|
60
60
|
bg: colors.vellira[300],
|
|
61
61
|
fg: text.inverse,
|
|
@@ -4,9 +4,9 @@ export declare const icons: {
|
|
|
4
4
|
readonly muted: "#958CB0";
|
|
5
5
|
readonly subtle: "#6B6386";
|
|
6
6
|
readonly disabled: "#6B6386";
|
|
7
|
-
readonly
|
|
7
|
+
readonly interactive: "#B8A8FF";
|
|
8
8
|
readonly brand: "#B8A8FF";
|
|
9
|
-
readonly
|
|
9
|
+
readonly interactiveHover: "#D4CCFF";
|
|
10
10
|
readonly success: "#2DD4BF";
|
|
11
11
|
readonly danger: "#FB7185";
|
|
12
12
|
readonly inverse: "#000000";
|
|
@@ -5,9 +5,9 @@ export const icons = {
|
|
|
5
5
|
muted: colors.vellira[400],
|
|
6
6
|
subtle: colors.vellira[500],
|
|
7
7
|
disabled: colors.vellira[500],
|
|
8
|
-
|
|
8
|
+
interactive: colors.primary[300],
|
|
9
9
|
brand: colors.primary[300],
|
|
10
|
-
|
|
10
|
+
interactiveHover: colors.primary[200],
|
|
11
11
|
success: colors.success[400],
|
|
12
12
|
danger: colors.error[400],
|
|
13
13
|
inverse: colors.mono[950],
|
|
@@ -5,7 +5,6 @@ export { divider } from './divider.js';
|
|
|
5
5
|
export { focus } from './focus.js';
|
|
6
6
|
export { icons } from './icons.js';
|
|
7
7
|
export { menu } from './menu.js';
|
|
8
|
-
export { navigation } from './navigation.js';
|
|
9
8
|
export { overlay } from './overlay.js';
|
|
10
9
|
export { shadow } from './shadow.js';
|
|
11
10
|
export { skeleton } from './skeleton.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/dark/semantic/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/dark/semantic/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC"}
|
|
@@ -5,7 +5,6 @@ export { divider } from './divider.js';
|
|
|
5
5
|
export { focus } from './focus.js';
|
|
6
6
|
export { icons } from './icons.js';
|
|
7
7
|
export { menu } from './menu.js';
|
|
8
|
-
export { navigation } from './navigation.js';
|
|
9
8
|
export { overlay } from './overlay.js';
|
|
10
9
|
export { shadow } from './shadow.js';
|
|
11
10
|
export { skeleton } from './skeleton.js';
|
|
@@ -5,11 +5,11 @@ export declare const overlay: {
|
|
|
5
5
|
readonly fg: "#F4F1FB";
|
|
6
6
|
readonly border: "#4F4867";
|
|
7
7
|
};
|
|
8
|
-
readonly
|
|
8
|
+
readonly floating: {
|
|
9
9
|
readonly bg: "#242034";
|
|
10
10
|
readonly border: "#3D3754";
|
|
11
11
|
};
|
|
12
|
-
readonly
|
|
12
|
+
readonly dialog: {
|
|
13
13
|
readonly bg: "#242034";
|
|
14
14
|
readonly border: "#3D3754";
|
|
15
15
|
};
|
|
@@ -4,28 +4,28 @@ export declare const status: {
|
|
|
4
4
|
readonly bg: "rgba(52, 211, 153, 0.14)";
|
|
5
5
|
readonly border: "#2DD4BF";
|
|
6
6
|
readonly ring: "#5EEAD4";
|
|
7
|
-
readonly
|
|
7
|
+
readonly emphasisFg: "#0F9E94";
|
|
8
8
|
};
|
|
9
9
|
readonly error: {
|
|
10
10
|
readonly fg: "#FB7185";
|
|
11
11
|
readonly bg: "rgba(251, 113, 133, 0.16)";
|
|
12
12
|
readonly border: "#FB7185";
|
|
13
13
|
readonly ring: "#FB7185";
|
|
14
|
-
readonly
|
|
14
|
+
readonly emphasisFg: "#E11D48";
|
|
15
15
|
};
|
|
16
16
|
readonly warning: {
|
|
17
17
|
readonly fg: "#FBBF24";
|
|
18
18
|
readonly bg: "rgba(251, 191, 36, 0.14)";
|
|
19
19
|
readonly border: "#FBBF24";
|
|
20
|
-
readonly ring: "#
|
|
21
|
-
readonly
|
|
20
|
+
readonly ring: "#FCD34D";
|
|
21
|
+
readonly emphasisFg: "#D97706";
|
|
22
22
|
};
|
|
23
23
|
readonly info: {
|
|
24
24
|
readonly fg: "#7DD3FC";
|
|
25
25
|
readonly bg: "rgba(56, 189, 248, 0.14)";
|
|
26
26
|
readonly border: "#7DD3FC";
|
|
27
|
-
readonly ring: "#
|
|
28
|
-
readonly
|
|
27
|
+
readonly ring: "#7DD3FC";
|
|
28
|
+
readonly emphasisFg: "#0369A1";
|
|
29
29
|
};
|
|
30
30
|
};
|
|
31
31
|
//# sourceMappingURL=status.d.ts.map
|
|
@@ -5,27 +5,27 @@ export const status = {
|
|
|
5
5
|
bg: 'rgba(52, 211, 153, 0.14)',
|
|
6
6
|
border: colors.success[400],
|
|
7
7
|
ring: colors.success[300],
|
|
8
|
-
|
|
8
|
+
emphasisFg: colors.success[600],
|
|
9
9
|
},
|
|
10
10
|
error: {
|
|
11
11
|
fg: colors.error[400],
|
|
12
12
|
bg: 'rgba(251, 113, 133, 0.16)',
|
|
13
13
|
border: colors.error[400],
|
|
14
14
|
ring: colors.error[400],
|
|
15
|
-
|
|
15
|
+
emphasisFg: colors.error[600],
|
|
16
16
|
},
|
|
17
17
|
warning: {
|
|
18
18
|
fg: colors.warning[400],
|
|
19
19
|
bg: 'rgba(251, 191, 36, 0.14)',
|
|
20
20
|
border: colors.warning[400],
|
|
21
|
-
ring: colors.
|
|
22
|
-
|
|
21
|
+
ring: colors.warning[300],
|
|
22
|
+
emphasisFg: colors.warning[600],
|
|
23
23
|
},
|
|
24
24
|
info: {
|
|
25
25
|
fg: colors.info[200],
|
|
26
26
|
bg: 'rgba(56, 189, 248, 0.14)',
|
|
27
27
|
border: colors.info[200],
|
|
28
|
-
ring: colors.
|
|
29
|
-
|
|
28
|
+
ring: colors.info[200],
|
|
29
|
+
emphasisFg: colors.info[500],
|
|
30
30
|
},
|
|
31
31
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"surface.d.ts","sourceRoot":"","sources":["../../../src/dark/semantic/surface.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO
|
|
1
|
+
{"version":3,"file":"surface.d.ts","sourceRoot":"","sources":["../../../src/dark/semantic/surface.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO;;;;;;;;;;;;CAeV,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export declare const text: {
|
|
2
2
|
readonly primary: "#F4F1FB";
|
|
3
3
|
readonly secondary: "#BBB2D2";
|
|
4
|
-
readonly muted: "#
|
|
5
|
-
readonly subtle: "#
|
|
4
|
+
readonly muted: "#9CA3AF";
|
|
5
|
+
readonly subtle: "#958CB0";
|
|
6
6
|
readonly disabled: "#6B6386";
|
|
7
7
|
readonly brand: "#B8A8FF";
|
|
8
8
|
readonly interactive: "#B8A8FF";
|
|
@@ -2,8 +2,8 @@ import { colors } from '../../primitives/colors.js';
|
|
|
2
2
|
export const text = {
|
|
3
3
|
primary: colors.vellira[100],
|
|
4
4
|
secondary: colors.vellira[300],
|
|
5
|
-
muted: colors.
|
|
6
|
-
subtle: colors.
|
|
5
|
+
muted: colors.mono[500],
|
|
6
|
+
subtle: colors.vellira[400],
|
|
7
7
|
disabled: colors.vellira[500],
|
|
8
8
|
brand: colors.primary[300],
|
|
9
9
|
interactive: colors.primary[300],
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type SemanticFocusRing = {
|
|
2
|
+
readonly color: string;
|
|
3
|
+
readonly width: string;
|
|
4
|
+
readonly shadow: string;
|
|
5
|
+
readonly offsetColor: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const createComponentFocusRing: (ring: SemanticFocusRing) => {
|
|
8
|
+
readonly color: string;
|
|
9
|
+
readonly width: string;
|
|
10
|
+
readonly shadow: string;
|
|
11
|
+
readonly offset: string;
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=componentFocusRing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"componentFocusRing.d.ts","sourceRoot":"","sources":["../../src/factories/componentFocusRing.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,iBAAiB,GAAG;IAC9B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAC9B,CAAC;AAEF,eAAO,MAAM,wBAAwB,GAAI,MAAM,iBAAiB;;;;;CAMnD,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type SemanticFocusRing } from './componentFocusRing.js';
|
|
1
2
|
type ContextMenuState = {
|
|
2
3
|
readonly bg: string;
|
|
3
4
|
readonly fg: string;
|
|
@@ -35,7 +36,7 @@ type ContextMenuTokensConfig = {
|
|
|
35
36
|
};
|
|
36
37
|
export type ContextMenuThemeSemantics = {
|
|
37
38
|
focus: {
|
|
38
|
-
ring:
|
|
39
|
+
ring: SemanticFocusRing;
|
|
39
40
|
};
|
|
40
41
|
menu: {
|
|
41
42
|
background: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createContextMenuTokens.d.ts","sourceRoot":"","sources":["../../src/factories/createContextMenuTokens.ts"],"names":[],"mappings":"AAAA,KAAK,gBAAgB,GAAG;IACtB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,KAAK,uBAAuB,GAAG;IAC7B,QAAQ,CAAC,OAAO,EAAE,gBAAgB,CAAC;IACnC,QAAQ,CAAC,KAAK,EAAE,gBAAgB,CAAC;IACjC,QAAQ,CAAC,MAAM,EAAE,gBAAgB,CAAC;IAClC,QAAQ,CAAC,QAAQ,EAAE,gBAAgB,CAAC;CACrC,CAAC;AAEF,KAAK,oBAAoB,GAAG;IAC1B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,KAAK,uBAAuB,GAAG;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,gBAAgB,CAAC;IAC9B,SAAS,EAAE,gBAAgB,CAAC;IAC5B,UAAU,EAAE,gBAAgB,CAAC;IAC7B,WAAW,EAAE,gBAAgB,CAAC;IAC9B,aAAa,EAAE,oBAAoB,CAAC;IACpC,YAAY,EAAE,gBAAgB,CAAC;IAC/B,UAAU,EAAE,uBAAuB,C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N,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6IjB,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createComponentFocusRing, } from './componentFocusRing.js';
|
|
1
2
|
export const createContextMenuTokens = (config) => ({
|
|
2
3
|
content: {
|
|
3
4
|
bg: config.contentBg,
|
|
@@ -54,14 +55,14 @@ export const createContextMenuTokensFromSemantics = ({ focus, menu, shadow, text
|
|
|
54
55
|
itemHover: menu.item.hover,
|
|
55
56
|
itemActive: menu.item.active,
|
|
56
57
|
itemPressed: menu.item.pressed,
|
|
57
|
-
itemFocusRing: focus.ring,
|
|
58
|
+
itemFocusRing: createComponentFocusRing(focus.ring),
|
|
58
59
|
itemDisabled: menu.item.disabled,
|
|
59
60
|
itemDanger: menu.item.danger,
|
|
60
61
|
triggerDefaultFg: text.interactive,
|
|
61
62
|
triggerHoverBg: menu.item.hover.bg,
|
|
62
63
|
triggerHoverFg: text.interactiveHover,
|
|
63
64
|
triggerFocusFg: text.interactive,
|
|
64
|
-
triggerFocusRing: focus.ring,
|
|
65
|
+
triggerFocusRing: createComponentFocusRing(focus.ring),
|
|
65
66
|
triggerDisabledFg: text.disabled,
|
|
66
67
|
groupLabelFg: text.secondary,
|
|
67
68
|
});
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type SemanticFocusRing } from './componentFocusRing.js';
|
|
1
2
|
type ModalFocusRing = {
|
|
2
3
|
color: string;
|
|
3
4
|
width: string;
|
|
@@ -31,11 +32,11 @@ export type ModalThemeSemantics = {
|
|
|
31
32
|
closeButtonHoverBg?: string;
|
|
32
33
|
closeButtonPressedBg?: string;
|
|
33
34
|
focus: {
|
|
34
|
-
ring:
|
|
35
|
+
ring: SemanticFocusRing;
|
|
35
36
|
};
|
|
36
37
|
overlay: {
|
|
37
38
|
backdrop: string;
|
|
38
|
-
|
|
39
|
+
dialog: {
|
|
39
40
|
bg: string;
|
|
40
41
|
border: string;
|
|
41
42
|
};
|
|
@@ -1 +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;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,KAAK,EAAE;QACL,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"createModalTokens.d.ts","sourceRoot":"","sources":["../../src/factories/createModalTokens.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,iBAAiB,E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MAAM,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;IACF,MAAM,EAAE;QACN,EAAE,EAAE,MAAM,CAAC;KACZ,CAAC;IACF,OAAO,EAAE;QACP,CAAC,EAAE,MAAM,CAAC;QACV,CAAC,EAAE,MAAM,CAAC;QACV,CAAC,EAAE,MAAM,CAAC;QACV,CAAC,EAAE,MAAM,CAAC;QACV,EAAE,EAAE,MAAM,CAAC;KACZ,CAAC;IACF,OAAO,EAAE;QACP,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,IAAI,EAAE;QACJ,OAAO,EAAE,MAAM,CAAC;QAChB,SAAS,EAAE,MAAM,CAAC;QAClB,QAAQ,EAAE,MAAM,CAAC;KAClB,CAAC;CACH,CAAC;AAcF,eAAO,MAAM,iBAAiB,GAAI,QAAQ,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2F9C,CAAC;AAEd,eAAO,MAAM,8BAA8B,GAAI,uGAU5C,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuBlB,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createComponentFocusRing, } from './componentFocusRing.js';
|
|
1
2
|
const modalLayout = {
|
|
2
3
|
maxHeight: '90vh',
|
|
3
4
|
nativeMaxHeight: '90%',
|
|
@@ -87,9 +88,9 @@ export const createModalTokens = (config) => ({
|
|
|
87
88
|
});
|
|
88
89
|
export const createModalTokensFromSemantics = ({ closeButtonHoverBg, closeButtonPressedBg, focus, overlay, radius, shadow, spacing, surface, text, }) => createModalTokens({
|
|
89
90
|
overlayBg: overlay.backdrop,
|
|
90
|
-
contentBg: overlay.
|
|
91
|
+
contentBg: overlay.dialog.bg,
|
|
91
92
|
contentFg: text.primary,
|
|
92
|
-
contentBorder: overlay.
|
|
93
|
+
contentBorder: overlay.dialog.border,
|
|
93
94
|
contentShadow: shadow.xl,
|
|
94
95
|
titleFg: text.primary,
|
|
95
96
|
descriptionFg: text.secondary,
|
|
@@ -99,7 +100,7 @@ export const createModalTokensFromSemantics = ({ closeButtonHoverBg, closeButton
|
|
|
99
100
|
closeButtonPressedBg: closeButtonPressedBg ?? surface.pressed,
|
|
100
101
|
closeButtonPressedFg: text.primary,
|
|
101
102
|
closeButtonDisabledFg: text.disabled,
|
|
102
|
-
closeButtonFocusRing: focus.ring,
|
|
103
|
+
closeButtonFocusRing: createComponentFocusRing(focus.ring),
|
|
103
104
|
radiusLg: radius.lg,
|
|
104
105
|
radiusFull: radius.full,
|
|
105
106
|
spacing1: spacing[1],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createPopoverTokens.d.ts","sourceRoot":"","sources":["../../src/factories/createPopoverTokens.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAEpD,KAAK,iBAAiB,GAAG,CAAC,OAAO,OAAO,CAAC,CAAC,MAAM,OAAO,OAAO,CAAC,CAAC;AAEhE,KAAK,mBAAmB,GAAG;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,EAAE,MAAM,CAAC;IACzB,mBAAmB,EAAE,iBAAiB,CAAC;IACvC,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,OAAO,EAAE;QACP,
|
|
1
|
+
{"version":3,"file":"createPopoverTokens.d.ts","sourceRoot":"","sources":["../../src/factories/createP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 +27,9 @@ export const createPopoverTokens = (config) => ({
|
|
|
27
27
|
},
|
|
28
28
|
});
|
|
29
29
|
export const createPopoverTokensFromTheme = ({ overlay, shadow, shadows, text, radius, spacing, }) => createPopoverTokens({
|
|
30
|
-
contentBg: overlay.
|
|
30
|
+
contentBg: overlay.floating.bg,
|
|
31
31
|
contentFg: text.primary,
|
|
32
|
-
contentBorder: overlay.
|
|
32
|
+
contentBorder: overlay.floating.border,
|
|
33
33
|
contentWebShadow: shadow.lg,
|
|
34
34
|
contentNativeShadow: shadows.lg,
|
|
35
35
|
titleFg: text.primary,
|