@occmundial/occ-atomic 3.0.0-beta.35 → 3.0.0-beta.37

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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,19 @@
1
+ # [3.0.0-beta.37](https://github.com/occmundial/occ-atomic/compare/v3.0.0-beta.36...v3.0.0-beta.37) (2024-07-24)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * Add placement to use memo dependencies ([3a14e00](https://github.com/occmundial/occ-atomic/commit/3a14e00b5fe72d55043f1be4b1fb57f1c860d584))
7
+
8
+ # [3.0.0-beta.36](https://github.com/occmundial/occ-atomic/compare/v3.0.0-beta.35...v3.0.0-beta.36) (2024-07-24)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * Pass props directly ([39fc2c4](https://github.com/occmundial/occ-atomic/commit/39fc2c455fead75aec07995b3f99123774b28100))
14
+ * Remove unnecesary arrow padding ([fcbf53b](https://github.com/occmundial/occ-atomic/commit/fcbf53bbf2f750dab61d82021be54f5eb95f3e7b))
15
+ * Remove unnused variable ([613405c](https://github.com/occmundial/occ-atomic/commit/613405c2466d79a0694f33aa0b19c2d55160ca8b))
16
+
1
17
  # [3.0.0-beta.35](https://github.com/occmundial/occ-atomic/compare/v3.0.0-beta.34...v3.0.0-beta.35) (2024-07-24)
2
18
 
3
19
 
@@ -17,8 +17,6 @@ var _colors = _interopRequireDefault(require("../subatomic/colors"));
17
17
 
18
18
  var _colors2 = _interopRequireDefault(require("../tokens/colors.json"));
19
19
 
20
- var _spacing = _interopRequireDefault(require("../tokens/spacing.json"));
21
-
22
20
  var _hooks = require("./hooks");
23
21
 
24
22
  var _Icon = _interopRequireDefault(require("../Icon"));
@@ -130,8 +128,7 @@ function Tooltip(_ref) {
130
128
  };
131
129
  })];
132
130
  showArrow && middlewares.push((0, _react2.arrow)({
133
- element: arrowRef,
134
- padding: "".concat(_spacing["default"]['size-2'], " ").concat(_spacing["default"]['size-3'])
131
+ element: arrowRef
135
132
  }));
136
133
  var sizeMiddleware = (0, _react2.size)({
137
134
  apply: function apply(_ref3) {
@@ -156,7 +153,7 @@ function Tooltip(_ref) {
156
153
  sizeMiddleware.name = "size-".concat(fit, "-").concat(width);
157
154
  middlewares.push(sizeMiddleware);
158
155
  return middlewares;
159
- }, [showArrow, fit, width]);
156
+ }, [showArrow, fit, width, placement]);
160
157
 
161
158
  var _useFloating = (0, _react2.useFloating)({
162
159
  open: open,
@@ -181,10 +178,6 @@ function Tooltip(_ref) {
181
178
  getReferenceProps = _useInteractions.getReferenceProps,
182
179
  getFloatingProps = _useInteractions.getFloatingProps;
183
180
 
184
- var arrowProps = {
185
- strokeWidth: 1,
186
- stroke: borderColors[theme].border
187
- };
188
181
  return /*#__PURE__*/_react["default"].createElement(_react.Fragment, null, /*#__PURE__*/_react["default"].createElement("div", _extends({
189
182
  ref: refs.setReference
190
183
  }, getReferenceProps(), {
@@ -204,17 +197,18 @@ function Tooltip(_ref) {
204
197
  height: 12
205
198
  }), /*#__PURE__*/_react["default"].createElement("p", {
206
199
  className: classes.text
207
- }, text)), showArrow && /*#__PURE__*/_react["default"].createElement(_react2.FloatingArrow, _extends({
200
+ }, text)), showArrow && /*#__PURE__*/_react["default"].createElement(_react2.FloatingArrow, {
208
201
  style: {
209
202
  transform: 'translateY(1px)'
210
203
  },
211
204
  ref: arrowRef,
212
205
  context: context,
213
- fill: colorsArrow[theme] || colorsArrow[themes.PURPLE]
214
- }, arrowProps, {
206
+ fill: colorsArrow[theme] || colorsArrow[themes.PURPLE],
207
+ strokeWidth: 1,
208
+ stroke: borderColors[theme].border,
215
209
  width: 20,
216
210
  d: "M0 20C0 20 2.06906 19.9829 5.91817 15.4092C7.49986 13.5236 8.97939 12.3809 10.0002 12.3809C11.0202 12.3809 12.481 13.6451 14.0814 15.5472C17.952 20.1437 20 20 20 20H0Z"
217
- })))));
211
+ }))));
218
212
  }
219
213
 
220
214
  Tooltip.propTypes = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@occmundial/occ-atomic",
3
- "version": "3.0.0-beta.35",
3
+ "version": "3.0.0-beta.37",
4
4
  "description": "Collection of shareable styled React components for OCC applications.",
5
5
  "homepage": "http://occmundial.github.io/occ-atomic",
6
6
  "main": "build/index.js",