@okam/stack-ui 1.35.0 → 1.35.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (121) hide show
  1. package/components/fields/SearchField/interface.d.ts +1 -0
  2. package/components/fields/Select/Select.d.ts +1 -1
  3. package/index125.js +1 -1
  4. package/index125.mjs +9 -9
  5. package/index141.js +1 -1
  6. package/index141.mjs +23 -23
  7. package/index142.js +1 -1
  8. package/index142.mjs +3 -3
  9. package/index147.js +1 -1
  10. package/index147.mjs +1 -1
  11. package/index152.js +1 -1
  12. package/index152.mjs +1 -1
  13. package/index16.js +1 -1
  14. package/index16.mjs +133 -131
  15. package/index178.js +1 -1
  16. package/index178.mjs +122 -201
  17. package/index179.js +1 -1
  18. package/index179.mjs +130 -60
  19. package/index18.js +1 -1
  20. package/index18.mjs +22 -22
  21. package/index180.js +1 -1
  22. package/index180.mjs +44 -143
  23. package/index181.js +1 -1
  24. package/index181.mjs +14 -124
  25. package/index182.js +1 -1
  26. package/index182.mjs +87 -216
  27. package/index183.js +1 -1
  28. package/index183.mjs +102 -186
  29. package/index184.js +1 -1
  30. package/index184.mjs +4 -69
  31. package/index185.js +1 -1
  32. package/index185.mjs +3 -279
  33. package/index186.js +1 -1
  34. package/index186.mjs +119 -92
  35. package/index187.js +1 -1
  36. package/index187.mjs +23 -182
  37. package/index188.js +1 -1
  38. package/index188.mjs +51 -84
  39. package/index189.js +1 -1
  40. package/index189.mjs +44 -58
  41. package/index190.js +1 -1
  42. package/index190.mjs +35 -124
  43. package/index191.js +1 -1
  44. package/index191.mjs +110 -113
  45. package/index192.js +1 -1
  46. package/index192.mjs +74 -119
  47. package/index193.js +1 -1
  48. package/index193.mjs +101 -72
  49. package/index194.js +1 -1
  50. package/index194.mjs +98 -111
  51. package/index195.js +1 -1
  52. package/index195.mjs +197 -46
  53. package/index196.js +1 -1
  54. package/index196.mjs +57 -86
  55. package/index197.js +1 -1
  56. package/index197.mjs +138 -65
  57. package/index198.js +1 -1
  58. package/index198.mjs +121 -53
  59. package/index199.js +1 -1
  60. package/index199.mjs +218 -93
  61. package/index200.js +1 -5
  62. package/index200.mjs +187 -77
  63. package/index201.js +1 -1
  64. package/index201.mjs +60 -2016
  65. package/index202.js +1 -1
  66. package/index202.mjs +277 -57
  67. package/index203.js +1 -1
  68. package/index203.mjs +95 -185
  69. package/index204.js +1 -1
  70. package/index204.mjs +179 -115
  71. package/index205.js +1 -1
  72. package/index205.mjs +81 -131
  73. package/index206.js +1 -1
  74. package/index206.mjs +58 -44
  75. package/index207.js +1 -1
  76. package/index207.mjs +126 -14
  77. package/index208.js +1 -1
  78. package/index208.mjs +113 -92
  79. package/index209.js +1 -1
  80. package/index209.mjs +119 -103
  81. package/index210.js +1 -1
  82. package/index210.mjs +72 -4
  83. package/index211.js +1 -1
  84. package/index211.mjs +110 -3
  85. package/index212.js +1 -1
  86. package/index212.mjs +51 -124
  87. package/index213.js +1 -1
  88. package/index213.mjs +93 -29
  89. package/index214.js +1 -1
  90. package/index214.mjs +70 -51
  91. package/index215.js +1 -1
  92. package/index215.mjs +56 -44
  93. package/index216.js +1 -1
  94. package/index216.mjs +98 -36
  95. package/index217.js +5 -1
  96. package/index217.mjs +78 -111
  97. package/index218.js +1 -1
  98. package/index218.mjs +2021 -73
  99. package/index219.js +1 -1
  100. package/index219.mjs +57 -99
  101. package/index220.js +1 -1
  102. package/index220.mjs +189 -98
  103. package/index232.js +1 -1
  104. package/index232.mjs +4 -130
  105. package/index233.js +1 -1
  106. package/index233.mjs +123 -183
  107. package/index234.js +1 -1
  108. package/index234.mjs +189 -8
  109. package/index235.js +1 -1
  110. package/index235.mjs +9 -3
  111. package/index236.js +1 -1
  112. package/index236.mjs +3 -36
  113. package/index237.js +1 -1
  114. package/index237.mjs +36 -5
  115. package/index238.js +1 -1
  116. package/index238.mjs +5 -29
  117. package/index239.js +1 -1
  118. package/index239.mjs +29 -6
  119. package/index240.js +1 -1
  120. package/index240.mjs +6 -4
  121. package/package.json +2 -29
