@soubiran/ui 0.10.0 → 0.10.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 +56 -69
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,12 +1,25 @@
1
1
  import { prose } from "./wrapper-classes.js";
2
- import { Fragment, Transition, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, inject, markRaw, mergeModels, mergeProps, nextTick, normalizeClass, onBeforeUnmount, onMounted, onScopeDispose, openBlock, provide, readonly, ref, renderList, renderSlot, resolveComponent, toDisplayString, toRef, toValue, unref, useModel, useTemplateRef, watch, withCtx, withModifiers } from "vue";
2
+ import { Fragment, Transition, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, inject, markRaw, mergeModels, mergeProps, nextTick, normalizeClass, onBeforeUnmount, onMounted, onScopeDispose, openBlock, provide, readonly, ref, renderList, renderSlot, toDisplayString, toRef, toValue, unref, useModel, useTemplateRef, watch, withCtx, withModifiers } from "vue";
3
3
  import { buildLocaleContext } from "@nuxt/ui/utils/locale";
4
+ import UAlert from "@nuxt/ui/components/Alert.vue";
4
5
  import { defineQueryOptions, useMutation, useQuery, useQueryCache } from "@pinia/colada";
5
6
  import { AnimatePresence, Motion, motion, useReducedMotion } from "motion-v";
6
7
  import { tv } from "tailwind-variants";
7
8
  import { FetchError, ofetch } from "ofetch";
9
+ import UAvatar from "@nuxt/ui/components/Avatar.vue";
10
+ import UButton from "@nuxt/ui/components/Button.vue";
11
+ import { useToast } from "@nuxt/ui/composables/useToast";
12
+ import UFormField from "@nuxt/ui/components/FormField.vue";
13
+ import UIcon from "@nuxt/ui/components/Icon.vue";
14
+ import UTextarea from "@nuxt/ui/components/Textarea.vue";
8
15
  import { RadioGroupIndicator, RadioGroupItem, RadioGroupRoot, TabsContent, TabsList, TabsRoot, TabsTrigger } from "reka-ui";
16
+ import UDropdownMenu from "@nuxt/ui/components/DropdownMenu.vue";
17
+ import UModal from "@nuxt/ui/components/Modal.vue";
9
18
  import { createSharedComposable, useTimeAgoIntl } from "@vueuse/core";
19
+ import UPopover from "@nuxt/ui/components/Popover.vue";
20
+ import UCard from "@nuxt/ui/components/Card.vue";
21
+ import UTooltip from "@nuxt/ui/components/Tooltip.vue";
22
+ import USeparator from "@nuxt/ui/components/Separator.vue";
10
23
  import PartySocket from "partysocket";
11
24
  //#region src/composables/comments/context.ts
12
25
  const commentsContextInjectionKey = Symbol("soubiran-ui.comments-context");
