@keyfunc/keybricks-ds 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/DEPLOY.md +204 -0
- package/DESIGN.md +269 -0
- package/INTEGRATION.md +417 -0
- package/SKILL.md +32 -0
- package/_adherence.oxlintrc.json +1469 -0
- package/_scripts/build-index.mjs +80 -0
- package/_scripts/build-tokens.mjs +135 -0
- package/assets/icons/icon-index.js +1 -0
- package/assets/icons/icon-index.json +1 -0
- package/assets/icons/unicons-index.js +1 -0
- package/assets/icons/unicons-index.json +1 -0
- package/assets/keybricks-logo.png +0 -0
- package/components/_cards/accordion.card.html +32 -0
- package/components/_cards/action-chip.card.html +22 -0
- package/components/_cards/activity.card.html +34 -0
- package/components/_cards/alert.card.html +32 -0
- package/components/_cards/app-chrome.card.html +36 -0
- package/components/_cards/banner.card.html +21 -0
- package/components/_cards/brand-visual.card.html +43 -0
- package/components/_cards/breadcrumb.card.html +23 -0
- package/components/_cards/button-1-base.card.html +39 -0
- package/components/_cards/button-2-states.card.html +56 -0
- package/components/_cards/button-3-sizes-icons.card.html +32 -0
- package/components/_cards/button-4-group.card.html +47 -0
- package/components/_cards/canvas-zoom-controls.card.html +19 -0
- package/components/_cards/cards-indicators.card.html +59 -0
- package/components/_cards/charts-1-sparkline.card.html +55 -0
- package/components/_cards/charts-10-gauge.card.html +31 -0
- package/components/_cards/charts-11-funnel.card.html +28 -0
- package/components/_cards/charts-12-treemap.card.html +23 -0
- package/components/_cards/charts-14-radar.card.html +31 -0
- package/components/_cards/charts-15-distribution.card.html +32 -0
- package/components/_cards/charts-16-pareto.card.html +25 -0
- package/components/_cards/charts-17-candlestick.card.html +34 -0
- package/components/_cards/charts-18-sankey.card.html +29 -0
- package/components/_cards/charts-19-chord.card.html +31 -0
- package/components/_cards/charts-2-line.card.html +46 -0
- package/components/_cards/charts-20-sunburst.card.html +38 -0
- package/components/_cards/charts-21-worldmap.card.html +33 -0
- package/components/_cards/charts-22-gantt.card.html +37 -0
- package/components/_cards/charts-23-bar3d.card.html +26 -0
- package/components/_cards/charts-24-pie3d.card.html +32 -0
- package/components/_cards/charts-25-surface3d.card.html +24 -0
- package/components/_cards/charts-26-scatter3d.card.html +24 -0
- package/components/_cards/charts-27-ribbon3d.card.html +23 -0
- package/components/_cards/charts-3-bar.card.html +71 -0
- package/components/_cards/charts-4-barlist.card.html +30 -0
- package/components/_cards/charts-5-donut.card.html +35 -0
- package/components/_cards/charts-6-scatter.card.html +26 -0
- package/components/_cards/charts-7-heatmap.card.html +28 -0
- package/components/_cards/charts-8-waterfall.card.html +25 -0
- package/components/_cards/charts-9-bullet.card.html +31 -0
- package/components/_cards/charts-99-fullpage.card.html +194 -0
- package/components/_cards/checkbox.card.html +34 -0
- package/components/_cards/codeblock.card.html +19 -0
- package/components/_cards/combobox.card.html +25 -0
- package/components/_cards/context-menu.card.html +21 -0
- package/components/_cards/datatable.card.html +48 -0
- package/components/_cards/date-picker.card.html +31 -0
- package/components/_cards/diffvalue.card.html +21 -0
- package/components/_cards/divider.card.html +24 -0
- package/components/_cards/drawer.card.html +30 -0
- package/components/_cards/dropdown-menu.card.html +38 -0
- package/components/_cards/dropzone.card.html +22 -0
- package/components/_cards/empty-state.card.html +29 -0
- package/components/_cards/filter-bar.card.html +34 -0
- package/components/_cards/icon-button.card.html +27 -0
- package/components/_cards/icons-1-core.card.html +49 -0
- package/components/_cards/icons-2-feather.card.html +39 -0
- package/components/_cards/icons-3-unicons.card.html +44 -0
- package/components/_cards/input.card.html +25 -0
- package/components/_cards/kbd.card.html +20 -0
- package/components/_cards/keyvalue.card.html +23 -0
- package/components/_cards/listrow.card.html +30 -0
- package/components/_cards/loading.card.html +33 -0
- package/components/_cards/log-viewer.card.html +23 -0
- package/components/_cards/modal.card.html +35 -0
- package/components/_cards/multi-select.card.html +26 -0
- package/components/_cards/number-stepper.card.html +24 -0
- package/components/_cards/pagination.card.html +25 -0
- package/components/_cards/people.card.html +46 -0
- package/components/_cards/pipeline-node.card.html +76 -0
- package/components/_cards/pipeline-palette.card.html +54 -0
- package/components/_cards/search.card.html +23 -0
- package/components/_cards/select.card.html +23 -0
- package/components/_cards/slider.card.html +25 -0
- package/components/_cards/smart-table.card.html +37 -0
- package/components/_cards/spreadsheet.card.html +31 -0
- package/components/_cards/stepper.card.html +25 -0
- package/components/_cards/tabs.card.html +25 -0
- package/components/_cards/tag.card.html +26 -0
- package/components/_cards/textarea.card.html +27 -0
- package/components/_cards/timeline.card.html +32 -0
- package/components/_cards/toast.card.html +33 -0
- package/components/_cards/toggles.card.html +68 -0
- package/components/_cards/tooltip.card.html +22 -0
- package/components/_cards/tree.card.html +150 -0
- package/components/_shared/frame-theme.js +16 -0
- package/components/_shared/src-brand.js +1 -0
- package/components/_shared/src-buttons.js +1 -0
- package/components/_shared/src-charts.js +1 -0
- package/components/_shared/src-data.js +1 -0
- package/components/_shared/src-display.js +1 -0
- package/components/_shared/src-feedback.js +1 -0
- package/components/_shared/src-forms.js +1 -0
- package/components/_shared/src-icons.js +1 -0
- package/components/_shared/src-navigation.js +1 -0
- package/components/_shared/src-pipeline.js +1 -0
- package/components/_shared/src-tabs.js +1 -0
- package/components/_shared/svg-download.js +19 -0
- package/components/_shared/view-source.js +185 -0
- package/components/_vue/index.mjs +114 -0
- package/components/brand/BrandVisual.d.ts +17 -0
- package/components/brand/BrandVisual.jsx +29 -0
- package/components/brand/BrandVisual.vue +34 -0
- package/components/brand/_dir.card.html +13 -0
- package/components/brand/brandMotifs.js +210 -0
- package/components/buttons/ActionChip.d.ts +10 -0
- package/components/buttons/ActionChip.jsx +20 -0
- package/components/buttons/ActionChip.vue +18 -0
- package/components/buttons/Button.d.ts +40 -0
- package/components/buttons/Button.jsx +101 -0
- package/components/buttons/Button.vue +87 -0
- package/components/buttons/IconButton.d.ts +26 -0
- package/components/buttons/IconButton.jsx +28 -0
- package/components/buttons/IconButton.vue +21 -0
- package/components/buttons/_dir.card.html +13 -0
- package/components/buttons/buttons.prompt.md +19 -0
- package/components/charts/Bar3D.d.ts +15 -0
- package/components/charts/Bar3D.jsx +93 -0
- package/components/charts/Bar3D.vue +79 -0
- package/components/charts/BarChart.d.ts +23 -0
- package/components/charts/BarChart.jsx +135 -0
- package/components/charts/BarChart.vue +139 -0
- package/components/charts/BarList.d.ts +13 -0
- package/components/charts/BarList.jsx +31 -0
- package/components/charts/BarList.vue +25 -0
- package/components/charts/BoxPlot.d.ts +18 -0
- package/components/charts/BoxPlot.jsx +62 -0
- package/components/charts/BoxPlot.vue +58 -0
- package/components/charts/BulletChart.d.ts +12 -0
- package/components/charts/BulletChart.jsx +41 -0
- package/components/charts/BulletChart.vue +33 -0
- package/components/charts/CandlestickChart.d.ts +15 -0
- package/components/charts/CandlestickChart.jsx +63 -0
- package/components/charts/CandlestickChart.vue +62 -0
- package/components/charts/ChartKit.d.ts +8 -0
- package/components/charts/ChartKit.jsx +76 -0
- package/components/charts/ChartKit.vue +47 -0
- package/components/charts/ChordChart.d.ts +13 -0
- package/components/charts/ChordChart.jsx +55 -0
- package/components/charts/ChordChart.vue +54 -0
- package/components/charts/DonutChart.d.ts +15 -0
- package/components/charts/DonutChart.jsx +73 -0
- package/components/charts/DonutChart.vue +61 -0
- package/components/charts/FunnelChart.d.ts +11 -0
- package/components/charts/FunnelChart.jsx +37 -0
- package/components/charts/FunnelChart.vue +29 -0
- package/components/charts/GanttChart.d.ts +20 -0
- package/components/charts/GanttChart.jsx +80 -0
- package/components/charts/GanttChart.vue +60 -0
- package/components/charts/GaugeChart.d.ts +13 -0
- package/components/charts/GaugeChart.jsx +33 -0
- package/components/charts/GaugeChart.vue +29 -0
- package/components/charts/HeatmapChart.d.ts +13 -0
- package/components/charts/HeatmapChart.jsx +62 -0
- package/components/charts/HeatmapChart.vue +38 -0
- package/components/charts/Histogram.d.ts +16 -0
- package/components/charts/Histogram.jsx +56 -0
- package/components/charts/Histogram.vue +53 -0
- package/components/charts/LineChart.d.ts +17 -0
- package/components/charts/LineChart.jsx +84 -0
- package/components/charts/LineChart.vue +86 -0
- package/components/charts/ParetoChart.d.ts +13 -0
- package/components/charts/ParetoChart.jsx +54 -0
- package/components/charts/ParetoChart.vue +55 -0
- package/components/charts/Pie3D.d.ts +17 -0
- package/components/charts/Pie3D.jsx +145 -0
- package/components/charts/Pie3D.vue +115 -0
- package/components/charts/RadarChart.d.ts +14 -0
- package/components/charts/RadarChart.jsx +79 -0
- package/components/charts/RadarChart.vue +73 -0
- package/components/charts/Ribbon3D.d.ts +13 -0
- package/components/charts/Ribbon3D.jsx +89 -0
- package/components/charts/Ribbon3D.vue +79 -0
- package/components/charts/SankeyChart.d.ts +15 -0
- package/components/charts/SankeyChart.jsx +59 -0
- package/components/charts/SankeyChart.vue +53 -0
- package/components/charts/Scatter3D.d.ts +12 -0
- package/components/charts/Scatter3D.jsx +69 -0
- package/components/charts/Scatter3D.vue +59 -0
- package/components/charts/ScatterChart.d.ts +12 -0
- package/components/charts/ScatterChart.jsx +53 -0
- package/components/charts/ScatterChart.vue +57 -0
- package/components/charts/Sparkline.d.ts +19 -0
- package/components/charts/Sparkline.jsx +63 -0
- package/components/charts/Sparkline.vue +54 -0
- package/components/charts/SunburstChart.d.ts +12 -0
- package/components/charts/SunburstChart.jsx +61 -0
- package/components/charts/SunburstChart.vue +60 -0
- package/components/charts/Surface3D.d.ts +13 -0
- package/components/charts/Surface3D.jsx +70 -0
- package/components/charts/Surface3D.vue +63 -0
- package/components/charts/TreemapChart.d.ts +11 -0
- package/components/charts/TreemapChart.jsx +35 -0
- package/components/charts/TreemapChart.vue +27 -0
- package/components/charts/WaterfallChart.d.ts +11 -0
- package/components/charts/WaterfallChart.jsx +59 -0
- package/components/charts/WaterfallChart.vue +46 -0
- package/components/charts/WorldMap.d.ts +21 -0
- package/components/charts/WorldMap.jsx +107 -0
- package/components/charts/WorldMap.vue +73 -0
- package/components/charts/_dir.card.html +7 -0
- package/components/charts/chart-3d.js +84 -0
- package/components/charts/chart-geometry.js +223 -0
- package/components/charts/charts.prompt.md +24 -0
- package/components/data/CodeBlock.d.ts +9 -0
- package/components/data/CodeBlock.jsx +19 -0
- package/components/data/CodeBlock.vue +22 -0
- package/components/data/DataTable.d.ts +28 -0
- package/components/data/DataTable.jsx +32 -0
- package/components/data/DataTable.vue +25 -0
- package/components/data/DiffValue.d.ts +11 -0
- package/components/data/DiffValue.jsx +15 -0
- package/components/data/DiffValue.vue +13 -0
- package/components/data/FilterBar.d.ts +16 -0
- package/components/data/FilterBar.jsx +22 -0
- package/components/data/FilterBar.vue +23 -0
- package/components/data/KeyValue.d.ts +16 -0
- package/components/data/KeyValue.jsx +25 -0
- package/components/data/KeyValue.vue +26 -0
- package/components/data/ListRow.d.ts +14 -0
- package/components/data/ListRow.jsx +25 -0
- package/components/data/ListRow.vue +25 -0
- package/components/data/Pagination.d.ts +12 -0
- package/components/data/Pagination.jsx +27 -0
- package/components/data/Pagination.vue +24 -0
- package/components/data/SmartTable.d.ts +30 -0
- package/components/data/SmartTable.jsx +73 -0
- package/components/data/SmartTable.vue +74 -0
- package/components/data/Spreadsheet.d.ts +33 -0
- package/components/data/Spreadsheet.jsx +110 -0
- package/components/data/Spreadsheet.vue +95 -0
- package/components/data/_dir.card.html +13 -0
- package/components/data/data.prompt.md +33 -0
- package/components/display/Avatar.d.ts +21 -0
- package/components/display/Avatar.jsx +31 -0
- package/components/display/Avatar.vue +34 -0
- package/components/display/Badge.d.ts +27 -0
- package/components/display/Badge.jsx +40 -0
- package/components/display/Badge.vue +47 -0
- package/components/display/Card.d.ts +27 -0
- package/components/display/Card.jsx +27 -0
- package/components/display/Card.vue +28 -0
- package/components/display/Divider.d.ts +8 -0
- package/components/display/Divider.jsx +14 -0
- package/components/display/Divider.vue +13 -0
- package/components/display/Kbd.d.ts +7 -0
- package/components/display/Kbd.jsx +12 -0
- package/components/display/Kbd.vue +9 -0
- package/components/display/ProgressBar.d.ts +42 -0
- package/components/display/ProgressBar.jsx +70 -0
- package/components/display/ProgressBar.vue +69 -0
- package/components/display/Tag.d.ts +9 -0
- package/components/display/Tag.jsx +15 -0
- package/components/display/Tag.vue +15 -0
- package/components/display/_dir.card.html +13 -0
- package/components/display/display.prompt.md +30 -0
- package/components/feedback/Accordion.d.ts +13 -0
- package/components/feedback/Accordion.jsx +21 -0
- package/components/feedback/Accordion.vue +22 -0
- package/components/feedback/ActivityItem.d.ts +25 -0
- package/components/feedback/ActivityItem.jsx +39 -0
- package/components/feedback/ActivityItem.vue +46 -0
- package/components/feedback/Alert.d.ts +36 -0
- package/components/feedback/Alert.jsx +48 -0
- package/components/feedback/Alert.vue +59 -0
- package/components/feedback/Banner.d.ts +15 -0
- package/components/feedback/Banner.jsx +25 -0
- package/components/feedback/Banner.vue +25 -0
- package/components/feedback/ContextMenu.d.ts +8 -0
- package/components/feedback/ContextMenu.jsx +18 -0
- package/components/feedback/ContextMenu.vue +19 -0
- package/components/feedback/Drawer.d.ts +18 -0
- package/components/feedback/Drawer.jsx +26 -0
- package/components/feedback/Drawer.vue +24 -0
- package/components/feedback/Menu.d.ts +10 -0
- package/components/feedback/Menu.jsx +24 -0
- package/components/feedback/Menu.vue +21 -0
- package/components/feedback/Modal.d.ts +38 -0
- package/components/feedback/Modal.jsx +69 -0
- package/components/feedback/Modal.vue +65 -0
- package/components/feedback/Stepper.d.ts +9 -0
- package/components/feedback/Stepper.jsx +24 -0
- package/components/feedback/Stepper.vue +18 -0
- package/components/feedback/Timeline.d.ts +15 -0
- package/components/feedback/Timeline.jsx +27 -0
- package/components/feedback/Timeline.vue +21 -0
- package/components/feedback/_dir.card.html +13 -0
- package/components/feedback/feedback.prompt.md +35 -0
- package/components/forms/Checkbox.d.ts +13 -0
- package/components/forms/Checkbox.jsx +17 -0
- package/components/forms/Checkbox.vue +18 -0
- package/components/forms/Combobox.d.ts +13 -0
- package/components/forms/Combobox.jsx +34 -0
- package/components/forms/Combobox.vue +35 -0
- package/components/forms/DatePicker.d.ts +12 -0
- package/components/forms/DatePicker.jsx +48 -0
- package/components/forms/DatePicker.vue +46 -0
- package/components/forms/Dropzone.d.ts +20 -0
- package/components/forms/Dropzone.jsx +36 -0
- package/components/forms/Dropzone.vue +28 -0
- package/components/forms/Field.d.ts +13 -0
- package/components/forms/Field.jsx +13 -0
- package/components/forms/Field.vue +12 -0
- package/components/forms/Input.d.ts +18 -0
- package/components/forms/Input.jsx +35 -0
- package/components/forms/Input.vue +38 -0
- package/components/forms/MultiSelect.d.ts +14 -0
- package/components/forms/MultiSelect.jsx +33 -0
- package/components/forms/MultiSelect.vue +36 -0
- package/components/forms/NumberStepper.d.ts +13 -0
- package/components/forms/NumberStepper.jsx +15 -0
- package/components/forms/NumberStepper.vue +17 -0
- package/components/forms/Radio.vue +16 -0
- package/components/forms/RadioGroup.vue +11 -0
- package/components/forms/SearchInput.d.ts +12 -0
- package/components/forms/SearchInput.jsx +17 -0
- package/components/forms/SearchInput.vue +14 -0
- package/components/forms/Select.d.ts +14 -0
- package/components/forms/Select.jsx +17 -0
- package/components/forms/Select.vue +16 -0
- package/components/forms/Slider.d.ts +15 -0
- package/components/forms/Slider.jsx +21 -0
- package/components/forms/Slider.vue +23 -0
- package/components/forms/Switch.d.ts +31 -0
- package/components/forms/Switch.jsx +40 -0
- package/components/forms/Switch.vue +16 -0
- package/components/forms/_dir.card.html +13 -0
- package/components/forms/forms.prompt.md +23 -0
- package/components/icons/Icon.d.ts +19 -0
- package/components/icons/Icon.jsx +93 -0
- package/components/icons/Icon.prompt.md +8 -0
- package/components/icons/Icon.vue +12 -0
- package/components/icons/Unicon.d.ts +12 -0
- package/components/icons/Unicon.jsx +16 -0
- package/components/icons/Unicon.vue +15 -0
- package/components/icons/_dir.card.html +13 -0
- package/components/icons/feather-paths.js +2 -0
- package/components/icons/icon-paths.js +73 -0
- package/components/index.d.ts +87 -0
- package/components/index.js +110 -0
- package/components/navigation/Breadcrumb.d.ts +24 -0
- package/components/navigation/Breadcrumb.jsx +120 -0
- package/components/navigation/Breadcrumb.vue +94 -0
- package/components/navigation/DocTree.d.ts +18 -0
- package/components/navigation/DocTree.jsx +37 -0
- package/components/navigation/DocTree.vue +25 -0
- package/components/navigation/Sidebar.d.ts +29 -0
- package/components/navigation/Sidebar.jsx +75 -0
- package/components/navigation/Sidebar.vue +54 -0
- package/components/navigation/TopBar.d.ts +27 -0
- package/components/navigation/TopBar.jsx +44 -0
- package/components/navigation/TopBar.vue +51 -0
- package/components/navigation/Tree.d.ts +83 -0
- package/components/navigation/Tree.jsx +347 -0
- package/components/navigation/Tree.vue +258 -0
- package/components/navigation/_dir.card.html +13 -0
- package/components/navigation/navigation.prompt.md +22 -0
- package/components/pipeline/ConfigPanel.d.ts +18 -0
- package/components/pipeline/ConfigPanel.jsx +30 -0
- package/components/pipeline/ConfigPanel.vue +32 -0
- package/components/pipeline/DataPreview.d.ts +14 -0
- package/components/pipeline/DataPreview.jsx +24 -0
- package/components/pipeline/DataPreview.vue +21 -0
- package/components/pipeline/NodeCard.d.ts +47 -0
- package/components/pipeline/NodeCard.jsx +97 -0
- package/components/pipeline/NodeCard.vue +75 -0
- package/components/pipeline/PaletteItem.vue +15 -0
- package/components/pipeline/PaletteListItem.vue +15 -0
- package/components/pipeline/PalettePanel.d.ts +20 -0
- package/components/pipeline/PalettePanel.jsx +74 -0
- package/components/pipeline/PalettePanel.vue +45 -0
- package/components/pipeline/PipelineCanvas.d.ts +25 -0
- package/components/pipeline/PipelineCanvas.jsx +94 -0
- package/components/pipeline/PipelineCanvas.vue +73 -0
- package/components/pipeline/ZoomControls.d.ts +9 -0
- package/components/pipeline/ZoomControls.jsx +15 -0
- package/components/pipeline/ZoomControls.vue +15 -0
- package/components/pipeline/_dir.card.html +13 -0
- package/components/pipeline/pipeline.prompt.md +22 -0
- package/components/tabs/SegmentedControl.d.ts +11 -0
- package/components/tabs/SegmentedControl.jsx +21 -0
- package/components/tabs/SegmentedControl.vue +15 -0
- package/components/tabs/Tabs.d.ts +13 -0
- package/components/tabs/Tabs.jsx +52 -0
- package/components/tabs/Tabs.vue +39 -0
- package/components/tabs/ViewToggle.d.ts +8 -0
- package/components/tabs/ViewToggle.jsx +12 -0
- package/components/tabs/ViewToggle.vue +12 -0
- package/components/tabs/_dir.card.html +13 -0
- package/components/tabs/tabs.prompt.md +14 -0
- package/package.json +76 -0
- package/readme.md +150 -0
- package/styles.css +10 -0
- package/tokens/alpha.css +27 -0
- package/tokens/charts.css +55 -0
- package/tokens/colors-extended.css +40 -0
- package/tokens/colors.css +39 -0
- package/tokens/dark.css +96 -0
- package/tokens/fonts.css +4 -0
- package/tokens/interaction.css +48 -0
- package/tokens/layout.css +30 -0
- package/tokens/motion.css +22 -0
- package/tokens/tokens.d.ts +680 -0
- package/tokens/tokens.js +1018 -0
- package/tokens/tokens.json +2928 -0
- package/tokens/typography.css +22 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ContextMenu } from "./ContextMenu.jsx";
|
|
3
|
+
|
|
4
|
+
/** Click-to-open dropdown menu anchored under its trigger (vs. ContextMenu, which opens at a click point). Closes on outside click. */
|
|
5
|
+
export function Menu({ trigger, items = [], onSelect, align = "start", style }) {
|
|
6
|
+
const [open, setOpen] = React.useState(false);
|
|
7
|
+
const ref = React.useRef(null);
|
|
8
|
+
React.useEffect(() => {
|
|
9
|
+
if (!open) return;
|
|
10
|
+
const onDoc = (e) => { if (ref.current && !ref.current.contains(e.target)) setOpen(false); };
|
|
11
|
+
document.addEventListener("mousedown", onDoc);
|
|
12
|
+
return () => document.removeEventListener("mousedown", onDoc);
|
|
13
|
+
}, [open]);
|
|
14
|
+
return (
|
|
15
|
+
<div ref={ref} style={{ position: "relative", display: "inline-flex", ...style }}>
|
|
16
|
+
<span onClick={() => setOpen((o) => !o)}>{trigger}</span>
|
|
17
|
+
{open ? (
|
|
18
|
+
<div style={{ position: "absolute", top: "calc(100% + 6px)", [align === "end" ? "right" : "left"]: 0, zIndex: "var(--z-menu)" }}>
|
|
19
|
+
<ContextMenu items={items} onSelect={(l) => { setOpen(false); onSelect && onSelect(l); }} />
|
|
20
|
+
</div>
|
|
21
|
+
) : null}
|
|
22
|
+
</div>
|
|
23
|
+
);
|
|
24
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { ref, onMounted, onUnmounted } from 'vue'
|
|
3
|
+
import ContextMenu from './ContextMenu.vue'
|
|
4
|
+
// Click-to-open dropdown menu anchored under its trigger (vs. ContextMenu, which opens at a click point). Closes on outside click.
|
|
5
|
+
const props = defineProps({ items: { type: Array, default: () => [] }, align: { type: String, default: 'start' }, style: Object })
|
|
6
|
+
const emit = defineEmits(['select'])
|
|
7
|
+
const open = ref(false)
|
|
8
|
+
const root = ref(null)
|
|
9
|
+
function onDoc(e) { if (root.value && !root.value.contains(e.target)) open.value = false }
|
|
10
|
+
onMounted(() => document.addEventListener('mousedown', onDoc))
|
|
11
|
+
onUnmounted(() => document.removeEventListener('mousedown', onDoc))
|
|
12
|
+
function select(l) { open.value = false; emit('select', l) }
|
|
13
|
+
</script>
|
|
14
|
+
<template>
|
|
15
|
+
<div ref="root" :style="{ position: 'relative', display: 'inline-flex', ...style }">
|
|
16
|
+
<span @click="open = !open"><slot name="trigger" /></span>
|
|
17
|
+
<div v-if="open" :style="{ position: 'absolute', top: 'calc(100% + 6px)', [align === 'end' ? 'right' : 'left']: 0, zIndex: 'var(--z-menu)' }">
|
|
18
|
+
<ContextMenu :items="items" @select="select" />
|
|
19
|
+
</div>
|
|
20
|
+
</div>
|
|
21
|
+
</template>
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
/** Hover tooltip (11px, inverted surface). Addition — not in the source file. */
|
|
3
|
+
export interface TooltipProps {
|
|
4
|
+
label?: string;
|
|
5
|
+
placement?: "top" | "bottom" | "left" | "right";
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
style?: React.CSSProperties;
|
|
8
|
+
}
|
|
9
|
+
export declare function Tooltip(props: TooltipProps): JSX.Element;
|
|
10
|
+
/** Centered dialog with scrim, title/subtitle, close, footer slot. Addition. */
|
|
11
|
+
export interface ModalProps {
|
|
12
|
+
open?: boolean;
|
|
13
|
+
title?: string;
|
|
14
|
+
subtitle?: string;
|
|
15
|
+
onClose?: () => void;
|
|
16
|
+
/** Right-aligned footer buttons */
|
|
17
|
+
footer?: React.ReactNode;
|
|
18
|
+
width?: number;
|
|
19
|
+
children?: React.ReactNode;
|
|
20
|
+
style?: React.CSSProperties;
|
|
21
|
+
}
|
|
22
|
+
export declare function Modal(props: ModalProps): JSX.Element;
|
|
23
|
+
/** Single toast notification. Addition. */
|
|
24
|
+
export interface ToastProps {
|
|
25
|
+
tone?: "success" | "danger" | "warning" | "info";
|
|
26
|
+
title?: string;
|
|
27
|
+
meta?: string;
|
|
28
|
+
onClose?: () => void;
|
|
29
|
+
style?: React.CSSProperties;
|
|
30
|
+
}
|
|
31
|
+
export declare function Toast(props: ToastProps): JSX.Element;
|
|
32
|
+
/** Fixed bottom-right toast stack. */
|
|
33
|
+
export interface ToastStackProps {
|
|
34
|
+
toasts?: { id: string | number; tone?: string; title?: string; meta?: string }[];
|
|
35
|
+
onDismiss?: (id: string | number) => void;
|
|
36
|
+
style?: React.CSSProperties;
|
|
37
|
+
}
|
|
38
|
+
export declare function ToastStack(props: ToastStackProps): JSX.Element;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Icon } from "../icons/Icon.jsx";
|
|
3
|
+
import { IconButton } from "../buttons/IconButton.jsx";
|
|
4
|
+
|
|
5
|
+
/** Hover tooltip — 11px, inverted surface, 6px offset. Wraps its children. */
|
|
6
|
+
export function Tooltip({ label, placement = "top", children, style }) {
|
|
7
|
+
const [show, setShow] = React.useState(false);
|
|
8
|
+
const pos = {
|
|
9
|
+
top: { bottom: "100%", left: "50%", transform: "translateX(-50%)", marginBottom: 6 },
|
|
10
|
+
bottom: { top: "100%", left: "50%", transform: "translateX(-50%)", marginTop: 6 },
|
|
11
|
+
left: { right: "100%", top: "50%", transform: "translateY(-50%)", marginRight: 6 },
|
|
12
|
+
right: { left: "100%", top: "50%", transform: "translateY(-50%)", marginLeft: 6 },
|
|
13
|
+
}[placement];
|
|
14
|
+
return (
|
|
15
|
+
<span style={{ position: "relative", display: "inline-flex", ...style }} onMouseEnter={() => setShow(true)} onMouseLeave={() => setShow(false)}>
|
|
16
|
+
{children}
|
|
17
|
+
{show ? (
|
|
18
|
+
<span style={{ position: "absolute", zIndex: "var(--z-tooltip)", whiteSpace: "nowrap", background: "var(--tooltip-bg)", color: "var(--tooltip-fg)", borderRadius: "var(--radius-md)", padding: "5px 8px", fontFamily: "var(--font-sans)", fontSize: "var(--text-xs)", lineHeight: "var(--leading-xs)", letterSpacing: "var(--tracking-xs)", boxShadow: "var(--shadow-menu)", pointerEvents: "none", animation: "kb-fade-in var(--dur-fast) var(--ease-out)", ...pos }}>{label}</span>
|
|
19
|
+
) : null}
|
|
20
|
+
</span>
|
|
21
|
+
);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/** Centered modal dialog with scrim. width defaults to 440. */
|
|
25
|
+
export function Modal({ open, title, subtitle, onClose, footer, width = 440, children, style }) {
|
|
26
|
+
if (!open) return null;
|
|
27
|
+
return (
|
|
28
|
+
<div style={{ position: "fixed", inset: 0, zIndex: "var(--z-modal)", background: "var(--bg-scrim)", display: "flex", alignItems: "center", justifyContent: "center", animation: "kb-fade-in var(--dur-fast) var(--ease-out)" }} onClick={onClose}>
|
|
29
|
+
<div onClick={(e) => e.stopPropagation()}
|
|
30
|
+
style={{ width, maxWidth: "92vw", background: "var(--bg-raised)", borderRadius: "var(--radius-lg)", border: "1px solid var(--border-card)", boxShadow: "var(--shadow-modal)", animation: "kb-rise var(--dur) var(--ease-out)", ...style }}>
|
|
31
|
+
<div style={{ display: "flex", alignItems: "flex-start", justifyContent: "space-between", padding: "17px 17px 0" }}>
|
|
32
|
+
<div style={{ display: "flex", flexDirection: "column", gap: 4 }}>
|
|
33
|
+
<span style={{ fontFamily: "var(--font-sans)", fontWeight: "var(--weight-semibold)", fontSize: "var(--text-md)", lineHeight: "var(--leading-md)", letterSpacing: "var(--tracking-md)", color: "var(--text-heading)" }}>{title}</span>
|
|
34
|
+
{subtitle ? <span style={{ fontFamily: "var(--font-sans)", fontSize: "var(--text-sm)", lineHeight: "var(--leading-sm)", color: "var(--text-secondary)" }}>{subtitle}</span> : null}
|
|
35
|
+
</div>
|
|
36
|
+
<IconButton icon="x" size="md" onClick={onClose} label="Close" />
|
|
37
|
+
</div>
|
|
38
|
+
{children ? <div style={{ padding: "16px 17px 0" }}>{children}</div> : null}
|
|
39
|
+
<div style={{ display: "flex", justifyContent: "flex-end", gap: 8, padding: 17 }}>{footer}</div>
|
|
40
|
+
</div>
|
|
41
|
+
</div>
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
const toastTones = { success: { icon: "circle-check", color: "var(--success-strong)" }, danger: { icon: "triangle-alert", color: "var(--danger)" }, warning: { icon: "triangle-alert", color: "var(--warning)" }, info: { icon: "info", color: "var(--action-primary)" } };
|
|
46
|
+
|
|
47
|
+
/** Single toast row. */
|
|
48
|
+
export function Toast({ tone = "success", title, meta, onClose, style }) {
|
|
49
|
+
const t = toastTones[tone];
|
|
50
|
+
return (
|
|
51
|
+
<div style={{ display: "flex", alignItems: "flex-start", gap: 10, minWidth: 280, maxWidth: 380, background: "var(--bg-raised)", border: "1px solid var(--border-card)", borderRadius: "var(--radius-lg)", boxShadow: "var(--shadow-menu)", padding: "12px 12px 12px 14px", animation: "kb-toast-in var(--dur) var(--ease-out)", ...style }}>
|
|
52
|
+
<span style={{ color: t.color, display: "inline-flex", marginTop: 1 }}><Icon name={t.icon} size={16} /></span>
|
|
53
|
+
<div style={{ display: "flex", flexDirection: "column", flex: 1, minWidth: 0 }}>
|
|
54
|
+
<span style={{ fontFamily: "var(--font-sans)", fontWeight: "var(--weight-medium)", fontSize: "var(--text-base)", lineHeight: "var(--leading-base)", letterSpacing: "var(--tracking-base)", color: "var(--text-heading)" }}>{title}</span>
|
|
55
|
+
{meta ? <span style={{ fontFamily: "var(--font-sans)", fontSize: "var(--text-sm)", lineHeight: "var(--leading-sm)", color: "var(--text-secondary)" }}>{meta}</span> : null}
|
|
56
|
+
</div>
|
|
57
|
+
{onClose ? <IconButton icon="x" size="xs" muted onClick={onClose} label="Dismiss" /> : null}
|
|
58
|
+
</div>
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/** Fixed bottom-right stack of toasts. */
|
|
63
|
+
export function ToastStack({ toasts = [], onDismiss, style }) {
|
|
64
|
+
return (
|
|
65
|
+
<div style={{ position: "fixed", right: 24, bottom: 24, zIndex: "var(--z-toast)", display: "flex", flexDirection: "column", gap: 8, ...style }}>
|
|
66
|
+
{toasts.map((t) => <Toast key={t.id} tone={t.tone} title={t.title} meta={t.meta} onClose={() => onDismiss && onDismiss(t.id)} />)}
|
|
67
|
+
</div>
|
|
68
|
+
);
|
|
69
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { ref, computed } from 'vue'
|
|
3
|
+
// Tooltip — hover tooltip — 11px, inverted surface, 6px offset. Wraps its children.
|
|
4
|
+
const props = defineProps({ label: String, placement: { type: String, default: 'top' }, style: Object })
|
|
5
|
+
const show = ref(false)
|
|
6
|
+
const pos = computed(() => ({
|
|
7
|
+
top: { bottom: '100%', left: '50%', transform: 'translateX(-50%)', marginBottom: 6 },
|
|
8
|
+
bottom: { top: '100%', left: '50%', transform: 'translateX(-50%)', marginTop: 6 },
|
|
9
|
+
left: { right: '100%', top: '50%', transform: 'translateY(-50%)', marginRight: 6 },
|
|
10
|
+
right: { left: '100%', top: '50%', transform: 'translateY(-50%)', marginLeft: 6 },
|
|
11
|
+
}[props.placement]))
|
|
12
|
+
</script>
|
|
13
|
+
<template>
|
|
14
|
+
<span :style="{ position: 'relative', display: 'inline-flex', ...style }" @mouseenter="show = true" @mouseleave="show = false">
|
|
15
|
+
<slot />
|
|
16
|
+
<span v-if="show" :style="{ position: 'absolute', zIndex: 'var(--z-tooltip)', whiteSpace: 'nowrap', background: 'var(--tooltip-bg)', color: 'var(--tooltip-fg)', borderRadius: 'var(--radius-md)', padding: '5px 8px', fontFamily: 'var(--font-sans)', fontSize: 'var(--text-xs)', lineHeight: 'var(--leading-xs)', letterSpacing: 'var(--tracking-xs)', boxShadow: 'var(--shadow-menu)', pointerEvents: 'none', animation: 'kb-fade-in var(--dur-fast) var(--ease-out)', ...pos }">{{ label }}</span>
|
|
17
|
+
</span>
|
|
18
|
+
</template>
|
|
19
|
+
|
|
20
|
+
<!-- Modal — centered modal dialog with scrim. width defaults to 440. -->
|
|
21
|
+
<!--
|
|
22
|
+
<script setup name="Modal">
|
|
23
|
+
import IconButton from '../buttons/IconButton.vue'
|
|
24
|
+
defineProps({ open: Boolean, title: String, subtitle: String, width: { type: Number, default: 440 }, style: Object })
|
|
25
|
+
const emit = defineEmits(['close'])
|
|
26
|
+
</script>
|
|
27
|
+
<template>
|
|
28
|
+
<div v-if="open" style="position:fixed;inset:0;z-index:var(--z-modal);background:var(--bg-scrim);display:flex;align-items:center;justify-content:center;animation:kb-fade-in var(--dur-fast) var(--ease-out)" @click="emit('close')">
|
|
29
|
+
<div @click.stop :style="{ width, maxWidth: '92vw', background: 'var(--bg-raised)', borderRadius: 'var(--radius-lg)', border: '1px solid var(--border-card)', boxShadow: 'var(--shadow-modal)', animation: 'kb-rise var(--dur) var(--ease-out)', ...style }">
|
|
30
|
+
<div style="display:flex;align-items:flex-start;justify-content:space-between;padding:17px 17px 0">
|
|
31
|
+
<div style="display:flex;flex-direction:column;gap:4px">
|
|
32
|
+
<span style="font-family:var(--font-sans);font-weight:var(--weight-semibold);font-size:var(--text-md);line-height:var(--leading-md);letter-spacing:var(--tracking-md);color:var(--text-heading)">{{ title }}</span>
|
|
33
|
+
<span v-if="subtitle" style="font-family:var(--font-sans);font-size:var(--text-sm);line-height:var(--leading-sm);color:var(--text-secondary)">{{ subtitle }}</span>
|
|
34
|
+
</div>
|
|
35
|
+
<IconButton icon="x" size="md" label="Close" @click="emit('close')" />
|
|
36
|
+
</div>
|
|
37
|
+
<div v-if="$slots.default" style="padding:16px 17px 0"><slot /></div>
|
|
38
|
+
<div style="display:flex;justify-content:flex-end;gap:8px;padding:17px"><slot name="footer" /></div>
|
|
39
|
+
</div>
|
|
40
|
+
</div>
|
|
41
|
+
</template>
|
|
42
|
+
-->
|
|
43
|
+
|
|
44
|
+
<!-- Toast — single toast row. -->
|
|
45
|
+
<!--
|
|
46
|
+
<script setup name="Toast">
|
|
47
|
+
import { computed } from 'vue'
|
|
48
|
+
import Icon from '../icons/Icon.vue'
|
|
49
|
+
import IconButton from '../buttons/IconButton.vue'
|
|
50
|
+
const toastTones = { success: { icon: 'circle-check', color: 'var(--success-strong)' }, danger: { icon: 'triangle-alert', color: 'var(--danger)' }, warning: { icon: 'triangle-alert', color: 'var(--warning)' }, info: { icon: 'info', color: 'var(--action-primary)' } }
|
|
51
|
+
const props = defineProps({ tone: { type: String, default: 'success' }, title: String, meta: String, dismissible: Boolean, style: Object })
|
|
52
|
+
const emit = defineEmits(['close'])
|
|
53
|
+
const t = computed(() => toastTones[props.tone])
|
|
54
|
+
</script>
|
|
55
|
+
<template>
|
|
56
|
+
<div :style="{ display: 'flex', alignItems: 'flex-start', gap: 10, minWidth: 280, maxWidth: 380, background: 'var(--bg-raised)', border: '1px solid var(--border-card)', borderRadius: 'var(--radius-lg)', boxShadow: 'var(--shadow-menu)', padding: '12px 12px 12px 14px', animation: 'kb-toast-in var(--dur) var(--ease-out)', ...style }">
|
|
57
|
+
<span :style="{ color: t.color, display: 'inline-flex', marginTop: 1 }"><Icon :name="t.icon" :size="16" /></span>
|
|
58
|
+
<div style="display:flex;flex-direction:column;flex:1;min-width:0">
|
|
59
|
+
<span style="font-family:var(--font-sans);font-weight:var(--weight-medium);font-size:var(--text-base);line-height:var(--leading-base);letter-spacing:var(--tracking-base);color:var(--text-heading)">{{ title }}</span>
|
|
60
|
+
<span v-if="meta" style="font-family:var(--font-sans);font-size:var(--text-sm);line-height:var(--leading-sm);color:var(--text-secondary)">{{ meta }}</span>
|
|
61
|
+
</div>
|
|
62
|
+
<IconButton v-if="dismissible" icon="x" size="xs" muted label="Dismiss" @click="emit('close')" />
|
|
63
|
+
</div>
|
|
64
|
+
</template>
|
|
65
|
+
-->
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
/** Horizontal wizard stepper — 32px circles (done green + check, current blue, pending outlined), 11px labels, hairline connectors. */
|
|
3
|
+
export interface StepperProps {
|
|
4
|
+
steps?: { label: string; icon?: string }[];
|
|
5
|
+
/** Index of the current step */
|
|
6
|
+
current?: number;
|
|
7
|
+
style?: React.CSSProperties;
|
|
8
|
+
}
|
|
9
|
+
export declare function Stepper(props: StepperProps): JSX.Element;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Icon } from "../icons/Icon.jsx";
|
|
3
|
+
|
|
4
|
+
/** Wizard stepper (Upload & Parse → ... → Results). steps: [{label, icon}]; current index; connectors hairline #e5e5e5. */
|
|
5
|
+
export function Stepper({ steps = [], current = 0, style }) {
|
|
6
|
+
return (
|
|
7
|
+
<div style={{ display: "flex", alignItems: "flex-start", ...style }}>
|
|
8
|
+
{steps.map((s, i) => {
|
|
9
|
+
const done = i < current, is = i === current;
|
|
10
|
+
return (
|
|
11
|
+
<React.Fragment key={s.label}>
|
|
12
|
+
{i > 0 ? <div style={{ flex: 1, height: 2, background: "var(--track)", marginTop: 15.25, marginLeft: 12, marginRight: 12, minWidth: 24 }} /> : null}
|
|
13
|
+
<div style={{ display: "flex", flexDirection: "column", alignItems: "center", gap: 8, flexShrink: 0 }}>
|
|
14
|
+
<span style={{ width: 32, height: 32, borderRadius: "var(--radius-full)", boxSizing: "border-box", display: "inline-flex", alignItems: "center", justifyContent: "center", background: done ? "var(--success)" : is ? "var(--action-primary)" : "var(--bg-surface)", border: done || is ? "none" : "2px solid var(--track)", color: done || is ? "var(--on-accent)" : "var(--text-muted)" }}>
|
|
15
|
+
<Icon name={done ? "check" : s.icon || "file"} size={16} />
|
|
16
|
+
</span>
|
|
17
|
+
<span style={{ fontFamily: "var(--font-sans)", fontSize: "var(--text-xs)", lineHeight: "var(--leading-xs)", letterSpacing: "var(--tracking-xs)", fontWeight: is ? "var(--weight-medium)" : "var(--weight-regular)", color: is ? "var(--text-heading)" : "var(--text-secondary)", whiteSpace: "nowrap" }}>{s.label}</span>
|
|
18
|
+
</div>
|
|
19
|
+
</React.Fragment>
|
|
20
|
+
);
|
|
21
|
+
})}
|
|
22
|
+
</div>
|
|
23
|
+
);
|
|
24
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import Icon from '../icons/Icon.vue'
|
|
3
|
+
// Wizard stepper (Upload & Parse → ... → Results). steps: [{label, icon}]; current index; connectors hairline.
|
|
4
|
+
defineProps({ steps: { type: Array, default: () => [] }, current: { type: Number, default: 0 }, style: Object })
|
|
5
|
+
</script>
|
|
6
|
+
<template>
|
|
7
|
+
<div :style="{ display: 'flex', alignItems: 'flex-start', ...style }">
|
|
8
|
+
<template v-for="(s, i) in steps" :key="s.label">
|
|
9
|
+
<div v-if="i > 0" style="flex:1;height:2px;background:var(--track);margin-top:15.25px;margin-left:12px;margin-right:12px;min-width:24px" />
|
|
10
|
+
<div style="display:flex;flex-direction:column;align-items:center;gap:8px;flex-shrink:0">
|
|
11
|
+
<span :style="{ width: 32, height: 32, borderRadius: 'var(--radius-full)', boxSizing: 'border-box', display: 'inline-flex', alignItems: 'center', justifyContent: 'center', background: i < current ? 'var(--success)' : i === current ? 'var(--action-primary)' : 'var(--bg-surface)', border: (i < current || i === current) ? 'none' : '2px solid var(--track)', color: (i < current || i === current) ? 'var(--on-accent)' : 'var(--text-muted)' }">
|
|
12
|
+
<Icon :name="i < current ? 'check' : (s.icon || 'file')" :size="16" />
|
|
13
|
+
</span>
|
|
14
|
+
<span :style="{ fontFamily: 'var(--font-sans)', fontSize: 'var(--text-xs)', lineHeight: 'var(--leading-xs)', letterSpacing: 'var(--tracking-xs)', fontWeight: i === current ? 'var(--weight-medium)' : 'var(--weight-regular)', color: i === current ? 'var(--text-heading)' : 'var(--text-secondary)', whiteSpace: 'nowrap' }">{{ s.label }}</span>
|
|
15
|
+
</div>
|
|
16
|
+
</template>
|
|
17
|
+
</div>
|
|
18
|
+
</template>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
|
|
3
|
+
export interface TimelineItem {
|
|
4
|
+
icon?: string;
|
|
5
|
+
tone?: "success" | "danger" | "warning" | "info" | "neutral";
|
|
6
|
+
title: string;
|
|
7
|
+
meta?: string;
|
|
8
|
+
body?: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/** Vertical activity timeline: outlined icon nodes on a hairline spine with title/meta/body per event. */
|
|
12
|
+
export interface TimelineProps {
|
|
13
|
+
items?: TimelineItem[];
|
|
14
|
+
style?: React.CSSProperties;
|
|
15
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Icon } from "../icons/Icon.jsx";
|
|
3
|
+
|
|
4
|
+
const tlTones = { success: "var(--success)", danger: "var(--danger)", warning: "var(--warning)", info: "var(--action-primary)", neutral: "var(--dot-neutral)" };
|
|
5
|
+
|
|
6
|
+
/** Vertical activity timeline (SLDS pattern): icon nodes on a hairline spine, 13px/500 title + 12px meta + optional body, newest first. items: [{icon,tone,title,meta,body}]. */
|
|
7
|
+
export function Timeline({ items = [], style }) {
|
|
8
|
+
return (
|
|
9
|
+
<div style={{ display: "flex", flexDirection: "column", ...style }}>
|
|
10
|
+
{items.map((it, i) => (
|
|
11
|
+
<div key={i} style={{ display: "flex", gap: 12 }}>
|
|
12
|
+
<div style={{ display: "flex", flexDirection: "column", alignItems: "center", flexShrink: 0 }}>
|
|
13
|
+
<span style={{ width: 26, height: 26, borderRadius: "var(--radius-full)", background: "var(--bg-surface)", border: `1.5px solid ${tlTones[it.tone || "neutral"]}`, color: tlTones[it.tone || "neutral"], display: "inline-flex", alignItems: "center", justifyContent: "center", boxSizing: "border-box", flexShrink: 0 }}>
|
|
14
|
+
<Icon name={it.icon || "clock"} size={13} />
|
|
15
|
+
</span>
|
|
16
|
+
{i < items.length - 1 && <span style={{ width: 1.5, flex: 1, minHeight: 14, background: "var(--border-control)" }}></span>}
|
|
17
|
+
</div>
|
|
18
|
+
<div style={{ display: "flex", flexDirection: "column", gap: 2, paddingBottom: i < items.length - 1 ? 18 : 0, minWidth: 0, paddingTop: 3 }}>
|
|
19
|
+
<span style={{ fontFamily: "var(--font-sans)", fontWeight: "var(--weight-medium)", fontSize: "var(--text-base)", lineHeight: "var(--leading-base)", letterSpacing: "var(--tracking-base)", color: "var(--text-heading)" }}>{it.title}</span>
|
|
20
|
+
{it.meta && <span style={{ fontFamily: "var(--font-sans)", fontSize: "var(--text-xs)", lineHeight: "var(--leading-xs)", letterSpacing: "var(--tracking-xs)", color: "var(--text-muted)" }}>{it.meta}</span>}
|
|
21
|
+
{it.body && <span style={{ fontFamily: "var(--font-sans)", fontSize: "var(--text-sm)", lineHeight: "var(--leading-sm)", color: "var(--text-body)", paddingTop: 4 }}>{it.body}</span>}
|
|
22
|
+
</div>
|
|
23
|
+
</div>
|
|
24
|
+
))}
|
|
25
|
+
</div>
|
|
26
|
+
);
|
|
27
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import Icon from '../icons/Icon.vue'
|
|
3
|
+
const tlTones = { success: 'var(--success)', danger: 'var(--danger)', warning: 'var(--warning)', info: 'var(--action-primary)', neutral: 'var(--dot-neutral)' }
|
|
4
|
+
// Vertical activity timeline: outlined icon nodes on a hairline spine. items: [{icon,tone,title,meta,body}].
|
|
5
|
+
defineProps({ items: { type: Array, default: () => [] }, style: Object })
|
|
6
|
+
</script>
|
|
7
|
+
<template>
|
|
8
|
+
<div :style="{ display: 'flex', flexDirection: 'column', ...style }">
|
|
9
|
+
<div v-for="(it, i) in items" :key="i" style="display:flex;gap:12px">
|
|
10
|
+
<div style="display:flex;flex-direction:column;align-items:center;flex-shrink:0">
|
|
11
|
+
<span :style="{ width: '26px', height: '26px', borderRadius: 'var(--radius-full)', background: 'var(--bg-surface)', border: `1.5px solid ${tlTones[it.tone || 'neutral']}`, color: tlTones[it.tone || 'neutral'], display: 'inline-flex', alignItems: 'center', justifyContent: 'center', boxSizing: 'border-box' }"><Icon :name="it.icon || 'clock'" :size="13" /></span>
|
|
12
|
+
<span v-if="i < items.length - 1" style="width:1.5px;flex:1;min-height:14px;background:var(--border-control)" />
|
|
13
|
+
</div>
|
|
14
|
+
<div :style="{ display: 'flex', flexDirection: 'column', gap: '2px', paddingBottom: i < items.length - 1 ? '18px' : 0, minWidth: 0, paddingTop: '3px' }">
|
|
15
|
+
<span style="font-family:var(--font-sans);font-weight:var(--weight-medium);font-size:var(--text-base);color:var(--text-heading)">{{ it.title }}</span>
|
|
16
|
+
<span v-if="it.meta" style="font-family:var(--font-sans);font-size:var(--text-xs);color:var(--text-muted)">{{ it.meta }}</span>
|
|
17
|
+
<span v-if="it.body" style="font-family:var(--font-sans);font-size:var(--text-sm);line-height:var(--leading-sm);color:var(--text-body);padding-top:4px">{{ it.body }}</span>
|
|
18
|
+
</div>
|
|
19
|
+
</div>
|
|
20
|
+
</div>
|
|
21
|
+
</template>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!-- @dsCard group="Directory Index" viewport="700x70" name="Feedback dir" subtitle="Full cards: Components → Accordion / Overlays / States / etc." -->
|
|
2
|
+
<!DOCTYPE html>
|
|
3
|
+
<html><head><meta charset="utf-8"><link rel="stylesheet" href="../../styles.css">
|
|
4
|
+
<script src="https://unpkg.com/react@18.3.1/umd/react.development.js" integrity="sha384-hD6/rw4ppMLGNu3tX5cjIb+uRZ7UkRJ6BPkLpg4hAu/6onKUg4lLsHAs9EBPT82L" crossorigin="anonymous"></script>
|
|
5
|
+
<script src="https://unpkg.com/react-dom@18.3.1/umd/react-dom.development.js" integrity="sha384-u6aeetuaXnQ38mYT8rp6sbXaQe3NL9t+IBXmnYxwkUI2Hw4bsp2Wvmx4yRQF1uAm" crossorigin="anonymous"></script>
|
|
6
|
+
<script src="https://unpkg.com/@babel/standalone@7.29.0/babel.min.js" integrity="sha384-m08KidiNqLdpJqLq95G/LEi8Qvjl/xUYll3QILypMoQ65QorJ9Lvtp2RXYGBFj1y" crossorigin="anonymous"></script>
|
|
7
|
+
<script src="../../_ds_bundle.js"></script>
|
|
8
|
+
<style>body{margin:0;background:var(--bg-surface);padding:16px;font-family:var(--font-sans)}</style></head>
|
|
9
|
+
<body><div id="root"></div>
|
|
10
|
+
<script type="text/babel">
|
|
11
|
+
const { Alert } = window.KeybricksDesignSystem_71231a;
|
|
12
|
+
ReactDOM.createRoot(document.getElementById("root")).render(<Alert tone="info" title="See Components tab for full states"/>);
|
|
13
|
+
</script></body></html>
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
Feedback & flow: `Stepper` (wizard circles), `ContextMenu`, `ActivityItem`/`DotActivity` (feeds), `LogViewer` (mono logs).
|
|
2
|
+
|
|
3
|
+
```jsx
|
|
4
|
+
<Stepper current={1} steps={[{label:"Upload & Parse",icon:"upload"},{label:"Comparison",icon:"file-text"},{label:"Confirmation",icon:"check"},{label:"Execution",icon:"play"},{label:"Results",icon:"eye"}]}/>
|
|
5
|
+
<ContextMenu items={[{label:"Preview",icon:"eye"},{label:"Duplicate",icon:"copy"},{label:"Delete",icon:"trash-2",danger:true}]}/>
|
|
6
|
+
<ActivityItem title="Model Integration updated" meta="财务分析 • 2 hours ago" action="Open"/>
|
|
7
|
+
<LogViewer lines={["[14:30] Task started: Import"]}/>
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
Additions (not in the source file): `Tooltip`, `Modal`, `Toast`/`ToastStack`, `Alert`, `EmptyState`, `Skeleton`, `Spinner`.
|
|
11
|
+
|
|
12
|
+
```jsx
|
|
13
|
+
<Tooltip label="Run a test execution"><Button variant="ghost" icon="play">Run Test</Button></Tooltip>
|
|
14
|
+
<Modal open={o} title="Delete node?" subtitle="This removes its 2 edges." onClose={close}
|
|
15
|
+
footer={<><Button variant="outline" size="sm" onClick={close}>Cancel</Button><Button size="sm" style={{background:"var(--danger)"}}>Delete Node</Button></>}/>
|
|
16
|
+
<ToastStack toasts={toasts} onDismiss={dismiss}/>
|
|
17
|
+
<Alert tone="warning" title="4 configurations differ">Review before continuing.</Alert>
|
|
18
|
+
<EmptyState icon="file-text" title="No documents yet" hint="..." action={<Button icon="plus" size="sm">New Document</Button>}/>
|
|
19
|
+
<Skeleton width={140} height={13}/> <Spinner/>
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
`Menu` (addition) — trigger-anchored dropdown (vs. `ContextMenu`, which opens at a click point):
|
|
23
|
+
|
|
24
|
+
```jsx
|
|
25
|
+
<Menu trigger={<Button variant="dark" icon="chevron-down" size="sm">Show</Button>}
|
|
26
|
+
items={[{label:"Preview",icon:"eye"},{label:"Export",icon:"download"},{label:"Delete",icon:"trash-2",danger:true}]}/>
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
`Accordion` (addition) — generic collapsible section, distinct from `ListRow` (workflow-doc specific):
|
|
30
|
+
|
|
31
|
+
```jsx
|
|
32
|
+
<Accordion title="Retry policy" subtitle="What happens when a task fails" open={open} onToggle={setOpen}>
|
|
33
|
+
Failed tasks retry up to 3 times with exponential backoff.
|
|
34
|
+
</Accordion>
|
|
35
|
+
```
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
/** Checkbox with optional 12px/500 label ("Debug Mode"). md 16px · sm 13px (tables). */
|
|
3
|
+
export interface CheckboxProps {
|
|
4
|
+
checked?: boolean;
|
|
5
|
+
/** Dash glyph, same fill as checked — for "some of N selected" parent rows */
|
|
6
|
+
indeterminate?: boolean;
|
|
7
|
+
onChange?: (checked: boolean) => void;
|
|
8
|
+
label?: string;
|
|
9
|
+
size?: "md" | "sm";
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
style?: React.CSSProperties;
|
|
12
|
+
}
|
|
13
|
+
export declare function Checkbox(props: CheckboxProps): JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Icon } from "../icons/Icon.jsx";
|
|
3
|
+
|
|
4
|
+
/** 16px (sm: 13px) checkbox — 1.5px #d1d5db border, r4; checked = blue fill + white check; indeterminate = blue fill + dash; disabled = 50% opacity. */
|
|
5
|
+
export function Checkbox({ checked, indeterminate, onChange, label, size = "md", disabled, style }) {
|
|
6
|
+
const box = size === "sm" ? 13 : 16;
|
|
7
|
+
const filled = checked || indeterminate;
|
|
8
|
+
return (
|
|
9
|
+
<label style={{ display: "inline-flex", alignItems: "center", verticalAlign: "middle", lineHeight: "var(--leading-sm)", gap: 6, cursor: disabled ? "not-allowed" : "pointer", opacity: disabled ? .5 : 1, ...style }}
|
|
10
|
+
onClick={() => !disabled && onChange && onChange(!checked)}>
|
|
11
|
+
<span style={{ width: box, height: box, borderRadius: 4, boxSizing: "border-box", border: filled ? "none" : "1.5px solid var(--checkbox-border)", background: filled ? "var(--action-primary)" : "var(--bg-surface)", display: "inline-flex", alignItems: "center", justifyContent: "center", color: "var(--on-accent)", flexShrink: 0, transition: "var(--t-hover)" }}>
|
|
12
|
+
{checked ? <Icon name="check" size={box - 4} strokeWidth={3} /> : indeterminate ? <Icon name="minus" size={box - 4} strokeWidth={3} /> : null}
|
|
13
|
+
</span>
|
|
14
|
+
{label ? <span style={{ fontFamily: "var(--font-sans)", fontWeight: "var(--weight-medium)", fontSize: "var(--text-sm)", lineHeight: "var(--leading-sm)", color: "var(--text-body)" }}>{label}</span> : null}
|
|
15
|
+
</label>
|
|
16
|
+
);
|
|
17
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed } from 'vue'
|
|
3
|
+
import Icon from '../icons/Icon.vue'
|
|
4
|
+
// 16px (sm: 13px) checkbox — 1.5px border, r4; checked = blue fill + white check; indeterminate = blue fill + dash; disabled = 50% opacity.
|
|
5
|
+
const props = defineProps({ checked: Boolean, indeterminate: Boolean, label: String, size: { type: String, default: 'md' }, disabled: Boolean, style: Object })
|
|
6
|
+
const emit = defineEmits(['change'])
|
|
7
|
+
const box = computed(() => props.size === 'sm' ? 13 : 16)
|
|
8
|
+
const filled = computed(() => props.checked || props.indeterminate)
|
|
9
|
+
</script>
|
|
10
|
+
<template>
|
|
11
|
+
<label :style="{ display: 'inline-flex', alignItems: 'center', verticalAlign: 'middle', lineHeight: 'var(--leading-sm)', gap: 6, cursor: disabled ? 'not-allowed' : 'pointer', opacity: disabled ? .5 : 1, ...style }" @click="!disabled && emit('change', !checked)">
|
|
12
|
+
<span :style="{ width: box, height: box, borderRadius: 4, boxSizing: 'border-box', border: filled ? 'none' : '1.5px solid var(--checkbox-border)', background: filled ? 'var(--action-primary)' : 'var(--bg-surface)', display: 'inline-flex', alignItems: 'center', justifyContent: 'center', color: 'var(--on-accent)', flexShrink: 0, transition: 'var(--t-hover)' }">
|
|
13
|
+
<Icon v-if="checked" name="check" :size="box - 4" :stroke-width="3" />
|
|
14
|
+
<Icon v-else-if="indeterminate" name="minus" :size="box - 4" :stroke-width="3" />
|
|
15
|
+
</span>
|
|
16
|
+
<span v-if="label" style="font-family:var(--font-sans);font-weight:var(--weight-medium);font-size:var(--text-sm);line-height:var(--leading-sm);color:var(--text-body)">{{ label }}</span>
|
|
17
|
+
</label>
|
|
18
|
+
</template>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
|
|
3
|
+
/** Typeahead single-select combobox: type to filter, arrow keys + Enter or click to pick, "No results" empty row. */
|
|
4
|
+
export interface ComboboxProps {
|
|
5
|
+
options?: string[];
|
|
6
|
+
value?: string;
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
error?: boolean;
|
|
10
|
+
width?: number | string;
|
|
11
|
+
onChange?: (value: string) => void;
|
|
12
|
+
style?: React.CSSProperties;
|
|
13
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Icon } from "../icons/Icon.jsx";
|
|
3
|
+
import { inputBase } from "./Input.jsx";
|
|
4
|
+
|
|
5
|
+
/** Typeahead single-select: type to filter options, click or Enter to pick. Chevron toggles the list; shows "No results" when the filter matches nothing. */
|
|
6
|
+
export function Combobox({ options = [], value = "", placeholder = "Select...", disabled, error, width, onChange, style }) {
|
|
7
|
+
const [open, setOpen] = React.useState(false);
|
|
8
|
+
const [query, setQuery] = React.useState(null);
|
|
9
|
+
const [hov, setHov] = React.useState(-1);
|
|
10
|
+
const root = React.useRef(null);
|
|
11
|
+
React.useEffect(() => { const h = (e) => { if (root.current && !root.current.contains(e.target)) { setOpen(false); setQuery(null); } }; document.addEventListener("mousedown", h); return () => document.removeEventListener("mousedown", h); }, []);
|
|
12
|
+
const shown = query == null ? options : options.filter(o => o.toLowerCase().includes(query.toLowerCase()));
|
|
13
|
+
const pick = (o) => { onChange && onChange(o); setOpen(false); setQuery(null); };
|
|
14
|
+
return (
|
|
15
|
+
<div ref={root} style={{ position: "relative", width, ...style }}>
|
|
16
|
+
<div style={{ position: "relative" }}>
|
|
17
|
+
<input value={query != null ? query : value} placeholder={placeholder} disabled={disabled}
|
|
18
|
+
onFocus={() => setOpen(true)} onChange={(e) => { setQuery(e.target.value); setOpen(true); setHov(0); }}
|
|
19
|
+
onKeyDown={(e) => { if (e.key === "ArrowDown") setHov(Math.min(hov + 1, shown.length - 1)); if (e.key === "ArrowUp") setHov(Math.max(hov - 1, 0)); if (e.key === "Enter" && shown[hov]) pick(shown[hov]); if (e.key === "Escape") { setOpen(false); setQuery(null); } }}
|
|
20
|
+
style={{ ...inputBase, paddingRight: 32, borderColor: error ? "var(--danger)" : open ? "var(--focus-border)" : "var(--border-control)", boxShadow: open ? "0 0 0 2px var(--focus-ring)" : "none", opacity: disabled ? .5 : 1, cursor: disabled ? "not-allowed" : "text" }} />
|
|
21
|
+
<button type="button" disabled={disabled} onClick={() => { setOpen(!open); setQuery(null); }} style={{ position: "absolute", right: 4, top: "50%", transform: "translateY(-50%)", width: 26, height: 26, border: "none", background: "transparent", cursor: "pointer", color: "var(--text-muted)", display: "flex", alignItems: "center", justifyContent: "center", padding: 0 }}>
|
|
22
|
+
<span style={{ display: "inline-flex", transform: open ? "rotate(180deg)" : "none", transition: "transform var(--dur-fast) var(--ease-out)" }}><Icon name="chevron-down" size={14} /></span>
|
|
23
|
+
</button>
|
|
24
|
+
</div>
|
|
25
|
+
{open && !disabled && <div style={{ position: "absolute", top: "calc(100% + 4px)", left: 0, right: 0, zIndex: "var(--z-menu)", background: "var(--bg-surface)", border: "1px solid var(--border-card)", borderRadius: "var(--radius-md)", boxShadow: "var(--shadow-menu)", padding: 4, maxHeight: 208, overflowY: "auto" }}>
|
|
26
|
+
{shown.length === 0 && <div style={{ padding: "8px 10px", fontFamily: "var(--font-sans)", fontSize: "var(--text-sm)", color: "var(--text-muted)" }}>No results</div>}
|
|
27
|
+
{shown.map((o, i) => <button key={o} type="button" onClick={() => pick(o)} onMouseEnter={() => setHov(i)}
|
|
28
|
+
style={{ display: "flex", alignItems: "center", justifyContent: "space-between", width: "100%", padding: "7px 10px", borderRadius: "var(--radius-sm)", border: "none", cursor: "pointer", background: hov === i ? "var(--bg-hover)" : "transparent", fontFamily: "var(--font-sans)", fontSize: "var(--text-sm)", color: "var(--text-heading)", textAlign: "left" }}>
|
|
29
|
+
{o}{o === value && <span style={{ color: "var(--action-primary)", display: "inline-flex" }}><Icon name="check" size={13} /></span>}
|
|
30
|
+
</button>)}
|
|
31
|
+
</div>}
|
|
32
|
+
</div>
|
|
33
|
+
);
|
|
34
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { ref, computed, onMounted, onUnmounted } from 'vue'
|
|
3
|
+
import Icon from '../icons/Icon.vue'
|
|
4
|
+
import { inputBase } from './Input.vue'
|
|
5
|
+
// Typeahead single-select: type to filter options, click or Enter to pick; "No results" empty row.
|
|
6
|
+
const props = defineProps({ options: { type: Array, default: () => [] }, modelValue: { type: String, default: '' }, placeholder: { type: String, default: 'Select...' }, disabled: Boolean, error: Boolean, width: [Number, String], style: Object })
|
|
7
|
+
const emit = defineEmits(['update:modelValue'])
|
|
8
|
+
const open = ref(false), query = ref(null), hov = ref(-1), root = ref(null)
|
|
9
|
+
const shown = computed(() => query.value == null ? props.options : props.options.filter(o => o.toLowerCase().includes(query.value.toLowerCase())))
|
|
10
|
+
function pick(o) { emit('update:modelValue', o); open.value = false; query.value = null }
|
|
11
|
+
function onDoc(e) { if (root.value && !root.value.contains(e.target)) { open.value = false; query.value = null } }
|
|
12
|
+
onMounted(() => document.addEventListener('mousedown', onDoc))
|
|
13
|
+
onUnmounted(() => document.removeEventListener('mousedown', onDoc))
|
|
14
|
+
</script>
|
|
15
|
+
<template>
|
|
16
|
+
<div ref="root" :style="{ position: 'relative', width: typeof width === 'number' ? width + 'px' : width, ...style }">
|
|
17
|
+
<div style="position:relative">
|
|
18
|
+
<input :value="query != null ? query : modelValue" :placeholder="placeholder" :disabled="disabled"
|
|
19
|
+
@focus="open = true" @input="query = $event.target.value; open = true; hov = 0"
|
|
20
|
+
@keydown.down="hov = Math.min(hov + 1, shown.length - 1)" @keydown.up="hov = Math.max(hov - 1, 0)"
|
|
21
|
+
@keydown.enter="shown[hov] && pick(shown[hov])" @keydown.esc="open = false; query = null"
|
|
22
|
+
:style="{ ...inputBase, paddingRight: '32px', borderColor: error ? 'var(--danger)' : open ? 'var(--focus-border)' : 'var(--border-control)', boxShadow: open ? '0 0 0 2px var(--focus-ring)' : 'none', opacity: disabled ? .5 : 1 }" />
|
|
23
|
+
<button type="button" :disabled="disabled" @click="open = !open; query = null" style="position:absolute;right:4px;top:50%;transform:translateY(-50%);width:26px;height:26px;border:none;background:transparent;cursor:pointer;color:var(--text-muted);display:flex;align-items:center;justify-content:center;padding:0">
|
|
24
|
+
<span :style="{ display: 'inline-flex', transform: open ? 'rotate(180deg)' : 'none', transition: 'transform var(--dur-fast) var(--ease-out)' }"><Icon name="chevron-down" :size="14" /></span>
|
|
25
|
+
</button>
|
|
26
|
+
</div>
|
|
27
|
+
<div v-if="open && !disabled" style="position:absolute;top:calc(100% + 4px);left:0;right:0;z-index:var(--z-menu);background:var(--bg-surface);border:1px solid var(--border-card);border-radius:var(--radius-md);box-shadow:var(--shadow-menu);padding:4px;max-height:208px;overflow-y:auto">
|
|
28
|
+
<div v-if="shown.length === 0" style="padding:8px 10px;font-family:var(--font-sans);font-size:var(--text-sm);color:var(--text-muted)">No results</div>
|
|
29
|
+
<button v-for="(o, i) in shown" :key="o" type="button" @click="pick(o)" @mouseenter="hov = i"
|
|
30
|
+
:style="{ display: 'flex', alignItems: 'center', justifyContent: 'space-between', width: '100%', padding: '7px 10px', borderRadius: 'var(--radius-sm)', border: 'none', cursor: 'pointer', background: hov === i ? 'var(--bg-hover)' : 'transparent', fontFamily: 'var(--font-sans)', fontSize: 'var(--text-sm)', color: 'var(--text-heading)', textAlign: 'left' }">
|
|
31
|
+
{{ o }}<span v-if="o === modelValue" style="color:var(--action-primary);display:inline-flex"><Icon name="check" :size="13" /></span>
|
|
32
|
+
</button>
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
35
|
+
</template>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
|
|
3
|
+
/** Date picker input + month-grid popover (Monday-first, today outlined, selected filled). Dates are "YYYY-MM-DD" strings. */
|
|
4
|
+
export interface DatePickerProps {
|
|
5
|
+
value?: string;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
error?: boolean;
|
|
9
|
+
width?: number | string;
|
|
10
|
+
onChange?: (isoDate: string) => void;
|
|
11
|
+
style?: React.CSSProperties;
|
|
12
|
+
}
|