@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.
Files changed (192) hide show
  1. package/README.md +1 -1
  2. package/dist/assets/index.css +1 -1
  3. package/dist/assets/index10.css +1 -1
  4. package/dist/assets/index11.css +1 -1
  5. package/dist/assets/index12.css +1 -1
  6. package/dist/assets/index13.css +1 -1
  7. package/dist/assets/index14.css +1 -1
  8. package/dist/assets/index15.css +1 -1
  9. package/dist/assets/index16.css +1 -1
  10. package/dist/assets/index17.css +1 -1
  11. package/dist/assets/index18.css +1 -1
  12. package/dist/assets/index19.css +1 -1
  13. package/dist/assets/index2.css +1 -1
  14. package/dist/assets/index20.css +1 -1
  15. package/dist/assets/index21.css +1 -1
  16. package/dist/assets/index22.css +1 -1
  17. package/dist/assets/index23.css +1 -1
  18. package/dist/assets/index24.css +1 -1
  19. package/dist/assets/index25.css +1 -1
  20. package/dist/assets/index26.css +1 -1
  21. package/dist/assets/index27.css +1 -1
  22. package/dist/assets/index29.css +1 -1
  23. package/dist/assets/index3.css +1 -1
  24. package/dist/assets/index30.css +1 -1
  25. package/dist/assets/index31.css +1 -1
  26. package/dist/assets/index32.css +1 -1
  27. package/dist/assets/index33.css +1 -1
  28. package/dist/assets/index34.css +1 -1
  29. package/dist/assets/index35.css +1 -1
  30. package/dist/assets/index36.css +1 -1
  31. package/dist/assets/index37.css +1 -1
  32. package/dist/assets/index38.css +1 -1
  33. package/dist/assets/index39.css +1 -1
  34. package/dist/assets/index4.css +1 -1
  35. package/dist/assets/index40.css +1 -1
  36. package/dist/assets/index41.css +1 -1
  37. package/dist/assets/index42.css +1 -1
  38. package/dist/assets/index43.css +1 -1
  39. package/dist/assets/index44.css +1 -1
  40. package/dist/assets/index5.css +1 -1
  41. package/dist/assets/index6.css +1 -1
  42. package/dist/assets/index8.css +1 -1
  43. package/dist/assets/index9.css +1 -1
  44. package/dist/assets/styles.css +1 -1
  45. package/dist/components/_avatar/index.cjs +1 -1
  46. package/dist/components/_avatar/index.cjs.map +1 -1
  47. package/dist/components/_avatar/index.js +9 -9
  48. package/dist/components/_avatar/index.js.map +1 -1
  49. package/dist/components/_card/index.cjs +1 -1
  50. package/dist/components/_card/index.js +12 -12
  51. package/dist/components/_collapsible/index.cjs +1 -1
  52. package/dist/components/_collapsible/index.js +1 -1
  53. package/dist/components/_croppable/index.cjs +1 -1
  54. package/dist/components/_croppable/index.js +175 -175
  55. package/dist/components/_dropdown/index.cjs +1 -1
  56. package/dist/components/_dropdown/index.cjs.map +1 -1
  57. package/dist/components/_dropdown/index.js +87 -87
  58. package/dist/components/_dropdown/index.js.map +1 -1
  59. package/dist/components/_dropzone/index.cjs +1 -1
  60. package/dist/components/_dropzone/index.js +34 -34
  61. package/dist/components/_editor/index.cjs +16 -16
  62. package/dist/components/_editor/index.cjs.map +1 -1
  63. package/dist/components/_editor/index.js +19 -19
  64. package/dist/components/_editor/index.js.map +1 -1
  65. package/dist/components/_messages/index.cjs +1 -1
  66. package/dist/components/_messages/index.cjs.map +1 -1
  67. package/dist/components/_messages/index.js +15 -15
  68. package/dist/components/_messages/index.js.map +1 -1
  69. package/dist/components/_portal/index.cjs +1 -1
  70. package/dist/components/_portal/index.cjs.map +1 -1
  71. package/dist/components/_portal/index.js +17 -16
  72. package/dist/components/_portal/index.js.map +1 -1
  73. package/dist/components/_sortable/index.cjs +1 -1
  74. package/dist/components/_sortable/index.cjs.map +1 -1
  75. package/dist/components/_sortable/index.js +64 -33
  76. package/dist/components/_sortable/index.js.map +1 -1
  77. package/dist/components/_widget/index.cjs +1 -1
  78. package/dist/components/_widget/index.js +3 -3
  79. package/dist/components/accordion/index.cjs +1 -1
  80. package/dist/components/accordion/index.cjs.map +1 -1
  81. package/dist/components/accordion/index.js +16 -10
  82. package/dist/components/accordion/index.js.map +1 -1
  83. package/dist/components/app-link/index.cjs +1 -1
  84. package/dist/components/app-link/index.cjs.map +1 -1
  85. package/dist/components/app-link/index.js +9 -9
  86. package/dist/components/app-link/index.js.map +1 -1
  87. package/dist/components/aside/index.cjs +1 -1
  88. package/dist/components/aside/index.js +6 -6
  89. package/dist/components/badge/index.cjs +1 -1
  90. package/dist/components/badge/index.cjs.map +1 -1
  91. package/dist/components/badge/index.js +19 -18
  92. package/dist/components/badge/index.js.map +1 -1
  93. package/dist/components/banner/index.cjs +1 -1
  94. package/dist/components/banner/index.js +9 -9
  95. package/dist/components/branding/index.cjs +1 -1
  96. package/dist/components/branding/index.js +12 -12
  97. package/dist/components/button/index.cjs +1 -1
  98. package/dist/components/button/index.js +12 -12
  99. package/dist/components/checkbox/index.cjs +1 -1
  100. package/dist/components/checkbox/index.js +7 -7
  101. package/dist/components/controls/index.cjs +1 -1
  102. package/dist/components/controls/index.cjs.map +1 -1
  103. package/dist/components/controls/index.js +21 -10
  104. package/dist/components/controls/index.js.map +1 -1
  105. package/dist/components/dialog/index.cjs +1 -1
  106. package/dist/components/dialog/index.js +3 -3
  107. package/dist/components/figure/index.cjs +1 -1
  108. package/dist/components/figure/index.cjs.map +1 -1
  109. package/dist/components/figure/index.js +11 -11
  110. package/dist/components/figure/index.js.map +1 -1
  111. package/dist/components/file/index.cjs +1 -1
  112. package/dist/components/file/index.cjs.map +1 -1
  113. package/dist/components/file/index.js +14 -13
  114. package/dist/components/file/index.js.map +1 -1
  115. package/dist/components/footer/index.cjs +1 -1
  116. package/dist/components/footer/index.js +3 -3
  117. package/dist/components/form/index.cjs +1 -1
  118. package/dist/components/form/index.js +11 -11
  119. package/dist/components/graph/index.cjs +1 -1
  120. package/dist/components/graph/index.cjs.map +1 -1
  121. package/dist/components/graph/index.js +31 -31
  122. package/dist/components/graph/index.js.map +1 -1
  123. package/dist/components/header/index.cjs +1 -1
  124. package/dist/components/header/index.js +3 -3
  125. package/dist/components/icon/index.cjs +1 -1
  126. package/dist/components/icon/index.cjs.map +1 -1
  127. package/dist/components/icon/index.js +26 -26
  128. package/dist/components/icon/index.js.map +1 -1
  129. package/dist/components/image/index.cjs +1 -1
  130. package/dist/components/image/index.js +9 -9
  131. package/dist/components/input/index.cjs +1 -1
  132. package/dist/components/input/index.cjs.map +1 -1
  133. package/dist/components/input/index.js +34 -33
  134. package/dist/components/input/index.js.map +1 -1
  135. package/dist/components/link/index.cjs +1 -1
  136. package/dist/components/link/index.js +11 -11
  137. package/dist/components/list/index.cjs +1 -1
  138. package/dist/components/list/index.js +7 -7
  139. package/dist/components/loading/index.cjs +1 -1
  140. package/dist/components/loading/index.js +13 -13
  141. package/dist/components/message/index.cjs +1 -1
  142. package/dist/components/message/index.js +7 -7
  143. package/dist/components/nav/index.cjs +1 -1
  144. package/dist/components/nav/index.js +23 -23
  145. package/dist/components/object/index.cjs +2 -0
  146. package/dist/components/object/index.cjs.map +1 -0
  147. package/dist/components/object/index.js +16 -0
  148. package/dist/components/object/index.js.map +1 -0
  149. package/dist/components/select/index.cjs +1 -1
  150. package/dist/components/select/index.js +1 -1
  151. package/dist/components/table/index.cjs +1 -1
  152. package/dist/components/table/index.cjs.map +1 -1
  153. package/dist/components/table/index.js +22 -22
  154. package/dist/components/table/index.js.map +1 -1
  155. package/dist/components/textarea/index.cjs +1 -1
  156. package/dist/components/textarea/index.cjs.map +1 -1
  157. package/dist/components/textarea/index.js +23 -23
  158. package/dist/components/textarea/index.js.map +1 -1
  159. package/dist/components/toast/index.cjs +1 -1
  160. package/dist/components/toast/index.cjs.map +1 -1
  161. package/dist/components/toast/index.js +23 -24
  162. package/dist/components/toast/index.js.map +1 -1
  163. package/dist/components/toggle/index.cjs +1 -1
  164. package/dist/components/toggle/index.js +1 -1
  165. package/dist/components/toolbar/index.cjs +1 -1
  166. package/dist/components/toolbar/index.js +9 -9
  167. package/dist/index-CiEbbnD6.js +42 -0
  168. package/dist/index-CiEbbnD6.js.map +1 -0
  169. package/dist/index-ClrKYsAQ.cjs +2 -0
  170. package/dist/index-ClrKYsAQ.cjs.map +1 -0
  171. package/dist/index.cjs +1 -1
  172. package/dist/index.d.ts +28 -22
  173. package/dist/index.js +33 -33
  174. package/dist/styles.module-BOTEBJ0C.js +9 -0
  175. package/dist/styles.module-BOTEBJ0C.js.map +1 -0
  176. package/dist/styles.module-BPvMQa_x.cjs +2 -0
  177. package/dist/styles.module-BPvMQa_x.cjs.map +1 -0
  178. package/dist/tokens.css +44 -12
  179. package/dist/tokens.json +541 -68
  180. package/package.json +1 -1
  181. package/dist/components/layout/index.cjs +0 -2
  182. package/dist/components/layout/index.cjs.map +0 -1
  183. package/dist/components/layout/index.js +0 -18
  184. package/dist/components/layout/index.js.map +0 -1
  185. package/dist/index-BpUboRfJ.cjs +0 -2
  186. package/dist/index-BpUboRfJ.cjs.map +0 -1
  187. package/dist/index-ChKhFyp8.js +0 -40
  188. package/dist/index-ChKhFyp8.js.map +0 -1
  189. package/dist/styles.module-DZXAP_eP.js +0 -8
  190. package/dist/styles.module-DZXAP_eP.js.map +0 -1
  191. package/dist/styles.module-Vt6mmlsz.cjs +0 -2
  192. 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, "__altText");
11279
+ xn(this, "__alt");
11280
11280
  xn(this, "__width");
11281
11281
  xn(this, "__height");
11282
- this.__src = t, this.__altText = r, this.__width = u, this.__height = i;
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.__altText, t.__width, t.__height, t.__key);
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
- altText: t.altText,
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
- altText: this.__altText,
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
- altText: r.getAttribute("alt") ?? "",
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.__altText && t.setAttribute("alt", this.__altText), this.__width && t.setAttribute("width", String(this.__width)), this.__height && t.setAttribute("height", String(this.__height)), {
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.__altText, height: this.__height, onClick: (r) => {
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
- altText: n = "",
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 = "_editor_1gye0_1", V1 = "_meta_1gye0_17", G1 = "_active_1gye0_24", K1 = "_bold_1gye0_36", J1 = "_italic_1gye0_40", X1 = "_link_1gye0_44", Z1 = "_list_1gye0_50", Q1 = "_paragraph_1gye0_51", $e = {
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
  ] });