@theroutingcompany/components 0.0.26 → 0.0.27
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/README.md +1 -1
- package/dist/trc-components.es.js +394 -372
- package/dist/trc-components.es.js.map +1 -1
- package/dist/trc-components.umd.js +67 -67
- package/dist/trc-components.umd.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/types/components/Calendar/TimeDateSelect.d.ts +13 -2
package/package.json
CHANGED
|
@@ -1,14 +1,25 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
4
|
-
|
|
4
|
+
interface TimeDateSelectOutput {
|
|
5
|
+
day: number;
|
|
6
|
+
month: number;
|
|
7
|
+
year: number;
|
|
8
|
+
hour: DatePart;
|
|
9
|
+
minute: DatePart;
|
|
10
|
+
second: DatePart;
|
|
11
|
+
millisecond: DatePart;
|
|
12
|
+
timeZone: string;
|
|
13
|
+
}
|
|
5
14
|
export interface TimeDateSelectProps {
|
|
6
15
|
dateString: string;
|
|
7
16
|
timeZone: string;
|
|
8
|
-
onChange?: (date:
|
|
17
|
+
onChange?: (date: TimeDateSelectOutput) => void;
|
|
9
18
|
}
|
|
19
|
+
type DatePart = number | undefined;
|
|
10
20
|
export declare const TimeDateSelect: React.ForwardRefExoticComponent<TimeDateSelectProps & React.RefAttributes<HTMLDivElement>>;
|
|
11
21
|
export interface TimeDateSelectItemProps extends SelectPrimitive.SelectItemProps {
|
|
12
22
|
children: ReactNode;
|
|
13
23
|
}
|
|
14
24
|
export declare const TimeDateSelectItem: React.ForwardRefExoticComponent<TimeDateSelectItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
25
|
+
export {};
|