@ssa-ui-kit/core 2.31.0 → 2.32.0-canary-b64be64-20251219

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 (59) hide show
  1. package/dist/components/Charts/BarLineComplexChart/BarLineComplexChartView.d.ts +2 -2
  2. package/dist/components/Charts/BarLineComplexChart/types.d.ts +2 -2
  3. package/dist/components/Charts/BigNumberChart/BigNumberChart.d.ts +4 -2
  4. package/dist/components/Charts/BigNumberChart/components/TrendLine.d.ts +8 -3
  5. package/dist/components/Charts/BigNumberChart/components/TrendLineTooltip.d.ts +8 -5
  6. package/dist/components/Charts/GaugeChart/components/GaugeChartBase.d.ts +3 -1
  7. package/dist/components/Charts/PieChart/types.d.ts +1 -1
  8. package/dist/components/Charts/RadarChart/RadarChart.d.ts +1 -1
  9. package/dist/components/Charts/TreeMapChart/TreeMapChart.d.ts +1 -1
  10. package/dist/components/Charts/index.d.ts +1 -0
  11. package/dist/components/Charts/utils/nivoReact19Compat.d.ts +13 -0
  12. package/dist/components/Checkbox/types.d.ts +2 -2
  13. package/dist/components/CollapsibleNavBar/components/TriggerIcon.d.ts +4 -2
  14. package/dist/components/DatePicker/styles.d.ts +0 -1
  15. package/dist/components/DateRangePicker/DateRangePicker.d.ts +1 -1
  16. package/dist/components/DateRangePicker/components/DatesListWrapper.d.ts +0 -1
  17. package/dist/components/DateRangePicker/components/TriggerInput.d.ts +1 -4
  18. package/dist/components/DateRangePicker/hooks/index.d.ts +1 -0
  19. package/dist/components/DateRangePicker/hooks/useDatePickerMask.d.ts +3 -9
  20. package/dist/components/DateRangePicker/hooks/useDateRangePicker.d.ts +21 -18
  21. package/dist/components/DateRangePicker/hooks/useRangeSelection.d.ts +20 -0
  22. package/dist/components/DateRangePicker/styles.d.ts +0 -2
  23. package/dist/components/DateRangePicker/types.d.ts +6 -4
  24. package/dist/components/DateRangePicker/useDateRangePickerContext.d.ts +2 -1
  25. package/dist/components/Field/FieldControl.d.ts +1 -1
  26. package/dist/components/Filters/FilterBlockWrapper.d.ts +0 -1
  27. package/dist/components/Filters/FiltersContext.d.ts +4 -4
  28. package/dist/components/Filters/hooks/useVisibility.d.ts +2 -2
  29. package/dist/components/Indicator/types.d.ts +4 -2
  30. package/dist/components/JsonSchemaForm/constants.d.ts +1 -0
  31. package/dist/components/JsonSchemaForm/index.d.ts +2 -0
  32. package/dist/components/JsonSchemaForm/types.d.ts +6 -0
  33. package/dist/components/ModalDismissButton/ModalDismissButton.d.ts +2 -2
  34. package/dist/components/ModalOpenButton/ModalOpenButton.d.ts +1 -1
  35. package/dist/components/NavBar/types.d.ts +1 -1
  36. package/dist/components/NotificationMenu/types.d.ts +3 -3
  37. package/dist/components/Pagination/WithPagination.d.ts +2 -4
  38. package/dist/components/PersonInfo/PersonInfoAvatar.d.ts +1 -8
  39. package/dist/components/PersonInfo/PersonInfoCounter.d.ts +3 -0
  40. package/dist/components/PersonInfo/PersonInfoValue.d.ts +1 -8
  41. package/dist/components/PersonInfo/helpers.d.ts +11 -0
  42. package/dist/components/PersonInfo/styles.d.ts +29 -14
  43. package/dist/components/PersonInfo/types.d.ts +31 -1
  44. package/dist/components/TableFilters/hooks/useTableData.d.ts +3 -3
  45. package/dist/components/Tooltip/SimpleChartTooltip.d.ts +2 -1
  46. package/dist/components/Tooltip/types.d.ts +6 -5
  47. package/dist/components/TooltipTrigger/TooltipTrigger.d.ts +1 -1
  48. package/dist/components/Typeahead/Typeahead.context.d.ts +4 -4
  49. package/dist/components/Typeahead/styles.d.ts +0 -1
  50. package/dist/components/Typeahead/useTypeahead.d.ts +4 -4
  51. package/dist/components/UserProfile/styles.d.ts +0 -2
  52. package/dist/components/UserProfile/types.d.ts +1 -1
  53. package/dist/components/WithLink.d.ts +1 -1
  54. package/dist/components/Wrapper/Wrapper.d.ts +0 -1
  55. package/dist/index.d.ts +1 -0
  56. package/dist/index.js +774 -412
  57. package/dist/index.js.map +1 -1
  58. package/dist/utils/react19HocCompat.d.ts +14 -0
  59. package/package.json +30 -30
