@tecsinapse/cortex-react 1.9.36 → 1.9.38

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.
@@ -31,6 +31,7 @@ const DatePickerInputBase = ({
31
31
  return /* @__PURE__ */ React.createElement(index.Input.Face, { variants, "data-testid": "date-picker-input-base" }, /* @__PURE__ */ React.createElement("label", { className: cortexCore.labelStyle({}) }, label), /* @__PURE__ */ React.createElement("div", { className: cortexCore.inputBox("", label, "w-full flex flex-row") }, children), /* @__PURE__ */ React.createElement(index.Input.Right, { className: "flex h-full justify-center" }, showCloseIcon ? /* @__PURE__ */ React.createElement(
32
32
  "button",
33
33
  {
34
+ className: "bg-transparent",
34
35
  onClick: onClean,
35
36
  disabled,
36
37
  "data-testid": "date-picker-input-base-clean-button",
@@ -46,6 +47,7 @@ const DatePickerInputBase = ({
46
47
  ) : /* @__PURE__ */ React.createElement(
47
48
  "button",
48
49
  {
50
+ className: "bg-transparent",
49
51
  onClick: onToggle,
50
52
  disabled,
51
53
  "data-testid": "date-picker-input-base-calendar-button",
@@ -21,7 +21,7 @@ const PopoverContent = ({
21
21
  getFloatingProps,
22
22
  context
23
23
  } = Context.usePopoverContext();
24
- return /* @__PURE__ */ React.createElement(React.Fragment, null, isOpen && /* @__PURE__ */ React.createElement(react.FloatingPortal, null, /* @__PURE__ */ React.createElement(react.FloatingFocusManager, { ...rest, context, modal }, /* @__PURE__ */ React.createElement(
24
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, isOpen && /* @__PURE__ */ React.createElement(react.FloatingFocusManager, { ...rest, context, modal }, /* @__PURE__ */ React.createElement(
25
25
  "div",
26
26
  {
27
27
  ref: refs.setFloating,
@@ -38,7 +38,7 @@ const PopoverContent = ({
38
38
  }
39
39
  },
40
40
  children
41
- ))));
41
+ )));
42
42
  };
43
43
 
44
44
  exports.PopoverContent = PopoverContent;
@@ -27,11 +27,6 @@ const useFloatingElement = ({
27
27
  fallbackPlacements
28
28
  }),
29
29
  react.shift(),
30
- react.size({
31
- apply({ rects, elements }) {
32
- elements.floating.style.width = `${rects.reference.width}px`;
33
- }
34
- }),
35
30
  ...arrowRef ? [react.arrow({ element: arrowRef })] : []
36
31
  ]
37
32
  }
@@ -29,6 +29,7 @@ const DatePickerInputBase = ({
29
29
  return /* @__PURE__ */ React__default.createElement(Input.Face, { variants, "data-testid": "date-picker-input-base" }, /* @__PURE__ */ React__default.createElement("label", { className: labelStyle({}) }, label), /* @__PURE__ */ React__default.createElement("div", { className: inputBox("", label, "w-full flex flex-row") }, children), /* @__PURE__ */ React__default.createElement(Input.Right, { className: "flex h-full justify-center" }, showCloseIcon ? /* @__PURE__ */ React__default.createElement(
30
30
  "button",
31
31
  {
32
+ className: "bg-transparent",
32
33
  onClick: onClean,
33
34
  disabled,
34
35
  "data-testid": "date-picker-input-base-clean-button",
@@ -44,6 +45,7 @@ const DatePickerInputBase = ({
44
45
  ) : /* @__PURE__ */ React__default.createElement(
45
46
  "button",
46
47
  {
48
+ className: "bg-transparent",
47
49
  onClick: onToggle,
48
50
  disabled,
49
51
  "data-testid": "date-picker-input-base-calendar-button",
@@ -1,4 +1,4 @@
1
- import { FloatingPortal, FloatingFocusManager } from '@floating-ui/react';
1
+ import { FloatingFocusManager } from '@floating-ui/react';
2
2
  import clsx from 'clsx';
3
3
  import React__default from 'react';
4
4
  import { usePopoverContext } from './Context.js';
@@ -19,7 +19,7 @@ const PopoverContent = ({
19
19
  getFloatingProps,
20
20
  context
21
21
  } = usePopoverContext();
22
- return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, isOpen && /* @__PURE__ */ React__default.createElement(FloatingPortal, null, /* @__PURE__ */ React__default.createElement(FloatingFocusManager, { ...rest, context, modal }, /* @__PURE__ */ React__default.createElement(
22
+ return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, isOpen && /* @__PURE__ */ React__default.createElement(FloatingFocusManager, { ...rest, context, modal }, /* @__PURE__ */ React__default.createElement(
23
23
  "div",
24
24
  {
25
25
  ref: refs.setFloating,
@@ -36,7 +36,7 @@ const PopoverContent = ({
36
36
  }
37
37
  },
38
38
  children
39
- ))));
39
+ )));
40
40
  };
41
41
 
42
42
  export { PopoverContent };
@@ -1,4 +1,4 @@
1
- import { useFloating, autoUpdate, offset, flip, shift, size, arrow, useClick, useDismiss, useRole, useHover, safePolygon, useInteractions } from '@floating-ui/react';
1
+ import { useFloating, autoUpdate, offset, flip, shift, arrow, useClick, useDismiss, useRole, useHover, safePolygon, useInteractions } from '@floating-ui/react';
2
2
  import { useState, useEffect } from 'react';
3
3
 
4
4
  const useFloatingElement = ({
@@ -25,11 +25,6 @@ const useFloatingElement = ({
25
25
  fallbackPlacements
26
26
  }),
27
27
  shift(),
28
- size({
29
- apply({ rects, elements }) {
30
- elements.floating.style.width = `${rects.reference.width}px`;
31
- }
32
- }),
33
28
  ...arrowRef ? [arrow({ element: arrowRef })] : []
34
29
  ]
35
30
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tecsinapse/cortex-react",
3
- "version": "1.9.36",
3
+ "version": "1.9.38",
4
4
  "description": "React components based in @tecsinapse/cortex-core",
5
5
  "license": "MIT",
6
6
  "main": "dist/esm/index.js",
@@ -48,5 +48,5 @@
48
48
  "react-dom": ">=18.0.0",
49
49
  "tailwind": ">=3.3.0"
50
50
  },
51
- "gitHead": "5a82d47d1072229796dba061c1d3a86b8db59cff"
51
+ "gitHead": "b8c5795863dd10ef090d61654a70163d1dfdd452"
52
52
  }