@dynamic-framework/ui-react 1.36.2 → 2.0.0-dev.2

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 (165) hide show
  1. package/dist/css/dynamic-ui-non-root.css +7220 -3665
  2. package/dist/css/dynamic-ui-non-root.min.css +2 -2
  3. package/dist/css/dynamic-ui-root.css +799 -127
  4. package/dist/css/dynamic-ui-root.min.css +2 -2
  5. package/dist/css/dynamic-ui.css +8012 -3785
  6. package/dist/css/dynamic-ui.min.css +2 -2
  7. package/dist/index.esm.js +250 -305
  8. package/dist/index.esm.js.map +1 -1
  9. package/dist/index.js +275 -314
  10. package/dist/index.js.map +1 -1
  11. package/dist/js/bootstrap.bundle.js +3 -6
  12. package/dist/js/bootstrap.bundle.min.js +2 -2
  13. package/dist/js/bootstrap.esm.js +3 -6
  14. package/dist/js/bootstrap.esm.min.js +2 -2
  15. package/dist/js/bootstrap.js +3 -6
  16. package/dist/js/bootstrap.min.js +2 -2
  17. package/dist/types/components/DAlert/DAlert.d.ts +3 -3
  18. package/dist/types/components/DAvatar/DAvatar.d.ts +1 -3
  19. package/dist/types/components/DBadge/DBadge.d.ts +4 -3
  20. package/dist/types/components/DBarChart/DBarChart.d.ts +9 -0
  21. package/dist/types/components/DBox/DBox.d.ts +5 -0
  22. package/dist/types/components/DBox/index.d.ts +2 -0
  23. package/dist/types/components/DBoxFile/useDBoxFile.d.ts +2 -2
  24. package/dist/types/components/DButton/DButton.d.ts +6 -5
  25. package/dist/types/components/DButtonIcon/DButtonIcon.d.ts +3 -3
  26. package/dist/types/components/DCarousel/components/DCarouselSlide.d.ts +3 -1
  27. package/dist/types/components/DChip/DChip.d.ts +3 -3
  28. package/dist/types/components/DCollapse/DCollapse.d.ts +2 -2
  29. package/dist/types/components/DCreditCard/DCreditCard.d.ts +12 -0
  30. package/dist/types/components/DCreditCard/index.d.ts +2 -0
  31. package/dist/types/components/DDatePicker/DDatePicker.d.ts +3 -3
  32. package/dist/types/components/DDatePicker/components/DDatePickerHeaderSelector.d.ts +2 -4
  33. package/dist/types/components/DDropdown/DDropdown.d.ts +20 -0
  34. package/dist/types/components/DDropdown/index.d.ts +2 -0
  35. package/dist/types/components/DIconBase/DIconBase.d.ts +4 -8
  36. package/dist/types/components/DInput/DInput.d.ts +2 -2
  37. package/dist/types/components/DInputCounter/DInputCounter.d.ts +2 -2
  38. package/dist/types/components/DInputCurrency/DInputCurrency.d.ts +3 -3
  39. package/dist/types/components/DInputMask/DInputMask.d.ts +1 -1
  40. package/dist/types/components/DInputPhone/DInputPhone.d.ts +2 -2
  41. package/dist/types/components/DInputPin/DInputPin.d.ts +3 -3
  42. package/dist/types/components/DInputRange/DInputRange.d.ts +2 -2
  43. package/dist/types/components/DInputSelect/DInputSelect.d.ts +3 -3
  44. package/dist/types/components/DLayout/DLayout.d.ts +11 -0
  45. package/dist/types/components/DLayout/components/DLayoutPane.d.ts +13 -0
  46. package/dist/types/components/DLayout/index.d.ts +3 -0
  47. package/dist/types/components/DListGroup/components/DListGroupItem.d.ts +4 -4
  48. package/dist/types/components/DMinimalLineChart/DMinimalLineChart.d.ts +9 -0
  49. package/dist/types/components/DMultiLineChart/DMultiLineChart.d.ts +9 -0
  50. package/dist/types/components/DOtp/DOtp.d.ts +16 -0
  51. package/dist/types/components/DOtp/DOtpspec.d.ts +0 -0
  52. package/dist/types/components/DOtp/components/OtpCountdown.d.ts +7 -0
  53. package/dist/types/components/DOtp/hooks/useCountdown.d.ts +4 -0
  54. package/dist/types/components/DOtp/index.d.ts +2 -0
  55. package/dist/types/components/DPaginator/DPaginator.d.ts +2 -27
  56. package/dist/types/components/DPieChart/DPieChart.d.ts +9 -0
  57. package/dist/types/components/DPopover/DPopover.d.ts +1 -1
  58. package/dist/types/components/DProgress/DProgress.d.ts +2 -1
  59. package/dist/types/components/DRadialBarChart/DRadialBarChart.d.ts +6 -0
  60. package/dist/types/components/DSelect/DSelect.d.ts +3 -3
  61. package/dist/types/components/DTabs/DTabs.d.ts +2 -2
  62. package/dist/types/components/DTimeline/DTimeline.d.ts +15 -0
  63. package/dist/types/components/DTimeline/index.d.ts +2 -0
  64. package/dist/types/components/DToastContainer/useDToast.d.ts +2 -2
  65. package/dist/types/components/DTooltip/DTooltip.d.ts +1 -2
  66. package/dist/types/components/index.d.ts +5 -8
  67. package/dist/types/components/interface.d.ts +3 -8
  68. package/dist/types/contexts/DContext.d.ts +0 -2
  69. package/dist/types/hooks/tests/useDisableBodyScrollEffect.spec.d.ts +1 -0
  70. package/dist/types/hooks/tests/useDisableInputWheel.spec.d.ts +1 -0
  71. package/dist/types/hooks/tests/useFormatCurrency.spec.d.ts +1 -0
  72. package/dist/types/hooks/tests/useInputCurrency.spec.d.ts +1 -0
  73. package/dist/types/hooks/tests/useItemSelection.spec.d.ts +1 -0
  74. package/dist/types/hooks/tests/useMediaBreakpointUp.spec.d.ts +1 -0
  75. package/dist/types/hooks/tests/useMediaQuery.spec.d.ts +1 -0
  76. package/dist/types/hooks/tests/usePortal.spec.d.ts +1 -0
  77. package/dist/types/hooks/tests/useProvidedRefOrCreate.spec.d.ts +1 -0
  78. package/dist/types/hooks/tests/useStackState.spec.d.ts +1 -0
  79. package/dist/types/hooks/useInputCurrency.d.ts +1 -1
  80. package/dist/types/hooks/useProvidedRefOrCreate.d.ts +1 -1
  81. package/dist/types/types/polymorphic.d.ts +3 -3
  82. package/dist/types/utils/tests/attr-accept.spec.d.ts +1 -0
  83. package/dist/types/utils/tests/changeQueryString.spec.d.ts +1 -0
  84. package/dist/types/utils/tests/configureI18n.spec.d.ts +1 -0
  85. package/dist/types/utils/tests/formatCurrency.spec.d.ts +1 -0
  86. package/dist/types/utils/tests/getCssVariable.spec.d.ts +1 -0
  87. package/dist/types/utils/tests/getKeyboardFocusableElements.spec.d.ts +1 -0
  88. package/dist/types/utils/tests/getQueryString.spec.d.ts +1 -0
  89. package/dist/types/utils/tests/mediaQuery.spec.d.ts +1 -0
  90. package/dist/types/utils/tests/validatePhoneNumber.spec.d.ts +1 -0
  91. package/jest/setup.js +94 -1
  92. package/package.json +32 -30
  93. package/src/style/_shame.scss +42 -1
  94. package/src/style/abstracts/_mixins.scss +1 -3
  95. package/src/style/abstracts/_utilities.scss +51 -1
  96. package/src/style/abstracts/variables/_+import.scss +3 -2
  97. package/src/style/abstracts/variables/_alerts.scss +2 -0
  98. package/src/style/abstracts/variables/_body.scss +10 -3
  99. package/src/style/abstracts/variables/_border.scss +5 -5
  100. package/src/style/abstracts/variables/_buttons.scss +17 -11
  101. package/src/style/abstracts/variables/_cards.scss +6 -4
  102. package/src/style/abstracts/variables/_chips.scss +2 -2
  103. package/src/style/abstracts/variables/_colors.scss +140 -69
  104. package/src/style/abstracts/variables/_datepicker.scss +10 -9
  105. package/src/style/abstracts/variables/_dropdowns.scss +6 -4
  106. package/src/style/abstracts/variables/_forms.scss +4 -4
  107. package/src/style/abstracts/variables/_list-group.scss +2 -2
  108. package/src/style/abstracts/variables/_modals.scss +4 -3
  109. package/src/style/abstracts/variables/_offcanvas.scss +1 -0
  110. package/src/style/abstracts/variables/_pagination.scss +4 -4
  111. package/src/style/abstracts/variables/_shadow.scss +1 -0
  112. package/src/style/abstracts/variables/_tables.scss +8 -3
  113. package/src/style/abstracts/variables/_tooltip.scss +1 -1
  114. package/src/style/abstracts/variables/_typography.scss +7 -7
  115. package/src/style/base/_+import.scss +1 -0
  116. package/src/style/base/_alert.scss +1 -27
  117. package/src/style/base/_badge.scss +50 -12
  118. package/src/style/base/_buttons.scss +143 -23
  119. package/src/style/base/_dropdown.scss +18 -0
  120. package/src/style/base/_input-group.scss +5 -0
  121. package/src/style/base/_list-group.scss +6 -0
  122. package/src/style/base/_pagination.scss +2 -0
  123. package/src/style/base/_tables.scss +4 -0
  124. package/src/style/base/_tooltip.scss +1 -10
  125. package/src/style/components/_+import.scss +4 -4
  126. package/src/style/components/_d-avatar.scss +2 -20
  127. package/src/style/components/_d-box.scss +13 -0
  128. package/src/style/components/_d-carousel.scss +19 -1
  129. package/src/style/components/_d-credit-card.scss +67 -0
  130. package/src/style/components/_d-datepicker.scss +64 -26
  131. package/src/style/components/_d-icon.scss +10 -3
  132. package/src/style/components/_d-modal.scss +3 -0
  133. package/src/style/components/_d-stepper-desktop.scss +61 -65
  134. package/src/style/components/_d-stepper-mobile.scss +2 -2
  135. package/src/style/components/_d-tabs.scss +37 -0
  136. package/src/style/components/_d-timeline.scss +108 -0
  137. package/src/style/helpers/_color-bg.scss +13 -3
  138. package/src/style/root/_root.scss +35 -18
  139. package/dist/css/bootstrap-icons.css +0 -2106
  140. package/dist/css/bootstrap-icons.json +0 -2080
  141. package/dist/css/bootstrap-icons.min.css +0 -5
  142. package/dist/css/bootstrap-icons.scss +0 -2118
  143. package/dist/css/fonts/bootstrap-icons.woff +0 -0
  144. package/dist/css/fonts/bootstrap-icons.woff2 +0 -0
  145. package/dist/types/components/DInputCurrencyBase/DInputCurrencyBase.d.ts +0 -26
  146. package/dist/types/components/DInputCurrencyBase/index.d.ts +0 -2
  147. package/dist/types/components/DInputSearch/DInputSearch.d.ts +0 -17
  148. package/dist/types/components/DInputSearch/index.d.ts +0 -2
  149. package/dist/types/components/DList/DList.d.ts +0 -17
  150. package/dist/types/components/DList/components/DListItem.d.ts +0 -13
  151. package/dist/types/components/DList/index.d.ts +0 -3
  152. package/dist/types/components/DQuickActionButton/DQuickActionButton.d.ts +0 -20
  153. package/dist/types/components/DQuickActionButton/index.d.ts +0 -2
  154. package/dist/types/components/DQuickActionCheck/DQuickActionCheck.d.ts +0 -17
  155. package/dist/types/components/DQuickActionCheck/index.d.ts +0 -2
  156. package/dist/types/components/DQuickActionSelect/DQuickActionSelect.d.ts +0 -13
  157. package/dist/types/components/DQuickActionSelect/index.d.ts +0 -2
  158. package/dist/types/components/DQuickActionSwitch/DQuickActionSwitch.d.ts +0 -15
  159. package/dist/types/components/DQuickActionSwitch/index.d.ts +0 -2
  160. package/dist/types/components/DSkeleton/DSkeleton.d.ts +0 -11
  161. package/dist/types/components/DSkeleton/index.d.ts +0 -2
  162. package/src/style/components/_d-quick-action-button.scss +0 -121
  163. package/src/style/components/_d-quick-action-check.scss +0 -74
  164. package/src/style/components/_d-quick-action-select.scss +0 -58
  165. package/src/style/components/_d-quick-action-switch.scss +0 -64
