@almadar/ui 4.57.5 → 5.1.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 (48) hide show
  1. package/dist/avl/index.cjs +2499 -1903
  2. package/dist/avl/index.js +1111 -518
  3. package/dist/components/atoms/Icon.d.ts +7 -4
  4. package/dist/components/index.cjs +2064 -1636
  5. package/dist/components/index.js +905 -480
  6. package/dist/components/molecules/Breadcrumb.d.ts +4 -4
  7. package/dist/components/molecules/EmptyState.d.ts +1 -1
  8. package/dist/components/templates/DashboardLayout.d.ts +1 -1
  9. package/dist/context/index.cjs +199 -0
  10. package/dist/context/index.js +199 -0
  11. package/dist/context/themeTokens.d.ts +1 -1
  12. package/dist/docs/index.cjs +456 -98
  13. package/dist/docs/index.d.cts +7 -4
  14. package/dist/docs/index.js +429 -74
  15. package/dist/lib/iconFamily.d.ts +41 -0
  16. package/dist/marketing/index.cjs +480 -124
  17. package/dist/marketing/index.d.cts +7 -4
  18. package/dist/marketing/index.js +446 -93
  19. package/dist/providers/index.cjs +1933 -1505
  20. package/dist/providers/index.js +909 -484
  21. package/dist/runtime/index.cjs +2130 -1534
  22. package/dist/runtime/index.js +1071 -478
  23. package/package.json +5 -2
  24. package/tailwind-preset.cjs +118 -3
  25. package/themes/_contract.md +198 -0
  26. package/themes/almadar-website.css +212 -0
  27. package/themes/almadar.css +210 -0
  28. package/themes/arctic.css +210 -0
  29. package/themes/atelier.css +427 -0
  30. package/themes/copper.css +210 -0
  31. package/themes/ember.css +210 -0
  32. package/themes/forest.css +210 -0
  33. package/themes/gazette.css +411 -0
  34. package/themes/index.css +12 -0
  35. package/themes/kiosk.css +412 -0
  36. package/themes/lavender.css +210 -0
  37. package/themes/midnight.css +210 -0
  38. package/themes/minimalist.css +210 -0
  39. package/themes/neon.css +210 -0
  40. package/themes/ocean.css +210 -0
  41. package/themes/prism.css +406 -0
  42. package/themes/rose.css +210 -0
  43. package/themes/sand.css +210 -0
  44. package/themes/slate.css +210 -0
  45. package/themes/sunset.css +210 -0
  46. package/themes/terminal.css +422 -0
  47. package/themes/trait-wars.css +210 -0
  48. package/themes/wireframe.css +216 -0
@@ -99,6 +99,111 @@
99
99
  --focus-ring-offset: 2px;
100
100
  --focus-ring-color: #14b8a6;
101
101
 
