@aristobyte-ui/utils 2.15.2 → 2.16.2

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.
@@ -1,4 +1,4 @@
1
- import * as React from "react";
1
+ import * as React from 'react';
2
2
  export declare const Portal: React.FC<{
3
3
  children: React.ReactNode;
4
4
  }>;
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- "use client";
2
+ 'use client';
3
3
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
4
  if (k2 === undefined) k2 = k;
5
5
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -59,8 +59,9 @@ var Portal = function (_a) {
59
59
  React.useEffect(function () {
60
60
  setMounted(true);
61
61
  }, []);
62
- if (!mounted || typeof window === "undefined")
62
+ if (!mounted || typeof window === 'undefined') {
63
63
  return null;
64
+ }
64
65
  return (0, react_dom_1.createPortal)(children, document.body);
65
66
  };
66
67
  exports.Portal = Portal;
@@ -4,8 +4,9 @@ exports.renderRipple = void 0;
4
4
  var renderRipple = function (_a) {
5
5
  var ref = _a.ref, clientX = _a.clientX, clientY = _a.clientY;
6
6
  var button = ref.current;
7
- if (!button)
7
+ if (!button) {
8
8
  return;
9
+ }
9
10
  var circle = document.createElement('span');
10
11
  var diameter = Math.max(button.clientWidth, button.clientHeight);
11
12
  var radius = diameter / 2;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aristobyte-ui/utils",
3
3
  "description": "A collection of shared utility functions for AristoByte projects, designed to provide reusable helpers, streamline common operations, and ensure consistency across applications and packages.",
4
- "version": "2.15.2",
4
+ "version": "2.16.2",
5
5
  "license": "MIT",
6
6
  "private": false,
7
7
  "author": "AristoByte <info@aristobyte.com>",