@blockle/blocks 0.1.0 → 0.2.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.
Files changed (113) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +43 -12
  3. package/dist/index.cjs +119 -0
  4. package/dist/index.d.ts +1 -28
  5. package/dist/index.mjs +119 -0
  6. package/dist/reset.css.cjs +5 -0
  7. package/dist/reset.css.d.ts +390 -0
  8. package/dist/reset.css.mjs +4 -0
  9. package/dist/styles/lib/css/atoms/atomicProperties.cjs +70 -0
  10. package/dist/styles/lib/css/atoms/atomicProperties.mjs +71 -0
  11. package/dist/styles/lib/css/atoms/breakpoints.cjs +11 -0
  12. package/dist/styles/lib/css/atoms/breakpoints.mjs +12 -0
  13. package/dist/styles/lib/css/atoms/sprinkles.css.cjs +45 -0
  14. package/dist/styles/lib/css/atoms/sprinkles.css.mjs +46 -0
  15. package/dist/styles/lib/css/reset/reset.css.cjs +37 -0
  16. package/dist/styles/lib/css/reset/reset.css.mjs +36 -0
  17. package/dist/styles/lib/css/theme/makeTheme.cjs +10 -0
  18. package/dist/styles/lib/css/theme/makeTheme.mjs +11 -0
  19. package/dist/styles/lib/css/theme/makeVanillaTheme.cjs +16 -0
  20. package/dist/styles/lib/css/theme/makeVanillaTheme.mjs +17 -0
  21. package/dist/styles/lib/css/theme/tokens.cjs +77 -0
  22. package/dist/styles/lib/css/theme/tokens.mjs +78 -0
  23. package/dist/styles/lib/css/theme/vars.css.cjs +9 -0
  24. package/dist/styles/lib/css/theme/vars.css.mjs +10 -0
  25. package/dist/styles/themes/momotaro/momotaroTheme.css.cjs +11 -0
  26. package/dist/styles/themes/momotaro/momotaroTheme.css.mjs +12 -0
  27. package/dist/styles/themes/momotaro/tokens.cjs +77 -0
  28. package/dist/styles/themes/momotaro/tokens.mjs +78 -0
  29. package/dist/themes/momotaro.cjs +4 -0
  30. package/dist/themes/momotaro.d.ts +1 -0
  31. package/dist/themes/momotaro.mjs +4 -0
  32. package/package.json +59 -79
  33. package/reset.css/index.d.ts +1 -0
  34. package/reset.css/package.json +5 -0
  35. package/themes/momotaro/index.d.ts +1 -0
  36. package/themes/momotaro/package.json +5 -0
  37. package/dist/Badge/Badge.d.ts +0 -7
  38. package/dist/Badge/Badge.spec.d.ts +0 -1
  39. package/dist/Badge/Badge.stories.d.ts +0 -1
  40. package/dist/Badge/index.d.ts +0 -1
  41. package/dist/Box/Box.d.ts +0 -10
  42. package/dist/Box/index.d.ts +0 -1
  43. package/dist/Button/Button.d.ts +0 -13
  44. package/dist/Button/Button.spec.d.ts +0 -1
  45. package/dist/Button/Button.stories.d.ts +0 -1
  46. package/dist/Button/index.d.ts +0 -1
  47. package/dist/Card/Card.d.ts +0 -11
  48. package/dist/Card/Card.spec.d.ts +0 -1
  49. package/dist/Card/Card.stories.d.ts +0 -1
  50. package/dist/Card/index.d.ts +0 -1
  51. package/dist/Dialog/Dialog.d.ts +0 -13
  52. package/dist/Dialog/index.d.ts +0 -1
  53. package/dist/Divider/Divider.d.ts +0 -4
  54. package/dist/Divider/index.d.ts +0 -1
  55. package/dist/Drawer/Drawer.d.ts +0 -10
  56. package/dist/Drawer/index.d.ts +0 -1
  57. package/dist/Dropdown/Dropdown.d.ts +0 -17
  58. package/dist/Dropdown/index.d.ts +0 -1
  59. package/dist/FlatButton/FlatButton.d.ts +0 -15
  60. package/dist/FlatButton/index.d.ts +0 -1
  61. package/dist/Grid/Grid.d.ts +0 -10
  62. package/dist/Grid/index.d.ts +0 -1
  63. package/dist/Icon/Icon.d.ts +0 -26
  64. package/dist/Icon/Icon.spec.d.ts +0 -1
  65. package/dist/Icon/index.d.ts +0 -1
  66. package/dist/IconButton/IconButton.d.ts +0 -12
  67. package/dist/IconButton/index.d.ts +0 -1
  68. package/dist/Inline/Inline.d.ts +0 -8
  69. package/dist/Inline/index.d.ts +0 -1
  70. package/dist/Link/Link.d.ts +0 -9
  71. package/dist/Link/index.d.ts +0 -1
  72. package/dist/Loader/Loader.d.ts +0 -4
  73. package/dist/Loader/index.d.ts +0 -1
  74. package/dist/OutlineButton/OutlineButton.d.ts +0 -12
  75. package/dist/OutlineButton/index.d.ts +0 -1
  76. package/dist/Panel/Panel.d.ts +0 -10
  77. package/dist/Panel/index.d.ts +0 -1
  78. package/dist/Paper/Paper.d.ts +0 -14
  79. package/dist/Paper/Paper.spec.d.ts +0 -1
  80. package/dist/Paper/index.d.ts +0 -1
  81. package/dist/RippleBox/RippleBox.d.ts +0 -8
  82. package/dist/RippleBox/createRipple.d.ts +0 -2
  83. package/dist/RippleBox/index.d.ts +0 -1
  84. package/dist/Stack/Stack.d.ts +0 -13
  85. package/dist/Stack/index.d.ts +0 -1
  86. package/dist/Tag/Tag.d.ts +0 -8
  87. package/dist/Tag/index.d.ts +0 -1
  88. package/dist/Text/Text.d.ts +0 -10
  89. package/dist/Text/Text.spec.d.ts +0 -1
  90. package/dist/Text/index.d.ts +0 -1
  91. package/dist/TextField/TextField.d.ts +0 -22
  92. package/dist/TextField/TextField.stories.d.ts +0 -1
  93. package/dist/TextField/index.d.ts +0 -1
  94. package/dist/blockle-blocks.esm.js +0 -823
  95. package/dist/blockle-blocks.js +0 -854
  96. package/dist/blocks.css +0 -2554
  97. package/dist/blocks.css.map +0 -1
  98. package/dist/cx.d.ts +0 -3
  99. package/dist/setupTests.d.ts +0 -1
  100. package/dist/useAnimationState/index.d.ts +0 -1
  101. package/dist/useAnimationState/useAnimationState.d.ts +0 -6
  102. package/dist/useFlip/animate.d.ts +0 -14
  103. package/dist/useFlip/index.d.ts +0 -1
  104. package/dist/useFlip/useFlip.d.ts +0 -8
  105. package/dist/useLayer/index.d.ts +0 -1
  106. package/dist/useLayer/useLayer.d.ts +0 -1
  107. package/dist/useStyles/blocks.d.ts +0 -34
  108. package/dist/useStyles/index.d.ts +0 -2
  109. package/dist/useStyles/useStyles.d.ts +0 -3
  110. package/dist/utils/animate/animateCss.d.ts +0 -11
  111. package/dist/utils/animate/index.d.ts +0 -1
  112. package/dist/utils/getEventPosition.d.ts +0 -6
  113. package/dist/utils/index.d.ts +0 -1
