@yamada-ui/react 2.3.4-dev-20261124053251 → 2.3.4-dev-20261124055019

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 (63) hide show
  1. package/dist/cjs/hooks/use-breakpoint/use-breakpoint-effect.cjs +10 -2
  2. package/dist/cjs/hooks/use-breakpoint/use-breakpoint-effect.cjs.map +1 -1
  3. package/dist/cjs/hooks/use-breakpoint/use-breakpoint-state.cjs.map +1 -1
  4. package/dist/cjs/hooks/use-breakpoint/use-breakpoint-value.cjs +6 -2
  5. package/dist/cjs/hooks/use-breakpoint/use-breakpoint-value.cjs.map +1 -1
  6. package/dist/cjs/hooks/use-breakpoint/use-update-breakpoint-effect.cjs +10 -2
  7. package/dist/cjs/hooks/use-breakpoint/use-update-breakpoint-effect.cjs.map +1 -1
  8. package/dist/esm/hooks/use-breakpoint/use-breakpoint-effect.js +10 -2
  9. package/dist/esm/hooks/use-breakpoint/use-breakpoint-effect.js.map +1 -1
  10. package/dist/esm/hooks/use-breakpoint/use-breakpoint-state.js.map +1 -1
  11. package/dist/esm/hooks/use-breakpoint/use-breakpoint-value.js +6 -2
  12. package/dist/esm/hooks/use-breakpoint/use-breakpoint-value.js.map +1 -1
  13. package/dist/esm/hooks/use-breakpoint/use-update-breakpoint-effect.js +10 -2
  14. package/dist/esm/hooks/use-breakpoint/use-update-breakpoint-effect.js.map +1 -1
  15. package/dist/types/components/accordion/accordion.style.d.ts +1 -1
  16. package/dist/types/components/alert/alert.style.d.ts +1 -1
  17. package/dist/types/components/autocomplete/autocomplete.style.d.ts +1 -1
  18. package/dist/types/components/breadcrumb/breadcrumb.style.d.ts +1 -1
  19. package/dist/types/components/bubble/bubble.style.d.ts +1 -1
  20. package/dist/types/components/calendar/calendar.style.d.ts +2 -2
  21. package/dist/types/components/carousel/carousel.style.d.ts +2 -2
  22. package/dist/types/components/checkbox-card/checkbox-card.d.ts +3 -3
  23. package/dist/types/components/checkbox-card/checkbox-card.style.d.ts +1 -1
  24. package/dist/types/components/color-picker/color-picker.style.d.ts +1 -1
  25. package/dist/types/components/color-selector/color-selector.style.d.ts +2 -2
  26. package/dist/types/components/data-list/data-list.style.d.ts +1 -1
  27. package/dist/types/components/date-picker/date-picker.style.d.ts +1 -1
  28. package/dist/types/components/drawer/drawer.style.d.ts +2 -2
  29. package/dist/types/components/dropzone/dropzone.d.ts +1 -1
  30. package/dist/types/components/dropzone/dropzone.style.d.ts +1 -1
  31. package/dist/types/components/empty-state/empty-state.style.d.ts +2 -2
  32. package/dist/types/components/file-input/file-input.style.d.ts +1 -1
  33. package/dist/types/components/flip/flip.d.ts +1 -1
  34. package/dist/types/components/flip/flip.style.d.ts +1 -1
  35. package/dist/types/components/form/form.style.d.ts +1 -1
  36. package/dist/types/components/list/list.style.d.ts +2 -2
  37. package/dist/types/components/marquee/marquee.style.d.ts +1 -1
  38. package/dist/types/components/menu/menu.style.d.ts +2 -2
  39. package/dist/types/components/modal/modal.style.d.ts +2 -2
  40. package/dist/types/components/native-accordion/native-accordion.style.d.ts +2 -2
  41. package/dist/types/components/native-select/native-select.style.d.ts +1 -1
  42. package/dist/types/components/notice/notice.style.d.ts +1 -1
  43. package/dist/types/components/number-input/number-input.style.d.ts +1 -1
  44. package/dist/types/components/pagination/pagination.style.d.ts +1 -1
  45. package/dist/types/components/password-input/password-input.style.d.ts +1 -1
  46. package/dist/types/components/pin-input/pin-input.style.d.ts +1 -1
  47. package/dist/types/components/radio-card/radio-card.d.ts +3 -3
  48. package/dist/types/components/radio-card/radio-card.style.d.ts +1 -1
  49. package/dist/types/components/rating/rating.style.d.ts +2 -2
  50. package/dist/types/components/reorder/reorder.style.d.ts +1 -1
  51. package/dist/types/components/resizable/resizable.style.d.ts +2 -2
  52. package/dist/types/components/segmented-control/segmented-control.style.d.ts +2 -2
  53. package/dist/types/components/select/select.style.d.ts +1 -1
  54. package/dist/types/components/steps/steps.style.d.ts +1 -1
  55. package/dist/types/components/tag/tag.style.d.ts +1 -1
  56. package/dist/types/components/timeline/timeline.d.ts +1 -1
  57. package/dist/types/components/timeline/timeline.style.d.ts +1 -1
  58. package/dist/types/components/tree/tree.style.d.ts +1 -1
  59. package/dist/types/hooks/use-breakpoint/use-breakpoint-effect.d.ts +2 -2
  60. package/dist/types/hooks/use-breakpoint/use-breakpoint-state.d.ts +2 -1
  61. package/dist/types/hooks/use-breakpoint/use-breakpoint-value.d.ts +2 -2
  62. package/dist/types/hooks/use-breakpoint/use-update-breakpoint-effect.d.ts +2 -2
  63. package/package.json +1 -1
@@ -1,4 +1,6 @@
1
1
  "use client";
2
+ require("../../core/constant.cjs");
3
+ const require_system_provider = require("../../core/system/system-provider.cjs");
2
4
  const require_use_breakpoint = require("./use-breakpoint.cjs");
3
5
  let react = require("react");
4
6
  // src/hooks/use-breakpoint/use-breakpoint-effect.ts
@@ -8,10 +10,16 @@ let react = require("react");
8
10
  * @see https://yamada-ui.com/docs/hooks/use-breakpoint-effect
9
11
  */
10
12
  const useBreakpointEffect = (callback, deps) => {
13
+ const { config } = require_system_provider.useSystem();
11
14
  const breakpoint = require_use_breakpoint.useBreakpoint();
15
+ const direction = config.breakpoint?.direction ?? "down";
12
16
  (0, react.useEffect)(() => {
13
- callback(breakpoint);
14
- }, [breakpoint, ...deps]);
17
+ callback(breakpoint, direction);
18
+ }, [
19
+ breakpoint,
20
+ direction,
21
+ ...deps
22
+ ]);
15
23
  };
16
24
  exports.useBreakpointEffect = useBreakpointEffect;
17
25
 