@@ -1,8 +1,8 @@
1
- import { MutableRefObject } from 'react';
1
+ import { RefObject } from 'react';
2
2
  import { BarLineComplexInternalProps } from './types';
3
3
  export declare const BarLineComplexChartView: ({ width, height, isFullscreenMode, transformedChartData, tooltipContentRef, extraModeBarButtons, systemModeBarButtons, onChange, ...props }: BarLineComplexInternalProps & {
4
4
  isFullscreenMode: boolean;
5
5
  transformedChartData: Plotly.Data[];
6
- tooltipContentRef: MutableRefObject<HTMLDivElement | null>;
6
+ tooltipContentRef: RefObject<HTMLDivElement | null>;
7
7
  extraModeBarButtons: Array<Plotly.ModeBarButtonAny>;
8
8
  }) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import { MutableRefObject } from 'react';
1
+ import { RefObject } from 'react';
2
2
  import { PlotParams } from 'react-plotly.js';
3
3
  import { PieChartProps } from '../PieChart';
4
4
  export type BarLineChartItem = Plotly.Data & {
@@ -52,7 +52,7 @@ export interface BarLineComplexChartContextProviderProps extends Pick<BarLineCom
52
52
  export interface UseChartInfo {
53
53
  (): {
54
54
  transformedChartData: Plotly.Data[];
55
- tooltipContentRef: MutableRefObject<HTMLDivElement | null>;
55
+ tooltipContentRef: RefObject<HTMLDivElement | null>;
56
56
  modeBarButtonsByKey: Record<string, Plotly.ModeBarButtonAny>;
57
57
  };
58
58
  }
@@ -1,15 +1,17 @@
1
- import { Datum } from '@nivo/line';
1
+ import { DefaultSeries } from '@nivo/line';
2
2
  import { WidgetCardProps } from '../../index';
3
3
  import { TrendLineProps } from './components';
4
4
  export type BigNumberChartFeatures = 'header' | 'fullscreenMode';
5
+ type Datum = DefaultSeries['data'][number];
5
6
  export interface BigNumberChartProps {
6
7
  data: Datum[];
7
8
  interactive?: boolean;
8
9
  title?: string;
9
10
  widgetCardProps?: WidgetCardProps;
10
- trendLineProps?: Omit<TrendLineProps, 'data'>;
11
+ trendLineProps?: Omit<TrendLineProps, 'data' | 'height' | 'width'>;
11
12
  features?: BigNumberChartFeatures[];
12
13
  valueFormat?: (value: Datum) => React.ReactNode;
13
14
  }
14
15
  export declare const BigNumberChartComponent: ({ data, title, widgetCardProps, trendLineProps, interactive, features, valueFormat, }: BigNumberChartProps) => import("@emotion/react/jsx-runtime").JSX.Element;
15
16
  export declare const BigNumberChart: typeof BigNumberChartComponent;
17
+ export {};
@@ -1,8 +1,13 @@
1
- import { LineProps, Datum } from '@nivo/line';
1
+ import { LineSvgProps, DefaultSeries } from '@nivo/line';
2
2
  import { TrendLineTooltipProps } from './TrendLineTooltip';
3
- export interface TrendLineProps extends LineProps {
3
+ type Datum = DefaultSeries['data'][number];
4
+ export interface TrendLineProps extends Omit<LineSvgProps<DefaultSeries>, 'data' | 'height' | 'width'> {
4
5
  color?: string;
5
- tooltipValueFormat?: TrendLineTooltipProps['valueFormat'];
6
+ tooltipValueFormat?: TrendLineTooltipProps<DefaultSeries>['valueFormat'];
6
7
  lastActivePoint?: Datum;
8
+ data: LineSvgProps<DefaultSeries>['data'];
9
+ height: number;
10
+ width: number;
7
11
  }
8
12
  export declare const TrendLine: ({ color, tooltipValueFormat, ...props }: TrendLineProps) => import("@emotion/react/jsx-runtime").JSX.Element;
13
+ export {};
@@ -1,5 +1,8 @@
1
- import { Point, PointTooltipProps } from '@nivo/line';
2
- export type TrendLineTooltipProps = PointTooltipProps & {
3
- valueFormat?: (data: Point['data']) => React.ReactNode;
4
- };
5
- export declare const TrendLineTooltip: ({ point, valueFormat, }: TrendLineTooltipProps) => import("@emotion/react/jsx-runtime").JSX.Element;
1
+ import { Theme } from '@emotion/react';
2
+ import { Interpolation } from '@emotion/styled';
3
+ import { LineSeries, Point, PointTooltipProps } from '@nivo/line';
4
+ export interface TrendLineTooltipProps<Series extends LineSeries> extends PointTooltipProps<Series> {
5
+ valueFormat?: (data: Point<Series>['data']) => React.ReactNode;
6
+ css?: Interpolation<Theme>;
7
+ }
8
+ export declare const TrendLineTooltip: <Series extends LineSeries>({ point, css, valueFormat, }: TrendLineTooltipProps<Series>) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,7 +1,9 @@
1
- import { MayHaveLabel, ResponsivePie } from '@nivo/pie';
1
+ import { MayHaveLabel } from '@nivo/pie';
2
+ declare const ResponsivePie: <RawDatum extends MayHaveLabel>(props: import("@nivo/core").WithChartRef<import("@nivo/core").ResponsiveProps<import("@nivo/pie").PieSvgProps<RawDatum>>, SVGSVGElement>) => import("react").ReactElement;
2
3
  export type GaugeChartData = {
3
4
  color?: string;
4
5
  value?: number;
5
6
  } & MayHaveLabel;
6
7
  export type GaugeChartBaseProps = React.ComponentProps<typeof ResponsivePie<GaugeChartData>>;
7
8
  export declare const GaugeChartBase: ({ ...props }: GaugeChartBaseProps) => import("@emotion/react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -49,7 +49,7 @@ export type PieChartLegendProps = {
49
49
  export type PieChartTooltipViewProps = {
50
50
  isOpen: boolean;
51
51
  point?: PieTooltipProps<MayHaveLabel & {
52
- percentage?: number;
52
+ percentage?: number | string;
53
53
  dimension?: string;
54
54
  }> | null;
55
55
  outputType: PieChartTooltipProps['outputType'];
@@ -1,6 +1,6 @@
1
1
  import { ComponentProps } from 'react';
2
- import { ResponsiveRadar } from '@nivo/radar';
3
2
  import { WidgetCardProps } from '../../WidgetCard';
3
+ declare const ResponsiveRadar: <D extends Record<string, unknown>>(props: import("@nivo/core").WithChartRef<import("@nivo/core").ResponsiveProps<import("@nivo/radar").RadarSvgProps<D>>, SVGSVGElement>) => import("react").ReactElement;
4
4
  export type RadarChartFeatures = 'header' | 'fullscreenMode';
5
5
  type ResponsiveRadarProps<D extends Record<string, unknown>> = ComponentProps<typeof ResponsiveRadar<D>>;
6
6
  export interface RadarChartProps<D extends Record<string, unknown>> extends Omit<ResponsiveRadarProps<D>, 'legends'> {
@@ -1,5 +1,5 @@
1
- import { ResponsiveTreeMap } from '@nivo/treemap';
2
1
  import { WidgetCardProps } from '../../WidgetCard';
2
+ declare const ResponsiveTreeMap: <Datum extends object = import("@nivo/treemap").DefaultTreeMapDatum>(props: import("@nivo/core").WithChartRef<import("@nivo/core").ResponsiveProps<import("@nivo/treemap").TreeMapSvgProps<Datum>>, SVGSVGElement>) => import("react").ReactElement;
3
3
  export type TreeNode = {
4
4
  name: string;
5
5
  value?: number;
@@ -8,3 +8,4 @@ export * from './GaugeChart';
8
8
  export * from './BarGaugeChart';
9
9
  export * from './BigNumberChart';
10
10
  export * from './CandlestickChart';
11
+ export * from './utils/nivoReact19Compat';
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ /**
3
+ * React 19 compatibility wrapper for Nivo responsive components.
4
+ *
5
+ * @nivo/core's ResponsiveWrapper returns an object in React 19, which causes
6
+ * type checking issues. This utility wraps any Nivo responsive component
7
+ * with forwardRef to ensure it's recognized as a proper React component.
8
+ *
9
+ * @param Component - The Nivo responsive component to wrap (e.g., ResponsiveLine, ResponsivePie)
10
+ * @param displayName - The display name for the wrapped component
11
+ * @returns A React 19 compatible version of the component
12
+ */
13
+ export declare function wrapNivoResponsiveComponent<T extends React.ComponentType<any>>(Component: T, displayName: string): T;
@@ -1,4 +1,4 @@
1
- import { MutableRefObject, ReactNode } from 'react';
1
+ import { RefObject, ReactNode } from 'react';
2
2
  import { Control, FieldPath, FieldValues, UseFormReturn } from 'react-hook-form';
3
3
  export interface CheckboxProps extends Partial<Pick<UseFormReturn, 'register'>> {
4
4
  text?: ReactNode;
@@ -10,7 +10,7 @@ export interface CheckboxProps extends Partial<Pick<UseFormReturn, 'register'>>
10
10
  isIndeterminate?: boolean;
11
11
  name?: string;
12
12
  isRequired?: boolean;
13
- ref?: MutableRefObject<HTMLInputElement>;
13
+ ref?: RefObject<HTMLInputElement>;
14
14
  color?: 'green' | 'blue' | 'custom';
15
15
  as?: React.ElementType;
16
16
  className?: string;
@@ -1,9 +1,11 @@
1
+ import { CSSObject } from '@emotion/react';
1
2
  import type { MapIconsType, SVGProps } from '../../Icon/types';
2
- export declare const TriggerIcon: ({ iconName, iconSize, className, CustomIcon, }: {
3
+ export declare const TriggerIcon: ({ iconName, iconSize, className, CustomIcon, css: cssProp, }: {
3
4
  iconName: keyof MapIconsType;
4
5
  iconSize?: number;
5
6
  className?: string;
6
7
  CustomIcon?: (props: Omit<SVGProps, "fill"> & {
7
8
  showIconTooltip?: boolean;
8
- }) => JSX.Element;
9
+ }) => React.JSX.Element;
10
+ css?: CSSObject;
9
11
  }) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -2,7 +2,6 @@ export declare const DaysViewCell: import("@emotion/styled").StyledComponent<{
2
2
  theme?: import("@emotion/react").Theme;
3
3
  as?: React.ElementType;
4
4
  } & {
5
- avatarSize?: number;
6
5
  direction?: string;
7
6
  alignItems?: string;
8
7
  fade?: boolean;
@@ -1,2 +1,2 @@
1
1
  import { DateRangePickerProps } from './types';
2
- export declare const DateRangePicker: ({ format, openCalendarMode, showCalendarIcon, showStatusArea, rangePickerType, ...rest }: DateRangePickerProps) => import("@emotion/react/jsx-runtime").JSX.Element;
2
+ export declare const DateRangePicker: ({ format, showCalendarIcon, showStatusArea, rangePickerType, ...rest }: DateRangePickerProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -2,7 +2,6 @@ export declare const DatesListWrapper: import("@emotion/styled").StyledComponent
2
2
  theme?: import("@emotion/react").Theme;
3
3
  as?: React.ElementType;
4
4
  } & {
5
- avatarSize?: number;
6
5
  direction?: string;
7
6
  alignItems?: string;
8
7
  fade?: boolean;
@@ -1,7 +1,4 @@
1
- import { MouseEventHandler } from 'react';
2
- export declare const TriggerInput: ({ datepickerType, withPopover, className, onClick, }: {
1
+ export declare const TriggerInput: ({ datepickerType, className, }: {
3
2
  datepickerType: "from" | "to";
4
- withPopover?: boolean;
5
3
  className?: string;
6
- onClick: MouseEventHandler<HTMLInputElement>;
7
4
  }) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,3 +1,4 @@
1
1
  export * from './useDateRangePicker';
2
2
  export * from './useDatePickerMask';
3
3
  export * from './useRangeHighlighting';
4
+ export * from './useRangeSelection';
@@ -1,10 +1,4 @@
1
- import { DateRangePickerProps } from '../types';
2
- export declare const useDatePickerMask: ({ maskOptions, formatIndexes, dateMinParts, dateMaxParts, }: Pick<DateRangePickerProps, "maskOptions"> & {
3
- formatIndexes: {
4
- day: number;
5
- month: number;
6
- year: number;
7
- };
8
- dateMinParts: number[];
9
- dateMaxParts: number[];
1
+ import { type MaskOptions } from '@react-input/mask';
2
+ export declare const useDatePickerMask: ({ maskOptions, }: {
3
+ maskOptions?: MaskOptions;
10
4
  }) => import("react").MutableRefObject<HTMLInputElement>;
@@ -1,4 +1,6 @@
1
+ import React from 'react';
1
2
  import { DateTime } from 'luxon';
3
+ import { useMergeRefs } from '@floating-ui/react';
2
4
  import { CalendarType, DateRangePickerProps, DateTimeTuple } from '../types';
3
5
  export declare const useDateRangePicker: ({ dateMin, dateMax, name: _name, format: propFormat, maskOptions, isOpenState, defaultValue, rangePickerType, onOpen, onClose, onError, onChange, ...rest }: DateRangePickerProps & {
4
6
  isOpenState?: boolean;
@@ -10,31 +12,32 @@ export declare const useDateRangePicker: ({ dateMin, dateMax, name: _name, forma
10
12
  };
11
13
  dateMinParts: number[];
12
14
  dateMaxParts: number[];
13
- dateMinDT: DateTime<true> | DateTime<false>;
14
- dateMaxDT: DateTime<true> | DateTime<false>;
15
+ dateMinDT: DateTime;
16
+ dateMaxDT: DateTime;
15
17
  dateTime: DateTimeTuple;
16
- inputValueFrom: any;
17
- inputValueTo: any;
18
- calendarViewDateTime: [DateTime<boolean> | undefined, DateTime<boolean> | undefined];
19
- maskInputRef: import("react").MutableRefObject<HTMLInputElement>;
18
+ inputValueFrom?: string;
19
+ inputValueTo?: string;
20
+ calendarViewDateTime: DateTimeTuple;
20
21
  calendarType: CalendarType;
21
- lastChangedDate: [Date | undefined, Date | undefined];
22
+ lastChangedDate?: [Date | undefined, Date | undefined];
22
23
  luxonFormat: string;
23
24
  lastFocusedElement: "from" | "to";
24
25
  nameFrom: string;
25
26
  nameTo: string;
26
27
  currentIndex: number;
27
- currentCalendarViewDT: DateTime<boolean>;
28
+ currentCalendarViewDT: DateTime;
28
29
  isOpen: boolean;
29
- status: "error" | "success" | "basic" | undefined;
30
- inputFromRef: ((instance: HTMLInputElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | null;
31
- inputToRef: ((instance: HTMLInputElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | null;
32
- setIsOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
33
- handleSetIsOpen: (open: boolean) => void;
34
- setLastFocusedElement: import("react").Dispatch<import("react").SetStateAction<"from" | "to">>;
30
+ status?: "error" | "success" | "basic";
31
+ inputFromRef: ReturnType<typeof useMergeRefs<HTMLInputElement | null>>;
32
+ inputToRef: ReturnType<typeof useMergeRefs<HTMLInputElement | null>>;
33
+ setIsOpen: React.Dispatch<React.SetStateAction<boolean>>;
34
+ setLastFocusedElement: React.Dispatch<React.SetStateAction<"from" | "to">>;
35
35
  safeOnChange: (newDateTime?: DateTime) => void;
36
- setCalendarType: import("react").Dispatch<import("react").SetStateAction<CalendarType>>;
37
- setCalendarViewDateTime: import("react").Dispatch<import("react").SetStateAction<[DateTime<boolean> | undefined, DateTime<boolean> | undefined]>>;
38
- setDateTime: import("react").Dispatch<import("react").SetStateAction<DateTimeTuple>>;
39
- handleBlur: import("react").FocusEventHandler<HTMLInputElement>;
36
+ setCalendarType: React.Dispatch<React.SetStateAction<CalendarType>>;
37
+ setCalendarViewDateTime: React.Dispatch<React.SetStateAction<DateTimeTuple>>;
38
+ setDateTime: React.Dispatch<React.SetStateAction<DateTimeTuple>>;
39
+ handleBlur: React.FocusEventHandler<HTMLInputElement>;
40
+ rangeSelectionStep: "start" | "end" | null;
41
+ setRangeSelectionStep: React.Dispatch<React.SetStateAction<"start" | "end" | null>>;
42
+ clearInputValue: (field: "from" | "to") => void;
40
43
  };
@@ -0,0 +1,20 @@
1
+ import { DateTime } from 'luxon';
2
+ type UseRangeSelectionOptions = {
3
+ /**
4
+ * Function to create the new DateTime from the selected value
5
+ */
6
+ createNewDate: (selectedValue: number | string) => DateTime | undefined;
7
+ /**
8
+ * Function to format the date for comparison (e.g., 'D' for days, 'yyyy-MM' for months, 'yyyy' for years)
9
+ */
10
+ getComparisonFormat: () => string;
11
+ };
12
+ export declare const useRangeSelection: ({ createNewDate, getComparisonFormat, }: UseRangeSelectionOptions) => {
13
+ handleRangeSelect: (selectedValue: number | string) => void;
14
+ getDateSelectionState: (currentDT: DateTime) => {
15
+ isCalendarFirstDateSelected: boolean;
16
+ isCalendarSecondDateSelected: boolean;
17
+ isCalendarDateSelected: boolean;
18
+ };
19
+ };
20
+ export {};
@@ -2,7 +2,6 @@ export declare const DaysViewCell: import("@emotion/styled").StyledComponent<{
2
2
  theme?: import("@emotion/react").Theme;
3
3
  as?: React.ElementType;
4
4
  } & {
5
- avatarSize?: number;
6
5
  direction?: string;
7
6
  alignItems?: string;
8
7
  fade?: boolean;
@@ -38,7 +37,6 @@ export declare const TriggerWrapper: import("@emotion/styled").StyledComponent<{
38
37
  theme?: import("@emotion/react").Theme;
39
38
  as?: React.ElementType;
40
39
  } & {
41
- avatarSize?: number;
42
40
  direction?: string;
43
41
  alignItems?: string;
44
42
  fade?: boolean;
@@ -1,4 +1,4 @@
1
- import { Dispatch, MouseEventHandler, SetStateAction } from 'react';
1
+ import { Dispatch, MouseEventHandler, SetStateAction, FocusEventHandler } from 'react';
2
2
  import { DateTime } from 'luxon';
3
3
  import { useMask } from '@react-input/mask';
4
4
  import { FieldContextValue } from '../Field/FieldProvider';
@@ -14,7 +14,6 @@ export type DateRangePickerProps = {
14
14
  value?: [string | undefined, string | undefined];
15
15
  defaultValue?: [string, string];
16
16
  maskOptions?: Parameters<typeof useMask>[0];
17
- openCalendarMode?: 'icon' | 'input' | 'both';
18
17
  inputProps?: Partial<InputProps>;
19
18
  status?: FieldContextValue['status'];
20
19
  showStatusArea?: boolean;
@@ -46,7 +45,8 @@ export type DateRangePickerProps = {
46
45
  onError?: (date: unknown, error?: string | null) => void;
47
46
  onMonthChange?: (date: Date) => void;
48
47
  onYearChange?: (date: Date) => void;
49
- onBlur?: React.FocusEventHandler<HTMLInputElement>;
48
+ onBlur?: FocusEventHandler<HTMLInputElement>;
49
+ allowReverseSelection?: boolean;
50
50
  };
51
51
  export type DateTimeTuple = [DateTime | undefined, DateTime | undefined];
52
52
  export type DateRangePickerContextProps = Omit<DateRangePickerProps, 'dateMin' | 'dateMax'> & {
@@ -76,10 +76,12 @@ export type DateRangePickerContextProps = Omit<DateRangePickerProps, 'dateMin' |
76
76
  safeOnChange?: (date?: DateTime) => void;
77
77
  setLastFocusedElement: Dispatch<SetStateAction<LastFocusedElement>>;
78
78
  handleToggleOpen: MouseEventHandler<HTMLButtonElement | HTMLInputElement>;
79
- handleSetIsOpen: (open: boolean) => void;
80
79
  setCalendarViewDateTime: Dispatch<SetStateAction<DateTimeTuple>>;
81
80
  setDateTime: Dispatch<SetStateAction<DateTimeTuple>>;
82
81
  setIsOpen: Dispatch<SetStateAction<boolean>>;
83
82
  setCalendarType: Dispatch<SetStateAction<CalendarType>>;
83
+ rangeSelectionStep: 'start' | 'end' | null;
84
+ setRangeSelectionStep: Dispatch<SetStateAction<'start' | 'end' | null>>;
85
+ clearInputValue: (field: 'from' | 'to') => void;
84
86
  };
85
87
  export type CalendarType = 'days' | 'months' | 'years';
@@ -1 +1,2 @@
1
- export declare const useDateRangePickerContext: () => import("./types").DateRangePickerContextProps;
1
+ import { DateRangePickerContextProps } from './types';
2
+ export declare const useDateRangePickerContext: () => DateRangePickerContextProps;
@@ -1,7 +1,7 @@
1
1
  import React, { HTMLAttributes } from 'react';
2
2
  import { FieldContextValue } from './FieldProvider';
3
3
  export interface FieldControlProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
4
- controlRef?: React.RefObject<HTMLElement>;
4
+ controlRef?: React.RefObject<HTMLElement | null>;
5
5
  children: React.ReactNode | ((props: FieldContextValue) => React.ReactNode);
6
6
  }
7
7
  export declare const FieldControl: React.ForwardRefExoticComponent<FieldControlProps & React.RefAttributes<HTMLDivElement>>;
@@ -2,7 +2,6 @@ export declare const FilterBlockWrapper: import("@emotion/styled").StyledCompone
2
2
  theme?: import("@emotion/react").Theme;
3
3
  as?: React.ElementType;
4
4
  } & {
5
- avatarSize?: number;
6
5
  direction?: string;
7
6
  alignItems?: string;
8
7
  fade?: boolean;
@@ -2,8 +2,8 @@ import { UseTableDataResult } from '../TableFilters/hooks/useTableData';
2
2
  import { BaseSyntheticEvent } from 'react';
3
3
  export declare const FiltersContext: import("react").Context<{
4
4
  checkboxData: import("../TableFilters/types").TableFilterConfig;
5
- wrapperRef: import("react").RefObject<HTMLElement> | undefined;
6
- refsList: import("react").MutableRefObject<HTMLElement | null>[];
5
+ wrapperRef: import("react").RefObject<HTMLElement | null> | undefined;
6
+ refsList: import("react").RefObject<HTMLElement | null>[];
7
7
  setElementRef: (groupName: string, element: HTMLElement | null) => void;
8
8
  onCheckboxToggle: (groupName: string, name: string | number) => void;
9
9
  onDropdownChange: (groupName: string, name: string | number) => void;
@@ -13,8 +13,8 @@ export declare const FiltersContext: import("react").Context<{
13
13
  }>;
14
14
  export declare const useFiltersContext: () => {
15
15
  checkboxData: import("../TableFilters/types").TableFilterConfig;
16
- wrapperRef: import("react").RefObject<HTMLElement> | undefined;
17
- refsList: import("react").MutableRefObject<HTMLElement | null>[];
16
+ wrapperRef: import("react").RefObject<HTMLElement | null> | undefined;
17
+ refsList: import("react").RefObject<HTMLElement | null>[];
18
18
  setElementRef: (groupName: string, element: HTMLElement | null) => void;
19
19
  onCheckboxToggle: (groupName: string, name: string | number) => void;
20
20
  onDropdownChange: (groupName: string, name: string | number) => void;
@@ -3,8 +3,8 @@ import { ElementInfo } from '../types';
3
3
  export type RefsByKey = Record<string, ElementInfo>;
4
4
  type UseVisibilityParams = {
5
5
  checkboxData: TableFilterConfig;
6
- refsList: Array<React.MutableRefObject<HTMLElement | null>>;
7
- wrapperRef?: React.RefObject<HTMLElement>;
6
+ refsList: Array<React.RefObject<HTMLElement | null>>;
7
+ wrapperRef?: React.RefObject<HTMLElement | null>;
8
8
  onVisibilityProcessed?: () => void;
9
9
  };
10
10
  export declare const useVisibility: ({ checkboxData, wrapperRef, refsList, onVisibilityProcessed, }: UseVisibilityParams) => {
@@ -1,8 +1,10 @@
1
1
  export interface IndicatorProps {
2
2
  isVisible: boolean;
3
- children: React.ReactElement;
3
+ children: React.ReactElement<{
4
+ ref: React.Ref<HTMLDivElement | null>;
5
+ }>;
4
6
  position?: 'right' | 'left';
5
7
  background?: string;
6
- text?: string | number | JSX.Element;
8
+ text?: string | number | React.JSX.Element;
7
9
  }
8
10
  export type ChildrenDataProps = Record<string, number>;
@@ -0,0 +1 @@
1
+ export declare const DEFAULT_AVATAR_SIZE = 24;
@@ -11,3 +11,5 @@ declare const Form: import("@emotion/styled").StyledComponent<FormProps<unknown,
11
11
  theme?: import("@emotion/react").Theme;
12
12
  }, {}, {}>;
13
13
  export { Form, Templates, Theme, Widgets, Fields, generateTemplates, generateWidgets, generateFields, };
14
+ export * from './constants';
15
+ export type * from './types';
@@ -0,0 +1,6 @@
1
+ export type SelectOptionSchemaExtension = {
2
+ avatar?: string;
3
+ };
4
+ export type SelectWidgetUiOptions = {
5
+ typeaheadAvatarSize?: number;
6
+ };
@@ -1,4 +1,4 @@
1
- declare function ModalDismissButton({ children: child }: {
2
- children: JSX.Element;
1
+ declare function ModalDismissButton({ children: child, }: {
2
+ children: React.JSX.Element;
3
3
  }): import("react").FunctionComponentElement<any>;
4
4
  export default ModalDismissButton;
@@ -1,4 +1,4 @@
1
1
  declare function ModalOpenButton({ children: child }: {
2
- children: JSX.Element;
2
+ children: React.JSX.Element;
3
3
  }): import("react").FunctionComponentElement<any>;
4
4
  export default ModalOpenButton;
@@ -8,7 +8,7 @@ export interface NavBarProps {
8
8
  export type CustomIconProps = (props: {
9
9
  className?: string;
10
10
  showIconTooltip?: boolean;
11
- }) => JSX.Element;
11
+ }) => React.JSX.Element;
12
12
  export type NavBarExtendedItem = {
13
13
  CustomIcon?: CustomIconProps;
14
14
  path: string;
@@ -1,10 +1,10 @@
1
1
  import { NotificationCardProps } from '../NotificationCard';
2
2
  export interface NotificationMenuProps {
3
- trigger: string | JSX.Element;
3
+ trigger: string | React.JSX.Element;
4
4
  notifications: Array<NotificationCardProps>;
5
5
  children: React.ReactNode;
6
6
  onClick?: () => void;
7
7
  isLoading: boolean;
8
- leftButton?: string | JSX.Element | null;
9
- rightButton?: string | JSX.Element;
8
+ leftButton?: string | React.JSX.Element | null;
9
+ rightButton?: string | React.JSX.Element;
10
10
  }
@@ -1,4 +1,2 @@
1
- export declare const WithPagination: <T extends object>(Component: React.ComponentType<T>) => {
2
- (props: T): import("@emotion/react/jsx-runtime").JSX.Element;
3
- displayName: string;
4
- };
1
+ import React from 'react';
2
+ export declare const WithPagination: <T extends object>(Component: React.ComponentType<T>) => React.ComponentType<T>;
@@ -1,10 +1,3 @@
1
1
  import React from 'react';
2
- import { PersonInfoStyles } from './types';
3
- interface PersonInfoAvatarProps {
4
- avatar: string;
5
- value?: string;
6
- counter?: string | number;
7
- styles?: PersonInfoStyles;
8
- }
2
+ import { PersonInfoAvatarProps } from './types';
9
3
  export declare const PersonInfoAvatar: React.FC<PersonInfoAvatarProps>;
10
- export {};
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { PersonInfoCounterProps } from './types';
3
+ export declare const PersonInfoCounter: React.FC<PersonInfoCounterProps>;
@@ -1,10 +1,3 @@
1
1
  import React from 'react';
2
- import { Interpolation, Theme } from '@emotion/react';
3
- interface PersonInfoValueProps {
4
- value: string;
5
- counter?: string | number;
6
- css?: Interpolation<Theme>;
7
- counterCss?: Interpolation<Theme>;
8
- }
2
+ import { PersonInfoValueProps } from './types';
9
3
  export declare const PersonInfoValue: React.FC<PersonInfoValueProps>;
10
- export {};
@@ -0,0 +1,11 @@
1
+ export declare const getLinkAttributes: (link?: string, openLinkInNewTab?: boolean) => {
2
+ as: "a";
3
+ href: string | undefined;
4
+ target: string | undefined;
5
+ rel: string | undefined;
6
+ } | {
7
+ as?: undefined;
8
+ href?: undefined;
9
+ target?: undefined;
10
+ rel?: undefined;
11
+ };