@tecsinapse/cortex-react 1.4.3 → 1.5.0-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.
|
@@ -14,8 +14,7 @@ const InputBox = React.forwardRef(
|
|
|
14
14
|
placeholder: placeholder ?? " ",
|
|
15
15
|
className: clsx(cortexCore.inputBox(placeholder, label, className)),
|
|
16
16
|
...rest,
|
|
17
|
-
ref
|
|
18
|
-
"data-testid": "input-box"
|
|
17
|
+
ref
|
|
19
18
|
}
|
|
20
19
|
), /* @__PURE__ */ React.createElement(
|
|
21
20
|
"label",
|
|
@@ -4,8 +4,8 @@ var cortexCore = require('@tecsinapse/cortex-core');
|
|
|
4
4
|
var React = require('react');
|
|
5
5
|
|
|
6
6
|
const Tag = React.forwardRef((props, ref) => {
|
|
7
|
-
const { label, variants } = props;
|
|
8
|
-
return /* @__PURE__ */ React.createElement("div", { className: cortexCore.tag(variants), ref }, /* @__PURE__ */ React.createElement("p", null, label));
|
|
7
|
+
const { label, variants, children } = props;
|
|
8
|
+
return /* @__PURE__ */ React.createElement("div", { className: cortexCore.tag(variants), ref }, label ? /* @__PURE__ */ React.createElement("p", null, label) : /* @__PURE__ */ React.createElement(React.Fragment, null), children);
|
|
9
9
|
});
|
|
10
10
|
|
|
11
11
|
exports.Tag = Tag;
|
|
@@ -12,8 +12,7 @@ const InputBox = React__default.forwardRef(
|
|
|
12
12
|
placeholder: placeholder ?? " ",
|
|
13
13
|
className: clsx(inputBox(placeholder, label, className)),
|
|
14
14
|
...rest,
|
|
15
|
-
ref
|
|
16
|
-
"data-testid": "input-box"
|
|
15
|
+
ref
|
|
17
16
|
}
|
|
18
17
|
), /* @__PURE__ */ React__default.createElement(
|
|
19
18
|
"label",
|
|
@@ -2,8 +2,8 @@ import { tag } from '@tecsinapse/cortex-core';
|
|
|
2
2
|
import React__default, { forwardRef } from 'react';
|
|
3
3
|
|
|
4
4
|
const Tag = forwardRef((props, ref) => {
|
|
5
|
-
const { label, variants } = props;
|
|
6
|
-
return /* @__PURE__ */ React__default.createElement("div", { className: tag(variants), ref }, /* @__PURE__ */ React__default.createElement("p", null, label));
|
|
5
|
+
const { label, variants, children } = props;
|
|
6
|
+
return /* @__PURE__ */ React__default.createElement("div", { className: tag(variants), ref }, label ? /* @__PURE__ */ React__default.createElement("p", null, label) : /* @__PURE__ */ React__default.createElement(React__default.Fragment, null), children);
|
|
7
7
|
});
|
|
8
8
|
|
|
9
9
|
export { Tag };
|
|
@@ -2,7 +2,8 @@ import { TagVariants } from '@tecsinapse/cortex-core';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
interface TagProps {
|
|
4
4
|
variants?: TagVariants;
|
|
5
|
-
label
|
|
5
|
+
label?: string;
|
|
6
|
+
children?: React.ReactNode;
|
|
6
7
|
}
|
|
7
8
|
export declare const Tag: React.ForwardRefExoticComponent<Omit<TagProps & React.HTMLProps<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
8
9
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tecsinapse/cortex-react",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0-beta.1",
|
|
4
4
|
"description": "React components based in @tecsinapse/cortex-core",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/esm/index.js",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"dist"
|
|
11
11
|
],
|
|
12
12
|
"scripts": {
|
|
13
|
-
"dev": "rollup --config --watch",
|
|
13
|
+
"dev:es": "rollup --config --watch",
|
|
14
14
|
"dev:dts": "tsc --project tsconfig.build.json --watch",
|
|
15
15
|
"build:es": "rollup --config",
|
|
16
16
|
"build:dts": "tsc --project tsconfig.build.json",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@floating-ui/react": "^0.26.18",
|
|
22
22
|
"@internationalized/date": "*",
|
|
23
|
-
"@tecsinapse/cortex-core": "0.3.1",
|
|
23
|
+
"@tecsinapse/cortex-core": "0.3.2-beta.1",
|
|
24
24
|
"clsx": "*",
|
|
25
25
|
"react-aria": "^3.33.1",
|
|
26
26
|
"react-icons": "^5.2.1",
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"react-dom": ">=18.0.0",
|
|
46
46
|
"tailwind": ">=3.3.0"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "2c9d52aa18419f0b72cf0f75b97697a78ced3b97"
|
|
49
49
|
}
|