@ai-matrx/design-system 0.5.0 → 0.5.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.5.1
4
+
5
+ Automatic changed-only republish (docs/metadata drift since the last tag — see
6
+ `git diff npm/design-system/v0.5.0..npm/design-system/v0.5.1 -- apps/shared/design-system`).
7
+ No source changes intended and no consumer action required.
8
+
3
9
  ## 0.5.0 — 2026-09-07
4
10
 
5
11
  **THE GROWTH WAVE (C18).** The 2026-09-07 adoption lane deleted 34 forked
package/dist/index.cjs CHANGED
@@ -742,7 +742,7 @@ var CHECKBOX_SIZES = {
742
742
  sm: { root: "h-3.5 w-3.5 rounded-xs", glyph: "h-3 w-3" },
743
743
  md: { root: "h-4 w-4 rounded-sm", glyph: "h-3.5 w-3.5" }
744
744
  };
745
- var Checkbox = React6.forwardRef(({ className, size = "sm", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
745
+ var Checkbox = React6.forwardRef(({ className, size = "md", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
746
746
  CheckboxPrimitive.Root,
747
747
  {
748
748
  ref,
@@ -804,11 +804,14 @@ function useIsMobile() {
804
804
  const [hasMounted, setHasMounted] = React8.useState(false);
805
805
  React8.useEffect(() => {
806
806
  setHasMounted(true);
807
- const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
808
807
  const onChange = () => {
809
808
  setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
810
809
  };
811
810
  onChange();
811
+ if (typeof window.matchMedia !== "function") {
812
+ return void 0;
813
+ }
814
+ const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
812
815
  mql.addEventListener("change", onChange);
813
816
  return () => mql.removeEventListener("change", onChange);
814
817
  }, []);
@@ -2814,12 +2817,12 @@ var TABLE_SIZES = {
2814
2817
  sm: { head: "px-2", cell: "p-2" },
2815
2818
  md: { head: "px-3", cell: "p-3" }
2816
2819
  };
2817
- var TableSizeContext = React23.createContext("sm");
2820
+ var TableSizeContext = React23.createContext("md");
2818
2821
  function useTableSize() {
2819
2822
  return React23.useContext(TableSizeContext);
2820
2823
  }
2821
2824
  var Table = React23.forwardRef(
2822
- ({ className, size = "sm", wrap = true, wrapperClassName, ...props }, ref) => {
2825
+ ({ className, size = "md", wrap = true, wrapperClassName, ...props }, ref) => {
2823
2826
  const table = /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
2824
2827
  "table",
2825
2828
  {