@vellira-ui/tokens 2.25.1 → 2.26.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.
Files changed (247) hide show
  1. package/dist/css/tokens.css +1217 -870
  2. package/dist/dark/components/button.d.ts +53 -53
  3. package/dist/dark/components/button.d.ts.map +1 -1
  4. package/dist/dark/components/button.js +58 -60
  5. package/dist/dark/components/checkbox.d.ts +17 -13
  6. package/dist/dark/components/checkbox.d.ts.map +1 -1
  7. package/dist/dark/components/checkbox.js +21 -10
  8. package/dist/dark/components/contextMenu.d.ts +89 -0
  9. package/dist/dark/components/contextMenu.d.ts.map +1 -0
  10. package/dist/dark/components/contextMenu.js +52 -0
  11. package/dist/dark/components/dropdown.d.ts +33 -13
  12. package/dist/dark/components/dropdown.d.ts.map +1 -1
  13. package/dist/dark/components/dropdown.js +30 -27
  14. package/dist/dark/components/formField.d.ts +2 -2
  15. package/dist/dark/components/formField.js +1 -1
  16. package/dist/dark/components/index.d.ts +1 -1
  17. package/dist/dark/components/index.d.ts.map +1 -1
  18. package/dist/dark/components/index.js +1 -1
  19. package/dist/dark/components/input.d.ts +26 -26
  20. package/dist/dark/components/input.js +11 -11
  21. package/dist/dark/components/modal.d.ts +21 -4
  22. package/dist/dark/components/modal.d.ts.map +1 -1
  23. package/dist/dark/components/modal.js +18 -4
  24. package/dist/dark/components/radio.d.ts +24 -19
  25. package/dist/dark/components/radio.d.ts.map +1 -1
  26. package/dist/dark/components/radio.js +19 -19
  27. package/dist/dark/components/select.d.ts +24 -14
  28. package/dist/dark/components/select.d.ts.map +1 -1
  29. package/dist/dark/components/select.js +31 -24
  30. package/dist/dark/components/tabs.d.ts +17 -12
  31. package/dist/dark/components/tabs.d.ts.map +1 -1
  32. package/dist/dark/components/tabs.js +9 -8
  33. package/dist/dark/components/tooltip.d.ts +2 -1
  34. package/dist/dark/components/tooltip.d.ts.map +1 -1
  35. package/dist/dark/components/tooltip.js +7 -7
  36. package/dist/dark/semantic/action.d.ts +30 -30
  37. package/dist/dark/semantic/action.d.ts.map +1 -1
  38. package/dist/dark/semantic/action.js +45 -45
  39. package/dist/dark/semantic/border.d.ts +5 -5
  40. package/dist/dark/semantic/border.d.ts.map +1 -1
  41. package/dist/dark/semantic/border.js +5 -5
  42. package/dist/dark/semantic/control.d.ts +21 -16
  43. package/dist/dark/semantic/control.d.ts.map +1 -1
  44. package/dist/dark/semantic/control.js +24 -19
  45. package/dist/dark/semantic/divider.d.ts +3 -3
  46. package/dist/dark/semantic/divider.js +3 -3
  47. package/dist/dark/semantic/focus.d.ts +6 -2
  48. package/dist/dark/semantic/focus.d.ts.map +1 -1
  49. package/dist/dark/semantic/focus.js +6 -2
  50. package/dist/dark/semantic/icons.d.ts +10 -11
  51. package/dist/dark/semantic/icons.d.ts.map +1 -1
  52. package/dist/dark/semantic/icons.js +10 -11
  53. package/dist/dark/semantic/index.d.ts +3 -0
  54. package/dist/dark/semantic/index.d.ts.map +1 -1
  55. package/dist/dark/semantic/index.js +3 -0
  56. package/dist/dark/{components → semantic}/menu.d.ts +14 -19
  57. package/dist/dark/semantic/menu.d.ts.map +1 -0
  58. package/dist/dark/semantic/menu.js +47 -0
  59. package/dist/dark/semantic/navigation.d.ts +8 -8
  60. package/dist/dark/semantic/navigation.d.ts.map +1 -1
  61. package/dist/dark/semantic/navigation.js +5 -4
  62. package/dist/dark/semantic/overlay.d.ts +17 -0
  63. package/dist/dark/semantic/overlay.d.ts.map +1 -0
  64. package/dist/dark/semantic/overlay.js +19 -0
  65. package/dist/dark/semantic/shadow.d.ts +8 -0
  66. package/dist/dark/semantic/shadow.d.ts.map +1 -0
  67. package/dist/dark/semantic/shadow.js +7 -0
  68. package/dist/dark/semantic/skeleton.d.ts +2 -2
  69. package/dist/dark/semantic/skeleton.js +2 -2
  70. package/dist/dark/semantic/status.d.ts +12 -8
  71. package/dist/dark/semantic/status.d.ts.map +1 -1
  72. package/dist/dark/semantic/status.js +12 -8
  73. package/dist/dark/semantic/surface.d.ts +4 -4
  74. package/dist/dark/semantic/surface.d.ts.map +1 -1
  75. package/dist/dark/semantic/surface.js +4 -4
  76. package/dist/dark/semantic/text.d.ts +6 -5
  77. package/dist/dark/semantic/text.d.ts.map +1 -1
  78. package/dist/dark/semantic/text.js +6 -5
  79. package/dist/generated/token-types.d.ts +5 -5
  80. package/dist/generated/token-types.d.ts.map +1 -1
  81. package/dist/generated/token-types.js +565 -132
  82. package/dist/highContrast/components/button.d.ts +70 -70
  83. package/dist/highContrast/components/button.d.ts.map +1 -1
  84. package/dist/highContrast/components/button.js +68 -69
  85. package/dist/highContrast/components/checkbox.d.ts +19 -15
  86. package/dist/highContrast/components/checkbox.d.ts.map +1 -1
  87. package/dist/highContrast/components/checkbox.js +22 -12
  88. package/dist/highContrast/components/contextMenu.d.ts +89 -0
  89. package/dist/highContrast/components/contextMenu.d.ts.map +1 -0
  90. package/dist/highContrast/components/contextMenu.js +52 -0
  91. package/dist/highContrast/components/dropdown.d.ts +45 -25
  92. package/dist/highContrast/components/dropdown.d.ts.map +1 -1
  93. package/dist/highContrast/components/dropdown.js +28 -37
  94. package/dist/highContrast/components/formField.d.ts +5 -5
  95. package/dist/highContrast/components/formField.js +2 -2
  96. package/dist/highContrast/components/index.d.ts +1 -1
  97. package/dist/highContrast/components/index.d.ts.map +1 -1
  98. package/dist/highContrast/components/index.js +1 -1
  99. package/dist/highContrast/components/input.d.ts +29 -29
  100. package/dist/highContrast/components/input.d.ts.map +1 -1
  101. package/dist/highContrast/components/input.js +16 -17
  102. package/dist/highContrast/components/modal.d.ts +22 -5
  103. package/dist/highContrast/components/modal.d.ts.map +1 -1
  104. package/dist/highContrast/components/modal.js +19 -6
  105. package/dist/highContrast/components/radio.d.ts +27 -22
  106. package/dist/highContrast/components/radio.d.ts.map +1 -1
  107. package/dist/highContrast/components/radio.js +20 -20
  108. package/dist/highContrast/components/select.d.ts +27 -17
  109. package/dist/highContrast/components/select.d.ts.map +1 -1
  110. package/dist/highContrast/components/select.js +31 -30
  111. package/dist/highContrast/components/tabs.d.ts +21 -16
  112. package/dist/highContrast/components/tabs.d.ts.map +1 -1
  113. package/dist/highContrast/components/tabs.js +18 -15
  114. package/dist/highContrast/components/tooltip.d.ts +3 -2
  115. package/dist/highContrast/components/tooltip.d.ts.map +1 -1
  116. package/dist/highContrast/components/tooltip.js +7 -7
  117. package/dist/highContrast/semantic/action.d.ts +48 -38
  118. package/dist/highContrast/semantic/action.d.ts.map +1 -1
  119. package/dist/highContrast/semantic/action.js +58 -49
  120. package/dist/highContrast/semantic/border.d.ts +4 -4
  121. package/dist/highContrast/semantic/border.d.ts.map +1 -1
  122. package/dist/highContrast/semantic/border.js +4 -4
  123. package/dist/highContrast/semantic/control.d.ts +23 -28
  124. package/dist/highContrast/semantic/control.d.ts.map +1 -1
  125. package/dist/highContrast/semantic/control.js +24 -29
  126. package/dist/highContrast/semantic/divider.d.ts +2 -2
  127. package/dist/highContrast/semantic/divider.js +2 -2
  128. package/dist/highContrast/semantic/focus.d.ts +6 -2
  129. package/dist/highContrast/semantic/focus.d.ts.map +1 -1
  130. package/dist/highContrast/semantic/focus.js +6 -2
  131. package/dist/highContrast/semantic/icons.d.ts +10 -11
  132. package/dist/highContrast/semantic/icons.d.ts.map +1 -1
  133. package/dist/highContrast/semantic/icons.js +11 -12
  134. package/dist/highContrast/semantic/index.d.ts +4 -0
  135. package/dist/highContrast/semantic/index.d.ts.map +1 -1
  136. package/dist/highContrast/semantic/index.js +4 -0
  137. package/dist/highContrast/{components → semantic}/menu.d.ts +20 -25
  138. package/dist/highContrast/semantic/menu.d.ts.map +1 -0
  139. package/dist/highContrast/semantic/menu.js +47 -0
  140. package/dist/highContrast/semantic/navigation.d.ts +14 -25
  141. package/dist/highContrast/semantic/navigation.d.ts.map +1 -1
  142. package/dist/highContrast/semantic/navigation.js +12 -23
  143. package/dist/highContrast/semantic/overlay.d.ts +17 -0
  144. package/dist/highContrast/semantic/overlay.d.ts.map +1 -0
  145. package/dist/highContrast/semantic/overlay.js +19 -0
  146. package/dist/highContrast/semantic/shadow.d.ts +8 -0
  147. package/dist/highContrast/semantic/shadow.d.ts.map +1 -0
  148. package/dist/highContrast/semantic/shadow.js +7 -0
  149. package/dist/highContrast/semantic/skeleton.d.ts +1 -1
  150. package/dist/highContrast/semantic/skeleton.js +1 -1
  151. package/dist/highContrast/semantic/status.d.ts +17 -13
  152. package/dist/highContrast/semantic/status.d.ts.map +1 -1
  153. package/dist/highContrast/semantic/status.js +17 -13
  154. package/dist/highContrast/semantic/surface.d.ts +6 -6
  155. package/dist/highContrast/semantic/surface.d.ts.map +1 -1
  156. package/dist/highContrast/semantic/surface.js +7 -7
  157. package/dist/highContrast/semantic/text.d.ts +7 -6
  158. package/dist/highContrast/semantic/text.d.ts.map +1 -1
  159. package/dist/highContrast/semantic/text.js +7 -6
  160. package/dist/light/components/button.d.ts +49 -49
  161. package/dist/light/components/button.d.ts.map +1 -1
  162. package/dist/light/components/button.js +62 -64
  163. package/dist/light/components/checkbox.d.ts +18 -14
  164. package/dist/light/components/checkbox.d.ts.map +1 -1
  165. package/dist/light/components/checkbox.js +16 -12
  166. package/dist/light/components/contextMenu.d.ts +89 -0
  167. package/dist/light/components/contextMenu.d.ts.map +1 -0
  168. package/dist/light/components/contextMenu.js +52 -0
  169. package/dist/light/components/dropdown.d.ts +38 -18
  170. package/dist/light/components/dropdown.d.ts.map +1 -1
  171. package/dist/light/components/dropdown.js +21 -31
  172. package/dist/light/components/formField.d.ts +7 -7
  173. package/dist/light/components/formField.js +1 -1
  174. package/dist/light/components/index.d.ts +1 -1
  175. package/dist/light/components/index.d.ts.map +1 -1
  176. package/dist/light/components/index.js +1 -1
  177. package/dist/light/components/input.d.ts +31 -31
  178. package/dist/light/components/input.d.ts.map +1 -1
  179. package/dist/light/components/input.js +14 -15
  180. package/dist/light/components/modal.d.ts +25 -8
  181. package/dist/light/components/modal.d.ts.map +1 -1
  182. package/dist/light/components/modal.js +19 -6
  183. package/dist/light/components/radio.d.ts +23 -18
  184. package/dist/light/components/radio.d.ts.map +1 -1
  185. package/dist/light/components/radio.js +21 -21
  186. package/dist/light/components/select.d.ts +28 -18
  187. package/dist/light/components/select.d.ts.map +1 -1
  188. package/dist/light/components/select.js +31 -26
  189. package/dist/light/components/tabs.d.ts +20 -15
  190. package/dist/light/components/tabs.d.ts.map +1 -1
  191. package/dist/light/components/tabs.js +14 -13
  192. package/dist/light/components/tooltip.d.ts +3 -2
  193. package/dist/light/components/tooltip.d.ts.map +1 -1
  194. package/dist/light/components/tooltip.js +7 -7
  195. package/dist/light/semantic/action.d.ts +30 -28
  196. package/dist/light/semantic/action.d.ts.map +1 -1
  197. package/dist/light/semantic/action.js +38 -36
  198. package/dist/light/semantic/border.d.ts +4 -4
  199. package/dist/light/semantic/border.d.ts.map +1 -1
  200. package/dist/light/semantic/border.js +4 -4
  201. package/dist/light/semantic/control.d.ts +18 -13
  202. package/dist/light/semantic/control.d.ts.map +1 -1
  203. package/dist/light/semantic/control.js +18 -13
  204. package/dist/light/semantic/divider.d.ts +3 -3
  205. package/dist/light/semantic/divider.js +3 -3
  206. package/dist/light/semantic/focus.d.ts +6 -2
  207. package/dist/light/semantic/focus.d.ts.map +1 -1
  208. package/dist/light/semantic/focus.js +6 -2
  209. package/dist/light/semantic/icons.d.ts +10 -11
  210. package/dist/light/semantic/icons.d.ts.map +1 -1
  211. package/dist/light/semantic/icons.js +10 -11
  212. package/dist/light/semantic/index.d.ts +3 -0
  213. package/dist/light/semantic/index.d.ts.map +1 -1
  214. package/dist/light/semantic/index.js +3 -0
  215. package/dist/light/{components → semantic}/menu.d.ts +17 -22
  216. package/dist/light/semantic/menu.d.ts.map +1 -0
  217. package/dist/light/semantic/menu.js +47 -0
  218. package/dist/light/semantic/navigation.d.ts +13 -9
  219. package/dist/light/semantic/navigation.d.ts.map +1 -1
  220. package/dist/light/semantic/navigation.js +15 -9
  221. package/dist/light/semantic/overlay.d.ts +17 -0
  222. package/dist/light/semantic/overlay.d.ts.map +1 -0
  223. package/dist/light/semantic/overlay.js +19 -0
  224. package/dist/light/semantic/shadow.d.ts +8 -0
  225. package/dist/light/semantic/shadow.d.ts.map +1 -0
  226. package/dist/light/semantic/shadow.js +7 -0
  227. package/dist/light/semantic/skeleton.d.ts +2 -2
  228. package/dist/light/semantic/skeleton.js +2 -2
  229. package/dist/light/semantic/status.d.ts +14 -10
  230. package/dist/light/semantic/status.d.ts.map +1 -1
  231. package/dist/light/semantic/status.js +14 -10
  232. package/dist/light/semantic/surface.d.ts +6 -6
  233. package/dist/light/semantic/surface.d.ts.map +1 -1
  234. package/dist/light/semantic/surface.js +7 -7
  235. package/dist/light/semantic/text.d.ts +7 -5
  236. package/dist/light/semantic/text.d.ts.map +1 -1
  237. package/dist/light/semantic/text.js +7 -5
  238. package/dist/primitives/colors.d.ts +3 -5
  239. package/dist/primitives/colors.d.ts.map +1 -1
  240. package/dist/primitives/colors.js +3 -5
  241. package/package.json +1 -1
  242. package/dist/dark/components/menu.d.ts.map +0 -1
  243. package/dist/dark/components/menu.js +0 -47
  244. package/dist/highContrast/components/menu.d.ts.map +0 -1
  245. package/dist/highContrast/components/menu.js +0 -48
  246. package/dist/light/components/menu.d.ts.map +0 -1
  247. package/dist/light/components/menu.js +0 -48
