@theroutingcompany/components 0.0.18-alpha.10 → 0.0.18-alpha.12

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.18-alpha.10",
3
+ "version": "0.0.18-alpha.12",
4
4
  "description": "The Routing Company Components",
5
5
  "main": "./dist/trc-components.umd.js",
6
6
  "module": "./dist/trc-components.es.js",
@@ -1,7 +1,7 @@
1
- import type { CollectionChildren } from '@react-types/shared';
2
- import React from 'react';
3
- import { useMultiSelectState } from './useMultiSelectState';
4
- export { Item as MultiSelectItem, Section as MultiSelectSection, } from '@react-stately/collections';
1
+ import { CollectionChildren } from "@react-types/shared";
2
+ import React from "react";
3
+ import { useMultiSelectState } from "./useMultiSelectState";
4
+ export { Item as MultiSelectItem, Section as MultiSelectSection } from "@react-stately/collections";
5
5
  export type OptionItem = {
6
6
  children?: never;
7
7
  id: string;
@@ -25,9 +25,9 @@ type MultiSelectProps = {
25
25
  /** Sets the default open state of the field (uncontrolled). */
26
26
  defaultOpen?: boolean;
27
27
  /** The initial selected keys in the collection (uncontrolled). */
28
- defaultSelectedKeys?: Parameters<typeof useMultiSelectState>[number]['defaultSelectedKeys'];
28
+ defaultSelectedKeys?: Parameters<typeof useMultiSelectState>["0"]["defaultSelectedKeys"];
29
29
  /** The item keys that are disabled. These items cannot be selected, focused, or otherwise interacted with. */
30
- disabledKeys?: Parameters<typeof useMultiSelectState>[number]['disabledKeys'];
30
+ disabledKeys?: Parameters<typeof useMultiSelectState>["0"]["disabledKeys"];
31
31
  excludeFromTabOrder?: boolean;
32
32
  items: Option[];
33
33
  /** Whether the field can be emptied. */
@@ -43,13 +43,13 @@ type MultiSelectProps = {
43
43
  /** The content to display as the placeholder. */
44
44
  placeholder?: string;
45
45
  /** Handler that is called when the select's open state changes. */
46
- onOpenChange?: Parameters<typeof useMultiSelectState>['0']['onOpenChange'];
46
+ onOpenChange?: Parameters<typeof useMultiSelectState>["0"]["onOpenChange"];
47
47
  /** Handler that is called when the selection changes. */
48
- onSelectionChange?: Parameters<typeof useMultiSelectState>['0']['onSelectionChange'];
48
+ onSelectionChange?: Parameters<typeof useMultiSelectState>["0"]["onSelectionChange"];
49
49
  /** The currently selected keys in the collection (controlled). */
50
- selectedKeys?: Parameters<typeof useMultiSelectState>['0']['selectedKeys'];
50
+ selectedKeys?: Parameters<typeof useMultiSelectState>["0"]["selectedKeys"];
51
51
  /** The type of selection that is allowed in the collection. */
52
- selectionMode: 'single' | 'multiple';
52
+ selectionMode: "single" | "multiple";
53
53
  tooltipContent?: string;
54
54
  tooltipIcon?: string;
55
55
  };