@design-edito/tools 0.5.9 → 0.5.11
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/colors/index.d.ts +1 -1
- package/agnostic/colors/index.js +1 -1
- package/agnostic/css/index.d.ts +1 -1
- package/agnostic/css/index.js +1 -1
- package/agnostic/errors/index.d.ts +1 -1
- package/agnostic/errors/index.js +1 -1
- package/agnostic/html/hyper-json/smart-tags/coalesced/index.d.ts +15 -15
- package/agnostic/html/hyper-json/smart-tags/coalesced/index.js +15 -15
- 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 +2 -2
- package/agnostic/html/index.js +2 -2
- package/agnostic/index.d.ts +3 -3
- package/agnostic/index.js +3 -3
- package/agnostic/misc/index.d.ts +3 -3
- package/agnostic/misc/index.js +3 -3
- 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/optim/index.d.ts +1 -1
- package/agnostic/optim/index.js +1 -1
- package/agnostic/strings/index.d.ts +1 -1
- package/agnostic/strings/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 +109 -0
- package/components/Lightbox/index.js +193 -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/cloud-storage/operations/index.d.ts +1 -1
- package/node/cloud-storage/operations/index.js +1 -1
- package/node/ftps/directory/index.d.ts +1 -1
- package/node/ftps/directory/index.js +1 -1
- package/node/images/transform/operations/index.d.ts +2 -2
- package/node/images/transform/operations/index.js +2 -2
- package/node/index.d.ts +3 -3
- package/node/index.js +3 -3
- package/node/sftp/index.d.ts +1 -1
- package/node/sftp/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
1
|
export * as channels from './channels/index.js'
|
|
2
|
-
export * as contrast from './contrast/index.js'
|
|
3
2
|
export * as convert from './convert/index.js'
|
|
3
|
+
export * as contrast from './contrast/index.js'
|
|
4
4
|
export * as distance from './distance/index.js'
|
|
5
5
|
export * as grayscale from './grayscale/index.js'
|
|
6
6
|
export * as invert from './invert/index.js'
|
package/agnostic/colors/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * as channels from './channels/index.js'
|
|
2
|
-
export * as contrast from './contrast/index.js'
|
|
3
2
|
export * as convert from './convert/index.js'
|
|
3
|
+
export * as contrast from './contrast/index.js'
|
|
4
4
|
export * as distance from './distance/index.js'
|
|
5
5
|
export * as grayscale from './grayscale/index.js'
|
|
6
6
|
export * as invert from './invert/index.js'
|
package/agnostic/css/index.d.ts
CHANGED
|
@@ -2,5 +2,5 @@ export * as bem from './bem/index.js'
|
|
|
2
2
|
export * as clss from './clss/index.js'
|
|
3
3
|
export * as generateNiceColor from './generate-nice-color/index.js'
|
|
4
4
|
export * as isValidCssClassName from './is-valid-css-class-name/index.js'
|
|
5
|
-
export * as scale from './scale/index.js'
|
|
6
5
|
export * as stylesSet from './styles-set/index.js'
|
|
6
|
+
export * as scale from './scale/index.js'
|
package/agnostic/css/index.js
CHANGED
|
@@ -2,5 +2,5 @@ export * as bem from './bem/index.js'
|
|
|
2
2
|
export * as clss from './clss/index.js'
|
|
3
3
|
export * as generateNiceColor from './generate-nice-color/index.js'
|
|
4
4
|
export * as isValidCssClassName from './is-valid-css-class-name/index.js'
|
|
5
|
-
export * as scale from './scale/index.js'
|
|
6
5
|
export * as stylesSet from './styles-set/index.js'
|
|
6
|
+
export * as scale from './scale/index.js'
|
package/agnostic/errors/index.js
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
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
5
|
export * as at from './at/index.js'
|
|
5
|
-
export * as call from './call/index.js'
|
|
6
|
-
export * as addclass from './addclass/index.js'
|
|
7
6
|
export * as clone from './clone/index.js'
|
|
8
|
-
export * as
|
|
7
|
+
export * as call from './call/index.js'
|
|
9
8
|
export * as deleteproperties from './deleteproperties/index.js'
|
|
9
|
+
export * as equals from './equals/index.js'
|
|
10
|
+
export * as getattribute from './getattribute/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
17
|
export * as join from './join/index.js'
|
|
17
|
-
export * as hjparse from './hjparse/index.js'
|
|
18
|
-
export * as map from './map/index.js'
|
|
19
18
|
export * as length from './length/index.js'
|
|
19
|
+
export * as map from './map/index.js'
|
|
20
|
+
export * as negate from './negate/index.js'
|
|
20
21
|
export * as or from './or/index.js'
|
|
22
|
+
export * as notrailing from './notrailing/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
|
|
26
|
+
export * as push from './push/index.js'
|
|
25
27
|
export * as pusheach from './pusheach/index.js'
|
|
26
28
|
export * as recordtoarray from './recordtoarray/index.js'
|
|
27
29
|
export * as removeattribute from './removeattribute/index.js'
|
|
28
|
-
export * as notrailing from './notrailing/index.js'
|
|
29
30
|
export * as removeclass from './removeclass/index.js'
|
|
30
|
-
export * as
|
|
31
|
-
export * as
|
|
31
|
+
export * as replace from './replace/index.js'
|
|
32
|
+
export * as renameproperty from './renameproperty/index.js'
|
|
32
33
|
export * as set from './set/index.js'
|
|
33
34
|
export * as setattribute from './setattribute/index.js'
|
|
35
|
+
export * as select from './select/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
39
|
export * as spread from './spread/index.js'
|
|
40
40
|
export * as toarray from './toarray/index.js'
|
|
41
41
|
export * as toboolean from './toboolean/index.js'
|
|
@@ -43,10 +43,10 @@ export * as toelement from './toelement/index.js'
|
|
|
43
43
|
export * as toggleclass from './toggleclass/index.js'
|
|
44
44
|
export * as tonodelist from './tonodelist/index.js'
|
|
45
45
|
export * as tonumber from './tonumber/index.js'
|
|
46
|
+
export * as tonull from './tonull/index.js'
|
|
46
47
|
export * as torecord from './torecord/index.js'
|
|
48
|
+
export * as toref from './toref/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,41 +1,41 @@
|
|
|
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
5
|
export * as at from './at/index.js'
|
|
5
|
-
export * as call from './call/index.js'
|
|
6
|
-
export * as addclass from './addclass/index.js'
|
|
7
6
|
export * as clone from './clone/index.js'
|
|
8
|
-
export * as
|
|
7
|
+
export * as call from './call/index.js'
|
|
9
8
|
export * as deleteproperties from './deleteproperties/index.js'
|
|
9
|
+
export * as equals from './equals/index.js'
|
|
10
|
+
export * as getattribute from './getattribute/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
17
|
export * as join from './join/index.js'
|
|
17
|
-
export * as hjparse from './hjparse/index.js'
|
|
18
|
-
export * as map from './map/index.js'
|
|
19
18
|
export * as length from './length/index.js'
|
|
19
|
+
export * as map from './map/index.js'
|
|
20
|
+
export * as negate from './negate/index.js'
|
|
20
21
|
export * as or from './or/index.js'
|
|
22
|
+
export * as notrailing from './notrailing/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
|
|
26
|
+
export * as push from './push/index.js'
|
|
25
27
|
export * as pusheach from './pusheach/index.js'
|
|
26
28
|
export * as recordtoarray from './recordtoarray/index.js'
|
|
27
29
|
export * as removeattribute from './removeattribute/index.js'
|
|
28
|
-
export * as notrailing from './notrailing/index.js'
|
|
29
30
|
export * as removeclass from './removeclass/index.js'
|
|
30
|
-
export * as
|
|
31
|
-
export * as
|
|
31
|
+
export * as replace from './replace/index.js'
|
|
32
|
+
export * as renameproperty from './renameproperty/index.js'
|
|
32
33
|
export * as set from './set/index.js'
|
|
33
34
|
export * as setattribute from './setattribute/index.js'
|
|
35
|
+
export * as select from './select/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
39
|
export * as spread from './spread/index.js'
|
|
40
40
|
export * as toarray from './toarray/index.js'
|
|
41
41
|
export * as toboolean from './toboolean/index.js'
|
|
@@ -43,10 +43,10 @@ export * as toelement from './toelement/index.js'
|
|
|
43
43
|
export * as toggleclass from './toggleclass/index.js'
|
|
44
44
|
export * as tonodelist from './tonodelist/index.js'
|
|
45
45
|
export * as tonumber from './tonumber/index.js'
|
|
46
|
+
export * as tonull from './tonull/index.js'
|
|
46
47
|
export * as torecord from './torecord/index.js'
|
|
48
|
+
export * as toref from './toref/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'
|
|
@@ -6,8 +6,8 @@ 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
|
-
export * as
|
|
9
|
+
export * as record from './record/index.js'
|
|
10
10
|
export * as ref from './ref/index.js'
|
|
11
|
-
export * as
|
|
11
|
+
export * as number from './number/index.js'
|
|
12
12
|
export * as string from './string/index.js'
|
|
13
|
-
export * as
|
|
13
|
+
export * as text from './text/index.js'
|
|
@@ -6,8 +6,8 @@ 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
|
-
export * as
|
|
9
|
+
export * as record from './record/index.js'
|
|
10
10
|
export * as ref from './ref/index.js'
|
|
11
|
-
export * as
|
|
11
|
+
export * as number from './number/index.js'
|
|
12
12
|
export * as string from './string/index.js'
|
|
13
|
-
export * as
|
|
13
|
+
export * as text from './text/index.js'
|
package/agnostic/html/index.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ export * as getNodeAncestors from './get-node-ancestors/index.js'
|
|
|
3
3
|
export * as getPositionInsideParent from './get-position-inside-parent/index.js'
|
|
4
4
|
export * as hyperJson from './hyper-json/index.js'
|
|
5
5
|
export * as insertNode from './insert-node/index.js'
|
|
6
|
-
export * as placeholders from './placeholders/index.js'
|
|
7
6
|
export * as replaceInElement from './replace-in-element/index.js'
|
|
8
|
-
export * as stringToNodes from './string-to-nodes/index.js'
|
|
9
7
|
export * as selectorToElement from './selector-to-element/index.js'
|
|
8
|
+
export * as stringToNodes from './string-to-nodes/index.js'
|
|
10
9
|
export * as watchSelection from './watch-selection/index.js'
|
|
10
|
+
export * as placeholders from './placeholders/index.js'
|
package/agnostic/html/index.js
CHANGED
|
@@ -3,8 +3,8 @@ export * as getNodeAncestors from './get-node-ancestors/index.js'
|
|
|
3
3
|
export * as getPositionInsideParent from './get-position-inside-parent/index.js'
|
|
4
4
|
export * as hyperJson from './hyper-json/index.js'
|
|
5
5
|
export * as insertNode from './insert-node/index.js'
|
|
6
|
-
export * as placeholders from './placeholders/index.js'
|
|
7
6
|
export * as replaceInElement from './replace-in-element/index.js'
|
|
8
|
-
export * as stringToNodes from './string-to-nodes/index.js'
|
|
9
7
|
export * as selectorToElement from './selector-to-element/index.js'
|
|
8
|
+
export * as stringToNodes from './string-to-nodes/index.js'
|
|
10
9
|
export * as watchSelection from './watch-selection/index.js'
|
|
10
|
+
export * as placeholders from './placeholders/index.js'
|
package/agnostic/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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'
|
|
@@ -8,10 +8,10 @@ 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
10
|
export * as optim from './optim/index.js'
|
|
11
|
-
export * as random from './random/index.js'
|
|
12
11
|
export * as regexps from './regexps/index.js'
|
|
13
12
|
export * as sanitization from './sanitization/index.js'
|
|
14
13
|
export * as strings from './strings/index.js'
|
|
15
|
-
export * as
|
|
14
|
+
export * as random from './random/index.js'
|
|
16
15
|
export * as time from './time/index.js'
|
|
17
16
|
export * as typescript from './typescript/index.js'
|
|
17
|
+
export * as subtitles from './subtitles/index.js'
|
package/agnostic/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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'
|
|
@@ -8,10 +8,10 @@ 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
10
|
export * as optim from './optim/index.js'
|
|
11
|
-
export * as random from './random/index.js'
|
|
12
11
|
export * as regexps from './regexps/index.js'
|
|
13
12
|
export * as sanitization from './sanitization/index.js'
|
|
14
13
|
export * as strings from './strings/index.js'
|
|
15
|
-
export * as
|
|
14
|
+
export * as random from './random/index.js'
|
|
16
15
|
export * as time from './time/index.js'
|
|
17
16
|
export * as typescript from './typescript/index.js'
|
|
17
|
+
export * as subtitles from './subtitles/index.js'
|
package/agnostic/misc/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export * as assert from './assert/index.js'
|
|
2
1
|
export * as cast from './cast/index.js'
|
|
2
|
+
export * as assert from './assert/index.js'
|
|
3
3
|
export * as connection from './connection/index.js'
|
|
4
4
|
export * as crawler from './crawler/index.js'
|
|
5
5
|
export * as crossenv from './crossenv/index.js'
|
|
6
|
-
export * as dataSize from './data-size/index.js'
|
|
7
6
|
export * as isConstructorFunction from './is-constructor-function/index.js'
|
|
7
|
+
export * as dataSize from './data-size/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 normalizeExtension from './normalize-extension/index.js'
|
|
12
11
|
export * as outcome from './outcome/index.js'
|
|
12
|
+
export * as normalizeExtension from './normalize-extension/index.js'
|
package/agnostic/misc/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export * as assert from './assert/index.js'
|
|
2
1
|
export * as cast from './cast/index.js'
|
|
2
|
+
export * as assert from './assert/index.js'
|
|
3
3
|
export * as connection from './connection/index.js'
|
|
4
4
|
export * as crawler from './crawler/index.js'
|
|
5
5
|
export * as crossenv from './crossenv/index.js'
|
|
6
|
-
export * as dataSize from './data-size/index.js'
|
|
7
6
|
export * as isConstructorFunction from './is-constructor-function/index.js'
|
|
7
|
+
export * as dataSize from './data-size/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 normalizeExtension from './normalize-extension/index.js'
|
|
12
11
|
export * as outcome from './outcome/index.js'
|
|
12
|
+
export * as normalizeExtension from './normalize-extension/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
|
-
export * as clamp from './clamp/index.js'
|
|
4
3
|
export * as geometricProgressions from './geometric-progressions/index.js'
|
|
5
4
|
export * as interpolate from './interpolate/index.js'
|
|
5
|
+
export * as clamp from './clamp/index.js'
|
|
6
6
|
export * as round from './round/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
|
-
export * as clamp from './clamp/index.js'
|
|
4
3
|
export * as geometricProgressions from './geometric-progressions/index.js'
|
|
5
4
|
export * as interpolate from './interpolate/index.js'
|
|
5
|
+
export * as clamp from './clamp/index.js'
|
|
6
6
|
export * as round from './round/index.js'
|
|
@@ -4,6 +4,6 @@ export * as flattenGetters from './flatten-getters/index.js'
|
|
|
4
4
|
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
|
-
export * as recordMap from './record-map/index.js'
|
|
8
7
|
export * as sortKeys from './sort-keys/index.js'
|
|
8
|
+
export * as recordMap from './record-map/index.js'
|
|
9
9
|
export * as validation from './validation/index.js'
|
|
@@ -4,6 +4,6 @@ export * as flattenGetters from './flatten-getters/index.js'
|
|
|
4
4
|
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
|
-
export * as recordMap from './record-map/index.js'
|
|
8
7
|
export * as sortKeys from './sort-keys/index.js'
|
|
8
|
+
export * as recordMap from './record-map/index.js'
|
|
9
9
|
export * as validation from './validation/index.js'
|
package/agnostic/optim/index.js
CHANGED
|
@@ -3,6 +3,6 @@ export * as matches from './matches/index.js'
|
|
|
3
3
|
export * as normalizeIndent from './normalize-indent/index.js'
|
|
4
4
|
export * as parseTable from './parse-table/index.js'
|
|
5
5
|
export * as replaceAll from './replace-all/index.js'
|
|
6
|
-
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 splitTrim from './split-trim/index.js'
|
|
@@ -3,6 +3,6 @@ export * as matches from './matches/index.js'
|
|
|
3
3
|
export * as normalizeIndent from './normalize-indent/index.js'
|
|
4
4
|
export * as parseTable from './parse-table/index.js'
|
|
5
5
|
export * as replaceAll from './replace-all/index.js'
|
|
6
|
-
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 splitTrim from './split-trim/index.js'
|
package/agnostic/time/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * as dates from './dates/index.js'
|
|
2
|
+
export * as duration from './duration/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
1
|
export * as dates from './dates/index.js'
|
|
2
|
+
export * as duration from './duration/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,109 @@
|
|
|
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. No content, no
|
|
12
|
+
* button: the lightbox is then opened by whatever the consumer wires up.
|
|
13
|
+
* @property prevBtnContent - Content rendered inside the previous button, shown only
|
|
14
|
+
* when the open group holds more than one member.
|
|
15
|
+
* @property nextBtnContent - Content rendered inside the next button, same condition.
|
|
16
|
+
* @property isOn - Controlled state. When defined, this member is driven by the
|
|
17
|
+
* parent and the shared registry never opens or closes it.
|
|
18
|
+
* @property defaultIsOn - Whether the lightbox starts open, in uncontrolled mode.
|
|
19
|
+
* Ignored when `isOn` is provided. Defaults to `false`.
|
|
20
|
+
* @property exitOnEscape - When `true`, pressing `Escape` closes the lightbox.
|
|
21
|
+
* @property navOnArrowKeys - When `true`, the left and right arrow keys move through
|
|
22
|
+
* the open group. Only has an effect on a group of more than one member.
|
|
23
|
+
* @property exitOnBgClick - When `true`, clicking the backdrop, and not its
|
|
24
|
+
* content, closes it.
|
|
25
|
+
* @property onOpenButtonClicked - Called when the open button is clicked, before the
|
|
26
|
+
* lightbox reacts, with the state as it was.
|
|
27
|
+
* @property onCloseButtonClicked - Same, for the close button.
|
|
28
|
+
* @property onPrevButtonClicked - Same, for the previous button.
|
|
29
|
+
* @property onNextButtonClicked - Same, for the next button.
|
|
30
|
+
* @property onBackgroundClicked - Called when the backdrop is clicked (only
|
|
31
|
+
* while `exitOnBgClick` is `true`), before the lightbox reacts.
|
|
32
|
+
* @property onEscapePressed - Called when `Escape` is pressed while the lightbox is open
|
|
33
|
+
* (only while `exitOnEscape` is `true`), before the lightbox reacts.
|
|
34
|
+
* @property onPrevArrowPressed - Called when the left arrow is pressed while the lightbox
|
|
35
|
+
* is open (only while `navOnArrowKeys` is `true`), before the lightbox reacts.
|
|
36
|
+
* @property onNextArrowPressed - Same, for the right arrow.
|
|
37
|
+
* @property onIsOnChanged - Called after this member's state changed, with the new
|
|
38
|
+
* value.
|
|
39
|
+
* @property className - Optional additional class name(s) applied to the root element.
|
|
40
|
+
* @property children - The content, rendered in place while closed and moved onto the
|
|
41
|
+
* inside the lightbox while open.
|
|
42
|
+
*/
|
|
43
|
+
export type Props = PropsWithChildren<WithClassName<{
|
|
44
|
+
group?: string | string[];
|
|
45
|
+
closeBtnContent?: ReactNode;
|
|
46
|
+
openBtnContent?: ReactNode;
|
|
47
|
+
prevBtnContent?: ReactNode;
|
|
48
|
+
nextBtnContent?: ReactNode;
|
|
49
|
+
isOn?: boolean;
|
|
50
|
+
defaultIsOn?: boolean;
|
|
51
|
+
exitOnEscape?: boolean;
|
|
52
|
+
exitOnBgClick?: boolean;
|
|
53
|
+
navOnArrowKeys?: boolean;
|
|
54
|
+
onOpenButtonClicked?: (isOn: boolean) => void;
|
|
55
|
+
onCloseButtonClicked?: (isOn: boolean) => void;
|
|
56
|
+
onPrevButtonClicked?: (isOn: boolean) => void;
|
|
57
|
+
onNextButtonClicked?: (isOn: boolean) => void;
|
|
58
|
+
onBackgroundClicked?: (isOn: boolean) => void;
|
|
59
|
+
onEscapePressed?: (isOn: boolean) => void;
|
|
60
|
+
onPrevArrowPressed?: (isOn: boolean) => void;
|
|
61
|
+
onNextArrowPressed?: (isOn: boolean) => void;
|
|
62
|
+
onIsOnChanged?: (isOn: boolean) => void;
|
|
63
|
+
}>>;
|
|
64
|
+
/**
|
|
65
|
+
* Lightbox component. Holds content in a box that a stylesheet lifts over the page
|
|
66
|
+
* when opened.
|
|
67
|
+
*
|
|
68
|
+
* ### CSS modifiers
|
|
69
|
+
* - `on` - this member is open.
|
|
70
|
+
* - `off` - it is not.
|
|
71
|
+
* - `grouped` - it belongs to a group it did not invent, so navigation is possible.
|
|
72
|
+
*
|
|
73
|
+
* ### CSS elements
|
|
74
|
+
* - `placeholder` - holds the content's last measured size while it is out of flow.
|
|
75
|
+
* - `backdrop` - the box the content always lives in; a stylesheet takes it out of
|
|
76
|
+
* flow and over the page while the root carries `--on`.
|
|
77
|
+
* - `content` - wraps the content inside the backdrop.
|
|
78
|
+
* - `open-btn`, `close-btn`, `prev-btn`, `next-btn`
|
|
79
|
+
*
|
|
80
|
+
* @param props - Component properties.
|
|
81
|
+
* @see {@link Props}
|
|
82
|
+
* @returns A root `<div>` holding a placeholder, the backdrop the content lives in,
|
|
83
|
+
* and the controls.
|
|
84
|
+
*
|
|
85
|
+
* @remarks
|
|
86
|
+
* - **The content never moves.** It stays in the same box, at the same place in the
|
|
87
|
+
* React tree, open or closed; only the box's positioning changes, and that is a
|
|
88
|
+
* stylesheet's business. Nothing is unmounted, so a playing video keeps playing at
|
|
89
|
+
* its timecode. Rendering `children` in two branches - one in place, one on a stage
|
|
90
|
+
* - would mount a fresh instance on every flip, React reconciling by position.
|
|
91
|
+
* - **Nothing leaves the component's own subtree.** No portal, no `document.body`: a
|
|
92
|
+
* component has no business writing outside the scope it was handed.
|
|
93
|
+
* - **A placeholder keeps the layout still.** Its size is the content's last measured
|
|
94
|
+
* one, read while closed; without it the article would collapse around the hole left
|
|
95
|
+
* once the backdrop goes out of flow.
|
|
96
|
+
* - **[WIP]** A `position: fixed` backdrop is trapped by the first ancestor carrying a
|
|
97
|
+
* `transform`, a `filter` or a `contain`, which becomes its containing block. Inside
|
|
98
|
+
* a slot, that ancestor is the consumer's own to avoid.
|
|
99
|
+
* - **Groups are held outside React**, in `./store.ts`: a consumer may render each
|
|
100
|
+
* component in a root of its own, in which case members of a group share no tree
|
|
101
|
+
* and a context could not reach from one to the other.
|
|
102
|
+
* - Every member holds its own backdrop; only the open one is lifted over the page.
|
|
103
|
+
* Navigating a group therefore lowers one and lifts another, and neither one's
|
|
104
|
+
* content is touched.
|
|
105
|
+
* - This component ships **no appearance**: covering the page, the backdrop and the
|
|
106
|
+
* buttons are the consumer stylesheet's business. Without one, the content is moved
|
|
107
|
+
* to the end of the document and nothing looks like a lightbox.
|
|
108
|
+
*/
|
|
109
|
+
export declare const Lightbox: FunctionComponent<Props>;
|