@okam/stack-ui 1.32.5 → 1.32.7
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/index101.js +1 -1
- package/index101.mjs +1 -1
- package/index102.js +1 -1
- package/index102.mjs +3 -3
- package/index103.js +1 -1
- package/index103.mjs +1 -1
- package/index110.js +1 -1
- package/index110.mjs +5 -5
- package/index111.js +1 -1
- package/index111.mjs +2 -2
- package/index112.js +1 -1
- package/index112.mjs +1 -1
- package/index113.js +1 -1
- package/index113.mjs +2 -2
- package/index115.js +1 -1
- package/index115.mjs +4 -4
- package/index116.js +1 -1
- package/index116.mjs +2 -2
- package/index120.js +1 -1
- package/index120.mjs +4 -4
- package/index121.js +1 -1
- package/index121.mjs +2 -2
- package/index122.js +1 -1
- package/index122.mjs +2 -2
- package/index123.js +1 -1
- package/index123.mjs +8 -8
- package/index125.js +1 -1
- package/index125.mjs +2 -2
- package/index126.js +1 -1
- package/index126.mjs +3 -3
- package/index130.js +1 -1
- package/index130.mjs +2 -2
- package/index138.js +1 -1
- package/index138.mjs +52 -12
- package/index139.js +1 -1
- package/index139.mjs +46 -52
- package/index140.js +1 -1
- package/index140.mjs +241 -46
- package/index141.js +2 -1
- package/index141.mjs +13 -241
- package/index142.js +1 -2
- package/index142.mjs +29 -12
- package/index143.js +1 -1
- package/index143.mjs +11 -29
- package/index145.js +1 -1
- package/index145.mjs +1 -1
- package/index146.js +1 -1
- package/index146.mjs +1 -1
- package/index147.js +1 -1
- package/index147.mjs +2 -2
- package/index148.js +1 -1
- package/index148.mjs +3 -3
- package/index149.js +1 -1
- package/index149.mjs +3 -3
- package/index150.js +1 -1
- package/index150.mjs +107 -24
- package/index151.js +1 -1
- package/index151.mjs +79 -110
- package/index152.js +1 -1
- package/index152.mjs +25 -106
- package/index153.js +1 -1
- package/index153.mjs +23 -82
- package/index154.js +1 -1
- package/index154.mjs +113 -25
- package/index155.js +1 -1
- package/index155.mjs +2 -2
- package/index156.js +1 -1
- package/index156.mjs +123 -17
- package/index157.js +1 -1
- package/index157.mjs +24 -122
- package/index158.js +1 -1
- package/index158.mjs +17 -71
- package/index159.js +1 -1
- package/index159.mjs +62 -338
- package/index160.js +1 -1
- package/index160.mjs +346 -42
- package/index161.js +1 -1
- package/index161.mjs +43 -29
- package/index162.js +1 -1
- package/index162.mjs +28 -24
- package/index164.js +1 -1
- package/index164.mjs +2 -2
- package/index167.js +1 -1
- package/index167.mjs +3 -3
- package/index169.js +1 -1
- package/index169.mjs +4 -4
- package/index17.js +1 -1
- package/index17.mjs +15 -15
- package/index170.js +1 -1
- package/index170.mjs +2 -2
- package/index171.js +1 -1
- package/index171.mjs +1 -1
- package/index173.js +1 -1
- package/index173.mjs +1 -1
- package/index175.js +1 -1
- package/index175.mjs +1 -1
- package/index176.js +1 -1
- package/index176.mjs +1 -1
- package/index177.js +1 -1
- package/index177.mjs +1 -1
- package/index178.js +1 -1
- package/index178.mjs +4 -4
- package/index179.js +1 -1
- package/index179.mjs +1 -1
- package/index180.js +1 -1
- package/index180.mjs +2 -2
- package/index182.js +1 -1
- package/index182.mjs +1 -1
- package/index184.js +1 -1
- package/index184.mjs +1 -1
- package/index185.js +1 -1
- package/index185.mjs +197 -205
- package/index186.js +1 -1
- package/index186.mjs +64 -24
- package/index187.js +1 -1
- package/index187.mjs +143 -4
- package/index188.js +1 -1
- package/index188.mjs +124 -3
- package/index189.js +1 -1
- package/index189.mjs +215 -116
- package/index190.js +1 -1
- package/index190.mjs +184 -23
- package/index191.js +1 -1
- package/index191.mjs +69 -51
- package/index192.js +1 -1
- package/index192.mjs +278 -43
- package/index193.js +1 -1
- package/index193.mjs +92 -31
- package/index194.js +1 -1
- package/index194.mjs +184 -109
- package/index195.js +1 -1
- package/index195.mjs +84 -77
- package/index196.js +1 -1
- package/index196.mjs +58 -101
- package/index197.js +1 -1
- package/index197.mjs +127 -98
- package/index198.js +1 -1
- package/index198.mjs +101 -188
- package/index199.js +1 -1
- package/index199.mjs +110 -52
- package/index200.js +1 -1
- package/index200.mjs +67 -138
- package/index201.js +1 -1
- package/index201.mjs +105 -119
- package/index202.js +1 -1
- package/index202.mjs +47 -219
- package/index203.js +1 -1
- package/index203.mjs +88 -185
- package/index204.js +1 -1
- package/index204.mjs +63 -62
- package/index205.js +1 -1
- package/index205.mjs +52 -275
- package/index206.js +1 -1
- package/index206.mjs +94 -93
- package/index207.js +5 -1
- package/index207.mjs +75 -183
- package/index208.js +1 -1
- package/index208.mjs +2014 -73
- package/index209.js +1 -1
- package/index209.mjs +57 -56
- package/index21.js +1 -1
- package/index21.mjs +96 -92
- package/index210.js +1 -1
- package/index210.mjs +185 -123
- package/index211.js +1 -1
- package/index211.mjs +205 -110
- package/index212.js +1 -1
- package/index212.mjs +24 -122
- package/index213.js +1 -1
- package/index213.mjs +4 -72
- package/index214.js +1 -1
- package/index214.mjs +3 -110
- package/index215.js +1 -1
- package/index215.mjs +124 -51
- package/index216.js +1 -1
- package/index216.mjs +29 -93
- package/index217.js +1 -1
- package/index217.mjs +51 -70
- package/index218.js +1 -1
- package/index218.mjs +44 -56
- package/index219.js +1 -1
- package/index219.mjs +36 -98
- package/index220.js +1 -5
- package/index220.mjs +111 -78
- package/index221.js +1 -1
- package/index221.mjs +73 -2021
- package/index222.js +1 -1
- package/index222.mjs +99 -57
- package/index223.js +1 -1
- package/index223.mjs +98 -189
- package/index224.js +1 -1
- package/index224.mjs +4 -4
- package/index225.js +1 -1
- package/index225.mjs +1 -1
- package/index226.js +1 -1
- package/index226.mjs +3 -3
- package/index227.js +1 -1
- package/index227.mjs +34 -34
- package/index230.js +1 -1
- package/index230.mjs +2 -2
- package/index231.js +1 -1
- package/index231.mjs +1 -1
- package/index266.js +1 -1
- package/index266.mjs +34 -34
- package/index269.js +1 -1
- package/index269.mjs +130 -4
- package/index270.js +1 -1
- package/index270.mjs +188 -22
- package/index271.js +1 -1
- package/index271.mjs +8 -46
- package/index272.js +1 -1
- package/index272.mjs +3 -5
- package/index273.js +1 -1
- package/index273.mjs +37 -6
- package/index274.js +1 -1
- package/index274.mjs +5 -14
- package/index275.js +1 -1
- package/index275.mjs +29 -24
- package/index276.js +1 -1
- package/index276.mjs +6 -28
- package/index277.js +1 -1
- package/index277.mjs +4 -31
- package/index278.js +1 -1
- package/index278.mjs +48 -9
- package/index279.js +1 -1
- package/index279.mjs +9 -28
- package/index280.js +1 -1
- package/index280.mjs +16 -10
- package/index281.js +1 -1
- package/index281.mjs +16 -6
- package/index282.js +1 -1
- package/index282.mjs +16 -8
- package/index283.js +1 -1
- package/index283.mjs +16 -14
- package/index284.js +1 -1
- package/index284.mjs +16 -9
- package/index285.js +1 -1
- package/index285.mjs +15 -130
- package/index286.js +1 -1
- package/index286.mjs +16 -191
- package/index287.js +1 -1
- package/index287.mjs +16 -10
- package/index288.js +1 -1
- package/index288.mjs +16 -4
- package/index289.js +1 -1
- package/index289.mjs +16 -37
- package/index290.js +1 -1
- package/index290.mjs +16 -6
- package/index291.js +1 -1
- package/index291.mjs +16 -30
- package/index292.js +1 -1
- package/index292.mjs +16 -7
- package/index293.js +1 -1
- package/index293.mjs +16 -49
- package/index294.js +1 -1
- package/index294.mjs +15 -15
- package/index295.js +1 -1
- package/index295.mjs +12 -12
- package/index296.js +1 -1
- package/index296.mjs +15 -15
- package/index297.js +1 -1
- package/index297.mjs +12 -12
- package/index298.js +1 -1
- package/index298.mjs +12 -12
- package/index299.js +1 -1
- package/index299.mjs +15 -15
- package/index300.js +1 -1
- package/index300.mjs +12 -12
- package/index301.js +1 -1
- package/index301.mjs +15 -15
- package/index302.js +1 -1
- package/index302.mjs +12 -12
- package/index303.js +1 -1
- package/index303.mjs +12 -12
- package/index304.js +1 -1
- package/index304.mjs +12 -12
- package/index305.js +1 -1
- package/index305.mjs +15 -15
- package/index306.js +1 -1
- package/index306.mjs +15 -15
- package/index307.js +1 -1
- package/index307.mjs +15 -15
- package/index308.js +1 -1
- package/index308.mjs +15 -15
- package/index309.js +1 -1
- package/index309.mjs +15 -15
- package/index310.js +1 -1
- package/index310.mjs +15 -15
- package/index311.js +1 -1
- package/index311.mjs +15 -15
- package/index312.js +1 -1
- package/index312.mjs +15 -15
- package/index313.js +1 -1
- package/index313.mjs +15 -15
- package/index314.js +1 -1
- package/index314.mjs +25 -16
- package/index315.js +1 -1
- package/index315.mjs +48 -16
- package/index316.js +1 -1
- package/index316.mjs +6 -16
- package/index317.js +1 -1
- package/index317.mjs +6 -16
- package/index318.js +1 -1
- package/index318.mjs +15 -16
- package/index319.js +1 -1
- package/index319.mjs +25 -16
- package/index320.js +1 -1
- package/index320.mjs +29 -16
- package/index321.js +1 -1
- package/index321.mjs +32 -16
- package/index322.js +1 -1
- package/index322.mjs +29 -16
- package/index323.js +1 -1
- package/index323.mjs +10 -16
- package/index324.js +1 -1
- package/index324.mjs +6 -16
- package/index325.js +1 -1
- package/index325.mjs +8 -16
- package/index326.js +1 -1
- package/index326.mjs +14 -16
- package/index327.js +1 -1
- package/index327.mjs +9 -16
- package/index328.js +1 -1
- package/index328.mjs +1 -1
- package/index329.js +1 -1
- package/index329.mjs +1 -1
- package/index331.js +1 -1
- package/index331.mjs +1 -1
- package/index332.js +1 -1
- package/index332.mjs +2 -2
- package/index333.js +1 -1
- package/index333.mjs +1 -1
- package/index337.js +1 -1
- package/index337.mjs +1 -1
- package/index338.js +1 -1
- package/index338.mjs +4 -7
- package/index339.js +1 -1
- package/index339.mjs +6 -68
- package/index340.js +1 -1
- package/index340.mjs +65 -27
- package/index341.js +1 -1
- package/index341.mjs +30 -6
- package/index342.js +1 -1
- package/index342.mjs +6 -6
- package/index343.js +1 -1
- package/index343.mjs +6 -20
- package/index344.js +1 -1
- package/index344.mjs +20 -3
- package/index345.js +1 -1
- package/index345.mjs +117 -5
- package/index346.js +1 -1
- package/index346.mjs +71 -117
- package/index347.js +1 -1
- package/index347.mjs +7 -71
- package/index348.js +1 -1
- package/index348.mjs +7 -7
- package/index349.js +1 -1
- package/index349.mjs +7 -7
- package/index350.js +1 -1
- package/index350.mjs +7 -7
- package/index351.js +1 -1
- package/index351.mjs +4 -4
- package/index352.js +1 -1
- package/index352.mjs +7 -7
- package/index353.js +1 -1
- package/index353.mjs +7 -7
- package/index354.js +1 -1
- package/index354.mjs +4 -4
- package/index355.js +1 -1
- package/index355.mjs +4 -4
- package/index356.js +1 -1
- package/index356.mjs +4 -4
- package/index357.js +1 -1
- package/index357.mjs +4 -4
- package/index358.js +1 -1
- package/index358.mjs +7 -7
- package/index359.js +1 -1
- package/index359.mjs +7 -7
- package/index360.js +1 -1
- package/index360.mjs +7 -7
- package/index361.js +1 -1
- package/index361.mjs +4 -4
- package/index362.js +1 -1
- package/index362.mjs +7 -7
- package/index363.js +1 -1
- package/index363.mjs +7 -7
- package/index364.js +1 -1
- package/index364.mjs +7 -7
- package/index365.js +1 -1
- package/index365.mjs +7 -7
- package/index366.js +1 -1
- package/index366.mjs +7 -7
- package/index367.js +1 -1
- package/index367.mjs +4 -4
- package/index368.js +1 -1
- package/index368.mjs +7 -7
- package/index369.js +1 -1
- package/index369.mjs +7 -7
- package/index370.js +1 -1
- package/index370.mjs +3 -3
- package/index371.js +1 -1
- package/index371.mjs +4 -4
- package/index372.js +1 -1
- package/index372.mjs +7 -7
- package/index373.js +1 -1
- package/index373.mjs +7 -7
- package/index374.js +1 -1
- package/index374.mjs +7 -7
- package/index375.js +1 -1
- package/index375.mjs +4 -4
- package/index376.js +1 -1
- package/index376.mjs +7 -7
- package/index377.js +1 -1
- package/index377.mjs +4 -4
- package/index378.js +1 -1
- package/index378.mjs +4 -4
- package/index379.js +1 -1
- package/index379.mjs +7 -7
- package/index380.js +1 -1
- package/index380.mjs +4 -4
- package/index381.js +1 -1
- package/index381.mjs +6 -8
- package/index99.js +1 -1
- package/index99.mjs +1 -1
- package/package.json +1 -1
package/index209.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index210.js"),p=require("./index208.js");function d(n,i){n===void 0&&(n={}),i===void 0&&(i=!0);const t={on:{}},f={},s={};o.e(t,p.d),t._emitClasses=!0,t.init=!1;const e={},l=o.p.map(a=>a.replace(/_/,"")),r=Object.assign({},n);return Object.keys(r).forEach(a=>{typeof n[a]>"u"||(l.indexOf(a)>=0?o.i(n[a])?(t[a]={},s[a]={},o.e(t[a],n[a]),o.e(s[a],n[a])):(t[a]=n[a],s[a]=n[a]):a.search(/on[A-Z]/)===0&&typeof n[a]=="function"?i?f[`${a[2].toLowerCase()}${a.substr(3)}`]=n[a]:t.on[`${a[2].toLowerCase()}${a.substr(3)}`]=n[a]:e[a]=n[a])}),["navigation","pagination","scrollbar"].forEach(a=>{t[a]===!0&&(t[a]={}),t[a]===!1&&delete t[a]}),{params:t,passedParams:s,rest:e,events:f}}function m(n,i){let{el:t,nextEl:f,prevEl:s,paginationEl:e,scrollbarEl:l,swiper:r}=n;o.n(i)&&f&&s&&(r.params.navigation.nextEl=f,r.originalParams.navigation.nextEl=f,r.params.navigation.prevEl=s,r.originalParams.navigation.prevEl=s),o.a(i)&&e&&(r.params.pagination.el=e,r.originalParams.pagination.el=e),o.b(i)&&l&&(r.params.scrollbar.el=l,r.originalParams.scrollbar.el=l),r.init(t)}function h(n,i,t,f,s){const e=[];if(!i)return e;const l=a=>{e.indexOf(a)<0&&e.push(a)};if(t&&f){const a=f.map(s),u=t.map(s);a.join("")!==u.join("")&&l("children"),f.length!==t.length&&l("children")}return o.p.filter(a=>a[0]==="_").map(a=>a.replace(/_/,"")).forEach(a=>{if(a in n&&a in i)if(o.i(n[a])&&o.i(i[a])){const u=Object.keys(n[a]),g=Object.keys(i[a]);u.length!==g.length?l(a):(u.forEach(c=>{n[a][c]!==i[a][c]&&l(a)}),g.forEach(c=>{n[a][c]!==i[a][c]&&l(a)}))}else n[a]!==i[a]&&l(a)}),e}const v=n=>{!n||n.destroyed||!n.params.virtual||n.params.virtual&&!n.params.virtual.enabled||(n.updateSlides(),n.updateProgress(),n.updateSlidesClasses(),n.parallax&&n.params.parallax&&n.params.parallax.enabled&&n.parallax.setTranslate())};exports.a=h;exports.g=d;exports.m=m;exports.u=v;
|
package/index209.mjs
CHANGED
|
@@ -1,61 +1,62 @@
|
|
|
1
|
-
import { g as
|
|
2
|
-
import {
|
|
3
|
-
function
|
|
1
|
+
import { e as u, p as d, i as g, n as m, a as h, b as v } from "./index210.mjs";
|
|
2
|
+
import { d as x } from "./index208.mjs";
|
|
3
|
+
function b(n, i) {
|
|
4
|
+
n === void 0 && (n = {}), i === void 0 && (i = !0);
|
|
5
|
+
const t = {
|
|
6
|
+
on: {}
|
|
7
|
+
}, e = {}, r = {};
|
|
8
|
+
u(t, x), t._emitClasses = !0, t.init = !1;
|
|
9
|
+
const o = {}, s = d.map((a) => a.replace(/_/, "")), l = Object.assign({}, n);
|
|
10
|
+
return Object.keys(l).forEach((a) => {
|
|
11
|
+
typeof n[a] > "u" || (s.indexOf(a) >= 0 ? g(n[a]) ? (t[a] = {}, r[a] = {}, u(t[a], n[a]), u(r[a], n[a])) : (t[a] = n[a], r[a] = n[a]) : a.search(/on[A-Z]/) === 0 && typeof n[a] == "function" ? i ? e[`${a[2].toLowerCase()}${a.substr(3)}`] = n[a] : t.on[`${a[2].toLowerCase()}${a.substr(3)}`] = n[a] : o[a] = n[a]);
|
|
12
|
+
}), ["navigation", "pagination", "scrollbar"].forEach((a) => {
|
|
13
|
+
t[a] === !0 && (t[a] = {}), t[a] === !1 && delete t[a];
|
|
14
|
+
}), {
|
|
15
|
+
params: t,
|
|
16
|
+
passedParams: r,
|
|
17
|
+
rest: o,
|
|
18
|
+
events: e
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
function C(n, i) {
|
|
4
22
|
let {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
return i ? parseInt(i.getAttribute("data-swiper-slide-index"), 10) : 0;
|
|
20
|
-
}
|
|
21
|
-
return e.getSlideIndex(x(e.slidesEl, `.${e.params.slideClass}[data-hash="${t}"], swiper-slide[data-hash="${t}"]`)[0]);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
const o = () => {
|
|
26
|
-
l("hashChange");
|
|
27
|
-
const a = h.location.hash.replace("#", ""), t = e.virtual && e.params.virtual.enabled ? e.slidesEl.querySelector(`[data-swiper-slide-index="${e.activeIndex}"]`) : e.slides[e.activeIndex], i = t ? t.getAttribute("data-hash") : "";
|
|
28
|
-
if (a !== i) {
|
|
29
|
-
const d = e.params.hashNavigation.getSlideIndex(e, a);
|
|
30
|
-
if (typeof d > "u" || Number.isNaN(d)) return;
|
|
31
|
-
e.slideTo(d);
|
|
32
|
-
}
|
|
33
|
-
}, c = () => {
|
|
34
|
-
if (!r || !e.params.hashNavigation.enabled) return;
|
|
35
|
-
const a = e.virtual && e.params.virtual.enabled ? e.slidesEl.querySelector(`[data-swiper-slide-index="${e.activeIndex}"]`) : e.slides[e.activeIndex], t = a ? a.getAttribute("data-hash") || a.getAttribute("data-history") : "";
|
|
36
|
-
e.params.hashNavigation.replaceState && s.history && s.history.replaceState ? (s.history.replaceState(null, null, `#${t}` || ""), l("hashSet")) : (h.location.hash = t || "", l("hashSet"));
|
|
37
|
-
}, m = () => {
|
|
38
|
-
if (!e.params.hashNavigation.enabled || e.params.history && e.params.history.enabled) return;
|
|
39
|
-
r = !0;
|
|
40
|
-
const a = h.location.hash.replace("#", "");
|
|
41
|
-
if (a) {
|
|
42
|
-
const i = e.params.hashNavigation.getSlideIndex(e, a);
|
|
43
|
-
e.slideTo(i || 0, 0, e.params.runCallbacksOnInit, !0);
|
|
44
|
-
}
|
|
45
|
-
e.params.hashNavigation.watchState && s.addEventListener("hashchange", o);
|
|
46
|
-
}, g = () => {
|
|
47
|
-
e.params.hashNavigation.watchState && s.removeEventListener("hashchange", o);
|
|
23
|
+
el: t,
|
|
24
|
+
nextEl: e,
|
|
25
|
+
prevEl: r,
|
|
26
|
+
paginationEl: o,
|
|
27
|
+
scrollbarEl: s,
|
|
28
|
+
swiper: l
|
|
29
|
+
} = n;
|
|
30
|
+
m(i) && e && r && (l.params.navigation.nextEl = e, l.originalParams.navigation.nextEl = e, l.params.navigation.prevEl = r, l.originalParams.navigation.prevEl = r), h(i) && o && (l.params.pagination.el = o, l.originalParams.pagination.el = o), v(i) && s && (l.params.scrollbar.el = s, l.originalParams.scrollbar.el = s), l.init(t);
|
|
31
|
+
}
|
|
32
|
+
function S(n, i, t, e, r) {
|
|
33
|
+
const o = [];
|
|
34
|
+
if (!i) return o;
|
|
35
|
+
const s = (a) => {
|
|
36
|
+
o.indexOf(a) < 0 && o.push(a);
|
|
48
37
|
};
|
|
49
|
-
|
|
50
|
-
e.
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
38
|
+
if (t && e) {
|
|
39
|
+
const a = e.map(r), c = t.map(r);
|
|
40
|
+
a.join("") !== c.join("") && s("children"), e.length !== t.length && s("children");
|
|
41
|
+
}
|
|
42
|
+
return d.filter((a) => a[0] === "_").map((a) => a.replace(/_/, "")).forEach((a) => {
|
|
43
|
+
if (a in n && a in i)
|
|
44
|
+
if (g(n[a]) && g(i[a])) {
|
|
45
|
+
const c = Object.keys(n[a]), p = Object.keys(i[a]);
|
|
46
|
+
c.length !== p.length ? s(a) : (c.forEach((f) => {
|
|
47
|
+
n[a][f] !== i[a][f] && s(a);
|
|
48
|
+
}), p.forEach((f) => {
|
|
49
|
+
n[a][f] !== i[a][f] && s(a);
|
|
50
|
+
}));
|
|
51
|
+
} else n[a] !== i[a] && s(a);
|
|
52
|
+
}), o;
|
|
58
53
|
}
|
|
54
|
+
const _ = (n) => {
|
|
55
|
+
!n || n.destroyed || !n.params.virtual || n.params.virtual && !n.params.virtual.enabled || (n.updateSlides(), n.updateProgress(), n.updateSlidesClasses(), n.parallax && n.params.parallax && n.params.parallax.enabled && n.parallax.setTranslate());
|
|
56
|
+
};
|
|
59
57
|
export {
|
|
60
|
-
|
|
58
|
+
S as a,
|
|
59
|
+
b as g,
|
|
60
|
+
C as m,
|
|
61
|
+
_ as u
|
|
61
62
|
};
|
package/index21.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("react/jsx-runtime"),_=require("@react-aria/focus"),y=require("radashi"),D=require("react"),I=require("react-aria"),$=require("react-hook-form"),
|
|
2
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("react/jsx-runtime"),_=require("@react-aria/focus"),y=require("radashi"),D=require("react"),I=require("react-aria"),$=require("react-hook-form"),v=require("./index64.js"),w=require("./index72.js"),C=require("./index3.js"),H=n=>{const{id:q,label:e,name:g,placeholder:j,required:F,disabled:o=!1,errorMessage:c,ariaLabel:M,value:d,onBlur:l,onChange:T,fieldRef:u,themeName:s="textarea",tokens:R,customTheme:t,children:f}=n,x=D.useRef(null),{errorMessageProps:b,inputProps:E,labelProps:k}=I.useTextField(n,x),r={...R,isDisabled:o,isError:c!=null},i=v(`${s}.wrapper`,r,t),h=v(`${s}.input`,r,t),N=v(`${s}.label`,r,t),O=v(`${s}.container`,r,t);return a.jsxs("div",{children:[a.jsxs("div",{className:i,"aria-disabled":o?"true":"false",children:[e&&a.jsx("label",{className:N,...k,children:e}),a.jsx(_.FocusRing,{focusRingClass:"has-focus-ring",children:a.jsxs("div",{className:O,children:[f,a.jsx("textarea",{...E,ref:m=>{u==null||u(m),x.current=m},className:h,placeholder:j,disabled:o,required:F,id:q,name:g,"aria-label":M,"aria-labelledby":q,value:d,onBlur:l,onChange:T})]})})]}),c&&a.jsx(C.default,{themeName:`${s}.errorMessage`,tokens:r,...b,children:c})]})},G=({name:n,label:q,rules:e,tokens:g,ariaLabel:j,defaultValue:F="",placeholder:o="",themeName:c="textarea",isReadOnly:M=!1,minLength:d,maxLength:l,required:T,isRequired:u,onChange:s,onBlur:R,children:t=null,...f})=>{const{control:x}=$.useFormContext(),{t:b}=w.useTranslation(),E=()=>{const r=Object.entries(f).filter(([i,h])=>i.startsWith("aria-"));return Object.fromEntries(r)},k={required:T??u?b("FORM.ERROR.REQUIRED")??"required":!1,...d!=null&&{minLength:{value:d,message:b("FORM.ERROR.MIN_LENGTH",{length:d})}},...l!=null&&{maxLength:{value:l,message:b("FORM.ERROR.MAX_LENGTH",{length:l})}},...e};return a.jsx($.Controller,{name:n,control:x,rules:k,disabled:e==null?void 0:e.disabled,defaultValue:F,render:({field:r,fieldState:i})=>{var A;const{ref:h,...N}=r,O=!y.isEmpty(i.error),m={isDisabled:r.disabled??!1,isRequired:(e==null?void 0:e.required)===!0||(e==null?void 0:e.required)==="required",isInvalid:i.invalid,isError:O,isReadOnly:M},P={...g,...m};return a.jsx(H,{...N,...m,...E(),fieldRef:h,name:n,placeholder:o,themeName:c,label:q,tokens:P,ariaLabel:j,isDisabled:r.disabled,isRequired:(e==null?void 0:e.required)===!0||(e==null?void 0:e.required)==="required",isInvalid:i.invalid,errorMessage:(A=i.error)==null?void 0:A.message,onChange:p=>{r.onChange(p),s==null||s(p)},onBlur:p=>{r.onBlur(),R==null||R(p)},children:t})}})};exports.ReactHookFormTextArea=G;exports.default=H;
|
package/index21.mjs
CHANGED
|
@@ -1,91 +1,95 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
2
|
+
import { jsxs as $, jsx as o } from "react/jsx-runtime";
|
|
3
3
|
import { FocusRing as D } from "@react-aria/focus";
|
|
4
4
|
import { isEmpty as I } from "radashi";
|
|
5
5
|
import { useRef as P } from "react";
|
|
6
6
|
import { useTextField as C } from "react-aria";
|
|
7
7
|
import { useFormContext as H, Controller as _ } from "react-hook-form";
|
|
8
|
-
import
|
|
8
|
+
import v from "./index64.mjs";
|
|
9
9
|
import { useTranslation as w } from "./index72.mjs";
|
|
10
10
|
import G from "./index3.mjs";
|
|
11
|
-
const L = (
|
|
11
|
+
const L = (s) => {
|
|
12
12
|
const {
|
|
13
13
|
id: u,
|
|
14
14
|
label: e,
|
|
15
|
-
name:
|
|
16
|
-
placeholder:
|
|
17
|
-
required:
|
|
18
|
-
disabled:
|
|
19
|
-
errorMessage:
|
|
20
|
-
ariaLabel:
|
|
21
|
-
value:
|
|
22
|
-
onBlur:
|
|
23
|
-
onChange:
|
|
24
|
-
fieldRef:
|
|
25
|
-
themeName:
|
|
26
|
-
tokens:
|
|
27
|
-
customTheme:
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
/* @__PURE__ */ o("
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
15
|
+
name: T,
|
|
16
|
+
placeholder: q,
|
|
17
|
+
required: E,
|
|
18
|
+
disabled: n = !1,
|
|
19
|
+
errorMessage: d,
|
|
20
|
+
ariaLabel: x,
|
|
21
|
+
value: l,
|
|
22
|
+
onBlur: c,
|
|
23
|
+
onChange: F,
|
|
24
|
+
fieldRef: m,
|
|
25
|
+
themeName: a = "textarea",
|
|
26
|
+
tokens: p,
|
|
27
|
+
customTheme: t,
|
|
28
|
+
children: M
|
|
29
|
+
} = s, f = P(null), { errorMessageProps: b, inputProps: N, labelProps: O } = C(s, f), r = { ...p, isDisabled: n, isError: d != null }, i = v(`${a}.wrapper`, r, t), h = v(`${a}.input`, r, t), k = v(`${a}.label`, r, t), y = v(`${a}.container`, r, t);
|
|
30
|
+
return /* @__PURE__ */ $("div", { children: [
|
|
31
|
+
/* @__PURE__ */ $("div", { className: i, "aria-disabled": n ? "true" : "false", children: [
|
|
32
|
+
e && /* @__PURE__ */ o("label", { className: k, ...O, children: e }),
|
|
33
|
+
/* @__PURE__ */ o(D, { focusRingClass: "has-focus-ring", children: /* @__PURE__ */ $("div", { className: y, children: [
|
|
34
|
+
M,
|
|
35
|
+
/* @__PURE__ */ o(
|
|
36
|
+
"textarea",
|
|
37
|
+
{
|
|
38
|
+
...N,
|
|
39
|
+
ref: (R) => {
|
|
40
|
+
m == null || m(R), f.current = R;
|
|
41
|
+
},
|
|
42
|
+
className: h,
|
|
43
|
+
placeholder: q,
|
|
44
|
+
disabled: n,
|
|
45
|
+
required: E,
|
|
46
|
+
id: u,
|
|
47
|
+
name: T,
|
|
48
|
+
"aria-label": x,
|
|
49
|
+
"aria-labelledby": u,
|
|
50
|
+
value: l,
|
|
51
|
+
onBlur: c,
|
|
52
|
+
onChange: F
|
|
53
|
+
}
|
|
54
|
+
)
|
|
55
|
+
] }) })
|
|
52
56
|
] }),
|
|
53
|
-
|
|
57
|
+
d && /* @__PURE__ */ o(G, { themeName: `${a}.errorMessage`, tokens: r, ...b, children: d })
|
|
54
58
|
] });
|
|
55
59
|
}, Z = ({
|
|
56
|
-
name:
|
|
60
|
+
name: s,
|
|
57
61
|
label: u,
|
|
58
62
|
rules: e,
|
|
59
|
-
tokens:
|
|
60
|
-
ariaLabel:
|
|
61
|
-
defaultValue:
|
|
62
|
-
placeholder:
|
|
63
|
-
themeName:
|
|
64
|
-
isReadOnly:
|
|
65
|
-
minLength:
|
|
66
|
-
maxLength:
|
|
67
|
-
required:
|
|
68
|
-
isRequired:
|
|
69
|
-
onChange:
|
|
70
|
-
onBlur:
|
|
71
|
-
children:
|
|
72
|
-
...
|
|
63
|
+
tokens: T,
|
|
64
|
+
ariaLabel: q,
|
|
65
|
+
defaultValue: E = "",
|
|
66
|
+
placeholder: n = "",
|
|
67
|
+
themeName: d = "textarea",
|
|
68
|
+
isReadOnly: x = !1,
|
|
69
|
+
minLength: l,
|
|
70
|
+
maxLength: c,
|
|
71
|
+
required: F,
|
|
72
|
+
isRequired: m,
|
|
73
|
+
onChange: a,
|
|
74
|
+
onBlur: p,
|
|
75
|
+
children: t = null,
|
|
76
|
+
...M
|
|
73
77
|
}) => {
|
|
74
|
-
const { control:
|
|
75
|
-
const
|
|
76
|
-
return Object.fromEntries(
|
|
77
|
-
},
|
|
78
|
-
required:
|
|
79
|
-
...
|
|
78
|
+
const { control: f } = H(), { t: b } = w(), N = () => {
|
|
79
|
+
const r = Object.entries(M).filter(([i, h]) => i.startsWith("aria-"));
|
|
80
|
+
return Object.fromEntries(r);
|
|
81
|
+
}, O = {
|
|
82
|
+
required: F ?? m ? b("FORM.ERROR.REQUIRED") ?? "required" : !1,
|
|
83
|
+
...l != null && {
|
|
80
84
|
minLength: {
|
|
81
|
-
value:
|
|
82
|
-
message:
|
|
85
|
+
value: l,
|
|
86
|
+
message: b("FORM.ERROR.MIN_LENGTH", { length: l })
|
|
83
87
|
}
|
|
84
88
|
},
|
|
85
|
-
...
|
|
89
|
+
...c != null && {
|
|
86
90
|
maxLength: {
|
|
87
|
-
value:
|
|
88
|
-
message:
|
|
91
|
+
value: c,
|
|
92
|
+
message: b("FORM.ERROR.MAX_LENGTH", { length: c })
|
|
89
93
|
}
|
|
90
94
|
},
|
|
91
95
|
...e
|
|
@@ -93,47 +97,47 @@ const L = (n) => {
|
|
|
93
97
|
return /* @__PURE__ */ o(
|
|
94
98
|
_,
|
|
95
99
|
{
|
|
96
|
-
name:
|
|
97
|
-
control:
|
|
98
|
-
rules:
|
|
100
|
+
name: s,
|
|
101
|
+
control: f,
|
|
102
|
+
rules: O,
|
|
99
103
|
disabled: e == null ? void 0 : e.disabled,
|
|
100
|
-
defaultValue:
|
|
101
|
-
render: ({ field:
|
|
102
|
-
var
|
|
103
|
-
const { ref: h, ...k } =
|
|
104
|
-
isDisabled:
|
|
104
|
+
defaultValue: E,
|
|
105
|
+
render: ({ field: r, fieldState: i }) => {
|
|
106
|
+
var j;
|
|
107
|
+
const { ref: h, ...k } = r, y = !I(i.error), R = {
|
|
108
|
+
isDisabled: r.disabled ?? !1,
|
|
105
109
|
isRequired: (e == null ? void 0 : e.required) === !0 || (e == null ? void 0 : e.required) === "required",
|
|
106
110
|
isInvalid: i.invalid,
|
|
107
|
-
isError:
|
|
108
|
-
isReadOnly:
|
|
111
|
+
isError: y,
|
|
112
|
+
isReadOnly: x
|
|
109
113
|
}, A = {
|
|
110
|
-
...
|
|
111
|
-
...
|
|
114
|
+
...T,
|
|
115
|
+
...R
|
|
112
116
|
};
|
|
113
117
|
return /* @__PURE__ */ o(
|
|
114
118
|
L,
|
|
115
119
|
{
|
|
116
120
|
...k,
|
|
117
|
-
...
|
|
118
|
-
...
|
|
121
|
+
...R,
|
|
122
|
+
...N(),
|
|
119
123
|
fieldRef: h,
|
|
120
|
-
name:
|
|
121
|
-
placeholder:
|
|
122
|
-
themeName:
|
|
124
|
+
name: s,
|
|
125
|
+
placeholder: n,
|
|
126
|
+
themeName: d,
|
|
123
127
|
label: u,
|
|
124
128
|
tokens: A,
|
|
125
|
-
ariaLabel:
|
|
126
|
-
isDisabled:
|
|
129
|
+
ariaLabel: q,
|
|
130
|
+
isDisabled: r.disabled,
|
|
127
131
|
isRequired: (e == null ? void 0 : e.required) === !0 || (e == null ? void 0 : e.required) === "required",
|
|
128
132
|
isInvalid: i.invalid,
|
|
129
|
-
errorMessage: (
|
|
130
|
-
onChange: (
|
|
131
|
-
|
|
133
|
+
errorMessage: (j = i.error) == null ? void 0 : j.message,
|
|
134
|
+
onChange: (g) => {
|
|
135
|
+
r.onChange(g), a == null || a(g);
|
|
132
136
|
},
|
|
133
|
-
onBlur: (
|
|
134
|
-
|
|
137
|
+
onBlur: (g) => {
|
|
138
|
+
r.onBlur(), p == null || p(g);
|
|
135
139
|
},
|
|
136
|
-
children:
|
|
140
|
+
children: t
|
|
137
141
|
}
|
|
138
142
|
);
|
|
139
143
|
}
|
package/index210.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const M=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function g(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"&&!t.__swiper__}function j(t,i){const r=["__proto__","constructor","prototype"];Object.keys(i).filter(e=>r.indexOf(e)<0).forEach(e=>{typeof t[e]>"u"?t[e]=i[e]:g(i[e])&&g(t[e])&&Object.keys(i[e]).length>0?i[e].__swiper__?t[e]=i[e]:j(t[e],i[e]):t[e]=i[e]})}function z(t){return t===void 0&&(t={}),t.navigation&&typeof t.navigation.nextEl>"u"&&typeof t.navigation.prevEl>"u"}function B(t){return t===void 0&&(t={}),t.pagination&&typeof t.pagination.el>"u"}function I(t){return t===void 0&&(t={}),t.scrollbar&&typeof t.scrollbar.el>"u"}function L(t){t===void 0&&(t="");const i=t.split(" ").map(e=>e.trim()).filter(e=>!!e),r=[];return i.forEach(e=>{r.indexOf(e)<0&&r.push(e)}),r.join(" ")}function N(t){return t===void 0&&(t=""),t?t.includes("swiper-wrapper")?t:`swiper-wrapper ${t}`:"swiper-wrapper"}function A(t){let{swiper:i,slides:r,passedParams:e,changedParams:o,nextEl:s,prevEl:a,scrollbarEl:d,paginationEl:c}=t;const h=o.filter(n=>n!=="children"&&n!=="direction"&&n!=="wrapperClass"),{params:l,pagination:p,navigation:f,scrollbar:v,virtual:u,thumbs:E}=i;let S,_,P,C,x,m,O,b;o.includes("thumbs")&&e.thumbs&&e.thumbs.swiper&&!e.thumbs.swiper.destroyed&&l.thumbs&&(!l.thumbs.swiper||l.thumbs.swiper.destroyed)&&(S=!0),o.includes("controller")&&e.controller&&e.controller.control&&l.controller&&!l.controller.control&&(_=!0),o.includes("pagination")&&e.pagination&&(e.pagination.el||c)&&(l.pagination||l.pagination===!1)&&p&&!p.el&&(P=!0),o.includes("scrollbar")&&e.scrollbar&&(e.scrollbar.el||d)&&(l.scrollbar||l.scrollbar===!1)&&v&&!v.el&&(C=!0),o.includes("navigation")&&e.navigation&&(e.navigation.prevEl||a)&&(e.navigation.nextEl||s)&&(l.navigation||l.navigation===!1)&&f&&!f.prevEl&&!f.nextEl&&(x=!0);const T=n=>{i[n]&&(i[n].destroy(),n==="navigation"?(i.isElement&&(i[n].prevEl.remove(),i[n].nextEl.remove()),l[n].prevEl=void 0,l[n].nextEl=void 0,i[n].prevEl=void 0,i[n].nextEl=void 0):(i.isElement&&i[n].el.remove(),l[n].el=void 0,i[n].el=void 0))};o.includes("loop")&&i.isElement&&(l.loop&&!e.loop?m=!0:!l.loop&&e.loop?O=!0:b=!0),h.forEach(n=>{if(g(l[n])&&g(e[n]))Object.assign(l[n],e[n]),(n==="navigation"||n==="pagination"||n==="scrollbar")&&"enabled"in e[n]&&!e[n].enabled&&T(n);else{const w=e[n];(w===!0||w===!1)&&(n==="navigation"||n==="pagination"||n==="scrollbar")?w===!1&&T(n):l[n]=e[n]}}),h.includes("controller")&&!_&&i.controller&&i.controller.control&&l.controller&&l.controller.control&&(i.controller.control=l.controller.control),o.includes("children")&&r&&u&&l.virtual.enabled?(u.slides=r,u.update(!0)):o.includes("virtual")&&u&&l.virtual.enabled&&(r&&(u.slides=r),u.update(!0)),o.includes("children")&&r&&l.loop&&(b=!0),S&&E.init()&&E.update(!0),_&&(i.controller.control=l.controller.control),P&&(i.isElement&&(!c||typeof c=="string")&&(c=document.createElement("div"),c.classList.add("swiper-pagination"),c.part.add("pagination"),i.el.appendChild(c)),c&&(l.pagination.el=c),p.init(),p.render(),p.update()),C&&(i.isElement&&(!d||typeof d=="string")&&(d=document.createElement("div"),d.classList.add("swiper-scrollbar"),d.part.add("scrollbar"),i.el.appendChild(d)),d&&(l.scrollbar.el=d),v.init(),v.updateSize(),v.setTranslate()),x&&(i.isElement&&((!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-button-next"),s.innerHTML=i.hostEl.constructor.nextButtonSvg,s.part.add("button-next"),i.el.appendChild(s)),(!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-button-prev"),a.innerHTML=i.hostEl.constructor.prevButtonSvg,a.part.add("button-prev"),i.el.appendChild(a))),s&&(l.navigation.nextEl=s),a&&(l.navigation.prevEl=a),f.init(),f.update()),o.includes("allowSlideNext")&&(i.allowSlideNext=e.allowSlideNext),o.includes("allowSlidePrev")&&(i.allowSlidePrev=e.allowSlidePrev),o.includes("direction")&&i.changeDirection(e.direction,!1),(m||b)&&i.loopDestroy(),(O||b)&&i.loopCreate(),i.update()}exports.a=B;exports.b=I;exports.d=L;exports.e=j;exports.i=g;exports.n=z;exports.p=M;exports.u=A;exports.w=N;
|