@design-edito/tools 0.5.7 → 0.5.8
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/css/index.d.ts +2 -2
- package/agnostic/css/index.js +2 -2
- 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 +10 -10
- package/agnostic/html/hyper-json/smart-tags/coalesced/index.js +10 -10
- package/agnostic/html/hyper-json/smart-tags/isolated/index.d.ts +4 -4
- package/agnostic/html/hyper-json/smart-tags/isolated/index.js +4 -4
- package/agnostic/html/index.d.ts +2 -2
- package/agnostic/html/index.js +2 -2
- package/agnostic/index.d.ts +5 -5
- package/agnostic/index.js +5 -5
- package/agnostic/misc/index.d.ts +3 -3
- package/agnostic/misc/index.js +3 -3
- package/agnostic/objects/index.d.ts +3 -3
- package/agnostic/objects/index.js +3 -3
- package/agnostic/random/index.d.ts +1 -1
- package/agnostic/random/index.js +1 -1
- package/agnostic/strings/index.d.ts +1 -1
- package/agnostic/strings/index.js +1 -1
- package/agnostic/time/dates/index.d.ts +1 -1
- package/agnostic/time/dates/index.js +1 -1
- package/components/BeforeAfter/index.controlled.d.ts +5 -4
- package/components/BeforeAfter/index.controlled.js +6 -6
- package/components/Drawer/index.d.ts +3 -1
- package/components/Drawer/index.js +5 -2
- package/components/Iframe/index.d.ts +4 -0
- package/components/Iframe/index.js +8 -1
- package/components/Input/index.d.ts +4 -0
- package/components/Input/index.js +9 -1
- package/components/ListLoader/index.controlled.d.ts +3 -0
- package/components/ListLoader/index.controlled.js +4 -1
- package/components/ResizeObserver/index.d.ts +6 -1
- package/components/ResizeObserver/index.js +7 -2
- package/components/ScrollListener/index.d.ts +5 -0
- package/components/ScrollListener/index.js +10 -1
- package/components/Select/index.d.ts +4 -0
- package/components/Select/index.js +9 -1
- package/components/ShadowRoot/index.d.ts +4 -0
- package/components/ShadowRoot/index.js +5 -1
- package/components/Textarea/index.d.ts +4 -0
- package/components/Textarea/index.js +9 -1
- package/components/Video/index.controlled.d.ts +8 -2
- package/components/Video/index.controlled.js +15 -3
- package/components/index.d.ts +5 -5
- package/components/index.js +5 -5
- package/node/@aws-s3/storage/file/index.d.ts +1 -1
- package/node/@aws-s3/storage/file/index.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/cloud-storage/operations/index.d.ts +1 -1
- package/node/cloud-storage/operations/index.js +1 -1
- package/node/files/index.d.ts +1 -1
- package/node/files/index.js +1 -1
- package/node/images/index.d.ts +1 -1
- package/node/images/index.js +1 -1
- package/node/images/transform/operations/index.d.ts +5 -5
- package/node/images/transform/operations/index.js +5 -5
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * as dedupe from './dedupe/index.js'
|
|
2
2
|
export * as findDuplicates from './find-duplicates/index.js'
|
|
3
|
-
export * as isArrayOf from './is-array-of/index.js'
|
|
4
3
|
export * as make from './make/index.js'
|
|
5
|
-
export * as
|
|
4
|
+
export * as isArrayOf from './is-array-of/index.js'
|
|
6
5
|
export * as shuffle from './shuffle/index.js'
|
|
6
|
+
export * as randomPick from './random-pick/index.js'
|
package/agnostic/arrays/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * as dedupe from './dedupe/index.js'
|
|
2
2
|
export * as findDuplicates from './find-duplicates/index.js'
|
|
3
|
-
export * as isArrayOf from './is-array-of/index.js'
|
|
4
3
|
export * as make from './make/index.js'
|
|
5
|
-
export * as
|
|
4
|
+
export * as isArrayOf from './is-array-of/index.js'
|
|
6
5
|
export * as shuffle from './shuffle/index.js'
|
|
6
|
+
export * as randomPick from './random-pick/index.js'
|
|
@@ -4,9 +4,9 @@ export * as convert from './convert/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'
|
|
7
|
-
export * as lerp from './lerp/index.js'
|
|
8
|
-
export * as luminance from './luminance/index.js'
|
|
9
7
|
export * as palette from './palette/index.js'
|
|
10
|
-
export * as
|
|
8
|
+
export * as lerp from './lerp/index.js'
|
|
11
9
|
export * as tidy from './tidy/index.js'
|
|
10
|
+
export * as rotate from './rotate/index.js'
|
|
12
11
|
export * as typechecks from './typechecks/index.js'
|
|
12
|
+
export * as luminance from './luminance/index.js'
|
package/agnostic/colors/index.js
CHANGED
|
@@ -4,9 +4,9 @@ export * as convert from './convert/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'
|
|
7
|
-
export * as lerp from './lerp/index.js'
|
|
8
|
-
export * as luminance from './luminance/index.js'
|
|
9
7
|
export * as palette from './palette/index.js'
|
|
10
|
-
export * as
|
|
8
|
+
export * as lerp from './lerp/index.js'
|
|
11
9
|
export * as tidy from './tidy/index.js'
|
|
10
|
+
export * as rotate from './rotate/index.js'
|
|
12
11
|
export * as typechecks from './typechecks/index.js'
|
|
12
|
+
export * as luminance from './luminance/index.js'
|
package/agnostic/css/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * as bem from './bem/index.js'
|
|
2
|
-
export * as clss from './clss/index.js'
|
|
3
2
|
export * as generateNiceColor from './generate-nice-color/index.js'
|
|
4
3
|
export * as isValidCssClassName from './is-valid-css-class-name/index.js'
|
|
5
|
-
export * as
|
|
4
|
+
export * as clss from './clss/index.js'
|
|
6
5
|
export * as scale from './scale/index.js'
|
|
6
|
+
export * as stylesSet from './styles-set/index.js'
|
package/agnostic/css/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * as bem from './bem/index.js'
|
|
2
|
-
export * as clss from './clss/index.js'
|
|
3
2
|
export * as generateNiceColor from './generate-nice-color/index.js'
|
|
4
3
|
export * as isValidCssClassName from './is-valid-css-class-name/index.js'
|
|
5
|
-
export * as
|
|
4
|
+
export * as clss from './clss/index.js'
|
|
6
5
|
export * as scale from './scale/index.js'
|
|
6
|
+
export * as stylesSet from './styles-set/index.js'
|
package/agnostic/errors/index.js
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
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 append from './append/index.js'
|
|
5
4
|
export * as at from './at/index.js'
|
|
6
|
-
export * as
|
|
5
|
+
export * as append from './append/index.js'
|
|
7
6
|
export * as call from './call/index.js'
|
|
8
7
|
export * as deleteproperties from './deleteproperties/index.js'
|
|
8
|
+
export * as clone from './clone/index.js'
|
|
9
9
|
export * as equals from './equals/index.js'
|
|
10
10
|
export * as getattribute from './getattribute/index.js'
|
|
11
|
+
export * as getproperties from './getproperties/index.js'
|
|
11
12
|
export * as hjparse from './hjparse/index.js'
|
|
13
|
+
export * as getproperty from './getproperty/index.js'
|
|
12
14
|
export * as hjstringify from './hjstringify/index.js'
|
|
13
15
|
export * as if from './if/index.js'
|
|
14
16
|
export * as initialize from './initialize/index.js'
|
|
15
|
-
export * as getproperties from './getproperties/index.js'
|
|
16
17
|
export * as length from './length/index.js'
|
|
17
|
-
export * as join from './join/index.js'
|
|
18
18
|
export * as map from './map/index.js'
|
|
19
19
|
export * as negate from './negate/index.js'
|
|
20
20
|
export * as notrailing from './notrailing/index.js'
|
|
21
|
-
export * as pickrandom from './pickrandom/index.js'
|
|
22
21
|
export * as or from './or/index.js'
|
|
23
|
-
export * as
|
|
22
|
+
export * as pickrandom from './pickrandom/index.js'
|
|
24
23
|
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
|
-
export * as push from './push/index.js'
|
|
28
27
|
export * as recordtoarray from './recordtoarray/index.js'
|
|
28
|
+
export * as push from './push/index.js'
|
|
29
29
|
export * as removeattribute from './removeattribute/index.js'
|
|
30
30
|
export * as removeclass from './removeclass/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 set from './set/index.js'
|
|
35
34
|
export * as setattribute from './setattribute/index.js'
|
|
36
|
-
export * as
|
|
35
|
+
export * as set from './set/index.js'
|
|
37
36
|
export * as setproperty from './setproperty/index.js'
|
|
37
|
+
export * as sorton from './sorton/index.js'
|
|
38
38
|
export * as split from './split/index.js'
|
|
39
39
|
export * as spread from './spread/index.js'
|
|
40
40
|
export * as toarray from './toarray/index.js'
|
|
@@ -48,5 +48,5 @@ export * as torecord from './torecord/index.js'
|
|
|
48
48
|
export * as toref from './toref/index.js'
|
|
49
49
|
export * as tostring from './tostring/index.js'
|
|
50
50
|
export * as totext from './totext/index.js'
|
|
51
|
-
export * as trim from './trim/index.js'
|
|
52
51
|
export * as transformselected from './transformselected/index.js'
|
|
52
|
+
export * as trim from './trim/index.js'
|
|
@@ -1,40 +1,40 @@
|
|
|
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 append from './append/index.js'
|
|
5
4
|
export * as at from './at/index.js'
|
|
6
|
-
export * as
|
|
5
|
+
export * as append from './append/index.js'
|
|
7
6
|
export * as call from './call/index.js'
|
|
8
7
|
export * as deleteproperties from './deleteproperties/index.js'
|
|
8
|
+
export * as clone from './clone/index.js'
|
|
9
9
|
export * as equals from './equals/index.js'
|
|
10
10
|
export * as getattribute from './getattribute/index.js'
|
|
11
|
+
export * as getproperties from './getproperties/index.js'
|
|
11
12
|
export * as hjparse from './hjparse/index.js'
|
|
13
|
+
export * as getproperty from './getproperty/index.js'
|
|
12
14
|
export * as hjstringify from './hjstringify/index.js'
|
|
13
15
|
export * as if from './if/index.js'
|
|
14
16
|
export * as initialize from './initialize/index.js'
|
|
15
|
-
export * as getproperties from './getproperties/index.js'
|
|
16
17
|
export * as length from './length/index.js'
|
|
17
|
-
export * as join from './join/index.js'
|
|
18
18
|
export * as map from './map/index.js'
|
|
19
19
|
export * as negate from './negate/index.js'
|
|
20
20
|
export * as notrailing from './notrailing/index.js'
|
|
21
|
-
export * as pickrandom from './pickrandom/index.js'
|
|
22
21
|
export * as or from './or/index.js'
|
|
23
|
-
export * as
|
|
22
|
+
export * as pickrandom from './pickrandom/index.js'
|
|
24
23
|
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
|
-
export * as push from './push/index.js'
|
|
28
27
|
export * as recordtoarray from './recordtoarray/index.js'
|
|
28
|
+
export * as push from './push/index.js'
|
|
29
29
|
export * as removeattribute from './removeattribute/index.js'
|
|
30
30
|
export * as removeclass from './removeclass/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 set from './set/index.js'
|
|
35
34
|
export * as setattribute from './setattribute/index.js'
|
|
36
|
-
export * as
|
|
35
|
+
export * as set from './set/index.js'
|
|
37
36
|
export * as setproperty from './setproperty/index.js'
|
|
37
|
+
export * as sorton from './sorton/index.js'
|
|
38
38
|
export * as split from './split/index.js'
|
|
39
39
|
export * as spread from './spread/index.js'
|
|
40
40
|
export * as toarray from './toarray/index.js'
|
|
@@ -48,5 +48,5 @@ export * as torecord from './torecord/index.js'
|
|
|
48
48
|
export * as toref from './toref/index.js'
|
|
49
49
|
export * as tostring from './tostring/index.js'
|
|
50
50
|
export * as totext from './totext/index.js'
|
|
51
|
-
export * as trim from './trim/index.js'
|
|
52
51
|
export * as transformselected from './transformselected/index.js'
|
|
52
|
+
export * as trim from './trim/index.js'
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
+
export * as any from './any/index.js'
|
|
1
2
|
export * as array from './array/index.js'
|
|
2
3
|
export * as boolean from './boolean/index.js'
|
|
3
|
-
export * as any from './any/index.js'
|
|
4
4
|
export * as element from './element/index.js'
|
|
5
5
|
export * as get from './get/index.js'
|
|
6
|
-
export * as nodelist from './nodelist/index.js'
|
|
7
|
-
export * as null from './null/index.js'
|
|
8
6
|
export * as guess from './guess/index.js'
|
|
7
|
+
export * as null from './null/index.js'
|
|
8
|
+
export * as nodelist from './nodelist/index.js'
|
|
9
9
|
export * as number from './number/index.js'
|
|
10
|
-
export * as record from './record/index.js'
|
|
11
10
|
export * as ref from './ref/index.js'
|
|
11
|
+
export * as record from './record/index.js'
|
|
12
12
|
export * as string from './string/index.js'
|
|
13
13
|
export * as text from './text/index.js'
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
+
export * as any from './any/index.js'
|
|
1
2
|
export * as array from './array/index.js'
|
|
2
3
|
export * as boolean from './boolean/index.js'
|
|
3
|
-
export * as any from './any/index.js'
|
|
4
4
|
export * as element from './element/index.js'
|
|
5
5
|
export * as get from './get/index.js'
|
|
6
|
-
export * as nodelist from './nodelist/index.js'
|
|
7
|
-
export * as null from './null/index.js'
|
|
8
6
|
export * as guess from './guess/index.js'
|
|
7
|
+
export * as null from './null/index.js'
|
|
8
|
+
export * as nodelist from './nodelist/index.js'
|
|
9
9
|
export * as number from './number/index.js'
|
|
10
|
-
export * as record from './record/index.js'
|
|
11
10
|
export * as ref from './ref/index.js'
|
|
11
|
+
export * as record from './record/index.js'
|
|
12
12
|
export * as string from './string/index.js'
|
|
13
13
|
export * as text from './text/index.js'
|
package/agnostic/html/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export * as deepSelect from './deep-select/index.js'
|
|
2
|
-
export * as getNodeAncestors from './get-node-ancestors/index.js'
|
|
3
2
|
export * as getPositionInsideParent from './get-position-inside-parent/index.js'
|
|
4
3
|
export * as hyperJson from './hyper-json/index.js'
|
|
5
4
|
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 stringToNodes from './string-to-nodes/index.js'
|
|
10
9
|
export * as watchSelection from './watch-selection/index.js'
|
|
10
|
+
export * as stringToNodes from './string-to-nodes/index.js'
|
package/agnostic/html/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export * as deepSelect from './deep-select/index.js'
|
|
2
|
-
export * as getNodeAncestors from './get-node-ancestors/index.js'
|
|
3
2
|
export * as getPositionInsideParent from './get-position-inside-parent/index.js'
|
|
4
3
|
export * as hyperJson from './hyper-json/index.js'
|
|
5
4
|
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 stringToNodes from './string-to-nodes/index.js'
|
|
10
9
|
export * as watchSelection from './watch-selection/index.js'
|
|
10
|
+
export * as stringToNodes from './string-to-nodes/index.js'
|
package/agnostic/index.d.ts
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'
|
|
4
3
|
export * as css from './css/index.js'
|
|
5
4
|
export * as errors from './errors/index.js'
|
|
6
5
|
export * as html from './html/index.js'
|
|
7
|
-
export * as misc from './misc/index.js'
|
|
8
6
|
export * as numbers from './numbers/index.js'
|
|
7
|
+
export * as misc from './misc/index.js'
|
|
9
8
|
export * as objects from './objects/index.js'
|
|
9
|
+
export * as colors from './colors/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'
|
|
12
|
+
export * as random from './random/index.js'
|
|
13
13
|
export * as sanitization from './sanitization/index.js'
|
|
14
|
-
export * as subtitles from './subtitles/index.js'
|
|
15
14
|
export * as strings from './strings/index.js'
|
|
16
|
-
export * as
|
|
15
|
+
export * as subtitles from './subtitles/index.js'
|
|
17
16
|
export * as typescript from './typescript/index.js'
|
|
17
|
+
export * as time from './time/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'
|
|
4
3
|
export * as css from './css/index.js'
|
|
5
4
|
export * as errors from './errors/index.js'
|
|
6
5
|
export * as html from './html/index.js'
|
|
7
|
-
export * as misc from './misc/index.js'
|
|
8
6
|
export * as numbers from './numbers/index.js'
|
|
7
|
+
export * as misc from './misc/index.js'
|
|
9
8
|
export * as objects from './objects/index.js'
|
|
9
|
+
export * as colors from './colors/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'
|
|
12
|
+
export * as random from './random/index.js'
|
|
13
13
|
export * as sanitization from './sanitization/index.js'
|
|
14
|
-
export * as subtitles from './subtitles/index.js'
|
|
15
14
|
export * as strings from './strings/index.js'
|
|
16
|
-
export * as
|
|
15
|
+
export * as subtitles from './subtitles/index.js'
|
|
17
16
|
export * as typescript from './typescript/index.js'
|
|
17
|
+
export * as time from './time/index.js'
|
package/agnostic/misc/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export * as assert from './assert/index.js'
|
|
2
2
|
export * as cast from './cast/index.js'
|
|
3
|
-
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'
|
|
5
|
+
export * as connection from './connection/index.js'
|
|
6
6
|
export * as dataSize from './data-size/index.js'
|
|
7
|
+
export * as isConstructorFunction from './is-constructor-function/index.js'
|
|
7
8
|
export * as isNullish from './is-nullish/index.js'
|
|
8
9
|
export * as logs from './logs/index.js'
|
|
9
|
-
export * as isConstructorFunction from './is-constructor-function/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
1
|
export * as assert from './assert/index.js'
|
|
2
2
|
export * as cast from './cast/index.js'
|
|
3
|
-
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'
|
|
5
|
+
export * as connection from './connection/index.js'
|
|
6
6
|
export * as dataSize from './data-size/index.js'
|
|
7
|
+
export * as isConstructorFunction from './is-constructor-function/index.js'
|
|
7
8
|
export * as isNullish from './is-nullish/index.js'
|
|
8
9
|
export * as logs from './logs/index.js'
|
|
9
|
-
export * as isConstructorFunction from './is-constructor-function/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,9 +1,9 @@
|
|
|
1
|
-
export * as enums from './enums/index.js'
|
|
2
1
|
export * as deepGetProperty from './deep-get-property/index.js'
|
|
2
|
+
export * as flattenGetters from './flatten-getters/index.js'
|
|
3
3
|
export * as isObject from './is-object/index.js'
|
|
4
|
-
export * as isRecord from './is-record/index.js'
|
|
5
4
|
export * as recordFormat from './record-format/index.js'
|
|
5
|
+
export * as isRecord from './is-record/index.js'
|
|
6
6
|
export * as recordMap from './record-map/index.js'
|
|
7
|
-
export * as
|
|
7
|
+
export * as enums from './enums/index.js'
|
|
8
8
|
export * as sortKeys from './sort-keys/index.js'
|
|
9
9
|
export * as validation from './validation/index.js'
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export * as enums from './enums/index.js'
|
|
2
1
|
export * as deepGetProperty from './deep-get-property/index.js'
|
|
2
|
+
export * as flattenGetters from './flatten-getters/index.js'
|
|
3
3
|
export * as isObject from './is-object/index.js'
|
|
4
|
-
export * as isRecord from './is-record/index.js'
|
|
5
4
|
export * as recordFormat from './record-format/index.js'
|
|
5
|
+
export * as isRecord from './is-record/index.js'
|
|
6
6
|
export * as recordMap from './record-map/index.js'
|
|
7
|
-
export * as
|
|
7
|
+
export * as enums from './enums/index.js'
|
|
8
8
|
export * as sortKeys from './sort-keys/index.js'
|
|
9
9
|
export * as validation from './validation/index.js'
|
package/agnostic/random/index.js
CHANGED
|
@@ -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 replaceAll from './replace-all/index.js'
|
|
4
5
|
export * as parseTable from './parse-table/index.js'
|
|
5
6
|
export * as splitTrim from './split-trim/index.js'
|
|
6
|
-
export * as replaceAll from './replace-all/index.js'
|
|
7
7
|
export * as toAlphanum from './to-alphanum/index.js'
|
|
8
8
|
export * as trim from './trim/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 replaceAll from './replace-all/index.js'
|
|
4
5
|
export * as parseTable from './parse-table/index.js'
|
|
5
6
|
export * as splitTrim from './split-trim/index.js'
|
|
6
|
-
export * as replaceAll from './replace-all/index.js'
|
|
7
7
|
export * as toAlphanum from './to-alphanum/index.js'
|
|
8
8
|
export * as trim from './trim/index.js'
|
|
@@ -30,10 +30,11 @@ export type Props = PropsWithChildren<WithClassName<{
|
|
|
30
30
|
* as a ratio between `0` and `1`. Handles both mouse and touch input, telling a
|
|
31
31
|
* click apart from a drag.
|
|
32
32
|
*
|
|
33
|
-
* The
|
|
34
|
-
* -
|
|
35
|
-
*
|
|
36
|
-
* - a `data-ratio` attribute
|
|
33
|
+
* The divider's position is exposed on the root element as:
|
|
34
|
+
* - the unitless custom property `--lm-before-after-ratio`. No percentage twin —
|
|
35
|
+
* `calc(var(--lm-before-after-ratio) * 100%)` covers it.
|
|
36
|
+
* - a `data-ratio` attribute, for what a custom property cannot reach:
|
|
37
|
+
* `content: attr(data-ratio)` and attribute selectors.
|
|
37
38
|
*
|
|
38
39
|
* ### CSS modifiers
|
|
39
40
|
* - `horizontal` — applied when `mode` is `'horizontal'`.
|
|
@@ -13,10 +13,11 @@ import cssModule from './styles.module.css';
|
|
|
13
13
|
* as a ratio between `0` and `1`. Handles both mouse and touch input, telling a
|
|
14
14
|
* click apart from a drag.
|
|
15
15
|
*
|
|
16
|
-
* The
|
|
17
|
-
* -
|
|
18
|
-
*
|
|
19
|
-
* - a `data-ratio` attribute
|
|
16
|
+
* The divider's position is exposed on the root element as:
|
|
17
|
+
* - the unitless custom property `--lm-before-after-ratio`. No percentage twin —
|
|
18
|
+
* `calc(var(--lm-before-after-ratio) * 100%)` covers it.
|
|
19
|
+
* - a `data-ratio` attribute, for what a custom property cannot reach:
|
|
20
|
+
* `content: attr(data-ratio)` and attribute selectors.
|
|
20
21
|
*
|
|
21
22
|
* ### CSS modifiers
|
|
22
23
|
* - `horizontal` — applied when `mode` is `'horizontal'`.
|
|
@@ -105,8 +106,7 @@ export const ControlledBeforeAfter = ({ mode = 'horizontal', ratio = 0, before,
|
|
|
105
106
|
}), className);
|
|
106
107
|
const roundedRatio = round(clampedRatio, 4);
|
|
107
108
|
const customProps = {
|
|
108
|
-
'--lm-before-after-ratio': `${roundedRatio}
|
|
109
|
-
'--lm-before-after-ratio-percent': `${round(clampedRatio * 100, 2)}%`
|
|
109
|
+
'--lm-before-after-ratio': `${roundedRatio}`
|
|
110
110
|
};
|
|
111
111
|
return _jsxs("div", { ref: rootRef, className: rootClss, onMouseDown: handlePointerDown, onMouseMove: handleMouseMove, onMouseUp: handleMouseUp, onTouchStart: handlePointerDown, onTouchMove: handleTouchMove, onTouchEnd: handleTouchEnd, style: { ...customProps }, "data-ratio": roundedRatio, children: [_jsx("div", { className: c('before'), children: before }), _jsx("div", { className: c('after'), children: after }), _jsx("div", { className: c('separator') }), children] });
|
|
112
112
|
};
|
|
@@ -43,6 +43,8 @@ export type Props = PropsWithChildren<WithClassName<{
|
|
|
43
43
|
* - `opened` — the drawer is open.
|
|
44
44
|
* - `closed` — the drawer is closed.
|
|
45
45
|
*
|
|
46
|
+
* - `--measured` — the content has been measured, so the properties below are set.
|
|
47
|
+
*
|
|
46
48
|
* ### CSS elements
|
|
47
49
|
* - `opener`
|
|
48
50
|
* - `closer`
|
|
@@ -54,8 +56,8 @@ export type Props = PropsWithChildren<WithClassName<{
|
|
|
54
56
|
* Absent until the first measurement lands.
|
|
55
57
|
*
|
|
56
58
|
* ### Data attributes on the root element
|
|
57
|
-
* - `data-content-width`, `data-content-height` — the measured content size.
|
|
58
59
|
* Absent until the first measurement lands.
|
|
60
|
+
* - `data-content-width`, `data-content-height` — the measured content size.
|
|
59
61
|
*
|
|
60
62
|
* @param props - Component properties.
|
|
61
63
|
* @see {@link Props}
|
|
@@ -15,6 +15,8 @@ import cssModule from './styles.module.css';
|
|
|
15
15
|
* - `opened` — the drawer is open.
|
|
16
16
|
* - `closed` — the drawer is closed.
|
|
17
17
|
*
|
|
18
|
+
* - `--measured` — the content has been measured, so the properties below are set.
|
|
19
|
+
*
|
|
18
20
|
* ### CSS elements
|
|
19
21
|
* - `opener`
|
|
20
22
|
* - `closer`
|
|
@@ -26,8 +28,8 @@ import cssModule from './styles.module.css';
|
|
|
26
28
|
* Absent until the first measurement lands.
|
|
27
29
|
*
|
|
28
30
|
* ### Data attributes on the root element
|
|
29
|
-
* - `data-content-width`, `data-content-height` — the measured content size.
|
|
30
31
|
* Absent until the first measurement lands.
|
|
32
|
+
* - `data-content-width`, `data-content-height` — the measured content size.
|
|
31
33
|
*
|
|
32
34
|
* @param props - Component properties.
|
|
33
35
|
* @see {@link Props}
|
|
@@ -71,7 +73,8 @@ export const Drawer = ({ openerContent, closerContent, defaultIsOpened = false,
|
|
|
71
73
|
const c = clss(publicClassName, { cssModule });
|
|
72
74
|
const rootClss = mergeClassNames(c(null, {
|
|
73
75
|
'opened': isOpened,
|
|
74
|
-
'closed': !isOpened
|
|
76
|
+
'closed': !isOpened,
|
|
77
|
+
measured: contentDimensions !== undefined
|
|
75
78
|
}), className);
|
|
76
79
|
const openerClss = c('opener');
|
|
77
80
|
const closerClss = c('closer');
|
|
@@ -24,6 +24,10 @@ export type Props = WithClassName<{
|
|
|
24
24
|
* The parent component updates the iframe height via React state and `style`
|
|
25
25
|
* prop (no direct DOM mutation).
|
|
26
26
|
*
|
|
27
|
+
* ### Root element modifiers
|
|
28
|
+
* - `--auto-height` — the component is listening for a height from inside the frame.
|
|
29
|
+
* - `--measured` — one has arrived, and the frame is sized to it.
|
|
30
|
+
*
|
|
27
31
|
* @param props - Component properties.
|
|
28
32
|
* @see {@link Props}
|
|
29
33
|
*/
|
|
@@ -33,6 +33,10 @@ const innerAutoHeightNotifier = (messageType) => `<script>
|
|
|
33
33
|
* The parent component updates the iframe height via React state and `style`
|
|
34
34
|
* prop (no direct DOM mutation).
|
|
35
35
|
*
|
|
36
|
+
* ### Root element modifiers
|
|
37
|
+
* - `--auto-height` — the component is listening for a height from inside the frame.
|
|
38
|
+
* - `--measured` — one has arrived, and the frame is sized to it.
|
|
39
|
+
*
|
|
36
40
|
* @param props - Component properties.
|
|
37
41
|
* @see {@link Props}
|
|
38
42
|
*/
|
|
@@ -68,7 +72,10 @@ export const Iframe = ({ autoHeight = false, className, srcDoc, style, ...iframe
|
|
|
68
72
|
return { ...base, height: `${height}px` };
|
|
69
73
|
}, [style, autoHeight, height]);
|
|
70
74
|
const c = clss(publicClassName, { cssModule });
|
|
71
|
-
const rootClss = mergeClassNames(c(
|
|
75
|
+
const rootClss = mergeClassNames(c(null, {
|
|
76
|
+
'auto-height': autoHeight,
|
|
77
|
+
measured: height !== null
|
|
78
|
+
}), className);
|
|
72
79
|
const html = useMemo(() => {
|
|
73
80
|
const autoHeightScript = autoHeight
|
|
74
81
|
? innerAutoHeightNotifier(innerMessageType)
|
|
@@ -23,6 +23,10 @@ export type Props = InputHTMLAttributes<HTMLInputElement> & WithClassName<{
|
|
|
23
23
|
* A stable auto-generated `id` is created on mount and used to associate the
|
|
24
24
|
* rendered label through the `htmlFor` attribute.
|
|
25
25
|
*
|
|
26
|
+
* ### Root element modifiers
|
|
27
|
+
* - `--controlled` — the value comes from the parent, not from inside.
|
|
28
|
+
* - `--empty` / `--filled` — whether the current value is the empty string.
|
|
29
|
+
*
|
|
26
30
|
* ### CSS elements
|
|
27
31
|
* - `label`
|
|
28
32
|
* - `error`
|
|
@@ -15,6 +15,10 @@ import cssModule from './styles.module.css';
|
|
|
15
15
|
* A stable auto-generated `id` is created on mount and used to associate the
|
|
16
16
|
* rendered label through the `htmlFor` attribute.
|
|
17
17
|
*
|
|
18
|
+
* ### Root element modifiers
|
|
19
|
+
* - `--controlled` — the value comes from the parent, not from inside.
|
|
20
|
+
* - `--empty` / `--filled` — whether the current value is the empty string.
|
|
21
|
+
*
|
|
18
22
|
* ### CSS elements
|
|
19
23
|
* - `label`
|
|
20
24
|
* - `error`
|
|
@@ -44,6 +48,10 @@ export const Input = ({ label, error, value, defaultValue, onChange, className,
|
|
|
44
48
|
};
|
|
45
49
|
// Rendering
|
|
46
50
|
const c = clss(publicClassName, { cssModule });
|
|
47
|
-
const rootClss = mergeClassNames(c(
|
|
51
|
+
const rootClss = mergeClassNames(c(null, {
|
|
52
|
+
controlled: isControlled,
|
|
53
|
+
empty: currentValue === '',
|
|
54
|
+
filled: currentValue !== ''
|
|
55
|
+
}), className);
|
|
48
56
|
return _jsxs(_Fragment, { children: [isNotFalsy(label) && _jsx("label", { className: c('label'), htmlFor: id, children: label }), _jsx("input", { ...rest, id: id, className: rootClss, value: currentValue, onChange: handleChange }), isNotFalsy(error) && _jsx("span", { className: c('error'), children: error })] });
|
|
49
57
|
};
|
|
@@ -60,6 +60,9 @@ export type Props<T> = WithClassName<ViewportObserverOptions & {
|
|
|
60
60
|
* - in place of each page missing between two loaded pages,
|
|
61
61
|
* - after the last loaded page, unless it is already `lastPagePos`.
|
|
62
62
|
*
|
|
63
|
+
* ### Root element modifiers
|
|
64
|
+
* - `--loading` — at least one page is being fetched.
|
|
65
|
+
*
|
|
63
66
|
* ### CSS elements
|
|
64
67
|
* - `item` — wraps each rendered item. Carries `data-page`.
|
|
65
68
|
* - `load` — a load button. Rendered empty, so its label belongs in CSS.
|
|
@@ -19,6 +19,9 @@ import cssModule from './styles.module.css';
|
|
|
19
19
|
* - in place of each page missing between two loaded pages,
|
|
20
20
|
* - after the last loaded page, unless it is already `lastPagePos`.
|
|
21
21
|
*
|
|
22
|
+
* ### Root element modifiers
|
|
23
|
+
* - `--loading` — at least one page is being fetched.
|
|
24
|
+
*
|
|
22
25
|
* ### CSS elements
|
|
23
26
|
* - `item` — wraps each rendered item. Carries `data-page`.
|
|
24
27
|
* - `load` — a load button. Rendered empty, so its label belongs in CSS.
|
|
@@ -78,7 +81,7 @@ export const ControlledListLoader = ({ className, pages, firstPagePos, lastPageP
|
|
|
78
81
|
.filter(pagePos => inBoundsPages.includes(pagePos))
|
|
79
82
|
.sort((a, b) => a - b);
|
|
80
83
|
const c = clss(publicClassName, { cssModule });
|
|
81
|
-
const rootClss = mergeClassNames(c(), className);
|
|
84
|
+
const rootClss = mergeClassNames(c(null, { loading: sortedLoadingPages.length > 0 }), className);
|
|
82
85
|
const renderLoadButton = (pagePos, kind) => {
|
|
83
86
|
const button = _jsx("button", { className: c('load', kind), "data-page": pagePos, onClick: () => onLoadPageClicked?.(pagePos) }, `load/${pagePos}`);
|
|
84
87
|
const autoLoads = (kind === 'prev' && autoLoadPrevWhenVisible === true)
|
|
@@ -20,9 +20,14 @@ export type Props = PropsWithChildren<WithClassName<{
|
|
|
20
20
|
* rect on its root element. Both sets stay absent until the first measurement
|
|
21
21
|
* lands.
|
|
22
22
|
*
|
|
23
|
+
* ### Root element modifiers
|
|
24
|
+
* - `--measured` — a first measurement landed, so the sets below are populated.
|
|
25
|
+
*
|
|
23
26
|
* ### Data attributes
|
|
24
27
|
* `data-x`, `data-y`, `data-top`, `data-left`, `data-bottom`, `data-right`,
|
|
25
|
-
* `data-width` and `data-height` — the content rect, as plain numbers.
|
|
28
|
+
* `data-width` and `data-height` — the content rect, as plain numbers. They carry
|
|
29
|
+
* what a custom property cannot reach: `content: attr(data-width)`, and attribute
|
|
30
|
+
* selectors.
|
|
26
31
|
*
|
|
27
32
|
* ### CSS custom properties
|
|
28
33
|
* The same eight measurements, each exposed twice: `--lm-resize-observer-width`
|
|
@@ -9,9 +9,14 @@ import cssModule from './styles.module.css';
|
|
|
9
9
|
* rect on its root element. Both sets stay absent until the first measurement
|
|
10
10
|
* lands.
|
|
11
11
|
*
|
|
12
|
+
* ### Root element modifiers
|
|
13
|
+
* - `--measured` — a first measurement landed, so the sets below are populated.
|
|
14
|
+
*
|
|
12
15
|
* ### Data attributes
|
|
13
16
|
* `data-x`, `data-y`, `data-top`, `data-left`, `data-bottom`, `data-right`,
|
|
14
|
-
* `data-width` and `data-height` — the content rect, as plain numbers.
|
|
17
|
+
* `data-width` and `data-height` — the content rect, as plain numbers. They carry
|
|
18
|
+
* what a custom property cannot reach: `content: attr(data-width)`, and attribute
|
|
19
|
+
* selectors.
|
|
15
20
|
*
|
|
16
21
|
* ### CSS custom properties
|
|
17
22
|
* The same eight measurements, each exposed twice: `--lm-resize-observer-width`
|
|
@@ -89,6 +94,6 @@ export const ResizeObserverComponent = ({ className, onResized, children }) => {
|
|
|
89
94
|
};
|
|
90
95
|
}
|
|
91
96
|
const c = clss(publicClassName, { cssModule });
|
|
92
|
-
const rootClss = mergeClassNames(c(), className);
|
|
97
|
+
const rootClss = mergeClassNames(c(null, { measured: contentRect !== undefined }), className);
|
|
93
98
|
return _jsx("div", { ...dataAttributes, className: rootClss, ref: rootRef, style: { ...cssCustomProps }, children: children });
|
|
94
99
|
};
|
|
@@ -37,6 +37,11 @@ export type Props = PropsWithChildren<WithClassName<WithViewportObservation<{
|
|
|
37
37
|
* properties on its root element, so scroll-driven styling needs no JavaScript
|
|
38
38
|
* of its own.
|
|
39
39
|
*
|
|
40
|
+
* ### Root element modifiers
|
|
41
|
+
* - `--measured` — a first measurement landed, so the properties below are set.
|
|
42
|
+
* - `--scrolling-up` / `--scrolling-down` — the document's last known direction.
|
|
43
|
+
* Neither is present before the first scroll.
|
|
44
|
+
*
|
|
40
45
|
* ### CSS custom properties on the root element
|
|
41
46
|
* Each measurement comes as a `px` length under its bare name, and as a `-raw`
|
|
42
47
|
* twin holding the plain number:
|
|
@@ -12,6 +12,11 @@ import cssModule from './styles.module.css';
|
|
|
12
12
|
* properties on its root element, so scroll-driven styling needs no JavaScript
|
|
13
13
|
* of its own.
|
|
14
14
|
*
|
|
15
|
+
* ### Root element modifiers
|
|
16
|
+
* - `--measured` — a first measurement landed, so the properties below are set.
|
|
17
|
+
* - `--scrolling-up` / `--scrolling-down` — the document's last known direction.
|
|
18
|
+
* Neither is present before the first scroll.
|
|
19
|
+
*
|
|
15
20
|
* ### CSS custom properties on the root element
|
|
16
21
|
* Each measurement comes as a `px` length under its bare name, and as a `-raw`
|
|
17
22
|
* twin holding the plain number:
|
|
@@ -92,7 +97,11 @@ export const ScrollListener = ({ startOnVisible, stopOnHidden, threshold, root,
|
|
|
92
97
|
}, [startOnVisible, stopOnHidden, onVisibilityChanged]);
|
|
93
98
|
// Rendering
|
|
94
99
|
const c = clss(publicClassName, { cssModule });
|
|
95
|
-
const rootClss = mergeClassNames(c(
|
|
100
|
+
const rootClss = mergeClassNames(c(null, {
|
|
101
|
+
measured: scrollState !== undefined,
|
|
102
|
+
'scrolling-up': scrollDirection === 'up',
|
|
103
|
+
'scrolling-down': scrollDirection === 'down'
|
|
104
|
+
}), className);
|
|
96
105
|
const customProps = scrollState === undefined
|
|
97
106
|
? {}
|
|
98
107
|
: toScrollCssProps(scrollState);
|
|
@@ -24,6 +24,10 @@ export type Props = SelectHTMLAttributes<HTMLSelectElement> & PropsWithChildren<
|
|
|
24
24
|
* A stable auto-generated `id` is created on mount and used to associate the
|
|
25
25
|
* rendered label through the `htmlFor` attribute.
|
|
26
26
|
*
|
|
27
|
+
* ### Root element modifiers
|
|
28
|
+
* - `--controlled` — the value comes from the parent, not from inside.
|
|
29
|
+
* - `--empty` / `--filled` — whether the current value is the empty string.
|
|
30
|
+
*
|
|
27
31
|
* ### CSS elements
|
|
28
32
|
* - `label`
|
|
29
33
|
* - `error`
|
|
@@ -15,6 +15,10 @@ import cssModule from './styles.module.css';
|
|
|
15
15
|
* A stable auto-generated `id` is created on mount and used to associate the
|
|
16
16
|
* rendered label through the `htmlFor` attribute.
|
|
17
17
|
*
|
|
18
|
+
* ### Root element modifiers
|
|
19
|
+
* - `--controlled` — the value comes from the parent, not from inside.
|
|
20
|
+
* - `--empty` / `--filled` — whether the current value is the empty string.
|
|
21
|
+
*
|
|
18
22
|
* ### CSS elements
|
|
19
23
|
* - `label`
|
|
20
24
|
* - `error`
|
|
@@ -44,6 +48,10 @@ export const Select = ({ label, error, value, defaultValue, onChange, className,
|
|
|
44
48
|
};
|
|
45
49
|
// Rendering
|
|
46
50
|
const c = clss(publicClassName, { cssModule });
|
|
47
|
-
const rootClss = mergeClassNames(c(
|
|
51
|
+
const rootClss = mergeClassNames(c(null, {
|
|
52
|
+
controlled: isControlled,
|
|
53
|
+
empty: currentValue === '',
|
|
54
|
+
filled: currentValue !== ''
|
|
55
|
+
}), className);
|
|
48
56
|
return _jsxs(_Fragment, { children: [isNotFalsy(label) && _jsx("label", { className: c('label'), htmlFor: id, children: label }), _jsx("select", { ...rest, id: id, className: rootClss, value: currentValue, onChange: handleChange, children: children }), isNotFalsy(error) && _jsx("span", { className: c('error'), children: error })] });
|
|
49
57
|
};
|
|
@@ -28,6 +28,10 @@ export type Props = PropsWithChildren<WithClassName<{
|
|
|
28
28
|
* Component that creates a Shadow Root on its host element and renders
|
|
29
29
|
* its children inside that Shadow Root using a React portal.
|
|
30
30
|
*
|
|
31
|
+
* ### Root element modifiers
|
|
32
|
+
* - `--attached` — the shadow root exists and the children are rendered into it.
|
|
33
|
+
* Absent on the first render, before the host element is in the document.
|
|
34
|
+
*
|
|
31
35
|
* @param props - Component properties
|
|
32
36
|
* @see {@link Props}
|
|
33
37
|
* @returns A host `div` element that owns the created Shadow Root.
|
|
@@ -9,6 +9,10 @@ import cssModule from './styles.module.css';
|
|
|
9
9
|
* Component that creates a Shadow Root on its host element and renders
|
|
10
10
|
* its children inside that Shadow Root using a React portal.
|
|
11
11
|
*
|
|
12
|
+
* ### Root element modifiers
|
|
13
|
+
* - `--attached` — the shadow root exists and the children are rendered into it.
|
|
14
|
+
* Absent on the first render, before the host element is in the document.
|
|
15
|
+
*
|
|
12
16
|
* @param props - Component properties
|
|
13
17
|
* @see {@link Props}
|
|
14
18
|
* @returns A host `div` element that owns the created Shadow Root.
|
|
@@ -38,6 +42,6 @@ export const ShadowRootComponent = ({ mode = 'open', delegatesFocus, slotAssignm
|
|
|
38
42
|
]);
|
|
39
43
|
// Rendering
|
|
40
44
|
const c = clss(publicClassName, { cssModule });
|
|
41
|
-
const rootClss = mergeClassNames(c(), className);
|
|
45
|
+
const rootClss = mergeClassNames(c(null, { attached: shadowRoot !== null }), className);
|
|
42
46
|
return _jsx("div", { ref: hostRef, className: rootClss, children: shadowRoot !== null && createPortal(_jsxs(_Fragment, { children: [styles !== undefined && _jsx("style", { children: styles }), children] }), shadowRoot) });
|
|
43
47
|
};
|
|
@@ -26,6 +26,10 @@ export type Props = TextareaHTMLAttributes<HTMLTextAreaElement> & WithClassName<
|
|
|
26
26
|
* A stable auto-generated `id` is created on mount and used to associate the
|
|
27
27
|
* rendered label through the `htmlFor` attribute.
|
|
28
28
|
*
|
|
29
|
+
* ### Root element modifiers
|
|
30
|
+
* - `--controlled` — the value comes from the parent, not from inside.
|
|
31
|
+
* - `--empty` / `--filled` — whether the current value is the empty string.
|
|
32
|
+
*
|
|
29
33
|
* ### CSS elements
|
|
30
34
|
* - `label`
|
|
31
35
|
* - `error`
|
|
@@ -15,6 +15,10 @@ import cssModule from './styles.module.css';
|
|
|
15
15
|
* A stable auto-generated `id` is created on mount and used to associate the
|
|
16
16
|
* rendered label through the `htmlFor` attribute.
|
|
17
17
|
*
|
|
18
|
+
* ### Root element modifiers
|
|
19
|
+
* - `--controlled` — the value comes from the parent, not from inside.
|
|
20
|
+
* - `--empty` / `--filled` — whether the current value is the empty string.
|
|
21
|
+
*
|
|
18
22
|
* ### CSS elements
|
|
19
23
|
* - `label`
|
|
20
24
|
* - `error`
|
|
@@ -53,6 +57,10 @@ export const Textarea = ({ label, error, autoHeight = false, value, defaultValue
|
|
|
53
57
|
};
|
|
54
58
|
// Rendering
|
|
55
59
|
const c = clss(publicClassName, { cssModule });
|
|
56
|
-
const rootClss = mergeClassNames(c(
|
|
60
|
+
const rootClss = mergeClassNames(c(null, {
|
|
61
|
+
controlled: isControlled,
|
|
62
|
+
empty: currentValue === '',
|
|
63
|
+
filled: currentValue !== ''
|
|
64
|
+
}), className);
|
|
57
65
|
return _jsxs(_Fragment, { children: [isNotFalsy(label) && _jsx("label", { className: c('label'), htmlFor: id, children: label }), _jsx("textarea", { ...rest, ref: textareaRef, id: id, className: rootClss, value: currentValue, onChange: handleChange }), isNotFalsy(error) && _jsx("span", { className: c('error'), children: error })] });
|
|
58
66
|
};
|
|
@@ -146,8 +146,14 @@ export type Props = PropsWithChildren<WithClassName<{
|
|
|
146
146
|
* - `data-total-time-ms` — total duration in milliseconds.
|
|
147
147
|
*
|
|
148
148
|
* ### CSS custom properties on the root element
|
|
149
|
-
*
|
|
150
|
-
*
|
|
149
|
+
* Durations come as a `ms` time under the bare name and as a plain number under a
|
|
150
|
+
* `-raw` twin; ratios are unitless and have no twin.
|
|
151
|
+
* - `--lm-video-current-time` / `--lm-video-current-time-raw`
|
|
152
|
+
* - `--lm-video-total-time` / `--lm-video-total-time-raw`
|
|
153
|
+
* - `--lm-video-current-time-ratio` — how far through the media the playhead is.
|
|
154
|
+
* What a progress bar animates on, with no JavaScript of its own.
|
|
155
|
+
* - `--lm-video-volume-ratio`
|
|
156
|
+
* - `--lm-video-playback-rate` — a multiplier, not a ratio: `1` is normal speed.
|
|
151
157
|
*
|
|
152
158
|
* @param props - Component properties.
|
|
153
159
|
* @see {@link Props}
|
|
@@ -35,8 +35,14 @@ import { forceExitFullscreen, forceFullscreen, forceLoud, forceMute, forcePause,
|
|
|
35
35
|
* - `data-total-time-ms` — total duration in milliseconds.
|
|
36
36
|
*
|
|
37
37
|
* ### CSS custom properties on the root element
|
|
38
|
-
*
|
|
39
|
-
*
|
|
38
|
+
* Durations come as a `ms` time under the bare name and as a plain number under a
|
|
39
|
+
* `-raw` twin; ratios are unitless and have no twin.
|
|
40
|
+
* - `--lm-video-current-time` / `--lm-video-current-time-raw`
|
|
41
|
+
* - `--lm-video-total-time` / `--lm-video-total-time-raw`
|
|
42
|
+
* - `--lm-video-current-time-ratio` — how far through the media the playhead is.
|
|
43
|
+
* What a progress bar animates on, with no JavaScript of its own.
|
|
44
|
+
* - `--lm-video-volume-ratio`
|
|
45
|
+
* - `--lm-video-playback-rate` — a multiplier, not a ratio: `1` is normal speed.
|
|
40
46
|
*
|
|
41
47
|
* @param props - Component properties.
|
|
42
48
|
* @see {@link Props}
|
|
@@ -159,7 +165,13 @@ export const ControlledVideo = ({ sources, tracks, subtitles, playBtnContent, pa
|
|
|
159
165
|
'data-total-time-ms': totalTimeMs
|
|
160
166
|
};
|
|
161
167
|
const rootStyles = {
|
|
162
|
-
|
|
168
|
+
'--lm-video-current-time': `${currentTimeMs}ms`,
|
|
169
|
+
'--lm-video-current-time-raw': `${currentTimeMs}`,
|
|
170
|
+
'--lm-video-total-time': `${totalTimeMs}ms`,
|
|
171
|
+
'--lm-video-total-time-raw': `${totalTimeMs}`,
|
|
172
|
+
'--lm-video-current-time-ratio': `${currentTimeRatio}`,
|
|
173
|
+
'--lm-video-volume-ratio': `${volume}`,
|
|
174
|
+
'--lm-video-playback-rate': `${playbackRate}`
|
|
163
175
|
};
|
|
164
176
|
const parsedSources = useMemo(() => {
|
|
165
177
|
if (sources === undefined)
|
package/components/index.d.ts
CHANGED
|
@@ -10,16 +10,16 @@ export * as image from './Image/index.js'
|
|
|
10
10
|
export * as input from './Input/index.js'
|
|
11
11
|
export * as intersectionObserver from './IntersectionObserver/index.js'
|
|
12
12
|
export * as jsonEditor from './JsonEditor/index.js'
|
|
13
|
-
export * as listLoader from './ListLoader/index.js'
|
|
14
13
|
export * as overlayer from './Overlayer/index.js'
|
|
15
|
-
export * as
|
|
16
|
-
export * as resizeObserver from './ResizeObserver/index.js'
|
|
17
|
-
export * as scrllgngn from './Scrllgngn/index.js'
|
|
14
|
+
export * as listLoader from './ListLoader/index.js'
|
|
18
15
|
export * as scrollListener from './ScrollListener/index.js'
|
|
19
|
-
export * as
|
|
16
|
+
export * as paginator from './Paginator/index.js'
|
|
20
17
|
export * as sequencer from './Sequencer/index.js'
|
|
18
|
+
export * as select from './Select/index.js'
|
|
19
|
+
export * as scrllgngn from './Scrllgngn/index.js'
|
|
21
20
|
export * as shadowRoot from './ShadowRoot/index.js'
|
|
22
21
|
export * as subtitles from './Subtitles/index.js'
|
|
22
|
+
export * as resizeObserver from './ResizeObserver/index.js'
|
|
23
23
|
export * as textarea from './Textarea/index.js'
|
|
24
24
|
export * as theatre from './Theatre/index.js'
|
|
25
25
|
export * as uiModule from './UIModule/index.js'
|
package/components/index.js
CHANGED
|
@@ -10,16 +10,16 @@ export * as image from './Image/index.js'
|
|
|
10
10
|
export * as input from './Input/index.js'
|
|
11
11
|
export * as intersectionObserver from './IntersectionObserver/index.js'
|
|
12
12
|
export * as jsonEditor from './JsonEditor/index.js'
|
|
13
|
-
export * as listLoader from './ListLoader/index.js'
|
|
14
13
|
export * as overlayer from './Overlayer/index.js'
|
|
15
|
-
export * as
|
|
16
|
-
export * as resizeObserver from './ResizeObserver/index.js'
|
|
17
|
-
export * as scrllgngn from './Scrllgngn/index.js'
|
|
14
|
+
export * as listLoader from './ListLoader/index.js'
|
|
18
15
|
export * as scrollListener from './ScrollListener/index.js'
|
|
19
|
-
export * as
|
|
16
|
+
export * as paginator from './Paginator/index.js'
|
|
20
17
|
export * as sequencer from './Sequencer/index.js'
|
|
18
|
+
export * as select from './Select/index.js'
|
|
19
|
+
export * as scrllgngn from './Scrllgngn/index.js'
|
|
21
20
|
export * as shadowRoot from './ShadowRoot/index.js'
|
|
22
21
|
export * as subtitles from './Subtitles/index.js'
|
|
22
|
+
export * as resizeObserver from './ResizeObserver/index.js'
|
|
23
23
|
export * as textarea from './Textarea/index.js'
|
|
24
24
|
export * as theatre from './Theatre/index.js'
|
|
25
25
|
export * as uiModule from './UIModule/index.js'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * as copy from './copy/index.js'
|
|
2
2
|
export * as download from './download/index.js'
|
|
3
3
|
export * as exists from './exists/index.js'
|
|
4
|
-
export * as move from './move/index.js'
|
|
5
4
|
export * as remove from './remove/index.js'
|
|
6
5
|
export * as stat from './stat/index.js'
|
|
6
|
+
export * as move from './move/index.js'
|
|
7
7
|
export * as upload from './upload/index.js'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * as copy from './copy/index.js'
|
|
2
2
|
export * as download from './download/index.js'
|
|
3
3
|
export * as exists from './exists/index.js'
|
|
4
|
-
export * as move from './move/index.js'
|
|
5
4
|
export * as remove from './remove/index.js'
|
|
6
5
|
export * as stat from './stat/index.js'
|
|
6
|
+
export * as move from './move/index.js'
|
|
7
7
|
export * as upload from './upload/index.js'
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export * as copy from './copy/index.js'
|
|
2
|
-
export * as download from './download/index.js'
|
|
3
|
-
export * as generateSignedUrl from './generate-signed-url/index.js'
|
|
4
2
|
export * as exists from './exists/index.js'
|
|
3
|
+
export * as generateSignedUrl from './generate-signed-url/index.js'
|
|
5
4
|
export * as getMetadata from './get-metadata/index.js'
|
|
6
5
|
export * as getPermissions from './get-permissions/index.js'
|
|
7
6
|
export * as move from './move/index.js'
|
|
7
|
+
export * as download from './download/index.js'
|
|
8
8
|
export * as remove from './remove/index.js'
|
|
9
|
-
export * as revokeSignedUrls from './revoke-signed-urls/index.js'
|
|
10
9
|
export * as stat from './stat/index.js'
|
|
10
|
+
export * as revokeSignedUrls from './revoke-signed-urls/index.js'
|
|
11
11
|
export * as updateMetadata from './update-metadata/index.js'
|
|
12
12
|
export * as upload from './upload/index.js'
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export * as copy from './copy/index.js'
|
|
2
|
-
export * as download from './download/index.js'
|
|
3
|
-
export * as generateSignedUrl from './generate-signed-url/index.js'
|
|
4
2
|
export * as exists from './exists/index.js'
|
|
3
|
+
export * as generateSignedUrl from './generate-signed-url/index.js'
|
|
5
4
|
export * as getMetadata from './get-metadata/index.js'
|
|
6
5
|
export * as getPermissions from './get-permissions/index.js'
|
|
7
6
|
export * as move from './move/index.js'
|
|
7
|
+
export * as download from './download/index.js'
|
|
8
8
|
export * as remove from './remove/index.js'
|
|
9
|
-
export * as revokeSignedUrls from './revoke-signed-urls/index.js'
|
|
10
9
|
export * as stat from './stat/index.js'
|
|
10
|
+
export * as revokeSignedUrls from './revoke-signed-urls/index.js'
|
|
11
11
|
export * as updateMetadata from './update-metadata/index.js'
|
|
12
12
|
export * as upload from './upload/index.js'
|
|
@@ -3,8 +3,8 @@ export * as copyFile from './copy-file/index.js'
|
|
|
3
3
|
export * as downloadFile from './download-file/index.js'
|
|
4
4
|
export * as existsFile from './exists-file/index.js'
|
|
5
5
|
export * as listDir from './list-dir/index.js'
|
|
6
|
-
export * as moveDir from './move-dir/index.js'
|
|
7
6
|
export * as moveFile from './move-file/index.js'
|
|
7
|
+
export * as moveDir from './move-dir/index.js'
|
|
8
8
|
export * as removeDir from './remove-dir/index.js'
|
|
9
9
|
export * as removeFile from './remove-file/index.js'
|
|
10
10
|
export * as statFile from './stat-file/index.js'
|
|
@@ -3,8 +3,8 @@ export * as copyFile from './copy-file/index.js'
|
|
|
3
3
|
export * as downloadFile from './download-file/index.js'
|
|
4
4
|
export * as existsFile from './exists-file/index.js'
|
|
5
5
|
export * as listDir from './list-dir/index.js'
|
|
6
|
-
export * as moveDir from './move-dir/index.js'
|
|
7
6
|
export * as moveFile from './move-file/index.js'
|
|
7
|
+
export * as moveDir from './move-dir/index.js'
|
|
8
8
|
export * as removeDir from './remove-dir/index.js'
|
|
9
9
|
export * as removeFile from './remove-file/index.js'
|
|
10
10
|
export * as statFile from './stat-file/index.js'
|
package/node/files/index.d.ts
CHANGED
package/node/files/index.js
CHANGED
package/node/images/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * as create from './create/index.js'
|
|
2
1
|
export * as format from './format/index.js'
|
|
3
2
|
export * as metadata from './metadata/index.js'
|
|
4
3
|
export * as transform from './transform/index.js'
|
|
5
4
|
export * as utils from './utils/index.js'
|
|
5
|
+
export * as create from './create/index.js'
|
package/node/images/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * as create from './create/index.js'
|
|
2
1
|
export * as format from './format/index.js'
|
|
3
2
|
export * as metadata from './metadata/index.js'
|
|
4
3
|
export * as transform from './transform/index.js'
|
|
5
4
|
export * as utils from './utils/index.js'
|
|
5
|
+
export * as create from './create/index.js'
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export * as blur from './blur/index.js'
|
|
2
1
|
export * as brighten from './brighten/index.js'
|
|
2
|
+
export * as blur from './blur/index.js'
|
|
3
3
|
export * as extend from './extend/index.js'
|
|
4
|
-
export * as extract from './extract/index.js'
|
|
5
4
|
export * as flatten from './flatten/index.js'
|
|
5
|
+
export * as extract from './extract/index.js'
|
|
6
6
|
export * as flip from './flip/index.js'
|
|
7
7
|
export * as flop from './flop/index.js'
|
|
8
|
-
export * as hue from './hue/index.js'
|
|
9
8
|
export * as level from './level/index.js'
|
|
10
|
-
export * as
|
|
9
|
+
export * as hue from './hue/index.js'
|
|
11
10
|
export * as normalize from './normalize/index.js'
|
|
11
|
+
export * as lighten from './lighten/index.js'
|
|
12
12
|
export * as overlay from './overlay/index.js'
|
|
13
13
|
export * as resize from './resize/index.js'
|
|
14
|
-
export * as rotate from './rotate/index.js'
|
|
15
14
|
export * as saturate from './saturate/index.js'
|
|
15
|
+
export * as rotate from './rotate/index.js'
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export * as blur from './blur/index.js'
|
|
2
1
|
export * as brighten from './brighten/index.js'
|
|
2
|
+
export * as blur from './blur/index.js'
|
|
3
3
|
export * as extend from './extend/index.js'
|
|
4
|
-
export * as extract from './extract/index.js'
|
|
5
4
|
export * as flatten from './flatten/index.js'
|
|
5
|
+
export * as extract from './extract/index.js'
|
|
6
6
|
export * as flip from './flip/index.js'
|
|
7
7
|
export * as flop from './flop/index.js'
|
|
8
|
-
export * as hue from './hue/index.js'
|
|
9
8
|
export * as level from './level/index.js'
|
|
10
|
-
export * as
|
|
9
|
+
export * as hue from './hue/index.js'
|
|
11
10
|
export * as normalize from './normalize/index.js'
|
|
11
|
+
export * as lighten from './lighten/index.js'
|
|
12
12
|
export * as overlay from './overlay/index.js'
|
|
13
13
|
export * as resize from './resize/index.js'
|
|
14
|
-
export * as rotate from './rotate/index.js'
|
|
15
14
|
export * as saturate from './saturate/index.js'
|
|
15
|
+
export * as rotate from './rotate/index.js'
|