@design-edito/tools 0.4.18 → 0.4.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/TODO.md +7 -7
  2. package/agnostic/arrays/index.d.ts +1 -1
  3. package/agnostic/arrays/index.js +1 -1
  4. package/agnostic/colors/index.d.ts +3 -3
  5. package/agnostic/colors/index.js +3 -3
  6. package/agnostic/css/index.d.ts +2 -2
  7. package/agnostic/css/index.js +2 -2
  8. package/agnostic/errors/index.d.ts +1 -1
  9. package/agnostic/errors/index.js +1 -1
  10. package/agnostic/html/hyper-json/smart-tags/coalesced/index.d.ts +19 -19
  11. package/agnostic/html/hyper-json/smart-tags/coalesced/index.js +19 -19
  12. package/agnostic/html/hyper-json/smart-tags/isolated/index.d.ts +3 -3
  13. package/agnostic/html/hyper-json/smart-tags/isolated/index.js +3 -3
  14. package/agnostic/html/index.d.ts +2 -2
  15. package/agnostic/html/index.js +2 -2
  16. package/agnostic/index.d.ts +5 -5
  17. package/agnostic/index.js +5 -5
  18. package/agnostic/misc/index.d.ts +3 -3
  19. package/agnostic/misc/index.js +3 -3
  20. package/agnostic/numbers/index.d.ts +1 -1
  21. package/agnostic/numbers/index.js +1 -1
  22. package/agnostic/objects/index.d.ts +2 -2
  23. package/agnostic/objects/index.js +2 -2
  24. package/agnostic/optim/index.d.ts +1 -1
  25. package/agnostic/optim/index.js +1 -1
  26. package/agnostic/sanitization/index.d.ts +1 -1
  27. package/agnostic/sanitization/index.js +1 -1
  28. package/agnostic/strings/index.d.ts +2 -2
  29. package/agnostic/strings/index.js +2 -2
  30. package/components/Button/index.d.ts +7 -0
  31. package/components/Button/index.js +10 -0
  32. package/components/Button/styles.module.css +0 -0
  33. package/components/Input/index.d.ts +7 -0
  34. package/components/Input/index.js +14 -0
  35. package/components/Input/styles.module.css +0 -0
  36. package/components/JsonEditor/index.d.ts +20 -0
  37. package/components/JsonEditor/index.js +159 -0
  38. package/components/JsonEditor/styles.module.css +0 -0
  39. package/components/Select/index.d.ts +7 -0
  40. package/components/Select/index.js +14 -0
  41. package/components/Select/styles.module.css +0 -0
  42. package/components/Textarea/index.d.ts +7 -0
  43. package/components/Textarea/index.js +14 -0
  44. package/components/Textarea/styles.module.css +0 -0
  45. package/components/index.d.ts +7 -2
  46. package/components/index.js +7 -2
  47. package/components/public-classnames.d.ts +26 -21
  48. package/components/public-classnames.js +26 -21
  49. package/node/@google-cloud/storage/file/index.d.ts +2 -2
  50. package/node/@google-cloud/storage/file/index.js +2 -2
  51. package/node/ftps/file/index.d.ts +1 -1
  52. package/node/ftps/file/index.js +1 -1
  53. package/node/images/transform/operations/index.d.ts +1 -1
  54. package/node/images/transform/operations/index.js +1 -1
  55. package/package.json +36 -1
package/TODO.md CHANGED
@@ -126,19 +126,19 @@ lm-tools/src/components/Subtitles/index.tsx
126
126
  ```
127
127
 
128
128
  ```html
129
- <div class="dsed-subtitles">
129
+ <div class="lm-subtitles">
130
130
  <!-- Groupe passé (donc que sub prev dedans) -->
131
131
  <div
132
- class="dsed-subtitles__group dsed-subtitles__group--prev"
132
+ class="lm-subtitles__group lm-subtitles__group--prev"
133
133
  data-start-sub-pos="0"
134
134
  data-end-sub-pos="1">
135
- <span class="dsed-subtitles__sub dsed-subtitles__sub--prev" data-sub-pos="0">
135
+ <span class="lm-subtitles__sub lm-subtitles__sub--prev" data-sub-pos="0">
136
136
  Some sub
137
137
  </span>
138
138
  </div>
139
139
  <!-- Groupe courant (mix de sub prev, curr et next) -->
140
140
  <div
141
- class="dsed-subtitles__group dsed-subtitles__group--curr"
141
+ class="lm-subtitles__group lm-subtitles__group--curr"
142
142
  data-start-timecode="00:02:16,612"
143
143
  data-end-timecode="00:02:16,612"
144
144
  data-start-time-ms="34754382"
@@ -146,7 +146,7 @@ lm-tools/src/components/Subtitles/index.tsx
146
146
  data-start-sub-pos="0"
147
147
  data-end-sub-pos="1">
148
148
  <span
149
- class="dsed-subtitles__sub dsed-subtitles__sub--curr"
149
+ class="lm-subtitles__sub lm-subtitles__sub--curr"
150
150
  data-start-timecode="00:02:16,612"
151
151
  data-end-timecode="00:02:16,612"
152
152
  data-start-time-ms="34754382"
@@ -156,7 +156,7 @@ lm-tools/src/components/Subtitles/index.tsx
156
156
  </div>
157
157
  <!-- Groupe à venir -->
158
158
  <div
159
- class="dsed-subtitles__group dsed-subtitles__group--prev"
159
+ class="lm-subtitles__group lm-subtitles__group--prev"
160
160
  data-start-timecode="00:02:16,612"
161
161
  data-end-timecode="00:02:16,612"
162
162
  data-start-time-ms="34754382"
@@ -164,7 +164,7 @@ lm-tools/src/components/Subtitles/index.tsx
164
164
  data-start-sub-pos="0"
165
165
  data-end-sub-pos="1">
166
166
  <span
167
- class="dsed-subtitles__sub dsed-subtitles__sub--prev"
167
+ class="lm-subtitles__sub lm-subtitles__sub--prev"
168
168
  data-start-timecode="00:02:16,612"
169
169
  data-end-timecode="00:02:16,612"
170
170
  data-start-time-ms="34754382"
@@ -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 make from './make/index.js'
5
4
  export * as randomPick from './random-pick/index.js'
5
+ export * as make from './make/index.js'
6
6
  export * as shuffle from './shuffle/index.js'
@@ -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 make from './make/index.js'
5
4
  export * as randomPick from './random-pick/index.js'
5
+ export * as make from './make/index.js'
6
6
  export * as shuffle from './shuffle/index.js'
@@ -1,12 +1,12 @@
1
- export * as channels from './channels/index.js'
2
1
  export * as contrast from './contrast/index.js'
2
+ export * as channels from './channels/index.js'
3
3
  export * as convert from './convert/index.js'
4
- export * as distance from './distance/index.js'
5
4
  export * as grayscale from './grayscale/index.js'
6
5
  export * as invert from './invert/index.js'
7
6
  export * as lerp from './lerp/index.js'
8
7
  export * as luminance from './luminance/index.js'
