@design-edito/tools 0.4.0 → 0.4.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 (214) hide show
  1. package/agnostic/arrays/index.d.ts +2 -2
  2. package/agnostic/arrays/index.js +2 -2
  3. package/agnostic/colors/channels/index.js +1 -1
  4. package/agnostic/colors/contrast/index.js +1 -1
  5. package/agnostic/colors/convert/index.js +1 -1
  6. package/agnostic/colors/distance/index.js +1 -1
  7. package/agnostic/colors/grayscale/index.js +1 -1
  8. package/agnostic/colors/index.d.ts +4 -4
  9. package/agnostic/colors/index.js +4 -4
  10. package/agnostic/colors/invert/index.js +1 -1
  11. package/agnostic/colors/lerp/index.js +1 -1
  12. package/agnostic/colors/luminance/index.js +1 -1
  13. package/agnostic/colors/palette/index.js +1 -1
  14. package/agnostic/colors/rotate/index.js +1 -1
  15. package/agnostic/colors/tidy/index.js +1 -1
  16. package/agnostic/css/index.d.ts +2 -2
  17. package/agnostic/css/index.js +2 -2
  18. package/agnostic/html/hyper-json/cast/index.js +11 -12
  19. package/agnostic/html/hyper-json/index.js +13 -14
  20. package/agnostic/html/hyper-json/method/index.d.ts +2 -2
  21. package/agnostic/html/hyper-json/serialize/index.js +3 -3
  22. package/agnostic/html/hyper-json/smart-tags/coalesced/add/index.js +11 -12
  23. package/agnostic/html/hyper-json/smart-tags/coalesced/addclass/index.js +11 -12
  24. package/agnostic/html/hyper-json/smart-tags/coalesced/and/index.js +11 -12
  25. package/agnostic/html/hyper-json/smart-tags/coalesced/append/index.js +11 -12
  26. package/agnostic/html/hyper-json/smart-tags/coalesced/at/index.js +11 -12
  27. package/agnostic/html/hyper-json/smart-tags/coalesced/call/index.js +11 -12
  28. package/agnostic/html/hyper-json/smart-tags/coalesced/clone/index.js +11 -12
  29. package/agnostic/html/hyper-json/smart-tags/coalesced/deleteproperties/index.js +11 -12
  30. package/agnostic/html/hyper-json/smart-tags/coalesced/equals/index.js +11 -12
  31. package/agnostic/html/hyper-json/smart-tags/coalesced/getattribute/index.js +11 -12
  32. package/agnostic/html/hyper-json/smart-tags/coalesced/getproperties/index.js +11 -12
  33. package/agnostic/html/hyper-json/smart-tags/coalesced/getproperty/index.js +11 -12
  34. package/agnostic/html/hyper-json/smart-tags/coalesced/hjparse/index.js +11 -12
  35. package/agnostic/html/hyper-json/smart-tags/coalesced/hjstringify/index.js +11 -12
  36. package/agnostic/html/hyper-json/smart-tags/coalesced/if/index.js +11 -12
  37. package/agnostic/html/hyper-json/smart-tags/coalesced/index.d.ts +11 -11
  38. package/agnostic/html/hyper-json/smart-tags/coalesced/index.js +11 -11
  39. package/agnostic/html/hyper-json/smart-tags/coalesced/initialize/index.js +11 -12
  40. package/agnostic/html/hyper-json/smart-tags/coalesced/join/index.js +11 -12
  41. package/agnostic/html/hyper-json/smart-tags/coalesced/length/index.js +11 -12
  42. package/agnostic/html/hyper-json/smart-tags/coalesced/map/index.js +11 -12
  43. package/agnostic/html/hyper-json/smart-tags/coalesced/negate/index.js +11 -12
  44. package/agnostic/html/hyper-json/smart-tags/coalesced/notrailing/index.js +11 -12
  45. package/agnostic/html/hyper-json/smart-tags/coalesced/or/index.js +11 -12
  46. package/agnostic/html/hyper-json/smart-tags/coalesced/pickrandom/index.js +11 -12
  47. package/agnostic/html/hyper-json/smart-tags/coalesced/populate/index.js +11 -12
  48. package/agnostic/html/hyper-json/smart-tags/coalesced/print/index.js +11 -12
  49. package/agnostic/html/hyper-json/smart-tags/coalesced/push/index.js +11 -12
  50. package/agnostic/html/hyper-json/smart-tags/coalesced/pusheach/index.js +11 -12
  51. package/agnostic/html/hyper-json/smart-tags/coalesced/recordtoarray/index.js +11 -12
  52. package/agnostic/html/hyper-json/smart-tags/coalesced/removeattribute/index.js +11 -12
  53. package/agnostic/html/hyper-json/smart-tags/coalesced/removeclass/index.js +11 -12
  54. package/agnostic/html/hyper-json/smart-tags/coalesced/renameproperty/index.js +11 -12
  55. package/agnostic/html/hyper-json/smart-tags/coalesced/replace/index.js +11 -12
  56. package/agnostic/html/hyper-json/smart-tags/coalesced/select/index.js +11 -12
  57. package/agnostic/html/hyper-json/smart-tags/coalesced/set/index.js +11 -12
  58. package/agnostic/html/hyper-json/smart-tags/coalesced/setattribute/index.js +11 -12
  59. package/agnostic/html/hyper-json/smart-tags/coalesced/setproperty/index.js +11 -12
  60. package/agnostic/html/hyper-json/smart-tags/coalesced/sorton/index.js +11 -12
  61. package/agnostic/html/hyper-json/smart-tags/coalesced/split/index.js +11 -12
  62. package/agnostic/html/hyper-json/smart-tags/coalesced/spread/index.js +11 -12
  63. package/agnostic/html/hyper-json/smart-tags/coalesced/toarray/index.js +11 -12
  64. package/agnostic/html/hyper-json/smart-tags/coalesced/toboolean/index.js +11 -12
  65. package/agnostic/html/hyper-json/smart-tags/coalesced/toelement/index.js +11 -12
  66. package/agnostic/html/hyper-json/smart-tags/coalesced/toggleclass/index.js +11 -12
  67. package/agnostic/html/hyper-json/smart-tags/coalesced/tonodelist/index.js +11 -12
  68. package/agnostic/html/hyper-json/smart-tags/coalesced/tonull/index.js +11 -12
  69. package/agnostic/html/hyper-json/smart-tags/coalesced/tonumber/index.js +11 -12
  70. package/agnostic/html/hyper-json/smart-tags/coalesced/torecord/index.js +11 -12
  71. package/agnostic/html/hyper-json/smart-tags/coalesced/toref/index.js +11 -12
  72. package/agnostic/html/hyper-json/smart-tags/coalesced/tostring/index.js +11 -12
  73. package/agnostic/html/hyper-json/smart-tags/coalesced/totext/index.js +11 -12
  74. package/agnostic/html/hyper-json/smart-tags/coalesced/transformselected/index.js +11 -12
  75. package/agnostic/html/hyper-json/smart-tags/coalesced/trim/index.js +11 -12
  76. package/agnostic/html/hyper-json/smart-tags/index.d.ts +8 -1
  77. package/agnostic/html/hyper-json/smart-tags/index.js +2 -2
  78. package/agnostic/html/hyper-json/smart-tags/isolated/any/index.d.ts +3 -1
  79. package/agnostic/html/hyper-json/smart-tags/isolated/any/index.js +3 -3
  80. package/agnostic/html/hyper-json/smart-tags/isolated/array/index.d.ts +3 -1
  81. package/agnostic/html/hyper-json/smart-tags/isolated/array/index.js +3 -3
  82. package/agnostic/html/hyper-json/smart-tags/isolated/boolean/index.js +11 -12
  83. package/agnostic/html/hyper-json/smart-tags/isolated/element/index.js +11 -12
  84. package/agnostic/html/hyper-json/smart-tags/isolated/get/index.js +11 -12
  85. package/agnostic/html/hyper-json/smart-tags/isolated/guess/index.js +11 -12
  86. package/agnostic/html/hyper-json/smart-tags/isolated/index.d.ts +1 -1
  87. package/agnostic/html/hyper-json/smart-tags/isolated/index.js +1 -1
  88. package/agnostic/html/hyper-json/smart-tags/isolated/nodelist/index.d.ts +2 -1
  89. package/agnostic/html/hyper-json/smart-tags/isolated/nodelist/index.js +11 -12
  90. package/agnostic/html/hyper-json/smart-tags/isolated/null/index.d.ts +3 -1
  91. package/agnostic/html/hyper-json/smart-tags/isolated/null/index.js +3 -3
  92. package/agnostic/html/hyper-json/smart-tags/isolated/number/index.js +11 -12
  93. package/agnostic/html/hyper-json/smart-tags/isolated/record/index.js +11 -12
  94. package/agnostic/html/hyper-json/smart-tags/isolated/ref/index.js +11 -12
  95. package/agnostic/html/hyper-json/smart-tags/isolated/string/index.js +11 -12
  96. package/agnostic/html/hyper-json/smart-tags/isolated/text/index.js +11 -12
  97. package/agnostic/html/hyper-json/transformer/index.d.ts +7 -7
  98. package/agnostic/html/hyper-json/transformer/index.js +1 -1
  99. package/agnostic/html/hyper-json/tree/index.js +11 -12
  100. package/agnostic/html/hyper-json/types/index.d.ts +4 -4
  101. package/agnostic/html/hyper-json/utils/index.d.ts +1 -1
  102. package/agnostic/html/hyper-json/utils/index.js +11 -12
  103. package/agnostic/html/index.d.ts +1 -1
  104. package/agnostic/html/index.js +1 -1
  105. package/agnostic/index.d.ts +7 -7
  106. package/agnostic/index.js +7 -7
  107. package/agnostic/misc/crossenv/index.d.ts +1 -1
  108. package/agnostic/misc/crossenv/index.js +1 -1
  109. package/agnostic/misc/index.d.ts +2 -2
  110. package/agnostic/misc/index.js +2 -2
  111. package/agnostic/misc/logs/index.d.ts +1 -1
  112. package/agnostic/misc/logs/index.js +1 -1
  113. package/agnostic/numbers/index.d.ts +1 -1
  114. package/agnostic/numbers/index.js +1 -1
  115. package/agnostic/objects/index.d.ts +2 -2
  116. package/agnostic/objects/index.js +2 -2
  117. package/agnostic/random/index.d.ts +1 -1
  118. package/agnostic/random/index.js +1 -1
  119. package/agnostic/strings/index.d.ts +2 -2
  120. package/agnostic/strings/index.js +2 -2
  121. package/agnostic/strings/replace-all/index.js +14 -3
  122. package/agnostic/time/index.d.ts +1 -1
  123. package/agnostic/time/index.js +1 -1
  124. package/chunks/{chunk-3K4JD65D.js → chunk-AC4UMIWM.js} +3 -9
  125. package/chunks/{chunk-FJH35B3Q.js → chunk-B4HGXMP3.js} +2 -2
  126. package/chunks/{chunk-3JPY46VO.js → chunk-BPKMOVMW.js} +80 -86
  127. package/chunks/{chunk-SPC2SMZR.js → chunk-F2YJXIT7.js} +3 -7
  128. package/chunks/{chunk-UVG2S54P.js → chunk-GG4EFNMU.js} +3 -7
  129. package/chunks/{chunk-QDHET2TE.js → chunk-HYGUIF2O.js} +5 -2
  130. package/chunks/{chunk-3DNVFA25.js → chunk-IEZ3O5OF.js} +2 -0
  131. package/chunks/{chunk-4STX5SQX.js → chunk-LEBGVBYD.js} +9 -2
  132. package/chunks/{chunk-FCABYQRX.js → chunk-MSU7JU63.js} +13 -1
  133. package/chunks/{chunk-H4KLHV6B.js → chunk-O32IRXDX.js} +1 -1
  134. package/chunks/{chunk-KKYEOIJI.js → chunk-PYJKFOMV.js} +3 -5
  135. package/chunks/{chunk-DU6U226H.js → chunk-RJRNYRPM.js} +2 -2
  136. package/chunks/{chunk-OEVSF7D3.js → chunk-XFB4PUXO.js} +3 -7
  137. package/chunks/{chunk-AS4CIZVE.js → chunk-ZJNQRKEJ.js} +3 -7
  138. package/components/BeforeAfter/index.js +3 -5
  139. package/components/Disclaimer/index.js +2 -2
  140. package/components/Drawer/index.js +4 -8
  141. package/components/EventListener/index.js +3 -7
  142. package/components/Gallery/index.js +3 -11
  143. package/components/Image/index.js +5 -9
  144. package/components/IntersectionObserver/index.js +2 -2
  145. package/components/Overlayer/index.d.ts +59 -0
  146. package/components/Overlayer/index.js +67 -0
  147. package/components/Overlayer/styles.module.css +0 -0
  148. package/components/Paginator/index.js +2 -2
  149. package/components/ResizeObserver/index.js +2 -2
  150. package/components/Scrllgngn/index.js +8 -25
  151. package/components/ScrollListener/index.js +4 -6
  152. package/components/Sequencer/index.js +4 -8
  153. package/components/ShadowRoot/index.js +3 -7
  154. package/components/Subtitles/index.js +3 -3
  155. package/components/Theatre/index.js +2 -2
  156. package/components/UIModule/index.js +3 -7
  157. package/components/Video/index.js +8 -10
  158. package/components/index.d.ts +6 -5
  159. package/components/index.js +6 -5
  160. package/components/public-classnames.d.ts +1 -0
  161. package/node/@aws-s3/storage/directory/index.d.ts +1 -1
  162. package/node/@aws-s3/storage/directory/index.js +1 -1
  163. package/node/@aws-s3/storage/file/index.d.ts +3 -3
  164. package/node/@aws-s3/storage/file/index.js +3 -3
  165. package/node/@google-cloud/storage/file/index.d.ts +4 -4
  166. package/node/@google-cloud/storage/file/index.js +4 -4
  167. package/node/@google-cloud/storage/file/revoke-signed-urls/index.js +3 -3
  168. package/node/@google-cloud/storage/index.d.ts +1 -1
  169. package/node/@google-cloud/storage/index.js +1 -1
  170. package/node/cloud-storage/operations/index.d.ts +2 -2
  171. package/node/cloud-storage/operations/index.js +2 -2
  172. package/node/files/index.d.ts +1 -1
  173. package/node/files/index.js +1 -1
  174. package/node/ftps/directory/index.d.ts +1 -1
  175. package/node/ftps/directory/index.js +1 -1
  176. package/node/ftps/file/index.d.ts +3 -3
  177. package/node/ftps/file/index.js +3 -3
  178. package/node/images/create/index.js +1 -1
  179. package/node/images/format/index.js +1 -1
  180. package/node/images/metadata/index.js +1 -1
  181. package/node/images/transform/index.js +28 -28
  182. package/node/images/transform/operations/extend/index.js +1 -1
  183. package/node/images/transform/operations/flatten/index.js +1 -1
  184. package/node/images/transform/operations/index.d.ts +4 -4
  185. package/node/images/transform/operations/index.js +4 -4
  186. package/node/images/transform/operations/overlay/index.js +1 -1
  187. package/node/images/transform/operations/resize/index.js +1 -1
  188. package/node/images/transform/operations/rotate/index.js +1 -1
  189. package/node/images/utils/index.js +1 -1
  190. package/node/index.d.ts +2 -2
  191. package/node/index.js +2 -2
  192. package/node/sftp/directory/index.d.ts +1 -1
  193. package/node/sftp/directory/index.js +1 -1
  194. package/node/sftp/file/index.d.ts +2 -2
  195. package/node/sftp/file/index.js +2 -2
  196. package/package.json +8 -1
  197. package/chunks/chunk-EPUHVR7J.js +0 -17
  198. package/components/BeforeAfter/index.css +0 -1
  199. package/components/Disclaimer/index.css +0 -1
  200. package/components/Drawer/index.css +0 -2
  201. package/components/EventListener/index.css +0 -1
  202. package/components/Gallery/index.css +0 -29
  203. package/components/Image/index.css +0 -3
  204. package/components/IntersectionObserver/index.css +0 -1
  205. package/components/Paginator/index.css +0 -10
  206. package/components/ResizeObserver/index.css +0 -1
  207. package/components/Scrllgngn/index.css +0 -69
  208. package/components/ScrollListener/index.css +0 -2
  209. package/components/Sequencer/index.css +0 -2
  210. package/components/ShadowRoot/index.css +0 -1
  211. package/components/Subtitles/index.css +0 -1
  212. package/components/Theatre/index.css +0 -1
  213. package/components/UIModule/index.css +0 -1
  214. package/components/Video/index.css +0 -4
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resizeObserver
3
- } from "./chunk-3DNVFA25.js";
3
+ } from "./chunk-IEZ3O5OF.js";
4
4
  import {
5
5
  clss
6
6
  } from "./chunk-TRFZSKNB.js";
