@theroutingcompany/components 0.0.19 → 0.0.20-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/dist/trc-components.es.js +6818 -8098
- package/dist/trc-components.es.js.map +1 -1
- package/dist/trc-components.umd.js +321 -421
- package/dist/trc-components.umd.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +7 -6
- package/types/components/DropdownMenu/DropdownMenu.d.ts +1 -1
- package/types/components/Page/Page.d.ts +1 -1
- package/types/components/SingleSelect/SingleSelect.d.ts +5 -3
- package/types/components/index.d.ts +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theroutingcompany/components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.20-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",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
],
|
|
23
23
|
"scripts": {
|
|
24
24
|
"prepublish": "npm run build",
|
|
25
|
-
"format": "prettier ./
|
|
25
|
+
"format": "prettier ./src/**/*.{ts,tsx} --write --no-config",
|
|
26
26
|
"clean": "rimraf ./dist ./types",
|
|
27
27
|
"storybook": "storybook dev -p 6006",
|
|
28
28
|
"build-storybook": "storybook build",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"deploy": "npm run chromatic"
|
|
36
36
|
},
|
|
37
37
|
"sideEffects": false,
|
|
38
|
-
"license": "
|
|
38
|
+
"license": "UNLICENSED",
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@internationalized/date": "3.1.0",
|
|
41
41
|
"@material-ui/icons": "^4.11.3",
|
|
@@ -122,15 +122,16 @@
|
|
|
122
122
|
"@types/react-dom": "^18.0.11",
|
|
123
123
|
"@types/react-is": "^17.0.3",
|
|
124
124
|
"@types/styled-components": "^5.1.26",
|
|
125
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
126
|
-
"@typescript-eslint/parser": "^5.
|
|
125
|
+
"@typescript-eslint/eslint-plugin": "^5.56.0",
|
|
126
|
+
"@typescript-eslint/parser": "^5.56.0",
|
|
127
127
|
"@vitejs/plugin-react": "^3.1.0",
|
|
128
128
|
"chromatic": "^6.17.1",
|
|
129
129
|
"eslint": "^8.35.0",
|
|
130
|
-
"eslint-config-prettier": "^8.
|
|
130
|
+
"eslint-config-prettier": "^8.8.0",
|
|
131
131
|
"eslint-plugin-jsx-a11y": "^6.7.1",
|
|
132
132
|
"eslint-plugin-react": "^7.32.2",
|
|
133
133
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
134
|
+
"eslint-plugin-simple-import-sort": "^10.0.0",
|
|
134
135
|
"eslint-plugin-storybook": "^0.6.11",
|
|
135
136
|
"postcss-styled-syntax": "^0.3.3",
|
|
136
137
|
"prettier": "^2.8.4",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
3
3
|
export type { DropdownMenuCheckboxItemProps, DropdownMenuContentProps, DropdownMenuItemIndicatorProps, DropdownMenuLabelProps, MenuSubTriggerProps, MenuSubContentProps, MenuSeparatorProps, } from '@radix-ui/react-dropdown-menu';
|
|
4
|
-
export declare
|
|
4
|
+
export declare const DropdownMenuContent: import("react").ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuContentProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
5
5
|
export declare const DropdownMenu: import("react").FC<DropdownMenuPrimitive.DropdownMenuProps>;
|
|
6
6
|
export declare const DropdownMenuPortal: import("react").FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
|
|
7
7
|
export declare const DropdownMenuGroup: import("react").ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -10,7 +10,7 @@ export declare const PageGrid: import("styled-components").StyledComponent<"div"
|
|
|
10
10
|
* | Description | CSS Variable | Default |
|
|
11
11
|
* |-------------|---------------------|---------|
|
|
12
12
|
* | Min. width | `--page-min-width` | 750px |
|
|
13
|
-
* | Ideal width | `--page-ideal-width`|
|
|
13
|
+
* | Ideal width | `--page-ideal-width`| 90% |
|
|
14
14
|
* | Max width | `--page-max-width` | 1600px |
|
|
15
15
|
*/
|
|
16
16
|
export declare const pageMinMaxWidth: import("styled-components").FlattenSimpleInterpolation;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { AriaSelectProps } from
|
|
3
|
-
export { Item as SingleSelectItem, Section as SingleSelectSection } from
|
|
2
|
+
import type { AriaSelectProps } from '@react-types/select';
|
|
3
|
+
export { Item as SingleSelectItem, Section as SingleSelectSection, } from '@react-stately/collections';
|
|
4
4
|
type SingleSelectProps<T> = AriaSelectProps<T> & {
|
|
5
5
|
placeholder?: string;
|
|
6
6
|
tooltipIcon?: string;
|
|
7
7
|
tooltipContent?: string;
|
|
8
8
|
};
|
|
9
|
-
export declare function
|
|
9
|
+
export declare function SingleSelect<T extends object>(props: SingleSelectProps<T> & {
|
|
10
|
+
hideLabel?: boolean | undefined;
|
|
11
|
+
}): JSX.Element;
|
|
@@ -24,7 +24,6 @@ export * from './Page/PageHeader';
|
|
|
24
24
|
export * from './Paginator/Paginator';
|
|
25
25
|
export * from './Popover/Popover';
|
|
26
26
|
export * from './RadioGroup/RadioGroup';
|
|
27
|
-
export * from './Select/Select';
|
|
28
27
|
export * from './Search/Search';
|
|
29
28
|
export * from './Switch/Switch';
|
|
30
29
|
export * from './Text/Text';
|