@yamada-ui/react 2.3.5-dev-20261126021937 → 2.3.5-dev-20261126022425
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/utils/ref.cjs +8 -7
- package/dist/cjs/utils/ref.cjs.map +1 -1
- package/dist/esm/utils/ref.js +9 -8
- package/dist/esm/utils/ref.js.map +1 -1
- package/dist/types/components/autocomplete/autocomplete.style.d.ts +1 -1
- package/dist/types/components/avatar/avatar.d.ts +3 -3
- package/dist/types/components/avatar/avatar.style.d.ts +1 -1
- package/dist/types/components/calendar/calendar.style.d.ts +2 -2
- package/dist/types/components/carousel/carousel.style.d.ts +2 -2
- package/dist/types/components/chart/polar-chart.style.d.ts +1 -1
- package/dist/types/components/checkbox-card/checkbox-card.d.ts +3 -3
- package/dist/types/components/checkbox-card/checkbox-card.style.d.ts +1 -1
- package/dist/types/components/color-picker/color-picker.style.d.ts +1 -1
- package/dist/types/components/color-selector/color-selector.style.d.ts +2 -2
- package/dist/types/components/editable/editable.d.ts +1 -1
- package/dist/types/components/editable/editable.style.d.ts +1 -1
- package/dist/types/components/empty-state/empty-state.style.d.ts +2 -2
- package/dist/types/components/field/field.style.d.ts +2 -2
- package/dist/types/components/fieldset/fieldset.style.d.ts +1 -1
- package/dist/types/components/file-button/use-file-button.d.ts +6 -2
- package/dist/types/components/file-input/use-file-input.d.ts +6 -2
- package/dist/types/components/number-input/number-input.style.d.ts +1 -1
- package/dist/types/components/radio-card/radio-card.d.ts +3 -3
- package/dist/types/components/radio-card/radio-card.style.d.ts +1 -1
- package/dist/types/components/reorder/reorder.style.d.ts +1 -1
- package/dist/types/components/resizable/resizable.style.d.ts +2 -2
- package/dist/types/components/select/select.style.d.ts +1 -1
- package/dist/types/components/stat/stat.style.d.ts +2 -2
- package/dist/types/components/steps/steps.style.d.ts +1 -1
- package/dist/types/components/tag/tag.style.d.ts +1 -1
- package/dist/types/components/timeline/timeline.d.ts +1 -1
- package/dist/types/components/timeline/timeline.style.d.ts +1 -1
- package/dist/types/hooks/use-clickable/index.d.ts +6 -2
- package/dist/types/providers/i18n-provider/i18n-provider.d.ts +1 -1
- package/dist/types/utils/ref.d.ts +9 -3
- package/package.json +1 -1
package/dist/cjs/utils/ref.cjs
CHANGED
|
@@ -8,10 +8,7 @@ function isRefObject(val) {
|
|
|
8
8
|
}
|
|
9
9
|
function assignRef(ref, value) {
|
|
10
10
|
if (ref == null) return;
|
|
11
|
-
if (typeof ref === "function")
|
|
12
|
-
ref(value);
|
|
13
|
-
return;
|
|
14
|
-
}
|
|
11
|
+
if (typeof ref === "function") return ref(value);
|
|
15
12
|
try {
|
|
16
13
|
ref.current = value;
|
|
17
14
|
} catch {
|
|
@@ -20,9 +17,13 @@ function assignRef(ref, value) {
|
|
|
20
17
|
}
|
|
21
18
|
function mergeRefs(...refs) {
|
|
22
19
|
return function(node) {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
20
|
+
const cleanups = refs.map((ref) => assignRef(ref, node));
|
|
21
|
+
return () => {
|
|
22
|
+
cleanups.forEach((cleanup, index) => {
|
|
23
|
+
if ((0, _yamada_ui_utils.isFunction)(cleanup)) cleanup();
|
|
24
|
+
else assignRef(refs[index], null);
|
|
25
|
+
});
|
|
26
|
+
};
|
|
26
27
|
};
|
|
27
28
|
}
|
|
28
29
|
function useMergeRefs(...refs) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ref.cjs","names":["isObject","React"],"sources":["../../../src/utils/ref.ts"],"sourcesContent":["import { isObject } from \"@yamada-ui/utils\"\nimport * as React from \"react\"\n\nexport function isRefObject(val: any): val is { current: any } {\n return isObject(val) && \"current\" in val\n}\n\nexport function assignRef<Y = any>(ref: React.Ref<Y> | undefined
|
|
1
|
+
{"version":3,"file":"ref.cjs","names":["isObject","isFunction","React"],"sources":["../../../src/utils/ref.ts"],"sourcesContent":["import { isFunction, isObject } from \"@yamada-ui/utils\"\nimport * as React from \"react\"\n\nexport function isRefObject(val: any): val is { current: any } {\n return isObject(val) && \"current\" in val\n}\n\nexport function assignRef<Y = any>(\n ref: React.Ref<Y> | undefined,\n value: Y,\n): ReturnType<React.RefCallback<Y>> {\n if (ref == null) return\n\n if (typeof ref === \"function\") return ref(value)\n\n try {\n ref.current = value\n } catch {\n throw new Error(\"Cannot assign value to ref\")\n }\n}\n\nexport function mergeRefs<Y = any>(\n ...refs: (null | React.Ref<Y> | undefined)[]\n): { (node: null | Y): { (): void } } {\n return function (node) {\n const cleanups = refs.map((ref) => assignRef(ref, node))\n\n return () => {\n cleanups.forEach((cleanup, index) => {\n if (isFunction(cleanup)) cleanup()\n else assignRef(refs[index], null)\n })\n }\n }\n}\n\nexport function useMergeRefs<Y = any>(...refs: (React.Ref<Y> | undefined)[]) {\n // eslint-disable-next-line react/use-memo, react-hooks/exhaustive-deps\n return React.useMemo(() => mergeRefs(...refs), refs)\n}\n\nexport function useCallbackRef<Y extends (...args: any[]) => any>(\n callback: undefined | Y,\n deps: React.DependencyList = [],\n) {\n const callbackRef = React.useRef(callback)\n\n React.useEffect(() => {\n callbackRef.current = callback\n })\n\n return React.useCallback(\n ((...args) => callbackRef.current?.(...args)) as Y,\n // eslint-disable-next-line react-hooks/exhaustive-deps\n deps,\n )\n}\n"],"mappings":";;;;;AAGA,SAAgB,YAAY,KAAmC;CAC7D,QAAA,GAAOA,iBAAAA,SAAAA,CAAS,GAAG,KAAK,aAAa;AACvC;AAEA,SAAgB,UACd,KACA,OACkC;CAClC,IAAI,OAAO,MAAM;CAEjB,IAAI,OAAO,QAAQ,YAAY,OAAO,IAAI,KAAK;CAE/C,IAAI;EACF,IAAI,UAAU;CAChB,QAAQ;EACN,MAAM,IAAI,MAAM,4BAA4B;CAC9C;AACF;AAEA,SAAgB,UACd,GAAG,MACiC;CACpC,OAAO,SAAU,MAAM;EACrB,MAAM,WAAW,KAAK,KAAK,QAAQ,UAAU,KAAK,IAAI,CAAC;EAEvD,aAAa;GACX,SAAS,SAAS,SAAS,UAAU;IACnC,KAAA,GAAIC,iBAAAA,WAAAA,CAAW,OAAO,GAAG,QAAQ;SAC5B,UAAU,KAAK,QAAQ,IAAI;GAClC,CAAC;EACH;CACF;AACF;AAEA,SAAgB,aAAsB,GAAG,MAAoC;CAE3E,OAAOC,MAAM,cAAc,UAAU,GAAG,IAAI,GAAG,IAAI;AACrD;AAEA,SAAgB,eACd,UACA,OAA6B,CAAC,GAC9B;CACA,MAAM,cAAcA,MAAM,OAAO,QAAQ;CAEzC,MAAM,gBAAgB;EACpB,YAAY,UAAU;CACxB,CAAC;CAED,OAAOA,MAAM,cACT,GAAG,SAAS,YAAY,UAAU,GAAG,IAAI,IAE3C,IACF;AACF"}
|
package/dist/esm/utils/ref.js
CHANGED
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { isObject } from "@yamada-ui/utils";
|
|
2
|
+
import { isFunction, isObject } from "@yamada-ui/utils";
|
|
3
3
|
// src/utils/ref.ts
|
|
4
4
|
function isRefObject(val) {
|
|
5
5
|
return isObject(val) && "current" in val;
|
|
6
6
|
}
|
|
7
7
|
function assignRef(ref, value) {
|
|
8
8
|
if (ref == null) return;
|
|
9
|
-
if (typeof ref === "function")
|
|
10
|
-
ref(value);
|
|
11
|
-
return;
|
|
12
|
-
}
|
|
9
|
+
if (typeof ref === "function") return ref(value);
|
|
13
10
|
try {
|
|
14
11
|
ref.current = value;
|
|
15
12
|
} catch {
|
|
@@ -18,9 +15,13 @@ function assignRef(ref, value) {
|
|
|
18
15
|
}
|
|
19
16
|
function mergeRefs(...refs) {
|
|
20
17
|
return function(node) {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
18
|
+
const cleanups = refs.map((ref) => assignRef(ref, node));
|
|
19
|
+
return () => {
|
|
20
|
+
cleanups.forEach((cleanup, index) => {
|
|
21
|
+
if (isFunction(cleanup)) cleanup();
|
|
22
|
+
else assignRef(refs[index], null);
|
|
23
|
+
});
|
|
24
|
+
};
|
|
24
25
|
};
|
|
25
26
|
}
|
|
26
27
|
function useMergeRefs(...refs) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ref.js","names":[],"sources":["../../../src/utils/ref.ts"],"sourcesContent":["import { isObject } from \"@yamada-ui/utils\"\nimport * as React from \"react\"\n\nexport function isRefObject(val: any): val is { current: any } {\n return isObject(val) && \"current\" in val\n}\n\nexport function assignRef<Y = any>(ref: React.Ref<Y> | undefined
|
|
1
|
+
{"version":3,"file":"ref.js","names":[],"sources":["../../../src/utils/ref.ts"],"sourcesContent":["import { isFunction, isObject } from \"@yamada-ui/utils\"\nimport * as React from \"react\"\n\nexport function isRefObject(val: any): val is { current: any } {\n return isObject(val) && \"current\" in val\n}\n\nexport function assignRef<Y = any>(\n ref: React.Ref<Y> | undefined,\n value: Y,\n): ReturnType<React.RefCallback<Y>> {\n if (ref == null) return\n\n if (typeof ref === \"function\") return ref(value)\n\n try {\n ref.current = value\n } catch {\n throw new Error(\"Cannot assign value to ref\")\n }\n}\n\nexport function mergeRefs<Y = any>(\n ...refs: (null | React.Ref<Y> | undefined)[]\n): { (node: null | Y): { (): void } } {\n return function (node) {\n const cleanups = refs.map((ref) => assignRef(ref, node))\n\n return () => {\n cleanups.forEach((cleanup, index) => {\n if (isFunction(cleanup)) cleanup()\n else assignRef(refs[index], null)\n })\n }\n }\n}\n\nexport function useMergeRefs<Y = any>(...refs: (React.Ref<Y> | undefined)[]) {\n // eslint-disable-next-line react/use-memo, react-hooks/exhaustive-deps\n return React.useMemo(() => mergeRefs(...refs), refs)\n}\n\nexport function useCallbackRef<Y extends (...args: any[]) => any>(\n callback: undefined | Y,\n deps: React.DependencyList = [],\n) {\n const callbackRef = React.useRef(callback)\n\n React.useEffect(() => {\n callbackRef.current = callback\n })\n\n return React.useCallback(\n ((...args) => callbackRef.current?.(...args)) as Y,\n // eslint-disable-next-line react-hooks/exhaustive-deps\n deps,\n )\n}\n"],"mappings":";;;AAGA,SAAgB,YAAY,KAAmC;CAC7D,OAAO,SAAS,GAAG,KAAK,aAAa;AACvC;AAEA,SAAgB,UACd,KACA,OACkC;CAClC,IAAI,OAAO,MAAM;CAEjB,IAAI,OAAO,QAAQ,YAAY,OAAO,IAAI,KAAK;CAE/C,IAAI;EACF,IAAI,UAAU;CAChB,QAAQ;EACN,MAAM,IAAI,MAAM,4BAA4B;CAC9C;AACF;AAEA,SAAgB,UACd,GAAG,MACiC;CACpC,OAAO,SAAU,MAAM;EACrB,MAAM,WAAW,KAAK,KAAK,QAAQ,UAAU,KAAK,IAAI,CAAC;EAEvD,aAAa;GACX,SAAS,SAAS,SAAS,UAAU;IACnC,IAAI,WAAW,OAAO,GAAG,QAAQ;SAC5B,UAAU,KAAK,QAAQ,IAAI;GAClC,CAAC;EACH;CACF;AACF;AAEA,SAAgB,aAAsB,GAAG,MAAoC;CAE3E,OAAO,MAAM,cAAc,UAAU,GAAG,IAAI,GAAG,IAAI;AACrD;AAEA,SAAgB,eACd,UACA,OAA6B,CAAC,GAC9B;CACA,MAAM,cAAc,MAAM,OAAO,QAAQ;CAEzC,MAAM,gBAAgB;EACpB,YAAY,UAAU;CACxB,CAAC;CAED,OAAO,MAAM,cACT,GAAG,SAAS,YAAY,UAAU,GAAG,IAAI,IAE3C,IACF;AACF"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentSlotStyle } from "../../core/system/index.type.js";
|
|
2
2
|
import { CSSPropObject, CSSSlotObject } from "../../core/css/index.type.js";
|
|
3
3
|
import "../../index.js";
|
|
4
|
-
export declare const autocompleteStyle: ComponentSlotStyle<"input" | "label" | "option" | "content" | "group" | "separator" | "icon" | "root" | "
|
|
4
|
+
export declare const autocompleteStyle: ComponentSlotStyle<"input" | "label" | "option" | "content" | "group" | "separator" | "icon" | "root" | "field" | "empty" | "indicator" | "valueText", CSSPropObject<CSSSlotObject<"input" | "label" | "option" | "content" | "group" | "separator" | "icon" | "root" | "field" | "empty" | "indicator" | "valueText">>, {
|
|
5
5
|
xs: {
|
|
6
6
|
empty: {
|
|
7
7
|
gap: "1.5";
|
|
@@ -21,7 +21,7 @@ export interface AvatarProps extends HTMLStyledProps, ThemeProps<AvatarStyle>, U
|
|
|
21
21
|
*/
|
|
22
22
|
imageProps?: AvatarImageProps;
|
|
23
23
|
}
|
|
24
|
-
declare const component: <H extends "fragment" | As = "div", R extends import("@yamada-ui/utils").Dict = import("@yamada-ui/utils").Dict<any>>(el: H | import("react").FC<R>, slot?: ComponentSlot<ComponentSlotName<ComponentSlotStyle<"image" | "group" | "
|
|
24
|
+
declare const component: <H extends "fragment" | As = "div", R extends import("@yamada-ui/utils").Dict = import("@yamada-ui/utils").Dict<any>>(el: H | import("react").FC<R>, slot?: ComponentSlot<ComponentSlotName<ComponentSlotStyle<"image" | "group" | "root" | "fallback", {
|
|
25
25
|
shape: {
|
|
26
26
|
circle: {
|
|
27
27
|
root: {
|
|
@@ -140,7 +140,7 @@ declare const component: <H extends "fragment" | As = "div", R extends import("@
|
|
|
140
140
|
};
|
|
141
141
|
};
|
|
142
142
|
};
|
|
143
|
-
}>>> | undefined, { name, className, ...options }?: ComponentOptions) => (initialProps?: InitialProps<R>, ...superProps: SuperProps<R>[]) => H extends "fragment" ? import("react").FunctionComponent<R> : Component<Exclude<H, "fragment">, R>, AvatarPropsContext: import("react").Context<Partial<AvatarProps> | undefined>, useAvatarPropsContext: () => Partial<AvatarProps> | undefined, useRootComponentProps: <Y extends import("@yamada-ui/utils").Dict = {}, R extends keyof Y = keyof Y>(props: Y, slot?: ComponentSlot<ComponentSlotName<ComponentSlotStyle<"image" | "group" | "
|
|
143
|
+
}>>> | undefined, { name, className, ...options }?: ComponentOptions) => (initialProps?: InitialProps<R>, ...superProps: SuperProps<R>[]) => H extends "fragment" ? import("react").FunctionComponent<R> : Component<Exclude<H, "fragment">, R>, AvatarPropsContext: import("react").Context<Partial<AvatarProps> | undefined>, useAvatarPropsContext: () => Partial<AvatarProps> | undefined, useRootComponentProps: <Y extends import("@yamada-ui/utils").Dict = {}, R extends keyof Y = keyof Y>(props: Y, slot?: ComponentSlot<ComponentSlotName<ComponentSlotStyle<"image" | "group" | "root" | "fallback", {
|
|
144
144
|
shape: {
|
|
145
145
|
circle: {
|
|
146
146
|
root: {
|
|
@@ -259,7 +259,7 @@ declare const component: <H extends "fragment" | As = "div", R extends import("@
|
|
|
259
259
|
};
|
|
260
260
|
};
|
|
261
261
|
};
|
|
262
|
-
}>>> | undefined, { className, withContext, transferProps }?: UseComponentPropsOptions<R>) => [CSSSlotObject, import("@yamada-ui/utils").Merge<WithoutThemeProps<Y, ComponentSlotStyle<"image" | "group" | "
|
|
262
|
+
}>>> | undefined, { className, withContext, transferProps }?: UseComponentPropsOptions<R>) => [CSSSlotObject, import("@yamada-ui/utils").Merge<WithoutThemeProps<Y, ComponentSlotStyle<"image" | "group" | "root" | "fallback", {
|
|
263
263
|
shape: {
|
|
264
264
|
circle: {
|
|
265
265
|
root: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentSlotStyle } from "../../core/system/index.type.js";
|
|
2
2
|
import "../../index.js";
|
|
3
|
-
export declare const avatarStyle: ComponentSlotStyle<"image" | "group" | "
|
|
3
|
+
export declare const avatarStyle: ComponentSlotStyle<"image" | "group" | "root" | "fallback", {
|
|
4
4
|
/**
|
|
5
5
|
* The shape of the component
|
|
6
6
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentSlotStyle } from "../../core/system/index.type.js";
|
|
2
2
|
import { CSSModifierObject, CSSSlotObject } from "../../core/css/index.type.js";
|
|
3
3
|
import "../../index.js";
|
|
4
|
-
export declare const calendarStyle: ComponentSlotStyle<"button" | "select" | "cell" | "navigation" | "row" | "separator" | "next" | "
|
|
4
|
+
export declare const calendarStyle: ComponentSlotStyle<"button" | "select" | "cell" | "navigation" | "row" | "separator" | "next" | "root" | "month" | "week" | "weekday" | "day" | "months" | "years" | "weeks" | "prev" | "control", {
|
|
5
5
|
/**
|
|
6
6
|
* If `true`, the calendar will be fixed rows.
|
|
7
7
|
*
|
|
@@ -73,5 +73,5 @@ export declare const calendarStyle: ComponentSlotStyle<"button" | "select" | "ce
|
|
|
73
73
|
"--font-size": "fontSizes.xl";
|
|
74
74
|
};
|
|
75
75
|
};
|
|
76
|
-
}, CSSModifierObject<CSSSlotObject<"button" | "select" | "cell" | "navigation" | "row" | "separator" | "next" | "
|
|
76
|
+
}, CSSModifierObject<CSSSlotObject<"button" | "select" | "cell" | "navigation" | "row" | "separator" | "next" | "root" | "month" | "week" | "weekday" | "day" | "months" | "years" | "weeks" | "prev" | "control">>>;
|
|
77
77
|
export type CalendarStyle = typeof calendarStyle;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentSlotStyle } from "../../core/system/index.type.js";
|
|
2
2
|
import { CSSModifierObject, CSSPropObject, CSSSlotObject } from "../../core/css/index.type.js";
|
|
3
3
|
import "../../index.js";
|
|
4
|
-
export declare const carouselStyle: ComponentSlotStyle<"list" | "next" | "
|
|
4
|
+
export declare const carouselStyle: ComponentSlotStyle<"list" | "next" | "root" | "indicator" | "item" | "trigger" | "prev" | "indicators", CSSPropObject<CSSSlotObject<"list" | "next" | "root" | "indicator" | "item" | "trigger" | "prev" | "indicators">>, {
|
|
5
5
|
sm: {
|
|
6
6
|
root: {
|
|
7
7
|
h: "sm";
|
|
@@ -17,5 +17,5 @@ export declare const carouselStyle: ComponentSlotStyle<"list" | "next" | "prev"
|
|
|
17
17
|
h: "lg";
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
|
-
}, CSSModifierObject<CSSSlotObject<"list" | "next" | "
|
|
20
|
+
}, CSSModifierObject<CSSSlotObject<"list" | "next" | "root" | "indicator" | "item" | "trigger" | "prev" | "indicators">>>;
|
|
21
21
|
export type CarouselStyle = typeof carouselStyle;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentSlotStyle } from "../../core/system/index.type.js";
|
|
2
2
|
import { CSSModifierObject, CSSPropObject, CSSSlotObject } from "../../core/css/index.type.js";
|
|
3
3
|
import "../../index.js";
|
|
4
|
-
export declare const polarChartStyle: ComponentSlotStyle<"label" | "grid" | "dot" | "root" | "
|
|
4
|
+
export declare const polarChartStyle: ComponentSlotStyle<"label" | "grid" | "dot" | "root" | "activeDot" | "angleAxis" | "angleAxisLabel" | "angleAxisLine" | "angleAxisTick" | "angleAxisTickLine" | "labelLine" | "labelList" | "pie" | "radar" | "radial" | "radialBackground" | "radiusAxis" | "radiusAxisLabel" | "radiusAxisLine" | "radiusAxisTick" | "radiusAxisTickLine" | "sector", CSSPropObject<CSSSlotObject<"label" | "grid" | "dot" | "root" | "activeDot" | "angleAxis" | "angleAxisLabel" | "angleAxisLine" | "angleAxisTick" | "angleAxisTickLine" | "labelLine" | "labelList" | "pie" | "radar" | "radial" | "radialBackground" | "radiusAxis" | "radiusAxisLabel" | "radiusAxisLine" | "radiusAxisTick" | "radiusAxisTickLine" | "sector">>, CSSModifierObject<CSSSlotObject<"label" | "grid" | "dot" | "root" | "activeDot" | "angleAxis" | "angleAxisLabel" | "angleAxisLine" | "angleAxisTick" | "angleAxisTickLine" | "labelLine" | "labelList" | "pie" | "radar" | "radial" | "radialBackground" | "radiusAxis" | "radiusAxisLabel" | "radiusAxisLine" | "radiusAxisTick" | "radiusAxisTickLine" | "sector">>, CSSModifierObject<CSSSlotObject<"label" | "grid" | "dot" | "root" | "activeDot" | "angleAxis" | "angleAxisLabel" | "angleAxisLine" | "angleAxisTick" | "angleAxisTickLine" | "labelLine" | "labelList" | "pie" | "radar" | "radial" | "radialBackground" | "radiusAxis" | "radiusAxisLabel" | "radiusAxisLine" | "radiusAxisTick" | "radiusAxisTickLine" | "sector">>>;
|
|
5
5
|
export type PolarChartStyle = typeof polarChartStyle;
|
|
@@ -63,7 +63,7 @@ export interface CheckboxCardRootProps<Y extends string = string> extends Merge<
|
|
|
63
63
|
*/
|
|
64
64
|
rootProps?: HTMLStyledProps<"label">;
|
|
65
65
|
}
|
|
66
|
-
declare const component: <H extends "fragment" | As = "div", R extends import("@yamada-ui/utils").Dict = import("@yamada-ui/utils").Dict<any>>(el: H | import("react").FC<R>, slot?: ComponentSlot<ComponentSlotName<ComponentSlotStyle<"group" | "root" | "
|
|
66
|
+
declare const component: <H extends "fragment" | As = "div", R extends import("@yamada-ui/utils").Dict = import("@yamada-ui/utils").Dict<any>>(el: H | import("react").FC<R>, slot?: ComponentSlot<ComponentSlotName<ComponentSlotStyle<"group" | "root" | "description" | "indicator" | "addon", {
|
|
67
67
|
justify: {
|
|
68
68
|
end: {
|
|
69
69
|
addon: {
|
|
@@ -209,7 +209,7 @@ declare const component: <H extends "fragment" | As = "div", R extends import("@
|
|
|
209
209
|
};
|
|
210
210
|
};
|
|
211
211
|
};
|
|
212
|
-
}>>> | undefined, { name, className, ...options }?: ComponentOptions) => (initialProps?: InitialProps<R>, ...superProps: SuperProps<R>[]) => H extends "fragment" ? import("react").FunctionComponent<R> : Component<Exclude<H, "fragment">, R>, CheckboxCardPropsContext: import("react").Context<Partial<CheckboxCardRootProps<string>> | undefined>, useCheckboxCardPropsContext: () => Partial<CheckboxCardRootProps<string>> | undefined, useRootComponentProps: <Y extends import("@yamada-ui/utils").Dict = {}, R extends keyof Y = keyof Y>(props: Y, slot?: ComponentSlot<ComponentSlotName<ComponentSlotStyle<"group" | "root" | "
|
|
212
|
+
}>>> | undefined, { name, className, ...options }?: ComponentOptions) => (initialProps?: InitialProps<R>, ...superProps: SuperProps<R>[]) => H extends "fragment" ? import("react").FunctionComponent<R> : Component<Exclude<H, "fragment">, R>, CheckboxCardPropsContext: import("react").Context<Partial<CheckboxCardRootProps<string>> | undefined>, useCheckboxCardPropsContext: () => Partial<CheckboxCardRootProps<string>> | undefined, useRootComponentProps: <Y extends import("@yamada-ui/utils").Dict = {}, R extends keyof Y = keyof Y>(props: Y, slot?: ComponentSlot<ComponentSlotName<ComponentSlotStyle<"group" | "root" | "description" | "indicator" | "addon", {
|
|
213
213
|
justify: {
|
|
214
214
|
end: {
|
|
215
215
|
addon: {
|
|
@@ -355,7 +355,7 @@ declare const component: <H extends "fragment" | As = "div", R extends import("@
|
|
|
355
355
|
};
|
|
356
356
|
};
|
|
357
357
|
};
|
|
358
|
-
}>>> | undefined, { className, withContext, transferProps }?: UseComponentPropsOptions<R>) => [CSSSlotObject, Merge<WithoutThemeProps<Y, ComponentSlotStyle<"group" | "root" | "
|
|
358
|
+
}>>> | undefined, { className, withContext, transferProps }?: UseComponentPropsOptions<R>) => [CSSSlotObject, Merge<WithoutThemeProps<Y, ComponentSlotStyle<"group" | "root" | "description" | "indicator" | "addon", {
|
|
359
359
|
justify: {
|
|
360
360
|
end: {
|
|
361
361
|
addon: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentSlotStyle } from "../../core/system/index.type.js";
|
|
2
2
|
import "../../index.js";
|
|
3
|
-
export declare const checkboxCardStyle: ComponentSlotStyle<"group" | "root" | "
|
|
3
|
+
export declare const checkboxCardStyle: ComponentSlotStyle<"group" | "root" | "description" | "indicator" | "addon", {
|
|
4
4
|
/**
|
|
5
5
|
* The justify indicator of the component
|
|
6
6
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentSlotStyle } from "../../core/system/index.type.js";
|
|
2
2
|
import { CSSPropObject, CSSSlotObject } from "../../core/css/index.type.js";
|
|
3
3
|
import "../../index.js";
|
|
4
|
-
export declare const colorPickerStyle: ComponentSlotStyle<"input" | "content" | "icon" | "root" | "
|
|
4
|
+
export declare const colorPickerStyle: ComponentSlotStyle<"input" | "content" | "icon" | "root" | "eyeDropper" | "field" | "colorSwatch", CSSPropObject<CSSSlotObject<"input" | "content" | "icon" | "root" | "eyeDropper" | "field" | "colorSwatch">>, {
|
|
5
5
|
xs: {
|
|
6
6
|
field: {
|
|
7
7
|
fontSize: "1em";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentSlotStyle } from "../../core/system/index.type.js";
|
|
2
2
|
import { CSSModifierObject, CSSSlotObject } from "../../core/css/index.type.js";
|
|
3
3
|
import "../../index.js";
|
|
4
|
-
export declare const colorSelectorStyle: ComponentSlotStyle<"root" | "
|
|
4
|
+
export declare const colorSelectorStyle: ComponentSlotStyle<"root" | "eyeDropper" | "colorSwatchGroupLabel" | "alphaSlider" | "colorSwatchGroup" | "colorSwatchItem" | "hueSlider" | "saturationSlider", {
|
|
5
5
|
/**
|
|
6
6
|
* The shape of the thumb and color swatch.
|
|
7
7
|
*
|
|
@@ -22,5 +22,5 @@ export declare const colorSelectorStyle: ComponentSlotStyle<"root" | "hueSlider"
|
|
|
22
22
|
md: {};
|
|
23
23
|
lg: {};
|
|
24
24
|
xl: {};
|
|
25
|
-
}, CSSModifierObject<CSSSlotObject<"root" | "
|
|
25
|
+
}, CSSModifierObject<CSSSlotObject<"root" | "eyeDropper" | "colorSwatchGroupLabel" | "alphaSlider" | "colorSwatchGroup" | "colorSwatchItem" | "hueSlider" | "saturationSlider">>>;
|
|
26
26
|
export type ColorSelectorStyle = typeof colorSelectorStyle;
|
|
@@ -22,7 +22,7 @@ declare const EditablePropsContext: import("react").Context<Partial<EditableRoot
|
|
|
22
22
|
*
|
|
23
23
|
* @see https://yamada-ui.com/docs/components/editable
|
|
24
24
|
*/
|
|
25
|
-
export declare const EditableRoot: Component<({ children, errorBorderColor, focusBorderColor, ...props }: WithoutThemeProps<EditableRootProps, ComponentSlotStyle<"input" | "textarea" | "root" | "
|
|
25
|
+
export declare const EditableRoot: Component<({ children, errorBorderColor, focusBorderColor, ...props }: WithoutThemeProps<EditableRootProps, ComponentSlotStyle<"input" | "textarea" | "root" | "preview" | "control", CSSPropObject<CSSSlotObject<"input" | "textarea" | "root" | "preview" | "control">>, CSSModifierObject<CSSSlotObject<"input" | "textarea" | "root" | "preview" | "control">>, CSSModifierObject<CSSSlotObject<"input" | "textarea" | "root" | "preview" | "control">>>, keyof EditableRootProps>) => import("react").JSX.Element, EditableRootProps>;
|
|
26
26
|
export interface EditablePreviewProps extends HTMLStyledProps<"span"> {}
|
|
27
27
|
export declare const EditablePreview: Component<"span", EditablePreviewProps>;
|
|
28
28
|
export interface EditableInputProps extends HTMLStyledProps<"input"> {}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentSlotStyle } from "../../core/system/index.type.js";
|
|
2
2
|
import { CSSModifierObject, CSSPropObject, CSSSlotObject } from "../../core/css/index.type.js";
|
|
3
3
|
import "../../index.js";
|
|
4
|
-
export declare const editableStyle: ComponentSlotStyle<"input" | "textarea" | "root" | "
|
|
4
|
+
export declare const editableStyle: ComponentSlotStyle<"input" | "textarea" | "root" | "preview" | "control", CSSPropObject<CSSSlotObject<"input" | "textarea" | "root" | "preview" | "control">>, CSSModifierObject<CSSSlotObject<"input" | "textarea" | "root" | "preview" | "control">>, CSSModifierObject<CSSSlotObject<"input" | "textarea" | "root" | "preview" | "control">>>;
|
|
5
5
|
export type EditableStyle = typeof editableStyle;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentSlotStyle } from "../../core/system/index.type.js";
|
|
2
2
|
import { CSSModifierObject, CSSPropObject, CSSSlotObject } from "../../core/css/index.type.js";
|
|
3
3
|
import "../../index.js";
|
|
4
|
-
export declare const emptyState: ComponentSlotStyle<"title" | "content" | "root" | "
|
|
4
|
+
export declare const emptyState: ComponentSlotStyle<"title" | "content" | "root" | "description" | "indicator", CSSPropObject<CSSSlotObject<"title" | "content" | "root" | "description" | "indicator">>, {
|
|
5
5
|
sm: {
|
|
6
6
|
content: {
|
|
7
7
|
gap: "xs";
|
|
@@ -47,5 +47,5 @@ export declare const emptyState: ComponentSlotStyle<"title" | "content" | "root"
|
|
|
47
47
|
fontSize: "xl";
|
|
48
48
|
};
|
|
49
49
|
};
|
|
50
|
-
}, CSSModifierObject<CSSSlotObject<"title" | "content" | "root" | "
|
|
50
|
+
}, CSSModifierObject<CSSSlotObject<"title" | "content" | "root" | "description" | "indicator">>>;
|
|
51
51
|
export type EmptyState = typeof emptyState;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentSlotStyle } from "../../core/system/index.type.js";
|
|
2
2
|
import { CSSModifierObject, CSSSlotObject } from "../../core/css/index.type.js";
|
|
3
3
|
import "../../index.js";
|
|
4
|
-
export declare const fieldStyle: ComponentSlotStyle<"label" | "
|
|
4
|
+
export declare const fieldStyle: ComponentSlotStyle<"label" | "errorMessage" | "helperMessage" | "requiredIndicator" | "root", {
|
|
5
5
|
/**
|
|
6
6
|
* The orientation of the field.
|
|
7
7
|
*/
|
|
@@ -35,5 +35,5 @@ export declare const fieldStyle: ComponentSlotStyle<"label" | "root" | "errorMes
|
|
|
35
35
|
};
|
|
36
36
|
};
|
|
37
37
|
};
|
|
38
|
-
}, CSSModifierObject<CSSSlotObject<"label" | "
|
|
38
|
+
}, CSSModifierObject<CSSSlotObject<"label" | "errorMessage" | "helperMessage" | "requiredIndicator" | "root">>, CSSModifierObject<CSSSlotObject<"label" | "errorMessage" | "helperMessage" | "requiredIndicator" | "root">>>;
|
|
39
39
|
export type FieldStyle = typeof fieldStyle;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentSlotStyle } from "../../core/system/index.type.js";
|
|
2
2
|
import { CSSPropObject, CSSSlotObject } from "../../core/css/index.type.js";
|
|
3
3
|
import "../../index.js";
|
|
4
|
-
export declare const fieldsetStyle: ComponentSlotStyle<"header" | "legend" | "content" | "
|
|
4
|
+
export declare const fieldsetStyle: ComponentSlotStyle<"header" | "legend" | "content" | "errorMessage" | "helperMessage" | "root", CSSPropObject<CSSSlotObject<"header" | "legend" | "content" | "errorMessage" | "helperMessage" | "root">>, {
|
|
5
5
|
sm: {
|
|
6
6
|
content: {
|
|
7
7
|
gap: "3";
|
|
@@ -9,7 +9,9 @@ import "../file-input/index.js";
|
|
|
9
9
|
export interface UseFileButtonProps extends UseFileInputProps<"button">, FieldProps {}
|
|
10
10
|
export declare const useFileButton: (props?: UseFileButtonProps) => {
|
|
11
11
|
clickableProps: (Omit<UseClickableProps<HTMLElement, import("@yamada-ui/utils").Dict<any>>, "disabled" | "ref" | "tabIndex" | "onKeyDown" | "onKeyUp" | "onClick" | "onMouseDown" | "onMouseLeave" | "onMouseOver" | "onMouseUp" | "clickOnEnter" | "clickOnSpace" | "disableTouchBehavior" | "focusable" | "focusOnClick"> & {
|
|
12
|
-
ref: (node: any) =>
|
|
12
|
+
ref: (node: any) => {
|
|
13
|
+
(): void;
|
|
14
|
+
};
|
|
13
15
|
type: "button";
|
|
14
16
|
"aria-disabled": boolean | undefined;
|
|
15
17
|
disabled: boolean | undefined;
|
|
@@ -21,7 +23,9 @@ export declare const useFileButton: (props?: UseFileButtonProps) => {
|
|
|
21
23
|
onMouseOver: import("react").MouseEventHandler<HTMLElement> | undefined;
|
|
22
24
|
onMouseUp: import("react").MouseEventHandler<HTMLElement> | undefined;
|
|
23
25
|
}) | (Omit<UseClickableProps<HTMLElement, import("@yamada-ui/utils").Dict<any>>, "disabled" | "ref" | "tabIndex" | "onKeyDown" | "onKeyUp" | "onClick" | "onMouseDown" | "onMouseLeave" | "onMouseOver" | "onMouseUp" | "clickOnEnter" | "clickOnSpace" | "disableTouchBehavior" | "focusable" | "focusOnClick"> & {
|
|
24
|
-
ref: (node: any) =>
|
|
26
|
+
ref: (node: any) => {
|
|
27
|
+
(): void;
|
|
28
|
+
};
|
|
25
29
|
"aria-disabled": "true" | undefined;
|
|
26
30
|
"data-active": string | undefined;
|
|
27
31
|
role: string;
|
|
@@ -31,7 +31,9 @@ export declare const useFileInput: <Y extends "button" | "input" = "input">(prop
|
|
|
31
31
|
required: boolean | undefined;
|
|
32
32
|
values: File[] | undefined;
|
|
33
33
|
clickableProps: (Omit<UseClickableProps<HTMLElement, Dict<any>>, "disabled" | "ref" | "tabIndex" | "onKeyDown" | "onKeyUp" | "onClick" | "onMouseDown" | "onMouseLeave" | "onMouseOver" | "onMouseUp" | "clickOnEnter" | "clickOnSpace" | "disableTouchBehavior" | "focusable" | "focusOnClick"> & {
|
|
34
|
-
ref: (node: any) =>
|
|
34
|
+
ref: (node: any) => {
|
|
35
|
+
(): void;
|
|
36
|
+
};
|
|
35
37
|
type: "button";
|
|
36
38
|
"aria-disabled": boolean | undefined;
|
|
37
39
|
disabled: boolean | undefined;
|
|
@@ -43,7 +45,9 @@ export declare const useFileInput: <Y extends "button" | "input" = "input">(prop
|
|
|
43
45
|
onMouseOver: import("react").MouseEventHandler<HTMLElement> | undefined;
|
|
44
46
|
onMouseUp: import("react").MouseEventHandler<HTMLElement> | undefined;
|
|
45
47
|
}) | (Omit<UseClickableProps<HTMLElement, Dict<any>>, "disabled" | "ref" | "tabIndex" | "onKeyDown" | "onKeyUp" | "onClick" | "onMouseDown" | "onMouseLeave" | "onMouseOver" | "onMouseUp" | "clickOnEnter" | "clickOnSpace" | "disableTouchBehavior" | "focusable" | "focusOnClick"> & {
|
|
46
|
-
ref: (node: any) =>
|
|
48
|
+
ref: (node: any) => {
|
|
49
|
+
(): void;
|
|
50
|
+
};
|
|
47
51
|
"aria-disabled": "true" | undefined;
|
|
48
52
|
"data-active": string | undefined;
|
|
49
53
|
role: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentSlotStyle } from "../../core/system/index.type.js";
|
|
2
2
|
import { CSSPropObject, CSSSlotObject } from "../../core/css/index.type.js";
|
|
3
3
|
import "../../index.js";
|
|
4
|
-
export declare const numberInputStyle: ComponentSlotStyle<"button" | "root" | "
|
|
4
|
+
export declare const numberInputStyle: ComponentSlotStyle<"button" | "root" | "field" | "decrement" | "increment" | "control", CSSPropObject<CSSSlotObject<"button" | "root" | "field" | "decrement" | "increment" | "control">>, {
|
|
5
5
|
xs: {
|
|
6
6
|
control: {
|
|
7
7
|
boxSize: "calc({--height} - {spaces.2})";
|
|
@@ -55,7 +55,7 @@ export interface RadioCardRootProps<Y extends string = string> extends Merge<HTM
|
|
|
55
55
|
*/
|
|
56
56
|
rootProps?: HTMLStyledProps<"label">;
|
|
57
57
|
}
|
|
58
|
-
declare const component: <H extends "fragment" | As = "div", R extends import("@yamada-ui/utils").Dict = import("@yamada-ui/utils").Dict<any>>(el: H | import("react").FC<R>, slot?: ComponentSlot<ComponentSlotName<ComponentSlotStyle<"group" | "root" | "
|
|
58
|
+
declare const component: <H extends "fragment" | As = "div", R extends import("@yamada-ui/utils").Dict = import("@yamada-ui/utils").Dict<any>>(el: H | import("react").FC<R>, slot?: ComponentSlot<ComponentSlotName<ComponentSlotStyle<"group" | "root" | "description" | "indicator" | "addon", {
|
|
59
59
|
justify: {
|
|
60
60
|
end: {
|
|
61
61
|
addon: {
|
|
@@ -228,7 +228,7 @@ declare const component: <H extends "fragment" | As = "div", R extends import("@
|
|
|
228
228
|
};
|
|
229
229
|
};
|
|
230
230
|
};
|
|
231
|
-
}>>> | undefined, { name, className, ...options }?: ComponentOptions) => (initialProps?: InitialProps<R>, ...superProps: SuperProps<R>[]) => H extends "fragment" ? import("react").FunctionComponent<R> : Component<Exclude<H, "fragment">, R>, RadioCardPropsContext: import("react").Context<Partial<RadioCardRootProps<string>> | undefined>, useRadioCardPropsContext: () => Partial<RadioCardRootProps<string>> | undefined, useRootComponentProps: <Y extends import("@yamada-ui/utils").Dict = {}, R extends keyof Y = keyof Y>(props: Y, slot?: ComponentSlot<ComponentSlotName<ComponentSlotStyle<"group" | "root" | "
|
|
231
|
+
}>>> | undefined, { name, className, ...options }?: ComponentOptions) => (initialProps?: InitialProps<R>, ...superProps: SuperProps<R>[]) => H extends "fragment" ? import("react").FunctionComponent<R> : Component<Exclude<H, "fragment">, R>, RadioCardPropsContext: import("react").Context<Partial<RadioCardRootProps<string>> | undefined>, useRadioCardPropsContext: () => Partial<RadioCardRootProps<string>> | undefined, useRootComponentProps: <Y extends import("@yamada-ui/utils").Dict = {}, R extends keyof Y = keyof Y>(props: Y, slot?: ComponentSlot<ComponentSlotName<ComponentSlotStyle<"group" | "root" | "description" | "indicator" | "addon", {
|
|
232
232
|
justify: {
|
|
233
233
|
end: {
|
|
234
234
|
addon: {
|
|
@@ -401,7 +401,7 @@ declare const component: <H extends "fragment" | As = "div", R extends import("@
|
|
|
401
401
|
};
|
|
402
402
|
};
|
|
403
403
|
};
|
|
404
|
-
}>>> | undefined, { className, withContext, transferProps }?: UseComponentPropsOptions<R>) => [CSSSlotObject, Merge<WithoutThemeProps<Y, ComponentSlotStyle<"group" | "root" | "
|
|
404
|
+
}>>> | undefined, { className, withContext, transferProps }?: UseComponentPropsOptions<R>) => [CSSSlotObject, Merge<WithoutThemeProps<Y, ComponentSlotStyle<"group" | "root" | "description" | "indicator" | "addon", {
|
|
405
405
|
justify: {
|
|
406
406
|
end: {
|
|
407
407
|
addon: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentSlotStyle } from "../../core/system/index.type.js";
|
|
2
2
|
import "../../index.js";
|
|
3
|
-
export declare const radioCardStyle: ComponentSlotStyle<"group" | "root" | "
|
|
3
|
+
export declare const radioCardStyle: ComponentSlotStyle<"group" | "root" | "description" | "indicator" | "addon", {
|
|
4
4
|
/**
|
|
5
5
|
* The justify indicator of the component
|
|
6
6
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentSlotStyle } from "../../core/system/index.type.js";
|
|
2
2
|
import "../../index.js";
|
|
3
|
-
export declare const reorderStyle: ComponentSlotStyle<"root" | "
|
|
3
|
+
export declare const reorderStyle: ComponentSlotStyle<"root" | "item" | "trigger", {
|
|
4
4
|
/**
|
|
5
5
|
* The orientation of the reorder.
|
|
6
6
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentSlotStyle } from "../../core/system/index.type.js";
|
|
2
2
|
import { CSSModifierObject, CSSSlotObject } from "../../core/css/index.type.js";
|
|
3
3
|
import "../../index.js";
|
|
4
|
-
export declare const resizableStyle: ComponentSlotStyle<"icon" | "root" | "
|
|
4
|
+
export declare const resizableStyle: ComponentSlotStyle<"icon" | "root" | "item" | "trigger", {
|
|
5
5
|
/**
|
|
6
6
|
* The orientation of the resizable.
|
|
7
7
|
*
|
|
@@ -19,7 +19,7 @@ export declare const resizableStyle: ComponentSlotStyle<"icon" | "root" | "trigg
|
|
|
19
19
|
};
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
|
-
}, CSSModifierObject<CSSSlotObject<"icon" | "root" | "
|
|
22
|
+
}, CSSModifierObject<CSSSlotObject<"icon" | "root" | "item" | "trigger">>, {
|
|
23
23
|
border: {
|
|
24
24
|
icon: {
|
|
25
25
|
bg: "colorScheme.muted";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentSlotStyle } from "../../core/system/index.type.js";
|
|
2
2
|
import "../../index.js";
|
|
3
|
-
export declare const selectStyle: ComponentSlotStyle<"label" | "option" | "content" | "group" | "separator" | "icon" | "root" | "
|
|
3
|
+
export declare const selectStyle: ComponentSlotStyle<"label" | "option" | "content" | "group" | "separator" | "icon" | "root" | "field" | "indicator" | "valueText", {
|
|
4
4
|
/**
|
|
5
5
|
* If `true`, wrap the value text.
|
|
6
6
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentSlotStyle } from "../../core/system/index.type.js";
|
|
2
2
|
import { CSSModifierObject, CSSSlotObject } from "../../core/css/index.type.js";
|
|
3
3
|
import "../../index.js";
|
|
4
|
-
export declare const statStyle: ComponentSlotStyle<"label" | "value" | "icon" | "
|
|
4
|
+
export declare const statStyle: ComponentSlotStyle<"label" | "value" | "icon" | "helperMessage" | "root" | "unit", {
|
|
5
5
|
/**
|
|
6
6
|
* If `true`, container will center its children regardless of their width.
|
|
7
7
|
*
|
|
@@ -92,5 +92,5 @@ export declare const statStyle: ComponentSlotStyle<"label" | "value" | "icon" |
|
|
|
92
92
|
gap: "2";
|
|
93
93
|
};
|
|
94
94
|
};
|
|
95
|
-
}, CSSModifierObject<CSSSlotObject<"label" | "value" | "icon" | "
|
|
95
|
+
}, CSSModifierObject<CSSSlotObject<"label" | "value" | "icon" | "helperMessage" | "root" | "unit">>>;
|
|
96
96
|
export type StatStyle = typeof statStyle;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentSlotStyle } from "../../core/system/index.type.js";
|
|
2
2
|
import "../../index.js";
|
|
3
|
-
export declare const stepsStyle: ComponentSlotStyle<"title" | "list" | "separator" | "root" | "
|
|
3
|
+
export declare const stepsStyle: ComponentSlotStyle<"title" | "list" | "separator" | "root" | "description" | "indicator" | "item", {
|
|
4
4
|
/**
|
|
5
5
|
* The orientation of the steps.
|
|
6
6
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentSlotStyle } from "../../core/system/index.type.js";
|
|
2
2
|
import "../../index.js";
|
|
3
|
-
export declare const tagStyle: ComponentSlotStyle<"content" | "icon" | "root" | "
|
|
3
|
+
export declare const tagStyle: ComponentSlotStyle<"content" | "icon" | "root" | "endIcon" | "startIcon" | "closeButton", {
|
|
4
4
|
/**
|
|
5
5
|
* If `true`, the tag is full rounded. Else, it'll be slightly round.
|
|
6
6
|
*
|
|
@@ -61,7 +61,7 @@ declare const TimelinePropsContext: import("react").Context<Partial<TimelineRoot
|
|
|
61
61
|
*
|
|
62
62
|
* @see https://yamada-ui.com/docs/components/timeline
|
|
63
63
|
*/
|
|
64
|
-
export declare const TimelineRoot: Component<({ variant: variantProp, children, index, items, ...rest }: WithoutThemeProps<TimelineRootProps, ComponentSlotStyle<"title" | "content" | "root" | "
|
|
64
|
+
export declare const TimelineRoot: Component<({ variant: variantProp, children, index, items, ...rest }: WithoutThemeProps<TimelineRootProps, ComponentSlotStyle<"title" | "content" | "root" | "description" | "indicator" | "item" | "connector", {
|
|
65
65
|
align: {
|
|
66
66
|
center: {
|
|
67
67
|
content: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentSlotStyle } from "../../core/system/index.type.js";
|
|
2
2
|
import "../../index.js";
|
|
3
|
-
export declare const timelineStyle: ComponentSlotStyle<"title" | "content" | "root" | "
|
|
3
|
+
export declare const timelineStyle: ComponentSlotStyle<"title" | "content" | "root" | "description" | "indicator" | "item" | "connector", {
|
|
4
4
|
/**
|
|
5
5
|
* The alignment of the timeline.
|
|
6
6
|
*
|
|
@@ -46,7 +46,9 @@ export type UseClickableProps<Y extends HTMLElement = HTMLElement, M extends Use
|
|
|
46
46
|
ref?: Ref<Y>;
|
|
47
47
|
};
|
|
48
48
|
export declare const useClickable: <Y extends HTMLElement = HTMLElement, M extends UseClickableElementProps<Y> = UseClickableElementProps<Y>>({ ref, clickOnEnter, clickOnSpace, disabled, disableTouchBehavior, focusable, focusOnClick, tabIndex: tabIndexProp, onClick: onClickProp, onKeyDown: onKeyDownProp, onKeyUp: onKeyUpProp, onMouseDown: onMouseDownProp, onMouseLeave: onMouseLeaveProp, onMouseOver: onMouseOverProp, onMouseUp: onMouseUpProp, ...props }?: UseClickableProps<Y, M>) => (Omit<UseClickableProps<Y, M>, "disabled" | "ref" | "tabIndex" | "onKeyDown" | "onKeyUp" | "onClick" | "onMouseDown" | "onMouseLeave" | "onMouseOver" | "onMouseUp" | "clickOnEnter" | "clickOnSpace" | "disableTouchBehavior" | "focusable" | "focusOnClick"> & {
|
|
49
|
-
ref: (node: any) =>
|
|
49
|
+
ref: (node: any) => {
|
|
50
|
+
(): void;
|
|
51
|
+
};
|
|
50
52
|
type: "button";
|
|
51
53
|
"aria-disabled": boolean | undefined;
|
|
52
54
|
disabled: boolean | undefined;
|
|
@@ -58,7 +60,9 @@ export declare const useClickable: <Y extends HTMLElement = HTMLElement, M exten
|
|
|
58
60
|
onMouseOver: import("react").MouseEventHandler<Y> | undefined;
|
|
59
61
|
onMouseUp: import("react").MouseEventHandler<Y> | undefined;
|
|
60
62
|
}) | (Omit<UseClickableProps<Y, M>, "disabled" | "ref" | "tabIndex" | "onKeyDown" | "onKeyUp" | "onClick" | "onMouseDown" | "onMouseLeave" | "onMouseOver" | "onMouseUp" | "clickOnEnter" | "clickOnSpace" | "disableTouchBehavior" | "focusable" | "focusOnClick"> & {
|
|
61
|
-
ref: (node: any) =>
|
|
63
|
+
ref: (node: any) => {
|
|
64
|
+
(): void;
|
|
65
|
+
};
|
|
62
66
|
"aria-disabled": "true" | undefined;
|
|
63
67
|
"data-active": string | undefined;
|
|
64
68
|
role: string;
|
|
@@ -123,7 +123,7 @@ declare const I18nContext: import("react").Context<I18nContext<{
|
|
|
123
123
|
readonly toggle: {
|
|
124
124
|
readonly "Toggle button": "Toggle button";
|
|
125
125
|
};
|
|
126
|
-
}, "progress" | "select" | "table" | "toggle" | "slider" | "
|
|
126
|
+
}, "progress" | "select" | "table" | "toggle" | "slider" | "colorSwatch" | "hueSlider" | "saturationSlider" | "datePicker" | "autocomplete" | "avatar" | "breadcrumb" | "calendar" | "carousel" | "closeButton" | "colorPicker" | "colorSelector" | "numberInput" | "pagination" | "passwordInput" | "sidebar" | "stat" | "tag" | "progress.Loading..." | "progress.{value} percent" | "select.Clear value" | "table.Clear sorting" | "table.Page size" | "table.Select all rows" | "table.Select row" | "table.Sort ascending" | "table.Sort descending" | "toggle.Toggle button" | "slider.Slider thumb" | "colorSwatch.Color swatch group" | "hueSlider.Blue" | "hueSlider.Cyan" | "hueSlider.Green" | "hueSlider.Magenta" | "hueSlider.Red" | "hueSlider.Yellow" | "saturationSlider.Saturation and brightness thumb" | "saturationSlider.Saturation {saturation}%, Brightness {brightness}%" | "datePicker.Clear value" | "autocomplete.Clear value" | "autocomplete.No results found" | "avatar.Avatar Icon" | "breadcrumb.Breadcrumb" | "breadcrumb.Ellipsis" | "calendar.Choose the month" | "calendar.Choose the year" | "calendar.Go to the next month" | "calendar.Go to the previous month" | "calendar.Today" | "carousel.Go to next slide" | "carousel.Go to previous slide" | "carousel.Go to {page} slide" | "carousel.Slides" | "carousel.{page} of {total}" | "closeButton.Close" | "colorPicker.Pick a color" | "colorSelector.Pick a color" | "numberInput.Decrease" | "numberInput.Increase" | "pagination.Go to first page" | "pagination.Go to last page" | "pagination.Go to next page" | "pagination.Go to page {value}" | "pagination.Go to previous page" | "pagination.Pagination" | "pagination.{value} / {total}" | "pagination.{value} of {total}" | "passwordInput.Password strength meter" | "passwordInput.Toggle password visibility" | "sidebar.Close sidebar" | "sidebar.Open sidebar" | "stat.Decreased by" | "stat.Increased by" | "tag.Close tag">>;
|
|
127
127
|
export interface I18nProviderProps {
|
|
128
128
|
children?: ReactNode;
|
|
129
129
|
/**
|
|
@@ -2,7 +2,13 @@ import * as React from "react";
|
|
|
2
2
|
export declare function isRefObject(val: any): val is {
|
|
3
3
|
current: any;
|
|
4
4
|
};
|
|
5
|
-
export declare function assignRef<Y = any>(ref: React.Ref<Y> | undefined, value: Y):
|
|
6
|
-
export declare function mergeRefs<Y = any>(...refs: (null | React.Ref<Y> | undefined)[]):
|
|
7
|
-
|
|
5
|
+
export declare function assignRef<Y = any>(ref: React.Ref<Y> | undefined, value: Y): ReturnType<React.RefCallback<Y>>;
|
|
6
|
+
export declare function mergeRefs<Y = any>(...refs: (null | React.Ref<Y> | undefined)[]): {
|
|
7
|
+
(node: null | Y): {
|
|
8
|
+
(): void;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export declare function useMergeRefs<Y = any>(...refs: (React.Ref<Y> | undefined)[]): (node: Y | null) => {
|
|
12
|
+
(): void;
|
|
13
|
+
};
|
|
8
14
|
export declare function useCallbackRef<Y extends (...args: any[]) => any>(callback: undefined | Y, deps?: React.DependencyList): Y;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yamada-ui/react",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.3.5-dev-
|
|
4
|
+
"version": "2.3.5-dev-20261126022425",
|
|
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",
|