basalt-ui 2.27.2 → 2.28.0
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/CHANGELOG.md +99 -0
- package/MIGRATING.md +168 -12
- package/agent/rules/basalt-batteries.md +1 -1
- package/agent/rules/basalt-mantine.md +1 -1
- package/agent/rules/basalt-tokens.md +2 -2
- package/agent/skills/basalt-design/SKILL.md +1 -1
- package/agent/skills/basalt-design/references/catalogue.md +40 -36
- package/agent/skills/basalt-design/references/recipes.md +47 -0
- package/configs/oxlint-basalt.json +2 -1
- package/configs/oxlint-plugin.js +110 -2
- package/configs/oxlint-plugin.test.ts +99 -4
- package/dist/agent/chat/thread-message.d.ts +1 -160
- package/dist/agent/chat/thread-message.d.ts.map +1 -1
- package/dist/agent/chat/thread-message.js +7 -162
- package/dist/agent/chat/virtualize.d.ts +5 -5
- package/dist/charts/ChartCard.d.ts +5 -2
- package/dist/charts/ChartCard.d.ts.map +1 -1
- package/dist/charts/ChartCard.js +46 -13
- package/dist/charts/Lines.d.ts.map +1 -1
- package/dist/charts/Lines.js +11 -4
- package/dist/charts/Sparkline.d.ts +9 -2
- package/dist/charts/Sparkline.d.ts.map +1 -1
- package/dist/charts/Sparkline.js +104 -41
- package/dist/charts/chart-box.module.css +50 -0
- package/dist/charts/chart-box.module.css.d.ts +5 -0
- package/dist/charts/chart-card.module.css +12 -4
- package/dist/charts/chart-card.module.css.d.ts +1 -0
- package/dist/charts/compile.d.ts.map +1 -1
- package/dist/charts/compile.js +20 -18
- package/dist/charts/labels.d.ts +13 -3
- package/dist/charts/labels.d.ts.map +1 -1
- package/dist/charts/labels.js +131 -20
- package/dist/charts/legend.d.ts.map +1 -1
- package/dist/charts/legend.js +1 -1
- package/dist/charts/ref-label.d.ts +31 -8
- package/dist/charts/ref-label.d.ts.map +1 -1
- package/dist/charts/ref-label.js +40 -9
- package/dist/charts/sparkline.module.css +6 -0
- package/dist/charts/state.d.ts +3 -3
- package/dist/charts/state.d.ts.map +1 -1
- package/dist/charts/state.js +20 -2
- package/dist/cli/shot/capture.d.ts +6 -1
- package/dist/cli/shot/capture.d.ts.map +1 -1
- package/dist/cli/shot/capture.js +18 -5
- package/dist/common/empty-copy.d.ts +16 -0
- package/dist/common/empty-copy.d.ts.map +1 -0
- package/dist/common/empty-copy.js +9 -0
- package/dist/common/virtual-rows.d.ts +196 -0
- package/dist/common/virtual-rows.d.ts.map +1 -0
- package/dist/common/virtual-rows.js +290 -0
- package/dist/controls/controls.module.css +33 -1
- package/dist/controls/controls.module.css.d.ts +2 -0
- package/dist/controls/enum-filter.d.ts.map +1 -1
- package/dist/controls/enum-filter.js +8 -2
- package/dist/controls/filter-pill.d.ts +27 -3
- package/dist/controls/filter-pill.d.ts.map +1 -1
- package/dist/controls/filter-pill.js +15 -4
- package/dist/controls/form-layout.d.ts +9 -3
- package/dist/controls/form-layout.d.ts.map +1 -1
- package/dist/controls/form-layout.js +74 -12
- package/dist/controls/form-layout.module.css +112 -7
- package/dist/controls/form-layout.module.css.d.ts +1 -0
- package/dist/controls/multi-select-filter.d.ts +2 -2
- package/dist/controls/multi-select-filter.d.ts.map +1 -1
- package/dist/controls/multi-select-filter.js +12 -6
- package/dist/controls/range-filter.d.ts +1 -1
- package/dist/controls/range-filter.d.ts.map +1 -1
- package/dist/controls/range-filter.js +8 -2
- package/dist/dashboard/bar-list.d.ts +1 -1
- package/dist/dashboard/bar-list.d.ts.map +1 -1
- package/dist/dashboard/bar-list.js +6 -2
- package/dist/dashboard/bar-list.module.css +0 -2
- package/dist/dashboard/board-nav.d.ts +22 -0
- package/dist/dashboard/board-nav.d.ts.map +1 -0
- package/dist/dashboard/board-nav.js +49 -0
- package/dist/dashboard/board.d.ts +52 -0
- package/dist/dashboard/board.d.ts.map +1 -0
- package/dist/dashboard/board.js +228 -0
- package/dist/dashboard/board.module.css +160 -0
- package/dist/dashboard/board.module.css.d.ts +26 -0
- package/dist/dashboard/empty-state.d.ts +3 -3
- package/dist/dashboard/empty-state.d.ts.map +1 -1
- package/dist/dashboard/empty-state.js +13 -6
- package/dist/dashboard/event-list-model.d.ts +51 -0
- package/dist/dashboard/event-list-model.d.ts.map +1 -0
- package/dist/dashboard/event-list-model.js +72 -0
- package/dist/dashboard/event-list-rows.d.ts +23 -0
- package/dist/dashboard/event-list-rows.d.ts.map +1 -0
- package/dist/dashboard/event-list-rows.js +93 -0
- package/dist/dashboard/event-list-scroll.d.ts +27 -0
- package/dist/dashboard/event-list-scroll.d.ts.map +1 -0
- package/dist/dashboard/event-list-scroll.js +103 -0
- package/dist/dashboard/event-list-skeleton.d.ts +10 -0
- package/dist/dashboard/event-list-skeleton.d.ts.map +1 -0
- package/dist/dashboard/event-list-skeleton.js +36 -0
- package/dist/dashboard/event-list.d.ts +65 -0
- package/dist/dashboard/event-list.d.ts.map +1 -0
- package/dist/dashboard/event-list.js +178 -0
- package/dist/dashboard/event-list.module.css +283 -0
- package/dist/dashboard/event-list.module.css.d.ts +33 -0
- package/dist/dashboard/index.d.ts +2 -0
- package/dist/dashboard/index.d.ts.map +1 -1
- package/dist/dashboard/index.js +4 -0
- package/dist/dashboard/meter-parts.d.ts.map +1 -1
- package/dist/dashboard/meter-parts.js +5 -3
- package/dist/dashboard/meter.module.css +2 -1
- package/dist/dashboard/query-state.js +1 -1
- package/dist/dashboard/settings-section.d.ts +4 -1
- package/dist/dashboard/settings-section.d.ts.map +1 -1
- package/dist/dashboard/settings-section.js +1 -1
- package/dist/dashboard/settings-section.module.css +19 -4
- package/dist/dashboard/stat-card-parts.d.ts +5 -1
- package/dist/dashboard/stat-card-parts.d.ts.map +1 -1
- package/dist/dashboard/stat-card-parts.js +8 -3
- package/dist/dashboard/stat-card.d.ts.map +1 -1
- package/dist/dashboard/stat-card.js +25 -6
- package/dist/dashboard/stat-card.module.css +31 -7
- package/dist/dashboard/stat-card.module.css.d.ts +3 -0
- package/dist/dashboard/stat-strip.module.css +4 -1
- package/dist/dashboard/widget-header.module.css +17 -1
- package/dist/guard/index.d.ts.map +1 -1
- package/dist/guard/index.js +2 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/shell/app-main.module.css +18 -0
- package/dist/styles.css +46 -0
- package/dist/surfaces.d.ts +2 -2
- package/dist/surfaces.d.ts.map +1 -1
- package/dist/surfaces.js +8 -2
- package/dist/table/cell-kinds.d.ts +44 -0
- package/dist/table/cell-kinds.d.ts.map +1 -0
- package/dist/table/cell-kinds.js +169 -0
- package/dist/table/cell-kinds.module.css +55 -0
- package/dist/table/cell-kinds.module.css.d.ts +15 -0
- package/dist/table/data-table-fold.d.ts +147 -0
- package/dist/table/data-table-fold.d.ts.map +1 -0
- package/dist/table/data-table-fold.js +288 -0
- package/dist/table/data-table-state.d.ts +10 -3
- package/dist/table/data-table-state.d.ts.map +1 -1
- package/dist/table/data-table-state.js +11 -6
- package/dist/table/data-table.d.ts +11 -26
- package/dist/table/data-table.d.ts.map +1 -1
- package/dist/table/data-table.js +354 -254
- package/dist/table/data-table.module.css +210 -3
- package/dist/table/data-table.module.css.d.ts +12 -0
- package/dist/table/table-features.d.ts +34 -4
- package/dist/table/table-features.d.ts.map +1 -1
- package/dist/table/table-features.js +10 -0
- package/dist/theme/card-inset.module.css +35 -0
- package/dist/theme/controls.module.css +32 -0
- package/dist/theme/ctl-theme.d.ts.map +1 -1
- package/dist/theme/ctl-theme.js +5 -0
- package/dist/theme/index.d.ts.map +1 -1
- package/dist/theme/index.js +14 -10
- package/dist/tokens/core.d.ts +1 -0
- package/dist/tokens/core.d.ts.map +1 -1
- package/dist/tokens/core.js +1 -0
- package/dist/tokens/derive.js +1 -1
- package/dist/tokens/palette.d.ts +2 -1
- package/dist/tokens/palette.d.ts.map +1 -1
- package/llms.txt +34 -5
- package/package.json +1 -1
- package/src/agent/chat/thread-message.tsx +10 -403
- package/src/agent/chat/virtualize.ts +5 -5
- package/src/charts/ChartCard.tsx +79 -17
- package/src/charts/Lines.tsx +13 -4
- package/src/charts/Sparkline.tsx +131 -45
- package/src/charts/chart-box.module.css +50 -0
- package/src/charts/chart-box.module.css.d.ts +5 -0
- package/src/charts/chart-card.module.css +12 -4
- package/src/charts/chart-card.module.css.d.ts +1 -0
- package/src/charts/compile.ts +22 -18
- package/src/charts/labels.ts +175 -24
- package/src/charts/legend.tsx +3 -2
- package/src/charts/ref-label.ts +86 -17
- package/src/charts/sparkline.module.css +6 -0
- package/src/charts/state.tsx +36 -7
- package/src/cli/shot/capture.ts +29 -6
- package/src/common/empty-copy.ts +17 -0
- package/src/common/virtual-rows.tsx +682 -0
- package/src/controls/controls.module.css +33 -1
- package/src/controls/controls.module.css.d.ts +2 -0
- package/src/controls/enum-filter.tsx +8 -2
- package/src/controls/filter-pill.tsx +80 -27
- package/src/controls/form-layout.module.css +112 -7
- package/src/controls/form-layout.module.css.d.ts +1 -0
- package/src/controls/form-layout.tsx +115 -22
- package/src/controls/multi-select-filter.tsx +22 -11
- package/src/controls/range-filter.tsx +9 -3
- package/src/dashboard/bar-list.module.css +0 -2
- package/src/dashboard/bar-list.tsx +8 -5
- package/src/dashboard/board-nav.ts +67 -0
- package/src/dashboard/board.module.css +160 -0
- package/src/dashboard/board.module.css.d.ts +26 -0
- package/src/dashboard/board.tsx +394 -0
- package/src/dashboard/empty-state.tsx +16 -9
- package/src/dashboard/event-list-model.ts +113 -0
- package/src/dashboard/event-list-rows.tsx +120 -0
- package/src/dashboard/event-list-scroll.ts +145 -0
- package/src/dashboard/event-list-skeleton.tsx +58 -0
- package/src/dashboard/event-list.module.css +283 -0
- package/src/dashboard/event-list.module.css.d.ts +33 -0
- package/src/dashboard/event-list.tsx +309 -0
- package/src/dashboard/index.ts +2 -0
- package/src/dashboard/meter-parts.tsx +9 -2
- package/src/dashboard/meter.module.css +2 -1
- package/src/dashboard/query-state.tsx +1 -1
- package/src/dashboard/settings-section.module.css +19 -4
- package/src/dashboard/settings-section.tsx +7 -2
- package/src/dashboard/stat-card-parts.tsx +20 -3
- package/src/dashboard/stat-card.module.css +31 -7
- package/src/dashboard/stat-card.module.css.d.ts +3 -0
- package/src/dashboard/stat-card.tsx +24 -5
- package/src/dashboard/stat-strip.module.css +4 -1
- package/src/dashboard/widget-header.module.css +17 -1
- package/src/guard/index.ts +2 -0
- package/src/index.ts +4 -0
- package/src/shell/app-main.module.css +18 -0
- package/src/styles.css +46 -0
- package/src/surfaces.ts +7 -1
- package/src/table/cell-kinds.module.css +55 -0
- package/src/table/cell-kinds.module.css.d.ts +15 -0
- package/src/table/cell-kinds.tsx +234 -0
- package/src/table/data-table-fold.tsx +514 -0
- package/src/table/data-table-state.ts +24 -13
- package/src/table/data-table.module.css +210 -3
- package/src/table/data-table.module.css.d.ts +12 -0
- package/src/table/data-table.tsx +406 -359
- package/src/table/table-features.ts +44 -4
- package/src/theme/__snapshots__/plain-theme.test.ts.snap +2 -66
- package/src/theme/card-inset.module.css +35 -0
- package/src/theme/controls.module.css +32 -0
- package/src/theme/ctl-theme.tsx +8 -0
- package/src/theme/index.ts +12 -8
- package/src/tokens/core.ts +1 -0
- package/src/tokens/derive.ts +1 -1
- package/src/tokens/palette.ts +4 -1
package/configs/oxlint-plugin.js
CHANGED
|
@@ -152,6 +152,7 @@ export const KNOWN_RULE_IDS = new Set([
|
|
|
152
152
|
'raw-breakpoint',
|
|
153
153
|
'no-dev-helper',
|
|
154
154
|
'route-view-transition',
|
|
155
|
+
'status-fill-as-text',
|
|
155
156
|
// These two honour `basalt-agent-allow`, never `theme-allow` — but they are real ids, so an
|
|
156
157
|
// annotation naming one must parse as a (useless) scoped annotation rather than as prose.
|
|
157
158
|
'agent-no-raw-usechat',
|
|
@@ -2709,6 +2710,9 @@ export const CTL_THEME_TAGS = new Set([
|
|
|
2709
2710
|
'MultiSelect',
|
|
2710
2711
|
'SegmentedControl',
|
|
2711
2712
|
'NativeSelect',
|
|
2713
|
+
'NumberInput',
|
|
2714
|
+
'PasswordInput',
|
|
2715
|
+
'Textarea',
|
|
2712
2716
|
'Radio',
|
|
2713
2717
|
'RadioGroup',
|
|
2714
2718
|
'Checkbox',
|
|
@@ -2720,8 +2724,8 @@ export const CTL_THEME_TAGS = new Set([
|
|
|
2720
2724
|
/**
|
|
2721
2725
|
* A size/width/breakpoint prop on a control the slot theme tiers. The slot's hoisted
|
|
2722
2726
|
* `MantineThemeProvider` already resolves the tier with no prop. A `SettingsRow`'s `control` is NOT
|
|
2723
|
-
* a tiered slot (see {@link SLOT_ATTRS}):
|
|
2724
|
-
* there is
|
|
2727
|
+
* a tiered slot for this rule (see {@link SLOT_ATTRS}): it mounts its own `CtlSlot` (Wave 46), but a
|
|
2728
|
+
* `size="md"` written there is the documented opt-out back to Mantine's `md`, so it stays legal.
|
|
2725
2729
|
*
|
|
2726
2730
|
* Scoped to `RAW_FILTER_TAGS` ∪ `BOUND_TAGS` (basalt's own controls, by name) ∪ a Mantine-imported
|
|
2727
2731
|
* {@link CTL_THEME_TAGS} member, and skipped under an overlay ({@link hostedInsideSlot}) — see
|
|
@@ -4208,6 +4212,109 @@ const routeViewTransition = {
|
|
|
4208
4212
|
},
|
|
4209
4213
|
}
|
|
4210
4214
|
|
|
4215
|
+
// ── Rule 36 — status-fill-as-text ───────────────────────────────────────────────────────────────
|
|
4216
|
+
|
|
4217
|
+
const STATUS_FILL_AS_TEXT_MESSAGE =
|
|
4218
|
+
'VX.status.excellent is a FILL (about 3:1 on a light card) and fails AA as text. Paint zone words and ' +
|
|
4219
|
+
'numerals with VX.status.good (solved to AA) and keep excellent on a swatch, band or heatmap ' +
|
|
4220
|
+
'cell (bg / fill / backgroundColor). (basalt/status-fill-as-text)'
|
|
4221
|
+
|
|
4222
|
+
const EXCELLENT_CSS_VAR = /var\(\s*--vx-status-excellent\b/
|
|
4223
|
+
|
|
4224
|
+
/** Strips parentheses-equivalent wrappers: TS `as` / `satisfies` / `!` and the JSX expression container. */
|
|
4225
|
+
function unwrapExpression(node) {
|
|
4226
|
+
let current = unwrapExpressionContainer(node)
|
|
4227
|
+
while (
|
|
4228
|
+
current &&
|
|
4229
|
+
(current.type === 'TSAsExpression' ||
|
|
4230
|
+
current.type === 'TSSatisfiesExpression' ||
|
|
4231
|
+
current.type === 'TSNonNullExpression' ||
|
|
4232
|
+
current.type === 'ParenthesizedExpression')
|
|
4233
|
+
) {
|
|
4234
|
+
current = current.expression
|
|
4235
|
+
}
|
|
4236
|
+
return current
|
|
4237
|
+
}
|
|
4238
|
+
|
|
4239
|
+
/** True when `node` is `VX.status.excellent` or the string `var(--vx-status-excellent)`. */
|
|
4240
|
+
function isExcellentToken(node) {
|
|
4241
|
+
if (node?.type === 'MemberExpression' && !node.computed) {
|
|
4242
|
+
const status = node.object
|
|
4243
|
+
return (
|
|
4244
|
+
node.property?.name === 'excellent' &&
|
|
4245
|
+
status?.type === 'MemberExpression' &&
|
|
4246
|
+
!status.computed &&
|
|
4247
|
+
status.property?.name === 'status' &&
|
|
4248
|
+
status.object?.type === 'Identifier' &&
|
|
4249
|
+
status.object.name === 'VX'
|
|
4250
|
+
)
|
|
4251
|
+
}
|
|
4252
|
+
if (isStringLiteral(node)) return EXCELLENT_CSS_VAR.test(node.value)
|
|
4253
|
+
if (node?.type === 'TemplateLiteral') {
|
|
4254
|
+
return node.quasis.some((quasi) => EXCELLENT_CSS_VAR.test(quasi.value.cooked ?? ''))
|
|
4255
|
+
}
|
|
4256
|
+
return false
|
|
4257
|
+
}
|
|
4258
|
+
|
|
4259
|
+
/** True when any value `node` can evaluate to (through ternaries and `??` / `||` / `&&`) is the token. */
|
|
4260
|
+
function mayBeExcellentToken(node) {
|
|
4261
|
+
const value = unwrapExpression(node)
|
|
4262
|
+
if (value?.type === 'ConditionalExpression') {
|
|
4263
|
+
return mayBeExcellentToken(value.consequent) || mayBeExcellentToken(value.alternate)
|
|
4264
|
+
}
|
|
4265
|
+
if (value?.type === 'LogicalExpression') {
|
|
4266
|
+
return mayBeExcellentToken(value.left) || mayBeExcellentToken(value.right)
|
|
4267
|
+
}
|
|
4268
|
+
return isExcellentToken(value)
|
|
4269
|
+
}
|
|
4270
|
+
|
|
4271
|
+
/** True when an object literal is, or sits inside, the value of a `style` / `styles` JSX prop. */
|
|
4272
|
+
function insideStyleProp(objectNode) {
|
|
4273
|
+
for (let up = objectNode.parent; up; up = up.parent) {
|
|
4274
|
+
if (up.type === 'JSXAttribute') {
|
|
4275
|
+
return (
|
|
4276
|
+
up.name?.type === 'JSXIdentifier' && (up.name.name === 'style' || up.name.name === 'styles')
|
|
4277
|
+
)
|
|
4278
|
+
}
|
|
4279
|
+
if (up.type === 'JSXElement' || up.type === 'Program') return false
|
|
4280
|
+
}
|
|
4281
|
+
return false
|
|
4282
|
+
}
|
|
4283
|
+
|
|
4284
|
+
// A static check: it sees the token written at the text position, not a map read later
|
|
4285
|
+
// (`c={ZONE_COLORS[grade]}`). `color=` is deliberately not judged — on a Mantine Badge/Button/
|
|
4286
|
+
// ThemeIcon or a chart mark it is a fill — so a `<Text color=…>` / `<Title color=…>` is a known
|
|
4287
|
+
// false negative. Only `c=` and a `color:` key under a `style`/`styles` prop are text: the key is
|
|
4288
|
+
// the CSS `color` property, so it paints text on whichever part it sits (`styles={{ section: … }}`
|
|
4289
|
+
// included).
|
|
4290
|
+
// Ships: error
|
|
4291
|
+
const statusFillAsText = {
|
|
4292
|
+
meta: {
|
|
4293
|
+
type: 'problem',
|
|
4294
|
+
docs: {
|
|
4295
|
+
description: 'Disallow the fill-only VX.status.excellent in a text-colour position.',
|
|
4296
|
+
},
|
|
4297
|
+
schema: [],
|
|
4298
|
+
},
|
|
4299
|
+
create(context) {
|
|
4300
|
+
if (isTestFile(context)) return {}
|
|
4301
|
+
const report = (node) => {
|
|
4302
|
+
if (hasThemeAllow(context, node, 'status-fill-as-text')) return
|
|
4303
|
+
context.report({ node, message: STATUS_FILL_AS_TEXT_MESSAGE })
|
|
4304
|
+
}
|
|
4305
|
+
return {
|
|
4306
|
+
JSXAttribute(node) {
|
|
4307
|
+
if (node.name?.type !== 'JSXIdentifier' || node.name.name !== 'c') return
|
|
4308
|
+
if (node.value && mayBeExcellentToken(node.value)) report(node)
|
|
4309
|
+
},
|
|
4310
|
+
Property(node) {
|
|
4311
|
+
if (propertyKeyName(node) !== 'color' || !mayBeExcellentToken(node.value)) return
|
|
4312
|
+
if (node.parent?.type === 'ObjectExpression' && insideStyleProp(node.parent)) report(node)
|
|
4313
|
+
},
|
|
4314
|
+
}
|
|
4315
|
+
},
|
|
4316
|
+
}
|
|
4317
|
+
|
|
4211
4318
|
// ── Grace ledger ────────────────────────────────────────────────────────────────────────────────
|
|
4212
4319
|
|
|
4213
4320
|
/**
|
|
@@ -4269,5 +4376,6 @@ export default {
|
|
|
4269
4376
|
'raw-breakpoint': rawBreakpoint,
|
|
4270
4377
|
'no-dev-helper': noDevHelper,
|
|
4271
4378
|
'route-view-transition': routeViewTransition,
|
|
4379
|
+
'status-fill-as-text': statusFillAsText,
|
|
4272
4380
|
},
|
|
4273
4381
|
}
|
|
@@ -71,6 +71,7 @@ beforeEach(() => {
|
|
|
71
71
|
'basalt/raw-breakpoint': 'error',
|
|
72
72
|
'basalt/no-dev-helper': 'error',
|
|
73
73
|
'basalt/route-view-transition': 'error',
|
|
74
|
+
'basalt/status-fill-as-text': 'error',
|
|
74
75
|
},
|
|
75
76
|
}),
|
|
76
77
|
)
|
|
@@ -1875,9 +1876,10 @@ describe('basalt/hand-rolled-filter', () => {
|
|
|
1875
1876
|
expect(rules).not.toContain('hand-rolled-filter')
|
|
1876
1877
|
})
|
|
1877
1878
|
|
|
1878
|
-
// The settled reading of law C1's THIRD home (docs/CONTROLS-SPEC.md §5/§6): a form row
|
|
1879
|
-
//
|
|
1880
|
-
// `
|
|
1879
|
+
// The settled reading of law C1's THIRD home (docs/CONTROLS-SPEC.md §5/§6): a form row is not a
|
|
1880
|
+
// chrome slot, so a raw input bound to a setting is right there (it mounts its own `CtlSlot` since
|
|
1881
|
+
// Wave 46, and a `size` on the control is the opt-out) — `control` / `SettingsRow` are absent from
|
|
1882
|
+
// the slot set for exactly that reason.
|
|
1881
1883
|
it("does NOT flag a raw Select in a SettingsRow's control — the form-row home", () => {
|
|
1882
1884
|
const { code, rules } = run(
|
|
1883
1885
|
`${BASALT_IMPORT}${MANTINE_IMPORT}export const C = () => (\n <SettingsSection title="S">\n <SettingsRow label="Channel" control={<Select data={[]} />} />\n </SettingsSection>\n)\n`,
|
|
@@ -2645,7 +2647,7 @@ describe('basalt/control-size-literal', () => {
|
|
|
2645
2647
|
expect(rules).toContain('control-size-literal')
|
|
2646
2648
|
})
|
|
2647
2649
|
|
|
2648
|
-
it(
|
|
2650
|
+
it('does NOT flag a size prop in a SettingsRow\'s control — it is a form row, and size="md" is the opt-out of its ctl tier', () => {
|
|
2649
2651
|
const { code, rules } = run(
|
|
2650
2652
|
`${MANTINE_IMPORT}export const C = () => (\n <SettingsRow label="L" control={<Button size="compact-sm">Go</Button>} />\n)\n`,
|
|
2651
2653
|
)
|
|
@@ -4281,6 +4283,99 @@ describe('basalt/route-view-transition', () => {
|
|
|
4281
4283
|
})
|
|
4282
4284
|
})
|
|
4283
4285
|
|
|
4286
|
+
// ── status-fill-as-text ──────────────────────────────────────────────────────
|
|
4287
|
+
|
|
4288
|
+
describe('basalt/status-fill-as-text', () => {
|
|
4289
|
+
const VXI = `import { VX } from 'basalt-ui/tokens'\n`
|
|
4290
|
+
it.each([
|
|
4291
|
+
[
|
|
4292
|
+
'c= on a Text',
|
|
4293
|
+
`${VXI}export const C = () => <Text c={VX.status.excellent}>Excellent</Text>\n`,
|
|
4294
|
+
],
|
|
4295
|
+
[
|
|
4296
|
+
'c= with the CSS var',
|
|
4297
|
+
`export const C = () => <Text c="var(--vx-status-excellent)">x</Text>\n`,
|
|
4298
|
+
],
|
|
4299
|
+
[
|
|
4300
|
+
'c= through a ternary',
|
|
4301
|
+
`${VXI}export const C = (p: { ok: boolean }) => <Text c={p.ok ? VX.status.excellent : VX.status.warn}>x</Text>\n`,
|
|
4302
|
+
],
|
|
4303
|
+
[
|
|
4304
|
+
'a style color key',
|
|
4305
|
+
`${VXI}export const C = () => <span style={{ color: VX.status.excellent }}>x</span>\n`,
|
|
4306
|
+
],
|
|
4307
|
+
[
|
|
4308
|
+
'a styles-prop color key',
|
|
4309
|
+
`${VXI}export const C = () => <Badge styles={{ label: { color: VX.status.excellent } }}>x</Badge>\n`,
|
|
4310
|
+
],
|
|
4311
|
+
[
|
|
4312
|
+
'a nested styles key on a non-text part (the CSS color property paints its text)',
|
|
4313
|
+
`${VXI}export const C = () => <Progress styles={{ section: { color: VX.status.excellent } }} />\n`,
|
|
4314
|
+
],
|
|
4315
|
+
[
|
|
4316
|
+
'a style color with the CSS var',
|
|
4317
|
+
`export const C = () => <span style={{ color: 'var(--vx-status-excellent)' }}>x</span>\n`,
|
|
4318
|
+
],
|
|
4319
|
+
])('flags %s', (_name, source) => {
|
|
4320
|
+
const { code, rules } = run(source, 'lib.tsx')
|
|
4321
|
+
expect(code).toBe(1)
|
|
4322
|
+
expect(rules).toContain('status-fill-as-text')
|
|
4323
|
+
})
|
|
4324
|
+
|
|
4325
|
+
it.each([
|
|
4326
|
+
['bg=', `${VXI}export const C = () => <Box bg={VX.status.excellent} />\n`],
|
|
4327
|
+
[
|
|
4328
|
+
'a swatch backgroundColor',
|
|
4329
|
+
`${VXI}export const C = () => <i style={{ backgroundColor: VX.status.excellent }} />\n`,
|
|
4330
|
+
],
|
|
4331
|
+
[
|
|
4332
|
+
'a style borderColor',
|
|
4333
|
+
`${VXI}export const C = () => <i style={{ borderColor: VX.status.excellent }} />\n`,
|
|
4334
|
+
],
|
|
4335
|
+
[
|
|
4336
|
+
'fill= and stroke=',
|
|
4337
|
+
`${VXI}export const C = () => <rect fill={VX.status.excellent} stroke={VX.status.excellent} />\n`,
|
|
4338
|
+
],
|
|
4339
|
+
[
|
|
4340
|
+
'alpha() on a fill',
|
|
4341
|
+
`${VXI}export const C = () => <Box bg={alpha(VX.status.excellent, 0.2)} />\n`,
|
|
4342
|
+
],
|
|
4343
|
+
[
|
|
4344
|
+
'c= with the solved text token',
|
|
4345
|
+
`${VXI}export const C = () => <Text c={VX.status.good}>x</Text>\n`,
|
|
4346
|
+
],
|
|
4347
|
+
[
|
|
4348
|
+
'a chart series color key',
|
|
4349
|
+
`${VXI}export const S = { zone: { color: VX.status.excellent } }\n`,
|
|
4350
|
+
],
|
|
4351
|
+
[
|
|
4352
|
+
'a Badge color prop (fill)',
|
|
4353
|
+
`${VXI}export const C = () => <Badge color={VX.status.excellent}>x</Badge>\n`,
|
|
4354
|
+
],
|
|
4355
|
+
[
|
|
4356
|
+
'a Progress/Badge color prop and its styles background (fills)',
|
|
4357
|
+
`${VXI}export const C = () => <Progress color={VX.status.excellent} styles={{ section: { backgroundColor: VX.status.excellent } }} />\n`,
|
|
4358
|
+
],
|
|
4359
|
+
// Out of static reach: argo's ZONE_COLORS map, read later — `c={ZONE_COLORS[grade]}`.
|
|
4360
|
+
[
|
|
4361
|
+
'a map value consumed through a lookup (statically out of reach)',
|
|
4362
|
+
`${VXI}const ZONE_COLORS = { excellent: VX.status.excellent } as const\nexport const C = () => <Text c={ZONE_COLORS.excellent}>x</Text>\n`,
|
|
4363
|
+
],
|
|
4364
|
+
])('does NOT flag %s', (_name, source) => {
|
|
4365
|
+
expect(run(source, 'lib.tsx').rules).not.toContain('status-fill-as-text')
|
|
4366
|
+
})
|
|
4367
|
+
|
|
4368
|
+
it('does not apply in test files', () => {
|
|
4369
|
+
const source = `${VXI}export const C = () => <Text c={VX.status.excellent}>x</Text>\n`
|
|
4370
|
+
expect(run(source, 'lib.test.tsx').rules).not.toContain('status-fill-as-text')
|
|
4371
|
+
})
|
|
4372
|
+
|
|
4373
|
+
it('honours a theme-allow annotation naming the rule', () => {
|
|
4374
|
+
const source = `${VXI}export const C = () => (\n // theme-allow status-fill-as-text: decorative large display numeral\n <Text c={VX.status.excellent}>x</Text>\n)\n`
|
|
4375
|
+
expect(run(source, 'lib.tsx').rules).not.toContain('status-fill-as-text')
|
|
4376
|
+
})
|
|
4377
|
+
})
|
|
4378
|
+
|
|
4284
4379
|
describe('rule level locks', () => {
|
|
4285
4380
|
const levels = (path: string) =>
|
|
4286
4381
|
(JSON.parse(readFileSync(path, 'utf8')) as { rules: Record<string, unknown> }).rules
|
|
@@ -5,7 +5,7 @@ import type { ForeignPart, PartRenderer, PartRenderers, TranscriptPart } from '.
|
|
|
5
5
|
import type { StreamStatus } from '../thread.js';
|
|
6
6
|
import type { BasaltProps } from '../../common/props.js';
|
|
7
7
|
import type { MessageAffordances } from './message-affordances.js';
|
|
8
|
-
import type {
|
|
8
|
+
import type { VirtualizeProps } from './virtualize.js';
|
|
9
9
|
/**
|
|
10
10
|
* Mantine overrides for `PartList`'s default headless renderers — the house style for rendering
|
|
11
11
|
* an `AgentPart` inside a chat surface.
|
|
@@ -25,165 +25,6 @@ export declare const threadPartRenderers: Partial<AgentPartRenderers>;
|
|
|
25
25
|
export declare const messageBlockRenderCounter: {
|
|
26
26
|
count: number;
|
|
27
27
|
};
|
|
28
|
-
/** Caps `applyInitialScroll`'s clobber-recovery retries (see `./virtualize`'s fourth composition
|
|
29
|
-
* rule for the full mechanism this guards). A small fixed budget, not a time/frame-based deadline:
|
|
30
|
-
* every observed case of virtual-core's `_willUpdate` clobbering this effect's jump resolves within
|
|
31
|
-
* one extra commit, so this exists purely as a backstop against a pathological DOM that never
|
|
32
|
-
* reports settled — not as the expected path. Once exhausted, the effect gives up and marks the
|
|
33
|
-
* jump permanently done wherever the last attempt landed, rather than fighting the DOM (or a user
|
|
34
|
-
* who has since scrolled away) forever. Exported (like `messageBlockRenderCounter`) purely so its
|
|
35
|
-
* test can assert the exact bound without duplicating the number; not part of the public surface. */
|
|
36
|
-
export declare const MAX_INITIAL_SCROLL_ATTEMPTS = 5;
|
|
37
|
-
type TranscriptRow = {
|
|
38
|
-
readonly key: string;
|
|
39
|
-
readonly node: JSX.Element;
|
|
40
|
-
};
|
|
41
|
-
type VirtualizedTranscriptProps = BasaltProps & {
|
|
42
|
-
readonly rows: readonly TranscriptRow[];
|
|
43
|
-
readonly height: number | string;
|
|
44
|
-
readonly overscan: number;
|
|
45
|
-
readonly estimateSize: number;
|
|
46
|
-
readonly initialScroll: NonNullable<VirtualizeOptions['initialScroll']>;
|
|
47
|
-
};
|
|
48
|
-
/**
|
|
49
|
-
* The degrade target: every row rendered unwindowed inside a fixed-height scroll container.
|
|
50
|
-
* This is what a `virtualize: true` transcript falls back to when `@tanstack/react-virtual` fails
|
|
51
|
-
* to resolve (peer absent) — same visual shape (a scrollable `height`-bound pane), just without
|
|
52
|
-
* windowing.
|
|
53
|
-
*
|
|
54
|
-
* NOT used as the `Suspense` fallback (see `VirtualizeSuspenseFallback` below) — mounting every
|
|
55
|
-
* real `MessageBlock` subtree for the one tick the lazy import takes to settle would make that
|
|
56
|
-
* settle a genuine unmount/remount of every rendered row, re-firing each row's effects once and
|
|
57
|
-
* risking hitting a message mid-stream during the resolve window.
|
|
58
|
-
*/
|
|
59
|
-
declare function NonVirtualizedRows({ rows, height, className, style, }: VirtualizedTranscriptProps): JSX.Element;
|
|
60
|
-
/** Test-only escape hatch (mirrors `messageBlockRenderCounter` above) — proves the peer-absent
|
|
61
|
-
* degrade target itself renders every row without windowing and without throwing, without having
|
|
62
|
-
* to fight `React.lazy`'s permanent once-per-module-instance resolution cache to simulate the
|
|
63
|
-
* peer's absence at the `import()` layer (see thread-message.test.tsx's virtualization describe
|
|
64
|
-
* block for why that approach was rejected). Not exported from `agent-chat/index.ts`. */
|
|
65
|
-
export declare const nonVirtualizedRowsFallback: typeof NonVirtualizedRows;
|
|
66
|
-
/**
|
|
67
|
-
* Minimal structural slice of `Virtualizer` (virtual-core 3.17.1) that
|
|
68
|
-
* {@link resolveGuardedMeasurement} needs — `indexFromElement`/`itemSizeCache`/`options` are all
|
|
69
|
-
* public instance members, but typing against the real (generic, peer-only) `Virtualizer` class
|
|
70
|
-
* would force this test-only-exported helper to import the peer's runtime types at module scope,
|
|
71
|
-
* the exact static-import-forces-the-peer problem the surrounding `lazy(() => import(...))` exists
|
|
72
|
-
* to avoid. A structural type sidesteps that without loosening to `any`. Generic over the item
|
|
73
|
-
* element type (rather than fixed at `Element`) so it stays exactly assignable FROM a real
|
|
74
|
-
* `Virtualizer<TScrollElement, TItemElement>` at the call site below — `indexFromElement` is
|
|
75
|
-
* declared with arrow-property (not method) syntax upstream, so it is checked contravariantly, and
|
|
76
|
-
* a fixed `Element` parameter there does not structurally match a real instance's narrower
|
|
77
|
-
* `TItemElement` parameter.
|
|
78
|
-
*/
|
|
79
|
-
type MeasurementCacheHost<TItemElement extends Element> = {
|
|
80
|
-
readonly indexFromElement: (node: TItemElement) => number;
|
|
81
|
-
readonly itemSizeCache: Map<unknown, number>;
|
|
82
|
-
readonly options: {
|
|
83
|
-
readonly getItemKey: (index: number) => unknown;
|
|
84
|
-
readonly estimateSize: (index: number) => number;
|
|
85
|
-
};
|
|
86
|
-
};
|
|
87
|
-
/**
|
|
88
|
-
* Resolves the size a `measureElement` implementation should report, given what the underlying
|
|
89
|
-
* (default or custom) measurement already produced: that value unchanged when it is a genuine
|
|
90
|
-
* measurement, or the row's own last-known size when it is `0` — never a real reading for a mounted
|
|
91
|
-
* row, so a `0` only ever means the ResizeObserver measured through a `display: none` (or otherwise
|
|
92
|
-
* unlaid-out) ancestor, e.g. a virtualized transcript sitting inside a collapsed `ThreadFeedRow`.
|
|
93
|
-
* Falling through to it unguarded is what corrupted `itemSizeCache`/`measurementsCache`: virtual-
|
|
94
|
-
* core's default `resizeItem` writes whatever `measureElement` returns with no floor, so every
|
|
95
|
-
* mounted row remeasures at 0px the instant an ancestor hides, `getTotalSize()` collapses within
|
|
96
|
-
* the same tick, and the collapse is never undone — a later real remeasurement only OVERWRITES
|
|
97
|
-
* entries the ResizeObserver happens to re-fire for, it does not restore ones that silently kept
|
|
98
|
-
* their poisoned 0 (see `virtualize.ts`'s composition-rule doc for the full mechanism and the
|
|
99
|
-
* measured numbers).
|
|
100
|
-
*
|
|
101
|
-
* Takes the already-computed `size` plus the {@link MeasurementCacheHost} slice, rather than
|
|
102
|
-
* wrapping the `measureElement` function itself, so this stays a plain, non-generic-over-a-
|
|
103
|
-
* generic-function call at its one call site below (`instance` there is `Virtualizer<TScrollElement,
|
|
104
|
-
* TItemElement>` for THAT call's concrete type arguments, not the peer's own generic
|
|
105
|
-
* `measureElement` export — wrapping the latter directly hits TS's higher-rank inference limits on
|
|
106
|
-
* a doubly-generic HOF). That shape is also what makes this unit-testable with a fake host object
|
|
107
|
-
* and no ResizeObserver/layout engine at all (happy-dom has neither). Not exported from
|
|
108
|
-
* `agent-chat/index.ts`: a test-only escape hatch, matching
|
|
109
|
-
* `messageBlockRenderCounter`/`nonVirtualizedRowsFallback` above.
|
|
110
|
-
*/
|
|
111
|
-
export declare function resolveGuardedMeasurement<TItemElement extends Element>(host: MeasurementCacheHost<TItemElement>, element: TItemElement, size: number): number;
|
|
112
|
-
/**
|
|
113
|
-
* Decides what `VirtualizedRowsInner`'s one-shot initial-scroll effect should do this render,
|
|
114
|
-
* given the inputs the effect closes over. Pure and peer/DOM-free — pulled out of the lazy-loaded
|
|
115
|
-
* closure for the same reason `resolveGuardedMeasurement` is: it stays unit-testable without a
|
|
116
|
-
* real `Virtualizer` instance or `@tanstack/react-virtual` itself.
|
|
117
|
-
*
|
|
118
|
-
* `'start'` and an empty transcript resolve to `'skip-done'` — there is nothing to scroll to, and
|
|
119
|
-
* DONE is permanent (see `virtualize.ts`'s fourth composition rule: the real scroll must fire at
|
|
120
|
-
* most once, ever, so a later append never yanks a user who has scrolled up). A non-positive
|
|
121
|
-
* `containerHeight` — the transcript's own scroll node measuring `0`, e.g. mounted behind a
|
|
122
|
-
* `display: none` ancestor per `virtualize.ts`'s third composition rule — resolves to
|
|
123
|
-
* `'skip-retry'`: NOT done, so the caller's effect (which re-runs after EVERY commit until the jump
|
|
124
|
-
* lands — see {@link applyInitialScroll}) gets another chance the next time this subtree renders,
|
|
125
|
-
* instead of permanently stranding the transcript at the top the moment it becomes visible. Only a
|
|
126
|
-
* genuinely measured, non-empty, `'end'`-targeted mount resolves to `'scroll'`.
|
|
127
|
-
*/
|
|
128
|
-
export declare function resolveInitialScrollAction(initialScroll: NonNullable<VirtualizeOptions['initialScroll']>, rowCount: number, containerHeight: number): 'scroll' | 'skip-done' | 'skip-retry';
|
|
129
|
-
/** The mutable half of the one-shot initial-scroll contract. `hasApplied` is whether it has
|
|
130
|
-
* PERMANENTLY finished — either there was nothing to do (`'start'`/empty transcript), or
|
|
131
|
-
* `scrollToEnd` fired and was subsequently CONFIRMED (via a real DOM read — see
|
|
132
|
-
* {@link applyInitialScroll}'s doc for why virtual-core's own tracked offset can't be trusted for
|
|
133
|
-
* this) to have survived whatever else committed since. `attempts` counts how many times
|
|
134
|
-
* `scrollToEnd` has been (re-)fired this mount; 0 means never attempted, and also gates whether a
|
|
135
|
-
* call re-derives {@link resolveInitialScrollAction} at all. One instance lives for the lifetime of
|
|
136
|
-
* a `VirtualizedRowsInner` mount, held in a `useRef` so it survives re-renders without itself
|
|
137
|
-
* triggering one. */
|
|
138
|
-
export type InitialScrollState = {
|
|
139
|
-
hasApplied: boolean;
|
|
140
|
-
attempts: number;
|
|
141
|
-
};
|
|
142
|
-
/**
|
|
143
|
-
* The stateful half of "fires once, on first mount, and never again" (`virtualize.ts`'s fourth
|
|
144
|
-
* composition rule): wraps {@link resolveInitialScrollAction}'s per-call decision with the
|
|
145
|
-
* ACROSS-CALLS memory that decision alone can't carry. Exported (like `resolveGuardedMeasurement`)
|
|
146
|
-
* so `VirtualizedRowsInner`'s effect below calls this SAME function rather than a hand-mirrored
|
|
147
|
-
* copy for tests — a fake `scrollToEnd` is the only DOM/peer-free way to prove the guard, since a
|
|
148
|
-
* real `Virtualizer`'s own `followOnAppend` also calls the real DOM `scrollTo` on a later append,
|
|
149
|
-
* making that specific call indistinguishable from this one at the DOM boundary (see this
|
|
150
|
-
* function's test suite for the measurement that ruled that boundary out).
|
|
151
|
-
*
|
|
152
|
-
* Firing `scrollToEnd()` once is NOT the same as landing there: virtual-core 3.17.1's own
|
|
153
|
-
* `_willUpdate` (verified against the installed dist) writes to the SAME scroll container from
|
|
154
|
-
* `this.scrollOffset`, which updates only from the ASYNCHRONOUS native `scroll` event — never from
|
|
155
|
-
* the synchronous call that requested a scroll. A commit that runs `_willUpdate` before this
|
|
156
|
-
* effect gets a turn (element-attach) or that re-derives an anchor while `scrollOffset` still holds
|
|
157
|
-
* the pre-jump value writes that STALE offset straight back to `scrollTop`, undoing the jump within
|
|
158
|
-
* about one extra commit of it landing (see `./virtualize`'s fourth composition rule for the full
|
|
159
|
-
* trace this was diagnosed from). So `resolveInitialScrollAction`'s `'scroll'` outcome does not, by
|
|
160
|
-
* itself, set `hasApplied`: `isAtEnd` — a real `scrollTop`/`scrollHeight`/`clientHeight` read, the
|
|
161
|
-
* one piece of ground truth that is NEVER stale, unlike virtual-core's own tracked offset — is
|
|
162
|
-
* consulted on the NEXT call (i.e. the next commit, exactly the cadence this dependency-free effect
|
|
163
|
-
* already runs on) to confirm the jump survived. If it didn't, `scrollToEnd` fires again; if it did,
|
|
164
|
-
* `hasApplied` is set and the effect is inert for the rest of the mount. `MAX_INITIAL_SCROLL_ATTEMPTS`
|
|
165
|
-
* bounds this so a DOM that pathologically never reports settled — or a user who scrolls away mid-
|
|
166
|
-
* measurement — can never be fought forever; once exhausted, `hasApplied` is set regardless, wherever
|
|
167
|
-
* the last attempt left the container.
|
|
168
|
-
*
|
|
169
|
-
* `state.hasApplied` is the ONLY thing that can permanently stop this from calling `scrollToEnd`
|
|
170
|
-
* again: `'start'` and an empty transcript set it immediately (nothing to verify), and `'skip-retry'`
|
|
171
|
-
* deliberately leaves it `false` so a transcript that mounted behind a hidden ancestor gets another
|
|
172
|
-
* attempt on the caller's next commit, rather than being silently abandoned the moment it becomes
|
|
173
|
-
* visible. That retry — and the clobber-recovery above — is why the caller's effect carries NO
|
|
174
|
-
* dependency array: the commit that matters (a collapsed `ThreadFeedRow` flipping its body back to
|
|
175
|
-
* `display: block`, or virtual-core's own follow-up commit after this effect's own jump) changes
|
|
176
|
-
* neither the row count nor the virtualizer identity, so a dependency-keyed effect would never
|
|
177
|
-
* re-run for it.
|
|
178
|
-
*
|
|
179
|
-
* `getContainerHeight` is a THUNK, not a number, for the same reason: reading `offsetHeight` forces
|
|
180
|
-
* a synchronous layout, and it is read at most ONCE per mount — only on the very first call
|
|
181
|
-
* (`attempts === 0`) — never again while verifying or retrying, so a landed transcript still pays
|
|
182
|
-
* nothing for the effect it keeps re-running (a streaming transcript commits on every chunk).
|
|
183
|
-
* `isAtEnd` is cheaper (a plain property read, no forced reflow beyond what the browser already
|
|
184
|
-
* tracks) and is exactly what the verification/retry loop above consults instead.
|
|
185
|
-
*/
|
|
186
|
-
export declare function applyInitialScroll(state: InitialScrollState, initialScroll: NonNullable<VirtualizeOptions['initialScroll']>, rowCount: number, getContainerHeight: () => number, scrollToEnd: () => void, isAtEnd: () => boolean): void;
|
|
187
28
|
type ThreadTranscriptBase = BasaltProps & {
|
|
188
29
|
/** Settled messages for the thread, oldest first. */
|
|
189
30
|
readonly messages: readonly ChatMessage<TranscriptPart>[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"thread-message.d.ts","sourceRoot":"","sources":["../../../src/agent/chat/thread-message.tsx"],"names":[],"mappings":"AAiCA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAShC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAA;AACtD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAC7C,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAE1F,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;
|
|
1
|
+
{"version":3,"file":"thread-message.d.ts","sourceRoot":"","sources":["../../../src/agent/chat/thread-message.tsx"],"names":[],"mappings":"AAiCA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAShC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAA;AACtD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAC7C,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAE1F,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAM7C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAOrD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAA;AAG/D,OAAO,KAAK,EAAqB,eAAe,EAAE,MAAM,cAAc,CAAA;AAkGtE;;;;;;;;GAQG;AACH,eAAO,MAAM,mBAAmB,EAAE,OAAO,CAAC,kBAAkB,CAM3D,CAAA;AAiPD;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB;;CAAe,CAAA;AAsKrD,KAAK,oBAAoB,GAAG,WAAW,GAAG;IACxC,qDAAqD;IACrD,QAAQ,CAAC,QAAQ,EAAE,SAAS,WAAW,CAAC,cAAc,CAAC,EAAE,CAAA;IACzD,4FAA4F;IAC5F,QAAQ,CAAC,SAAS,CAAC,EAAE,SAAS,cAAc,EAAE,GAAG,SAAS,CAAA;IAC1D,kFAAkF;IAClF,QAAQ,CAAC,UAAU,CAAC,EAAE,YAAY,GAAG,SAAS,CAAA;IAC9C,kFAAkF;IAClF,QAAQ,CAAC,SAAS,CAAC,EAAE,aAAa,GAAG,SAAS,CAAA;IAC9C;iGAC6F;IAC7F,QAAQ,CAAC,gBAAgB,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,GAAG,SAAS,CAAA;IACjE;;0CAEsC;IACtC,QAAQ,CAAC,WAAW,CAAC,EAAE,kBAAkB,GAAG,SAAS,CAAA;IACrD;;uBAEmB;IACnB,QAAQ,CAAC,gBAAgB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CAChD,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG,oBAAoB,GAAG,eAAe,CAAA;AAgD1E;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,GAAG,GAAG,CAAC,OAAO,CA8I1E"}
|