@yeshwanthyk/open-tui 0.1.0 → 0.1.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 (132) hide show
  1. package/dist/app.d.ts +18 -0
  2. package/dist/app.d.ts.map +1 -0
  3. package/dist/app.js +28 -0
  4. package/dist/app.js.map +1 -0
  5. package/dist/autocomplete/autocomplete.d.ts +48 -0
  6. package/dist/autocomplete/autocomplete.d.ts.map +1 -0
  7. package/dist/autocomplete/autocomplete.js +391 -0
  8. package/dist/autocomplete/autocomplete.js.map +1 -0
  9. package/dist/autocomplete/file-index.d.ts +36 -0
  10. package/dist/autocomplete/file-index.d.ts.map +1 -0
  11. package/dist/autocomplete/file-index.js +143 -0
  12. package/dist/autocomplete/file-index.js.map +1 -0
  13. package/dist/autocomplete/index.d.ts +3 -0
  14. package/dist/autocomplete/index.d.ts.map +1 -0
  15. package/dist/autocomplete/index.js +3 -0
  16. package/dist/autocomplete/index.js.map +1 -0
  17. package/dist/components/badge.d.ts +11 -0
  18. package/dist/components/badge.d.ts.map +1 -0
  19. package/dist/components/badge.js +28 -0
  20. package/dist/components/badge.js.map +1 -0
  21. package/dist/components/code-block.d.ts +12 -0
  22. package/dist/components/code-block.d.ts.map +1 -0
  23. package/dist/components/code-block.js +21 -0
  24. package/dist/components/code-block.js.map +1 -0
  25. package/dist/components/dialog.d.ts +12 -0
  26. package/dist/components/dialog.d.ts.map +1 -0
  27. package/dist/components/dialog.js +15 -0
  28. package/dist/components/dialog.js.map +1 -0
  29. package/dist/components/diff.d.ts +11 -0
  30. package/dist/components/diff.d.ts.map +1 -0
  31. package/dist/components/diff.js +18 -0
  32. package/dist/components/diff.js.map +1 -0
  33. package/dist/components/divider.d.ts +9 -0
  34. package/dist/components/divider.d.ts.map +1 -0
  35. package/dist/components/divider.js +14 -0
  36. package/dist/components/divider.js.map +1 -0
  37. package/dist/components/editor.d.ts +87 -0
  38. package/dist/components/editor.d.ts.map +1 -0
  39. package/dist/components/editor.js +145 -0
  40. package/dist/components/editor.js.map +1 -0
  41. package/dist/components/image.d.ts +65 -0
  42. package/dist/components/image.d.ts.map +1 -0
  43. package/dist/components/image.js +315 -0
  44. package/dist/components/image.js.map +1 -0
  45. package/dist/components/loader.d.ts +25 -0
  46. package/dist/components/loader.d.ts.map +1 -0
  47. package/dist/components/loader.js +24 -0
  48. package/dist/components/loader.js.map +1 -0
  49. package/dist/components/markdown.d.ts +28 -0
  50. package/dist/components/markdown.d.ts.map +1 -0
  51. package/dist/components/markdown.js +28 -0
  52. package/dist/components/markdown.js.map +1 -0
  53. package/dist/components/panel.d.ts +12 -0
  54. package/dist/components/panel.d.ts.map +1 -0
  55. package/dist/components/panel.js +47 -0
  56. package/dist/components/panel.js.map +1 -0
  57. package/dist/components/select-list.d.ts +55 -0
  58. package/dist/components/select-list.d.ts.map +1 -0
  59. package/dist/components/select-list.js +116 -0
  60. package/dist/components/select-list.js.map +1 -0
  61. package/dist/components/spacer.d.ts +25 -0
  62. package/dist/components/spacer.d.ts.map +1 -0
  63. package/dist/components/spacer.js +25 -0
  64. package/dist/components/spacer.js.map +1 -0
  65. package/dist/components/toast.d.ts +19 -0
  66. package/dist/components/toast.d.ts.map +1 -0
  67. package/dist/components/toast.js +42 -0
  68. package/dist/components/toast.js.map +1 -0
  69. package/dist/context/terminal.d.ts +7 -0
  70. package/dist/context/terminal.d.ts.map +1 -0
  71. package/dist/context/terminal.js +6 -0
  72. package/dist/context/terminal.js.map +1 -0
  73. package/dist/context/theme.d.ts +117 -0
  74. package/dist/context/theme.d.ts.map +1 -0
  75. package/dist/context/theme.js +648 -0
  76. package/dist/context/theme.js.map +1 -0
  77. package/dist/hooks/use-keyboard.d.ts +7 -0
  78. package/dist/hooks/use-keyboard.d.ts.map +1 -0
  79. package/dist/hooks/use-keyboard.js +6 -0
  80. package/dist/hooks/use-keyboard.js.map +1 -0
  81. package/dist/index.d.ts +31 -0
  82. package/dist/index.d.ts.map +1 -0
  83. package/dist/index.js +45 -0
  84. package/dist/index.js.map +1 -0
  85. package/dist/opentui-augmentations.d.ts +9 -0
  86. package/dist/opentui-augmentations.d.ts.map +1 -0
  87. package/dist/opentui-augmentations.js +1 -0
  88. package/dist/opentui-augmentations.js.map +1 -0
  89. package/dist/parsers-config.d.ts +16 -0
  90. package/dist/parsers-config.d.ts.map +1 -0
  91. package/dist/parsers-config.js +119 -0
  92. package/dist/parsers-config.js.map +1 -0
  93. package/dist/themes/aura.json +69 -0
  94. package/dist/themes/ayu.json +80 -0
  95. package/dist/themes/catppuccin-macchiato.json +233 -0
  96. package/dist/themes/catppuccin.json +112 -0
  97. package/dist/themes/cobalt2.json +228 -0
  98. package/dist/themes/dracula.json +219 -0
  99. package/dist/themes/everforest.json +241 -0
  100. package/dist/themes/flexoki.json +237 -0
  101. package/dist/themes/github.json +233 -0
  102. package/dist/themes/gruvbox.json +95 -0
  103. package/dist/themes/kanagawa.json +77 -0
  104. package/dist/themes/lucent-orng.json +227 -0
  105. package/dist/themes/marvin.json +97 -0
  106. package/dist/themes/material.json +235 -0
  107. package/dist/themes/matrix.json +77 -0
  108. package/dist/themes/mercury.json +245 -0
  109. package/dist/themes/monokai.json +221 -0
  110. package/dist/themes/nightowl.json +221 -0
  111. package/dist/themes/nord.json +223 -0
  112. package/dist/themes/one-dark.json +84 -0
  113. package/dist/themes/opencode.json +245 -0
  114. package/dist/themes/orng.json +245 -0
  115. package/dist/themes/palenight.json +222 -0
  116. package/dist/themes/rosepine.json +234 -0
  117. package/dist/themes/solarized.json +223 -0
  118. package/dist/themes/synthwave84.json +226 -0
  119. package/dist/themes/tokyonight.json +243 -0
  120. package/dist/themes/vercel.json +245 -0
  121. package/dist/themes/vesper.json +218 -0
  122. package/dist/themes/zenburn.json +223 -0
  123. package/dist/utils/clipboard.d.ts +12 -0
  124. package/dist/utils/clipboard.d.ts.map +1 -0
  125. package/dist/utils/clipboard.js +52 -0
  126. package/dist/utils/clipboard.js.map +1 -0
  127. package/dist/utils/text-width.d.ts +26 -0
  128. package/dist/utils/text-width.d.ts.map +1 -0
  129. package/dist/utils/text-width.js +101 -0
  130. package/dist/utils/text-width.js.map +1 -0
  131. package/package.json +13 -4
  132. package/src/index.ts +0 -121
