datocms-react-ui 2.1.4 → 3.0.1-alpha.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 (135) hide show
  1. package/dist/cjs/Button/styles.module.css.json +1 -1
  2. package/dist/cjs/ButtonGroup/Button/styles.module.css.json +1 -1
  3. package/dist/cjs/ButtonGroup/Group/styles.module.css.json +1 -1
  4. package/dist/cjs/Canvas/index.js +181 -276
  5. package/dist/cjs/Canvas/index.js.map +1 -1
  6. package/dist/cjs/Canvas/styles.module.css.json +1 -1
  7. package/dist/cjs/ContextInspector/styles.module.css.json +1 -1
  8. package/dist/cjs/Dropdown/styles.module.css.json +1 -1
  9. package/dist/cjs/FieldError/styles.module.css.json +1 -1
  10. package/dist/cjs/FieldHint/styles.module.css.json +1 -1
  11. package/dist/cjs/FormLabel/styles.module.css.json +1 -1
  12. package/dist/cjs/HotKey/styles.module.css.json +1 -1
  13. package/dist/cjs/Section/styles.module.css.json +1 -1
  14. package/dist/cjs/SelectInput/index.js +41 -22
  15. package/dist/cjs/SelectInput/index.js.map +1 -1
  16. package/dist/cjs/SidebarPanel/index.js +4 -11
  17. package/dist/cjs/SidebarPanel/index.js.map +1 -1
  18. package/dist/cjs/SidebarPanel/styles.module.css.json +1 -1
  19. package/dist/cjs/Spinner/styles.module.css.json +1 -1
  20. package/dist/cjs/SplitView/SplitViewSash/styles.module.css.json +1 -1
  21. package/dist/cjs/SwitchField/styles.module.css.json +1 -1
  22. package/dist/cjs/SwitchInput/styles.module.css.json +1 -1
  23. package/dist/cjs/TextInput/styles.module.css.json +1 -1
  24. package/dist/cjs/TextareaInput/styles.module.css.json +1 -1
  25. package/dist/cjs/Toolbar/Button/styles.module.css.json +1 -1
  26. package/dist/cjs/Toolbar/Toolbar/index.js +3 -3
  27. package/dist/cjs/Toolbar/Toolbar/styles.module.css.json +1 -1
  28. package/dist/cjs/Tooltip/TooltipContent/styles.module.css.json +1 -1
  29. package/dist/cjs/Tooltip/TooltipDelayGroup/index.js +2 -2
  30. package/dist/cjs/VerticalSplit/index.js +4 -4
  31. package/dist/cjs/VerticalSplit/styles.module.css.json +1 -1
  32. package/dist/cjs/generateStyleFromCtx/index.js +133 -2
  33. package/dist/cjs/generateStyleFromCtx/index.js.map +1 -1
  34. package/dist/cjs/icons.js +8 -8
  35. package/dist/cjs/icons.js.map +1 -1
  36. package/dist/esm/Button/styles.module.css.json +1 -1
  37. package/dist/esm/ButtonGroup/Button/styles.module.css.json +1 -1
  38. package/dist/esm/ButtonGroup/Group/styles.module.css.json +1 -1
  39. package/dist/esm/Canvas/index.d.ts +181 -276
  40. package/dist/esm/Canvas/index.js +181 -276
  41. package/dist/esm/Canvas/index.js.map +1 -1
  42. package/dist/esm/Canvas/styles.module.css.json +1 -1
  43. package/dist/esm/ContextInspector/styles.module.css.json +1 -1
  44. package/dist/esm/Dropdown/styles.module.css.json +1 -1
  45. package/dist/esm/FieldError/styles.module.css.json +1 -1
  46. package/dist/esm/FieldHint/styles.module.css.json +1 -1
  47. package/dist/esm/FormLabel/styles.module.css.json +1 -1
  48. package/dist/esm/HotKey/styles.module.css.json +1 -1
  49. package/dist/esm/Section/styles.module.css.json +1 -1
  50. package/dist/esm/SelectInput/index.js +41 -22
  51. package/dist/esm/SelectInput/index.js.map +1 -1
  52. package/dist/esm/SidebarPanel/index.d.ts +2 -2
  53. package/dist/esm/SidebarPanel/index.js +4 -11
  54. package/dist/esm/SidebarPanel/index.js.map +1 -1
  55. package/dist/esm/SidebarPanel/styles.module.css.json +1 -1
  56. package/dist/esm/Spinner/styles.module.css.json +1 -1
  57. package/dist/esm/SplitView/SplitViewSash/styles.module.css.json +1 -1
  58. package/dist/esm/SwitchField/styles.module.css.json +1 -1
  59. package/dist/esm/SwitchInput/styles.module.css.json +1 -1
  60. package/dist/esm/TextInput/styles.module.css.json +1 -1
  61. package/dist/esm/TextareaInput/styles.module.css.json +1 -1
  62. package/dist/esm/Toolbar/Button/styles.module.css.json +1 -1
  63. package/dist/esm/Toolbar/Toolbar/index.d.ts +3 -3
  64. package/dist/esm/Toolbar/Toolbar/index.js +3 -3
  65. package/dist/esm/Toolbar/Toolbar/styles.module.css.json +1 -1
  66. package/dist/esm/Tooltip/TooltipContent/styles.module.css.json +1 -1
  67. package/dist/esm/Tooltip/TooltipDelayGroup/index.d.ts +2 -2
  68. package/dist/esm/Tooltip/TooltipDelayGroup/index.js +2 -2
  69. package/dist/esm/VerticalSplit/index.d.ts +4 -4
  70. package/dist/esm/VerticalSplit/index.js +4 -4
  71. package/dist/esm/VerticalSplit/styles.module.css.json +1 -1
  72. package/dist/esm/generateStyleFromCtx/index.js +133 -2
  73. package/dist/esm/generateStyleFromCtx/index.js.map +1 -1
  74. package/dist/esm/icons.js +8 -8
  75. package/dist/esm/icons.js.map +1 -1
  76. package/dist/types/Canvas/index.d.ts +181 -276
  77. package/dist/types/SidebarPanel/index.d.ts +2 -2
  78. package/dist/types/Toolbar/Toolbar/index.d.ts +3 -3
  79. package/dist/types/Tooltip/TooltipDelayGroup/index.d.ts +2 -2
  80. package/dist/types/VerticalSplit/index.d.ts +4 -4
  81. package/package.json +3 -3
  82. package/src/Button/styles.module.css +19 -19
  83. package/src/Button/styles.module.css.json +1 -1
  84. package/src/ButtonGroup/Button/styles.module.css +15 -17
  85. package/src/ButtonGroup/Button/styles.module.css.json +1 -1
  86. package/src/ButtonGroup/Group/styles.module.css +1 -1
  87. package/src/ButtonGroup/Group/styles.module.css.json +1 -1
  88. package/src/Canvas/index.tsx +181 -276
  89. package/src/Canvas/styles.module.css +75 -16
  90. package/src/Canvas/styles.module.css.json +1 -1
  91. package/src/ContextInspector/styles.module.css +10 -10
  92. package/src/ContextInspector/styles.module.css.json +1 -1
  93. package/src/Dropdown/styles.module.css +30 -28
  94. package/src/Dropdown/styles.module.css.json +1 -1
  95. package/src/FieldError/styles.module.css +1 -1
  96. package/src/FieldError/styles.module.css.json +1 -1
  97. package/src/FieldHint/styles.module.css +1 -1
  98. package/src/FieldHint/styles.module.css.json +1 -1
  99. package/src/FormLabel/styles.module.css +2 -2
  100. package/src/FormLabel/styles.module.css.json +1 -1
  101. package/src/HotKey/styles.module.css +1 -1
  102. package/src/HotKey/styles.module.css.json +1 -1
  103. package/src/Section/styles.module.css +8 -8
  104. package/src/Section/styles.module.css.json +1 -1
  105. package/src/SelectInput/index.tsx +53 -26
  106. package/src/SidebarPanel/index.tsx +4 -29
  107. package/src/SidebarPanel/styles.module.css +6 -6
  108. package/src/SidebarPanel/styles.module.css.json +1 -1
  109. package/src/Spinner/styles.module.css +1 -1
  110. package/src/Spinner/styles.module.css.json +1 -1
  111. package/src/SplitView/SplitViewSash/styles.module.css +7 -7
  112. package/src/SplitView/SplitViewSash/styles.module.css.json +1 -1
  113. package/src/SwitchField/styles.module.css +1 -1
  114. package/src/SwitchField/styles.module.css.json +1 -1
  115. package/src/SwitchInput/styles.module.css +16 -13
  116. package/src/SwitchInput/styles.module.css.json +1 -1
  117. package/src/TextInput/styles.module.css +13 -11
  118. package/src/TextInput/styles.module.css.json +1 -1
  119. package/src/TextareaInput/styles.module.css +13 -11
  120. package/src/TextareaInput/styles.module.css.json +1 -1
  121. package/src/Toolbar/Button/styles.module.css +4 -4
  122. package/src/Toolbar/Button/styles.module.css.json +1 -1
  123. package/src/Toolbar/Toolbar/index.tsx +3 -3
  124. package/src/Toolbar/Toolbar/styles.module.css +2 -2
  125. package/src/Toolbar/Toolbar/styles.module.css.json +1 -1
  126. package/src/Tooltip/TooltipContent/styles.module.css +2 -2
  127. package/src/Tooltip/TooltipContent/styles.module.css.json +1 -1
  128. package/src/Tooltip/TooltipDelayGroup/index.tsx +2 -2
  129. package/src/VerticalSplit/index.tsx +4 -4
  130. package/src/VerticalSplit/styles.module.css +7 -11
  131. package/src/VerticalSplit/styles.module.css.json +1 -1
  132. package/src/generateStyleFromCtx/index.ts +153 -0
  133. package/src/icons.tsx +8 -0
  134. package/styles.css +29 -1
  135. package/types.json +517 -389
