@touchtech/baselayer-ui 2.6.1 → 2.6.3-alpha

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.
Files changed (71) hide show
  1. package/README.md +79 -79
  2. package/dist/components/Button/Button.d.ts +22 -22
  3. package/dist/components/Button/__tests__/Button.test.d.ts +1 -1
  4. package/dist/components/Button/index.d.ts +1 -1
  5. package/dist/components/ButtonLink/ButtonLink.d.ts +21 -21
  6. package/dist/components/ButtonLink/__tests__/ButtonLink.test.d.ts +1 -1
  7. package/dist/components/ButtonLink/index.d.ts +1 -1
  8. package/dist/components/ColorPicker/ColorPicker.d.ts +9 -10
  9. package/dist/components/ColorPicker/__tests__/ColorPicker.test.d.ts +1 -1
  10. package/dist/components/ColorPicker/index.d.ts +1 -1
  11. package/dist/components/ColorSwatch/ColorSwatch.d.ts +8 -9
  12. package/dist/components/ColorSwatch/__tests__/ColorSwatch.test.d.ts +1 -1
  13. package/dist/components/ColorSwatch/index.d.ts +1 -1
  14. package/dist/components/ConfirmationModal/ConfirmationModal.d.ts +15 -15
  15. package/dist/components/ConfirmationModal/__tests__/ConfirmationModal.test.d.ts +1 -1
  16. package/dist/components/ConfirmationModal/index.d.ts +1 -1
  17. package/dist/components/FloatingPanel/FloatingPanel.d.ts +13 -13
  18. package/dist/components/FloatingPanel/__tests__/FloatingPanel.test.d.ts +1 -1
  19. package/dist/components/FloatingPanel/index.d.ts +1 -1
  20. package/dist/components/Icon/Icon.d.ts +8 -9
  21. package/dist/components/Icon/__tests__/Icon.test.d.ts +1 -1
  22. package/dist/components/Icon/index.d.ts +1 -1
  23. package/dist/components/IconButton/IconButton.d.ts +17 -18
  24. package/dist/components/IconButton/__tests__/IconButton.test.d.ts +1 -1
  25. package/dist/components/IconButton/index.d.ts +1 -1
  26. package/dist/components/IconButtonLink/IconButtonLink.d.ts +18 -18
  27. package/dist/components/IconButtonLink/__tests__/IconButtonLink.test.d.ts +1 -1
  28. package/dist/components/IconButtonLink/index.d.ts +1 -1
  29. package/dist/components/Image/Image.d.ts +13 -13
  30. package/dist/components/Image/__tests__/Image.test.d.ts +1 -1
  31. package/dist/components/Image/index.d.ts +1 -1
  32. package/dist/components/Label/Label.d.ts +5 -6
  33. package/dist/components/Label/__tests/Label.test.d.ts +1 -1
  34. package/dist/components/Label/index.d.ts +1 -1
  35. package/dist/components/ListView/ListView.d.ts +8 -8
  36. package/dist/components/ListView/ListViewItem.d.ts +14 -14
  37. package/dist/components/ListView/__tests__/ListView.test.d.ts +1 -1
  38. package/dist/components/ListView/index.d.ts +3 -3
  39. package/dist/components/Menu/Menu.d.ts +14 -14
  40. package/dist/components/Menu/MenuContainer.d.ts +10 -10
  41. package/dist/components/Menu/MenuItem.d.ts +9 -9
  42. package/dist/components/Menu/MenuLinkItem.d.ts +8 -8
  43. package/dist/components/Menu/__tests__/Menu.test.d.ts +1 -1
  44. package/dist/components/Menu/__tests__/MenuLinkItem.test.d.ts +1 -1
  45. package/dist/components/Menu/index.d.ts +4 -4
  46. package/dist/components/Modal/Modal.d.ts +9 -9
  47. package/dist/components/Modal/__tests__/Modal.test.d.ts +1 -1
  48. package/dist/components/Modal/index.d.ts +1 -1
  49. package/dist/components/Overlay/Overlay.d.ts +9 -9
  50. package/dist/components/Overlay/__tests__/Overlay.test.d.ts +1 -1
  51. package/dist/components/Overlay/index.d.ts +1 -1
  52. package/dist/components/TextInput/TextInput.d.ts +15 -15
  53. package/dist/components/TextInput/__tests__/TextInput.test.d.ts +1 -1
  54. package/dist/components/TextInput/index.d.ts +1 -1
  55. package/dist/components/Toast/Toast.d.ts +13 -13
  56. package/dist/components/Toast/ToastContainer.d.ts +6 -6
  57. package/dist/components/Toast/__tests__/Toast.test.d.ts +1 -1
  58. package/dist/components/Toast/__tests__/ToastContainer.test.d.ts +1 -1
  59. package/dist/components/Toast/index.d.ts +2 -2
  60. package/dist/components/Video/Video.d.ts +21 -21
  61. package/dist/components/Video/__tests__/Video.test.d.ts +1 -1
  62. package/dist/components/Video/index.d.ts +1 -1
  63. package/dist/hooks/__tests__/useToggle.test.d.ts +1 -1
  64. package/dist/hooks/index.d.ts +2 -2
  65. package/dist/hooks/useOutsideClick.d.ts +4 -4
  66. package/dist/hooks/useToggle.d.ts +1 -1
  67. package/dist/index.d.ts +19 -19
  68. package/dist/index.js +2 -2
  69. package/dist/styles.css +1188 -1189
  70. package/dist/types/index.d.ts +7 -7
  71. package/package.json +94 -92