@@ -1 +1 @@
1
- {"version":3,"file":"use-breakpoint-effect.cjs","names":["useBreakpoint"],"sources":["../../../../src/hooks/use-breakpoint/use-breakpoint-effect.ts"],"sourcesContent":["\"use client\"\n\nimport type { DependencyList } from \"react\"\nimport type { Breakpoint } from \"../../core\"\nimport { useEffect } from \"react\"\nimport { useBreakpoint } from \"./use-breakpoint\"\n\n/**\n * `useBreakpointEffect` is a custom hook that executes a specific callback function when the breakpoint changes.\n *\n * @see https://yamada-ui.com/docs/hooks/use-breakpoint-effect\n */\nexport const useBreakpointEffect = (\n callback: (breakpoint: Breakpoint) => void,\n deps: DependencyList,\n) => {\n const breakpoint = useBreakpoint()\n\n useEffect(() => {\n callback(breakpoint)\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [breakpoint, ...deps])\n}\n"],"mappings":";;;;;;;;;AAYA,MAAa,uBACX,UACA,SACG;CACH,MAAM,aAAaA,uBAAAA,cAAc;CAEjC,CAAA,GAAA,MAAA,UAAA,OAAgB;EACd,SAAS,UAAU;CAErB,GAAG,CAAC,YAAY,GAAG,IAAI,CAAC;AAC1B"}
1
+ {"version":3,"file":"use-breakpoint-effect.cjs","names":["useSystem","useBreakpoint"],"sources":["../../../../src/hooks/use-breakpoint/use-breakpoint-effect.ts"],"sourcesContent":["\"use client\"\n\nimport type { DependencyList } from \"react\"\nimport type { Breakpoint, BreakpointDirection } from \"../../core\"\nimport { useEffect } from \"react\"\nimport { DEFAULT_BREAKPOINT_DIRECTION, useSystem } from \"../../core\"\nimport { useBreakpoint } from \"./use-breakpoint\"\n\n/**\n * `useBreakpointEffect` is a custom hook that executes a specific callback function when the breakpoint changes.\n *\n * @see https://yamada-ui.com/docs/hooks/use-breakpoint-effect\n */\nexport const useBreakpointEffect = (\n callback: (breakpoint: Breakpoint, direction: BreakpointDirection) => void,\n deps: DependencyList,\n) => {\n const { config } = useSystem()\n const breakpoint = useBreakpoint()\n const direction = config.breakpoint?.direction ?? DEFAULT_BREAKPOINT_DIRECTION\n\n useEffect(() => {\n callback(breakpoint, direction)\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [breakpoint, direction, ...deps])\n}\n"],"mappings":";;;;;;;;;;;AAaA,MAAa,uBACX,UACA,SACG;CACH,MAAM,EAAE,WAAWA,wBAAAA,UAAU;CAC7B,MAAM,aAAaC,uBAAAA,cAAc;CACjC,MAAM,YAAY,OAAO,YAAY,aAAA;CAErC,CAAA,GAAA,MAAA,UAAA,OAAgB;EACd,SAAS,YAAY,SAAS;CAEhC,GAAG;EAAC;EAAY;EAAW,GAAG;CAAI,CAAC;AACrC"}
@@ -1 +1 @@
1
- {"version":3,"file":"use-breakpoint-state.cjs","names":["useBreakpointValue","useState"],"sources":["../../../../src/hooks/use-breakpoint/use-breakpoint-state.ts"],"sourcesContent":["\"use client\"\n\nimport type { ResponsiveObject } from \"../../core\"\nimport { useState } from \"react\"\nimport { useBreakpointValue } from \"./use-breakpoint-value\"\n\n/**\n * `useBreakpointState` is a custom hook that takes a responsive object as an initial state and returns a state corresponding to the current breakpoint.\n *\n * @see https://yamada-ui.com/docs/hooks/use-breakpoint-state\n */\nexport const useBreakpointState = <Y>(\n initialState: ResponsiveObject<Y, false>,\n) => {\n const state = useBreakpointValue(initialState)\n\n return useState(state)\n}\n"],"mappings":";;;;;;;;;AAWA,MAAa,sBACX,iBACG;CACH,MAAM,QAAQA,6BAAAA,mBAAmB,YAAY;CAE7C,QAAA,GAAOC,MAAAA,SAAAA,CAAS,KAAK;AACvB"}
1
+ {"version":3,"file":"use-breakpoint-state.cjs","names":["useBreakpointValue","useState"],"sources":["../../../../src/hooks/use-breakpoint/use-breakpoint-state.ts"],"sourcesContent":["\"use client\"\n\nimport type { BreakpointDirection, ResponsiveObject } from \"../../core\"\nimport { useState } from \"react\"\nimport { useBreakpointValue } from \"./use-breakpoint-value\"\n\n/**\n * `useBreakpointState` is a custom hook that takes a responsive object as an initial state and returns a state corresponding to the current breakpoint.\n *\n * @see https://yamada-ui.com/docs/hooks/use-breakpoint-state\n */\nexport const useBreakpointState = <Y>(\n initialState:\n | ((direction: BreakpointDirection) => ResponsiveObject<Y, false>)\n | ResponsiveObject<Y, false>,\n) => {\n const state = useBreakpointValue(initialState)\n\n return useState(state)\n}\n"],"mappings":";;;;;;;;;AAWA,MAAa,sBACX,iBAGG;CACH,MAAM,QAAQA,6BAAAA,mBAAmB,YAAY;CAE7C,QAAA,GAAOC,MAAAA,SAAAA,CAAS,KAAK;AACvB"}
@@ -1,6 +1,8 @@
1
+ require("../../core/constant.cjs");
1
2
  const require_system_provider = require("../../core/system/system-provider.cjs");
2
3
  const require_use_breakpoint = require("./use-breakpoint.cjs");
3
4
  let react = require("react");
5
+ let _yamada_ui_utils = require("@yamada-ui/utils");
4
6
  // src/hooks/use-breakpoint/use-breakpoint-value.ts
5
7
  /**
6
8
  * `useBreakpointValue` is a custom hook that returns the value of the current breakpoint from the provided object.
@@ -11,10 +13,12 @@ let react = require("react");
11
13
  const useBreakpointValue = (values) => {
12
14
  const system = require_system_provider.useSystem();
13
15
  const breakpoint = require_use_breakpoint.useBreakpoint();
14
- return (0, react.useMemo)(() => getBreakpointValue(values)(system, breakpoint), [
16
+ const direction = system.config.breakpoint?.direction ?? "down";
17
+ return (0, react.useMemo)(() => getBreakpointValue((0, _yamada_ui_utils.runIfFn)(values, direction))(system, breakpoint), [
15
18
  values,
16
19
  system,
17
- breakpoint
20
+ breakpoint,
21
+ direction
18
22
  ]);
19
23
  };
20
24
  const getBreakpointValue = (values = {}) => (system, breakpoint) => {
@@ -1 +1 @@
1
- {"version":3,"file":"use-breakpoint-value.cjs","names":["useSystem","useBreakpoint","useMemo"],"sources":["../../../../src/hooks/use-breakpoint/use-breakpoint-value.ts"],"sourcesContent":["import type { Breakpoint, ResponsiveObject, System } from \"../../core\"\nimport { useMemo } from \"react\"\nimport { useSystem } from \"../../core\"\nimport { useBreakpoint } from \"./use-breakpoint\"\n\n/**\n * `useBreakpointValue` is a custom hook that returns the value of the current breakpoint from the provided object.\n * This hook monitors changes in the window size and returns the appropriate value.\n *\n * @see https://yamada-ui.com/docs/hooks/use-breakpoint-value\n */\nexport const useBreakpointValue = <Y>(\n values: ResponsiveObject<Y, false>,\n): Y => {\n const system = useSystem()\n const breakpoint = useBreakpoint()\n\n return useMemo(\n () => getBreakpointValue<Y>(values)(system, breakpoint),\n [values, system, breakpoint],\n )\n}\n\nexport const getBreakpointValue =\n <Y>(values: ResponsiveObject<Y, false> = {}) =>\n (system: System, breakpoint: Breakpoint): Y => {\n const breakpoints = system.breakpoints.keys\n\n if (!breakpoints.length)\n console.warn(\"getBreakpointValue: `breakpoints` is undefined.\")\n\n const currentIndex = breakpoints.indexOf(breakpoint)\n\n for (let i = currentIndex; 0 < i; i--) {\n const nextBreakpoint = breakpoints[i]\n\n if (nextBreakpoint && values.hasOwnProperty(nextBreakpoint))\n return values[nextBreakpoint] as Y\n }\n\n return values.base as Y\n }\n"],"mappings":";;;;;;;;;;AAWA,MAAa,sBACX,WACM;CACN,MAAM,SAASA,wBAAAA,UAAU;CACzB,MAAM,aAAaC,uBAAAA,cAAc;CAEjC,QAAA,GAAOC,MAAAA,QAAAA,OACC,mBAAsB,MAAM,CAAC,CAAC,QAAQ,UAAU,GACtD;EAAC;EAAQ;EAAQ;CAAU,CAC7B;AACF;AAEA,MAAa,sBACP,SAAqC,CAAC,OACzC,QAAgB,eAA8B;CAC7C,MAAM,cAAc,OAAO,YAAY;CAEvC,IAAI,CAAC,YAAY,QACf,QAAQ,KAAK,iDAAiD;CAEhE,MAAM,eAAe,YAAY,QAAQ,UAAU;CAEnD,KAAK,IAAI,IAAI,cAAc,IAAI,GAAG,KAAK;EACrC,MAAM,iBAAiB,YAAY;EAEnC,IAAI,kBAAkB,OAAO,eAAe,cAAc,GACxD,OAAO,OAAO;CAClB;CAEA,OAAO,OAAO;AAChB"}
1
+ {"version":3,"file":"use-breakpoint-value.cjs","names":["useSystem","useBreakpoint","useMemo","runIfFn"],"sources":["../../../../src/hooks/use-breakpoint/use-breakpoint-value.ts"],"sourcesContent":["import type {\n Breakpoint,\n BreakpointDirection,\n ResponsiveObject,\n System,\n} from \"../../core\"\nimport { runIfFn } from \"@yamada-ui/utils\"\nimport { useMemo } from \"react\"\nimport { DEFAULT_BREAKPOINT_DIRECTION, useSystem } from \"../../core\"\nimport { useBreakpoint } from \"./use-breakpoint\"\n\n/**\n * `useBreakpointValue` is a custom hook that returns the value of the current breakpoint from the provided object.\n * This hook monitors changes in the window size and returns the appropriate value.\n *\n * @see https://yamada-ui.com/docs/hooks/use-breakpoint-value\n */\nexport const useBreakpointValue = <Y>(\n values:\n | ((direction: BreakpointDirection) => ResponsiveObject<Y, false>)\n | ResponsiveObject<Y, false>,\n): Y => {\n const system = useSystem()\n const breakpoint = useBreakpoint()\n const direction =\n system.config.breakpoint?.direction ?? DEFAULT_BREAKPOINT_DIRECTION\n\n return useMemo(\n () => getBreakpointValue<Y>(runIfFn(values, direction))(system, breakpoint),\n [values, system, breakpoint, direction],\n )\n}\n\nexport const getBreakpointValue =\n <Y>(values: ResponsiveObject<Y, false> = {}) =>\n (system: System, breakpoint: Breakpoint): Y => {\n const breakpoints = system.breakpoints.keys\n\n if (!breakpoints.length)\n console.warn(\"getBreakpointValue: `breakpoints` is undefined.\")\n\n const currentIndex = breakpoints.indexOf(breakpoint)\n\n for (let i = currentIndex; 0 < i; i--) {\n const nextBreakpoint = breakpoints[i]\n\n if (nextBreakpoint && values.hasOwnProperty(nextBreakpoint))\n return values[nextBreakpoint] as Y\n }\n\n return values.base as Y\n }\n"],"mappings":";;;;;;;;;;;;AAiBA,MAAa,sBACX,WAGM;CACN,MAAM,SAASA,wBAAAA,UAAU;CACzB,MAAM,aAAaC,uBAAAA,cAAc;CACjC,MAAM,YACJ,OAAO,OAAO,YAAY,aAAA;CAE5B,QAAA,GAAOC,MAAAA,QAAAA,OACC,oBAAA,GAAsBC,iBAAAA,QAAAA,CAAQ,QAAQ,SAAS,CAAC,CAAC,CAAC,QAAQ,UAAU,GAC1E;EAAC;EAAQ;EAAQ;EAAY;CAAS,CACxC;AACF;AAEA,MAAa,sBACP,SAAqC,CAAC,OACzC,QAAgB,eAA8B;CAC7C,MAAM,cAAc,OAAO,YAAY;CAEvC,IAAI,CAAC,YAAY,QACf,QAAQ,KAAK,iDAAiD;CAEhE,MAAM,eAAe,YAAY,QAAQ,UAAU;CAEnD,KAAK,IAAI,IAAI,cAAc,IAAI,GAAG,KAAK;EACrC,MAAM,iBAAiB,YAAY;EAEnC,IAAI,kBAAkB,OAAO,eAAe,cAAc,GACxD,OAAO,OAAO;CAClB;CAEA,OAAO,OAAO;AAChB"}
@@ -1,3 +1,5 @@
1
+ require("../../core/constant.cjs");
2
+ const require_system_provider = require("../../core/system/system-provider.cjs");
1
3
  const require_effect = require("../../utils/effect.cjs");
