@fuf-stack/pixels 1.13.2 → 1.14.1

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 (128) hide show
  1. package/dist/Accordion/Accordion.d.mts +18 -18
  2. package/dist/Accordion/Accordion.d.mts.map +1 -1
  3. package/dist/Accordion/Accordion.mjs +3 -2
  4. package/dist/Accordion/Accordion.mjs.map +1 -1
  5. package/dist/Alert/Alert.d.mts +42 -42
  6. package/dist/Alert/Alert.d.mts.map +1 -1
  7. package/dist/Alert/Alert.mjs +5 -3
  8. package/dist/Alert/Alert.mjs.map +1 -1
  9. package/dist/Avatar/Avatar.d.mts +14 -14
  10. package/dist/Avatar/Avatar.d.mts.map +1 -1
  11. package/dist/Avatar/Avatar.mjs +3 -1
  12. package/dist/Avatar/Avatar.mjs.map +1 -1
  13. package/dist/AvatarGroup/AvatarGroup.d.mts +2 -2
  14. package/dist/AvatarGroup/AvatarGroup.d.mts.map +1 -1
  15. package/dist/Badge/Badge.d.mts +3 -3
  16. package/dist/Badge/Badge.d.mts.map +1 -1
  17. package/dist/Badge/Badge.mjs +3 -1
  18. package/dist/Badge/Badge.mjs.map +1 -1
  19. package/dist/Breadcrumb/Breadcrumb.d.mts +15 -15
  20. package/dist/Breadcrumb/Breadcrumb.d.mts.map +1 -1
  21. package/dist/Breadcrumb/Breadcrumb.mjs +2 -1
  22. package/dist/Breadcrumb/Breadcrumb.mjs.map +1 -1
  23. package/dist/Button/Button.d.mts +2 -2
  24. package/dist/Button/Button.d.mts.map +1 -1
  25. package/dist/Button/Button.mjs +11 -10
  26. package/dist/Button/Button.mjs.map +1 -1
  27. package/dist/Card/Card.d.mts +14 -14
  28. package/dist/Card/Card.d.mts.map +1 -1
  29. package/dist/Card/Card.mjs +2 -1
  30. package/dist/Card/Card.mjs.map +1 -1
  31. package/dist/Drawer/Drawer.d.mts +27 -27
  32. package/dist/Drawer/Drawer.d.mts.map +1 -1
  33. package/dist/Drawer/Drawer.mjs +3 -1
  34. package/dist/Drawer/Drawer.mjs.map +1 -1
  35. package/dist/Json/Json.d.mts +2 -2
  36. package/dist/Json/Json.d.mts.map +1 -1
  37. package/dist/Json/jsonParser.mjs +9 -4
  38. package/dist/Json/jsonParser.mjs.map +1 -1
  39. package/dist/Label/Label.d.mts +34 -34
  40. package/dist/Label/Label.d.mts.map +1 -1
  41. package/dist/Label/Label.mjs +3 -2
  42. package/dist/Label/Label.mjs.map +1 -1
  43. package/dist/Menu/Menu.d.mts +16 -16
  44. package/dist/Menu/Menu.d.mts.map +1 -1
  45. package/dist/Menu/Menu.mjs +2 -1
  46. package/dist/Menu/Menu.mjs.map +1 -1
  47. package/dist/Modal/Modal.d.mts +12 -12
  48. package/dist/Modal/Modal.d.mts.map +1 -1
  49. package/dist/Modal/Modal.mjs +3 -1
  50. package/dist/Modal/Modal.mjs.map +1 -1
  51. package/dist/Modal/modalStore.d.mts +4 -5
  52. package/dist/Modal/modalStore.d.mts.map +1 -1
  53. package/dist/Popover/Popover.d.mts +25 -25
  54. package/dist/Popover/Popover.d.mts.map +1 -1
  55. package/dist/Popover/Popover.mjs +2 -1
  56. package/dist/Popover/Popover.mjs.map +1 -1
  57. package/dist/Progress/Progress.d.mts +10 -10
  58. package/dist/Progress/Progress.d.mts.map +1 -1
  59. package/dist/Progress/Progress.mjs +2 -1
  60. package/dist/Progress/Progress.mjs.map +1 -1
  61. package/dist/ProgressCircular/ProgressCircular.d.mts +9 -9
  62. package/dist/ProgressCircular/ProgressCircular.d.mts.map +1 -1
  63. package/dist/ProgressCircular/ProgressCircular.mjs +6 -6
  64. package/dist/ProgressCircular/ProgressCircular.mjs.map +1 -1
  65. package/dist/ScrollShadow/ScrollShadow.d.mts +2 -2
  66. package/dist/ScrollShadow/ScrollShadow.d.mts.map +1 -1
  67. package/dist/SearchInput/SearchInput.d.mts +4 -4
  68. package/dist/SearchInput/SearchInput.d.mts.map +1 -1
  69. package/dist/SearchInput/SearchInput.mjs +2 -1
  70. package/dist/SearchInput/SearchInput.mjs.map +1 -1
  71. package/dist/Table/Table.d.mts +6 -6
  72. package/dist/Table/Table.d.mts.map +1 -1
  73. package/dist/Table/Table.mjs +3 -1
  74. package/dist/Table/Table.mjs.map +1 -1
  75. package/dist/Tabs/Tabs.d.mts +5 -5
  76. package/dist/Tabs/Tabs.d.mts.map +1 -1
  77. package/dist/Tabs/Tabs.mjs +3 -1
  78. package/dist/Tabs/Tabs.mjs.map +1 -1
  79. package/dist/Toast/Toaster.d.mts +2 -2
  80. package/dist/Toast/Toaster.d.mts.map +1 -1
  81. package/dist/Toast/toast.d.mts +3 -3
  82. package/dist/Toast/toast.d.mts.map +1 -1
  83. package/dist/Tooltip/Tooltip.d.mts +17 -17
  84. package/dist/Tooltip/Tooltip.d.mts.map +1 -1
  85. package/dist/Tooltip/Tooltip.mjs +2 -1
  86. package/dist/Tooltip/Tooltip.mjs.map +1 -1
  87. package/dist/_virtual/_rolldown/runtime.mjs +1 -1
  88. package/dist/hooks/useDebounce/useDebounce.d.mts +1 -2
  89. package/dist/hooks/useDebounce/useDebounce.d.mts.map +1 -1
  90. package/dist/hooks/useDebounce/useDebounce.mjs +8 -6
  91. package/dist/hooks/useDebounce/useDebounce.mjs.map +1 -1
  92. package/dist/hooks/useIsInitialRenderCycle/useIsInitialRenderCycle.d.mts +1 -2
  93. package/dist/hooks/useIsInitialRenderCycle/useIsInitialRenderCycle.d.mts.map +1 -1
  94. package/dist/hooks/useIsInitialRenderCycle/useIsInitialRenderCycle.mjs.map +1 -1
  95. package/dist/hooks/useLocalStorage/useLocalStorage.d.mts +1 -2
  96. package/dist/hooks/useLocalStorage/useLocalStorage.d.mts.map +1 -1
  97. package/dist/hooks/useLocalStorage/useLocalStorage.mjs.map +1 -1
  98. package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/Container.mjs +2 -1
  99. package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/Container.mjs.map +1 -1
  100. package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/arrow/TriangleArrow.mjs +8 -7
  101. package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/arrow/TriangleArrow.mjs.map +1 -1
  102. package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/comps/Copied.mjs.map +1 -1
  103. package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/comps/KeyValues.mjs +11 -8
  104. package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/comps/KeyValues.mjs.map +1 -1
  105. package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/comps/NestedClose.mjs.map +1 -1
  106. package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/comps/NestedOpen.mjs.map +1 -1
  107. package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/comps/Value.mjs.map +1 -1
  108. package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/index.mjs.map +1 -1
  109. package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/section/CountInfo.mjs.map +1 -1
  110. package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/section/CountInfoExtra.mjs.map +1 -1
  111. package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/section/Ellipsis.mjs.map +1 -1
  112. package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/section/KeyName.mjs.map +1 -1
  113. package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/section/Row.mjs.map +1 -1
  114. package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/store/Expands.mjs.map +1 -1
  115. package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/store/Section.mjs.map +1 -1
  116. package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/store/ShowTools.mjs.map +1 -1
  117. package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/store/Symbols.mjs.map +1 -1
  118. package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/store/Types.mjs.map +1 -1
  119. package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/store.mjs.map +1 -1
  120. package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/symbol/index.mjs.map +1 -1
  121. package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/types/index.mjs.map +1 -1
  122. package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/utils/useRender.mjs +6 -3
  123. package/dist/node_modules/.pnpm/@uiw_react-json-view@2.0.0-alpha.43_@babel_runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/utils/useRender.mjs.map +1 -1
  124. package/dist/utils/createWithSuspense/createWithSuspense.d.mts +3 -4
  125. package/dist/utils/createWithSuspense/createWithSuspense.d.mts.map +1 -1
  126. package/dist/utils/createWithSuspense/createWithSuspense.mjs +20 -19
  127. package/dist/utils/createWithSuspense/createWithSuspense.mjs.map +1 -1
  128. package/package.json +6 -6
@@ -2,7 +2,7 @@ import { TVClassName, TVProps } from "@fuf-stack/pixel-utils";
2
2
  import { ReactNode } from "react";
3
3
  import { TooltipPlacement } from "@heroui/tooltip";
4
4
  //#region src/Tooltip/Tooltip.d.ts
