design-zystem 1.0.395 → 1.0.397
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 +12 -3
- package/dist/ui/index.d.ts +12 -3
- package/dist/ui/index.js +9 -3
- package/dist/ui/index.mjs +9 -3
- 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;
|
|
@@ -805,7 +811,10 @@ interface AvatarFallbackProps extends ComponentPropsWithoutRef<typeof RadixAvata
|
|
|
805
811
|
color?: ColorToken;
|
|
806
812
|
}
|
|
807
813
|
declare const AvatarFallback: react.ForwardRefExoticComponent<AvatarFallbackProps & react.RefAttributes<HTMLSpanElement>>;
|
|
808
|
-
|
|
814
|
+
interface AvatarBadgeProps extends HTMLAttributes<HTMLDivElement> {
|
|
815
|
+
/** Diamètre en px. Par défaut 35 % de l'Avatar parent — à augmenter quand le badge porte une icône qui doit rester lisible sur un petit avatar. */
|
|
816
|
+
size?: number;
|
|
817
|
+
}
|
|
809
818
|
/** Positionné dans le coin bas-droit de l'Avatar parent (via context de taille) — un point de statut nu (`<AvatarBadge className="bg-green-700" />`) ou une icône en enfant. */
|
|
810
819
|
declare const AvatarBadge: react.ForwardRefExoticComponent<AvatarBadgeProps & react.RefAttributes<HTMLDivElement>>;
|
|
811
820
|
interface AvatarGroupProps extends HTMLAttributes<HTMLDivElement> {
|
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;
|
|
@@ -805,7 +811,10 @@ interface AvatarFallbackProps extends ComponentPropsWithoutRef<typeof RadixAvata
|
|
|
805
811
|
color?: ColorToken;
|
|
806
812
|
}
|
|
807
813
|
declare const AvatarFallback: react.ForwardRefExoticComponent<AvatarFallbackProps & react.RefAttributes<HTMLSpanElement>>;
|
|
808
|
-
|
|
814
|
+
interface AvatarBadgeProps extends HTMLAttributes<HTMLDivElement> {
|
|
815
|
+
/** Diamètre en px. Par défaut 35 % de l'Avatar parent — à augmenter quand le badge porte une icône qui doit rester lisible sur un petit avatar. */
|
|
816
|
+
size?: number;
|
|
817
|
+
}
|
|
809
818
|
/** Positionné dans le coin bas-droit de l'Avatar parent (via context de taille) — un point de statut nu (`<AvatarBadge className="bg-green-700" />`) ou une icône en enfant. */
|
|
810
819
|
declare const AvatarBadge: react.ForwardRefExoticComponent<AvatarBadgeProps & react.RefAttributes<HTMLDivElement>>;
|
|
811
820
|
interface AvatarGroupProps extends HTMLAttributes<HTMLDivElement> {
|
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: {
|
|
@@ -3814,9 +3820,9 @@ var AvatarFallback = (0, import_react26.forwardRef)((_a, ref) => {
|
|
|
3814
3820
|
AvatarFallback.displayName = "AvatarFallback";
|
|
3815
3821
|
var AvatarBadge = (0, import_react26.forwardRef)(
|
|
3816
3822
|
(_a, ref) => {
|
|
3817
|
-
var _b = _a, { className, style } = _b, props = __objRest(_b, ["className", "style"]);
|
|
3818
|
-
const
|
|
3819
|
-
const badgeSize = Math.round(
|
|
3823
|
+
var _b = _a, { size, className, style } = _b, props = __objRest(_b, ["size", "className", "style"]);
|
|
3824
|
+
const avatarSize = useAvatarSize();
|
|
3825
|
+
const badgeSize = size != null ? size : Math.round(avatarSize * 0.35);
|
|
3820
3826
|
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
3821
3827
|
"div",
|
|
3822
3828
|
__spreadValues({
|
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: {
|
|
@@ -3637,9 +3643,9 @@ var AvatarFallback = forwardRef17((_a, ref) => {
|
|
|
3637
3643
|
AvatarFallback.displayName = "AvatarFallback";
|
|
3638
3644
|
var AvatarBadge = forwardRef17(
|
|
3639
3645
|
(_a, ref) => {
|
|
3640
|
-
var _b = _a, { className, style } = _b, props = __objRest(_b, ["className", "style"]);
|
|
3641
|
-
const
|
|
3642
|
-
const badgeSize = Math.round(
|
|
3646
|
+
var _b = _a, { size, className, style } = _b, props = __objRest(_b, ["size", "className", "style"]);
|
|
3647
|
+
const avatarSize = useAvatarSize();
|
|
3648
|
+
const badgeSize = size != null ? size : Math.round(avatarSize * 0.35);
|
|
3643
3649
|
return /* @__PURE__ */ jsx44(
|
|
3644
3650
|
"div",
|
|
3645
3651
|
__spreadValues({
|