@dynamic-framework/ui-react 1.1.5 → 1.2.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/dist/css/dynamic-ui-all.css +1 -0
- package/dist/css/dynamic-ui-react.css +1 -1
- package/dist/css/dynamic-ui.css +1 -0
- package/dist/index.esm.js +192 -54
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +206 -54
- package/dist/index.js.map +1 -1
- package/dist/types/components/MBoxFile.d.ts +1 -1
- package/dist/types/components/MCard.d.ts +7 -0
- package/dist/types/components/MCardAccount.d.ts +13 -0
- package/dist/types/components/MCardBody.d.ts +6 -0
- package/dist/types/components/MCardFooter.d.ts +6 -0
- package/dist/types/components/MCardHeader.d.ts +6 -0
- package/dist/types/components/MCarousel.d.ts +7 -0
- package/dist/types/components/MCarouselSlide.d.ts +5 -0
- package/dist/types/components/MCollapse.d.ts +1 -1
- package/dist/types/components/MCurrencyText.d.ts +1 -2
- package/dist/types/components/MDatePicker.d.ts +20 -0
- package/dist/types/components/MDatePickerHeader.d.ts +19 -0
- package/dist/types/components/MDatePickerInput.d.ts +9 -0
- package/dist/types/components/MDatePickerTime.d.ts +9 -0
- package/dist/types/components/MFormikInput.d.ts +1 -1
- package/dist/types/components/MFormikInputCurrency.d.ts +7 -0
- package/dist/types/components/MFormikInputSelect.d.ts +1 -1
- package/dist/types/components/MInputCurrency.d.ts +3 -1
- package/dist/types/components/MList.d.ts +10 -0
- package/dist/types/components/MListItem.d.ts +10 -0
- package/dist/types/components/MListItemMovement.d.ts +10 -0
- package/dist/types/components/MMonthPicker.d.ts +7 -0
- package/dist/types/components/MPaginator.d.ts +12 -0
- package/dist/types/components/MPopover.d.ts +1 -1
- package/dist/types/components/MSkeleton.d.ts +1 -1
- package/dist/types/components/MStepper.d.ts +12 -0
- package/dist/types/components/MTabContent.d.ts +1 -1
- package/dist/types/components/MTabs.d.ts +1 -1
- package/dist/types/components/MToastContainer.d.ts +1 -1
- package/dist/types/components/MTooltip.d.ts +1 -1
- package/dist/types/components/banking/MCollapseIconText.d.ts +1 -1
- package/dist/types/components/banking/MPermissionGroup.d.ts +1 -2
- package/dist/types/components/banking/MPermissionItem.d.ts +1 -2
- package/dist/types/components/banking/MSummaryCard.d.ts +1 -1
- package/dist/types/components/index.d.ts +13 -1
- package/dist/types/contexts/LiquidContext.d.ts +1 -1
- package/dist/types/contexts/ModalContext.d.ts +1 -1
- package/dist/types/contexts/OffcanvasContext.d.ts +1 -1
- package/dist/types/stories/components/MCard.stories.d.ts +10 -0
- package/dist/types/stories/components/MCardAccount.stories.d.ts +6 -0
- package/dist/types/stories/components/MCarousel.stories.d.ts +9 -0
- package/dist/types/stories/components/MDatePicker.stories.d.ts +14 -0
- package/dist/types/stories/components/MFormikInputCurrency.stories.d.ts +8 -0
- package/dist/types/stories/components/MList.stories.d.ts +10 -0
- package/dist/types/stories/components/MListItem.stories.d.ts +9 -0
- package/dist/types/stories/components/MListItemMovement.stories.d.ts +7 -0
- package/dist/types/stories/components/MPaginator.stories.d.ts +10 -0
- package/dist/types/stories/components/MStepper.stories.d.ts +7 -0
- package/dist/types/stories/hooks/useFormatCurrency.stories.d.ts +1 -2
- package/dist/types/stories/hooks/useModalContext.stories.d.ts +1 -2
- package/dist/types/stories/hooks/useOffcanvasContext.stories.d.ts +1 -2
- package/dist/types/stories/hooks/useToast.stories.d.ts +1 -2
- package/dist/types/utils/index.d.ts +1 -0
- package/package.json +16 -13
- package/src/style/components/_+import.scss +7 -1
- package/src/style/components/_m-card-account.scss +15 -0
- package/src/style/components/_m-carousel.scss +44 -0
- package/src/style/components/_m-datepicker.scss +224 -0
- package/src/style/components/_m-monthpicker.scss +90 -0
- package/src/style/components/_m-paginator.scss +98 -0
- package/src/style/components/_m-stepper.scss +156 -0
- package/src/style/components/_m-timepicker.scss +37 -0
- package/src/style/dynamic-ui-all.scss +3 -0
- package/src/style/dynamic-ui.scss +1 -0
- package/dist/types/components/MCalendar.d.ts +0 -25
- package/dist/types/stories/components/MCalendar.stories.d.ts +0 -6
- package/src/style/abstracts/variables/_calendar.scss +0 -19
- package/src/style/components/_m-calendar.scss +0 -205
- /package/dist/types/stories/{patterns → components}/MBadge.stories.d.ts +0 -0
- /package/dist/types/stories/{patterns → components}/MChip.stories.d.ts +0 -0
- /package/src/style/{main.scss → dynamic-ui-react.scss} +0 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SplideProps } from '@splidejs/react-splide';
|
|
2
|
+
import { PropsWithChildren } from 'react';
|
|
3
|
+
declare type Props = SplideProps & PropsWithChildren<{
|
|
4
|
+
className?: string;
|
|
5
|
+
}>;
|
|
6
|
+
export default function MCarousel({ children, className, options, ...props }: Props): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { SplideSlide } from '@splidejs/react-splide';
|
|
3
|
+
declare type Props = React.ComponentProps<typeof SplideSlide>;
|
|
4
|
+
export default function MCarouselSlide({ className, ...props }: Props): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export {};
|
|
@@ -7,5 +7,5 @@ declare type Props = PropsWithChildren<{
|
|
|
7
7
|
defaultCollapsed?: boolean;
|
|
8
8
|
onChange?: (value: boolean) => void;
|
|
9
9
|
}>;
|
|
10
|
-
export default function MCollapse({ id, className, Component, hasSeparator, defaultCollapsed, onChange, children, }: Props): JSX.Element;
|
|
10
|
+
export default function MCollapse({ id, className, Component, hasSeparator, defaultCollapsed, onChange, children, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
export {};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
declare type Props = {
|
|
3
2
|
value: number;
|
|
4
3
|
className?: string;
|
|
5
4
|
};
|
|
6
|
-
export default function MCurrencyText({ value, className, }: Props): JSX.Element;
|
|
5
|
+
export default function MCurrencyText({ value, className, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
7
6
|
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ReactDatePickerProps } from 'react-datepicker';
|
|
2
|
+
import { ButtonVariant, ComponentSize } from '@dynamic-framework/ui';
|
|
3
|
+
declare type CalendarProps = Omit<ReactDatePickerProps, 'onChange' | 'selectsRange'> & {
|
|
4
|
+
date: string;
|
|
5
|
+
setDate: (value: Date | [Date | null, Date | null] | null) => void;
|
|
6
|
+
selectsRange?: boolean;
|
|
7
|
+
withMonthSelector?: 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
|
+
};
|
|
19
|
+
export default function MDatePicker({ setDate, date, selectsRange, withMonthSelector, inputLabel, inputIcon, inputId, timeId, timeLabel, headerDecreaseMonthIcon, headerIncreaseMonthIcon, headerIconSize, headerButtonVariant, headerButtonTheme, ...props }: CalendarProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
import { ButtonVariant, ComponentSize } from '@dynamic-framework/ui';
|
|
3
|
+
import { MButton } from './proxies';
|
|
4
|
+
export declare type MDatePickerHeaderProps = {
|
|
5
|
+
monthDate: Date;
|
|
6
|
+
decreaseMonth: () => void;
|
|
7
|
+
increaseMonth: () => void;
|
|
8
|
+
changeMonth: (monthNumber: number) => void;
|
|
9
|
+
changeYear: (yearNumber: number) => void;
|
|
10
|
+
prevMonthButtonDisabled: boolean;
|
|
11
|
+
nextMonthButtonDisabled: boolean;
|
|
12
|
+
withMonthSelector: boolean;
|
|
13
|
+
decreaseMonthIcon: string;
|
|
14
|
+
increaseMonthIcon: string;
|
|
15
|
+
iconSize: ComponentSize;
|
|
16
|
+
buttonVariant: ButtonVariant;
|
|
17
|
+
buttonTheme: string;
|
|
18
|
+
} & Omit<ComponentProps<typeof MButton>, 'iconStart' | 'onMClick' | 'isDisabled'>;
|
|
19
|
+
export default function MDatePickerHeader({ monthDate, changeMonth, changeYear, decreaseMonth, increaseMonth, prevMonthButtonDisabled, nextMonthButtonDisabled, withMonthSelector, decreaseMonthIcon, increaseMonthIcon, iconSize, buttonVariant, buttonTheme, }: MDatePickerHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
import { MInput } from './proxies';
|
|
3
|
+
export declare type InnerDatePickerProps = {
|
|
4
|
+
value?: string;
|
|
5
|
+
onClick?: () => void;
|
|
6
|
+
};
|
|
7
|
+
declare type MDatePickerInputProps = InnerDatePickerProps & Omit<ComponentProps<typeof MInput>, 'type' | 'isReadOnly' | 'onMIconEndClick' | 'value'>;
|
|
8
|
+
declare const _default: import("react").ForwardRefExoticComponent<Omit<MDatePickerInputProps, "ref"> & import("react").RefAttributes<unknown>>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ComponentProps, FormEventHandler } from 'react';
|
|
2
|
+
import { MInput } from './proxies';
|
|
3
|
+
export declare type InnerDatePickerTimeProps = {
|
|
4
|
+
value?: string | number;
|
|
5
|
+
onChange?: ((value: string) => void) & FormEventHandler<HTMLMInputElement>;
|
|
6
|
+
};
|
|
7
|
+
declare type MDatePickerTimeProps = InnerDatePickerTimeProps & Omit<ComponentProps<typeof MInput>, 'type' | 'isReadOnly' | 'onMChange' | 'value'>;
|
|
8
|
+
export default function MDatePickerTime({ value, onChange, mId, label, ...props }: MDatePickerTimeProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -3,5 +3,5 @@ import { MInput } from './proxies';
|
|
|
3
3
|
declare type Props = Omit<ComponentProps<typeof MInput>, 'name' | 'value'> & {
|
|
4
4
|
name: string;
|
|
5
5
|
};
|
|
6
|
-
export default function MFormikInput({ name, ...props }: Props): JSX.Element;
|
|
6
|
+
export default function MFormikInput({ name, hint, ...props }: Props): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ComponentProps } from 'react';
|
|
2
|
+
import MInputCurrency from './MInputCurrency';
|
|
3
|
+
declare type Props = Omit<ComponentProps<typeof MInputCurrency>, 'name' | 'value'> & {
|
|
4
|
+
name: string;
|
|
5
|
+
};
|
|
6
|
+
export default function MFormikInputCurrency({ name, hint, ...props }: Props): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -5,5 +5,5 @@ declare type Props = Omit<ComponentProps<typeof MInputSelect>, 'name' | 'labelEx
|
|
|
5
5
|
labelExtractor?: (item: any) => string;
|
|
6
6
|
valueExtractor?: (item: any) => string | number;
|
|
7
7
|
};
|
|
8
|
-
export default function MFormikInputSelect({ name, labelExtractor, valueExtractor, ...props }: Props): JSX.Element;
|
|
8
|
+
export default function MFormikInputSelect({ name, labelExtractor, valueExtractor, ...props }: Props): import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
export {};
|
|
@@ -2,6 +2,8 @@ import { ComponentProps } from 'react';
|
|
|
2
2
|
import { MInputCurrencyBase } from './proxies';
|
|
3
3
|
declare type Props = {
|
|
4
4
|
onChange: (value: number) => void;
|
|
5
|
+
onBlur?: (value: number) => void;
|
|
6
|
+
onFocus?: (value: number) => void;
|
|
5
7
|
} & Omit<ComponentProps<typeof MInputCurrencyBase>, 'currencyOptions' | 'onChange' | 'onMChange'>;
|
|
6
|
-
export default function MInputCurrency({ onChange, ...otherProps }: Props): JSX.Element;
|
|
8
|
+
export default function MInputCurrency({ onChange, onBlur, onFocus, ...otherProps }: Props): import("react/jsx-runtime").JSX.Element;
|
|
7
9
|
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
declare type Props = PropsWithChildren<{
|
|
3
|
+
className?: string;
|
|
4
|
+
isFlush?: boolean;
|
|
5
|
+
isNumbered?: boolean;
|
|
6
|
+
isHorizontal?: boolean;
|
|
7
|
+
horizontalBreakpoint?: 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
|
|
8
|
+
}>;
|
|
9
|
+
export default function MList({ children, className, isFlush, isNumbered, isHorizontal, horizontalBreakpoint, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
declare type Props = PropsWithChildren<{
|
|
3
|
+
className?: string;
|
|
4
|
+
isActive?: boolean;
|
|
5
|
+
isDisabled?: boolean;
|
|
6
|
+
theme?: string;
|
|
7
|
+
onMClick?: () => void;
|
|
8
|
+
}>;
|
|
9
|
+
export default function MListItem({ children, className, isActive, isDisabled, theme, onMClick, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
import MListItem from './MListItem';
|
|
3
|
+
declare type Props = Omit<ComponentProps<typeof MListItem>, 'children'> & {
|
|
4
|
+
description: string;
|
|
5
|
+
date: string;
|
|
6
|
+
amount: number;
|
|
7
|
+
classNameMovement?: string;
|
|
8
|
+
};
|
|
9
|
+
export default function MListItemMovement({ description, date, amount, classNameMovement, ...props }: Props): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ReactDatePickerProps } from 'react-datepicker';
|
|
2
|
+
declare type CalendarProps = Omit<ReactDatePickerProps, 'onChange' | 'selectsRange'> & {
|
|
3
|
+
date: string;
|
|
4
|
+
setDate: (value: Date | null) => void;
|
|
5
|
+
};
|
|
6
|
+
export default function MMonthPicker({ setDate, date, ...props }: CalendarProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ResponsivePaginationProps } from 'react-responsive-pagination';
|
|
2
|
+
export declare type MPaginatorProps = {
|
|
3
|
+
className?: ResponsivePaginationProps['extraClassName'];
|
|
4
|
+
current: ResponsivePaginationProps['current'];
|
|
5
|
+
onPageChange: ResponsivePaginationProps['onPageChange'];
|
|
6
|
+
total: ResponsivePaginationProps['total'];
|
|
7
|
+
previousLabel?: ResponsivePaginationProps['previousLabel'];
|
|
8
|
+
nextLabel?: ResponsivePaginationProps['nextLabel'];
|
|
9
|
+
showArrows?: ResponsivePaginationProps['renderNav'];
|
|
10
|
+
maxWidth?: ResponsivePaginationProps['maxWidth'];
|
|
11
|
+
};
|
|
12
|
+
export default function MPaginator({ className, nextLabel, previousLabel, showArrows, ...props }: MPaginatorProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -4,5 +4,5 @@ declare type Props = PropsWithChildren<{
|
|
|
4
4
|
isOpen: boolean;
|
|
5
5
|
setIsOpen?: (isOpen: boolean) => void;
|
|
6
6
|
}>;
|
|
7
|
-
export default function MPopover({ children, renderComponent, isOpen, setIsOpen, }: Props): JSX.Element;
|
|
7
|
+
export default function MPopover({ children, renderComponent, isOpen, setIsOpen, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export {};
|
|
@@ -5,4 +5,4 @@ export declare type Props = PropsWithChildren<{
|
|
|
5
5
|
backgroundColor?: string;
|
|
6
6
|
foregroundColor?: string;
|
|
7
7
|
}>;
|
|
8
|
-
export default function MSkeleton({ speed, viewBox, backgroundColor, foregroundColor, children, }: Props): JSX.Element;
|
|
8
|
+
export default function MSkeleton({ speed, viewBox, backgroundColor, foregroundColor, children, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare type Step = {
|
|
2
|
+
label: string;
|
|
3
|
+
value: number;
|
|
4
|
+
};
|
|
5
|
+
declare type Props = {
|
|
6
|
+
options: Array<Step>;
|
|
7
|
+
currentStep: number;
|
|
8
|
+
successIcon?: string;
|
|
9
|
+
isVertical?: boolean;
|
|
10
|
+
};
|
|
11
|
+
export default function MStepper({ options, currentStep, successIcon, isVertical, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -2,5 +2,5 @@ import type { PropsWithChildren } from 'react';
|
|
|
2
2
|
declare type Props = PropsWithChildren<{
|
|
3
3
|
tab: string;
|
|
4
4
|
}>;
|
|
5
|
-
export default function MTabContent({ tab, children }: Props): JSX.Element | null;
|
|
5
|
+
export default function MTabContent({ tab, children }: Props): import("react/jsx-runtime").JSX.Element | null;
|
|
6
6
|
export {};
|
|
@@ -14,6 +14,6 @@ declare type Props = PropsWithChildren<{
|
|
|
14
14
|
declare type TabContextState = {
|
|
15
15
|
isSelected: (tab: TabOption['tab']) => boolean;
|
|
16
16
|
};
|
|
17
|
-
export default function MTabs({ children, defaultSelected, onChange, options, className, isVertical, }: Props): JSX.Element;
|
|
17
|
+
export default function MTabs({ children, defaultSelected, onChange, options, className, isVertical, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
18
18
|
export declare function useTabContext(): TabContextState;
|
|
19
19
|
export {};
|
|
@@ -8,5 +8,5 @@ declare type Props = {
|
|
|
8
8
|
};
|
|
9
9
|
position?: ToastPosition;
|
|
10
10
|
};
|
|
11
|
-
export default function MToastContainer({ style, position, }: Props): JSX.Element;
|
|
11
|
+
export default function MToastContainer({ style, position, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
export {};
|
|
@@ -14,4 +14,4 @@ export declare type MTooltipProps = PropsWithChildren<{
|
|
|
14
14
|
placement?: Placement;
|
|
15
15
|
Component: ReactNode;
|
|
16
16
|
}>;
|
|
17
|
-
export default function MTooltip({ classNameContainer, className, offSet, padding, withFocus, withClick, withHover, isOpen, placement, size, Component, children, }: MTooltipProps): JSX.Element;
|
|
17
|
+
export default function MTooltip({ classNameContainer, className, offSet, padding, withFocus, withClick, withHover, isOpen, placement, size, Component, children, }: MTooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -19,5 +19,5 @@ declare type Props = PropsWithChildren<{
|
|
|
19
19
|
iconFamilyClass?: string;
|
|
20
20
|
iconFamilyPrefix?: string;
|
|
21
21
|
}>;
|
|
22
|
-
export default function MCollapseIconText({ children, icon, iconSize, iconTheme, title, iconFamilyClass, iconFamilyPrefix, }: Props): JSX.Element;
|
|
22
|
+
export default function MCollapseIconText({ children, icon, iconSize, iconTheme, title, iconFamilyClass, iconFamilyPrefix, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
23
23
|
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { PermissionItemType } from './interface';
|
|
3
2
|
declare type Props = {
|
|
4
3
|
title: string;
|
|
@@ -8,5 +7,5 @@ declare type Props = {
|
|
|
8
7
|
onChangePermission: (permission: PermissionItemType, isChecked: boolean) => void;
|
|
9
8
|
onCustomAction?: (permission: PermissionItemType) => void;
|
|
10
9
|
};
|
|
11
|
-
export default function MPermissionGroup({ title, description, permissionState, permissionList, onChangePermission, onCustomAction, }: Props): JSX.Element;
|
|
10
|
+
export default function MPermissionGroup({ title, description, permissionState, permissionList, onChangePermission, onCustomAction, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
12
11
|
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { PermissionItemType } from './interface';
|
|
3
2
|
declare type Props = {
|
|
4
3
|
permission: PermissionItemType;
|
|
@@ -6,5 +5,5 @@ declare type Props = {
|
|
|
6
5
|
onChange: (isChecked: boolean) => void;
|
|
7
6
|
onAction?: () => void;
|
|
8
7
|
};
|
|
9
|
-
export default function MPermissionItem({ permission, permissionState, onChange, onAction, }: Props): JSX.Element;
|
|
8
|
+
export default function MPermissionItem({ permission, permissionState, onChange, onAction, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
10
9
|
export {};
|
|
@@ -8,5 +8,5 @@ declare type Props = {
|
|
|
8
8
|
iconTheme: string;
|
|
9
9
|
Summary: ReactElement<typeof Trans> | string;
|
|
10
10
|
};
|
|
11
|
-
export default function MSummaryCard({ title, description, icon, iconSize, iconTheme, Summary, }: Props): JSX.Element;
|
|
11
|
+
export default function MSummaryCard({ title, description, icon, iconSize, iconTheme, Summary, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * from './proxies';
|
|
2
2
|
export * from './banking';
|
|
3
|
-
export { default as
|
|
3
|
+
export { default as MDatePicker } from './MDatePicker';
|
|
4
4
|
export { default as MSkeleton } from './MSkeleton';
|
|
5
5
|
export { default as MTabs, useTabContext } from './MTabs';
|
|
6
6
|
export { default as MTabContent } from './MTabContent';
|
|
@@ -13,4 +13,16 @@ export { default as MTooltip } from './MTooltip';
|
|
|
13
13
|
export { default as MCollapse } from './MCollapse';
|
|
14
14
|
export { default as MInputCurrency } from './MInputCurrency';
|
|
15
15
|
export { default as MBoxFile } from './MBoxFile';
|
|
16
|
+
export { default as MCarousel } from './MCarousel';
|
|
17
|
+
export { default as MCarouselSlide } from './MCarouselSlide';
|
|
18
|
+
export { default as MList } from './MList';
|
|
19
|
+
export { default as MListItem } from './MListItem';
|
|
20
|
+
export { default as MListItemMovement } from './MListItemMovement';
|
|
21
|
+
export { default as MStepper } from './MStepper';
|
|
22
|
+
export { default as MFormikInputCurrency } from './MFormikInputCurrency';
|
|
23
|
+
export { default as MCardAccount } from './MCardAccount';
|
|
24
|
+
export { default as MCard } from './MCard';
|
|
25
|
+
export { default as MCardHeader } from './MCardHeader';
|
|
26
|
+
export { default as MCardBody } from './MCardBody';
|
|
27
|
+
export { default as MCardFooter } from './MCardFooter';
|
|
16
28
|
export type { TabOption } from './MTabs';
|
|
@@ -9,6 +9,6 @@ interface LiquidContextInterface {
|
|
|
9
9
|
};
|
|
10
10
|
}
|
|
11
11
|
export declare const LiquidContext: import("react").Context<LiquidContextInterface>;
|
|
12
|
-
export declare function LiquidContextProvider({ children, }: PropsWithChildren): JSX.Element;
|
|
12
|
+
export declare function LiquidContextProvider({ children, }: PropsWithChildren): import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
export declare function useLiquidContext(): LiquidContextInterface;
|
|
14
14
|
export default LiquidContext;
|
|
@@ -39,6 +39,6 @@ export declare type ModalProps = {
|
|
|
39
39
|
closeModal: CloseModalFunction;
|
|
40
40
|
};
|
|
41
41
|
export declare const ModalContext: import("react").Context<ModalContextType | undefined>;
|
|
42
|
-
export declare function ModalContextProvider({ portalName, children, availableModals, }: Props): JSX.Element;
|
|
42
|
+
export declare function ModalContextProvider({ portalName, children, availableModals, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
43
43
|
export declare function useModalContext(): ModalContextType;
|
|
44
44
|
export {};
|
|
@@ -39,6 +39,6 @@ export declare type OffcanvasProps = {
|
|
|
39
39
|
closeOffcanvas: CloseOffcanvasFunction;
|
|
40
40
|
};
|
|
41
41
|
export declare const OffcanvasContext: import("react").Context<OffcanvasContextType | undefined>;
|
|
42
|
-
export declare function OffcanvasContextProvider({ portalName, children, availableOffcanvas, }: Props): JSX.Element;
|
|
42
|
+
export declare function OffcanvasContextProvider({ portalName, children, availableOffcanvas, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
43
43
|
export declare function useOffcanvasContext(): OffcanvasContextType;
|
|
44
44
|
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { MCard } from '../../components';
|
|
3
|
+
declare const config: Meta<typeof MCard>;
|
|
4
|
+
export default config;
|
|
5
|
+
declare type Story = StoryObj<typeof MCard>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const HeaderAndBody: Story;
|
|
8
|
+
export declare const OnlyBody: Story;
|
|
9
|
+
export declare const TopImage: Story;
|
|
10
|
+
export declare const Horizontal: Story;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import MCardAccount from '../../components/MCardAccount';
|
|
3
|
+
declare const config: Meta<typeof MCardAccount>;
|
|
4
|
+
export default config;
|
|
5
|
+
declare type Story = StoryObj<typeof MCardAccount>;
|
|
6
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { MCarousel } from '../../components';
|
|
3
|
+
declare const config: Meta<typeof MCarousel>;
|
|
4
|
+
export default config;
|
|
5
|
+
declare type Story = StoryObj<typeof MCarousel>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const TwoPerPage: Story;
|
|
8
|
+
export declare const WithBreakpoints: Story;
|
|
9
|
+
export declare const AutoplayAndLoop: Story;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { MDatePicker } from '../../components';
|
|
3
|
+
declare const config: Meta<typeof MDatePicker>;
|
|
4
|
+
export default config;
|
|
5
|
+
declare type Story = StoryObj<typeof MDatePicker>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const DefaultWithMonth: Story;
|
|
8
|
+
export declare const Inline: Story;
|
|
9
|
+
export declare const WithTime: Story;
|
|
10
|
+
export declare const WithMonthSelector: Story;
|
|
11
|
+
export declare const MonthPicker: Story;
|
|
12
|
+
export declare const DateRange: Story;
|
|
13
|
+
export declare const DateRangeWithMonthSelector: Story;
|
|
14
|
+
export declare const OnPortal: Story;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { MFormikInputCurrency } from '../../components';
|
|
3
|
+
declare const config: Meta<typeof MFormikInputCurrency>;
|
|
4
|
+
export default config;
|
|
5
|
+
declare type Story = StoryObj<typeof MFormikInputCurrency>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Empty: Story;
|
|
8
|
+
export declare const WithErrors: Story;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { MList } from '../../components';
|
|
3
|
+
declare const config: Meta<typeof MList>;
|
|
4
|
+
export default config;
|
|
5
|
+
declare type Story = StoryObj<typeof MList>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Flush: Story;
|
|
8
|
+
export declare const Numbered: Story;
|
|
9
|
+
export declare const Horizontal: Story;
|
|
10
|
+
export declare const HorizontalWithBreakpoint: Story;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { MListItem } from '../../components';
|
|
3
|
+
declare const config: Meta<typeof MListItem>;
|
|
4
|
+
export default config;
|
|
5
|
+
declare type Story = StoryObj<typeof MListItem>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Active: Story;
|
|
8
|
+
export declare const Disabled: Story;
|
|
9
|
+
export declare const WithTheme: Story;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { MListItemMovement } from '../../components';
|
|
3
|
+
declare const config: Meta<typeof MListItemMovement>;
|
|
4
|
+
export default config;
|
|
5
|
+
declare type Story = StoryObj<typeof MListItemMovement>;
|
|
6
|
+
export declare const Movement: Story;
|
|
7
|
+
export declare const Movements: Story;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import MPaginator from '../../components/MPaginator';
|
|
3
|
+
declare const meta: Meta<typeof MPaginator>;
|
|
4
|
+
export default meta;
|
|
5
|
+
declare type Story = StoryObj<typeof MPaginator>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const LabelArrows: Story;
|
|
8
|
+
export declare const NoArrows: Story;
|
|
9
|
+
export declare const CustomCurrentPage: Story;
|
|
10
|
+
export declare const CustomMaxWidth: Story;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { MStepper } from '../../components';
|
|
3
|
+
declare const config: Meta<typeof MStepper>;
|
|
4
|
+
export default config;
|
|
5
|
+
declare type Story = StoryObj<typeof MStepper>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Vertical: Story;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { Meta, StoryObj } from '@storybook/react';
|
|
3
|
-
declare const Example: () => JSX.Element;
|
|
2
|
+
declare const Example: () => import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
declare const config: Meta<typeof Example>;
|
|
5
4
|
export default config;
|
|
6
5
|
declare type Story = StoryObj<typeof Example>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { Meta, StoryObj } from '@storybook/react';
|
|
3
|
-
declare const Example: () => JSX.Element;
|
|
2
|
+
declare const Example: () => import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
declare const config: Meta<typeof Example>;
|
|
5
4
|
export default config;
|
|
6
5
|
declare type Story = StoryObj<typeof Example>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { Meta, StoryObj } from '@storybook/react';
|
|
3
2
|
import { MOffcanvas } from '../../components';
|
|
4
|
-
declare const Example: () => JSX.Element;
|
|
3
|
+
declare const Example: () => import("react/jsx-runtime").JSX.Element;
|
|
5
4
|
declare const config: Meta<typeof Example>;
|
|
6
5
|
export default config;
|
|
7
6
|
declare type Story = StoryObj<typeof MOffcanvas>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { Meta } from '@storybook/react';
|
|
3
2
|
import type { AlertType } from '@dynamic-framework/ui';
|
|
4
3
|
declare type Props = {
|
|
@@ -6,7 +5,7 @@ declare type Props = {
|
|
|
6
5
|
type: AlertType;
|
|
7
6
|
showClose: boolean;
|
|
8
7
|
};
|
|
9
|
-
declare const Example: ({ message, type, showClose }: Props) => JSX.Element;
|
|
8
|
+
declare const Example: ({ message, type, showClose }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
10
9
|
declare const config: Meta<typeof Example>;
|
|
11
10
|
export default config;
|
|
12
11
|
export declare const useToast: {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-framework/ui-react",
|
|
3
3
|
"sideEffects": false,
|
|
4
|
-
"version": "1.1
|
|
4
|
+
"version": "1.2.1",
|
|
5
5
|
"description": "React Dynamic Framework",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
"build": "pnpm build:react && pnpm build:style",
|
|
26
26
|
"build:react": "rimraf dist && tsc -p . && rollup -c rollup.config.js",
|
|
27
27
|
"build:react:watch": "tsc -p . && rollup -c rollup.config.js",
|
|
28
|
-
"build:scss": "sass --load-path=node_modules --no-source-map --style=compressed src/style
|
|
29
|
-
"build:scss:watch": "sass --load-path=node_modules -w src/style
|
|
30
|
-
"build:autoprefixer": "postcss dist/css
|
|
28
|
+
"build:scss": "sass --load-path=node_modules --no-source-map --style=compressed src/style/:dist/css",
|
|
29
|
+
"build:scss:watch": "sass --load-path=node_modules -w src/style:dist/css",
|
|
30
|
+
"build:autoprefixer": "postcss dist/css/*.css --replace --use autoprefixer --no-map",
|
|
31
31
|
"build:style": "pnpm build:scss && pnpm build:autoprefixer",
|
|
32
32
|
"clean": "rimraf dist",
|
|
33
33
|
"compile": "tsc -p . && rollup -c rollup.config.js",
|
|
@@ -45,21 +45,25 @@
|
|
|
45
45
|
"src/style"
|
|
46
46
|
],
|
|
47
47
|
"dependencies": {
|
|
48
|
+
"@dynamic-framework/ui": "^1.3.1",
|
|
48
49
|
"@floating-ui/react": "^0.24.1",
|
|
50
|
+
"@splidejs/react-splide": "^0.7.12",
|
|
51
|
+
"@splidejs/splide": "^4.1.4",
|
|
49
52
|
"axios": "^1.1.2",
|
|
50
53
|
"classnames": "^2.3.2",
|
|
51
54
|
"date-fns": "^2.29.3",
|
|
52
55
|
"i18next": "~21.9.0",
|
|
53
56
|
"react-content-loader": "~6.2.0",
|
|
54
57
|
"react-datepicker": "~4.8.0",
|
|
55
|
-
"react-dropzone": "^14.2.3"
|
|
58
|
+
"react-dropzone": "^14.2.3",
|
|
59
|
+
"react-responsive-pagination": "^2.2.1",
|
|
60
|
+
"yup": "^1.2.0"
|
|
56
61
|
},
|
|
57
62
|
"devDependencies": {
|
|
58
63
|
"@babel/core": "^7.19.3",
|
|
59
64
|
"@babel/preset-env": "^7.20.2",
|
|
60
65
|
"@babel/preset-react": "^7.18.6",
|
|
61
66
|
"@babel/preset-typescript": "^7.21.0",
|
|
62
|
-
"@dynamic-framework/ui": "^1.2.0",
|
|
63
67
|
"@mdx-js/react": "^2.3.0",
|
|
64
68
|
"@rollup/plugin-node-resolve": "^13.3.0",
|
|
65
69
|
"@storybook/addon-actions": "7.0.6",
|
|
@@ -76,9 +80,9 @@
|
|
|
76
80
|
"@testing-library/react": "^13.4.0",
|
|
77
81
|
"@types/jest": "29.1.2",
|
|
78
82
|
"@types/lodash.camelcase": "^4.3.7",
|
|
79
|
-
"@types/luxon": "~3.
|
|
83
|
+
"@types/luxon": "~3.2.1",
|
|
80
84
|
"@types/node": "^15.12.2",
|
|
81
|
-
"@types/react": "^18.
|
|
85
|
+
"@types/react": "^18.2.19",
|
|
82
86
|
"@types/react-datepicker": "~4.8.0",
|
|
83
87
|
"@types/react-dom": "^18.0.3",
|
|
84
88
|
"@typescript-eslint/eslint-plugin": "^5.13.0",
|
|
@@ -99,10 +103,10 @@
|
|
|
99
103
|
"jest-cli": "^29.1.2",
|
|
100
104
|
"jest-environment-jsdom": "^29.1.2",
|
|
101
105
|
"lint-staged": "^12.4.1",
|
|
102
|
-
"luxon": "~3.
|
|
106
|
+
"luxon": "~3.2.1",
|
|
103
107
|
"postcss-cli": "^10.1.0",
|
|
104
|
-
"react": "^18.
|
|
105
|
-
"react-dom": "^18.
|
|
108
|
+
"react": "^18.2.0",
|
|
109
|
+
"react-dom": "^18.2.0",
|
|
106
110
|
"react-i18next": "~11.18.3",
|
|
107
111
|
"react-toastify": "~9.0.8",
|
|
108
112
|
"rimraf": "^2.6.3",
|
|
@@ -116,7 +120,6 @@
|
|
|
116
120
|
"typescript": "^4.6.4"
|
|
117
121
|
},
|
|
118
122
|
"peerDependencies": {
|
|
119
|
-
"@dynamic-framework/ui": "*",
|
|
120
123
|
"formik": "^2.2.9",
|
|
121
124
|
"html2canvas": "^1.4.1",
|
|
122
125
|
"luxon": "~3.0.3",
|
|
@@ -130,5 +133,5 @@
|
|
|
130
133
|
"@dynamic-framework/ui"
|
|
131
134
|
]
|
|
132
135
|
},
|
|
133
|
-
"gitHead": "
|
|
136
|
+
"gitHead": "e14dc1c7b3beee8f1b6dc6818bf8e92181c23e99"
|
|
134
137
|
}
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
@import "m-collapse";
|
|
2
2
|
@import "m-collapse-icon-text";
|
|
3
|
-
@import "m-
|
|
3
|
+
@import "m-datepicker";
|
|
4
|
+
@import "m-timepicker";
|
|
5
|
+
@import "m-monthpicker";
|
|
4
6
|
@import "m-tabs";
|
|
5
7
|
@import "m-popover";
|
|
6
8
|
@import "m-box-file";
|
|
9
|
+
@import "m-carousel";
|
|
10
|
+
@import "m-stepper";
|
|
11
|
+
@import "m-paginator";
|
|
12
|
+
@import "m-card-account";
|