@bsol-oss/react-datatable5 12.0.0-beta.90 → 12.0.0-beta.91
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +28 -3
- package/dist/index.js +886 -237
- package/dist/index.mjs +889 -241
- package/dist/types/components/DataTable/display/TextCell.d.ts +11 -4
- package/dist/types/components/DataTable/display/TextWithCopy.d.ts +8 -0
- package/dist/types/components/DatePicker/DatePickerInput.d.ts +18 -0
- package/dist/types/components/DatePicker/DateTimePicker.d.ts +4 -1
- package/dist/types/components/DatePicker/IsoTimePicker.d.ts +2 -1
- package/dist/types/components/DatePicker/index.d.ts +2 -1
- package/dist/types/components/TimePicker/TimePicker.d.ts +2 -1
- package/dist/types/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,10 +1,17 @@
|
|
|
1
|
-
import { FlexProps, TextProps } from
|
|
2
|
-
import { ReactNode } from
|
|
1
|
+
import { FlexProps, TextProps } from '@chakra-ui/react';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
3
|
export interface TextCellProps {
|
|
4
|
+
text?: string | number | null | undefined | string[];
|
|
5
|
+
href?: string;
|
|
6
|
+
onClick?: () => void;
|
|
7
|
+
isCopyable?: boolean;
|
|
8
|
+
isBadge?: boolean;
|
|
9
|
+
badgeColor?: 'gray' | 'red' | 'orange' | 'yellow' | 'green' | 'teal' | 'blue' | 'cyan' | 'purple' | 'pink';
|
|
10
|
+
colorPalette?: 'gray' | 'red' | 'orange' | 'yellow' | 'green' | 'teal' | 'blue' | 'cyan' | 'purple' | 'pink';
|
|
4
11
|
label?: string;
|
|
5
12
|
noOfLines?: number[];
|
|
6
|
-
children
|
|
13
|
+
children?: string | number | ReactNode | ReactNode[];
|
|
7
14
|
containerProps?: FlexProps;
|
|
8
15
|
textProps?: TextProps;
|
|
9
16
|
}
|
|
10
|
-
export declare const TextCell: ({ label, containerProps, textProps, children, }: TextCellProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export declare const TextCell: ({ text, href, onClick, isCopyable, isBadge, badgeColor, colorPalette, label, containerProps, textProps, children, }: TextCellProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
interface TextWithCopyProps {
|
|
3
|
+
text: string | number | null | undefined;
|
|
4
|
+
globalFilter?: string;
|
|
5
|
+
highlightedText?: ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export declare const TextWithCopy: ({ text, globalFilter, highlightedText, }: TextWithCopyProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DatePickerLabels } from './DatePicker';
|
|
2
|
+
export interface DatePickerInputProps {
|
|
3
|
+
value?: string | Date;
|
|
4
|
+
onChange?: (date?: string) => void;
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
dateFormat?: string;
|
|
7
|
+
displayFormat?: string;
|
|
8
|
+
labels?: DatePickerLabels;
|
|
9
|
+
timezone?: string;
|
|
10
|
+
minDate?: Date;
|
|
11
|
+
maxDate?: Date;
|
|
12
|
+
firstDayOfWeek?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
13
|
+
showOutsideDays?: boolean;
|
|
14
|
+
monthsToDisplay?: number;
|
|
15
|
+
insideDialog?: boolean;
|
|
16
|
+
readOnly?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export declare function DatePickerInput({ value, onChange, placeholder, dateFormat, displayFormat, labels, timezone, minDate, maxDate, firstDayOfWeek, showOutsideDays, monthsToDisplay, insideDialog, readOnly, }: DatePickerInputProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -7,6 +7,9 @@ interface DateTimePickerProps {
|
|
|
7
7
|
labels?: DatePickerLabels;
|
|
8
8
|
timezone?: string;
|
|
9
9
|
startTime?: string;
|
|
10
|
+
minDate?: Date;
|
|
11
|
+
maxDate?: Date;
|
|
12
|
+
portalled?: boolean;
|
|
10
13
|
}
|
|
11
|
-
export declare function DateTimePicker({ value, onChange, format, showSeconds, labels, timezone, startTime, }: DateTimePickerProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare function DateTimePicker({ value, onChange, format, showSeconds, labels, timezone, startTime, minDate, maxDate, portalled, }: DateTimePickerProps): import("react/jsx-runtime").JSX.Element;
|
|
12
15
|
export {};
|
|
@@ -14,6 +14,7 @@ interface IsoTimePickerProps {
|
|
|
14
14
|
startTime?: string;
|
|
15
15
|
selectedDate?: string;
|
|
16
16
|
timezone?: string;
|
|
17
|
+
portalled?: boolean;
|
|
17
18
|
}
|
|
18
|
-
export declare function IsoTimePicker({ hour, setHour, minute, setMinute, second, setSecond, onChange, startTime, selectedDate, timezone, }: IsoTimePickerProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export declare function IsoTimePicker({ hour, setHour, minute, setMinute, second, setSecond, onChange, startTime, selectedDate, timezone, portalled, }: IsoTimePickerProps): import("react/jsx-runtime").JSX.Element;
|
|
19
20
|
export {};
|
|
@@ -4,4 +4,5 @@ export { IsoTimePicker } from './IsoTimePicker';
|
|
|
4
4
|
export { DateTimePicker } from './DateTimePicker';
|
|
5
5
|
export { DurationPicker } from './DurationPicker';
|
|
6
6
|
export { UniversalPicker } from './UniversalPicker';
|
|
7
|
-
export
|
|
7
|
+
export { DatePickerInput } from './DatePickerInput';
|
|
8
|
+
export type { DatePickerProps, CalendarProps, GetDateColorProps, GetVariantProps, } from './DatePicker';
|
|
@@ -18,6 +18,7 @@ interface TimePickerProps {
|
|
|
18
18
|
timezone?: string;
|
|
19
19
|
startTime?: string;
|
|
20
20
|
selectedDate?: string;
|
|
21
|
+
portalled?: boolean;
|
|
21
22
|
}
|
|
22
|
-
export declare function TimePicker({ hour, setHour, minute, setMinute, meridiem, setMeridiem, meridiemLabel: _meridiemLabel, onChange, timezone, startTime, selectedDate, }: TimePickerProps): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export declare function TimePicker({ hour, setHour, minute, setMinute, meridiem, setMeridiem, meridiemLabel: _meridiemLabel, onChange, timezone, startTime, selectedDate, portalled, }: TimePickerProps): import("react/jsx-runtime").JSX.Element;
|
|
23
24
|
export {};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -126,6 +126,7 @@ export * from './components/DatePicker/DatePicker';
|
|
|
126
126
|
export * from './components/DatePicker/getMultiDates';
|
|
127
127
|
export * from './components/DatePicker/getRangeDates';
|
|
128
128
|
export * from './components/DatePicker/RangeDatePicker';
|
|
129
|
+
export * from './components/DatePicker/DatePickerInput';
|
|
129
130
|
export * from './components/DataTable/display/RecordDisplay';
|
|
130
131
|
export * from './components/DataTable/display/TableDataDisplay';
|
|
131
132
|
export * from './components/DataTable/DefaultTable';
|