@loadsmart/loadsmart-ui 7.3.0 → 7.3.2

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/package.json CHANGED
@@ -1,186 +1,186 @@
1
1
  {
2
- "name": "@loadsmart/loadsmart-ui",
3
- "version": "7.3.0",
4
- "description": "Miranda UI, a React UI library",
5
- "main": "dist",
6
- "files": [
7
- "src",
8
- "dist",
9
- "README.md"
10
- ],
11
- "types": "dist/index.d.ts",
12
- "scripts": {
13
- "start": "yarn dev",
14
- "dev": "npm-run-all --parallel watch-tailwind storybook",
15
- "lint": "eslint --ext .js,.ts,.tsx src/",
16
- "test": "TZ=UTC jest --clearMocks",
17
- "test-watch": "yarn test --watch",
18
- "storybook": "storybook dev -p 6006",
19
- "build": "rollup -c --environment BUILD:prod",
20
- "watch-tailwind": "postcss ./tailwind.css -o ./.storybook/globals.css --watch",
21
- "docs:build": "storybook build -o ./docs",
22
- "docs:deploy": "gh-pages -d docs -m \"chore(docs): update gh-pages [skip ci]\"",
23
- "release": "semantic-release",
24
- "prepare": "husky install"
25
- },
26
- "storybook-deployer": {
27
- "commitMessage": "chore(docs): deploy storybook to GitHub pages [skip ci]"
28
- },
29
- "lint-staged": {
30
- "src/**/*.{js,ts,jsx,tsx,json}": [
31
- "eslint --fix",
32
- "prettier --write"
33
- ],
34
- "src/{common,components,styles}/**/*.{js,ts,jsx,tsx}": [
35
- "eslint --fix",
36
- "prettier --write",
37
- "stylelint --fix"
38
- ]
39
- },
40
- "jest-junit": {
41
- "addFileAttribute": "true"
42
- },
43
- "devDependencies": {
44
- "@babel/core": "^7.20.12",
45
- "@babel/plugin-proposal-class-properties": "^7.18.6",
46
- "@babel/plugin-proposal-private-methods": "^7.18.6",
47
- "@babel/plugin-proposal-private-property-in-object": "^7.21.0",
48
- "@babel/preset-env": "^7.20.2",
49
- "@babel/preset-react": "^7.18.6",
50
- "@babel/preset-typescript": "^7.18.6",
51
- "@commitlint/cli": "^16.0.2",
52
- "@commitlint/config-conventional": "^16.0.0",
53
- "@loadsmart/miranda-tokens": "^2.2.1",
54
- "@loadsmart/stylelint-config": "^0.0.3",
55
- "@rollup/plugin-babel": "^5.3.0",
56
- "@rollup/plugin-commonjs": "^19.0.0",
57
- "@rollup/plugin-json": "^4.1.0",
58
- "@rollup/plugin-node-resolve": "^13.0.0",
59
- "@semantic-release/git": "^9.0.0",
60
- "@storybook/addon-a11y": "^7.0.17",
61
- "@storybook/addon-essentials": "^7.0.17",
62
- "@storybook/addon-links": "^7.0.17",
63
- "@storybook/addons": "^7.0.17",
64
- "@storybook/react": "^7.0.17",
65
- "@storybook/react-webpack5": "^7.0.17",
66
- "@storybook/theming": "^7.0.17",
67
- "@svgr/rollup": "^6.5.1",
68
- "@svgr/webpack": "^8.0.1",
69
- "@tailwindcss/postcss7-compat": "^2.1.2",
70
- "@testing-library/dom": "^8.20.0",
71
- "@testing-library/jest-dom": "^5.16.5",
72
- "@testing-library/react": "^11.2.7",
73
- "@testing-library/react-hooks": "^5.1.3",
74
- "@testing-library/user-event": "^13.5.0",
75
- "@types/chance": "^1.1.1",
76
- "@types/jest": "^27.5.2",
77
- "@types/lodash.debounce": "^4.0.6",
78
- "@types/lodash.flatten": "^4.4.6",
79
- "@types/lodash.get": "^4.4.6",
80
- "@types/lodash.isempty": "^4.4.6",
81
- "@types/lodash.omit": "^4.5.6",
82
- "@types/lodash.range": "^3.2.6",
83
- "@types/mdx": "^2.0.2",
84
- "@types/node": "^18.11.18",
85
- "@types/react": "^17.0.59",
86
- "@types/react-dom": "^17.0.20",
87
- "@types/react-test-renderer": "^17.0.1",
88
- "@types/styled-components": "^5.1.26",
89
- "@typescript-eslint/eslint-plugin": "^4.22.1",
90
- "@typescript-eslint/parser": "^4.22.1",
91
- "@zerollup/ts-transform-paths": "^1.7.18",
92
- "autoprefixer": "^9.8.8",
93
- "babel-jest": "^27.5.1",
94
- "babel-loader": "8.2.2",
95
- "babel-plugin-react-remove-properties": "^0.3.0",
96
- "babel-plugin-styled-components": "^1.12.0",
97
- "babel-plugin-transform-inline-environment-variables": "^0.4.3",
98
- "babel-preset-react-app": "^10.0.0",
99
- "chance": "^1.1.8",
100
- "commitizen": "^4.2.4",
101
- "cross-env": "^7.0.3",
102
- "cz-conventional-changelog": "^3.3.0",
103
- "eslint": "^7.26.0",
104
- "eslint-config-prettier": "^8.3.0",
105
- "eslint-plugin-jest-dom": "^3.8.1",
106
- "eslint-plugin-jsx-a11y": "^6.4.1",
107
- "eslint-plugin-prettier": "^3.4.0",
108
- "eslint-plugin-react": "^7.23.2",
109
- "eslint-plugin-react-hooks": "^4.2.0",
110
- "eslint-plugin-storybook": "^0.6.12",
111
- "eslint-plugin-testing-library": "^5.9.1",
112
- "gh-pages": "^5.0.0",
113
- "husky": "7.0.4",
114
- "identity-obj-proxy": "^3.0.0",
115
- "jest": "^27.5.1",
116
- "jest-junit": "^16.0.0",
117
- "jest-transformer-svg": "^1.0.2",
118
- "lint-staged": "^11.0.0",
119
- "npm-run-all": "^4.1.5",
120
- "postcss": "^7.0.39",
121
- "postcss-cli": "^7.1.2",
122
- "prettier": "^2.8.4",
123
- "react": "^17.0.2",
124
- "react-dom": "^17.0.2",
125
- "react-is": "^17.0.2",
126
- "react-syntax-highlighter": "^15.5.0",
127
- "rollup": "^2.79.1",
128
- "rollup-plugin-delete": "^2.0.0",
129
- "rollup-plugin-peer-deps-external": "^2.2.4",
130
- "rollup-plugin-terser": "^7.0.2",
131
- "rollup-plugin-typescript2": "^0.34.1",
132
- "rollup-plugin-visualizer": "^5.5.2",
133
- "semantic-release": "^17.4.2",
134
- "storybook": "^7.0.17",
135
- "styled-components": "^5.3.0",
136
- "stylelint": "^13.13.1",
137
- "stylelint-config-prettier": "^8.0.2",
138
- "stylelint-config-rational-order": "^0.1.2",
139
- "stylelint-config-recommended": "^5.0.0",
140
- "stylelint-no-unsupported-browser-features": "^5.0.1",
141
- "stylelint-order": "^4.1.0",
142
- "tailwindcss": "npm:@tailwindcss/postcss7-compat",
143
- "ts-jest": "^27.1.5",
144
- "ts-node": "^10.9.1",
145
- "ts-toolbelt": "^9.6.0",
146
- "ttypescript": "^1.5.13",
147
- "typescript": "4.4.4",
148
- "typescript-plugin-styled-components": "^1.5.0"
149
- },
150
- "peerDependencies": {
151
- "@loadsmart/miranda-tokens": ">=1.3.0",
152
- "@testing-library/react": ">=11.2.6",
153
- "react": ">=16.8.0",
154
- "react-dom": ">=16.8.0",
155
- "styled-components": ">=5.3.0"
156
- },
157
- "dependencies": {
158
- "@floating-ui/react-dom": "^2.0.0",
159
- "@loadsmart/utils-function": "0.3.1",
160
- "@loadsmart/utils-object": "0.3.1",
161
- "@loadsmart/utils-string": "0.3.1",
162
- "clsx": "1.1.1",
163
- "lodash.debounce": "4.0.8",
164
- "lodash.flatten": "4.4.0",
165
- "lodash.get": "4.4.2",
166
- "lodash.isempty": "4.4.0",
167
- "lodash.omit": "4.5.0",
168
- "lodash.range": "3.2.0"
169
- },
170
- "repository": {
171
- "type": "git",
172
- "url": "https://github.com/loadsmart/miranda.git"
173
- },
174
- "license": "MIT",
175
- "publishConfig": {
176
- "access": "public"
177
- },
178
- "config": {
179
- "commitizen": {
180
- "path": "./node_modules/cz-conventional-changelog"
181
- }
182
- },
183
- "resolutions": {
184
- "@stylelint/postcss-css-in-js": "0.37.2"
185
- }
2
+ "name": "@loadsmart/loadsmart-ui",
3
+ "version": "7.3.2",
4
+ "description": "Miranda UI, a React UI library",
5
+ "main": "dist",
6
+ "files": [
7
+ "src",
8
+ "dist",
9
+ "README.md"
10
+ ],
11
+ "types": "dist/index.d.ts",
12
+ "scripts": {
13
+ "start": "yarn dev",
14
+ "dev": "npm-run-all --parallel watch-tailwind storybook",
15
+ "lint": "eslint --ext .js,.ts,.tsx src/",
16
+ "test": "TZ=UTC jest --clearMocks",
17
+ "test-watch": "yarn test --watch",
18
+ "storybook": "storybook dev -p 6006",
19
+ "build": "rollup -c --environment BUILD:prod",
20
+ "watch-tailwind": "postcss ./tailwind.css -o ./.storybook/globals.css --watch",
21
+ "docs:build": "storybook build -o ./docs",
22
+ "docs:deploy": "gh-pages -d docs -m \"chore(docs): update gh-pages [skip ci]\"",
23
+ "release": "semantic-release",
24
+ "prepare": "husky install"
25
+ },
26
+ "storybook-deployer": {
27
+ "commitMessage": "chore(docs): deploy storybook to GitHub pages [skip ci]"
28
+ },
29
+ "lint-staged": {
30
+ "src/**/*.{js,ts,jsx,tsx,json}": [
31
+ "eslint --fix",
32
+ "prettier --write"
33
+ ],
34
+ "src/{common,components,styles}/**/*.{js,ts,jsx,tsx}": [
35
+ "eslint --fix",
36
+ "prettier --write",
37
+ "stylelint --fix"
38
+ ]
39
+ },
40
+ "jest-junit": {
41
+ "addFileAttribute": "true"
42
+ },
43
+ "devDependencies": {
44
+ "@babel/core": "^7.20.12",
45
+ "@babel/plugin-proposal-class-properties": "^7.18.6",
46
+ "@babel/plugin-proposal-private-methods": "^7.18.6",
47
+ "@babel/plugin-proposal-private-property-in-object": "^7.21.0",
48
+ "@babel/preset-env": "^7.20.2",
49
+ "@babel/preset-react": "^7.18.6",
50
+ "@babel/preset-typescript": "^7.18.6",
51
+ "@commitlint/cli": "^16.0.2",
52
+ "@commitlint/config-conventional": "^16.0.0",
53
+ "@loadsmart/miranda-tokens": "^2.2.1",
54
+ "@loadsmart/stylelint-config": "^0.0.3",
55
+ "@rollup/plugin-babel": "^5.3.0",
56
+ "@rollup/plugin-commonjs": "^19.0.0",
57
+ "@rollup/plugin-json": "^4.1.0",
58
+ "@rollup/plugin-node-resolve": "^13.0.0",
59
+ "@semantic-release/git": "^9.0.0",
60
+ "@storybook/addon-a11y": "^7.0.17",
61
+ "@storybook/addon-essentials": "^7.0.17",
62
+ "@storybook/addon-links": "^7.0.17",
63
+ "@storybook/addons": "^7.0.17",
64
+ "@storybook/react": "^7.0.17",
65
+ "@storybook/react-webpack5": "^7.0.17",
66
+ "@storybook/theming": "^7.0.17",
67
+ "@svgr/rollup": "^6.5.1",
68
+ "@svgr/webpack": "^8.0.1",
69
+ "@tailwindcss/postcss7-compat": "^2.1.2",
70
+ "@testing-library/dom": "^8.20.0",
71
+ "@testing-library/jest-dom": "^5.16.5",
72
+ "@testing-library/react": "^11.2.7",
73
+ "@testing-library/react-hooks": "^5.1.3",
74
+ "@testing-library/user-event": "^13.5.0",
75
+ "@types/chance": "^1.1.1",
76
+ "@types/jest": "^27.5.2",
77
+ "@types/lodash.debounce": "^4.0.6",
78
+ "@types/lodash.flatten": "^4.4.6",
79
+ "@types/lodash.get": "^4.4.6",
80
+ "@types/lodash.isempty": "^4.4.6",
81
+ "@types/lodash.omit": "^4.5.6",
82
+ "@types/lodash.range": "^3.2.6",
83
+ "@types/mdx": "^2.0.2",
84
+ "@types/node": "^18.11.18",
85
+ "@types/react": "^17.0.59",
86
+ "@types/react-dom": "^17.0.20",
87
+ "@types/react-test-renderer": "^17.0.1",
88
+ "@types/styled-components": "^5.1.26",
89
+ "@typescript-eslint/eslint-plugin": "^4.22.1",
90
+ "@typescript-eslint/parser": "^4.22.1",
91
+ "@zerollup/ts-transform-paths": "^1.7.18",
92
+ "autoprefixer": "^9.8.8",
93
+ "babel-jest": "^27.5.1",
94
+ "babel-loader": "8.2.2",
95
+ "babel-plugin-react-remove-properties": "^0.3.0",
96
+ "babel-plugin-styled-components": "^1.12.0",
97
+ "babel-plugin-transform-inline-environment-variables": "^0.4.3",
98
+ "babel-preset-react-app": "^10.0.0",
99
+ "chance": "^1.1.8",
100
+ "commitizen": "^4.2.4",
101
+ "cross-env": "^7.0.3",
102
+ "cz-conventional-changelog": "^3.3.0",
103
+ "eslint": "^7.26.0",
104
+ "eslint-config-prettier": "^8.3.0",
105
+ "eslint-plugin-jest-dom": "^3.8.1",
106
+ "eslint-plugin-jsx-a11y": "^6.4.1",
107
+ "eslint-plugin-prettier": "^3.4.0",
108
+ "eslint-plugin-react": "^7.23.2",
109
+ "eslint-plugin-react-hooks": "^4.2.0",
110
+ "eslint-plugin-storybook": "^0.6.12",
111
+ "eslint-plugin-testing-library": "^5.9.1",
112
+ "gh-pages": "^5.0.0",
113
+ "husky": "7.0.4",
114
+ "identity-obj-proxy": "^3.0.0",
115
+ "jest": "^27.5.1",
116
+ "jest-junit": "^16.0.0",
117
+ "jest-transformer-svg": "^1.0.2",
118
+ "lint-staged": "^11.0.0",
119
+ "npm-run-all": "^4.1.5",
120
+ "postcss": "^7.0.39",
121
+ "postcss-cli": "^7.1.2",
122
+ "prettier": "^2.8.4",
123
+ "react": "^17.0.2",
124
+ "react-dom": "^17.0.2",
125
+ "react-is": "^17.0.2",
126
+ "react-syntax-highlighter": "^15.5.0",
127
+ "rollup": "^2.79.1",
128
+ "rollup-plugin-delete": "^2.0.0",
129
+ "rollup-plugin-peer-deps-external": "^2.2.4",
130
+ "rollup-plugin-terser": "^7.0.2",
131
+ "rollup-plugin-typescript2": "^0.34.1",
132
+ "rollup-plugin-visualizer": "^5.5.2",
133
+ "semantic-release": "^17.4.2",
134
+ "storybook": "^7.0.17",
135
+ "styled-components": "^5.3.0",
136
+ "stylelint": "^13.13.1",
137
+ "stylelint-config-prettier": "^8.0.2",
138
+ "stylelint-config-rational-order": "^0.1.2",
139
+ "stylelint-config-recommended": "^5.0.0",
140
+ "stylelint-no-unsupported-browser-features": "^5.0.1",
141
+ "stylelint-order": "^4.1.0",
142
+ "tailwindcss": "npm:@tailwindcss/postcss7-compat",
143
+ "ts-jest": "^27.1.5",
144
+ "ts-node": "^10.9.1",
145
+ "ts-toolbelt": "^9.6.0",
146
+ "ttypescript": "^1.5.13",
147
+ "typescript": "4.4.4",
148
+ "typescript-plugin-styled-components": "^1.5.0"
149
+ },
150
+ "peerDependencies": {
151
+ "@loadsmart/miranda-tokens": ">=1.3.0",
152
+ "@testing-library/react": ">=11.2.6",
153
+ "react": ">=16.8.0",
154
+ "react-dom": ">=16.8.0",
155
+ "styled-components": ">=5.3.0"
156
+ },
157
+ "dependencies": {
158
+ "@floating-ui/react-dom": "^2.0.0",
159
+ "@loadsmart/utils-function": "0.3.1",
160
+ "@loadsmart/utils-object": "0.3.1",
161
+ "@loadsmart/utils-string": "0.3.1",
162
+ "clsx": "1.1.1",
163
+ "lodash.debounce": "4.0.8",
164
+ "lodash.flatten": "4.4.0",
165
+ "lodash.get": "4.4.2",
166
+ "lodash.isempty": "4.4.0",
167
+ "lodash.omit": "4.5.0",
168
+ "lodash.range": "3.2.0"
169
+ },
170
+ "repository": {
171
+ "type": "git",
172
+ "url": "https://github.com/loadsmart/miranda.git"
173
+ },
174
+ "license": "MIT",
175
+ "publishConfig": {
176
+ "access": "public"
177
+ },
178
+ "config": {
179
+ "commitizen": {
180
+ "path": "./node_modules/cz-conventional-changelog"
181
+ }
182
+ },
183
+ "resolutions": {
184
+ "@stylelint/postcss-css-in-js": "0.37.2"
185
+ }
186
186
  }
@@ -48,10 +48,6 @@ function Steps({
48
48
  )
49
49
  }
50
50
 
51
- Steps.defaultProps = {
52
- scheme: 'light',
53
- }
54
-
55
51
  Steps.Step = StepsStep
56
52
 
57
53
  export default Steps
@@ -210,7 +210,7 @@ interface PanelsItemProps extends HTMLAttributes<HTMLElement> {
210
210
  lazy?: boolean
211
211
  }
212
212
 
213
- function PanelsItem({ children, name, lazy, ...props }: PanelsItemProps) {
213
+ function PanelsItem({ children, name, lazy = false, ...props }: PanelsItemProps) {
214
214
  const { activeTab } = useContext(TabContext)
215
215
 
216
216
  const hidden = activeTab !== name
@@ -222,10 +222,6 @@ function PanelsItem({ children, name, lazy, ...props }: PanelsItemProps) {
222
222
  )
223
223
  }
224
224
 
225
- PanelsItem.defaultProps = {
226
- lazy: false,
227
- }
228
-
229
225
  export interface TabsProps extends HTMLAttributes<HTMLElement>, WithDirectionProps {
230
226
  activeTab?: string
231
227
  onTabChange?: (tab: string) => void