@dynamic-framework/ui-react 1.10.0 → 1.11.1
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 +8 -4
- package/dist/css/dynamic-ui-non-root.min.css +1 -1
- package/dist/css/dynamic-ui.css +8 -4
- package/dist/css/dynamic-ui.min.css +1 -1
- package/dist/index.esm.js +77 -13
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +77 -13
- package/dist/index.js.map +1 -1
- package/dist/types/components/DBoxFile/DBoxFile.d.ts +1 -2
- package/dist/types/components/DInput/DInput.d.ts +3 -2
- package/dist/types/components/DInputCounter/DInputCounter.d.ts +3 -2
- package/dist/types/components/DInputCurrency/DInputCurrency.d.ts +3 -2
- package/dist/types/components/DInputCurrencyBase/DInputCurrencyBase.d.ts +3 -2
- package/dist/types/components/DInputSearch/DInputSearch.d.ts +3 -2
- package/dist/types/components/DInputSelect/DInputSelect.d.ts +5 -4
- package/dist/types/components/interface.d.ts +1 -1
- package/package.json +2 -2
- package/src/style/components/_d-input-pin.scss +2 -6
- package/src/style/components/_d-input-select.scss +8 -1
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import type { PropsWithChildren } from 'react';
|
|
2
2
|
import type { DropzoneOptions } from 'react-dropzone';
|
|
3
3
|
import type { BaseProps, FamilyIconProps } from '../interface';
|
|
4
|
-
type Props = BaseProps & FamilyIconProps & PropsWithChildren<Pick<DropzoneOptions, 'accept' | 'minSize' | 'maxSize' | 'maxFiles' | 'onDrop' | 'onDropAccepted' | 'onDropRejected' | 'onFileDialogCancel' | 'onFileDialogOpen'> & {
|
|
4
|
+
type Props = BaseProps & FamilyIconProps & PropsWithChildren<Pick<DropzoneOptions, 'accept' | 'minSize' | 'maxSize' | 'maxFiles' | 'onDrop' | 'onDropAccepted' | 'onDropRejected' | 'onFileDialogCancel' | 'onFileDialogOpen' | 'disabled'> & {
|
|
5
5
|
icon?: string;
|
|
6
|
-
disabled: DropzoneOptions['disabled'];
|
|
7
6
|
}>;
|
|
8
7
|
export default function DBoxFile({ icon, iconFamilyClass, iconFamilyPrefix, disabled, children, className, style, ...dropzoneOptions }: Props): import("react/jsx-runtime").JSX.Element;
|
|
9
8
|
export {};
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
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" | "inputStart" | "onIconStartClick" | "onIconEndClick"> & BaseProps & FamilyIconProps & LabelIconProps & StartIconProps & EndIconProps & {
|
|
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" | "onIconStartClick" | "onIconEndClick"> & BaseProps & FamilyIconProps & LabelIconProps & StartIconProps & EndIconProps & {
|
|
4
4
|
value?: string | undefined;
|
|
5
5
|
label?: string | undefined;
|
|
6
6
|
loading?: boolean | undefined;
|
|
7
7
|
hint?: string | undefined;
|
|
8
8
|
invalid?: boolean | undefined;
|
|
9
9
|
valid?: boolean | undefined;
|
|
10
|
+
floatingLabel?: boolean | undefined;
|
|
10
11
|
inputStart?: ReactNode;
|
|
11
|
-
onChange?: ((value
|
|
12
|
+
onChange?: ((value: string) => void) | undefined;
|
|
12
13
|
onIconStartClick?: ((value?: string) => void) | undefined;
|
|
13
14
|
onIconEndClick?: ((value?: string) => void) | undefined;
|
|
14
15
|
} & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -5,15 +5,16 @@ 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" | "inputStart" | "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 | "hint" | "valid" | "floatingLabel" | "inputStart" | "onIconStartClick" | "onIconEndClick"> & import("../interface").BaseProps & import("../interface").FamilyIconProps & import("../interface").LabelIconProps & import("../interface").StartIconProps & import("../interface").EndIconProps & {
|
|
9
9
|
value?: string | undefined;
|
|
10
10
|
label?: string | undefined;
|
|
11
11
|
loading?: boolean | undefined;
|
|
12
12
|
hint?: string | undefined;
|
|
13
13
|
invalid?: boolean | undefined;
|
|
14
14
|
valid?: boolean | undefined;
|
|
15
|
+
floatingLabel?: boolean | undefined;
|
|
15
16
|
inputStart?: import("react").ReactNode;
|
|
16
|
-
onChange?: ((value
|
|
17
|
+
onChange?: ((value: string) => void) | undefined;
|
|
17
18
|
onIconStartClick?: ((value?: string | undefined) => void) | undefined;
|
|
18
19
|
onIconEndClick?: ((value?: string | undefined) => void) | undefined;
|
|
19
20
|
} & import("react").RefAttributes<HTMLInputElement>, "ref">, "type" | "value" | "onChange">, keyof NonDInputProps> & NonDInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -6,15 +6,16 @@ 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" | "inputStart" | "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 | "hint" | "valid" | "floatingLabel" | "inputStart" | "onIconStartClick" | "onIconEndClick"> & import("../interface").BaseProps & import("../interface").FamilyIconProps & import("../interface").LabelIconProps & import("../interface").StartIconProps & import("../interface").EndIconProps & {
|
|
10
10
|
value?: string | undefined;
|
|
11
11
|
label?: string | undefined;
|
|
12
12
|
loading?: boolean | undefined;
|
|
13
13
|
hint?: string | undefined;
|
|
14
14
|
invalid?: boolean | undefined;
|
|
15
15
|
valid?: boolean | undefined;
|
|
16
|
+
floatingLabel?: boolean | undefined;
|
|
16
17
|
inputStart?: import("react").ReactNode;
|
|
17
|
-
onChange?: ((value
|
|
18
|
+
onChange?: ((value: string) => void) | undefined;
|
|
18
19
|
onIconStartClick?: ((value?: string | undefined) => void) | undefined;
|
|
19
20
|
onIconEndClick?: ((value?: string | undefined) => void) | undefined;
|
|
20
21
|
} & import("react").RefAttributes<HTMLInputElement>, "ref">, "type" | "value" | "onChange">, keyof NonDInputProps> & NonDInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -8,15 +8,16 @@ 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" | "inputStart" | "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 | "hint" | "valid" | "floatingLabel" | "inputStart" | "onIconStartClick" | "onIconEndClick"> & import("../interface").BaseProps & import("../interface").FamilyIconProps & import("../interface").LabelIconProps & import("../interface").StartIconProps & import("../interface").EndIconProps & {
|
|
12
12
|
value?: string | undefined;
|
|
13
13
|
label?: string | undefined;
|
|
14
14
|
loading?: boolean | undefined;
|
|
15
15
|
hint?: string | undefined;
|
|
16
16
|
invalid?: boolean | undefined;
|
|
17
17
|
valid?: boolean | undefined;
|
|
18
|
+
floatingLabel?: boolean | undefined;
|
|
18
19
|
inputStart?: import("react").ReactNode;
|
|
19
|
-
onChange?: ((value
|
|
20
|
+
onChange?: ((value: string) => void) | undefined;
|
|
20
21
|
onIconStartClick?: ((value?: string | undefined) => void) | undefined;
|
|
21
22
|
onIconEndClick?: ((value?: string | undefined) => void) | undefined;
|
|
22
23
|
} & import("react").RefAttributes<HTMLInputElement>, "ref">, "type" | "value" | "onChange">, keyof NonDInputProps> & NonDInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -2,15 +2,16 @@
|
|
|
2
2
|
type NonDInputProps = {
|
|
3
3
|
onClick?: (value: string | undefined) => void;
|
|
4
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" | "inputStart" | "onIconStartClick" | "onIconEndClick"> & import("../interface").BaseProps & import("../interface").FamilyIconProps & import("../interface").LabelIconProps & import("../interface").StartIconProps & import("../interface").EndIconProps & {
|
|
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" | "onIconStartClick" | "onIconEndClick"> & import("../interface").BaseProps & import("../interface").FamilyIconProps & import("../interface").LabelIconProps & import("../interface").StartIconProps & import("../interface").EndIconProps & {
|
|
6
6
|
value?: string | undefined;
|
|
7
7
|
label?: string | undefined;
|
|
8
8
|
loading?: boolean | undefined;
|
|
9
9
|
hint?: string | undefined;
|
|
10
10
|
invalid?: boolean | undefined;
|
|
11
11
|
valid?: boolean | undefined;
|
|
12
|
+
floatingLabel?: boolean | undefined;
|
|
12
13
|
inputStart?: import("react").ReactNode;
|
|
13
|
-
onChange?: ((value
|
|
14
|
+
onChange?: ((value: string) => void) | undefined;
|
|
14
15
|
onIconStartClick?: ((value?: string | undefined) => void) | undefined;
|
|
15
16
|
onIconEndClick?: ((value?: string | undefined) => void) | undefined;
|
|
16
17
|
} & import("react").RefAttributes<HTMLInputElement>, "ref">, "iconEnd" | "onIconEndClick">, "onClick"> & NonDInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -5,19 +5,20 @@ export type DefaultOption = {
|
|
|
5
5
|
label: string;
|
|
6
6
|
};
|
|
7
7
|
export type Props<T> = BaseProps & LabelIconProps & StartIconProps & EndIconProps & {
|
|
8
|
-
id
|
|
8
|
+
id?: string;
|
|
9
9
|
name?: string;
|
|
10
10
|
label?: string;
|
|
11
11
|
disabled?: boolean;
|
|
12
12
|
loading?: boolean;
|
|
13
13
|
hint?: string;
|
|
14
|
+
floatingLabel?: boolean;
|
|
14
15
|
onBlur?: (event: FocusEvent) => void;
|
|
15
16
|
onIconStartClick?: (event: MouseEvent) => void;
|
|
16
17
|
onIconEndClick?: (event: MouseEvent) => void;
|
|
17
18
|
options: Array<T>;
|
|
18
|
-
|
|
19
|
-
onChange?: (
|
|
19
|
+
value?: string | number;
|
|
20
|
+
onChange?: (selectedOption: T) => void;
|
|
20
21
|
valueExtractor?: (item: T) => string | number;
|
|
21
22
|
labelExtractor?: (item: T) => string;
|
|
22
23
|
};
|
|
23
|
-
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,
|
|
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;
|
|
@@ -39,7 +39,7 @@ export type EndIconProps = {
|
|
|
39
39
|
iconEndAriaLabel?: string;
|
|
40
40
|
iconEndTabIndex?: number;
|
|
41
41
|
};
|
|
42
|
-
export type ToastType = 'success' | 'info' | 'warning' | 'danger';
|
|
42
|
+
export type ToastType = 'success' | 'info' | 'warning' | 'danger' | 'light' | 'dark';
|
|
43
43
|
export type ToastTypeIconMap = {
|
|
44
44
|
[state in ToastType]: string;
|
|
45
45
|
};
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"sideEffects": [
|
|
4
4
|
"*.css"
|
|
5
5
|
],
|
|
6
|
-
"version": "1.
|
|
6
|
+
"version": "1.11.1",
|
|
7
7
|
"description": "React Dynamic Framework",
|
|
8
8
|
"license": "MIT",
|
|
9
9
|
"repository": {
|
|
@@ -143,5 +143,5 @@
|
|
|
143
143
|
"react-dom": "^18.2.0",
|
|
144
144
|
"react-i18next": "^13.3.1"
|
|
145
145
|
},
|
|
146
|
-
"gitHead": "
|
|
146
|
+
"gitHead": "25610e0797ec0c26899a5dbff3769b407249f284"
|
|
147
147
|
}
|
|
@@ -39,9 +39,7 @@
|
|
|
39
39
|
color: var(--#{$prefix}input-pin-label-color);
|
|
40
40
|
|
|
41
41
|
.d-input-pin-icon {
|
|
42
|
-
|
|
43
|
-
--#{$prefix}icon-color: var(--#{$prefix}focus-ring-color);
|
|
44
|
-
}
|
|
42
|
+
--#{$prefix}icon-color: var(--#{$prefix}focus-ring-color);
|
|
45
43
|
}
|
|
46
44
|
}
|
|
47
45
|
|
|
@@ -99,9 +97,7 @@
|
|
|
99
97
|
}
|
|
100
98
|
|
|
101
99
|
.d-input-pin-validation-icon {
|
|
102
|
-
|
|
103
|
-
--#{$prefix}icon-color: #{$tooltip-bg-color};
|
|
104
|
-
}
|
|
100
|
+
--#{$prefix}icon-color: #{$tooltip-bg-color};
|
|
105
101
|
}
|
|
106
102
|
}
|
|
107
103
|
}
|
|
@@ -3,12 +3,19 @@
|
|
|
3
3
|
--#{$prefix}input-group-border-color: var(--#{$prefix}input-group-hover-border-color);
|
|
4
4
|
}
|
|
5
5
|
|
|
6
|
+
.form-floating:not(:last-child) {
|
|
7
|
+
.form-select {
|
|
8
|
+
padding-right: $form-select-padding-x * 2;
|
|
9
|
+
background-position: right center;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
6
13
|
.form-select {
|
|
7
14
|
text-align: var(--#{$prefix}input-form-control-text-align);
|
|
8
15
|
border-width: 0;
|
|
9
16
|
box-shadow: none;
|
|
10
17
|
|
|
11
|
-
&:not(:last-child) {
|
|
18
|
+
&:not(:last-child, .floating-label) {
|
|
12
19
|
padding-right: $form-select-padding-x * 2;
|
|
13
20
|
background-position: right center;
|
|
14
21
|
}
|