@design-edito/tools 0.5.9 → 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.
- package/agnostic/arrays/index.d.ts +2 -2
- package/agnostic/arrays/index.js +2 -2
- package/agnostic/colors/index.d.ts +3 -3
- package/agnostic/colors/index.js +3 -3
- package/agnostic/html/hyper-json/smart-tags/coalesced/index.d.ts +19 -19
- package/agnostic/html/hyper-json/smart-tags/coalesced/index.js +19 -19
- package/agnostic/html/hyper-json/smart-tags/isolated/index.d.ts +3 -3
- package/agnostic/html/hyper-json/smart-tags/isolated/index.js +3 -3
- package/agnostic/html/index.d.ts +1 -1
- package/agnostic/html/index.js +1 -1
- package/agnostic/index.d.ts +2 -2
- package/agnostic/index.js +2 -2
- package/agnostic/misc/index.d.ts +1 -1
- package/agnostic/misc/index.js +1 -1
- package/agnostic/misc/logs/index.d.ts +1 -1
- package/agnostic/misc/logs/index.js +1 -1
- package/agnostic/numbers/index.d.ts +1 -1
- package/agnostic/numbers/index.js +1 -1
- package/agnostic/objects/index.d.ts +1 -1
- package/agnostic/objects/index.js +1 -1
- package/agnostic/strings/index.d.ts +1 -1
- package/agnostic/strings/index.js +1 -1
- package/agnostic/subtitles/index.d.ts +1 -1
- package/agnostic/subtitles/index.js +1 -1
- package/agnostic/time/index.d.ts +1 -1
- package/agnostic/time/index.js +1 -1
- package/components/Lightbox/index.d.ts +106 -0
- package/components/Lightbox/index.js +191 -0
- package/components/Lightbox/store.d.ts +43 -0
- package/components/Lightbox/store.js +94 -0
- package/components/index.d.ts +1 -1
- package/components/index.js +1 -1
- package/components/public-classnames.d.ts +1 -1
- package/components/public-classnames.js +1 -1
- package/node/@google-cloud/storage/directory/index.d.ts +1 -1
- package/node/@google-cloud/storage/directory/index.js +1 -1
- package/node/@google-cloud/storage/file/index.d.ts +3 -3
- package/node/@google-cloud/storage/file/index.js +3 -3
- package/node/@google-cloud/storage/index.d.ts +1 -1
- package/node/@google-cloud/storage/index.js +1 -1
- package/node/cloud-storage/operations/index.d.ts +2 -2
- package/node/cloud-storage/operations/index.js +2 -2
- package/node/images/index.d.ts +1 -1
- package/node/images/index.js +1 -1
- package/node/images/transform/operations/index.d.ts +3 -3
- package/node/images/transform/operations/index.js +3 -3
- package/node/index.d.ts +2 -2
- package/node/index.js +2 -2
- package/node/sftp/directory/index.d.ts +1 -1
- package/node/sftp/directory/index.js +1 -1
- package/node/sftp/file/index.d.ts +1 -1
- package/node/sftp/file/index.js +1 -1
- package/package.json +8 -8
- package/components/Theatre/index.d.ts +0 -70
- package/components/Theatre/index.js +0 -85
- /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
2
|
export * as isArrayOf from './is-array-of/index.js'
|
|
4
|
-
export * as make from './make/index.js'
|
|
5
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
6
|
export * as shuffle from './shuffle/index.js'
|
package/agnostic/arrays/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * as dedupe from './dedupe/index.js'
|
|
2
1
|
export * as findDuplicates from './find-duplicates/index.js'
|
|
3
2
|
export * as isArrayOf from './is-array-of/index.js'
|
|
4
|
-
export * as make from './make/index.js'
|
|
5
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
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
6
|
export * as lerp from './lerp/index.js'
|
|
8
7
|
export * as luminance from './luminance/index.js'
|
|
9
|
-
export * as palette from './palette/index.js'
|
|
10
8
|
export * as rotate from './rotate/index.js'
|
|
9
|
+
export * as palette from './palette/index.js'
|
|
11
10
|
export * as tidy from './tidy/index.js'
|
|
12
11
|
export * as typechecks from './typechecks/index.js'
|
|
12
|
+
export * as grayscale from './grayscale/index.js'
|
package/agnostic/colors/index.js
CHANGED
|
@@ -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
6
|
export * as lerp from './lerp/index.js'
|
|
8
7
|
export * as luminance from './luminance/index.js'
|
|
9
|
-
export * as palette from './palette/index.js'
|
|
10
8
|
export * as rotate from './rotate/index.js'
|
|
9
|
+
export * as palette from './palette/index.js'
|
|
11
10
|
export * as tidy from './tidy/index.js'
|
|
12
11
|
export * as typechecks from './typechecks/index.js'
|
|
12
|
+
export * as grayscale from './grayscale/index.js'
|
|
@@ -1,52 +1,52 @@
|
|
|
1
1
|
export * as add from './add/index.js'
|
|
2
|
+
export * as addclass from './addclass/index.js'
|
|
2
3
|
export * as and from './and/index.js'
|
|
3
4
|
export * as append from './append/index.js'
|
|
4
|
-
export * as at from './at/index.js'
|
|
5
5
|
export * as call from './call/index.js'
|
|
6
|
-
export * as
|
|
6
|
+
export * as at from './at/index.js'
|
|
7
7
|
export * as clone from './clone/index.js'
|
|
8
|
-
export * as getattribute from './getattribute/index.js'
|
|
9
8
|
export * as deleteproperties from './deleteproperties/index.js'
|
|
9
|
+
export * as getattribute from './getattribute/index.js'
|
|
10
|
+
export * as equals from './equals/index.js'
|
|
10
11
|
export * as getproperties from './getproperties/index.js'
|
|
11
12
|
export * as getproperty from './getproperty/index.js'
|
|
12
|
-
export * as
|
|
13
|
+
export * as hjparse from './hjparse/index.js'
|
|
14
|
+
export * as if from './if/index.js'
|
|
13
15
|
export * as hjstringify from './hjstringify/index.js'
|
|
14
16
|
export * as initialize from './initialize/index.js'
|
|
15
|
-
export * as if from './if/index.js'
|
|
16
|
-
export * as join from './join/index.js'
|
|
17
|
-
export * as hjparse from './hjparse/index.js'
|
|
18
|
-
export * as map from './map/index.js'
|
|
19
17
|
export * as length from './length/index.js'
|
|
18
|
+
export * as map from './map/index.js'
|
|
19
|
+
export * as join from './join/index.js'
|
|
20
|
+
export * as negate from './negate/index.js'
|
|
21
|
+
export * as notrailing from './notrailing/index.js'
|
|
20
22
|
export * as or from './or/index.js'
|
|
21
23
|
export * as pickrandom from './pickrandom/index.js'
|
|
22
24
|
export * as populate from './populate/index.js'
|
|
23
25
|
export * as print from './print/index.js'
|
|
24
|
-
export * as negate from './negate/index.js'
|
|
25
26
|
export * as pusheach from './pusheach/index.js'
|
|
26
27
|
export * as recordtoarray from './recordtoarray/index.js'
|
|
27
|
-
export * as removeattribute from './removeattribute/index.js'
|
|
28
|
-
export * as notrailing from './notrailing/index.js'
|
|
29
|
-
export * as removeclass from './removeclass/index.js'
|
|
30
28
|
export * as push from './push/index.js'
|
|
29
|
+
export * as removeclass from './removeclass/index.js'
|
|
30
|
+
export * as removeattribute from './removeattribute/index.js'
|
|
31
|
+
export * as renameproperty from './renameproperty/index.js'
|
|
32
|
+
export * as replace from './replace/index.js'
|
|
31
33
|
export * as select from './select/index.js'
|
|
32
34
|
export * as set from './set/index.js'
|
|
33
35
|
export * as setattribute from './setattribute/index.js'
|
|
34
36
|
export * as setproperty from './setproperty/index.js'
|
|
35
|
-
export * as replace from './replace/index.js'
|
|
36
37
|
export * as sorton from './sorton/index.js'
|
|
37
38
|
export * as split from './split/index.js'
|
|
38
|
-
export * as renameproperty from './renameproperty/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
|
-
export * as
|
|
44
|
+
export * as tonull from './tonull/index.js'
|
|
46
45
|
export * as torecord from './torecord/index.js'
|
|
46
|
+
export * as tonumber from './tonumber/index.js'
|
|
47
|
+
export * as toref from './toref/index.js'
|
|
48
|
+
export * as spread from './spread/index.js'
|
|
47
49
|
export * as tostring from './tostring/index.js'
|
|
48
50
|
export * as totext from './totext/index.js'
|
|
49
|
-
export * as toref from './toref/index.js'
|
|
50
|
-
export * as tonull from './tonull/index.js'
|
|
51
51
|
export * as transformselected from './transformselected/index.js'
|
|
52
52
|
export * as trim from './trim/index.js'
|
|
@@ -1,52 +1,52 @@
|
|
|
1
1
|
export * as add from './add/index.js'
|
|
2
|
+
export * as addclass from './addclass/index.js'
|
|
2
3
|
export * as and from './and/index.js'
|
|
3
4
|
export * as append from './append/index.js'
|
|
4
|
-
export * as at from './at/index.js'
|
|
5
5
|
export * as call from './call/index.js'
|
|
6
|
-
export * as
|
|
6
|
+
export * as at from './at/index.js'
|
|
7
7
|
export * as clone from './clone/index.js'
|
|
8
|
-
export * as getattribute from './getattribute/index.js'
|
|
9
8
|
export * as deleteproperties from './deleteproperties/index.js'
|
|
9
|
+
export * as getattribute from './getattribute/index.js'
|
|
10
|
+
export * as equals from './equals/index.js'
|
|
10
11
|
export * as getproperties from './getproperties/index.js'
|
|
11
12
|
export * as getproperty from './getproperty/index.js'
|
|
12
|
-
export * as
|
|
13
|
+
export * as hjparse from './hjparse/index.js'
|
|
14
|
+
export * as if from './if/index.js'
|
|
13
15
|
export * as hjstringify from './hjstringify/index.js'
|
|
14
16
|
export * as initialize from './initialize/index.js'
|
|
15
|
-
export * as if from './if/index.js'
|
|
16
|
-
export * as join from './join/index.js'
|
|
17
|
-
export * as hjparse from './hjparse/index.js'
|
|
18
|
-
export * as map from './map/index.js'
|
|
19
17
|
export * as length from './length/index.js'
|
|
18
|
+
export * as map from './map/index.js'
|
|
19
|
+
export * as join from './join/index.js'
|
|
20
|
+
export * as negate from './negate/index.js'
|
|
21
|
+
export * as notrailing from './notrailing/index.js'
|
|
20
22
|
export * as or from './or/index.js'
|
|
21
23
|
export * as pickrandom from './pickrandom/index.js'
|
|
22
24
|
export * as populate from './populate/index.js'
|
|
23
25
|
export * as print from './print/index.js'
|
|
24
|
-
export * as negate from './negate/index.js'
|
|
25
26
|
export * as pusheach from './pusheach/index.js'
|
|
26
27
|
export * as recordtoarray from './recordtoarray/index.js'
|
|
27
|
-
export * as removeattribute from './removeattribute/index.js'
|
|
28
|
-
export * as notrailing from './notrailing/index.js'
|
|
29
|
-
export * as removeclass from './removeclass/index.js'
|
|
30
28
|
export * as push from './push/index.js'
|
|
29
|
+
export * as removeclass from './removeclass/index.js'
|
|
30
|
+
export * as removeattribute from './removeattribute/index.js'
|
|
31
|
+
export * as renameproperty from './renameproperty/index.js'
|
|
32
|
+
export * as replace from './replace/index.js'
|
|
31
33
|
export * as select from './select/index.js'
|
|
32
34
|
export * as set from './set/index.js'
|
|
33
35
|
export * as setattribute from './setattribute/index.js'
|
|
34
36
|
export * as setproperty from './setproperty/index.js'
|
|
35
|
-
export * as replace from './replace/index.js'
|
|
36
37
|
export * as sorton from './sorton/index.js'
|
|
37
38
|
export * as split from './split/index.js'
|
|
38
|
-
export * as renameproperty from './renameproperty/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
|
-
export * as
|
|
44
|
+
export * as tonull from './tonull/index.js'
|
|
46
45
|
export * as torecord from './torecord/index.js'
|
|
46
|
+
export * as tonumber from './tonumber/index.js'
|
|
47
|
+
export * as toref from './toref/index.js'
|
|
48
|
+
export * as spread from './spread/index.js'
|
|
47
49
|
export * as tostring from './tostring/index.js'
|
|
48
50
|
export * as totext from './totext/index.js'
|
|
49
|
-
export * as toref from './toref/index.js'
|
|
50
|
-
export * as tonull from './tonull/index.js'
|
|
51
51
|
export * as transformselected from './transformselected/index.js'
|
|
52
52
|
export * as trim from './trim/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
7
|
export * as nodelist from './nodelist/index.js'
|
|
8
8
|
export * as null from './null/index.js'
|
|
9
9
|
export * as number from './number/index.js'
|
|
10
|
+
export * as record from './record/index.js'
|
|
11
|
+
export * as string from './string/index.js'
|
|
10
12
|
export * as ref from './ref/index.js'
|
|
11
13
|
export * as text from './text/index.js'
|
|
12
|
-
export * as string from './string/index.js'
|
|
13
|
-
export * as record from './record/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
7
|
export * as nodelist from './nodelist/index.js'
|
|
8
8
|
export * as null from './null/index.js'
|
|
9
9
|
export * as number from './number/index.js'
|
|
10
|
+
export * as record from './record/index.js'
|
|
11
|
+
export * as string from './string/index.js'
|
|
10
12
|
export * as ref from './ref/index.js'
|
|
11
13
|
export * as text from './text/index.js'
|
|
12
|
-
export * as string from './string/index.js'
|
|
13
|
-
export * as record from './record/index.js'
|
package/agnostic/html/index.d.ts
CHANGED
|
@@ -5,6 +5,6 @@ export * as hyperJson from './hyper-json/index.js'
|
|
|
5
5
|
export * as insertNode from './insert-node/index.js'
|
|
6
6
|
export * as placeholders from './placeholders/index.js'
|
|
7
7
|
export * as replaceInElement from './replace-in-element/index.js'
|
|
8
|
-
export * as stringToNodes from './string-to-nodes/index.js'
|
|
9
8
|
export * as selectorToElement from './selector-to-element/index.js'
|
|
9
|
+
export * as stringToNodes from './string-to-nodes/index.js'
|
|
10
10
|
export * as watchSelection from './watch-selection/index.js'
|
package/agnostic/html/index.js
CHANGED
|
@@ -5,6 +5,6 @@ export * as hyperJson from './hyper-json/index.js'
|
|
|
5
5
|
export * as insertNode from './insert-node/index.js'
|
|
6
6
|
export * as placeholders from './placeholders/index.js'
|
|
7
7
|
export * as replaceInElement from './replace-in-element/index.js'
|
|
8
|
-
export * as stringToNodes from './string-to-nodes/index.js'
|
|
9
8
|
export * as selectorToElement from './selector-to-element/index.js'
|
|
9
|
+
export * as stringToNodes from './string-to-nodes/index.js'
|
|
10
10
|
export * as watchSelection from './watch-selection/index.js'
|
package/agnostic/index.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
export * as arrays from './arrays/index.js'
|
|
2
|
-
export * as colors from './colors/index.js'
|
|
3
2
|
export * as booleans from './booleans/index.js'
|
|
3
|
+
export * as colors from './colors/index.js'
|
|
4
4
|
export * as css from './css/index.js'
|
|
5
5
|
export * as errors from './errors/index.js'
|
|
6
6
|
export * as html from './html/index.js'
|
|
7
7
|
export * as misc from './misc/index.js'
|
|
8
8
|
export * as numbers from './numbers/index.js'
|
|
9
9
|
export * as objects from './objects/index.js'
|
|
10
|
-
export * as optim from './optim/index.js'
|
|
11
10
|
export * as random from './random/index.js'
|
|
11
|
+
export * as optim from './optim/index.js'
|
|
12
12
|
export * as regexps from './regexps/index.js'
|
|
13
13
|
export * as sanitization from './sanitization/index.js'
|
|
14
14
|
export * as strings from './strings/index.js'
|
package/agnostic/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
export * as arrays from './arrays/index.js'
|
|
2
|
-
export * as colors from './colors/index.js'
|
|
3
2
|
export * as booleans from './booleans/index.js'
|
|
3
|
+
export * as colors from './colors/index.js'
|
|
4
4
|
export * as css from './css/index.js'
|
|
5
5
|
export * as errors from './errors/index.js'
|
|
6
6
|
export * as html from './html/index.js'
|
|
7
7
|
export * as misc from './misc/index.js'
|
|
8
8
|
export * as numbers from './numbers/index.js'
|
|
9
9
|
export * as objects from './objects/index.js'
|
|
10
|
-
export * as optim from './optim/index.js'
|
|
11
10
|
export * as random from './random/index.js'
|
|
11
|
+
export * as optim from './optim/index.js'
|
|
12
12
|
export * as regexps from './regexps/index.js'
|
|
13
13
|
export * as sanitization from './sanitization/index.js'
|
|
14
14
|
export * as strings from './strings/index.js'
|
package/agnostic/misc/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export * as assert from './assert/index.js'
|
|
2
1
|
export * as cast from './cast/index.js'
|
|
3
2
|
export * as connection from './connection/index.js'
|
|
4
3
|
export * as crawler from './crawler/index.js'
|
|
5
4
|
export * as crossenv from './crossenv/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'
|
package/agnostic/misc/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export * as assert from './assert/index.js'
|
|
2
1
|
export * as cast from './cast/index.js'
|
|
3
2
|
export * as connection from './connection/index.js'
|
|
4
3
|
export * as crawler from './crawler/index.js'
|
|
5
4
|
export * as crossenv from './crossenv/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'
|
|
@@ -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'
|
|
@@ -5,5 +5,5 @@ export * as isObject from './is-object/index.js'
|
|
|
5
5
|
export * as isRecord from './is-record/index.js'
|
|
6
6
|
export * as recordFormat from './record-format/index.js'
|
|
7
7
|
export * as recordMap from './record-map/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'
|
|
@@ -5,5 +5,5 @@ export * as isObject from './is-object/index.js'
|
|
|
5
5
|
export * as isRecord from './is-record/index.js'
|
|
6
6
|
export * as recordFormat from './record-format/index.js'
|
|
7
7
|
export * as recordMap from './record-map/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,8 +1,8 @@
|
|
|
1
1
|
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
|
-
export * as parseTable from './parse-table/index.js'
|
|
5
4
|
export * as replaceAll from './replace-all/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,8 +1,8 @@
|
|
|
1
1
|
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
|
-
export * as parseTable from './parse-table/index.js'
|
|
5
4
|
export * as replaceAll from './replace-all/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'
|
package/agnostic/time/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
export * as duration from './duration/index.js'
|
|
1
2
|
export * as dates from './dates/index.js'
|
|
2
3
|
export * as timeout from './timeout/index.js'
|
|
3
4
|
export * as transitions from './transitions/index.js'
|
|
4
5
|
export * as wait from './wait/index.js'
|
|
5
|
-
export * as duration from './duration/index.js'
|
package/agnostic/time/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
export * as duration from './duration/index.js'
|
|
1
2
|
export * as dates from './dates/index.js'
|
|
2
3
|
export * as timeout from './timeout/index.js'
|
|
3
4
|
export * as transitions from './transitions/index.js'
|
|
4
5
|
export * as wait from './wait/index.js'
|
|
5
|
-
export * as duration from './duration/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>;
|