@ssa-ui-kit/core 2.30.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.
- package/dist/components/Charts/BarLineComplexChart/BarLineComplexChartView.d.ts +2 -2
- package/dist/components/Charts/BarLineComplexChart/types.d.ts +2 -2
- package/dist/components/Charts/BigNumberChart/BigNumberChart.d.ts +4 -2
- package/dist/components/Charts/BigNumberChart/components/TrendLine.d.ts +8 -3
- package/dist/components/Charts/BigNumberChart/components/TrendLineTooltip.d.ts +8 -5
- package/dist/components/Charts/GaugeChart/components/GaugeChartBase.d.ts +3 -1
- package/dist/components/Charts/PieChart/types.d.ts +1 -1
- package/dist/components/Charts/RadarChart/RadarChart.d.ts +1 -1
- package/dist/components/Charts/TreeMapChart/TreeMapChart.d.ts +1 -1
- package/dist/components/Charts/index.d.ts +1 -0
- package/dist/components/Charts/utils/nivoReact19Compat.d.ts +13 -0
- package/dist/components/Checkbox/types.d.ts +2 -2
- package/dist/components/Chip/Chip.d.ts +2 -0
- package/dist/components/Chip/constants.d.ts +22 -0
- package/dist/components/Chip/helpers.d.ts +13 -0
- package/dist/components/Chip/index.d.ts +2 -0
- package/dist/components/Chip/styles.d.ts +35 -0
- package/dist/components/Chip/types.d.ts +23 -0
- package/dist/components/CollapsibleNavBar/components/TriggerIcon.d.ts +4 -2
- package/dist/components/DatePicker/styles.d.ts +0 -1
- package/dist/components/DateRangePicker/DateRangePicker.d.ts +1 -1
- package/dist/components/DateRangePicker/components/DatesListWrapper.d.ts +0 -1
- package/dist/components/DateRangePicker/components/TriggerInput.d.ts +1 -4
- package/dist/components/DateRangePicker/hooks/index.d.ts +1 -0
- package/dist/components/DateRangePicker/hooks/useDatePickerMask.d.ts +3 -9
- package/dist/components/DateRangePicker/hooks/useDateRangePicker.d.ts +21 -18
- package/dist/components/DateRangePicker/hooks/useRangeSelection.d.ts +20 -0
- package/dist/components/DateRangePicker/styles.d.ts +0 -2
- package/dist/components/DateRangePicker/types.d.ts +6 -4
- package/dist/components/DateRangePicker/useDateRangePickerContext.d.ts +2 -1
- package/dist/components/Field/FieldControl.d.ts +1 -1
- package/dist/components/Filters/FilterBlockWrapper.d.ts +0 -1
- package/dist/components/Filters/FiltersContext.d.ts +4 -4
- package/dist/components/Filters/hooks/useVisibility.d.ts +2 -2
- package/dist/components/Indicator/types.d.ts +4 -2
- package/dist/components/JsonSchemaForm/constants.d.ts +1 -0
- package/dist/components/JsonSchemaForm/index.d.ts +2 -0
- package/dist/components/JsonSchemaForm/types.d.ts +6 -0
- package/dist/components/ModalDismissButton/ModalDismissButton.d.ts +2 -2
- package/dist/components/ModalOpenButton/ModalOpenButton.d.ts +1 -1
- package/dist/components/NavBar/types.d.ts +1 -1
- package/dist/components/NotificationMenu/types.d.ts +3 -3
- package/dist/components/Pagination/WithPagination.d.ts +2 -4
- package/dist/components/PersonInfo/PersonInfo.d.ts +3 -0
- package/dist/components/PersonInfo/PersonInfoAvatar.d.ts +3 -0
- package/dist/components/PersonInfo/PersonInfoBadges.d.ts +8 -0
- package/dist/components/PersonInfo/PersonInfoCounter.d.ts +3 -0
- package/dist/components/PersonInfo/PersonInfoIcon.d.ts +7 -0
- package/dist/components/PersonInfo/PersonInfoValue.d.ts +3 -0
- package/dist/components/PersonInfo/constants.d.ts +9 -0
- package/dist/components/PersonInfo/helpers.d.ts +11 -0
- package/dist/components/PersonInfo/index.d.ts +2 -0
- package/dist/components/PersonInfo/styles.d.ts +71 -0
- package/dist/components/PersonInfo/types.d.ts +48 -0
- package/dist/components/TableFilters/hooks/useTableData.d.ts +3 -3
- package/dist/components/Tooltip/SimpleChartTooltip.d.ts +2 -1
- package/dist/components/Tooltip/types.d.ts +6 -5
- package/dist/components/TooltipTrigger/TooltipTrigger.d.ts +1 -1
- package/dist/components/Typeahead/Typeahead.context.d.ts +4 -4
- package/dist/components/Typeahead/components/TypeaheadOption.d.ts +1 -1
- package/dist/components/Typeahead/styles.d.ts +4 -1
- package/dist/components/Typeahead/types.d.ts +1 -0
- package/dist/components/Typeahead/useTypeahead.d.ts +4 -4
- package/dist/components/UserProfile/styles.d.ts +0 -2
- package/dist/components/UserProfile/types.d.ts +1 -1
- package/dist/components/WithLink.d.ts +1 -1
- package/dist/components/Wrapper/Wrapper.d.ts +0 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1389 -458
- package/dist/index.js.map +1 -1
- package/dist/utils/react19HocCompat.d.ts +14 -0
- package/package.json +30 -30
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
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:
|
|
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 {
|
|
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:
|
|
55
|
+
tooltipContentRef: RefObject<HTMLDivElement | null>;
|
|
56
56
|
modeBarButtonsByKey: Record<string, Plotly.ModeBarButtonAny>;
|
|
57
57
|
};
|
|
58
58
|
}
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import {
|
|
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 {
|
|
1
|
+
import { LineSvgProps, DefaultSeries } from '@nivo/line';
|
|
2
2
|
import { TrendLineTooltipProps } from './TrendLineTooltip';
|
|
3
|
-
|
|
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 {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
|
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;
|
|
@@ -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 {
|
|
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?:
|
|
13
|
+
ref?: RefObject<HTMLInputElement>;
|
|
14
14
|
color?: 'green' | 'blue' | 'custom';
|
|
15
15
|
as?: React.ElementType;
|
|
16
16
|
className?: string;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare const VARIANTS: {
|
|
2
|
+
readonly OUTLINED: "outlined";
|
|
3
|
+
readonly FILLED: "filled";
|
|
4
|
+
};
|
|
5
|
+
export declare const COLORS: {
|
|
6
|
+
readonly DEFAULT: "default";
|
|
7
|
+
readonly PRIMARY: "primary";
|
|
8
|
+
readonly SUCCESS: "success";
|
|
9
|
+
readonly ERROR: "error";
|
|
10
|
+
readonly INFO: "info";
|
|
11
|
+
readonly WARNING: "warning";
|
|
12
|
+
};
|
|
13
|
+
export declare const mapSizes: {
|
|
14
|
+
small: import("@emotion/react").SerializedStyles;
|
|
15
|
+
medium: import("@emotion/react").SerializedStyles;
|
|
16
|
+
large: import("@emotion/react").SerializedStyles;
|
|
17
|
+
};
|
|
18
|
+
export declare const ICON_SIZES: {
|
|
19
|
+
readonly small: 12;
|
|
20
|
+
readonly medium: 14;
|
|
21
|
+
readonly large: 16;
|
|
22
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Theme } from '@emotion/react';
|
|
2
|
+
import { ChipProps } from './types';
|
|
3
|
+
type SemanticColor = Exclude<ChipProps['color'], 'default' | undefined>;
|
|
4
|
+
type ColorConfig = {
|
|
5
|
+
main: string;
|
|
6
|
+
bg: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const colorMap: (theme: Theme) => Record<SemanticColor, ColorConfig>;
|
|
9
|
+
export declare const getVariantColors: (theme: Theme, variant: ChipProps["variant"], color: ChipProps["color"], disabled: boolean) => {
|
|
10
|
+
chipStyles: import("@emotion/react").SerializedStyles;
|
|
11
|
+
iconColor: string | undefined;
|
|
12
|
+
};
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Theme } from '@emotion/react';
|
|
2
|
+
import { CommonProps } from '../../types/emotion';
|
|
3
|
+
export declare const ChipBase: import("@emotion/styled").StyledComponent<{
|
|
4
|
+
theme?: Theme;
|
|
5
|
+
as?: React.ElementType;
|
|
6
|
+
} & CommonProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
7
|
+
export declare const small: import("@emotion/react").SerializedStyles;
|
|
8
|
+
export declare const medium: import("@emotion/react").SerializedStyles;
|
|
9
|
+
export declare const large: import("@emotion/react").SerializedStyles;
|
|
10
|
+
export declare const filled: (theme: Theme) => import("@emotion/react").SerializedStyles;
|
|
11
|
+
export declare const filledDisabled: (theme: Theme) => import("@emotion/react").SerializedStyles;
|
|
12
|
+
export declare const outlined: (theme: Theme) => import("@emotion/react").SerializedStyles;
|
|
13
|
+
export declare const outlinedDisabled: (theme: Theme) => import("@emotion/react").SerializedStyles;
|
|
14
|
+
export declare const clickable: import("@emotion/react").SerializedStyles;
|
|
15
|
+
export declare const clickableDisabled: import("@emotion/react").SerializedStyles;
|
|
16
|
+
export declare const IconWrapper: import("@emotion/styled").StyledComponent<{
|
|
17
|
+
theme?: Theme;
|
|
18
|
+
as?: React.ElementType;
|
|
19
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
20
|
+
export declare const AvatarWrapper: import("@emotion/styled").StyledComponent<{
|
|
21
|
+
theme?: Theme;
|
|
22
|
+
as?: React.ElementType;
|
|
23
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
24
|
+
export declare const TitleWrapper: import("@emotion/styled").StyledComponent<{
|
|
25
|
+
theme?: Theme;
|
|
26
|
+
as?: React.ElementType;
|
|
27
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
28
|
+
export declare const LabelWrapper: import("@emotion/styled").StyledComponent<{
|
|
29
|
+
theme?: Theme;
|
|
30
|
+
as?: React.ElementType;
|
|
31
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
32
|
+
export declare const DeleteIconButton: import("@emotion/styled").StyledComponent<{
|
|
33
|
+
theme?: Theme;
|
|
34
|
+
as?: React.ElementType;
|
|
35
|
+
}, import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { CommonProps } from '../../types/emotion';
|
|
2
|
+
import { Interpolation, Theme } from '@emotion/react';
|
|
3
|
+
import { ReactNode, MouseEventHandler } from 'react';
|
|
4
|
+
import { IconProps } from '../Icon/types';
|
|
5
|
+
export type ChipVariant = 'filled' | 'outlined';
|
|
6
|
+
export type ChipColor = 'default' | 'primary' | 'success' | 'error' | 'info' | 'warning';
|
|
7
|
+
export type ChipSize = 'small' | 'medium' | 'large';
|
|
8
|
+
export interface ChipProps extends CommonProps {
|
|
9
|
+
label: ReactNode;
|
|
10
|
+
title?: ReactNode;
|
|
11
|
+
variant?: ChipVariant;
|
|
12
|
+
color?: ChipColor;
|
|
13
|
+
size?: ChipSize;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
icon?: IconProps['name'];
|
|
16
|
+
avatar?: ReactNode;
|
|
17
|
+
onDelete?: MouseEventHandler<HTMLButtonElement>;
|
|
18
|
+
deleteIcon?: IconProps['name'];
|
|
19
|
+
showIcon?: boolean;
|
|
20
|
+
onClick?: MouseEventHandler<HTMLDivElement>;
|
|
21
|
+
clickable?: boolean;
|
|
22
|
+
css?: Interpolation<Theme>;
|
|
23
|
+
}
|
|
@@ -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,2 +1,2 @@
|
|
|
1
1
|
import { DateRangePickerProps } from './types';
|
|
2
|
-
export declare const DateRangePicker: ({ format,
|
|
2
|
+
export declare const DateRangePicker: ({ format, showCalendarIcon, showStatusArea, rangePickerType, ...rest }: DateRangePickerProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
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,10 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const useDatePickerMask: ({ maskOptions,
|
|
3
|
-
|
|
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
|
|
14
|
-
dateMaxDT: DateTime
|
|
15
|
+
dateMinDT: DateTime;
|
|
16
|
+
dateMaxDT: DateTime;
|
|
15
17
|
dateTime: DateTimeTuple;
|
|
16
|
-
inputValueFrom
|
|
17
|
-
inputValueTo
|
|
18
|
-
calendarViewDateTime:
|
|
19
|
-
maskInputRef: import("react").MutableRefObject<HTMLInputElement>;
|
|
18
|
+
inputValueFrom?: string;
|
|
19
|
+
inputValueTo?: string;
|
|
20
|
+
calendarViewDateTime: DateTimeTuple;
|
|
20
21
|
calendarType: CalendarType;
|
|
21
|
-
lastChangedDate
|
|
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
|
|
28
|
+
currentCalendarViewDT: DateTime;
|
|
28
29
|
isOpen: boolean;
|
|
29
|
-
status
|
|
30
|
-
inputFromRef:
|
|
31
|
-
inputToRef:
|
|
32
|
-
setIsOpen:
|
|
33
|
-
|
|
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:
|
|
37
|
-
setCalendarViewDateTime:
|
|
38
|
-
setDateTime:
|
|
39
|
-
handleBlur:
|
|
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?:
|
|
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
|
-
|
|
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,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").
|
|
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").
|
|
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.
|
|
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';
|
|
@@ -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
|
-
|
|
2
|
-
|
|
3
|
-
displayName: string;
|
|
4
|
-
};
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const WithPagination: <T extends object>(Component: React.ComponentType<T>) => React.ComponentType<T>;
|