@mmb-digital/design-system-web 0.1.57 → 0.1.59
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 +177 -145
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +26 -1
- package/dist/index.esm.js +228 -196
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
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
|
|
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;
|
|
@@ -536,6 +546,18 @@ declare enum FieldWrapperLayout {
|
|
|
536
546
|
horizontal = "horizontal",
|
|
537
547
|
vertical = "vertical"
|
|
538
548
|
}
|
|
549
|
+
declare enum InputWeight {
|
|
550
|
+
THIN_100 = "thin",
|
|
551
|
+
EXTRA_LIGHT_200 = "extraLight",
|
|
552
|
+
LIGHT_300 = "light",
|
|
553
|
+
REGULAR_400 = "normal",
|
|
554
|
+
MEDIUM_500 = "medium",
|
|
555
|
+
SEMI_BOLD_600 = "semiBold",
|
|
556
|
+
BOLD_700 = "bold",
|
|
557
|
+
EXTRA_BOLD_800 = "extraBold",
|
|
558
|
+
HEAVY_900 = "heavy",
|
|
559
|
+
ULTRA_950 = "ultra"
|
|
560
|
+
}
|
|
539
561
|
interface FieldWrapperValues {
|
|
540
562
|
childrenWidth?: Property.Width;
|
|
541
563
|
colorScheme?: ColorScheme;
|
|
@@ -645,6 +667,7 @@ interface InputBaseProps extends RefAttributes<HTMLInputElement> {
|
|
|
645
667
|
name: string;
|
|
646
668
|
onBlur?: ((event: React__default.FocusEvent<HTMLInputElement>) => void) | undefined;
|
|
647
669
|
onChange?: ((event: React__default.ChangeEvent<HTMLInputElement>) => void) | undefined;
|
|
670
|
+
onFocus?: ((event: React__default.ChangeEvent<HTMLInputElement>) => void) | undefined;
|
|
648
671
|
placeholder?: string;
|
|
649
672
|
prefix?: ReactNode;
|
|
650
673
|
prefixColor?: Property.Color;
|
|
@@ -653,6 +676,7 @@ interface InputBaseProps extends RefAttributes<HTMLInputElement> {
|
|
|
653
676
|
textAlign?: InputTextAlign;
|
|
654
677
|
type?: HTMLInputTypeAttribute;
|
|
655
678
|
value?: string;
|
|
679
|
+
weight?: InputWeight;
|
|
656
680
|
}
|
|
657
681
|
|
|
658
682
|
declare const InputBase: FC<InputBaseProps>;
|
|
@@ -766,6 +790,7 @@ interface SliderInputProps extends RefAttributes<HTMLInputElement> {
|
|
|
766
790
|
stepType: SliderStepType;
|
|
767
791
|
steps: SliderSteps;
|
|
768
792
|
suffix?: ReactNode | string | undefined;
|
|
793
|
+
weight?: InputWeight;
|
|
769
794
|
}
|
|
770
795
|
|
|
771
796
|
declare const SliderInput: React__default.FC<SliderInputProps>;
|