@blakesteve/roster 4.12.0 → 4.12.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.
@@ -1,5 +1,5 @@
1
1
  import * as O from "react";
2
- import J, { useRef as Z, useCallback as _, useEffect as me, useState as $e, useMemo as Br, useLayoutEffect as yn, useContext as xn, createContext as kn, forwardRef as wn, isValidElement as En, cloneElement as Sn, createElement as An, Fragment as $n, useId as Nn } from "react";
2
+ import J, { useRef as Z, useCallback as _, useEffect as me, useState as $e, useMemo as Br, useLayoutEffect as yn, useContext as xn, createContext as kn, forwardRef as wn, Fragment as En, isValidElement as Sn, cloneElement as An, createElement as $n, useId as Nn } from "react";
3
3
  import { a as Pn, c as M } from "./utils-koxKGlVV.js";
4
4
  var je = { exports: {} }, ye = {};
5
5
  var or;
@@ -939,7 +939,7 @@ function De(e, t = {}, r, a, n) {
939
939
  for (let b of v) u[`data-${b}`] = "";
940
940
  }
941
941
  }
942
- if (He(s) && (Object.keys(le(l)).length > 0 || Object.keys(le(u)).length > 0)) if (!En(c) || Array.isArray(c) && c.length > 1 || Fs(c)) {
942
+ if (He(s) && (Object.keys(le(l)).length > 0 || Object.keys(le(u)).length > 0)) if (!Sn(c) || Array.isArray(c) && c.length > 1 || Fs(c)) {
943
943
  if (Object.keys(le(l)).length > 0) throw new Error(['Passing props on "Fragment"!', "", `The current component <${a} /> is rendering a "Fragment".`, "However we need to passthrough the following props:", Object.keys(le(l)).concat(Object.keys(le(u))).map((p) => ` - ${p}`).join(`
944
944
  `), "", "You can apply a few solutions:", ['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".', "Render a single element as the child so that we can forward the props onto that element."].map((p) => ` - ${p}`).join(`
945
945
  `)].join(`
@@ -947,9 +947,9 @@ function De(e, t = {}, r, a, n) {
947
947
  } else {
948
948
  let p = c.props, v = p?.className, b = typeof v == "function" ? (...E) => cr(v(...E), l.className) : cr(v, l.className), g = b ? { className: b } : {}, y = oa(c.props, le(ft(l, ["ref"])));
949
949
  for (let E in u) E in y && delete u[E];
950
- return Sn(c, Object.assign({}, y, u, f, { ref: n(Ts(c), f.ref) }, g));
950
+ return An(c, Object.assign({}, y, u, f, { ref: n(Ts(c), f.ref) }, g));
951
951
  }
952
- return An(s, Object.assign({}, ft(l, ["ref"]), !He(s) && f, !He(s) && u), c);
952
+ return $n(s, Object.assign({}, ft(l, ["ref"]), !He(s) && f, !He(s) && u), c);
953
953
  }
954
954
  function As() {
955
955
  let e = Z([]), t = _((r) => {
@@ -1011,7 +1011,7 @@ function Ts(e) {
1011
1011
  return J.version.split(".")[0] >= "19" ? e.props.ref : e.ref;
1012
1012
  }
1013
1013
  function He(e) {
1014
- return e === $n || e === /* @__PURE__ */ Symbol.for("react.fragment");
1014
+ return e === En || e === /* @__PURE__ */ Symbol.for("react.fragment");
1015
1015
  }
1016
1016
  function Fs(e) {
1017
1017
  return He(e.type);
@@ -1,16 +1,16 @@
1
1
  "use client";
2
- import { j as e, T as C, a as S, b as l, c as P, F as a, f as w, d as y, e as v, g as c, B as n, h as N, i as R, k as T, l as k } from "./Table-D-C0ivz2.js";
2
+ import { j as e, T as C, a as S, b as l, c as P, F as a, f as w, d as y, e as v, g as c, B as n, h as N, i as R, k as T, l as k } from "./Table-CSXfWRkc.js";
3
3
  import { useState as F } from "react";
4
- import { tableFeatures as I, sortFns as A, rowPaginationFeature as M, rowSortingFeature as z, createPaginatedRowModel as D, createSortedRowModel as G, useTable as H, flexRender as g } from "@tanstack/react-table";
4
+ import { useTable as I, flexRender as g, tableFeatures as A, sortFns as M, rowPaginationFeature as z, rowSortingFeature as D, createPaginatedRowModel as G, createSortedRowModel as H } from "@tanstack/react-table";
5
5
  import { c as o } from "./utils-koxKGlVV.js";
6
- const B = I({
7
- rowSortingFeature: z,
8
- rowPaginationFeature: M,
9
- sortedRowModel: G(),
10
- paginatedRowModel: D(),
6
+ const B = A({
7
+ rowSortingFeature: D,
8
+ rowPaginationFeature: z,
9
+ sortedRowModel: H(),
10
+ paginatedRowModel: G(),
11
11
  // The whole built-in registry, not a subset: DataTable is generic over
12
12
  // consumer data, so auto sort detection has to be able to reach any of them.
13
- sortFns: A
13
+ sortFns: M
14
14
  });
15
15
  function J({
16
16
  columns: i,
@@ -22,7 +22,7 @@ function J({
22
22
  size: p = "md",
23
23
  hoverable: j = !1
24
24
  }) {
25
- const [h, b] = F([]), t = H({
25
+ const [h, b] = F([]), t = I({
26
26
  features: B,
27
27
  data: d,
28
28
  columns: i,
package/dist/meta.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "4.12.0",
2
+ "version": "4.12.1",
3
3
  "tests": 1420,
4
4
  "testFiles": 111
5
5
  }
package/dist/roster.es.js CHANGED
@@ -1,8 +1,8 @@
1
1
  "use client";
2
- import { o as D, Y as Z, K as te, p as Ke, m as ha, n as He, q as ae, r as ie, $ as qe, s as Xe, w as Xt, V as Pe, t as $e, u as Dt, v as me, x as _t, y as ze, z as Ft, A as Mt, C as yt, D as cn, E as _e, G as Ll, H as jt, I as _l, J as ba, L as ee, j as f, F as be, M as Vl, N as va, O as ns, P as ro, Q as zl, R as Bl, S as kt, B as ct, U as Hl, W as Ws, X as $t, Z as un, _ as xa, a0 as ya, a1 as Wl, a2 as Ul, a3 as Gl, a4 as Yl, a5 as Kl } from "./Table-D-C0ivz2.js";
3
- import { T as hb, e as bb, a6 as vb, g as xb, a7 as yb, c as kb, a as wb, b as Sb, a8 as Eb, a9 as Nb, aa as Ob, ab as Cb, ac as Pb, ad as Ib, ae as Tb } from "./Table-D-C0ivz2.js";
2
+ import { o as D, Y as Z, K as te, p as Ke, m as ha, n as He, q as ae, r as ie, $ as qe, s as Xe, w as Xt, V as Pe, t as $e, u as Dt, v as me, x as _t, y as ze, z as Ft, A as Mt, C as yt, D as cn, E as _e, G as Ll, H as jt, I as _l, J as ba, L as ee, j as f, F as be, M as Vl, N as va, O as ns, P as ro, Q as zl, R as Bl, S as kt, B as ct, U as Hl, W as Ws, X as $t, Z as un, _ as xa, a0 as ya, a1 as Wl, a2 as Ul, a3 as Gl, a4 as Yl, a5 as Kl } from "./Table-CSXfWRkc.js";
3
+ import { T as hb, e as bb, a6 as vb, g as xb, a7 as yb, c as kb, a as wb, b as Sb, a8 as Eb, a9 as Nb, aa as Ob, ab as Cb, ac as Pb, ad as Ib, ae as Tb } from "./Table-CSXfWRkc.js";
4
4
  import * as k from "react";
5
- import N, { useState as se, useRef as W, isValidElement as ka, useEffect as fe, useContext as ue, createContext as ge, useMemo as ce, useId as de, useCallback as re, useSyncExternalStore as wa, useLayoutEffect as Sa, cloneElement as ql, Fragment as ke, useReducer as Ea, createRef as Xl, forwardRef as Na } from "react";
5
+ import N, { useState as se, useRef as W, isValidElement as ka, useEffect as fe, useContext as ue, createContext as ge, useId as de, useMemo as ce, useCallback as re, useSyncExternalStore as wa, useLayoutEffect as Sa, cloneElement as ql, Fragment as ke, useReducer as Ea, createRef as Xl, forwardRef as Na } from "react";
6
6
  import { c as P } from "./utils-koxKGlVV.js";
7
7
  import * as fr from "react-dom";
8
8
  import Ql, { flushSync as Te, createPortal as Oa } from "react-dom";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blakesteve/roster",
3
- "version": "4.12.0",
3
+ "version": "4.12.1",
4
4
  "description": "A production-grade atomic component library: accessible, theme-aware, and documented in Storybook. React 19, TypeScript, Tailwind CSS v4.",
5
5
  "keywords": [
6
6
  "react",
@@ -24,6 +24,9 @@
24
24
  "url": "https://github.com/blakesteve/roster/issues"
25
25
  },
26
26
  "type": "module",
27
+ "sideEffects": [
28
+ "**/*.css"
29
+ ],
27
30
  "files": [
28
31
  "dist"
29
32
  ],