@goodhood-web/ui 3.0.0-development.56 → 3.0.0-development.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/index.d.ts +2 -1
- package/index.js +122 -118
- package/index.mjs +20380 -13343
- package/lib/Atoms/Buttons/Button/Button.types.d.ts +3 -0
- package/lib/Atoms/Buttons/IconButton/IconButton.types.d.ts +5 -5
- package/lib/Atoms/Inputs/DateTimeInput/DateInput/DateInput.d.ts +3 -0
- package/lib/Atoms/Inputs/DateTimeInput/DateInput/DateInput.types.d.ts +9 -0
- package/lib/Atoms/Inputs/DateTimeInput/DateInput/components/CustomHeader.d.ts +3 -0
- package/lib/Atoms/Inputs/DateTimeInput/DateInput/util.d.ts +1 -0
- package/lib/Atoms/Inputs/DateTimeInput/DateTimeInput.d.ts +3 -0
- package/lib/Atoms/Inputs/DateTimeInput/DateTimeInput.types.d.ts +7 -0
- package/lib/Atoms/Inputs/DateTimeInput/TimeInput/TimeInput.d.ts +3 -0
- package/lib/Atoms/Inputs/DateTimeInput/TimeInput/TimeInput.types.d.ts +10 -0
- package/lib/Atoms/Inputs/TextInput/TextInput.d.ts +1 -1
- package/lib/Atoms/Inputs/TextInput/TextInput.types.d.ts +10 -2
- package/lib/Base/Typography/Typography.types.d.ts +1 -0
- package/package.json +1 -1
- package/style.css +1 -1
|
@@ -3,6 +3,9 @@ import { AriaRole, ForwardedRef, MouseEvent, ReactElement, ReactNode } from 'rea
|
|
|
3
3
|
import { IconProps } from '../../../Base/Icon/Icon.types';
|
|
4
4
|
interface CommonProps {
|
|
5
5
|
ariaDescribedBy?: string;
|
|
6
|
+
ariaDisabled?: boolean;
|
|
7
|
+
ariaExpanded?: boolean;
|
|
8
|
+
ariaHaspopup?: boolean;
|
|
6
9
|
ariaLabel?: string;
|
|
7
10
|
ariaLabelledBy?: string;
|
|
8
11
|
className?: string;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Icon16, Icon24, Icon32 } from '../../../Base/Icon/Icon.types';
|
|
2
2
|
import { ButtonProps } from '../Button/Button.types';
|
|
3
|
-
type BaseIconButtonProps = Omit<ButtonProps, 'children' | 'ref' | 'className'> &
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
type BaseIconButtonProps = Omit<ButtonProps, 'children' | 'ref' | 'className'> & {
|
|
4
|
+
ariaExpanded?: boolean;
|
|
5
|
+
ariaHaspopup?: boolean;
|
|
6
|
+
ariaLabel?: string;
|
|
7
|
+
ariaLabelledBy?: string;
|
|
8
8
|
className?: string;
|
|
9
9
|
iconClassName?: string;
|
|
10
10
|
loading?: boolean;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TextInputProps } from '../../TextInput/TextInput.types';
|
|
2
|
+
export default interface DateInputProps {
|
|
3
|
+
dateFormat?: 'dd. MMMM' | 'dd. MMMM YYYY' | 'dd.MM.' | 'dd.MM.YY' | 'dd.MM.YYYY';
|
|
4
|
+
label: string;
|
|
5
|
+
minDate?: Date;
|
|
6
|
+
onChange?: (date: Date) => void;
|
|
7
|
+
size?: TextInputProps['size'];
|
|
8
|
+
withPortal?: boolean;
|
|
9
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ReactDatePickerCustomHeaderProps } from 'react-datepicker';
|
|
2
|
+
declare const CustomHeader: ({ decreaseMonth, increaseMonth, monthDate, prevMonthButtonDisabled, }: ReactDatePickerCustomHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default CustomHeader;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const addKeyboardNavigation: (event: React.KeyboardEvent<HTMLElement>) => void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { default as DateInputProps } from './DateInput/DateInput.types';
|
|
2
|
+
import { default as TimeInputProps } from './TimeInput/TimeInput.types';
|
|
3
|
+
type CommonProps = {
|
|
4
|
+
type: 'time' | 'date';
|
|
5
|
+
};
|
|
6
|
+
export type DateTimeInputProps = (CommonProps & DateInputProps) | (CommonProps & TimeInputProps);
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { NearestMinutes } from 'date-fns';
|
|
2
|
+
import { TextInputProps } from '../../TextInput/TextInput.types';
|
|
3
|
+
export default interface TimeInputProps {
|
|
4
|
+
interval?: Extract<NearestMinutes, 15 | 30>;
|
|
5
|
+
label: string;
|
|
6
|
+
minDate?: Date;
|
|
7
|
+
onChange?: (date: Date) => void;
|
|
8
|
+
size?: TextInputProps['size'];
|
|
9
|
+
withPortal?: boolean;
|
|
10
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TextInputProps } from './TextInput.types';
|
|
2
|
-
declare const TextInput: ({ ariaDescribedby, charLimit, colorScheme, errorText, hintText, icon, id, inputFieldType, label, name, ref, showInputHints, size,
|
|
2
|
+
declare const TextInput: ({ ariaDescribedby, ariaExpanded, charLimit, colorScheme, errorText, hintText, icon, iconButton, id, inputFieldType, label, name, onClick, onKeyDown, readonly, ref, role, showInputHints, size, ...props }: TextInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default TextInput;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { UseInputParameters } from '@mui/base';
|
|
2
|
-
import { ForwardedRef, HTMLInputTypeAttribute } from 'react';
|
|
2
|
+
import { ForwardedRef, HTMLInputTypeAttribute, KeyboardEventHandler } from 'react';
|
|
3
3
|
import { IconProps } from '../../../Base/Icon/Icon.types';
|
|
4
4
|
import { IconButtonIcon24Props } from '../../Buttons/IconButton/IconButton.types';
|
|
5
5
|
export interface CommonTextInputProps extends UseInputParameters {
|
|
6
6
|
ariaDescribedby?: string;
|
|
7
|
+
ariaExpanded?: boolean;
|
|
7
8
|
charLimit?: number;
|
|
8
9
|
colorScheme?: 'outline' | 'filled';
|
|
9
10
|
errorText?: string;
|
|
@@ -11,12 +12,19 @@ export interface CommonTextInputProps extends UseInputParameters {
|
|
|
11
12
|
id: string;
|
|
12
13
|
label: string;
|
|
13
14
|
name?: string;
|
|
15
|
+
onKeyDown?: KeyboardEventHandler;
|
|
16
|
+
readonly?: boolean;
|
|
14
17
|
ref?: ForwardedRef<null>;
|
|
18
|
+
role?: 'combobox';
|
|
15
19
|
showInputHints?: boolean;
|
|
16
20
|
}
|
|
17
21
|
export interface TextInputProps extends CommonTextInputProps {
|
|
18
22
|
icon?: IconProps;
|
|
23
|
+
iconButton?: IconButtonIcon24Props & {
|
|
24
|
+
ariaExpanded?: boolean;
|
|
25
|
+
ariaHaspopup?: boolean;
|
|
26
|
+
ref?: ForwardedRef<null>;
|
|
27
|
+
};
|
|
19
28
|
inputFieldType?: HTMLInputTypeAttribute;
|
|
20
29
|
size: 'medium' | 'large' | 'small';
|
|
21
|
-
textButton?: IconButtonIcon24Props;
|
|
22
30
|
}
|
|
@@ -4,6 +4,7 @@ export type TypographyTypeProduct = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'h
|
|
|
4
4
|
type AsProp<C extends ElementType> = {
|
|
5
5
|
as?: C;
|
|
6
6
|
markdown?: boolean;
|
|
7
|
+
markdownInline?: boolean;
|
|
7
8
|
};
|
|
8
9
|
type PropsToOmit<C extends ElementType, P> = keyof (AsProp<C> & P);
|
|
9
10
|
type PolymorphicComponentProp<C extends ElementType, Props = Record<string, unknown>> = PropsWithChildren<Props & AsProp<C>> & Omit<ComponentPropsWithoutRef<C>, PropsToOmit<C, Props>>;
|