102
+ /* Layer 1 — backfill (preserves current visual output, see themes/_contract.md) */
103
+ /* Density axis — spacing scale */
104
+ --space-0: 0px;
105
+ --space-1: 4px;
106
+ --space-2: 8px;
107
+ --space-3: 12px;
108
+ --space-4: 16px;
109
+ --space-5: 20px;
110
+ --space-6: 24px;
111
+ --space-7: 28px;
112
+ --space-8: 32px;
113
+ --space-9: 36px;
114
+ --space-10: 40px;
115
+ --space-11: 44px;
116
+ --space-12: 48px;
117
+ /* Density axis — per-element heights */
118
+ --button-height-sm: 28px;
119
+ --button-height-md: 36px;
120
+ --button-height-lg: 44px;
121
+ --input-height-sm: 28px;
122
+ --input-height-md: 36px;
123
+ --input-height-lg: 44px;
124
+ --row-height-compact: 32px;
125
+ --row-height-normal: 40px;
126
+ --row-height-spacious: 48px;
127
+ /* Density axis — per-element padding */
128
+ --card-padding-sm: 12px;
129
+ --card-padding-md: 16px;
130
+ --card-padding-lg: 24px;
131
+ --dialog-padding: 24px;
132
+ --section-gap: 32px;
133
+ /* Type axis — family triplet (aliases existing --font-family for backward compat) */
134
+ --font-family-display: var(--font-family);
135
+ --font-family-body: var(--font-family);
136
+ --font-family-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
137
+ /* Type axis — size scale */
138
+ --text-xs: 12px;
139
+ --leading-xs: 16px;
140
+ --text-sm: 14px;
141
+ --leading-sm: 20px;
142
+ --text-base: 16px;
143
+ --leading-base: 24px;
144
+ --text-lg: 18px;
145
+ --leading-lg: 28px;
146
+ --text-xl: 20px;
147
+ --leading-xl: 28px;
148
+ --text-2xl: 24px;
149
+ --leading-2xl: 32px;
150
+ --text-3xl: 30px;
151
+ --leading-3xl: 36px;
152
+ --text-4xl: 36px;
153
+ --leading-4xl: 40px;
154
+ --text-display-1: 48px;
155
+ --leading-display-1: 52px;
156
+ --text-display-2: 60px;
157
+ --leading-display-2: 64px;
158
+ /* Type axis — intent mapping (calibrated to existing component usage) */
159
+ --intent-heading-major-size: var(--text-2xl);
160
+ --intent-heading-major-weight: var(--font-weight-bold);
161
+ --intent-heading-major-leading: var(--leading-2xl);
162
+ --intent-heading-minor-size: var(--text-lg);
163
+ --intent-heading-minor-weight: var(--font-weight-bold);
164
+ --intent-heading-minor-leading: var(--leading-lg);
165
+ --intent-body-emphasis-size: var(--text-base);
166
+ --intent-body-emphasis-weight: var(--font-weight-medium);
167
+ --intent-body-emphasis-leading: var(--leading-base);
168
+ --intent-body-default-size: var(--text-sm);
169
+ --intent-body-default-weight: var(--font-weight-normal);
170
+ --intent-body-default-leading: var(--leading-sm);
171
+ --intent-body-quiet-size: var(--text-sm);
172
+ --intent-body-quiet-weight: var(--font-weight-normal);
173
+ --intent-body-quiet-leading: var(--leading-sm);
174
+ --intent-caption-size: var(--text-xs);
175
+ --intent-caption-weight: var(--font-weight-normal);
176
+ --intent-caption-leading: var(--leading-xs);
177
+ --intent-numeric-size: var(--text-sm);
178
+ --intent-numeric-weight: var(--font-weight-medium);
179
+ --intent-numeric-leading: var(--leading-sm);
180
+ /* Motion axis — duration palette (aliases existing --transition-* for backward compat) */
181
+ --duration-instant: 0ms;
182
+ --duration-fast: var(--transition-fast);
183
+ --duration-normal: var(--transition-normal);
184
+ --duration-slow: var(--transition-slow);
185
+ --duration-dramatic: 600ms;
186
+ /* Motion axis — easing palette (aliases existing --transition-timing for backward compat) */
187
+ --easing-linear: linear;
188
+ --easing-standard: var(--transition-timing);
189
+ --easing-emphasized: cubic-bezier(0.2, 0, 0, 1);
190
+ --easing-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
191
+ /* Iconography axis */
192
+ --icon-family: lucide;
193
+ --icon-default-size: 16px;
194
+ /* Elevation axis — per-layer mapping */
195
+ --elevation-card: var(--shadow-sm);
196
+ --elevation-popover: var(--shadow-main);
197
+ --elevation-dialog: var(--shadow-lg);
198
+ --elevation-toast: var(--shadow-main);
199
+ /* Geometry axis — radius rhythm with intent */
200
+ --radius-container: var(--radius-md);
201
+ --radius-interactive: var(--radius-md);
202
+ --radius-pill: var(--radius-full);
203
+ /* Geometry axis — border-width rhythm */
204
+ --border-hairline: 1px;
205
+ --border-standard: var(--border-width);
206
+ --border-heavy: var(--border-width-thick);
102
207
  }
103
208
 
