@flytedan/flytebot-design-system 0.48.1 → 0.49.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1250 -993
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +85 -1
- package/dist/index.d.ts +85 -1
- package/dist/index.js +1244 -993
- package/dist/index.js.map +1 -1
- package/package.json +7 -1
- package/styles/components.css +69 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flytedan/flytebot-design-system",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.49.1",
|
|
4
4
|
"description": "flytedesk Design System — shared component library, tokens, and business-logic kits for flytedesk apps.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -56,6 +56,12 @@
|
|
|
56
56
|
"react-dom": "^18.3.1"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
+
"@codemirror/commands": "^6.11.1",
|
|
60
|
+
"@codemirror/lang-sql": "^6.10.0",
|
|
61
|
+
"@codemirror/language": "^6.12.4",
|
|
62
|
+
"@codemirror/state": "^6.7.6",
|
|
63
|
+
"@codemirror/view": "^6.43.13",
|
|
64
|
+
"@lezer/highlight": "^1.2.4",
|
|
59
65
|
"@phosphor-icons/web": "2.1.1"
|
|
60
66
|
},
|
|
61
67
|
"devDependencies": {
|
package/styles/components.css
CHANGED
|
@@ -4222,6 +4222,75 @@
|
|
|
4222
4222
|
color: var(--code-pun);
|
|
4223
4223
|
}
|
|
4224
4224
|
|
|
4225
|
+
/* ── MP-274: CodeEditor ──────────────────────────────────────────────────
|
|
4226
|
+
Shares .fd-input's chrome (border, radius, focus ring, disabled tint) with
|
|
4227
|
+
Input/Textarea, and .fd-code's border/background tokens, so it reads as a
|
|
4228
|
+
form field AND a code surface rather than inventing a third look. CodeMirror
|
|
4229
|
+
renders its own DOM into .fd-code-editor-host; every color it uses is a CSS
|
|
4230
|
+
variable set on that DOM by CodeEditor.tsx's EditorView.theme, and the
|
|
4231
|
+
.tok-* rules above (shared with CodeBlock) are the ones that actually paint
|
|
4232
|
+
its syntax highlighting, so both components' SQL always looks identical in
|
|
4233
|
+
light, dark and high-contrast. */
|
|
4234
|
+
.fd-code-editor {
|
|
4235
|
+
padding: 0;
|
|
4236
|
+
font-family: var(--font-mono);
|
|
4237
|
+
background: var(--chat-code-bg);
|
|
4238
|
+
overflow: hidden;
|
|
4239
|
+
}
|
|
4240
|
+
.fd-code-editor-host {
|
|
4241
|
+
height: 100%;
|
|
4242
|
+
}
|
|
4243
|
+
.fd-code-editor-host .cm-editor {
|
|
4244
|
+
height: 100%;
|
|
4245
|
+
}
|
|
4246
|
+
.fd-code-editor.fd-input-disabled .fd-code-editor-host {
|
|
4247
|
+
opacity: 0.6;
|
|
4248
|
+
}
|
|
4249
|
+
.fd-code-editor-diagnostics {
|
|
4250
|
+
list-style: none;
|
|
4251
|
+
margin: 6px 0 0;
|
|
4252
|
+
padding: 0;
|
|
4253
|
+
display: flex;
|
|
4254
|
+
flex-direction: column;
|
|
4255
|
+
gap: 4px;
|
|
4256
|
+
}
|
|
4257
|
+
.fd-code-editor-diag {
|
|
4258
|
+
display: flex;
|
|
4259
|
+
align-items: baseline;
|
|
4260
|
+
gap: 6px;
|
|
4261
|
+
font-size: var(--text-sm-size, 12.5px);
|
|
4262
|
+
color: var(--text-2);
|
|
4263
|
+
}
|
|
4264
|
+
.fd-code-editor-diag i {
|
|
4265
|
+
flex: none;
|
|
4266
|
+
}
|
|
4267
|
+
.fd-code-editor-diag.is-error {
|
|
4268
|
+
color: var(--danger-text);
|
|
4269
|
+
}
|
|
4270
|
+
.fd-code-editor-diag.is-error i {
|
|
4271
|
+
color: var(--danger-solid);
|
|
4272
|
+
}
|
|
4273
|
+
.fd-code-editor-diag.is-warning {
|
|
4274
|
+
color: var(--warn-text);
|
|
4275
|
+
}
|
|
4276
|
+
.fd-code-editor-diag.is-warning i {
|
|
4277
|
+
color: var(--warn-solid);
|
|
4278
|
+
}
|
|
4279
|
+
.fd-code-editor-diag.is-info {
|
|
4280
|
+
color: var(--info-text);
|
|
4281
|
+
}
|
|
4282
|
+
.fd-code-editor-diag.is-info i {
|
|
4283
|
+
color: var(--info-solid);
|
|
4284
|
+
}
|
|
4285
|
+
.fd-code-editor-diag-loc {
|
|
4286
|
+
font-family: var(--font-mono);
|
|
4287
|
+
font-weight: var(--w-semibold);
|
|
4288
|
+
flex: none;
|
|
4289
|
+
}
|
|
4290
|
+
.fd-code-editor-hint {
|
|
4291
|
+
color: var(--text-disabled);
|
|
4292
|
+
}
|
|
4293
|
+
|
|
4225
4294
|
.fd-diff-body {
|
|
4226
4295
|
font-family: var(--font-mono);
|
|
4227
4296
|
font-size: 12.5px;
|