@nubisco/ui 2.6.0 → 2.7.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 (36) hide show
  1. package/dist/components/Banner.d.ts +53 -0
  2. package/dist/components/Banner.vue.d.ts +31 -0
  3. package/dist/components/Banner.vue.d.ts.map +1 -0
  4. package/dist/components/BlueprintCard.vue.d.ts +2 -2
  5. package/dist/components/Button.vue.d.ts +1 -1
  6. package/dist/components/Charts/BarChart.vue.d.ts +1 -1
  7. package/dist/components/Charts/GanttChart.vue.d.ts +1 -1
  8. package/dist/components/Charts/InterpolationChart.vue.d.ts +1 -1
  9. package/dist/components/Charts/LineChart.vue.d.ts +1 -1
  10. package/dist/components/Charts/PieChart.vue.d.ts +1 -1
  11. package/dist/components/Charts/Sparkline.vue.d.ts +1 -1
  12. package/dist/components/Charts/shared/ChartFrame.vue.d.ts +1 -1
  13. package/dist/components/Charts/shared/ChartFrame.vue.d.ts.map +1 -1
  14. package/dist/components/DatePicker.vue.d.ts +1 -1
  15. package/dist/components/Icon.vue.d.ts +1 -1
  16. package/dist/components/MenuItem.vue.d.ts +1 -1
  17. package/dist/components/NumberInput.vue.d.ts +1 -1
  18. package/dist/components/NumberInput.vue.d.ts.map +1 -1
  19. package/dist/components/ProgressBar.vue.d.ts +1 -1
  20. package/dist/components/Select.vue.d.ts +1 -1
  21. package/dist/components/SidebarBrand.vue.d.ts +1 -1
  22. package/dist/components/SidebarMenuItem.vue.d.ts +1 -1
  23. package/dist/components/TextInput.vue.d.ts +2 -2
  24. package/dist/components/TextInput.vue.d.ts.map +1 -1
  25. package/dist/components/TreeNode.vue.d.ts +1 -1
  26. package/dist/components/index.d.ts.map +1 -1
  27. package/dist/composables/useTheme.composable.d.ts +76 -0
  28. package/dist/composables/useTheme.composable.d.ts.map +1 -0
  29. package/dist/global.d.ts +2 -0
  30. package/dist/index.cjs +9 -9
  31. package/dist/index.mjs +11480 -11337
  32. package/dist/main.d.ts +5 -0
  33. package/dist/main.d.ts.map +1 -1
  34. package/dist/ui.css +1 -1
  35. package/package.json +1 -1
  36. package/src/styles/_theme.scss +92 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nubisco/ui",
3
- "version": "2.6.0",
3
+ "version": "2.7.0",
4
4
  "description": "Vue 3 UI component library",
5
5
  "packageManager": "pnpm@11.0.8",
