eco-vue-js 0.10.12 → 0.10.14

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 (79) hide show
  1. package/dist/assets/icons/default/IconCheck.svg.js +6 -3
  2. package/dist/components/ActionsBar/WActionsBar.vue.d.ts +6 -6
  3. package/dist/components/ActionsBar/WActionsBar.vue.d.ts.map +1 -1
  4. package/dist/components/ActionsBar/WActionsBar.vue.js +28 -25
  5. package/dist/components/Button/WButtonAction.vue.js +5 -5
  6. package/dist/components/Button/WButtonCopy.vue.js +1 -1
  7. package/dist/components/Button/WButtonInput.vue.d.ts +14 -0
  8. package/dist/components/Button/WButtonInput.vue.d.ts.map +1 -0
  9. package/dist/components/Button/WButtonInput.vue.js +51 -0
  10. package/dist/components/Button/WButtonInput.vue2.js +5 -0
  11. package/dist/components/Button/WButtonMore.vue.d.ts.map +1 -1
  12. package/dist/components/Button/WButtonMore.vue.js +2 -2
  13. package/dist/components/Button/WButtonSelection.vue.js +1 -1
  14. package/dist/components/Button/WButtonSelectionAction.vue.d.ts.map +1 -1
  15. package/dist/components/Button/WButtonSelectionAction.vue.js +3 -3
  16. package/dist/components/Button/WButtonSelectionState.vue.js +2 -2
  17. package/dist/components/Button/WButtonUnselect.vue.js +2 -2
  18. package/dist/components/Checkbox/WCheckbox.vue.js +6 -6
  19. package/dist/components/Counter/WCounter.vue.d.ts.map +1 -1
  20. package/dist/components/Counter/WCounter.vue.js +2 -4
  21. package/dist/components/Expansion/WExpansionItem.vue.d.ts +2 -2
  22. package/dist/components/Expansion/WExpansionItem.vue.d.ts.map +1 -1
  23. package/dist/components/Expansion/WExpansionItem.vue.js +25 -23
  24. package/dist/components/FieldWrapper/WFieldWrapper.vue.js +3 -3
  25. package/dist/components/FilterWrapper/WFilterWrapper.vue.d.ts.map +1 -1
  26. package/dist/components/FilterWrapper/WFilterWrapper.vue.js +28 -26
  27. package/dist/components/HeaderBar/WHeaderBar.vue.d.ts +2 -0
  28. package/dist/components/HeaderBar/WHeaderBar.vue.d.ts.map +1 -1
  29. package/dist/components/HeaderBar/WHeaderBar.vue.js +11 -6
  30. package/dist/components/HeaderBar/use/useHeader.d.ts +7 -0
  31. package/dist/components/HeaderBar/use/useHeader.d.ts.map +1 -0
  32. package/dist/components/HeaderBar/use/{useHeaderPadding.js → useHeader.js} +8 -2
  33. package/dist/components/InfiniteList/WInfiniteListWrapper.vue.js +4 -4
  34. package/dist/components/InfiniteList/use/useInfiniteListHeader.d.ts +7 -6
  35. package/dist/components/InfiniteList/use/useInfiniteListHeader.d.ts.map +1 -1
  36. package/dist/components/InfiniteList/use/useInfiniteListHeader.js +7 -9
  37. package/dist/components/Input/WInput.vue.d.ts.map +1 -1
  38. package/dist/components/Input/WInput.vue.js +22 -17
  39. package/dist/components/Input/WInputAsync.vue.d.ts.map +1 -1
  40. package/dist/components/Input/WInputAsync.vue.js +16 -33
  41. package/dist/components/Input/components/InputActions.vue.js +1 -1
  42. package/dist/components/Input/components/InputActionsButton.vue.js +1 -1
  43. package/dist/components/List/WList.vue.d.ts.map +1 -1
  44. package/dist/components/List/WList.vue.js +2 -3
  45. package/dist/components/List/WListCard.vue.d.ts.map +1 -1
  46. package/dist/components/List/WListCard.vue.js +5 -6
  47. package/dist/components/List/WListHeader.vue.d.ts.map +1 -1
  48. package/dist/components/List/WListHeader.vue.js +9 -10
  49. package/dist/components/Modal/WModalWrapper.vue.js +4 -4
  50. package/dist/components/Modal/modals/Confirm/ConfirmModal.vue2.js +1 -1
  51. package/dist/components/Nav/WNavBar.vue.d.ts.map +1 -1
  52. package/dist/components/Nav/WNavBar.vue.js +11 -12
  53. package/dist/components/Nav/WNavItem.vue.d.ts.map +1 -1
  54. package/dist/components/Nav/WNavItem.vue.js +20 -28
  55. package/dist/components/Nav/use/useNavBarOpen.d.ts +6 -0
  56. package/dist/components/Nav/use/useNavBarOpen.d.ts.map +1 -0
  57. package/dist/components/Notify/components/NotifyCard.vue.js +1 -1
  58. package/dist/components/Select/WSelect.vue.js +1 -1
  59. package/dist/components/Select/components/SelectAsyncPrefixPage.vue.d.ts.map +1 -1
  60. package/dist/components/Select/components/SelectAsyncPrefixPage.vue.js +2 -1
  61. package/dist/components/Select/components/SelectOption.vue.js +1 -1
  62. package/dist/components/Select/components/SelectOptionPrefix.vue.d.ts.map +1 -1
  63. package/dist/components/Select/components/SelectOptionPrefix.vue.js +25 -25
  64. package/dist/components/Spinner/WSpinner.vue.js +1 -1
  65. package/dist/components/Tabs/WTabsColumns.vue.js +1 -1
  66. package/dist/components/Toggle/WToggle.vue.js +1 -1
  67. package/dist/imports/componentsPlugin.d.ts +2 -1
  68. package/dist/imports/componentsPlugin.d.ts.map +1 -1
  69. package/dist/main.js +2 -1
  70. package/dist/utils/mobile.d.ts +3 -1
  71. package/dist/utils/mobile.d.ts.map +1 -1
  72. package/dist/utils/mobile.js +9 -3
  73. package/eslint/recommended.js +1 -0
  74. package/package.json +4 -1
  75. package/tailwind-base/index.ts +7 -0
  76. package/tailwind-base/plugins/default.ts +32 -58
  77. package/tailwind-base/theme/sizes.ts +26 -8
  78. package/dist/components/HeaderBar/use/useHeaderPadding.d.ts +0 -5
  79. package/dist/components/HeaderBar/use/useHeaderPadding.d.ts.map +0 -1
