@keyfunc/keybricks-ds 1.0.4 → 2.3.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/DEPLOY.md +14 -5
- package/DESIGN.md +245 -59
- package/INTEGRATION.md +243 -49
- package/SKILL.md +13 -11
- package/_adherence.oxlintrc.json +183 -70
- package/_scripts/build-index.mjs +24 -4
- package/_scripts/build-tokens.mjs +5 -2
- package/assets/icons/icon-index.js +1 -1
- package/assets/icons/icon-index.json +1 -1
- package/components/_cards/accordion.card.html +2 -2
- package/components/_cards/action-chip.card.html +11 -9
- package/components/_cards/activity.card.html +3 -3
- package/components/_cards/alert.card.html +3 -3
- package/components/_cards/app-chrome.card.html +4 -4
- package/components/_cards/banner.card.html +1 -1
- package/components/_cards/breadcrumb.card.html +5 -5
- package/components/_cards/button-1-base.card.html +23 -26
- package/components/_cards/button-2-states.card.html +27 -25
- package/components/_cards/button-3-sizes-icons.card.html +20 -19
- package/components/_cards/button-4-group.card.html +14 -31
- package/components/_cards/canvas-zoom-controls.card.html +1 -1
- package/components/_cards/cards-indicators.card.html +2 -2
- package/components/_cards/charts-1-sparkline.card.html +5 -5
- package/components/_cards/charts-10-gauge.card.html +5 -5
- package/components/_cards/charts-11-funnel.card.html +3 -3
- package/components/_cards/charts-12-treemap.card.html +3 -3
- package/components/_cards/charts-14-radar.card.html +3 -3
- package/components/_cards/charts-15-distribution.card.html +2 -2
- package/components/_cards/charts-16-pareto.card.html +3 -3
- package/components/_cards/charts-17-candlestick.card.html +3 -3
- package/components/_cards/charts-18-sankey.card.html +3 -3
- package/components/_cards/charts-19-chord.card.html +3 -3
- package/components/_cards/charts-2-line.card.html +4 -4
- package/components/_cards/charts-20-sunburst.card.html +3 -3
- package/components/_cards/charts-21-worldmap.card.html +4 -4
- package/components/_cards/charts-22-gantt.card.html +3 -3
- package/components/_cards/charts-23-bar3d.card.html +3 -3
- package/components/_cards/charts-24-pie3d.card.html +3 -3
- package/components/_cards/charts-25-surface3d.card.html +3 -3
- package/components/_cards/charts-26-scatter3d.card.html +3 -3
- package/components/_cards/charts-27-ribbon3d.card.html +3 -3
- package/components/_cards/charts-3-bar.card.html +7 -7
- package/components/_cards/charts-4-barlist.card.html +3 -3
- package/components/_cards/charts-5-donut.card.html +4 -4
- package/components/_cards/charts-6-scatter.card.html +3 -3
- package/components/_cards/charts-7-heatmap.card.html +3 -3
- package/components/_cards/charts-8-waterfall.card.html +3 -3
- package/components/_cards/charts-9-bullet.card.html +3 -3
- package/components/_cards/charts-99-fullpage.card.html +5 -5
- package/components/_cards/checkbox.card.html +9 -6
- package/components/_cards/codeblock.card.html +2 -2
- package/components/_cards/combobox.card.html +6 -3
- package/components/_cards/context-menu.card.html +6 -3
- package/components/_cards/date-picker.card.html +10 -4
- package/components/_cards/diffvalue.card.html +3 -3
- package/components/_cards/divider.card.html +4 -4
- package/components/_cards/drawer.card.html +4 -4
- package/components/_cards/dropdown-menu.card.html +7 -7
- package/components/_cards/dropzone.card.html +5 -3
- package/components/_cards/empty-state.card.html +6 -6
- package/components/_cards/filter-bar.card.html +5 -5
- package/components/_cards/icon-button.card.html +14 -14
- package/components/_cards/icons-1-core.card.html +4 -4
- package/components/_cards/icons-2-feather.card.html +4 -4
- package/components/_cards/icons-3-unicons.card.html +4 -4
- package/components/_cards/input.card.html +5 -2
- package/components/_cards/kbd.card.html +2 -2
- package/components/_cards/keyvalue.card.html +2 -2
- package/components/_cards/listrow.card.html +2 -2
- package/components/_cards/loading.card.html +3 -3
- package/components/_cards/log-viewer.card.html +3 -3
- package/components/_cards/modal.card.html +9 -9
- package/components/_cards/multi-select.card.html +6 -3
- package/components/_cards/number-stepper.card.html +9 -5
- package/components/_cards/pagination.card.html +6 -3
- package/components/_cards/people.card.html +4 -4
- package/components/_cards/pipeline-node.card.html +8 -8
- package/components/_cards/pipeline-palette.card.html +5 -5
- package/components/_cards/radio.card.html +12 -7
- package/components/_cards/search.card.html +6 -3
- package/components/_cards/segmented-control.card.html +11 -10
- package/components/_cards/select.card.html +8 -4
- package/components/_cards/slider.card.html +2 -2
- package/components/_cards/smart-table.card.html +3 -3
- package/components/_cards/spreadsheet.card.html +3 -3
- package/components/_cards/stepper.card.html +3 -3
- package/components/_cards/table.card.html +165 -0
- package/components/_cards/tabs.card.html +6 -3
- package/components/_cards/tag.card.html +6 -3
- package/components/_cards/textarea.card.html +2 -2
- package/components/_cards/timeline.card.html +3 -3
- package/components/_cards/toast.card.html +10 -8
- package/components/_cards/toggles.card.html +15 -10
- package/components/_cards/tooltip.card.html +7 -7
- package/components/_cards/tree.card.html +3 -3
- package/components/_shared/card-kit.css +25 -0
- package/components/_shared/card-kit.js +50 -0
- package/components/_shared/src-buttons.js +1 -1
- package/components/_shared/src-charts.js +1 -1
- package/components/_shared/src-data.js +1 -1
- package/components/_shared/src-display.js +1 -1
- package/components/_shared/src-feedback.js +1 -1
- package/components/_shared/src-forms.js +1 -1
- package/components/_shared/src-icons.js +1 -1
- package/components/_shared/src-navigation.js +1 -1
- package/components/_shared/src-pipeline.js +1 -1
- package/components/_shared/src-tabs.js +1 -1
- package/components/_shared/view-source.js +3 -3
- package/components/_vue/index.mjs +16 -5
- package/components/buttons/ActionChip.d.ts +3 -1
- package/components/buttons/ActionChip.jsx +4 -4
- package/components/buttons/ActionChip.vue +4 -4
- package/components/buttons/Button.d.ts +5 -2
- package/components/buttons/Button.jsx +15 -18
- package/components/buttons/Button.vue +17 -18
- package/components/buttons/ButtonGroup.vue +1 -1
- package/components/buttons/IconButton.d.ts +2 -1
- package/components/buttons/IconButton.jsx +13 -9
- package/components/buttons/IconButton.vue +12 -9
- package/components/buttons/buttons.prompt.md +6 -5
- package/components/charts/Bar3D.jsx +2 -2
- package/components/charts/Bar3D.vue +3 -3
- package/components/charts/BarChart.jsx +4 -4
- package/components/charts/BarChart.vue +6 -6
- package/components/charts/BarList.jsx +4 -4
- package/components/charts/BarList.vue +4 -4
- package/components/charts/BoxPlot.jsx +1 -1
- package/components/charts/BoxPlot.vue +3 -3
- package/components/charts/BulletChart.jsx +6 -6
- package/components/charts/BulletChart.vue +6 -6
- package/components/charts/CandlestickChart.jsx +2 -2
- package/components/charts/CandlestickChart.vue +5 -5
- package/components/charts/ChartKit.jsx +8 -7
- package/components/charts/ChartLegend.vue +16 -0
- package/components/charts/ChartTooltip.vue +16 -0
- package/components/charts/ChordChart.jsx +2 -2
- package/components/charts/ChordChart.vue +3 -3
- package/components/charts/DonutChart.jsx +1 -1
- package/components/charts/DonutChart.vue +2 -2
- package/components/charts/FunnelChart.jsx +3 -3
- package/components/charts/FunnelChart.vue +4 -4
- package/components/charts/GanttChart.jsx +2 -2
- package/components/charts/GanttChart.vue +3 -3
- package/components/charts/GaugeChart.jsx +2 -2
- package/components/charts/GaugeChart.vue +2 -2
- package/components/charts/HeatmapChart.jsx +2 -2
- package/components/charts/HeatmapChart.vue +2 -2
- package/components/charts/Histogram.jsx +2 -2
- package/components/charts/Histogram.vue +4 -4
- package/components/charts/LineChart.jsx +1 -1
- package/components/charts/LineChart.vue +4 -4
- package/components/charts/ParetoChart.jsx +3 -3
- package/components/charts/ParetoChart.vue +5 -5
- package/components/charts/Pie3D.jsx +1 -1
- package/components/charts/Pie3D.vue +2 -2
- package/components/charts/PlotGrid.vue +18 -0
- package/components/charts/RadarChart.jsx +1 -1
- package/components/charts/RadarChart.vue +2 -2
- package/components/charts/Ribbon3D.jsx +2 -2
- package/components/charts/Ribbon3D.vue +3 -3
- package/components/charts/SankeyChart.jsx +2 -2
- package/components/charts/SankeyChart.vue +3 -3
- package/components/charts/Scatter3D.jsx +1 -1
- package/components/charts/Scatter3D.vue +2 -2
- package/components/charts/ScatterChart.jsx +3 -3
- package/components/charts/ScatterChart.vue +5 -5
- package/components/charts/Sparkline.jsx +1 -1
- package/components/charts/Sparkline.vue +1 -1
- package/components/charts/SunburstChart.jsx +1 -1
- package/components/charts/SunburstChart.vue +2 -2
- package/components/charts/Surface3D.jsx +2 -2
- package/components/charts/Surface3D.vue +3 -3
- package/components/charts/TreemapChart.jsx +2 -2
- package/components/charts/TreemapChart.vue +3 -3
- package/components/charts/WaterfallChart.jsx +2 -2
- package/components/charts/WaterfallChart.vue +6 -5
- package/components/charts/WorldMap.jsx +4 -4
- package/components/charts/WorldMap.vue +5 -5
- package/components/charts/XLabels.vue +11 -0
- package/components/data/CodeBlock.jsx +1 -1
- package/components/data/CodeBlock.vue +1 -1
- package/components/data/DiffValue.d.ts +1 -0
- package/components/data/DiffValue.jsx +1 -1
- package/components/data/DiffValue.vue +1 -1
- package/components/data/FilterBar.d.ts +2 -0
- package/components/data/FilterBar.jsx +10 -9
- package/components/data/FilterBar.vue +9 -8
- package/components/data/KeyValue.d.ts +1 -1
- package/components/data/KeyValue.jsx +4 -4
- package/components/data/KeyValue.vue +4 -4
- package/components/data/ListRow.jsx +2 -2
- package/components/data/ListRow.vue +2 -2
- package/components/data/Pagination.d.ts +5 -1
- package/components/data/Pagination.jsx +16 -12
- package/components/data/Pagination.vue +14 -9
- package/components/data/SmartTable.d.ts +4 -1
- package/components/data/SmartTable.jsx +16 -14
- package/components/data/SmartTable.vue +26 -23
- package/components/data/Spreadsheet.d.ts +2 -0
- package/components/data/Spreadsheet.jsx +16 -15
- package/components/data/Spreadsheet.vue +19 -18
- package/components/data/Table.d.ts +101 -0
- package/components/data/Table.jsx +223 -0
- package/components/data/Table.vue +153 -0
- package/components/data/data.prompt.md +3 -3
- package/components/display/Avatar.jsx +2 -2
- package/components/display/Avatar.vue +3 -2
- package/components/display/AvatarGroup.vue +3 -2
- package/components/display/Badge.d.ts +4 -1
- package/components/display/Badge.jsx +10 -5
- package/components/display/Badge.vue +1 -1
- package/components/display/Divider.vue +3 -3
- package/components/display/Donut.vue +3 -2
- package/components/display/IconTile.vue +10 -4
- package/components/display/Kbd.d.ts +1 -1
- package/components/display/Kbd.jsx +1 -1
- package/components/display/Kbd.vue +2 -2
- package/components/display/ProgressBar.jsx +1 -1
- package/components/display/ProgressBar.vue +1 -1
- package/components/display/StatCard.vue +1 -1
- package/components/display/Tag.d.ts +3 -1
- package/components/display/Tag.jsx +4 -4
- package/components/display/Tag.vue +4 -4
- package/components/feedback/Accordion.jsx +2 -2
- package/components/feedback/Accordion.vue +2 -2
- package/components/feedback/ActivityItem.d.ts +3 -1
- package/components/feedback/ActivityItem.jsx +6 -6
- package/components/feedback/ActivityItem.vue +5 -4
- package/components/feedback/Alert.jsx +4 -4
- package/components/feedback/Alert.vue +3 -3
- package/components/feedback/Banner.jsx +5 -5
- package/components/feedback/Banner.vue +5 -5
- package/components/feedback/ContextMenu.d.ts +3 -1
- package/components/feedback/ContextMenu.jsx +5 -5
- package/components/feedback/ContextMenu.vue +5 -5
- package/components/feedback/DotActivity.vue +3 -3
- package/components/feedback/Drawer.d.ts +2 -0
- package/components/feedback/Drawer.jsx +6 -6
- package/components/feedback/Drawer.vue +22 -15
- package/components/feedback/EmptyState.vue +2 -2
- package/components/feedback/LogViewer.vue +1 -1
- package/components/feedback/Modal.d.ts +2 -0
- package/components/feedback/Modal.jsx +12 -11
- package/components/feedback/Modal.vue +10 -8
- package/components/feedback/Skeleton.vue +2 -1
- package/components/feedback/Spinner.vue +2 -1
- package/components/feedback/Stepper.vue +1 -1
- package/components/feedback/Timeline.jsx +1 -1
- package/components/feedback/Timeline.vue +3 -3
- package/components/feedback/Toast.vue +4 -4
- package/components/feedback/ToastStack.vue +11 -0
- package/components/feedback/Tooltip.vue +19 -0
- package/components/feedback/feedback.prompt.md +4 -4
- package/components/forms/Checkbox.d.ts +3 -2
- package/components/forms/Checkbox.jsx +7 -7
- package/components/forms/Checkbox.vue +8 -8
- package/components/forms/Combobox.d.ts +2 -0
- package/components/forms/Combobox.jsx +12 -10
- package/components/forms/Combobox.vue +11 -10
- package/components/forms/DatePicker.d.ts +4 -0
- package/components/forms/DatePicker.jsx +16 -12
- package/components/forms/DatePicker.vue +15 -11
- package/components/forms/Dropzone.jsx +2 -2
- package/components/forms/Dropzone.vue +5 -5
- package/components/forms/Field.d.ts +5 -1
- package/components/forms/Field.jsx +4 -4
- package/components/forms/Field.vue +4 -4
- package/components/forms/Input.d.ts +5 -1
- package/components/forms/Input.jsx +8 -8
- package/components/forms/Input.vue +3 -3
- package/components/forms/MultiSelect.d.ts +2 -0
- package/components/forms/MultiSelect.jsx +13 -11
- package/components/forms/MultiSelect.vue +12 -11
- package/components/forms/NumberStepper.d.ts +3 -1
- package/components/forms/NumberStepper.jsx +7 -7
- package/components/forms/NumberStepper.vue +8 -7
- package/components/forms/Radio.d.ts +5 -3
- package/components/forms/Radio.jsx +13 -15
- package/components/forms/Radio.vue +9 -10
- package/components/forms/RadioGroup.vue +5 -5
- package/components/forms/SearchInput.d.ts +3 -1
- package/components/forms/SearchInput.jsx +6 -6
- package/components/forms/SearchInput.vue +7 -6
- package/components/forms/Select.d.ts +3 -2
- package/components/forms/Select.jsx +6 -7
- package/components/forms/Select.vue +6 -6
- package/components/forms/Slider.jsx +3 -3
- package/components/forms/Slider.vue +3 -3
- package/components/forms/Switch.d.ts +2 -2
- package/components/forms/Switch.jsx +20 -22
- package/components/forms/Switch.vue +22 -18
- package/components/forms/Textarea.vue +5 -5
- package/components/forms/forms.prompt.md +1 -1
- package/components/forms/input-base.js +2 -1
- package/components/icons/Icon.jsx +17 -1
- package/components/icons/Icon.prompt.md +2 -0
- package/components/icons/Icon.vue +1 -1
- package/components/icons/icon-paths.js +15 -0
- package/components/index.d.ts +1 -2
- package/components/index.js +4 -5
- package/components/navigation/Breadcrumb.jsx +6 -10
- package/components/navigation/Breadcrumb.vue +6 -12
- package/components/navigation/DocTree.jsx +3 -3
- package/components/navigation/DocTree.vue +3 -3
- package/components/navigation/PageHeading.vue +1 -1
- package/components/navigation/PageToolbar.vue +7 -6
- package/components/navigation/Sidebar.jsx +4 -23
- package/components/navigation/Sidebar.vue +5 -10
- package/components/navigation/ThemeToggle.vue +2 -1
- package/components/navigation/TopBar.d.ts +3 -1
- package/components/navigation/TopBar.jsx +6 -6
- package/components/navigation/Tree.jsx +5 -5
- package/components/navigation/Tree.vue +13 -8
- package/components/navigation/nav-model.js +23 -0
- package/components/navigation/theme-store.js +9 -0
- package/components/pipeline/ConfigPanel.d.ts +2 -0
- package/components/pipeline/ConfigPanel.jsx +9 -9
- package/components/pipeline/ConfigPanel.vue +9 -9
- package/components/pipeline/DataPreview.d.ts +3 -1
- package/components/pipeline/DataPreview.jsx +7 -7
- package/components/pipeline/DataPreview.vue +7 -7
- package/components/pipeline/NodeCard.jsx +3 -3
- package/components/pipeline/NodeCard.vue +3 -3
- package/components/pipeline/PaletteItem.vue +2 -2
- package/components/pipeline/PaletteListItem.vue +1 -1
- package/components/pipeline/PalettePanel.jsx +2 -2
- package/components/pipeline/PalettePanel.vue +1 -1
- package/components/pipeline/Port.vue +15 -0
- package/components/pipeline/PortLabel.vue +15 -0
- package/components/pipeline/ZoomControls.vue +1 -1
- package/components/pipeline/port-skin.js +13 -0
- package/components/px.js +4 -0
- package/components/tabs/PanelTabs.vue +5 -4
- package/components/tabs/PillTabs.vue +5 -4
- package/components/tabs/SegmentedControl.d.ts +2 -2
- package/components/tabs/SegmentedControl.jsx +7 -7
- package/components/tabs/SegmentedControl.vue +7 -7
- package/components/tabs/Tabs.d.ts +5 -3
- package/components/tabs/Tabs.jsx +15 -15
- package/components/tabs/Tabs.vue +5 -5
- package/components/tabs/ViewToggle.d.ts +3 -1
- package/components/tabs/ViewToggle.jsx +5 -5
- package/components/tabs/ViewToggle.vue +5 -5
- package/components/tabs/tabs.prompt.md +1 -1
- package/keybricks.css +4 -0
- package/package.json +6 -3
- package/readme.md +91 -122
- package/readme.zh-CN.md +121 -0
- package/tokens/alpha.css +3 -1
- package/tokens/charts.css +20 -17
- package/tokens/colors.css +3 -3
- package/tokens/dark.css +3 -3
- package/tokens/hover.css +32 -0
- package/tokens/interaction.css +3 -1
- package/tokens/layout.css +31 -7
- package/tokens/tokens.d.ts +58 -0
- package/tokens/tokens.js +179 -92
- package/tokens/tokens.json +327 -114
- package/tokens/typography.css +45 -15
- package/components/_cards/brand-visual.card.html +0 -43
- package/components/_cards/datatable.card.html +0 -48
- package/components/_shared/src-brand.js +0 -1
- package/components/brand/BrandVisual.d.ts +0 -17
- package/components/brand/BrandVisual.jsx +0 -29
- package/components/brand/BrandVisual.vue +0 -34
- package/components/brand/_dir.card.html +0 -13
- package/components/brand/brandMotifs.js +0 -210
- package/components/buttons/_dir.card.html +0 -13
- package/components/charts/ChartKit.vue +0 -47
- package/components/charts/_dir.card.html +0 -7
- package/components/data/DataTable.d.ts +0 -28
- package/components/data/DataTable.jsx +0 -32
- package/components/data/DataTable.vue +0 -25
- package/components/data/_dir.card.html +0 -13
- package/components/display/_dir.card.html +0 -13
- package/components/feedback/_dir.card.html +0 -13
- package/components/forms/_dir.card.html +0 -13
- package/components/icons/_dir.card.html +0 -13
- package/components/navigation/_dir.card.html +0 -13
- package/components/pipeline/_dir.card.html +0 -13
- package/components/tabs/_dir.card.html +0 -13
package/tokens/hover.css
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/* ── Hover hooks ── state signals read by component inline styles; these are not design tokens. */
|
|
2
|
+
/* Hover for controls whose rest colours are inline. Two hooks, both set a custom property that the
|
|
3
|
+
component's own inline style reads, so focus, error and selected colours (written as plain values)
|
|
4
|
+
always win over hover without !important:
|
|
5
|
+
data-field — a bordered field box (Input, Textarea, Select, Combobox, MultiSelect, DatePicker,
|
|
6
|
+
SearchInput, NumberStepper): the border steps from --border-control to --border-strong.
|
|
7
|
+
data-wash — a borderless segment inside a control (stepper − / +, pagination items): the
|
|
8
|
+
surface steps to --bg-hover, the same step as an outline or ghost Button.
|
|
9
|
+
Each hook resets itself so a hovered parent never lights a nested control. */
|
|
10
|
+
[data-field]{--field-border:initial}
|
|
11
|
+
[data-field]:hover{--field-border:var(--border-strong)}
|
|
12
|
+
[data-wash]{--wash:initial}
|
|
13
|
+
[data-wash]:hover:not(:disabled){--wash:var(--bg-hover)}
|
|
14
|
+
[data-wash="strong"]:hover:not(:disabled){--wash:var(--bg-press)} /* a control already on --bg-active */
|
|
15
|
+
/* data-ink — a text-only control (inactive tab, legend item, clear ×, copy): the ink steps to --text-heading.
|
|
16
|
+
data-check — a checkbox label: the empty box's border steps to --text-muted, like Radio.
|
|
17
|
+
data-link — an inline action link: underline appears, or thickens if it is already drawn.
|
|
18
|
+
data-thumb — a slider track: the thumb picks up the focus-ring halo.
|
|
19
|
+
Switch tracks carry their colour in --sw-track; hover mixes it one step toward the ink colour,
|
|
20
|
+
which darkens in light mode and lightens in dark. */
|
|
21
|
+
[data-row]{--row-wash:initial}
|
|
22
|
+
[data-row]:hover{--row-wash:var(--bg-inset)}
|
|
23
|
+
[data-ink]{--ink:initial;--ink-op:initial}
|
|
24
|
+
[data-ink]:hover:not(:disabled){--ink:var(--text-heading);--ink-op:1}
|
|
25
|
+
[data-check]{--check-border:initial}
|
|
26
|
+
[data-check]:hover{--check-border:var(--text-muted)}
|
|
27
|
+
[data-link]{--link-line:initial;--link-thick:initial}
|
|
28
|
+
[data-link]:hover{--link-line:underline;--link-thick:2px}
|
|
29
|
+
[data-thumb]{--thumb-ring:initial}
|
|
30
|
+
[data-thumb]:hover{--thumb-ring:0 0 0 4px var(--focus-ring),0 1px 2px rgba(0,0,0,.15)}
|
|
31
|
+
[role="switch"]:not([aria-disabled="true"]):not([aria-busy="true"]):hover,
|
|
32
|
+
[data-sw]:hover>[role="switch"]:not([aria-disabled="true"]):not([aria-busy="true"]){--sw-bg:color-mix(in srgb,var(--sw-track) 86%,var(--text-primary))}
|
package/tokens/interaction.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* ── Universal interaction layer ──
|
|
2
|
-
Rest, hover and selected states live in each component's own styles.
|
|
2
|
+
Rest, hover and selected states live in each component's own styles; field boxes and segments read the hover hooks below.
|
|
3
3
|
Press and keyboard focus are delivered here so EVERY control carries them
|
|
4
4
|
uniformly: `filter` and `outline` are never set inline, so these rules
|
|
5
5
|
compose on top of whatever background a component is showing at the time.
|
|
@@ -30,6 +30,8 @@ summary:active,
|
|
|
30
30
|
[role="treeitem"]:active,
|
|
31
31
|
[role="gridcell"]:active{filter:var(--press-filter)}
|
|
32
32
|
|
|
33
|
+
/* Hover hooks live in tokens/hover.css (state signals, not tokens). */
|
|
34
|
+
|
|
33
35
|
/* Keyboard focus — visible on :focus-visible only, so a mouse click never draws it.
|
|
34
36
|
`outline` is used (not box-shadow) so component shadows stay intact. */
|
|
35
37
|
button:focus-visible,
|
package/tokens/layout.css
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/* Keybricks spacing / radii / borders / shadows / chrome sizes */
|
|
1
|
+
/* Keybricks spacing / radii / borders / shadows / chrome sizes / size tiers */
|
|
2
2
|
:root{
|
|
3
|
-
/* Radii */
|
|
4
|
-
--radius-sm:4px; /*
|
|
5
|
-
--radius-md:8px; /* buttons, inputs, nav items, chips, 32px icon tiles */
|
|
6
|
-
--radius-lg:10px; /* cards, dropzone,
|
|
3
|
+
/* Radii — picked by element type, identical at every size tier */
|
|
4
|
+
--radius-sm:4px; /* checkbox, small toggles */
|
|
5
|
+
--radius-md:8px; /* buttons, inputs, selects, search, steppers, segmented controls, pagination items, nav items, chips, 32px icon tiles */
|
|
6
|
+
--radius-lg:10px; /* cards, dropzone, menus */
|
|
7
7
|
--radius-tile:14px;/* 40px palette icon tiles */
|
|
8
8
|
--radius-node:16px;/* canvas node cards + their 48px icon tiles */
|
|
9
9
|
--radius-full:9999px;
|
|
@@ -16,8 +16,28 @@
|
|
|
16
16
|
--ring-focus:0 0 0 2px var(--bg-surface),0 0 0 4px var(--focus-border);
|
|
17
17
|
/* Chrome sizes */
|
|
18
18
|
--sidebar-w:240px;--rail-w:64px;--topbar-h:56px;--panel-w:400px;--drawer-h:250px;
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
--h-nav-item:36px;--h-subnav-item:32px;--h-tree-item:32px;
|
|
20
|
+
/* Size tiers — one scale that every control reads. A region (app root, toolbar, filter bar, form, table,
|
|
21
|
+
dialog, drawer) declares data-size="sm" | "md" | "lg"; everything inside inherits these values, so controls
|
|
22
|
+
that share a row can never disagree. md is the default; the rules below the :root block switch the tier.
|
|
23
|
+
sm 28 · md 32 · lg 40 for controls (2.3.0: was 24 / 32 / 36); bars and rows are 8px taller; a bar inside a bordered card 16px taller. */
|
|
24
|
+
--control-h:32px; /* buttons, inputs, selects, search, steppers, segmented controls, chips, pagination items */
|
|
25
|
+
--control-text:var(--text-base);--control-leading:var(--leading-base);--control-tracking:var(--tracking-base); /* text inside controls and their labels */
|
|
26
|
+
--control-icon:16px; /* icon inside a control */
|
|
27
|
+
--control-px:12px; /* horizontal padding inside a text control or button */
|
|
28
|
+
--control-gap:8px; /* gap inside one group: label → its control, button → button */
|
|
29
|
+
--group-gap:16px; /* gap between groups in one bar: field → next field */
|
|
30
|
+
--bar-h:40px; /* toolbar, filter bar, tab bar, table row, list row */
|
|
31
|
+
--bar-card-h:48px; /* a bar inside a bordered card (table toolbar, pagination): keeps 8px from the card edge */
|
|
32
|
+
--edge-pad:16px; /* card edge → first control or cell */
|
|
33
|
+
--cell-px:12px; /* horizontal padding of a table cell */
|
|
34
|
+
--check-size:16px; /* checkbox and radio box */
|
|
35
|
+
--tag-h:24px; /* Tag */
|
|
36
|
+
--switch-w:36px;--switch-h:20px; /* Switch track */
|
|
37
|
+
/* Two-line title cell (Table column `twoLine`): row padding, title → description gap, icon tile, tile → text gap. md row = 10 + 20 + 2 + 16 + 10 = 58px */
|
|
38
|
+
--title-cell-py:10px;--title-cell-gap:2px;--title-cell-tile:32px;--title-cell-icon:16px;--title-cell-tile-r:8px;--title-cell-tile-gap:12px;
|
|
39
|
+
/* Compatibility aliases — superseded by the tier tokens above */
|
|
40
|
+
--h-button:var(--control-h);--h-input:var(--control-h);--h-button-sm:28px;
|
|
21
41
|
/* Page rhythm */
|
|
22
42
|
--page-pad-y:24px;--page-pad-x:32px;--section-gap:24px;--card-pad:21px;--card-pad-sm:17px;
|
|
23
43
|
/* Stacking */
|
|
@@ -28,3 +48,7 @@
|
|
|
28
48
|
--z-toast:80; /* @kind other */
|
|
29
49
|
--z-tooltip:100; /* @kind other */
|
|
30
50
|
}
|
|
51
|
+
/* The three tiers. Declared after :root so a tier set on <html> itself also wins. */
|
|
52
|
+
[data-size="sm"]{--control-h:28px;--control-text:var(--text-xs);--control-leading:var(--leading-xs);--control-tracking:var(--tracking-xs);--control-icon:14px;--control-px:8px;--control-gap:8px;--group-gap:12px;--bar-h:36px;--bar-card-h:44px;--edge-pad:12px;--cell-px:8px;--check-size:14px;--tag-h:20px;--switch-w:28px;--switch-h:16px;--text-code:11px;--leading-code:16px;--title-cell-py:8px;--title-cell-gap:2px;--title-cell-tile:28px;--title-cell-icon:14px;--title-cell-tile-r:8px;--title-cell-tile-gap:8px}
|
|
53
|
+
[data-size="md"]{--control-h:32px;--control-text:var(--text-base);--control-leading:var(--leading-base);--control-tracking:var(--tracking-base);--control-icon:16px;--control-px:12px;--control-gap:8px;--group-gap:16px;--bar-h:40px;--bar-card-h:48px;--edge-pad:16px;--cell-px:12px;--check-size:16px;--tag-h:24px;--switch-w:36px;--switch-h:20px;--text-code:12px;--leading-code:18px;--title-cell-py:10px;--title-cell-gap:2px;--title-cell-tile:32px;--title-cell-icon:16px;--title-cell-tile-r:8px;--title-cell-tile-gap:12px}
|
|
54
|
+
[data-size="lg"]{--control-h:40px;--control-text:var(--text-base);--control-leading:var(--leading-base);--control-tracking:var(--tracking-base);--control-icon:16px;--control-px:16px;--control-gap:8px;--group-gap:24px;--bar-h:48px;--bar-card-h:56px;--edge-pad:16px;--cell-px:16px;--check-size:16px;--tag-h:28px;--switch-w:44px;--switch-h:24px;--text-code:12px;--leading-code:18px;--title-cell-py:14px;--title-cell-gap:4px;--title-cell-tile:40px;--title-cell-icon:20px;--title-cell-tile-r:10px;--title-cell-tile-gap:12px}
|
package/tokens/tokens.d.ts
CHANGED
|
@@ -18,6 +18,8 @@ export type TokenName =
|
|
|
18
18
|
| "--amber-800"
|
|
19
19
|
| "--amber-900"
|
|
20
20
|
| "--amber-950"
|
|
21
|
+
| "--bar-card-h"
|
|
22
|
+
| "--bar-h"
|
|
21
23
|
| "--bg-active"
|
|
22
24
|
| "--bg-app"
|
|
23
25
|
| "--bg-hover"
|
|
@@ -26,6 +28,7 @@ export type TokenName =
|
|
|
26
28
|
| "--bg-raised"
|
|
27
29
|
| "--bg-scrim"
|
|
28
30
|
| "--bg-surface"
|
|
31
|
+
| "--bg-table-header"
|
|
29
32
|
| "--blue-100"
|
|
30
33
|
| "--blue-200"
|
|
31
34
|
| "--blue-300"
|
|
@@ -39,6 +42,7 @@ export type TokenName =
|
|
|
39
42
|
| "--blue-950"
|
|
40
43
|
| "--border-card"
|
|
41
44
|
| "--border-control"
|
|
45
|
+
| "--border-split"
|
|
42
46
|
| "--border-strong"
|
|
43
47
|
| "--border-subtle"
|
|
44
48
|
| "--brand-alpha-12"
|
|
@@ -58,6 +62,7 @@ export type TokenName =
|
|
|
58
62
|
| "--cat-source-bg"
|
|
59
63
|
| "--cat-transform"
|
|
60
64
|
| "--cat-transform-bg"
|
|
65
|
+
| "--cell-px"
|
|
61
66
|
| "--chart-area-alpha"
|
|
62
67
|
| "--chart-axis"
|
|
63
68
|
| "--chart-blue"
|
|
@@ -74,7 +79,15 @@ export type TokenName =
|
|
|
74
79
|
| "--chart-pos"
|
|
75
80
|
| "--chart-total"
|
|
76
81
|
| "--chart-track"
|
|
82
|
+
| "--check-size"
|
|
77
83
|
| "--checkbox-border"
|
|
84
|
+
| "--control-gap"
|
|
85
|
+
| "--control-h"
|
|
86
|
+
| "--control-icon"
|
|
87
|
+
| "--control-leading"
|
|
88
|
+
| "--control-px"
|
|
89
|
+
| "--control-text"
|
|
90
|
+
| "--control-tracking"
|
|
78
91
|
| "--cyan-100"
|
|
79
92
|
| "--cyan-200"
|
|
80
93
|
| "--cyan-300"
|
|
@@ -90,6 +103,7 @@ export type TokenName =
|
|
|
90
103
|
| "--danger-active"
|
|
91
104
|
| "--danger-bg"
|
|
92
105
|
| "--danger-soft-active"
|
|
106
|
+
| "--danger-soft-hover"
|
|
93
107
|
| "--danger-text"
|
|
94
108
|
| "--dot-neutral"
|
|
95
109
|
| "--drawer-h"
|
|
@@ -104,6 +118,7 @@ export type TokenName =
|
|
|
104
118
|
| "--ease-in-out"
|
|
105
119
|
| "--ease-out"
|
|
106
120
|
| "--edge"
|
|
121
|
+
| "--edge-pad"
|
|
107
122
|
| "--emerald-100"
|
|
108
123
|
| "--emerald-200"
|
|
109
124
|
| "--emerald-300"
|
|
@@ -119,6 +134,7 @@ export type TokenName =
|
|
|
119
134
|
| "--focus-ring"
|
|
120
135
|
| "--font-mono"
|
|
121
136
|
| "--font-sans"
|
|
137
|
+
| "--group-gap"
|
|
122
138
|
| "--h-button"
|
|
123
139
|
| "--h-button-sm"
|
|
124
140
|
| "--h-input"
|
|
@@ -152,6 +168,7 @@ export type TokenName =
|
|
|
152
168
|
| "--leading-3xl"
|
|
153
169
|
| "--leading-4xl"
|
|
154
170
|
| "--leading-base"
|
|
171
|
+
| "--leading-code"
|
|
155
172
|
| "--leading-display"
|
|
156
173
|
| "--leading-lg"
|
|
157
174
|
| "--leading-md"
|
|
@@ -273,8 +290,11 @@ export type TokenName =
|
|
|
273
290
|
| "--success-bg"
|
|
274
291
|
| "--success-strong"
|
|
275
292
|
| "--success-text"
|
|
293
|
+
| "--switch-h"
|
|
294
|
+
| "--switch-w"
|
|
276
295
|
| "--t-hover"
|
|
277
296
|
| "--t-theme"
|
|
297
|
+
| "--tag-h"
|
|
278
298
|
| "--teal-100"
|
|
279
299
|
| "--teal-200"
|
|
280
300
|
| "--teal-300"
|
|
@@ -288,11 +308,14 @@ export type TokenName =
|
|
|
288
308
|
| "--teal-950"
|
|
289
309
|
| "--text-2xl"
|
|
290
310
|
| "--text-2xs"
|
|
311
|
+
| "--text-2xs-mono"
|
|
291
312
|
| "--text-3xl"
|
|
292
313
|
| "--text-4xl"
|
|
293
314
|
| "--text-base"
|
|
294
315
|
| "--text-body"
|
|
316
|
+
| "--text-code"
|
|
295
317
|
| "--text-display"
|
|
318
|
+
| "--text-glyph-min"
|
|
296
319
|
| "--text-heading"
|
|
297
320
|
| "--text-inverse"
|
|
298
321
|
| "--text-lg"
|
|
@@ -305,6 +328,12 @@ export type TokenName =
|
|
|
305
328
|
| "--text-strong"
|
|
306
329
|
| "--text-xl"
|
|
307
330
|
| "--text-xs"
|
|
331
|
+
| "--title-cell-gap"
|
|
332
|
+
| "--title-cell-icon"
|
|
333
|
+
| "--title-cell-py"
|
|
334
|
+
| "--title-cell-tile"
|
|
335
|
+
| "--title-cell-tile-gap"
|
|
336
|
+
| "--title-cell-tile-r"
|
|
308
337
|
| "--tooltip-bg"
|
|
309
338
|
| "--tooltip-fg"
|
|
310
339
|
| "--topbar-h"
|
|
@@ -353,6 +382,8 @@ export type TokenKey =
|
|
|
353
382
|
| "amber800"
|
|
354
383
|
| "amber900"
|
|
355
384
|
| "amber950"
|
|
385
|
+
| "barCardH"
|
|
386
|
+
| "barH"
|
|
356
387
|
| "bgActive"
|
|
357
388
|
| "bgApp"
|
|
358
389
|
| "bgHover"
|
|
@@ -361,6 +392,7 @@ export type TokenKey =
|
|
|
361
392
|
| "bgRaised"
|
|
362
393
|
| "bgScrim"
|
|
363
394
|
| "bgSurface"
|
|
395
|
+
| "bgTableHeader"
|
|
364
396
|
| "blue100"
|
|
365
397
|
| "blue200"
|
|
366
398
|
| "blue300"
|
|
@@ -374,6 +406,7 @@ export type TokenKey =
|
|
|
374
406
|
| "blue950"
|
|
375
407
|
| "borderCard"
|
|
376
408
|
| "borderControl"
|
|
409
|
+
| "borderSplit"
|
|
377
410
|
| "borderStrong"
|
|
378
411
|
| "borderSubtle"
|
|
379
412
|
| "brandAlpha12"
|
|
@@ -393,6 +426,7 @@ export type TokenKey =
|
|
|
393
426
|
| "catSourceBg"
|
|
394
427
|
| "catTransform"
|
|
395
428
|
| "catTransformBg"
|
|
429
|
+
| "cellPx"
|
|
396
430
|
| "chartAreaAlpha"
|
|
397
431
|
| "chartAxis"
|
|
398
432
|
| "chartBlue"
|
|
@@ -409,7 +443,15 @@ export type TokenKey =
|
|
|
409
443
|
| "chartPos"
|
|
410
444
|
| "chartTotal"
|
|
411
445
|
| "chartTrack"
|
|
446
|
+
| "checkSize"
|
|
412
447
|
| "checkboxBorder"
|
|
448
|
+
| "controlGap"
|
|
449
|
+
| "controlH"
|
|
450
|
+
| "controlIcon"
|
|
451
|
+
| "controlLeading"
|
|
452
|
+
| "controlPx"
|
|
453
|
+
| "controlText"
|
|
454
|
+
| "controlTracking"
|
|
413
455
|
| "cyan100"
|
|
414
456
|
| "cyan200"
|
|
415
457
|
| "cyan300"
|
|
@@ -425,6 +467,7 @@ export type TokenKey =
|
|
|
425
467
|
| "dangerActive"
|
|
426
468
|
| "dangerBg"
|
|
427
469
|
| "dangerSoftActive"
|
|
470
|
+
| "dangerSoftHover"
|
|
428
471
|
| "dangerText"
|
|
429
472
|
| "dotNeutral"
|
|
430
473
|
| "drawerH"
|
|
@@ -439,6 +482,7 @@ export type TokenKey =
|
|
|
439
482
|
| "easeInOut"
|
|
440
483
|
| "easeOut"
|
|
441
484
|
| "edge"
|
|
485
|
+
| "edgePad"
|
|
442
486
|
| "emerald100"
|
|
443
487
|
| "emerald200"
|
|
444
488
|
| "emerald300"
|
|
@@ -454,6 +498,7 @@ export type TokenKey =
|
|
|
454
498
|
| "focusRing"
|
|
455
499
|
| "fontMono"
|
|
456
500
|
| "fontSans"
|
|
501
|
+
| "groupGap"
|
|
457
502
|
| "hButton"
|
|
458
503
|
| "hButtonSm"
|
|
459
504
|
| "hInput"
|
|
@@ -487,6 +532,7 @@ export type TokenKey =
|
|
|
487
532
|
| "leading3xl"
|
|
488
533
|
| "leading4xl"
|
|
489
534
|
| "leadingBase"
|
|
535
|
+
| "leadingCode"
|
|
490
536
|
| "leadingDisplay"
|
|
491
537
|
| "leadingLg"
|
|
492
538
|
| "leadingMd"
|
|
@@ -608,8 +654,11 @@ export type TokenKey =
|
|
|
608
654
|
| "successBg"
|
|
609
655
|
| "successStrong"
|
|
610
656
|
| "successText"
|
|
657
|
+
| "switchH"
|
|
658
|
+
| "switchW"
|
|
611
659
|
| "tHover"
|
|
612
660
|
| "tTheme"
|
|
661
|
+
| "tagH"
|
|
613
662
|
| "teal100"
|
|
614
663
|
| "teal200"
|
|
615
664
|
| "teal300"
|
|
@@ -623,11 +672,14 @@ export type TokenKey =
|
|
|
623
672
|
| "teal950"
|
|
624
673
|
| "text2xl"
|
|
625
674
|
| "text2xs"
|
|
675
|
+
| "text2xsMono"
|
|
626
676
|
| "text3xl"
|
|
627
677
|
| "text4xl"
|
|
628
678
|
| "textBase"
|
|
629
679
|
| "textBody"
|
|
680
|
+
| "textCode"
|
|
630
681
|
| "textDisplay"
|
|
682
|
+
| "textGlyphMin"
|
|
631
683
|
| "textHeading"
|
|
632
684
|
| "textInverse"
|
|
633
685
|
| "textLg"
|
|
@@ -640,6 +692,12 @@ export type TokenKey =
|
|
|
640
692
|
| "textStrong"
|
|
641
693
|
| "textXl"
|
|
642
694
|
| "textXs"
|
|
695
|
+
| "titleCellGap"
|
|
696
|
+
| "titleCellIcon"
|
|
697
|
+
| "titleCellPy"
|
|
698
|
+
| "titleCellTile"
|
|
699
|
+
| "titleCellTileGap"
|
|
700
|
+
| "titleCellTileR"
|
|
643
701
|
| "tooltipBg"
|
|
644
702
|
| "tooltipFg"
|
|
645
703
|
| "topbarH"
|