@sanity/ui 2.8.11 → 2.8.12
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/index.esm.js +2 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +30 -30
- package/src/core/primitives/button/button.tsx +11 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanity/ui",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.12",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"sanity",
|
|
6
6
|
"ui",
|
|
@@ -114,34 +114,34 @@
|
|
|
114
114
|
"use-effect-event": "^1.0.2"
|
|
115
115
|
},
|
|
116
116
|
"devDependencies": {
|
|
117
|
-
"@babel/core": "^7.
|
|
118
|
-
"@babel/preset-env": "^7.
|
|
119
|
-
"@babel/preset-react": "^7.
|
|
120
|
-
"@babel/preset-typescript": "^7.
|
|
117
|
+
"@babel/core": "^7.26.0",
|
|
118
|
+
"@babel/preset-env": "^7.26.0",
|
|
119
|
+
"@babel/preset-react": "^7.25.9",
|
|
120
|
+
"@babel/preset-typescript": "^7.26.0",
|
|
121
121
|
"@commitlint/cli": "^19.4.0",
|
|
122
122
|
"@commitlint/config-conventional": "^19.2.2",
|
|
123
123
|
"@juggle/resize-observer": "^3.4.0",
|
|
124
|
-
"@sanity/pkg-utils": "^6.11.
|
|
124
|
+
"@sanity/pkg-utils": "^6.11.7",
|
|
125
125
|
"@sanity/prettier-config": "^1.0.2",
|
|
126
126
|
"@sanity/semantic-release-preset": "^5.0.0",
|
|
127
127
|
"@sanity/ui-workshop": "^2.0.16",
|
|
128
|
-
"@storybook/addon-a11y": "^8.
|
|
129
|
-
"@storybook/addon-docs": "^8.
|
|
130
|
-
"@storybook/addon-essentials": "^8.
|
|
131
|
-
"@storybook/addon-interactions": "^8.
|
|
132
|
-
"@storybook/addon-links": "^8.
|
|
133
|
-
"@storybook/addon-mdx-gfm": "^8.
|
|
134
|
-
"@storybook/addon-storysource": "^8.
|
|
135
|
-
"@storybook/addon-themes": "^8.
|
|
136
|
-
"@storybook/blocks": "^8.
|
|
137
|
-
"@storybook/manager-api": "^8.
|
|
138
|
-
"@storybook/react": "^8.
|
|
139
|
-
"@storybook/react-vite": "^8.
|
|
140
|
-
"@storybook/test": "^8.
|
|
141
|
-
"@storybook/theming": "^8.
|
|
128
|
+
"@storybook/addon-a11y": "^8.3.6",
|
|
129
|
+
"@storybook/addon-docs": "^8.3.6",
|
|
130
|
+
"@storybook/addon-essentials": "^8.3.6",
|
|
131
|
+
"@storybook/addon-interactions": "^8.3.6",
|
|
132
|
+
"@storybook/addon-links": "^8.3.6",
|
|
133
|
+
"@storybook/addon-mdx-gfm": "^8.3.6",
|
|
134
|
+
"@storybook/addon-storysource": "^8.3.6",
|
|
135
|
+
"@storybook/addon-themes": "^8.3.6",
|
|
136
|
+
"@storybook/blocks": "^8.3.6",
|
|
137
|
+
"@storybook/manager-api": "^8.3.6",
|
|
138
|
+
"@storybook/react": "^8.3.6",
|
|
139
|
+
"@storybook/react-vite": "^8.3.6",
|
|
140
|
+
"@storybook/test": "^8.3.6",
|
|
141
|
+
"@storybook/theming": "^8.3.6",
|
|
142
142
|
"@testing-library/dom": "^10.4.0",
|
|
143
|
-
"@testing-library/jest-dom": "^6.
|
|
144
|
-
"@testing-library/react": "^16.0.
|
|
143
|
+
"@testing-library/jest-dom": "^6.6.2",
|
|
144
|
+
"@testing-library/react": "^16.0.1",
|
|
145
145
|
"@testing-library/user-event": "^14.5.2",
|
|
146
146
|
"@types/jest": "^29.5.12",
|
|
147
147
|
"@types/jest-axe": "^3.5.9",
|
|
@@ -156,16 +156,16 @@
|
|
|
156
156
|
"cypress": "^13.13.2",
|
|
157
157
|
"cypress-real-events": "^1.13.0",
|
|
158
158
|
"cz-conventional-changelog": "^3.3.0",
|
|
159
|
-
"eslint": "^8.57.
|
|
159
|
+
"eslint": "^8.57.1",
|
|
160
160
|
"eslint-config-prettier": "^9.1.0",
|
|
161
161
|
"eslint-plugin-boundaries": "^4.2.2",
|
|
162
|
-
"eslint-plugin-import": "^2.
|
|
163
|
-
"eslint-plugin-jsx-a11y": "^6.
|
|
162
|
+
"eslint-plugin-import": "^2.31.0",
|
|
163
|
+
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
164
164
|
"eslint-plugin-prettier": "^5.2.1",
|
|
165
|
-
"eslint-plugin-react": "^7.
|
|
166
|
-
"eslint-plugin-react-compiler": "
|
|
167
|
-
"eslint-plugin-react-hooks": "^
|
|
168
|
-
"eslint-plugin-storybook": "^0.
|
|
165
|
+
"eslint-plugin-react": "^7.37.2",
|
|
166
|
+
"eslint-plugin-react-compiler": "beta",
|
|
167
|
+
"eslint-plugin-react-hooks": "^5.0.0",
|
|
168
|
+
"eslint-plugin-storybook": "^0.10.1",
|
|
169
169
|
"http-server": "^14.1.1",
|
|
170
170
|
"husky": "^8.0.3",
|
|
171
171
|
"jest": "^29.7.0",
|
|
@@ -182,7 +182,7 @@
|
|
|
182
182
|
"rimraf": "^5.0.5",
|
|
183
183
|
"semantic-release": "^24.0.0",
|
|
184
184
|
"start-server-and-test": "^2.0.5",
|
|
185
|
-
"storybook": "^8.
|
|
185
|
+
"storybook": "^8.3.6",
|
|
186
186
|
"styled-components": "^6.1.13",
|
|
187
187
|
"tsconfig-paths": "^4.2.0",
|
|
188
188
|
"typescript": "5.5.3",
|
|
@@ -149,15 +149,17 @@ export const Button = forwardRef(function Button(
|
|
|
149
149
|
)}
|
|
150
150
|
|
|
151
151
|
{text && (
|
|
152
|
-
<
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
152
|
+
<Box>
|
|
153
|
+
<Text
|
|
154
|
+
muted={muted}
|
|
155
|
+
align={textAlign}
|
|
156
|
+
size={fontSize}
|
|
157
|
+
textOverflow="ellipsis"
|
|
158
|
+
weight={button.textWeight}
|
|
159
|
+
>
|
|
160
|
+
{text}
|
|
161
|
+
</Text>
|
|
162
|
+
</Box>
|
|
161
163
|
)}
|
|
162
164
|
|
|
163
165
|
{IconRightComponent && (
|