@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theroutingcompany/components",
3
- "version": "0.0.26",
3
+ "version": "0.0.27",
4
4
  "description": "The Routing Company Components",
5
5
  "main": "./dist/trc-components.umd.js",
6
6
  "module": "./dist/trc-components.es.js",
@@ -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
- import { type TODOFIXME } from 'helpers';
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: TODOFIXME) => void;
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 {};