@thienvu18/designable-react-settings-form 2.0.0 → 2.0.2

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 (167) hide show
  1. package/esm/SchemaField.d.ts +5115 -1578
  2. package/esm/SchemaField.js +76 -41
  3. package/esm/SettingsForm.d.ts +4 -4
  4. package/esm/SettingsForm.js +99 -49
  5. package/esm/components/BackgroundStyleSetter/index.d.ts +4 -4
  6. package/esm/components/BackgroundStyleSetter/index.js +95 -42
  7. package/esm/components/BorderRadiusStyleSetter/index.d.ts +4 -4
  8. package/esm/components/BorderRadiusStyleSetter/index.js +13 -10
  9. package/esm/components/BorderStyleSetter/index.d.ts +5 -5
  10. package/esm/components/BorderStyleSetter/index.js +121 -68
  11. package/esm/components/BoxShadowStyleSetter/index.d.ts +6 -6
  12. package/esm/components/BoxShadowStyleSetter/index.js +72 -24
  13. package/esm/components/BoxStyleSetter/index.d.ts +7 -7
  14. package/esm/components/BoxStyleSetter/index.js +98 -46
  15. package/esm/components/CollapseItem/index.d.ts +6 -6
  16. package/esm/components/CollapseItem/index.js +35 -15
  17. package/esm/components/ColorInput/index.d.ts +5 -5
  18. package/esm/components/ColorInput/index.js +35 -17
  19. package/esm/components/ColorInput/styles.less +0 -5
  20. package/esm/components/CornerInput/index.d.ts +7 -7
  21. package/esm/components/CornerInput/index.js +50 -21
  22. package/esm/components/DisplayStyleSetter/index.d.ts +7 -7
  23. package/esm/components/DisplayStyleSetter/index.js +62 -33
  24. package/esm/components/DrawerSetter/index.d.ts +6 -6
  25. package/esm/components/DrawerSetter/index.js +82 -42
  26. package/esm/components/DrawerSetter/styles.less +2 -2
  27. package/esm/components/FlexStyleSetter/index.d.ts +5 -5
  28. package/esm/components/FlexStyleSetter/index.js +160 -110
  29. package/esm/components/FoldItem/index.d.ts +9 -7
  30. package/esm/components/FoldItem/index.js +80 -46
  31. package/esm/components/FontStyleSetter/index.d.ts +4 -4
  32. package/esm/components/FontStyleSetter/index.js +169 -85
  33. package/esm/components/ImageInput/index.d.ts +7 -7
  34. package/esm/components/ImageInput/index.js +59 -39
  35. package/esm/components/InputItems/index.d.ts +19 -17
  36. package/esm/components/InputItems/index.js +42 -16
  37. package/esm/components/MonacoInput/config.d.ts +1 -1
  38. package/esm/components/MonacoInput/config.js +40 -38
  39. package/esm/components/MonacoInput/format.d.ts +4 -1
  40. package/esm/components/MonacoInput/format.js +33 -29
  41. package/esm/components/MonacoInput/index.d.ts +13 -13
  42. package/esm/components/MonacoInput/index.js +298 -212
  43. package/esm/components/MonacoInput/themes/chrome.d.ts +44 -38
  44. package/esm/components/MonacoInput/themes/chrome.js +105 -105
  45. package/esm/components/MonacoInput/themes/monokai.d.ts +34 -30
  46. package/esm/components/MonacoInput/themes/monokai.js +139 -139
  47. package/esm/components/PolyInput/index.d.ts +17 -17
  48. package/esm/components/PolyInput/index.js +96 -66
  49. package/esm/components/PositionInput/index.d.ts +7 -7
  50. package/esm/components/PositionInput/index.js +48 -21
  51. package/esm/components/PositionInput/styles.less +0 -1
  52. package/esm/components/SizeInput/index.d.ts +6 -2
  53. package/esm/components/SizeInput/index.js +44 -46
  54. package/esm/components/SizeInput/styles.less +0 -1
  55. package/esm/components/ValueInput/index.d.ts +2 -2
  56. package/esm/components/ValueInput/index.js +89 -72
  57. package/esm/components/index.d.ts +20 -20
  58. package/esm/components/index.js +20 -20
  59. package/esm/effects/index.d.ts +2 -2
  60. package/esm/effects/index.js +2 -2
  61. package/esm/effects/useLocales.d.ts +2 -2
  62. package/esm/effects/useLocales.js +57 -59
  63. package/esm/effects/useSnapshot.d.ts +2 -2
  64. package/esm/effects/useSnapshot.js +9 -9
  65. package/esm/index.d.ts +5 -5
  66. package/esm/index.js +5 -5
  67. package/esm/locales/en-US.d.ts +12 -12
  68. package/esm/locales/en-US.js +10 -10
  69. package/esm/locales/index.d.ts +1 -1
  70. package/esm/locales/index.js +5 -5
  71. package/esm/locales/ko-KR.d.ts +12 -12
  72. package/esm/locales/ko-KR.js +10 -10
  73. package/esm/locales/zh-CN.d.ts +12 -12
  74. package/esm/locales/zh-CN.js +10 -10
  75. package/esm/registry.d.ts +2 -2
  76. package/esm/registry.js +11 -11
  77. package/esm/shared/context.d.ts +2 -2
  78. package/esm/shared/context.js +2 -2
  79. package/esm/shared/loadScript.d.ts +5 -5
  80. package/esm/shared/loadScript.js +27 -28
  81. package/esm/styles.less +5 -4
  82. package/esm/types.d.ts +8 -8
  83. package/esm/types.js +1 -1
  84. package/lib/SchemaField.d.ts +5115 -1578
  85. package/lib/SchemaField.js +44 -44
  86. package/lib/SettingsForm.d.ts +4 -4
  87. package/lib/SettingsForm.js +108 -55
  88. package/lib/components/BackgroundStyleSetter/index.d.ts +4 -4
  89. package/lib/components/BackgroundStyleSetter/index.js +106 -48
  90. package/lib/components/BorderRadiusStyleSetter/index.d.ts +4 -4
  91. package/lib/components/BorderRadiusStyleSetter/index.js +33 -14
  92. package/lib/components/BorderStyleSetter/index.d.ts +5 -5
  93. package/lib/components/BorderStyleSetter/index.js +138 -74
  94. package/lib/components/BoxShadowStyleSetter/index.d.ts +6 -6
  95. package/lib/components/BoxShadowStyleSetter/index.js +82 -30
  96. package/lib/components/BoxStyleSetter/index.d.ts +7 -7
  97. package/lib/components/BoxStyleSetter/index.js +122 -52
  98. package/lib/components/CollapseItem/index.d.ts +6 -6
  99. package/lib/components/CollapseItem/index.js +49 -21
  100. package/lib/components/ColorInput/index.d.ts +5 -5
  101. package/lib/components/ColorInput/index.js +39 -21
  102. package/lib/components/ColorInput/styles.less +0 -5
  103. package/lib/components/CornerInput/index.d.ts +7 -7
  104. package/lib/components/CornerInput/index.js +70 -28
  105. package/lib/components/DisplayStyleSetter/index.d.ts +7 -7
  106. package/lib/components/DisplayStyleSetter/index.js +75 -39
  107. package/lib/components/DrawerSetter/index.d.ts +6 -6
  108. package/lib/components/DrawerSetter/index.js +99 -48
  109. package/lib/components/DrawerSetter/styles.less +2 -2
  110. package/lib/components/FlexStyleSetter/index.d.ts +5 -5
  111. package/lib/components/FlexStyleSetter/index.js +208 -116
  112. package/lib/components/FoldItem/index.d.ts +9 -7
  113. package/lib/components/FoldItem/index.js +140 -72
  114. package/lib/components/FontStyleSetter/index.d.ts +4 -4
  115. package/lib/components/FontStyleSetter/index.js +216 -91
  116. package/lib/components/ImageInput/index.d.ts +7 -7
  117. package/lib/components/ImageInput/index.js +69 -47
  118. package/lib/components/InputItems/index.d.ts +19 -17
  119. package/lib/components/InputItems/index.js +101 -46
  120. package/lib/components/MonacoInput/config.d.ts +1 -1
  121. package/lib/components/MonacoInput/config.js +49 -45
  122. package/lib/components/MonacoInput/format.d.ts +4 -1
  123. package/lib/components/MonacoInput/format.js +38 -33
  124. package/lib/components/MonacoInput/index.d.ts +13 -13
  125. package/lib/components/MonacoInput/index.js +347 -241
  126. package/lib/components/MonacoInput/themes/chrome.d.ts +44 -38
  127. package/lib/components/MonacoInput/themes/chrome.js +107 -107
  128. package/lib/components/MonacoInput/themes/monokai.d.ts +34 -30
  129. package/lib/components/MonacoInput/themes/monokai.js +141 -141
  130. package/lib/components/PolyInput/index.d.ts +17 -17
  131. package/lib/components/PolyInput/index.js +151 -96
  132. package/lib/components/PositionInput/index.d.ts +7 -7
  133. package/lib/components/PositionInput/index.js +68 -28
  134. package/lib/components/PositionInput/styles.less +0 -1
  135. package/lib/components/SizeInput/index.d.ts +6 -2
  136. package/lib/components/SizeInput/index.js +47 -49
  137. package/lib/components/SizeInput/styles.less +0 -1
  138. package/lib/components/ValueInput/index.d.ts +2 -2
  139. package/lib/components/ValueInput/index.js +92 -75
  140. package/lib/components/index.d.ts +20 -20
  141. package/lib/components/index.js +52 -36
  142. package/lib/effects/index.d.ts +2 -2
  143. package/lib/effects/index.js +34 -18
  144. package/lib/effects/useLocales.d.ts +2 -2
  145. package/lib/effects/useLocales.js +67 -63
  146. package/lib/effects/useSnapshot.d.ts +2 -2
  147. package/lib/effects/useSnapshot.js +13 -13
  148. package/lib/index.d.ts +5 -5
  149. package/lib/index.js +37 -21
  150. package/lib/locales/en-US.d.ts +12 -12
  151. package/lib/locales/en-US.js +12 -12
  152. package/lib/locales/index.d.ts +1 -1
  153. package/lib/locales/index.js +16 -10
  154. package/lib/locales/ko-KR.d.ts +12 -12
  155. package/lib/locales/ko-KR.js +12 -12
  156. package/lib/locales/zh-CN.d.ts +12 -12
  157. package/lib/locales/zh-CN.js +12 -12
  158. package/lib/registry.d.ts +2 -2
  159. package/lib/registry.js +21 -19
  160. package/lib/shared/context.d.ts +2 -2
  161. package/lib/shared/context.js +5 -5
  162. package/lib/shared/loadScript.d.ts +5 -5
  163. package/lib/shared/loadScript.js +32 -32
  164. package/lib/styles.less +5 -4
  165. package/lib/types.d.ts +8 -8
  166. package/lib/types.js +2 -2
  167. package/package.json +26 -27
