@dynamic-framework/ui-react 2.0.0-dev.1 → 2.0.0-dev.11

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.
Files changed (144) hide show
  1. package/dist/css/dynamic-ui-non-root.css +7054 -3737
  2. package/dist/css/dynamic-ui-non-root.min.css +3 -3
  3. package/dist/css/dynamic-ui-root.css +339 -161
  4. package/dist/css/dynamic-ui-root.min.css +3 -3
  5. package/dist/css/dynamic-ui.css +7380 -3885
  6. package/dist/css/dynamic-ui.min.css +3 -3
  7. package/dist/index.esm.js +641 -406
  8. package/dist/index.esm.js.map +1 -1
  9. package/dist/index.js +685 -433
  10. package/dist/index.js.map +1 -1
  11. package/dist/types/components/DAlert/DAlert.d.ts +3 -3
  12. package/dist/types/components/DAvatar/DAvatar.d.ts +1 -3
  13. package/dist/types/components/DBadge/DBadge.d.ts +4 -3
  14. package/dist/types/components/DBox/DBox.d.ts +5 -0
  15. package/dist/types/components/DBox/index.d.ts +2 -0
  16. package/dist/types/components/DBoxFile/DBoxFile.d.ts +1 -1
  17. package/dist/types/components/DButton/DButton.d.ts +8 -17
  18. package/dist/types/components/DButtonIcon/DButtonIcon.d.ts +3 -3
  19. package/dist/types/components/DChip/DChip.d.ts +3 -3
  20. package/dist/types/components/DCollapse/DCollapse.d.ts +1 -1
  21. package/dist/types/components/DCreditCard/DCreditCard.d.ts +12 -0
  22. package/dist/types/components/DCreditCard/index.d.ts +2 -0
  23. package/dist/types/components/DDatePicker/DDatePicker.d.ts +3 -3
  24. package/dist/types/components/DDatePicker/components/DDatePickerHeaderSelector.d.ts +2 -4
  25. package/dist/types/components/DDropdown/DDropdown.d.ts +20 -0
  26. package/dist/types/components/DDropdown/index.d.ts +2 -0
  27. package/dist/types/components/DIconBase/DIconBase.d.ts +13 -9
  28. package/dist/types/components/DInput/DInput.d.ts +3 -2
  29. package/dist/types/components/DInputCheck/DInputCheck.d.ts +2 -1
  30. package/dist/types/components/DInputCounter/DInputCounter.d.ts +3 -2
  31. package/dist/types/components/DInputCurrency/DInputCurrency.d.ts +4 -3
  32. package/dist/types/components/DInputMask/DInputMask.d.ts +7 -17
  33. package/dist/types/components/DInputPhone/DInputPhone.d.ts +2 -2
  34. package/dist/types/components/DInputPin/DInputPin.d.ts +3 -3
  35. package/dist/types/components/DInputRange/DInputRange.d.ts +2 -2
  36. package/dist/types/components/DInputSelect/DInputSelect.d.ts +3 -3
  37. package/dist/types/components/DInputSwitch/DInputSwitch.d.ts +2 -1
  38. package/dist/types/components/DLayout/DLayout.d.ts +22 -0
  39. package/dist/types/components/DLayout/components/DLayoutPane.d.ts +13 -0
  40. package/dist/types/components/DLayout/index.d.ts +3 -0
  41. package/dist/types/components/DListGroup/components/DListGroupItem.d.ts +4 -4
  42. package/dist/types/components/DModal/DModal.d.ts +3 -1
  43. package/dist/types/components/DOffcanvas/DOffcanvas.d.ts +3 -1
  44. package/dist/types/components/DOtp/DOtp.d.ts +16 -0
  45. package/dist/types/components/DOtp/DOtpspec.d.ts +0 -0
  46. package/dist/types/components/DOtp/components/OtpCountdown.d.ts +7 -0
  47. package/dist/types/components/DOtp/hooks/useCountdown.d.ts +4 -0
  48. package/dist/types/components/DOtp/index.d.ts +2 -0
  49. package/dist/types/components/DPaginator/DPaginator.d.ts +2 -27
  50. package/dist/types/components/DPasswordStrengthMeter/DPasswordStrengthMeter.d.ts +23 -0
  51. package/dist/types/components/DPasswordStrengthMeter/PasswordCheckItem.d.ts +7 -0
  52. package/dist/types/components/DPasswordStrengthMeter/PasswordCheckList.d.ts +14 -0
  53. package/dist/types/components/DPasswordStrengthMeter/PasswordStrength.d.ts +6 -0
  54. package/dist/types/components/DPasswordStrengthMeter/index.d.ts +3 -0
  55. package/dist/types/components/DProgress/DProgress.d.ts +2 -1
  56. package/dist/types/components/DSelect/DSelect.d.ts +3 -3
  57. package/dist/types/components/DTabs/DTabs.d.ts +2 -2
  58. package/dist/types/components/DTimeline/DTimeline.d.ts +15 -0
  59. package/dist/types/components/DTimeline/index.d.ts +2 -0
  60. package/dist/types/components/DToastContainer/useDToast.d.ts +2 -2
  61. package/dist/types/components/DTooltip/DTooltip.d.ts +1 -2
  62. package/dist/types/components/DVoucher/DVoucher.d.ts +14 -0
  63. package/dist/types/components/DVoucher/hooks/useScreenshot.d.ts +5 -0
  64. package/dist/types/components/DVoucher/hooks/useScreenshotDownload.d.ts +5 -0
  65. package/dist/types/components/DVoucher/hooks/useScreenshotWebShare.d.ts +5 -0
  66. package/dist/types/components/DVoucher/index.d.ts +2 -0
  67. package/dist/types/components/config.d.ts +0 -2
  68. package/dist/types/components/index.d.ts +8 -9
  69. package/dist/types/components/interface.d.ts +3 -8
  70. package/dist/types/hooks/useResponsiveProp.d.ts +35 -0
  71. package/jest/setup.js +0 -2
  72. package/package.json +43 -40
  73. package/src/style/_shame.scss +42 -1
  74. package/src/style/abstracts/_mixins.scss +35 -23
  75. package/src/style/abstracts/_utilities.scss +70 -1
  76. package/src/style/abstracts/variables/_+import.scss +3 -2
  77. package/src/style/abstracts/variables/_alerts.scss +2 -0
  78. package/src/style/abstracts/variables/_body.scss +10 -3
  79. package/src/style/abstracts/variables/_border.scss +5 -5
  80. package/src/style/abstracts/variables/_buttons.scss +19 -11
  81. package/src/style/abstracts/variables/_cards.scss +6 -4
  82. package/src/style/abstracts/variables/_chips.scss +2 -2
  83. package/src/style/abstracts/variables/_colors.scss +147 -70
  84. package/src/style/abstracts/variables/_datepicker.scss +10 -9
  85. package/src/style/abstracts/variables/_dropdowns.scss +6 -4
  86. package/src/style/abstracts/variables/_forms.scss +4 -4
  87. package/src/style/abstracts/variables/_list-group.scss +2 -2
  88. package/src/style/abstracts/variables/_modals.scss +4 -3
  89. package/src/style/abstracts/variables/_offcanvas.scss +1 -0
  90. package/src/style/abstracts/variables/_pagination.scss +4 -4
  91. package/src/style/abstracts/variables/_shadow.scss +1 -0
  92. package/src/style/abstracts/variables/_tables.scss +8 -3
  93. package/src/style/abstracts/variables/_tooltip.scss +1 -1
  94. package/src/style/abstracts/variables/_typography.scss +7 -7
  95. package/src/style/base/_+import.scss +1 -0
  96. package/src/style/base/_alert.scss +1 -27
  97. package/src/style/base/_badge.scss +50 -12
  98. package/src/style/base/_buttons.scss +33 -30
  99. package/src/style/base/_dropdown.scss +18 -0
  100. package/src/style/base/_input-group.scss +5 -0
  101. package/src/style/base/_label.scss +0 -4
  102. package/src/style/base/_list-group.scss +6 -0
  103. package/src/style/base/_pagination.scss +2 -0
  104. package/src/style/base/_tables.scss +4 -0
  105. package/src/style/base/_tooltip.scss +1 -10
  106. package/src/style/components/_+import.scss +5 -4
  107. package/src/style/components/_d-avatar.scss +2 -20
  108. package/src/style/components/_d-box-file.scss +1 -1
  109. package/src/style/components/_d-box.scss +13 -0
  110. package/src/style/components/_d-carousel.scss +20 -1
  111. package/src/style/components/_d-credit-card.scss +67 -0
  112. package/src/style/components/_d-datepicker.scss +83 -26
  113. package/src/style/components/_d-icon.scss +10 -3
  114. package/src/style/components/_d-modal.scss +3 -0
  115. package/src/style/components/_d-stepper-desktop.scss +61 -65
  116. package/src/style/components/_d-stepper-mobile.scss +2 -2
  117. package/src/style/components/_d-tabs.scss +37 -0
  118. package/src/style/components/_d-timeline.scss +108 -0
  119. package/src/style/components/_d-voucher.scss +29 -0
  120. package/src/style/helpers/_color-bg.scss +13 -3
  121. package/src/style/root/_root.scss +109 -86
  122. package/dist/types/components/DInputCurrencyBase/DInputCurrencyBase.d.ts +0 -26
  123. package/dist/types/components/DInputCurrencyBase/index.d.ts +0 -2
  124. package/dist/types/components/DInputSearch/DInputSearch.d.ts +0 -17
  125. package/dist/types/components/DInputSearch/index.d.ts +0 -2
  126. package/dist/types/components/DList/DList.d.ts +0 -17
  127. package/dist/types/components/DList/components/DListItem.d.ts +0 -13
  128. package/dist/types/components/DList/index.d.ts +0 -3
  129. package/dist/types/components/DQuickActionButton/DQuickActionButton.d.ts +0 -20
  130. package/dist/types/components/DQuickActionButton/index.d.ts +0 -2
  131. package/dist/types/components/DQuickActionCheck/DQuickActionCheck.d.ts +0 -17
  132. package/dist/types/components/DQuickActionCheck/index.d.ts +0 -2
  133. package/dist/types/components/DQuickActionSelect/DQuickActionSelect.d.ts +0 -13
  134. package/dist/types/components/DQuickActionSelect/index.d.ts +0 -2
  135. package/dist/types/components/DQuickActionSwitch/DQuickActionSwitch.d.ts +0 -15
  136. package/dist/types/components/DQuickActionSwitch/index.d.ts +0 -2
  137. package/dist/types/components/DSkeleton/DSkeleton.d.ts +0 -11
  138. package/dist/types/components/DSkeleton/index.d.ts +0 -2
  139. package/dist/types/components/DTableHead/DTableHead.d.ts +0 -9
  140. package/dist/types/components/DTableHead/index.d.ts +0 -2
  141. package/src/style/components/_d-quick-action-button.scss +0 -121
  142. package/src/style/components/_d-quick-action-check.scss +0 -74
  143. package/src/style/components/_d-quick-action-select.scss +0 -58
  144. 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 { AlertTheme, BaseProps } from '../interface';