@@ -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
- theme?: string;
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, theme, style, className, size, loading, loadingDuration, hasCircle, circleSize, color, backgroundColor, materialStyle, familyClass, familyPrefix, dataAttributes, }: Props): import("react/jsx-runtime").JSX.Element;
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, 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" | "value" | "invalid" | "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">, "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">, "value" | "onChange">, "size" | "loading" | "label" | "value" | "invalid" | "onChange" | keyof import("../interface").BaseProps | keyof import("../interface").FamilyIconProps | keyof import("../interface").LabelIconProps | keyof import("../interface").StartIconProps | keyof import("../interface").EndIconProps | "hint" | "valid" | "floatingLabel" | "inputStart" | "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">, "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">, "value" | "type" | "onChange" | "validIcon" | "invalidIcon">, keyof NonDInputProps> & NonDInputProps & import("react").RefAttributes<HTMLInputElement>>;
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 ForwardedDInputCurrencyBase: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<Omit<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "value" | "onChange">, "size" | "loading" | "label" | "value" | "invalid" | "onChange" | keyof import("../interface").BaseProps | keyof import("../interface").FamilyIconProps | keyof import("../interface").LabelIconProps | keyof import("../interface").StartIconProps | keyof import("../interface").EndIconProps | "hint" | "valid" | "floatingLabel" | "inputStart" | "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">, "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">, "value" | "type" | "onChange">, keyof NonDInputProps> & NonDInputProps & import("react").RefAttributes<HTMLInputElement>>;
24
- export default ForwardedDInputCurrencyBase;
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">, "value" | "onChange">, "size" | "loading" | "label" | "value" | "invalid" | "onChange" | keyof import("../interface").BaseProps | keyof import("../interface").FamilyIconProps | keyof import("../interface").LabelIconProps | keyof import("../interface").StartIconProps | keyof import("../interface").EndIconProps | "hint" | "valid" | "floatingLabel" | "inputStart" | "inputEnd" | "onIconStartClick" | "onIconEndClick"> & import("../interface").BaseProps & import("../interface").FamilyIconProps & import("../interface").LabelIconProps & import("../interface").StartIconProps & import("../interface").EndIconProps & {
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, 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" | "onWheel" | "inputMode">, "size" | "loading" | "label" | "value" | "invalid" | "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">, "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, 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;
@@ -0,0 +1,11 @@
1
+ import type { PropsWithChildren } from 'react';
2
+ import DLayoutPane from './components/DLayoutPane';
3
+ import type { BaseProps } from '../interface';
4
+ type Props = PropsWithChildren<BaseProps & {
5
+ gap?: string | number;
6
+ }>;
7
+ declare function DLayout({ className, style, children, gap, dataAttributes, }: Props): import("react/jsx-runtime").JSX.Element;
8
+ declare const _default: typeof DLayout & {
9
+ Pane: typeof DLayoutPane;
10
+ };
11
+ 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 {};
@@ -0,0 +1,9 @@
1
+ type DMinimalLineChartProps = {
2
+ data: {
3
+ time: string;
4
+ value: number;
5
+ }[];
6
+ lineColor?: string;
7
+ };
8
+ export default function DMinimalLineChart({ data, lineColor, }: DMinimalLineChartProps): import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -0,0 +1,9 @@
1
+ type DMultiLineChartProps = {
2
+ data: unknown[];
3
+ lineConfigs: {
4
+ dataKey: string;
5
+ color: string;
6
+ }[];
7
+ };
8
+ export default function DMultiLineChart({ data, lineConfigs, }: DMultiLineChartProps): import("react/jsx-runtime").JSX.Element;
9
+ 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
@@ -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;
@@ -1,31 +1,6 @@
1
1
  import type { ResponsivePaginationProps } from 'react-responsive-pagination';
