@design-edito/tools 0.5.8 → 0.5.10

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 (66) hide show
  1. package/agnostic/arrays/index.d.ts +3 -3
  2. package/agnostic/arrays/index.js +3 -3
  3. package/agnostic/colors/index.d.ts +5 -5
  4. package/agnostic/colors/index.js +5 -5
  5. package/agnostic/css/index.d.ts +1 -1
  6. package/agnostic/css/index.js +1 -1
  7. package/agnostic/html/hyper-json/smart-tags/coalesced/index.d.ts +11 -11
  8. package/agnostic/html/hyper-json/smart-tags/coalesced/index.js +11 -11
  9. package/agnostic/html/hyper-json/smart-tags/isolated/index.d.ts +3 -3
  10. package/agnostic/html/hyper-json/smart-tags/isolated/index.js +3 -3
  11. package/agnostic/html/index.d.ts +2 -2
  12. package/agnostic/html/index.js +2 -2
  13. package/agnostic/index.d.ts +4 -4
  14. package/agnostic/index.js +4 -4
  15. package/agnostic/misc/index.d.ts +3 -3
  16. package/agnostic/misc/index.js +3 -3
  17. package/agnostic/numbers/index.d.ts +1 -1
  18. package/agnostic/numbers/index.js +1 -1
  19. package/agnostic/objects/index.d.ts +3 -3
  20. package/agnostic/objects/index.js +3 -3
  21. package/agnostic/strings/index.d.ts +1 -1
  22. package/agnostic/strings/index.js +1 -1
  23. package/agnostic/subtitles/index.d.ts +1 -1
  24. package/agnostic/subtitles/index.js +1 -1
  25. package/agnostic/time/index.d.ts +1 -1
  26. package/agnostic/time/index.js +1 -1
  27. package/components/Lightbox/index.d.ts +106 -0
  28. package/components/Lightbox/index.js +191 -0
  29. package/components/Lightbox/store.d.ts +43 -0
  30. package/components/Lightbox/store.js +94 -0
  31. package/components/Paginator/index.d.ts +7 -2
  32. package/components/Paginator/index.js +43 -6
  33. package/components/Video/index.controlled.d.ts +7 -2
  34. package/components/Video/index.controlled.js +22 -6
  35. package/components/Video/index.d.ts +5 -3
  36. package/components/Video/index.js +14 -4
  37. package/components/Video/utils.d.ts +11 -0
  38. package/components/Video/utils.js +14 -5
  39. package/components/index.d.ts +6 -6
  40. package/components/index.js +6 -6
  41. package/components/public-classnames.d.ts +1 -1
  42. package/components/public-classnames.js +1 -1
  43. package/index.d.ts +1 -1
  44. package/index.js +1 -1
  45. package/node/@aws-s3/storage/file/index.d.ts +1 -1
  46. package/node/@aws-s3/storage/file/index.js +1 -1
  47. package/node/@google-cloud/storage/directory/index.d.ts +2 -2
  48. package/node/@google-cloud/storage/directory/index.js +2 -2
  49. package/node/@google-cloud/storage/file/index.d.ts +2 -2
  50. package/node/@google-cloud/storage/file/index.js +2 -2
  51. package/node/@google-cloud/storage/index.d.ts +1 -1
  52. package/node/@google-cloud/storage/index.js +1 -1
  53. package/node/cloud-storage/operations/index.d.ts +1 -1
  54. package/node/cloud-storage/operations/index.js +1 -1
  55. package/node/images/index.d.ts +2 -2
  56. package/node/images/index.js +2 -2
  57. package/node/images/transform/operations/index.d.ts +6 -6
  58. package/node/images/transform/operations/index.js +6 -6
  59. package/node/sftp/directory/index.d.ts +1 -1
  60. package/node/sftp/directory/index.js +1 -1
  61. package/node/sftp/file/index.d.ts +1 -1
  62. package/node/sftp/file/index.js +1 -1
  63. package/package.json +8 -8
  64. package/components/Theatre/index.d.ts +0 -70
  65. package/components/Theatre/index.js +0 -85
  66. /package/components/{Theatre → Lightbox}/styles.module.css +0 -0
