@yamada-ui/react 2.3.0-dev-20261026045445 → 2.3.0-dev-20261026083634

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.
Files changed (31) hide show
  1. package/dist/cjs/hooks/use-focus/index.cjs +7 -14
  2. package/dist/cjs/hooks/use-focus/index.cjs.map +1 -1
  3. package/dist/esm/hooks/use-focus/index.js +8 -15
  4. package/dist/esm/hooks/use-focus/index.js.map +1 -1
  5. package/dist/types/components/alert/alert.style.d.ts +1 -1
  6. package/dist/types/components/autocomplete/autocomplete.style.d.ts +1 -1
  7. package/dist/types/components/avatar/avatar.d.ts +3 -3
  8. package/dist/types/components/avatar/avatar.style.d.ts +1 -1
  9. package/dist/types/components/calendar/calendar.style.d.ts +2 -2
  10. package/dist/types/components/carousel/carousel.style.d.ts +2 -2
  11. package/dist/types/components/chart/polar-chart.style.d.ts +1 -1
  12. package/dist/types/components/color-selector/color-selector.style.d.ts +2 -2
  13. package/dist/types/components/data-list/data-list.style.d.ts +1 -1
  14. package/dist/types/components/dropzone/dropzone.d.ts +1 -1
  15. package/dist/types/components/dropzone/dropzone.style.d.ts +1 -1
  16. package/dist/types/components/editable/editable.d.ts +1 -1
  17. package/dist/types/components/editable/editable.style.d.ts +1 -1
  18. package/dist/types/components/field/field.style.d.ts +2 -2
  19. package/dist/types/components/field/use-field-props.d.ts +1 -1
  20. package/dist/types/components/fieldset/fieldset.style.d.ts +1 -1
  21. package/dist/types/components/file-button/use-file-button.d.ts +2 -2
  22. package/dist/types/components/file-input/use-file-input.d.ts +2 -2
  23. package/dist/types/components/number-input/number-input.style.d.ts +1 -1
  24. package/dist/types/components/progress/use-progress.d.ts +3 -3
  25. package/dist/types/components/steps/steps.style.d.ts +1 -1
  26. package/dist/types/components/tabs/tabs.style.d.ts +1 -1
  27. package/dist/types/components/timeline/timeline.d.ts +1 -1
  28. package/dist/types/components/timeline/timeline.style.d.ts +1 -1
  29. package/dist/types/components/tree/use-tree.d.ts +3 -3
  30. package/dist/types/hooks/use-clickable/index.d.ts +2 -2
  31. package/package.json +5 -5
