design-zystem 1.0.394 → 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.
@@ -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: ReactNode;
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;
@@ -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: ReactNode;
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: {
@@ -4968,6 +4974,7 @@ var ToastCard = ({
4968
4974
  }) => /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
4969
4975
  Layout,
4970
4976
  {
4977
+ role: "status",
4971
4978
  align: "start",
4972
4979
  gap: 3,
4973
4980
  className: cn(
@@ -6126,6 +6133,8 @@ var formatDate = (dateString, type = "date", language = "en") => {
6126
6133
  }
6127
6134
  case "longDate":
6128
6135
  return format2({ day: "numeric", month: "long", year: "numeric" });
6136
+ case "monthYear":
6137
+ return format2({ month: "long", year: "numeric" });
6129
6138
  default:
6130
6139
  return format2({ day: "2-digit", month: "2-digit", year: "numeric" });
6131
6140
  }
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: {
@@ -4791,6 +4797,7 @@ var ToastCard = ({
4791
4797
  }) => /* @__PURE__ */ jsxs31(
4792
4798
  Layout,
4793
4799
  {
4800
+ role: "status",
4794
4801
  align: "start",
4795
4802
  gap: 3,
4796
4803
  className: cn(
@@ -5955,6 +5962,8 @@ var formatDate = (dateString, type = "date", language = "en") => {
5955
5962
  }
5956
5963
  case "longDate":
5957
5964
  return format2({ day: "numeric", month: "long", year: "numeric" });
5965
+ case "monthYear":
5966
+ return format2({ month: "long", year: "numeric" });
5958
5967
  default:
5959
5968
  return format2({ day: "2-digit", month: "2-digit", year: "numeric" });
5960
5969
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "design-zystem",
3
- "version": "1.0.394",
3
+ "version": "1.0.396",
4
4
  "description": "A React design system of importable components",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",