@stagewise/ui 0.8.0 → 0.10.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/README.md +1 -1
  2. package/package.json +1 -1
  3. package/src/components/ui/alert-dialog.tsx +21 -4
  4. package/src/components/ui/avatar.tsx +3 -6
  5. package/src/components/ui/badge.tsx +1 -1
  6. package/src/components/ui/bubble.tsx +2 -2
  7. package/src/components/ui/button-group.tsx +2 -2
  8. package/src/components/ui/button.tsx +1 -1
  9. package/src/components/ui/checkbox.tsx +1 -1
  10. package/src/components/ui/combobox.tsx +1 -1
  11. package/src/components/ui/command.tsx +1 -1
  12. package/src/components/ui/dialog-lifecycle.tsx +66 -0
  13. package/src/components/ui/dialog.tsx +15 -4
  14. package/src/components/ui/dropdown-menu.tsx +3 -3
  15. package/src/components/ui/input-group.tsx +1 -1
  16. package/src/components/ui/input-otp.tsx +1 -1
  17. package/src/components/ui/input.tsx +1 -1
  18. package/src/components/ui/item.tsx +1 -1
  19. package/src/components/ui/klex-logo.tsx +1 -2
  20. package/src/components/ui/marker.tsx +1 -1
  21. package/src/components/ui/native-select.tsx +1 -1
  22. package/src/components/ui/questionnaire.tsx +4 -4
  23. package/src/components/ui/radio-group.tsx +1 -1
  24. package/src/components/ui/scroll-area.tsx +6 -1
  25. package/src/components/ui/select.tsx +1 -1
  26. package/src/components/ui/sidebar.tsx +14 -1
  27. package/src/components/ui/textarea.tsx +1 -1
  28. package/src/components/ui/toggle.tsx +1 -1
  29. package/src/components/ui/trace.tsx +183 -0
  30. package/src/icons/custom/ui-outline-18/IconCalendarOutline18.tsx +28 -0
  31. package/src/icons/custom/ui-outline-18/IconCrownOutline18.tsx +18 -0
  32. package/src/icons/custom/ui-outline-18/IconResizeGripOutline18.tsx +18 -0
  33. package/src/icons/custom/ui-outline-18/IconUserMinusOutline18.tsx +26 -0
  34. package/src/icons/custom/ui-outline-18/IconUserOutline18.tsx +26 -0
  35. package/src/icons/custom/ui-outline-18/index.ts +5 -0
  36. package/src/icons/index.ts +5 -0
  37. package/src/icons/nucleo/ui-outline-18/IconArrowDoorOut3Outline18.tsx +50 -0
  38. package/src/icons/nucleo/ui-outline-18/IconMediaPauseOutline18.tsx +40 -0
  39. package/src/icons/nucleo/ui-outline-18/IconMediaPlayOutline18.tsx +22 -0
  40. package/src/icons/nucleo/ui-outline-18/IconPaperPlane2Outline18.tsx +33 -0
  41. package/src/icons/nucleo/ui-outline-18/IconPaperPlaneFastOutline18.tsx +50 -0
  42. package/src/icons/nucleo/ui-outline-18/IconUndo3Outline18.tsx +27 -0
  43. package/src/icons/nucleo/ui-outline-18/index.ts +6 -0
  44. package/src/index.ts +1 -0
  45. package/src/styles/bridge.css +10 -12
  46. package/src/styles/derived-utilities.css +1 -98
  47. package/src/styles/index.css +2 -7
  48. package/src/styles/theme.css +0 -2
@@ -1,15 +1,12 @@
1
1
  /**
2
2
  * Auto-derived color utilities
3
- * These derive border, ring, text, and background colors from the element's
3
+ * These derive text and background colors from the element's
4
4
  * background color (--cm-bg-color) which is automatically set by bg-* utilities
5
5
  * via the color-modifiers plugin.
6
6
  *
7
7
  * Falls back to semantic colors when no background is set.
8
8
  *
9
9
  * Usage examples:
10
- * border border-derived-subtle - subtle border derived from background
11
- * border border-derived - regular border derived from background
12
- * ring ring-derived-strong - strong ring derived from background
13
10
  * hover:bg-hover-derived - hover state background
14
11
  */
15
12
 
@@ -38,15 +35,6 @@
38
35
  --shortcut-solid-hover-derived-c: 0.008;
39
36
  --shortcut-solid-active-derived-l: 0.01;
40
37
  --shortcut-solid-active-derived-c: 0.006;
41
-
42
- --border-derived-subtle-l: -0.02;
43
- --border-derived-subtle-c: -0.003;
44
-
45
- --border-derived-l: -0.04;
46
- --border-derived-c: -0.007;
47
-
48
- --border-derived-strong-l: -0.06;
49
- --border-derived-strong-c: -0.01;
50
38
  }
51
39
 
