@fluidattacks/design 2.6.0 → 2.7.0
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.js +349 -247
- package/dist/index.mjs +16083 -11575
- package/dist/types/components/card/card-with-input/index.d.ts +3 -0
- package/dist/types/components/card/card-with-input/styles.d.ts +8 -0
- package/dist/types/components/card/index.d.ts +2 -1
- package/dist/types/components/card/types.d.ts +29 -1
- package/dist/types/components/inputs/fields/date/calendar/cell/index.d.ts +3 -0
- package/dist/types/components/inputs/fields/date/calendar/grid/index.d.ts +3 -0
- package/dist/types/components/inputs/fields/date/calendar/header/index.d.ts +3 -0
- package/dist/types/components/inputs/fields/date/calendar/index.d.ts +6 -0
- package/dist/types/components/inputs/fields/date/calendar/styles.d.ts +13 -0
- package/dist/types/components/inputs/fields/date/index.d.ts +3 -0
- package/dist/types/components/inputs/fields/date/types.d.ts +34 -0
- package/dist/types/components/inputs/fields/date-range/calendar/index.d.ts +6 -0
- package/dist/types/components/inputs/fields/date-range/index.d.ts +4 -0
- package/dist/types/components/inputs/fields/date-range/styles.d.ts +5 -0
- package/dist/types/components/inputs/fields/date-time/calendar/index.d.ts +10 -0
- package/dist/types/components/inputs/fields/date-time/calendar/styles.d.ts +3 -0
- package/dist/types/components/inputs/fields/date-time/index.d.ts +4 -0
- package/dist/types/components/inputs/fields/number-range/index.d.ts +3 -0
- package/dist/types/components/inputs/index.d.ts +10 -1
- package/dist/types/components/inputs/types.d.ts +26 -4
- package/dist/types/components/inputs/utils/date-selector/index.d.ts +3 -0
- package/dist/types/components/inputs/utils/date-time-field/index.d.ts +4 -0
- package/dist/types/components/inputs/utils/styles.d.ts +5 -1
- package/dist/types/components/inputs/utils/types.d.ts +51 -1
- package/dist/types/components/tag/index.d.ts +1 -1
- package/dist/types/components/tag/types.d.ts +15 -3
- package/dist/types/utils/date.d.ts +3 -0
- package/package.json +2 -1
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { ICardWithInputProps } from "../types";
|
|
2
|
+
declare const CardWithInput: ({ description, disabled, id, align, inputType, inputNumberProps, minHeight, minWidth, name, placeholder, tooltip, title, }: Readonly<ICardWithInputProps>) => JSX.Element;
|
|
3
|
+
export { CardWithInput };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Property } from "csstype";
|
|
2
|
+
interface ICardInputContainerProps {
|
|
3
|
+
$align?: Property.TextAlign;
|
|
4
|
+
$minHeight?: string;
|
|
5
|
+
$minWidth?: string;
|
|
6
|
+
}
|
|
7
|
+
declare const CardInputContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ICardInputContainerProps>> & string;
|
|
8
|
+
export { CardInputContainer };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { CardHeader } from "./card-header";
|
|
2
2
|
import { CardWithImage } from "./card-with-image";
|
|
3
|
+
import { CardWithInput } from "./card-with-input";
|
|
3
4
|
import { CardWithSelector } from "./card-with-selector";
|
|
4
5
|
import { CardWithSwitch } from "./card-with-switch";
|
|
5
|
-
export { CardHeader, CardWithImage, CardWithSelector, CardWithSwitch };
|
|
6
|
+
export { CardHeader, CardWithInput, CardWithImage, CardWithSelector, CardWithSwitch, };
|
|
@@ -5,6 +5,7 @@ import type { TSpacing } from "components/@core/types";
|
|
|
5
5
|
import type { TFileType } from "components/file-preview/types";
|
|
6
6
|
import { IRadioButtonProps } from "components/radio-button/types";
|
|
7
7
|
import { IToggleProps } from "components/toggle/types";
|
|
8
|
+
type TInputType = "date" | "number" | "text";
|
|
8
9
|
/**
|
|
9
10
|
* Card component shared props.
|
|
10
11
|
* @interface ISharedProps
|
|
@@ -90,4 +91,31 @@ interface ICardWithSelectorProps extends Pick<ISharedProps, "description" | "tit
|
|
|
90
91
|
selectorProps: IRadioButtonProps;
|
|
91
92
|
width?: string;
|
|
92
93
|
}
|
|
93
|
-
|
|
94
|
+
/**
|
|
95
|
+
* Card with input component props.
|
|
96
|
+
* @interface ICardWithInputProps
|
|
97
|
+
* @extends ICardHeader
|
|
98
|
+
* @property { string } [align] - Card input align.
|
|
99
|
+
* @property { Interface } [inputNumberProps] - Card input number props.
|
|
100
|
+
* @property { boolean } [disabled] - Card disabled.
|
|
101
|
+
* @property { string } [inputType] - Card input type.
|
|
102
|
+
* @property { string } [minHeight] - Card min height.
|
|
103
|
+
* @property { string } [minWidth] - Card min width.
|
|
104
|
+
* @property { string } name - Card name.
|
|
105
|
+
* @property { string } [placeholder] - Card placeholder.
|
|
106
|
+
*/
|
|
107
|
+
interface ICardWithInputProps extends ICardHeader {
|
|
108
|
+
align?: Property.TextAlign;
|
|
109
|
+
inputNumberProps?: {
|
|
110
|
+
decimalPlaces?: number;
|
|
111
|
+
max?: number;
|
|
112
|
+
min?: number;
|
|
113
|
+
};
|
|
114
|
+
disabled?: boolean;
|
|
115
|
+
inputType?: TInputType;
|
|
116
|
+
minHeight?: string;
|
|
117
|
+
minWidth?: string;
|
|
118
|
+
name: string;
|
|
119
|
+
placeholder?: string;
|
|
120
|
+
}
|
|
121
|
+
export type { ICardHeader, ICardWithImageProps, ICardWithSwitchProps, ICardWithSelectorProps, ICardWithInputProps, };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare const TitleContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
2
|
+
declare const YearSwitch: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
4
|
+
}>, never>, never>> & string;
|
|
5
|
+
declare const WeekDaysTr: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, never>> & string;
|
|
6
|
+
declare const DayHeaderTh: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, never>> & string;
|
|
7
|
+
declare const DayItemTd: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, never>> & string;
|
|
8
|
+
declare const DotIconContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
9
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
10
|
+
}>, never>, never>> & string;
|
|
11
|
+
declare const CaretButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
|
|
12
|
+
declare const FooterContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
13
|
+
export { CaretButton, DayItemTd, DayHeaderTh, DotIconContainer, FooterContainer, TitleContainer, WeekDaysTr, YearSwitch, };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { AriaCalendarCellProps, AriaCalendarGridProps, CalendarAria } from "@react-aria/calendar";
|
|
2
|
+
import type { DateValue } from "@react-aria/datepicker";
|
|
3
|
+
import type { CalendarState, RangeCalendarState } from "@react-stately/calendar";
|
|
4
|
+
import type { DatePickerStateOptions, DateRangePickerStateOptions } from "@react-stately/datepicker";
|
|
5
|
+
import { InputHTMLAttributes } from "react";
|
|
6
|
+
/**
|
|
7
|
+
* Calendar state props.
|
|
8
|
+
* @interface ICalendarState
|
|
9
|
+
* @property {CalendarState | RangeCalendarState} state - Calendar state.
|
|
10
|
+
*/
|
|
11
|
+
interface ICalendarState {
|
|
12
|
+
state: CalendarState | RangeCalendarState;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Date component props.
|
|
16
|
+
* @interface IDateProps
|
|
17
|
+
* @extends InputHTMLAttributes<HTMLInputElement>
|
|
18
|
+
* @property {string} [error] - Error message of the date input.
|
|
19
|
+
* @property {string} [label] - Label of the date input.
|
|
20
|
+
* @property {string} name - Name of the date input.
|
|
21
|
+
* @property {string} [tooltip] - Tooltip of the date input.
|
|
22
|
+
*/
|
|
23
|
+
interface IDateProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
24
|
+
error?: string;
|
|
25
|
+
label?: string;
|
|
26
|
+
name: string;
|
|
27
|
+
tooltip?: string;
|
|
28
|
+
}
|
|
29
|
+
type TInputDateProps = IDateProps & Omit<DatePickerStateOptions<DateValue>, "label">;
|
|
30
|
+
type TGridProps = AriaCalendarGridProps & ICalendarState;
|
|
31
|
+
type TCellProps = AriaCalendarCellProps & ICalendarState;
|
|
32
|
+
type THeaderProps = ICalendarState & Pick<CalendarAria, "nextButtonProps" | "prevButtonProps" | "title">;
|
|
33
|
+
type TInputDateRangeProps = IDateProps & Omit<DateRangePickerStateOptions, "label">;
|
|
34
|
+
export type { IDateProps, TInputDateProps, TCellProps, TGridProps, THeaderProps, TInputDateRangeProps, };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { RangeCalendarStateOptions } from "@react-stately/calendar";
|
|
2
|
+
declare const Calendar: ({ onClose, props, }: Readonly<{
|
|
3
|
+
onClose: () => void;
|
|
4
|
+
props: Omit<RangeCalendarStateOptions, "createCalendar" | "locale">;
|
|
5
|
+
}>) => JSX.Element;
|
|
6
|
+
export { Calendar };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { TInputDateRangeProps } from "../date/types";
|
|
2
|
+
declare const InputDateRange: import("react").ForwardRefExoticComponent<Readonly<TInputDateRangeProps> & import("react").RefAttributes<HTMLInputElement>>;
|
|
3
|
+
export type { TInputDateRangeProps };
|
|
4
|
+
export { InputDateRange };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
declare const DateSelectorOutline: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
2
|
+
$disabled?: boolean;
|
|
3
|
+
$show?: boolean;
|
|
4
|
+
}>> & string;
|
|
5
|
+
export { DateSelectorOutline };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { TimeValue } from "@react-aria/datepicker";
|
|
2
|
+
import type { CalendarStateOptions } from "@react-stately/calendar";
|
|
3
|
+
import type { DatePickerState } from "@react-stately/datepicker";
|
|
4
|
+
declare const Calendar: ({ handleTimeChange, onClose, props, timeState, }: Readonly<{
|
|
5
|
+
handleTimeChange: (selectedValue: TimeValue | null) => void;
|
|
6
|
+
onClose: () => void;
|
|
7
|
+
props: Omit<CalendarStateOptions, "createCalendar" | "locale">;
|
|
8
|
+
timeState: DatePickerState;
|
|
9
|
+
}>) => JSX.Element;
|
|
10
|
+
export { Calendar };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const TimeOutlineContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
2
|
+
declare const OutlineContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
|
+
export { OutlineContainer, TimeOutlineContainer };
|
|
@@ -1,4 +1,13 @@
|
|
|
1
|
+
import { InputDate } from "./fields/date";
|
|
2
|
+
import { InputDateRange } from "./fields/date-range";
|
|
3
|
+
import { InputDateTime } from "./fields/date-time";
|
|
4
|
+
import { Editable } from "./fields/editable";
|
|
1
5
|
import { Input } from "./fields/input";
|
|
6
|
+
import { InputFile } from "./fields/input-file";
|
|
7
|
+
import { InputTags } from "./fields/input-tags";
|
|
8
|
+
import { InputNumber } from "./fields/number";
|
|
9
|
+
import { InputNumberRange } from "./fields/number-range";
|
|
2
10
|
import { PhoneInput } from "./fields/phone";
|
|
11
|
+
import { TextArea } from "./fields/text-area";
|
|
3
12
|
import { OutlineContainer } from "./outline-container";
|
|
4
|
-
export { OutlineContainer, PhoneInput, Input };
|
|
13
|
+
export { OutlineContainer, PhoneInput, Input, InputDate, InputDateRange, InputDateTime, InputFile, InputNumber, InputTags, InputNumberRange, TextArea, Editable, };
|
|
@@ -57,7 +57,7 @@ interface IInputProps extends InputHTMLAttributes<HTMLInputElement>, Partial<Omi
|
|
|
57
57
|
* @property {string} name - The name of the text area.
|
|
58
58
|
* @property {boolean} [maskValue] - Whether the input has a mask value.
|
|
59
59
|
*/
|
|
60
|
-
interface ITextAreaProps extends TextareaHTMLAttributes<HTMLTextAreaElement>, Omit<IOutlineContainerProps, "value"
|
|
60
|
+
interface ITextAreaProps extends TextareaHTMLAttributes<HTMLTextAreaElement>, Partial<Omit<IOutlineContainerProps, "value">> {
|
|
61
61
|
name: string;
|
|
62
62
|
maskValue?: boolean;
|
|
63
63
|
}
|
|
@@ -69,10 +69,32 @@ interface ITextAreaProps extends TextareaHTMLAttributes<HTMLTextAreaElement>, Om
|
|
|
69
69
|
* @property {number} [decimalPlaces] - The decimal places of the input.
|
|
70
70
|
* @property {string} name - The name of the input.
|
|
71
71
|
*/
|
|
72
|
-
interface IInputNumberProps extends InputHTMLAttributes<HTMLInputElement>, Omit<IOutlineContainerProps, "value"
|
|
72
|
+
interface IInputNumberProps extends InputHTMLAttributes<HTMLInputElement>, Partial<Omit<IOutlineContainerProps, "value">> {
|
|
73
73
|
decimalPlaces?: number;
|
|
74
74
|
name: string;
|
|
75
75
|
}
|
|
76
|
+
/**
|
|
77
|
+
* Input number range component props.
|
|
78
|
+
* @interface IInputNumberRangeProps
|
|
79
|
+
* @property {boolean} [disabled] - Whether the input is disabled.
|
|
80
|
+
* @property {string} [error] - The error message of the input.
|
|
81
|
+
* @property {string} name - The name of the input.
|
|
82
|
+
* @property {string} [label] - The label of the input.
|
|
83
|
+
* @property {IInputNumberProps} propsMin - The props of the minimum input.
|
|
84
|
+
* @property {IInputNumberProps} propsMax - The props of the maximum input.
|
|
85
|
+
* @property {boolean} [required] - Whether the input is required.
|
|
86
|
+
* @property {string} [tooltip] - The tooltip of the input.
|
|
87
|
+
*/
|
|
88
|
+
interface IInputNumberRangeProps {
|
|
89
|
+
disabled?: boolean;
|
|
90
|
+
error?: string;
|
|
91
|
+
name: string;
|
|
92
|
+
label?: string;
|
|
93
|
+
propsMin: IInputNumberProps;
|
|
94
|
+
propsMax: IInputNumberProps;
|
|
95
|
+
required?: boolean;
|
|
96
|
+
tooltip?: string;
|
|
97
|
+
}
|
|
76
98
|
/**
|
|
77
99
|
* Input number component props.
|
|
78
100
|
* @interface IInputNumberProps
|
|
@@ -80,7 +102,7 @@ interface IInputNumberProps extends InputHTMLAttributes<HTMLInputElement>, Omit<
|
|
|
80
102
|
* @extends IOutlineContainerProps
|
|
81
103
|
* @property {Function} [onRemove] - The function to remove the tag.
|
|
82
104
|
*/
|
|
83
|
-
interface IInputTagProps extends InputHTMLAttributes<HTMLInputElement>, Omit<IOutlineContainerProps, "value"
|
|
105
|
+
interface IInputTagProps extends InputHTMLAttributes<HTMLInputElement>, Partial<Omit<IOutlineContainerProps, "value">> {
|
|
84
106
|
onRemove?: (tag: string) => void;
|
|
85
107
|
}
|
|
86
|
-
export type { ILabelProps, IOutlineContainerProps, IInputProps, ITextAreaProps, IInputNumberProps, IInputTagProps, };
|
|
108
|
+
export type { ILabelProps, IOutlineContainerProps, IInputProps, ITextAreaProps, IInputNumberProps, IInputNumberRangeProps, IInputTagProps, };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { TDateFieldProps, TTimeFieldProps } from "../types";
|
|
2
|
+
declare const DateField: ({ disabled, error, props, }: Readonly<TDateFieldProps>) => JSX.Element;
|
|
3
|
+
declare const TimeField: (props: Readonly<TTimeFieldProps>) => JSX.Element;
|
|
4
|
+
export { DateField, TimeField };
|
|
@@ -10,4 +10,8 @@ declare const CalendarButtonAction: import("styled-components/dist/types").IStyl
|
|
|
10
10
|
$focus: boolean;
|
|
11
11
|
$header: boolean;
|
|
12
12
|
}>> & string;
|
|
13
|
-
|
|
13
|
+
declare const InputDateBox: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
14
|
+
declare const TimeOutlineContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
15
|
+
declare const TimePickerContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
16
|
+
declare const DayPeriodButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
|
|
17
|
+
export { StyledButtonAction, CalendarButtonAction, DayPeriodButton, DialogContainer, InputDateBox, TimeOutlineContainer, TimePickerContainer, };
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import type { AriaDatePickerProps, DatePickerAria, DateValue } from "@react-aria/datepicker";
|
|
1
2
|
import type { AriaPopoverProps } from "@react-aria/overlays";
|
|
3
|
+
import type { DateFieldState, DateFieldStateOptions, DateSegment, TimeFieldStateOptions } from "@react-stately/datepicker";
|
|
2
4
|
import type { OverlayTriggerState } from "@react-stately/overlays";
|
|
3
5
|
import type { Property } from "csstype";
|
|
4
6
|
import { IBorderModifiable, IIconModifiable, IPaddingModifiable } from "components/@core";
|
|
@@ -28,4 +30,52 @@ interface IPopoverProps extends Omit<AriaPopoverProps, "popoverRef"> {
|
|
|
28
30
|
isFilter?: boolean;
|
|
29
31
|
state: OverlayTriggerState;
|
|
30
32
|
}
|
|
31
|
-
|
|
33
|
+
/**
|
|
34
|
+
* Date selector component props.
|
|
35
|
+
* @interface IDateSelectorProps
|
|
36
|
+
* @extends DatePickerAria
|
|
37
|
+
* @extends AriaDatePickerProps<DateValue>
|
|
38
|
+
* @property {string} [error] - The error message.
|
|
39
|
+
* @property {React.MutableRefObject<null>} datePickerRef - The ref of the date picker.
|
|
40
|
+
* @property {boolean} [disabled] - Indicates if the date selector is disabled.
|
|
41
|
+
* @property {Function} [handleOnChange] - The function to be called when the date is changed.
|
|
42
|
+
* @property {React.Ref<HTMLInputElement>} inputRef - The ref of the input.
|
|
43
|
+
* @property {boolean} isOpen - Indicates if the date selector is open.
|
|
44
|
+
* @property {string} name - The name of the date selector.
|
|
45
|
+
* @property {string} [variant] - The variant of the date selector.
|
|
46
|
+
*/
|
|
47
|
+
interface IDateSelectorProps extends Pick<DatePickerAria, "buttonProps" | "fieldProps" | "groupProps">, Pick<AriaDatePickerProps<DateValue>, "granularity"> {
|
|
48
|
+
error?: string;
|
|
49
|
+
datePickerRef: React.MutableRefObject<null>;
|
|
50
|
+
disabled?: boolean;
|
|
51
|
+
handleOnChange?: (value: DateValue) => void;
|
|
52
|
+
inputRef: React.Ref<HTMLInputElement>;
|
|
53
|
+
isOpen: boolean;
|
|
54
|
+
name: string;
|
|
55
|
+
variant?: "range";
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Date segment component props.
|
|
59
|
+
* @interface IDateSegmentProps
|
|
60
|
+
* @property {DateSegment} segment - The date segment.
|
|
61
|
+
* @property {DateFieldState} state - The date field state.
|
|
62
|
+
*/
|
|
63
|
+
interface IDateSegmentProps {
|
|
64
|
+
segment: DateSegment;
|
|
65
|
+
state: DateFieldState;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Date field component props.
|
|
69
|
+
* @interface IDateFieldProps
|
|
70
|
+
* @property {boolean} disabled - Indicates if the date field is disabled.
|
|
71
|
+
* @property {boolean} error - Indicates if the date field has an error.
|
|
72
|
+
*/
|
|
73
|
+
interface IDateFieldProps {
|
|
74
|
+
disabled: boolean;
|
|
75
|
+
error: boolean;
|
|
76
|
+
}
|
|
77
|
+
type TTimeFieldProps = Omit<TimeFieldStateOptions, "createCalendar" | "locale">;
|
|
78
|
+
type TDateFieldProps = IDateFieldProps & {
|
|
79
|
+
props: Omit<DateFieldStateOptions, "createCalendar" | "locale">;
|
|
80
|
+
};
|
|
81
|
+
export type { IActionButtonProps, IPopoverProps, IDateSelectorProps, IDateSegmentProps, TDateFieldProps, TTimeFieldProps, };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ITagProps, TTagVariant } from "./types";
|
|
2
|
-
declare const Tag: ({
|
|
2
|
+
declare const Tag: ({ disabled, icon, iconColor, iconType, id, filterValues, fontSize, href, linkLabel, onClose, priority, tagTitle, tagLabel, variant, }: Readonly<ITagProps>) => JSX.Element;
|
|
3
3
|
export type { ITagProps, TTagVariant };
|
|
4
4
|
export { Tag };
|
|
@@ -1,20 +1,32 @@
|
|
|
1
1
|
import { IIconModifiable } from "components/@core";
|
|
2
|
-
type TTagVariant = "default" | "error" | "inactive" | "
|
|
2
|
+
type TTagVariant = "default" | "error" | "inactive" | "info" | "reachable" | "remediation" | "role" | "success" | "technique" | "warning";
|
|
3
|
+
type TTagPriority = "default" | "high" | "low" | "medium";
|
|
3
4
|
/**
|
|
4
5
|
* Tag component props.
|
|
5
6
|
* @interface ITagProps
|
|
6
7
|
* @extends IIconModifiable
|
|
7
8
|
* @extends HTMLAttributes<HTMLSpanElement>
|
|
8
9
|
* @property { boolean } [disabled] - Whether the tag is disabled.
|
|
10
|
+
* @property { string } [filterValues] - The filter values for the tag.
|
|
9
11
|
* @property { string } [fontSize] - The font size for the tag.
|
|
12
|
+
* @property { string } [href] - The href for the tag.
|
|
13
|
+
* @property { string } [linkLabel] - The link label for the tag.
|
|
10
14
|
* @property { Function } [onClose] - Function handler for close button click.
|
|
11
|
-
* @property {
|
|
15
|
+
* @property { string } [tagTitle] - The title for the tag.
|
|
16
|
+
* @property { string } [tagLabel] - The label for the tag.
|
|
17
|
+
* @property { TTagPriority } [priority] - The priority of the tag.
|
|
12
18
|
* @property { TTagVariant } [variant] - The variant of the tag.
|
|
13
19
|
*/
|
|
14
|
-
interface ITagProps extends Partial<Pick<IIconModifiable, "icon" | "iconColor">>, React.HTMLAttributes<HTMLSpanElement> {
|
|
20
|
+
interface ITagProps extends Partial<Pick<IIconModifiable, "icon" | "iconColor" | "iconType">>, React.HTMLAttributes<HTMLSpanElement> {
|
|
15
21
|
disabled?: boolean;
|
|
22
|
+
filterValues?: string;
|
|
16
23
|
fontSize?: string;
|
|
24
|
+
href?: string;
|
|
25
|
+
linkLabel?: string;
|
|
17
26
|
onClose?: () => void;
|
|
27
|
+
tagTitle?: string;
|
|
28
|
+
tagLabel: string;
|
|
29
|
+
priority?: TTagPriority;
|
|
18
30
|
variant?: TTagVariant;
|
|
19
31
|
}
|
|
20
32
|
export type { ITagProps, TTagVariant };
|
package/package.json
CHANGED
|
@@ -86,6 +86,7 @@
|
|
|
86
86
|
"@react-stately/datepicker": "3.11.0",
|
|
87
87
|
"@react-stately/overlays": "3.6.12",
|
|
88
88
|
"@react-types/shared": "3.26.0",
|
|
89
|
+
"dayjs": "1.11.13",
|
|
89
90
|
"lottie-light-react": "2.4.0",
|
|
90
91
|
"motion": "11.13.5",
|
|
91
92
|
"prismjs": "1.29.0",
|
|
@@ -111,5 +112,5 @@
|
|
|
111
112
|
"test-storybook": "test-storybook"
|
|
112
113
|
},
|
|
113
114
|
"types": "dist/types/index.d.ts",
|
|
114
|
-
"version": "2.
|
|
115
|
+
"version": "2.7.0"
|
|
115
116
|
}
|