@tecsinapse/cortex-react 1.5.5 → 1.5.7
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/dist/cjs/components/Menubar/Category.js +1 -1
- package/dist/cjs/components/Menubar/IconControlSubItem.js +1 -4
- package/dist/cjs/components/Menubar/Item.js +2 -2
- package/dist/cjs/components/Menubar/ItemLink.js +3 -11
- package/dist/cjs/components/Menubar/MostUsedItem.js +2 -2
- package/dist/cjs/components/Menubar/SubItem.js +7 -2
- package/dist/esm/components/Menubar/Category.js +1 -1
- package/dist/esm/components/Menubar/IconControlSubItem.js +1 -4
- package/dist/esm/components/Menubar/Item.js +2 -2
- package/dist/esm/components/Menubar/ItemLink.js +3 -11
- package/dist/esm/components/Menubar/MostUsedItem.js +2 -2
- package/dist/esm/components/Menubar/SubItem.js +7 -2
- package/dist/types/components/Menubar/Categories.d.ts +1 -1
- package/dist/types/components/Menubar/Category.d.ts +2 -6
- package/dist/types/components/Menubar/Dropdown.d.ts +1 -1
- package/dist/types/components/Menubar/DropdownRoot.d.ts +1 -15
- package/dist/types/components/Menubar/Header.d.ts +2 -4
- package/dist/types/components/Menubar/IconControlSubItem.d.ts +3 -5
- package/dist/types/components/Menubar/Item.d.ts +3 -9
- package/dist/types/components/Menubar/ItemLink.d.ts +3 -7
- package/dist/types/components/Menubar/Left.d.ts +1 -1
- package/dist/types/components/Menubar/MostUsed.d.ts +2 -6
- package/dist/types/components/Menubar/MostUsedItem.d.ts +2 -7
- package/dist/types/components/Menubar/MostUsedList.d.ts +1 -1
- package/dist/types/components/Menubar/Right.d.ts +1 -1
- package/dist/types/components/Menubar/Root.d.ts +2 -4
- package/dist/types/components/Menubar/SubItem.d.ts +2 -5
- package/dist/types/components/Menubar/index.d.ts +13 -12
- package/dist/types/components/Menubar/types.d.ts +57 -0
- package/package.json +3 -2
- package/dist/types/components/Menubar/interface.d.ts +0 -4
|
@@ -5,7 +5,7 @@ var menubar = require('../../styles/menubar.js');
|
|
|
5
5
|
|
|
6
6
|
const Category = ({ title, options, render }) => {
|
|
7
7
|
const { text, hr, container } = menubar.category();
|
|
8
|
-
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("p", { className: text() }, title), /* @__PURE__ */ React.createElement("hr", { className: hr() }), /* @__PURE__ */ React.createElement("div", { className: container() }, options.map((i) => render(i))));
|
|
8
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("p", { className: text() }, title), /* @__PURE__ */ React.createElement("a", null), /* @__PURE__ */ React.createElement("hr", { className: hr() }), /* @__PURE__ */ React.createElement("div", { className: container() }, options.map((i) => render(i))));
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
module.exports = Category;
|
|
@@ -5,10 +5,7 @@ var menubar = require('../../styles/menubar.js');
|
|
|
5
5
|
var io5 = require('react-icons/io5');
|
|
6
6
|
|
|
7
7
|
const { icon } = menubar.item();
|
|
8
|
-
const IconControlSubItem = ({
|
|
9
|
-
show,
|
|
10
|
-
setShow
|
|
11
|
-
}) => {
|
|
8
|
+
const IconControlSubItem = ({ show, setShow }) => {
|
|
12
9
|
const handleClick = (e) => {
|
|
13
10
|
e.stopPropagation();
|
|
14
11
|
setShow(!show);
|
|
@@ -11,12 +11,12 @@ const Item = ({
|
|
|
11
11
|
subItems,
|
|
12
12
|
renderSubItems,
|
|
13
13
|
className,
|
|
14
|
-
|
|
14
|
+
anchorProps,
|
|
15
15
|
...rest
|
|
16
16
|
}) => {
|
|
17
17
|
const [showSubItem, setShowSubItem] = React.useState(false);
|
|
18
18
|
const hasSubItems = (subItems ?? []).length > 0;
|
|
19
|
-
return /* @__PURE__ */ React.createElement(ItemLink, {
|
|
19
|
+
return /* @__PURE__ */ React.createElement(ItemLink, { anchorProps }, /* @__PURE__ */ React.createElement("div", { "data-testid": "item-menubar", ...rest, className: container() }, /* @__PURE__ */ React.createElement("div", { className: text({ className }) }, children), hasSubItems ? /* @__PURE__ */ React.createElement(IconControlSubItem, { show: showSubItem, setShow: setShowSubItem }) : /* @__PURE__ */ React.createElement(React.Fragment, null)), showSubItem ? /* @__PURE__ */ React.createElement(React.Fragment, null, subItems?.map((subItem) => renderSubItems?.(subItem))) : /* @__PURE__ */ React.createElement(React.Fragment, null));
|
|
20
20
|
};
|
|
21
21
|
|
|
22
22
|
module.exports = Item;
|
|
@@ -1,18 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var React = require('react');
|
|
4
|
+
var clsx = require('clsx');
|
|
4
5
|
|
|
5
|
-
const ItemLink = ({
|
|
6
|
-
return /* @__PURE__ */ React.createElement(React.Fragment, null,
|
|
7
|
-
"a",
|
|
8
|
-
{
|
|
9
|
-
href,
|
|
10
|
-
target: "_blank",
|
|
11
|
-
rel: "noopener noreferrer",
|
|
12
|
-
className: classNameAnchor
|
|
13
|
-
},
|
|
14
|
-
children
|
|
15
|
-
) : children);
|
|
6
|
+
const ItemLink = ({ anchorProps, children }) => {
|
|
7
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, anchorProps ? /* @__PURE__ */ React.createElement("a", { ...anchorProps, className: clsx("w-full", anchorProps?.className) }, children) : children);
|
|
16
8
|
};
|
|
17
9
|
|
|
18
10
|
module.exports = ItemLink;
|
|
@@ -13,10 +13,10 @@ const {
|
|
|
13
13
|
const MostUsedItem = ({
|
|
14
14
|
title,
|
|
15
15
|
category,
|
|
16
|
-
|
|
16
|
+
anchorProps,
|
|
17
17
|
...rest
|
|
18
18
|
}) => {
|
|
19
|
-
return /* @__PURE__ */ React.createElement(ItemLink, {
|
|
19
|
+
return /* @__PURE__ */ React.createElement(ItemLink, { anchorProps }, /* @__PURE__ */ React.createElement(
|
|
20
20
|
Card.Card,
|
|
21
21
|
{
|
|
22
22
|
...rest,
|
|
@@ -5,8 +5,13 @@ var menubar = require('../../styles/menubar.js');
|
|
|
5
5
|
var ItemLink = require('./ItemLink.js');
|
|
6
6
|
|
|
7
7
|
const { container } = menubar.subItem();
|
|
8
|
-
const SubItem = ({
|
|
9
|
-
|
|
8
|
+
const SubItem = ({
|
|
9
|
+
children,
|
|
10
|
+
anchorProps,
|
|
11
|
+
className,
|
|
12
|
+
...rest
|
|
13
|
+
}) => {
|
|
14
|
+
return /* @__PURE__ */ React.createElement(ItemLink, { anchorProps }, /* @__PURE__ */ React.createElement(
|
|
10
15
|
"div",
|
|
11
16
|
{
|
|
12
17
|
...rest,
|
|
@@ -3,7 +3,7 @@ import { category } from '../../styles/menubar.js';
|
|
|
3
3
|
|
|
4
4
|
const Category = ({ title, options, render }) => {
|
|
5
5
|
const { text, hr, container } = category();
|
|
6
|
-
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement("p", { className: text() }, title), /* @__PURE__ */ React__default.createElement("hr", { className: hr() }), /* @__PURE__ */ React__default.createElement("div", { className: container() }, options.map((i) => render(i))));
|
|
6
|
+
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement("p", { className: text() }, title), /* @__PURE__ */ React__default.createElement("a", null), /* @__PURE__ */ React__default.createElement("hr", { className: hr() }), /* @__PURE__ */ React__default.createElement("div", { className: container() }, options.map((i) => render(i))));
|
|
7
7
|
};
|
|
8
8
|
|
|
9
9
|
export { Category as default };
|
|
@@ -3,10 +3,7 @@ import { item } from '../../styles/menubar.js';
|
|
|
3
3
|
import { IoCaretUpCircleOutline, IoCaretDownCircleOutline } from 'react-icons/io5';
|
|
4
4
|
|
|
5
5
|
const { icon } = item();
|
|
6
|
-
const IconControlSubItem = ({
|
|
7
|
-
show,
|
|
8
|
-
setShow
|
|
9
|
-
}) => {
|
|
6
|
+
const IconControlSubItem = ({ show, setShow }) => {
|
|
10
7
|
const handleClick = (e) => {
|
|
11
8
|
e.stopPropagation();
|
|
12
9
|
setShow(!show);
|
|
@@ -9,12 +9,12 @@ const Item = ({
|
|
|
9
9
|
subItems,
|
|
10
10
|
renderSubItems,
|
|
11
11
|
className,
|
|
12
|
-
|
|
12
|
+
anchorProps,
|
|
13
13
|
...rest
|
|
14
14
|
}) => {
|
|
15
15
|
const [showSubItem, setShowSubItem] = useState(false);
|
|
16
16
|
const hasSubItems = (subItems ?? []).length > 0;
|
|
17
|
-
return /* @__PURE__ */ React__default.createElement(ItemLink, {
|
|
17
|
+
return /* @__PURE__ */ React__default.createElement(ItemLink, { anchorProps }, /* @__PURE__ */ React__default.createElement("div", { "data-testid": "item-menubar", ...rest, className: container() }, /* @__PURE__ */ React__default.createElement("div", { className: text({ className }) }, children), hasSubItems ? /* @__PURE__ */ React__default.createElement(IconControlSubItem, { show: showSubItem, setShow: setShowSubItem }) : /* @__PURE__ */ React__default.createElement(React__default.Fragment, null)), showSubItem ? /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, subItems?.map((subItem) => renderSubItems?.(subItem))) : /* @__PURE__ */ React__default.createElement(React__default.Fragment, null));
|
|
18
18
|
};
|
|
19
19
|
|
|
20
20
|
export { Item as default };
|
|
@@ -1,16 +1,8 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
|
+
import clsx from 'clsx';
|
|
2
3
|
|
|
3
|
-
const ItemLink = ({
|
|
4
|
-
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null,
|
|
5
|
-
"a",
|
|
6
|
-
{
|
|
7
|
-
href,
|
|
8
|
-
target: "_blank",
|
|
9
|
-
rel: "noopener noreferrer",
|
|
10
|
-
className: classNameAnchor
|
|
11
|
-
},
|
|
12
|
-
children
|
|
13
|
-
) : children);
|
|
4
|
+
const ItemLink = ({ anchorProps, children }) => {
|
|
5
|
+
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, anchorProps ? /* @__PURE__ */ React__default.createElement("a", { ...anchorProps, className: clsx("w-full", anchorProps?.className) }, children) : children);
|
|
14
6
|
};
|
|
15
7
|
|
|
16
8
|
export { ItemLink as default };
|
|
@@ -11,10 +11,10 @@ const {
|
|
|
11
11
|
const MostUsedItem = ({
|
|
12
12
|
title,
|
|
13
13
|
category,
|
|
14
|
-
|
|
14
|
+
anchorProps,
|
|
15
15
|
...rest
|
|
16
16
|
}) => {
|
|
17
|
-
return /* @__PURE__ */ React__default.createElement(ItemLink, {
|
|
17
|
+
return /* @__PURE__ */ React__default.createElement(ItemLink, { anchorProps }, /* @__PURE__ */ React__default.createElement(
|
|
18
18
|
Card,
|
|
19
19
|
{
|
|
20
20
|
...rest,
|
|
@@ -3,8 +3,13 @@ import { subItem } from '../../styles/menubar.js';
|
|
|
3
3
|
import ItemLink from './ItemLink.js';
|
|
4
4
|
|
|
5
5
|
const { container } = subItem();
|
|
6
|
-
const SubItem = ({
|
|
7
|
-
|
|
6
|
+
const SubItem = ({
|
|
7
|
+
children,
|
|
8
|
+
anchorProps,
|
|
9
|
+
className,
|
|
10
|
+
...rest
|
|
11
|
+
}) => {
|
|
12
|
+
return /* @__PURE__ */ React__default.createElement(ItemLink, { anchorProps }, /* @__PURE__ */ React__default.createElement(
|
|
8
13
|
"div",
|
|
9
14
|
{
|
|
10
15
|
...rest,
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
title: string;
|
|
4
|
-
options: T[];
|
|
5
|
-
render: (prop: T) => ReactNode;
|
|
6
|
-
};
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { CategoryType } from './types';
|
|
7
3
|
declare const Category: <T>({ title, options, render }: CategoryType<T>) => JSX.Element;
|
|
8
4
|
export default Category;
|
|
@@ -1,18 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
3
|
-
import { MostUsedItemProps } from './MostUsedItem';
|
|
4
|
-
interface MenuItem extends DefaultProps {
|
|
5
|
-
title: string;
|
|
6
|
-
items?: MenuItem[];
|
|
7
|
-
}
|
|
8
|
-
interface MenuCategory {
|
|
9
|
-
title: string;
|
|
10
|
-
items: MenuItem[];
|
|
11
|
-
}
|
|
12
|
-
export interface DropdownRootProps {
|
|
13
|
-
labelMostUsed?: string;
|
|
14
|
-
mostUsed?: MostUsedItemProps[];
|
|
15
|
-
options: MenuCategory[];
|
|
16
|
-
}
|
|
2
|
+
import { DropdownRootProps } from './types';
|
|
17
3
|
declare const DropdownRoot: ({ mostUsed, options, labelMostUsed, }: DropdownRootProps) => JSX.Element;
|
|
18
4
|
export default DropdownRoot;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
children?: ReactNode;
|
|
4
|
-
}
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { HeaderProps } from './types';
|
|
5
3
|
declare const Header: ({ children, className, ...rest }: HeaderProps) => JSX.Element;
|
|
6
4
|
export default Header;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
setShow: Dispatch<React.SetStateAction<boolean>>;
|
|
5
|
-
}) => JSX.Element;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IconControlSubItemProps } from './types';
|
|
3
|
+
declare const IconControlSubItem: ({ show, setShow }: IconControlSubItemProps) => JSX.Element;
|
|
6
4
|
export default IconControlSubItem;
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
children?: React.ReactNode;
|
|
5
|
-
subItems?: T[];
|
|
6
|
-
renderSubItems?: (prop: T) => React.ReactNode;
|
|
7
|
-
href?: string;
|
|
8
|
-
}
|
|
9
|
-
declare const Item: <T>({ children, subItems, renderSubItems, className, href, ...rest }: ItemProps<T>) => JSX.Element;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ItemProps } from './types';
|
|
3
|
+
declare const Item: <T>({ children, subItems, renderSubItems, className, anchorProps, ...rest }: ItemProps<T>) => JSX.Element;
|
|
10
4
|
export default Item;
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
children?: React.ReactNode;
|
|
5
|
-
classNameAnchor?: string;
|
|
6
|
-
}
|
|
7
|
-
declare const ItemLink: ({ href, children, classNameAnchor }: ItemLinkProps) => JSX.Element;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ItemLinkProps } from './types';
|
|
3
|
+
declare const ItemLink: ({ anchorProps, children }: ItemLinkProps) => JSX.Element;
|
|
8
4
|
export default ItemLink;
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
export interface MostUsedProps extends DefaultProps {
|
|
4
|
-
label?: string;
|
|
5
|
-
children?: React.ReactNode;
|
|
6
|
-
}
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { MostUsedProps } from './types';
|
|
7
3
|
declare const MostUsed: ({ label, children, ...rest }: MostUsedProps) => JSX.Element;
|
|
8
4
|
export default MostUsed;
|
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
title: string;
|
|
5
|
-
category: string;
|
|
6
|
-
href?: string;
|
|
7
|
-
}
|
|
8
|
-
declare const MostUsedItem: ({ title, category, href, ...rest }: MostUsedItemProps) => JSX.Element;
|
|
2
|
+
import { MostUsedItemProps } from './types';
|
|
3
|
+
declare const MostUsedItem: ({ title, category, anchorProps, ...rest }: MostUsedItemProps) => JSX.Element;
|
|
9
4
|
export default MostUsedItem;
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
href?: string;
|
|
5
|
-
}
|
|
6
|
-
declare const SubItem: ({ children, href, className, ...rest }: SubItemProps) => JSX.Element;
|
|
2
|
+
import { SubItemProps } from './types';
|
|
3
|
+
declare const SubItem: ({ children, anchorProps, className, ...rest }: SubItemProps) => JSX.Element;
|
|
7
4
|
export default SubItem;
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const Menubar: {
|
|
3
|
-
Root: ({ children }: import("./
|
|
4
|
-
Header: ({ children, className, ...rest }: import("./
|
|
5
|
-
HeaderLeft: ({ children, ...rest }: import("./
|
|
3
|
+
Root: ({ children }: import("./types").RootProps) => JSX.Element;
|
|
4
|
+
Header: ({ children, className, ...rest }: import("./types").HeaderProps) => JSX.Element;
|
|
5
|
+
HeaderLeft: ({ children, ...rest }: import("./types").DefaultProps) => JSX.Element;
|
|
6
6
|
Search: (props: import("..").InputSearchProps) => JSX.Element;
|
|
7
|
-
HeaderRight: ({ children, ...rest }: import("./
|
|
8
|
-
Dropdown: ({ children, ...rest }: import("./
|
|
9
|
-
MostUsed: ({ label, children, ...rest }: import("./
|
|
10
|
-
MostUsedItem: ({ title, category,
|
|
11
|
-
Category: <T>({ title, options, render }: import("./
|
|
12
|
-
Categories: ({ children }: import("./
|
|
13
|
-
Item: <T_1>({ children, subItems, renderSubItems, className,
|
|
14
|
-
SubItem: ({ children,
|
|
15
|
-
DropdownRoot: ({ mostUsed, options, labelMostUsed, }: import("./
|
|
7
|
+
HeaderRight: ({ children, ...rest }: import("./types").DefaultProps) => JSX.Element;
|
|
8
|
+
Dropdown: ({ children, ...rest }: import("./types").DefaultProps) => JSX.Element;
|
|
9
|
+
MostUsed: ({ label, children, ...rest }: import("./types").MostUsedProps) => JSX.Element;
|
|
10
|
+
MostUsedItem: ({ title, category, anchorProps, ...rest }: import("./types").MostUsedItemProps) => JSX.Element;
|
|
11
|
+
Category: <T>({ title, options, render }: import("./types").CategoryType<T>) => JSX.Element;
|
|
12
|
+
Categories: ({ children }: import("./types").DefaultProps) => JSX.Element;
|
|
13
|
+
Item: <T_1>({ children, subItems, renderSubItems, className, anchorProps, ...rest }: import("./types").ItemProps<T_1>) => JSX.Element;
|
|
14
|
+
SubItem: ({ children, anchorProps, className, ...rest }: import("./types").SubItemProps) => JSX.Element;
|
|
15
|
+
DropdownRoot: ({ mostUsed, options, labelMostUsed, }: import("./types").DropdownRootProps) => JSX.Element;
|
|
16
16
|
};
|
|
17
|
+
export * from './types';
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import React, { Dispatch, ReactNode } from 'react';
|
|
2
|
+
import { CardProps } from '../Card';
|
|
3
|
+
export interface DefaultProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
children?: ReactNode;
|
|
5
|
+
}
|
|
6
|
+
export interface MenuItem extends DefaultProps {
|
|
7
|
+
title: string;
|
|
8
|
+
items?: MenuItem[];
|
|
9
|
+
anchorProps?: React.AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
10
|
+
[key: string]: unknown;
|
|
11
|
+
}
|
|
12
|
+
export interface MenuCategory {
|
|
13
|
+
title: string;
|
|
14
|
+
items: MenuItem[];
|
|
15
|
+
}
|
|
16
|
+
export interface DropdownRootProps {
|
|
17
|
+
labelMostUsed?: string;
|
|
18
|
+
mostUsed?: MostUsedItemProps[];
|
|
19
|
+
options: MenuCategory[];
|
|
20
|
+
}
|
|
21
|
+
export type CategoryType<T> = {
|
|
22
|
+
title: string;
|
|
23
|
+
options: T[];
|
|
24
|
+
render: (prop: T) => ReactNode;
|
|
25
|
+
};
|
|
26
|
+
export interface HeaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
27
|
+
children?: ReactNode;
|
|
28
|
+
}
|
|
29
|
+
export interface ItemLinkProps {
|
|
30
|
+
anchorProps?: React.AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
31
|
+
children?: React.ReactNode;
|
|
32
|
+
}
|
|
33
|
+
export interface MostUsedItemProps extends CardProps {
|
|
34
|
+
title: string;
|
|
35
|
+
category: string;
|
|
36
|
+
anchorProps?: React.AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
37
|
+
}
|
|
38
|
+
export interface MostUsedProps extends DefaultProps {
|
|
39
|
+
label?: string;
|
|
40
|
+
children?: React.ReactNode;
|
|
41
|
+
}
|
|
42
|
+
export interface RootProps {
|
|
43
|
+
children?: ReactNode;
|
|
44
|
+
}
|
|
45
|
+
export interface SubItemProps extends DefaultProps {
|
|
46
|
+
anchorProps?: React.AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
47
|
+
}
|
|
48
|
+
export interface IconControlSubItemProps {
|
|
49
|
+
show: boolean;
|
|
50
|
+
setShow: Dispatch<React.SetStateAction<boolean>>;
|
|
51
|
+
}
|
|
52
|
+
export interface ItemProps<T> extends DefaultProps {
|
|
53
|
+
children?: React.ReactNode;
|
|
54
|
+
subItems?: T[];
|
|
55
|
+
renderSubItems?: (prop: T) => React.ReactNode;
|
|
56
|
+
anchorProps?: React.AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
57
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tecsinapse/cortex-react",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.7",
|
|
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": "4b9b6e63f11ae61a5cd71b0a311bf5bc9a70126e"
|
|
49
50
|
}
|