@shortwind/catalog 0.1.0-beta.13 → 0.1.0-beta.14

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 (46) hide show
  1. package/dist/registry/badge/CHANGELOG.md +1 -1
  2. package/dist/registry/badge.css +17 -7
  3. package/dist/registry/{badge@0.0.1.css → badge@0.0.2.css} +17 -7
  4. package/dist/registry/button/CHANGELOG.md +1 -1
  5. package/dist/registry/button.css +49 -6
  6. package/dist/registry/button@0.0.2.css +117 -0
  7. package/dist/registry/index.json +5 -0
  8. package/dist/registry/layout/CHANGELOG.md +1 -1
  9. package/dist/registry/layout.css +9 -5
  10. package/dist/registry/{layout@0.0.1.css → layout@0.0.2.css} +9 -5
  11. package/dist/registry/list/CHANGELOG.md +1 -1
  12. package/dist/registry/list.css +16 -3
  13. package/dist/registry/{list@0.0.1.css → list@0.0.2.css} +16 -3
  14. package/dist/registry/manifest.json +858 -153
  15. package/dist/registry/menu/CHANGELOG.md +5 -0
  16. package/dist/registry/menu.css +30 -0
  17. package/dist/registry/menu@0.0.1.css +30 -0
  18. package/dist/registry/navigation/CHANGELOG.md +1 -1
  19. package/dist/registry/navigation.css +18 -5
  20. package/dist/registry/{navigation@0.0.1.css → navigation@0.0.2.css} +18 -5
  21. package/dist/registry/presets.json +1 -1
  22. package/dist/registry/recipes/badge.css +17 -7
  23. package/dist/registry/recipes/button.css +49 -6
  24. package/dist/registry/recipes/layout.css +9 -5
  25. package/dist/registry/recipes/list.css +16 -3
  26. package/dist/registry/recipes/menu.css +30 -0
  27. package/dist/registry/recipes/navigation.css +18 -5
  28. package/dist/registry/recipes/segmented.css +19 -0
  29. package/dist/registry/recipes/sheet.css +38 -0
  30. package/dist/registry/recipes/stat.css +30 -0
  31. package/dist/registry/recipes/switch.css +19 -0
  32. package/dist/registry/segmented/CHANGELOG.md +5 -0
  33. package/dist/registry/segmented.css +19 -0
  34. package/dist/registry/segmented@0.0.1.css +19 -0
  35. package/dist/registry/sheet/CHANGELOG.md +5 -0
  36. package/dist/registry/sheet.css +38 -0
  37. package/dist/registry/sheet@0.0.1.css +38 -0
  38. package/dist/registry/stat/CHANGELOG.md +5 -0
  39. package/dist/registry/stat.css +30 -0
  40. package/dist/registry/stat@0.0.1.css +30 -0
  41. package/dist/registry/switch/CHANGELOG.md +5 -0
  42. package/dist/registry/switch.css +19 -0
  43. package/dist/registry/switch@0.0.1.css +19 -0
  44. package/dist/tsconfig.tsbuildinfo +1 -1
  45. package/package.json +2 -2
  46. package/dist/registry/button@0.0.1.css +0 -74
