@tecsinapse/cortex-react 1.5.6 → 1.5.8
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.
|
@@ -2,9 +2,35 @@
|
|
|
2
2
|
|
|
3
3
|
var React = require('react');
|
|
4
4
|
var clsx = require('clsx');
|
|
5
|
+
require('@internationalized/date');
|
|
6
|
+
require('react-aria');
|
|
7
|
+
require('react-stately');
|
|
8
|
+
require('@floating-ui/react');
|
|
9
|
+
require('currency.js');
|
|
10
|
+
require('../../provider/MenubarContext.js');
|
|
11
|
+
require('../../provider/SnackbarProvider.js');
|
|
12
|
+
var useMenubar = require('../../provider/useMenubar.js');
|
|
5
13
|
|
|
6
14
|
const ItemLink = ({ anchorProps, children }) => {
|
|
7
|
-
|
|
15
|
+
const [, setShow] = useMenubar.useMenubar();
|
|
16
|
+
return /* @__PURE__ */ React.createElement(
|
|
17
|
+
"div",
|
|
18
|
+
{
|
|
19
|
+
onClick: () => {
|
|
20
|
+
setShow(false);
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
anchorProps ? /* @__PURE__ */ React.createElement(
|
|
24
|
+
"a",
|
|
25
|
+
{
|
|
26
|
+
...anchorProps,
|
|
27
|
+
target: "_blank",
|
|
28
|
+
rel: "noopener noreferrer",
|
|
29
|
+
className: clsx("w-full", anchorProps?.className)
|
|
30
|
+
},
|
|
31
|
+
children
|
|
32
|
+
) : children
|
|
33
|
+
);
|
|
8
34
|
};
|
|
9
35
|
|
|
10
36
|
module.exports = ItemLink;
|
|
@@ -1,8 +1,34 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
2
|
import clsx from 'clsx';
|
|
3
|
+
import '@internationalized/date';
|
|
4
|
+
import 'react-aria';
|
|
5
|
+
import 'react-stately';
|
|
6
|
+
import '@floating-ui/react';
|
|
7
|
+
import 'currency.js';
|
|
8
|
+
import '../../provider/MenubarContext.js';
|
|
9
|
+
import '../../provider/SnackbarProvider.js';
|
|
10
|
+
import { useMenubar } from '../../provider/useMenubar.js';
|
|
3
11
|
|
|
4
12
|
const ItemLink = ({ anchorProps, children }) => {
|
|
5
|
-
|
|
13
|
+
const [, setShow] = useMenubar();
|
|
14
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
15
|
+
"div",
|
|
16
|
+
{
|
|
17
|
+
onClick: () => {
|
|
18
|
+
setShow(false);
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
anchorProps ? /* @__PURE__ */ React__default.createElement(
|
|
22
|
+
"a",
|
|
23
|
+
{
|
|
24
|
+
...anchorProps,
|
|
25
|
+
target: "_blank",
|
|
26
|
+
rel: "noopener noreferrer",
|
|
27
|
+
className: clsx("w-full", anchorProps?.className)
|
|
28
|
+
},
|
|
29
|
+
children
|
|
30
|
+
) : children
|
|
31
|
+
);
|
|
6
32
|
};
|
|
7
33
|
|
|
8
34
|
export { ItemLink as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tecsinapse/cortex-react",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.8",
|
|
4
4
|
"description": "React components based in @tecsinapse/cortex-core",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/esm/index.js",
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"@internationalized/date": "*",
|
|
23
23
|
"@tecsinapse/cortex-core": "0.3.3",
|
|
24
24
|
"clsx": "*",
|
|
25
|
+
"currency.js": "~2.0.4",
|
|
25
26
|
"react-aria": "^3.33.1",
|
|
26
27
|
"react-icons": "^5.2.1",
|
|
27
28
|
"react-imask": "7.6.1",
|
|
@@ -45,5 +46,5 @@
|
|
|
45
46
|
"react-dom": ">=18.0.0",
|
|
46
47
|
"tailwind": ">=3.3.0"
|
|
47
48
|
},
|
|
48
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "3b88babf66b4655d271619835a2a8932121731fb"
|
|
49
50
|
}
|