@itilite/lumina-ui 1.2.2 → 1.2.21

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 (91) hide show
  1. package/dist/atom/AdvancedDateRangePicker/AdvancedDateRangePicker.mjs +1 -1
  2. package/dist/atom/Switch/Switch.d.mts +1 -1
  3. package/dist/atom/Switch/Switch.d.ts +1 -1
  4. package/dist/atom/Switch/Switch.js +2 -2
  5. package/dist/atom/Switch/Switch.mjs +1 -1
  6. package/dist/{chunk-TMSPSGSS.mjs → chunk-IIJUGDEJ.mjs} +3 -3
  7. package/dist/{chunk-E27NPVR4.mjs → chunk-LTP5I3GX.mjs} +3 -3
  8. package/dist/chunk-O6PQFAXN.mjs +47 -0
  9. package/dist/index.js +2 -2
  10. package/dist/index.mjs +6 -6
  11. package/dist/styles.css +847 -824
  12. package/package.json +28 -27
  13. package/dist/AdvancedDateRangePicker-D7xn4So6.d.mts +0 -59
  14. package/dist/AdvancedDateRangePicker-D7xn4So6.d.ts +0 -59
  15. package/dist/AdvancedDateRangePicker-D9Sdk4rK.d.mts +0 -64
  16. package/dist/AdvancedDateRangePicker-D9Sdk4rK.d.ts +0 -64
  17. package/dist/AdvancedDateRangePicker-DGg-rucL.d.mts +0 -62
  18. package/dist/AdvancedDateRangePicker-DGg-rucL.d.ts +0 -62
  19. package/dist/AdvancedDateRangePicker-Di3rHxqf.d.mts +0 -64
  20. package/dist/AdvancedDateRangePicker-Di3rHxqf.d.ts +0 -64
  21. package/dist/AdvancedDateRangePicker-Dxug2Mcf.d.mts +0 -60
  22. package/dist/AdvancedDateRangePicker-Dxug2Mcf.d.ts +0 -60
  23. package/dist/AdvancedDateRangePicker-ozItnkhp.d.mts +0 -57
  24. package/dist/AdvancedDateRangePicker-ozItnkhp.d.ts +0 -57
  25. package/dist/Table-BOq-_9Nr.d.mts +0 -121
  26. package/dist/Table-BOq-_9Nr.d.ts +0 -121
  27. package/dist/Table-BxaCiQmh.d.mts +0 -82
  28. package/dist/Table-BxaCiQmh.d.ts +0 -82
  29. package/dist/Table-CnzP9dkc.d.mts +0 -82
  30. package/dist/Table-CnzP9dkc.d.ts +0 -82
  31. package/dist/Table-DNvoh2P8.d.mts +0 -127
  32. package/dist/Table-DNvoh2P8.d.ts +0 -127
  33. package/dist/Table-DSFYzrpU.d.mts +0 -129
  34. package/dist/Table-DSFYzrpU.d.ts +0 -129
  35. package/dist/Table-DmfNNnuD.d.mts +0 -86
  36. package/dist/Table-DmfNNnuD.d.ts +0 -86
  37. package/dist/Table-DoCPt3ri.d.mts +0 -129
  38. package/dist/Table-DoCPt3ri.d.ts +0 -129
  39. package/dist/chunk-27LRL4RO.mjs +0 -428
  40. package/dist/chunk-2IT3XM7C.mjs +0 -473
  41. package/dist/chunk-3HXZIFV6.mjs +0 -438
  42. package/dist/chunk-4JX54OKI.mjs +0 -627
  43. package/dist/chunk-53O7JM5I.mjs +0 -424
  44. package/dist/chunk-5JXIJTAS.mjs +0 -448
  45. package/dist/chunk-5OUMKJWI.mjs +0 -301
  46. package/dist/chunk-5PMUTA6S.mjs +0 -303
  47. package/dist/chunk-5PQ43JFX.mjs +0 -440
  48. package/dist/chunk-62VAYFZA.mjs +0 -437
  49. package/dist/chunk-6ON32H2N.mjs +0 -431
  50. package/dist/chunk-6RIZXTFP.mjs +0 -290
  51. package/dist/chunk-6XIT27XY.mjs +0 -269
  52. package/dist/chunk-772C454L.mjs +0 -438
  53. package/dist/chunk-7L267Y4P.mjs +0 -429
  54. package/dist/chunk-7WSVCE2C.mjs +0 -269
  55. package/dist/chunk-ANJI6SPV.mjs +0 -283
  56. package/dist/chunk-BFFLWW7N.mjs +0 -250
  57. package/dist/chunk-C5VYFNVC.mjs +0 -441
  58. package/dist/chunk-CDYPIUWU.mjs +0 -681
  59. package/dist/chunk-DL7BZMGE.mjs +0 -295
  60. package/dist/chunk-DXPVJNGY.mjs +0 -284
  61. package/dist/chunk-FTL3PFC2.mjs +0 -438
  62. package/dist/chunk-G4P6XGQX.mjs +0 -278
  63. package/dist/chunk-GGWY2SYX.mjs +0 -452
  64. package/dist/chunk-GZ4P7OL3.mjs +0 -429
  65. package/dist/chunk-I6GLPWHS.mjs +0 -278
  66. package/dist/chunk-IPVJEGDI.mjs +0 -476
  67. package/dist/chunk-J4YYP4IZ.mjs +0 -0
  68. package/dist/chunk-J5JDQ4R6.mjs +0 -278
  69. package/dist/chunk-K2A4TWA3.mjs +0 -430
  70. package/dist/chunk-L3L42SIL.mjs +0 -429
  71. package/dist/chunk-LRNKIRH3.mjs +0 -289
  72. package/dist/chunk-MA23J4WQ.mjs +0 -430
  73. package/dist/chunk-N4DPPZVJ.mjs +0 -269
  74. package/dist/chunk-PQ3B2FEB.mjs +0 -249
  75. package/dist/chunk-QQA7KWAJ.mjs +0 -477
  76. package/dist/chunk-QRGHJP7U.mjs +0 -437
  77. package/dist/chunk-QU73KNTT.mjs +0 -452
  78. package/dist/chunk-RC6IGURJ.mjs +0 -428
  79. package/dist/chunk-SKPCOHON.mjs +0 -473
  80. package/dist/chunk-SRKN7WS7.mjs +0 -448
  81. package/dist/chunk-T43CWNOG.mjs +0 -283
  82. package/dist/chunk-TE5EOIIW.mjs +0 -301
  83. package/dist/chunk-TQDZWJZP.mjs +0 -269
  84. package/dist/chunk-UAGSPM3T.mjs +0 -288
  85. package/dist/chunk-UC4NTBDH.mjs +0 -439
  86. package/dist/chunk-UPSQTJJ4.mjs +0 -294
  87. package/dist/chunk-V3CHJHUX.mjs +0 -424
  88. package/dist/chunk-X3NDICAU.mjs +0 -284
  89. package/dist/chunk-XECXKSTC.mjs +0 -453
  90. package/dist/chunk-XIVTXS3Y.mjs +0 -439
  91. package/dist/chunk-ZGV6QMVM.mjs +0 -437
