@beehexa/design-rules 2611.5.4 → 2611.6.1

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 (190) hide show
  1. package/README.md +1 -1
  2. package/dist/catalog.json +908 -208
  3. package/dist/docs/public/_redirects +2 -2
  4. package/dist/docs/scripts/color-pairs.mjs +4 -0
  5. package/dist/docs/src/components/ChildPages.astro +8 -1
  6. package/dist/docs/src/components/ColorDemo.astro +12 -9
  7. package/dist/docs/src/components/DocsFooter.astro +1 -1
  8. package/dist/docs/src/components/HelpOptions.astro +8 -6
  9. package/dist/docs/src/components/IconBrowser.astro +2 -2
  10. package/dist/docs/src/components/LayoutDemo.astro +178 -99
  11. package/dist/docs/src/components/NativeControlsDemo.astro +165 -40
  12. package/dist/docs/src/components/NativeFlowDemo.astro +206 -0
  13. package/dist/docs/src/components/PhaseTable.astro +9 -5
  14. package/dist/docs/src/components/RoleGuides.astro +30 -22
  15. package/dist/docs/src/components/RuleDemo.astro +111 -0
  16. package/dist/docs/src/components/ShapeDemo.astro +24 -36
  17. package/dist/docs/src/components/SiteHeader.astro +1 -1
  18. package/dist/docs/src/components/SpacingDemo.astro +2 -0
  19. package/dist/docs/src/components/SwitchToggle.astro +13 -0
  20. package/dist/docs/src/components/SystemAreas.astro +9 -6
  21. package/dist/docs/src/components/TableOfContents.astro +1 -1
  22. package/dist/docs/src/components/TokenSearch.astro +64 -0
  23. package/dist/docs/src/components/TokenTable.astro +14 -9
  24. package/dist/docs/src/components/TypeDemo.astro +1 -1
  25. package/dist/docs/src/components/logos/LogoClearSpace.astro +1 -1
  26. package/dist/docs/src/content/components/button/accessibility.mdx +3 -3
  27. package/dist/docs/src/content/components/button/changelog.mdx +1 -1
  28. package/dist/docs/src/content/components/button/examples.mdx +10 -23
  29. package/dist/docs/src/content/components/button/meta.json +5 -1
  30. package/dist/docs/src/content/components/button/usage.mdx +13 -26
  31. package/dist/docs/src/content/components/resizable-panel/meta.json +5 -1
  32. package/dist/docs/src/content/{foundations/styles/scrollbars.mdx → components/scrollbar/code.mdx} +20 -39
  33. package/dist/docs/src/content/components/scrollbar/meta.json +9 -0
  34. package/dist/docs/src/content/components/scrollbar/usage.mdx +36 -0
  35. package/dist/docs/src/content/components/switch/accessibility.mdx +28 -0
  36. package/dist/docs/src/content/components/switch/examples.mdx +35 -0
  37. package/dist/docs/src/content/components/switch/meta.json +9 -0
  38. package/dist/docs/src/content/components/switch/usage.mdx +44 -0
  39. package/dist/docs/src/content/foundations/guidelines/accessibility/statement.mdx +4 -2
  40. package/dist/docs/src/content/foundations/guidelines/accessibility/testing.mdx +1 -1
  41. package/dist/docs/src/content/foundations/guidelines/accessibility.mdx +1 -1
  42. package/dist/docs/src/content/foundations/guidelines/content/messages.mdx +67 -0
  43. package/dist/docs/src/content/foundations/guidelines/content/numbers-dates-and-currency.mdx +72 -0
  44. package/dist/docs/src/content/foundations/guidelines/content/style-and-grammar.mdx +92 -0
  45. package/dist/docs/src/content/foundations/guidelines/content/terms.mdx +57 -0
  46. package/dist/docs/src/content/foundations/guidelines/content/voice-and-tone.mdx +48 -0
  47. package/dist/docs/src/content/foundations/guidelines/content.mdx +22 -17
  48. package/dist/docs/src/content/foundations/styles/border.mdx +5 -6
  49. package/dist/docs/src/content/foundations/styles/color/accessibility.mdx +31 -7
  50. package/dist/docs/src/content/foundations/styles/color/dark-mode.mdx +66 -6
  51. package/dist/docs/src/content/foundations/styles/color/palette.mdx +2 -2
  52. package/dist/docs/src/content/foundations/styles/color/usage.mdx +5 -5
  53. package/dist/docs/src/content/foundations/styles/data-visualization.mdx +33 -78
  54. package/dist/docs/src/content/foundations/styles/elevation.mdx +2 -2
  55. package/dist/docs/src/content/foundations/styles/icons/accessibility.mdx +1 -1
  56. package/dist/docs/src/content/foundations/styles/icons/code.mdx +1 -1
  57. package/dist/docs/src/content/foundations/styles/icons/library.mdx +2 -2
  58. package/dist/docs/src/content/foundations/styles/icons/usage.mdx +0 -3
  59. package/dist/docs/src/content/foundations/styles/interaction-states.mdx +40 -14
  60. package/dist/docs/src/content/foundations/styles/layout/app-frame.mdx +4 -9
  61. package/dist/docs/src/content/foundations/styles/layout/grid.mdx +1 -1
  62. package/dist/docs/src/content/foundations/styles/layout/overlays.mdx +3 -0
  63. package/dist/docs/src/content/foundations/styles/logos/downloads-and-terms.mdx +3 -3
  64. package/dist/docs/src/content/foundations/styles/logos/using-the-logo.mdx +1 -1
  65. package/dist/docs/src/content/foundations/styles/motion.mdx +2 -0
  66. package/dist/docs/src/content/foundations/styles/radius.mdx +38 -27
  67. package/dist/docs/src/content/foundations/styles/size-and-density.mdx +7 -6
  68. package/dist/docs/src/content/foundations/styles/spacing.mdx +1 -1
  69. package/dist/docs/src/content/foundations/styles/typography/code.mdx +1 -1
  70. package/dist/docs/src/content/foundations/styles/typography/usage.mdx +7 -0
  71. package/dist/docs/src/content/foundations/styles/z-index.mdx +3 -16
  72. package/dist/docs/src/content/foundations/tokens/all-tokens.mdx +51 -2
  73. package/dist/docs/src/content/foundations/tokens/index.mdx +91 -6
  74. package/dist/docs/src/content/get-started/content.mdx +25 -3
  75. package/dist/docs/src/content/get-started/design.mdx +34 -15
  76. package/dist/docs/src/content/get-started/develop.mdx +83 -28
  77. package/dist/docs/src/content/get-started/get-help.mdx +21 -5
  78. package/dist/docs/src/content/get-started/index.mdx +11 -12
  79. package/dist/docs/src/content/tools/ant-design-vue-theme.mdx +176 -48
  80. package/dist/docs/src/content/tools/application-content.mdx +52 -13
  81. package/dist/docs/src/content/tools/editors.mdx +36 -28
  82. package/dist/docs/src/content/tools/mermaid.mdx +42 -9
  83. package/dist/docs/src/content/tools/vueflow.mdx +66 -7
  84. package/dist/docs/src/content-vi/components/button/accessibility.mdx +51 -0
  85. package/dist/docs/src/content-vi/components/button/changelog.mdx +6 -0
  86. package/dist/docs/src/content-vi/components/button/examples.mdx +27 -0
  87. package/dist/docs/src/content-vi/components/button/usage.mdx +31 -0
  88. package/dist/docs/src/content-vi/components/resizable-panel/accessibility.mdx +58 -0
  89. package/dist/docs/src/content-vi/components/resizable-panel/changelog.mdx +20 -0
  90. package/dist/docs/src/content-vi/components/resizable-panel/code.mdx +78 -0
  91. package/dist/docs/src/content-vi/components/resizable-panel/examples.mdx +83 -0
  92. package/dist/docs/src/content-vi/components/resizable-panel/usage.mdx +97 -0
  93. package/dist/docs/src/content-vi/components/scrollbar/code.mdx +71 -0
  94. package/dist/docs/src/content-vi/components/scrollbar/usage.mdx +36 -0
  95. package/dist/docs/src/content-vi/components/switch/accessibility.mdx +28 -0
  96. package/dist/docs/src/content-vi/components/switch/examples.mdx +35 -0
  97. package/dist/docs/src/content-vi/components/switch/usage.mdx +44 -0
  98. package/dist/docs/src/content-vi/foundations/guidelines/accessibility/statement.mdx +4 -2
  99. package/dist/docs/src/content-vi/foundations/guidelines/accessibility/testing.mdx +1 -1
  100. package/dist/docs/src/content-vi/foundations/guidelines/accessibility.mdx +1 -1
  101. package/dist/docs/src/content-vi/foundations/guidelines/content/messages.mdx +67 -0
  102. package/dist/docs/src/content-vi/foundations/guidelines/content/numbers-dates-and-currency.mdx +71 -0
  103. package/dist/docs/src/content-vi/foundations/guidelines/content/style-and-grammar.mdx +91 -0
  104. package/dist/docs/src/content-vi/foundations/guidelines/content/terms.mdx +57 -0
  105. package/dist/docs/src/content-vi/foundations/guidelines/content/voice-and-tone.mdx +48 -0
  106. package/dist/docs/src/content-vi/foundations/guidelines/content.mdx +24 -19
  107. package/dist/docs/src/content-vi/foundations/styles/border.mdx +5 -5
  108. package/dist/docs/src/content-vi/foundations/styles/color/accessibility.mdx +30 -7
  109. package/dist/docs/src/content-vi/foundations/styles/color/dark-mode.mdx +65 -6
  110. package/dist/docs/src/content-vi/foundations/styles/color/palette.mdx +2 -2
  111. package/dist/docs/src/content-vi/foundations/styles/color/usage.mdx +5 -5
  112. package/dist/docs/src/content-vi/foundations/styles/data-visualization.mdx +31 -1
  113. package/dist/docs/src/content-vi/foundations/styles/elevation.mdx +2 -2
  114. package/dist/docs/src/content-vi/foundations/styles/icons/accessibility.mdx +1 -1
  115. package/dist/docs/src/content-vi/foundations/styles/icons/code.mdx +1 -1
  116. package/dist/docs/src/content-vi/foundations/styles/icons/library.mdx +2 -2
  117. package/dist/docs/src/content-vi/foundations/styles/icons/usage.mdx +0 -3
  118. package/dist/docs/src/content-vi/foundations/styles/interaction-states.mdx +54 -12
  119. package/dist/docs/src/content-vi/foundations/styles/layout/app-frame.mdx +4 -9
  120. package/dist/docs/src/content-vi/foundations/styles/layout/grid.mdx +1 -1
  121. package/dist/docs/src/content-vi/foundations/styles/layout/overlays.mdx +3 -0
  122. package/dist/docs/src/content-vi/foundations/styles/logos/downloads-and-terms.mdx +3 -3
  123. package/dist/docs/src/content-vi/foundations/styles/motion.mdx +2 -0
  124. package/dist/docs/src/content-vi/foundations/styles/radius.mdx +38 -27
  125. package/dist/docs/src/content-vi/foundations/styles/size-and-density.mdx +7 -6
  126. package/dist/docs/src/content-vi/foundations/styles/spacing.mdx +1 -1
  127. package/dist/docs/src/content-vi/foundations/styles/typography/code.mdx +1 -1
  128. package/dist/docs/src/content-vi/foundations/styles/typography/usage.mdx +7 -0
  129. package/dist/docs/src/content-vi/foundations/styles/z-index.mdx +3 -16
  130. package/dist/docs/src/content-vi/foundations/tokens/all-tokens.mdx +51 -2
  131. package/dist/docs/src/content-vi/foundations/tokens/index.mdx +90 -5
  132. package/dist/docs/src/content-vi/get-started/content.mdx +36 -0
  133. package/dist/docs/src/content-vi/get-started/design.mdx +49 -0
  134. package/dist/docs/src/content-vi/get-started/develop.mdx +110 -0
  135. package/dist/docs/src/content-vi/get-started/get-help.mdx +35 -0
  136. package/dist/docs/src/content-vi/get-started/index.mdx +49 -0
  137. package/dist/docs/src/content-vi/release-phases/index.mdx +11 -0
  138. package/dist/docs/src/content-vi/tools/ai-agents.mdx +36 -0
  139. package/dist/docs/src/content-vi/tools/ant-design-vue-theme.mdx +676 -0
  140. package/dist/docs/src/content-vi/tools/application-content.mdx +171 -0
  141. package/dist/docs/src/content-vi/tools/editors.mdx +254 -0
  142. package/dist/docs/src/content-vi/tools/eslint.mdx +15 -0
  143. package/dist/docs/src/content-vi/tools/index.mdx +7 -0
  144. package/dist/docs/src/content-vi/tools/mermaid.mdx +179 -0
  145. package/dist/docs/src/content-vi/tools/stylelint.mdx +18 -0
  146. package/dist/docs/src/content-vi/tools/vueflow.mdx +189 -0
  147. package/dist/docs/src/content.config.ts +12 -1
  148. package/dist/docs/src/lib/dates.ts +8 -0
  149. package/dist/docs/src/lib/i18n.ts +1 -0
  150. package/dist/docs/src/lib/navigation.ts +6 -4
  151. package/dist/docs/src/lib/token-descriptions-vi.ts +247 -11
  152. package/dist/docs/src/lib/tokens.ts +3 -0
  153. package/dist/docs/src/styles/chrome.css +8 -8
  154. package/dist/docs/src/styles/color.css +31 -31
  155. package/dist/docs/src/styles/docs.css +55 -40
  156. package/dist/docs/src/styles/elevation.css +1 -1
  157. package/dist/docs/src/styles/global.css +13 -4
  158. package/dist/docs/src/styles/icons.css +16 -16
  159. package/dist/docs/src/styles/kit.css +29 -10
  160. package/dist/docs/src/styles/layout.css +16 -11
  161. package/dist/docs/src/styles/logos.css +24 -24
  162. package/dist/docs/src/styles/opacity.css +3 -3
  163. package/dist/docs/src/styles/rules.css +24 -0
  164. package/dist/docs/src/styles/shapes.css +2 -2
  165. package/dist/docs/src/styles/tokens.css +228 -147
  166. package/dist/docs/src/styles/tokens.js +88 -62
  167. package/dist/docs/src/styles/typography.css +9 -9
  168. package/dist/docs/src/styles/zindex.css +6 -5
  169. package/dist/docs/tokens/color.json +24 -14
  170. package/dist/docs/tokens/components.json +39 -0
  171. package/dist/docs/tokens/content.json +103 -10
  172. package/dist/docs/tokens/diagram.json +490 -49
  173. package/dist/docs/tokens/editor.json +128 -22
  174. package/dist/docs/tokens/flow.json +412 -80
  175. package/dist/docs/tokens/layout.json +13 -4
  176. package/dist/docs/tokens/motion.json +11 -0
  177. package/dist/docs/tokens/radius.json +9 -9
  178. package/dist/docs/tokens/renderer.json +8 -0
  179. package/dist/docs/tokens/resize.json +84 -15
  180. package/dist/docs/tokens/scrollbar.json +42 -7
  181. package/dist/docs/tokens/size.json +6 -6
  182. package/dist/docs/tokens/spacing.json +1 -1
  183. package/dist/docs/tokens/switch.json +314 -59
  184. package/dist/docs/tokens/typography.json +1 -1
  185. package/dist/docs/tokens/visualization.json +465 -53
  186. package/dist/docs/tokens/z-index.json +0 -10
  187. package/dist/index.js +908 -208
  188. package/package.json +1 -1
  189. package/dist/docs/src/brand/structure-proposal.md +0 -227
  190. package/dist/docs/src/content/components/button/code.mdx +0 -34