@@ -1,6 +1,6 @@
1
- export * as dedupe from './dedupe/index.js'
2
1
  export * as findDuplicates from './find-duplicates/index.js'
3
- export * as make from './make/index.js'
4
2
  export * as isArrayOf from './is-array-of/index.js'
5
- export * as shuffle from './shuffle/index.js'
6
3
  export * as randomPick from './random-pick/index.js'
4
+ export * as make from './make/index.js'
5
+ export * as dedupe from './dedupe/index.js'
6
+ export * as shuffle from './shuffle/index.js'
@@ -1,6 +1,6 @@
1
- export * as dedupe from './dedupe/index.js'
2
1
  export * as findDuplicates from './find-duplicates/index.js'
3
- export * as make from './make/index.js'
4
2
  export * as isArrayOf from './is-array-of/index.js'
5
- export * as shuffle from './shuffle/index.js'
6
3
  export * as randomPick from './random-pick/index.js'
4
+ export * as make from './make/index.js'
5
+ export * as dedupe from './dedupe/index.js'
6
+ export * as shuffle from './shuffle/index.js'
@@ -1,12 +1,12 @@
1
- export * as channels from './channels/index.js'
2
1
  export * as contrast from './contrast/index.js'
3
2
  export * as convert from './convert/index.js'
3
+ export * as channels from './channels/index.js'
4
4
  export * as distance from './distance/index.js'
5
- export * as grayscale from './grayscale/index.js'
6
5
  export * as invert from './invert/index.js'
7
- export * as palette from './palette/index.js'
8
6
  export * as lerp from './lerp/index.js'
9
- export * as tidy from './tidy/index.js'
7
+ export * as luminance from './luminance/index.js'
10
8
  export * as rotate from './rotate/index.js'
9
+ export * as palette from './palette/index.js'
10
+ export * as tidy from './tidy/index.js'
11
11
  export * as typechecks from './typechecks/index.js'
12
- export * as luminance from './luminance/index.js'
12
+ export * as grayscale from './grayscale/index.js'
@@ -1,12 +1,12 @@
1
- export * as channels from './channels/index.js'
2
1
  export * as contrast from './contrast/index.js'
3
2
  export * as convert from './convert/index.js'
3
+ export * as channels from './channels/index.js'
4
4
  export * as distance from './distance/index.js'
5
- export * as grayscale from './grayscale/index.js'
6
5
  export * as invert from './invert/index.js'
7
- export * as palette from './palette/index.js'
8
6
  export * as lerp from './lerp/index.js'
9
- export * as tidy from './tidy/index.js'
7
+ export * as luminance from './luminance/index.js'
10
8
  export * as rotate from './rotate/index.js'
9
+ export * as palette from './palette/index.js'
10
+ export * as tidy from './tidy/index.js'
11
11
  export * as typechecks from './typechecks/index.js'
12
- export * as luminance from './luminance/index.js'
12
+ export * as grayscale from './grayscale/index.js'
@@ -1,6 +1,6 @@
1
1
  export * as bem from './bem/index.js'
2
+ export * as clss from './clss/index.js'
2
3
  export * as generateNiceColor from './generate-nice-color/index.js'
3
4
  export * as isValidCssClassName from './is-valid-css-class-name/index.js'
4
- export * as clss from './clss/index.js'
5
5
  export * as scale from './scale/index.js'
6
6
  export * as stylesSet from './styles-set/index.js'
@@ -1,6 +1,6 @@
1
1
  export * as bem from './bem/index.js'
2
+ export * as clss from './clss/index.js'
2
3
  export * as generateNiceColor from './generate-nice-color/index.js'
3
4
  export * as isValidCssClassName from './is-valid-css-class-name/index.js'
4
- export * as clss from './clss/index.js'
5
5
  export * as scale from './scale/index.js'
6
6
  export * as stylesSet from './styles-set/index.js'
@@ -1,51 +1,51 @@
1
1
  export * as add from './add/index.js'
2
2
  export * as addclass from './addclass/index.js'
3
3
  export * as and from './and/index.js'
4
- export * as at from './at/index.js'
5
4
  export * as append from './append/index.js'
6
5
  export * as call from './call/index.js'