2
+ import type { BaseProps, ComponentStateColor } from '../interface';
3
3
  type Props = BaseProps & PropsWithChildren<{
4
4
  id?: string;
5
- theme?: AlertTheme;
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({ 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;
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, theme, variant, className, style, dataAttributes, }: Props): import("react/jsx-runtime").JSX.Element;
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
- theme?: string;
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, theme, id, rounded, className, style, iconStart, iconEnd, iconMaterialStyle, iconFamilyClass, iconFamilyPrefix, dataAttributes, }: Props): import("react/jsx-runtime").JSX.Element;
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 {};
@@ -0,0 +1,2 @@
1
+ import DBox from './DBox';
2
+ export default DBox;
@@ -2,7 +2,7 @@ import type { ReactNode } from 'react';
2
2
  import type { BaseProps, FamilyIconProps } from '../interface';
3
3
  import { DBoxFileProps } from './useDBoxFile';
4
4
  type Props = BaseProps & FamilyIconProps & DBoxFileProps & {
5
- icon?: string;
5
+ icon?: string | false;
6
6
  children?: ReactNode | ((openFileDialog: () => void) => ReactNode);
7
7
  };
8
8
  export default function DBoxFile({ icon: iconProp, iconFamilyClass, iconFamilyPrefix, iconMaterialStyle, children, className, style, dataAttributes, ...props }: Props): import("react/jsx-runtime").JSX.Element;