@@ -3,73 +3,143 @@
3
3
  "background": {
4
4
  "$type": "color",
5
5
  "$value": "{color.surface}",
6
- "$description": "Editor code canvas; pair with editor.text and syntax roles."
6
+ "$description": "Editor code canvas; pair with editor.text and syntax roles.",
7
+ "$extensions": {
8
+ "design.beehexa": {
9
+ "component": "editor"
10
+ }
11
+ }
7
12
  },
8
13
  "text": {
9
14
  "$type": "color",
10
15
  "$value": "{color.text}",
11
- "$description": "Editor default code foreground."
16
+ "$description": "Editor default code foreground.",
17
+ "$extensions": {
18
+ "design.beehexa": {
19
+ "component": "editor"
20
+ }
21
+ }
12
22
  },
13
23
  "gutter": {
14
24
  "$type": "color",
15
25
  "$value": "{color.surface.subtle}",
16
- "$description": "Line-number gutter surface."
26
+ "$description": "Line-number gutter surface.",
27
+ "$extensions": {
28
+ "design.beehexa": {
29
+ "component": "editor"
30
+ }
31
+ }
17
32
  },
18
33
  "lineNumber": {
19
34
  "$type": "color",
20
35
  "$value": "{color.text.subtlest}",
21
- "$description": "Line numbers on the gutter."
36
+ "$description": "Line numbers on the gutter.",
37
+ "$extensions": {
38
+ "design.beehexa": {
39
+ "component": "editor"
40
+ }
41
+ }
22
42
  },
