@stlhorizon/vue-ui 3.2.0 → 3.3.0

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
@@ -580,7 +580,7 @@ A dropdown menu component with customizable trigger and placement.
580
580
  </template>
581
581
  <DropdownItem @click="action1">Action 1</DropdownItem>
582
582
  <DropdownItem @click="action2">Action 2</DropdownItem>
583
- <DropdownItem variant="destructive" @click="delete">Delete</DropdownItem>
583
+ <DropdownItem variant="danger" @click="delete">Delete</DropdownItem>
584
584
  </Dropdown>
585
585
  </template>
586
586
 
@@ -607,7 +607,7 @@ An individual item within a dropdown menu.
607
607
  | `icon` | `String` | - | Icon name |
608
608
  | `shortcut` | `String` | - | Keyboard shortcut text |
609
609
  | `disabled` | `Boolean` | `false` | Whether disabled |
610
- | `variant` | `String` | `'default'` | Visual variant (default, destructive) |
610
+ | `variant` | `String` | `'default'` | Visual variant (default, danger) |
611
611
 
612
612
  ### Events
613
613
 
@@ -984,7 +984,7 @@ A versatile button component with multiple variants, sizes, and states.
984
984
 
985
985
  | Prop | Type | Default | Description |
986
986
  |------|------|---------|-------------|
987
- | `variant` | `String` | `'default'` | Visual style (default, destructive, outline, secondary, ghost, link, success, warning, info, subtle, dark, light, primaryOutline, destructiveOutline, successOutline, gradient) |
987
+ | `variant` | `String` | `'default'` | Visual style (default, danger, outline, secondary, ghost, link, success, warning, info, subtle, dark, light, primaryOutline, dangerOutline, successOutline, gradient) |
988
988
  | `size` | `String` | `'default'` | Size variant (default, xs, sm, lg, icon) |
989
989
  | `disabled` | `Boolean` | `false` | Whether the button is disabled |
990
990
  | `loading` | `Boolean` | `false` | Shows loading spinner |
@@ -1004,7 +1004,7 @@ A versatile button component with multiple variants, sizes, and states.
1004
1004
  <div class="space-x-2">
1005
1005
  <Button variant="default">Default</Button>
1006
1006
  <Button variant="outline" size="sm">Outline</Button>
1007
- <Button variant="destructive" :loading="true" loadingText="Deleting...">
1007
+ <Button variant="danger" :loading="true" loadingText="Deleting...">
1008
1008
  Delete
1009
1009
  </Button>
1010
1010
  <Button variant="icon" size="icon">
@@ -1030,7 +1030,7 @@ A notification component for displaying messages with different variants and opt
1030
1030
 
1031
1031
  | Prop | Type | Default | Description |
1032
1032
  |------|------|---------|-------------|
1033
- | `variant` | `String` | `'info'` | Alert style (info, success, warning, error, default, destructive) |
1033
+ | `variant` | `String` | `'info'` | Alert style (info, success, warning, error, default, danger) |
1034
1034
  | `title` | `String` | - | Alert title |
1035
1035
  | `message` | `String` | - | Alert message |
1036
1036
  | `dismissible` | `Boolean` | `false` | Show dismiss button |
@@ -1091,7 +1091,7 @@ A small label component for displaying status, tags, or counts with multiple var
1091
1091
 
1092
1092
  | Prop | Type | Default | Description |
1093
1093
  |------|------|---------|-------------|
1094
- | `variant` | `String` | `'default'` | Visual style (default, secondary, destructive, primary, outline, success, warning, info, ghost, link, subtle, dark, light, primaryOutline, destructiveOutline, successOutline, gradient) |
1094
+ | `variant` | `String` | `'default'` | Visual style (default, secondary, danger, primary, outline, success, warning, info, ghost, link, subtle, dark, light, primaryOutline, dangerOutline, successOutline, gradient) |
1095
1095
  | `size` | `String` | `'md'` | Size variant (sm, md, lg) |
1096
1096
  | `shape` | `String` | `'rounded'` | Shape variant (rounded, pill, square) |
1097
1097
  | `icon` | `String \| Object` | `null` | Icon component |
@@ -1120,7 +1120,7 @@ A small label component for displaying status, tags, or counts with multiple var
1120
1120
  <Badge variant="secondary">Secondary</Badge>
