@theroutingcompany/components 0.0.21 → 0.0.22-alpha.2

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.21",
3
+ "version": "0.0.22-alpha.2",
4
4
  "description": "The Routing Company Components",
5
5
  "main": "./dist/trc-components.umd.js",
6
6
  "module": "./dist/trc-components.es.js",
@@ -57,6 +57,7 @@
57
57
  "@radix-ui/react-tooltip": "^1.0.5",
58
58
  "@react-aria/breadcrumbs": "^3.5.1",
59
59
  "@react-aria/button": "^3.7.1",
60
+ "@react-aria/calendar": "^3.2.0",
60
61
  "@react-aria/combobox": "^3.6.0",
61
62
  "@react-aria/datepicker": "^3.4.0",
62
63
  "@react-aria/dnd": "^3.2.0",
@@ -75,6 +76,7 @@
75
76
  "@react-aria/selection": "^3.14.0",
76
77
  "@react-aria/textfield": "^3.9.1",
77
78
  "@react-aria/utils": "^3.16.0",
79
+ "@react-stately/calendar": "^3.2.0",
78
80
  "@react-stately/collections": "^3.7.0",
79
81
  "@react-stately/combobox": "^3.5.0",
80
82
  "@react-stately/datepicker": "^3.4.0",
@@ -86,7 +88,9 @@
86
88
  "@react-stately/searchfield": "^3.4.1",
87
89
  "@react-stately/select": "^3.5.0",
88
90
  "@react-stately/selection": "^3.13.0",
91
+ "@react-types/calendar": "^3.2.0",
89
92
  "@react-types/combobox": "^3.6.1",
93
+ "@react-types/datepicker": "^3.3.0",
90
94
  "@react-types/overlays": "^3.7.1",
91
95
  "@react-types/select": "^3.8.0",
92
96
  "@tanstack/react-table": "^8.8.5",
@@ -105,11 +105,11 @@ export declare const Box: import("styled-components").StyledComponent<"div", any
105
105
  pb?: RemoveVendorProperties<Property.PaddingBottom<"0" | "300" | "400" | "500" | "600" | "100" | "200" | "450" | "550" | "650" | "700" | "750" | "800" | "850" | "900">> | undefined;
106
106
  /** padding-left */
107
107
  pl?: RemoveVendorProperties<Property.PaddingLeft<"0" | "300" | "400" | "500" | "600" | "100" | "200" | "450" | "550" | "650" | "700" | "750" | "800" | "850" | "900">> | undefined;
108
- borderRadius?: Property.BorderRadius<"0" | "400" | "circle" | "100" | "200" | "800" | "pill"> | undefined;
109
- borderTopLeftRadius?: Property.BorderTopLeftRadius<"0" | "400" | "circle" | "100" | "200" | "800" | "pill"> | undefined;
110
- borderTopRightRadius?: Property.BorderTopRightRadius<"0" | "400" | "circle" | "100" | "200" | "800" | "pill"> | undefined;
111
- borderBottomLeftRadius?: Property.BorderBottomLeftRadius<"0" | "400" | "circle" | "100" | "200" | "800" | "pill"> | undefined;
112
- borderBottomRightRadius?: Property.BorderBottomRightRadius<"0" | "400" | "circle" | "100" | "200" | "800" | "pill"> | undefined;
108
+ borderRadius?: Property.BorderRadius<"circle" | "0" | "400" | "100" | "200" | "800" | "pill"> | undefined;
109
+ borderTopLeftRadius?: Property.BorderTopLeftRadius<"circle" | "0" | "400" | "100" | "200" | "800" | "pill"> | undefined;
110
+ borderTopRightRadius?: Property.BorderTopRightRadius<"circle" | "0" | "400" | "100" | "200" | "800" | "pill"> | undefined;
111
+ borderBottomLeftRadius?: Property.BorderBottomLeftRadius<"circle" | "0" | "400" | "100" | "200" | "800" | "pill"> | undefined;
112
+ borderBottomRightRadius?: Property.BorderBottomRightRadius<"circle" | "0" | "400" | "100" | "200" | "800" | "pill"> | undefined;
113
113
  /** box-shadow */
114
114
  elevation?: ElevationToken | undefined;
115
115
  flexShrink?: RemoveVendorProperties<Property.FlexShrink> | undefined;