@@ -1 +1 @@
1
- { "button": "_button_474wk_1", "disabled": "_disabled_474wk_30", "buttonType-muted": "_buttonType-muted_474wk_34", "buttonType-primary": "_buttonType-primary_474wk_50", "buttonType-negative": "_buttonType-negative_474wk_71", "buttonSize-xxs": "_buttonSize-xxs_474wk_88", "buttonSize-xs": "_buttonSize-xs_474wk_93", "buttonSize-s": "_buttonSize-s_474wk_98", "buttonSize-m": "_buttonSize-m_474wk_103", "buttonSize-l": "_buttonSize-l_474wk_108", "buttonSize-xl": "_buttonSize-xl_474wk_113", "fullWidth": "_fullWidth_474wk_118", "button__leftIcon": "_button__leftIcon_474wk_124", "button__rightIcon": "_button__rightIcon_474wk_125" }
1
+ { "button": "_button_1kk5u_1", "disabled": "_disabled_1kk5u_30", "buttonType-muted": "_buttonType-muted_1kk5u_34", "buttonType-primary": "_buttonType-primary_1kk5u_50", "buttonType-negative": "_buttonType-negative_1kk5u_71", "buttonSize-xxs": "_buttonSize-xxs_1kk5u_88", "buttonSize-xs": "_buttonSize-xs_1kk5u_93", "buttonSize-s": "_buttonSize-s_1kk5u_98", "buttonSize-m": "_buttonSize-m_1kk5u_103", "buttonSize-l": "_buttonSize-l_1kk5u_108", "buttonSize-xl": "_buttonSize-xl_1kk5u_113", "fullWidth": "_fullWidth_1kk5u_118", "button__leftIcon": "_button__leftIcon_1kk5u_124", "button__rightIcon": "_button__rightIcon_1kk5u_125" }
@@ -1 +1 @@
1
- { "Button": "_Button_1h1w1_1", "Button--s": "_Button--s_1h1w1_32", "Button--disabled": "_Button--disabled_1h1w1_36", "Button--selected": "_Button--selected_1h1w1_45" }
1
+ { "Button": "_Button_9ae1c_1", "Button--s": "_Button--s_9ae1c_30", "Button--disabled": "_Button--disabled_9ae1c_34", "Button--selected": "_Button--selected_9ae1c_43" }
@@ -1 +1 @@
1
- { "Group": "_Group_10mj4_1" }
1
+ { "Group": "_Group_1b5yn_1" }
@@ -42,283 +42,188 @@ function useCtx() {
42
42
  }