7
- export * as deleteproperties from './deleteproperties/index.js'
6
+ export * as at from './at/index.js'
8
7
  export * as clone from './clone/index.js'
9
- export * as equals from './equals/index.js'
8
+ export * as deleteproperties from './deleteproperties/index.js'
10
9
  export * as getattribute from './getattribute/index.js'
10
+ export * as equals from './equals/index.js'
11
11
  export * as getproperties from './getproperties/index.js'
12
- export * as hjparse from './hjparse/index.js'
13
12
  export * as getproperty from './getproperty/index.js'
14
- export * as hjstringify from './hjstringify/index.js'
13
+ export * as hjparse from './hjparse/index.js'
15
14
  export * as if from './if/index.js'
15
+ export * as hjstringify from './hjstringify/index.js'
16
16
  export * as initialize from './initialize/index.js'
17
17
  export * as length from './length/index.js'
18
18
  export * as map from './map/index.js'
19
+ export * as join from './join/index.js'
19
20
  export * as negate from './negate/index.js'
20
21
  export * as notrailing from './notrailing/index.js'
21
22
  export * as or from './or/index.js'
22
23
  export * as pickrandom from './pickrandom/index.js'
23
24
  export * as populate from './populate/index.js'
24
- export * as join from './join/index.js'
25
25
  export * as print from './print/index.js'
26
26
  export * as pusheach from './pusheach/index.js'
27
27
  export * as recordtoarray from './recordtoarray/index.js'
28
28
  export * as push from './push/index.js'
29
- export * as removeattribute from './removeattribute/index.js'
30
29
  export * as removeclass from './removeclass/index.js'
30
+ export * as removeattribute from './removeattribute/index.js'
31
31
  export * as renameproperty from './renameproperty/index.js'
32
32
  export * as replace from './replace/index.js'
33
33
  export * as select from './select/index.js'
34
- export * as setattribute from './setattribute/index.js'
35
34
  export * as set from './set/index.js'
35
+ export * as setattribute from './setattribute/index.js'
36
36
  export * as setproperty from './setproperty/index.js'
37
37
  export * as sorton from './sorton/index.js'
38
38
  export * as split from './split/index.js'
39
- export * as spread from './spread/index.js'
40
39
  export * as toarray from './toarray/index.js'
41
- export * as toboolean from './toboolean/index.js'
42
40
  export * as toelement from './toelement/index.js'
41
+ export * as toboolean from './toboolean/index.js'
43
42
  export * as toggleclass from './toggleclass/index.js'
44
43
  export * as tonodelist from './tonodelist/index.js'
45
44
  export * as tonull from './tonull/index.js'
46
- export * as tonumber from './tonumber/index.js'
47
45
  export * as torecord from './torecord/index.js'
46
+ export * as tonumber from './tonumber/index.js'
48
47
  export * as toref from './toref/index.js'
48
+ export * as spread from './spread/index.js'
49
49
  export * as tostring from './tostring/index.js'
50
50
  export * as totext from './totext/index.js'
51
51
  export * as transformselected from './transformselected/index.js'
@@ -1,51 +1,51 @@
1
1
  export * as add from './add/index.js'
2
2
  export * as addclass from './addclass/index.js'
3
3
  export * as and from './and/index.js'
4
- export * as at from './at/index.js'
5
4
  export * as append from './append/index.js'
6
5
  export * as call from './call/index.js'
7
- export * as deleteproperties from './deleteproperties/index.js'
6
+ export * as at from './at/index.js'
8
7
  export * as clone from './clone/index.js'
9
- export * as equals from './equals/index.js'
8
+ export * as deleteproperties from './deleteproperties/index.js'
10
9
  export * as getattribute from './getattribute/index.js'
10
+ export * as equals from './equals/index.js'
11
11
  export * as getproperties from './getproperties/index.js'
12
- export * as hjparse from './hjparse/index.js'
13
12
  export * as getproperty from './getproperty/index.js'
14
- export * as hjstringify from './hjstringify/index.js'
13
+ export * as hjparse from './hjparse/index.js'
15
14
  export * as if from './if/index.js'
15
+ export * as hjstringify from './hjstringify/index.js'
16
16
  export * as initialize from './initialize/index.js'
