@mmb-digital/design-system-web 0.1.79 → 0.1.81
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/index.cjs.js +201 -153
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +12 -7
- package/dist/index.esm.js +239 -191
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import React__default, { ReactNode, FC, PropsWithChildren, MouseEvent, ReactElement, RefObject, SyntheticEvent, RefAttributes, FocusEvent, ChangeEvent, HTMLInputTypeAttribute, ComponentType, HTMLAttributes } from 'react';
|
|
2
|
+
import React__default, { ReactNode, FC, PropsWithChildren, MouseEvent, ReactElement, HTMLProps, RefObject, SyntheticEvent, RefAttributes, FocusEvent, ChangeEvent, HTMLInputTypeAttribute, ComponentType, HTMLAttributes } from 'react';
|
|
3
3
|
import * as styled_components from 'styled-components';
|
|
4
4
|
import * as styled_components_dist_types from 'styled-components/dist/types';
|
|
5
5
|
import { MessageDescriptor } from 'react-intl';
|
|
@@ -201,6 +201,12 @@ declare enum TabsVariant {
|
|
|
201
201
|
secondary = "secondary",
|
|
202
202
|
tertiary = "tertiary"
|
|
203
203
|
}
|
|
204
|
+
declare enum TabsSize {
|
|
205
|
+
lg = "lg",
|
|
206
|
+
md = "md",
|
|
207
|
+
sm = "sm",
|
|
208
|
+
xs = "xs"
|
|
209
|
+
}
|
|
204
210
|
interface TabItemType {
|
|
205
211
|
icon?: ReactNode;
|
|
206
212
|
id: string;
|
|
@@ -210,6 +216,7 @@ interface TabItemType {
|
|
|
210
216
|
}
|
|
211
217
|
interface TabsType {
|
|
212
218
|
fullWidth?: boolean;
|
|
219
|
+
size?: TabsSize;
|
|
213
220
|
tabItems: TabItemType[];
|
|
214
221
|
variant: TabsVariant;
|
|
215
222
|
}
|
|
@@ -217,6 +224,7 @@ interface TabsType {
|
|
|
217
224
|
interface TabsItemProps extends TabItemType {
|
|
218
225
|
colorScheme: ColorScheme;
|
|
219
226
|
fullWidth?: boolean;
|
|
227
|
+
size?: TabsSize;
|
|
220
228
|
variant: TabsVariant;
|
|
221
229
|
}
|
|
222
230
|
|
|
@@ -316,10 +324,7 @@ declare enum ReasonForClosing {
|
|
|
316
324
|
|
|
317
325
|
declare const Modal: React__default.FC<ModalProps>;
|
|
318
326
|
|
|
319
|
-
|
|
320
|
-
ref: (node: Element | null) => void;
|
|
321
|
-
}
|
|
322
|
-
type TooltipParentElement = (props: TooltipParentElementProps) => ReactElement;
|
|
327
|
+
type TooltipRenderParent = (getParentProps: (userProps?: HTMLProps<Element>) => Record<string, unknown>) => ReactElement;
|
|
323
328
|
declare enum TooltipPlacement {
|
|
324
329
|
bottom = "bottom",
|
|
325
330
|
left = "left",
|
|
@@ -347,8 +352,8 @@ interface TooltipGeneralProps {
|
|
|
347
352
|
readonly floatingElement: TooltipFloatingElement;
|
|
348
353
|
readonly onClose?: (() => void) | undefined;
|
|
349
354
|
readonly onOpen?: (() => void) | undefined;
|
|
350
|
-
readonly parentElement: TooltipParentElement;
|
|
351
355
|
readonly placement?: TooltipPlacement | undefined;
|
|
356
|
+
readonly renderParent: TooltipRenderParent;
|
|
352
357
|
}
|
|
353
358
|
|
|
354
359
|
declare const TooltipGeneral: React__default.FC<TooltipGeneralProps>;
|
|
@@ -1486,4 +1491,4 @@ declare const theme: {
|
|
|
1486
1491
|
};
|
|
1487
1492
|
};
|
|
1488
1493
|
|
|
1489
|
-
export { Accordion, AccordionContent, AccordionItem, type AccordionItemProps, AccordionKeyValue, type AccordionProps, AsyncSelect, Button, type ButtonProps, ButtonSize, ButtonStyle, ButtonType, CalculatorResult, CalculatorResultBox, type CalculatorResultBoxModal, type CalculatorResultBoxProps, type CalculatorResultProps, Checkbox, type CheckboxLabel, CheckboxPosition, type CheckboxProps, type ChooseColor, ColorScheme, type ColorSchemeObject, DatePicker, type DatePickerProps, EmailInput, type EmailInputProps, ErrorBox, type ErrorBoxItem, type ErrorBoxProps, FieldWrapper, FieldWrapperLayout, type FieldWrapperValues, _default as FormattedAmount, FormattedHtmlMessage, type FormattedHtmlMessageProps, FormattedMessage, type FormattedMessageProps, type FormattedMessageTypes, _default$1 as FormattedPercentage, GapSize, type GetColor, IconProduct, IconProductSize, IconProductType, IconSystem, IconSystemSize, IconSystemType, TooltipInfoConditional as InfoConditional, Infobox, type InfoboxProps, InfoboxSize, InfoboxVariant, InputBase, type InputBaseProps, InputLabel, type InputLabelProps, InputSize, InputTextAlign, InputWeight, Loader, LoaderOverlayBox, type LoaderOverlayBoxProps, type LoaderProps, LoaderSize, MaskedInput, MaskedInputBase, type MaskedInputBaseProps, MaskedInputField, type MaskedInputProps, MediaType, Modal, type ModalOnClose, type ModalProps, ModalVerticalPosition, ModalWidthType, NumberInput, NumberInputField, type NumberInputProps, PhoneInput, PhoneInputField, PhoneInputNext, type PhoneInputNextProps, type PhoneInputProps, Radio, type RadioBaseWithLabelProps, RadioButton, type RadioButtonLabel, RadioButtonLayout, type RadioButtonProps, RadioButtonsHorizontal, type RadioButtonsHorizontalItem, type RadioButtonsHorizontalLabel, type RadioButtonsHorizontalProps, type RadioLabel, RadioPosition, ReasonForClosing, SearchInput, type SearchInputProps, Select, SelectBase, SelectField, type SelectOption, type SelectProps, type SingleValue, Slider, type SliderBreakpoint, SliderInput, type SliderInputLabel, type SliderInputMinMax, type SliderInputProps, SliderInputRoundingType, type SliderProps, SliderStepType, type SliderSteps, Stack, StackDirection, type StackProps, type TabItemType, Table, TableBody, TableData, TableHead, TableHeadData, TableRow, TableVariant, Tabs, TabsItem, type TabsProps, type TabsType, TabsVariant, TextArea, type TextAreaProps, TextInput, type TextInputProps, Toggle, type ToggleProps, type TooltipFloatingElement, TooltipGeneral, type TooltipGeneralProps, TooltipInfo, type TooltipInfoConditionalProps, TooltipInfoDisplayMethod, TooltipInfoDisplayableCheck, type TooltipInfoDisplayableCheckProps, type TooltipInfoProps,
|
|
1494
|
+
export { Accordion, AccordionContent, AccordionItem, type AccordionItemProps, AccordionKeyValue, type AccordionProps, AsyncSelect, Button, type ButtonProps, ButtonSize, ButtonStyle, ButtonType, CalculatorResult, CalculatorResultBox, type CalculatorResultBoxModal, type CalculatorResultBoxProps, type CalculatorResultProps, Checkbox, type CheckboxLabel, CheckboxPosition, type CheckboxProps, type ChooseColor, ColorScheme, type ColorSchemeObject, DatePicker, type DatePickerProps, EmailInput, type EmailInputProps, ErrorBox, type ErrorBoxItem, type ErrorBoxProps, FieldWrapper, FieldWrapperLayout, type FieldWrapperValues, _default as FormattedAmount, FormattedHtmlMessage, type FormattedHtmlMessageProps, FormattedMessage, type FormattedMessageProps, type FormattedMessageTypes, _default$1 as FormattedPercentage, GapSize, type GetColor, IconProduct, IconProductSize, IconProductType, IconSystem, IconSystemSize, IconSystemType, TooltipInfoConditional as InfoConditional, Infobox, type InfoboxProps, InfoboxSize, InfoboxVariant, InputBase, type InputBaseProps, InputLabel, type InputLabelProps, InputSize, InputTextAlign, InputWeight, Loader, LoaderOverlayBox, type LoaderOverlayBoxProps, type LoaderProps, LoaderSize, MaskedInput, MaskedInputBase, type MaskedInputBaseProps, MaskedInputField, type MaskedInputProps, MediaType, Modal, type ModalOnClose, type ModalProps, ModalVerticalPosition, ModalWidthType, NumberInput, NumberInputField, type NumberInputProps, PhoneInput, PhoneInputField, PhoneInputNext, type PhoneInputNextProps, type PhoneInputProps, Radio, type RadioBaseWithLabelProps, RadioButton, type RadioButtonLabel, RadioButtonLayout, type RadioButtonProps, RadioButtonsHorizontal, type RadioButtonsHorizontalItem, type RadioButtonsHorizontalLabel, type RadioButtonsHorizontalProps, type RadioLabel, RadioPosition, ReasonForClosing, SearchInput, type SearchInputProps, Select, SelectBase, SelectField, type SelectOption, type SelectProps, type SingleValue, Slider, type SliderBreakpoint, SliderInput, type SliderInputLabel, type SliderInputMinMax, type SliderInputProps, SliderInputRoundingType, type SliderProps, SliderStepType, type SliderSteps, Stack, StackDirection, type StackProps, type TabItemType, Table, TableBody, TableData, TableHead, TableHeadData, TableRow, TableVariant, Tabs, TabsItem, type TabsProps, TabsSize, type TabsType, TabsVariant, TextArea, type TextAreaProps, TextInput, type TextInputProps, Toggle, type ToggleProps, type TooltipFloatingElement, TooltipGeneral, type TooltipGeneralProps, TooltipInfo, type TooltipInfoConditionalProps, TooltipInfoDisplayMethod, TooltipInfoDisplayableCheck, type TooltipInfoDisplayableCheckProps, type TooltipInfoProps, TooltipPlacement, type TooltipRenderParent, TrailingTextInput, type TrailingTextInputProps, Typography, type TypographyProps, TypographyTextAlign, TypographyVariant, TypographyWeight, getColor, theme, useColorScheme, useCreateTooltipFloatingElement, useFormatAmount, useFormattedPercentage, useIsMessageDisplayable, withMaskedInputField };
|