2
4
  const require_use_breakpoint = require("./use-breakpoint.cjs");
3
5
  // src/hooks/use-breakpoint/use-update-breakpoint-effect.ts
@@ -7,10 +9,16 @@ const require_use_breakpoint = require("./use-breakpoint.cjs");
7
9
  * @see https://yamada-ui.com/docs/hooks/use-update-breakpoint-effect
8
10
  */
9
11
  const useUpdateBreakpointEffect = (callback, deps) => {
12
+ const { config } = require_system_provider.useSystem();
10
13
  const breakpoint = require_use_breakpoint.useBreakpoint();
14
+ const direction = config.breakpoint?.direction ?? "down";
11
15
  require_effect.useUpdateEffect(() => {
12
- callback(breakpoint);
13
- }, [breakpoint, ...deps]);
16
+ callback(breakpoint, direction);
17
+ }, [
18
+ breakpoint,
19
+ direction,
20
+ ...deps
21
+ ]);
14
22
  };
15
23
  exports.useUpdateBreakpointEffect = useUpdateBreakpointEffect;
16
24
 
@@ -1 +1 @@
1
- {"version":3,"file":"use-update-breakpoint-effect.cjs","names":["useBreakpoint"],"sources":["../../../../src/hooks/use-breakpoint/use-update-breakpoint-effect.ts"],"sourcesContent":["import type { DependencyList } from \"react\"\nimport type { Breakpoint } from \"../../core\"\nimport { useUpdateEffect } from \"../../utils\"\nimport { useBreakpoint } from \"./use-breakpoint\"\n\n/**\n * `useUpdateBreakpointEffect` is a custom hook that skips the side effect on the initial render and executes a specific callback function when the breakpoint changes.\n *\n * @see https://yamada-ui.com/docs/hooks/use-update-breakpoint-effect\n */\nexport const useUpdateBreakpointEffect = (\n callback: (breakpoint: Breakpoint) => void,\n deps: DependencyList,\n) => {\n const breakpoint = useBreakpoint()\n\n useUpdateEffect(() => {\n callback(breakpoint)\n }, [breakpoint, ...deps])\n}\n"],"mappings":";;;;;;;;AAUA,MAAa,6BACX,UACA,SACG;CACH,MAAM,aAAaA,uBAAAA,cAAc;CAEjC,eAAA,sBAAsB;EACpB,SAAS,UAAU;CACrB,GAAG,CAAC,YAAY,GAAG,IAAI,CAAC;AAC1B"}
1
+ {"version":3,"file":"use-update-breakpoint-effect.cjs","names":["useSystem","useBreakpoint"],"sources":["../../../../src/hooks/use-breakpoint/use-update-breakpoint-effect.ts"],"sourcesContent":["import type { DependencyList } from \"react\"\nimport type { Breakpoint, BreakpointDirection } from \"../../core\"\nimport { DEFAULT_BREAKPOINT_DIRECTION, useSystem } from \"../../core\"\nimport { useUpdateEffect } from \"../../utils\"\nimport { useBreakpoint } from \"./use-breakpoint\"\n\n/**\n * `useUpdateBreakpointEffect` is a custom hook that skips the side effect on the initial render and executes a specific callback function when the breakpoint changes.\n *\n * @see https://yamada-ui.com/docs/hooks/use-update-breakpoint-effect\n */\nexport const useUpdateBreakpointEffect = (\n callback: (breakpoint: Breakpoint, direction: BreakpointDirection) => void,\n deps: DependencyList,\n) => {\n const { config } = useSystem()\n const breakpoint = useBreakpoint()\n const direction = config.breakpoint?.direction ?? DEFAULT_BREAKPOINT_DIRECTION\n\n useUpdateEffect(() => {\n callback(breakpoint, direction)\n }, [breakpoint, direction, ...deps])\n}\n"],"mappings":";;;;;;;;;;AAWA,MAAa,6BACX,UACA,SACG;CACH,MAAM,EAAE,WAAWA,wBAAAA,UAAU;CAC7B,MAAM,aAAaC,uBAAAA,cAAc;CACjC,MAAM,YAAY,OAAO,YAAY,aAAA;CAErC,eAAA,sBAAsB;EACpB,SAAS,YAAY,SAAS;CAChC,GAAG;EAAC;EAAY;EAAW,GAAG;CAAI,CAAC;AACrC"}
@@ -1,4 +1,6 @@
1
1
  "use client";
2
+ import "../../core/constant.js";
3
+ import { useSystem } from "../../core/system/system-provider.js";
2
4
  import { useBreakpoint } from "./use-breakpoint.js";
3
5
  import { useEffect } from "react";
4
6
  // src/hooks/use-breakpoint/use-breakpoint-effect.ts
@@ -8,10 +10,16 @@ import { useEffect } from "react";
8
10
  * @see https://yamada-ui.com/docs/hooks/use-breakpoint-effect
9
11
  */
10
12
  const useBreakpointEffect = (callback, deps) => {
13
+ const { config } = useSystem();
11
14
  const breakpoint = useBreakpoint();
15
+ const direction = config.breakpoint?.direction ?? "down";
12
16
  useEffect(() => {
13
- callback(breakpoint);
14
- }, [breakpoint, ...deps]);
17
+ callback(breakpoint, direction);
18
+ }, [
19
+ breakpoint,
20
+ direction,
21
+ ...deps
22
+ ]);
15
23
  };
16
24
  export { useBreakpointEffect };
17
25
 