104
209
  /* ==========================================================================
@@ -195,4 +300,109 @@
195
300
  --focus-ring-offset: 2px;
196
301
  --focus-ring-color: #14b8a6;
197
302
 
303
+ /* Layer 1 — backfill (preserves current visual output, see themes/_contract.md) */
304
+ /* Density axis — spacing scale */
305
+ --space-0: 0px;
306
+ --space-1: 4px;
307
+ --space-2: 8px;
308
+ --space-3: 12px;
309
+ --space-4: 16px;
310
+ --space-5: 20px;
311
+ --space-6: 24px;
312
+ --space-7: 28px;
313
+ --space-8: 32px;
314
+ --space-9: 36px;
315
+ --space-10: 40px;
316
+ --space-11: 44px;
317
+ --space-12: 48px;
318
+ /* Density axis — per-element heights */
319
+ --button-height-sm: 28px;
320
+ --button-height-md: 36px;
321
+ --button-height-lg: 44px;
322
+ --input-height-sm: 28px;
323
+ --input-height-md: 36px;
324
+ --input-height-lg: 44px;
325
+ --row-height-compact: 32px;
326
+ --row-height-normal: 40px;
327
+ --row-height-spacious: 48px;
328
+ /* Density axis — per-element padding */
329
+ --card-padding-sm: 12px;
330
+ --card-padding-md: 16px;
331
+ --card-padding-lg: 24px;
332
+ --dialog-padding: 24px;
333
+ --section-gap: 32px;
334
+ /* Type axis — family triplet (aliases existing --font-family for backward compat) */
335
+ --font-family-display: var(--font-family);
336
+ --font-family-body: var(--font-family);
337
+ --font-family-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
338
+ /* Type axis — size scale */
339
+ --text-xs: 12px;
340
+ --leading-xs: 16px;
341
+ --text-sm: 14px;
342
+ --leading-sm: 20px;
343
+ --text-base: 16px;
344
+ --leading-base: 24px;
345
+ --text-lg: 18px;
346
+ --leading-lg: 28px;
347
+ --text-xl: 20px;
348
+ --leading-xl: 28px;
349
+ --text-2xl: 24px;
350
+ --leading-2xl: 32px;
351
+ --text-3xl: 30px;
352
+ --leading-3xl: 36px;
353
+ --text-4xl: 36px;
354
+ --leading-4xl: 40px;
355
+ --text-display-1: 48px;
356
+ --leading-display-1: 52px;
357
+ --text-display-2: 60px;
358
+ --leading-display-2: 64px;
359
+ /* Type axis — intent mapping (calibrated to existing component usage) */
360
+ --intent-heading-major-size: var(--text-2xl);
361
+ --intent-heading-major-weight: var(--font-weight-bold);
362
+ --intent-heading-major-leading: var(--leading-2xl);
363
+ --intent-heading-minor-size: var(--text-lg);
364
+ --intent-heading-minor-weight: var(--font-weight-bold);
365
+ --intent-heading-minor-leading: var(--leading-lg);
366
+ --intent-body-emphasis-size: var(--text-base);
367
+ --intent-body-emphasis-weight: var(--font-weight-medium);
368
+ --intent-body-emphasis-leading: var(--leading-base);
369
+ --intent-body-default-size: var(--text-sm);
370
+ --intent-body-default-weight: var(--font-weight-normal);
371
+ --intent-body-default-leading: var(--leading-sm);
372
+ --intent-body-quiet-size: var(--text-sm);
373
+ --intent-body-quiet-weight: var(--font-weight-normal);
374
+ --intent-body-quiet-leading: var(--leading-sm);
375
+ --intent-caption-size: var(--text-xs);
376
+ --intent-caption-weight: var(--font-weight-normal);
377
+ --intent-caption-leading: var(--leading-xs);
378
+ --intent-numeric-size: var(--text-sm);
379
+ --intent-numeric-weight: var(--font-weight-medium);
380
+ --intent-numeric-leading: var(--leading-sm);
381
+ /* Motion axis — duration palette (aliases existing --transition-* for backward compat) */
382
+ --duration-instant: 0ms;
383
+ --duration-fast: var(--transition-fast);
384
+ --duration-normal: var(--transition-normal);
385
+ --duration-slow: var(--transition-slow);
386
+ --duration-dramatic: 600ms;
387
+ /* Motion axis — easing palette (aliases existing --transition-timing for backward compat) */
388
+ --easing-linear: linear;
389
+ --easing-standard: var(--transition-timing);
390
+ --easing-emphasized: cubic-bezier(0.2, 0, 0, 1);
391
+ --easing-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
392
+ /* Iconography axis */
393
+ --icon-family: lucide;
394
+ --icon-default-size: 16px;
395
+ /* Elevation axis — per-layer mapping */
396
+ --elevation-card: var(--shadow-sm);
397
+ --elevation-popover: var(--shadow-main);
398
+ --elevation-dialog: var(--shadow-lg);
399
+ --elevation-toast: var(--shadow-main);
400
+ /* Geometry axis — radius rhythm with intent */
401
+ --radius-container: var(--radius-md);
402
+ --radius-interactive: var(--radius-md);
403
+ --radius-pill: var(--radius-full);
404
+ /* Geometry axis — border-width rhythm */
405
+ --border-hairline: 1px;
406
+ --border-standard: var(--border-width);
407
+ --border-heavy: var(--border-width-thick);
198
408
  }
