@stlhorizon/vue-ui 2.7.1 → 2.7.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 CHANGED
@@ -1030,7 +1030,7 @@ A small label component for displaying status, tags, or counts with multiple var
1030
1030
 
1031
1031
  | Prop | Type | Default | Description |
1032
1032
  |------|------|---------|-------------|
1033
- | `variant` | `String` | `'default'` | Visual style (default, secondary, destructive, outline, success, warning, info, ghost, link, subtle, dark, light, primaryOutline, destructiveOutline, successOutline, gradient) |
1033
+ | `variant` | `String` | `'default'` | Visual style (default, secondary, destructive, primary, outline, success, warning, info, ghost, link, subtle, dark, light, primaryOutline, destructiveOutline, successOutline, gradient) |
1034
1034
  | `size` | `String` | `'md'` | Size variant (sm, md, lg) |
1035
1035
  | `shape` | `String` | `'rounded'` | Shape variant (rounded, pill, square) |
1036
1036
  | `icon` | `String \| Object` | `null` | Icon component |
@@ -1055,6 +1055,8 @@ A small label component for displaying status, tags, or counts with multiple var
1055
1055
  <template>
1056
1056
  <div class="space-x-2">
1057
1057
  <Badge variant="default">New</Badge>
1058
+ <Badge variant="primary">Primary</Badge>
1059
+ <Badge variant="secondary">Secondary</Badge>
1058
1060
  <Badge variant="success" size="sm">Active</Badge>
1059
1061
  <Badge variant="warning" shape="pill">Pending</Badge>
1060
1062
  <Badge variant="destructive" icon="ExclamationIcon">Error</Badge>
