@drivenets/design-system 0.7.2 → 0.7.3
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/CHANGELOG.md +6 -0
- package/dist/index.cjs +177 -171
- package/dist/index.d.cts +93 -93
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +93 -93
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +177 -171
- package/dist/index.js.map +1 -1
- package/dist/index.min.css +1 -1
- package/package.json +14 -14
- package/src/components/ds-table/components/ds-table-body-virtualized/ds-table-body-virtualized.tsx +10 -5
- package/src/components/ds-table/components/ds-table-body-virtualized/ds-table-body-virtualized.types.ts +5 -3
- package/src/components/ds-table/components/ds-table-row/ds-table-row.tsx +5 -3
- package/src/components/ds-table/components/ds-table-row/ds-table-row.types.ts +4 -0
- package/src/components/ds-table/components/ds-table-row-selectable-cell/ds-table-row-selectable-cell.tsx +2 -1
- package/src/components/ds-table/components/ds-table-row-selectable-cell/ds-table-row-selectable-cell.types.ts +1 -0
- package/src/components/ds-table/components/ds-table-row-virtualized/ds-table-row-virtualized.tsx +5 -2
- package/src/components/ds-table/components/ds-table-row-virtualized/ds-table-row-virtualized.types.ts +4 -2
- package/src/components/ds-table/ds-table.tsx +4 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
2
|
import * as react from "react";
|
|
3
|
-
import React
|
|
3
|
+
import React, { CSSProperties, ComponentPropsWithoutRef, ComponentType, FC, FunctionComponent, HTMLAttributes, KeyboardEvent, MouseEvent, PropsWithChildren, ReactNode, Ref, SVGProps } from "react";
|
|
4
4
|
import { Menu } from "@ark-ui/react/menu";
|
|
5
5
|
import { Root } from "@radix-ui/react-checkbox";
|
|
6
6
|
import { UseDialogProps } from "@ark-ui/react/dialog";
|
|
@@ -6354,7 +6354,7 @@ interface DsAlertBannerProps {
|
|
|
6354
6354
|
/**
|
|
6355
6355
|
* Additional styles to apply to the component
|
|
6356
6356
|
*/
|
|
6357
|
-
style?: React
|
|
6357
|
+
style?: React.CSSProperties;
|
|
6358
6358
|
/**
|
|
6359
6359
|
* Optional children to be rendered inside the component (typically action buttons)
|
|
6360
6360
|
*/
|
|
@@ -6440,7 +6440,7 @@ interface DsAutocompleteProps {
|
|
|
6440
6440
|
/**
|
|
6441
6441
|
* Additional styles to apply to the component
|
|
6442
6442
|
*/
|
|
6443
|
-
style?: React
|
|
6443
|
+
style?: React.CSSProperties;
|
|
6444
6444
|
/**
|
|
6445
6445
|
* Additional CSS class names
|
|
6446
6446
|
*/
|
|
@@ -6486,7 +6486,7 @@ interface DsAutocompleteProps {
|
|
|
6486
6486
|
/**
|
|
6487
6487
|
* Content to display at the start of the input (e.g., a search icon).
|
|
6488
6488
|
*/
|
|
6489
|
-
startAdornment?: React
|
|
6489
|
+
startAdornment?: React.ReactNode;
|
|
6490
6490
|
/**
|
|
6491
6491
|
* Event handler called when the value changes (when an option is selected)
|
|
6492
6492
|
*/
|
|
@@ -6638,7 +6638,7 @@ interface DsBreadcrumbProps {
|
|
|
6638
6638
|
/**
|
|
6639
6639
|
* Design system Breadcrumb component
|
|
6640
6640
|
*/
|
|
6641
|
-
declare const DsBreadcrumb: React
|
|
6641
|
+
declare const DsBreadcrumb: React.FC<DsBreadcrumbProps>;
|
|
6642
6642
|
//#endregion
|
|
6643
6643
|
//#region src/components/ds-button/versions/ds-button-legacy/ds-button-legacy.types.d.ts
|
|
6644
6644
|
declare const buttonSchemas: readonly ["primary", "secondary", "error"];
|
|
@@ -6647,7 +6647,7 @@ declare const buttonVariants$1: readonly ["filled", "ghost", "borderless", "roun
|
|
|
6647
6647
|
type ButtonVariant$1 = (typeof buttonVariants$1)[number];
|
|
6648
6648
|
declare const buttonSizes$1: readonly ["large", "medium", "small"];
|
|
6649
6649
|
type ButtonSize$1 = (typeof buttonSizes$1)[number];
|
|
6650
|
-
interface DsButtonProps$1 extends React
|
|
6650
|
+
interface DsButtonProps$1 extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
6651
6651
|
/**
|
|
6652
6652
|
* Color schema of the button
|
|
6653
6653
|
* @default 'primary'
|
|
@@ -6681,7 +6681,7 @@ declare const buttonVariants: readonly ["filled", "ghost", "danger", "dark"];
|
|
|
6681
6681
|
type ButtonVariant = (typeof buttonVariants)[number];
|
|
6682
6682
|
declare const buttonSizes: readonly ["large", "medium", "small", "tiny"];
|
|
6683
6683
|
type ButtonSize = (typeof buttonSizes)[number];
|
|
6684
|
-
interface DsButtonProps extends React
|
|
6684
|
+
interface DsButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
6685
6685
|
/**
|
|
6686
6686
|
* Type of the button
|
|
6687
6687
|
* @default 'primary'
|
|
@@ -6851,7 +6851,7 @@ interface DsCheckboxProps extends ComponentPropsWithoutRef<typeof Root> {
|
|
|
6851
6851
|
/**
|
|
6852
6852
|
* Design system Checkbox component
|
|
6853
6853
|
*/
|
|
6854
|
-
declare const DsCheckbox: React
|
|
6854
|
+
declare const DsCheckbox: React.FC<DsCheckboxProps>;
|
|
6855
6855
|
//#endregion
|
|
6856
6856
|
//#region src/components/ds-chip/ds-chip.types.d.ts
|
|
6857
6857
|
/**
|
|
@@ -6914,7 +6914,7 @@ interface DsChipProps {
|
|
|
6914
6914
|
* @deprecated This component is deprecated. Use `DsTag` instead.
|
|
6915
6915
|
* @see {@link ../ds-tag} for the replacement component.
|
|
6916
6916
|
*/
|
|
6917
|
-
declare const DsChip: React
|
|
6917
|
+
declare const DsChip: React.FC<DsChipProps>;
|
|
6918
6918
|
//#endregion
|
|
6919
6919
|
//#region src/components/ds-chip-group/ds-chip-group.types.d.ts
|
|
6920
6920
|
/**
|
|
@@ -6980,7 +6980,7 @@ interface DsChipGroupProps {
|
|
|
6980
6980
|
* @deprecated This component is deprecated. Use `DsTagFilter` instead.
|
|
6981
6981
|
* @see {@link ../ds-tag-filter} for the replacement component.
|
|
6982
6982
|
*/
|
|
6983
|
-
declare const DsChipGroup: React
|
|
6983
|
+
declare const DsChipGroup: React.FC<DsChipGroupProps>;
|
|
6984
6984
|
//#endregion
|
|
6985
6985
|
//#region src/components/ds-comment-card/ds-comment-card.types.d.ts
|
|
6986
6986
|
interface CommentAuthor {
|
|
@@ -7466,7 +7466,7 @@ interface DsDialogProps {
|
|
|
7466
7466
|
/**
|
|
7467
7467
|
* The content to render inside the dialog.
|
|
7468
7468
|
*/
|
|
7469
|
-
children: React
|
|
7469
|
+
children: React.ReactNode;
|
|
7470
7470
|
/**
|
|
7471
7471
|
* Additional CSS class names for the dialog container.
|
|
7472
7472
|
*/
|
|
@@ -7474,7 +7474,7 @@ interface DsDialogProps {
|
|
|
7474
7474
|
/**
|
|
7475
7475
|
* Ref to the element the dialog should be anchored to (for relative placement)
|
|
7476
7476
|
*/
|
|
7477
|
-
anchorRef?: React
|
|
7477
|
+
anchorRef?: React.RefObject<HTMLElement>;
|
|
7478
7478
|
/**
|
|
7479
7479
|
* Custom fixed position (e.g., { top: number, left: number })
|
|
7480
7480
|
*/
|
|
@@ -7489,7 +7489,7 @@ interface DsDialogProps {
|
|
|
7489
7489
|
}
|
|
7490
7490
|
//#endregion
|
|
7491
7491
|
//#region src/components/ds-dialog/ds-dialog.d.ts
|
|
7492
|
-
declare const DsDialog: React
|
|
7492
|
+
declare const DsDialog: React.FC<DsDialogProps>;
|
|
7493
7493
|
//#endregion
|
|
7494
7494
|
//#region src/components/ds-divider/ds-divider.types.d.ts
|
|
7495
7495
|
interface DsDividerProps {
|
|
@@ -7501,11 +7501,11 @@ interface DsDividerProps {
|
|
|
7501
7501
|
* Underlying element/component to render.
|
|
7502
7502
|
* Examples: "hr", "div", "span", Link, etc.
|
|
7503
7503
|
*/
|
|
7504
|
-
component?: React
|
|
7504
|
+
component?: React.ElementType;
|
|
7505
7505
|
/**
|
|
7506
7506
|
* Additional CSS styles.
|
|
7507
7507
|
*/
|
|
7508
|
-
style?: React
|
|
7508
|
+
style?: React.CSSProperties;
|
|
7509
7509
|
/**
|
|
7510
7510
|
* Additional CSS classes.
|
|
7511
7511
|
*/
|
|
@@ -7513,7 +7513,7 @@ interface DsDividerProps {
|
|
|
7513
7513
|
}
|
|
7514
7514
|
//#endregion
|
|
7515
7515
|
//#region src/components/ds-divider/ds-divider.d.ts
|
|
7516
|
-
declare const DsDivider: React
|
|
7516
|
+
declare const DsDivider: React.FC<DsDividerProps>;
|
|
7517
7517
|
//#endregion
|
|
7518
7518
|
//#region src/components/ds-drawer/ds-drawer.types.d.ts
|
|
7519
7519
|
/**
|
|
@@ -7900,7 +7900,7 @@ type DsDropdownMenuTriggerItemProps = Menu.TriggerItemProps;
|
|
|
7900
7900
|
* Use compound component pattern instead
|
|
7901
7901
|
* @deprecated
|
|
7902
7902
|
*/
|
|
7903
|
-
declare const DsDropdownMenuLegacy: React
|
|
7903
|
+
declare const DsDropdownMenuLegacy: React.FC<DsDropdownMenuLegacyProps>;
|
|
7904
7904
|
/**
|
|
7905
7905
|
* Design system DsDropdownMenu component
|
|
7906
7906
|
*
|
|
@@ -7932,18 +7932,18 @@ declare const DsDropdownMenuLegacy: React$1.FC<DsDropdownMenuLegacyProps>;
|
|
|
7932
7932
|
* </DsDropdownMenu.Root>
|
|
7933
7933
|
*/
|
|
7934
7934
|
declare const DsDropdownMenu: {
|
|
7935
|
-
Root: React
|
|
7936
|
-
Trigger: React
|
|
7937
|
-
Content: React
|
|
7938
|
-
Item: React
|
|
7939
|
-
ItemIndicator: React
|
|
7940
|
-
TriggerItem: React
|
|
7941
|
-
Header: React
|
|
7942
|
-
Actions: React
|
|
7943
|
-
ItemGroup: React
|
|
7944
|
-
ItemGroupLabel: React
|
|
7945
|
-
ItemGroupContent: React
|
|
7946
|
-
Separator: React
|
|
7935
|
+
Root: React.FC<DsDropdownMenuRootProps>;
|
|
7936
|
+
Trigger: React.FC<Menu.TriggerProps>;
|
|
7937
|
+
Content: React.FC<DsDropdownMenuContentProps>;
|
|
7938
|
+
Item: React.FC<DsDropdownMenuItemProps>;
|
|
7939
|
+
ItemIndicator: React.FC<DsDropdownMenuItemIndicatorProps>;
|
|
7940
|
+
TriggerItem: React.FC<Menu.TriggerItemProps>;
|
|
7941
|
+
Header: React.FC<DsDropdownMenuHeaderProps>;
|
|
7942
|
+
Actions: React.FC<DsDropdownMenuActionsProps>;
|
|
7943
|
+
ItemGroup: React.FC<DsDropdownMenuItemGroupProps>;
|
|
7944
|
+
ItemGroupLabel: React.FC<Menu.ItemGroupLabelProps>;
|
|
7945
|
+
ItemGroupContent: React.FC<DsDropdownMenuItemGroupContentProps>;
|
|
7946
|
+
Separator: React.FC<Menu.SeparatorProps>;
|
|
7947
7947
|
};
|
|
7948
7948
|
//#endregion
|
|
7949
7949
|
//#region src/components/ds-text-input/ds-text-input.types.d.ts
|
|
@@ -7957,7 +7957,7 @@ interface DsTextInputProps {
|
|
|
7957
7957
|
/**
|
|
7958
7958
|
* The ref to the input field
|
|
7959
7959
|
*/
|
|
7960
|
-
ref?: React
|
|
7960
|
+
ref?: React.Ref<HTMLInputElement>;
|
|
7961
7961
|
/**
|
|
7962
7962
|
* The name of the input field
|
|
7963
7963
|
*/
|
|
@@ -7975,21 +7975,21 @@ interface DsTextInputProps {
|
|
|
7975
7975
|
/**
|
|
7976
7976
|
* Event handler called when the input field receives focus
|
|
7977
7977
|
*/
|
|
7978
|
-
onFocus?: (event: React
|
|
7978
|
+
onFocus?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
7979
7979
|
/**
|
|
7980
7980
|
* Event handler called when the input field loses focus
|
|
7981
7981
|
*
|
|
7982
7982
|
* @param event
|
|
7983
7983
|
*/
|
|
7984
|
-
onBlur?: (event: React
|
|
7984
|
+
onBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
7985
7985
|
/**
|
|
7986
7986
|
* Callback when a key is pressed down
|
|
7987
7987
|
*/
|
|
7988
|
-
onKeyDown?: (event: React
|
|
7988
|
+
onKeyDown?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
7989
7989
|
/**
|
|
7990
7990
|
* Callback when the value changes
|
|
7991
7991
|
*/
|
|
7992
|
-
onChange?: (event: React
|
|
7992
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
7993
7993
|
/**
|
|
7994
7994
|
* Value change event handler (provides just the value)
|
|
7995
7995
|
*/
|
|
@@ -8001,7 +8001,7 @@ interface DsTextInputProps {
|
|
|
8001
8001
|
/**
|
|
8002
8002
|
* Additional styles to apply to the component
|
|
8003
8003
|
*/
|
|
8004
|
-
style?: React
|
|
8004
|
+
style?: React.CSSProperties;
|
|
8005
8005
|
/**
|
|
8006
8006
|
* The placeholder text
|
|
8007
8007
|
*/
|
|
@@ -8048,16 +8048,16 @@ interface DsTextInputProps {
|
|
|
8048
8048
|
* Custom component to wrap the input element
|
|
8049
8049
|
*/
|
|
8050
8050
|
inputWrapper?: ComponentType<{
|
|
8051
|
-
children: React
|
|
8051
|
+
children: React.ReactNode;
|
|
8052
8052
|
}>;
|
|
8053
8053
|
/**
|
|
8054
8054
|
* Adornment to display at the start of the input
|
|
8055
8055
|
*/
|
|
8056
|
-
startAdornment?: React
|
|
8056
|
+
startAdornment?: React.ReactNode;
|
|
8057
8057
|
/**
|
|
8058
8058
|
* Adornment to display at the end of the input
|
|
8059
8059
|
*/
|
|
8060
|
-
endAdornment?: React
|
|
8060
|
+
endAdornment?: React.ReactNode;
|
|
8061
8061
|
};
|
|
8062
8062
|
}
|
|
8063
8063
|
//#endregion
|
|
@@ -8240,7 +8240,7 @@ interface FileUploadProps {
|
|
|
8240
8240
|
* Design system base File Upload component
|
|
8241
8241
|
* Used in conjunction with the useFileUpload hook
|
|
8242
8242
|
*/
|
|
8243
|
-
declare const FileUpload: React
|
|
8243
|
+
declare const FileUpload: React.FC<FileUploadProps>;
|
|
8244
8244
|
//#endregion
|
|
8245
8245
|
//#region src/components/ds-file-upload/ds-file-upload.types.d.ts
|
|
8246
8246
|
interface DsFileUploadProps extends Omit<FileUploadProps, 'files' | 'acceptedFiles' | 'onFileAccept' | 'onFileReject' | 'onFileRemove' | 'onFileDelete' | 'onFileCancel' | 'onFileRetry' | 'uploadProgress'> {
|
|
@@ -8277,7 +8277,7 @@ interface DsFileUploadProps extends Omit<FileUploadProps, 'files' | 'acceptedFil
|
|
|
8277
8277
|
/**
|
|
8278
8278
|
* Design system File Upload component (with state management)
|
|
8279
8279
|
*/
|
|
8280
|
-
declare const DsFileUpload: React
|
|
8280
|
+
declare const DsFileUpload: React.FC<DsFileUploadProps>;
|
|
8281
8281
|
//#endregion
|
|
8282
8282
|
//#region src/components/ds-file-upload/hooks/use-file-upload.d.ts
|
|
8283
8283
|
interface UseFileUploadConfig {
|
|
@@ -8406,7 +8406,7 @@ interface DsNumberInputProps {
|
|
|
8406
8406
|
/**
|
|
8407
8407
|
* The ref to the input field
|
|
8408
8408
|
*/
|
|
8409
|
-
ref?: React
|
|
8409
|
+
ref?: React.Ref<HTMLInputElement>;
|
|
8410
8410
|
/**
|
|
8411
8411
|
* The name of the input field
|
|
8412
8412
|
*/
|
|
@@ -8421,12 +8421,12 @@ interface DsNumberInputProps {
|
|
|
8421
8421
|
*
|
|
8422
8422
|
* @param event
|
|
8423
8423
|
*/
|
|
8424
|
-
onBlur?: (event: React
|
|
8424
|
+
onBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
8425
8425
|
/**
|
|
8426
8426
|
* Callback when the value changes (native input onChange event)
|
|
8427
8427
|
* This is provided for compatibility but onValueChange is preferred
|
|
8428
8428
|
*/
|
|
8429
|
-
onChange?: (event: React
|
|
8429
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
8430
8430
|
/**
|
|
8431
8431
|
* Value change event handler (provides just the number value)
|
|
8432
8432
|
* This is the preferred way to handle value changes
|
|
@@ -8439,7 +8439,7 @@ interface DsNumberInputProps {
|
|
|
8439
8439
|
/**
|
|
8440
8440
|
* Additional styles to apply to the component
|
|
8441
8441
|
*/
|
|
8442
|
-
style?: React
|
|
8442
|
+
style?: React.CSSProperties;
|
|
8443
8443
|
/**
|
|
8444
8444
|
* The placeholder text
|
|
8445
8445
|
*/
|
|
@@ -8485,7 +8485,7 @@ interface DsPasswordInputProps {
|
|
|
8485
8485
|
/**
|
|
8486
8486
|
* The ref to the input field
|
|
8487
8487
|
*/
|
|
8488
|
-
ref?: React
|
|
8488
|
+
ref?: React.Ref<HTMLInputElement>;
|
|
8489
8489
|
/**
|
|
8490
8490
|
* The name of the input field
|
|
8491
8491
|
*/
|
|
@@ -8500,12 +8500,12 @@ interface DsPasswordInputProps {
|
|
|
8500
8500
|
*
|
|
8501
8501
|
* @param event
|
|
8502
8502
|
*/
|
|
8503
|
-
onBlur?: (event: React
|
|
8503
|
+
onBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
8504
8504
|
/**
|
|
8505
8505
|
* Callback when the value changes (native input onChange event)
|
|
8506
8506
|
* This is provided for compatibility but onValueChange is preferred
|
|
8507
8507
|
*/
|
|
8508
|
-
onChange?: (event: React
|
|
8508
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
8509
8509
|
/**
|
|
8510
8510
|
* Value change event handler (provides just the string value)
|
|
8511
8511
|
* This is the preferred way to handle value changes
|
|
@@ -8518,7 +8518,7 @@ interface DsPasswordInputProps {
|
|
|
8518
8518
|
/**
|
|
8519
8519
|
* Additional styles to apply to the component
|
|
8520
8520
|
*/
|
|
8521
|
-
style?: React
|
|
8521
|
+
style?: React.CSSProperties;
|
|
8522
8522
|
/**
|
|
8523
8523
|
* The placeholder text
|
|
8524
8524
|
*/
|
|
@@ -8550,7 +8550,7 @@ interface DsTextareaProps {
|
|
|
8550
8550
|
/**
|
|
8551
8551
|
* The ref to the textarea element
|
|
8552
8552
|
*/
|
|
8553
|
-
ref?: React
|
|
8553
|
+
ref?: React.Ref<HTMLTextAreaElement>;
|
|
8554
8554
|
/**
|
|
8555
8555
|
* The name of the textarea
|
|
8556
8556
|
*/
|
|
@@ -8560,11 +8560,11 @@ interface DsTextareaProps {
|
|
|
8560
8560
|
*
|
|
8561
8561
|
* @param event
|
|
8562
8562
|
*/
|
|
8563
|
-
onBlur?: (event: React
|
|
8563
|
+
onBlur?: (event: React.FocusEvent<HTMLTextAreaElement>) => void;
|
|
8564
8564
|
/**
|
|
8565
8565
|
* Callback when the value changes
|
|
8566
8566
|
*/
|
|
8567
|
-
onChange?: (event: React
|
|
8567
|
+
onChange?: (event: React.ChangeEvent<HTMLTextAreaElement>) => void;
|
|
8568
8568
|
/**
|
|
8569
8569
|
* Value change event handler (provides just the value)
|
|
8570
8570
|
*/
|
|
@@ -8576,7 +8576,7 @@ interface DsTextareaProps {
|
|
|
8576
8576
|
/**
|
|
8577
8577
|
* Additional styles to apply to the component
|
|
8578
8578
|
*/
|
|
8579
|
-
style?: React
|
|
8579
|
+
style?: React.CSSProperties;
|
|
8580
8580
|
/**
|
|
8581
8581
|
* The placeholder text
|
|
8582
8582
|
*/
|
|
@@ -8609,7 +8609,7 @@ interface DsTextareaProps {
|
|
|
8609
8609
|
}
|
|
8610
8610
|
//#endregion
|
|
8611
8611
|
//#region src/components/ds-textarea/ds-textarea.d.ts
|
|
8612
|
-
declare const DsTextarea: React
|
|
8612
|
+
declare const DsTextarea: React.FC<DsTextareaProps>;
|
|
8613
8613
|
//#endregion
|
|
8614
8614
|
//#region src/components/ds-select/ds-select.types.d.ts
|
|
8615
8615
|
type SelectSize = 'default' | 'small';
|
|
@@ -8640,7 +8640,7 @@ type DsSelectProps = {
|
|
|
8640
8640
|
/**
|
|
8641
8641
|
* Additional styles to apply to the icon
|
|
8642
8642
|
*/
|
|
8643
|
-
style?: React
|
|
8643
|
+
style?: React.CSSProperties;
|
|
8644
8644
|
/**
|
|
8645
8645
|
* Additional CSS class names
|
|
8646
8646
|
*/
|
|
@@ -8650,7 +8650,7 @@ type DsSelectProps = {
|
|
|
8650
8650
|
*
|
|
8651
8651
|
* @param event
|
|
8652
8652
|
*/
|
|
8653
|
-
onBlur?: (event: React
|
|
8653
|
+
onBlur?: (event: React.FocusEvent) => void;
|
|
8654
8654
|
/**
|
|
8655
8655
|
* Placeholder text to display when no option is selected
|
|
8656
8656
|
*/
|
|
@@ -8718,7 +8718,7 @@ declare const DsSelect: ({
|
|
|
8718
8718
|
//#region src/components/ds-form-control/ds-form-control.types.d.ts
|
|
8719
8719
|
declare const controlStatuses: readonly ["info", "success", "error", "warning"];
|
|
8720
8720
|
type ControlStatus = (typeof controlStatuses)[number];
|
|
8721
|
-
interface DsFormControlProps extends React
|
|
8721
|
+
interface DsFormControlProps extends React.PropsWithChildren {
|
|
8722
8722
|
/**
|
|
8723
8723
|
* Unique identifier for the control
|
|
8724
8724
|
*/
|
|
@@ -8739,7 +8739,7 @@ interface DsFormControlProps extends React$1.PropsWithChildren {
|
|
|
8739
8739
|
/**
|
|
8740
8740
|
* Adornment to display at the end of the label
|
|
8741
8741
|
*/
|
|
8742
|
-
endAdornment?: React
|
|
8742
|
+
endAdornment?: React.ReactNode;
|
|
8743
8743
|
};
|
|
8744
8744
|
/**
|
|
8745
8745
|
* Message under the control
|
|
@@ -8756,13 +8756,13 @@ interface DsFormControlProps extends React$1.PropsWithChildren {
|
|
|
8756
8756
|
/**
|
|
8757
8757
|
* Additional styles to apply to the component
|
|
8758
8758
|
*/
|
|
8759
|
-
style?: React
|
|
8759
|
+
style?: React.CSSProperties;
|
|
8760
8760
|
}
|
|
8761
8761
|
interface DsFormControlDescriptionProps {
|
|
8762
8762
|
/**
|
|
8763
8763
|
* The description content
|
|
8764
8764
|
*/
|
|
8765
|
-
children: React
|
|
8765
|
+
children: React.ReactNode;
|
|
8766
8766
|
/**
|
|
8767
8767
|
* Additional CSS class names
|
|
8768
8768
|
*/
|
|
@@ -8789,7 +8789,7 @@ declare const DsFormControl: {
|
|
|
8789
8789
|
DateInput: (props: DsDateInputProps) => react_jsx_runtime0.JSX.Element;
|
|
8790
8790
|
Textarea: (props: DsTextareaProps) => react_jsx_runtime0.JSX.Element;
|
|
8791
8791
|
Select: (props: DsSelectProps) => react_jsx_runtime0.JSX.Element;
|
|
8792
|
-
Description: React
|
|
8792
|
+
Description: React.FC<DsFormControlDescriptionProps>;
|
|
8793
8793
|
};
|
|
8794
8794
|
//#endregion
|
|
8795
8795
|
//#region src/components/ds-grid/ds-grid.types.d.ts
|
|
@@ -8842,11 +8842,11 @@ interface DsGridItemProps {
|
|
|
8842
8842
|
/**
|
|
8843
8843
|
* Design system Grid component
|
|
8844
8844
|
*/
|
|
8845
|
-
declare const DsGrid: React
|
|
8845
|
+
declare const DsGrid: React.FC<DsGridProps>;
|
|
8846
8846
|
/**
|
|
8847
8847
|
* Design system GridItem component
|
|
8848
8848
|
*/
|
|
8849
|
-
declare const DsGridItem: React
|
|
8849
|
+
declare const DsGridItem: React.FC<DsGridItemProps>;
|
|
8850
8850
|
//#endregion
|
|
8851
8851
|
//#region src/components/ds-loader/ds-loader.types.d.ts
|
|
8852
8852
|
declare const loaderVariants: readonly ["spinner", "pulsing"];
|
|
@@ -8864,11 +8864,11 @@ interface DsLoaderProps {
|
|
|
8864
8864
|
/**
|
|
8865
8865
|
* Additional styles to apply to the component
|
|
8866
8866
|
*/
|
|
8867
|
-
style?: React
|
|
8867
|
+
style?: React.CSSProperties;
|
|
8868
8868
|
/**
|
|
8869
8869
|
* Ref to the loader container element
|
|
8870
8870
|
*/
|
|
8871
|
-
ref?: React
|
|
8871
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
8872
8872
|
}
|
|
8873
8873
|
//#endregion
|
|
8874
8874
|
//#region src/components/ds-loader/ds-loader.d.ts
|
|
@@ -9030,11 +9030,11 @@ interface DsPopoverProps {
|
|
|
9030
9030
|
/**
|
|
9031
9031
|
* The element that triggers the popover
|
|
9032
9032
|
*/
|
|
9033
|
-
trigger: React
|
|
9033
|
+
trigger: React.ReactNode;
|
|
9034
9034
|
/**
|
|
9035
9035
|
* The content to be rendered inside the popover
|
|
9036
9036
|
*/
|
|
9037
|
-
children: React
|
|
9037
|
+
children: React.ReactNode;
|
|
9038
9038
|
/**
|
|
9039
9039
|
* Additional CSS class names
|
|
9040
9040
|
*/
|
|
@@ -9050,7 +9050,7 @@ interface DsPopoverProps {
|
|
|
9050
9050
|
}
|
|
9051
9051
|
//#endregion
|
|
9052
9052
|
//#region src/components/ds-popover/ds-popover.d.ts
|
|
9053
|
-
declare const DsPopover: React
|
|
9053
|
+
declare const DsPopover: React.FC<DsPopoverProps>;
|
|
9054
9054
|
//#endregion
|
|
9055
9055
|
//#region src/components/ds-progress-arc/ds-progress-arc.types.d.ts
|
|
9056
9056
|
declare const progressArcSizes: readonly ["small", "medium"];
|
|
@@ -9167,7 +9167,7 @@ interface DsProgressLinearProps {
|
|
|
9167
9167
|
/**
|
|
9168
9168
|
* Label displayed above the progress bar (left side)
|
|
9169
9169
|
*/
|
|
9170
|
-
label?: React
|
|
9170
|
+
label?: React.ReactNode;
|
|
9171
9171
|
/**
|
|
9172
9172
|
* Whether to show the percentage value text (right side of label row)
|
|
9173
9173
|
* @default true
|
|
@@ -9178,7 +9178,7 @@ interface DsProgressLinearProps {
|
|
|
9178
9178
|
* When a string is provided, it is auto-styled with an icon and color based on the variant.
|
|
9179
9179
|
* When a ReactNode is provided, it is rendered as-is.
|
|
9180
9180
|
*/
|
|
9181
|
-
caption?: React
|
|
9181
|
+
caption?: React.ReactNode | string;
|
|
9182
9182
|
/**
|
|
9183
9183
|
* Additional CSS class names
|
|
9184
9184
|
*/
|
|
@@ -9186,11 +9186,11 @@ interface DsProgressLinearProps {
|
|
|
9186
9186
|
/**
|
|
9187
9187
|
* Additional styles to apply to the component
|
|
9188
9188
|
*/
|
|
9189
|
-
style?: React
|
|
9189
|
+
style?: React.CSSProperties;
|
|
9190
9190
|
/**
|
|
9191
9191
|
* Ref to the root element
|
|
9192
9192
|
*/
|
|
9193
|
-
ref?: React
|
|
9193
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
9194
9194
|
}
|
|
9195
9195
|
//#endregion
|
|
9196
9196
|
//#region src/components/ds-progress-linear/ds-progress-linear.d.ts
|
|
@@ -9262,7 +9262,7 @@ interface DsRadioOptionLegacy<ValueType = string> {
|
|
|
9262
9262
|
* Use compound component pattern instead
|
|
9263
9263
|
* @deprecated
|
|
9264
9264
|
*/
|
|
9265
|
-
interface DsRadioGroupLegacyProps<TOption extends DsRadioOptionLegacy = DsRadioOptionLegacy> extends React
|
|
9265
|
+
interface DsRadioGroupLegacyProps<TOption extends DsRadioOptionLegacy = DsRadioOptionLegacy> extends React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root> {
|
|
9266
9266
|
/**
|
|
9267
9267
|
* The radio group options
|
|
9268
9268
|
*/
|
|
@@ -9288,7 +9288,7 @@ interface DsRadioGroupLegacyProps<TOption extends DsRadioOptionLegacy = DsRadioO
|
|
|
9288
9288
|
/**
|
|
9289
9289
|
* Additional styles to apply to the component
|
|
9290
9290
|
*/
|
|
9291
|
-
style?: React
|
|
9291
|
+
style?: React.CSSProperties;
|
|
9292
9292
|
}
|
|
9293
9293
|
//#endregion
|
|
9294
9294
|
//#region src/components/ds-radio-group/ds-radio-group.d.ts
|
|
@@ -9297,7 +9297,7 @@ interface DsRadioGroupLegacyProps<TOption extends DsRadioOptionLegacy = DsRadioO
|
|
|
9297
9297
|
* Use compound component pattern instead: DsRadioGroup.Root + DsRadioGroup.Item
|
|
9298
9298
|
* @deprecated
|
|
9299
9299
|
*/
|
|
9300
|
-
declare const DsRadioGroupLegacy: React
|
|
9300
|
+
declare const DsRadioGroupLegacy: React.FC<DsRadioGroupLegacyProps>;
|
|
9301
9301
|
/**
|
|
9302
9302
|
* Design system RadioGroup component
|
|
9303
9303
|
*
|
|
@@ -9308,8 +9308,8 @@ declare const DsRadioGroupLegacy: React$1.FC<DsRadioGroupLegacyProps>;
|
|
|
9308
9308
|
* </DsRadioGroup.Root>
|
|
9309
9309
|
*/
|
|
9310
9310
|
declare const DsRadioGroup: {
|
|
9311
|
-
Root: React
|
|
9312
|
-
Item: React
|
|
9311
|
+
Root: React.FC<DsRadioGroupRootProps>;
|
|
9312
|
+
Item: React.FC<DsRadioGroupItemProps>;
|
|
9313
9313
|
};
|
|
9314
9314
|
//#endregion
|
|
9315
9315
|
//#region src/components/ds-segment-group/ds-segment-group.types.d.ts
|
|
@@ -9373,9 +9373,9 @@ type DsSegmentGroupItemTextProps = Pick<SegmentGroupItemTextProps, 'className' |
|
|
|
9373
9373
|
* </DsSegmentGroup.Root>
|
|
9374
9374
|
*/
|
|
9375
9375
|
declare const DsSegmentGroup: {
|
|
9376
|
-
Root: React
|
|
9377
|
-
Item: React
|
|
9378
|
-
ItemText: React
|
|
9376
|
+
Root: React.FC<DsSegmentGroupRootProps>;
|
|
9377
|
+
Item: React.FC<DsSegmentGroupItemProps>;
|
|
9378
|
+
ItemText: React.FC<DsSegmentGroupItemTextProps>;
|
|
9379
9379
|
};
|
|
9380
9380
|
//#endregion
|
|
9381
9381
|
//#region src/components/ds-typography/ds-typography.config.d.ts
|
|
@@ -9419,7 +9419,7 @@ interface DsTypographyProps {
|
|
|
9419
9419
|
/**
|
|
9420
9420
|
* Additional styles to apply to the typography component
|
|
9421
9421
|
*/
|
|
9422
|
-
style?: React
|
|
9422
|
+
style?: React.CSSProperties;
|
|
9423
9423
|
/**
|
|
9424
9424
|
* When true, renders as Slot component for composition without extra DOM nodes
|
|
9425
9425
|
*/
|
|
@@ -9427,12 +9427,12 @@ interface DsTypographyProps {
|
|
|
9427
9427
|
/**
|
|
9428
9428
|
* The content of the component
|
|
9429
9429
|
*/
|
|
9430
|
-
children: React
|
|
9430
|
+
children: React.ReactNode;
|
|
9431
9431
|
}
|
|
9432
9432
|
//#endregion
|
|
9433
9433
|
//#region src/components/ds-typography/ds-typography.d.ts
|
|
9434
|
-
declare const DsTypography: React
|
|
9435
|
-
ref?: React
|
|
9434
|
+
declare const DsTypography: React.FC<DsTypographyProps & {
|
|
9435
|
+
ref?: React.Ref<HTMLElement>;
|
|
9436
9436
|
}>;
|
|
9437
9437
|
//#endregion
|
|
9438
9438
|
//#region src/components/ds-skeleton/ds-skeleton.types.d.ts
|
|
@@ -9622,7 +9622,7 @@ interface DsSmartTabProps {
|
|
|
9622
9622
|
/**
|
|
9623
9623
|
* Additional styles to apply to the tab
|
|
9624
9624
|
*/
|
|
9625
|
-
style?: React
|
|
9625
|
+
style?: React.CSSProperties;
|
|
9626
9626
|
}
|
|
9627
9627
|
interface DsSmartTabsProps {
|
|
9628
9628
|
/**
|
|
@@ -9640,7 +9640,7 @@ interface DsSmartTabsProps {
|
|
|
9640
9640
|
/**
|
|
9641
9641
|
* Additional styles to apply to the component
|
|
9642
9642
|
*/
|
|
9643
|
-
style?: React
|
|
9643
|
+
style?: React.CSSProperties;
|
|
9644
9644
|
/**
|
|
9645
9645
|
* The tab components as children
|
|
9646
9646
|
*/
|
|
@@ -9660,7 +9660,7 @@ declare const DsSmartTabs: {
|
|
|
9660
9660
|
children,
|
|
9661
9661
|
...props
|
|
9662
9662
|
}: DsSmartTabsProps): react_jsx_runtime0.JSX.Element;
|
|
9663
|
-
Tab: React
|
|
9663
|
+
Tab: React.FC<DsSmartTabProps>;
|
|
9664
9664
|
};
|
|
9665
9665
|
//#endregion
|
|
9666
9666
|
//#region src/components/ds-spinner/ds-spinner.types.d.ts
|
|
@@ -9679,14 +9679,14 @@ interface DsSpinnerProps {
|
|
|
9679
9679
|
/**
|
|
9680
9680
|
* Additional styles to apply to the component
|
|
9681
9681
|
*/
|
|
9682
|
-
style?: React
|
|
9682
|
+
style?: React.CSSProperties;
|
|
9683
9683
|
}
|
|
9684
9684
|
//#endregion
|
|
9685
9685
|
//#region src/components/ds-spinner/ds-spinner.d.ts
|
|
9686
9686
|
/**
|
|
9687
9687
|
* Design system Spinner component
|
|
9688
9688
|
*/
|
|
9689
|
-
declare const DsSpinner: React
|
|
9689
|
+
declare const DsSpinner: React.FC<DsSpinnerProps>;
|
|
9690
9690
|
//#endregion
|
|
9691
9691
|
//#region src/components/ds-status-badge/ds-status-badge.types.d.ts
|
|
9692
9692
|
declare const dsStatuses: readonly ["active", "running", "pending", "draft", "inactive", "warning", "failed"];
|
|
@@ -9734,7 +9734,7 @@ interface DsStatusBadgeProps {
|
|
|
9734
9734
|
/**
|
|
9735
9735
|
* Design system StatusBadge component
|
|
9736
9736
|
*/
|
|
9737
|
-
declare const DsStatusBadge: React
|
|
9737
|
+
declare const DsStatusBadge: React.FC<DsStatusBadgeProps>;
|
|
9738
9738
|
//#endregion
|
|
9739
9739
|
//#region src/components/ds-stepper/ds-stepper.types.d.ts
|
|
9740
9740
|
type DsStepperVariant = 'single';
|
|
@@ -9858,7 +9858,7 @@ interface DsSystemStatusProps {
|
|
|
9858
9858
|
* @deprecated This component is deprecated. Use `DsStatusBadge` instead.
|
|
9859
9859
|
* @see {@link ../ds-status-badge/ds-status-badge} for the replacement component.
|
|
9860
9860
|
*/
|
|
9861
|
-
declare const DsSystemStatus: React
|
|
9861
|
+
declare const DsSystemStatus: React.FC<DsSystemStatusProps>;
|
|
9862
9862
|
//#endregion
|
|
9863
9863
|
//#region src/components/ds-table/components/ds-table-cell/ds-table-cell.types.d.ts
|
|
9864
9864
|
/**
|
|
@@ -10475,7 +10475,7 @@ interface DsDataTableProps<TData, TValue> {
|
|
|
10475
10475
|
/**
|
|
10476
10476
|
* Ref to the table API
|
|
10477
10477
|
*/
|
|
10478
|
-
ref?: React
|
|
10478
|
+
ref?: React.RefObject<DsTableApi<TData> | null>;
|
|
10479
10479
|
/**
|
|
10480
10480
|
* Columns of the table
|
|
10481
10481
|
*/
|
|
@@ -10535,7 +10535,7 @@ interface DsDataTableProps<TData, TValue> {
|
|
|
10535
10535
|
/**
|
|
10536
10536
|
* Empty state of the table
|
|
10537
10537
|
*/
|
|
10538
|
-
emptyState?: React
|
|
10538
|
+
emptyState?: React.ReactNode;
|
|
10539
10539
|
/**
|
|
10540
10540
|
* Whether the table has sticky header
|
|
10541
10541
|
*/
|
|
@@ -10564,7 +10564,7 @@ interface DsDataTableProps<TData, TValue> {
|
|
|
10564
10564
|
/**
|
|
10565
10565
|
* Function to render the expanded row
|
|
10566
10566
|
*/
|
|
10567
|
-
renderExpandedRow?: (row: TData) => React
|
|
10567
|
+
renderExpandedRow?: (row: TData) => React.ReactNode;
|
|
10568
10568
|
/**
|
|
10569
10569
|
* Function to handle table creation
|
|
10570
10570
|
*/
|