9
- export * as rotate from './rotate/index.js'
10
8
  export * as palette from './palette/index.js'
9
+ export * as rotate from './rotate/index.js'
11
10
  export * as tidy from './tidy/index.js'
12
11
  export * as typechecks from './typechecks/index.js'
12
+ export * as distance from './distance/index.js'
@@ -1,12 +1,12 @@
1
- export * as channels from './channels/index.js'
2
1
  export * as contrast from './contrast/index.js'
2
+ export * as channels from './channels/index.js'
3
3
  export * as convert from './convert/index.js'
4
- export * as distance from './distance/index.js'
5
4
  export * as grayscale from './grayscale/index.js'
6
5
  export * as invert from './invert/index.js'
7
6
  export * as lerp from './lerp/index.js'
8
7
  export * as luminance from './luminance/index.js'
9
- export * as rotate from './rotate/index.js'
10
8
  export * as palette from './palette/index.js'
9
+ export * as rotate from './rotate/index.js'
11
10
  export * as tidy from './tidy/index.js'
12
11
  export * as typechecks from './typechecks/index.js'
12
+ export * as distance from './distance/index.js'
@@ -1,6 +1,6 @@
1
- export * as bem from './bem/index.js'
1
+ export * as clss from './clss/index.js'
2
2
  export * as generateNiceColor from './generate-nice-color/index.js'
3
3
  export * as isValidCssClassName from './is-valid-css-class-name/index.js'
4
4
  export * as scale from './scale/index.js'
5
5
  export * as stylesSet from './styles-set/index.js'
6
- export * as clss from './clss/index.js'
6
+ export * as bem from './bem/index.js'
@@ -1,6 +1,6 @@
1
- export * as bem from './bem/index.js'
1
+ export * as clss from './clss/index.js'
2
2
  export * as generateNiceColor from './generate-nice-color/index.js'
3
3
  export * as isValidCssClassName from './is-valid-css-class-name/index.js'
4
4
  export * as scale from './scale/index.js'
5
5
  export * as stylesSet from './styles-set/index.js'
6
- export * as clss from './clss/index.js'
6
+ export * as bem from './bem/index.js'
@@ -1,2 +1,2 @@
1
- export * as unknownToString from './unknown-to-string/index.js'
2
1
  export * as register from './register/index.js'
2
+ export * as unknownToString from './unknown-to-string/index.js'
@@ -1,2 +1,2 @@
1
- export * as unknownToString from './unknown-to-string/index.js'
2
1
  export * as register from './register/index.js'
2
+ export * as unknownToString from './unknown-to-string/index.js'
@@ -1,52 +1,52 @@
1
1
  export * as add from './add/index.js'
2
- export * as and from './and/index.js'
3
2
  export * as addclass from './addclass/index.js'
3
+ export * as and from './and/index.js'
4
4
  export * as append from './append/index.js'
5
5
  export * as at from './at/index.js'
6
+ export * as call from './call/index.js'
6
7
  export * as clone from './clone/index.js'
7
- export * as equals from './equals/index.js'
8
+ export * as deleteproperties from './deleteproperties/index.js'
8
9
  export * as getattribute from './getattribute/index.js'
9
10
  export * as getproperties from './getproperties/index.js'
10
11
  export * as getproperty from './getproperty/index.js'
11
12
  export * as hjparse from './hjparse/index.js'
12
- export * as call from './call/index.js'
13
- export * as deleteproperties from './deleteproperties/index.js'
14
- export * as if from './if/index.js'
13
+ export * as equals from './equals/index.js'
15
14
  export * as hjstringify from './hjstringify/index.js'
15
+ export * as if from './if/index.js'
16
16
  export * as initialize from './initialize/index.js'
17
- export * as join from './join/index.js'
18
17
  export * as length from './length/index.js'
19
- export * as map from './map/index.js'
18
+ export * as join from './join/index.js'
19
+ export * as negate from './negate/index.js'
20
20
  export * as notrailing from './notrailing/index.js'
21
21
  export * as or from './or/index.js'
22
- export * as pickrandom from './pickrandom/index.js'
23
22
  export * as populate from './populate/index.js'
23
+ export * as pickrandom from './pickrandom/index.js'
24
24
  export * as print from './print/index.js'
25
- export * as push from './push/index.js'
25
+ export * as map from './map/index.js'
26
26
  export * as pusheach from './pusheach/index.js'
27
+ export * as push from './push/index.js'
27
28
  export * as recordtoarray from './recordtoarray/index.js'
28
29
  export * as removeattribute from './removeattribute/index.js'
29
- export * as removeclass from './removeclass/index.js'
30
30
  export * as renameproperty from './renameproperty/index.js'
31
+ export * as removeclass from './removeclass/index.js'
31
32
  export * as replace from './replace/index.js'
32
- export * as negate from './negate/index.js'
33
- export * as select from './select/index.js'
34
33
  export * as set from './set/index.js'
35
34
  export * as setattribute from './setattribute/index.js'
35
+ export * as select from './select/index.js'
36
+ export * as sorton from './sorton/index.js'
36
37
  export * as setproperty from './setproperty/index.js'
37
- export * as split from './split/index.js'
38
38
  export * as spread from './spread/index.js'
39
+ export * as split from './split/index.js'
39
40
  export * as toarray from './toarray/index.js'
40
- export * as toboolean from './toboolean/index.js'
41
- export * as toggleclass from './toggleclass/index.js'
42
41
  export * as toelement from './toelement/index.js'
42
+ export * as toggleclass from './toggleclass/index.js'
43
+ export * as toboolean from './toboolean/index.js'
43
44
  export * as tonodelist from './tonodelist/index.js'
44
- export * as tonull from './tonull/index.js'
45
45
  export * as tonumber from './tonumber/index.js'
46
- export * as toref from './toref/index.js'
47
46
  export * as torecord from './torecord/index.js'
47
+ export * as tonull from './tonull/index.js'
48
+ export * as toref from './toref/index.js'
48
49
  export * as tostring from './tostring/index.js'
49
- export * as sorton from './sorton/index.js'
50
- export * as totext from './totext/index.js'
51
50
  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 and from './and/index.js'
3
2
  export * as addclass from './addclass/index.js'
3
+ export * as and from './and/index.js'
4
4
  export * as append from './append/index.js'
5
5
  export * as at from './at/index.js'
6
+ export * as call from './call/index.js'
6
7
  export * as clone from './clone/index.js'
7
- export * as equals from './equals/index.js'
8
+ export * as deleteproperties from './deleteproperties/index.js'
8
9
  export * as getattribute from './getattribute/index.js'
9
10
  export * as getproperties from './getproperties/index.js'
10
11
  export * as getproperty from './getproperty/index.js'
11
12
  export * as hjparse from './hjparse/index.js'
12
- export * as call from './call/index.js'
13
- export * as deleteproperties from './deleteproperties/index.js'
14
- export * as if from './if/index.js'
13
+ export * as equals from './equals/index.js'
15
14
  export * as hjstringify from './hjstringify/index.js'
