@dynamic-framework/ui-react 1.5.0 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (226) hide show
  1. package/LICENSE +223 -21
  2. package/README.md +3 -15
  3. package/dist/css/dynamic-root.css +286 -0
  4. package/dist/css/dynamic-root.min.css +1 -0
  5. package/dist/css/dynamic-ui.css +17279 -1
  6. package/dist/css/dynamic-ui.min.css +1 -0
  7. package/dist/index.esm.js +918 -549
  8. package/dist/index.esm.js.map +1 -1
  9. package/dist/index.js +966 -590
  10. package/dist/index.js.map +1 -1
  11. package/dist/types/components/DAlert.d.ts +16 -0
  12. package/dist/types/components/DBadge.d.ts +11 -0
  13. package/dist/types/components/DBoxFile.d.ts +3 -4
  14. package/dist/types/components/DButton.d.ts +21 -0
  15. package/dist/types/components/DCard.d.ts +2 -2
  16. package/dist/types/components/DCardAccount.d.ts +3 -3
  17. package/dist/types/components/DCardBody.d.ts +2 -2
  18. package/dist/types/components/DCardFooter.d.ts +2 -2
  19. package/dist/types/components/DCardHeader.d.ts +2 -2
  20. package/dist/types/components/DCarousel.d.ts +3 -3
  21. package/dist/types/components/DCarouselSlide.d.ts +1 -1
  22. package/dist/types/components/DChip.d.ts +10 -0
  23. package/dist/types/components/DCollapse.d.ts +4 -4
  24. package/dist/types/components/DCollapseIconText.d.ts +3 -4
  25. package/dist/types/components/DCurrencyText.d.ts +1 -1
  26. package/dist/types/components/DDatePicker.d.ts +5 -5
  27. package/dist/types/components/DDatePickerHeader.d.ts +4 -4
  28. package/dist/types/components/DDatePickerInput.d.ts +7 -7
  29. package/dist/types/components/DDatePickerTime.d.ts +6 -6
  30. package/dist/types/components/DFormikInput.d.ts +2 -2
  31. package/dist/types/components/DFormikInputCurrency.d.ts +1 -1
  32. package/dist/types/components/DFormikInputSelect.d.ts +3 -6
  33. package/dist/types/components/DIcon.d.ts +16 -0
  34. package/dist/types/components/DInput.d.ts +32 -0
  35. package/dist/types/components/DInputCheck.d.ts +15 -0
  36. package/dist/types/components/DInputCounter.d.ts +22 -0
  37. package/dist/types/components/DInputCurrency.d.ts +4 -8
  38. package/dist/types/components/DInputCurrencyBase.d.ts +24 -0
  39. package/dist/types/components/DInputPassword.d.ts +17 -0
  40. package/dist/types/components/DInputPin.d.ts +19 -0
  41. package/dist/types/components/DInputSearch.d.ts +19 -0
  42. package/dist/types/components/DInputSelect.d.ts +23 -0
  43. package/dist/types/components/DInputSwitch.d.ts +11 -0
  44. package/dist/types/components/DList.d.ts +4 -3
  45. package/dist/types/components/DListItem.d.ts +4 -4
  46. package/dist/types/components/DListItemMovement.d.ts +2 -2
  47. package/dist/types/components/DModal.d.ts +14 -0
  48. package/dist/types/components/DModalBody.d.ts +6 -0
  49. package/dist/types/components/DModalFooter.d.ts +6 -0
  50. package/dist/types/components/DModalHeader.d.ts +7 -0
  51. package/dist/types/components/DMonthPicker.d.ts +4 -4
  52. package/dist/types/components/DOffcanvas.d.ts +10 -0
  53. package/dist/types/components/DOffcanvasBody.d.ts +6 -0
  54. package/dist/types/components/DOffcanvasFooter.d.ts +6 -0
  55. package/dist/types/components/DOffcanvasHeader.d.ts +7 -0
  56. package/dist/types/components/DPaginator.d.ts +4 -4
  57. package/dist/types/components/DPopover.d.ts +3 -2
  58. package/dist/types/components/DProgress.d.ts +9 -0
  59. package/dist/types/components/DQuickActionButton.d.ts +22 -0
  60. package/dist/types/components/DQuickActionCheck.d.ts +13 -0
  61. package/dist/types/components/DQuickActionSelect.d.ts +12 -0
  62. package/dist/types/components/DQuickActionSwitch.d.ts +11 -0
  63. package/dist/types/components/DSkeleton.d.ts +2 -2
  64. package/dist/types/components/DStepper.d.ts +6 -3
  65. package/dist/types/components/DStepperDesktop.d.ts +12 -0
  66. package/dist/types/components/DStepperMobile.d.ts +11 -0
  67. package/dist/types/components/DTabContent.d.ts +1 -1
  68. package/dist/types/components/DTabs.d.ts +5 -5
  69. package/dist/types/components/DToastContainer.d.ts +2 -3
  70. package/dist/types/components/DTooltip.d.ts +2 -2
  71. package/dist/types/components/banking/{MPermissionGroup.d.ts → DPermissionGroup.d.ts} +2 -2
  72. package/dist/types/components/banking/DPermissionItem.d.ts +1 -1
  73. package/dist/types/components/banking/{MSummaryCard.d.ts → DSummaryCard.d.ts} +2 -2
  74. package/dist/types/components/banking/index.d.ts +2 -2
  75. package/dist/types/components/banking/interface.d.ts +1 -1
  76. package/dist/types/components/config.d.ts +5 -0
  77. package/dist/types/components/index.d.ts +48 -20
  78. package/dist/types/components/interface.d.ts +44 -0
  79. package/dist/types/contexts/ModalContext.d.ts +12 -12
  80. package/dist/types/contexts/OffcanvasContext.d.ts +12 -12
  81. package/dist/types/hooks/useScreenshot.d.ts +1 -1
  82. package/dist/types/hooks/useToast.d.ts +3 -3
  83. package/dist/types/stories/components/DBadge.stories.d.ts +1 -1
  84. package/dist/types/stories/components/DBoxFile.stories.d.ts +1 -1
  85. package/dist/types/stories/components/DButton.stories.d.ts +1 -1
  86. package/dist/types/stories/components/DChip.stories.d.ts +1 -1
  87. package/dist/types/stories/components/DCurrencyText.stories.d.ts +1 -1
  88. package/dist/types/stories/components/DDatePicker.stories.d.ts +1 -1
  89. package/dist/types/stories/components/DFormikInput.stories.d.ts +1 -1
  90. package/dist/types/stories/components/DFormikInputCurrency.stories.d.ts +1 -1
  91. package/dist/types/stories/components/DFormikInputSelect.stories.d.ts +1 -1
  92. package/dist/types/stories/components/DIcon.stories.d.ts +1 -1
  93. package/dist/types/stories/components/DInput.stories.d.ts +1 -1
  94. package/dist/types/stories/components/DInputCheck.stories.d.ts +1 -1
  95. package/dist/types/stories/components/DInputCounter.stories.d.ts +1 -1
  96. package/dist/types/stories/components/DInputCurrency.stories.d.ts +1 -1
  97. package/dist/types/stories/components/DInputCurrencyBase.stories.d.ts +1 -1
  98. package/dist/types/stories/components/DInputPassword.stories.d.ts +1 -1
  99. package/dist/types/stories/components/DInputPin.stories.d.ts +1 -1
  100. package/dist/types/stories/components/DInputSearch.stories.d.ts +1 -1
  101. package/dist/types/stories/components/DInputSelect.stories.d.ts +7 -3
  102. package/dist/types/stories/components/DInputSwitch.stories.d.ts +1 -1
  103. package/dist/types/stories/components/DList.stories.d.ts +1 -1
  104. package/dist/types/stories/components/DListItem.stories.d.ts +1 -1
  105. package/dist/types/stories/components/DListItemMovement.stories.d.ts +1 -1
  106. package/dist/types/stories/components/DPaginator.stories.d.ts +1 -1
  107. package/dist/types/stories/components/DProgress.stories.d.ts +1 -1
  108. package/dist/types/stories/components/DQuickActionButton.stories.d.ts +1 -1
  109. package/dist/types/stories/components/DQuickActionCheck.stories.d.ts +1 -1
  110. package/dist/types/stories/components/DQuickActionSelect.stories.d.ts +1 -1
  111. package/dist/types/stories/components/DQuickActionSwitch.stories.d.ts +1 -1
  112. package/dist/types/stories/components/DSkeleton.stories.d.ts +1 -1
  113. package/dist/types/stories/components/DStepper.stories.d.ts +1 -1
  114. package/dist/types/stories/components/DStepperDesktop.stories.d.ts +7 -0
  115. package/dist/types/stories/components/DStepperMobile.stories.d.ts +6 -0
  116. package/dist/types/stories/components/DTooltip.stories.d.ts +1 -1
  117. package/dist/types/stories/hooks/useFormatCurrency.stories.d.ts +1 -1
  118. package/dist/types/stories/hooks/useModalContext.stories.d.ts +1 -1
  119. package/dist/types/stories/hooks/useOffcanvasContext.stories.d.ts +1 -1
  120. package/dist/types/stories/hooks/useToast.stories.d.ts +2 -2
  121. package/dist/types/stories/patterns/DAlert.stories.d.ts +1 -1
  122. package/dist/types/stories/{components → patterns}/DCard.stories.d.ts +1 -1
  123. package/dist/types/stories/{components → patterns}/DCardAccount.stories.d.ts +1 -1
  124. package/dist/types/stories/patterns/DCarousel.stories.d.ts +1 -1
  125. package/dist/types/stories/patterns/DCollapse.stories.d.ts +1 -1
  126. package/dist/types/stories/patterns/DCollapseIconText.stories.d.ts +1 -1
  127. package/dist/types/stories/patterns/DModal.stories.d.ts +1 -1
  128. package/dist/types/stories/patterns/DOffcanvas.stories.d.ts +1 -1
  129. package/dist/types/stories/patterns/DPopover.stories.d.ts +2 -1
  130. package/dist/types/stories/patterns/DTabs.stories.d.ts +1 -1
  131. package/dist/types/utils/format-currency.d.ts +2 -0
  132. package/dist/types/utils/index.d.ts +2 -1
  133. package/dist/types/utils/liquid-parser.d.ts +20 -0
  134. package/package.json +64 -54
  135. package/src/style/_shame.scss +4 -0
  136. package/src/style/abstracts/_+import.scss +14 -2
  137. package/src/style/abstracts/_funcions.scss +55 -0
  138. package/src/style/abstracts/_maps.scss +1 -0
  139. package/src/style/abstracts/_mixins.scss +133 -0
  140. package/src/style/abstracts/_utilities.scss +78 -0
  141. package/src/style/abstracts/variables/_+import.scss +159 -0
  142. package/src/style/abstracts/variables/_accordion.scss +35 -0
  143. package/src/style/abstracts/variables/_alerts.scss +27 -0
  144. package/src/style/abstracts/variables/_badges.scss +15 -0
  145. package/src/style/abstracts/variables/_body.scss +52 -0
  146. package/src/style/abstracts/variables/_border.scss +29 -0
  147. package/src/style/abstracts/variables/_box-file.scss +4 -4
  148. package/src/style/abstracts/variables/_box-shadow.scss +6 -0
  149. package/src/style/abstracts/variables/_breadcrumb.scss +15 -0
  150. package/src/style/abstracts/variables/_buttons.scss +55 -0
  151. package/src/style/abstracts/variables/_cards.scss +23 -0
  152. package/src/style/abstracts/variables/_carousel.scss +37 -0
  153. package/src/style/abstracts/variables/_chips.scss +13 -0
  154. package/src/style/abstracts/variables/_close.scss +16 -0
  155. package/src/style/abstracts/variables/_code.scss +16 -0
  156. package/src/style/abstracts/variables/_collapse-icon-text.scss +3 -3
  157. package/src/style/abstracts/variables/_colors.scss +515 -0
  158. package/src/style/abstracts/variables/_cursors.scss +32 -0
  159. package/src/style/abstracts/variables/_dropdowns.scss +54 -0
  160. package/src/style/abstracts/variables/_figures.scss +6 -0
  161. package/src/style/abstracts/variables/_forms.scss +313 -0
  162. package/src/style/abstracts/variables/_grid.scss +41 -0
  163. package/src/style/abstracts/variables/_list-group.scss +43 -0
  164. package/src/style/abstracts/variables/_modals.scss +58 -0
  165. package/src/style/abstracts/variables/_navbar.scss +43 -0
  166. package/src/style/abstracts/variables/_navs.scss +44 -0
  167. package/src/style/abstracts/variables/_offcanvas.scss +20 -0
  168. package/src/style/abstracts/variables/_options.scss +24 -0
  169. package/src/style/abstracts/variables/_pagination.scss +41 -0
  170. package/src/style/abstracts/variables/_popovers.scss +31 -0
  171. package/src/style/abstracts/variables/_progress.scss +17 -0
  172. package/src/style/abstracts/variables/_quick-action-button.scss +31 -0
  173. package/src/style/abstracts/variables/_quick-action-check.scss +22 -0
  174. package/src/style/abstracts/variables/_quick-action-select.scss +16 -0
  175. package/src/style/abstracts/variables/_quick-action-switch.scss +21 -0
  176. package/src/style/abstracts/variables/_spacers.scss +28 -0
  177. package/src/style/abstracts/variables/_spinners.scss +13 -0
  178. package/src/style/abstracts/variables/_tables.scss +57 -0
  179. package/src/style/abstracts/variables/_thumbnails.scss +10 -0
  180. package/src/style/abstracts/variables/_toasts.scss +19 -0
  181. package/src/style/abstracts/variables/_tooltips.scss +29 -0
  182. package/src/style/abstracts/variables/_typography.scss +122 -0
  183. package/src/style/abstracts/variables/_z-index.scss +28 -0
  184. package/src/style/base/_+import.scss +15 -0
  185. package/src/style/base/_root.scss +248 -0
  186. package/src/style/base/_tables.scss +171 -0
  187. package/src/style/components/_+import.scss +46 -1
  188. package/src/style/components/_d-alert.scss +45 -0
  189. package/src/style/components/_d-badge.scss +26 -0
  190. package/src/style/components/_d-button.scss +191 -0
  191. package/src/style/components/_d-card-account.scss +3 -3
  192. package/src/style/components/_d-chip.scss +52 -0
  193. package/src/style/components/_d-icon.scss +32 -0
  194. package/src/style/components/_d-input-check.scss +20 -0
  195. package/src/style/components/_d-input-pin.scss +121 -0
  196. package/src/style/components/_d-input-select.scss +20 -0
  197. package/src/style/components/_d-input-switch.scss +58 -0
  198. package/src/style/components/_d-input.scss +168 -0
  199. package/src/style/components/_d-modal.scss +55 -0
  200. package/src/style/components/_d-offcanvas.scss +45 -0
  201. package/src/style/components/_d-popover.scss +4 -1
  202. package/src/style/components/_d-progress.scss +9 -0
  203. package/src/style/components/_d-quick-action-button.scss +111 -0
  204. package/src/style/components/_d-quick-action-check.scss +74 -0
  205. package/src/style/components/_d-quick-action-select.scss +56 -0
  206. package/src/style/components/_d-quick-action-switch.scss +71 -0
  207. package/src/style/components/{_d-stepper.scss → _d-stepper-desktop.scss} +1 -1
  208. package/src/style/components/_d-stepper-mobile.scss +69 -0
  209. package/src/style/dynamic-root.scss +6 -0
  210. package/src/style/dynamic-ui.scss +13 -1
  211. package/src/style/helpers/_+import.scss +13 -0
  212. package/src/style/helpers/_color-bg.scss +7 -0
  213. package/dist/css/dynamic-ui-all.css +0 -1
  214. package/dist/css/dynamic-ui-react.css +0 -1
  215. package/dist/types/components/proxies.d.ts +0 -23
  216. package/dist/types/components/react-component-lib/createComponent.d.ts +0 -10
  217. package/dist/types/components/react-component-lib/createOverlayComponent.d.ts +0 -21
  218. package/dist/types/components/react-component-lib/index.d.ts +0 -2
  219. package/dist/types/components/react-component-lib/interfaces.d.ts +0 -29
  220. package/dist/types/components/react-component-lib/utils/attachProps.d.ts +0 -16
  221. package/dist/types/components/react-component-lib/utils/case.d.ts +0 -2
  222. package/dist/types/components/react-component-lib/utils/dev.d.ts +0 -2
  223. package/dist/types/components/react-component-lib/utils/index.d.ts +0 -10
  224. package/src/style/dynamic-ui-all.scss +0 -3
  225. package/src/style/dynamic-ui-react.scss +0 -7
  226. /package/dist/types/stories/{constants.d.ts → config/constants.d.ts} +0 -0
