@keyfunc/keybricks-ds 1.0.3 → 2.1.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 +4 -4
- package/DESIGN.md +154 -53
- package/INTEGRATION.md +176 -36
- package/SKILL.md +6 -4
- package/_adherence.oxlintrc.json +183 -72
- package/_scripts/build-index.mjs +9 -0
- 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 +8 -3
- package/components/_cards/activity.card.html +2 -2
- package/components/_cards/alert.card.html +2 -2
- package/components/_cards/app-chrome.card.html +4 -4
- package/components/_cards/banner.card.html +1 -1
- package/components/_cards/breadcrumb.card.html +2 -2
- package/components/_cards/button-1-base.card.html +2 -2
- package/components/_cards/button-2-states.card.html +14 -14
- package/components/_cards/button-3-sizes-icons.card.html +1 -1
- package/components/_cards/button-4-group.card.html +5 -5
- 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 +2 -2
- package/components/_cards/charts-10-gauge.card.html +4 -4
- package/components/_cards/charts-11-funnel.card.html +2 -2
- package/components/_cards/charts-12-treemap.card.html +2 -2
- package/components/_cards/charts-14-radar.card.html +1 -1
- package/components/_cards/charts-15-distribution.card.html +1 -1
- package/components/_cards/charts-16-pareto.card.html +2 -2
- package/components/_cards/charts-17-candlestick.card.html +2 -2
- package/components/_cards/charts-18-sankey.card.html +2 -2
- package/components/_cards/charts-19-chord.card.html +2 -2
- package/components/_cards/charts-2-line.card.html +2 -2
- package/components/_cards/charts-20-sunburst.card.html +2 -2
- package/components/_cards/charts-21-worldmap.card.html +2 -2
- package/components/_cards/charts-22-gantt.card.html +2 -2
- package/components/_cards/charts-23-bar3d.card.html +2 -2
- package/components/_cards/charts-24-pie3d.card.html +2 -2
- package/components/_cards/charts-25-surface3d.card.html +2 -2
- package/components/_cards/charts-26-scatter3d.card.html +2 -2
- package/components/_cards/charts-27-ribbon3d.card.html +2 -2
- package/components/_cards/charts-3-bar.card.html +2 -2
- package/components/_cards/charts-4-barlist.card.html +2 -2
- package/components/_cards/charts-5-donut.card.html +3 -3
- package/components/_cards/charts-6-scatter.card.html +2 -2
- package/components/_cards/charts-7-heatmap.card.html +2 -2
- package/components/_cards/charts-8-waterfall.card.html +2 -2
- package/components/_cards/charts-9-bullet.card.html +2 -2
- package/components/_cards/charts-99-fullpage.card.html +5 -5
- package/components/_cards/checkbox.card.html +4 -4
- package/components/_cards/codeblock.card.html +1 -1
- package/components/_cards/combobox.card.html +3 -2
- package/components/_cards/context-menu.card.html +3 -2
- package/components/_cards/date-picker.card.html +5 -2
- package/components/_cards/diffvalue.card.html +2 -2
- package/components/_cards/divider.card.html +3 -3
- package/components/_cards/drawer.card.html +2 -2
- package/components/_cards/dropdown-menu.card.html +6 -6
- package/components/_cards/dropzone.card.html +1 -1
- package/components/_cards/empty-state.card.html +5 -5
- package/components/_cards/filter-bar.card.html +5 -5
- package/components/_cards/icon-button.card.html +2 -2
- package/components/_cards/icons-1-core.card.html +2 -2
- package/components/_cards/icons-2-feather.card.html +3 -3
- package/components/_cards/icons-3-unicons.card.html +3 -3
- 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 +2 -2
- package/components/_cards/log-viewer.card.html +2 -2
- package/components/_cards/modal.card.html +9 -9
- package/components/_cards/multi-select.card.html +3 -2
- package/components/_cards/number-stepper.card.html +3 -2
- package/components/_cards/pagination.card.html +3 -2
- package/components/_cards/people.card.html +3 -3
- package/components/_cards/pipeline-node.card.html +2 -2
- package/components/_cards/pipeline-palette.card.html +4 -4
- package/components/_cards/radio.card.html +46 -0
- package/components/_cards/search.card.html +5 -2
- package/components/_cards/segmented-control.card.html +39 -0
- package/components/_cards/select.card.html +4 -4
- package/components/_cards/slider.card.html +1 -1
- package/components/_cards/smart-table.card.html +1 -1
- package/components/_cards/spreadsheet.card.html +2 -2
- package/components/_cards/stepper.card.html +2 -2
- package/components/_cards/table.card.html +103 -0
- package/components/_cards/tabs.card.html +3 -2
- package/components/_cards/tag.card.html +5 -2
- package/components/_cards/textarea.card.html +2 -2
- package/components/_cards/timeline.card.html +1 -1
- package/components/_cards/toast.card.html +4 -4
- package/components/_cards/toggles.card.html +45 -56
- package/components/_cards/tooltip.card.html +5 -5
- package/components/_cards/tree.card.html +2 -2
- 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-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 +9 -4
- package/components/_vue/index.mjs +9 -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 +9 -7
- package/components/buttons/IconButton.vue +10 -8
- package/components/buttons/buttons.prompt.md +6 -5
- package/components/charts/Bar3D.jsx +2 -2
- package/components/charts/Bar3D.vue +2 -2
- package/components/charts/BarChart.jsx +4 -4
- package/components/charts/BarChart.vue +4 -4
- package/components/charts/BarList.jsx +1 -1
- package/components/charts/BarList.vue +1 -1
- package/components/charts/BoxPlot.jsx +1 -1
- package/components/charts/BoxPlot.vue +2 -2
- package/components/charts/BulletChart.jsx +1 -1
- package/components/charts/BulletChart.vue +1 -1
- package/components/charts/CandlestickChart.jsx +2 -2
- package/components/charts/CandlestickChart.vue +3 -3
- package/components/charts/ChartKit.jsx +5 -5
- 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 +2 -2
- package/components/charts/GanttChart.jsx +2 -2
- package/components/charts/GanttChart.vue +2 -2
- 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 +3 -3
- package/components/charts/LineChart.jsx +1 -1
- package/components/charts/LineChart.vue +3 -3
- package/components/charts/ParetoChart.jsx +3 -3
- package/components/charts/ParetoChart.vue +4 -4
- package/components/charts/PlotGrid.vue +18 -0
- package/components/charts/RadarChart.jsx +1 -1
- package/components/charts/RadarChart.vue +1 -1
- package/components/charts/Ribbon3D.jsx +2 -2
- package/components/charts/Ribbon3D.vue +2 -2
- package/components/charts/SankeyChart.jsx +2 -2
- package/components/charts/SankeyChart.vue +2 -2
- package/components/charts/Scatter3D.jsx +1 -1
- package/components/charts/Scatter3D.vue +1 -1
- package/components/charts/ScatterChart.jsx +3 -3
- package/components/charts/ScatterChart.vue +4 -4
- 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 +1 -1
- package/components/charts/Surface3D.jsx +2 -2
- package/components/charts/Surface3D.vue +2 -2
- package/components/charts/TreemapChart.jsx +2 -2
- package/components/charts/TreemapChart.vue +2 -2
- package/components/charts/WaterfallChart.jsx +2 -2
- package/components/charts/WaterfallChart.vue +3 -3
- package/components/charts/WorldMap.jsx +2 -2
- package/components/charts/WorldMap.vue +2 -2
- 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.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.jsx +3 -3
- package/components/data/KeyValue.vue +3 -3
- 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 +25 -22
- package/components/data/Spreadsheet.d.ts +2 -0
- package/components/data/Spreadsheet.jsx +12 -11
- package/components/data/Spreadsheet.vue +14 -13
- package/components/data/Table.d.ts +47 -0
- package/components/data/Table.jsx +85 -0
- package/components/data/Table.vue +63 -0
- package/components/data/data.prompt.md +3 -3
- package/components/display/Avatar.vue +3 -2
- package/components/display/AvatarGroup.vue +3 -2
- 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 +2 -1
- package/components/display/Kbd.vue +1 -1
- 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 +5 -5
- 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 +1 -1
- 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 +7 -7
- 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 +30 -0
- package/components/forms/Radio.jsx +65 -0
- package/components/forms/Radio.vue +17 -9
- package/components/forms/RadioGroup.vue +22 -4
- 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 +32 -24
- package/components/forms/Switch.jsx +85 -35
- package/components/forms/Switch.vue +57 -11
- package/components/forms/Textarea.vue +4 -4
- package/components/forms/forms.prompt.md +4 -1
- package/components/forms/input-base.js +2 -1
- package/components/index.d.ts +2 -2
- package/components/index.js +5 -5
- package/components/navigation/Breadcrumb.jsx +3 -3
- package/components/navigation/Breadcrumb.vue +4 -4
- 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 +1 -1
- package/components/navigation/Sidebar.vue +3 -3
- 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 +5 -5
- 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 +11 -4
- package/components/tabs/SegmentedControl.jsx +25 -10
- package/components/tabs/SegmentedControl.vue +19 -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 +4 -2
- package/keybricks.css +4 -0
- package/package.json +6 -3
- package/readme.md +90 -123
- package/readme.zh-CN.md +120 -0
- package/tokens/charts.css +20 -17
- package/tokens/colors.css +2 -2
- package/tokens/dark.css +2 -2
- package/tokens/hover.css +32 -0
- package/tokens/interaction.css +3 -1
- package/tokens/layout.css +29 -7
- package/tokens/tokens.d.ts +36 -0
- package/tokens/tokens.js +143 -89
- package/tokens/tokens.json +240 -106
- package/tokens/typography.css +27 -14
- 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/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,26 @@
|
|
|
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 24 · md 32 · lg 36 for controls; 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
|
+
/* Compatibility aliases — superseded by the tier tokens above */
|
|
38
|
+
--h-button:var(--control-h);--h-input:var(--control-h);--h-button-sm:24px;
|
|
21
39
|
/* Page rhythm */
|
|
22
40
|
--page-pad-y:24px;--page-pad-x:32px;--section-gap:24px;--card-pad:21px;--card-pad-sm:17px;
|
|
23
41
|
/* Stacking */
|
|
@@ -28,3 +46,7 @@
|
|
|
28
46
|
--z-toast:80; /* @kind other */
|
|
29
47
|
--z-tooltip:100; /* @kind other */
|
|
30
48
|
}
|
|
49
|
+
/* The three tiers. Declared after :root so a tier set on <html> itself also wins. */
|
|
50
|
+
[data-size="sm"]{--control-h:24px;--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:32px;--bar-card-h:40px;--edge-pad:12px;--cell-px:8px;--check-size:14px;--tag-h:20px;--switch-w:28px;--switch-h:16px}
|
|
51
|
+
[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}
|
|
52
|
+
[data-size="lg"]{--control-h:36px;--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:44px;--bar-card-h:52px;--edge-pad:16px;--cell-px:16px;--check-size:16px;--tag-h:28px;--switch-w:44px;--switch-h:24px}
|
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"
|
|
@@ -58,6 +61,7 @@ export type TokenName =
|
|
|
58
61
|
| "--cat-source-bg"
|
|
59
62
|
| "--cat-transform"
|
|
60
63
|
| "--cat-transform-bg"
|
|
64
|
+
| "--cell-px"
|
|
61
65
|
| "--chart-area-alpha"
|
|
62
66
|
| "--chart-axis"
|
|
63
67
|
| "--chart-blue"
|
|
@@ -74,7 +78,15 @@ export type TokenName =
|
|
|
74
78
|
| "--chart-pos"
|
|
75
79
|
| "--chart-total"
|
|
76
80
|
| "--chart-track"
|
|
81
|
+
| "--check-size"
|
|
77
82
|
| "--checkbox-border"
|
|
83
|
+
| "--control-gap"
|
|
84
|
+
| "--control-h"
|
|
85
|
+
| "--control-icon"
|
|
86
|
+
| "--control-leading"
|
|
87
|
+
| "--control-px"
|
|
88
|
+
| "--control-text"
|
|
89
|
+
| "--control-tracking"
|
|
78
90
|
| "--cyan-100"
|
|
79
91
|
| "--cyan-200"
|
|
80
92
|
| "--cyan-300"
|
|
@@ -90,6 +102,7 @@ export type TokenName =
|
|
|
90
102
|
| "--danger-active"
|
|
91
103
|
| "--danger-bg"
|
|
92
104
|
| "--danger-soft-active"
|
|
105
|
+
| "--danger-soft-hover"
|
|
93
106
|
| "--danger-text"
|
|
94
107
|
| "--dot-neutral"
|
|
95
108
|
| "--drawer-h"
|
|
@@ -104,6 +117,7 @@ export type TokenName =
|
|
|
104
117
|
| "--ease-in-out"
|
|
105
118
|
| "--ease-out"
|
|
106
119
|
| "--edge"
|
|
120
|
+
| "--edge-pad"
|
|
107
121
|
| "--emerald-100"
|
|
108
122
|
| "--emerald-200"
|
|
109
123
|
| "--emerald-300"
|
|
@@ -119,6 +133,7 @@ export type TokenName =
|
|
|
119
133
|
| "--focus-ring"
|
|
120
134
|
| "--font-mono"
|
|
121
135
|
| "--font-sans"
|
|
136
|
+
| "--group-gap"
|
|
122
137
|
| "--h-button"
|
|
123
138
|
| "--h-button-sm"
|
|
124
139
|
| "--h-input"
|
|
@@ -273,8 +288,11 @@ export type TokenName =
|
|
|
273
288
|
| "--success-bg"
|
|
274
289
|
| "--success-strong"
|
|
275
290
|
| "--success-text"
|
|
291
|
+
| "--switch-h"
|
|
292
|
+
| "--switch-w"
|
|
276
293
|
| "--t-hover"
|
|
277
294
|
| "--t-theme"
|
|
295
|
+
| "--tag-h"
|
|
278
296
|
| "--teal-100"
|
|
279
297
|
| "--teal-200"
|
|
280
298
|
| "--teal-300"
|
|
@@ -353,6 +371,8 @@ export type TokenKey =
|
|
|
353
371
|
| "amber800"
|
|
354
372
|
| "amber900"
|
|
355
373
|
| "amber950"
|
|
374
|
+
| "barCardH"
|
|
375
|
+
| "barH"
|
|
356
376
|
| "bgActive"
|
|
357
377
|
| "bgApp"
|
|
358
378
|
| "bgHover"
|
|
@@ -361,6 +381,7 @@ export type TokenKey =
|
|
|
361
381
|
| "bgRaised"
|
|
362
382
|
| "bgScrim"
|
|
363
383
|
| "bgSurface"
|
|
384
|
+
| "bgTableHeader"
|
|
364
385
|
| "blue100"
|
|
365
386
|
| "blue200"
|
|
366
387
|
| "blue300"
|
|
@@ -393,6 +414,7 @@ export type TokenKey =
|
|
|
393
414
|
| "catSourceBg"
|
|
394
415
|
| "catTransform"
|
|
395
416
|
| "catTransformBg"
|
|
417
|
+
| "cellPx"
|
|
396
418
|
| "chartAreaAlpha"
|
|
397
419
|
| "chartAxis"
|
|
398
420
|
| "chartBlue"
|
|
@@ -409,7 +431,15 @@ export type TokenKey =
|
|
|
409
431
|
| "chartPos"
|
|
410
432
|
| "chartTotal"
|
|
411
433
|
| "chartTrack"
|
|
434
|
+
| "checkSize"
|
|
412
435
|
| "checkboxBorder"
|
|
436
|
+
| "controlGap"
|
|
437
|
+
| "controlH"
|
|
438
|
+
| "controlIcon"
|
|
439
|
+
| "controlLeading"
|
|
440
|
+
| "controlPx"
|
|
441
|
+
| "controlText"
|
|
442
|
+
| "controlTracking"
|
|
413
443
|
| "cyan100"
|
|
414
444
|
| "cyan200"
|
|
415
445
|
| "cyan300"
|
|
@@ -425,6 +455,7 @@ export type TokenKey =
|
|
|
425
455
|
| "dangerActive"
|
|
426
456
|
| "dangerBg"
|
|
427
457
|
| "dangerSoftActive"
|
|
458
|
+
| "dangerSoftHover"
|
|
428
459
|
| "dangerText"
|
|
429
460
|
| "dotNeutral"
|
|
430
461
|
| "drawerH"
|
|
@@ -439,6 +470,7 @@ export type TokenKey =
|
|
|
439
470
|
| "easeInOut"
|
|
440
471
|
| "easeOut"
|
|
441
472
|
| "edge"
|
|
473
|
+
| "edgePad"
|
|
442
474
|
| "emerald100"
|
|
443
475
|
| "emerald200"
|
|
444
476
|
| "emerald300"
|
|
@@ -454,6 +486,7 @@ export type TokenKey =
|
|
|
454
486
|
| "focusRing"
|
|
455
487
|
| "fontMono"
|
|
456
488
|
| "fontSans"
|
|
489
|
+
| "groupGap"
|
|
457
490
|
| "hButton"
|
|
458
491
|
| "hButtonSm"
|
|
459
492
|
| "hInput"
|
|
@@ -608,8 +641,11 @@ export type TokenKey =
|
|
|
608
641
|
| "successBg"
|
|
609
642
|
| "successStrong"
|
|
610
643
|
| "successText"
|
|
644
|
+
| "switchH"
|
|
645
|
+
| "switchW"
|
|
611
646
|
| "tHover"
|
|
612
647
|
| "tTheme"
|
|
648
|
+
| "tagH"
|
|
613
649
|
| "teal100"
|
|
614
650
|
| "teal200"
|
|
615
651
|
| "teal300"
|