15
+ export * as if from './if/index.js'
16
16
  export * as initialize from './initialize/index.js'
17
- export * as join from './join/index.js'
18
17
  export * as length from './length/index.js'
19
- export * as map from './map/index.js'
18
+ export * as join from './join/index.js'
19
+ export * as negate from './negate/index.js'
20
20
  export * as notrailing from './notrailing/index.js'
21
21
  export * as or from './or/index.js'
22
- export * as pickrandom from './pickrandom/index.js'
23
22
  export * as populate from './populate/index.js'
23
+ export * as pickrandom from './pickrandom/index.js'
24
24
  export * as print from './print/index.js'
25
- export * as push from './push/index.js'
25
+ export * as map from './map/index.js'
26
26
  export * as pusheach from './pusheach/index.js'
27
+ export * as push from './push/index.js'
27
28
  export * as recordtoarray from './recordtoarray/index.js'
28
29
  export * as removeattribute from './removeattribute/index.js'
29
- export * as removeclass from './removeclass/index.js'
30
30
  export * as renameproperty from './renameproperty/index.js'
31
+ export * as removeclass from './removeclass/index.js'
31
32
  export * as replace from './replace/index.js'
32
- export * as negate from './negate/index.js'
33
- export * as select from './select/index.js'
34
33
  export * as set from './set/index.js'
35
34
  export * as setattribute from './setattribute/index.js'
35
+ export * as select from './select/index.js'
36
+ export * as sorton from './sorton/index.js'
36
37
  export * as setproperty from './setproperty/index.js'
37
- export * as split from './split/index.js'
38
38
  export * as spread from './spread/index.js'
39
+ export * as split from './split/index.js'
39
40
  export * as toarray from './toarray/index.js'
40
- export * as toboolean from './toboolean/index.js'
41
- export * as toggleclass from './toggleclass/index.js'
42
41
  export * as toelement from './toelement/index.js'
42
+ export * as toggleclass from './toggleclass/index.js'
43
+ export * as toboolean from './toboolean/index.js'
43
44
  export * as tonodelist from './tonodelist/index.js'
44
- export * as tonull from './tonull/index.js'
45
45
  export * as tonumber from './tonumber/index.js'
46
- export * as toref from './toref/index.js'
47
46
  export * as torecord from './torecord/index.js'
47
+ export * as tonull from './tonull/index.js'
48
+ export * as toref from './toref/index.js'
48
49
  export * as tostring from './tostring/index.js'
49
- export * as sorton from './sorton/index.js'
50
- export * as totext from './totext/index.js'
51
50
  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,13 +1,13 @@
1
- export * as array from './array/index.js'
2
1
  export * as any from './any/index.js'
2
+ export * as array from './array/index.js'
3
3
  export * as boolean from './boolean/index.js'
4
4
  export * as element from './element/index.js'
5
- export * as guess from './guess/index.js'
6
5
  export * as get from './get/index.js'
6
+ export * as guess from './guess/index.js'
7
7
  export * as nodelist from './nodelist/index.js'
8
8
  export * as null from './null/index.js'
9
9
  export * as number from './number/index.js'
10
- export * as ref from './ref/index.js'
11
10
  export * as record from './record/index.js'
11
+ export * as ref from './ref/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 array from './array/index.js'
2
1
  export * as any from './any/index.js'
2
+ export * as array from './array/index.js'
3
3
  export * as boolean from './boolean/index.js'
4
4
  export * as element from './element/index.js'
5
- export * as guess from './guess/index.js'
6
5
  export * as get from './get/index.js'
6
+ export * as guess from './guess/index.js'
7
7
  export * as nodelist from './nodelist/index.js'
8
8
  export * as null from './null/index.js'
9
9
  export * as number from './number/index.js'
10
- export * as ref from './ref/index.js'
11
10
  export * as record from './record/index.js'
11
+ export * as ref from './ref/index.js'
12
12
  export * as string from './string/index.js'
13
13
  export * as text from './text/index.js'
@@ -1,10 +1,10 @@
1
+ export * as deepSelect from './deep-select/index.js'
1
2
  export * as getNodeAncestors from './get-node-ancestors/index.js'
2
- export * as getPositionInsideParent from './get-position-inside-parent/index.js'
3
3
  export * as hyperJson from './hyper-json/index.js'
4
+ export * as getPositionInsideParent from './get-position-inside-parent/index.js'
4
5
  export * as insertNode from './insert-node/index.js'
5
6
  export * as placeholders from './placeholders/index.js'
6
7
  export * as replaceInElement from './replace-in-element/index.js'
7
8
  export * as selectorToElement from './selector-to-element/index.js'
8
9
  export * as stringToNodes from './string-to-nodes/index.js'
9
10
  export * as watchSelection from './watch-selection/index.js'
10
- export * as deepSelect from './deep-select/index.js'
@@ -1,10 +1,10 @@
1
+ export * as deepSelect from './deep-select/index.js'
1
2
  export * as getNodeAncestors from './get-node-ancestors/index.js'
2
- export * as getPositionInsideParent from './get-position-inside-parent/index.js'
3
3
  export * as hyperJson from './hyper-json/index.js'
4
+ export * as getPositionInsideParent from './get-position-inside-parent/index.js'
4
5
  export * as insertNode from './insert-node/index.js'
5
6
  export * as placeholders from './placeholders/index.js'
6
7
  export * as replaceInElement from './replace-in-element/index.js'
7
8
  export * as selectorToElement from './selector-to-element/index.js'
8
9
  export * as stringToNodes from './string-to-nodes/index.js'
9
10
  export * as watchSelection from './watch-selection/index.js'
10
- export * as deepSelect from './deep-select/index.js'
@@ -1,16 +1,16 @@
1
- export * as arrays from './arrays/index.js'
2
1
  export * as booleans from './booleans/index.js'
2
+ export * as arrays from './arrays/index.js'
3
+ export * as colors from './colors/index.js'
3
4
  export * as css from './css/index.js'
4
5
  export * as errors from './errors/index.js'
5
- export * as misc from './misc/index.js'
6
6
  export * as html from './html/index.js'
7
+ export * as misc from './misc/index.js'
7
8
  export * as numbers from './numbers/index.js'
8
9
  export * as objects from './objects/index.js'
9
10
  export * as optim from './optim/index.js'
10
11
  export * as random from './random/index.js'
11
12
  export * as regexps from './regexps/index.js'
13
+ export * as sanitization from './sanitization/index.js'
12
14
  export * as strings from './strings/index.js'
13
- export * as colors from './colors/index.js'
14
- export * as typescript from './typescript/index.js'
15
15
  export * as time from './time/index.js'
16
- export * as sanitization from './sanitization/index.js'
16
+ export * as typescript from './typescript/index.js'
package/agnostic/index.js CHANGED
@@ -1,16 +1,16 @@
1
- export * as arrays from './arrays/index.js'
2
1
  export * as booleans from './booleans/index.js'
2
+ export * as arrays from './arrays/index.js'
3
+ export * as colors from './colors/index.js'
3
4
  export * as css from './css/index.js'