@@ -0,0 +1,16 @@
1
+ import type { CSSProperties, PropsWithChildren } from 'react';
2
+ import type { AlertType } from './interface';
3
+ type Props = PropsWithChildren<{
4
+ id?: string;
5
+ className?: string;
6
+ style?: CSSProperties;
7
+ type?: AlertType;
8
+ icon?: string;
9
+ iconFamilyClass?: string;
10
+ iconFamilyPrefix?: string;
11
+ showIcon?: boolean;
12
+ showClose?: boolean;
13
+ onClose?: () => void;
14
+ }>;
15
+ export default function DAlert({ type, icon, iconFamilyClass, iconFamilyPrefix, showIcon, showClose, onClose, children, id, className, style, }: Props): import("react/jsx-runtime").JSX.Element;
16
+ export {};
@@ -0,0 +1,11 @@
1
+ import type { CSSProperties } from 'react';
2
+ type Props = {
3
+ text?: string;
4
+ isDot?: boolean;
5
+ theme?: string;
6
+ id?: string;
7
+ className?: string;
8
+ style?: CSSProperties;
9
+ };
10
+ export default function DBadge({ text, isDot, theme, id, className, style, }: Props): import("react/jsx-runtime").JSX.Element;
11
+ export {};
@@ -1,9 +1,8 @@
1
- import { PropsWithChildren } from 'react';
1
+ import type { PropsWithChildren } from 'react';
2
2
  import type { DropzoneOptions } from 'react-dropzone';
