@ssa-ui-kit/core 2.32.0 → 2.33.0-canary-8c871dc-20260113

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 (46) 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 +18 -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/CollapsibleNavBar/types.d.ts +3 -2
  15. package/dist/components/DateRangePicker/DateRangePicker.d.ts +1 -1
  16. package/dist/components/DateRangePicker/components/TriggerInput.d.ts +1 -4
  17. package/dist/components/DateRangePicker/hooks/index.d.ts +1 -0
  18. package/dist/components/DateRangePicker/hooks/useDatePickerMask.d.ts +3 -9
  19. package/dist/components/DateRangePicker/hooks/useDateRangePicker.d.ts +21 -18
  20. package/dist/components/DateRangePicker/hooks/useRangeSelection.d.ts +20 -0
  21. package/dist/components/DateRangePicker/types.d.ts +6 -4
  22. package/dist/components/DateRangePicker/useDateRangePickerContext.d.ts +2 -1
  23. package/dist/components/Drawer/index.d.ts +2 -1
  24. package/dist/components/Field/FieldControl.d.ts +1 -1
  25. package/dist/components/Filters/FiltersContext.d.ts +4 -4
  26. package/dist/components/Filters/hooks/useVisibility.d.ts +2 -2
  27. package/dist/components/FullscreenModeContext.d.ts +1 -4
  28. package/dist/components/Indicator/types.d.ts +4 -2
  29. package/dist/components/ModalDismissButton/ModalDismissButton.d.ts +2 -2
  30. package/dist/components/ModalOpenButton/ModalOpenButton.d.ts +1 -1
  31. package/dist/components/NavBar/types.d.ts +1 -1
  32. package/dist/components/NotificationMenu/types.d.ts +3 -3
  33. package/dist/components/Pagination/WithPagination.d.ts +2 -4
  34. package/dist/components/TableFilters/hooks/useTableData.d.ts +3 -3
  35. package/dist/components/Tooltip/SimpleChartTooltip.d.ts +2 -1
  36. package/dist/components/Tooltip/types.d.ts +5 -5
  37. package/dist/components/TooltipTrigger/TooltipTrigger.d.ts +1 -1
  38. package/dist/components/Typeahead/Typeahead.context.d.ts +4 -4
  39. package/dist/components/Typeahead/useTypeahead.d.ts +4 -4
  40. package/dist/components/UserProfile/types.d.ts +1 -1
  41. package/dist/components/WithLink.d.ts +1 -1
  42. package/dist/index.d.ts +1 -0
  43. package/dist/index.js +33599 -10348
  44. package/dist/index.js.map +1 -1
  45. package/dist/utils/react19HocCompat.d.ts +14 -0
  46. package/package.json +42 -33