@@ -0,0 +1,226 @@
1
+ {
2
+ "$schema": "https://opencode.ai/theme.json",
3
+ "defs": {
4
+ "background": "#262335",
5
+ "backgroundAlt": "#1e1a29",
6
+ "backgroundPanel": "#2a2139",
7
+ "foreground": "#ffffff",
8
+ "foregroundMuted": "#848bbd",
9
+ "pink": "#ff7edb",
10
+ "pinkBright": "#ff92df",
11
+ "cyan": "#36f9f6",
12
+ "cyanBright": "#72f1f8",
13
+ "yellow": "#fede5d",
14
+ "yellowBright": "#fff95d",
15
+ "orange": "#ff8b39",
16
+ "orangeBright": "#ff9f43",
17
+ "purple": "#b084eb",
18
+ "purpleBright": "#c792ea",
19
+ "red": "#fe4450",
20
+ "redBright": "#ff5e5b",
21
+ "green": "#72f1b8",
22
+ "greenBright": "#97f1d8"
23
+ },
24
+ "theme": {
25
+ "primary": {
26
+ "dark": "cyan",
27
+ "light": "#00bcd4"
28
+ },
29
+ "secondary": {
30
+ "dark": "pink",
31
+ "light": "#e91e63"
32
+ },
33
+ "accent": {
34
+ "dark": "purple",
35
+ "light": "#9c27b0"
36
+ },
37
+ "error": {
38
+ "dark": "red",
39
+ "light": "#f44336"
40
+ },
41
+ "warning": {
42
+ "dark": "yellow",
43
+ "light": "#ff9800"
44
+ },
45
+ "success": {
46
+ "dark": "green",
47
+ "light": "#4caf50"
48
+ },
49
+ "info": {
50
+ "dark": "orange",
51
+ "light": "#ff5722"
52
+ },
53
+ "text": {
54
+ "dark": "foreground",
55
+ "light": "#262335"
56
+ },
57
+ "textMuted": {
58
+ "dark": "foregroundMuted",
59
+ "light": "#5c5c8a"
60
+ },
61
+ "background": {
62
+ "dark": "#262335",
63
+ "light": "#fafafa"
64
+ },
65
+ "backgroundPanel": {
66
+ "dark": "#1e1a29",
67
+ "light": "#f5f5f5"
68
+ },
69
+ "backgroundElement": {
70
+ "dark": "#2a2139",
71
+ "light": "#eeeeee"
72
+ },
73
+ "border": {
74
+ "dark": "#495495",
75
+ "light": "#e0e0e0"
76
+ },
77
+ "borderActive": {
78
+ "dark": "cyan",
79
+ "light": "#00bcd4"
80
+ },
81
+ "borderSubtle": {
82
+ "dark": "#241b2f",
83
+ "light": "#f0f0f0"
84
+ },
85
+ "diffAdded": {
86
+ "dark": "green",
87
+ "light": "#4caf50"
88
+ },
89
+ "diffRemoved": {
90
+ "dark": "red",
91
+ "light": "#f44336"
92
+ },
93
+ "diffContext": {
94
+ "dark": "foregroundMuted",
95
+ "light": "#5c5c8a"
96
+ },
97
+ "diffHunkHeader": {
98
+ "dark": "purple",
99
+ "light": "#9c27b0"
100
+ },
101
+ "diffHighlightAdded": {
102
+ "dark": "greenBright",
103
+ "light": "#4caf50"
104
+ },
105
+ "diffHighlightRemoved": {
106
+ "dark": "redBright",
107
+ "light": "#f44336"
108
+ },
109
+ "diffAddedBg": {
110
+ "dark": "#1a3a2a",
111
+ "light": "#e8f5e9"
112
+ },
113
+ "diffRemovedBg": {
114
+ "dark": "#3a1a2a",
115
+ "light": "#ffebee"
116
+ },
117
+ "diffContextBg": {
118
+ "dark": "#1e1a29",
119
+ "light": "#f5f5f5"
120
+ },
121
+ "diffLineNumber": {
122
+ "dark": "#495495",
123
+ "light": "#b0b0b0"
124
+ },
125
+ "diffAddedLineNumberBg": {
126
+ "dark": "#1a3a2a",
127
+ "light": "#e8f5e9"
128
+ },
129
+ "diffRemovedLineNumberBg": {
130
+ "dark": "#3a1a2a",
131
+ "light": "#ffebee"
132
+ },
133
+ "markdownText": {
134
+ "dark": "foreground",
135
+ "light": "#262335"
136
+ },
137
+ "markdownHeading": {
138
+ "dark": "pink",
139
+ "light": "#e91e63"
140
+ },
141
+ "markdownLink": {
142
+ "dark": "cyan",
143
+ "light": "#00bcd4"
144
+ },
145
+ "markdownLinkText": {
146
+ "dark": "purple",
147
+ "light": "#9c27b0"
148
+ },
149
+ "markdownCode": {
150
+ "dark": "green",
151
+ "light": "#4caf50"
152
+ },
153
+ "markdownBlockQuote": {
154
+ "dark": "foregroundMuted",
155
+ "light": "#5c5c8a"
156
+ },
157
+ "markdownEmph": {
158
+ "dark": "yellow",
159
+ "light": "#ff9800"
160
+ },
161
+ "markdownStrong": {
162
+ "dark": "orange",
163
+ "light": "#ff5722"
164
+ },
165
+ "markdownHorizontalRule": {
166
+ "dark": "#495495",
167
+ "light": "#e0e0e0"
168
+ },
169
+ "markdownListItem": {
170
+ "dark": "cyan",
171
+ "light": "#00bcd4"
172
+ },
173
+ "markdownListEnumeration": {
174
+ "dark": "purple",
175
+ "light": "#9c27b0"
176
+ },
177
+ "markdownImage": {
178
+ "dark": "cyan",
179
+ "light": "#00bcd4"
180
+ },
181
+ "markdownImageText": {
182
+ "dark": "purple",
183
+ "light": "#9c27b0"
184
+ },
185
+ "markdownCodeBlock": {
186
+ "dark": "foreground",
187
+ "light": "#262335"
188
+ },
189
+ "syntaxComment": {
190
+ "dark": "foregroundMuted",
191
+ "light": "#5c5c8a"
192
+ },
193
+ "syntaxKeyword": {
194
+ "dark": "pink",
195
+ "light": "#e91e63"
196
+ },
197
+ "syntaxFunction": {
198
+ "dark": "orange",
199
+ "light": "#ff5722"
200
+ },
201
+ "syntaxVariable": {
202
+ "dark": "foreground",
203
+ "light": "#262335"
204
+ },
205
+ "syntaxString": {
206
+ "dark": "yellow",
207
+ "light": "#ff9800"
208
+ },
209
+ "syntaxNumber": {
210
+ "dark": "purple",
211
+ "light": "#9c27b0"
212
+ },
213
+ "syntaxType": {
214
+ "dark": "cyan",
215
+ "light": "#00bcd4"
216
+ },
217
+ "syntaxOperator": {
218
+ "dark": "pink",
219
+ "light": "#e91e63"
220
+ },
221
+ "syntaxPunctuation": {
222
+ "dark": "foreground",
223
+ "light": "#262335"
224
+ }
225
+ }
226
+ }
@@ -0,0 +1,243 @@
1
+ {
2
+ "$schema": "https://opencode.ai/theme.json",
3
+ "defs": {
4
+ "darkStep1": "#1a1b26",
5
+ "darkStep2": "#1e2030",
6
+ "darkStep3": "#222436",
7
+ "darkStep4": "#292e42",
8
+ "darkStep5": "#3b4261",
9
+ "darkStep6": "#545c7e",
10
+ "darkStep7": "#737aa2",
11
+ "darkStep8": "#9099b2",
12
+ "darkStep9": "#82aaff",
13
+ "darkStep10": "#89b4fa",
14
+ "darkStep11": "#828bb8",
15
+ "darkStep12": "#c8d3f5",
16
+ "darkRed": "#ff757f",
17
+ "darkOrange": "#ff966c",
18
+ "darkYellow": "#ffc777",
19
+ "darkGreen": "#c3e88d",
20
+ "darkCyan": "#86e1fc",
21
+ "darkPurple": "#c099ff",
22
+ "lightStep1": "#e1e2e7",
23
+ "lightStep2": "#d5d6db",
24
+ "lightStep3": "#c8c9ce",
25
+ "lightStep4": "#b9bac1",
26
+ "lightStep5": "#a8aecb",
27
+ "lightStep6": "#9699a8",
28
+ "lightStep7": "#737a8c",
29
+ "lightStep8": "#5a607d",
30
+ "lightStep9": "#2e7de9",
31
+ "lightStep10": "#1a6ce7",
32
+ "lightStep11": "#8990a3",
33
+ "lightStep12": "#3760bf",
34
+ "lightRed": "#f52a65",
35
+ "lightOrange": "#b15c00",
36
+ "lightYellow": "#8c6c3e",
37
+ "lightGreen": "#587539",
38
+ "lightCyan": "#007197",
39
+ "lightPurple": "#9854f1"
40
+ },
41
+ "theme": {
42
+ "primary": {
43
+ "dark": "darkStep9",
44
+ "light": "lightStep9"
45
+ },
46
+ "secondary": {
47
+ "dark": "darkPurple",
48
+ "light": "lightPurple"
49
+ },
50
+ "accent": {
51
+ "dark": "darkOrange",
52
+ "light": "lightOrange"
53
+ },
54
+ "error": {
55
+ "dark": "darkRed",
56
+ "light": "lightRed"
57
+ },
58
+ "warning": {
59
+ "dark": "darkOrange",
60
+ "light": "lightOrange"
61
+ },
62
+ "success": {
63
+ "dark": "darkGreen",
64
+ "light": "lightGreen"
65
+ },
66
+ "info": {
67
+ "dark": "darkStep9",
68
+ "light": "lightStep9"
69
+ },
70
+ "text": {
71
+ "dark": "darkStep12",
72
+ "light": "lightStep12"
73
+ },
74
+ "textMuted": {
75
+ "dark": "darkStep11",
76
+ "light": "lightStep11"
77
+ },
78
+ "background": {
79
+ "dark": "darkStep1",
80
+ "light": "lightStep1"
81
+ },
82
+ "backgroundPanel": {
83
+ "dark": "darkStep2",
84
+ "light": "lightStep2"
85
+ },
86
+ "backgroundElement": {
87
+ "dark": "darkStep3",
88
+ "light": "lightStep3"
89
+ },
90
+ "border": {
91
+ "dark": "darkStep7",
92
+ "light": "lightStep7"
93
+ },
94
+ "borderActive": {
95
+ "dark": "darkStep8",
96
+ "light": "lightStep8"
97
+ },
98
+ "borderSubtle": {
99
+ "dark": "darkStep6",
100
+ "light": "lightStep6"
101
+ },
102
+ "diffAdded": {
103
+ "dark": "#4fd6be",
104
+ "light": "#1e725c"
105
+ },
106
+ "diffRemoved": {
107
+ "dark": "#c53b53",
108
+ "light": "#c53b53"
109
+ },
110
+ "diffContext": {
111
+ "dark": "#828bb8",
112
+ "light": "#7086b5"
113
+ },
114
+ "diffHunkHeader": {
115
+ "dark": "#828bb8",
116
+ "light": "#7086b5"
117
+ },
118
+ "diffHighlightAdded": {
119
+ "dark": "#b8db87",
120
+ "light": "#4db380"
121
+ },
122
+ "diffHighlightRemoved": {
123
+ "dark": "#e26a75",
124
+ "light": "#f52a65"
125
+ },
126
+ "diffAddedBg": {
127
+ "dark": "#20303b",
128
+ "light": "#d5e5d5"
129
+ },
130
+ "diffRemovedBg": {
131
+ "dark": "#37222c",
132
+ "light": "#f7d8db"
133
+ },
134
+ "diffContextBg": {
135
+ "dark": "darkStep2",
136
+ "light": "lightStep2"
137
+ },
138
+ "diffLineNumber": {
139
+ "dark": "darkStep3",
140
+ "light": "lightStep3"
141
+ },
142
+ "diffAddedLineNumberBg": {
143
+ "dark": "#1b2b34",
144
+ "light": "#c5d5c5"
145
+ },
146
+ "diffRemovedLineNumberBg": {
147
+ "dark": "#2d1f26",
148
+ "light": "#e7c8cb"
149
+ },
150
+ "markdownText": {
151
+ "dark": "darkStep12",
152
+ "light": "lightStep12"
153
+ },
154
+ "markdownHeading": {
155
+ "dark": "darkPurple",
156
+ "light": "lightPurple"
157
+ },
158
+ "markdownLink": {
159
+ "dark": "darkStep9",
160
+ "light": "lightStep9"
161
+ },
162
+ "markdownLinkText": {
163
+ "dark": "darkCyan",
164
+ "light": "lightCyan"
165
+ },
166
+ "markdownCode": {
167
+ "dark": "darkGreen",
168
+ "light": "lightGreen"
169
+ },
170
+ "markdownBlockQuote": {
171
+ "dark": "darkYellow",
172
+ "light": "lightYellow"
173
+ },
174
+ "markdownEmph": {
175
+ "dark": "darkYellow",
176
+ "light": "lightYellow"
177
+ },
178
+ "markdownStrong": {
179
+ "dark": "darkOrange",
180
+ "light": "lightOrange"
181
+ },
182
+ "markdownHorizontalRule": {
183
+ "dark": "darkStep11",
184
+ "light": "lightStep11"
185
+ },
186
+ "markdownListItem": {
187
+ "dark": "darkStep9",
188
+ "light": "lightStep9"
189
+ },
190
+ "markdownListEnumeration": {
191
+ "dark": "darkCyan",
192
+ "light": "lightCyan"
193
+ },
194
+ "markdownImage": {
195
+ "dark": "darkStep9",
196
+ "light": "lightStep9"
197
+ },
198
+ "markdownImageText": {
199
+ "dark": "darkCyan",
200
+ "light": "lightCyan"
201
+ },
202
+ "markdownCodeBlock": {
203
+ "dark": "darkStep12",
204
+ "light": "lightStep12"
205
+ },
206
+ "syntaxComment": {
207
+ "dark": "darkStep11",
208
+ "light": "lightStep11"
209
+ },
210
+ "syntaxKeyword": {
211
+ "dark": "darkPurple",
212
+ "light": "lightPurple"
213
+ },
214
+ "syntaxFunction": {
215
+ "dark": "darkStep9",
216
+ "light": "lightStep9"
217
+ },
218
+ "syntaxVariable": {
219
+ "dark": "darkRed",
220
+ "light": "lightRed"
221
+ },
222
+ "syntaxString": {
223
+ "dark": "darkGreen",
224
+ "light": "lightGreen"
225
+ },
226
+ "syntaxNumber": {
227
+ "dark": "darkOrange",
228
+ "light": "lightOrange"
229
+ },
230
+ "syntaxType": {
231
+ "dark": "darkYellow",
232
+ "light": "lightYellow"
233
+ },
234
+ "syntaxOperator": {
235
+ "dark": "darkCyan",
236
+ "light": "lightCyan"
237
+ },
238
+ "syntaxPunctuation": {
239
+ "dark": "darkStep12",
240
+ "light": "lightStep12"
241
+ }
242
+ }
243
+ }