5
- declare const tooltipVariants: ((props?: ({
5
+ export declare const tooltipVariants: ((props?: ({
6
6
  size?: "sm" | "md" | "lg" | "full" | "xs" | "xl" | "2xl" | "3xl" | undefined;
7
7
  } & ({
8
8
  class?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
@@ -329,12 +329,12 @@ declare const tooltipVariants: ((props?: ({
329
329
  } & ({
330
330
  class?: (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined) | {
331
331
  base?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
332
+ content?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
333
+ trigger?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
332
334
  body?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
333
- divider?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
334
335
  footer?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
335
336
  header?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
336
- content?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
337
- trigger?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
337
+ divider?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
338
338
  footerWrapper?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
339
339
  headerWrapper?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
340
340
  };
@@ -343,18 +343,18 @@ declare const tooltipVariants: ((props?: ({
343
343
  class?: never;
344
344
  className?: (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined) | {
345
345
  base?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
346
+ content?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
347
+ trigger?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
346
348
  body?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
347
- divider?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
348
349
  footer?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
349
350
  header?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
350
- content?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
351
- trigger?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
351
+ divider?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
352
352
  footerWrapper?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
353
353
  headerWrapper?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
354
354
  };
355
355
  }))[];
356
356
  compoundSlots: ({
357
- slots: ("base" | "body" | "divider" | "footer" | "header" | "content" | "trigger" | "footerWrapper" | "headerWrapper")[];
357
+ slots: ("base" | "content" | "trigger" | "body" | "footer" | "header" | "divider" | "footerWrapper" | "headerWrapper")[];
358
358
  } & ({
359
359
  size?: "sm" | "md" | "lg" | "full" | "xs" | "xl" | "2xl" | "3xl" | ("sm" | "md" | "lg" | "full" | "xs" | "xl" | "2xl" | "3xl")[] | undefined;
360
360
  } & ({
@@ -428,12 +428,12 @@ declare const tooltipVariants: ((props?: ({
428
428
  } & ({
429
429
  class?: (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined) | {
430
430
  base?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
431
+ content?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
432
+ trigger?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
431
433
  body?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
432
- divider?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
433
434
  footer?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
434
435
  header?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
435
- content?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
436
- trigger?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
436
+ divider?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
437
437
  footerWrapper?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
438
438
  headerWrapper?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
439
439
  };
@@ -442,18 +442,18 @@ declare const tooltipVariants: ((props?: ({
442
442
  class?: never;
443
443
  className?: (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined) | {
444
444
  base?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
445
+ content?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
446
+ trigger?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
445
447
  body?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
446
- divider?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
447
448
  footer?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
448
449
  header?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
449
- content?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
450
- trigger?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
450
+ divider?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
451
451
  footerWrapper?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
452
452
  headerWrapper?: string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | readonly (string | false | 0 | 0n | /*elided*/ any | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined)[] | null | undefined;
453
453
  };
454
454
  }))[];
455
455
  compoundSlots: ({
456
- slots: ("base" | "body" | "divider" | "footer" | "header" | "content" | "trigger" | "footerWrapper" | "headerWrapper")[];
456
+ slots: ("base" | "content" | "trigger" | "body" | "footer" | "header" | "divider" | "footerWrapper" | "headerWrapper")[];
457
457
  } & ({
458
458
  size?: "sm" | "md" | "lg" | "full" | "xs" | "xl" | "2xl" | "3xl" | ("sm" | "md" | "lg" | "full" | "xs" | "xl" | "2xl" | "3xl")[] | undefined;
459
459
  } & ({
@@ -468,7 +468,7 @@ declare const tooltipVariants: ((props?: ({
468
468
  type VariantProps = TVProps<typeof tooltipVariants>;
469
469
  type ClassName = TVClassName<typeof tooltipVariants>;
470
470
  type TooltipPlacement$1 = TooltipPlacement;
471
- interface TooltipProps extends VariantProps {
471
+ export interface TooltipProps extends VariantProps {
472
472
  /** trigger child components */
473
473
  children: ReactNode;
474
474
  /** CSS class name */
@@ -499,5 +499,5 @@ interface TooltipProps extends VariantProps {
499
499
  */
500
500
  declare const Tooltip$1: ({ children, className: _className, closeDelay, containerPadding, content, defaultOpen, delay, footer, header, onOpenChange, placement, size }: TooltipProps) => import("react").JSX.Element;
501
501
  //#endregion
502
- export { TooltipPlacement$1 as TooltipPlacement, TooltipProps, Tooltip$1 as default, tooltipVariants };
502
+ export { TooltipPlacement$1 as TooltipPlacement, Tooltip$1 as default };
503
503
  //# sourceMappingURL=Tooltip.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tooltip.d.mts","names":[],"sources":["../../src/Tooltip/Tooltip.tsx"],"mappings":";;;;cAWa,mBAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AU;;EAEV,YAAY;;EAEZ;;EAEA;;EAEA,SAAS;;EAET;;EAEA;;EAEA,SAAS;;EAET,SAAS;;EAET,gBAAgB;;EAEhB,YAAY;;EAEZ,OAAO;;;;;cAMH,cAAW,UAAA,WAAA,YAAA,YAAA,kBAAA,SAAA,aAAA,OAAA,QAAA,QAAA,cAAA,WAAA,QAad,iCAAY,IAAA"}
@@ -58,7 +58,8 @@ const tooltipVariants = tv({
58
58
  * Tooltip component based on [HeroUI Tooltip](https://www.heroui.com//docs/components/tooltip)
59
59
  */
60
60
  const Tooltip$1 = ({ children, className: _className = void 0, closeDelay = 500, containerPadding = 0, content, defaultOpen = false, delay = 0, footer = void 0, header = void 0, onOpenChange = void 0, placement = "top", size = "full" }) => {
61
- const classNames = variantsToClassNames(tooltipVariants({ size }), _className, "base");
61
+ const variants = tooltipVariants({ size });
62
+ const classNames = variantsToClassNames(variants, _className, "base");
62
63
  return /* @__PURE__ */ jsx(Tooltip, {
63
64
  classNames,
64
65
  closeDelay,
@@ -1 +1 @@
1
- {"version":3,"file":"Tooltip.mjs","names":["Tooltip","HeroTooltip","ScrollShadow"],"sources":["../../src/Tooltip/Tooltip.tsx"],"sourcesContent":["import type { TVClassName, TVProps } from '@fuf-stack/pixel-utils';\nimport type { TooltipPlacement as HeroTooltipPlacement } from '@heroui/tooltip';\nimport type { ReactNode } from 'react';\n\nimport { Tooltip as HeroTooltip } from '@heroui/tooltip';\n\nimport { tv, variantsToClassNames } from '@fuf-stack/pixel-utils';\n\nimport ScrollShadow from '../ScrollShadow/ScrollShadow';\n\n// tooltip variants\nexport const tooltipVariants = tv({\n slots: {\n base: '',\n body: 'w-full px-4 py-2',\n content: 'flex max-h-[80vh] flex-col p-0',\n divider: 'm-0 w-full border-divider p-0',\n footer: 'w-full px-4 py-2',\n footerWrapper: 'w-full',\n header: 'w-full px-4 pb-1 pt-2 font-semibold',\n headerWrapper: 'w-full',\n trigger: 'cursor-pointer',\n },\n variants: {\n size: {\n xs: {\n // base: 'max-w-xs',\n body: 'max-w-xs',\n footer: 'max-w-xs',\n header: 'max-w-xs',\n },\n sm: {\n // base: 'max-w-sm',\n body: 'max-w-sm',\n footer: 'max-w-sm',\n header: 'max-w-sm',\n },\n md: {\n // base: 'max-w-md',\n body: 'max-w-md',\n footer: 'max-w-md',\n header: 'max-w-md',\n },\n lg: {\n // base: 'max-w-lg',\n body: 'max-w-lg',\n footer: 'max-w-lg',\n header: 'max-w-lg',\n },\n xl: {\n // base: 'max-w-xl',\n body: 'max-w-xl',\n footer: 'max-w-xl',\n header: 'max-w-xl',\n },\n '2xl': {\n // base: 'max-w-2xl',\n body: 'max-w-2xl',\n footer: 'max-w-2xl',\n header: 'max-w-2xl',\n },\n '3xl': {\n // base: 'max-w-3xl',\n body: 'max-w-3xl',\n footer: 'max-w-3xl',\n header: 'max-w-3xl',\n },\n full: { base: '' },\n },\n },\n});\n\ntype VariantProps = TVProps<typeof tooltipVariants>;\ntype ClassName = TVClassName<typeof tooltipVariants>;\n\nexport type TooltipPlacement = HeroTooltipPlacement;\n\nexport interface TooltipProps extends VariantProps {\n /** trigger child components */\n children: ReactNode;\n /** CSS class name */\n className?: ClassName;\n /** delay in milliseconds before the tooltip opens. */\n closeDelay?: number;\n /** placement padding in px */\n containerPadding?: number;\n /** content displayed in the tooltip */\n content: ReactNode;\n /** open overlay initially when uncontrolled */\n defaultOpen?: boolean;\n /** delay in milliseconds before the tooltip opens. */\n delay?: number;\n /** tooltip footer */\n footer?: ReactNode;\n /** tooltip header */\n header?: ReactNode;\n /** handler that is called when the overlay's open state changes */\n onOpenChange?: (isOpen: boolean) => void;\n /** placement if the tooltip */\n placement?: TooltipPlacement;\n /** size of the tooltip */\n size?: VariantProps['size'];\n}\n\n/**\n * Tooltip component based on [HeroUI Tooltip](https://www.heroui.com//docs/components/tooltip)\n */\nconst Tooltip = ({\n children,\n className: _className = undefined,\n closeDelay = 500,\n containerPadding = 0,\n content,\n defaultOpen = false,\n delay = 0,\n footer = undefined,\n header = undefined,\n onOpenChange = undefined,\n placement = 'top',\n size = 'full',\n}: TooltipProps) => {\n // classNames from slots\n const variants = tooltipVariants({ size });\n const classNames = variantsToClassNames(variants, _className, 'base');\n\n return (\n <HeroTooltip\n classNames={classNames}\n closeDelay={closeDelay}\n containerPadding={containerPadding}\n content={\n <div>\n {header ? (\n <div className={classNames.headerWrapper}>\n <div className={classNames.header}>{header}</div>\n <hr className={classNames.divider} />\n </div>\n ) : null}\n <ScrollShadow className={classNames.body}>{content}</ScrollShadow>\n {footer ? (\n <div className={classNames.footerWrapper}>\n <hr className={classNames.divider} />\n <div className={classNames.footer}>{footer}</div>\n </div>\n ) : null}\n </div>\n }\n defaultOpen={defaultOpen}\n delay={delay}\n onClick={(e) => {\n e.preventDefault();\n }}\n onOpenChange={onOpenChange}\n placement={placement}\n shouldFlip\n showArrow\n >\n <span className={classNames.trigger}>{children}</span>\n </HeroTooltip>\n );\n};\n\nexport default Tooltip;\n"],"mappings":";;;;;AAWA,MAAa,kBAAkB,GAAG;CAChC,OAAO;EACL,MAAM;EACN,MAAM;EACN,SAAS;EACT,SAAS;EACT,QAAQ;EACR,eAAe;EACf,QAAQ;EACR,eAAe;EACf,SAAS;CACX;CACA,UAAU,EACR,MAAM;EACJ,IAAI;GAEF,MAAM;GACN,QAAQ;GACR,QAAQ;EACV;EACA,IAAI;GAEF,MAAM;GACN,QAAQ;GACR,QAAQ;EACV;EACA,IAAI;GAEF,MAAM;GACN,QAAQ;GACR,QAAQ;EACV;EACA,IAAI;GAEF,MAAM;GACN,QAAQ;GACR,QAAQ;EACV;EACA,IAAI;GAEF,MAAM;GACN,QAAQ;GACR,QAAQ;EACV;EACA,OAAO;GAEL,MAAM;GACN,QAAQ;GACR,QAAQ;EACV;EACA,OAAO;GAEL,MAAM;GACN,QAAQ;GACR,QAAQ;EACV;EACA,MAAM,EAAE,MAAM,GAAG;CACnB,EACF;AACF,CAAC;;;;AAqCD,MAAMA,aAAW,EACf,UACA,WAAW,aAAa,KAAA,GACxB,aAAa,KACb,mBAAmB,GACnB,SACA,cAAc,OACd,QAAQ,GACR,SAAS,KAAA,GACT,SAAS,KAAA,GACT,eAAe,KAAA,GACf,YAAY,OACZ,OAAO,aACW;CAGlB,MAAM,aAAa,qBADF,gBAAgB,EAAE,KAAK,CACO,GAAG,YAAY,MAAM;CAEpE,OACE,oBAACC,SAAD;EACc;EACA;EACM;EAClB,SACE,qBAAC,OAAD,EAAA,UAAA;GACG,SACC,qBAAC,OAAD;IAAK,WAAW,WAAW;IAA3B,UAAA,CACE,oBAAC,OAAD;KAAK,WAAW,WAAW;KAAS,UAAA;IAAY,CAAA,GAChD,oBAAC,MAAD,EAAI,WAAW,WAAW,QAAU,CAAA,CACjC;GACH,CAAA,IAAA;GACJ,oBAACC,sBAAD;IAAc,WAAW,WAAW;IAAO,UAAA;GAAsB,CAAA;GAChE,SACC,qBAAC,OAAD;IAAK,WAAW,WAAW;IAA3B,UAAA,CACE,oBAAC,MAAD,EAAI,WAAW,WAAW,QAAU,CAAA,GACpC,oBAAC,OAAD;KAAK,WAAW,WAAW;KAAS,UAAA;IAAY,CAAA,CAC7C;GACH,CAAA,IAAA;EACD,EAAA,CAAA;EAEM;EACN;EACP,UAAU,MAAM;GACd,EAAE,eAAe;EACnB;EACc;EACH;EACX,YAAA;EACA,WAAA;EAEA,UAAA,oBAAC,QAAD;GAAM,WAAW,WAAW;GAAU;EAAe,CAAA;CAC1C,CAAA;AAEjB"}
1
+ {"version":3,"file":"Tooltip.mjs","names":["Tooltip","HeroTooltip","ScrollShadow"],"sources":["../../src/Tooltip/Tooltip.tsx"],"sourcesContent":["import type { TVClassName, TVProps } from '@fuf-stack/pixel-utils';\nimport type { TooltipPlacement as HeroTooltipPlacement } from '@heroui/tooltip';\nimport type { ReactNode } from 'react';\n\nimport { Tooltip as HeroTooltip } from '@heroui/tooltip';\n\nimport { tv, variantsToClassNames } from '@fuf-stack/pixel-utils';\n\nimport ScrollShadow from '../ScrollShadow/ScrollShadow';\n\n// tooltip variants\nexport const tooltipVariants = tv({\n slots: {\n base: '',\n body: 'w-full px-4 py-2',\n content: 'flex max-h-[80vh] flex-col p-0',\n divider: 'm-0 w-full border-divider p-0',\n footer: 'w-full px-4 py-2',\n footerWrapper: 'w-full',\n header: 'w-full px-4 pb-1 pt-2 font-semibold',\n headerWrapper: 'w-full',\n trigger: 'cursor-pointer',\n },\n variants: {\n size: {\n xs: {\n // base: 'max-w-xs',\n body: 'max-w-xs',\n footer: 'max-w-xs',\n header: 'max-w-xs',\n },\n sm: {\n // base: 'max-w-sm',\n body: 'max-w-sm',\n footer: 'max-w-sm',\n header: 'max-w-sm',\n },\n md: {\n // base: 'max-w-md',\n body: 'max-w-md',\n footer: 'max-w-md',\n header: 'max-w-md',\n },\n lg: {\n // base: 'max-w-lg',\n body: 'max-w-lg',\n footer: 'max-w-lg',\n header: 'max-w-lg',\n },\n xl: {\n // base: 'max-w-xl',\n body: 'max-w-xl',\n footer: 'max-w-xl',\n header: 'max-w-xl',\n },\n '2xl': {\n // base: 'max-w-2xl',\n body: 'max-w-2xl',\n footer: 'max-w-2xl',\n header: 'max-w-2xl',\n },\n '3xl': {\n // base: 'max-w-3xl',\n body: 'max-w-3xl',\n footer: 'max-w-3xl',\n header: 'max-w-3xl',\n },\n full: { base: '' },\n },\n },\n});\n\ntype VariantProps = TVProps<typeof tooltipVariants>;\ntype ClassName = TVClassName<typeof tooltipVariants>;\n\nexport type TooltipPlacement = HeroTooltipPlacement;\n\nexport interface TooltipProps extends VariantProps {\n /** trigger child components */\n children: ReactNode;\n /** CSS class name */\n className?: ClassName;\n /** delay in milliseconds before the tooltip opens. */\n closeDelay?: number;\n /** placement padding in px */\n containerPadding?: number;\n /** content displayed in the tooltip */\n content: ReactNode;\n /** open overlay initially when uncontrolled */\n defaultOpen?: boolean;\n /** delay in milliseconds before the tooltip opens. */\n delay?: number;\n /** tooltip footer */\n footer?: ReactNode;\n /** tooltip header */\n header?: ReactNode;\n /** handler that is called when the overlay's open state changes */\n onOpenChange?: (isOpen: boolean) => void;\n /** placement if the tooltip */\n placement?: TooltipPlacement;\n /** size of the tooltip */\n size?: VariantProps['size'];\n}\n\n/**\n * Tooltip component based on [HeroUI Tooltip](https://www.heroui.com//docs/components/tooltip)\n */\nconst Tooltip = ({\n children,\n className: _className = undefined,\n closeDelay = 500,\n containerPadding = 0,\n content,\n defaultOpen = false,\n delay = 0,\n footer = undefined,\n header = undefined,\n onOpenChange = undefined,\n placement = 'top',\n size = 'full',\n}: TooltipProps) => {\n // classNames from slots\n const variants = tooltipVariants({ size });\n const classNames = variantsToClassNames(variants, _className, 'base');\n\n return (\n <HeroTooltip\n classNames={classNames}\n closeDelay={closeDelay}\n containerPadding={containerPadding}\n content={\n <div>\n {header ? (\n <div className={classNames.headerWrapper}>\n <div className={classNames.header}>{header}</div>\n <hr className={classNames.divider} />\n </div>\n ) : null}\n <ScrollShadow className={classNames.body}>{content}</ScrollShadow>\n {footer ? (\n <div className={classNames.footerWrapper}>\n <hr className={classNames.divider} />\n <div className={classNames.footer}>{footer}</div>\n </div>\n ) : null}\n </div>\n }\n defaultOpen={defaultOpen}\n delay={delay}\n onClick={(e) => {\n e.preventDefault();\n }}\n onOpenChange={onOpenChange}\n placement={placement}\n shouldFlip\n showArrow\n >\n <span className={classNames.trigger}>{children}</span>\n </HeroTooltip>\n );\n};\n\nexport default Tooltip;\n"],"mappings":";;;;;AAWA,MAAa,kBAAkB,GAAG;CAChC,OAAO;EACL,MAAM;EACN,MAAM;EACN,SAAS;EACT,SAAS;EACT,QAAQ;EACR,eAAe;EACf,QAAQ;EACR,eAAe;EACf,SAAS;CACX;CACA,UAAU,EACR,MAAM;EACJ,IAAI;GAEF,MAAM;GACN,QAAQ;GACR,QAAQ;EACV;EACA,IAAI;GAEF,MAAM;GACN,QAAQ;GACR,QAAQ;EACV;EACA,IAAI;GAEF,MAAM;GACN,QAAQ;GACR,QAAQ;EACV;EACA,IAAI;GAEF,MAAM;GACN,QAAQ;GACR,QA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16
  }
17
17
  return to;
18
18
  };
19
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
20
20
  value: mod,
21
21
  enumerable: true
22
22
  }) : target, mod));
@@ -5,7 +5,6 @@
5
5
  * @param delay - Delay in milliseconds
6
6
  * @returns The debounced value
7
7
  */
8
- declare const useDebounce: <Value>(value: Value, delay: number) => Value;
8
+ export declare const useDebounce: <Value>(value: Value, delay: number) => Value;
9
9
  //#endregion
10
- export { useDebounce };
11
10
  //# sourceMappingURL=useDebounce.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useDebounce.d.mts","names":[],"sources":["../../../src/hooks/useDebounce/useDebounce.ts"],"mappings":";;;;;;;cAYa,cAAe,OAAO,OAAO,OAAO,kBAAa"}
1
+ {"version":3,"file":"useDebounce.d.mts","names":[],"sources":["../../../src/hooks/useDebounce/useDebounce.ts"],"mappings":";;;;;;;qBAYa,cAAe,OAAO,OAAO,OAAO,kBAAa"}
@@ -8,6 +8,7 @@ import { useEffect, useRef, useState } from "react";
8
8
  * @returns The debounced value
9
9
  */
10
10
  const useDebounce = (value, delay) => {
11
+ const skipDebounce = isTestEnvironment();
11
12
  const [debouncedValue, setDebouncedValue] = useState(value);
12
13
  const isMountedRef = useRef(true);
13
14
  useEffect(() => {
@@ -17,18 +18,19 @@ const useDebounce = (value, delay) => {
17
18
  };
18
19
  }, []);
19
20
  useEffect(() => {
20
- if (isTestEnvironment()) {
21
- setDebouncedValue(value);
22
- return;
23
- }
21
+ if (skipDebounce) return;
24
22
  const handler = setTimeout(() => {
25
23
  if (isMountedRef.current) setDebouncedValue(value);
26
24
  }, delay);
27
25
  return () => {
28
26
  clearTimeout(handler);
29
27
  };
30
- }, [value, delay]);
31
- return debouncedValue;
28
+ }, [
29
+ value,
30
+ delay,
31
+ skipDebounce
32
+ ]);
33
+ return skipDebounce ? value : debouncedValue;
32
34
  };
33
35
  //#endregion
34
36
  export { useDebounce };
@@ -1 +1 @@
1
- {"version":3,"file":"useDebounce.mjs","names":[],"sources":["../../../src/hooks/useDebounce/useDebounce.ts"],"sourcesContent":["/* eslint-disable import-x/prefer-default-export */\n\nimport { useEffect, useRef, useState } from 'react';\n\nimport { isTestEnvironment } from '@fuf-stack/pixel-utils';\n\n/**\n * Hook that debounces a value\n * @param value - The value to debounce\n * @param delay - Delay in milliseconds\n * @returns The debounced value\n */\nexport const useDebounce = <Value>(value: Value, delay: number) => {\n // State and setters for debounced value\n const [debouncedValue, setDebouncedValue] = useState(value);\n // Track if component is mounted to prevent setState on unmounted component\n const isMountedRef = useRef(true);\n\n useEffect(() => {\n // Mark as mounted\n isMountedRef.current = true;\n return () => {\n // Mark as unmounted on cleanup\n isMountedRef.current = false;\n };\n }, []);\n\n useEffect(\n () => {\n // In test environments, skip debouncing for immediate snapshots\n if (isTestEnvironment()) {\n setDebouncedValue(value);\n return;\n }\n\n // Update debounced value after delay\n const handler = setTimeout(() => {\n // Only update state if component is still mounted\n if (isMountedRef.current) {\n setDebouncedValue(value);\n }\n }, delay);\n\n // Cancel the timeout if value changes (also on delay change or unmount)\n // This is how we prevent debounced value from updating if value is changed ...\n // .. within the delay period. Timeout gets cleared and restarted.\n // eslint-disable-next-line consistent-return\n return () => {\n clearTimeout(handler);\n };\n },\n [value, delay], // Only re-call effect if value or delay changes\n );\n\n return debouncedValue;\n};\n"],"mappings":";;;;;;;;;AAYA,MAAa,eAAsB,OAAc,UAAkB;CAEjE,MAAM,CAAC,gBAAgB,qBAAqB,SAAS,KAAK;CAE1D,MAAM,eAAe,OAAO,IAAI;CAEhC,gBAAgB;EAEd,aAAa,UAAU;EACvB,aAAa;GAEX,aAAa,UAAU;EACzB;CACF,GAAG,CAAC,CAAC;CAEL,gBACQ;EAEJ,IAAI,kBAAkB,GAAG;GACvB,kBAAkB,KAAK;GACvB;EACF;EAGA,MAAM,UAAU,iBAAiB;GAE/B,IAAI,aAAa,SACf,kBAAkB,KAAK;EAE3B,GAAG,KAAK;EAMR,aAAa;GACX,aAAa,OAAO;EACtB;CACF,GACA,CAAC,OAAO,KAAK,CACf;CAEA,OAAO;AACT"}
1
+ {"version":3,"file":"useDebounce.mjs","names":[],"sources":["../../../src/hooks/useDebounce/useDebounce.ts"],"sourcesContent":["/* eslint-disable import-x/prefer-default-export */\n\nimport { useEffect, useRef, useState } from 'react';\n\nimport { isTestEnvironment } from '@fuf-stack/pixel-utils';\n\n/**\n * Hook that debounces a value\n * @param value - The value to debounce\n * @param delay - Delay in milliseconds\n * @returns The debounced value\n */\nexport const useDebounce = <Value>(value: Value, delay: number) => {\n const skipDebounce = isTestEnvironment();\n // State and setters for debounced value\n const [debouncedValue, setDebouncedValue] = useState(value);\n // Track if component is mounted to prevent setState on unmounted component\n const isMountedRef = useRef(true);\n\n useEffect(() => {\n // Mark as mounted\n isMountedRef.current = true;\n return () => {\n // Mark as unmounted on cleanup\n isMountedRef.current = false;\n };\n }, []);\n\n useEffect(\n () => {\n // In test environments, skip debouncing for immediate snapshots\n if (skipDebounce) {\n return undefined;\n }\n\n // Update debounced value after delay\n const handler = setTimeout(() => {\n // Only update state if component is still mounted\n if (isMountedRef.current) {\n setDebouncedValue(value);\n }\n }, delay);\n\n // Cancel the timeout if value changes (also on delay change or unmount)\n // This is how we prevent debounced value from updating if value is changed ...\n // .. within the delay period. Timeout gets cleared and restarted.\n return () => {\n clearTimeout(handler);\n };\n },\n [value, delay, skipDebounce], // Only re-call effect if value or delay changes\n );\n\n return skipDebounce ? value : debouncedValue;\n};\n"],"mappings":";;;;;;;;;AAYA,MAAa,eAAsB,OAAc,UAAkB;CACjE,MAAM,eAAe,kBAAkB;CAEvC,MAAM,CAAC,gBAAgB,qBAAqB,SAAS,KAAK;CAE1D,MAAM,eAAe,OAAO,IAAI;CAEhC,gBAAgB;EAEd,aAAa,UAAU;EACvB,aAAa;GAEX,aAAa,UAAU;EACzB;CACF,GAAG,CAAC,CAAC;CAEL,gBACQ;EAEJ,IAAI,cACF;EAIF,MAAM,UAAU,iBAAiB;GAE/B,IAAI,aAAa,SACf,kBAAkB,KAAK;EAE3B,GAAG,KAAK;EAKR,aAAa;GACX,aAAa,OAAO;EACtB;CACF,GACA;EAAC;EAAO;EAAO;CAAY,CAC7B;CAEA,OAAO,eAAe,QAAQ;AAChC"}
@@ -4,7 +4,6 @@
4
4
  *
5
5
  * @returns {boolean} - True on initial render, false afterward
6
6
  */
7
- declare const useIsInitialRenderCycle: () => boolean;
7
+ export declare const useIsInitialRenderCycle: () => boolean;
8
8
  //#endregion
9
- export { useIsInitialRenderCycle };
10
9
  //# sourceMappingURL=useIsInitialRenderCycle.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useIsInitialRenderCycle.d.mts","names":[],"sources":["../../../src/hooks/useIsInitialRenderCycle/useIsInitialRenderCycle.ts"],"mappings":";;;;;;cASa"}
1
+ {"version":3,"file":"useIsInitialRenderCycle.d.mts","names":[],"sources":["../../../src/hooks/useIsInitialRenderCycle/useIsInitialRenderCycle.ts"],"mappings":";;;;;;qBASa"}
@@ -1 +1 @@
1
- {"version":3,"file":"useIsInitialRenderCycle.mjs","names":[],"sources":["../../../src/hooks/useIsInitialRenderCycle/useIsInitialRenderCycle.ts"],"sourcesContent":["/* eslint-disable import-x/prefer-default-export */\n\nimport { useEffect, useRef } from 'react';\n\n/**\n * A hook that returns true on initial render and false afterward.\n *\n * @returns {boolean} - True on initial render, false afterward\n */\nexport const useIsInitialRenderCycle = (): boolean => {\n // Use ref to avoid re-renders\n const isInitialRender = useRef(true);\n\n // Update ref after first render\n useEffect(() => {\n // Set to false after component mounts\n isInitialRender.current = false;\n\n // No cleanup needed for this effect\n }, []);\n\n return isInitialRender.current;\n};\n"],"mappings":";;;;;;;AASA,MAAa,gCAAyC;CAEpD,MAAM,kBAAkB,OAAO,IAAI;CAGnC,gBAAgB;EAEd,gBAAgB,UAAU;CAG5B,GAAG,CAAC,CAAC;CAEL,OAAO,gBAAgB;AACzB"}
1
+ {"version":3,"file":"useIsInitialRenderCycle.mjs","names":[],"sources":["../../../src/hooks/useIsInitialRenderCycle/useIsInitialRenderCycle.ts"],"sourcesContent":["/* eslint-disable import-x/prefer-default-export */\n\nimport { useEffect, useRef } from 'react';\n\n/**\n * A hook that returns true on initial render and false afterward.\n *\n * @returns {boolean} - True on initial render, false afterward\n */\nexport const useIsInitialRenderCycle = (): boolean => {\n // Use ref to avoid re-renders\n const isInitialRender = useRef(true);\n\n // Update ref after first render\n useEffect(() => {\n // Set to false after component mounts\n isInitialRender.current = false;\n\n // No cleanup needed for this effect\n }, []);\n\n // Reading this mount marker is the purpose of the hook; it never drives a\n // mutation during render and changes only after the initial commit.\n // eslint-disable-next-line react-hooks/refs\n return isInitialRender.current;\n};\n"],"mappings":";;;;;;;AASA,MAAa,gCAAyC;CAEpD,MAAM,kBAAkB,OAAO,IAAI;CAGnC,gBAAgB;EAEd,gBAAgB,UAAU;CAG5B,GAAG,CAAC,CAAC;CAKL,OAAO,gBAAgB;AACzB"}
@@ -1,6 +1,5 @@
1
1
  import { Dispatch, SetStateAction } from "react";
2
2
  //#region src/hooks/useLocalStorage/useLocalStorage.d.ts
3
- declare const useLocalStorage: <T>(key: string, initialValue: T | (() => T)) => [T, Dispatch<SetStateAction<T>>];
3
+ export declare const useLocalStorage: <T>(key: string, initialValue: T | (() => T)) => [T, Dispatch<SetStateAction<T>>];
4
4
  //#endregion
5
- export { useLocalStorage };
6
5
  //# sourceMappingURL=useLocalStorage.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useLocalStorage.d.mts","names":[],"sources":["../../../src/hooks/useLocalStorage/useLocalStorage.ts"],"mappings":";;cAMa,kBAAmB,GAC9B,aACA,cAAc,WAAW,QACvB,GAAG,SAAS,eAAe"}
1
+ {"version":3,"file":"useLocalStorage.d.mts","names":[],"sources":["../../../src/hooks/useLocalStorage/useLocalStorage.ts"],"mappings":";;qBAMa,kBAAmB,GAC9B,aACA,cAAc,WAAW,QACvB,GAAG,SAAS,eAAe"}
@@ -1 +1 @@
1
- {"version":3,"file":"useLocalStorage.mjs","names":[],"sources":["../../../src/hooks/useLocalStorage/useLocalStorage.ts"],"sourcesContent":["/* eslint-disable import-x/prefer-default-export */\n\nimport type { Dispatch, SetStateAction } from 'react';\n\nimport { useEffect, useState } from 'react';\n\nexport const useLocalStorage = <T>(\n key: string,\n initialValue: T | (() => T),\n): [T, Dispatch<SetStateAction<T>>] => {\n // Get from local storage then\n // parse stored json or return initialValue\n const readValue = (): T => {\n // Helper to resolve initial value (handle function or direct value)\n const resolveInitialValue = (): T => {\n return typeof initialValue === 'function'\n ? (initialValue as () => T)()\n : initialValue;\n };\n\n // Prevent build error \"window is undefined\" but keep keep working\n if (typeof window === 'undefined') {\n return resolveInitialValue();\n }\n\n try {\n // eslint-disable-next-line n/no-unsupported-features/node-builtins\n const item = window.localStorage.getItem(key);\n if (item) {\n return JSON.parse(item) as T;\n }\n return resolveInitialValue();\n } catch (error) {\n console.warn(`Error reading localStorage key \"${key}\":`, error);\n return resolveInitialValue();\n }\n };\n\n // State to store our value\n // Pass initial state function to useState so logic is only executed once\n const [storedValue, setStoredValue] = useState<T>(readValue);\n\n // Return a wrapped version of useState's setter function that ...\n // ... persists the new value to localStorage.\n const setValue: Dispatch<SetStateAction<T>> = (value) => {\n // Prevent build error \"window is undefined\" but keeps working\n if (typeof window === 'undefined') {\n console.warn(\n `Tried setting localStorage key \"${key}\" even though environment is not a client`,\n );\n return;\n }\n\n try {\n // Allow value to be a function so we have the same API as useState\n const newValue = value instanceof Function ? value(storedValue) : value;\n\n // Save to local storage\n // eslint-disable-next-line n/no-unsupported-features/node-builtins\n window.localStorage.setItem(key, JSON.stringify(newValue));\n\n // Save state\n setStoredValue(newValue);\n\n // We dispatch a custom event so every useLocalStorage hook are notified\n window.dispatchEvent(new Event('local-storage'));\n } catch (error) {\n console.warn(`Error setting localStorage key \"${key}\":`, error);\n }\n };\n\n useEffect(() => {\n setStoredValue(readValue());\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n useEffect(() => {\n // Skip event listeners in SSR environment\n if (typeof window === 'undefined') {\n return undefined;\n }\n\n const handleStorageChange = () => {\n setStoredValue(readValue());\n };\n\n // this only works for other documents, not the current one\n window.addEventListener('storage', handleStorageChange);\n\n // this is a custom event, triggered in writeValueToLocalStorage\n window.addEventListener('local-storage', handleStorageChange);\n\n return () => {\n window.removeEventListener('storage', handleStorageChange);\n window.removeEventListener('local-storage', handleStorageChange);\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n return [storedValue, setValue];\n};\n"],"mappings":";;AAMA,MAAa,mBACX,KACA,iBACqC;CAGrC,MAAM,kBAAqB;EAEzB,MAAM,4BAA+B;GACnC,OAAO,OAAO,iBAAiB,aAC1B,aAAyB,IAC1B;EACN;EAGA,IAAI,OAAO,WAAW,aACpB,OAAO,oBAAoB;EAG7B,IAAI;GAEF,MAAM,OAAO,OAAO,aAAa,QAAQ,GAAG;GAC5C,IAAI,MACF,OAAO,KAAK,MAAM,IAAI;GAExB,OAAO,oBAAoB;EAC7B,SAAS,OAAO;GACd,QAAQ,KAAK,mCAAmC,IAAI,KAAK,KAAK;GAC9D,OAAO,oBAAoB;EAC7B;CACF;CAIA,MAAM,CAAC,aAAa,kBAAkB,SAAY,SAAS;CAI3D,MAAM,YAAyC,UAAU;EAEvD,IAAI,OAAO,WAAW,aAAa;GACjC,QAAQ,KACN,mCAAmC,IAAI,0CACzC;GACA;EACF;EAEA,IAAI;GAEF,MAAM,WAAW,iBAAiB,WAAW,MAAM,WAAW,IAAI;GAIlE,OAAO,aAAa,QAAQ,KAAK,KAAK,UAAU,QAAQ,CAAC;GAGzD,eAAe,QAAQ;GAGvB,OAAO,cAAc,IAAI,MAAM,eAAe,CAAC;EACjD,SAAS,OAAO;GACd,QAAQ,KAAK,mCAAmC,IAAI,KAAK,KAAK;EAChE;CACF;CAEA,gBAAgB;EACd,eAAe,UAAU,CAAC;CAE5B,GAAG,CAAC,CAAC;CAEL,gBAAgB;EAEd,IAAI,OAAO,WAAW,aACpB;EAGF,MAAM,4BAA4B;GAChC,eAAe,UAAU,CAAC;EAC5B;EAGA,OAAO,iBAAiB,WAAW,mBAAmB;EAGtD,OAAO,iBAAiB,iBAAiB,mBAAmB;EAE5D,aAAa;GACX,OAAO,oBAAoB,WAAW,mBAAmB;GACzD,OAAO,oBAAoB,iBAAiB,mBAAmB;EACjE;CAEF,GAAG,CAAC,CAAC;CAEL,OAAO,CAAC,aAAa,QAAQ;AAC/B"}
1
+ {"version":3,"file":"useLocalStorage.mjs","names":[],"sources":["../../../src/hooks/useLocalStorage/useLocalStorage.ts"],"sourcesContent":["/* eslint-disable import-x/prefer-default-export */\n\nimport type { Dispatch, SetStateAction } from 'react';\n\nimport { useEffect, useState } from 'react';\n\nexport const useLocalStorage = <T>(\n key: string,\n initialValue: T | (() => T),\n): [T, Dispatch<SetStateAction<T>>] => {\n // Get from local storage then\n // parse stored json or return initialValue\n const readValue = (): T => {\n // Helper to resolve initial value (handle function or direct value)\n const resolveInitialValue = (): T => {\n return typeof initialValue === 'function'\n ? (initialValue as () => T)()\n : initialValue;\n };\n\n // Prevent build error \"window is undefined\" but keep keep working\n if (typeof window === 'undefined') {\n return resolveInitialValue();\n }\n\n try {\n // eslint-disable-next-line n/no-unsupported-features/node-builtins\n const item = window.localStorage.getItem(key);\n if (item) {\n return JSON.parse(item) as T;\n }\n return resolveInitialValue();\n } catch (error) {\n console.warn(`Error reading localStorage key \"${key}\":`, error);\n return resolveInitialValue();\n }\n };\n\n // State to store our value\n // Pass initial state function to useState so logic is only executed once\n const [storedValue, setStoredValue] = useState<T>(readValue);\n\n // Return a wrapped version of useState's setter function that ...\n // ... persists the new value to localStorage.\n const setValue: Dispatch<SetStateAction<T>> = (value) => {\n // Prevent build error \"window is undefined\" but keeps working\n if (typeof window === 'undefined') {\n console.warn(\n `Tried setting localStorage key \"${key}\" even though environment is not a client`,\n );\n return;\n }\n\n try {\n // Allow value to be a function so we have the same API as useState\n const newValue = value instanceof Function ? value(storedValue) : value;\n\n // Save to local storage\n // eslint-disable-next-line n/no-unsupported-features/node-builtins\n window.localStorage.setItem(key, JSON.stringify(newValue));\n\n // Save state\n setStoredValue(newValue);\n\n // We dispatch a custom event so every useLocalStorage hook are notified\n window.dispatchEvent(new Event('local-storage'));\n } catch (error) {\n console.warn(`Error setting localStorage key \"${key}\":`, error);\n }\n };\n\n useEffect(() => {\n // Re-read after mounting so changes made between initialization and the\n // first committed render are reflected before listeners take over.\n // eslint-disable-next-line react-hooks/set-state-in-effect\n setStoredValue(readValue());\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n useEffect(() => {\n // Skip event listeners in SSR environment\n if (typeof window === 'undefined') {\n return undefined;\n }\n\n const handleStorageChange = () => {\n setStoredValue(readValue());\n };\n\n // this only works for other documents, not the current one\n window.addEventListener('storage', handleStorageChange);\n\n // this is a custom event, triggered in writeValueToLocalStorage\n window.addEventListener('local-storage', handleStorageChange);\n\n return () => {\n window.removeEventListener('storage', handleStorageChange);\n window.removeEventListener('local-storage', handleStorageChange);\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n return [storedValue, setValue];\n};\n"],"mappings":";;AAMA,MAAa,mBACX,KACA,iBACqC;CAGrC,MAAM,kBAAqB;EAEzB,MAAM,4BAA+B;GACnC,OAAO,OAAO,iBAAiB,aAC1B,aAAyB,IAC1B;EACN;EAGA,IAAI,OAAO,WAAW,aACpB,OAAO,oBAAoB;EAG7B,IAAI;GAEF,MAAM,OAAO,OAAO,aAAa,QAAQ,GAAG;GAC5C,IAAI,MACF,OAAO,KAAK,MAAM,IAAI;GAExB,OAAO,oBAAoB;EAC7B,SAAS,OAAO;GACd,QAAQ,KAAK,mCAAmC,IAAI,KAAK,KAAK;GAC9D,OAAO,oBAAoB;EAC7B;CACF;CAIA,MAAM,CAAC,aAAa,kBAAkB,SAAY,SAAS;CAI3D,MAAM,YAAyC,UAAU;EAEvD,IAAI,OAAO,WAAW,aAAa;GACjC,QAAQ,KACN,mCAAmC,IAAI,0CACzC;GACA;EACF;EAEA,IAAI;GAEF,MAAM,WAAW,iBAAiB,WAAW,MAAM,WAAW,IAAI;GAIlE,OAAO,aAAa,QAAQ,KAAK,KAAK,UAAU,QAAQ,CAAC;GAGzD,eAAe,QAAQ;GAGvB,OAAO,cAAc,IAAI,MAAM,eAAe,CAAC;EACjD,SAAS,OAAO;GACd,QAAQ,KAAK,mCAAmC,IAAI,KAAK,KAAK;EAChE;CACF;CAEA,gBAAgB;EAId,eAAe,UAAU,CAAC;CAE5B,GAAG,CAAC,CAAC;CAEL,gBAAgB;EAEd,IAAI,OAAO,WAAW,aACpB;EAGF,MAAM,4BAA4B;GAChC,eAAe,UAAU,CAAC;EAC5B;EAGA,OAAO,iBAAiB,WAAW,mBAAmB;EAGtD,OAAO,iBAAiB,iBAAiB,mBAAmB;EAE5D,aAAa;GACX,OAAO,oBAAoB,WAAW,mBAAmB;GACzD,OAAO,oBAAoB,iBAAiB,mBAAmB;EACjE;CAEF,GAAG,CAAC,CAAC;CAEL,OAAO,CAAC,aAAa,QAAQ;AAC/B"}
@@ -30,8 +30,9 @@ var Container = /*#__PURE__*/ forwardRef((props, ref) => {
30
30
  var _props$level = props.level, level = _props$level === void 0 ? 1 : _props$level, value = props.value, initialValue = props.initialValue, keys = props.keys, keyName = props.keyName, elmProps = (0, import_objectWithoutPropertiesLoose.default)(props, _excluded);
31
31
  var dispatch = useShowToolsDispatch();
32
32
  var subkeyid = useIdCompat();
33
+ var defaultClassNames = [className, "w-rjv-inner"].filter(Boolean).join(" ");
33
34
  return /*#__PURE__*/ jsxs("div", (0, import_extends.default)({
34
- className: [className, "w-rjv-inner"].filter(Boolean).join(" "),
35
+ className: defaultClassNames,
35
36
  ref
36
37
  }, elmProps, {
37
38
  onMouseEnter: () => dispatch({ [subkeyid]: true }),
@@ -1 +1 @@
1
- {"version":3,"file":"Container.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.43_@babel+runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/Container.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"className\", \"children\", \"parentValue\", \"keyid\", \"level\", \"value\", \"initialValue\", \"keys\", \"keyName\"];\nimport React, { forwardRef } from 'react';\nimport { NestedClose } from \"./comps/NestedClose.js\";\nimport { NestedOpen } from \"./comps/NestedOpen.js\";\nimport { KeyValues } from \"./comps/KeyValues.js\";\nimport { useIdCompat } from \"./comps/useIdCompat.js\";\nimport { useShowToolsDispatch } from \"./store/ShowTools.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nexport var Container = /*#__PURE__*/forwardRef((props, ref) => {\n var _props$className = props.className,\n className = _props$className === void 0 ? '' : _props$className,\n children = props.children,\n parentValue = props.parentValue,\n keyid = props.keyid,\n _props$level = props.level,\n level = _props$level === void 0 ? 1 : _props$level,\n value = props.value,\n initialValue = props.initialValue,\n keys = props.keys,\n keyName = props.keyName,\n elmProps = _objectWithoutPropertiesLoose(props, _excluded);\n var dispatch = useShowToolsDispatch();\n var subkeyid = useIdCompat();\n var defaultClassNames = [className, 'w-rjv-inner'].filter(Boolean).join(' ');\n var reset = {\n onMouseEnter: () => dispatch({\n [subkeyid]: true\n }),\n onMouseLeave: () => dispatch({\n [subkeyid]: false\n })\n };\n return /*#__PURE__*/_jsxs(\"div\", _extends({\n className: defaultClassNames,\n ref: ref\n }, elmProps, reset, {\n children: [/*#__PURE__*/_jsx(NestedOpen, {\n expandKey: subkeyid,\n value: value,\n level: level,\n keys: keys,\n parentValue: parentValue,\n keyName: keyName,\n initialValue: initialValue\n }), /*#__PURE__*/_jsx(KeyValues, {\n expandKey: subkeyid,\n value: value,\n level: level,\n keys: keys,\n parentValue: parentValue,\n keyName: keyName\n }), /*#__PURE__*/_jsx(NestedClose, {\n expandKey: subkeyid,\n value: value,\n level: level,\n keys: keys,\n parentValue: parentValue,\n keyName: keyName\n })]\n }));\n});\nContainer.displayName = 'JVR.Container';"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;;;AAEA,IAAI,YAAY;CAAC;CAAa;CAAY;CAAe;CAAS;CAAS;CAAS;CAAgB;CAAQ;AAAS;AAQrH,IAAW,YAAyB,0BAAY,OAAO,QAAQ;CAC7D,IAAI,mBAAmB,MAAM,WAC3B,YAAY,qBAAqB,KAAK,IAAI,KAAK;CACpC,MAAM;CAFnB,IAGE,cAAc,MAAM;CACZ,MAAM;CAJhB,IAKE,eAAe,MAAM,OACrB,QAAQ,iBAAiB,KAAK,IAAI,IAAI,cACtC,QAAQ,MAAM,OACd,eAAe,MAAM,cACrB,OAAO,MAAM,MACb,UAAU,MAAM,SAChB,YAAA,GAAA,oCAAA,QAAA,CAAyC,OAAO,SAAS;CAC3D,IAAI,WAAW,qBAAqB;CACpC,IAAI,WAAW,YAAY;CAU3B,OAAoB,mBAAM,QAAA,GAAA,eAAA,QAAA,CAAgB;EACxC,WAVsB,CAAC,WAAW,aAAa,CAAC,CAAC,OAAO,OAAO,CAAC,CAAC,KAAK,GAU3C;EACtB;CACP,GAAG,UAAU;EAVX,oBAAoB,SAAS,GAC1B,WAAW,KACd,CAAC;EACD,oBAAoB,SAAS,GAC1B,WAAW,MACd,CAAC;CAKc,GAAG,EAClB,UAAU;EAAc,kBAAK,YAAY;GACvC,WAAW;GACJ;GACA;GACD;GACO;GACJ;GACK;EAChB,CAAC;EAAgB,kBAAK,WAAW;GAC/B,WAAW;GACJ;GACA;GACD;GACO;GACJ;EACX,CAAC;EAAgB,kBAAK,aAAa;GACjC,WAAW;GACJ;GACA;GACD;GACO;GACJ;EACX,CAAC;CAAC,EACJ,CAAC,CAAC;AACJ,CAAC;AACD,UAAU,cAAc"}
1
+ {"version":3,"file":"Container.mjs","names":["_objectWithoutPropertiesLoose","_extends"],"sources":["../../../../../../../../../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.43_@babel+runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/Container.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"className\", \"children\", \"parentValue\", \"keyid\", \"level\", \"value\", \"initialValue\", \"keys\", \"keyName\"];\nimport React, { forwardRef } from 'react';\nimport { NestedClose } from \"./comps/NestedClose.js\";\nimport { NestedOpen } from \"./comps/NestedOpen.js\";\nimport { KeyValues } from \"./comps/KeyValues.js\";\nimport { useIdCompat } from \"./comps/useIdCompat.js\";\nimport { useShowToolsDispatch } from \"./store/ShowTools.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nexport var Container = /*#__PURE__*/forwardRef((props, ref) => {\n var _props$className = props.className,\n className = _props$className === void 0 ? '' : _props$className,\n children = props.children,\n parentValue = props.parentValue,\n keyid = props.keyid,\n _props$level = props.level,\n level = _props$level === void 0 ? 1 : _props$level,\n value = props.value,\n initialValue = props.initialValue,\n keys = props.keys,\n keyName = props.keyName,\n elmProps = _objectWithoutPropertiesLoose(props, _excluded);\n var dispatch = useShowToolsDispatch();\n var subkeyid = useIdCompat();\n var defaultClassNames = [className, 'w-rjv-inner'].filter(Boolean).join(' ');\n var reset = {\n onMouseEnter: () => dispatch({\n [subkeyid]: true\n }),\n onMouseLeave: () => dispatch({\n [subkeyid]: false\n })\n };\n return /*#__PURE__*/_jsxs(\"div\", _extends({\n className: defaultClassNames,\n ref: ref\n }, elmProps, reset, {\n children: [/*#__PURE__*/_jsx(NestedOpen, {\n expandKey: subkeyid,\n value: value,\n level: level,\n keys: keys,\n parentValue: parentValue,\n keyName: keyName,\n initialValue: initialValue\n }), /*#__PURE__*/_jsx(KeyValues, {\n expandKey: subkeyid,\n value: value,\n level: level,\n keys: keys,\n parentValue: parentValue,\n keyName: keyName\n }), /*#__PURE__*/_jsx(NestedClose, {\n expandKey: subkeyid,\n value: value,\n level: level,\n keys: keys,\n parentValue: parentValue,\n keyName: keyName\n })]\n }));\n});\nContainer.displayName = 'JVR.Container';"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;;;AAEA,IAAI,YAAY;CAAC;CAAa;CAAY;CAAe;CAAS;CAAS;CAAS;CAAgB;CAAQ;AAAS;AAQrH,IAAW,YAAyB,0BAAY,OAAO,QAAQ;CAC7D,IAAI,mBAAmB,MAAM,WAC3B,YAAY,qBAAqB,KAAK,IAAI,KAAK;CACpC,MAAM;CAFnB,IAGE,cAAc,MAAM;CACZ,MAAM;CAJhB,IAKE,eAAe,MAAM,OACrB,QAAQ,iBAAiB,KAAK,IAAI,IAAI,cACtC,QAAQ,MAAM,OACd,eAAe,MAAM,cACrB,OAAO,MAAM,MACb,UAAU,MAAM,SAChB,YAAA,GAAWA,oCAAAA,QAAAA,CAA8B,OAAO,SAAS;CAC3D,IAAI,WAAW,qBAAqB;CACpC,IAAI,WAAW,YAAY;CAC3B,IAAI,oBAAoB,CAAC,WAAW,aAAa,CAAC,CAAC,OAAO,OAAO,CAAC,CAAC,KAAK,GAAG;CAS3E,OAAoB,mBAAM,QAAA,GAAOC,eAAAA,QAAAA,CAAS;EACxC,WAAW;EACN;CACP,GAAG,UAAU;EAVX,oBAAoB,SAAS,GAC1B,WAAW,KACd,CAAC;EACD,oBAAoB,SAAS,GAC1B,WAAW,MACd,CAAC;CAKc,GAAG,EAClB,UAAU;EAAc,kBAAK,YAAY;GACvC,WAAW;GACJ;GACA;GACD;GACO;GACJ;GACK;EAChB,CAAC;EAAgB,kBAAK,WAAW;GAC/B,WAAW;GACJ;GACA;GACD;GACO;GACJ;EACX,CAAC;EAAgB,kBAAK,aAAa;GACjC,WAAW;GACJ;GACA;GACD;GACO;GACJ;EACX,CAAC;CAAC,EACJ,CAAC,CAAC;AACJ,CAAC;AACD,UAAU,cAAc"}
@@ -9,16 +9,17 @@ var import_objectWithoutPropertiesLoose = /* @__PURE__ */ __toESM(require_object
9
9
  var _excluded = ["style"];
10
10
  function TriangleArrow(props) {
11
11
  var style = props.style, reset = (0, import_objectWithoutPropertiesLoose.default)(props, _excluded);
12
+ var defaultStyle = (0, import_extends.default)({
13
+ cursor: "pointer",
14
+ height: "1em",
15
+ width: "1em",
16
+ userSelect: "none",
17
+ display: "inline-flex"
18
+ }, style);
12
19
  return /*#__PURE__*/ jsx("svg", (0, import_extends.default)({
13
20
  viewBox: "0 0 24 24",
14
21
  fill: "var(--w-rjv-arrow-color, currentColor)",
15
- style: (0, import_extends.default)({
16
- cursor: "pointer",
17
- height: "1em",
18
- width: "1em",
19
- userSelect: "none",
20
- display: "inline-flex"
21
- }, style)
22
+ style: defaultStyle
22
23
  }, reset, { children: /*#__PURE__*/ jsx("path", { d: "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z" }) }));
23
24
  }
24
25
  TriangleArrow.displayName = "JVR.TriangleArrow";
@@ -1 +1 @@
1
- {"version":3,"file":"TriangleArrow.mjs","names":[],"sources":["../../../../../../../../../../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.43_@babel+runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/arrow/TriangleArrow.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"style\"];\nimport React from 'react';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport function TriangleArrow(props) {\n var style = props.style,\n reset = _objectWithoutPropertiesLoose(props, _excluded);\n var defaultStyle = _extends({\n cursor: 'pointer',\n height: '1em',\n width: '1em',\n userSelect: 'none',\n display: 'inline-flex'\n }, style);\n return /*#__PURE__*/_jsx(\"svg\", _extends({\n viewBox: \"0 0 24 24\",\n fill: \"var(--w-rjv-arrow-color, currentColor)\",\n style: defaultStyle\n }, reset, {\n children: /*#__PURE__*/_jsx(\"path\", {\n d: \"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z\"\n })\n }));\n}\nTriangleArrow.displayName = 'JVR.TriangleArrow';"],"x_google_ignoreList":[0],"mappings":";;;;;;;;AAEA,IAAI,YAAY,CAAC,OAAO;AAGxB,SAAgB,cAAc,OAAO;CACnC,IAAI,QAAQ,MAAM,OAChB,SAAA,GAAA,oCAAA,QAAA,CAAsC,OAAO,SAAS;CAQxD,OAAoB,kBAAK,QAAA,GAAA,eAAA,QAAA,CAAgB;EACvC,SAAS;EACT,MAAM;EACN,QAAA,GAAA,eAAA,QAAA,CAV0B;GAC1B,QAAQ;GACR,QAAQ;GACR,OAAO;GACP,YAAY;GACZ,SAAS;EACX,GAAG,KAIiB;CACpB,GAAG,OAAO,EACR,UAAuB,kBAAK,QAAQ,EAClC,GAAG,+CACL,CAAC,EACH,CAAC,CAAC;AACJ;AACA,cAAc,cAAc"}
1
+ {"version":3,"file":"TriangleArrow.mjs","names":["_objectWithoutPropertiesLoose","_extends"],"sources":["../../../../../../../../../../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.43_@babel+runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/arrow/TriangleArrow.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"style\"];\nimport React from 'react';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport function TriangleArrow(props) {\n var style = props.style,\n reset = _objectWithoutPropertiesLoose(props, _excluded);\n var defaultStyle = _extends({\n cursor: 'pointer',\n height: '1em',\n width: '1em',\n userSelect: 'none',\n display: 'inline-flex'\n }, style);\n return /*#__PURE__*/_jsx(\"svg\", _extends({\n viewBox: \"0 0 24 24\",\n fill: \"var(--w-rjv-arrow-color, currentColor)\",\n style: defaultStyle\n }, reset, {\n children: /*#__PURE__*/_jsx(\"path\", {\n d: \"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z\"\n })\n }));\n}\nTriangleArrow.displayName = 'JVR.TriangleArrow';"],"x_google_ignoreList":[0],"mappings":";;;;;;;;AAEA,IAAI,YAAY,CAAC,OAAO;AAGxB,SAAgB,cAAc,OAAO;CACnC,IAAI,QAAQ,MAAM,OAChB,SAAA,GAAQA,oCAAAA,QAAAA,CAA8B,OAAO,SAAS;CACxD,IAAI,gBAAA,GAAeC,eAAAA,QAAAA,CAAS;EAC1B,QAAQ;EACR,QAAQ;EACR,OAAO;EACP,YAAY;EACZ,SAAS;CACX,GAAG,KAAK;CACR,OAAoB,kBAAK,QAAA,GAAOA,eAAAA,QAAAA,CAAS;EACvC,SAAS;EACT,MAAM;EACN,OAAO;CACT,GAAG,OAAO,EACR,UAAuB,kBAAK,QAAQ,EAClC,GAAG,+CACL,CAAC,EACH,CAAC,CAAC;AACJ;AACA,cAAc,cAAc"}
@@ -1 +1 @@
1
- {"version":3,"file":"Copied.mjs","names":[],"sources":["../../../../../../../../../../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.43_@babel+runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/comps/Copied.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"keyName\", \"value\", \"parentValue\", \"expandKey\", \"keys\", \"beforeCopy\"],\n _excluded2 = [\"as\", \"render\"];\nimport { useState } from 'react';\nimport { useStore } from \"../store.js\";\nimport { useSectionStore } from \"../store/Section.js\";\nimport { useShowToolsStore } from \"../store/ShowTools.js\";\nimport { bigIntToString } from \"../types/index.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport var Copied = props => {\n var keyName = props.keyName,\n value = props.value,\n parentValue = props.parentValue,\n expandKey = props.expandKey,\n keys = props.keys,\n beforeCopy = props.beforeCopy,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var _useStore = useStore(),\n onCopied = _useStore.onCopied,\n enableClipboard = _useStore.enableClipboard,\n globalBeforeCopy = _useStore.beforeCopy;\n var showTools = useShowToolsStore();\n var isShowTools = showTools[expandKey];\n var _useState = useState(false),\n copied = _useState[0],\n setCopied = _useState[1];\n var _useSectionStore = useSectionStore(),\n _useSectionStore$Copi = _useSectionStore.Copied,\n Comp = _useSectionStore$Copi === void 0 ? {} : _useSectionStore$Copi;\n var sectionBeforeCopy = Comp == null ? void 0 : Comp.beforeCopy;\n if (enableClipboard === false || !isShowTools) return null;\n var click = event => {\n event.stopPropagation();\n var copyText = '';\n if (typeof value === 'number' && value === Infinity) {\n copyText = 'Infinity';\n } else if (typeof value === 'number' && isNaN(value)) {\n copyText = 'NaN';\n } else if (typeof value === 'bigint') {\n copyText = bigIntToString(value);\n } else if (value instanceof Date) {\n copyText = value.toLocaleString();\n } else {\n copyText = JSON.stringify(value, (_, v) => typeof v === 'bigint' ? bigIntToString(v) : v, 2);\n }\n\n // Apply beforeCopy transformation if provided\n // Priority: component prop > section prop > global prop\n var finalBeforeCopy = beforeCopy || sectionBeforeCopy || globalBeforeCopy;\n if (finalBeforeCopy && typeof finalBeforeCopy === 'function') {\n copyText = finalBeforeCopy(copyText, keyName, value, parentValue, expandKey, keys);\n }\n onCopied && onCopied(copyText, value);\n setCopied(true);\n var _clipboard = navigator.clipboard || {\n writeText(text) {\n return new Promise((reslove, reject) => {\n var textarea = document.createElement('textarea');\n textarea.style.position = 'absolute';\n textarea.style.opacity = '0';\n textarea.style.left = '-99999999px';\n textarea.value = text;\n document.body.appendChild(textarea);\n textarea.select();\n if (!document.execCommand('copy')) {\n reject();\n } else {\n reslove();\n }\n textarea.remove();\n });\n }\n };\n _clipboard.writeText(copyText).then(() => {\n var timer = setTimeout(() => {\n setCopied(false);\n clearTimeout(timer);\n }, 3000);\n }).catch(error => {});\n };\n var svgProps = {\n style: {\n display: 'inline-flex'\n },\n fill: copied ? 'var(--w-rjv-copied-success-color, #28a745)' : 'var(--w-rjv-copied-color, currentColor)',\n onClick: click\n };\n var as = Comp.as,\n render = Comp.render,\n reset = _objectWithoutPropertiesLoose(Comp, _excluded2);\n var elmProps = _extends({}, reset, other, svgProps, {\n style: _extends({}, reset.style, other.style, svgProps.style)\n });\n var isRender = render && typeof render === 'function';\n var child = isRender && render(_extends({}, elmProps, {\n 'data-copied': copied\n }), {\n value,\n keyName,\n keys,\n parentValue\n });\n if (child) return child;\n if (copied) {\n return /*#__PURE__*/_jsx(\"svg\", _extends({\n viewBox: \"0 0 32 36\"\n }, elmProps, {\n children: /*#__PURE__*/_jsx(\"path\", {\n d: \"M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,15.2249049 C29.1403264,13.8627542 29.9736597,13.1778155 30,13.1700887 C30,11.9705278 30,10.0804982 30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,26.1114493 L27.5,28.4926435 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M28.5589286,16 L32,19.6 L21.0160714,30.5382252 L13.5303571,24.2571429 L17.1303571,20.6571429 L21.0160714,24.5428571 L28.5589286,16 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z\"\n })\n }));\n }\n return /*#__PURE__*/_jsx(\"svg\", _extends({\n viewBox: \"0 0 32 36\"\n }, elmProps, {\n children: /*#__PURE__*/_jsx(\"path\", {\n d: \"M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,20 L30,20 L30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,29 L27.5,29 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M22.5,21.5 L22.5,16.5 L12.5,24 L22.5,31.5 L22.5,26.5 L32,26.5 L32,21.5 L22.5,21.5 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z\"\n })\n }));\n};\nCopied.displayName = 'JVR.Copied';"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;;AAEA,IAAI,YAAY;CAAC;CAAW;CAAS;CAAe;CAAa;CAAQ;AAAY;AACnF,IAAA,aAAa,CAAC,MAAM,QAAQ;AAO9B,IAAW,UAAS,UAAS;CAC3B,IAAI,UAAU,MAAM,SAClB,QAAQ,MAAM,OACd,cAAc,MAAM,aACpB,YAAY,MAAM,WAClB,OAAO,MAAM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AI,CAAC,SAAS,YAAY,MAAM,GAC9B,OAAO;SAEP,QAAQ;IAEV,SAAS,OAAO;GAClB,CAAC;EACH,EACF,EAAA,CACW,UAAU,QAAQ,CAAC,CAAC,WAAW;GACxC,IAAI,QAAQ,iBAAiB;IAC3B,UAAU,KAAK;IACf,aAAa,KAAK;GACpB,GAAG,GAAI;EACT,CAAC,CAAC,CAAC,OAAM,UAAS,CAAC,CAAC;CACtB;CACA,IAAI,WAAW;EACb,OAAO,EACL,SAAS,cACX;EACA,MAAM,SAAS,+CAA+C;EAC9D,SAAS;CACX;CACS,KAAK;CAAd,IACE,SAAS,KAAK,QACd,SAAA,GAAA,oCAAA,QAAA,CAAsC,MAAM,UAAU;CACxD,IAAI,YAAA,GAAA,eAAA,QAAA,CAAoB,CAAC,GAAG,OAAO,OAAO,UAAU,EAClD,QAAA,GAAA,eAAA,QAAA,CAAgB,CAAC,GAAG,MAAM,OAAO,MAAM,OAAO,SAAS,KAAK,EAC9D,CAAC;CAED,IAAI,QADW,UAAU,OAAO,WAAW,cACnB,QAAA,GAAA,eAAA,QAAA,CAAgB,CAAC,GAAG,UAAU,EACpD,eAAe,OACjB,CAAC,GAAG;EACF;EACA;EACA;EACA;CACF,CAAC;CACD,IAAI,OAAO,OAAO;CAClB,IAAI,QACF,OAAoB,kBAAK,QAAA,GAAA,eAAA,QAAA,CAAgB,EACvC,SAAS,YACX,GAAG,UAAU,EACX,UAAuB,kBAAK,QAAQ,EAClC,GAAG,qxBACL,CAAC,EACH,CAAC,CAAC;CAEJ,OAAoB,kBAAK,QAAA,GAAA,eAAA,QAAA,CAAgB,EACvC,SAAS,YACX,GAAG,UAAU,EACX,UAAuB,kBAAK,QAAQ,EAClC,GAAG,4nBACL,CAAC,EACH,CAAC,CAAC;AACJ;AACA,OAAO,cAAc"}
1
+ {"version":3,"file":"Copied.mjs","names":["_objectWithoutPropertiesLoose","_extends"],"sources":["../../../../../../../../../../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.43_@babel+runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/comps/Copied.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"keyName\", \"value\", \"parentValue\", \"expandKey\", \"keys\", \"beforeCopy\"],\n _excluded2 = [\"as\", \"render\"];\nimport { useState } from 'react';\nimport { useStore } from \"../store.js\";\nimport { useSectionStore } from \"../store/Section.js\";\nimport { useShowToolsStore } from \"../store/ShowTools.js\";\nimport { bigIntToString } from \"../types/index.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport var Copied = props => {\n var keyName = props.keyName,\n value = props.value,\n parentValue = props.parentValue,\n expandKey = props.expandKey,\n keys = props.keys,\n beforeCopy = props.beforeCopy,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var _useStore = useStore(),\n onCopied = _useStore.onCopied,\n enableClipboard = _useStore.enableClipboard,\n globalBeforeCopy = _useStore.beforeCopy;\n var showTools = useShowToolsStore();\n var isShowTools = showTools[expandKey];\n var _useState = useState(false),\n copied = _useState[0],\n setCopied = _useState[1];\n var _useSectionStore = useSectionStore(),\n _useSectionStore$Copi = _useSectionStore.Copied,\n Comp = _useSectionStore$Copi === void 0 ? {} : _useSectionStore$Copi;\n var sectionBeforeCopy = Comp == null ? void 0 : Comp.beforeCopy;\n if (enableClipboard === false || !isShowTools) return null;\n var click = event => {\n event.stopPropagation();\n var copyText = '';\n if (typeof value === 'number' && value === Infinity) {\n copyText = 'Infinity';\n } else if (typeof value === 'number' && isNaN(value)) {\n copyText = 'NaN';\n } else if (typeof value === 'bigint') {\n copyText = bigIntToString(value);\n } else if (value instanceof Date) {\n copyText = value.toLocaleString();\n } else {\n copyText = JSON.stringify(value, (_, v) => typeof v === 'bigint' ? bigIntToString(v) : v, 2);\n }\n\n // Apply beforeCopy transformation if provided\n // Priority: component prop > section prop > global prop\n var finalBeforeCopy = beforeCopy || sectionBeforeCopy || globalBeforeCopy;\n if (finalBeforeCopy && typeof finalBeforeCopy === 'function') {\n copyText = finalBeforeCopy(copyText, keyName, value, parentValue, expandKey, keys);\n }\n onCopied && onCopied(copyText, value);\n setCopied(true);\n var _clipboard = navigator.clipboard || {\n writeText(text) {\n return new Promise((reslove, reject) => {\n var textarea = document.createElement('textarea');\n textarea.style.position = 'absolute';\n textarea.style.opacity = '0';\n textarea.style.left = '-99999999px';\n textarea.value = text;\n document.body.appendChild(textarea);\n textarea.select();\n if (!document.execCommand('copy')) {\n reject();\n } else {\n reslove();\n }\n textarea.remove();\n });\n }\n };\n _clipboard.writeText(copyText).then(() => {\n var timer = setTimeout(() => {\n setCopied(false);\n clearTimeout(timer);\n }, 3000);\n }).catch(error => {});\n };\n var svgProps = {\n style: {\n display: 'inline-flex'\n },\n fill: copied ? 'var(--w-rjv-copied-success-color, #28a745)' : 'var(--w-rjv-copied-color, currentColor)',\n onClick: click\n };\n var as = Comp.as,\n render = Comp.render,\n reset = _objectWithoutPropertiesLoose(Comp, _excluded2);\n var elmProps = _extends({}, reset, other, svgProps, {\n style: _extends({}, reset.style, other.style, svgProps.style)\n });\n var isRender = render && typeof render === 'function';\n var child = isRender && render(_extends({}, elmProps, {\n 'data-copied': copied\n }), {\n value,\n keyName,\n keys,\n parentValue\n });\n if (child) return child;\n if (copied) {\n return /*#__PURE__*/_jsx(\"svg\", _extends({\n viewBox: \"0 0 32 36\"\n }, elmProps, {\n children: /*#__PURE__*/_jsx(\"path\", {\n d: \"M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,15.2249049 C29.1403264,13.8627542 29.9736597,13.1778155 30,13.1700887 C30,11.9705278 30,10.0804982 30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,26.1114493 L27.5,28.4926435 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M28.5589286,16 L32,19.6 L21.0160714,30.5382252 L13.5303571,24.2571429 L17.1303571,20.6571429 L21.0160714,24.5428571 L28.5589286,16 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z\"\n })\n }));\n }\n return /*#__PURE__*/_jsx(\"svg\", _extends({\n viewBox: \"0 0 32 36\"\n }, elmProps, {\n children: /*#__PURE__*/_jsx(\"path\", {\n d: \"M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,20 L30,20 L30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,29 L27.5,29 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M22.5,21.5 L22.5,16.5 L12.5,24 L22.5,31.5 L22.5,26.5 L32,26.5 L32,21.5 L22.5,21.5 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 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qxBACL,CAAC,EACH,CAAC,CAAC;CAEJ,OAAoB,kBAAK,QAAA,GAAOA,eAAAA,QAAAA,CAAS,EACvC,SAAS,YACX,GAAG,UAAU,EACX,UAAuB,kBAAK,QAAQ,EAClC,GAAG,4nBACL,CAAC,EACH,CAAC,CAAC;AACJ;AACA,OAAO,cAAc"}
@@ -104,14 +104,17 @@ var KeyValuesItem = (props) => {
104
104
  var isMyMap = value instanceof Map;
105
105
  var isDate = value instanceof Date;
106
106
  var isUrl = value instanceof URL;
107
- if (value && typeof value === "object" && !isMyArray && !isMySet && !isMyMap && !isDate && !isUrl || isMyArray || isMySet || isMyMap) return /*#__PURE__*/ jsx(Container, {
108
- keyName,
109
- value: isMySet ? Array.from(value) : isMyMap ? Object.fromEntries(value) : value,
110
- parentValue,
111
- initialValue: value,
112
- keys,
113
- level: level + 1
114
- });
107
+ if (value && typeof value === "object" && !isMyArray && !isMySet && !isMyMap && !isDate && !isUrl || isMyArray || isMySet || isMyMap) {
108
+ var myValue = isMySet ? Array.from(value) : isMyMap ? Object.fromEntries(value) : value;
109
+ return /*#__PURE__*/ jsx(Container, {
110
+ keyName,
111
+ value: myValue,
112
+ parentValue,
113
+ initialValue: value,
114
+ keys,
115
+ level: level + 1
116
+ });
117
+ }
115
118
  return /*#__PURE__*/ jsxs(RowComp, (0, import_extends.default)({
116
119
  className: "w-rjv-line",
117
120
  value,
@@ -1 +1 @@
1
- {"version":3,"file":"KeyValues.mjs","names":["Fragment"],"sources":["../../../../../../../../../../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.43_@babel+runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/comps/KeyValues.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/extends\";\nimport { Fragment, useRef } from 'react';\nimport { useStore } from \"../store.js\";\nimport { useExpandsStore } from \"../store/Expands.js\";\nimport { useShowToolsDispatch } from \"../store/ShowTools.js\";\nimport { Value } from \"./Value.js\";\nimport { KeyNameComp } from \"../section/KeyName.js\";\nimport { RowComp } from \"../section/Row.js\";\nimport { Container } from \"../Container.js\";\nimport { Quote, Colon } from \"../symbol/index.js\";\nimport { useHighlight } from \"../utils/useHighlight.js\";\nimport { Copied } from \"../comps/Copied.js\";\nimport { useIdCompat } from \"../comps/useIdCompat.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nexport var KeyValues = props => {\n var _expands$expandKey;\n var keyName = props.keyName,\n value = props.value,\n _props$expandKey = props.expandKey,\n expandKey = _props$expandKey === void 0 ? '' : _props$expandKey,\n level = props.level,\n _props$keys = props.keys,\n keys = _props$keys === void 0 ? [] : _props$keys,\n parentValue = props.parentValue;\n var expands = useExpandsStore();\n var _useStore = useStore(),\n objectSortKeys = _useStore.objectSortKeys,\n indentWidth = _useStore.indentWidth,\n collapsed = _useStore.collapsed,\n shouldExpandNodeInitially = _useStore.shouldExpandNodeInitially;\n var defaultExpanded = typeof collapsed === 'boolean' ? collapsed : typeof collapsed === 'number' ? level > collapsed : false;\n var isExpanded = (_expands$expandKey = expands[expandKey]) != null ? _expands$expandKey : shouldExpandNodeInitially ? false : defaultExpanded;\n var shouldExpand = shouldExpandNodeInitially && shouldExpandNodeInitially(!isExpanded, {\n value,\n keys,\n level,\n keyName,\n parentValue\n });\n if (shouldExpandNodeInitially && collapsed === false) {\n if (expands[expandKey] === undefined && !shouldExpand) {\n return null;\n }\n } else {\n if (expands[expandKey] === undefined && shouldExpand) {\n return null;\n }\n }\n if (isExpanded) {\n return null;\n }\n var isMyArray = Array.isArray(value);\n // object\n var entries = isMyArray ? Object.entries(value).map(m => [Number(m[0]), m[1]]) : Object.entries(value);\n if (objectSortKeys) {\n entries = objectSortKeys === true ? entries.sort((_ref, _ref2) => {\n var a = _ref[0];\n var b = _ref2[0];\n return typeof a === 'string' && typeof b === 'string' ? a.localeCompare(b) : 0;\n }) : entries.sort((_ref3, _ref4) => {\n var a = _ref3[0],\n valA = _ref3[1];\n var b = _ref4[0],\n valB = _ref4[1];\n return typeof a === 'string' && typeof b === 'string' ? objectSortKeys(a, b, valA, valB) : 0;\n });\n }\n var style = {\n borderLeft: 'var(--w-rjv-border-left-width, 1px) var(--w-rjv-line-style, solid) var(--w-rjv-line-color, #ebebeb)',\n paddingLeft: indentWidth,\n marginLeft: 6\n };\n return /*#__PURE__*/_jsx(\"div\", {\n className: \"w-rjv-wrap\",\n style: style,\n children: entries.map((_ref5, idx) => {\n var key = _ref5[0],\n val = _ref5[1];\n return /*#__PURE__*/_jsx(KeyValuesItem, {\n parentValue: value,\n keyName: key,\n keys: [...keys, key],\n value: val,\n level: level\n }, idx);\n })\n });\n};\nKeyValues.displayName = 'JVR.KeyValues';\nexport var KayName = props => {\n var keyName = props.keyName,\n parentValue = props.parentValue,\n keys = props.keys,\n value = props.value;\n var _useStore2 = useStore(),\n highlightUpdates = _useStore2.highlightUpdates;\n var isNumber = typeof keyName === 'number';\n var highlightContainer = useRef(null);\n useHighlight({\n value,\n highlightUpdates,\n highlightContainer\n });\n var compProps = {\n keyName,\n value,\n keys,\n parentValue\n };\n return /*#__PURE__*/_jsxs(Fragment, {\n children: [/*#__PURE__*/_jsxs(\"span\", {\n ref: highlightContainer,\n children: [/*#__PURE__*/_jsx(Quote, _extends({\n isNumber: isNumber,\n \"data-placement\": \"left\"\n }, compProps)), /*#__PURE__*/_jsx(KeyNameComp, _extends({}, compProps, {\n children: keyName\n })), /*#__PURE__*/_jsx(Quote, _extends({\n isNumber: isNumber,\n \"data-placement\": \"right\"\n }, compProps))]\n }), /*#__PURE__*/_jsx(Colon, _extends({}, compProps))]\n });\n};\nKayName.displayName = 'JVR.KayName';\nexport var KeyValuesItem = props => {\n var keyName = props.keyName,\n value = props.value,\n parentValue = props.parentValue,\n _props$level = props.level,\n level = _props$level === void 0 ? 0 : _props$level,\n _props$keys2 = props.keys,\n keys = _props$keys2 === void 0 ? [] : _props$keys2;\n var dispatch = useShowToolsDispatch();\n var subkeyid = useIdCompat();\n var isMyArray = Array.isArray(value);\n var isMySet = value instanceof Set;\n var isMyMap = value instanceof Map;\n var isDate = value instanceof Date;\n var isUrl = value instanceof URL;\n var isMyObject = value && typeof value === 'object' && !isMyArray && !isMySet && !isMyMap && !isDate && !isUrl;\n var isNested = isMyObject || isMyArray || isMySet || isMyMap;\n if (isNested) {\n var myValue = isMySet ? Array.from(value) : isMyMap ? Object.fromEntries(value) : value;\n return /*#__PURE__*/_jsx(Container, {\n keyName: keyName,\n value: myValue,\n parentValue: parentValue,\n initialValue: value,\n keys: keys,\n level: level + 1\n });\n }\n var reset = {\n onMouseEnter: () => dispatch({\n [subkeyid]: true\n }),\n onMouseLeave: () => dispatch({\n [subkeyid]: false\n })\n };\n return /*#__PURE__*/_jsxs(RowComp, _extends({\n className: \"w-rjv-line\",\n value: value,\n keyName: keyName,\n keys: keys,\n parentValue: parentValue\n }, reset, {\n children: [/*#__PURE__*/_jsx(KayName, {\n keyName: keyName,\n value: value,\n keys: keys,\n parentValue: parentValue\n }), /*#__PURE__*/_jsx(Value, {\n keyName: keyName,\n value: value,\n keys: keys\n }), /*#__PURE__*/_jsx(Copied, {\n keyName: keyName,\n value: value,\n keys: keys,\n parentValue: parentValue,\n expandKey: subkeyid\n })]\n }));\n};\nKeyValuesItem.displayName = 'JVR.KeyValuesItem';"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;;;;;;;AAcA,IAAW,aAAY,UAAS;CAC9B,IAAI;CACJ,IAAI,UAAU,MAAM,SAClB,QAAQ,MAAM,OACd,mBAAmB,MAAM,WACzB,YAAY,qBAAqB,KAAK,IAAI,KAAK,kBAC/C,QAAQ,MAAM,OACd,cAAc,MAAM,MACpB,OAAO,gBAAgB,KAAK,IAAI,CAAC,IAAI,aACrC,cAAc,MAAM;CACtB,IAAI,UAAU,gBAAgB;CAC9B,IAAI,YAAY,SAAS,GACvB,iBAAiB,UAAU,gBAC3B,cAAc,UAAU,aACxB,YAAY,UAAU,WACtB,4BAA4B,UAAU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AAS,OAAO,UAAU,YAAY,CAAC,aAAa,CAAC,WAAW,CAAC,WAAW,CAAC,UAAU,CAAC,SAC5E,aAAa,WAAW,SAGnD,OAAoB,kBAAK,WAAW;EACzB;EACT,OAHY,UAAU,MAAM,KAAK,KAAK,IAAI,UAAU,OAAO,YAAY,KAAK,IAAI;EAInE;EACb,cAAc;EACR;EACN,OAAO,QAAQ;CACjB,CAAC;CAUH,OAAoB,mBAAM,UAAA,GAAA,eAAA,QAAA,CAAkB;EAC1C,WAAW;EACJ;EACE;EACH;EACO;CACf,GAAG;EAbD,oBAAoB,SAAS,GAC1B,WAAW,KACd,CAAC;EACD,oBAAoB,SAAS,GAC1B,WAAW,MACd,CAAC;CAQI,GAAG,EACR,UAAU;EAAc,kBAAK,SAAS;GAC3B;GACF;GACD;GACO;EACf,CAAC;EAAgB,kBAAK,OAAO;GAClB;GACF;GACD;EACR,CAAC;EAAgB,kBAAK,QAAQ;GACnB;GACF;GACD;GACO;GACb,WAAW;EACb,CAAC;CAAC,EACJ,CAAC,CAAC;AACJ;AACA,cAAc,cAAc"}
1
+ {"version":3,"file":"KeyValues.mjs","names":["Fragment","_extends"],"sources":["../../../../../../../../../../../node_modules/.pnpm/@uiw+react-json-view@2.0.0-alpha.43_@babel+runtime@7.29.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@uiw/react-json-view/esm/comps/KeyValues.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/extends\";\nimport { Fragment, useRef } from 'react';\nimport { useStore } from \"../store.js\";\nimport { useExpandsStore } from \"../store/Expands.js\";\nimport { useShowToolsDispatch } from \"../store/ShowTools.js\";\nimport { Value } from \"./Value.js\";\nimport { KeyNameComp } from \"../section/KeyName.js\";\nimport { RowComp } from \"../section/Row.js\";\nimport { Container } from \"../Container.js\";\nimport { Quote, Colon } from \"../symbol/index.js\";\nimport { useHighlight } from \"../utils/useHighlight.js\";\nimport { Copied } from \"../comps/Copied.js\";\nimport { useIdCompat } from \"../comps/useIdCompat.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nexport var KeyValues = props => {\n var _expands$expandKey;\n var keyName = props.keyName,\n value = props.value,\n _props$expandKey = props.expandKey,\n expandKey = _props$expandKey === void 0 ? '' : _props$expandKey,\n level = props.level,\n _props$keys = props.keys,\n keys = _props$keys === void 0 ? [] : _props$keys,\n parentValue = props.parentValue;\n var expands = useExpandsStore();\n var _useStore = useStore(),\n objectSortKeys = _useStore.objectSortKeys,\n indentWidth = _useStore.indentWidth,\n collapsed = _useStore.collapsed,\n shouldExpandNodeInitially = _useStore.shouldExpandNodeInitially;\n var defaultExpanded = typeof collapsed === 'boolean' ? collapsed : typeof collapsed === 'number' ? level > collapsed : false;\n var isExpanded = (_expands$expandKey = expands[expandKey]) != null ? _expands$expandKey : shouldExpandNodeInitially ? false : defaultExpanded;\n var shouldExpand = shouldExpandNodeInitially && shouldExpandNodeInitially(!isExpanded, {\n value,\n keys,\n level,\n keyName,\n parentValue\n });\n if (shouldExpandNodeInitially && collapsed === false) {\n if (expands[expandKey] === undefined && !shouldExpand) {\n return null;\n }\n } else {\n if (expands[expandKey] === undefined && shouldExpand) {\n return null;\n }\n }\n if (isExpanded) {\n return null;\n }\n var isMyArray = Array.isArray(value);\n // object\n var entries = isMyArray ? Object.entries(value).map(m => [Number(m[0]), m[1]]) : Object.entries(value);\n if (objectSortKeys) {\n entries = objectSortKeys === true ? entries.sort((_ref, _ref2) => {\n var a = _ref[0];\n var b = _ref2[0];\n return typeof a === 'string' && typeof b === 'string' ? a.localeCompare(b) : 0;\n }) : entries.sort((_ref3, _ref4) => {\n var a = _ref3[0],\n valA = _ref3[1];\n var b = _ref4[0],\n valB = _ref4[1];\n return typeof a === 'string' && typeof b === 'string' ? objectSortKeys(a, b, valA, valB) : 0;\n });\n }\n var style = {\n borderLeft: 'var(--w-rjv-border-left-width, 1px) var(--w-rjv-line-style, solid) var(--w-rjv-line-color, #ebebeb)',\n paddingLeft: indentWidth,\n marginLeft: 6\n };\n return /*#__PURE__*/_jsx(\"div\", {\n className: \"w-rjv-wrap\",\n style: style,\n children: entries.map((_ref5, idx) => {\n var key = _ref5[0],\n val = _ref5[1];\n return /*#__PURE__*/_jsx(KeyValuesItem, {\n parentValue: value,\n keyName: key,\n keys: [...keys, key],\n value: val,\n level: level\n }, idx);\n })\n });\n};\nKeyValues.displayName = 'JVR.KeyValues';\nexport var KayName = props => {\n var keyName = props.keyName,\n parentValue = props.parentValue,\n keys = props.keys,\n value = props.value;\n var _useStore2 = useStore(),\n highlightUpdates = _useStore2.highlightUpdates;\n var isNumber = typeof keyName === 'number';\n var highlightContainer = useRef(null);\n useHighlight({\n value,\n highlightUpdates,\n highlightContainer\n });\n var compProps = {\n keyName,\n value,\n keys,\n parentValue\n };\n return /*#__PURE__*/_jsxs(Fragment, {\n children: [/*#__PURE__*/_jsxs(\"span\", {\n ref: highlightContainer,\n children: [/*#__PURE__*/_jsx(Quote, _extends({\n isNumber: isNumber,\n \"data-placement\": \"left\"\n }, compProps)), /*#__PURE__*/_jsx(KeyNameComp, _extends({}, compProps, {\n children: keyName\n })), /*#__PURE__*/_jsx(Quote, _extends({\n isNumber: isNumber,\n \"data-placement\": \"right\"\n }, compProps))]\n }), /*#__PURE__*/_jsx(Colon, _extends({}, compProps))]\n });\n};\nKayName.displayName = 'JVR.KayName';\nexport var KeyValuesItem = props => {\n var keyName = props.keyName,\n value = props.value,\n parentValue = props.parentValue,\n _props$level = props.level,\n level = _props$level === void 0 ? 0 : _props$level,\n _props$keys2 = props.keys,\n keys = _props$keys2 === void 0 ? [] : _props$keys2;\n var dispatch = useShowToolsDispatch();\n var subkeyid = useIdCompat();\n var isMyArray = Array.isArray(value);\n var isMySet = value instanceof Set;\n var isMyMap = value instanceof Map;\n var isDate = value instanceof Date;\n var isUrl = value instanceof URL;\n var isMyObject = value && typeof value === 'object' && !isMyArray && !isMySet && !isMyMap && !isDate && !isUrl;\n var isNested = isMyObject || isMyArray || isMySet || isMyMap;\n if (isNested) {\n var myValue = isMySet ? Array.from(value) : isMyMap ? Object.fromEntries(value) : value;\n return /*#__PURE__*/_jsx(Container, {\n keyName: keyName,\n value: myValue,\n parentValue: parentValue,\n initialValue: value,\n keys: keys,\n level: level + 1\n });\n }\n var reset = {\n onMouseEnter: () => dispatch({\n [subkeyid]: true\n }),\n onMouseLeave: () => dispatch({\n [subkeyid]: false\n })\n };\n return /*#__PURE__*/_jsxs(RowComp, _extends({\n className: \"w-rjv-line\",\n value: value,\n keyName: keyName,\n keys: keys,\n parentValue: parentValue\n }, reset, {\n children: [/*#__PURE__*/_jsx(KayName, {\n keyName: keyName,\n value: value,\n keys: keys,\n parentValue: parentValue\n }), /*#__PURE__*/_jsx(Value, {\n keyName: keyName,\n value: value,\n keys: keys\n }), /*#__PURE__*/_jsx(Copied, {\n keyName: keyName,\n value: value,\n keys: keys,\n parentValue: parentValue,\n expandKey: subkeyid\n })]\n }));\n};\nKeyValuesItem.displayName = 'JVR.KeyValuesItem';"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;;;;;;;AAcA,IAAW,aAAY,UAAS;CAC9B,IAAI;CACJ,IAAI,UAAU,MAAM,SAClB,QAAQ,MAAM,OACd,mBAAmB,MAAM,WACzB,YAAY,qBAAqB,KAAK,IAAI,KAAK,kBAC/C,QAAQ,MAAM,OACd,cAAc,MAAM,MACpB,OAAO,gBAAgB,KAAK,IAAI,CAAC,IAAI,aACrC,cAAc,MAAM;CACtB,IAAI,UAAU,gBAAgB;CAC9B,IAAI,YAAY,SAAS,GACvB,iBAAiB,UAAU,gBAC3B,cAAc,UAAU,aACxB,YAAY,UAAU,WACtB,4BAA4B,UAAU;CACxC,IAAI,kBAAkB,OAAO,cAAc,YAAY,YAAY,OAAO,cAAc,WAAW,QAAQ,YAAY;CACvH,IAAI,cAAc,qBAAqB,QAAQ,eAAe,OAAO,qBAAqB,4BAA4B,QAAQ;CAC9H,IAAI,eAAe,6BAA6B,0BAA0B,CAAC,YAAY;EAC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