@tecsinapse/cortex-react 1.9.38-beta.0 → 1.9.38-beta.1
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,21 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var React = require('react');
|
|
4
|
-
var clsx = require('clsx');
|
|
5
4
|
var index = require('../Popover/index.js');
|
|
6
5
|
var react = require('@floating-ui/react');
|
|
7
6
|
var context = require('./context.js');
|
|
8
7
|
|
|
9
8
|
const SelectPopover = ({ children }) => {
|
|
10
9
|
const { triggerWidth } = React.useContext(context.SelectContext);
|
|
11
|
-
const widthClass = triggerWidth ? `w-[${triggerWidth}px]` : "w-auto";
|
|
12
10
|
return /* @__PURE__ */ React.createElement(react.FloatingPortal, null, /* @__PURE__ */ React.createElement(
|
|
13
11
|
index.Popover.Content,
|
|
14
12
|
{
|
|
15
|
-
className:
|
|
16
|
-
"bg-white max-h-[30vh] overflow-y-scroll gap-y-mili flex flex-col p-0",
|
|
17
|
-
widthClass
|
|
18
|
-
)
|
|
13
|
+
className: `bg-white max-h-[30vh] overflow-y-scroll gap-y-mili flex flex-col p-0 ${triggerWidth ? `w-[${triggerWidth}px]` : "w-auto"}`
|
|
19
14
|
},
|
|
20
15
|
children
|
|
21
16
|
));
|
|
@@ -1,19 +1,14 @@
|
|
|
1
1
|
import React__default, { useContext } from 'react';
|
|
2
|
-
import clsx from 'clsx';
|
|
3
2
|
import { Popover } from '../Popover/index.js';
|
|
4
3
|
import { FloatingPortal } from '@floating-ui/react';
|
|
5
4
|
import { SelectContext } from './context.js';
|
|
6
5
|
|
|
7
6
|
const SelectPopover = ({ children }) => {
|
|
8
7
|
const { triggerWidth } = useContext(SelectContext);
|
|
9
|
-
const widthClass = triggerWidth ? `w-[${triggerWidth}px]` : "w-auto";
|
|
10
8
|
return /* @__PURE__ */ React__default.createElement(FloatingPortal, null, /* @__PURE__ */ React__default.createElement(
|
|
11
9
|
Popover.Content,
|
|
12
10
|
{
|
|
13
|
-
className:
|
|
14
|
-
"bg-white max-h-[30vh] overflow-y-scroll gap-y-mili flex flex-col p-0",
|
|
15
|
-
widthClass
|
|
16
|
-
)
|
|
11
|
+
className: `bg-white max-h-[30vh] overflow-y-scroll gap-y-mili flex flex-col p-0 ${triggerWidth ? `w-[${triggerWidth}px]` : "w-auto"}`
|
|
17
12
|
},
|
|
18
13
|
children
|
|
19
14
|
));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tecsinapse/cortex-react",
|
|
3
|
-
"version": "1.9.38-beta.
|
|
3
|
+
"version": "1.9.38-beta.1",
|
|
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": "
|
|
51
|
+
"gitHead": "9180f92f6e5b7577567497482f4a94b94448c575"
|
|
52
52
|
}
|