6
6
  "repository": {
@@ -182,6 +182,33 @@
182
182
  --nb-c-danger-active: var(--nb-c-chicken-comb-700);
183
183
  --nb-c-danger-active-a11y: var(--nb-c-chicken-comb-700-a11y);
184
184
 
185
+ // ── Status SURFACES ───────────────────────────────────────────────────
186
+ // The semantic colours above are inks: strong enough to draw a border or
187
+ // set a word in, far too strong to fill a block with. A notification that
188
+ // fills its background needs a quiet ground and an ink that stays legible
189
+ // ON that ground, which is a different pair, not a lighter version of the
190
+ // same one. Named semantically so a component never has to know that
191
+ // "warning" happens to be phoenix-flames.
192
+ --nb-c-info-surface: var(--nb-c-the-blues-brothers-100);
193
+ --nb-c-on-info-surface: var(--nb-c-the-blues-brothers-800);
194
+ --nb-c-info-surface-border: var(--nb-c-the-blues-brothers-200);
195
+
196
+ --nb-c-success-surface: var(--nb-c-emerald-reflection-100);
197
+ --nb-c-on-success-surface: var(--nb-c-emerald-reflection-800);
198
+ --nb-c-success-surface-border: var(--nb-c-emerald-reflection-200);
199
+
200
+ --nb-c-warning-surface: var(--nb-c-phoenix-flames-100);
201
+ --nb-c-on-warning-surface: var(--nb-c-phoenix-flames-800);
202
+ --nb-c-warning-surface-border: var(--nb-c-phoenix-flames-200);
203
+
204
+ --nb-c-danger-surface: var(--nb-c-chicken-comb-100);
205
+ --nb-c-on-danger-surface: var(--nb-c-chicken-comb-800);
206
+ --nb-c-danger-surface-border: var(--nb-c-chicken-comb-200);
207
+
208
+ --nb-c-neutral-surface: var(--nb-c-nouveau-gray-100);
209
+ --nb-c-on-neutral-surface: var(--nb-c-nouveau-gray-800);
210
+ --nb-c-neutral-surface-border: var(--nb-c-nouveau-gray-200);
211
+
185
212
  --nb-c-component-plain: var(--nb-c-nouveau-gray-500);
186
213
  --nb-c-component-plain-a11y: var(--nb-c-nouveau-gray-500-a11y);
187
214
  --nb-c-component-inactive: var(--nb-c-nouveau-gray-700);
@@ -454,6 +481,71 @@
454
481
  --nb-c-danger: #{colors.get-color('chicken-comb', 400)};
455
482
  --nb-c-component-plain: #{colors.get-color('nouveau-gray', 400)};
456
483
 
484
+ // Status surfaces, inverted. A 100-tint ground is a lamp on a dark page, so
485
+ // dark mode fills with a translucent wash of the status colour over
486
+ // whatever layer is behind it and takes the ink from the light tints. The
487
+ // wash keeps the banner sitting ON the page rather than punching a hole in
488
+ // it, which a flat dark tint does.
489
+ --nb-c-info-surface: color-mix(
490
+ in srgb,
491
+ #{colors.get-color('the-blues-brothers', 400)} 16%,
492
+ transparent
493
+ );
494
+ --nb-c-on-info-surface: #{colors.get-color('the-blues-brothers', 200)};
495
+ --nb-c-info-surface-border: color-mix(
496
+ in srgb,
497
+ #{colors.get-color('the-blues-brothers', 400)} 32%,
498
+ transparent
499
+ );
500
+
501
+ --nb-c-success-surface: color-mix(
502
+ in srgb,
503
+ #{colors.get-color('emerald-reflection', 400)} 16%,
504
+ transparent
505
+ );
506
+ --nb-c-on-success-surface: #{colors.get-color('emerald-reflection', 200)};
507
+ --nb-c-success-surface-border: color-mix(
508
+ in srgb,
509
+ #{colors.get-color('emerald-reflection', 400)} 32%,
510
+ transparent
511
+ );
512
+
513
+ --nb-c-warning-surface: color-mix(
514
+ in srgb,
515
+ #{colors.get-color('phoenix-flames', 400)} 16%,
516
+ transparent
517
+ );
518
+ --nb-c-on-warning-surface: #{colors.get-color('phoenix-flames', 200)};
519
+ --nb-c-warning-surface-border: color-mix(
520
+ in srgb,
521
+ #{colors.get-color('phoenix-flames', 400)} 32%,
522
+ transparent
523
+ );
524
+
525
+ --nb-c-danger-surface: color-mix(
526
+ in srgb,
527
+ #{colors.get-color('chicken-comb', 400)} 16%,
528
+ transparent
529
+ );
530
+ --nb-c-on-danger-surface: #{colors.get-color('chicken-comb', 200)};
531
+ --nb-c-danger-surface-border: color-mix(
532
+ in srgb,
533
+ #{colors.get-color('chicken-comb', 400)} 32%,
534
+ transparent
535
+ );
536
+
537
+ --nb-c-neutral-surface: color-mix(
538
+ in srgb,
539
+ #{colors.get-color('nouveau-gray', 400)} 16%,
540
+ transparent
541
+ );
542
+ --nb-c-on-neutral-surface: #{colors.get-color('nouveau-gray', 200)};
543
+ --nb-c-neutral-surface-border: color-mix(
544
+ in srgb,
545
+ #{colors.get-color('nouveau-gray', 400)} 32%,
546
+ transparent
547
+ );
548
+
457
549
  // ── Layer system (dark) ───────────────────────────────────────────────
458
550
  // In dark mode, layers get progressively lighter as elevation increases
459
551
  --nb-c-layer-0: #{layers.level(layers.$dark, surface, 0)};