package/README.md CHANGED
@@ -1,79 +1,79 @@
1
- # Baselayer UI - React Component Library
2
-
3
- https://baselayer-ui.touchtech.com
4
-
5
- ## Included Hooks
6
- - useOutsideClick
7
- - useToggle
8
-
9
- ## Development
10
-
11
- Run `npm install` to install the project dependencies. Since this library is used by multiple Digital Showroom projects it's important that we create
12
- a global [link](https://docs.npmjs.com/cli/link) so we can use this local copy in the other projects during development. Run `npm link` to do so.
13
-
14
- Run `npm start` to open our [Storybook](https://storybook.js.org).
15
-
16
- ### Testing
17
-
18
- We test our components using [Jest](http://jestjs.io) and [React Testing Library](https://github.com/testing-library/react-testing-library). Tests are placed in the `__tests__` directory in the same directory as the component.
19
-
20
- ```
21
- src/
22
- ├── Button
23
- │ ├── Button.js
24
- │ ├── Button.module.css
25
- │ ├── Button.stories.js
26
- │ ├── __tests__
27
- │ │ └── Button.test.js
28
- │ └── index.js
29
- └── index.js
30
-
31
- 2 directories, 6 files
32
- ```
33
-
34
- You can execute `npm run test` or `npm test` as a shorthand to run all tests. Running `npm test` every time you change a file gets old pretty fast. Thankfully we can mitigate that by entering watch mode.
35
-
36
- - `npm test -- --watch`
37
-
38
- ### Linting & Formatting
39
-
40
- We lint our code using [ESlint](https://eslint.org). For your convinience there are a few [npm scripts](https://docs.npmjs.com/misc/scripts) available.
41
-
42
- - `npm run lint` - Run the linter over the entire codebase and report problems.
43
- - `npm run lint-fix` - Run the linter over the entire codebase and automatically fix problems.
44
-
45
- [ESlint](https://eslint.org) also have editor integrations, see [editors](https://eslint.org/docs/user-guide/integrations#editors) for instructions on how to set up your editor.
46
-
47
- We format our code using [Prettier](https://prettier.io). For your convinience there are a few [npm scripts](https://docs.npmjs.com/misc/scripts) available.
48
-
49
- - `npm run format` - Run the formatter over the entire codebase and report any formatting issues.
50
- - `npm run format-fix` - Run the formatter over the entire codebase and automatically format the code.
51
-
52
- [Prettier](https://prettier.io) also have editor integrations, see [editors](https://prettier.io/docs/en/editors.html) for instructions on how to setup your editor.
53
-
54
- Since linting and formatting is such a common task, you can execute `npm run check` to check for both linting problems and formatting issues simultaneously. Execute `npm run fix` to automatically fix both.
55
-
56
- ### CSS
57
-
58
- Each component can have a related CSS file. The CSS file should end with the extension `.module.css` and is treated as a [CSS Module](https://github.com/css-modules/css-modules). Whenever a `.module.css` file is imported, its definitions
59
- are only available locally to the component importing it. When referencing class names from a CSS Module use camelCase. E.g., `.button-small` becomes `buttonSmall`.
60
-
61
- **Example**
62
-
63
- ```css
64
- /* Button.module.css */
65
- .button-small {
66
- }
67
- ```
68
-
69
- ```javascript
70
- // Button.js
71
- import React from "react";
72
- import styles from "./Button.module.css";
73
-
74
- function Button({ children }) {
75
- return <button className={styles.buttonSmall}>{children}</button>;
76
- }
77
-
78
- export default Button;
79
- ```
1
+ # Baselayer UI - React Component Library
2
+
3
+ https://baselayer-ui.touchtech.com
4
+
5
+ ## Included Hooks
6
+ - useOutsideClick
7
+ - useToggle
8
+
9
+ ## Development
10
+
11
+ Run `npm install` to install the project dependencies. Since this library is used by multiple Digital Showroom projects it's important that we create
12
+ a global [link](https://docs.npmjs.com/cli/link) so we can use this local copy in the other projects during development. Run `npm link` to do so.
13
+
14
+ Run `npm start` to open our [Storybook](https://storybook.js.org).
15
+
16
+ ### Testing
17
+
18
+ We test our components using [Jest](http://jestjs.io) and [React Testing Library](https://github.com/testing-library/react-testing-library). Tests are placed in the `__tests__` directory in the same directory as the component.
19
+
20
+ ```
21
+ src/
22
+ ├── Button
23
+ │ ├── Button.js
24
+ │ ├── Button.module.css
25
+ │ ├── Button.stories.js
26
+ │ ├── __tests__
27
+ │ │ └── Button.test.js
28
+ │ └── index.js
29
+ └── index.js
30
+
31
+ 2 directories, 6 files
32
+ ```
33
+
34
+ You can execute `npm run test` or `npm test` as a shorthand to run all tests. Running `npm test` every time you change a file gets old pretty fast. Thankfully we can mitigate that by entering watch mode.
35
+
36
+ - `npm test -- --watch`
37
+
38
+ ### Linting & Formatting
39
+
40
+ We lint our code using [ESlint](https://eslint.org). For your convinience there are a few [npm scripts](https://docs.npmjs.com/misc/scripts) available.
41
+
42
+ - `npm run lint` - Run the linter over the entire codebase and report problems.
43
+ - `npm run lint-fix` - Run the linter over the entire codebase and automatically fix problems.
44
+
45
+ [ESlint](https://eslint.org) also have editor integrations, see [editors](https://eslint.org/docs/user-guide/integrations#editors) for instructions on how to set up your editor.
46
+
47
+ We format our code using [Prettier](https://prettier.io). For your convinience there are a few [npm scripts](https://docs.npmjs.com/misc/scripts) available.
48
+
49
+ - `npm run format` - Run the formatter over the entire codebase and report any formatting issues.
50
+ - `npm run format-fix` - Run the formatter over the entire codebase and automatically format the code.
51
+
52
+ [Prettier](https://prettier.io) also have editor integrations, see [editors](https://prettier.io/docs/en/editors.html) for instructions on how to setup your editor.
53
+
54
+ Since linting and formatting is such a common task, you can execute `npm run check` to check for both linting problems and formatting issues simultaneously. Execute `npm run fix` to automatically fix both.
55
+
56
+ ### CSS
57
+
58
+ Each component can have a related CSS file. The CSS file should end with the extension `.module.css` and is treated as a [CSS Module](https://github.com/css-modules/css-modules). Whenever a `.module.css` file is imported, its definitions
59
+ are only available locally to the component importing it. When referencing class names from a CSS Module use camelCase. E.g., `.button-small` becomes `buttonSmall`.
60
+
61
+ **Example**
62
+
63
+ ```css
64
+ /* Button.module.css */
65
+ .button-small {
66
+ }
67
+ ```
68
+
69
+ ```javascript
70
+ // Button.js
71
+ import React from "react";
72
+ import styles from "./Button.module.css";
73
+
74
+ function Button({ children }) {
75
+ return <button className={styles.buttonSmall}>{children}</button>;
76
+ }
77
+
78
+ export default Button;
79
+ ```
@@ -1,22 +1,22 @@
1
- import React, { ReactNode } from "react";
2
- import { Size } from "../../types";
3
- declare type ButtonProps = {
4
- children: ReactNode;
5
- className?: string;
6
- disabled?: boolean;
7
- inverted?: boolean;
8
- rounded?: boolean;
9
- noShadow?: boolean;
10
- noPadding?: boolean;
11
- noBorder?: boolean;
12
- transparent?: boolean;
13
- stretchHorizontally?: boolean;
14
- stretchVertically?: boolean;
15
- onClick?: (event: React.SyntheticEvent) => void;
16
- size?: Size;
17
- type?: "submit" | "reset" | "button";
18
- align?: "left" | "center";
19
- offsetSides?: Array<"left" | "right">;
20
- };
21
- declare function Button({ children, className, onClick, disabled, inverted, rounded, noShadow, noPadding, noBorder, transparent, stretchHorizontally, stretchVertically, offsetSides, align, size, type, }: ButtonProps): JSX.Element;
22
- export default Button;
1
+ import React, { ReactNode } from "react";
2
+ import { Size } from "../../types";
3
+ declare type ButtonProps = {
4
+ children: ReactNode;
5
+ className?: string;
6
+ disabled?: boolean;
7
+ inverted?: boolean;
8
+ rounded?: boolean;
9
+ noShadow?: boolean;
10
+ noPadding?: boolean;
11
+ noBorder?: boolean;
12
+ transparent?: boolean;
13
+ stretchHorizontally?: boolean;
14
+ stretchVertically?: boolean;
15
+ onClick?: (event: React.SyntheticEvent) => void;
16
+ size?: Size;
17
+ type?: "submit" | "reset" | "button";
18
+ align?: "left" | "center";
19
+ offsetSides?: Array<"left" | "right">;
20
+ };
21
+ declare function Button({ children, className, onClick, disabled, inverted, rounded, noShadow, noPadding, noBorder, transparent, stretchHorizontally, stretchVertically, offsetSides, align, size, type, }: ButtonProps): JSX.Element;
22
+ export default Button;
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1 +1 @@
1
- export { default as Button } from "./Button";
1
+ export { default as Button } from "./Button";
@@ -1,21 +1,21 @@
1
- import { ReactNode, ReactType } from "react";
2
- import { Size } from "../../types";
3
- declare type OffsetSide = "left" | "right";
4
- declare type ButtonLinkProps = {
5
- as?: ReactType;
6
- children: ReactNode;
7
- className?: string;
8
- inverted?: boolean;
9
- rounded?: boolean;
10
- transparent?: boolean;
11
- noShadow?: boolean;
12
- noPadding?: boolean;
13
- noBorder?: boolean;
14
- stretchHorizontally?: boolean;
15
- stretchVertically?: boolean;
16
- size?: Size;
17
- offsetSides?: Array<OffsetSide>;
18
- align?: "left" | "center";
19
- } | any;
20
- declare function ButtonLink({ as: Component, children, className, size, inverted, rounded, transparent, noShadow, noPadding, noBorder, stretchHorizontally, stretchVertically, offsetSides, align, ...props }: ButtonLinkProps): JSX.Element;
21
- export default ButtonLink;
1
+ import { ReactNode, ReactType } from "react";
2
+ import { Size } from "../../types";
3
+ declare type OffsetSide = "left" | "right";
4
+ declare type ButtonLinkProps = {
5
+ as?: ReactType;
6
+ children: ReactNode;
7
+ className?: string;
8
+ inverted?: boolean;
9
+ rounded?: boolean;
10
+ transparent?: boolean;
11
+ noShadow?: boolean;
12
+ noPadding?: boolean;
13
+ noBorder?: boolean;
14
+ stretchHorizontally?: boolean;
15
+ stretchVertically?: boolean;
16
+ size?: Size;
17
+ offsetSides?: Array<OffsetSide>;
18
+ align?: "left" | "center";
19
+ } | any;
20
+ declare function ButtonLink({ as: Component, children, className, size, inverted, rounded, transparent, noShadow, noPadding, noBorder, stretchHorizontally, stretchVertically, offsetSides, align, ...props }: ButtonLinkProps): JSX.Element;
21
+ export default ButtonLink;
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1 +1 @@
1
- export { default as ButtonLink } from "./ButtonLink";
1
+ export { default as ButtonLink } from "./ButtonLink";
@@ -1,10 +1,9 @@
1
- /// <reference types="react" />
2
- import { Color } from "../../types";
3
- declare type ColorPickerProps = {
4
- direction?: "horizontal" | "vertical";
5
- colors: Color[];
6
- onSelect: (color: Color) => void;
7
- selectedColor?: Color;
8
- };
9
- declare function ColorPicker({ colors, onSelect, selectedColor, direction }: ColorPickerProps): JSX.Element;
10
- export default ColorPicker;
1
+ import { Color } from "../../types";
2
+ declare type ColorPickerProps = {
3
+ direction?: "horizontal" | "vertical";
4
+ colors: Color[];
5
+ onSelect: (color: Color) => void;
6
+ selectedColor?: Color;
7
+ };
8
+ declare function ColorPicker({ colors, onSelect, selectedColor, direction }: ColorPickerProps): JSX.Element;
9
+ export default ColorPicker;
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1 +1 @@
1
- export { default as ColorPicker } from "./ColorPicker";
1
+ export { default as ColorPicker } from "./ColorPicker";
@@ -1,9 +1,8 @@
1
- /// <reference types="react" />
2
- import { Color } from "../../types";
3
- declare type ColorSwatchProps = {
4
- color: Color;
5
- isSelected?: boolean;
6
- onClick: () => void;
7
- };
8
- declare function ColorSwatch({ color, onClick, isSelected }: ColorSwatchProps): JSX.Element;
9
- export default ColorSwatch;
1
+ import { Color } from "../../types";
2
+ declare type ColorSwatchProps = {
3
+ color: Color;
4
+ isSelected?: boolean;
5
+ onClick: () => void;
6
+ };
7
+ declare function ColorSwatch({ color, onClick, isSelected }: ColorSwatchProps): JSX.Element;
8
+ export default ColorSwatch;
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1 +1 @@
1
- export { default as ColorSwatch } from "./ColorSwatch";
1
+ export { default as ColorSwatch } from "./ColorSwatch";
@@ -1,15 +1,15 @@
1
- import { ReactElement, ReactNode } from "react";
2
- declare type ConfirmationModalProps = {
3
- buttonsLeft?: ReactElement[];
4
- buttonsRight?: ReactElement[];
5
- children?: ReactNode;
6
- header: string;
7
- isOpen: boolean;
8
- noPadding?: boolean;
9
- onClose?: () => void;
10
- };
11
- declare function ConfirmationModal({ children, header, isOpen, buttonsLeft, buttonsRight, onClose, noPadding, }: ConfirmationModalProps): JSX.Element;
12
- declare namespace ConfirmationModal {
13
- var displayName: string;
14
- }
15
- export default ConfirmationModal;
1
+ import { ReactElement, ReactNode } from "react";
2
+ declare type ConfirmationModalProps = {
3
+ buttonsLeft?: ReactElement[];
4
+ buttonsRight?: ReactElement[];
5
+ children?: ReactNode;
6
+ header: string;
7
+ isOpen: boolean;
8
+ noPadding?: boolean;
9
+ onClose?: () => void;
10
+ };
11
+ declare function ConfirmationModal({ children, header, isOpen, buttonsLeft, buttonsRight, onClose, noPadding, }: ConfirmationModalProps): JSX.Element;
12
+ declare namespace ConfirmationModal {
13
+ var displayName: string;
14
+ }
15
+ export default ConfirmationModal;
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1 +1 @@
1
- export { default as ConfirmationModal } from "./ConfirmationModal";
1
+ export { default as ConfirmationModal } from "./ConfirmationModal";
@@ -1,13 +1,13 @@
1
- import { ReactNode } from "react";
2
- declare type Placement = {
3
- horizontal: "right" | "rightEdge" | "rightOnEdge" | "left" | "leftEdge" | "leftOnEdge" | "leftOnEdge" | "center";
4
- vertical: "top" | "topEdge" | "bottom" | "bottomEdge" | "bottomOnEdge" | "center";
5
- parent: "viewport" | "container";
6
- };
7
- declare type FloatingPanelProps = {
8
- children: ReactNode;
9
- layout?: "column" | "row";
10
- placement?: Placement;
11
- };
12
- declare function FloatingPanel({ children, layout, placement }: FloatingPanelProps): JSX.Element;
13
- export default FloatingPanel;
1
+ import { ReactNode } from "react";
2
+ declare type Placement = {
3
+ horizontal: "right" | "rightEdge" | "rightOnEdge" | "left" | "leftEdge" | "leftOnEdge" | "leftOnEdge" | "center";
4
+ vertical: "top" | "topEdge" | "bottom" | "bottomEdge" | "bottomOnEdge" | "center";
5
+ parent: "viewport" | "container";
6
+ };
7
+ declare type FloatingPanelProps = {
8
+ children: ReactNode;
9
+ layout?: "column" | "row";
10
+ placement?: Placement;
11
+ };
12
+ declare function FloatingPanel({ children, layout, placement }: FloatingPanelProps): JSX.Element;
13
+ export default FloatingPanel;
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1 +1 @@
1
- export { default as FloatingPanel } from "./FloatingPanel";
1
+ export { default as FloatingPanel } from "./FloatingPanel";
@@ -1,9 +1,8 @@
1
- /// <reference types="react" />
2
- declare type IconProps = {
3
- src: string;
4
- alt?: string;
5
- size?: "small" | "medium" | "large";
6
- inverted?: boolean;
7
- };
8
- declare function Icon({ src, alt, size, inverted }: IconProps): JSX.Element;
9
- export default Icon;
1
+ declare type IconProps = {
2
+ src: string;
3
+ alt?: string;
4
+ size?: "small" | "medium" | "large";
5
+ inverted?: boolean;
6
+ };
7
+ declare function Icon({ src, alt, size, inverted }: IconProps): JSX.Element;
8
+ export default Icon;
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1 +1 @@
1
- export { default as Icon } from "./Icon";
1
+ export { default as Icon } from "./Icon";
@@ -1,18 +1,17 @@
1
- /// <reference types="react" />
2
- declare type IconButtonProps = {
3
- className?: string;
4
- src: string;
5
- alt: string;
6
- disabled?: boolean;
7
- inverted?: boolean;
8
- noShadow?: boolean;
9
- noBorder?: boolean;
10
- transparent?: boolean;
11
- rounded?: boolean;
12
- onClick?: () => void;
13
- size?: "small" | "medium" | "large";
14
- type?: "submit" | "reset" | "button";
15
- offsetSides?: Array<"top" | "right" | "bottom" | "left">;
16
- };
17
- declare function IconButton({ className, src, alt, offsetSides, onClick, disabled, inverted, noShadow, noBorder, transparent, rounded, size, type, }: IconButtonProps): JSX.Element;
18
- export default IconButton;
1
+ declare type IconButtonProps = {
2
+ className?: string;
3
+ src: string;
4
+ alt: string;
5
+ disabled?: boolean;
6
+ inverted?: boolean;
7
+ noShadow?: boolean;
8
+ noBorder?: boolean;
9
+ transparent?: boolean;
10
+ rounded?: boolean;
11
+ onClick?: () => void;
12
+ size?: "small" | "medium" | "large";
13
+ type?: "submit" | "reset" | "button";
14
+ offsetSides?: Array<"top" | "right" | "bottom" | "left">;
15
+ };
16
+ declare function IconButton({ className, src, alt, offsetSides, onClick, disabled, inverted, noShadow, noBorder, transparent, rounded, size, type, }: IconButtonProps): JSX.Element;
17
+ export default IconButton;
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1 +1 @@
1
- export { default as IconButton } from "./IconButton";
1
+ export { default as IconButton } from "./IconButton";
@@ -1,18 +1,18 @@
1
- import { ReactType } from "react";
2
- import { Size } from "../../types";
3
- declare type OffsetSide = "top" | "right" | "bottom" | "left";
4
- declare type IconButtonLinkProps = {
5
- as?: ReactType;
6
- src: string;
7
- alt: string;
8
- className?: string;
9
- inverted?: boolean;
10
- rounded?: boolean;
11
- transparent?: boolean;
12
- noShadow?: boolean;
13
- noBorder?: boolean;
14
- size?: Size;
15
- offsetSides?: Array<OffsetSide>;
16
- } | any;
17
- declare function IconButtonLink({ as: Component, className, src, alt, inverted, noShadow, noBorder, transparent, rounded, offsetSides, size, ...props }: IconButtonLinkProps): JSX.Element;
18
- export default IconButtonLink;
1
+ import { ReactType } from "react";
2
+ import { Size } from "../../types";
3
+ declare type OffsetSide = "top" | "right" | "bottom" | "left";
4
+ declare type IconButtonLinkProps = {
5
+ as?: ReactType;
6
+ src: string;
7
+ alt: string;
8
+ className?: string;
9
+ inverted?: boolean;
10
+ rounded?: boolean;
11
+ transparent?: boolean;
12
+ noShadow?: boolean;
13
+ noBorder?: boolean;
14
+ size?: Size;
15
+ offsetSides?: Array<OffsetSide>;
16
+ } | any;
17
+ declare function IconButtonLink({ as: Component, className, src, alt, inverted, noShadow, noBorder, transparent, rounded, offsetSides, size, ...props }: IconButtonLinkProps): JSX.Element;
18
+ export default IconButtonLink;
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1 +1 @@
1
- export { default as IconButtonLink } from "./IconButtonLink";
1
+ export { default as IconButtonLink } from "./IconButtonLink";
@@ -1,13 +1,13 @@
1
- import React from "react";
2
- export declare const emptyImage = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=";
3
- declare type ImageProps = {
4
- src: string;
5
- alt?: string;
6
- srcWidth?: number;
7
- srcHeight?: number;
8
- children?: React.ReactNode;
9
- animation?: "fadeIn" | "scaleUp";
10
- layout?: "cover" | "contain" | "stretchHorizontally" | "stretchVertically";
11
- };
12
- declare function ImageComponent({ src, alt, srcWidth, srcHeight, children, animation, layout, }: ImageProps): JSX.Element;
13
- export default ImageComponent;
1
+ import React from "react";
2
+ export declare const emptyImage = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=";
3
+ declare type ImageProps = {
4
+ src: string;
5
+ alt?: string;
6
+ srcWidth?: number;
7
+ srcHeight?: number;
8
+ children?: React.ReactNode;
9
+ animation?: "fadeIn" | "scaleUp";
10
+ layout?: "cover" | "contain" | "stretchHorizontally" | "stretchVertically";
11
+ };
12
+ declare function ImageComponent({ src, alt, srcWidth, srcHeight, children, animation, layout, }: ImageProps): JSX.Element;
13
+ export default ImageComponent;
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1 +1 @@
1
- export { default as Image } from "./Image";
1
+ export { default as Image } from "./Image";
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
2
- declare type TextInputProps = {
3
- value: string;
4
- };
5
- declare function TextInput({ value }: TextInputProps): JSX.Element;
6
- export default TextInput;
1
+ declare type TextInputProps = {
2
+ value: string;
3
+ };
4
+ declare function TextInput({ value }: TextInputProps): JSX.Element;
5
+ export default TextInput;
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1 +1 @@
1
- export { default as Label } from "./Label";
1
+ export { default as Label } from "./Label";
@@ -1,8 +1,8 @@
1
- import { ReactNode } from "react";
2
- declare type ListViewProps = {
3
- children: ReactNode;
4
- className?: string;
5
- header?: string;
6
- };
7
- declare function ListView({ children, className, header }: ListViewProps): JSX.Element;
8
- export default ListView;
1
+ import { ReactNode } from "react";
2
+ declare type ListViewProps = {
3
+ children: ReactNode;
4
+ className?: string;
5
+ header?: string;
6
+ };
7
+ declare function ListView({ children, className, header }: ListViewProps): JSX.Element;
8
+ export default ListView;
@@ -1,14 +1,14 @@
1
- import { ReactNode } from "react";
2
- import { Size } from "../../types";
3
- declare type ListViewItemProps = {
4
- children: ReactNode;
5
- active?: boolean;
6
- disabled?: boolean;
7
- transparent?: boolean;
8
- noPadding?: boolean;
9
- size?: Size;
10
- align?: "left" | "center";
11
- onClick?: () => void;
12
- };
13
- declare function ListViewItem({ children, active, disabled, transparent, noPadding, size, align, onClick, }: ListViewItemProps): JSX.Element;
14
- export default ListViewItem;
1
+ import { ReactNode } from "react";
2
+ import { Size } from "../../types";
3
+ declare type ListViewItemProps = {
4
+ children: ReactNode;
5
+ active?: boolean;
6
+ disabled?: boolean;
7
+ transparent?: boolean;
8
+ noPadding?: boolean;
9
+ size?: Size;
10
+ align?: "left" | "center";
11
+ onClick?: () => void;
12
+ };
13
+ declare function ListViewItem({ children, active, disabled, transparent, noPadding, size, align, onClick, }: ListViewItemProps): JSX.Element;
14
+ export default ListViewItem;
@@ -1 +1 @@
1
- export {};
1
+ export {};