@tb-dev/vue-components 1.0.0 → 1.0.1

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 (2) hide show
  1. package/dist/index.js +12 -10
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -260,7 +260,7 @@ const _sfc_main$3a = /* @__PURE__ */ defineComponent({
260
260
  });
261
261
 
262
262
  const buttonVariants = cva(
263
- "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
263
+ "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
264
264
  {
265
265
  variants: {
266
266
  variant: {
@@ -763,15 +763,18 @@ const _sfc_main$2W = /* @__PURE__ */ defineComponent({
763
763
  },
764
764
  setup(__props) {
765
765
  const props = __props;
766
+ const delegatedProps = computed(() => {
767
+ const { class: _, ...delegated } = props;
768
+ return delegated;
769
+ });
766
770
  return (_ctx, _cache) => {
767
- return _ctx.to ? (openBlock(), createBlock(unref(_sfc_main$2X), {
768
- key: 0,
771
+ return _ctx.to ? (openBlock(), createBlock(unref(_sfc_main$2X), mergeProps({ key: 0 }, delegatedProps.value, {
769
772
  to: _ctx.to,
770
773
  variant: "ghost",
771
774
  size: "icon",
772
- class: normalizeClass(props.class),
775
+ class: props.class,
773
776
  "button-class": _ctx.buttonClass
774
- }, {
777
+ }), {
775
778
  default: withCtx(() => [
776
779
  (openBlock(), createBlock(resolveDynamicComponent(_ctx.icon), {
777
780
  class: normalizeClass(_ctx.iconClass),
@@ -779,12 +782,11 @@ const _sfc_main$2W = /* @__PURE__ */ defineComponent({
779
782
  }, null, 8, ["class", "size"]))
780
783
  ]),
781
784
  _: 1
782
- }, 8, ["to", "class", "button-class"])) : (openBlock(), createBlock(unref(_sfc_main$3a), {
783
- key: 1,
785
+ }, 16, ["to", "class", "button-class"])) : (openBlock(), createBlock(unref(_sfc_main$3a), mergeProps({ key: 1 }, delegatedProps.value, {
784
786
  variant: "ghost",
785
787
  size: "icon",
786
- class: normalizeClass(unref(cn)(props.class, _ctx.buttonClass))
787
- }, {
788
+ class: unref(cn)(props.class, _ctx.buttonClass)
789
+ }), {
788
790
  default: withCtx(() => [
789
791
  (openBlock(), createBlock(resolveDynamicComponent(_ctx.icon), {
790
792
  class: normalizeClass(_ctx.iconClass),
@@ -792,7 +794,7 @@ const _sfc_main$2W = /* @__PURE__ */ defineComponent({
792
794
  }, null, 8, ["class", "size"]))
793
795
  ]),
794
796
  _: 1
795
- }, 8, ["class"]));
797
+ }, 16, ["class"]));
796
798
  };
797
799
  }
798
800
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tb-dev/vue-components",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Vue components",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -25,7 +25,7 @@
25
25
  "dependencies": {
26
26
  "@tanstack/vue-table": "^8.21.3",
27
27
  "@tb-dev/utils": "^7.0.2",
28
- "@tb-dev/vue": "^2.0.5",
28
+ "@tb-dev/vue": "^2.0.6",
29
29
  "@vueuse/core": "^13.3.0",
30
30
  "class-variance-authority": "^0.7.1",
31
31
  "clsx": "^2.1.1",