4
5
  export * as errors from './errors/index.js'
5
- export * as misc from './misc/index.js'
6
6
  export * as html from './html/index.js'
7
+ export * as misc from './misc/index.js'
7
8
  export * as numbers from './numbers/index.js'
8
9
  export * as objects from './objects/index.js'
9
10
  export * as optim from './optim/index.js'
10
11
  export * as random from './random/index.js'
11
12
  export * as regexps from './regexps/index.js'
13
+ export * as sanitization from './sanitization/index.js'
12
14
  export * as strings from './strings/index.js'
13
- export * as colors from './colors/index.js'
14
- export * as typescript from './typescript/index.js'
15
15
  export * as time from './time/index.js'
16
- export * as sanitization from './sanitization/index.js'
16
+ export * as typescript from './typescript/index.js'
@@ -1,12 +1,12 @@
1
- export * as assert from './assert/index.js'
2
1
  export * as cast from './cast/index.js'
2
+ export * as assert from './assert/index.js'
3
3
  export * as connection from './connection/index.js'
4
4
  export * as crawler from './crawler/index.js'
5
5
  export * as crossenv from './crossenv/index.js'
6
6
  export * as dataSize from './data-size/index.js'
7
7
  export * as isConstructorFunction from './is-constructor-function/index.js'
8
- export * as isNullish from './is-nullish/index.js'
9
8
  export * as logs from './logs/index.js'
9
+ export * as isNullish from './is-nullish/index.js'
10
10
  export * as normalizeExtension from './normalize-extension/index.js'
11
- export * as outcome from './outcome/index.js'
12
11
  export * as loremIpsum from './lorem-ipsum/index.js'
12
+ export * as outcome from './outcome/index.js'
@@ -1,12 +1,12 @@
1
- export * as assert from './assert/index.js'
2
1
  export * as cast from './cast/index.js'
2
+ export * as assert from './assert/index.js'
3
3
  export * as connection from './connection/index.js'
4
4
  export * as crawler from './crawler/index.js'
5
5
  export * as crossenv from './crossenv/index.js'
6
6
  export * as dataSize from './data-size/index.js'
7
7
  export * as isConstructorFunction from './is-constructor-function/index.js'
8
- export * as isNullish from './is-nullish/index.js'
9
8
  export * as logs from './logs/index.js'
9
+ export * as isNullish from './is-nullish/index.js'
10
10
  export * as normalizeExtension from './normalize-extension/index.js'
11
- export * as outcome from './outcome/index.js'
12
11
  export * as loremIpsum from './lorem-ipsum/index.js'
12
+ export * as outcome from './outcome/index.js'
@@ -1,6 +1,6 @@
1
1
  export * as absoluteModulo from './absolute-modulo/index.js'
2
- export * as approximateRational from './approximate-rational/index.js'
3
2
  export * as clamp from './clamp/index.js'
3
+ export * as approximateRational from './approximate-rational/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 approximateRational from './approximate-rational/index.js'
3
2
  export * as clamp from './clamp/index.js'
3
+ export * as approximateRational from './approximate-rational/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,9 +1,9 @@
1
+ export * as deepGetProperty from './deep-get-property/index.js'
1
2
  export * as enums from './enums/index.js'
2
3
  export * as flattenGetters from './flatten-getters/index.js'
3
4
  export * as isObject from './is-object/index.js'
4
5
  export * as isRecord from './is-record/index.js'
5
6
  export * as recordFormat from './record-format/index.js'
6
- export * as deepGetProperty from './deep-get-property/index.js'
7
7
  export * as recordMap from './record-map/index.js'
8
- export * as validation from './validation/index.js'
9
8
  export * as sortKeys from './sort-keys/index.js'
9
+ export * as validation from './validation/index.js'
@@ -1,9 +1,9 @@
1
+ export * as deepGetProperty from './deep-get-property/index.js'
1
2
  export * as enums from './enums/index.js'
2
3
  export * as flattenGetters from './flatten-getters/index.js'
3
4
  export * as isObject from './is-object/index.js'
4
5
  export * as isRecord from './is-record/index.js'
5
6
  export * as recordFormat from './record-format/index.js'
6
- export * as deepGetProperty from './deep-get-property/index.js'
7
7
  export * as recordMap from './record-map/index.js'
8
- export * as validation from './validation/index.js'
9
8
  export * as sortKeys from './sort-keys/index.js'
9
+ export * as validation from './validation/index.js'
@@ -1,2 +1,2 @@
1
- export * as throttleDebounce from './throttle-debounce/index.js'
2
1
  export * as memoize from './memoize/index.js'
2
+ export * as throttleDebounce from './throttle-debounce/index.js'
@@ -1,2 +1,2 @@
1
- export * as throttleDebounce from './throttle-debounce/index.js'
2
1
  export * as memoize from './memoize/index.js'
2
+ export * as throttleDebounce from './throttle-debounce/index.js'
@@ -1,4 +1,4 @@
1
1
  export * as fileName from './file-name/index.js'
2
- export * as html from './html/index.js'
3
2
  export * as path from './path/index.js'
3
+ export * as html from './html/index.js'
4
4
  export * as userInput from './user-input/index.js'
@@ -1,4 +1,4 @@
1
1
  export * as fileName from './file-name/index.js'
2
- export * as html from './html/index.js'
3
2
  export * as path from './path/index.js'
3
+ export * as html from './html/index.js'
4
4
  export * as userInput from './user-input/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'
4
5
  export * as replaceAll from './replace-all/index.js'
5
6
  export * as splitTrim from './split-trim/index.js'
6
- export * as toAlphanum from './to-alphanum/index.js'
7
7
  export * as trim from './trim/index.js'
8
- export * as parseTable from './parse-table/index.js'
8
+ export * as toAlphanum from './to-alphanum/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'
4
5
  export * as replaceAll from './replace-all/index.js'
5
6
  export * as splitTrim from './split-trim/index.js'
6
- export * as toAlphanum from './to-alphanum/index.js'
7
7
  export * as trim from './trim/index.js'
