rockin 0.0.28 → 0.0.30

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/dist/styles.css CHANGED
@@ -40,6 +40,13 @@
40
40
  --color-accent-foreground: var(--accent-foreground);
41
41
  --color-destructive: var(--destructive);
42
42
  --color-destructive-foreground: var(--destructive-foreground);
43
+ /* Status colours: --success/--warning/--info are defined below for light and dark. */
44
+ --color-success: var(--success);
45
+ --color-success-foreground: var(--success-foreground);
46
+ --color-warning: var(--warning);
47
+ --color-warning-foreground: var(--warning-foreground);
48
+ --color-info: var(--info);
49
+ --color-info-foreground: var(--info-foreground);
43
50
  --color-border: var(--border);
44
51
  --color-input: var(--input);
45
52
  --color-ring: var(--brand);
@@ -73,27 +80,24 @@
73
80
  --color-kanban-board-circle-gray: var(--kanban-board-circle-gray);
74
81
  --color-kanban-board-circle-cyan: var(--kanban-board-circle-cyan);
75
82
  --color-kanban-board-circle-blue: var(--kanban-board-circle-blue);
76
- --color-chart-scale-pattern-color: var(----chart-scale-pattern-color);
77
- --color-chart-scale-05: var(----chart-scale-05);
78
- --color-chart-scale-04: var(----chart-scale-04);
79
- --color-chart-scale-03: var(----chart-scale-03);
80
- --color-chart-scale-02: var(----chart-scale-02);
81
- --color-chart-scale-01: var(----chart-scale-01);
82
- --color-chart-label: var(----chart-label);
83
- --color-chart-marker-foreground: var(----chart-marker-foreground);
84
- --color-chart-marker-border: var(----chart-marker-border);
85
- --color-chart-marker-background: var(----chart-marker-background);
86
- --color-chart-tooltip-muted: var(----chart-tooltip-muted);
87
- --color-chart-tooltip-foreground: var(----chart-tooltip-foreground);
88
- --color-chart-tooltip-background: var(----chart-tooltip-background);
89
- --chart-brush-border: var(----chart-brush-border);
90
- --color-chart-grid: var(----chart-grid);
91
- --color-chart-crosshair: var(----chart-crosshair);
92
- --chart-line-secondary: var(----chart-line-secondary);
93
- --chart-line-primary: var(----chart-line-primary);
94
- --color-chart-foreground-muted: var(----chart-foreground-muted);
95
- --color-chart-foreground: var(----chart-foreground);
96
- --color-chart-background: var(----chart-background);
83
+ --color-chart-scale-pattern-color: var(--chart-scale-pattern-color);
84
+ --color-chart-scale-05: var(--chart-scale-05);
85
+ --color-chart-scale-04: var(--chart-scale-04);
86
+ --color-chart-scale-03: var(--chart-scale-03);
87
+ --color-chart-scale-02: var(--chart-scale-02);
88
+ --color-chart-scale-01: var(--chart-scale-01);
89
+ --color-chart-label: var(--chart-label);
90
+ --color-chart-marker-foreground: var(--chart-marker-foreground);
91
+ --color-chart-marker-border: var(--chart-marker-border);
92
+ --color-chart-marker-background: var(--chart-marker-background);
93
+ --color-chart-tooltip-muted: var(--chart-tooltip-muted);
94
+ --color-chart-tooltip-foreground: var(--chart-tooltip-foreground);
95
+ --color-chart-tooltip-background: var(--chart-tooltip-background);
96
+ --color-chart-grid: var(--chart-grid);
97
+ --color-chart-crosshair: var(--chart-crosshair);
98
+ --color-chart-foreground-muted: var(--chart-foreground-muted);
99
+ --color-chart-foreground: var(--chart-foreground);
100
+ --color-chart-background: var(--chart-background);
97
101
  --animate-skeleton: skeleton 2s -1s infinite linear;
98
102
  --color-selection: var(--selection);
99
103
  --color-selection-foreground: var(--selection-foreground);
@@ -140,6 +144,7 @@
140
144
  --accent: oklch(0.97 0 0);
141
145
  --accent-foreground: oklch(0.205 0 0);
142
146
  --destructive: oklch(0.577 0.245 27.325);
147
+ --destructive-foreground: oklch(0.985 0 0);
143
148
  --border: oklch(0.922 0 0);
144
149
  --input: oklch(0.922 0 0);
145
150
  --ring: oklch(62.04% 0.195 253.83);
@@ -254,6 +259,7 @@
254
259
  --accent: oklch(0.269 0 0);
255
260
  --accent-foreground: oklch(0.985 0 0);
256
261
  --destructive: oklch(0.704 0.191 22.216);
262
+ --destructive-foreground: oklch(0.985 0 0);
257
263
  --border: oklch(1 0 0 / 10%);
258
264
  --input: oklch(1 0 0 / 15%);