package/package.json CHANGED
@@ -1,16 +1,27 @@
1
1
  {
2
2
  "name": "@itilite/lumina-ui",
3
- "version": "1.2.2",
3
+ "version": "1.2.21",
4
4
  "description": "Itilite Lumina Design System UI Components",
5
- "sideEffects": false,
6
- "license": "MIT",
7
- "main": "./dist/index.js",
8
- "module": "./dist/index.mjs",
9
- "types": "./dist/index.d.ts",
10
- "files": [
11
- "dist",
12
- "README.md"
5
+ "keywords": [
6
+ "react",
7
+ "ui",
8
+ "components",
9
+ "design-system",
10
+ "itilite",
11
+ "lumina"
13
12
  ],
13
+ "homepage": "https://github.com/Itilite/design-system#readme",
14
+ "bugs": {
15
+ "url": "https://github.com/Itilite/design-system/issues"
16
+ },
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "git+https://github.com/Itilite/design-system.git",
20
+ "directory": "packages/ui"
21
+ },
22
+ "license": "MIT",
23
+ "author": "Itilite",
24
+ "type": "commonjs",
14
25
  "exports": {
15
26
  ".": {
16
27
  "types": "./dist/index.d.ts",
@@ -24,24 +35,12 @@
24
35
  },
25
36
  "./styles.css": "./dist/styles.css"
26
37
  },
27
- "repository": {
28
- "type": "git",
29
- "url": "git+https://github.com/Itilite/design-system.git",
30
- "directory": "packages/ui"
31
- },
32
- "keywords": [
33
- "react",
34
- "ui",
35
- "components",
36
- "design-system",
37
- "itilite",
38
- "lumina"
38
+ "main": "./dist/index.js",
39
+ "types": "./dist/index.d.ts",
40
+ "files": [
41
+ "dist",
42
+ "README.md"
39
43
  ],
40
- "author": "Itilite",
41
- "bugs": {
42
- "url": "https://github.com/Itilite/design-system/issues"
43
- },
44
- "homepage": "https://github.com/Itilite/design-system#readme",
45
44
  "scripts": {
46
45
  "build": "tsup",
47
46
  "dev": "tsup --watch",
@@ -77,5 +76,7 @@
77
76
  "dayjs": "^1.11.0",
78
77
  "react": "^18.2.0",
79
78
  "@ant-design/icons": "^5.0.1"
80
- }
79
+ },
80
+ "sideEffects": false,
81
+ "module": "./dist/index.mjs"
81
82
  }