17
17
  export * as length from './length/index.js'
18
18
  export * as map from './map/index.js'
19
+ export * as join from './join/index.js'
19
20
  export * as negate from './negate/index.js'
20
21
  export * as notrailing from './notrailing/index.js'
21
22
  export * as or from './or/index.js'
22
23
  export * as pickrandom from './pickrandom/index.js'
23
24
  export * as populate from './populate/index.js'
24
- export * as join from './join/index.js'
25
25
  export * as print from './print/index.js'
26
26
  export * as pusheach from './pusheach/index.js'
27
27
  export * as recordtoarray from './recordtoarray/index.js'
28
28
  export * as push from './push/index.js'
29
- export * as removeattribute from './removeattribute/index.js'
30
29
  export * as removeclass from './removeclass/index.js'
30
+ export * as removeattribute from './removeattribute/index.js'
31
31
  export * as renameproperty from './renameproperty/index.js'
32
32
  export * as replace from './replace/index.js'
33
33
  export * as select from './select/index.js'
34
- export * as setattribute from './setattribute/index.js'
35
34
  export * as set from './set/index.js'
35
+ export * as setattribute from './setattribute/index.js'
36
36
  export * as setproperty from './setproperty/index.js'
37
37
  export * as sorton from './sorton/index.js'
38
38
  export * as split from './split/index.js'
39
- export * as spread from './spread/index.js'
40
39
  export * as toarray from './toarray/index.js'
41
- export * as toboolean from './toboolean/index.js'
42
40
  export * as toelement from './toelement/index.js'
41
+ export * as toboolean from './toboolean/index.js'
43
42
  export * as toggleclass from './toggleclass/index.js'
44
43
  export * as tonodelist from './tonodelist/index.js'
45
44
  export * as tonull from './tonull/index.js'
46
- export * as tonumber from './tonumber/index.js'
47
45
  export * as torecord from './torecord/index.js'
46
+ export * as tonumber from './tonumber/index.js'
48
47
  export * as toref from './toref/index.js'
48
+ export * as spread from './spread/index.js'
49
49
  export * as tostring from './tostring/index.js'
50
50
  export * as totext from './totext/index.js'
51
51
  export * as transformselected from './transformselected/index.js'
@@ -1,13 +1,13 @@
1
1
  export * as any from './any/index.js'
2
- export * as array from './array/index.js'
3
2
  export * as boolean from './boolean/index.js'
3
+ export * as array from './array/index.js'
4
4
  export * as element from './element/index.js'
5
5
  export * as get from './get/index.js'
6
6
  export * as guess from './guess/index.js'
7
- export * as null from './null/index.js'
8
7
  export * as nodelist from './nodelist/index.js'
8
+ export * as null from './null/index.js'
9
9
  export * as number from './number/index.js'
10
- export * as ref from './ref/index.js'
11
10
  export * as record from './record/index.js'
12
11
  export * as string from './string/index.js'
12
+ export * as ref from './ref/index.js'
13
13
  export * as text from './text/index.js'
@@ -1,13 +1,13 @@
1
1
  export * as any from './any/index.js'
2
- export * as array from './array/index.js'
3
2
  export * as boolean from './boolean/index.js'
3
+ export * as array from './array/index.js'
4
4
  export * as element from './element/index.js'
5
5
  export * as get from './get/index.js'
6
6
  export * as guess from './guess/index.js'
7
- export * as null from './null/index.js'
8
7
  export * as nodelist from './nodelist/index.js'
8
+ export * as null from './null/index.js'
9
9
  export * as number from './number/index.js'
10
- export * as ref from './ref/index.js'
11
10
  export * as record from './record/index.js'
12
11
  export * as string from './string/index.js'
12
+ export * as ref from './ref/index.js'
13
13
  export * as text from './text/index.js'
@@ -1,10 +1,10 @@
1
1
  export * as deepSelect from './deep-select/index.js'
2
+ export * as getNodeAncestors from './get-node-ancestors/index.js'
2
3
  export * as getPositionInsideParent from './get-position-inside-parent/index.js'
3
4
  export * as hyperJson from './hyper-json/index.js'
