@equinor/eds-core-react 0.13.1 → 0.14.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.
- package/dist/core-react.cjs.js +860 -576
- package/dist/core-react.esm.js +861 -577
- package/dist/core-react.umd.js +860 -576
- package/dist/types/components/Accordion/Accordion.tokens.d.ts +1 -0
- package/dist/types/components/Banner/Banner.d.ts +4 -2
- package/dist/types/components/Banner/BannerActions.d.ts +5 -2
- package/dist/types/components/Banner/BannerIcon.d.ts +7 -2
- package/dist/types/components/Banner/BannerMessage.d.ts +5 -2
- package/dist/types/components/Combobox/Combobox.d.ts +55 -0
- package/dist/types/components/Combobox/Combobox.tokens.d.ts +3 -0
- package/dist/types/components/Combobox/index.d.ts +1 -0
- package/dist/types/components/Input/Input.d.ts +2 -2
- package/dist/types/components/Pagination/Pagination.d.ts +2 -2
- package/dist/types/components/Select/commonStyles.d.ts +3 -6
- package/dist/types/components/Snackbar/Snackbar.d.ts +4 -4
- package/dist/types/components/Snackbar/SnackbarAction.d.ts +1 -1
- package/dist/types/components/Switch/Switch.styles.d.ts +1 -0
- package/dist/types/components/Table/DataCell/DataCell.tokens.d.ts +5 -3
- package/dist/types/components/TextField/Field.d.ts +4 -4
- package/dist/types/components/TextField/Icon/Icon.d.ts +2 -5
- package/dist/types/components/TextField/{context.d.ts → TextField.context.d.ts} +0 -0
- package/dist/types/components/Textarea/Textarea.d.ts +2 -2
- package/dist/types/components/Tooltip/Tooltip.d.ts +2 -2
- package/dist/types/components/Typography/Typography.tokens.d.ts +48 -0
- package/dist/types/hooks/index.d.ts +1 -0
- package/dist/types/hooks/useHideBodyScroll.d.ts +1 -0
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/types/utils/joinHandlers.d.ts +3 -0
- package/package.json +110 -108
- package/src/index.ts +37 -0
- package/CHANGELOG.md +0 -590
package/package.json
CHANGED
|
@@ -1,109 +1,111 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
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|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
2
|
+
"name": "@equinor/eds-core-react",
|
|
3
|
+
"version": "0.14.1",
|
|
4
|
+
"description": "The React implementation of the Equinor Design System",
|
|
5
|
+
"main": "dist/core-react.cjs.js",
|
|
6
|
+
"publishConfig": {
|
|
7
|
+
"main": "dist/core-react.cjs.js",
|
|
8
|
+
"module": "dist/core-react.esm.js",
|
|
9
|
+
"browser": "dist/core-react.umd.js"
|
|
10
|
+
},
|
|
11
|
+
"types": "dist/types/index.d.ts",
|
|
12
|
+
"license": "MIT",
|
|
13
|
+
"author": {
|
|
14
|
+
"name": "EDS Core Team",
|
|
15
|
+
"email": "fg_eds@equinor.com"
|
|
16
|
+
},
|
|
17
|
+
"homepage": "https://eds.equinor.com",
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "https://github.com/equinor/design-system",
|
|
21
|
+
"directory": "libraries/core-react"
|
|
22
|
+
},
|
|
23
|
+
"bugs": {
|
|
24
|
+
"url": "https://github.com/equinor/design-system/issues"
|
|
25
|
+
},
|
|
26
|
+
"files": [
|
|
27
|
+
"dist/*"
|
|
28
|
+
],
|
|
29
|
+
"keywords": [
|
|
30
|
+
"eds",
|
|
31
|
+
"design system",
|
|
32
|
+
"equinor",
|
|
33
|
+
"react"
|
|
34
|
+
],
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"@babel/cli": "^7.14.8",
|
|
37
|
+
"@babel/core": "^7.14.8",
|
|
38
|
+
"@babel/preset-env": "^7.14.8",
|
|
39
|
+
"@babel/preset-react": "^7.14.5",
|
|
40
|
+
"@babel/preset-typescript": "^7.14.5",
|
|
41
|
+
"@rollup/plugin-babel": "^5.3.0",
|
|
42
|
+
"@rollup/plugin-commonjs": "^19.0.1",
|
|
43
|
+
"@rollup/plugin-node-resolve": "^13.0.2",
|
|
44
|
+
"@storybook/addon-a11y": "^6.3.5",
|
|
45
|
+
"@storybook/addon-actions": "^6.3.5",
|
|
46
|
+
"@storybook/addon-essentials": "^6.3.5",
|
|
47
|
+
"@storybook/addon-info": "^5.3.21",
|
|
48
|
+
"@storybook/addon-links": "^6.3.5",
|
|
49
|
+
"@storybook/react": "^6.3.5",
|
|
50
|
+
"@testing-library/jest-dom": "^5.14.1",
|
|
51
|
+
"@testing-library/react": "^12.0.0",
|
|
52
|
+
"@testing-library/react-hooks": "^7.0.1",
|
|
53
|
+
"@testing-library/user-event": "^13.2.0",
|
|
54
|
+
"@types/jest": "^26.0.24",
|
|
55
|
+
"@types/lodash": "^4.14.171",
|
|
56
|
+
"@types/ramda": "^0.27.44",
|
|
57
|
+
"@types/react": "^17.0.14",
|
|
58
|
+
"@types/react-dom": "^17.0.9",
|
|
59
|
+
"@types/styled-components": "^5.1.11",
|
|
60
|
+
"@types/testing-library__jest-dom": "^5.14.1",
|
|
61
|
+
"babel-loader": "^8.2.2",
|
|
62
|
+
"babel-plugin-styled-components": "^1.13.2",
|
|
63
|
+
"focus-visible": "^5.2.0",
|
|
64
|
+
"jest": "^27.0.6",
|
|
65
|
+
"jest-styled-components": "^7.0.5",
|
|
66
|
+
"js-file-download": "^0.4.12",
|
|
67
|
+
"lodash": "^4.17.21",
|
|
68
|
+
"prettier": "^2.3.2",
|
|
69
|
+
"ramda": "^0.27.1",
|
|
70
|
+
"react": "^17.0.2",
|
|
71
|
+
"react-dom": "^17.0.2",
|
|
72
|
+
"react-hook-form": "^7.11.1",
|
|
73
|
+
"rollup": "^2.53.3",
|
|
74
|
+
"rollup-plugin-delete": "^2.0.0",
|
|
75
|
+
"rollup-plugin-size-snapshot": "^0.12.0",
|
|
76
|
+
"rollup-plugin-typescript-paths": "^1.3.0",
|
|
77
|
+
"rollup-plugin-typescript2": "^0.30.0",
|
|
78
|
+
"styled-components": "5.3.0",
|
|
79
|
+
"ts-jest": "^27.0.4",
|
|
80
|
+
"tslib": "^2.3.0",
|
|
81
|
+
"typescript": "^4.3.5"
|
|
82
|
+
},
|
|
83
|
+
"peerDependencies": {
|
|
84
|
+
"react": ">=16.8",
|
|
85
|
+
"react-dom": ">=16.8",
|
|
86
|
+
"styled-components": ">=4.2"
|
|
87
|
+
},
|
|
88
|
+
"dependencies": {
|
|
89
|
+
"@equinor/eds-icons": "0.7.0",
|
|
90
|
+
"@equinor/eds-tokens": "0.7.0",
|
|
91
|
+
"@popperjs/core": "2.9.2",
|
|
92
|
+
"downshift": "^6.1.7",
|
|
93
|
+
"react-fast-compare": "3.2.0",
|
|
94
|
+
"react-popper": "2.2.5"
|
|
95
|
+
},
|
|
96
|
+
"engines": {
|
|
97
|
+
"pnpm": ">=4",
|
|
98
|
+
"node": ">=10.0.0"
|
|
99
|
+
},
|
|
100
|
+
"scripts": {
|
|
101
|
+
"build": "rollup -c",
|
|
102
|
+
"dev": "rollup -c -w NODE_ENV=development",
|
|
103
|
+
"test": "jest",
|
|
104
|
+
"test:watch": "jest --watch",
|
|
105
|
+
"test:update-snapshots": "jest --updateSnapshot",
|
|
106
|
+
"storybook": "start-storybook -p 9000 --ci",
|
|
107
|
+
"build:storybook": "build-storybook -o storybook-build"
|
|
108
|
+
},
|
|
109
|
+
"module": "dist/core-react.esm.js",
|
|
110
|
+
"browser": "dist/core-react.umd.js"
|
|
111
|
+
}
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import 'focus-visible'
|
|
2
|
+
/* eslint-disable import/prefer-default-export */
|
|
3
|
+
export * from './components/Button'
|
|
4
|
+
export * from './components/Typography'
|
|
5
|
+
export * from './components/Table'
|
|
6
|
+
export * from './components/Divider'
|
|
7
|
+
export * from './components/TextField'
|
|
8
|
+
export * from './components/Icon'
|
|
9
|
+
export * from './components/List'
|
|
10
|
+
export * from './components/Accordion'
|
|
11
|
+
export * from './components/Tabs'
|
|
12
|
+
export * from './components/Card'
|
|
13
|
+
export * from './components/TopBar'
|
|
14
|
+
export * from './components/Dialog'
|
|
15
|
+
export * from './components/Scrim'
|
|
16
|
+
export * from './components/TableOfContents'
|
|
17
|
+
export * from './components/SideSheet'
|
|
18
|
+
export * from './components/Chip'
|
|
19
|
+
export * from './components/Avatar'
|
|
20
|
+
export * from './components/Search'
|
|
21
|
+
export * from './components/Slider'
|
|
22
|
+
export * from './components/Tooltip'
|
|
23
|
+
export * from './components/Snackbar'
|
|
24
|
+
export * from './components/Popover'
|
|
25
|
+
export * from './components/Banner'
|
|
26
|
+
export * from './components/Progress'
|
|
27
|
+
export * from './components/Breadcrumbs'
|
|
28
|
+
export * from './components/Menu'
|
|
29
|
+
export * from './components/Pagination'
|
|
30
|
+
export * from './components/Select'
|
|
31
|
+
export * from './components/Label'
|
|
32
|
+
export * from './components/Input'
|
|
33
|
+
export * from './components/Checkbox'
|
|
34
|
+
export * from './components/Radio'
|
|
35
|
+
export * from './components/Switch'
|
|
36
|
+
export * from './components/EdsProvider'
|
|
37
|
+
/* eslint-enable */
|