23
43
  "selection": {
24
44
  "$type": "color",
25
45
  "$value": "{color.background.selected}",
26
- "$description": "Selected code range, with native selection/caret cues."
46
+ "$description": "Selected code range, with native selection/caret cues.",
47
+ "$extensions": {
48
+ "design.beehexa": {
49
+ "component": "editor"
50
+ }
51
+ }
27
52
  },
28
53
  "lineHighlight": {
29
54
  "$type": "color",
30
55
  "$value": "{color.surface.subtle}",
31
- "$description": "Current editor line; caret and gutter provide additional cues."
56
+ "$description": "Current editor line; caret and gutter provide additional cues.",
57
+ "$extensions": {
58
+ "design.beehexa": {
59
+ "component": "editor"
60
+ }
61
+ }
32
62
  },
33
63
  "cursor": {
34
64
  "$type": "color",
35
65
  "$value": "{color.text}",
36
- "$description": "Insertion caret."
66
+ "$description": "Insertion caret.",
67
+ "$extensions": {
68
+ "design.beehexa": {
69
+ "component": "editor"
70
+ }
71
+ }
37
72
  },
38
73
  "border": {
39
74
  "$type": "color",
40
75
  "$value": "{color.border}",
41
- "$description": "Editor frame."
76
+ "$description": "Editor frame.",
77
+ "$extensions": {
78
+ "design.beehexa": {
79
+ "component": "editor"
80
+ }
81
+ }
42
82
  },