259
265
  --ring: oklch(62.04% 0.195 253.83);
@@ -814,14 +814,12 @@ declare const sizeStyles: {
814
814
  declare const variantStyles: {
815
815
  readonly pill: {
816
816
  readonly container: "shadow-raised rounded-full";
817
- readonly button: "rounded-full text-foreground hover:bg-foreground/6 active:scale-[0.96]";
818
- readonly limit: "opacity-35 hover:bg-transparent";
817
+ readonly button: "rounded-full text-foreground enabled:hover:bg-foreground/6 enabled:active:scale-[0.96] disabled:opacity-35";
819
818
  readonly text: "font-medium";
820
819
  };
821
820
  readonly outline: {
822
821
  readonly container: "rounded-lg bg-background p-0! transition-[border-color,box-shadow] duration-150 ease-out focus-within:border-ring focus-within:ring-3 focus-within:ring-ring/15";
823
- readonly button: "rounded-md text-muted-foreground hover:bg-muted hover:text-foreground active:scale-[0.94]";
824
- readonly limit: "text-muted-foreground/35 hover:bg-transparent hover:text-muted-foreground/35";
822
+ readonly button: "rounded-md text-foreground enabled:hover:bg-muted enabled:active:scale-[0.94] disabled:text-muted-foreground/40";
825
823
  readonly text: "font-mono font-medium tracking-tight";
826
824
  };
827
825
  };
package/dist/ui/index.js CHANGED
@@ -6332,14 +6332,12 @@ var sizeStyles = {
6332
6332
  var variantStyles = {
6333
6333
  pill: {
6334
6334
  container: "shadow-raised rounded-full",
6335
- button: "rounded-full text-foreground hover:bg-foreground/6 active:scale-[0.96]",
6336
- limit: "opacity-35 hover:bg-transparent",
6335
+ button: "rounded-full text-foreground enabled:hover:bg-foreground/6 enabled:active:scale-[0.96] disabled:opacity-35",
6337
6336
  text: "font-medium"
6338
6337
  },
6339
6338
  outline: {
6340
6339
  container: "rounded-lg bg-background p-0! transition-[border-color,box-shadow] duration-150 ease-out focus-within:border-ring focus-within:ring-3 focus-within:ring-ring/15",
6341
- button: "rounded-md text-muted-foreground hover:bg-muted hover:text-foreground active:scale-[0.94]",
6342
- limit: "text-muted-foreground/35 hover:bg-transparent hover:text-muted-foreground/35",
6340
+ button: "rounded-md text-foreground enabled:hover:bg-muted enabled:active:scale-[0.94] disabled:text-muted-foreground/40",
6343
6341
  text: "font-mono font-medium tracking-tight"
6344
6342
  }
6345
6343
  };
@@ -6554,8 +6552,7 @@ var NumberStepper = forwardRef4(
6554
6552
  "flex shrink-0 touch-manipulation items-center justify-center outline-hidden select-none disabled:cursor-not-allowed",
6555
6553
  styles.button,
6556
6554
  "transition-[scale,opacity,background-color,color] duration-150 ease-out motion-reduce:transition-[opacity,background-color,color]",
6557
- look.button,
6558
- (disabled || atLimit) && look.limit
6555
+ look.button
6559
6556
  ),
6560
6557
  children: /* @__PURE__ */ jsx42(
6561
6558
  "svg",
@@ -6586,7 +6583,7 @@ var NumberStepper = forwardRef4(
6586
6583
  styles.button,
6587
6584
  "transition-[scale,background-color,color] duration-150 ease-out motion-reduce:transition-[background-color,color]",
6588
6585
  look.button,
6589
- "hover:bg-destructive/10 hover:text-destructive"
6586
+ "enabled:hover:bg-destructive/10 enabled:hover:text-destructive"
6590
6587
  ),
6591
6588
  children: /* @__PURE__ */ jsx42(
6592
6589
  "svg",
@@ -6678,7 +6675,7 @@ var NumberStepper = forwardRef4(
6678
6675
  }
6679
6676
  },
6680
6677
  className: cn39(
6681
- "col-start-1 row-start-1 w-full bg-transparent text-center tabular-nums caret-foreground outline-hidden selection:bg-ring/25 disabled:cursor-not-allowed",
6678
+ "col-start-1 row-start-1 w-full bg-transparent text-center tabular-nums caret-foreground outline-hidden selection:bg-ring/25 selection:text-foreground disabled:cursor-not-allowed",
6682
6679
  styles.text,
6683
6680
  look.text,
6684
6681
  editing ? "text-foreground" : "text-transparent"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rockin",
3
- "version": "0.0.28",
3
+ "version": "0.0.30",
4
4
  "description": "Reusable React UI components, hooks, icons, utilities, and styles for Rock Star projects.",
5
5
  "keywords": [
6
6
  "react",