@mmb-digital/design-system-web 0.1.56 → 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.cjs.js +156 -146
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +17 -4
- package/dist/index.esm.js +207 -197
- 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
|
}
|
|
@@ -289,7 +298,6 @@ interface ModalProps {
|
|
|
289
298
|
readonly isOpen: boolean;
|
|
290
299
|
readonly modalRootElementId?: string | undefined;
|
|
291
300
|
readonly onClose: ModalOnClose;
|
|
292
|
-
readonly smallerWidth?: boolean | undefined;
|
|
293
301
|
readonly title?: ReactElement | string | undefined;
|
|
294
302
|
readonly widthType?: ModalWidthType | undefined;
|
|
295
303
|
}
|
|
@@ -485,6 +493,7 @@ type UseFormatAmountType = (param: UseFormatAmountTypeParam) => string;
|
|
|
485
493
|
declare const useFormatAmount: () => UseFormatAmountType;
|
|
486
494
|
|
|
487
495
|
interface DatePickerProps extends Omit<ReactDatePickerProps, 'calendarContainer' | 'customInput' | 'onChange' | 'renderCustomHeader' | 'showTimeSelect'> {
|
|
496
|
+
ariaLabelChevron?: string;
|
|
488
497
|
dateFormat?: string[] | string;
|
|
489
498
|
hasError?: boolean;
|
|
490
499
|
locale?: string;
|
|
@@ -635,7 +644,8 @@ declare const RadioButtonsHorizontal: React__default.FC<RadioButtonsHorizontalPr
|
|
|
635
644
|
|
|
636
645
|
interface InputBaseProps extends RefAttributes<HTMLInputElement> {
|
|
637
646
|
button?: ReactNode;
|
|
638
|
-
colorInput?:
|
|
647
|
+
colorInput?: Property.Color | undefined;
|
|
648
|
+
colorScheme?: ColorScheme;
|
|
639
649
|
disabled?: boolean;
|
|
640
650
|
halfWidth?: boolean;
|
|
641
651
|
hasError?: boolean;
|
|
@@ -645,8 +655,10 @@ 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
|
-
prefix?: ReactNode
|
|
660
|
+
prefix?: ReactNode;
|
|
661
|
+
prefixColor?: Property.Color;
|
|
650
662
|
size: InputSize;
|
|
651
663
|
suffix?: ReactNode | string;
|
|
652
664
|
textAlign?: InputTextAlign;
|
|
@@ -714,6 +726,7 @@ declare const PhoneInput: FC<PhoneInputProps>;
|
|
|
714
726
|
|
|
715
727
|
interface PhoneInputNextProps extends FieldWrapperValues, Omit<MaskedInputBaseProps, 'maskOptions'> {
|
|
716
728
|
maskOptions?: FactoryOpts;
|
|
729
|
+
prefixColor?: Property.Color;
|
|
717
730
|
}
|
|
718
731
|
declare const PhoneInputNext: React__default.ForwardRefExoticComponent<Omit<PhoneInputNextProps, "ref"> & React__default.RefAttributes<HTMLInputElement>>;
|
|
719
732
|
|