@@ -14,11 +14,7 @@ import {
14
14
  useEffect,
15
15
  useState
16
16
  } from "react";
17
-
18
- // src/components/ResizeObserver/style.module.css
19
- var style_default = {};
20
-
21
- // src/components/ResizeObserver/index.tsx
17
+ import cssModule from "./style.module.css";
22
18
  import { jsx } from "react/jsx-runtime";
23
19
  var ResizeObserverComponent = ({
24
20
  className,
@@ -74,7 +70,7 @@ var ResizeObserverComponent = ({
74
70
  [`--${resizeObserver}-${key}-px`]: `${val.toString()}px`
75
71
  };
76
72
  }, {});
77
- const c = clss(resizeObserver, { cssModule: style_default });
73
+ const c = clss(resizeObserver, { cssModule });
78
74
  const rootClss = mergeClassNames(c(null), className);
79
75
  return /* @__PURE__ */ jsx(
80
76
  "div",
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SmartTags
3
- } from "./chunk-FCABYQRX.js";
3
+ } from "./chunk-MSU7JU63.js";
4
4
  import {
5
5
  makeSuccess
6
6
  } from "./chunk-LUAYN7VJ.js";
@@ -12,7 +12,10 @@ var array = SmartTags.makeSmartTag({
12
12
  isolationInitType: "array",
13
13
  mainValueCheck: (m) => makeSuccess(m),
14
14
  argsValueCheck: (a) => makeSuccess(a),
15
- func: (main, args) => makeSuccess([main, ...args])
15
+ func: (main, args) => {
16
+ if (main === void 0) return makeSuccess([...args]);
17
+ return makeSuccess([main, ...args]);
18
+ }
16
19
  });