4
5
  export * as insertNode from './insert-node/index.js'
5
- export * as getNodeAncestors from './get-node-ancestors/index.js'
6
6
  export * as placeholders from './placeholders/index.js'
7
7
  export * as replaceInElement from './replace-in-element/index.js'
8
8
  export * as selectorToElement from './selector-to-element/index.js'
9
- export * as watchSelection from './watch-selection/index.js'
10
9
  export * as stringToNodes from './string-to-nodes/index.js'
10
+ export * as watchSelection from './watch-selection/index.js'
@@ -1,10 +1,10 @@
1
1
  export * as deepSelect from './deep-select/index.js'
2
+ export * as getNodeAncestors from './get-node-ancestors/index.js'
2
3
  export * as getPositionInsideParent from './get-position-inside-parent/index.js'
3
4
  export * as hyperJson from './hyper-json/index.js'
4
5
  export * as insertNode from './insert-node/index.js'
5
- export * as getNodeAncestors from './get-node-ancestors/index.js'
6
6
  export * as placeholders from './placeholders/index.js'
7
7
  export * as replaceInElement from './replace-in-element/index.js'
8
8
  export * as selectorToElement from './selector-to-element/index.js'
9
- export * as watchSelection from './watch-selection/index.js'
10
9
  export * as stringToNodes from './string-to-nodes/index.js'
10
+ export * as watchSelection from './watch-selection/index.js'
@@ -1,17 +1,17 @@
1
1
  export * as arrays from './arrays/index.js'
2
2
  export * as booleans from './booleans/index.js'
3
+ export * as colors from './colors/index.js'
3
4
  export * as css from './css/index.js'
4
5
  export * as errors from './errors/index.js'
5
6
  export * as html from './html/index.js'
6
- export * as numbers from './numbers/index.js'
7
7
  export * as misc from './misc/index.js'
8
+ export * as numbers from './numbers/index.js'
8
9
  export * as objects from './objects/index.js'
9
- export * as colors from './colors/index.js'
10
+ export * as random from './random/index.js'
10
11
  export * as optim from './optim/index.js'
11
12
  export * as regexps from './regexps/index.js'
12
- export * as random from './random/index.js'
13
13
  export * as sanitization from './sanitization/index.js'
14
14
  export * as strings from './strings/index.js'
15
15
  export * as subtitles from './subtitles/index.js'
16
- export * as typescript from './typescript/index.js'
17
16
  export * as time from './time/index.js'
17
+ export * as typescript from './typescript/index.js'
package/agnostic/index.js CHANGED
@@ -1,17 +1,17 @@
1
1
  export * as arrays from './arrays/index.js'
2
2
  export * as booleans from './booleans/index.js'
3
+ export * as colors from './colors/index.js'
3
4
  export * as css from './css/index.js'
4
5
  export * as errors from './errors/index.js'
5
6
  export * as html from './html/index.js'
6
- export * as numbers from './numbers/index.js'
7
7
  export * as misc from './misc/index.js'
8
+ export * as numbers from './numbers/index.js'
8
9
  export * as objects from './objects/index.js'
9
- export * as colors from './colors/index.js'
10
+ export * as random from './random/index.js'
10
11
  export * as optim from './optim/index.js'
11
12
  export * as regexps from './regexps/index.js'
12
- export * as random from './random/index.js'
13
13
  export * as sanitization from './sanitization/index.js'
14
14
  export * as strings from './strings/index.js'
15
15
  export * as subtitles from './subtitles/index.js'
16
- export * as typescript from './typescript/index.js'
17
16
  export * as time from './time/index.js'
17
+ export * as typescript from './typescript/index.js'
@@ -1,12 +1,12 @@
1
- export * as assert from './assert/index.js'
2
1
  export * as cast from './cast/index.js'
2
+ export * as connection from './connection/index.js'
3
3
  export * as crawler from './crawler/index.js'
4
4
  export * as crossenv from './crossenv/index.js'
5
- export * as connection from './connection/index.js'
6
5
  export * as dataSize from './data-size/index.js'
7
6
  export * as isConstructorFunction from './is-constructor-function/index.js'
7
+ export * as assert from './assert/index.js'
8
8
  export * as isNullish from './is-nullish/index.js'
