@design-edito/tools 0.4.1 → 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 (179) hide show
  1. package/agnostic/arrays/index.d.ts +1 -1
  2. package/agnostic/arrays/index.js +1 -1
  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 +3 -3
  9. package/agnostic/colors/index.js +3 -3
  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/bem/index.js +3 -3
  17. package/agnostic/css/index.d.ts +3 -3
  18. package/agnostic/css/index.js +3 -3
  19. package/agnostic/css/scale/index.js +3 -3
  20. package/agnostic/html/hyper-json/cast/index.js +1 -1
  21. package/agnostic/html/hyper-json/index.js +1 -1
  22. package/agnostic/html/hyper-json/smart-tags/coalesced/add/index.js +1 -1
  23. package/agnostic/html/hyper-json/smart-tags/coalesced/addclass/index.js +1 -1
  24. package/agnostic/html/hyper-json/smart-tags/coalesced/and/index.js +1 -1
  25. package/agnostic/html/hyper-json/smart-tags/coalesced/append/index.js +1 -1
  26. package/agnostic/html/hyper-json/smart-tags/coalesced/at/index.js +1 -1
  27. package/agnostic/html/hyper-json/smart-tags/coalesced/call/index.js +1 -1
  28. package/agnostic/html/hyper-json/smart-tags/coalesced/clone/index.js +1 -1
  29. package/agnostic/html/hyper-json/smart-tags/coalesced/deleteproperties/index.js +1 -1
  30. package/agnostic/html/hyper-json/smart-tags/coalesced/equals/index.js +1 -1
  31. package/agnostic/html/hyper-json/smart-tags/coalesced/getattribute/index.js +1 -1
  32. package/agnostic/html/hyper-json/smart-tags/coalesced/getproperties/index.js +1 -1
  33. package/agnostic/html/hyper-json/smart-tags/coalesced/getproperty/index.js +1 -1
  34. package/agnostic/html/hyper-json/smart-tags/coalesced/hjparse/index.js +1 -1
  35. package/agnostic/html/hyper-json/smart-tags/coalesced/hjstringify/index.js +1 -1
  36. package/agnostic/html/hyper-json/smart-tags/coalesced/if/index.js +1 -1
  37. package/agnostic/html/hyper-json/smart-tags/coalesced/index.d.ts +8 -8
  38. package/agnostic/html/hyper-json/smart-tags/coalesced/index.js +8 -8
  39. package/agnostic/html/hyper-json/smart-tags/coalesced/initialize/index.js +1 -1
  40. package/agnostic/html/hyper-json/smart-tags/coalesced/join/index.js +1 -1
  41. package/agnostic/html/hyper-json/smart-tags/coalesced/length/index.js +1 -1
  42. package/agnostic/html/hyper-json/smart-tags/coalesced/map/index.js +1 -1
  43. package/agnostic/html/hyper-json/smart-tags/coalesced/negate/index.js +1 -1
  44. package/agnostic/html/hyper-json/smart-tags/coalesced/notrailing/index.js +1 -1
  45. package/agnostic/html/hyper-json/smart-tags/coalesced/or/index.js +1 -1
  46. package/agnostic/html/hyper-json/smart-tags/coalesced/pickrandom/index.js +1 -1
  47. package/agnostic/html/hyper-json/smart-tags/coalesced/populate/index.js +1 -1
  48. package/agnostic/html/hyper-json/smart-tags/coalesced/print/index.js +1 -1
  49. package/agnostic/html/hyper-json/smart-tags/coalesced/push/index.js +1 -1
  50. package/agnostic/html/hyper-json/smart-tags/coalesced/pusheach/index.js +1 -1
  51. package/agnostic/html/hyper-json/smart-tags/coalesced/recordtoarray/index.js +1 -1
  52. package/agnostic/html/hyper-json/smart-tags/coalesced/removeattribute/index.js +1 -1
  53. package/agnostic/html/hyper-json/smart-tags/coalesced/removeclass/index.js +1 -1
  54. package/agnostic/html/hyper-json/smart-tags/coalesced/renameproperty/index.js +1 -1
  55. package/agnostic/html/hyper-json/smart-tags/coalesced/replace/index.js +1 -1
  56. package/agnostic/html/hyper-json/smart-tags/coalesced/select/index.js +1 -1
  57. package/agnostic/html/hyper-json/smart-tags/coalesced/set/index.js +1 -1
  58. package/agnostic/html/hyper-json/smart-tags/coalesced/setattribute/index.js +1 -1
  59. package/agnostic/html/hyper-json/smart-tags/coalesced/setproperty/index.js +1 -1
  60. package/agnostic/html/hyper-json/smart-tags/coalesced/sorton/index.js +1 -1
  61. package/agnostic/html/hyper-json/smart-tags/coalesced/split/index.js +1 -1
  62. package/agnostic/html/hyper-json/smart-tags/coalesced/spread/index.js +1 -1
  63. package/agnostic/html/hyper-json/smart-tags/coalesced/toarray/index.js +1 -1
  64. package/agnostic/html/hyper-json/smart-tags/coalesced/toboolean/index.js +1 -1
  65. package/agnostic/html/hyper-json/smart-tags/coalesced/toelement/index.js +1 -1
  66. package/agnostic/html/hyper-json/smart-tags/coalesced/toggleclass/index.js +1 -1
  67. package/agnostic/html/hyper-json/smart-tags/coalesced/tonodelist/index.js +1 -1
  68. package/agnostic/html/hyper-json/smart-tags/coalesced/tonull/index.js +1 -1
  69. package/agnostic/html/hyper-json/smart-tags/coalesced/tonumber/index.js +1 -1
  70. package/agnostic/html/hyper-json/smart-tags/coalesced/torecord/index.js +1 -1
  71. package/agnostic/html/hyper-json/smart-tags/coalesced/toref/index.js +1 -1
  72. package/agnostic/html/hyper-json/smart-tags/coalesced/tostring/index.js +1 -1
  73. package/agnostic/html/hyper-json/smart-tags/coalesced/totext/index.js +1 -1
  74. package/agnostic/html/hyper-json/smart-tags/coalesced/transformselected/index.js +1 -1
  75. package/agnostic/html/hyper-json/smart-tags/coalesced/trim/index.js +1 -1
  76. package/agnostic/html/hyper-json/smart-tags/isolated/boolean/index.js +1 -1
  77. package/agnostic/html/hyper-json/smart-tags/isolated/element/index.js +1 -1
  78. package/agnostic/html/hyper-json/smart-tags/isolated/get/index.js +1 -1
  79. package/agnostic/html/hyper-json/smart-tags/isolated/guess/index.js +1 -1
  80. package/agnostic/html/hyper-json/smart-tags/isolated/index.d.ts +1 -1
  81. package/agnostic/html/hyper-json/smart-tags/isolated/index.js +1 -1
  82. package/agnostic/html/hyper-json/smart-tags/isolated/nodelist/index.js +1 -1
  83. package/agnostic/html/hyper-json/smart-tags/isolated/number/index.js +1 -1
  84. package/agnostic/html/hyper-json/smart-tags/isolated/record/index.js +1 -1
  85. package/agnostic/html/hyper-json/smart-tags/isolated/ref/index.js +1 -1
  86. package/agnostic/html/hyper-json/smart-tags/isolated/string/index.js +1 -1
  87. package/agnostic/html/hyper-json/smart-tags/isolated/text/index.js +1 -1
  88. package/agnostic/html/hyper-json/tree/index.js +1 -1
  89. package/agnostic/html/hyper-json/utils/index.d.ts +1 -1
  90. package/agnostic/html/hyper-json/utils/index.js +1 -1
  91. package/agnostic/html/index.d.ts +1 -1
  92. package/agnostic/html/index.js +1 -1
  93. package/agnostic/index.d.ts +4 -4
  94. package/agnostic/index.js +4 -4
  95. package/agnostic/misc/index.d.ts +1 -1
  96. package/agnostic/misc/index.js +1 -1
  97. package/agnostic/numbers/index.d.ts +1 -1
  98. package/agnostic/numbers/index.js +1 -1
  99. package/agnostic/objects/index.d.ts +2 -2
  100. package/agnostic/objects/index.js +2 -2
  101. package/agnostic/random/index.d.ts +1 -1
  102. package/agnostic/random/index.js +1 -1
  103. package/agnostic/strings/index.d.ts +1 -1
  104. package/agnostic/strings/index.js +1 -1
  105. package/chunks/{chunk-3K4JD65D.js → chunk-AC4UMIWM.js} +3 -9
  106. package/chunks/{chunk-E33STMH3.js → chunk-BPKMOVMW.js} +39 -40
  107. package/chunks/{chunk-SPC2SMZR.js → chunk-F2YJXIT7.js} +3 -7
  108. package/chunks/{chunk-UVG2S54P.js → chunk-GG4EFNMU.js} +3 -7
  109. package/chunks/{chunk-3DNVFA25.js → chunk-IEZ3O5OF.js} +2 -0
  110. package/chunks/{chunk-KKYEOIJI.js → chunk-PYJKFOMV.js} +3 -5
  111. package/chunks/{chunk-OEVSF7D3.js → chunk-XFB4PUXO.js} +3 -7
  112. package/chunks/{chunk-AS4CIZVE.js → chunk-ZJNQRKEJ.js} +3 -7
  113. package/components/BeforeAfter/index.js +3 -5
  114. package/components/Disclaimer/index.js +2 -2
  115. package/components/Drawer/index.js +4 -8
  116. package/components/EventListener/index.js +3 -7
  117. package/components/Gallery/index.js +3 -11
  118. package/components/Image/index.js +5 -9
  119. package/components/IntersectionObserver/index.js +2 -2
  120. package/components/Overlayer/index.d.ts +59 -0
  121. package/components/Overlayer/index.js +67 -0
  122. package/components/Overlayer/styles.module.css +0 -0
  123. package/components/Paginator/index.js +2 -2
  124. package/components/ResizeObserver/index.js +2 -2
  125. package/components/Scrllgngn/index.js +8 -25
  126. package/components/ScrollListener/index.js +4 -6
  127. package/components/Sequencer/index.js +4 -8
  128. package/components/ShadowRoot/index.js +3 -7
  129. package/components/Subtitles/index.js +3 -3
  130. package/components/Theatre/index.js +2 -2
  131. package/components/UIModule/index.js +3 -7
  132. package/components/Video/index.js +8 -10
  133. package/components/index.d.ts +3 -2
  134. package/components/index.js +3 -2
  135. package/components/public-classnames.d.ts +1 -0
  136. package/node/@aws-s3/storage/directory/index.d.ts +1 -1
  137. package/node/@aws-s3/storage/directory/index.js +1 -1
  138. package/node/@google-cloud/storage/file/index.d.ts +3 -3
  139. package/node/@google-cloud/storage/file/index.js +3 -3
  140. package/node/@google-cloud/storage/index.d.ts +1 -1
  141. package/node/@google-cloud/storage/index.js +1 -1
  142. package/node/ftps/directory/index.d.ts +1 -1
  143. package/node/ftps/directory/index.js +1 -1
  144. package/node/ftps/file/index.d.ts +1 -1
  145. package/node/ftps/file/index.js +1 -1
  146. package/node/images/create/index.js +1 -1
  147. package/node/images/format/index.js +1 -1
  148. package/node/images/metadata/index.js +1 -1
  149. package/node/images/transform/index.js +24 -24
  150. package/node/images/transform/operations/extend/index.js +1 -1
  151. package/node/images/transform/operations/flatten/index.js +1 -1
  152. package/node/images/transform/operations/index.d.ts +3 -3
  153. package/node/images/transform/operations/index.js +3 -3
  154. package/node/images/transform/operations/overlay/index.js +1 -1
  155. package/node/images/transform/operations/resize/index.js +1 -1
  156. package/node/images/transform/operations/rotate/index.js +1 -1
  157. package/node/images/utils/index.js +1 -1
  158. package/node/process/index.d.ts +1 -1
  159. package/node/process/index.js +1 -1
  160. package/node/sftp/file/index.d.ts +2 -2
  161. package/node/sftp/file/index.js +2 -2
  162. package/package.json +8 -1
  163. package/components/BeforeAfter/index.css +0 -1
  164. package/components/Disclaimer/index.css +0 -1
  165. package/components/Drawer/index.css +0 -2
  166. package/components/EventListener/index.css +0 -1
  167. package/components/Gallery/index.css +0 -29
  168. package/components/Image/index.css +0 -3
  169. package/components/IntersectionObserver/index.css +0 -1
  170. package/components/Paginator/index.css +0 -10
  171. package/components/ResizeObserver/index.css +0 -1
  172. package/components/Scrllgngn/index.css +0 -69
  173. package/components/ScrollListener/index.css +0 -2
  174. package/components/Sequencer/index.css +0 -2
  175. package/components/ShadowRoot/index.css +0 -1
  176. package/components/Subtitles/index.css +0 -1
  177. package/components/Theatre/index.css +0 -1
  178. package/components/UIModule/index.css +0 -1
  179. package/components/Video/index.css +0 -4
