@siyahi/ui 0.1.9-next.6 → 0.1.9-next.8
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.
- package/README.md +38 -6
- package/THIRD_PARTY_NOTICES.md +11 -11
- package/dist/components/registry/dashboard-01/section-cards.d.ts +2 -0
- package/dist/components/registry/dashboard-01/section-cards.js +3 -2
- package/dist/components/registry/dashboardcn/kpi-row-card.d.ts +29 -0
- package/dist/components/registry/dashboardcn/kpi-row-card.js +81 -0
- package/dist/components/registry/dashboardcn/sparkline.d.ts +18 -0
- package/dist/components/registry/dashboardcn/sparkline.js +95 -0
- package/dist/components/registry/niko-table/ui/table.js +2 -2
- package/dist/components/siyahi/data-bar.d.ts +19 -0
- package/dist/components/siyahi/data-bar.js +29 -0
- package/dist/components/siyahi/panel-grid.d.ts +22 -0
- package/dist/components/siyahi/panel-grid.js +34 -0
- package/dist/components/siyahi/siyahi-provider.d.ts +13 -2
- package/dist/components/siyahi/siyahi-provider.js +17 -4
- package/dist/components/ui/accordion.js +5 -5
- package/dist/components/ui/alert.js +2 -2
- package/dist/components/ui/badge.js +1 -1
- package/dist/components/ui/breadcrumb.js +2 -2
- package/dist/components/ui/button.js +10 -10
- package/dist/components/ui/calendar.js +1 -1
- package/dist/components/ui/card.js +4 -4
- package/dist/components/ui/chart.js +1 -1
- package/dist/components/ui/code-block.js +13 -12
- package/dist/components/ui/command.js +7 -6
- package/dist/components/ui/context-menu.js +7 -7
- package/dist/components/ui/dialog.js +5 -5
- package/dist/components/ui/dropdown-menu.js +8 -8
- package/dist/components/ui/input-group.js +11 -11
- package/dist/components/ui/input.js +1 -1
- package/dist/components/ui/popover.js +3 -3
- package/dist/components/ui/progress.js +1 -1
- package/dist/components/ui/select.js +6 -6
- package/dist/components/ui/sheet.js +5 -5
- package/dist/components/ui/sidebar.js +17 -18
- package/dist/components/ui/skeleton.js +1 -1
- package/dist/components/ui/slider.js +2 -2
- package/dist/components/ui/table.js +2 -2
- package/dist/components/ui/tabs.js +2 -2
- package/dist/components/ui/textarea.js +1 -1
- package/dist/components/ui/toggle-group.js +2 -2
- package/dist/components/ui/toggle.js +4 -4
- package/dist/components/ui/tooltip.js +2 -2
- package/dist/index.d.ts +7 -3
- package/dist/index.js +7 -3
- package/package.json +1 -1
- package/registry.lock.json +16 -0
- package/report.css +11 -11
- package/styles/siyahi.css +51 -11
package/report.css
CHANGED
|
@@ -48,20 +48,20 @@
|
|
|
48
48
|
|
|
49
49
|
@media (prefers-color-scheme: dark) {
|
|
50
50
|
:root {
|
|
51
|
-
--background: oklch(0.
|
|
52
|
-
--foreground: oklch(0.
|
|
53
|
-
--card: oklch(0.
|
|
54
|
-
--card-foreground: oklch(0.
|
|
55
|
-
--popover: oklch(0.
|
|
56
|
-
--popover-foreground: oklch(0.
|
|
51
|
+
--background: oklch(0.18 0 0);
|
|
52
|
+
--foreground: oklch(0.922 0 0);
|
|
53
|
+
--card: oklch(0.18 0 0);
|
|
54
|
+
--card-foreground: oklch(0.922 0 0);
|
|
55
|
+
--popover: oklch(0.18 0 0);
|
|
56
|
+
--popover-foreground: oklch(0.922 0 0);
|
|
57
57
|
--primary: oklch(0.922 0 0);
|
|
58
58
|
--primary-foreground: oklch(0.205 0 0);
|
|
59
59
|
--secondary: oklch(0.269 0 0);
|
|
60
|
-
--secondary-foreground: oklch(0.
|
|
60
|
+
--secondary-foreground: oklch(0.922 0 0);
|
|
61
61
|
--muted: oklch(0.269 0 0);
|
|
62
62
|
--muted-foreground: oklch(0.708 0 0);
|
|
63
63
|
--accent: oklch(0.269 0 0);
|
|
64
|
-
--accent-foreground: oklch(0.
|
|
64
|
+
--accent-foreground: oklch(0.922 0 0);
|
|
65
65
|
--destructive: oklch(0.704 0.191 22.216);
|
|
66
66
|
--border: oklch(1 0 0 / 10%);
|
|
67
67
|
--input: oklch(1 0 0 / 15%);
|
|
@@ -78,11 +78,11 @@
|
|
|
78
78
|
--chart-3: oklch(0.86 0.13 80);
|
|
79
79
|
--chart-4: oklch(0.55 0.25 293);
|
|
80
80
|
--chart-5: oklch(0.84 0.085 12);
|
|
81
|
-
--sidebar: oklch(0.
|
|
82
|
-
--sidebar-foreground: oklch(0.
|
|
81
|
+
--sidebar: oklch(0.145 0 0);
|
|
82
|
+
--sidebar-foreground: oklch(0.922 0 0);
|
|
83
83
|
--sidebar-primary: oklch(0.488 0.243 264.376);
|
|
84
84
|
--sidebar-accent: oklch(0.269 0 0);
|
|
85
|
-
--sidebar-accent-foreground: oklch(0.
|
|
85
|
+
--sidebar-accent-foreground: oklch(0.922 0 0);
|
|
86
86
|
--sidebar-border: oklch(1 0 0 / 10%);
|
|
87
87
|
--sidebar-ring: oklch(0.556 0 0);
|
|
88
88
|
}
|
package/styles/siyahi.css
CHANGED
|
@@ -130,20 +130,30 @@
|
|
|
130
130
|
--sidebar-ring: oklch(0.708 0 0);
|
|
131
131
|
|
|
132
132
|
@variant dark {
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
133
|
+
/*
|
|
134
|
+
* The canvas lifts just off black and text sits a step below white:
|
|
135
|
+
* near-white on near-black (19:1) blurs for many readers, and with the
|
|
136
|
+
* cards' grey gone on a ruled page the canvas is what text sits on.
|
|
137
|
+
* Claude Code (#181818, about #e8e8e8 text) and T3 Code (#0a0a0a, about
|
|
138
|
+
* #bebebe) both narrow that gap; this sits between them, at 14.9:1.
|
|
139
|
+
* The card matches the canvas, so the contrast check scores the colour
|
|
140
|
+
* a ruled chart is drawn on, and the sidebar is a shade darker, as in
|
|
141
|
+
* the light scheme.
|
|
142
|
+
*/
|
|
143
|
+
--background: oklch(0.18 0 0);
|
|
144
|
+
--foreground: oklch(0.922 0 0);
|
|
145
|
+
--card: oklch(0.18 0 0);
|
|
146
|
+
--card-foreground: oklch(0.922 0 0);
|
|
147
|
+
--popover: oklch(0.18 0 0);
|
|
148
|
+
--popover-foreground: oklch(0.922 0 0);
|
|
139
149
|
--primary: oklch(0.922 0 0);
|
|
140
150
|
--primary-foreground: oklch(0.205 0 0);
|
|
141
151
|
--secondary: oklch(0.269 0 0);
|
|
142
|
-
--secondary-foreground: oklch(0.
|
|
152
|
+
--secondary-foreground: oklch(0.922 0 0);
|
|
143
153
|
--muted: oklch(0.269 0 0);
|
|
144
154
|
--muted-foreground: oklch(0.708 0 0);
|
|
145
155
|
--accent: oklch(0.269 0 0);
|
|
146
|
-
--accent-foreground: oklch(0.
|
|
156
|
+
--accent-foreground: oklch(0.922 0 0);
|
|
147
157
|
--destructive: oklch(0.704 0.191 22.216);
|
|
148
158
|
--border: oklch(1 0 0 / 10%);
|
|
149
159
|
--input: oklch(1 0 0 / 15%);
|
|
@@ -161,12 +171,12 @@
|
|
|
161
171
|
--chart-3: oklch(0.86 0.13 80);
|
|
162
172
|
--chart-4: oklch(0.55 0.25 293);
|
|
163
173
|
--chart-5: oklch(0.84 0.085 12);
|
|
164
|
-
--sidebar: oklch(0.
|
|
165
|
-
--sidebar-foreground: oklch(0.
|
|
174
|
+
--sidebar: oklch(0.145 0 0);
|
|
175
|
+
--sidebar-foreground: oklch(0.922 0 0);
|
|
166
176
|
--sidebar-primary: oklch(0.488 0.243 264.376);
|
|
167
177
|
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
168
178
|
--sidebar-accent: oklch(0.269 0 0);
|
|
169
|
-
--sidebar-accent-foreground: oklch(0.
|
|
179
|
+
--sidebar-accent-foreground: oklch(0.922 0 0);
|
|
170
180
|
--sidebar-border: oklch(1 0 0 / 10%);
|
|
171
181
|
--sidebar-ring: oklch(0.556 0 0);
|
|
172
182
|
}
|
|
@@ -215,3 +225,33 @@
|
|
|
215
225
|
}
|
|
216
226
|
}
|
|
217
227
|
}
|
|
228
|
+
|
|
229
|
+
/*
|
|
230
|
+
* Surfaces, from SiyahiProvider's surface prop. Ruled, the default, and open
|
|
231
|
+
* take the box off every core Card: no fill, no corner, no ring, and no
|
|
232
|
+
* tinted footer band; PanelGrid draws the hairlines between ruled blocks.
|
|
233
|
+
* Open also drops the card's padding, so a block's content sits level with
|
|
234
|
+
* the page's text. A card provider gives shadcn's own card back. Each scope
|
|
235
|
+
* starts at the root, so a Card outside any provider is ruled too, and stops
|
|
236
|
+
* at a provider that says otherwise. Unlayered, like the rule above, to
|
|
237
|
+
* outrank the core components' utility classes; a picked SectionCards tile
|
|
238
|
+
* keeps its ring, which is important.
|
|
239
|
+
*/
|
|
240
|
+
@scope (:root, [data-surface="ruled"], [data-surface="open"]) to ([data-surface="card"]) {
|
|
241
|
+
[data-slot="card"] {
|
|
242
|
+
background: none;
|
|
243
|
+
border-radius: 0;
|
|
244
|
+
--tw-ring-color: transparent;
|
|
245
|
+
}
|
|
246
|
+
[data-slot="card-footer"] {
|
|
247
|
+
background: none;
|
|
248
|
+
border-top-width: 0;
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
@scope ([data-surface="open"]) to ([data-surface="ruled"], [data-surface="card"]) {
|
|
253
|
+
[data-slot="card"] {
|
|
254
|
+
--card-spacing: 0px;
|
|
255
|
+
gap: calc(var(--spacing) * 4);
|
|
256
|
+
}
|
|
257
|
+
}
|