@still-void/ui 3.3.1 → 3.4.1

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.
@@ -52,10 +52,10 @@ declare const accentsInk: {
52
52
  readonly amber: "oklch(0.78 0.12 75)";
53
53
  };
54
54
  readonly light: {
55
- readonly cyan: "oklch(0.525 0.09 210)";
56
- readonly violet: "oklch(0.545 0.14 295)";
57
- readonly mint: "oklch(0.52 0.1 160)";
58
- readonly amber: "oklch(0.535 0.11 75)";
55
+ readonly cyan: "oklch(0.515 0.09 210)";
56
+ readonly violet: "oklch(0.535 0.14 295)";
57
+ readonly mint: "oklch(0.515 0.1 160)";
58
+ readonly amber: "oklch(0.53 0.11 75)";
59
59
  };
60
60
  };
61
61
  /**
@@ -86,10 +86,10 @@ declare const semanticInk: {
86
86
  readonly warning: "oklch(0.78 0.12 75)";
87
87
  };
88
88
  readonly light: {
89
- readonly danger: "oklch(0.555 0.19 25)";
90
- readonly success: "oklch(0.515 0.14 150)";
91
- readonly info: "oklch(0.525 0.09 210)";
92
- readonly warning: "oklch(0.535 0.11 75)";
89
+ readonly danger: "oklch(0.535 0.19 25)";
90
+ readonly success: "oklch(0.51 0.14 150)";
91
+ readonly info: "oklch(0.515 0.09 210)";
92
+ readonly warning: "oklch(0.53 0.11 75)";
93
93
  };
94
94
  };
95
95
  type ThemeMode = keyof typeof colors;
@@ -551,6 +551,8 @@ declare const RadioGroup: React.ForwardRefExoticComponent<RadioGroupProps & Reac
551
551
 
552
552
  interface TableProps extends React.TableHTMLAttributes<HTMLTableElement> {
553
553
  containerClassName?: string;
554
+ /** Below 40rem, render each row as a block of label/value pairs. Pair with `TableCell label`. */
555
+ stack?: boolean;
554
556
  }
555
557
  declare const Table: React.ForwardRefExoticComponent<TableProps & React.RefAttributes<HTMLTableElement>>;
556
558
  interface TableHeaderProps extends React.HTMLAttributes<HTMLTableSectionElement> {
@@ -569,6 +571,8 @@ interface TableHeadProps extends React.ThHTMLAttributes<HTMLTableCellElement> {
569
571
  }
570
572
  declare const TableHead: React.ForwardRefExoticComponent<TableHeadProps & React.RefAttributes<HTMLTableCellElement>>;
571
573
  interface TableCellProps extends React.TdHTMLAttributes<HTMLTableCellElement> {
574
+ /** Column name shown before the value when the table is stacked (`Table stack`). */
575
+ label?: string;
572
576
  }
573
577
  declare const TableCell: React.ForwardRefExoticComponent<TableCellProps & React.RefAttributes<HTMLTableCellElement>>;
574
578
  interface TableCaptionProps extends React.HTMLAttributes<HTMLTableCaptionElement> {
@@ -252,10 +252,10 @@ var accentsInk = {
252
252
  amber: "oklch(0.78 0.12 75)"
253
253
  },
254
254
  light: {
255
- cyan: "oklch(0.525 0.09 210)",
256
- violet: "oklch(0.545 0.14 295)",
257
- mint: "oklch(0.52 0.1 160)",
258
- amber: "oklch(0.535 0.11 75)"
255
+ cyan: "oklch(0.515 0.09 210)",
256
+ violet: "oklch(0.535 0.14 295)",
257
+ mint: "oklch(0.515 0.1 160)",
258
+ amber: "oklch(0.53 0.11 75)"
259
259
  }
260
260
  };
261
261
  var semantic = {
@@ -280,10 +280,10 @@ var semanticInk = {
280
280
  warning: "oklch(0.78 0.12 75)"
281
281
  },
282
282
  light: {
283
- danger: "oklch(0.555 0.19 25)",
284
- success: "oklch(0.515 0.14 150)",
285
- info: "oklch(0.525 0.09 210)",
286
- warning: "oklch(0.535 0.11 75)"
283
+ danger: "oklch(0.535 0.19 25)",
284
+ success: "oklch(0.51 0.14 150)",
285
+ info: "oklch(0.515 0.09 210)",
286
+ warning: "oklch(0.53 0.11 75)"
287
287
  }
288
288
  };
289
289
  var themeModes = Object.keys(colors);
@@ -1093,7 +1093,14 @@ var tableClasses = {
1093
1093
  // src/components/ui/table.tsx
1094
1094
  import { jsx as jsx20 } from "react/jsx-runtime";
1095
1095
  var Table = React17.forwardRef(
1096
- ({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ jsx20("div", { className: cn(tableClasses.container, containerClassName), children: /* @__PURE__ */ jsx20("table", { className: cn(table(), className), ref, ...props }) })
1096
+ ({ className, containerClassName, stack, ...props }, ref) => /* @__PURE__ */ jsx20("div", { className: cn(tableClasses.container, containerClassName), children: /* @__PURE__ */ jsx20(
1097
+ "table",
1098
+ {
1099
+ className: cn(table(), stack && "sv-table--stack", className),
1100
+ ref,
1101
+ ...props
1102
+ }
1103
+ ) })
1097
1104
  );
1098
1105
  Table.displayName = "Table";
1099
1106
  var TableHeader = React17.forwardRef(
@@ -1117,7 +1124,15 @@ var TableHead = React17.forwardRef(
1117
1124
  );
1118
1125
  TableHead.displayName = "TableHead";
1119
1126
  var TableCell = React17.forwardRef(
1120
- ({ className, ...props }, ref) => /* @__PURE__ */ jsx20("td", { className: cn(tableClasses.td, className), ref, ...props })
1127
+ ({ className, label, ...props }, ref) => /* @__PURE__ */ jsx20(
1128
+ "td",
1129
+ {
1130
+ className: cn(tableClasses.td, className),
1131
+ "data-label": label,
1132
+ ref,
1133
+ ...props
1134
+ }
1135
+ )
1121
1136
  );
1122
1137
  TableCell.displayName = "TableCell";
1123
1138
  var TableCaption = React17.forwardRef(