laif-ds 0.2.20 → 0.2.22

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 (283) hide show
  1. package/dist/_virtual/index.js +5 -3
  2. package/dist/_virtual/index3.js +2 -5
  3. package/dist/_virtual/index4.js +3 -5
  4. package/dist/_virtual/index6.js +5 -2
  5. package/dist/_virtual/index7.js +2 -2
  6. package/dist/components/ui/app-select.js +92 -109
  7. package/dist/components/ui/app-stepper.js +212 -0
  8. package/dist/components/ui/gantt/constants/DimensionsSettings.js +6 -6
  9. package/dist/components/ui/gantt/constants/DragStepOptions.js +9 -9
  10. package/dist/components/ui/message-input.js +23 -23
  11. package/dist/components/ui/sidebar.js +1 -1
  12. package/dist/components/ui/stepper.js +387 -0
  13. package/dist/index.d.ts +55 -6
  14. package/dist/index.js +30 -28
  15. package/dist/lib/audio-utils.js +2 -2
  16. package/dist/node_modules/@date-fns/tz/date/index.js +2 -7
  17. package/dist/node_modules/@date-fns/tz/date/mini.js +32 -27
  18. package/dist/node_modules/@date-fns/tz/tzName/index.js +12 -0
  19. package/dist/node_modules/@date-fns/tz/tzOffset/index.js +11 -12
  20. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +137 -139
  21. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +238 -235
  22. package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +70 -69
  23. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +88 -83
  24. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +70 -69
  25. package/dist/node_modules/@lexical/clipboard/LexicalClipboard.prod.js +13 -13
  26. package/dist/node_modules/@lexical/code/LexicalCode.prod.js +3 -3
  27. package/dist/node_modules/@lexical/dragon/LexicalDragon.prod.js +2 -2
  28. package/dist/node_modules/@lexical/history/LexicalHistory.prod.js +9 -9
  29. package/dist/node_modules/@lexical/html/LexicalHtml.prod.js +6 -6
  30. package/dist/node_modules/@lexical/list/LexicalList.prod.js +48 -48
  31. package/dist/node_modules/@lexical/markdown/LexicalMarkdown.prod.js +29 -29
  32. package/dist/node_modules/@lexical/react/LexicalCheckListPlugin.prod.js +1 -1
  33. package/dist/node_modules/@lexical/react/LexicalClearEditorPlugin.prod.js +2 -2
  34. package/dist/node_modules/@lexical/react/LexicalComposer.prod.js +10 -10
  35. package/dist/node_modules/@lexical/react/LexicalComposerContext.prod.js +2 -2
  36. package/dist/node_modules/@lexical/react/LexicalContentEditable.prod.js +17 -17
  37. package/dist/node_modules/@lexical/react/LexicalErrorBoundary.prod.js +4 -4
  38. package/dist/node_modules/@lexical/react/LexicalHistoryPlugin.prod.js +4 -4
  39. package/dist/node_modules/@lexical/react/LexicalListPlugin.prod.js +5 -5
  40. package/dist/node_modules/@lexical/react/LexicalOnChangePlugin.prod.js +4 -4
  41. package/dist/node_modules/@lexical/react/LexicalRichTextPlugin.prod.js +20 -20
  42. package/dist/node_modules/@lexical/react/useLexicalEditable.prod.js +7 -7
  43. package/dist/node_modules/@lexical/rich-text/LexicalRichText.prod.js +43 -43
  44. package/dist/node_modules/@lexical/table/LexicalTable.prod.js +16 -16
  45. package/dist/node_modules/@lexical/utils/LexicalUtils.prod.js +3 -3
  46. package/dist/node_modules/@radix-ui/react-accordion/dist/index.js +24 -25
  47. package/dist/node_modules/@radix-ui/react-alert-dialog/dist/index.js +22 -23
  48. package/dist/node_modules/@radix-ui/react-avatar/dist/index.js +28 -29
  49. package/dist/node_modules/@radix-ui/react-checkbox/dist/index.js +1 -2
  50. package/dist/node_modules/@radix-ui/react-context-menu/dist/index.js +49 -50
  51. package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +22 -23
  52. package/dist/node_modules/@radix-ui/react-hover-card/dist/index.js +6 -7
  53. package/dist/node_modules/@radix-ui/react-menubar/dist/index.js +31 -32
  54. package/dist/node_modules/@radix-ui/react-navigation-menu/dist/index.js +56 -57
  55. package/dist/node_modules/@radix-ui/react-popover/dist/index.js +6 -7
  56. package/dist/node_modules/@radix-ui/react-popper/dist/index.js +43 -42
  57. package/dist/node_modules/@radix-ui/react-presence/dist/index.js +1 -1
  58. package/dist/node_modules/@radix-ui/react-progress/dist/index.js +20 -21
  59. package/dist/node_modules/@radix-ui/react-radio-group/dist/index.js +12 -13
  60. package/dist/node_modules/@radix-ui/react-scroll-area/dist/index.js +7 -8
  61. package/dist/node_modules/@radix-ui/react-select/dist/index.js +19 -20
  62. package/dist/node_modules/@radix-ui/react-slider/dist/index.js +39 -40
  63. package/dist/node_modules/@radix-ui/react-switch/dist/index.js +12 -13
  64. package/dist/node_modules/@radix-ui/react-tabs/dist/index.js +13 -14
  65. package/dist/node_modules/@radix-ui/react-toggle-group/dist/index.js +20 -21
  66. package/dist/node_modules/@radix-ui/react-tooltip/dist/index.js +8 -9
  67. package/dist/node_modules/@radix-ui/react-use-is-hydrated/dist/index.js +1 -1
  68. package/dist/node_modules/@reduxjs/toolkit/dist/redux-toolkit.modern.js +183 -175
  69. package/dist/node_modules/@shikijs/core/dist/index.js +195 -175
  70. package/dist/node_modules/@shikijs/langs/dist/asciidoc.js +2 -2
  71. package/dist/node_modules/@shikijs/langs/dist/cobol.js +1 -1
  72. package/dist/node_modules/@shikijs/langs/dist/erlang.js +5 -3
  73. package/dist/node_modules/@shikijs/langs/dist/fsharp.js +1 -1
  74. package/dist/node_modules/@shikijs/langs/dist/gdscript.js +1 -1
  75. package/dist/node_modules/@shikijs/langs/dist/go.js +1 -1
  76. package/dist/node_modules/@shikijs/langs/dist/haxe.js +1 -1
  77. package/dist/node_modules/@shikijs/langs/dist/julia.js +1 -1
  78. package/dist/node_modules/@shikijs/langs/dist/latex.js +1 -1
  79. package/dist/node_modules/@shikijs/langs/dist/lean.js +1 -1
  80. package/dist/node_modules/@shikijs/langs/dist/markdown.js +1 -1
  81. package/dist/node_modules/@shikijs/langs/dist/marko.js +5 -5
  82. package/dist/node_modules/@shikijs/langs/dist/mermaid.js +1 -1
  83. package/dist/node_modules/@shikijs/langs/dist/nextflow.js +1 -1
  84. package/dist/node_modules/@shikijs/langs/dist/purescript.js +1 -1
  85. package/dist/node_modules/@shikijs/langs/dist/r.js +1 -1
  86. package/dist/node_modules/@shikijs/langs/dist/sql.js +1 -1
  87. package/dist/node_modules/@shikijs/langs/dist/swift.js +2 -2
  88. package/dist/node_modules/@shikijs/langs/dist/templ.js +1 -1
  89. package/dist/node_modules/@shikijs/langs/dist/tex.js +1 -1
  90. package/dist/node_modules/@shikijs/langs/dist/vue-vine.js +21 -0
  91. package/dist/node_modules/@shikijs/langs/dist/vue.js +1 -1
  92. package/dist/node_modules/@shikijs/langs/dist/zig.js +1 -1
  93. package/dist/node_modules/@shikijs/themes/dist/andromeeda.js +1 -1
  94. package/dist/node_modules/@shikijs/themes/dist/catppuccin-frappe.js +1 -1
  95. package/dist/node_modules/@shikijs/themes/dist/catppuccin-latte.js +1 -1
  96. package/dist/node_modules/@shikijs/themes/dist/catppuccin-macchiato.js +1 -1
  97. package/dist/node_modules/@shikijs/themes/dist/catppuccin-mocha.js +1 -1
  98. package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-hard.js +1 -1
  99. package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-medium.js +1 -1
  100. package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-soft.js +1 -1
  101. package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-hard.js +1 -1
  102. package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-medium.js +1 -1
  103. package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-soft.js +1 -1
  104. package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js +215 -208
  105. package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.js +1 -1
  106. package/dist/node_modules/aria-hidden/dist/es2015/index.js +1 -1
  107. package/dist/node_modules/classnames/index.js +2 -2
  108. package/dist/node_modules/cmdk/dist/index.js +2 -2
  109. package/dist/node_modules/d3-interpolate/src/rgb.js +2 -2
  110. package/dist/node_modules/dayjs/dayjs.min.js +14 -14
  111. package/dist/node_modules/dayjs/locale/it.js +4 -4
  112. package/dist/node_modules/dayjs/plugin/isoWeek.js +4 -4
  113. package/dist/node_modules/dayjs/plugin/localizedFormat.js +10 -10
  114. package/dist/node_modules/decimal.js-light/decimal.js +2 -2
  115. package/dist/node_modules/es-toolkit/dist/_internal/isUnsafeProperty.js +2 -2
  116. package/dist/node_modules/es-toolkit/dist/array/flatten.js +2 -2
  117. package/dist/node_modules/es-toolkit/dist/array/uniqBy.js +2 -2
  118. package/dist/node_modules/es-toolkit/dist/compat/_internal/compareValues.js +2 -2
  119. package/dist/node_modules/es-toolkit/dist/compat/_internal/getSymbols.js +2 -2
  120. package/dist/node_modules/es-toolkit/dist/compat/_internal/getTag.js +2 -2
  121. package/dist/node_modules/es-toolkit/dist/compat/_internal/isDeepKey.js +2 -2
  122. package/dist/node_modules/es-toolkit/dist/compat/_internal/isIndex.js +2 -2
  123. package/dist/node_modules/es-toolkit/dist/compat/_internal/isIterateeCall.js +2 -2
  124. package/dist/node_modules/es-toolkit/dist/compat/_internal/isKey.js +2 -2
  125. package/dist/node_modules/es-toolkit/dist/compat/_internal/tags.js +2 -2
  126. package/dist/node_modules/es-toolkit/dist/compat/_internal/toKey.js +2 -2
  127. package/dist/node_modules/es-toolkit/dist/compat/array/orderBy.js +2 -2
  128. package/dist/node_modules/es-toolkit/dist/compat/array/sortBy.js +2 -2
  129. package/dist/node_modules/es-toolkit/dist/compat/array/uniqBy.js +2 -2
  130. package/dist/node_modules/es-toolkit/dist/compat/function/debounce.js +2 -2
  131. package/dist/node_modules/es-toolkit/dist/compat/function/throttle.js +14 -15
  132. package/dist/node_modules/es-toolkit/dist/compat/math/range.js +2 -2
  133. package/dist/node_modules/es-toolkit/dist/compat/object/cloneDeep.js +2 -2
  134. package/dist/node_modules/es-toolkit/dist/compat/object/cloneDeepWith.js +11 -11
  135. package/dist/node_modules/es-toolkit/dist/compat/object/get.js +2 -2
  136. package/dist/node_modules/es-toolkit/dist/compat/object/has.js +2 -2
  137. package/dist/node_modules/es-toolkit/dist/compat/object/property.js +2 -2
  138. package/dist/node_modules/es-toolkit/dist/compat/predicate/isArguments.js +2 -2
  139. package/dist/node_modules/es-toolkit/dist/compat/predicate/isArrayLike.js +2 -2
  140. package/dist/node_modules/es-toolkit/dist/compat/predicate/isArrayLikeObject.js +2 -2
  141. package/dist/node_modules/es-toolkit/dist/compat/predicate/isMatch.js +2 -2
  142. package/dist/node_modules/es-toolkit/dist/compat/predicate/isMatchWith.js +2 -2
  143. package/dist/node_modules/es-toolkit/dist/compat/predicate/isObject.js +2 -2
  144. package/dist/node_modules/es-toolkit/dist/compat/predicate/isObjectLike.js +2 -2
  145. package/dist/node_modules/es-toolkit/dist/compat/predicate/isSymbol.js +2 -2
  146. package/dist/node_modules/es-toolkit/dist/compat/predicate/matches.js +2 -2
  147. package/dist/node_modules/es-toolkit/dist/compat/predicate/matchesProperty.js +2 -2
  148. package/dist/node_modules/es-toolkit/dist/compat/util/eq.js +2 -2
  149. package/dist/node_modules/es-toolkit/dist/compat/util/iteratee.js +2 -2
  150. package/dist/node_modules/es-toolkit/dist/compat/util/toFinite.js +2 -2
  151. package/dist/node_modules/es-toolkit/dist/compat/util/toNumber.js +2 -2
  152. package/dist/node_modules/es-toolkit/dist/compat/util/toPath.js +2 -2
  153. package/dist/node_modules/es-toolkit/dist/function/debounce.js +15 -15
  154. package/dist/node_modules/es-toolkit/dist/function/identity.js +2 -2
  155. package/dist/node_modules/es-toolkit/dist/function/noop.js +2 -10
  156. package/dist/node_modules/es-toolkit/dist/object/cloneDeep.js +2 -2
  157. package/dist/node_modules/es-toolkit/dist/object/cloneDeepWith.js +3 -3
  158. package/dist/node_modules/es-toolkit/dist/predicate/isLength.js +2 -2
  159. package/dist/node_modules/es-toolkit/dist/predicate/isPrimitive.js +2 -2
  160. package/dist/node_modules/es-toolkit/dist/predicate/isTypedArray.js +2 -2
  161. package/dist/node_modules/eventemitter3/index.js +1 -1
  162. package/dist/node_modules/eventemitter3/index2.js +3 -3
  163. package/dist/node_modules/immer/dist/immer.js +213 -216
  164. package/dist/node_modules/lexical/Lexical.prod.js +212 -212
  165. package/dist/node_modules/lodash/_baseCreate.js +2 -2
  166. package/dist/node_modules/lodash/_cloneBuffer.js +2 -2
  167. package/dist/node_modules/lodash/_defineProperty.js +2 -2
  168. package/dist/node_modules/lodash/_isMasked.js +2 -2
  169. package/dist/node_modules/lodash/_nodeUtil.js +4 -4
  170. package/dist/node_modules/lodash/isArguments.js +2 -2
  171. package/dist/node_modules/lodash/isBuffer.js +2 -2
  172. package/dist/node_modules/lodash/lodash.js +16 -16
  173. package/dist/node_modules/prismjs/components/prism-cpp.js +2 -2
  174. package/dist/node_modules/prismjs/components/prism-java.js +2 -2
  175. package/dist/node_modules/prismjs/components/prism-rust.js +2 -2
  176. package/dist/node_modules/prismjs/components/prism-typescript.js +2 -2
  177. package/dist/node_modules/prismjs/prism.js +8 -8
  178. package/dist/node_modules/react-day-picker/dist/esm/DayPicker.js +183 -164
  179. package/dist/node_modules/react-day-picker/dist/esm/classes/DateLib.js +14 -14
  180. package/dist/node_modules/react-day-picker/dist/esm/components/Chevron.js +10 -7
  181. package/dist/node_modules/react-day-picker/dist/esm/formatters/index.js +6 -6
  182. package/dist/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js +30 -30
  183. package/dist/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js +1 -1
  184. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDays.js +5 -5
  185. package/dist/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js +9 -9
  186. package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js +1 -1
  187. package/dist/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js +11 -11
  188. package/dist/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js +1 -1
  189. package/dist/node_modules/react-day-picker/dist/esm/labels/index.js +12 -12
  190. package/dist/node_modules/react-day-picker/dist/esm/useAnimation.js +19 -19
  191. package/dist/node_modules/react-day-picker/dist/esm/useCalendar.js +9 -9
  192. package/dist/node_modules/react-day-picker/dist/esm/utils/addToRange.js +10 -10
  193. package/dist/node_modules/react-hook-form/dist/index.esm.js +150 -117
  194. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +48 -48
  195. package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +9 -9
  196. package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +43 -39
  197. package/dist/node_modules/react-resizable-panels/dist/react-resizable-panels.browser.js +95 -94
  198. package/dist/node_modules/react-window/dist/index.esm.js +2 -2
  199. package/dist/node_modules/recharts/es6/animation/AnimationManager.js +14 -14
  200. package/dist/node_modules/recharts/es6/animation/JavascriptAnimate.js +49 -0
  201. package/dist/node_modules/recharts/es6/animation/createDefaultAnimationManager.js +9 -0
  202. package/dist/node_modules/recharts/es6/animation/useAnimationManager.js +12 -0
  203. package/dist/node_modules/recharts/es6/component/Cursor.js +5 -5
  204. package/dist/node_modules/recharts/es6/component/DefaultLegendContent.js +55 -58
  205. package/dist/node_modules/recharts/es6/component/Legend.js +32 -27
  206. package/dist/node_modules/recharts/es6/component/ResponsiveContainer.js +44 -40
  207. package/dist/node_modules/recharts/es6/context/chartLayoutContext.js +15 -23
  208. package/dist/node_modules/recharts/es6/context/useTooltipAxis.js +8 -7
  209. package/dist/node_modules/recharts/es6/shape/Curve.js +10 -10
  210. package/dist/node_modules/recharts/es6/shape/Rectangle.js +136 -99
  211. package/dist/node_modules/recharts/es6/shape/Symbols.js +55 -53
  212. package/dist/node_modules/recharts/es6/state/legendSlice.js +5 -4
  213. package/dist/node_modules/recharts/es6/state/selectors/axisSelectors.js +352 -307
  214. package/dist/node_modules/recharts/es6/state/selectors/brushSelectors.js +9 -9
  215. package/dist/node_modules/recharts/es6/state/selectors/combiners/combineDisplayedStackedData.js +26 -0
  216. package/dist/node_modules/recharts/es6/state/selectors/combiners/combineTooltipPayload.js +117 -0
  217. package/dist/node_modules/recharts/es6/state/selectors/dataSelectors.js +4 -4
  218. package/dist/node_modules/recharts/es6/state/selectors/legendSelectors.js +10 -4
  219. package/dist/node_modules/recharts/es6/state/selectors/polarAxisSelectors.js +33 -32
  220. package/dist/node_modules/recharts/es6/state/selectors/selectChartOffsetInternal.js +108 -0
  221. package/dist/node_modules/recharts/es6/state/selectors/selectTooltipAxis.js +13 -0
  222. package/dist/node_modules/recharts/es6/state/selectors/selectTooltipAxisId.js +5 -0
  223. package/dist/node_modules/recharts/es6/state/selectors/selectTooltipAxisType.js +9 -0
  224. package/dist/node_modules/recharts/es6/state/selectors/selectors.js +40 -143
  225. package/dist/node_modules/recharts/es6/state/selectors/tooltipSelectors.js +68 -63
  226. package/dist/node_modules/recharts/es6/state/types/StackedGraphicalItem.js +7 -0
  227. package/dist/node_modules/recharts/es6/util/ChartUtils.js +58 -57
  228. package/dist/node_modules/recharts/es6/util/DataUtils.js +34 -26
  229. package/dist/node_modules/recharts/es6/util/Events.js +1 -1
  230. package/dist/node_modules/recharts/es6/util/ReactUtils.js +20 -15
  231. package/dist/node_modules/recharts/es6/util/excludeEventProps.js +11 -0
  232. package/dist/node_modules/recharts/es6/util/getSliced.js +7 -0
  233. package/dist/node_modules/recharts/es6/util/scale/getNiceTickValues.js +44 -44
  234. package/dist/node_modules/recharts/es6/util/stacks/getStackSeriesIdentifier.js +7 -0
  235. package/dist/node_modules/recharts/es6/util/svgPropertiesNoEvents.js +328 -0
  236. package/dist/node_modules/recharts/es6/util/types.js +22 -332
  237. package/dist/node_modules/recharts/es6/util/useAnimationId.js +10 -0
  238. package/dist/node_modules/recharts/es6/util/useElementOffset.js +20 -16
  239. package/dist/node_modules/remeda/dist/hasAtLeast-F1Oj_xBB.js +9 -0
  240. package/dist/node_modules/remeda/dist/lazyDataLastImpl-BDhrIOwR.js +8 -0
  241. package/dist/node_modules/remeda/dist/omit-HZOiLuMO.js +19 -0
  242. package/dist/node_modules/remeda/dist/purry-DH9cw9sy.js +11 -0
  243. package/dist/node_modules/shiki/dist/langs.js +225 -220
  244. package/dist/node_modules/shiki/dist/themes.js +60 -60
  245. package/dist/node_modules/sonner/dist/index.js +309 -305
  246. package/dist/node_modules/style-to-object/cjs/index.js +1 -1
  247. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +169 -168
  248. package/dist/node_modules/unified/lib/callable-instance.js +2 -2
  249. package/dist/node_modules/unified/lib/index.js +1 -1
  250. package/dist/node_modules/unist-util-is/lib/index.js +2 -2
  251. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js +2 -2
  252. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +2 -2
  253. package/dist/node_modules/vaul/dist/index.js +1 -1
  254. package/dist/node_modules/vfile-message/lib/index.js +1 -1
  255. package/dist/styles.v3.css +1 -1
  256. package/package.json +3 -2
  257. package/dist/_virtual/isEqual.js +0 -8
  258. package/dist/_virtual/isEqual2.js +0 -5
  259. package/dist/_virtual/isEqualWith.js +0 -5
  260. package/dist/_virtual/isPlainObject.js +0 -5
  261. package/dist/_virtual/noop.js +0 -5
  262. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-dialog/dist/index.js +0 -255
  263. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -128
  264. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-focus-scope/dist/index.js +0 -137
  265. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-portal/dist/index.js +0 -16
  266. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-primitive/dist/index.js +0 -37
  267. package/dist/node_modules/cmdk/node_modules/@radix-ui/react-slot/dist/index.js +0 -50
  268. package/dist/node_modules/es-toolkit/compat/isEqual.js +0 -9
  269. package/dist/node_modules/es-toolkit/dist/predicate/isEqual.js +0 -18
  270. package/dist/node_modules/es-toolkit/dist/predicate/isEqualWith.js +0 -139
  271. package/dist/node_modules/es-toolkit/dist/predicate/isPlainObject.js +0 -18
  272. package/dist/node_modules/recharts/es6/animation/Animate.js +0 -270
  273. package/dist/node_modules/recharts/es6/state/selectors/selectChartOffset.js +0 -98
  274. package/dist/node_modules/remeda/dist/chunk-AIG3BDKO.js +0 -9
  275. package/dist/node_modules/remeda/dist/chunk-D6FCK2GA.js +0 -8
  276. package/dist/node_modules/remeda/dist/chunk-KI5X74E2.js +0 -19
  277. package/dist/node_modules/remeda/dist/chunk-WIMGWYZL.js +0 -11
  278. package/dist/node_modules/vaul/node_modules/@radix-ui/react-dialog/dist/index.js +0 -258
  279. package/dist/node_modules/vaul/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -128
  280. package/dist/node_modules/vaul/node_modules/@radix-ui/react-focus-scope/dist/index.js +0 -137
  281. package/dist/node_modules/vaul/node_modules/@radix-ui/react-portal/dist/index.js +0 -16
  282. package/dist/node_modules/vaul/node_modules/@radix-ui/react-primitive/dist/index.js +0 -37
  283. package/dist/node_modules/vaul/node_modules/@radix-ui/react-slot/dist/index.js +0 -50
