@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.js
CHANGED
|
@@ -2880,7 +2880,7 @@ const ElementQuery = react.forwardRef(function(props, ref) {
|
|
|
2880
2880
|
}
|
|
2881
2881
|
);
|
|
2882
2882
|
});
|
|
2883
|
-
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,
|
|
2883
|
+
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);
|
|
2884
2884
|
class ErrorBoundary extends react.Component {
|
|
2885
2885
|
constructor() {
|
|
2886
2886
|
super(...arguments), __publicField(this, "state", { error: null });
|
|
@@ -6286,9 +6286,7 @@ function ToastProvider(props) {
|
|
|
6286
6286
|
id,
|
|
6287
6287
|
params: { ...params, duration }
|
|
6288
6288
|
}
|
|
6289
|
-
])), toastsRef.current[id] && (clearTimeout(toastsRef.current[id].timeoutId), delete toastsRef.current[id]), toastsRef.current[id] = {
|
|
6290
|
-
timeoutId: setTimeout(dismiss, duration)
|
|
6291
|
-
}, id;
|
|
6289
|
+
])), toastsRef.current[id] && (clearTimeout(toastsRef.current[id].timeoutId), delete toastsRef.current[id]), toastsRef.current[id] = { timeoutId: setTimeout(dismiss, duration) }, id;
|
|
6292
6290
|
} }), []);
|
|
6293
6291
|
return react.useEffect(
|
|
6294
6292
|
() => () => {
|