@mmb-digital/design-system-web 0.1.12 → 0.1.13
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/components/calculator/calculatorResult/calculatorResult.types.d.ts +1 -0
- package/dist/components/datepicker/customHeader.d.ts +4 -0
- package/dist/components/datepicker/customHeader.styles.d.ts +3 -0
- package/dist/components/datepicker/datePicker.d.ts +0 -1
- package/dist/components/datepicker/datePicker.styles.d.ts +3 -0
- package/dist/components/datepicker/datePicker.types.d.ts +17 -2
- package/dist/components/datepicker/dateTimePicker.test.d.ts +1 -0
- package/dist/components/formElement/textfieldInput/index.d.ts +2 -1
- package/dist/components/formElement/textfieldInput/inputBase/inputBase.types.d.ts +1 -6
- package/dist/components/formElement/textfieldInput/textfieldInput.types.d.ts +5 -0
- package/dist/components/formatted/message/index.d.ts +1 -0
- package/dist/components/icon/system/iconSystem.types.d.ts +1 -0
- package/dist/components/icon/system/svg/bank/big/iconSystemBankBig.d.ts +4 -0
- package/dist/components/icon/system/svg/bank/small/iconSystemBankSmall.d.ts +4 -0
- package/dist/components/stack/index.d.ts +3 -0
- package/dist/components/stack/stack.d.ts +4 -0
- package/dist/components/stack/stack.styles.d.ts +8 -0
- package/dist/components/stack/stack.types.d.ts +21 -0
- package/dist/components/tabs/index.d.ts +2 -0
- package/dist/components/tabs/tabs/index.d.ts +2 -0
- package/dist/components/tabs/tabs/storiesData.d.ts +5 -0
- package/dist/components/tabs/tabs/tabs.d.ts +4 -0
- package/dist/components/tabs/tabs/tabs.styles.d.ts +3 -0
- package/dist/components/tabs/tabs.types.d.ts +28 -0
- package/dist/components/tabs/tabsItem/index.d.ts +2 -0
- package/dist/components/tabs/tabsItem/tabsItem.d.ts +4 -0
- package/dist/components/tabs/tabsItem/tabsItem.styles.d.ts +4 -0
- package/dist/components/tooltip/index.d.ts +3 -1
- package/dist/components/tooltip/infoConditional/index.d.ts +3 -0
- package/dist/components/tooltip/infoConditional/tooltipInfoConditional.d.ts +4 -0
- package/dist/components/tooltip/infoConditional/tooltipInfoConditional.types.d.ts +7 -0
- package/dist/components/tooltip/infoDisplayableCheck/index.d.ts +3 -0
- package/dist/components/tooltip/infoDisplayableCheck/tooltipInfoDisplayableCheck.d.ts +4 -0
- package/dist/components/tooltip/infoDisplayableCheck/tooltipInfoDisplayableCheck.test.d.ts +1 -0
- package/dist/components/tooltip/infoDisplayableCheck/tooltipInfoDisplayableCheck.types.d.ts +9 -0
- package/dist/components/tooltip/tooltip.types.d.ts +6 -2
- package/dist/const/html/entity.d.ts +1 -0
- package/dist/index.cjs.js +228 -80
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.esm.js +260 -112
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const Navigation: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>>;
|
|
3
|
+
export declare const NavigationContainer: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const DatePickerContainer: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
3
|
+
export declare const NonVisible: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { SyntheticEvent } from 'react';
|
|
2
|
-
|
|
1
|
+
import { ReactNode, SyntheticEvent } from 'react';
|
|
2
|
+
import { ReactDatePickerProps } from 'react-datepicker';
|
|
3
|
+
export interface DatePickerProps extends Omit<ReactDatePickerProps, 'calendarContainer' | 'customInput' | 'onChange' | 'renderCustomHeader' | 'showTimeSelect'> {
|
|
3
4
|
dateFormat?: string[] | string;
|
|
4
5
|
locale?: string;
|
|
5
6
|
maxDate?: Date;
|
|
@@ -8,3 +9,17 @@ export interface DatePickerProps {
|
|
|
8
9
|
onChange(date: Date | null, event: SyntheticEvent<never> | undefined): void;
|
|
9
10
|
startDate?: Date | null;
|
|
10
11
|
}
|
|
12
|
+
export interface DatePickerLocalizationProps {
|
|
13
|
+
ariaLabelClose: string;
|
|
14
|
+
chooseDayAriaLabelPrefix: string;
|
|
15
|
+
disabledDayAriaLabelPrefix: string;
|
|
16
|
+
nextMonthAriaLabel?: string | undefined;
|
|
17
|
+
nextMonthButtonLabel?: ReactNode | string | undefined;
|
|
18
|
+
nextYearAriaLabel?: string | undefined;
|
|
19
|
+
nextYearButtonLabel?: ReactNode | string | undefined;
|
|
20
|
+
previousMonthAriaLabel?: string | undefined;
|
|
21
|
+
previousMonthButtonLabel: string;
|
|
22
|
+
previousYearButtonLabel: string;
|
|
23
|
+
weekAriaLabelPrefix: string;
|
|
24
|
+
weekLabel: string;
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -3,5 +3,6 @@ export * from './inputLabel';
|
|
|
3
3
|
export * from './textfieldInput/emailInput';
|
|
4
4
|
export * from './textfieldInput/phoneInput';
|
|
5
5
|
export * from './textfieldInput/searchInput';
|
|
6
|
+
export * from './textfieldInput/sliderInput';
|
|
6
7
|
export * from './textfieldInput/trailingTextInput';
|
|
7
|
-
export
|
|
8
|
+
export { InputSize } from './textfieldInput.types';
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import React, { HTMLInputTypeAttribute, ReactNode, RefAttributes } from 'react';
|
|
2
|
-
import { InputSize } from '../textfieldInput.types';
|
|
3
|
-
export declare enum TextAlign {
|
|
4
|
-
center = "center",
|
|
5
|
-
left = "left",
|
|
6
|
-
right = "right"
|
|
7
|
-
}
|
|
2
|
+
import { InputSize, TextAlign } from '../textfieldInput.types';
|
|
8
3
|
export interface InputBaseProps extends RefAttributes<HTMLInputElement> {
|
|
9
4
|
button?: ReactNode;
|
|
10
5
|
colorInput?: string | undefined;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { GapSize, StackDirection } from './stack.types';
|
|
3
|
+
interface StackStyledProps {
|
|
4
|
+
direction: StackDirection;
|
|
5
|
+
gap: GapSize;
|
|
6
|
+
}
|
|
7
|
+
export declare const StackStyled: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StackStyledProps>>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export declare enum GapSize {
|
|
3
|
+
XXS = "xxs",
|
|
4
|
+
XS = "xs",
|
|
5
|
+
SM = "sm",
|
|
6
|
+
MD = "md",
|
|
7
|
+
LG = "lg",
|
|
8
|
+
XL = "xl",
|
|
9
|
+
XXL = "xxl",
|
|
10
|
+
XXXL = "xxxl",
|
|
11
|
+
XXXXL = "xxxxl",
|
|
12
|
+
XXXXXL = "xxxxxl"
|
|
13
|
+
}
|
|
14
|
+
export declare enum StackDirection {
|
|
15
|
+
column = "column",
|
|
16
|
+
row = "row"
|
|
17
|
+
}
|
|
18
|
+
export type StackProps = HTMLAttributes<HTMLDivElement> & {
|
|
19
|
+
direction?: StackDirection;
|
|
20
|
+
gap?: GapSize;
|
|
21
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { TabsItemProps } from '../tabs.types';
|
|
2
|
+
import { ColorScheme } from '@/util/colorScheme';
|
|
3
|
+
export declare const getDataPrimary: (colorScheme: ColorScheme) => TabsItemProps[];
|
|
4
|
+
export declare const getDataSecondary: (colorScheme: ColorScheme) => TabsItemProps[];
|
|
5
|
+
export declare const getDataTertiary: (colorScheme: ColorScheme) => TabsItemProps[];
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { WrapperProps } from '../tabs.types';
|
|
3
|
+
export declare const Wrapper: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, WrapperProps>>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ChooseColor, ColorScheme } from '@/util/colorScheme';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
export declare enum TabsVariant {
|
|
4
|
+
primary = "primary",
|
|
5
|
+
secondary = "secondary",
|
|
6
|
+
tertiary = "tertiary"
|
|
7
|
+
}
|
|
8
|
+
export interface TabsItemProps {
|
|
9
|
+
colorScheme: ColorScheme;
|
|
10
|
+
icon?: ReactNode;
|
|
11
|
+
id: string;
|
|
12
|
+
isActive?: boolean;
|
|
13
|
+
onClick?: () => void;
|
|
14
|
+
text?: ReactNode | string;
|
|
15
|
+
variant: TabsVariant;
|
|
16
|
+
}
|
|
17
|
+
export interface TabsProps {
|
|
18
|
+
colorScheme?: ColorScheme;
|
|
19
|
+
defaultActiveStep?: number;
|
|
20
|
+
steps: TabsItemProps[];
|
|
21
|
+
variant: TabsVariant;
|
|
22
|
+
}
|
|
23
|
+
export interface WrapperProps extends Partial<TabsProps> {
|
|
24
|
+
chooseColor: ChooseColor;
|
|
25
|
+
}
|
|
26
|
+
export interface ItemWrapperProps extends Partial<TabsItemProps> {
|
|
27
|
+
colorScheme: ColorScheme;
|
|
28
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ItemWrapperProps } from '../tabs.types';
|
|
3
|
+
export declare const BorderGradientWrapper: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ItemWrapperProps>>;
|
|
4
|
+
export declare const ItemWrapper: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ItemWrapperProps>>;
|
|
@@ -4,4 +4,6 @@ export { TooltipInfoProps } from './info/tooltipInfo.types';
|
|
|
4
4
|
import TooltipGeneral from './general/tooltipGeneral';
|
|
5
5
|
export { TooltipGeneral };
|
|
6
6
|
export { TooltipGeneralProps } from './general/tooltipGeneral.types';
|
|
7
|
-
export
|
|
7
|
+
export * from './infoDisplayableCheck/index';
|
|
8
|
+
export * from './infoConditional/index';
|
|
9
|
+
export { TooltipPlacement, TooltipParentElement, TooltipParentElementProps, TooltipFloatingElement, TooltipInfoDisplayMethod } from './tooltip.types';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TooltipFloatingElement, TooltipInfoDisplayMethod } from '../tooltip.types';
|
|
2
|
+
import { ColorScheme } from '@/util/colorScheme';
|
|
3
|
+
export interface TooltipInfoConditionalProps {
|
|
4
|
+
colorScheme?: ColorScheme;
|
|
5
|
+
displayMethod: TooltipInfoDisplayMethod;
|
|
6
|
+
floatingElement?: Partial<TooltipFloatingElement> | undefined;
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ColorScheme } from '@/util/colorScheme';
|
|
2
|
+
import { FormattedMessageTypes } from '@/components/formatted/message';
|
|
3
|
+
import { TooltipInfoDisplayMethod } from '../tooltip.types';
|
|
4
|
+
export interface TooltipInfoDisplayableCheckProps {
|
|
5
|
+
body: FormattedMessageTypes;
|
|
6
|
+
colorScheme?: ColorScheme;
|
|
7
|
+
displayMethod: TooltipInfoDisplayMethod;
|
|
8
|
+
title?: FormattedMessageTypes | undefined;
|
|
9
|
+
}
|
|
@@ -10,6 +10,10 @@ export declare enum TooltipPlacement {
|
|
|
10
10
|
top = "top"
|
|
11
11
|
}
|
|
12
12
|
export interface TooltipFloatingElement {
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
body: ReactElement | string;
|
|
14
|
+
title?: ReactElement | string | undefined;
|
|
15
|
+
}
|
|
16
|
+
export declare enum TooltipInfoDisplayMethod {
|
|
17
|
+
ONLY_TOOLTIP = "onlyTooltip",
|
|
18
|
+
WITH_NBSP = "withNbsp"
|
|
15
19
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const htmlNbsp = "\u00A0";
|