@dynamic-framework/ui-react 2.0.0-dev.1 → 2.0.0-dev.3
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 +7153 -3699
- package/dist/css/dynamic-ui-non-root.min.css +2 -2
- package/dist/css/dynamic-ui-root.css +799 -127
- package/dist/css/dynamic-ui-root.min.css +2 -2
- package/dist/css/dynamic-ui.css +7950 -3824
- package/dist/css/dynamic-ui.min.css +2 -2
- package/dist/index.esm.js +255 -301
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +280 -310
- package/dist/index.js.map +1 -1
- package/dist/types/components/DAlert/DAlert.d.ts +3 -3
- package/dist/types/components/DAvatar/DAvatar.d.ts +1 -3
- package/dist/types/components/DBadge/DBadge.d.ts +4 -3
- package/dist/types/components/DBarChart/DBarChart.d.ts +9 -0
- package/dist/types/components/DBox/DBox.d.ts +5 -0
- package/dist/types/components/DBox/index.d.ts +2 -0
- package/dist/types/components/DButton/DButton.d.ts +6 -5
- package/dist/types/components/DButtonIcon/DButtonIcon.d.ts +3 -3
- package/dist/types/components/DChip/DChip.d.ts +3 -3
- package/dist/types/components/DCollapse/DCollapse.d.ts +1 -1
- package/dist/types/components/DCreditCard/DCreditCard.d.ts +12 -0
- package/dist/types/components/DCreditCard/index.d.ts +2 -0
- package/dist/types/components/DDatePicker/DDatePicker.d.ts +3 -3
- package/dist/types/components/DDatePicker/components/DDatePickerHeaderSelector.d.ts +2 -4
- package/dist/types/components/DDropdown/DDropdown.d.ts +20 -0
- package/dist/types/components/DDropdown/index.d.ts +2 -0
- package/dist/types/components/DIconBase/DIconBase.d.ts +4 -8
- 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 +3 -3
- package/dist/types/components/DInputMask/DInputMask.d.ts +1 -1
- package/dist/types/components/DInputPhone/DInputPhone.d.ts +2 -2
- package/dist/types/components/DInputPin/DInputPin.d.ts +3 -3
- package/dist/types/components/DInputRange/DInputRange.d.ts +2 -2
- package/dist/types/components/DInputSelect/DInputSelect.d.ts +3 -3
- package/dist/types/components/DLayout/DLayout.d.ts +21 -0
- package/dist/types/components/DLayout/components/DLayoutPane.d.ts +13 -0
- package/dist/types/components/DLayout/index.d.ts +3 -0
- package/dist/types/components/DListGroup/components/DListGroupItem.d.ts +4 -4
- package/dist/types/components/DMinimalLineChart/DMinimalLineChart.d.ts +9 -0
- package/dist/types/components/DMultiLineChart/DMultiLineChart.d.ts +9 -0
- package/dist/types/components/DOtp/DOtp.d.ts +16 -0
- package/dist/types/components/DOtp/DOtpspec.d.ts +0 -0
- package/dist/types/components/DOtp/components/OtpCountdown.d.ts +7 -0
- package/dist/types/components/DOtp/hooks/useCountdown.d.ts +4 -0
- package/dist/types/components/DOtp/index.d.ts +2 -0
- package/dist/types/components/DPaginator/DPaginator.d.ts +2 -27
- package/dist/types/components/DPieChart/DPieChart.d.ts +9 -0
- package/dist/types/components/DProgress/DProgress.d.ts +2 -1
- package/dist/types/components/DRadialBarChart/DRadialBarChart.d.ts +6 -0
- package/dist/types/components/DSelect/DSelect.d.ts +3 -3
- package/dist/types/components/DTabs/DTabs.d.ts +2 -2
- package/dist/types/components/DTimeline/DTimeline.d.ts +15 -0
- package/dist/types/components/DTimeline/index.d.ts +2 -0
- package/dist/types/components/DToastContainer/useDToast.d.ts +2 -2
- package/dist/types/components/DTooltip/DTooltip.d.ts +1 -2
- package/dist/types/components/index.d.ts +5 -8
- package/dist/types/components/interface.d.ts +3 -8
- package/package.json +8 -3
- package/src/style/_shame.scss +42 -1
- package/src/style/abstracts/_mixins.scss +1 -7
- package/src/style/abstracts/_utilities.scss +51 -1
- package/src/style/abstracts/variables/_+import.scss +3 -2
- package/src/style/abstracts/variables/_alerts.scss +2 -0
- package/src/style/abstracts/variables/_body.scss +10 -3
- package/src/style/abstracts/variables/_border.scss +5 -5
- package/src/style/abstracts/variables/_buttons.scss +17 -11
- package/src/style/abstracts/variables/_cards.scss +6 -4
- package/src/style/abstracts/variables/_chips.scss +2 -2
- package/src/style/abstracts/variables/_colors.scss +140 -69
- package/src/style/abstracts/variables/_datepicker.scss +10 -9
- package/src/style/abstracts/variables/_dropdowns.scss +6 -4
- package/src/style/abstracts/variables/_forms.scss +4 -4
- package/src/style/abstracts/variables/_list-group.scss +2 -2
- package/src/style/abstracts/variables/_modals.scss +4 -3
- package/src/style/abstracts/variables/_offcanvas.scss +1 -0
- package/src/style/abstracts/variables/_pagination.scss +4 -4
- package/src/style/abstracts/variables/_shadow.scss +1 -0
- package/src/style/abstracts/variables/_tables.scss +8 -3
- package/src/style/abstracts/variables/_tooltip.scss +1 -1
- package/src/style/abstracts/variables/_typography.scss +7 -7
- package/src/style/base/_+import.scss +1 -0
- package/src/style/base/_alert.scss +1 -27
- package/src/style/base/_badge.scss +50 -12
- package/src/style/base/_buttons.scss +148 -22
- package/src/style/base/_dropdown.scss +18 -0
- package/src/style/base/_input-group.scss +5 -0
- package/src/style/base/_list-group.scss +6 -0
- package/src/style/base/_pagination.scss +2 -0
- package/src/style/base/_tables.scss +4 -0
- package/src/style/base/_tooltip.scss +1 -10
- package/src/style/components/_+import.scss +4 -4
- package/src/style/components/_d-avatar.scss +2 -20
- package/src/style/components/_d-box.scss +13 -0
- package/src/style/components/_d-carousel.scss +19 -1
- package/src/style/components/_d-credit-card.scss +67 -0
- package/src/style/components/_d-datepicker.scss +64 -26
- package/src/style/components/_d-icon.scss +10 -3
- package/src/style/components/_d-modal.scss +3 -0
- package/src/style/components/_d-stepper-desktop.scss +61 -65
- package/src/style/components/_d-stepper-mobile.scss +2 -2
- package/src/style/components/_d-tabs.scss +37 -0
- package/src/style/components/_d-timeline.scss +108 -0
- package/src/style/helpers/_color-bg.scss +13 -3
- package/src/style/root/_root.scss +35 -18
- package/dist/types/components/DInputCurrencyBase/DInputCurrencyBase.d.ts +0 -26
- package/dist/types/components/DInputCurrencyBase/index.d.ts +0 -2
- package/dist/types/components/DInputSearch/DInputSearch.d.ts +0 -17
- package/dist/types/components/DInputSearch/index.d.ts +0 -2
- package/dist/types/components/DList/DList.d.ts +0 -17
- package/dist/types/components/DList/components/DListItem.d.ts +0 -13
- package/dist/types/components/DList/index.d.ts +0 -3
- package/dist/types/components/DQuickActionButton/DQuickActionButton.d.ts +0 -20
- package/dist/types/components/DQuickActionButton/index.d.ts +0 -2
- package/dist/types/components/DQuickActionCheck/DQuickActionCheck.d.ts +0 -17
- package/dist/types/components/DQuickActionCheck/index.d.ts +0 -2
- package/dist/types/components/DQuickActionSelect/DQuickActionSelect.d.ts +0 -13
- package/dist/types/components/DQuickActionSelect/index.d.ts +0 -2
- package/dist/types/components/DQuickActionSwitch/DQuickActionSwitch.d.ts +0 -15
- package/dist/types/components/DQuickActionSwitch/index.d.ts +0 -2
- package/dist/types/components/DSkeleton/DSkeleton.d.ts +0 -11
- package/dist/types/components/DSkeleton/index.d.ts +0 -2
- package/src/style/components/_d-quick-action-button.scss +0 -121
- package/src/style/components/_d-quick-action-check.scss +0 -74
- package/src/style/components/_d-quick-action-select.scss +0 -58
- package/src/style/components/_d-quick-action-switch.scss +0 -64
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { PropsWithChildren } from 'react';
|
|
2
|
-
import type {
|
|
2
|
+
import type { BaseProps, ComponentStateColor } from '../interface';
|
|
3
3
|
type Props = BaseProps & PropsWithChildren<{
|
|
4
4
|
id?: string;
|
|
5
|
-
|
|
5
|
+
color?: ComponentStateColor;
|
|
6
6
|
icon?: string;
|
|
7
7
|
iconFamilyClass?: string;
|
|
8
8
|
iconFamilyPrefix?: string;
|
|
@@ -14,5 +14,5 @@ type Props = BaseProps & PropsWithChildren<{
|
|
|
14
14
|
iconCloseMaterialStyle?: boolean;
|
|
15
15
|
onClose?: () => void;
|
|
16
16
|
}>;
|
|
17
|
-
export default function DAlert({
|
|
17
|
+
export default function DAlert({ color, icon: iconProp, iconFamilyClass, iconFamilyPrefix, iconMaterialStyle, iconClose: iconCloseProp, iconCloseFamilyClass, iconCloseFamilyPrefix, iconCloseMaterialStyle, showClose, onClose, children, id, className, style, dataAttributes, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
18
18
|
export {};
|
|
@@ -5,8 +5,6 @@ type Props = BaseProps & {
|
|
|
5
5
|
image?: string;
|
|
6
6
|
name?: string;
|
|
7
7
|
useNameAsInitials?: boolean;
|
|
8
|
-
theme?: string;
|
|
9
|
-
variant?: 'light' | 'dark';
|
|
10
8
|
};
|
|
11
|
-
export default function DAvatar({ id, size, image, name: nameProp, useNameAsInitials,
|
|
9
|
+
export default function DAvatar({ id, size, image, name: nameProp, useNameAsInitials, className, style, dataAttributes, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
12
10
|
export {};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import type { BaseProps } from '../interface';
|
|
1
|
+
import type { BaseProps, ComponentColor } from '../interface';
|
|
2
2
|
type Props = BaseProps & {
|
|
3
3
|
text?: string;
|
|
4
4
|
soft?: boolean;
|
|
5
|
+
size?: 'sm' | 'lg';
|
|
5
6
|
rounded?: boolean;
|
|
6
|
-
|
|
7
|
+
color?: ComponentColor;
|
|
7
8
|
id?: string;
|
|
8
9
|
iconStart?: string;
|
|
9
10
|
iconEnd?: string;
|
|
@@ -11,5 +12,5 @@ type Props = BaseProps & {
|
|
|
11
12
|
iconFamilyClass?: string;
|
|
12
13
|
iconFamilyPrefix?: string;
|
|
13
14
|
};
|
|
14
|
-
export default function DBadge({ text, soft,
|
|
15
|
+
export default function DBadge({ text, soft, color, id, rounded, className, size, style, iconStart, iconEnd, iconMaterialStyle, iconFamilyClass, iconFamilyPrefix, dataAttributes, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
15
16
|
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { PropsWithChildren } from 'react';
|
|
2
|
+
import type { BaseProps } from '../interface';
|
|
3
|
+
type Props = PropsWithChildren<BaseProps>;
|
|
4
|
+
export default function DBox({ className, style, children, dataAttributes, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export {};
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import type { MouseEvent } from 'react';
|
|
2
|
-
import type { BaseProps, ButtonType, ButtonVariant, ComponentSize, EndIconProps, InputState, StartIconProps } from '../interface';
|
|
1
|
+
import type { MouseEvent, ReactNode } from 'react';
|
|
2
|
+
import type { BaseProps, ButtonType, ButtonVariant, ComponentColor, ComponentSize, EndIconProps, InputState, StartIconProps } from '../interface';
|
|
3
3
|
type Props = BaseProps & StartIconProps & EndIconProps & {
|
|
4
4
|
id?: string;
|
|
5
|
-
|
|
5
|
+
color?: ComponentColor;
|
|
6
6
|
size?: ComponentSize;
|
|
7
7
|
variant?: ButtonVariant;
|
|
8
8
|
state?: InputState;
|
|
9
9
|
text?: string;
|
|
10
|
+
children?: ReactNode;
|
|
10
11
|
ariaLabel?: string;
|
|
11
12
|
value?: string;
|
|
12
13
|
type?: ButtonType;
|
|
13
|
-
|
|
14
|
+
loadingText?: string;
|
|
14
15
|
loading?: boolean;
|
|
15
16
|
loadingAriaLabel?: string;
|
|
16
17
|
disabled?: boolean;
|
|
@@ -18,5 +19,5 @@ type Props = BaseProps & StartIconProps & EndIconProps & {
|
|
|
18
19
|
form?: string;
|
|
19
20
|
onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
20
21
|
};
|
|
21
|
-
export default function DButton({
|
|
22
|
+
export default function DButton({ color, size, variant, state, text, children, ariaLabel, iconStart, iconStartFamilyClass, iconStartFamilyPrefix, iconStartMaterialStyle, iconEnd, iconEndFamilyClass, iconEndFamilyPrefix, iconEndMaterialStyle, loadingText, value, type, loading, loadingAriaLabel, disabled, stopPropagationEnabled, className, style, form, dataAttributes, onClick, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
22
23
|
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { MouseEvent } from 'react';
|
|
2
|
-
import type { BaseProps, ButtonType, ButtonVariant, ComponentSize, FamilyIconProps, InputState } from '../interface';
|
|
2
|
+
import type { BaseProps, ButtonType, ButtonVariant, ComponentColor, ComponentSize, FamilyIconProps, InputState } from '../interface';
|
|
3
3
|
type Props = BaseProps & FamilyIconProps & {
|
|
4
4
|
id?: string;
|
|
5
5
|
icon: string;
|
|
6
6
|
size?: ComponentSize;
|
|
7
7
|
variant?: ButtonVariant;
|
|
8
|
-
|
|
8
|
+
color?: ComponentColor;
|
|
9
9
|
state?: InputState;
|
|
10
10
|
type?: ButtonType;
|
|
11
11
|
loading?: boolean;
|
|
@@ -15,5 +15,5 @@ type Props = BaseProps & FamilyIconProps & {
|
|
|
15
15
|
disabled?: boolean;
|
|
16
16
|
onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
17
17
|
};
|
|
18
|
-
export default function DButtonIcon({ id, icon, size, className, variant, state, loadingAriaLabel, iconMaterialStyle, ariaLabel,
|
|
18
|
+
export default function DButtonIcon({ id, icon, size, className, variant, state, loadingAriaLabel, iconMaterialStyle, ariaLabel, color, type, loading, disabled, stopPropagationEnabled, style, iconFamilyClass, iconFamilyPrefix, dataAttributes, onClick, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
19
19
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { BaseProps, FamilyIconProps } from '../interface';
|
|
1
|
+
import type { BaseProps, ComponentColor, FamilyIconProps } from '../interface';
|
|
2
2
|
type Props = BaseProps & FamilyIconProps & {
|
|
3
|
-
|
|
3
|
+
color?: ComponentColor;
|
|
4
4
|
text?: string;
|
|
5
5
|
icon?: string;
|
|
6
6
|
iconClose?: string;
|
|
@@ -11,5 +11,5 @@ type Props = BaseProps & FamilyIconProps & {
|
|
|
11
11
|
closeAriaLabel?: string;
|
|
12
12
|
onClose?: () => void;
|
|
13
13
|
};
|
|
14
|
-
export default function DChip({
|
|
14
|
+
export default function DChip({ color, text, icon, iconFamilyClass, iconFamilyPrefix, iconMaterialStyle, iconClose: iconCloseProp, iconCloseFamilyClass, iconCloseFamilyPrefix, iconCloseMaterialStyle, showClose, closeAriaLabel, className, style, dataAttributes, onClose, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
15
15
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PropsWithChildren,
|
|
1
|
+
import type { PropsWithChildren, ReactElement, ReactNode } from 'react';
|
|
2
2
|
import type { BaseProps, FamilyIconProps } from '../interface';
|
|
3
3
|
type Props = BaseProps & FamilyIconProps & PropsWithChildren<{
|
|
4
4
|
id?: string;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
type Props = {
|
|
2
|
+
className?: string;
|
|
3
|
+
brand?: string;
|
|
4
|
+
isChipVisible?: boolean;
|
|
5
|
+
name?: string;
|
|
6
|
+
number?: string;
|
|
7
|
+
holderText?: string;
|
|
8
|
+
isVertical?: boolean;
|
|
9
|
+
logoImage?: string;
|
|
10
|
+
};
|
|
11
|
+
export default function DCreditCard({ brand, name, number, holderText, logoImage, isChipVisible, className, isVertical, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { DatePickerProps } from 'react-datepicker';
|
|
2
2
|
import { Locale } from 'date-fns';
|
|
3
|
-
import type { BaseProps, ButtonVariant, ComponentSize, FamilyIconProps } from '../interface';
|
|
3
|
+
import type { BaseProps, ButtonVariant, ComponentColor, ComponentSize, FamilyIconProps } from '../interface';
|
|
4
4
|
type Props = BaseProps & FamilyIconProps & Omit<DatePickerProps, 'showMonthDropdown' | 'showMonthYearDropdown' | 'showYearDropdown' | 'useShortMonthInDropdown' | 'yearDropdownItemNumber' | 'scrollableYearDropdown' | 'dropdownMode' | 'yearItemNumber' | 'portalId' | 'withPortal' | 'onPortalKeyDown' | 'portalHost' | 'locale'> & {
|
|
5
5
|
inputLabel?: string;
|
|
6
6
|
inputHint?: string;
|
|
@@ -15,7 +15,7 @@ type Props = BaseProps & FamilyIconProps & Omit<DatePickerProps, 'showMonthDropd
|
|
|
15
15
|
headerPrevMonthAriaLabel?: string;
|
|
16
16
|
headerNextMonthAriaLabel?: string;
|
|
17
17
|
headerButtonVariant?: ButtonVariant;
|
|
18
|
-
|
|
18
|
+
headerButtonColor?: ComponentColor;
|
|
19
19
|
minYearSelect?: number;
|
|
20
20
|
maxYearSelect?: number;
|
|
21
21
|
invalid?: boolean;
|
|
@@ -24,5 +24,5 @@ type Props = BaseProps & FamilyIconProps & Omit<DatePickerProps, 'showMonthDropd
|
|
|
24
24
|
showHeaderSelectors?: boolean;
|
|
25
25
|
locale?: Locale;
|
|
26
26
|
};
|
|
27
|
-
export default function DDatePicker({ inputLabel, inputHint, inputAriaLabel, inputActionAriaLabel, inputId, timeId, timeInputLabel,
|
|
27
|
+
export default function DDatePicker({ inputLabel, inputHint, inputAriaLabel, inputActionAriaLabel, inputId, timeId, timeInputLabel, minYearSelect, maxYearSelect, iconHeaderSize, iconMaterialStyle, iconInput, headerPrevMonthAriaLabel, headerNextMonthAriaLabel, invalid, valid, renderCustomHeader: renderCustomHeaderProp, className, dateFormatCalendar, style, dataAttributes, placeholder, showHeaderSelectors, ...props }: Props): import("react/jsx-runtime").JSX.Element;
|
|
28
28
|
export {};
|
|
@@ -2,7 +2,7 @@ import { Locale } from 'date-fns';
|
|
|
2
2
|
import type { ComponentProps } from 'react';
|
|
3
3
|
import type { ReactDatePickerCustomHeaderProps } from 'react-datepicker';
|
|
4
4
|
import DButton from '../../DButton';
|
|
5
|
-
import type { BaseProps,
|
|
5
|
+
import type { BaseProps, ComponentSize, FamilyIconProps } from '../../interface';
|
|
6
6
|
export declare enum PickerType {
|
|
7
7
|
Default = "default",
|
|
8
8
|
Quarter = "quarter",
|
|
@@ -28,13 +28,11 @@ type Props = BaseProps & FamilyIconProps & ReactDatePickerCustomHeaderProps & {
|
|
|
28
28
|
prevYearAriaLabel?: string;
|
|
29
29
|
nextYearAriaLabel?: string;
|
|
30
30
|
iconSize?: ComponentSize;
|
|
31
|
-
buttonVariant?: ButtonVariant;
|
|
32
|
-
buttonTheme?: string;
|
|
33
31
|
minYearSelect?: number;
|
|
34
32
|
maxYearSelect?: number;
|
|
35
33
|
showHeaderSelectors?: boolean;
|
|
36
34
|
monthsShown?: number;
|
|
37
35
|
locale?: Locale;
|
|
38
36
|
} & Omit<ComponentProps<typeof DButton>, 'iconStart' | 'onClick' | 'disabled'>;
|
|
39
|
-
export default function DDatePickerHeaderSelector({ date, changeYear, changeMonth, decreaseMonth, increaseMonth, decreaseYear, increaseYear, monthDate, pickerType, prevMonthButtonDisabled, nextMonthButtonDisabled, monthsShown, iconPrev, iconNext, prevYearButtonDisabled, nextYearButtonDisabled,
|
|
37
|
+
export default function DDatePickerHeaderSelector({ date, changeYear, changeMonth, decreaseMonth, increaseMonth, decreaseYear, increaseYear, monthDate, pickerType, prevMonthButtonDisabled, nextMonthButtonDisabled, monthsShown, iconPrev, iconNext, prevYearButtonDisabled, nextYearButtonDisabled, prevMonthAriaLabel, nextMonthAriaLabel, prevYearAriaLabel, nextYearAriaLabel, iconSize, style, className, minYearSelect, maxYearSelect, showHeaderSelectors, customHeaderCount, locale, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
40
38
|
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export type DropdownAction = {
|
|
3
|
+
onClick?: () => void;
|
|
4
|
+
href?: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
icon?: string;
|
|
7
|
+
color?: 'default' | 'danger' | 'success' | 'warning' | 'info';
|
|
8
|
+
isDivider?: boolean;
|
|
9
|
+
label: string;
|
|
10
|
+
};
|
|
11
|
+
type Props = {
|
|
12
|
+
actions: DropdownAction[];
|
|
13
|
+
dropdownToggle?: ((props: {
|
|
14
|
+
open: boolean;
|
|
15
|
+
toggle: () => void;
|
|
16
|
+
}) => React.ReactNode);
|
|
17
|
+
className?: string;
|
|
18
|
+
};
|
|
19
|
+
export default function DDropdown({ actions, dropdownToggle, className, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export {};
|
|
@@ -1,17 +1,13 @@
|
|
|
1
|
-
import type { BaseProps } from '../interface';
|
|
1
|
+
import type { BaseProps, ComponentColor } from '../interface';
|
|
2
2
|
type Props = BaseProps & {
|
|
3
3
|
icon: string;
|
|
4
|
-
|
|
4
|
+
color?: ComponentColor;
|
|
5
5
|
size?: string;
|
|
6
|
-
loading?: boolean;
|
|
7
|
-
loadingDuration?: number;
|
|
8
6
|
hasCircle?: boolean;
|
|
9
|
-
circleSize?: string;
|
|
10
|
-
color?: string;
|
|
11
|
-
backgroundColor?: string;
|
|
12
7
|
materialStyle?: boolean;
|
|
13
8
|
familyClass?: string;
|
|
14
9
|
familyPrefix?: string;
|
|
10
|
+
strokeWidth?: number;
|
|
15
11
|
};
|
|
16
|
-
export default function DIconBase({ icon,
|
|
12
|
+
export default function DIconBase({ icon, color, style, className, size, hasCircle, materialStyle, familyClass, strokeWidth, dataAttributes, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
17
13
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
|
-
import type { BaseProps, ComponentSize, EndIconProps, FamilyIconProps,
|
|
3
|
-
declare const ForwardedDInput: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "
|
|
2
|
+
import type { BaseProps, ComponentSize, EndIconProps, FamilyIconProps, StartIconProps } from '../interface';
|
|
3
|
+
declare const ForwardedDInput: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "onChange" | "value">, "size" | "onChange" | "label" | "invalid" | "value" | keyof BaseProps | keyof FamilyIconProps | keyof StartIconProps | keyof EndIconProps | "loading" | "hint" | "valid" | "floatingLabel" | "inputStart" | "inputEnd" | "onIconStartClick" | "onIconEndClick"> & BaseProps & FamilyIconProps & StartIconProps & EndIconProps & {
|
|
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">, "
|
|
8
|
+
declare const ForwardedDInputCounter: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<Omit<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "onChange" | "value">, "size" | "onChange" | "label" | "invalid" | "value" | keyof import("../interface").BaseProps | keyof import("../interface").FamilyIconProps | keyof import("../interface").StartIconProps | keyof import("../interface").EndIconProps | "loading" | "hint" | "valid" | "floatingLabel" | "inputStart" | "inputEnd" | "onIconStartClick" | "onIconEndClick"> & import("../interface").BaseProps & import("../interface").FamilyIconProps & import("../interface").StartIconProps & import("../interface").EndIconProps & {
|
|
9
9
|
value?: string | undefined;
|
|
10
10
|
label?: string | undefined;
|
|
11
11
|
loading?: boolean | undefined;
|
|
@@ -19,5 +19,5 @@ declare const ForwardedDInputCounter: import("react").ForwardRefExoticComponent<
|
|
|
19
19
|
onChange?: ((value: string) => void) | undefined;
|
|
20
20
|
onIconStartClick?: ((value?: string | undefined) => void) | undefined;
|
|
21
21
|
onIconEndClick?: ((value?: string | undefined) => void) | undefined;
|
|
22
|
-
} & import("react").RefAttributes<HTMLInputElement>, "ref">, "
|
|
22
|
+
} & import("react").RefAttributes<HTMLInputElement>, "ref">, "type" | "onChange" | "value" | "validIcon" | "invalidIcon">, keyof NonDInputProps> & NonDInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
23
23
|
export default ForwardedDInputCounter;
|
|
@@ -6,7 +6,7 @@ type NonDInputProps = {
|
|
|
6
6
|
currencyCode?: string;
|
|
7
7
|
onChange?: (value?: number) => void;
|
|
8
8
|
};
|
|
9
|
-
declare const
|
|
9
|
+
declare const ForwardedDInputCurrency: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<Omit<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "onChange" | "value">, "size" | "onChange" | "label" | "invalid" | "value" | keyof import("../interface").BaseProps | keyof import("../interface").FamilyIconProps | keyof import("../interface").StartIconProps | keyof import("../interface").EndIconProps | "loading" | "hint" | "valid" | "floatingLabel" | "inputStart" | "inputEnd" | "onIconStartClick" | "onIconEndClick"> & import("../interface").BaseProps & import("../interface").FamilyIconProps & import("../interface").StartIconProps & import("../interface").EndIconProps & {
|
|
10
10
|
value?: string | undefined;
|
|
11
11
|
label?: string | undefined;
|
|
12
12
|
loading?: boolean | undefined;
|
|
@@ -20,5 +20,5 @@ declare const ForwardedDInputCurrencyBase: import("react").ForwardRefExoticCompo
|
|
|
20
20
|
onChange?: ((value: string) => void) | undefined;
|
|
21
21
|
onIconStartClick?: ((value?: string | undefined) => void) | undefined;
|
|
22
22
|
onIconEndClick?: ((value?: string | undefined) => void) | undefined;
|
|
23
|
-
} & import("react").RefAttributes<HTMLInputElement>, "ref">, "
|
|
24
|
-
export default
|
|
23
|
+
} & import("react").RefAttributes<HTMLInputElement>, "ref">, "type" | "onChange" | "value">, keyof NonDInputProps> & NonDInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
24
|
+
export default ForwardedDInputCurrency;
|
|
@@ -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">, "
|
|
3
|
+
declare const ForwardedDInputMask: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "onChange" | "value">, "size" | "onChange" | "label" | "invalid" | "value" | keyof import("../interface").BaseProps | keyof import("../interface").FamilyIconProps | keyof import("../interface").StartIconProps | keyof import("../interface").EndIconProps | "loading" | "hint" | "valid" | "floatingLabel" | "inputStart" | "inputEnd" | "onIconStartClick" | "onIconEndClick"> & import("../interface").BaseProps & import("../interface").FamilyIconProps & import("../interface").StartIconProps & import("../interface").EndIconProps & {
|
|
4
4
|
value?: string | undefined;
|
|
5
5
|
label?: string | undefined;
|
|
6
6
|
loading?: boolean | undefined;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
2
|
import { CountryIso2, CountrySelectorProps, ParsedCountry } from 'react-international-phone';
|
|
3
|
-
import type { BaseProps, ComponentSize, EndIconProps, FamilyIconProps
|
|
3
|
+
import type { BaseProps, ComponentSize, EndIconProps, FamilyIconProps } from '../interface';
|
|
4
4
|
type OnChangeType = {
|
|
5
5
|
phone: string;
|
|
6
6
|
inputValue: string;
|
|
7
7
|
country: ParsedCountry;
|
|
8
8
|
isValid: boolean;
|
|
9
9
|
};
|
|
10
|
-
declare const ForwardedDInputPhone: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "
|
|
10
|
+
declare const ForwardedDInputPhone: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "type" | "onChange" | "onWheel" | "pattern" | "value" | "inputMode">, "size" | "onChange" | "label" | "invalid" | "value" | keyof BaseProps | keyof FamilyIconProps | keyof EndIconProps | "loading" | "hint" | "valid" | "floatingLabel" | "inputEnd" | "onIconEndClick" | "countrySelectorProps" | "filteredCountries" | "defaultCountry"> & BaseProps & FamilyIconProps & EndIconProps & {
|
|
11
11
|
value?: string | undefined;
|
|
12
12
|
label?: string | undefined;
|
|
13
13
|
loading?: boolean | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { BaseProps, FamilyIconProps,
|
|
2
|
-
type Props = BaseProps &
|
|
1
|
+
import type { BaseProps, FamilyIconProps, PinInputMode, PinInputType } from '../interface';
|
|
2
|
+
type Props = BaseProps & FamilyIconProps & {
|
|
3
3
|
id?: string;
|
|
4
4
|
label?: string;
|
|
5
5
|
placeholder?: string;
|
|
@@ -15,5 +15,5 @@ type Props = BaseProps & LabelIconProps & FamilyIconProps & {
|
|
|
15
15
|
valid?: boolean;
|
|
16
16
|
onChange?: (value: string) => void;
|
|
17
17
|
};
|
|
18
|
-
export default function DInputPin({ id: idProp, label,
|
|
18
|
+
export default function DInputPin({ id: idProp, label, placeholder, type, disabled, loading, secret, characters, innerInputMode, hint, invalid, valid, className, style, dataAttributes, onChange, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
19
19
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { BaseProps
|
|
3
|
-
declare const ForwardedDInputRange: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "type">, "label" | keyof BaseProps |
|
|
2
|
+
import type { BaseProps } from '../interface';
|
|
3
|
+
declare const ForwardedDInputRange: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "type">, "label" | keyof BaseProps | "ariaLabel" | "filledValue"> & BaseProps & {
|
|
4
4
|
label?: string | undefined;
|
|
5
5
|
ariaLabel?: string | undefined;
|
|
6
6
|
filledValue?: boolean | undefined;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { FocusEvent, MouseEvent } from 'react';
|
|
2
|
-
import type { BaseProps, ComponentSize, EndIconProps, FamilyIconProps,
|
|
2
|
+
import type { BaseProps, ComponentSize, EndIconProps, FamilyIconProps, StartIconProps } from '../interface';
|
|
3
3
|
export type DefaultOption = {
|
|
4
4
|
value: string | number;
|
|
5
5
|
label: string;
|
|
6
6
|
};
|
|
7
|
-
export type Props<T> = BaseProps & FamilyIconProps &
|
|
7
|
+
export type Props<T> = BaseProps & FamilyIconProps & StartIconProps & EndIconProps & {
|
|
8
8
|
id?: string;
|
|
9
9
|
name?: string;
|
|
10
10
|
label?: string;
|
|
@@ -24,4 +24,4 @@ export type Props<T> = BaseProps & FamilyIconProps & LabelIconProps & StartIconP
|
|
|
24
24
|
valueExtractor?: (item: T) => string | number;
|
|
25
25
|
labelExtractor?: (item: T) => string;
|
|
26
26
|
};
|
|
27
|
-
export default function DInputSelect<T extends object = DefaultOption>({ id: idProp, name, label, className, style, options,
|
|
27
|
+
export default function DInputSelect<T extends object = DefaultOption>({ id: idProp, name, label, className, style, options, disabled, loading, iconStart, iconStartFamilyClass, iconStartFamilyPrefix, iconStartAriaLabel, iconEnd, iconEndFamilyClass, iconEndFamilyPrefix, iconEndAriaLabel, hint, value, size, floatingLabel, invalid, valid, dataAttributes, valueExtractor, labelExtractor, onChange, onBlur, onIconStartClick, onIconEndClick, }: Props<T>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { PropsWithChildren } from 'react';
|
|
2
|
+
import DLayoutPane from './components/DLayoutPane';
|
|
3
|
+
import type { BaseProps } from '../interface';
|
|
4
|
+
/**
|
|
5
|
+
* Define the spacing (gap) on a scale from 0 to 30.
|
|
6
|
+
* @type {number}
|
|
7
|
+
*/
|
|
8
|
+
type Gap = number;
|
|
9
|
+
type Props = PropsWithChildren<BaseProps & {
|
|
10
|
+
gap?: Gap;
|
|
11
|
+
gapSm?: Gap;
|
|
12
|
+
gapMd?: Gap;
|
|
13
|
+
gapLg?: Gap;
|
|
14
|
+
gapXl?: Gap;
|
|
15
|
+
gapXxl?: Gap;
|
|
16
|
+
}>;
|
|
17
|
+
declare function DLayout({ className, style, children, gap, gapSm, gapMd, gapLg, gapXl, gapXxl, dataAttributes, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
declare const _default: typeof DLayout & {
|
|
19
|
+
Pane: typeof DLayoutPane;
|
|
20
|
+
};
|
|
21
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { PropsWithChildren } from 'react';
|
|
2
|
+
import type { BaseProps } from '../../interface';
|
|
3
|
+
type Props = PropsWithChildren<BaseProps & {
|
|
4
|
+
cols?: string | number;
|
|
5
|
+
colsXs?: string | number;
|
|
6
|
+
colsSm?: string | number;
|
|
7
|
+
colsMd?: string | number;
|
|
8
|
+
colsLg?: string | number;
|
|
9
|
+
colsXl?: string | number;
|
|
10
|
+
colsXxl?: string | number;
|
|
11
|
+
}>;
|
|
12
|
+
export default function DLayoutPane({ className, style, children, cols, colsXs, colsSm, colsMd, colsLg, colsXl, colsXxl, dataAttributes, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type { PropsWithChildren } from 'react';
|
|
2
|
-
import type { BaseProps } from '../../interface';
|
|
3
|
-
type Props = BaseProps & PropsWithChildren<{
|
|
2
|
+
import type { BaseProps, ComponentColor, EndIconProps, StartIconProps } from '../../interface';
|
|
3
|
+
type Props = BaseProps & StartIconProps & EndIconProps & PropsWithChildren<{
|
|
4
4
|
as?: 'li' | 'a' | 'button';
|
|
5
5
|
action?: boolean;
|
|
6
6
|
active?: boolean;
|
|
7
7
|
disabled?: boolean;
|
|
8
8
|
href?: string;
|
|
9
9
|
onClick?: () => void;
|
|
10
|
-
|
|
10
|
+
color?: ComponentColor;
|
|
11
11
|
}>;
|
|
12
|
-
export default function DListGroupItem({ as, action: actionProp, active, disabled, href, onClick,
|
|
12
|
+
export default function DListGroupItem({ as, action: actionProp, active, disabled, href, onClick, color, iconStart, iconStartFamilyClass, iconStartFamilyPrefix, iconStartMaterialStyle, iconEnd, iconEndFamilyClass, iconEndFamilyPrefix, iconEndMaterialStyle, children, className, style, dataAttributes, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
export type PropsOtp = PropsWithChildren<{
|
|
3
|
+
action: () => Promise<void> | void;
|
|
4
|
+
isLoading?: boolean;
|
|
5
|
+
className?: string;
|
|
6
|
+
otpSize?: number;
|
|
7
|
+
seconds?: number;
|
|
8
|
+
texts?: {
|
|
9
|
+
submit?: string;
|
|
10
|
+
resend?: string;
|
|
11
|
+
title?: string;
|
|
12
|
+
contact?: string | React.ReactNode;
|
|
13
|
+
resendText?: string;
|
|
14
|
+
};
|
|
15
|
+
}>;
|
|
16
|
+
export default function DOtp({ className, action, isLoading, otpSize, texts, seconds, }: PropsOtp): import("react/jsx-runtime").JSX.Element;
|
|
File without changes
|
|
@@ -1,31 +1,6 @@
|
|
|
1
1
|
import type { ResponsivePaginationProps } from 'react-responsive-pagination';
|
|
2
2
|
import { DataAttributes } from '../interface';
|
|
3
|
-
export type Props =
|
|
4
|
-
current?: ResponsivePaginationProps['current'];
|
|
5
|
-
/**
|
|
6
|
-
* @deprecated its use is changing, use extraClassName instead, originally
|
|
7
|
-
* we set className prop to extraClassName from react-responsive-pagination API.
|
|
8
|
-
*
|
|
9
|
-
* now we are trying to expose the entire API of react-responsive-pagination and
|
|
10
|
-
* to ensure backward compatibility we are setting the className prop to
|
|
11
|
-
* extraClassName from react-responsive-pagination only if extraClassName is not present.
|
|
12
|
-
*/
|
|
13
|
-
className?: ResponsivePaginationProps['extraClassName'];
|
|
14
|
-
/**
|
|
15
|
-
* @deprecated use current instead, react-responsive-pagination API.
|
|
16
|
-
*/
|
|
17
|
-
page?: ResponsivePaginationProps['current'];
|
|
18
|
-
/**
|
|
19
|
-
* @deprecated use renderNav instead, react-responsive-pagination API.
|
|
20
|
-
*/
|
|
21
|
-
showArrows?: ResponsivePaginationProps['renderNav'];
|
|
3
|
+
export type Props = ResponsivePaginationProps & {
|
|
22
4
|
dataAttributes?: DataAttributes;
|
|
23
5
|
};
|
|
24
|
-
export
|
|
25
|
-
current: number;
|
|
26
|
-
page?: undefined;
|
|
27
|
-
}) | (Props & {
|
|
28
|
-
page: number;
|
|
29
|
-
current?: undefined;
|
|
30
|
-
});
|
|
31
|
-
export default function DPaginator({ className, page, current, showArrows, navClassName, ...props }: ConditionalProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default function DPaginator({ navClassName, ...props }: Props): import("react/jsx-runtime").JSX.Element;
|
|
@@ -5,6 +5,7 @@ type Props = BaseProps & {
|
|
|
5
5
|
maxValue?: number;
|
|
6
6
|
hideCurrentValue?: boolean;
|
|
7
7
|
enableStripedAnimation?: boolean;
|
|
8
|
+
height?: string | number;
|
|
8
9
|
};
|
|
9
|
-
export default function DProgress({ className, style, currentValue, minValue, maxValue, hideCurrentValue, enableStripedAnimation, dataAttributes, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default function DProgress({ className, style, currentValue, minValue, maxValue, hideCurrentValue, enableStripedAnimation, height, dataAttributes, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
10
11
|
export {};
|