package/themes/arctic.css CHANGED
@@ -100,6 +100,111 @@
100
100
  --focus-ring-offset: 2px;
101
101
  --focus-ring-color: #0284c7;
102
102
 
103
+ /* Layer 1 — backfill (preserves current visual output, see themes/_contract.md) */
104
+ /* Density axis — spacing scale */
105
+ --space-0: 0px;
106
+ --space-1: 4px;
107
+ --space-2: 8px;
108
+ --space-3: 12px;
109
+ --space-4: 16px;
110
+ --space-5: 20px;
111
+ --space-6: 24px;
112
+ --space-7: 28px;
113
+ --space-8: 32px;
114
+ --space-9: 36px;
115
+ --space-10: 40px;
116
+ --space-11: 44px;
117
+ --space-12: 48px;
118
+ /* Density axis — per-element heights */
119
+ --button-height-sm: 28px;
120
+ --button-height-md: 36px;
121
+ --button-height-lg: 44px;
122
+ --input-height-sm: 28px;
123
+ --input-height-md: 36px;
124
+ --input-height-lg: 44px;
125
+ --row-height-compact: 32px;
126
+ --row-height-normal: 40px;
127
+ --row-height-spacious: 48px;
128
+ /* Density axis — per-element padding */
129
+ --card-padding-sm: 12px;
130
+ --card-padding-md: 16px;
131
+ --card-padding-lg: 24px;
132
+ --dialog-padding: 24px;
133
+ --section-gap: 32px;
134
+ /* Type axis — family triplet (aliases existing --font-family for backward compat) */
135
+ --font-family-display: var(--font-family);
136
+ --font-family-body: var(--font-family);
137
+ --font-family-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
138
+ /* Type axis — size scale */
139
+ --text-xs: 12px;
140
+ --leading-xs: 16px;
141
+ --text-sm: 14px;
142
+ --leading-sm: 20px;
143
+ --text-base: 16px;
144
+ --leading-base: 24px;
145
+ --text-lg: 18px;
146
+ --leading-lg: 28px;
147
+ --text-xl: 20px;
148
+ --leading-xl: 28px;
149
+ --text-2xl: 24px;
150
+ --leading-2xl: 32px;
151
+ --text-3xl: 30px;
152
+ --leading-3xl: 36px;
153
+ --text-4xl: 36px;
154
+ --leading-4xl: 40px;
155
+ --text-display-1: 48px;
156
+ --leading-display-1: 52px;
157
+ --text-display-2: 60px;
158
+ --leading-display-2: 64px;
159
+ /* Type axis — intent mapping (calibrated to existing component usage) */
160
+ --intent-heading-major-size: var(--text-2xl);
161
+ --intent-heading-major-weight: var(--font-weight-bold);
162
+ --intent-heading-major-leading: var(--leading-2xl);
163
+ --intent-heading-minor-size: var(--text-lg);
164
+ --intent-heading-minor-weight: var(--font-weight-bold);
165
+ --intent-heading-minor-leading: var(--leading-lg);
166
+ --intent-body-emphasis-size: var(--text-base);
167
+ --intent-body-emphasis-weight: var(--font-weight-medium);
168
+ --intent-body-emphasis-leading: var(--leading-base);
169
+ --intent-body-default-size: var(--text-sm);
170
+ --intent-body-default-weight: var(--font-weight-normal);
171
+ --intent-body-default-leading: var(--leading-sm);
172
+ --intent-body-quiet-size: var(--text-sm);
173
+ --intent-body-quiet-weight: var(--font-weight-normal);
174
+ --intent-body-quiet-leading: var(--leading-sm);
175
+ --intent-caption-size: var(--text-xs);
176
+ --intent-caption-weight: var(--font-weight-normal);
177
+ --intent-caption-leading: var(--leading-xs);
178
+ --intent-numeric-size: var(--text-sm);
179
+ --intent-numeric-weight: var(--font-weight-medium);
180
+ --intent-numeric-leading: var(--leading-sm);
181
+ /* Motion axis — duration palette (aliases existing --transition-* for backward compat) */
182
+ --duration-instant: 0ms;
183
+ --duration-fast: var(--transition-fast);
184
+ --duration-normal: var(--transition-normal);
185
+ --duration-slow: var(--transition-slow);
186
+ --duration-dramatic: 600ms;
187
+ /* Motion axis — easing palette (aliases existing --transition-timing for backward compat) */
188
+ --easing-linear: linear;
189
+ --easing-standard: var(--transition-timing);
190
+ --easing-emphasized: cubic-bezier(0.2, 0, 0, 1);
191
+ --easing-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
192
+ /* Iconography axis */
193
+ --icon-family: lucide;
194
+ --icon-default-size: 16px;
195
+ /* Elevation axis — per-layer mapping */
196
+ --elevation-card: var(--shadow-sm);
197
+ --elevation-popover: var(--shadow-main);
198
+ --elevation-dialog: var(--shadow-lg);
199
+ --elevation-toast: var(--shadow-main);
200
+ /* Geometry axis — radius rhythm with intent */
201
+ --radius-container: var(--radius-md);
202
+ --radius-interactive: var(--radius-md);
203
+ --radius-pill: var(--radius-full);
204
+ /* Geometry axis — border-width rhythm */
205
+ --border-hairline: 1px;
206
+ --border-standard: var(--border-width);
207
+ --border-heavy: var(--border-width-thick);
103
208
  }
