mediacube-ui-v2 0.0.320 → 0.0.321

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,6 +1,6 @@
1
1
  {
2
2
  "catalogSchemaVersion": 2,
3
- "libraryVersion": "0.0.320",
3
+ "libraryVersion": "0.0.321",
4
4
  "packageName": "mediacube-ui-v2",
5
5
  "pathHash": "9b6f3b8016b22ac7",
6
6
  "componentCount": 76,
@@ -238,6 +238,7 @@ const tt = {
238
238
  }), e;
239
239
  }), T = a(() => ({
240
240
  [`mc-button--size-${t.size}`]: !!t.size,
241
+ [`mc-button--size-${t.size}--rounded`]: t.rounded && !!String(t.size).match("-compact"),
241
242
  [`mc-button--variation-${t.variation}`]: !!t.variation,
242
243
  [`mc-button--text-align-${t.textAlign}`]: !!t.textAlign,
243
244
  "mc-button--loading": t.loading,
@@ -303,10 +304,10 @@ const tt = {
303
304
  "--mc-button-hover-brightness": e,
304
305
  "--mc-button-text-color": o && i.colors[o]
305
306
  };
306
- }), P = a(() => {
307
+ }), z = a(() => {
307
308
  const e = "a";
308
309
  return t.to || t.href ? e : t.defaultTag;
309
- }), g = a(() => s.value.type === l.Link), A = a(() => {
310
+ }), g = a(() => s.value.type === l.Link), P = a(() => {
310
311
  let e = {
311
312
  href: t.href || t.to,
312
313
  disabled: !1,
@@ -315,9 +316,9 @@ const tt = {
315
316
  tabindex: t.tabindex
316
317
  };
317
318
  return (t.disabled || t.loading) && (e.disabled = !0), g.value && (e.rel = "noreferrer"), e;
318
- }), V = (e) => {
319
+ }), A = (e) => {
319
320
  y("blur", e);
320
- }, z = (e) => {
321
+ }, V = (e) => {
321
322
  if (!((t.to || t.href) && (e.metaKey || e.ctrlKey))) {
322
323
  if (e.preventDefault(), b.value) return y("click", e, t);
323
324
  t.to ? m?.meta?.router_push && m.meta.router_push(t.to) : window.open(t.href, t.target);
@@ -326,12 +327,12 @@ const tt = {
326
327
  return N(() => {
327
328
  const o = R()?.vnode;
328
329
  b.value = !!o?.props?.onClick;
329
- }), (e, o) => O((c(), D(E(P.value), H({ ref: w.value }, { ...A.value }, {
330
+ }), (e, o) => O((c(), D(E(z.value), H({ ref: w.value }, { ...P.value }, {
330
331
  class: ["mc-button", T.value],
331
332
  exact: p.exact,
332
333
  style: L.value,
333
- onBlur: V,
334
- onClick: z
334
+ onBlur: A,
335
+ onClick: V
335
336
  }), {
336
337
  default: W(() => [
337
338
  e.$slots["icon-prepend"] ? (c(), u("span", tt, [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mediacube-ui-v2",
3
- "version": "0.0.320",
3
+ "version": "0.0.321",
4
4
  "license": "MIT",
5
5
  "description": "Design system for Mediacube services",
6
6
  "sideEffects": [