@pibit.ai/cure-design-system 0.3.6 → 0.3.7

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 (299) hide show
  1. package/dist/foundations/dot-icon/index.d.ts +7 -0
  2. package/dist/foundations/dot-icon/index.d.ts.map +1 -0
  3. package/dist/foundations/dot-icon/index.js +10 -0
  4. package/dist/index.d.ts +3 -3
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/index.js +42 -40
  7. package/dist/patterns/table/table.js +1 -1
  8. package/dist/patterns/tree-view/index.d.ts +2 -0
  9. package/dist/patterns/tree-view/index.d.ts.map +1 -0
  10. package/dist/patterns/tree-view/tree-view.d.ts +61 -0
  11. package/dist/patterns/tree-view/tree-view.d.ts.map +1 -0
  12. package/dist/patterns/tree-view/tree-view.js +167 -0
  13. package/dist/primitives/badge/badge-types.d.ts +17 -0
  14. package/dist/primitives/badge/badge-types.d.ts.map +1 -0
  15. package/dist/primitives/badge/badge-types.js +8 -0
  16. package/dist/primitives/badge/badge.d.ts +115 -22
  17. package/dist/primitives/badge/badge.d.ts.map +1 -1
  18. package/dist/primitives/badge/badge.js +292 -38
  19. package/dist/primitives/badge/index.d.ts +2 -1
  20. package/dist/primitives/badge/index.d.ts.map +1 -1
  21. package/dist/primitives/heading/heading.d.ts +1 -1
  22. package/dist/primitives/text/text.d.ts +1 -1
  23. package/dist/styles/components.css +1 -1
  24. package/package.json +2 -1
  25. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js +0 -59
  26. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js +0 -34
  27. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.js +0 -47
  28. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js +0 -17
  29. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.js +0 -12
  30. package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js +0 -5
  31. package/dist/node_modules/framer-motion/dist/es/context/LazyContext.js +0 -5
  32. package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js +0 -9
  33. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.js +0 -13
  34. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.js +0 -5
  35. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js +0 -15
  36. package/dist/node_modules/framer-motion/dist/es/context/PresenceContext.js +0 -5
  37. package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js +0 -5
  38. package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js +0 -8
  39. package/dist/node_modules/framer-motion/dist/es/events/event-info.js +0 -14
  40. package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +0 -277
  41. package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js +0 -22
  42. package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js +0 -67
  43. package/dist/node_modules/framer-motion/dist/es/gestures/focus.js +0 -28
  44. package/dist/node_modules/framer-motion/dist/es/gestures/hover.js +0 -21
  45. package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js +0 -131
  46. package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js +0 -43
  47. package/dist/node_modules/framer-motion/dist/es/gestures/press.js +0 -23
  48. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +0 -27
  49. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js +0 -34
  50. package/dist/node_modules/framer-motion/dist/es/motion/features/animations.js +0 -13
  51. package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js +0 -39
  52. package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js +0 -17
  53. package/dist/node_modules/framer-motion/dist/es/motion/features/gestures.js +0 -21
  54. package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +0 -60
  55. package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js +0 -11
  56. package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js +0 -14
  57. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js +0 -44
  58. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js +0 -21
  59. package/dist/node_modules/framer-motion/dist/es/motion/index.js +0 -63
  60. package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.js +0 -4
  61. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js +0 -22
  62. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js +0 -66
  63. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js +0 -52
  64. package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js +0 -38
  65. package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.js +0 -18
  66. package/dist/node_modules/framer-motion/dist/es/render/components/motion/feature-bundle.js +0 -13
  67. package/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.js +0 -7
  68. package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js +0 -10
  69. package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js +0 -16
  70. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js +0 -20
  71. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js +0 -24
  72. package/dist/node_modules/framer-motion/dist/es/render/html/use-html-visual-state.js +0 -10
  73. package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js +0 -27
  74. package/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js +0 -9
  75. package/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js +0 -30
  76. package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js +0 -22
  77. package/dist/node_modules/framer-motion/dist/es/render/svg/use-svg-visual-state.js +0 -10
  78. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js +0 -8
  79. package/dist/node_modules/framer-motion/dist/es/utils/distance.js +0 -9
  80. package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.js +0 -4
  81. package/dist/node_modules/framer-motion/dist/es/utils/is-browser.js +0 -4
  82. package/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.js +0 -6
  83. package/dist/node_modules/framer-motion/dist/es/utils/use-composed-ref.js +0 -28
  84. package/dist/node_modules/framer-motion/dist/es/utils/use-constant.js +0 -8
  85. package/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js +0 -6
  86. package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.js +0 -106
  87. package/dist/node_modules/motion-dom/dist/es/animation/JSAnimation.js +0 -133
  88. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.js +0 -109
  89. package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.js +0 -37
  90. package/dist/node_modules/motion-dom/dist/es/animation/animate/single-value.js +0 -10
  91. package/dist/node_modules/motion-dom/dist/es/animation/drivers/frame.js +0 -17
  92. package/dist/node_modules/motion-dom/dist/es/animation/generators/inertia.js +0 -37
  93. package/dist/node_modules/motion-dom/dist/es/animation/generators/keyframes.js +0 -30
  94. package/dist/node_modules/motion-dom/dist/es/animation/generators/spring/defaults.js +0 -32
  95. package/dist/node_modules/motion-dom/dist/es/animation/generators/spring/find.js +0 -52
  96. package/dist/node_modules/motion-dom/dist/es/animation/generators/spring/index.js +0 -98
  97. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js +0 -13
  98. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.js +0 -13
  99. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js +0 -6
  100. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/velocity.js +0 -9
  101. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/motion-value.js +0 -46
  102. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.js +0 -49
  103. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.js +0 -30
  104. package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element.js +0 -22
  105. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.js +0 -69
  106. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.js +0 -75
  107. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/get-final.js +0 -8
  108. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.js +0 -8
  109. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.js +0 -12
  110. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.js +0 -6
  111. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.js +0 -7
  112. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.js +0 -7
  113. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.js +0 -16
  114. package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.js +0 -31
  115. package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/data-id.js +0 -6
  116. package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.js +0 -7
  117. package/dist/node_modules/motion-dom/dist/es/animation/utils/WithPromise.js +0 -27
  118. package/dist/node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.js +0 -7
  119. package/dist/node_modules/motion-dom/dist/es/animation/utils/can-animate.js +0 -23
  120. package/dist/node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.js +0 -31
  121. package/dist/node_modules/motion-dom/dist/es/animation/utils/default-transitions.js +0 -22
  122. package/dist/node_modules/motion-dom/dist/es/animation/utils/get-final-keyframe.js +0 -8
  123. package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js +0 -6
  124. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-animatable.js +0 -7
  125. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-css-variable.js +0 -9
  126. package/dist/node_modules/motion-dom/dist/es/animation/utils/is-transition-defined.js +0 -6
  127. package/dist/node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.js +0 -6
  128. package/dist/node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.js +0 -16
  129. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.js +0 -4
  130. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.js +0 -12
  131. package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/supported.js +0 -15
  132. package/dist/node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.js +0 -21
  133. package/dist/node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.js +0 -24
  134. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.js +0 -8
  135. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js +0 -10
  136. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/unsupported-easing.js +0 -17
  137. package/dist/node_modules/motion-dom/dist/es/events/add-dom-event.js +0 -6
  138. package/dist/node_modules/motion-dom/dist/es/frameloop/batcher.js +0 -27
  139. package/dist/node_modules/motion-dom/dist/es/frameloop/frame.js +0 -9
  140. package/dist/node_modules/motion-dom/dist/es/frameloop/microtask.js +0 -5
  141. package/dist/node_modules/motion-dom/dist/es/frameloop/order.js +0 -21
  142. package/dist/node_modules/motion-dom/dist/es/frameloop/render-step.js +0 -41
  143. package/dist/node_modules/motion-dom/dist/es/frameloop/sync-time.js +0 -15
  144. package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js +0 -11
  145. package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js +0 -11
  146. package/dist/node_modules/motion-dom/dist/es/gestures/hover.js +0 -24
  147. package/dist/node_modules/motion-dom/dist/es/gestures/press/index.js +0 -33
  148. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js +0 -13
  149. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js +0 -27
  150. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.js +0 -4
  151. package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js +0 -4
  152. package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js +0 -4
  153. package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.js +0 -12
  154. package/dist/node_modules/motion-dom/dist/es/projection/animation/mix-values.js +0 -27
  155. package/dist/node_modules/motion-dom/dist/es/projection/geometry/conversion.js +0 -25
  156. package/dist/node_modules/motion-dom/dist/es/projection/geometry/copy.js +0 -14
  157. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-apply.js +0 -52
  158. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-calc.js +0 -36
  159. package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-remove.js +0 -25
  160. package/dist/node_modules/motion-dom/dist/es/projection/geometry/models.js +0 -18
  161. package/dist/node_modules/motion-dom/dist/es/projection/geometry/utils.js +0 -34
  162. package/dist/node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.js +0 -16
  163. package/dist/node_modules/motion-dom/dist/es/projection/node/HTMLProjectionNode.js +0 -25
  164. package/dist/node_modules/motion-dom/dist/es/projection/node/create-projection-node.js +0 -623
  165. package/dist/node_modules/motion-dom/dist/es/projection/node/state.js +0 -15
  166. package/dist/node_modules/motion-dom/dist/es/projection/shared/stack.js +0 -60
  167. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.js +0 -21
  168. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-box-shadow.js +0 -16
  169. package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-correction.js +0 -21
  170. package/dist/node_modules/motion-dom/dist/es/projection/styles/transform.js +0 -13
  171. package/dist/node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.js +0 -4
  172. package/dist/node_modules/motion-dom/dist/es/projection/utils/each-axis.js +0 -6
  173. package/dist/node_modules/motion-dom/dist/es/projection/utils/flat-tree.js +0 -19
  174. package/dist/node_modules/motion-dom/dist/es/projection/utils/has-transform.js +0 -20
  175. package/dist/node_modules/motion-dom/dist/es/projection/utils/measure.js +0 -13
  176. package/dist/node_modules/motion-dom/dist/es/render/Feature.js +0 -10
  177. package/dist/node_modules/motion-dom/dist/es/render/VisualElement.js +0 -247
  178. package/dist/node_modules/motion-dom/dist/es/render/dom/DOMVisualElement.js +0 -28
  179. package/dist/node_modules/motion-dom/dist/es/render/dom/is-css-var.js +0 -4
  180. package/dist/node_modules/motion-dom/dist/es/render/dom/parse-transform.js +0 -65
  181. package/dist/node_modules/motion-dom/dist/es/render/dom/style-set.js +0 -7
  182. package/dist/node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.js +0 -6
  183. package/dist/node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.js +0 -38
  184. package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-styles.js +0 -29
  185. package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-transform.js +0 -37
  186. package/dist/node_modules/motion-dom/dist/es/render/html/utils/render.js +0 -12
  187. package/dist/node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.js +0 -14
  188. package/dist/node_modules/motion-dom/dist/es/render/store.js +0 -4
  189. package/dist/node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.js +0 -40
  190. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.js +0 -32
  191. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/camel-case-attrs.js +0 -28
  192. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/is-svg-tag.js +0 -4
  193. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/path.js +0 -15
  194. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/render.js +0 -11
  195. package/dist/node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.js +0 -15
  196. package/dist/node_modules/motion-dom/dist/es/render/utils/animation-state.js +0 -141
  197. package/dist/node_modules/motion-dom/dist/es/render/utils/get-variant-context.js +0 -20
  198. package/dist/node_modules/motion-dom/dist/es/render/utils/is-animation-controls.js +0 -6
  199. package/dist/node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.js +0 -13
  200. package/dist/node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.js +0 -9
  201. package/dist/node_modules/motion-dom/dist/es/render/utils/is-keyframes-target.js +0 -4
  202. package/dist/node_modules/motion-dom/dist/es/render/utils/is-variant-label.js +0 -6
  203. package/dist/node_modules/motion-dom/dist/es/render/utils/keys-position.js +0 -13
  204. package/dist/node_modules/motion-dom/dist/es/render/utils/keys-transform.js +0 -23
  205. package/dist/node_modules/motion-dom/dist/es/render/utils/motion-values.js +0 -25
  206. package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/index.js +0 -15
  207. package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.js +0 -5
  208. package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.js +0 -8
  209. package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-variants.js +0 -20
  210. package/dist/node_modules/motion-dom/dist/es/render/utils/setters.js +0 -21
  211. package/dist/node_modules/motion-dom/dist/es/render/utils/shallow-compare.js +0 -14
  212. package/dist/node_modules/motion-dom/dist/es/render/utils/variant-props.js +0 -13
  213. package/dist/node_modules/motion-dom/dist/es/utils/delay.js +0 -12
  214. package/dist/node_modules/motion-dom/dist/es/utils/interpolate.js +0 -42
  215. package/dist/node_modules/motion-dom/dist/es/utils/is-html-element.js +0 -7
  216. package/dist/node_modules/motion-dom/dist/es/utils/is-svg-element.js +0 -7
  217. package/dist/node_modules/motion-dom/dist/es/utils/is-svg-svg-element.js +0 -7
  218. package/dist/node_modules/motion-dom/dist/es/utils/mix/color.js +0 -29
  219. package/dist/node_modules/motion-dom/dist/es/utils/mix/complex.js +0 -51
  220. package/dist/node_modules/motion-dom/dist/es/utils/mix/immediate.js +0 -6
  221. package/dist/node_modules/motion-dom/dist/es/utils/mix/index.js +0 -8
  222. package/dist/node_modules/motion-dom/dist/es/utils/mix/number.js +0 -4
  223. package/dist/node_modules/motion-dom/dist/es/utils/mix/visibility.js +0 -8
  224. package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js +0 -15
  225. package/dist/node_modules/motion-dom/dist/es/utils/supports/flags.js +0 -4
  226. package/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js +0 -12
  227. package/dist/node_modules/motion-dom/dist/es/utils/supports/memo.js +0 -9
  228. package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js +0 -5
  229. package/dist/node_modules/motion-dom/dist/es/value/index.js +0 -215
  230. package/dist/node_modules/motion-dom/dist/es/value/types/auto.js +0 -7
  231. package/dist/node_modules/motion-dom/dist/es/value/types/color/hex.js +0 -19
  232. package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.js +0 -22
  233. package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla.js +0 -12
  234. package/dist/node_modules/motion-dom/dist/es/value/types/color/index.js +0 -15
  235. package/dist/node_modules/motion-dom/dist/es/value/types/color/rgba.js +0 -16
  236. package/dist/node_modules/motion-dom/dist/es/value/types/color/utils.js +0 -18
  237. package/dist/node_modules/motion-dom/dist/es/value/types/complex/filter.js +0 -24
  238. package/dist/node_modules/motion-dom/dist/es/value/types/complex/index.js +0 -49
  239. package/dist/node_modules/motion-dom/dist/es/value/types/dimensions.js +0 -9
  240. package/dist/node_modules/motion-dom/dist/es/value/types/int.js +0 -8
  241. package/dist/node_modules/motion-dom/dist/es/value/types/maps/defaults.js +0 -24
  242. package/dist/node_modules/motion-dom/dist/es/value/types/maps/number.js +0 -70
  243. package/dist/node_modules/motion-dom/dist/es/value/types/maps/transform.js +0 -31
  244. package/dist/node_modules/motion-dom/dist/es/value/types/numbers/index.js +0 -17
  245. package/dist/node_modules/motion-dom/dist/es/value/types/numbers/units.js +0 -17
  246. package/dist/node_modules/motion-dom/dist/es/value/types/test.js +0 -4
  247. package/dist/node_modules/motion-dom/dist/es/value/types/utils/animatable-none.js +0 -10
  248. package/dist/node_modules/motion-dom/dist/es/value/types/utils/color-regex.js +0 -4
  249. package/dist/node_modules/motion-dom/dist/es/value/types/utils/find.js +0 -8
  250. package/dist/node_modules/motion-dom/dist/es/value/types/utils/float-regex.js +0 -4
  251. package/dist/node_modules/motion-dom/dist/es/value/types/utils/get-as-type.js +0 -4
  252. package/dist/node_modules/motion-dom/dist/es/value/types/utils/is-nullish.js +0 -6
  253. package/dist/node_modules/motion-dom/dist/es/value/types/utils/sanitize.js +0 -4
  254. package/dist/node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.js +0 -4
  255. package/dist/node_modules/motion-dom/dist/es/value/utils/is-motion-value.js +0 -4
  256. package/dist/node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.js +0 -7
  257. package/dist/node_modules/motion-dom/dist/es/value/will-change/add-will-change.js +0 -14
  258. package/dist/node_modules/motion-dom/dist/es/value/will-change/is.js +0 -7
  259. package/dist/node_modules/motion-utils/dist/es/array.js +0 -11
  260. package/dist/node_modules/motion-utils/dist/es/clamp.js +0 -4
  261. package/dist/node_modules/motion-utils/dist/es/easing/anticipate.js +0 -5
  262. package/dist/node_modules/motion-utils/dist/es/easing/back.js +0 -9
  263. package/dist/node_modules/motion-utils/dist/es/easing/circ.js +0 -8
  264. package/dist/node_modules/motion-utils/dist/es/easing/cubic-bezier.js +0 -18
  265. package/dist/node_modules/motion-utils/dist/es/easing/ease.js +0 -7
  266. package/dist/node_modules/motion-utils/dist/es/easing/modifiers/mirror.js +0 -4
  267. package/dist/node_modules/motion-utils/dist/es/easing/modifiers/reverse.js +0 -4
  268. package/dist/node_modules/motion-utils/dist/es/easing/utils/is-bezier-definition.js +0 -4
  269. package/dist/node_modules/motion-utils/dist/es/easing/utils/is-easing-array.js +0 -4
  270. package/dist/node_modules/motion-utils/dist/es/easing/utils/map.js +0 -32
  271. package/dist/node_modules/motion-utils/dist/es/errors.js +0 -15
  272. package/dist/node_modules/motion-utils/dist/es/format-error-message.js +0 -6
  273. package/dist/node_modules/motion-utils/dist/es/global-config.js +0 -4
  274. package/dist/node_modules/motion-utils/dist/es/is-numerical-string.js +0 -4
  275. package/dist/node_modules/motion-utils/dist/es/is-object.js +0 -6
  276. package/dist/node_modules/motion-utils/dist/es/is-zero-value-string.js +0 -4
  277. package/dist/node_modules/motion-utils/dist/es/memo.js +0 -8
  278. package/dist/node_modules/motion-utils/dist/es/noop.js +0 -4
  279. package/dist/node_modules/motion-utils/dist/es/pipe.js +0 -4
  280. package/dist/node_modules/motion-utils/dist/es/progress.js +0 -7
  281. package/dist/node_modules/motion-utils/dist/es/subscription-manager.js +0 -29
  282. package/dist/node_modules/motion-utils/dist/es/time-conversion.js +0 -5
  283. package/dist/node_modules/motion-utils/dist/es/velocity-per-second.js +0 -6
  284. package/dist/node_modules/motion-utils/dist/es/warn-once.js +0 -8
  285. package/dist/patterns/table/TableWrapper.js +0 -141
  286. package/dist/patterns/tree/TreeDemo.d.ts +0 -7
  287. package/dist/patterns/tree/TreeDemo.d.ts.map +0 -1
  288. package/dist/patterns/tree/TreeStructure.d.ts +0 -14
  289. package/dist/patterns/tree/TreeStructure.d.ts.map +0 -1
  290. package/dist/patterns/tree/TreeStructure.js +0 -110
  291. package/dist/patterns/tree/constants.d.ts +0 -18
  292. package/dist/patterns/tree/constants.d.ts.map +0 -1
  293. package/dist/patterns/tree/helper.d.ts +0 -6
  294. package/dist/patterns/tree/helper.d.ts.map +0 -1
  295. package/dist/patterns/tree/helper.js +0 -21
  296. package/dist/patterns/tree/index.d.ts +0 -4
  297. package/dist/patterns/tree/index.d.ts.map +0 -1
  298. package/dist/patterns/tree/interface.d.ts +0 -9
  299. package/dist/patterns/tree/interface.d.ts.map +0 -1
