@solibo/solibo-ui 1.2.2 → 1.2.4
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/assets/index13.css +1 -1
- package/dist/assets/index31.css +1 -1
- package/dist/assets/index40.css +1 -1
- package/dist/assets/index42.css +1 -1
- package/dist/components/button/index.cjs +1 -1
- package/dist/components/button/index.js +24 -24
- package/dist/components/dropdown/index.cjs +1 -1
- package/dist/components/dropdown/index.cjs.map +1 -1
- package/dist/components/dropdown/index.js +71 -71
- package/dist/components/dropdown/index.js.map +1 -1
- package/dist/components/editor/index.cjs +21 -21
- package/dist/components/editor/index.cjs.map +1 -1
- package/dist/components/editor/index.js +1510 -1496
- package/dist/components/editor/index.js.map +1 -1
- package/dist/components/nav/index.cjs +1 -1
- package/dist/components/nav/index.js +32 -32
- package/dist/tokens.json +1 -1
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index13.css');const l=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index13.css');const l=require("react/jsx-runtime"),r=require("../../classix-5H4IWnMA.cjs"),u=require("react"),b=require("../../icons-Dv_p0bUF.cjs"),m="_nav_xrgjg_3",v="_label_xrgjg_9",p="_item_xrgjg_17",x="_actions_xrgjg_36",j="_highlighted_xrgjg_60",f="_horizontal_xrgjg_64",N="_sidebar_xrgjg_74",w="_tabs_xrgjg_117",q="_pills_xrgjg_137",t={nav:m,label:v,item:p,actions:x,highlighted:j,horizontal:f,sidebar:N,tabs:w,pills:q},y={default:t.default,pills:t.pills,sidebar:t.sidebar,tabs:t.tabs},z=({className:a,...e})=>l.jsx("span",{className:r.t(a,t.label),...e,"data-component":"navlabel"}),S=({actions:a,children:e,className:o,highlighted:n=!1,...s})=>l.jsxs("div",{className:r.t(t.item,n&&t.highlighted,o),"data-nav-item":!0,...s,"data-component":"navitem",children:[e,a&&l.jsx("span",{className:t.actions,children:a})]}),C=({animation:a,children:e,className:o,horizontal:n=!1,variant:s="default",...g})=>{const[d,c]=u.useState(!1),_={"--icon-svg":b.iconSVG("CaretDown")};return l.jsx("nav",{className:r.t(o,n&&t.horizontal,t.nav,y[s]),"data-animation":a,"data-open":d?"true":"false","data-orientation":n?"horizontal":"vertical",onBlurCapture:i=>{if(s!=="pills"||window.innerWidth>960)return;const h=i.relatedTarget;i.currentTarget.contains(h)||c(!1)},onClick:()=>{s!=="pills"||window.innerWidth>960||c(i=>!i)},style:_,...g,"data-component":"nav",children:e})};exports.Nav=C;exports.NavItem=S;exports.NavLabel=z;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { jsx as l, jsxs as
|
|
1
|
+
import { jsx as l, jsxs as h } from "react/jsx-runtime";
|
|
2
2
|
import { t as r } from "../../classix-DG18itHa.js";
|
|
3
|
-
import { useState as
|
|
4
|
-
import { i as
|
|
5
|
-
import '../../assets/index13.css';const
|
|
6
|
-
nav:
|
|
7
|
-
label:
|
|
8
|
-
item:
|
|
9
|
-
actions:
|
|
10
|
-
highlighted:
|
|
11
|
-
horizontal:
|
|
12
|
-
sidebar:
|
|
13
|
-
tabs:
|
|
14
|
-
pills:
|
|
3
|
+
import { useState as p } from "react";
|
|
4
|
+
import { i as b } from "../../icons-dUP7sKyt.js";
|
|
5
|
+
import '../../assets/index13.css';const f = "_nav_xrgjg_3", v = "_label_xrgjg_9", x = "_item_xrgjg_17", u = "_actions_xrgjg_36", j = "_highlighted_xrgjg_60", N = "_horizontal_xrgjg_64", w = "_sidebar_xrgjg_74", z = "_tabs_xrgjg_117", C = "_pills_xrgjg_137", t = {
|
|
6
|
+
nav: f,
|
|
7
|
+
label: v,
|
|
8
|
+
item: x,
|
|
9
|
+
actions: u,
|
|
10
|
+
highlighted: j,
|
|
11
|
+
horizontal: N,
|
|
12
|
+
sidebar: w,
|
|
13
|
+
tabs: z,
|
|
14
|
+
pills: C
|
|
15
15
|
}, y = {
|
|
16
16
|
default: t.default,
|
|
17
17
|
pills: t.pills,
|
|
@@ -19,34 +19,34 @@ import '../../assets/index13.css';const v = "_nav_1h1i0_3", u = "_label_1h1i0_9"
|
|
|
19
19
|
tabs: t.tabs
|
|
20
20
|
}, k = ({
|
|
21
21
|
className: a,
|
|
22
|
-
...
|
|
23
|
-
}) => /* @__PURE__ */ l("span", { className: r(a, t.label), ...
|
|
22
|
+
...n
|
|
23
|
+
}) => /* @__PURE__ */ l("span", { className: r(a, t.label), ...n, "data-component": "navlabel" }), B = ({
|
|
24
24
|
actions: a,
|
|
25
|
-
children:
|
|
25
|
+
children: n,
|
|
26
26
|
className: o,
|
|
27
|
-
highlighted:
|
|
28
|
-
...
|
|
29
|
-
}) => /* @__PURE__ */
|
|
30
|
-
|
|
27
|
+
highlighted: e = !1,
|
|
28
|
+
...s
|
|
29
|
+
}) => /* @__PURE__ */ h("div", { className: r(t.item, e && t.highlighted, o), "data-nav-item": !0, ...s, "data-component": "navitem", children: [
|
|
30
|
+
n,
|
|
31
31
|
a && /* @__PURE__ */ l("span", { className: t.actions, children: a })
|
|
32
32
|
] }), D = ({
|
|
33
33
|
animation: a,
|
|
34
|
-
children:
|
|
34
|
+
children: n,
|
|
35
35
|
className: o,
|
|
36
|
-
horizontal:
|
|
37
|
-
variant:
|
|
38
|
-
...
|
|
36
|
+
horizontal: e = !1,
|
|
37
|
+
variant: s = "default",
|
|
38
|
+
...g
|
|
39
39
|
}) => {
|
|
40
|
-
const [d, c] =
|
|
41
|
-
"--icon-svg":
|
|
40
|
+
const [d, c] = p(!1), _ = {
|
|
41
|
+
"--icon-svg": b("CaretDown")
|
|
42
42
|
};
|
|
43
|
-
return /* @__PURE__ */ l("nav", { className: r(o,
|
|
44
|
-
if (
|
|
45
|
-
const m =
|
|
46
|
-
|
|
43
|
+
return /* @__PURE__ */ l("nav", { className: r(o, e && t.horizontal, t.nav, y[s]), "data-animation": a, "data-open": d ? "true" : "false", "data-orientation": e ? "horizontal" : "vertical", onBlurCapture: (i) => {
|
|
44
|
+
if (s !== "pills" || window.innerWidth > 960) return;
|
|
45
|
+
const m = i.relatedTarget;
|
|
46
|
+
i.currentTarget.contains(m) || c(!1);
|
|
47
47
|
}, onClick: () => {
|
|
48
|
-
|
|
49
|
-
}, style: _, ...
|
|
48
|
+
s !== "pills" || window.innerWidth > 960 || c((i) => !i);
|
|
49
|
+
}, style: _, ...g, "data-component": "nav", children: n });
|
|
50
50
|
};
|
|
51
51
|
export {
|
|
52
52
|
D as Nav,
|
package/dist/tokens.json
CHANGED