@waveinno/ui 0.2.0 → 0.4.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 (74) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/README.md +30 -12
  3. package/dist/components/brand/waveinno-logo.js +1 -1
  4. package/dist/components/charts/bar-list.js +1 -1
  5. package/dist/components/charts/heatmap.js +1 -1
  6. package/dist/components/patterns/activity-feed.js +1 -1
  7. package/dist/components/patterns/app-launcher.js +1 -1
  8. package/dist/components/patterns/data-table-edit.js +1 -1
  9. package/dist/components/patterns/data-table-filters.js +1 -1
  10. package/dist/components/patterns/data-table.js +1 -1
  11. package/dist/components/patterns/page-header.js +1 -1
  12. package/dist/components/patterns/page-hero.js +1 -1
  13. package/dist/components/patterns/stat-card.js +1 -1
  14. package/dist/components/patterns/timeline.js +1 -1
  15. package/dist/components/ui/alert.d.ts +28 -0
  16. package/dist/components/ui/alert.js +1 -0
  17. package/dist/components/ui/avatar.js +1 -1
  18. package/dist/components/ui/badge.js +1 -1
  19. package/dist/components/ui/button.js +1 -1
  20. package/dist/components/ui/checkbox.js +1 -1
  21. package/dist/components/ui/combobox.js +1 -1
  22. package/dist/components/ui/confirm-dialog.js +1 -1
  23. package/dist/components/ui/dialog.js +1 -1
  24. package/dist/components/ui/dropdown-menu.js +1 -1
  25. package/dist/components/ui/file-upload.d.ts +36 -0
  26. package/dist/components/ui/file-upload.js +1 -0
  27. package/dist/components/ui/index.d.ts +11 -1
  28. package/dist/components/ui/index.js +1 -1
  29. package/dist/components/ui/kbd.d.ts +13 -0
  30. package/dist/components/ui/kbd.js +1 -0
  31. package/dist/components/ui/menu.js +1 -1
  32. package/dist/components/ui/number-input.d.ts +30 -0
  33. package/dist/components/ui/number-input.js +1 -0
  34. package/dist/components/ui/password-input.d.ts +18 -0
  35. package/dist/components/ui/password-input.js +1 -0
  36. package/dist/components/ui/pin-input.d.ts +32 -0
  37. package/dist/components/ui/pin-input.js +1 -0
  38. package/dist/components/ui/popover.js +1 -1
  39. package/dist/components/ui/progress.js +1 -1
  40. package/dist/components/ui/radio-group.d.ts +27 -0
  41. package/dist/components/ui/radio-group.js +1 -0
  42. package/dist/components/ui/segmented.d.ts +1 -1
  43. package/dist/components/ui/segmented.js +1 -1
  44. package/dist/components/ui/sheet.js +1 -1
  45. package/dist/components/ui/slider.d.ts +24 -0
  46. package/dist/components/ui/slider.js +1 -0
  47. package/dist/components/ui/spinner.d.ts +27 -0
  48. package/dist/components/ui/spinner.js +1 -0
  49. package/dist/components/ui/tabs.js +1 -1
  50. package/dist/components/ui/toast.d.ts +13 -0
  51. package/dist/components/ui/toast.js +1 -0
  52. package/dist/hooks/index.d.ts +1 -0
  53. package/dist/hooks/index.js +1 -1
  54. package/dist/hooks/use-router.d.ts +41 -0
  55. package/dist/hooks/use-router.js +1 -0
  56. package/dist/lib/index.d.ts +1 -0
  57. package/dist/lib/index.js +1 -1
  58. package/dist/lib/theme.d.ts +48 -0
  59. package/dist/lib/theme.js +7 -0
  60. package/dist/next/index.d.ts +6 -0
  61. package/dist/next/index.js +1 -0
  62. package/dist/shell/app-shell.js +1 -1
  63. package/dist/shell/app-switcher.js +1 -1
  64. package/dist/shell/command-palette.js +1 -1
  65. package/dist/shell/icon-rail.js +1 -1
  66. package/dist/shell/mobile-nav.js +1 -1
  67. package/dist/shell/module-sidebar.js +1 -1
  68. package/dist/shell/notifications.js +1 -1
  69. package/dist/shell/placeholder-screen.js +1 -1
  70. package/dist/shell/topbar.js +1 -1
  71. package/dist/shell/use-active.js +1 -1
  72. package/dist/shell/user-menu.js +1 -1
  73. package/dist/styles.css +47 -5
  74. package/package.json +13 -1
package/dist/styles.css CHANGED
@@ -2,7 +2,7 @@
2
2
  /* @waveinno/ui — import after tailwindcss:
3
3
  @import "tailwindcss";
4
4
  @import "@waveinno/ui/styles.css";
5
- @source "<path to node_modules>/@waveinno/ui/src";
5
+ @source "<path to node_modules>/@waveinno/ui/dist";
6
6
  The consumer owns the Tailwind entry so it controls @source and plugins. */
7
7
 