@@ -1,59 +0,0 @@
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,59 +0,0 @@
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,64 +0,0 @@
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
- activePreset?: string;
15
- }
16
- interface PresetOption {
17
- label: string;
18
- key: string;
19
- getRange: () => (Date | null)[];
20
- }
21
- interface TimezoneOption {
22
- label: string;
23
- value: string;
24
- }
25
- interface DateRangePickerProps {
26
- /** Controlled value for the date range */
27
- value?: DateRangeValue;
28
- /** Called when the user clicks "Done" */
29
- onChange?: (value: DateRangeValue) => void;
30
- /** Called on every selection change (live) */
31
- onRangeChange?: (value: DateRangeValue) => void;
32
- /** Label for the confirm button. Defaults to "Done" */
33
- confirmLabel?: string;
34
- /** Additional class name for the root wrapper */
35
- className?: string;
36
- /** Whether the picker is disabled */
37
- disabled?: boolean;
38
- /** Disable dates before today */
39
- disablePastDates?: boolean;
40
- /** Minimum selectable date (ISO string) */
41
- minDate?: string | null;
42
- /** Maximum selectable date (ISO string) */
43
- maxDate?: string | null;
44
- /** Show a single calendar instead of two */
45
- showSingleCalendar?: boolean;
46
- /** Id prefix for accessibility */
47
- id?: string;
48
- defaultTimezone?: string;
49
- isTimezoneDisabled?: boolean;
50
- timezoneOptions?: TimezoneOption[];
51
- /** Initial active preset key. Defaults to "custom". e.g. "this-month", "yesterday" */
52
- defaultPreset?: string;
53
- /** Custom presets passed from parent */
54
- presets?: PresetOption[];
55
- hidePresets?: boolean;
56
- hideFooter?: boolean;
57
- }
58
-
59
- declare function AdvancedDateRangePicker({ value, onChange, confirmLabel, className, disabled, disablePastDates, minDate, maxDate, showSingleCalendar, id, defaultTimezone, isTimezoneDisabled, timezoneOptions, defaultPreset, presets, }: DateRangePickerProps): React.JSX.Element;
60
- declare namespace AdvancedDateRangePicker {
61
- var displayName: string;
62
- }
63
-
64
- 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,64 +0,0 @@
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
- activePreset?: string;
15
- }
16
- interface PresetOption {
17
- label: string;
18
- key: string;
19
- getRange: () => (Date | null)[];
20
- }
21
- interface TimezoneOption {
22
- label: string;
23
- value: string;
24
- }
25
- interface DateRangePickerProps {
26
- /** Controlled value for the date range */
27
- value?: DateRangeValue;
28
- /** Called when the user clicks "Done" */
29
- onChange?: (value: DateRangeValue) => void;
30
- /** Called on every selection change (live) */
31
- onRangeChange?: (value: DateRangeValue) => void;
32
- /** Label for the confirm button. Defaults to "Done" */
33
- confirmLabel?: string;
34
- /** Additional class name for the root wrapper */
35
- className?: string;
36
- /** Whether the picker is disabled */
37
- disabled?: boolean;
38
- /** Disable dates before today */
39
- disablePastDates?: boolean;
40
- /** Minimum selectable date (ISO string) */
41
- minDate?: string | null;
42
- /** Maximum selectable date (ISO string) */
43
- maxDate?: string | null;
44
- /** Show a single calendar instead of two */
45
- showSingleCalendar?: boolean;
46
- /** Id prefix for accessibility */
47
- id?: string;
48
- defaultTimezone?: string;
49
- isTimezoneDisabled?: boolean;
50
- timezoneOptions?: TimezoneOption[];
51
- /** Initial active preset key. Defaults to "custom". e.g. "this-month", "yesterday" */
52
- defaultPreset?: string;
53
- /** Custom presets passed from parent */
54
- presets?: PresetOption[];
55
- hidePresets?: boolean;
56
- hideFooter?: boolean;
57
- }
58
-
59
- declare function AdvancedDateRangePicker({ value, onChange, confirmLabel, className, disabled, disablePastDates, minDate, maxDate, showSingleCalendar, id, defaultTimezone, isTimezoneDisabled, timezoneOptions, defaultPreset, presets, }: DateRangePickerProps): React.JSX.Element;
60
- declare namespace AdvancedDateRangePicker {
61
- var displayName: string;
62
- }
63
-
64
- 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,62 +0,0 @@
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
- activePreset?: string;
15
- }
16
- interface PresetOption {
17
- label: string;
18
- key: string;
19
- getRange: () => (Date | null)[];
20
- }
21
- interface TimezoneOption {
22
- label: string;
23
- value: string;
24
- }
25
- interface DateRangePickerProps {
26
- /** Controlled value for the date range */
27
- value?: DateRangeValue;
28
- /** Called when the user clicks "Done" */
29
- onChange?: (value: DateRangeValue) => void;
30
- /** Called on every selection change (live) */
31
- onRangeChange?: (value: DateRangeValue) => void;
32
- /** Label for the confirm button. Defaults to "Done" */
33
- confirmLabel?: string;
34
- /** Additional class name for the root wrapper */
35
- className?: string;
36
- /** Whether the picker is disabled */
37
- disabled?: boolean;
38
- /** Disable dates before today */
39
- disablePastDates?: boolean;
40
- /** Minimum selectable date (ISO string) */
41
- minDate?: string | null;
42
- /** Maximum selectable date (ISO string) */
43
- maxDate?: string | null;
44
- /** Show a single calendar instead of two */
45
- showSingleCalendar?: boolean;
46
- /** Id prefix for accessibility */
47
- id?: string;
48
- defaultTimezone?: string;
49
- isTimezoneDisabled?: boolean;
50
- timezoneOptions?: TimezoneOption[];
51
- /** Initial active preset key. Defaults to "custom". e.g. "this-month", "yesterday" */
52
- defaultPreset?: string;
53
- /** Custom presets passed from parent */
54
- presets?: PresetOption[];
55
- }
56
-
57
- declare function AdvancedDateRangePicker({ value, onChange, confirmLabel, className, disabled, disablePastDates, minDate, maxDate, showSingleCalendar, id, defaultTimezone, isTimezoneDisabled, timezoneOptions, defaultPreset, presets, }: DateRangePickerProps): React.JSX.Element;
58
- declare namespace AdvancedDateRangePicker {
59
- var displayName: string;
60
- }
61
-
62
- 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,62 +0,0 @@
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
- activePreset?: string;
15
- }
16
- interface PresetOption {
17
- label: string;
18
- key: string;
19
- getRange: () => (Date | null)[];
20
- }
21
- interface TimezoneOption {
22
- label: string;
23
- value: string;
24
- }
25
- interface DateRangePickerProps {
26
- /** Controlled value for the date range */
27
- value?: DateRangeValue;
28
- /** Called when the user clicks "Done" */
29
- onChange?: (value: DateRangeValue) => void;
30
- /** Called on every selection change (live) */
31
- onRangeChange?: (value: DateRangeValue) => void;
32
- /** Label for the confirm button. Defaults to "Done" */
33
- confirmLabel?: string;
34
- /** Additional class name for the root wrapper */
35
- className?: string;
36
- /** Whether the picker is disabled */
37
- disabled?: boolean;
38
- /** Disable dates before today */
39
- disablePastDates?: boolean;
40
- /** Minimum selectable date (ISO string) */
41
- minDate?: string | null;
42
- /** Maximum selectable date (ISO string) */
43
- maxDate?: string | null;
44
- /** Show a single calendar instead of two */
45
- showSingleCalendar?: boolean;
46
- /** Id prefix for accessibility */
47
- id?: string;
48
- defaultTimezone?: string;
49
- isTimezoneDisabled?: boolean;
50
- timezoneOptions?: TimezoneOption[];
51
- /** Initial active preset key. Defaults to "custom". e.g. "this-month", "yesterday" */
52
- defaultPreset?: string;
53
- /** Custom presets passed from parent */
54
- presets?: PresetOption[];
55
- }
56
-
57
- declare function AdvancedDateRangePicker({ value, onChange, confirmLabel, className, disabled, disablePastDates, minDate, maxDate, showSingleCalendar, id, defaultTimezone, isTimezoneDisabled, timezoneOptions, defaultPreset, presets, }: DateRangePickerProps): React.JSX.Element;
58
- declare namespace AdvancedDateRangePicker {
59
- var displayName: string;
60
- }
61
-
62
- 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,64 +0,0 @@
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
- activePreset?: string;
15
- }
16
- interface PresetOption {
17
- label: string;
18
- key: string;
19
- getRange: () => (Date | null)[];
20
- }
21
- interface TimezoneOption {
22
- label: string;
23
- value: string;
24
- }
25
- interface DateRangePickerProps {
26
- /** Controlled value for the date range */
27
- value?: DateRangeValue;
28
- /** Called when the user clicks "Done" */
29
- onChange?: (value: DateRangeValue) => void;
30
- /** Called on every selection change (live) */
31
- onRangeChange?: (value: DateRangeValue) => void;
32
- /** Label for the confirm button. Defaults to "Done" */
33
- confirmLabel?: string;
34
- /** Additional class name for the root wrapper */
35
- className?: string;
36
- /** Whether the picker is disabled */
37
- disabled?: boolean;
38
- /** Disable dates before today */
39
- disablePastDates?: boolean;
40
- /** Minimum selectable date (ISO string) */
41
- minDate?: string | null;
42
- /** Maximum selectable date (ISO string) */
43
- maxDate?: string | null;
44
- /** Show a single calendar instead of two */
45
- showSingleCalendar?: boolean;
46
- /** Id prefix for accessibility */
47
- id?: string;
48
- defaultTimezone?: string;
49
- isTimezoneDisabled?: boolean;
50
- timezoneOptions?: TimezoneOption[];
51
- /** Initial active preset key. Defaults to "custom". e.g. "this-month", "yesterday" */
52
- defaultPreset?: string;
53
- /** Custom presets passed from parent */
54
- presets?: PresetOption[];
55
- hidePresets?: boolean;
56
- hideFooter?: boolean;
57
- }
58
-
59
- declare function AdvancedDateRangePicker({ value, onChange, confirmLabel, className, disabled, disablePastDates, minDate, maxDate, showSingleCalendar, id, defaultTimezone, isTimezoneDisabled, timezoneOptions, defaultPreset, presets, hidePresets, hideFooter, }: DateRangePickerProps): React.JSX.Element;
60
- declare namespace AdvancedDateRangePicker {
61
- var displayName: string;
62
- }
63
-
64
- 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,64 +0,0 @@
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
- activePreset?: string;
15
- }
16
- interface PresetOption {
17
- label: string;
18
- key: string;
19
- getRange: () => (Date | null)[];
20
- }
21
- interface TimezoneOption {
22
- label: string;
23
- value: string;
24
- }
25
- interface DateRangePickerProps {
26
- /** Controlled value for the date range */
27
- value?: DateRangeValue;
28
- /** Called when the user clicks "Done" */
29
- onChange?: (value: DateRangeValue) => void;
30
- /** Called on every selection change (live) */
31
- onRangeChange?: (value: DateRangeValue) => void;
32
- /** Label for the confirm button. Defaults to "Done" */
33
- confirmLabel?: string;
34
- /** Additional class name for the root wrapper */
35
- className?: string;
36
- /** Whether the picker is disabled */
37
- disabled?: boolean;
38
- /** Disable dates before today */
39
- disablePastDates?: boolean;
40
- /** Minimum selectable date (ISO string) */
41
- minDate?: string | null;
42
- /** Maximum selectable date (ISO string) */
43
- maxDate?: string | null;
44
- /** Show a single calendar instead of two */
45
- showSingleCalendar?: boolean;
46
- /** Id prefix for accessibility */
47
- id?: string;
48
- defaultTimezone?: string;
49
- isTimezoneDisabled?: boolean;
50
- timezoneOptions?: TimezoneOption[];
51
- /** Initial active preset key. Defaults to "custom". e.g. "this-month", "yesterday" */
52
- defaultPreset?: string;
53
- /** Custom presets passed from parent */
54
- presets?: PresetOption[];
55
- hidePresets?: boolean;
56
- hideFooter?: boolean;
57
- }
58
-
59
- declare function AdvancedDateRangePicker({ value, onChange, confirmLabel, className, disabled, disablePastDates, minDate, maxDate, showSingleCalendar, id, defaultTimezone, isTimezoneDisabled, timezoneOptions, defaultPreset, presets, hidePresets, hideFooter, }: DateRangePickerProps): React.JSX.Element;
60
- declare namespace AdvancedDateRangePicker {
61
- var displayName: string;
62
- }
63
-
64
- 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,60 +0,0 @@
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
- activePreset?: string;
15
- }
16
- interface PresetOption {
17
- label: string;
18
- key: string;
19
- getRange: () => (Date | null)[];
20
- }
21
- interface TimezoneOption {
22
- label: string;
23
- value: string;
24
- }
25
- interface DateRangePickerProps {
26
- /** Controlled value for the date range */
27
- value?: DateRangeValue;
28
- /** Called when the user clicks "Done" */
29
- onChange?: (value: DateRangeValue) => void;
30
- /** Called on every selection change (live) */
31
- onRangeChange?: (value: DateRangeValue) => void;
32
- /** Label for the confirm button. Defaults to "Done" */
33
- confirmLabel?: string;
34
- /** Additional class name for the root wrapper */
35
- className?: string;
36
- /** Whether the picker is disabled */
37
- disabled?: boolean;
38
- /** Disable dates before today */
39
- disablePastDates?: boolean;
40
- /** Minimum selectable date (ISO string) */
41
- minDate?: string | null;
42
- /** Maximum selectable date (ISO string) */
43
- maxDate?: string | null;
44
- /** Show a single calendar instead of two */
45
- showSingleCalendar?: boolean;
46
- /** Id prefix for accessibility */
47
- id?: string;
48
- defaultTimezone?: string;
49
- isTimezoneDisabled?: boolean;
50
- timezoneOptions?: TimezoneOption[];
51
- /** Initial active preset key. Defaults to "custom". e.g. "this-month", "yesterday" */
52
- defaultPreset?: string;
53
- }
54
-
55
- declare function AdvancedDateRangePicker({ value, onChange, confirmLabel, className, disabled, disablePastDates, minDate, maxDate, showSingleCalendar, id, defaultTimezone, isTimezoneDisabled, timezoneOptions, defaultPreset, }: DateRangePickerProps): React.JSX.Element;
56
- declare namespace AdvancedDateRangePicker {
57
- var displayName: string;
58
- }
59
-
60
- export { AdvancedDateRangePicker as A, type DateRangePickerProps as D, type PresetOption as P, type TimeValue as T, type DateRangeValue as a, type TimezoneOption as b };