@@ -1,22 +1,13 @@
1
- import type { MouseEvent } from 'react';
2
- import type { BaseProps, ButtonType, ButtonVariant, ComponentSize, EndIconProps, InputState, StartIconProps } from '../interface';
3
- type Props = BaseProps & StartIconProps & EndIconProps & {
4
- id?: string;
5
- theme?: string;
1
+ import { type ButtonHTMLAttributes } from 'react';
2
+ import type { BaseProps, ButtonVariant, ComponentColor, ComponentSize, EndIconProps, StartIconProps } from '../interface';
3
+ interface Props extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'color'>, BaseProps, StartIconProps, EndIconProps {
4
+ color?: ComponentColor;
6
5
  size?: ComponentSize;
7
6
  variant?: ButtonVariant;
8
- state?: InputState;
9
7
  text?: string;
10
- ariaLabel?: string;
11
- value?: string;
12
- type?: ButtonType;
13
- pill?: boolean;
14
8
  loading?: boolean;
9
+ loadingText?: string;
15
10
  loadingAriaLabel?: string;
16
- disabled?: boolean;
17
- stopPropagationEnabled?: boolean;
18
- form?: string;
19
- onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
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, dataAttributes, onClick, }: Props): import("react/jsx-runtime").JSX.Element;
22
- export {};
11
+ }
12
+ declare const DButton: import("react").ForwardRefExoticComponent<Props & import("react").RefAttributes<HTMLButtonElement>>;
13
+ export default DButton;
@@ -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
- theme?: string;
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, theme, type, loading, disabled, stopPropagationEnabled, style, iconFamilyClass, iconFamilyPrefix, dataAttributes, onClick, }: Props): import("react/jsx-runtime").JSX.Element;
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
- theme?: string;
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({ theme, text, icon, iconFamilyClass, iconFamilyPrefix, iconMaterialStyle, iconClose: iconCloseProp, iconCloseFamilyClass, iconCloseFamilyPrefix, iconCloseMaterialStyle, showClose, closeAriaLabel, className, style, dataAttributes, onClose, }: Props): import("react/jsx-runtime").JSX.Element;
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, ReactNode, ReactElement } from 'react';
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 {};
@@ -0,0 +1,2 @@
1
+ import DCreditCard from './DCreditCard';
2
+ export default DCreditCard;
@@ -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
- headerButtonTheme?: string;
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, iconInput, iconHeaderPrev, iconHeaderNext, iconMaterialStyle, iconFamilyClass, iconFamilyPrefix, minYearSelect, maxYearSelect, iconHeaderSize, headerPrevMonthAriaLabel, headerNextMonthAriaLabel, headerButtonVariant, headerButtonTheme, invalid, valid, renderCustomHeader: renderCustomHeaderProp, className, dateFormatCalendar, style, dataAttributes, placeholder, showHeaderSelectors, ...props }: Props): import("react/jsx-runtime").JSX.Element;
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, ButtonVariant, ComponentSize, FamilyIconProps } from '../../interface';
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, iconFamilyClass, iconFamilyPrefix, iconMaterialStyle, prevMonthAriaLabel, nextMonthAriaLabel, prevYearAriaLabel, nextYearAriaLabel, iconSize, buttonVariant, buttonTheme, style, className, minYearSelect, maxYearSelect, showHeaderSelectors, customHeaderCount, locale, }: Props): import("react/jsx-runtime").JSX.Element;
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 {};
@@ -0,0 +1,2 @@
1
+ import DDropdown from './DDropdown';
2
+ export default DDropdown;
@@ -1,17 +1,21 @@
1
- import type { BaseProps } from '../interface';
1
+ import type { BaseProps, ComponentColor } from '../interface';
2
+ import { ResponsiveProp } from '../../hooks/useResponsiveProp';
2
3
  type Props = BaseProps & {
3
4
  icon: string;
4
- theme?: string;
5
- size?: string;
6
- loading?: boolean;
7
- loadingDuration?: number;
5
+ color?: ComponentColor;
6
+ size?: string | ResponsiveProp;
7
+ /**
8
+ * Enables real-time breakpoint listeners for responsive size changes.
9
+ * When set to true, the component will listen for size changes and update responsively.
10
+ * Note: Enabling this feature may have performance implications, especially
11
+ * in complex or frequently updated components.
12
+ */
13
+ useListenerSize?: boolean;
8
14
  hasCircle?: boolean;
9
- circleSize?: string;
10
- color?: string;
11
- backgroundColor?: string;
12
15
  materialStyle?: boolean;
13
16
  familyClass?: string;
14
17
  familyPrefix?: string;
18
+ strokeWidth?: number;
15
19
  };
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;
20
+ export default function DIconBase({ icon, color, style, className, size, useListenerSize, hasCircle, materialStyle, familyClass, familyPrefix, strokeWidth, dataAttributes, }: Props): import("react/jsx-runtime").JSX.Element;
17
21
  export {};