43
43
  exports.useCtx = useCtx;
44
44
  /**
45
- * @example Color palette CSS variables
45
+ * @example Semantic color token CSS variables
46
46
  *
47
- * Within the `Canvas` component, a color palette is made available as a set of
48
- * CSS variables, allowing you to conform to the theme of the current
49
- * environment:
47
+ * Inside `Canvas`, the host exposes a full semantic color palette as CSS
48
+ * custom properties. Components should reference these tokens directly
49
+ * they adapt to the user's active theme (including dark mode)
50
+ * automatically.
51
+ *
52
+ * ### How to read a token name
53
+ *
54
+ * ```
55
+ * --color--{property} // standalone (one -- after color)
56
+ * --color--{context}--{property} // context pair (two -- after color)
57
+ * ```
58
+ *
59
+ * **Properties** — `surface` (backgrounds), `ink` (text/icons),
60
+ * `border` (1px lines), `outline` (focus rings), plus `fill` / `track`
61
+ * for progress bars.
62
+ *
63
+ * **Standalone** tokens work on any neutral page. **Contexts** are
64
+ * self-contained environments: always pair a `surface` with the `ink`,
65
+ * `border`, and hover states from the *same* context. Never mix — e.g.
66
+ * don't put `--color--primary--ink` on `--color--danger--surface`.
67
+ *
68
+ * Non-color tokens `--shadow--elevated` / `--shadow--float` /
69
+ * `--shadow--ambient` are ready-made `box-shadow` composites.
50
70
  *
51
71
  * ```js
52
72
  * <Canvas ctx={ctx}>
53
- * <Section title="Text colors">
54
- * <table>
55
- * <tbody>
56
- * <tr>
57
- * <td>
58
- * <code>--base-body-color</code>
59
- * </td>
60
- * <td width="30%">
61
- * <div
62
- * style={{
63
- * width: '30px',
64
- * height: '30px',
65
- * background: 'var(--base-body-color)',
66
- * }}
67
- * />
68
- * </td>
73
+ * <Section title="Standalone — use on any neutral page">
74
+ * <table><tbody>
75
+ * {[
76
+ * ['--color--surface', 'Default page background'],
77
+ * ['--color--surface-hover', 'Hovered row / list item'],
78
+ * ['--color--surface-muted', 'Muted section / card background'],
79
+ * ['--color--ink', 'Primary text'],
80
+ * ['--color--ink-subtle', 'Secondary text / captions'],
81
+ * ['--color--ink-hover', 'Text under hover'],
82
+ * ['--color--ink-muted', 'De-emphasized text'],
83
+ * ['--color--ink-placeholder', 'Input placeholder text'],
84
+ * ['--color--ink-primary', 'Brand-highlighted text / icons'],
85
+ * ['--color--ink-accent', 'Links / accent text'],
86
+ * ['--color--ink-disabled', 'Disabled text'],
87
+ * ['--color--border', 'Default 1px border'],
88
+ * ['--color--border-hover', 'Border under hover'],
89
+ * ].map(([t, d]) => (
90
+ * <tr key={t}>
91
+ * <td><code>{t}</code></td>
92
+ * <td style={{ color: 'var(--color--ink-subtle)' }}>{d}</td>
93
+ * <td width="40"><div style={{ width: '30px', height: '30px', background: `var(${t})`, border: '1px solid var(--color--border)' }} /></td>
69
94
  * </tr>
70
- * <tr>
71
- * <td>
72
- * <code>--light-body-color</code>
73
- * </td>
74
- * <td width="30%">
75
- * <div
76
- * style={{
77
- * width: '30px',
78
- * height: '30px',
79
- * background: 'var(--light-body-color)',
80
- * }}
81
- * />
82
- * </td>
83
- * </tr>
84
- * <tr>
85
- * <td>
86
- * <code>--placeholder-body-color</code>
87
- * </td>
88
- * <td width="30%">
89
- * <div
90
- * style={{
91
- * width: '30px',
92
- * height: '30px',
93
- * background: 'var(--placeholder-body-color)',
94
- * }}
95
- * />
96
- * </td>
97
- * </tr>
98
- * </tbody>
99
- * </table>
95
+ * ))}
96
+ * </tbody></table>
100
97
  * </Section>
101
- * <Section title="UI colors">
102
- * <table>
103
- * <tbody>
104
- * <tr>
105
- * <td>
106
- * <code>--light-bg-color</code>
107
- * </td>
108
- * <td width="30%">
109
- * <div
110
- * style={{
111
- * width: '30px',
112
- * height: '30px',
113
- * background: 'var(--light-bg-color)',
114
- * }}
115
- * />
116
- * </td>
117
- * </tr>
118
- * <tr>
119
- * <td>
120
- * <code>--lighter-bg-color</code>
121
- * </td>
122
- * <td width="30%">
123
- * <div
124
- * style={{
125
- * width: '30px',
126
- * height: '30px',
127
- * background: 'var(--lighter-bg-color)',
128
- * }}
129
- * />
130
- * </td>
131
- * </tr>
132
- * <tr>
133
- * <td>
134
- * <code>--disabled-bg-color</code>
135
- * </td>
136
- * <td width="30%">
137
- * <div
138
- * style={{
139
- * width: '30px',
140
- * height: '30px',
141
- * background: 'var(--disabled-bg-color)',
142
- * }}
143
- * />
144
- * </td>
145
- * </tr>
146
- * <tr>
147
- * <td>
148
- * <code>--border-color</code>
149
- * </td>
150
- * <td width="30%">
151
- * <div
152
- * style={{
153
- * width: '30px',
154
- * height: '30px',
155
- * background: 'var(--border-color)',
156
- * }}
157
- * />
158
- * </td>
159
- * </tr>
160
- * <tr>
161
- * <td>
162
- * <code>--darker-border-color</code>
163
- * </td>
164
- * <td width="30%">
165
- * <div
166
- * style={{
167
- * width: '30px',
168
- * height: '30px',
169
- * background: 'var(--darker-border-color)',
170
- * }}
171
- * />
172
- * </td>
173
- * </tr>
174
- * <tr>
175
- * <td>
176
- * <code>--alert-color</code>
177
- * </td>
178
- * <td width="30%">
179
- * <div
180
- * style={{
181
- * width: '30px',
182
- * height: '30px',
183
- * background: 'var(--alert-color)',
184
- * }}
185
- * />
186
- * </td>
187
- * </tr>
188
- * <tr>
189
- * <td>
190
- * <code>--warning-color</code>
191
- * </td>
192
- * <td width="30%">
193
- * <div
194
- * style={{
195
- * width: '30px',
196
- * height: '30px',
197
- * background: 'var(--warning-color)',
198
- * }}
199
- * />
200
- * </td>
201
- * </tr>
202
- * <tr>
203
- * <td>
204
- * <code>--notice-color</code>
205
- * </td>
206
- * <td width="30%">
207
- * <div
208
- * style={{
209
- * width: '30px',
210
- * height: '30px',
211
- * background: 'var(--notice-color)',
212
- * }}
213
- * />
214
- * </td>
215
- * </tr>
216
- * <tr>
217
- * <td>
218
- * <code>--warning-bg-color</code>
219
- * </td>
220
- * <td width="30%">
221
- * <div
222
- * style={{
223
- * width: '30px',
224
- * height: '30px',
225
- * background: 'var(--warning-bg-color)',
226
- * }}
227
- * />
228
- * </td>
229
- * </tr>
230
- * <tr>
231
- * <td>
232
- * <code>--add-color</code>
233
- * </td>
234
- * <td width="30%">
235
- * <div
236
- * style={{
237
- * width: '30px',
238
- * height: '30px',
239
- * background: 'var(--add-color)',
240
- * }}
241
- * />
242
- * </td>
243
- * </tr>
244
- * <tr>
245
- * <td>
246
- * <code>--remove-color</code>
247
- * </td>
248
- * <td width="30%">
249
- * <div
250
- * style={{
251
- * width: '30px',
252
- * height: '30px',
253
- * background: 'var(--remove-color)',
254
- * }}
255
- * />
256
- * </td>
257
- * </tr>
258
- * </tbody>
259
- * </table>
98
+ *
99
+ * <Section title="Context: raised — modals, dropdowns, popovers">
100
+ * <table><tbody>
101
+ * {['--color--raised--surface', '--color--raised--surface-hover', '--color--raised--surface-active']
102
+ * .map((t) => (<tr key={t}><td><code>{t}</code></td><td width="40"><div style={{ width: '30px', height: '30px', background: `var(${t})`, border: '1px solid var(--color--border)' }} /></td></tr>))}
103
+ * </tbody></table>
260
104
  * </Section>
261
- * <Section title="Project-specific colors">
262
- * <table>
263
- * <tbody>
264
- * <tr>
265
- * <td>
266
- * <code>--accent-color</code>
267
- * </td>
268
- * <td width="30%">
269
- * <div
270
- * style={{
271
- * width: '30px',
272
- * height: '30px',
273
- * background: 'var(--accent-color)',
274
- * }}
275
- * />
276
- * </td>
277
- * </tr>
278
- * <tr>
279
- * <td>
280
- * <code>--primary-color</code>
281
- * </td>
282
- * <td width="30%">
283
- * <div
284
- * style={{
285
- * width: '30px',
286
- * height: '30px',
287
- * background: 'var(--primary-color)',
288
- * }}
289
- * />
290
- * </td>
291
- * </tr>
292
- * <tr>
293
- * <td>
294
- * <code>--light-color</code>
295
- * </td>
296
- * <td width="30%">
297
- * <div
298
- * style={{
299
- * width: '30px',
300
- * height: '30px',
301
- * background: 'var(--light-color)',
302
- * }}
303
- * />
304
- * </td>
305
- * </tr>
306
- * <tr>
307
- * <td>
308
- * <code>--dark-color</code>
309
- * </td>
310
- * <td width="30%">
311
- * <div
312
- * style={{
313
- * width: '30px',
314
- * height: '30px',
315
- * background: 'var(--dark-color)',
316
- * }}
317
- * />
318
- * </td>
319
- * </tr>
320
- * </tbody>
321
- * </table>
105
+ *
106
+ * <Section title="Context: primary — main call-to-action buttons, badges, nav">
107
+ * <table><tbody>
108
+ * {['--color--primary--surface', '--color--primary--surface-hover', '--color--primary--surface-active', '--color--primary--surface-muted', '--color--primary--ink', '--color--primary--border']
109
+ * .map((t) => (<tr key={t}><td><code>{t}</code></td><td width="40"><div style={{ width: '30px', height: '30px', background: `var(${t})`, border: '1px solid var(--color--border)' }} /></td></tr>))}
110
+ * </tbody></table>
111
+ * </Section>
112
+ *
113
+ * <Section title="Context: tinted — subtle brand-tinted surfaces">
114
+ * <table><tbody>
115
+ * {['--color--tinted--surface', '--color--tinted--surface-hover', '--color--tinted--surface-active', '--color--tinted--ink']
116
+ * .map((t) => (<tr key={t}><td><code>{t}</code></td><td width="40"><div style={{ width: '30px', height: '30px', background: `var(${t})`, border: '1px solid var(--color--border)' }} /></td></tr>))}
117
+ * </tbody></table>
118
+ * </Section>
119
+ *
120
+ * <Section title="Context: accent, selected, disabled, danger, enterprise">
121
+ * <table><tbody>
122
+ * {['--color--accent--surface', '--color--accent--ink',
123
+ * '--color--selected--surface', '--color--selected--ink', '--color--selected--border',
124
+ * '--color--disabled--surface', '--color--disabled--ink',
125
+ * '--color--danger--surface', '--color--danger--ink',
126
+ * '--color--enterprise--surface']
127
+ * .map((t) => (<tr key={t}><td><code>{t}</code></td><td width="40"><div style={{ width: '30px', height: '30px', background: `var(${t})`, border: '1px solid var(--color--border)' }} /></td></tr>))}
128
+ * </tbody></table>
129
+ * </Section>
130
+ *
131
+ * <Section title="Context: focus — focus rings and outlines">
132
+ * <table><tbody>
133
+ * {['--color--focus--border', '--color--focus--outline']
134
+ * .map((t) => (<tr key={t}><td><code>{t}</code></td><td width="40"><div style={{ width: '30px', height: '30px', background: `var(${t})`, border: '1px solid var(--color--border)' }} /></td></tr>))}
135
+ * </tbody></table>
136
+ * </Section>
137
+ *
138
+ * <Section title="Feedback — validation and form states">
139
+ * <table><tbody>
140
+ * {['--color--feedback-fail--ink', '--color--feedback-fail--border', '--color--feedback-fail--outline',
141
+ * '--color--feedback-warning--ink', '--color--feedback-warning--surface', '--color--feedback-warning--border',
142
+ * '--color--feedback-success--ink', '--color--feedback-success--border']
143
+ * .map((t) => (<tr key={t}><td><code>{t}</code></td><td width="40"><div style={{ width: '30px', height: '30px', background: `var(${t})`, border: '1px solid var(--color--border)' }} /></td></tr>))}
144
+ * </tbody></table>
145
+ * </Section>
146
+ *
147
+ * <Section title="Context: highlight — rich text inline highlights">
148
+ * <table><tbody>
149
+ * {['--color--highlight--surface']
150
+ * .map((t) => (<tr key={t}><td><code>{t}</code></td><td width="40"><div style={{ width: '30px', height: '30px', background: `var(${t})`, border: '1px solid var(--color--border)' }} /></td></tr>))}
151
+ * </tbody></table>
152
+ * </Section>
153
+ *
154
+ * <Section title="Diffs — content versioning (added / removed / changed)">
155
+ * <table><tbody>
156
+ * {['--color--diff-added--surface', '--color--diff-removed--surface', '--color--diff-changed--surface',
157
+ * '--color--diff-added--surface-subtle', '--color--diff-removed--surface-subtle', '--color--diff-changed--surface-subtle',
158
+ * '--color--diff-added--outline-subtle', '--color--diff-removed--outline-subtle', '--color--diff-changed--outline-subtle',
159
+ * '--color--diff-changed--border', '--color--diff-changed--border-negative']
160
+ * .map((t) => (<tr key={t}><td><code>{t}</code></td><td width="40"><div style={{ width: '30px', height: '30px', background: `var(${t})`, border: '1px solid var(--color--border)' }} /></td></tr>))}
161
+ * </tbody></table>
162
+ * </Section>
163
+ *
164
+ * <Section title="Status — publishing workflow badges (ink-only)">
165
+ * <table><tbody>
166
+ * {['--color--status-draft--ink', '--color--status-outdated--ink', '--color--status-published--ink']
167
+ * .map((t) => (<tr key={t}><td><code>{t}</code></td><td><span style={{ color: `var(${t})`, fontWeight: 'bold' }}>Sample text</span></td></tr>))}
168
+ * </tbody></table>
169
+ * </Section>
170
+ *
171
+ * <Section title="Backdrop & overlay — scrims and floating UI">
172
+ * <table><tbody>
173
+ * {['--color--backdrop--surface', '--color--backdrop--ink',
174
+ * '--color--overlay--surface', '--color--overlay--surface-subtle', '--color--overlay--ink']
175
+ * .map((t) => (<tr key={t}><td><code>{t}</code></td><td width="40"><div style={{ width: '30px', height: '30px', background: `var(${t})`, border: '1px solid var(--color--border)' }} /></td></tr>))}
176
+ * </tbody></table>
177
+ * </Section>
178
+ *
179
+ * <Section title="Stacked — dark layered UI (uploaders, media players)">
180
+ * <p>Stacked gives you three layers of depth (base → surface → raised) plus buttons, borders and a translucent fill. Use it when a dark inline panel needs internal hierarchy.</p>
181
+ * <table><tbody>
182
+ * {['--color--stacked--surface-base', '--color--stacked--surface', '--color--stacked--surface-raised',
183
+ * '--color--stacked--surface-hover', '--color--stacked--surface-translucent',
184
+ * '--color--stacked--surface-button', '--color--stacked--surface-button-active',
185
+ * '--color--stacked--ink', '--color--stacked--ink-subtle', '--color--stacked--border']
186
+ * .map((t) => (<tr key={t}><td><code>{t}</code></td><td width="40"><div style={{ width: '30px', height: '30px', background: `var(${t})`, border: '1px solid var(--color--border)' }} /></td></tr>))}
187
+ * </tbody></table>
188
+ * </Section>
189
+ *
190
+ * <Section title="Progress — bar track and fill">
191
+ * <table><tbody>
192
+ * {['--color--progress--track', '--color--progress--fill', '--color--progress--fill-hover']
193
+ * .map((t) => (<tr key={t}><td><code>{t}</code></td><td width="40"><div style={{ width: '30px', height: '30px', background: `var(${t})`, border: '1px solid var(--color--border)' }} /></td></tr>))}
194
+ * </tbody></table>
195
+ * </Section>
196
+ *
197
+ * <Section title="Tooltip — small dark floating labels">
198
+ * <table><tbody>
199
+ * {['--color--tooltip--surface', '--color--tooltip--surface-hover', '--color--tooltip--ink', '--color--tooltip--ink-subtle']
200
+ * .map((t) => (<tr key={t}><td><code>{t}</code></td><td width="40"><div style={{ width: '30px', height: '30px', background: `var(${t})`, border: '1px solid var(--color--border)' }} /></td></tr>))}
201
+ * </tbody></table>
202
+ * </Section>
203
+ *
204
+ * <Section title="Code — dark code blocks, logs, error traces">
205
+ * <table><tbody>
206
+ * {['--color--code--surface', '--color--code--ink']
207
+ * .map((t) => (<tr key={t}><td><code>{t}</code></td><td width="40"><div style={{ width: '30px', height: '30px', background: `var(${t})`, border: '1px solid var(--color--border)' }} /></td></tr>))}
208
+ * </tbody></table>
209
+ * </Section>
210
+ *
211
+ * <Section title="Shadow colors and scrollbar">
212
+ * <table><tbody>
213
+ * {['--color--shadow-subtle', '--color--shadow', '--color--shadow-strong', '--color--scrollbar']
214
+ * .map((t) => (<tr key={t}><td><code>{t}</code></td><td width="40"><div style={{ width: '30px', height: '30px', background: `var(${t})`, border: '1px solid var(--color--border)' }} /></td></tr>))}
215
+ * </tbody></table>
216
+ * </Section>
217
+ *
218
+ * <Section title="Shadow composites — drop-in box-shadow values">
219
+ * <div style={{ display: 'flex', gap: 'var(--spacing-l)', padding: 'var(--spacing-l)' }}>
220
+ * {['--shadow--elevated', '--shadow--float', '--shadow--ambient'].map((t) => (
221
+ * <div key={t} style={{ textAlign: 'center' }}>
222
+ * <div style={{ width: '80px', height: '80px', background: 'var(--color--surface)', borderRadius: '4px', boxShadow: `var(${t})` }} />
223
+ * <code style={{ display: 'block', marginTop: 'var(--spacing-s)', fontSize: 'var(--font-size-xs)' }}>{t}</code>
224
+ * </div>
225
+ * ))}
226
+ * </div>
322
227
  * </Section>
323
228
  * </Canvas>;
324
229
  * ```
@@ -451,7 +356,7 @@ exports.useCtx = useCtx;
451
356
  * <td>
452
357
  * <div
453
358
  * style={{
454
- * background: 'var(--accent-color)',
359
+ * background: 'var(--color--accent--surface)',
455
360
  * width: 'var(--spacing-s)',
456
361
  * height: 'var(--spacing-s)',
457
362
  * }}
@@ -465,7 +370,7 @@ exports.useCtx = useCtx;
465
370
  * <td>
466
371
  * <div
467
372
  * style={{
468
- * background: 'var(--accent-color)',
373
+ * background: 'var(--color--accent--surface)',
469
374
  * width: 'var(--spacing-m)',
470
375
  * height: 'var(--spacing-m)',
471
376
  * }}
@@ -479,7 +384,7 @@ exports.useCtx = useCtx;
479
384
  * <td>
480
385
  * <div
481
386
  * style={{
482
- * background: 'var(--accent-color)',
387
+ * background: 'var(--color--accent--surface)',
483
388
  * width: 'var(--spacing-l)',
484
389
  * height: 'var(--spacing-l)',
485
390
  * }}
@@ -493,7 +398,7 @@ exports.useCtx = useCtx;
493
398
  * <td>
494
399
  * <div
495
400
  * style={{
496
- * background: 'var(--accent-color)',
401
+ * background: 'var(--color--accent--surface)',
497
402
  * width: 'var(--spacing-xl)',
498
403
  * height: 'var(--spacing-xl)',
499
404
  * }}
@@ -507,7 +412,7 @@ exports.useCtx = useCtx;
507
412
  * <td>
508
413
  * <div
509
414
  * style={{
510
- * background: 'var(--accent-color)',
415
+ * background: 'var(--color--accent--surface)',
511
416
  * width: 'var(--spacing-xxl)',
512
417
  * height: 'var(--spacing-xxl)',
513
418
  * }}
@@ -521,7 +426,7 @@ exports.useCtx = useCtx;
521
426
  * <td>
522
427
  * <div
523
428
  * style={{
524
- * background: 'var(--accent-color)',
429
+ * background: 'var(--color--accent--surface)',
525
430
  * width: 'var(--spacing-xxxl)',
526
431
  * height: 'var(--spacing-xxxl)',
527
432
  * }}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Canvas/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0DAAoC;AAKpC,6CAKe;AACf,gEAA+D;AAC/D,oFAAyC;AAIzC,8DAA8D;AACjD,QAAA,UAAU,GAAG,IAAA,qBAAa,EAAiB,IAAI,CAAC,CAAC;AAE9D,SAAgB,MAAM;IACpB,IAAM,GAAG,GAAG,IAAA,kBAAU,EAAC,kBAAU,CAAC,CAAC;IAEnC,IAAI,CAAC,GAAG,EAAE;QACR,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;KAChD;IAED,OAAO,GAAQ,CAAC;AAClB,CAAC;AARD,wBAQC;AAQD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;gBACL,oBAAkB,CAAC,eAAe,EAAE,CAAC;YACvC,CAAC,CAAC;SACH;QAED,OAAO,SAAS,CAAC;IACnB,CAAC,EAAE,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC;IAE1B,OAAO,CACL,8BAAC,kBAAU,CAAC,QAAQ,IAAC,KAAK,EAAE,GAAG;QAC7B,uCACE,SAAS,EAAE,IAAA,oBAAU,EAAC,gCAAC,CAAC,cAAc,EAAE,gCAAC,CAAC,MAAM,CAAC,EACjD,KAAK,EAAE,IAAA,2CAAoB,EAAC,GAAG,CAAC,IAE/B,QAAQ,CACL,CACc,CACvB,CAAC;AACJ,CAAC;AA9BD,wBA8BC"}
@@ -1 +1 @@
1
- { "themeVariables": "_themeVariables_2dr1w_1", "canvas": "_canvas_2dr1w_70" }
1
+ { "themeVariables": "_themeVariables_fb3bs_1", "canvas": "_canvas_fb3bs_128" }
@@ -1 +1 @@
1
- { "inspector": "_inspector_u6041_1", "panel": "_panel_u6041_5", "panelHandle": "_panelHandle_u6041_9", "panelBody": "_panelBody_u6041_25", "groupDescription": "_groupDescription_u6041_31", "propertyGroup": "_propertyGroup_u6041_37", "propertyOrMethod": "_propertyOrMethod_u6041_42", "propertyOrMethodBody": "_propertyOrMethodBody_u6041_51", "propertyOrMethodExample": "_propertyOrMethodExample_u6041_55", "propertyOrMethodName": "_propertyOrMethodName_u6041_68", "propertyOrMethodExampleActions": "_propertyOrMethodExampleActions_u6041_82" }
1
+ { "inspector": "_inspector_4pnoo_1", "panel": "_panel_4pnoo_5", "panelHandle": "_panelHandle_4pnoo_9", "panelBody": "_panelBody_4pnoo_25", "groupDescription": "_groupDescription_4pnoo_31", "propertyGroup": "_propertyGroup_4pnoo_37", "propertyOrMethod": "_propertyOrMethod_4pnoo_42", "propertyOrMethodBody": "_propertyOrMethodBody_4pnoo_51", "propertyOrMethodExample": "_propertyOrMethodExample_4pnoo_55", "propertyOrMethodName": "_propertyOrMethodName_4pnoo_68", "propertyOrMethodExampleActions": "_propertyOrMethodExampleActions_4pnoo_82" }
@@ -1 +1 @@
1
- { "Dropdown": "_Dropdown_nie0g_1", "Dropdown__spacer": "_Dropdown__spacer_nie0g_5", "Dropdown__menu__search": "_Dropdown__menu__search_nie0g_11", "Dropdown__menu__search__input": "_Dropdown__menu__search__input_nie0g_16", "Dropdown__menu-container": "_Dropdown__menu-container_nie0g_45", "Dropdown__menu": "_Dropdown__menu_nie0g_11", "Dropdown__menu__inner": "_Dropdown__menu__inner_nie0g_61", "Dropdown__menu__group__title": "_Dropdown__menu__group__title_nie0g_65", "Dropdown__menu__group__content": "_Dropdown__menu__group__content_nie0g_73", "Dropdown__menu__text": "_Dropdown__menu__text_nie0g_77", "Dropdown__menu__option": "_Dropdown__menu__option_nie0g_86", "Dropdown__menu__option--is-selected": "_Dropdown__menu__option--is-selected_nie0g_108", "Dropdown__menu__option--is-disabled": "_Dropdown__menu__option--is-disabled_nie0g_112", "Dropdown__menu__option__content": "_Dropdown__menu__option__content_nie0g_115", "Dropdown__menu__option--is-dangerous": "_Dropdown__menu__option--is-dangerous_nie0g_120", "Dropdown__menu__option--is-active": "_Dropdown__menu__option--is-active_nie0g_138", "Dropdown__menu__option--is-valid": "_Dropdown__menu__option--is-valid_nie0g_147", "Dropdown__menu__option--is-invalid": "_Dropdown__menu__option--is-invalid_nie0g_151", "Dropdown__menu__option__icons": "_Dropdown__menu__option__icons_nie0g_194", "Dropdown__menu__option__icon": "_Dropdown__menu__option__icon_nie0g_194", "Dropdown__menu__option__icon--delete": "_Dropdown__menu__option__icon--delete_nie0g_241", "Dropdown__menu__separator": "_Dropdown__menu__separator_nie0g_248" }
1
+ { "Dropdown": "_Dropdown_dz2gh_1", "Dropdown__spacer": "_Dropdown__spacer_dz2gh_5", "Dropdown__menu__search": "_Dropdown__menu__search_dz2gh_11", "Dropdown__menu__search__input": "_Dropdown__menu__search__input_dz2gh_16", "Dropdown__menu-container": "_Dropdown__menu-container_dz2gh_47", "Dropdown__menu": "_Dropdown__menu_dz2gh_11", "Dropdown__menu__inner": "_Dropdown__menu__inner_dz2gh_63", "Dropdown__menu__group__title": "_Dropdown__menu__group__title_dz2gh_67", "Dropdown__menu__group__content": "_Dropdown__menu__group__content_dz2gh_75", "Dropdown__menu__text": "_Dropdown__menu__text_dz2gh_79", "Dropdown__menu__option": "_Dropdown__menu__option_dz2gh_88", "Dropdown__menu__option--is-selected": "_Dropdown__menu__option--is-selected_dz2gh_110", "Dropdown__menu__option--is-disabled": "_Dropdown__menu__option--is-disabled_dz2gh_114", "Dropdown__menu__option__content": "_Dropdown__menu__option__content_dz2gh_117", "Dropdown__menu__option--is-dangerous": "_Dropdown__menu__option--is-dangerous_dz2gh_122", "Dropdown__menu__option--is-active": "_Dropdown__menu__option--is-active_dz2gh_140", "Dropdown__menu__option--is-valid": "_Dropdown__menu__option--is-valid_dz2gh_149", "Dropdown__menu__option--is-invalid": "_Dropdown__menu__option--is-invalid_dz2gh_153", "Dropdown__menu__option__icons": "_Dropdown__menu__option__icons_dz2gh_196", "Dropdown__menu__option__icon": "_Dropdown__menu__option__icon_dz2gh_196", "Dropdown__menu__option__icon--delete": "_Dropdown__menu__option__icon--delete_dz2gh_243", "Dropdown__menu__separator": "_Dropdown__menu__separator_dz2gh_250" }
@@ -1 +1 @@
1
- { "fieldError": "_fieldError_qi0xk_1" }
1
+ { "fieldError": "_fieldError_93pv2_1" }
@@ -1 +1 @@
1
- { "fieldHint": "_fieldHint_1avon_1" }
1
+ { "fieldHint": "_fieldHint_1q1d1_1" }
@@ -1 +1 @@
1
- { "formLabel": "_formLabel_tcjrv_1", "formLabel__code": "_formLabel__code_tcjrv_8", "formLabel--error": "_formLabel--error_tcjrv_14", "formLabel__label": "_formLabel__label_tcjrv_18", "formLabel__required": "_formLabel__required_tcjrv_30" }
1
+ { "formLabel": "_formLabel_1qzmk_1", "formLabel__code": "_formLabel__code_1qzmk_8", "formLabel--error": "_formLabel--error_1qzmk_14", "formLabel__label": "_formLabel__label_1qzmk_18", "formLabel__required": "_formLabel__required_1qzmk_30" }
@@ -1 +1 @@
1
- { "hotKey": "_hotKey_1eko8_1", "label": "_label_1eko8_7", "keys": "_keys_1eko8_12", "hotKeyKey": "_hotKeyKey_1eko8_18" }
1
+ { "hotKey": "_hotKey_hlj7l_1", "label": "_label_hlj7l_7", "keys": "_keys_hlj7l_12", "hotKeyKey": "_hotKeyKey_hlj7l_18" }
@@ -1 +1 @@
1
- { "Section": "_Section_zh95u_1", "Section--highlighted": "_Section--highlighted_zh95u_5", "pageContentSectionHighligh": "_pageContentSectionHighligh_zh95u_1", "Section__header": "_Section__header_zh95u_19", "Section__title": "_Section__title_zh95u_38", "Section__title__content": "_Section__title__content_zh95u_52", "Section__arrow": "_Section__arrow_zh95u_55", "Section__arrow--is-open": "_Section__arrow--is-open_zh95u_82" }
1
+ { "Section": "_Section_17d0k_1", "Section--highlighted": "_Section--highlighted_17d0k_5", "pageContentSectionHighligh": "_pageContentSectionHighligh_17d0k_1", "Section__header": "_Section__header_17d0k_19", "Section__title": "_Section__title_17d0k_38", "Section__title__content": "_Section__title__content_17d0k_52", "Section__arrow": "_Section__arrow_17d0k_55", "Section__arrow--is-open": "_Section__arrow--is-open_17d0k_82" }