package/package.json CHANGED
@@ -1,88 +1,68 @@
1
1
  {
2
2
  "name": "@blockle/blocks",
3
- "version": "0.1.0",
4
- "description": "Blockle building Blocks",
5
- "scripts": {
6
- "start": "npm run build:ts -- -w | npm run build:types -- -w",
7
- "build": "npm run blocks && rm -rf ./dist/ && npm run build:ts && npm run build:types",
8
- "build:ts": "rollup -c",
9
- "build:types": "tsc -d --emitDeclarationOnly",
10
- "test": "jest",
11
- "lint": "eslint",
12
- "format": "prettier --write \"**/*\"",
13
- "storybook": "start-storybook -p 6006",
14
- "build-storybook": "build-storybook",
15
- "blocks": "ts-node-script ./scripts/build-styles.ts"
16
- },
17
- "husky": {
18
- "hooks": {
19
- "pre-commit": "pretty-quick --staged"
20
- }
3
+ "version": "0.2.1",
4
+ "description": "Blocks design system",
5
+ "repository": "git@github.com:Blockle/blocks.git",
6
+ "license": "MIT",
7
+ "author": "Niek Saarberg <n.saarberg@gmail.com>",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/index.mjs",
12
+ "require": "./dist/index.cjs"
13
+ },
14
+ "./reset.css": {
15
+ "types": "./dist/reset.css.d.ts",
16
+ "import": "./dist/reset.css.mjs",
17
+ "require": "./dist/reset.css.cjs"
18
+ },
19
+ "./themes/momotaro": {
20
+ "types": "./dist/themes/momotaro.d.ts",
21
+ "import": "./dist/themes/momotaro.mjs",
22
+ "require": "./dist/themes/momotaro.cjs"
23
+ },
24
+ "./package.json": "./package.json"
21
25
  },
