@indielayer/ui 1.0.0-alpha.5 → 1.0.0-alpha.6

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/lib/index.es.js CHANGED
@@ -365,7 +365,7 @@ const tailwindColors = Object.freeze({
365
365
  900: "#881337"
366
366
  }
367
367
  });
368
- var version = "1.0.0-alpha.5";
368
+ var version = "1.0.0-alpha.6";
369
369
  const injectTabKey = Symbol();
370
370
  const injectFormKey = Symbol();
371
371
  const injectIconsKey = Symbol();
@@ -637,7 +637,8 @@ const _sfc_main$H = defineComponent({
637
637
  }
638
638
  }),
639
639
  setup(props) {
640
- const icons = inject(injectIconsKey, {});
640
+ const icons = inject(injectIconsKey, () => {
641
+ }, false);
641
642
  const sizeClasses = computed(() => {
642
643
  if (props.size === "xs")
643
644
  return "h-3 w-3";
@@ -679,18 +680,18 @@ const _sfc_main$H = defineComponent({
679
680
  }
680
681
  });
681
682
  function getSVG(svgString) {
682
- const temp = document.createElement("template");
683
- temp.innerHTML = svgString.trim();
684
- const [svg] = temp.content.children;
685
- const names = svg.getAttributeNames();
683
+ svgString = svgString.trim();
684
+ const content = svgString.substring(svgString.indexOf(">") + 1, svgString.lastIndexOf("</svg>"));
685
+ const attrsRaw = svgString.substring(svgString.indexOf("<svg") + 4, svgString.indexOf(">")).trim().match(/[\w-]+="[^"]*"/g);
686
686
  const attributes = {};
687
- names.forEach((n) => {
688
- if (!["height", "width", "class"].includes(n))
689
- attributes[n] = svg.getAttribute(n);
687
+ attrsRaw == null ? void 0 : attrsRaw.forEach((a) => {
688
+ const [attribute, value] = a.split("=");
689
+ if (!["height", "width", "class"].includes(attribute))
690
+ attributes[attribute] = value.replace(/(^"|"$)/g, "");
690
691
  });
691
692
  return {
692
693
  attributes,
693
- content: svg.innerHTML
694
+ content
694
695
  };
695
696
  }
696
697
  return {
@@ -855,6 +856,8 @@ const _sfc_main$F = defineComponent({
855
856
  type: String,
856
857
  default: "right"
857
858
  },
859
+ offsetX: [Number, String],
860
+ offsetY: [Number, String],
858
861
  animated: Boolean,
859
862
  outlined: Boolean,
860
863
  icon: String,
@@ -889,8 +892,17 @@ const _sfc_main$F = defineComponent({
889
892
  }
890
893
  return classes;
891
894
  });
895
+ const offsetStyle = computed(() => {
896
+ const style = {};
897
+ if (props.offsetX)
898
+ style[props.align === "left" ? "marginLeft" : "marginRight"] = props.offsetX + "px";
899
+ if (props.offsetY)
900
+ style[props.position === "top" ? "marginTop" : "marginBottom"] = props.offsetY + "px";
901
+ return style;
902
+ });
892
903
  return {
893
904
  styles,
905
+ offsetStyle,
894
906
  positionClasses
895
907
  };
896
908
  }
@@ -915,7 +927,8 @@ function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
915
927
  {
916
928
  "border-2 border-gray-50 dark:border-gray-900": _ctx.outlined
917
929
  }
918
- ]])
930
+ ]]),
931
+ style: normalizeStyle(_ctx.offsetStyle)
919
932
  }, [
920
933
  _ctx.animated ? (openBlock(), createElementBlock("div", _hoisted_2$i)) : createCommentVNode("", true),
921
934
  createElementVNode("div", {
@@ -931,7 +944,7 @@ function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
931
944
  }, [
932
945
  renderSlot(_ctx.$slots, "content")
933
946
  ], 2)
934
- ], 2)) : createCommentVNode("", true)
947
+ ], 6)) : createCommentVNode("", true)
935
948
  ])
936
949
  ]),
937
950
  _: 3
@@ -1151,8 +1164,8 @@ const _sfc_main$C = defineComponent({
1151
1164
  bg: gray[800],
1152
1165
  text: "white",
1153
1166
  border: gray[600],
1154
- hover: { bg: !props.loading ? gray[800] : "" },
1155
- active: { bg: !props.loading ? gray[700] : "" }
1167
+ hover: { bg: !props.loading ? gray[700] : "" },
1168
+ active: { bg: !props.loading ? gray[600] : "" }
1156
1169
  }
1157
1170
  }));
1158
1171
  }
@@ -1415,7 +1428,7 @@ function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
1415
1428
  const cssModules$7 = {
1416
1429
  "$style": style0$7
1417
1430
  };
1418
- var XButton = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["render", _sfc_render$C], ["__cssModules", cssModules$7], ["__scopeId", "data-v-7ada6753"]]);
1431
+ var XButton = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["render", _sfc_render$C], ["__cssModules", cssModules$7], ["__scopeId", "data-v-6cb75733"]]);
1419
1432
  var style0$6 = {
1420
1433
  "button-group": "_button-group_s7fyl_2",
1421
1434
  "button-group--rounded": "_button-group--rounded_s7fyl_1"
@@ -1596,7 +1609,7 @@ const _sfc_main$z = defineComponent({
1596
1609
  const checked = ref(false);
1597
1610
  watch(() => props.modelValue, (value) => {
1598
1611
  checked.value = !!value;
1599
- });
1612
+ }, { immediate: true });
1600
1613
  watch(() => checked.value, (value) => {
1601
1614
  emit("update:modelValue", value);
1602
1615
  });
@@ -1679,7 +1692,7 @@ const _sfc_main$z = defineComponent({
1679
1692
  });
1680
1693
  }
1681
1694
  });
1682
- const _withScopeId$2 = (n) => (pushScopeId("data-v-54fce636"), n = n(), popScopeId(), n);
1695
+ const _withScopeId$2 = (n) => (pushScopeId("data-v-05f49cb5"), n = n(), popScopeId(), n);
1683
1696
  const _hoisted_1$p = { class: "inline-block relative cursor-pointer align-middle mb-1 pb-2" };
1684
1697
  const _hoisted_2$g = ["aria-checked", "aria-disabled", "disabled", "name", "required"];
1685
1698
  const _hoisted_3$d = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("path", { d: "M0 11l2-2 5 5L18 3l2 2L7 18z" }, null, -1));
@@ -1752,7 +1765,7 @@ function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
1752
1765
  const cssModules$5 = {
1753
1766
  "$style": style0$5
1754
1767
  };
