@drivenets/design-system 0.7.1 → 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 +20 -0
- package/dist/index.cjs +591 -850
- package/dist/index.d.cts +131 -95
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +131 -95
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +580 -834
- package/dist/index.js.map +1 -1
- package/dist/index.min.css +1 -1
- package/package.json +28 -24
- package/src/components/ds-breadcrumb/ds-breadcrumb.tsx +1 -1
- package/src/components/ds-button/versions/ds-button-legacy/ds-button-legacy.tsx +1 -0
- package/src/components/ds-button/versions/ds-button-new/ds-button-new.module.scss +13 -0
- package/src/components/ds-button/versions/ds-button-new/ds-button-new.tsx +1 -1
- package/src/components/ds-button/versions/ds-button-new/ds-button-new.types.ts +1 -1
- package/src/components/ds-checkbox/ds-checkbox.module.scss +36 -5
- package/src/components/ds-checkbox/ds-checkbox.tsx +2 -1
- package/src/components/ds-checkbox/{ds-checkbox.types.tsx → ds-checkbox.types.ts} +7 -0
- package/src/components/ds-chip-group/ds-chip-group.tsx +1 -1
- package/src/components/ds-comment-bubble/components/ds-thread-item/ds-thread-item.module.scss +0 -23
- package/src/components/ds-comment-bubble/components/ds-thread-item/ds-thread-item.tsx +2 -11
- package/src/components/ds-comment-bubble/ds-comment-bubble.module.scss +0 -39
- package/src/components/ds-comment-bubble/ds-comment-bubble.tsx +21 -20
- package/src/components/ds-comment-card/ds-comment-card.tsx +2 -2
- package/src/components/ds-confirmation/ds-confirmation.tsx +1 -1
- package/src/components/ds-dropdown-menu/ds-dropdown-menu.module.scss +1 -1
- package/src/components/ds-dropdown-menu/ds-dropdown-menu.tsx +2 -2
- package/src/components/ds-expandable-text-input/ds-expandable-text-input.tsx +6 -2
- package/src/components/ds-segment-group/ds-segment-group.tsx +1 -1
- package/src/components/ds-select/ds-select.tsx +41 -7
- package/src/components/ds-select/{ds-select.types.tsx → ds-select.types.ts} +12 -0
- package/src/components/ds-select/select-items-chips.tsx +3 -2
- package/src/components/ds-select/utils.test.ts +37 -0
- package/src/components/ds-select/utils.ts +7 -0
- package/src/components/ds-smart-tabs/{ds-smart-tabs.types.tsx → ds-smart-tabs.types.ts} +1 -1
- package/src/components/ds-stepper/components/ds-step-next-button.tsx +7 -3
- package/src/components/ds-stepper/components/ds-step.tsx +1 -1
- package/src/components/ds-table/components/ds-table-body-virtualized/ds-table-body-virtualized.tsx +14 -6
- package/src/components/ds-table/components/ds-table-body-virtualized/ds-table-body-virtualized.types.ts +9 -3
- package/src/components/ds-table/components/ds-table-row/ds-table-row.tsx +6 -4
- 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/src/components/ds-tabs/components/ds-tabs-tab/ds-tabs-tab.tsx +1 -2
- package/src/components/ds-tag-filter/{utils.test.ts → utils.browser.test.ts} +20 -113
- package/src/components/ds-text-input/ds-text-input.tsx +4 -0
- package/src/components/ds-text-input/{ds-text-input.types.tsx → ds-text-input.types.ts} +8 -1
- /package/src/components/ds-alert-banner/{ds-alert-banner.types.tsx → ds-alert-banner.types.ts} +0 -0
- /package/src/components/ds-alert-banner/{index.tsx → index.ts} +0 -0
- /package/src/components/ds-autocomplete/{ds-autocomplete.types.tsx → ds-autocomplete.types.ts} +0 -0
- /package/src/components/ds-breadcrumb/{ds-breadcrumb.types.tsx → ds-breadcrumb.types.ts} +0 -0
- /package/src/components/ds-breadcrumb/{index.tsx → index.ts} +0 -0
- /package/src/components/ds-checkbox/{index.tsx → index.ts} +0 -0
- /package/src/components/ds-chip/{ds-chip.types.tsx → ds-chip.types.ts} +0 -0
- /package/src/components/ds-chip/{index.tsx → index.ts} +0 -0
- /package/src/components/ds-comments-drawer/{comments-filters.test.ts → comments-filters.unit.test.ts} +0 -0
- /package/src/components/ds-confirmation/{ds-confirmation.types.tsx → ds-confirmation.types.ts} +0 -0
- /package/src/components/ds-date-input/{ds-date-input.types.tsx → ds-date-input.types.ts} +0 -0
- /package/src/components/ds-dialog/{ds-dialog.types.tsx → ds-dialog.types.ts} +0 -0
- /package/src/components/ds-dialog/{index.tsx → index.ts} +0 -0
- /package/src/components/ds-drawer/{ds-drawer.types.tsx → ds-drawer.types.ts} +0 -0
- /package/src/components/ds-dropdown-menu/{ds-dropdown-menu.types.tsx → ds-dropdown-menu.types.ts} +0 -0
- /package/src/components/ds-dropdown-menu/{index.tsx → index.ts} +0 -0
- /package/src/components/ds-expandable-text-input/{ds-expandable-text-input.types.tsx → ds-expandable-text-input.types.ts} +0 -0
- /package/src/components/ds-file-upload/components/file-upload/{file-upload.types.tsx → file-upload.types.ts} +0 -0
- /package/src/components/ds-file-upload/components/file-upload-item/{file-upload-item.types.tsx → file-upload-item.types.ts} +0 -0
- /package/src/components/ds-file-upload/{ds-file-upload.types.tsx → ds-file-upload.types.ts} +0 -0
- /package/src/components/ds-form-control/{ds-form-control.types.tsx → ds-form-control.types.ts} +0 -0
- /package/src/components/ds-form-control/{index.tsx → index.ts} +0 -0
- /package/src/components/ds-modal/{ds-modal.types.tsx → ds-modal.types.ts} +0 -0
- /package/src/components/ds-modal/{index.tsx → index.ts} +0 -0
- /package/src/components/ds-number-input/{ds-number-input.types.tsx → ds-number-input.types.ts} +0 -0
- /package/src/components/ds-number-input/{index.tsx → index.ts} +0 -0
- /package/src/components/ds-panel/{index.tsx → index.ts} +0 -0
- /package/src/components/ds-password-input/{ds-password-input.types.tsx → ds-password-input.types.ts} +0 -0
- /package/src/components/ds-password-input/{index.tsx → index.ts} +0 -0
- /package/src/components/ds-popover/{ds-popover.types.tsx → ds-popover.types.ts} +0 -0
- /package/src/components/ds-popover/{index.tsx → index.ts} +0 -0
- /package/src/components/ds-progress-arc/{utils.test.ts → utils.unit.test.ts} +0 -0
- /package/src/components/ds-progress-linear/{utils.test.ts → utils.unit.test.ts} +0 -0
- /package/src/components/ds-radio-group/{ds-radio-group.types.tsx → ds-radio-group.types.ts} +0 -0
- /package/src/components/ds-radio-group/{index.tsx → index.ts} +0 -0
- /package/src/components/ds-segment-group/{ds-segment-group.types.tsx → ds-segment-group.types.ts} +0 -0
- /package/src/components/ds-segment-group/{index.tsx → index.ts} +0 -0
- /package/src/components/ds-select/{index.tsx → index.ts} +0 -0
- /package/src/components/ds-skeleton/{ds-skeleton.tsx → ds-skeleton.ts} +0 -0
- /package/src/components/ds-smart-tabs/{index.tsx → index.ts} +0 -0
- /package/src/components/ds-spinner/{ds-spinner.types.tsx → ds-spinner.types.ts} +0 -0
- /package/src/components/ds-spinner/{index.tsx → index.ts} +0 -0
- /package/src/components/ds-status-badge/{ds-status-badge.types.tsx → ds-status-badge.types.ts} +0 -0
- /package/src/components/ds-status-badge/{index.tsx → index.ts} +0 -0
- /package/src/components/ds-stepper/{index.tsx → index.ts} +0 -0
- /package/src/components/ds-system-status/{ds-system-status.types.tsx → ds-system-status.types.ts} +0 -0
- /package/src/components/ds-system-status/{index.tsx → index.ts} +0 -0
- /package/src/components/ds-table/context/{ds-table-context.tsx → ds-table-context.ts} +0 -0
- /package/src/components/ds-tag/{ds-tag.types.tsx → ds-tag.types.ts} +0 -0
- /package/src/components/ds-tag/{index.tsx → index.ts} +0 -0
- /package/src/components/ds-textarea/{ds-textarea.types.tsx → ds-textarea.types.ts} +0 -0
- /package/src/components/ds-textarea/{index.tsx → index.ts} +0 -0
- /package/src/components/ds-toast/{ds-toast.types.tsx → ds-toast.types.ts} +0 -0
- /package/src/components/ds-toggle/{ds-toggle.types.tsx → ds-toggle.types.ts} +0 -0
- /package/src/components/ds-toggle/{index.tsx → index.ts} +0 -0
- /package/src/components/ds-tooltip/{ds-tooltip.types.tsx → ds-tooltip.types.ts} +0 -0
- /package/src/components/ds-tooltip/{index.tsx → index.ts} +0 -0
- /package/src/components/ds-typography/{ds-typography.types.tsx → ds-typography.types.ts} +0 -0
- /package/src/components/ds-typography/{index.tsx → index.ts} +0 -0
- /package/src/utils/{format-relative-time.test.ts → format-relative-time.unit.test.ts} +0 -0
- /package/src/{components/ds-table/utils → utils}/merge-refs.ts +0 -0
- /package/src/utils/{numbers.test.ts → numbers.unit.test.ts} +0 -0
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'
|
|
@@ -6679,9 +6679,9 @@ declare const buttonTypes: readonly ["primary", "secondary", "secondary-light",
|
|
|
6679
6679
|
type ButtonType = (typeof buttonTypes)[number];
|
|
6680
6680
|
declare const buttonVariants: readonly ["filled", "ghost", "danger", "dark"];
|
|
6681
6681
|
type ButtonVariant = (typeof buttonVariants)[number];
|
|
6682
|
-
declare const buttonSizes: readonly ["large", "medium", "small"];
|
|
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'
|
|
@@ -6816,7 +6816,13 @@ declare const DsCard: {
|
|
|
6816
6816
|
};
|
|
6817
6817
|
//#endregion
|
|
6818
6818
|
//#region src/components/ds-checkbox/ds-checkbox.types.d.ts
|
|
6819
|
+
declare const checkboxVariants: readonly ["default", "warning"];
|
|
6820
|
+
type CheckboxVariant = (typeof checkboxVariants)[number];
|
|
6819
6821
|
interface DsCheckboxProps extends ComponentPropsWithoutRef<typeof Root> {
|
|
6822
|
+
/**
|
|
6823
|
+
* Visual variant of the checkbox
|
|
6824
|
+
*/
|
|
6825
|
+
variant?: CheckboxVariant;
|
|
6820
6826
|
/**
|
|
6821
6827
|
* Label for the checkbox
|
|
6822
6828
|
*/
|
|
@@ -6845,7 +6851,7 @@ interface DsCheckboxProps extends ComponentPropsWithoutRef<typeof Root> {
|
|
|
6845
6851
|
/**
|
|
6846
6852
|
* Design system Checkbox component
|
|
6847
6853
|
*/
|
|
6848
|
-
declare const DsCheckbox: React
|
|
6854
|
+
declare const DsCheckbox: React.FC<DsCheckboxProps>;
|
|
6849
6855
|
//#endregion
|
|
6850
6856
|
//#region src/components/ds-chip/ds-chip.types.d.ts
|
|
6851
6857
|
/**
|
|
@@ -6908,7 +6914,7 @@ interface DsChipProps {
|
|
|
6908
6914
|
* @deprecated This component is deprecated. Use `DsTag` instead.
|
|
6909
6915
|
* @see {@link ../ds-tag} for the replacement component.
|
|
6910
6916
|
*/
|
|
6911
|
-
declare const DsChip: React
|
|
6917
|
+
declare const DsChip: React.FC<DsChipProps>;
|
|
6912
6918
|
//#endregion
|
|
6913
6919
|
//#region src/components/ds-chip-group/ds-chip-group.types.d.ts
|
|
6914
6920
|
/**
|
|
@@ -6974,7 +6980,7 @@ interface DsChipGroupProps {
|
|
|
6974
6980
|
* @deprecated This component is deprecated. Use `DsTagFilter` instead.
|
|
6975
6981
|
* @see {@link ../ds-tag-filter} for the replacement component.
|
|
6976
6982
|
*/
|
|
6977
|
-
declare const DsChipGroup: React
|
|
6983
|
+
declare const DsChipGroup: React.FC<DsChipGroupProps>;
|
|
6978
6984
|
//#endregion
|
|
6979
6985
|
//#region src/components/ds-comment-card/ds-comment-card.types.d.ts
|
|
6980
6986
|
interface CommentAuthor {
|
|
@@ -7460,7 +7466,7 @@ interface DsDialogProps {
|
|
|
7460
7466
|
/**
|
|
7461
7467
|
* The content to render inside the dialog.
|
|
7462
7468
|
*/
|
|
7463
|
-
children: React
|
|
7469
|
+
children: React.ReactNode;
|
|
7464
7470
|
/**
|
|
7465
7471
|
* Additional CSS class names for the dialog container.
|
|
7466
7472
|
*/
|
|
@@ -7468,7 +7474,7 @@ interface DsDialogProps {
|
|
|
7468
7474
|
/**
|
|
7469
7475
|
* Ref to the element the dialog should be anchored to (for relative placement)
|
|
7470
7476
|
*/
|
|
7471
|
-
anchorRef?: React
|
|
7477
|
+
anchorRef?: React.RefObject<HTMLElement>;
|
|
7472
7478
|
/**
|
|
7473
7479
|
* Custom fixed position (e.g., { top: number, left: number })
|
|
7474
7480
|
*/
|
|
@@ -7483,7 +7489,7 @@ interface DsDialogProps {
|
|
|
7483
7489
|
}
|
|
7484
7490
|
//#endregion
|
|
7485
7491
|
//#region src/components/ds-dialog/ds-dialog.d.ts
|
|
7486
|
-
declare const DsDialog: React
|
|
7492
|
+
declare const DsDialog: React.FC<DsDialogProps>;
|
|
7487
7493
|
//#endregion
|
|
7488
7494
|
//#region src/components/ds-divider/ds-divider.types.d.ts
|
|
7489
7495
|
interface DsDividerProps {
|
|
@@ -7495,11 +7501,11 @@ interface DsDividerProps {
|
|
|
7495
7501
|
* Underlying element/component to render.
|
|
7496
7502
|
* Examples: "hr", "div", "span", Link, etc.
|
|
7497
7503
|
*/
|
|
7498
|
-
component?: React
|
|
7504
|
+
component?: React.ElementType;
|
|
7499
7505
|
/**
|
|
7500
7506
|
* Additional CSS styles.
|
|
7501
7507
|
*/
|
|
7502
|
-
style?: React
|
|
7508
|
+
style?: React.CSSProperties;
|
|
7503
7509
|
/**
|
|
7504
7510
|
* Additional CSS classes.
|
|
7505
7511
|
*/
|
|
@@ -7507,7 +7513,7 @@ interface DsDividerProps {
|
|
|
7507
7513
|
}
|
|
7508
7514
|
//#endregion
|
|
7509
7515
|
//#region src/components/ds-divider/ds-divider.d.ts
|
|
7510
|
-
declare const DsDivider: React
|
|
7516
|
+
declare const DsDivider: React.FC<DsDividerProps>;
|
|
7511
7517
|
//#endregion
|
|
7512
7518
|
//#region src/components/ds-drawer/ds-drawer.types.d.ts
|
|
7513
7519
|
/**
|
|
@@ -7894,7 +7900,7 @@ type DsDropdownMenuTriggerItemProps = Menu.TriggerItemProps;
|
|
|
7894
7900
|
* Use compound component pattern instead
|
|
7895
7901
|
* @deprecated
|
|
7896
7902
|
*/
|
|
7897
|
-
declare const DsDropdownMenuLegacy: React
|
|
7903
|
+
declare const DsDropdownMenuLegacy: React.FC<DsDropdownMenuLegacyProps>;
|
|
7898
7904
|
/**
|
|
7899
7905
|
* Design system DsDropdownMenu component
|
|
7900
7906
|
*
|
|
@@ -7926,18 +7932,18 @@ declare const DsDropdownMenuLegacy: React$1.FC<DsDropdownMenuLegacyProps>;
|
|
|
7926
7932
|
* </DsDropdownMenu.Root>
|
|
7927
7933
|
*/
|
|
7928
7934
|
declare const DsDropdownMenu: {
|
|
7929
|
-
Root: React
|
|
7930
|
-
Trigger: React
|
|
7931
|
-
Content: React
|
|
7932
|
-
Item: React
|
|
7933
|
-
ItemIndicator: React
|
|
7934
|
-
TriggerItem: React
|
|
7935
|
-
Header: React
|
|
7936
|
-
Actions: React
|
|
7937
|
-
ItemGroup: React
|
|
7938
|
-
ItemGroupLabel: React
|
|
7939
|
-
ItemGroupContent: React
|
|
7940
|
-
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>;
|
|
7941
7947
|
};
|
|
7942
7948
|
//#endregion
|
|
7943
7949
|
//#region src/components/ds-text-input/ds-text-input.types.d.ts
|
|
@@ -7951,7 +7957,7 @@ interface DsTextInputProps {
|
|
|
7951
7957
|
/**
|
|
7952
7958
|
* The ref to the input field
|
|
7953
7959
|
*/
|
|
7954
|
-
ref?: React
|
|
7960
|
+
ref?: React.Ref<HTMLInputElement>;
|
|
7955
7961
|
/**
|
|
7956
7962
|
* The name of the input field
|
|
7957
7963
|
*/
|
|
@@ -7966,20 +7972,24 @@ interface DsTextInputProps {
|
|
|
7966
7972
|
* @default text
|
|
7967
7973
|
*/
|
|
7968
7974
|
type?: string;
|
|
7975
|
+
/**
|
|
7976
|
+
* Event handler called when the input field receives focus
|
|
7977
|
+
*/
|
|
7978
|
+
onFocus?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
7969
7979
|
/**
|
|
7970
7980
|
* Event handler called when the input field loses focus
|
|
7971
7981
|
*
|
|
7972
7982
|
* @param event
|
|
7973
7983
|
*/
|
|
7974
|
-
onBlur?: (event: React
|
|
7984
|
+
onBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
7975
7985
|
/**
|
|
7976
7986
|
* Callback when a key is pressed down
|
|
7977
7987
|
*/
|
|
7978
|
-
onKeyDown?: (event: React
|
|
7988
|
+
onKeyDown?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
7979
7989
|
/**
|
|
7980
7990
|
* Callback when the value changes
|
|
7981
7991
|
*/
|
|
7982
|
-
onChange?: (event: React
|
|
7992
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
7983
7993
|
/**
|
|
7984
7994
|
* Value change event handler (provides just the value)
|
|
7985
7995
|
*/
|
|
@@ -7991,7 +8001,7 @@ interface DsTextInputProps {
|
|
|
7991
8001
|
/**
|
|
7992
8002
|
* Additional styles to apply to the component
|
|
7993
8003
|
*/
|
|
7994
|
-
style?: React
|
|
8004
|
+
style?: React.CSSProperties;
|
|
7995
8005
|
/**
|
|
7996
8006
|
* The placeholder text
|
|
7997
8007
|
*/
|
|
@@ -8025,6 +8035,10 @@ interface DsTextInputProps {
|
|
|
8025
8035
|
* Whether the input is disabled
|
|
8026
8036
|
*/
|
|
8027
8037
|
disabled?: boolean;
|
|
8038
|
+
/**
|
|
8039
|
+
* Whether the input is read only
|
|
8040
|
+
*/
|
|
8041
|
+
readOnly?: boolean;
|
|
8028
8042
|
/**
|
|
8029
8043
|
* The tabIndex of the input
|
|
8030
8044
|
*/
|
|
@@ -8034,16 +8048,16 @@ interface DsTextInputProps {
|
|
|
8034
8048
|
* Custom component to wrap the input element
|
|
8035
8049
|
*/
|
|
8036
8050
|
inputWrapper?: ComponentType<{
|
|
8037
|
-
children: React
|
|
8051
|
+
children: React.ReactNode;
|
|
8038
8052
|
}>;
|
|
8039
8053
|
/**
|
|
8040
8054
|
* Adornment to display at the start of the input
|
|
8041
8055
|
*/
|
|
8042
|
-
startAdornment?: React
|
|
8056
|
+
startAdornment?: React.ReactNode;
|
|
8043
8057
|
/**
|
|
8044
8058
|
* Adornment to display at the end of the input
|
|
8045
8059
|
*/
|
|
8046
|
-
endAdornment?: React
|
|
8060
|
+
endAdornment?: React.ReactNode;
|
|
8047
8061
|
};
|
|
8048
8062
|
}
|
|
8049
8063
|
//#endregion
|
|
@@ -8071,6 +8085,7 @@ declare function DsExpandableTextInput({
|
|
|
8071
8085
|
onClear,
|
|
8072
8086
|
onExpandChange,
|
|
8073
8087
|
icon,
|
|
8088
|
+
size,
|
|
8074
8089
|
...props
|
|
8075
8090
|
}: DsExpandableTextInputProps): react_jsx_runtime0.JSX.Element;
|
|
8076
8091
|
//#endregion
|
|
@@ -8225,7 +8240,7 @@ interface FileUploadProps {
|
|
|
8225
8240
|
* Design system base File Upload component
|
|
8226
8241
|
* Used in conjunction with the useFileUpload hook
|
|
8227
8242
|
*/
|
|
8228
|
-
declare const FileUpload: React
|
|
8243
|
+
declare const FileUpload: React.FC<FileUploadProps>;
|
|
8229
8244
|
//#endregion
|
|
8230
8245
|
//#region src/components/ds-file-upload/ds-file-upload.types.d.ts
|
|
8231
8246
|
interface DsFileUploadProps extends Omit<FileUploadProps, 'files' | 'acceptedFiles' | 'onFileAccept' | 'onFileReject' | 'onFileRemove' | 'onFileDelete' | 'onFileCancel' | 'onFileRetry' | 'uploadProgress'> {
|
|
@@ -8262,7 +8277,7 @@ interface DsFileUploadProps extends Omit<FileUploadProps, 'files' | 'acceptedFil
|
|
|
8262
8277
|
/**
|
|
8263
8278
|
* Design system File Upload component (with state management)
|
|
8264
8279
|
*/
|
|
8265
|
-
declare const DsFileUpload: React
|
|
8280
|
+
declare const DsFileUpload: React.FC<DsFileUploadProps>;
|
|
8266
8281
|
//#endregion
|
|
8267
8282
|
//#region src/components/ds-file-upload/hooks/use-file-upload.d.ts
|
|
8268
8283
|
interface UseFileUploadConfig {
|
|
@@ -8391,7 +8406,7 @@ interface DsNumberInputProps {
|
|
|
8391
8406
|
/**
|
|
8392
8407
|
* The ref to the input field
|
|
8393
8408
|
*/
|
|
8394
|
-
ref?: React
|
|
8409
|
+
ref?: React.Ref<HTMLInputElement>;
|
|
8395
8410
|
/**
|
|
8396
8411
|
* The name of the input field
|
|
8397
8412
|
*/
|
|
@@ -8406,12 +8421,12 @@ interface DsNumberInputProps {
|
|
|
8406
8421
|
*
|
|
8407
8422
|
* @param event
|
|
8408
8423
|
*/
|
|
8409
|
-
onBlur?: (event: React
|
|
8424
|
+
onBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
8410
8425
|
/**
|
|
8411
8426
|
* Callback when the value changes (native input onChange event)
|
|
8412
8427
|
* This is provided for compatibility but onValueChange is preferred
|
|
8413
8428
|
*/
|
|
8414
|
-
onChange?: (event: React
|
|
8429
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
8415
8430
|
/**
|
|
8416
8431
|
* Value change event handler (provides just the number value)
|
|
8417
8432
|
* This is the preferred way to handle value changes
|
|
@@ -8424,7 +8439,7 @@ interface DsNumberInputProps {
|
|
|
8424
8439
|
/**
|
|
8425
8440
|
* Additional styles to apply to the component
|
|
8426
8441
|
*/
|
|
8427
|
-
style?: React
|
|
8442
|
+
style?: React.CSSProperties;
|
|
8428
8443
|
/**
|
|
8429
8444
|
* The placeholder text
|
|
8430
8445
|
*/
|
|
@@ -8470,7 +8485,7 @@ interface DsPasswordInputProps {
|
|
|
8470
8485
|
/**
|
|
8471
8486
|
* The ref to the input field
|
|
8472
8487
|
*/
|
|
8473
|
-
ref?: React
|
|
8488
|
+
ref?: React.Ref<HTMLInputElement>;
|
|
8474
8489
|
/**
|
|
8475
8490
|
* The name of the input field
|
|
8476
8491
|
*/
|
|
@@ -8485,12 +8500,12 @@ interface DsPasswordInputProps {
|
|
|
8485
8500
|
*
|
|
8486
8501
|
* @param event
|
|
8487
8502
|
*/
|
|
8488
|
-
onBlur?: (event: React
|
|
8503
|
+
onBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
8489
8504
|
/**
|
|
8490
8505
|
* Callback when the value changes (native input onChange event)
|
|
8491
8506
|
* This is provided for compatibility but onValueChange is preferred
|
|
8492
8507
|
*/
|
|
8493
|
-
onChange?: (event: React
|
|
8508
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
8494
8509
|
/**
|
|
8495
8510
|
* Value change event handler (provides just the string value)
|
|
8496
8511
|
* This is the preferred way to handle value changes
|
|
@@ -8503,7 +8518,7 @@ interface DsPasswordInputProps {
|
|
|
8503
8518
|
/**
|
|
8504
8519
|
* Additional styles to apply to the component
|
|
8505
8520
|
*/
|
|
8506
|
-
style?: React
|
|
8521
|
+
style?: React.CSSProperties;
|
|
8507
8522
|
/**
|
|
8508
8523
|
* The placeholder text
|
|
8509
8524
|
*/
|
|
@@ -8535,7 +8550,7 @@ interface DsTextareaProps {
|
|
|
8535
8550
|
/**
|
|
8536
8551
|
* The ref to the textarea element
|
|
8537
8552
|
*/
|
|
8538
|
-
ref?: React
|
|
8553
|
+
ref?: React.Ref<HTMLTextAreaElement>;
|
|
8539
8554
|
/**
|
|
8540
8555
|
* The name of the textarea
|
|
8541
8556
|
*/
|
|
@@ -8545,11 +8560,11 @@ interface DsTextareaProps {
|
|
|
8545
8560
|
*
|
|
8546
8561
|
* @param event
|
|
8547
8562
|
*/
|
|
8548
|
-
onBlur?: (event: React
|
|
8563
|
+
onBlur?: (event: React.FocusEvent<HTMLTextAreaElement>) => void;
|
|
8549
8564
|
/**
|
|
8550
8565
|
* Callback when the value changes
|
|
8551
8566
|
*/
|
|
8552
|
-
onChange?: (event: React
|
|
8567
|
+
onChange?: (event: React.ChangeEvent<HTMLTextAreaElement>) => void;
|
|
8553
8568
|
/**
|
|
8554
8569
|
* Value change event handler (provides just the value)
|
|
8555
8570
|
*/
|
|
@@ -8561,7 +8576,7 @@ interface DsTextareaProps {
|
|
|
8561
8576
|
/**
|
|
8562
8577
|
* Additional styles to apply to the component
|
|
8563
8578
|
*/
|
|
8564
|
-
style?: React
|
|
8579
|
+
style?: React.CSSProperties;
|
|
8565
8580
|
/**
|
|
8566
8581
|
* The placeholder text
|
|
8567
8582
|
*/
|
|
@@ -8594,7 +8609,7 @@ interface DsTextareaProps {
|
|
|
8594
8609
|
}
|
|
8595
8610
|
//#endregion
|
|
8596
8611
|
//#region src/components/ds-textarea/ds-textarea.d.ts
|
|
8597
|
-
declare const DsTextarea: React
|
|
8612
|
+
declare const DsTextarea: React.FC<DsTextareaProps>;
|
|
8598
8613
|
//#endregion
|
|
8599
8614
|
//#region src/components/ds-select/ds-select.types.d.ts
|
|
8600
8615
|
type SelectSize = 'default' | 'small';
|
|
@@ -8625,7 +8640,7 @@ type DsSelectProps = {
|
|
|
8625
8640
|
/**
|
|
8626
8641
|
* Additional styles to apply to the icon
|
|
8627
8642
|
*/
|
|
8628
|
-
style?: React
|
|
8643
|
+
style?: React.CSSProperties;
|
|
8629
8644
|
/**
|
|
8630
8645
|
* Additional CSS class names
|
|
8631
8646
|
*/
|
|
@@ -8635,7 +8650,7 @@ type DsSelectProps = {
|
|
|
8635
8650
|
*
|
|
8636
8651
|
* @param event
|
|
8637
8652
|
*/
|
|
8638
|
-
onBlur?: (event: React
|
|
8653
|
+
onBlur?: (event: React.FocusEvent) => void;
|
|
8639
8654
|
/**
|
|
8640
8655
|
* Placeholder text to display when no option is selected
|
|
8641
8656
|
*/
|
|
@@ -8665,10 +8680,22 @@ type DsSelectProps = {
|
|
|
8665
8680
|
multiple?: undefined | false;
|
|
8666
8681
|
value: SelectOptionValue;
|
|
8667
8682
|
onValueChange?: (value: SelectOptionValue) => void;
|
|
8683
|
+
/**
|
|
8684
|
+
* Custom render function for the selected value in the trigger.
|
|
8685
|
+
* When provided, replaces the default label text inside the trigger button.
|
|
8686
|
+
* Only called when there is a selection; otherwise the placeholder is shown.
|
|
8687
|
+
*/
|
|
8688
|
+
renderValue?: (selectedOption: DsSelectOption) => ReactNode;
|
|
8668
8689
|
} | {
|
|
8669
8690
|
multiple: true;
|
|
8670
8691
|
value: SelectOptionValue[];
|
|
8671
8692
|
onValueChange?: (value: SelectOptionValue[]) => void;
|
|
8693
|
+
/**
|
|
8694
|
+
* Custom render function for the selected value in the trigger.
|
|
8695
|
+
* When provided, replaces the default label text inside the trigger button.
|
|
8696
|
+
* Only called when there is a selection; otherwise the placeholder is shown.
|
|
8697
|
+
*/
|
|
8698
|
+
renderValue?: (selectedOptions: DsSelectOption[]) => ReactNode;
|
|
8672
8699
|
});
|
|
8673
8700
|
//#endregion
|
|
8674
8701
|
//#region src/components/ds-select/ds-select.d.ts
|
|
@@ -8691,7 +8718,7 @@ declare const DsSelect: ({
|
|
|
8691
8718
|
//#region src/components/ds-form-control/ds-form-control.types.d.ts
|
|
8692
8719
|
declare const controlStatuses: readonly ["info", "success", "error", "warning"];
|
|
8693
8720
|
type ControlStatus = (typeof controlStatuses)[number];
|
|
8694
|
-
interface DsFormControlProps extends React
|
|
8721
|
+
interface DsFormControlProps extends React.PropsWithChildren {
|
|
8695
8722
|
/**
|
|
8696
8723
|
* Unique identifier for the control
|
|
8697
8724
|
*/
|
|
@@ -8712,7 +8739,7 @@ interface DsFormControlProps extends React$1.PropsWithChildren {
|
|
|
8712
8739
|
/**
|
|
8713
8740
|
* Adornment to display at the end of the label
|
|
8714
8741
|
*/
|
|
8715
|
-
endAdornment?: React
|
|
8742
|
+
endAdornment?: React.ReactNode;
|
|
8716
8743
|
};
|
|
8717
8744
|
/**
|
|
8718
8745
|
* Message under the control
|
|
@@ -8729,13 +8756,13 @@ interface DsFormControlProps extends React$1.PropsWithChildren {
|
|
|
8729
8756
|
/**
|
|
8730
8757
|
* Additional styles to apply to the component
|
|
8731
8758
|
*/
|
|
8732
|
-
style?: React
|
|
8759
|
+
style?: React.CSSProperties;
|
|
8733
8760
|
}
|
|
8734
8761
|
interface DsFormControlDescriptionProps {
|
|
8735
8762
|
/**
|
|
8736
8763
|
* The description content
|
|
8737
8764
|
*/
|
|
8738
|
-
children: React
|
|
8765
|
+
children: React.ReactNode;
|
|
8739
8766
|
/**
|
|
8740
8767
|
* Additional CSS class names
|
|
8741
8768
|
*/
|
|
@@ -8762,7 +8789,7 @@ declare const DsFormControl: {
|
|
|
8762
8789
|
DateInput: (props: DsDateInputProps) => react_jsx_runtime0.JSX.Element;
|
|
8763
8790
|
Textarea: (props: DsTextareaProps) => react_jsx_runtime0.JSX.Element;
|
|
8764
8791
|
Select: (props: DsSelectProps) => react_jsx_runtime0.JSX.Element;
|
|
8765
|
-
Description: React
|
|
8792
|
+
Description: React.FC<DsFormControlDescriptionProps>;
|
|
8766
8793
|
};
|
|
8767
8794
|
//#endregion
|
|
8768
8795
|
//#region src/components/ds-grid/ds-grid.types.d.ts
|
|
@@ -8815,11 +8842,11 @@ interface DsGridItemProps {
|
|
|
8815
8842
|
/**
|
|
8816
8843
|
* Design system Grid component
|
|
8817
8844
|
*/
|
|
8818
|
-
declare const DsGrid: React
|
|
8845
|
+
declare const DsGrid: React.FC<DsGridProps>;
|
|
8819
8846
|
/**
|
|
8820
8847
|
* Design system GridItem component
|
|
8821
8848
|
*/
|
|
8822
|
-
declare const DsGridItem: React
|
|
8849
|
+
declare const DsGridItem: React.FC<DsGridItemProps>;
|
|
8823
8850
|
//#endregion
|
|
8824
8851
|
//#region src/components/ds-loader/ds-loader.types.d.ts
|
|
8825
8852
|
declare const loaderVariants: readonly ["spinner", "pulsing"];
|
|
@@ -8837,11 +8864,11 @@ interface DsLoaderProps {
|
|
|
8837
8864
|
/**
|
|
8838
8865
|
* Additional styles to apply to the component
|
|
8839
8866
|
*/
|
|
8840
|
-
style?: React
|
|
8867
|
+
style?: React.CSSProperties;
|
|
8841
8868
|
/**
|
|
8842
8869
|
* Ref to the loader container element
|
|
8843
8870
|
*/
|
|
8844
|
-
ref?: React
|
|
8871
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
8845
8872
|
}
|
|
8846
8873
|
//#endregion
|
|
8847
8874
|
//#region src/components/ds-loader/ds-loader.d.ts
|
|
@@ -9003,11 +9030,11 @@ interface DsPopoverProps {
|
|
|
9003
9030
|
/**
|
|
9004
9031
|
* The element that triggers the popover
|
|
9005
9032
|
*/
|
|
9006
|
-
trigger: React
|
|
9033
|
+
trigger: React.ReactNode;
|
|
9007
9034
|
/**
|
|
9008
9035
|
* The content to be rendered inside the popover
|
|
9009
9036
|
*/
|
|
9010
|
-
children: React
|
|
9037
|
+
children: React.ReactNode;
|
|
9011
9038
|
/**
|
|
9012
9039
|
* Additional CSS class names
|
|
9013
9040
|
*/
|
|
@@ -9023,7 +9050,7 @@ interface DsPopoverProps {
|
|
|
9023
9050
|
}
|
|
9024
9051
|
//#endregion
|
|
9025
9052
|
//#region src/components/ds-popover/ds-popover.d.ts
|
|
9026
|
-
declare const DsPopover: React
|
|
9053
|
+
declare const DsPopover: React.FC<DsPopoverProps>;
|
|
9027
9054
|
//#endregion
|
|
9028
9055
|
//#region src/components/ds-progress-arc/ds-progress-arc.types.d.ts
|
|
9029
9056
|
declare const progressArcSizes: readonly ["small", "medium"];
|
|
@@ -9140,7 +9167,7 @@ interface DsProgressLinearProps {
|
|
|
9140
9167
|
/**
|
|
9141
9168
|
* Label displayed above the progress bar (left side)
|
|
9142
9169
|
*/
|
|
9143
|
-
label?: React
|
|
9170
|
+
label?: React.ReactNode;
|
|
9144
9171
|
/**
|
|
9145
9172
|
* Whether to show the percentage value text (right side of label row)
|
|
9146
9173
|
* @default true
|
|
@@ -9151,7 +9178,7 @@ interface DsProgressLinearProps {
|
|
|
9151
9178
|
* When a string is provided, it is auto-styled with an icon and color based on the variant.
|
|
9152
9179
|
* When a ReactNode is provided, it is rendered as-is.
|
|
9153
9180
|
*/
|
|
9154
|
-
caption?: React
|
|
9181
|
+
caption?: React.ReactNode | string;
|
|
9155
9182
|
/**
|
|
9156
9183
|
* Additional CSS class names
|
|
9157
9184
|
*/
|
|
@@ -9159,11 +9186,11 @@ interface DsProgressLinearProps {
|
|
|
9159
9186
|
/**
|
|
9160
9187
|
* Additional styles to apply to the component
|
|
9161
9188
|
*/
|
|
9162
|
-
style?: React
|
|
9189
|
+
style?: React.CSSProperties;
|
|
9163
9190
|
/**
|
|
9164
9191
|
* Ref to the root element
|
|
9165
9192
|
*/
|
|
9166
|
-
ref?: React
|
|
9193
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
9167
9194
|
}
|
|
9168
9195
|
//#endregion
|
|
9169
9196
|
//#region src/components/ds-progress-linear/ds-progress-linear.d.ts
|
|
@@ -9235,7 +9262,7 @@ interface DsRadioOptionLegacy<ValueType = string> {
|
|
|
9235
9262
|
* Use compound component pattern instead
|
|
9236
9263
|
* @deprecated
|
|
9237
9264
|
*/
|
|
9238
|
-
interface DsRadioGroupLegacyProps<TOption extends DsRadioOptionLegacy = DsRadioOptionLegacy> extends React
|
|
9265
|
+
interface DsRadioGroupLegacyProps<TOption extends DsRadioOptionLegacy = DsRadioOptionLegacy> extends React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root> {
|
|
9239
9266
|
/**
|
|
9240
9267
|
* The radio group options
|
|
9241
9268
|
*/
|
|
@@ -9261,7 +9288,7 @@ interface DsRadioGroupLegacyProps<TOption extends DsRadioOptionLegacy = DsRadioO
|
|
|
9261
9288
|
/**
|
|
9262
9289
|
* Additional styles to apply to the component
|
|
9263
9290
|
*/
|
|
9264
|
-
style?: React
|
|
9291
|
+
style?: React.CSSProperties;
|
|
9265
9292
|
}
|
|
9266
9293
|
//#endregion
|
|
9267
9294
|
//#region src/components/ds-radio-group/ds-radio-group.d.ts
|
|
@@ -9270,7 +9297,7 @@ interface DsRadioGroupLegacyProps<TOption extends DsRadioOptionLegacy = DsRadioO
|
|
|
9270
9297
|
* Use compound component pattern instead: DsRadioGroup.Root + DsRadioGroup.Item
|
|
9271
9298
|
* @deprecated
|
|
9272
9299
|
*/
|
|
9273
|
-
declare const DsRadioGroupLegacy: React
|
|
9300
|
+
declare const DsRadioGroupLegacy: React.FC<DsRadioGroupLegacyProps>;
|
|
9274
9301
|
/**
|
|
9275
9302
|
* Design system RadioGroup component
|
|
9276
9303
|
*
|
|
@@ -9281,8 +9308,8 @@ declare const DsRadioGroupLegacy: React$1.FC<DsRadioGroupLegacyProps>;
|
|
|
9281
9308
|
* </DsRadioGroup.Root>
|
|
9282
9309
|
*/
|
|
9283
9310
|
declare const DsRadioGroup: {
|
|
9284
|
-
Root: React
|
|
9285
|
-
Item: React
|
|
9311
|
+
Root: React.FC<DsRadioGroupRootProps>;
|
|
9312
|
+
Item: React.FC<DsRadioGroupItemProps>;
|
|
9286
9313
|
};
|
|
9287
9314
|
//#endregion
|
|
9288
9315
|
//#region src/components/ds-segment-group/ds-segment-group.types.d.ts
|
|
@@ -9346,9 +9373,9 @@ type DsSegmentGroupItemTextProps = Pick<SegmentGroupItemTextProps, 'className' |
|
|
|
9346
9373
|
* </DsSegmentGroup.Root>
|
|
9347
9374
|
*/
|
|
9348
9375
|
declare const DsSegmentGroup: {
|
|
9349
|
-
Root: React
|
|
9350
|
-
Item: React
|
|
9351
|
-
ItemText: React
|
|
9376
|
+
Root: React.FC<DsSegmentGroupRootProps>;
|
|
9377
|
+
Item: React.FC<DsSegmentGroupItemProps>;
|
|
9378
|
+
ItemText: React.FC<DsSegmentGroupItemTextProps>;
|
|
9352
9379
|
};
|
|
9353
9380
|
//#endregion
|
|
9354
9381
|
//#region src/components/ds-typography/ds-typography.config.d.ts
|
|
@@ -9392,7 +9419,7 @@ interface DsTypographyProps {
|
|
|
9392
9419
|
/**
|
|
9393
9420
|
* Additional styles to apply to the typography component
|
|
9394
9421
|
*/
|
|
9395
|
-
style?: React
|
|
9422
|
+
style?: React.CSSProperties;
|
|
9396
9423
|
/**
|
|
9397
9424
|
* When true, renders as Slot component for composition without extra DOM nodes
|
|
9398
9425
|
*/
|
|
@@ -9400,12 +9427,12 @@ interface DsTypographyProps {
|
|
|
9400
9427
|
/**
|
|
9401
9428
|
* The content of the component
|
|
9402
9429
|
*/
|
|
9403
|
-
children: React
|
|
9430
|
+
children: React.ReactNode;
|
|
9404
9431
|
}
|
|
9405
9432
|
//#endregion
|
|
9406
9433
|
//#region src/components/ds-typography/ds-typography.d.ts
|
|
9407
|
-
declare const DsTypography: React
|
|
9408
|
-
ref?: React
|
|
9434
|
+
declare const DsTypography: React.FC<DsTypographyProps & {
|
|
9435
|
+
ref?: React.Ref<HTMLElement>;
|
|
9409
9436
|
}>;
|
|
9410
9437
|
//#endregion
|
|
9411
9438
|
//#region src/components/ds-skeleton/ds-skeleton.types.d.ts
|
|
@@ -9595,7 +9622,7 @@ interface DsSmartTabProps {
|
|
|
9595
9622
|
/**
|
|
9596
9623
|
* Additional styles to apply to the tab
|
|
9597
9624
|
*/
|
|
9598
|
-
style?: React
|
|
9625
|
+
style?: React.CSSProperties;
|
|
9599
9626
|
}
|
|
9600
9627
|
interface DsSmartTabsProps {
|
|
9601
9628
|
/**
|
|
@@ -9613,7 +9640,7 @@ interface DsSmartTabsProps {
|
|
|
9613
9640
|
/**
|
|
9614
9641
|
* Additional styles to apply to the component
|
|
9615
9642
|
*/
|
|
9616
|
-
style?: React
|
|
9643
|
+
style?: React.CSSProperties;
|
|
9617
9644
|
/**
|
|
9618
9645
|
* The tab components as children
|
|
9619
9646
|
*/
|
|
@@ -9633,7 +9660,7 @@ declare const DsSmartTabs: {
|
|
|
9633
9660
|
children,
|
|
9634
9661
|
...props
|
|
9635
9662
|
}: DsSmartTabsProps): react_jsx_runtime0.JSX.Element;
|
|
9636
|
-
Tab: React
|
|
9663
|
+
Tab: React.FC<DsSmartTabProps>;
|
|
9637
9664
|
};
|
|
9638
9665
|
//#endregion
|
|
9639
9666
|
//#region src/components/ds-spinner/ds-spinner.types.d.ts
|
|
@@ -9652,14 +9679,14 @@ interface DsSpinnerProps {
|
|
|
9652
9679
|
/**
|
|
9653
9680
|
* Additional styles to apply to the component
|
|
9654
9681
|
*/
|
|
9655
|
-
style?: React
|
|
9682
|
+
style?: React.CSSProperties;
|
|
9656
9683
|
}
|
|
9657
9684
|
//#endregion
|
|
9658
9685
|
//#region src/components/ds-spinner/ds-spinner.d.ts
|
|
9659
9686
|
/**
|
|
9660
9687
|
* Design system Spinner component
|
|
9661
9688
|
*/
|
|
9662
|
-
declare const DsSpinner: React
|
|
9689
|
+
declare const DsSpinner: React.FC<DsSpinnerProps>;
|
|
9663
9690
|
//#endregion
|
|
9664
9691
|
//#region src/components/ds-status-badge/ds-status-badge.types.d.ts
|
|
9665
9692
|
declare const dsStatuses: readonly ["active", "running", "pending", "draft", "inactive", "warning", "failed"];
|
|
@@ -9707,7 +9734,7 @@ interface DsStatusBadgeProps {
|
|
|
9707
9734
|
/**
|
|
9708
9735
|
* Design system StatusBadge component
|
|
9709
9736
|
*/
|
|
9710
|
-
declare const DsStatusBadge: React
|
|
9737
|
+
declare const DsStatusBadge: React.FC<DsStatusBadgeProps>;
|
|
9711
9738
|
//#endregion
|
|
9712
9739
|
//#region src/components/ds-stepper/ds-stepper.types.d.ts
|
|
9713
9740
|
type DsStepperVariant = 'single';
|
|
@@ -9785,7 +9812,12 @@ declare function DsStepContent({
|
|
|
9785
9812
|
}: DsStepContentProps): react_jsx_runtime0.JSX.Element;
|
|
9786
9813
|
//#endregion
|
|
9787
9814
|
//#region src/components/ds-stepper/components/ds-step-next-button.d.ts
|
|
9788
|
-
type
|
|
9815
|
+
type DsLegacyButtonProps = Extract<DsButtonUnifiedProps, {
|
|
9816
|
+
design?: undefined | 'legacy';
|
|
9817
|
+
}> & {
|
|
9818
|
+
design?: undefined | 'legacy';
|
|
9819
|
+
};
|
|
9820
|
+
type DsNextStepButtonProps = Pick<DsLegacyButtonProps, 'variant' | 'size' | 'className' | 'style' | 'children'>;
|
|
9789
9821
|
declare function DsNextStepButton({
|
|
9790
9822
|
children,
|
|
9791
9823
|
size,
|
|
@@ -9826,7 +9858,7 @@ interface DsSystemStatusProps {
|
|
|
9826
9858
|
* @deprecated This component is deprecated. Use `DsStatusBadge` instead.
|
|
9827
9859
|
* @see {@link ../ds-status-badge/ds-status-badge} for the replacement component.
|
|
9828
9860
|
*/
|
|
9829
|
-
declare const DsSystemStatus: React
|
|
9861
|
+
declare const DsSystemStatus: React.FC<DsSystemStatusProps>;
|
|
9830
9862
|
//#endregion
|
|
9831
9863
|
//#region src/components/ds-table/components/ds-table-cell/ds-table-cell.types.d.ts
|
|
9832
9864
|
/**
|
|
@@ -9879,6 +9911,10 @@ interface ScrollParams {
|
|
|
9879
9911
|
totalContentHeight: number;
|
|
9880
9912
|
/** The visible height of the table container (in pixels) */
|
|
9881
9913
|
viewportHeight: number;
|
|
9914
|
+
/** The distance from the current scroll position to the bottom of the content (in pixels) */
|
|
9915
|
+
bottomOffset: number;
|
|
9916
|
+
/** The direction of the scroll movement */
|
|
9917
|
+
scrollDirection: 'forward' | 'backward' | null;
|
|
9882
9918
|
}
|
|
9883
9919
|
//#endregion
|
|
9884
9920
|
//#region src/components/ds-table/filters/types/filter-adapter.types.d.ts
|
|
@@ -10439,7 +10475,7 @@ interface DsDataTableProps<TData, TValue> {
|
|
|
10439
10475
|
/**
|
|
10440
10476
|
* Ref to the table API
|
|
10441
10477
|
*/
|
|
10442
|
-
ref?: React
|
|
10478
|
+
ref?: React.RefObject<DsTableApi<TData> | null>;
|
|
10443
10479
|
/**
|
|
10444
10480
|
* Columns of the table
|
|
10445
10481
|
*/
|
|
@@ -10499,7 +10535,7 @@ interface DsDataTableProps<TData, TValue> {
|
|
|
10499
10535
|
/**
|
|
10500
10536
|
* Empty state of the table
|
|
10501
10537
|
*/
|
|
10502
|
-
emptyState?: React
|
|
10538
|
+
emptyState?: React.ReactNode;
|
|
10503
10539
|
/**
|
|
10504
10540
|
* Whether the table has sticky header
|
|
10505
10541
|
*/
|
|
@@ -10528,7 +10564,7 @@ interface DsDataTableProps<TData, TValue> {
|
|
|
10528
10564
|
/**
|
|
10529
10565
|
* Function to render the expanded row
|
|
10530
10566
|
*/
|
|
10531
|
-
renderExpandedRow?: (row: TData) => React
|
|
10567
|
+
renderExpandedRow?: (row: TData) => React.ReactNode;
|
|
10532
10568
|
/**
|
|
10533
10569
|
* Function to handle table creation
|
|
10534
10570
|
*/
|
|
@@ -11394,5 +11430,5 @@ declare const DsVerticalTabs: {
|
|
|
11394
11430
|
}: DsVerticalTabsContentProps) => react_jsx_runtime0.JSX.Element;
|
|
11395
11431
|
};
|
|
11396
11432
|
//#endregion
|
|
11397
|
-
export { type AcceptedFileType, Action, AlertBannerVariant, AnyAdapter, type CheckboxFilterAdapterConfig, type CheckboxFilterItem, type CheckboxFilterProps, type ChipItem, type ChipSize, Color, ColumnFilterState, CommentAuthor, CommentData, CommentIndicatorType, CommentMessage, CommentsFilterState, ControlStatus, type CustomIconComponent, type CustomIconName, DsAlertBanner, DsAlertBannerProps, DsAutocomplete, DsAutocompleteOption, DsAutocompleteProps, DsAvatar, DsAvatarGroup, DsAvatarGroupProps, DsAvatarProps, DsAvatarSize, DsAvatarType, DsBreadcrumb, DsBreadcrumbItem, DsBreadcrumbProps, DsButton, DsButtonUnifiedProps, DsCard, type DsCardBodyProps, type DsCardFooterProps, type DsCardHeaderProps, type DsCardRootProps, type DsCardSize, DsCheckbox, DsCheckboxProps, DsChip, DsChipGroup, type DsChipGroupProps, type DsChipProps, DsCommentBubble, DsCommentBubbleProps, DsCommentCard, DsCommentCardProps, DsCommentIndicator, DsCommentIndicatorProps, DsCommentThread, DsCommentThreadProps, DsCommentsDrawer, DsCommentsDrawerProps, DsConfirmation, type DsConfirmationProps, DsDataTableProps, DsDateInput, type DsDateInputProps, DsDialog, DsDialogProps, DsDivider, DsDividerProps, DsDrawer, type DsDrawerColumns, type DsDrawerPosition, type DsDrawerProps, DsDropdownMenu, DsDropdownMenuActionsProps, DsDropdownMenuContentProps, DsDropdownMenuHeaderProps, DsDropdownMenuItemGroupContentProps, DsDropdownMenuItemGroupLabelProps, DsDropdownMenuItemGroupProps, DsDropdownMenuItemIndicatorProps, DsDropdownMenuItemProps, DsDropdownMenuLegacy, DsDropdownMenuLegacyProps, DsDropdownMenuOptionLegacy, DsDropdownMenuPositioning, DsDropdownMenuRootProps, DsDropdownMenuSeparatorProps, DsDropdownMenuTriggerItemProps, DsDropdownMenuTriggerProps, DsExpandableTextInput, type DsExpandableTextInputProps, DsFileUpload, DsFileUploadProps, DsFilterStatusIcon, type DsFilterStatusIconProps, DsFormControl, DsFormControlDescriptionProps, DsFormControlProps, DsGrid, DsGridItem, DsGridItemProps, DsGridProps, DsIcon, DsIconProps, DsLoader, DsLoaderProps, DsModal, DsModalColumns, DsModalProps, DsNextStepButton, type DsNextStepButtonProps, DsNumberInput, DsNumberInputProps, DsPanel, type DsPanelCollapseButtonProps, type DsPanelProps, type DsPanelVariant, DsPasswordInput, DsPasswordInputProps, DsPopover, DsPopoverProps, DsProgressArc, DsProgressArcProps, DsProgressDonut, DsProgressDonutProps, DsProgressLinear, DsProgressLinearProps, DsRadioGroup, DsRadioGroupItemProps, DsRadioGroupLegacy, DsRadioGroupLegacyProps, DsRadioGroupRootProps, DsRadioOptionLegacy, DsSegmentGroup, DsSegmentGroupItemProps, DsSegmentGroupItemTextProps, DsSegmentGroupRootProps, DsSegmentGroupSize, DsSelect, type DsSelectOption, type DsSelectProps, _default as DsSkeleton, DsSkeletonBaseProps, DsSkeletonCircle, DsSkeletonCircleProps, DsSkeletonRect, DsSkeletonRectProps, DsSkeletonText, DsSkeletonTextProps, DsSmartTabProps, DsSmartTabs, DsSmartTabsProps, DsSpinner, DsSpinnerProps, type DsStatus, DsStatusBadge, type DsStatusBadgeProps, DsStep, DsStepContent, type DsStepContentProps, type DsStepProps, DsStepper, type DsStepperOrientation, type DsStepperProps, type DsStepperVariant, DsSystemStatus, DsSystemStatusProps, DsTable, DsTableApi, DsTableRowSize, DsTabs, DsTabsContentProps, DsTabsListProps, DsTabsMenuActionItem, DsTabsOrientation, DsTabsProps, DsTabsSize, DsTabsTabProps, DsTag, DsTagFilter, type DsTagFilterProps, type DsTagProps, DsTextInput, type DsTextInputProps, DsTextarea, DsTextareaProps, DsThreadItem, DsThreadItemProps, type DsToastContextType, type DsToastProps, DsToastProvider, type DsToastProviderProps, DsToggle, type DsToggleProps, DsTooltip, DsTooltipProps, DsTree, DsTreeBranchContentProps, DsTreeBranchControlProps, DsTreeBranchIndentGuideProps, DsTreeBranchIndicatorProps, DsTreeBranchProps, DsTreeBranchTextProps, DsTreeItemActionProps, DsTreeItemIndicatorProps, DsTreeItemProps, DsTreeItemTextProps, DsTreeNode, DsTreeNodeCheckboxProps, DsTreeRootProps, DsTreeSize, DsTreeTreeProps, DsTypography, DsTypographyProps, DsVerticalTabs, type DsVerticalTabsContentProps, type DsVerticalTabsListProps, type DsVerticalTabsRootProps, type DsVerticalTabsTabProps, type DualRangeFilterAdapterConfig, type DualRangeFilterValue, FatalFileUploadError, type FileExtension, FileUpload, type FileUploadAdapter, FileUploadError, type FileUploadOptions, type FileUploadResult, FilterAdapter, type FilterAdapterConfig, FilterNavItem, FilterState, type FilterStatus, FilterTag, IconName, IconSize, IconType, IconVariant, LoaderVariant, MaterialIconName, ProgressArcSize, ProgressArcVariant, ProgressDonutSize, ProgressDonutVariant, ProgressLinearSize, ProgressLinearVariant, type RangeFilterProps, type RangeFilterValue, type RangeValue, RetryableFileUploadError, type RowAction, type ScrollParams, type SecondaryRowAction, type SelectSize, SemanticVariant, SkeletonColorVariant, SkeletonRadiusVariant, SpinnerSize, type StatusBadgeSize, SystemStatus, type TagFilterItem, type TagSize, type TagVariant, type TextInputSize, type ToastVariant, type ToggleSize, type UseFileUploadReturn, type UseTableFiltersOptions, type UseTableFiltersResult, alertBannerVariants, cardSizes, colors, controlStatuses, createCheckboxFilterAdapter, createDsTreeCollection, createDualRangeFilterAdapter, createFilterAdapter, customIcons, dsTreeSizes, filterStatuses, iconSizes, iconVariants, isCustomIcon, loaderVariants, progressArcSizes, progressArcVariants, progressDonutSizes, progressDonutVariants, progressLinearSizes, progressLinearVariants, skeletonColorVariants, skeletonRadiusVariants, spinnerSizes, systemStatuses, tagSizes, tagVariants, textInputSizes, useFileUpload, useTableFilters, useToaster };
|
|
11433
|
+
export { type AcceptedFileType, Action, AlertBannerVariant, AnyAdapter, type CheckboxFilterAdapterConfig, type CheckboxFilterItem, type CheckboxFilterProps, CheckboxVariant, type ChipItem, type ChipSize, Color, ColumnFilterState, CommentAuthor, CommentData, CommentIndicatorType, CommentMessage, CommentsFilterState, ControlStatus, type CustomIconComponent, type CustomIconName, DsAlertBanner, DsAlertBannerProps, DsAutocomplete, DsAutocompleteOption, DsAutocompleteProps, DsAvatar, DsAvatarGroup, DsAvatarGroupProps, DsAvatarProps, DsAvatarSize, DsAvatarType, DsBreadcrumb, DsBreadcrumbItem, DsBreadcrumbProps, DsButton, DsButtonUnifiedProps, DsCard, type DsCardBodyProps, type DsCardFooterProps, type DsCardHeaderProps, type DsCardRootProps, type DsCardSize, DsCheckbox, DsCheckboxProps, DsChip, DsChipGroup, type DsChipGroupProps, type DsChipProps, DsCommentBubble, DsCommentBubbleProps, DsCommentCard, DsCommentCardProps, DsCommentIndicator, DsCommentIndicatorProps, DsCommentThread, DsCommentThreadProps, DsCommentsDrawer, DsCommentsDrawerProps, DsConfirmation, type DsConfirmationProps, DsDataTableProps, DsDateInput, type DsDateInputProps, DsDialog, DsDialogProps, DsDivider, DsDividerProps, DsDrawer, type DsDrawerColumns, type DsDrawerPosition, type DsDrawerProps, DsDropdownMenu, DsDropdownMenuActionsProps, DsDropdownMenuContentProps, DsDropdownMenuHeaderProps, DsDropdownMenuItemGroupContentProps, DsDropdownMenuItemGroupLabelProps, DsDropdownMenuItemGroupProps, DsDropdownMenuItemIndicatorProps, DsDropdownMenuItemProps, DsDropdownMenuLegacy, DsDropdownMenuLegacyProps, DsDropdownMenuOptionLegacy, DsDropdownMenuPositioning, DsDropdownMenuRootProps, DsDropdownMenuSeparatorProps, DsDropdownMenuTriggerItemProps, DsDropdownMenuTriggerProps, DsExpandableTextInput, type DsExpandableTextInputProps, DsFileUpload, DsFileUploadProps, DsFilterStatusIcon, type DsFilterStatusIconProps, DsFormControl, DsFormControlDescriptionProps, DsFormControlProps, DsGrid, DsGridItem, DsGridItemProps, DsGridProps, DsIcon, DsIconProps, DsLoader, DsLoaderProps, DsModal, DsModalColumns, DsModalProps, DsNextStepButton, type DsNextStepButtonProps, DsNumberInput, DsNumberInputProps, DsPanel, type DsPanelCollapseButtonProps, type DsPanelProps, type DsPanelVariant, DsPasswordInput, DsPasswordInputProps, DsPopover, DsPopoverProps, DsProgressArc, DsProgressArcProps, DsProgressDonut, DsProgressDonutProps, DsProgressLinear, DsProgressLinearProps, DsRadioGroup, DsRadioGroupItemProps, DsRadioGroupLegacy, DsRadioGroupLegacyProps, DsRadioGroupRootProps, DsRadioOptionLegacy, DsSegmentGroup, DsSegmentGroupItemProps, DsSegmentGroupItemTextProps, DsSegmentGroupRootProps, DsSegmentGroupSize, DsSelect, type DsSelectOption, type DsSelectProps, _default as DsSkeleton, DsSkeletonBaseProps, DsSkeletonCircle, DsSkeletonCircleProps, DsSkeletonRect, DsSkeletonRectProps, DsSkeletonText, DsSkeletonTextProps, DsSmartTabProps, DsSmartTabs, DsSmartTabsProps, DsSpinner, DsSpinnerProps, type DsStatus, DsStatusBadge, type DsStatusBadgeProps, DsStep, DsStepContent, type DsStepContentProps, type DsStepProps, DsStepper, type DsStepperOrientation, type DsStepperProps, type DsStepperVariant, DsSystemStatus, DsSystemStatusProps, DsTable, DsTableApi, DsTableRowSize, DsTabs, DsTabsContentProps, DsTabsListProps, DsTabsMenuActionItem, DsTabsOrientation, DsTabsProps, DsTabsSize, DsTabsTabProps, DsTag, DsTagFilter, type DsTagFilterProps, type DsTagProps, DsTextInput, type DsTextInputProps, DsTextarea, DsTextareaProps, DsThreadItem, DsThreadItemProps, type DsToastContextType, type DsToastProps, DsToastProvider, type DsToastProviderProps, DsToggle, type DsToggleProps, DsTooltip, DsTooltipProps, DsTree, DsTreeBranchContentProps, DsTreeBranchControlProps, DsTreeBranchIndentGuideProps, DsTreeBranchIndicatorProps, DsTreeBranchProps, DsTreeBranchTextProps, DsTreeItemActionProps, DsTreeItemIndicatorProps, DsTreeItemProps, DsTreeItemTextProps, DsTreeNode, DsTreeNodeCheckboxProps, DsTreeRootProps, DsTreeSize, DsTreeTreeProps, DsTypography, DsTypographyProps, DsVerticalTabs, type DsVerticalTabsContentProps, type DsVerticalTabsListProps, type DsVerticalTabsRootProps, type DsVerticalTabsTabProps, type DualRangeFilterAdapterConfig, type DualRangeFilterValue, FatalFileUploadError, type FileExtension, FileUpload, type FileUploadAdapter, FileUploadError, type FileUploadOptions, type FileUploadResult, FilterAdapter, type FilterAdapterConfig, FilterNavItem, FilterState, type FilterStatus, FilterTag, IconName, IconSize, IconType, IconVariant, LoaderVariant, MaterialIconName, ProgressArcSize, ProgressArcVariant, ProgressDonutSize, ProgressDonutVariant, ProgressLinearSize, ProgressLinearVariant, type RangeFilterProps, type RangeFilterValue, type RangeValue, RetryableFileUploadError, type RowAction, type ScrollParams, type SecondaryRowAction, type SelectSize, SemanticVariant, SkeletonColorVariant, SkeletonRadiusVariant, SpinnerSize, type StatusBadgeSize, SystemStatus, type TagFilterItem, type TagSize, type TagVariant, type TextInputSize, type ToastVariant, type ToggleSize, type UseFileUploadReturn, type UseTableFiltersOptions, type UseTableFiltersResult, alertBannerVariants, cardSizes, checkboxVariants, colors, controlStatuses, createCheckboxFilterAdapter, createDsTreeCollection, createDualRangeFilterAdapter, createFilterAdapter, customIcons, dsTreeSizes, filterStatuses, iconSizes, iconVariants, isCustomIcon, loaderVariants, progressArcSizes, progressArcVariants, progressDonutSizes, progressDonutVariants, progressLinearSizes, progressLinearVariants, skeletonColorVariants, skeletonRadiusVariants, spinnerSizes, systemStatuses, tagSizes, tagVariants, textInputSizes, useFileUpload, useTableFilters, useToaster };
|
|
11398
11434
|
//# sourceMappingURL=index.d.ts.map
|