@@ -13,6 +13,6 @@ export type BreadcrumbItemProps<ExtraProps = unknown> = RenameMisprefixedProps<A
13
13
  export declare const BreadcrumbItem: import("react").ForwardRefExoticComponent<Omit<AriaBreadcrumbItemProps, "isDisabled"> & {
14
14
  disabled?: boolean | undefined;
15
15
  } & {
16
- LinkComponent?: "a" | JSX.Element | undefined;
16
+ LinkComponent?: JSX.Element | "a" | undefined;
17
17
  href?: string | undefined;
18
18
  } & import("react").RefAttributes<HTMLAnchorElement>>;
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ import { type CalendarDate } from '@internationalized/date';
3
+ import type { RangeCalendarState } from '@react-stately/calendar';
4
+ type CalendarCellProps = {
5
+ state: RangeCalendarState;
6
+ date: CalendarDate;
7
+ currentMonth: CalendarDate;
8
+ disabled?: boolean | undefined;
9
+ today: CalendarDate;
10
+ };
11
+ export declare function CalendarCell({ state, date, today, disabled, currentMonth, }: CalendarCellProps): JSX.Element;
12
+ export {};
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import { type DateDuration } from '@internationalized/date';
3
+ import type { RangeCalendarState } from '@react-stately/calendar';
4
+ type CalendarGridProps = {
5
+ state: RangeCalendarState;
6
+ offset?: DateDuration;
7
+ timeZone: string;
8
+ };
9
+ export declare function CalendarGrid({ state, timeZone, offset, }: CalendarGridProps): JSX.Element;
10
+ export {};
@@ -0,0 +1,9 @@
1
+ import type { DOMAttributes } from 'react';
2
+ import type { AriaButtonProps } from '@react-aria/button';
3
+ import type { RangeCalendarState } from '@react-stately/calendar';
4
+ export declare function CalendarHeader({ state, calendarProps, prevButtonProps, nextButtonProps, }: {
5
+ state: RangeCalendarState;
6
+ calendarProps: DOMAttributes<any>;
7
+ prevButtonProps: AriaButtonProps;
8
+ nextButtonProps: AriaButtonProps;
9
+ }): JSX.Element;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import { type DateValue } from '@internationalized/date';
3
+ import { type RangeCalendarProps } from '@react-aria/calendar';
4
+ export declare function RangeCalendar({ timeZone, ...props }: RangeCalendarProps<DateValue> & {
5
+ timeZone: string;
6
+ }): JSX.Element;
@@ -0,0 +1,4 @@
1
+ export * from "./CalendarCell";
2
+ export * from "./CalendarGrid";
3
+ export * from "./CalendarHeader";
4
+ export * from "./RangeCalendar";
@@ -37,11 +37,11 @@ export declare const Flex: import("styled-components").StyledComponent<"div", an
37
37
  pr?: import("../../helpers/tokenUtils").RemoveVendorProperties<Property.PaddingRight<"0" | "300" | "400" | "500" | "600" | "100" | "200" | "450" | "550" | "650" | "700" | "750" | "800" | "850" | "900">> | undefined;
38
38
  pb?: import("../../helpers/tokenUtils").RemoveVendorProperties<Property.PaddingBottom<"0" | "300" | "400" | "500" | "600" | "100" | "200" | "450" | "550" | "650" | "700" | "750" | "800" | "850" | "900">> | undefined;
39
39
  pl?: import("../../helpers/tokenUtils").RemoveVendorProperties<Property.PaddingLeft<"0" | "300" | "400" | "500" | "600" | "100" | "200" | "450" | "550" | "650" | "700" | "750" | "800" | "850" | "900">> | undefined;
40
- borderRadius?: Property.BorderRadius<"0" | "400" | "circle" | "100" | "200" | "800" | "pill"> | undefined;
41
- borderTopLeftRadius?: Property.BorderTopLeftRadius<"0" | "400" | "circle" | "100" | "200" | "800" | "pill"> | undefined;
42
- borderTopRightRadius?: Property.BorderTopRightRadius<"0" | "400" | "circle" | "100" | "200" | "800" | "pill"> | undefined;
43
- borderBottomLeftRadius?: Property.BorderBottomLeftRadius<"0" | "400" | "circle" | "100" | "200" | "800" | "pill"> | undefined;
44
- borderBottomRightRadius?: Property.BorderBottomRightRadius<"0" | "400" | "circle" | "100" | "200" | "800" | "pill"> | undefined;
40
+ borderRadius?: Property.BorderRadius<"circle" | "0" | "400" | "100" | "200" | "800" | "pill"> | undefined;
41
+ borderTopLeftRadius?: Property.BorderTopLeftRadius<"circle" | "0" | "400" | "100" | "200" | "800" | "pill"> | undefined;
42
+ borderTopRightRadius?: Property.BorderTopRightRadius<"circle" | "0" | "400" | "100" | "200" | "800" | "pill"> | undefined;
43
+ borderBottomLeftRadius?: Property.BorderBottomLeftRadius<"circle" | "0" | "400" | "100" | "200" | "800" | "pill"> | undefined;
44
+ borderBottomRightRadius?: Property.BorderBottomRightRadius<"circle" | "0" | "400" | "100" | "200" | "800" | "pill"> | undefined;
45
45
  elevation?: import("../../helpers/tokenUtils").ElevationToken | undefined;
