@vellira-ui/tokens 2.95.2 → 2.97.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/dark/components/accordion.d.ts.map +1 -1
- package/dist/dark/components/accordion.js +6 -34
- package/dist/dark/components/contextMenu.d.ts +35 -35
- package/dist/dark/components/contextMenu.d.ts.map +1 -1
- package/dist/dark/components/contextMenu.js +8 -49
- package/dist/dark/components/formField.d.ts +51 -51
- package/dist/dark/components/formField.d.ts.map +1 -1
- package/dist/dark/components/formField.js +8 -85
- package/dist/dark/components/modal.d.ts.map +1 -1
- package/dist/dark/components/modal.js +13 -23
- package/dist/dark/components/popover.d.ts.map +1 -1
- package/dist/dark/components/popover.js +8 -12
- package/dist/dark/components/radioGroup.d.ts.map +1 -1
- package/dist/dark/components/radioGroup.js +2 -8
- package/dist/dark/components/switch.d.ts.map +1 -1
- package/dist/dark/components/switch.js +5 -43
- package/dist/dark/components/tooltip.d.ts.map +1 -1
- package/dist/dark/components/tooltip.js +7 -15
- package/dist/factories/createAccordionTokens.d.ts +23 -0
- package/dist/factories/createAccordionTokens.d.ts.map +1 -1
- package/dist/factories/createAccordionTokens.js +34 -0
- package/dist/factories/createContextMenuTokens.d.ts +161 -0
- package/dist/factories/createContextMenuTokens.d.ts.map +1 -0
- package/dist/factories/createContextMenuTokens.js +67 -0
- package/dist/factories/createFormFieldTokens.d.ts +124 -0
- package/dist/factories/createFormFieldTokens.d.ts.map +1 -0
- package/dist/factories/createFormFieldTokens.js +85 -0
- package/dist/factories/createModalTokens.d.ts +118 -0
- package/dist/factories/createModalTokens.d.ts.map +1 -1
- package/dist/factories/createModalTokens.js +23 -0
- package/dist/factories/createPopoverTokens.d.ts +52 -0
- package/dist/factories/createPopoverTokens.d.ts.map +1 -1
- package/dist/factories/createPopoverTokens.js +12 -0
- package/dist/factories/createRadioGroupTokens.d.ts +19 -0
- package/dist/factories/createRadioGroupTokens.d.ts.map +1 -1
- package/dist/factories/createRadioGroupTokens.js +7 -0
- package/dist/factories/createSwitchTokens.d.ts +29 -0
- package/dist/factories/createSwitchTokens.d.ts.map +1 -1
- package/dist/factories/createSwitchTokens.js +44 -0
- package/dist/factories/createTooltipTokens.d.ts +29 -0
- package/dist/factories/createTooltipTokens.d.ts.map +1 -1
- package/dist/factories/createTooltipTokens.js +15 -0
- package/dist/highContrast/components/accordion.d.ts.map +1 -1
- package/dist/highContrast/components/accordion.js +6 -34
- package/dist/highContrast/components/contextMenu.d.ts +35 -35
- package/dist/highContrast/components/contextMenu.d.ts.map +1 -1
- package/dist/highContrast/components/contextMenu.js +8 -49
- package/dist/highContrast/components/formField.d.ts +51 -51
- package/dist/highContrast/components/formField.d.ts.map +1 -1
- package/dist/highContrast/components/formField.js +8 -85
- package/dist/highContrast/components/modal.d.ts.map +1 -1
- package/dist/highContrast/components/modal.js +9 -23
- package/dist/highContrast/components/popover.d.ts.map +1 -1
- package/dist/highContrast/components/popover.js +8 -12
- package/dist/highContrast/components/radioGroup.d.ts.map +1 -1
- package/dist/highContrast/components/radioGroup.js +2 -8
- package/dist/highContrast/components/switch.d.ts.map +1 -1
- package/dist/highContrast/components/switch.js +5 -43
- package/dist/highContrast/components/tooltip.d.ts.map +1 -1
- package/dist/highContrast/components/tooltip.js +7 -15
- package/dist/light/components/accordion.d.ts.map +1 -1
- package/dist/light/components/accordion.js +6 -34
- package/dist/light/components/contextMenu.d.ts +35 -35
- package/dist/light/components/contextMenu.d.ts.map +1 -1
- package/dist/light/components/contextMenu.js +8 -49
- package/dist/light/components/formField.d.ts +51 -51
- package/dist/light/components/formField.d.ts.map +1 -1
- package/dist/light/components/formField.js +8 -85
- package/dist/light/components/modal.d.ts.map +1 -1
- package/dist/light/components/modal.js +9 -23
- package/dist/light/components/popover.d.ts.map +1 -1
- package/dist/light/components/popover.js +8 -12
- package/dist/light/components/radioGroup.d.ts.map +1 -1
- package/dist/light/components/radioGroup.js +2 -8
- package/dist/light/components/switch.d.ts.map +1 -1
- package/dist/light/components/switch.js +5 -43
- package/dist/light/components/tooltip.d.ts.map +1 -1
- package/dist/light/components/tooltip.js +7 -15
- package/package.json +1 -1
|
@@ -85,3 +85,26 @@ export const createModalTokens = (config) => ({
|
|
|
85
85
|
},
|
|
86
86
|
motion: modalMotion,
|
|
87
87
|
});
|
|
88
|
+
export const createModalTokensFromSemantics = ({ closeButtonHoverBg, closeButtonPressedBg, focus, overlay, radius, shadow, spacing, surface, text, }) => createModalTokens({
|
|
89
|
+
overlayBg: overlay.backdrop,
|
|
90
|
+
contentBg: overlay.modal.bg,
|
|
91
|
+
contentFg: text.primary,
|
|
92
|
+
contentBorder: overlay.modal.border,
|
|
93
|
+
contentShadow: shadow.xl,
|
|
94
|
+
titleFg: text.primary,
|
|
95
|
+
descriptionFg: text.secondary,
|
|
96
|
+
closeButtonDefaultFg: text.secondary,
|
|
97
|
+
closeButtonHoverBg: closeButtonHoverBg ?? surface.hover,
|
|
98
|
+
closeButtonHoverFg: text.primary,
|
|
99
|
+
closeButtonPressedBg: closeButtonPressedBg ?? surface.pressed,
|
|
100
|
+
closeButtonPressedFg: text.primary,
|
|
101
|
+
closeButtonDisabledFg: text.disabled,
|
|
102
|
+
closeButtonFocusRing: focus.ring,
|
|
103
|
+
radiusLg: radius.lg,
|
|
104
|
+
radiusFull: radius.full,
|
|
105
|
+
spacing1: spacing[1],
|
|
106
|
+
spacing3: spacing[3],
|
|
107
|
+
spacing4: spacing[4],
|
|
108
|
+
spacing8: spacing[8],
|
|
109
|
+
spacing10: spacing[10],
|
|
110
|
+
});
|
|
@@ -12,6 +12,30 @@ type PopoverTokensConfig = {
|
|
|
12
12
|
spacing3: number;
|
|
13
13
|
spacing4: number;
|
|
14
14
|
};
|
|
15
|
+
export type PopoverThemeSources = {
|
|
16
|
+
overlay: {
|
|
17
|
+
popover: {
|
|
18
|
+
bg: string;
|
|
19
|
+
border: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
shadow: {
|
|
23
|
+
lg: string;
|
|
24
|
+
};
|
|
25
|
+
shadows: {
|
|
26
|
+
lg: NativeShadowToken;
|
|
27
|
+
};
|
|
28
|
+
text: {
|
|
29
|
+
primary: string;
|
|
30
|
+
secondary: string;
|
|
31
|
+
};
|
|
32
|
+
radius: {
|
|
33
|
+
lg: number;
|
|
34
|
+
};
|
|
35
|
+
spacing: {
|
|
36
|
+
readonly [key: number]: number;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
15
39
|
export declare const createPopoverTokens: (config: PopoverTokensConfig) => {
|
|
16
40
|
readonly content: {
|
|
17
41
|
readonly bg: string;
|
|
@@ -40,5 +64,33 @@ export declare const createPopoverTokens: (config: PopoverTokensConfig) => {
|
|
|
40
64
|
readonly border: string;
|
|
41
65
|
};
|
|
42
66
|
};
|
|
67
|
+
export declare const createPopoverTokensFromTheme: ({ overlay, shadow, shadows, text, radius, spacing, }: PopoverThemeSources) => {
|
|
68
|
+
readonly content: {
|
|
69
|
+
readonly bg: string;
|
|
70
|
+
readonly fg: string;
|
|
71
|
+
readonly border: string;
|
|
72
|
+
readonly shadow: {
|
|
73
|
+
readonly web: string;
|
|
74
|
+
readonly native: NativeShadowToken;
|
|
75
|
+
};
|
|
76
|
+
readonly borderWidth: 1;
|
|
77
|
+
readonly radius: number;
|
|
78
|
+
readonly padding: number;
|
|
79
|
+
readonly gap: number;
|
|
80
|
+
readonly minWidth: 220;
|
|
81
|
+
readonly maxWidth: 320;
|
|
82
|
+
};
|
|
83
|
+
readonly title: {
|
|
84
|
+
readonly fg: string;
|
|
85
|
+
};
|
|
86
|
+
readonly description: {
|
|
87
|
+
readonly fg: string;
|
|
88
|
+
};
|
|
89
|
+
readonly arrow: {
|
|
90
|
+
readonly size: 10;
|
|
91
|
+
readonly bg: string;
|
|
92
|
+
readonly border: string;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
43
95
|
export {};
|
|
44
96
|
//# sourceMappingURL=createPopoverTokens.d.ts.map
|
|
@@ -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,eAAO,MAAM,mBAAmB,GAAI,QAAQ,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiClD,CAAC"}
|
|
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,OAAO,EAAE;YACP,EAAE,EAAE,MAAM,CAAC;YACX,MAAM,EAAE,MAAM,CAAC;SAChB,CAAC;KACH,CAAC;IACF,MAAM,EAAE;QACN,EAAE,EAAE,MAAM,CAAC;KACZ,CAAC;IACF,OAAO,EAAE;QACP,EAAE,EAAE,iBAAiB,CAAC;KACvB,CAAC;IACF,IAAI,EAAE;QACJ,OAAO,EAAE,MAAM,CAAC;QAChB,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;IACF,MAAM,EAAE;QACN,EAAE,EAAE,MAAM,CAAC;KACZ,CAAC;IACF,OAAO,EAAE;QACP,QAAQ,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;KAChC,CAAC;CACH,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,QAAQ,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiClD,CAAC;AAEd,eAAO,MAAM,4BAA4B,GAAI,sDAO1C,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;CAYlB,CAAC"}
|
|
@@ -26,3 +26,15 @@ export const createPopoverTokens = (config) => ({
|
|
|
26
26
|
border: config.contentBorder,
|
|
27
27
|
},
|
|
28
28
|
});
|
|
29
|
+
export const createPopoverTokensFromTheme = ({ overlay, shadow, shadows, text, radius, spacing, }) => createPopoverTokens({
|
|
30
|
+
contentBg: overlay.popover.bg,
|
|
31
|
+
contentFg: text.primary,
|
|
32
|
+
contentBorder: overlay.popover.border,
|
|
33
|
+
contentWebShadow: shadow.lg,
|
|
34
|
+
contentNativeShadow: shadows.lg,
|
|
35
|
+
titleFg: text.primary,
|
|
36
|
+
descriptionFg: text.secondary,
|
|
37
|
+
radiusLg: radius.lg,
|
|
38
|
+
spacing3: spacing[3],
|
|
39
|
+
spacing4: spacing[4],
|
|
40
|
+
});
|
|
@@ -5,6 +5,9 @@ type RadioGroupTokensConfig = {
|
|
|
5
5
|
spacing4: number;
|
|
6
6
|
spacing5: number;
|
|
7
7
|
};
|
|
8
|
+
type SpacingScale = {
|
|
9
|
+
readonly [key: number]: number;
|
|
10
|
+
};
|
|
8
11
|
export declare const createRadioGroupTokens: (config: RadioGroupTokensConfig) => {
|
|
9
12
|
readonly size: {
|
|
10
13
|
readonly sm: {
|
|
@@ -21,5 +24,21 @@ export declare const createRadioGroupTokens: (config: RadioGroupTokensConfig) =>
|
|
|
21
24
|
};
|
|
22
25
|
};
|
|
23
26
|
};
|
|
27
|
+
export declare const createRadioGroupTokensFromSpacing: (spacing: SpacingScale) => {
|
|
28
|
+
readonly size: {
|
|
29
|
+
readonly sm: {
|
|
30
|
+
readonly itemGap: number;
|
|
31
|
+
readonly horizontalGap: number;
|
|
32
|
+
};
|
|
33
|
+
readonly md: {
|
|
34
|
+
readonly itemGap: number;
|
|
35
|
+
readonly horizontalGap: number;
|
|
36
|
+
};
|
|
37
|
+
readonly lg: {
|
|
38
|
+
readonly itemGap: number;
|
|
39
|
+
readonly horizontalGap: number;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
};
|
|
24
43
|
export {};
|
|
25
44
|
//# sourceMappingURL=createRadioGroupTokens.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createRadioGroupTokens.d.ts","sourceRoot":"","sources":["../../src/factories/createRadioGroupTokens.ts"],"names":[],"mappings":"AAAA,KAAK,sBAAsB,GAAG;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAI,QAAQ,sBAAsB;;;;;;;;;;;;;;;CAgBxD,CAAC"}
|
|
1
|
+
{"version":3,"file":"createRadioGroupTokens.d.ts","sourceRoot":"","sources":["../../src/factories/createRadioGroupTokens.ts"],"names":[],"mappings":"AAAA,KAAK,sBAAsB,GAAG;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,KAAK,YAAY,GAAG;IAClB,QAAQ,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;CAChC,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAI,QAAQ,sBAAsB;;;;;;;;;;;;;;;CAgBxD,CAAC;AAEd,eAAO,MAAM,iCAAiC,GAAI,SAAS,YAAY;;;;;;;;;;;;;;;CAOnE,CAAC"}
|
|
@@ -14,3 +14,10 @@ export const createRadioGroupTokens = (config) => ({
|
|
|
14
14
|
},
|
|
15
15
|
},
|
|
16
16
|
});
|
|
17
|
+
export const createRadioGroupTokensFromSpacing = (spacing) => createRadioGroupTokens({
|
|
18
|
+
spacing1: spacing[1],
|
|
19
|
+
spacing2: spacing[2],
|
|
20
|
+
spacing3: spacing[3],
|
|
21
|
+
spacing4: spacing[4],
|
|
22
|
+
spacing5: spacing[5],
|
|
23
|
+
});
|
|
@@ -27,5 +27,34 @@ export type SwitchTokensConfig = {
|
|
|
27
27
|
errorRing: string;
|
|
28
28
|
disabled: SwitchVisualState;
|
|
29
29
|
};
|
|
30
|
+
type SwitchSemanticState = {
|
|
31
|
+
bg: string;
|
|
32
|
+
border: string;
|
|
33
|
+
fg: string;
|
|
34
|
+
};
|
|
35
|
+
export type SwitchThemeSemantics = {
|
|
36
|
+
control: {
|
|
37
|
+
default: SwitchSemanticState;
|
|
38
|
+
selected: {
|
|
39
|
+
default: SwitchSemanticState;
|
|
40
|
+
hover: SwitchSemanticState;
|
|
41
|
+
active: SwitchSemanticState;
|
|
42
|
+
};
|
|
43
|
+
disabled: SwitchSemanticState;
|
|
44
|
+
};
|
|
45
|
+
focus: {
|
|
46
|
+
ring: {
|
|
47
|
+
color: string;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
status: {
|
|
51
|
+
error: {
|
|
52
|
+
border: string;
|
|
53
|
+
ring: string;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
};
|
|
30
57
|
export declare const createSwitchTokens: (config: SwitchTokensConfig) => SwitchTokensConfig;
|
|
58
|
+
export declare const createSwitchTokensFromSemantics: ({ control, focus, status, }: SwitchThemeSemantics) => SwitchTokensConfig;
|
|
59
|
+
export {};
|
|
31
60
|
//# sourceMappingURL=createSwitchTokens.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createSwitchTokens.d.ts","sourceRoot":"","sources":["../../src/factories/createSwitchTokens.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,iBAAiB,GAAG;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,QAAQ,EAAE,cAAc,CAAC;IACzB,GAAG,EAAE,iBAAiB,CAAC;IACvB,EAAE,EAAE;QACF,OAAO,EAAE,iBAAiB,CAAC;QAC3B,KAAK,EAAE,iBAAiB,CAAC;QACzB,OAAO,EAAE,iBAAiB,CAAC;KAC5B,CAAC;IACF,SAAS,EAAE,MAAM,CAAC;IAClB,WA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,OAAO,EAAE;QACP,OAAO,EAAE,mBAAmB,CAAC;QAC7B,QAAQ,EAAE;YACR,OAAO,EAAE,mBAAmB,CAAC;YAC7B,KAAK,EAAE,mBAAmB,CAAC;YAC3B,MAAM,EAAE,mBAAmB,CAAC;SAC7B,CAAC;QACF,QAAQ,EAAE,mBAAmB,CAAC;KAC/B,CAAC;IACF,KAAK,EAAE;QACL,IAAI,EAAE;YACJ,KAAK,EAAE,MAAM,CAAC;SACf,CAAC;KACH,CAAC;IACF,MAAM,EAAE;QACN,KAAK,EAAE;YACL,MAAM,EAAE,MAAM,CAAC;YACf,IAAI,EAAE,MAAM,CAAC;SACd,CAAC;KACH,CAAC;CACH,CAAC;AAcF,eAAO,MAAM,kBAAkB,GAAI,QAAQ,kBAAkB,uBAAW,CAAC;AAEzE,eAAO,MAAM,+BAA+B,GAAI,6BAI7C,oBAAoB,uBAiCnB,CAAC"}
|
|
@@ -1 +1,45 @@
|
|
|
1
|
+
const switchGeometry = {
|
|
2
|
+
trackWidth: 44,
|
|
3
|
+
trackHeight: 24,
|
|
4
|
+
borderWidth: 2,
|
|
5
|
+
padding: 1,
|
|
6
|
+
thumbSize: 18,
|
|
7
|
+
thumbTravel: 20,
|
|
8
|
+
focusRingWidth: 2,
|
|
9
|
+
focusRingOffset: 2,
|
|
10
|
+
pressScale: 0.98,
|
|
11
|
+
};
|
|
1
12
|
export const createSwitchTokens = (config) => config;
|
|
13
|
+
export const createSwitchTokensFromSemantics = ({ control, focus, status, }) => createSwitchTokens({
|
|
14
|
+
geometry: switchGeometry,
|
|
15
|
+
off: {
|
|
16
|
+
trackBg: control.default.bg,
|
|
17
|
+
trackBorder: control.default.border,
|
|
18
|
+
thumbBg: control.default.fg,
|
|
19
|
+
},
|
|
20
|
+
on: {
|
|
21
|
+
default: {
|
|
22
|
+
trackBg: control.selected.default.bg,
|
|
23
|
+
trackBorder: control.selected.default.border,
|
|
24
|
+
thumbBg: control.selected.default.fg,
|
|
25
|
+
},
|
|
26
|
+
hover: {
|
|
27
|
+
trackBg: control.selected.hover.bg,
|
|
28
|
+
trackBorder: control.selected.hover.border,
|
|
29
|
+
thumbBg: control.selected.hover.fg,
|
|
30
|
+
},
|
|
31
|
+
pressed: {
|
|
32
|
+
trackBg: control.selected.active.bg,
|
|
33
|
+
trackBorder: control.selected.active.border,
|
|
34
|
+
thumbBg: control.selected.active.fg,
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
focusRing: focus.ring.color,
|
|
38
|
+
errorBorder: status.error.border,
|
|
39
|
+
errorRing: status.error.ring,
|
|
40
|
+
disabled: {
|
|
41
|
+
trackBg: control.disabled.bg,
|
|
42
|
+
trackBorder: control.disabled.border,
|
|
43
|
+
thumbBg: control.disabled.fg,
|
|
44
|
+
},
|
|
45
|
+
});
|
|
@@ -52,6 +52,35 @@ export type TooltipTokens = {
|
|
|
52
52
|
content: TooltipContentTokens;
|
|
53
53
|
arrow: TooltipArrowTokens;
|
|
54
54
|
};
|
|
55
|
+
export type TooltipThemeSources = {
|
|
56
|
+
overlay: {
|
|
57
|
+
tooltip: {
|
|
58
|
+
bg: string;
|
|
59
|
+
fg: string;
|
|
60
|
+
border: string;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
shadow: {
|
|
64
|
+
md: string;
|
|
65
|
+
};
|
|
66
|
+
radius: {
|
|
67
|
+
sm: number;
|
|
68
|
+
};
|
|
69
|
+
spacing: {
|
|
70
|
+
readonly [key: number]: number;
|
|
71
|
+
};
|
|
72
|
+
typography: {
|
|
73
|
+
size: {
|
|
74
|
+
sm: number;
|
|
75
|
+
xs: number;
|
|
76
|
+
};
|
|
77
|
+
lineHeight: {
|
|
78
|
+
sm: number;
|
|
79
|
+
xs: number;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
};
|
|
55
83
|
export declare const createTooltipTokens: ({ contentBg, contentFg, contentBorder, contentShadow, contentBorderWidth, contentRadius, contentPaddingX, contentPaddingY, contentMaxWidth, contentCompactMaxWidth, contentCompactPaddingX, contentCompactPaddingY, contentFontSize, contentLineHeight, contentCompactFontSize, contentCompactLineHeight, contentAnimationDuration, contentTranslateY, contentScale, arrowBg, arrowSize, arrowCompactSize, }: TooltipTokensConfig) => TooltipTokens;
|
|
84
|
+
export declare const createTooltipTokensFromTheme: ({ overlay, shadow, radius, spacing, typography, }: TooltipThemeSources) => TooltipTokens;
|
|
56
85
|
export {};
|
|
57
86
|
//# sourceMappingURL=createTooltipTokens.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createTooltipTokens.d.ts","sourceRoot":"","sources":["../../src/factories/createTooltipTokens.ts"],"names":[],"mappings":"AAAA,KAAK,oBAAoB,GAAG;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,KAAK,kBAAkB,GAAG;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,KAAK,mBAAmB,GAAG;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,M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C;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,OAAO,EAAE,oBAAoB,CAAC;IAC9B,KAAK,EAAE,kBAAkB,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,OAAO,EAAE;QACP,OAAO,EAAE;YACP,EAAE,EAAE,MAAM,CAAC;YACX,EAAE,EAAE,MAAM,CAAC;YACX,MAAM,EAAE,MAAM,CAAC;SAChB,CAAC;KACH,CAAC;IACF,MAAM,EAAE;QACN,EAAE,EAAE,MAAM,CAAC;KACZ,CAAC;IACF,MAAM,EAAE;QACN,EAAE,EAAE,MAAM,CAAC;KACZ,CAAC;IACF,OAAO,EAAE;QACP,QAAQ,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;KAChC,CAAC;IACF,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,EAAE,EAAE,MAAM,CAAC;YACX,EAAE,EAAE,MAAM,CAAC;SACZ,CAAC;QACF,UAAU,EAAE;YACV,EAAE,EAAE,MAAM,CAAC;YACX,EAAE,EAAE,MAAM,CAAC;SACZ,CAAC;KACH,CAAC;CACH,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,8YAuBjC,mBAAmB,KAAG,aA6BZ,CAAC;AAEd,eAAO,MAAM,4BAA4B,GAAI,mDAM1C,mBAAmB,kBAelB,CAAC"}
|
|
@@ -26,3 +26,18 @@ export const createTooltipTokens = ({ contentBg, contentFg, contentBorder, conte
|
|
|
26
26
|
compactSize: arrowCompactSize,
|
|
27
27
|
},
|
|
28
28
|
});
|
|
29
|
+
export const createTooltipTokensFromTheme = ({ overlay, shadow, radius, spacing, typography, }) => createTooltipTokens({
|
|
30
|
+
contentBg: overlay.tooltip.bg,
|
|
31
|
+
contentFg: overlay.tooltip.fg,
|
|
32
|
+
contentBorder: overlay.tooltip.border,
|
|
33
|
+
contentShadow: shadow.md,
|
|
34
|
+
contentRadius: radius.sm,
|
|
35
|
+
contentPaddingX: spacing[3],
|
|
36
|
+
contentPaddingY: spacing[2],
|
|
37
|
+
contentCompactPaddingX: spacing[2],
|
|
38
|
+
contentCompactPaddingY: spacing[1],
|
|
39
|
+
contentFontSize: typography.size.sm,
|
|
40
|
+
contentLineHeight: typography.lineHeight.sm,
|
|
41
|
+
contentCompactFontSize: typography.size.xs,
|
|
42
|
+
contentCompactLineHeight: typography.lineHeight.xs,
|
|
43
|
+
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accordion.d.ts","sourceRoot":"","sources":["../../../src/highContrast/components/accordion.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"accordion.d.ts","sourceRoot":"","sources":["../../../src/highContrast/components/accordion.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,eAAe,0EAK1B,CAAC"}
|
|
@@ -1,39 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createAccordionTokensFromSemantics } from '../../factories/createAccordionTokens.js';
|
|
2
2
|
import { border } from '../semantic/border.js';
|
|
3
3
|
import { focus } from '../semantic/focus.js';
|
|
4
4
|
import { surface } from '../semantic/surface.js';
|
|
5
5
|
import { text } from '../semantic/text.js';
|
|
6
|
-
export const accordionTokens =
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
divider: border.muted,
|
|
12
|
-
trigger: {
|
|
13
|
-
default: {
|
|
14
|
-
bg: surface.default,
|
|
15
|
-
fg: text.primary,
|
|
16
|
-
},
|
|
17
|
-
expanded: {
|
|
18
|
-
bg: surface.subtle,
|
|
19
|
-
},
|
|
20
|
-
hover: {
|
|
21
|
-
bg: surface.hover,
|
|
22
|
-
fg: text.primary,
|
|
23
|
-
},
|
|
24
|
-
pressed: {
|
|
25
|
-
bg: surface.pressed,
|
|
26
|
-
fg: text.primary,
|
|
27
|
-
},
|
|
28
|
-
disabled: {
|
|
29
|
-
bg: surface.disabled,
|
|
30
|
-
fg: text.disabled,
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
indicator: text.secondary,
|
|
34
|
-
content: {
|
|
35
|
-
bg: surface.subtle,
|
|
36
|
-
fg: text.secondary,
|
|
37
|
-
},
|
|
38
|
-
focusRing: focus.ring.color,
|
|
6
|
+
export const accordionTokens = createAccordionTokensFromSemantics({
|
|
7
|
+
border,
|
|
8
|
+
focus,
|
|
9
|
+
surface,
|
|
10
|
+
text,
|
|
39
11
|
});
|
|
@@ -1,89 +1,89 @@
|
|
|
1
1
|
export declare const contextMenu: {
|
|
2
2
|
readonly content: {
|
|
3
|
-
readonly bg:
|
|
4
|
-
readonly border:
|
|
5
|
-
readonly shadow:
|
|
3
|
+
readonly bg: string;
|
|
4
|
+
readonly border: string;
|
|
5
|
+
readonly shadow: string;
|
|
6
6
|
};
|
|
7
7
|
readonly item: {
|
|
8
8
|
readonly default: {
|
|
9
|
-
readonly bg:
|
|
10
|
-
readonly fg:
|
|
9
|
+
readonly bg: string;
|
|
10
|
+
readonly fg: string;
|
|
11
11
|
};
|
|
12
12
|
readonly hover: {
|
|
13
|
-
readonly bg:
|
|
14
|
-
readonly fg:
|
|
13
|
+
readonly bg: string;
|
|
14
|
+
readonly fg: string;
|
|
15
15
|
};
|
|
16
16
|
readonly active: {
|
|
17
17
|
readonly ring: "transparent";
|
|
18
|
-
readonly bg:
|
|
19
|
-
readonly fg:
|
|
18
|
+
readonly bg: string;
|
|
19
|
+
readonly fg: string;
|
|
20
20
|
};
|
|
21
21
|
readonly pressed: {
|
|
22
|
-
readonly bg:
|
|
23
|
-
readonly fg:
|
|
22
|
+
readonly bg: string;
|
|
23
|
+
readonly fg: string;
|
|
24
24
|
};
|
|
25
25
|
readonly focus: {
|
|
26
26
|
readonly ring: {
|
|
27
|
-
readonly color:
|
|
28
|
-
readonly width:
|
|
29
|
-
readonly shadow:
|
|
30
|
-
readonly offset:
|
|
27
|
+
readonly color: string;
|
|
28
|
+
readonly width: string;
|
|
29
|
+
readonly shadow: string;
|
|
30
|
+
readonly offset: string;
|
|
31
31
|
};
|
|
32
32
|
};
|
|
33
33
|
readonly disabled: {
|
|
34
|
-
readonly bg:
|
|
35
|
-
readonly fg:
|
|
34
|
+
readonly bg: string;
|
|
35
|
+
readonly fg: string;
|
|
36
36
|
};
|
|
37
37
|
readonly danger: {
|
|
38
38
|
readonly default: {
|
|
39
|
-
readonly bg:
|
|
40
|
-
readonly fg:
|
|
39
|
+
readonly bg: string;
|
|
40
|
+
readonly fg: string;
|
|
41
41
|
};
|
|
42
42
|
readonly hover: {
|
|
43
|
-
readonly bg:
|
|
44
|
-
readonly fg:
|
|
43
|
+
readonly bg: string;
|
|
44
|
+
readonly fg: string;
|
|
45
45
|
};
|
|
46
46
|
readonly active: {
|
|
47
|
-
readonly bg:
|
|
48
|
-
readonly fg:
|
|
47
|
+
readonly bg: string;
|
|
48
|
+
readonly fg: string;
|
|
49
49
|
};
|
|
50
50
|
readonly disabled: {
|
|
51
|
-
readonly bg:
|
|
52
|
-
readonly fg:
|
|
51
|
+
readonly bg: string;
|
|
52
|
+
readonly fg: string;
|
|
53
53
|
};
|
|
54
54
|
};
|
|
55
55
|
};
|
|
56
56
|
readonly trigger: {
|
|
57
57
|
readonly default: {
|
|
58
58
|
readonly bg: "transparent";
|
|
59
|
-
readonly fg:
|
|
59
|
+
readonly fg: string;
|
|
60
60
|
readonly border: "transparent";
|
|
61
61
|
};
|
|
62
62
|
readonly hover: {
|
|
63
|
-
readonly bg:
|
|
64
|
-
readonly fg:
|
|
63
|
+
readonly bg: string;
|
|
64
|
+
readonly fg: string;
|
|
65
65
|
readonly border: "transparent";
|
|
66
66
|
readonly ring: "transparent";
|
|
67
67
|
};
|
|
68
68
|
readonly focus: {
|
|
69
69
|
readonly bg: "transparent";
|
|
70
|
-
readonly fg:
|
|
70
|
+
readonly fg: string;
|
|
71
71
|
readonly border: "transparent";
|
|
72
72
|
readonly ring: {
|
|
73
|
-
readonly color:
|
|
74
|
-
readonly width:
|
|
75
|
-
readonly shadow:
|
|
76
|
-
readonly offset:
|
|
73
|
+
readonly color: string;
|
|
74
|
+
readonly width: string;
|
|
75
|
+
readonly shadow: string;
|
|
76
|
+
readonly offset: string;
|
|
77
77
|
};
|
|
78
78
|
};
|
|
79
79
|
readonly disabled: {
|
|
80
80
|
readonly bg: "transparent";
|
|
81
|
-
readonly fg:
|
|
81
|
+
readonly fg: string;
|
|
82
82
|
readonly border: "transparent";
|
|
83
83
|
};
|
|
84
84
|
};
|
|
85
85
|
readonly groupLabel: {
|
|
86
|
-
readonly fg:
|
|
86
|
+
readonly fg: string;
|
|
87
87
|
};
|
|
88
88
|
};
|
|
89
89
|
//# sourceMappingURL=contextMenu.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contextMenu.d.ts","sourceRoot":"","sources":["../../../src/highContrast/components/contextMenu.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"contextMenu.d.ts","sourceRoot":"","sources":["../../../src/highContrast/components/contextMenu.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKtB,CAAC"}
|
|
@@ -1,52 +1,11 @@
|
|
|
1
|
+
import { createContextMenuTokensFromSemantics } from '../../factories/createContextMenuTokens.js';
|
|
1
2
|
import { focus } from '../semantic/focus.js';
|
|
2
|
-
import { menu
|
|
3
|
+
import { menu } from '../semantic/menu.js';
|
|
3
4
|
import { shadow } from '../semantic/shadow.js';
|
|
4
5
|
import { text } from '../semantic/text.js';
|
|
5
|
-
export const contextMenu = {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
item: {
|
|
12
|
-
default: semanticMenu.item.default,
|
|
13
|
-
hover: semanticMenu.item.hover,
|
|
14
|
-
active: {
|
|
15
|
-
...semanticMenu.item.active,
|
|
16
|
-
ring: 'transparent',
|
|
17
|
-
},
|
|
18
|
-
pressed: semanticMenu.item.pressed,
|
|
19
|
-
focus: {
|
|
20
|
-
ring: focus.ring,
|
|
21
|
-
},
|
|
22
|
-
disabled: semanticMenu.item.disabled,
|
|
23
|
-
danger: semanticMenu.item.danger,
|
|
24
|
-
},
|
|
25
|
-
trigger: {
|
|
26
|
-
default: {
|
|
27
|
-
bg: 'transparent',
|
|
28
|
-
fg: text.interactive,
|
|
29
|
-
border: 'transparent',
|
|
30
|
-
},
|
|
31
|
-
hover: {
|
|
32
|
-
bg: semanticMenu.item.hover.bg,
|
|
33
|
-
fg: text.interactiveHover,
|
|
34
|
-
border: 'transparent',
|
|
35
|
-
ring: 'transparent',
|
|
36
|
-
},
|
|
37
|
-
focus: {
|
|
38
|
-
bg: 'transparent',
|
|
39
|
-
fg: text.interactive,
|
|
40
|
-
border: 'transparent',
|
|
41
|
-
ring: focus.ring,
|
|
42
|
-
},
|
|
43
|
-
disabled: {
|
|
44
|
-
bg: 'transparent',
|
|
45
|
-
fg: text.disabled,
|
|
46
|
-
border: 'transparent',
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
groupLabel: {
|
|
50
|
-
fg: text.secondary,
|
|
51
|
-
},
|
|
52
|
-
};
|
|
6
|
+
export const contextMenu = createContextMenuTokensFromSemantics({
|
|
7
|
+
focus,
|
|
8
|
+
menu,
|
|
9
|
+
shadow,
|
|
10
|
+
text,
|
|
11
|
+
});
|