@dynamic-framework/ui-react 1.36.2 → 2.0.0-dev.10
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/css/dynamic-ui-non-root.css +7051 -3728
- package/dist/css/dynamic-ui-non-root.min.css +3 -3
- package/dist/css/dynamic-ui-root.css +339 -161
- package/dist/css/dynamic-ui-root.min.css +3 -3
- package/dist/css/dynamic-ui.css +7392 -3891
- package/dist/css/dynamic-ui.min.css +3 -3
- package/dist/index.esm.js +643 -410
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +687 -437
- package/dist/index.js.map +1 -1
- package/dist/js/bootstrap.bundle.js +3 -6
- package/dist/js/bootstrap.bundle.min.js +2 -2
- package/dist/js/bootstrap.esm.js +3 -6
- package/dist/js/bootstrap.esm.min.js +2 -2
- package/dist/js/bootstrap.js +3 -6
- package/dist/js/bootstrap.min.js +2 -2
- package/dist/types/components/DAlert/DAlert.d.ts +3 -3
- package/dist/types/components/DAvatar/DAvatar.d.ts +1 -3
- package/dist/types/components/DBadge/DBadge.d.ts +4 -3
- package/dist/types/components/DBox/DBox.d.ts +5 -0
- package/dist/types/components/DBox/index.d.ts +2 -0
- package/dist/types/components/DBoxFile/DBoxFile.d.ts +1 -1
- package/dist/types/components/DBoxFile/useDBoxFile.d.ts +2 -2
- package/dist/types/components/DButton/DButton.d.ts +8 -17
- package/dist/types/components/DButtonIcon/DButtonIcon.d.ts +3 -3
- package/dist/types/components/DCarousel/components/DCarouselSlide.d.ts +3 -1
- package/dist/types/components/DChip/DChip.d.ts +3 -3
- package/dist/types/components/DCollapse/DCollapse.d.ts +2 -2
- package/dist/types/components/DCreditCard/DCreditCard.d.ts +12 -0
- package/dist/types/components/DCreditCard/index.d.ts +2 -0
- package/dist/types/components/DDatePicker/DDatePicker.d.ts +3 -3
- package/dist/types/components/DDatePicker/components/DDatePickerHeaderSelector.d.ts +2 -4
- package/dist/types/components/DDropdown/DDropdown.d.ts +20 -0
- package/dist/types/components/DDropdown/index.d.ts +2 -0
- package/dist/types/components/DIconBase/DIconBase.d.ts +13 -9
- package/dist/types/components/DInput/DInput.d.ts +3 -2
- package/dist/types/components/DInputCheck/DInputCheck.d.ts +2 -1
- package/dist/types/components/DInputCounter/DInputCounter.d.ts +3 -2
- package/dist/types/components/DInputCurrency/DInputCurrency.d.ts +4 -3
- package/dist/types/components/DInputMask/DInputMask.d.ts +7 -17
- package/dist/types/components/DInputPhone/DInputPhone.d.ts +2 -2
- package/dist/types/components/DInputPin/DInputPin.d.ts +3 -3
- package/dist/types/components/DInputRange/DInputRange.d.ts +2 -2
- package/dist/types/components/DInputSelect/DInputSelect.d.ts +3 -3
- package/dist/types/components/DInputSwitch/DInputSwitch.d.ts +2 -1
- package/dist/types/components/DLayout/DLayout.d.ts +22 -0
- package/dist/types/components/DLayout/components/DLayoutPane.d.ts +13 -0
- package/dist/types/components/DLayout/index.d.ts +3 -0
- package/dist/types/components/DListGroup/components/DListGroupItem.d.ts +4 -4
- package/dist/types/components/DModal/DModal.d.ts +3 -1
- package/dist/types/components/DOffcanvas/DOffcanvas.d.ts +3 -1
- package/dist/types/components/DOtp/DOtp.d.ts +16 -0
- package/dist/types/components/DOtp/DOtpspec.d.ts +0 -0
- package/dist/types/components/DOtp/components/OtpCountdown.d.ts +7 -0
- package/dist/types/components/DOtp/hooks/useCountdown.d.ts +4 -0
- package/dist/types/components/DOtp/index.d.ts +2 -0
- package/dist/types/components/DPaginator/DPaginator.d.ts +2 -27
- package/dist/types/components/DPasswordStrengthMeter/DPasswordStrengthMeter.d.ts +23 -0
- package/dist/types/components/DPasswordStrengthMeter/PasswordCheckItem.d.ts +7 -0
- package/dist/types/components/DPasswordStrengthMeter/PasswordCheckList.d.ts +14 -0
- package/dist/types/components/DPasswordStrengthMeter/PasswordStrength.d.ts +6 -0
- package/dist/types/components/DPasswordStrengthMeter/index.d.ts +3 -0
- package/dist/types/components/DPopover/DPopover.d.ts +1 -1
- package/dist/types/components/DProgress/DProgress.d.ts +2 -1
- package/dist/types/components/DSelect/DSelect.d.ts +3 -3
- package/dist/types/components/DTabs/DTabs.d.ts +2 -2
- package/dist/types/components/DTimeline/DTimeline.d.ts +15 -0
- package/dist/types/components/DTimeline/index.d.ts +2 -0
- package/dist/types/components/DToastContainer/useDToast.d.ts +2 -2
- package/dist/types/components/DTooltip/DTooltip.d.ts +1 -2
- package/dist/types/components/DVoucher/DVoucher.d.ts +14 -0
- package/dist/types/components/DVoucher/hooks/useScreenshot.d.ts +5 -0
- package/dist/types/components/DVoucher/hooks/useScreenshotDownload.d.ts +5 -0
- package/dist/types/components/DVoucher/hooks/useScreenshotWebShare.d.ts +5 -0
- package/dist/types/components/DVoucher/index.d.ts +2 -0
- package/dist/types/components/config.d.ts +0 -2
- package/dist/types/components/index.d.ts +8 -9
- package/dist/types/components/interface.d.ts +3 -8
- package/dist/types/contexts/DContext.d.ts +0 -2
- package/dist/types/hooks/tests/useDisableBodyScrollEffect.spec.d.ts +1 -0
- package/dist/types/hooks/tests/useDisableInputWheel.spec.d.ts +1 -0
- package/dist/types/hooks/tests/useFormatCurrency.spec.d.ts +1 -0
- package/dist/types/hooks/tests/useInputCurrency.spec.d.ts +1 -0
- package/dist/types/hooks/tests/useItemSelection.spec.d.ts +1 -0
- package/dist/types/hooks/tests/useMediaBreakpointUp.spec.d.ts +1 -0
- package/dist/types/hooks/tests/useMediaQuery.spec.d.ts +1 -0
- package/dist/types/hooks/tests/usePortal.spec.d.ts +1 -0
- package/dist/types/hooks/tests/useProvidedRefOrCreate.spec.d.ts +1 -0
- package/dist/types/hooks/tests/useStackState.spec.d.ts +1 -0
- package/dist/types/hooks/useInputCurrency.d.ts +1 -1
- package/dist/types/hooks/useProvidedRefOrCreate.d.ts +1 -1
- package/dist/types/hooks/useResponsiveProp.d.ts +35 -0
- package/dist/types/types/polymorphic.d.ts +3 -3
- package/dist/types/utils/tests/attr-accept.spec.d.ts +1 -0
- package/dist/types/utils/tests/changeQueryString.spec.d.ts +1 -0
- package/dist/types/utils/tests/configureI18n.spec.d.ts +1 -0
- package/dist/types/utils/tests/formatCurrency.spec.d.ts +1 -0
- package/dist/types/utils/tests/getCssVariable.spec.d.ts +1 -0
- package/dist/types/utils/tests/getKeyboardFocusableElements.spec.d.ts +1 -0
- package/dist/types/utils/tests/getQueryString.spec.d.ts +1 -0
- package/dist/types/utils/tests/mediaQuery.spec.d.ts +1 -0
- package/dist/types/utils/tests/validatePhoneNumber.spec.d.ts +1 -0
- package/jest/setup.js +93 -2
- package/package.json +57 -57
- package/src/style/_shame.scss +42 -1
- package/src/style/abstracts/_mixins.scss +35 -23
- package/src/style/abstracts/_utilities.scss +70 -1
- package/src/style/abstracts/variables/_+import.scss +3 -2
- package/src/style/abstracts/variables/_alerts.scss +2 -0
- package/src/style/abstracts/variables/_body.scss +10 -3
- package/src/style/abstracts/variables/_border.scss +5 -5
- package/src/style/abstracts/variables/_buttons.scss +19 -11
- package/src/style/abstracts/variables/_cards.scss +6 -4
- package/src/style/abstracts/variables/_chips.scss +2 -2
- package/src/style/abstracts/variables/_colors.scss +147 -70
- package/src/style/abstracts/variables/_datepicker.scss +10 -9
- package/src/style/abstracts/variables/_dropdowns.scss +6 -4
- package/src/style/abstracts/variables/_forms.scss +4 -4
- package/src/style/abstracts/variables/_list-group.scss +2 -2
- package/src/style/abstracts/variables/_modals.scss +4 -3
- package/src/style/abstracts/variables/_offcanvas.scss +1 -0
- package/src/style/abstracts/variables/_pagination.scss +4 -4
- package/src/style/abstracts/variables/_shadow.scss +1 -0
- package/src/style/abstracts/variables/_tables.scss +8 -3
- package/src/style/abstracts/variables/_tooltip.scss +1 -1
- package/src/style/abstracts/variables/_typography.scss +7 -7
- package/src/style/base/_+import.scss +1 -0
- package/src/style/base/_alert.scss +1 -27
- package/src/style/base/_badge.scss +50 -12
- package/src/style/base/_buttons.scss +33 -30
- package/src/style/base/_dropdown.scss +18 -0
- package/src/style/base/_input-group.scss +5 -0
- package/src/style/base/_label.scss +0 -4
- package/src/style/base/_list-group.scss +6 -0
- package/src/style/base/_pagination.scss +2 -0
- package/src/style/base/_tables.scss +4 -0
- package/src/style/base/_tooltip.scss +1 -10
- package/src/style/components/_+import.scss +5 -4
- package/src/style/components/_d-avatar.scss +2 -20
- package/src/style/components/_d-box-file.scss +1 -1
- package/src/style/components/_d-box.scss +13 -0
- package/src/style/components/_d-carousel.scss +19 -1
- package/src/style/components/_d-credit-card.scss +67 -0
- package/src/style/components/_d-datepicker.scss +83 -26
- package/src/style/components/_d-icon.scss +10 -3
- package/src/style/components/_d-modal.scss +3 -0
- package/src/style/components/_d-stepper-desktop.scss +61 -65
- package/src/style/components/_d-stepper-mobile.scss +2 -2
- package/src/style/components/_d-tabs.scss +37 -0
- package/src/style/components/_d-timeline.scss +108 -0
- package/src/style/components/_d-voucher.scss +29 -0
- package/src/style/helpers/_color-bg.scss +13 -3
- package/src/style/root/_root.scss +109 -86
- package/dist/css/bootstrap-icons.css +0 -2106
- package/dist/css/bootstrap-icons.json +0 -2080
- package/dist/css/bootstrap-icons.min.css +0 -5
- package/dist/css/bootstrap-icons.scss +0 -2118
- package/dist/css/fonts/bootstrap-icons.woff +0 -0
- package/dist/css/fonts/bootstrap-icons.woff2 +0 -0
- package/dist/types/components/DInputCurrencyBase/DInputCurrencyBase.d.ts +0 -26
- package/dist/types/components/DInputCurrencyBase/index.d.ts +0 -2
- package/dist/types/components/DInputSearch/DInputSearch.d.ts +0 -17
- package/dist/types/components/DInputSearch/index.d.ts +0 -2
- package/dist/types/components/DList/DList.d.ts +0 -17
- package/dist/types/components/DList/components/DListItem.d.ts +0 -13
- package/dist/types/components/DList/index.d.ts +0 -3
- package/dist/types/components/DQuickActionButton/DQuickActionButton.d.ts +0 -20
- package/dist/types/components/DQuickActionButton/index.d.ts +0 -2
- package/dist/types/components/DQuickActionCheck/DQuickActionCheck.d.ts +0 -17
- package/dist/types/components/DQuickActionCheck/index.d.ts +0 -2
- package/dist/types/components/DQuickActionSelect/DQuickActionSelect.d.ts +0 -13
- package/dist/types/components/DQuickActionSelect/index.d.ts +0 -2
- package/dist/types/components/DQuickActionSwitch/DQuickActionSwitch.d.ts +0 -15
- package/dist/types/components/DQuickActionSwitch/index.d.ts +0 -2
- package/dist/types/components/DSkeleton/DSkeleton.d.ts +0 -11
- package/dist/types/components/DSkeleton/index.d.ts +0 -2
- package/dist/types/components/DTableHead/DTableHead.d.ts +0 -9
- package/dist/types/components/DTableHead/index.d.ts +0 -2
- package/src/style/components/_d-quick-action-button.scss +0 -121
- package/src/style/components/_d-quick-action-check.scss +0 -74
- package/src/style/components/_d-quick-action-select.scss +0 -58
- package/src/style/components/_d-quick-action-switch.scss +0 -64
|
@@ -1,17 +1,21 @@
|
|
|
1
|
-
import type { BaseProps } from '../interface';
|
|
1
|
+
import type { BaseProps, ComponentColor } from '../interface';
|
|
2
|
+
import { ResponsiveProp } from '../../hooks/useResponsiveProp';
|
|
2
3
|
type Props = BaseProps & {
|
|
3
4
|
icon: string;
|
|
4
|
-
|
|
5
|
-
size?: string;
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
color?: ComponentColor;
|
|
6
|
+
size?: string | ResponsiveProp;
|
|
7
|
+
/**
|
|
8
|
+
* Enables real-time breakpoint listeners for responsive size changes.
|
|
9
|
+
* When set to true, the component will listen for size changes and update responsively.
|
|
10
|
+
* Note: Enabling this feature may have performance implications, especially
|
|
11
|
+
* in complex or frequently updated components.
|
|
12
|
+
*/
|
|
13
|
+
useListenerSize?: boolean;
|
|
8
14
|
hasCircle?: boolean;
|
|
9
|
-
circleSize?: string;
|
|
10
|
-
color?: string;
|
|
11
|
-
backgroundColor?: string;
|
|
12
15
|
materialStyle?: boolean;
|
|
13
16
|
familyClass?: string;
|
|
14
17
|
familyPrefix?: string;
|
|
18
|
+
strokeWidth?: number;
|
|
15
19
|
};
|
|
16
|
-
export default function DIconBase({ icon,
|
|
20
|
+
export default function DIconBase({ icon, color, style, className, size, useListenerSize, hasCircle, materialStyle, familyClass, familyPrefix, strokeWidth, dataAttributes, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
17
21
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
|
-
import type { BaseProps, ComponentSize, EndIconProps, FamilyIconProps,
|
|
3
|
-
declare const ForwardedDInput: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "value" | "onChange">, "
|
|
2
|
+
import type { BaseProps, ComponentSize, EndIconProps, FamilyIconProps, StartIconProps } from '../interface';
|
|
3
|
+
declare const ForwardedDInput: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "value" | "onChange">, "label" | "invalid" | "value" | "onChange" | "size" | keyof BaseProps | keyof FamilyIconProps | keyof StartIconProps | keyof EndIconProps | "loading" | "hint" | "valid" | "floatingLabel" | "inputStart" | "inputEnd" | "readonly" | "onIconStartClick" | "onIconEndClick"> & BaseProps & FamilyIconProps & StartIconProps & EndIconProps & {
|
|
4
4
|
value?: string | undefined;
|
|
5
5
|
label?: string | undefined;
|
|
6
6
|
loading?: boolean | undefined;
|
|
@@ -11,6 +11,7 @@ declare const ForwardedDInput: import("react").ForwardRefExoticComponent<Omit<Om
|
|
|
11
11
|
floatingLabel?: boolean | undefined;
|
|
12
12
|
inputStart?: ReactNode;
|
|
13
13
|
inputEnd?: ReactNode;
|
|
14
|
+
readonly?: boolean | undefined;
|
|
14
15
|
onChange?: ((value: string) => void) | undefined;
|
|
15
16
|
onIconStartClick?: ((value?: string) => void) | undefined;
|
|
16
17
|
onIconEndClick?: ((value?: string) => void) | undefined;
|
|
@@ -7,6 +7,7 @@ type Props = ComponentPropsWithoutRef<'input'> & BaseProps & {
|
|
|
7
7
|
label?: string;
|
|
8
8
|
ariaLabel?: string;
|
|
9
9
|
checked?: boolean;
|
|
10
|
+
inputClassName?: string;
|
|
10
11
|
disabled?: boolean;
|
|
11
12
|
invalid?: boolean;
|
|
12
13
|
valid?: boolean;
|
|
@@ -15,5 +16,5 @@ type Props = ComponentPropsWithoutRef<'input'> & BaseProps & {
|
|
|
15
16
|
value?: string;
|
|
16
17
|
onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
17
18
|
};
|
|
18
|
-
export default function DInputCheck({ id: idProp, type, name, label, ariaLabel, checked, disabled, invalid, valid, indeterminate, value, hint, onChange, className, style, dataAttributes, ...props }: Props): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export default function DInputCheck({ id: idProp, type, name, label, ariaLabel, checked, disabled, invalid, valid, indeterminate, inputClassName, value, hint, onChange, className, style, dataAttributes, ...props }: Props): import("react/jsx-runtime").JSX.Element;
|
|
19
20
|
export {};
|
|
@@ -5,7 +5,7 @@ type NonDInputProps = {
|
|
|
5
5
|
maxValue: number;
|
|
6
6
|
onChange?: (value?: number) => void;
|
|
7
7
|
};
|
|
8
|
-
declare const ForwardedDInputCounter: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<Omit<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "value" | "onChange">, "
|
|
8
|
+
declare const ForwardedDInputCounter: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<Omit<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "value" | "onChange">, "label" | "invalid" | "value" | "onChange" | "size" | keyof import("../interface").BaseProps | keyof import("../interface").FamilyIconProps | keyof import("../interface").StartIconProps | keyof import("../interface").EndIconProps | "loading" | "hint" | "valid" | "floatingLabel" | "inputStart" | "inputEnd" | "readonly" | "onIconStartClick" | "onIconEndClick"> & import("../interface").BaseProps & import("../interface").FamilyIconProps & import("../interface").StartIconProps & import("../interface").EndIconProps & {
|
|
9
9
|
value?: string | undefined;
|
|
10
10
|
label?: string | undefined;
|
|
11
11
|
loading?: boolean | undefined;
|
|
@@ -16,8 +16,9 @@ declare const ForwardedDInputCounter: import("react").ForwardRefExoticComponent<
|
|
|
16
16
|
floatingLabel?: boolean | undefined;
|
|
17
17
|
inputStart?: import("react").ReactNode;
|
|
18
18
|
inputEnd?: import("react").ReactNode;
|
|
19
|
+
readonly?: boolean | undefined;
|
|
19
20
|
onChange?: ((value: string) => void) | undefined;
|
|
20
21
|
onIconStartClick?: ((value?: string | undefined) => void) | undefined;
|
|
21
22
|
onIconEndClick?: ((value?: string | undefined) => void) | undefined;
|
|
22
|
-
} & import("react").RefAttributes<HTMLInputElement>, "ref">, "value" | "
|
|
23
|
+
} & import("react").RefAttributes<HTMLInputElement>, "ref">, "value" | "onChange" | "type" | "validIcon" | "invalidIcon">, keyof NonDInputProps> & NonDInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
23
24
|
export default ForwardedDInputCounter;
|
|
@@ -6,7 +6,7 @@ type NonDInputProps = {
|
|
|
6
6
|
currencyCode?: string;
|
|
7
7
|
onChange?: (value?: number) => void;
|
|
8
8
|
};
|
|
9
|
-
declare const
|
|
9
|
+
declare const ForwardedDInputCurrency: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<Omit<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "value" | "onChange">, "label" | "invalid" | "value" | "onChange" | "size" | keyof import("../interface").BaseProps | keyof import("../interface").FamilyIconProps | keyof import("../interface").StartIconProps | keyof import("../interface").EndIconProps | "loading" | "hint" | "valid" | "floatingLabel" | "inputStart" | "inputEnd" | "readonly" | "onIconStartClick" | "onIconEndClick"> & import("../interface").BaseProps & import("../interface").FamilyIconProps & import("../interface").StartIconProps & import("../interface").EndIconProps & {
|
|
10
10
|
value?: string | undefined;
|
|
11
11
|
label?: string | undefined;
|
|
12
12
|
loading?: boolean | undefined;
|
|
@@ -17,8 +17,9 @@ declare const ForwardedDInputCurrencyBase: import("react").ForwardRefExoticCompo
|
|
|
17
17
|
floatingLabel?: boolean | undefined;
|
|
18
18
|
inputStart?: import("react").ReactNode;
|
|
19
19
|
inputEnd?: import("react").ReactNode;
|
|
20
|
+
readonly?: boolean | undefined;
|
|
20
21
|
onChange?: ((value: string) => void) | undefined;
|
|
21
22
|
onIconStartClick?: ((value?: string | undefined) => void) | undefined;
|
|
22
23
|
onIconEndClick?: ((value?: string | undefined) => void) | undefined;
|
|
23
|
-
} & import("react").RefAttributes<HTMLInputElement>, "ref">, "value" | "
|
|
24
|
-
export default
|
|
24
|
+
} & import("react").RefAttributes<HTMLInputElement>, "ref">, "value" | "onChange" | "type">, keyof NonDInputProps> & NonDInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
25
|
+
export default ForwardedDInputCurrency;
|
|
@@ -1,18 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
import type {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
size?: import("../interface").ComponentSize | undefined;
|
|
9
|
-
invalid?: boolean | undefined;
|
|
10
|
-
valid?: boolean | undefined;
|
|
11
|
-
floatingLabel?: boolean | undefined;
|
|
12
|
-
inputStart?: import("react").ReactNode;
|
|
13
|
-
inputEnd?: import("react").ReactNode;
|
|
14
|
-
onChange?: ((value: string) => void) | undefined;
|
|
15
|
-
onIconStartClick?: ((value?: string | undefined) => void) | undefined;
|
|
16
|
-
onIconEndClick?: ((value?: string | undefined) => void) | undefined;
|
|
17
|
-
} & import("react").RefAttributes<HTMLInputElement>, "ref">, keyof MaskProps> & MaskProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
1
|
+
import { type InputMaskProps } from '@react-input/mask';
|
|
2
|
+
import type { ComponentPropsWithoutRef } from 'react';
|
|
3
|
+
import DInput from '../DInput';
|
|
4
|
+
import type { Merge } from '../../types';
|
|
5
|
+
type NonDInputProps = InputMaskProps<typeof DInput>;
|
|
6
|
+
type Props = Merge<ComponentPropsWithoutRef<typeof DInput>, NonDInputProps>;
|
|
7
|
+
declare const ForwardedDInputMask: import("react").ForwardRefExoticComponent<Omit<Props, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
18
8
|
export default ForwardedDInputMask;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
2
|
import { CountryIso2, CountrySelectorProps, ParsedCountry } from 'react-international-phone';
|
|
3
|
-
import type { BaseProps, ComponentSize, EndIconProps, FamilyIconProps
|
|
3
|
+
import type { BaseProps, ComponentSize, EndIconProps, FamilyIconProps } from '../interface';
|
|
4
4
|
type OnChangeType = {
|
|
5
5
|
phone: string;
|
|
6
6
|
inputValue: string;
|
|
7
7
|
country: ParsedCountry;
|
|
8
8
|
isValid: boolean;
|
|
9
9
|
};
|
|
10
|
-
declare const ForwardedDInputPhone: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "pattern" | "value" | "
|
|
10
|
+
declare const ForwardedDInputPhone: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "pattern" | "value" | "inputMode" | "onChange" | "onWheel" | "type">, "label" | "invalid" | "value" | "onChange" | "size" | keyof BaseProps | keyof FamilyIconProps | keyof EndIconProps | "loading" | "hint" | "valid" | "floatingLabel" | "inputEnd" | "onIconEndClick" | "countrySelectorProps" | "filteredCountries" | "defaultCountry"> & BaseProps & FamilyIconProps & EndIconProps & {
|
|
11
11
|
value?: string | undefined;
|
|
12
12
|
label?: string | undefined;
|
|
13
13
|
loading?: boolean | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { BaseProps, FamilyIconProps,
|
|
2
|
-
type Props = BaseProps &
|
|
1
|
+
import type { BaseProps, FamilyIconProps, PinInputMode, PinInputType } from '../interface';
|
|
2
|
+
type Props = BaseProps & FamilyIconProps & {
|
|
3
3
|
id?: string;
|
|
4
4
|
label?: string;
|
|
5
5
|
placeholder?: string;
|
|
@@ -15,5 +15,5 @@ type Props = BaseProps & LabelIconProps & FamilyIconProps & {
|
|
|
15
15
|
valid?: boolean;
|
|
16
16
|
onChange?: (value: string) => void;
|
|
17
17
|
};
|
|
18
|
-
export default function DInputPin({ id: idProp, label,
|
|
18
|
+
export default function DInputPin({ id: idProp, label, placeholder, type, disabled, loading, secret, characters, innerInputMode, hint, invalid, valid, className, style, dataAttributes, onChange, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
19
19
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { BaseProps
|
|
3
|
-
declare const ForwardedDInputRange: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "type">, "label" | keyof BaseProps |
|
|
2
|
+
import type { BaseProps } from '../interface';
|
|
3
|
+
declare const ForwardedDInputRange: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "type">, "label" | keyof BaseProps | "ariaLabel" | "filledValue"> & BaseProps & {
|
|
4
4
|
label?: string | undefined;
|
|
5
5
|
ariaLabel?: string | undefined;
|
|
6
6
|
filledValue?: boolean | undefined;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { FocusEvent, MouseEvent } from 'react';
|
|
2
|
-
import type { BaseProps, ComponentSize, EndIconProps, FamilyIconProps,
|
|
2
|
+
import type { BaseProps, ComponentSize, EndIconProps, FamilyIconProps, StartIconProps } from '../interface';
|
|
3
3
|
export type DefaultOption = {
|
|
4
4
|
value: string | number;
|
|
5
5
|
label: string;
|
|
6
6
|
};
|
|
7
|
-
export type Props<T> = BaseProps & FamilyIconProps &
|
|
7
|
+
export type Props<T> = BaseProps & FamilyIconProps & StartIconProps & EndIconProps & {
|
|
8
8
|
id?: string;
|
|
9
9
|
name?: string;
|
|
10
10
|
label?: string;
|
|
@@ -24,4 +24,4 @@ export type Props<T> = BaseProps & FamilyIconProps & LabelIconProps & StartIconP
|
|
|
24
24
|
valueExtractor?: (item: T) => string | number;
|
|
25
25
|
labelExtractor?: (item: T) => string;
|
|
26
26
|
};
|
|
27
|
-
export default function DInputSelect<T extends object = DefaultOption>({ id: idProp, name, label, className, style, options,
|
|
27
|
+
export default function DInputSelect<T extends object = DefaultOption>({ id: idProp, name, label, className, style, options, disabled, loading, iconStart, iconStartFamilyClass, iconStartFamilyPrefix, iconStartAriaLabel, iconEnd, iconEndFamilyClass, iconEndFamilyPrefix, iconEndAriaLabel, hint, value, size, floatingLabel, invalid, valid, dataAttributes, valueExtractor, labelExtractor, onChange, onBlur, onIconStartClick, onIconEndClick, }: Props<T>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -6,10 +6,11 @@ type Props = BaseProps & {
|
|
|
6
6
|
name?: string;
|
|
7
7
|
checked?: boolean;
|
|
8
8
|
disabled?: boolean;
|
|
9
|
+
inputClassName?: string;
|
|
9
10
|
invalid?: boolean;
|
|
10
11
|
valid?: boolean;
|
|
11
12
|
readonly?: boolean;
|
|
12
13
|
onChange?: (isChecked: boolean) => void;
|
|
13
14
|
};
|
|
14
|
-
export default function DInputSwitch({ id: idProp, label, ariaLabel, name, checked, disabled, invalid, valid, readonly, className, style, dataAttributes, onChange, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export default function DInputSwitch({ id: idProp, label, ariaLabel, name, checked, disabled, invalid, valid, readonly, className, style, dataAttributes, inputClassName, onChange, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
15
16
|
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { PropsWithChildren } from 'react';
|
|
2
|
+
import DLayoutPane from './components/DLayoutPane';
|
|
3
|
+
import type { BaseProps } from '../interface';
|
|
4
|
+
/**
|
|
5
|
+
* Define the spacing (gap) on a scale from 0 to 30.
|
|
6
|
+
* @type {number}
|
|
7
|
+
*/
|
|
8
|
+
type Gap = number;
|
|
9
|
+
type Props = PropsWithChildren<BaseProps & {
|
|
10
|
+
gap?: Gap;
|
|
11
|
+
gapSm?: Gap;
|
|
12
|
+
gapMd?: Gap;
|
|
13
|
+
gapLg?: Gap;
|
|
14
|
+
gapXl?: Gap;
|
|
15
|
+
gapXxl?: Gap;
|
|
16
|
+
columns?: number;
|
|
17
|
+
}>;
|
|
18
|
+
declare function DLayout({ className, style, children, gap, columns, gapSm, gapMd, gapLg, gapXl, gapXxl, dataAttributes, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
declare const _default: typeof DLayout & {
|
|
20
|
+
Pane: typeof DLayoutPane;
|
|
21
|
+
};
|
|
22
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { PropsWithChildren } from 'react';
|
|
2
|
+
import type { BaseProps } from '../../interface';
|
|
3
|
+
type Props = PropsWithChildren<BaseProps & {
|
|
4
|
+
cols?: string | number;
|
|
5
|
+
colsXs?: string | number;
|
|
6
|
+
colsSm?: string | number;
|
|
7
|
+
colsMd?: string | number;
|
|
8
|
+
colsLg?: string | number;
|
|
9
|
+
colsXl?: string | number;
|
|
10
|
+
colsXxl?: string | number;
|
|
11
|
+
}>;
|
|
12
|
+
export default function DLayoutPane({ className, style, children, cols, colsXs, colsSm, colsMd, colsLg, colsXl, colsXxl, dataAttributes, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type { PropsWithChildren } from 'react';
|
|
2
|
-
import type { BaseProps } from '../../interface';
|
|
3
|
-
type Props = BaseProps & PropsWithChildren<{
|
|
2
|
+
import type { BaseProps, ComponentColor, EndIconProps, StartIconProps } from '../../interface';
|
|
3
|
+
type Props = BaseProps & StartIconProps & EndIconProps & PropsWithChildren<{
|
|
4
4
|
as?: 'li' | 'a' | 'button';
|
|
5
5
|
action?: boolean;
|
|
6
6
|
active?: boolean;
|
|
7
7
|
disabled?: boolean;
|
|
8
8
|
href?: string;
|
|
9
9
|
onClick?: () => void;
|
|
10
|
-
|
|
10
|
+
color?: ComponentColor;
|
|
11
11
|
}>;
|
|
12
|
-
export default function DListGroupItem({ as, action: actionProp, active, disabled, href, onClick,
|
|
12
|
+
export default function DListGroupItem({ as, action: actionProp, active, disabled, href, onClick, color, iconStart, iconStartFamilyClass, iconStartFamilyPrefix, iconStartMaterialStyle, iconEnd, iconEndFamilyClass, iconEndFamilyPrefix, iconEndMaterialStyle, children, className, style, dataAttributes, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type Transition } from 'framer-motion';
|
|
1
2
|
import type { PropsWithChildren } from 'react';
|
|
2
3
|
import DModalHeader from './components/DModalHeader';
|
|
3
4
|
import DModalBody from './components/DModalBody';
|
|
@@ -11,8 +12,9 @@ type Props = BaseProps & PropsWithChildren<{
|
|
|
11
12
|
fullScreen?: boolean;
|
|
12
13
|
fullScreenFrom?: ModalFullScreenFrom;
|
|
13
14
|
size?: ModalSize;
|
|
15
|
+
transition?: Transition;
|
|
14
16
|
}>;
|
|
15
|
-
declare function DModal({ name, className, style, staticBackdrop, scrollable, centered, fullScreen, fullScreenFrom, size, children, dataAttributes, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
declare function DModal({ name, className, style, staticBackdrop, scrollable, centered, fullScreen, fullScreenFrom, size, transition, children, dataAttributes, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
16
18
|
declare const _default: typeof DModal & {
|
|
17
19
|
Header: typeof DModalHeader;
|
|
18
20
|
Body: typeof DModalBody;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type Transition } from 'framer-motion';
|
|
1
2
|
import type { PropsWithChildren } from 'react';
|
|
2
3
|
import DOffcanvasHeader from './components/DOffcanvasHeader';
|
|
3
4
|
import DOffcanvasBody from './components/DOffcanvasBody';
|
|
@@ -8,8 +9,9 @@ type Props = BaseProps & PropsWithChildren<{
|
|
|
8
9
|
staticBackdrop?: boolean;
|
|
9
10
|
scrollable?: boolean;
|
|
10
11
|
openFrom?: OffcanvasPositionToggleFrom;
|
|
12
|
+
transition?: Transition;
|
|
11
13
|
}>;
|
|
12
|
-
declare function DOffcanvas({ name, className, style, staticBackdrop, scrollable, openFrom, children, dataAttributes, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
declare function DOffcanvas({ name, className, style, staticBackdrop, scrollable, openFrom, transition, children, dataAttributes, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
13
15
|
declare const _default: typeof DOffcanvas & {
|
|
14
16
|
Header: typeof DOffcanvasHeader;
|
|
15
17
|
Body: typeof DOffcanvasBody;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
export type PropsOtp = PropsWithChildren<{
|
|
3
|
+
action: () => Promise<void> | void;
|
|
4
|
+
isLoading?: boolean;
|
|
5
|
+
className?: string;
|
|
6
|
+
otpSize?: number;
|
|
7
|
+
seconds?: number;
|
|
8
|
+
texts?: {
|
|
9
|
+
submit?: string;
|
|
10
|
+
resend?: string;
|
|
11
|
+
title?: string;
|
|
12
|
+
contact?: string | React.ReactNode;
|
|
13
|
+
resendText?: string;
|
|
14
|
+
};
|
|
15
|
+
}>;
|
|
16
|
+
export default function DOtp({ className, action, isLoading, otpSize, texts, seconds, }: PropsOtp): import("react/jsx-runtime").JSX.Element;
|
|
File without changes
|
|
@@ -1,31 +1,6 @@
|
|
|
1
1
|
import type { ResponsivePaginationProps } from 'react-responsive-pagination';
|
|
2
2
|
import { DataAttributes } from '../interface';
|
|
3
|
-
export type Props =
|
|
4
|
-
current?: ResponsivePaginationProps['current'];
|
|
5
|
-
/**
|
|
6
|
-
* @deprecated its use is changing, use extraClassName instead, originally
|
|
7
|
-
* we set className prop to extraClassName from react-responsive-pagination API.
|
|
8
|
-
*
|
|
9
|
-
* now we are trying to expose the entire API of react-responsive-pagination and
|
|
10
|
-
* to ensure backward compatibility we are setting the className prop to
|
|
11
|
-
* extraClassName from react-responsive-pagination only if extraClassName is not present.
|
|
12
|
-
*/
|
|
13
|
-
className?: ResponsivePaginationProps['extraClassName'];
|
|
14
|
-
/**
|
|
15
|
-
* @deprecated use current instead, react-responsive-pagination API.
|
|
16
|
-
*/
|
|
17
|
-
page?: ResponsivePaginationProps['current'];
|
|
18
|
-
/**
|
|
19
|
-
* @deprecated use renderNav instead, react-responsive-pagination API.
|
|
20
|
-
*/
|
|
21
|
-
showArrows?: ResponsivePaginationProps['renderNav'];
|
|
3
|
+
export type Props = ResponsivePaginationProps & {
|
|
22
4
|
dataAttributes?: DataAttributes;
|
|
23
5
|
};
|
|
24
|
-
export
|
|
25
|
-
current: number;
|
|
26
|
-
page?: undefined;
|
|
27
|
-
}) | (Props & {
|
|
28
|
-
page: number;
|
|
29
|
-
current?: undefined;
|
|
30
|
-
});
|
|
31
|
-
export default function DPaginator({ className, page, current, showArrows, navClassName, ...props }: ConditionalProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default function DPaginator({ navClassName, ...props }: Props): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { BaseProps } from '../interface';
|
|
2
|
+
export type ValidationMessages = {
|
|
3
|
+
number: string;
|
|
4
|
+
lowercaseLetter: string;
|
|
5
|
+
uppercaseLetter: string;
|
|
6
|
+
especialChar: string;
|
|
7
|
+
notMatch?: string;
|
|
8
|
+
};
|
|
9
|
+
export type ValidationCheck = 'uppercase' | 'lowercase' | 'number' | 'specialChar';
|
|
10
|
+
type Props = BaseProps & {
|
|
11
|
+
id?: string;
|
|
12
|
+
label?: string;
|
|
13
|
+
placeholder?: string;
|
|
14
|
+
value?: string;
|
|
15
|
+
name?: string;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
invalid?: boolean;
|
|
18
|
+
validationMessages?: ValidationMessages;
|
|
19
|
+
enabledChecks?: ValidationCheck[];
|
|
20
|
+
onChange?: (value: string) => void;
|
|
21
|
+
};
|
|
22
|
+
export default function DPasswordStrengthMeter({ id, label, placeholder, value, name, disabled, invalid, validationMessages, enabledChecks, className, style, dataAttributes, onChange, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ValidationMessages, ValidationCheck } from './DPasswordStrengthMeter';
|
|
2
|
+
type Props = {
|
|
3
|
+
password: string;
|
|
4
|
+
validationMessages: ValidationMessages;
|
|
5
|
+
enabledChecks: ValidationCheck[];
|
|
6
|
+
};
|
|
7
|
+
export declare const CHECK_REGEX: {
|
|
8
|
+
uppercase: RegExp;
|
|
9
|
+
lowercase: RegExp;
|
|
10
|
+
number: RegExp;
|
|
11
|
+
specialChar: RegExp;
|
|
12
|
+
};
|
|
13
|
+
export default function PasswordChecksList({ password, validationMessages, enabledChecks, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -6,7 +6,7 @@ type Props = BaseProps & PropsWithChildren<{
|
|
|
6
6
|
* @param {boolean} open
|
|
7
7
|
* @returns {React.ReactElement}
|
|
8
8
|
*/
|
|
9
|
-
renderComponent: (open: boolean) => ReactElement
|
|
9
|
+
renderComponent: (open: boolean) => ReactElement<unknown>;
|
|
10
10
|
open: boolean;
|
|
11
11
|
setOpen?: (open: boolean) => void;
|
|
12
12
|
adjustContentToRender?: boolean;
|
|
@@ -5,6 +5,7 @@ type Props = BaseProps & {
|
|
|
5
5
|
maxValue?: number;
|
|
6
6
|
hideCurrentValue?: boolean;
|
|
7
7
|
enableStripedAnimation?: boolean;
|
|
8
|
+
height?: string | number;
|
|
8
9
|
};
|
|
9
|
-
export default function DProgress({ className, style, currentValue, minValue, maxValue, hideCurrentValue, enableStripedAnimation, dataAttributes, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default function DProgress({ className, style, currentValue, minValue, maxValue, hideCurrentValue, enableStripedAnimation, height, dataAttributes, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
10
11
|
export {};
|
|
@@ -10,8 +10,8 @@ import DSelectOptionEmoji from './components/DSelectOptionEmoji';
|
|
|
10
10
|
import DSelectSingleValueEmoji from './components/DSelectSingleValueEmoji';
|
|
11
11
|
import DSelectSingleValueEmojiText from './components/DSelectSingleValueEmojiText';
|
|
12
12
|
import DSelectPlaceholder from './components/DSelectPlaceholder';
|
|
13
|
-
import type { BaseProps, EndIconProps, FamilyIconProps,
|
|
14
|
-
type Props<Option, IsMulti extends boolean, Group extends GroupBase<Option>> = BaseProps & FamilyIconProps &
|
|
13
|
+
import type { BaseProps, EndIconProps, FamilyIconProps, StartIconProps } from '../interface';
|
|
14
|
+
type Props<Option, IsMulti extends boolean, Group extends GroupBase<Option>> = BaseProps & FamilyIconProps & StartIconProps & EndIconProps & Omit<SelectProps<Option, IsMulti, Group>, 'isDisabled' | 'isClearable' | 'isLoading' | 'isRtl' | 'isSearchable' | 'isMulti'> & {
|
|
15
15
|
label?: string;
|
|
16
16
|
hint?: string;
|
|
17
17
|
invalid?: boolean;
|
|
@@ -27,7 +27,7 @@ type Props<Option, IsMulti extends boolean, Group extends GroupBase<Option>> = B
|
|
|
27
27
|
searchable?: SelectProps<Option, IsMulti, Group>['isSearchable'];
|
|
28
28
|
multi?: SelectProps<Option, IsMulti, Group>['isMulti'];
|
|
29
29
|
};
|
|
30
|
-
declare function DSelect<Option = unknown, IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>>({ id: idProp, className, style, label,
|
|
30
|
+
declare function DSelect<Option = unknown, IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>>({ id: idProp, className, style, label, hint, iconFamilyClass, iconFamilyPrefix, iconStart, iconStartFamilyClass, iconStartFamilyPrefix, iconStartAriaLabel, iconStartTabIndex, iconEnd, iconEndFamilyClass, iconEndFamilyPrefix, iconEndAriaLabel, iconEndTabIndex, invalid, valid, menuWithMaxContent, disabled, clearable, loading, floatingLabel, rtl, searchable, multi, components, defaultValue, placeholder, onIconStartClick, onIconEndClick, dataAttributes, ...props }: Props<Option, IsMulti, Group>): import("react/jsx-runtime").JSX.Element;
|
|
31
31
|
declare const _default: typeof DSelect & {
|
|
32
32
|
OptionCheck: typeof DSelectOptionCheck;
|
|
33
33
|
OptionIcon: typeof DSelectOptionIcon;
|
|
@@ -2,11 +2,11 @@ import type { PropsWithChildren } from 'react';
|
|
|
2
2
|
import DTabContent from './components/DTabContent';
|
|
3
3
|
import type { BaseProps } from '../interface';
|
|
4
4
|
export type DTabOption = {
|
|
5
|
-
label: string;
|
|
5
|
+
label: string | React.ReactNode;
|
|
6
6
|
tab: string;
|
|
7
7
|
disabled?: boolean;
|
|
8
8
|
};
|
|
9
|
-
export type TabVariant = 'tabs' | 'pills' | 'underline';
|
|
9
|
+
export type TabVariant = 'tabs' | 'pills' | 'underline' | 'toggle-button-group';
|
|
10
10
|
type Props = BaseProps & PropsWithChildren<{
|
|
11
11
|
classNameTab?: string;
|
|
12
12
|
onChange?: (option: DTabOption) => void;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { BaseProps } from '../interface';
|
|
3
|
+
export type DTimelineItem = {
|
|
4
|
+
title: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
time?: string;
|
|
7
|
+
icon?: string;
|
|
8
|
+
status?: 'success' | 'warning' | 'danger' | 'info';
|
|
9
|
+
children?: React.ReactNode;
|
|
10
|
+
};
|
|
11
|
+
type Props = BaseProps & {
|
|
12
|
+
items: DTimelineItem[];
|
|
13
|
+
};
|
|
14
|
+
export default function DTimeline({ className, style, dataAttributes, items, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Renderable, Toast, ValueFunction } from 'react-hot-toast';
|
|
2
|
+
import { ComponentStateColor } from '../interface';
|
|
2
3
|
type ToastData = {
|
|
3
4
|
title: string;
|
|
4
5
|
description?: string;
|
|
5
6
|
timestamp?: string;
|
|
6
7
|
icon?: string;
|
|
7
8
|
closeIcon?: string;
|
|
8
|
-
|
|
9
|
-
soft?: boolean;
|
|
9
|
+
color?: ComponentStateColor;
|
|
10
10
|
};
|
|
11
11
|
type Props = Partial<Pick<Toast, 'id' | 'duration' | 'position'>>;
|
|
12
12
|
export default function useDToast(): {
|
|
@@ -9,9 +9,8 @@ export type Props = BaseProps & PropsWithChildren<{
|
|
|
9
9
|
withFocus?: boolean;
|
|
10
10
|
withClick?: boolean;
|
|
11
11
|
open?: boolean;
|
|
12
|
-
theme?: string;
|
|
13
12
|
size?: ComponentSize;
|
|
14
13
|
placement?: Placement;
|
|
15
14
|
Component: ReactNode;
|
|
16
15
|
}>;
|
|
17
|
-
export default function DTooltip({ className, childrenClassName, style, offSet, padding, withFocus, withClick, withHover, open,
|
|
16
|
+
export default function DTooltip({ className, childrenClassName, style, offSet, padding, withFocus, withClick, withHover, open, placement, size, Component, children, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { PropsWithChildren, ReactNode } from 'react';
|
|
2
|
+
type Props = PropsWithChildren<{
|
|
3
|
+
amount?: string;
|
|
4
|
+
amountDetails?: ReactNode;
|
|
5
|
+
icon?: string;
|
|
6
|
+
color?: string;
|
|
7
|
+
message: string;
|
|
8
|
+
title: string;
|
|
9
|
+
downloadText?: string;
|
|
10
|
+
shareText?: string;
|
|
11
|
+
onError?: (err: Error) => Promise<void> | void;
|
|
12
|
+
}>;
|
|
13
|
+
export default function DVoucher({ amount, amountDetails, icon, color, title, onError, message, downloadText, shareText, children, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export {};
|