1755
- var Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["render", _sfc_render$z], ["__cssModules", cssModules$5], ["__scopeId", "data-v-54fce636"]]);
1768
+ var Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["render", _sfc_render$z], ["__cssModules", cssModules$5], ["__scopeId", "data-v-05f49cb5"]]);
1756
1769
  const _sfc_main$y = defineComponent({
1757
1770
  name: "XCollapse",
1758
1771
  components: {
@@ -2523,7 +2536,7 @@ const _sfc_main$v = defineComponent({
2523
2536
  useResizeObserver(scrollEl, triggerScroll);
2524
2537
  if (props.horizontal && props.mousewheel)
2525
2538
  useEventListener(scrollEl, "wheel", (e) => {
2526
- if (!scrollEl.value)
2539
+ if (!scrollEl.value || scrollEl.value.scrollWidth <= scrollEl.value.clientWidth)
2527
2540
  return;
2528
2541
  e.preventDefault();
2529
2542
  scrollEl.value.scrollLeft += e.deltaY + e.deltaX;
@@ -2576,7 +2589,7 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
2576
2589
  const cssModules$4 = {
2577
2590
  "$style": style0$4
2578
2591
  };
2579
- var XScroll = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["render", _sfc_render$v], ["__cssModules", cssModules$4], ["__scopeId", "data-v-ff88aa62"]]);
2592
+ var XScroll = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["render", _sfc_render$v], ["__cssModules", cssModules$4], ["__scopeId", "data-v-7362ac18"]]);
2580
2593
  const _sfc_main$u = defineComponent({
2581
2594
  name: "XDrawer",
2582
2595
  components: {
@@ -2939,7 +2952,8 @@ const _sfc_main$r = defineComponent({
2939
2952
  type: String,
2940
2953
  default: "text"
2941
2954
  },
2942
- inputClass: String
2955
+ inputClass: String,
2956
+ block: Boolean
2943
2957
  }),
2944
2958
  emits: useInputtable.emits(),
2945
2959
  setup(props, { emit }) {
@@ -3016,7 +3030,7 @@ const _hoisted_8$1 = ["textContent"];
3016
3030
  function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
3017
3031
  const _component_x_icon = resolveComponent("x-icon");
3018
3032
  return openBlock(), createElementBlock("label", {
3019
- class: normalizeClass(["inline-block relative align-bottom text-left", { "mb-3": _ctx.isInsideForm }])
3033
+ class: normalizeClass(["inline-block relative align-bottom text-left", { "mb-3": _ctx.isInsideForm, "w-full": _ctx.block }])
3020
3034
  }, [
3021
3035
  _ctx.label ? (openBlock(), createElementBlock("p", {
3022
3036
  key: 0,
@@ -3054,7 +3068,7 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
3054
3068
  placeholder: _ctx.placeholder,
3055
3069
  readonly: _ctx.readonly,
3056
3070
  type: _ctx.currentType,
3057
- value: _ctx.modelValue
3071
+ value: _ctx.modelValue || ""
3058
3072
  }, _ctx.$attrs, toHandlers(_ctx.inputListeners), {
3059
3073
  onChange: _cache[0] || (_cache[0] = (...args) => _ctx.onChange && _ctx.onChange(...args))
3060
3074
  }), null, 16, _hoisted_3$b),
@@ -3133,7 +3147,7 @@ const _sfc_main$q = defineComponent({
3133
3147
  };
3134
3148
  }
3135
3149
  });
3136
- const _withScopeId$1 = (n) => (pushScopeId("data-v-b6c57c10"), n = n(), popScopeId(), n);
3150
+ const _withScopeId$1 = (n) => (pushScopeId("data-v-af336fea"), n = n(), popScopeId(), n);
3137
3151
  const _hoisted_1$i = {
3138
3152
  key: 0,
3139
3153
  class: "inline-flex items-center"
@@ -3160,7 +3174,7 @@ const _hoisted_2$d = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ create
3160
3174
  function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
3161
3175
  return openBlock(), createBlock(resolveDynamicComponent(_ctx.to ? "router-link" : _ctx.tag), {
3162
3176
  to: _ctx.to,
3163
- class: normalizeClass(["transition duration-300 ease-in-out cursor-pointer text-[color:var(--x-text)] dark:text-[color:var(--x-dark-text)]", [
3177
+ class: normalizeClass(["transition duration-300 ease-in-out cursor-pointer inline-flex text-[color:var(--x-text)] dark:text-[color:var(--x-dark-text)]", [
3164
3178
  [_ctx.shadow ? _ctx.$style["link--shadow"] : ""],
3165
3179
  {
3166
3180
  "underline": _ctx.underline
@@ -3180,7 +3194,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
3180
3194
  const cssModules$3 = {
3181
3195
  "$style": style0$3
3182
3196
  };
3183
- var XLink = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$q], ["__cssModules", cssModules$3], ["__scopeId", "data-v-b6c57c10"]]);
3197
+ var XLink = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$q], ["__cssModules", cssModules$3], ["__scopeId", "data-v-af336fea"]]);
3184
3198
  var style0$2 = {
3185
3199
  "menu-item": "_menu-item_1v1kj_2",
3186
3200
  "menu-item--active": "_menu-item--active_1v1kj_1"
@@ -3209,8 +3223,14 @@ const _sfc_main$p = defineComponent({
3209
3223
  icon: String,
3210
3224
  iconRight: String,
3211
3225
  loading: Boolean,
3212
- rounded: Boolean,
3213
- filled: Boolean,
3226
+ rounded: {
3227
+ type: Boolean,
3228
+ default: true
3229
+ },
3230
+ filled: {
3231
+ type: Boolean,
3232
+ default: true
3233
+ },
3214
3234
  selected: Boolean,
3215
3235
  disabled: Boolean
3216
3236
  }),
@@ -3241,6 +3261,11 @@ const _sfc_main$p = defineComponent({
3241
3261
  classObserver.disconnect();
3242
3262
  });
3243
3263
  function onItemClick(e) {
3264
+ if (cItem.value.disabled) {
3265
+ e.stopPropagation();
3266
+ e.preventDefault();
3267
+ return;
3268
+ }
3244
3269
  cItem.value.onClick && cItem.value.onClick(e);
3245
3270
  emit("click", e);
3246
3271
  }
@@ -3265,7 +3290,12 @@ const _sfc_main$p = defineComponent({
3265
3290
  const color = colors.getPalette(cItem.value.color || "gray");
3266
3291
  const gray = colors.getPalette("gray");
3267
3292
  if (cItem.value.disabled)
3268
- return css.get("text", gray[300]);
3293
+ return css.variables({
3294
+ text: gray[300],
3295
+ dark: {
3296
+ text: gray[600]
3297
+ }
3298
+ });
3269
3299
  if (filled.value) {
3270
3300
  if (isActive.value) {
3271
3301
  return css.variables({
@@ -3359,7 +3389,7 @@ function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
3359
3389
  href: _ctx.cItem.href,
3360
3390
  target: _ctx.cItem.target,
3361
3391
  color: _ctx.cItem.color,
3362
- class: normalizeClass(["relative flex items-center whitespace-nowrap px-3 mt-1", [
3392
+ class: normalizeClass(["relative !flex items-center whitespace-nowrap px-3 mt-1", [
3363
3393
  _ctx.$style["menu-item"],
3364
3394
  [_ctx.isActive ? _ctx.$style["menu-item--active"] : ""],
3365
3395
  {
@@ -3414,7 +3444,7 @@ function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
3414
3444
  const cssModules$2 = {
3415
3445
  "$style": style0$2
3416
3446
  };
3417
- var XMenuItem = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_render$p], ["__cssModules", cssModules$2], ["__scopeId", "data-v-6f9d99e4"]]);
3447
+ var XMenuItem = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_render$p], ["__cssModules", cssModules$2], ["__scopeId", "data-v-11179d66"]]);
3418
3448
  const _sfc_main$o = defineComponent({
3419
3449
  name: "XMenu",
3420
3450
  components: {
@@ -3431,8 +3461,14 @@ const _sfc_main$o = defineComponent({
3431
3461
  collapseIcon: String,
3432
3462
  expanded: Boolean,
3433
3463
  disabled: Boolean,
3434
- rounded: Boolean,
3435
- filled: Boolean
3464
+ rounded: {
3465
+ type: Boolean,
3466
+ default: true
3467
+ },
3468
+ filled: {
3469
+ type: Boolean,
3470
+ default: true
3471
+ }
3436
3472
  }),
3437
3473
  emits: ["expand"]
3438
3474
  });
@@ -3523,7 +3559,8 @@ var Menu = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_render$o]])
3523
3559
  const _sfc_main$n = defineComponent({
3524
3560
  name: "XModal",
3525
3561
  components: {
3526
- XScroll
3562
+ XScroll,
3563
+ XIcon
3527
3564
  },
3528
3565
  props: {
3529
3566
  size: {
@@ -3648,7 +3685,7 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
3648
3685
  }, [
3649
3686
  _ctx.showClose ? (openBlock(), createElementBlock("div", {
3650
3687
  key: 0,
3651
- class: normalizeClass(["absolute p-1 top-4 right-4 rounded-full bg-opacity-10 hover:bg-opacity-30 cursor-pointer", [
3688
+ class: normalizeClass(["flex absolute p-1 top-4 z-10 right-4 rounded-full bg-opacity-10 hover:bg-opacity-30 cursor-pointer", [
3652
3689
  _ctx.$slots.image ? "bg-gray-900 text-white" : "bg-gray-500 text-gray-800 dark:text-gray-300"
3653
3690
  ]]),
3654
3691
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.close && _ctx.close(...args))
@@ -4485,7 +4522,7 @@ const _sfc_main$g = defineComponent({
4485
4522
  });
4486
4523
  }
4487
4524
  });
4488
- const _withScopeId = (n) => (pushScopeId("data-v-857bd200"), n = n(), popScopeId(), n);
4525
+ const _withScopeId = (n) => (pushScopeId("data-v-4e34dad2"), n = n(), popScopeId(), n);
4489
4526
  const _hoisted_1$c = ["aria-selected", "aria-disabled"];
4490
4527
  const _hoisted_2$8 = ["name", "required", "disabled"];
4491
4528
  const _hoisted_3$6 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("circle", {
@@ -4502,10 +4539,11 @@ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
4502
4539
  const _component_x_spinner = resolveComponent("x-spinner");
4503
4540
  return openBlock(), createElementBlock("label", {
4504
4541
  ref: "elRef",
4505
- class: "inline-block mb-1 relative cursor-pointer focus:outline-none",
4542
+ tabindex: "0",
4543
+ class: "inline-block mb-1 relative cursor-pointer focus:outline-none group",
4506
4544
  "aria-selected": _ctx.selected ? "true" : "false",
4507
4545
  "aria-disabled": _ctx.disabled || _ctx.loading ? "true" : void 0,
4508
- tabindex: "0",
4546
+ style: normalizeStyle(_ctx.styles),
4509
4547
  onKeypress: _cache[1] || (_cache[1] = withKeys(withModifiers(($event) => _ctx.$emit("update:modelValue", _ctx.value), ["prevent", "stop"]), ["space"]))
4510
4548
  }, [
4511
4549
  createElementVNode("div", {
@@ -4522,15 +4560,14 @@ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
4522
4560
  [vModelRadio, _ctx.selected]
4523
4561
  ]),
4524
4562
  createElementVNode("div", {
4525
- class: normalizeClass(["rounded-full flex justify-center items-center flex-shrink-0 border-2 border-[color:var(--x-border)] bg-[color:var(--x-bg)] dark:border-[color:var(--x-dark-border)] dark:bg-[color:var(--x-dark-bg)]", [
4563
+ class: normalizeClass(["rounded-full flex justify-center items-center flex-shrink-0 border-2 outline-offset-2 outline-slate-300 dark:outline-slate-500 group-focus:outline-1 group-focus:outline border-[color:var(--x-border)] bg-[color:var(--x-bg)] dark:border-[color:var(--x-dark-border)] dark:bg-[color:var(--x-dark-bg)]", [
4526
4564
  [_ctx.glow && !_ctx.disabled && !_ctx.loading ? _ctx.$style["radio--glow"] : ""],
4527
4565
  {
4528
4566
  "h-4 w-4": _ctx.size === "sm" || _ctx.size === "xs",
4529
4567
  "h-5 w-5": !_ctx.size || !["xs", "sm", "xl"].includes(_ctx.size),
4530
4568
  "h-6 w-6": _ctx.size === "xl"
4531
4569
  }
4532
- ]]),
4533
- style: normalizeStyle(_ctx.styles)
4570
+ ]])
4534
4571
  }, [
4535
4572
  _ctx.loading ? (openBlock(), createBlock(_component_x_spinner, {
4536
4573
  key: 0,
@@ -4547,7 +4584,7 @@ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
4547
4584
  }]),
4548
4585
  viewBox: "0 0 20 20"
4549
4586
  }, _hoisted_4$5, 2))
4550
- ], 6),
4587
+ ], 2),
4551
4588
  _ctx.label ? (openBlock(), createElementBlock("span", {
4552
4589
  key: 0,
4553
4590
  class: normalizeClass(["font-medium text-gray-800 dark:text-gray-200 pl-2", {
@@ -4576,12 +4613,12 @@ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
4576
4613
  class: "text-sm text-red-500 mt-1",
4577
4614
  textContent: toDisplayString(_ctx.errorInternal)
4578
4615
  }, null, 8, _hoisted_6$2)) : createCommentVNode("", true)
4579
- ], 40, _hoisted_1$c);
4616
+ ], 44, _hoisted_1$c);
4580
4617
  }
4581
4618
  const cssModules = {
4582
4619
  "$style": style0
4583
4620
  };
4584
- var Radio = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render$g], ["__cssModules", cssModules], ["__scopeId", "data-v-857bd200"]]);
4621
+ var Radio = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render$g], ["__cssModules", cssModules], ["__scopeId", "data-v-4e34dad2"]]);
4585
4622
  const _sfc_main$f = defineComponent({
4586
4623
  name: "XTag",
4587
4624
  props: __spreadProps(__spreadValues(__spreadValues({}, useCommon.props()), useColors.props("gray")), {
@@ -5591,13 +5628,14 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
5591
5628
  "text-align": header.align,
5592
5629
  sort: _ctx.getSort(header.value, _ctx.sort),
5593
5630
  sortable: header.sortable,
5631
+ width: header.width,
5594
5632
  onClick: ($event) => header.sortable ? _ctx.sortHeader(header) : null
5595
5633
  }, {
5596
5634
  default: withCtx(() => [
5597
5635
  createTextVNode(toDisplayString(header.text), 1)
5598
5636
  ]),
5599
5637
  _: 2
5600
- }, 1032, ["sticky-header", "text-align", "sort", "sortable", "onClick"]);
5638
+ }, 1032, ["sticky-header", "text-align", "sort", "sortable", "width", "onClick"]);
5601
5639
  }), 128))
5602
5640
  ]),
5603
5641
  _: 1
@@ -5642,10 +5680,13 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
5642
5680
  var Table = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render$5]]);
5643
5681
  const _sfc_main$4 = defineComponent({
5644
5682
  name: "XTab",
5683
+ components: {
5684
+ XIcon,
5685
+ XLink
5686
+ },
5645
5687
  props: __spreadProps(__spreadValues({}, useCommon.props()), {
5646
5688
  value: {
5647
- type: [String, Number],
5648
- required: true
5689
+ type: [String, Number]
5649
5690
  },
5650
5691
  tag: {
5651
5692
  type: String,
@@ -5654,11 +5695,14 @@ const _sfc_main$4 = defineComponent({
5654
5695
  to: String,
5655
5696
  label: String,
5656
5697
  icon: String,
5657
- disabled: Boolean
5698
+ disabled: Boolean,
5699
+ exact: Boolean
5658
5700
  }),
5659
5701
  setup(props) {
5702
+ const cValue = computed(() => props.to || props.value);
5660
5703
  const cLabel = computed(() => props.label || props.value);
5661
5704
  const teleportTo = ref(null);
5705
+ const elRef = ref();
5662
5706
  const tabs = inject(injectTabKey, {
5663
5707
  tabsContentRef: ref(null),
5664
5708
  activateTab: () => {
@@ -5669,20 +5713,59 @@ const _sfc_main$4 = defineComponent({
5669
5713
  grow: false
5670
5714
  })
5671
5715
  });
5716
+ const isSupported = window && "MutationObserver" in window;
5717
+ const mutationObserver = isSupported ? new MutationObserver(check) : null;
5718
+ const cExact = computed(() => tabs.state.exact || props.exact);
5719
+ const cSize = computed(() => props.size || tabs.state.size);
5672
5720
  onMounted(() => {
5673
5721
  teleportTo.value = tabs.tabsContentRef.value;
5722
+ if (props.to)
5723
+ check();
5724
+ if (isSupported && props.to)
5725
+ mutationObserver == null ? void 0 : mutationObserver.observe(elRef.value.$el, {
5726
+ attributes: true,
5727
+ attributeFilter: ["class"]
5728
+ });
5729
+ });
5730
+ onBeforeUnmount(() => {
5731
+ if (mutationObserver)
5732
+ mutationObserver.disconnect();
5674
5733
  });
5734
+ function check() {
5735
+ var _a2;
5736
+ if (elRef.value && elRef.value.$el && props.to) {
5737
+ const active = (_a2 = elRef.value) == null ? void 0 : _a2.$el.classList.contains(cExact.value ? "router-link-exact-active" : "router-link-active");
5738
+ if (active)
5739
+ tabs.activateTab(cValue.value);
5740
+ }
5741
+ }
5675
5742
  const state = reactive({
5676
- selected: computed(() => tabs.state.active === props.value)
5743
+ selected: computed(() => tabs.state.active === cValue.value)
5677
5744
  });
5678
5745
  function onClickTab() {
5679
- tabs.activateTab(props.value);
5746
+ if (!props.to)
5747
+ tabs.activateTab(cValue.value);
5680
5748
  }
5749
+ const sizeClasses = computed(() => {
5750
+ if (cSize.value === "xs")
5751
+ return "text-xs";
5752
+ else if (cSize.value === "sm")
5753
+ return "text-sm";
5754
+ else if (cSize.value === "lg")
5755
+ return "text-lg";
5756
+ else if (cSize.value === "xl")
5757
+ return "text-xl";
5758
+ return "";
5759
+ });
5681
5760
  return __spreadProps(__spreadValues({}, toRefs(state)), {
5682
5761
  variant: tabs.state.variant,
5683
5762
  grow: tabs.state.grow,
5763
+ elRef,
5684
5764
  cLabel,
5765
+ cValue,
5766
+ cSize,
5685
5767
  tabs,
5768
+ sizeClasses,
5686
5769
  teleportTo,
5687
5770
  onClickTab
5688
5771
  });
@@ -5691,14 +5774,16 @@ const _sfc_main$4 = defineComponent({
5691
5774
  const _hoisted_1$3 = ["data-value"];
5692
5775
  const _hoisted_2$2 = { class: "flex items-center justify-center" };
5693
5776
  function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
5694
- const _component_x_icon = resolveComponent("x-icon");
5777
+ const _component_XIcon = resolveComponent("XIcon");
5695
5778
  return openBlock(), createElementBlock("li", {
5696
- "data-value": _ctx.value,
5779
+ "data-value": _ctx.cValue,
5697
5780
  class: normalizeClass(["shrink-0 font-medium", { "flex-1": _ctx.grow }])
5698
5781
  }, [
5699
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.to ? "router-link" : _ctx.tag), {
5782
+ (openBlock(), createBlock(resolveDynamicComponent(_ctx.to ? "x-link" : _ctx.tag), {
5783
+ ref: "elRef",
5700
5784
  to: _ctx.to,
5701
5785
  class: normalizeClass(["py-2 transition-colors duration-150 ease-in-out whitespace-nowrap text-center", [
5786
+ _ctx.sizeClasses,
5702
5787
  {
5703
5788
  "px-8": _ctx.variant === "block",
5704
5789
  "text-[color:var(--x-tabs-text)] dark:text-[color:var(--x-dark-tabs-text)]": _ctx.selected,
@@ -5715,14 +5800,14 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
5715
5800
  renderSlot(_ctx.$slots, "tab", {
5716
5801
  label: _ctx.label,
5717
5802
  value: _ctx.value,
5718
- size: _ctx.size,
5803
+ size: _ctx.cSize,
5719
5804
  icon: _ctx.icon
5720
5805
  }, () => [
5721
5806
  createElementVNode("div", _hoisted_2$2, [
5722
- _ctx.icon ? (openBlock(), createBlock(_component_x_icon, {
5807
+ _ctx.icon ? (openBlock(), createBlock(_component_XIcon, {
5723
5808
  key: 0,
5724
5809
  icon: _ctx.icon,
5725
- size: _ctx.size,
5810
+ size: _ctx.cSize,
5726
5811
  class: "mr-1.5 shrink-0"
5727
5812
  }, null, 8, ["icon", "size"])) : createCommentVNode("", true),
5728
5813
  createElementVNode("span", null, toDisplayString(_ctx.cLabel), 1)
@@ -5745,14 +5830,19 @@ const _sfc_main$3 = defineComponent({
5745
5830
  components: {
5746
5831
  XScroll
5747
5832
  },
5748
- props: __spreadProps(__spreadValues({}, useColors.props("primary")), {
5833
+ props: __spreadProps(__spreadValues(__spreadValues({}, useCommon.props()), useColors.props("primary")), {
5749
5834
  modelValue: [String, Number],
5750
5835
  variant: {
5751
5836
  type: String,
5752
5837
  default: "line"
5753
5838
  },
5839
+ align: {
5840
+ type: String,
5841
+ default: "left"
5842
+ },
5754
5843
  ghost: Boolean,
5755
- grow: Boolean
5844
+ grow: Boolean,
5845
+ exact: Boolean
5756
5846
  }),
5757
5847
  emits: ["update:modelValue"],
5758
5848
  setup(props, { emit }) {
@@ -5761,13 +5851,20 @@ const _sfc_main$3 = defineComponent({
5761
5851
  const trackerRef = ref();
5762
5852
  const tabsRef = ref();
5763
5853
  const tabsContentRef = ref();
5854
+ const active = ref();
5855
+ watchEffect(() => {
5856
+ active.value = props.modelValue;
5857
+ });
5764
5858
  const state = reactive({
5765
- active: computed(() => props.modelValue),
5859
+ active: computed(() => active.value),
5766
5860
  variant: computed(() => props.variant),
5767
5861
  ghost: computed(() => props.ghost),
5768
- grow: computed(() => props.grow)
5862
+ grow: computed(() => props.grow),
5863
+ exact: computed(() => props.exact),
5864
+ size: computed(() => props.size)
5769
5865
  });
5770
5866
  function activateTab(tab) {
5867
+ active.value = tab;
5771
5868
  emit("update:modelValue", tab);
5772
5869
  }
5773
5870
  provide(injectTabKey, {
@@ -5791,13 +5888,13 @@ const _sfc_main$3 = defineComponent({
5791
5888
  scrollRef.value.scrollEl.scrollTo({ left: center, behavior: "smooth" });
5792
5889
  }, 100);
5793
5890
  useResizeObserver(wrapperRef, () => {
5794
- updateTracker(props.modelValue);
5891
+ updateTracker(active.value);
5795
5892
  });
5796
- watch(() => props.modelValue, (value) => {
5893
+ watch(() => active.value, (value) => {
5797
5894
  updateTracker(value);
5798
5895
  });
5799
5896
  onMounted(() => {
5800
- updateTracker(props.modelValue);
5897
+ updateTracker(active.value);
5801
5898
  });
5802
5899
  const css = useCSS("tabs");
5803
5900
  const colors = useColors();
@@ -5848,7 +5945,9 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
5848
5945
  class: normalizeClass(["flex relative min-w-full w-fit", {
5849
5946
  "border-b border-gray-200 dark:border-gray-700": _ctx.variant === "line",
5850
5947
  "space-x-8": _ctx.variant === "line" && !_ctx.grow,
5851
- "z-[1]": _ctx.variant === "block"
5948
+ "z-[1]": _ctx.variant === "block",
5949
+ "justify-center": _ctx.align === "center",
5950
+ "justify-end": _ctx.align === "right"
5852
5951
  }])
5853
5952
  }, [
5854
5953
  renderSlot(_ctx.$slots, "default")
@@ -5878,6 +5977,7 @@ const _sfc_main$2 = defineComponent({
5878
5977
  type: String,
5879
5978
  default: "ltr"
5880
5979
  },
5980
+ rows: Number,
5881
5981
  max: Number,
5882
5982
  maxlength: Number,
5883
5983
  min: Number,
@@ -5888,7 +5988,8 @@ const _sfc_main$2 = defineComponent({
5888
5988
  default: true
5889
5989
  },
5890
5990
  preventEnter: Boolean,
5891
- inputClass: String
5991
+ inputClass: String,
5992
+ block: Boolean
5892
5993
  }),
5893
5994
  emits: useInputtable.emits(),
5894
5995
  setup(props, { emit }) {
@@ -5938,13 +6039,13 @@ const _sfc_main$2 = defineComponent({
5938
6039
  }
5939
6040
  });
5940
6041
  const _hoisted_1$1 = ["textContent"];
5941
- const _hoisted_2$1 = ["disabled", "max", "maxlength", "min", "dir", "minlength", "name", "placeholder", "readonly", "value"];
6042
+ const _hoisted_2$1 = ["disabled", "max", "maxlength", "min", "dir", "rows", "minlength", "name", "placeholder", "readonly", "value"];
5942
6043
  const _hoisted_3$1 = ["textContent"];
5943
6044
  const _hoisted_4$1 = ["textContent"];
5944
6045
  function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
5945
6046
  var _a2;
5946
6047
  return openBlock(), createElementBlock("label", {
5947
- class: normalizeClass(["inline-block relative align-bottom text-left", { "mb-3": _ctx.isInsideForm }])
6048
+ class: normalizeClass(["inline-block relative align-bottom text-left", { "mb-3": _ctx.isInsideForm, "w-full": _ctx.block }])
5948
6049
  }, [
5949
6050
  _ctx.label ? (openBlock(), createElementBlock("p", {
5950
6051
  key: 0,
@@ -5978,6 +6079,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
5978
6079
  maxlength: _ctx.maxlength,
5979
6080
  min: _ctx.min,
5980
6081
  dir: _ctx.dir,
6082
+ rows: _ctx.rows,
5981
6083
  minlength: _ctx.minlength,
5982
6084
  name: _ctx.name,
5983
6085
  placeholder: _ctx.placeholder,
@@ -6047,7 +6149,7 @@ const _hoisted_4 = ["textContent"];
6047
6149
  function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
6048
6150
  const _component_x_spinner = resolveComponent("x-spinner");
6049
6151
  return openBlock(), createElementBlock("label", {
6050
- class: normalizeClass(["inline-block mb-1 pb-2", [!_ctx.disabled ? "cursor-pointer" : "cursor-not-allowed"]])
6152
+ class: normalizeClass(["inline-block", [!_ctx.disabled ? "cursor-pointer" : "cursor-not-allowed"]])
6051
6153
  }, [
6052
6154
  createElementVNode("div", _hoisted_1, [
6053
6155
  createElementVNode("div", {
package/lib/style.css CHANGED
@@ -1 +1 @@
1
- ._alert_1sdha_2[data-v-35ce54d8]{color:var(--x-alert-text);background-color:var(--x-alert-bg);border-color:var(--x-alert-border)}._alert--glow_1sdha_1[data-v-35ce54d8]{box-shadow:0 0 #000,0 0 #000,0 10px 15px -3px var(--x-alert-glow),0 4px 6px -4px var(--x-alert-glow)}.dark ._alert_1sdha_2[data-v-35ce54d8]{color:var(--x-dark-alert-text, var(--x-alert-text));background-color:var(--x-dark-alert-bg, var(--x-alert-bg));border-color:var(--x-dark-alert-border, var(--x-alert-border))}._avatar_v7jzc_2[data-v-243016db]{color:var(--x-avatar-text);background-color:var(--x-avatar-bg);border-color:var(--x-avatar-border)}.dark ._avatar_v7jzc_2[data-v-243016db]{color:var(--x-dark-avatar-text, var(--x-avatar-text));background-color:var(--x-dark-avatar-bg, var(--x-avatar-bg));border-color:var(--x-dark-avatar-border, var(--x-avatar-border))}._button_1sbr9_2[data-v-7ada6753]{color:var(--x-button-text);background-color:var(--x-button-bg);border-color:var(--x-button-border)}._button--glow_1sbr9_1[data-v-7ada6753]{box-shadow:0 0 #000,0 0 #000,0 10px 15px -3px var(--x-button-glow),0 4px 6px -4px var(--x-button-glow)}._button_1sbr9_2[data-v-7ada6753]:hover{color:var(--x-button-text-hover, var(--x-button-text));background-color:var(--x-button-bg-hover, var(--x-button-bg));border-color:var(--x-button-border-hover, var(--x-button-border))}._button_1sbr9_2[data-v-7ada6753]:active{color:var(--x-button-text-active, var(--x-button-text));background-color:var(--x-button-bg-active, var(--x-button-bg));border-color:var(--x-button-border-active, var(--x-button-border))}.dark ._button_1sbr9_2[data-v-7ada6753]{color:var(--x-dark-button-text, var(--x-button-text));background-color:var(--x-dark-button-bg, var(--x-button-bg));border-color:var(--x-dark-button-border, var(--x-button-border))}.dark ._button_1sbr9_2[data-v-7ada6753]:hover{color:var(--x-dark-button-text-hover, var(--x-dark-button-text, var(--x-button-text)));background-color:var(--x-dark-button-bg-hover, var(--x-dark-button-bg, var(--x-button-bg)));border-color:var(--x-dark-button-border-hover, var(--x-dark-button-border, var(--x-button-border)))}.dark ._button_1sbr9_2[data-v-7ada6753]:active{color:var(--x-dark-button-text-active, var(--x-dark-button-text));background-color:var(--x-dark-button-bg-active, var(--x-dark-button-bg, var(--x-button-bg)));border-color:var(--x-dark-button-border-active, var(--x-dark-button-border, var(--x-button-border)))}._button-group_s7fyl_2:not(._button-group--rounded_s7fyl_1)>:first-child{border-top-left-radius:.375rem;border-bottom-left-radius:.375rem;border-left-width:1px}._button-group_s7fyl_2:not(._button-group--rounded_s7fyl_1)>:last-child{border-top-right-radius:.375rem;border-bottom-right-radius:.375rem}._button-group--rounded_s7fyl_1>:first-of-type{border-top-left-radius:9999px;border-bottom-left-radius:9999px;border-left-width:1px}._button-group--rounded_s7fyl_1>:last-child{border-top-right-radius:9999px;border-bottom-right-radius:9999px}._checkbox--glow_1dz66_1[data-v-54fce636]{box-shadow:0 0 #000,0 0 #000,0 10px 15px -3px var(--x-glow),0 4px 6px -4px var(--x-glow)}._scrollWrap_1k3q9_2[data-v-ff88aa62]:before,._scrollWrap_1k3q9_2[data-v-ff88aa62]:after{content:"";pointer-events:none;position:absolute;z-index:1;transition:box-shadow .2s}._scrollWrap_1k3q9_2._horizontal_1k3q9_11[data-v-ff88aa62]:before,._scrollWrap_1k3q9_2._horizontal_1k3q9_11[data-v-ff88aa62]:after{top:0;bottom:0;width:20px}._scrollWrap_1k3q9_2._vertical_1k3q9_17[data-v-ff88aa62]:before,._scrollWrap_1k3q9_2._vertical_1k3q9_17[data-v-ff88aa62]:after{right:0;left:0;height:20px}._scrollWrap_1k3q9_2._horizontal_1k3q9_11[data-v-ff88aa62]:before{left:0}._scrollWrap_1k3q9_2._horizontal_1k3q9_11[data-v-ff88aa62]:after{right:0}._scrollWrap_1k3q9_2._vertical_1k3q9_17[data-v-ff88aa62]:before{top:0}._scrollWrap_1k3q9_2._vertical_1k3q9_17[data-v-ff88aa62]:after{bottom:0}._scrollWrap_1k3q9_2._shadow-left_1k3q9_36[data-v-ff88aa62]:before{box-shadow:inset 12px 0 10px -10px #00000012}._scrollWrap_1k3q9_2._shadow-right_1k3q9_40[data-v-ff88aa62]:after{box-shadow:inset -12px 0 10px -10px #00000012}._scrollWrap_1k3q9_2._shadow-top_1k3q9_44[data-v-ff88aa62]:before{box-shadow:inset 0 12px 10px -10px #00000012}._scrollWrap_1k3q9_2._shadow-bottom_1k3q9_48[data-v-ff88aa62]:after{box-shadow:inset 0 -12px 10px -10px #00000012}._hideScroll_1k3q9_53[data-v-ff88aa62]{-ms-overflow-style:auto;scrollbar-width:none}._hideScroll_1k3q9_53[data-v-ff88aa62]::-webkit-scrollbar{display:none}._link--shadow_1tilo_1[data-v-b6c57c10]{box-shadow:inset 0 -.315em 0 0 var(--x-shadow)}._link--shadow_1tilo_1[data-v-b6c57c10]:hover{box-shadow:inset 0 -1.125em 0 0 var(--x-shadow)}.dark ._link--shadow_1tilo_1[data-v-b6c57c10]{box-shadow:inset 0 -.315em 0 0 var(--x-dark-shadow)}.dark ._link--shadow_1tilo_1[data-v-b6c57c10]:hover{box-shadow:inset 0 -1.125em 0 0 var(--x-dark-shadow)}._menu-item_1v1kj_2[data-v-6f9d99e4]{color:var(--x-text);background-color:var(--x-bg)}._menu-item_1v1kj_2[data-v-6f9d99e4]:before{content:"";position:absolute;left:-1px;height:100%;width:1px;background-color:transparent}._menu-item_1v1kj_2[data-v-6f9d99e4]:hover{color:var(--x-text-hover, var(--x-text));background-color:var(--x-bg-hover, var(--x-bg))}.dark ._menu-item_1v1kj_2[data-v-6f9d99e4]{color:var(--x-dark-text);background:var(--x-dark-bg)}.dark ._menu-item_1v1kj_2[data-v-6f9d99e4]:hover{color:var(--x-dark-text-hover, var(--x-dark-text));background-color:var(--x-dark-bg-hover, var(--x-dark-bg))}.x-menu-inner ._menu-item_1v1kj_2[data-v-6f9d99e4]:hover:before,.x-menu-inner ._menu-item--active_1v1kj_1[data-v-6f9d99e4]:before{background-color:var(--x-border-hover)}._popover_2vipi_2 ._popoverContent_2vipi_3{visibility:hidden;transition-duration:.1s;transition-timing-function:cubic-bezier(.4,0,1,1)}._popover_2vipi_2 ._popoverTop_2vipi_8{--tw-translate-y: .5rem}._popover_2vipi_2 ._popoverRight_2vipi_11{--tw-translate-x: -.5rem}._popover_2vipi_2 ._popoverBottom_2vipi_14{--tw-translate-y: -.25rem}._popover_2vipi_2 ._popoverLeft_2vipi_17{--tw-translate-x: .5rem}._popover_2vipi_2._hover_2vipi_21:hover ._popoverContent_2vipi_3,._popover_2vipi_2._is-open_2vipi_22 ._popoverContent_2vipi_3{visibility:visible;transition-duration:.15s;transition-timing-function:cubic-bezier(0,0,.2,1)}._popover_2vipi_2._hover_2vipi_21:hover ._popoverTop_2vipi_8,._popover_2vipi_2._is-open_2vipi_22 ._popoverTop_2vipi_8{--tw-translate-y: .25rem}._popover_2vipi_2._hover_2vipi_21:hover ._popoverRight_2vipi_11,._popover_2vipi_2._is-open_2vipi_22 ._popoverRight_2vipi_11{--tw-translate-x: 0px}._popover_2vipi_2._hover_2vipi_21:hover ._popoverBottom_2vipi_14,._popover_2vipi_2._is-open_2vipi_22 ._popoverBottom_2vipi_14{--tw-translate-y: .25rem}._popover_2vipi_2._hover_2vipi_21:hover ._popoverLeft_2vipi_17,._popover_2vipi_2._is-open_2vipi_22 ._popoverLeft_2vipi_17{--tw-translate-x: 0px}._radio--glow_14rlz_1[data-v-857bd200]{box-shadow:0 0 #000,0 0 #000,0 10px 15px -3px var(--x-glow),0 4px 6px -4px var(--x-glow)}
1
+ ._alert_1sdha_2[data-v-35ce54d8]{color:var(--x-alert-text);background-color:var(--x-alert-bg);border-color:var(--x-alert-border)}._alert--glow_1sdha_1[data-v-35ce54d8]{box-shadow:0 0 #000,0 0 #000,0 10px 15px -3px var(--x-alert-glow),0 4px 6px -4px var(--x-alert-glow)}.dark ._alert_1sdha_2[data-v-35ce54d8]{color:var(--x-dark-alert-text, var(--x-alert-text));background-color:var(--x-dark-alert-bg, var(--x-alert-bg));border-color:var(--x-dark-alert-border, var(--x-alert-border))}._avatar_v7jzc_2[data-v-243016db]{color:var(--x-avatar-text);background-color:var(--x-avatar-bg);border-color:var(--x-avatar-border)}.dark ._avatar_v7jzc_2[data-v-243016db]{color:var(--x-dark-avatar-text, var(--x-avatar-text));background-color:var(--x-dark-avatar-bg, var(--x-avatar-bg));border-color:var(--x-dark-avatar-border, var(--x-avatar-border))}._button_1sbr9_2[data-v-6cb75733]{color:var(--x-button-text);background-color:var(--x-button-bg);border-color:var(--x-button-border)}._button--glow_1sbr9_1[data-v-6cb75733]{box-shadow:0 0 #000,0 0 #000,0 10px 15px -3px var(--x-button-glow),0 4px 6px -4px var(--x-button-glow)}._button_1sbr9_2[data-v-6cb75733]:hover{color:var(--x-button-text-hover, var(--x-button-text));background-color:var(--x-button-bg-hover, var(--x-button-bg));border-color:var(--x-button-border-hover, var(--x-button-border))}._button_1sbr9_2[data-v-6cb75733]:active{color:var(--x-button-text-active, var(--x-button-text));background-color:var(--x-button-bg-active, var(--x-button-bg));border-color:var(--x-button-border-active, var(--x-button-border))}.dark ._button_1sbr9_2[data-v-6cb75733]{color:var(--x-dark-button-text, var(--x-button-text));background-color:var(--x-dark-button-bg, var(--x-button-bg));border-color:var(--x-dark-button-border, var(--x-button-border))}.dark ._button_1sbr9_2[data-v-6cb75733]:hover{color:var(--x-dark-button-text-hover, var(--x-dark-button-text, var(--x-button-text)));background-color:var(--x-dark-button-bg-hover, var(--x-dark-button-bg, var(--x-button-bg)));border-color:var(--x-dark-button-border-hover, var(--x-dark-button-border, var(--x-button-border)))}.dark ._button_1sbr9_2[data-v-6cb75733]:active{color:var(--x-dark-button-text-active, var(--x-dark-button-text));background-color:var(--x-dark-button-bg-active, var(--x-dark-button-bg, var(--x-button-bg)));border-color:var(--x-dark-button-border-active, var(--x-dark-button-border, var(--x-button-border)))}._button-group_s7fyl_2:not(._button-group--rounded_s7fyl_1)>:first-child{border-top-left-radius:.375rem;border-bottom-left-radius:.375rem;border-left-width:1px}._button-group_s7fyl_2:not(._button-group--rounded_s7fyl_1)>:last-child{border-top-right-radius:.375rem;border-bottom-right-radius:.375rem}._button-group--rounded_s7fyl_1>:first-of-type{border-top-left-radius:9999px;border-bottom-left-radius:9999px;border-left-width:1px}._button-group--rounded_s7fyl_1>:last-child{border-top-right-radius:9999px;border-bottom-right-radius:9999px}._checkbox--glow_1dz66_1[data-v-05f49cb5]{box-shadow:0 0 #000,0 0 #000,0 10px 15px -3px var(--x-glow),0 4px 6px -4px var(--x-glow)}._scrollWrap_1k3q9_2[data-v-7362ac18]:before,._scrollWrap_1k3q9_2[data-v-7362ac18]:after{content:"";pointer-events:none;position:absolute;z-index:1;transition:box-shadow .2s}._scrollWrap_1k3q9_2._horizontal_1k3q9_11[data-v-7362ac18]:before,._scrollWrap_1k3q9_2._horizontal_1k3q9_11[data-v-7362ac18]:after{top:0;bottom:0;width:20px}._scrollWrap_1k3q9_2._vertical_1k3q9_17[data-v-7362ac18]:before,._scrollWrap_1k3q9_2._vertical_1k3q9_17[data-v-7362ac18]:after{right:0;left:0;height:20px}._scrollWrap_1k3q9_2._horizontal_1k3q9_11[data-v-7362ac18]:before{left:0}._scrollWrap_1k3q9_2._horizontal_1k3q9_11[data-v-7362ac18]:after{right:0}._scrollWrap_1k3q9_2._vertical_1k3q9_17[data-v-7362ac18]:before{top:0}._scrollWrap_1k3q9_2._vertical_1k3q9_17[data-v-7362ac18]:after{bottom:0}._scrollWrap_1k3q9_2._shadow-left_1k3q9_36[data-v-7362ac18]:before{box-shadow:inset 12px 0 10px -10px #00000012}._scrollWrap_1k3q9_2._shadow-right_1k3q9_40[data-v-7362ac18]:after{box-shadow:inset -12px 0 10px -10px #00000012}._scrollWrap_1k3q9_2._shadow-top_1k3q9_44[data-v-7362ac18]:before{box-shadow:inset 0 12px 10px -10px #00000012}._scrollWrap_1k3q9_2._shadow-bottom_1k3q9_48[data-v-7362ac18]:after{box-shadow:inset 0 -12px 10px -10px #00000012}._hideScroll_1k3q9_53[data-v-7362ac18]{-ms-overflow-style:auto;scrollbar-width:none}._hideScroll_1k3q9_53[data-v-7362ac18]::-webkit-scrollbar{display:none}._link--shadow_1tilo_1[data-v-af336fea]{box-shadow:inset 0 -.315em 0 0 var(--x-shadow)}._link--shadow_1tilo_1[data-v-af336fea]:hover{box-shadow:inset 0 -1.125em 0 0 var(--x-shadow)}.dark ._link--shadow_1tilo_1[data-v-af336fea]{box-shadow:inset 0 -.315em 0 0 var(--x-dark-shadow)}.dark ._link--shadow_1tilo_1[data-v-af336fea]:hover{box-shadow:inset 0 -1.125em 0 0 var(--x-dark-shadow)}._menu-item_1v1kj_2[data-v-11179d66]{color:var(--x-text);background-color:var(--x-bg)}._menu-item_1v1kj_2[data-v-11179d66]:before{content:"";position:absolute;left:-1px;height:100%;width:1px;background-color:transparent}._menu-item_1v1kj_2[data-v-11179d66]:hover{color:var(--x-text-hover, var(--x-text));background-color:var(--x-bg-hover, var(--x-bg))}.dark ._menu-item_1v1kj_2[data-v-11179d66]{color:var(--x-dark-text);background:var(--x-dark-bg)}.dark ._menu-item_1v1kj_2[data-v-11179d66]:hover{color:var(--x-dark-text-hover, var(--x-dark-text));background-color:var(--x-dark-bg-hover, var(--x-dark-bg))}.x-menu-inner ._menu-item_1v1kj_2[data-v-11179d66]:hover:before,.x-menu-inner ._menu-item--active_1v1kj_1[data-v-11179d66]:before{background-color:var(--x-border-hover)}._popover_2vipi_2 ._popoverContent_2vipi_3{visibility:hidden;transition-duration:.1s;transition-timing-function:cubic-bezier(.4,0,1,1)}._popover_2vipi_2 ._popoverTop_2vipi_8{--tw-translate-y: .5rem}._popover_2vipi_2 ._popoverRight_2vipi_11{--tw-translate-x: -.5rem}._popover_2vipi_2 ._popoverBottom_2vipi_14{--tw-translate-y: -.25rem}._popover_2vipi_2 ._popoverLeft_2vipi_17{--tw-translate-x: .5rem}._popover_2vipi_2._hover_2vipi_21:hover ._popoverContent_2vipi_3,._popover_2vipi_2._is-open_2vipi_22 ._popoverContent_2vipi_3{visibility:visible;transition-duration:.15s;transition-timing-function:cubic-bezier(0,0,.2,1)}._popover_2vipi_2._hover_2vipi_21:hover ._popoverTop_2vipi_8,._popover_2vipi_2._is-open_2vipi_22 ._popoverTop_2vipi_8{--tw-translate-y: .25rem}._popover_2vipi_2._hover_2vipi_21:hover ._popoverRight_2vipi_11,._popover_2vipi_2._is-open_2vipi_22 ._popoverRight_2vipi_11{--tw-translate-x: 0px}._popover_2vipi_2._hover_2vipi_21:hover ._popoverBottom_2vipi_14,._popover_2vipi_2._is-open_2vipi_22 ._popoverBottom_2vipi_14{--tw-translate-y: .25rem}._popover_2vipi_2._hover_2vipi_21:hover ._popoverLeft_2vipi_17,._popover_2vipi_2._is-open_2vipi_22 ._popoverLeft_2vipi_17{--tw-translate-x: 0px}._radio--glow_14rlz_1[data-v-4e34dad2]{box-shadow:0 0 #000,0 0 #000,0 10px 15px -3px var(--x-glow),0 4px 6px -4px var(--x-glow)}
package/lib/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "1.0.0-alpha.5";
1
+ declare const _default: "1.0.0-alpha.6";
2
2
  export default _default;