43
83
  "syntax": {
44
84
  "comment": {
45
85
  "$type": "color",
46
86
  "$value": "{color.text.subtlest}",
47
- "$description": "Comments: neutral, readable, no dimming."
87
+ "$description": "Comments: neutral, readable, no dimming.",
88
+ "$extensions": {
89
+ "design.beehexa": {
90
+ "component": "editor"
91
+ }
92
+ }
48
93
  },
49
94
  "string": {
50
95
  "$type": "color",
51
96
  "$value": "{color.text.success}",
52
- "$description": "String literals, not success state indicators."
97
+ "$description": "String literals, not success state indicators.",
98
+ "$extensions": {
99
+ "design.beehexa": {
100
+ "component": "editor"
101
+ }
102
+ }
53
103
  },
54
104
  "number": {
55
105
  "$type": "color",
56
106
  "$value": "{color.text.warning}",
57
- "$description": "Numeric literals, not warning state indicators."
107
+ "$description": "Numeric literals, not warning state indicators.",
108
+ "$extensions": {
109
+ "design.beehexa": {
110
+ "component": "editor"
111
+ }
112
+ }
58
113
  },
59
114
  "keyword": {
60
115
  "$type": "color",
61
116
  "$value": "{color.text.info}",
62
- "$description": "Language keywords, not info state indicators."
117
+ "$description": "Language keywords, not info state indicators.",
118
+ "$extensions": {
119
+ "design.beehexa": {
120
+ "component": "editor"
121
+ }
122
+ }
63
123
  },
64
124
  "type": {
65
125
  "$type": "color",
66
126
  "$value": "{color.text}",
67
- "$description": "Types and identifiers."
127
+ "$description": "Types and identifiers.",
128
+ "$extensions": {
129
+ "design.beehexa": {
130
+ "component": "editor"
131
+ }
132
+ }
68
133
  },
69
134
  "delimiter": {
70
135
  "$type": "color",
71
136
  "$value": "{color.text.subtle}",
72
- "$description": "Punctuation and delimiters."
137
+ "$description": "Punctuation and delimiters.",
138
+ "$extensions": {
139
+ "design.beehexa": {
140
+ "component": "editor"
141
+ }
142
+ }
73
143
  }
74
144
  },
