design-zystem 1.0.434 → 1.0.436
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 +44 -12
- package/dist/ui/index.d.ts +44 -12
- package/dist/ui/index.js +761 -568
- package/dist/ui/index.mjs +761 -568
- package/dist/ui/style.css +1 -1
- package/package.json +1 -1
package/dist/ui/index.d.mts
CHANGED
|
@@ -729,6 +729,8 @@ interface RowSelection {
|
|
|
729
729
|
isRange?: boolean;
|
|
730
730
|
}) => void;
|
|
731
731
|
toggleAllOnPage: () => void;
|
|
732
|
+
getGroupState: (groupIds: RowId[]) => HeaderCheckState;
|
|
733
|
+
toggleGroup: (groupIds: RowId[]) => void;
|
|
732
734
|
selectAllResults: () => void;
|
|
733
735
|
clear: () => void;
|
|
734
736
|
}
|
|
@@ -860,6 +862,7 @@ interface TableRowProps {
|
|
|
860
862
|
* dont `measureElement` lit cet attribut sur l'élément mesuré pour retrouver
|
|
861
863
|
* quelle ligne a changé de taille). Sans objet hors virtualisation. */
|
|
862
864
|
'data-index'?: number;
|
|
865
|
+
isMuted?: boolean;
|
|
863
866
|
}
|
|
864
867
|
declare const TableRow: react.ForwardRefExoticComponent<TableRowProps & react.RefAttributes<HTMLTableRowElement>>;
|
|
865
868
|
|
|
@@ -867,11 +870,18 @@ declare const SURFACE_CLASS: {
|
|
|
867
870
|
readonly white: "bg-white";
|
|
868
871
|
readonly 'grey-100': "bg-grey-100";
|
|
869
872
|
};
|
|
873
|
+
declare const LINE_CLAMP_CLASS: {
|
|
874
|
+
readonly 2: "line-clamp-2";
|
|
875
|
+
readonly 3: "line-clamp-3";
|
|
876
|
+
};
|
|
877
|
+
type TableCellTheme = Exclude<ColorToken, 'red-900'>;
|
|
870
878
|
declare const CURSOR_CLASS: {
|
|
871
879
|
readonly pointer: "cursor-pointer";
|
|
872
880
|
};
|
|
873
881
|
interface TableCellProps {
|
|
874
882
|
children?: ReactNode;
|
|
883
|
+
secondary?: ReactNode;
|
|
884
|
+
isExpanded?: boolean;
|
|
875
885
|
width?: string;
|
|
876
886
|
centerContent?: boolean;
|
|
877
887
|
/** Freeze this column while the table scrolls horizontally. */
|
|
@@ -891,8 +901,12 @@ interface TableCellProps {
|
|
|
891
901
|
className?: string;
|
|
892
902
|
/** Fusionne la cellule sur ce nombre de colonnes — ignore `width` pour laisser le navigateur répartir l'espace fusionné. */
|
|
893
903
|
colSpan?: number;
|
|
904
|
+
wrap?: boolean;
|
|
905
|
+
maxLines?: keyof typeof LINE_CLAMP_CLASS;
|
|
906
|
+
tooltip?: ReactNode;
|
|
907
|
+
theme?: TableCellTheme;
|
|
894
908
|
}
|
|
895
|
-
declare const TableCell: ({ children, width, centerContent, sticky, stickyOffset, surface, backgroundColor, accentColor, borderLeft, colSpan, cursor, className, }: TableCellProps) => react.JSX.Element;
|
|
909
|
+
declare const TableCell: ({ children, secondary, isExpanded, width, centerContent, sticky, stickyOffset, surface, backgroundColor, accentColor, borderLeft, colSpan, cursor, className, wrap, maxLines, tooltip, theme, }: TableCellProps) => react.JSX.Element;
|
|
896
910
|
|
|
897
911
|
interface TableFooterProps {
|
|
898
912
|
children?: ReactNode;
|
|
@@ -919,23 +933,32 @@ interface TableGroupSelection {
|
|
|
919
933
|
onToggle: () => void;
|
|
920
934
|
label: string;
|
|
921
935
|
}
|
|
936
|
+
interface TableGroupStatusCount {
|
|
937
|
+
value: number;
|
|
938
|
+
theme: ColorToken;
|
|
939
|
+
label: string;
|
|
940
|
+
}
|
|
922
941
|
interface TableGroupLabelProps {
|
|
923
942
|
title: string;
|
|
924
943
|
count?: number;
|
|
944
|
+
counts?: TableGroupStatusCount[];
|
|
925
945
|
isCollapsed?: boolean;
|
|
926
946
|
onToggleCollapse?: () => void;
|
|
927
947
|
selection?: TableGroupSelection;
|
|
928
948
|
}
|
|
929
949
|
|
|
930
|
-
interface
|
|
950
|
+
interface TableGroupBandProps extends TableGroupLabelProps {
|
|
931
951
|
colSpan: number;
|
|
952
|
+
canCollapseFromBand?: boolean;
|
|
932
953
|
}
|
|
933
|
-
declare const TableSectionRow: ({ colSpan, ...label }: TableSectionRowProps) => react.JSX.Element;
|
|
934
954
|
|
|
935
|
-
interface
|
|
936
|
-
|
|
955
|
+
interface TableSectionRowProps extends TableGroupBandProps {
|
|
956
|
+
endContent?: ReactNode;
|
|
937
957
|
}
|
|
938
|
-
declare const
|
|
958
|
+
declare const TableSectionRow: (props: TableSectionRowProps) => react.JSX.Element;
|
|
959
|
+
|
|
960
|
+
type TableSubgroupRowProps = TableGroupBandProps;
|
|
961
|
+
declare const TableSubgroupRow: (props: TableSubgroupRowProps) => react.JSX.Element;
|
|
939
962
|
|
|
940
963
|
type TableAlertTone = 'red' | 'yellow' | 'green' | 'blue';
|
|
941
964
|
interface TableAlertAction {
|
|
@@ -953,23 +976,28 @@ declare const TableAlertRow: ({ children, colSpan, tone, action, }: TableAlertRo
|
|
|
953
976
|
interface TableExpandedRowProps {
|
|
954
977
|
/** Des `TableCell` : la sous-ligne reprend les colonnes du tableau, avec les mêmes largeurs que l'en-tête. */
|
|
955
978
|
children?: ReactNode;
|
|
979
|
+
onClick?: () => void;
|
|
956
980
|
}
|
|
957
|
-
declare const TableExpandedRow: ({ children }: TableExpandedRowProps) => react.JSX.Element;
|
|
981
|
+
declare const TableExpandedRow: ({ children, onClick, }: TableExpandedRowProps) => react.JSX.Element;
|
|
958
982
|
|
|
959
983
|
interface TablePersonCellProps {
|
|
960
984
|
firstName: string;
|
|
961
985
|
lastName?: string | null;
|
|
962
986
|
src?: string | null;
|
|
987
|
+
avatarBadge?: ReactNode;
|
|
988
|
+
secondary?: ReactNode;
|
|
989
|
+
onNameClick?: () => void;
|
|
990
|
+
isExpanded?: boolean;
|
|
963
991
|
width?: string;
|
|
964
992
|
}
|
|
965
|
-
declare const TablePersonCell: ({ firstName, lastName, src, width, }: TablePersonCellProps) => react.JSX.Element;
|
|
993
|
+
declare const TablePersonCell: ({ firstName, lastName, src, avatarBadge, secondary, onNameClick, isExpanded, width, }: TablePersonCellProps) => react.JSX.Element;
|
|
966
994
|
|
|
967
|
-
interface TableClientCellProps {
|
|
995
|
+
interface TableClientCellProps extends Pick<TableCellProps, 'width' | 'sticky' | 'stickyOffset' | 'isExpanded' | 'accentColor'> {
|
|
968
996
|
name: string;
|
|
969
997
|
color: HexColor;
|
|
970
|
-
|
|
998
|
+
onNameClick?: () => void;
|
|
971
999
|
}
|
|
972
|
-
declare const TableClientCell: ({ name, color,
|
|
1000
|
+
declare const TableClientCell: ({ name, color, onNameClick, ...cell }: TableClientCellProps) => react.JSX.Element;
|
|
973
1001
|
|
|
974
1002
|
interface TableStatusCellProps {
|
|
975
1003
|
children: ReactNode;
|
|
@@ -986,6 +1014,8 @@ interface TableAction {
|
|
|
986
1014
|
disabled?: boolean;
|
|
987
1015
|
/** Dit pourquoi l'action est indisponible, en infobulle. */
|
|
988
1016
|
disabledReason?: string;
|
|
1017
|
+
hasUnread?: boolean;
|
|
1018
|
+
inMenu?: boolean;
|
|
989
1019
|
}
|
|
990
1020
|
interface TableActionsCellProps {
|
|
991
1021
|
actions: TableAction[];
|
|
@@ -999,9 +1029,11 @@ interface TableSelectCellProps {
|
|
|
999
1029
|
isRange: boolean;
|
|
1000
1030
|
}) => void;
|
|
1001
1031
|
label: string;
|
|
1032
|
+
disabled?: boolean;
|
|
1033
|
+
disabledReason?: string;
|
|
1002
1034
|
width?: string;
|
|
1003
1035
|
}
|
|
1004
|
-
declare const TableSelectCell: ({ isSelected, onToggle, label, width, }: TableSelectCellProps) => react.JSX.Element;
|
|
1036
|
+
declare const TableSelectCell: ({ isSelected, onToggle, label, disabled, disabledReason, width, }: TableSelectCellProps) => react.JSX.Element;
|
|
1005
1037
|
|
|
1006
1038
|
interface TableSelectHeaderCellProps {
|
|
1007
1039
|
state: HeaderCheckState;
|
package/dist/ui/index.d.ts
CHANGED
|
@@ -729,6 +729,8 @@ interface RowSelection {
|
|
|
729
729
|
isRange?: boolean;
|
|
730
730
|
}) => void;
|
|
731
731
|
toggleAllOnPage: () => void;
|
|
732
|
+
getGroupState: (groupIds: RowId[]) => HeaderCheckState;
|
|
733
|
+
toggleGroup: (groupIds: RowId[]) => void;
|
|
732
734
|
selectAllResults: () => void;
|
|
733
735
|
clear: () => void;
|
|
734
736
|
}
|
|
@@ -860,6 +862,7 @@ interface TableRowProps {
|
|
|
860
862
|
* dont `measureElement` lit cet attribut sur l'élément mesuré pour retrouver
|
|
861
863
|
* quelle ligne a changé de taille). Sans objet hors virtualisation. */
|
|
862
864
|
'data-index'?: number;
|
|
865
|
+
isMuted?: boolean;
|
|
863
866
|
}
|
|
864
867
|
declare const TableRow: react.ForwardRefExoticComponent<TableRowProps & react.RefAttributes<HTMLTableRowElement>>;
|
|
865
868
|
|
|
@@ -867,11 +870,18 @@ declare const SURFACE_CLASS: {
|
|
|
867
870
|
readonly white: "bg-white";
|
|
868
871
|
readonly 'grey-100': "bg-grey-100";
|
|
869
872
|
};
|
|
873
|
+
declare const LINE_CLAMP_CLASS: {
|
|
874
|
+
readonly 2: "line-clamp-2";
|
|
875
|
+
readonly 3: "line-clamp-3";
|
|
876
|
+
};
|
|
877
|
+
type TableCellTheme = Exclude<ColorToken, 'red-900'>;
|
|
870
878
|
declare const CURSOR_CLASS: {
|
|
871
879
|
readonly pointer: "cursor-pointer";
|
|
872
880
|
};
|
|
873
881
|
interface TableCellProps {
|
|
874
882
|
children?: ReactNode;
|
|
883
|
+
secondary?: ReactNode;
|
|
884
|
+
isExpanded?: boolean;
|
|
875
885
|
width?: string;
|
|
876
886
|
centerContent?: boolean;
|
|
877
887
|
/** Freeze this column while the table scrolls horizontally. */
|
|
@@ -891,8 +901,12 @@ interface TableCellProps {
|
|
|
891
901
|
className?: string;
|
|
892
902
|
/** Fusionne la cellule sur ce nombre de colonnes — ignore `width` pour laisser le navigateur répartir l'espace fusionné. */
|
|
893
903
|
colSpan?: number;
|
|
904
|
+
wrap?: boolean;
|
|
905
|
+
maxLines?: keyof typeof LINE_CLAMP_CLASS;
|
|
906
|
+
tooltip?: ReactNode;
|
|
907
|
+
theme?: TableCellTheme;
|
|
894
908
|
}
|
|
895
|
-
declare const TableCell: ({ children, width, centerContent, sticky, stickyOffset, surface, backgroundColor, accentColor, borderLeft, colSpan, cursor, className, }: TableCellProps) => react.JSX.Element;
|
|
909
|
+
declare const TableCell: ({ children, secondary, isExpanded, width, centerContent, sticky, stickyOffset, surface, backgroundColor, accentColor, borderLeft, colSpan, cursor, className, wrap, maxLines, tooltip, theme, }: TableCellProps) => react.JSX.Element;
|
|
896
910
|
|
|
897
911
|
interface TableFooterProps {
|
|
898
912
|
children?: ReactNode;
|
|
@@ -919,23 +933,32 @@ interface TableGroupSelection {
|
|
|
919
933
|
onToggle: () => void;
|
|
920
934
|
label: string;
|
|
921
935
|
}
|
|
936
|
+
interface TableGroupStatusCount {
|
|
937
|
+
value: number;
|
|
938
|
+
theme: ColorToken;
|
|
939
|
+
label: string;
|
|
940
|
+
}
|
|
922
941
|
interface TableGroupLabelProps {
|
|
923
942
|
title: string;
|
|
924
943
|
count?: number;
|
|
944
|
+
counts?: TableGroupStatusCount[];
|
|
925
945
|
isCollapsed?: boolean;
|
|
926
946
|
onToggleCollapse?: () => void;
|
|
927
947
|
selection?: TableGroupSelection;
|
|
928
948
|
}
|
|
929
949
|
|
|
930
|
-
interface
|
|
950
|
+
interface TableGroupBandProps extends TableGroupLabelProps {
|
|
931
951
|
colSpan: number;
|
|
952
|
+
canCollapseFromBand?: boolean;
|
|
932
953
|
}
|
|
933
|
-
declare const TableSectionRow: ({ colSpan, ...label }: TableSectionRowProps) => react.JSX.Element;
|
|
934
954
|
|
|
935
|
-
interface
|
|
936
|
-
|
|
955
|
+
interface TableSectionRowProps extends TableGroupBandProps {
|
|
956
|
+
endContent?: ReactNode;
|
|
937
957
|
}
|
|
938
|
-
declare const
|
|
958
|
+
declare const TableSectionRow: (props: TableSectionRowProps) => react.JSX.Element;
|
|
959
|
+
|
|
960
|
+
type TableSubgroupRowProps = TableGroupBandProps;
|
|
961
|
+
declare const TableSubgroupRow: (props: TableSubgroupRowProps) => react.JSX.Element;
|
|
939
962
|
|
|
940
963
|
type TableAlertTone = 'red' | 'yellow' | 'green' | 'blue';
|
|
941
964
|
interface TableAlertAction {
|
|
@@ -953,23 +976,28 @@ declare const TableAlertRow: ({ children, colSpan, tone, action, }: TableAlertRo
|
|
|
953
976
|
interface TableExpandedRowProps {
|
|
954
977
|
/** Des `TableCell` : la sous-ligne reprend les colonnes du tableau, avec les mêmes largeurs que l'en-tête. */
|
|
955
978
|
children?: ReactNode;
|
|
979
|
+
onClick?: () => void;
|
|
956
980
|
}
|
|
957
|
-
declare const TableExpandedRow: ({ children }: TableExpandedRowProps) => react.JSX.Element;
|
|
981
|
+
declare const TableExpandedRow: ({ children, onClick, }: TableExpandedRowProps) => react.JSX.Element;
|
|
958
982
|
|
|
959
983
|
interface TablePersonCellProps {
|
|
960
984
|
firstName: string;
|
|
961
985
|
lastName?: string | null;
|
|
962
986
|
src?: string | null;
|
|
987
|
+
avatarBadge?: ReactNode;
|
|
988
|
+
secondary?: ReactNode;
|
|
989
|
+
onNameClick?: () => void;
|
|
990
|
+
isExpanded?: boolean;
|
|
963
991
|
width?: string;
|
|
964
992
|
}
|
|
965
|
-
declare const TablePersonCell: ({ firstName, lastName, src, width, }: TablePersonCellProps) => react.JSX.Element;
|
|
993
|
+
declare const TablePersonCell: ({ firstName, lastName, src, avatarBadge, secondary, onNameClick, isExpanded, width, }: TablePersonCellProps) => react.JSX.Element;
|
|
966
994
|
|
|
967
|
-
interface TableClientCellProps {
|
|
995
|
+
interface TableClientCellProps extends Pick<TableCellProps, 'width' | 'sticky' | 'stickyOffset' | 'isExpanded' | 'accentColor'> {
|
|
968
996
|
name: string;
|
|
969
997
|
color: HexColor;
|
|
970
|
-
|
|
998
|
+
onNameClick?: () => void;
|
|
971
999
|
}
|
|
972
|
-
declare const TableClientCell: ({ name, color,
|
|
1000
|
+
declare const TableClientCell: ({ name, color, onNameClick, ...cell }: TableClientCellProps) => react.JSX.Element;
|
|
973
1001
|
|
|
974
1002
|
interface TableStatusCellProps {
|
|
975
1003
|
children: ReactNode;
|
|
@@ -986,6 +1014,8 @@ interface TableAction {
|
|
|
986
1014
|
disabled?: boolean;
|
|
987
1015
|
/** Dit pourquoi l'action est indisponible, en infobulle. */
|
|
988
1016
|
disabledReason?: string;
|
|
1017
|
+
hasUnread?: boolean;
|
|
1018
|
+
inMenu?: boolean;
|
|
989
1019
|
}
|
|
990
1020
|
interface TableActionsCellProps {
|
|
991
1021
|
actions: TableAction[];
|
|
@@ -999,9 +1029,11 @@ interface TableSelectCellProps {
|
|
|
999
1029
|
isRange: boolean;
|
|
1000
1030
|
}) => void;
|
|
1001
1031
|
label: string;
|
|
1032
|
+
disabled?: boolean;
|
|
1033
|
+
disabledReason?: string;
|
|
1002
1034
|
width?: string;
|
|
1003
1035
|
}
|
|
1004
|
-
declare const TableSelectCell: ({ isSelected, onToggle, label, width, }: TableSelectCellProps) => react.JSX.Element;
|
|
1036
|
+
declare const TableSelectCell: ({ isSelected, onToggle, label, disabled, disabledReason, width, }: TableSelectCellProps) => react.JSX.Element;
|
|
1005
1037
|
|
|
1006
1038
|
interface TableSelectHeaderCellProps {
|
|
1007
1039
|
state: HeaderCheckState;
|