@yamada-ui/react 2.3.4-dev-20261115234202 → 2.3.4-dev-20261115235550

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.
@@ -1,6 +1,5 @@
1
1
  "use client";
2
2
  const require_context = require("../../utils/context.cjs");
3
- const require_ref = require("../../utils/ref.cjs");
4
3
  const require_utils_index = require("../../utils/index.cjs");
5
4
  const require_props = require("../../core/components/props.cjs");
6
5
  let react = require("react");
@@ -8,8 +7,7 @@ let react = require("react");
8
7
  const [NativeAccordionContext, useNativeAccordionContext] = require_context.createContext({ name: "NativeAccordionContext" });
9
8
  const useNativeAccordion = ({ name, multiple = false, ...rest } = {}) => {
10
9
  const generatedName = (0, react.useId)();
11
- const { ref: restRef, ...restProps } = rest;
12
- const getRootProps = ({ ref, ...props } = {}) => require_props.mergeProps(props, restProps, { ref: require_ref.mergeRefs(ref, restRef) })();
10
+ const getRootProps = (0, react.useCallback)((props = {}) => require_props.mergeProps(props, rest)(), [rest]);
13
11
  return {
14
12
  name: multiple ? void 0 : name ?? generatedName,
15
13
  getRootProps
@@ -17,11 +15,10 @@ const useNativeAccordion = ({ name, multiple = false, ...rest } = {}) => {
17
15
  };
18
16
  const useNativeAccordionItem = ({ disabled, ...rest }) => {
19
17
  const { name } = useNativeAccordionContext();
20
- const { ref: restRef, ...restProps } = rest;
21
- const getItemProps = ({ ref, ...props } = {}) => require_props.mergeProps({
22
- name: props.name ?? restProps.name ?? name,
18
+ const getItemProps = (0, react.useCallback)(({ ref, ...props } = {}) => require_props.mergeProps({
19
+ ref,
23
20
  "data-group": ""
24
- }, restProps, props, { ref: require_ref.mergeRefs(ref, restRef) })();
21
+ }, rest, props, { name: props.name ?? rest.name ?? name })(), [name, rest]);
25
22
  const getButtonProps = (0, react.useCallback)((props = {}) => ({
26
23
  "aria-disabled": (0, require_utils_index.utils_exports.ariaAttr)(disabled),
27
24
  "data-disabled": (0, require_utils_index.utils_exports.dataAttr)(disabled),
@@ -1 +1 @@
1
- {"version":3,"file":"use-native-accordion.cjs","names":["createContext","useId","mergeProps","mergeRefs","useCallback"],"sources":["../../../../src/components/native-accordion/use-native-accordion.ts"],"sourcesContent":["\"use client\"\n\nimport type { HTMLProps, PropGetter } from \"../../core\"\nimport { useCallback, useId } from \"react\"\nimport { mergeProps } from \"../../core\"\nimport {\n ariaAttr,\n createContext,\n dataAttr,\n handlerAll,\n mergeRefs,\n} from \"../../utils\"\n\ninterface NativeAccordionContext extends Pick<\n UseNativeAccordionReturn,\n \"name\"\n> {}\n\nconst [NativeAccordionContext, useNativeAccordionContext] =\n createContext<NativeAccordionContext>({\n name: \"NativeAccordionContext\",\n })\n\nexport { NativeAccordionContext, useNativeAccordionContext }\n\nexport interface UseNativeAccordionProps extends HTMLProps {\n /**\n * If `true`, multiple accordion items can be expanded at once.\n *\n * @default false\n */\n multiple?: boolean\n /**\n * The HTML `name` attribute used for forms.\n */\n name?: string\n}\n\nexport const useNativeAccordion = ({\n name,\n multiple = false,\n ...rest\n}: UseNativeAccordionProps = {}) => {\n const generatedName = useId()\n const { ref: restRef, ...restProps } = rest\n\n const getRootProps: PropGetter = ({ ref, ...props } = {}) =>\n mergeProps(props, restProps, {\n ref: mergeRefs(ref, restRef),\n })()\n\n return {\n name: multiple ? undefined : (name ?? generatedName),\n getRootProps,\n }\n}\n\nexport type UseNativeAccordionReturn = ReturnType<typeof useNativeAccordion>\n\nexport interface UseNativeAccordionItemProps extends HTMLProps<\"details\"> {\n /**\n * If `true`, the accordion item will be disabled.\n *\n * @default false\n */\n disabled?: boolean\n}\n\nexport const useNativeAccordionItem = ({\n disabled,\n ...rest\n}: UseNativeAccordionItemProps) => {\n const { name } = useNativeAccordionContext()\n const { ref: restRef, ...restProps } = rest\n\n const getItemProps: PropGetter<\"details\"> = ({ ref, ...props } = {}) =>\n mergeProps(\n {\n name: props.name ?? restProps.name ?? name,\n \"data-group\": \"\",\n },\n restProps,\n props,\n {\n ref: mergeRefs(ref, restRef),\n },\n )()\n\n const getButtonProps: PropGetter<\"summary\"> = useCallback(\n (props = {}) => ({\n \"aria-disabled\": ariaAttr(disabled),\n \"data-disabled\": dataAttr(disabled),\n ...props,\n onClick: handlerAll(props.onClick, (ev) => {\n if (!disabled) return\n\n ev.preventDefault()\n }),\n }),\n [disabled],\n )\n\n const getPanelProps: PropGetter = useCallback((props = {}) => props, [])\n\n const getIconProps: PropGetter<\"svg\"> = useCallback(\n (props = {}) => ({\n \"aria-disabled\": ariaAttr(disabled),\n \"aria-hidden\": true,\n role: \"presentation\",\n ...props,\n }),\n [disabled],\n )\n\n return {\n disabled,\n getButtonProps,\n getIconProps,\n getItemProps,\n getPanelProps,\n }\n}\n\nexport type UseNativeAccordionItemReturn = ReturnType<\n typeof useNativeAccordionItem\n>\n"],"mappings":";;;;;;;AAkBA,MAAM,CAAC,wBAAwB,6BAC7BA,gBAAAA,cAAsC,EACpC,MAAM,yBACR,CAAC;AAiBH,MAAa,sBAAsB,EACjC,MACA,WAAW,OACX,GAAG,SACwB,CAAC,MAAM;CAClC,MAAM,iBAAA,GAAgBC,MAAAA,MAAAA,CAAM;CAC5B,MAAM,EAAE,KAAK,SAAS,GAAG,cAAc;CAEvC,MAAM,gBAA4B,EAAE,KAAK,GAAG,UAAU,CAAC,MACrDC,cAAAA,WAAW,OAAO,WAAW,EAC3B,KAAKC,YAAAA,UAAU,KAAK,OAAO,EAC7B,CAAC,CAAC,CAAC;CAEL,OAAO;EACL,MAAM,WAAW,KAAA,IAAa,QAAQ;EACtC;CACF;AACF;AAaA,MAAa,0BAA0B,EACrC,UACA,GAAG,WAC8B;CACjC,MAAM,EAAE,SAAS,0BAA0B;CAC3C,MAAM,EAAE,KAAK,SAAS,GAAG,cAAc;CAEvC,MAAM,gBAAuC,EAAE,KAAK,GAAG,UAAU,CAAC,MAChED,cAAAA,WACE;EACE,MAAM,MAAM,QAAQ,UAAU,QAAQ;EACtC,cAAc;CAChB,GACA,WACA,OACA,EACE,KAAKC,YAAAA,UAAU,KAAK,OAAO,EAC7B,CACF,CAAC,CAAC;CAEJ,MAAM,kBAAA,GAAwCC,MAAAA,YAAAA,EAC3C,QAAQ,CAAC,OAAO;EACf,kBAAA,GAAA,oBAAA,cAAiB,SAAA,CAAS,QAAQ;EAClC,kBAAA,GAAA,oBAAA,cAAiB,SAAA,CAAS,QAAQ;EAClC,GAAG;EACH,UAAA,GAAA,oBAAA,cAAS,WAAA,CAAW,MAAM,UAAU,OAAO;GACzC,IAAI,CAAC,UAAU;GAEf,GAAG,eAAe;EACpB,CAAC;CACH,IACA,CAAC,QAAQ,CACX;CAEA,MAAM,iBAAA,GAA4BA,MAAAA,YAAAA,EAAa,QAAQ,CAAC,MAAM,OAAO,CAAC,CAAC;CAYvE,OAAO;EACL;EACA;EACA,eAAA,GAbsCA,MAAAA,YAAAA,EACrC,QAAQ,CAAC,OAAO;GACf,kBAAA,GAAA,oBAAA,cAAiB,SAAA,CAAS,QAAQ;GAClC,eAAe;GACf,MAAM;GACN,GAAG;EACL,IACA,CAAC,QAAQ,CAME;EACX;EACA;CACF;AACF"}
1
+ {"version":3,"file":"use-native-accordion.cjs","names":["createContext","useId","useCallback","mergeProps"],"sources":["../../../../src/components/native-accordion/use-native-accordion.ts"],"sourcesContent":["\"use client\"\n\nimport type { HTMLProps, PropGetter } from \"../../core\"\nimport { useCallback, useId } from \"react\"\nimport { mergeProps } from \"../../core\"\nimport { ariaAttr, createContext, dataAttr, handlerAll } from \"../../utils\"\n\ninterface NativeAccordionContext extends Pick<\n UseNativeAccordionReturn,\n \"name\"\n> {}\n\nconst [NativeAccordionContext, useNativeAccordionContext] =\n createContext<NativeAccordionContext>({\n name: \"NativeAccordionContext\",\n })\n\nexport { NativeAccordionContext, useNativeAccordionContext }\n\nexport interface UseNativeAccordionProps extends HTMLProps {\n /**\n * If `true`, multiple accordion items can be expanded at once.\n *\n * @default false\n */\n multiple?: boolean\n /**\n * The HTML `name` attribute used for forms.\n */\n name?: string\n}\n\nexport const useNativeAccordion = ({\n name,\n multiple = false,\n ...rest\n}: UseNativeAccordionProps = {}) => {\n const generatedName = useId()\n const getRootProps: PropGetter = useCallback(\n (props = {}) => mergeProps(props, rest)(),\n [rest],\n )\n\n return {\n name: multiple ? undefined : (name ?? generatedName),\n getRootProps,\n }\n}\n\nexport type UseNativeAccordionReturn = ReturnType<typeof useNativeAccordion>\n\nexport interface UseNativeAccordionItemProps extends HTMLProps<\"details\"> {\n /**\n * If `true`, the accordion item will be disabled.\n *\n * @default false\n */\n disabled?: boolean\n}\n\nexport const useNativeAccordionItem = ({\n disabled,\n ...rest\n}: UseNativeAccordionItemProps) => {\n const { name } = useNativeAccordionContext()\n\n const getItemProps: PropGetter<\"details\"> = useCallback(\n ({ ref, ...props } = {}) =>\n mergeProps({ ref, \"data-group\": \"\" }, rest, props, {\n name: props.name ?? rest.name ?? name,\n })(),\n [name, rest],\n )\n\n const getButtonProps: PropGetter<\"summary\"> = useCallback(\n (props = {}) => ({\n \"aria-disabled\": ariaAttr(disabled),\n \"data-disabled\": dataAttr(disabled),\n ...props,\n onClick: handlerAll(props.onClick, (ev) => {\n if (!disabled) return\n\n ev.preventDefault()\n }),\n }),\n [disabled],\n )\n\n const getPanelProps: PropGetter = useCallback((props = {}) => props, [])\n\n const getIconProps: PropGetter<\"svg\"> = useCallback(\n (props = {}) => ({\n \"aria-disabled\": ariaAttr(disabled),\n \"aria-hidden\": true,\n role: \"presentation\",\n ...props,\n }),\n [disabled],\n )\n\n return {\n disabled,\n getButtonProps,\n getIconProps,\n getItemProps,\n getPanelProps,\n }\n}\n\nexport type UseNativeAccordionItemReturn = ReturnType<\n typeof useNativeAccordionItem\n>\n"],"mappings":";;;;;;AAYA,MAAM,CAAC,wBAAwB,6BAC7BA,gBAAAA,cAAsC,EACpC,MAAM,yBACR,CAAC;AAiBH,MAAa,sBAAsB,EACjC,MACA,WAAW,OACX,GAAG,SACwB,CAAC,MAAM;CAClC,MAAM,iBAAA,GAAgBC,MAAAA,MAAAA,CAAM;CAC5B,MAAM,gBAAA,GAA2BC,MAAAA,YAAAA,EAC9B,QAAQ,CAAC,MAAMC,cAAAA,WAAW,OAAO,IAAI,CAAC,CAAC,GACxC,CAAC,IAAI,CACP;CAEA,OAAO;EACL,MAAM,WAAW,KAAA,IAAa,QAAQ;EACtC;CACF;AACF;AAaA,MAAa,0BAA0B,EACrC,UACA,GAAG,WAC8B;CACjC,MAAM,EAAE,SAAS,0BAA0B;CAE3C,MAAM,gBAAA,GAAsCD,MAAAA,YAAAA,EACzC,EAAE,KAAK,GAAG,UAAU,CAAC,MACpBC,cAAAA,WAAW;EAAE;EAAK,cAAc;CAAG,GAAG,MAAM,OAAO,EACjD,MAAM,MAAM,QAAQ,KAAK,QAAQ,KACnC,CAAC,CAAC,CAAC,GACL,CAAC,MAAM,IAAI,CACb;CAEA,MAAM,kBAAA,GAAwCD,MAAAA,YAAAA,EAC3C,QAAQ,CAAC,OAAO;EACf,kBAAA,GAAA,oBAAA,cAAiB,SAAA,CAAS,QAAQ;EAClC,kBAAA,GAAA,oBAAA,cAAiB,SAAA,CAAS,QAAQ;EAClC,GAAG;EACH,UAAA,GAAA,oBAAA,cAAS,WAAA,CAAW,MAAM,UAAU,OAAO;GACzC,IAAI,CAAC,UAAU;GAEf,GAAG,eAAe;EACpB,CAAC;CACH,IACA,CAAC,QAAQ,CACX;CAEA,MAAM,iBAAA,GAA4BA,MAAAA,YAAAA,EAAa,QAAQ,CAAC,MAAM,OAAO,CAAC,CAAC;CAYvE,OAAO;EACL;EACA;EACA,eAAA,GAbsCA,MAAAA,YAAAA,EACrC,QAAQ,CAAC,OAAO;GACf,kBAAA,GAAA,oBAAA,cAAiB,SAAA,CAAS,QAAQ;GAClC,eAAe;GACf,MAAM;GACN,GAAG;EACL,IACA,CAAC,QAAQ,CAME;EACX;EACA;CACF;AACF"}
@@ -1,6 +1,5 @@
1
1
  "use client";
2
2
  import { createContext as createContext$1 } from "../../utils/context.js";
3
- import { mergeRefs } from "../../utils/ref.js";
4
3
  import { utils_exports } from "../../utils/index.js";
5
4
  import { mergeProps } from "../../core/components/props.js";
6
5
  import { useCallback, useId } from "react";
@@ -8,8 +7,7 @@ import { useCallback, useId } from "react";
8
7
  const [NativeAccordionContext, useNativeAccordionContext] = createContext$1({ name: "NativeAccordionContext" });
9
8
  const useNativeAccordion = ({ name, multiple = false, ...rest } = {}) => {
10
9
  const generatedName = useId();
11
- const { ref: restRef, ...restProps } = rest;
12
- const getRootProps = ({ ref, ...props } = {}) => mergeProps(props, restProps, { ref: mergeRefs(ref, restRef) })();
10
+ const getRootProps = useCallback((props = {}) => mergeProps(props, rest)(), [rest]);
13
11
  return {
14
12
  name: multiple ? void 0 : name ?? generatedName,
15
13
  getRootProps
@@ -17,11 +15,10 @@ const useNativeAccordion = ({ name, multiple = false, ...rest } = {}) => {
17
15
  };
18
16
  const useNativeAccordionItem = ({ disabled, ...rest }) => {
19
17
  const { name } = useNativeAccordionContext();
20
- const { ref: restRef, ...restProps } = rest;
21
- const getItemProps = ({ ref, ...props } = {}) => mergeProps({
22
- name: props.name ?? restProps.name ?? name,
18
+ const getItemProps = useCallback(({ ref, ...props } = {}) => mergeProps({
19
+ ref,
23
20
  "data-group": ""
24
- }, restProps, props, { ref: mergeRefs(ref, restRef) })();
21
+ }, rest, props, { name: props.name ?? rest.name ?? name })(), [name, rest]);
25
22
  const getButtonProps = useCallback((props = {}) => ({
26
23
  "aria-disabled": (0, utils_exports.ariaAttr)(disabled),
27
24
  "data-disabled": (0, utils_exports.dataAttr)(disabled),
@@ -1 +1 @@
1
- {"version":3,"file":"use-native-accordion.js","names":["createContext","ariaAttr","dataAttr","handlerAll"],"sources":["../../../../src/components/native-accordion/use-native-accordion.ts"],"sourcesContent":["\"use client\"\n\nimport type { HTMLProps, PropGetter } from \"../../core\"\nimport { useCallback, useId } from \"react\"\nimport { mergeProps } from \"../../core\"\nimport {\n ariaAttr,\n createContext,\n dataAttr,\n handlerAll,\n mergeRefs,\n} from \"../../utils\"\n\ninterface NativeAccordionContext extends Pick<\n UseNativeAccordionReturn,\n \"name\"\n> {}\n\nconst [NativeAccordionContext, useNativeAccordionContext] =\n createContext<NativeAccordionContext>({\n name: \"NativeAccordionContext\",\n })\n\nexport { NativeAccordionContext, useNativeAccordionContext }\n\nexport interface UseNativeAccordionProps extends HTMLProps {\n /**\n * If `true`, multiple accordion items can be expanded at once.\n *\n * @default false\n */\n multiple?: boolean\n /**\n * The HTML `name` attribute used for forms.\n */\n name?: string\n}\n\nexport const useNativeAccordion = ({\n name,\n multiple = false,\n ...rest\n}: UseNativeAccordionProps = {}) => {\n const generatedName = useId()\n const { ref: restRef, ...restProps } = rest\n\n const getRootProps: PropGetter = ({ ref, ...props } = {}) =>\n mergeProps(props, restProps, {\n ref: mergeRefs(ref, restRef),\n })()\n\n return {\n name: multiple ? undefined : (name ?? generatedName),\n getRootProps,\n }\n}\n\nexport type UseNativeAccordionReturn = ReturnType<typeof useNativeAccordion>\n\nexport interface UseNativeAccordionItemProps extends HTMLProps<\"details\"> {\n /**\n * If `true`, the accordion item will be disabled.\n *\n * @default false\n */\n disabled?: boolean\n}\n\nexport const useNativeAccordionItem = ({\n disabled,\n ...rest\n}: UseNativeAccordionItemProps) => {\n const { name } = useNativeAccordionContext()\n const { ref: restRef, ...restProps } = rest\n\n const getItemProps: PropGetter<\"details\"> = ({ ref, ...props } = {}) =>\n mergeProps(\n {\n name: props.name ?? restProps.name ?? name,\n \"data-group\": \"\",\n },\n restProps,\n props,\n {\n ref: mergeRefs(ref, restRef),\n },\n )()\n\n const getButtonProps: PropGetter<\"summary\"> = useCallback(\n (props = {}) => ({\n \"aria-disabled\": ariaAttr(disabled),\n \"data-disabled\": dataAttr(disabled),\n ...props,\n onClick: handlerAll(props.onClick, (ev) => {\n if (!disabled) return\n\n ev.preventDefault()\n }),\n }),\n [disabled],\n )\n\n const getPanelProps: PropGetter = useCallback((props = {}) => props, [])\n\n const getIconProps: PropGetter<\"svg\"> = useCallback(\n (props = {}) => ({\n \"aria-disabled\": ariaAttr(disabled),\n \"aria-hidden\": true,\n role: \"presentation\",\n ...props,\n }),\n [disabled],\n )\n\n return {\n disabled,\n getButtonProps,\n getIconProps,\n getItemProps,\n getPanelProps,\n }\n}\n\nexport type UseNativeAccordionItemReturn = ReturnType<\n typeof useNativeAccordionItem\n>\n"],"mappings":";;;;;;;AAkBA,MAAM,CAAC,wBAAwB,6BAC7BA,gBAAsC,EACpC,MAAM,yBACR,CAAC;AAiBH,MAAa,sBAAsB,EACjC,MACA,WAAW,OACX,GAAG,SACwB,CAAC,MAAM;CAClC,MAAM,gBAAgB,MAAM;CAC5B,MAAM,EAAE,KAAK,SAAS,GAAG,cAAc;CAEvC,MAAM,gBAA4B,EAAE,KAAK,GAAG,UAAU,CAAC,MACrD,WAAW,OAAO,WAAW,EAC3B,KAAK,UAAU,KAAK,OAAO,EAC7B,CAAC,CAAC,CAAC;CAEL,OAAO;EACL,MAAM,WAAW,KAAA,IAAa,QAAQ;EACtC;CACF;AACF;AAaA,MAAa,0BAA0B,EACrC,UACA,GAAG,WAC8B;CACjC,MAAM,EAAE,SAAS,0BAA0B;CAC3C,MAAM,EAAE,KAAK,SAAS,GAAG,cAAc;CAEvC,MAAM,gBAAuC,EAAE,KAAK,GAAG,UAAU,CAAC,MAChE,WACE;EACE,MAAM,MAAM,QAAQ,UAAU,QAAQ;EACtC,cAAc;CAChB,GACA,WACA,OACA,EACE,KAAK,UAAU,KAAK,OAAO,EAC7B,CACF,CAAC,CAAC;CAEJ,MAAM,iBAAwC,aAC3C,QAAQ,CAAC,OAAO;EACf,kBAAA,GAAiBC,cAAAA,SAAAA,CAAS,QAAQ;EAClC,kBAAA,GAAiBC,cAAAA,SAAAA,CAAS,QAAQ;EAClC,GAAG;EACH,UAAA,GAASC,cAAAA,WAAAA,CAAW,MAAM,UAAU,OAAO;GACzC,IAAI,CAAC,UAAU;GAEf,GAAG,eAAe;EACpB,CAAC;CACH,IACA,CAAC,QAAQ,CACX;CAEA,MAAM,gBAA4B,aAAa,QAAQ,CAAC,MAAM,OAAO,CAAC,CAAC;CAYvE,OAAO;EACL;EACA;EACA,cAbsC,aACrC,QAAQ,CAAC,OAAO;GACf,kBAAA,GAAiBF,cAAAA,SAAAA,CAAS,QAAQ;GAClC,eAAe;GACf,MAAM;GACN,GAAG;EACL,IACA,CAAC,QAAQ,CAME;EACX;EACA;CACF;AACF"}
1
+ {"version":3,"file":"use-native-accordion.js","names":["createContext","ariaAttr","dataAttr","handlerAll"],"sources":["../../../../src/components/native-accordion/use-native-accordion.ts"],"sourcesContent":["\"use client\"\n\nimport type { HTMLProps, PropGetter } from \"../../core\"\nimport { useCallback, useId } from \"react\"\nimport { mergeProps } from \"../../core\"\nimport { ariaAttr, createContext, dataAttr, handlerAll } from \"../../utils\"\n\ninterface NativeAccordionContext extends Pick<\n UseNativeAccordionReturn,\n \"name\"\n> {}\n\nconst [NativeAccordionContext, useNativeAccordionContext] =\n createContext<NativeAccordionContext>({\n name: \"NativeAccordionContext\",\n })\n\nexport { NativeAccordionContext, useNativeAccordionContext }\n\nexport interface UseNativeAccordionProps extends HTMLProps {\n /**\n * If `true`, multiple accordion items can be expanded at once.\n *\n * @default false\n */\n multiple?: boolean\n /**\n * The HTML `name` attribute used for forms.\n */\n name?: string\n}\n\nexport const useNativeAccordion = ({\n name,\n multiple = false,\n ...rest\n}: UseNativeAccordionProps = {}) => {\n const generatedName = useId()\n const getRootProps: PropGetter = useCallback(\n (props = {}) => mergeProps(props, rest)(),\n [rest],\n )\n\n return {\n name: multiple ? undefined : (name ?? generatedName),\n getRootProps,\n }\n}\n\nexport type UseNativeAccordionReturn = ReturnType<typeof useNativeAccordion>\n\nexport interface UseNativeAccordionItemProps extends HTMLProps<\"details\"> {\n /**\n * If `true`, the accordion item will be disabled.\n *\n * @default false\n */\n disabled?: boolean\n}\n\nexport const useNativeAccordionItem = ({\n disabled,\n ...rest\n}: UseNativeAccordionItemProps) => {\n const { name } = useNativeAccordionContext()\n\n const getItemProps: PropGetter<\"details\"> = useCallback(\n ({ ref, ...props } = {}) =>\n mergeProps({ ref, \"data-group\": \"\" }, rest, props, {\n name: props.name ?? rest.name ?? name,\n })(),\n [name, rest],\n )\n\n const getButtonProps: PropGetter<\"summary\"> = useCallback(\n (props = {}) => ({\n \"aria-disabled\": ariaAttr(disabled),\n \"data-disabled\": dataAttr(disabled),\n ...props,\n onClick: handlerAll(props.onClick, (ev) => {\n if (!disabled) return\n\n ev.preventDefault()\n }),\n }),\n [disabled],\n )\n\n const getPanelProps: PropGetter = useCallback((props = {}) => props, [])\n\n const getIconProps: PropGetter<\"svg\"> = useCallback(\n (props = {}) => ({\n \"aria-disabled\": ariaAttr(disabled),\n \"aria-hidden\": true,\n role: \"presentation\",\n ...props,\n }),\n [disabled],\n )\n\n return {\n disabled,\n getButtonProps,\n getIconProps,\n getItemProps,\n getPanelProps,\n }\n}\n\nexport type UseNativeAccordionItemReturn = ReturnType<\n typeof useNativeAccordionItem\n>\n"],"mappings":";;;;;;AAYA,MAAM,CAAC,wBAAwB,6BAC7BA,gBAAsC,EACpC,MAAM,yBACR,CAAC;AAiBH,MAAa,sBAAsB,EACjC,MACA,WAAW,OACX,GAAG,SACwB,CAAC,MAAM;CAClC,MAAM,gBAAgB,MAAM;CAC5B,MAAM,eAA2B,aAC9B,QAAQ,CAAC,MAAM,WAAW,OAAO,IAAI,CAAC,CAAC,GACxC,CAAC,IAAI,CACP;CAEA,OAAO;EACL,MAAM,WAAW,KAAA,IAAa,QAAQ;EACtC;CACF;AACF;AAaA,MAAa,0BAA0B,EACrC,UACA,GAAG,WAC8B;CACjC,MAAM,EAAE,SAAS,0BAA0B;CAE3C,MAAM,eAAsC,aACzC,EAAE,KAAK,GAAG,UAAU,CAAC,MACpB,WAAW;EAAE;EAAK,cAAc;CAAG,GAAG,MAAM,OAAO,EACjD,MAAM,MAAM,QAAQ,KAAK,QAAQ,KACnC,CAAC,CAAC,CAAC,GACL,CAAC,MAAM,IAAI,CACb;CAEA,MAAM,iBAAwC,aAC3C,QAAQ,CAAC,OAAO;EACf,kBAAA,GAAiBC,cAAAA,SAAAA,CAAS,QAAQ;EAClC,kBAAA,GAAiBC,cAAAA,SAAAA,CAAS,QAAQ;EAClC,GAAG;EACH,UAAA,GAASC,cAAAA,WAAAA,CAAW,MAAM,UAAU,OAAO;GACzC,IAAI,CAAC,UAAU;GAEf,GAAG,eAAe;EACpB,CAAC;CACH,IACA,CAAC,QAAQ,CACX;CAEA,MAAM,gBAA4B,aAAa,QAAQ,CAAC,MAAM,OAAO,CAAC,CAAC;CAYvE,OAAO;EACL;EACA;EACA,cAbsC,aACrC,QAAQ,CAAC,OAAO;GACf,kBAAA,GAAiBF,cAAAA,SAAAA,CAAS,QAAQ;GAClC,eAAe;GACf,MAAM;GACN,GAAG;EACL,IACA,CAAC,QAAQ,CAME;EACX;EACA;CACF;AACF"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@yamada-ui/react",
3
3
  "type": "module",
4
- "version": "2.3.4-dev-20261115234202",
4
+ "version": "2.3.4-dev-20261115235550",
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",