@itilite/lumina-ui 1.0.2-alpha → 1.0.3-alpha
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/AdvancedDateRangePicker-D7xn4So6.d.mts +59 -0
- package/dist/AdvancedDateRangePicker-D7xn4So6.d.ts +59 -0
- package/dist/atom/AdvancedDateRangePicker/AdvancedDateRangePicker.d.mts +1 -1
- package/dist/atom/AdvancedDateRangePicker/AdvancedDateRangePicker.d.ts +1 -1
- package/dist/atom/AdvancedDateRangePicker/AdvancedDateRangePicker.js +896 -77
- package/dist/atom/AdvancedDateRangePicker/AdvancedDateRangePicker.mjs +6 -2
- package/dist/atom/AdvancedDateRangePicker/InternalCalendar.js +5 -5
- package/dist/atom/AdvancedDateRangePicker/InternalCalendar.mjs +1 -1
- package/dist/atom/Table/Table.js +4 -3
- package/dist/atom/Table/Table.mjs +1 -1
- package/dist/chunk-27LRL4RO.mjs +428 -0
- package/dist/chunk-3HXZIFV6.mjs +438 -0
- package/dist/chunk-62VAYFZA.mjs +437 -0
- package/dist/chunk-6ON32H2N.mjs +431 -0
- package/dist/chunk-6XIT27XY.mjs +269 -0
- package/dist/chunk-772C454L.mjs +438 -0
- package/dist/chunk-7L267Y4P.mjs +429 -0
- package/dist/chunk-7WSVCE2C.mjs +269 -0
- package/dist/chunk-BFFLWW7N.mjs +250 -0
- package/dist/chunk-FTL3PFC2.mjs +438 -0
- package/dist/chunk-GZ4P7OL3.mjs +429 -0
- package/dist/chunk-K2A4TWA3.mjs +430 -0
- package/dist/chunk-L3L42SIL.mjs +429 -0
- package/dist/chunk-MA23J4WQ.mjs +430 -0
- package/dist/chunk-QRGHJP7U.mjs +437 -0
- package/dist/chunk-RC6IGURJ.mjs +428 -0
- package/dist/chunk-TQDZWJZP.mjs +269 -0
- package/dist/chunk-ZGV6QMVM.mjs +437 -0
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +41 -32
- package/dist/index.mjs +14 -14
- package/dist/styles.css +385 -250
- package/package.json +1 -1
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
interface TimeValue {
|
|
4
|
+
hour: string;
|
|
5
|
+
minute: string;
|
|
6
|
+
period: "AM" | "PM";
|
|
7
|
+
}
|
|
8
|
+
interface DateRangeValue {
|
|
9
|
+
startDate: Date | null;
|
|
10
|
+
endDate: Date | null;
|
|
11
|
+
startTime: TimeValue;
|
|
12
|
+
endTime: TimeValue;
|
|
13
|
+
timezone: string;
|
|
14
|
+
}
|
|
15
|
+
interface PresetOption {
|
|
16
|
+
label: string;
|
|
17
|
+
key: string;
|
|
18
|
+
getRange: () => (Date | null)[];
|
|
19
|
+
}
|
|
20
|
+
interface TimezoneOption {
|
|
21
|
+
label: string;
|
|
22
|
+
value: string;
|
|
23
|
+
}
|
|
24
|
+
interface DateRangePickerProps {
|
|
25
|
+
/** Controlled value for the date range */
|
|
26
|
+
value?: DateRangeValue;
|
|
27
|
+
/** Called when the user clicks "Done" */
|
|
28
|
+
onChange?: (value: DateRangeValue) => void;
|
|
29
|
+
/** Called on every selection change (live) */
|
|
30
|
+
onRangeChange?: (value: DateRangeValue) => void;
|
|
31
|
+
/** Label for the confirm button. Defaults to "Done" */
|
|
32
|
+
confirmLabel?: string;
|
|
33
|
+
/** Additional class name for the root wrapper */
|
|
34
|
+
className?: string;
|
|
35
|
+
/** Whether the picker is disabled */
|
|
36
|
+
disabled?: boolean;
|
|
37
|
+
/** Disable dates before today */
|
|
38
|
+
disablePastDates?: boolean;
|
|
39
|
+
/** Minimum selectable date (ISO string) */
|
|
40
|
+
minDate?: string | null;
|
|
41
|
+
/** Maximum selectable date (ISO string) */
|
|
42
|
+
maxDate?: string | null;
|
|
43
|
+
/** Show a single calendar instead of two */
|
|
44
|
+
showSingleCalendar?: boolean;
|
|
45
|
+
/** Id prefix for accessibility */
|
|
46
|
+
id?: string;
|
|
47
|
+
defaultTimezone?: string;
|
|
48
|
+
isTimezoneDisabled?: boolean;
|
|
49
|
+
timezoneOptions?: TimezoneOption[];
|
|
50
|
+
/** Initial active preset key. Defaults to "custom". e.g. "this-month", "yesterday" */
|
|
51
|
+
defaultPreset?: string;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
declare function AdvancedDateRangePicker({ value, onChange, confirmLabel, className, disabled, disablePastDates, minDate, maxDate, showSingleCalendar, id, defaultTimezone, isTimezoneDisabled, timezoneOptions, defaultPreset, }: DateRangePickerProps): React.JSX.Element;
|
|
55
|
+
declare namespace AdvancedDateRangePicker {
|
|
56
|
+
var displayName: string;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export { AdvancedDateRangePicker as A, type DateRangePickerProps as D, type PresetOption as P, type TimeValue as T, type DateRangeValue as a, type TimezoneOption as b };
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
interface TimeValue {
|
|
4
|
+
hour: string;
|
|
5
|
+
minute: string;
|
|
6
|
+
period: "AM" | "PM";
|
|
7
|
+
}
|
|
8
|
+
interface DateRangeValue {
|
|
9
|
+
startDate: Date | null;
|
|
10
|
+
endDate: Date | null;
|
|
11
|
+
startTime: TimeValue;
|
|
12
|
+
endTime: TimeValue;
|
|
13
|
+
timezone: string;
|
|
14
|
+
}
|
|
15
|
+
interface PresetOption {
|
|
16
|
+
label: string;
|
|
17
|
+
key: string;
|
|
18
|
+
getRange: () => (Date | null)[];
|
|
19
|
+
}
|
|
20
|
+
interface TimezoneOption {
|
|
21
|
+
label: string;
|
|
22
|
+
value: string;
|
|
23
|
+
}
|
|
24
|
+
interface DateRangePickerProps {
|
|
25
|
+
/** Controlled value for the date range */
|
|
26
|
+
value?: DateRangeValue;
|
|
27
|
+
/** Called when the user clicks "Done" */
|
|
28
|
+
onChange?: (value: DateRangeValue) => void;
|
|
29
|
+
/** Called on every selection change (live) */
|
|
30
|
+
onRangeChange?: (value: DateRangeValue) => void;
|
|
31
|
+
/** Label for the confirm button. Defaults to "Done" */
|
|
32
|
+
confirmLabel?: string;
|
|
33
|
+
/** Additional class name for the root wrapper */
|
|
34
|
+
className?: string;
|
|
35
|
+
/** Whether the picker is disabled */
|
|
36
|
+
disabled?: boolean;
|
|
37
|
+
/** Disable dates before today */
|
|
38
|
+
disablePastDates?: boolean;
|
|
39
|
+
/** Minimum selectable date (ISO string) */
|
|
40
|
+
minDate?: string | null;
|
|
41
|
+
/** Maximum selectable date (ISO string) */
|
|
42
|
+
maxDate?: string | null;
|
|
43
|
+
/** Show a single calendar instead of two */
|
|
44
|
+
showSingleCalendar?: boolean;
|
|
45
|
+
/** Id prefix for accessibility */
|
|
46
|
+
id?: string;
|
|
47
|
+
defaultTimezone?: string;
|
|
48
|
+
isTimezoneDisabled?: boolean;
|
|
49
|
+
timezoneOptions?: TimezoneOption[];
|
|
50
|
+
/** Initial active preset key. Defaults to "custom". e.g. "this-month", "yesterday" */
|
|
51
|
+
defaultPreset?: string;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
declare function AdvancedDateRangePicker({ value, onChange, confirmLabel, className, disabled, disablePastDates, minDate, maxDate, showSingleCalendar, id, defaultTimezone, isTimezoneDisabled, timezoneOptions, defaultPreset, }: DateRangePickerProps): React.JSX.Element;
|
|
55
|
+
declare namespace AdvancedDateRangePicker {
|
|
56
|
+
var displayName: string;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export { AdvancedDateRangePicker as A, type DateRangePickerProps as D, type PresetOption as P, type TimeValue as T, type DateRangeValue as a, type TimezoneOption as b };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import 'react';
|
|
2
|
-
export { A as AdvancedDateRangePicker, A as default } from '../../AdvancedDateRangePicker-
|
|
2
|
+
export { A as AdvancedDateRangePicker, A as default } from '../../AdvancedDateRangePicker-D7xn4So6.mjs';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import 'react';
|
|
2
|
-
export { A as AdvancedDateRangePicker, A as default } from '../../AdvancedDateRangePicker-
|
|
2
|
+
export { A as AdvancedDateRangePicker, A as default } from '../../AdvancedDateRangePicker-D7xn4So6.js';
|