package/index237.mjs CHANGED
@@ -1,8 +1,39 @@
1
- import { g as i } from "./index233.mjs";
2
- function r(a, t) {
3
- const e = i(t);
4
- return e !== t && (e.style.backfaceVisibility = "hidden", e.style["-webkit-backface-visibility"] = "hidden"), e;
1
+ function m(d) {
2
+ const {
3
+ effect: s,
4
+ swiper: e,
5
+ on: r,
6
+ setTranslate: f,
7
+ setTransition: p,
8
+ overwriteParams: n,
9
+ perspective: o,
10
+ recreateShadows: l,
11
+ getEffectParams: c
12
+ } = d;
13
+ r("beforeInit", () => {
14
+ if (e.params.effect !== s) return;
15
+ e.classNames.push(`${e.params.containerModifierClass}${s}`), o && o() && e.classNames.push(`${e.params.containerModifierClass}3d`);
16
+ const a = n ? n() : {};
17
+ Object.assign(e.params, a), Object.assign(e.originalParams, a);
18
+ }), r("setTranslate", () => {
19
+ e.params.effect === s && f();
20
+ }), r("setTransition", (a, i) => {
21
+ e.params.effect === s && p(i);
22
+ }), r("transitionEnd", () => {
23
+ if (e.params.effect === s && l) {
24
+ if (!c || !c().slideShadows) return;
25
+ e.slides.forEach((a) => {
26
+ a.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((i) => i.remove());
27
+ }), l();
28
+ }
29
+ });
30
+ let t;
31
+ r("virtualUpdate", () => {
32
+ e.params.effect === s && (e.slides.length || (t = !0), requestAnimationFrame(() => {
33
+ t && e.slides && e.slides.length && (f(), t = !1);
34
+ }));
35
+ });
5
36
  }
6
37
  export {
7
- r as e
38
+ m as e
8
39
  };
package/index238.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index233.js");function f(a){let{swiper:e,duration:l,transformElements:s,allSlides:o}=a;const{activeIndex:d}=e,u=n=>n.parentElement?n.parentElement:e.slides.filter(t=>t.shadowRoot&&t.shadowRoot===n.parentNode)[0];if(e.params.virtualTranslate&&l!==0){let n=!1,r;o?r=s:r=s.filter(t=>{const i=t.classList.contains("swiper-slide-transform")?u(t):t;return e.getSlideIndex(i)===d}),r.forEach(t=>{c.k(t,()=>{if(n||!e||e.destroyed)return;n=!0,e.animating=!1;const i=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});e.wrapperEl.dispatchEvent(i)})})}}exports.e=f;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index234.js");function r(c,t){const e=i.g(t);return e!==t&&(e.style.backfaceVisibility="hidden",e.style["-webkit-backface-visibility"]="hidden"),e}exports.e=r;
package/index238.mjs CHANGED
@@ -1,32 +1,8 @@
1
- import { k as f } from "./index233.mjs";
2
- function p(a) {
3
- let {
4
- swiper: e,
5
- duration: o,
6
- transformElements: s,
7
- allSlides: l
8
- } = a;
9
- const {
10
- activeIndex: d
11
- } = e, c = (n) => n.parentElement ? n.parentElement : e.slides.filter((t) => t.shadowRoot && t.shadowRoot === n.parentNode)[0];
12
- if (e.params.virtualTranslate && o !== 0) {
13
- let n = !1, r;
14
- l ? r = s : r = s.filter((t) => {
15
- const i = t.classList.contains("swiper-slide-transform") ? c(t) : t;
16
- return e.getSlideIndex(i) === d;
17
- }), r.forEach((t) => {
18
- f(t, () => {
19
- if (n || !e || e.destroyed) return;
20
- n = !0, e.animating = !1;
21
- const i = new window.CustomEvent("transitionend", {
22
- bubbles: !0,
23
- cancelable: !0
24
- });
25
- e.wrapperEl.dispatchEvent(i);
26
- });
27
- });
28
- }
1
+ import { g as i } from "./index234.mjs";
2
+ function r(a, t) {
3
+ const e = i(t);
4
+ return e !== t && (e.style.backfaceVisibility = "hidden", e.style["-webkit-backface-visibility"] = "hidden"), e;
29
5
  }
30
6
  export {
31
- p as e
7
+ r as e
32
8
  };
package/index239.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index233.js");function l(t,a,o){const s=`swiper-slide-shadow${o?`-${o}`:""}${t?` swiper-slide-shadow-${t}`:""}`,i=r.g(a);let e=i.querySelector(`.${s.split(" ").join(".")}`);return e||(e=r.c("div",s.split(" ")),i.append(e)),e}exports.c=l;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index234.js");function f(a){let{swiper:e,duration:l,transformElements:s,allSlides:o}=a;const{activeIndex:d}=e,u=n=>n.parentElement?n.parentElement:e.slides.filter(t=>t.shadowRoot&&t.shadowRoot===n.parentNode)[0];if(e.params.virtualTranslate&&l!==0){let n=!1,r;o?r=s:r=s.filter(t=>{const i=t.classList.contains("swiper-slide-transform")?u(t):t;return e.getSlideIndex(i)===d}),r.forEach(t=>{c.k(t,()=>{if(n||!e||e.destroyed)return;n=!0,e.animating=!1;const i=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});e.wrapperEl.dispatchEvent(i)})})}}exports.e=f;
package/index239.mjs CHANGED
@@ -1,9 +1,32 @@
1
- import { g as i, c as l } from "./index233.mjs";
2
- function d(s, r, o) {
3
- const a = `swiper-slide-shadow${o ? `-${o}` : ""}${s ? ` swiper-slide-shadow-${s}` : ""}`, t = i(r);
4
- let e = t.querySelector(`.${a.split(" ").join(".")}`);
5
- return e || (e = l("div", a.split(" ")), t.append(e)), e;
1
+ import { k as f } from "./index234.mjs";
2
+ function p(a) {
3
+ let {
4
+ swiper: e,
5
+ duration: o,
6
+ transformElements: s,
7
+ allSlides: l
8
+ } = a;
9
+ const {
10
+ activeIndex: d
11
+ } = e, c = (n) => n.parentElement ? n.parentElement : e.slides.filter((t) => t.shadowRoot && t.shadowRoot === n.parentNode)[0];
12
+ if (e.params.virtualTranslate && o !== 0) {
13
+ let n = !1, r;
14
+ l ? r = s : r = s.filter((t) => {
15
+ const i = t.classList.contains("swiper-slide-transform") ? c(t) : t;
16
+ return e.getSlideIndex(i) === d;
17
+ }), r.forEach((t) => {
18
+ f(t, () => {
19
+ if (n || !e || e.destroyed) return;
20
+ n = !0, e.animating = !1;
21
+ const i = new window.CustomEvent("transitionend", {
22
+ bubbles: !0,
23
+ cancelable: !0
24
+ });
25
+ e.wrapperEl.dispatchEvent(i);
26
+ });
27
+ });
28
+ }
6
29
  }
7
30
  export {
8
- d as c
31
+ p as e
9
32
  };
package/index240.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function i(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}exports._=i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index234.js");function l(t,a,o){const s=`swiper-slide-shadow${o?`-${o}`:""}${t?` swiper-slide-shadow-${t}`:""}`,i=r.g(a);let e=i.querySelector(`.${s.split(" ").join(".")}`);return e||(e=r.c("div",s.split(" ")),i.append(e)),e}exports.c=l;
package/index240.mjs CHANGED
@@ -1,7 +1,9 @@
1
- function a(e, t) {
2
- if (t.has(e))
3
- throw new TypeError("Cannot initialize the same private elements twice on an object");
1
+ import { g as i, c as l } from "./index234.mjs";
2
+ function d(s, r, o) {
3
+ const a = `swiper-slide-shadow${o ? `-${o}` : ""}${s ? ` swiper-slide-shadow-${s}` : ""}`, t = i(r);
4
+ let e = t.querySelector(`.${a.split(" ").join(".")}`);
5
+ return e || (e = l("div", a.split(" ")), t.append(e)), e;
4
6
  }
5
7
  export {
6
- a as _
8
+ d as c
7
9
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@okam/stack-ui",
3
3
  "main": "./index.js",
4
- "version": "1.35.0",
4
+ "version": "1.35.2",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {
7
7
  ".": {
@@ -22,37 +22,10 @@
22
22
  "url": "https://github.com/OKAMca/stack.git"
23
23
  },
24
24
  "dependencies": {
25
- "@internationalized/date": "3.8.0",
26
25
  "@okam/core-lib": "1.16.0",
27
26
  "@okam/logger": "1.1.0",
28
- "@react-aria/accordion": "^3.0.0-alpha.36",
29
- "@react-aria/checkbox": "3.15.4",
30
- "@react-aria/focus": "^3.19.0",
31
- "@react-aria/i18n": "^3.12.4",
32
- "@react-aria/overlays": "3.27.0",
33
- "@react-aria/tabs": "3.10.2",
34
- "@react-aria/utils": "3.28.2",
35
- "@react-aria/visually-hidden": "3.8.22",
36
- "@react-spring/web": "^9.7.5",
37
- "@react-stately/checkbox": "3.6.13",
38
- "@react-stately/collections": "3.12.3",
39
- "@react-stately/overlays": "3.6.15",
40
- "@react-stately/radio": "3.10.12",
41
- "@react-stately/tabs": "3.8.1",
42
- "@react-stately/toggle": "3.8.3",
43
- "@react-types/radio": "3.8.8",
44
- "@react-types/shared": "^3.26.0",
45
- "@react-types/tabs": "3.3.14",
46
- "radashi": "^12.3.0",
47
27
  "react": "18.3.1",
48
28
  "react-aria": "^3.39.0",
49
- "react-div-100vh": "0.7.0",
50
- "react-hook-form": "7.54.0",
51
- "react-stately": "^3.37.0",
52
- "react-use": "17.5.1",
53
- "sanitize-html": "^2.13.1",
54
- "swiper": "11.1.15",
55
- "tailwind-variants": "^0.3.0",
56
- "usehooks-ts": "^3.1.0"
29
+ "react-stately": "^3.37.0"
57
30
  }
58
31
  }