@@ -2192,11 +2192,10 @@ var Utils;
2192
2192
  throw new Error(`Cannot clone value: ${value}`);
2193
2193
  }
2194
2194
  Utils2.clone = clone2;
2195
- function coalesceValues(currentValue, subpath, subvalue) {
2195
+ function coalesceValues(currentValue, subpath, toCoalesce) {
2196
2196
  const { Element: Element2, Text: Text2, NodeList: NodeList2, document } = get();
2197
- let actualSubvalue = subvalue;
2198
- if (actualSubvalue instanceof Transformer) {
2199
- const transformer = actualSubvalue;
2197
+ if (toCoalesce instanceof Transformer) {
2198
+ const transformer = toCoalesce;
2200
2199
  const transformationResult = transformer.apply(currentValue);
2201
2200
  if (!transformationResult.success) {
2202
2201
  console.warn({ ...transformationResult.error });
@@ -2204,87 +2203,87 @@ var Utils;
2204
2203
  }
2205
2204
  const evaluated = transformationResult.payload;
2206
2205
  if (transformer.mode === "isolation") {
2207
- actualSubvalue = evaluated;
2206
+ toCoalesce = evaluated;
2208
2207
  } else {
2209
2208
  return evaluated;
2210
2209
  }
2211
2210
  }
2212
- if (Array.isArray(currentValue)) return [...currentValue, actualSubvalue];
2213
- if (currentValue === null) return actualSubvalue;
2214
- if (typeof currentValue === "boolean") return actualSubvalue;
2215
- if (typeof currentValue === "number") return actualSubvalue;
2216
- if (currentValue instanceof Transformer) return actualSubvalue;
2217
- if (currentValue instanceof Method) return actualSubvalue;
2211
+ if (Array.isArray(currentValue)) return [...currentValue, toCoalesce];
2212
+ if (currentValue === null) return toCoalesce;
2213
+ if (typeof currentValue === "boolean") return toCoalesce;
2214
+ if (typeof currentValue === "number") return toCoalesce;
2215
+ if (currentValue instanceof Transformer) return toCoalesce;
2216
+ if (currentValue instanceof Method) return toCoalesce;
2218
2217
  if (typeof currentValue === "string") {
2219
- if (actualSubvalue === null || typeof actualSubvalue === "boolean" || typeof actualSubvalue === "number" || typeof actualSubvalue === "string") return `${currentValue}${actualSubvalue}`;
2220
- if (actualSubvalue instanceof Text2) return `${currentValue}${actualSubvalue.textContent}`;
2221
- if (actualSubvalue instanceof Element2) {
2218
+ if (toCoalesce === null || typeof toCoalesce === "boolean" || typeof toCoalesce === "number" || typeof toCoalesce === "string") return `${currentValue}${toCoalesce}`;
2219
+ if (toCoalesce instanceof Text2) return `${currentValue}${toCoalesce.textContent}`;
2220
+ if (toCoalesce instanceof Element2) {
2222
2221
  const frag = document.createDocumentFragment();
2223
- frag.append(currentValue, Utils2.clone(actualSubvalue));
2222
+ frag.append(currentValue, Utils2.clone(toCoalesce));
2224
2223
  return frag.childNodes;
2225
2224
  }
2226
- if (actualSubvalue instanceof NodeList2) {
2225
+ if (toCoalesce instanceof NodeList2) {
2227
2226
  const frag = document.createDocumentFragment();
2228
- frag.append(currentValue, ...Array.from(Utils2.clone(actualSubvalue)));
2227
+ frag.append(currentValue, ...Array.from(Utils2.clone(toCoalesce)));
2229
2228
  return frag.childNodes;
2230
2229
  }
2231
- return actualSubvalue;
2230
+ return toCoalesce;
2232
2231
  }
2233
2232
  if (currentValue instanceof Text2) {
2234
- if (actualSubvalue === null || typeof actualSubvalue === "boolean" || typeof actualSubvalue === "number" || typeof actualSubvalue === "string") return document.createTextNode(`${currentValue.textContent}${actualSubvalue}`);
2235
- if (actualSubvalue instanceof Text2) return document.createTextNode(`${currentValue.textContent}${actualSubvalue.textContent}`);
2236
- if (actualSubvalue instanceof Element2) {
2233
+ if (toCoalesce === null || typeof toCoalesce === "boolean" || typeof toCoalesce === "number" || typeof toCoalesce === "string") return document.createTextNode(`${currentValue.textContent}${toCoalesce}`);
2234
+ if (toCoalesce instanceof Text2) return document.createTextNode(`${currentValue.textContent}${toCoalesce.textContent}`);
2235
+ if (toCoalesce instanceof Element2) {
2237
2236
  const frag = document.createDocumentFragment();
2238
- frag.append(clone2(currentValue), clone2(actualSubvalue));
2237
+ frag.append(clone2(currentValue), clone2(toCoalesce));
2239
2238
  return frag.childNodes;
2240
2239
  }
2241
- if (actualSubvalue instanceof NodeList2) {
2240
+ if (toCoalesce instanceof NodeList2) {
2242
2241
  const frag = document.createDocumentFragment();
2243
- frag.append(clone2(currentValue), ...Array.from(clone2(actualSubvalue)));
2242
+ frag.append(clone2(currentValue), ...Array.from(clone2(toCoalesce)));
2244
2243
  return frag.childNodes;
2245
2244
  }
2246
- return actualSubvalue;
2245
+ return toCoalesce;
2247
2246
  }
2248
2247
  if (currentValue instanceof Element2) {
2249
- if (actualSubvalue === null || typeof actualSubvalue === "boolean" || typeof actualSubvalue === "number" || typeof actualSubvalue === "string") {
2248
+ if (toCoalesce === null || typeof toCoalesce === "boolean" || typeof toCoalesce === "number" || typeof toCoalesce === "string") {
2250
2249
  const frag = document.createDocumentFragment();
2251
- frag.append(clone2(currentValue), `${actualSubvalue}`);
2250
+ frag.append(clone2(currentValue), `${toCoalesce}`);
2252
2251
  return frag.childNodes;
2253
2252
  }
2254
- if (actualSubvalue instanceof Text2 || actualSubvalue instanceof Element2) {
2253
+ if (toCoalesce instanceof Text2 || toCoalesce instanceof Element2) {
2255
2254
  const frag = document.createDocumentFragment();
2256
- frag.append(clone2(currentValue), clone2(actualSubvalue));
2255
+ frag.append(clone2(currentValue), clone2(toCoalesce));
2257
2256
  return frag.childNodes;
2258
2257
  }
2259
- if (actualSubvalue instanceof NodeList2) {
2258
+ if (toCoalesce instanceof NodeList2) {
2260
2259
  const frag = document.createDocumentFragment();
2261
- frag.append(clone2(currentValue), ...Array.from(clone2(actualSubvalue)));
2260
+ frag.append(clone2(currentValue), ...Array.from(clone2(toCoalesce)));
2262
2261
  return frag.childNodes;
2263
2262
  }
2264
- return actualSubvalue;
2263
+ return toCoalesce;
2265
2264
  }
2266
2265
  if (currentValue instanceof NodeList2) {
2267
- if (actualSubvalue === null || typeof actualSubvalue === "boolean" || typeof actualSubvalue === "number" || typeof actualSubvalue === "string") {
2266
+ if (toCoalesce === null || typeof toCoalesce === "boolean" || typeof toCoalesce === "number" || typeof toCoalesce === "string") {
2268
2267
  const frag = document.createDocumentFragment();
2269
- frag.append(...Array.from(clone2(currentValue)), `${actualSubvalue}`);
2268
+ frag.append(...Array.from(clone2(currentValue)), `${toCoalesce}`);
2270
2269
  return frag.childNodes;
2271
2270
  }
2272
- if (actualSubvalue instanceof Text2 || actualSubvalue instanceof Element2) {
2271
+ if (toCoalesce instanceof Text2 || toCoalesce instanceof Element2) {
2273
2272
  const frag = document.createDocumentFragment();
2274
- frag.append(...Array.from(clone2(currentValue)), clone2(actualSubvalue));
2273
+ frag.append(...Array.from(clone2(currentValue)), clone2(toCoalesce));
2275
2274
  return frag.childNodes;
2276
2275
  }
2277
- if (actualSubvalue instanceof NodeList2) {
2276
+ if (toCoalesce instanceof NodeList2) {
2278
2277
  const frag = document.createDocumentFragment();
2279
- frag.append(...Array.from(clone2(currentValue)), ...Array.from(clone2(actualSubvalue)));
2278
+ frag.append(...Array.from(clone2(currentValue)), ...Array.from(clone2(toCoalesce)));
2280
2279
  return frag.childNodes;
2281
2280
  }
2282
- return actualSubvalue;
2281
+ return toCoalesce;
2283
2282
  }
2284
2283
  if (typeof subpath === "number") return { ...currentValue };
2285
2284
  return {
2286
2285
  ...currentValue,
2287
- [subpath]: actualSubvalue
2286
+ [subpath]: toCoalesce
2288
2287
  };
2289
2288
  }
2290
2289
  Utils2.coalesceValues = coalesceValues;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  intersectionObserver
3
- } from "./chunk-3DNVFA25.js";
3
+ } from "./chunk-IEZ3O5OF.js";
4
4
  import {
5
5
  clss
6
6
  } from "./chunk-TRFZSKNB.js";
@@ -15,11 +15,7 @@ import {
15
15
  useEffect,
16
16
  useCallback
17
17
  } from "react";
18
-
19
- // src/components/IntersectionObserver/styles.module.css
20
- var styles_default = {};
21
-
22
- // src/components/IntersectionObserver/index.tsx
18
+ import cssModule from "./styles.module.css";
23
19
  import { jsx } from "react/jsx-runtime";
24
20
  var IntersectionObserverComponent = ({
25
21
  onIntersected,
@@ -61,7 +57,7 @@ var IntersectionObserverComponent = ({
61
57
  window.clearTimeout(timeout2);
62
58
  };
63
59
  }, [forceObservation]);
64
- const c = clss(intersectionObserver, { cssModule: styles_default });
60
+ const c = clss(intersectionObserver, { cssModule });
65
61
  const isIntersecting = ioEntry?.isIntersecting ?? false;
66
62
  const rootClss = mergeClassNames(
67
63
  c(null, { "is-intersecting": isIntersecting }),
@@ -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",
@@ -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,
@@ -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
  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";