@theroutingcompany/components 0.0.73-alpha.3 → 0.0.74-alpha.1

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.73-alpha.3",
3
+ "version": "0.0.74-alpha.1",
4
4
  "description": "The Routing Company Components",
5
5
  "main": "./dist/trc-components.umd.js",
6
6
  "module": "./dist/trc-components.es.js",
@@ -50,7 +50,6 @@
50
50
  "@radix-ui/react-accessible-icon": "^1.0.3",
51
51
  "@radix-ui/react-accordion": "^1.1.2",
52
52
  "@radix-ui/react-alert-dialog": "^1.0.4",
53
- "@radix-ui/react-checkbox": "^1.0.4",
54
53
  "@radix-ui/react-collapsible": "^1.0.3",
55
54
  "@radix-ui/react-dialog": "^1.0.4",
56
55
  "@radix-ui/react-dropdown-menu": "^2.0.5",
@@ -67,8 +66,9 @@
67
66
  "@react-aria/breadcrumbs": "^3.5.2",
68
67
  "@react-aria/button": "^3.7.2",
69
68
  "@react-aria/calendar": "^3.3.0",
69
+ "@react-aria/checkbox": "^3.14.1",
70
70
  "@react-aria/combobox": "^3.6.1",
71
- "@react-aria/datepicker": "^3.9.3",
71
+ "@react-aria/datepicker": "^3.4.1",
72
72
  "@react-aria/dnd": "^3.2.1",
73
73
  "@react-aria/focus": "^3.12.1",
74
74
  "@react-aria/i18n": "^3.7.2",
@@ -88,7 +88,7 @@
88
88
  "@react-stately/calendar": "^3.2.1",
89
89
  "@react-stately/collections": "^3.8.0",
90
90
  "@react-stately/combobox": "^3.5.1",
91
- "@react-stately/datepicker": "^3.9.2",
91
+ "@react-stately/datepicker": "^3.4.1",
92
92
  "@react-stately/list": "^3.8.1",
93
93
  "@react-stately/menu": "^3.5.2",
94
94
  "@react-stately/numberfield": "^3.4.2",
@@ -97,10 +97,11 @@
97
97
  "@react-stately/searchfield": "^3.4.2",
98
98
  "@react-stately/select": "^3.5.1",
99
99
  "@react-stately/selection": "^3.13.1",
100
+ "@react-stately/toggle": "^3.7.2",
100
101
  "@react-stately/tree": "^3.7.6",
101
102
  "@react-types/calendar": "^3.2.1",
102
103
  "@react-types/combobox": "^3.6.2",
103
- "@react-types/datepicker": "^3.7.2",
104
+ "@react-types/datepicker": "^3.3.1",
104
105
  "@react-types/overlays": "^3.7.2",
105
106
  "@react-types/select": "^3.8.1",
106
107
  "@styled-system/prop-types": "^5.1.2",
@@ -1,6 +1,6 @@
1
1
  import * as AccordionPrimitive from '@radix-ui/react-accordion';
2
2
  import { AccordionItemProps } from '@radix-ui/react-accordion';
3
- import { CSSProperties, type ReactNode } from 'react';
3
+ import { type ReactNode } from 'react';
4
4
  export declare const SectionTitle: import("styled-components").StyledComponent<"span", any, {}, never>;