17
20
 
18
21
  export {
@@ -6,6 +6,7 @@ var eventListener = "dsed-event-listener";
6
6
  var gallery = "dsed-gallery";
7
7
  var image = "dsed-image";
8
8
  var intersectionObserver = "dsed-intersection-observer";
9
+ var overlayer = "dsed-overlayer";
9
10
  var paginator = "dsed-paginator";
10
11
  var resizeObserver = "dsed-resize-observer";
11
12
  var scrllgngn = "dsed-scrllgngn";
@@ -25,6 +26,7 @@ export {
25
26
  gallery,
26
27
  image,
27
28
  intersectionObserver,
29
+ overlayer,
28
30
  paginator,
29
31
  resizeObserver,
30
32
  scrllgngn,
@@ -38,7 +38,7 @@ var Transformer = class _Transformer {
38
38
  let argsValue;
39
39
  if (mode === "isolation") {
40
40
  if (Array.isArray(innerValue)) {
41
- mainValue = innerValue.at(0) ?? [];
41
+ mainValue = innerValue.at(0);
42
42
  argsValue = innerValue.slice(1);
43
43
  } else {
44
44
  mainValue = innerValue;
@@ -113,7 +113,14 @@ var Transformer = class _Transformer {
113
113
  argsChecked.error.position
114
114
  ));
115
115
  const validArgsValue = argsChecked.payload;
116
- const called = func(validMainValue, validArgsValue, { name: this.name, sourceTree: this.sourceTree });
116
+ const called = func(
117
+ validMainValue,
118
+ validArgsValue,
119
+ {
120
+ name: this.name,
121
+ sourceTree: this.sourceTree
122
+ }
123
+ );
117
124
  if (!called.success) return makeFailure(makeTransformationError(
118
125
  mainValue,
119
126
  argsValue,
@@ -1,9 +1,13 @@
1
1
  import {
2
2
  Transformer
3
- } from "./chunk-4STX5SQX.js";
3
+ } from "./chunk-LEBGVBYD.js";
4
4
  import {
5
5
  Method
6
6
  } from "./chunk-RW7VAKJW.js";
7
+ import {
8
+ makeFailure,
9
+ makeSuccess
10
+ } from "./chunk-LUAYN7VJ.js";
7
11
 
8
12
  // src/agnostic/html/hyper-json/smart-tags/index.ts
9
13
  var SmartTags;
@@ -30,6 +34,14 @@ var SmartTags;
30
34
  }];
31
35
  }
32
36
  SmartTags2.makeSmartTag = makeSmartTag;
37
+ const isNotUndefined = (value) => value !== void 0;
38
+ SmartTags2.expectNotUndef = (value) => {
39
+ if (isNotUndefined(value)) return makeSuccess(value);
40
+ return makeFailure({
41
+ expected: "value",
42
+ found: "undefined"
43
+ });
44
+ };
33
45
  })(SmartTags || (SmartTags = {}));