8
- export * as parseTable from './parse-table/index.js'
8
+ export * as toAlphanum from './to-alphanum/index.js'
@@ -0,0 +1,7 @@
1
+ import { type FunctionComponent, type ButtonHTMLAttributes, type ReactNode } from 'react';
2
+ import type { WithClassName } from '../utils/types.js';
3
+ export type Props = ButtonHTMLAttributes<HTMLButtonElement> & WithClassName<{
4
+ label?: ReactNode;
5
+ error?: ReactNode;
6
+ }>;
7
+ export declare const Button: FunctionComponent<Props>;
@@ -0,0 +1,10 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { clss } from '../../agnostic/css/clss/index.js';
3
+ import { mergeClassNames } from '../utils/index.js';
4
+ import { button as publicClassName } from '../public-classnames.js';
5
+ import cssModule from './styles.module.css';
6
+ export const Button = ({ label, error, className, ...rest }) => {
7
+ const c = clss(publicClassName, { cssModule });
8
+ const rootClss = mergeClassNames(c(null), className);
9
+ return _jsx("button", { ...rest, className: c(rootClss) });
10
+ };
File without changes
@@ -0,0 +1,7 @@
1
+ import { type FunctionComponent, type InputHTMLAttributes, type ReactNode } from 'react';
2
+ import type { WithClassName } from '../utils/types.js';
3
+ export type Props = InputHTMLAttributes<HTMLInputElement> & WithClassName<{
4
+ label?: ReactNode;
5
+ error?: ReactNode;
6
+ }>;
7
+ export declare const Input: FunctionComponent<Props>;
@@ -0,0 +1,14 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useState } from 'react';
3
+ import { clss } from '../../agnostic/css/clss/index.js';
4
+ import { isNotFalsy } from '../../agnostic/booleans/is-falsy/index.js';
5
+ import { randomHash } from '../../agnostic/random/uuid/index.js';
6
+ import { input as publicClassName } from '../public-classnames.js';
7
+ import { mergeClassNames } from '../utils/index.js';
8
+ import cssModule from './styles.module.css';
9
+ export const Input = ({ label, error, className, ...rest }) => {
10
+ const [id] = useState(`_${randomHash(12)}`);
11
+ const c = clss(publicClassName, { cssModule });
12
+ const rootClss = mergeClassNames(c(null), className);
13
+ return _jsxs("span", { className: rootClss, children: [isNotFalsy(label) && _jsx("label", { className: c('label'), htmlFor: id, children: label }), _jsx("input", { ...rest, className: c('input'), id: id }), isNotFalsy(error) && _jsx("span", { className: c('error'), children: error })] });
14
+ };
File without changes
@@ -0,0 +1,20 @@
1
+ import { type FunctionComponent } from 'react';
2
+ import { type ZodType, type core } from 'zod';
3
+ import type { WithClassName } from '../utils/types.js';
4
+ type JsonPrimitive = string | number | boolean | null;
5
+ type JsonValue = JsonPrimitive | JsonValue[] | {
6
+ [k: string]: JsonValue;
7
+ };
8
+ export type Props = WithClassName<{
9
+ defaultValue?: JsonValue;
10
+ onChange?: (val: JsonValue) => void;
11
+ onValidationError?: (issues: core.$ZodIssue[]) => void;
12
+ schema?: ZodType<JsonValue>;
13
+ }>;
14
+ export declare const JsonEditor: FunctionComponent<Props>;
15
+ export declare const ValueEditor: FunctionComponent<{
16
+ defaultValue?: JsonValue;
17
+ onChange?: (newValue: JsonValue) => void;
18
+ path?: Array<string | number>;
19
+ }>;
20
+ export {};
@@ -0,0 +1,159 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useState } from 'react';
3
+ import { ZodError } from 'zod';
4
+ import { clss } from '../../agnostic/css/clss/index.js';
5
+ import { isNonNullObject } from '../../agnostic/objects/is-object/index.js';
6
+ import { randomHash } from '../../agnostic/random/uuid/index.js';
7
+ import { Input } from '../Input/index.js';
8
+ import { Select } from '../Select/index.js';
9
+ import { Textarea } from '../Textarea/index.js';
10
+ import { mergeClassNames } from '../utils/index.js';
11
+ import { jsonEditor as publicClassName } from '../public-classnames.js';
12
+ import cssModule from './styles.module.css';
13
+ const c = clss(publicClassName, { cssModule });
14
+ export const JsonEditor = ({ defaultValue = null, onChange, onValidationError, schema, className }) => {
15
+ const [value, setValue] = useState(defaultValue);
16
+ const setValueAndDispatch = (val) => {
17
+ setValue(val);
18
+ onChange?.(val);
19
+ try {
20
+ schema?.parse(val);
21
+ }
22
+ catch (err) {
23
+ if (err instanceof ZodError) {
24
+ const { issues } = err;
25
+ onValidationError?.(issues);
26
+ }
27
+ else
28
+ throw err;
29
+ }
30
+ };
31
+ const rootClss = mergeClassNames(c(null, {}), className);
32
+ return _jsxs("div", { className: rootClss, children: [_jsx(ValueEditor, { defaultValue: defaultValue, onChange: val => setValueAndDispatch(val), path: [] }), _jsx("pre", { children: JSON.stringify(value, null, 2) })] });
33
+ };
34
+ export const ValueEditor = ({ defaultValue = {}, onChange, path = [] }) => {
35
+ // State
36
+ const [value, setValue] = useState(defaultValue);
37
+ const setValueAndDispatch = (newValue) => {
38
+ setValue(newValue);
39
+ onChange?.(newValue);
40
+ };
41
+ // Handlers
42
+ const handleTypeSelectChange = e => {
43
+ const newType = e.target.value;
44
+ if (newType === 'string')
45
+ return setValueAndDispatch('');
46
+ if (newType === 'number')
47
+ return setValueAndDispatch(0);
48
+ if (newType === 'boolean')
49
+ return setValueAndDispatch(false);
50
+ if (newType === 'null')
51
+ return setValueAndDispatch(null);
52
+ if (newType === 'record')
53
+ return setValueAndDispatch({ a: 0, b: false });
54
+ if (newType === 'array')
55
+ return setValueAndDispatch([]);
56
+ };
57
+ const handleStringValueChange = e => setValueAndDispatch(e.target.value);
58
+ const handleNumberValueChange = e => setValueAndDispatch(parseFloat(e.target.value));
59
+ const handleBooleanValueChange = e => setValueAndDispatch(e.target.checked);
60
+ const handleRecordValueChange = e => setValueAndDispatch(e);
61
+ const handleArrayValueChange = e => setValueAndDispatch(e);
62
+ // Rendering
63
+ const valueEditorClss = c('value', {
64
+ string: typeof value === 'string',
65
+ number: typeof value === 'number',
66
+ boolean: typeof value === 'boolean',
67
+ null: value === null,
68
+ array: Array.isArray(value),
69
+ record: !Array.isArray(value) && isNonNullObject(value)
70
+ });
71
+ const pathStringDataAttr = (path ?? []).map(e => e.toString()).join('.');
72
+ 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
+ };
74
+ const StringEditor = (props) => props.type === 'textarea'
75
+ ? _jsx(Textarea, { className: c('string'), defaultValue: props.defaultValue ?? '', onChange: props.onChange })
76
+ : _jsx(Input, { type: 'text', className: c('string'), defaultValue: props.defaultValue ?? '', onChange: props.onChange });
77
+ const NumberEditor = (props) => _jsx(Input, { className: c('number'), type: 'number', defaultValue: props.defaultValue ?? 0, onChange: props.onChange });
78
+ const BooleanEditor = (props) => _jsx(Input, { className: c('boolean'), type: 'checkbox', defaultChecked: props.defaultValue ?? false, onChange: props.onChange });
79
+ const NullEditor = () => _jsx("span", { className: c('null'), children: "null" });
80
+ const RecordEditor = ({ defaultValue = {}, onChange, path }) => {
81
+ const [value, setValue] = useState(new Map(Object
82
+ .entries(defaultValue)
83
+ .map(([key, val]) => [key, {
84
+ id: randomHash(8),
85
+ val
86
+ }])));
87
+ const setValueAndDispatch = (newValue) => {
88
+ setValue(newValue);
89
+ onChange?.(Array.from(newValue).reduce((acc, [key, { val }]) => ({
90
+ ...acc,
91
+ [key]: val
92
+ }), {}));
93
+ };
94
+ const handleDeleteProp = (key) => {
95
+ const newValue = new Map(value);
96
+ newValue.delete(key);
97
+ setValueAndDispatch(newValue);
98
+ };
99
+ const handleCreateProp = () => {
100
+ let propName = '';
101
+ while (value.get(propName) !== undefined) {
102
+ propName = randomHash(4);
103
+ }
104
+ const newValue = new Map(value);
105
+ newValue.set(propName, { id: randomHash(8), val: null });
106
+ setValueAndDispatch(newValue);
107
+ };
108
+ const handleRenameProp = (oldName) => e => {
109
+ const newName = e.target.value;
110
+ const newValue = new Map(Array
111
+ .from(value)
112
+ .map(([key, { id, val }]) => [
113
+ key === oldName ? newName : key,
114
+ { id, val }
115
+ ]));
116
+ setValueAndDispatch(newValue);
117
+ };
118
+ const handleChangeProp = (changedKey) => (newValue) => {
119
+ const newVal = new Map(Array.from(value).map(([key, { id, val }]) => [key, {
120
+ id,
121
+ val: key === changedKey ? newValue : val
122
+ }]));
123
+ setValueAndDispatch(newVal);
124
+ };
125
+ 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
+ };
127
+ const ArrayEditor = ({ defaultValue = [], onChange, path }) => {
128
+ const [value, setValue] = useState(new Map(defaultValue.map(val => [randomHash(8), val])));
129
+ const setValueAndDispatch = (newValue) => {
130
+ setValue(newValue);
131
+ onChange?.(Array.from(newValue).map(([, val]) => val));
132
+ };
133
+ const handleDeleteProp = (pos) => setValueAndDispatch(new Map([
134
+ ...Array.from(value).slice(0, pos),
135
+ ...Array.from(value).slice(pos + 1)
136
+ ]));
137
+ const handleCreateProp = () => {
138
+ const newValue = new Map([...Array.from(value), [randomHash(8), null]]);
139
+ setValueAndDispatch(newValue);
140
+ };
141
+ const handleChangeProp = (pos) => (newValue) => setValueAndDispatch(new Map([
142
+ ...Array.from(value).slice(0, pos),
143
+ [Array.from(value)[pos]?.[0] ?? randomHash(8), newValue],
144
+ ...Array.from(value).slice(pos + 1)
145
+ ]));
146
+ const handleLiftProp = (pos) => setValueAndDispatch(new Map([
147
+ ...Array.from(value).slice(0, pos - 1),
148
+ Array.from(value)[pos],
149
+ Array.from(value)[pos - 1],
150
+ ...Array.from(value).slice(pos + 1)
151
+ ].filter(e => e !== undefined)));
152
+ const handleDropProp = (pos) => setValueAndDispatch(new Map([
153
+ ...Array.from(value).slice(0, pos),
154
+ Array.from(value)[pos + 1],
155
+ Array.from(value)[pos],
156
+ ...Array.from(value).slice(pos + 2)
157
+ ].filter(e => e !== undefined)));
158
+ return _jsxs("ol", { children: [Array.from(value).map(([id, val], pos) => _jsxs("li", { className: c('array'), "data-path": [...(path ?? []), pos].join('.'), children: [_jsx("button", { className: c('delete-prop'), onClick: () => handleDeleteProp(pos), children: "x" }), _jsx("button", { className: c('lift-prop'), disabled: pos === 0, onClick: () => handleLiftProp(pos), children: "\u2191" }), _jsx("button", { className: c('drop-prop'), disabled: pos === value.size - 1, onClick: () => handleDropProp(pos), children: "\u2193" }), _jsx(ValueEditor, { defaultValue: val, onChange: handleChangeProp(pos), path: [...(path ?? []), pos] })] }, id)), _jsx("button", { className: c('create-prop'), onClick: handleCreateProp, children: "+" })] });
159
+ };
File without changes
@@ -0,0 +1,7 @@
1
+ import { type FunctionComponent, type SelectHTMLAttributes, type ReactNode, type PropsWithChildren } from 'react';
2
+ import type { WithClassName } from '../utils/types.js';
3
+ export type Props = SelectHTMLAttributes<HTMLSelectElement> & PropsWithChildren<WithClassName<{
4
+ label?: ReactNode;
5
+ error?: ReactNode;
6
+ }>>;
7
+ export declare const Select: FunctionComponent<Props>;
@@ -0,0 +1,14 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useState } from 'react';
3
+ import { clss } from '../../agnostic/css/clss/index.js';
4
+ import { isNotFalsy } from '../../agnostic/booleans/is-falsy/index.js';
5
+ import { randomHash } from '../../agnostic/random/uuid/index.js';
6
+ import { select as publicClassName } from '../public-classnames.js';
7
+ import { mergeClassNames } from '../utils/index.js';
8
+ import cssModule from './styles.module.css';
9
+ export const Select = ({ label, error, className, children, ...rest }) => {
10
+ const [id] = useState(`_${randomHash(12)}`);
11
+ const c = clss(publicClassName, { cssModule });
12
+ const rootClss = mergeClassNames(c(null), className);
13
+ return _jsxs("span", { className: rootClss, children: [isNotFalsy(label) && _jsx("label", { className: c('label'), htmlFor: id, children: label }), _jsx("select", { ...rest, className: c('select'), id: id, children: children }), isNotFalsy(error) && _jsx("span", { className: c('error'), children: error })] });
14
+ };
File without changes
@@ -0,0 +1,7 @@
1
+ import { type FunctionComponent, type TextareaHTMLAttributes, type ReactNode } from 'react';
2
+ import type { WithClassName } from '../utils/types.js';
3
+ export type Props = TextareaHTMLAttributes<HTMLTextAreaElement> & WithClassName<{
4
+ label?: ReactNode;
5
+ error?: ReactNode;
6
+ }>;
7
+ export declare const Textarea: FunctionComponent<Props>;
@@ -0,0 +1,14 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useState } from 'react';
3
+ import { clss } from '../../agnostic/css/clss/index.js';
4
+ import { isNotFalsy } from '../../agnostic/booleans/is-falsy/index.js';
5
+ import { randomHash } from '../../agnostic/random/uuid/index.js';
6
+ import { textarea as publicClassName } from '../public-classnames.js';
7
+ import { mergeClassNames } from '../utils/index.js';
8
+ import cssModule from './styles.module.css';
9
+ export const Textarea = ({ label, error, className, ...rest }) => {
10
+ const [id] = useState(`_${randomHash(12)}`);
11
+ const c = clss(publicClassName, { cssModule });
12
+ const rootClss = mergeClassNames(c(null), className);
13
+ return _jsxs("span", { className: rootClss, children: [isNotFalsy(label) && _jsx("label", { className: c('label'), htmlFor: id, children: label }), _jsx("textarea", { ...rest, className: c('textarea'), id: id }), isNotFalsy(error) && _jsx("span", { className: c('error'), children: error })] });
14
+ };
File without changes
@@ -1,20 +1,25 @@
1
1
  export * as beforeAfter from './BeforeAfter/index.js'
