@dynamic-framework/ui-react 2.0.0-dev.1 → 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 +7054 -3736
- 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 +7380 -3884
- package/dist/css/dynamic-ui.min.css +3 -3
- package/dist/index.esm.js +641 -406
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +685 -433
- package/dist/index.js.map +1 -1
- 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/DButton/DButton.d.ts +8 -17
- package/dist/types/components/DButtonIcon/DButtonIcon.d.ts +3 -3
- package/dist/types/components/DChip/DChip.d.ts +3 -3
- package/dist/types/components/DCollapse/DCollapse.d.ts +1 -1
- 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/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/hooks/useResponsiveProp.d.ts +35 -0
- package/jest/setup.js +0 -2
- package/package.json +43 -40
- 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/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,8 +1,8 @@
|
|
|
1
1
|
import type { PropsWithChildren } from 'react';
|
|
2
|
-
import type {
|
|
2
|
+
import type { BaseProps, ComponentStateColor } from '../interface';
|
|
3
3
|
type Props = BaseProps & PropsWithChildren<{
|
|
4
4
|
id?: string;
|
|
5
|
-
|
|
5
|
+
color?: ComponentStateColor;
|
|
6
6
|
icon?: string;
|
|
7
7
|
iconFamilyClass?: string;
|
|
8
8
|
iconFamilyPrefix?: string;
|
|
@@ -14,5 +14,5 @@ type Props = BaseProps & PropsWithChildren<{
|
|
|
14
14
|
iconCloseMaterialStyle?: boolean;
|
|
15
15
|
onClose?: () => void;
|
|
16
16
|
}>;
|
|
17
|
-
export default function DAlert({
|
|
17
|
+
export default function DAlert({ color, icon: iconProp, iconFamilyClass, iconFamilyPrefix, iconMaterialStyle, iconClose: iconCloseProp, iconCloseFamilyClass, iconCloseFamilyPrefix, iconCloseMaterialStyle, showClose, onClose, children, id, className, style, dataAttributes, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
18
18
|
export {};
|
|
@@ -5,8 +5,6 @@ type Props = BaseProps & {
|
|
|
5
5
|
image?: string;
|
|
6
6
|
name?: string;
|
|
7
7
|
useNameAsInitials?: boolean;
|
|
8
|
-
theme?: string;
|
|
9
|
-
variant?: 'light' | 'dark';
|
|
10
8
|
};
|
|
11
|
-
export default function DAvatar({ id, size, image, name: nameProp, useNameAsInitials,
|
|
9
|
+
export default function DAvatar({ id, size, image, name: nameProp, useNameAsInitials, className, style, dataAttributes, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
12
10
|
export {};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import type { BaseProps } from '../interface';
|
|
1
|
+
import type { BaseProps, ComponentColor } from '../interface';
|
|
2
2
|
type Props = BaseProps & {
|
|
3
3
|
text?: string;
|
|
4
4
|
soft?: boolean;
|
|
5
|
+
size?: 'sm' | 'lg';
|
|
5
6
|
rounded?: boolean;
|
|
6
|
-
|
|
7
|
+
color?: ComponentColor;
|
|
7
8
|
id?: string;
|
|
8
9
|
iconStart?: string;
|
|
9
10
|
iconEnd?: string;
|
|
@@ -11,5 +12,5 @@ type Props = BaseProps & {
|
|
|
11
12
|
iconFamilyClass?: string;
|
|
12
13
|
iconFamilyPrefix?: string;
|
|
13
14
|
};
|
|
14
|
-
export default function DBadge({ text, soft,
|
|
15
|
+
export default function DBadge({ text, soft, color, id, rounded, className, size, style, iconStart, iconEnd, iconMaterialStyle, iconFamilyClass, iconFamilyPrefix, dataAttributes, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
15
16
|
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { PropsWithChildren } from 'react';
|
|
2
|
+
import type { BaseProps } from '../interface';
|
|
3
|
+
type Props = PropsWithChildren<BaseProps>;
|
|
4
|
+
export default function DBox({ className, style, children, dataAttributes, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export {};
|
|
@@ -2,7 +2,7 @@ import type { ReactNode } from 'react';
|
|
|
2
2
|
import type { BaseProps, FamilyIconProps } from '../interface';
|
|
3
3
|
import { DBoxFileProps } from './useDBoxFile';
|
|
4
4
|
type Props = BaseProps & FamilyIconProps & DBoxFileProps & {
|
|
5
|
-
icon?: string;
|
|
5
|
+
icon?: string | false;
|
|
6
6
|
children?: ReactNode | ((openFileDialog: () => void) => ReactNode);
|
|
7
7
|
};
|
|
8
8
|
export default function DBoxFile({ icon: iconProp, iconFamilyClass, iconFamilyPrefix, iconMaterialStyle, children, className, style, dataAttributes, ...props }: Props): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,22 +1,13 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type { BaseProps,
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
theme?: string;
|
|
1
|
+
import { type ButtonHTMLAttributes } from 'react';
|
|
2
|
+
import type { BaseProps, ButtonVariant, ComponentColor, ComponentSize, EndIconProps, StartIconProps } from '../interface';
|
|
3
|
+
interface Props extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'color'>, BaseProps, StartIconProps, EndIconProps {
|
|
4
|
+
color?: ComponentColor;
|
|
6
5
|
size?: ComponentSize;
|
|
7
6
|
variant?: ButtonVariant;
|
|
8
|
-
state?: InputState;
|
|
9
7
|
text?: string;
|
|
10
|
-
ariaLabel?: string;
|
|
11
|
-
value?: string;
|
|
12
|
-
type?: ButtonType;
|
|
13
|
-
pill?: boolean;
|
|
14
8
|
loading?: boolean;
|
|
9
|
+
loadingText?: string;
|
|
15
10
|
loadingAriaLabel?: string;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
20
|
-
};
|
|
21
|
-
export default function DButton({ theme, size, variant, state, text, ariaLabel, iconStart, iconStartFamilyClass, iconStartFamilyPrefix, iconStartMaterialStyle, iconEnd, iconEndFamilyClass, iconEndFamilyPrefix, iconEndMaterialStyle, value, type, loading, loadingAriaLabel, disabled, stopPropagationEnabled, className, style, form, dataAttributes, onClick, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
22
|
-
export {};
|
|
11
|
+
}
|
|
12
|
+
declare const DButton: import("react").ForwardRefExoticComponent<Props & import("react").RefAttributes<HTMLButtonElement>>;
|
|
13
|
+
export default DButton;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { MouseEvent } from 'react';
|
|
2
|
-
import type { BaseProps, ButtonType, ButtonVariant, ComponentSize, FamilyIconProps, InputState } from '../interface';
|
|
2
|
+
import type { BaseProps, ButtonType, ButtonVariant, ComponentColor, ComponentSize, FamilyIconProps, InputState } from '../interface';
|
|
3
3
|
type Props = BaseProps & FamilyIconProps & {
|
|
4
4
|
id?: string;
|
|
5
5
|
icon: string;
|
|
6
6
|
size?: ComponentSize;
|
|
7
7
|
variant?: ButtonVariant;
|
|
8
|
-
|
|
8
|
+
color?: ComponentColor;
|
|
9
9
|
state?: InputState;
|
|
10
10
|
type?: ButtonType;
|
|
11
11
|
loading?: boolean;
|
|
@@ -15,5 +15,5 @@ type Props = BaseProps & FamilyIconProps & {
|
|
|
15
15
|
disabled?: boolean;
|
|
16
16
|
onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
17
17
|
};
|
|
18
|
-
export default function DButtonIcon({ id, icon, size, className, variant, state, loadingAriaLabel, iconMaterialStyle, ariaLabel,
|
|
18
|
+
export default function DButtonIcon({ id, icon, size, className, variant, state, loadingAriaLabel, iconMaterialStyle, ariaLabel, color, type, loading, disabled, stopPropagationEnabled, style, iconFamilyClass, iconFamilyPrefix, dataAttributes, onClick, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
19
19
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { BaseProps, FamilyIconProps } from '../interface';
|
|
1
|
+
import type { BaseProps, ComponentColor, FamilyIconProps } from '../interface';
|
|
2
2
|
type Props = BaseProps & FamilyIconProps & {
|
|
3
|
-
|
|
3
|
+
color?: ComponentColor;
|
|
4
4
|
text?: string;
|
|
5
5
|
icon?: string;
|
|
6
6
|
iconClose?: string;
|
|
@@ -11,5 +11,5 @@ type Props = BaseProps & FamilyIconProps & {
|
|
|
11
11
|
closeAriaLabel?: string;
|
|
12
12
|
onClose?: () => void;
|
|
13
13
|
};
|
|
14
|
-
export default function DChip({
|
|
14
|
+
export default function DChip({ color, text, icon, iconFamilyClass, iconFamilyPrefix, iconMaterialStyle, iconClose: iconCloseProp, iconCloseFamilyClass, iconCloseFamilyPrefix, iconCloseMaterialStyle, showClose, closeAriaLabel, className, style, dataAttributes, onClose, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
15
15
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PropsWithChildren,
|
|
1
|
+
import type { PropsWithChildren, ReactElement, ReactNode } from 'react';
|
|
2
2
|
import type { BaseProps, FamilyIconProps } from '../interface';
|
|
3
3
|
type Props = BaseProps & FamilyIconProps & PropsWithChildren<{
|
|
4
4
|
id?: string;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
type Props = {
|
|
2
|
+
className?: string;
|
|
3
|
+
brand?: string;
|
|
4
|
+
isChipVisible?: boolean;
|
|
5
|
+
name?: string;
|
|
6
|
+
number?: string;
|
|
7
|
+
holderText?: string;
|
|
8
|
+
isVertical?: boolean;
|
|
9
|
+
logoImage?: string;
|
|
10
|
+
};
|
|
11
|
+
export default function DCreditCard({ brand, name, number, holderText, logoImage, isChipVisible, className, isVertical, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { DatePickerProps } from 'react-datepicker';
|
|
2
2
|
import { Locale } from 'date-fns';
|
|
3
|
-
import type { BaseProps, ButtonVariant, ComponentSize, FamilyIconProps } from '../interface';
|
|
3
|
+
import type { BaseProps, ButtonVariant, ComponentColor, ComponentSize, FamilyIconProps } from '../interface';
|
|
4
4
|
type Props = BaseProps & FamilyIconProps & Omit<DatePickerProps, 'showMonthDropdown' | 'showMonthYearDropdown' | 'showYearDropdown' | 'useShortMonthInDropdown' | 'yearDropdownItemNumber' | 'scrollableYearDropdown' | 'dropdownMode' | 'yearItemNumber' | 'portalId' | 'withPortal' | 'onPortalKeyDown' | 'portalHost' | 'locale'> & {
|
|
5
5
|
inputLabel?: string;
|
|
6
6
|
inputHint?: string;
|
|
@@ -15,7 +15,7 @@ type Props = BaseProps & FamilyIconProps & Omit<DatePickerProps, 'showMonthDropd
|
|
|
15
15
|
headerPrevMonthAriaLabel?: string;
|
|
16
16
|
headerNextMonthAriaLabel?: string;
|
|
17
17
|
headerButtonVariant?: ButtonVariant;
|
|
18
|
-
|
|
18
|
+
headerButtonColor?: ComponentColor;
|
|
19
19
|
minYearSelect?: number;
|
|
20
20
|
maxYearSelect?: number;
|
|
21
21
|
invalid?: boolean;
|
|
@@ -24,5 +24,5 @@ type Props = BaseProps & FamilyIconProps & Omit<DatePickerProps, 'showMonthDropd
|
|
|
24
24
|
showHeaderSelectors?: boolean;
|
|
25
25
|
locale?: Locale;
|
|
26
26
|
};
|
|
27
|
-
export default function DDatePicker({ inputLabel, inputHint, inputAriaLabel, inputActionAriaLabel, inputId, timeId, timeInputLabel,
|
|
27
|
+
export default function DDatePicker({ inputLabel, inputHint, inputAriaLabel, inputActionAriaLabel, inputId, timeId, timeInputLabel, minYearSelect, maxYearSelect, iconHeaderSize, iconMaterialStyle, iconInput, headerPrevMonthAriaLabel, headerNextMonthAriaLabel, invalid, valid, renderCustomHeader: renderCustomHeaderProp, className, dateFormatCalendar, style, dataAttributes, placeholder, showHeaderSelectors, ...props }: Props): import("react/jsx-runtime").JSX.Element;
|
|
28
28
|
export {};
|
|
@@ -2,7 +2,7 @@ import { Locale } from 'date-fns';
|
|
|
2
2
|
import type { ComponentProps } from 'react';
|
|
3
3
|
import type { ReactDatePickerCustomHeaderProps } from 'react-datepicker';
|
|
4
4
|
import DButton from '../../DButton';
|
|
5
|
-
import type { BaseProps,
|
|
5
|
+
import type { BaseProps, ComponentSize, FamilyIconProps } from '../../interface';
|
|
6
6
|
export declare enum PickerType {
|
|
7
7
|
Default = "default",
|
|
8
8
|
Quarter = "quarter",
|
|
@@ -28,13 +28,11 @@ type Props = BaseProps & FamilyIconProps & ReactDatePickerCustomHeaderProps & {
|
|
|
28
28
|
prevYearAriaLabel?: string;
|
|
29
29
|
nextYearAriaLabel?: string;
|
|
30
30
|
iconSize?: ComponentSize;
|
|
31
|
-
buttonVariant?: ButtonVariant;
|
|
32
|
-
buttonTheme?: string;
|
|
33
31
|
minYearSelect?: number;
|
|
34
32
|
maxYearSelect?: number;
|
|
35
33
|
showHeaderSelectors?: boolean;
|
|
36
34
|
monthsShown?: number;
|
|
37
35
|
locale?: Locale;
|
|
38
36
|
} & Omit<ComponentProps<typeof DButton>, 'iconStart' | 'onClick' | 'disabled'>;
|
|
39
|
-
export default function DDatePickerHeaderSelector({ date, changeYear, changeMonth, decreaseMonth, increaseMonth, decreaseYear, increaseYear, monthDate, pickerType, prevMonthButtonDisabled, nextMonthButtonDisabled, monthsShown, iconPrev, iconNext, prevYearButtonDisabled, nextYearButtonDisabled,
|
|
37
|
+
export default function DDatePickerHeaderSelector({ date, changeYear, changeMonth, decreaseMonth, increaseMonth, decreaseYear, increaseYear, monthDate, pickerType, prevMonthButtonDisabled, nextMonthButtonDisabled, monthsShown, iconPrev, iconNext, prevYearButtonDisabled, nextYearButtonDisabled, prevMonthAriaLabel, nextMonthAriaLabel, prevYearAriaLabel, nextYearAriaLabel, iconSize, style, className, minYearSelect, maxYearSelect, showHeaderSelectors, customHeaderCount, locale, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
40
38
|
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export type DropdownAction = {
|
|
3
|
+
onClick?: () => void;
|
|
4
|
+
href?: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
icon?: string;
|
|
7
|
+
color?: 'default' | 'danger' | 'success' | 'warning' | 'info';
|
|
8
|
+
isDivider?: boolean;
|
|
9
|
+
label: string;
|
|
10
|
+
};
|
|
11
|
+
type Props = {
|
|
12
|
+
actions: DropdownAction[];
|
|
13
|
+
dropdownToggle?: ((props: {
|
|
14
|
+
open: boolean;
|
|
15
|
+
toggle: () => void;
|
|
16
|
+
}) => React.ReactNode);
|
|
17
|
+
className?: string;
|
|
18
|
+
};
|
|
19
|
+
export default function DDropdown({ actions, dropdownToggle, className, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export {};
|
|
@@ -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
|