@dynamic-framework/ui-react 1.14.1 → 1.15.0
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 +234 -29
- package/dist/css/dynamic-ui-non-root.min.css +1 -1
- package/dist/css/dynamic-ui.css +234 -29
- package/dist/css/dynamic-ui.min.css +1 -1
- package/dist/index.esm.js +211 -63
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +211 -64
- package/dist/index.js.map +1 -1
- package/dist/types/components/DAlert/DAlert.d.ts +6 -3
- package/dist/types/components/DBoxFile/DBoxFile.d.ts +2 -2
- package/dist/types/components/DButton/DButton.d.ts +1 -1
- package/dist/types/components/DChip/DChip.d.ts +5 -1
- package/dist/types/components/DCollapse/DCollapse.d.ts +5 -3
- package/dist/types/components/DDatePicker/DDatePicker.d.ts +6 -6
- package/dist/types/components/DDatePickerHeader/DDatePickerHeader.d.ts +5 -5
- package/dist/types/components/DInput/DInput.d.ts +2 -2
- package/dist/types/components/DInputCounter/DInputCounter.d.ts +2 -2
- package/dist/types/components/DInputCurrency/DInputCurrency.d.ts +1 -1
- package/dist/types/components/DInputCurrencyBase/DInputCurrencyBase.d.ts +1 -1
- package/dist/types/components/DInputMask/DInputMask.d.ts +1 -1
- package/dist/types/components/DInputPassword/DInputPassword.d.ts +1 -1
- package/dist/types/components/DInputPin/DInputPin.d.ts +3 -3
- package/dist/types/components/DInputSearch/DInputSearch.d.ts +2 -5
- package/dist/types/components/DInputSelect/index.d.ts +1 -1
- package/dist/types/components/DModal/components/DModalHeader.d.ts +2 -2
- package/dist/types/components/DMonthPicker/DMonthPicker.d.ts +5 -4
- package/dist/types/components/DOffcanvas/components/DOffcanvasHeader.d.ts +2 -2
- package/dist/types/components/DPopover/DPopover.d.ts +5 -0
- package/dist/types/components/DSelect/DSelect.d.ts +41 -0
- package/dist/types/components/DSelect/components/DSelectClearIndicator.d.ts +2 -0
- package/dist/types/components/DSelect/components/DSelectDropdownIndicator.d.ts +2 -0
- package/dist/types/components/DSelect/components/DSelectLoadingIndicator.d.ts +2 -0
- package/dist/types/components/DSelect/components/DSelectMultiValueRemove.d.ts +2 -0
- package/dist/types/components/DSelect/components/DSelectOptionCheck.d.ts +2 -0
- package/dist/types/components/DSelect/components/DSelectOptionEmoji.d.ts +7 -0
- package/dist/types/components/DSelect/components/DSelectOptionIcon.d.ts +7 -0
- package/dist/types/components/DSelect/components/DSelectSingleValueEmoji.d.ts +2 -0
- package/dist/types/components/DSelect/components/DSelectSingleValueEmojiText.d.ts +2 -0
- package/dist/types/components/DSelect/components/DSelectSingleValueIconText.d.ts +2 -0
- package/dist/types/components/DSelect/index.d.ts +4 -0
- package/dist/types/components/DStepper/DStepper.d.ts +5 -2
- package/dist/types/components/DStepperDesktop/DStepperDesktop.d.ts +5 -2
- package/dist/types/components/DTabs/index.d.ts +1 -1
- package/dist/types/components/DToastContainer/useToast.d.ts +3 -1
- package/dist/types/components/config.d.ts +0 -2
- package/dist/types/components/index.d.ts +2 -3
- package/dist/types/components/interface.d.ts +8 -0
- package/dist/types/contexts/DContext.d.ts +37 -12
- package/package.json +5 -3
- package/src/style/abstracts/variables/_buttons.scss +1 -1
- package/src/style/abstracts/variables/_forms.scss +2 -2
- package/src/style/components/_+import.scss +1 -0
- package/src/style/components/_d-badge.scss +1 -1
- package/src/style/components/_d-button.scss +6 -1
- package/src/style/components/_d-icon.scss +2 -4
- package/src/style/components/_d-input.scss +3 -13
- package/src/style/components/_d-select.scss +252 -0
- package/src/style/components/_d-tabs.scss +0 -5
- package/dist/types/components/DCardAccount/DCardAccount.d.ts +0 -13
- package/dist/types/components/DCardAccount/index.d.ts +0 -2
- package/dist/types/components/DCollapseIconText/DCollapseIconText.d.ts +0 -22
- package/dist/types/components/DCollapseIconText/index.d.ts +0 -2
|
@@ -6,12 +6,15 @@ type Props = BaseProps & PropsWithChildren<{
|
|
|
6
6
|
icon?: string;
|
|
7
7
|
iconFamilyClass?: string;
|
|
8
8
|
iconFamilyPrefix?: string;
|
|
9
|
+
iconMaterialStyle?: boolean;
|
|
9
10
|
showIcon?: boolean;
|
|
10
11
|
showClose?: boolean;
|
|
11
|
-
|
|
12
|
-
|
|
12
|
+
iconClose?: string;
|
|
13
|
+
iconCloseFamilyClass?: string;
|
|
14
|
+
iconCloseFamilyPrefix?: string;
|
|
15
|
+
iconCloseMaterialStyle?: boolean;
|
|
13
16
|
soft?: boolean;
|
|
14
17
|
onClose?: () => void;
|
|
15
18
|
}>;
|
|
16
|
-
export default function DAlert({ type, icon
|
|
19
|
+
export default function DAlert({ type, icon: iconProp, iconFamilyClass, iconFamilyPrefix, iconMaterialStyle, iconClose: iconCloseProp, iconCloseFamilyClass, iconCloseFamilyPrefix, iconCloseMaterialStyle, showIcon, soft, showClose, onClose, children, id, className, style, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
17
20
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type PropsWithChildren } from 'react';
|
|
2
2
|
import type { DropzoneOptions } from 'react-dropzone';
|
|
3
3
|
import type { BaseProps, FamilyIconProps } from '../interface';
|
|
4
4
|
type Props = BaseProps & FamilyIconProps & PropsWithChildren<Pick<DropzoneOptions, 'accept' | 'minSize' | 'maxSize' | 'maxFiles' | 'onDrop' | 'onDropAccepted' | 'onDropRejected' | 'onFileDialogCancel' | 'onFileDialogOpen' | 'disabled'> & {
|
|
5
5
|
icon?: string;
|
|
6
6
|
}>;
|
|
7
|
-
export default function DBoxFile({ icon, iconFamilyClass, iconFamilyPrefix, disabled, children, className, style, ...dropzoneOptions }: Props): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default function DBoxFile({ icon: iconProp, iconFamilyClass, iconFamilyPrefix, iconMaterialStyle, disabled, children, className, style, ...dropzoneOptions }: Props): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export {};
|
|
@@ -18,5 +18,5 @@ type Props = BaseProps & StartIconProps & EndIconProps & {
|
|
|
18
18
|
form?: string;
|
|
19
19
|
onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
20
20
|
};
|
|
21
|
-
export default function DButton({ theme, size, variant, state, text, ariaLabel, iconStart, iconStartFamilyClass, iconStartFamilyPrefix, iconEnd, iconEndFamilyClass, iconEndFamilyPrefix, value, type, pill, loading, loadingAriaLabel, disabled, stopPropagationEnabled, className, form, onClick, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export default function DButton({ theme, size, variant, state, text, ariaLabel, iconStart, iconStartFamilyClass, iconStartFamilyPrefix, iconStartMaterialStyle, iconEnd, iconEndFamilyClass, iconEndFamilyPrefix, iconEndMaterialStyle, value, type, pill, loading, loadingAriaLabel, disabled, stopPropagationEnabled, className, form, onClick, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
22
22
|
export {};
|
|
@@ -3,9 +3,13 @@ type Props = BaseProps & FamilyIconProps & {
|
|
|
3
3
|
theme?: string;
|
|
4
4
|
text?: string;
|
|
5
5
|
icon?: string;
|
|
6
|
+
iconClose?: string;
|
|
7
|
+
iconCloseFamilyClass?: string;
|
|
8
|
+
iconCloseFamilyPrefix?: string;
|
|
9
|
+
iconCloseMaterialStyle?: boolean;
|
|
6
10
|
showClose?: boolean;
|
|
7
11
|
closeAriaLabel?: string;
|
|
8
12
|
onClose?: () => void;
|
|
9
13
|
};
|
|
10
|
-
export default function DChip({ theme, text, icon, iconFamilyClass, iconFamilyPrefix, showClose, closeAriaLabel, className, style, onClose, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export default function DChip({ theme, text, icon, iconFamilyClass, iconFamilyPrefix, iconMaterialStyle, iconClose: iconCloseProp, iconCloseFamilyClass, iconCloseFamilyPrefix, iconCloseMaterialStyle, showClose, closeAriaLabel, className, style, onClose, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
11
15
|
export {};
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import type { PropsWithChildren, ReactNode, ReactElement } from 'react';
|
|
2
|
-
import type { BaseProps } from '../interface';
|
|
3
|
-
type Props = BaseProps & PropsWithChildren<{
|
|
2
|
+
import type { BaseProps, FamilyIconProps } from '../interface';
|
|
3
|
+
type Props = BaseProps & FamilyIconProps & PropsWithChildren<{
|
|
4
4
|
id?: string;
|
|
5
5
|
Component: ReactElement | ReactNode;
|
|
6
6
|
hasSeparator?: boolean;
|
|
7
7
|
defaultCollapsed?: boolean;
|
|
8
8
|
onChange?: (value: boolean) => void;
|
|
9
|
+
iconOpen?: string;
|
|
10
|
+
iconClose?: string;
|
|
9
11
|
}>;
|
|
10
|
-
export default function DCollapse({ id, className, style, Component, hasSeparator, defaultCollapsed, onChange, children, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export default function DCollapse({ id, className, style, Component, hasSeparator, defaultCollapsed, onChange, children, iconOpen: iconOpenProp, iconClose: iconCloseProp, iconFamilyClass, iconFamilyPrefix, iconMaterialStyle, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
11
13
|
export {};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import type { Locale } from 'date-fns';
|
|
2
2
|
import type { ReactDatePickerProps } from 'react-datepicker';
|
|
3
|
-
import type { BaseProps, ButtonVariant, ComponentSize } from '../interface';
|
|
4
|
-
type Props = BaseProps & Omit<ReactDatePickerProps, 'selected' | 'selectsRange' | 'locale'> & {
|
|
3
|
+
import type { BaseProps, ButtonVariant, ComponentSize, FamilyIconProps } from '../interface';
|
|
4
|
+
type Props<CustomModifierNames extends string = never, WithRange extends boolean | undefined = undefined> = BaseProps & FamilyIconProps & Omit<ReactDatePickerProps<CustomModifierNames, WithRange>, 'selected' | 'selectsRange' | 'locale'> & {
|
|
5
5
|
date?: string | null;
|
|
6
6
|
withMonthSelector?: boolean;
|
|
7
7
|
selectsRange?: boolean;
|
|
8
8
|
inputLabel?: string;
|
|
9
9
|
inputAriaLabel?: string;
|
|
10
10
|
inputActionAriaLabel?: string;
|
|
11
|
-
|
|
11
|
+
iconInput?: string;
|
|
12
12
|
inputId?: string;
|
|
13
13
|
timeId?: string;
|
|
14
14
|
timeLabel?: string;
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
iconHeaderPrevMonth?: string;
|
|
16
|
+
iconHeaderNextMonth?: string;
|
|
17
17
|
headerPrevMonthAriaLabel?: string;
|
|
18
18
|
headerNextMonthAriaLabel?: string;
|
|
19
19
|
headerIconSize?: ComponentSize;
|
|
@@ -21,5 +21,5 @@ type Props = BaseProps & Omit<ReactDatePickerProps, 'selected' | 'selectsRange'
|
|
|
21
21
|
headerButtonTheme?: string;
|
|
22
22
|
locale?: Locale;
|
|
23
23
|
};
|
|
24
|
-
export default function DDatePicker({ date, selectsRange, withMonthSelector, inputLabel, inputAriaLabel, inputActionAriaLabel,
|
|
24
|
+
export default function DDatePicker<CustomModifierNames extends string = never, WithRange extends boolean | undefined = undefined>({ date, selectsRange, withMonthSelector, inputLabel, inputAriaLabel, inputActionAriaLabel, inputId, timeId, timeLabel, iconInput: iconInputProp, iconHeaderPrevMonth: iconHeaderPrevMonthProp, iconHeaderNextMonth: iconHeaderNextMonthProp, iconMaterialStyle: iconMaterialStyleProp, iconFamilyClass, iconFamilyPrefix, headerPrevMonthAriaLabel, headerNextMonthAriaLabel, headerIconSize, headerButtonVariant, headerButtonTheme, locale, className, style, ...props }: Props<CustomModifierNames, WithRange>): import("react/jsx-runtime").JSX.Element;
|
|
25
25
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ComponentProps } from 'react';
|
|
2
2
|
import DButton from '../DButton';
|
|
3
|
-
import type { BaseProps, ButtonVariant, ComponentSize } from '../interface';
|
|
4
|
-
type Props = BaseProps & {
|
|
3
|
+
import type { BaseProps, ButtonVariant, ComponentSize, FamilyIconProps } from '../interface';
|
|
4
|
+
type Props = BaseProps & FamilyIconProps & {
|
|
5
5
|
locale?: Locale;
|
|
6
6
|
monthDate: Date;
|
|
7
7
|
decreaseMonth: () => void;
|
|
@@ -11,13 +11,13 @@ type Props = BaseProps & {
|
|
|
11
11
|
prevMonthButtonDisabled: boolean;
|
|
12
12
|
nextMonthButtonDisabled: boolean;
|
|
13
13
|
withMonthSelector: boolean;
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
iconPrevMonth: string;
|
|
15
|
+
iconNextMonth: string;
|
|
16
16
|
prevMonthAriaLabel?: string;
|
|
17
17
|
nextMonthAriaLabel?: string;
|
|
18
18
|
iconSize: ComponentSize;
|
|
19
19
|
buttonVariant: ButtonVariant;
|
|
20
20
|
buttonTheme: string;
|
|
21
21
|
} & Omit<ComponentProps<typeof DButton>, 'iconStart' | 'onMClick' | 'isDisabled'>;
|
|
22
|
-
export default function DDatePickerHeader({ monthDate, changeMonth, changeYear, decreaseMonth, increaseMonth, prevMonthButtonDisabled, nextMonthButtonDisabled, withMonthSelector,
|
|
22
|
+
export default function DDatePickerHeader({ monthDate, changeMonth, changeYear, decreaseMonth, increaseMonth, prevMonthButtonDisabled, nextMonthButtonDisabled, withMonthSelector, iconPrevMonth, iconNextMonth, iconFamilyClass, iconFamilyPrefix, iconMaterialStyle, prevMonthAriaLabel, nextMonthAriaLabel, iconSize, buttonVariant, buttonTheme, locale, style, className, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
23
23
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
|
-
import type { BaseProps, EndIconProps, FamilyIconProps, LabelIconProps, StartIconProps } from '../interface';
|
|
3
|
-
declare const ForwardedDInput: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "value" | "onChange">, "value" | "loading" | "label" | "invalid" | "onChange" | keyof BaseProps | keyof FamilyIconProps | keyof LabelIconProps | keyof StartIconProps | keyof EndIconProps | "hint" | "valid" | "floatingLabel" | "inputStart" | "inputEnd" | "onIconStartClick" | "onIconEndClick"> & BaseProps & FamilyIconProps & LabelIconProps & StartIconProps & EndIconProps & {
|
|
2
|
+
import type { BaseProps, EndIconProps, FamilyIconProps, LabelIconProps, StartIconProps, StateIcons } from '../interface';
|
|
3
|
+
declare const ForwardedDInput: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "value" | "onChange">, "value" | "loading" | "label" | "invalid" | "onChange" | keyof BaseProps | keyof FamilyIconProps | keyof LabelIconProps | keyof StartIconProps | keyof EndIconProps | keyof StateIcons | "hint" | "valid" | "floatingLabel" | "inputStart" | "inputEnd" | "onIconStartClick" | "onIconEndClick"> & BaseProps & FamilyIconProps & LabelIconProps & StartIconProps & EndIconProps & StateIcons & {
|
|
4
4
|
value?: string | undefined;
|
|
5
5
|
label?: string | undefined;
|
|
6
6
|
loading?: boolean | undefined;
|
|
@@ -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">, "value" | "loading" | "label" | "invalid" | "onChange" | keyof import("../interface").BaseProps | keyof import("../interface").FamilyIconProps | keyof import("../interface").LabelIconProps | keyof import("../interface").StartIconProps | keyof import("../interface").EndIconProps | "hint" | "valid" | "floatingLabel" | "inputStart" | "inputEnd" | "onIconStartClick" | "onIconEndClick"> & import("../interface").BaseProps & import("../interface").FamilyIconProps & import("../interface").LabelIconProps & import("../interface").StartIconProps & import("../interface").EndIconProps & {
|
|
8
|
+
declare const ForwardedDInputCounter: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<Omit<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "value" | "onChange">, "value" | "loading" | "label" | "invalid" | "onChange" | keyof import("../interface").BaseProps | keyof import("../interface").FamilyIconProps | keyof import("../interface").LabelIconProps | keyof import("../interface").StartIconProps | keyof import("../interface").EndIconProps | keyof import("../interface").StateIcons | "hint" | "valid" | "floatingLabel" | "inputStart" | "inputEnd" | "onIconStartClick" | "onIconEndClick"> & import("../interface").BaseProps & import("../interface").FamilyIconProps & import("../interface").LabelIconProps & import("../interface").StartIconProps & import("../interface").EndIconProps & import("../interface").StateIcons & {
|
|
9
9
|
value?: string | undefined;
|
|
10
10
|
label?: string | undefined;
|
|
11
11
|
loading?: boolean | undefined;
|
|
@@ -18,5 +18,5 @@ declare const ForwardedDInputCounter: import("react").ForwardRefExoticComponent<
|
|
|
18
18
|
onChange?: ((value: string) => void) | undefined;
|
|
19
19
|
onIconStartClick?: ((value?: string | undefined) => void) | undefined;
|
|
20
20
|
onIconEndClick?: ((value?: string | undefined) => void) | undefined;
|
|
21
|
-
} & import("react").RefAttributes<HTMLInputElement>, "ref">, "type" | "value" | "onChange">, keyof NonDInputProps> & NonDInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
21
|
+
} & import("react").RefAttributes<HTMLInputElement>, "ref">, "type" | "value" | "onChange" | "invalidIcon" | "validIcon">, keyof NonDInputProps> & NonDInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
22
22
|
export default ForwardedDInputCounter;
|
|
@@ -6,7 +6,7 @@ type NonDInputProps = {
|
|
|
6
6
|
currencyCode?: string;
|
|
7
7
|
onChange?: (value?: number) => void;
|
|
8
8
|
};
|
|
9
|
-
declare const ForwardedDInputCurrencyBase: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<Omit<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "value" | "onChange">, "value" | "loading" | "label" | "invalid" | "onChange" | keyof import("../interface").BaseProps | keyof import("../interface").FamilyIconProps | keyof import("../interface").LabelIconProps | keyof import("../interface").StartIconProps | keyof import("../interface").EndIconProps | "hint" | "valid" | "floatingLabel" | "inputStart" | "inputEnd" | "onIconStartClick" | "onIconEndClick"> & import("../interface").BaseProps & import("../interface").FamilyIconProps & import("../interface").LabelIconProps & import("../interface").StartIconProps & import("../interface").EndIconProps & {
|
|
9
|
+
declare const ForwardedDInputCurrencyBase: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<Omit<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "value" | "onChange">, "value" | "loading" | "label" | "invalid" | "onChange" | keyof import("../interface").BaseProps | keyof import("../interface").FamilyIconProps | keyof import("../interface").LabelIconProps | keyof import("../interface").StartIconProps | keyof import("../interface").EndIconProps | keyof import("../interface").StateIcons | "hint" | "valid" | "floatingLabel" | "inputStart" | "inputEnd" | "onIconStartClick" | "onIconEndClick"> & import("../interface").BaseProps & import("../interface").FamilyIconProps & import("../interface").LabelIconProps & import("../interface").StartIconProps & import("../interface").EndIconProps & import("../interface").StateIcons & {
|
|
10
10
|
value?: string | undefined;
|
|
11
11
|
label?: string | undefined;
|
|
12
12
|
loading?: boolean | undefined;
|
|
@@ -8,7 +8,7 @@ type NonDInputProps = {
|
|
|
8
8
|
currencyCode?: string;
|
|
9
9
|
onChange?: (value?: number) => void;
|
|
10
10
|
};
|
|
11
|
-
declare const ForwardedDInputCurrencyBase: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<Omit<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "value" | "onChange">, "value" | "loading" | "label" | "invalid" | "onChange" | keyof import("../interface").BaseProps | keyof import("../interface").FamilyIconProps | keyof import("../interface").LabelIconProps | keyof import("../interface").StartIconProps | keyof import("../interface").EndIconProps | "hint" | "valid" | "floatingLabel" | "inputStart" | "inputEnd" | "onIconStartClick" | "onIconEndClick"> & import("../interface").BaseProps & import("../interface").FamilyIconProps & import("../interface").LabelIconProps & import("../interface").StartIconProps & import("../interface").EndIconProps & {
|
|
11
|
+
declare const ForwardedDInputCurrencyBase: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<Omit<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "value" | "onChange">, "value" | "loading" | "label" | "invalid" | "onChange" | keyof import("../interface").BaseProps | keyof import("../interface").FamilyIconProps | keyof import("../interface").LabelIconProps | keyof import("../interface").StartIconProps | keyof import("../interface").EndIconProps | keyof import("../interface").StateIcons | "hint" | "valid" | "floatingLabel" | "inputStart" | "inputEnd" | "onIconStartClick" | "onIconEndClick"> & import("../interface").BaseProps & import("../interface").FamilyIconProps & import("../interface").LabelIconProps & import("../interface").StartIconProps & import("../interface").EndIconProps & import("../interface").StateIcons & {
|
|
12
12
|
value?: string | undefined;
|
|
13
13
|
label?: string | undefined;
|
|
14
14
|
loading?: boolean | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { MaskProps } from '@react-input/mask';
|
|
3
|
-
declare const ForwardedDInputMask: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "value" | "onChange">, "value" | "loading" | "label" | "invalid" | "onChange" | keyof import("../interface").BaseProps | keyof import("../interface").FamilyIconProps | keyof import("../interface").LabelIconProps | keyof import("../interface").StartIconProps | keyof import("../interface").EndIconProps | "hint" | "valid" | "floatingLabel" | "inputStart" | "inputEnd" | "onIconStartClick" | "onIconEndClick"> & import("../interface").BaseProps & import("../interface").FamilyIconProps & import("../interface").LabelIconProps & import("../interface").StartIconProps & import("../interface").EndIconProps & {
|
|
3
|
+
declare const ForwardedDInputMask: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "value" | "onChange">, "value" | "loading" | "label" | "invalid" | "onChange" | keyof import("../interface").BaseProps | keyof import("../interface").FamilyIconProps | keyof import("../interface").LabelIconProps | keyof import("../interface").StartIconProps | keyof import("../interface").EndIconProps | keyof import("../interface").StateIcons | "hint" | "valid" | "floatingLabel" | "inputStart" | "inputEnd" | "onIconStartClick" | "onIconEndClick"> & import("../interface").BaseProps & import("../interface").FamilyIconProps & import("../interface").LabelIconProps & import("../interface").StartIconProps & import("../interface").EndIconProps & import("../interface").StateIcons & {
|
|
4
4
|
value?: string | undefined;
|
|
5
5
|
label?: string | undefined;
|
|
6
6
|
loading?: boolean | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
import DInput from '../DInput';
|
|
3
|
-
type Props = Omit<ComponentPropsWithoutRef<typeof DInput>, '
|
|
3
|
+
type Props = Omit<ComponentPropsWithoutRef<typeof DInput>, 'type'>;
|
|
4
4
|
declare const ForwardedDInputPassword: import("react").ForwardRefExoticComponent<Props & import("react").RefAttributes<HTMLInputElement>>;
|
|
5
5
|
export default ForwardedDInputPassword;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { BaseProps, FamilyIconProps, LabelIconProps, PinInputMode, PinInputType } from '../interface';
|
|
2
|
-
type Props = BaseProps & LabelIconProps & FamilyIconProps & {
|
|
1
|
+
import type { BaseProps, FamilyIconProps, LabelIconProps, PinInputMode, PinInputType, StateIcons } from '../interface';
|
|
2
|
+
type Props = BaseProps & LabelIconProps & FamilyIconProps & StateIcons & {
|
|
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, label, labelIcon, labelIconFamilyClass, labelIconFamilyPrefix, placeholder, type, disabled, loading, secret, iconFamilyClass, iconFamilyPrefix, characters, innerInputMode, hint, invalid, valid, className, style, onChange, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export default function DInputPin({ id, label, labelIcon, labelIconFamilyClass, labelIconFamilyPrefix, placeholder, type, disabled, loading, secret, iconFamilyClass, iconFamilyPrefix, characters, invalidIcon: invalidIconProp, validIcon: validIconProp, innerInputMode, hint, invalid, valid, className, style, onChange, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
19
19
|
export {};
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
3
|
-
onClick?: (value: string | undefined) => void;
|
|
4
|
-
};
|
|
5
|
-
declare const ForwardedDInputSearch: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<Omit<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "value" | "onChange">, "value" | "loading" | "label" | "invalid" | "onChange" | keyof import("../interface").BaseProps | keyof import("../interface").FamilyIconProps | keyof import("../interface").LabelIconProps | keyof import("../interface").StartIconProps | keyof import("../interface").EndIconProps | "hint" | "valid" | "floatingLabel" | "inputStart" | "inputEnd" | "onIconStartClick" | "onIconEndClick"> & import("../interface").BaseProps & import("../interface").FamilyIconProps & import("../interface").LabelIconProps & import("../interface").StartIconProps & import("../interface").EndIconProps & {
|
|
2
|
+
declare const ForwardedDInputSearch: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "value" | "onChange">, "value" | "loading" | "label" | "invalid" | "onChange" | keyof import("../interface").BaseProps | keyof import("../interface").FamilyIconProps | keyof import("../interface").LabelIconProps | keyof import("../interface").StartIconProps | keyof import("../interface").EndIconProps | keyof import("../interface").StateIcons | "hint" | "valid" | "floatingLabel" | "inputStart" | "inputEnd" | "onIconStartClick" | "onIconEndClick"> & import("../interface").BaseProps & import("../interface").FamilyIconProps & import("../interface").LabelIconProps & import("../interface").StartIconProps & import("../interface").EndIconProps & import("../interface").StateIcons & {
|
|
6
3
|
value?: string | undefined;
|
|
7
4
|
label?: string | undefined;
|
|
8
5
|
loading?: boolean | undefined;
|
|
@@ -15,5 +12,5 @@ declare const ForwardedDInputSearch: import("react").ForwardRefExoticComponent<O
|
|
|
15
12
|
onChange?: ((value: string) => void) | undefined;
|
|
16
13
|
onIconStartClick?: ((value?: string | undefined) => void) | undefined;
|
|
17
14
|
onIconEndClick?: ((value?: string | undefined) => void) | undefined;
|
|
18
|
-
} & import("react").RefAttributes<HTMLInputElement>, "ref"
|
|
15
|
+
} & import("react").RefAttributes<HTMLInputElement>, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
19
16
|
export default ForwardedDInputSearch;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type PropsWithChildren } from 'react';
|
|
2
2
|
import type { BaseProps, FamilyIconProps } from '../../interface';
|
|
3
3
|
type Props = BaseProps & FamilyIconProps & PropsWithChildren<{
|
|
4
4
|
showCloseButton?: boolean;
|
|
@@ -6,5 +6,5 @@ type Props = BaseProps & FamilyIconProps & PropsWithChildren<{
|
|
|
6
6
|
materialStyle?: boolean;
|
|
7
7
|
onClose?: () => void;
|
|
8
8
|
}>;
|
|
9
|
-
export default function DModalHeader({ showCloseButton, onClose, children, className, style, iconFamilyClass, iconFamilyPrefix, icon, materialStyle, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default function DModalHeader({ showCloseButton, onClose, children, className, style, iconFamilyClass, iconFamilyPrefix, icon: iconProp, materialStyle, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
export {};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import type { ReactDatePickerProps } from 'react-datepicker';
|
|
2
|
-
import type { BaseProps } from '../interface';
|
|
3
|
-
type Props = BaseProps & Omit<ReactDatePickerProps,
|
|
2
|
+
import type { BaseProps, FamilyIconProps } from '../interface';
|
|
3
|
+
type Props<CustomModifierNames extends string = never, WithRange extends boolean | undefined = undefined> = BaseProps & FamilyIconProps & Omit<ReactDatePickerProps<CustomModifierNames, WithRange>, 'selectsRange' | 'locale'> & {
|
|
4
4
|
date: string;
|
|
5
|
-
onChangeDate: (value: Date | null) => void;
|
|
6
5
|
locale?: Locale;
|
|
7
6
|
headerPrevYearAriaLabel?: string;
|
|
8
7
|
headerNextYearAriaLabel?: string;
|
|
8
|
+
iconPrevMonth?: string;
|
|
9
|
+
iconNextMonth?: string;
|
|
9
10
|
};
|
|
10
|
-
export default function DMonthPicker({
|
|
11
|
+
export default function DMonthPicker<CustomModifierNames extends string = never, WithRange extends boolean | undefined = undefined>({ onChange, date, locale, className, calendarClassName, headerPrevYearAriaLabel, headerNextYearAriaLabel, iconFamilyClass, iconFamilyPrefix, iconPrevMonth: iconPrevMonthProp, iconNextMonth: iconNextMonthProp, ...props }: Props<CustomModifierNames, WithRange>): import("react/jsx-runtime").JSX.Element;
|
|
11
12
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type PropsWithChildren } from 'react';
|
|
2
2
|
import type { BaseProps, FamilyIconProps } from '../../interface';
|
|
3
3
|
type Props = BaseProps & FamilyIconProps & PropsWithChildren<{
|
|
4
4
|
showCloseButton?: boolean;
|
|
@@ -6,5 +6,5 @@ type Props = BaseProps & FamilyIconProps & PropsWithChildren<{
|
|
|
6
6
|
materialStyle?: boolean;
|
|
7
7
|
onClose?: () => void;
|
|
8
8
|
}>;
|
|
9
|
-
export default function DOffcanvasHeader({ showCloseButton, onClose, children, className, style, iconFamilyClass, iconFamilyPrefix, icon, materialStyle, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default function DOffcanvasHeader({ showCloseButton, onClose, children, className, style, iconFamilyClass, iconFamilyPrefix, icon: iconProp, materialStyle, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
export {};
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import type { PropsWithChildren, ReactElement } from 'react';
|
|
2
2
|
import type { BaseProps } from '../interface';
|
|
3
3
|
type Props = BaseProps & PropsWithChildren<{
|
|
4
|
+
/**
|
|
5
|
+
* Component to render in call to action
|
|
6
|
+
* @param {boolean} open
|
|
7
|
+
* @returns {React.ReactElement}
|
|
8
|
+
*/
|
|
4
9
|
renderComponent: (open: boolean) => ReactElement;
|
|
5
10
|
open: boolean;
|
|
6
11
|
setOpen?: (open: boolean) => void;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { Props as SelectProps, GroupBase } from 'react-select';
|
|
2
|
+
import DSelectOptionCheck from './components/DSelectOptionCheck';
|
|
3
|
+
import DSelectOptionIcon from './components/DSelectOptionIcon';
|
|
4
|
+
import DSelectSingleValueIconText from './components/DSelectSingleValueIconText';
|
|
5
|
+
import DSelectDropdownIndicator from './components/DSelectDropdownIndicator';
|
|
6
|
+
import DSelectClearIndicator from './components/DSelectClearIndicator';
|
|
7
|
+
import DSelectMultiValueRemove from './components/DSelectMultiValueRemove';
|
|
8
|
+
import DSelectLoadingIndicator from './components/DSelectLoadingIndicator';
|
|
9
|
+
import DSelectOptionEmoji from './components/DSelectOptionEmoji';
|
|
10
|
+
import DSelectSingleValueEmoji from './components/DSelectSingleValueEmoji';
|
|
11
|
+
import DSelectSingleValueEmojiText from './components/DSelectSingleValueEmojiText';
|
|
12
|
+
import type { BaseProps, EndIconProps, FamilyIconProps, LabelIconProps, StartIconProps } from '../interface';
|
|
13
|
+
type Props<Option, IsMulti extends boolean, Group extends GroupBase<Option>> = BaseProps & FamilyIconProps & LabelIconProps & StartIconProps & EndIconProps & Omit<SelectProps<Option, IsMulti, Group>, 'isDisabled' | 'isClearable' | 'isLoading' | 'isRtl' | 'isSearchable' | 'isMulti'> & {
|
|
14
|
+
label?: string;
|
|
15
|
+
hint?: string;
|
|
16
|
+
invalid?: boolean;
|
|
17
|
+
valid?: boolean;
|
|
18
|
+
menuWithMaxContent?: boolean;
|
|
19
|
+
onIconStartClick?: (value?: SelectProps<Option, IsMulti, Group>['defaultValue']) => void;
|
|
20
|
+
onIconEndClick?: (value?: SelectProps<Option, IsMulti, Group>['defaultValue']) => void;
|
|
21
|
+
disabled?: SelectProps<Option, IsMulti, Group>['isDisabled'];
|
|
22
|
+
clearable?: SelectProps<Option, IsMulti, Group>['isClearable'];
|
|
23
|
+
loading?: SelectProps<Option, IsMulti, Group>['isLoading'];
|
|
24
|
+
rtl?: SelectProps<Option, IsMulti, Group>['isRtl'];
|
|
25
|
+
searchable?: SelectProps<Option, IsMulti, Group>['isSearchable'];
|
|
26
|
+
multi?: SelectProps<Option, IsMulti, Group>['isMulti'];
|
|
27
|
+
};
|
|
28
|
+
declare function DSelect<Option = unknown, IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>>({ id, className, style, label, labelIcon, labelIconFamilyClass, labelIconFamilyPrefix, hint, iconFamilyClass, iconFamilyPrefix, iconStart, iconStartFamilyClass, iconStartFamilyPrefix, iconStartAriaLabel, iconStartTabIndex, iconEnd, iconEndFamilyClass, iconEndFamilyPrefix, iconEndAriaLabel, iconEndTabIndex, invalid, valid, menuWithMaxContent, disabled, clearable, loading, rtl, searchable, multi, components, defaultValue, onIconStartClick, onIconEndClick, ...props }: Props<Option, IsMulti, Group>): import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
declare const _default: typeof DSelect & {
|
|
30
|
+
OptionCheck: typeof DSelectOptionCheck;
|
|
31
|
+
OptionIcon: typeof DSelectOptionIcon;
|
|
32
|
+
SingleValueIconText: typeof DSelectSingleValueIconText;
|
|
33
|
+
DropdownIndicator: typeof DSelectDropdownIndicator;
|
|
34
|
+
ClearIndicator: typeof DSelectClearIndicator;
|
|
35
|
+
MultiValueRemove: typeof DSelectMultiValueRemove;
|
|
36
|
+
LoadingIndicator: typeof DSelectLoadingIndicator;
|
|
37
|
+
OptionEmoji: typeof DSelectOptionEmoji;
|
|
38
|
+
SingleValueEmoji: typeof DSelectSingleValueEmoji;
|
|
39
|
+
SingleValueEmojiText: typeof DSelectSingleValueEmojiText;
|
|
40
|
+
};
|
|
41
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import type { GroupBase, ClearIndicatorProps } from 'react-select';
|
|
2
|
+
export default function DSelectClearIndicator<Option, IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>>(props: ClearIndicatorProps<Option, IsMulti, Group>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import type { GroupBase, DropdownIndicatorProps } from 'react-select';
|
|
2
|
+
export default function DSelectDropdownIndicator<Option, IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>>(props: DropdownIndicatorProps<Option, IsMulti, Group>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import type { GroupBase, LoadingIndicatorProps } from 'react-select';
|
|
2
|
+
export default function DSelectLoadingIndicator<Option, IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>>({ innerProps, }: LoadingIndicatorProps<Option, IsMulti, Group>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import type { GroupBase, MultiValueRemoveProps } from 'react-select';
|
|
2
|
+
export default function DSelectMultiValueRemove<Option, IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>>(props: MultiValueRemoveProps<Option, IsMulti, Group>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import type { GroupBase, OptionProps } from 'react-select';
|
|
2
|
+
export default function DSelectOptionCheck<Option = unknown, IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>>({ innerProps, children, isSelected, ...props }: OptionProps<Option, IsMulti, Group>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { GroupBase, OptionProps } from 'react-select';
|
|
2
|
+
export type OptionEmoji = {
|
|
3
|
+
label: string;
|
|
4
|
+
value: string;
|
|
5
|
+
emoji: string;
|
|
6
|
+
};
|
|
7
|
+
export default function DSelectOptionEmoji<Option, IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>>({ children, data, ...props }: OptionProps<Option, IsMulti, Group>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { GroupBase, OptionProps } from 'react-select';
|
|
2
|
+
export type OptionIcon = {
|
|
3
|
+
label: string;
|
|
4
|
+
value: string;
|
|
5
|
+
icon: string;
|
|
6
|
+
};
|
|
7
|
+
export default function DSelectOptionIcon<Option, IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>>({ children, data, ...props }: OptionProps<Option, IsMulti, Group>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import type { GroupBase, SingleValueProps } from 'react-select';
|
|
2
|
+
export default function DSelectSingleValueEmoji<Option, IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>>({ children, getValue, ...props }: SingleValueProps<Option, IsMulti, Group>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import type { GroupBase, SingleValueProps } from 'react-select';
|
|
2
|
+
export default function DSelectSingleValueEmojiText<Option, IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>>({ children, getValue, ...props }: SingleValueProps<Option, IsMulti, Group>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import type { GroupBase, SingleValueProps } from 'react-select';
|
|
2
|
+
export default function DSelectSingleValueIconText<Option, IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>>({ children, getValue, ...props }: SingleValueProps<Option, IsMulti, Group>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -7,9 +7,12 @@ export type Step = {
|
|
|
7
7
|
type Props = BaseProps & {
|
|
8
8
|
options: Array<Step>;
|
|
9
9
|
currentStep: number;
|
|
10
|
-
|
|
10
|
+
iconSuccess?: string;
|
|
11
|
+
iconSuccessFamilyClass?: string;
|
|
12
|
+
iconSuccessFamilyPrefix?: string;
|
|
13
|
+
iconSuccessMaterialStyle?: boolean;
|
|
11
14
|
vertical?: boolean;
|
|
12
15
|
breakpoint?: BreakpointSize;
|
|
13
16
|
};
|
|
14
|
-
export default function DStepper({ options, currentStep,
|
|
17
|
+
export default function DStepper({ options, currentStep, iconSuccess, iconSuccessFamilyClass, iconSuccessFamilyPrefix, iconSuccessMaterialStyle, vertical, breakpoint, className, style, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
15
18
|
export {};
|
|
@@ -6,8 +6,11 @@ type Step = {
|
|
|
6
6
|
type Props = BaseProps & {
|
|
7
7
|
options: Array<Step>;
|
|
8
8
|
currentStep: number;
|
|
9
|
-
|
|
9
|
+
iconSuccess?: string;
|
|
10
|
+
iconSuccessFamilyClass?: string;
|
|
11
|
+
iconSuccessFamilyPrefix?: string;
|
|
12
|
+
iconSuccessMaterialStyle?: boolean;
|
|
10
13
|
vertical?: boolean;
|
|
11
14
|
};
|
|
12
|
-
export default function DStepper({ options, currentStep,
|
|
15
|
+
export default function DStepper({ options, currentStep, iconSuccess: iconSuccessProp, iconSuccessFamilyClass, iconSuccessFamilyPrefix, iconSuccessMaterialStyle, vertical, className, style, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
13
16
|
export {};
|
|
@@ -5,7 +5,9 @@ export type ToastConfig = {
|
|
|
5
5
|
showClose?: boolean;
|
|
6
6
|
position?: ToastPosition;
|
|
7
7
|
autoClose?: number | false;
|
|
8
|
+
icon?: string;
|
|
9
|
+
iconClose?: string;
|
|
8
10
|
};
|
|
9
11
|
export default function useToast(): {
|
|
10
|
-
toast: (message: string, { position, type, showClose, autoClose, }?: ToastConfig) => void;
|
|
12
|
+
toast: (message: string, { position, type, showClose, autoClose, icon, iconClose, }?: ToastConfig) => void;
|
|
11
13
|
};
|
|
@@ -4,11 +4,9 @@ export { default as DBadge } from './DBadge';
|
|
|
4
4
|
export { default as DBoxFile } from './DBoxFile';
|
|
5
5
|
export { default as DButton } from './DButton';
|
|
6
6
|
export { default as DCard, DCardHeader, DCardBody, DCardFooter, } from './DCard';
|
|
7
|
-
export { default as DCardAccount } from './DCardAccount';
|
|
8
7
|
export { default as DCarousel, DCarouselSlide, } from './DCarousel';
|
|
9
8
|
export { default as DChip } from './DChip';
|
|
10
9
|
export { default as DCollapse } from './DCollapse';
|
|
11
|
-
export { default as DCollapseIconText } from './DCollapseIconText';
|
|
12
10
|
export { default as DCurrencyText } from './DCurrencyText';
|
|
13
11
|
export { default as DDatePicker } from './DDatePicker';
|
|
14
12
|
export { default as DIcon } from './DIcon';
|
|
@@ -22,8 +20,9 @@ export { default as DInputSearch } from './DInputSearch';
|
|
|
22
20
|
export { default as DInputPassword } from './DInputPassword';
|
|
23
21
|
export { default as DInputCheck } from './DInputCheck';
|
|
24
22
|
export { default as DInputPin } from './DInputPin';
|
|
25
|
-
export { default as DInputSelect, DInputSelectProps } from './DInputSelect';
|
|
23
|
+
export { default as DInputSelect, DInputSelectDefaultOption, DInputSelectProps } from './DInputSelect';
|
|
26
24
|
export { default as DInputSwitch } from './DInputSwitch';
|
|
25
|
+
export { default as DSelect } from './DSelect';
|
|
27
26
|
export { default as DList, DListItem, } from './DList';
|
|
28
27
|
export { default as DModal, DModalHeader, DModalBody, DModalFooter, } from './DModal';
|
|
29
28
|
export { default as DOffcanvas, DOffcanvasHeader, DOffcanvasBody, DOffcanvasFooter, } from './DOffcanvas';
|
|
@@ -19,11 +19,13 @@ export type BaseProps = {
|
|
|
19
19
|
export type FamilyIconProps = {
|
|
20
20
|
iconFamilyClass?: string;
|
|
21
21
|
iconFamilyPrefix?: string;
|
|
22
|
+
iconMaterialStyle?: boolean;
|
|
22
23
|
};
|
|
23
24
|
export type LabelIconProps = {
|
|
24
25
|
labelIcon?: string;
|
|
25
26
|
labelIconFamilyClass?: string;
|
|
26
27
|
labelIconFamilyPrefix?: string;
|
|
28
|
+
labelIconMaterialStyle?: boolean;
|
|
27
29
|
};
|
|
28
30
|
export type StartIconProps = {
|
|
29
31
|
iconStart?: string;
|
|
@@ -32,6 +34,7 @@ export type StartIconProps = {
|
|
|
32
34
|
iconStartFamilyPrefix?: string;
|
|
33
35
|
iconStartAriaLabel?: string;
|
|
34
36
|
iconStartTabIndex?: number;
|
|
37
|
+
iconStartMaterialStyle?: boolean;
|
|
35
38
|
};
|
|
36
39
|
export type EndIconProps = {
|
|
37
40
|
iconEnd?: string;
|
|
@@ -40,6 +43,11 @@ export type EndIconProps = {
|
|
|
40
43
|
iconEndFamilyPrefix?: string;
|
|
41
44
|
iconEndAriaLabel?: string;
|
|
42
45
|
iconEndTabIndex?: number;
|
|
46
|
+
iconEndMaterialStyle?: boolean;
|
|
47
|
+
};
|
|
48
|
+
export type StateIcons = {
|
|
49
|
+
invalidIcon?: string;
|
|
50
|
+
validIcon?: string;
|
|
43
51
|
};
|
|
44
52
|
export type AlertType = 'success' | 'info' | 'warning' | 'danger' | 'light' | 'dark' | 'primary' | 'secondary';
|
|
45
53
|
export type AlertTypeIconMap = {
|
|
@@ -1,22 +1,47 @@
|
|
|
1
1
|
import type { PropsWithChildren } from 'react';
|
|
2
|
+
import type { AlertTypeIconMap } from '../components/interface';
|
|
3
|
+
type CurrencyProps = {
|
|
4
|
+
symbol: string;
|
|
5
|
+
precision: number;
|
|
6
|
+
separator: string;
|
|
7
|
+
decimal: string;
|
|
8
|
+
};
|
|
9
|
+
type IconProps = {
|
|
10
|
+
familyClass: string;
|
|
11
|
+
familyPrefix: string;
|
|
12
|
+
materialStyle: boolean;
|
|
13
|
+
};
|
|
14
|
+
type IconMapProps = {
|
|
15
|
+
x: string;
|
|
16
|
+
xLg: string;
|
|
17
|
+
chevronDown: string;
|
|
18
|
+
chevronUp: string;
|
|
19
|
+
chevronLeft: string;
|
|
20
|
+
chevronRight: string;
|
|
21
|
+
alert: AlertTypeIconMap;
|
|
22
|
+
upload: string;
|
|
23
|
+
calendar: string;
|
|
24
|
+
check: string;
|
|
25
|
+
input: {
|
|
26
|
+
invalid: string;
|
|
27
|
+
valid: string;
|
|
28
|
+
search: string;
|
|
29
|
+
show: string;
|
|
30
|
+
hide: string;
|
|
31
|
+
decrease: string;
|
|
32
|
+
increase: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
2
35
|
type Props = {
|
|
3
36
|
language: string;
|
|
4
|
-
currency:
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
separator: string;
|
|
8
|
-
decimal: string;
|
|
9
|
-
};
|
|
10
|
-
icon: {
|
|
11
|
-
familyClass?: string;
|
|
12
|
-
familyPrefix?: string;
|
|
13
|
-
materialStyle?: boolean;
|
|
14
|
-
};
|
|
37
|
+
currency: CurrencyProps;
|
|
38
|
+
icon: IconProps;
|
|
39
|
+
iconMap: IconMapProps;
|
|
15
40
|
};
|
|
16
41
|
type Context = Props & {
|
|
17
42
|
setContext: (value: Props) => void;
|
|
18
43
|
};
|
|
19
44
|
export declare const DContext: import("react").Context<Context>;
|
|
20
|
-
export declare function DContextProvider({ language, currency, icon, children, }: PropsWithChildren<Partial<Props>>): import("react/jsx-runtime").JSX.Element;
|
|
45
|
+
export declare function DContextProvider({ language, currency, icon, iconMap, children, }: PropsWithChildren<Partial<Props>>): import("react/jsx-runtime").JSX.Element;
|
|
21
46
|
export declare function useDContext(): Context;
|
|
22
47
|
export {};
|