52
40
  :root.dark {
@@ -68,91 +56,6 @@
68
56
  --shortcut-solid-hover-derived-c: -0.008;
69
57
  --shortcut-solid-active-derived-l: 0.01;
70
58
  --shortcut-solid-active-derived-c: -0.006;
71
-
72
- --border-derived-subtle-l: 0.09;
73
- --border-derived-subtle-c: 0.014;
74
-
75
- --border-derived-l: 0.12;
76
- --border-derived-c: 0.018;
77
-
78
- --border-derived-strong-l: 0.15;
79
- --border-derived-strong-c: 0.022;
80
- }
81
-
82
- /* Border utilities */
83
- @utility border-derived-subtle {
84
- border-color: oklch(
85
- from var(--cm-bg-color, var(--color-border))
86
- calc(l + var(--border-derived-subtle-l))
87
- calc(c + var(--border-derived-subtle-c)) h
88
- );
89
- }
90
-
91
- @utility border-derived {
92
- border-color: oklch(
93
- from var(--cm-bg-color, var(--color-border))
94
- calc(l + var(--border-derived-l)) calc(c + var(--border-derived-c)) h
95
- );
96
- }
97
-
98
- @utility border-derived-strong {
99
- border-color: oklch(
100
- from var(--cm-bg-color, var(--color-border))
101
- calc(l + var(--border-derived-strong-l))
102
- calc(c + var(--border-derived-strong-c)) h
103
- );
104
- }
105
-
106
- @utility border-derived-lighter-subtle {
107
- border-color: oklch(
108
- from var(--cm-bg-color, var(--color-border-subtle)) calc(l + 0.06)
109
- calc(c + 0.011) h
110
- );
111
- }
112
-
113
- @utility border-derived-lighter {
114
- border-color: oklch(
115
- from var(--cm-bg-color, var(--color-border-subtle)) calc(l + 0.09)
116
- calc(c + 0.014) h
117
- );
118
- }
119
-
120
- /* Ring utilities */
121
- @utility ring-derived-subtle {
122
- --tw-ring-color: oklch(
123
- from var(--cm-bg-color, var(--color-border-subtle))
124
- calc(l + var(--border-derived-subtle-l))
125
- calc(c + var(--border-derived-subtle-c)) h
126
- );
127
- }
128
-
129
- @utility ring-derived {
130
- --tw-ring-color: oklch(
131
- from var(--cm-bg-color, var(--color-border))
132
- calc(l + var(--border-derived-l)) calc(c + var(--border-derived-c)) h
133
- );
134
- }
135
-
136
- @utility ring-derived-strong {
137
- --tw-ring-color: oklch(
138
- from var(--cm-bg-color, var(--color-border))
139
- calc(l + var(--border-derived-strong-l))
140
- calc(c + var(--border-derived-strong-c)) h
141
- );
142
- }
143
-
144
- @utility ring-derived-lighter-subtle {
145
- --tw-ring-color: oklch(
146
- from var(--cm-bg-color, var(--color-border-subtle)) calc(l + 0.06)
147
- calc(c + 0.011) h
148
- );
149
- }
150
-
151
- @utility ring-derived-lighter {
152
- --tw-ring-color: oklch(
153
- from var(--cm-bg-color, var(--color-border-subtle)) calc(l + 0.09)
154
- calc(c + 0.014) h
155
- );
156
59
  }
157
60
 
158
61
  /* Text utilities */
@@ -7,7 +7,7 @@
7
7
  * This provides:
8
8
  * 1. The stage-ui OKLCH color palette (dynamic hue/chroma system)
9
9
  * 2. Theme tokens (light/dark mode semantic colors)
10
- * 3. Derived color utilities (border-derived, bg-hover-derived, etc.)
10
+ * 3. Derived color utilities (text-hover-derived, bg-hover-derived, etc.)
11
11
  * 4. Animations (caret-blink, switch-knob)
12
12
  * 5. Bundled Geist Variable font (woff2, weights 100–900, upright + italic)
13
13
  * 6. Bridge layer: shadcn token names → stage-ui color values
@@ -49,18 +49,13 @@
49
49
 
50
50
  @layer base {
51
51
  * {
52
- @apply border-derived-subtle outline-ring/50;
53
- corner-shape: squircle;
52
+ @apply border-border outline-ring/50;
54
53
  }
55
54
 
56
55
  body {
57
56
  @apply bg-background text-foreground;
58
57
  }
59
58
 
60
- .rounded-full {
61
- corner-shape: round;
62
- }
63
-
64
59
  :root {
65
60
  color-scheme: light;
66
61
  }
@@ -22,7 +22,6 @@
22
22
  --color-surface-2: var(--color-base-150);
23
23
  --color-surface-3: var(--color-base-200);
24
24
 
25
- --color-border: var(--color-base-200);
26
25
  --color-border-subtle: var(--color-base-150);
27
26
 
28
27
  --color-overlay: var(--color-base-950);
@@ -96,7 +95,6 @@
96
95
  oklch(0.295 0 none)
97
96
  );
98
97
 
99
- --color-border: var(--color-base-600);
100
98
  --color-border-subtle: var(--color-base-700);
101
99
 
102
100
  --color-success-foreground: var(--color-success-foreground-dark);