2
2
  import { DataAttributes } from '../interface';
3
- export type Props = Omit<ResponsivePaginationProps, 'current'> & {
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 type ConditionalProps = Props | (Props & {
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;
@@ -0,0 +1,9 @@
1
+ type DPieChartProps = {
2
+ data: {
3
+ name: string;
4
+ value: number;
5
+ color: string;
6
+ }[];
7
+ };
8
+ export default function DPieChart({ data, }: DPieChartProps): import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -6,7 +6,7 @@ type Props = BaseProps & PropsWithChildren<{
6
6
  * @param {boolean} open
7
7
  * @returns {React.ReactElement}
8
8
  */
9
- renderComponent: (open: boolean) => ReactElement;
9
+ renderComponent: (open: boolean) => ReactElement<unknown>;
10
10
  open: boolean;
11
11
  setOpen?: (open: boolean) => void;
12
12
  adjustContentToRender?: boolean;
@@ -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 {};
@@ -0,0 +1,6 @@
1
+ type DRadialBarChartProps = {
2
+ value: number;
3
+ color?: string;
4
+ };
5
+ export default function DRadialBarChart({ value, color, }: DRadialBarChartProps): import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -10,8 +10,8 @@ import DSelectOptionEmoji from './components/DSelectOptionEmoji';
10
10
  import DSelectSingleValueEmoji from './components/DSelectSingleValueEmoji';
11
11
  import DSelectSingleValueEmojiText from './components/DSelectSingleValueEmojiText';
12
12
  import DSelectPlaceholder from './components/DSelectPlaceholder';
13
- import type { BaseProps, EndIconProps, FamilyIconProps, LabelIconProps, StartIconProps } from '../interface';
14
- type Props<Option, IsMulti extends boolean, Group extends GroupBase<Option>> = BaseProps & FamilyIconProps & LabelIconProps & StartIconProps & EndIconProps & Omit<SelectProps<Option, IsMulti, Group>, 'isDisabled' | 'isClearable' | 'isLoading' | 'isRtl' | 'isSearchable' | 'isMulti'> & {
13
+ import type { BaseProps, EndIconProps, FamilyIconProps, StartIconProps } from '../interface';
14
+ type Props<Option, IsMulti extends boolean, Group extends GroupBase<Option>> = BaseProps & FamilyIconProps & StartIconProps & EndIconProps & Omit<SelectProps<Option, IsMulti, Group>, 'isDisabled' | 'isClearable' | 'isLoading' | 'isRtl' | 'isSearchable' | 'isMulti'> & {
15
15
  label?: string;
16
16
  hint?: string;
17
17
  invalid?: boolean;
@@ -27,7 +27,7 @@ type Props<Option, IsMulti extends boolean, Group extends GroupBase<Option>> = B
27
27
  searchable?: SelectProps<Option, IsMulti, Group>['isSearchable'];
28
28
  multi?: SelectProps<Option, IsMulti, Group>['isMulti'];
29
29
  };
30
- declare function DSelect<Option = unknown, IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>>({ id: idProp, className, style, label, labelIcon, labelIconFamilyClass, labelIconFamilyPrefix, hint, iconFamilyClass, iconFamilyPrefix, iconStart, iconStartFamilyClass, iconStartFamilyPrefix, iconStartAriaLabel, iconStartTabIndex, iconEnd, iconEndFamilyClass, iconEndFamilyPrefix, iconEndAriaLabel, iconEndTabIndex, invalid, valid, menuWithMaxContent, disabled, clearable, loading, floatingLabel, rtl, searchable, multi, components, defaultValue, placeholder, onIconStartClick, onIconEndClick, dataAttributes, ...props }: Props<Option, IsMulti, Group>): import("react/jsx-runtime").JSX.Element;
30
+ declare function DSelect<Option = unknown, IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>>({ id: idProp, className, style, label, hint, iconFamilyClass, iconFamilyPrefix, iconStart, iconStartFamilyClass, iconStartFamilyPrefix, iconStartAriaLabel, iconStartTabIndex, iconEnd, iconEndFamilyClass, iconEndFamilyPrefix, iconEndAriaLabel, iconEndTabIndex, invalid, valid, menuWithMaxContent, disabled, clearable, loading, floatingLabel, rtl, searchable, multi, components, defaultValue, placeholder, onIconStartClick, onIconEndClick, dataAttributes, ...props }: Props<Option, IsMulti, Group>): import("react/jsx-runtime").JSX.Element;
31
31
  declare const _default: typeof DSelect & {
32
32
  OptionCheck: typeof DSelectOptionCheck;
33
33
  OptionIcon: typeof DSelectOptionIcon;
@@ -2,11 +2,11 @@ import type { PropsWithChildren } from 'react';
2
2
  import DTabContent from './components/DTabContent';
3
3
  import type { BaseProps } from '../interface';
4
4
  export type DTabOption = {
5
- label: string;
5
+ label: string | React.ReactNode;
6
6
  tab: string;
7
7
  disabled?: boolean;
8
8
  };
9
- export type TabVariant = 'tabs' | 'pills' | 'underline';
9
+ export type TabVariant = 'tabs' | 'pills' | 'underline' | 'toggle-button-group';
10
10
  type Props = BaseProps & PropsWithChildren<{
11
11
  classNameTab?: string;
12
12
  onChange?: (option: DTabOption) => void;
@@ -0,0 +1,15 @@
1
+ /// <reference types="react" />
2
+ import type { BaseProps } from '../interface';
3
+ export type DTimelineItem = {
4
+ title: string;
5
+ description?: string;
6
+ time?: string;
7
+ icon?: string;
8
+ status?: 'success' | 'warning' | 'danger' | 'info';
9
+ children?: React.ReactNode;
10
+ };
11
+ type Props = BaseProps & {
12
+ items: DTimelineItem[];
13
+ };
14
+ export default function DTimeline({ className, style, dataAttributes, items, }: Props): import("react/jsx-runtime").JSX.Element;
15
+ export {};
@@ -0,0 +1,2 @@
1
+ import DTimeline from './DTimeline';
2
+ export default DTimeline;
@@ -1,12 +1,12 @@
1
1
  import { Renderable, Toast, ValueFunction } from 'react-hot-toast';
2
+ import { ComponentStateColor } from '../interface';
2
3
  type ToastData = {
3
4
  title: string;
4
5
  description?: string;
5
6
  timestamp?: string;
6
7
  icon?: string;
7
8
  closeIcon?: string;
8
- theme?: string;
9
- soft?: boolean;
9
+ color?: ComponentStateColor;
10
10
  };
11
11
  type Props = Partial<Pick<Toast, 'id' | 'duration' | 'position'>>;
12
12
  export default function useDToast(): {
@@ -9,9 +9,8 @@ export type Props = BaseProps & PropsWithChildren<{
9
9
  withFocus?: boolean;
10
10
  withClick?: boolean;
11
11
  open?: boolean;
12
- theme?: string;
13
12
  size?: ComponentSize;
14
13
  placement?: Placement;
15
14
  Component: ReactNode;
16
15
  }>;
17
- export default function DTooltip({ className, childrenClassName, style, offSet, padding, withFocus, withClick, withHover, open, theme, placement, size, Component, children, }: Props): import("react/jsx-runtime").JSX.Element;
16
+ export default function DTooltip({ className, childrenClassName, style, offSet, padding, withFocus, withClick, withHover, open, placement, size, Component, children, }: Props): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,7 @@
1
1
  export { default as DAlert } from './DAlert';
2
2
  export { default as DAvatar } from './DAvatar';
3
3
  export { default as DBadge } from './DBadge';
4
+ export { default as DBox } from './DBox';
4
5
  export { default as DBoxFile } from './DBoxFile';
5
6
  export { default as DButton } from './DButton';
6
7
  export { default as DButtonIcon } from './DButtonIcon';
@@ -11,13 +12,12 @@ export { default as DCollapse } from './DCollapse';
11
12
  export { default as DCurrencyText } from './DCurrencyText';
12
13
  export { default as DDatePicker } from './DDatePicker';
13
14
  export { default as DIcon } from './DIcon';
15
+ export { default as DLayout, DLayoutPane, } from './DLayout';
14
16
  export { default as DIconBase } from './DIconBase';
15
17
  export { default as DInput } from './DInput';
16
18
  export { default as DInputMask } from './DInputMask';
17
19
  export { default as DInputCounter } from './DInputCounter';
18
- export { default as DInputCurrencyBase } from './DInputCurrencyBase';
19
20
  export { default as DInputCurrency } from './DInputCurrency';
20
- export { default as DInputSearch } from './DInputSearch';
21
21
  export { default as DInputPassword } from './DInputPassword';
22
22
  export { default as DInputCheck } from './DInputCheck';
23
23
  export { default as DInputPin } from './DInputPin';
@@ -26,25 +26,22 @@ export type { DInputSelectDefaultOption, DInputSelectProps } from './DInputSelec
26
26
  export { default as DInputSwitch } from './DInputSwitch';
27
27
  export { default as DInputRange } from './DInputRange';
28
28
  export { default as DSelect } from './DSelect';
29
- export { default as DList, DListItem, } from './DList';
30
29
  export { default as DListGroup, DListGroupItem, } from './DListGroup';
31
30
  export { default as DModal, DModalHeader, DModalBody, DModalFooter, } from './DModal';
32
31
  export { default as DOffcanvas, DOffcanvasHeader, DOffcanvasBody, DOffcanvasFooter, } from './DOffcanvas';
33
32
  export { default as DPaginator } from './DPaginator';
34
33
  export { default as DPopover } from './DPopover';
35
34
  export { default as DProgress } from './DProgress';
36
- export { default as DQuickActionButton } from './DQuickActionButton';
37
- export { default as DQuickActionCheck } from './DQuickActionCheck';
38
- export { default as DQuickActionSelect } from './DQuickActionSelect';
39
- export { default as DQuickActionSwitch } from './DQuickActionSwitch';
40
- export { default as DSkeleton } from './DSkeleton';
41
35
  export { default as DStepper } from './DStepper';
42
36
  export { default as DStepperDesktop } from './DStepperDesktop';
43
37
  export { default as DStepperMobile } from './DStepperMobile';
44
38
  export { default as DTooltip } from './DTooltip';
39
+ export { default as DTimeline } from './DTimeline';
45
40
  export { default as DTabs, useTabContext, DTabContent, } from './DTabs';
46
41
  export type { DTabOption } from './DTabs';
47
42
  export { default as DToast } from './DToast';
48
43
  export { default as DToastContainer, useDToast, } from './DToastContainer';
49
44
  export { default as DTableHead } from './DTableHead';
50
45
  export { default as DInputPhone } from './DInputPhone';
46
+ export { default as DCreditCard } from './DCreditCard';
47
+ export { default as DDropdown } from './DDropdown';
@@ -24,12 +24,6 @@ export type FamilyIconProps = {
24
24
  iconFamilyPrefix?: string;
25
25
  iconMaterialStyle?: boolean;
26
26
  };
27
- export type LabelIconProps = {
28
- labelIcon?: string;
29
- labelIconFamilyClass?: string;
30
- labelIconFamilyPrefix?: string;
31
- labelIconMaterialStyle?: boolean;
32
- };
33
27
  export type StartIconProps = {
34
28
  iconStart?: string;
35
29
  iconStartDisabled?: boolean;
@@ -48,9 +42,10 @@ export type EndIconProps = {
48
42
  iconEndTabIndex?: number;
49
43
  iconEndMaterialStyle?: boolean;
50
44
  };
51
- export type AlertTheme = 'success' | 'info' | 'warning' | 'danger' | 'primary' | 'secondary';
45
+ export type ComponentColor = string;
46
+ export type ComponentStateColor = 'success' | 'danger' | 'warning' | 'info';
52
47
  export type AlertThemeIconMap = {
53
- [state in AlertTheme]: string;
48
+ [state in ComponentStateColor]: string;
54
49
  };
55
50
  export type ButtonVariant = 'outline' | 'link';
56
51
  export type ButtonType = 'submit' | 'reset' | 'button';
@@ -24,8 +24,6 @@ type IconMapProps = {
24
24
  calendar: string;
25
25
  check: string;
26
26
  input: {
27
- invalid: string;
28
- valid: string;
29
27
  search: string;
30
28
  show: string;
31
29
  hide: string;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -2,7 +2,7 @@ import type { RefObject, ForwardedRef, FocusEvent } from 'react';
2
2
  import type { Options } from 'currency.js';
3
3
  import type { CustomStyles } from '../components/interface';
4
4
  export default function useInputCurrency(currencyOptions: Options, value?: number, onFocus?: (event: FocusEvent<HTMLInputElement>) => void, onChange?: (value?: number) => void, onBlur?: (event: FocusEvent<HTMLInputElement>) => void, ref?: ForwardedRef<HTMLInputElement>): {
5
- inputRef: RefObject<HTMLInputElement>;
5
+ inputRef: RefObject<HTMLInputElement | null>;
6
6
  innerValue: string;
7
7
  innerType: string;
8
8
  handleOnFocus: (event: FocusEvent<HTMLInputElement>) => void;
@@ -13,4 +13,4 @@ import React from 'react';
13
13
  * @param providedRef The ref to use - if undefined, will use the ref from a call to React.useRef
14
14
  * @type TRef The type of the RefObject which should be created.
15
15
  */
16
- export default function useProvidedRefOrCreate<TRef>(providedRef?: React.RefObject<TRef>): React.RefObject<TRef>;
16
+ export default function useProvidedRefOrCreate<TRef>(providedRef?: React.RefObject<TRef | null>): React.RefObject<TRef | null>;
@@ -27,11 +27,11 @@ interface ForwardRefComponent<IntrinsicElementString, OwnProps = {}> extends For
27
27
  * so that events are typed when using JSX.IntrinsicElements.
28
28
  */
29
29
  <As = IntrinsicElementString>(props: As extends '' ? {
30
- as: keyof JSX.IntrinsicElements;
30
+ as: keyof React.JSX.IntrinsicElements;
31
31
  } : As extends React.ComponentType<infer P> ? Merge<P, OwnProps & {
32
32
  as: As;
33
- }> : As extends keyof JSX.IntrinsicElements ? Merge<JSX.IntrinsicElements[As], OwnProps & {
33
+ }> : As extends keyof React.JSX.IntrinsicElements ? Merge<React.JSX.IntrinsicElements[As], OwnProps & {
34
34
  as: As;
35
- }> : never): React.ReactElement | null;
35
+ }> : never): React.ReactElement<unknown> | null;
36
36
  }
37
37
  export type { ForwardRefComponent, OwnProps, IntrinsicElement, Merge };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};