34
46
 
35
47
  export {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Transformer
3
- } from "./chunk-4STX5SQX.js";
3
+ } from "./chunk-LEBGVBYD.js";
4
4
  import {
5
5
  Method
6
6
  } from "./chunk-RW7VAKJW.js";
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-PUQUSA6S.js";
7
7
  import {
8
8
  subtitles
9
- } from "./chunk-3DNVFA25.js";
9
+ } from "./chunk-IEZ3O5OF.js";
10
10
  import {
11
11
  clss
12
12
  } from "./chunk-TRFZSKNB.js";
@@ -95,10 +95,8 @@ var getCurrentGroup = (subsGroupsWithBoundaries, lastPrevSubId, isEnded) => {
95
95
  return previousGroups[previousGroups.length - 1];
96
96
  };
97
97
 
98
- // src/components/Subtitles/styles.module.css
99
- var styles_default = {};
100
-
101
98
  // src/components/Subtitles/index.tsx
99
+ import cssModule from "./styles.module.css";
102
100
  import { jsx } from "react/jsx-runtime";
103
101
  var Subtitles = ({
104
102
  src,
@@ -143,7 +141,7 @@ var Subtitles = ({
143
141
  console.error(error);
144
142
  });
145
143
  }, [fetchAndParseSubs, src, srtFileContent]);