75
145
  "diff": {
@@ -77,24 +147,44 @@
77
147
  "background": {
78
148
  "$type": "color",
79
149
  "$value": "{color.background.success.subtle}",
80
- "$description": "Inserted diff text and lines; show + gutter marker."
150
+ "$description": "Inserted diff text and lines; show + gutter marker.",
151
+ "$extensions": {
152
+ "design.beehexa": {
153
+ "component": "editor"
154
+ }
155
+ }
81
156
  },
82
157
  "text": {
83
158
  "$type": "color",
84
159
  "$value": "{color.text.success}",
85
- "$description": "Inserted diff annotation; + or inserted label required."
160
+ "$description": "Inserted diff annotation; + or inserted label required.",
161
+ "$extensions": {
162
+ "design.beehexa": {
163
+ "component": "editor"
164
+ }
165
+ }
86
166
  }
87
167
  },
88
168
  "removed": {
89
169
  "background": {
90
170
  "$type": "color",
91
171
  "$value": "{color.background.danger.subtle}",
92
- "$description": "Removed diff text and lines; show − gutter marker."
172
+ "$description": "Removed diff text and lines; show − gutter marker.",
173
+ "$extensions": {
174
+ "design.beehexa": {
175
+ "component": "editor"
176
+ }
177
+ }
93
178
  },
94
179
  "text": {
95
180
  "$type": "color",
96
181
  "$value": "{color.text.danger}",
97
- "$description": "Removed diff annotation; − or removed label required."
182
+ "$description": "Removed diff annotation; − or removed label required.",
183
+ "$extensions": {
184
+ "design.beehexa": {
185
+ "component": "editor"
186
+ }
187
+ }
98
188
  }
99
189
  }