@@ -1,70 +0,0 @@
1
- import { int as t } from "../int.js";
2
- import { alpha as n } from "../numbers/index.js";
3
- import { px as i } from "../numbers/units.js";
4
- import { transformValueTypes as o } from "./transform.js";
5
- const g = {
6
- // Border props
7
- borderWidth: i,
8
- borderTopWidth: i,
9
- borderRightWidth: i,
10
- borderBottomWidth: i,
11
- borderLeftWidth: i,
12
- borderRadius: i,
13
- borderTopLeftRadius: i,
14
- borderTopRightRadius: i,
15
- borderBottomRightRadius: i,
16
- borderBottomLeftRadius: i,
17
- // Positioning props
18
- width: i,
19
- maxWidth: i,
20
- height: i,
21
- maxHeight: i,
22
- top: i,
23
- right: i,
24
- bottom: i,
25
- left: i,
26
- inset: i,
27
- insetBlock: i,
28
- insetBlockStart: i,
29
- insetBlockEnd: i,
30
- insetInline: i,
31
- insetInlineStart: i,
32
- insetInlineEnd: i,
33
- // Spacing props
34
- padding: i,
35
- paddingTop: i,
36
- paddingRight: i,
37
- paddingBottom: i,
38
- paddingLeft: i,
39
- paddingBlock: i,
40
- paddingBlockStart: i,
41
- paddingBlockEnd: i,
42
- paddingInline: i,
43
- paddingInlineStart: i,
44
- paddingInlineEnd: i,
45
- margin: i,
46
- marginTop: i,
47
- marginRight: i,
48
- marginBottom: i,
49
- marginLeft: i,
50
- marginBlock: i,
51
- marginBlockStart: i,
52
- marginBlockEnd: i,
53
- marginInline: i,
54
- marginInlineStart: i,
55
- marginInlineEnd: i,
56
- // Typography
57
- fontSize: i,
58
- // Misc
59
- backgroundPositionX: i,
60
- backgroundPositionY: i,
61
- ...o,
62
- zIndex: t,
63
- // SVG
64
- fillOpacity: n,
65
- strokeOpacity: n,
66
- numOctaves: t
67
- };
68
- export {
69
- g as numberValueTypes
70
- };
@@ -1,31 +0,0 @@
1
- import { alpha as s, scale as t } from "../numbers/index.js";
2
- import { px as e, progressPercentage as a, degrees as r } from "../numbers/units.js";
3
- const n = {
4
- rotate: r,
5
- rotateX: r,
6
- rotateY: r,
7
- rotateZ: r,
8
- scale: t,
9
- scaleX: t,
10
- scaleY: t,
11
- scaleZ: t,
12
- skew: r,
13
- skewX: r,
14
- skewY: r,
15
- distance: e,
16
- translateX: e,
17
- translateY: e,
18
- translateZ: e,
19
- x: e,
20
- y: e,
21
- z: e,
22
- perspective: e,
23
- transformPerspective: e,
24
- opacity: s,
25
- originX: a,
26
- originY: a,
27
- originZ: e
28
- };
29
- export {
30
- n as transformValueTypes
31
- };
@@ -1,17 +0,0 @@
1
- import { clamp as a } from "../../../../../../motion-utils/dist/es/clamp.js";
2
- const r = {
3
- test: (t) => typeof t == "number",
4
- parse: parseFloat,
5
- transform: (t) => t
6
- }, e = {
7
- ...r,
8
- transform: (t) => a(0, 1, t)
9
- }, s = {
10
- ...r,
11
- default: 1
12
- };
13
- export {
14
- e as alpha,
15
- r as number,
16
- s as scale
17
- };
@@ -1,17 +0,0 @@
1
- const s = /* @__NO_SIDE_EFFECTS__ */ (e) => ({
2
- test: (t) => typeof t == "string" && t.endsWith(e) && t.split(" ").length === 1,
3
- parse: parseFloat,
4
- transform: (t) => `${t}${e}`
5
- }), n = /* @__PURE__ */ s("deg"), r = /* @__PURE__ */ s("%"), o = /* @__PURE__ */ s("px"), p = /* @__PURE__ */ s("vh"), a = /* @__PURE__ */ s("vw"), c = {
6
- ...r,
7
- parse: (e) => r.parse(e) / 100,
8
- transform: (e) => r.transform(e * 100)
9
- };
10
- export {
11
- n as degrees,
12
- r as percent,
13
- c as progressPercentage,
14
- o as px,
15
- p as vh,
16
- a as vw
17
- };
@@ -1,4 +0,0 @@
1
- const s = (t) => (e) => e.test(t);
2
- export {
3
- s as testValueType
4
- };
@@ -1,10 +0,0 @@
1
- import { complex as n } from "../complex/index.js";
2
- import { filter as a } from "../complex/filter.js";
3
- import { getDefaultValueType as i } from "../maps/defaults.js";
4
- function f(t, o) {
5
- let e = i(t);
6
- return e !== a && (e = n), e.getAnimatableNone ? e.getAnimatableNone(o) : void 0;
7
- }
8
- export {
9
- f as getAnimatableNone
10
- };
@@ -1,4 +0,0 @@
1
- const d = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
2
- export {
3
- d as colorRegex
4
- };
@@ -1,8 +0,0 @@
1
- import { color as e } from "../color/index.js";
2
- import { complex as m } from "../complex/index.js";
3
- import { dimensionValueTypes as p } from "../dimensions.js";
4
- import { testValueType as r } from "../test.js";
5
- const t = [...p, e, m], s = (o) => t.find(r(o));
6
- export {
7
- s as findValueType
8
- };
@@ -1,4 +0,0 @@
1
- const d = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
2
- export {
3
- d as floatRegex
4
- };
@@ -1,4 +0,0 @@
1
- const e = (r, t) => t && typeof r == "number" ? t.transform(r) : r;
2
- export {
3
- e as getValueAsType
4
- };
@@ -1,6 +0,0 @@
1
- function n(l) {
2
- return l == null;
3
- }
4
- export {
5
- n as isNullish
6
- };
@@ -1,4 +0,0 @@
1
- const n = (t) => Math.round(t * 1e5) / 1e5;
2
- export {
3
- n as sanitize
4
- };
@@ -1,4 +0,0 @@
1
- const d = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;
2
- export {
3
- d as singleColorRegex
4
- };
@@ -1,4 +0,0 @@
1
- const t = (o) => !!(o && o.getVelocity);
2
- export {
3
- t as isMotionValue
4
- };
@@ -1,7 +0,0 @@
1
- import { isMotionValue as t } from "./is-motion-value.js";
2
- function e(o) {
3
- return t(o) ? o.get() : o;
4
- }
5
- export {
6
- e as resolveMotionValue
7
- };
@@ -1,14 +0,0 @@
1
- import { isWillChangeMotionValue as o } from "./is.js";
2
- import { MotionGlobalConfig as i } from "../../../../../motion-utils/dist/es/global-config.js";
3
- function C(a, n) {
4
- const l = a.getValue("willChange");
5
- if (o(l))
6
- return l.add(n);
7
- if (!l && i.WillChange) {
8
- const e = new i.WillChange("auto");
9
- a.addValue("willChange", e), e.add(n);
10
- }
11
- }
12
- export {
13
- C as addValueToWillChange
14
- };
@@ -1,7 +0,0 @@
1
- import { isMotionValue as i } from "../utils/is-motion-value.js";
2
- function t(o) {
3
- return !!(i(o) && o.add);
4
- }
5
- export {
6
- t as isWillChangeMotionValue
7
- };
@@ -1,11 +0,0 @@
1
- function f(e, n) {
2
- e.indexOf(n) === -1 && e.push(n);
3
- }
4
- function d(e, n) {
5
- const i = e.indexOf(n);
6
- i > -1 && e.splice(i, 1);
7
- }
8
- export {
9
- f as addUniqueItem,
10
- d as removeItem
11
- };
@@ -1,4 +0,0 @@
1
- const n = (t, e, r) => r > e ? e : r < t ? t : r;
2
- export {
3
- n as clamp
4
- };
@@ -1,5 +0,0 @@
1
- import { backIn as o } from "./back.js";
2
- const c = (t) => (t *= 2) < 1 ? 0.5 * o(t) : 0.5 * (2 - Math.pow(2, -10 * (t - 1)));
3
- export {
4
- c as anticipate
5
- };
@@ -1,9 +0,0 @@
1
- import { cubicBezier as r } from "./cubic-bezier.js";
2
- import { mirrorEasing as o } from "./modifiers/mirror.js";
3
- import { reverseEasing as t } from "./modifiers/reverse.js";
4
- const c = /* @__PURE__ */ r(0.33, 1.53, 0.69, 0.99), i = /* @__PURE__ */ t(c), s = /* @__PURE__ */ o(i);
5
- export {
6
- i as backIn,
7
- s as backInOut,
8
- c as backOut
9
- };
@@ -1,8 +0,0 @@
1
- import { mirrorEasing as o } from "./modifiers/mirror.js";
2
- import { reverseEasing as t } from "./modifiers/reverse.js";
3
- const r = (c) => 1 - Math.sin(Math.acos(c)), s = t(r), a = o(r);
4
- export {
5
- r as circIn,
6
- a as circInOut,
7
- s as circOut
8
- };
@@ -1,18 +0,0 @@
1
- import { noop as b } from "../noop.js";
2
- const s = (n, i, r) => (((1 - 3 * r + 3 * i) * n + (3 * r - 6 * i)) * n + 3 * i) * n, f = 1e-7, l = 12;
3
- function a(n, i, r, c, o) {
4
- let e, t, u = 0;
5
- do
6
- t = i + (r - i) / 2, e = s(t, c, o) - n, e > 0 ? r = t : i = t;
7
- while (Math.abs(e) > f && ++u < l);
8
- return t;
9
- }
10
- function d(n, i, r, c) {
11
- if (n === i && r === c)
12
- return b;
13
- const o = (e) => a(e, 0, 1, n, r);
14
- return (e) => e === 0 || e === 1 ? e : s(o(e), i, c);
15
- }
16
- export {
17
- d as cubicBezier
18
- };
@@ -1,7 +0,0 @@
1
- import { cubicBezier as e } from "./cubic-bezier.js";
2
- const o = /* @__PURE__ */ e(0.42, 0, 1, 1), s = /* @__PURE__ */ e(0, 0, 0.58, 1), c = /* @__PURE__ */ e(0.42, 0, 0.58, 1);
3
- export {
4
- o as easeIn,
5
- c as easeInOut,
6
- s as easeOut
7
- };
@@ -1,4 +0,0 @@
1
- const t = (o) => (r) => r <= 0.5 ? o(2 * r) / 2 : (2 - o(2 * (1 - r))) / 2;
2
- export {
3
- t as mirrorEasing
4
- };
@@ -1,4 +0,0 @@
1
- const s = (e) => (r) => 1 - e(1 - r);
2
- export {
3
- s as reverseEasing
4
- };
@@ -1,4 +0,0 @@
1
- const e = (r) => Array.isArray(r) && typeof r[0] == "number";
2
- export {
3
- e as isBezierDefinition
4
- };
@@ -1,4 +0,0 @@
1
- const n = (r) => Array.isArray(r) && typeof r[0] != "number";
2
- export {
3
- n as isEasingArray
4
- };
@@ -1,32 +0,0 @@
1
- import { invariant as e } from "../../errors.js";
2
- import { noop as c } from "../../noop.js";
3
- import { anticipate as u } from "../anticipate.js";
4
- import { backOut as s, backInOut as m, backIn as p } from "../back.js";
5
- import { circOut as l, circInOut as b, circIn as f } from "../circ.js";
6
- import { cubicBezier as g } from "../cubic-bezier.js";
7
- import { easeOut as I, easeInOut as y, easeIn as O } from "../ease.js";
8
- import { isBezierDefinition as k } from "./is-bezier-definition.js";
9
- const t = {
10
- linear: c,
11
- easeIn: O,
12
- easeInOut: y,
13
- easeOut: I,
14
- circIn: f,
15
- circInOut: b,
16
- circOut: l,
17
- backIn: p,
18
- backInOut: m,
19
- backOut: s,
20
- anticipate: u
21
- }, v = (r) => typeof r == "string", L = (r) => {
22
- if (k(r)) {
23
- e(r.length === 4, "Cubic bezier arrays must contain four numerical values.", "cubic-bezier-length");
24
- const [i, n, o, a] = r;
25
- return g(i, n, o, a);
26
- } else if (v(r))
27
- return e(t[r] !== void 0, `Invalid easing type '${r}'`, "invalid-easing-type"), t[r];
28
- return r;
29
- };
30
- export {
31
- L as easingDefinitionToFunction
32
- };
@@ -1,15 +0,0 @@
1
- import { formatErrorMessage as n } from "./format-error-message.js";
2
- let t = () => {
3
- }, f = () => {
4
- };
5
- var i;
6
- typeof process < "u" && ((i = process.env) == null ? void 0 : i.NODE_ENV) !== "production" && (t = (e, o, r) => {
7
- !e && typeof console < "u" && console.warn(n(o, r));
8
- }, f = (e, o, r) => {
9
- if (!e)
10
- throw new Error(n(o, r));
11
- });
12
- export {
13
- f as invariant,
14
- t as warning
15
- };
@@ -1,6 +0,0 @@
1
- function n(o, t) {
2
- return t ? `${o}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}` : o;
3
- }
4
- export {
5
- n as formatErrorMessage
6
- };
@@ -1,4 +0,0 @@
1
- const o = {};
2
- export {
3
- o as MotionGlobalConfig
4
- };
@@ -1,4 +0,0 @@
1
- const d = (t) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);
2
- export {
3
- d as isNumericalString
4
- };
@@ -1,6 +0,0 @@
1
- function e(t) {
2
- return typeof t == "object" && t !== null;
3
- }
4
- export {
5
- e as isObject
6
- };
@@ -1,4 +0,0 @@
1
- const e = (t) => /^0[^.\s]+$/u.test(t);
2
- export {
3
- e as isZeroValueString
4
- };
@@ -1,8 +0,0 @@
1
- // @__NO_SIDE_EFFECTS__
2
- function r(n) {
3
- let e;
4
- return () => (e === void 0 && (e = n()), e);
5
- }
6
- export {
7
- r as memo
8
- };
@@ -1,4 +0,0 @@
1
- const n = /* @__NO_SIDE_EFFECTS__ */ (o) => o;
2
- export {
3
- n as noop
4
- };
@@ -1,4 +0,0 @@
1
- const o = (c, e) => (n) => e(c(n)), t = (...c) => c.reduce(o);
2
- export {
3
- t as pipe
4
- };
@@ -1,7 +0,0 @@
1
- const n = /* @__NO_SIDE_EFFECTS__ */ (e, o, t) => {
2
- const r = o - e;
3
- return r === 0 ? 1 : (t - e) / r;
4
- };
5
- export {
6
- n as progress
7
- };
@@ -1,29 +0,0 @@
1
- import { addUniqueItem as e, removeItem as u } from "./array.js";
2
- class h {
3
- constructor() {
4
- this.subscriptions = [];
5
- }
6
- add(s) {
7
- return e(this.subscriptions, s), () => u(this.subscriptions, s);
8
- }
9
- notify(s, r, n) {
10
- const i = this.subscriptions.length;
11
- if (i)
12
- if (i === 1)
13
- this.subscriptions[0](s, r, n);
14
- else
15
- for (let t = 0; t < i; t++) {
16
- const o = this.subscriptions[t];
17
- o && o(s, r, n);
18
- }
19
- }
20
- getSize() {
21
- return this.subscriptions.length;
22
- }
23
- clear() {
24
- this.subscriptions.length = 0;
25
- }
26
- }
27
- export {
28
- h as SubscriptionManager
29
- };
@@ -1,5 +0,0 @@
1
- const s = /* @__NO_SIDE_EFFECTS__ */ (o) => o * 1e3, c = /* @__NO_SIDE_EFFECTS__ */ (o) => o / 1e3;
2
- export {
3
- c as millisecondsToSeconds,
4
- s as secondsToMilliseconds
5
- };
@@ -1,6 +0,0 @@
1
- function n(c, e) {
2
- return e ? c * (1e3 / e) : 0;
3
- }
4
- export {
5
- n as velocityPerSecond
6
- };
@@ -1,8 +0,0 @@
1
- import { formatErrorMessage as a } from "./format-error-message.js";
2
- const n = /* @__PURE__ */ new Set();
3
- function c(o, r, t) {
4
- o || n.has(r) || (console.warn(a(r, t)), n.add(r));
5
- }
6
- export {
7
- c as warnOnce
8
- };
@@ -1,141 +0,0 @@
1
- import { jsx as t, jsxs as m, Fragment as N } from "react/jsx-runtime";
2
- import { forwardRef as E, useState as g, useRef as S, useEffect as O } from "react";
3
- import { createPortal as j } from "react-dom";
4
- import { TableCard as H, Table as f } from "./table.js";
5
- import { cx as x } from "../../utils/cn.js";
6
- const F = E(function({
7
- data: d,
8
- columns: a,
9
- renderRowCell: i,
10
- onRowClick: l,
11
- arialabel: c,
12
- size: n = "sm",
13
- allowDefaultRowClass: y = !1,
14
- centeredHeaders: h = [],
15
- rootClassName: o,
16
- removeBorders: k,
17
- headerClassName: W,
18
- isRowExpandable: w,
19
- renderExpandedContent: v
20
- }, u) {
21
- return /* @__PURE__ */ t(H.Root, { ref: u, className: x("overflow-x-auto", o), size: n, children: /* @__PURE__ */ m(f, { "aria-label": c, size: n, children: [
22
- /* @__PURE__ */ t(f.Header, { className: x("sticky top-0", W), children: a.map((e, p) => /* @__PURE__ */ t(
23
- f.Head,
24
- {
25
- sticky: e.sticky,
26
- stickyOffset: e.stickyOffset,
27
- id: e.key,
28
- label: e.label,
29
- isRowHeader: !0,
30
- allowsSorting: e.allowsSorting,
31
- headerCellClass: h.includes(e.key) ? "justify-center" : "",
32
- style: {
33
- maxWidth: e.maxWidth,
34
- minWidth: e.maxWidth,
35
- width: e.maxWidth
36
- },
37
- className: "overflow-hidde"
38
- },
39
- p
40
- )) }),
41
- /* @__PURE__ */ t(f.Body, { items: d, children: (e) => {
42
- const p = w ? w(e) : !1, b = e.id || e.rule_id || String(e);
43
- return /* @__PURE__ */ t(
44
- f.Row,
45
- {
46
- onAction: () => l == null ? void 0 : l(e),
47
- id: b,
48
- isExpandable: p,
49
- renderExpandedContent: p ? v : void 0,
50
- columns: a,
51
- className: x(
52
- l && "cursor-pointer",
53
- y ? "prose" : "",
54
- k && "[&>td]:after:hidden"
55
- // Remove row borders
56
- ),
57
- children: a.map((s, T) => /* @__PURE__ */ t(
58
- f.Cell,
59
- {
60
- sticky: s.sticky,
61
- stickyOffset: s.stickyOffset,
62
- style: {
63
- maxWidth: s.maxWidth,
64
- minWidth: s.maxWidth,
65
- width: s.maxWidth
66
- },
67
- className: "overflow-x-hidden text-left",
68
- children: T === 0 && p ? /* @__PURE__ */ t("div", { className: "flex items-center gap-2", children: i(s.key, e[s.key], e) }) : i(s.key, e[s.key], e)
69
- },
70
- s.key
71
- ))
72
- },
73
- b
74
- );
75
- } })
76
- ] }) });
77
- }), $ = ({
78
- content: r,
79
- className: d = "",
80
- link: a = !1,
81
- tooltipPosition: i = "center"
82
- }) => {
83
- const [l, c] = g(!1), [n, y] = g({ top: 0, left: 0 }), h = S(null);
84
- return O(() => {
85
- if (l && h.current) {
86
- const o = h.current.getBoundingClientRect();
87
- y({
88
- top: o.top - 8,
89
- // 8px above the element (accounts for tooltip height + margin)
90
- left: i === "start" ? o.left : o.left + o.width / 2
91
- // start: left align; center: center horizontally
92
- });
93
- }
94
- }, [l, i]), /* @__PURE__ */ m(N, { children: [
95
- /* @__PURE__ */ t(
96
- "span",
97
- {
98
- ref: h,
99
- className: x(
100
- "whitespace-nowrap overflow-hidden text-ellipsis w-full text-left text-secondary block",
101
- d,
102
- a ? "!text-[var(--color-brand-600)]" : ""
103
- ),
104
- onMouseEnter: () => c(!0),
105
- onMouseLeave: () => c(!1),
106
- children: a ? /* @__PURE__ */ t("a", { href: r, target: "_blank", children: r }) : r
107
- }
108
- ),
109
- l && j(
110
- /* @__PURE__ */ t(
111
- "div",
112
- {
113
- className: x(
114
- "fixed px-3 py-2 text-xs font-semibold text-white bg-primary-solid rounded-lg shadow-lg pointer-events-none -translate-y-full z-999 max-w-2xs lg:max-w-xs xl:max-w-sm break-words whitespace-normal",
115
- i === "center" && "-translate-x-1/2",
116
- d
117
- ),
118
- style: {
119
- top: `${n.top}px`,
120
- left: `${n.left}px`
121
- },
122
- children: r
123
- }
124
- ),
125
- document.body
126
- )
127
- ] });
128
- }, I = (r, d = "", a, i) => r === "" || r === "-" ? /* @__PURE__ */ t("span", { className: `text-left ${d}`, children: r || "-" }) : /* @__PURE__ */ t(
129
- $,
130
- {
131
- content: r,
132
- className: d,
133
- link: a,
134
- tooltipPosition: i
135
- }
136
- );
137
- export {
138
- $ as EllipsisContentWithTooltip,
139
- F as TableWrapper,
140
- I as createEllipsisContent
141
- };
@@ -1,7 +0,0 @@
1
- declare const TreeDemo: () => import("react/jsx-runtime").JSX.Element;
2
- export declare const CustomLeaf: ({ data }: {
3
- data: any;
4
- type: any;
5
- }) => import("react/jsx-runtime").JSX.Element;
6
- export default TreeDemo;
7
- //# sourceMappingURL=TreeDemo.d.ts.map