146
- const c = clss(subtitles, { cssModule: styles_default });
144
+ const c = clss(subtitles, { cssModule });
147
145
  const rootClss = mergeClassNames(
148
146
  c(null, {
149
147
  loading: isLoading,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SmartTags
3
- } from "./chunk-FCABYQRX.js";
3
+ } from "./chunk-MSU7JU63.js";
4
4
  import {
5
5
  makeSuccess
6
6
  } from "./chunk-LUAYN7VJ.js";
@@ -13,7 +13,7 @@ var any = SmartTags.makeSmartTag({
13
13
  mainValueCheck: (m) => makeSuccess(m),
14
14
  argsValueCheck: (a) => makeSuccess(a),
15
15
  func: (main, args) => {
16
- if (args.length === 0) return makeSuccess(main);
16
+ if (main === void 0) return makeSuccess([...args]);
17
17
  return makeSuccess([main, ...args]);
18
18
  }
19
19
  });
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  disclaimer
3
- } from "./chunk-3DNVFA25.js";
3
+ } from "./chunk-IEZ3O5OF.js";
4
4
  import {
5
5
  clss
6
6
  } from "./chunk-TRFZSKNB.js";
@@ -14,11 +14,7 @@ import {
14
14
  useEffect,
15
15
  useRef
16
16
  } from "react";
17
-
18
- // src/components/Disclaimer/styles.module.css
19
- var styles_default = {};
20
-
21
- // src/components/Disclaimer/index.tsx
17
+ import cssModule from "./styles.module.css";
22
18
  import { jsx, jsxs } from "react/jsx-runtime";
