@wikicasa-dev/components 2.9.1-alpha.1 → 2.9.1-alpha.3

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.
@@ -74,20 +74,20 @@ var y = {
74
74
  console.error(e);
75
75
  return;
76
76
  }
77
- };
77
+ }, U = (e, t = !1) => t ? void 0 : H(e), W = (e = !1) => e || !c.baseUrl ? void 0 : c.linkProps;
78
78
  return (t, g) => (d(), i("nav", y, [c.count > 0 ? (d(), i("ul", b, [
79
79
  a("li", {
80
80
  "data-cy": c.prevDataCy,
81
81
  onClick: g[0] ||= (e) => V(A.value)
82
82
  }, [(d(), n(p(N(A.value) ? "span" : j.value), u({
83
- href: H(A.value),
84
- to: H(A.value),
83
+ href: U(A.value, N(A.value)),
84
+ to: U(A.value, N(A.value)),
85
85
  class: ["arrow-button prev-page uikit-flex uikit-h-30px uikit-min-w-[30px] uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px", {
86
86
  "uikit-cursor-pointer active:max-sm:uikit-bg-w-primary hover:sm:uikit-bg-w-primary [&_svg]:active:max-sm:uikit-brightness-0 [&_svg]:active:max-sm:uikit-invert [&_svg]:hover:sm:uikit-brightness-0 [&_svg]:hover:sm:uikit-invert": l.value !== 1,
87
87
  "active:max-sm:uikit-text-white hover:sm:uikit-text-white": c.small && l.value !== 1,
88
88
  "uikit-rounded-xs": c.small && c.prevLabel
89
89
  }]
90
- }, c.linkProps), {
90
+ }, W(N(A.value))), {
91
91
  default: _(() => [s(h(v), {
92
92
  width: 20,
93
93
  height: 11,
@@ -108,7 +108,7 @@ var y = {
108
108
  href: H(1),
109
109
  to: H(1),
110
110
  class: "page uikit-flex uikit-h-30px uikit-min-w-[30px] uikit-cursor-pointer uikit-select-none uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px uikit-no-underline hover:uikit-bg-w-primary hover:uikit-text-white"
111
- }, c.linkProps), {
111
+ }, W()), {
112
112
  default: _(() => [...g[4] ||= [o(" 1 ", -1)]]),
113
113
  _: 1
114
114
  }, 16, ["href", "to"]))])) : r("", !0),
@@ -120,7 +120,7 @@ var y = {
120
120
  href: H(e),
121
121
  to: H(e),
122
122
  class: "uikit-flex uikit-h-30px uikit-min-w-[30px] uikit-cursor-pointer uikit-select-none uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px uikit-no-underline hover:uikit-bg-w-primary hover:uikit-text-white"
123
- }, { ref_for: !0 }, c.linkProps), {
123
+ }, { ref_for: !0 }, W()), {
124
124
  default: _(() => [o(m(c.formatter ? c.formatter(e) : e), 1)]),
125
125
  _: 2
126
126
  }, 1040, ["href", "to"]))], 8, w))), 128))
@@ -129,7 +129,7 @@ var y = {
129
129
  href: H(l.value),
130
130
  to: H(l.value),
131
131
  class: ["selected uikit-pointer-events-none uikit-flex uikit-h-30px uikit-min-w-[30px] uikit-select-none uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px uikit-no-underline", { "uikit-bg-w-primary uikit-text-white hover:uikit-bg-w-primary hover:uikit-text-white": !c.small }]
132
- }, c.linkProps), {
132
+ }, W()), {
133
133
  default: _(() => [o(m(c.formatter ? c.formatter(l.value) : l.value), 1)]),
134
134
  _: 1
135
135
  }, 16, [
@@ -145,7 +145,7 @@ var y = {
145
145
  href: H(e),
146
146
  to: H(e),
147
147
  class: "uikit-flex uikit-h-30px uikit-min-w-[30px] uikit-cursor-pointer uikit-select-none uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px uikit-text-w-black uikit-no-underline hover:uikit-bg-w-primary hover:uikit-text-white"
148
- }, { ref_for: !0 }, c.linkProps), {
148
+ }, { ref_for: !0 }, W()), {
149
149
  default: _(() => [o(m(c.formatter ? c.formatter(e) : e), 1)]),
150
150
  _: 2
151
151
  }, 1040, ["href", "to"]))], 8, T))), 128)),
