@design-edito/tools 0.4.20 → 0.4.21
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 +1 -1
- package/agnostic/arrays/index.js +1 -1
- package/agnostic/colors/index.d.ts +2 -2
- package/agnostic/colors/index.js +2 -2
- package/agnostic/css/index.d.ts +2 -2
- package/agnostic/css/index.js +2 -2
- package/agnostic/html/hyper-json/smart-tags/coalesced/index.d.ts +16 -16
- package/agnostic/html/hyper-json/smart-tags/coalesced/index.js +16 -16
- package/agnostic/html/hyper-json/smart-tags/isolated/index.d.ts +2 -2
- package/agnostic/html/hyper-json/smart-tags/isolated/index.js +2 -2
- package/agnostic/html/index.d.ts +2 -2
- package/agnostic/html/index.js +2 -2
- package/agnostic/index.d.ts +2 -2
- package/agnostic/index.js +2 -2
- package/agnostic/misc/index.d.ts +3 -3
- package/agnostic/misc/index.js +3 -3
- package/agnostic/numbers/index.d.ts +1 -1
- package/agnostic/numbers/index.js +1 -1
- package/agnostic/sanitization/index.d.ts +1 -1
- package/agnostic/sanitization/index.js +1 -1
- package/agnostic/strings/index.d.ts +2 -2
- package/agnostic/strings/index.js +2 -2
- package/components/Button/index.d.ts +20 -0
- package/components/Button/index.js +10 -0
- package/components/Input/index.d.ts +26 -0
- package/components/Input/index.js +16 -0
- package/components/JsonEditor/index.d.ts +39 -0
- package/components/JsonEditor/index.js +64 -0
- package/components/Select/index.d.ts +27 -0
- package/components/Select/index.js +16 -0
- package/components/Textarea/index.d.ts +26 -0
- package/components/Textarea/index.js +16 -0
- package/components/index.d.ts +1 -1
- package/components/index.js +1 -1
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/node/@google-cloud/storage/file/index.d.ts +1 -1
- package/node/@google-cloud/storage/file/index.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/index.d.ts +1 -1
- package/node/images/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 +1 -1
- package/node/index.js +1 -1
- 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
3
|
export * as isArrayOf from './is-array-of/index.js'
|
|
4
|
-
export * as randomPick from './random-pick/index.js'
|
|
5
4
|
export * as make from './make/index.js'
|
|
5
|
+
export * as randomPick from './random-pick/index.js'
|
|
6
6
|
export * as shuffle from './shuffle/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
3
|
export * as isArrayOf from './is-array-of/index.js'
|
|
4
|
-
export * as randomPick from './random-pick/index.js'
|
|
5
4
|
export * as make from './make/index.js'
|
|
5
|
+
export * as randomPick from './random-pick/index.js'
|
|
6
6
|
export * as shuffle from './shuffle/index.js'
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
export * as contrast from './contrast/index.js'
|
|
2
1
|
export * as channels from './channels/index.js'
|
|
2
|
+
export * as contrast from './contrast/index.js'
|
|
3
3
|
export * as convert from './convert/index.js'
|
|
4
|
+
export * as distance from './distance/index.js'
|
|
4
5
|
export * as grayscale from './grayscale/index.js'
|
|
5
6
|
export * as invert from './invert/index.js'
|
|
6
7
|
export * as lerp from './lerp/index.js'
|
|
@@ -9,4 +10,3 @@ export * as palette from './palette/index.js'
|
|
|
9
10
|
export * as rotate from './rotate/index.js'
|
|
10
11
|
export * as tidy from './tidy/index.js'
|
|
11
12
|
export * as typechecks from './typechecks/index.js'
|
|
12
|
-
export * as distance from './distance/index.js'
|
package/agnostic/colors/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
export * as contrast from './contrast/index.js'
|
|
2
1
|
export * as channels from './channels/index.js'
|
|
2
|
+
export * as contrast from './contrast/index.js'
|
|
3
3
|
export * as convert from './convert/index.js'
|
|
4
|
+
export * as distance from './distance/index.js'
|
|
4
5
|
export * as grayscale from './grayscale/index.js'
|
|
5
6
|
export * as invert from './invert/index.js'
|
|
6
7
|
export * as lerp from './lerp/index.js'
|
|
@@ -9,4 +10,3 @@ export * as palette from './palette/index.js'
|
|
|
9
10
|
export * as rotate from './rotate/index.js'
|
|
10
11
|
export * as tidy from './tidy/index.js'
|
|
11
12
|
export * as typechecks from './typechecks/index.js'
|
|
12
|
-
export * as distance from './distance/index.js'
|
package/agnostic/css/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
export * as bem from './bem/index.js'
|
|
1
2
|
export * as clss from './clss/index.js'
|
|
2
3
|
export * as generateNiceColor from './generate-nice-color/index.js'
|
|
3
|
-
export * as isValidCssClassName from './is-valid-css-class-name/index.js'
|
|
4
4
|
export * as scale from './scale/index.js'
|
|
5
|
+
export * as isValidCssClassName from './is-valid-css-class-name/index.js'
|
|
5
6
|
export * as stylesSet from './styles-set/index.js'
|
|
6
|
-
export * as bem from './bem/index.js'
|
package/agnostic/css/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
export * as bem from './bem/index.js'
|
|
1
2
|
export * as clss from './clss/index.js'
|
|
2
3
|
export * as generateNiceColor from './generate-nice-color/index.js'
|
|
3
|
-
export * as isValidCssClassName from './is-valid-css-class-name/index.js'
|
|
4
4
|
export * as scale from './scale/index.js'
|
|
5
|
+
export * as isValidCssClassName from './is-valid-css-class-name/index.js'
|
|
5
6
|
export * as stylesSet from './styles-set/index.js'
|
|
6
|
-
export * as bem from './bem/index.js'
|
|
@@ -1,52 +1,52 @@
|
|
|
1
1
|
export * as add from './add/index.js'
|
|
2
|
-
export * as addclass from './addclass/index.js'
|
|
3
2
|
export * as and from './and/index.js'
|
|
4
3
|
export * as append from './append/index.js'
|
|
5
4
|
export * as at from './at/index.js'
|
|
6
5
|
export * as call from './call/index.js'
|
|
7
6
|
export * as clone from './clone/index.js'
|
|
8
7
|
export * as deleteproperties from './deleteproperties/index.js'
|
|
8
|
+
export * as equals from './equals/index.js'
|
|
9
|
+
export * as addclass from './addclass/index.js'
|
|
9
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
13
|
export * as hjparse from './hjparse/index.js'
|
|
13
|
-
export * as equals from './equals/index.js'
|
|
14
|
-
export * as hjstringify from './hjstringify/index.js'
|
|
15
14
|
export * as if from './if/index.js'
|
|
15
|
+
export * as hjstringify from './hjstringify/index.js'
|
|
16
16
|
export * as initialize from './initialize/index.js'
|
|
17
|
-
export * as length from './length/index.js'
|
|
18
17
|
export * as join from './join/index.js'
|
|
19
|
-
export * as
|
|
18
|
+
export * as length from './length/index.js'
|
|
19
|
+
export * as map from './map/index.js'
|
|
20
20
|
export * as notrailing from './notrailing/index.js'
|
|
21
|
+
export * as negate from './negate/index.js'
|
|
22
|
+
export * as pickrandom from './pickrandom/index.js'
|
|
21
23
|
export * as or from './or/index.js'
|
|
22
24
|
export * as populate from './populate/index.js'
|
|
23
|
-
export * as pickrandom from './pickrandom/index.js'
|
|
24
25
|
export * as print from './print/index.js'
|
|
25
|
-
export * as map from './map/index.js'
|
|
26
26
|
export * as pusheach from './pusheach/index.js'
|
|
27
27
|
export * as push from './push/index.js'
|
|
28
28
|
export * as recordtoarray from './recordtoarray/index.js'
|
|
29
29
|
export * as removeattribute from './removeattribute/index.js'
|
|
30
|
-
export * as renameproperty from './renameproperty/index.js'
|
|
31
30
|
export * as removeclass from './removeclass/index.js'
|
|
32
|
-
export * as
|
|
33
|
-
export * as set from './set/index.js'
|
|
34
|
-
export * as setattribute from './setattribute/index.js'
|
|
31
|
+
export * as renameproperty from './renameproperty/index.js'
|
|
35
32
|
export * as select from './select/index.js'
|
|
36
|
-
export * as
|
|
33
|
+
export * as set from './set/index.js'
|
|
34
|
+
export * as replace from './replace/index.js'
|
|
37
35
|
export * as setproperty from './setproperty/index.js'
|
|
38
|
-
export * as
|
|
36
|
+
export * as sorton from './sorton/index.js'
|
|
39
37
|
export * as split from './split/index.js'
|
|
38
|
+
export * as spread from './spread/index.js'
|
|
40
39
|
export * as toarray from './toarray/index.js'
|
|
40
|
+
export * as toboolean from './toboolean/index.js'
|
|
41
41
|
export * as toelement from './toelement/index.js'
|
|
42
42
|
export * as toggleclass from './toggleclass/index.js'
|
|
43
|
-
export * as
|
|
43
|
+
export * as setattribute from './setattribute/index.js'
|
|
44
|
+
export * as tonull from './tonull/index.js'
|
|
44
45
|
export * as tonodelist from './tonodelist/index.js'
|
|
45
46
|
export * as tonumber from './tonumber/index.js'
|
|
46
47
|
export * as torecord from './torecord/index.js'
|
|
47
|
-
export * as tonull from './tonull/index.js'
|
|
48
48
|
export * as toref from './toref/index.js'
|
|
49
|
+
export * as totext from './totext/index.js'
|
|
49
50
|
export * as tostring from './tostring/index.js'
|
|
50
51
|
export * as transformselected from './transformselected/index.js'
|
|
51
|
-
export * as totext from './totext/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'
|
|
3
2
|
export * as and from './and/index.js'
|
|
4
3
|
export * as append from './append/index.js'
|
|
5
4
|
export * as at from './at/index.js'
|
|
6
5
|
export * as call from './call/index.js'
|
|
7
6
|
export * as clone from './clone/index.js'
|
|
8
7
|
export * as deleteproperties from './deleteproperties/index.js'
|
|
8
|
+
export * as equals from './equals/index.js'
|
|
9
|
+
export * as addclass from './addclass/index.js'
|
|
9
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
13
|
export * as hjparse from './hjparse/index.js'
|
|
13
|
-
export * as equals from './equals/index.js'
|
|
14
|
-
export * as hjstringify from './hjstringify/index.js'
|
|
15
14
|
export * as if from './if/index.js'
|
|
15
|
+
export * as hjstringify from './hjstringify/index.js'
|
|
16
16
|
export * as initialize from './initialize/index.js'
|
|
17
|
-
export * as length from './length/index.js'
|
|
18
17
|
export * as join from './join/index.js'
|
|
19
|
-
export * as
|
|
18
|
+
export * as length from './length/index.js'
|
|
19
|
+
export * as map from './map/index.js'
|
|
20
20
|
export * as notrailing from './notrailing/index.js'
|
|
21
|
+
export * as negate from './negate/index.js'
|
|
22
|
+
export * as pickrandom from './pickrandom/index.js'
|
|
21
23
|
export * as or from './or/index.js'
|
|
22
24
|
export * as populate from './populate/index.js'
|
|
23
|
-
export * as pickrandom from './pickrandom/index.js'
|
|
24
25
|
export * as print from './print/index.js'
|
|
25
|
-
export * as map from './map/index.js'
|
|
26
26
|
export * as pusheach from './pusheach/index.js'
|
|
27
27
|
export * as push from './push/index.js'
|
|
28
28
|
export * as recordtoarray from './recordtoarray/index.js'
|
|
29
29
|
export * as removeattribute from './removeattribute/index.js'
|
|
30
|
-
export * as renameproperty from './renameproperty/index.js'
|
|
31
30
|
export * as removeclass from './removeclass/index.js'
|
|
32
|
-
export * as
|
|
33
|
-
export * as set from './set/index.js'
|
|
34
|
-
export * as setattribute from './setattribute/index.js'
|
|
31
|
+
export * as renameproperty from './renameproperty/index.js'
|
|
35
32
|
export * as select from './select/index.js'
|
|
36
|
-
export * as
|
|
33
|
+
export * as set from './set/index.js'
|
|
34
|
+
export * as replace from './replace/index.js'
|
|
37
35
|
export * as setproperty from './setproperty/index.js'
|
|
38
|
-
export * as
|
|
36
|
+
export * as sorton from './sorton/index.js'
|
|
39
37
|
export * as split from './split/index.js'
|
|
38
|
+
export * as spread from './spread/index.js'
|
|
40
39
|
export * as toarray from './toarray/index.js'
|
|
40
|
+
export * as toboolean from './toboolean/index.js'
|
|
41
41
|
export * as toelement from './toelement/index.js'
|
|
42
42
|
export * as toggleclass from './toggleclass/index.js'
|
|
43
|
-
export * as
|
|
43
|
+
export * as setattribute from './setattribute/index.js'
|
|
44
|
+
export * as tonull from './tonull/index.js'
|
|
44
45
|
export * as tonodelist from './tonodelist/index.js'
|
|
45
46
|
export * as tonumber from './tonumber/index.js'
|
|
46
47
|
export * as torecord from './torecord/index.js'
|
|
47
|
-
export * as tonull from './tonull/index.js'
|
|
48
48
|
export * as toref from './toref/index.js'
|
|
49
|
+
export * as totext from './totext/index.js'
|
|
49
50
|
export * as tostring from './tostring/index.js'
|
|
50
51
|
export * as transformselected from './transformselected/index.js'
|
|
51
|
-
export * as totext from './totext/index.js'
|
|
52
52
|
export * as trim from './trim/index.js'
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export * as any from './any/index.js'
|
|
2
2
|
export * as array from './array/index.js'
|
|
3
3
|
export * as boolean from './boolean/index.js'
|
|
4
|
-
export * as element from './element/index.js'
|
|
5
4
|
export * as get from './get/index.js'
|
|
6
5
|
export * as guess from './guess/index.js'
|
|
6
|
+
export * as element from './element/index.js'
|
|
7
7
|
export * as nodelist from './nodelist/index.js'
|
|
8
|
-
export * as null from './null/index.js'
|
|
9
8
|
export * as number from './number/index.js'
|
|
9
|
+
export * as null from './null/index.js'
|
|
10
10
|
export * as record from './record/index.js'
|
|
11
11
|
export * as ref from './ref/index.js'
|
|
12
12
|
export * as string from './string/index.js'
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export * as any from './any/index.js'
|
|
2
2
|
export * as array from './array/index.js'
|
|
3
3
|
export * as boolean from './boolean/index.js'
|
|
4
|
-
export * as element from './element/index.js'
|
|
5
4
|
export * as get from './get/index.js'
|
|
6
5
|
export * as guess from './guess/index.js'
|
|
6
|
+
export * as element from './element/index.js'
|
|
7
7
|
export * as nodelist from './nodelist/index.js'
|
|
8
|
-
export * as null from './null/index.js'
|
|
9
8
|
export * as number from './number/index.js'
|
|
9
|
+
export * as null from './null/index.js'
|
|
10
10
|
export * as record from './record/index.js'
|
|
11
11
|
export * as ref from './ref/index.js'
|
|
12
12
|
export * as string from './string/index.js'
|
package/agnostic/html/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export * as deepSelect from './deep-select/index.js'
|
|
2
2
|
export * as getNodeAncestors from './get-node-ancestors/index.js'
|
|
3
|
-
export * as hyperJson from './hyper-json/index.js'
|
|
4
3
|
export * as getPositionInsideParent from './get-position-inside-parent/index.js'
|
|
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
7
|
export * as selectorToElement from './selector-to-element/index.js'
|
|
8
|
+
export * as placeholders from './placeholders/index.js'
|
|
9
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
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export * as deepSelect from './deep-select/index.js'
|
|
2
2
|
export * as getNodeAncestors from './get-node-ancestors/index.js'
|
|
3
|
-
export * as hyperJson from './hyper-json/index.js'
|
|
4
3
|
export * as getPositionInsideParent from './get-position-inside-parent/index.js'
|
|
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
7
|
export * as selectorToElement from './selector-to-element/index.js'
|
|
8
|
+
export * as placeholders from './placeholders/index.js'
|
|
9
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,13 +1,13 @@
|
|
|
1
|
-
export * as booleans from './booleans/index.js'
|
|
2
1
|
export * as arrays from './arrays/index.js'
|
|
2
|
+
export * as booleans from './booleans/index.js'
|
|
3
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
|
-
export * as objects from './objects/index.js'
|
|
10
9
|
export * as optim from './optim/index.js'
|
|
10
|
+
export * as objects from './objects/index.js'
|
|
11
11
|
export * as random from './random/index.js'
|
|
12
12
|
export * as regexps from './regexps/index.js'
|
|
13
13
|
export * as sanitization from './sanitization/index.js'
|
package/agnostic/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export * as booleans from './booleans/index.js'
|
|
2
1
|
export * as arrays from './arrays/index.js'
|
|
2
|
+
export * as booleans from './booleans/index.js'
|
|
3
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
|
-
export * as objects from './objects/index.js'
|
|
10
9
|
export * as optim from './optim/index.js'
|
|
10
|
+
export * as objects from './objects/index.js'
|
|
11
11
|
export * as random from './random/index.js'
|
|
12
12
|
export * as regexps from './regexps/index.js'
|
|
13
13
|
export * as sanitization from './sanitization/index.js'
|
package/agnostic/misc/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export * as cast from './cast/index.js'
|
|
2
1
|
export * as assert from './assert/index.js'
|
|
2
|
+
export * as cast from './cast/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
6
|
export * as dataSize from './data-size/index.js'
|
|
7
7
|
export * as isConstructorFunction from './is-constructor-function/index.js'
|
|
8
|
-
export * as logs from './logs/index.js'
|
|
9
8
|
export * as isNullish from './is-nullish/index.js'
|
|
10
|
-
export * as
|
|
9
|
+
export * as logs from './logs/index.js'
|
|
11
10
|
export * as loremIpsum from './lorem-ipsum/index.js'
|
|
11
|
+
export * as normalizeExtension from './normalize-extension/index.js'
|
|
12
12
|
export * as outcome from './outcome/index.js'
|
package/agnostic/misc/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export * as cast from './cast/index.js'
|
|
2
1
|
export * as assert from './assert/index.js'
|
|
2
|
+
export * as cast from './cast/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
6
|
export * as dataSize from './data-size/index.js'
|
|
7
7
|
export * as isConstructorFunction from './is-constructor-function/index.js'
|
|
8
|
-
export * as logs from './logs/index.js'
|
|
9
8
|
export * as isNullish from './is-nullish/index.js'
|
|
10
|
-
export * as
|
|
9
|
+
export * as logs from './logs/index.js'
|
|
11
10
|
export * as loremIpsum from './lorem-ipsum/index.js'
|
|
11
|
+
export * as normalizeExtension from './normalize-extension/index.js'
|
|
12
12
|
export * as outcome from './outcome/index.js'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * as absoluteModulo from './absolute-modulo/index.js'
|
|
2
|
-
export * as clamp from './clamp/index.js'
|
|
3
2
|
export * as approximateRational from './approximate-rational/index.js'
|
|
3
|
+
export * as clamp from './clamp/index.js'
|
|
4
4
|
export * as geometricProgressions from './geometric-progressions/index.js'
|
|
5
5
|
export * as interpolate from './interpolate/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
|
-
export * as clamp from './clamp/index.js'
|
|
3
2
|
export * as approximateRational from './approximate-rational/index.js'
|
|
3
|
+
export * as clamp from './clamp/index.js'
|
|
4
4
|
export * as geometricProgressions from './geometric-progressions/index.js'
|
|
5
5
|
export * as interpolate from './interpolate/index.js'
|
|
6
6
|
export * as round from './round/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'
|
|
5
|
+
export * as parseTable from './parse-table/index.js'
|
|
6
6
|
export * as splitTrim from './split-trim/index.js'
|
|
7
|
-
export * as trim from './trim/index.js'
|
|
8
7
|
export * as toAlphanum from './to-alphanum/index.js'
|
|
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 parseTable from './parse-table/index.js'
|
|
5
4
|
export * as replaceAll from './replace-all/index.js'
|
|
5
|
+
export * as parseTable from './parse-table/index.js'
|
|
6
6
|
export * as splitTrim from './split-trim/index.js'
|
|
7
|
-
export * as trim from './trim/index.js'
|
|
8
7
|
export * as toAlphanum from './to-alphanum/index.js'
|
|
8
|
+
export * as trim from './trim/index.js'
|
|
@@ -1,7 +1,27 @@
|
|
|
1
1
|
import { type FunctionComponent, type ButtonHTMLAttributes, type ReactNode } from 'react';
|
|
2
2
|
import type { WithClassName } from '../utils/types.js';
|
|
3
|
+
/**
|
|
4
|
+
* Props for the {@link Button} component.
|
|
5
|
+
*
|
|
6
|
+
* Extends all native {@link ButtonHTMLAttributes} and {@link WithClassName}
|
|
7
|
+
* with optional label and error content.
|
|
8
|
+
*
|
|
9
|
+
* @property label - Content rendered as the button label.
|
|
10
|
+
* @property error - Content rendered to convey an error state associated with the button.
|
|
11
|
+
* @property className - Additional class name(s) applied to the root element.
|
|
12
|
+
*/
|
|
3
13
|
export type Props = ButtonHTMLAttributes<HTMLButtonElement> & WithClassName<{
|
|
4
14
|
label?: ReactNode;
|
|
5
15
|
error?: ReactNode;
|
|
6
16
|
}>;
|
|
17
|
+
/**
|
|
18
|
+
* Base button component.
|
|
19
|
+
*
|
|
20
|
+
* Renders a native `<button>` element with scoped class names applied.
|
|
21
|
+
* All standard button attributes are forwarded to the underlying element.
|
|
22
|
+
*
|
|
23
|
+
* @param props - Component properties.
|
|
24
|
+
* @see {@link Props}
|
|
25
|
+
* @returns A styled native button element.
|
|
26
|
+
*/
|
|
7
27
|
export declare const Button: FunctionComponent<Props>;
|
|
@@ -3,6 +3,16 @@ import { clss } from '../../agnostic/css/clss/index.js';
|
|
|
3
3
|
import { mergeClassNames } from '../utils/index.js';
|
|
4
4
|
import { button as publicClassName } from '../public-classnames.js';
|
|
5
5
|
import cssModule from './styles.module.css';
|
|
6
|
+
/**
|
|
7
|
+
* Base button component.
|
|
8
|
+
*
|
|
9
|
+
* Renders a native `<button>` element with scoped class names applied.
|
|
10
|
+
* All standard button attributes are forwarded to the underlying element.
|
|
11
|
+
*
|
|
12
|
+
* @param props - Component properties.
|
|
13
|
+
* @see {@link Props}
|
|
14
|
+
* @returns A styled native button element.
|
|
15
|
+
*/
|
|
6
16
|
export const Button = ({ label, error, className, ...rest }) => {
|
|
7
17
|
const c = clss(publicClassName, { cssModule });
|
|
8
18
|
const rootClss = mergeClassNames(c(null), className);
|
|
@@ -1,7 +1,33 @@
|
|
|
1
1
|
import { type FunctionComponent, type InputHTMLAttributes, type ReactNode } from 'react';
|
|
2
2
|
import type { WithClassName } from '../utils/types.js';
|
|
3
|
+
/**
|
|
4
|
+
* Props for the {@link Input} component.
|
|
5
|
+
*
|
|
6
|
+
* Extends all native {@link InputHTMLAttributes} and {@link WithClassName}
|
|
7
|
+
* with optional label and error content.
|
|
8
|
+
*
|
|
9
|
+
* @property label - Content rendered as an associated `<label>`. When omitted, no label is rendered.
|
|
10
|
+
* @property error - Content rendered as an error message below the input. When omitted, no error is rendered.
|
|
11
|
+
* @property className - Additional class name(s) applied to the root element.
|
|
12
|
+
*/
|
|
3
13
|
export type Props = InputHTMLAttributes<HTMLInputElement> & WithClassName<{
|
|
4
14
|
label?: ReactNode;
|
|
5
15
|
error?: ReactNode;
|
|
6
16
|
}>;
|
|
17
|
+
/**
|
|
18
|
+
* Input field component with optional label and error message.
|
|
19
|
+
*
|
|
20
|
+
* Renders a native `<input>` element inside a wrapper, with a stable
|
|
21
|
+
* auto-generated `id` used to associate the label via `htmlFor`.
|
|
22
|
+
* All standard input attributes are forwarded to the underlying element.
|
|
23
|
+
*
|
|
24
|
+
* ### CSS elements
|
|
25
|
+
* - `label`
|
|
26
|
+
* - `input`
|
|
27
|
+
* - `error`
|
|
28
|
+
*
|
|
29
|
+
* @param props - Component properties.
|
|
30
|
+
* @see {@link Props}
|
|
31
|
+
* @returns A labelled input wrapper with optional error feedback.
|
|
32
|
+
*/
|
|
7
33
|
export declare const Input: FunctionComponent<Props>;
|
|
@@ -6,6 +6,22 @@ import { randomHash } from '../../agnostic/random/uuid/index.js';
|
|
|
6
6
|
import { input as publicClassName } from '../public-classnames.js';
|
|
7
7
|
import { mergeClassNames } from '../utils/index.js';
|
|
8
8
|
import cssModule from './styles.module.css';
|
|
9
|
+
/**
|
|
10
|
+
* Input field component with optional label and error message.
|
|
11
|
+
*
|
|
12
|
+
* Renders a native `<input>` element inside a wrapper, with a stable
|
|
13
|
+
* auto-generated `id` used to associate the label via `htmlFor`.
|
|
14
|
+
* All standard input attributes are forwarded to the underlying element.
|
|
15
|
+
*
|
|
16
|
+
* ### CSS elements
|
|
17
|
+
* - `label`
|
|
18
|
+
* - `input`
|
|
19
|
+
* - `error`
|
|
20
|
+
*
|
|
21
|
+
* @param props - Component properties.
|
|
22
|
+
* @see {@link Props}
|
|
23
|
+
* @returns A labelled input wrapper with optional error feedback.
|
|
24
|
+
*/
|
|
9
25
|
export const Input = ({ label, error, className, ...rest }) => {
|
|
10
26
|
const [id] = useState(`_${randomHash(12)}`);
|
|
11
27
|
const c = clss(publicClassName, { cssModule });
|
|
@@ -5,12 +5,51 @@ type JsonPrimitive = string | number | boolean | null;
|
|
|
5
5
|
type JsonValue = JsonPrimitive | JsonValue[] | {
|
|
6
6
|
[k: string]: JsonValue;
|
|
7
7
|
};
|
|
8
|
+
/**
|
|
9
|
+
* Props for the {@link JsonEditor} component.
|
|
10
|
+
*
|
|
11
|
+
* @property defaultValue - Initial JSON value rendered by the editor. Defaults to `null`.
|
|
12
|
+
* @property onChange - Called after any value change with the updated JSON value.
|
|
13
|
+
* @property onValidationError - Called when the updated value fails schema validation,
|
|
14
|
+
* with the list of Zod issues. Not called when no `schema` is provided.
|
|
15
|
+
* @property schema - Optional Zod schema used to validate the value after each change.
|
|
16
|
+
* When provided, validation runs after `onChange` is dispatched.
|
|
17
|
+
* @property className - Additional class name(s) applied to the root element.
|
|
18
|
+
*/
|
|
8
19
|
export type Props = WithClassName<{
|
|
9
20
|
defaultValue?: JsonValue;
|
|
10
21
|
onChange?: (val: JsonValue) => void;
|
|
11
22
|
onValidationError?: (issues: core.$ZodIssue[]) => void;
|
|
12
23
|
schema?: ZodType<JsonValue>;
|
|
13
24
|
}>;
|
|
25
|
+
/**
|
|
26
|
+
* Interactive JSON editor component.
|
|
27
|
+
*
|
|
28
|
+
* Renders a recursive value editor tree alongside a live JSON preview.
|
|
29
|
+
* Supports all JSON value types: strings, numbers, booleans, null, arrays,
|
|
30
|
+
* and records. Each node exposes a type selector and a type-appropriate input.
|
|
31
|
+
*
|
|
32
|
+
* When a `schema` is provided, the current value is validated against it after
|
|
33
|
+
* every change. Validation errors are reported through `onValidationError` and
|
|
34
|
+
* do not block editing.
|
|
35
|
+
*
|
|
36
|
+
* ### CSS elements
|
|
37
|
+
* - `value` — wraps each node in the editor tree; receives a type modifier
|
|
38
|
+
* matching the current value type (`string`, `number`, `boolean`, `null`, `array`, `record`).
|
|
39
|
+
* - `type` — the type selector control.
|
|
40
|
+
* - `string`, `number`, `boolean`, `null` — primitive value inputs.
|
|
41
|
+
* - `record` — record entry list.
|
|
42
|
+
* - `array` — array entry list items.
|
|
43
|
+
* - `prop-name` — key input for record entries.
|
|
44
|
+
* - `create-prop` — button to append a new entry to a record or array.
|
|
45
|
+
* - `delete-prop` — button to remove an existing entry.
|
|
46
|
+
* - `lift-prop` — button to move an array entry up.
|
|
47
|
+
* - `drop-prop` — button to move an array entry down.
|
|
48
|
+
*
|
|
49
|
+
* @param props - Component properties.
|
|
50
|
+
* @see {@link Props}
|
|
51
|
+
* @returns A recursive JSON value editor with a live serialized preview.
|
|
52
|
+
*/
|
|
14
53
|
export declare const JsonEditor: FunctionComponent<Props>;
|
|
15
54
|
export declare const ValueEditor: FunctionComponent<{
|
|
16
55
|
defaultValue?: JsonValue;
|
|
@@ -10,7 +10,36 @@ import { Textarea } from '../Textarea/index.js';
|
|
|
10
10
|
import { mergeClassNames } from '../utils/index.js';
|
|
11
11
|
import { jsonEditor as publicClassName } from '../public-classnames.js';
|
|
12
12
|
import cssModule from './styles.module.css';
|
|
13
|
+
/* Shared across all sub components */
|
|
13
14
|
const c = clss(publicClassName, { cssModule });
|
|
15
|
+
/**
|
|
16
|
+
* Interactive JSON editor component.
|
|
17
|
+
*
|
|
18
|
+
* Renders a recursive value editor tree alongside a live JSON preview.
|
|
19
|
+
* Supports all JSON value types: strings, numbers, booleans, null, arrays,
|
|
20
|
+
* and records. Each node exposes a type selector and a type-appropriate input.
|
|
21
|
+
*
|
|
22
|
+
* When a `schema` is provided, the current value is validated against it after
|
|
23
|
+
* every change. Validation errors are reported through `onValidationError` and
|
|
24
|
+
* do not block editing.
|
|
25
|
+
*
|
|
26
|
+
* ### CSS elements
|
|
27
|
+
* - `value` — wraps each node in the editor tree; receives a type modifier
|
|
28
|
+
* matching the current value type (`string`, `number`, `boolean`, `null`, `array`, `record`).
|
|
29
|
+
* - `type` — the type selector control.
|
|
30
|
+
* - `string`, `number`, `boolean`, `null` — primitive value inputs.
|
|
31
|
+
* - `record` — record entry list.
|
|
32
|
+
* - `array` — array entry list items.
|
|
33
|
+
* - `prop-name` — key input for record entries.
|
|
34
|
+
* - `create-prop` — button to append a new entry to a record or array.
|
|
35
|
+
* - `delete-prop` — button to remove an existing entry.
|
|
36
|
+
* - `lift-prop` — button to move an array entry up.
|
|
37
|
+
* - `drop-prop` — button to move an array entry down.
|
|
38
|
+
*
|
|
39
|
+
* @param props - Component properties.
|
|
40
|
+
* @see {@link Props}
|
|
41
|
+
* @returns A recursive JSON value editor with a live serialized preview.
|
|
42
|
+
*/
|
|
14
43
|
export const JsonEditor = ({ defaultValue = null, onChange, onValidationError, schema, className }) => {
|
|
15
44
|
const [value, setValue] = useState(defaultValue);
|
|
16
45
|
const setValueAndDispatch = (val) => {
|
|
@@ -31,6 +60,11 @@ export const JsonEditor = ({ defaultValue = null, onChange, onValidationError, s
|
|
|
31
60
|
const rootClss = mergeClassNames(c(null, {}), className);
|
|
32
61
|
return _jsxs("div", { className: rootClss, children: [_jsx(ValueEditor, { defaultValue: defaultValue, onChange: val => setValueAndDispatch(val), path: [] }), _jsx("pre", { children: JSON.stringify(value, null, 2) })] });
|
|
33
62
|
};
|
|
63
|
+
/* * * * * * * * * * * * * * * * *
|
|
64
|
+
*
|
|
65
|
+
* Value
|
|
66
|
+
*
|
|
67
|
+
* * * * * * * * * * * * * * * * */
|
|
34
68
|
export const ValueEditor = ({ defaultValue = {}, onChange, path = [] }) => {
|
|
35
69
|
// State
|
|
36
70
|
const [value, setValue] = useState(defaultValue);
|
|
@@ -71,12 +105,37 @@ export const ValueEditor = ({ defaultValue = {}, onChange, path = [] }) => {
|
|
|
71
105
|
const pathStringDataAttr = (path ?? []).map(e => e.toString()).join('.');
|
|
72
106
|
return _jsxs("span", { className: valueEditorClss, "data-path": pathStringDataAttr, children: [_jsxs(Select, { className: c('type'), onChange: handleTypeSelectChange, children: [_jsx("option", { value: 'string', selected: typeof value === 'string', children: "string" }), _jsx("option", { value: 'number', selected: typeof value === 'number', children: "number" }), _jsx("option", { value: 'boolean', selected: typeof value === 'boolean', children: "boolean" }), _jsx("option", { value: 'null', selected: value === null, children: "null" }), _jsx("option", { value: 'record', selected: isNonNullObject(value) && !Array.isArray(value), children: "record" }), _jsx("option", { value: 'array', selected: Array.isArray(value), children: "array" })] }), typeof value === 'string' && _jsx(StringEditor, { type: 'textarea', defaultValue: value, onChange: handleStringValueChange }), typeof value === 'number' && _jsx(NumberEditor, { defaultValue: value, onChange: handleNumberValueChange }), typeof value === 'boolean' && _jsx(BooleanEditor, { defaultValue: value, onChange: handleBooleanValueChange }), value === null && _jsx(NullEditor, { defaultValue: value }), isNonNullObject(value) && !Array.isArray(value) && _jsx(RecordEditor, { defaultValue: value, onChange: handleRecordValueChange, path: path }), Array.isArray(value) && _jsx(ArrayEditor, { defaultValue: value, onChange: handleArrayValueChange, path: path })] });
|
|
73
107
|
};
|
|
108
|
+
/* * * * * * * * * * * * * * * * *
|
|
109
|
+
*
|
|
110
|
+
* String
|
|
111
|
+
*
|
|
112
|
+
* * * * * * * * * * * * * * * * */
|
|
74
113
|
const StringEditor = (props) => props.type === 'textarea'
|
|
75
114
|
? _jsx(Textarea, { className: c('string'), defaultValue: props.defaultValue ?? '', onChange: props.onChange })
|
|
76
115
|
: _jsx(Input, { type: 'text', className: c('string'), defaultValue: props.defaultValue ?? '', onChange: props.onChange });
|
|
116
|
+
/* * * * * * * * * * * * * * * * *
|
|
117
|
+
*
|
|
118
|
+
* Number
|
|
119
|
+
*
|
|
120
|
+
* * * * * * * * * * * * * * * * */
|
|
77
121
|
const NumberEditor = (props) => _jsx(Input, { className: c('number'), type: 'number', defaultValue: props.defaultValue ?? 0, onChange: props.onChange });
|
|
122
|
+
/* * * * * * * * * * * * * * * * *
|
|
123
|
+
*
|
|
124
|
+
* Boolean
|
|
125
|
+
*
|
|
126
|
+
* * * * * * * * * * * * * * * * */
|
|
78
127
|
const BooleanEditor = (props) => _jsx(Input, { className: c('boolean'), type: 'checkbox', defaultChecked: props.defaultValue ?? false, onChange: props.onChange });
|
|
128
|
+
/* * * * * * * * * * * * * * * * *
|
|
129
|
+
*
|
|
130
|
+
* Null
|
|
131
|
+
*
|
|
132
|
+
* * * * * * * * * * * * * * * * */
|
|
79
133
|
const NullEditor = () => _jsx("span", { className: c('null'), children: "null" });
|
|
134
|
+
/* * * * * * * * * * * * * * * * *
|
|
135
|
+
*
|
|
136
|
+
* Record
|
|
137
|
+
*
|
|
138
|
+
* * * * * * * * * * * * * * * * */
|
|
80
139
|
const RecordEditor = ({ defaultValue = {}, onChange, path }) => {
|
|
81
140
|
const [value, setValue] = useState(new Map(Object
|
|
82
141
|
.entries(defaultValue)
|
|
@@ -124,6 +183,11 @@ const RecordEditor = ({ defaultValue = {}, onChange, path }) => {
|
|
|
124
183
|
};
|
|
125
184
|
return _jsxs("ul", { className: c('record'), children: [Array.from(value).map(([key, { id, val }]) => _jsxs("li", { "data-key": key, "data-path": [...(path ?? []), key].join('.'), children: [_jsx("button", { className: c('delete-prop'), onClick: () => handleDeleteProp(key), children: "x" }), _jsx("span", { className: c('prop-name'), children: _jsx(StringEditor, { type: 'input', defaultValue: key, onChange: handleRenameProp(key) }) }), _jsx(ValueEditor, { defaultValue: val, onChange: handleChangeProp(key), path: [...(path ?? []), key] })] }, id)), _jsx("button", { className: c('create-prop'), onClick: handleCreateProp, children: "+" })] });
|
|
126
185
|
};
|
|
186
|
+
/* * * * * * * * * * * * * * * * *
|
|
187
|
+
*
|
|
188
|
+
* Array
|
|
189
|
+
*
|
|
190
|
+
* * * * * * * * * * * * * * * * */
|
|
127
191
|
const ArrayEditor = ({ defaultValue = [], onChange, path }) => {
|
|
128
192
|
const [value, setValue] = useState(new Map(defaultValue.map(val => [randomHash(8), val])));
|
|
129
193
|
const setValueAndDispatch = (newValue) => {
|
|
@@ -1,7 +1,34 @@
|
|
|
1
1
|
import { type FunctionComponent, type SelectHTMLAttributes, type ReactNode, type PropsWithChildren } from 'react';
|
|
2
2
|
import type { WithClassName } from '../utils/types.js';
|
|
3
|
+
/**
|
|
4
|
+
* Props for the {@link Select} component.
|
|
5
|
+
*
|
|
6
|
+
* Extends all native {@link SelectHTMLAttributes} and {@link WithClassName}
|
|
7
|
+
* with optional label, error content, and option children.
|
|
8
|
+
*
|
|
9
|
+
* @property label - Content rendered as an associated `<label>`. When omitted, no label is rendered.
|
|
10
|
+
* @property error - Content rendered as an error message below the select. When omitted, no error is rendered.
|
|
11
|
+
* @property className - Additional class name(s) applied to the root element.
|
|
12
|
+
* @property children - `<option>` or `<optgroup>` elements rendered inside the select.
|
|
13
|
+
*/
|
|
3
14
|
export type Props = SelectHTMLAttributes<HTMLSelectElement> & PropsWithChildren<WithClassName<{
|
|
4
15
|
label?: ReactNode;
|
|
5
16
|
error?: ReactNode;
|
|
6
17
|
}>>;
|
|
18
|
+
/**
|
|
19
|
+
* Select field component with optional label and error message.
|
|
20
|
+
*
|
|
21
|
+
* Renders a native `<select>` element inside a wrapper, with a stable
|
|
22
|
+
* auto-generated `id` used to associate the label via `htmlFor`.
|
|
23
|
+
* All standard select attributes are forwarded to the underlying element.
|
|
24
|
+
*
|
|
25
|
+
* ### CSS elements
|
|
26
|
+
* - `label`
|
|
27
|
+
* - `select`
|
|
28
|
+
* - `error`
|
|
29
|
+
*
|
|
30
|
+
* @param props - Component properties.
|
|
31
|
+
* @see {@link Props}
|
|
32
|
+
* @returns A labelled select wrapper with optional error feedback.
|
|
33
|
+
*/
|
|
7
34
|
export declare const Select: FunctionComponent<Props>;
|
|
@@ -6,6 +6,22 @@ import { randomHash } from '../../agnostic/random/uuid/index.js';
|
|
|
6
6
|
import { select as publicClassName } from '../public-classnames.js';
|
|
7
7
|
import { mergeClassNames } from '../utils/index.js';
|
|
8
8
|
import cssModule from './styles.module.css';
|
|
9
|
+
/**
|
|
10
|
+
* Select field component with optional label and error message.
|
|
11
|
+
*
|
|
12
|
+
* Renders a native `<select>` element inside a wrapper, with a stable
|
|
13
|
+
* auto-generated `id` used to associate the label via `htmlFor`.
|
|
14
|
+
* All standard select attributes are forwarded to the underlying element.
|
|
15
|
+
*
|
|
16
|
+
* ### CSS elements
|
|
17
|
+
* - `label`
|
|
18
|
+
* - `select`
|
|
19
|
+
* - `error`
|
|
20
|
+
*
|
|
21
|
+
* @param props - Component properties.
|
|
22
|
+
* @see {@link Props}
|
|
23
|
+
* @returns A labelled select wrapper with optional error feedback.
|
|
24
|
+
*/
|
|
9
25
|
export const Select = ({ label, error, className, children, ...rest }) => {
|
|
10
26
|
const [id] = useState(`_${randomHash(12)}`);
|
|
11
27
|
const c = clss(publicClassName, { cssModule });
|
|
@@ -1,7 +1,33 @@
|
|
|
1
1
|
import { type FunctionComponent, type TextareaHTMLAttributes, type ReactNode } from 'react';
|
|
2
2
|
import type { WithClassName } from '../utils/types.js';
|
|
3
|
+
/**
|
|
4
|
+
* Props for the {@link Textarea} component.
|
|
5
|
+
*
|
|
6
|
+
* Extends all native {@link TextareaHTMLAttributes} and {@link WithClassName}
|
|
7
|
+
* with optional label and error content.
|
|
8
|
+
*
|
|
9
|
+
* @property label - Content rendered as an associated `<label>`. When omitted, no label is rendered.
|
|
10
|
+
* @property error - Content rendered as an error message below the textarea. When omitted, no error is rendered.
|
|
11
|
+
* @property className - Additional class name(s) applied to the root element.
|
|
12
|
+
*/
|
|
3
13
|
export type Props = TextareaHTMLAttributes<HTMLTextAreaElement> & WithClassName<{
|
|
4
14
|
label?: ReactNode;
|
|
5
15
|
error?: ReactNode;
|
|
6
16
|
}>;
|
|
17
|
+
/**
|
|
18
|
+
* Textarea field component with optional label and error message.
|
|
19
|
+
*
|
|
20
|
+
* Renders a native `<textarea>` element inside a wrapper, with a stable
|
|
21
|
+
* auto-generated `id` used to associate the label via `htmlFor`.
|
|
22
|
+
* All standard textarea attributes are forwarded to the underlying element.
|
|
23
|
+
*
|
|
24
|
+
* ### CSS elements
|
|
25
|
+
* - `label`
|
|
26
|
+
* - `textarea`
|
|
27
|
+
* - `error`
|
|
28
|
+
*
|
|
29
|
+
* @param props - Component properties.
|
|
30
|
+
* @see {@link Props}
|
|
31
|
+
* @returns A labelled textarea wrapper with optional error feedback.
|
|
32
|
+
*/
|
|
7
33
|
export declare const Textarea: FunctionComponent<Props>;
|
|
@@ -6,6 +6,22 @@ import { randomHash } from '../../agnostic/random/uuid/index.js';
|
|
|
6
6
|
import { textarea as publicClassName } from '../public-classnames.js';
|
|
7
7
|
import { mergeClassNames } from '../utils/index.js';
|
|
8
8
|
import cssModule from './styles.module.css';
|
|
9
|
+
/**
|
|
10
|
+
* Textarea field component with optional label and error message.
|
|
11
|
+
*
|
|
12
|
+
* Renders a native `<textarea>` element inside a wrapper, with a stable
|
|
13
|
+
* auto-generated `id` used to associate the label via `htmlFor`.
|
|
14
|
+
* All standard textarea attributes are forwarded to the underlying element.
|
|
15
|
+
*
|
|
16
|
+
* ### CSS elements
|
|
17
|
+
* - `label`
|
|
18
|
+
* - `textarea`
|
|
19
|
+
* - `error`
|
|
20
|
+
*
|
|
21
|
+
* @param props - Component properties.
|
|
22
|
+
* @see {@link Props}
|
|
23
|
+
* @returns A labelled textarea wrapper with optional error feedback.
|
|
24
|
+
*/
|
|
9
25
|
export const Textarea = ({ label, error, className, ...rest }) => {
|
|
10
26
|
const [id] = useState(`_${randomHash(12)}`);
|
|
11
27
|
const c = clss(publicClassName, { cssModule });
|
package/components/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export * as beforeAfter from './BeforeAfter/index.js'
|
|
2
2
|
export * as button from './Button/index.js'
|
|
3
3
|
export * as clippable from './Clippable/index.js'
|
|
4
|
-
export * as drawer from './Drawer/index.js'
|
|
5
4
|
export * as disclaimer from './Disclaimer/index.js'
|
|
5
|
+
export * as drawer from './Drawer/index.js'
|
|
6
6
|
export * as eventListener from './EventListener/index.js'
|
|
7
7
|
export * as gallery from './Gallery/index.js'
|
|
8
8
|
export * as iframe from './Iframe/index.js'
|
package/components/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export * as beforeAfter from './BeforeAfter/index.js'
|
|
2
2
|
export * as button from './Button/index.js'
|
|
3
3
|
export * as clippable from './Clippable/index.js'
|
|
4
|
-
export * as drawer from './Drawer/index.js'
|
|
5
4
|
export * as disclaimer from './Disclaimer/index.js'
|
|
5
|
+
export * as drawer from './Drawer/index.js'
|
|
6
6
|
export * as eventListener from './EventListener/index.js'
|
|
7
7
|
export * as gallery from './Gallery/index.js'
|
|
8
8
|
export * as iframe from './Iframe/index.js'
|
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -8,5 +8,5 @@ export * as move from './move/index.js'
|
|
|
8
8
|
export * as remove from './remove/index.js'
|
|
9
9
|
export * as revokeSignedUrls from './revoke-signed-urls/index.js'
|
|
10
10
|
export * as stat from './stat/index.js'
|
|
11
|
-
export * as upload from './upload/index.js'
|
|
12
11
|
export * as updateMetadata from './update-metadata/index.js'
|
|
12
|
+
export * as upload from './upload/index.js'
|
|
@@ -8,5 +8,5 @@ export * as move from './move/index.js'
|
|
|
8
8
|
export * as remove from './remove/index.js'
|
|
9
9
|
export * as revokeSignedUrls from './revoke-signed-urls/index.js'
|
|
10
10
|
export * as stat from './stat/index.js'
|
|
11
|
-
export * as upload from './upload/index.js'
|
|
12
11
|
export * as updateMetadata from './update-metadata/index.js'
|
|
12
|
+
export * as upload from './upload/index.js'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * as copyDir from './copy-dir/index.js'
|
|
2
1
|
export * as copyFile from './copy-file/index.js'
|
|
2
|
+
export * as copyDir from './copy-dir/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'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * as copyDir from './copy-dir/index.js'
|
|
2
1
|
export * as copyFile from './copy-file/index.js'
|
|
2
|
+
export * as copyDir from './copy-dir/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'
|
package/node/images/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * as create from './create/index.js'
|
|
2
|
+
export * as format from './format/index.js'
|
|
2
3
|
export * as metadata from './metadata/index.js'
|
|
3
4
|
export * as transform from './transform/index.js'
|
|
4
5
|
export * as utils from './utils/index.js'
|
|
5
|
-
export * as format from './format/index.js'
|
package/node/images/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * as create from './create/index.js'
|
|
2
|
+
export * as format from './format/index.js'
|
|
2
3
|
export * as metadata from './metadata/index.js'
|
|
3
4
|
export * as transform from './transform/index.js'
|
|
4
5
|
export * as utils from './utils/index.js'
|
|
5
|
-
export * as format from './format/index.js'
|
|
@@ -10,6 +10,6 @@ export * as level from './level/index.js'
|
|
|
10
10
|
export * as lighten from './lighten/index.js'
|
|
11
11
|
export * as normalize from './normalize/index.js'
|
|
12
12
|
export * as overlay from './overlay/index.js'
|
|
13
|
-
export * as rotate from './rotate/index.js'
|
|
14
|
-
export * as saturate from './saturate/index.js'
|
|
15
13
|
export * as resize from './resize/index.js'
|
|
14
|
+
export * as saturate from './saturate/index.js'
|
|
15
|
+
export * as rotate from './rotate/index.js'
|
|
@@ -10,6 +10,6 @@ export * as level from './level/index.js'
|
|
|
10
10
|
export * as lighten from './lighten/index.js'
|
|
11
11
|
export * as normalize from './normalize/index.js'
|
|
12
12
|
export * as overlay from './overlay/index.js'
|
|
13
|
-
export * as rotate from './rotate/index.js'
|
|
14
|
-
export * as saturate from './saturate/index.js'
|
|
15
13
|
export * as resize from './resize/index.js'
|
|
14
|
+
export * as saturate from './saturate/index.js'
|
|
15
|
+
export * as rotate from './rotate/index.js'
|
package/node/index.d.ts
CHANGED
|
@@ -7,5 +7,5 @@ export * as encryption from './encryption/index.js'
|
|
|
7
7
|
export * as files from './files/index.js'
|
|
8
8
|
export * as ftps from './ftps/index.js'
|
|
9
9
|
export * as images from './images/index.js'
|
|
10
|
-
export * as process from './process/index.js'
|
|
11
10
|
export * as sftp from './sftp/index.js'
|
|
11
|
+
export * as process from './process/index.js'
|
package/node/index.js
CHANGED
|
@@ -7,5 +7,5 @@ export * as encryption from './encryption/index.js'
|
|
|
7
7
|
export * as files from './files/index.js'
|
|
8
8
|
export * as ftps from './ftps/index.js'
|
|
9
9
|
export * as images from './images/index.js'
|
|
10
|
-
export * as process from './process/index.js'
|
|
11
10
|
export * as sftp from './sftp/index.js'
|
|
11
|
+
export * as process from './process/index.js'
|