@mmb-digital/design-system-web 0.1.31 → 0.1.33

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.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import React, { ReactNode, FC, ReactElement, SyntheticEvent, RefAttributes, FocusEvent, ChangeEvent, PropsWithChildren, HTMLInputTypeAttribute, MouseEvent, HTMLAttributes } from 'react';
1
+ import React, { ReactNode, FC, ReactElement, PropsWithChildren, SyntheticEvent, RefAttributes, FocusEvent, ChangeEvent, HTMLInputTypeAttribute, MouseEvent, HTMLAttributes } from 'react';
2
2
  import { MessageDescriptor } from 'react-intl';
3
3
  import { PrimitiveType } from 'intl-messageformat';
4
4
  import { ReactDatePickerProps } from 'react-datepicker';
@@ -6,6 +6,26 @@ import { Property } from 'csstype';
6
6
  import { FieldValues, Control, FieldPath } from 'react-hook-form';
7
7
  import { Options, Props, SelectComponentsConfig, PropsValue, SingleValue as SingleValue$1, GroupBase } from 'react-select';
8
8
 
9
+ interface AccordionItemType {
10
+ content: ReactNode;
11
+ description?: ReactNode | string;
12
+ icon?: ReactNode;
13
+ id: string;
14
+ isOpen?: boolean;
15
+ label: ReactNode | string;
16
+ onClick?: () => void;
17
+ }
18
+ interface AccordionItemProps extends AccordionItemType {
19
+ }
20
+
21
+ interface AccordionProps {
22
+ data: AccordionItemType[];
23
+ }
24
+
25
+ declare const Accordion: FC<AccordionProps>;
26
+
27
+ declare const AccordionItem: FC<AccordionItemProps>;
28
+
9
29
  declare enum ButtonStyle {
10
30
  PRIMARY = "primary",
11
31
  SECONDARY = "secondary",
@@ -91,16 +111,26 @@ declare enum TableVariant {
91
111
  EXCHANGE = "exchange",
92
112
  SIMPLE = "simple"
93
113
  }
114
+ declare enum TextAlign$1 {
115
+ center = "center",
116
+ left = "left",
117
+ right = "right"
118
+ }
94
119
  interface TableProps {
95
120
  children: ReactNode;
96
121
  variant: TableVariant;
97
122
  }
123
+ interface TableCellProps extends PropsWithChildren {
124
+ delimiter?: boolean;
125
+ textAlign?: TextAlign$1;
126
+ variant: TableVariant;
127
+ }
98
128
 
99
129
  declare const Table: FC<TableProps>;
100
130
 
101
131
  declare const TableBody: FC<TableProps>;
102
132
 
103
- declare const TableData: FC<TableProps>;
133
+ declare const TableData: FC<TableCellProps>;
104
134
 
105
135
  declare const TableHead: FC<TableProps>;
106
136
 
@@ -421,6 +451,7 @@ interface DatePickerProps extends Omit<ReactDatePickerProps, 'calendarContainer'
421
451
  declare const DatePicker: (props: DatePickerProps) => React.JSX.Element;
422
452
 
423
453
  interface CheckboxBaseProps extends RefAttributes<HTMLInputElement> {
454
+ readonly checked?: boolean | undefined;
424
455
  readonly disabled?: boolean | undefined;
425
456
  readonly id?: string | undefined;
426
457
  readonly isError?: boolean | undefined;
@@ -1303,4 +1334,4 @@ declare const theme: {
1303
1334
  };
1304
1335
  };
1305
1336
 
1306
- export { 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, 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, Loader, LoaderOverlayBox, type LoaderOverlayBoxProps, type LoaderProps, LoaderSize, MediaType, Modal, type ModalOnClose, type ModalProps, PhoneInput, 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, 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, type TooltipParentElement, type TooltipParentElementProps, TooltipPlacement, TrailingTextInput, type TrailingTextInputProps, Typography, type TypographyProps, TypographyTextAlign, TypographyVariant, TypographyWeight, getColor, theme, useColorScheme, useCreateTooltipFloatingElement, useFormatAmount, useFormattedPercentage, useIsMessageDisplayable };
1337
+ export { Accordion, AccordionItem, type AccordionItemProps, 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, 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, Loader, LoaderOverlayBox, type LoaderOverlayBoxProps, type LoaderProps, LoaderSize, MediaType, Modal, type ModalOnClose, type ModalProps, PhoneInput, 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, 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, type TooltipParentElement, type TooltipParentElementProps, TooltipPlacement, TrailingTextInput, type TrailingTextInputProps, Typography, type TypographyProps, TypographyTextAlign, TypographyVariant, TypographyWeight, getColor, theme, useColorScheme, useCreateTooltipFloatingElement, useFormatAmount, useFormattedPercentage, useIsMessageDisplayable };