@@ -47,7 +47,7 @@ var le = 150, se = function(t, r) {
47
47
  process.env.NODE_ENV !== "production" && typeof window < "u" && typeof window.WeakSet < "u" && (N = /* @__PURE__ */ new WeakSet(), R = /* @__PURE__ */ new WeakSet());
48
48
  function ce(l) {
49
49
  var t, r = l.getItemOffset, a = l.getEstimatedTotalSize, n = l.getItemSize, c = l.getOffsetForIndexAndAlignment, s = l.getStartIndexForOffset, h = l.getStopIndexForStartIndex, y = l.initInstanceProps, I = l.shouldResetStyleCacheOnItemSizeChange, g = l.validateProps;
50
- return t = /* @__PURE__ */ function(w) {
50
+ return t = /* @__PURE__ */ (function(w) {
51
51
  ie(z, w);
52
52
  function z(S) {
53
53
  var e;
@@ -244,7 +244,7 @@ function ce(l) {
244
244
  var m = s(this.props, d, this._instanceProps), v = h(this.props, m, d, this._instanceProps), T = !u || p === "backward" ? Math.max(1, o) : 1, M = !u || p === "forward" ? Math.max(1, o) : 1;
245
245
  return [Math.max(0, m - T), Math.max(0, Math.min(i - 1, v + M)), m, v];
246
246
  }, z;
247
- }(ae), t.defaultProps = {
247
+ })(ae), t.defaultProps = {
248
248
  direction: "ltr",
249
249
  itemData: void 0,
250
250
  layout: "vertical",
@@ -1,32 +1,32 @@
1
1
  "use client";
2
- function c(u) {
3
- var f = {}, a = () => null, t = !1, n = null, r = (e) => {
2
+ function c(i) {
3
+ var e, u = () => null, t = !1, r = null, a = (n) => {
4
4
  if (!t) {
5
- if (Array.isArray(e)) {
6
- if (!e.length)
5
+ if (Array.isArray(n)) {
6
+ if (!n.length)
7
7
  return;
8
- var o = e, [i, ...l] = o;
9
- if (typeof i == "number") {
10
- n = u.setTimeout(r.bind(null, l), i);
8
+ var l = n, [f, ...o] = l;
9
+ if (typeof f == "number") {
10
+ r = i.setTimeout(a.bind(null, o), f);
11
11
  return;
12
12
  }
13
- r(i), n = u.setTimeout(r.bind(null, l));
13
+ a(f), r = i.setTimeout(a.bind(null, o));
14
14
  return;
15
15
  }
16
- typeof e == "object" && (f = e, a(f)), typeof e == "function" && e();
16
+ typeof n == "string" && (e = n, u(e)), typeof n == "object" && (e = n, u(e)), typeof n == "function" && n();
17
17
  }
18
18
  };
19
19
  return {
20
20
  stop: () => {
21
21
  t = !0;
22
22
  },
23
- start: (e) => {
24
- t = !1, n && (n(), n = null), r(e);
23
+ start: (n) => {
24
+ t = !1, r && (r(), r = null), a(n);
25
25
  },
26
- subscribe: (e) => (a = e, () => {
27
- a = () => null;
26
+ subscribe: (n) => (u = n, () => {
27
+ u = () => null;
28
28
  }),
29
- getTimeoutController: () => u
29
+ getTimeoutController: () => i
30
30
  };
31
31
  }
32
32
  export {
@@ -0,0 +1,49 @@
1
+ "use client";
2
+ import { useState as E, useRef as J, useEffect as c } from "react";
3
+ import { resolveDefaultProps as M } from "../util/resolveDefaultProps.js";
4
+ import b from "./configUpdate.js";
5
+ import { configEasing as y } from "./easing.js";
6
+ import { useAnimationManager as B } from "./useAnimationManager.js";
7
+ import { noop as P } from "../../../es-toolkit/dist/function/noop.js";
8
+ var h = {
9
+ begin: 0,
10
+ duration: 1e3,
11
+ easing: "ease",
12
+ isActive: !0,
13
+ canBegin: !0,
14
+ onAnimationEnd: () => {
15
+ },
16
+ onAnimationStart: () => {
17
+ }
18
+ }, v = {
19
+ t: 0
20
+ }, e = {
21
+ t: 1
22
+ };
23
+ function U(g) {
24
+ var r = M(g, h), {
25
+ isActive: t,
26
+ canBegin: m,
27
+ duration: i,
28
+ easing: s,
29
+ begin: u,
30
+ onAnimationEnd: a,
31
+ onAnimationStart: f,
32
+ children: A
33
+ } = r, n = B(r.animationId, r.animationManager), [l, p] = E(t ? v : e), o = J(null);
34
+ return c(() => {
35
+ t || p(e);
36
+ }, [t]), c(() => {
37
+ if (!t || !m)
38
+ return P;
39
+ var d = b(v, e, y(s), i, p, n.getTimeoutController()), S = () => {
40
+ o.current = d();
41
+ };
42
+ return n.start([f, u, S, i, a]), () => {
43
+ n.stop(), o.current && o.current(), a();
44
+ };
45
+ }, [t, m, i, s, u, f, a, n]), A(l.t);
46
+ }
47
+ export {
48
+ U as JavascriptAnimate
49
+ };
@@ -0,0 +1,9 @@
1
+ "use client";
2
+ import { createAnimateManager as e } from "./AnimationManager.js";
3
+ import { RequestAnimationFrameTimeoutController as t } from "./timeoutController.js";
4
+ function a() {
5
+ return e(new t());
6
+ }
7
+ export {
8
+ a as createDefaultAnimationManager
9
+ };
@@ -0,0 +1,12 @@
1
+ "use client";
2
+ import { useContext as u, createContext as o, useMemo as r } from "react";
3
+ import { createDefaultAnimationManager as c } from "./createDefaultAnimationManager.js";
4
+ var i = /* @__PURE__ */ o(c);
5
+ function l(t, e) {
6
+ var n = u(i);
7
+ return r(() => e ?? n(t), [t, e, n]);
8
+ }
9
+ export {
10
+ i as AnimationManagerContext,
11
+ l as useAnimationManager
12
+ };
@@ -7,10 +7,10 @@ import { Cross as _ } from "../shape/Cross.js";
7
7
  import { getCursorRectangle as z } from "../util/cursor/getCursorRectangle.js";
8
8
  import { Rectangle as A } from "../shape/Rectangle.js";
9
9
  import { getRadialCursorPoints as D } from "../util/cursor/getRadialCursorPoints.js";
10
- import { Sector as T } from "../shape/Sector.js";
11
- import { getCursorPoints as I } from "../util/cursor/getCursorPoints.js";
10
+ import { Sector as I } from "../shape/Sector.js";
11
+ import { getCursorPoints as T } from "../util/cursor/getCursorPoints.js";
12
12
  import { filterProps as k } from "../util/ReactUtils.js";
13
- import { useOffset as K, useChartLayout as L } from "../context/chartLayoutContext.js";
13
+ import { useOffsetInternal as K, useChartLayout as L } from "../context/chartLayoutContext.js";
14
14
  import { useTooltipAxisBandSize as V } from "../context/useTooltipAxis.js";
15
15
  import { useChartName as q } from "../state/selectors/selectors.js";
16
16
  function m() {
@@ -94,10 +94,10 @@ function J(r) {
94
94
  endAngle: C,
95
95
  innerRadius: p,
96
96
  outerRadius: p
97
- }, c = T;
97
+ }, c = I;
98
98
  } else
99
99
  s = {
100
- points: I(l, i, a)
100
+ points: T(l, i, a)
101
101
  }, c = B;
102
102
  var x = typeof n == "object" && "className" in n ? n.className : void 0, y = u(u(u(u({
103
103
  stroke: "#ccc",
@@ -1,11 +1,10 @@
1
1
  "use client";
2
- import * as l from "react";
2
+ import * as c from "react";
3
3
  import { PureComponent as P } from "react";
4
- import { clsx as w } from "../../../clsx/dist/clsx.js";
5
- import E from "../../../../_virtual/sortBy.js";
6
- import { Surface as x } from "../container/Surface.js";
7
- import { Symbols as k } from "../shape/Symbols.js";
8
- import { adaptEventsOfChild as z } from "../util/types.js";
4
+ import { clsx as S } from "../../../clsx/dist/clsx.js";
5
+ import { Surface as w } from "../container/Surface.js";
6
+ import { Symbols as E } from "../shape/Symbols.js";
7
+ import { adaptEventsOfChild as x } from "../util/types.js";
9
8
  function v() {
10
9
  return v = Object.assign ? Object.assign.bind() : function(r) {
11
10
  for (var e = 1; e < arguments.length; e++) {
@@ -25,7 +24,7 @@ function y(r, e) {
25
24
  }
26
25
  return t;
27
26
  }
28
- function I(r) {
27
+ function k(r) {
29
28
  for (var e = 1; e < arguments.length; e++) {
30
29
  var t = arguments[e] != null ? arguments[e] : {};
31
30
  e % 2 ? y(Object(t), !0).forEach(function(n) {
@@ -37,13 +36,13 @@ function I(r) {
37
36
  return r;
38
37
  }
39
38
  function d(r, e, t) {
40
- return (e = N(e)) in r ? Object.defineProperty(r, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : r[e] = t, r;
39
+ return (e = z(e)) in r ? Object.defineProperty(r, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : r[e] = t, r;
41
40
  }
42
- function N(r) {
43
- var e = D(r, "string");
41
+ function z(r) {
42
+ var e = I(r, "string");
44
43
  return typeof e == "symbol" ? e : e + "";
45
44
  }
46
- function D(r, e) {
45
+ function I(r, e) {
47
46
  if (typeof r != "object" || !r) return r;
48
47
  var t = r[Symbol.toPrimitive];
49
48
  if (t !== void 0) {
@@ -53,7 +52,7 @@ function D(r, e) {
53
52
  }
54
53
  return (e === "string" ? String : Number)(r);
55
54
  }
56
- var o = 32;
55
+ var i = 32;
57
56
  class b extends P {
58
57
  /**
59
58
  * Render the path of icon
@@ -64,50 +63,50 @@ class b extends P {
64
63
  renderIcon(e, t) {
65
64
  var {
66
65
  inactiveColor: n
67
- } = this.props, a = o / 2, u = o / 6, m = o / 3, c = e.inactive ? n : e.color, s = t ?? e.type;
68
- if (s === "none")
66
+ } = this.props, a = i / 2, s = i / 6, u = i / 3, m = e.inactive ? n : e.color, l = t ?? e.type;
67
+ if (l === "none")
69
68
  return null;
70
- if (s === "plainline")
71
- return /* @__PURE__ */ l.createElement("line", {
69
+ if (l === "plainline")
70
+ return /* @__PURE__ */ c.createElement("line", {
72
71
  strokeWidth: 4,
73
72
  fill: "none",
74
- stroke: c,
73
+ stroke: m,
75
74
  strokeDasharray: e.payload.strokeDasharray,
76
75
  x1: 0,
77
76
  y1: a,
78
- x2: o,
77
+ x2: i,
79
78
  y2: a,
80
79
  className: "recharts-legend-icon"
81
80
  });
82
- if (s === "line")
83
- return /* @__PURE__ */ l.createElement("path", {
81
+ if (l === "line")
82
+ return /* @__PURE__ */ c.createElement("path", {
84
83
  strokeWidth: 4,
85
84
  fill: "none",
86
- stroke: c,
87
- d: "M0,".concat(a, "h").concat(m, `
88
- A`).concat(u, ",").concat(u, ",0,1,1,").concat(2 * m, ",").concat(a, `
89
- H`).concat(o, "M").concat(2 * m, ",").concat(a, `
90
- A`).concat(u, ",").concat(u, ",0,1,1,").concat(m, ",").concat(a),
85
+ stroke: m,
86
+ d: "M0,".concat(a, "h").concat(u, `
87
+ A`).concat(s, ",").concat(s, ",0,1,1,").concat(2 * u, ",").concat(a, `
88
+ H`).concat(i, "M").concat(2 * u, ",").concat(a, `
89
+ A`).concat(s, ",").concat(s, ",0,1,1,").concat(u, ",").concat(a),
91
90
  className: "recharts-legend-icon"
92
91
  });
93
- if (s === "rect")
94
- return /* @__PURE__ */ l.createElement("path", {
92
+ if (l === "rect")
93
+ return /* @__PURE__ */ c.createElement("path", {
95
94
  stroke: "none",
96
- fill: c,
97
- d: "M0,".concat(o / 8, "h").concat(o, "v").concat(o * 3 / 4, "h").concat(-o, "z"),
95
+ fill: m,
96
+ d: "M0,".concat(i / 8, "h").concat(i, "v").concat(i * 3 / 4, "h").concat(-i, "z"),
98
97
  className: "recharts-legend-icon"
99
98
  });
100
- if (/* @__PURE__ */ l.isValidElement(e.legendIcon)) {
101
- var p = I({}, e);
102
- return delete p.legendIcon, /* @__PURE__ */ l.cloneElement(e.legendIcon, p);
99
+ if (/* @__PURE__ */ c.isValidElement(e.legendIcon)) {
100
+ var p = k({}, e);
101
+ return delete p.legendIcon, /* @__PURE__ */ c.cloneElement(e.legendIcon, p);
103
102
  }
104
- return /* @__PURE__ */ l.createElement(k, {
105
- fill: c,
103
+ return /* @__PURE__ */ c.createElement(E, {
104
+ fill: m,
106
105
  cx: a,
107
106
  cy: a,
108
- size: o,
107
+ size: i,
109
108
  sizeType: "diameter",
110
- type: s
109
+ type: l
111
110
  });
112
111
  }
113
112
  /**
@@ -120,42 +119,41 @@ class b extends P {
120
119
  iconSize: t,
121
120
  layout: n,
122
121
  formatter: a,
123
- inactiveColor: u,
124
- iconType: m,
125
- itemSorter: c
126
- } = this.props, s = {
122
+ inactiveColor: s,
123
+ iconType: u
124
+ } = this.props, m = {
127
125
  x: 0,
128
126
  y: 0,
129
- width: o,
130
- height: o
131
- }, p = {
127
+ width: i,
128
+ height: i
129
+ }, l = {
132
130
  display: n === "horizontal" ? "inline-block" : "block",
133
131
  marginRight: 10
134
- }, O = {
132
+ }, p = {
135
133
  display: "inline-block",
136
134
  verticalAlign: "middle",
137
135
  marginRight: 4
138
136
  };
139
- return (c ? E(e, c) : e).map((i, f) => {
140
- var g = i.formatter || a, S = w({
137
+ return e.map((o, f) => {
138
+ var g = o.formatter || a, O = S({
141
139
  "recharts-legend-item": !0,
142
140
  ["legend-item-".concat(f)]: !0,
143
- inactive: i.inactive
141
+ inactive: o.inactive
144
142
  });
145
- if (i.type === "none")
143
+ if (o.type === "none")
146
144
  return null;
147
- var j = i.inactive ? u : i.color, h = g ? g(i.value, i, f) : i.value;
148
- return /* @__PURE__ */ l.createElement("li", v({
149
- className: S,
150
- style: p,
145
+ var j = o.inactive ? s : o.color, h = g ? g(o.value, o, f) : o.value;
146
+ return /* @__PURE__ */ c.createElement("li", v({
147
+ className: O,
148
+ style: l,
151
149
  key: "legend-item-".concat(f)
152
- }, z(this.props, i, f)), /* @__PURE__ */ l.createElement(x, {
150
+ }, x(this.props, o, f)), /* @__PURE__ */ c.createElement(w, {
153
151
  width: t,
154
152
  height: t,
155
- viewBox: s,
156
- style: O,
153
+ viewBox: m,
154
+ style: p,
157
155
  "aria-label": "".concat(h, " legend icon")
158
- }, this.renderIcon(i, m)), /* @__PURE__ */ l.createElement("span", {
156
+ }, this.renderIcon(o, u)), /* @__PURE__ */ c.createElement("span", {
159
157
  className: "recharts-legend-item-text",
160
158
  style: {
161
159
  color: j
@@ -176,7 +174,7 @@ class b extends P {
176
174
  margin: 0,
177
175
  textAlign: t === "horizontal" ? n : "left"
178
176
  };
179
- return /* @__PURE__ */ l.createElement("ul", {
177
+ return /* @__PURE__ */ c.createElement("ul", {
180
178
  className: "recharts-default-legend",
181
179
  style: a
182
180
  }, this.renderItems());
@@ -187,7 +185,6 @@ d(b, "defaultProps", {
187
185
  align: "center",
188
186
  iconSize: 14,
189
187
  inactiveColor: "#ccc",
190
- itemSorter: "value",
191
188
  layout: "horizontal",
192
189
  verticalAlign: "middle"
193
190
  });
@@ -12,14 +12,14 @@ import { useMargin as z, useChartWidth as A, useChartHeight as F } from "../cont
12
12
  import { setLegendSettings as N, setLegendSize as y } from "../state/legendSlice.js";
13
13
  import { useAppDispatch as w } from "../state/hooks.js";
14
14
  var q = ["contextPayload"];
15
- function m() {
16
- return m = Object.assign ? Object.assign.bind() : function(t) {
15
+ function s() {
16
+ return s = Object.assign ? Object.assign.bind() : function(t) {
17
17
  for (var e = 1; e < arguments.length; e++) {
18
18
  var r = arguments[e];
19
19
  for (var n in r) ({}).hasOwnProperty.call(r, n) && (t[n] = r[n]);
20
20
  }
21
21
  return t;
22
- }, m.apply(null, arguments);
22
+ }, s.apply(null, arguments);
23
23
  }
24
24
  function P(t, e) {
25
25
  var r = Object.keys(t);
@@ -35,14 +35,14 @@ function d(t) {
35
35
  for (var e = 1; e < arguments.length; e++) {
36
36
  var r = arguments[e] != null ? arguments[e] : {};
37
37
  e % 2 ? P(Object(r), !0).forEach(function(n) {
38
- s(t, n, r[n]);
38
+ v(t, n, r[n]);
39
39
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : P(Object(r)).forEach(function(n) {
40
40
  Object.defineProperty(t, n, Object.getOwnPropertyDescriptor(r, n));
41
41
  });
42
42
  }
43
43
  return t;
44
44
  }
45
- function s(t, e, r) {
45
+ function v(t, e, r) {
46
46
  return (e = U(e)) in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
47
47
  }
48
48
  function U(t) {
@@ -91,22 +91,22 @@ function R(t) {
91
91
  function T(t, e, r, n, i, a) {
92
92
  var {
93
93
  layout: h,
94
- align: l,
94
+ align: u,
95
95
  verticalAlign: f
96
- } = e, g, u;
97
- return (!t || (t.left === void 0 || t.left === null) && (t.right === void 0 || t.right === null)) && (l === "center" && h === "vertical" ? g = {
96
+ } = e, m, l;
97
+ return (!t || (t.left === void 0 || t.left === null) && (t.right === void 0 || t.right === null)) && (u === "center" && h === "vertical" ? m = {
98
98
  left: ((n || 0) - a.width) / 2
99
- } : g = l === "right" ? {
99
+ } : m = u === "right" ? {
100
100
  right: r && r.right || 0
101
101
  } : {
102
102
  left: r && r.left || 0
103
- }), (!t || (t.top === void 0 || t.top === null) && (t.bottom === void 0 || t.bottom === null)) && (f === "middle" ? u = {
103
+ }), (!t || (t.top === void 0 || t.top === null) && (t.bottom === void 0 || t.bottom === null)) && (f === "middle" ? l = {
104
104
  top: ((i || 0) - a.height) / 2
105
- } : u = f === "bottom" ? {
105
+ } : l = f === "bottom" ? {
106
106
  bottom: r && r.bottom || 0
107
107
  } : {
108
108
  top: r && r.top || 0
109
- }), d(d({}, g), u);
109
+ }), d(d({}, m), l);
110
110
  }
111
111
  function V(t) {
112
112
  var e = w();
@@ -128,34 +128,38 @@ function J(t) {
128
128
  width: i,
129
129
  height: a,
130
130
  wrapperStyle: h,
131
- portal: l
132
- } = t, [f, g] = H([e]), u = A(), p = F(), j = u - (n.left || 0) - (n.right || 0), c = v.getWidthOrHeight(t.layout, a, i, j), E = l ? h : d(d({
131
+ portal: u
132
+ } = t, [f, m] = H([e]), l = A(), g = F();
133
+ if (l == null || g == null)
134
+ return null;
135
+ var j = l - (n.left || 0) - (n.right || 0), c = p.getWidthOrHeight(t.layout, a, i, j), S = u ? h : d(d({
133
136
  position: "absolute",
134
137
  width: c?.width || i || "auto",
135
138
  height: c?.height || a || "auto"
136
- }, T(h, t, n, u, p, f)), h), b = l ?? r;
139
+ }, T(h, t, n, l, g, f)), h), b = u ?? r;
137
140
  if (b == null)
138
141
  return null;
139
- var S = /* @__PURE__ */ o.createElement("div", {
142
+ var E = /* @__PURE__ */ o.createElement("div", {
140
143
  className: "recharts-legend-wrapper",
141
- style: E,
142
- ref: g
144
+ style: S,
145
+ ref: m
143
146
  }, /* @__PURE__ */ o.createElement(V, {
144
147
  layout: t.layout,
145
148
  align: t.align,
146
- verticalAlign: t.verticalAlign
149
+ verticalAlign: t.verticalAlign,
150
+ itemSorter: t.itemSorter
147
151
  }), /* @__PURE__ */ o.createElement(G, {
148
152
  width: f.width,
149
153
  height: f.height
150
- }), /* @__PURE__ */ o.createElement(R, m({}, t, c, {
154
+ }), /* @__PURE__ */ o.createElement(R, s({}, t, c, {
151
155
  margin: n,
152
- chartWidth: u,
153
- chartHeight: p,
156
+ chartWidth: l,
157
+ chartHeight: g,
154
158
  contextPayload: e
155
159
  })));
156
- return /* @__PURE__ */ L(S, b);
160
+ return /* @__PURE__ */ L(E, b);
157
161
  }
158
- class v extends x {
162
+ class p extends x {
159
163
  static getWidthOrHeight(e, r, n, i) {
160
164
  return e === "vertical" && _(r) ? {
161
165
  height: r
@@ -167,13 +171,14 @@ class v extends x {
167
171
  return /* @__PURE__ */ o.createElement(J, this.props);
168
172
  }
169
173
  }
170
- s(v, "displayName", "Legend");
171
- s(v, "defaultProps", {
174
+ v(p, "displayName", "Legend");
175
+ v(p, "defaultProps", {
172
176
  align: "center",
173
177
  iconSize: 14,
178
+ itemSorter: "value",
174
179
  layout: "horizontal",
175
180
  verticalAlign: "bottom"
176
181
  });
177
182
  export {
178
- v as Legend
183
+ p as Legend
179
184
  };
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
  import { clsx as T } from "../../../clsx/dist/clsx.js";
3
- import * as z from "react";
3
+ import * as w from "react";
4
4
  import { forwardRef as M, useRef as C, useImperativeHandle as N, useState as K, useCallback as B, useEffect as I, useMemo as $, cloneElement as q } from "react";
5
5
  import A from "../../../../_virtual/throttle.js";
6
6
  import { isPercent as f } from "../util/DataUtils.js";
7
- import { warn as w } from "../util/LogUtils.js";
8
- function x(t, r) {
7
+ import { warn as O } from "../util/LogUtils.js";
8
+ function E(t, r) {
9
9
  var e = Object.keys(t);
10
10
  if (Object.getOwnPropertySymbols) {
11
11
  var n = Object.getOwnPropertySymbols(t);
@@ -15,12 +15,12 @@ function x(t, r) {
15
15
  }
16
16
  return e;
17
17
  }
18
- function O(t) {
18
+ function j(t) {
19
19
  for (var r = 1; r < arguments.length; r++) {
20
20
  var e = arguments[r] != null ? arguments[r] : {};
21
- r % 2 ? x(Object(e), !0).forEach(function(n) {
21
+ r % 2 ? E(Object(e), !0).forEach(function(n) {
22
22
  F(t, n, e[n]);
23
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(e)) : x(Object(e)).forEach(function(n) {
23
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(e)) : E(Object(e)).forEach(function(n) {
24
24
  Object.defineProperty(t, n, Object.getOwnPropertyDescriptor(e, n));
25
25
  });
26
26
  }
@@ -58,20 +58,20 @@ var Y = /* @__PURE__ */ M((t, r) => {
58
58
  */
59
59
  minWidth: m = 0,
60
60
  minHeight: g,
61
- maxHeight: d,
62
- children: j,
61
+ maxHeight: l,
62
+ children: P,
63
63
  debounce: p = 0,
64
- id: P,
65
- className: E,
66
- onResize: S,
67
- style: D = {}
68
- } = t, l = C(null), v = C();
69
- v.current = S, N(r, () => l.current);
70
- var [R, _] = K({
64
+ id: R,
65
+ className: S,
66
+ onResize: D,
67
+ style: _ = {}
68
+ } = t, d = C(null), v = C();
69
+ v.current = D, N(r, () => d.current);
70
+ var [H, k] = K({
71
71
  containerWidth: n.width,
72
72
  containerHeight: n.height
73
73
  }), b = B((c, h) => {
74
- _((o) => {
74
+ k((o) => {
75
75
  var i = Math.round(c), u = Math.round(h);
76
76
  return o.containerWidth === i && o.containerHeight === u ? o : {
77
77
  containerWidth: i,
@@ -82,10 +82,10 @@ var Y = /* @__PURE__ */ M((t, r) => {
82
82
  I(() => {
83
83
  var c = (u) => {
84
84
  var y, {
85
- width: H,
86
- height: W
85
+ width: W,
86
+ height: z
87
87
  } = u[0].contentRect;
88
- b(H, W), (y = v.current) === null || y === void 0 || y.call(v, H, W);
88
+ b(W, z), (y = v.current) === null || y === void 0 || y.call(v, W, z);
89
89
  };
90
90
  p > 0 && (c = A(c, p, {
91
91
  trailing: !0,
@@ -94,48 +94,52 @@ var Y = /* @__PURE__ */ M((t, r) => {
94
94
  var h = new ResizeObserver(c), {
95
95
  width: o,
96
96
  height: i
97
- } = l.current.getBoundingClientRect();
98
- return b(o, i), h.observe(l.current), () => {
97
+ } = d.current.getBoundingClientRect();
98
+ return b(o, i), h.observe(d.current), () => {
99
99
  h.disconnect();
100
100
  };
101
101
  }, [b, p]);
102
- var k = $(() => {
102
+ var x = $(() => {
103
103
  var {
104
104
  containerWidth: c,
105
105
  containerHeight: h
106
- } = R;
106
+ } = H;
107
107
  if (c < 0 || h < 0)
108
108
  return null;
109
- w(f(a) || f(s), `The width(%s) and height(%s) are both fixed numbers,
110
- maybe you don't need to use a ResponsiveContainer.`, a, s), w(!e || e > 0, "The aspect(%s) must be greater than zero.", e);
109
+ O(f(a) || f(s), `The width(%s) and height(%s) are both fixed numbers,
110
+ maybe you don't need to use a ResponsiveContainer.`, a, s), O(!e || e > 0, "The aspect(%s) must be greater than zero.", e);
111
111
  var o = f(a) ? c : a, i = f(s) ? h : s;
112
- return e && e > 0 && (o ? i = o / e : i && (o = i * e), d && i > d && (i = d)), w(o > 0 || i > 0, `The width(%s) and height(%s) of chart should be greater than 0,
112
+ return e && e > 0 && (o ? i = o / e : i && (o = i * e), l && i > l && (i = l)), O(o > 0 || i > 0, `The width(%s) and height(%s) of chart should be greater than 0,
113
113
  please check the style of container, or the props width(%s) and height(%s),
114
114
  or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
115
- height and width.`, o, i, a, s, m, g, e), z.Children.map(j, (u) => /* @__PURE__ */ q(u, {
115
+ height and width.`, o, i, a, s, m, g, e), w.Children.map(P, (u) => /* @__PURE__ */ q(u, {
116
116
  width: o,
117
117
  height: i,
118
118
  // calculate the actual size and override it.
119
- style: O({
120
- height: "100%",
121
- width: "100%",
122
- maxHeight: i,
123
- maxWidth: o
119
+ style: j({
120
+ width: o,
121
+ height: i
124
122
  }, u.props.style)
125
123
  }));
126
- }, [e, j, s, d, g, m, R, a]);
127
- return /* @__PURE__ */ z.createElement("div", {
128
- id: P ? "".concat(P) : void 0,
129
- className: T("recharts-responsive-container", E),
130
- style: O(O({}, D), {}, {
124
+ }, [e, P, s, l, g, m, H, a]);
125
+ return /* @__PURE__ */ w.createElement("div", {
126
+ id: R ? "".concat(R) : void 0,
127
+ className: T("recharts-responsive-container", S),
128
+ style: j(j({}, _), {}, {
131
129
  width: a,
132
130
  height: s,
133
131
  minWidth: m,
134
132
  minHeight: g,
135
- maxHeight: d
133
+ maxHeight: l
136
134
  }),
137
- ref: l
138
- }, k);
135
+ ref: d
136
+ }, /* @__PURE__ */ w.createElement("div", {
137
+ style: {
138
+ width: 0,
139
+ height: 0,
140
+ overflow: "visible"
141
+ }
142
+ }, x));
139
143
  });
140
144
  export {
141
145
  Y as ResponsiveContainer