@yewdiel21/motion-kit 0.14.0 → 0.15.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 (154) hide show
  1. package/README.md +174 -155
  2. package/bin/motion-kit.mjs +3 -3
  3. package/dist/auto/index.d.ts +6 -3
  4. package/dist/auto/index.js +8 -2
  5. package/dist/auto/index.js.map +1 -1
  6. package/dist/{chunk-EY4BJKC4.js → chunk-6IRJYXJU.js} +2 -2
  7. package/dist/{chunk-CU6SXW3E.js → chunk-A6QQCF6V.js} +1309 -310
  8. package/dist/chunk-A6QQCF6V.js.map +1 -0
  9. package/dist/chunk-JXRS3OEA.js +3638 -0
  10. package/dist/chunk-JXRS3OEA.js.map +1 -0
  11. package/dist/css/components/add-to-cart.css +72 -0
  12. package/dist/css/components/bidirectional-slider.css +168 -0
  13. package/dist/css/components/data-table.css +121 -26
  14. package/dist/css/components/filter-builder.css +10 -15
  15. package/dist/css/components/heatmap-chart.css +391 -0
  16. package/dist/css/components/hover-card.css +8 -2
  17. package/dist/css/components/image-preview.css +90 -2
  18. package/dist/css/components/json-viewer.css +33 -1
  19. package/dist/css/components/nav.css +102 -102
  20. package/dist/css/components/orbit-menu.css +130 -0
  21. package/dist/css/components/pagination.css +10 -5
  22. package/dist/css/components/pie-chart.css +390 -0
  23. package/dist/css/components/pill-button.css +135 -0
  24. package/dist/css/components/radar-chart.css +370 -0
  25. package/dist/css/components/radial-chart.css +398 -0
  26. package/dist/css/components/sankey-chart.css +358 -0
  27. package/dist/css/components/scroll-island.css +111 -0
  28. package/dist/css/components/select.css +136 -0
  29. package/dist/css/components/toolbar.css +122 -0
  30. package/dist/css/components/tree-view.css +79 -0
  31. package/dist/css/components/voice-dots.css +70 -0
  32. package/dist/elements/index.d.ts +180 -7
  33. package/dist/elements/index.js +287 -6
  34. package/dist/elements/index.js.map +1 -1
  35. package/dist/{engine-Cn6IhE3z.d.ts → engine-5zRIssTO.d.ts} +11 -1
  36. package/dist/index.css +1832 -168
  37. package/dist/index.d.ts +4 -4
  38. package/dist/index.js +33 -3
  39. package/dist/index.js.map +1 -1
  40. package/dist/react/index.d.ts +117 -11
  41. package/dist/react/index.js +314 -13
  42. package/dist/react/index.js.map +1 -1
  43. package/dist/{reduced-BBUusld6.d.ts → reduced-6X_bns60.d.ts} +1 -1
  44. package/dist/{reveal-DEvp6U6T.d.ts → reveal-BfyKKsw4.d.ts} +97 -4
  45. package/dist/store-CA2Qcun_.d.ts +453 -0
  46. package/package.json +9 -16
  47. package/registry.json +1096 -948
  48. package/src/auto/auto-init.ts +6 -0
  49. package/src/components/add-to-cart/README.md +34 -0
  50. package/src/components/add-to-cart/add-to-cart.css +71 -0
  51. package/src/components/add-to-cart/element.ts +20 -0
  52. package/src/components/add-to-cart/engine.ts +206 -0
  53. package/src/components/add-to-cart/react.tsx +29 -0
  54. package/src/components/bidirectional-slider/README.md +46 -0
  55. package/src/components/bidirectional-slider/bidirectional-slider.css +167 -0
  56. package/src/components/bidirectional-slider/element.ts +42 -0
  57. package/src/components/bidirectional-slider/engine.ts +289 -0
  58. package/src/components/bidirectional-slider/react.tsx +45 -0
  59. package/src/components/chart/README.md +10 -0
  60. package/src/components/chart/element.ts +2 -0
  61. package/src/components/chart/engine.ts +50 -23
  62. package/src/components/chart/parts.ts +237 -0
  63. package/src/components/chart/react.tsx +2 -2
  64. package/src/components/chart/use-chart.ts +55 -0
  65. package/src/components/data-table/README.md +3 -3
  66. package/src/components/data-table/data-table.css +121 -26
  67. package/src/components/data-table/engine.ts +81 -29
  68. package/src/components/editable-table/engine.ts +67 -11
  69. package/src/components/filter-builder/engine.ts +33 -2
  70. package/src/components/filter-builder/filter-builder.css +10 -15
  71. package/src/components/heatmap-chart/README.md +48 -0
  72. package/src/components/heatmap-chart/element.ts +21 -0
  73. package/src/components/heatmap-chart/engine.ts +281 -0
  74. package/src/components/heatmap-chart/heatmap-chart.css +93 -0
  75. package/src/components/heatmap-chart/react.tsx +14 -0
  76. package/src/components/hover-card/engine.ts +30 -1
  77. package/src/components/hover-card/hover-card.css +8 -2
  78. package/src/components/image-preview/element.ts +1 -1
  79. package/src/components/image-preview/engine.ts +95 -15
  80. package/src/components/image-preview/image-preview.css +90 -2
  81. package/src/components/image-preview/react.tsx +3 -3
  82. package/src/components/json-viewer/engine.ts +11 -2
  83. package/src/components/json-viewer/json-viewer.css +33 -1
  84. package/src/components/nav/README.md +12 -10
  85. package/src/components/nav/element.ts +5 -5
  86. package/src/components/nav/engine.ts +21 -14
  87. package/src/components/nav/nav.css +102 -102
  88. package/src/components/nav/react.tsx +4 -4
  89. package/src/components/orbit-menu/README.md +46 -0
  90. package/src/components/orbit-menu/element.ts +27 -0
  91. package/src/components/orbit-menu/engine.ts +179 -0
  92. package/src/components/orbit-menu/orbit-menu.css +129 -0
  93. package/src/components/orbit-menu/react.tsx +44 -0
  94. package/src/components/pagination/README.md +1 -1
  95. package/src/components/pagination/engine.ts +50 -4
  96. package/src/components/pagination/pagination.css +10 -5
  97. package/src/components/pie-chart/README.md +48 -0
  98. package/src/components/pie-chart/element.ts +30 -0
  99. package/src/components/pie-chart/engine.ts +283 -0
  100. package/src/components/pie-chart/pie-chart.css +92 -0
  101. package/src/components/pie-chart/react.tsx +14 -0
  102. package/src/components/pill-button/README.md +46 -0
  103. package/src/components/pill-button/element.ts +16 -0
  104. package/src/components/pill-button/engine.ts +77 -0
  105. package/src/components/pill-button/pill-button.css +134 -0
  106. package/src/components/pill-button/react.tsx +32 -0
  107. package/src/components/radar-chart/README.md +48 -0
  108. package/src/components/radar-chart/element.ts +30 -0
  109. package/src/components/radar-chart/engine.ts +327 -0
  110. package/src/components/radar-chart/radar-chart.css +72 -0
  111. package/src/components/radar-chart/react.tsx +14 -0
  112. package/src/components/radial-chart/README.md +48 -0
  113. package/src/components/radial-chart/element.ts +30 -0
  114. package/src/components/radial-chart/engine.ts +290 -0
  115. package/src/components/radial-chart/radial-chart.css +100 -0
  116. package/src/components/radial-chart/react.tsx +14 -0
  117. package/src/components/sankey-chart/README.md +48 -0
  118. package/src/components/sankey-chart/element.ts +31 -0
  119. package/src/components/sankey-chart/engine.ts +401 -0
  120. package/src/components/sankey-chart/react.tsx +14 -0
  121. package/src/components/sankey-chart/sankey-chart.css +60 -0
  122. package/src/components/scroll-island/README.md +34 -0
  123. package/src/components/scroll-island/element.ts +16 -0
  124. package/src/components/scroll-island/engine.ts +252 -0
  125. package/src/components/scroll-island/react.tsx +26 -0
  126. package/src/components/scroll-island/scroll-island.css +110 -0
  127. package/src/components/select/README.md +34 -0
  128. package/src/components/select/element.ts +26 -0
  129. package/src/components/select/engine.ts +267 -0
  130. package/src/components/select/react.tsx +33 -0
  131. package/src/components/select/select.css +135 -0
  132. package/src/components/toolbar/README.md +46 -0
  133. package/src/components/toolbar/element.ts +30 -0
  134. package/src/components/toolbar/engine.ts +230 -0
  135. package/src/components/toolbar/react.tsx +34 -0
  136. package/src/components/toolbar/toolbar.css +121 -0
  137. package/src/components/tree-view/element.ts +1 -1
  138. package/src/components/tree-view/engine.ts +174 -0
  139. package/src/components/tree-view/react.tsx +7 -3
  140. package/src/components/tree-view/tree-view.css +79 -0
  141. package/src/components/voice-dots/README.md +48 -0
  142. package/src/components/voice-dots/element.ts +45 -0
  143. package/src/components/voice-dots/engine.ts +243 -0
  144. package/src/components/voice-dots/react.tsx +52 -0
  145. package/src/components/voice-dots/voice-dots.css +69 -0
  146. package/src/elements/index.ts +39 -0
  147. package/src/index.ts +16 -0
  148. package/src/motion/liquid.ts +14 -4
  149. package/src/react/index.ts +14 -1
  150. package/dist/chunk-6P4P7NU6.js +0 -1401
  151. package/dist/chunk-6P4P7NU6.js.map +0 -1
  152. package/dist/chunk-CU6SXW3E.js.map +0 -1
  153. package/dist/store-DjkTBX7f.d.ts +0 -195
  154. /package/dist/{chunk-EY4BJKC4.js.map → chunk-6IRJYXJU.js.map} +0 -0
