@teamturing/react-kit 2.51.3 → 2.51.5

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 (602) hide show
  1. package/dist/core/Tooltip/index.d.ts +2 -2
  2. package/dist/index.js +1342 -24149
  3. package/esm/_virtual/_commonjsHelpers.js +1 -3
  4. package/esm/core/ActionList/ActionListItem.js +18 -20
  5. package/esm/core/ActionList/ActionListSectionDivider.js +2 -2
  6. package/esm/core/ActionList/ActionListSectionHeader.js +3 -3
  7. package/esm/core/ActionList/index.js +3 -3
  8. package/esm/core/AnimatePresence/index.js +2 -5
  9. package/esm/core/Avatar/index.js +3 -3
  10. package/esm/core/AvatarGroup/AvatarGroupItem.js +4 -4
  11. package/esm/core/AvatarGroup/index.js +13 -13
  12. package/esm/core/BadgeAttacher/index.js +2 -2
  13. package/esm/core/Breadcrumbs/BreadcrumbsItem.js +4 -4
  14. package/esm/core/Breadcrumbs/index.js +5 -5
  15. package/esm/core/Button/index.js +7 -7
  16. package/esm/core/Card/index.js +1 -1
  17. package/esm/core/Checkbox/index.js +3 -3
  18. package/esm/core/Chip/index.js +4 -4
  19. package/esm/core/ClickArea/index.js +2 -2
  20. package/esm/core/CounterBadge/index.js +3 -3
  21. package/esm/core/Datagrid/DatagridBody.js +3 -3
  22. package/esm/core/Datagrid/DatagridCell.js +2 -2
  23. package/esm/core/Datagrid/DatagridHeader.js +7 -7
  24. package/esm/core/Datagrid/DatagridRow.js +3 -3
  25. package/esm/core/Datagrid/DatagridSubheader.js +3 -3
  26. package/esm/core/Datagrid/index.js +4 -4
  27. package/esm/core/DescriptionList/index.js +11 -11
  28. package/esm/core/Dialog/DialogBody.js +2 -2
  29. package/esm/core/Dialog/DialogFooter.js +2 -2
  30. package/esm/core/Dialog/DialogHeader.js +2 -2
  31. package/esm/core/Dialog/DialogHeaderSubtitle.js +2 -2
  32. package/esm/core/Dialog/DialogHeaderTitle.js +2 -2
  33. package/esm/core/Dialog/index.js +8 -8
  34. package/esm/core/Drawer/DrawerBody.js +2 -2
  35. package/esm/core/Drawer/DrawerFooter.js +2 -2
  36. package/esm/core/Drawer/DrawerHeader.js +2 -2
  37. package/esm/core/Drawer/DrawerHeaderIconButton.js +2 -2
  38. package/esm/core/Drawer/index.js +12 -13
  39. package/esm/core/EmptyState/index.js +8 -9
  40. package/esm/core/Flash/index.js +12 -15
  41. package/esm/core/FormControl/FormControlCaption.js +2 -2
  42. package/esm/core/FormControl/FormControlErrorMessage.js +2 -2
  43. package/esm/core/FormControl/FormControlLabel.js +5 -5
  44. package/esm/core/FormControl/FormControlSuccessMessage.js +2 -2
  45. package/esm/core/FormControl/FormControlTooltipIcon.js +5 -6
  46. package/esm/core/FormControl/index.js +8 -8
  47. package/esm/core/Grid/index.js +4 -6
  48. package/esm/core/HorizontalDivider/index.js +2 -2
  49. package/esm/core/IconButton/index.js +3 -3
  50. package/esm/core/IconToggleButton/index.js +3 -3
  51. package/esm/core/ItemList/index.js +2 -2
  52. package/esm/core/MotionView/index.js +1 -1
  53. package/esm/core/Overlay/index.js +4 -4
  54. package/esm/core/OverlayPopper/index.js +4 -6
  55. package/esm/core/Pagination/index.js +15 -17
  56. package/esm/core/Pill/index.js +11 -12
  57. package/esm/core/Radio/index.js +3 -3
  58. package/esm/core/SearchSelectInput/index.js +22 -28
  59. package/esm/core/Select/SelectOption.js +3 -3
  60. package/esm/core/Select/index.js +11 -13
  61. package/esm/core/Spinner/index.js +2 -3
  62. package/esm/core/Stack/index.js +4 -4
  63. package/esm/core/StyledIcon/index.js +3 -3
  64. package/esm/core/Switch/index.js +3 -3
  65. package/esm/core/Tab/TabItem.js +5 -5
  66. package/esm/core/Tab/index.js +18 -19
  67. package/esm/core/TextInput/TextInputTrailingAction.js +4 -4
  68. package/esm/core/TextInput/index.js +9 -11
  69. package/esm/core/Textarea/index.js +6 -8
  70. package/esm/core/ThemeProvider/index.js +2 -2
  71. package/esm/core/Toast/index.js +6 -8
  72. package/esm/core/Tooltip/BaseTooltip.js +8 -8
  73. package/esm/core/Tooltip/index.js +4 -4
  74. package/esm/core/Tooltip/useTooltip.js +1 -3
  75. package/esm/enigma/EnigmaUI/index.js +3 -4
  76. package/esm/enigma/Layout/SingleColumnLayout/index.js +4 -4
  77. package/esm/enigma/View/ChipGroupView/index.js +6 -6
  78. package/esm/enigma/View/GridView/index.js +5 -5
  79. package/esm/enigma/View/HorizontalDividerView/index.js +2 -2
  80. package/esm/enigma/View/IconView/index.js +4 -4
  81. package/esm/enigma/View/ImageView/index.js +2 -2
  82. package/esm/enigma/View/TextView/index.js +2 -2
  83. package/esm/hook/useFocusTrap.js +5 -5
  84. package/esm/hook/useFocusZone.js +2 -2
  85. package/esm/hook/useResize.js +1 -1
  86. package/esm/index.js +1 -1
  87. package/esm/theme/index.js +1 -13
  88. package/package.json +2 -2
  89. package/esm/_virtual/index.js +0 -3
  90. package/esm/_virtual/jsx-runtime.js +0 -3
  91. package/esm/_virtual/react-is.development.js +0 -3
  92. package/esm/_virtual/react-is.production.min.js +0 -3
  93. package/esm/_virtual/react-jsx-runtime.development.js +0 -3
  94. package/esm/_virtual/react-jsx-runtime.production.min.js +0 -3
  95. package/esm/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -593
  96. package/esm/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -731
  97. package/esm/node_modules/@floating-ui/react/dist/floating-ui.react.js +0 -1621
  98. package/esm/node_modules/@floating-ui/react/dist/floating-ui.react.utils.js +0 -233
  99. package/esm/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +0 -321
  100. package/esm/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -161
  101. package/esm/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -136
  102. package/esm/node_modules/@primer/behaviors/dist/esm/focus-trap.js +0 -105
  103. package/esm/node_modules/@primer/behaviors/dist/esm/focus-zone.js +0 -436
  104. package/esm/node_modules/@primer/behaviors/dist/esm/polyfills/event-listener-signal.js +0 -38
  105. package/esm/node_modules/@primer/behaviors/dist/esm/utils/iterate-focusable-elements.js +0 -65
  106. package/esm/node_modules/@primer/behaviors/dist/esm/utils/unique-id.js +0 -6
  107. package/esm/node_modules/@primer/behaviors/dist/esm/utils/user-agent.js +0 -9
  108. package/esm/node_modules/framer-motion/dist/es/animation/animators/instant.js +0 -40
  109. package/esm/node_modules/framer-motion/dist/es/animation/animators/js/driver-frameloop.js +0 -16
  110. package/esm/node_modules/framer-motion/dist/es/animation/animators/js/index.js +0 -303
  111. package/esm/node_modules/framer-motion/dist/es/animation/animators/waapi/create-accelerated-animation.js +0 -199
  112. package/esm/node_modules/framer-motion/dist/es/animation/animators/waapi/easing.js +0 -31
  113. package/esm/node_modules/framer-motion/dist/es/animation/animators/waapi/index.js +0 -23
  114. package/esm/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.js +0 -8
  115. package/esm/node_modules/framer-motion/dist/es/animation/generators/inertia.js +0 -87
  116. package/esm/node_modules/framer-motion/dist/es/animation/generators/keyframes.js +0 -51
  117. package/esm/node_modules/framer-motion/dist/es/animation/generators/spring/find.js +0 -89
  118. package/esm/node_modules/framer-motion/dist/es/animation/generators/spring/index.js +0 -129
  119. package/esm/node_modules/framer-motion/dist/es/animation/generators/utils/calc-duration.js +0 -17
  120. package/esm/node_modules/framer-motion/dist/es/animation/generators/utils/velocity.js +0 -9
  121. package/esm/node_modules/framer-motion/dist/es/animation/interfaces/motion-value.js +0 -101
  122. package/esm/node_modules/framer-motion/dist/es/animation/interfaces/single-value.js +0 -11
  123. package/esm/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-target.js +0 -71
  124. package/esm/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-variant.js +0 -63
  125. package/esm/node_modules/framer-motion/dist/es/animation/interfaces/visual-element.js +0 -24
  126. package/esm/node_modules/framer-motion/dist/es/animation/optimized-appear/data-id.js +0 -6
  127. package/esm/node_modules/framer-motion/dist/es/animation/utils/default-transitions.js +0 -40
  128. package/esm/node_modules/framer-motion/dist/es/animation/utils/is-animatable.js +0 -30
  129. package/esm/node_modules/framer-motion/dist/es/animation/utils/is-animation-controls.js +0 -5
  130. package/esm/node_modules/framer-motion/dist/es/animation/utils/is-keyframes-target.js +0 -5
  131. package/esm/node_modules/framer-motion/dist/es/animation/utils/is-none.js +0 -12
  132. package/esm/node_modules/framer-motion/dist/es/animation/utils/keyframes.js +0 -45
  133. package/esm/node_modules/framer-motion/dist/es/animation/utils/transitions.js +0 -13
  134. package/esm/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js +0 -71
  135. package/esm/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js +0 -56
  136. package/esm/node_modules/framer-motion/dist/es/components/AnimatePresence/index.js +0 -158
  137. package/esm/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js +0 -40
  138. package/esm/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js +0 -5
  139. package/esm/node_modules/framer-motion/dist/es/context/LazyContext.js +0 -5
  140. package/esm/node_modules/framer-motion/dist/es/context/MotionConfigContext.js +0 -12
  141. package/esm/node_modules/framer-motion/dist/es/context/MotionContext/create.js +0 -13
  142. package/esm/node_modules/framer-motion/dist/es/context/MotionContext/index.js +0 -5
  143. package/esm/node_modules/framer-motion/dist/es/context/MotionContext/utils.js +0 -17
  144. package/esm/node_modules/framer-motion/dist/es/context/PresenceContext.js +0 -8
  145. package/esm/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js +0 -8
  146. package/esm/node_modules/framer-motion/dist/es/debug/record.js +0 -7
  147. package/esm/node_modules/framer-motion/dist/es/easing/anticipate.js +0 -5
  148. package/esm/node_modules/framer-motion/dist/es/easing/back.js +0 -9
  149. package/esm/node_modules/framer-motion/dist/es/easing/circ.js +0 -8
  150. package/esm/node_modules/framer-motion/dist/es/easing/cubic-bezier.js +0 -51
  151. package/esm/node_modules/framer-motion/dist/es/easing/ease.js +0 -7
  152. package/esm/node_modules/framer-motion/dist/es/easing/modifiers/mirror.js +0 -5
  153. package/esm/node_modules/framer-motion/dist/es/easing/modifiers/reverse.js +0 -5
  154. package/esm/node_modules/framer-motion/dist/es/easing/utils/is-bezier-definition.js +0 -3
  155. package/esm/node_modules/framer-motion/dist/es/easing/utils/is-easing-array.js +0 -5
  156. package/esm/node_modules/framer-motion/dist/es/easing/utils/map.js +0 -37
  157. package/esm/node_modules/framer-motion/dist/es/events/add-dom-event.js +0 -6
  158. package/esm/node_modules/framer-motion/dist/es/events/add-pointer-event.js +0 -8
  159. package/esm/node_modules/framer-motion/dist/es/events/event-info.js +0 -15
  160. package/esm/node_modules/framer-motion/dist/es/events/utils/is-primary-pointer.js +0 -18
  161. package/esm/node_modules/framer-motion/dist/es/frameloop/batcher.js +0 -60
  162. package/esm/node_modules/framer-motion/dist/es/frameloop/frame.js +0 -6
  163. package/esm/node_modules/framer-motion/dist/es/frameloop/render-step.js +0 -104
  164. package/esm/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +0 -457
  165. package/esm/node_modules/framer-motion/dist/es/gestures/drag/index.js +0 -27
  166. package/esm/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js +0 -125
  167. package/esm/node_modules/framer-motion/dist/es/gestures/drag/utils/lock.js +0 -53
  168. package/esm/node_modules/framer-motion/dist/es/gestures/focus.js +0 -41
  169. package/esm/node_modules/framer-motion/dist/es/gestures/hover.js +0 -32
  170. package/esm/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js +0 -148
  171. package/esm/node_modules/framer-motion/dist/es/gestures/pan/index.js +0 -46
  172. package/esm/node_modules/framer-motion/dist/es/gestures/press.js +0 -120
  173. package/esm/node_modules/framer-motion/dist/es/gestures/utils/is-node-or-child.js +0 -20
  174. package/esm/node_modules/framer-motion/dist/es/motion/features/Feature.js +0 -9
  175. package/esm/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +0 -31
  176. package/esm/node_modules/framer-motion/dist/es/motion/features/animation/index.js +0 -38
  177. package/esm/node_modules/framer-motion/dist/es/motion/features/animations.js +0 -13
  178. package/esm/node_modules/framer-motion/dist/es/motion/features/definitions.js +0 -28
  179. package/esm/node_modules/framer-motion/dist/es/motion/features/drag.js +0 -17
  180. package/esm/node_modules/framer-motion/dist/es/motion/features/gestures.js +0 -21
  181. package/esm/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +0 -131
  182. package/esm/node_modules/framer-motion/dist/es/motion/features/layout.js +0 -11
  183. package/esm/node_modules/framer-motion/dist/es/motion/features/load-features.js +0 -12
  184. package/esm/node_modules/framer-motion/dist/es/motion/features/viewport/index.js +0 -72
  185. package/esm/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js +0 -49
  186. package/esm/node_modules/framer-motion/dist/es/motion/index.js +0 -79
  187. package/esm/node_modules/framer-motion/dist/es/motion/utils/is-forced-motion-value.js +0 -11
  188. package/esm/node_modules/framer-motion/dist/es/motion/utils/symbol.js +0 -3
  189. package/esm/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js +0 -33
  190. package/esm/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js +0 -75
  191. package/esm/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js +0 -81
  192. package/esm/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js +0 -59
  193. package/esm/node_modules/framer-motion/dist/es/projection/animation/mix-values.js +0 -93
  194. package/esm/node_modules/framer-motion/dist/es/projection/geometry/conversion.js +0 -33
  195. package/esm/node_modules/framer-motion/dist/es/projection/geometry/copy.js +0 -20
  196. package/esm/node_modules/framer-motion/dist/es/projection/geometry/delta-apply.js +0 -122
  197. package/esm/node_modules/framer-motion/dist/es/projection/geometry/delta-calc.js +0 -41
  198. package/esm/node_modules/framer-motion/dist/es/projection/geometry/delta-remove.js +0 -54
  199. package/esm/node_modules/framer-motion/dist/es/projection/geometry/models.js +0 -17
  200. package/esm/node_modules/framer-motion/dist/es/projection/geometry/utils.js +0 -25
  201. package/esm/node_modules/framer-motion/dist/es/projection/node/DocumentProjectionNode.js +0 -13
  202. package/esm/node_modules/framer-motion/dist/es/projection/node/HTMLProjectionNode.js +0 -27
  203. package/esm/node_modules/framer-motion/dist/es/projection/node/create-projection-node.js +0 -1494
  204. package/esm/node_modules/framer-motion/dist/es/projection/node/state.js +0 -19
  205. package/esm/node_modules/framer-motion/dist/es/projection/shared/stack.js +0 -112
  206. package/esm/node_modules/framer-motion/dist/es/projection/styles/scale-border-radius.js +0 -41
  207. package/esm/node_modules/framer-motion/dist/es/projection/styles/scale-box-shadow.js +0 -35
  208. package/esm/node_modules/framer-motion/dist/es/projection/styles/scale-correction.js +0 -6
  209. package/esm/node_modules/framer-motion/dist/es/projection/styles/transform.js +0 -42
  210. package/esm/node_modules/framer-motion/dist/es/projection/utils/each-axis.js +0 -5
  211. package/esm/node_modules/framer-motion/dist/es/projection/utils/has-transform.js +0 -24
  212. package/esm/node_modules/framer-motion/dist/es/projection/utils/measure.js +0 -17
  213. package/esm/node_modules/framer-motion/dist/es/render/VisualElement.js +0 -507
  214. package/esm/node_modules/framer-motion/dist/es/render/dom/DOMVisualElement.js +0 -48
  215. package/esm/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js +0 -11
  216. package/esm/node_modules/framer-motion/dist/es/render/dom/motion-proxy.js +0 -47
  217. package/esm/node_modules/framer-motion/dist/es/render/dom/motion.js +0 -23
  218. package/esm/node_modules/framer-motion/dist/es/render/dom/use-render.js +0 -35
  219. package/esm/node_modules/framer-motion/dist/es/render/dom/utils/camel-to-dash.js +0 -6
  220. package/esm/node_modules/framer-motion/dist/es/render/dom/utils/create-config.js +0 -19
  221. package/esm/node_modules/framer-motion/dist/es/render/dom/utils/css-variables-conversion.js +0 -89
  222. package/esm/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js +0 -57
  223. package/esm/node_modules/framer-motion/dist/es/render/dom/utils/is-css-variable.js +0 -6
  224. package/esm/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js +0 -30
  225. package/esm/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-element.js +0 -5
  226. package/esm/node_modules/framer-motion/dist/es/render/dom/utils/parse-dom-variant.js +0 -15
  227. package/esm/node_modules/framer-motion/dist/es/render/dom/utils/unit-conversion.js +0 -230
  228. package/esm/node_modules/framer-motion/dist/es/render/dom/value-types/animatable-none.js +0 -15
  229. package/esm/node_modules/framer-motion/dist/es/render/dom/value-types/defaults.js +0 -30
  230. package/esm/node_modules/framer-motion/dist/es/render/dom/value-types/dimensions.js +0 -15
  231. package/esm/node_modules/framer-motion/dist/es/render/dom/value-types/find.js +0 -15
  232. package/esm/node_modules/framer-motion/dist/es/render/dom/value-types/get-as-type.js +0 -10
  233. package/esm/node_modules/framer-motion/dist/es/render/dom/value-types/number.js +0 -72
  234. package/esm/node_modules/framer-motion/dist/es/render/dom/value-types/test.js +0 -6
  235. package/esm/node_modules/framer-motion/dist/es/render/dom/value-types/type-auto.js +0 -9
  236. package/esm/node_modules/framer-motion/dist/es/render/dom/value-types/type-int.js +0 -8
  237. package/esm/node_modules/framer-motion/dist/es/render/html/HTMLVisualElement.js +0 -55
  238. package/esm/node_modules/framer-motion/dist/es/render/html/config-motion.js +0 -12
  239. package/esm/node_modules/framer-motion/dist/es/render/html/use-props.js +0 -57
  240. package/esm/node_modules/framer-motion/dist/es/render/html/utils/build-styles.js +0 -74
  241. package/esm/node_modules/framer-motion/dist/es/render/html/utils/build-transform.js +0 -45
  242. package/esm/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js +0 -8
  243. package/esm/node_modules/framer-motion/dist/es/render/html/utils/render.js +0 -9
  244. package/esm/node_modules/framer-motion/dist/es/render/html/utils/scrape-motion-values.js +0 -17
  245. package/esm/node_modules/framer-motion/dist/es/render/html/utils/transform.js +0 -28
  246. package/esm/node_modules/framer-motion/dist/es/render/store.js +0 -3
  247. package/esm/node_modules/framer-motion/dist/es/render/svg/SVGVisualElement.js +0 -46
  248. package/esm/node_modules/framer-motion/dist/es/render/svg/config-motion.js +0 -40
  249. package/esm/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js +0 -33
  250. package/esm/node_modules/framer-motion/dist/es/render/svg/use-props.js +0 -24
  251. package/esm/node_modules/framer-motion/dist/es/render/svg/utils/build-attrs.js +0 -52
  252. package/esm/node_modules/framer-motion/dist/es/render/svg/utils/camel-case-attrs.js +0 -30
  253. package/esm/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js +0 -8
  254. package/esm/node_modules/framer-motion/dist/es/render/svg/utils/is-svg-tag.js +0 -3
  255. package/esm/node_modules/framer-motion/dist/es/render/svg/utils/path.js +0 -32
  256. package/esm/node_modules/framer-motion/dist/es/render/svg/utils/render.js +0 -12
  257. package/esm/node_modules/framer-motion/dist/es/render/svg/utils/scrape-motion-values.js +0 -18
  258. package/esm/node_modules/framer-motion/dist/es/render/svg/utils/transform-origin.js +0 -18
  259. package/esm/node_modules/framer-motion/dist/es/render/utils/animation-state.js +0 -319
  260. package/esm/node_modules/framer-motion/dist/es/render/utils/compare-by-depth.js +0 -3
  261. package/esm/node_modules/framer-motion/dist/es/render/utils/flat-tree.js +0 -24
  262. package/esm/node_modules/framer-motion/dist/es/render/utils/is-controlling-variants.js +0 -13
  263. package/esm/node_modules/framer-motion/dist/es/render/utils/is-variant-label.js +0 -8
  264. package/esm/node_modules/framer-motion/dist/es/render/utils/motion-values.js +0 -63
  265. package/esm/node_modules/framer-motion/dist/es/render/utils/resolve-dynamic-variants.js +0 -24
  266. package/esm/node_modules/framer-motion/dist/es/render/utils/resolve-variants.js +0 -26
  267. package/esm/node_modules/framer-motion/dist/es/render/utils/setters.js +0 -101
  268. package/esm/node_modules/framer-motion/dist/es/render/utils/variant-props.js +0 -12
  269. package/esm/node_modules/framer-motion/dist/es/utils/array.js +0 -11
  270. package/esm/node_modules/framer-motion/dist/es/utils/clamp.js +0 -3
  271. package/esm/node_modules/framer-motion/dist/es/utils/delay.js +0 -19
  272. package/esm/node_modules/framer-motion/dist/es/utils/distance.js +0 -9
  273. package/esm/node_modules/framer-motion/dist/es/utils/errors.js +0 -18
  274. package/esm/node_modules/framer-motion/dist/es/utils/hsla-to-rgba.js +0 -42
  275. package/esm/node_modules/framer-motion/dist/es/utils/interpolate.js +0 -92
  276. package/esm/node_modules/framer-motion/dist/es/utils/is-browser.js +0 -3
  277. package/esm/node_modules/framer-motion/dist/es/utils/is-numerical-string.js +0 -6
  278. package/esm/node_modules/framer-motion/dist/es/utils/is-ref-object.js +0 -6
  279. package/esm/node_modules/framer-motion/dist/es/utils/is-zero-value-string.js +0 -6
  280. package/esm/node_modules/framer-motion/dist/es/utils/memo.js +0 -10
  281. package/esm/node_modules/framer-motion/dist/es/utils/mix-color.js +0 -40
  282. package/esm/node_modules/framer-motion/dist/es/utils/mix-complex.js +0 -64
  283. package/esm/node_modules/framer-motion/dist/es/utils/mix.js +0 -24
  284. package/esm/node_modules/framer-motion/dist/es/utils/noop.js +0 -3
  285. package/esm/node_modules/framer-motion/dist/es/utils/offsets/default.js +0 -9
  286. package/esm/node_modules/framer-motion/dist/es/utils/offsets/fill.js +0 -12
  287. package/esm/node_modules/framer-motion/dist/es/utils/offsets/time.js +0 -5
  288. package/esm/node_modules/framer-motion/dist/es/utils/pipe.js +0 -11
  289. package/esm/node_modules/framer-motion/dist/es/utils/progress.js +0 -18
  290. package/esm/node_modules/framer-motion/dist/es/utils/reduced-motion/index.js +0 -19
  291. package/esm/node_modules/framer-motion/dist/es/utils/reduced-motion/state.js +0 -5
  292. package/esm/node_modules/framer-motion/dist/es/utils/resolve-value.js +0 -11
  293. package/esm/node_modules/framer-motion/dist/es/utils/shallow-compare.js +0 -14
  294. package/esm/node_modules/framer-motion/dist/es/utils/subscription-manager.js +0 -40
  295. package/esm/node_modules/framer-motion/dist/es/utils/time-conversion.js +0 -10
  296. package/esm/node_modules/framer-motion/dist/es/utils/use-constant.js +0 -18
  297. package/esm/node_modules/framer-motion/dist/es/utils/use-force-update.js +0 -19
  298. package/esm/node_modules/framer-motion/dist/es/utils/use-instant-transition-state.js +0 -5
  299. package/esm/node_modules/framer-motion/dist/es/utils/use-is-mounted.js +0 -15
  300. package/esm/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js +0 -6
  301. package/esm/node_modules/framer-motion/dist/es/utils/use-unmount-effect.js +0 -7
  302. package/esm/node_modules/framer-motion/dist/es/utils/velocity-per-second.js +0 -11
  303. package/esm/node_modules/framer-motion/dist/es/utils/warn-once.js +0 -11
  304. package/esm/node_modules/framer-motion/dist/es/value/index.js +0 -331
  305. package/esm/node_modules/framer-motion/dist/es/value/types/color/hex.js +0 -40
  306. package/esm/node_modules/framer-motion/dist/es/value/types/color/hsla.js +0 -22
  307. package/esm/node_modules/framer-motion/dist/es/value/types/color/index.js +0 -28
  308. package/esm/node_modules/framer-motion/dist/es/value/types/color/rgba.js +0 -25
  309. package/esm/node_modules/framer-motion/dist/es/value/types/color/utils.js +0 -23
  310. package/esm/node_modules/framer-motion/dist/es/value/types/complex/filter.js +0 -30
  311. package/esm/node_modules/framer-motion/dist/es/value/types/complex/index.js +0 -92
  312. package/esm/node_modules/framer-motion/dist/es/value/types/numbers/index.js +0 -17
  313. package/esm/node_modules/framer-motion/dist/es/value/types/numbers/units.js +0 -19
  314. package/esm/node_modules/framer-motion/dist/es/value/types/utils.js +0 -15
  315. package/esm/node_modules/framer-motion/dist/es/value/use-will-change/is.js +0 -7
  316. package/esm/node_modules/framer-motion/dist/es/value/utils/is-motion-value.js +0 -3
  317. package/esm/node_modules/framer-motion/dist/es/value/utils/resolve-motion-value.js +0 -16
  318. package/esm/node_modules/lodash.debounce/index.js +0 -363
  319. package/esm/node_modules/lodash.throttle/index.js +0 -424
  320. package/esm/node_modules/lodash.toarray/index.js +0 -849
  321. package/esm/node_modules/react/cjs/react-jsx-runtime.development.js +0 -1140
  322. package/esm/node_modules/react/cjs/react-jsx-runtime.production.min.js +0 -53
  323. package/esm/node_modules/react/jsx-runtime.js +0 -12
  324. package/esm/node_modules/react-is/cjs/react-is.development.js +0 -211
  325. package/esm/node_modules/react-is/cjs/react-is.production.min.js +0 -123
  326. package/esm/node_modules/react-is/index.js +0 -12
  327. package/esm/node_modules/tabbable/dist/index.esm.js +0 -560
  328. package/esm/packages/icons/esm/AHorizontalLine.js +0 -15
  329. package/esm/packages/icons/esm/AInCircleFilled.js +0 -21
  330. package/esm/packages/icons/esm/AVertialLine.js +0 -15
  331. package/esm/packages/icons/esm/Ai.js +0 -23
  332. package/esm/packages/icons/esm/AiColor.js +0 -23
  333. package/esm/packages/icons/esm/AiSad.js +0 -24
  334. package/esm/packages/icons/esm/Alarm.js +0 -17
  335. package/esm/packages/icons/esm/AppleColor.js +0 -18
  336. package/esm/packages/icons/esm/ArrowBelow.js +0 -17
  337. package/esm/packages/icons/esm/ArrowDiagonal.js +0 -15
  338. package/esm/packages/icons/esm/ArrowDown.js +0 -17
  339. package/esm/packages/icons/esm/ArrowLeft.js +0 -17
  340. package/esm/packages/icons/esm/ArrowLeftCircle.js +0 -15
  341. package/esm/packages/icons/esm/ArrowLeftLimit.js +0 -17
  342. package/esm/packages/icons/esm/ArrowLeftRight.js +0 -17
  343. package/esm/packages/icons/esm/ArrowRight.js +0 -17
  344. package/esm/packages/icons/esm/ArrowRightCircle.js +0 -15
  345. package/esm/packages/icons/esm/ArrowRightLimit.js +0 -17
  346. package/esm/packages/icons/esm/ArrowUp.js +0 -17
  347. package/esm/packages/icons/esm/ArrowUpDown.js +0 -17
  348. package/esm/packages/icons/esm/ArrowUpLimit.js +0 -17
  349. package/esm/packages/icons/esm/Barchart.js +0 -15
  350. package/esm/packages/icons/esm/Book.js +0 -17
  351. package/esm/packages/icons/esm/BookColor.js +0 -28
  352. package/esm/packages/icons/esm/Bookmark.js +0 -17
  353. package/esm/packages/icons/esm/BookmarkAnimation.js +0 -17
  354. package/esm/packages/icons/esm/Box.js +0 -24
  355. package/esm/packages/icons/esm/BoxPlus.js +0 -15
  356. package/esm/packages/icons/esm/BusColor.js +0 -36
  357. package/esm/packages/icons/esm/Calendar.js +0 -22
  358. package/esm/packages/icons/esm/CalendarCheck.js +0 -17
  359. package/esm/packages/icons/esm/CalendarCheckColor.js +0 -20
  360. package/esm/packages/icons/esm/CalendarColor.js +0 -36
  361. package/esm/packages/icons/esm/Camera.js +0 -22
  362. package/esm/packages/icons/esm/CameraColor.js +0 -30
  363. package/esm/packages/icons/esm/Card.js +0 -17
  364. package/esm/packages/icons/esm/CardsPercent.js +0 -19
  365. package/esm/packages/icons/esm/CardsPercentColor.js +0 -23
  366. package/esm/packages/icons/esm/CaretDown.js +0 -15
  367. package/esm/packages/icons/esm/CaretLeft.js +0 -15
  368. package/esm/packages/icons/esm/CaretRight.js +0 -15
  369. package/esm/packages/icons/esm/CaretUp.js +0 -15
  370. package/esm/packages/icons/esm/Cart.js +0 -17
  371. package/esm/packages/icons/esm/ChatBubble.js +0 -17
  372. package/esm/packages/icons/esm/ChatBubbleBadgeColor.js +0 -32
  373. package/esm/packages/icons/esm/ChatBubbleCorrect.js +0 -24
  374. package/esm/packages/icons/esm/ChatBubbleCorrectColor.js +0 -22
  375. package/esm/packages/icons/esm/ChatBubbleDots.js +0 -17
  376. package/esm/packages/icons/esm/ChatBubbleQuestion.js +0 -17
  377. package/esm/packages/icons/esm/ChatBubbleQuestionAnimation.js +0 -16
  378. package/esm/packages/icons/esm/ChatBubbleQuestionColor.js +0 -20
  379. package/esm/packages/icons/esm/Check.js +0 -15
  380. package/esm/packages/icons/esm/CheckInCircle.js +0 -17
  381. package/esm/packages/icons/esm/CheckInCircleColor.js +0 -20
  382. package/esm/packages/icons/esm/CheckInCircleLine.js +0 -20
  383. package/esm/packages/icons/esm/ChevronDown.js +0 -17
  384. package/esm/packages/icons/esm/ChevronDownTwo.js +0 -23
  385. package/esm/packages/icons/esm/ChevronLeft.js +0 -17
  386. package/esm/packages/icons/esm/ChevronRight.js +0 -17
  387. package/esm/packages/icons/esm/ChevronRightTwo.js +0 -23
  388. package/esm/packages/icons/esm/ChevronUp.js +0 -17
  389. package/esm/packages/icons/esm/ChevronUpTwo.js +0 -23
  390. package/esm/packages/icons/esm/Circles.js +0 -17
  391. package/esm/packages/icons/esm/Clip.js +0 -15
  392. package/esm/packages/icons/esm/Close.js +0 -17
  393. package/esm/packages/icons/esm/CloseInCircle.js +0 -17
  394. package/esm/packages/icons/esm/Coin.js +0 -17
  395. package/esm/packages/icons/esm/Contact.js +0 -17
  396. package/esm/packages/icons/esm/Copy.js +0 -22
  397. package/esm/packages/icons/esm/Correct.js +0 -16
  398. package/esm/packages/icons/esm/Coupon.js +0 -17
  399. package/esm/packages/icons/esm/Crop.js +0 -24
  400. package/esm/packages/icons/esm/Crown.js +0 -17
  401. package/esm/packages/icons/esm/Curriculum.js +0 -31
  402. package/esm/packages/icons/esm/CurriculumColor.js +0 -38
  403. package/esm/packages/icons/esm/Cursor.js +0 -22
  404. package/esm/packages/icons/esm/Delete.js +0 -17
  405. package/esm/packages/icons/esm/Document.js +0 -22
  406. package/esm/packages/icons/esm/Dots.js +0 -17
  407. package/esm/packages/icons/esm/Download.js +0 -18
  408. package/esm/packages/icons/esm/Emoji.js +0 -17
  409. package/esm/packages/icons/esm/EmojiPlus.js +0 -22
  410. package/esm/packages/icons/esm/EmojiPlusDash.js +0 -17
  411. package/esm/packages/icons/esm/Eng.js +0 -20
  412. package/esm/packages/icons/esm/Enter.js +0 -17
  413. package/esm/packages/icons/esm/Equal.js +0 -17
  414. package/esm/packages/icons/esm/Eraser.js +0 -17
  415. package/esm/packages/icons/esm/ExclamationPointInCircle.js +0 -17
  416. package/esm/packages/icons/esm/ExternalLink.js +0 -27
  417. package/esm/packages/icons/esm/EyeOff.js +0 -15
  418. package/esm/packages/icons/esm/EyeOn.js +0 -22
  419. package/esm/packages/icons/esm/EyesTwo.js +0 -15
  420. package/esm/packages/icons/esm/FaceHappy.js +0 -17
  421. package/esm/packages/icons/esm/FaceSad.js +0 -17
  422. package/esm/packages/icons/esm/Facebook.js +0 -15
  423. package/esm/packages/icons/esm/FacebookColor.js +0 -20
  424. package/esm/packages/icons/esm/Filter.js +0 -17
  425. package/esm/packages/icons/esm/Find.js +0 -17
  426. package/esm/packages/icons/esm/Fire.js +0 -15
  427. package/esm/packages/icons/esm/FireColor.js +0 -27
  428. package/esm/packages/icons/esm/Flag.js +0 -15
  429. package/esm/packages/icons/esm/Folder.js +0 -17
  430. package/esm/packages/icons/esm/Frame.js +0 -17
  431. package/esm/packages/icons/esm/Glasses.js +0 -17
  432. package/esm/packages/icons/esm/Global.js +0 -17
  433. package/esm/packages/icons/esm/GoogleColor.js +0 -35
  434. package/esm/packages/icons/esm/Graph.js +0 -17
  435. package/esm/packages/icons/esm/Hair.js +0 -17
  436. package/esm/packages/icons/esm/Headphone.js +0 -17
  437. package/esm/packages/icons/esm/Heart.js +0 -17
  438. package/esm/packages/icons/esm/Home.js +0 -17
  439. package/esm/packages/icons/esm/Infinite.js +0 -15
  440. package/esm/packages/icons/esm/InfoInCircle.js +0 -17
  441. package/esm/packages/icons/esm/Instagram.js +0 -17
  442. package/esm/packages/icons/esm/KakaoColor.js +0 -20
  443. package/esm/packages/icons/esm/Kor.js +0 -20
  444. package/esm/packages/icons/esm/LandscapeArrow.js +0 -20
  445. package/esm/packages/icons/esm/League.js +0 -17
  446. package/esm/packages/icons/esm/Letter.js +0 -17
  447. package/esm/packages/icons/esm/LetterCrownColor.js +0 -26
  448. package/esm/packages/icons/esm/LetterCrownOpenColor.js +0 -35
  449. package/esm/packages/icons/esm/LetterHeartColor.js +0 -26
  450. package/esm/packages/icons/esm/LetterHeartOpenColor.js +0 -35
  451. package/esm/packages/icons/esm/LineThree.js +0 -17
  452. package/esm/packages/icons/esm/Link.js +0 -22
  453. package/esm/packages/icons/esm/Lock.js +0 -17
  454. package/esm/packages/icons/esm/LogoApple.js +0 -17
  455. package/esm/packages/icons/esm/LogoColor.js +0 -22
  456. package/esm/packages/icons/esm/LogoFacebook.js +0 -17
  457. package/esm/packages/icons/esm/LogoKakao.js +0 -17
  458. package/esm/packages/icons/esm/LogoNaver.js +0 -15
  459. package/esm/packages/icons/esm/MagicWand.js +0 -22
  460. package/esm/packages/icons/esm/Maxsize.js +0 -15
  461. package/esm/packages/icons/esm/Minsize.js +0 -17
  462. package/esm/packages/icons/esm/Minus.js +0 -17
  463. package/esm/packages/icons/esm/MinusInCircle.js +0 -17
  464. package/esm/packages/icons/esm/Moneybag.js +0 -17
  465. package/esm/packages/icons/esm/MoneybagColor.js +0 -20
  466. package/esm/packages/icons/esm/Moon.js +0 -15
  467. package/esm/packages/icons/esm/More.js +0 -17
  468. package/esm/packages/icons/esm/MyBubble.js +0 -17
  469. package/esm/packages/icons/esm/NaverColor.js +0 -18
  470. package/esm/packages/icons/esm/New.js +0 -22
  471. package/esm/packages/icons/esm/Note.js +0 -17
  472. package/esm/packages/icons/esm/NoteColor.js +0 -18
  473. package/esm/packages/icons/esm/NotePenColor.js +0 -46
  474. package/esm/packages/icons/esm/NumberFiveFilled.js +0 -17
  475. package/esm/packages/icons/esm/NumberFiveOutlined.js +0 -20
  476. package/esm/packages/icons/esm/NumberFourFilled.js +0 -17
  477. package/esm/packages/icons/esm/NumberFourOutlined.js +0 -20
  478. package/esm/packages/icons/esm/NumberOneFilled.js +0 -17
  479. package/esm/packages/icons/esm/NumberOneOutlined.js +0 -20
  480. package/esm/packages/icons/esm/NumberThreeFilled.js +0 -17
  481. package/esm/packages/icons/esm/NumberThreeOutlined.js +0 -20
  482. package/esm/packages/icons/esm/NumberTwoFilled.js +0 -17
  483. package/esm/packages/icons/esm/NumberTwoOutlined.js +0 -20
  484. package/esm/packages/icons/esm/Out.js +0 -17
  485. package/esm/packages/icons/esm/PalmTreeColor.js +0 -41
  486. package/esm/packages/icons/esm/PaperCheck.js +0 -36
  487. package/esm/packages/icons/esm/PaperPen.js +0 -31
  488. package/esm/packages/icons/esm/PaperPenColor.js +0 -20
  489. package/esm/packages/icons/esm/PaperTwo.js +0 -18
  490. package/esm/packages/icons/esm/Pause.js +0 -17
  491. package/esm/packages/icons/esm/Pen.js +0 -17
  492. package/esm/packages/icons/esm/PercentInCircle.js +0 -22
  493. package/esm/packages/icons/esm/Picture.js +0 -17
  494. package/esm/packages/icons/esm/Pill.js +0 -25
  495. package/esm/packages/icons/esm/PillColor.js +0 -18
  496. package/esm/packages/icons/esm/Pin.js +0 -17
  497. package/esm/packages/icons/esm/PinColorRed.js +0 -26
  498. package/esm/packages/icons/esm/Play.js +0 -15
  499. package/esm/packages/icons/esm/Plus.js +0 -17
  500. package/esm/packages/icons/esm/PlusInCircle.js +0 -17
  501. package/esm/packages/icons/esm/PointInCircle.js +0 -22
  502. package/esm/packages/icons/esm/PointInCircleColor.js +0 -27
  503. package/esm/packages/icons/esm/PortraitArrow.js +0 -20
  504. package/esm/packages/icons/esm/Present.js +0 -21
  505. package/esm/packages/icons/esm/PresentColor.js +0 -20
  506. package/esm/packages/icons/esm/Print.js +0 -20
  507. package/esm/packages/icons/esm/Problem.js +0 -15
  508. package/esm/packages/icons/esm/Profile.js +0 -17
  509. package/esm/packages/icons/esm/ProgressGradient.js +0 -41
  510. package/esm/packages/icons/esm/QuestionMarkInCircle.js +0 -17
  511. package/esm/packages/icons/esm/QuestionMarkInCircleOutlined.js +0 -20
  512. package/esm/packages/icons/esm/QuizColor.js +0 -28
  513. package/esm/packages/icons/esm/RaffleColor.js +0 -113
  514. package/esm/packages/icons/esm/Receipt.js +0 -17
  515. package/esm/packages/icons/esm/Refresh.js +0 -17
  516. package/esm/packages/icons/esm/Repeat.js +0 -15
  517. package/esm/packages/icons/esm/ReportColor.js +0 -30
  518. package/esm/packages/icons/esm/School.js +0 -20
  519. package/esm/packages/icons/esm/SchoolColor.js +0 -27
  520. package/esm/packages/icons/esm/Scroll.js +0 -22
  521. package/esm/packages/icons/esm/Search.js +0 -15
  522. package/esm/packages/icons/esm/Set.js +0 -20
  523. package/esm/packages/icons/esm/Setting.js +0 -17
  524. package/esm/packages/icons/esm/Share.js +0 -22
  525. package/esm/packages/icons/esm/ShieldCheck.js +0 -15
  526. package/esm/packages/icons/esm/Sidebar.js +0 -17
  527. package/esm/packages/icons/esm/Siren.js +0 -17
  528. package/esm/packages/icons/esm/Skipback.js +0 -17
  529. package/esm/packages/icons/esm/Skipforward.js +0 -17
  530. package/esm/packages/icons/esm/SoundOff.js +0 -15
  531. package/esm/packages/icons/esm/SoundOn.js +0 -25
  532. package/esm/packages/icons/esm/SoundPaper.js +0 -20
  533. package/esm/packages/icons/esm/Speaker.js +0 -17
  534. package/esm/packages/icons/esm/Stackup.js +0 -27
  535. package/esm/packages/icons/esm/Star.js +0 -17
  536. package/esm/packages/icons/esm/StarColor.js +0 -21
  537. package/esm/packages/icons/esm/Store.js +0 -15
  538. package/esm/packages/icons/esm/Sun.js +0 -15
  539. package/esm/packages/icons/esm/Sync.js +0 -17
  540. package/esm/packages/icons/esm/TestUploadColor.js +0 -26
  541. package/esm/packages/icons/esm/Thumbdown.js +0 -17
  542. package/esm/packages/icons/esm/Thumbup.js +0 -17
  543. package/esm/packages/icons/esm/Thunder.js +0 -17
  544. package/esm/packages/icons/esm/Ticket.js +0 -17
  545. package/esm/packages/icons/esm/TicketColor.js +0 -29
  546. package/esm/packages/icons/esm/Time.js +0 -17
  547. package/esm/packages/icons/esm/Timer.js +0 -17
  548. package/esm/packages/icons/esm/Top.js +0 -17
  549. package/esm/packages/icons/esm/Touch.js +0 -26
  550. package/esm/packages/icons/esm/Trash.js +0 -17
  551. package/esm/packages/icons/esm/Treasurebox.js +0 -22
  552. package/esm/packages/icons/esm/Trophy.js +0 -17
  553. package/esm/packages/icons/esm/Twinkle.js +0 -15
  554. package/esm/packages/icons/esm/TwinkleColor.js +0 -48
  555. package/esm/packages/icons/esm/Undo.js +0 -17
  556. package/esm/packages/icons/esm/University.js +0 -26
  557. package/esm/packages/icons/esm/UserBlocked.js +0 -17
  558. package/esm/packages/icons/esm/UserCheck.js +0 -17
  559. package/esm/packages/icons/esm/UserPlus.js +0 -17
  560. package/esm/packages/icons/esm/UserTwo.js +0 -23
  561. package/esm/packages/icons/esm/Video.js +0 -17
  562. package/esm/packages/icons/esm/VideoColor.js +0 -18
  563. package/esm/packages/icons/esm/VoteColor.js +0 -24
  564. package/esm/packages/icons/esm/Warning.js +0 -17
  565. package/esm/packages/icons/esm/Wifi.js +0 -27
  566. package/esm/packages/icons/esm/Workbook.js +0 -28
  567. package/esm/packages/icons/esm/WorkbookColor.js +0 -29
  568. package/esm/packages/icons/esm/Wrong.js +0 -20
  569. package/esm/packages/icons/esm/Youtube.js +0 -17
  570. package/esm/packages/icons/esm/_virtual/_rollupPluginBabelHelpers.js +0 -16
  571. package/esm/packages/icons/esm/index.js +0 -242
  572. package/esm/packages/token-studio/esm/foundation/breakpoint/device.js +0 -7
  573. package/esm/packages/token-studio/esm/foundation/gradient/colorStopList/index.js +0 -9
  574. package/esm/packages/token-studio/esm/foundation/gradient/direction/index.js +0 -9
  575. package/esm/packages/token-studio/esm/foundation/opacity/index.js +0 -5
  576. package/esm/packages/token-studio/esm/foundation/palette/index.js +0 -169
  577. package/esm/packages/token-studio/esm/foundation/rounding/index.js +0 -13
  578. package/esm/packages/token-studio/esm/foundation/shadow/index.js +0 -5
  579. package/esm/packages/token-studio/esm/foundation/spacing/index.js +0 -56
  580. package/esm/packages/token-studio/esm/foundation/typography/fontSize/index.js +0 -18
  581. package/esm/packages/token-studio/esm/foundation/typography/fontWeight/index.js +0 -13
  582. package/esm/packages/token-studio/esm/foundation/typography/lineHeight/index.js +0 -6
  583. package/esm/packages/token-studio/esm/token/breakpoints/index.js +0 -6
  584. package/esm/packages/token-studio/esm/token/color/gpai/dark.js +0 -223
  585. package/esm/packages/token-studio/esm/token/color/gpai/light.js +0 -223
  586. package/esm/packages/token-studio/esm/token/color/index.js +0 -223
  587. package/esm/packages/token-studio/esm/token/elevation/index.js +0 -7
  588. package/esm/packages/token-studio/esm/token/gradient/index.js +0 -41
  589. package/esm/packages/token-studio/esm/token/opacity/index.js +0 -7
  590. package/esm/packages/token-studio/esm/token/radii/index.js +0 -15
  591. package/esm/packages/token-studio/esm/token/space/index.js +0 -55
  592. package/esm/packages/token-studio/esm/token/typography/fontSizes.js +0 -17
  593. package/esm/packages/token-studio/esm/token/typography/fontWeights.js +0 -9
  594. package/esm/packages/token-studio/esm/token/typography/index.js +0 -133
  595. package/esm/packages/token-studio/esm/token/typography/lineHeights.js +0 -8
  596. package/esm/packages/utils/esm/commaizeNumber.js +0 -10
  597. package/esm/packages/utils/esm/forcePixelValue.js +0 -8
  598. package/esm/packages/utils/esm/isArray.js +0 -3
  599. package/esm/packages/utils/esm/isFunction.js +0 -3
  600. package/esm/packages/utils/esm/isNullable.js +0 -3
  601. package/esm/packages/utils/esm/noop.js +0 -6
  602. package/esm/packages/utils/esm/scrollIntoView.js +0 -46
