bianic-ui 1.0.0-beta.11 → 1.0.0-beta.12
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/index.js
CHANGED
|
@@ -3204,7 +3204,7 @@ var colorUnion = [
|
|
|
3204
3204
|
var sizeUnion = ['md', 'sm', 'tn'];
|
|
3205
3205
|
var variantUnion = ['label', 'icon', 'closeable'];
|
|
3206
3206
|
function TagLabel(_a) {
|
|
3207
|
-
var text = _a.text, _b = _a.closeHandler, closeHandler = _b === void 0 ? undefined : _b, _c = _a.size, size = _c === void 0 ? 'sm' : _c, _d = _a.variant, variant = _d === void 0 ? 'label' : _d, open = _a.open, color = _a.color, leftIcon = _a.leftIcon, rightIcon = _a.rightIcon;
|
|
3207
|
+
var text = _a.text, _b = _a.closeHandler, closeHandler = _b === void 0 ? undefined : _b, _c = _a.size, size = _c === void 0 ? 'sm' : _c, _d = _a.variant, variant = _d === void 0 ? 'label' : _d, open = _a.open, color = _a.color, leftIcon = _a.leftIcon, rightIcon = _a.rightIcon, props = __rest(_a, ["text", "closeHandler", "size", "variant", "open", "color", "leftIcon", "rightIcon"]);
|
|
3208
3208
|
var validatedColor = validUnion(color, colorUnion);
|
|
3209
3209
|
var validatedSize = validUnion(size, sizeUnion);
|
|
3210
3210
|
var validatedVariant = validUnion(variant, variantUnion);
|
|
@@ -3281,7 +3281,7 @@ function TagLabel(_a) {
|
|
|
3281
3281
|
}
|
|
3282
3282
|
if (!open)
|
|
3283
3283
|
return null;
|
|
3284
|
-
return (React.createElement("div", { className: "flex items-center font-segoe font-normal justify-center ".concat(configradius, " ").concat(configtext, " ").concat(configbg, " ").concat(configpadding) },
|
|
3284
|
+
return (React.createElement("div", __assign({ className: "flex items-center font-segoe font-normal justify-center ".concat(configradius, " ").concat(configtext, " ").concat(configbg, " ").concat(configpadding) }, props),
|
|
3285
3285
|
validatedVariant === 'icon' ? (React.createElement("div", { className: "flex justify-center items-center ".concat(IconContainer[validatedSize]) }, childrenElement(leftIcon) ||
|
|
3286
3286
|
renderIcon(configX))) : (React.createElement(React.Fragment, null,
|
|
3287
3287
|
React.createElement("span", null, childrenElement(leftIcon)),
|
|
@@ -9,7 +9,7 @@ interface TagLabelProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
9
9
|
leftIcon?: React.ReactNode;
|
|
10
10
|
rightIcon?: React.ReactNode;
|
|
11
11
|
}
|
|
12
|
-
declare function TagLabel({ text, closeHandler, size, variant, open, color, leftIcon, rightIcon, }: TagLabelProps): React.JSX.Element | null;
|
|
12
|
+
declare function TagLabel({ text, closeHandler, size, variant, open, color, leftIcon, rightIcon, ...props }: TagLabelProps): React.JSX.Element | null;
|
|
13
13
|
declare namespace TagLabel {
|
|
14
14
|
var defaultProps: {
|
|
15
15
|
variant: string;
|
package/dist/esm/index.js
CHANGED
|
@@ -3202,7 +3202,7 @@ var colorUnion = [
|
|
|
3202
3202
|
var sizeUnion = ['md', 'sm', 'tn'];
|
|
3203
3203
|
var variantUnion = ['label', 'icon', 'closeable'];
|
|
3204
3204
|
function TagLabel(_a) {
|
|
3205
|
-
var text = _a.text, _b = _a.closeHandler, closeHandler = _b === void 0 ? undefined : _b, _c = _a.size, size = _c === void 0 ? 'sm' : _c, _d = _a.variant, variant = _d === void 0 ? 'label' : _d, open = _a.open, color = _a.color, leftIcon = _a.leftIcon, rightIcon = _a.rightIcon;
|
|
3205
|
+
var text = _a.text, _b = _a.closeHandler, closeHandler = _b === void 0 ? undefined : _b, _c = _a.size, size = _c === void 0 ? 'sm' : _c, _d = _a.variant, variant = _d === void 0 ? 'label' : _d, open = _a.open, color = _a.color, leftIcon = _a.leftIcon, rightIcon = _a.rightIcon, props = __rest(_a, ["text", "closeHandler", "size", "variant", "open", "color", "leftIcon", "rightIcon"]);
|
|
3206
3206
|
var validatedColor = validUnion(color, colorUnion);
|
|
3207
3207
|
var validatedSize = validUnion(size, sizeUnion);
|
|
3208
3208
|
var validatedVariant = validUnion(variant, variantUnion);
|
|
@@ -3279,7 +3279,7 @@ function TagLabel(_a) {
|
|
|
3279
3279
|
}
|
|
3280
3280
|
if (!open)
|
|
3281
3281
|
return null;
|
|
3282
|
-
return (React.createElement("div", { className: "flex items-center font-segoe font-normal justify-center ".concat(configradius, " ").concat(configtext, " ").concat(configbg, " ").concat(configpadding) },
|
|
3282
|
+
return (React.createElement("div", __assign({ className: "flex items-center font-segoe font-normal justify-center ".concat(configradius, " ").concat(configtext, " ").concat(configbg, " ").concat(configpadding) }, props),
|
|
3283
3283
|
validatedVariant === 'icon' ? (React.createElement("div", { className: "flex justify-center items-center ".concat(IconContainer[validatedSize]) }, childrenElement(leftIcon) ||
|
|
3284
3284
|
renderIcon(configX))) : (React.createElement(React.Fragment, null,
|
|
3285
3285
|
React.createElement("span", null, childrenElement(leftIcon)),
|
|
@@ -9,7 +9,7 @@ interface TagLabelProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
9
9
|
leftIcon?: React.ReactNode;
|
|
10
10
|
rightIcon?: React.ReactNode;
|
|
11
11
|
}
|
|
12
|
-
declare function TagLabel({ text, closeHandler, size, variant, open, color, leftIcon, rightIcon, }: TagLabelProps): React.JSX.Element | null;
|
|
12
|
+
declare function TagLabel({ text, closeHandler, size, variant, open, color, leftIcon, rightIcon, ...props }: TagLabelProps): React.JSX.Element | null;
|
|
13
13
|
declare namespace TagLabel {
|
|
14
14
|
var defaultProps: {
|
|
15
15
|
variant: string;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"@biaenergi:registry": "https://gitlab.com/api/v4/projects/50905269/packages/npm/"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.0.0-beta.
|
|
6
|
+
"version": "1.0.0-beta.12",
|
|
7
7
|
"description": "Design Language System develop by BIAENERGI",
|
|
8
8
|
"scripts": {
|
|
9
9
|
"rollup": "rollup -c",
|