104
209
 
105
210
  /* ==========================================================================
@@ -194,4 +299,109 @@
194
299
  --focus-ring-offset: 2px;
195
300
  --focus-ring-color: #67e8f9;
196
301
 
302
+ /* Layer 1 — backfill (preserves current visual output, see themes/_contract.md) */
303
+ /* Density axis — spacing scale */
304
+ --space-0: 0px;
305
+ --space-1: 4px;
306
+ --space-2: 8px;
307
+ --space-3: 12px;
308
+ --space-4: 16px;
309
+ --space-5: 20px;
310
+ --space-6: 24px;
311
+ --space-7: 28px;
312
+ --space-8: 32px;
313
+ --space-9: 36px;
314
+ --space-10: 40px;
315
+ --space-11: 44px;
316
+ --space-12: 48px;
317
+ /* Density axis — per-element heights */
318
+ --button-height-sm: 28px;
319
+ --button-height-md: 36px;
320
+ --button-height-lg: 44px;
321
+ --input-height-sm: 28px;
322
+ --input-height-md: 36px;
323
+ --input-height-lg: 44px;
324
+ --row-height-compact: 32px;
325
+ --row-height-normal: 40px;
326
+ --row-height-spacious: 48px;
327
+ /* Density axis — per-element padding */
328
+ --card-padding-sm: 12px;
329
+ --card-padding-md: 16px;
330
+ --card-padding-lg: 24px;
331
+ --dialog-padding: 24px;
332
+ --section-gap: 32px;
333
+ /* Type axis — family triplet (aliases existing --font-family for backward compat) */
334
+ --font-family-display: var(--font-family);
335
+ --font-family-body: var(--font-family);
336
+ --font-family-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
337
+ /* Type axis — size scale */
338
+ --text-xs: 12px;
339
+ --leading-xs: 16px;
340
+ --text-sm: 14px;
341
+ --leading-sm: 20px;
342
+ --text-base: 16px;
343
+ --leading-base: 24px;
344
+ --text-lg: 18px;
345
+ --leading-lg: 28px;
346
+ --text-xl: 20px;
347
+ --leading-xl: 28px;
348
+ --text-2xl: 24px;
349
+ --leading-2xl: 32px;
350
+ --text-3xl: 30px;
351
+ --leading-3xl: 36px;
352
+ --text-4xl: 36px;
353
+ --leading-4xl: 40px;
354
+ --text-display-1: 48px;
355
+ --leading-display-1: 52px;
356
+ --text-display-2: 60px;
357
+ --leading-display-2: 64px;
358
+ /* Type axis — intent mapping (calibrated to existing component usage) */
359
+ --intent-heading-major-size: var(--text-2xl);
360
+ --intent-heading-major-weight: var(--font-weight-bold);
361
+ --intent-heading-major-leading: var(--leading-2xl);
362
+ --intent-heading-minor-size: var(--text-lg);
363
+ --intent-heading-minor-weight: var(--font-weight-bold);
364
+ --intent-heading-minor-leading: var(--leading-lg);
365
+ --intent-body-emphasis-size: var(--text-base);
366
+ --intent-body-emphasis-weight: var(--font-weight-medium);
367
+ --intent-body-emphasis-leading: var(--leading-base);
368
+ --intent-body-default-size: var(--text-sm);
369
+ --intent-body-default-weight: var(--font-weight-normal);
370
+ --intent-body-default-leading: var(--leading-sm);
371
+ --intent-body-quiet-size: var(--text-sm);
372
+ --intent-body-quiet-weight: var(--font-weight-normal);
373
+ --intent-body-quiet-leading: var(--leading-sm);
374
+ --intent-caption-size: var(--text-xs);
375
+ --intent-caption-weight: var(--font-weight-normal);
376
+ --intent-caption-leading: var(--leading-xs);
377
+ --intent-numeric-size: var(--text-sm);
378
+ --intent-numeric-weight: var(--font-weight-medium);
379
+ --intent-numeric-leading: var(--leading-sm);
380
+ /* Motion axis — duration palette (aliases existing --transition-* for backward compat) */
381
+ --duration-instant: 0ms;
382
+ --duration-fast: var(--transition-fast);
383
+ --duration-normal: var(--transition-normal);
384
+ --duration-slow: var(--transition-slow);
385
+ --duration-dramatic: 600ms;
386
+ /* Motion axis — easing palette (aliases existing --transition-timing for backward compat) */
387
+ --easing-linear: linear;
388
+ --easing-standard: var(--transition-timing);
389
+ --easing-emphasized: cubic-bezier(0.2, 0, 0, 1);
390
+ --easing-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
391
+ /* Iconography axis */
392
+ --icon-family: lucide;
393
+ --icon-default-size: 16px;
394
+ /* Elevation axis — per-layer mapping */
395
+ --elevation-card: var(--shadow-sm);
396
+ --elevation-popover: var(--shadow-main);
397
+ --elevation-dialog: var(--shadow-lg);
398
+ --elevation-toast: var(--shadow-main);
399
+ /* Geometry axis — radius rhythm with intent */
400
+ --radius-container: var(--radius-md);
401
+ --radius-interactive: var(--radius-md);
402
+ --radius-pill: var(--radius-full);
403
+ /* Geometry axis — border-width rhythm */
404
+ --border-hairline: 1px;
405
+ --border-standard: var(--border-width);
406
+ --border-heavy: var(--border-width-thick);
197
407
  }