@@ -525,8 +538,7 @@ const _sfc_main$35 = /* @__PURE__ */ defineComponent({
525
538
  }
526
539
  const ui = computed(() => loginRequired());
527
540
  return (_ctx, _cache) => {
528
- const _component_UButton = resolveComponent("UButton");
529
- return openBlock(), createElementBlock("div", { class: normalizeClass(ui.value.base({ class: [props.ui?.base, props.class] })) }, [createElementVNode("p", { class: normalizeClass(ui.value.prose({ class: props.ui?.prose })) }, toDisplayString(unref(t)("LoginRequired.text")), 3), createElementVNode("div", { class: normalizeClass(ui.value.actions({ class: props.ui?.actions })) }, [createVNode(_component_UButton, {
541
+ return openBlock(), createElementBlock("div", { class: normalizeClass(ui.value.base({ class: [props.ui?.base, props.class] })) }, [createElementVNode("p", { class: normalizeClass(ui.value.prose({ class: props.ui?.prose })) }, toDisplayString(unref(t)("LoginRequired.text")), 3), createElementVNode("div", { class: normalizeClass(ui.value.actions({ class: props.ui?.actions })) }, [createVNode(UButton, {
530
542
  color: "neutral",
531
543
  variant: "solid",
532
544
  label: unref(t)("LoginRequired.action"),
@@ -618,9 +630,6 @@ const _sfc_main$34 = /* @__PURE__ */ defineComponent({
618
630
  __expose({ focus });
619
631
  const ui = computed(() => editor());
620
632
  return (_ctx, _cache) => {
621
- const _component_UTextarea = resolveComponent("UTextarea");
622
- const _component_UIcon = resolveComponent("UIcon");
623
- const _component_UFormField = resolveComponent("UFormField");
624
633
  return openBlock(), createBlock(unref(TabsRoot), {
625
634
  "default-value": "write",
626
635
  class: normalizeClass(ui.value.root({ class: [props.ui?.root, props.class] })),
@@ -650,16 +659,16 @@ const _sfc_main$34 = /* @__PURE__ */ defineComponent({
650
659
  class: normalizeClass(ui.value.content({ class: props.ui?.content })),
651
660
  tabindex: "-1"
652
661
  }, {
653
- default: withCtx(() => [createVNode(_component_UFormField, {
662
+ default: withCtx(() => [createVNode(UFormField, {
654
663
  ui: { help: "flex items-center gap-1" },
655
664
  error: props.error,
656
665
  help: unref(t)("Editor.write.help")
657
666
  }, {
658
- help: withCtx(({ help }) => [createVNode(_component_UIcon, {
667
+ help: withCtx(({ help }) => [createVNode(UIcon, {
659
668
  name: unref(info_duotone_default),
660
669
  class: "inline-block size-4"
661
670
  }, null, 8, ["name"]), createElementVNode("span", null, toDisplayString(help), 1)]),
662
- default: withCtx(() => [createVNode(_component_UTextarea, mergeProps({
671
+ default: withCtx(() => [createVNode(UTextarea, mergeProps({
663
672
  ref_key: "textarea",
664
673
  ref: textarea,
665
674
  modelValue: content.value,
@@ -808,18 +817,17 @@ const _sfc_main$32 = /* @__PURE__ */ defineComponent({
808
817
  __expose({ focus });
809
818
  const ui = computed(() => commentForm({ class: props.class }));
810
819
  return (_ctx, _cache) => {
811
- const _component_UButton = resolveComponent("UButton");
812
820
  return openBlock(), createBlock(_sfc_main$33, {
813
821
  class: normalizeClass(ui.value),
814
822
  onSubmit
815
823
  }, {
816
- actions: withCtx(() => [props.cancelable ? (openBlock(), createBlock(_component_UButton, {
824
+ actions: withCtx(() => [props.cancelable ? (openBlock(), createBlock(UButton, {
817
825
  key: 0,
818
826
  variant: "link",
819
827
  label: unref(t)("comments.CommentForm.actions.cancel"),
820
828
  disabled: isLoading.value,
821
829
  onClick: onCancel
822
- }, null, 8, ["label", "disabled"])) : createCommentVNode("v-if", true), createVNode(_component_UButton, {
830
+ }, null, 8, ["label", "disabled"])) : createCommentVNode("v-if", true), createVNode(UButton, {
823
831
  disabled: !formData.value.content,
824
832
  loading: isLoading.value,
825
833
  type: "submit",
@@ -861,8 +869,7 @@ const _sfc_main$31 = /* @__PURE__ */ defineComponent({
861
869
  const { data: user } = useQuery(currentUserQuery);
862
870
  const ui = computed(() => commentFormSection());
863
871
  return (_ctx, _cache) => {
864
- const _component_UAvatar = resolveComponent("UAvatar");
865
- return openBlock(), createElementBlock("section", { class: normalizeClass(ui.value.base({ class: [props.ui?.base, props.class] })) }, [createElementVNode("div", { class: normalizeClass(ui.value.header({ class: props.ui?.header })) }, [unref(user) ? (openBlock(), createBlock(_component_UAvatar, {
872
+ return openBlock(), createElementBlock("section", { class: normalizeClass(ui.value.base({ class: [props.ui?.base, props.class] })) }, [createElementVNode("div", { class: normalizeClass(ui.value.header({ class: props.ui?.header })) }, [unref(user) ? (openBlock(), createBlock(UAvatar, {
866
873
  key: 0,
867
874
  src: unref(user).avatar,
868
875
  title: unref(user).name
@@ -985,9 +992,7 @@ const _sfc_main$27 = /* @__PURE__ */ defineComponent({
985
992
  }
986
993
  const ui = computed(() => confirmModal());
987
994
  return (_ctx, _cache) => {
988
- const _component_UButton = resolveComponent("UButton");
989
- const _component_UModal = resolveComponent("UModal");
990
- return openBlock(), createBlock(_component_UModal, {
995
+ return openBlock(), createBlock(UModal, {
991
996
  title: __props.title,
992
997
  description: __props.description,
993
998
  ui: {
@@ -996,12 +1001,12 @@ const _sfc_main$27 = /* @__PURE__ */ defineComponent({
996
1001
  },
997
1002
  class: normalizeClass(ui.value.base({ class: [props.ui?.base, props.class] }))
998
1003
  }, {
999
- footer: withCtx(() => [createVNode(_component_UButton, {
1004
+ footer: withCtx(() => [createVNode(UButton, {
1000
1005
  label: props.cancelLabel ?? unref(t)("ConfirmModal.actions.cancel"),
1001
1006
  variant: "ghost",
1002
1007
  color: "neutral",
1003
1008
  onClick: onClose
1004
- }, null, 8, ["label"]), createVNode(_component_UButton, {
1009
+ }, null, 8, ["label"]), createVNode(UButton, {
1005
1010
  label: props.confirmLabel ?? unref(t)("ConfirmModal.actions.confirm"),
1006
1011
  variant: "solid",
1007
1012
  color: "neutral",
@@ -1327,8 +1332,7 @@ const _sfc_main$23 = /* @__PURE__ */ defineComponent({
1327
1332
  }
1328
1333
  const ui = computed(() => commentLike());
1329
1334
  return (_ctx, _cache) => {
1330
- const _component_UButton = resolveComponent("UButton");
1331
- return openBlock(), createBlock(_component_UButton, {
1335
+ return openBlock(), createBlock(UButton, {
1332
1336
  variant: "link",
1333
1337
  color: "neutral",
1334
1338
  title: unref(t)(props.comment.can.unlike ? "comments.CommentUnlike.title" : "comments.CommentLike.title"),
@@ -1432,14 +1436,11 @@ const _sfc_main$21 = /* @__PURE__ */ defineComponent({
1432
1436
  });
1433
1437
  const ui = computed(() => comment({ isReply: !!props.parentComment }));
1434
1438
  return (_ctx, _cache) => {
1435
- const _component_UAvatar = resolveComponent("UAvatar");
1436
- const _component_UButton = resolveComponent("UButton");
1437
- const _component_UDropdownMenu = resolveComponent("UDropdownMenu");
1438
1439
  return openBlock(), createElementBlock("article", {
1439
1440
  id: props.comment.html_id,
1440
1441
  class: normalizeClass(ui.value.base({ class: [props.ui?.base, props.class] })),
1441
1442
  style: { "--avatar-size": "1.875rem" }
1442
- }, [createElementVNode("div", { class: normalizeClass(ui.value.wrapper({ class: props.ui?.wrapper })) }, [createElementVNode("div", { class: normalizeClass(ui.value.header({ class: props.ui?.header })) }, [createVNode(_component_UAvatar, {
1443
+ }, [createElementVNode("div", { class: normalizeClass(ui.value.wrapper({ class: props.ui?.wrapper })) }, [createElementVNode("div", { class: normalizeClass(ui.value.header({ class: props.ui?.header })) }, [createVNode(UAvatar, {
1443
1444
  src: props.comment.user.avatar,
1444
1445
  alt: props.comment.user.name,
1445
1446
  size: props.parentComment ? "sm" : "md",
@@ -1449,12 +1450,12 @@ const _sfc_main$21 = /* @__PURE__ */ defineComponent({
1449
1450
  "alt",
1450
1451
  "size",
1451
1452
  "class"
1452
- ]), createVNode(_sfc_main$24, { comment: props.comment }, null, 8, ["comment"])], 2), showActions.value ? (openBlock(), createBlock(_component_UDropdownMenu, {
1453
+ ]), createVNode(_sfc_main$24, { comment: props.comment }, null, 8, ["comment"])], 2), showActions.value ? (openBlock(), createBlock(UDropdownMenu, {
1453
1454
  key: 0,
1454
1455
  items: actions.value,
1455
1456
  content: { align: "end" }
1456
1457
  }, {
1457
- default: withCtx(() => [createVNode(_component_UButton, {
1458
+ default: withCtx(() => [createVNode(UButton, {
1458
1459
  icon: "i-ph-dots-three-bold",
1459
1460
  variant: "link",
1460
1461
  "aria-label": unref(t)("comments.Comment.actionMenu")
@@ -1523,7 +1524,6 @@ const _sfc_main$20 = /* @__PURE__ */ defineComponent({
1523
1524
  }
1524
1525
  const ui = computed(() => discussionReply());
1525
1526
  return (_ctx, _cache) => {
1526
- const _component_UButton = resolveComponent("UButton");
1527
1527
  return isFormShown.value ? (openBlock(), createBlock(_sfc_main$32, {
1528
1528
  key: 0,
1529
1529
  ref_key: "form",
@@ -1532,7 +1532,7 @@ const _sfc_main$20 = /* @__PURE__ */ defineComponent({
1532
1532
  "parent-comment": props.parentComment,
1533
1533
  onSuccess,
1534
1534
  onCancel: hideForm
1535
- }, null, 8, ["parent-comment"])) : (openBlock(), createBlock(_component_UButton, {
1535
+ }, null, 8, ["parent-comment"])) : (openBlock(), createBlock(UButton, {
1536
1536
  key: 1,
1537
1537
  color: "neutral",
1538
1538
  variant: "link",
@@ -1726,7 +1726,6 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
1726
1726
  });
1727
1727
  const ui = computed(() => discussionsSection());
1728
1728
  return (_ctx, _cache) => {
1729
- const _component_UAlert = resolveComponent("UAlert");
1730
1729
  return openBlock(), createElementBlock("section", _hoisted_1$12, [createElementVNode("div", { class: normalizeClass(ui.value.base({ class: [props.class, props.ui?.base] })) }, [
1731
1730
  createElementVNode("div", { class: normalizeClass(ui.value.header({ class: props.ui?.header })) }, [createVNode(_sfc_main$14), createVNode(_sfc_main$16, { comments: unref(comments) ?? [] }, null, 8, ["comments"])], 2),
1732
1731
  createVNode(unref(AnimatePresence), null, {
@@ -1749,7 +1748,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
1749
1748
  opacity: 0
1750
1749
  }
1751
1750
  }, {
1752
- default: withCtx(() => [createVNode(_component_UAlert, {
1751
+ default: withCtx(() => [createVNode(UAlert, {
1753
1752
  title: unref(banner).message,
1754
1753
  class: normalizeClass(ui.value.alert({ class: props.ui?.alert })),
1755
1754
  color: unref(banner).kind === "error" ? "error" : "success",
@@ -1969,13 +1968,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
1969
1968
  });
1970
1969
  const ui = computed(() => feedbackCard());
1971
1970
  return (_ctx, _cache) => {
1972
- const _component_UIcon = resolveComponent("UIcon");
1973
- const _component_UTextarea = resolveComponent("UTextarea");
1974
- const _component_UFormField = resolveComponent("UFormField");
1975
- const _component_UTooltip = resolveComponent("UTooltip");
1976
- const _component_UButton = resolveComponent("UButton");
1977
- const _component_UCard = resolveComponent("UCard");
1978
- return openBlock(), createBlock(_component_UCard, {
1971
+ return openBlock(), createBlock(UCard, {
1979
1972
  class: normalizeClass(ui.value.base({ class: [props.ui?.base, props.class] })),
1980
1973
  ui: {
1981
1974
  body: "p-2 sm:p-2",
@@ -1999,7 +1992,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
1999
1992
  "id",
2000
1993
  "value",
2001
1994
  "class"
2002
- ]), createVNode(_component_UTooltip, { text: unref(t)(item.title) }, {
1995
+ ]), createVNode(UTooltip, { text: unref(t)(item.title) }, {
2003
1996
  default: withCtx(() => [createElementVNode("label", {
2004
1997
  for: item.value,
2005
1998
  class: normalizeClass(ui.value.radioGroupLabel({ class: props.ui?.radioGroupLabel }))
@@ -2008,7 +2001,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
2008
2001
  }, 1032, ["text"])]);
2009
2002
  }), 64))]),
2010
2003
  _: 1
2011
- }, 8, ["modelValue", "class"]), createVNode(_component_UButton, {
2004
+ }, 8, ["modelValue", "class"]), createVNode(UButton, {
2012
2005
  size: "sm",
2013
2006
  label: unref(t)("FeedbackCard.action"),
2014
2007
  loading: unref(isLoading),
@@ -2036,7 +2029,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
2036
2029
  }
2037
2030
  }
2038
2031
  }, {
2039
- default: withCtx(() => [createVNode(_component_UIcon, {
2032
+ default: withCtx(() => [createVNode(UIcon, {
2040
2033
  name: unref(check_circle_default),
2041
2034
  class: normalizeClass(ui.value.successfullySentIcon({ class: props.ui?.successfullySentIcon }))
2042
2035
  }, null, 8, ["name", "class"])]),
@@ -2078,7 +2071,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
2078
2071
  default: withCtx(() => [createTextVNode(toDisplayString(unref(t)("FeedbackCard.success.thanks")), 1)]),
2079
2072
  _: 1
2080
2073
  })
2081
- ], 2)], 64)) : createCommentVNode("v-if", true), createVNode(_component_UFormField, { error: formattedError.value }, {
2074
+ ], 2)], 64)) : createCommentVNode("v-if", true), createVNode(UFormField, { error: formattedError.value }, {
2082
2075
  error: withCtx(({ error: formFieldError }) => [formFieldError ? (openBlock(), createBlock(unref(motion).div, {
2083
2076
  key: 0,
2084
2077
  initial: { height: 0 },
@@ -2088,7 +2081,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
2088
2081
  default: withCtx(() => [createTextVNode(toDisplayString(formFieldError), 1)]),
2089
2082
  _: 2
2090
2083
  }, 1024)) : createCommentVNode("v-if", true)]),
2091
- default: withCtx(() => [createVNode(_component_UTextarea, {
2084
+ default: withCtx(() => [createVNode(UTextarea, {
2092
2085
  modelValue: content.value,
2093
2086
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => content.value = $event),
2094
2087
  placeholder: unref(t)("FeedbackCard.placeholder"),
@@ -2131,9 +2124,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
2131
2124
  }
2132
2125
  const ui = computed(() => feedback());
2133
2126
  return (_ctx, _cache) => {
2134
- const _component_UButton = resolveComponent("UButton");
2135
- const _component_UPopover = resolveComponent("UPopover");
2136
- return openBlock(), createBlock(_component_UPopover, { ui: { content: "ring-0 data-[state=open]:animate-[scale-up_100ms_ease-out]" } }, {
2127
+ return openBlock(), createBlock(UPopover, { ui: { content: "ring-0 data-[state=open]:animate-[scale-up_100ms_ease-out]" } }, {
2137
2128
  content: withCtx(() => [createVNode(_sfc_main$3, {
2138
2129
  id: props.id,
2139
2130
  rating: rating.value,
@@ -2146,7 +2137,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
2146
2137
  "rating",
2147
2138
  "content"
2148
2139
  ])]),
2149
- default: withCtx(() => [createVNode(_component_UButton, {
2140
+ default: withCtx(() => [createVNode(UButton, {
2150
2141
  variant: "link",
2151
2142
  color: "neutral",
2152
2143
  label: unref(t)("Feedback.action"),
@@ -2270,17 +2261,14 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
2270
2261
  }
2271
2262
  const ui = computed(() => header());
2272
2263
  return (_ctx, _cache) => {
2273
- const _component_UButton = resolveComponent("UButton");
2274
- const _component_UTooltip = resolveComponent("UTooltip");
2275
- const _component_USeparator = resolveComponent("USeparator");
2276
2264
  return openBlock(), createBlock(_sfc_main$1, { ui: { inner: "max-w-5xl" } }, {
2277
2265
  default: withCtx(() => [createElementVNode("header", { class: normalizeClass(ui.value.base({ class: [props.ui?.base, props.class] })) }, [
2278
2266
  (openBlock(true), createElementBlock(Fragment, null, renderList(props.links, (link) => {
2279
- return openBlock(), createBlock(_component_UTooltip, {
2267
+ return openBlock(), createBlock(UTooltip, {
2280
2268
  key: link.label,
2281
2269
  text: link.label
2282
2270
  }, {
2283
- default: withCtx(() => [createVNode(_component_UButton, {
2271
+ default: withCtx(() => [createVNode(UButton, {
2284
2272
  variant: "link",
2285
2273
  color: "neutral",
2286
2274
  to: link.to,
@@ -2304,12 +2292,12 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
2304
2292
  _: 2
2305
2293
  }, 1032, ["text"]);
2306
2294
  }), 128)),
2307
- createVNode(_component_USeparator, {
2295
+ createVNode(USeparator, {
2308
2296
  orientation: "vertical",
2309
2297
  class: "h-5"
2310
2298
  }),
2311
- createVNode(_component_UTooltip, { text: "LinkedIn" }, {
2312
- default: withCtx(() => [createVNode(_component_UButton, {
2299
+ createVNode(UTooltip, { text: "LinkedIn" }, {
2300
+ default: withCtx(() => [createVNode(UButton, {
2313
2301
  href: "https://www.linkedin.com/in/esteban25/",
2314
2302
  target: "_blank",
2315
2303
  variant: "link",
@@ -2322,8 +2310,8 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
2322
2310
  }, null, 8, ["icon", "class"])]),
2323
2311
  _: 1
2324
2312
  }),
2325
- createVNode(_component_UTooltip, { text: "X" }, {
2326
- default: withCtx(() => [createVNode(_component_UButton, {
2313
+ createVNode(UTooltip, { text: "X" }, {
2314
+ default: withCtx(() => [createVNode(UButton, {
2327
2315
  href: "https://x.com/soubiran_",
2328
2316
  target: "_blank",
2329
2317
  variant: "link",
@@ -2336,8 +2324,8 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
2336
2324
  }, null, 8, ["icon", "class"])]),
2337
2325
  _: 1
2338
2326
  }),
2339
- createVNode(_component_UTooltip, { text: "Twitch" }, {
2340
- default: withCtx(() => [createVNode(_component_UButton, {
2327
+ createVNode(UTooltip, { text: "Twitch" }, {
2328
+ default: withCtx(() => [createVNode(UButton, {
2341
2329
  href: "https://www.twitch.tv/barbapapazes",
2342
2330
  target: "_blank",
2343
2331
  variant: "link",
@@ -2350,8 +2338,8 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
2350
2338
  }, null, 8, ["icon", "class"])]),
2351
2339
  _: 1
2352
2340
  }),
2353
- createVNode(_component_UTooltip, { text: "GitHub" }, {
2354
- default: withCtx(() => [createVNode(_component_UButton, {
2341
+ createVNode(UTooltip, { text: "GitHub" }, {
2342
+ default: withCtx(() => [createVNode(UButton, {
2355
2343
  href: "https://github.com/barbapapazes",
2356
2344
  target: "_blank",
2357
2345
  variant: "link",
@@ -2364,8 +2352,8 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
2364
2352
  }, null, 8, ["icon", "class"])]),
2365
2353
  _: 1
2366
2354
  }),
2367
- createVNode(_component_UTooltip, { text: "Discord" }, {
2368
- default: withCtx(() => [createVNode(_component_UButton, {
2355
+ createVNode(UTooltip, { text: "Discord" }, {
2356
+ default: withCtx(() => [createVNode(UButton, {
2369
2357
  href: "https://discord.gg/q2ghCGUuFR",
2370
2358
  target: "_blank",
2371
2359
  variant: "link",
@@ -2519,14 +2507,13 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
2519
2507
  const props = __props;
2520
2508
  const ui = computed(() => socials());
2521
2509
  return (_ctx, _cache) => {
2522
- const _component_UIcon = resolveComponent("UIcon");
2523
2510
  return openBlock(), createElementBlock("p", { class: normalizeClass(ui.value.base({ class: [props.ui?.base, props.class] })) }, [
2524
2511
  createElementVNode("a", {
2525
2512
  href: "https://www.linkedin.com/in/esteban25/",
2526
2513
  rel: "noopener noreferrer",
2527
2514
  target: "_blank",
2528
2515
  class: normalizeClass(ui.value.link({ class: props.ui?.link }))
2529
- }, [createVNode(_component_UIcon, {
2516
+ }, [createVNode(UIcon, {
2530
2517
  name: unref(linkedin_default),
2531
2518
  class: normalizeClass(ui.value.icon({ class: props.ui?.icon }))
2532
2519
  }, null, 8, ["name", "class"]), _cache[0] || (_cache[0] = createElementVNode("span", null, "LinkedIn", -1))], 2),
@@ -2535,7 +2522,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
2535
2522
  rel: "noopener noreferrer",
2536
2523
  target: "_blank",
2537
2524
  class: normalizeClass(ui.value.link({ class: props.ui?.link }))
2538
- }, [createVNode(_component_UIcon, {
2525
+ }, [createVNode(UIcon, {
2539
2526
  name: unref(x_default),
2540
2527
  class: normalizeClass(ui.value.icon({ class: props.ui?.icon }))
2541
2528
  }, null, 8, ["name", "class"]), _cache[1] || (_cache[1] = createElementVNode("span", null, "X (Twitter)", -1))], 2),
@@ -2544,7 +2531,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
2544
2531
  rel: "noopener noreferrer",
2545
2532
  target: "_blank",
2546
2533
  class: normalizeClass(ui.value.link({ class: props.ui?.link }))
2547
- }, [createVNode(_component_UIcon, {
2534
+ }, [createVNode(UIcon, {
2548
2535
  name: unref(github_default),
2549
2536
  class: normalizeClass(ui.value.icon({ class: props.ui?.icon }))
2550
2537
  }, null, 8, ["name", "class"]), _cache[2] || (_cache[2] = createElementVNode("span", null, "GitHub", -1))], 2),
@@ -2553,7 +2540,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
2553
2540
  rel: "noopener noreferrer",
2554
2541
  target: "_blank",
2555
2542
  class: normalizeClass(ui.value.link({ class: props.ui?.link }))
2556
- }, [createVNode(_component_UIcon, {
2543
+ }, [createVNode(UIcon, {
2557
2544
  name: unref(twitch_default),
2558
2545
  class: normalizeClass(ui.value.icon({ class: props.ui?.icon }))
2559
2546
  }, null, 8, ["name", "class"]), _cache[3] || (_cache[3] = createElementVNode("span", null, "Twitch", -1))], 2),
@@ -2562,7 +2549,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
2562
2549
  target: "_blank",
2563
2550
  rel: "noopener noreferrer",
2564
2551
  class: normalizeClass(ui.value.link({ class: props.ui?.link }))
2565
- }, [createVNode(_component_UIcon, {
2552
+ }, [createVNode(UIcon, {
2566
2553
  name: unref(youtube_default),
2567
2554
  class: normalizeClass(ui.value.icon({ class: props.ui?.icon }))
2568
2555
  }, null, 8, ["name", "class"]), _cache[4] || (_cache[4] = createElementVNode("span", null, "YouTube", -1))], 2)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@soubiran/ui",
3
3
  "type": "module",
4
- "version": "0.10.0",
4
+ "version": "0.10.1",
5
5
  "author": "Estéban Soubiran <esteban@soubiran.dev>",
6
6
  "license": "MIT",
7
7
  "funding": "https://github.com/sponsors/Barbapapazes",