design-zystem 1.0.395 → 1.0.396
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 +8 -2
- package/dist/ui/index.d.ts +8 -2
- package/dist/ui/index.js +6 -0
- package/dist/ui/index.mjs +6 -0
- package/package.json +1 -1
package/dist/ui/index.d.mts
CHANGED
|
@@ -648,8 +648,9 @@ interface TagLevelPickerProps {
|
|
|
648
648
|
declare const TagLevelPicker: ({ tags, options, levelCount, levelLabel, onAdd, onRemove, onLevelChange, placeholder, maxSuggestions, disabled, className, }: TagLevelPickerProps) => react.JSX.Element;
|
|
649
649
|
|
|
650
650
|
interface TableEmptyState {
|
|
651
|
-
icon
|
|
651
|
+
icon?: ReactNode;
|
|
652
652
|
label: string;
|
|
653
|
+
description?: string;
|
|
653
654
|
buttonLabel?: string;
|
|
654
655
|
action?: () => void;
|
|
655
656
|
}
|
|
@@ -738,6 +739,9 @@ declare const SURFACE_CLASS: {
|
|
|
738
739
|
readonly white: "bg-white";
|
|
739
740
|
readonly 'grey-100': "bg-grey-100";
|
|
740
741
|
};
|
|
742
|
+
declare const CURSOR_CLASS: {
|
|
743
|
+
readonly pointer: "cursor-pointer";
|
|
744
|
+
};
|
|
741
745
|
interface TableCellProps {
|
|
742
746
|
children?: ReactNode;
|
|
743
747
|
width?: string;
|
|
@@ -754,11 +758,13 @@ interface TableCellProps {
|
|
|
754
758
|
accentColor?: HexColor;
|
|
755
759
|
/** Séparateur vertical entre colonnes. */
|
|
756
760
|
borderLeft?: boolean;
|
|
761
|
+
/** Curseur sur toute la cellule — quand un enfant de la cellule porte sa propre action de clic. */
|
|
762
|
+
cursor?: keyof typeof CURSOR_CLASS;
|
|
757
763
|
className?: string;
|
|
758
764
|
/** Fusionne la cellule sur ce nombre de colonnes — ignore `width` pour laisser le navigateur répartir l'espace fusionné. */
|
|
759
765
|
colSpan?: number;
|
|
760
766
|
}
|
|
761
|
-
declare const TableCell: ({ children, width, centerContent, sticky, stickyOffset, surface, backgroundColor, accentColor, borderLeft, colSpan, className, }: TableCellProps) => react.JSX.Element;
|
|
767
|
+
declare const TableCell: ({ children, width, centerContent, sticky, stickyOffset, surface, backgroundColor, accentColor, borderLeft, colSpan, cursor, className, }: TableCellProps) => react.JSX.Element;
|
|
762
768
|
|
|
763
769
|
interface TableFooterProps {
|
|
764
770
|
children?: ReactNode;
|
package/dist/ui/index.d.ts
CHANGED
|
@@ -648,8 +648,9 @@ interface TagLevelPickerProps {
|
|
|
648
648
|
declare const TagLevelPicker: ({ tags, options, levelCount, levelLabel, onAdd, onRemove, onLevelChange, placeholder, maxSuggestions, disabled, className, }: TagLevelPickerProps) => react.JSX.Element;
|
|
649
649
|
|
|
650
650
|
interface TableEmptyState {
|
|
651
|
-
icon
|
|
651
|
+
icon?: ReactNode;
|
|
652
652
|
label: string;
|
|
653
|
+
description?: string;
|
|
653
654
|
buttonLabel?: string;
|
|
654
655
|
action?: () => void;
|
|
655
656
|
}
|
|
@@ -738,6 +739,9 @@ declare const SURFACE_CLASS: {
|
|
|
738
739
|
readonly white: "bg-white";
|
|
739
740
|
readonly 'grey-100': "bg-grey-100";
|
|
740
741
|
};
|
|
742
|
+
declare const CURSOR_CLASS: {
|
|
743
|
+
readonly pointer: "cursor-pointer";
|
|
744
|
+
};
|
|
741
745
|
interface TableCellProps {
|
|
742
746
|
children?: ReactNode;
|
|
743
747
|
width?: string;
|
|
@@ -754,11 +758,13 @@ interface TableCellProps {
|
|
|
754
758
|
accentColor?: HexColor;
|
|
755
759
|
/** Séparateur vertical entre colonnes. */
|
|
756
760
|
borderLeft?: boolean;
|
|
761
|
+
/** Curseur sur toute la cellule — quand un enfant de la cellule porte sa propre action de clic. */
|
|
762
|
+
cursor?: keyof typeof CURSOR_CLASS;
|
|
757
763
|
className?: string;
|
|
758
764
|
/** Fusionne la cellule sur ce nombre de colonnes — ignore `width` pour laisser le navigateur répartir l'espace fusionné. */
|
|
759
765
|
colSpan?: number;
|
|
760
766
|
}
|
|
761
|
-
declare const TableCell: ({ children, width, centerContent, sticky, stickyOffset, surface, backgroundColor, accentColor, borderLeft, colSpan, className, }: TableCellProps) => react.JSX.Element;
|
|
767
|
+
declare const TableCell: ({ children, width, centerContent, sticky, stickyOffset, surface, backgroundColor, accentColor, borderLeft, colSpan, cursor, className, }: TableCellProps) => react.JSX.Element;
|
|
762
768
|
|
|
763
769
|
interface TableFooterProps {
|
|
764
770
|
children?: ReactNode;
|
package/dist/ui/index.js
CHANGED
|
@@ -3354,6 +3354,7 @@ var Table = ({
|
|
|
3354
3354
|
{
|
|
3355
3355
|
icon: emptyState.icon,
|
|
3356
3356
|
title: emptyState.label,
|
|
3357
|
+
description: emptyState.description,
|
|
3357
3358
|
actionLabel: emptyState.buttonLabel,
|
|
3358
3359
|
onAction: emptyState.action
|
|
3359
3360
|
}
|
|
@@ -3480,6 +3481,9 @@ var SURFACE_CLASS2 = {
|
|
|
3480
3481
|
white: "bg-white",
|
|
3481
3482
|
"grey-100": "bg-grey-100"
|
|
3482
3483
|
};
|
|
3484
|
+
var CURSOR_CLASS = {
|
|
3485
|
+
pointer: "cursor-pointer"
|
|
3486
|
+
};
|
|
3483
3487
|
var TableCell = ({
|
|
3484
3488
|
children,
|
|
3485
3489
|
width,
|
|
@@ -3491,6 +3495,7 @@ var TableCell = ({
|
|
|
3491
3495
|
accentColor,
|
|
3492
3496
|
borderLeft = false,
|
|
3493
3497
|
colSpan,
|
|
3498
|
+
cursor,
|
|
3494
3499
|
className
|
|
3495
3500
|
}) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
3496
3501
|
"td",
|
|
@@ -3506,6 +3511,7 @@ var TableCell = ({
|
|
|
3506
3511
|
sticky && !backgroundColor && cn("z-[2]", SURFACE_CLASS2[surface]),
|
|
3507
3512
|
sticky && backgroundColor && "z-[2]",
|
|
3508
3513
|
accentColor && "border-l-4",
|
|
3514
|
+
cursor && CURSOR_CLASS[cursor],
|
|
3509
3515
|
className
|
|
3510
3516
|
),
|
|
3511
3517
|
style: {
|
package/dist/ui/index.mjs
CHANGED
|
@@ -3170,6 +3170,7 @@ var Table = ({
|
|
|
3170
3170
|
{
|
|
3171
3171
|
icon: emptyState.icon,
|
|
3172
3172
|
title: emptyState.label,
|
|
3173
|
+
description: emptyState.description,
|
|
3173
3174
|
actionLabel: emptyState.buttonLabel,
|
|
3174
3175
|
onAction: emptyState.action
|
|
3175
3176
|
}
|
|
@@ -3296,6 +3297,9 @@ var SURFACE_CLASS2 = {
|
|
|
3296
3297
|
white: "bg-white",
|
|
3297
3298
|
"grey-100": "bg-grey-100"
|
|
3298
3299
|
};
|
|
3300
|
+
var CURSOR_CLASS = {
|
|
3301
|
+
pointer: "cursor-pointer"
|
|
3302
|
+
};
|
|
3299
3303
|
var TableCell = ({
|
|
3300
3304
|
children,
|
|
3301
3305
|
width,
|
|
@@ -3307,6 +3311,7 @@ var TableCell = ({
|
|
|
3307
3311
|
accentColor,
|
|
3308
3312
|
borderLeft = false,
|
|
3309
3313
|
colSpan,
|
|
3314
|
+
cursor,
|
|
3310
3315
|
className
|
|
3311
3316
|
}) => /* @__PURE__ */ jsx40(
|
|
3312
3317
|
"td",
|
|
@@ -3322,6 +3327,7 @@ var TableCell = ({
|
|
|
3322
3327
|
sticky && !backgroundColor && cn("z-[2]", SURFACE_CLASS2[surface]),
|
|
3323
3328
|
sticky && backgroundColor && "z-[2]",
|
|
3324
3329
|
accentColor && "border-l-4",
|
|
3330
|
+
cursor && CURSOR_CLASS[cursor],
|
|
3325
3331
|
className
|
|
3326
3332
|
),
|
|
3327
3333
|
style: {
|