@adia-ai/web-components 0.6.33 → 0.6.35
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 +64 -0
- package/color/index.js +1 -1
- package/components/accordion/accordion-item.yaml +2 -2
- package/components/accordion/accordion.css +2 -2
- package/components/accordion/accordion.js +1 -1
- package/components/action-list/action-item.yaml +2 -2
- package/components/action-list/action-list.css +2 -2
- package/components/action-list/action-list.js +1 -1
- package/components/agent-artifact/{class.js → agent-artifact.class.js} +1 -1
- package/components/agent-artifact/agent-artifact.css +31 -31
- package/components/agent-artifact/agent-artifact.js +1 -1
- package/components/agent-feedback-bar/agent-feedback-bar.css +10 -10
- package/components/agent-feedback-bar/agent-feedback-bar.js +1 -1
- package/components/agent-questions/agent-questions.css +57 -57
- package/components/agent-questions/agent-questions.js +1 -1
- package/components/agent-reasoning/agent-reasoning.css +62 -62
- package/components/agent-reasoning/agent-reasoning.js +1 -1
- package/components/agent-suggestions/agent-suggestions.css +4 -4
- package/components/agent-suggestions/agent-suggestions.js +1 -1
- package/components/agent-trace/agent-trace.css +53 -53
- package/components/alert/alert.a2ui.json +64 -1
- package/components/alert/{class.js → alert.class.js} +189 -2
- package/components/alert/alert.css +119 -41
- package/components/alert/alert.d.ts +14 -0
- package/components/alert/alert.js +1 -1
- package/components/alert/alert.test.js +184 -0
- package/components/alert/alert.yaml +114 -1
- package/components/avatar/avatar-group.yaml +2 -2
- package/components/avatar/avatar.css +27 -27
- package/components/avatar/avatar.js +1 -1
- package/components/badge/badge.css +27 -27
- package/components/badge/badge.js +1 -1
- package/components/block/block.css +16 -16
- package/components/block/block.js +1 -1
- package/components/breadcrumb/breadcrumb.css +23 -23
- package/components/breadcrumb/breadcrumb.js +1 -1
- package/components/button/button.css +101 -91
- package/components/button/button.js +1 -1
- package/components/calendar-grid/calendar-grid.a2ui.json +146 -0
- package/components/calendar-grid/calendar-grid.class.js +326 -0
- package/components/calendar-grid/calendar-grid.css +246 -0
- package/components/calendar-grid/calendar-grid.d.ts +41 -0
- package/components/calendar-grid/calendar-grid.js +17 -0
- package/components/calendar-grid/calendar-grid.yaml +136 -0
- package/components/calendar-picker/calendar-picker.css +139 -139
- package/components/calendar-picker/calendar-picker.js +1 -1
- package/components/canvas/canvas.css +12 -12
- package/components/card/card.css +83 -83
- package/components/card/card.js +1 -1
- package/components/chart/chart.css +224 -224
- package/components/chart/chart.js +1 -1
- package/components/chart-legend/chart-legend.css +26 -26
- package/components/chart-legend/chart-legend.js +1 -1
- package/components/chat-thread/chat-input.a2ui.json +1 -1
- package/components/chat-thread/chat-input.js +6 -1
- package/components/chat-thread/chat-input.yaml +4 -1
- package/components/chat-thread/chat-thread.js +1 -1
- package/components/check/check.css +40 -40
- package/components/check/check.js +1 -1
- package/components/code/code.css +125 -125
- package/components/code/code.js +1 -1
- package/components/col/col.css +15 -15
- package/components/col/col.js +1 -1
- package/components/color-input/color-input.js +1 -1
- package/components/color-picker/color-picker.css +55 -55
- package/components/color-picker/color-picker.js +1 -1
- package/components/combobox/combobox.a2ui.json +363 -0
- package/components/combobox/combobox.class.js +861 -0
- package/components/combobox/combobox.css +244 -0
- package/components/combobox/combobox.d.ts +113 -0
- package/components/combobox/combobox.examples.md +59 -0
- package/components/combobox/combobox.js +17 -0
- package/components/combobox/combobox.test.js +181 -0
- package/components/combobox/combobox.yaml +369 -0
- package/components/command/command.css +90 -90
- package/components/command/command.js +1 -1
- package/components/date-range-picker/date-range-picker.a2ui.json +300 -0
- package/components/date-range-picker/date-range-picker.class.js +791 -0
- package/components/date-range-picker/date-range-picker.css +224 -0
- package/components/date-range-picker/date-range-picker.d.ts +82 -0
- package/components/date-range-picker/date-range-picker.examples.md +37 -0
- package/components/date-range-picker/date-range-picker.js +17 -0
- package/components/date-range-picker/date-range-picker.test.js +387 -0
- package/components/date-range-picker/date-range-picker.yaml +285 -0
- package/components/datetime-picker/datetime-picker.a2ui.json +334 -0
- package/components/datetime-picker/datetime-picker.class.js +706 -0
- package/components/datetime-picker/datetime-picker.css +150 -0
- package/components/datetime-picker/datetime-picker.d.ts +86 -0
- package/components/datetime-picker/datetime-picker.examples.md +46 -0
- package/components/datetime-picker/datetime-picker.js +17 -0
- package/components/datetime-picker/datetime-picker.test.js +454 -0
- package/components/datetime-picker/datetime-picker.yaml +332 -0
- package/components/demo-toggle/demo-toggle.css +27 -27
- package/components/demo-toggle/demo-toggle.js +1 -1
- package/components/description-list/description-list.css +18 -18
- package/components/description-list/description-list.js +1 -1
- package/components/divider/divider.css +24 -24
- package/components/divider/divider.js +1 -1
- package/components/drawer/drawer.js +1 -1
- package/components/embed/embed.css +6 -6
- package/components/embed/embed.js +1 -1
- package/components/empty-state/empty-state.css +27 -27
- package/components/empty-state/empty-state.js +1 -1
- package/components/feed/feed.css +12 -12
- package/components/feed/feed.js +1 -1
- package/components/field/field.css +28 -28
- package/components/field/field.js +1 -1
- package/components/field/field.test.js +1 -1
- package/components/fields/fields.css +5 -5
- package/components/fields/fields.js +1 -1
- package/components/grid/grid.css +5 -5
- package/components/grid/grid.js +1 -1
- package/components/heatmap/heatmap.css +63 -63
- package/components/heatmap/heatmap.js +1 -1
- package/components/icon/icon.css +12 -12
- package/components/icon/icon.js +1 -1
- package/components/image/image.css +14 -14
- package/components/image/image.js +1 -1
- package/components/index.js +11 -0
- package/components/inline-message/inline-message.a2ui.json +143 -0
- package/components/inline-message/inline-message.class.js +169 -0
- package/components/inline-message/inline-message.css +75 -0
- package/components/inline-message/inline-message.d.ts +31 -0
- package/components/inline-message/inline-message.examples.md +19 -0
- package/components/inline-message/inline-message.js +17 -0
- package/components/inline-message/inline-message.test.js +203 -0
- package/components/inline-message/inline-message.yaml +205 -0
- package/components/input/input.css +67 -67
- package/components/input/input.js +1 -1
- package/components/input/input.yaml +5 -4
- package/components/inspector/inspector.css +6 -6
- package/components/inspector/inspector.js +1 -1
- package/components/integration-card/integration-card.a2ui.json +268 -0
- package/components/integration-card/integration-card.class.js +410 -0
- package/components/integration-card/integration-card.css +169 -0
- package/components/integration-card/integration-card.d.ts +63 -0
- package/components/integration-card/integration-card.examples.md +41 -0
- package/components/integration-card/integration-card.js +17 -0
- package/components/integration-card/integration-card.test.js +306 -0
- package/components/integration-card/integration-card.yaml +280 -0
- package/components/kbd/kbd.css +32 -32
- package/components/kbd/kbd.js +1 -1
- package/components/link/link.css +12 -12
- package/components/link/link.js +1 -1
- package/components/list/list-item.yaml +2 -2
- package/components/list/list.css +8 -8
- package/components/list/list.js +1 -1
- package/components/list-window/list-window.a2ui.json +277 -0
- package/components/list-window/list-window.class.js +688 -0
- package/components/list-window/list-window.css +124 -0
- package/components/list-window/list-window.d.ts +84 -0
- package/components/list-window/list-window.examples.md +73 -0
- package/components/list-window/list-window.js +17 -0
- package/components/list-window/list-window.test.js +303 -0
- package/components/list-window/list-window.yaml +270 -0
- package/components/loading-overlay/loading-overlay.a2ui.json +176 -0
- package/components/loading-overlay/loading-overlay.class.js +203 -0
- package/components/loading-overlay/loading-overlay.css +81 -0
- package/components/loading-overlay/loading-overlay.d.ts +24 -0
- package/components/loading-overlay/loading-overlay.examples.md +50 -0
- package/components/loading-overlay/loading-overlay.js +17 -0
- package/components/loading-overlay/loading-overlay.test.js +257 -0
- package/components/loading-overlay/loading-overlay.yaml +260 -0
- package/components/menu/menu-divider.yaml +1 -1
- package/components/menu/menu-item.yaml +1 -1
- package/components/menu/menu.a2ui.json +3 -0
- package/components/menu/menu.css +8 -8
- package/components/menu/menu.js +1 -1
- package/components/menu/menu.yaml +7 -0
- package/components/modal/{class.js → modal.class.js} +12 -1
- package/components/modal/modal.css +54 -44
- package/components/modal/modal.js +1 -1
- package/components/nav/nav.css +40 -40
- package/components/nav/nav.js +1 -1
- package/components/nav-group/nav-group.css +52 -52
- package/components/nav-group/nav-group.js +1 -1
- package/components/nav-item/nav-item.css +44 -44
- package/components/nav-item/nav-item.js +1 -1
- package/components/noodles/noodles.css +31 -31
- package/components/noodles/noodles.js +1 -1
- package/components/option-card/option-card.css +69 -69
- package/components/option-card/option-card.js +1 -1
- package/components/otp-input/otp-input.css +30 -30
- package/components/otp-input/otp-input.js +1 -1
- package/components/page/page.css +18 -18
- package/components/page/page.js +1 -1
- package/components/pagination/pagination.css +61 -61
- package/components/pagination/pagination.js +1 -1
- package/components/pane/pane.css +57 -57
- package/components/pane/pane.js +1 -1
- package/components/pipeline-status/pipeline-status.css +65 -65
- package/components/pipeline-status/pipeline-status.js +1 -1
- package/components/popover/popover.a2ui.json +8 -1
- package/components/popover/popover.css +17 -17
- package/components/popover/popover.js +1 -1
- package/components/popover/popover.yaml +14 -1
- package/components/progress/progress.css +23 -23
- package/components/progress/progress.js +1 -1
- package/components/progress-row/progress-row.css +17 -17
- package/components/progress-row/progress-row.js +1 -1
- package/components/radio/radio.css +39 -39
- package/components/radio/radio.js +1 -1
- package/components/range/range.css +55 -55
- package/components/range/range.js +1 -1
- package/components/rating/rating.css +28 -28
- package/components/rating/rating.js +1 -1
- package/components/richtext/richtext.css +133 -133
- package/components/richtext/richtext.js +1 -1
- package/components/row/row.css +19 -19
- package/components/row/row.js +1 -1
- package/components/search/search.css +5 -5
- package/components/search/search.js +1 -1
- package/components/segment/segment.css +24 -24
- package/components/segment/segment.js +1 -1
- package/components/segmented/segmented.css +25 -25
- package/components/segmented/segmented.js +1 -1
- package/components/select/select.a2ui.json +58 -4
- package/components/select/{class.js → select.class.js} +415 -6
- package/components/select/select.css +242 -84
- package/components/select/select.d.ts +31 -1
- package/components/select/select.js +1 -1
- package/components/select/select.test.js +202 -0
- package/components/select/select.yaml +126 -5
- package/components/skeleton/skeleton.css +14 -14
- package/components/skeleton/skeleton.js +1 -1
- package/components/slider/slider.css +46 -46
- package/components/slider/slider.js +1 -1
- package/components/spinner/spinner.a2ui.json +198 -0
- package/components/spinner/spinner.class.js +99 -0
- package/components/spinner/spinner.css +221 -0
- package/components/spinner/spinner.d.ts +26 -0
- package/components/spinner/spinner.examples.md +26 -0
- package/components/spinner/spinner.js +17 -0
- package/components/spinner/spinner.test.js +272 -0
- package/components/spinner/spinner.yaml +238 -0
- package/components/stack/stack.css +11 -11
- package/components/stack/stack.js +1 -1
- package/components/stat/stat.css +25 -25
- package/components/step-progress/step-progress.css +20 -20
- package/components/step-progress/step-progress.js +1 -1
- package/components/stepper/stepper-item.yaml +1 -1
- package/components/stepper/stepper.css +29 -29
- package/components/stepper/stepper.js +1 -1
- package/components/stream/stream.css +12 -12
- package/components/stream/stream.js +1 -1
- package/components/swatch/swatch.css +68 -68
- package/components/swatch/swatch.js +1 -1
- package/components/swiper/swiper.css +57 -57
- package/components/swiper/swiper.js +1 -1
- package/components/switch/switch.css +52 -52
- package/components/switch/switch.js +1 -1
- package/components/table/table.css +163 -163
- package/components/table/table.js +1 -1
- package/components/table-toolbar/{class.js → table-toolbar.class.js} +1 -1
- package/components/table-toolbar/table-toolbar.css +32 -32
- package/components/table-toolbar/table-toolbar.js +1 -1
- package/components/tabs/tab.yaml +2 -2
- package/components/tabs/tabs.css +51 -51
- package/components/tabs/tabs.js +1 -1
- package/components/tag/tag.css +48 -48
- package/components/tag/tag.js +1 -1
- package/components/tags-input/tags-input.a2ui.json +337 -0
- package/components/tags-input/tags-input.class.js +776 -0
- package/components/tags-input/tags-input.css +201 -0
- package/components/tags-input/tags-input.d.ts +120 -0
- package/components/tags-input/tags-input.examples.md +92 -0
- package/components/tags-input/tags-input.js +17 -0
- package/components/tags-input/tags-input.test.js +368 -0
- package/components/tags-input/tags-input.yaml +367 -0
- package/components/text/text.css +44 -44
- package/components/text/text.js +1 -1
- package/components/textarea/textarea.a2ui.json +1 -1
- package/components/textarea/textarea.css +46 -46
- package/components/textarea/textarea.js +1 -1
- package/components/textarea/textarea.yaml +11 -8
- package/components/time-picker/time-picker.a2ui.json +267 -0
- package/components/time-picker/time-picker.class.js +693 -0
- package/components/time-picker/time-picker.css +122 -0
- package/components/time-picker/time-picker.d.ts +75 -0
- package/components/time-picker/time-picker.examples.md +35 -0
- package/components/time-picker/time-picker.js +17 -0
- package/components/time-picker/time-picker.test.js +287 -0
- package/components/time-picker/time-picker.yaml +256 -0
- package/components/timeline/timeline-item.yaml +2 -2
- package/components/timeline/{class.js → timeline.class.js} +1 -1
- package/components/timeline/timeline.css +50 -50
- package/components/timeline/timeline.js +1 -1
- package/components/toast/toast.css +58 -58
- package/components/toast/toast.js +1 -1
- package/components/toggle-group/toggle-group.css +6 -6
- package/components/toggle-group/toggle-group.js +1 -1
- package/components/toggle-group/toggle-option.yaml +1 -1
- package/components/toggle-scheme/toggle-scheme.css +2 -2
- package/components/toggle-scheme/toggle-scheme.js +1 -1
- package/components/toolbar/toolbar-group.yaml +1 -1
- package/components/toolbar/toolbar.css +17 -17
- package/components/toolbar/toolbar.js +1 -1
- package/components/tooltip/tooltip.css +2 -2
- package/components/tooltip/tooltip.js +1 -1
- package/components/tree/tree-item.yaml +1 -1
- package/components/tree/tree.css +37 -37
- package/components/tree/tree.js +1 -1
- package/components/upload/upload.css +49 -49
- package/components/upload/upload.js +1 -1
- package/dist/web-components.min.css +1 -1
- package/dist/web-components.min.js +146 -87
- package/package.json +3 -3
- package/styles/components.css +11 -0
- /package/components/accordion/{class.js → accordion.class.js} +0 -0
- /package/components/action-list/{class.js → action-list.class.js} +0 -0
- /package/components/agent-feedback-bar/{class.js → agent-feedback-bar.class.js} +0 -0
- /package/components/agent-questions/{class.js → agent-questions.class.js} +0 -0
- /package/components/agent-reasoning/{class.js → agent-reasoning.class.js} +0 -0
- /package/components/agent-suggestions/{class.js → agent-suggestions.class.js} +0 -0
- /package/components/avatar/{class.js → avatar.class.js} +0 -0
- /package/components/badge/{class.js → badge.class.js} +0 -0
- /package/components/block/{class.js → block.class.js} +0 -0
- /package/components/breadcrumb/{class.js → breadcrumb.class.js} +0 -0
- /package/components/button/{class.js → button.class.js} +0 -0
- /package/components/calendar-picker/{class.js → calendar-picker.class.js} +0 -0
- /package/components/card/{class.js → card.class.js} +0 -0
- /package/components/chart/{class.js → chart.class.js} +0 -0
- /package/components/chart-legend/{class.js → chart-legend.class.js} +0 -0
- /package/components/chat-thread/{class.js → chat-thread.class.js} +0 -0
- /package/components/check/{class.js → check.class.js} +0 -0
- /package/components/code/{class.js → code.class.js} +0 -0
- /package/components/col/{class.js → col.class.js} +0 -0
- /package/components/color-input/{class.js → color-input.class.js} +0 -0
- /package/components/color-picker/{class.js → color-picker.class.js} +0 -0
- /package/components/command/{class.js → command.class.js} +0 -0
- /package/components/demo-toggle/{class.js → demo-toggle.class.js} +0 -0
- /package/components/description-list/{class.js → description-list.class.js} +0 -0
- /package/components/divider/{class.js → divider.class.js} +0 -0
- /package/components/drawer/{class.js → drawer.class.js} +0 -0
- /package/components/embed/{class.js → embed.class.js} +0 -0
- /package/components/empty-state/{class.js → empty-state.class.js} +0 -0
- /package/components/feed/{class.js → feed.class.js} +0 -0
- /package/components/field/{class.js → field.class.js} +0 -0
- /package/components/fields/{class.js → fields.class.js} +0 -0
- /package/components/grid/{class.js → grid.class.js} +0 -0
- /package/components/heatmap/{class.js → heatmap.class.js} +0 -0
- /package/components/icon/{class.js → icon.class.js} +0 -0
- /package/components/image/{class.js → image.class.js} +0 -0
- /package/components/input/{class.js → input.class.js} +0 -0
- /package/components/inspector/{class.js → inspector.class.js} +0 -0
- /package/components/kbd/{class.js → kbd.class.js} +0 -0
- /package/components/link/{class.js → link.class.js} +0 -0
- /package/components/list/{class.js → list.class.js} +0 -0
- /package/components/menu/{class.js → menu.class.js} +0 -0
- /package/components/nav/{class.js → nav.class.js} +0 -0
- /package/components/nav-group/{class.js → nav-group.class.js} +0 -0
- /package/components/nav-item/{class.js → nav-item.class.js} +0 -0
- /package/components/noodles/{class.js → noodles.class.js} +0 -0
- /package/components/option-card/{class.js → option-card.class.js} +0 -0
- /package/components/otp-input/{class.js → otp-input.class.js} +0 -0
- /package/components/page/{class.js → page.class.js} +0 -0
- /package/components/pagination/{class.js → pagination.class.js} +0 -0
- /package/components/pane/{class.js → pane.class.js} +0 -0
- /package/components/pipeline-status/{class.js → pipeline-status.class.js} +0 -0
- /package/components/popover/{class.js → popover.class.js} +0 -0
- /package/components/progress/{class.js → progress.class.js} +0 -0
- /package/components/progress-row/{class.js → progress-row.class.js} +0 -0
- /package/components/radio/{class.js → radio.class.js} +0 -0
- /package/components/range/{class.js → range.class.js} +0 -0
- /package/components/rating/{class.js → rating.class.js} +0 -0
- /package/components/richtext/{class.js → richtext.class.js} +0 -0
- /package/components/row/{class.js → row.class.js} +0 -0
- /package/components/search/{class.js → search.class.js} +0 -0
- /package/components/segment/{class.js → segment.class.js} +0 -0
- /package/components/segmented/{class.js → segmented.class.js} +0 -0
- /package/components/skeleton/{class.js → skeleton.class.js} +0 -0
- /package/components/slider/{class.js → slider.class.js} +0 -0
- /package/components/stack/{class.js → stack.class.js} +0 -0
- /package/components/step-progress/{class.js → step-progress.class.js} +0 -0
- /package/components/stepper/{class.js → stepper.class.js} +0 -0
- /package/components/stream/{class.js → stream.class.js} +0 -0
- /package/components/swatch/{class.js → swatch.class.js} +0 -0
- /package/components/swiper/{class.js → swiper.class.js} +0 -0
- /package/components/switch/{class.js → switch.class.js} +0 -0
- /package/components/table/{class.js → table.class.js} +0 -0
- /package/components/tabs/{class.js → tabs.class.js} +0 -0
- /package/components/tag/{class.js → tag.class.js} +0 -0
- /package/components/text/{class.js → text.class.js} +0 -0
- /package/components/textarea/{class.js → textarea.class.js} +0 -0
- /package/components/toast/{class.js → toast.class.js} +0 -0
- /package/components/toggle-group/{class.js → toggle-group.class.js} +0 -0
- /package/components/toggle-scheme/{class.js → toggle-scheme.class.js} +0 -0
- /package/components/toolbar/{class.js → toolbar.class.js} +0 -0
- /package/components/tooltip/{class.js → tooltip.class.js} +0 -0
- /package/components/tree/{class.js → tree.class.js} +0 -0
- /package/components/upload/{class.js → upload.class.js} +0 -0
package/components/code/code.css
CHANGED
|
@@ -1,92 +1,92 @@
|
|
|
1
1
|
@scope (code-ui) {
|
|
2
2
|
:where(:scope) {
|
|
3
3
|
/* ── Layout ── */
|
|
4
|
-
--code-px: var(--a-space-3);
|
|
5
|
-
--code-py: var(--a-space-2);
|
|
6
|
-
--code-radius: var(--a-radius-md);
|
|
7
|
-
--code-radius-sm: var(--a-radius-sm);
|
|
8
|
-
--code-copy-px: var(--a-space-1);
|
|
9
|
-
--code-copy-py: var(--a-space-0-5);
|
|
10
|
-
--code-lint-marker-w: 3px; /* Vertical lint-marker rule; intrinsic measurement; no --a-space-* equivalent at this width. */
|
|
4
|
+
--code-px-default: var(--a-space-3);
|
|
5
|
+
--code-py-default: var(--a-space-2);
|
|
6
|
+
--code-radius-default: var(--a-radius-md);
|
|
7
|
+
--code-radius-sm-default: var(--a-radius-sm);
|
|
8
|
+
--code-copy-px-default: var(--a-space-1);
|
|
9
|
+
--code-copy-py-default: var(--a-space-0-5);
|
|
10
|
+
--code-lint-marker-w-default: 3px; /* Vertical lint-marker rule; intrinsic measurement; no --a-space-* equivalent at this width. */
|
|
11
11
|
|
|
12
12
|
/* ── Colors ── */
|
|
13
|
-
--code-bg: var(--a-bg);
|
|
14
|
-
--code-fg: var(--a-fg);
|
|
15
|
-
--code-border: var(--a-border-subtle);
|
|
16
|
-
--code-header-bg: var(--a-bg-scrim);
|
|
17
|
-
--code-header-fg: var(--a-fg-muted);
|
|
18
|
-
--code-copy-hover-bg: var(--a-bg-muted);
|
|
19
|
-
--code-copy-hover-fg: var(--a-fg);
|
|
13
|
+
--code-bg-default: var(--a-bg);
|
|
14
|
+
--code-fg-default: var(--a-fg);
|
|
15
|
+
--code-border-default: var(--a-border-subtle);
|
|
16
|
+
--code-header-bg-default: var(--a-bg-scrim);
|
|
17
|
+
--code-header-fg-default: var(--a-fg-muted);
|
|
18
|
+
--code-copy-hover-bg-default: var(--a-bg-muted);
|
|
19
|
+
--code-copy-hover-fg-default: var(--a-fg);
|
|
20
20
|
|
|
21
21
|
/* ── Typography ── */
|
|
22
|
-
--code-font: var(--a-font-family-code);
|
|
23
|
-
--code-font-size: var(--a-ui-sm);
|
|
24
|
-
--code-header-font: var(--a-ui-sm);
|
|
22
|
+
--code-font-default: var(--a-font-family-code);
|
|
23
|
+
--code-font-size-default: var(--a-ui-sm);
|
|
24
|
+
--code-header-font-default: var(--a-ui-sm);
|
|
25
25
|
|
|
26
26
|
/* ── Transition ── */
|
|
27
|
-
--code-duration: var(--a-duration-fast);
|
|
28
|
-
--code-easing: var(--a-easing);
|
|
27
|
+
--code-duration-default: var(--a-duration-fast);
|
|
28
|
+
--code-easing-default: var(--a-easing);
|
|
29
29
|
|
|
30
30
|
/* ── Editor chrome (CodeMirror 6) ──
|
|
31
31
|
Active only when `[language]` triggers the CM mount. Still safe
|
|
32
32
|
to emit in read-only mode; unused until `.cm-editor` is in the
|
|
33
33
|
DOM. See docs/specs/code-editor.md §6. */
|
|
34
|
-
--code-gutter-bg: var(--a-bg-subtle);
|
|
35
|
-
--code-gutter-fg: var(--a-fg-muted);
|
|
34
|
+
--code-gutter-bg-default: var(--a-bg-subtle);
|
|
35
|
+
--code-gutter-fg-default: var(--a-fg-muted);
|
|
36
36
|
/* Transparency-mixing in oklab — Safari < 18 has an OKLCH bug where
|
|
37
37
|
the transparent operand's hue resolves to 0, red-shifting the mix.
|
|
38
38
|
oklab is hue-agnostic and visually identical in fixed engines. */
|
|
39
|
-
--code-active-line-bg: color-mix(in oklab, var(--a-accent-muted) 40%, transparent);
|
|
40
|
-
--code-selection-bg: color-mix(in oklab, var(--a-accent-muted) 60%, transparent);
|
|
41
|
-
--code-selection-match: color-mix(in oklab, var(--a-accent-muted) 30%, transparent);
|
|
42
|
-
--code-cursor: var(--a-accent-strong);
|
|
43
|
-
--code-focus-ring: var(--a-focus-ring);
|
|
39
|
+
--code-active-line-bg-default: color-mix(in oklab, var(--a-accent-muted) 40%, transparent);
|
|
40
|
+
--code-selection-bg-default: color-mix(in oklab, var(--a-accent-muted) 60%, transparent);
|
|
41
|
+
--code-selection-match-default: color-mix(in oklab, var(--a-accent-muted) 30%, transparent);
|
|
42
|
+
--code-cursor-default: var(--a-accent-strong);
|
|
43
|
+
--code-focus-ring-default: var(--a-focus-ring);
|
|
44
44
|
|
|
45
45
|
/* ── Syntax highlight tokens ──
|
|
46
46
|
Map Lezer/CodeMirror highlight tag names to AdiaUI semantic
|
|
47
47
|
tokens. Overridable per-instance by setting `--code-tok-*` on
|
|
48
48
|
any ancestor. See docs/specs/code-editor.md §6.3 for the tag →
|
|
49
49
|
class → role map. */
|
|
50
|
-
--code-tok-comment: var(--a-fg-subtle);
|
|
51
|
-
--code-tok-keyword: var(--a-accent-strong);
|
|
52
|
-
--code-tok-string: var(--a-success-strong);
|
|
53
|
-
--code-tok-number: var(--a-info-strong);
|
|
54
|
-
--code-tok-boolean: var(--a-info-strong);
|
|
55
|
-
--code-tok-operator: var(--a-fg);
|
|
56
|
-
--code-tok-punctuation: var(--a-fg-muted);
|
|
57
|
-
--code-tok-function: var(--a-brand-strong);
|
|
58
|
-
--code-tok-variable: var(--a-fg);
|
|
59
|
-
--code-tok-type: var(--a-warning-strong);
|
|
60
|
-
--code-tok-property: var(--a-fg);
|
|
61
|
-
--code-tok-tag: var(--a-accent-strong);
|
|
62
|
-
--code-tok-attribute: var(--a-warning-strong);
|
|
63
|
-
--code-tok-url: var(--a-info-strong);
|
|
64
|
-
--code-tok-invalid: var(--a-danger-strong);
|
|
50
|
+
--code-tok-comment-default: var(--a-fg-subtle);
|
|
51
|
+
--code-tok-keyword-default: var(--a-accent-strong);
|
|
52
|
+
--code-tok-string-default: var(--a-success-strong);
|
|
53
|
+
--code-tok-number-default: var(--a-info-strong);
|
|
54
|
+
--code-tok-boolean-default: var(--a-info-strong);
|
|
55
|
+
--code-tok-operator-default: var(--a-fg);
|
|
56
|
+
--code-tok-punctuation-default: var(--a-fg-muted);
|
|
57
|
+
--code-tok-function-default: var(--a-brand-strong);
|
|
58
|
+
--code-tok-variable-default: var(--a-fg);
|
|
59
|
+
--code-tok-type-default: var(--a-warning-strong);
|
|
60
|
+
--code-tok-property-default: var(--a-fg);
|
|
61
|
+
--code-tok-tag-default: var(--a-accent-strong);
|
|
62
|
+
--code-tok-attribute-default: var(--a-warning-strong);
|
|
63
|
+
--code-tok-url-default: var(--a-info-strong);
|
|
64
|
+
--code-tok-invalid-default: var(--a-danger-strong);
|
|
65
65
|
|
|
66
66
|
/* ── Lint markers (Phase 3 — editable JSON) ──
|
|
67
67
|
`@codemirror/lint` paints gutter markers + diagnostic tooltips
|
|
68
68
|
+ inline underlines. Only fires in editable mode with a linter
|
|
69
69
|
attached; read-only instances never see these selectors. */
|
|
70
|
-
--code-lint-gutter-bg: var(--a-bg-subtle);
|
|
71
|
-
--code-lint-error: var(--a-danger-strong);
|
|
72
|
-
--code-lint-warning: var(--a-warning-strong);
|
|
73
|
-
--code-lint-info: var(--a-info-strong);
|
|
74
|
-
--code-lint-tooltip-bg: var(--a-bg-strong); /* §230-bundle (v0.5.9): elevated panel surface. Was orphaned --a-surface-floating. */
|
|
75
|
-
--code-lint-tooltip-fg: var(--a-fg);
|
|
76
|
-
--code-lint-tooltip-border: var(--a-border-subtle);
|
|
70
|
+
--code-lint-gutter-bg-default: var(--a-bg-subtle);
|
|
71
|
+
--code-lint-error-default: var(--a-danger-strong);
|
|
72
|
+
--code-lint-warning-default: var(--a-warning-strong);
|
|
73
|
+
--code-lint-info-default: var(--a-info-strong);
|
|
74
|
+
--code-lint-tooltip-bg-default: var(--a-bg-strong); /* §230-bundle (v0.5.9): elevated panel surface. Was orphaned --a-surface-floating. */
|
|
75
|
+
--code-lint-tooltip-fg-default: var(--a-fg);
|
|
76
|
+
--code-lint-tooltip-border-default: var(--a-border-subtle);
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
/* ── Block (default) ── */
|
|
80
80
|
:scope {
|
|
81
81
|
box-sizing: border-box;
|
|
82
82
|
display: block;
|
|
83
|
-
border: 1px solid var(--code-border);
|
|
84
|
-
border-radius: var(--code-radius);
|
|
83
|
+
border: 1px solid var(--code-border, var(--code-border-default));
|
|
84
|
+
border-radius: var(--code-radius, var(--code-radius-default));
|
|
85
85
|
overflow: hidden;
|
|
86
|
-
background: var(--code-bg);
|
|
87
|
-
color: var(--code-fg);
|
|
88
|
-
font-family: var(--code-font);
|
|
89
|
-
font-size: var(--code-font-size);
|
|
86
|
+
background: var(--code-bg, var(--code-bg-default));
|
|
87
|
+
color: var(--code-fg, var(--code-fg-default));
|
|
88
|
+
font-family: var(--code-font, var(--code-font-default));
|
|
89
|
+
font-size: var(--code-font-size, var(--code-font-size-default));
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
/* Header — chrome band above the code block */
|
|
@@ -96,11 +96,11 @@
|
|
|
96
96
|
align-items: center;
|
|
97
97
|
justify-content: space-between;
|
|
98
98
|
min-height: var(--a-chrome-pane-header-height);
|
|
99
|
-
padding: var(--code-py) var(--code-px);
|
|
100
|
-
background: var(--code-header-bg);
|
|
101
|
-
border-bottom: 1px solid var(--code-border);
|
|
102
|
-
font-size: var(--code-header-font);
|
|
103
|
-
color: var(--code-header-fg);
|
|
99
|
+
padding: var(--code-py, var(--code-py-default)) var(--code-px, var(--code-px-default));
|
|
100
|
+
background: var(--code-header-bg, var(--code-header-bg-default));
|
|
101
|
+
border-bottom: 1px solid var(--code-border, var(--code-border-default));
|
|
102
|
+
font-size: var(--code-header-font, var(--code-header-font-default));
|
|
103
|
+
color: var(--code-header-fg, var(--code-header-fg-default));
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
& > header [slot="label"] {
|
|
@@ -113,17 +113,17 @@
|
|
|
113
113
|
& > header [slot="copy"] {
|
|
114
114
|
all: unset;
|
|
115
115
|
cursor: pointer;
|
|
116
|
-
font-size: var(--code-header-font);
|
|
117
|
-
color: var(--code-header-fg);
|
|
118
|
-
padding: var(--code-copy-py) var(--code-copy-px);
|
|
119
|
-
border-radius: var(--code-radius-sm);
|
|
116
|
+
font-size: var(--code-header-font, var(--code-header-font-default));
|
|
117
|
+
color: var(--code-header-fg, var(--code-header-fg-default));
|
|
118
|
+
padding: var(--code-copy-py, var(--code-copy-py-default)) var(--code-copy-px, var(--code-copy-px-default));
|
|
119
|
+
border-radius: var(--code-radius-sm, var(--code-radius-sm-default));
|
|
120
120
|
transition:
|
|
121
|
-
background var(--code-duration) var(--code-easing),
|
|
122
|
-
color var(--code-duration) var(--code-easing);
|
|
121
|
+
background var(--code-duration, var(--code-duration-default)) var(--code-easing, var(--code-easing-default)),
|
|
122
|
+
color var(--code-duration, var(--code-duration-default)) var(--code-easing, var(--code-easing-default));
|
|
123
123
|
}
|
|
124
124
|
& > header [slot="copy"]:hover {
|
|
125
|
-
background: var(--code-copy-hover-bg);
|
|
126
|
-
color: var(--code-copy-hover-fg);
|
|
125
|
+
background: var(--code-copy-hover-bg, var(--code-copy-hover-bg-default));
|
|
126
|
+
color: var(--code-copy-hover-fg, var(--code-copy-hover-fg-default));
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
/* Pre > Code — reset any ambient page styling (margins, borders,
|
|
@@ -134,10 +134,10 @@
|
|
|
134
134
|
border: none;
|
|
135
135
|
border-radius: 0;
|
|
136
136
|
background: transparent;
|
|
137
|
-
padding: var(--code-py) var(--code-px);
|
|
137
|
+
padding: var(--code-py, var(--code-py-default)) var(--code-px, var(--code-px-default));
|
|
138
138
|
overflow-x: auto;
|
|
139
|
-
font-family: var(--code-font);
|
|
140
|
-
font-size: var(--code-font-size);
|
|
139
|
+
font-family: var(--code-font, var(--code-font-default));
|
|
140
|
+
font-size: var(--code-font-size, var(--code-font-size-default));
|
|
141
141
|
line-height: 1.5;
|
|
142
142
|
scrollbar-width: none;
|
|
143
143
|
}
|
|
@@ -170,8 +170,8 @@
|
|
|
170
170
|
grid-template-columns: 1fr;
|
|
171
171
|
/* Bleed the row tint to the pre's padding edges so it reads as a
|
|
172
172
|
full-width line, not a gap-margined pill. */
|
|
173
|
-
margin-inline: calc(-1 * var(--code-px));
|
|
174
|
-
padding-inline: var(--code-px);
|
|
173
|
+
margin-inline: calc(-1 * var(--code-px, var(--code-px-default)));
|
|
174
|
+
padding-inline: var(--code-px, var(--code-px-default));
|
|
175
175
|
}
|
|
176
176
|
& > pre > code[data-line-numbers] > [data-line-state] {
|
|
177
177
|
grid-template-columns: auto 1fr;
|
|
@@ -205,21 +205,21 @@
|
|
|
205
205
|
align-items: center;
|
|
206
206
|
justify-content: space-between;
|
|
207
207
|
min-height: var(--a-chrome-pane-footer-height);
|
|
208
|
-
padding: var(--code-py) var(--code-px);
|
|
209
|
-
background: var(--code-header-bg);
|
|
210
|
-
border-top: 1px solid var(--code-border);
|
|
211
|
-
font-size: var(--code-header-font);
|
|
212
|
-
color: var(--code-header-fg);
|
|
208
|
+
padding: var(--code-py, var(--code-py-default)) var(--code-px, var(--code-px-default));
|
|
209
|
+
background: var(--code-header-bg, var(--code-header-bg-default));
|
|
210
|
+
border-top: 1px solid var(--code-border, var(--code-border-default));
|
|
211
|
+
font-size: var(--code-header-font, var(--code-header-font-default));
|
|
212
|
+
color: var(--code-header-fg, var(--code-header-fg-default));
|
|
213
213
|
}
|
|
214
214
|
|
|
215
215
|
/* ── Inline ── */
|
|
216
216
|
:scope[inline] {
|
|
217
217
|
display: inline;
|
|
218
218
|
padding: 0.1em 0.4em;
|
|
219
|
-
background: var(--code-bg);
|
|
219
|
+
background: var(--code-bg, var(--code-bg-default));
|
|
220
220
|
border: none;
|
|
221
|
-
border-radius: var(--code-radius-sm);
|
|
222
|
-
font-family: var(--code-font);
|
|
221
|
+
border-radius: var(--code-radius-sm, var(--code-radius-sm-default));
|
|
222
|
+
font-family: var(--code-font, var(--code-font-default));
|
|
223
223
|
font-size: 0.9em;
|
|
224
224
|
overflow: visible;
|
|
225
225
|
}
|
|
@@ -295,9 +295,9 @@
|
|
|
295
295
|
|
|
296
296
|
:scope .cm-editor {
|
|
297
297
|
background: transparent;
|
|
298
|
-
color: var(--code-fg);
|
|
299
|
-
font-family: var(--code-font);
|
|
300
|
-
font-size: var(--code-font-size);
|
|
298
|
+
color: var(--code-fg, var(--code-fg-default));
|
|
299
|
+
font-family: var(--code-font, var(--code-font-default));
|
|
300
|
+
font-size: var(--code-font-size, var(--code-font-size-default));
|
|
301
301
|
line-height: 1.5;
|
|
302
302
|
}
|
|
303
303
|
|
|
@@ -313,64 +313,64 @@
|
|
|
313
313
|
}
|
|
314
314
|
|
|
315
315
|
:scope .cm-content {
|
|
316
|
-
padding: var(--code-py) var(--code-px);
|
|
317
|
-
caret-color: var(--code-cursor);
|
|
316
|
+
padding: var(--code-py, var(--code-py-default)) var(--code-px, var(--code-px-default));
|
|
317
|
+
caret-color: var(--code-cursor, var(--code-cursor-default));
|
|
318
318
|
}
|
|
319
319
|
|
|
320
320
|
:scope .cm-editor.cm-focused {
|
|
321
|
-
outline: 2px solid var(--code-focus-ring);
|
|
321
|
+
outline: 2px solid var(--code-focus-ring, var(--code-focus-ring-default));
|
|
322
322
|
outline-offset: -2px;
|
|
323
323
|
}
|
|
324
324
|
|
|
325
325
|
:scope .cm-gutters {
|
|
326
|
-
background: var(--code-gutter-bg);
|
|
327
|
-
color: var(--code-gutter-fg);
|
|
328
|
-
border-right: 1px solid var(--code-border);
|
|
326
|
+
background: var(--code-gutter-bg, var(--code-gutter-bg-default));
|
|
327
|
+
color: var(--code-gutter-fg, var(--code-gutter-fg-default));
|
|
328
|
+
border-right: 1px solid var(--code-border, var(--code-border-default));
|
|
329
329
|
}
|
|
330
330
|
|
|
331
331
|
:scope .cm-activeLine {
|
|
332
|
-
background: var(--code-active-line-bg);
|
|
332
|
+
background: var(--code-active-line-bg, var(--code-active-line-bg-default));
|
|
333
333
|
}
|
|
334
334
|
:scope .cm-activeLineGutter {
|
|
335
|
-
background: var(--code-active-line-bg);
|
|
336
|
-
color: var(--code-fg);
|
|
335
|
+
background: var(--code-active-line-bg, var(--code-active-line-bg-default));
|
|
336
|
+
color: var(--code-fg, var(--code-fg-default));
|
|
337
337
|
}
|
|
338
338
|
|
|
339
339
|
:scope .cm-selectionBackground,
|
|
340
340
|
:scope ::selection {
|
|
341
|
-
background: var(--code-selection-bg);
|
|
341
|
+
background: var(--code-selection-bg, var(--code-selection-bg-default));
|
|
342
342
|
}
|
|
343
343
|
|
|
344
344
|
:scope .cm-selectionMatch {
|
|
345
|
-
background: var(--code-selection-match);
|
|
345
|
+
background: var(--code-selection-match, var(--code-selection-match-default));
|
|
346
346
|
}
|
|
347
347
|
|
|
348
348
|
:scope .cm-cursor {
|
|
349
|
-
border-left-color: var(--code-cursor);
|
|
349
|
+
border-left-color: var(--code-cursor, var(--code-cursor-default));
|
|
350
350
|
}
|
|
351
351
|
|
|
352
352
|
/* Syntax highlight — one rule per token role (see core/_cm-theme.js) */
|
|
353
|
-
:scope .tok-comment { color: var(--code-tok-comment); font-style: italic; }
|
|
354
|
-
:scope .tok-keyword { color: var(--code-tok-keyword); font-weight: 500; }
|
|
355
|
-
:scope .tok-string { color: var(--code-tok-string); }
|
|
356
|
-
:scope .tok-number { color: var(--code-tok-number); }
|
|
357
|
-
:scope .tok-boolean { color: var(--code-tok-boolean); }
|
|
358
|
-
:scope .tok-operator { color: var(--code-tok-operator); }
|
|
359
|
-
:scope .tok-punctuation { color: var(--code-tok-punctuation); }
|
|
360
|
-
:scope .tok-function { color: var(--code-tok-function); }
|
|
361
|
-
:scope .tok-variable { color: var(--code-tok-variable); }
|
|
362
|
-
:scope .tok-type { color: var(--code-tok-type); font-weight: 500; }
|
|
363
|
-
:scope .tok-property { color: var(--code-tok-property); }
|
|
364
|
-
:scope .tok-tag { color: var(--code-tok-tag); }
|
|
365
|
-
:scope .tok-attribute { color: var(--code-tok-attribute); }
|
|
366
|
-
:scope .tok-url { color: var(--code-tok-url); text-decoration: underline; }
|
|
367
|
-
:scope .tok-invalid { color: var(--code-tok-invalid); text-decoration: wavy underline; }
|
|
353
|
+
:scope .tok-comment { color: var(--code-tok-comment, var(--code-tok-comment-default)); font-style: italic; }
|
|
354
|
+
:scope .tok-keyword { color: var(--code-tok-keyword, var(--code-tok-keyword-default)); font-weight: 500; }
|
|
355
|
+
:scope .tok-string { color: var(--code-tok-string, var(--code-tok-string-default)); }
|
|
356
|
+
:scope .tok-number { color: var(--code-tok-number, var(--code-tok-number-default)); }
|
|
357
|
+
:scope .tok-boolean { color: var(--code-tok-boolean, var(--code-tok-boolean-default)); }
|
|
358
|
+
:scope .tok-operator { color: var(--code-tok-operator, var(--code-tok-operator-default)); }
|
|
359
|
+
:scope .tok-punctuation { color: var(--code-tok-punctuation, var(--code-tok-punctuation-default)); }
|
|
360
|
+
:scope .tok-function { color: var(--code-tok-function, var(--code-tok-function-default)); }
|
|
361
|
+
:scope .tok-variable { color: var(--code-tok-variable, var(--code-tok-variable-default)); }
|
|
362
|
+
:scope .tok-type { color: var(--code-tok-type, var(--code-tok-type-default)); font-weight: 500; }
|
|
363
|
+
:scope .tok-property { color: var(--code-tok-property, var(--code-tok-property-default)); }
|
|
364
|
+
:scope .tok-tag { color: var(--code-tok-tag, var(--code-tok-tag-default)); }
|
|
365
|
+
:scope .tok-attribute { color: var(--code-tok-attribute, var(--code-tok-attribute-default)); }
|
|
366
|
+
:scope .tok-url { color: var(--code-tok-url, var(--code-tok-url-default)); text-decoration: underline; }
|
|
367
|
+
:scope .tok-invalid { color: var(--code-tok-invalid, var(--code-tok-invalid-default)); text-decoration: wavy underline; }
|
|
368
368
|
|
|
369
369
|
/* ── Lint gutter + diagnostics ──
|
|
370
370
|
Styles the `@codemirror/lint` markers in the gutter, the inline
|
|
371
371
|
wavy underline on the diagnostic range, and the tooltip panel. */
|
|
372
372
|
:scope .cm-gutter-lint {
|
|
373
|
-
background: var(--code-lint-gutter-bg);
|
|
373
|
+
background: var(--code-lint-gutter-bg, var(--code-lint-gutter-bg-default));
|
|
374
374
|
width: 1em;
|
|
375
375
|
}
|
|
376
376
|
:scope .cm-lint-marker {
|
|
@@ -378,19 +378,19 @@
|
|
|
378
378
|
height: 0.7em;
|
|
379
379
|
margin: 0.15em 0.15em;
|
|
380
380
|
}
|
|
381
|
-
:scope .cm-lint-marker-error { color: var(--code-lint-error); }
|
|
382
|
-
:scope .cm-lint-marker-warning { color: var(--code-lint-warning); }
|
|
383
|
-
:scope .cm-lint-marker-info { color: var(--code-lint-info); }
|
|
381
|
+
:scope .cm-lint-marker-error { color: var(--code-lint-error, var(--code-lint-error-default)); }
|
|
382
|
+
:scope .cm-lint-marker-warning { color: var(--code-lint-warning, var(--code-lint-warning-default)); }
|
|
383
|
+
:scope .cm-lint-marker-info { color: var(--code-lint-info, var(--code-lint-info-default)); }
|
|
384
384
|
|
|
385
|
-
:scope .cm-lintRange-error { background: none; text-decoration: wavy underline var(--code-lint-error); }
|
|
386
|
-
:scope .cm-lintRange-warning { background: none; text-decoration: wavy underline var(--code-lint-warning); }
|
|
387
|
-
:scope .cm-lintRange-info { background: none; text-decoration: wavy underline var(--code-lint-info); }
|
|
385
|
+
:scope .cm-lintRange-error { background: none; text-decoration: wavy underline var(--code-lint-error, var(--code-lint-error-default)); }
|
|
386
|
+
:scope .cm-lintRange-warning { background: none; text-decoration: wavy underline var(--code-lint-warning, var(--code-lint-warning-default)); }
|
|
387
|
+
:scope .cm-lintRange-info { background: none; text-decoration: wavy underline var(--code-lint-info, var(--code-lint-info-default)); }
|
|
388
388
|
|
|
389
389
|
:scope .cm-tooltip.cm-tooltip-lint {
|
|
390
|
-
background: var(--code-lint-tooltip-bg);
|
|
391
|
-
color: var(--code-lint-tooltip-fg);
|
|
392
|
-
border: 1px solid var(--code-lint-tooltip-border);
|
|
393
|
-
border-radius: var(--code-radius-sm);
|
|
390
|
+
background: var(--code-lint-tooltip-bg, var(--code-lint-tooltip-bg-default));
|
|
391
|
+
color: var(--code-lint-tooltip-fg, var(--code-lint-tooltip-fg-default));
|
|
392
|
+
border: 1px solid var(--code-lint-tooltip-border, var(--code-lint-tooltip-border-default));
|
|
393
|
+
border-radius: var(--code-radius-sm, var(--code-radius-sm-default));
|
|
394
394
|
padding: var(--a-space-1) var(--a-space-2);
|
|
395
395
|
font-size: var(--a-ui-sm);
|
|
396
396
|
font-family: var(--a-font-family);
|
|
@@ -398,11 +398,11 @@
|
|
|
398
398
|
}
|
|
399
399
|
:scope .cm-diagnostic {
|
|
400
400
|
padding: 0;
|
|
401
|
-
border-inline-start: var(--code-lint-marker-w) solid transparent;
|
|
401
|
+
border-inline-start: var(--code-lint-marker-w, var(--code-lint-marker-w-default)) solid transparent;
|
|
402
402
|
padding-inline-start: var(--a-space-2);
|
|
403
403
|
}
|
|
404
|
-
:scope .cm-diagnostic-error { border-inline-start-color: var(--code-lint-error); }
|
|
405
|
-
:scope .cm-diagnostic-warning { border-inline-start-color: var(--code-lint-warning); }
|
|
406
|
-
:scope .cm-diagnostic-info { border-inline-start-color: var(--code-lint-info); }
|
|
404
|
+
:scope .cm-diagnostic-error { border-inline-start-color: var(--code-lint-error, var(--code-lint-error-default)); }
|
|
405
|
+
:scope .cm-diagnostic-warning { border-inline-start-color: var(--code-lint-warning, var(--code-lint-warning-default)); }
|
|
406
|
+
:scope .cm-diagnostic-info { border-inline-start-color: var(--code-lint-info, var(--code-lint-info-default)); }
|
|
407
407
|
:scope .cm-diagnosticText { white-space: pre-wrap; }
|
|
408
408
|
}
|
package/components/code/code.js
CHANGED
package/components/col/col.css
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
@scope (col-ui) {
|
|
2
2
|
:where(:scope) {
|
|
3
|
-
--col-gap: var(--a-gap);
|
|
4
|
-
--col-justify: flex-start;
|
|
5
|
-
--col-align: stretch;
|
|
3
|
+
--col-gap-default: var(--a-gap);
|
|
4
|
+
--col-justify-default: flex-start;
|
|
5
|
+
--col-align-default: stretch;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
:scope {
|
|
9
9
|
box-sizing: border-box;
|
|
10
10
|
display: flex;
|
|
11
11
|
flex-direction: column;
|
|
12
|
-
gap: var(--col-gap);
|
|
13
|
-
justify-content: var(--col-justify);
|
|
14
|
-
align-items: var(--col-align);
|
|
12
|
+
gap: var(--col-gap, var(--col-gap-default));
|
|
13
|
+
justify-content: var(--col-justify, var(--col-justify-default));
|
|
14
|
+
align-items: var(--col-align, var(--col-align-default));
|
|
15
15
|
/* Universal [padding] / [margin] opt-in — see tokens.css for scale. */
|
|
16
16
|
padding: var(--a-padding, 0);
|
|
17
17
|
margin: var(--a-margin, 0);
|
|
@@ -21,17 +21,17 @@
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
/* Justify */
|
|
24
|
-
:scope[justify="start"] { --col-justify: flex-start; }
|
|
25
|
-
:scope[justify="center"] { --col-justify: center; }
|
|
26
|
-
:scope[justify="end"] { --col-justify: flex-end; }
|
|
27
|
-
:scope[justify="space-between"] { --col-justify: space-between; }
|
|
28
|
-
:scope[justify="space-around"] { --col-justify: space-around; }
|
|
24
|
+
:scope[justify="start"] { --col-justify-default: flex-start; }
|
|
25
|
+
:scope[justify="center"] { --col-justify-default: center; }
|
|
26
|
+
:scope[justify="end"] { --col-justify-default: flex-end; }
|
|
27
|
+
:scope[justify="space-between"] { --col-justify-default: space-between; }
|
|
28
|
+
:scope[justify="space-around"] { --col-justify-default: space-around; }
|
|
29
29
|
|
|
30
30
|
/* Align */
|
|
31
|
-
:scope[align="start"] { --col-align: flex-start; text-align: start; }
|
|
32
|
-
:scope[align="center"] { --col-align: center; text-align: center; }
|
|
33
|
-
:scope[align="end"] { --col-align: flex-end; text-align: end; }
|
|
34
|
-
:scope[align="stretch"] { --col-align: stretch; }
|
|
31
|
+
:scope[align="start"] { --col-align-default: flex-start; text-align: start; }
|
|
32
|
+
:scope[align="center"] { --col-align-default: center; text-align: center; }
|
|
33
|
+
:scope[align="end"] { --col-align-default: flex-end; text-align: end; }
|
|
34
|
+
:scope[align="stretch"] { --col-align-default: stretch; }
|
|
35
35
|
|
|
36
36
|
/* Grow — fills remaining space in a flex parent. Used inside row-ui
|
|
37
37
|
to push trailing content (amounts, badges) to the far edge. */
|
package/components/col/col.js
CHANGED