@dynamic-framework/ui-react 2.0.0-dev.2 → 2.0.0-dev.20
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/README.md +52 -3
- package/dist/css/dynamic-ui-non-root.css +6344 -627
- package/dist/css/dynamic-ui-non-root.min.css +3 -3
- package/dist/css/dynamic-ui-root.css +63 -557
- package/dist/css/dynamic-ui-root.min.css +3 -3
- package/dist/css/dynamic-ui.css +6405 -1182
- package/dist/css/dynamic-ui.min.css +3 -3
- package/dist/index.esm.js +451 -159
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +472 -179
- package/dist/index.js.map +1 -1
- package/dist/types/components/DBoxFile/DBoxFile.d.ts +1 -1
- package/dist/types/components/DButton/DButton.d.ts +7 -17
- package/dist/types/components/DCollapse/DCollapse.d.ts +6 -0
- package/dist/types/components/DDatePicker/DDatePicker.d.ts +2 -1
- package/dist/types/components/DDatePicker/components/DDatePickerHeaderSelector.d.ts +2 -1
- package/dist/types/components/DIconBase/DIconBase.d.ts +10 -2
- package/dist/types/components/DInput/DInput.d.ts +2 -1
- 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 +3 -2
- package/dist/types/components/DInputMask/DInputMask.d.ts +7 -17
- package/dist/types/components/DInputPhone/DInputPhone.d.ts +1 -1
- package/dist/types/components/DInputSwitch/DInputSwitch.d.ts +2 -1
- package/dist/types/components/DLayout/DLayout.d.ts +13 -2
- package/dist/types/components/DModal/DModal.d.ts +3 -1
- package/dist/types/components/DOffcanvas/DOffcanvas.d.ts +3 -1
- 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/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 +3 -1
- package/dist/types/hooks/useResponsiveProp.d.ts +35 -0
- package/jest/setup.js +0 -2
- package/package.json +38 -40
- package/src/style/abstracts/_mixins.scss +34 -20
- package/src/style/abstracts/_utilities-hover.scss +55 -0
- package/src/style/abstracts/_utilities.scss +19 -0
- package/src/style/abstracts/variables/_buttons.scss +2 -0
- package/src/style/abstracts/variables/_colors.scss +8 -2
- package/src/style/base/_buttons.scss +25 -142
- package/src/style/base/_label.scss +0 -4
- package/src/style/components/_+import.scss +1 -0
- package/src/style/components/_d-box-file.scss +1 -1
- package/src/style/components/_d-carousel.scss +4 -3
- package/src/style/components/_d-datepicker.scss +23 -4
- package/src/style/components/_d-voucher.scss +29 -0
- package/src/style/dynamic-ui-non-root.scss +2 -0
- package/src/style/dynamic-ui.scss +2 -0
- package/src/style/root/_root.scss +94 -88
- package/dist/types/components/DBarChart/DBarChart.d.ts +0 -9
- package/dist/types/components/DMinimalLineChart/DMinimalLineChart.d.ts +0 -9
- package/dist/types/components/DMultiLineChart/DMultiLineChart.d.ts +0 -9
- package/dist/types/components/DPieChart/DPieChart.d.ts +0 -9
- package/dist/types/components/DRadialBarChart/DRadialBarChart.d.ts +0 -6
- package/dist/types/components/DTableHead/DTableHead.d.ts +0 -9
- package/dist/types/components/DTableHead/index.d.ts +0 -2
|
@@ -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,23 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type { BaseProps,
|
|
3
|
-
|
|
4
|
-
id?: 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 {
|
|
5
4
|
color?: ComponentColor;
|
|
6
5
|
size?: ComponentSize;
|
|
7
6
|
variant?: ButtonVariant;
|
|
8
|
-
state?: InputState;
|
|
9
7
|
text?: string;
|
|
10
|
-
children?: ReactNode;
|
|
11
|
-
ariaLabel?: string;
|
|
12
|
-
value?: string;
|
|
13
|
-
type?: ButtonType;
|
|
14
|
-
loadingText?: string;
|
|
15
8
|
loading?: boolean;
|
|
9
|
+
loadingText?: string;
|
|
16
10
|
loadingAriaLabel?: string;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
21
|
-
};
|
|
22
|
-
export default function DButton({ color, size, variant, state, text, children, ariaLabel, iconStart, iconStartFamilyClass, iconStartFamilyPrefix, iconStartMaterialStyle, iconEnd, iconEndFamilyClass, iconEndFamilyPrefix, iconEndMaterialStyle, loadingText, value, type, loading, loadingAriaLabel, disabled, stopPropagationEnabled, className, style, form, dataAttributes, onClick, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
23
|
-
export {};
|
|
11
|
+
}
|
|
12
|
+
declare const DButton: import("react").ForwardRefExoticComponent<Props & import("react").RefAttributes<HTMLButtonElement>>;
|
|
13
|
+
export default DButton;
|
|
@@ -4,6 +4,12 @@ type Props = BaseProps & FamilyIconProps & PropsWithChildren<{
|
|
|
4
4
|
id?: string;
|
|
5
5
|
Component: ReactElement<unknown> | ReactNode;
|
|
6
6
|
hasSeparator?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Reactive prop for controlled and uncontrolled mode.
|
|
9
|
+
*
|
|
10
|
+
* @param true show the component closed (collapsed)
|
|
11
|
+
* @param false show the component open (expanded)
|
|
12
|
+
*/
|
|
7
13
|
defaultCollapsed?: boolean;
|
|
8
14
|
onChange?: (value: boolean) => void;
|
|
9
15
|
iconOpen?: string;
|
|
@@ -22,7 +22,8 @@ type Props = BaseProps & FamilyIconProps & Omit<DatePickerProps, 'showMonthDropd
|
|
|
22
22
|
valid?: boolean;
|
|
23
23
|
placeholder?: string;
|
|
24
24
|
showHeaderSelectors?: boolean;
|
|
25
|
+
formatHeaderDate?: string;
|
|
25
26
|
locale?: Locale;
|
|
26
27
|
};
|
|
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
|
+
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, formatHeaderDate, ...props }: Props): import("react/jsx-runtime").JSX.Element;
|
|
28
29
|
export {};
|
|
@@ -21,6 +21,7 @@ type Props = BaseProps & FamilyIconProps & ReactDatePickerCustomHeaderProps & {
|
|
|
21
21
|
nextMonthButtonDisabled: boolean;
|
|
22
22
|
prevYearButtonDisabled: boolean;
|
|
23
23
|
nextYearButtonDisabled: boolean;
|
|
24
|
+
formatHeaderDate?: string;
|
|
24
25
|
iconPrev?: string;
|
|
25
26
|
iconNext?: string;
|
|
26
27
|
prevMonthAriaLabel?: string;
|
|
@@ -34,5 +35,5 @@ type Props = BaseProps & FamilyIconProps & ReactDatePickerCustomHeaderProps & {
|
|
|
34
35
|
monthsShown?: number;
|
|
35
36
|
locale?: Locale;
|
|
36
37
|
} & Omit<ComponentProps<typeof DButton>, 'iconStart' | 'onClick' | 'disabled'>;
|
|
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;
|
|
38
|
+
export default function DDatePickerHeaderSelector({ date, changeYear, changeMonth, decreaseMonth, increaseMonth, decreaseYear, increaseYear, monthDate, formatHeaderDate, 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;
|
|
38
39
|
export {};
|
|
@@ -1,13 +1,21 @@
|
|
|
1
1
|
import type { BaseProps, ComponentColor } from '../interface';
|
|
2
|
+
import { ResponsiveProp } from '../../hooks/useResponsiveProp';
|
|
2
3
|
type Props = BaseProps & {
|
|
3
4
|
icon: string;
|
|
4
5
|
color?: ComponentColor;
|
|
5
|
-
size?: string;
|
|
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;
|
|
6
14
|
hasCircle?: boolean;
|
|
7
15
|
materialStyle?: boolean;
|
|
8
16
|
familyClass?: string;
|
|
9
17
|
familyPrefix?: string;
|
|
10
18
|
strokeWidth?: number;
|
|
11
19
|
};
|
|
12
|
-
export default function DIconBase({ icon, color, style, className, size, hasCircle, materialStyle, familyClass, strokeWidth, dataAttributes, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export default function DIconBase({ icon, color, style, className, size, useListenerSize, hasCircle, materialStyle, familyClass, familyPrefix, strokeWidth, dataAttributes, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
13
21
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
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">, "
|
|
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">, "
|
|
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">, "
|
|
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 ForwardedDInputCurrency: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<Omit<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "
|
|
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 ForwardedDInputCurrency: import("react").ForwardRefExoticComponent
|
|
|
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">, "
|
|
24
|
+
} & import("react").RefAttributes<HTMLInputElement>, "ref">, "value" | "onChange" | "type">, keyof NonDInputProps> & NonDInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
24
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;
|
|
@@ -7,7 +7,7 @@ type OnChangeType = {
|
|
|
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">, "
|
|
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;
|
|
@@ -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 {};
|
|
@@ -1,10 +1,21 @@
|
|
|
1
1
|
import type { PropsWithChildren } from 'react';
|
|
2
2
|
import DLayoutPane from './components/DLayoutPane';
|
|
3
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;
|
|
4
9
|
type Props = PropsWithChildren<BaseProps & {
|
|
5
|
-
gap?:
|
|
10
|
+
gap?: Gap;
|
|
11
|
+
gapSm?: Gap;
|
|
12
|
+
gapMd?: Gap;
|
|
13
|
+
gapLg?: Gap;
|
|
14
|
+
gapXl?: Gap;
|
|
15
|
+
gapXxl?: Gap;
|
|
16
|
+
columns?: number;
|
|
6
17
|
}>;
|
|
7
|
-
declare function DLayout({ className, style, children, gap, dataAttributes, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
declare function DLayout({ className, style, children, gap, columns, gapSm, gapMd, gapLg, gapXl, gapXxl, dataAttributes, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
8
19
|
declare const _default: typeof DLayout & {
|
|
9
20
|
Pane: typeof DLayoutPane;
|
|
10
21
|
};
|
|
@@ -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,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 {};
|
|
@@ -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 {};
|
|
@@ -19,6 +19,8 @@ export { default as DInputMask } from './DInputMask';
|
|
|
19
19
|
export { default as DInputCounter } from './DInputCounter';
|
|
20
20
|
export { default as DInputCurrency } from './DInputCurrency';
|
|
21
21
|
export { default as DInputPassword } from './DInputPassword';
|
|
22
|
+
export { default as DPasswordStrengthMeter } from './DPasswordStrengthMeter';
|
|
23
|
+
export type { ValidationMessages, ValidationCheck } from './DPasswordStrengthMeter';
|
|
22
24
|
export { default as DInputCheck } from './DInputCheck';
|
|
23
25
|
export { default as DInputPin } from './DInputPin';
|
|
24
26
|
export { default as DInputSelect } from './DInputSelect';
|
|
@@ -41,7 +43,7 @@ export { default as DTabs, useTabContext, DTabContent, } from './DTabs';
|
|
|
41
43
|
export type { DTabOption } from './DTabs';
|
|
42
44
|
export { default as DToast } from './DToast';
|
|
43
45
|
export { default as DToastContainer, useDToast, } from './DToastContainer';
|
|
44
|
-
export { default as DTableHead } from './DTableHead';
|
|
45
46
|
export { default as DInputPhone } from './DInputPhone';
|
|
46
47
|
export { default as DCreditCard } from './DCreditCard';
|
|
47
48
|
export { default as DDropdown } from './DDropdown';
|
|
49
|
+
export { default as DVoucher } from './DVoucher';
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A mapping of breakpoint names to values for responsive properties.
|
|
3
|
+
*
|
|
4
|
+
* This type allows you to specify a value for one or more
|
|
5
|
+
* breakpoints ('xs', 'sm', 'md', 'lg', 'xl', 'xxl').
|
|
6
|
+
* When used with `useResponsiveProp`, the value for
|
|
7
|
+
* the highest matching breakpoint will be selected.
|
|
8
|
+
*
|
|
9
|
+
* Usage example:
|
|
10
|
+
* ```ts
|
|
11
|
+
* const prop: ResponsiveProp = { xs: "small", md: "medium", xl: "large" };
|
|
12
|
+
* ```
|
|
13
|
+
*/
|
|
14
|
+
export type ResponsiveProp = Partial<Record<'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl', string>>;
|
|
15
|
+
/**
|
|
16
|
+
* React hook to resolve a responsive property value based on the current viewport breakpoint.
|
|
17
|
+
*
|
|
18
|
+
* Given a `ResponsiveProp` object, this hook returns the value for the highest matching breakpoint.
|
|
19
|
+
* If multiple breakpoints match, the value for the largest (highest) breakpoint is used.
|
|
20
|
+
* If no breakpoints match, `undefined` is returned.
|
|
21
|
+
*
|
|
22
|
+
* @param useListener - Whether to listen for breakpoint changes (default: false).
|
|
23
|
+
* @returns An object with a `responsivePropValue` function that takes a
|
|
24
|
+
* `ResponsiveProp` and returns the resolved value.
|
|
25
|
+
*
|
|
26
|
+
* Usage example:
|
|
27
|
+
* ```ts
|
|
28
|
+
* const { responsivePropValue } = useResponsiveProp();
|
|
29
|
+
* const value = responsivePropValue({ xs: "A", md: "B", xl: "C" });
|
|
30
|
+
* // value will be "C" if xl breakpoint is active, "B" if md is active, etc.
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
export declare function useResponsiveProp(useListener?: boolean): {
|
|
34
|
+
responsivePropValue: (prop: ResponsiveProp) => string | undefined;
|
|
35
|
+
};
|