@@ -1,6 +1,6 @@
1
1
  import type { ReactNode } from 'react';
2
- import type { BaseProps, ComponentSize, 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">, "size" | "loading" | "label" | "invalid" | "value" | "onChange" | keyof BaseProps | keyof FamilyIconProps | keyof LabelIconProps | keyof StartIconProps | keyof EndIconProps | "hint" | "valid" | "floatingLabel" | "inputStart" | "inputEnd" | "onIconStartClick" | "onIconEndClick"> & BaseProps & FamilyIconProps & LabelIconProps & StartIconProps & EndIconProps & {
2
+ import type { BaseProps, 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">, "value" | "onChange">, "label" | "invalid" | "value" | "onChange" | "size" | keyof BaseProps | keyof FamilyIconProps | keyof StartIconProps | keyof EndIconProps | "loading" | "hint" | "valid" | "floatingLabel" | "inputStart" | "inputEnd" | "readonly" | "onIconStartClick" | "onIconEndClick"> & BaseProps & FamilyIconProps & StartIconProps & EndIconProps & {
4
4
  value?: string | undefined;
5
5
  label?: string | undefined;
6
6
  loading?: boolean | undefined;
@@ -11,6 +11,7 @@ declare const ForwardedDInput: import("react").ForwardRefExoticComponent<Omit<Om
11
11
  floatingLabel?: boolean | undefined;
12
12
  inputStart?: ReactNode;
13
13
  inputEnd?: ReactNode;
14
+ readonly?: boolean | undefined;
14
15
  onChange?: ((value: string) => void) | undefined;
15
16
  onIconStartClick?: ((value?: string) => void) | undefined;
16
17
  onIconEndClick?: ((value?: string) => void) | undefined;
@@ -7,6 +7,7 @@ type Props = ComponentPropsWithoutRef<'input'> & BaseProps & {
7
7
  label?: string;
8
8
  ariaLabel?: string;
9
9
  checked?: boolean;
10
+ inputClassName?: string;
10
11
  disabled?: boolean;
11
12
  invalid?: boolean;
12
13
  valid?: boolean;
@@ -15,5 +16,5 @@ type Props = ComponentPropsWithoutRef<'input'> & BaseProps & {
15
16
  value?: string;
16
17
  onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
17
18
  };
18
- export default function DInputCheck({ id: idProp, type, name, label, ariaLabel, checked, disabled, invalid, valid, indeterminate, value, hint, onChange, className, style, dataAttributes, ...props }: Props): import("react/jsx-runtime").JSX.Element;
19
+ export default function DInputCheck({ id: idProp, type, name, label, ariaLabel, checked, disabled, invalid, valid, indeterminate, inputClassName, value, hint, onChange, className, style, dataAttributes, ...props }: Props): import("react/jsx-runtime").JSX.Element;
19
20
  export {};
@@ -5,7 +5,7 @@ type NonDInputProps = {
5
5
  maxValue: number;
6
6
  onChange?: (value?: number) => void;
7
7
  };
8
- declare const ForwardedDInputCounter: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<Omit<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "value" | "onChange">, "size" | "loading" | "label" | "invalid" | "value" | "onChange" | keyof import("../interface").BaseProps | keyof import("../interface").FamilyIconProps | keyof import("../interface").LabelIconProps | keyof import("../interface").StartIconProps | keyof import("../interface").EndIconProps | "hint" | "valid" | "floatingLabel" | "inputStart" | "inputEnd" | "onIconStartClick" | "onIconEndClick"> & import("../interface").BaseProps & import("../interface").FamilyIconProps & import("../interface").LabelIconProps & import("../interface").StartIconProps & import("../interface").EndIconProps & {
8
+ declare const ForwardedDInputCounter: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<Omit<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "value" | "onChange">, "label" | "invalid" | "value" | "onChange" | "size" | keyof import("../interface").BaseProps | keyof import("../interface").FamilyIconProps | keyof import("../interface").StartIconProps | keyof import("../interface").EndIconProps | "loading" | "hint" | "valid" | "floatingLabel" | "inputStart" | "inputEnd" | "readonly" | "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;
@@ -16,8 +16,9 @@ declare const ForwardedDInputCounter: import("react").ForwardRefExoticComponent<
16
16
  floatingLabel?: boolean | undefined;
17
17
  inputStart?: import("react").ReactNode;
18
18
  inputEnd?: import("react").ReactNode;
19
+ readonly?: boolean | undefined;
19
20
  onChange?: ((value: string) => void) | undefined;
20
21
  onIconStartClick?: ((value?: string | undefined) => void) | undefined;
21
22
  onIconEndClick?: ((value?: string | undefined) => void) | undefined;
22
- } & import("react").RefAttributes<HTMLInputElement>, "ref">, "value" | "type" | "onChange" | "validIcon" | "invalidIcon">, keyof NonDInputProps> & NonDInputProps & import("react").RefAttributes<HTMLInputElement>>;
23
+ } & import("react").RefAttributes<HTMLInputElement>, "ref">, "value" | "onChange" | "type" | "validIcon" | "invalidIcon">, keyof NonDInputProps> & NonDInputProps & import("react").RefAttributes<HTMLInputElement>>;
23
24
  export default ForwardedDInputCounter;
@@ -6,7 +6,7 @@ type NonDInputProps = {
6
6
  currencyCode?: string;
7
7
  onChange?: (value?: number) => void;
8
8
  };
9
- declare const ForwardedDInputCurrencyBase: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<Omit<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "value" | "onChange">, "size" | "loading" | "label" | "invalid" | "value" | "onChange" | keyof import("../interface").BaseProps | keyof import("../interface").FamilyIconProps | keyof import("../interface").LabelIconProps | keyof import("../interface").StartIconProps | keyof import("../interface").EndIconProps | "hint" | "valid" | "floatingLabel" | "inputStart" | "inputEnd" | "onIconStartClick" | "onIconEndClick"> & import("../interface").BaseProps & import("../interface").FamilyIconProps & import("../interface").LabelIconProps & import("../interface").StartIconProps & import("../interface").EndIconProps & {
9
+ declare const ForwardedDInputCurrency: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<Omit<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "value" | "onChange">, "label" | "invalid" | "value" | "onChange" | "size" | keyof import("../interface").BaseProps | keyof import("../interface").FamilyIconProps | keyof import("../interface").StartIconProps | keyof import("../interface").EndIconProps | "loading" | "hint" | "valid" | "floatingLabel" | "inputStart" | "inputEnd" | "readonly" | "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;
@@ -17,8 +17,9 @@ declare const ForwardedDInputCurrencyBase: import("react").ForwardRefExoticCompo
17
17
  floatingLabel?: boolean | undefined;
18
18
  inputStart?: import("react").ReactNode;
19
19
  inputEnd?: import("react").ReactNode;
20
+ readonly?: boolean | undefined;
20
21
  onChange?: ((value: string) => void) | undefined;
21
22
  onIconStartClick?: ((value?: string | undefined) => void) | undefined;
22
23
  onIconEndClick?: ((value?: string | undefined) => void) | undefined;
23
- } & import("react").RefAttributes<HTMLInputElement>, "ref">, "value" | "type" | "onChange">, keyof NonDInputProps> & NonDInputProps & import("react").RefAttributes<HTMLInputElement>>;
24
- export default ForwardedDInputCurrencyBase;
24
+ } & import("react").RefAttributes<HTMLInputElement>, "ref">, "value" | "onChange" | "type">, keyof NonDInputProps> & NonDInputProps & import("react").RefAttributes<HTMLInputElement>>;
25
+ export default ForwardedDInputCurrency;
@@ -1,18 +1,8 @@
1
- /// <reference types="react" />
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">, "size" | "loading" | "label" | "invalid" | "value" | "onChange" | keyof import("../interface").BaseProps | keyof import("../interface").FamilyIconProps | keyof import("../interface").LabelIconProps | keyof import("../interface").StartIconProps | keyof import("../interface").EndIconProps | "hint" | "valid" | "floatingLabel" | "inputStart" | "inputEnd" | "onIconStartClick" | "onIconEndClick"> & import("../interface").BaseProps & import("../interface").FamilyIconProps & import("../interface").LabelIconProps & import("../interface").StartIconProps & import("../interface").EndIconProps & {
4
- value?: string | undefined;
5
- label?: string | undefined;
6
- loading?: boolean | undefined;
7
- hint?: string | undefined;
8
- size?: import("../interface").ComponentSize | undefined;
9
- invalid?: boolean | undefined;
10
- valid?: boolean | undefined;
11
- floatingLabel?: boolean | undefined;
12
- inputStart?: import("react").ReactNode;
13
- inputEnd?: import("react").ReactNode;
14
- onChange?: ((value: string) => void) | undefined;
15
- onIconStartClick?: ((value?: string | undefined) => void) | undefined;
16
- onIconEndClick?: ((value?: string | undefined) => void) | undefined;
17
- } & import("react").RefAttributes<HTMLInputElement>, "ref">, keyof MaskProps> & MaskProps & import("react").RefAttributes<HTMLInputElement>>;
1
+ import { type InputMaskProps } from '@react-input/mask';
2
+ import type { ComponentPropsWithoutRef } from 'react';
3
+ import DInput from '../DInput';
4
+ import type { Merge } from '../../types';
5
+ type NonDInputProps = InputMaskProps<typeof DInput>;
6
+ type Props = Merge<ComponentPropsWithoutRef<typeof DInput>, NonDInputProps>;
7
+ declare const ForwardedDInputMask: import("react").ForwardRefExoticComponent<Omit<Props, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
18
8
  export default ForwardedDInputMask;
