@solibo/solibo-ui 0.5.5 → 0.5.7

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,9 +1,9 @@
1
- import { jsxs as s, jsx as u } from "react/jsx-runtime";
2
- import { t as d } from "../../classix-DG18itHa.js";
3
- import { Icon as p } from "../icon/index.js";
4
- import '../../assets/index31.css';const _ = "_button_l8m83_1", c = "_danger_l8m83_22", f = "_minimal_l8m83_35", b = "_primary_l8m83_42", t = {
5
- button: _,
6
- danger: c,
1
+ import { jsxs as l, jsx as u } from "react/jsx-runtime";
2
+ import { t as c } from "../../classix-DG18itHa.js";
3
+ import { Icon as d } from "../icon/index.js";
4
+ import '../../assets/index31.css';const p = "_button_1scj6_1", _ = "_danger_1scj6_22", f = "_minimal_1scj6_35", b = "_primary_1scj6_42", t = {
5
+ button: p,
6
+ danger: _,
7
7
  minimal: f,
8
8
  primary: b
9
9
  }, g = {
@@ -12,22 +12,22 @@ import '../../assets/index31.css';const _ = "_button_l8m83_1", c = "_danger_l8m8
12
12
  minimal: t.minimal,
13
13
  primary: t.primary
14
14
  };
15
- function j({
16
- children: a,
15
+ function x({
16
+ children: m,
17
17
  className: r,
18
18
  disabled: i = !1,
19
- icon: m,
19
+ icon: a,
20
20
  onClick: o,
21
21
  ref: e,
22
22
  variant: n = "default",
23
- ...l
23
+ ...s
24
24
  }) {
25
- return /* @__PURE__ */ s("button", { className: d(t.button, g[n], r), disabled: i, onClick: o, ref: e, type: "button", ...l, "data-component": "button", children: [
26
- m && /* @__PURE__ */ u(p, { gap: "right", name: m, size: "small", variant: n === "minimal" || n === "default" ? "default" : "white" }),
27
- a
25
+ return /* @__PURE__ */ l("button", { className: c(t.button, g[n], r), disabled: i, onClick: o, ref: e, type: "button", ...s, "data-component": "button", children: [
26
+ a && /* @__PURE__ */ u(d, { gap: "right", name: a, size: "small", variant: n === "minimal" || n === "default" ? "default" : "white" }),
27
+ m
28
28
  ] });
29
29
  }
30
30
  export {
31
- j as Button
31
+ x as Button
32
32
  };
33
33
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index10.css');const e=require("react/jsx-runtime"),r=require("../icon/index.cjs"),d="_file_tncrs_1",l={file:d,delete:"_delete_tncrs_52"},m=({deleteAccessibleLabel:c,name:s,onClick:t,onDelete:a,ref:o,url:i})=>e.jsxs("div",{className:l.file,ref:o,"data-component":"file",children:[e.jsxs("a",{href:i,onClick:n=>{n.stopPropagation(),(t||!i)&&(n.preventDefault(),t==null||t())},title:s,children:[e.jsx(r.Icon,{name:"document",size:"small",variant:"primary"}),s]}),a&&e.jsx("a",{"aria-label":c??`Delete ${s}`,className:l.delete,onClick:()=>a(),tabIndex:0,children:e.jsx(r.Icon,{name:"trash",size:"small",variant:"danger"})})]});exports.File=m;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index10.css');const e=require("react/jsx-runtime"),n=require("../icon/index.cjs"),d="_file_1ik2m_1",r={file:d,delete:"_delete_1ik2m_52"},m=({deleteAccessibleLabel:o,name:s,onClick:t,onDelete:i,ref:c,url:a})=>e.jsxs("div",{className:r.file,ref:c,"data-component":"file",children:[e.jsxs("a",{href:a,onClick:l=>{l.stopPropagation(),(t||!a)&&(l.preventDefault(),t==null||t())},title:s,children:[e.jsx(n.Icon,{name:"document",size:"small",variant:"primary"}),s]}),i&&e.jsx("a",{"aria-label":o??`Delete ${s}`,className:r.delete,onClick:()=>i(),tabIndex:0,children:e.jsx(n.Icon,{name:"trash",size:"small",variant:"danger"})})]});exports.File=m;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,23 +1,23 @@
1
- import { jsxs as i, jsx as a } from "react/jsx-runtime";
2
- import { Icon as n } from "../icon/index.js";
3
- import '../../assets/index10.css';const c = "_file_tncrs_1", d = {
4
- file: c,
5
- delete: "_delete_tncrs_52"
1
+ import { jsxs as s, jsx as t } from "react/jsx-runtime";
2
+ import { Icon as m } from "../icon/index.js";
3
+ import '../../assets/index10.css';const f = "_file_1ik2m_1", n = {
4
+ file: f,
5
+ delete: "_delete_1ik2m_52"
6
6
  }, _ = ({
7
- deleteAccessibleLabel: m,
8
- name: t,
7
+ deleteAccessibleLabel: d,
8
+ name: a,
9
9
  onClick: e,
10
- onDelete: r,
10
+ onDelete: i,
11
11
  ref: o,
12
- url: s
13
- }) => /* @__PURE__ */ i("div", { className: d.file, ref: o, "data-component": "file", children: [
14
- /* @__PURE__ */ i("a", { href: s, onClick: (l) => {
15
- l.stopPropagation(), (e || !s) && (l.preventDefault(), e == null || e());
16
- }, title: t, children: [
17
- /* @__PURE__ */ a(n, { name: "document", size: "small", variant: "primary" }),
18
- t
12
+ url: l
13
+ }) => /* @__PURE__ */ s("div", { className: n.file, ref: o, "data-component": "file", children: [
14
+ /* @__PURE__ */ s("a", { href: l, onClick: (r) => {
15
+ r.stopPropagation(), (e || !l) && (r.preventDefault(), e == null || e());
16
+ }, title: a, children: [
17
+ /* @__PURE__ */ t(m, { name: "document", size: "small", variant: "primary" }),
18
+ a
19
19
  ] }),
20
- r && /* @__PURE__ */ a("a", { "aria-label": m ?? `Delete ${t}`, className: d.delete, onClick: () => r(), tabIndex: 0, children: /* @__PURE__ */ a(n, { name: "trash", size: "small", variant: "danger" }) })
20
+ i && /* @__PURE__ */ t("a", { "aria-label": d ?? `Delete ${a}`, className: n.delete, onClick: () => i(), tabIndex: 0, children: /* @__PURE__ */ t(m, { name: "trash", size: "small", variant: "danger" }) })
21
21
  ] });
22
22
  export {
23
23
  _ as File
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index35.css');const c=require("react/jsx-runtime"),l=require("../../classix-5H4IWnMA.cjs"),n=require("../../icons-vqS7W0cD.cjs"),_="_icon_1034p_1",m="_small_1034p_9",p="_medium_1034p_14",d="_large_1034p_19",u="_danger_1034p_24",g="_primary_1034p_32",y="_white_1034p_36",e={icon:_,small:m,medium:p,large:d,danger:u,default:"_default_1034p_28",primary:g,white:y,"gap-right":"_gap-right_1034p_40","gap-left":"_gap-left_1034p_44"},f={large:e.large,medium:e.medium,small:e.small},h={danger:e.danger,default:e.default,primary:e.primary,white:e.white},w=({fill:a,gap:t="none",name:s,size:i="medium",variant:r="default"})=>{const o={maskImage:n.iconSVG(s,a??!1)};return c.jsx("span",{"aria-hidden":"true",className:l.t(t!=="none"&&e[`gap-${t}`],f[i],e.icon,h[r]),style:o,"data-component":"icon"})},I=()=>Object.keys(n.iconPaths);exports.Icon=w;exports.Icons=I;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index35.css');const r=require("react/jsx-runtime"),o=require("../../classix-5H4IWnMA.cjs"),n=require("../../icons-vqS7W0cD.cjs"),l="_icon_1uucz_1",_="_small_1uucz_9",m="_medium_1uucz_14",d="_large_1uucz_19",g="_danger_1uucz_24",p="_primary_1uucz_32",y="_white_1uucz_36",e={icon:l,small:_,medium:m,large:d,danger:g,default:"_default_1uucz_28",primary:p,white:y,"gap-right":"_gap-right_1uucz_40","gap-left":"_gap-left_1uucz_44"},z={large:e.large,medium:e.medium,small:e.small},f={danger:e.danger,default:e.default,primary:e.primary,white:e.white},h=({fill:a,gap:t="none",name:c,size:s="medium",variant:u="default"})=>{const i={maskImage:n.iconSVG(c,a??!1)};return r.jsx("span",{"aria-hidden":"true",className:o.t(t!=="none"&&e[`gap-${t}`],z[s],e.icon,f[u]),style:i,"data-component":"icon"})},w=()=>Object.keys(n.iconPaths);exports.Icon=h;exports.Icons=w;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,40 +1,40 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import { t as m } from "../../classix-DG18itHa.js";
3
- import { i as _, a as l } from "../../icons-DkF2p6NO.js";
4
- import '../../assets/index35.css';const c = "_icon_1034p_1", p = "_small_1034p_9", d = "_medium_1034p_14", g = "_large_1034p_19", u = "_danger_1034p_24", f = "_primary_1034p_32", h = "_white_1034p_36", a = {
5
- icon: c,
6
- small: p,
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import { t as o } from "../../classix-DG18itHa.js";
3
+ import { i as u, a as m } from "../../icons-DkF2p6NO.js";
4
+ import '../../assets/index35.css';const _ = "_icon_1uucz_1", l = "_small_1uucz_9", d = "_medium_1uucz_14", g = "_large_1uucz_19", p = "_danger_1uucz_24", f = "_primary_1uucz_32", z = "_white_1uucz_36", a = {
5
+ icon: _,
6
+ small: l,
7
7
  medium: d,
8
8
  large: g,
9
- danger: u,
10
- default: "_default_1034p_28",
9
+ danger: p,
10
+ default: "_default_1uucz_28",
11
11
  primary: f,
12
- white: h,
13
- "gap-right": "_gap-right_1034p_40",
14
- "gap-left": "_gap-left_1034p_44"
15
- }, y = {
12
+ white: z,
13
+ "gap-right": "_gap-right_1uucz_40",
14
+ "gap-left": "_gap-left_1uucz_44"
15
+ }, h = {
16
16
  large: a.large,
17
17
  medium: a.medium,
18
18
  small: a.small
19
- }, w = {
19
+ }, y = {
20
20
  danger: a.danger,
21
21
  default: a.default,
22
22
  primary: a.primary,
23
23
  white: a.white
24
- }, x = ({
24
+ }, k = ({
25
25
  fill: t,
26
26
  gap: e = "none",
27
27
  name: n,
28
- size: r = "medium",
29
- variant: s = "default"
28
+ size: c = "medium",
29
+ variant: r = "default"
30
30
  }) => {
31
- const i = {
32
- maskImage: _(n, t ?? !1)
31
+ const s = {
32
+ maskImage: u(n, t ?? !1)
33
33
  };
34
- return /* @__PURE__ */ o("span", { "aria-hidden": "true", className: m(e !== "none" && a[`gap-${e}`], y[r], a.icon, w[s]), style: i, "data-component": "icon" });
35
- }, S = () => Object.keys(l);
34
+ return /* @__PURE__ */ i("span", { "aria-hidden": "true", className: o(e !== "none" && a[`gap-${e}`], h[c], a.icon, y[r]), style: s, "data-component": "icon" });
35
+ }, x = () => Object.keys(m);
36
36
  export {
37
- x as Icon,
38
- S as Icons
37
+ k as Icon,
38
+ x as Icons
39
39
  };
40
40
  //# sourceMappingURL=index.js.map
package/dist/tokens.json CHANGED
@@ -256,7 +256,7 @@
256
256
  },
257
257
  "com.solibo": {
258
258
  "packageName": "@solibo/solibo-ui",
259
- "packageVersion": "0.5.5"
259
+ "packageVersion": "0.5.7"
260
260
  }
261
261
  },
262
262
  "$name": "Solibo UI Tokens",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solibo/solibo-ui",
3
- "version": "0.5.5",
3
+ "version": "0.5.7",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "pnpm run tokens:build && vite build --watch",