@yamada-ui/react 2.2.5-dev-20260720123845 → 2.2.5-dev-20260722112946
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/cjs/core/css/utils.cjs +1 -1
- package/dist/cjs/core/css/utils.cjs.map +1 -1
- package/dist/cjs/core/index.cjs +1 -0
- package/dist/cjs/core/system/create-system.cjs +6 -3
- package/dist/cjs/core/system/create-system.cjs.map +1 -1
- package/dist/cjs/core/system/index.cjs +1 -0
- package/dist/cjs/core/system/theme-provider.cjs +2 -1
- package/dist/cjs/core/system/theme-provider.cjs.map +1 -1
- package/dist/cjs/core/system/var.cjs +51 -20
- package/dist/cjs/core/system/var.cjs.map +1 -1
- package/dist/cjs/index.cjs +2 -0
- package/dist/cjs/utils/store.cjs.map +1 -1
- package/dist/esm/core/css/utils.js +1 -1
- package/dist/esm/core/css/utils.js.map +1 -1
- package/dist/esm/core/index.js +2 -2
- package/dist/esm/core/system/create-system.js +6 -3
- package/dist/esm/core/system/create-system.js.map +1 -1
- package/dist/esm/core/system/index.js +2 -2
- package/dist/esm/core/system/theme-provider.js +2 -1
- package/dist/esm/core/system/theme-provider.js.map +1 -1
- package/dist/esm/core/system/var.js +51 -21
- package/dist/esm/core/system/var.js.map +1 -1
- package/dist/esm/index.js +3 -2
- package/dist/esm/utils/store.js.map +1 -1
- package/dist/types/components/chart/polar-chart.style.d.ts +1 -1
- package/dist/types/core/index.d.ts +3 -3
- package/dist/types/core/system/index.d.ts +3 -3
- package/dist/types/core/system/index.types.d.ts +13 -3
- package/dist/types/core/system/var.d.ts +6 -5
- package/dist/types/index.d.ts +5 -5
- package/dist/types/utils/index.d.ts +3 -3
- package/dist/types/utils/store.d.ts +8 -8
- package/package.json +1 -1
|
@@ -5,13 +5,13 @@ import { useSafeLayoutEffect, useUnmountEffect, useUpdateEffect } from "./effect
|
|
|
5
5
|
import { ReactNodeOrFunction, TransformProps } from "./index.types.js";
|
|
6
6
|
import { assignRef, isRefObject, mergeRefs, useCallbackRef, useMergeRefs } from "./ref.js";
|
|
7
7
|
import { useSsr } from "./ssr.js";
|
|
8
|
-
import { createStore } from "./store.js";
|
|
8
|
+
import { CreateStoreMethod, CreateStoreOptions, CustomStoreMethods, Store, StoreMethods, StoreSubscribe, UseStore, createStore } from "./store.js";
|
|
9
9
|
import { AnyPointerEvent, AnyString, Booleanish, ColorFormat, DeepMerge, DeepPartial, Dict, EventType, FlattenObjectOptions, FunctionOrValue, Length, Merge, MergeOptions, Path, Point, Prettify, Primitive, Value } from "@yamada-ui/utils";
|
|
10
10
|
export * from "@yamada-ui/utils";
|
|
11
11
|
declare namespace index_d_exports {
|
|
12
|
-
export { AnyPointerEvent, AnyString, Booleanish, ColorFormat, DeepMerge, DeepPartial, Dict, EventType, FlattenObjectOptions, FunctionOrValue, Length, Merge, MergeOptions, Path, Point, Prettify, Primitive, ReactNodeOrFunction, TransformProps, Value, assignRef, createContext, createStore, findChild, findChildren, getEventRelatedTarget, getValidChildren, includesChildren, isComposing, isRefObject, isSomeDisplayName, isSomeElement, isValidElement, mergeRefs, omitChildren, pickChildren, runKeyAction, splitChildren, useAttributeObserver, useCallbackRef, useFindChild, useFindChildren, useIds, useIncludesChildren, useMergeRefs, useOmitChildren, usePickChildren, useSafeLayoutEffect, useSplitChildren, useSsr, useUnmountEffect, useUpdateEffect, useValidChildren, visuallyHiddenAttributes, wrapOrPassProps };
|
|
12
|
+
export { AnyPointerEvent, AnyString, Booleanish, ColorFormat, CreateStoreMethod, CreateStoreOptions, CustomStoreMethods, DeepMerge, DeepPartial, Dict, EventType, FlattenObjectOptions, FunctionOrValue, Length, Merge, MergeOptions, Path, Point, Prettify, Primitive, ReactNodeOrFunction, Store, StoreMethods, StoreSubscribe, TransformProps, UseStore, Value, assignRef, createContext, createStore, findChild, findChildren, getEventRelatedTarget, getValidChildren, includesChildren, isComposing, isRefObject, isSomeDisplayName, isSomeElement, isValidElement, mergeRefs, omitChildren, pickChildren, runKeyAction, splitChildren, useAttributeObserver, useCallbackRef, useFindChild, useFindChildren, useIds, useIncludesChildren, useMergeRefs, useOmitChildren, usePickChildren, useSafeLayoutEffect, useSplitChildren, useSsr, useUnmountEffect, useUpdateEffect, useValidChildren, visuallyHiddenAttributes, wrapOrPassProps };
|
|
13
13
|
}
|
|
14
14
|
import * as import__yamada_ui_utils from "@yamada-ui/utils";
|
|
15
15
|
//#endregion
|
|
16
|
-
export { type AnyPointerEvent, type AnyString, type Booleanish, type ColorFormat, type DeepMerge, type DeepPartial, type Dict, type EventType, type FlattenObjectOptions, type FunctionOrValue, type Length, type Merge, type MergeOptions, type Path, type Point, type Prettify, type Primitive, type ReactNodeOrFunction, type TransformProps, type Value, assignRef, createContext, createStore, findChild, findChildren, getEventRelatedTarget, getValidChildren, includesChildren, index_d_exports, isComposing, isRefObject, isSomeDisplayName, isSomeElement, isValidElement, mergeRefs, omitChildren, pickChildren, runKeyAction, splitChildren, useAttributeObserver, useCallbackRef, useFindChild, useFindChildren, useIds, useIncludesChildren, useMergeRefs, useOmitChildren, usePickChildren, useSafeLayoutEffect, useSplitChildren, useSsr, useUnmountEffect, useUpdateEffect, useValidChildren, visuallyHiddenAttributes, wrapOrPassProps };
|
|
16
|
+
export { type AnyPointerEvent, type AnyString, type Booleanish, type ColorFormat, CreateStoreMethod, CreateStoreOptions, CustomStoreMethods, type DeepMerge, type DeepPartial, type Dict, type EventType, type FlattenObjectOptions, type FunctionOrValue, type Length, type Merge, type MergeOptions, type Path, type Point, type Prettify, type Primitive, type ReactNodeOrFunction, Store, StoreMethods, StoreSubscribe, type TransformProps, UseStore, type Value, assignRef, createContext, createStore, findChild, findChildren, getEventRelatedTarget, getValidChildren, includesChildren, index_d_exports, isComposing, isRefObject, isSomeDisplayName, isSomeElement, isValidElement, mergeRefs, omitChildren, pickChildren, runKeyAction, splitChildren, useAttributeObserver, useCallbackRef, useFindChild, useFindChildren, useIds, useIncludesChildren, useMergeRefs, useOmitChildren, usePickChildren, useSafeLayoutEffect, useSplitChildren, useSsr, useUnmountEffect, useUpdateEffect, useValidChildren, visuallyHiddenAttributes, wrapOrPassProps };
|
|
17
17
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Path, Value } from "@yamada-ui/utils";
|
|
2
2
|
//#region src/utils/store.d.ts
|
|
3
|
-
interface
|
|
3
|
+
interface StoreSubscribe {
|
|
4
4
|
(listener: () => void): () => void;
|
|
5
5
|
}
|
|
6
6
|
interface Store<Y> {
|
|
@@ -20,22 +20,22 @@ type ReturnValue<Y, D> = Y extends any[] ? ReturnArrayValue<Y, D> : Y extends ob
|
|
|
20
20
|
interface UseStore<Y> {
|
|
21
21
|
<D extends IndexOrPath<Y>>(path?: D, key?: string): ReturnValue<Y, D>;
|
|
22
22
|
}
|
|
23
|
-
interface
|
|
23
|
+
interface CreateStoreMethod<Y, M extends Function> {
|
|
24
24
|
(store: Store<Y>): M;
|
|
25
25
|
}
|
|
26
|
-
type
|
|
26
|
+
type StoreMethods<Y, M extends CustomStoreMethods<Y>> = Omit<Store<Y>, "key" | "update"> & { [D in keyof M]: ReturnType<M[D]>; } & {
|
|
27
27
|
update: () => void;
|
|
28
28
|
};
|
|
29
|
-
interface
|
|
30
|
-
[key: string]:
|
|
29
|
+
interface CustomStoreMethods<Y> {
|
|
30
|
+
[key: string]: CreateStoreMethod<Y, (...args: any[]) => Promise<void> | void>;
|
|
31
31
|
}
|
|
32
32
|
interface CreateStoreOptions<Y> {
|
|
33
33
|
proxyHandler?: ProxyHandler<{
|
|
34
34
|
current: Y;
|
|
35
35
|
}>;
|
|
36
|
-
subscribe?:
|
|
36
|
+
subscribe?: CreateStoreMethod<Y, StoreSubscribe>;
|
|
37
37
|
}
|
|
38
|
-
declare function createStore<Y, M extends
|
|
38
|
+
declare function createStore<Y, M extends CustomStoreMethods<Y>>(initialState: (() => Y) | Y, additionalMethods?: M, options?: CreateStoreOptions<Y>): [UseStore<Y>, StoreMethods<Y, M>];
|
|
39
39
|
//#endregion
|
|
40
|
-
export { createStore };
|
|
40
|
+
export { CreateStoreMethod, CreateStoreOptions, CustomStoreMethods, Store, StoreMethods, StoreSubscribe, UseStore, createStore };
|
|
41
41
|
//# sourceMappingURL=store.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yamada-ui/react",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.2.5-dev-
|
|
4
|
+
"version": "2.2.5-dev-20260722112946",
|
|
5
5
|
"description": "React UI components of the Yamada, by the Yamada, for the Yamada built with React and Emotion",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"yamada",
|