@dynamic-framework/ui-react 1.6.0 → 1.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +223 -21
- package/README.md +3 -15
- package/dist/css/dynamic-ui.css +3888 -1310
- package/dist/css/dynamic-ui.min.css +1 -1
- package/dist/index.esm.js +889 -555
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +943 -604
- package/dist/index.js.map +1 -1
- package/dist/types/components/DAlert.d.ts +16 -0
- package/dist/types/components/DBadge.d.ts +11 -0
- package/dist/types/components/DBoxFile.d.ts +3 -4
- package/dist/types/components/DButton.d.ts +21 -0
- package/dist/types/components/DCard.d.ts +2 -2
- package/dist/types/components/DCardAccount.d.ts +3 -3
- package/dist/types/components/DCardBody.d.ts +2 -2
- package/dist/types/components/DCardFooter.d.ts +2 -2
- package/dist/types/components/DCardHeader.d.ts +2 -2
- package/dist/types/components/DCarousel.d.ts +3 -3
- package/dist/types/components/DCarouselSlide.d.ts +1 -1
- package/dist/types/components/DChip.d.ts +10 -0
- package/dist/types/components/DCollapse.d.ts +4 -4
- package/dist/types/components/DCollapseIconText.d.ts +3 -4
- package/dist/types/components/DCurrencyText.d.ts +1 -1
- package/dist/types/components/DDatePicker.d.ts +5 -5
- package/dist/types/components/DDatePickerHeader.d.ts +4 -4
- package/dist/types/components/DDatePickerInput.d.ts +7 -7
- package/dist/types/components/DDatePickerTime.d.ts +6 -6
- package/dist/types/components/DFormikInput.d.ts +2 -2
- package/dist/types/components/DFormikInputCurrency.d.ts +1 -1
- package/dist/types/components/DFormikInputSelect.d.ts +3 -6
- package/dist/types/components/DIcon.d.ts +16 -0
- package/dist/types/components/DInput.d.ts +32 -0
- package/dist/types/components/DInputCheck.d.ts +15 -0
- package/dist/types/components/DInputCounter.d.ts +22 -0
- package/dist/types/components/DInputCurrency.d.ts +4 -8
- package/dist/types/components/DInputCurrencyBase.d.ts +24 -0
- package/dist/types/components/DInputPassword.d.ts +17 -0
- package/dist/types/components/DInputPin.d.ts +19 -0
- package/dist/types/components/DInputSearch.d.ts +19 -0
- package/dist/types/components/DInputSelect.d.ts +24 -0
- package/dist/types/components/DInputSwitch.d.ts +11 -0
- package/dist/types/components/DList.d.ts +4 -3
- package/dist/types/components/DListItem.d.ts +4 -4
- package/dist/types/components/DListItemMovement.d.ts +2 -2
- package/dist/types/components/DModal.d.ts +14 -0
- package/dist/types/components/DModalBody.d.ts +6 -0
- package/dist/types/components/DModalFooter.d.ts +6 -0
- package/dist/types/components/DModalHeader.d.ts +7 -0
- package/dist/types/components/DMonthPicker.d.ts +4 -4
- package/dist/types/components/DOffcanvas.d.ts +11 -0
- package/dist/types/components/DOffcanvasBody.d.ts +6 -0
- package/dist/types/components/DOffcanvasFooter.d.ts +6 -0
- package/dist/types/components/DOffcanvasHeader.d.ts +7 -0
- package/dist/types/components/DPaginator.d.ts +4 -4
- package/dist/types/components/DPopover.d.ts +3 -2
- package/dist/types/components/DProgress.d.ts +9 -0
- package/dist/types/components/DQuickActionButton.d.ts +22 -0
- package/dist/types/components/DQuickActionCheck.d.ts +13 -0
- package/dist/types/components/DQuickActionSelect.d.ts +12 -0
- package/dist/types/components/DQuickActionSwitch.d.ts +11 -0
- package/dist/types/components/DSkeleton.d.ts +2 -2
- package/dist/types/components/DStepper.d.ts +3 -3
- package/dist/types/components/DStepperDesktop.d.ts +2 -2
- package/dist/types/components/DStepperMobile.d.ts +2 -2
- package/dist/types/components/DTabContent.d.ts +1 -1
- package/dist/types/components/DTabs.d.ts +5 -5
- package/dist/types/components/DToastContainer.d.ts +2 -3
- package/dist/types/components/DTooltip.d.ts +2 -2
- package/dist/types/components/banking/{MPermissionGroup.d.ts → DPermissionGroup.d.ts} +2 -2
- package/dist/types/components/banking/DPermissionItem.d.ts +1 -1
- package/dist/types/components/banking/{MSummaryCard.d.ts → DSummaryCard.d.ts} +2 -2
- package/dist/types/components/banking/index.d.ts +2 -2
- package/dist/types/components/banking/interface.d.ts +1 -1
- package/dist/types/components/config.d.ts +5 -0
- package/dist/types/components/index.d.ts +46 -20
- package/dist/types/components/interface.d.ts +44 -0
- package/dist/types/contexts/ModalContext.d.ts +12 -12
- package/dist/types/contexts/OffcanvasContext.d.ts +12 -12
- package/dist/types/hooks/useScreenshot.d.ts +1 -1
- package/dist/types/hooks/useToast.d.ts +3 -3
- package/dist/types/stories/components/DBadge.stories.d.ts +1 -1
- package/dist/types/stories/components/DBoxFile.stories.d.ts +1 -1
- package/dist/types/stories/components/DButton.stories.d.ts +1 -1
- package/dist/types/stories/components/DChip.stories.d.ts +1 -1
- package/dist/types/stories/components/DCurrencyText.stories.d.ts +1 -1
- package/dist/types/stories/components/DDatePicker.stories.d.ts +1 -1
- package/dist/types/stories/components/DFormikInput.stories.d.ts +1 -1
- package/dist/types/stories/components/DFormikInputCurrency.stories.d.ts +1 -1
- package/dist/types/stories/components/DFormikInputSelect.stories.d.ts +1 -1
- package/dist/types/stories/components/DIcon.stories.d.ts +1 -1
- package/dist/types/stories/components/DInput.stories.d.ts +1 -1
- package/dist/types/stories/components/DInputCheck.stories.d.ts +1 -1
- package/dist/types/stories/components/DInputCounter.stories.d.ts +1 -1
- package/dist/types/stories/components/DInputCurrency.stories.d.ts +1 -1
- package/dist/types/stories/components/DInputCurrencyBase.stories.d.ts +1 -1
- package/dist/types/stories/components/DInputPassword.stories.d.ts +1 -1
- package/dist/types/stories/components/DInputPin.stories.d.ts +1 -1
- package/dist/types/stories/components/DInputSearch.stories.d.ts +1 -1
- package/dist/types/stories/components/DInputSelect.stories.d.ts +7 -3
- package/dist/types/stories/components/DInputSwitch.stories.d.ts +1 -1
- package/dist/types/stories/components/DList.stories.d.ts +1 -1
- package/dist/types/stories/components/DListItem.stories.d.ts +1 -1
- package/dist/types/stories/components/DListItemMovement.stories.d.ts +1 -1
- package/dist/types/stories/components/DPaginator.stories.d.ts +1 -1
- package/dist/types/stories/components/DProgress.stories.d.ts +1 -1
- package/dist/types/stories/components/DQuickActionButton.stories.d.ts +1 -1
- package/dist/types/stories/components/DQuickActionCheck.stories.d.ts +1 -1
- package/dist/types/stories/components/DQuickActionSelect.stories.d.ts +1 -1
- package/dist/types/stories/components/DQuickActionSwitch.stories.d.ts +1 -1
- package/dist/types/stories/components/DSkeleton.stories.d.ts +1 -1
- package/dist/types/stories/components/DStepper.stories.d.ts +1 -1
- package/dist/types/stories/components/DStepperDesktop.stories.d.ts +1 -1
- package/dist/types/stories/components/DStepperMobile.stories.d.ts +1 -1
- package/dist/types/stories/components/DTooltip.stories.d.ts +1 -1
- package/dist/types/stories/hooks/useFormatCurrency.stories.d.ts +1 -1
- package/dist/types/stories/hooks/useModalContext.stories.d.ts +1 -1
- package/dist/types/stories/hooks/useOffcanvasContext.stories.d.ts +1 -1
- package/dist/types/stories/hooks/useToast.stories.d.ts +2 -2
- package/dist/types/stories/patterns/DAlert.stories.d.ts +1 -1
- package/dist/types/stories/{components → patterns}/DCard.stories.d.ts +1 -1
- package/dist/types/stories/{components → patterns}/DCardAccount.stories.d.ts +1 -1
- package/dist/types/stories/patterns/DCarousel.stories.d.ts +1 -1
- package/dist/types/stories/patterns/DCollapse.stories.d.ts +1 -1
- package/dist/types/stories/patterns/DCollapseIconText.stories.d.ts +1 -1
- package/dist/types/stories/patterns/DModal.stories.d.ts +1 -1
- package/dist/types/stories/patterns/DOffcanvas.stories.d.ts +1 -1
- package/dist/types/stories/patterns/DPopover.stories.d.ts +2 -1
- package/dist/types/stories/patterns/DTabs.stories.d.ts +1 -1
- package/dist/types/utils/format-currency.d.ts +2 -0
- package/dist/types/utils/index.d.ts +2 -1
- package/dist/types/utils/liquid-parser.d.ts +20 -0
- package/package.json +62 -49
- package/src/style/_shame.scss +4 -0
- package/src/style/abstracts/_+import.scss +14 -2
- package/src/style/abstracts/_funcions.scss +55 -0
- package/src/style/abstracts/_maps.scss +1 -0
- package/src/style/abstracts/_mixins.scss +133 -0
- package/src/style/abstracts/_utilities.scss +78 -0
- package/src/style/abstracts/variables/_+import.scss +159 -0
- package/src/style/abstracts/variables/_accordion.scss +35 -0
- package/src/style/abstracts/variables/_alerts.scss +27 -0
- package/src/style/abstracts/variables/_badges.scss +15 -0
- package/src/style/abstracts/variables/_body.scss +52 -0
- package/src/style/abstracts/variables/_border.scss +29 -0
- package/src/style/abstracts/variables/_box-shadow.scss +6 -0
- package/src/style/abstracts/variables/_breadcrumb.scss +15 -0
- package/src/style/abstracts/variables/_buttons.scss +55 -0
- package/src/style/abstracts/variables/_cards.scss +23 -0
- package/src/style/abstracts/variables/_carousel.scss +37 -0
- package/src/style/abstracts/variables/_chips.scss +13 -0
- package/src/style/abstracts/variables/_close.scss +16 -0
- package/src/style/abstracts/variables/_code.scss +16 -0
- package/src/style/abstracts/variables/_colors.scss +515 -0
- package/src/style/abstracts/variables/_cursors.scss +32 -0
- package/src/style/abstracts/variables/_dropdowns.scss +54 -0
- package/src/style/abstracts/variables/_figures.scss +6 -0
- package/src/style/abstracts/variables/_forms.scss +313 -0
- package/src/style/abstracts/variables/_grid.scss +41 -0
- package/src/style/abstracts/variables/_list-group.scss +43 -0
- package/src/style/abstracts/variables/_modals.scss +58 -0
- package/src/style/abstracts/variables/_navbar.scss +43 -0
- package/src/style/abstracts/variables/_navs.scss +44 -0
- package/src/style/abstracts/variables/_offcanvas.scss +20 -0
- package/src/style/abstracts/variables/_options.scss +24 -0
- package/src/style/abstracts/variables/_pagination.scss +41 -0
- package/src/style/abstracts/variables/_popovers.scss +31 -0
- package/src/style/abstracts/variables/_progress.scss +17 -0
- package/src/style/abstracts/variables/_quick-action-button.scss +31 -0
- package/src/style/abstracts/variables/_quick-action-check.scss +22 -0
- package/src/style/abstracts/variables/_quick-action-select.scss +16 -0
- package/src/style/abstracts/variables/_quick-action-switch.scss +21 -0
- package/src/style/abstracts/variables/_spacers.scss +28 -0
- package/src/style/abstracts/variables/_spinners.scss +13 -0
- package/src/style/abstracts/variables/_tables.scss +57 -0
- package/src/style/abstracts/variables/_thumbnails.scss +10 -0
- package/src/style/abstracts/variables/_toasts.scss +19 -0
- package/src/style/abstracts/variables/_tooltips.scss +29 -0
- package/src/style/abstracts/variables/_typography.scss +122 -0
- package/src/style/abstracts/variables/_z-index.scss +28 -0
- package/src/style/base/_+import.scss +15 -0
- package/src/style/base/_root.scss +248 -0
- package/src/style/base/_tables.scss +171 -0
- package/src/style/components/_+import.scss +44 -0
- package/src/style/components/_d-alert.scss +45 -0
- package/src/style/components/_d-badge.scss +26 -0
- package/src/style/components/_d-button.scss +191 -0
- package/src/style/components/_d-card-account.scss +1 -1
- package/src/style/components/_d-chip.scss +52 -0
- package/src/style/components/_d-icon.scss +32 -0
- package/src/style/components/_d-input-check.scss +20 -0
- package/src/style/components/_d-input-pin.scss +121 -0
- package/src/style/components/_d-input-select.scss +20 -0
- package/src/style/components/_d-input-switch.scss +58 -0
- package/src/style/components/_d-input.scss +168 -0
- package/src/style/components/_d-modal.scss +55 -0
- package/src/style/components/_d-offcanvas.scss +45 -0
- package/src/style/components/_d-popover.scss +4 -1
- package/src/style/components/_d-progress.scss +9 -0
- package/src/style/components/_d-quick-action-button.scss +111 -0
- package/src/style/components/_d-quick-action-check.scss +74 -0
- package/src/style/components/_d-quick-action-select.scss +56 -0
- package/src/style/components/_d-quick-action-switch.scss +71 -0
- package/src/style/dynamic-root.scss +5 -1
- package/src/style/dynamic-ui.scss +13 -1
- package/src/style/helpers/_+import.scss +13 -0
- package/src/style/helpers/_color-bg.scss +7 -0
- package/dist/css/dynamic-ui-all.css +0 -16620
- package/dist/css/dynamic-ui-all.min.css +0 -1
- package/dist/css/dynamic-ui-react.css +0 -1919
- package/dist/css/dynamic-ui-react.min.css +0 -1
- package/dist/types/components/proxies.d.ts +0 -23
- package/dist/types/components/react-component-lib/createComponent.d.ts +0 -10
- package/dist/types/components/react-component-lib/createOverlayComponent.d.ts +0 -21
- package/dist/types/components/react-component-lib/index.d.ts +0 -2
- package/dist/types/components/react-component-lib/interfaces.d.ts +0 -29
- package/dist/types/components/react-component-lib/utils/attachProps.d.ts +0 -16
- package/dist/types/components/react-component-lib/utils/case.d.ts +0 -2
- package/dist/types/components/react-component-lib/utils/dev.d.ts +0 -2
- package/dist/types/components/react-component-lib/utils/index.d.ts +0 -10
- package/src/style/dynamic-ui-all.scss +0 -3
- package/src/style/dynamic-ui-react.scss +0 -7
- /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
|
-
|
|
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,4 +1,4 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
9
|
+
onClick: () => void;
|
|
10
10
|
actionText: string;
|
|
11
11
|
};
|
|
12
|
-
export default function DCardAccount({ className, icon, theme, name, number, balance, balanceText,
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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 {
|
|
2
|
-
import {
|
|
3
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
8
|
+
onChange?: (value: boolean) => void;
|
|
9
9
|
}>;
|
|
10
|
-
export default function DCollapse({ id, className, Component, hasSeparator, defaultCollapsed,
|
|
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
|
-
|
|
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,8 +1,8 @@
|
|
|
1
|
-
import { ReactDatePickerProps } from 'react-datepicker';
|
|
2
|
-
import { ButtonVariant, ComponentSize } from '
|
|
3
|
-
|
|
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
|
-
|
|
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({
|
|
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
|
|
3
|
-
import {
|
|
4
|
-
|
|
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
|
|
3
|
-
|
|
1
|
+
import type { ComponentProps } from 'react';
|
|
2
|
+
import DInput from './DInput';
|
|
3
|
+
type Props = {
|
|
4
4
|
value?: string;
|
|
5
|
-
|
|
6
|
-
} & Omit<ComponentProps<typeof DInput>, 'type' | 'isReadOnly' | '
|
|
7
|
-
declare const
|
|
8
|
-
export 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
|
|
3
|
-
|
|
1
|
+
import type { ComponentProps, FormEventHandler } from 'react';
|
|
2
|
+
import DInput from './DInput';
|
|
3
|
+
type Props = {
|
|
4
4
|
value?: string | number;
|
|
5
|
-
|
|
6
|
-
} & Omit<ComponentProps<typeof DInput>, 'type' | 'isReadOnly' | '
|
|
7
|
-
export default function DDatePickerTime({ value,
|
|
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
|
|
3
|
-
|
|
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
|
-
|
|
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 {
|
|
2
|
-
|
|
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,
|
|
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
|
|
3
|
-
|
|
4
|
-
|
|
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,24 @@
|
|
|
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
|
+
className?: string;
|
|
12
|
+
isDisabled?: boolean;
|
|
13
|
+
isLoading?: boolean;
|
|
14
|
+
hint?: string;
|
|
15
|
+
onBlur?: (event: FocusEvent) => void;
|
|
16
|
+
onIconStartClick?: (event: MouseEvent) => void;
|
|
17
|
+
onIconEndClick?: (event: MouseEvent) => void;
|
|
18
|
+
options: Array<T>;
|
|
19
|
+
selectedOption?: T;
|
|
20
|
+
onChange?: (selectedItem: T | undefined) => void;
|
|
21
|
+
valueExtractor?: (item: T) => string | number;
|
|
22
|
+
labelExtractor?: (item: T) => string;
|
|
23
|
+
};
|
|
24
|
+
export default function DInputSelect<T extends object = DefaultOption>({ id, name, label, className, 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
|
-
|
|
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?:
|
|
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
|
-
|
|
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
|
-
|
|
7
|
+
onClick?: () => void;
|
|
8
8
|
}>;
|
|
9
|
-
export default function DListItem({ children, className, isActive, isDisabled, theme,
|
|
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
|
-
|
|
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 { 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
|
-
|
|
1
|
+
import type { ReactDatePickerProps } from 'react-datepicker';
|
|
2
|
+
type Props = Omit<ReactDatePickerProps, 'onChange' | 'selectsRange'> & {
|
|
3
3
|
date: string;
|
|
4
|
-
|
|
4
|
+
onChangeDate: (value: Date | null) => void;
|
|
5
5
|
};
|
|
6
|
-
export default function DMonthPicker({
|
|
6
|
+
export default function DMonthPicker({ onChangeDate, date, ...props }: Props): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export {};
|