@@ -1 +1 @@
1
- {"version":3,"file":"use-breakpoint-effect.js","names":[],"sources":["../../../../src/hooks/use-breakpoint/use-breakpoint-effect.ts"],"sourcesContent":["\"use client\"\n\nimport type { DependencyList } from \"react\"\nimport type { Breakpoint } from \"../../core\"\nimport { useEffect } from \"react\"\nimport { useBreakpoint } from \"./use-breakpoint\"\n\n/**\n * `useBreakpointEffect` is a custom hook that executes a specific callback function when the breakpoint changes.\n *\n * @see https://yamada-ui.com/docs/hooks/use-breakpoint-effect\n */\nexport const useBreakpointEffect = (\n callback: (breakpoint: Breakpoint) => void,\n deps: DependencyList,\n) => {\n const breakpoint = useBreakpoint()\n\n useEffect(() => {\n callback(breakpoint)\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [breakpoint, ...deps])\n}\n"],"mappings":";;;;;;;;;AAYA,MAAa,uBACX,UACA,SACG;CACH,MAAM,aAAa,cAAc;CAEjC,gBAAgB;EACd,SAAS,UAAU;CAErB,GAAG,CAAC,YAAY,GAAG,IAAI,CAAC;AAC1B"}
1
+ {"version":3,"file":"use-breakpoint-effect.js","names":[],"sources":["../../../../src/hooks/use-breakpoint/use-breakpoint-effect.ts"],"sourcesContent":["\"use client\"\n\nimport type { DependencyList } from \"react\"\nimport type { Breakpoint, BreakpointDirection } from \"../../core\"\nimport { useEffect } from \"react\"\nimport { DEFAULT_BREAKPOINT_DIRECTION, useSystem } from \"../../core\"\nimport { useBreakpoint } from \"./use-breakpoint\"\n\n/**\n * `useBreakpointEffect` is a custom hook that executes a specific callback function when the breakpoint changes.\n *\n * @see https://yamada-ui.com/docs/hooks/use-breakpoint-effect\n */\nexport const useBreakpointEffect = (\n callback: (breakpoint: Breakpoint, direction: BreakpointDirection) => void,\n deps: DependencyList,\n) => {\n const { config } = useSystem()\n const breakpoint = useBreakpoint()\n const direction = config.breakpoint?.direction ?? DEFAULT_BREAKPOINT_DIRECTION\n\n useEffect(() => {\n callback(breakpoint, direction)\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [breakpoint, direction, ...deps])\n}\n"],"mappings":";;;;;;;;;;;AAaA,MAAa,uBACX,UACA,SACG;CACH,MAAM,EAAE,WAAW,UAAU;CAC7B,MAAM,aAAa,cAAc;CACjC,MAAM,YAAY,OAAO,YAAY,aAAA;CAErC,gBAAgB;EACd,SAAS,YAAY,SAAS;CAEhC,GAAG;EAAC;EAAY;EAAW,GAAG;CAAI,CAAC;AACrC"}
@@ -1 +1 @@
1
- {"version":3,"file":"use-breakpoint-state.js","names":[],"sources":["../../../../src/hooks/use-breakpoint/use-breakpoint-state.ts"],"sourcesContent":["\"use client\"\n\nimport type { ResponsiveObject } from \"../../core\"\nimport { useState } from \"react\"\nimport { useBreakpointValue } from \"./use-breakpoint-value\"\n\n/**\n * `useBreakpointState` is a custom hook that takes a responsive object as an initial state and returns a state corresponding to the current breakpoint.\n *\n * @see https://yamada-ui.com/docs/hooks/use-breakpoint-state\n */\nexport const useBreakpointState = <Y>(\n initialState: ResponsiveObject<Y, false>,\n) => {\n const state = useBreakpointValue(initialState)\n\n return useState(state)\n}\n"],"mappings":";;;;;;;;;AAWA,MAAa,sBACX,iBACG;CACH,MAAM,QAAQ,mBAAmB,YAAY;CAE7C,OAAO,SAAS,KAAK;AACvB"}
1
+ {"version":3,"file":"use-breakpoint-state.js","names":[],"sources":["../../../../src/hooks/use-breakpoint/use-breakpoint-state.ts"],"sourcesContent":["\"use client\"\n\nimport type { BreakpointDirection, ResponsiveObject } from \"../../core\"\nimport { useState } from \"react\"\nimport { useBreakpointValue } from \"./use-breakpoint-value\"\n\n/**\n * `useBreakpointState` is a custom hook that takes a responsive object as an initial state and returns a state corresponding to the current breakpoint.\n *\n * @see https://yamada-ui.com/docs/hooks/use-breakpoint-state\n */\nexport const useBreakpointState = <Y>(\n initialState:\n | ((direction: BreakpointDirection) => ResponsiveObject<Y, false>)\n | ResponsiveObject<Y, false>,\n) => {\n const state = useBreakpointValue(initialState)\n\n return useState(state)\n}\n"],"mappings":";;;;;;;;;AAWA,MAAa,sBACX,iBAGG;CACH,MAAM,QAAQ,mBAAmB,YAAY;CAE7C,OAAO,SAAS,KAAK;AACvB"}
@@ -1,6 +1,8 @@
1
+ import "../../core/constant.js";
1
2
  import { useSystem } from "../../core/system/system-provider.js";
2
3
  import { useBreakpoint } from "./use-breakpoint.js";
3
4
  import { useMemo } from "react";
5
+ import { runIfFn } from "@yamada-ui/utils";
4
6
  // src/hooks/use-breakpoint/use-breakpoint-value.ts
5
7
  /**
6
8
  * `useBreakpointValue` is a custom hook that returns the value of the current breakpoint from the provided object.
@@ -11,10 +13,12 @@ import { useMemo } from "react";
11
13
  const useBreakpointValue = (values) => {
12
14
  const system = useSystem();
13
15
  const breakpoint = useBreakpoint();
14
- return useMemo(() => getBreakpointValue(values)(system, breakpoint), [
16
+ const direction = system.config.breakpoint?.direction ?? "down";
17
+ return useMemo(() => getBreakpointValue(runIfFn(values, direction))(system, breakpoint), [
15
18
  values,
16
19
  system,
17
- breakpoint
20
+ breakpoint,
21
+ direction
18
22
  ]);
19
23
  };
20
24
  const getBreakpointValue = (values = {}) => (system, breakpoint) => {
@@ -1 +1 @@
1
- {"version":3,"file":"use-breakpoint-value.js","names":[],"sources":["../../../../src/hooks/use-breakpoint/use-breakpoint-value.ts"],"sourcesContent":["import type { Breakpoint, ResponsiveObject, System } from \"../../core\"\nimport { useMemo } from \"react\"\nimport { useSystem } from \"../../core\"\nimport { useBreakpoint } from \"./use-breakpoint\"\n\n/**\n * `useBreakpointValue` is a custom hook that returns the value of the current breakpoint from the provided object.\n * This hook monitors changes in the window size and returns the appropriate value.\n *\n * @see https://yamada-ui.com/docs/hooks/use-breakpoint-value\n */\nexport const useBreakpointValue = <Y>(\n values: ResponsiveObject<Y, false>,\n): Y => {\n const system = useSystem()\n const breakpoint = useBreakpoint()\n\n return useMemo(\n () => getBreakpointValue<Y>(values)(system, breakpoint),\n [values, system, breakpoint],\n )\n}\n\nexport const getBreakpointValue =\n <Y>(values: ResponsiveObject<Y, false> = {}) =>\n (system: System, breakpoint: Breakpoint): Y => {\n const breakpoints = system.breakpoints.keys\n\n if (!breakpoints.length)\n console.warn(\"getBreakpointValue: `breakpoints` is undefined.\")\n\n const currentIndex = breakpoints.indexOf(breakpoint)\n\n for (let i = currentIndex; 0 < i; i--) {\n const nextBreakpoint = breakpoints[i]\n\n if (nextBreakpoint && values.hasOwnProperty(nextBreakpoint))\n return values[nextBreakpoint] as Y\n }\n\n return values.base as Y\n }\n"],"mappings":";;;;;;;;;;AAWA,MAAa,sBACX,WACM;CACN,MAAM,SAAS,UAAU;CACzB,MAAM,aAAa,cAAc;CAEjC,OAAO,cACC,mBAAsB,MAAM,CAAC,CAAC,QAAQ,UAAU,GACtD;EAAC;EAAQ;EAAQ;CAAU,CAC7B;AACF;AAEA,MAAa,sBACP,SAAqC,CAAC,OACzC,QAAgB,eAA8B;CAC7C,MAAM,cAAc,OAAO,YAAY;CAEvC,IAAI,CAAC,YAAY,QACf,QAAQ,KAAK,iDAAiD;CAEhE,MAAM,eAAe,YAAY,QAAQ,UAAU;CAEnD,KAAK,IAAI,IAAI,cAAc,IAAI,GAAG,KAAK;EACrC,MAAM,iBAAiB,YAAY;EAEnC,IAAI,kBAAkB,OAAO,eAAe,cAAc,GACxD,OAAO,OAAO;CAClB;CAEA,OAAO,OAAO;AAChB"}
1
+ {"version":3,"file":"use-breakpoint-value.js","names":[],"sources":["../../../../src/hooks/use-breakpoint/use-breakpoint-value.ts"],"sourcesContent":["import type {\n Breakpoint,\n BreakpointDirection,\n ResponsiveObject,\n System,\n} from \"../../core\"\nimport { runIfFn } from \"@yamada-ui/utils\"\nimport { useMemo } from \"react\"\nimport { DEFAULT_BREAKPOINT_DIRECTION, useSystem } from \"../../core\"\nimport { useBreakpoint } from \"./use-breakpoint\"\n\n/**\n * `useBreakpointValue` is a custom hook that returns the value of the current breakpoint from the provided object.\n * This hook monitors changes in the window size and returns the appropriate value.\n *\n * @see https://yamada-ui.com/docs/hooks/use-breakpoint-value\n */\nexport const useBreakpointValue = <Y>(\n values:\n | ((direction: BreakpointDirection) => ResponsiveObject<Y, false>)\n | ResponsiveObject<Y, false>,\n): Y => {\n const system = useSystem()\n const breakpoint = useBreakpoint()\n const direction =\n system.config.breakpoint?.direction ?? DEFAULT_BREAKPOINT_DIRECTION\n\n return useMemo(\n () => getBreakpointValue<Y>(runIfFn(values, direction))(system, breakpoint),\n [values, system, breakpoint, direction],\n )\n}\n\nexport const getBreakpointValue =\n <Y>(values: ResponsiveObject<Y, false> = {}) =>\n (system: System, breakpoint: Breakpoint): Y => {\n const breakpoints = system.breakpoints.keys\n\n if (!breakpoints.length)\n console.warn(\"getBreakpointValue: `breakpoints` is undefined.\")\n\n const currentIndex = breakpoints.indexOf(breakpoint)\n\n for (let i = currentIndex; 0 < i; i--) {\n const nextBreakpoint = breakpoints[i]\n\n if (nextBreakpoint && values.hasOwnProperty(nextBreakpoint))\n return values[nextBreakpoint] as Y\n }\n\n return values.base as Y\n }\n"],"mappings":";;;;;;;;;;;;AAiBA,MAAa,sBACX,WAGM;CACN,MAAM,SAAS,UAAU;CACzB,MAAM,aAAa,cAAc;CACjC,MAAM,YACJ,OAAO,OAAO,YAAY,aAAA;CAE5B,OAAO,cACC,mBAAsB,QAAQ,QAAQ,SAAS,CAAC,CAAC,CAAC,QAAQ,UAAU,GAC1E;EAAC;EAAQ;EAAQ;EAAY;CAAS,CACxC;AACF;AAEA,MAAa,sBACP,SAAqC,CAAC,OACzC,QAAgB,eAA8B;CAC7C,MAAM,cAAc,OAAO,YAAY;CAEvC,IAAI,CAAC,YAAY,QACf,QAAQ,KAAK,iDAAiD;CAEhE,MAAM,eAAe,YAAY,QAAQ,UAAU;CAEnD,KAAK,IAAI,IAAI,cAAc,IAAI,GAAG,KAAK;EACrC,MAAM,iBAAiB,YAAY;EAEnC,IAAI,kBAAkB,OAAO,eAAe,cAAc,GACxD,OAAO,OAAO;CAClB;CAEA,OAAO,OAAO;AAChB"}
@@ -1,3 +1,5 @@
1
+ import "../../core/constant.js";
2
+ import { useSystem } from "../../core/system/system-provider.js";
1
3
  import { useUpdateEffect } from "../../utils/effect.js";
