design-zystem 1.0.259 → 1.0.261
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 +18 -1
- package/dist/index.d.ts +18 -1
- package/dist/index.js +710 -511
- package/dist/index.mjs +673 -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;
|
|
@@ -235,6 +250,7 @@ interface BubbleProps {
|
|
|
235
250
|
borderRadius?: string;
|
|
236
251
|
width?: string;
|
|
237
252
|
style?: CSSProperties;
|
|
253
|
+
onClick?: () => void;
|
|
238
254
|
}
|
|
239
255
|
declare const Bubble: ({ children, ...otherProps }: BubbleProps) => react_jsx_runtime.JSX.Element;
|
|
240
256
|
|
|
@@ -295,6 +311,7 @@ interface LinkProps {
|
|
|
295
311
|
underline?: boolean;
|
|
296
312
|
style?: CSSProperties;
|
|
297
313
|
className?: string;
|
|
314
|
+
onClick?: () => void;
|
|
298
315
|
}
|
|
299
316
|
declare const Link: ({ children, url, newTab, download, size, variant, ...rest }: LinkProps) => react_jsx_runtime.JSX.Element;
|
|
300
317
|
|
|
@@ -1145,4 +1162,4 @@ declare const formatKM: (value: string | number | null | undefined) => string;
|
|
|
1145
1162
|
|
|
1146
1163
|
declare const parseAmount: (value: string) => number | null;
|
|
1147
1164
|
|
|
1148
|
-
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 };
|
|
1165
|
+
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, 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;
|
|
@@ -235,6 +250,7 @@ interface BubbleProps {
|
|
|
235
250
|
borderRadius?: string;
|
|
236
251
|
width?: string;
|
|
237
252
|
style?: CSSProperties;
|
|
253
|
+
onClick?: () => void;
|
|
238
254
|
}
|
|
239
255
|
declare const Bubble: ({ children, ...otherProps }: BubbleProps) => react_jsx_runtime.JSX.Element;
|
|
240
256
|
|
|
@@ -295,6 +311,7 @@ interface LinkProps {
|
|
|
295
311
|
underline?: boolean;
|
|
296
312
|
style?: CSSProperties;
|
|
297
313
|
className?: string;
|
|
314
|
+
onClick?: () => void;
|
|
298
315
|
}
|
|
299
316
|
declare const Link: ({ children, url, newTab, download, size, variant, ...rest }: LinkProps) => react_jsx_runtime.JSX.Element;
|
|
300
317
|
|
|
@@ -1145,4 +1162,4 @@ declare const formatKM: (value: string | number | null | undefined) => string;
|
|
|
1145
1162
|
|
|
1146
1163
|
declare const parseAmount: (value: string) => number | null;
|
|
1147
1164
|
|
|
1148
|
-
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 };
|
|
1165
|
+
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, 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 };
|