@@ -1,106 +1,106 @@
1
1
  export default {
2
- base: 'vs',
3
- inherit: true,
4
- rules: [
5
- {
6
- foreground: 'c41a16',
7
- token: 'string',
8
- },
9
- {
10
- foreground: '1c00cf',
11
- token: 'constant.numeric',
12
- },
13
- {
14
- foreground: 'aa0d91',
15
- token: 'keyword',
16
- },
17
- {
18
- foreground: '000000',
19
- token: 'keyword.operator',
20
- },
21
- {
22
- foreground: 'aa0d91',
23
- token: 'constant.language',
24
- },
25
- {
26
- foreground: '990000',
27
- token: 'support.class.exception',
28
- },
29
- {
30
- foreground: '000000',
31
- token: 'entity.name.function',
32
- },
33
- {
34
- fontStyle: 'bold underline',
35
- token: 'entity.name.type',
36
- },
37
- {
38
- fontStyle: 'italic',
39
- token: 'variable.parameter',
40
- },
41
- {
42
- foreground: '007400',
43
- token: 'comment',
44
- },
45
- {
46
- foreground: 'ff0000',
47
- token: 'invalid',
48
- },
49
- {
50
- background: 'e71a1100',
51
- token: 'invalid.deprecated.trailing-whitespace',
52
- },
53
- {
54
- foreground: '000000',
55
- background: 'fafafafc',
56
- token: 'text source',
57
- },
58
- {
59
- foreground: 'aa0d91',
60
- token: 'meta.tag',
61
- },
62
- {
63
- foreground: 'aa0d91',
64
- token: 'declaration.tag',
65
- },
66
- {
67
- foreground: '000000',
68
- fontStyle: 'bold',
69
- token: 'support',
70
- },
71
- {
72
- foreground: 'aa0d91',
73
- token: 'storage',
74
- },
75
- {
76
- fontStyle: 'bold underline',
77
- token: 'entity.name.section',
78
- },
79
- {
80
- foreground: '000000',
81
- fontStyle: 'bold',
82
- token: 'entity.name.function.frame',
83
- },
84
- {
85
- foreground: '333333',
86
- token: 'meta.tag.preprocessor.xml',
87
- },
88
- {
89
- foreground: '994500',
90
- fontStyle: 'italic',
91
- token: 'entity.other.attribute-name',
92
- },
93
- {
94
- foreground: '881280',
95
- token: 'entity.name.tag',
96
- },
97
- ],
98
- colors: {
99
- 'editor.foreground': '#000000',
100
- 'editor.background': '#FFFFFF',
101
- 'editor.selectionBackground': '#BAD6FD',
102
- 'editor.lineHighlightBackground': '#EFEFFF',
103
- 'editorCursor.foreground': '#000000',
104
- 'editorWhitespace.foreground': '#B3B3B3F4',
105
- },
106
- };
2
+ base: 'vs',
3
+ inherit: true,
4
+ rules: [
5
+ {
6
+ foreground: 'c41a16',
7
+ token: 'string',
8
+ },
9
+ {
10
+ foreground: '1c00cf',
11
+ token: 'constant.numeric',
12
+ },
13
+ {
14
+ foreground: 'aa0d91',
15
+ token: 'keyword',
16
+ },
17
+ {
18
+ foreground: '000000',
19
+ token: 'keyword.operator',
20
+ },
21
+ {
22
+ foreground: 'aa0d91',
23
+ token: 'constant.language',
24
+ },
25
+ {
26
+ foreground: '990000',
27
+ token: 'support.class.exception',
28
+ },
29
+ {
30
+ foreground: '000000',
31
+ token: 'entity.name.function',
32
+ },
33
+ {
34
+ fontStyle: 'bold underline',
35
+ token: 'entity.name.type',
36
+ },
37
+ {
38
+ fontStyle: 'italic',
39
+ token: 'variable.parameter',
40
+ },
41
+ {
42
+ foreground: '007400',
43
+ token: 'comment',
44
+ },
45
+ {
46
+ foreground: 'ff0000',
47
+ token: 'invalid',
48
+ },
49
+ {
50
+ background: 'e71a1100',
51
+ token: 'invalid.deprecated.trailing-whitespace',
52
+ },
53
+ {
54
+ foreground: '000000',
55
+ background: 'fafafafc',
56
+ token: 'text source',
57
+ },
58
+ {
59
+ foreground: 'aa0d91',
60
+ token: 'meta.tag',
61
+ },
62
+ {
63
+ foreground: 'aa0d91',
64
+ token: 'declaration.tag',
65
+ },
66
+ {
67
+ foreground: '000000',
68
+ fontStyle: 'bold',
69
+ token: 'support',
70
+ },
71
+ {
72
+ foreground: 'aa0d91',
73
+ token: 'storage',
74
+ },
75
+ {
76
+ fontStyle: 'bold underline',
77
+ token: 'entity.name.section',
78
+ },
79
+ {
80
+ foreground: '000000',
81
+ fontStyle: 'bold',
82
+ token: 'entity.name.function.frame',
83
+ },
84
+ {
85
+ foreground: '333333',
86
+ token: 'meta.tag.preprocessor.xml',
87
+ },
88
+ {
89
+ foreground: '994500',
90
+ fontStyle: 'italic',
91
+ token: 'entity.other.attribute-name',
92
+ },
93
+ {
94
+ foreground: '881280',
95
+ token: 'entity.name.tag',
96
+ },
97
+ ],
98
+ colors: {
99
+ 'editor.foreground': '#000000',
100
+ 'editor.background': '#FFFFFF',
101
+ 'editor.selectionBackground': '#BAD6FD',
102
+ 'editor.lineHighlightBackground': '#EFEFFF',
103
+ 'editorCursor.foreground': '#000000',
104
+ 'editorWhitespace.foreground': '#B3B3B3F4',
105
+ },
106
+ }
@@ -1,31 +1,35 @@
1
1
  declare const _default: {
2
- base: string;
3
- inherit: boolean;
4
- rules: ({
5
- foreground: string;
6
- token: string;
7
- fontStyle?: undefined;
8
- background?: undefined;
9
- } | {
10
- foreground: string;
11
- fontStyle: string;
12
- token: string;
13
- background?: undefined;
14
- } | {
15
- foreground: string;
16
- background: string;
17
- token: string;
18
- fontStyle?: undefined;
19
- })[];
20
- colors: {
21
- 'editor.foreground': string;
22
- 'editor.background': string;
23
- 'editor.selectionBackground': string;
24
- 'editor.lineHighlightBackground': string;
25
- 'editorCursor.foreground': string;
26
- 'editorWhitespace.foreground': string;
27
- 'editorIndentGuide.activeBackground': string;
28
- 'editor.selectionHighlightBorder': string;
29
- };
30
- };
31
- export default _default;
2
+ base: string
3
+ inherit: boolean
4
+ rules: (
5
+ | {
6
+ foreground: string
7
+ token: string
8
+ fontStyle?: undefined
9
+ background?: undefined
10
+ }
11
+ | {
12
+ foreground: string
13
+ fontStyle: string
14
+ token: string
15
+ background?: undefined
16
+ }
17
+ | {
18
+ foreground: string
19
+ background: string
20
+ token: string
21
+ fontStyle?: undefined
22
+ }
23
+ )[]
24
+ colors: {
25
+ 'editor.foreground': string
26
+ 'editor.background': string
27
+ 'editor.selectionBackground': string
28
+ 'editor.lineHighlightBackground': string
29
+ 'editorCursor.foreground': string
30
+ 'editorWhitespace.foreground': string
31
+ 'editorIndentGuide.activeBackground': string
32
+ 'editor.selectionHighlightBorder': string
33
+ }
34
+ }
35
+ export default _default
@@ -1,140 +1,140 @@
1
1
  export default {
2
- base: 'vs-dark',
3
- inherit: true,
4
- rules: [
5
- {
6
- foreground: '75715e',
7
- token: 'comment',
8
- },
9
- {
10
- foreground: 'e6db74',
11
- token: 'string',
12
- },
13
- {
14
- foreground: 'ae81ff',
15
- token: 'constant.numeric',
16
- },
17
- {
18
- foreground: 'ae81ff',
19
- token: 'constant.language',
20
- },
21
- {
22
- foreground: 'ae81ff',
23
- token: 'constant.character',
24
- },
25
- {
26
- foreground: 'ae81ff',
27
- token: 'constant.other',
28
- },
29
- {
30
- foreground: 'f92672',
31
- token: 'keyword',
32
- },
33
- {
34
- foreground: 'f92672',
35
- token: 'storage',
36
- },
37
- {
38
- foreground: '66d9ef',
39
- fontStyle: 'italic',
40
- token: 'storage.type',
41
- },
42
- {
43
- foreground: 'a6e22e',
44
- fontStyle: 'underline',
45
- token: 'entity.name.class',
46
- },
47
- {
48
- foreground: 'a6e22e',
49
- fontStyle: 'italic underline',
50
- token: 'entity.other.inherited-class',
51
- },
52
- {
53
- foreground: 'a6e22e',
54
- token: 'entity.name.function',
55
- },
56
- {
57
- foreground: 'fd971f',
58
- fontStyle: 'italic',
59
- token: 'variable.parameter',
60
- },
61
- {
62
- foreground: 'f92672',
63
- token: 'entity.name.tag',
64
- },
65
- {
66
- foreground: 'a6e22e',
67
- token: 'entity.other.attribute-name',
68
- },
69
- {
70
- foreground: '66d9ef',
71
- token: 'support.function',
72
- },
73
- {
74
- foreground: '66d9ef',
75
- token: 'support.constant',
76
- },
77
- {
78
- foreground: '66d9ef',
79
- fontStyle: 'italic',
80
- token: 'support.type',
81
- },
82
- {
83
- foreground: '66d9ef',
84
- fontStyle: 'italic',
85
- token: 'support.class',
86
- },
87
- {
88
- foreground: 'f8f8f0',
89
- background: 'f92672',
90
- token: 'invalid',
91
- },
92
- {
93
- foreground: 'f8f8f0',
94
- background: 'ae81ff',
95
- token: 'invalid.deprecated',
96
- },
97
- {
98
- foreground: 'cfcfc2',
99
- token: 'meta.structure.dictionary.json string.quoted.double.json',
100
- },
101
- {
102
- foreground: '75715e',
103
- token: 'meta.diff',
104
- },
105
- {
106
- foreground: '75715e',
107
- token: 'meta.diff.header',
108
- },
109
- {
110
- foreground: 'f92672',
111
- token: 'markup.deleted',
112
- },
113
- {
114
- foreground: 'a6e22e',
115
- token: 'markup.inserted',
116
- },
117
- {
118
- foreground: 'e6db74',
119
- token: 'markup.changed',
120
- },
121
- {
122
- foreground: 'ae81ffa0',
123
- token: 'constant.numeric.line-number.find-in-files - match',
124
- },
125
- {
126
- foreground: 'e6db74',
127
- token: 'entity.name.filename.find-in-files',
128
- },
129
- ],
130
- colors: {
131
- 'editor.foreground': '#F8F8F2',
132
- 'editor.background': '#222222',
133
- 'editor.selectionBackground': '#49483E',
134
- 'editor.lineHighlightBackground': '#3E3D32',
135
- 'editorCursor.foreground': '#F8F8F0',
136
- 'editorWhitespace.foreground': '#3B3A32',
137
- 'editorIndentGuide.activeBackground': '#9D550FB0',
138
- 'editor.selectionHighlightBorder': '#222218',
139
- },
140
- };
2
+ base: 'vs-dark',
3
+ inherit: true,
4
+ rules: [
5
+ {
6
+ foreground: '75715e',
7
+ token: 'comment',
8
+ },
9
+ {
10
+ foreground: 'e6db74',
11
+ token: 'string',
12
+ },
13
+ {
14
+ foreground: 'ae81ff',
15
+ token: 'constant.numeric',
16
+ },
17
+ {
18
+ foreground: 'ae81ff',
19
+ token: 'constant.language',
20
+ },
21
+ {
22
+ foreground: 'ae81ff',
23
+ token: 'constant.character',
24
+ },
25
+ {
26
+ foreground: 'ae81ff',
27
+ token: 'constant.other',
28
+ },
29
+ {
30
+ foreground: 'f92672',
31
+ token: 'keyword',
32
+ },
33
+ {
34
+ foreground: 'f92672',
35
+ token: 'storage',
36
+ },
37
+ {
38
+ foreground: '66d9ef',
39
+ fontStyle: 'italic',
40
+ token: 'storage.type',
41
+ },
42
+ {
43
+ foreground: 'a6e22e',
44
+ fontStyle: 'underline',
45
+ token: 'entity.name.class',
46
+ },
47
+ {
48
+ foreground: 'a6e22e',
49
+ fontStyle: 'italic underline',
50
+ token: 'entity.other.inherited-class',
51
+ },
52
+ {
53
+ foreground: 'a6e22e',
54
+ token: 'entity.name.function',
55
+ },
56
+ {
57
+ foreground: 'fd971f',
58
+ fontStyle: 'italic',
59
+ token: 'variable.parameter',
60
+ },
61
+ {
62
+ foreground: 'f92672',
63
+ token: 'entity.name.tag',
64
+ },
65
+ {
66
+ foreground: 'a6e22e',
67
+ token: 'entity.other.attribute-name',
68
+ },
69
+ {
70
+ foreground: '66d9ef',
71
+ token: 'support.function',
72
+ },
73
+ {
74
+ foreground: '66d9ef',
75
+ token: 'support.constant',
76
+ },
77
+ {
78
+ foreground: '66d9ef',
79
+ fontStyle: 'italic',
80
+ token: 'support.type',
81
+ },
82
+ {
83
+ foreground: '66d9ef',
84
+ fontStyle: 'italic',
85
+ token: 'support.class',
86
+ },
87
+ {
88
+ foreground: 'f8f8f0',
89
+ background: 'f92672',
90
+ token: 'invalid',
91
+ },
92
+ {
93
+ foreground: 'f8f8f0',
94
+ background: 'ae81ff',
95
+ token: 'invalid.deprecated',
96
+ },
97
+ {
98
+ foreground: 'cfcfc2',
99
+ token: 'meta.structure.dictionary.json string.quoted.double.json',
100
+ },
101
+ {
102
+ foreground: '75715e',
103
+ token: 'meta.diff',
104
+ },
105
+ {
106
+ foreground: '75715e',
107
+ token: 'meta.diff.header',
108
+ },
109
+ {
110
+ foreground: 'f92672',
111
+ token: 'markup.deleted',
112
+ },
113
+ {
114
+ foreground: 'a6e22e',
115
+ token: 'markup.inserted',
116
+ },
117
+ {
118
+ foreground: 'e6db74',
119
+ token: 'markup.changed',
120
+ },
121
+ {
122
+ foreground: 'ae81ffa0',
123
+ token: 'constant.numeric.line-number.find-in-files - match',
124
+ },
125
+ {
126
+ foreground: 'e6db74',
127
+ token: 'entity.name.filename.find-in-files',
128
+ },
129
+ ],
130
+ colors: {
131
+ 'editor.foreground': '#F8F8F2',
132
+ 'editor.background': '#222222',
133
+ 'editor.selectionBackground': '#49483E',
134
+ 'editor.lineHighlightBackground': '#3E3D32',
135
+ 'editorCursor.foreground': '#F8F8F0',
136
+ 'editorWhitespace.foreground': '#3B3A32',
137
+ 'editorIndentGuide.activeBackground': '#9D550FB0',
138
+ 'editor.selectionHighlightBorder': '#222218',
139
+ },
140
+ }
@@ -1,21 +1,21 @@
1
- import React from 'react';
2
- import './styles.less';
1
+ import React from 'react'
2
+ import './styles.less'
3
3
  export interface IInput {
4
- style?: React.CSSProperties;
5
- className?: string;
6
- value: any;
7
- onChange: (value: any) => void;
8
- exclude?: string[];
9
- include?: string[];
4
+ style?: React.CSSProperties
5
+ className?: string
6
+ value: any
7
+ onChange: (value: any) => void
8
+ exclude?: string[]
9
+ include?: string[]
10
10
  }
11
11
  export interface IPolyType {
12
- type: string;
13
- title?: string;
14
- icon?: string;
15
- component?: any;
16
- checker: (value: any) => boolean;
17
- toInputValue?: (value: any) => any;
18
- toChangeValue?: (value: any) => any;
12
+ type: string
13
+ title?: string
14
+ icon?: string
15
+ component?: any
16
+ checker: (value: any) => boolean
17
+ toInputValue?: (value: any) => any
18
+ toChangeValue?: (value: any) => any
19
19
  }
20
- export type PolyTypes = IPolyType[];
21
- export declare function createPolyInput(polyTypes?: PolyTypes): React.FC<IInput>;
20
+ export type PolyTypes = IPolyType[]
21
+ export declare function createPolyInput(polyTypes?: PolyTypes): React.FC<IInput>