@@ -0,0 +1,52 @@
1
+ import { focus } from '../semantic/focus.js';
2
+ import { menu as semanticMenu } from '../semantic/menu.js';
3
+ import { shadow } from '../semantic/shadow.js';
4
+ import { text } from '../semantic/text.js';
5
+ export const contextMenu = {
6
+ content: {
7
+ bg: semanticMenu.background,
8
+ border: semanticMenu.border,
9
+ shadow: shadow.lg,
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,8 +6,8 @@ export declare const dropdown: {
6
6
  readonly border: "transparent";
7
7
  };
8
8
  readonly hover: {
9
- readonly bg: "#3D3754";
10
- readonly fg: "#D4CCFF";
9
+ readonly bg: "#2F2A42";
10
+ readonly fg: "#9B7CFF";
11
11
  readonly border: "transparent";
12
12
  readonly ring: "transparent";
13
13
  };
@@ -15,18 +15,24 @@ export declare const dropdown: {
15
15
  readonly bg: "transparent";
16
16
  readonly fg: "#B8A8FF";
17
17
  readonly border: "#B8A8FF";
18
- readonly ring: "#B8A8FF";
18
+ readonly ring: {
19
+ readonly color: "#B8A8FF";
20
+ readonly width: "2px";
21
+ readonly shadow: "0 0 8px rgba(184, 168, 255, 0.14)";
22
+ readonly offset: "#181521";
23
+ };
19
24
  };
20
25
  readonly disabled: {
21
- readonly bg: "#242034";
26
+ readonly bg: "#2F2A42";
22
27
  readonly fg: "#6B6386";
23
- readonly border: "#958CB0";
28
+ readonly border: "#3D3754";
24
29
  };
25
30
  };
26
31
  readonly content: {
27
- readonly bg: "#3D3754";
32
+ readonly bg: "#2F2A42";
28
33
  readonly fg: "#F4F1FB";
29
- readonly border: "#958CB0";
34
+ readonly border: "#4F4867";
35
+ readonly shadow: "0 12px 40px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.25)";
30
36
  };
31
37
  readonly item: {
32
38
  readonly default: {
@@ -34,16 +40,25 @@ export declare const dropdown: {
34
40
  readonly fg: "#F4F1FB";
35
41
  };
36
42
  readonly hover: {
37
- readonly bg: "#6B6386";
43
+ readonly bg: "#3D3754";
38
44
  readonly fg: "#F4F1FB";
39
45
  };
40
46
  readonly active: {
41
- readonly bg: "#6B6386";
47
+ readonly bg: "#3D3754";
42
48
  readonly fg: "#F4F1FB";
43
49
  readonly ring: "transparent";
44
50
  };
51
+ readonly pressed: {
52
+ readonly bg: "#4F4867";
53
+ readonly fg: "#F4F1FB";
54
+ };
45
55
  readonly focus: {
46
- readonly ring: "#B8A8FF";
56
+ readonly ring: {
57
+ readonly color: "#B8A8FF";
58
+ readonly width: "2px";
59
+ readonly shadow: "0 0 8px rgba(184, 168, 255, 0.14)";
60
+ readonly offset: "#181521";
61
+ };
47
62
  };
48
63
  readonly disabled: {
49
64
  readonly bg: "transparent";
@@ -51,6 +66,7 @@ export declare const dropdown: {
51
66
  };
52
67
  readonly danger: {
53
68
  readonly default: {
69
+ readonly bg: "transparent";
54
70
  readonly fg: "#FB7185";
55
71
  };
56
72
  readonly hover: {
@@ -58,9 +74,13 @@ export declare const dropdown: {
58
74
  readonly fg: "#FB7185";
59
75
  };
60
76
  readonly active: {
61
- readonly bg: "#F43F5E";
62
- readonly fg: "#FB7185";
63
77
  readonly ring: "transparent";
78
+ readonly bg: "rgba(251, 113, 133, 0.16)";
79
+ readonly fg: "#FB7185";
80
+ };
81
+ readonly disabled: {
82
+ readonly bg: "transparent";
83
+ readonly fg: "#6B6386";
64
84
  };
65
85
  };
66
86
  };
@@ -69,7 +89,7 @@ export declare const dropdown: {
69
89
  };
70
90
  readonly separator: {
71
91
  readonly bg: "#3D3754";
72
- readonly fg: "#6B6386";
92
+ readonly fg: "#958CB0";
73
93
  };
74
94
  };
75
95
  //# sourceMappingURL=dropdown.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dropdown.d.ts","sourceRoot":"","sources":["../../../src/dark/components/dropdown.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoFX,CAAC"}
1
+ {"version":3,"file":"dropdown.d.ts","sourceRoot":"","sources":["../../../src/dark/components/dropdown.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwFX,CAAC"}
@@ -1,70 +1,73 @@
1
1
  import { border } from '../semantic/border.js';
2
2
  import { focus } from '../semantic/focus.js';
3
- import { navigation } from '../semantic/navigation.js';
4
- import { status } from '../semantic/status.js';
3
+ import { menu } from '../semantic/menu.js';
4
+ import { shadow } from '../semantic/shadow.js';
5
5
  import { surface } from '../semantic/surface.js';
6
6
  import { text } from '../semantic/text.js';
7
7
  export const dropdown = {
8
8
  trigger: {
9
9
  default: {
10
10
  bg: 'transparent',
11
- fg: text.brand,
11
+ fg: text.interactive,
12
12
  border: 'transparent',
13
13
  },
14
14
  hover: {
15
- bg: navigation.brandHover.bg,
16
- fg: navigation.brandHover.fg,
15
+ bg: surface.hover,
16
+ fg: text.interactiveHover,
17
17
  border: 'transparent',
18
18
  ring: 'transparent',
19
19
  },
20
20
  focus: {
21
21
  bg: 'transparent',
22
- fg: text.brand,
22
+ fg: text.interactive,
23
23
  border: border.focus,
24
24
  ring: focus.ring,
25
25
  },
26
26
  disabled: {
27
- bg: surface.subtle,
27
+ bg: surface.disabled,
28
28
  fg: text.disabled,
29
- border: border.default,
29
+ border: border.disabled,
30
30
  },
31
31
  },
32
32
  content: {
33
- bg: surface.elevated,
34
- fg: text.primary,
35
- border: border.default,
33
+ bg: menu.background,
34
+ fg: menu.item.default.fg,
35
+ border: menu.border,
36
+ shadow: shadow.lg,
36
37
  },
37
38
  item: {
38
39
  default: {
39
- bg: 'transparent',
40
- fg: text.primary,
40
+ bg: menu.item.default.bg,
41
+ fg: menu.item.default.fg,
42
+ },
43
+ hover: {
44
+ bg: menu.item.hover.bg,
45
+ fg: menu.item.hover.fg,
41
46
  },
42
- hover: navigation.hover,
43
47
  active: {
44
- bg: navigation.active.bg,
45
- fg: navigation.active.fg,
48
+ bg: menu.item.active.bg,
49
+ fg: menu.item.active.fg,
46
50
  ring: 'transparent',
47
51
  },
52
+ pressed: {
53
+ bg: menu.item.pressed.bg,
54
+ fg: menu.item.pressed.fg,
55
+ },
48
56
  focus: {
49
57
  ring: focus.ring,
50
58
  },
51
59
  disabled: {
52
- bg: 'transparent',
53
- fg: text.disabled,
60
+ bg: menu.item.disabled.bg,
61
+ fg: menu.item.disabled.fg,
54
62
  },
55
63
  danger: {
56
- default: {
57
- fg: status.error.fg,
58
- },
59
- hover: {
60
- bg: status.error.bg,
61
- fg: status.error.fg,
62
- },
64
+ default: menu.item.danger.default,
65
+ hover: menu.item.danger.hover,
63
66
  active: {
64
- bg: status.error.border,
65
- fg: status.error.fg,
67
+ ...menu.item.danger.active,
66
68
  ring: 'transparent',
67
69
  },
70
+ disabled: menu.item.danger.disabled,
68
71
  },
69
72
  },
70
73
  groupLabel: {
@@ -7,7 +7,7 @@ export declare const formField: {
7
7
  };
8
8
  readonly helperText: {
9
9
  readonly default: {
10
- readonly fg: "#BBB2D2";
10
+ readonly fg: "#958CB0";
11
11
  };
12
12
  readonly error: {
13
13
  readonly fg: "#FB7185";
@@ -19,7 +19,7 @@ export declare const formField: {
19
19
  readonly fg: "#FBBF24";
20
20
  };
21
21
  readonly info: {
22
- readonly fg: "#0284C7";
22
+ readonly fg: "#7DD3FC";
23
23
  };
24
24
  };
25
25
  readonly requiredMark: {
@@ -9,7 +9,7 @@ export const formField = {
9
9
  },
10
10
  helperText: {
11
11
  default: {
12
- fg: text.secondary,
12
+ fg: text.muted,
13
13
  },
14
14
  error: {
15
15
  fg: status.error.fg,
@@ -1,9 +1,9 @@
1
1
  export { button } from './button.js';
2
2
  export { checkbox } from './checkbox.js';
3
+ export { contextMenu } from './contextMenu.js';
3
4
  export { dropdown } from './dropdown.js';
4
5
  export { formField } from './formField.js';
5
6
  export { input } from './input.js';
6
- export { menu } from './menu.js';
7
7
  export { modal } from './modal.js';
8
8
  export { radio } from './radio.js';
9
9
  export { select } from './select.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/dark/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/dark/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC"}
@@ -1,9 +1,9 @@
1
1
  export { button } from './button.js';
2
2
  export { checkbox } from './checkbox.js';
3
+ export { contextMenu } from './contextMenu.js';
3
4
  export { dropdown } from './dropdown.js';
4
5
  export { formField } from './formField.js';
5
6
  export { input } from './input.js';
6
- export { menu } from './menu.js';
7
7
  export { modal } from './modal.js';
8
8
  export { radio } from './radio.js';
9
9
  export { select } from './select.js';
@@ -2,63 +2,63 @@ export declare const input: {
2
2
  readonly default: {
3
3
  readonly bg: "transparent";
4
4
  readonly fg: "#F4F1FB";
5
- readonly border: "#958CB0";
5
+ readonly border: "#4F4867";
6
6
  readonly placeholder: "#BBB2D2";
7
- readonly icon: "#9B7CFF";
7
+ readonly icon: "#B8A8FF";
8
8
  };
9
9
  readonly hover: {
10
- readonly bg: "#3D3754";
10
+ readonly bg: "#2F2A42";
11
11
  readonly fg: "#F4F1FB";
12
12
  readonly border: "#B8A8FF";
13
- readonly placeholder: "#6B6386";
14
- readonly icon: "#9B7CFF";
13
+ readonly placeholder: "#BBB2D2";
14
+ readonly icon: "#D4CCFF";
15
15
  };
16
16
  readonly focus: {
17
17
  readonly bg: "transparent";
18
18
  readonly fg: "#F4F1FB";
19
19
  readonly border: "#B8A8FF";
20
20
  readonly ring: "#B8A8FF";
21
- readonly placeholder: "#6B6386";
22
- readonly icon: "#FFFFFF";
21
+ readonly placeholder: "#BBB2D2";
22
+ readonly icon: "#B8A8FF";
23
23
  };
24
24
  readonly disabled: {
25
- readonly bg: "#3D3754";
25
+ readonly bg: "#2F2A42";
26
26
  readonly fg: "#6B6386";
27
- readonly border: "#958CB0";
27
+ readonly border: "#3D3754";
28
28
  readonly placeholder: "#6B6386";
29
- readonly icon: "#D1D5DB";
29
+ readonly icon: "#6B6386";
30
30
  };
31
31
  readonly error: {
32
- readonly border: "#F43F5E";
32
+ readonly border: "#FB7185";
33
33
  readonly ring: "#FB7185";
34
34
  };
35
35
  readonly success: {
36
- readonly border: "#059669";
36
+ readonly border: "#34D399";
37
37
  readonly ring: "#34D399";
38
38
  };
39
39
  readonly readOnly: {
40
40
  readonly bg: "#242034";
41
41
  readonly fg: "#BBB2D2";
42
- readonly border: "#958CB0";
43
- readonly placeholder: "#6B6386";
44
- readonly icon: "#9CA3AF";
42
+ readonly border: "#3D3754";
43
+ readonly placeholder: "#958CB0";
44
+ readonly icon: "#958CB0";
45
45
  };
46
46
  readonly icon: {
47
- readonly default: "#0F0F0F";
47
+ readonly default: "#F4F1FB";
48
48
  readonly primary: "#B8A8FF";
49
- readonly secondary: "#9CA3AF";
50
- readonly success: "#10B981";
51
- readonly danger: "#F43F5E";
52
- readonly muted: "#9CA3AF";
53
- readonly inverse: "#1A1A1A";
54
- readonly brand: "#9B7CFF";
49
+ readonly secondary: "#E5E7EB";
50
+ readonly success: "#34D399";
51
+ readonly danger: "#FB7185";
52
+ readonly muted: "#958CB0";
53
+ readonly inverse: "#000000";
54
+ readonly brand: "#B8A8FF";
55
55
  };
56
56
  readonly clearButton: {
57
- readonly fg: "#FB7185";
57
+ readonly fg: "#958CB0";
58
58
  readonly hoverFg: "#FB7185";
59
- readonly hoverBg: string;
60
- readonly focusBg: "#FFFFFF";
61
- readonly pressedBg: "#6B6386";
59
+ readonly hoverBg: "rgba(251, 113, 133, 0.16)";
60
+ readonly focusBg: "#242034";
61
+ readonly pressedBg: "#3D3754";
62
62
  };
63
63
  };
64
64
  //# sourceMappingURL=input.d.ts.map
@@ -16,21 +16,21 @@ export const input = {
16
16
  bg: surface.hover,
17
17
  fg: text.primary,
18
18
  border: border.focus,
19
- placeholder: text.muted,
19
+ placeholder: text.secondary,
20
20
  icon: icons.hover,
21
21
  },
22
22
  focus: {
23
23
  bg: 'transparent',
24
24
  fg: text.primary,
25
25
  border: border.focus,
26
- ring: focus.ring,
27
- placeholder: text.muted,
28
- icon: icons.subtle,
26
+ ring: focus.ring.color,
27
+ placeholder: text.secondary,
28
+ icon: icons.brand,
29
29
  },
30
30
  disabled: {
31
- bg: surface.elevated,
31
+ bg: surface.disabled,
32
32
  fg: text.disabled,
33
- border: border.default,
33
+ border: border.disabled,
34
34
  placeholder: text.disabled,
35
35
  icon: icons.disabled,
36
36
  },
@@ -39,13 +39,13 @@ export const input = {
39
39
  ring: status.error.fg,
40
40
  },
41
41
  success: {
42
- border: status.success.strong,
42
+ border: status.success.border,
43
43
  ring: status.success.fg,
44
44
  },
45
45
  readOnly: {
46
46
  bg: surface.subtle,
47
47
  fg: text.secondary,
48
- border: border.default,
48
+ border: border.muted,
49
49
  placeholder: text.muted,
50
50
  icon: icons.muted,
51
51
  },
@@ -60,10 +60,10 @@ export const input = {
60
60
  brand: icons.brand,
61
61
  },
62
62
  clearButton: {
63
- fg: status.error.fg,
63
+ fg: icons.muted,
64
64
  hoverFg: status.error.fg,
65
- hoverBg: surface.danger,
66
- focusBg: surface.inverse,
65
+ hoverBg: status.error.bg,
66
+ focusBg: surface.subtle,
67
67
  pressedBg: surface.active,
68
68
  },
69
69
  };
@@ -3,28 +3,45 @@ export declare const modal: {
3
3
  readonly bg: "rgba(0, 0, 0, 0.72)";
4
4
  };
5
5
  readonly content: {
6
- readonly bg: "#3D3754";
6
+ readonly bg: "#242034";
7
7
  readonly fg: "#F4F1FB";
8
- readonly border: "#958CB0";
8
+ readonly border: "#3D3754";
9
+ readonly shadow: "0 20px 60px rgba(0, 0, 0, 0.45), 0 4px 16px rgba(0, 0, 0, 0.3)";
9
10
  };
10
11
  readonly title: {
11
12
  readonly fg: "#F4F1FB";
12
13
  };
13
14
  readonly description: {
14
- readonly fg: "#6B6386";
15
+ readonly fg: "#BBB2D2";
15
16
  };
16
17
  readonly closeButton: {
17
18
  readonly default: {
18
19
  readonly bg: "transparent";
19
20
  readonly fg: "#BBB2D2";
21
+ readonly border: "transparent";
20
22
  };
21
23
  readonly hover: {
22
- readonly bg: "#242034";
24
+ readonly bg: "#2F2A42";
23
25
  readonly fg: "#F4F1FB";
26
+ readonly border: "transparent";
27
+ };
28
+ readonly pressed: {
29
+ readonly bg: "#3D3754";
30
+ readonly fg: "#F4F1FB";
31
+ readonly border: "transparent";
32
+ };
33
+ readonly focus: {
34
+ readonly ring: {
35
+ readonly color: "#B8A8FF";
36
+ readonly width: "2px";
37
+ readonly shadow: "0 0 8px rgba(184, 168, 255, 0.14)";
38
+ readonly offset: "#181521";
39
+ };
24
40
  };
25
41
  readonly disabled: {
26
42
  readonly bg: "transparent";
27
43
  readonly fg: "#6B6386";
44
+ readonly border: "transparent";
28
45
  };
29
46
  };
30
47
  };
@@ -1 +1 @@
1
- {"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../../src/dark/components/modal.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmCR,CAAC"}
1
+ {"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../../src/dark/components/modal.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiDR,CAAC"}
@@ -1,5 +1,7 @@
1
1
  import { overlay } from '../../semantic/overlay.js';
2
2
  import { border } from '../semantic/border.js';
3
+ import { focus } from '../semantic/focus.js';
4
+ import { shadow } from '../semantic/shadow.js';
3
5
  import { surface } from '../semantic/surface.js';
4
6
  import { text } from '../semantic/text.js';
5
7
  export const modal = {
@@ -7,28 +9,40 @@ export const modal = {
7
9
  bg: overlay.backdrop,
8
10
  },
9
11
  content: {
10
- bg: surface.elevated,
12
+ bg: surface.subtle,
11
13
  fg: text.primary,
12
- border: border.default,
14
+ border: border.muted,
15
+ shadow: shadow.xl,
13
16
  },
14
17
  title: {
15
18
  fg: text.primary,
16
19
  },
17
20
  description: {
18
- fg: text.muted,
21
+ fg: text.secondary,
19
22
  },
20
23
  closeButton: {
21
24
  default: {
22
25
  bg: 'transparent',
23
26
  fg: text.secondary,
27
+ border: 'transparent',
24
28
  },
25
29
  hover: {
26
- bg: surface.subtle,
30
+ bg: surface.elevated,
27
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,
28
41
  },
29
42
  disabled: {
30
43
  bg: 'transparent',
31
44
  fg: text.disabled,
45
+ border: 'transparent',
32
46
  },
33
47
  },
34
48
  };
@@ -1,39 +1,43 @@
1
1
  export declare const radio: {
2
2
  readonly default: {
3
- readonly bg: "#3D3754";
3
+ readonly bg: "#2F2A42";
4
4
  readonly fg: "#F4F1FB";
5
- readonly border: "#958CB0";
5
+ readonly border: "#4F4867";
6
6
  };
7
7
  readonly hover: {
8
- readonly bg: "#3D3754";
8
+ readonly bg: "#2F2A42";
9
9
  readonly fg: "#B8A8FF";
10
10
  readonly border: "#B8A8FF";
11
11
  };
12
12
  readonly pressed: {
13
- readonly bg: "#E9E6FF";
14
- readonly fg: "#342580";
15
- readonly border: "#402C9F";
13
+ readonly bg: "#3D3754";
14
+ readonly fg: "#B8A8FF";
15
+ readonly border: "#B8A8FF";
16
16
  };
17
17
  readonly checked: {
18
18
  readonly default: {
19
+ readonly bg: "#181521";
19
20
  readonly fg: "#B8A8FF";
20
- readonly bg: "#9B7CFF";
21
- readonly border: "#9B7CFF";
21
+ readonly border: "#7C5CFF";
22
+ readonly labelFg: "#B8A8FF";
22
23
  };
23
24
  readonly hover: {
24
- readonly fg: "#B8A8FF";
25
- readonly bg: "#5037C8";
26
- readonly border: "#5037C8";
25
+ readonly bg: "#2F2A42";
26
+ readonly fg: "#D4CCFF";
27
+ readonly border: "#9B7CFF";
28
+ readonly labelFg: "#9B7CFF";
27
29
  };
28
30
  readonly pressed: {
29
- readonly fg: "#B8A8FF";
30
- readonly bg: "#402C9F";
31
- readonly border: "#402C9F";
31
+ readonly bg: "#3D3754";
32
+ readonly fg: "#9B7CFF";
33
+ readonly border: "#6346E8";
34
+ readonly labelFg: "#B8A8FF";
32
35
  };
33
36
  readonly disabled: {
34
37
  readonly bg: "#2F2A42";
35
38
  readonly fg: "#6B6386";
36
- readonly border: "#4F4867";
39
+ readonly border: "#3D3754";
40
+ readonly labelFg: "#6B6386";
37
41
  };
38
42
  };
39
43
  readonly focus: {
@@ -41,14 +45,15 @@ export declare const radio: {
41
45
  readonly border: "#B8A8FF";
42
46
  };
43
47
  readonly invalid: {
44
- readonly bg: "#181521";
45
- readonly fg: "#FFFFFF";
46
- readonly border: "#F43F5E";
48
+ readonly border: "#FB7185";
49
+ readonly ring: "#FB7185";
50
+ readonly bg: "#2F2A42";
51
+ readonly fg: "#F4F1FB";
47
52
  };
48
53
  readonly disabled: {
49
54
  readonly bg: "#2F2A42";
50
55
  readonly fg: "#6B6386";
51
- readonly border: "#4F4867";
56
+ readonly border: "#3D3754";
52
57
  };
53
58
  };
54
59
  //# sourceMappingURL=radio.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"radio.d.ts","sourceRoot":"","sources":["../../../src/dark/components/radio.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkDR,CAAC"}
1
+ {"version":3,"file":"radio.d.ts","sourceRoot":"","sources":["../../../src/dark/components/radio.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiDR,CAAC"}