design-zystem 1.0.260 → 1.0.262
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/index.d.mts +27 -1
- package/dist/index.d.ts +27 -1
- package/dist/index.js +747 -511
- package/dist/index.mjs +709 -476
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -199,6 +199,21 @@ interface DrawerProps {
|
|
|
199
199
|
}
|
|
200
200
|
declare const Drawer: ({ showDrawer, closeDrawer, title, width, children, leftButtonLabel, leftButtonAction, leftButtonDisabled, rightButtonLabel, rightButtonAction, rightButtonDisabled, isLoading, leftVariant, variant, leftOutline, rightOutline, footer, }: DrawerProps) => react_jsx_runtime.JSX.Element | null;
|
|
201
201
|
|
|
202
|
+
declare const Toaster: () => react.ReactPortal | null;
|
|
203
|
+
|
|
204
|
+
type ToastType = 'success' | 'error' | 'warning' | 'info';
|
|
205
|
+
interface ToastOptions {
|
|
206
|
+
timeOut?: number;
|
|
207
|
+
title?: string;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
declare const toast: {
|
|
211
|
+
success: (message: string, options?: ToastOptions) => void;
|
|
212
|
+
error: (message: string, options?: ToastOptions) => void;
|
|
213
|
+
warning: (message: string, options?: ToastOptions) => void;
|
|
214
|
+
info: (message: string, options?: ToastOptions) => void;
|
|
215
|
+
};
|
|
216
|
+
|
|
202
217
|
type SizeKey = 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl';
|
|
203
218
|
interface TagBubbleProps extends HTMLAttributes<HTMLDivElement> {
|
|
204
219
|
label: string;
|
|
@@ -878,6 +893,17 @@ interface MetricCardProps {
|
|
|
878
893
|
}
|
|
879
894
|
declare const MetricCard: ({ icon, title, value, valueColor, subtitle, iconBackgroundColor, iconColor, contentLayout, onClick, checked, }: MetricCardProps) => react_jsx_runtime.JSX.Element;
|
|
880
895
|
|
|
896
|
+
interface CardProps {
|
|
897
|
+
children?: ReactNode;
|
|
898
|
+
onClick?: (e: MouseEvent<HTMLDivElement>) => void;
|
|
899
|
+
/** Left accent color — e.g. colors.red for 'critique', colors.secondary for 'alerte'. */
|
|
900
|
+
accentColor?: string;
|
|
901
|
+
backgroundColor?: string;
|
|
902
|
+
padding?: string;
|
|
903
|
+
borderRadius?: string;
|
|
904
|
+
}
|
|
905
|
+
declare const Card: ({ children, onClick, accentColor, backgroundColor, padding, borderRadius, }: CardProps) => react_jsx_runtime.JSX.Element;
|
|
906
|
+
|
|
881
907
|
interface TooltipProps {
|
|
882
908
|
children?: ReactNode;
|
|
883
909
|
backgroundColor?: string;
|
|
@@ -1147,4 +1173,4 @@ declare const formatKM: (value: string | number | null | undefined) => string;
|
|
|
1147
1173
|
|
|
1148
1174
|
declare const parseAmount: (value: string) => number | null;
|
|
1149
1175
|
|
|
1150
|
-
export { Accordion, type AccordionItem, Avatar, Box, Bubble, Bulk, Button, CardSkeleton, Checkbox, Col, Collapse, ColorPicker, DatePicker, type DatePickerProps, type DatePreset, Divider, Drawer, EmptyState, FileUploadZone, type FloatingAction, FloatingButton, type FloatingButtonProps, Grid, Icon, IconTabs, Image, Input, Link, List, ListItem, MetricCard, Modal, ModalConfirmation, MultiSelect, NewModal, Options, PageContainer, Pagination, Popover, ProgressBar, Radio, Row, Select, type SelectOption, type SelectProps, SkeletonRow, SliderInput, type SortOrder, Spinner, Stepper, Switch, Table, TableBody, TableCell, TableFooter, TableFooterCell, TableFooterRow, TableHeader, TableHeaderCell, type TableHeaderCellProps, TableHeaderRow, TableRow, Tabs, TagBubble, Text, Timeline, type TimelineItem, Tooltip, addBusinessDays, appendCacheBuster, appendQueryParam, capitalizeFirstLetter, colors, easterDate, formatAddress, formatCityFromFormattedAddress, formatCityWithPostalCode, formatDate, formatDateWithTime, formatDistance, formatDuration, formatEuro, formatKM, formatLocality, formatName, formatNameWithInitial, formatPhoneNumber, formatPlate, formatPlateWithoutDashes, formatPostalCodeFromFormattedAddress, formatRegionCode, formatTime, formatVin, generateHexColor, getAvatarColor, getCleanFileName, getFileIconByMimeType, getFileKind, getFileNameFromUrl, getInitials, getMimeCategory, getRelativeTime, isHoliday, isSameDay, isolateCity, optimizeImage, parseAmount, parseIsoDate, truncateFileName, truncateText };
|
|
1176
|
+
export { Accordion, type AccordionItem, Avatar, Box, Bubble, Bulk, Button, Card, type CardProps, CardSkeleton, Checkbox, Col, Collapse, ColorPicker, DatePicker, type DatePickerProps, type DatePreset, Divider, Drawer, EmptyState, FileUploadZone, type FloatingAction, FloatingButton, type FloatingButtonProps, Grid, Icon, IconTabs, Image, Input, Link, List, ListItem, MetricCard, Modal, ModalConfirmation, MultiSelect, NewModal, Options, PageContainer, Pagination, Popover, ProgressBar, Radio, Row, Select, type SelectOption, type SelectProps, SkeletonRow, SliderInput, type SortOrder, Spinner, Stepper, Switch, Table, TableBody, TableCell, TableFooter, TableFooterCell, TableFooterRow, TableHeader, TableHeaderCell, type TableHeaderCellProps, TableHeaderRow, TableRow, Tabs, TagBubble, Text, Timeline, type TimelineItem, type ToastOptions, type ToastType, Toaster, Tooltip, addBusinessDays, appendCacheBuster, appendQueryParam, capitalizeFirstLetter, colors, easterDate, formatAddress, formatCityFromFormattedAddress, formatCityWithPostalCode, formatDate, formatDateWithTime, formatDistance, formatDuration, formatEuro, formatKM, formatLocality, formatName, formatNameWithInitial, formatPhoneNumber, formatPlate, formatPlateWithoutDashes, formatPostalCodeFromFormattedAddress, formatRegionCode, formatTime, formatVin, generateHexColor, getAvatarColor, getCleanFileName, getFileIconByMimeType, getFileKind, getFileNameFromUrl, getInitials, getMimeCategory, getRelativeTime, isHoliday, isSameDay, isolateCity, optimizeImage, parseAmount, parseIsoDate, toast, truncateFileName, truncateText };
|
package/dist/index.d.ts
CHANGED
|
@@ -199,6 +199,21 @@ interface DrawerProps {
|
|
|
199
199
|
}
|
|
200
200
|
declare const Drawer: ({ showDrawer, closeDrawer, title, width, children, leftButtonLabel, leftButtonAction, leftButtonDisabled, rightButtonLabel, rightButtonAction, rightButtonDisabled, isLoading, leftVariant, variant, leftOutline, rightOutline, footer, }: DrawerProps) => react_jsx_runtime.JSX.Element | null;
|
|
201
201
|
|
|
202
|
+
declare const Toaster: () => react.ReactPortal | null;
|
|
203
|
+
|
|
204
|
+
type ToastType = 'success' | 'error' | 'warning' | 'info';
|
|
205
|
+
interface ToastOptions {
|
|
206
|
+
timeOut?: number;
|
|
207
|
+
title?: string;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
declare const toast: {
|
|
211
|
+
success: (message: string, options?: ToastOptions) => void;
|
|
212
|
+
error: (message: string, options?: ToastOptions) => void;
|
|
213
|
+
warning: (message: string, options?: ToastOptions) => void;
|
|
214
|
+
info: (message: string, options?: ToastOptions) => void;
|
|
215
|
+
};
|
|
216
|
+
|
|
202
217
|
type SizeKey = 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl';
|
|
203
218
|
interface TagBubbleProps extends HTMLAttributes<HTMLDivElement> {
|
|
204
219
|
label: string;
|
|
@@ -878,6 +893,17 @@ interface MetricCardProps {
|
|
|
878
893
|
}
|
|
879
894
|
declare const MetricCard: ({ icon, title, value, valueColor, subtitle, iconBackgroundColor, iconColor, contentLayout, onClick, checked, }: MetricCardProps) => react_jsx_runtime.JSX.Element;
|
|
880
895
|
|
|
896
|
+
interface CardProps {
|
|
897
|
+
children?: ReactNode;
|
|
898
|
+
onClick?: (e: MouseEvent<HTMLDivElement>) => void;
|
|
899
|
+
/** Left accent color — e.g. colors.red for 'critique', colors.secondary for 'alerte'. */
|
|
900
|
+
accentColor?: string;
|
|
901
|
+
backgroundColor?: string;
|
|
902
|
+
padding?: string;
|
|
903
|
+
borderRadius?: string;
|
|
904
|
+
}
|
|
905
|
+
declare const Card: ({ children, onClick, accentColor, backgroundColor, padding, borderRadius, }: CardProps) => react_jsx_runtime.JSX.Element;
|
|
906
|
+
|
|
881
907
|
interface TooltipProps {
|
|
882
908
|
children?: ReactNode;
|
|
883
909
|
backgroundColor?: string;
|
|
@@ -1147,4 +1173,4 @@ declare const formatKM: (value: string | number | null | undefined) => string;
|
|
|
1147
1173
|
|
|
1148
1174
|
declare const parseAmount: (value: string) => number | null;
|
|
1149
1175
|
|
|
1150
|
-
export { Accordion, type AccordionItem, Avatar, Box, Bubble, Bulk, Button, CardSkeleton, Checkbox, Col, Collapse, ColorPicker, DatePicker, type DatePickerProps, type DatePreset, Divider, Drawer, EmptyState, FileUploadZone, type FloatingAction, FloatingButton, type FloatingButtonProps, Grid, Icon, IconTabs, Image, Input, Link, List, ListItem, MetricCard, Modal, ModalConfirmation, MultiSelect, NewModal, Options, PageContainer, Pagination, Popover, ProgressBar, Radio, Row, Select, type SelectOption, type SelectProps, SkeletonRow, SliderInput, type SortOrder, Spinner, Stepper, Switch, Table, TableBody, TableCell, TableFooter, TableFooterCell, TableFooterRow, TableHeader, TableHeaderCell, type TableHeaderCellProps, TableHeaderRow, TableRow, Tabs, TagBubble, Text, Timeline, type TimelineItem, Tooltip, addBusinessDays, appendCacheBuster, appendQueryParam, capitalizeFirstLetter, colors, easterDate, formatAddress, formatCityFromFormattedAddress, formatCityWithPostalCode, formatDate, formatDateWithTime, formatDistance, formatDuration, formatEuro, formatKM, formatLocality, formatName, formatNameWithInitial, formatPhoneNumber, formatPlate, formatPlateWithoutDashes, formatPostalCodeFromFormattedAddress, formatRegionCode, formatTime, formatVin, generateHexColor, getAvatarColor, getCleanFileName, getFileIconByMimeType, getFileKind, getFileNameFromUrl, getInitials, getMimeCategory, getRelativeTime, isHoliday, isSameDay, isolateCity, optimizeImage, parseAmount, parseIsoDate, truncateFileName, truncateText };
|
|
1176
|
+
export { Accordion, type AccordionItem, Avatar, Box, Bubble, Bulk, Button, Card, type CardProps, CardSkeleton, Checkbox, Col, Collapse, ColorPicker, DatePicker, type DatePickerProps, type DatePreset, Divider, Drawer, EmptyState, FileUploadZone, type FloatingAction, FloatingButton, type FloatingButtonProps, Grid, Icon, IconTabs, Image, Input, Link, List, ListItem, MetricCard, Modal, ModalConfirmation, MultiSelect, NewModal, Options, PageContainer, Pagination, Popover, ProgressBar, Radio, Row, Select, type SelectOption, type SelectProps, SkeletonRow, SliderInput, type SortOrder, Spinner, Stepper, Switch, Table, TableBody, TableCell, TableFooter, TableFooterCell, TableFooterRow, TableHeader, TableHeaderCell, type TableHeaderCellProps, TableHeaderRow, TableRow, Tabs, TagBubble, Text, Timeline, type TimelineItem, type ToastOptions, type ToastType, Toaster, Tooltip, addBusinessDays, appendCacheBuster, appendQueryParam, capitalizeFirstLetter, colors, easterDate, formatAddress, formatCityFromFormattedAddress, formatCityWithPostalCode, formatDate, formatDateWithTime, formatDistance, formatDuration, formatEuro, formatKM, formatLocality, formatName, formatNameWithInitial, formatPhoneNumber, formatPlate, formatPlateWithoutDashes, formatPostalCodeFromFormattedAddress, formatRegionCode, formatTime, formatVin, generateHexColor, getAvatarColor, getCleanFileName, getFileIconByMimeType, getFileKind, getFileNameFromUrl, getInitials, getMimeCategory, getRelativeTime, isHoliday, isSameDay, isolateCity, optimizeImage, parseAmount, parseIsoDate, toast, truncateFileName, truncateText };
|