@solibo/solibo-ui 2.2.1 → 2.2.2
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,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index28.css');const _=require("react/jsx-runtime"),u=require("classix"),s=require("../icon/index.cjs"),t="_badge_1b5u6_1",i="_small_1b5u6_20",g="_highlight_1b5u6_25",b="_info_1b5u6_31",m="_primary_1b5u6_36",h="_success_1b5u6_41",p="_warning_1b5u6_46",o={badge:t,small:i,highlight:g,info:b,primary:m,success:h,warning:p,"color-1":"_color-1_1b5u6_51","color-2":"_color-2_1b5u6_56","color-yellow":"_color-yellow_1b5u6_57","color-3":"_color-3_1b5u6_62","color-peach":"_color-peach_1b5u6_63","color-4":"_color-4_1b5u6_68","color-magenta":"_color-magenta_1b5u6_69","color-5":"_color-5_1b5u6_74","color-purple":"_color-purple_1b5u6_75","color-6":"_color-6_1b5u6_80","color-blue":"_color-blue_1b5u6_81","color-7":"_color-7_1b5u6_86","color-green":"_color-green_1b5u6_87"},d={default:o.default,highlight:o.highlight,info:o.info,primary:o.primary,success:o.success,warning:o.warning},f=({color:
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index28.css');const _=require("react/jsx-runtime"),u=require("classix"),s=require("../icon/index.cjs"),t="_badge_1b5u6_1",i="_small_1b5u6_20",g="_highlight_1b5u6_25",b="_info_1b5u6_31",m="_primary_1b5u6_36",h="_success_1b5u6_41",p="_warning_1b5u6_46",o={badge:t,small:i,highlight:g,info:b,primary:m,success:h,warning:p,"color-1":"_color-1_1b5u6_51","color-2":"_color-2_1b5u6_56","color-yellow":"_color-yellow_1b5u6_57","color-3":"_color-3_1b5u6_62","color-peach":"_color-peach_1b5u6_63","color-4":"_color-4_1b5u6_68","color-magenta":"_color-magenta_1b5u6_69","color-5":"_color-5_1b5u6_74","color-purple":"_color-purple_1b5u6_75","color-6":"_color-6_1b5u6_80","color-blue":"_color-blue_1b5u6_81","color-7":"_color-7_1b5u6_86","color-green":"_color-green_1b5u6_87"},d={default:o.default,highlight:o.highlight,info:o.info,primary:o.primary,success:o.success,warning:o.warning},f=({color:c,children:r,icon:l,position:e="left",size:n="large",variant:a="default"})=>r===0||r==null?null:_.jsxs("span",{className:u(o.badge,d[a],c&&o[`color-${c}`],o[n]),"data-component":"badge",children:[l&&e=="left"&&_.jsx(s.Icon,{name:l,size:"small"}),_.jsx("span",{children:r}),l&&e=="right"&&_.jsx(s.Icon,{name:l,size:"small"})]});exports.Badge=f;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as u, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import t from "classix";
|
|
3
|
-
import { Icon as
|
|
4
|
-
import '../../assets/index28.css';const
|
|
5
|
-
badge:
|
|
6
|
-
small:
|
|
7
|
-
highlight:
|
|
3
|
+
import { Icon as s } from "../icon/index.js";
|
|
4
|
+
import '../../assets/index28.css';const b = "_badge_1b5u6_1", g = "_small_1b5u6_20", i = "_highlight_1b5u6_25", m = "_info_1b5u6_31", h = "_primary_1b5u6_36", p = "_success_1b5u6_41", f = "_warning_1b5u6_46", o = {
|
|
5
|
+
badge: b,
|
|
6
|
+
small: g,
|
|
7
|
+
highlight: i,
|
|
8
8
|
info: m,
|
|
9
9
|
primary: h,
|
|
10
10
|
success: p,
|
|
@@ -29,19 +29,19 @@ import '../../assets/index28.css';const i = "_badge_1b5u6_1", b = "_small_1b5u6_
|
|
|
29
29
|
primary: o.primary,
|
|
30
30
|
success: o.success,
|
|
31
31
|
warning: o.warning
|
|
32
|
-
},
|
|
32
|
+
}, j = ({
|
|
33
33
|
color: c,
|
|
34
34
|
children: _,
|
|
35
35
|
icon: l,
|
|
36
|
-
position:
|
|
36
|
+
position: a = "left",
|
|
37
37
|
size: e = "large",
|
|
38
38
|
variant: n = "default"
|
|
39
|
-
}) => _ === 0 || _ == null ? null : /* @__PURE__ */ u("span", { className: t(o.badge, d[n], c && o[`color-${c}`], o[
|
|
40
|
-
l &&
|
|
39
|
+
}) => _ === 0 || _ == null ? null : /* @__PURE__ */ u("span", { className: t(o.badge, d[n], c && o[`color-${c}`], o[e]), "data-component": "badge", children: [
|
|
40
|
+
l && a == "left" && /* @__PURE__ */ r(s, { name: l, size: "small" }),
|
|
41
41
|
/* @__PURE__ */ r("span", { children: _ }),
|
|
42
|
-
l &&
|
|
42
|
+
l && a == "right" && /* @__PURE__ */ r(s, { name: l, size: "small" })
|
|
43
43
|
] });
|
|
44
44
|
export {
|
|
45
|
-
|
|
45
|
+
j as Badge
|
|
46
46
|
};
|
|
47
47
|
//# sourceMappingURL=index.js.map
|
package/dist/tokens.json
CHANGED