@dynamic-framework/ui-react 1.29.0 → 1.30.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 +26 -26
- package/dist/css/dynamic-ui-non-root.min.css +2 -2
- package/dist/css/dynamic-ui-root.css +27 -1
- package/dist/css/dynamic-ui-root.min.css +2 -2
- package/dist/css/dynamic-ui.css +52 -26
- package/dist/css/dynamic-ui.min.css +2 -2
- package/dist/index.esm.js +79 -77
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +79 -77
- package/dist/index.js.map +1 -1
- package/dist/types/components/DAlert/DAlert.d.ts +1 -1
- package/dist/types/components/DAvatar/DAvatar.d.ts +1 -1
- package/dist/types/components/DBadge/DBadge.d.ts +1 -1
- package/dist/types/components/DBoxFile/DBoxFile.d.ts +1 -1
- package/dist/types/components/DButton/DButton.d.ts +1 -1
- package/dist/types/components/DButtonIcon/DButtonIcon.d.ts +1 -1
- package/dist/types/components/DCard/DCard.d.ts +1 -1
- package/dist/types/components/DChip/DChip.d.ts +1 -1
- package/dist/types/components/DCollapse/DCollapse.d.ts +1 -1
- package/dist/types/components/DCurrencyText/DCurrencyText.d.ts +1 -1
- package/dist/types/components/DDatePicker/DDatePicker.d.ts +1 -1
- package/dist/types/components/DIconBase/DIconBase.d.ts +1 -1
- package/dist/types/components/DInputCheck/DInputCheck.d.ts +3 -3
- package/dist/types/components/DInputPin/DInputPin.d.ts +1 -1
- package/dist/types/components/DInputSelect/DInputSelect.d.ts +1 -1
- package/dist/types/components/DInputSwitch/DInputSwitch.d.ts +1 -1
- package/dist/types/components/DList/DList.d.ts +1 -1
- package/dist/types/components/DModal/DModal.d.ts +1 -1
- package/dist/types/components/DOffcanvas/DOffcanvas.d.ts +1 -1
- package/dist/types/components/DPaginator/DPaginator.d.ts +2 -0
- package/dist/types/components/DPopover/DPopover.d.ts +1 -1
- package/dist/types/components/DProgress/DProgress.d.ts +1 -1
- package/dist/types/components/DQuickActionButton/DQuickActionButton.d.ts +1 -1
- package/dist/types/components/DQuickActionCheck/DQuickActionCheck.d.ts +1 -1
- package/dist/types/components/DQuickActionSelect/DQuickActionSelect.d.ts +1 -1
- package/dist/types/components/DQuickActionSwitch/DQuickActionSwitch.d.ts +1 -1
- package/dist/types/components/DSelect/DSelect.d.ts +1 -1
- package/dist/types/components/DStepper/DStepper.d.ts +1 -1
- package/dist/types/components/DTabs/DTabs.d.ts +1 -1
- package/dist/types/components/DToast/DToast.d.ts +1 -1
- package/dist/types/components/interface.d.ts +2 -0
- package/package.json +2 -2
- package/src/style/abstracts/variables/_accordion.scss +33 -12
- package/src/style/abstracts/variables/_buttons.scss +2 -0
- package/src/style/base/_badge.scss +1 -1
- package/src/style/root/_root.scss +27 -0
|
@@ -14,5 +14,5 @@ type Props = BaseProps & PropsWithChildren<{
|
|
|
14
14
|
iconCloseMaterialStyle?: boolean;
|
|
15
15
|
onClose?: () => void;
|
|
16
16
|
}>;
|
|
17
|
-
export default function DAlert({ theme, icon: iconProp, iconFamilyClass, iconFamilyPrefix, iconMaterialStyle, iconClose: iconCloseProp, iconCloseFamilyClass, iconCloseFamilyPrefix, iconCloseMaterialStyle, showClose, onClose, children, id, className, style, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export default function DAlert({ theme, 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,5 +5,5 @@ type Props = BaseProps & {
|
|
|
5
5
|
image?: string;
|
|
6
6
|
title?: string;
|
|
7
7
|
};
|
|
8
|
-
export default function DAvatar({ id, size, image, title, className, style, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default function DAvatar({ id, size, image, title, className, style, dataAttributes, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
export {};
|
|
@@ -11,5 +11,5 @@ type Props = BaseProps & {
|
|
|
11
11
|
iconFamilyClass?: string;
|
|
12
12
|
iconFamilyPrefix?: string;
|
|
13
13
|
};
|
|
14
|
-
export default function DBadge({ text, soft, theme, id, rounded, className, style, iconStart, iconEnd, iconMaterialStyle, iconFamilyClass, iconFamilyPrefix, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export default function DBadge({ text, soft, theme, id, rounded, className, style, iconStart, iconEnd, iconMaterialStyle, iconFamilyClass, iconFamilyPrefix, dataAttributes, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
15
15
|
export {};
|
|
@@ -4,5 +4,5 @@ import type { BaseProps, FamilyIconProps } from '../interface';
|
|
|
4
4
|
type Props = BaseProps & FamilyIconProps & PropsWithChildren<Pick<DropzoneOptions, 'accept' | 'minSize' | 'maxSize' | 'maxFiles' | 'onDrop' | 'onDropAccepted' | 'onDropRejected' | 'onFileDialogCancel' | 'onFileDialogOpen' | 'disabled'> & {
|
|
5
5
|
icon?: string;
|
|
6
6
|
}>;
|
|
7
|
-
export default function DBoxFile({ icon: iconProp, iconFamilyClass, iconFamilyPrefix, iconMaterialStyle, disabled, children, className, style, ...dropzoneOptions }: Props): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default function DBoxFile({ icon: iconProp, iconFamilyClass, iconFamilyPrefix, iconMaterialStyle, disabled, children, className, style, dataAttributes, ...dropzoneOptions }: Props): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export {};
|
|
@@ -18,5 +18,5 @@ type Props = BaseProps & StartIconProps & EndIconProps & {
|
|
|
18
18
|
form?: string;
|
|
19
19
|
onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
20
20
|
};
|
|
21
|
-
export default function DButton({ theme, size, variant, state, text, ariaLabel, iconStart, iconStartFamilyClass, iconStartFamilyPrefix, iconStartMaterialStyle, iconEnd, iconEndFamilyClass, iconEndFamilyPrefix, iconEndMaterialStyle, value, type, loading, loadingAriaLabel, disabled, stopPropagationEnabled, className, style, form, onClick, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export default function DButton({ theme, size, variant, state, text, ariaLabel, iconStart, iconStartFamilyClass, iconStartFamilyPrefix, iconStartMaterialStyle, iconEnd, iconEndFamilyClass, iconEndFamilyPrefix, iconEndMaterialStyle, value, type, loading, loadingAriaLabel, disabled, stopPropagationEnabled, className, style, form, dataAttributes, onClick, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
22
22
|
export {};
|
|
@@ -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, theme, type, loading, disabled, stopPropagationEnabled, style, iconFamilyClass, iconFamilyPrefix, onClick, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export default function DButtonIcon({ id, icon, size, className, variant, state, loadingAriaLabel, iconMaterialStyle, ariaLabel, theme, type, loading, disabled, stopPropagationEnabled, style, iconFamilyClass, iconFamilyPrefix, dataAttributes, onClick, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
19
19
|
export {};
|
|
@@ -4,7 +4,7 @@ import DCardBody from './components/DCardBody';
|
|
|
4
4
|
import DCardFooter from './components/DCardFooter';
|
|
5
5
|
import type { BaseProps } from '../interface';
|
|
6
6
|
type Props = PropsWithChildren<BaseProps>;
|
|
7
|
-
declare function DCard({ className, style, children, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function DCard({ className, style, children, dataAttributes, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
declare const _default: typeof DCard & {
|
|
9
9
|
Header: typeof DCardHeader;
|
|
10
10
|
Body: typeof DCardBody;
|
|
@@ -11,5 +11,5 @@ type Props = BaseProps & FamilyIconProps & {
|
|
|
11
11
|
closeAriaLabel?: string;
|
|
12
12
|
onClose?: () => void;
|
|
13
13
|
};
|
|
14
|
-
export default function DChip({ theme, text, icon, iconFamilyClass, iconFamilyPrefix, iconMaterialStyle, iconClose: iconCloseProp, iconCloseFamilyClass, iconCloseFamilyPrefix, iconCloseMaterialStyle, showClose, closeAriaLabel, className, style, onClose, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export default function DChip({ theme, 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 {};
|
|
@@ -9,5 +9,5 @@ type Props = BaseProps & FamilyIconProps & PropsWithChildren<{
|
|
|
9
9
|
iconOpen?: string;
|
|
10
10
|
iconClose?: string;
|
|
11
11
|
}>;
|
|
12
|
-
export default function DCollapse({ id, className, style, Component, hasSeparator, defaultCollapsed, onChange, children, iconOpen: iconOpenProp, iconClose: iconCloseProp, iconFamilyClass, iconFamilyPrefix, iconMaterialStyle, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export default function DCollapse({ id, className, style, Component, hasSeparator, defaultCollapsed, onChange, children, iconOpen: iconOpenProp, iconClose: iconCloseProp, iconFamilyClass, iconFamilyPrefix, iconMaterialStyle, dataAttributes, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
export {};
|
|
@@ -2,5 +2,5 @@ import type { BaseProps } from '../interface';
|
|
|
2
2
|
type Props = BaseProps & {
|
|
3
3
|
value: number;
|
|
4
4
|
};
|
|
5
|
-
export default function DCurrencyText({ value, className, style, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export default function DCurrencyText({ value, className, style, dataAttributes, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export {};
|
|
@@ -25,5 +25,5 @@ type Props<CustomModifierNames extends string = never, WithRange extends boolean
|
|
|
25
25
|
invalid?: boolean;
|
|
26
26
|
valid?: boolean;
|
|
27
27
|
};
|
|
28
|
-
export default function DDatePicker<CustomModifierNames extends string = never, WithRange extends boolean | undefined = undefined>({ date, selectsRange, inputLabel, inputHint, inputAriaLabel, inputActionAriaLabel, inputId, timeId, timeLabel, iconInput: iconInputProp, iconHeaderPrevMonth: iconHeaderPrevMonthProp, iconHeaderNextMonth: iconHeaderNextMonthProp, iconMaterialStyle: iconMaterialStyleProp, iconFamilyClass, iconFamilyPrefix, minYearSelect, maxYearSelect, iconHeaderSize, headerPrevMonthAriaLabel, headerNextMonthAriaLabel, headerButtonVariant, headerButtonTheme, invalid, valid, renderCustomHeader: renderCustomHeaderProp, validIcon, invalidIcon, locale, className, formatWeekDay: formatWeekDayProp, style, ...props }: Props<CustomModifierNames, WithRange>): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
export default function DDatePicker<CustomModifierNames extends string = never, WithRange extends boolean | undefined = undefined>({ date, selectsRange, inputLabel, inputHint, inputAriaLabel, inputActionAriaLabel, inputId, timeId, timeLabel, iconInput: iconInputProp, iconHeaderPrevMonth: iconHeaderPrevMonthProp, iconHeaderNextMonth: iconHeaderNextMonthProp, iconMaterialStyle: iconMaterialStyleProp, iconFamilyClass, iconFamilyPrefix, minYearSelect, maxYearSelect, iconHeaderSize, headerPrevMonthAriaLabel, headerNextMonthAriaLabel, headerButtonVariant, headerButtonTheme, invalid, valid, renderCustomHeader: renderCustomHeaderProp, validIcon, invalidIcon, locale, className, formatWeekDay: formatWeekDayProp, style, dataAttributes, ...props }: Props<CustomModifierNames, WithRange>): import("react/jsx-runtime").JSX.Element;
|
|
29
29
|
export {};
|
|
@@ -13,5 +13,5 @@ type Props = BaseProps & {
|
|
|
13
13
|
familyClass?: string;
|
|
14
14
|
familyPrefix?: string;
|
|
15
15
|
};
|
|
16
|
-
export default function DIconBase({ icon, theme, style, className, size, loading, loadingDuration, hasCircle, circleSize, color, backgroundColor, materialStyle, familyClass, familyPrefix, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export default function DIconBase({ icon, theme, style, className, size, loading, loadingDuration, hasCircle, circleSize, color, backgroundColor, materialStyle, familyClass, familyPrefix, dataAttributes, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
17
17
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ChangeEvent } from 'react';
|
|
1
|
+
import type { ChangeEvent, ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
import type { BaseProps, InputCheckType } from '../interface';
|
|
3
|
-
type Props = BaseProps & {
|
|
3
|
+
type Props = ComponentPropsWithoutRef<'input'> & BaseProps & {
|
|
4
4
|
id?: string;
|
|
5
5
|
type: InputCheckType;
|
|
6
6
|
name?: string;
|
|
@@ -14,5 +14,5 @@ type Props = BaseProps & {
|
|
|
14
14
|
value?: string;
|
|
15
15
|
onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
16
16
|
};
|
|
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;
|
|
17
|
+
export default function DInputCheck({ id: idProp, type, name, label, ariaLabel, checked, disabled, invalid, valid, indeterminate, value, onChange, className, style, dataAttributes, ...props }: Props): import("react/jsx-runtime").JSX.Element;
|
|
18
18
|
export {};
|
|
@@ -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: 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;
|
|
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, dataAttributes, onChange, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
19
19
|
export {};
|
|
@@ -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, 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;
|
|
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, dataAttributes, valueExtractor, labelExtractor, onChange, onBlur, onIconStartClick, onIconEndClick, }: Props<T>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -11,5 +11,5 @@ type Props = BaseProps & {
|
|
|
11
11
|
readonly?: boolean;
|
|
12
12
|
onChange?: (isChecked: boolean) => void;
|
|
13
13
|
};
|
|
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;
|
|
14
|
+
export default function DInputSwitch({ id: idProp, label, ariaLabel, name, checked, disabled, invalid, valid, readonly, className, style, dataAttributes, onChange, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
15
15
|
export {};
|
|
@@ -7,7 +7,7 @@ type Props = BaseProps & PropsWithChildren<{
|
|
|
7
7
|
horizontal?: boolean;
|
|
8
8
|
horizontalBreakpoint?: BreakpointSize;
|
|
9
9
|
}>;
|
|
10
|
-
declare function DList({ children, className, style, flush, numbered, horizontal, horizontalBreakpoint, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare function DList({ children, className, style, flush, numbered, horizontal, horizontalBreakpoint, dataAttributes, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
declare const _default: typeof DList & {
|
|
12
12
|
Item: typeof DListItem;
|
|
13
13
|
};
|
|
@@ -12,7 +12,7 @@ type Props = BaseProps & PropsWithChildren<{
|
|
|
12
12
|
fullScreenFrom?: ModalFullScreenFrom;
|
|
13
13
|
size?: ModalSize;
|
|
14
14
|
}>;
|
|
15
|
-
declare function DModal({ name, className, style, staticBackdrop, scrollable, centered, fullScreen, fullScreenFrom, size, children, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
declare function DModal({ name, className, style, staticBackdrop, scrollable, centered, fullScreen, fullScreenFrom, size, children, dataAttributes, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
16
16
|
declare const _default: typeof DModal & {
|
|
17
17
|
Header: typeof DModalHeader;
|
|
18
18
|
Body: typeof DModalBody;
|
|
@@ -9,7 +9,7 @@ type Props = BaseProps & PropsWithChildren<{
|
|
|
9
9
|
scrollable?: boolean;
|
|
10
10
|
openFrom?: OffcanvasPositionToggleFrom;
|
|
11
11
|
}>;
|
|
12
|
-
declare function DOffcanvas({ name, className, style, staticBackdrop, scrollable, openFrom, children, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare function DOffcanvas({ name, className, style, staticBackdrop, scrollable, openFrom, children, dataAttributes, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
declare const _default: typeof DOffcanvas & {
|
|
14
14
|
Header: typeof DOffcanvasHeader;
|
|
15
15
|
Body: typeof DOffcanvasBody;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ResponsivePaginationProps } from 'react-responsive-pagination';
|
|
2
|
+
import { DataAttributes } from '../interface';
|
|
2
3
|
export type Props = {
|
|
3
4
|
className?: ResponsivePaginationProps['extraClassName'];
|
|
4
5
|
page: ResponsivePaginationProps['current'];
|
|
@@ -8,5 +9,6 @@ export type Props = {
|
|
|
8
9
|
nextLabel?: ResponsivePaginationProps['nextLabel'];
|
|
9
10
|
showArrows?: ResponsivePaginationProps['renderNav'];
|
|
10
11
|
maxWidth?: ResponsivePaginationProps['maxWidth'];
|
|
12
|
+
dataAttributes?: DataAttributes;
|
|
11
13
|
};
|
|
12
14
|
export default function DPaginator({ className, nextLabel, previousLabel, showArrows, page, onPageChange, ...props }: Props): import("react/jsx-runtime").JSX.Element;
|
|
@@ -11,5 +11,5 @@ type Props = BaseProps & PropsWithChildren<{
|
|
|
11
11
|
setOpen?: (open: boolean) => void;
|
|
12
12
|
adjustContentToRender?: boolean;
|
|
13
13
|
}>;
|
|
14
|
-
export default function DPopover({ children, renderComponent, open, setOpen, adjustContentToRender, className, style, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export default function DPopover({ children, renderComponent, open, setOpen, adjustContentToRender, className, style, dataAttributes, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
15
15
|
export {};
|
|
@@ -6,5 +6,5 @@ type Props = BaseProps & {
|
|
|
6
6
|
hideCurrentValue?: boolean;
|
|
7
7
|
enableStripedAnimation?: boolean;
|
|
8
8
|
};
|
|
9
|
-
export default function DProgress({ className, style, currentValue, minValue, maxValue, hideCurrentValue, enableStripedAnimation, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default function DProgress({ className, style, currentValue, minValue, maxValue, hideCurrentValue, enableStripedAnimation, dataAttributes, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
export {};
|
|
@@ -18,5 +18,5 @@ type Props = BaseProps & {
|
|
|
18
18
|
onClick?: () => void;
|
|
19
19
|
onClickSecondary?: () => void;
|
|
20
20
|
};
|
|
21
|
-
export default function DQuickActionButton({ line1, line2, className, actionLinkText, actionLinkTheme, actionIcon, secondaryActionIcon, secondaryActionAriaLabel, actionIconFamilyClass, actionIconFamilyPrefix, representativeImage, representativeIcon, representativeIconTheme, representativeIconHasCircle, representativeIconFamilyClass, representativeIconFamilyPrefix, onClick, onClickSecondary, style, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export default function DQuickActionButton({ line1, line2, className, actionLinkText, actionLinkTheme, actionIcon, secondaryActionIcon, secondaryActionAriaLabel, actionIconFamilyClass, actionIconFamilyPrefix, representativeImage, representativeIcon, representativeIconTheme, representativeIconHasCircle, representativeIconFamilyClass, representativeIconFamilyPrefix, onClick, onClickSecondary, style, dataAttributes, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
22
22
|
export {};
|
|
@@ -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: idProp, 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, dataAttributes, onChange, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
14
14
|
export {};
|
|
@@ -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: idProp, 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, dataAttributes, onChange, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
export {};
|
|
@@ -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: idProp, 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, dataAttributes, onClick, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
export {};
|
|
@@ -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, 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;
|
|
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, dataAttributes, ...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;
|
|
@@ -15,5 +15,5 @@ type Props = BaseProps & {
|
|
|
15
15
|
completed?: boolean;
|
|
16
16
|
breakpoint?: BreakpointSize;
|
|
17
17
|
};
|
|
18
|
-
export default function DStepper({ options, currentStep, iconSuccess, iconSuccessFamilyClass, iconSuccessFamilyPrefix, iconSuccessMaterialStyle, vertical, breakpoint, className, completed, style, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export default function DStepper({ options, currentStep, iconSuccess, iconSuccessFamilyClass, iconSuccessFamilyPrefix, iconSuccessMaterialStyle, vertical, breakpoint, className, completed, style, dataAttributes, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
19
19
|
export {};
|
|
@@ -15,7 +15,7 @@ type Props = BaseProps & PropsWithChildren<{
|
|
|
15
15
|
vertical?: boolean;
|
|
16
16
|
variant?: TabVariant;
|
|
17
17
|
}>;
|
|
18
|
-
declare function DTabs({ children, defaultSelected, onChange, options, className, classNameTab, style, vertical, variant, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
declare function DTabs({ children, defaultSelected, onChange, options, className, classNameTab, style, vertical, variant, dataAttributes, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
19
19
|
declare const _default: typeof DTabs & {
|
|
20
20
|
Tab: typeof DTabContent;
|
|
21
21
|
};
|
|
@@ -3,7 +3,7 @@ import DToastHeader from './components/DToastHeader';
|
|
|
3
3
|
import DToastBody from './components/DToastBody';
|
|
4
4
|
import { BaseProps } from '../interface';
|
|
5
5
|
type Props = PropsWithChildren<BaseProps>;
|
|
6
|
-
declare function DToast({ children, className, style }: Props): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function DToast({ children, className, style, dataAttributes, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
declare const _default: typeof DToast & {
|
|
8
8
|
Header: typeof DToastHeader;
|
|
9
9
|
Body: typeof DToastBody;
|
|
@@ -13,9 +13,11 @@ export type NavegableProps = {
|
|
|
13
13
|
export type ComponentSize = 'sm' | 'lg';
|
|
14
14
|
export type BreakpointSize = 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
|
|
15
15
|
export type AvatarSize = 'xs' | 'sm' | 'lg' | 'xl' | 'xxl';
|
|
16
|
+
export type DataAttributes = Record<`data-${string}`, string | number | undefined | null | boolean>;
|
|
16
17
|
export type BaseProps = {
|
|
17
18
|
style?: CSSProperties;
|
|
18
19
|
className?: string;
|
|
20
|
+
dataAttributes?: DataAttributes;
|
|
19
21
|
};
|
|
20
22
|
export type FamilyIconProps = {
|
|
21
23
|
iconFamilyClass?: string;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"sideEffects": [
|
|
4
4
|
"*.css"
|
|
5
5
|
],
|
|
6
|
-
"version": "1.
|
|
6
|
+
"version": "1.30.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": {
|
|
@@ -157,5 +157,5 @@
|
|
|
157
157
|
"optional": true
|
|
158
158
|
}
|
|
159
159
|
},
|
|
160
|
-
"gitHead": "
|
|
160
|
+
"gitHead": "974c8400ba9af5aa8c518c309464de0d93ef4271"
|
|
161
161
|
}
|
|
@@ -1,23 +1,44 @@
|
|
|
1
1
|
// Accordion
|
|
2
2
|
|
|
3
3
|
// scss-docs-start accordion-variables
|
|
4
|
-
$accordion-padding-y: var(--#{$prefix}
|
|
5
|
-
$accordion-padding-x: var(--#{$prefix}
|
|
6
|
-
$accordion-color: var(--#{$prefix}
|
|
7
|
-
$accordion-bg: var(--#{$prefix}
|
|
4
|
+
$accordion-padding-y: var(--#{$prefix}default-accordion-padding-y) !default;
|
|
5
|
+
$accordion-padding-x: var(--#{$prefix}default-accordion-padding-x) !default;
|
|
6
|
+
$accordion-color: var(--#{$prefix}default-accordion-color) !default;
|
|
7
|
+
$accordion-bg: var(--#{$prefix}default-accordion-bg) !default;
|
|
8
|
+
$accordion-border-width: var(--#{$prefix}default-accordion-border-width) !default;
|
|
9
|
+
$accordion-border-color: var(--#{$prefix}default-accordion-border-color) !default;
|
|
10
|
+
$accordion-border-radius: var(--#{$prefix}default-accordion-border-radius) !default;
|
|
11
|
+
$accordion-inner-border-radius: var(--#{$prefix}default-accordion-inner-border-radius) !default;
|
|
12
|
+
|
|
13
|
+
$accordion-body-padding-y: var(--#{$prefix}default-accordion-body-padding-y) !default;
|
|
14
|
+
$accordion-body-padding-x: var(--#{$prefix}default-accordion-body-padding-x) !default;
|
|
8
15
|
|
|
9
16
|
// custom
|
|
10
|
-
$accordion-body-padding-top: $accordion-padding-
|
|
11
|
-
$accordion-button-
|
|
12
|
-
$accordion-button-font-
|
|
13
|
-
$accordion-button-font-size: var(--#{$prefix}fs-6) !default;
|
|
17
|
+
$accordion-body-padding-top: var(--#{$prefix}default-accordion-body-padding-top) !default;
|
|
18
|
+
$accordion-button-font-weight: var(--#{$prefix}default-accordion-btn-font-weight) !default;
|
|
19
|
+
$accordion-button-font-size: var(--#{$prefix}default-accordion-btn-font-size) !default;
|
|
14
20
|
// end custom
|
|
15
21
|
|
|
16
|
-
$accordion-button-
|
|
17
|
-
$accordion-button-
|
|
22
|
+
$accordion-button-padding-y: var(--#{$prefix}default-accordion-btn-padding-y) !default;
|
|
23
|
+
$accordion-button-padding-x: var(--#{$prefix}default-accordion-btn-padding-x) !default;
|
|
24
|
+
$accordion-button-color: var(--#{$prefix}default-accordion-btn-color) !default;
|
|
25
|
+
$accordion-button-bg: var(--#{$prefix}default-accordion-btn-bg) !default;
|
|
26
|
+
$accordion-transition: var(--#{$prefix}default-accordion-transition) !default;
|
|
27
|
+
$accordion-button-active-bg: var(--#{$prefix}default-accordion-active-bg) !default;
|
|
28
|
+
$accordion-button-active-color: var(--#{$prefix}default-accordion-active-color) !default;
|
|
29
|
+
|
|
30
|
+
$accordion-button-focus-box-shadow: var(--#{$prefix}default-accordion-btn-focus-box-shadow) !default;
|
|
18
31
|
|
|
32
|
+
$accordion-icon-width: var(--#{$prefix}default-accordion-btn-icon-width) !default;
|
|
19
33
|
$accordion-icon-color: $body-color !default;
|
|
20
34
|
$accordion-icon-active-color: $primary-text-emphasis !default;
|
|
21
|
-
$accordion-
|
|
22
|
-
$accordion-
|
|
35
|
+
$accordion-icon-transition: var(--#{$prefix}default-accordion-btn-icon-transition) !default;
|
|
36
|
+
$accordion-icon-transform: var(--#{$prefix}default-accordion-btn-icon-transform) !default;
|
|
37
|
+
|
|
38
|
+
// custom
|
|
39
|
+
$accordion-button-icon: var(--#{$prefix}default-accordion-btn-icon) !default;
|
|
40
|
+
$accordion-button-icon-url: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='#{$accordion-icon-color}'><path fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/></svg>") !default;
|
|
41
|
+
$accordion-button-active-icon: var(--#{$prefix}default-accordion-btn-active-icon) !default;
|
|
42
|
+
$accordion-button-active-icon-url: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='#{$accordion-icon-active-color}'><path fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/></svg>") !default;
|
|
43
|
+
// end custom
|
|
23
44
|
// scss-docs-end accordion-variables
|
|
@@ -25,4 +25,6 @@ $btn-active-box-shadow: 0 0 0 transparent !default; // to avoid the none in the
|
|
|
25
25
|
$btn-border-radius: var(--#{$prefix}border-radius-pill) !default;
|
|
26
26
|
$btn-border-radius-sm: var(--#{$prefix}border-radius-pill) !default;
|
|
27
27
|
$btn-border-radius-lg: var(--#{$prefix}border-radius-pill) !default;
|
|
28
|
+
|
|
29
|
+
$btn-transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out !default;
|
|
28
30
|
// scss-docs-end btn-variables
|
|
@@ -295,6 +295,33 @@
|
|
|
295
295
|
@each $level, $value in $spacers {
|
|
296
296
|
--#{$prefix}ref-spacer-#{$level}: #{$value};
|
|
297
297
|
}
|
|
298
|
+
|
|
299
|
+
--#{$prefix}default-accordion-padding-x: var(--#{$prefix}ref-spacer-4);
|
|
300
|
+
--#{$prefix}default-accordion-padding-y: var(--#{$prefix}ref-spacer-6);
|
|
301
|
+
--#{$prefix}default-accordion-color: var(--#{$prefix}gray-700);
|
|
302
|
+
--#{$prefix}default-accordion-bg: var(--#{$prefix}white);
|
|
303
|
+
--#{$prefix}default-accordion-transition: #{$btn-transition}, border-radius .15s ease;
|
|
304
|
+
--#{$prefix}default-accordion-border-color: var(--#{$prefix}border-color);
|
|
305
|
+
--#{$prefix}default-accordion-border-width: var(--#{$prefix}border-width);
|
|
306
|
+
--#{$prefix}default-accordion-border-radius: var(--#{$prefix}border-radius);
|
|
307
|
+
--#{$prefix}default-accordion-inner-border-radius: calc(var(--#{$prefix}default-accordion-border-radius) - var(--#{$prefix}default-accordion-border-width));
|
|
308
|
+
--#{$prefix}default-accordion-btn-padding-x: var(--#{$prefix}default-accordion-padding-x);
|
|
309
|
+
--#{$prefix}default-accordion-btn-padding-y: var(--#{$prefix}default-accordion-padding-y);
|
|
310
|
+
--#{$prefix}default-accordion-btn-color: var(--#{$prefix}body-color);
|
|
311
|
+
--#{$prefix}default-accordion-btn-bg: var(--#{$prefix}default-accordion-bg);
|
|
312
|
+
--#{$prefix}default-accordion-btn-icon: #{escape-svg($accordion-button-icon-url)};
|
|
313
|
+
--#{$prefix}default-accordion-btn-icon-width: var(--#{$prefix}ref-spacer-5);
|
|
314
|
+
--#{$prefix}default-accordion-btn-icon-transform: rotate(-180deg);
|
|
315
|
+
--#{$prefix}default-accordion-btn-icon-transition: transform .2s ease-in-out;
|
|
316
|
+
--#{$prefix}default-accordion-btn-active-icon: #{escape-svg($accordion-button-active-icon-url)};
|
|
317
|
+
--#{$prefix}default-accordion-btn-focus-box-shadow: #{$input-btn-focus-box-shadow};
|
|
318
|
+
--#{$prefix}default-accordion-btn-font-weight: var(--#{$prefix}fw-bold);
|
|
319
|
+
--#{$prefix}default-accordion-btn-font-size: var(--#{$prefix}fs-6);
|
|
320
|
+
--#{$prefix}default-accordion-body-padding-top: var(--#{$prefix}default-accordion-padding-y);
|
|
321
|
+
--#{$prefix}default-accordion-body-padding-x: var(--#{$prefix}default-accordion-padding-x);
|
|
322
|
+
--#{$prefix}default-accordion-body-padding-y: var(--#{$prefix}default-accordion-padding-y);
|
|
323
|
+
--#{$prefix}default-accordion-active-color: var(--#{$prefix}body-color);
|
|
324
|
+
--#{$prefix}default-accordion-active-bg: var(--#{$prefix}secondary-soft);
|
|
298
325
|
}
|
|
299
326
|
|
|
300
327
|
@if $enable-dark-mode {
|