@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.
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index13.css');const l=require("react/jsx-runtime"),c=require("../../classix-5H4IWnMA.cjs"),b=require("react"),m=require("../../icons-Dv_p0bUF.cjs"),v="_nav_1h1i0_3",p="_label_1h1i0_9",g="_item_1h1i0_17",f="_actions_1h1i0_36",N="_highlighted_1h1i0_48",x="_horizontal_1h1i0_52",j="_sidebar_1h1i0_62",w="_tabs_1h1i0_101",q="_pills_1h1i0_121",t={nav:v,label:p,item:g,actions:f,highlighted:N,horizontal:x,sidebar:j,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:c.t(a,t.label),...e,"data-component":"navlabel"}),S=({actions:a,children:e,className:o,highlighted:n=!1,...s})=>l.jsxs("div",{className:c.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",...h})=>{const[d,r]=b.useState(!1),_={"--icon-svg":m.iconSVG("CaretDown")};return l.jsx("nav",{className:c.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 u=i.relatedTarget;i.currentTarget.contains(u)||r(!1)},onClick:()=>{s!=="pills"||window.innerWidth>960||r(i=>!i)},style:_,...h,"data-component":"nav",children:e})};exports.Nav=C;exports.NavItem=S;exports.NavLabel=z;
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 p } from "react/jsx-runtime";
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 b } from "react";
4
- import { i as f } from "../../icons-dUP7sKyt.js";
5
- import '../../assets/index13.css';const v = "_nav_1h1i0_3", u = "_label_1h1i0_9", g = "_item_1h1i0_17", N = "_actions_1h1i0_36", w = "_highlighted_1h1i0_48", x = "_horizontal_1h1i0_52", z = "_sidebar_1h1i0_62", C = "_tabs_1h1i0_101", j = "_pills_1h1i0_121", t = {
6
- nav: v,
7
- label: u,
8
- item: g,
9
- actions: N,
10
- highlighted: w,
11
- horizontal: x,
12
- sidebar: z,
13
- tabs: C,
14
- pills: j
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
- ...i
23
- }) => /* @__PURE__ */ l("span", { className: r(a, t.label), ...i, "data-component": "navlabel" }), B = ({
22
+ ...n
23
+ }) => /* @__PURE__ */ l("span", { className: r(a, t.label), ...n, "data-component": "navlabel" }), B = ({
24
24
  actions: a,
25
- children: i,
25
+ children: n,
26
26
  className: o,
27
- highlighted: s = !1,
28
- ...n
29
- }) => /* @__PURE__ */ p("div", { className: r(t.item, s && t.highlighted, o), "data-nav-item": !0, ...n, "data-component": "navitem", children: [
30
- i,
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: i,
34
+ children: n,
35
35
  className: o,
36
- horizontal: s = !1,
37
- variant: n = "default",
38
- ...h
36
+ horizontal: e = !1,
37
+ variant: s = "default",
38
+ ...g
39
39
  }) => {
40
- const [d, c] = b(!1), _ = {
41
- "--icon-svg": f("CaretDown")
40
+ const [d, c] = p(!1), _ = {
41
+ "--icon-svg": b("CaretDown")
42
42
  };
43
- return /* @__PURE__ */ l("nav", { className: r(o, s && t.horizontal, t.nav, y[n]), "data-animation": a, "data-open": d ? "true" : "false", "data-orientation": s ? "horizontal" : "vertical", onBlurCapture: (e) => {
44
- if (n !== "pills" || window.innerWidth > 960) return;
45
- const m = e.relatedTarget;
46
- e.currentTarget.contains(m) || c(!1);
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
- n !== "pills" || window.innerWidth > 960 || c((e) => !e);
49
- }, style: _, ...h, "data-component": "nav", children: i });
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
@@ -365,7 +365,7 @@
365
365
  },
366
366
  "com.solibo": {
367
367
  "packageName": "@solibo/solibo-ui",
368
- "packageVersion": "1.2.2"
368
+ "packageVersion": "1.2.4"
369
369
  }
370
370
  },
371
371
  "$name": "Solibo UI Tokens",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solibo/solibo-ui",
3
- "version": "1.2.2",
3
+ "version": "1.2.4",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "pnpm run tokens:build && vite build --watch",