@@ -1,81 +0,0 @@
1
- import { useContext } from 'react';
2
- import { isAnimationControls } from '../../animation/utils/is-animation-controls.js';
3
- import { PresenceContext } from '../../context/PresenceContext.js';
4
- import { resolveVariantFromProps } from '../../render/utils/resolve-variants.js';
5
- import { useConstant } from '../../utils/use-constant.js';
6
- import { resolveMotionValue } from '../../value/utils/resolve-motion-value.js';
7
- import { MotionContext } from '../../context/MotionContext/index.js';
8
- import { isControllingVariants, isVariantNode } from '../../render/utils/is-controlling-variants.js';
9
-
10
- function makeState({ scrapeMotionValuesFromProps, createRenderState, onMount, }, props, context, presenceContext) {
11
- const state = {
12
- latestValues: makeLatestValues(props, context, presenceContext, scrapeMotionValuesFromProps),
13
- renderState: createRenderState(),
14
- };
15
- if (onMount) {
16
- state.mount = (instance) => onMount(props, instance, state);
17
- }
18
- return state;
19
- }
20
- const makeUseVisualState = (config) => (props, isStatic) => {
21
- const context = useContext(MotionContext);
22
- const presenceContext = useContext(PresenceContext);
23
- const make = () => makeState(config, props, context, presenceContext);
24
- return isStatic ? make() : useConstant(make);
25
- };
26
- function makeLatestValues(props, context, presenceContext, scrapeMotionValues) {
27
- const values = {};
28
- const motionValues = scrapeMotionValues(props, {});
29
- for (const key in motionValues) {
30
- values[key] = resolveMotionValue(motionValues[key]);
31
- }
32
- let { initial, animate } = props;
33
- const isControllingVariants$1 = isControllingVariants(props);
34
- const isVariantNode$1 = isVariantNode(props);
35
- if (context &&
36
- isVariantNode$1 &&
37
- !isControllingVariants$1 &&
38
- props.inherit !== false) {
39
- if (initial === undefined)
40
- initial = context.initial;
41
- if (animate === undefined)
42
- animate = context.animate;
43
- }
44
- let isInitialAnimationBlocked = presenceContext
45
- ? presenceContext.initial === false
46
- : false;
47
- isInitialAnimationBlocked = isInitialAnimationBlocked || initial === false;
48
- const variantToSet = isInitialAnimationBlocked ? animate : initial;
49
- if (variantToSet &&
50
- typeof variantToSet !== "boolean" &&
51
- !isAnimationControls(variantToSet)) {
52
- const list = Array.isArray(variantToSet) ? variantToSet : [variantToSet];
53
- list.forEach((definition) => {
54
- const resolved = resolveVariantFromProps(props, definition);
55
- if (!resolved)
56
- return;
57
- const { transitionEnd, transition, ...target } = resolved;
58
- for (const key in target) {
59
- let valueTarget = target[key];
60
- if (Array.isArray(valueTarget)) {
61
- /**
62
- * Take final keyframe if the initial animation is blocked because
63
- * we want to initialise at the end of that blocked animation.
64
- */
65
- const index = isInitialAnimationBlocked
66
- ? valueTarget.length - 1
67
- : 0;
68
- valueTarget = valueTarget[index];
69
- }
70
- if (valueTarget !== null) {
71
- values[key] = valueTarget;
72
- }
73
- }
74
- for (const key in transitionEnd)
75
- values[key] = transitionEnd[key];
76
- });
77
- }
78
- return values;
79
- }
80
-
81
- export { makeUseVisualState };
@@ -1,59 +0,0 @@
1
- /**
2
- * A list of all valid MotionProps.
3
- *
4
- * @privateRemarks
5
- * This doesn't throw if a `MotionProp` name is missing - it should.
6
- */
7
- const validMotionProps = new Set([
8
- "animate",
9
- "exit",
10
- "variants",
11
- "initial",
12
- "style",
13
- "values",
14
- "variants",
15
- "transition",
16
- "transformTemplate",
17
- "transformValues",
18
- "custom",
19
- "inherit",
20
- "onLayoutAnimationStart",
21
- "onLayoutAnimationComplete",
22
- "onLayoutMeasure",
23
- "onBeforeLayoutMeasure",
24
- "onAnimationStart",
25
- "onAnimationComplete",
26
- "onUpdate",
27
- "onDragStart",
28
- "onDrag",
29
- "onDragEnd",
30
- "onMeasureDragConstraints",
31
- "onDirectionLock",
32
- "onDragTransitionEnd",
33
- "_dragX",
34
- "_dragY",
35
- "onHoverStart",
36
- "onHoverEnd",
37
- "onViewportEnter",
38
- "onViewportLeave",
39
- "ignoreStrict",
40
- "viewport",
41
- ]);
42
- /**
43
- * Check whether a prop name is a valid `MotionProp` key.
44
- *
45
- * @param key - Name of the property to check
46
- * @returns `true` is key is a valid `MotionProp`.
47
- *
48
- * @public
49
- */
50
- function isValidMotionProp(key) {
51
- return (key.startsWith("while") ||
52
- (key.startsWith("drag") && key !== "draggable") ||
53
- key.startsWith("layout") ||
54
- key.startsWith("onTap") ||
55
- key.startsWith("onPan") ||
56
- validMotionProps.has(key));
57
- }
58
-
59
- export { isValidMotionProp };
@@ -1,93 +0,0 @@
1
- import { circOut } from '../../easing/circ.js';
2
- import { progress } from '../../utils/progress.js';
3
- import { mix } from '../../utils/mix.js';
4
- import { noop } from '../../utils/noop.js';
5
- import { percent, px } from '../../value/types/numbers/units.js';
6
-
7
- const borders = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"];
8
- const numBorders = borders.length;
9
- const asNumber = (value) => typeof value === "string" ? parseFloat(value) : value;
10
- const isPx = (value) => typeof value === "number" || px.test(value);
11
- function mixValues(target, follow, lead, progress, shouldCrossfadeOpacity, isOnlyMember) {
12
- if (shouldCrossfadeOpacity) {
13
- target.opacity = mix(0,
14
- // TODO Reinstate this if only child
15
- lead.opacity !== undefined ? lead.opacity : 1, easeCrossfadeIn(progress));
16
- target.opacityExit = mix(follow.opacity !== undefined ? follow.opacity : 1, 0, easeCrossfadeOut(progress));
17
- }
18
- else if (isOnlyMember) {
19
- target.opacity = mix(follow.opacity !== undefined ? follow.opacity : 1, lead.opacity !== undefined ? lead.opacity : 1, progress);
20
- }
21
- /**
22
- * Mix border radius
23
- */
24
- for (let i = 0; i < numBorders; i++) {
25
- const borderLabel = `border${borders[i]}Radius`;
26
- let followRadius = getRadius(follow, borderLabel);
27
- let leadRadius = getRadius(lead, borderLabel);
28
- if (followRadius === undefined && leadRadius === undefined)
29
- continue;
30
- followRadius || (followRadius = 0);
31
- leadRadius || (leadRadius = 0);
32
- const canMix = followRadius === 0 ||
33
- leadRadius === 0 ||
34
- isPx(followRadius) === isPx(leadRadius);
35
- if (canMix) {
36
- target[borderLabel] = Math.max(mix(asNumber(followRadius), asNumber(leadRadius), progress), 0);
37
- if (percent.test(leadRadius) || percent.test(followRadius)) {
38
- target[borderLabel] += "%";
39
- }
40
- }
41
- else {
42
- target[borderLabel] = leadRadius;
43
- }
44
- }
45
- /**
46
- * Mix rotation
47
- */
48
- if (follow.rotate || lead.rotate) {
49
- target.rotate = mix(follow.rotate || 0, lead.rotate || 0, progress);
50
- }
51
- }
52
- function getRadius(values, radiusName) {
53
- return values[radiusName] !== undefined
54
- ? values[radiusName]
55
- : values.borderRadius;
56
- }
57
- // /**
58
- // * We only want to mix the background color if there's a follow element
59
- // * that we're not crossfading opacity between. For instance with switch
60
- // * AnimateSharedLayout animations, this helps the illusion of a continuous
61
- // * element being animated but also cuts down on the number of paints triggered
62
- // * for elements where opacity is doing that work for us.
63
- // */
64
- // if (
65
- // !hasFollowElement &&
66
- // latestLeadValues.backgroundColor &&
67
- // latestFollowValues.backgroundColor
68
- // ) {
69
- // /**
70
- // * This isn't ideal performance-wise as mixColor is creating a new function every frame.
71
- // * We could probably create a mixer that runs at the start of the animation but
72
- // * the idea behind the crossfader is that it runs dynamically between two potentially
73
- // * changing targets (ie opacity or borderRadius may be animating independently via variants)
74
- // */
75
- // leadState.backgroundColor = followState.backgroundColor = mixColor(
76
- // latestFollowValues.backgroundColor as string,
77
- // latestLeadValues.backgroundColor as string
78
- // )(p)
79
- // }
80
- const easeCrossfadeIn = compress(0, 0.5, circOut);
81
- const easeCrossfadeOut = compress(0.5, 0.95, noop);
82
- function compress(min, max, easing) {
83
- return (p) => {
84
- // Could replace ifs with clamp
85
- if (p < min)
86
- return 0;
87
- if (p > max)
88
- return 1;
89
- return easing(progress(min, max, p));
90
- };
91
- }
92
-
93
- export { mixValues };
@@ -1,33 +0,0 @@
1
- /**
2
- * Bounding boxes tend to be defined as top, left, right, bottom. For various operations
3
- * it's easier to consider each axis individually. This function returns a bounding box
4
- * as a map of single-axis min/max values.
5
- */
6
- function convertBoundingBoxToBox({ top, left, right, bottom, }) {
7
- return {
8
- x: { min: left, max: right },
9
- y: { min: top, max: bottom },
10
- };
11
- }
12
- function convertBoxToBoundingBox({ x, y }) {
13
- return { top: y.min, right: x.max, bottom: y.max, left: x.min };
14
- }
15
- /**
16
- * Applies a TransformPoint function to a bounding box. TransformPoint is usually a function
17
- * provided by Framer to allow measured points to be corrected for device scaling. This is used
18
- * when measuring DOM elements and DOM event points.
19
- */
20
- function transformBoxPoints(point, transformPoint) {
21
- if (!transformPoint)
22
- return point;
23
- const topLeft = transformPoint({ x: point.left, y: point.top });
24
- const bottomRight = transformPoint({ x: point.right, y: point.bottom });
25
- return {
26
- top: topLeft.y,
27
- left: topLeft.x,
28
- bottom: bottomRight.y,
29
- right: bottomRight.x,
30
- };
31
- }
32
-
33
- export { convertBoundingBoxToBox, convertBoxToBoundingBox, transformBoxPoints };
@@ -1,20 +0,0 @@
1
- /**
2
- * Reset an axis to the provided origin box.
3
- *
4
- * This is a mutative operation.
5
- */
6
- function copyAxisInto(axis, originAxis) {
7
- axis.min = originAxis.min;
8
- axis.max = originAxis.max;
9
- }
10
- /**
11
- * Reset a box to the provided origin box.
12
- *
13
- * This is a mutative operation.
14
- */
15
- function copyBoxInto(box, originBox) {
16
- copyAxisInto(box.x, originBox.x);
17
- copyAxisInto(box.y, originBox.y);
18
- }
19
-
20
- export { copyAxisInto, copyBoxInto };
@@ -1,122 +0,0 @@
1
- import { mix } from '../../utils/mix.js';
2
- import { hasTransform } from '../utils/has-transform.js';
3
-
4
- /**
5
- * Scales a point based on a factor and an originPoint
6
- */
7
- function scalePoint(point, scale, originPoint) {
8
- const distanceFromOrigin = point - originPoint;
9
- const scaled = scale * distanceFromOrigin;
10
- return originPoint + scaled;
11
- }
12
- /**
13
- * Applies a translate/scale delta to a point
14
- */
15
- function applyPointDelta(point, translate, scale, originPoint, boxScale) {
16
- if (boxScale !== undefined) {
17
- point = scalePoint(point, boxScale, originPoint);
18
- }
19
- return scalePoint(point, scale, originPoint) + translate;
20
- }
21
- /**
22
- * Applies a translate/scale delta to an axis
23
- */
24
- function applyAxisDelta(axis, translate = 0, scale = 1, originPoint, boxScale) {
25
- axis.min = applyPointDelta(axis.min, translate, scale, originPoint, boxScale);
26
- axis.max = applyPointDelta(axis.max, translate, scale, originPoint, boxScale);
27
- }
28
- /**
29
- * Applies a translate/scale delta to a box
30
- */
31
- function applyBoxDelta(box, { x, y }) {
32
- applyAxisDelta(box.x, x.translate, x.scale, x.originPoint);
33
- applyAxisDelta(box.y, y.translate, y.scale, y.originPoint);
34
- }
35
- /**
36
- * Apply a tree of deltas to a box. We do this to calculate the effect of all the transforms
37
- * in a tree upon our box before then calculating how to project it into our desired viewport-relative box
38
- *
39
- * This is the final nested loop within updateLayoutDelta for future refactoring
40
- */
41
- function applyTreeDeltas(box, treeScale, treePath, isSharedTransition = false) {
42
- const treeLength = treePath.length;
43
- if (!treeLength)
44
- return;
45
- // Reset the treeScale
46
- treeScale.x = treeScale.y = 1;
47
- let node;
48
- let delta;
49
- for (let i = 0; i < treeLength; i++) {
50
- node = treePath[i];
51
- delta = node.projectionDelta;
52
- /**
53
- * TODO: Prefer to remove this, but currently we have motion components with
54
- * display: contents in Framer.
55
- */
56
- const instance = node.instance;
57
- if (instance &&
58
- instance.style &&
59
- instance.style.display === "contents") {
60
- continue;
61
- }
62
- if (isSharedTransition &&
63
- node.options.layoutScroll &&
64
- node.scroll &&
65
- node !== node.root) {
66
- transformBox(box, {
67
- x: -node.scroll.offset.x,
68
- y: -node.scroll.offset.y,
69
- });
70
- }
71
- if (delta) {
72
- // Incoporate each ancestor's scale into a culmulative treeScale for this component
73
- treeScale.x *= delta.x.scale;
74
- treeScale.y *= delta.y.scale;
75
- // Apply each ancestor's calculated delta into this component's recorded layout box
76
- applyBoxDelta(box, delta);
77
- }
78
- if (isSharedTransition && hasTransform(node.latestValues)) {
79
- transformBox(box, node.latestValues);
80
- }
81
- }
82
- /**
83
- * Snap tree scale back to 1 if it's within a non-perceivable threshold.
84
- * This will help reduce useless scales getting rendered.
85
- */
86
- treeScale.x = snapToDefault(treeScale.x);
87
- treeScale.y = snapToDefault(treeScale.y);
88
- }
89
- function snapToDefault(scale) {
90
- if (Number.isInteger(scale))
91
- return scale;
92
- return scale > 1.0000000000001 || scale < 0.999999999999 ? scale : 1;
93
- }
94
- function translateAxis(axis, distance) {
95
- axis.min = axis.min + distance;
96
- axis.max = axis.max + distance;
97
- }
98
- /**
99
- * Apply a transform to an axis from the latest resolved motion values.
100
- * This function basically acts as a bridge between a flat motion value map
101
- * and applyAxisDelta
102
- */
103
- function transformAxis(axis, transforms, [key, scaleKey, originKey]) {
104
- const axisOrigin = transforms[originKey] !== undefined ? transforms[originKey] : 0.5;
105
- const originPoint = mix(axis.min, axis.max, axisOrigin);
106
- // Apply the axis delta to the final axis
107
- applyAxisDelta(axis, transforms[key], transforms[scaleKey], originPoint, transforms.scale);
108
- }
109
- /**
110
- * The names of the motion values we want to apply as translation, scale and origin.
111
- */
112
- const xKeys = ["x", "scaleX", "originX"];
113
- const yKeys = ["y", "scaleY", "originY"];
114
- /**
115
- * Apply a transform to a box from the latest resolved motion values.
116
- */
117
- function transformBox(box, transform) {
118
- transformAxis(box.x, transform, xKeys);
119
- transformAxis(box.y, transform, yKeys);
120
- }
121
-
122
- export { applyAxisDelta, applyBoxDelta, applyPointDelta, applyTreeDeltas, scalePoint, transformAxis, transformBox, translateAxis };
@@ -1,41 +0,0 @@
1
- import { mix } from '../../utils/mix.js';
2
-
3
- function calcLength(axis) {
4
- return axis.max - axis.min;
5
- }
6
- function isNear(value, target = 0, maxDistance = 0.01) {
7
- return Math.abs(value - target) <= maxDistance;
8
- }
9
- function calcAxisDelta(delta, source, target, origin = 0.5) {
10
- delta.origin = origin;
11
- delta.originPoint = mix(source.min, source.max, delta.origin);
12
- delta.scale = calcLength(target) / calcLength(source);
13
- if (isNear(delta.scale, 1, 0.0001) || isNaN(delta.scale))
14
- delta.scale = 1;
15
- delta.translate =
16
- mix(target.min, target.max, delta.origin) - delta.originPoint;
17
- if (isNear(delta.translate) || isNaN(delta.translate))
18
- delta.translate = 0;
19
- }
20
- function calcBoxDelta(delta, source, target, origin) {
21
- calcAxisDelta(delta.x, source.x, target.x, origin ? origin.originX : undefined);
22
- calcAxisDelta(delta.y, source.y, target.y, origin ? origin.originY : undefined);
23
- }
24
- function calcRelativeAxis(target, relative, parent) {
25
- target.min = parent.min + relative.min;
26
- target.max = target.min + calcLength(relative);
27
- }
28
- function calcRelativeBox(target, relative, parent) {
29
- calcRelativeAxis(target.x, relative.x, parent.x);
30
- calcRelativeAxis(target.y, relative.y, parent.y);
31
- }
32
- function calcRelativeAxisPosition(target, layout, parent) {
33
- target.min = layout.min - parent.min;
34
- target.max = target.min + calcLength(layout);
35
- }
36
- function calcRelativePosition(target, layout, parent) {
37
- calcRelativeAxisPosition(target.x, layout.x, parent.x);
38
- calcRelativeAxisPosition(target.y, layout.y, parent.y);
39
- }
40
-
41
- export { calcAxisDelta, calcBoxDelta, calcLength, calcRelativeAxis, calcRelativeAxisPosition, calcRelativeBox, calcRelativePosition, isNear };
@@ -1,54 +0,0 @@
1
- import { mix } from '../../utils/mix.js';
2
- import { percent } from '../../value/types/numbers/units.js';
3
- import { scalePoint } from './delta-apply.js';
4
-
5
- /**
6
- * Remove a delta from a point. This is essentially the steps of applyPointDelta in reverse
7
- */
8
- function removePointDelta(point, translate, scale, originPoint, boxScale) {
9
- point -= translate;
10
- point = scalePoint(point, 1 / scale, originPoint);
11
- if (boxScale !== undefined) {
12
- point = scalePoint(point, 1 / boxScale, originPoint);
13
- }
14
- return point;
15
- }
16
- /**
17
- * Remove a delta from an axis. This is essentially the steps of applyAxisDelta in reverse
18
- */
19
- function removeAxisDelta(axis, translate = 0, scale = 1, origin = 0.5, boxScale, originAxis = axis, sourceAxis = axis) {
20
- if (percent.test(translate)) {
21
- translate = parseFloat(translate);
22
- const relativeProgress = mix(sourceAxis.min, sourceAxis.max, translate / 100);
23
- translate = relativeProgress - sourceAxis.min;
24
- }
25
- if (typeof translate !== "number")
26
- return;
27
- let originPoint = mix(originAxis.min, originAxis.max, origin);
28
- if (axis === originAxis)
29
- originPoint -= translate;
30
- axis.min = removePointDelta(axis.min, translate, scale, originPoint, boxScale);
31
- axis.max = removePointDelta(axis.max, translate, scale, originPoint, boxScale);
32
- }
33
- /**
34
- * Remove a transforms from an axis. This is essentially the steps of applyAxisTransforms in reverse
35
- * and acts as a bridge between motion values and removeAxisDelta
36
- */
37
- function removeAxisTransforms(axis, transforms, [key, scaleKey, originKey], origin, sourceAxis) {
38
- removeAxisDelta(axis, transforms[key], transforms[scaleKey], transforms[originKey], transforms.scale, origin, sourceAxis);
39
- }
40
- /**
41
- * The names of the motion values we want to apply as translation, scale and origin.
42
- */
43
- const xKeys = ["x", "scaleX", "originX"];
44
- const yKeys = ["y", "scaleY", "originY"];
45
- /**
46
- * Remove a transforms from an box. This is essentially the steps of applyAxisBox in reverse
47
- * and acts as a bridge between motion values and removeAxisDelta
48
- */
49
- function removeBoxTransforms(box, transforms, originBox, sourceBox) {
50
- removeAxisTransforms(box.x, transforms, xKeys, originBox ? originBox.x : undefined, sourceBox ? sourceBox.x : undefined);
51
- removeAxisTransforms(box.y, transforms, yKeys, originBox ? originBox.y : undefined, sourceBox ? sourceBox.y : undefined);
52
- }
53
-
54
- export { removeAxisDelta, removeAxisTransforms, removeBoxTransforms, removePointDelta };
@@ -1,17 +0,0 @@
1
- const createAxisDelta = () => ({
2
- translate: 0,
3
- scale: 1,
4
- origin: 0,
5
- originPoint: 0,
6
- });
7
- const createDelta = () => ({
8
- x: createAxisDelta(),
9
- y: createAxisDelta(),
10
- });
11
- const createAxis = () => ({ min: 0, max: 0 });
12
- const createBox = () => ({
13
- x: createAxis(),
14
- y: createAxis(),
15
- });
16
-
17
- export { createAxis, createAxisDelta, createBox, createDelta };
@@ -1,25 +0,0 @@
1
- import { calcLength } from './delta-calc.js';
2
-
3
- function isAxisDeltaZero(delta) {
4
- return delta.translate === 0 && delta.scale === 1;
5
- }
6
- function isDeltaZero(delta) {
7
- return isAxisDeltaZero(delta.x) && isAxisDeltaZero(delta.y);
8
- }
9
- function boxEquals(a, b) {
10
- return (a.x.min === b.x.min &&
11
- a.x.max === b.x.max &&
12
- a.y.min === b.y.min &&
13
- a.y.max === b.y.max);
14
- }
15
- function boxEqualsRounded(a, b) {
16
- return (Math.round(a.x.min) === Math.round(b.x.min) &&
17
- Math.round(a.x.max) === Math.round(b.x.max) &&
18
- Math.round(a.y.min) === Math.round(b.y.min) &&
19
- Math.round(a.y.max) === Math.round(b.y.max));
20
- }
21
- function aspectRatio(box) {
22
- return calcLength(box.x) / calcLength(box.y);
23
- }
24
-
25
- export { aspectRatio, boxEquals, boxEqualsRounded, isDeltaZero };
@@ -1,13 +0,0 @@
1
- import { createProjectionNode } from './create-projection-node.js';
2
- import { addDomEvent } from '../../events/add-dom-event.js';
3
-
4
- const DocumentProjectionNode = createProjectionNode({
5
- attachResizeListener: (ref, notify) => addDomEvent(ref, "resize", notify),
6
- measureScroll: () => ({
7
- x: document.documentElement.scrollLeft || document.body.scrollLeft,
8
- y: document.documentElement.scrollTop || document.body.scrollTop,
9
- }),
10
- checkIsScrollRoot: () => true,
11
- });
12
-
13
- export { DocumentProjectionNode };
@@ -1,27 +0,0 @@
1
- import { createProjectionNode } from './create-projection-node.js';
2
- import { DocumentProjectionNode } from './DocumentProjectionNode.js';
3
-
4
- const rootProjectionNode = {
5
- current: undefined,
6
- };
7
- const HTMLProjectionNode = createProjectionNode({
8
- measureScroll: (instance) => ({
9
- x: instance.scrollLeft,
10
- y: instance.scrollTop,
11
- }),
12
- defaultParent: () => {
13
- if (!rootProjectionNode.current) {
14
- const documentNode = new DocumentProjectionNode({});
15
- documentNode.mount(window);
16
- documentNode.setOptions({ layoutScroll: true });
17
- rootProjectionNode.current = documentNode;
18
- }
19
- return rootProjectionNode.current;
20
- },
21
- resetTransform: (instance, value) => {
22
- instance.style.transform = value !== undefined ? value : "none";
23
- },
24
- checkIsScrollRoot: (instance) => Boolean(window.getComputedStyle(instance).position === "fixed"),
25
- });
26
-
27
- export { HTMLProjectionNode, rootProjectionNode };