23
19
  var Disclaimer = ({
24
20
  content,
@@ -43,7 +39,7 @@ var Disclaimer = ({
43
39
  if (isOnProp !== void 0) return;
44
40
  setInternalIsOn(false);
45
41
  };
46
- const c = clss(disclaimer, { cssModule: styles_default });
42
+ const c = clss(disclaimer, { cssModule });
47
43
  const rootClss = mergeClassNames(
48
44
  c(null, {
49
45
  on: isOn,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  theatre
3
- } from "./chunk-3DNVFA25.js";
3
+ } from "./chunk-IEZ3O5OF.js";
4
4
  import {
5
5
  clss
6
6
  } from "./chunk-TRFZSKNB.js";
@@ -14,11 +14,7 @@ import {
14
14
  useState,
15
15
  useRef
16
16
  } from "react";
17
-
18
- // src/components/Theatre/styles.module.css
19
- var styles_default = {};
20
-
21
- // src/components/Theatre/index.tsx
17
+ import cssModule from "./styles.module.css";
22
18
  import { jsx, jsxs } from "react/jsx-runtime";
23
19
  var Theatre = ({
24
20
  closeBtnContent,
@@ -66,7 +62,7 @@ var Theatre = ({
66
62
  window.addEventListener("keydown", listener);
67
63
  return () => window.removeEventListener("keydown", listener);
68
64
  }, [exitOnEscape, isTheatreOn, isOn]);
69
- const c = clss(theatre, { cssModule: styles_default });
65
+ const c = clss(theatre, { cssModule });
70
66
  const rootClss = mergeClassNames(c(null, {
71
67
  "on": isTheatreOn,
72
68
  "off": !isTheatreOn
@@ -3,7 +3,7 @@ import {
3
3
  } from "../../chunks/chunk-OSAXBA7G.js";
4
4
  import {
5
5
  beforeAfter
6
- } from "../../chunks/chunk-3DNVFA25.js";
6
+ } from "../../chunks/chunk-IEZ3O5OF.js";
7
7
  import {
8
8
  clss
9
9
  } from "../../chunks/chunk-TRFZSKNB.js";
@@ -24,9 +24,7 @@ import {
24
24
  useCallback,
25
25
  useRef
26
26
  } from "react";
27
-
28
- // src/components/BeforeAfter/styles.module.css
29
- var styles_default = {};
27
+ import cssModule from "./styles.module.css";
30
28
 
31
29
  // src/components/BeforeAfter/utils.ts
32
30
  function getRelativePointerCoordinates(event, element) {
@@ -95,7 +93,7 @@ var BeforeAfterControlled = ({
95
93
  [`--${beforeAfter}-ratio`]: outputRatio.toFixed(8),
96
94
  [`--${beforeAfter}-ratio-percent`]: `${(outputRatio * 100).toString()}%`
97
95
  };
98
- const c = clss(beforeAfter, { cssModule: styles_default });
96
+ const c = clss(beforeAfter, { cssModule });
99
97
  const rootClss = mergeClassNames(c(null, _modifiers), className);
100
98
  const rootAttributes = {
101
99
  "data-ratio": ratio
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Disclaimer
3
- } from "../../chunks/chunk-OEVSF7D3.js";
4
- import "../../chunks/chunk-3DNVFA25.js";
3
+ } from "../../chunks/chunk-XFB4PUXO.js";
4
+ import "../../chunks/chunk-IEZ3O5OF.js";
5
5
  import "../../chunks/chunk-TRFZSKNB.js";
6
6
  import "../../chunks/chunk-OFCSIK6J.js";
7
7
  import "../../chunks/chunk-WSFCRVEQ.js";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  ResizeObserverComponent
3
- } from "../../chunks/chunk-UVG2S54P.js";
3
+ } from "../../chunks/chunk-GG4EFNMU.js";
4
4
  import {
5
5
  drawer
6
- } from "../../chunks/chunk-3DNVFA25.js";
6
+ } from "../../chunks/chunk-IEZ3O5OF.js";
7
7
  import {
8
8
  clss
9
9
  } from "../../chunks/chunk-TRFZSKNB.js";
@@ -18,11 +18,7 @@ import {
18
18
  useRef,
19
19
  useEffect
20
20
  } from "react";
21
-
22
- // src/components/Drawer/styles.module.css
23
- var styles_default = {};
24
-
25
- // src/components/Drawer/index.tsx
21
+ import cssModule from "./styles.module.css";
26
22
  import { jsx, jsxs } from "react/jsx-runtime";
27
23
  var Drawer = ({
28
24
  openerContent,
@@ -54,7 +50,7 @@ var Drawer = ({
54
50
  const { width: width2, height: height2 } = entry?.contentRect ?? {};
55
51
  setContentDimensions({ width: width2, height: height2 });
56
52
  };
57
- const c = clss(drawer, { cssModule: styles_default });
53
+ const c = clss(drawer, { cssModule });
58
54
  const rootClss = mergeClassNames(c(null, {
59
55
  "opened": isOpened,
60
56
  "closed": !isOpened
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  eventListener
3
- } from "../../chunks/chunk-3DNVFA25.js";
3
+ } from "../../chunks/chunk-IEZ3O5OF.js";
4
4
  import {
5
5
  clss
6
6
  } from "../../chunks/chunk-TRFZSKNB.js";
@@ -14,11 +14,7 @@ import {
14
14
  useRef,
15
15
  useEffect
16
16
  } from "react";
17
-
18
- // src/components/EventListener/styles.module.css
19
- var styles_default = {};
20
-
21
- // src/components/EventListener/index.tsx
17
+ import cssModule from "./styles.module.css";
22
18
  import { jsx } from "react/jsx-runtime";
23
19
  var EventListenerComponent = ({
24
20
  className,
@@ -36,7 +32,7 @@ var EventListenerComponent = ({
36
32
  elements.forEach((e) => typeArr.forEach((t) => e.addEventListener(t, onEvent)));
37
33
  return () => elements.forEach((e) => typeArr.forEach((t) => e.removeEventListener(t, onEvent)));
38
34
  }, [targetSelector, type, onEvent]);
39
- const c = clss(eventListener, { cssModule: styles_default });
35
+ const c = clss(eventListener, { cssModule });
40
36
  const rootClss = mergeClassNames(c(), className);
41
37
  return /* @__PURE__ */ jsx(
42
38
  "div",
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  gallery
3
- } from "../../chunks/chunk-3DNVFA25.js";
3
+ } from "../../chunks/chunk-IEZ3O5OF.js";
4
4
  import {
5
5
  clss
6
6
  } from "../../chunks/chunk-TRFZSKNB.js";
@@ -29,16 +29,8 @@ var forceActivateSlot = (div, targetPos, smooth = true) => {
29
29
  div.scrollTo({ left: offset, behavior: smooth ? "smooth" : "instant" });
30
30
  };
31
31
 
32
- // src/components/Gallery/styles.module.css
33
- var styles_default = {
34
- scroller: "styles_scroller",
35
- root: "styles_root2",
36
- "root--controlled": "styles_root--controlled",
37
- "root--no-snap": "styles_root--no-snap",
38
- slot: "styles_slot"
39
- };
40
-
41
32
  // src/components/Gallery/index.tsx
33
+ import cssModule from "./styles.module.css";
42
34
  import { jsx, jsxs } from "react/jsx-runtime";
43
35
  var Gallery = ({
44
36
  paddingLeft,
@@ -120,7 +112,7 @@ var Gallery = ({
120
112
  if (active === void 0) return;
121
113
  forceActivateSlot(scrollerRef.current, active);
122
114
  }, [active]);
123
- const c = clss(gallery, { cssModule: styles_default });
115
+ const c = clss(gallery, { cssModule });
124
116
  const rootClss = mergeClassNames(
125
117
  c(null, {
126
118
  "controlled": active !== void 0,
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  Theatre
3
- } from "../../chunks/chunk-AS4CIZVE.js";
3
+ } from "../../chunks/chunk-ZJNQRKEJ.js";
4
4
  import {
5
5
  Disclaimer
6
- } from "../../chunks/chunk-OEVSF7D3.js";
6
+ } from "../../chunks/chunk-XFB4PUXO.js";
7
7
  import {
8
8
  image
9
- } from "../../chunks/chunk-3DNVFA25.js";
9
+ } from "../../chunks/chunk-IEZ3O5OF.js";
10
10
  import {
11
11
  clss
12
12
  } from "../../chunks/chunk-TRFZSKNB.js";
@@ -21,11 +21,7 @@ import {
21
21
  useMemo,
22
22
  useCallback
23
23
  } from "react";
24
-
25
- // src/components/Image/styles.module.css
26
- var styles_default = {};
27
-
28
- // src/components/Image/index.tsx
24
+ import cssModule from "./styles.module.css";
29
25
  import { jsx, jsxs } from "react/jsx-runtime";
30
26
  var Image = ({
31
27
  sources,
@@ -54,7 +50,7 @@ var Image = ({
54
50
  disclaimer?.actionHandlers?.dismissClick?.(isDisclaimerOn);
55
51
  setIsDisclaimerOn(false);
56
52
  }, []);
57
- const c = clss(image, { cssModule: styles_default });
53
+ const c = clss(image, { cssModule });
58
54
  const rootClss = mergeClassNames(c(), className);
59
55
  const rootAttributes = {};
60
56
  const pictureClss = c("picture");
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  IntersectionObserverComponent
3
- } from "../../chunks/chunk-SPC2SMZR.js";
4
- import "../../chunks/chunk-3DNVFA25.js";
3
+ } from "../../chunks/chunk-F2YJXIT7.js";
4
+ import "../../chunks/chunk-IEZ3O5OF.js";
5
5
  import "../../chunks/chunk-TRFZSKNB.js";
6
6
  import "../../chunks/chunk-OFCSIK6J.js";
7
7
  import "../../chunks/chunk-WSFCRVEQ.js";
@@ -0,0 +1,59 @@
1
+ import { type FunctionComponent, type PropsWithChildren, type ReactNode } from 'react';
2
+ import type { WithClassName } from '../utils/types.js';
3
+ /**
4
+ * Describes a single overlay positioned over the base content.
5
+ *
6
+ * @property content - React node rendered inside the overlay element.
7
+ * If falsy, the overlay is not rendered.
8
+ * @property xPercent - Horizontal position of the overlay anchor as a percentage
9
+ * of the root element's width. Defaults to `0`.
10
+ * @property yPercent - Vertical position of the overlay anchor as a percentage
11
+ * of the root element's height. Defaults to `0`.
12
+ * @property justify - Controls the horizontal alignment of the overlay relative
13
+ * to its anchor point via a CSS `translateX`:
14
+ * - `'left'` — anchor is at the left edge of the overlay (`0%`).
15
+ * - `'center'` — anchor is at the horizontal center (`-50%`). Default when omitted.
16
+ * - `'right'` — anchor is at the right edge (`-100%`).
17
+ * - `number` — arbitrary percentage offset (e.g. `25` produces `-25%`).
18
+ */
19
+ type Overlay = {
20
+ content?: ReactNode;
21
+ xPercent?: number;
22
+ yPercent?: number;
23
+ justify?: 'left' | 'center' | 'right' | number;
24
+ };
25
+ /**
26
+ * Props for the {@link Overlayer} component.
27
+ *
28
+ * @property overlays - Array of {@link Overlay} descriptors rendered on top of
29
+ * the base content. Overlays with falsy `content` are skipped.
30
+ * @property className - Optional additional class name(s) applied to the root element.
31
+ * @property children - Content rendered in the base layer, below all overlays.
32
+ */
33
+ export type Props = PropsWithChildren<WithClassName<{
34
+ overlays?: Overlay[];
35
+ }>>;
36
+ /**
37
+ * Absolute positioning overlay component. Renders a base content layer and
38
+ * stacks one or more overlays on top of it, each independently positioned via
39
+ * percentage coordinates and a justify alignment.
40
+ *
41
+ * ### Child elements
42
+ * - `__base` — wrapping `<div>` that contains `children`.
43
+ * - `__overlay` — one `<div>` per entry in `overlays` (falsy `content` entries
44
+ * are omitted).
45
+ *
46
+ * ### CSS custom properties on each overlay element
47
+ * - `--PRIVATE-left` — derived from `xPercent` (e.g. `42%`). Used internally
48
+ * to set the horizontal anchor position.
49
+ * - `--PRIVATE-top` — derived from `yPercent` (e.g. `10%`). Used internally
50
+ * to set the vertical anchor position.
51
+ * - `--PRIVATE-translate-x` — derived from `justify`. Used internally to shift
52
+ * the overlay relative to its anchor.
53
+ *
54
+ * @param props - Component properties.
55
+ * @see {@link Props}
56
+ * @returns A root `<div>` containing the base layer and all positioned overlay elements.
57
+ */
58
+ export declare const Overlayer: FunctionComponent<Props>;
59
+ export {};
@@ -0,0 +1,67 @@
1
+ import {
2
+ isFalsy
3
+ } from "../../chunks/chunk-QXAJXTXV.js";
4
+ import "../../chunks/chunk-HC6ZOHCS.js";
5
+ import {
6
+ overlayer
7
+ } from "../../chunks/chunk-IEZ3O5OF.js";
8
+ import {
9
+ clss
10
+ } from "../../chunks/chunk-TRFZSKNB.js";
11
+ import {
12
+ mergeClassNames
13
+ } from "../../chunks/chunk-OFCSIK6J.js";
14
+ import "../../chunks/chunk-WSFCRVEQ.js";
15
+
16
+ // src/components/Overlayer/index.tsx
17
+ import cssModule from "./styles.module.css";
18
+ import { jsx, jsxs } from "react/jsx-runtime";
19
+ var Overlayer = ({
20
+ overlays,
21
+ children,
22
+ className
23
+ }) => {
24
+ const c = clss(overlayer, { cssModule });
25
+ const rootClss = mergeClassNames(c(), className);
26
+ const baseClss = c("base");
27
+ return /* @__PURE__ */ jsxs("div", { className: rootClss, children: [
28
+ /* @__PURE__ */ jsx("div", { className: baseClss, children }),
29
+ overlays?.map(({
30
+ content,
31
+ xPercent = 0,
32
+ yPercent = 0,
33
+ justify
34
+ }) => {
35
+ const overlayClss = c("overlay");
36
+ let computedTranslateX;
37
+ if (typeof justify === "number") {
38
+ computedTranslateX = `-${justify}%`;
39
+ } else if (justify === "center") {
40
+ computedTranslateX = "-50%";
41
+ } else if (justify === "left") {
42
+ computedTranslateX = "0%";
43
+ } else if (justify === "right") {
44
+ computedTranslateX = "-100%";
45
+ } else {
46
+ computedTranslateX = "-50%";
47
+ }
48
+ const overlayCustomProps = {
49
+ "--PRIVATE-left": `${xPercent}%`,
50
+ "--PRIVATE-top": `${yPercent}%`,
51
+ "--PRIVATE-translate-x": computedTranslateX
52
+ };
53
+ if (isFalsy(content)) return null;
54
+ return /* @__PURE__ */ jsx(
55
+ "div",
56
+ {
57
+ className: overlayClss,
58
+ style: overlayCustomProps,
59
+ children: content
60
+ }
61
+ );
62
+ })
63
+ ] });
64
+ };
65
+ export {
66
+ Overlayer
67
+ };
File without changes
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Paginator
3
- } from "../../chunks/chunk-3K4JD65D.js";
4
- import "../../chunks/chunk-3DNVFA25.js";
3
+ } from "../../chunks/chunk-AC4UMIWM.js";
4
+ import "../../chunks/chunk-IEZ3O5OF.js";
5
5
  import "../../chunks/chunk-TRFZSKNB.js";
6
6
  import "../../chunks/chunk-OFCSIK6J.js";
7
7
  import "../../chunks/chunk-WSFCRVEQ.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ResizeObserverComponent
3
- } from "../../chunks/chunk-UVG2S54P.js";
4
- import "../../chunks/chunk-3DNVFA25.js";
3
+ } from "../../chunks/chunk-GG4EFNMU.js";
4
+ import "../../chunks/chunk-IEZ3O5OF.js";
5
5
  import "../../chunks/chunk-TRFZSKNB.js";
6
6
  import "../../chunks/chunk-OFCSIK6J.js";
7
7
  import "../../chunks/chunk-WSFCRVEQ.js";
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  Paginator
3
- } from "../../chunks/chunk-3K4JD65D.js";
3
+ } from "../../chunks/chunk-AC4UMIWM.js";
4
4
  import {
5
5
  randomHash
6
6
  } from "../../chunks/chunk-75BICI4L.js";
7
7
  import "../../chunks/chunk-OGBUSUE6.js";
8
- import {
9
- IntersectionObserverComponent
10
- } from "../../chunks/chunk-SPC2SMZR.js";
11
8
  import {
12
9
  ResizeObserverComponent
13
- } from "../../chunks/chunk-UVG2S54P.js";
10
+ } from "../../chunks/chunk-GG4EFNMU.js";
11
+ import {
12
+ IntersectionObserverComponent
13
+ } from "../../chunks/chunk-F2YJXIT7.js";
14
14
  import {
15
15
  scrllgngn
16
- } from "../../chunks/chunk-3DNVFA25.js";
16
+ } from "../../chunks/chunk-IEZ3O5OF.js";
17
17
  import {
18
18
  clss
19
19
  } from "../../chunks/chunk-TRFZSKNB.js";
@@ -27,24 +27,7 @@ import {
27
27
  useState,
28
28
  useEffect
29
29
  } from "react";
30
-
31
- // src/components/Scrllgngn/styles.module.css
32
- var styles_default = {
33
- root: "styles_root",
34
- "back-blocks": "styles_back-blocks",
35
- "scrolling-content": "styles_scrolling-content",
36
- "front-blocks": "styles_front-blocks",
37
- "root--top-visible": "styles_root--top-visible",
38
- "root--content-visible": "styles_root--content-visible",
39
- "root--force-stick-blocks-before": "styles_root--force-stick-blocks-before",
40
- "root--force-stick-blocks-both": "styles_root--force-stick-blocks-both",
41
- "root--bottom-visible": "styles_root--bottom-visible",
42
- "root--force-stick-blocks-after": "styles_root--force-stick-blocks-after",
43
- "back-block": "styles_back-block",
44
- "front-block": "styles_front-block"
45
- };
46
-
47
- // src/components/Scrllgngn/index.tsx
30
+ import cssModule from "./styles.module.css";
48
31
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
49
32
  var Scrllgngn = ({
50
33
  pages,
@@ -113,7 +96,7 @@ var Scrllgngn = ({
113
96
  const handleResize = ({ boundingClientRect }) => {
114
97
  if (partialBoundingRect === void 0 || boundingClientRect.left !== partialBoundingRect.left || boundingClientRect.right !== partialBoundingRect.right || boundingClientRect.height !== partialBoundingRect.height || boundingClientRect.width !== partialBoundingRect.width) setPartialBoundingRect(boundingClientRect);
115
98
  };
116
- const c = clss(scrllgngn, { cssModule: styles_default });
99
+ const c = clss(scrllgngn, { cssModule });
117
100
  const rootClss = mergeClassNames(
118
101
  c(null, {
119
102
  "top-visible": topVisible,