@theroutingcompany/components 0.0.10 → 0.0.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.10",
3
+ "version": "0.0.12",
4
4
  "description": "The Routing Company Components",
5
5
  "main": "./dist/trc-components.umd.js",
6
6
  "module": "./dist/trc-components.es.js",
@@ -23,7 +23,6 @@
23
23
  "scripts": {
24
24
  "postpublish": "npm run chromatic",
25
25
  "prepublish": "npm run build",
26
- "publish": "npm publish --access public",
27
26
  "format": "prettier ./dist/**/*.{js,css,scss} --write --no-config",
28
27
  "clean": "rimraf ./dist ./types",
29
28
  "storybook": "storybook dev -p 6006",
@@ -76,9 +75,9 @@
76
75
  },
77
76
  "peerDependencies": {
78
77
  "@material-ui/icons": "^4.11.3",
79
- "react": "^16.8.0 || ^17.0.0 || ^18.0.0",
80
- "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0",
81
- "react-is": "^16.8.0 || ^17.0.0 || ^18.0.0",
78
+ "react": " ^18.0.0",
79
+ "react-dom": " ^18.0.0",
80
+ "react-is": " ^18.0.0",
82
81
  "styled-components": "^5.3.6"
83
82
  },
84
83
  "devDependencies": {
@@ -97,9 +96,9 @@
97
96
  "@types/eslint": "^8.4.10",
98
97
  "@types/mime-types": "^2.1.1",
99
98
  "@types/prettier": "^2.7.2",
100
- "@types/react": "^17.0.0 || ^18.0.0",
101
- "@types/react-dom": "^17.0.0 || ^18.0.0",
102
- "@types/react-is": "^17.0.0 || ^18.0.0",
99
+ "@types/react": "^18.0.0",
100
+ "@types/react-dom": "^18.0.0",
101
+ "@types/react-is": "^17.0.0",
103
102
  "@types/styled-components": "^5.1.26",
104
103
  "@typescript-eslint/eslint-plugin": "^5.48.1",
105
104
  "@typescript-eslint/parser": "^5.48.1",
@@ -1,4 +1,4 @@
1
- export type InputSize = "small" | "large";
1
+ export type InputSize = 'small' | 'large';
2
2
  export type InputBaseProps = {
3
3
  paddingSize?: InputSize;
4
4
  };
@@ -1,12 +1,12 @@
1
1
  import type { ReactNode } from 'react';
2
2
  import type { ComponentPropsWithoutStyles } from 'helpers/typeHelpers';
3
- interface LabelProps extends ComponentPropsWithoutStyles<'label'> {
3
+ export interface LabelProps extends ComponentPropsWithoutStyles<'label'> {
4
4
  size?: 'small' | 'medium' | 'large';
5
5
  bold?: boolean;
6
6
  /** Screen Reader Only */
7
7
  srOnly?: boolean;
8
- display?: 'flex' | 'inline-flex' | 'inline' | 'black';
8
+ display?: 'flex' | 'inline-flex' | 'inline' | 'block' | undefined;
9
9
  children: ReactNode;
10
+ as?: "legend" | "span" | undefined;
10
11
  }
11
12
  export declare function Label({ children, bold, size, display, srOnly, ...remainingProps }: LabelProps): JSX.Element;
12
- export {};
@@ -24,3 +24,4 @@ export * from './Switch/Switch';
24
24
  export * from './Text/Text';
25
25
  export * from './Title/Title';
26
26
  export * from './Tooltip/Tooltip';
27
+ export * from './Tooltip/IconTooltip';
File without changes
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- import { type AriaProgressBarProps } from '@react-aria/progress';
3
- type ProgressBarProps = {
4
- width?: number | undefined;
5
- } & AriaProgressBarProps;
6
- export declare function ProgressBar(props: ProgressBarProps): JSX.Element;
7
- export {};