3
- declare type Props = PropsWithChildren<Pick<DropzoneOptions, 'accept' | 'minSize' | 'maxSize' | 'maxFiles' | 'onDrop' | 'onDropAccepted' | 'onDropRejected' | 'onFileDialogCancel' | 'onFileDialogOpen'> & {
3
+ import type { FamilyIcon } from './interface';
4
+ type Props = FamilyIcon & PropsWithChildren<Pick<DropzoneOptions, 'accept' | 'minSize' | 'maxSize' | 'maxFiles' | 'onDrop' | 'onDropAccepted' | 'onDropRejected' | 'onFileDialogCancel' | 'onFileDialogOpen'> & {
4
5
  icon?: string;
5
- iconFamilyClass?: string;
6
- iconFamilyPrefix?: string;
7
6
  isDisabled: DropzoneOptions['disabled'];
8
7
  }>;
9
8
  export default function DBoxFile({ icon, iconFamilyClass, iconFamilyPrefix, isDisabled, children, ...dropzoneOptions }: Props): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,21 @@
1
+ import type { MouseEvent, CSSProperties } from 'react';
2
+ import type { ButtonType, ButtonVariant, ComponentSize, EndIcon, InputState, StartIcon } from './interface';
3
+ type Props = StartIcon & EndIcon & {
4
+ id?: string;
5
+ className?: string;
6
+ style?: CSSProperties;
7
+ theme?: string;
8
+ size?: ComponentSize;
9
+ variant?: ButtonVariant;
10
+ state?: InputState;
11
+ text?: string;
12
+ value?: string;
13
+ type?: ButtonType;
14
+ isPill?: boolean;
15
+ isLoading?: boolean;
16
+ isDisabled?: boolean;
17
+ isStopPropagationEnabled?: boolean;
18
+ onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
19
+ };
20
+ export default function DButton({ theme, size, variant, state, text, iconStart, iconStartFamilyClass, iconStartFamilyPrefix, iconEnd, iconEndFamilyClass, iconEndFamilyPrefix, value, type, isPill, isLoading, isDisabled, isStopPropagationEnabled, className, onClick, }: Props): import("react/jsx-runtime").JSX.Element;
21
+ export {};
@@ -1,5 +1,5 @@
1
- import { CSSProperties, PropsWithChildren } from 'react';
2
- declare type Props = PropsWithChildren<{
1
+ import type { CSSProperties, PropsWithChildren } from 'react';
2
+ type Props = PropsWithChildren<{
3
3
  className?: string;
4
4
  style?: CSSProperties;
5
5
  }>;
@@ -1,4 +1,4 @@
1
- declare type Props = {
1
+ type Props = {
2
2
  className?: string;
3
3
  icon: string;
4
4
  theme: string;
@@ -6,8 +6,8 @@ declare type Props = {
6
6
  number: string;
7
7
  balance: string;
8
8
  balanceText: string;
9
- onEventClick: () => void;
9
+ onClick: () => void;
10
10
  actionText: string;
11
11
  };
12
- export default function DCardAccount({ className, icon, theme, name, number, balance, balanceText, onEventClick, actionText, }: Props): import("react/jsx-runtime").JSX.Element;
12
+ export default function DCardAccount({ className, icon, theme, name, number, balance, balanceText, onClick, actionText, }: Props): import("react/jsx-runtime").JSX.Element;
13
13
  export {};
@@ -1,5 +1,5 @@
1
- import { PropsWithChildren } from 'react';
2
- declare type Props = PropsWithChildren<{
1
+ import type { PropsWithChildren } from 'react';
2
+ type Props = PropsWithChildren<{
3
3
  className?: string;
4
4
  }>;
5
5
  export default function DCardBody({ className, children, }: Props): import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,5 @@
1
- import { PropsWithChildren } from 'react';
2
- declare type Props = PropsWithChildren<{
1
+ import type { PropsWithChildren } from 'react';
2
+ type Props = PropsWithChildren<{
3
3
  className?: string;
4
4
  }>;
5
5
  export default function DCardFooter({ className, children, }: Props): import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,5 @@
1
- import { PropsWithChildren } from 'react';
2
- declare type Props = PropsWithChildren<{
1
+ import type { PropsWithChildren } from 'react';
2
+ type Props = PropsWithChildren<{
3
3
  className?: string;
4
4
  }>;
5
5
  export default function DCardHeader({ className, children, }: Props): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,6 @@
1
- import { SplideProps } from '@splidejs/react-splide';
2
- import { PropsWithChildren } from 'react';
3
- declare type Props = SplideProps & PropsWithChildren<{
1
+ import type { PropsWithChildren } from 'react';
2
+ import type { SplideProps } from '@splidejs/react-splide';
3
+ type Props = SplideProps & PropsWithChildren<{
4
4
  className?: string;
5
5
  }>;
6
6
  export default function DCarousel({ children, className, options, ...props }: Props): import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import { SplideSlide } from '@splidejs/react-splide';
3
- declare type Props = React.ComponentProps<typeof SplideSlide>;
3
+ type Props = React.ComponentProps<typeof SplideSlide>;
4
4
  export default function DCarouselSlide({ className, ...props }: Props): import("react/jsx-runtime").JSX.Element;
5
5
  export {};
@@ -0,0 +1,10 @@
1
+ import type { FamilyIcon } from './interface';
2
+ type Props = FamilyIcon & {
3
+ theme?: string;
4
+ text?: string;
5
+ icon?: string;
6
+ showClose?: boolean;
7
+ onClose?: () => void;
8
+ };
9
+ export default function DChip({ theme, text, icon, iconFamilyClass, iconFamilyPrefix, showClose, onClose, }: Props): import("react/jsx-runtime").JSX.Element;
10
+ export {};
@@ -1,11 +1,11 @@
1
- import { PropsWithChildren, ReactNode, ReactElement } from 'react';
2
- declare type Props = PropsWithChildren<{
1
+ import type { PropsWithChildren, ReactNode, ReactElement } from 'react';
2
+ type Props = PropsWithChildren<{
3
3
  id?: string;
4
4
  className?: string;
5
5
  Component: ReactElement | ReactNode;
6
6
  hasSeparator?: boolean;
7
7
  defaultCollapsed?: boolean;
8
- onEventChange?: (value: boolean) => void;
8
+ onChange?: (value: boolean) => void;
9
9
  }>;
10
- export default function DCollapse({ id, className, Component, hasSeparator, defaultCollapsed, onEventChange, children, }: Props): import("react/jsx-runtime").JSX.Element;
10
+ export default function DCollapse({ id, className, Component, hasSeparator, defaultCollapsed, onChange, children, }: Props): import("react/jsx-runtime").JSX.Element;
11
11
  export {};
@@ -1,5 +1,6 @@
1
- import { PropsWithChildren } from 'react';
2
- declare type Props = PropsWithChildren<{
1
+ import type { PropsWithChildren } from 'react';
2
+ import type { FamilyIcon } from './interface';
3
+ type Props = FamilyIcon & PropsWithChildren<{
3
4
  /**
4
5
  * Icon name
5
6
  */
@@ -16,8 +17,6 @@ declare type Props = PropsWithChildren<{
16
17
  * Title
17
18
  */
18
19
  title: string;
19
- iconFamilyClass?: string;
20
- iconFamilyPrefix?: string;
21
20
  }>;
22
21
  export default function DCollapseIconText({ children, icon, iconSize, iconTheme, title, iconFamilyClass, iconFamilyPrefix, }: Props): import("react/jsx-runtime").JSX.Element;
23
22
  export {};
@@ -1,4 +1,4 @@
1
- declare type Props = {
1
+ type Props = {
2
2
  value: number;
3
3
  className?: string;
4
4
  };
@@ -1,8 +1,8 @@
1
- import { ReactDatePickerProps } from 'react-datepicker';
2
- import { ButtonVariant, ComponentSize } from '@dynamic-framework/ui';
3
- declare type Props = Omit<ReactDatePickerProps, 'onChange' | 'selectsRange'> & {
1
+ import type { ReactDatePickerProps } from 'react-datepicker';
2
+ import type { ButtonVariant, ComponentSize } from './interface';
3
+ type Props = Omit<ReactDatePickerProps, 'onChange' | 'selectsRange'> & {
4
4
  date: string;
5
- onEventChangeDate: (value: Date | [Date | null, Date | null] | null) => void;
5
+ onChangeDate: (value: Date | [Date | null, Date | null] | null) => void;
6
6
  selectsRange?: boolean;
7
7
  withMonthSelector?: boolean;
8
8
  inputLabel?: string;
@@ -16,5 +16,5 @@ declare type Props = Omit<ReactDatePickerProps, 'onChange' | 'selectsRange'> & {
16
16
  headerButtonVariant?: ButtonVariant;
17
17
  headerButtonTheme?: string;
18
18
  };
19
- export default function DDatePicker({ onEventChangeDate, date, selectsRange, withMonthSelector, inputLabel, inputIcon, inputId, timeId, timeLabel, headerDecreaseMonthIcon, headerIncreaseMonthIcon, headerIconSize, headerButtonVariant, headerButtonTheme, ...props }: Props): import("react/jsx-runtime").JSX.Element;
19
+ export default function DDatePicker({ onChangeDate, date, selectsRange, withMonthSelector, inputLabel, inputIcon, inputId, timeId, timeLabel, headerDecreaseMonthIcon, headerIncreaseMonthIcon, headerIconSize, headerButtonVariant, headerButtonTheme, ...props }: Props): import("react/jsx-runtime").JSX.Element;
20
20
  export {};
@@ -1,7 +1,7 @@
1
- import { ComponentProps } from 'react';
2
- import { ButtonVariant, ComponentSize } from '@dynamic-framework/ui';
3
- import { DButton } from './proxies';
4
- declare type Props = {
1
+ import type { ComponentProps } from 'react';
2
+ import DButton from './DButton';
3
+ import type { ButtonVariant, ComponentSize } from './interface';
4
+ type Props = {
5
5
  monthDate: Date;
6
6
  decreaseMonth: () => void;
7
7
  increaseMonth: () => void;
@@ -1,8 +1,8 @@
1
- import { ComponentProps } from 'react';
2
- import { DInput } from './proxies';
3
- declare type Props = {
1
+ import type { ComponentProps } from 'react';
2
+ import DInput from './DInput';
3
+ type Props = {
4
4
  value?: string;
5
- onEventClick?: () => void;
6
- } & Omit<ComponentProps<typeof DInput>, 'type' | 'isReadOnly' | 'onEventIconEndClick' | 'value'>;
7
- declare const _default: import("react").ForwardRefExoticComponent<Omit<Props, "ref"> & import("react").RefAttributes<unknown>>;
8
- export default _default;
5
+ onClick?: () => void;
6
+ } & Omit<ComponentProps<typeof DInput>, 'type' | 'isReadOnly' | 'onIconEndClick' | 'value'>;
7
+ declare const ForwardedDDatePickerInput: import("react").ForwardRefExoticComponent<Omit<Props, "ref"> & import("react").RefAttributes<unknown>>;
8
+ export default ForwardedDDatePickerInput;
@@ -1,8 +1,8 @@
1
- import { ComponentProps, FormEventHandler } from 'react';
2
- import { DInput } from './proxies';
3
- declare type Props = {
1
+ import type { ComponentProps, FormEventHandler } from 'react';
2
+ import DInput from './DInput';
3
+ type Props = {
4
4
  value?: string | number;
5
- onEventChange?: ((value: string) => void) & FormEventHandler<HTMLDInputElement>;
6
- } & Omit<ComponentProps<typeof DInput>, 'type' | 'isReadOnly' | 'onEventChange' | 'value'>;
7
- export default function DDatePickerTime({ value, onEventChange, innerId, label, ...props }: Props): import("react/jsx-runtime").JSX.Element;
5
+ onChange?: ((value: string) => void) & FormEventHandler<HTMLInputElement>;
6
+ } & Omit<ComponentProps<typeof DInput>, 'type' | 'isReadOnly' | 'onChange' | 'value'>;
7
+ export default function DDatePickerTime({ value, onChange, id, label, ...props }: Props): import("react/jsx-runtime").JSX.Element;
8
8
  export {};
@@ -1,6 +1,6 @@
1
1
  import type { ComponentProps } from 'react';
2
- import { DInput } from './proxies';
3
- declare type Props = Omit<ComponentProps<typeof DInput>, 'name' | 'value'> & {
2
+ import DInput from './DInput';
3
+ type Props = Omit<ComponentProps<typeof DInput>, 'name' | 'value'> & {
4
4
  name: string;
5
5
  };
6
6
  export default function DFormikInput({ name, hint, ...props }: Props): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import type { ComponentProps } from 'react';
2
2
  import DInputCurrency from './DInputCurrency';
3
- declare type Props = Omit<ComponentProps<typeof DInputCurrency>, 'name' | 'value'> & {
3
+ type Props = Omit<ComponentProps<typeof DInputCurrency>, 'name' | 'value'> & {
4
4
  name: string;
5
5
  };
6
6
  export default function DFormikInputCurrency({ name, hint, ...props }: Props): import("react/jsx-runtime").JSX.Element;
@@ -1,9 +1,6 @@
1
- import type { ComponentProps } from 'react';
2
- import { DInputSelect } from './proxies';
3
- declare type Props = Omit<ComponentProps<typeof DInputSelect>, 'name' | 'labelExtractor' | 'valueExtractor' | 'selectedOption'> & {
1
+ import type { DefaultOption, Props as DInputSelectProps } from './DInputSelect';
2
+ type Props<T> = Omit<DInputSelectProps<T>, 'name'> & {
4
3
  name: string;
5
- labelExtractor?: (item: any) => string;
6
- valueExtractor?: (item: any) => string | number;
7
4
  };
8
- export default function DFormikInputSelect({ name, labelExtractor, valueExtractor, ...props }: Props): import("react/jsx-runtime").JSX.Element;
5
+ export default function DFormikInputSelect<T extends object = DefaultOption>({ name, ...props }: Props<T>): import("react/jsx-runtime").JSX.Element;
9
6
  export {};
@@ -0,0 +1,16 @@
1
+ type Props = {
2
+ icon: string;
3
+ theme?: string;
4
+ className?: string;
5
+ size?: string;
6
+ isLoading?: boolean;
7
+ loadingDuration?: number;
8
+ hasCircle?: boolean;
9
+ circleSize?: string;
10
+ color?: string;
11
+ backgroundColor?: string;
12
+ familyClass?: string;
13
+ familyPrefix?: string;
14
+ };
15
+ export default function DIcon({ icon, theme, className, size, isLoading, loadingDuration, hasCircle, circleSize, color, backgroundColor, familyClass, familyPrefix, }: Props): import("react/jsx-runtime").JSX.Element;
16
+ export {};
@@ -0,0 +1,32 @@
1
+ import type { CSSProperties, ChangeEvent, FocusEvent, MouseEvent, ReactNode, WheelEvent } from 'react';
2
+ import type { EndIcon, FamilyIcon, LabelIcon, StartIcon } from './interface';
3
+ type Ref = {
4
+ blur: () => void;
5
+ focus: () => void;
6
+ };
7
+ declare const ForwardedDInput: import("react").ForwardRefExoticComponent<FamilyIcon & LabelIcon & StartIcon & EndIcon & {
8
+ id: string;
9
+ className?: string | undefined;
10
+ style?: CSSProperties | undefined;
11
+ name?: string | undefined;
12
+ label?: string | undefined;
13
+ placeholder?: string | undefined;
14
+ type?: string | undefined;
15
+ value?: string | number | undefined;
16
+ innerInputMode?: 'text' | 'search' | 'email' | 'tel' | 'url' | 'none' | 'numeric' | 'decimal' | undefined;
17
+ pattern?: string | undefined;
18
+ isDisabled?: boolean | undefined;
19
+ isReadOnly?: boolean | undefined;
20
+ isLoading?: boolean | undefined;
21
+ hint?: string | undefined;
22
+ isInvalid?: boolean | undefined;
23
+ isValid?: boolean | undefined;
24
+ inputStart?: ReactNode;
25
+ onChange?: ((event: ChangeEvent<HTMLInputElement>) => void) | undefined;
26
+ onBlur?: ((event: FocusEvent<HTMLInputElement>) => void) | undefined;
27
+ onFocus?: ((event: FocusEvent) => void) | undefined;
28
+ onWheel?: ((event: WheelEvent) => void) | undefined;
29
+ onIconStartClick?: ((event: MouseEvent) => void) | undefined;
30
+ onIconEndClick?: ((event: MouseEvent) => void) | undefined;
31
+ } & import("react").RefAttributes<Ref>>;
32
+ export default ForwardedDInput;
@@ -0,0 +1,15 @@
1
+ import type { ChangeEvent } from 'react';
2
+ import type { InputCheckType } from './interface';
3
+ type Props = {
4
+ type: InputCheckType;
5
+ name?: string;
6
+ label?: string;
7
+ isChecked?: boolean;
8
+ id: string;
9
+ isDisabled?: boolean;
10
+ isIndeterminate?: boolean;
11
+ value?: string;
12
+ onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
13
+ };
14
+ export default function DInputCheck({ type, name, label, isChecked, id, isDisabled, isIndeterminate, value, onChange, }: Props): import("react/jsx-runtime").JSX.Element;
15
+ export {};
@@ -0,0 +1,22 @@
1
+ import type { CSSProperties } from 'react';
2
+ import type { LabelIcon, StartIcon } from './interface';
3
+ type Props = LabelIcon & StartIcon & {
4
+ id: string;
5
+ name?: string;
6
+ label?: string;
7
+ value: number;
8
+ isDisabled?: boolean;
9
+ isReadOnly?: boolean;
10
+ isLoading?: boolean;
11
+ iconEnd?: string;
12
+ hint?: string;
13
+ isInvalid?: boolean;
14
+ isValid?: boolean;
15
+ minValue: number;
16
+ maxValue: number;
17
+ style?: CSSProperties;
18
+ className?: string;
19
+ onChange?: (newNumber: number) => void;
20
+ };
21
+ export default function DInputCounter({ id, name, label, value, isDisabled, isReadOnly, isLoading, iconStart, iconEnd, hint, isInvalid, isValid, minValue, maxValue, style, className, onChange, ...rest }: Props): import("react/jsx-runtime").JSX.Element;
22
+ export {};
@@ -1,9 +1,5 @@
1
- import { ComponentProps } from 'react';
2
- import { DInputCurrencyBase } from './proxies';
3
- declare type Props = {
4
- onEventChange: (value: number) => void;
5
- onEventBlur?: (value: number) => void;
6
- onEventFocus?: (value: number) => void;
7
- } & Omit<ComponentProps<typeof DInputCurrencyBase>, 'currencyOptions' | 'onChange' | 'onEventChange'>;
8
- export default function DInputCurrency({ onEventChange, onEventBlur, onEventFocus, ...otherProps }: Props): import("react/jsx-runtime").JSX.Element;
1
+ import type { ComponentProps } from 'react';
2
+ import DInputCurrencyBase from './DInputCurrencyBase';
3
+ type Props = Omit<ComponentProps<typeof DInputCurrencyBase>, 'currencyOptions'>;
4
+ export default function DInputCurrency(props: Props): import("react/jsx-runtime").JSX.Element;
9
5
  export {};
@@ -0,0 +1,24 @@
1
+ import type { Options } from 'currency.js';
2
+ import type { EndIcon, LabelIcon, StartIcon } from './interface';
3
+ type Props = LabelIcon & StartIcon & EndIcon & {
4
+ id: string;
5
+ name?: string;
6
+ label: string;
7
+ placeholder?: string;
8
+ value?: number;
9
+ isDisabled?: boolean;
10
+ isReadOnly?: boolean;
11
+ isLoading?: boolean;
12
+ hint?: string;
13
+ isInvalid?: boolean;
14
+ isValid?: boolean;
15
+ minValue?: number;
16
+ maxValue?: number;
17
+ currencyOptions: Options;
18
+ currencyCode?: string;
19
+ onChange?: (value?: number) => void;
20
+ onBlur?: (value?: number) => void;
21
+ onFocus?: (value?: number) => void;
22
+ };
23
+ export default function DInputCurrencyBase({ id, name, label, placeholder, value, isDisabled, isReadOnly, isLoading, hint, isInvalid, isValid, minValue, maxValue, currencyOptions, currencyCode, onChange, onBlur, onFocus, ...rest }: Props): import("react/jsx-runtime").JSX.Element;
24
+ export {};
@@ -0,0 +1,17 @@
1
+ import type { LabelIcon } from './interface';
2
+ type Props = LabelIcon & {
3
+ id: string;
4
+ name?: string;
5
+ label?: string;
6
+ placeholder?: string;
7
+ value?: string;
8
+ isDisabled?: boolean;
9
+ isReadOnly?: boolean;
10
+ isLoading?: boolean;
11
+ hint?: string;
12
+ isInvalid?: boolean;
13
+ isValid?: boolean;
14
+ onChange?: (value: string) => void;
15
+ };
16
+ export default function DInputPassword({ id, name, label, placeholder, value, isDisabled, isReadOnly, isLoading, hint, isInvalid, isValid, onChange, ...rest }: Props): import("react/jsx-runtime").JSX.Element;
17
+ export {};
@@ -0,0 +1,19 @@
1
+ import type { FamilyIcon, LabelIcon, PinInputMode, PinInputType } from './interface';
2
+ type Props = LabelIcon & FamilyIcon & {
3
+ id: string;
4
+ label?: string;
5
+ placeholder?: string;
6
+ type?: PinInputType;
7
+ isDisabled?: boolean;
8
+ isReadOnly?: boolean;
9
+ isLoading?: boolean;
10
+ isSecret?: boolean;
11
+ characters?: number;
12
+ innerInputMode?: PinInputMode;
13
+ hint?: string;
14
+ isInvalid?: boolean;
15
+ isValid?: boolean;
16
+ onChange?: (value: string) => void;
17
+ };
18
+ export default function DInputPin({ id, label, labelIcon, labelIconFamilyClass, labelIconFamilyPrefix, placeholder, type, isDisabled, isLoading, isSecret, iconFamilyClass, iconFamilyPrefix, characters, innerInputMode, hint, isInvalid, isValid, onChange, }: Props): import("react/jsx-runtime").JSX.Element;
19
+ export {};
@@ -0,0 +1,19 @@
1
+ import type { ChangeEvent } from 'react';
2
+ import type { LabelIcon } from './interface';
3
+ type Props = LabelIcon & {
4
+ id: string;
5
+ name?: string;
6
+ label?: string;
7
+ placeholder?: string;
8
+ value?: string;
9
+ isDisabled?: boolean;
10
+ isReadOnly?: boolean;
11
+ isLoading?: boolean;
12
+ hint?: string;
13
+ isInvalid?: boolean;
14
+ isValid?: boolean;
15
+ onChange?: (event: ChangeEvent) => void;
16
+ onClick?: (newValue: string | undefined) => void;
17
+ };
18
+ export default function DInputSearch({ id, name, label, placeholder, value, isDisabled, isReadOnly, isLoading, hint, isInvalid, isValid, onChange, onClick, ...rest }: Props): import("react/jsx-runtime").JSX.Element;
19
+ export {};
@@ -0,0 +1,23 @@
1
+ import type { FocusEvent, MouseEvent } from 'react';
2
+ import type { EndIcon, LabelIcon, StartIcon } from './interface';
3
+ export type DefaultOption = {
4
+ value: string | number;
5
+ label: string;
6
+ };
7
+ export type Props<T> = LabelIcon & StartIcon & EndIcon & {
8
+ id: string;
9
+ name?: string;
10
+ label?: string;
11
+ isDisabled?: boolean;
12
+ isLoading?: boolean;
13
+ hint?: string;
14
+ onBlur?: (event: FocusEvent) => void;
15
+ onIconStartClick?: (event: MouseEvent) => void;
16
+ onIconEndClick?: (event: MouseEvent) => void;
17
+ options: Array<T>;
18
+ selectedOption?: T;
19
+ onChange?: (selectedItem: T | undefined) => void;
20
+ valueExtractor?: (item: T) => string | number;
21
+ labelExtractor?: (item: T) => string;
22
+ };
23
+ export default function DInputSelect<T extends object = DefaultOption>({ id, name, label, options, labelIcon, labelIconFamilyClass, labelIconFamilyPrefix, isDisabled, isLoading, iconStart, iconStartFamilyClass, iconStartFamilyPrefix, iconEnd, iconEndFamilyClass, iconEndFamilyPrefix, hint, selectedOption, valueExtractor, labelExtractor, onChange, onBlur, onIconStartClick, onIconEndClick, }: Props<T>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,11 @@
1
+ interface Props {
2
+ label?: string;
3
+ id: string;
4
+ name?: string;
5
+ isChecked?: boolean;
6
+ isDisabled?: boolean;
7
+ isReadonly?: boolean;
8
+ onChange?: (isChecked: boolean) => void;
9
+ }
10
+ export default function DInputSwitch({ label, id, name, isChecked, isDisabled, isReadonly, onChange, }: Props): import("react/jsx-runtime").JSX.Element;
11
+ export {};
@@ -1,10 +1,11 @@
1
- import { PropsWithChildren } from 'react';
2
- declare type Props = PropsWithChildren<{
1
+ import type { PropsWithChildren } from 'react';
2
+ import type { BreakpointSize } from './interface';
3
+ type Props = PropsWithChildren<{
3
4
  className?: string;
4
5
  isFlush?: boolean;
5
6
  isNumbered?: boolean;
6
7
  isHorizontal?: boolean;
7
- horizontalBreakpoint?: 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
8
+ horizontalBreakpoint?: BreakpointSize;
8
9
  }>;
9
10
  export default function DList({ children, className, isFlush, isNumbered, isHorizontal, horizontalBreakpoint, }: Props): import("react/jsx-runtime").JSX.Element;
10
11
  export {};
@@ -1,10 +1,10 @@
1
- import { PropsWithChildren } from 'react';
2
- declare type Props = PropsWithChildren<{
1
+ import type { PropsWithChildren } from 'react';
2
+ type Props = PropsWithChildren<{
3
3
  className?: string;
4
4
  isActive?: boolean;
5
5
  isDisabled?: boolean;
6
6
  theme?: string;
7
- onEventClick?: () => void;
7
+ onClick?: () => void;
8
8
  }>;
9
- export default function DListItem({ children, className, isActive, isDisabled, theme, onEventClick, }: Props): import("react/jsx-runtime").JSX.Element;
9
+ export default function DListItem({ children, className, isActive, isDisabled, theme, onClick, }: Props): import("react/jsx-runtime").JSX.Element;
10
10
  export {};
@@ -1,6 +1,6 @@
1
- import { ComponentProps } from 'react';
1
+ import type { ComponentProps } from 'react';
2
2
  import DListItem from './DListItem';
3
- declare type Props = Omit<ComponentProps<typeof DListItem>, 'children'> & {
3
+ type Props = Omit<ComponentProps<typeof DListItem>, 'children'> & {
4
4
  description: string;
5
5
  date: string;
6
6
  amount: number;
@@ -0,0 +1,14 @@
1
+ import type { PropsWithChildren } from 'react';
2
+ import type { ModalFullScreenFrom, ModalSize } from './interface';
3
+ type Props = PropsWithChildren<{
4
+ name: string;
5
+ className?: string;
6
+ isStatic?: boolean;
7
+ isScrollable?: boolean;
8
+ isCentered?: boolean;
9
+ isFullScreen?: boolean;
10
+ fullScreenFrom?: ModalFullScreenFrom;
11
+ modalSize?: ModalSize;
12
+ }>;
13
+ export default function DModal({ name, className, isStatic, isScrollable, isCentered, isFullScreen, fullScreenFrom, modalSize, children, }: Props): import("react/jsx-runtime").JSX.Element;
14
+ export {};
@@ -0,0 +1,6 @@
1
+ import type { ReactNode } from 'react';
2
+ type Props = {
3
+ children: ReactNode;
4
+ };
5
+ export default function DModalBody({ children }: Props): import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,6 @@
1
+ import type { PropsWithChildren } from 'react';
2
+ type Props = PropsWithChildren<{
3
+ actionPlacement?: 'start' | 'end' | 'fill' | 'center';
4
+ }>;
5
+ export default function DModalFooter({ actionPlacement, children, }: Props): import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,7 @@
1
+ import type { PropsWithChildren } from 'react';
2
+ type Props = PropsWithChildren<{
3
+ showCloseButton?: boolean;
4
+ onClose?: () => void;
5
+ }>;
6
+ export default function DModalHeader({ showCloseButton, onClose, children, }: Props): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -1,7 +1,7 @@
1
- import { ReactDatePickerProps } from 'react-datepicker';
2
- declare type CalendarProps = Omit<ReactDatePickerProps, 'onChange' | 'selectsRange'> & {
1
+ import type { ReactDatePickerProps } from 'react-datepicker';
2
+ type Props = Omit<ReactDatePickerProps, 'onChange' | 'selectsRange'> & {
3
3
  date: string;
4
- onEventChangeDate: (value: Date | null) => void;
4
+ onChangeDate: (value: Date | null) => void;
5
5
  };
6
- export default function DMonthPicker({ onEventChangeDate, date, ...props }: CalendarProps): import("react/jsx-runtime").JSX.Element;
6
+ export default function DMonthPicker({ onChangeDate, date, ...props }: Props): import("react/jsx-runtime").JSX.Element;
7
7
  export {};