@dynamic-framework/ui-react 1.7.3 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/css/dynamic-ui-non-root.css +17060 -0
- package/dist/css/dynamic-ui-non-root.min.css +1 -0
- package/dist/css/{dynamic-root.css → dynamic-ui-root.css} +5 -0
- package/dist/css/{dynamic-root.min.css → dynamic-ui-root.min.css} +1 -1
- package/dist/css/dynamic-ui.css +132 -60
- package/dist/css/dynamic-ui.min.css +1 -1
- package/dist/index.esm.js +414 -551
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +572 -725
- package/dist/index.js.map +1 -1
- package/dist/types/components/{DAlert.d.ts → DAlert/DAlert.d.ts} +3 -5
- package/dist/types/components/DAlert/index.d.ts +2 -0
- package/dist/types/components/{DBadge.d.ts → DBadge/DBadge.d.ts} +2 -4
- package/dist/types/components/DBadge/index.d.ts +2 -0
- package/dist/types/components/DBoxFile/DBoxFile.d.ts +9 -0
- package/dist/types/components/DBoxFile/index.d.ts +2 -0
- package/dist/types/components/{DButton.d.ts → DButton/DButton.d.ts} +3 -5
- package/dist/types/components/DButton/index.d.ts +2 -0
- package/dist/types/components/DCard/DCard.d.ts +13 -0
- package/dist/types/components/DCard/components/DCardBody.d.ts +5 -0
- package/dist/types/components/DCard/components/DCardFooter.d.ts +5 -0
- package/dist/types/components/DCard/components/DCardHeader.d.ts +5 -0
- package/dist/types/components/DCard/index.d.ts +5 -0
- package/dist/types/components/DCardAccount/DCardAccount.d.ts +13 -0
- package/dist/types/components/DCardAccount/index.d.ts +2 -0
- package/dist/types/components/DCarousel/DCarousel.d.ts +10 -0
- package/dist/types/components/DCarousel/index.d.ts +3 -0
- package/dist/types/components/DChip/DChip.d.ts +10 -0
- package/dist/types/components/DChip/index.d.ts +2 -0
- package/dist/types/components/DCollapse/DCollapse.d.ts +11 -0
- package/dist/types/components/DCollapse/index.d.ts +2 -0
- package/dist/types/components/{DCollapseIconText.d.ts → DCollapseIconText/DCollapseIconText.d.ts} +3 -3
- package/dist/types/components/DCollapseIconText/index.d.ts +2 -0
- package/dist/types/components/DCurrencyText/DCurrencyText.d.ts +7 -0
- package/dist/types/components/DCurrencyText/index.d.ts +2 -0
- package/dist/types/components/DDatePicker/DDatePicker.d.ts +21 -0
- package/dist/types/components/DDatePicker/index.d.ts +2 -0
- package/dist/types/components/{DDatePickerHeader.d.ts → DDatePickerHeader/DDatePickerHeader.d.ts} +5 -4
- package/dist/types/components/DDatePickerHeader/index.d.ts +2 -0
- package/dist/types/components/{DDatePickerInput.d.ts → DDatePickerInput/DDatePickerInput.d.ts} +3 -2
- package/dist/types/components/DDatePickerInput/index.d.ts +2 -0
- package/dist/types/components/DDatePickerTime/DDatePickerTime.d.ts +9 -0
- package/dist/types/components/DDatePickerTime/index.d.ts +2 -0
- package/dist/types/components/DIcon/DIcon.d.ts +16 -0
- package/dist/types/components/DIcon/index.d.ts +2 -0
- package/dist/types/components/DInput/DInput.d.ts +15 -0
- package/dist/types/components/DInput/index.d.ts +2 -0
- package/dist/types/components/{DInputCheck.d.ts → DInputCheck/DInputCheck.d.ts} +3 -3
- package/dist/types/components/DInputCheck/index.d.ts +2 -0
- package/dist/types/components/DInputCounter/DInputCounter.d.ts +20 -0
- package/dist/types/components/DInputCounter/index.d.ts +2 -0
- package/dist/types/components/DInputCurrency/DInputCurrency.d.ts +21 -0
- package/dist/types/components/DInputCurrency/index.d.ts +2 -0
- package/dist/types/components/DInputCurrencyBase/DInputCurrencyBase.d.ts +23 -0
- package/dist/types/components/DInputCurrencyBase/index.d.ts +2 -0
- package/dist/types/components/DInputPassword/DInputPassword.d.ts +5 -0
- package/dist/types/components/DInputPassword/index.d.ts +2 -0
- package/dist/types/components/{DInputPin.d.ts → DInputPin/DInputPin.d.ts} +3 -3
- package/dist/types/components/DInputPin/index.d.ts +2 -0
- package/dist/types/components/DInputSearch/DInputSearch.d.ts +17 -0
- package/dist/types/components/DInputSearch/index.d.ts +2 -0
- package/dist/types/components/{DInputSelect.d.ts → DInputSelect/DInputSelect.d.ts} +3 -4
- package/dist/types/components/DInputSelect/index.d.ts +3 -0
- package/dist/types/components/{DInputSwitch.d.ts → DInputSwitch/DInputSwitch.d.ts} +4 -3
- package/dist/types/components/DInputSwitch/index.d.ts +2 -0
- package/dist/types/components/DList/DList.d.ts +14 -0
- package/dist/types/components/DList/components/DListItem.d.ts +10 -0
- package/dist/types/components/DList/index.d.ts +3 -0
- package/dist/types/components/DListItemMovement/DListItemMovement.d.ts +10 -0
- package/dist/types/components/DListItemMovement/index.d.ts +2 -0
- package/dist/types/components/DModal/DModal.d.ts +21 -0
- package/dist/types/components/DModal/components/DModalBody.d.ts +7 -0
- package/dist/types/components/DModal/components/DModalFooter.d.ts +7 -0
- package/dist/types/components/{DModalHeader.d.ts → DModal/components/DModalHeader.d.ts} +3 -2
- package/dist/types/components/DModal/index.d.ts +5 -0
- package/dist/types/components/DMonthPicker/DMonthPicker.d.ts +9 -0
- package/dist/types/components/DMonthPicker/index.d.ts +2 -0
- package/dist/types/components/DOffcanvas/DOffcanvas.d.ts +18 -0
- package/dist/types/components/DOffcanvas/components/DOffcanvasBody.d.ts +7 -0
- package/dist/types/components/{DOffcanvasFooter.d.ts → DOffcanvas/components/DOffcanvasFooter.d.ts} +3 -2
- package/dist/types/components/{DOffcanvasHeader.d.ts → DOffcanvas/components/DOffcanvasHeader.d.ts} +3 -2
- package/dist/types/components/DOffcanvas/index.d.ts +5 -0
- package/dist/types/components/DPaginator/index.d.ts +2 -0
- package/dist/types/components/{DPopover.d.ts → DPopover/DPopover.d.ts} +3 -2
- package/dist/types/components/DPopover/index.d.ts +2 -0
- package/dist/types/components/DProgress/DProgress.d.ts +10 -0
- package/dist/types/components/DProgress/index.d.ts +2 -0
- package/dist/types/components/{DQuickActionButton.d.ts → DQuickActionButton/DQuickActionButton.d.ts} +2 -4
- package/dist/types/components/DQuickActionButton/index.d.ts +2 -0
- package/dist/types/components/{DQuickActionCheck.d.ts → DQuickActionCheck/DQuickActionCheck.d.ts} +3 -3
- package/dist/types/components/DQuickActionCheck/index.d.ts +2 -0
- package/dist/types/components/{DQuickActionSelect.d.ts → DQuickActionSelect/DQuickActionSelect.d.ts} +3 -3
- package/dist/types/components/DQuickActionSelect/index.d.ts +2 -0
- package/dist/types/components/{DQuickActionSwitch.d.ts → DQuickActionSwitch/DQuickActionSwitch.d.ts} +3 -3
- package/dist/types/components/DQuickActionSwitch/index.d.ts +2 -0
- package/dist/types/components/DSkeleton/index.d.ts +2 -0
- package/dist/types/components/{DStepper.d.ts → DStepper/DStepper.d.ts} +3 -3
- package/dist/types/components/DStepper/index.d.ts +2 -0
- package/dist/types/components/{DStepperDesktop.d.ts → DStepperDesktop/DStepperDesktop.d.ts} +3 -2
- package/dist/types/components/DStepperDesktop/index.d.ts +2 -0
- package/dist/types/components/DStepperMobile/DStepperMobile.d.ts +12 -0
- package/dist/types/components/DStepperMobile/index.d.ts +2 -0
- package/dist/types/components/DTabs/DTabs.d.ts +19 -0
- package/dist/types/components/DTabs/TabContext.d.ts +8 -0
- package/dist/types/components/DTabs/components/DTabContent.d.ts +7 -0
- package/dist/types/components/DTabs/index.d.ts +5 -0
- package/dist/types/components/{DToastContainer.d.ts → DToastContainer/DToastContainer.d.ts} +3 -2
- package/dist/types/components/DToastContainer/index.d.ts +3 -0
- package/dist/types/{hooks → components/DToastContainer}/useToast.d.ts +1 -1
- package/dist/types/components/{DTooltip.d.ts → DTooltip/DTooltip.d.ts} +3 -4
- package/dist/types/components/DTooltip/index.d.ts +2 -0
- package/dist/types/components/index.d.ts +11 -26
- package/dist/types/components/interface.d.ts +9 -4
- package/dist/types/contexts/DContext.d.ts +13 -0
- package/dist/types/contexts/index.d.ts +1 -1
- package/dist/types/hooks/index.d.ts +3 -4
- package/dist/types/hooks/useInputCurrency.d.ts +16 -0
- package/dist/types/hooks/useProvidedRefOrCreate.d.ts +16 -0
- package/dist/types/types/index.d.ts +1 -0
- package/dist/types/types/polymorphic.d.ts +37 -0
- package/dist/types/utils/index.d.ts +0 -1
- package/package.json +48 -55
- package/src/style/abstracts/variables/_buttons.scss +1 -1
- package/src/style/abstracts/variables/_forms.scss +4 -4
- package/src/style/abstracts/variables/_toasts.scss +1 -1
- package/src/style/abstracts/variables/_typography.scss +1 -1
- package/src/style/base/_+import.scss +0 -3
- package/src/style/components/_d-input.scss +10 -5
- package/src/style/components/_d-monthpicker.scss +8 -0
- package/src/style/dynamic-ui-non-root.scss +13 -0
- package/src/style/dynamic-ui-root.scss +5 -0
- package/src/style/dynamic-ui.scss +2 -0
- package/src/style/root/_+import.scss +2 -0
- package/src/style/{base → root}/_root.scss +6 -0
- package/dist/types/components/DBoxFile.d.ts +0 -9
- package/dist/types/components/DCard.d.ts +0 -7
- package/dist/types/components/DCardAccount.d.ts +0 -13
- package/dist/types/components/DCardBody.d.ts +0 -6
- package/dist/types/components/DCardFooter.d.ts +0 -6
- package/dist/types/components/DCardHeader.d.ts +0 -6
- package/dist/types/components/DCarousel.d.ts +0 -7
- package/dist/types/components/DChip.d.ts +0 -10
- package/dist/types/components/DCollapse.d.ts +0 -11
- package/dist/types/components/DCurrencyText.d.ts +0 -6
- package/dist/types/components/DDatePicker.d.ts +0 -20
- package/dist/types/components/DDatePickerTime.d.ts +0 -8
- package/dist/types/components/DFormikInput.d.ts +0 -7
- package/dist/types/components/DFormikInputCurrency.d.ts +0 -7
- package/dist/types/components/DFormikInputSelect.d.ts +0 -6
- package/dist/types/components/DIcon.d.ts +0 -16
- package/dist/types/components/DInput.d.ts +0 -32
- package/dist/types/components/DInputCounter.d.ts +0 -22
- package/dist/types/components/DInputCurrency.d.ts +0 -5
- package/dist/types/components/DInputCurrencyBase.d.ts +0 -25
- package/dist/types/components/DInputPassword.d.ts +0 -17
- package/dist/types/components/DInputSearch.d.ts +0 -19
- package/dist/types/components/DList.d.ts +0 -11
- package/dist/types/components/DListItem.d.ts +0 -10
- package/dist/types/components/DListItemMovement.d.ts +0 -10
- package/dist/types/components/DModal.d.ts +0 -14
- package/dist/types/components/DModalBody.d.ts +0 -6
- package/dist/types/components/DModalFooter.d.ts +0 -6
- package/dist/types/components/DMonthPicker.d.ts +0 -7
- package/dist/types/components/DOffcanvas.d.ts +0 -11
- package/dist/types/components/DOffcanvasBody.d.ts +0 -6
- package/dist/types/components/DProgress.d.ts +0 -9
- package/dist/types/components/DStepperMobile.d.ts +0 -11
- package/dist/types/components/DTabContent.d.ts +0 -6
- package/dist/types/components/DTabs.d.ts +0 -19
- package/dist/types/contexts/LiquidContext.d.ts +0 -14
- package/dist/types/hooks/useScreenshot.d.ts +0 -5
- package/dist/types/hooks/useScreenshotDownload.d.ts +0 -5
- package/dist/types/hooks/useScreenshotWebShare.d.ts +0 -5
- package/dist/types/stories/components/DBadge.stories.d.ts +0 -8
- package/dist/types/stories/components/DBoxFile.stories.d.ts +0 -6
- package/dist/types/stories/components/DButton.stories.d.ts +0 -35
- package/dist/types/stories/components/DChip.stories.d.ts +0 -9
- package/dist/types/stories/components/DCurrencyText.stories.d.ts +0 -6
- package/dist/types/stories/components/DDatePicker.stories.d.ts +0 -14
- package/dist/types/stories/components/DFormikInput.stories.d.ts +0 -7
- package/dist/types/stories/components/DFormikInputCurrency.stories.d.ts +0 -8
- package/dist/types/stories/components/DFormikInputSelect.stories.d.ts +0 -7
- package/dist/types/stories/components/DIcon.stories.d.ts +0 -7
- package/dist/types/stories/components/DInput.stories.d.ts +0 -11
- package/dist/types/stories/components/DInputCheck.stories.d.ts +0 -13
- package/dist/types/stories/components/DInputCounter.stories.d.ts +0 -9
- package/dist/types/stories/components/DInputCurrency.stories.d.ts +0 -11
- package/dist/types/stories/components/DInputCurrencyBase.stories.d.ts +0 -11
- package/dist/types/stories/components/DInputPassword.stories.d.ts +0 -10
- package/dist/types/stories/components/DInputPin.stories.d.ts +0 -10
- package/dist/types/stories/components/DInputSearch.stories.d.ts +0 -10
- package/dist/types/stories/components/DInputSelect.stories.d.ts +0 -14
- package/dist/types/stories/components/DInputSwitch.stories.d.ts +0 -11
- package/dist/types/stories/components/DList.stories.d.ts +0 -10
- package/dist/types/stories/components/DListItem.stories.d.ts +0 -9
- package/dist/types/stories/components/DListItemMovement.stories.d.ts +0 -7
- package/dist/types/stories/components/DPaginator.stories.d.ts +0 -10
- package/dist/types/stories/components/DProgress.stories.d.ts +0 -12
- package/dist/types/stories/components/DQuickActionButton.stories.d.ts +0 -10
- package/dist/types/stories/components/DQuickActionCheck.stories.d.ts +0 -8
- package/dist/types/stories/components/DQuickActionSelect.stories.d.ts +0 -8
- package/dist/types/stories/components/DQuickActionSwitch.stories.d.ts +0 -9
- package/dist/types/stories/components/DSkeleton.stories.d.ts +0 -6
- package/dist/types/stories/components/DStepper.stories.d.ts +0 -7
- package/dist/types/stories/components/DStepperDesktop.stories.d.ts +0 -7
- package/dist/types/stories/components/DStepperMobile.stories.d.ts +0 -6
- package/dist/types/stories/components/DTooltip.stories.d.ts +0 -18
- package/dist/types/stories/config/constants.d.ts +0 -7
- package/dist/types/stories/config/liquidConfig.d.ts +0 -1
- package/dist/types/stories/hooks/useFormatCurrency.stories.d.ts +0 -6
- package/dist/types/stories/hooks/useModalContext.stories.d.ts +0 -6
- package/dist/types/stories/hooks/useOffcanvasContext.stories.d.ts +0 -7
- package/dist/types/stories/hooks/useToast.stories.d.ts +0 -17
- package/dist/types/stories/patterns/DAlert.stories.d.ts +0 -24
- package/dist/types/stories/patterns/DCard.stories.d.ts +0 -10
- package/dist/types/stories/patterns/DCardAccount.stories.d.ts +0 -6
- package/dist/types/stories/patterns/DCarousel.stories.d.ts +0 -9
- package/dist/types/stories/patterns/DCollapse.stories.d.ts +0 -8
- package/dist/types/stories/patterns/DCollapseIconText.stories.d.ts +0 -6
- package/dist/types/stories/patterns/DModal.stories.d.ts +0 -12
- package/dist/types/stories/patterns/DOffcanvas.stories.d.ts +0 -12
- package/dist/types/stories/patterns/DPopover.stories.d.ts +0 -9
- package/dist/types/stories/patterns/DTabs.stories.d.ts +0 -7
- package/dist/types/utils/liquid-parser.d.ts +0 -20
- package/src/style/dynamic-root.scss +0 -6
- /package/dist/types/components/{DCarouselSlide.d.ts → DCarousel/components/DCarouselSlide.d.ts} +0 -0
- /package/dist/types/components/{DPaginator.d.ts → DPaginator/DPaginator.d.ts} +0 -0
- /package/dist/types/components/{DSkeleton.d.ts → DSkeleton/DSkeleton.d.ts} +0 -0
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { AlertType } from '
|
|
3
|
-
type Props = PropsWithChildren<{
|
|
1
|
+
import type { PropsWithChildren } from 'react';
|
|
2
|
+
import type { AlertType, BaseProps } from '../interface';
|
|
3
|
+
type Props = BaseProps & PropsWithChildren<{
|
|
4
4
|
id?: string;
|
|
5
|
-
className?: string;
|
|
6
|
-
style?: CSSProperties;
|
|
7
5
|
type?: AlertType;
|
|
8
6
|
icon?: string;
|
|
9
7
|
iconFamilyClass?: string;
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
type Props = {
|
|
1
|
+
import type { BaseProps } from '../interface';
|
|
2
|
+
type Props = BaseProps & {
|
|
3
3
|
text?: string;
|
|
4
4
|
isDot?: boolean;
|
|
5
5
|
theme?: string;
|
|
6
6
|
id?: string;
|
|
7
|
-
className?: string;
|
|
8
|
-
style?: CSSProperties;
|
|
9
7
|
};
|
|
10
8
|
export default function DBadge({ text, isDot, theme, id, className, style, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
11
9
|
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { PropsWithChildren } from 'react';
|
|
2
|
+
import type { DropzoneOptions } from 'react-dropzone';
|
|
3
|
+
import type { BaseProps, FamilyIconProps } from '../interface';
|
|
4
|
+
type Props = BaseProps & FamilyIconProps & PropsWithChildren<Pick<DropzoneOptions, 'accept' | 'minSize' | 'maxSize' | 'maxFiles' | 'onDrop' | 'onDropAccepted' | 'onDropRejected' | 'onFileDialogCancel' | 'onFileDialogOpen'> & {
|
|
5
|
+
icon?: string;
|
|
6
|
+
isDisabled: DropzoneOptions['disabled'];
|
|
7
|
+
}>;
|
|
8
|
+
export default function DBoxFile({ icon, iconFamilyClass, iconFamilyPrefix, isDisabled, children, className, style, ...dropzoneOptions }: Props): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import type { MouseEvent
|
|
2
|
-
import type { ButtonType, ButtonVariant, ComponentSize,
|
|
3
|
-
type Props =
|
|
1
|
+
import type { MouseEvent } from 'react';
|
|
2
|
+
import type { BaseProps, ButtonType, ButtonVariant, ComponentSize, EndIconProps, InputState, StartIconProps } from '../interface';
|
|
3
|
+
type Props = BaseProps & StartIconProps & EndIconProps & {
|
|
4
4
|
id?: string;
|
|
5
|
-
className?: string;
|
|
6
|
-
style?: CSSProperties;
|
|
7
5
|
theme?: string;
|
|
8
6
|
size?: ComponentSize;
|
|
9
7
|
variant?: ButtonVariant;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { PropsWithChildren } from 'react';
|
|
2
|
+
import DCardHeader from './components/DCardHeader';
|
|
3
|
+
import DCardBody from './components/DCardBody';
|
|
4
|
+
import DCardFooter from './components/DCardFooter';
|
|
5
|
+
import type { BaseProps } from '../interface';
|
|
6
|
+
type Props = PropsWithChildren<BaseProps>;
|
|
7
|
+
declare function DCard({ className, style, children, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare const _default: typeof DCard & {
|
|
9
|
+
Header: typeof DCardHeader;
|
|
10
|
+
Body: typeof DCardBody;
|
|
11
|
+
Footer: typeof DCardFooter;
|
|
12
|
+
};
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { PropsWithChildren } from 'react';
|
|
2
|
+
import type { BaseProps } from '../../interface';
|
|
3
|
+
type Props = PropsWithChildren<BaseProps>;
|
|
4
|
+
export default function DCardBody({ className, style, children, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { PropsWithChildren } from 'react';
|
|
2
|
+
import type { BaseProps } from '../../interface';
|
|
3
|
+
type Props = PropsWithChildren<BaseProps>;
|
|
4
|
+
export default function DCardFooter({ className, style, children, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { PropsWithChildren } from 'react';
|
|
2
|
+
import type { BaseProps } from '../../interface';
|
|
3
|
+
type Props = PropsWithChildren<BaseProps>;
|
|
4
|
+
export default function DCardHeader({ className, style, children, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { BaseProps } from '../interface';
|
|
2
|
+
type Props = BaseProps & {
|
|
3
|
+
icon: string;
|
|
4
|
+
theme: string;
|
|
5
|
+
name: string;
|
|
6
|
+
number: string;
|
|
7
|
+
balance: string;
|
|
8
|
+
balanceText: string;
|
|
9
|
+
onClick: () => void;
|
|
10
|
+
actionText: string;
|
|
11
|
+
};
|
|
12
|
+
export default function DCardAccount({ className, style, icon, theme, name, number, balance, balanceText, onClick, actionText, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { PropsWithChildren } from 'react';
|
|
2
|
+
import type { SplideProps } from '@splidejs/react-splide';
|
|
3
|
+
import DCarouselSlide from './components/DCarouselSlide';
|
|
4
|
+
import type { BaseProps } from '../interface';
|
|
5
|
+
type Props = SplideProps & PropsWithChildren<BaseProps>;
|
|
6
|
+
declare function DCarousel({ children, className, style, options, ...props }: Props): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare const _default: typeof DCarousel & {
|
|
8
|
+
Slide: typeof DCarouselSlide;
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { BaseProps, FamilyIconProps } from '../interface';
|
|
2
|
+
type Props = BaseProps & FamilyIconProps & {
|
|
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, className, style, onClose, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { PropsWithChildren, ReactNode, ReactElement } from 'react';
|
|
2
|
+
import type { BaseProps } from '../interface';
|
|
3
|
+
type Props = BaseProps & PropsWithChildren<{
|
|
4
|
+
id?: string;
|
|
5
|
+
Component: ReactElement | ReactNode;
|
|
6
|
+
hasSeparator?: boolean;
|
|
7
|
+
defaultCollapsed?: boolean;
|
|
8
|
+
onChange?: (value: boolean) => void;
|
|
9
|
+
}>;
|
|
10
|
+
export default function DCollapse({ id, className, style, Component, hasSeparator, defaultCollapsed, onChange, children, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
package/dist/types/components/{DCollapseIconText.d.ts → DCollapseIconText/DCollapseIconText.d.ts}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { PropsWithChildren } from 'react';
|
|
2
|
-
import type {
|
|
3
|
-
type Props =
|
|
2
|
+
import type { BaseProps, FamilyIconProps } from '../interface';
|
|
3
|
+
type Props = BaseProps & FamilyIconProps & PropsWithChildren<{
|
|
4
4
|
/**
|
|
5
5
|
* Icon name
|
|
6
6
|
*/
|
|
@@ -18,5 +18,5 @@ type Props = FamilyIcon & PropsWithChildren<{
|
|
|
18
18
|
*/
|
|
19
19
|
title: string;
|
|
20
20
|
}>;
|
|
21
|
-
export default function DCollapseIconText({ children, icon, iconSize, iconTheme, title, iconFamilyClass, iconFamilyPrefix, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export default function DCollapseIconText({ children, icon, iconSize, iconTheme, title, iconFamilyClass, iconFamilyPrefix, className, style, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
22
22
|
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { Locale } from 'date-fns';
|
|
2
|
+
import type { ReactDatePickerProps } from 'react-datepicker';
|
|
3
|
+
import type { BaseProps, ButtonVariant, ComponentSize } from '../interface';
|
|
4
|
+
type Props = BaseProps & Omit<ReactDatePickerProps, 'selected' | 'selectsRange' | 'locale'> & {
|
|
5
|
+
date?: string | null;
|
|
6
|
+
withMonthSelector?: boolean;
|
|
7
|
+
selectsRange?: boolean;
|
|
8
|
+
inputLabel?: string;
|
|
9
|
+
inputIcon?: string;
|
|
10
|
+
inputId?: string;
|
|
11
|
+
timeId?: string;
|
|
12
|
+
timeLabel?: string;
|
|
13
|
+
headerDecreaseMonthIcon?: string;
|
|
14
|
+
headerIncreaseMonthIcon?: string;
|
|
15
|
+
headerIconSize?: ComponentSize;
|
|
16
|
+
headerButtonVariant?: ButtonVariant;
|
|
17
|
+
headerButtonTheme?: string;
|
|
18
|
+
locale?: Locale;
|
|
19
|
+
};
|
|
20
|
+
export default function DDatePicker({ date, selectsRange, withMonthSelector, inputLabel, inputIcon, inputId, timeId, timeLabel, headerDecreaseMonthIcon, headerIncreaseMonthIcon, headerIconSize, headerButtonVariant, headerButtonTheme, locale, className, style, ...props }: Props): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export {};
|
package/dist/types/components/{DDatePickerHeader.d.ts → DDatePickerHeader/DDatePickerHeader.d.ts}
RENAMED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { ComponentProps } from 'react';
|
|
2
|
-
import DButton from '
|
|
3
|
-
import type { ButtonVariant, ComponentSize } from '
|
|
4
|
-
type Props = {
|
|
2
|
+
import DButton from '../DButton';
|
|
3
|
+
import type { BaseProps, ButtonVariant, ComponentSize } from '../interface';
|
|
4
|
+
type Props = BaseProps & {
|
|
5
|
+
locale?: Locale;
|
|
5
6
|
monthDate: Date;
|
|
6
7
|
decreaseMonth: () => void;
|
|
7
8
|
increaseMonth: () => void;
|
|
@@ -16,5 +17,5 @@ type Props = {
|
|
|
16
17
|
buttonVariant: ButtonVariant;
|
|
17
18
|
buttonTheme: string;
|
|
18
19
|
} & Omit<ComponentProps<typeof DButton>, 'iconStart' | 'onMClick' | 'isDisabled'>;
|
|
19
|
-
export default function DDatePickerHeader({ monthDate, changeMonth, changeYear, decreaseMonth, increaseMonth, prevMonthButtonDisabled, nextMonthButtonDisabled, withMonthSelector, decreaseMonthIcon, increaseMonthIcon, iconSize, buttonVariant, buttonTheme, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export default function DDatePickerHeader({ monthDate, changeMonth, changeYear, decreaseMonth, increaseMonth, prevMonthButtonDisabled, nextMonthButtonDisabled, withMonthSelector, decreaseMonthIcon, increaseMonthIcon, iconSize, buttonVariant, buttonTheme, locale, style, className, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
20
21
|
export {};
|
package/dist/types/components/{DDatePickerInput.d.ts → DDatePickerInput/DDatePickerInput.d.ts}
RENAMED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { ComponentProps } from 'react';
|
|
2
|
-
import DInput from '
|
|
3
|
-
type
|
|
2
|
+
import DInput from '../DInput';
|
|
3
|
+
import type { BaseProps } from '../interface';
|
|
4
|
+
type Props = BaseProps & {
|
|
4
5
|
value?: string;
|
|
5
6
|
onClick?: () => void;
|
|
6
7
|
} & Omit<ComponentProps<typeof DInput>, 'type' | 'isReadOnly' | 'onIconEndClick' | 'value'>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ComponentProps } from 'react';
|
|
2
|
+
import DInput from '../DInput';
|
|
3
|
+
import type { BaseProps } from '../interface';
|
|
4
|
+
type Props = BaseProps & {
|
|
5
|
+
value?: string;
|
|
6
|
+
onChange?: (value?: string) => void;
|
|
7
|
+
} & Omit<ComponentProps<typeof DInput>, 'type' | 'isReadOnly' | 'onChange' | 'value'>;
|
|
8
|
+
export default function DDatePickerTime({ value, onChange, id, label, className, style, ...props }: Props): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { BaseProps } from '../interface';
|
|
2
|
+
type Props = BaseProps & {
|
|
3
|
+
icon: string;
|
|
4
|
+
theme?: 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, style, className, size, isLoading, loadingDuration, hasCircle, circleSize, color, backgroundColor, familyClass, familyPrefix, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { BaseProps, 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">, "value" | "loading" | "label" | "invalid" | "onChange" | keyof BaseProps | keyof FamilyIconProps | keyof LabelIconProps | keyof StartIconProps | keyof EndIconProps | "hint" | "valid" | "inputStart" | "onIconStartClick" | "onIconEndClick"> & BaseProps & FamilyIconProps & LabelIconProps & StartIconProps & EndIconProps & {
|
|
4
|
+
value?: string | undefined;
|
|
5
|
+
label?: string | undefined;
|
|
6
|
+
loading?: boolean | undefined;
|
|
7
|
+
hint?: string | undefined;
|
|
8
|
+
invalid?: boolean | undefined;
|
|
9
|
+
valid?: boolean | undefined;
|
|
10
|
+
inputStart?: ReactNode;
|
|
11
|
+
onChange?: ((value?: string) => void) | undefined;
|
|
12
|
+
onIconStartClick?: ((value?: string) => void) | undefined;
|
|
13
|
+
onIconEndClick?: ((value?: string) => void) | undefined;
|
|
14
|
+
} & import("react").RefAttributes<HTMLInputElement>>;
|
|
15
|
+
export default ForwardedDInput;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ChangeEvent } from 'react';
|
|
2
|
-
import type { InputCheckType } from '
|
|
3
|
-
type Props = {
|
|
2
|
+
import type { BaseProps, InputCheckType } from '../interface';
|
|
3
|
+
type Props = BaseProps & {
|
|
4
4
|
type: InputCheckType;
|
|
5
5
|
name?: string;
|
|
6
6
|
label?: string;
|
|
@@ -11,5 +11,5 @@ type Props = {
|
|
|
11
11
|
value?: string;
|
|
12
12
|
onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
13
13
|
};
|
|
14
|
-
export default function DInputCheck({ type, name, label, isChecked, id, isDisabled, isIndeterminate, value, onChange, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export default function DInputCheck({ type, name, label, isChecked, id, isDisabled, isIndeterminate, value, onChange, className, style, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
15
15
|
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
type NonDInputProps = {
|
|
3
|
+
value?: number;
|
|
4
|
+
minValue: number;
|
|
5
|
+
maxValue: number;
|
|
6
|
+
onChange?: (value?: number) => void;
|
|
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">, "value" | "loading" | "label" | "invalid" | "onChange" | keyof import("../interface").BaseProps | keyof import("../interface").FamilyIconProps | keyof import("../interface").LabelIconProps | keyof import("../interface").StartIconProps | keyof import("../interface").EndIconProps | "hint" | "valid" | "inputStart" | "onIconStartClick" | "onIconEndClick"> & import("../interface").BaseProps & import("../interface").FamilyIconProps & import("../interface").LabelIconProps & import("../interface").StartIconProps & import("../interface").EndIconProps & {
|
|
9
|
+
value?: string | undefined;
|
|
10
|
+
label?: string | undefined;
|
|
11
|
+
loading?: boolean | undefined;
|
|
12
|
+
hint?: string | undefined;
|
|
13
|
+
invalid?: boolean | undefined;
|
|
14
|
+
valid?: boolean | undefined;
|
|
15
|
+
inputStart?: import("react").ReactNode;
|
|
16
|
+
onChange?: ((value?: string | undefined) => void) | undefined;
|
|
17
|
+
onIconStartClick?: ((value?: string | undefined) => void) | undefined;
|
|
18
|
+
onIconEndClick?: ((value?: string | undefined) => void) | undefined;
|
|
19
|
+
} & import("react").RefAttributes<HTMLInputElement>, "ref">, "type" | "value" | "onChange">, keyof NonDInputProps> & NonDInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
20
|
+
export default ForwardedDInputCounter;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
type NonDInputProps = {
|
|
3
|
+
value?: number;
|
|
4
|
+
minValue?: number;
|
|
5
|
+
maxValue?: number;
|
|
6
|
+
currencyCode?: string;
|
|
7
|
+
onChange?: (value?: number) => void;
|
|
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">, "value" | "loading" | "label" | "invalid" | "onChange" | keyof import("../interface").BaseProps | keyof import("../interface").FamilyIconProps | keyof import("../interface").LabelIconProps | keyof import("../interface").StartIconProps | keyof import("../interface").EndIconProps | "hint" | "valid" | "inputStart" | "onIconStartClick" | "onIconEndClick"> & import("../interface").BaseProps & import("../interface").FamilyIconProps & import("../interface").LabelIconProps & import("../interface").StartIconProps & import("../interface").EndIconProps & {
|
|
10
|
+
value?: string | undefined;
|
|
11
|
+
label?: string | undefined;
|
|
12
|
+
loading?: boolean | undefined;
|
|
13
|
+
hint?: string | undefined;
|
|
14
|
+
invalid?: boolean | undefined;
|
|
15
|
+
valid?: boolean | undefined;
|
|
16
|
+
inputStart?: import("react").ReactNode;
|
|
17
|
+
onChange?: ((value?: string | undefined) => void) | undefined;
|
|
18
|
+
onIconStartClick?: ((value?: string | undefined) => void) | undefined;
|
|
19
|
+
onIconEndClick?: ((value?: string | undefined) => void) | undefined;
|
|
20
|
+
} & import("react").RefAttributes<HTMLInputElement>, "ref">, "type" | "value" | "onChange">, keyof NonDInputProps> & NonDInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
21
|
+
export default ForwardedDInputCurrencyBase;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { Options } from 'currency.js';
|
|
3
|
+
type NonDInputProps = {
|
|
4
|
+
value?: number;
|
|
5
|
+
minValue?: number;
|
|
6
|
+
maxValue?: number;
|
|
7
|
+
currencyOptions: Options;
|
|
8
|
+
currencyCode?: string;
|
|
9
|
+
onChange?: (value?: number) => void;
|
|
10
|
+
};
|
|
11
|
+
declare const ForwardedDInputCurrencyBase: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<Omit<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "value" | "onChange">, "value" | "loading" | "label" | "invalid" | "onChange" | keyof import("../interface").BaseProps | keyof import("../interface").FamilyIconProps | keyof import("../interface").LabelIconProps | keyof import("../interface").StartIconProps | keyof import("../interface").EndIconProps | "hint" | "valid" | "inputStart" | "onIconStartClick" | "onIconEndClick"> & import("../interface").BaseProps & import("../interface").FamilyIconProps & import("../interface").LabelIconProps & import("../interface").StartIconProps & import("../interface").EndIconProps & {
|
|
12
|
+
value?: string | undefined;
|
|
13
|
+
label?: string | undefined;
|
|
14
|
+
loading?: boolean | undefined;
|
|
15
|
+
hint?: string | undefined;
|
|
16
|
+
invalid?: boolean | undefined;
|
|
17
|
+
valid?: boolean | undefined;
|
|
18
|
+
inputStart?: import("react").ReactNode;
|
|
19
|
+
onChange?: ((value?: string | undefined) => void) | undefined;
|
|
20
|
+
onIconStartClick?: ((value?: string | undefined) => void) | undefined;
|
|
21
|
+
onIconEndClick?: ((value?: string | undefined) => void) | undefined;
|
|
22
|
+
} & import("react").RefAttributes<HTMLInputElement>, "ref">, "type" | "value" | "onChange">, keyof NonDInputProps> & NonDInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
23
|
+
export default ForwardedDInputCurrencyBase;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import DInput from '../DInput';
|
|
3
|
+
type Props = Omit<ComponentPropsWithoutRef<typeof DInput>, 'iconEnd' | 'type'>;
|
|
4
|
+
declare const ForwardedDInputPassword: import("react").ForwardRefExoticComponent<Props & import("react").RefAttributes<HTMLInputElement>>;
|
|
5
|
+
export default ForwardedDInputPassword;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
type Props =
|
|
1
|
+
import type { BaseProps, FamilyIconProps, LabelIconProps, PinInputMode, PinInputType } from '../interface';
|
|
2
|
+
type Props = BaseProps & LabelIconProps & FamilyIconProps & {
|
|
3
3
|
id: string;
|
|
4
4
|
label?: string;
|
|
5
5
|
placeholder?: string;
|
|
@@ -15,5 +15,5 @@ type Props = LabelIcon & FamilyIcon & {
|
|
|
15
15
|
isValid?: boolean;
|
|
16
16
|
onChange?: (value: string) => void;
|
|
17
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;
|
|
18
|
+
export default function DInputPin({ id, label, labelIcon, labelIconFamilyClass, labelIconFamilyPrefix, placeholder, type, isDisabled, isLoading, isSecret, iconFamilyClass, iconFamilyPrefix, characters, innerInputMode, hint, isInvalid, isValid, className, style, onChange, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
19
19
|
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
type NonDInputProps = {
|
|
3
|
+
onClick?: (value: string | undefined) => void;
|
|
4
|
+
};
|
|
5
|
+
declare const ForwardedDInputSearch: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<Omit<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "value" | "onChange">, "value" | "loading" | "label" | "invalid" | "onChange" | keyof import("../interface").BaseProps | keyof import("../interface").FamilyIconProps | keyof import("../interface").LabelIconProps | keyof import("../interface").StartIconProps | keyof import("../interface").EndIconProps | "hint" | "valid" | "inputStart" | "onIconStartClick" | "onIconEndClick"> & import("../interface").BaseProps & import("../interface").FamilyIconProps & import("../interface").LabelIconProps & import("../interface").StartIconProps & import("../interface").EndIconProps & {
|
|
6
|
+
value?: string | undefined;
|
|
7
|
+
label?: string | undefined;
|
|
8
|
+
loading?: boolean | undefined;
|
|
9
|
+
hint?: string | undefined;
|
|
10
|
+
invalid?: boolean | undefined;
|
|
11
|
+
valid?: boolean | undefined;
|
|
12
|
+
inputStart?: import("react").ReactNode;
|
|
13
|
+
onChange?: ((value?: string | undefined) => void) | undefined;
|
|
14
|
+
onIconStartClick?: ((value?: string | undefined) => void) | undefined;
|
|
15
|
+
onIconEndClick?: ((value?: string | undefined) => void) | undefined;
|
|
16
|
+
} & import("react").RefAttributes<HTMLInputElement>, "ref">, "iconEnd" | "onIconEndClick">, "onClick"> & NonDInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
17
|
+
export default ForwardedDInputSearch;
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import type { FocusEvent, MouseEvent } from 'react';
|
|
2
|
-
import type {
|
|
2
|
+
import type { BaseProps, EndIconProps, LabelIconProps, StartIconProps } from '../interface';
|
|
3
3
|
export type DefaultOption = {
|
|
4
4
|
value: string | number;
|
|
5
5
|
label: string;
|
|
6
6
|
};
|
|
7
|
-
export type Props<T> =
|
|
7
|
+
export type Props<T> = BaseProps & LabelIconProps & StartIconProps & EndIconProps & {
|
|
8
8
|
id: string;
|
|
9
9
|
name?: string;
|
|
10
10
|
label?: string;
|
|
11
|
-
className?: string;
|
|
12
11
|
isDisabled?: boolean;
|
|
13
12
|
isLoading?: boolean;
|
|
14
13
|
hint?: string;
|
|
@@ -21,4 +20,4 @@ export type Props<T> = LabelIcon & StartIcon & EndIcon & {
|
|
|
21
20
|
valueExtractor?: (item: T) => string | number;
|
|
22
21
|
labelExtractor?: (item: T) => string;
|
|
23
22
|
};
|
|
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;
|
|
23
|
+
export default function DInputSelect<T extends object = DefaultOption>({ id, name, label, className, style, 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;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import type { BaseProps } from '../interface';
|
|
2
|
+
type Props = BaseProps & {
|
|
2
3
|
label?: string;
|
|
3
4
|
id: string;
|
|
4
5
|
name?: string;
|
|
@@ -6,6 +7,6 @@ interface Props {
|
|
|
6
7
|
isDisabled?: boolean;
|
|
7
8
|
isReadonly?: boolean;
|
|
8
9
|
onChange?: (isChecked: boolean) => void;
|
|
9
|
-
}
|
|
10
|
-
export default function DInputSwitch({ label, id, name, isChecked, isDisabled, isReadonly, onChange, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
};
|
|
11
|
+
export default function DInputSwitch({ label, id, name, isChecked, isDisabled, isReadonly, className, style, onChange, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
11
12
|
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { PropsWithChildren } from 'react';
|
|
2
|
+
import DListItem from './components/DListItem';
|
|
3
|
+
import type { BaseProps, BreakpointSize } from '../interface';
|
|
4
|
+
type Props = BaseProps & PropsWithChildren<{
|
|
5
|
+
isFlush?: boolean;
|
|
6
|
+
isNumbered?: boolean;
|
|
7
|
+
isHorizontal?: boolean;
|
|
8
|
+
horizontalBreakpoint?: BreakpointSize;
|
|
9
|
+
}>;
|
|
10
|
+
declare function DList({ children, className, style, isFlush, isNumbered, isHorizontal, horizontalBreakpoint, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare const _default: typeof DList & {
|
|
12
|
+
Item: typeof DListItem;
|
|
13
|
+
};
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { PropsWithChildren } from 'react';
|
|
2
|
+
import type { BaseProps } from '../../interface';
|
|
3
|
+
type Props = BaseProps & PropsWithChildren<{
|
|
4
|
+
isActive?: boolean;
|
|
5
|
+
isDisabled?: boolean;
|
|
6
|
+
theme?: string;
|
|
7
|
+
onClick?: () => void;
|
|
8
|
+
}>;
|
|
9
|
+
export default function DListItem({ children, className, style, isActive, isDisabled, theme, onClick, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ComponentProps } from 'react';
|
|
2
|
+
import { DListItem } from '../DList';
|
|
3
|
+
import type { BaseProps } from '../interface';
|
|
4
|
+
type Props = BaseProps & Omit<ComponentProps<typeof DListItem>, 'children'> & {
|
|
5
|
+
description: string;
|
|
6
|
+
date: string;
|
|
7
|
+
amount: number;
|
|
8
|
+
};
|
|
9
|
+
export default function DListItemMovement({ description, date, amount, className, style, ...props }: Props): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|