9
9
  export * as logs from './logs/index.js'
10
10
  export * as loremIpsum from './lorem-ipsum/index.js'
11
- export * as outcome from './outcome/index.js'
12
11
  export * as normalizeExtension from './normalize-extension/index.js'
12
+ export * as outcome from './outcome/index.js'
@@ -1,12 +1,12 @@
1
- export * as assert from './assert/index.js'
2
1
  export * as cast from './cast/index.js'
2
+ export * as connection from './connection/index.js'
3
3
  export * as crawler from './crawler/index.js'
4
4
  export * as crossenv from './crossenv/index.js'
5
- export * as connection from './connection/index.js'
6
5
  export * as dataSize from './data-size/index.js'
7
6
  export * as isConstructorFunction from './is-constructor-function/index.js'
7
+ export * as assert from './assert/index.js'
8
8
  export * as isNullish from './is-nullish/index.js'
9
9
  export * as logs from './logs/index.js'
10
10
  export * as loremIpsum from './lorem-ipsum/index.js'
11
- export * as outcome from './outcome/index.js'
12
11
  export * as normalizeExtension from './normalize-extension/index.js'
12
+ export * as outcome from './outcome/index.js'
@@ -1,6 +1,6 @@
1
1
  export * as absoluteModulo from './absolute-modulo/index.js'
2
2
  export * as approximateRational from './approximate-rational/index.js'
3
3
  export * as clamp from './clamp/index.js'
4
- export * as geometricProgressions from './geometric-progressions/index.js'
5
4
  export * as interpolate from './interpolate/index.js'
6
5
  export * as round from './round/index.js'
6
+ export * as geometricProgressions from './geometric-progressions/index.js'
@@ -1,6 +1,6 @@
1
1
  export * as absoluteModulo from './absolute-modulo/index.js'
2
2
  export * as approximateRational from './approximate-rational/index.js'
3
3
  export * as clamp from './clamp/index.js'
4
- export * as geometricProgressions from './geometric-progressions/index.js'
5
4
  export * as interpolate from './interpolate/index.js'
6
5
  export * as round from './round/index.js'
6
+ export * as geometricProgressions from './geometric-progressions/index.js'
@@ -1,9 +1,9 @@
1
1
  export * as deepGetProperty from './deep-get-property/index.js'
2
+ export * as enums from './enums/index.js'
2
3
  export * as flattenGetters from './flatten-getters/index.js'
3
4
  export * as isObject from './is-object/index.js'
4
- export * as recordFormat from './record-format/index.js'
5
5
  export * as isRecord from './is-record/index.js'
6
+ export * as recordFormat from './record-format/index.js'
6
7
  export * as recordMap from './record-map/index.js'
7
- export * as enums from './enums/index.js'
8
- export * as sortKeys from './sort-keys/index.js'
9
8
  export * as validation from './validation/index.js'
9
+ export * as sortKeys from './sort-keys/index.js'
@@ -1,9 +1,9 @@
1
1
  export * as deepGetProperty from './deep-get-property/index.js'
2
+ export * as enums from './enums/index.js'
2
3
  export * as flattenGetters from './flatten-getters/index.js'
3
4
  export * as isObject from './is-object/index.js'
4
- export * as recordFormat from './record-format/index.js'
5
5
  export * as isRecord from './is-record/index.js'
6
+ export * as recordFormat from './record-format/index.js'
6
7
  export * as recordMap from './record-map/index.js'
7
- export * as enums from './enums/index.js'
8
- export * as sortKeys from './sort-keys/index.js'
9
8
  export * as validation from './validation/index.js'
9
+ export * as sortKeys from './sort-keys/index.js'
@@ -2,7 +2,7 @@ export * as charCodes from './char-codes/index.js'
2
2
  export * as matches from './matches/index.js'
3
3
  export * as normalizeIndent from './normalize-indent/index.js'
4
4
  export * as replaceAll from './replace-all/index.js'
5
- export * as parseTable from './parse-table/index.js'
6
5
  export * as splitTrim from './split-trim/index.js'
7
6
  export * as toAlphanum from './to-alphanum/index.js'