2
- export * as disclaimer from './Disclaimer/index.js'
3
- export * as drawer from './Drawer/index.js'
2
+ export * as button from './Button/index.js'
4
3
  export * as clippable from './Clippable/index.js'
4
+ export * as drawer from './Drawer/index.js'
5
+ export * as disclaimer from './Disclaimer/index.js'
5
6
  export * as eventListener from './EventListener/index.js'
6
7
  export * as gallery from './Gallery/index.js'
7
8
  export * as iframe from './Iframe/index.js'
8
9
  export * as image from './Image/index.js'
10
+ export * as input from './Input/index.js'
9
11
  export * as intersectionObserver from './IntersectionObserver/index.js'
12
+ export * as jsonEditor from './JsonEditor/index.js'
10
13
  export * as overlayer from './Overlayer/index.js'
11
14
  export * as paginator from './Paginator/index.js'
12
15
  export * as resizeObserver from './ResizeObserver/index.js'
13
16
  export * as scrllgngn from './Scrllgngn/index.js'
14
17
  export * as scrollListener from './ScrollListener/index.js'
18
+ export * as select from './Select/index.js'
15
19
  export * as sequencer from './Sequencer/index.js'
16
20
  export * as shadowRoot from './ShadowRoot/index.js'
17
21
  export * as subtitles from './Subtitles/index.js'