46
46
  flexShrink?: import("../../helpers/tokenUtils").RemoveVendorProperties<Property.FlexShrink> | undefined;
47
47
  flexGrow?: import("../../helpers/tokenUtils").RemoveVendorProperties<Property.FlexGrow> | undefined;
@@ -23,13 +23,13 @@ export declare const TextAreaFormControl: import("react").ForwardRefExoticCompon
23
23
  } & ComponentPropsWithoutStyles<"textarea"> & {
24
24
  label?: ReactNode;
25
25
  pattern?: string | undefined;
26
- type?: "text" | (string & {}) | "search" | "tel" | "url" | "email" | "password" | undefined;
26
+ type?: "search" | "text" | (string & {}) | "tel" | "url" | "email" | "password" | undefined;
27
27
  name?: string | undefined;
28
28
  defaultValue?: string | undefined;
29
29
  autoFocus?: boolean | undefined;
30
30
  id?: string | undefined;
31
31
  placeholder?: string | undefined;
32
- inputMode?: "text" | "none" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
32
+ inputMode?: "search" | "text" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
33
33
  'aria-activedescendant'?: string | undefined;
34
34
  'aria-autocomplete'?: "list" | "none" | "inline" | "both" | undefined;
35
35
  'aria-describedby'?: string | undefined;
@@ -1,36 +1,37 @@
1
- export * from './AlertDialog/AlertDialog';
2
1
  export * from './AccessibleIcon/AccessibleIcon';
2
+ export * from './AlertDialog/AlertDialog';
3
3
  export * from './Badge/Badge';
4
4
  export * from './Box/Box';
5
5
  export * from './Breadcrumbs/Breadcrumbs';
6
6
  export * from './Button/Button';
7
+ export * from './Calendar';
7
8
  export * from './Button/ButtonBase';
8
9
  export * from './Checkbox/Checkbox';
9
- export * from './DropdownMenu/DropdownMenu';
10
10
  export * from './Dialog/Dialog';
11
- export * from './Flex/Flex';
11
+ export * from './DropdownMenu/DropdownMenu';
12
12
  export * from './Fieldset/Fieldset';
13
13
  export * from './FileUpload/FileUpload';
14
+ export * from './Flex/Flex';
14
15
  export * from './FormControl/FormControl';
15
16
  export * from './Heading/Heading';
16
- export * from './NavigationMenu/NavigationMenu';
17
17
  export * from './IconButton/IconButton';
18
18
  export * from './Input/NumberInput/NumberInput';
19
19
  export * from './Input/TextInput/TextInput';
20
+ export * from './Input/TimeInput/TimeInput';
20
21
  export * from './Label/Label';
21
- export * from './Tabs/Tabs';
22
- export * from './Toast/Toast';
22
+ export * from './MultiSelect/MultiSelect';
23
+ export * from './NavigationMenu/NavigationMenu';
23
24
  export * from './Page/Page';
24
25
  export * from './Page/PageHeader';
25
26
  export * from './Paginator/Paginator';
26
27
  export * from './Popover/Popover';
27
28
  export * from './RadioGroup/RadioGroup';
28
29
  export * from './Search/Search';
30
+ export * from './SingleSelect/SingleSelect';
29
31
  export * from './Switch/Switch';
32
+ export * from './Tabs/Tabs';
30
33
  export * from './Text/Text';
31
34
  export * from './Title/Title';
32
- export * from './Tooltip/Tooltip';
33
- export * from './MultiSelect/MultiSelect';
34
- export * from './SingleSelect/SingleSelect';
35
- export * from './Input/TimeInput/TimeInput';
35
+ export * from './Toast/Toast';
36
36
  export * from './Tooltip/IconTooltip';
37
+ export * from './Tooltip/Tooltip';