8
7
  export * as trim from './trim/index.js'
8
+ export * as parseTable from './parse-table/index.js'
@@ -2,7 +2,7 @@ export * as charCodes from './char-codes/index.js'
2
2
  export * as matches from './matches/index.js'
3
3
  export * as normalizeIndent from './normalize-indent/index.js'
4
4
  export * as replaceAll from './replace-all/index.js'
5
- export * as parseTable from './parse-table/index.js'
6
5
  export * as splitTrim from './split-trim/index.js'
7
6
  export * as toAlphanum from './to-alphanum/index.js'
8
7
  export * as trim from './trim/index.js'
8
+ export * as parseTable from './parse-table/index.js'
@@ -1,2 +1,2 @@
1
- export * as parseSrt from './parse-srt/index.js'
2
1
  export * as srtTimecodeToMs from './srt-timecode-to-ms/index.js'
2
+ export * as parseSrt from './parse-srt/index.js'
@@ -1,2 +1,2 @@
1
- export * as parseSrt from './parse-srt/index.js'
2
1
  export * as srtTimecodeToMs from './srt-timecode-to-ms/index.js'
2
+ export * as parseSrt from './parse-srt/index.js'
@@ -1,5 +1,5 @@
1
- export * as dates from './dates/index.js'
2
1
  export * as duration from './duration/index.js'
2
+ export * as dates from './dates/index.js'
3
3
  export * as timeout from './timeout/index.js'
4
4
  export * as transitions from './transitions/index.js'
5
5
  export * as wait from './wait/index.js'
@@ -1,5 +1,5 @@
1
- export * as dates from './dates/index.js'
2
1
  export * as duration from './duration/index.js'
2
+ export * as dates from './dates/index.js'
3
3
  export * as timeout from './timeout/index.js'
4
4
  export * as transitions from './transitions/index.js'
5
5
  export * as wait from './wait/index.js'