package/dist/index.esm.js CHANGED
@@ -3602,7 +3602,7 @@ const ae = {
3602
3602
  variant: {
3603
3603
  type: String,
3604
3604
  default: "default",
3605
- validator: (e) => ["default", "secondary", "destructive", "outline", "success", "warning", "info", "ghost", "link", "subtle", "dark", "light", "primaryOutline", "destructiveOutline", "successOutline", "gradient"].includes(e)
3605
+ validator: (e) => ["default", "secondary", "destructive", "primary", "outline", "success", "warning", "info", "ghost", "link", "subtle", "dark", "light", "primaryOutline", "destructiveOutline", "successOutline", "gradient"].includes(e)
3606
3606
  },
3607
3607
  size: {
3608
3608
  type: String,
@@ -3634,13 +3634,14 @@ const ae = {
3634
3634
  {
3635
3635
  variants: {
3636
3636
  variant: {
3637
- default: "border-transparent bg-blue-500 text-white hover:bg-blue-600",
3638
- secondary: "border-transparent bg-gray-500 text-white hover:bg-gray-600",
3639
- destructive: "border-transparent bg-red-500 text-white hover:bg-red-600",
3637
+ default: "border border-blue-200 bg-blue-50 text-blue-800 hover:bg-blue-100 dark:border-blue-200 dark:bg-blue-50 dark:text-blue-900",
3638
+ secondary: "border border-gray-200 bg-gray-50 text-gray-800 hover:bg-gray-100 dark:border-gray-200 dark:bg-gray-50 dark:text-gray-900",
3639
+ destructive: "border border-red-200 bg-red-50 text-red-800 hover:bg-red-100 dark:border-red-200 dark:bg-red-50 dark:text-red-900",
3640
+ primary: "border border-blue-200 bg-blue-50 text-blue-800 hover:bg-blue-100 dark:border-blue-200 dark:bg-blue-50 dark:text-blue-900",
3640
3641
  outline: "text-foreground border",
3641
- success: "border-transparent bg-green-500 text-white hover:bg-green-600",
3642
- warning: "border-transparent bg-yellow-300 text-gray-900 hover:bg-yellow-400",
3643
- info: "border-transparent bg-cyan-500 text-white hover:bg-cyan-600",
3642
+ success: "border border-green-200 bg-green-50 text-green-800 dark:border-green-200 dark:bg-green-50 dark:text-green-900",
3643
+ warning: "border border-yellow-200 bg-yellow-50 text-yellow-800 hover:bg-yellow-100 dark:border-yellow-200 dark:bg-yellow-50 dark:text-yellow-900",
3644
+ info: "border border-blue-200 bg-blue-50 text-blue-800 hover:bg-blue-100 dark:border-blue-200 dark:bg-blue-50 dark:text-blue-900",
3644
3645
  ghost: "bg-transparent text-gray-700 hover:bg-gray-100",
3645
3646
  link: "text-blue-600 hover:underline",
3646
3647
  subtle: "bg-gray-100 text-gray-800 hover:bg-gray-200",
@@ -10425,7 +10426,7 @@ const Qu = {
10425
10426
  i("div", Vf, [
10426
10427
  e.organisationName ? (o(), d("div", Df, [
10427
10428
  i("p", Mf, x(e.organisationName), 1),
10428
- e.user.organisation?.role ? (o(), d("p", Ff, x(e.user.organisation.role), 1)) : h("", !0)
10429
+ e.user.organisations?.role ? (o(), d("p", Ff, x(e.user.organisations.role), 1)) : h("", !0)
10429
10430
  ])) : h("", !0),
10430
10431
  i("nav", Nf, [
10431
10432
  i("span", Ef, x(e.currentSection), 1),
@@ -12265,37 +12266,37 @@ function Jg(e, a, t, n, r, l) {
12265
12266
  const Qg = /* @__PURE__ */ yt(Bg, [["render", Jg]]), Zg = {
12266
12267
  key: 0,
12267
12268
  class: "stl-loader__backdrop"
12268
- }, ev = { class: "stl-loader__container" }, tv = {
12269
+ }, e0 = { class: "stl-loader__container" }, t0 = {
12269
12270
  key: 0,
12270
12271
  class: "stl-loader__text stl-loader__text--top"
12271
- }, av = {
12272
+ }, a0 = {
12272
12273
  key: 1,
12273
12274
  class: "stl-loader__spin"
12274
- }, nv = {
12275
+ }, n0 = {
12275
12276
  key: 2,
12276
12277
  class: "stl-loader__pulse"
12277
- }, rv = {
12278
+ }, r0 = {
12278
12279
  key: 3,
12279
12280
  class: "stl-loader__bounce"
12280
- }, sv = {
12281
+ }, s0 = {
12281
12282
  key: 4,
12282
12283
  class: "stl-loader__ripple"
12283
- }, lv = {
12284
+ }, l0 = {
12284
12285
  key: 5,
12285
12286
  class: "stl-loader__bars"
12286
- }, ov = {
12287
+ }, o0 = {
12287
12288
  key: 6,
12288
12289
  class: "stl-loader__dots"
12289
- }, iv = {
12290
+ }, i0 = {
12290
12291
  key: 7,
12291
12292
  class: "stl-loader__ring"
12292
- }, uv = {
12293
+ }, u0 = {
12293
12294
  key: 8,
12294
12295
  class: "stl-loader__spinner-text"
12295
- }, dv = {
12296
+ }, d0 = {
12296
12297
  key: 9,
12297
12298
  class: "stl-loader__text stl-loader__text--bottom"
12298
- }, cv = {
12299
+ }, c0 = {
12299
12300
  __name: "StlLoader",
12300
12301
  props: {
12301
12302
  loading: {
@@ -12363,43 +12364,43 @@ const Qg = /* @__PURE__ */ yt(Bg, [["render", Jg]]), Zg = {
12363
12364
  })
12364
12365
  }, [
12365
12366
  e.overlay ? (o(), d("div", Zg)) : h("", !0),
12366
- i("div", ev, [
12367
- e.text && e.textPosition === "top" ? (o(), d("div", tv, x(e.text), 1)) : h("", !0),
12368
- e.type === "spin" ? (o(), d("div", av)) : e.type === "pulse" ? (o(), d("div", nv)) : e.type === "bounce" ? (o(), d("div", rv, [
12367
+ i("div", e0, [
12368
+ e.text && e.textPosition === "top" ? (o(), d("div", t0, x(e.text), 1)) : h("", !0),
12369
+ e.type === "spin" ? (o(), d("div", a0)) : e.type === "pulse" ? (o(), d("div", n0)) : e.type === "bounce" ? (o(), d("div", r0, [
12369
12370
  (o(), d(K, null, J(3, (n) => i("div", {
12370
12371
  key: n,
12371
12372
  class: "stl-loader__bounce-dot",
12372
12373
  style: de({ animationDelay: `${(n - 1) * 0.1}s` })
12373
12374
  }, null, 4)), 64))
12374
- ])) : e.type === "ripple" ? (o(), d("div", sv, [
12375
+ ])) : e.type === "ripple" ? (o(), d("div", s0, [
12375
12376
  (o(), d(K, null, J(2, (n) => i("div", {
12376
12377
  key: n,
12377
12378
  class: "stl-loader__ripple-ring",
12378
12379
  style: de({ animationDelay: `${(n - 1) * 0.5}s` })
12379
12380
  }, null, 4)), 64))
12380
- ])) : e.type === "bars" ? (o(), d("div", lv, [
12381
+ ])) : e.type === "bars" ? (o(), d("div", l0, [
12381
12382
  (o(), d(K, null, J(5, (n) => i("div", {
12382
12383
  key: n,
12383
12384
  class: "stl-loader__bar",
12384
12385
  style: de({ animationDelay: `${(n - 1) * 0.1}s` })
12385
12386
  }, null, 4)), 64))
12386
- ])) : e.type === "dots" ? (o(), d("div", ov, [
12387
+ ])) : e.type === "dots" ? (o(), d("div", o0, [
12387
12388
  (o(), d(K, null, J(3, (n) => i("div", {
12388
12389
  key: n,
12389
12390
  class: "stl-loader__dot",
12390
12391
  style: de({ animationDelay: `${(n - 1) * 0.16}s` })
12391
12392
  }, null, 4)), 64))
12392
- ])) : e.type === "ring" ? (o(), d("div", iv, [...t[0] || (t[0] = [
12393
+ ])) : e.type === "ring" ? (o(), d("div", i0, [...t[0] || (t[0] = [
12393
12394
  i("div", { class: "stl-loader__ring-track" }, null, -1),
12394
12395
  i("div", { class: "stl-loader__ring-fill" }, null, -1)
12395
- ])])) : e.type === "spinner-text" ? (o(), d("div", uv, [...t[1] || (t[1] = [
12396
+ ])])) : e.type === "spinner-text" ? (o(), d("div", u0, [...t[1] || (t[1] = [
12396
12397
  i("div", { class: "stl-loader__spinner" }, null, -1)
12397
12398
  ])])) : h("", !0),
12398
- e.text && e.textPosition === "bottom" ? (o(), d("div", dv, x(e.text), 1)) : h("", !0)
12399
+ e.text && e.textPosition === "bottom" ? (o(), d("div", d0, x(e.text), 1)) : h("", !0)
12399
12400
  ])
12400
12401
  ], 6)) : h("", !0);
12401
12402
  }
12402
- }, Ye = /* @__PURE__ */ yt(cv, [["__scopeId", "data-v-671e75e9"]]), Ua = {
12403
+ }, Ye = /* @__PURE__ */ yt(c0, [["__scopeId", "data-v-671e75e9"]]), Ua = {
12403
12404
  Avatar: Lo,
12404
12405
  Badge: Ro,
12405
12406
  Button: Ce,
@@ -12471,7 +12472,7 @@ const Qg = /* @__PURE__ */ yt(Bg, [["render", Jg]]), Zg = {
12471
12472
  AuthLayout: $g,
12472
12473
  DefaultLayout: jg,
12473
12474
  ErrorLayout: Qg
12474
- }, vv = {
12475
+ }, v0 = {
12475
12476
  install(e, a = {}) {
12476
12477
  const { prefix: t = "" } = a;
12477
12478
  Object.keys(Ua).forEach((n) => {
@@ -12553,7 +12554,7 @@ export {
12553
12554
  $i as Tooltip,
12554
12555
  Yt as Typography,
12555
12556
  S as cn,
12556
- vv as default,
12557
+ v0 as default,
12557
12558
  Ut as toast,
12558
12559
  ed as useToaster
12559
12560
  };