@theroutingcompany/components 0.0.12 → 0.0.14-3713.0

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.12",
3
+ "version": "0.0.14-3713.0",
4
4
  "description": "The Routing Company Components",
5
5
  "main": "./dist/trc-components.umd.js",
6
6
  "module": "./dist/trc-components.es.js",
@@ -21,7 +21,6 @@
21
21
  "types"
22
22
  ],
23
23
  "scripts": {
24
- "postpublish": "npm run chromatic",
25
24
  "prepublish": "npm run build",
26
25
  "format": "prettier ./dist/**/*.{js,css,scss} --write --no-config",
27
26
  "clean": "rimraf ./dist ./types",
@@ -29,11 +28,11 @@
29
28
  "build-storybook": "storybook build",
30
29
  "lint": "eslint --cache src",
31
30
  "lint:css": "stylelint src/components/**/*.{tsx,ts}",
32
- "prepublishOnly": "npm run build",
33
31
  "build:types": "tsc --incremental",
34
32
  "build:components": "vite build",
35
33
  "build": "npm run clean && npm run build:components && npm run build:types",
36
- "chromatic": "npx chromatic --project-token=df154c51409f"
34
+ "chromatic": "npx chromatic --project-token=df154c51409f",
35
+ "deploy": "npm run chromatic"
37
36
  },
38
37
  "sideEffects": false,
39
38
  "license": "ISC",
@@ -75,9 +74,9 @@
75
74
  },
76
75
  "peerDependencies": {
77
76
  "@material-ui/icons": "^4.11.3",
78
- "react": " ^18.0.0",
79
- "react-dom": " ^18.0.0",
80
- "react-is": " ^18.0.0",
77
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0",
78
+ "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0",
79
+ "react-is": "^16.8.0 || ^17.0.0 || ^18.0.0",
81
80
  "styled-components": "^5.3.6"
82
81
  },
83
82
  "devDependencies": {
@@ -96,9 +95,9 @@
96
95
  "@types/eslint": "^8.4.10",
97
96
  "@types/mime-types": "^2.1.1",
98
97
  "@types/prettier": "^2.7.2",
99
- "@types/react": "^18.0.0",
100
- "@types/react-dom": "^18.0.0",
101
- "@types/react-is": "^17.0.0",
98
+ "@types/react": "^17.0.0 || ^18.0.0",
99
+ "@types/react-dom": "^17.0.0 || ^18.0.0",
100
+ "@types/react-is": "^17.0.0 || ^18.0.0",
102
101
  "@types/styled-components": "^5.1.26",
103
102
  "@typescript-eslint/eslint-plugin": "^5.48.1",
104
103
  "@typescript-eslint/parser": "^5.48.1",
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ type MenuProps = {
3
+ items: string[];
4
+ };
5
+ export declare function Menu({ items, ...selectProps }: MenuProps): JSX.Element;
6
+ export {};
@@ -1,5 +1,5 @@
1
- export * from './AlertDialog/AlertDialog';
2
1
  export * from './AccessibleIcon/AccessibleIcon';
2
+ export * from './AlertDialog/AlertDialog';
3
3
  export * from './Breadcrumbs/Breadcrumbs';
4
4
  export * from './Button/Button';
5
5
  export * from './Checkbox/Checkbox';
@@ -12,16 +12,17 @@ export * from './IconButton/IconButton';
12
12
  export * from './Input/NumberInput/NumberInput';
13
13
  export * from './Input/TextInput/TextInput';
14
14
  export * from './Label/Label';
15
- export * from './Tabs/Tabs';
16
- export * from './Toast/Toast';
15
+ export * from './Menu/Menu';
17
16
  export * from './Page/Page';
18
17
  export * from './Paginator/Paginator';
19
18
  export * from './Popover/Popover';
20
19
  export * from './RadioGroup/RadioGroup';
21
- export * from './Select/Select';
22
20
  export * from './Search/Search';
21
+ export * from './Select/Select';
23
22
  export * from './Switch/Switch';
23
+ export * from './Tabs/Tabs';
24
24
  export * from './Text/Text';
25
25
  export * from './Title/Title';
26
- export * from './Tooltip/Tooltip';
26
+ export * from './Toast/Toast';
27
27
  export * from './Tooltip/IconTooltip';
28
+ export * from './Tooltip/Tooltip';