@deskpro/deskpro-ui 0.1.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.
Files changed (2) hide show
  1. package/README.md +32 -0
  2. package/package.json +133 -0
package/README.md ADDED
@@ -0,0 +1,32 @@
1
+ # @deskpro-product/deskpro-ui
2
+
3
+ > UI components and utils used in product
4
+
5
+ ## Usage
6
+
7
+ ```tsx
8
+ import React from 'react'
9
+
10
+ import { Stack } from '@deskpro-product/deskpro-ui'
11
+ import "modern-normalize/modern-normalize.css";
12
+ import "flatpickr/dist/themes/light.css";
13
+ import "notyf/notyf.min.css";
14
+ import "tippy.js/dist/tippy.css";
15
+ import "simplebar/dist/simplebar.min.css";
16
+ import "flag-icon-css/css/flag-icons.min.css";
17
+
18
+ import "@deskpro-product/deskpro-ui/deskpro-ui.css";
19
+ import "@deskpro-product/deskpro-ui/deskpro-custom-icons.css";
20
+
21
+ class Example extends Component {
22
+ render() {
23
+ return <Stack />
24
+ }
25
+ }
26
+ ```
27
+
28
+ ## Deskpro Custom Icon Font Generation
29
+ See [Icon README](src/components/Icon/README.md)
30
+ ## License
31
+
32
+ Commercial © [deskpro](https://github.com/deskpro)
package/package.json ADDED
@@ -0,0 +1,133 @@
1
+ {
2
+ "name": "@deskpro/deskpro-ui",
3
+ "version": "0.1.0",
4
+ "description": "UI components used in Deskpro",
5
+ "author": "Deskpro",
6
+ "license": "BSD-3-Clause",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/deskpro/deskpro-ui.git"
10
+ },
11
+ "main": "dist/cjs/lib.js",
12
+ "module": "dist/esm/lib.js",
13
+ "types": "dist/cjs/lib.d.ts",
14
+ "engines": {
15
+ "node": "^16.0.0"
16
+ },
17
+ "scripts": {
18
+ "start": "start-storybook -p 6006",
19
+ "watch": "rimraf ./dist && yarn tsc -b --watch",
20
+ "test": "cross-env NODE_OPTIONS=--max-old-space-size=512 jest --maxWorkers=75%",
21
+ "test:watch": "cross-env NODE_OPTIONS=--max-old-space-size=512 jest --watch --maxWorkers=50%",
22
+ "test:ci": "cross-env NODE_OPTIONS=--max-old-space-size=512 jest --maxWorkers=20% --ci",
23
+ "test:ci:coverage": "cross-env NODE_OPTIONS=--max-old-space-size=512 jest --maxWorkers=20% --ci --coverage --changedSince=origin/master",
24
+ "lint": "eslint --max-warnings 0 --ext ts,tsx ./src",
25
+ "test:unit": " jest",
26
+ "codegen": "true",
27
+ "start:storybook": "start-storybook -p 6006",
28
+ "build": "rimraf ./dist && yarn build:cjs && yarn build:esm",
29
+ "build:esm": "tsc -p ./src/tsconfig.json --module ES2022 --declaration false --composite false --declarationMap false --outDir ./dist/esm",
30
+ "build:cjs": "tsc -p ./src/tsconfig.json --module CommonJS --outDir ./dist/cjs",
31
+ "build-storybook": "build-storybook --quiet -o build-storybook",
32
+ "precommit": "lint-staged",
33
+ "generate:dp-custom-icons": "fantasticon -c .fantasticonrc.json"
34
+ },
35
+ "dependencies": {
36
+ "@fortawesome/fontawesome-svg-core": "^1.2.35",
37
+ "@fortawesome/free-brands-svg-icons": "^5.15.3",
38
+ "@fortawesome/free-regular-svg-icons": "^5.15.3",
39
+ "@fortawesome/free-solid-svg-icons": "^5.15.3",
40
+ "@fortawesome/react-fontawesome": "^0.1.16",
41
+ "@heroicons/react": "^1.0.5",
42
+ "@popperjs/core": "^2.11.0",
43
+ "@tippyjs/react": "^4.2.6",
44
+ "classnames": "^2.3.1",
45
+ "csstype": "3.0.10",
46
+ "d3-array": "^3.1.1",
47
+ "date-fns": "2.27.0",
48
+ "flag-icon-css": "4.1.6",
49
+ "formik": "^2.2.9",
50
+ "framer-motion": "5.4.5",
51
+ "fuse.js": "6.4.6",
52
+ "iframe-resizer": "4.3.2",
53
+ "lodash": "^4.17.21",
54
+ "modern-normalize": "1.1.0",
55
+ "notyf": "3.10.0",
56
+ "pretty-bytes": "5.6.0",
57
+ "react": "17.0.2",
58
+ "react-beautiful-dnd": "13.1.0",
59
+ "react-color": "2.19.3",
60
+ "react-content-loader": "^6.1.0",
61
+ "react-dom": "17.0.2",
62
+ "react-flatpickr": "3.10.7",
63
+ "react-highlight-words": "^0.17.0",
64
+ "react-is": "^17.0.2",
65
+ "react-phone-number-input": "3.1.27",
66
+ "react-popper": "^2.2.4",
67
+ "react-virtuoso": "2.3.1",
68
+ "shortcut-buttons-flatpickr": "0.3.1",
69
+ "simplebar": "5.3.6",
70
+ "simplebar-react": "2.3.6",
71
+ "styled-components": "5.3.3",
72
+ "ts-pattern": "3.3.5",
73
+ "use-debounce": "7.0.1",
74
+ "uuid": "^8.3.2",
75
+ "yup": "^0.32.11"
76
+ },
77
+ "devDependencies": {
78
+ "@babel/core": "^7.16.0",
79
+ "@fortawesome/fontawesome-svg-core": "^1.2.35",
80
+ "@shopify/jest-dom-mocks": "^3.0.13",
81
+ "@storybook/addon-actions": "^6.3.12",
82
+ "@storybook/addon-knobs": "6.3.1",
83
+ "@storybook/addons": "^6.3.8",
84
+ "@storybook/react": "^6.3.12",
85
+ "@swc/core": "^1.2.135",
86
+ "@swc/jest": "^0.2.17",
87
+ "@testing-library/jest-dom": "^5.16.1",
88
+ "@testing-library/react": "^12.1.2",
89
+ "@types/d3-array": "^3.0.2",
90
+ "@types/iframe-resizer": "3.5.9",
91
+ "@types/lodash": "^4.14.178",
92
+ "@types/react": "17.0.38",
93
+ "@types/react-beautiful-dnd": "13.1.2",
94
+ "@types/react-color": "3.0.6",
95
+ "@types/react-dom": "17.0.11",
96
+ "@types/react-flatpickr": "3.8.4",
97
+ "@types/react-highlight-words": "^0.16.4",
98
+ "@types/react-phone-number-input": "3.0.13",
99
+ "@types/styled-components": "5.1.19",
100
+ "@types/uuid": "^8.3.4",
101
+ "@typescript-eslint/eslint-plugin": "5.6.0",
102
+ "@typescript-eslint/parser": "5.6.0",
103
+ "@typescript/lib-dom": "npm:@types/web",
104
+ "chromatic": "6.2.0",
105
+ "conditional-type-checks": "1.0.5",
106
+ "cross-env": "^7.0.3",
107
+ "eslint": "8.4.1",
108
+ "eslint-config-prettier": "8.3.0",
109
+ "eslint-plugin-react-hooks": "4.3.0",
110
+ "fantasticon": "1.2.3",
111
+ "fast-check": "2.20.0",
112
+ "husky": "7.0.4",
113
+ "jest": "27.4.4",
114
+ "lint-staged": "12.1.2",
115
+ "prettier": "2.5.1",
116
+ "rimraf": "3.0.2",
117
+ "type-fest": "2.9.0",
118
+ "typescript": "4.5.5",
119
+ "utility-types": "3.10.0"
120
+ },
121
+ "files": [
122
+ "lib"
123
+ ],
124
+ "lint-staged": {
125
+ "*.{ts,tsx,js,jsx}": [
126
+ "prettier --write"
127
+ ]
128
+ },
129
+ "bugs": {
130
+ "url": "https://github.com/deskpro/deskpro-ui/issues"
131
+ },
132
+ "homepage": "https://github.com/deskpro/deskpro-ui#readme"
133
+ }