1121
1121
  <Badge variant="success" size="sm">Active</Badge>
1122
1122
  <Badge variant="warning" shape="pill">Pending</Badge>
1123
- <Badge variant="destructive" icon="ExclamationIcon">Error</Badge>
1123
+ <Badge variant="danger" icon="ExclamationIcon">Error</Badge>
1124
1124
  <Badge variant="info">Info</Badge>
1125
1125
  <Badge variant="ghost">Ghost</Badge>
1126
1126
  <Badge variant="link">Link</Badge>
@@ -1128,7 +1128,7 @@ A small label component for displaying status, tags, or counts with multiple var
1128
1128
  <Badge variant="dark">Dark</Badge>
1129
1129
  <Badge variant="light">Light</Badge>
1130
1130
  <Badge variant="primaryOutline">Primary Outline</Badge>
1131
- <Badge variant="destructiveOutline">Destructive Outline</Badge>
1131
+ <Badge variant="dangerOutline">danger Outline</Badge>
1132
1132
  <Badge variant="successOutline">Success Outline</Badge>
1133
1133
  <Badge variant="gradient">Gradient</Badge>
1134
1134
  <Badge variant="outline" dismissible @dismiss="handleDismiss">
@@ -1968,7 +1968,7 @@ A progress bar component for showing completion status.
1968
1968
  | `value` | `Number` | `0` | Current progress value |
1969
1969
  | `max` | `Number` | `100` | Maximum value |
1970
1970
  | `size` | `String` | `'default'` | Size variant (sm, default, md, lg) |
1971
- | `variant` | `String` | `'default'` | Color variant (default, success, warning, destructive) |
1971
+ | `variant` | `String` | `'default'` | Color variant (default, success, warning, danger) |
1972
1972
 
1973
1973
  ### Example
1974
1974
 
@@ -1978,7 +1978,7 @@ A progress bar component for showing completion status.
1978
1978
  <Progress :value="progress" />
1979
1979
  <Progress :value="75" variant="success" size="sm" />
1980
1980
  <Progress :value="50" variant="warning" />
1981
- <Progress :value="25" variant="destructive" size="lg" />
1981
+ <Progress :value="25" variant="danger" size="lg" />
1982
1982
  </div>
1983
1983
  </template>
1984
1984
 