22
- "main": "dist/blockle-blocks.js",
23
- "module": "dist/blockle-blocks.esm.js",
24
- "types": "dist/index.d.ts",
26
+ "main": "./dist/index.cjs",
27
+ "module": "./dist/index.mjs",
28
+ "types": "./dist/index.d.ts",
25
29
  "files": [
26
30
  "dist",
27
- "README.md"
31
+ "reset.css",
32
+ "themes/momotaro"
28
33
  ],
29
- "repository": "git@github.com:Blockle/blockle-blocks.git",
30
- "author": "Niek Saarberg",
31
- "license": "MIT",
32
- "devDependencies": {
33
- "@babel/core": "^7.13.10",
34
- "@blockle/blocks-builder": "^1.1.0",
35
- "@blockle/form": "^1.0.0",
36
- "@storybook/addon-actions": "^6.1.21",
37
- "@storybook/addon-info": "^5.2.8",
38
- "@storybook/addon-links": "^6.1.21",
39
- "@storybook/addons": "^6.1.21",
40
- "@storybook/react": "^6.1.21",
41
- "@svgr/rollup": "^5.1.0",
42
- "@testing-library/jest-dom": "^5.3.0",
43
- "@testing-library/react": "^11.2.5",
44
- "@types/history": "^4.7.3",
45
- "@types/jest": "^26.0.20",
46
- "@types/react": "^17.0.3",
47
- "@types/react-dom": "^17.0.2",
48
- "@typescript-eslint/eslint-plugin": "^4.18.0",
49
- "@typescript-eslint/parser": "^4.18.0",
50
- "awesome-typescript-loader": "^5.2.1",
51
- "babel-loader": "^8.0.6",
52
- "core-js": "^3.9.1",
53
- "eslint": "^7.22.0",
54
- "eslint-config-prettier": "^8.1.0",
55
- "eslint-plugin-prettier": "^3.1.2",
56
- "eslint-plugin-react": "^7.18.3",
57
- "eslint-plugin-react-hooks": "^4.2.0",
58
- "husky": "^4.2.3",
59
- "jest": "^26.6.3",
60
- "postcss": "^8.2.8",
61
- "postcss-import": "12.0.1",
62
- "postcss-preset-env": "^6.7.0",
63
- "postcss-reporter": "^7.0.2",
64
- "prettier": "^2.0.2",
65
- "pretty-quick": "^3.1.0",
66
- "react": "^17.0.1",
67
- "react-docgen-typescript-loader": "^3.6.0",
68
- "react-dom": "^17.0.1",
69
- "react-svg-loader": "^3.0.3",
70
- "rollup": "^2.41.2",
71
- "rollup-plugin-commonjs": "^10.1.0",
72
- "rollup-plugin-node-resolve": "^5.2.0",
73
- "rollup-plugin-postcss": "^4.0.0",
74
- "rollup-plugin-typescript2": "^0.30.0",
75
- "stylelint": "^13.12.0",
76
- "stylelint-config-standard": "^21.0.0",
77
- "stylelint-scss": "^3.13.0",
78
- "ts-jest": "^26.5.3",
79
- "ts-node": "^9.1.1",
80
- "typescript": "^4.2.3"
34
+ "scripts": {
35
+ "build": "crackle package",
36
+ "fix": "crackle fix",
37
+ "ts": "tsc --noemit --project ./tsconfig.json"
81
38
  },
82
- "peerDependencies": {
83
- "@blockle/form": "^1.0.0",
84
- "react": "^17.0.0",
85
- "react-dom": "^17.0.0"
39
+ "dependencies": {
40
+ "@radix-ui/react-polymorphic": "^0.0.14",
41
+ "@vanilla-extract/css": "^1.11.1",
42
+ "@vanilla-extract/css-utils": "^0.1.3",
43
+ "@vanilla-extract/sprinkles": "^1.6.0",
44
+ "react": "^18.2.0",
45
+ "react-dom": "^18.2.0"
46
+ },
47
+ "devDependencies": {
48
+ "@crackle/cli": "^0.12.0",
49
+ "@crackle/core": "^0.25.0",
50
+ "@types/react": "^18.2.13",
51
+ "@types/react-dom": "^18.2.6",
52
+ "@typescript-eslint/eslint-plugin": "^5.60.0",
53
+ "@typescript-eslint/parser": "^5.60.0",
54
+ "cross-env": "^7.0.3",
55
+ "eslint": "^8.43.0",
56
+ "eslint-config-prettier": "^8.8.0",
57
+ "eslint-plugin-jest": "^27.2.2",
58
+ "eslint-plugin-prettier": "^4.2.1",
59
+ "eslint-plugin-react": "^7.32.2",
60
+ "eslint-plugin-react-hooks": "^4.6.0",
61
+ "eslint-plugin-storybook": "^0.6.12",
62
+ "eslint-plugin-unicorn": "^47.0.0",
63
+ "prettier": "^2.8.8",
64
+ "typescript": "^5.1.3",
65
+ "vitest": "^0.32.2"
86
66
  },
87
- "dependencies": {}
67
+ "packageManager": "yarn@1.22.19"
88
68
  }
@@ -0,0 +1 @@
1
+ export * from "../dist/reset.css";
@@ -0,0 +1,5 @@
1
+ {
2
+ "main": "../dist/reset.css.cjs",
3
+ "module": "../dist/reset.css.mjs",
4
+ "types": "./index.d.ts"
5
+ }
@@ -0,0 +1 @@
1
+ export * from "../../dist/themes/momotaro";
@@ -0,0 +1,5 @@
1
+ {
2
+ "main": "../../dist/themes/momotaro.cjs",
3
+ "module": "../../dist/themes/momotaro.mjs",
4
+ "types": "./index.d.ts"
5
+ }
@@ -1,7 +0,0 @@
1
- import { FC, ReactNode } from 'react';
2
- import './badge.css';
3
- interface Props {
4
- children: ReactNode;
5
- }
6
- declare const Badge: FC<Props>;
7
- export default Badge;
@@ -1 +0,0 @@
1
- import '@testing-library/jest-dom/extend-expect';
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export { default as Badge } from './Badge';
package/dist/Box/Box.d.ts DELETED
@@ -1,10 +0,0 @@
1
- import { AllHTMLAttributes, ElementType, ReactNode } from 'react';
2
- import { StyleProps } from '../useStyles';
3
- interface Props extends StyleProps, Omit<AllHTMLAttributes<HTMLElement>, 'color' | 'width' | 'height'> {
4
- className?: string;
5
- children?: ReactNode;
6
- component?: ElementType;
7
- htmlFor?: string;
8
- }
9
- declare const Box: import("react").ForwardRefExoticComponent<Props & import("react").RefAttributes<HTMLElement>>;
10
- export default Box;
@@ -1 +0,0 @@
1
- export { default as Box } from './Box';
@@ -1,13 +0,0 @@
1
- import { FC, MouseEvent, ReactNode } from 'react';
2
- import { PickStyleProps } from '../useStyles';
3
- import './button.css';
4
- interface Props extends PickStyleProps<'width'> {
5
- children: ReactNode;
6
- disabled?: boolean;
7
- onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
8
- type?: 'button' | 'submit';
9
- className?: string;
10
- secondary?: boolean;
11
- }
12
- declare const Button: FC<Props>;
13
- export default Button;
@@ -1 +0,0 @@
1
- import '@testing-library/jest-dom/extend-expect';
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export { default as Button } from './Button';
@@ -1,11 +0,0 @@
1
- /// <reference types="react" />
2
- import { PickStyleProps } from '../useStyles';
3
- import './card.css';
4
- interface Props extends PickStyleProps<'backgroundColor' | 'color' | 'padding' | 'display' | 'flexDirection' | 'alignItems' | 'justifyContent'> {
5
- children: React.ReactNode;
6
- className?: string;
7
- onClick?: () => void;
8
- shadow?: 1 | 2 | 3;
9
- }
10
- declare const Card: React.FC<Props>;
11
- export default Card;
@@ -1 +0,0 @@
1
- import '@testing-library/jest-dom/extend-expect';
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export { default as Card } from './Card';
@@ -1,13 +0,0 @@
1
- import { FC } from 'react';
2
- import './dialog.css';
3
- interface Props {
4
- actions?: React.ReactNode;
5
- full?: boolean;
6
- onRequestClose: () => void;
7
- open?: boolean;
8
- render: () => JSX.Element | string;
9
- title?: React.ReactNode;
10
- minHeight?: number;
11
- }
12
- export declare const Dialog: FC<Props>;
13
- export {};
@@ -1 +0,0 @@
1
- export { Dialog } from './Dialog';
@@ -1,4 +0,0 @@
1
- import { FC } from 'react';
2
- import './divider.css';
3
- declare const Divider: FC;
4
- export default Divider;
@@ -1 +0,0 @@
1
- export { default as Divider } from './Divider';
@@ -1,10 +0,0 @@
1
- import { FC, ReactNode } from 'react';
2
- import './drawer.css';
3
- interface Props {
4
- children: ReactNode;
5
- onRequestClose: () => void;
6
- open: boolean;
7
- position?: 'left' | 'right';
8
- }
9
- declare const Drawer: FC<Props>;
10
- export default Drawer;
@@ -1 +0,0 @@
1
- export { default as Drawer } from './Drawer';
@@ -1,17 +0,0 @@
1
- import { FieldProps } from '@blockle/form';
2
- import { FC, ReactNode } from 'react';
3
- import './dropdown.css';
4
- interface Props extends FieldProps<string>, ValidationOptions {
5
- children: ReactNode;
6
- placeholder?: string;
7
- onChange?: (value: string) => void;
8
- errorMessages?: {
9
- [key in ErrorCodes]?: React.ReactNode;
10
- };
11
- }
12
- declare type ErrorCodes = 'required' | 'patternMismatch' | 'minLength' | 'maxLength';
13
- interface ValidationOptions {
14
- required?: boolean;
15
- }
16
- declare const Dropdown: FC<Props>;
17
- export default Dropdown;
@@ -1 +0,0 @@
1
- export { default as Dropdown } from './Dropdown';
@@ -1,15 +0,0 @@
1
- import { FC } from 'react';
2
- import { PickStyleProps } from '../useStyles';
3
- import './flat-button.css';
4
- interface Props extends PickStyleProps<'width'> {
5
- children: React.ReactNode;
6
- className?: string;
7
- disabled?: boolean;
8
- onClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
9
- secondary?: boolean;
10
- type?: 'button' | 'submit';
11
- id?: string;
12
- role?: string;
13
- }
14
- declare const FlatButton: FC<Props>;
15
- export default FlatButton;
@@ -1 +0,0 @@
1
- export { default as FlatButton } from './FlatButton';
@@ -1,10 +0,0 @@
1
- import { FC } from 'react';
2
- import { StyleProps } from '../useStyles';
3
- interface Props {
4
- children: React.ReactNode;
5
- className?: string;
6
- columns: 1 | 2 | 3 | 4 | 5 | 6;
7
- spacing: StyleProps['gridGap'];
8
- }
9
- declare const Grid: FC<Props>;
10
- export default Grid;
@@ -1 +0,0 @@
1
- export { default as Grid } from './Grid';
@@ -1,26 +0,0 @@
1
- import { FC } from 'react';
2
- import { PickStyleProps } from '../useStyles';
3
- import './icon.css';
4
- declare const ICON_MAP: {
5
- arrowBack: any;
6
- arrowLeft: any;
7
- arrowRight: any;
8
- briefcase: any;
9
- calendar: any;
10
- check: any;
11
- clipboard: any;
12
- cog: any;
13
- cross: any;
14
- exclamation: any;
15
- plus: any;
16
- selector: any;
17
- };
18
- export declare type IconNames = keyof typeof ICON_MAP;
19
- export interface Props extends PickStyleProps<'color'> {
20
- className?: string;
21
- label: string;
22
- name: IconNames;
23
- size?: 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
24
- }
25
- declare const Icon: FC<Props>;
26
- export default Icon;
@@ -1 +0,0 @@
1
- import '@testing-library/jest-dom/extend-expect';
@@ -1 +0,0 @@
1
- export { default as Icon, IconNames } from './Icon';
@@ -1,12 +0,0 @@
1
- import { FC } from 'react';
2
- import { IconNames } from '../Icon';
3
- import './icon-button.css';
4
- interface Props {
5
- disabled?: boolean;
6
- label: string;
7
- name: IconNames;
8
- onClick?(): void;
9
- secondary?: boolean;
10
- }
11
- declare const IconButton: FC<Props>;
12
- export default IconButton;
@@ -1 +0,0 @@
1
- export { default as IconButton } from './IconButton';
@@ -1,8 +0,0 @@
1
- import { FC, ReactNode } from 'react';
2
- import { StyleProps } from '../useStyles';
3
- interface Props {
4
- children: ReactNode;
5
- spacing: StyleProps['padding'];
6
- }
7
- declare const Inline: FC<Props>;
8
- export default Inline;
@@ -1 +0,0 @@
1
- export { default as Inline } from './Inline';
@@ -1,9 +0,0 @@
1
- import { FC, ReactNode } from 'react';
2
- import { PickStyleProps } from '../useStyles';
3
- import './link.css';
4
- interface Props extends PickStyleProps<'fontSize'> {
5
- children: ReactNode;
6
- to: string;
7
- }
8
- declare const Link: FC<Props>;
9
- export default Link;
@@ -1 +0,0 @@
1
- export { default as Link } from './Link';
@@ -1,4 +0,0 @@
1
- import { FC } from 'react';
2
- import './loader.css';
3
- declare const Loader: FC;
4
- export default Loader;
@@ -1 +0,0 @@
1
- export { default as Loader } from './Loader';
@@ -1,12 +0,0 @@
1
- import { FC, ReactNode } from 'react';
2
- import { PickStyleProps } from '../useStyles';
3
- import './outline-button.css';
4
- interface Props extends PickStyleProps<'width'> {
5
- children: ReactNode;
6
- className?: string;
7
- disabled?: boolean;
8
- onClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
9
- type?: 'button' | 'submit';
10
- }
11
- declare const OutlineButton: FC<Props>;
12
- export default OutlineButton;
@@ -1 +0,0 @@
1
- export { default as OutlineButton } from './OutlineButton';
@@ -1,10 +0,0 @@
1
- import { FC } from 'react';
2
- import './panel.css';
3
- interface Props {
4
- className?: string;
5
- onRequestClose: () => void;
6
- open?: boolean;
7
- render: () => JSX.Element | string;
8
- }
9
- declare const Panel: FC<Props>;
10
- export default Panel;
@@ -1 +0,0 @@
1
- export { default as Panel } from './Panel';
@@ -1,14 +0,0 @@
1
- import { FC } from 'react';
2
- import './paper.css';
3
- export declare type Effects = 'fade' | 'slideUp';
4
- interface Props {
5
- className?: string;
6
- effect?: Effects;
7
- fit?: boolean;
8
- open?: boolean;
9
- render: () => JSX.Element | string;
10
- shadow?: boolean;
11
- transparent?: boolean;
12
- }
13
- declare const Paper: FC<Props>;
14
- export default Paper;
@@ -1 +0,0 @@
1
- import '@testing-library/jest-dom/extend-expect';
@@ -1 +0,0 @@
1
- export { default as Paper, Effects as PaperEffects } from './Paper';
@@ -1,8 +0,0 @@
1
- import { AllHTMLAttributes, ElementType } from 'react';
2
- import { StyleProps } from '..';
3
- interface Props extends StyleProps, Omit<AllHTMLAttributes<HTMLElement>, 'color' | 'width' | 'height'> {
4
- children: React.ReactNode;
5
- component?: ElementType;
6
- }
7
- declare const RippleBox: import("react").ForwardRefExoticComponent<Props & import("react").RefAttributes<HTMLElement>>;
8
- export default RippleBox;
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare function createRipple(event: React.MouseEvent | React.TouchEvent): void;
@@ -1 +0,0 @@
1
- export { default as RippleBox } from './RippleBox';
@@ -1,13 +0,0 @@
1
- import { FC, ReactNode } from 'react';
2
- import { PickStyleProps, ResponsiveStyleProp, StyleProps } from '../useStyles';
3
- import './Stack.css';
4
- interface Props extends PickStyleProps<'padding' | 'paddingX' | 'paddingY' | 'paddingTop' | 'paddingRight' | 'paddingBottom' | 'paddingLeft'> {
5
- align?: ResponsiveStyleProp<'flex-start' | 'center' | 'flex-end'>;
6
- children: ReactNode;
7
- component?: 'div' | 'ol' | 'ul';
8
- horizontal?: boolean;
9
- spacing: StyleProps['padding'];
10
- className?: string;
11
- }
12
- declare const Stack: FC<Props>;
13
- export default Stack;
@@ -1 +0,0 @@
1
- export { default as Stack } from './Stack';
package/dist/Tag/Tag.d.ts DELETED
@@ -1,8 +0,0 @@
1
- import { FC, ReactNode } from 'react';
2
- import './tag.css';
3
- interface Props {
4
- children: ReactNode;
5
- onClick: () => void;
6
- }
7
- declare const Tag: FC<Props>;
8
- export default Tag;
@@ -1 +0,0 @@
1
- export { default as Tag } from './Tag';
@@ -1,10 +0,0 @@
1
- import { FC, ReactNode } from 'react';
2
- import { PickStyleProps } from '../useStyles';
3
- import './text.css';
4
- interface Props extends PickStyleProps<'textAlign' | 'fontSize' | 'fontWeight' | 'color' | 'fontStyle'> {
5
- component?: 'span' | 'p' | 'strong' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
6
- children: ReactNode;
7
- className?: string;
8
- }
9
- declare const Text: FC<Props>;
10
- export default Text;
@@ -1 +0,0 @@
1
- import '@testing-library/jest-dom/extend-expect';
@@ -1 +0,0 @@
1
- export { default as Text } from './Text';
@@ -1,22 +0,0 @@
1
- import { FieldProps } from '@blockle/form';
2
- import { FC } from 'react';
3
- import './text-field.css';
4
- interface Props extends FieldProps<string>, ValidationOptions {
5
- label: string;
6
- placeholder?: string;
7
- onChange?: (value: string) => void;
8
- type?: 'text' | 'password' | 'email' | 'tel';
9
- errorMessages?: {
10
- [key in ErrorCodes]?: React.ReactNode;
11
- };
12
- disabled?: boolean;
13
- }
14
- declare type ErrorCodes = 'required' | 'patternMismatch' | 'minLength' | 'maxLength';
15
- declare type ValidationOptions = {
16
- required?: boolean;
17
- pattern?: RegExp;
18
- minLength?: number;
19
- maxLength?: number;
20
- };
21
- declare const TextField: FC<Props>;
22
- export default TextField;
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export { default as TextField } from './TextField';