5
5
  export interface SectionHeaderProps extends AccordionPrimitive.AccordionHeaderProps {
6
6
  children: ReactNode;
@@ -11,9 +11,8 @@ export declare function SectionHeader({ children, icon, bold, ...rest }: Section
11
11
  type SectionItemProps = {
12
12
  children: ReactNode;
13
13
  includeBottomDivider?: boolean;
14
- style: CSSProperties;
15
14
  } & AccordionItemProps;
16
- export declare function SectionItem({ children, includeBottomDivider, style, ...rest }: SectionItemProps): import("react/jsx-runtime").JSX.Element;
15
+ export declare function SectionItem({ children, includeBottomDivider, ...rest }: SectionItemProps): import("react/jsx-runtime").JSX.Element;
17
16
  export interface AccordionProps {
18
17
  children: ReactNode;
19
18
  type: 'multiple' | 'single';
@@ -1,9 +1,9 @@
1
1
  /// <reference types="react" />
2
- import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
3
- export type CheckedState = CheckboxPrimitive.CheckedState;
4
- export type CheckboxProps = Omit<CheckboxPrimitive.CheckboxProps, 'defaultChecked'> & {
5
- invalid?: boolean;
6
- };
7
- export declare const Checkbox: import("react").ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps, "defaultChecked"> & {
8
- invalid?: boolean | undefined;
9
- } & import("react").RefAttributes<HTMLButtonElement>>;
2
+ import { type AriaCheckboxProps } from '@react-aria/checkbox';
3
+ export interface CheckboxProps extends AriaCheckboxProps {
4
+ dir?: 'ltr' | 'rtl';
5
+ children?: React.ReactNode;
6
+ onClick?: (e: React.MouseEvent) => void;
7
+ }
8
+ export declare const Checkbox: (props: CheckboxProps) => import("react/jsx-runtime").JSX.Element;
9
+ export default Checkbox;
@@ -0,0 +1 @@
1
+ export * from './Checkbox';
@@ -33,7 +33,7 @@ export declare const TextAreaFormControl: import("react").ForwardRefExoticCompon
33
33
  'aria-describedby'?: string | undefined;
34
34
  'aria-details'?: string | undefined;
35
35
  'aria-errormessage'?: string | undefined;
36
- 'aria-haspopup'?: boolean | "dialog" | "menu" | "grid" | "listbox" | "false" | "true" | "tree" | undefined;
36
+ 'aria-haspopup'?: boolean | "dialog" | "menu" | "grid" | "listbox" | "tree" | "true" | "false" | undefined;
37
37
  'aria-label'?: string | undefined;
38
38
  'aria-labelledby'?: string | undefined;
39
39
  onCopy?: import("react").ClipboardEventHandler<HTMLInputElement> | undefined;
@@ -1,11 +1,8 @@
1
1
  import { CalendarDateTime } from '@internationalized/date';
2
- import type { AriaDateFieldOptions } from '@react-aria/datepicker';
3
- import type { DateFieldStateOptions } from '@react-stately/datepicker';
4
2
  export declare const DateField: import("styled-components").StyledComponent<"div", any, {
5
3
  paddingSize: string;
6
- invalid?: boolean | undefined;
7
4
  }, never>;
8
- export type DateInputProps = {
5
+ export interface DateInputProps {
9
6
  defaultValue?: CalendarDateTime;
10
7
  date?: Date;
11
8
  label?: string;
@@ -13,5 +10,5 @@ export type DateInputProps = {
13
10
  granularity?: 'day' | 'hour' | 'minute';
14
11
  order?: string[];
15
12
  paddingSize?: string;
16
- } & AriaDateFieldOptions<CalendarDateTime> & Omit<DateFieldStateOptions<CalendarDateTime>, 'locale' | 'createCalendar'>;
13
+ }
17
14
  export declare function DateInput({ granularity, paddingSize, ...props }: DateInputProps): import("react/jsx-runtime").JSX.Element;
@@ -1,17 +1,17 @@
1
1
  import { type BoxProps } from 'components/Box';
2
- import type { ReactNode } from 'react';
2
+ import type { CSSProperties, ReactNode } from 'react';
3
3
  import type { ComponentPropsWithoutStyles } from '../../helpers/typeHelpers';
4
4
  export interface LabelProps extends ComponentPropsWithoutStyles<'label'>, Omit<BoxProps, 'color'> {
5
5
  size?: 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
6
6
  bold?: boolean;
7
- /** Screen Reader Only */
8
7
  srOnly?: boolean;
9
- display?: 'flex' | 'inline-flex' | 'inline' | 'block' | undefined;
8
+ display?: 'flex' | 'inline-flex' | 'inline' | 'block';
9
+ flexDirection?: 'row' | 'row-reverse';
10
10
  children: ReactNode;
11
11
  as?: 'legend' | 'span' | undefined;
12
- style?: Record<string, any>;
12
+ style?: CSSProperties;
13
13
  color?: string;
14
- pointer?: boolean;
14
+ pointer?: boolean | string;
15
15
  }
16
- export declare function Label({ children, bold, size, display, pointer, srOnly, style, color, ...remainingProps }: LabelProps): import("react/jsx-runtime").JSX.Element;
16
+ export declare function Label({ children, bold, size, display, flexDirection, pointer, srOnly, style, color, ...remainingProps }: LabelProps): import("react/jsx-runtime").JSX.Element;
17
17
  export default Label;