2
4
  import { useBreakpoint } from "./use-breakpoint.js";
3
5
  // src/hooks/use-breakpoint/use-update-breakpoint-effect.ts
@@ -7,10 +9,16 @@ import { useBreakpoint } from "./use-breakpoint.js";
7
9
  * @see https://yamada-ui.com/docs/hooks/use-update-breakpoint-effect
8
10
  */
9
11
  const useUpdateBreakpointEffect = (callback, deps) => {
12
+ const { config } = useSystem();
10
13
  const breakpoint = useBreakpoint();
14
+ const direction = config.breakpoint?.direction ?? "down";
11
15
  useUpdateEffect(() => {
12
- callback(breakpoint);
13
- }, [breakpoint, ...deps]);
16
+ callback(breakpoint, direction);
17
+ }, [
18
+ breakpoint,
19
+ direction,
20
+ ...deps
21
+ ]);
14
22
  };
15
23
  export { useUpdateBreakpointEffect };
16
24
 
@@ -1 +1 @@
1
- {"version":3,"file":"use-update-breakpoint-effect.js","names":[],"sources":["../../../../src/hooks/use-breakpoint/use-update-breakpoint-effect.ts"],"sourcesContent":["import type { DependencyList } from \"react\"\nimport type { Breakpoint } from \"../../core\"\nimport { useUpdateEffect } from \"../../utils\"\nimport { useBreakpoint } from \"./use-breakpoint\"\n\n/**\n * `useUpdateBreakpointEffect` is a custom hook that skips the side effect on the initial render and executes a specific callback function when the breakpoint changes.\n *\n * @see https://yamada-ui.com/docs/hooks/use-update-breakpoint-effect\n */\nexport const useUpdateBreakpointEffect = (\n callback: (breakpoint: Breakpoint) => void,\n deps: DependencyList,\n) => {\n const breakpoint = useBreakpoint()\n\n useUpdateEffect(() => {\n callback(breakpoint)\n }, [breakpoint, ...deps])\n}\n"],"mappings":";;;;;;;;AAUA,MAAa,6BACX,UACA,SACG;CACH,MAAM,aAAa,cAAc;CAEjC,sBAAsB;EACpB,SAAS,UAAU;CACrB,GAAG,CAAC,YAAY,GAAG,IAAI,CAAC;AAC1B"}
1
+ {"version":3,"file":"use-update-breakpoint-effect.js","names":[],"sources":["../../../../src/hooks/use-breakpoint/use-update-breakpoint-effect.ts"],"sourcesContent":["import type { DependencyList } from \"react\"\nimport type { Breakpoint, BreakpointDirection } from \"../../core\"\nimport { DEFAULT_BREAKPOINT_DIRECTION, useSystem } from \"../../core\"\nimport { useUpdateEffect } from \"../../utils\"\nimport { useBreakpoint } from \"./use-breakpoint\"\n\n/**\n * `useUpdateBreakpointEffect` is a custom hook that skips the side effect on the initial render and executes a specific callback function when the breakpoint changes.\n *\n * @see https://yamada-ui.com/docs/hooks/use-update-breakpoint-effect\n */\nexport const useUpdateBreakpointEffect = (\n callback: (breakpoint: Breakpoint, direction: BreakpointDirection) => void,\n deps: DependencyList,\n) => {\n const { config } = useSystem()\n const breakpoint = useBreakpoint()\n const direction = config.breakpoint?.direction ?? DEFAULT_BREAKPOINT_DIRECTION\n\n useUpdateEffect(() => {\n callback(breakpoint, direction)\n }, [breakpoint, direction, ...deps])\n}\n"],"mappings":";;;;;;;;;;AAWA,MAAa,6BACX,UACA,SACG;CACH,MAAM,EAAE,WAAW,UAAU;CAC7B,MAAM,aAAa,cAAc;CACjC,MAAM,YAAY,OAAO,YAAY,aAAA;CAErC,sBAAsB;EACpB,SAAS,YAAY,SAAS;CAChC,GAAG;EAAC;EAAY;EAAW,GAAG;CAAI,CAAC;AACrC"}
@@ -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 accordionStyle: ComponentSlotStyle<"button" | "panel" | "icon" | "root" | "item", CSSPropObject<CSSSlotObject<"button" | "panel" | "icon" | "root" | "item">>, CSSModifierObject<CSSSlotObject<"button" | "panel" | "icon" | "root" | "item">>, {
4
+ export declare const accordionStyle: ComponentSlotStyle<"button" | "panel" | "icon" | "item" | "root", CSSPropObject<CSSSlotObject<"button" | "panel" | "icon" | "item" | "root">>, CSSModifierObject<CSSSlotObject<"button" | "panel" | "icon" | "item" | "root">>, {
5
5
  panel: {
6
6
  button: {
7
7
  rounded: "l2";
@@ -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 alertStyle: ComponentSlotStyle<"title" | "loading" | "icon" | "description" | "root", CSSPropObject<CSSSlotObject<"title" | "loading" | "icon" | "description" | "root">>, CSSModifierObject<CSSSlotObject<"title" | "loading" | "icon" | "description" | "root">>, {
4
+ export declare const alertStyle: ComponentSlotStyle<"title" | "loading" | "icon" | "root" | "description", CSSPropObject<CSSSlotObject<"title" | "loading" | "icon" | "root" | "description">>, CSSModifierObject<CSSSlotObject<"title" | "loading" | "icon" | "root" | "description">>, {
5
5
  island: {
6
6
  description: {
7
7
  color: "fg.muted";
@@ -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" | "field" | "root" | "indicator" | "empty" | "valueText", CSSPropObject<CSSSlotObject<"input" | "label" | "option" | "content" | "group" | "separator" | "icon" | "field" | "root" | "indicator" | "empty" | "valueText">>, {
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";
@@ -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 breadcrumbStyle: ComponentSlotStyle<"link" | "list" | "separator" | "ellipsis" | "root" | "item", CSSPropObject<CSSSlotObject<"link" | "list" | "separator" | "ellipsis" | "root" | "item">>, {
4
+ export declare const breadcrumbStyle: ComponentSlotStyle<"link" | "list" | "separator" | "ellipsis" | "item" | "root", CSSPropObject<CSSSlotObject<"link" | "list" | "separator" | "ellipsis" | "item" | "root">>, {
5
5
  sm: {
6
6
  list: {
7
7
  fontSize: "sm";
@@ -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 bubbleStyle: ComponentSlotStyle<"content" | "group" | "root" | "item" | "reactions", CSSPropObject<CSSSlotObject<"content" | "group" | "root" | "item" | "reactions">>, {
4
+ export declare const bubbleStyle: ComponentSlotStyle<"content" | "group" | "item" | "root" | "reactions", CSSPropObject<CSSSlotObject<"content" | "group" | "item" | "root" | "reactions">>, {
5
5
  sm: {
6
6
  content: {
7
7
  "--space-y": "spaces.2";
@@ -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" | "root" | "control" | "prev" | "month" | "week" | "weekday" | "day" | "months" | "years" | "weeks", {
4
+ export declare const calendarStyle: ComponentSlotStyle<"button" | "select" | "cell" | "navigation" | "row" | "separator" | "next" | "prev" | "root" | "month" | "weekday" | "day" | "months" | "years" | "week" | "weeks" | "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" | "root" | "control" | "prev" | "month" | "week" | "weekday" | "day" | "months" | "years" | "weeks">>>;
76
+ }, CSSModifierObject<CSSSlotObject<"button" | "select" | "cell" | "navigation" | "row" | "separator" | "next" | "prev" | "root" | "month" | "weekday" | "day" | "months" | "years" | "week" | "weeks" | "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" | "root" | "indicator" | "indicators" | "trigger" | "item" | "prev", CSSPropObject<CSSSlotObject<"list" | "next" | "root" | "indicator" | "indicators" | "trigger" | "item" | "prev">>, {
4
+ export declare const carouselStyle: ComponentSlotStyle<"list" | "next" | "prev" | "item" | "root" | "indicator" | "trigger" | "indicators", CSSPropObject<CSSSlotObject<"list" | "next" | "prev" | "item" | "root" | "indicator" | "trigger" | "indicators">>, {
5
5
  sm: {
6
6
  root: {
7
7
  h: "sm";
@@ -17,5 +17,5 @@ export declare const carouselStyle: ComponentSlotStyle<"list" | "next" | "root"
17
17
  h: "lg";
18
18
  };
19
19
  };
20
- }, CSSModifierObject<CSSSlotObject<"list" | "next" | "root" | "indicator" | "indicators" | "trigger" | "item" | "prev">>>;
20
+ }, CSSModifierObject<CSSSlotObject<"list" | "next" | "prev" | "item" | "root" | "indicator" | "trigger" | "indicators">>>;
21
21
  export type CarouselStyle = typeof carouselStyle;
@@ -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" | "description" | "root" | "indicator" | "addon", {
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" | "description" | "root" | "indicator" | "addon", {
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" | "description" | "root" | "indicator" | "addon", {
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" | "description" | "root" | "indicator" | "addon", {
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" | "field" | "root" | "colorSwatch" | "eyeDropper", CSSPropObject<CSSSlotObject<"input" | "content" | "icon" | "field" | "root" | "colorSwatch" | "eyeDropper">>, {
4
+ export declare const colorPickerStyle: ComponentSlotStyle<"input" | "content" | "icon" | "colorSwatch" | "root" | "field" | "eyeDropper", CSSPropObject<CSSSlotObject<"input" | "content" | "icon" | "colorSwatch" | "root" | "field" | "eyeDropper">>, {
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" | "hueSlider" | "saturationSlider" | "eyeDropper" | "colorSwatchGroupLabel" | "alphaSlider" | "colorSwatchGroup" | "colorSwatchItem", {
4
+ export declare const colorSelectorStyle: ComponentSlotStyle<"hueSlider" | "saturationSlider" | "root" | "eyeDropper" | "colorSwatchGroupLabel" | "alphaSlider" | "colorSwatchGroup" | "colorSwatchItem", {
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" | "hueSlider" | "saturationSlider" | "eyeDropper" | "colorSwatchGroupLabel" | "alphaSlider" | "colorSwatchGroup" | "colorSwatchItem">>>;
25
+ }, CSSModifierObject<CSSSlotObject<"hueSlider" | "saturationSlider" | "root" | "eyeDropper" | "colorSwatchGroupLabel" | "alphaSlider" | "colorSwatchGroup" | "colorSwatchItem">>>;
26
26
  export type ColorSelectorStyle = typeof colorSelectorStyle;
@@ -1,6 +1,6 @@
1
1
  import { ComponentSlotStyle } from "../../core/system/index.type.js";
2
2
  import "../../index.js";
3
- export declare const dataListStyle: ComponentSlotStyle<"term" | "description" | "root" | "item", {
3
+ export declare const dataListStyle: ComponentSlotStyle<"term" | "item" | "root" | "description", {
4
4
  /**
5
5
  * The orientation of the data list.
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 datePickerStyle: ComponentSlotStyle<"input" | "content" | "separator" | "icon" | "field" | "root" | "adjust", CSSPropObject<CSSSlotObject<"input" | "content" | "separator" | "icon" | "field" | "root" | "adjust">>, {
4
+ export declare const datePickerStyle: ComponentSlotStyle<"input" | "content" | "separator" | "icon" | "root" | "field" | "adjust", CSSPropObject<CSSSlotObject<"input" | "content" | "separator" | "icon" | "root" | "field" | "adjust">>, {
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 drawerStyle: ComponentSlotStyle<"body" | "footer" | "header" | "title" | "content" | "overlay" | "root" | "closeButton" | "dragBar", {
4
+ export declare const drawerStyle: ComponentSlotStyle<"body" | "footer" | "header" | "title" | "content" | "overlay" | "closeButton" | "root" | "dragBar", {
5
5
  /**
6
6
  * The placement of the drawer.
7
7
  *
@@ -117,5 +117,5 @@ export declare const drawerStyle: ComponentSlotStyle<"body" | "footer" | "header
117
117
  rounded: "0";
118
118
  };
119
119
  };
120
- }, CSSModifierObject<CSSSlotObject<"body" | "footer" | "header" | "title" | "content" | "overlay" | "root" | "closeButton" | "dragBar">>>;
120
+ }, CSSModifierObject<CSSSlotObject<"body" | "footer" | "header" | "title" | "content" | "overlay" | "closeButton" | "root" | "dragBar">>>;
121
121
  export type DrawerStyle = typeof drawerStyle;
@@ -33,7 +33,7 @@ declare const DropzonePropsContext: import("react").Context<Partial<DropzoneRoot
33
33
  *
34
34
  * @see https://yamada-ui.com/docs/components/dropzone
35
35
  */
36
- export declare const DropzoneRoot: Component<({ children, errorBorderColor, focusBorderColor, loadingScheme, inputProps, loadingProps, overlayProps, ...rest }: WithoutThemeProps<DropzoneRootProps, ComponentSlotStyle<"title" | "overlay" | "loading" | "icon" | "description" | "root", CSSPropObject<CSSSlotObject<"title" | "overlay" | "loading" | "icon" | "description" | "root">>, {
36
+ 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">>, {
37
37
  xs: {
38
38
  root: {
39
39
  minH: "xs";
@@ -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 dropzoneStyle: ComponentSlotStyle<"title" | "overlay" | "loading" | "icon" | "description" | "root", CSSPropObject<CSSSlotObject<"title" | "overlay" | "loading" | "icon" | "description" | "root">>, {
4
+ export declare const dropzoneStyle: ComponentSlotStyle<"title" | "overlay" | "loading" | "icon" | "root" | "description", CSSPropObject<CSSSlotObject<"title" | "overlay" | "loading" | "icon" | "root" | "description">>, {
5
5
  xs: {
6
6
  root: {
7
7
  minH: "xs";
@@ -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" | "description" | "root" | "indicator", CSSPropObject<CSSSlotObject<"title" | "content" | "description" | "root" | "indicator">>, {
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" | "descr
47
47
  fontSize: "xl";
48
48
  };
49
49
  };
50
- }, CSSModifierObject<CSSSlotObject<"title" | "content" | "description" | "root" | "indicator">>>;
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 { CSSPropObject, CSSSlotObject } from "../../core/css/index.type.js";
3
3
  import "../../index.js";
4
- export declare const fileInputStyle: ComponentSlotStyle<"root" | "tag", CSSPropObject<CSSSlotObject<"root" | "tag">>, {
4
+ export declare const fileInputStyle: ComponentSlotStyle<"tag" | "root", CSSPropObject<CSSSlotObject<"tag" | "root">>, {
5
5
  xs: {
6
6
  root: {
7
7
  "&:has(~ [data-input-element])"?: {
@@ -67,5 +67,5 @@ declare const FlipPropsContext: import("react").Context<Partial<FlipProps> | und
67
67
  *
68
68
  * @see https://yamada-ui.com/docs/components/flip
69
69
  */
70
- export declare const Flip: Component<({ defaultValue, delay, disabled, duration, from, orientation, readOnly, to, transition, value: valueProp, onChange, onClick: onClickProp, ...rest }: WithoutThemeProps<FlipProps, ComponentSlotStyle<"from" | "to" | "root" | "item", CSSPropObject<CSSSlotObject<"from" | "to" | "root" | "item">>, CSSModifierObject<CSSSlotObject<"from" | "to" | "root" | "item">>, CSSModifierObject<CSSSlotObject<"from" | "to" | "root" | "item">>>, keyof FlipProps>) => import("react").JSX.Element, FlipProps>;
70
+ export declare const Flip: Component<({ defaultValue, delay, disabled, duration, from, orientation, readOnly, to, transition, value: valueProp, onChange, onClick: onClickProp, ...rest }: WithoutThemeProps<FlipProps, ComponentSlotStyle<"from" | "to" | "item" | "root", CSSPropObject<CSSSlotObject<"from" | "to" | "item" | "root">>, CSSModifierObject<CSSSlotObject<"from" | "to" | "item" | "root">>, CSSModifierObject<CSSSlotObject<"from" | "to" | "item" | "root">>>, keyof FlipProps>) => import("react").JSX.Element, FlipProps>;
71
71
  export { FlipPropsContext, useFlipPropsContext };
@@ -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 flipStyle: ComponentSlotStyle<"from" | "to" | "root" | "item", CSSPropObject<CSSSlotObject<"from" | "to" | "root" | "item">>, CSSModifierObject<CSSSlotObject<"from" | "to" | "root" | "item">>, CSSModifierObject<CSSSlotObject<"from" | "to" | "root" | "item">>>;
4
+ export declare const flipStyle: ComponentSlotStyle<"from" | "to" | "item" | "root", CSSPropObject<CSSSlotObject<"from" | "to" | "item" | "root">>, CSSModifierObject<CSSSlotObject<"from" | "to" | "item" | "root">>, CSSModifierObject<CSSSlotObject<"from" | "to" | "item" | "root">>>;
5
5
  export type FlipStyle = typeof flipStyle;
@@ -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 formStyle: ComponentSlotStyle<"body" | "footer" | "header" | "title" | "group" | "description" | "root" | "submitButton", CSSPropObject<CSSSlotObject<"body" | "footer" | "header" | "title" | "group" | "description" | "root" | "submitButton">>, {
4
+ export declare const formStyle: ComponentSlotStyle<"body" | "footer" | "header" | "title" | "group" | "root" | "description" | "submitButton", CSSPropObject<CSSSlotObject<"body" | "footer" | "header" | "title" | "group" | "root" | "description" | "submitButton">>, {
5
5
  sm: {
6
6
  body: {
7
7
  gap: "5";
@@ -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 listStyle: ComponentSlotStyle<"icon" | "root" | "item", {
4
+ export declare const listStyle: ComponentSlotStyle<"icon" | "item" | "root", {
5
5
  styleType: {
6
6
  circle: {
7
7
  root: {
@@ -35,5 +35,5 @@ export declare const listStyle: ComponentSlotStyle<"icon" | "root" | "item", {
35
35
  };
36
36
  };
37
37
  };
38
- }, CSSModifierObject<CSSSlotObject<"icon" | "root" | "item">>, CSSModifierObject<CSSSlotObject<"icon" | "root" | "item">>>;
38
+ }, CSSModifierObject<CSSSlotObject<"icon" | "item" | "root">>, CSSModifierObject<CSSSlotObject<"icon" | "item" | "root">>>;
39
39
  export type ListStyle = typeof listStyle;
@@ -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 marqueeStyle: ComponentSlotStyle<"content" | "group" | "root" | "item" | "edge", CSSPropObject<CSSSlotObject<"content" | "group" | "root" | "item" | "edge">>, CSSModifierObject<CSSSlotObject<"content" | "group" | "root" | "item" | "edge">>, CSSModifierObject<CSSSlotObject<"content" | "group" | "root" | "item" | "edge">>>;
4
+ export declare const marqueeStyle: ComponentSlotStyle<"content" | "group" | "item" | "root" | "edge", CSSPropObject<CSSSlotObject<"content" | "group" | "item" | "root" | "edge">>, CSSModifierObject<CSSSlotObject<"content" | "group" | "item" | "root" | "edge">>, CSSModifierObject<CSSSlotObject<"content" | "group" | "item" | "root" | "edge">>>;
5
5
  export type MarqueeStyle = typeof marqueeStyle;
@@ -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 menuStyle: ComponentSlotStyle<"footer" | "header" | "label" | "content" | "command" | "group" | "separator" | "indicator" | "item", CSSPropObject<CSSSlotObject<"footer" | "header" | "label" | "content" | "command" | "group" | "separator" | "indicator" | "item">>, {
4
+ export declare const menuStyle: ComponentSlotStyle<"footer" | "header" | "label" | "content" | "command" | "group" | "separator" | "item" | "indicator", CSSPropObject<CSSSlotObject<"footer" | "header" | "label" | "content" | "command" | "group" | "separator" | "item" | "indicator">>, {
5
5
  sm: {
6
6
  command: {
7
7
  fontSize: "2xs";
@@ -86,5 +86,5 @@ export declare const menuStyle: ComponentSlotStyle<"footer" | "header" | "label"
86
86
  px: "2";
87
87
  };
88
88
  };
89
- }, CSSModifierObject<CSSSlotObject<"footer" | "header" | "label" | "content" | "command" | "group" | "separator" | "indicator" | "item">>>;
89
+ }, CSSModifierObject<CSSSlotObject<"footer" | "header" | "label" | "content" | "command" | "group" | "separator" | "item" | "indicator">>>;
90
90
  export type MenuStyle = typeof menuStyle;
@@ -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 modalStyle: ComponentSlotStyle<"body" | "footer" | "header" | "title" | "content" | "overlay" | "root" | "closeButton", {
4
+ export declare const modalStyle: ComponentSlotStyle<"body" | "footer" | "header" | "title" | "content" | "overlay" | "closeButton" | "root", {
5
5
  /**
6
6
  * The placement of the modal.
7
7
  *
@@ -155,5 +155,5 @@ export declare const modalStyle: ComponentSlotStyle<"body" | "footer" | "header"
155
155
  p: "0";
156
156
  };
157
157
  };
158
- }, CSSModifierObject<CSSSlotObject<"body" | "footer" | "header" | "title" | "content" | "overlay" | "root" | "closeButton">>>;
158
+ }, CSSModifierObject<CSSSlotObject<"body" | "footer" | "header" | "title" | "content" | "overlay" | "closeButton" | "root">>>;
159
159
  export type ModalStyle = typeof modalStyle;
@@ -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 nativeAccordionStyle: ComponentSlotStyle<"button" | "panel" | "icon" | "root" | "item", {
4
+ export declare const nativeAccordionStyle: ComponentSlotStyle<"button" | "panel" | "icon" | "item" | "root", {
5
5
  /**
6
6
  * If `true`, animate the accordion items when they are expanded or collapsed.
7
7
  *
@@ -31,7 +31,7 @@ export declare const nativeAccordionStyle: ComponentSlotStyle<"button" | "panel"
31
31
  };
32
32
  };
33
33
  };
34
- }, CSSModifierObject<CSSSlotObject<"button" | "panel" | "icon" | "root" | "item">>, {
34
+ }, CSSModifierObject<CSSSlotObject<"button" | "panel" | "icon" | "item" | "root">>, {
35
35
  panel: {
36
36
  button: {
37
37
  rounded: "l2";
@@ -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 nativeSelectStyle: ComponentSlotStyle<"icon" | "field" | "root", CSSPropObject<CSSSlotObject<"icon" | "field" | "root">>, {
4
+ export declare const nativeSelectStyle: ComponentSlotStyle<"icon" | "root" | "field", CSSPropObject<CSSSlotObject<"icon" | "root" | "field">>, {
5
5
  xs: {
6
6
  field: {
7
7
  fontSize: "1em";
@@ -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 noticeStyle: ComponentSlotStyle<"content" | "root" | "item" | "closeButton", CSSPropObject<CSSSlotObject<"content" | "root" | "item" | "closeButton">>, CSSModifierObject<CSSSlotObject<"content" | "root" | "item" | "closeButton">>, CSSModifierObject<CSSSlotObject<"content" | "root" | "item" | "closeButton">>>;
4
+ export declare const noticeStyle: ComponentSlotStyle<"content" | "closeButton" | "item" | "root", CSSPropObject<CSSSlotObject<"content" | "closeButton" | "item" | "root">>, CSSModifierObject<CSSSlotObject<"content" | "closeButton" | "item" | "root">>, CSSModifierObject<CSSSlotObject<"content" | "closeButton" | "item" | "root">>>;
5
5
  export type NoticeStyle = typeof noticeStyle;
@@ -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" | "field" | "root" | "decrement" | "increment" | "control", CSSPropObject<CSSSlotObject<"button" | "field" | "root" | "decrement" | "increment" | "control">>, {
4
+ export declare const numberInputStyle: ComponentSlotStyle<"button" | "root" | "field" | "control" | "decrement" | "increment", CSSPropObject<CSSSlotObject<"button" | "root" | "field" | "control" | "decrement" | "increment">>, {
5
5
  xs: {
6
6
  control: {
7
7
  boxSize: "calc({--height} - {spaces.2})";
@@ -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 paginationStyle: ComponentSlotStyle<"text" | "root" | "item", CSSPropObject<CSSSlotObject<"text" | "root" | "item">>, {
4
+ export declare const paginationStyle: ComponentSlotStyle<"text" | "item" | "root", CSSPropObject<CSSSlotObject<"text" | "item" | "root">>, {
5
5
  xs: {
6
6
  item: {
7
7
  fontSize: "{font-size}";
@@ -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 passwordInputStyle: ComponentSlotStyle<"button" | "field" | "root", CSSPropObject<CSSSlotObject<"button" | "field" | "root">>, {
4
+ export declare const passwordInputStyle: ComponentSlotStyle<"button" | "root" | "field", CSSPropObject<CSSSlotObject<"button" | "root" | "field">>, {
5
5
  xs: {
6
6
  button: {
7
7
  boxSize: "calc({--height} - {spaces.2})";
@@ -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 pinInputStyle: ComponentSlotStyle<"field" | "root", CSSPropObject<CSSSlotObject<"field" | "root">>, {
4
+ export declare const pinInputStyle: ComponentSlotStyle<"root" | "field", CSSPropObject<CSSSlotObject<"root" | "field">>, {
5
5
  xs: {
6
6
  field: {
7
7
  boxSize: string | undefined;
@@ -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" | "description" | "root" | "indicator" | "addon", {
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" | "description" | "root" | "indicator" | "addon", {
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" | "description" | "root" | "indicator" | "addon", {
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" | "description" | "root" | "indicator" | "addon", {
3
+ export declare const radioCardStyle: 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 { CSSModifierObject, CSSPropObject, CSSSlotObject } from "../../core/css/index.type.js";
3
3
  import "../../index.js";
4
- export declare const ratingStyle: ComponentSlotStyle<"group" | "icon" | "root" | "item", CSSPropObject<CSSSlotObject<"group" | "icon" | "root" | "item">>, {
4
+ export declare const ratingStyle: ComponentSlotStyle<"group" | "icon" | "item" | "root", CSSPropObject<CSSSlotObject<"group" | "icon" | "item" | "root">>, {
5
5
  xs: {
6
6
  icon: {
7
7
  fontSize: "md";
@@ -27,5 +27,5 @@ export declare const ratingStyle: ComponentSlotStyle<"group" | "icon" | "root" |
27
27
  fontSize: "3xl";
28
28
  };
29
29
  };
30
- }, CSSModifierObject<CSSSlotObject<"group" | "icon" | "root" | "item">>>;
30
+ }, CSSModifierObject<CSSSlotObject<"group" | "icon" | "item" | "root">>>;
31
31
  export type RatingStyle = typeof ratingStyle;
@@ -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" | "trigger" | "item", {
3
+ export declare const reorderStyle: ComponentSlotStyle<"item" | "root" | "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" | "trigger" | "item", {
4
+ export declare const resizableStyle: ComponentSlotStyle<"icon" | "item" | "root" | "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" | "trigger" | "item">>, {
22
+ }, CSSModifierObject<CSSSlotObject<"icon" | "item" | "root" | "trigger">>, {
23
23
  border: {
24
24
  icon: {
25
25
  bg: "colorScheme.muted";
@@ -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 segmentedControlStyle: ComponentSlotStyle<"root" | "indicator" | "item", {
4
+ export declare const segmentedControlStyle: ComponentSlotStyle<"item" | "root" | "indicator", {
5
5
  /**
6
6
  * If `true`, the segmented control will be full rounded.
7
7
  *
@@ -113,5 +113,5 @@ export declare const segmentedControlStyle: ComponentSlotStyle<"root" | "indicat
113
113
  };
114
114
  };
115
115
  };
116
- }, CSSModifierObject<CSSSlotObject<"root" | "indicator" | "item">>>;
116
+ }, CSSModifierObject<CSSSlotObject<"item" | "root" | "indicator">>>;
117
117
  export type SegmentedControlStyle = typeof segmentedControlStyle;
@@ -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" | "field" | "root" | "indicator" | "valueText", {
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,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" | "description" | "root" | "indicator" | "item", {
3
+ export declare const stepsStyle: ComponentSlotStyle<"title" | "list" | "separator" | "item" | "root" | "description" | "indicator", {
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" | "closeButton" | "endIcon" | "startIcon", {
3
+ export declare const tagStyle: ComponentSlotStyle<"content" | "icon" | "closeButton" | "root" | "endIcon" | "startIcon", {
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" | "description" | "root" | "indicator" | "item" | "connector", {
64
+ export declare const TimelineRoot: Component<({ variant: variantProp, children, index, items, ...rest }: WithoutThemeProps<TimelineRootProps, ComponentSlotStyle<"title" | "content" | "item" | "root" | "description" | "indicator" | "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" | "description" | "root" | "indicator" | "item" | "connector", {
3
+ export declare const timelineStyle: ComponentSlotStyle<"title" | "content" | "item" | "root" | "description" | "indicator" | "connector", {
4
4
  /**
5
5
  * The alignment of the timeline.
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 treeStyle: ComponentSlotStyle<"label" | "checkbox" | "group" | "end" | "start" | "element" | "root" | "indicator" | "item", {
3
+ export declare const treeStyle: ComponentSlotStyle<"label" | "checkbox" | "group" | "end" | "start" | "element" | "item" | "root" | "indicator", {
4
4
  /**
5
5
  * The shape of the component
6
6
  *
@@ -1,4 +1,4 @@
1
- import { Breakpoint } from "../../core/system/index.type.js";
1
+ import { Breakpoint, BreakpointDirection } from "../../core/system/index.type.js";
2
2
  import "../../core/index.js";
3
3
  import { DependencyList } from "react";
4
4
  /**
@@ -6,4 +6,4 @@ import { DependencyList } from "react";
6
6
  *
7
7
  * @see https://yamada-ui.com/docs/hooks/use-breakpoint-effect
8
8
  */
9
- export declare const useBreakpointEffect: (callback: (breakpoint: Breakpoint) => void, deps: DependencyList) => void;
9
+ export declare const useBreakpointEffect: (callback: (breakpoint: Breakpoint, direction: BreakpointDirection) => void, deps: DependencyList) => void;
@@ -1,3 +1,4 @@
1
+ import { BreakpointDirection } from "../../core/system/index.type.js";
1
2
  import { ResponsiveObject } from "../../core/css/index.type.js";
2
3
  import "../../core/index.js";
3
4
  /**
@@ -5,4 +6,4 @@ import "../../core/index.js";
5
6
  *
6
7
  * @see https://yamada-ui.com/docs/hooks/use-breakpoint-state
7
8
  */
8
- export declare const useBreakpointState: <Y>(initialState: ResponsiveObject<Y, false>) => [Y, import("react").Dispatch<import("react").SetStateAction<Y>>];
9
+ export declare const useBreakpointState: <Y>(initialState: ((direction: BreakpointDirection) => ResponsiveObject<Y, false>) | ResponsiveObject<Y, false>) => [Y, import("react").Dispatch<import("react").SetStateAction<Y>>];
@@ -1,4 +1,4 @@
1
- import { Breakpoint, System } from "../../core/system/index.type.js";
1
+ import { Breakpoint, BreakpointDirection, System } from "../../core/system/index.type.js";
2
2
  import { ResponsiveObject } from "../../core/css/index.type.js";
3
3
  import "../../core/index.js";
4
4
  /**
@@ -7,5 +7,5 @@ import "../../core/index.js";
7
7
  *
8
8
  * @see https://yamada-ui.com/docs/hooks/use-breakpoint-value
9
9
  */
10
- export declare const useBreakpointValue: <Y>(values: ResponsiveObject<Y, false>) => Y;
10
+ export declare const useBreakpointValue: <Y>(values: ((direction: BreakpointDirection) => ResponsiveObject<Y, false>) | ResponsiveObject<Y, false>) => Y;
11
11
  export declare const getBreakpointValue: <Y>(values?: ResponsiveObject<Y, false>) => (system: System, breakpoint: Breakpoint) => Y;
@@ -1,4 +1,4 @@
1
- import { Breakpoint } from "../../core/system/index.type.js";
1
+ import { Breakpoint, BreakpointDirection } from "../../core/system/index.type.js";
2
2
  import "../../core/index.js";
3
3
  import { DependencyList } from "react";
4
4
  /**
@@ -6,4 +6,4 @@ import { DependencyList } from "react";
6
6
  *
7
7
  * @see https://yamada-ui.com/docs/hooks/use-update-breakpoint-effect
8
8
  */
9
- export declare const useUpdateBreakpointEffect: (callback: (breakpoint: Breakpoint) => void, deps: DependencyList) => void;
9
+ export declare const useUpdateBreakpointEffect: (callback: (breakpoint: Breakpoint, direction: BreakpointDirection) => void, deps: DependencyList) => void;
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-20261124053251",
4
+ "version": "2.3.4-dev-20261124055019",
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",