@@ -0,0 +1,30 @@
1
+ /* shortwind: stat@0.0.1 sha:445f1f7abfebc0b1 */
2
+
3
+ /* @guide
4
+ A dashboard metric tile. @stat is the container; inside it @stat-label names
5
+ the metric, @stat-value is the big number, and @stat-trend is the delta.
6
+ Colour the trend with the tone system — set data-tone on @stat-trend
7
+ (success for up, danger for down): `<span class="@stat-trend"
8
+ data-tone="success">`. Same --tone-fg mechanism as @badge; define tones once
9
+ in CSS (init scaffolds them).
10
+ */
11
+
12
+ /* Metric tile container. */
13
+ @recipe stat {
14
+ flex flex-col gap-1 rounded-lg border border-border bg-card p-4 text-card-foreground
15
+ }
16
+
17
+ /* Metric name. */
18
+ @recipe stat-label {
19
+ text-sm font-medium text-muted-foreground
20
+ }
21
+
22
+ /* The metric's primary value. */
23
+ @recipe stat-value {
24
+ text-2xl font-semibold tracking-tight text-foreground tabular-nums
25
+ }
26
+
27
+ /* Trend delta — tone-aware; set data-tone (success up / danger down). */
28
+ @recipe stat-trend {
29
+ inline-flex items-center gap-1 text-xs font-medium text-[var(--tone-fg,var(--muted-foreground))]
30
+ }
@@ -0,0 +1,30 @@
1
+ /* shortwind: stat@0.0.1 sha:445f1f7abfebc0b1 */
2
+
3
+ /* @guide
4
+ A dashboard metric tile. @stat is the container; inside it @stat-label names
5
+ the metric, @stat-value is the big number, and @stat-trend is the delta.
6
+ Colour the trend with the tone system — set data-tone on @stat-trend
7
+ (success for up, danger for down): `<span class="@stat-trend"
8
+ data-tone="success">`. Same --tone-fg mechanism as @badge; define tones once
9
+ in CSS (init scaffolds them).
10
+ */
11
+
12
+ /* Metric tile container. */
13
+ @recipe stat {
14
+ flex flex-col gap-1 rounded-lg border border-border bg-card p-4 text-card-foreground
15
+ }
16
+
17
+ /* Metric name. */
18
+ @recipe stat-label {
19
+ text-sm font-medium text-muted-foreground
20
+ }
21
+
22
+ /* The metric's primary value. */
23
+ @recipe stat-value {
24
+ text-2xl font-semibold tracking-tight text-foreground tabular-nums
25
+ }
26
+
27
+ /* Trend delta — tone-aware; set data-tone (success up / danger down). */
28
+ @recipe stat-trend {
29
+ inline-flex items-center gap-1 text-xs font-medium text-[var(--tone-fg,var(--muted-foreground))]
30
+ }
@@ -0,0 +1,5 @@
1
+ # switch
2
+
3
+ ## 0.0.1
4
+
5
+ Initial release.
@@ -0,0 +1,19 @@
1
+ /* shortwind: switch@0.0.1 sha:54fa33bb72839799 */
2
+
3
+ /* @guide
4
+ A toggle switch. @switch is the track, @switch-thumb is the sliding knob
5
+ inside it. The on/off state is data-driven — set data-checked on BOTH the
6
+ track and the thumb (`<button class="@switch" data-checked><span
7
+ class="@switch-thumb" data-checked /></button>`). For a checkbox/radio reach
8
+ for the form family instead.
9
+ */
10
+
11
+ /* Toggle track. Add data-checked when on. */
12
+ @recipe switch {
13
+ peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent bg-input transition-colors data-[checked]:bg-primary focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring disabled:cursor-not-allowed disabled:opacity-50
14
+ }
15
+
16
+ /* Sliding knob. Add data-checked to slide it on. */
17
+ @recipe switch-thumb {
18
+ pointer-events-none block h-4 w-4 translate-x-0 rounded-full bg-background shadow-sm transition-transform data-[checked]:translate-x-4
19
+ }
@@ -0,0 +1,19 @@
1
+ /* shortwind: switch@0.0.1 sha:54fa33bb72839799 */
2
+
3
+ /* @guide
4
+ A toggle switch. @switch is the track, @switch-thumb is the sliding knob
5
+ inside it. The on/off state is data-driven — set data-checked on BOTH the
6
+ track and the thumb (`<button class="@switch" data-checked><span
7
+ class="@switch-thumb" data-checked /></button>`). For a checkbox/radio reach
8
+ for the form family instead.
9
+ */
10
+
11
+ /* Toggle track. Add data-checked when on. */
12
+ @recipe switch {
13
+ peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent bg-input transition-colors data-[checked]:bg-primary focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring disabled:cursor-not-allowed disabled:opacity-50
14
+ }
15
+
16
+ /* Sliding knob. Add data-checked to slide it on. */
17
+ @recipe switch-thumb {
18
+ pointer-events-none block h-4 w-4 translate-x-0 rounded-full bg-background shadow-sm transition-transform data-[checked]:translate-x-4
19
+ }