@@ -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 { LineSeries } 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 = LineSeries['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, LineSeries } from '@nivo/line';
2
2
  import { TrendLineTooltipProps } from './TrendLineTooltip';
3
- export interface TrendLineProps extends LineProps {
3
+ type Datum = LineSeries['data'][number];
4
+ export interface TrendLineProps extends Omit<LineSvgProps<LineSeries>, 'data' | 'height' | 'width'> {
4
5
  color?: string;
5
- tooltipValueFormat?: TrendLineTooltipProps['valueFormat'];
6
+ tooltipValueFormat?: TrendLineTooltipProps<LineSeries>['valueFormat'];
6
7
  lastActivePoint?: Datum;
8
+ data: LineSvgProps<LineSeries>['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,18 @@
1
+ import { type ComponentType } from 'react';
2
+ /**
3
+ * React 19 compatibility wrapper for Nivo responsive components.
4
+ *
5
+ * @nivo components can be received as module objects instead of functions due to
6
+ * CommonJS/ESM interop issues. This wrapper detects and unwraps such objects,
7
+ * then creates a functional component wrapper.
8
+ *
9
+ * The unwrapping process checks for:
10
+ * - .default export (CommonJS/ESM default export)
11
+ * - .ResponsiveWrapper property (Nivo's internal wrapper)
12
+ * - Direct function component
13
+ *
14
+ * @param Component - The Nivo responsive component (e.g., ResponsiveLine, ResponsivePie)
15
+ * @param displayName - Display name for debugging in React DevTools
16
+ * @returns A React 19 compatible functional component
17
+ */
18
+ export declare function wrapNivoResponsiveComponent<T extends 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;
@@ -1,13 +1,14 @@
1
1
  import { CSSProperties } from 'react';
2
2
  import { PathPattern } from 'react-router-dom';
3
+ import { CSSObject } from '@emotion/react';
3
4
  import { NavBarExtendedGroup, NavBarExtendedItem, NavBarExtendedSubItem } from '../..';
4
5
  export interface CollapsibleNavBarItem extends NavBarExtendedItem {
5
6
  iconSize: number;
6
- css?: React.CSSProperties;
7
+ css?: CSSObject;
7
8
  }
8
9
  export interface CollapsibleNavBarGroup<T extends NavBarExtendedSubItem = NavBarExtendedSubItem> extends NavBarExtendedGroup<T> {
9
10
  iconSize: number;
10
- css?: React.CSSProperties;
11
+ css?: CSSObject;
11
12
  prefix: string;
12
13
  }
13
14
  export interface CollapsibleNavBarExtendedProps<T extends NavBarExtendedSubItem = NavBarExtendedSubItem> {
@@ -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;
@@ -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 {};
@@ -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,2 +1,3 @@
1
1
  export * as Drawer from './index.parts';
2
- export { useDrawer, UseDrawerOptions } from './useDrawer';
2
+ export { useDrawer } from './useDrawer';
3
+ export type { UseDrawerOptions } from './useDrawer';
@@ -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,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) => {
@@ -8,7 +8,4 @@ export type FullscreenModeContextType = {
8
8
  export declare const FullscreenModeContext: import("react").Context<FullscreenModeContextType>;
9
9
  export declare const FullscreenModeProvider: ({ children, }: React.PropsWithChildren) => import("@emotion/react/jsx-runtime").JSX.Element;
10
10
  export declare const useFullscreenMode: () => FullscreenModeContextType;
11
- export declare const WithFullscreenMode: <T extends object>(Component: React.ComponentType<T>, rest?: Parameters<typeof FullscreenModeProvider>[0]) => {
12
- (props: T): import("@emotion/react/jsx-runtime").JSX.Element;
13
- displayName: string;
14
- };
11
+ export declare const WithFullscreenMode: <T extends object>(Component: React.ComponentType<T>, rest?: Parameters<typeof FullscreenModeProvider>[0]) => React.ComponentType<T>;
@@ -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>;
@@ -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>;
@@ -2,7 +2,7 @@ import { BaseSyntheticEvent } from 'react';
2
2
  import { TableFilterConfig } from '../types';
3
3
  export interface UseTableDataParameters {
4
4
  initialState?: TableFilterConfig;
5
- wrapperRef?: React.RefObject<HTMLElement>;
5
+ wrapperRef?: React.RefObject<HTMLElement | null>;
6
6
  updatedCheckboxData?: TableFilterConfig;
7
7
  handleCancel?: () => void;
8
8
  handleClear?: () => void;
@@ -15,8 +15,8 @@ export interface UseTableDataParameters {
15
15
  }
16
16
  export declare const useTableData: ({ initialState, wrapperRef, updatedCheckboxData, handleCancel, handleSubmit, handleClear, handleDropdownChange, }: UseTableDataParameters) => {
17
17
  checkboxData: TableFilterConfig;
18
- wrapperRef: import("react").RefObject<HTMLElement> | undefined;
19
- refsList: import("react").MutableRefObject<HTMLElement | null>[];
18
+ wrapperRef: import("react").RefObject<HTMLElement | null> | undefined;
19
+ refsList: import("react").RefObject<HTMLElement | null>[];
20
20
  setElementRef: (groupName: string, element: HTMLElement | null) => void;
21
21
  onCheckboxToggle: (groupName: string, name: string | number) => void;
22
22
  onDropdownChange: (groupName: string, name: string | number) => void;
@@ -1,2 +1,3 @@
1
+ import { LineSeries } from '@nivo/line';
1
2
  import { SimpleChartTooltipProps } from './types';
2
- export declare const SimpleChartTooltip: ({ point, size, renderValue, }: SimpleChartTooltipProps) => import("@emotion/react/jsx-runtime").JSX.Element;
3
+ export declare const SimpleChartTooltip: <Series extends LineSeries>({ point, size, renderValue, }: SimpleChartTooltipProps<Series>) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import { useInteractions, FloatingArrow, Placement, UseFloatingReturn, OffsetOptions } from '@floating-ui/react';
2
- import { PointTooltipProps, Point } from '@nivo/line';
2
+ import { PointTooltipProps, Point, LineSeries } from '@nivo/line';
3
3
  import { MapIconsType } from '../Icon/types';
4
4
  import { ProgressBarProps } from '../ProgressBar/types';
5
5
  import { SerializedStyles } from '@emotion/react';
@@ -20,11 +20,11 @@ export interface TooltipProps extends CommonProps {
20
20
  }
21
21
  export type UseTooltipArgs = Omit<TooltipProps, 'children'>;
22
22
  type UseInteractions = ReturnType<typeof useInteractions>;
23
- interface MutableRefObject<T> {
23
+ interface RefObject<T> {
24
24
  current: T;
25
25
  }
26
26
  export type UseTooltip = (props?: UseTooltipArgs) => Pick<TooltipProps, 'size' | 'hasArrow' | 'arrowProps'> & {
27
- arrowRef: MutableRefObject<null>;
27
+ arrowRef: RefObject<null>;
28
28
  isOpen: boolean;
29
29
  setIsOpen: React.Dispatch<React.SetStateAction<boolean>>;
30
30
  } & UseFloatingReturn & UseInteractions;
@@ -48,8 +48,8 @@ export interface TooltipTriggerProps {
48
48
  children: React.ReactNode;
49
49
  className?: string;
50
50
  }
51
- export type SimpleChartTooltipProps = PointTooltipProps & Pick<TooltipProps, 'size'> & {
52
- renderValue?: (data: Point['data']) => React.ReactNode;
51
+ export type SimpleChartTooltipProps<Series extends LineSeries> = PointTooltipProps<Series> & Pick<TooltipProps, 'size'> & {
52
+ renderValue?: (data: Point<Series>['data']) => React.ReactNode;
53
53
  };
54
54
  export interface ProgressChartTooltipProps {
55
55
  caption: string;
@@ -1,3 +1,3 @@
1
1
  import { TooltipTriggerProps } from '../Tooltip/types';
2
- declare const TooltipTrigger: ({ children, className }: TooltipTriggerProps) => import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | null;
2
+ declare const TooltipTrigger: ({ children, className }: TooltipTriggerProps) => import("react").ReactElement<TooltipTriggerProps, string | import("react").JSXElementConstructor<any>> | null;
3
3
  export default TooltipTrigger;
@@ -6,11 +6,11 @@ export declare const TypeaheadContext: React.Context<{
6
6
  isDisabled: boolean | undefined;
7
7
  optionsWithKey: Record<string | number, import("./types").TypeaheadOptionProps>;
8
8
  selectedItems: import("./types").TypeaheadValue[];
9
- inputRef: React.RefObject<HTMLInputElement>;
9
+ inputRef: React.RefObject<HTMLInputElement | null>;
10
10
  firstSuggestion: string;
11
11
  isMultiple: boolean | undefined;
12
12
  typeaheadId: string;
13
- triggerRef: React.RefObject<HTMLDivElement>;
13
+ triggerRef: React.RefObject<HTMLDivElement | null>;
14
14
  className: string | undefined;
15
15
  startIcon: React.ReactNode;
16
16
  endIcon: React.ReactNode;
@@ -23,8 +23,8 @@ export declare const TypeaheadContext: React.Context<{
23
23
  status: "error" | "success" | "basic";
24
24
  error: import("react-hook-form").FieldError | import("react-hook-form").Merge<import("react-hook-form").FieldError, import("react-hook-form").FieldErrorsImpl<any>> | undefined;
25
25
  placeholder: string | null | undefined;
26
- options: (React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | null)[];
27
- useFormResult: UseFormReturn<FieldValues, any, undefined>;
26
+ options: (React.ReactElement<any, string | React.JSXElementConstructor<any>> | null)[];
27
+ useFormResult: UseFormReturn<FieldValues, any, FieldValues>;
28
28
  register: import("react-hook-form").UseFormRegister<FieldValues>;
29
29
  setValue: import("react-hook-form").UseFormSetValue<FieldValues>;
30
30
  onChange: ((selectedItem: import("./types").TypeaheadValue, isSelected: boolean) => void) | undefined;
@@ -6,11 +6,11 @@ export declare const useTypeahead: ({ name, isOpen: isInitOpen, selectedItems: p
6
6
  isDisabled: boolean | undefined;
7
7
  optionsWithKey: Record<string | number, TypeaheadOptionProps>;
8
8
  selectedItems: TypeaheadValue[];
9
- inputRef: React.RefObject<HTMLInputElement>;
9
+ inputRef: React.RefObject<HTMLInputElement | null>;
10
10
  firstSuggestion: string;
11
11
  isMultiple: boolean | undefined;
12
12
  typeaheadId: string;
13
- triggerRef: React.RefObject<HTMLDivElement>;
13
+ triggerRef: React.RefObject<HTMLDivElement | null>;
14
14
  className: string | undefined;
15
15
  startIcon: React.ReactNode;
16
16
  endIcon: React.ReactNode;
@@ -23,8 +23,8 @@ export declare const useTypeahead: ({ name, isOpen: isInitOpen, selectedItems: p
23
23
  status: "error" | "success" | "basic";
24
24
  error: import("react-hook-form").FieldError | import("react-hook-form").Merge<import("react-hook-form").FieldError, import("react-hook-form").FieldErrorsImpl<any>> | undefined;
25
25
  placeholder: string | null | undefined;
26
- options: (React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | null)[];
27
- useFormResult: import("react-hook-form").UseFormReturn<import("react-hook-form").FieldValues, any, undefined>;
26
+ options: (React.ReactElement<any, string | React.JSXElementConstructor<any>> | null)[];
27
+ useFormResult: import("react-hook-form").UseFormReturn<import("react-hook-form").FieldValues, any, import("react-hook-form").FieldValues>;
28
28
  register: import("react-hook-form").UseFormRegister<import("react-hook-form").FieldValues>;
29
29
  setValue: import("react-hook-form").UseFormSetValue<import("react-hook-form").FieldValues>;
30
30
  onChange: ((selectedItem: TypeaheadValue, isSelected: boolean) => void) | undefined;
@@ -2,7 +2,7 @@ import { ReactNode } from 'react';
2
2
  export interface UserProfileProps {
3
3
  name: string;
4
4
  email: string;
5
- trigger: string | JSX.Element;
5
+ trigger: string | React.JSX.Element;
6
6
  onClick: () => void;
7
7
  logOutText?: string;
8
8
  className?: string;