package/dist/index.esm.js CHANGED
@@ -3602,7 +3602,7 @@ const Q = {
3602
3602
  variant: {
3603
3603
  type: String,
3604
3604
  default: "default",
3605
- validator: (e) => ["default", "secondary", "destructive", "primary", "outline", "success", "warning", "info", "ghost", "link", "subtle", "dark", "light", "primaryOutline", "destructiveOutline", "successOutline", "gradient"].includes(e)
3605
+ validator: (e) => ["default", "secondary", "danger", "primary", "outline", "success", "warning", "info", "ghost", "link", "subtle", "dark", "light", "primaryOutline", "dangerOutline", "successOutline", "gradient"].includes(e)
3606
3606
  },
3607
3607
  size: {
3608
3608
  type: String,
@@ -3636,7 +3636,7 @@ const Q = {
3636
3636
  variant: {
3637
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
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",
3639
+ danger: "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
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",
3641
3641
  outline: "text-foreground border",
3642
3642
  success: "border border-green-200 bg-green-50 text-green-800 dark:border-green-200 dark:bg-green-50 dark:text-green-900",
@@ -3648,7 +3648,7 @@ const Q = {
3648
3648
  dark: "bg-gray-900 text-white hover:bg-black",
3649
3649
  light: "bg-gray-50 text-gray-800 border border-gray-200 hover:bg-gray-100",
3650
3650
  primaryOutline: "border border-blue-500 text-blue-500 bg-transparent hover:bg-blue-50",
3651
- destructiveOutline: "border border-red-500 text-red-500 bg-transparent hover:bg-red-50",
3651
+ dangerOutline: "border border-red-500 text-red-500 bg-transparent hover:bg-red-50",
3652
3652
  successOutline: "border border-green-500 text-green-500 bg-transparent hover:bg-green-50",
3653
3653
  gradient: "bg-gradient-to-r from-blue-400 to-purple-500 text-white hover:from-blue-500 hover:to-purple-600"
3654
3654
  },
@@ -3711,7 +3711,7 @@ const Q = {
3711
3711
  default: "default",
3712
3712
  validator: (e) => [
3713
3713
  "default",
3714
- "destructive",
3714
+ "danger",
3715
3715
  "outline",
3716
3716
  "secondary",
3717
3717
  "ghost",
@@ -3723,7 +3723,7 @@ const Q = {
3723
3723
  "dark",
3724
3724
  "light",
3725
3725
  "primaryOutline",
3726
- "destructiveOutline",
3726
+ "dangerOutline",
3727
3727
  "successOutline",
3728
3728
  "gradient"
3729
3729
  ].includes(e)
@@ -3753,7 +3753,7 @@ const Q = {
3753
3753
  variants: {
3754
3754
  variant: {
3755
3755
  default: "bg-blue-600 text-white hover:bg-blue-700",
3756
- destructive: "bg-red-600 text-white hover:bg-red-700",
3756
+ danger: "bg-red-600 text-white hover:bg-red-700",
3757
3757
  outline: "border border-gray-300 bg-white text-gray-900 hover:bg-gray-100",
3758
3758
  secondary: "bg-gray-600 text-white hover:bg-gray-700",
3759
3759
  ghost: "bg-transparent text-gray-700 hover:bg-gray-100",
@@ -3765,7 +3765,7 @@ const Q = {
3765
3765
  dark: "bg-gray-900 text-white hover:bg-black",
3766
3766
  light: "bg-gray-50 text-gray-800 border border-gray-200 hover:bg-gray-100",
3767
3767
  primaryOutline: "border border-blue-600 text-blue-600 bg-transparent hover:bg-blue-50",
3768
- destructiveOutline: "border border-red-600 text-red-600 bg-transparent hover:bg-red-50",
3768
+ dangerOutline: "border border-red-600 text-red-600 bg-transparent hover:bg-red-50",
3769
3769
  successOutline: "border border-green-600 text-green-600 bg-transparent hover:bg-green-50",
3770
3770
  gradient: "bg-gradient-to-r from-blue-500 to-purple-600 text-white hover:from-blue-600 hover:to-purple-700"
3771
3771
  },
@@ -4672,7 +4672,7 @@ const Q = {
4672
4672
  variant: {
4673
4673
  type: String,
4674
4674
  default: "default",
4675
- validator: (e) => ["default", "success", "warning", "destructive"].includes(e)
4675
+ validator: (e) => ["default", "success", "warning", "danger"].includes(e)
4676
4676
  }
4677
4677
  },
4678
4678
  setup(e) {
@@ -4702,7 +4702,7 @@ const Q = {
4702
4702
  default: "bg-primary",
4703
4703
  success: "bg-green-500",
4704
4704
  warning: "bg-yellow-500",
4705
- destructive: "bg-red-500"
4705
+ danger: "bg-red-500"
4706
4706
  }
4707
4707
  },
4708
4708
  defaultVariants: {
@@ -4742,7 +4742,7 @@ const Q = {
4742
4742
  variant: {
4743
4743
  type: String,
4744
4744
  default: "default",
4745
- validator: (e) => ["default", "success", "warning", "destructive"].includes(e)
4745
+ validator: (e) => ["default", "success", "warning", "danger"].includes(e)
4746
4746
  },
4747
4747
  showLabel: Boolean,
4748
4748
  class: String
@@ -4770,7 +4770,7 @@ const Q = {
4770
4770
  default: "bg-primary",
4771
4771
  success: "bg-green-500",
4772
4772
  warning: "bg-yellow-500",
4773
- destructive: "bg-destructive"
4773
+ danger: "bg-danger"
4774
4774
  }
4775
4775
  }
4776
4776
  }
@@ -5049,7 +5049,7 @@ const Q = {
5049
5049
  variant: {
5050
5050
  type: String,
5051
5051
  default: "default",
5052
- validator: (e) => ["default", "muted", "destructive"].includes(e)
5052
+ validator: (e) => ["default", "muted", "danger"].includes(e)
5053
5053
  },
5054
5054
  weight: {
5055
5055
  type: String,
@@ -5078,7 +5078,7 @@ const Q = {
5078
5078
  variant: {
5079
5079
  default: "text-foreground",
5080
5080
  muted: "text-muted-foreground",
5081
- destructive: "text-destructive"
5081
+ danger: "text-danger"
5082
5082
  },
5083
5083
  weight: {
5084
5084
  normal: "font-normal",
@@ -5453,7 +5453,7 @@ const Q = {
5453
5453
  variant: {
5454
5454
  type: String,
5455
5455
  default: "info",
5456
- validator: (e) => ["info", "success", "warning", "error", "default", "destructive"].includes(
5456
+ validator: (e) => ["info", "success", "warning", "error", "default", "danger"].includes(
5457
5457
  e
5458
5458
  )
5459
5459
  },
@@ -5517,14 +5517,14 @@ const Q = {
5517
5517
  warning: y,
5518
5518
  error: w,
5519
5519
  default: c,
5520
- destructive: w
5520
+ danger: w
5521
5521
  })[t.variant]), $ = E(
5522
5522
  "relative w-full rounded-lg border p-4 flex items-start gap-3",
5523
5523
  {
5524
5524
  variants: {
5525
5525
  variant: {
5526
5526
  default: "bg-background text-foreground",
5527
- destructive: "border-destructive/50 text-destructive dark:border-destructive",
5527
+ danger: "border-danger/50 text-danger dark:border-danger",
5528
5528
  info: "bg-blue-50 border-blue-200 text-blue-800",
5529
5529
  success: "bg-green-50 border-green-200 text-green-800",
5530
5530
  warning: "bg-yellow-50 border-yellow-200 text-yellow-800",
@@ -5539,14 +5539,14 @@ const Q = {
5539
5539
  warning: "text-yellow-500",
5540
5540
  error: "text-red-500",
5541
5541
  default: "text-foreground",
5542
- destructive: "text-destructive"
5542
+ danger: "text-danger"
5543
5543
  }[t.variant]]), x = b(() => ["flex-shrink-0 p-1 rounded-md transition-colors duration-200", {
5544
5544
  info: "text-blue-500 hover:text-blue-700 hover:bg-blue-100",
5545
5545
  success: "text-green-500 hover:text-green-700 hover:bg-green-100",
5546
5546
  warning: "text-yellow-500 hover:text-yellow-700 hover:bg-yellow-100",
5547
5547
  error: "text-red-500 hover:text-red-700 hover:bg-red-100",
5548
5548
  default: "text-foreground hover:text-foreground/80 hover:bg-muted",
5549
- destructive: "text-destructive hover:text-destructive/80 hover:bg-destructive/10"
5549
+ danger: "text-danger hover:text-danger/80 hover:bg-danger/10"
5550
5550
  }[t.variant]]);
5551
5551
  return (f, m) => (s(), _(ge, {
5552
5552
  "enter-active-class": "transition-all duration-300",
@@ -6508,7 +6508,7 @@ const Q = {
6508
6508
  variant: {
6509
6509
  type: String,
6510
6510
  default: "default",
6511
- validator: (e) => ["default", "destructive"].includes(e)
6511
+ validator: (e) => ["default", "danger"].includes(e)
6512
6512
  }
6513
6513
  },
6514
6514
  emits: ["click"],
@@ -6519,7 +6519,7 @@ const Q = {
6519
6519
  variants: {
6520
6520
  variant: {
6521
6521
  default: "hover:bg-accent hover:text-accent-foreground",
6522
- destructive: "text-destructive hover:bg-destructive hover:text-destructive-foreground"
6522
+ danger: "text-danger hover:bg-danger hover:text-danger-foreground"
6523
6523
  }
6524
6524
  }
6525
6525
  }
@@ -6983,7 +6983,7 @@ const Q = {
6983
6983
  variant: {
6984
6984
  type: String,
6985
6985
  default: "default",
6986
- validator: (e) => ["default", "destructive"].includes(e)
6986
+ validator: (e) => ["default", "danger"].includes(e)
6987
6987
  }
6988
6988
  },
6989
6989
  emits: ["click"],
@@ -6994,7 +6994,7 @@ const Q = {
6994
6994
  variants: {
6995
6995
  variant: {
6996
6996
  default: "hover:bg-accent hover:text-accent-foreground",
6997
- destructive: "text-destructive hover:bg-destructive hover:text-destructive-foreground"
6997
+ danger: "text-danger hover:bg-danger hover:text-danger-foreground"
6998
6998
  }
6999
6999
  }
7000
7000
  }
@@ -7209,7 +7209,7 @@ const Q = {
7209
7209
  variant: {
7210
7210
  type: String,
7211
7211
  default: "default",
7212
- validator: (e) => ["default", "success", "warning", "destructive"].includes(e)
7212
+ validator: (e) => ["default", "success", "warning", "danger"].includes(e)
7213
7213
  },
7214
7214
  dismissible: {
7215
7215
  type: Boolean,
@@ -7235,7 +7235,7 @@ const Q = {
7235
7235
  default: "border-l-4 border-primary",
7236
7236
  success: "border-l-4 border-green-500",
7237
7237
  warning: "border-l-4 border-yellow-500",
7238
- destructive: "border-l-4 border-destructive"
7238
+ danger: "border-l-4 border-danger"
7239
7239
  }
7240
7240
  }
7241
7241
  }
@@ -7243,14 +7243,14 @@ const Q = {
7243
7243
  default: "info",
7244
7244
  success: "check-circle",
7245
7245
  warning: "alert-triangle",
7246
- destructive: "alert-circle"
7246
+ danger: "alert-circle"
7247
7247
  }, c = E("h-5 w-5", {
7248
7248
  variants: {
7249
7249
  variant: {
7250
7250
  default: "text-primary",
7251
7251
  success: "text-green-500",
7252
7252
  warning: "text-yellow-500",
7253
- destructive: "text-destructive"
7253
+ danger: "text-danger"
7254
7254
  }
7255
7255
  }
7256
7256
  }), g = b(
@@ -7275,7 +7275,7 @@ const Q = {
7275
7275
  key: 0,
7276
7276
  class: v(g.value),
7277
7277
  role: "alert",
7278
- "aria-live": e.variant === "destructive" ? "assertive" : "polite"
7278
+ "aria-live": e.variant === "danger" ? "assertive" : "polite"
7279
7279
  }, [
7280
7280
  i("div", hd, [
7281
7281
  e.showIcon ? (s(), u("div", yd, [
@@ -10260,7 +10260,7 @@ const $d = {
10260
10260
  default: "default",
10261
10261
  primary: "gradient",
10262
10262
  secondary: "secondary",
10263
- destructive: "destructive",
10263
+ danger: "danger",
10264
10264
  success: "success",
10265
10265
  warning: "warning",
10266
10266
  info: "info",
@@ -10268,7 +10268,7 @@ const $d = {
10268
10268
  dark: "dark",
10269
10269
  light: "light",
10270
10270
  primaryOutline: "primaryOutline",
10271
- destructiveOutline: "destructiveOutline",
10271
+ dangerOutline: "dangerOutline",
10272
10272
  successOutline: "successOutline",
10273
10273
  outline: "outline",
10274
10274
  link: "link",
@@ -10607,7 +10607,7 @@ const $d = {
10607
10607
  }, 8, ["current-page", "total-pages", "total", "page-size", "show-pagination", "selectable", "selected-count", "variant", "padding", "loading", "disabled"])) : h("", !0)
10608
10608
  ], 2));
10609
10609
  }
10610
- }, vm = /* @__PURE__ */ jt(gm, [["__scopeId", "data-v-7d6cfd43"]]), bm = {
10610
+ }, vm = /* @__PURE__ */ jt(gm, [["__scopeId", "data-v-3ac63b7b"]]), bm = {
10611
10611
  __name: "DataTableCell",
10612
10612
  props: {
10613
10613
  item: {
@@ -11509,7 +11509,7 @@ const $d = {
11509
11509
  icon: {
11510
11510
  template: '<svg fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0" /></svg>'
11511
11511
  },
11512
- variant: "destructive"
11512
+ variant: "danger"
11513
11513
  },
11514
11514
  {
11515
11515
  key: "edit",
@@ -12480,8 +12480,8 @@ const $d = {
12480
12480
  }, [
12481
12481
  d.type === "hidden" ? Xe((s(), u("input", {
12482
12482
  key: 0,
12483
- type: "hidden",
12484
- "onUpdate:modelValue": (S) => l.value[d.name] = S
12483
+ "onUpdate:modelValue": (S) => l.value[d.name] = S,
12484
+ type: "hidden"
12485
12485
  }, null, 8, cv)), [
12486
12486
  [wt, l.value[d.name]]
12487
12487
  ]) : (s(), _(xr, {