22
+ export * as textarea from './Textarea/index.js'
18
23
  export * as theatre from './Theatre/index.js'
19
24
  export * as uiModule from './UIModule/index.js'
20
25
  export * as video from './Video/index.js'
@@ -1,20 +1,25 @@
1
1
  export * as beforeAfter from './BeforeAfter/index.js'
2
- export * as disclaimer from './Disclaimer/index.js'
3
- export * as drawer from './Drawer/index.js'
2
+ export * as button from './Button/index.js'
4
3
  export * as clippable from './Clippable/index.js'
4
+ export * as drawer from './Drawer/index.js'
5
+ export * as disclaimer from './Disclaimer/index.js'
5
6
  export * as eventListener from './EventListener/index.js'
6
7
  export * as gallery from './Gallery/index.js'
7
8
  export * as iframe from './Iframe/index.js'
8
9
  export * as image from './Image/index.js'
10
+ export * as input from './Input/index.js'
9
11
  export * as intersectionObserver from './IntersectionObserver/index.js'
12
+ export * as jsonEditor from './JsonEditor/index.js'
10
13
  export * as overlayer from './Overlayer/index.js'
11
14
  export * as paginator from './Paginator/index.js'
12
15
  export * as resizeObserver from './ResizeObserver/index.js'
13
16
  export * as scrllgngn from './Scrllgngn/index.js'
14
17
  export * as scrollListener from './ScrollListener/index.js'
18
+ export * as select from './Select/index.js'
15
19
  export * as sequencer from './Sequencer/index.js'
16
20
  export * as shadowRoot from './ShadowRoot/index.js'
17
21
  export * as subtitles from './Subtitles/index.js'
22
+ export * as textarea from './Textarea/index.js'
18
23
  export * as theatre from './Theatre/index.js'
19
24
  export * as uiModule from './UIModule/index.js'
20
25
  export * as video from './Video/index.js'
@@ -1,21 +1,26 @@
1
- export declare const beforeAfter = "dsed-before-after";
2
- export declare const clippable = "dsed-clippable";
3
- export declare const disclaimer = "dsed-disclaimer";
4
- export declare const drawer = "dsed-drawer";
5
- export declare const eventListener = "dsed-event-listener";
6
- export declare const gallery = "dsed-gallery";
7
- export declare const iframe = "dsed-iframe";
8
- export declare const image = "dsed-image";
9
- export declare const intersectionObserver = "dsed-intersection-observer";
10
- export declare const overlayer = "dsed-overlayer";
11
- export declare const paginator = "dsed-paginator";
12
- export declare const resizeObserver = "dsed-resize-observer";
13
- export declare const scrllgngn = "dsed-scrllgngn";
14
- export declare const scrollListener = "dsed-scroll-listener";
15
- export declare const sequencer = "dsed-sequencer";
16
- export declare const shadowRoot = "dsed-shadow-root";
17
- export declare const subtitles = "dsed-subtitles";
18
- export declare const theatre = "dsed-theatre";
19
- export declare const uiModule = "dsed-ui-module";
20
- export declare const video = "dsed-video";
21
- export declare const videoWrapper = "dsed-video-wrapper";
1
+ export declare const beforeAfter = "lm-before-after";
2
+ export declare const button = "lm-button";
3
+ export declare const clippable = "lm-clippable";
4
+ export declare const disclaimer = "lm-disclaimer";
5
+ export declare const drawer = "lm-drawer";
6
+ export declare const eventListener = "lm-event-listener";
7
+ export declare const gallery = "lm-gallery";
8
+ export declare const iframe = "lm-iframe";
9
+ export declare const image = "lm-image";
10
+ export declare const input = "lm-input";
11
+ export declare const intersectionObserver = "lm-intersection-observer";
12
+ export declare const jsonEditor = "lm-json-editor";
13
+ export declare const overlayer = "lm-overlayer";
14
+ export declare const paginator = "lm-paginator";
15
+ export declare const resizeObserver = "lm-resize-observer";
16
+ export declare const scrllgngn = "lm-scrllgngn";
17
+ export declare const scrollListener = "lm-scroll-listener";
18
+ export declare const select = "lm-select";
19
+ export declare const sequencer = "lm-sequencer";
20
+ export declare const shadowRoot = "lm-shadow-root";
21
+ export declare const subtitles = "lm-subtitles";
22
+ export declare const textarea = "lm-textarea";
23
+ export declare const theatre = "lm-theatre";
24
+ export declare const uiModule = "lm-ui-module";
25
+ export declare const video = "lm-video";
26
+ export declare const videoWrapper = "lm-video-wrapper";
@@ -1,21 +1,26 @@
1
- export const beforeAfter = 'dsed-before-after';
2
- export const clippable = 'dsed-clippable';
3
- export const disclaimer = 'dsed-disclaimer';
4
- export const drawer = 'dsed-drawer';
5
- export const eventListener = 'dsed-event-listener';
6
- export const gallery = 'dsed-gallery';
7
- export const iframe = 'dsed-iframe';
8
- export const image = 'dsed-image';
9
- export const intersectionObserver = 'dsed-intersection-observer';
10
- export const overlayer = 'dsed-overlayer';
11
- export const paginator = 'dsed-paginator';
12
- export const resizeObserver = 'dsed-resize-observer';
13
- export const scrllgngn = 'dsed-scrllgngn';
14
- export const scrollListener = 'dsed-scroll-listener';
15
- export const sequencer = 'dsed-sequencer';
16
- export const shadowRoot = 'dsed-shadow-root';
17
- export const subtitles = 'dsed-subtitles';
18
- export const theatre = 'dsed-theatre';
19
- export const uiModule = 'dsed-ui-module';
20
- export const video = 'dsed-video';
21
- export const videoWrapper = 'dsed-video-wrapper';
1
+ export const beforeAfter = 'lm-before-after';
2
+ export const button = 'lm-button';
3
+ export const clippable = 'lm-clippable';
4
+ export const disclaimer = 'lm-disclaimer';
5
+ export const drawer = 'lm-drawer';
6
+ export const eventListener = 'lm-event-listener';
7
+ export const gallery = 'lm-gallery';
8
+ export const iframe = 'lm-iframe';
9
+ export const image = 'lm-image';
10
+ export const input = 'lm-input';
11
+ export const intersectionObserver = 'lm-intersection-observer';
12
+ export const jsonEditor = 'lm-json-editor';
13
+ export const overlayer = 'lm-overlayer';
14
+ export const paginator = 'lm-paginator';
15
+ export const resizeObserver = 'lm-resize-observer';
16
+ export const scrllgngn = 'lm-scrllgngn';
17
+ export const scrollListener = 'lm-scroll-listener';
18
+ export const select = 'lm-select';
19
+ export const sequencer = 'lm-sequencer';
20
+ export const shadowRoot = 'lm-shadow-root';
21
+ export const subtitles = 'lm-subtitles';
22
+ export const textarea = 'lm-textarea';
23
+ export const theatre = 'lm-theatre';
24
+ export const uiModule = 'lm-ui-module';
25
+ export const video = 'lm-video';
26
+ export const videoWrapper = 'lm-video-wrapper';
@@ -2,11 +2,11 @@ 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
4
  export * as generateSignedUrl from './generate-signed-url/index.js'
