@fluidattacks/design 2.6.0 → 3.0.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.
Files changed (49) hide show
  1. package/dist/button.js +2 -0
  2. package/dist/button.mjs +6 -0
  3. package/dist/index-B8peEiF9.mjs +2056 -0
  4. package/dist/index-DeLYVJmb.js +63 -0
  5. package/dist/index.js +345 -289
  6. package/dist/index.mjs +14077 -11201
  7. package/dist/types/components/@core/types.d.ts +3 -2
  8. package/dist/types/components/card/card-with-input/index.d.ts +3 -0
  9. package/dist/types/components/card/card-with-input/styles.d.ts +8 -0
  10. package/dist/types/components/card/index.d.ts +2 -1
  11. package/dist/types/components/card/types.d.ts +29 -1
  12. package/dist/types/components/divider/types.d.ts +2 -2
  13. package/dist/types/components/icon/styles.d.ts +1 -0
  14. package/dist/types/components/icon/types.d.ts +3 -0
  15. package/dist/types/components/info-sidebar/index.d.ts +4 -0
  16. package/dist/types/components/info-sidebar/types.d.ts +32 -0
  17. package/dist/types/components/inputs/fields/date/calendar/cell/index.d.ts +3 -0
  18. package/dist/types/components/inputs/fields/date/calendar/grid/index.d.ts +3 -0
  19. package/dist/types/components/inputs/fields/date/calendar/header/index.d.ts +3 -0
  20. package/dist/types/components/inputs/fields/date/calendar/index.d.ts +6 -0
  21. package/dist/types/components/inputs/fields/date/calendar/styles.d.ts +13 -0
  22. package/dist/types/components/inputs/fields/date/index.d.ts +3 -0
  23. package/dist/types/components/inputs/fields/date/types.d.ts +34 -0
  24. package/dist/types/components/inputs/fields/date-range/calendar/index.d.ts +6 -0
  25. package/dist/types/components/inputs/fields/date-range/index.d.ts +4 -0
  26. package/dist/types/components/inputs/fields/date-range/styles.d.ts +5 -0
  27. package/dist/types/components/inputs/fields/date-time/calendar/index.d.ts +10 -0
  28. package/dist/types/components/inputs/fields/date-time/calendar/styles.d.ts +3 -0
  29. package/dist/types/components/inputs/fields/date-time/index.d.ts +4 -0
  30. package/dist/types/components/inputs/fields/number-range/index.d.ts +3 -0
  31. package/dist/types/components/inputs/index.d.ts +10 -1
  32. package/dist/types/components/inputs/types.d.ts +26 -4
  33. package/dist/types/components/inputs/utils/date-selector/index.d.ts +3 -0
  34. package/dist/types/components/inputs/utils/date-time-field/index.d.ts +4 -0
  35. package/dist/types/components/inputs/utils/styles.d.ts +5 -1
  36. package/dist/types/components/inputs/utils/types.d.ts +51 -1
  37. package/dist/types/components/priority-score/index.d.ts +3 -0
  38. package/dist/types/components/priority-score/types.d.ts +9 -0
  39. package/dist/types/components/severity-badge/types.d.ts +2 -2
  40. package/dist/types/components/slider/index.d.ts +3 -0
  41. package/dist/types/components/slider/styles.d.ts +7 -0
  42. package/dist/types/components/slider/thumb/index.d.ts +3 -0
  43. package/dist/types/components/slider/types.d.ts +13 -0
  44. package/dist/types/components/slider/utils.d.ts +2 -0
  45. package/dist/types/components/tag/index.d.ts +1 -1
  46. package/dist/types/components/tag/types.d.ts +15 -3
  47. package/dist/types/index.d.ts +3 -0
  48. package/dist/types/utils/date.d.ts +3 -0
  49. package/package.json +11 -3
