fis-component 0.0.76 → 0.0.78
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/cjs/index.js +24 -8
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/src/components/CheckboxGroup/index.d.ts +1 -1
- package/dist/cjs/types/src/components/Input/InputDate/InputDate.stories.d.ts +4 -0
- package/dist/cjs/types/src/components/Input/InputDate/index.d.ts +21 -0
- package/dist/cjs/types/src/components/Table/ColumnCell/index.d.ts +3 -3
- package/dist/esm/index.js +24 -8
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/src/components/CheckboxGroup/index.d.ts +1 -1
- package/dist/esm/types/src/components/Input/InputDate/InputDate.stories.d.ts +4 -0
- package/dist/esm/types/src/components/Input/InputDate/index.d.ts +21 -0
- package/dist/esm/types/src/components/Table/ColumnCell/index.d.ts +3 -3
- package/dist/index.d.ts +25 -4
- package/package.json +1 -1
|
@@ -3,3 +3,7 @@ import { InputDateProps } from ".";
|
|
|
3
3
|
declare const _default: Meta;
|
|
4
4
|
export default _default;
|
|
5
5
|
export declare const Default: (args: InputDateProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare const YearPicker: (args: InputDateProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare const MonthPicker: (args: InputDateProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const QuarterPicker: (args: InputDateProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const AllModes: (args: InputDateProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { InputFieldProps } from "../InputField";
|
|
2
2
|
import dayjs from "dayjs";
|
|
3
3
|
import { InputLabelProps } from "../InputLabel";
|
|
4
|
+
export type DatePickerMode = "date" | "month" | "year" | "quarter";
|
|
4
5
|
export interface InputDateProps extends Omit<InputFieldProps, "value" | "onChange">, Partial<InputLabelProps> {
|
|
5
6
|
className?: string | undefined;
|
|
6
7
|
/**Date value*/
|
|
@@ -22,6 +23,26 @@ export interface InputDateProps extends Omit<InputFieldProps, "value" | "onChang
|
|
|
22
23
|
minDate?: dayjs.Dayjs | undefined;
|
|
23
24
|
/**The maximum selectable date. Dates after this value will be disabled.*/
|
|
24
25
|
maxDate?: dayjs.Dayjs | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* Picker mode - determines what user can select
|
|
28
|
+
* - "date": Full date picker (default)
|
|
29
|
+
* - "month": Month picker only
|
|
30
|
+
* - "year": Year picker only
|
|
31
|
+
* - "quarter": Quarter picker only
|
|
32
|
+
*/
|
|
33
|
+
picker?: DatePickerMode;
|
|
34
|
+
/**Allow clear functionality*/
|
|
35
|
+
allowClear?: boolean;
|
|
36
|
+
/**Show today button*/
|
|
37
|
+
showToday?: boolean;
|
|
38
|
+
/**Show time selection*/
|
|
39
|
+
showTime?: boolean;
|
|
40
|
+
/**Auto focus when component mounted*/
|
|
41
|
+
autoFocus?: boolean;
|
|
42
|
+
/**Disabled date function*/
|
|
43
|
+
disabledDate?: (current: dayjs.Dayjs) => boolean;
|
|
44
|
+
/**Custom input format*/
|
|
45
|
+
inputReadOnly?: boolean;
|
|
25
46
|
}
|
|
26
47
|
declare const FISInputDate: import("react").ForwardRefExoticComponent<InputDateProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
27
48
|
export default FISInputDate;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { DetailedHTMLProps, HTMLAttributes, ReactElement } from "react";
|
|
2
|
-
interface ColumnCellProps extends Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> {
|
|
2
|
+
interface ColumnCellProps extends Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref" | "content"> {
|
|
3
3
|
className?: string;
|
|
4
|
-
textAlign?:
|
|
4
|
+
textAlign?: string;
|
|
5
5
|
contentWrapText?: boolean;
|
|
6
6
|
variant?: string;
|
|
7
|
-
content?:
|
|
7
|
+
content?: React.ReactNode;
|
|
8
8
|
description?: string;
|
|
9
9
|
icon?: ReactElement;
|
|
10
10
|
disabled?: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -3678,7 +3678,7 @@ type Option<T> = {
|
|
|
3678
3678
|
};
|
|
3679
3679
|
type CheckboxGroupProps<T extends Value> = {
|
|
3680
3680
|
className?: string;
|
|
3681
|
-
groupLabel
|
|
3681
|
+
groupLabel?: string;
|
|
3682
3682
|
options: Option<T>[] | readonly Option<T>[];
|
|
3683
3683
|
value: T[];
|
|
3684
3684
|
direction?: "row" | "column";
|
|
@@ -4057,6 +4057,7 @@ interface InputTimeProps extends Omit<InputFieldProps, "onChange">, Partial<Inpu
|
|
|
4057
4057
|
}
|
|
4058
4058
|
declare const FISInputTime: React__default.ForwardRefExoticComponent<InputTimeProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
4059
4059
|
|
|
4060
|
+
type DatePickerMode = "date" | "month" | "year" | "quarter";
|
|
4060
4061
|
interface InputDateProps extends Omit<InputFieldProps, "value" | "onChange">, Partial<InputLabelProps> {
|
|
4061
4062
|
className?: string | undefined;
|
|
4062
4063
|
/**Date value*/
|
|
@@ -4078,6 +4079,26 @@ interface InputDateProps extends Omit<InputFieldProps, "value" | "onChange">, Pa
|
|
|
4078
4079
|
minDate?: dayjs__default.Dayjs | undefined;
|
|
4079
4080
|
/**The maximum selectable date. Dates after this value will be disabled.*/
|
|
4080
4081
|
maxDate?: dayjs__default.Dayjs | undefined;
|
|
4082
|
+
/**
|
|
4083
|
+
* Picker mode - determines what user can select
|
|
4084
|
+
* - "date": Full date picker (default)
|
|
4085
|
+
* - "month": Month picker only
|
|
4086
|
+
* - "year": Year picker only
|
|
4087
|
+
* - "quarter": Quarter picker only
|
|
4088
|
+
*/
|
|
4089
|
+
picker?: DatePickerMode;
|
|
4090
|
+
/**Allow clear functionality*/
|
|
4091
|
+
allowClear?: boolean;
|
|
4092
|
+
/**Show today button*/
|
|
4093
|
+
showToday?: boolean;
|
|
4094
|
+
/**Show time selection*/
|
|
4095
|
+
showTime?: boolean;
|
|
4096
|
+
/**Auto focus when component mounted*/
|
|
4097
|
+
autoFocus?: boolean;
|
|
4098
|
+
/**Disabled date function*/
|
|
4099
|
+
disabledDate?: (current: dayjs__default.Dayjs) => boolean;
|
|
4100
|
+
/**Custom input format*/
|
|
4101
|
+
inputReadOnly?: boolean;
|
|
4081
4102
|
}
|
|
4082
4103
|
declare const FISInputDate: React$1.ForwardRefExoticComponent<InputDateProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
4083
4104
|
|
|
@@ -4102,12 +4123,12 @@ interface HeaderCellProps extends Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivE
|
|
|
4102
4123
|
}
|
|
4103
4124
|
declare const FISTableHeaderCell: React$1.ForwardRefExoticComponent<HeaderCellProps & React$1.RefAttributes<HTMLLabelElement>>;
|
|
4104
4125
|
|
|
4105
|
-
interface ColumnCellProps extends Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> {
|
|
4126
|
+
interface ColumnCellProps extends Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref" | "content"> {
|
|
4106
4127
|
className?: string;
|
|
4107
|
-
textAlign?:
|
|
4128
|
+
textAlign?: string;
|
|
4108
4129
|
contentWrapText?: boolean;
|
|
4109
4130
|
variant?: string;
|
|
4110
|
-
content?:
|
|
4131
|
+
content?: React.ReactNode;
|
|
4111
4132
|
description?: string;
|
|
4112
4133
|
icon?: ReactElement;
|
|
4113
4134
|
disabled?: boolean;
|