5
- export * as getPermissions from './get-permissions/index.js'
6
5
  export * as getMetadata from './get-metadata/index.js'
6
+ export * as getPermissions from './get-permissions/index.js'
7
7
  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 updateMetadata from './update-metadata/index.js'
12
11
  export * as upload from './upload/index.js'
12
+ export * as updateMetadata from './update-metadata/index.js'
@@ -2,11 +2,11 @@ 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
4
  export * as generateSignedUrl from './generate-signed-url/index.js'
5
- export * as getPermissions from './get-permissions/index.js'
6
5
  export * as getMetadata from './get-metadata/index.js'
6
+ export * as getPermissions from './get-permissions/index.js'
7
7
  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 updateMetadata from './update-metadata/index.js'
12
11
  export * as upload from './upload/index.js'
12
+ export * as updateMetadata from './update-metadata/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 remove from './remove/index.js'
5
4
  export * as move from './move/index.js'
5
+ export * as remove from './remove/index.js'
6
6
  export * as stat from './stat/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 remove from './remove/index.js'
5
4
  export * as move from './move/index.js'
5
+ export * as remove from './remove/index.js'
6
6
  export * as stat from './stat/index.js'
7
7
  export * as upload from './upload/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 resize from './resize/index.js'
14
13
  export * as rotate from './rotate/index.js'
15
14
  export * as saturate from './saturate/index.js'
15
+ export * as resize from './resize/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 resize from './resize/index.js'
14
13
  export * as rotate from './rotate/index.js'
15
14
  export * as saturate from './saturate/index.js'
15
+ export * as resize from './resize/index.js'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@design-edito/tools",
3
- "version": "0.4.18",
3
+ "version": "0.4.20",
4
4
  "description": "",
5
5
  "author": "Maxime Fabas",
6
6
  "license": "ISC",
@@ -1360,6 +1360,13 @@
1360
1360
  "./components/BeforeAfter/index.js": {
1361
1361
  "import": "./components/BeforeAfter/index.js"
1362
1362
  },
1363
+ "./components/Button": {
1364
+ "import": "./components/Button/index.js",
1365
+ "types": "./components/Button/index.d.ts"
1366
+ },
1367
+ "./components/Button/index.js": {
1368
+ "import": "./components/Button/index.js"
1369
+ },
1363
1370
  "./components/Clippable": {
1364
1371
  "import": "./components/Clippable/index.js",
1365
1372
  "types": "./components/Clippable/index.d.ts"
@@ -1412,6 +1419,13 @@
1412
1419
  "./components/index.js": {
1413
1420
  "import": "./components/index.js"
1414
1421
  },
1422
+ "./components/Input": {
1423
+ "import": "./components/Input/index.js",
1424
+ "types": "./components/Input/index.d.ts"
1425
+ },
1426
+ "./components/Input/index.js": {
1427
+ "import": "./components/Input/index.js"
1428
+ },
1415
1429
  "./components/IntersectionObserver": {
1416
1430
  "import": "./components/IntersectionObserver/index.js",
1417
1431
  "types": "./components/IntersectionObserver/index.d.ts"
@@ -1419,6 +1433,13 @@
1419
1433
  "./components/IntersectionObserver/index.js": {
1420
1434
  "import": "./components/IntersectionObserver/index.js"
1421
1435
  },
1436
+ "./components/JsonEditor": {
1437
+ "import": "./components/JsonEditor/index.js",
1438
+ "types": "./components/JsonEditor/index.d.ts"
1439
+ },
1440
+ "./components/JsonEditor/index.js": {
1441
+ "import": "./components/JsonEditor/index.js"
1442
+ },
1422
1443
  "./components/Overlayer": {
1423
1444
  "import": "./components/Overlayer/index.js",
1424
1445
  "types": "./components/Overlayer/index.d.ts"
@@ -1454,6 +1475,13 @@
1454
1475
  "./components/ScrollListener/index.js": {
1455
1476
  "import": "./components/ScrollListener/index.js"
1456
1477
  },
1478
+ "./components/Select": {
1479
+ "import": "./components/Select/index.js",
1480
+ "types": "./components/Select/index.d.ts"
1481
+ },
1482
+ "./components/Select/index.js": {
1483
+ "import": "./components/Select/index.js"
1484
+ },
1457
1485
  "./components/Sequencer": {
1458
1486
  "import": "./components/Sequencer/index.js",
1459
1487
  "types": "./components/Sequencer/index.d.ts"
@@ -1479,6 +1507,13 @@
1479
1507
  "import": "./components/Subtitles/types.js",
1480
1508
  "types": "./components/Subtitles/types.d.ts"
1481
1509
  },
1510
+ "./components/Textarea": {
1511
+ "import": "./components/Textarea/index.js",
1512
+ "types": "./components/Textarea/index.d.ts"
1513
+ },
1514
+ "./components/Textarea/index.js": {
1515
+ "import": "./components/Textarea/index.js"
1516
+ },
1482
1517
  "./components/Theatre": {
1483
1518
  "import": "./components/Theatre/index.js",
1484
1519
  "types": "./components/Theatre/index.d.ts"