@@ -157,7 +157,7 @@ var y = {
157
157
  href: H(M.value),
158
158
  to: H(M.value),
159
159
  class: "uikit-flex uikit-h-30px uikit-min-w-[30px] uikit-cursor-pointer uikit-select-none uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px uikit-no-underline hover:uikit-bg-w-primary hover:uikit-text-white"
160
- }, c.linkProps), {
160
+ }, W()), {
161
161
  default: _(() => [o(m(c.formatter ? c.formatter(M.value) : M.value), 1)]),
162
162
  _: 1
163
163
  }, 16, ["href", "to"]))])) : r("", !0)
@@ -166,14 +166,14 @@ var y = {
166
166
  "data-cy": c.nextDataCy,
167
167
  onClick: g[3] ||= (e) => V(k.value)
168
168
  }, [(d(), n(p(P(l.value) ? "span" : j.value), u({
169
- href: H(k.value),
170
- to: H(k.value),
169
+ href: U(k.value, P(l.value)),
170
+ to: U(k.value, P(l.value)),
171
171
  class: ["arrow-button next-page uikit-flex uikit-h-30px uikit-min-w-[30px] uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px", {
172
172
  "uikit-cursor-pointer active:max-sm:uikit-bg-w-primary hover:sm:uikit-bg-w-primary [&_svg]:active:max-sm:uikit-brightness-0 [&_svg]:active:max-sm:uikit-invert [&_svg]:hover:sm:uikit-brightness-0 [&_svg]:hover:sm:uikit-invert": (l.value || 0) < M.value,
173
173
  "active:max-sm:uikit-text-white hover:sm:uikit-text-white": c.small && (l.value || 0) < M.value,
174
174
  "uikit-rounded-xs": c.small && c.nextLabel
175
175
  }]
176
- }, c.linkProps), {
176
+ }, W(P(l.value))), {
177
177
  default: _(() => [c.small && c.nextLabel ? (d(), i("span", O, m(c.nextLabel), 1)) : r("", !0), s(h(v), {
178
178
  "stroke-color": (l.value || 0) === M.value ? "#8996A9" : c.arrowColor,
179
179
  width: 20,
@@ -14,10 +14,12 @@ var t = /* @__PURE__ */ new Set(), n = null, r = () => {
14
14
  }, a = () => {
15
15
  let n = Symbol("scroll-lock"), a = () => {
16
16
  t.delete(n) && (t.size || i());
17
- };
18
- return e(a, !0), {
17
+ }, o = !1;
18
+ return e(() => {
19
+ o = !0, a();
20
+ }, !0), {
19
21
  lock: () => {
20
- t.add(n), r();
22
+ o || (t.add(n), r());
21
23
  },
22
24
  unlock: a
23
25
  };
@@ -1,3 +1,3 @@
1
- import '../../../assets/swiper-thumbs.css';/* empty css */
1
+ import '../../../assets/swiper-controller.css';/* empty css */
2
2
  import { Autoplay as e } from "swiper/modules";
3
3
  export { e as default };
@@ -1,3 +1,3 @@
1
- import '../../../assets/swiper-thumbs.css';/* empty css */
1
+ import '../../../assets/swiper-controller.css';/* empty css */
2
2
  import { Controller as e } from "swiper/modules";
3
3
  export { e as default };
@@ -1,3 +1,3 @@
1
- import '../../../assets/swiper-thumbs.css';/* empty css */
1
+ import '../../../assets/swiper-controller.css';/* empty css */
2
2
  import { Keyboard as e } from "swiper/modules";
3
3
  export { e as default };
@@ -1,3 +1,3 @@
1
- import '../../../assets/swiper-thumbs.css';/* empty css */
1
+ import '../../../assets/swiper-controller.css';/* empty css */
2
2
  import { Thumbs as e } from "swiper/modules";
3
3
  export { e as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wikicasa-dev/components",
3
- "version": "2.9.1-alpha.1",
3
+ "version": "2.9.1-alpha.3",
4
4
  "description": "Wikicasa frontend components",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -85,11 +85,11 @@
85
85
  "vue-tsc": "^3.3.11",
86
86
  "@wikicasa-dev/eslint-config": "0.0.0",
87
87
  "@wikicasa-dev/types": "2.8.0",
88
- "@wikicasa-dev/tailwind-plugins": "0.0.7",
89
- "@wikicasa-dev/tsconfig": "0.0.0",
88
+ "@wikicasa-dev/utilities": "1.2.11",
90
89
  "@wikicasa-dev/vue-composables": "0.2.0",
90
+ "@wikicasa-dev/tsconfig": "0.0.0",
91
91
  "@wikicasa-dev/svg-icons": "1.3.7",
92
- "@wikicasa-dev/utilities": "1.2.11"
92
+ "@wikicasa-dev/tailwind-plugins": "0.0.7"
93
93
  },
94
94
  "readme": "ERROR: No README data found!",
95
95
  "scripts": {