@@ -1,8 +1,8 @@
1
1
  import { defineComponent, createElementBlock, openBlock, normalizeClass, createElementVNode, renderSlot } from 'vue';
2
2
 
3
3
  const _hoisted_1 = { class: "bg-default dark:bg-default-dark sticky top-0 z-[1]" };
4
- const _hoisted_2 = { class: "text-accent sm-not:text-xl flex items-center justify-center text-balance p-[var(--modal-wrapper-padding,2rem)] text-center text-2xl font-semibold" };
5
- const _hoisted_3 = { class: "sm:px-[var(--modal-wrapper-padding,2rem)]" };
4
+ const _hoisted_2 = { class: "text-accent sm-not:text-xl -p--w-modal-wrapper-padding flex items-center justify-center text-balance text-center text-2xl font-semibold" };
5
+ const _hoisted_3 = { class: "sm:-px--w-modal-wrapper-padding" };
6
6
  const _sfc_main = /* @__PURE__ */ defineComponent({
7
7
  __name: "WModalWrapper",
8
8
  props: {
@@ -11,7 +11,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
11
11
  setup(__props) {
12
12
  return (_ctx, _cache) => {
13
13
  return openBlock(), createElementBlock("div", {
14
- class: normalizeClass(["bg-default dark:bg-default-dark max-h-[calc(100%-var(--modal-wrapper-padding,2rem)*2)] w-[var(--modal-wrapper-width,35rem)] max-w-[calc(100%-var(--modal-wrapper-padding,2rem)*2)] overflow-y-auto overflow-x-hidden overscroll-contain rounded-3xl shadow-md", {
14
+ class: normalizeClass(["bg-default dark:bg-default-dark max-h-[calc(100%-var(--inner-margin,2rem)*2)] w-[var(--w-modal-wrapper-width,35rem)] max-w-[calc(100%-var(--inner-margin,2rem)*2)] overflow-y-auto overflow-x-hidden overscroll-contain rounded-[--w-modal-wrapper-rounded,1.5rem] shadow-md", {
15
15
  "sm-not:max-w-full sm-not:h-full sm-not:rounded-none sm-not:max-h-full": _ctx.maximized
16
16
  }])
17
17
  }, [
@@ -25,7 +25,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
25
25
  renderSlot(_ctx.$slots, "default")
26
26
  ]),
27
27
  createElementVNode("div", {
28
- class: normalizeClass(["bg-default dark:bg-default-dark sticky bottom-0 z-[1] flex w-full justify-center gap-[var(--modal-wrapper-padding,2rem)] p-[var(--modal-wrapper-padding,2rem)]", {
28
+ class: normalizeClass(["bg-default dark:bg-default-dark -gap--inner-margin -p--w-modal-wrapper-padding sticky bottom-0 z-[1] flex w-full justify-center", {
29
29
  "sm-not:flex-col": !_ctx.maximized
30
30
  }])
31
31
  }, [
@@ -57,7 +57,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
57
57
  emit("close:modal");
58
58
  };
59
59
  return (_ctx, _cache) => {
60
- return openBlock(), createBlock(_sfc_main$1, { class: "[--modal-wrapper-width:40rem]" }, {
60
+ return openBlock(), createBlock(_sfc_main$1, { class: "w-modal-wrapper-w-[40rem]" }, {
61
61
  title: withCtx(() => [
62
62
  createTextVNode(toDisplayString(_ctx.title), 1)
63
63
  ]),
@@ -1 +1 @@
1
- {"version":3,"file":"WNavBar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Nav/WNavBar.vue"],"names":[],"mappings":"AA2CA;AAgHA,iBAAS,cAAc;WAsET,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AAaD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;iFAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAEpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"WNavBar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Nav/WNavBar.vue"],"names":[],"mappings":"AA2CA;AA8GA,iBAAS,cAAc;WAsET,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AAaD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;iFAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAEpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,26 +1,25 @@
1
- import { defineComponent, ref, createElementBlock, openBlock, Fragment, createVNode, createElementVNode, Transition, withCtx, createCommentVNode, withModifiers, normalizeClass, renderSlot, unref } from 'vue';
1
+ import { defineComponent, ref, createElementBlock, openBlock, Fragment, createVNode, createElementVNode, Transition, withCtx, createCommentVNode, unref, withModifiers, normalizeClass, renderSlot } from 'vue';
2
2
  import IconMenu from '../../assets/icons/sax/IconMenu.svg.js';
3
- import { isClientSide } from '../../utils/utils.js';
3
+ import { useIsMobile } from '../../utils/mobile.js';
4
4
 
5
- const _hoisted_1 = { class: "bg-default dark:bg-default-dark mt-[3.75rem] overflow-hidden" };
5
+ const _hoisted_1 = { class: "bg-default dark:bg-default-dark -mt--header-height overflow-hidden" };
6
6
  const _sfc_main = /* @__PURE__ */ defineComponent({
7
7
  __name: "WNavBar",
8
8
  emits: ["update:isOpen"],
9
9
  setup(__props, { emit: __emit }) {
10
10
  const emit = __emit;
11
- const getHasBackdrop = () => {
12
- return isClientSide && window.innerWidth < 1280;
13
- };
14
- const hasBackdrop = ref(getHasBackdrop());
11
+ const { isTablet } = useIsMobile();
15
12
  const isOpen = ref(false);
13
+ const emitIsOpen = () => {
14
+ emit("update:isOpen", isOpen.value);
15
+ };
16
16
  const toggle = () => {
17
- hasBackdrop.value = getHasBackdrop();
18
17
  isOpen.value = !isOpen.value;
19
- emit("update:isOpen", isOpen.value);
18
+ emitIsOpen();
20
19
  };
21
20
  const close = () => {
22
21
  isOpen.value = false;
23
- emit("update:isOpen", false);
22
+ emitIsOpen();
24
23
  };
25
24
  return (_ctx, _cache) => {
26
25
  return openBlock(), createElementBlock(Fragment, null, [
@@ -31,7 +30,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
31
30
  "leave-to-class": "opacity-0"
32
31
  }, {
33
32
  default: withCtx(() => [
34
- isOpen.value && hasBackdrop.value ? (openBlock(), createElementBlock("div", {
33
+ isOpen.value && unref(isTablet) ? (openBlock(), createElementBlock("div", {
35
34
  key: 0,
36
35
  title: "Click to close",
37
36
  class: "bg-primary-light/40 dark:bg-primary-darkest/40 no-scrollbar fixed left-0 top-0 z-30 size-full overflow-y-auto overflow-x-hidden overscroll-contain backdrop-blur print:hidden",
@@ -53,7 +52,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
53
52
  ])
54
53
  ], 2),
55
54
  createElementVNode("div", {
56
- class: normalizeClass(["square-[3.75rem] w-ripple fixed left-0 top-0 z-30 flex cursor-pointer items-center justify-center xl:hidden print:hidden", { "text-primary-default": isOpen.value }]),
55
+ class: normalizeClass(["-square--header-height w-ripple fixed left-0 top-0 z-30 flex cursor-pointer items-center justify-center xl:hidden print:hidden", { "text-primary-default": isOpen.value }]),
57
56
  onClick: withModifiers(toggle, ["stop"])
58
57
  }, [
59
58
  createVNode(unref(IconMenu))
@@ -1 +1 @@
1
- {"version":3,"file":"WNavItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Nav/WNavItem.vue"],"names":[],"mappings":"AAwFA;AAiJA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,eAAe,CAAA;AAY5C,UAAU,KAAM,SAAQ,SAAS;IAC/B,IAAI,CAAC,EAAE,YAAY,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAA;CACvB;AAmCD,iBAAS,cAAc;WAqKT,OAAO,IAA6B;;sBAXvB,GAAG;uBACF,GAAG;;;;EAe9B;AAkBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;kFAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"WNavItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Nav/WNavItem.vue"],"names":[],"mappings":"AAgFA;AAuIA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,eAAe,CAAA;AAY5C,UAAU,KAAM,SAAQ,SAAS;IAC/B,IAAI,CAAC,EAAE,YAAY,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAA;CACvB;AAiCD,iBAAS,cAAc;WA4JT,OAAO,IAA6B;;sBAXvB,GAAG;uBACF,GAAG;;;;EAe9B;AAiBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;kFAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,4 +1,4 @@
1
- import { defineComponent, computed, watch, onBeforeUnmount, createBlock, openBlock, unref, normalizeClass, withCtx, createVNode, createElementVNode, Transition, createElementBlock, createCommentVNode, renderSlot, resolveDynamicComponent, toDisplayString, createTextVNode } from 'vue';
1
+ import { defineComponent, computed, watch, onBeforeUnmount, createBlock, openBlock, unref, normalizeClass, withCtx, createVNode, createElementVNode, Transition, createElementBlock, createCommentVNode, renderSlot, resolveDynamicComponent, createTextVNode, toDisplayString } from 'vue';
2
2
  import { useRoute, useRouter, RouterLink } from 'vue-router';
3
3
  import _sfc_main$1 from '../Counter/WCounter.vue.js';
4
4
  import WSkeleton from '../Skeleton/WSkeleton.vue.js';
@@ -13,14 +13,11 @@ const _hoisted_2 = {
13
13
  class: "absolute left-7 top-0 flex h-full items-center"
14
14
  };
15
15
  const _hoisted_3 = { class: "[overflow:inherit]" };
16
- const _hoisted_4 = { class: "grid grid-cols-[2rem,auto,1fr,1rem] items-center px-5 py-3" };
16
+ const _hoisted_4 = { class: "grid grid-cols-[1.5rem,1fr,auto] items-center px-4 py-2.5" };
17
17
  const _hoisted_5 = { class: "flex items-center" };
18
- const _hoisted_6 = { class: "relative whitespace-nowrap text-base font-normal tracking-wide" };
19
- const _hoisted_7 = { class: "relative flex justify-start text-center text-base font-normal tracking-wide" };
20
- const _hoisted_8 = {
21
- key: 0,
22
- class: "relative"
23
- };
18
+ const _hoisted_6 = { class: "last-not:pr-1 whitespace-nowrap font-normal tracking-wide" };
19
+ const _hoisted_7 = { class: "relative" };
20
+ const _hoisted_8 = { key: 0 };
24
21
  const _sfc_main = /* @__PURE__ */ defineComponent({
25
22
  __name: "WNavItem",
26
23
  props: {
@@ -49,7 +46,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
49
46
  return isEqualObj(route.query, routeTo.value.query, EXCLUDE_QUERY_FIELDS, props.queryFields);
50
47
  });
51
48
  const isTextColor = computed(() => props.hasActive ? !props.indent : isActive.value);
52
- const isBigCount = computed(() => props.counter !== void 0 && props.counter >= 1e3);
53
49
  watch(isActive, (value) => emit("update:isActive", [titleLocal.value, value]), { immediate: true });
54
50
  onBeforeUnmount(() => {
55
51
  emit("update:isActive", [titleLocal.value, false]);
@@ -60,7 +56,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
60
56
  class: normalizeClass(["w-ripple w-ripple-hover relative block no-underline", {
61
57
  "text-primary-default dark:text-primary-dark": isTextColor.value,
62
58
  "text-accent": !isTextColor.value,
63
- "pl-3": _ctx.indent
59
+ "pl-2": _ctx.indent
64
60
  }])
65
61
  }, {
66
62
  default: withCtx(() => [
@@ -93,28 +89,24 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
93
89
  createElementVNode("div", _hoisted_5, [
94
90
  _ctx.icon ?? routeTo.value.meta.icon ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.icon ?? routeTo.value.meta.icon), {
95
91
  key: 0,
96
- class: "square-6"
92
+ class: "square-5"
97
93
  })) : renderSlot(_ctx.$slots, "icon", { key: 1 })
98
94
  ]),
99
- createElementVNode("div", _hoisted_6, toDisplayString(titleLocal.value), 1),
100
- createElementVNode("div", _hoisted_7, [
101
- _cache[1] || (_cache[1] = createTextVNode("   ")),
102
- !_ctx.skeleton ? (openBlock(), createElementBlock("span", _hoisted_8, [
103
- createTextVNode(toDisplayString(typeof _ctx.count === "number" ? `(${unref(numberCompactFormatter).format(_ctx.count)})` : "") + " ", 1),
104
- _ctx.counter !== void 0 && _ctx.counter !== 0 ? (openBlock(), createBlock(_sfc_main$1, {
105
- key: 0,
95
+ createElementVNode("div", _hoisted_6, [
96
+ createElementVNode("span", _hoisted_7, [
97
+ createElementVNode("span", null, toDisplayString(titleLocal.value), 1),
98
+ _cache[1] || (_cache[1] = createTextVNode(" ")),
99
+ !_ctx.skeleton ? (openBlock(), createElementBlock("span", _hoisted_8, toDisplayString(typeof _ctx.count === "number" ? `(${unref(numberCompactFormatter).format(_ctx.count)})` : ""), 1)) : (openBlock(), createBlock(WSkeleton, {
100
+ key: 1,
101
+ class: "inline-flex max-w-10"
102
+ })),
103
+ !_ctx.skeleton && _ctx.counter !== void 0 && _ctx.counter !== 0 ? (openBlock(), createBlock(_sfc_main$1, {
104
+ key: 2,
106
105
  count: _ctx.counter,
107
106
  trigger: 1,
108
- small: "",
109
- class: normalizeClass(["absolute -top-3", {
110
- "left-[calc(100%-0.25rem)]": !isBigCount.value,
111
- "left-[calc(100%-1rem)]": isBigCount.value
112
- }])
113
- }, null, 8, ["count", "class"])) : createCommentVNode("", true)
114
- ])) : (openBlock(), createBlock(WSkeleton, {
115
- key: 1,
116
- class: "max-w-10"
117
- }))
107
+ class: "text-2xs absolute -top-2.5 left-[calc(100%-1em)]"
108
+ }, null, 8, ["count"])) : createCommentVNode("", true)
109
+ ])
118
110
  ]),
119
111
  renderSlot(_ctx.$slots, "right")
120
112
  ])
@@ -0,0 +1,6 @@
1
+ export declare const useNavBarOpen: () => {
2
+ isOpen: Readonly<import('vue').Ref<boolean, boolean>>;
3
+ toggle: () => void;
4
+ close: () => void;
5
+ };
6
+ //# sourceMappingURL=useNavBarOpen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useNavBarOpen.d.ts","sourceRoot":"","sources":["../../../../src/components/Nav/use/useNavBarOpen.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,aAAa;;;;CAczB,CAAA"}
@@ -55,7 +55,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
55
55
  }, [
56
56
  createElementVNode("div", _hoisted_1, [
57
57
  withDirectives(createVNode(_sfc_main$1, {
58
- class: "absolute -left-2.5 -top-2.5 shadow-md",
58
+ class: "absolute -left-2.5 -top-2.5 text-xs shadow-md",
59
59
  count: _ctx.count
60
60
  }, null, 8, ["count"]), [
61
61
  [vShow, _ctx.count > 1]
@@ -90,7 +90,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
90
90
  const search = ref("");
91
91
  const searchPrepared = computed(() => search.value.trim().toLocaleLowerCase());
92
92
  const enabled = computed(() => !props.disabled);
93
- const { data, isLoading, error: queryError } = props.useQueryFnOptions ? !props.queryParamsOptions ? props.useQueryFnOptions({ enabled }) : props.useQueryFnOptions(toRef(props, "queryParamsOptions"), { enabled }) : {
93
+ const { data, isLoading, error: queryError } = props.useQueryFnOptions ? props.queryParamsOptions === void 0 ? props.useQueryFnOptions({ enabled }) : props.useQueryFnOptions(toRef(props, "queryParamsOptions"), { enabled }) : {
94
94
  data: toRef(props, "options"),
95
95
  isLoading: ref(false),
96
96
  error: ref(void 0)
@@ -1 +1 @@
1
- {"version":3,"file":"SelectAsyncPrefixPage.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/components/SelectAsyncPrefixPage.vue"],"names":[],"mappings":"AAkDA;AA2GA,OAAO,KAAK,EAAC,0BAA0B,EAAE,qBAAqB,EAA6B,MAAM,UAAU,CAAA;yBAM1F,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,WAAW,EAAE,eAAe,SAAS,qBAAqB,CAAC,IAAI,CAAC,eAC5H,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WAiM1D,mBAAmB,CAAC;;;;uQAAkE,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;kBAlJC,CAAC,KAAK,EAAE;YAAC,MAAM,EAAE,IAAI,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAC;YAAC,KAAK,EAAE,MAAM,CAAA;SAAC,KAAK,IAAI;;kBAAjE,CAAC,KAAK,EAAE;YAAC,MAAM,EAAE,IAAI,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAC;YAAC,KAAK,EAAE,MAAM,CAAA;SAAC,KAAK,IAAI;;;YA3CvE,UAAU,SAAS,KAAK,GAAG,IAAI;YAC/B,oBAAoB,SAAS,MAAM,GAAG,IAAI;YAC1C,iBAAiB,SAAS,OAAO,GAAG,IAAI;;;;;YAgMF,OAAO,CAAC,OAAO,WAAW,CAAC;;AA3MvE,wBA2M4E;AAC5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YAkMF,OAAO,CAAC,OAAO,WAAW,CAAC;;AA7MvE,wBA6M4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -76,7 +76,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
76
76
  createVNode(_sfc_main$1, {
77
77
  loading: _ctx.loading,
78
78
  disabled: _ctx.disabled,
79
- class: "-mr-2 ml-1",
79
+ class: "w-option-button ml-1 mr-2",
80
80
  onMousedown: _cache[0] || (_cache[0] = withModifiers(() => {
81
81
  }, ["stop", "prevent"])),
82
82
  onClick: withModifiers(($event) => !_ctx.loading && _ctx.$emit("unselect", _ctx.valueGetter(option)), ["stop", "prevent"])
@@ -90,6 +90,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
90
90
  key: 0,
91
91
  loading: _ctx.loading,
92
92
  disabled: _ctx.disabled,
93
+ class: "ml-1 mr-2",
93
94
  onMousedown: _cache[1] || (_cache[1] = withModifiers(() => {
94
95
  }, ["stop", "prevent"])),
95
96
  onClick: withModifiers(($event) => !_ctx.loading && _ctx.$emit("unselect", _ctx.valueGetter(option)), ["stop", "prevent"])
@@ -4,7 +4,7 @@ import IconCheck from '../../../assets/icons/default/IconCheck.svg.js';
4
4
 
5
5
  const _hoisted_1 = {
6
6
  key: 0,
7
- class: "text-primary-default dark:text-primary-dark col-start-3 flex items-center justify-center [--spinner-size:1.5rem]"
7
+ class: "text-primary-default dark:text-primary-dark w-spinner-size-[1.5em] col-start-3 flex items-center justify-center"
8
8
  };
9
9
  const _sfc_main = /* @__PURE__ */ defineComponent({
10
10
  __name: "SelectOption",
@@ -1 +1 @@
1
- {"version":3,"file":"SelectOptionPrefix.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/components/SelectOptionPrefix.vue"],"names":[],"mappings":"AAuCA;AAoDA,OAAO,KAAK,EAAC,qBAAqB,EAAE,iB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CAAC,CAAC,CAAC,QAAQ,CAAC;WAkJ1D,mBAAmB,CAAC;;2LAAkE,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;wBA7BkB,GAAG;;cAjH1B,UAAU,KAAG,IAAI;;;;YAmJqB,OAAO,CAAC,OAAO,WAAW,CAAC;;AA5JvE,wBA4J4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -1,4 +1,4 @@
1
- import { defineComponent, createElementBlock, openBlock, normalizeClass, renderSlot, createBlock, createCommentVNode, resolveDynamicComponent, mergeProps, withCtx, withModifiers } from 'vue';
1
+ import { defineComponent, createBlock, createElementBlock, openBlock, resolveDynamicComponent, mergeProps, withCtx, createCommentVNode, withModifiers, normalizeClass, renderSlot } from 'vue';
2
2
  import _sfc_main$1 from '../../Button/WButtonUnselect.vue.js';
3
3
 
4
4
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -15,42 +15,42 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
15
15
  emits: ["unselect"],
16
16
  setup(__props) {
17
17
  return (_ctx, _cache) => {
18
- return openBlock(), createElementBlock("div", {
18
+ return _ctx.optionComponent ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.optionComponent), mergeProps({ key: 0 }, _ctx.optionComponentProps, {
19
+ option: _ctx.option,
20
+ index: _ctx.index,
21
+ selected: true,
22
+ model: true
23
+ }), {
24
+ default: withCtx(() => [
25
+ !_ctx.disableClear ? (openBlock(), createBlock(_sfc_main$1, {
26
+ key: 0,
27
+ loading: _ctx.loading,
28
+ disabled: _ctx.disabled,
29
+ class: "w-option-button ml-1 mr-2",
30
+ onMousedown: _cache[0] || (_cache[0] = withModifiers(() => {
31
+ }, ["stop", "prevent"])),
32
+ onClick: _cache[1] || (_cache[1] = withModifiers(($event) => _ctx.$emit("unselect"), ["stop", "prevent"]))
33
+ }, null, 8, ["loading", "disabled"])) : createCommentVNode("", true)
34
+ ]),
35
+ _: 1
36
+ }, 16, ["option", "index"])) : (openBlock(), createElementBlock("div", {
37
+ key: 1,
19
38
  class: normalizeClass(["text-description group/model relative grid grid-cols-[1fr,auto] items-center", {
20
39
  "cursor-pointer": !_ctx.disabled,
21
40
  "cursor-not-allowed opacity-50": _ctx.disabled
22
41
  }])
23
42
  }, [
24
- renderSlot(_ctx.$slots, "option", {}, () => [
25
- _ctx.optionComponent ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.optionComponent), mergeProps({ key: 0 }, _ctx.optionComponentProps, {
26
- option: _ctx.option,
27
- index: _ctx.index,
28
- selected: true,
29
- model: true
30
- }), {
31
- default: withCtx(() => [
32
- !_ctx.disableClear ? (openBlock(), createBlock(_sfc_main$1, {
33
- key: 0,
34
- loading: _ctx.loading,
35
- disabled: _ctx.disabled,
36
- class: "-mr-2 ml-1",
37
- onMousedown: _cache[0] || (_cache[0] = withModifiers(() => {
38
- }, ["stop", "prevent"])),
39
- onClick: _cache[1] || (_cache[1] = withModifiers(($event) => _ctx.$emit("unselect"), ["stop", "prevent"]))
40
- }, null, 8, ["loading", "disabled"])) : createCommentVNode("", true)
41
- ]),
42
- _: 1
43
- }, 16, ["option", "index"])) : createCommentVNode("", true)
44
- ]),
45
- !_ctx.optionComponent && !_ctx.disableClear ? (openBlock(), createBlock(_sfc_main$1, {
43
+ renderSlot(_ctx.$slots, "option"),
44
+ !_ctx.disableClear ? (openBlock(), createBlock(_sfc_main$1, {
46
45
  key: 0,
47
46
  loading: _ctx.loading,
48
47
  disabled: _ctx.disabled,
48
+ class: "mx-1 mr-2",
49
49
  onMousedown: _cache[2] || (_cache[2] = withModifiers(() => {
50
50
  }, ["stop", "prevent"])),
51
51
  onClick: _cache[3] || (_cache[3] = withModifiers(($event) => _ctx.$emit("unselect"), ["stop", "prevent"]))
52
52
  }, null, 8, ["loading", "disabled"])) : createCommentVNode("", true)
53
- ], 2);
53
+ ], 2));
54
54
  };
55
55
  }
56
56
  });
@@ -4,7 +4,7 @@ import _export_sfc from '../../_virtual/_plugin-vue_export-helper.js';
4
4
  const _sfc_main = {};
5
5
 
6
6
  const _hoisted_1 = {
7
- class: "square-[var(--spinner-size,2rem)] animate-spin",
7
+ class: "square-[var(--w-spinner-size,2rem)] animate-spin",
8
8
  width: "20",
9
9
  height: "20",
10
10
  viewBox: "25 25 50 50"
@@ -14,7 +14,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
14
14
  _: 3
15
15
  })) : (openBlock(), createElementBlock("div", {
16
16
  key: 1,
17
- class: "grid grid-cols-[repeat(var(--w-columns-length),calc(50%-((var(--w-columns-length)-1)*var(--modal-wrapper-padding,2rem)/2)))] gap-[var(--modal-wrapper-padding,2rem)]",
17
+ class: "grid grid-cols-[repeat(var(--w-columns-length),calc(50%-((var(--w-columns-length)-1)*var(--w-modal-wrapper-padding,2rem)/2)))] gap-[var(--w-modal-wrapper-padding,2rem)]",
18
18
  style: normalizeStyle({ "--w-columns-length": _ctx.$slots.default?.().length })
19
19
  }, [
20
20
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.$slots.default?.(), (slot, index) => {
@@ -99,7 +99,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
99
99
  }, [
100
100
  _ctx.loading ? (openBlock(), createBlock(WSpinner, {
101
101
  key: 0,
102
- class: "text-description [--spinner-size:1.25rem]"
102
+ class: "text-description w-spinner-size-5"
103
103
  })) : createCommentVNode("", true)
104
104
  ], 2)
105
105
  ], 2)
@@ -6,6 +6,7 @@ import { default as WButtonAction } from '../components/Button/WButtonAction.vue
6
6
  import { default as WButtonCopy } from '../components/Button/WButtonCopy.vue';
7
7
  import { default as WButtonDropdown } from '../components/Button/WButtonDropdown.vue';
8
8
  import { default as WButtonGroup } from '../components/Button/WButtonGroup.vue';
9
+ import { default as WButtonInput } from '../components/Button/WButtonInput.vue';
9
10
  import { default as WButtonMore } from '../components/Button/WButtonMore.vue';
10
11
  import { default as WButtonMoreItem } from '../components/Button/WButtonMoreItem.vue';
11
12
  import { default as WButtonSelection } from '../components/Button/WButtonSelection.vue';
@@ -85,5 +86,5 @@ declare const _default: {
85
86
  install: (app: App | any) => void;
86
87
  };
87
88
  export default _default;
88
- export { WActionsBar, WBottomSheet, WButton, WButtonAction, WButtonCopy, WButtonDropdown, WButtonGroup, WButtonMore, WButtonMoreItem, WButtonSelection, WButtonSelectionAction, WButtonSelectionState, WButtonUnselect, WCheckbox, WChip, WClickOutside, WCounter, WDatePicker, WDatePickerSingle, WDropdown, WDropdownMenu, WEmptyComponent, WExpansion, WExpansionItem, WFieldWrapper, WFilePicker, WFilterWrapper, WForm, WFormAsyncButtonGroup, WFormAsyncInput, WFormAsyncSelect, WFormAsyncSelectInfiniteSingle, WFormAsyncSelectSingle, WFormAsyncSelectStringified, WFormAsyncToggle, WFormValidator, WHeaderBar, WImageViewer, WInfiniteList, WInfiniteListWrapper, WInfoCard, WInfoCardNegative, WInput, WInputAsync, WInputDate, WInputOptions, WInputSuggest, WLink, WLinkArrow, WList, WListCard, WListCardField, WListHeader, WListHeaderItem, WMenuItem, WModal, WModalStepper, WModalWrapper, WNavBar, WNavItem, WNavItemExpand, WNavItemTransition, WNotify, WNumberFormatter, WPage, WPageNumerator, WPageTitle, WProgress, WSelect, WSelectAsync, WSelectAsyncList, WSelectAsyncSingle, WSelectSingle, WSelectStringified, WSkeleton, WSpinner, WTabs, WTabsColumns, WTabsItem, WToggle, WTooltip, WTooltipContainer, };
89
+ export { WActionsBar, WBottomSheet, WButton, WButtonAction, WButtonCopy, WButtonDropdown, WButtonGroup, WButtonInput, WButtonMore, WButtonMoreItem, WButtonSelection, WButtonSelectionAction, WButtonSelectionState, WButtonUnselect, WCheckbox, WChip, WClickOutside, WCounter, WDatePicker, WDatePickerSingle, WDropdown, WDropdownMenu, WEmptyComponent, WExpansion, WExpansionItem, WFieldWrapper, WFilePicker, WFilterWrapper, WForm, WFormValidator, WFormAsyncButtonGroup, WFormAsyncInput, WFormAsyncSelect, WFormAsyncSelectInfiniteSingle, WFormAsyncSelectSingle, WFormAsyncSelectStringified, WFormAsyncToggle, WHeaderBar, WImageViewer, WInfiniteList, WInfiniteListWrapper, WInfoCard, WInfoCardNegative, WInput, WInputAsync, WInputDate, WInputOptions, WInputSuggest, WLink, WLinkArrow, WList, WListCard, WListCardField, WListHeader, WListHeaderItem, WMenuItem, WModal, WModalStepper, WModalWrapper, WNavBar, WNavItem, WNavItemExpand, WNavItemTransition, WNotify, WNumberFormatter, WPage, WPageNumerator, WPageTitle, WProgress, WSelect, WSelectAsync, WSelectAsyncList, WSelectAsyncSingle, WSelectSingle, WSelectStringified, WSkeleton, WSpinner, WTabs, WTabsColumns, WTabsItem, WToggle, WTooltip, WTooltipContainer, };
89
90
  //# sourceMappingURL=componentsPlugin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"componentsPlugin.d.ts","sourceRoot":"","sources":["../../src/imports/componentsPlugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,GAAG,EAAC,MAAM,KAAK,CAAA;AAE5B,OAAO,WAAW,MAAM,yCAAyC,CAAA;AACjE,OAAO,YAAY,MAAM,2CAA2C,CAAA;AACpE,OAAO,OAAO,MAAM,iCAAiC,CAAA;AACrD,OAAO,aAAa,MAAM,uCAAuC,CAAA;AACjE,OAAO,WAAW,MAAM,qCAAqC,CAAA;AAC7D,OAAO,eAAe,MAAM,yCAAyC,CAAA;AACrE,OAAO,YAAY,MAAM,sCAAsC,CAAA;AAC/D,OAAO,WAAW,MAAM,qCAAqC,CAAA;AAC7D,OAAO,eAAe,MAAM,yCAAyC,CAAA;AACrE,OAAO,gBAAgB,MAAM,0CAA0C,CAAA;AACvE,OAAO,sBAAsB,MAAM,gDAAgD,CAAA;AACnF,OAAO,qBAAqB,MAAM,+CAA+C,CAAA;AACjF,OAAO,eAAe,MAAM,yCAAyC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,qBAAqB,EACrB,eAAe,EACf,SAAS,EACT,KAAK,EACL,aAAa,EACb,QAAQ,EACR,WAAW,EACX,iBAAiB,EACjB,SAAS,EACT,aAAa,EACb,eAAe,EACf,UAAU,EACV,cAAc,EACd,aAAa,EACb,WAAW,EACX,cAAc,EACd,KAAK,EACL,cAAc,EACd,qBAAqB,EACrB,eAAe,EACf,gBAAgB,EAChB,8BAA8B,EAC9B,sBAAsB,EACtB,2BAA2B,EAC3B,gBAAgB,EAChB,UAAU,EACV,YAAY,EACZ,aAAa,EACb,oBAAoB,EACpB,SAAS,EACT,iBAAiB,EACjB,MAAM,EACN,WAAW,EACX,UAAU,EACV,aAAa,EACb,aAAa,EACb,KAAK,EACL,UAAU,EACV,KAAK,EACL,SAAS,EACT,cAAc,EACd,WAAW,EACX,eAAe,EACf,SAAS,EACT,MAAM,EACN,aAAa,EACb,aAAa,EACb,OAAO,EACP,QAAQ,EACR,cAAc,EACd,kBAAkB,EAClB,OAAO,EACP,gBAAgB,EAChB,KAAK,EACL,cAAc,EACd,UAAU,EACV,SAAS,EACT,OAAO,EACP,YAAY,EACZ,gBAAgB,EAChB,kBAAkB,EAClB,aAAa,EACb,kBAAkB,EAClB,SAAS,EACT,QAAQ,EACR,KAAK,EACL,YAAY,EACZ,SAAS,EACT,OAAO,EACP,QAAQ,EACR,iBAAiB,GAClB,CAAA"}
package/dist/main.js CHANGED
@@ -9,6 +9,7 @@ export { default as WButtonAction } from './components/Button/WButtonAction.vue.
9
9
  export { default as WButtonCopy } from './components/Button/WButtonCopy.vue.js';
10
10
  export { default as WButtonDropdown } from './components/Button/WButtonDropdown.vue.js';
11
11
  export { default as WButtonGroup } from './components/Button/WButtonGroup.vue.js';
12
+ export { default as WButtonInput } from './components/Button/WButtonInput.vue.js';
12
13
  export { default as WButtonMore } from './components/Button/WButtonMore.vue.js';
13
14
  export { default as WButtonMoreItem } from './components/Button/WButtonMoreItem.vue.js';
14
15
  export { default as WButtonSelection } from './components/Button/WButtonSelection.vue.js';
@@ -92,7 +93,7 @@ export { DOMListenerContainer };
92
93
  export { SemanticType } from './utils/SemanticType.js';
93
94
  export { HorizontalAlign } from './utils/HorizontalAlign.js';
94
95
  export { Month, WeekDay, addDay, addMonth, addYear, dateFormat, dateFormatter, dateRegexp, dateToQueryString, datetimeFormat, durationHumanize, getDurationRound, getStartOfDay, getStartOfMonth, getStartOfNextDay, getStartOfWeek, isSameDate, isSameMonth, isSameYear, monthShortFormatter, parseDate, timeFormat, weekdayShortFormatter } from './utils/dateTime.js';
95
- export { getIsMobile, getIsTouchDevice, useIsMobile } from './utils/mobile.js';
96
+ export { getIsMobile, getIsTablet, getIsTouchDevice, useIsMobile } from './utils/mobile.js';
96
97
  export { PAGE_LENGTH, makeQueryPaginated, useDefaultQuery, wrapUseQueryPaginated } from './utils/useDefaultQuery.js';
97
98
  export { paginatedResponseUpdater, useQueryUpdater } from './utils/useQueryUpdater.js';
98
99
  export { useCopy } from './utils/useCopy.js';
@@ -1,6 +1,8 @@
1
1
  export declare const getIsMobile: () => boolean;
2
+ export declare const getIsTablet: () => boolean;
2
3
  export declare const useIsMobile: () => {
3
- isMobile: import('vue').Ref<boolean, boolean>;
4
+ isMobile: Readonly<import('vue').Ref<boolean, boolean>>;
5
+ isTablet: Readonly<import('vue').Ref<boolean, boolean>>;
4
6
  };
5
7
  export declare const getIsTouchDevice: () => boolean;
6
8
  //# sourceMappingURL=mobile.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"mobile.d.ts","sourceRoot":"","sources":["../../src/utils/mobile.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,WAAW,QAAO,OAE9B,CAAA;AAID,eAAO,MAAM,WAAW;;CAIvB,CAAA;AAED,eAAO,MAAM,gBAAgB,QAAO,OAEnC,CAAA"}
1
+ {"version":3,"file":"mobile.d.ts","sourceRoot":"","sources":["../../src/utils/mobile.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,WAAW,QAAO,OAE9B,CAAA;AAED,eAAO,MAAM,WAAW,QAAO,OAE9B,CAAA;AAKD,eAAO,MAAM,WAAW;;;CAKvB,CAAA;AAED,eAAO,MAAM,gBAAgB,QAAO,OAEnC,CAAA"}
@@ -1,13 +1,18 @@
1
- import { ref } from 'vue';
1
+ import { ref, readonly } from 'vue';
2
2
  import { isClientSide, debounce } from './utils.js';
3
3
 
4
4
  const getIsMobile = () => {
5
5
  return isClientSide && window.innerWidth < 640;
6
6
  };
7
+ const getIsTablet = () => {
8
+ return isClientSide && window.innerWidth < 1280;
9
+ };
7
10
  const isMobile = ref(getIsMobile());
11
+ const isTablet = ref(getIsTablet());
8
12
  const useIsMobile = () => {
9
13
  return {
10
- isMobile
14
+ isMobile: readonly(isMobile),
15
+ isTablet: readonly(isTablet)
11
16
  };
12
17
  };
13
18
  const getIsTouchDevice = () => {
@@ -16,8 +21,9 @@ const getIsTouchDevice = () => {
16
21
  if (isClientSide) {
17
22
  const listener = debounce(() => {
18
23
  isMobile.value = getIsMobile();
24
+ isTablet.value = getIsTablet();
19
25
  }, 50);
20
26
  window.addEventListener("resize", listener);
21
27
  }
22
28
 
23
- export { getIsMobile, getIsTouchDevice, useIsMobile };
29
+ export { getIsMobile, getIsTablet, getIsTouchDevice, useIsMobile };
@@ -125,6 +125,7 @@ export default [
125
125
  'unused-imports/no-unused-imports': 'error',
126
126
  'tailwindcss/no-custom-classname': 'off',
127
127
  'tailwindcss/migration-from-tailwind-2': 'off',
128
+ 'tailwindcss/enforces-negative-arbitrary-values': 'off',
128
129
  'no-multiple-empty-lines': [1, {max: 1, maxEOF: 0, maxBOF: 0}],
129
130
  'keyword-spacing': 1,
130
131
  'key-spacing': 1,
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "https://github.com/rsmple/eco-vue-js.git"
6
6
  },
7
- "version": "0.10.12",
7
+ "version": "0.10.14",
8
8
  "scripts": {
9
9
  "build": "run-p type-check \"build-only {@}\" --",
10
10
  "dev": "vite build --watch",
@@ -154,6 +154,9 @@
154
154
  "./dist/components/Button/WButtonGroup.vue": {
155
155
  "import": "./dist/components/Button/WButtonGroup.vue.js"
156
156
  },
157
+ "./dist/components/Button/WButtonInput.vue": {
158
+ "import": "./dist/components/Button/WButtonInput.vue.js"
159
+ },
157
160
  "./dist/components/Button/WButtonMore.vue": {
158
161
  "import": "./dist/components/Button/WButtonMore.vue.js"
159
162
  },
@@ -109,6 +109,13 @@ const tailwindBase = {
109
109
  overflow: {
110
110
  overlay: 'overlay',
111
111
  },
112
+ fontSize: {
113
+ '4xs': ['0.4375rem', '1.3'],
114
+ '3xs': ['0.5625rem', '1.3'],
115
+ '2xs': ['0.625rem', '1.3'],
116
+ '2.5xl': ['1.625rem', '2rem'],
117
+ '7.5xl': ['5.25rem', '1.9'],
118
+ },
112
119
  },
113
120
  fontFamily: {
114
121
  sans: ['MontSerrat', 'system-ui'],