@soubiran/ui 0.10.0 → 0.10.2

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