@@ -0,0 +1,358 @@
1
+ /* components/chart/chart.css */
2
+ /* chart — Melon Mind's Indicadores: a monochrome line on the surface, the baseline only, the last value in a pill,
3
+ a dotted guide, the inverse glass tooltip and outlined legend pills.
4
+ Several series use --mk-chart-1…8 (a colour-blind-checked order, light and dark steps). */
5
+ .mk-chart,
6
+ mk-chart {
7
+ --mk-chart-mono: var(--mk-text);
8
+ --mk-chart-1: #2a78d6;
9
+ --mk-chart-2: #eb6834;
10
+ --mk-chart-3: #1baf7a;
11
+ --mk-chart-4: #eda100;
12
+ --mk-chart-5: #e87ba4;
13
+ --mk-chart-6: #008300;
14
+ --mk-chart-7: #6250d6;
15
+ --mk-chart-8: #e34948;
16
+ --mk-chart-other: var(--mk-muted);
17
+ --mk-chart-surface: var(--mk-surface-1);
18
+ --mk-chart-grid: color-mix(in srgb, var(--mk-text) 14%, transparent);
19
+ position: relative;
20
+ display: grid;
21
+ gap: 0.75rem;
22
+ min-width: 0;
23
+ color: var(--mk-text);
24
+ font-family: var(--mk-font);
25
+ }
26
+
27
+ @media (prefers-color-scheme: dark) {
28
+ :where(:root:not([data-mk-mode='light'])) :is(.mk-chart, mk-chart) {
29
+ --mk-chart-1: #3987e5;
30
+ --mk-chart-2: #d95926;
31
+ --mk-chart-3: #199e70;
32
+ --mk-chart-4: #c98500;
33
+ --mk-chart-5: #d55181;
34
+ --mk-chart-6: #008300;
35
+ --mk-chart-7: #9085e9;
36
+ --mk-chart-8: #e66767;
37
+ }
38
+ }
39
+
40
+ :where(:root[data-mk-mode='dark']) :is(.mk-chart, mk-chart) {
41
+ --mk-chart-1: #3987e5;
42
+ --mk-chart-2: #d95926;
43
+ --mk-chart-3: #199e70;
44
+ --mk-chart-4: #c98500;
45
+ --mk-chart-5: #d55181;
46
+ --mk-chart-6: #008300;
47
+ --mk-chart-7: #9085e9;
48
+ --mk-chart-8: #e66767;
49
+ }
50
+
51
+ :is(.mk-chart, mk-chart) [data-mk-chart-plot] {
52
+ position: relative;
53
+ min-width: 0;
54
+ }
55
+
56
+ :is(.mk-chart, mk-chart) [data-mk-chart-plot][hidden] {
57
+ display: none;
58
+ }
59
+
60
+ :is(.mk-chart, mk-chart) [data-mk-chart-svg] {
61
+ display: block;
62
+ width: 100%;
63
+ height: auto;
64
+ overflow: visible;
65
+ touch-action: pan-y;
66
+ border-radius: 12px;
67
+ cursor: crosshair;
68
+ }
69
+
70
+ :is(.mk-chart, mk-chart) [data-mk-chart-svg]:focus {
71
+ outline: none;
72
+ }
73
+
74
+ :is(.mk-chart, mk-chart) [data-mk-chart-svg]:focus-visible {
75
+ outline: 2px solid var(--mk-accent);
76
+ outline-offset: 4px;
77
+ }
78
+
79
+ :is(.mk-chart, mk-chart) [data-mk-part='grid'] line {
80
+ stroke: var(--mk-chart-grid);
81
+ stroke-width: 1;
82
+ shape-rendering: crispEdges;
83
+ }
84
+
85
+ :is(.mk-chart, mk-chart) [data-mk-part='grid'] line[data-mk-zero] {
86
+ stroke: color-mix(in srgb, var(--mk-text) 22%, transparent);
87
+ }
88
+
89
+ :is(.mk-chart, mk-chart) text {
90
+ fill: var(--mk-muted);
91
+ font-size: 11px;
92
+ font-variant-numeric: tabular-nums;
93
+ }
94
+
95
+ :is(.mk-chart, mk-chart) [data-mk-part='total'] {
96
+ fill: var(--mk-text);
97
+ font-size: 10px;
98
+ font-weight: 500;
99
+ }
100
+
101
+ :is(.mk-chart, mk-chart) [data-mk-part='line'] {
102
+ fill: none;
103
+ stroke-linecap: round;
104
+ stroke-linejoin: round;
105
+ }
106
+
107
+ :is(.mk-chart, mk-chart) :is([data-mk-part='dot'], [data-mk-part='marker'], [data-mk-part='end']) {
108
+ stroke: var(--mk-chart-surface);
109
+ stroke-width: 2.5;
110
+ }
111
+
112
+ /* The selection guide: Melonmind's dotted day line. */
113
+ :is(.mk-chart, mk-chart) [data-mk-part='guide'] {
114
+ stroke: color-mix(in srgb, var(--mk-text) 45%, transparent);
115
+ stroke-width: 1;
116
+ stroke-dasharray: 2 4;
117
+ shape-rendering: crispEdges;
118
+ }
119
+
120
+ :is(.mk-chart, mk-chart) [data-mk-part='band'] {
121
+ fill: color-mix(in srgb, var(--mk-text) 6%, transparent);
122
+ }
123
+
124
+ :is(.mk-chart, mk-chart) [data-mk-part='series'] path[data-mk-index] {
125
+ transition: opacity 0.2s ease;
126
+ }
127
+
128
+ :is(.mk-chart, mk-chart) [data-mk-part='series'] path[data-mk-dim] {
129
+ opacity: 0.35;
130
+ }
131
+
132
+ /* The last value. */
133
+ :is(.mk-chart, mk-chart) [data-mk-chart-end] {
134
+ position: absolute;
135
+ top: 0;
136
+ left: 0;
137
+ padding: 0.15rem 0.55rem;
138
+ border-radius: var(--mk-radius-full);
139
+ background: var(--mk-surface-3);
140
+ color: var(--mk-text);
141
+ font-size: 0.75rem;
142
+ font-weight: 500;
143
+ font-variant-numeric: tabular-nums;
144
+ white-space: nowrap;
145
+ pointer-events: none;
146
+ }
147
+
148
+ :is(.mk-chart, mk-chart) [data-mk-chart-end][hidden] {
149
+ display: none;
150
+ }
151
+
152
+ /* Tooltip: the inverse glass, 12 px radius, 8 × 12 padding (Melonmind). */
153
+ :is(.mk-chart, mk-chart) [data-mk-chart-tooltip] {
154
+ position: absolute;
155
+ top: 0;
156
+ left: 0;
157
+ z-index: 2;
158
+ display: grid;
159
+ gap: 0.2rem;
160
+ min-width: 8rem;
161
+ max-width: 16rem;
162
+ padding: 0.5rem 0.75rem;
163
+ border-radius: 12px;
164
+ background: var(--mk-glass-inverse);
165
+ box-shadow: var(--mk-glass-bevel);
166
+ backdrop-filter: blur(16px);
167
+ color: var(--mk-on-glass-inverse);
168
+ font-size: 0.8125rem;
169
+ line-height: 1.3;
170
+ pointer-events: none;
171
+ transform-origin: 50% 100%;
172
+ }
173
+
174
+ :is(.mk-chart, mk-chart) [data-mk-chart-tooltip][hidden] {
175
+ display: none;
176
+ }
177
+
178
+ :is(.mk-chart, mk-chart) [data-mk-chart-tooltip] strong {
179
+ font-weight: 600;
180
+ }
181
+
182
+ :is(.mk-chart, mk-chart) [data-mk-chart-row] {
183
+ display: grid;
184
+ grid-template-columns: 0.6rem minmax(0, 1fr) auto;
185
+ align-items: center;
186
+ gap: 0.5rem;
187
+ opacity: 0.9;
188
+ }
189
+
190
+ :is(.mk-chart, mk-chart) [data-mk-chart-row] i {
191
+ width: 0.6rem;
192
+ height: 0.6rem;
193
+ border-radius: 3px;
194
+ box-shadow: 0 0 0 1px color-mix(in srgb, var(--mk-on-glass-inverse) 30%, transparent);
195
+ }
196
+
197
+ :is(.mk-chart, mk-chart) [data-mk-chart-row] b {
198
+ font-weight: 500;
199
+ font-variant-numeric: tabular-nums;
200
+ }
201
+
202
+ :is(.mk-chart, mk-chart) [data-mk-chart-row] i[data-mk-mono] {
203
+ height: 2px;
204
+ border-radius: 2px;
205
+ background: currentColor;
206
+ box-shadow: none;
207
+ }
208
+
209
+ :is(.mk-chart, mk-chart) [data-mk-chart-row] i[data-mk-dash] {
210
+ height: 0;
211
+ border-top: 2px dashed currentColor;
212
+ border-radius: 0;
213
+ background: none;
214
+ box-shadow: none;
215
+ }
216
+
217
+ :is(.mk-chart, mk-chart) [data-mk-chart-row='total'] {
218
+ margin-top: 0.15rem;
219
+ padding-top: 0.25rem;
220
+ border-top: 1px solid color-mix(in srgb, var(--mk-on-glass-inverse) 25%, transparent);
221
+ }
222
+
223
+ :is(.mk-chart, mk-chart) [data-mk-chart-row='total'] i {
224
+ box-shadow: none;
225
+ }
226
+
227
+ /* Legend: outlined pills (Melonmind «— Ingresado»). */
228
+ :is(.mk-chart, mk-chart) [data-mk-chart-legend] {
229
+ display: flex;
230
+ flex-wrap: wrap;
231
+ gap: 0.4rem;
232
+ margin: 0;
233
+ padding: 0;
234
+ color: var(--mk-text);
235
+ font-size: 0.8125rem;
236
+ list-style: none;
237
+ }
238
+
239
+ :is(.mk-chart, mk-chart) [data-mk-chart-legend][hidden] {
240
+ display: none;
241
+ }
242
+
243
+ :is(.mk-chart, mk-chart) [data-mk-chart-legend] li {
244
+ display: inline-flex;
245
+ align-items: center;
246
+ gap: 0.45rem;
247
+ padding: 0.2rem 0.7rem;
248
+ border: 1px solid var(--mk-outline-soft);
249
+ border-radius: var(--mk-radius-full);
250
+ }
251
+
252
+ :is(.mk-chart, mk-chart) [data-mk-chart-swatch] {
253
+ width: 0.7rem;
254
+ height: 0.7rem;
255
+ border-radius: 3px;
256
+ }
257
+
258
+ :is(.mk-chart, mk-chart) [data-mk-chart-swatch][data-mk-type='line'],
259
+ :is(.mk-chart, mk-chart) [data-mk-chart-swatch][data-mk-type='area'] {
260
+ width: 0.9rem;
261
+ height: 2px;
262
+ border-radius: 2px;
263
+ }
264
+
265
+ :is(.mk-chart, mk-chart) [data-mk-chart-swatch][data-mk-dash] {
266
+ height: 0;
267
+ background: none !important;
268
+ border-top: 2px dashed currentColor;
269
+ }
270
+
271
+ :is(.mk-chart, mk-chart) [data-mk-chart-empty] {
272
+ display: grid;
273
+ place-items: center;
274
+ min-height: 10rem;
275
+ margin: 0;
276
+ border-radius: 24px;
277
+ background: var(--mk-surface-2);
278
+ color: var(--mk-muted);
279
+ font-size: 0.875rem;
280
+ }
281
+
282
+ :is(.mk-chart, mk-chart) [data-mk-chart-empty][hidden] {
283
+ display: none;
284
+ }
285
+
286
+ @media (prefers-reduced-motion: reduce) {
287
+ :is(.mk-chart, mk-chart) [data-mk-part='series'] path {
288
+ transition: none;
289
+ }
290
+ }
291
+
292
+ @media (forced-colors: active) {
293
+ :is(.mk-chart, mk-chart) [data-mk-part='line'] {
294
+ stroke: CanvasText !important;
295
+ }
296
+ }
297
+
298
+ /* components/sankey-chart/sankey-chart.css */
299
+ /* sankey-chart — bands that fade from their source's colour to their target's (35 %), nodes with 3 px corners;
300
+ needs chart.css for the family. The flow under the pointer lights up, the rest step back. */
301
+ .mk-sankey-chart,
302
+ mk-sankey-chart {
303
+ display: grid;
304
+ gap: 1rem;
305
+ }
306
+
307
+ [data-mk-chart-type='sankey'] [data-mk-chart-svg] {
308
+ cursor: pointer;
309
+ }
310
+
311
+ [data-mk-chart-type='sankey'] [data-mk-part='links'] path {
312
+ opacity: 0.35;
313
+ transition: opacity 0.2s ease;
314
+ }
315
+
316
+ [data-mk-chart-type='sankey'] [data-mk-part='links'] path[data-mk-on] {
317
+ opacity: 0.7;
318
+ }
319
+
320
+ [data-mk-chart-type='sankey'] [data-mk-part='links'] path[data-mk-dim] {
321
+ opacity: 0.1;
322
+ }
323
+
324
+ [data-mk-chart-type='sankey'] [data-mk-part='nodes'] rect {
325
+ transition: opacity 0.2s ease;
326
+ }
327
+
328
+ [data-mk-chart-type='sankey'] [data-mk-part='nodes'] rect[data-mk-dim] {
329
+ opacity: 0.45;
330
+ }
331
+
332
+ [data-mk-chart-type='sankey'] [data-mk-part='labels'] text {
333
+ fill: var(--mk-text);
334
+ font-size: 12px;
335
+ font-weight: 500;
336
+ paint-order: stroke;
337
+ stroke: var(--mk-chart-surface);
338
+ stroke-width: 3px;
339
+ stroke-linejoin: round;
340
+ pointer-events: none;
341
+ }
342
+
343
+ [data-mk-chart-type='sankey'] [data-mk-part='amount'] {
344
+ fill: var(--mk-muted);
345
+ font-weight: 400;
346
+ }
347
+
348
+ @media (prefers-reduced-motion: reduce) {
349
+ [data-mk-chart-type='sankey'] :is([data-mk-part='links'] path, [data-mk-part='nodes'] rect) {
350
+ transition: none;
351
+ }
352
+ }
353
+
354
+ @media (forced-colors: active) {
355
+ [data-mk-chart-type='sankey'] [data-mk-part='nodes'] rect {
356
+ fill: CanvasText !important;
357
+ }
358
+ }
@@ -0,0 +1,111 @@
1
+ /* components/scroll-island/scroll-island.css */
2
+ /* scroll-island — the scroller's bar hides and a thin pill takes its place while scrolling; near the edge it swells
3
+ into a dark capsule (iOS-island style) with the percentage and the current section, which can be dragged. */
4
+ .mk-scroll-island,
5
+ mk-scroll-island {
6
+ display: block;
7
+ }
8
+
9
+ [data-mk-scroll-island-host] {
10
+ scrollbar-width: none;
11
+ }
12
+
13
+ [data-mk-scroll-island-host]::-webkit-scrollbar {
14
+ display: none;
15
+ }
16
+
17
+ [data-mk-scroll-island] {
18
+ position: fixed;
19
+ z-index: 2147483640;
20
+ pointer-events: none;
21
+ }
22
+
23
+ [data-mk-island-rail] {
24
+ position: absolute;
25
+ top: 0;
26
+ right: 0;
27
+ bottom: 0;
28
+ width: 1.5rem;
29
+ cursor: pointer;
30
+ pointer-events: none;
31
+ }
32
+
33
+ [data-mk-island-thumb] {
34
+ position: absolute;
35
+ top: 0;
36
+ right: 0;
37
+ display: flex;
38
+ align-items: center;
39
+ justify-content: center;
40
+ width: 4px;
41
+ overflow: hidden;
42
+ border-radius: 999px;
43
+ background: color-mix(in srgb, var(--mk-text) 42%, transparent);
44
+ color: #fff;
45
+ opacity: 0;
46
+ transition:
47
+ opacity 0.25s ease,
48
+ background-color 0.3s ease,
49
+ box-shadow 0.3s ease;
50
+ }
51
+
52
+ [data-mk-scroll-island][data-mk-state='bar'] [data-mk-island-thumb] {
53
+ opacity: 1;
54
+ }
55
+
56
+ [data-mk-scroll-island][data-mk-state='island'] [data-mk-island-rail],
57
+ [data-mk-scroll-island][data-mk-state='island'] [data-mk-island-thumb] {
58
+ pointer-events: auto;
59
+ }
60
+
61
+ [data-mk-scroll-island][data-mk-state='island'] [data-mk-island-thumb] {
62
+ background: #0c0c0e;
63
+ box-shadow:
64
+ inset 0 0 0 1px rgb(255 255 255 / 0.08),
65
+ 0 12px 30px -8px rgb(0 0 0 / 0.45);
66
+ opacity: 1;
67
+ cursor: grab;
68
+ }
69
+
70
+ [data-mk-scroll-island][data-mk-dragging] [data-mk-island-thumb] {
71
+ cursor: grabbing;
72
+ }
73
+
74
+ [data-mk-island-content] {
75
+ display: inline-flex;
76
+ flex: none;
77
+ align-items: center;
78
+ gap: 0.5rem;
79
+ padding: 0 14px;
80
+ font-family: var(--mk-font);
81
+ font-size: 0.8125rem;
82
+ font-weight: 600;
83
+ font-variant-numeric: tabular-nums;
84
+ white-space: nowrap;
85
+ opacity: 0;
86
+ transition: opacity 0.18s ease;
87
+ }
88
+
89
+ [data-mk-scroll-island][data-mk-state='island'] [data-mk-island-content] {
90
+ opacity: 1;
91
+ transition-delay: 0.1s;
92
+ }
93
+
94
+ [data-mk-island-section] {
95
+ max-width: 12rem;
96
+ overflow: hidden;
97
+ color: rgb(255 255 255 / 0.68);
98
+ font-weight: 500;
99
+ text-overflow: ellipsis;
100
+ }
101
+
102
+ [data-mk-island-section][hidden] {
103
+ display: none;
104
+ }
105
+
106
+ @media (prefers-reduced-motion: reduce) {
107
+ [data-mk-island-thumb],
108
+ [data-mk-island-content] {
109
+ transition: none;
110
+ }
111
+ }
@@ -0,0 +1,136 @@
1
+ /* components/select/select.css */
2
+ /* select — a 12 px field button (surface-3) with the chosen label and a chevron that turns, opening the kit's menu:
3
+ a 16 px surface-1 panel with 8 px items, group headings and a check on the chosen one. The label slides in out of a
4
+ blur when it changes. The <select> it keeps in step is hidden. */
5
+ .mk-select,
6
+ mk-select {
7
+ display: inline-flex;
8
+ min-width: 0;
9
+ max-width: 100%;
10
+ vertical-align: middle;
11
+ }
12
+
13
+ :is(.mk-select, mk-select) > select[hidden] {
14
+ display: none;
15
+ }
16
+
17
+ [data-mk-select-trigger] {
18
+ display: inline-flex;
19
+ flex: 1;
20
+ align-items: center;
21
+ justify-content: space-between;
22
+ gap: 0.5rem;
23
+ min-width: 0;
24
+ height: 2.5rem;
25
+ padding: 0 0.55rem 0 0.8rem;
26
+ border: 0;
27
+ border-radius: 12px;
28
+ background: var(--mk-surface-3);
29
+ color: var(--mk-text);
30
+ font: inherit;
31
+ font-size: 0.875rem;
32
+ text-align: start;
33
+ cursor: pointer;
34
+ transition:
35
+ background-color 0.15s,
36
+ box-shadow 0.2s;
37
+ }
38
+
39
+ [data-mk-select-trigger]:hover:not(:disabled),
40
+ [data-mk-select-trigger][aria-expanded='true'] {
41
+ background: color-mix(in srgb, var(--mk-surface-3) 80%, var(--mk-text) 8%);
42
+ }
43
+
44
+ [data-mk-select-trigger]:focus-visible {
45
+ outline: none;
46
+ box-shadow: 0 0 0 3px color-mix(in srgb, var(--mk-accent) 35%, transparent);
47
+ }
48
+
49
+ [data-mk-select-trigger]:disabled {
50
+ opacity: 0.45;
51
+ cursor: default;
52
+ }
53
+
54
+ [data-mk-select-value] {
55
+ flex: 1;
56
+ min-width: 0;
57
+ overflow: hidden;
58
+ text-overflow: ellipsis;
59
+ white-space: nowrap;
60
+ }
61
+
62
+ :is(.mk-select, mk-select)[data-mk-placeholder] [data-mk-select-value] {
63
+ color: var(--mk-muted);
64
+ }
65
+
66
+ [data-mk-select-chevron] {
67
+ flex: none;
68
+ color: var(--mk-muted);
69
+ transition: transform 0.3s cubic-bezier(0.38, 0.49, 0, 1.5);
70
+ }
71
+
72
+ [data-mk-select-trigger][aria-expanded='true'] [data-mk-select-chevron] {
73
+ transform: rotate(180deg);
74
+ }
75
+
76
+ /* The menu: like the panels of the data table (surface-1, a hairline, 8 px items). */
77
+ .mk-dialog.mk-select-menu {
78
+ --mk-dialog-bg: var(--mk-surface-1);
79
+ --mk-dialog-radius: 16px;
80
+ --mk-dialog-shadow: 0 0 0 1px var(--mk-outline-soft), 0 16px 48px -12px color-mix(in srgb, var(--mk-shadow-color, #000) 35%, transparent);
81
+ gap: 0.125rem;
82
+ min-width: max(10rem, var(--mk-select-width, 0px));
83
+ max-height: min(20rem, 60dvh);
84
+ padding: 0.375rem;
85
+ overflow-y: auto;
86
+ -webkit-backdrop-filter: none;
87
+ backdrop-filter: none;
88
+ }
89
+
90
+ .mk-dialog.mk-select-menu [data-mk-item] {
91
+ flex: none;
92
+ gap: 0.625rem;
93
+ min-height: 2.25rem;
94
+ padding: 0 0.625rem;
95
+ border-radius: 8px;
96
+ font-family: inherit;
97
+ font-size: 0.875rem;
98
+ font-weight: 500;
99
+ letter-spacing: normal;
100
+ }
101
+
102
+ .mk-dialog.mk-select-menu [data-mk-item]:hover,
103
+ .mk-dialog.mk-select-menu [data-mk-item]:focus-visible {
104
+ background: var(--mk-surface-2);
105
+ }
106
+
107
+ .mk-dialog.mk-select-menu [data-mk-item] svg {
108
+ flex: none;
109
+ margin-left: auto;
110
+ opacity: 0;
111
+ }
112
+
113
+ .mk-dialog.mk-select-menu [data-mk-item][aria-checked='true'] {
114
+ font-weight: 600;
115
+ }
116
+
117
+ .mk-dialog.mk-select-menu [data-mk-item][aria-checked='true'] svg {
118
+ opacity: 1;
119
+ }
120
+
121
+ [data-mk-select-group] {
122
+ flex: none;
123
+ margin: 0.375rem 0.625rem 0.125rem;
124
+ color: var(--mk-muted);
125
+ font-size: 0.6875rem;
126
+ font-weight: 700;
127
+ letter-spacing: 0.04em;
128
+ text-transform: uppercase;
129
+ }
130
+
131
+ @media (prefers-reduced-motion: reduce) {
132
+ [data-mk-select-trigger],
133
+ [data-mk-select-chevron] {
134
+ transition: none;
135
+ }
136
+ }
@@ -0,0 +1,122 @@
1
+ /* components/toolbar/toolbar.css */
2
+ /* toolbar — a dark rail of round tools; a light blob sits under the chosen one and stretches like slime to the next.
3
+ The label beside a tool is a small dark pill. In the dark theme the rail turns light and the blob dark. */
4
+ .mk-toolbar,
5
+ mk-toolbar {
6
+ --mk-toolbar-rail: color-mix(in srgb, var(--mk-text) 86%, var(--mk-bg));
7
+ --mk-toolbar-on-rail: var(--mk-bg);
8
+ --mk-toolbar-blob: var(--mk-bg);
9
+ --mk-toolbar-on-blob: var(--mk-text);
10
+ --mk-toolbar-tool: 3.5rem;
11
+ position: relative;
12
+ display: inline-flex;
13
+ width: max-content;
14
+ max-width: 100%;
15
+ flex-direction: column;
16
+ gap: 0.25rem;
17
+ padding: 0.5rem;
18
+ border-radius: var(--mk-radius-full);
19
+ background: var(--mk-toolbar-rail);
20
+ box-shadow: 0 10px 30px -12px var(--mk-shadow-color, rgb(0 0 0 / 0.35));
21
+ }
22
+
23
+ :is(.mk-toolbar, mk-toolbar)[data-mk-orientation='horizontal'] {
24
+ flex-direction: row;
25
+ }
26
+
27
+ :is(.mk-toolbar, mk-toolbar) > button {
28
+ position: relative;
29
+ z-index: 1;
30
+ display: grid;
31
+ place-items: center;
32
+ width: var(--mk-toolbar-tool);
33
+ height: var(--mk-toolbar-tool);
34
+ padding: 0;
35
+ border: 0;
36
+ border-radius: var(--mk-radius-full);
37
+ background: transparent;
38
+ color: var(--mk-toolbar-on-rail);
39
+ cursor: pointer;
40
+ transition: color 0.2s ease;
41
+ -webkit-tap-highlight-color: transparent;
42
+ }
43
+
44
+ :is(.mk-toolbar, mk-toolbar) > button svg {
45
+ width: 1.5rem;
46
+ height: 1.5rem;
47
+ transition: transform 0.35s var(--mk-ease-swatch);
48
+ }
49
+
50
+ /* The chosen tool's icon turns dark as the blob arrives under it. */
51
+ :is(.mk-toolbar, mk-toolbar) > button[aria-pressed='true'] {
52
+ color: var(--mk-toolbar-on-blob);
53
+ transition-delay: 0.12s;
54
+ }
55
+
56
+ @media (hover: hover) {
57
+ :is(.mk-toolbar, mk-toolbar) > button:hover svg {
58
+ transform: scale(1.1);
59
+ }
60
+ }
61
+
62
+ :is(.mk-toolbar, mk-toolbar) > button:focus-visible {
63
+ outline: 2px solid var(--mk-accent);
64
+ outline-offset: 2px;
65
+ }
66
+
67
+ :is(.mk-toolbar, mk-toolbar) > button:disabled {
68
+ cursor: not-allowed;
69
+ opacity: 0.4;
70
+ }
71
+
72
+ [data-mk-toolbar-blob] {
73
+ position: absolute;
74
+ top: 0;
75
+ left: 0;
76
+ width: var(--mk-toolbar-tool);
77
+ height: var(--mk-toolbar-tool);
78
+ border-radius: var(--mk-radius-full);
79
+ background: var(--mk-toolbar-blob);
80
+ pointer-events: none;
81
+ will-change: transform, height, width;
82
+ }
83
+
84
+ [data-mk-toolbar-tip] {
85
+ position: absolute;
86
+ top: 0;
87
+ left: calc(100% + 0.75rem);
88
+ z-index: 2;
89
+ padding: 0.4rem 0.9rem;
90
+ border-radius: var(--mk-radius-full);
91
+ background: var(--mk-toolbar-rail);
92
+ color: var(--mk-toolbar-on-rail);
93
+ font: 500 0.875rem/1.2 var(--mk-font);
94
+ white-space: nowrap;
95
+ pointer-events: none;
96
+ }
97
+
98
+ :is(.mk-toolbar, mk-toolbar)[data-mk-orientation='horizontal'] [data-mk-toolbar-tip] {
99
+ top: auto;
100
+ bottom: calc(100% + 0.75rem);
101
+ left: 0;
102
+ }
103
+
104
+ [data-mk-toolbar-tip][hidden] {
105
+ display: none;
106
+ }
107
+
108
+ @media (prefers-reduced-motion: reduce) {
109
+ :is(.mk-toolbar, mk-toolbar) > button,
110
+ :is(.mk-toolbar, mk-toolbar) > button svg {
111
+ transition: none;
112
+ }
113
+ }
114
+
115
+ @media (forced-colors: active) {
116
+ [data-mk-toolbar-blob] {
117
+ background: Highlight;
118
+ }
119
+ :is(.mk-toolbar, mk-toolbar) > button[aria-pressed='true'] {
120
+ color: HighlightText;
121
+ }
122
+ }