@mmb-digital/design-system-web 0.1.57 → 0.1.58

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,5 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import React__default, { ReactNode, FC, PropsWithChildren, ReactElement, SyntheticEvent, RefAttributes, FocusEvent, ChangeEvent, HTMLInputTypeAttribute, ComponentType, MouseEvent, HTMLAttributes } from 'react';
3
+ import * as styled_components from 'styled-components';
4
+ import * as styled_components_dist_types from 'styled-components/dist/types';
3
5
  import { MessageDescriptor } from 'react-intl';
4
6
  import { PrimitiveType } from 'intl-messageformat';
5
7
  import { ReactDatePickerProps } from 'react-datepicker';
@@ -183,7 +185,13 @@ declare const TableData: FC<TableCellProps>;
183
185
 
184
186
  declare const TableHead: FC<TableProps>;
185
187
 
186
- declare const TableHeadData: FC<TableCellProps>;
188
+ declare const TableHeadDataStyled: styled_components.IStyledComponent<"web", styled_components_dist_types.Substitute<React.DetailedHTMLProps<React.ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, TableCellProps>>;
189
+
190
+ // eslint-disable-next-line @typescript-eslint/ban-types, @typescript-eslint/no-explicit-any
191
+ type ArgumentTypes<F extends Function> = F extends (...args: infer A) => any ? A : never;
192
+
193
+ type StyledType = ArgumentTypes<typeof TableHeadDataStyled>['0'];
194
+ declare const TableHeadData: FC<StyledType>;
187
195
 
188
196
  declare const TableRow: FC<TableProps>;
189
197
 
@@ -260,6 +268,7 @@ declare enum IconSystemType {
260
268
  minus = "minus",
261
269
  pin = "pin",
262
270
  plus = "plus",
271
+ refresh = "refresh",
263
272
  search = "search",
264
273
  unorderedList = "unorderedList"
265
274
  }
@@ -484,6 +493,7 @@ type UseFormatAmountType = (param: UseFormatAmountTypeParam) => string;
484
493
  declare const useFormatAmount: () => UseFormatAmountType;
485
494
 
486
495
  interface DatePickerProps extends Omit<ReactDatePickerProps, 'calendarContainer' | 'customInput' | 'onChange' | 'renderCustomHeader' | 'showTimeSelect'> {
496
+ ariaLabelChevron?: string;
487
497
  dateFormat?: string[] | string;
488
498
  hasError?: boolean;
489
499
  locale?: string;
@@ -645,6 +655,7 @@ interface InputBaseProps extends RefAttributes<HTMLInputElement> {
645
655
  name: string;
646
656
  onBlur?: ((event: React__default.FocusEvent<HTMLInputElement>) => void) | undefined;
647
657
  onChange?: ((event: React__default.ChangeEvent<HTMLInputElement>) => void) | undefined;
658
+ onFocus?: ((event: React__default.ChangeEvent<HTMLInputElement>) => void) | undefined;
648
659
  placeholder?: string;
649
660
  prefix?: ReactNode;
650
661
  prefixColor?: Property.Color;