@dynamic-framework/ui-react 1.25.0 → 1.27.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 +313 -934
- package/dist/css/dynamic-ui-non-root.min.css +2 -2
- package/dist/css/dynamic-ui-root.css +228 -152
- package/dist/css/dynamic-ui-root.min.css +2 -2
- package/dist/css/dynamic-ui.css +540 -1085
- package/dist/css/dynamic-ui.min.css +2 -2
- package/dist/index.esm.js +230 -63
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +230 -59
- package/dist/index.js.map +1 -1
- package/dist/types/components/DButtonIcon/DButtonIcon.d.ts +19 -0
- package/dist/types/components/DButtonIcon/index.d.ts +2 -0
- package/dist/types/components/DInput/DInput.d.ts +3 -2
- package/dist/types/components/DInputCheck/DInputCheck.d.ts +4 -2
- package/dist/types/components/DInputCounter/DInputCounter.d.ts +2 -1
- package/dist/types/components/DInputCurrency/DInputCurrency.d.ts +2 -1
- package/dist/types/components/DInputCurrencyBase/DInputCurrencyBase.d.ts +2 -1
- package/dist/types/components/DInputMask/DInputMask.d.ts +2 -1
- package/dist/types/components/DInputPin/DInputPin.d.ts +2 -2
- package/dist/types/components/DInputRange/DInputRange.d.ts +8 -0
- package/dist/types/components/DInputRange/index.d.ts +2 -0
- package/dist/types/components/DInputSearch/DInputSearch.d.ts +2 -1
- package/dist/types/components/DInputSelect/DInputSelect.d.ts +6 -3
- package/dist/types/components/DInputSwitch/DInputSwitch.d.ts +4 -2
- package/dist/types/components/DQuickActionCheck/DQuickActionCheck.d.ts +2 -2
- package/dist/types/components/DQuickActionSelect/DQuickActionSelect.d.ts +2 -2
- package/dist/types/components/DQuickActionSwitch/DQuickActionSwitch.d.ts +2 -2
- package/dist/types/components/DSelect/DSelect.d.ts +3 -3
- package/dist/types/components/DStepper/DStepper.d.ts +2 -1
- package/dist/types/components/DStepperDesktop/DStepperDesktop.d.ts +2 -1
- package/dist/types/components/DTableHead/DTableHead.d.ts +9 -0
- package/dist/types/components/DTableHead/index.d.ts +2 -0
- package/dist/types/components/DTabs/DTabs.d.ts +2 -1
- package/dist/types/components/DToast/DToast.d.ts +11 -0
- package/dist/types/components/DToast/components/DToastBody.d.ts +5 -0
- package/dist/types/components/DToast/components/DToastHeader.d.ts +5 -0
- package/dist/types/components/DToast/index.d.ts +4 -0
- package/dist/types/components/DToastContainer/DToastContainer.d.ts +2 -14
- package/dist/types/components/DToastContainer/useDToast.d.ts +11 -12
- package/dist/types/components/index.d.ts +4 -0
- package/dist/types/contexts/DContext.d.ts +1 -1
- package/dist/types/hooks/useFormatCurrency.d.ts +2 -1
- package/package.json +4 -5
- package/src/style/abstracts/_mixins.scss +41 -21
- package/src/style/abstracts/variables/_+import.scss +12 -3
- package/src/style/abstracts/variables/_border.scss +1 -1
- package/src/style/abstracts/variables/_buttons.scss +3 -5
- package/src/style/abstracts/variables/_colors.scss +10 -10
- package/src/style/abstracts/variables/_forms.scss +28 -50
- package/src/style/abstracts/variables/_quick-action-switch.scss +0 -2
- package/src/style/base/_+import.scss +1 -0
- package/src/style/base/_alert.scss +1 -1
- package/src/style/base/_buttons.scss +41 -16
- package/src/style/base/_form-check.scss +2 -19
- package/src/style/base/_form-range.scss +52 -0
- package/src/style/base/_form-switch.scss +4 -53
- package/src/style/base/_input-group.scss +1 -1
- package/src/style/components/_+import.scss +3 -2
- package/src/style/components/_d-button-icon.scss +26 -0
- package/src/style/components/_d-close.scss +11 -0
- package/src/style/components/_d-modal.scss +0 -11
- package/src/style/components/_d-offcanvas.scss +0 -11
- package/src/style/components/_d-quick-action-switch.scss +0 -7
- package/src/style/components/_d-select.scss +2 -0
- package/src/style/components/_d-table-head.scss +18 -0
- package/src/style/root/_root.scss +42 -36
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { MouseEvent } from 'react';
|
|
2
|
+
import type { BaseProps, ButtonType, ButtonVariant, ComponentSize, FamilyIconProps, InputState } from '../interface';
|
|
3
|
+
type Props = BaseProps & FamilyIconProps & {
|
|
4
|
+
id?: string;
|
|
5
|
+
icon: string;
|
|
6
|
+
size?: ComponentSize;
|
|
7
|
+
variant?: ButtonVariant;
|
|
8
|
+
theme?: string;
|
|
9
|
+
state?: InputState;
|
|
10
|
+
type?: ButtonType;
|
|
11
|
+
loading?: boolean;
|
|
12
|
+
loadingAriaLabel?: string;
|
|
13
|
+
ariaLabel?: string;
|
|
14
|
+
stopPropagationEnabled?: boolean;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
17
|
+
};
|
|
18
|
+
export default function DButtonIcon({ id, icon, size, className, variant, state, loadingAriaLabel, iconMaterialStyle, ariaLabel, theme, type, loading, disabled, stopPropagationEnabled, style, iconFamilyClass, iconFamilyPrefix, onClick, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export {};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
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 & {
|
|
2
|
+
import type { BaseProps, ComponentSize, 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" | "size" | "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;
|
|
7
7
|
hint?: string | undefined;
|
|
8
|
+
size?: ComponentSize | undefined;
|
|
8
9
|
invalid?: boolean | undefined;
|
|
9
10
|
valid?: boolean | undefined;
|
|
10
11
|
floatingLabel?: boolean | undefined;
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import type { ChangeEvent } from 'react';
|
|
2
2
|
import type { BaseProps, InputCheckType } from '../interface';
|
|
3
3
|
type Props = BaseProps & {
|
|
4
|
+
id?: string;
|
|
4
5
|
type: InputCheckType;
|
|
5
6
|
name?: string;
|
|
6
7
|
label?: string;
|
|
7
8
|
ariaLabel?: string;
|
|
8
9
|
checked?: boolean;
|
|
9
|
-
id: string;
|
|
10
10
|
disabled?: boolean;
|
|
11
|
+
invalid?: boolean;
|
|
12
|
+
valid?: boolean;
|
|
11
13
|
indeterminate?: boolean;
|
|
12
14
|
value?: string;
|
|
13
15
|
onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
14
16
|
};
|
|
15
|
-
export default function DInputCheck({ type, name, label, ariaLabel, checked,
|
|
17
|
+
export default function DInputCheck({ id: idProp, type, name, label, ariaLabel, checked, disabled, invalid, valid, indeterminate, value, onChange, className, style, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
16
18
|
export {};
|
|
@@ -5,11 +5,12 @@ 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 | 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 & {
|
|
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" | "size" | "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;
|
|
12
12
|
hint?: string | undefined;
|
|
13
|
+
size?: import("../interface").ComponentSize | undefined;
|
|
13
14
|
invalid?: boolean | undefined;
|
|
14
15
|
valid?: boolean | undefined;
|
|
15
16
|
floatingLabel?: boolean | undefined;
|
|
@@ -6,11 +6,12 @@ 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 | 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
|
+
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" | "size" | "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;
|
|
13
13
|
hint?: string | undefined;
|
|
14
|
+
size?: import("../interface").ComponentSize | undefined;
|
|
14
15
|
invalid?: boolean | undefined;
|
|
15
16
|
valid?: boolean | undefined;
|
|
16
17
|
floatingLabel?: boolean | undefined;
|
|
@@ -8,11 +8,12 @@ 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 | 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 & {
|
|
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" | "size" | "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;
|
|
15
15
|
hint?: string | undefined;
|
|
16
|
+
size?: import("../interface").ComponentSize | undefined;
|
|
16
17
|
invalid?: boolean | undefined;
|
|
17
18
|
valid?: boolean | undefined;
|
|
18
19
|
floatingLabel?: boolean | undefined;
|
|
@@ -1,10 +1,11 @@
|
|
|
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 | 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 & {
|
|
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" | "size" | "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;
|
|
7
7
|
hint?: string | undefined;
|
|
8
|
+
size?: import("../interface").ComponentSize | undefined;
|
|
8
9
|
invalid?: boolean | undefined;
|
|
9
10
|
valid?: boolean | undefined;
|
|
10
11
|
floatingLabel?: boolean | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { BaseProps, FamilyIconProps, LabelIconProps, PinInputMode, PinInputType, StateIcons } from '../interface';
|
|
2
2
|
type Props = BaseProps & LabelIconProps & FamilyIconProps & StateIcons & {
|
|
3
|
-
id
|
|
3
|
+
id?: string;
|
|
4
4
|
label?: string;
|
|
5
5
|
placeholder?: string;
|
|
6
6
|
type?: PinInputType;
|
|
@@ -15,5 +15,5 @@ type Props = BaseProps & LabelIconProps & FamilyIconProps & StateIcons & {
|
|
|
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, invalidIcon: invalidIconProp, validIcon: validIconProp, innerInputMode, hint, invalid, valid, className, style, onChange, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export default function DInputPin({ id: idProp, 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 {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { BaseProps, LabelIconProps } from '../interface';
|
|
3
|
+
declare const ForwardedDInputRange: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "type">, "label" | "ariaLabel" | keyof BaseProps | keyof LabelIconProps | "filledValue"> & BaseProps & LabelIconProps & {
|
|
4
|
+
label?: string | undefined;
|
|
5
|
+
ariaLabel?: string | undefined;
|
|
6
|
+
filledValue?: boolean | undefined;
|
|
7
|
+
} & import("react").RefAttributes<HTMLInputElement>>;
|
|
8
|
+
export default ForwardedDInputRange;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
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 & {
|
|
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" | "size" | "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 & {
|
|
3
3
|
value?: string | undefined;
|
|
4
4
|
label?: string | undefined;
|
|
5
5
|
loading?: boolean | undefined;
|
|
6
6
|
hint?: string | undefined;
|
|
7
|
+
size?: import("../interface").ComponentSize | undefined;
|
|
7
8
|
invalid?: boolean | undefined;
|
|
8
9
|
valid?: boolean | undefined;
|
|
9
10
|
floatingLabel?: boolean | undefined;
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import type { FocusEvent, MouseEvent } from 'react';
|
|
2
|
-
import type { BaseProps, EndIconProps, LabelIconProps, StartIconProps } from '../interface';
|
|
2
|
+
import type { BaseProps, ComponentSize, EndIconProps, FamilyIconProps, LabelIconProps, StartIconProps, StateIcons } from '../interface';
|
|
3
3
|
export type DefaultOption = {
|
|
4
4
|
value: string | number;
|
|
5
5
|
label: string;
|
|
6
6
|
};
|
|
7
|
-
export type Props<T> = BaseProps & LabelIconProps & StartIconProps & EndIconProps & {
|
|
7
|
+
export type Props<T> = BaseProps & FamilyIconProps & LabelIconProps & StartIconProps & EndIconProps & StateIcons & {
|
|
8
8
|
id?: string;
|
|
9
9
|
name?: string;
|
|
10
10
|
label?: string;
|
|
11
11
|
disabled?: boolean;
|
|
12
12
|
loading?: boolean;
|
|
13
|
+
invalid?: boolean;
|
|
14
|
+
valid?: boolean;
|
|
13
15
|
hint?: string;
|
|
14
16
|
floatingLabel?: boolean;
|
|
15
17
|
onBlur?: (event: FocusEvent) => void;
|
|
@@ -17,8 +19,9 @@ export type Props<T> = BaseProps & LabelIconProps & StartIconProps & EndIconProp
|
|
|
17
19
|
onIconEndClick?: (event: MouseEvent) => void;
|
|
18
20
|
options: Array<T>;
|
|
19
21
|
value?: string | number;
|
|
22
|
+
size?: ComponentSize;
|
|
20
23
|
onChange?: (selectedOption: T) => void;
|
|
21
24
|
valueExtractor?: (item: T) => string | number;
|
|
22
25
|
labelExtractor?: (item: T) => string;
|
|
23
26
|
};
|
|
24
|
-
export default function DInputSelect<T extends object = DefaultOption>({ id, name, label, className, style, options, labelIcon, labelIconFamilyClass, labelIconFamilyPrefix, disabled, loading, iconStart, iconStartFamilyClass, iconStartFamilyPrefix, iconStartAriaLabel, iconEnd, iconEndFamilyClass, iconEndFamilyPrefix, iconEndAriaLabel, hint, value, floatingLabel, valueExtractor, labelExtractor, onChange, onBlur, onIconStartClick, onIconEndClick, }: Props<T>): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export default function DInputSelect<T extends object = DefaultOption>({ id: idProp, name, label, className, style, options, labelIcon, labelIconFamilyClass, labelIconFamilyPrefix, disabled, loading, iconStart, iconStartFamilyClass, iconStartFamilyPrefix, iconStartAriaLabel, iconEnd, iconEndFamilyClass, iconEndFamilyPrefix, iconEndAriaLabel, iconFamilyClass, iconFamilyPrefix, iconMaterialStyle, invalidIcon: invalidIconProp, validIcon: validIconProp, hint, value, size, floatingLabel, invalid, valid, valueExtractor, labelExtractor, onChange, onBlur, onIconStartClick, onIconEndClick, }: Props<T>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import type { BaseProps } from '../interface';
|
|
2
2
|
type Props = BaseProps & {
|
|
3
|
+
id?: string;
|
|
3
4
|
label?: string;
|
|
4
5
|
ariaLabel?: string;
|
|
5
|
-
id: string;
|
|
6
6
|
name?: string;
|
|
7
7
|
checked?: boolean;
|
|
8
8
|
disabled?: boolean;
|
|
9
|
+
invalid?: boolean;
|
|
10
|
+
valid?: boolean;
|
|
9
11
|
readonly?: boolean;
|
|
10
12
|
onChange?: (isChecked: boolean) => void;
|
|
11
13
|
};
|
|
12
|
-
export default function DInputSwitch({ label, ariaLabel,
|
|
14
|
+
export default function DInputSwitch({ id: idProp, label, ariaLabel, name, checked, disabled, invalid, valid, readonly, className, style, onChange, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
13
15
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ChangeEvent } from 'react';
|
|
2
2
|
import type { BaseProps } from '../interface';
|
|
3
3
|
type Props = BaseProps & {
|
|
4
|
-
id
|
|
4
|
+
id?: string;
|
|
5
5
|
name: string;
|
|
6
6
|
value: string;
|
|
7
7
|
line1: string;
|
|
@@ -10,5 +10,5 @@ type Props = BaseProps & {
|
|
|
10
10
|
checked?: boolean;
|
|
11
11
|
onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
12
12
|
};
|
|
13
|
-
export default function DQuickActionCheck({ id, name, value, line1, line2, line3, className, style, checked, onChange, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export default function DQuickActionCheck({ id: idProp, name, value, line1, line2, line3, className, style, checked, onChange, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
14
14
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ChangeEvent } from 'react';
|
|
2
2
|
import type { BaseProps } from '../interface';
|
|
3
3
|
type Props = BaseProps & {
|
|
4
|
-
id
|
|
4
|
+
id?: string;
|
|
5
5
|
name: string;
|
|
6
6
|
value: string;
|
|
7
7
|
line1: string;
|
|
@@ -9,5 +9,5 @@ type Props = BaseProps & {
|
|
|
9
9
|
selected?: boolean;
|
|
10
10
|
onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
11
11
|
};
|
|
12
|
-
export default function DQuickActionSelect({ id, name, value, line1, line2, className, style, selected, onChange, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export default function DQuickActionSelect({ id: idProp, name, value, line1, line2, className, style, selected, onChange, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { BaseProps } from '../interface';
|
|
2
2
|
type Props = BaseProps & {
|
|
3
|
-
id
|
|
3
|
+
id?: string;
|
|
4
4
|
name?: string;
|
|
5
5
|
label: string;
|
|
6
6
|
hint: string;
|
|
@@ -8,5 +8,5 @@ type Props = BaseProps & {
|
|
|
8
8
|
disabled?: boolean;
|
|
9
9
|
onClick?: (isChecked: boolean | undefined) => void;
|
|
10
10
|
};
|
|
11
|
-
export default function DQuickActionSwitch({ id, name, label, hint, checked, disabled, className, style, onClick, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default function DQuickActionSwitch({ id: idProp, name, label, hint, checked, disabled, className, style, onClick, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
export {};
|
|
@@ -9,8 +9,8 @@ import DSelectLoadingIndicator from './components/DSelectLoadingIndicator';
|
|
|
9
9
|
import DSelectOptionEmoji from './components/DSelectOptionEmoji';
|
|
10
10
|
import DSelectSingleValueEmoji from './components/DSelectSingleValueEmoji';
|
|
11
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'> & {
|
|
12
|
+
import type { BaseProps, EndIconProps, FamilyIconProps, LabelIconProps, StartIconProps, StateIcons } from '../interface';
|
|
13
|
+
type Props<Option, IsMulti extends boolean, Group extends GroupBase<Option>> = BaseProps & FamilyIconProps & LabelIconProps & StartIconProps & EndIconProps & StateIcons & Omit<SelectProps<Option, IsMulti, Group>, 'isDisabled' | 'isClearable' | 'isLoading' | 'isRtl' | 'isSearchable' | 'isMulti'> & {
|
|
14
14
|
label?: string;
|
|
15
15
|
hint?: string;
|
|
16
16
|
invalid?: boolean;
|
|
@@ -25,7 +25,7 @@ type Props<Option, IsMulti extends boolean, Group extends GroupBase<Option>> = B
|
|
|
25
25
|
searchable?: SelectProps<Option, IsMulti, Group>['isSearchable'];
|
|
26
26
|
multi?: SelectProps<Option, IsMulti, Group>['isMulti'];
|
|
27
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;
|
|
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, invalidIcon: invalidIconProp, validIcon: validIconProp, menuWithMaxContent, disabled, clearable, loading, rtl, searchable, multi, components, defaultValue, onIconStartClick, onIconEndClick, ...props }: Props<Option, IsMulti, Group>): import("react/jsx-runtime").JSX.Element;
|
|
29
29
|
declare const _default: typeof DSelect & {
|
|
30
30
|
OptionCheck: typeof DSelectOptionCheck;
|
|
31
31
|
OptionIcon: typeof DSelectOptionIcon;
|
|
@@ -12,7 +12,8 @@ type Props = BaseProps & {
|
|
|
12
12
|
iconSuccessFamilyPrefix?: string;
|
|
13
13
|
iconSuccessMaterialStyle?: boolean;
|
|
14
14
|
vertical?: boolean;
|
|
15
|
+
completed?: boolean;
|
|
15
16
|
breakpoint?: BreakpointSize;
|
|
16
17
|
};
|
|
17
|
-
export default function DStepper({ options, currentStep, iconSuccess, iconSuccessFamilyClass, iconSuccessFamilyPrefix, iconSuccessMaterialStyle, vertical, breakpoint, className, style, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export default function DStepper({ options, currentStep, iconSuccess, iconSuccessFamilyClass, iconSuccessFamilyPrefix, iconSuccessMaterialStyle, vertical, breakpoint, className, completed, style, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
18
19
|
export {};
|
|
@@ -11,6 +11,7 @@ type Props = BaseProps & {
|
|
|
11
11
|
iconSuccessFamilyPrefix?: string;
|
|
12
12
|
iconSuccessMaterialStyle?: boolean;
|
|
13
13
|
vertical?: boolean;
|
|
14
|
+
completed?: boolean;
|
|
14
15
|
};
|
|
15
|
-
export default function DStepper({ options, currentStep, iconSuccess: iconSuccessProp, iconSuccessFamilyClass, iconSuccessFamilyPrefix, iconSuccessMaterialStyle, vertical, className, style, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export default function DStepper({ options, currentStep, iconSuccess: iconSuccessProp, iconSuccessFamilyClass, iconSuccessFamilyPrefix, iconSuccessMaterialStyle, vertical, completed, className, style, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
16
17
|
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseProps } from '../interface';
|
|
2
|
+
type Props = BaseProps & {
|
|
3
|
+
field: string;
|
|
4
|
+
label: string;
|
|
5
|
+
value?: string;
|
|
6
|
+
onChange: (value: string) => void;
|
|
7
|
+
};
|
|
8
|
+
export default function DTableHead({ className, style, field, label, value, onChange, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -8,13 +8,14 @@ export type DTabOption = {
|
|
|
8
8
|
};
|
|
9
9
|
export type TabVariant = 'tabs' | 'pills' | 'underline';
|
|
10
10
|
type Props = BaseProps & PropsWithChildren<{
|
|
11
|
+
classNameTab?: string;
|
|
11
12
|
onChange: (option: DTabOption) => void;
|
|
12
13
|
options: Array<DTabOption>;
|
|
13
14
|
defaultSelected: string;
|
|
14
15
|
vertical?: boolean;
|
|
15
16
|
variant?: TabVariant;
|
|
16
17
|
}>;
|
|
17
|
-
declare function DTabs({ children, defaultSelected, onChange, options, className, style, vertical, variant, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
declare function DTabs({ children, defaultSelected, onChange, options, className, classNameTab, style, vertical, variant, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
18
19
|
declare const _default: typeof DTabs & {
|
|
19
20
|
Tab: typeof DTabContent;
|
|
20
21
|
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
import DToastHeader from './components/DToastHeader';
|
|
3
|
+
import DToastBody from './components/DToastBody';
|
|
4
|
+
import { BaseProps } from '../interface';
|
|
5
|
+
type Props = PropsWithChildren<BaseProps>;
|
|
6
|
+
declare function DToast({ children, className, style }: Props): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare const _default: typeof DToast & {
|
|
8
|
+
Header: typeof DToastHeader;
|
|
9
|
+
Body: typeof DToastBody;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
@@ -1,14 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import { BaseProps } from '../interface';
|
|
4
|
-
type Props = BaseProps & Pick<ToastContainerProps, 'autoClose' | 'closeOnClick' | 'position'> & {
|
|
5
|
-
containerId?: string;
|
|
6
|
-
stacked?: boolean;
|
|
7
|
-
style?: CSSProperties & {
|
|
8
|
-
'--toastify-toast-width': string | number;
|
|
9
|
-
[index: string]: string | number;
|
|
10
|
-
};
|
|
11
|
-
transition?: 'slide' | 'flip' | 'bounce' | 'zoom';
|
|
12
|
-
};
|
|
13
|
-
export default function DToastContainer({ style, className, closeOnClick, position, autoClose, stacked, transition, containerId, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
export {};
|
|
1
|
+
import { ToasterProps } from 'react-hot-toast';
|
|
2
|
+
export default function DToastContainer({ containerClassName, position, reverseOrder, containerStyle, toastOptions, gutter, }: ToasterProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { Renderable, Toast, ValueFunction } from 'react-hot-toast';
|
|
2
|
+
type ToastData = {
|
|
3
|
+
title: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
timestamp?: string;
|
|
5
6
|
icon?: string;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
autoClose?: number | false;
|
|
10
|
-
stacked?: boolean;
|
|
11
|
-
containerId?: string;
|
|
12
|
-
transition?: 'slide' | 'flip' | 'bounce' | 'zoom';
|
|
7
|
+
closeIcon?: string;
|
|
8
|
+
theme?: string;
|
|
9
|
+
soft?: boolean;
|
|
13
10
|
};
|
|
11
|
+
type Props = Partial<Pick<Toast, 'id' | 'duration' | 'position'>>;
|
|
14
12
|
export default function useDToast(): {
|
|
15
|
-
toast: (
|
|
13
|
+
toast: (data: ToastData | ValueFunction<Renderable, Toast>, toastProps: Props) => string;
|
|
16
14
|
};
|
|
15
|
+
export {};
|
|
@@ -2,6 +2,7 @@ export { default as DAlert } from './DAlert';
|
|
|
2
2
|
export { default as DBadge } from './DBadge';
|
|
3
3
|
export { default as DBoxFile } from './DBoxFile';
|
|
4
4
|
export { default as DButton } from './DButton';
|
|
5
|
+
export { default as DButtonIcon } from './DButtonIcon';
|
|
5
6
|
export { default as DCard, DCardHeader, DCardBody, DCardFooter, } from './DCard';
|
|
6
7
|
export { default as DCarousel, DCarouselSlide, } from './DCarousel';
|
|
7
8
|
export { default as DChip } from './DChip';
|
|
@@ -21,6 +22,7 @@ export { default as DInputCheck } from './DInputCheck';
|
|
|
21
22
|
export { default as DInputPin } from './DInputPin';
|
|
22
23
|
export { default as DInputSelect, DInputSelectDefaultOption, DInputSelectProps } from './DInputSelect';
|
|
23
24
|
export { default as DInputSwitch } from './DInputSwitch';
|
|
25
|
+
export { default as DInputRange } from './DInputRange';
|
|
24
26
|
export { default as DSelect } from './DSelect';
|
|
25
27
|
export { default as DList, DListItem, } from './DList';
|
|
26
28
|
export { default as DModal, DModalHeader, DModalBody, DModalFooter, } from './DModal';
|
|
@@ -38,4 +40,6 @@ export { default as DStepperDesktop } from './DStepperDesktop';
|
|
|
38
40
|
export { default as DStepperMobile } from './DStepperMobile';
|
|
39
41
|
export { default as DTooltip } from './DTooltip';
|
|
40
42
|
export { default as DTabs, useTabContext, DTabOption, DTabContent, } from './DTabs';
|
|
43
|
+
export { default as DToast } from './DToast';
|
|
41
44
|
export { default as DToastContainer, useDToast, } from './DToastContainer';
|
|
45
|
+
export { default as DTableHead } from './DTableHead';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { PropsWithChildren } from 'react';
|
|
2
2
|
import { PortalContextProps } from './DPortalContext';
|
|
3
3
|
import type { AlertTypeIconMap } from '../components/interface';
|
|
4
|
-
type CurrencyProps = {
|
|
4
|
+
export type CurrencyProps = {
|
|
5
5
|
symbol: string;
|
|
6
6
|
precision: number;
|
|
7
7
|
separator: string;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"sideEffects": [
|
|
4
4
|
"*.css"
|
|
5
5
|
],
|
|
6
|
-
"version": "1.
|
|
6
|
+
"version": "1.27.0",
|
|
7
7
|
"description": "React Dynamic Framework",
|
|
8
8
|
"license": "https://github.com/dynamic-framework/dynamic-ui/blob/master/libraries/dynamic-ui-react/LICENSE.md",
|
|
9
9
|
"repository": {
|
|
@@ -81,9 +81,9 @@
|
|
|
81
81
|
"react-content-loader": "^6.2.1",
|
|
82
82
|
"react-datepicker": "^4.21.0",
|
|
83
83
|
"react-dropzone": "^14.2.3",
|
|
84
|
+
"react-hot-toast": "^2.4.1",
|
|
84
85
|
"react-responsive-pagination": "^2.4.1",
|
|
85
|
-
"react-select": "^5.8.0"
|
|
86
|
-
"react-toastify": "^10.0.0"
|
|
86
|
+
"react-select": "^5.8.0"
|
|
87
87
|
},
|
|
88
88
|
"devDependencies": {
|
|
89
89
|
"@babel/core": "^7.23.2",
|
|
@@ -116,7 +116,6 @@
|
|
|
116
116
|
"autoprefixer": "^10.4.16",
|
|
117
117
|
"axe-playwright": "^1.2.3",
|
|
118
118
|
"babel-loader": "^9.1.3",
|
|
119
|
-
"bootstrap": "^5.3.2",
|
|
120
119
|
"eslint": "^8.52.0",
|
|
121
120
|
"eslint-config-airbnb": "^19.0.4",
|
|
122
121
|
"eslint-config-airbnb-typescript": "^17.1.0",
|
|
@@ -156,5 +155,5 @@
|
|
|
156
155
|
"optional": true
|
|
157
156
|
}
|
|
158
157
|
},
|
|
159
|
-
"gitHead": "
|
|
158
|
+
"gitHead": "6d8d838d164ddfddbb407e5bac99965970656a64"
|
|
160
159
|
}
|