@vellira-ui/tokens 2.40.0 → 2.41.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 +51 -0
- package/dist/dark/components/tooltip.d.ts +1 -11
- package/dist/dark/components/tooltip.d.ts.map +1 -1
- package/dist/dark/components/tooltip.js +19 -11
- package/dist/factories/createTooltipTokens.d.ts +57 -0
- package/dist/factories/createTooltipTokens.d.ts.map +1 -0
- package/dist/factories/createTooltipTokens.js +28 -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 +68 -0
- package/dist/highContrast/components/tooltip.d.ts +1 -11
- package/dist/highContrast/components/tooltip.d.ts.map +1 -1
- package/dist/highContrast/components/tooltip.js +19 -11
- package/dist/light/components/tooltip.d.ts +1 -11
- package/dist/light/components/tooltip.d.ts.map +1 -1
- package/dist/light/components/tooltip.js +19 -11
- package/package.json +1 -1
package/dist/css/tokens.css
CHANGED
|
@@ -2239,7 +2239,24 @@
|
|
|
2239
2239
|
--tooltip-content-fg: #FFFFFF;
|
|
2240
2240
|
--tooltip-content-border: #181521;
|
|
2241
2241
|
--tooltip-content-shadow: 0 4px 12px rgba(24, 21, 33, 0.12);
|
|
2242
|
+
--tooltip-content-border-width: 1px;
|
|
2243
|
+
--tooltip-content-radius: 8px;
|
|
2244
|
+
--tooltip-content-padding-x: 12px;
|
|
2245
|
+
--tooltip-content-padding-y: 8px;
|
|
2246
|
+
--tooltip-content-max-width: 240px;
|
|
2247
|
+
--tooltip-content-compact-max-width: 200px;
|
|
2248
|
+
--tooltip-content-compact-padding-x: 8px;
|
|
2249
|
+
--tooltip-content-compact-padding-y: 4px;
|
|
2250
|
+
--tooltip-content-font-size: 14px;
|
|
2251
|
+
--tooltip-content-line-height: 20px;
|
|
2252
|
+
--tooltip-content-compact-font-size: 12px;
|
|
2253
|
+
--tooltip-content-compact-line-height: 16px;
|
|
2254
|
+
--tooltip-content-animation-duration: 150ms;
|
|
2255
|
+
--tooltip-content-translate-y: 2px;
|
|
2256
|
+
--tooltip-content-scale: 0.98px;
|
|
2242
2257
|
--tooltip-arrow-bg: #181521;
|
|
2258
|
+
--tooltip-arrow-size: 10px;
|
|
2259
|
+
--tooltip-arrow-compact-size: 6px;
|
|
2243
2260
|
}
|
|
2244
2261
|
|
|
2245
2262
|
[data-theme='dark'],
|
|
@@ -4427,7 +4444,24 @@
|
|
|
4427
4444
|
--tooltip-content-fg: #000000;
|
|
4428
4445
|
--tooltip-content-border: #2F2A42;
|
|
4429
4446
|
--tooltip-content-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
|
|
4447
|
+
--tooltip-content-border-width: 1px;
|
|
4448
|
+
--tooltip-content-radius: 8px;
|
|
4449
|
+
--tooltip-content-padding-x: 12px;
|
|
4450
|
+
--tooltip-content-padding-y: 8px;
|
|
4451
|
+
--tooltip-content-max-width: 240px;
|
|
4452
|
+
--tooltip-content-compact-max-width: 200px;
|
|
4453
|
+
--tooltip-content-compact-padding-x: 8px;
|
|
4454
|
+
--tooltip-content-compact-padding-y: 4px;
|
|
4455
|
+
--tooltip-content-font-size: 14px;
|
|
4456
|
+
--tooltip-content-line-height: 20px;
|
|
4457
|
+
--tooltip-content-compact-font-size: 12px;
|
|
4458
|
+
--tooltip-content-compact-line-height: 16px;
|
|
4459
|
+
--tooltip-content-animation-duration: 150ms;
|
|
4460
|
+
--tooltip-content-translate-y: 2px;
|
|
4461
|
+
--tooltip-content-scale: 0.98px;
|
|
4430
4462
|
--tooltip-arrow-bg: #FFFFFF;
|
|
4463
|
+
--tooltip-arrow-size: 10px;
|
|
4464
|
+
--tooltip-arrow-compact-size: 6px;
|
|
4431
4465
|
}
|
|
4432
4466
|
|
|
4433
4467
|
[data-theme='high-contrast'],
|
|
@@ -6626,5 +6660,22 @@
|
|
|
6626
6660
|
--tooltip-content-fg: #000000;
|
|
6627
6661
|
--tooltip-content-border: #FCD34D;
|
|
6628
6662
|
--tooltip-content-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
|
|
6663
|
+
--tooltip-content-border-width: 1px;
|
|
6664
|
+
--tooltip-content-radius: 8px;
|
|
6665
|
+
--tooltip-content-padding-x: 12px;
|
|
6666
|
+
--tooltip-content-padding-y: 8px;
|
|
6667
|
+
--tooltip-content-max-width: 240px;
|
|
6668
|
+
--tooltip-content-compact-max-width: 200px;
|
|
6669
|
+
--tooltip-content-compact-padding-x: 8px;
|
|
6670
|
+
--tooltip-content-compact-padding-y: 4px;
|
|
6671
|
+
--tooltip-content-font-size: 14px;
|
|
6672
|
+
--tooltip-content-line-height: 20px;
|
|
6673
|
+
--tooltip-content-compact-font-size: 12px;
|
|
6674
|
+
--tooltip-content-compact-line-height: 16px;
|
|
6675
|
+
--tooltip-content-animation-duration: 150ms;
|
|
6676
|
+
--tooltip-content-translate-y: 2px;
|
|
6677
|
+
--tooltip-content-scale: 0.98px;
|
|
6629
6678
|
--tooltip-arrow-bg: #FFFFFF;
|
|
6679
|
+
--tooltip-arrow-size: 10px;
|
|
6680
|
+
--tooltip-arrow-compact-size: 6px;
|
|
6630
6681
|
}
|
|
@@ -1,12 +1,2 @@
|
|
|
1
|
-
export declare const tooltip:
|
|
2
|
-
readonly content: {
|
|
3
|
-
readonly bg: "#FFFFFF";
|
|
4
|
-
readonly fg: "#000000";
|
|
5
|
-
readonly border: "#2F2A42";
|
|
6
|
-
readonly shadow: "0 4px 12px rgba(0, 0, 0, 0.22)";
|
|
7
|
-
};
|
|
8
|
-
readonly arrow: {
|
|
9
|
-
readonly bg: "#FFFFFF";
|
|
10
|
-
};
|
|
11
|
-
};
|
|
1
|
+
export declare const tooltip: import("../../factories/createTooltipTokens.js").TooltipTokens;
|
|
12
2
|
//# sourceMappingURL=tooltip.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../src/dark/components/tooltip.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../src/dark/components/tooltip.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,OAAO,gEAclB,CAAC"}
|
|
@@ -1,13 +1,21 @@
|
|
|
1
|
+
import { createTooltipTokens } from '../../factories/createTooltipTokens.js';
|
|
2
|
+
import { radius } from '../../tokens/radius.js';
|
|
3
|
+
import { spacing } from '../../tokens/spacing.js';
|
|
4
|
+
import { typography } from '../../tokens/typography.js';
|
|
1
5
|
import { overlay } from '../semantic/overlay.js';
|
|
2
6
|
import { shadow } from '../semantic/shadow.js';
|
|
3
|
-
export const tooltip = {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
7
|
+
export const tooltip = createTooltipTokens({
|
|
8
|
+
contentBg: overlay.tooltip.bg,
|
|
9
|
+
contentFg: overlay.tooltip.fg,
|
|
10
|
+
contentBorder: overlay.tooltip.border,
|
|
11
|
+
contentShadow: shadow.md,
|
|
12
|
+
contentRadius: radius.sm,
|
|
13
|
+
contentPaddingX: spacing[3],
|
|
14
|
+
contentPaddingY: spacing[2],
|
|
15
|
+
contentCompactPaddingX: spacing[2],
|
|
16
|
+
contentCompactPaddingY: spacing[1],
|
|
17
|
+
contentFontSize: typography.size.sm,
|
|
18
|
+
contentLineHeight: typography.lineHeight.sm,
|
|
19
|
+
contentCompactFontSize: typography.size.xs,
|
|
20
|
+
contentCompactLineHeight: typography.lineHeight.xs,
|
|
21
|
+
});
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
type TooltipContentTokens = {
|
|
2
|
+
bg: string;
|
|
3
|
+
fg: string;
|
|
4
|
+
border: string;
|
|
5
|
+
shadow: string;
|
|
6
|
+
borderWidth: number;
|
|
7
|
+
radius: number;
|
|
8
|
+
paddingX: number;
|
|
9
|
+
paddingY: number;
|
|
10
|
+
maxWidth: number;
|
|
11
|
+
compactMaxWidth: number;
|
|
12
|
+
compactPaddingX: number;
|
|
13
|
+
compactPaddingY: number;
|
|
14
|
+
fontSize: number;
|
|
15
|
+
lineHeight: number;
|
|
16
|
+
compactFontSize: number;
|
|
17
|
+
compactLineHeight: number;
|
|
18
|
+
animationDuration: string;
|
|
19
|
+
translateY: number;
|
|
20
|
+
scale: number;
|
|
21
|
+
};
|
|
22
|
+
type TooltipArrowTokens = {
|
|
23
|
+
bg: string;
|
|
24
|
+
size: number;
|
|
25
|
+
compactSize: number;
|
|
26
|
+
};
|
|
27
|
+
type TooltipTokensConfig = {
|
|
28
|
+
contentBg: string;
|
|
29
|
+
contentFg: string;
|
|
30
|
+
contentBorder: string;
|
|
31
|
+
contentShadow: string;
|
|
32
|
+
contentBorderWidth?: number;
|
|
33
|
+
contentRadius: number;
|
|
34
|
+
contentPaddingX: number;
|
|
35
|
+
contentPaddingY: number;
|
|
36
|
+
contentMaxWidth?: number;
|
|
37
|
+
contentCompactMaxWidth?: number;
|
|
38
|
+
contentCompactPaddingX: number;
|
|
39
|
+
contentCompactPaddingY: number;
|
|
40
|
+
contentFontSize: number;
|
|
41
|
+
contentLineHeight: number;
|
|
42
|
+
contentCompactFontSize: number;
|
|
43
|
+
contentCompactLineHeight: number;
|
|
44
|
+
contentAnimationDuration?: string;
|
|
45
|
+
contentTranslateY?: number;
|
|
46
|
+
contentScale?: number;
|
|
47
|
+
arrowBg?: string;
|
|
48
|
+
arrowSize?: number;
|
|
49
|
+
arrowCompactSize?: number;
|
|
50
|
+
};
|
|
51
|
+
export type TooltipTokens = {
|
|
52
|
+
content: TooltipContentTokens;
|
|
53
|
+
arrow: TooltipArrowTokens;
|
|
54
|
+
};
|
|
55
|
+
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;
|
|
56
|
+
export {};
|
|
57
|
+
//# sourceMappingURL=createTooltipTokens.d.ts.map
|
|
@@ -0,0 +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,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,sBAAsB,EAAE,MAAM,CAAC;IAC/B,sBAAsB,EAAE,MAAM,CAAC;IAC/B,eAAe,EAAE,MAAM,CAAC;IACxB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,sBAAsB,EAAE,MAAM,CAAC;IAC/B,wBAAwB,EAAE,MAAM,CAAC;IACjC,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;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,eAAO,MAAM,mBAAmB,GAAI,8YAuBjC,mBAAmB,KAAG,aA6BZ,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export const createTooltipTokens = ({ contentBg, contentFg, contentBorder, contentShadow, contentBorderWidth = 1, contentRadius, contentPaddingX, contentPaddingY, contentMaxWidth = 240, contentCompactMaxWidth = 200, contentCompactPaddingX, contentCompactPaddingY, contentFontSize, contentLineHeight, contentCompactFontSize, contentCompactLineHeight, contentAnimationDuration = '150ms', contentTranslateY = 2, contentScale = 0.98, arrowBg = contentBg, arrowSize = 10, arrowCompactSize = 6, }) => ({
|
|
2
|
+
content: {
|
|
3
|
+
bg: contentBg,
|
|
4
|
+
fg: contentFg,
|
|
5
|
+
border: contentBorder,
|
|
6
|
+
shadow: contentShadow,
|
|
7
|
+
borderWidth: contentBorderWidth,
|
|
8
|
+
radius: contentRadius,
|
|
9
|
+
paddingX: contentPaddingX,
|
|
10
|
+
paddingY: contentPaddingY,
|
|
11
|
+
maxWidth: contentMaxWidth,
|
|
12
|
+
compactMaxWidth: contentCompactMaxWidth,
|
|
13
|
+
compactPaddingX: contentCompactPaddingX,
|
|
14
|
+
compactPaddingY: contentCompactPaddingY,
|
|
15
|
+
fontSize: contentFontSize,
|
|
16
|
+
lineHeight: contentLineHeight,
|
|
17
|
+
compactFontSize: contentCompactFontSize,
|
|
18
|
+
compactLineHeight: contentCompactLineHeight,
|
|
19
|
+
animationDuration: contentAnimationDuration,
|
|
20
|
+
translateY: contentTranslateY,
|
|
21
|
+
scale: contentScale,
|
|
22
|
+
},
|
|
23
|
+
arrow: {
|
|
24
|
+
bg: arrowBg,
|
|
25
|
+
size: arrowSize,
|
|
26
|
+
compactSize: arrowCompactSize,
|
|
27
|
+
},
|
|
28
|
+
});
|
|
@@ -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,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,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,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC"}
|
package/dist/factories/index.js
CHANGED