8
8
  /* ══════════════════════════════════════════════════════════════════════════
@@ -37,6 +37,12 @@
37
37
  --primary-subtle: #eef2ff;
38
38
  --primary-muted: #c7d2fe;
39
39
  --accent: #7c3aed;
40
+ /* The brand gradient, royal to violet (the logo's own), and the ink that
41
+ dark panels, value bubbles and command menus are drawn in. A theme that
42
+ changes these changes every gradient, glow and ink surface with them. */
43
+ --brand-1: #1f45ea;
44
+ --brand-2: #7560fd;
45
+ --ink: #140d33;
40
46
 
41
47
  /* ── intent ── */
42
48
  --success: #009767;
@@ -53,10 +59,14 @@
53
59
  --elev3: 0 16px 48px rgba(5, 8, 22, 0.16);
54
60
  --lit: 0 0 #0000;
55
61
 
56
- /* ── radius ── */
57
- --r-ctl: 8px;
58
- --r-card: 10px;
59
- --r-dlg: 14px;
62
+ /* ── radius ──
63
+ One scale for every corner: the three named radii and each component's
64
+ own (written as calc(Npx * var(--radius-scale))). 0 is square, 1 the
65
+ WAVEINNO default, 1.8 very round. Pills stay pills. */
66
+ --radius-scale: 1;
67
+ --r-ctl: calc(8px * var(--radius-scale));
68
+ --r-card: calc(10px * var(--radius-scale));
69
+ --r-dlg: calc(14px * var(--radius-scale));
60
70
 
61
71
  /* ── shell geometry ── */
62
72
  --rail: 72px;
@@ -171,6 +181,9 @@
171
181
  --color-primary-subtle: var(--primary-subtle);
172
182
  --color-primary-muted: var(--primary-muted);
173
183
  --color-accent: var(--accent);
184
+ --color-brand-1: var(--brand-1);
185
+ --color-brand-2: var(--brand-2);
186
+ --color-ink: var(--ink);
174
187
 
175
188
  --color-success: var(--success);
176
189
  --color-success-subtle: var(--success-subtle);
@@ -656,3 +669,32 @@ select {
656
669
  100% { background-color: transparent }
657
670
  }
658
671
  .wm-saved { animation: wm-saved 900ms var(--ease) 1 }
672
+
673
+ /* ── input and loading motion ── */
674
+ /* A mark arriving: a radio's dot, a filled code box, the Caps Lock hint. */
675
+ @keyframes wm-pop {
676
+ 0% { transform: scale(.4); opacity: 0 }
677
+ 70% { transform: scale(1.12); opacity: 1 }
678
+ 100% { transform: scale(1) }
679
+ }
680
+ @keyframes wm-dot {
681
+ 0%, 80%, 100% { transform: translateY(0); opacity: .35 }
682
+ 40% { transform: translateY(-40%); opacity: 1 }
683
+ }
684
+ @keyframes wm-bar {
685
+ 0%, 100% { transform: scaleY(.35) }
686
+ 50% { transform: scaleY(1) }
687
+ }
688
+ .wm-dot { animation: wm-dot 1.1s var(--ease) infinite }
689
+ .wm-bar { animation: wm-bar 1s var(--ease) infinite; transform-origin: center }
690
+
691
+ /* A spinner that stops looks like a hang. Under reduced motion it keeps
692
+ turning, slowly, instead of being cut to one frame by the rule above. */
693
+ @media (prefers-reduced-motion: reduce) {
694
+ [role="status"] .animate-spin,
695
+ .wm-dot,
696
+ .wm-bar {
697
+ animation-duration: 1.8s !important;
698
+ animation-iteration-count: infinite !important;
699
+ }
700
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@waveinno/ui",
3
- "version": "0.2.0",
3
+ "version": "0.4.0",
4
4
  "description": "WAVEINNO design system — tokens, shell, primitives and patterns shared by every WAVEINNO product",
5
5
  "keywords": [
6
6
  "waveinno",
@@ -29,6 +29,11 @@
29
29
  "import": "./dist/index.js",
30
30
  "default": "./dist/index.js"
31
31
  },
32
+ "./next": {
33
+ "types": "./dist/next/index.d.ts",
34
+ "import": "./dist/next/index.js",
35
+ "default": "./dist/next/index.js"
36
+ },
32
37
  "./styles.css": "./dist/styles.css",
33
38
  "./package.json": "./package.json",
34
39
  "./brand/*": "./dist/brand/*"
@@ -64,8 +69,10 @@
64
69
  "@radix-ui/react-label": "^2.1.15",
65
70
  "@radix-ui/react-popover": "^1.1.23",
66
71
  "@radix-ui/react-progress": "^1.1.16",
72
+ "@radix-ui/react-radio-group": "^1.4.7",
67
73
  "@radix-ui/react-select": "^2.3.7",
68
74
  "@radix-ui/react-separator": "^1.1.15",
75
+ "@radix-ui/react-slider": "^1.4.7",
69
76
  "@radix-ui/react-slot": "^1.3.3",
70
77
  "@radix-ui/react-switch": "^1.3.7",
71
78
  "@radix-ui/react-tabs": "^1.1.21",
@@ -85,6 +92,11 @@
85
92
  "react-dom": ">=19",
86
93
  "tailwindcss": ">=4"
87
94
  },
95
+ "peerDependenciesMeta": {
96
+ "next": {
97
+ "optional": true
98
+ }
99
+ },
88
100
  "devDependencies": {
89
101
  "@types/node": "^26.6.2",
90
102
  "@types/react": "^19.3.0",