@@ -0,0 +1,106 @@
1
+ import { type FunctionComponent, type PropsWithChildren, type ReactNode } from 'react';
2
+ import type { WithClassName } from '../utils/types.js';
3
+ /**
4
+ * Props for the {@link Lightbox} component.
5
+ *
6
+ * @property group - The group(s) this lightbox belongs to. Members of a group share
7
+ * one lightbox and are navigable from it, in document order. The **first** group is the
8
+ * one a click on this member opens; the others only matter when another member opens
9
+ * them. Declaring none makes it a group of its own.
10
+ * @property closeBtnContent - Content rendered inside the close button.
11
+ * @property openBtnContent - Content rendered inside the open button.
12
+ * @property prevBtnContent - Content rendered inside the previous button, shown only
13
+ * when the open group holds more than one member.
14
+ * @property nextBtnContent - Content rendered inside the next button, same condition.
15
+ * @property isOn - Controlled state. When defined, this member is driven by the
16
+ * parent and the shared registry never opens or closes it.
17
+ * @property defaultIsOn - Whether the lightbox starts open, in uncontrolled mode.
18
+ * Ignored when `isOn` is provided. Defaults to `false`.
19
+ * @property exitOnEscape - When `true`, pressing `Escape` closes the lightbox.
20
+ * @property navOnArrowKeys - When `true`, the left and right arrow keys move through
21
+ * the open group. Only has an effect on a group of more than one member.
22
+ * @property exitOnBgClick - When `true`, clicking the backdrop, and not its
23
+ * content, closes it.
24
+ * @property onOpenButtonClicked - Called when the open button is clicked, before the
25
+ * lightbox reacts, with the state as it was.
26
+ * @property onCloseButtonClicked - Same, for the close button.
27
+ * @property onPrevButtonClicked - Same, for the previous button.
28
+ * @property onNextButtonClicked - Same, for the next button.
29
+ * @property onBackgroundClicked - Called when the backdrop is clicked (only
30
+ * while `exitOnBgClick` is `true`), before the lightbox reacts.
31
+ * @property onEscapePressed - Called when `Escape` is pressed while the lightbox is open
32
+ * (only while `exitOnEscape` is `true`), before the lightbox reacts.
33
+ * @property onPrevArrowPressed - Called when the left arrow is pressed while the lightbox
34
+ * is open (only while `navOnArrowKeys` is `true`), before the lightbox reacts.
35
+ * @property onNextArrowPressed - Same, for the right arrow.
36
+ * @property onIsOnChanged - Called after this member's state changed, with the new
37
+ * value.
38
+ * @property className - Optional additional class name(s) applied to the root element.
39
+ * @property children - The content, rendered in place while closed and moved onto the
40
+ * inside the lightbox while open.
41
+ */
42
+ export type Props = PropsWithChildren<WithClassName<{
43
+ group?: string | string[];
44
+ closeBtnContent?: ReactNode;
45
+ openBtnContent?: ReactNode;
46
+ prevBtnContent?: ReactNode;
47
+ nextBtnContent?: ReactNode;
48
+ isOn?: boolean;
49
+ defaultIsOn?: boolean;
50
+ exitOnEscape?: boolean;
51
+ exitOnBgClick?: boolean;
52
+ navOnArrowKeys?: boolean;
53
+ onOpenButtonClicked?: (isOn: boolean) => void;
54
+ onCloseButtonClicked?: (isOn: boolean) => void;
55
+ onPrevButtonClicked?: (isOn: boolean) => void;
56
+ onNextButtonClicked?: (isOn: boolean) => void;
57
+ onBackgroundClicked?: (isOn: boolean) => void;
58
+ onEscapePressed?: (isOn: boolean) => void;
59
+ onPrevArrowPressed?: (isOn: boolean) => void;
60
+ onNextArrowPressed?: (isOn: boolean) => void;
61
+ onIsOnChanged?: (isOn: boolean) => void;
62
+ }>>;
63
+ /**
64
+ * Lightbox component. Holds content in place until opened, then moves it into an
65
+ * overlay covering the page.
66
+ *
67
+ * ### CSS modifiers
68
+ * - `on` - this member is open.
69
+ * - `off` - it is not.
70
+ * - `grouped` - it belongs to a group it did not invent, so navigation is possible.
71
+ *
72
+ * ### CSS elements
73
+ * - `placeholder` - holds the content's last measured size while it is away.
74
+ * - `backdrop` - the overlay, portalled to `document.body`, mounted only while open.
75
+ * - `content` - wraps the moved content inside the lightbox.
76
+ * - `open-btn`, `close-btn`, `prev-btn`, `next-btn`
77
+ *
78
+ * @param props - Component properties.
79
+ * @see {@link Props}
80
+ * @returns A root `<div>` holding the content or its placeholder, plus, while open, a
81
+ * lightbox portalled to the end of `document.body`.
82
+ *
83
+ * @remarks
84
+ * - **[WIP]** Moving a `<video>` keeps it playing on desktop browsers; iOS has been
85
+ * known to pause on a DOM move. Not worth guarding against for now.
86
+ * - **The content is moved, not copied.** A portal relocates the DOM node without
87
+ * changing the element's place in the React tree, so the instance is never
88
+ * unmounted: a playing video keeps playing, at its timecode, and lands back where it
89
+ * was on close. Rendering `children` twice would mount a second, fresh instance and
90
+ * leave the first one running behind the lightbox.
91
+ * - **The lightbox is portalled to `document.body`.** A `position: fixed` overlay left in
92
+ * the article would be trapped by the first ancestor carrying a `transform`, a
93
+ * `filter` or a `contain`, which becomes its containing block.
94
+ * - **A placeholder keeps the layout still.** Its size is the content's last measured
95
+ * one, read while closed; without it the article would collapse around the hole the
96
+ * content leaves.
97
+ * - **Groups are held outside React**, in `./store.ts`: a consumer may render each
98
+ * component in a root of its own, in which case members of a group share no tree
99
+ * and a context could not reach from one to the other.
100
+ * - The lightbox is rendered by whichever member is on it, so navigating hands it over.
101
+ * None of the content is remounted in the process.
102
+ * - This component ships **no appearance**: covering the page, the backdrop and the
103
+ * buttons are the consumer stylesheet's business. Without one, the content is moved
104
+ * to the end of the document and nothing looks like a lightbox.
105
+ */
106
+ export declare const Lightbox: FunctionComponent<Props>;