@@ -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, LabelIconProps } from '../interface';
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">, "pattern" | "value" | "type" | "onChange" | "inputMode" | "onWheel">, "size" | "loading" | "label" | "invalid" | "value" | "onChange" | keyof BaseProps | keyof FamilyIconProps | keyof LabelIconProps | keyof EndIconProps | "hint" | "valid" | "floatingLabel" | "inputEnd" | "onIconEndClick" | "countrySelectorProps" | "filteredCountries" | "defaultCountry"> & BaseProps & FamilyIconProps & LabelIconProps & EndIconProps & {
10
+ declare const ForwardedDInputPhone: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "pattern" | "value" | "inputMode" | "onChange" | "onWheel" | "type">, "label" | "invalid" | "value" | "onChange" | "size" | 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, LabelIconProps, PinInputMode, PinInputType } from '../interface';
2
- type Props = BaseProps & LabelIconProps & FamilyIconProps & {
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, labelIcon, labelIconFamilyClass, labelIconFamilyPrefix, placeholder, type, disabled, loading, secret, characters, innerInputMode, hint, invalid, valid, className, style, dataAttributes, onChange, }: Props): import("react/jsx-runtime").JSX.Element;
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, LabelIconProps } 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 | keyof LabelIconProps | "ariaLabel" | "filledValue"> & BaseProps & LabelIconProps & {
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, LabelIconProps, StartIconProps } from '../interface';
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 & LabelIconProps & StartIconProps & EndIconProps & {
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, labelIcon, labelIconFamilyClass, labelIconFamilyPrefix, 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;
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;
@@ -6,10 +6,11 @@ type Props = BaseProps & {
6
6
  name?: string;
7
7
  checked?: boolean;
8
8
  disabled?: boolean;
9
+ inputClassName?: string;
9
10
  invalid?: boolean;
10
11
  valid?: boolean;
11
12
  readonly?: boolean;
12
13
  onChange?: (isChecked: boolean) => void;
13
14
  };
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
+ export default function DInputSwitch({ id: idProp, label, ariaLabel, name, checked, disabled, invalid, valid, readonly, className, style, dataAttributes, inputClassName, onChange, }: Props): import("react/jsx-runtime").JSX.Element;
15
16
  export {};
@@ -0,0 +1,22 @@
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
+ columns?: number;
17
+ }>;
18
+ declare function DLayout({ className, style, children, gap, columns, gapSm, gapMd, gapLg, gapXl, gapXxl, dataAttributes, }: Props): import("react/jsx-runtime").JSX.Element;
19
+ declare const _default: typeof DLayout & {
20
+ Pane: typeof DLayoutPane;
21
+ };
22
+ 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 {};
@@ -0,0 +1,3 @@
1
+ import DLayout from './DLayout';
2
+ export { default as DLayoutPane } from './components/DLayoutPane';
3
+ export default DLayout;
@@ -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
- theme?: string;
10
+ color?: ComponentColor;
11
11
  }>;
