@sanity/ui 2.1.4-canary.0 → 2.1.5
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 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -4
- package/dist/index.mjs.map +1 -1
- package/dist/theme.esm.js +72 -10
- package/dist/theme.esm.js.map +1 -1
- package/dist/theme.js +72 -10
- package/dist/theme.js.map +1 -1
- package/dist/theme.mjs +72 -10
- package/dist/theme.mjs.map +1 -1
- package/package.json +45 -43
- package/src/core/components/dialog/dialog.tsx +2 -2
- package/src/core/components/toast/toastProvider.tsx +2 -4
- package/src/core/hooks/useDelayedState.ts +2 -2
- package/src/core/primitives/avatar/__workshop__/index.ts +10 -0
- package/src/core/primitives/avatar/__workshop__/withinButton.tsx +62 -0
- package/src/core/primitives/avatar/__workshop__/withinMenuItem.tsx +69 -0
- package/src/core/theme/__workshop__/debug/story.tsx +256 -51
- package/src/theme/build/renderColorTheme.ts +1 -1
- package/src/theme/defaults/colorTokens.ts +70 -8
package/dist/index.esm.js
CHANGED
|
@@ -2883,7 +2883,7 @@ const ElementQuery = forwardRef(function(props, ref) {
|
|
|
2883
2883
|
}
|
|
2884
2884
|
);
|
|
2885
2885
|
});
|
|
2886
|
-
var __defProp = Object.defineProperty, __defNormalProp = (obj, key2, value) => key2 in obj ? __defProp(obj, key2, { enumerable: !0, configurable: !0, writable: !0, value }) : obj[key2] = value, __publicField = (obj, key2, value) => (__defNormalProp(obj,
|
|
2886
|
+
var __defProp = Object.defineProperty, __defNormalProp = (obj, key2, value) => key2 in obj ? __defProp(obj, key2, { enumerable: !0, configurable: !0, writable: !0, value }) : obj[key2] = value, __publicField = (obj, key2, value) => (__defNormalProp(obj, key2 + "", value), value);
|
|
2887
2887
|
class ErrorBoundary extends Component {
|
|
2888
2888
|
constructor() {
|
|
2889
2889
|
super(...arguments), __publicField(this, "state", { error: null });
|
|
@@ -6289,9 +6289,7 @@ function ToastProvider(props) {
|
|
|
6289
6289
|
id,
|
|
6290
6290
|
params: { ...params, duration }
|
|
6291
6291
|
}
|
|
6292
|
-
])), toastsRef.current[id] && (clearTimeout(toastsRef.current[id].timeoutId), delete toastsRef.current[id]), toastsRef.current[id] = {
|
|
6293
|
-
timeoutId: setTimeout(dismiss, duration)
|
|
6294
|
-
}, id;
|
|
6292
|
+
])), toastsRef.current[id] && (clearTimeout(toastsRef.current[id].timeoutId), delete toastsRef.current[id]), toastsRef.current[id] = { timeoutId: setTimeout(dismiss, duration) }, id;
|
|
6295
6293
|
} }), []);
|
|
6296
6294
|
return useEffect(
|
|
6297
6295
|
() => () => {
|