design-zystem 1.0.398 → 1.0.399
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/ui/index.d.mts +4 -0
- package/dist/ui/index.d.ts +4 -0
- package/dist/ui/index.js +9 -1
- package/dist/ui/index.mjs +9 -1
- package/package.json +1 -1
package/dist/ui/index.d.mts
CHANGED
|
@@ -732,6 +732,10 @@ interface TableRowProps {
|
|
|
732
732
|
backgroundColor?: HexColor;
|
|
733
733
|
/** Liseré vertical gauche, même usage que `backgroundColor`. */
|
|
734
734
|
accentColor?: HexColor;
|
|
735
|
+
/** Index de la ligne dans une liste virtualisée (ex. @tanstack/react-virtual,
|
|
736
|
+
* dont `measureElement` lit cet attribut sur l'élément mesuré pour retrouver
|
|
737
|
+
* quelle ligne a changé de taille). Sans objet hors virtualisation. */
|
|
738
|
+
'data-index'?: number;
|
|
735
739
|
}
|
|
736
740
|
declare const TableRow: react.ForwardRefExoticComponent<TableRowProps & react.RefAttributes<HTMLTableRowElement>>;
|
|
737
741
|
|
package/dist/ui/index.d.ts
CHANGED
|
@@ -732,6 +732,10 @@ interface TableRowProps {
|
|
|
732
732
|
backgroundColor?: HexColor;
|
|
733
733
|
/** Liseré vertical gauche, même usage que `backgroundColor`. */
|
|
734
734
|
accentColor?: HexColor;
|
|
735
|
+
/** Index de la ligne dans une liste virtualisée (ex. @tanstack/react-virtual,
|
|
736
|
+
* dont `measureElement` lit cet attribut sur l'élément mesuré pour retrouver
|
|
737
|
+
* quelle ligne a changé de taille). Sans objet hors virtualisation. */
|
|
738
|
+
'data-index'?: number;
|
|
735
739
|
}
|
|
736
740
|
declare const TableRow: react.ForwardRefExoticComponent<TableRowProps & react.RefAttributes<HTMLTableRowElement>>;
|
|
737
741
|
|
package/dist/ui/index.js
CHANGED
|
@@ -3453,10 +3453,18 @@ var TableHeaderCell = ({
|
|
|
3453
3453
|
var import_react26 = require("react");
|
|
3454
3454
|
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
3455
3455
|
var TableRow = (0, import_react26.forwardRef)(
|
|
3456
|
-
({
|
|
3456
|
+
({
|
|
3457
|
+
children,
|
|
3458
|
+
onClick,
|
|
3459
|
+
className,
|
|
3460
|
+
backgroundColor,
|
|
3461
|
+
accentColor,
|
|
3462
|
+
"data-index": dataIndex
|
|
3463
|
+
}, ref) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
3457
3464
|
"tr",
|
|
3458
3465
|
{
|
|
3459
3466
|
ref,
|
|
3467
|
+
"data-index": dataIndex,
|
|
3460
3468
|
onClick,
|
|
3461
3469
|
className: cn(
|
|
3462
3470
|
"border-t border-grey-200 transition-colors hover:bg-black/[0.025]",
|
package/dist/ui/index.mjs
CHANGED
|
@@ -3269,10 +3269,18 @@ var TableHeaderCell = ({
|
|
|
3269
3269
|
import { forwardRef as forwardRef17 } from "react";
|
|
3270
3270
|
import { jsx as jsx39 } from "react/jsx-runtime";
|
|
3271
3271
|
var TableRow = forwardRef17(
|
|
3272
|
-
({
|
|
3272
|
+
({
|
|
3273
|
+
children,
|
|
3274
|
+
onClick,
|
|
3275
|
+
className,
|
|
3276
|
+
backgroundColor,
|
|
3277
|
+
accentColor,
|
|
3278
|
+
"data-index": dataIndex
|
|
3279
|
+
}, ref) => /* @__PURE__ */ jsx39(
|
|
3273
3280
|
"tr",
|
|
3274
3281
|
{
|
|
3275
3282
|
ref,
|
|
3283
|
+
"data-index": dataIndex,
|
|
3276
3284
|
onClick,
|
|
3277
3285
|
className: cn(
|
|
3278
3286
|
"border-t border-grey-200 transition-colors hover:bg-black/[0.025]",
|