@solibo/solibo-ui 0.4.10 → 0.5.3
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/README.md +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/assets/index10.css +1 -1
- package/dist/assets/index11.css +1 -1
- package/dist/assets/index12.css +1 -1
- package/dist/assets/index13.css +1 -1
- package/dist/assets/index14.css +1 -1
- package/dist/assets/index15.css +1 -1
- package/dist/assets/index16.css +1 -1
- package/dist/assets/index17.css +1 -1
- package/dist/assets/index18.css +1 -1
- package/dist/assets/index19.css +1 -1
- package/dist/assets/index2.css +1 -1
- package/dist/assets/index20.css +1 -1
- package/dist/assets/index21.css +1 -1
- package/dist/assets/index22.css +1 -1
- package/dist/assets/index23.css +1 -1
- package/dist/assets/index24.css +1 -1
- package/dist/assets/index25.css +1 -1
- package/dist/assets/index26.css +1 -1
- package/dist/assets/index27.css +1 -1
- package/dist/assets/index29.css +1 -1
- package/dist/assets/index3.css +1 -1
- package/dist/assets/index30.css +1 -1
- package/dist/assets/index31.css +1 -1
- package/dist/assets/index32.css +1 -1
- package/dist/assets/index33.css +1 -1
- package/dist/assets/index34.css +1 -1
- package/dist/assets/index35.css +1 -1
- package/dist/assets/index36.css +1 -1
- package/dist/assets/index37.css +1 -1
- package/dist/assets/index38.css +1 -1
- package/dist/assets/index39.css +1 -1
- package/dist/assets/index4.css +1 -1
- package/dist/assets/index40.css +1 -1
- package/dist/assets/index41.css +1 -1
- package/dist/assets/index42.css +1 -1
- package/dist/assets/index43.css +1 -1
- package/dist/assets/index44.css +1 -1
- package/dist/assets/index5.css +1 -1
- package/dist/assets/index6.css +1 -1
- package/dist/assets/index8.css +1 -1
- package/dist/assets/index9.css +1 -1
- package/dist/assets/styles.css +1 -1
- package/dist/components/_avatar/index.cjs +1 -1
- package/dist/components/_avatar/index.cjs.map +1 -1
- package/dist/components/_avatar/index.js +9 -9
- package/dist/components/_avatar/index.js.map +1 -1
- package/dist/components/_card/index.cjs +1 -1
- package/dist/components/_card/index.js +12 -12
- package/dist/components/_collapsible/index.cjs +1 -1
- package/dist/components/_collapsible/index.js +1 -1
- package/dist/components/_croppable/index.cjs +1 -1
- package/dist/components/_croppable/index.js +175 -175
- package/dist/components/_dropdown/index.cjs +1 -1
- package/dist/components/_dropdown/index.cjs.map +1 -1
- package/dist/components/_dropdown/index.js +87 -87
- package/dist/components/_dropdown/index.js.map +1 -1
- package/dist/components/_dropzone/index.cjs +1 -1
- package/dist/components/_dropzone/index.js +34 -34
- package/dist/components/_editor/index.cjs +16 -16
- package/dist/components/_editor/index.cjs.map +1 -1
- package/dist/components/_editor/index.js +19 -19
- package/dist/components/_editor/index.js.map +1 -1
- package/dist/components/_messages/index.cjs +1 -1
- package/dist/components/_messages/index.cjs.map +1 -1
- package/dist/components/_messages/index.js +15 -15
- package/dist/components/_messages/index.js.map +1 -1
- package/dist/components/_portal/index.cjs +1 -1
- package/dist/components/_portal/index.cjs.map +1 -1
- package/dist/components/_portal/index.js +17 -16
- package/dist/components/_portal/index.js.map +1 -1
- package/dist/components/_sortable/index.cjs +1 -1
- package/dist/components/_sortable/index.cjs.map +1 -1
- package/dist/components/_sortable/index.js +64 -33
- package/dist/components/_sortable/index.js.map +1 -1
- package/dist/components/_widget/index.cjs +1 -1
- package/dist/components/_widget/index.js +3 -3
- package/dist/components/accordion/index.cjs +1 -1
- package/dist/components/accordion/index.cjs.map +1 -1
- package/dist/components/accordion/index.js +16 -10
- package/dist/components/accordion/index.js.map +1 -1
- package/dist/components/app-link/index.cjs +1 -1
- package/dist/components/app-link/index.cjs.map +1 -1
- package/dist/components/app-link/index.js +9 -9
- package/dist/components/app-link/index.js.map +1 -1
- package/dist/components/aside/index.cjs +1 -1
- package/dist/components/aside/index.js +6 -6
- package/dist/components/badge/index.cjs +1 -1
- package/dist/components/badge/index.cjs.map +1 -1
- package/dist/components/badge/index.js +19 -18
- package/dist/components/badge/index.js.map +1 -1
- package/dist/components/banner/index.cjs +1 -1
- package/dist/components/banner/index.js +9 -9
- package/dist/components/branding/index.cjs +1 -1
- package/dist/components/branding/index.js +12 -12
- package/dist/components/button/index.cjs +1 -1
- package/dist/components/button/index.js +12 -12
- package/dist/components/checkbox/index.cjs +1 -1
- package/dist/components/checkbox/index.js +7 -7
- package/dist/components/controls/index.cjs +1 -1
- package/dist/components/controls/index.cjs.map +1 -1
- package/dist/components/controls/index.js +21 -10
- package/dist/components/controls/index.js.map +1 -1
- package/dist/components/dialog/index.cjs +1 -1
- package/dist/components/dialog/index.js +3 -3
- package/dist/components/figure/index.cjs +1 -1
- package/dist/components/figure/index.cjs.map +1 -1
- package/dist/components/figure/index.js +11 -11
- package/dist/components/figure/index.js.map +1 -1
- package/dist/components/file/index.cjs +1 -1
- package/dist/components/file/index.cjs.map +1 -1
- package/dist/components/file/index.js +14 -13
- package/dist/components/file/index.js.map +1 -1
- package/dist/components/footer/index.cjs +1 -1
- package/dist/components/footer/index.js +3 -3
- package/dist/components/form/index.cjs +1 -1
- package/dist/components/form/index.js +11 -11
- package/dist/components/graph/index.cjs +1 -1
- package/dist/components/graph/index.cjs.map +1 -1
- package/dist/components/graph/index.js +31 -31
- package/dist/components/graph/index.js.map +1 -1
- package/dist/components/header/index.cjs +1 -1
- package/dist/components/header/index.js +3 -3
- package/dist/components/icon/index.cjs +1 -1
- package/dist/components/icon/index.cjs.map +1 -1
- package/dist/components/icon/index.js +26 -26
- package/dist/components/icon/index.js.map +1 -1
- package/dist/components/image/index.cjs +1 -1
- package/dist/components/image/index.js +9 -9
- package/dist/components/input/index.cjs +1 -1
- package/dist/components/input/index.cjs.map +1 -1
- package/dist/components/input/index.js +34 -33
- package/dist/components/input/index.js.map +1 -1
- package/dist/components/link/index.cjs +1 -1
- package/dist/components/link/index.js +11 -11
- package/dist/components/list/index.cjs +1 -1
- package/dist/components/list/index.js +7 -7
- package/dist/components/loading/index.cjs +1 -1
- package/dist/components/loading/index.js +13 -13
- package/dist/components/message/index.cjs +1 -1
- package/dist/components/message/index.js +7 -7
- package/dist/components/nav/index.cjs +1 -1
- package/dist/components/nav/index.js +23 -23
- package/dist/components/object/index.cjs +2 -0
- package/dist/components/object/index.cjs.map +1 -0
- package/dist/components/object/index.js +16 -0
- package/dist/components/object/index.js.map +1 -0
- package/dist/components/select/index.cjs +1 -1
- package/dist/components/select/index.js +1 -1
- package/dist/components/table/index.cjs +1 -1
- package/dist/components/table/index.cjs.map +1 -1
- package/dist/components/table/index.js +22 -22
- package/dist/components/table/index.js.map +1 -1
- package/dist/components/textarea/index.cjs +1 -1
- package/dist/components/textarea/index.cjs.map +1 -1
- package/dist/components/textarea/index.js +23 -23
- package/dist/components/textarea/index.js.map +1 -1
- package/dist/components/toast/index.cjs +1 -1
- package/dist/components/toast/index.cjs.map +1 -1
- package/dist/components/toast/index.js +23 -24
- package/dist/components/toast/index.js.map +1 -1
- package/dist/components/toggle/index.cjs +1 -1
- package/dist/components/toggle/index.js +1 -1
- package/dist/components/toolbar/index.cjs +1 -1
- package/dist/components/toolbar/index.js +9 -9
- package/dist/index-CiEbbnD6.js +42 -0
- package/dist/index-CiEbbnD6.js.map +1 -0
- package/dist/index-ClrKYsAQ.cjs +2 -0
- package/dist/index-ClrKYsAQ.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +28 -22
- package/dist/index.js +33 -33
- package/dist/styles.module-BOTEBJ0C.js +9 -0
- package/dist/styles.module-BOTEBJ0C.js.map +1 -0
- package/dist/styles.module-BPvMQa_x.cjs +2 -0
- package/dist/styles.module-BPvMQa_x.cjs.map +1 -0
- package/dist/tokens.css +44 -12
- package/dist/tokens.json +541 -68
- package/package.json +1 -1
- package/dist/components/layout/index.cjs +0 -2
- package/dist/components/layout/index.cjs.map +0 -1
- package/dist/components/layout/index.js +0 -18
- package/dist/components/layout/index.js.map +0 -1
- package/dist/index-BpUboRfJ.cjs +0 -2
- package/dist/index-BpUboRfJ.cjs.map +0 -1
- package/dist/index-ChKhFyp8.js +0 -40
- package/dist/index-ChKhFyp8.js.map +0 -1
- package/dist/styles.module-DZXAP_eP.js +0 -8
- package/dist/styles.module-DZXAP_eP.js.map +0 -1
- package/dist/styles.module-Vt6mmlsz.cjs +0 -2
- package/dist/styles.module-Vt6mmlsz.cjs.map +0 -1
|
@@ -11276,20 +11276,20 @@ class yr extends Pl {
|
|
|
11276
11276
|
constructor(t, r, u, i, s) {
|
|
11277
11277
|
super(s);
|
|
11278
11278
|
xn(this, "__src");
|
|
11279
|
-
xn(this, "
|
|
11279
|
+
xn(this, "__alt");
|
|
11280
11280
|
xn(this, "__width");
|
|
11281
11281
|
xn(this, "__height");
|
|
11282
|
-
this.__src = t, this.
|
|
11282
|
+
this.__src = t, this.__alt = r, this.__width = u, this.__height = i;
|
|
11283
11283
|
}
|
|
11284
11284
|
static getType() {
|
|
11285
11285
|
return "image";
|
|
11286
11286
|
}
|
|
11287
11287
|
static clone(t) {
|
|
11288
|
-
return new yr(t.__src, t.
|
|
11288
|
+
return new yr(t.__src, t.__alt, t.__width, t.__height, t.__key);
|
|
11289
11289
|
}
|
|
11290
11290
|
static importJSON(t) {
|
|
11291
11291
|
return Ji({
|
|
11292
|
-
|
|
11292
|
+
alt: t.alt,
|
|
11293
11293
|
height: t.height,
|
|
11294
11294
|
src: t.src,
|
|
11295
11295
|
width: t.width
|
|
@@ -11297,7 +11297,7 @@ class yr extends Pl {
|
|
|
11297
11297
|
}
|
|
11298
11298
|
exportJSON() {
|
|
11299
11299
|
return {
|
|
11300
|
-
|
|
11300
|
+
alt: this.__alt,
|
|
11301
11301
|
height: this.__height,
|
|
11302
11302
|
src: this.__src,
|
|
11303
11303
|
type: "image",
|
|
@@ -11318,7 +11318,7 @@ class yr extends Pl {
|
|
|
11318
11318
|
const i = r.getAttribute("width"), s = r.getAttribute("height");
|
|
11319
11319
|
return {
|
|
11320
11320
|
node: Ji({
|
|
11321
|
-
|
|
11321
|
+
alt: r.getAttribute("alt") ?? "",
|
|
11322
11322
|
height: s ? Number(s) : void 0,
|
|
11323
11323
|
src: u,
|
|
11324
11324
|
width: i ? Number(i) : void 0
|
|
@@ -11331,7 +11331,7 @@ class yr extends Pl {
|
|
|
11331
11331
|
}
|
|
11332
11332
|
exportDOM() {
|
|
11333
11333
|
const t = document.createElement("img");
|
|
11334
|
-
return t.setAttribute("src", this.__src), this.
|
|
11334
|
+
return t.setAttribute("src", this.__src), this.__alt && t.setAttribute("alt", this.__alt), this.__width && t.setAttribute("width", String(this.__width)), this.__height && t.setAttribute("height", String(this.__height)), {
|
|
11335
11335
|
element: t
|
|
11336
11336
|
};
|
|
11337
11337
|
}
|
|
@@ -11352,7 +11352,7 @@ class yr extends Pl {
|
|
|
11352
11352
|
return r.__src = t, r;
|
|
11353
11353
|
}
|
|
11354
11354
|
decorate(t) {
|
|
11355
|
-
return /* @__PURE__ */ H("img", { alt: this.
|
|
11355
|
+
return /* @__PURE__ */ H("img", { alt: this.__alt, height: this.__height, onClick: (r) => {
|
|
11356
11356
|
r.preventDefault(), t.dispatchCommand(y0, {
|
|
11357
11357
|
key: this.getKey(),
|
|
11358
11358
|
src: this.__src
|
|
@@ -11361,7 +11361,7 @@ class yr extends Pl {
|
|
|
11361
11361
|
}
|
|
11362
11362
|
}
|
|
11363
11363
|
function Ji({
|
|
11364
|
-
|
|
11364
|
+
alt: n = "",
|
|
11365
11365
|
height: e,
|
|
11366
11366
|
src: t,
|
|
11367
11367
|
width: r
|
|
@@ -11371,7 +11371,7 @@ function Ji({
|
|
|
11371
11371
|
function Pa(n) {
|
|
11372
11372
|
return n instanceof yr;
|
|
11373
11373
|
}
|
|
11374
|
-
const H1 = "
|
|
11374
|
+
const H1 = "_editor_nvulc_1", V1 = "_meta_nvulc_19", G1 = "_active_nvulc_27", K1 = "_bold_nvulc_39", J1 = "_italic_nvulc_43", X1 = "_link_nvulc_47", Z1 = "_list_nvulc_53", Q1 = "_paragraph_nvulc_54", $e = {
|
|
11375
11375
|
editor: H1,
|
|
11376
11376
|
meta: V1,
|
|
11377
11377
|
active: G1,
|
|
@@ -11483,21 +11483,21 @@ const H1 = "_editor_1gye0_1", V1 = "_meta_1gye0_17", G1 = "_active_1gye0_24", K1
|
|
|
11483
11483
|
}), n.registerCommand(y0, (R) => (N(R), !0), ut), n.registerCommand(_u, () => (n.getEditorState().read(() => {
|
|
11484
11484
|
U();
|
|
11485
11485
|
}), !1), ut)), [n, N, U]), /* @__PURE__ */ Lt(k0, { variant: "editor", "data-component": "editortoolbar", children: [
|
|
11486
|
-
/* @__PURE__ */ H(Xe, { "data-active": e, onClick: () => {
|
|
11486
|
+
/* @__PURE__ */ H(Xe, { "aria-label": "Bold", "data-active": e, onClick: () => {
|
|
11487
11487
|
n.dispatchCommand(Ve, "bold");
|
|
11488
11488
|
}, title: "Bold", variant: "minimal", children: /* @__PURE__ */ H(Ze, { name: "bold" }) }),
|
|
11489
|
-
/* @__PURE__ */ H(Xe, { "data-active": i, onClick: () => {
|
|
11489
|
+
/* @__PURE__ */ H(Xe, { "aria-label": "Italic", "data-active": i, onClick: () => {
|
|
11490
11490
|
n.dispatchCommand(Ve, "italic");
|
|
11491
11491
|
}, title: "Italic", variant: "minimal", children: /* @__PURE__ */ H(Ze, { name: "italic" }) }),
|
|
11492
|
-
/* @__PURE__ */ H(Xe, { "data-active": l, onClick: () => {
|
|
11492
|
+
/* @__PURE__ */ H(Xe, { "aria-label": "List", "data-active": l, onClick: () => {
|
|
11493
11493
|
l ? n.dispatchCommand(Zl, void 0) : n.dispatchCommand(Xl, void 0);
|
|
11494
11494
|
}, title: "List", variant: "minimal", children: /* @__PURE__ */ H(Ze, { name: "list" }) }),
|
|
11495
|
-
/* @__PURE__ */ H(Xe, { "data-active": o, onClick: () => {
|
|
11495
|
+
/* @__PURE__ */ H(Xe, { "aria-label": "Link", "data-active": o, onClick: () => {
|
|
11496
11496
|
o ? k() : (n.dispatchCommand(sn, {
|
|
11497
11497
|
url: "https://"
|
|
11498
11498
|
}), A("https://"));
|
|
11499
11499
|
}, title: "Link", variant: "minimal", children: /* @__PURE__ */ H(Ze, { name: "link" }) }),
|
|
11500
|
-
/* @__PURE__ */ H(Xe, { "data-active": r, onClick: () => {
|
|
11500
|
+
/* @__PURE__ */ H(Xe, { "aria-label": "Image", "data-active": r, onClick: () => {
|
|
11501
11501
|
r ? j() : N();
|
|
11502
11502
|
}, title: "Image", variant: "minimal", children: /* @__PURE__ */ H(Ze, { name: "image" }) }),
|
|
11503
11503
|
/* @__PURE__ */ Lt("div", { className: Hs($e.meta, o || r ? $e.active : ""), children: [
|
|
@@ -11505,17 +11505,17 @@ const H1 = "_editor_1gye0_1", V1 = "_meta_1gye0_17", G1 = "_active_1gye0_24", K1
|
|
|
11505
11505
|
/* @__PURE__ */ H(Vs, { onBlur: () => B(), onChange: (R) => g(R.target.value), onKeyDown: (R) => {
|
|
11506
11506
|
R.key === "Enter" && (R.preventDefault(), B());
|
|
11507
11507
|
}, ref: b, value: m }),
|
|
11508
|
-
/* @__PURE__ */ H(Xe, { onClick: () => {
|
|
11508
|
+
/* @__PURE__ */ H(Xe, { "aria-label": "Apply link", onClick: () => {
|
|
11509
11509
|
B();
|
|
11510
11510
|
}, onMouseDown: T, variant: "minimal", children: /* @__PURE__ */ H(Ze, { name: "check", variant: "primary" }) }),
|
|
11511
|
-
/* @__PURE__ */ H(Xe, { onClick: () => k(), onMouseDown: T, variant: "minimal", children: /* @__PURE__ */ H(Ze, { name: "trash", variant: "danger" }) })
|
|
11511
|
+
/* @__PURE__ */ H(Xe, { "aria-label": "Remove link", onClick: () => k(), onMouseDown: T, variant: "minimal", children: /* @__PURE__ */ H(Ze, { name: "trash", variant: "danger" }) })
|
|
11512
11512
|
] }),
|
|
11513
11513
|
r && /* @__PURE__ */ Lt(Wr, { children: [
|
|
11514
11514
|
/* @__PURE__ */ H(Vs, { className: Hs($e.active), onBlur: L, onChange: (R) => c(R.target.value), onKeyDown: (R) => {
|
|
11515
11515
|
R.key === "Enter" && (R.preventDefault(), w.current = !0, _());
|
|
11516
11516
|
}, ref: y, value: h }),
|
|
11517
|
-
/* @__PURE__ */ H(Xe, { onClick: () => _(), onMouseDown: C, variant: "minimal", children: /* @__PURE__ */ H(Ze, { name: "check", variant: "primary" }) }),
|
|
11518
|
-
/* @__PURE__ */ H(Xe, { onClick: () => O(), onMouseDown: C, variant: "minimal", children: /* @__PURE__ */ H(Ze, { name: "trash", variant: "danger" }) })
|
|
11517
|
+
/* @__PURE__ */ H(Xe, { "aria-label": "Apply image", onClick: () => _(), onMouseDown: C, variant: "minimal", children: /* @__PURE__ */ H(Ze, { name: "check", variant: "primary" }) }),
|
|
11518
|
+
/* @__PURE__ */ H(Xe, { "aria-label": "Remove image", onClick: () => O(), onMouseDown: C, variant: "minimal", children: /* @__PURE__ */ H(Ze, { name: "trash", variant: "danger" }) })
|
|
11519
11519
|
] })
|
|
11520
11520
|
] })
|
|
11521
11521
|
] });
|