12
- export default function DListGroupItem({ as, action: actionProp, active, disabled, href, onClick, theme, children, className, style, dataAttributes, }: Props): import("react/jsx-runtime").JSX.Element;
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 {};
@@ -1,3 +1,4 @@
1
+ import { type Transition } from 'framer-motion';
1
2
  import type { PropsWithChildren } from 'react';
2
3
  import DModalHeader from './components/DModalHeader';
3
4
  import DModalBody from './components/DModalBody';
@@ -11,8 +12,9 @@ type Props = BaseProps & PropsWithChildren<{
11
12
  fullScreen?: boolean;
12
13
  fullScreenFrom?: ModalFullScreenFrom;
13
14
  size?: ModalSize;
15
+ transition?: Transition;
14
16
  }>;
15
- declare function DModal({ name, className, style, staticBackdrop, scrollable, centered, fullScreen, fullScreenFrom, size, children, dataAttributes, }: Props): import("react/jsx-runtime").JSX.Element;
17
+ declare function DModal({ name, className, style, staticBackdrop, scrollable, centered, fullScreen, fullScreenFrom, size, transition, children, dataAttributes, }: Props): import("react/jsx-runtime").JSX.Element;
16
18
  declare const _default: typeof DModal & {
17
19
  Header: typeof DModalHeader;
18
20
  Body: typeof DModalBody;
@@ -1,3 +1,4 @@
1
+ import { type Transition } from 'framer-motion';
1
2
  import type { PropsWithChildren } from 'react';
2
3
  import DOffcanvasHeader from './components/DOffcanvasHeader';
3
4
  import DOffcanvasBody from './components/DOffcanvasBody';
@@ -8,8 +9,9 @@ type Props = BaseProps & PropsWithChildren<{
8
9
  staticBackdrop?: boolean;
9
10
  scrollable?: boolean;
10
11
  openFrom?: OffcanvasPositionToggleFrom;
12
+ transition?: Transition;
11
13
  }>;
12
- declare function DOffcanvas({ name, className, style, staticBackdrop, scrollable, openFrom, children, dataAttributes, }: Props): import("react/jsx-runtime").JSX.Element;
14
+ declare function DOffcanvas({ name, className, style, staticBackdrop, scrollable, openFrom, transition, children, dataAttributes, }: Props): import("react/jsx-runtime").JSX.Element;
13
15
  declare const _default: typeof DOffcanvas & {
14
16
  Header: typeof DOffcanvasHeader;
15
17
  Body: typeof DOffcanvasBody;
@@ -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
@@ -0,0 +1,7 @@
1
+ type Props = {
2
+ seconds: number;
3
+ resendText?: string;
4
+ message?: (secondsLeft: number) => string;
5
+ };
6
+ export default function OtpCountdown({ seconds, resendText, message, }: Props): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,4 @@
1
+ export default function useCountdown(seconds: number): {
2
+ secondsLeft: number;
3
+ restartCountdown: () => void;
4
+ };
@@ -0,0 +1,2 @@
1
+ import DOtp from './DOtp';
2
+ export default DOtp;