100
190
  },
@@ -102,12 +192,22 @@
102
192
  "family": {
103
193
  "$type": "fontFamily",
104
194
  "$value": "{font.family.mono}",
105
- "$description": "Editor numeric API family from code.default."
195
+ "$description": "Editor numeric API family from code.default.",
196
+ "$extensions": {
197
+ "design.beehexa": {
198
+ "component": "editor"
199
+ }
200
+ }
106
201
  },
107
202
  "size": {
108
203
  "$type": "dimension",
109
204
  "$value": "{font.size.200}",
110
- "$description": "Editor numeric API size from code.default: 14px nominal."
205
+ "$description": "Editor numeric API size from code.default: 14px nominal.",
206
+ "$extensions": {
207
+ "design.beehexa": {
208
+ "component": "editor"
209
+ }
210
+ }
111
211
  },
112
212
  "lineHeight": {
113
213
  "$type": "dimension",
@@ -115,14 +215,20 @@
115
215
  "$description": "Editor numeric API line height: 20px nominal; Vietnamese 24px.",
116
216
  "$extensions": {
117
217
  "design.beehexa": {
118
- "vi": "1.5rem"
218
+ "vi": "1.5rem",
219
+ "component": "editor"
119
220
  }
120
221
  }
121
222
  },
122
223
  "weight": {
123
224
  "$type": "fontWeight",
124
225
  "$value": "{font.weight.regular}",
125
- "$description": "Editor code weight."
226
+ "$description": "Editor code weight.",
227
+ "$extensions": {
228
+ "design.beehexa": {
229
+ "component": "editor"
230
+ }
231
+ }
126
232
  }
127
233
  }
128
234
  }