@spothero/ui 22.3.9-beta.1 → 22.4.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.
@@ -0,0 +1,68 @@
1
+ declare const _default: {
2
+ parts: ("button" | "icon" | "container" | "root" | "panel")[];
3
+ baseStyle: Partial<Record<"button" | "icon" | "container" | "root" | "panel", import("@chakra-ui/react").CSSObject>>;
4
+ } & {
5
+ variants: {
6
+ lined: {
7
+ button: {
8
+ px: number;
9
+ py: number;
10
+ };
11
+ container: {
12
+ borderTopWidth: number;
13
+ _last: {
14
+ borderBottomWidth: number;
15
+ };
16
+ };
17
+ panel: {
18
+ px: number;
19
+ py: number;
20
+ };
21
+ };
22
+ contained: {
23
+ button: {
24
+ px: number;
25
+ py: number;
26
+ };
27
+ container: {
28
+ borderLeftWidth: number;
29
+ borderRightWidth: number;
30
+ _first: {
31
+ borderTopLeftRadius: number;
32
+ borderTopRightRadius: number;
33
+ };
34
+ _last: {
35
+ borderBottomLeftRadius: number;
36
+ borderBottomRightRadius: number;
37
+ };
38
+ };
39
+ panel: {
40
+ p: number;
41
+ borderColor: string;
42
+ borderTopWidth: number;
43
+ };
44
+ };
45
+ };
46
+ baseStyle: {
47
+ icon: {
48
+ color: string;
49
+ };
50
+ button: {
51
+ display: string;
52
+ gridGap: number;
53
+ alignItems: string;
54
+ fontSize: string;
55
+ fontWeight: string;
56
+ _hover: {
57
+ backgroundColor: string;
58
+ };
59
+ };
60
+ container: {
61
+ borderColor: string;
62
+ };
63
+ };
64
+ defaultProps: {
65
+ variant: string;
66
+ };
67
+ };
68
+ export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spothero/ui",
3
- "version": "22.3.9-beta.1",
3
+ "version": "22.4.0",
4
4
  "description": "SpotHero's React component UI library.",
5
5
  "main": "./dist/index.cjs.js",
6
6
  "module": "./dist/index.esm.js",
@@ -45,13 +45,14 @@
45
45
  ]
46
46
  },
47
47
  "devDependencies": {
48
- "rollup": "^4.28.1",
49
- "rollup-plugin-dts": "^6.1.1",
50
- "rollup-plugin-peer-deps-external": "^2.2.4",
51
48
  "@babel/cli": "7.23.9",
52
49
  "@babel/core": "7.23.9",
53
50
  "@babel/runtime-corejs3": "7.14.7",
54
- "@emotion/is-prop-valid": "^1.3.1",
51
+ "@emotion/is-prop-valid": "1.3.1",
52
+ "@rollup/plugin-babel": "6.0.4",
53
+ "@rollup/plugin-typescript": "12.1.2",
54
+ "@rollup/plugin-node-resolve": "16.0.0",
55
+ "@rollup/plugin-commonjs": "28.0.2",
55
56
  "@storybook/addon-a11y": "7.6.19",
56
57
  "@storybook/addon-actions": "7.6.19",
57
58
  "@storybook/addon-essentials": "7.6.19",
@@ -63,6 +64,8 @@
63
64
  "@testing-library/jest-dom": "5.11.9",
64
65
  "@testing-library/react": "14.0.0",
65
66
  "@testing-library/user-event": "12.8.1",
67
+ "@types/lodash": "4.14.199",
68
+ "@vitejs/plugin-react": "4.3.4",
66
69
  "autoprefixer": "9.8.5",
67
70
  "babel-jest": "29.2.2",
68
71
  "babel-loader": "8.2.2",
@@ -89,19 +92,24 @@
89
92
  "react-redux": "7.2.8",
90
93
  "redux": "4.1.2",
91
94
  "regenerator-runtime": "0.13.7",
95
+ "rollup": "4.28.1",
96
+ "rollup-plugin-dts": "6.1.1",
97
+ "rollup-plugin-peer-deps-external": "2.2.4",
92
98
  "sass-loader": "10.2.1",
93
99
  "start-server-and-test": "1.12.6",
94
100
  "storybook": "7.6.19",
95
101
  "style-loader": "1.2.1",
102
+ "vite-tsconfig-paths": "5.1.4",
103
+ "vitest": "2.1.8",
96
104
  "webpack-merge": "5.1.4",
97
105
  "@spothero/babel-preset-spothero": "5.1.0",
98
- "@spothero/browserslist-config": "4.0.0",
99
- "@spothero/core": "7.0.1",
100
106
  "@spothero/eslint-config": "6.1.0",
101
- "@spothero/icons": "9.0.3-beta.1",
107
+ "@spothero/browserslist-config": "4.0.0",
108
+ "@spothero/icons": "9.1.0",
102
109
  "@spothero/npm-publisher": "7.0.0",
103
110
  "@spothero/prettier-config": "4.0.0",
104
- "@spothero/stylelint-config": "6.0.0"
111
+ "@spothero/stylelint-config": "6.0.0",
112
+ "@spothero/core": "7.0.1"
105
113
  },
106
114
  "dependencies": {
107
115
  "@babel/preset-env": "7.23.9",
@@ -116,13 +124,12 @@
116
124
  "react-select": "5.4.0",
117
125
  "regenerator-runtime": "0.13.7",
118
126
  "ssr-window": "1.0.1",
119
- "transitionEnd": "1.0.2",
120
- "@spothero/utils": "15.0.2"
127
+ "transitionEnd": "1.0.2"
121
128
  },
122
129
  "peerDependencies": {
123
- "classnames": "^2.2.6",
130
+ "classnames": "2.2.6",
124
131
  "lodash": "4.17.21",
125
- "prop-types": "^15.7.2",
132
+ "prop-types": "15.7.2",
126
133
  "react": "18.2.0",
127
134
  "react-dom": "18.2.0",
128
135
  "react-redux": ">=7.0.0",
@@ -133,9 +140,8 @@
133
140
  "lint": "eslint .storybook src --ext .jsx,.js",
134
141
  "start": "NODE_OPTIONS=--openssl-legacy-provider storybook dev -p 6006",
135
142
  "test": "pnpm run test:unit",
136
- "test:template": "NODE_ENV=test jest --config ./jest.config.json --bail --silent",
137
- "test:unit": "pnpm run test:template",
138
- "test:unit:watch": "DEBUG_PRINT_LIMIT=-1 pnpm run test:template -- --watch",
143
+ "test:unit": "vitest --run",
144
+ "test:unit:watch": "DEBUG_PRINT_LIMIT=-1 vitest",
139
145
  "build": "pnpm run clean && rollup -c --bundleConfigAsCjs",
140
146
  "release": "npm-release",
141
147
  "build-storybook": "NODE_OPTIONS=--openssl-legacy-provider storybook build -o ./docs/v2",