@saas-ui/react 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
package/package.json ADDED
@@ -0,0 +1,79 @@
1
+ {
2
+ "name": "@saas-ui/react",
3
+ "version": "0.1.0",
4
+ "description": "Saas UI - The frontend stack for SaaS companies.",
5
+ "source": "src/index.ts",
6
+ "exports": {
7
+ "require": "./dist/index.js",
8
+ "development": "./src/index.ts",
9
+ "default": "./dist/index.modern.js"
10
+ },
11
+ "main": "./dist/index.js",
12
+ "module": "./dist/index.modern.js",
13
+ "types": "./dist/index.d.ts",
14
+ "scripts": {
15
+ "clean": "rimraf --no-glob ./dist",
16
+ "build": "yarn clean && cross-env NODE_ENV=production microbundle --tsconfig ./tsconfig.json --jsx React.createElement --jsxFragment React.Fragment -f cjs,modern --compress",
17
+ "lint": "eslint src --ext .ts,.tsx,.js,.jsx --config ../../.eslintrc.js",
18
+ "lint:staged": "lint-staged --allow-empty --config ../../lint-staged.config.js",
19
+ "typecheck": "tsc --noEmit"
20
+ },
21
+ "sideEffects": false,
22
+ "publishConfig": {
23
+ "access": "public"
24
+ },
25
+ "author": "Eelco Wiersma <eelco@appulse.nl>",
26
+ "license": "MIT",
27
+ "homepage": "https://saas-ui.dev/",
28
+ "repository": {
29
+ "type": "git",
30
+ "url": "https://github.com/AppulseSoftware/saas-ui",
31
+ "directory": "packages/saas-ui-react"
32
+ },
33
+ "keywords": [
34
+ "react",
35
+ "ui",
36
+ "chakra-ui",
37
+ "design-system",
38
+ "react-components",
39
+ "uikit",
40
+ "accessible",
41
+ "components",
42
+ "emotion",
43
+ "library"
44
+ ],
45
+ "storybook": {
46
+ "title": "Saas UI",
47
+ "url": "https://storybook.saas-ui.dev"
48
+ },
49
+ "dependencies": {
50
+ "@saas-ui/auth": "workspace:*",
51
+ "@saas-ui/button": "workspace:*",
52
+ "@saas-ui/card": "workspace:*",
53
+ "@saas-ui/collapse": "workspace:*",
54
+ "@saas-ui/forms": "workspace:*",
55
+ "@saas-ui/hooks": "workspace:*",
56
+ "@saas-ui/hotkeys": "workspace:*",
57
+ "@saas-ui/input-right-button": "workspace:*",
58
+ "@saas-ui/menu": "workspace:*",
59
+ "@saas-ui/nprogress": "workspace:*",
60
+ "@saas-ui/number-input": "workspace:*",
61
+ "@saas-ui/palette": "workspace:*",
62
+ "@saas-ui/password-input": "workspace:*",
63
+ "@saas-ui/persona": "workspace:*",
64
+ "@saas-ui/pin-input": "workspace:*",
65
+ "@saas-ui/property": "workspace:*",
66
+ "@saas-ui/provider": "workspace:*",
67
+ "@saas-ui/radio": "workspace:*",
68
+ "@saas-ui/snackbar": "workspace:*",
69
+ "@saas-ui/system": "workspace:*",
70
+ "@saas-ui/theme": "workspace:^"
71
+ },
72
+ "peerDependencies": {
73
+ "@chakra-ui/react": ">=1.7.0",
74
+ "@chakra-ui/system": ">=1.0.0",
75
+ "framer-motion": ">=5.5.0",
76
+ "react": ">=16.8.6",
77
+ "react-dom": ">=16.8.6"
78
+ }
79
+ }
package/src/index.ts ADDED
@@ -0,0 +1,25 @@
1
+ export * from './typography'
2
+
3
+ export * from '@saas-ui/auth'
4
+ export * from '@saas-ui/button'
5
+ export * from '@saas-ui/card'
6
+ export * from '@saas-ui/collapse'
7
+ export * from '@saas-ui/forms'
8
+ export * from '@saas-ui/hooks'
9
+ export * from '@saas-ui/hotkeys'
10
+ export * from '@saas-ui/input-right-button'
11
+ export * from '@saas-ui/menu'
12
+ export * from '@saas-ui/nprogress'
13
+ export * from '@saas-ui/number-input'
14
+ export * from '@saas-ui/palette'
15
+ export * from '@saas-ui/password-input'
16
+ export * from '@saas-ui/persona'
17
+ export * from '@saas-ui/pin-input'
18
+ export * from '@saas-ui/property'
19
+ export * from '@saas-ui/provider'
20
+ export * from '@saas-ui/radio'
21
+ export * from '@saas-ui/search-input'
22
+ export * from '@saas-ui/select'
23
+ export * from '@saas-ui/snackbar'
24
+ export * from '@saas-ui/system'
25
+ export * from '@saas-ui/theme'
@@ -0,0 +1,10 @@
1
+ import * as React from 'react'
2
+ import { chakra, HTMLChakraProps } from '@chakra-ui/system'
3
+
4
+ export const Br: React.FC<HTMLChakraProps<'span'>> = (props) => {
5
+ return (
6
+ <chakra.span {...props}>
7
+ <br />
8
+ </chakra.span>
9
+ )
10
+ }
@@ -0,0 +1,20 @@
1
+ /**
2
+ * 📝 Notes for Contributors:
3
+ *
4
+ * - Ensure you write tests for component behavior defined in the hook.
5
+ * - Ensure you write tests for the accessibility and interactions.
6
+ * - No snapshot tests for components please! 🙂
7
+ *
8
+ * @see Testing-Guide https://chakra-ui.com/guides/component-guide#4-build-and-test
9
+ */
10
+
11
+ import * as React from 'react'
12
+ import { renderHook } from '@chakra-ui/test-utils'
13
+
14
+ import { useReact } from '../src'
15
+
16
+ describe("useReact", () => {
17
+ test("it works", () => {
18
+ expect(true).toBeTruthy();
19
+ });
20
+ });
package/tsconfig.json ADDED
@@ -0,0 +1,12 @@
1
+ {
2
+ "extends": "../../tsconfig.base.json",
3
+ "include": ["src"],
4
+ "exclude": [
5
+ "src/tests",
6
+ "**/*.spec.ts",
7
+ "**/*.spec.tsx",
8
+ "**/*.test.ts",
9
+ "**/*.test.tsx",
10
+ "**/*/*.stories.tsx"
11
+ ]
12
+ }