@@ -16,6 +16,7 @@ interface DefaultTheme {
16
16
  spacing: {
17
17
  0: "0rem";
18
18
  0.125: "0.125rem";
19
+ 0.188: "0.188rem";
19
20
  0.25: "0.25rem";
20
21
  0.5: "0.5rem";
21
22
  0.625: "0.625rem";
@@ -84,7 +85,7 @@ type TSize = keyof DefaultTheme["typography"]["heading"];
84
85
  type TSpacing = keyof DefaultTheme["spacing"];
85
86
  type TShadows = keyof DefaultTheme["shadows"];
86
87
  type TIconSize = "xl" | "lg" | "md" | "sm" | "xs" | "xxs" | "xxss";
87
- type TIconType = "fa-brands" | "fa-light" | "fa-regular" | "fa-solid";
88
+ type TIconType = "fa-brands" | "fa-kit" | "fa-light" | "fa-regular" | "fa-solid";
88
89
  type TMode = "dark" | "light";
89
90
  interface IPaddingModifiable {
90
91
  padding?: [TSpacing, TSpacing, TSpacing, TSpacing];
@@ -122,7 +123,7 @@ interface IBorderModifiable {
122
123
  borderRadius?: string;
123
124
  }
124
125
  interface IIconModifiable {
125
- icon: IconName;
126
+ icon: IconName | "priority-bars-high" | "priority-bars-low" | "priority-bars-medium";
126
127
  iconColor?: string;
127
128
  iconSize: TIconSize;
128
129
  iconType?: TIconType;
@@ -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
- export type { ICardHeader, ICardWithImageProps, ICardWithSwitchProps, ICardWithSelectorProps, };
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, };
@@ -1,11 +1,11 @@
1
- import type { IMarginModifiable } from "components/@core/types";
1
+ import type { IDisplayModifiable, IMarginModifiable } from "components/@core/types";
2
2
  /**
3
3
  * Divider component props.
4
4
  * @interface IDividerProps
5
5
  * @extends IMarginModifiable
6
6
  * @property {string} [color] - The divider color.
7
7
  */
8
- interface IDividerProps extends IMarginModifiable {
8
+ interface IDividerProps extends Pick<IDisplayModifiable, "height" | "width">, IMarginModifiable {
9
9
  color?: string;
10
10
  }
11
11
  export type { IDividerProps };
@@ -6,6 +6,7 @@ interface IStyledIconWrapProps {
6
6
  $disabled?: IIconWrapProps["disabled"];
7
7
  $rotation?: IIconWrapProps["rotation"];
8
8
  $size: IIconWrapProps["iconSize"];
9
+ $secondaryColor: IIconWrapProps["secondaryColor"];
9
10
  }
10
11
  declare const IconWrap: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, keyof import("components/@core").IPaddingModifiable | keyof import("components/@core").IMarginModifiable | keyof import("components/@core").IPositionModifiable | keyof import("components/@core").IBorderModifiable | keyof import("components/@core").IDisplayModifiable | keyof import("components/@core").ITextModifiable | keyof import("components/@core").IInteractionModifiable> & import("components/@core").IBorderModifiable & import("components/@core").IDisplayModifiable & import("components/@core").IInteractionModifiable & import("components/@core").IMarginModifiable & import("components/@core").IPaddingModifiable & import("components/@core").IPositionModifiable & import("components/@core").ITextModifiable, "ref"> & {
11
12
  ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
@@ -17,6 +17,7 @@ interface IIconWrapProps extends IIconModifiable, IMarginModifiable {
17
17
  onClick?: MouseEventHandler<HTMLSpanElement>;
18
18
  disabled?: boolean;
19
19
  rotation?: number;
20
+ secondaryColor?: string;
20
21
  }
21
22
  /**
22
23
  * Icon component props.
@@ -24,9 +25,11 @@ interface IIconWrapProps extends IIconModifiable, IMarginModifiable {
24
25
  * @extends IIconWrapProps
25
26
  * @property {string} [iconClass] - The icon class from fontawesome.
26
27
  * @property {string} [iconMask] - The data-fa-mask prop of icon.
28
+ * @property {string} [spanClass] - The icon span class.
27
29
  */
28
30
  interface IIconProps extends IIconWrapProps {
29
31
  iconClass?: string;
30
32
  iconMask?: string;
33
+ spanClass?: string;
31
34
  }
32
35
  export type { IIconProps, IIconWrapProps };
@@ -0,0 +1,4 @@
1
+ import { PropsWithChildren } from "react";
2
+ import { IInfoSidebarProps } from "./types";
3
+ declare const InfoSidebar: ({ actions, children, header, title, tabs, footer, }: Readonly<PropsWithChildren<IInfoSidebarProps>>) => JSX.Element;
4
+ export { InfoSidebar };
@@ -0,0 +1,32 @@
1
+ import { IIconModifiable } from "components/@core";
2
+ import { ITabProps } from "components/tabs/types";
3
+ /**
4
+ * Button empty state props.
5
+ * @interface IButtonProps
6
+ * @extends IIconModifiable
7
+ * @property { string } [id] - Button id.
8
+ * @property { string } [text] - Button text.
9
+ * @property { Function } [onClick] - Button click handler.
10
+ */
11
+ interface IButtonProps extends Partial<IIconModifiable> {
12
+ id?: string;
13
+ onClick?: () => void;
14
+ text?: string;
15
+ }
16
+ /**
17
+ * Info sidebar component props.
18
+ * @interface IInfoSidebarProps
19
+ * @property { IButtonProps[] } [actions] - Sidebar actions.
20
+ * @property { React.ReactNode } [header] - Sidebar header.
21
+ * @property { string } title - Sidebar title.
22
+ * @property { ITabProps[] } tabs - Sidebar tabs.
23
+ * @property { IButtonProps[] } [footer] - Sidebar footer.
24
+ */
25
+ interface IInfoSidebarProps {
26
+ actions?: IButtonProps[];
27
+ header?: React.ReactNode;
28
+ title: string;
29
+ tabs: ITabProps[];
30
+ footer?: IButtonProps[];
31
+ }
32
+ export type { IInfoSidebarProps };
@@ -0,0 +1,3 @@
1
+ import type { TCellProps } from "../../types";
2
+ declare const CalendarCell: ({ state, date }: Readonly<TCellProps>) => JSX.Element;
3
+ export { CalendarCell };
@@ -0,0 +1,3 @@
1
+ import type { TGridProps } from "../../types";
2
+ declare const CalendarGrid: ({ state, ...props }: Readonly<TGridProps>) => JSX.Element;
3
+ export { CalendarGrid };
@@ -0,0 +1,3 @@
1
+ import type { THeaderProps } from "../../types";
2
+ declare const Header: ({ state, prevButtonProps, nextButtonProps, title, }: Readonly<THeaderProps>) => JSX.Element;
3
+ export { Header };
@@ -0,0 +1,6 @@
1
+ import type { CalendarStateOptions } from "@react-stately/calendar";
2
+ declare const Calendar: ({ onClose, props, }: Readonly<{
3
+ onClose: () => void;
4
+ props: Omit<CalendarStateOptions, "createCalendar" | "locale">;
5
+ }>) => JSX.Element;
6
+ export { Calendar };
@@ -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,3 @@
1
+ import type { TInputDateProps } from "./types";
2
+ declare const InputDate: import("react").ForwardRefExoticComponent<Readonly<TInputDateProps> & import("react").RefAttributes<HTMLInputElement>>;
3
+ export { InputDate };
@@ -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 };
@@ -0,0 +1,4 @@
1
+ import type { TInputDateProps } from "../date/types";
2
+ declare const InputDateTime: import("react").ForwardRefExoticComponent<Readonly<TInputDateProps> & import("react").RefAttributes<HTMLInputElement>>;
3
+ export type { TInputDateProps };
4
+ export { InputDateTime };
@@ -0,0 +1,3 @@
1
+ import type { IInputNumberRangeProps } from "../../types";
2
+ declare const InputNumberRange: import("react").ForwardRefExoticComponent<Readonly<IInputNumberRangeProps> & import("react").RefAttributes<HTMLInputElement>>;
3
+ export { InputNumberRange };
@@ -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,3 @@
1
+ import type { IDateSelectorProps } from "../types";
2
+ declare const DateSelector: ({ error, buttonProps, datePickerRef, disabled, granularity, fieldProps, groupProps, inputRef, name, ...props }: Readonly<IDateSelectorProps>) => JSX.Element;
3
+ export { DateSelector };
@@ -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
- export { StyledButtonAction, CalendarButtonAction, DialogContainer };
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
- export type { IActionButtonProps, IPopoverProps };
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, };
@@ -0,0 +1,3 @@
1
+ import { IPriorityScoreProps } from "./types";
2
+ declare const PriorityScore: ({ score, }: Readonly<IPriorityScoreProps>) => JSX.Element;
3
+ export { PriorityScore };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Priority score component props.
3
+ * @interface IPriorityScoreProps
4
+ * @property { number } score - The priority score.
5
+ */
6
+ interface IPriorityScoreProps {
7
+ score: number;
8
+ }
9
+ export type { IPriorityScoreProps };
@@ -14,12 +14,12 @@ interface IVariant {
14
14
  /**
15
15
  * Severity badge component props.
16
16
  * @interface ISeverityBadgeProps
17
- * @property { string } textL - Left text of the badge.
17
+ * @property { string } [textL] - Left text of the badge.
18
18
  * @property { string } textR - Right text of the badge.
19
19
  * @property { TSeverityBadgeVariant } variant - Variant of the badge.
20
20
  */
21
21
  interface ISeverityBadgeProps {
22
- textL: string;
22
+ textL?: string;
23
23
  textR: string;
24
24
  variant: TSeverityBadgeVariant;
25
25
  }
@@ -0,0 +1,3 @@
1
+ import { TSliderProps } from "./types";
2
+ declare const Slider: (props: Readonly<TSliderProps>) => JSX.Element;
3
+ export { Slider };
@@ -0,0 +1,7 @@
1
+ declare const StyledSlider: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
2
+ $min: number;
3
+ $value: number;
4
+ }>> & string;
5
+ declare const LimitValues: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
6
+ declare const Output: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").OutputHTMLAttributes<HTMLOutputElement>, HTMLOutputElement>, never>> & string;
7
+ export { StyledSlider, LimitValues, Output };
@@ -0,0 +1,3 @@
1
+ import { ISliderThumbProps } from "../types";
2
+ declare const Thumb: ({ state, trackRef, index, }: Readonly<ISliderThumbProps>) => JSX.Element;
3
+ export { Thumb };
@@ -0,0 +1,13 @@
1
+ import type { AriaSliderThumbOptions } from "@react-aria/slider";
2
+ import type { SliderState, SliderStateOptions } from "@react-stately/slider";
3
+ /**
4
+ * Slider thumb component props.
5
+ * @interface ISliderThumbProps
6
+ * @extends AriaSliderThumbOptions
7
+ * @property { SliderState } state - The slider state.
8
+ */
9
+ interface ISliderThumbProps extends Omit<AriaSliderThumbOptions, "inputRef"> {
10
+ state: SliderState;
11
+ }
12
+ type TSliderProps = SliderStateOptions<number>;
13
+ export type { ISliderThumbProps, TSliderProps };
@@ -0,0 +1,2 @@
1
+ declare const normalizeValue: (min: number, max: number, value: number) => number;
2
+ export { normalizeValue };
@@ -1,4 +1,4 @@
1
1
  import type { ITagProps, TTagVariant } from "./types";
2
- declare const Tag: ({ children, disabled, icon, iconColor, id, fontSize, onClose, variant, }: Readonly<ITagProps>) => JSX.Element;
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" | "new" | "reachable" | "remediation" | "review" | "role" | "success" | "technique" | "warning";
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 { TTagType } [type] - The type of the tag.
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 };
@@ -22,6 +22,7 @@ export * from "components/group-selector";
22
22
  export * from "components/icon";
23
23
  export * from "components/icon-button";
24
24
  export * from "components/indicator-card";
25
+ export * from "components/info-sidebar";
25
26
  export * from "components/inputs";
26
27
  export * from "components/interactive-card";
27
28
  export * from "components/language-selector";
@@ -40,6 +41,7 @@ export * from "components/notification-sign";
40
41
  export * from "components/number-input";
41
42
  export * from "components/oauth-selector";
42
43
  export * from "components/premium-feature";
44
+ export * from "components/priority-score";
43
45
  export * from "components/progress";
44
46
  export * from "components/pop-up";
45
47
  export * from "components/radio-button";
@@ -50,6 +52,7 @@ export * from "components/severity-badge";
50
52
  export * from "components/severity-overview";
51
53
  export * from "components/show-on-hover";
52
54
  export * from "components/slide-out-menu";
55
+ export * from "components/slider";
53
56
  export * from "components/step-lapse";
54
57
  export * from "components/table-button";
55
58
  export * from "components/tabs";
@@ -0,0 +1,3 @@
1
+ declare const formatDate: (value: string) => string;
2
+ declare const formatDateTime: (value: string) => string;
3
+ export { formatDate, formatDateTime };