@@ -17,6 +17,7 @@ const useFocusOnShow = (refOrEl, { focusTarget: focusRefOrEl, preventScroll, sho
17
17
  }) => {
18
18
  const trulyShouldFocus = shouldFocus && visible;
19
19
  const focused = (0, react.useRef)(false);
20
+ const focusFrame = (0, react.useRef)(0);
20
21
  const getTarget = (0, react.useCallback)(() => {
21
22
  return require_ref.isRefObject(refOrEl) ? refOrEl.current : refOrEl;
22
23
  }, [refOrEl]);
@@ -29,22 +30,12 @@ const useFocusOnShow = (refOrEl, { focusTarget: focusRefOrEl, preventScroll, sho
29
30
  const rootNode = target.getRootNode();
30
31
  const root = (0, require_utils_index.utils_exports.isShadowRoot)(rootNode) ? rootNode : (0, require_utils_index.utils_exports.getDocument)(target);
31
32
  if ((0, require_utils_index.utils_exports.contains)(target, (0, require_utils_index.utils_exports.getActiveElement)(root))) return;
32
- const focusTarget = getFocusTarget();
33
- if (focusTarget) requestAnimationFrame(() => {
33
+ const focusTarget = getFocusTarget() ?? (0, require_utils_index.utils_exports.getFirstFocusableElement)(target) ?? target;
34
+ cancelAnimationFrame(focusFrame.current);
35
+ focusFrame.current = requestAnimationFrame(() => {
34
36
  focusTarget.focus({ preventScroll });
35
37
  focused.current = true;
36
38
  });
37
- else {
38
- const firstFocusable = (0, require_utils_index.utils_exports.getFirstFocusableElement)(target);
39
- if (firstFocusable) requestAnimationFrame(() => {
40
- firstFocusable.focus({ preventScroll });
41
- focused.current = true;
42
- });
43
- else requestAnimationFrame(() => {
44
- target.focus({ preventScroll });
45
- focused.current = true;
46
- });
47
- }
48
39
  }, [
49
40
  getTarget,
50
41
  trulyShouldFocus,
@@ -55,8 +46,10 @@ const useFocusOnShow = (refOrEl, { focusTarget: focusRefOrEl, preventScroll, sho
55
46
  focused.current = !trulyShouldFocus;
56
47
  }, [trulyShouldFocus]);
57
48
  require_effect.useUpdateEffect(() => {
58
- requestAnimationFrame(onFocus);
49
+ const frame = requestAnimationFrame(onFocus);
50
+ return () => cancelAnimationFrame(frame);
59
51
  }, [onFocus]);
52
+ (0, react.useEffect)(() => () => cancelAnimationFrame(focusFrame.current), [onFocus]);
60
53
  require_hooks_use_event_listener_index.useEventListener(getTarget, "transitionend", onFocus);
61
54
  };
62
55
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","names":["useRef","useCallback","isRefObject"],"sources":["../../../../src/hooks/use-focus/index.ts"],"sourcesContent":["\"use client\"\n\nimport type { RefObject } from \"react\"\nimport { useCallback, useRef } from \"react\"\nimport {\n contains,\n getActiveElement,\n getDocument,\n getFirstFocusableElement,\n isRefObject,\n isSafari,\n isShadowRoot,\n useUpdateEffect,\n} from \"../../utils\"\nimport { useEventListener } from \"../use-event-listener\"\n\nexport interface UseFocusOnShowProps {\n focusTarget?: HTMLElement | null | RefObject<HTMLElement | null>\n preventScroll?: boolean\n shouldFocus?: boolean\n visible?: boolean\n}\n\n/**\n * `useFocusOnShow` is a custom hook that focuses on the target element when it is shown.\n *\n * @see https://yamada-ui.com/docs/hooks/use-focus-on-show\n */\nexport const useFocusOnShow = <Y extends HTMLElement>(\n refOrEl: RefObject<null | Y> | Y,\n {\n focusTarget: focusRefOrEl,\n preventScroll,\n shouldFocus,\n visible,\n }: UseFocusOnShowProps = {\n preventScroll: true,\n shouldFocus: false,\n },\n) => {\n const trulyShouldFocus = shouldFocus && visible\n const focused = useRef(false)\n\n const getTarget = useCallback(() => {\n return isRefObject(refOrEl) ? refOrEl.current : refOrEl\n }, [refOrEl])\n\n const getFocusTarget = useCallback(() => {\n return isRefObject(focusRefOrEl) ? focusRefOrEl.current : focusRefOrEl\n }, [focusRefOrEl])\n\n const onFocus = useCallback(() => {\n const target = getTarget()\n\n if (!target || !trulyShouldFocus || focused.current) return\n const rootNode = target.getRootNode()\n const root = isShadowRoot(rootNode) ? rootNode : getDocument(target)\n if (contains(target, getActiveElement(root))) return\n\n const focusTarget = getFocusTarget()\n\n if (focusTarget) {\n requestAnimationFrame(() => {\n focusTarget.focus({ preventScroll })\n\n focused.current = true\n })\n } else {\n const firstFocusable = getFirstFocusableElement(target)\n\n if (firstFocusable)\n requestAnimationFrame(() => {\n firstFocusable.focus({ preventScroll })\n\n focused.current = true\n })\n else\n requestAnimationFrame(() => {\n target.focus({ preventScroll })\n\n focused.current = true\n })\n }\n }, [getTarget, trulyShouldFocus, getFocusTarget, preventScroll])\n\n useUpdateEffect(() => {\n focused.current = !trulyShouldFocus\n }, [trulyShouldFocus])\n\n useUpdateEffect(() => {\n requestAnimationFrame(onFocus)\n }, [onFocus])\n\n useEventListener(getTarget, \"transitionend\", onFocus)\n}\n\nexport interface UseFocusOnMouseDownProps {\n ref: RefObject<HTMLElement | null>\n elements?: (HTMLElement | null | RefObject<HTMLElement | null>)[]\n enabled?: boolean\n}\n\n/**\n * `useFocusOnPointerDown` is a custom hook that focuses on the target element when it is clicked.\n *\n * @see https://yamada-ui.com/docs/hooks/use-focus-on-pointer-down\n */\nexport const useFocusOnPointerDown = ({\n ref,\n elements,\n enabled,\n}: UseFocusOnMouseDownProps) => {\n useEventListener(\n () => ref.current?.getRootNode() ?? getDocument(ref.current),\n \"pointerdown\",\n (ev) => {\n if (!isSafari() || !enabled) return\n\n const target = ev.target as HTMLElement\n const els = elements ?? [ref]\n const rootNode = ref.current?.getRootNode()\n const root = isShadowRoot(rootNode) ? rootNode : getDocument(ref.current)\n const validTarget = els.some((elOrRef) => {\n const el = isRefObject(elOrRef) ? elOrRef.current : elOrRef\n\n return el?.contains(target) || el === target\n })\n\n if (getActiveElement(root) !== target && validTarget) {\n ev.preventDefault()\n\n target.focus()\n }\n },\n )\n}\n"],"mappings":";;;;;;;;;;;;;AA4BA,MAAa,kBACX,SACA,EACE,aAAa,cACb,eACA,aACA,YACuB;CACvB,eAAe;CACf,aAAa;AACf,MACG;CACH,MAAM,mBAAmB,eAAe;CACxC,MAAM,WAAA,GAAUA,MAAAA,OAAAA,CAAO,KAAK;CAE5B,MAAM,aAAA,GAAYC,MAAAA,YAAAA,OAAkB;EAClC,OAAOC,YAAAA,YAAY,OAAO,IAAI,QAAQ,UAAU;CAClD,GAAG,CAAC,OAAO,CAAC;CAEZ,MAAM,kBAAA,GAAiBD,MAAAA,YAAAA,OAAkB;EACvC,OAAOC,YAAAA,YAAY,YAAY,IAAI,aAAa,UAAU;CAC5D,GAAG,CAAC,YAAY,CAAC;CAEjB,MAAM,WAAA,GAAUD,MAAAA,YAAAA,OAAkB;EAChC,MAAM,SAAS,UAAU;EAEzB,IAAI,CAAC,UAAU,CAAC,oBAAoB,QAAQ,SAAS;EACrD,MAAM,WAAW,OAAO,YAAY;EACpC,MAAM,QAAA,GAAA,oBAAA,cAAO,aAAA,CAAa,QAAQ,IAAI,YAAA,GAAA,oBAAA,cAAW,YAAA,CAAY,MAAM;EACnE,KAAA,GAAA,oBAAA,cAAI,SAAA,CAAS,SAAA,GAAA,oBAAA,cAAQ,iBAAA,CAAiB,IAAI,CAAC,GAAG;EAE9C,MAAM,cAAc,eAAe;EAEnC,IAAI,aACF,4BAA4B;GAC1B,YAAY,MAAM,EAAE,cAAc,CAAC;GAEnC,QAAQ,UAAU;EACpB,CAAC;OACI;GACL,MAAM,kBAAA,GAAA,oBAAA,cAAiB,yBAAA,CAAyB,MAAM;GAEtD,IAAI,gBACF,4BAA4B;IAC1B,eAAe,MAAM,EAAE,cAAc,CAAC;IAEtC,QAAQ,UAAU;GACpB,CAAC;QAED,4BAA4B;IAC1B,OAAO,MAAM,EAAE,cAAc,CAAC;IAE9B,QAAQ,UAAU;GACpB,CAAC;EACL;CACF,GAAG;EAAC;EAAW;EAAkB;EAAgB;CAAa,CAAC;CAE/D,eAAA,sBAAsB;EACpB,QAAQ,UAAU,CAAC;CACrB,GAAG,CAAC,gBAAgB,CAAC;CAErB,eAAA,sBAAsB;EACpB,sBAAsB,OAAO;CAC/B,GAAG,CAAC,OAAO,CAAC;CAEZ,uCAAA,iBAAiB,WAAW,iBAAiB,OAAO;AACtD;;;;;;AAaA,MAAa,yBAAyB,EACpC,KACA,UACA,cAC8B;CAC9B,uCAAA,uBACQ,IAAI,SAAS,YAAY,MAAA,GAAA,oBAAA,cAAK,YAAA,CAAY,IAAI,OAAO,GAC3D,gBACC,OAAO;EACN,IAAI,EAAA,GAAA,oBAAA,cAAC,SAAA,CAAS,KAAK,CAAC,SAAS;EAE7B,MAAM,SAAS,GAAG;EAClB,MAAM,MAAM,YAAY,CAAC,GAAG;EAC5B,MAAM,WAAW,IAAI,SAAS,YAAY;EAC1C,MAAM,QAAA,GAAA,oBAAA,cAAO,aAAA,CAAa,QAAQ,IAAI,YAAA,GAAA,oBAAA,cAAW,YAAA,CAAY,IAAI,OAAO;EACxE,MAAM,cAAc,IAAI,MAAM,YAAY;GACxC,MAAM,KAAKC,YAAAA,YAAY,OAAO,IAAI,QAAQ,UAAU;GAEpD,OAAO,IAAI,SAAS,MAAM,KAAK,OAAO;EACxC,CAAC;EAED,KAAA,GAAA,oBAAA,cAAI,iBAAA,CAAiB,IAAI,MAAM,UAAU,aAAa;GACpD,GAAG,eAAe;GAElB,OAAO,MAAM;EACf;CACF,CACF;AACF"}
1
+ {"version":3,"file":"index.cjs","names":["useRef","useCallback","isRefObject"],"sources":["../../../../src/hooks/use-focus/index.ts"],"sourcesContent":["\"use client\"\n\nimport type { RefObject } from \"react\"\nimport { useCallback, useEffect, useRef } from \"react\"\nimport {\n contains,\n getActiveElement,\n getDocument,\n getFirstFocusableElement,\n isRefObject,\n isSafari,\n isShadowRoot,\n useUpdateEffect,\n} from \"../../utils\"\nimport { useEventListener } from \"../use-event-listener\"\n\nexport interface UseFocusOnShowProps {\n focusTarget?: HTMLElement | null | RefObject<HTMLElement | null>\n preventScroll?: boolean\n shouldFocus?: boolean\n visible?: boolean\n}\n\n/**\n * `useFocusOnShow` is a custom hook that focuses on the target element when it is shown.\n *\n * @see https://yamada-ui.com/docs/hooks/use-focus-on-show\n */\nexport const useFocusOnShow = <Y extends HTMLElement>(\n refOrEl: RefObject<null | Y> | Y,\n {\n focusTarget: focusRefOrEl,\n preventScroll,\n shouldFocus,\n visible,\n }: UseFocusOnShowProps = {\n preventScroll: true,\n shouldFocus: false,\n },\n) => {\n const trulyShouldFocus = shouldFocus && visible\n const focused = useRef(false)\n const focusFrame = useRef(0)\n\n const getTarget = useCallback(() => {\n return isRefObject(refOrEl) ? refOrEl.current : refOrEl\n }, [refOrEl])\n\n const getFocusTarget = useCallback(() => {\n return isRefObject(focusRefOrEl) ? focusRefOrEl.current : focusRefOrEl\n }, [focusRefOrEl])\n\n const onFocus = useCallback(() => {\n const target = getTarget()\n\n if (!target || !trulyShouldFocus || focused.current) return\n const rootNode = target.getRootNode()\n const root = isShadowRoot(rootNode) ? rootNode : getDocument(target)\n if (contains(target, getActiveElement(root))) return\n\n const focusTarget =\n getFocusTarget() ?? getFirstFocusableElement(target) ?? target\n\n cancelAnimationFrame(focusFrame.current)\n focusFrame.current = requestAnimationFrame(() => {\n focusTarget.focus({ preventScroll })\n\n focused.current = true\n })\n }, [getTarget, trulyShouldFocus, getFocusTarget, preventScroll])\n\n useUpdateEffect(() => {\n focused.current = !trulyShouldFocus\n }, [trulyShouldFocus])\n\n useUpdateEffect(() => {\n const frame = requestAnimationFrame(onFocus)\n\n return () => cancelAnimationFrame(frame)\n }, [onFocus])\n\n useEffect(() => () => cancelAnimationFrame(focusFrame.current), [onFocus])\n\n useEventListener(getTarget, \"transitionend\", onFocus)\n}\n\nexport interface UseFocusOnMouseDownProps {\n ref: RefObject<HTMLElement | null>\n elements?: (HTMLElement | null | RefObject<HTMLElement | null>)[]\n enabled?: boolean\n}\n\n/**\n * `useFocusOnPointerDown` is a custom hook that focuses on the target element when it is clicked.\n *\n * @see https://yamada-ui.com/docs/hooks/use-focus-on-pointer-down\n */\nexport const useFocusOnPointerDown = ({\n ref,\n elements,\n enabled,\n}: UseFocusOnMouseDownProps) => {\n useEventListener(\n () => ref.current?.getRootNode() ?? getDocument(ref.current),\n \"pointerdown\",\n (ev) => {\n if (!isSafari() || !enabled) return\n\n const target = ev.target as HTMLElement\n const els = elements ?? [ref]\n const rootNode = ref.current?.getRootNode()\n const root = isShadowRoot(rootNode) ? rootNode : getDocument(ref.current)\n const validTarget = els.some((elOrRef) => {\n const el = isRefObject(elOrRef) ? elOrRef.current : elOrRef\n\n return el?.contains(target) || el === target\n })\n\n if (getActiveElement(root) !== target && validTarget) {\n ev.preventDefault()\n\n target.focus()\n }\n },\n )\n}\n"],"mappings":";;;;;;;;;;;;;AA4BA,MAAa,kBACX,SACA,EACE,aAAa,cACb,eACA,aACA,YACuB;CACvB,eAAe;CACf,aAAa;AACf,MACG;CACH,MAAM,mBAAmB,eAAe;CACxC,MAAM,WAAA,GAAUA,MAAAA,OAAAA,CAAO,KAAK;CAC5B,MAAM,cAAA,GAAaA,MAAAA,OAAAA,CAAO,CAAC;CAE3B,MAAM,aAAA,GAAYC,MAAAA,YAAAA,OAAkB;EAClC,OAAOC,YAAAA,YAAY,OAAO,IAAI,QAAQ,UAAU;CAClD,GAAG,CAAC,OAAO,CAAC;CAEZ,MAAM,kBAAA,GAAiBD,MAAAA,YAAAA,OAAkB;EACvC,OAAOC,YAAAA,YAAY,YAAY,IAAI,aAAa,UAAU;CAC5D,GAAG,CAAC,YAAY,CAAC;CAEjB,MAAM,WAAA,GAAUD,MAAAA,YAAAA,OAAkB;EAChC,MAAM,SAAS,UAAU;EAEzB,IAAI,CAAC,UAAU,CAAC,oBAAoB,QAAQ,SAAS;EACrD,MAAM,WAAW,OAAO,YAAY;EACpC,MAAM,QAAA,GAAA,oBAAA,cAAO,aAAA,CAAa,QAAQ,IAAI,YAAA,GAAA,oBAAA,cAAW,YAAA,CAAY,MAAM;EACnE,KAAA,GAAA,oBAAA,cAAI,SAAA,CAAS,SAAA,GAAA,oBAAA,cAAQ,iBAAA,CAAiB,IAAI,CAAC,GAAG;EAE9C,MAAM,cACJ,eAAe,MAAA,GAAA,oBAAA,cAAK,yBAAA,CAAyB,MAAM,KAAK;EAE1D,qBAAqB,WAAW,OAAO;EACvC,WAAW,UAAU,4BAA4B;GAC/C,YAAY,MAAM,EAAE,cAAc,CAAC;GAEnC,QAAQ,UAAU;EACpB,CAAC;CACH,GAAG;EAAC;EAAW;EAAkB;EAAgB;CAAa,CAAC;CAE/D,eAAA,sBAAsB;EACpB,QAAQ,UAAU,CAAC;CACrB,GAAG,CAAC,gBAAgB,CAAC;CAErB,eAAA,sBAAsB;EACpB,MAAM,QAAQ,sBAAsB,OAAO;EAE3C,aAAa,qBAAqB,KAAK;CACzC,GAAG,CAAC,OAAO,CAAC;CAEZ,CAAA,GAAA,MAAA,UAAA,aAAsB,qBAAqB,WAAW,OAAO,GAAG,CAAC,OAAO,CAAC;CAEzE,uCAAA,iBAAiB,WAAW,iBAAiB,OAAO;AACtD;;;;;;AAaA,MAAa,yBAAyB,EACpC,KACA,UACA,cAC8B;CAC9B,uCAAA,uBACQ,IAAI,SAAS,YAAY,MAAA,GAAA,oBAAA,cAAK,YAAA,CAAY,IAAI,OAAO,GAC3D,gBACC,OAAO;EACN,IAAI,EAAA,GAAA,oBAAA,cAAC,SAAA,CAAS,KAAK,CAAC,SAAS;EAE7B,MAAM,SAAS,GAAG;EAClB,MAAM,MAAM,YAAY,CAAC,GAAG;EAC5B,MAAM,WAAW,IAAI,SAAS,YAAY;EAC1C,MAAM,QAAA,GAAA,oBAAA,cAAO,aAAA,CAAa,QAAQ,IAAI,YAAA,GAAA,oBAAA,cAAW,YAAA,CAAY,IAAI,OAAO;EACxE,MAAM,cAAc,IAAI,MAAM,YAAY;GACxC,MAAM,KAAKC,YAAAA,YAAY,OAAO,IAAI,QAAQ,UAAU;GAEpD,OAAO,IAAI,SAAS,MAAM,KAAK,OAAO;EACxC,CAAC;EAED,KAAA,GAAA,oBAAA,cAAI,iBAAA,CAAiB,IAAI,MAAM,UAAU,aAAa;GACpD,GAAG,eAAe;GAElB,OAAO,MAAM;EACf;CACF,CACF;AACF"}
@@ -3,7 +3,7 @@ import { useUpdateEffect } from "../../utils/effect.js";
3
3
  import { isRefObject } from "../../utils/ref.js";
4
4
  import { utils_exports } from "../../utils/index.js";
5
5
  import { useEventListener } from "../use-event-listener/index.js";
6
- import { useCallback, useRef } from "react";
6
+ import { useCallback, useEffect, useRef } from "react";
7
7
  //#region src/hooks/use-focus/index.ts
8
8
  /**
9
9
  * `useFocusOnShow` is a custom hook that focuses on the target element when it is shown.
@@ -16,6 +16,7 @@ const useFocusOnShow = (refOrEl, { focusTarget: focusRefOrEl, preventScroll, sho
16
16
  }) => {
17
17
  const trulyShouldFocus = shouldFocus && visible;
18
18
  const focused = useRef(false);
19
+ const focusFrame = useRef(0);
19
20
  const getTarget = useCallback(() => {
20
21
  return isRefObject(refOrEl) ? refOrEl.current : refOrEl;
21
22
  }, [refOrEl]);
@@ -28,22 +29,12 @@ const useFocusOnShow = (refOrEl, { focusTarget: focusRefOrEl, preventScroll, sho
28
29
  const rootNode = target.getRootNode();
29
30
  const root = (0, utils_exports.isShadowRoot)(rootNode) ? rootNode : (0, utils_exports.getDocument)(target);
30
31
  if ((0, utils_exports.contains)(target, (0, utils_exports.getActiveElement)(root))) return;
31
- const focusTarget = getFocusTarget();
32
- if (focusTarget) requestAnimationFrame(() => {
32
+ const focusTarget = getFocusTarget() ?? (0, utils_exports.getFirstFocusableElement)(target) ?? target;
33
+ cancelAnimationFrame(focusFrame.current);
34
+ focusFrame.current = requestAnimationFrame(() => {
33
35
  focusTarget.focus({ preventScroll });
34
36
  focused.current = true;
35
37
  });
36
- else {
37
- const firstFocusable = (0, utils_exports.getFirstFocusableElement)(target);
38
- if (firstFocusable) requestAnimationFrame(() => {
39
- firstFocusable.focus({ preventScroll });
40
- focused.current = true;
41
- });
42
- else requestAnimationFrame(() => {
43
- target.focus({ preventScroll });
44
- focused.current = true;
45
- });
46
- }
47
38
  }, [
48
39
  getTarget,
49
40
  trulyShouldFocus,
@@ -54,8 +45,10 @@ const useFocusOnShow = (refOrEl, { focusTarget: focusRefOrEl, preventScroll, sho
54
45
  focused.current = !trulyShouldFocus;
55
46
  }, [trulyShouldFocus]);
56
47
  useUpdateEffect(() => {
57
- requestAnimationFrame(onFocus);
48
+ const frame = requestAnimationFrame(onFocus);
49
+ return () => cancelAnimationFrame(frame);
58
50
  }, [onFocus]);
51
+ useEffect(() => () => cancelAnimationFrame(focusFrame.current), [onFocus]);
59
52
  useEventListener(getTarget, "transitionend", onFocus);
60
53
  };
61
54
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["isShadowRoot","getDocument","contains","getActiveElement","getFirstFocusableElement","isSafari"],"sources":["../../../../src/hooks/use-focus/index.ts"],"sourcesContent":["\"use client\"\n\nimport type { RefObject } from \"react\"\nimport { useCallback, useRef } from \"react\"\nimport {\n contains,\n getActiveElement,\n getDocument,\n getFirstFocusableElement,\n isRefObject,\n isSafari,\n isShadowRoot,\n useUpdateEffect,\n} from \"../../utils\"\nimport { useEventListener } from \"../use-event-listener\"\n\nexport interface UseFocusOnShowProps {\n focusTarget?: HTMLElement | null | RefObject<HTMLElement | null>\n preventScroll?: boolean\n shouldFocus?: boolean\n visible?: boolean\n}\n\n/**\n * `useFocusOnShow` is a custom hook that focuses on the target element when it is shown.\n *\n * @see https://yamada-ui.com/docs/hooks/use-focus-on-show\n */\nexport const useFocusOnShow = <Y extends HTMLElement>(\n refOrEl: RefObject<null | Y> | Y,\n {\n focusTarget: focusRefOrEl,\n preventScroll,\n shouldFocus,\n visible,\n }: UseFocusOnShowProps = {\n preventScroll: true,\n shouldFocus: false,\n },\n) => {\n const trulyShouldFocus = shouldFocus && visible\n const focused = useRef(false)\n\n const getTarget = useCallback(() => {\n return isRefObject(refOrEl) ? refOrEl.current : refOrEl\n }, [refOrEl])\n\n const getFocusTarget = useCallback(() => {\n return isRefObject(focusRefOrEl) ? focusRefOrEl.current : focusRefOrEl\n }, [focusRefOrEl])\n\n const onFocus = useCallback(() => {\n const target = getTarget()\n\n if (!target || !trulyShouldFocus || focused.current) return\n const rootNode = target.getRootNode()\n const root = isShadowRoot(rootNode) ? rootNode : getDocument(target)\n if (contains(target, getActiveElement(root))) return\n\n const focusTarget = getFocusTarget()\n\n if (focusTarget) {\n requestAnimationFrame(() => {\n focusTarget.focus({ preventScroll })\n\n focused.current = true\n })\n } else {\n const firstFocusable = getFirstFocusableElement(target)\n\n if (firstFocusable)\n requestAnimationFrame(() => {\n firstFocusable.focus({ preventScroll })\n\n focused.current = true\n })\n else\n requestAnimationFrame(() => {\n target.focus({ preventScroll })\n\n focused.current = true\n })\n }\n }, [getTarget, trulyShouldFocus, getFocusTarget, preventScroll])\n\n useUpdateEffect(() => {\n focused.current = !trulyShouldFocus\n }, [trulyShouldFocus])\n\n useUpdateEffect(() => {\n requestAnimationFrame(onFocus)\n }, [onFocus])\n\n useEventListener(getTarget, \"transitionend\", onFocus)\n}\n\nexport interface UseFocusOnMouseDownProps {\n ref: RefObject<HTMLElement | null>\n elements?: (HTMLElement | null | RefObject<HTMLElement | null>)[]\n enabled?: boolean\n}\n\n/**\n * `useFocusOnPointerDown` is a custom hook that focuses on the target element when it is clicked.\n *\n * @see https://yamada-ui.com/docs/hooks/use-focus-on-pointer-down\n */\nexport const useFocusOnPointerDown = ({\n ref,\n elements,\n enabled,\n}: UseFocusOnMouseDownProps) => {\n useEventListener(\n () => ref.current?.getRootNode() ?? getDocument(ref.current),\n \"pointerdown\",\n (ev) => {\n if (!isSafari() || !enabled) return\n\n const target = ev.target as HTMLElement\n const els = elements ?? [ref]\n const rootNode = ref.current?.getRootNode()\n const root = isShadowRoot(rootNode) ? rootNode : getDocument(ref.current)\n const validTarget = els.some((elOrRef) => {\n const el = isRefObject(elOrRef) ? elOrRef.current : elOrRef\n\n return el?.contains(target) || el === target\n })\n\n if (getActiveElement(root) !== target && validTarget) {\n ev.preventDefault()\n\n target.focus()\n }\n },\n )\n}\n"],"mappings":";;;;;;;;;;;;AA4BA,MAAa,kBACX,SACA,EACE,aAAa,cACb,eACA,aACA,YACuB;CACvB,eAAe;CACf,aAAa;AACf,MACG;CACH,MAAM,mBAAmB,eAAe;CACxC,MAAM,UAAU,OAAO,KAAK;CAE5B,MAAM,YAAY,kBAAkB;EAClC,OAAO,YAAY,OAAO,IAAI,QAAQ,UAAU;CAClD,GAAG,CAAC,OAAO,CAAC;CAEZ,MAAM,iBAAiB,kBAAkB;EACvC,OAAO,YAAY,YAAY,IAAI,aAAa,UAAU;CAC5D,GAAG,CAAC,YAAY,CAAC;CAEjB,MAAM,UAAU,kBAAkB;EAChC,MAAM,SAAS,UAAU;EAEzB,IAAI,CAAC,UAAU,CAAC,oBAAoB,QAAQ,SAAS;EACrD,MAAM,WAAW,OAAO,YAAY;EACpC,MAAM,QAAA,GAAOA,cAAAA,aAAAA,CAAa,QAAQ,IAAI,YAAA,GAAWC,cAAAA,YAAAA,CAAY,MAAM;EACnE,KAAA,GAAIC,cAAAA,SAAAA,CAAS,SAAA,GAAQC,cAAAA,iBAAAA,CAAiB,IAAI,CAAC,GAAG;EAE9C,MAAM,cAAc,eAAe;EAEnC,IAAI,aACF,4BAA4B;GAC1B,YAAY,MAAM,EAAE,cAAc,CAAC;GAEnC,QAAQ,UAAU;EACpB,CAAC;OACI;GACL,MAAM,kBAAA,GAAiBC,cAAAA,yBAAAA,CAAyB,MAAM;GAEtD,IAAI,gBACF,4BAA4B;IAC1B,eAAe,MAAM,EAAE,cAAc,CAAC;IAEtC,QAAQ,UAAU;GACpB,CAAC;QAED,4BAA4B;IAC1B,OAAO,MAAM,EAAE,cAAc,CAAC;IAE9B,QAAQ,UAAU;GACpB,CAAC;EACL;CACF,GAAG;EAAC;EAAW;EAAkB;EAAgB;CAAa,CAAC;CAE/D,sBAAsB;EACpB,QAAQ,UAAU,CAAC;CACrB,GAAG,CAAC,gBAAgB,CAAC;CAErB,sBAAsB;EACpB,sBAAsB,OAAO;CAC/B,GAAG,CAAC,OAAO,CAAC;CAEZ,iBAAiB,WAAW,iBAAiB,OAAO;AACtD;;;;;;AAaA,MAAa,yBAAyB,EACpC,KACA,UACA,cAC8B;CAC9B,uBACQ,IAAI,SAAS,YAAY,MAAA,GAAKH,cAAAA,YAAAA,CAAY,IAAI,OAAO,GAC3D,gBACC,OAAO;EACN,IAAI,EAAA,GAACI,cAAAA,SAAAA,CAAS,KAAK,CAAC,SAAS;EAE7B,MAAM,SAAS,GAAG;EAClB,MAAM,MAAM,YAAY,CAAC,GAAG;EAC5B,MAAM,WAAW,IAAI,SAAS,YAAY;EAC1C,MAAM,QAAA,GAAOL,cAAAA,aAAAA,CAAa,QAAQ,IAAI,YAAA,GAAWC,cAAAA,YAAAA,CAAY,IAAI,OAAO;EACxE,MAAM,cAAc,IAAI,MAAM,YAAY;GACxC,MAAM,KAAK,YAAY,OAAO,IAAI,QAAQ,UAAU;GAEpD,OAAO,IAAI,SAAS,MAAM,KAAK,OAAO;EACxC,CAAC;EAED,KAAA,GAAIE,cAAAA,iBAAAA,CAAiB,IAAI,MAAM,UAAU,aAAa;GACpD,GAAG,eAAe;GAElB,OAAO,MAAM;EACf;CACF,CACF;AACF"}
1
+ {"version":3,"file":"index.js","names":["isShadowRoot","getDocument","contains","getActiveElement","getFirstFocusableElement","isSafari"],"sources":["../../../../src/hooks/use-focus/index.ts"],"sourcesContent":["\"use client\"\n\nimport type { RefObject } from \"react\"\nimport { useCallback, useEffect, useRef } from \"react\"\nimport {\n contains,\n getActiveElement,\n getDocument,\n getFirstFocusableElement,\n isRefObject,\n isSafari,\n isShadowRoot,\n useUpdateEffect,\n} from \"../../utils\"\nimport { useEventListener } from \"../use-event-listener\"\n\nexport interface UseFocusOnShowProps {\n focusTarget?: HTMLElement | null | RefObject<HTMLElement | null>\n preventScroll?: boolean\n shouldFocus?: boolean\n visible?: boolean\n}\n\n/**\n * `useFocusOnShow` is a custom hook that focuses on the target element when it is shown.\n *\n * @see https://yamada-ui.com/docs/hooks/use-focus-on-show\n */\nexport const useFocusOnShow = <Y extends HTMLElement>(\n refOrEl: RefObject<null | Y> | Y,\n {\n focusTarget: focusRefOrEl,\n preventScroll,\n shouldFocus,\n visible,\n }: UseFocusOnShowProps = {\n preventScroll: true,\n shouldFocus: false,\n },\n) => {\n const trulyShouldFocus = shouldFocus && visible\n const focused = useRef(false)\n const focusFrame = useRef(0)\n\n const getTarget = useCallback(() => {\n return isRefObject(refOrEl) ? refOrEl.current : refOrEl\n }, [refOrEl])\n\n const getFocusTarget = useCallback(() => {\n return isRefObject(focusRefOrEl) ? focusRefOrEl.current : focusRefOrEl\n }, [focusRefOrEl])\n\n const onFocus = useCallback(() => {\n const target = getTarget()\n\n if (!target || !trulyShouldFocus || focused.current) return\n const rootNode = target.getRootNode()\n const root = isShadowRoot(rootNode) ? rootNode : getDocument(target)\n if (contains(target, getActiveElement(root))) return\n\n const focusTarget =\n getFocusTarget() ?? getFirstFocusableElement(target) ?? target\n\n cancelAnimationFrame(focusFrame.current)\n focusFrame.current = requestAnimationFrame(() => {\n focusTarget.focus({ preventScroll })\n\n focused.current = true\n })\n }, [getTarget, trulyShouldFocus, getFocusTarget, preventScroll])\n\n useUpdateEffect(() => {\n focused.current = !trulyShouldFocus\n }, [trulyShouldFocus])\n\n useUpdateEffect(() => {\n const frame = requestAnimationFrame(onFocus)\n\n return () => cancelAnimationFrame(frame)\n }, [onFocus])\n\n useEffect(() => () => cancelAnimationFrame(focusFrame.current), [onFocus])\n\n useEventListener(getTarget, \"transitionend\", onFocus)\n}\n\nexport interface UseFocusOnMouseDownProps {\n ref: RefObject<HTMLElement | null>\n elements?: (HTMLElement | null | RefObject<HTMLElement | null>)[]\n enabled?: boolean\n}\n\n/**\n * `useFocusOnPointerDown` is a custom hook that focuses on the target element when it is clicked.\n *\n * @see https://yamada-ui.com/docs/hooks/use-focus-on-pointer-down\n */\nexport const useFocusOnPointerDown = ({\n ref,\n elements,\n enabled,\n}: UseFocusOnMouseDownProps) => {\n useEventListener(\n () => ref.current?.getRootNode() ?? getDocument(ref.current),\n \"pointerdown\",\n (ev) => {\n if (!isSafari() || !enabled) return\n\n const target = ev.target as HTMLElement\n const els = elements ?? [ref]\n const rootNode = ref.current?.getRootNode()\n const root = isShadowRoot(rootNode) ? rootNode : getDocument(ref.current)\n const validTarget = els.some((elOrRef) => {\n const el = isRefObject(elOrRef) ? elOrRef.current : elOrRef\n\n return el?.contains(target) || el === target\n })\n\n if (getActiveElement(root) !== target && validTarget) {\n ev.preventDefault()\n\n target.focus()\n }\n },\n )\n}\n"],"mappings":";;;;;;;;;;;;AA4BA,MAAa,kBACX,SACA,EACE,aAAa,cACb,eACA,aACA,YACuB;CACvB,eAAe;CACf,aAAa;AACf,MACG;CACH,MAAM,mBAAmB,eAAe;CACxC,MAAM,UAAU,OAAO,KAAK;CAC5B,MAAM,aAAa,OAAO,CAAC;CAE3B,MAAM,YAAY,kBAAkB;EAClC,OAAO,YAAY,OAAO,IAAI,QAAQ,UAAU;CAClD,GAAG,CAAC,OAAO,CAAC;CAEZ,MAAM,iBAAiB,kBAAkB;EACvC,OAAO,YAAY,YAAY,IAAI,aAAa,UAAU;CAC5D,GAAG,CAAC,YAAY,CAAC;CAEjB,MAAM,UAAU,kBAAkB;EAChC,MAAM,SAAS,UAAU;EAEzB,IAAI,CAAC,UAAU,CAAC,oBAAoB,QAAQ,SAAS;EACrD,MAAM,WAAW,OAAO,YAAY;EACpC,MAAM,QAAA,GAAOA,cAAAA,aAAAA,CAAa,QAAQ,IAAI,YAAA,GAAWC,cAAAA,YAAAA,CAAY,MAAM;EACnE,KAAA,GAAIC,cAAAA,SAAAA,CAAS,SAAA,GAAQC,cAAAA,iBAAAA,CAAiB,IAAI,CAAC,GAAG;EAE9C,MAAM,cACJ,eAAe,MAAA,GAAKC,cAAAA,yBAAAA,CAAyB,MAAM,KAAK;EAE1D,qBAAqB,WAAW,OAAO;EACvC,WAAW,UAAU,4BAA4B;GAC/C,YAAY,MAAM,EAAE,cAAc,CAAC;GAEnC,QAAQ,UAAU;EACpB,CAAC;CACH,GAAG;EAAC;EAAW;EAAkB;EAAgB;CAAa,CAAC;CAE/D,sBAAsB;EACpB,QAAQ,UAAU,CAAC;CACrB,GAAG,CAAC,gBAAgB,CAAC;CAErB,sBAAsB;EACpB,MAAM,QAAQ,sBAAsB,OAAO;EAE3C,aAAa,qBAAqB,KAAK;CACzC,GAAG,CAAC,OAAO,CAAC;CAEZ,sBAAsB,qBAAqB,WAAW,OAAO,GAAG,CAAC,OAAO,CAAC;CAEzE,iBAAiB,WAAW,iBAAiB,OAAO;AACtD;;;;;;AAaA,MAAa,yBAAyB,EACpC,KACA,UACA,cAC8B;CAC9B,uBACQ,IAAI,SAAS,YAAY,MAAA,GAAKH,cAAAA,YAAAA,CAAY,IAAI,OAAO,GAC3D,gBACC,OAAO;EACN,IAAI,EAAA,GAACI,cAAAA,SAAAA,CAAS,KAAK,CAAC,SAAS;EAE7B,MAAM,SAAS,GAAG;EAClB,MAAM,MAAM,YAAY,CAAC,GAAG;EAC5B,MAAM,WAAW,IAAI,SAAS,YAAY;EAC1C,MAAM,QAAA,GAAOL,cAAAA,aAAAA,CAAa,QAAQ,IAAI,YAAA,GAAWC,cAAAA,YAAAA,CAAY,IAAI,OAAO;EACxE,MAAM,cAAc,IAAI,MAAM,YAAY;GACxC,MAAM,KAAK,YAAY,OAAO,IAAI,QAAQ,UAAU;GAEpD,OAAO,IAAI,SAAS,MAAM,KAAK,OAAO;EACxC,CAAC;EAED,KAAA,GAAIE,cAAAA,iBAAAA,CAAiB,IAAI,MAAM,UAAU,aAAa;GACpD,GAAG,eAAe;GAElB,OAAO,MAAM;EACf;CACF,CACF;AACF"}
@@ -2,7 +2,7 @@ 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
4
  //#region src/components/alert/alert.style.d.ts
5
- export declare const alertStyle: ComponentSlotStyle<"loading" | "title" | "icon" | "root" | "description", CSSPropObject<CSSSlotObject<"loading" | "title" | "icon" | "root" | "description">>, CSSModifierObject<CSSSlotObject<"loading" | "title" | "icon" | "root" | "description">>, {
5
+ export declare const alertStyle: ComponentSlotStyle<"title" | "loading" | "icon" | "root" | "description", CSSPropObject<CSSSlotObject<"title" | "loading" | "icon" | "root" | "description">>, CSSModifierObject<CSSSlotObject<"title" | "loading" | "icon" | "root" | "description">>, {
6
6
  island: {
7
7
  description: {
8
8
  color: "fg.muted";
@@ -2,7 +2,7 @@ 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
4
  //#region src/components/autocomplete/autocomplete.style.d.ts
5
- export declare const autocompleteStyle: ComponentSlotStyle<"input" | "label" | "option" | "content" | "group" | "separator" | "icon" | "root" | "indicator" | "field" | "empty" | "valueText", CSSPropObject<CSSSlotObject<"input" | "label" | "option" | "content" | "group" | "separator" | "icon" | "root" | "indicator" | "field" | "empty" | "valueText">>, {
5
+ export declare const autocompleteStyle: ComponentSlotStyle<"input" | "label" | "option" | "content" | "group" | "separator" | "icon" | "root" | "indicator" | "field" | "valueText" | "empty", CSSPropObject<CSSSlotObject<"input" | "label" | "option" | "content" | "group" | "separator" | "icon" | "root" | "indicator" | "field" | "valueText" | "empty">>, {
6
6
  xs: {
7
7
  empty: {
8
8
  gap: "1.5";
@@ -22,7 +22,7 @@ export interface AvatarProps extends HTMLStyledProps, ThemeProps<AvatarStyle>, U
22
22
  */
23
23
  imageProps?: AvatarImageProps;
24
24
  }
25
- declare const component: <H extends As | "fragment" = "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" | "fallback" | "root", {
25
+ declare const component: <H extends As | "fragment" = "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", {
26
26
  shape: {
27
27
  circle: {
28
28
  root: {
@@ -141,7 +141,7 @@ declare const component: <H extends As | "fragment" = "div", R extends import("@
141
141
  };
142
142
  };
143
143
  };
144
- }>>> | 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" | "fallback" | "root", {
144
+ }>>> | 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", {
145
145
  shape: {
146
146
  circle: {
147
147
  root: {
@@ -260,7 +260,7 @@ declare const component: <H extends As | "fragment" = "div", R extends import("@
260
260
  };
261
261
  };
262
262
  };
263
- }>>> | undefined, { className, withContext, transferProps }?: UseComponentPropsOptions<R>) => [CSSSlotObject, import("@yamada-ui/utils").Merge<WithoutThemeProps<Y, ComponentSlotStyle<"image" | "group" | "fallback" | "root", {
263
+ }>>> | undefined, { className, withContext, transferProps }?: UseComponentPropsOptions<R>) => [CSSSlotObject, import("@yamada-ui/utils").Merge<WithoutThemeProps<Y, ComponentSlotStyle<"image" | "group" | "root" | "fallback", {
264
264
  shape: {
265
265
  circle: {
266
266
  root: {
@@ -1,7 +1,7 @@
1
1
  import { ComponentSlotStyle } from "../../core/system/index.type.js";
2
2
  import "../../index.js";
3
3
  //#region src/components/avatar/avatar.style.d.ts
4
- export declare const avatarStyle: ComponentSlotStyle<"image" | "group" | "fallback" | "root", {
4
+ export declare const avatarStyle: ComponentSlotStyle<"image" | "group" | "root" | "fallback", {
5
5
  /**
6
6
  * The shape of the component
7
7
  *
@@ -2,7 +2,7 @@ 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
4
  //#region src/components/calendar/calendar.style.d.ts
5
- export declare const calendarStyle: ComponentSlotStyle<"button" | "select" | "cell" | "navigation" | "row" | "separator" | "next" | "root" | "month" | "week" | "control" | "weekday" | "day" | "months" | "years" | "weeks" | "prev", {
5
+ export declare const calendarStyle: ComponentSlotStyle<"button" | "select" | "cell" | "navigation" | "row" | "separator" | "next" | "root" | "month" | "week" | "prev" | "control" | "weekday" | "day" | "months" | "years" | "weeks", {
6
6
  /**
7
7
  * If `true`, the calendar will be fixed rows.
8
8
  *
@@ -74,7 +74,7 @@ export declare const calendarStyle: ComponentSlotStyle<"button" | "select" | "ce
74
74
  "--font-size": "fontSizes.xl";
75
75
  };
76
76
  };
77
- }, CSSModifierObject<CSSSlotObject<"button" | "select" | "cell" | "navigation" | "row" | "separator" | "next" | "root" | "month" | "week" | "control" | "weekday" | "day" | "months" | "years" | "weeks" | "prev">>>;
77
+ }, CSSModifierObject<CSSSlotObject<"button" | "select" | "cell" | "navigation" | "row" | "separator" | "next" | "root" | "month" | "week" | "prev" | "control" | "weekday" | "day" | "months" | "years" | "weeks">>>;
78
78
  export type CalendarStyle = typeof calendarStyle;
79
79
  //#endregion
80
80
  //# sourceMappingURL=calendar.style.d.ts.map
@@ -2,7 +2,7 @@ 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
4
  //#region src/components/carousel/carousel.style.d.ts
5
- export declare const carouselStyle: ComponentSlotStyle<"list" | "next" | "root" | "indicator" | "item" | "trigger" | "indicators" | "prev", CSSPropObject<CSSSlotObject<"list" | "next" | "root" | "indicator" | "item" | "trigger" | "indicators" | "prev">>, {
5
+ export declare const carouselStyle: ComponentSlotStyle<"list" | "next" | "root" | "indicator" | "item" | "trigger" | "prev" | "indicators", CSSPropObject<CSSSlotObject<"list" | "next" | "root" | "indicator" | "item" | "trigger" | "prev" | "indicators">>, {
6
6
  sm: {
7
7
  root: {
8
8
  h: "sm";
@@ -18,7 +18,7 @@ export declare const carouselStyle: ComponentSlotStyle<"list" | "next" | "root"
18
18
  h: "lg";
19
19
  };
20
20
  };
21
- }, CSSModifierObject<CSSSlotObject<"list" | "next" | "root" | "indicator" | "item" | "trigger" | "indicators" | "prev">>>;
21
+ }, CSSModifierObject<CSSSlotObject<"list" | "next" | "root" | "indicator" | "item" | "trigger" | "prev" | "indicators">>>;
22
22
  export type CarouselStyle = typeof carouselStyle;
23
23
  //#endregion
24
24
  //# sourceMappingURL=carousel.style.d.ts.map
@@ -2,7 +2,7 @@ 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
4
  //#region src/components/chart/polar-chart.style.d.ts
5
- export declare const polarChartStyle: ComponentSlotStyle<"label" | "grid" | "dot" | "root" | "labelList" | "activeDot" | "radial" | "labelLine" | "angleAxis" | "angleAxisLabel" | "angleAxisLine" | "angleAxisTick" | "angleAxisTickLine" | "pie" | "radar" | "radialBackground" | "radiusAxis" | "radiusAxisLabel" | "radiusAxisLine" | "radiusAxisTick" | "radiusAxisTickLine" | "sector", CSSPropObject<CSSSlotObject<"label" | "grid" | "dot" | "root" | "labelList" | "activeDot" | "radial" | "labelLine" | "angleAxis" | "angleAxisLabel" | "angleAxisLine" | "angleAxisTick" | "angleAxisTickLine" | "pie" | "radar" | "radialBackground" | "radiusAxis" | "radiusAxisLabel" | "radiusAxisLine" | "radiusAxisTick" | "radiusAxisTickLine" | "sector">>, CSSModifierObject<CSSSlotObject<"label" | "grid" | "dot" | "root" | "labelList" | "activeDot" | "radial" | "labelLine" | "angleAxis" | "angleAxisLabel" | "angleAxisLine" | "angleAxisTick" | "angleAxisTickLine" | "pie" | "radar" | "radialBackground" | "radiusAxis" | "radiusAxisLabel" | "radiusAxisLine" | "radiusAxisTick" | "radiusAxisTickLine" | "sector">>, CSSModifierObject<CSSSlotObject<"label" | "grid" | "dot" | "root" | "labelList" | "activeDot" | "radial" | "labelLine" | "angleAxis" | "angleAxisLabel" | "angleAxisLine" | "angleAxisTick" | "angleAxisTickLine" | "pie" | "radar" | "radialBackground" | "radiusAxis" | "radiusAxisLabel" | "radiusAxisLine" | "radiusAxisTick" | "radiusAxisTickLine" | "sector">>>;
5
+ export declare const polarChartStyle: ComponentSlotStyle<"label" | "grid" | "dot" | "root" | "labelList" | "activeDot" | "angleAxis" | "angleAxisLabel" | "angleAxisLine" | "angleAxisTick" | "angleAxisTickLine" | "labelLine" | "pie" | "radar" | "radial" | "radialBackground" | "radiusAxis" | "radiusAxisLabel" | "radiusAxisLine" | "radiusAxisTick" | "radiusAxisTickLine" | "sector", CSSPropObject<CSSSlotObject<"label" | "grid" | "dot" | "root" | "labelList" | "activeDot" | "angleAxis" | "angleAxisLabel" | "angleAxisLine" | "angleAxisTick" | "angleAxisTickLine" | "labelLine" | "pie" | "radar" | "radial" | "radialBackground" | "radiusAxis" | "radiusAxisLabel" | "radiusAxisLine" | "radiusAxisTick" | "radiusAxisTickLine" | "sector">>, CSSModifierObject<CSSSlotObject<"label" | "grid" | "dot" | "root" | "labelList" | "activeDot" | "angleAxis" | "angleAxisLabel" | "angleAxisLine" | "angleAxisTick" | "angleAxisTickLine" | "labelLine" | "pie" | "radar" | "radial" | "radialBackground" | "radiusAxis" | "radiusAxisLabel" | "radiusAxisLine" | "radiusAxisTick" | "radiusAxisTickLine" | "sector">>, CSSModifierObject<CSSSlotObject<"label" | "grid" | "dot" | "root" | "labelList" | "activeDot" | "angleAxis" | "angleAxisLabel" | "angleAxisLine" | "angleAxisTick" | "angleAxisTickLine" | "labelLine" | "pie" | "radar" | "radial" | "radialBackground" | "radiusAxis" | "radiusAxisLabel" | "radiusAxisLine" | "radiusAxisTick" | "radiusAxisTickLine" | "sector">>>;
6
6
  export type PolarChartStyle = typeof polarChartStyle;
7
7
  //#endregion
8
8
  //# sourceMappingURL=polar-chart.style.d.ts.map
@@ -2,7 +2,7 @@ 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
4
  //#region src/components/color-selector/color-selector.style.d.ts
5
- export declare const colorSelectorStyle: ComponentSlotStyle<"root" | "hueSlider" | "saturationSlider" | "eyeDropper" | "colorSwatchGroupLabel" | "alphaSlider" | "colorSwatchGroup" | "colorSwatchItem", {
5
+ export declare const colorSelectorStyle: ComponentSlotStyle<"root" | "hueSlider" | "saturationSlider" | "eyeDropper" | "alphaSlider" | "colorSwatchGroup" | "colorSwatchGroupLabel" | "colorSwatchItem", {
6
6
  /**
7
7
  * The shape of the thumb and color swatch.
8
8
  *
@@ -23,7 +23,7 @@ export declare const colorSelectorStyle: ComponentSlotStyle<"root" | "hueSlider"
23
23
  md: {};
24
24
  lg: {};
25
25
  xl: {};
26
- }, CSSModifierObject<CSSSlotObject<"root" | "hueSlider" | "saturationSlider" | "eyeDropper" | "colorSwatchGroupLabel" | "alphaSlider" | "colorSwatchGroup" | "colorSwatchItem">>>;
26
+ }, CSSModifierObject<CSSSlotObject<"root" | "hueSlider" | "saturationSlider" | "eyeDropper" | "alphaSlider" | "colorSwatchGroup" | "colorSwatchGroupLabel" | "colorSwatchItem">>>;
27
27
  export type ColorSelectorStyle = typeof colorSelectorStyle;
28
28
  //#endregion
29
29
  //# sourceMappingURL=color-selector.style.d.ts.map
@@ -1,7 +1,7 @@
1
1
  import { ComponentSlotStyle } from "../../core/system/index.type.js";
2
2
  import "../../index.js";
3
3
  //#region src/components/data-list/data-list.style.d.ts
4
- export declare const dataListStyle: ComponentSlotStyle<"term" | "root" | "description" | "item", {
4
+ export declare const dataListStyle: ComponentSlotStyle<"term" | "root" | "item" | "description", {
5
5
  /**
6
6
  * The orientation of the data list.
7
7
  *
@@ -34,7 +34,7 @@ declare const DropzonePropsContext: import("react").Context<Partial<DropzoneRoot
34
34
  *
35
35
  * @see https://yamada-ui.com/docs/components/dropzone
36
36
  */
37
- export declare const DropzoneRoot: Component<({ children, errorBorderColor, focusBorderColor, loadingScheme, inputProps, loadingProps, overlayProps, ...rest }: WithoutThemeProps<DropzoneRootProps, ComponentSlotStyle<"loading" | "title" | "overlay" | "icon" | "root" | "description", CSSPropObject<CSSSlotObject<"loading" | "title" | "overlay" | "icon" | "root" | "description">>, {
37
+ export declare const DropzoneRoot: Component<({ children, errorBorderColor, focusBorderColor, loadingScheme, inputProps, loadingProps, overlayProps, ...rest }: WithoutThemeProps<DropzoneRootProps, ComponentSlotStyle<"title" | "overlay" | "loading" | "icon" | "root" | "description", CSSPropObject<CSSSlotObject<"title" | "overlay" | "loading" | "icon" | "root" | "description">>, {
38
38
  xs: {
39
39
  root: {
40
40
  minH: "xs";
@@ -2,7 +2,7 @@ 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
4
  //#region src/components/dropzone/dropzone.style.d.ts
5
- export declare const dropzoneStyle: ComponentSlotStyle<"loading" | "title" | "overlay" | "icon" | "root" | "description", CSSPropObject<CSSSlotObject<"loading" | "title" | "overlay" | "icon" | "root" | "description">>, {
5
+ export declare const dropzoneStyle: ComponentSlotStyle<"title" | "overlay" | "loading" | "icon" | "root" | "description", CSSPropObject<CSSSlotObject<"title" | "overlay" | "loading" | "icon" | "root" | "description">>, {
6
6
  xs: {
7
7
  root: {
8
8
  minH: "xs";
@@ -23,7 +23,7 @@ declare const EditablePropsContext: import("react").Context<Partial<EditableRoot
23
23
  *
24
24
  * @see https://yamada-ui.com/docs/components/editable
25
25
  */
26
- export declare const EditableRoot: Component<({ children, errorBorderColor, focusBorderColor, ...props }: WithoutThemeProps<EditableRootProps, ComponentSlotStyle<"input" | "textarea" | "root" | "control" | "preview", CSSPropObject<CSSSlotObject<"input" | "textarea" | "root" | "control" | "preview">>, CSSModifierObject<CSSSlotObject<"input" | "textarea" | "root" | "control" | "preview">>, CSSModifierObject<CSSSlotObject<"input" | "textarea" | "root" | "control" | "preview">>>, keyof EditableRootProps>) => import("react").JSX.Element, EditableRootProps>;
26
+ 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>;
27
27
  export interface EditablePreviewProps extends HTMLStyledProps<"span"> {}
28
28
  export declare const EditablePreview: Component<"span", EditablePreviewProps>;
29
29
  export interface EditableInputProps extends HTMLStyledProps<"input"> {}
@@ -2,7 +2,7 @@ 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
4
  //#region src/components/editable/editable.style.d.ts
5
- export declare const editableStyle: ComponentSlotStyle<"input" | "textarea" | "root" | "control" | "preview", CSSPropObject<CSSSlotObject<"input" | "textarea" | "root" | "control" | "preview">>, CSSModifierObject<CSSSlotObject<"input" | "textarea" | "root" | "control" | "preview">>, CSSModifierObject<CSSSlotObject<"input" | "textarea" | "root" | "control" | "preview">>>;
5
+ 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">>>;
6
6
  export type EditableStyle = typeof editableStyle;
7
7
  //#endregion
8
8
  //# sourceMappingURL=editable.style.d.ts.map
@@ -2,7 +2,7 @@ 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
4
  //#region src/components/field/field.style.d.ts
5
- export declare const fieldStyle: ComponentSlotStyle<"label" | "root" | "errorMessage" | "helperMessage" | "requiredIndicator", {
5
+ export declare const fieldStyle: ComponentSlotStyle<"label" | "root" | "helperMessage" | "errorMessage" | "requiredIndicator", {
6
6
  /**
7
7
  * The orientation of the field.
8
8
  */
@@ -36,7 +36,7 @@ export declare const fieldStyle: ComponentSlotStyle<"label" | "root" | "errorMes
36
36
  };
37
37
  };
38
38
  };
39
- }, CSSModifierObject<CSSSlotObject<"label" | "root" | "errorMessage" | "helperMessage" | "requiredIndicator">>, CSSModifierObject<CSSSlotObject<"label" | "root" | "errorMessage" | "helperMessage" | "requiredIndicator">>>;
39
+ }, CSSModifierObject<CSSSlotObject<"label" | "root" | "helperMessage" | "errorMessage" | "requiredIndicator">>, CSSModifierObject<CSSSlotObject<"label" | "root" | "helperMessage" | "errorMessage" | "requiredIndicator">>>;
40
40
  export type FieldStyle = typeof fieldStyle;
41
41
  //#endregion
42
42
  //# sourceMappingURL=field.style.d.ts.map
@@ -17,7 +17,7 @@ export declare const useFieldProps: <Y extends HTMLElement, M extends Dict>({ id
17
17
  disabled: boolean | undefined;
18
18
  readOnly: boolean | undefined;
19
19
  required: boolean | undefined;
20
- } & Omit<M & UseFieldProps<Y>, "id" | "aria-describedby" | "onFocus" | "onBlur" | "disabled" | "invalid" | "readOnly" | "name" | "required" | "notSupportReadOnly">;
20
+ } & Omit<M & UseFieldProps<Y>, "disabled" | "readOnly" | "id" | "aria-describedby" | "onFocus" | "onBlur" | "invalid" | "name" | "required" | "notSupportReadOnly">;
21
21
  ariaProps: {
22
22
  "aria-describedby": any;
23
23
  "aria-disabled": (boolean | "true" | "false") | undefined;
@@ -2,7 +2,7 @@ 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
4
  //#region src/components/fieldset/fieldset.style.d.ts
5
- export declare const fieldsetStyle: ComponentSlotStyle<"header" | "legend" | "content" | "root" | "errorMessage" | "helperMessage", CSSPropObject<CSSSlotObject<"header" | "legend" | "content" | "root" | "errorMessage" | "helperMessage">>, {
5
+ export declare const fieldsetStyle: ComponentSlotStyle<"header" | "legend" | "content" | "root" | "helperMessage" | "errorMessage", CSSPropObject<CSSSlotObject<"header" | "legend" | "content" | "root" | "helperMessage" | "errorMessage">>, {
6
6
  sm: {
7
7
  content: {
8
8
  gap: "3";
@@ -9,7 +9,7 @@ import "../../index.js";
9
9
  //#region src/components/file-button/use-file-button.d.ts
10
10
  export interface UseFileButtonProps extends UseFileInputProps<"button">, FieldProps {}
11
11
  export declare const useFileButton: (props?: UseFileButtonProps) => {
12
- clickableProps: (Omit<UseClickableProps<HTMLElement, import("@yamada-ui/utils").Dict<any>>, "ref" | "tabIndex" | "onKeyDown" | "onKeyUp" | "onClick" | "onMouseDown" | "onMouseLeave" | "onMouseOver" | "onMouseUp" | "clickOnEnter" | "clickOnSpace" | "disabled" | "disableTouchBehavior" | "focusable" | "focusOnClick"> & {
12
+ 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"> & {
13
13
  ref: (node: any) => void;
14
14
  type: "button";
15
15
  "aria-disabled": boolean | undefined;
@@ -21,7 +21,7 @@ export declare const useFileButton: (props?: UseFileButtonProps) => {
21
21
  onMouseLeave: import("react").MouseEventHandler<HTMLElement> | undefined;
22
22
  onMouseOver: import("react").MouseEventHandler<HTMLElement> | undefined;
23
23
  onMouseUp: import("react").MouseEventHandler<HTMLElement> | undefined;
24
- }) | (Omit<UseClickableProps<HTMLElement, import("@yamada-ui/utils").Dict<any>>, "ref" | "tabIndex" | "onKeyDown" | "onKeyUp" | "onClick" | "onMouseDown" | "onMouseLeave" | "onMouseOver" | "onMouseUp" | "clickOnEnter" | "clickOnSpace" | "disabled" | "disableTouchBehavior" | "focusable" | "focusOnClick"> & {
24
+ }) | (Omit<UseClickableProps<HTMLElement, import("@yamada-ui/utils").Dict<any>>, "disabled" | "ref" | "tabIndex" | "onKeyDown" | "onKeyUp" | "onClick" | "onMouseDown" | "onMouseLeave" | "onMouseOver" | "onMouseUp" | "clickOnEnter" | "clickOnSpace" | "disableTouchBehavior" | "focusable" | "focusOnClick"> & {
25
25
  ref: (node: any) => void;
26
26
  "aria-disabled": "true" | undefined;
27
27
  "data-active": string | undefined;
@@ -31,7 +31,7 @@ export declare const useFileInput: <Y extends "button" | "input" = "input">(prop
31
31
  readOnly: boolean | undefined;
32
32
  required: boolean | undefined;
33
33
  values: File[] | undefined;
34
- clickableProps: (Omit<UseClickableProps<HTMLElement, Dict<any>>, "ref" | "tabIndex" | "onKeyDown" | "onKeyUp" | "onClick" | "onMouseDown" | "onMouseLeave" | "onMouseOver" | "onMouseUp" | "clickOnEnter" | "clickOnSpace" | "disabled" | "disableTouchBehavior" | "focusable" | "focusOnClick"> & {
34
+ clickableProps: (Omit<UseClickableProps<HTMLElement, Dict<any>>, "disabled" | "ref" | "tabIndex" | "onKeyDown" | "onKeyUp" | "onClick" | "onMouseDown" | "onMouseLeave" | "onMouseOver" | "onMouseUp" | "clickOnEnter" | "clickOnSpace" | "disableTouchBehavior" | "focusable" | "focusOnClick"> & {
35
35
  ref: (node: any) => void;
36
36
  type: "button";
37
37
  "aria-disabled": boolean | undefined;
@@ -43,7 +43,7 @@ export declare const useFileInput: <Y extends "button" | "input" = "input">(prop
43
43
  onMouseLeave: import("react").MouseEventHandler<HTMLElement> | undefined;
44
44
  onMouseOver: import("react").MouseEventHandler<HTMLElement> | undefined;
45
45
  onMouseUp: import("react").MouseEventHandler<HTMLElement> | undefined;
46
- }) | (Omit<UseClickableProps<HTMLElement, Dict<any>>, "ref" | "tabIndex" | "onKeyDown" | "onKeyUp" | "onClick" | "onMouseDown" | "onMouseLeave" | "onMouseOver" | "onMouseUp" | "clickOnEnter" | "clickOnSpace" | "disabled" | "disableTouchBehavior" | "focusable" | "focusOnClick"> & {
46
+ }) | (Omit<UseClickableProps<HTMLElement, Dict<any>>, "disabled" | "ref" | "tabIndex" | "onKeyDown" | "onKeyUp" | "onClick" | "onMouseDown" | "onMouseLeave" | "onMouseOver" | "onMouseUp" | "clickOnEnter" | "clickOnSpace" | "disableTouchBehavior" | "focusable" | "focusOnClick"> & {
47
47
  ref: (node: any) => void;
48
48
  "aria-disabled": "true" | undefined;
49
49
  "data-active": string | undefined;
@@ -2,7 +2,7 @@ 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
4
  //#region src/components/number-input/number-input.style.d.ts
5
- export declare const numberInputStyle: ComponentSlotStyle<"button" | "root" | "decrement" | "increment" | "field" | "control", CSSPropObject<CSSSlotObject<"button" | "root" | "decrement" | "increment" | "field" | "control">>, {
5
+ export declare const numberInputStyle: ComponentSlotStyle<"button" | "root" | "field" | "decrement" | "increment" | "control", CSSPropObject<CSSSlotObject<"button" | "root" | "field" | "decrement" | "increment" | "control">>, {
6
6
  xs: {
7
7
  control: {
8
8
  boxSize: "calc({--height} - {spaces.2})";
@@ -24,9 +24,9 @@ export interface UseProgressProps {
24
24
  export declare const useProgress: <Y extends "div" | "svg" = "div">({ max, min, value }?: UseProgressProps) => {
25
25
  percent: number;
26
26
  getRangeProps: (props?: HTMLProps<Y extends "svg" ? "circle" : "div">) => {
27
- ref?: import("react").JSX.IntrinsicElements[Y extends "svg" ? "circle" : "div"]["ref"] | undefined;
28
27
  slot?: import("react").JSX.IntrinsicElements[Y extends "svg" ? "circle" : "div"]["slot"] | undefined;
29
28
  style?: import("react").JSX.IntrinsicElements[Y extends "svg" ? "circle" : "div"]["style"] | undefined;
29
+ ref?: import("react").JSX.IntrinsicElements[Y extends "svg" ? "circle" : "div"]["ref"] | undefined;
30
30
  suppressHydrationWarning?: import("react").JSX.IntrinsicElements[Y extends "svg" ? "circle" : "div"]["suppressHydrationWarning"] | undefined;
31
31
  className?: import("react").JSX.IntrinsicElements[Y extends "svg" ? "circle" : "div"]["className"] | undefined;
32
32
  id?: import("react").JSX.IntrinsicElements[Y extends "svg" ? "circle" : "div"]["id"] | undefined;
@@ -262,9 +262,9 @@ export declare const useProgress: <Y extends "div" | "svg" = "div">({ max, min,
262
262
  "data-indeterminate": string | undefined;
263
263
  };
264
264
  getRootProps: (props?: HTMLProps<Y>) => {
265
- ref?: import("react").JSX.IntrinsicElements[Y]["ref"] | undefined;
266
265
  slot?: import("react").JSX.IntrinsicElements[Y]["slot"] | undefined;
267
266
  style?: import("react").JSX.IntrinsicElements[Y]["style"] | undefined;
267
+ ref?: import("react").JSX.IntrinsicElements[Y]["ref"] | undefined;
268
268
  suppressHydrationWarning?: import("react").JSX.IntrinsicElements[Y]["suppressHydrationWarning"] | undefined;
269
269
  className?: import("react").JSX.IntrinsicElements[Y]["className"] | undefined;
270
270
  id?: import("react").JSX.IntrinsicElements[Y]["id"] | undefined;
@@ -500,9 +500,9 @@ export declare const useProgress: <Y extends "div" | "svg" = "div">({ max, min,
500
500
  "data-indeterminate": string | undefined;
501
501
  };
502
502
  getTrackProps: (props?: HTMLProps<Y extends "svg" ? "circle" : "div">) => {
503
- ref?: import("react").JSX.IntrinsicElements[Y extends "svg" ? "circle" : "div"]["ref"] | undefined;
504
503
  slot?: import("react").JSX.IntrinsicElements[Y extends "svg" ? "circle" : "div"]["slot"] | undefined;
505
504
  style?: import("react").JSX.IntrinsicElements[Y extends "svg" ? "circle" : "div"]["style"] | undefined;
505
+ ref?: import("react").JSX.IntrinsicElements[Y extends "svg" ? "circle" : "div"]["ref"] | undefined;
506
506
  suppressHydrationWarning?: import("react").JSX.IntrinsicElements[Y extends "svg" ? "circle" : "div"]["suppressHydrationWarning"] | undefined;
507
507
  className?: import("react").JSX.IntrinsicElements[Y extends "svg" ? "circle" : "div"]["className"] | undefined;
508
508
  id?: import("react").JSX.IntrinsicElements[Y extends "svg" ? "circle" : "div"]["id"] | undefined;
@@ -1,7 +1,7 @@
1
1
  import { ComponentSlotStyle } from "../../core/system/index.type.js";
2
2
  import "../../index.js";
3
3
  //#region src/components/steps/steps.style.d.ts
4
- export declare const stepsStyle: ComponentSlotStyle<"title" | "list" | "separator" | "root" | "indicator" | "description" | "item", {
4
+ export declare const stepsStyle: ComponentSlotStyle<"title" | "list" | "separator" | "root" | "indicator" | "item" | "description", {
5
5
  /**
6
6
  * The orientation of the steps.
7
7
  *
@@ -1,7 +1,7 @@
1
1
  import { ComponentSlotStyle } from "../../core/system/index.type.js";
2
2
  import "../../index.js";
3
3
  //#region src/components/tabs/tabs.style.d.ts
4
- export declare const tabsStyle: ComponentSlotStyle<"list" | "tab" | "panel" | "root", {
4
+ export declare const tabsStyle: ComponentSlotStyle<"panel" | "list" | "tab" | "root", {
5
5
  /**
6
6
  * The alignment of the tabs.
7
7
  *
@@ -62,7 +62,7 @@ declare const TimelinePropsContext: import("react").Context<Partial<TimelineRoot
62
62
  *
63
63
  * @see https://yamada-ui.com/docs/components/timeline
64
64
  */
65
- export declare const TimelineRoot: Component<({ variant: variantProp, children, index, items, ...rest }: WithoutThemeProps<TimelineRootProps, ComponentSlotStyle<"title" | "content" | "root" | "indicator" | "description" | "item" | "connector", {
65
+ export declare const TimelineRoot: Component<({ variant: variantProp, children, index, items, ...rest }: WithoutThemeProps<TimelineRootProps, ComponentSlotStyle<"title" | "content" | "root" | "indicator" | "item" | "description" | "connector", {
66
66
  align: {
67
67
  center: {
68
68
  content: {
@@ -1,7 +1,7 @@
1
1
  import { ComponentSlotStyle } from "../../core/system/index.type.js";
2
2
  import "../../index.js";
3
3
  //#region src/components/timeline/timeline.style.d.ts
4
- export declare const timelineStyle: ComponentSlotStyle<"title" | "content" | "root" | "indicator" | "description" | "item" | "connector", {
4
+ export declare const timelineStyle: ComponentSlotStyle<"title" | "content" | "root" | "indicator" | "item" | "description" | "connector", {
5
5
  /**
6
6
  * The alignment of the timeline.
7
7
  *
@@ -214,11 +214,12 @@ export declare const useTreeItem: ({ asyncChildren, children: childrenProp, defa
214
214
  level: number;
215
215
  props: {
216
216
  [key: `data-${string}`]: string | undefined;
217
- ref?: import("react").Ref<HTMLDivElement> | undefined;
218
217
  slot?: string | undefined | undefined;
219
218
  style?: import("react").CSSProperties | undefined;
220
219
  title?: string | undefined | undefined;
221
220
  translate?: "yes" | "no" | undefined | undefined;
221
+ hidden?: boolean | undefined | undefined;
222
+ ref?: import("react").Ref<HTMLDivElement> | undefined;
222
223
  defaultChecked?: boolean | undefined | undefined;
223
224
  defaultValue?: string | number | readonly string[] | undefined;
224
225
  suppressContentEditableWarning?: boolean | undefined | undefined;
@@ -227,12 +228,11 @@ export declare const useTreeItem: ({ asyncChildren, children: childrenProp, defa
227
228
  autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
228
229
  autoFocus?: boolean | undefined | undefined;
229
230
  className?: string | undefined | undefined;
230
- contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
231
+ contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
231
232
  contextMenu?: string | undefined | undefined;
232
233
  dir?: string | undefined | undefined;
233
234
  draggable?: (boolean | "true" | "false") | undefined;
234
235
  enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
235
- hidden?: boolean | undefined | undefined;
236
236
  id?: string | undefined | undefined;
237
237
  lang?: string | undefined | undefined;
238
238
  nonce?: string | undefined | undefined;
@@ -46,7 +46,7 @@ export type UseClickableProps<Y extends HTMLElement = HTMLElement, M extends Use
46
46
  */
47
47
  ref?: Ref<Y>;
48
48
  };
49
- 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>, "ref" | "tabIndex" | "onKeyDown" | "onKeyUp" | "onClick" | "onMouseDown" | "onMouseLeave" | "onMouseOver" | "onMouseUp" | "clickOnEnter" | "clickOnSpace" | "disabled" | "disableTouchBehavior" | "focusable" | "focusOnClick"> & {
49
+ 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"> & {
50
50
  ref: (node: any) => void;
51
51
  type: "button";
52
52
  "aria-disabled": boolean | undefined;
@@ -58,7 +58,7 @@ export declare const useClickable: <Y extends HTMLElement = HTMLElement, M exten
58
58
  onMouseLeave: import("react").MouseEventHandler<Y> | undefined;
59
59
  onMouseOver: import("react").MouseEventHandler<Y> | undefined;
60
60
  onMouseUp: import("react").MouseEventHandler<Y> | undefined;
61
- }) | (Omit<UseClickableProps<Y, M>, "ref" | "tabIndex" | "onKeyDown" | "onKeyUp" | "onClick" | "onMouseDown" | "onMouseLeave" | "onMouseOver" | "onMouseUp" | "clickOnEnter" | "clickOnSpace" | "disabled" | "disableTouchBehavior" | "focusable" | "focusOnClick"> & {
61
+ }) | (Omit<UseClickableProps<Y, M>, "disabled" | "ref" | "tabIndex" | "onKeyDown" | "onKeyUp" | "onClick" | "onMouseDown" | "onMouseLeave" | "onMouseOver" | "onMouseUp" | "clickOnEnter" | "clickOnSpace" | "disableTouchBehavior" | "focusable" | "focusOnClick"> & {
62
62
  ref: (node: any) => void;
63
63
  "aria-disabled": "true" | undefined;
64
64
  "data-active": string | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@yamada-ui/react",
3
3
  "type": "module",
4
- "version": "2.3.0-dev-20261026045445",
4
+ "version": "2.3.0-dev-20261026083634",
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",
@@ -126,7 +126,7 @@
126
126
  "@emotion/utils": "^1.4.2",
127
127
  "@floating-ui/react-dom": "^2.1.9",
128
128
  "@tanstack/react-table": "^8.21.3",
129
- "@yamada-ui/utils": "2.1.8-dev-20261026045445",
129
+ "@yamada-ui/utils": "2.1.8-dev-20261026083634",
130
130
  "copy-to-clipboard": "3.3.3",
131
131
  "csstype": "^3.2.3",
132
132
  "dayjs": "^1.11.23",
@@ -156,13 +156,13 @@
156
156
  "@lucide/lab": "^0.7.0",
157
157
  "@mdn/browser-compat-data": "7.3.17",
158
158
  "@testing-library/react": "^16.3.3",
159
- "@testing-library/user-event": "^14.6.7",
159
+ "@testing-library/user-event": "^14.6.8",
160
160
  "@types/babel__traverse": "^7.28.0",
161
161
  "@types/jsdom": "^28.0.1",
162
162
  "@types/yamljs": "^0.2.34",
163
163
  "@vitejs/plugin-react": "^6.1.2",
164
- "@vitest/browser": "^4.1.11",
165
- "@vitest/browser-playwright": "^4.1.11",
164
+ "@vitest/browser": "^4.1.12",
165
+ "@vitest/browser-playwright": "^4.1.12",
166
166
  "@yamada-ui/workspace": "1.0.0",
167
167
  "axe-core": "^4.14.0",
168
168
  "axe-playwright": "^2.2.2",