victory-core 37.0.1 → 37.0.3-next.0

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 (175) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/victory-core.js +492 -455
  3. package/dist/victory-core.min.js +1 -1
  4. package/es/index.d.ts +18 -17
  5. package/es/index.js +2 -1
  6. package/es/types/callbacks.d.ts +36 -36
  7. package/es/types/prop-types.d.ts +130 -129
  8. package/es/victory-accessible-group/victory-accessible-group.d.ts +10 -10
  9. package/es/victory-animation/util.d.ts +66 -66
  10. package/es/victory-animation/victory-animation.d.ts +34 -34
  11. package/es/victory-clip-container/victory-clip-container.d.ts +46 -46
  12. package/es/victory-container/victory-container.d.ts +62 -68
  13. package/es/victory-container/victory-container.js +134 -162
  14. package/es/victory-label/victory-label.d.ts +58 -58
  15. package/es/victory-label/victory-label.js +1 -4
  16. package/es/victory-portal/portal-context.d.ts +12 -11
  17. package/es/victory-portal/portal-context.js +37 -6
  18. package/es/victory-portal/portal-outlet.d.ts +12 -0
  19. package/es/victory-portal/portal-outlet.js +16 -0
  20. package/es/victory-portal/portal.d.ts +9 -20
  21. package/es/victory-portal/portal.js +6 -32
  22. package/es/victory-portal/victory-portal.d.ts +9 -26
  23. package/es/victory-portal/victory-portal.js +27 -44
  24. package/es/victory-primitives/arc.d.ts +14 -14
  25. package/es/victory-primitives/arc.js +2 -4
  26. package/es/victory-primitives/background.d.ts +13 -13
  27. package/es/victory-primitives/background.js +2 -4
  28. package/es/victory-primitives/border.d.ts +10 -10
  29. package/es/victory-primitives/border.js +2 -4
  30. package/es/victory-primitives/circle.d.ts +3 -3
  31. package/es/victory-primitives/clip-path.d.ts +7 -7
  32. package/es/victory-primitives/index.d.ts +14 -14
  33. package/es/victory-primitives/line-segment.d.ts +11 -11
  34. package/es/victory-primitives/line-segment.js +2 -4
  35. package/es/victory-primitives/line.d.ts +3 -3
  36. package/es/victory-primitives/path.d.ts +3 -3
  37. package/es/victory-primitives/point.d.ts +13 -13
  38. package/es/victory-primitives/point.js +2 -4
  39. package/es/victory-primitives/rect.d.ts +3 -3
  40. package/es/victory-primitives/text.d.ts +8 -8
  41. package/es/victory-primitives/tspan.d.ts +3 -3
  42. package/es/victory-primitives/types.d.ts +7 -7
  43. package/es/victory-primitives/whisker.d.ts +15 -15
  44. package/es/victory-primitives/whisker.js +2 -4
  45. package/es/victory-theme/grayscale.d.ts +2 -2
  46. package/es/victory-theme/material.d.ts +2 -2
  47. package/es/victory-theme/types.d.ts +238 -238
  48. package/es/victory-theme/victory-theme.d.ts +5 -5
  49. package/es/victory-transition/victory-transition.d.ts +53 -53
  50. package/es/victory-util/add-events.d.ts +126 -126
  51. package/es/victory-util/axis.d.ts +50 -50
  52. package/es/victory-util/collection.d.ts +15 -15
  53. package/es/victory-util/common-props.d.ts +79 -79
  54. package/es/victory-util/data.d.ts +74 -74
  55. package/es/victory-util/default-transitions.d.ts +4 -4
  56. package/es/victory-util/domain.d.ts +90 -90
  57. package/es/victory-util/events.d.ts +64 -64
  58. package/es/victory-util/helpers.d.ts +96 -96
  59. package/es/victory-util/hooks/index.d.ts +2 -2
  60. package/es/victory-util/hooks/use-animation-state.d.ts +21 -21
  61. package/es/victory-util/hooks/use-previous-props.d.ts +1 -1
  62. package/es/victory-util/immutable.d.ts +11 -11
  63. package/es/victory-util/index.d.ts +27 -26
  64. package/es/victory-util/index.js +1 -0
  65. package/es/victory-util/label-helpers.d.ts +26 -26
  66. package/es/victory-util/line-helpers.d.ts +4 -4
  67. package/es/victory-util/log.d.ts +1 -1
  68. package/es/victory-util/merge-refs.d.ts +13 -0
  69. package/es/victory-util/merge-refs.js +23 -0
  70. package/es/victory-util/point-path-helpers.d.ts +9 -9
  71. package/es/victory-util/scale.d.ts +9 -9
  72. package/es/victory-util/selection.d.ts +28 -28
  73. package/es/victory-util/style.d.ts +18 -18
  74. package/es/victory-util/textsize.d.ts +35 -35
  75. package/es/victory-util/timer-context.d.ts +11 -11
  76. package/es/victory-util/timer.d.ts +16 -16
  77. package/es/victory-util/transitions.d.ts +48 -48
  78. package/es/victory-util/type-helpers.d.ts +9 -9
  79. package/es/victory-util/user-props.d.ts +26 -26
  80. package/es/victory-util/wrapper.d.ts +33 -33
  81. package/lib/index.d.ts +18 -17
  82. package/lib/index.js +16 -4
  83. package/lib/types/callbacks.d.ts +36 -36
  84. package/lib/types/prop-types.d.ts +130 -129
  85. package/lib/victory-accessible-group/victory-accessible-group.d.ts +10 -10
  86. package/lib/victory-animation/util.d.ts +66 -66
  87. package/lib/victory-animation/victory-animation.d.ts +34 -34
  88. package/lib/victory-clip-container/victory-clip-container.d.ts +46 -46
  89. package/lib/victory-container/victory-container.d.ts +62 -68
  90. package/lib/victory-container/victory-container.js +136 -163
  91. package/lib/victory-label/victory-label.d.ts +58 -58
  92. package/lib/victory-label/victory-label.js +1 -4
  93. package/lib/victory-portal/portal-context.d.ts +12 -11
  94. package/lib/victory-portal/portal-context.js +40 -7
  95. package/lib/victory-portal/portal-outlet.d.ts +12 -0
  96. package/lib/victory-portal/portal-outlet.js +24 -0
  97. package/lib/victory-portal/portal.d.ts +9 -20
  98. package/lib/victory-portal/portal.js +6 -33
  99. package/lib/victory-portal/victory-portal.d.ts +9 -26
  100. package/lib/victory-portal/victory-portal.js +27 -44
  101. package/lib/victory-primitives/arc.d.ts +14 -14
  102. package/lib/victory-primitives/arc.js +2 -4
  103. package/lib/victory-primitives/background.d.ts +13 -13
  104. package/lib/victory-primitives/background.js +2 -4
  105. package/lib/victory-primitives/border.d.ts +10 -10
  106. package/lib/victory-primitives/border.js +2 -4
  107. package/lib/victory-primitives/circle.d.ts +3 -3
  108. package/lib/victory-primitives/clip-path.d.ts +7 -7
  109. package/lib/victory-primitives/index.d.ts +14 -14
  110. package/lib/victory-primitives/line-segment.d.ts +11 -11
  111. package/lib/victory-primitives/line-segment.js +2 -4
  112. package/lib/victory-primitives/line.d.ts +3 -3
  113. package/lib/victory-primitives/path.d.ts +3 -3
  114. package/lib/victory-primitives/point.d.ts +13 -13
  115. package/lib/victory-primitives/point.js +2 -4
  116. package/lib/victory-primitives/rect.d.ts +3 -3
  117. package/lib/victory-primitives/text.d.ts +8 -8
  118. package/lib/victory-primitives/tspan.d.ts +3 -3
  119. package/lib/victory-primitives/types.d.ts +7 -7
  120. package/lib/victory-primitives/whisker.d.ts +15 -15
  121. package/lib/victory-primitives/whisker.js +2 -4
  122. package/lib/victory-theme/grayscale.d.ts +2 -2
  123. package/lib/victory-theme/material.d.ts +2 -2
  124. package/lib/victory-theme/types.d.ts +238 -238
  125. package/lib/victory-theme/victory-theme.d.ts +5 -5
  126. package/lib/victory-transition/victory-transition.d.ts +53 -53
  127. package/lib/victory-util/add-events.d.ts +126 -126
  128. package/lib/victory-util/axis.d.ts +50 -50
  129. package/lib/victory-util/collection.d.ts +15 -15
  130. package/lib/victory-util/common-props.d.ts +79 -79
  131. package/lib/victory-util/data.d.ts +74 -74
  132. package/lib/victory-util/default-transitions.d.ts +4 -4
  133. package/lib/victory-util/domain.d.ts +90 -90
  134. package/lib/victory-util/events.d.ts +64 -64
  135. package/lib/victory-util/helpers.d.ts +96 -96
  136. package/lib/victory-util/hooks/index.d.ts +2 -2
  137. package/lib/victory-util/hooks/use-animation-state.d.ts +21 -21
  138. package/lib/victory-util/hooks/use-previous-props.d.ts +1 -1
  139. package/lib/victory-util/immutable.d.ts +11 -11
  140. package/lib/victory-util/index.d.ts +27 -26
  141. package/lib/victory-util/index.js +12 -0
  142. package/lib/victory-util/label-helpers.d.ts +26 -26
  143. package/lib/victory-util/line-helpers.d.ts +4 -4
  144. package/lib/victory-util/log.d.ts +1 -1
  145. package/lib/victory-util/merge-refs.d.ts +13 -0
  146. package/lib/victory-util/merge-refs.js +31 -0
  147. package/lib/victory-util/point-path-helpers.d.ts +9 -9
  148. package/lib/victory-util/scale.d.ts +9 -9
  149. package/lib/victory-util/selection.d.ts +28 -28
  150. package/lib/victory-util/style.d.ts +18 -18
  151. package/lib/victory-util/textsize.d.ts +35 -35
  152. package/lib/victory-util/timer-context.d.ts +11 -11
  153. package/lib/victory-util/timer.d.ts +16 -16
  154. package/lib/victory-util/transitions.d.ts +48 -48
  155. package/lib/victory-util/type-helpers.d.ts +9 -9
  156. package/lib/victory-util/user-props.d.ts +26 -26
  157. package/lib/victory-util/wrapper.d.ts +33 -33
  158. package/package.json +2 -5
  159. package/src/index.ts +2 -1
  160. package/src/types/prop-types.ts +7 -0
  161. package/src/victory-container/victory-container.tsx +168 -196
  162. package/src/victory-label/victory-label.tsx +1 -1
  163. package/src/victory-portal/portal-context.tsx +69 -0
  164. package/src/victory-portal/portal-outlet.tsx +25 -0
  165. package/src/victory-portal/portal.tsx +5 -42
  166. package/src/victory-portal/victory-portal.tsx +34 -64
  167. package/src/victory-primitives/arc.tsx +3 -1
  168. package/src/victory-primitives/background.tsx +3 -1
  169. package/src/victory-primitives/border.tsx +3 -1
  170. package/src/victory-primitives/line-segment.tsx +3 -1
  171. package/src/victory-primitives/point.tsx +3 -1
  172. package/src/victory-primitives/whisker.tsx +3 -1
  173. package/src/victory-util/index.ts +1 -0
  174. package/src/victory-util/merge-refs.ts +26 -0
  175. package/src/victory-portal/portal-context.ts +0 -14
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # victory-core
2
2
 
3
+ ## 37.0.3-next.0
4
+
5
+ ### Patch Changes
6
+
7
+ - 65d02419f: Refactor containers and portal to function components
8
+ - victory-vendor@37.0.3-next.0
9
+
10
+ ## 37.0.2
11
+
12
+ ### Patch Changes
13
+
14
+ - Ensure undefined props do not overwrite defaults ([#2852](https://github.com/FormidableLabs/victory/pull/2852))
15
+
3
16
  ## 37.0.1
4
17
 
5
18
  ## 37.0.0