@mindlogic-ai/logician-ui 3.1.0-alpha.9 → 3.2.0-alpha.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/dist/components/Icon/_constants/iconList.d.ts +1 -1
- package/dist/components/Icon/_constants/iconList.d.ts.map +1 -1
- package/dist/components/Icon/_constants/iconList.js +18 -0
- package/dist/components/Icon/_constants/iconList.js.map +1 -1
- package/dist/components/Icon/_constants/iconList.mjs +20 -2
- package/dist/components/Icon/_constants/iconList.mjs.map +1 -1
- package/dist/components/Icon/index.d.ts +2 -1
- package/dist/components/Icon/index.d.ts.map +1 -1
- package/dist/components/Icon/index.js +20 -1
- package/dist/components/Icon/index.js.map +1 -1
- package/dist/components/Icon/index.mjs +4 -2
- package/dist/components/Icon/index.mjs.map +1 -1
- package/dist/components/SegmentedControl/SegmentedControl.d.ts.map +1 -1
- package/dist/components/SegmentedControl/SegmentedControl.js +20 -4
- package/dist/components/SegmentedControl/SegmentedControl.js.map +1 -1
- package/dist/components/SegmentedControl/SegmentedControl.mjs +20 -4
- package/dist/components/SegmentedControl/SegmentedControl.mjs.map +1 -1
- package/dist/components/Workflow/Workflow.d.ts +3 -0
- package/dist/components/Workflow/Workflow.d.ts.map +1 -0
- package/dist/components/Workflow/Workflow.js +109 -0
- package/dist/components/Workflow/Workflow.js.map +1 -0
- package/dist/components/Workflow/Workflow.mjs +107 -0
- package/dist/components/Workflow/Workflow.mjs.map +1 -0
- package/dist/components/Workflow/Workflow.translations.json.js +164 -0
- package/dist/components/Workflow/Workflow.translations.json.js.map +1 -0
- package/dist/components/Workflow/Workflow.translations.json.mjs +138 -0
- package/dist/components/Workflow/Workflow.translations.json.mjs.map +1 -0
- package/dist/components/Workflow/Workflow.types.d.ts +435 -0
- package/dist/components/Workflow/Workflow.types.d.ts.map +1 -0
- package/dist/components/Workflow/Workflow.types.js +19 -0
- package/dist/components/Workflow/Workflow.types.js.map +1 -0
- package/dist/components/Workflow/Workflow.types.mjs +16 -0
- package/dist/components/Workflow/Workflow.types.mjs.map +1 -0
- package/dist/components/Workflow/WorkflowContext/WorkflowContext.d.ts +10 -0
- package/dist/components/Workflow/WorkflowContext/WorkflowContext.d.ts.map +1 -0
- package/dist/components/Workflow/WorkflowContext/WorkflowContext.js +163 -0
- package/dist/components/Workflow/WorkflowContext/WorkflowContext.js.map +1 -0
- package/dist/components/Workflow/WorkflowContext/WorkflowContext.mjs +159 -0
- package/dist/components/Workflow/WorkflowContext/WorkflowContext.mjs.map +1 -0
- package/dist/components/Workflow/WorkflowContext/WorkflowContext.types.d.ts +117 -0
- package/dist/components/Workflow/WorkflowContext/WorkflowContext.types.d.ts.map +1 -0
- package/dist/components/Workflow/WorkflowContext/index.d.ts +3 -0
- package/dist/components/Workflow/WorkflowContext/index.d.ts.map +1 -0
- package/dist/components/Workflow/canvas/Canvas/BranchLabelBadge.d.ts +19 -0
- package/dist/components/Workflow/canvas/Canvas/BranchLabelBadge.d.ts.map +1 -0
- package/dist/components/Workflow/canvas/Canvas/BranchLabelBadge.js +44 -0
- package/dist/components/Workflow/canvas/Canvas/BranchLabelBadge.js.map +1 -0
- package/dist/components/Workflow/canvas/Canvas/BranchLabelBadge.mjs +42 -0
- package/dist/components/Workflow/canvas/Canvas/BranchLabelBadge.mjs.map +1 -0
- package/dist/components/Workflow/canvas/Canvas/Canvas.d.ts +10 -0
- package/dist/components/Workflow/canvas/Canvas/Canvas.d.ts.map +1 -0
- package/dist/components/Workflow/canvas/Canvas/Canvas.js +531 -0
- package/dist/components/Workflow/canvas/Canvas/Canvas.js.map +1 -0
- package/dist/components/Workflow/canvas/Canvas/Canvas.mjs +529 -0
- package/dist/components/Workflow/canvas/Canvas/Canvas.mjs.map +1 -0
- package/dist/components/Workflow/canvas/Canvas/Canvas.styles.d.ts +53 -0
- package/dist/components/Workflow/canvas/Canvas/Canvas.styles.d.ts.map +1 -0
- package/dist/components/Workflow/canvas/Canvas/Canvas.styles.js +96 -0
- package/dist/components/Workflow/canvas/Canvas/Canvas.styles.js.map +1 -0
- package/dist/components/Workflow/canvas/Canvas/Canvas.styles.mjs +93 -0
- package/dist/components/Workflow/canvas/Canvas/Canvas.styles.mjs.map +1 -0
- package/dist/components/Workflow/canvas/Canvas/CanvasControls.d.ts +27 -0
- package/dist/components/Workflow/canvas/Canvas/CanvasControls.d.ts.map +1 -0
- package/dist/components/Workflow/canvas/Canvas/CanvasControls.js +70 -0
- package/dist/components/Workflow/canvas/Canvas/CanvasControls.js.map +1 -0
- package/dist/components/Workflow/canvas/Canvas/CanvasControls.mjs +68 -0
- package/dist/components/Workflow/canvas/Canvas/CanvasControls.mjs.map +1 -0
- package/dist/components/Workflow/canvas/Canvas/LabeledEdge.d.ts +10 -0
- package/dist/components/Workflow/canvas/Canvas/LabeledEdge.d.ts.map +1 -0
- package/dist/components/Workflow/canvas/Canvas/LabeledEdge.js +106 -0
- package/dist/components/Workflow/canvas/Canvas/LabeledEdge.js.map +1 -0
- package/dist/components/Workflow/canvas/Canvas/LabeledEdge.mjs +104 -0
- package/dist/components/Workflow/canvas/Canvas/LabeledEdge.mjs.map +1 -0
- package/dist/components/Workflow/canvas/Canvas/edgeLabelVariant.d.ts +13 -0
- package/dist/components/Workflow/canvas/Canvas/edgeLabelVariant.d.ts.map +1 -0
- package/dist/components/Workflow/canvas/Canvas/edgeLabelVariant.js +18 -0
- package/dist/components/Workflow/canvas/Canvas/edgeLabelVariant.js.map +1 -0
- package/dist/components/Workflow/canvas/Canvas/edgeLabelVariant.mjs +16 -0
- package/dist/components/Workflow/canvas/Canvas/edgeLabelVariant.mjs.map +1 -0
- package/dist/components/Workflow/canvas/Canvas/index.d.ts +2 -0
- package/dist/components/Workflow/canvas/Canvas/index.d.ts.map +1 -0
- package/dist/components/Workflow/canvas/CollapsibleSection/CollapsibleSection.d.ts +30 -0
- package/dist/components/Workflow/canvas/CollapsibleSection/CollapsibleSection.d.ts.map +1 -0
- package/dist/components/Workflow/canvas/CollapsibleSection/CollapsibleSection.js +34 -0
- package/dist/components/Workflow/canvas/CollapsibleSection/CollapsibleSection.js.map +1 -0
- package/dist/components/Workflow/canvas/CollapsibleSection/CollapsibleSection.mjs +32 -0
- package/dist/components/Workflow/canvas/CollapsibleSection/CollapsibleSection.mjs.map +1 -0
- package/dist/components/Workflow/canvas/CollapsibleSection/index.d.ts +2 -0
- package/dist/components/Workflow/canvas/CollapsibleSection/index.d.ts.map +1 -0
- package/dist/components/Workflow/canvas/DrawerShell/DrawerHeader.d.ts +37 -0
- package/dist/components/Workflow/canvas/DrawerShell/DrawerHeader.d.ts.map +1 -0
- package/dist/components/Workflow/canvas/DrawerShell/DrawerHeader.js +33 -0
- package/dist/components/Workflow/canvas/DrawerShell/DrawerHeader.js.map +1 -0
- package/dist/components/Workflow/canvas/DrawerShell/DrawerHeader.mjs +31 -0
- package/dist/components/Workflow/canvas/DrawerShell/DrawerHeader.mjs.map +1 -0
- package/dist/components/Workflow/canvas/DrawerShell/DrawerIssues.d.ts +16 -0
- package/dist/components/Workflow/canvas/DrawerShell/DrawerIssues.d.ts.map +1 -0
- package/dist/components/Workflow/canvas/DrawerShell/DrawerIssues.js +54 -0
- package/dist/components/Workflow/canvas/DrawerShell/DrawerIssues.js.map +1 -0
- package/dist/components/Workflow/canvas/DrawerShell/DrawerIssues.mjs +52 -0
- package/dist/components/Workflow/canvas/DrawerShell/DrawerIssues.mjs.map +1 -0
- package/dist/components/Workflow/canvas/DrawerShell/DrawerShell.d.ts +27 -0
- package/dist/components/Workflow/canvas/DrawerShell/DrawerShell.d.ts.map +1 -0
- package/dist/components/Workflow/canvas/DrawerShell/DrawerShell.js +178 -0
- package/dist/components/Workflow/canvas/DrawerShell/DrawerShell.js.map +1 -0
- package/dist/components/Workflow/canvas/DrawerShell/DrawerShell.mjs +176 -0
- package/dist/components/Workflow/canvas/DrawerShell/DrawerShell.mjs.map +1 -0
- package/dist/components/Workflow/canvas/DrawerShell/index.d.ts +3 -0
- package/dist/components/Workflow/canvas/DrawerShell/index.d.ts.map +1 -0
- package/dist/components/Workflow/canvas/EdgeInspector/BuiltInEdgeInspector.d.ts +12 -0
- package/dist/components/Workflow/canvas/EdgeInspector/BuiltInEdgeInspector.d.ts.map +1 -0
- package/dist/components/Workflow/canvas/EdgeInspector/BuiltInEdgeInspector.js +68 -0
- package/dist/components/Workflow/canvas/EdgeInspector/BuiltInEdgeInspector.js.map +1 -0
- package/dist/components/Workflow/canvas/EdgeInspector/BuiltInEdgeInspector.mjs +66 -0
- package/dist/components/Workflow/canvas/EdgeInspector/BuiltInEdgeInspector.mjs.map +1 -0
- package/dist/components/Workflow/canvas/EdgeInspector/endpointTitle.d.ts +19 -0
- package/dist/components/Workflow/canvas/EdgeInspector/endpointTitle.d.ts.map +1 -0
- package/dist/components/Workflow/canvas/EdgeInspector/endpointTitle.js +35 -0
- package/dist/components/Workflow/canvas/EdgeInspector/endpointTitle.js.map +1 -0
- package/dist/components/Workflow/canvas/EdgeInspector/endpointTitle.mjs +32 -0
- package/dist/components/Workflow/canvas/EdgeInspector/endpointTitle.mjs.map +1 -0
- package/dist/components/Workflow/canvas/EdgeInspector/index.d.ts +3 -0
- package/dist/components/Workflow/canvas/EdgeInspector/index.d.ts.map +1 -0
- package/dist/components/Workflow/canvas/FieldWrapper/FieldWrapper.d.ts +54 -0
- package/dist/components/Workflow/canvas/FieldWrapper/FieldWrapper.d.ts.map +1 -0
- package/dist/components/Workflow/canvas/FieldWrapper/FieldWrapper.js +56 -0
- package/dist/components/Workflow/canvas/FieldWrapper/FieldWrapper.js.map +1 -0
- package/dist/components/Workflow/canvas/FieldWrapper/FieldWrapper.mjs +54 -0
- package/dist/components/Workflow/canvas/FieldWrapper/FieldWrapper.mjs.map +1 -0
- package/dist/components/Workflow/canvas/FieldWrapper/index.d.ts +3 -0
- package/dist/components/Workflow/canvas/FieldWrapper/index.d.ts.map +1 -0
- package/dist/components/Workflow/canvas/FloatingCard/FloatingCard.d.ts +16 -0
- package/dist/components/Workflow/canvas/FloatingCard/FloatingCard.d.ts.map +1 -0
- package/dist/components/Workflow/canvas/FloatingCard/FloatingCard.js +25 -0
- package/dist/components/Workflow/canvas/FloatingCard/FloatingCard.js.map +1 -0
- package/dist/components/Workflow/canvas/FloatingCard/FloatingCard.mjs +22 -0
- package/dist/components/Workflow/canvas/FloatingCard/FloatingCard.mjs.map +1 -0
- package/dist/components/Workflow/canvas/FloatingCard/index.d.ts +2 -0
- package/dist/components/Workflow/canvas/FloatingCard/index.d.ts.map +1 -0
- package/dist/components/Workflow/canvas/GenericNode/GenericNode.d.ts +14 -0
- package/dist/components/Workflow/canvas/GenericNode/GenericNode.d.ts.map +1 -0
- package/dist/components/Workflow/canvas/GenericNode/GenericNode.js +61 -0
- package/dist/components/Workflow/canvas/GenericNode/GenericNode.js.map +1 -0
- package/dist/components/Workflow/canvas/GenericNode/GenericNode.mjs +59 -0
- package/dist/components/Workflow/canvas/GenericNode/GenericNode.mjs.map +1 -0
- package/dist/components/Workflow/canvas/GenericNode/GenericNode.types.d.ts +11 -0
- package/dist/components/Workflow/canvas/GenericNode/GenericNode.types.d.ts.map +1 -0
- package/dist/components/Workflow/canvas/GenericNode/index.d.ts +3 -0
- package/dist/components/Workflow/canvas/GenericNode/index.d.ts.map +1 -0
- package/dist/components/Workflow/canvas/GraphErrorBanner/GraphErrorBanner.d.ts +15 -0
- package/dist/components/Workflow/canvas/GraphErrorBanner/GraphErrorBanner.d.ts.map +1 -0
- package/dist/components/Workflow/canvas/GraphErrorBanner/GraphErrorBanner.js +145 -0
- package/dist/components/Workflow/canvas/GraphErrorBanner/GraphErrorBanner.js.map +1 -0
- package/dist/components/Workflow/canvas/GraphErrorBanner/GraphErrorBanner.mjs +143 -0
- package/dist/components/Workflow/canvas/GraphErrorBanner/GraphErrorBanner.mjs.map +1 -0
- package/dist/components/Workflow/canvas/GraphErrorBanner/index.d.ts +2 -0
- package/dist/components/Workflow/canvas/GraphErrorBanner/index.d.ts.map +1 -0
- package/dist/components/Workflow/canvas/IconTile/IconTile.d.ts +10 -0
- package/dist/components/Workflow/canvas/IconTile/IconTile.d.ts.map +1 -0
- package/dist/components/Workflow/canvas/IconTile/IconTile.js +21 -0
- package/dist/components/Workflow/canvas/IconTile/IconTile.js.map +1 -0
- package/dist/components/Workflow/canvas/IconTile/IconTile.mjs +19 -0
- package/dist/components/Workflow/canvas/IconTile/IconTile.mjs.map +1 -0
- package/dist/components/Workflow/canvas/IconTile/IconTile.styles.d.ts +18 -0
- package/dist/components/Workflow/canvas/IconTile/IconTile.styles.d.ts.map +1 -0
- package/dist/components/Workflow/canvas/IconTile/IconTile.styles.js +40 -0
- package/dist/components/Workflow/canvas/IconTile/IconTile.styles.js.map +1 -0
- package/dist/components/Workflow/canvas/IconTile/IconTile.styles.mjs +37 -0
- package/dist/components/Workflow/canvas/IconTile/IconTile.styles.mjs.map +1 -0
- package/dist/components/Workflow/canvas/IconTile/IconTile.types.d.ts +15 -0
- package/dist/components/Workflow/canvas/IconTile/IconTile.types.d.ts.map +1 -0
- package/dist/components/Workflow/canvas/IconTile/index.d.ts +4 -0
- package/dist/components/Workflow/canvas/IconTile/index.d.ts.map +1 -0
- package/dist/components/Workflow/canvas/IssueList/IssueList.d.ts +24 -0
- package/dist/components/Workflow/canvas/IssueList/IssueList.d.ts.map +1 -0
- package/dist/components/Workflow/canvas/IssueList/IssueList.js +34 -0
- package/dist/components/Workflow/canvas/IssueList/IssueList.js.map +1 -0
- package/dist/components/Workflow/canvas/IssueList/IssueList.mjs +32 -0
- package/dist/components/Workflow/canvas/IssueList/IssueList.mjs.map +1 -0
- package/dist/components/Workflow/canvas/IssueList/index.d.ts +2 -0
- package/dist/components/Workflow/canvas/IssueList/index.d.ts.map +1 -0
- package/dist/components/Workflow/canvas/NodePalette/NodePalette.d.ts +9 -0
- package/dist/components/Workflow/canvas/NodePalette/NodePalette.d.ts.map +1 -0
- package/dist/components/Workflow/canvas/NodePalette/NodePalette.js +94 -0
- package/dist/components/Workflow/canvas/NodePalette/NodePalette.js.map +1 -0
- package/dist/components/Workflow/canvas/NodePalette/NodePalette.mjs +92 -0
- package/dist/components/Workflow/canvas/NodePalette/NodePalette.mjs.map +1 -0
- package/dist/components/Workflow/canvas/NodePalette/NodePalette.styles.d.ts +7 -0
- package/dist/components/Workflow/canvas/NodePalette/NodePalette.styles.d.ts.map +1 -0
- package/dist/components/Workflow/canvas/NodePalette/NodePalette.styles.js +13 -0
- package/dist/components/Workflow/canvas/NodePalette/NodePalette.styles.js.map +1 -0
- package/dist/components/Workflow/canvas/NodePalette/NodePalette.styles.mjs +10 -0
- package/dist/components/Workflow/canvas/NodePalette/NodePalette.styles.mjs.map +1 -0
- package/dist/components/Workflow/canvas/NodePalette/NodePaletteToggle.d.ts +10 -0
- package/dist/components/Workflow/canvas/NodePalette/NodePaletteToggle.d.ts.map +1 -0
- package/dist/components/Workflow/canvas/NodePalette/NodePaletteToggle.js +28 -0
- package/dist/components/Workflow/canvas/NodePalette/NodePaletteToggle.js.map +1 -0
- package/dist/components/Workflow/canvas/NodePalette/NodePaletteToggle.mjs +26 -0
- package/dist/components/Workflow/canvas/NodePalette/NodePaletteToggle.mjs.map +1 -0
- package/dist/components/Workflow/canvas/NodePalette/index.d.ts +4 -0
- package/dist/components/Workflow/canvas/NodePalette/index.d.ts.map +1 -0
- package/dist/components/Workflow/canvas/NodeShell/NodeShell.d.ts +3 -0
- package/dist/components/Workflow/canvas/NodeShell/NodeShell.d.ts.map +1 -0
- package/dist/components/Workflow/canvas/NodeShell/NodeShell.js +137 -0
- package/dist/components/Workflow/canvas/NodeShell/NodeShell.js.map +1 -0
- package/dist/components/Workflow/canvas/NodeShell/NodeShell.mjs +135 -0
- package/dist/components/Workflow/canvas/NodeShell/NodeShell.mjs.map +1 -0
- package/dist/components/Workflow/canvas/NodeShell/NodeShell.styles.d.ts +66 -0
- package/dist/components/Workflow/canvas/NodeShell/NodeShell.styles.d.ts.map +1 -0
- package/dist/components/Workflow/canvas/NodeShell/NodeShell.styles.js +87 -0
- package/dist/components/Workflow/canvas/NodeShell/NodeShell.styles.js.map +1 -0
- package/dist/components/Workflow/canvas/NodeShell/NodeShell.styles.mjs +77 -0
- package/dist/components/Workflow/canvas/NodeShell/NodeShell.styles.mjs.map +1 -0
- package/dist/components/Workflow/canvas/NodeShell/NodeShell.types.d.ts +35 -0
- package/dist/components/Workflow/canvas/NodeShell/NodeShell.types.d.ts.map +1 -0
- package/dist/components/Workflow/canvas/NodeShell/index.d.ts +4 -0
- package/dist/components/Workflow/canvas/NodeShell/index.d.ts.map +1 -0
- package/dist/components/Workflow/canvas/SeverityDot/SeverityDot.d.ts +15 -0
- package/dist/components/Workflow/canvas/SeverityDot/SeverityDot.d.ts.map +1 -0
- package/dist/components/Workflow/canvas/SeverityDot/SeverityDot.js +14 -0
- package/dist/components/Workflow/canvas/SeverityDot/SeverityDot.js.map +1 -0
- package/dist/components/Workflow/canvas/SeverityDot/SeverityDot.mjs +12 -0
- package/dist/components/Workflow/canvas/SeverityDot/SeverityDot.mjs.map +1 -0
- package/dist/components/Workflow/canvas/SeverityDot/index.d.ts +2 -0
- package/dist/components/Workflow/canvas/SeverityDot/index.d.ts.map +1 -0
- package/dist/components/Workflow/canvas/issueSeverity.d.ts +23 -0
- package/dist/components/Workflow/canvas/issueSeverity.d.ts.map +1 -0
- package/dist/components/Workflow/canvas/issueSeverity.js +51 -0
- package/dist/components/Workflow/canvas/issueSeverity.js.map +1 -0
- package/dist/components/Workflow/canvas/issueSeverity.mjs +47 -0
- package/dist/components/Workflow/canvas/issueSeverity.mjs.map +1 -0
- package/dist/components/Workflow/canvas/useFieldFocusRequest.d.ts +14 -0
- package/dist/components/Workflow/canvas/useFieldFocusRequest.d.ts.map +1 -0
- package/dist/components/Workflow/canvas/useFieldFocusRequest.js +48 -0
- package/dist/components/Workflow/canvas/useFieldFocusRequest.js.map +1 -0
- package/dist/components/Workflow/canvas/useFieldFocusRequest.mjs +46 -0
- package/dist/components/Workflow/canvas/useFieldFocusRequest.mjs.map +1 -0
- package/dist/components/Workflow/canvas/workflowLabelProps.d.ts +12 -0
- package/dist/components/Workflow/canvas/workflowLabelProps.d.ts.map +1 -0
- package/dist/components/Workflow/canvas/workflowLabelProps.js +17 -0
- package/dist/components/Workflow/canvas/workflowLabelProps.js.map +1 -0
- package/dist/components/Workflow/canvas/workflowLabelProps.mjs +15 -0
- package/dist/components/Workflow/canvas/workflowLabelProps.mjs.map +1 -0
- package/dist/components/Workflow/connectionRules.d.ts +59 -0
- package/dist/components/Workflow/connectionRules.d.ts.map +1 -0
- package/dist/components/Workflow/connectionRules.js +150 -0
- package/dist/components/Workflow/connectionRules.js.map +1 -0
- package/dist/components/Workflow/connectionRules.mjs +145 -0
- package/dist/components/Workflow/connectionRules.mjs.map +1 -0
- package/dist/components/Workflow/createNode.d.ts +27 -0
- package/dist/components/Workflow/createNode.d.ts.map +1 -0
- package/dist/components/Workflow/createNode.js +66 -0
- package/dist/components/Workflow/createNode.js.map +1 -0
- package/dist/components/Workflow/createNode.mjs +62 -0
- package/dist/components/Workflow/createNode.mjs.map +1 -0
- package/dist/components/Workflow/graphHistory.d.ts +23 -0
- package/dist/components/Workflow/graphHistory.d.ts.map +1 -0
- package/dist/components/Workflow/graphHistory.js +73 -0
- package/dist/components/Workflow/graphHistory.js.map +1 -0
- package/dist/components/Workflow/graphHistory.mjs +70 -0
- package/dist/components/Workflow/graphHistory.mjs.map +1 -0
- package/dist/components/Workflow/graphObserver.d.ts +13 -0
- package/dist/components/Workflow/graphObserver.d.ts.map +1 -0
- package/dist/components/Workflow/graphObserver.js +11 -0
- package/dist/components/Workflow/graphObserver.js.map +1 -0
- package/dist/components/Workflow/graphObserver.mjs +8 -0
- package/dist/components/Workflow/graphObserver.mjs.map +1 -0
- package/dist/components/Workflow/graphReducer.d.ts +75 -0
- package/dist/components/Workflow/graphReducer.d.ts.map +1 -0
- package/dist/components/Workflow/graphReducer.js +122 -0
- package/dist/components/Workflow/graphReducer.js.map +1 -0
- package/dist/components/Workflow/graphReducer.mjs +119 -0
- package/dist/components/Workflow/graphReducer.mjs.map +1 -0
- package/dist/components/Workflow/index.d.ts +22 -0
- package/dist/components/Workflow/index.d.ts.map +1 -0
- package/dist/components/Workflow/layout/autoLayout.d.ts +49 -0
- package/dist/components/Workflow/layout/autoLayout.d.ts.map +1 -0
- package/dist/components/Workflow/layout/autoLayout.js +149 -0
- package/dist/components/Workflow/layout/autoLayout.js.map +1 -0
- package/dist/components/Workflow/layout/autoLayout.mjs +146 -0
- package/dist/components/Workflow/layout/autoLayout.mjs.map +1 -0
- package/dist/components/Workflow/stories/toyNodeTypes.d.ts +40 -0
- package/dist/components/Workflow/stories/toyNodeTypes.d.ts.map +1 -0
- package/dist/components/Workflow/useWorkflowIssueMessage.d.ts +15 -0
- package/dist/components/Workflow/useWorkflowIssueMessage.d.ts.map +1 -0
- package/dist/components/Workflow/useWorkflowIssueMessage.js +45 -0
- package/dist/components/Workflow/useWorkflowIssueMessage.js.map +1 -0
- package/dist/components/Workflow/useWorkflowIssueMessage.mjs +43 -0
- package/dist/components/Workflow/useWorkflowIssueMessage.mjs.map +1 -0
- package/dist/components/Workflow/useWorkflowKeyboard.d.ts +10 -0
- package/dist/components/Workflow/useWorkflowKeyboard.d.ts.map +1 -0
- package/dist/components/Workflow/useWorkflowKeyboard.js +116 -0
- package/dist/components/Workflow/useWorkflowKeyboard.js.map +1 -0
- package/dist/components/Workflow/useWorkflowKeyboard.mjs +114 -0
- package/dist/components/Workflow/useWorkflowKeyboard.mjs.map +1 -0
- package/dist/icons.js +17 -0
- package/dist/icons.js.map +1 -1
- package/dist/icons.mjs +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +38 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -0
- package/dist/index.mjs.map +1 -1
- package/dist/test-support/setup.d.ts +5 -0
- package/dist/test-support/setup.d.ts.map +1 -0
- package/dist/theme/colors.d.ts +196 -44
- package/dist/theme/colors.d.ts.map +1 -1
- package/dist/theme/colors.js +184 -22
- package/dist/theme/colors.js.map +1 -1
- package/dist/theme/colors.mjs +184 -22
- package/dist/theme/colors.mjs.map +1 -1
- package/dist/theme/global.d.ts.map +1 -1
- package/dist/theme/global.js +30 -2
- package/dist/theme/global.js.map +1 -1
- package/dist/theme/global.mjs +30 -2
- package/dist/theme/global.mjs.map +1 -1
- package/package.json +10 -2
- package/src/components/Icon/_constants/iconList.ts +35 -0
- package/src/components/Icon/index.tsx +20 -0
- package/src/components/SegmentedControl/SegmentedControl.tsx +21 -4
- package/src/components/Workflow/README.md +362 -0
- package/src/components/Workflow/Workflow.translations.json +112 -0
- package/src/components/Workflow/Workflow.tsx +189 -0
- package/src/components/Workflow/Workflow.types.ts +496 -0
- package/src/components/Workflow/WorkflowContext/WorkflowContext.tsx +215 -0
- package/src/components/Workflow/WorkflowContext/WorkflowContext.types.ts +122 -0
- package/src/components/Workflow/WorkflowContext/index.ts +10 -0
- package/src/components/Workflow/WorkflowContext/workflowSelection.test.tsx +93 -0
- package/src/components/Workflow/canvas/Canvas/BranchLabelBadge.tsx +69 -0
- package/src/components/Workflow/canvas/Canvas/Canvas.styles.ts +91 -0
- package/src/components/Workflow/canvas/Canvas/Canvas.tsx +773 -0
- package/src/components/Workflow/canvas/Canvas/CanvasControls.tsx +178 -0
- package/src/components/Workflow/canvas/Canvas/LabeledEdge.tsx +198 -0
- package/src/components/Workflow/canvas/Canvas/edgeLabelVariant.test.ts +26 -0
- package/src/components/Workflow/canvas/Canvas/edgeLabelVariant.ts +23 -0
- package/src/components/Workflow/canvas/Canvas/index.ts +1 -0
- package/src/components/Workflow/canvas/CollapsibleSection/CollapsibleSection.tsx +96 -0
- package/src/components/Workflow/canvas/CollapsibleSection/index.ts +4 -0
- package/src/components/Workflow/canvas/DrawerShell/DrawerHeader.tsx +104 -0
- package/src/components/Workflow/canvas/DrawerShell/DrawerIssues.tsx +115 -0
- package/src/components/Workflow/canvas/DrawerShell/DrawerShell.tsx +408 -0
- package/src/components/Workflow/canvas/DrawerShell/index.ts +2 -0
- package/src/components/Workflow/canvas/EdgeInspector/BuiltInEdgeInspector.tsx +135 -0
- package/src/components/Workflow/canvas/EdgeInspector/endpointTitle.ts +38 -0
- package/src/components/Workflow/canvas/EdgeInspector/index.ts +2 -0
- package/src/components/Workflow/canvas/FieldWrapper/FieldWrapper.tsx +118 -0
- package/src/components/Workflow/canvas/FieldWrapper/index.ts +6 -0
- package/src/components/Workflow/canvas/FloatingCard/FloatingCard.tsx +37 -0
- package/src/components/Workflow/canvas/FloatingCard/index.ts +1 -0
- package/src/components/Workflow/canvas/GenericNode/GenericNode.tsx +114 -0
- package/src/components/Workflow/canvas/GenericNode/GenericNode.types.ts +10 -0
- package/src/components/Workflow/canvas/GenericNode/index.ts +5 -0
- package/src/components/Workflow/canvas/GraphErrorBanner/GraphErrorBanner.tsx +284 -0
- package/src/components/Workflow/canvas/GraphErrorBanner/index.ts +1 -0
- package/src/components/Workflow/canvas/IconTile/IconTile.styles.ts +40 -0
- package/src/components/Workflow/canvas/IconTile/IconTile.tsx +36 -0
- package/src/components/Workflow/canvas/IconTile/IconTile.types.ts +13 -0
- package/src/components/Workflow/canvas/IconTile/index.ts +7 -0
- package/src/components/Workflow/canvas/IssueList/IssueList.tsx +84 -0
- package/src/components/Workflow/canvas/IssueList/index.ts +1 -0
- package/src/components/Workflow/canvas/NodePalette/NodePalette.styles.ts +7 -0
- package/src/components/Workflow/canvas/NodePalette/NodePalette.tsx +180 -0
- package/src/components/Workflow/canvas/NodePalette/NodePaletteToggle.tsx +39 -0
- package/src/components/Workflow/canvas/NodePalette/index.ts +3 -0
- package/src/components/Workflow/canvas/NodeShell/NodeShell.styles.ts +84 -0
- package/src/components/Workflow/canvas/NodeShell/NodeShell.tsx +321 -0
- package/src/components/Workflow/canvas/NodeShell/NodeShell.types.ts +45 -0
- package/src/components/Workflow/canvas/NodeShell/index.ts +8 -0
- package/src/components/Workflow/canvas/SeverityDot/SeverityDot.tsx +33 -0
- package/src/components/Workflow/canvas/SeverityDot/index.ts +1 -0
- package/src/components/Workflow/canvas/issueSeverity.ts +48 -0
- package/src/components/Workflow/canvas/useFieldFocusRequest.ts +54 -0
- package/src/components/Workflow/canvas/workflowLabelProps.ts +11 -0
- package/src/components/Workflow/connectionRules.test.ts +326 -0
- package/src/components/Workflow/connectionRules.ts +190 -0
- package/src/components/Workflow/createNode.test.ts +61 -0
- package/src/components/Workflow/createNode.ts +67 -0
- package/src/components/Workflow/graphHistory.test.ts +178 -0
- package/src/components/Workflow/graphHistory.ts +91 -0
- package/src/components/Workflow/graphObserver.ts +21 -0
- package/src/components/Workflow/graphReducer.test.ts +314 -0
- package/src/components/Workflow/graphReducer.ts +196 -0
- package/src/components/Workflow/index.ts +74 -0
- package/src/components/Workflow/layout/autoLayout.test.ts +170 -0
- package/src/components/Workflow/layout/autoLayout.ts +200 -0
- package/src/components/Workflow/stories/Workflow.stories.tsx +111 -0
- package/src/components/Workflow/stories/toyNodeTypes.tsx +146 -0
- package/src/components/Workflow/useWorkflowIssueMessage.test.ts +101 -0
- package/src/components/Workflow/useWorkflowIssueMessage.ts +49 -0
- package/src/components/Workflow/useWorkflowKeyboard.ts +126 -0
- package/src/index.ts +1 -0
- package/src/test-support/setup.ts +11 -0
- package/src/theme/SemanticTokens.mdx +61 -7
- package/src/theme/colors.ts +216 -26
- package/src/theme/global.ts +31 -2
package/src/theme/colors.ts
CHANGED
|
@@ -60,6 +60,37 @@
|
|
|
60
60
|
* <Badge bgColor="success.lightest" color="success.dark" />
|
|
61
61
|
* ```
|
|
62
62
|
*/
|
|
63
|
+
/**
|
|
64
|
+
* Halved-saturation counterpart of each primitive `gray.N` — same hue and
|
|
65
|
+
* lightness, HSL saturation cut by ~50% (e.g. `gray.1300` #1E2433 @ 26% →
|
|
66
|
+
* #23262E @ 13%). The blue-tinted `gray` ramp reads as the right neutral in
|
|
67
|
+
* light mode but turns muddy/over-chromatic as a dark surface, so every
|
|
68
|
+
* dark-mode neutral below (`slate.*`, and the `_dark` of `bg`/`fg`/`border`)
|
|
69
|
+
* resolves to this desaturated mirror instead of the raw `gray` step. Light
|
|
70
|
+
* mode is untouched — it keeps referencing `{colors.gray.*}` verbatim.
|
|
71
|
+
*
|
|
72
|
+
* Single source of truth: change a dark neutral here, not at each token.
|
|
73
|
+
*/
|
|
74
|
+
const desaturatedGray = {
|
|
75
|
+
0: '#FEFEFF',
|
|
76
|
+
50: '#F8F9FB',
|
|
77
|
+
100: '#F2F4F7',
|
|
78
|
+
200: '#E5E8EC',
|
|
79
|
+
300: '#D2D5DB',
|
|
80
|
+
400: '#B6BAC3',
|
|
81
|
+
500: '#A2A6B1',
|
|
82
|
+
600: '#8E939F',
|
|
83
|
+
700: '#7C818D',
|
|
84
|
+
800: '#6A6F7C',
|
|
85
|
+
900: '#595E6B',
|
|
86
|
+
1000: '#4A4E5A',
|
|
87
|
+
1100: '#3C404B',
|
|
88
|
+
1200: '#30343C',
|
|
89
|
+
1300: '#23262E',
|
|
90
|
+
1400: '#181A20',
|
|
91
|
+
1500: '#0E1014',
|
|
92
|
+
} as const;
|
|
93
|
+
|
|
63
94
|
export const semanticTokens = {
|
|
64
95
|
colors: {
|
|
65
96
|
/**
|
|
@@ -97,6 +128,18 @@ export const semanticTokens = {
|
|
|
97
128
|
darker: {
|
|
98
129
|
value: { base: '{colors.blue.900}', _dark: '{colors.blue.100}' },
|
|
99
130
|
}, // high-contrast text
|
|
131
|
+
// Solid brand-blue *fills* for surfaces with white text/icons on top
|
|
132
|
+
// (modal headers, hero/banner gradients, brand badges). `primary.main`/
|
|
133
|
+
// `primary.dark` lighten ~2 stops in dark — right for foreground, too
|
|
134
|
+
// light as a fill — so these stay a deep blue in dark instead. `base`
|
|
135
|
+
// repeats the old main/dark values, so light is unchanged. Bare accents
|
|
136
|
+
// (dots, progress bars) keep `primary.main`.
|
|
137
|
+
fill: {
|
|
138
|
+
value: { base: '{colors.blue.500}', _dark: '{colors.blue.700}' },
|
|
139
|
+
},
|
|
140
|
+
fillStrong: {
|
|
141
|
+
value: { base: '{colors.blue.700}', _dark: '{colors.blue.800}' },
|
|
142
|
+
},
|
|
100
143
|
},
|
|
101
144
|
|
|
102
145
|
/**
|
|
@@ -234,6 +277,77 @@ export const semanticTokens = {
|
|
|
234
277
|
},
|
|
235
278
|
},
|
|
236
279
|
|
|
280
|
+
/**
|
|
281
|
+
* `slate.*` — the foundational **mode-aware neutral family**.
|
|
282
|
+
*
|
|
283
|
+
* A first-class neutral palette alongside the raw `gray.*` primitives, but
|
|
284
|
+
* mode-aware: each `slate.N` resolves to `gray.N` in light and to the
|
|
285
|
+
* desaturated counterpart of the *mirrored* step in dark, so a single token
|
|
286
|
+
* carries the same tonal level in both modes (e.g. `slate.300` is a light
|
|
287
|
+
* divider in light and the equivalent dark divider in dark — no `_dark={{…}}`
|
|
288
|
+
* at the call site). It lives under `semanticTokens` only because Chakra
|
|
289
|
+
* requires that for the `_dark` flip; conceptually it is a *foundation*
|
|
290
|
+
* (a tonal scale), not a *role*.
|
|
291
|
+
*
|
|
292
|
+
* When to use which:
|
|
293
|
+
* - Prefer the **role tokens** (`fg`/`bg`/`border`) when one matches the
|
|
294
|
+
* intent — they carry semantics and AA-tuned dark values.
|
|
295
|
+
* - Reach for **`slate.N`** when you need a specific neutral tonal step that
|
|
296
|
+
* no role names (mirroring how you'd otherwise drop to a raw `gray.N`, but
|
|
297
|
+
* keeping the dark flip). `slate` and the role tokens are *distinct* ramps
|
|
298
|
+
* (slate is a mechanical mirror; roles are hand-tuned), so they are not
|
|
299
|
+
* interchangeable in dark mode.
|
|
300
|
+
*
|
|
301
|
+
* `600`/`700` are lifted off the straight mirror (#8E939F/#7C818D) so the
|
|
302
|
+
* secondary/muted text they most often carry clears WCAG AA 4.5:1 on the
|
|
303
|
+
* dark canvas/surface — the straight mirrors measured ~3.0–3.9 there.
|
|
304
|
+
*/
|
|
305
|
+
slate: {
|
|
306
|
+
0: { value: { base: '{colors.gray.0}', _dark: desaturatedGray[1500] } },
|
|
307
|
+
50: { value: { base: '{colors.gray.50}', _dark: desaturatedGray[1400] } },
|
|
308
|
+
100: {
|
|
309
|
+
value: { base: '{colors.gray.100}', _dark: desaturatedGray[1300] },
|
|
310
|
+
},
|
|
311
|
+
200: {
|
|
312
|
+
value: { base: '{colors.gray.200}', _dark: desaturatedGray[1200] },
|
|
313
|
+
},
|
|
314
|
+
300: {
|
|
315
|
+
value: { base: '{colors.gray.300}', _dark: desaturatedGray[1100] },
|
|
316
|
+
},
|
|
317
|
+
400: {
|
|
318
|
+
value: { base: '{colors.gray.400}', _dark: desaturatedGray[1000] },
|
|
319
|
+
},
|
|
320
|
+
500: {
|
|
321
|
+
value: { base: '{colors.gray.500}', _dark: desaturatedGray[900] },
|
|
322
|
+
},
|
|
323
|
+
600: { value: { base: '{colors.gray.600}', _dark: '#898E99' } },
|
|
324
|
+
700: { value: { base: '{colors.gray.700}', _dark: '#8D919D' } },
|
|
325
|
+
800: {
|
|
326
|
+
value: { base: '{colors.gray.800}', _dark: desaturatedGray[600] },
|
|
327
|
+
},
|
|
328
|
+
900: {
|
|
329
|
+
value: { base: '{colors.gray.900}', _dark: desaturatedGray[500] },
|
|
330
|
+
},
|
|
331
|
+
1000: {
|
|
332
|
+
value: { base: '{colors.gray.1000}', _dark: desaturatedGray[400] },
|
|
333
|
+
},
|
|
334
|
+
1100: {
|
|
335
|
+
value: { base: '{colors.gray.1100}', _dark: desaturatedGray[300] },
|
|
336
|
+
},
|
|
337
|
+
1200: {
|
|
338
|
+
value: { base: '{colors.gray.1200}', _dark: desaturatedGray[200] },
|
|
339
|
+
},
|
|
340
|
+
1300: {
|
|
341
|
+
value: { base: '{colors.gray.1300}', _dark: desaturatedGray[100] },
|
|
342
|
+
},
|
|
343
|
+
1400: {
|
|
344
|
+
value: { base: '{colors.gray.1400}', _dark: desaturatedGray[50] },
|
|
345
|
+
},
|
|
346
|
+
1500: {
|
|
347
|
+
value: { base: '{colors.gray.1500}', _dark: desaturatedGray[0] },
|
|
348
|
+
},
|
|
349
|
+
},
|
|
350
|
+
|
|
237
351
|
/**
|
|
238
352
|
* Neutral background tokens — map onto the gray.0–1500 scale.
|
|
239
353
|
* Use for: page/canvas, raised surfaces (cards, menus), subtle/muted fills,
|
|
@@ -246,27 +360,55 @@ export const semanticTokens = {
|
|
|
246
360
|
* - inverse: high-contrast surface (flips to light in dark mode)
|
|
247
361
|
*/
|
|
248
362
|
bg: {
|
|
363
|
+
// Chakra's own global css paints `html { background: bg }` — the *plain*
|
|
364
|
+
// `bg` token, not `bg.canvas` — so this is the actual page background
|
|
365
|
+
// wherever no component paints over it. `_light` is pure white (Chakra's
|
|
366
|
+
// value, so light is untouched); `_dark` rejoins our neutral floor instead
|
|
367
|
+
// of Chakra's off-palette black.
|
|
368
|
+
DEFAULT: {
|
|
369
|
+
value: { _light: '{colors.white}', _dark: desaturatedGray[1500] },
|
|
370
|
+
},
|
|
249
371
|
canvas: {
|
|
250
|
-
value: { base: '{colors.gray.0}', _dark:
|
|
372
|
+
value: { base: '{colors.gray.0}', _dark: desaturatedGray[1500] },
|
|
251
373
|
},
|
|
252
374
|
surface: {
|
|
253
|
-
value: { base: '{colors.white}', _dark:
|
|
375
|
+
value: { base: '{colors.white}', _dark: desaturatedGray[1400] },
|
|
376
|
+
},
|
|
377
|
+
// Strongly-raised neutral surface — one level above `surface` (e.g. the
|
|
378
|
+
// selected thumb of a SegmentedControl). In dark this is the *lightest*
|
|
379
|
+
// neutral bg token so a raised element reads as lifted toward the light,
|
|
380
|
+
// not recessed. (The `bg.*` dark ramp is otherwise compressed such that
|
|
381
|
+
// `surface` sits below `subtle`/`muted`; `raised` deliberately tops the
|
|
382
|
+
// scale so "raised" has a token that behaves correctly in dark.)
|
|
383
|
+
// NB: named `raised`, not Chakra's `emphasized` — that default token name
|
|
384
|
+
// cannot be overridden via semanticTokens in this setup (it keeps
|
|
385
|
+
// resolving to Chakra's own gray.200), whereas a fresh name is honoured.
|
|
386
|
+
raised: {
|
|
387
|
+
value: { base: '{colors.white}', _dark: desaturatedGray[1100] },
|
|
254
388
|
},
|
|
255
389
|
subtle: {
|
|
256
|
-
value: { base: '{colors.gray.50}', _dark:
|
|
390
|
+
value: { base: '{colors.gray.50}', _dark: desaturatedGray[1300] },
|
|
257
391
|
},
|
|
258
392
|
muted: {
|
|
259
|
-
value: { base: '{colors.gray.100}', _dark:
|
|
393
|
+
value: { base: '{colors.gray.100}', _dark: desaturatedGray[1200] },
|
|
260
394
|
},
|
|
261
395
|
inverse: {
|
|
262
|
-
value: { base: '{colors.gray.1300}', _dark:
|
|
396
|
+
value: { base: '{colors.gray.1300}', _dark: desaturatedGray[50] },
|
|
397
|
+
},
|
|
398
|
+
// Sunken page wash for list/overview surfaces: a gray floor in light so
|
|
399
|
+
// `bg.surface` cards read as raised above it. In dark the `bg.*` ramp is
|
|
400
|
+
// compressed (`subtle` sits *lighter* than `surface`), which would invert
|
|
401
|
+
// that elevation — so the dark value drops to the canvas floor instead.
|
|
402
|
+
// Component-level fills (hover, chips, inner blocks) keep using `bg.subtle`.
|
|
403
|
+
sunken: {
|
|
404
|
+
value: { base: '{colors.gray.50}', _dark: desaturatedGray[1500] },
|
|
263
405
|
},
|
|
264
406
|
// Override Chakra's default `bg.panel` (whose `_dark` resolves to Chakra's
|
|
265
407
|
// own gray.950 = #111111, off our slate palette). Light value is white —
|
|
266
408
|
// identical to Chakra's default — so this only realigns dark overlay
|
|
267
409
|
// surfaces (Menu / Modal / Popover / Toast) onto our gray scale.
|
|
268
410
|
panel: {
|
|
269
|
-
value: { base: '{colors.white}', _dark:
|
|
411
|
+
value: { base: '{colors.white}', _dark: desaturatedGray[1400] },
|
|
270
412
|
},
|
|
271
413
|
/**
|
|
272
414
|
* Row/selection state tints. Use these for selected rows,
|
|
@@ -300,26 +442,42 @@ export const semanticTokens = {
|
|
|
300
442
|
* - inverse: text on inverse surfaces (flips with mode)
|
|
301
443
|
*/
|
|
302
444
|
fg: {
|
|
445
|
+
// Plain `fg` is Chakra's html-level text color (`html { color: fg }`).
|
|
446
|
+
// `_light` repeats Chakra's value (black); `_dark` rejoins our desaturated
|
|
447
|
+
// neutral so legacy html-level text tracks `fg.default`.
|
|
448
|
+
DEFAULT: {
|
|
449
|
+
value: { _light: '{colors.black}', _dark: desaturatedGray[50] },
|
|
450
|
+
},
|
|
451
|
+
// Strongest text — headings, titles, key figures, emphasis. This is the
|
|
452
|
+
// near-black step that `fg.default` used to be; `default` is now re-pegged
|
|
453
|
+
// to a lighter body weight (see below), so reach for `emphasized` when you
|
|
454
|
+
// specifically want maximum contrast.
|
|
455
|
+
emphasized: {
|
|
456
|
+
value: { base: '{colors.gray.1300}', _dark: desaturatedGray[200] },
|
|
457
|
+
},
|
|
303
458
|
default: {
|
|
304
|
-
//
|
|
305
|
-
//
|
|
306
|
-
//
|
|
307
|
-
//
|
|
308
|
-
|
|
459
|
+
// Primary *body* text. Re-pegged from gray.1300 → gray.1000: near-black
|
|
460
|
+
// (gray.1300, ~14:1 on white) is unusually heavy for running copy, and
|
|
461
|
+
// real product usage clustered well below it. gray.1000 (~9:1) is a
|
|
462
|
+
// comfortable AAA body weight; the old near-black step lives on as
|
|
463
|
+
// `fg.emphasized`. _dark drops one step from emphasized for hierarchy.
|
|
464
|
+
value: { base: '{colors.gray.1000}', _dark: desaturatedGray[300] },
|
|
309
465
|
},
|
|
310
466
|
muted: {
|
|
311
|
-
//
|
|
312
|
-
//
|
|
313
|
-
//
|
|
314
|
-
|
|
315
|
-
// (gray.900) is unchanged.
|
|
316
|
-
value: { base: '{colors.gray.900}', _dark: '{colors.gray.300}' },
|
|
467
|
+
// Secondary text. _dark sits one step below `default` (~9.5:1 on the dark
|
|
468
|
+
// canvas) to keep the default→muted hierarchy gap. Light value (gray.900)
|
|
469
|
+
// is unchanged.
|
|
470
|
+
value: { base: '{colors.gray.900}', _dark: desaturatedGray[400] },
|
|
317
471
|
},
|
|
318
472
|
subtle: {
|
|
319
|
-
|
|
473
|
+
// Tertiary / placeholder / icon text. _dark a11y-bumped from the straight
|
|
474
|
+
// mirror (desaturatedGray[600] #8E939F, ~4.06:1 on bg.muted) to #989DA9
|
|
475
|
+
// (~4.6:1) so it clears AA while staying below fg.muted. Light value
|
|
476
|
+
// (gray.700) is unchanged.
|
|
477
|
+
value: { base: '{colors.gray.700}', _dark: '#989DA9' },
|
|
320
478
|
},
|
|
321
479
|
inverse: {
|
|
322
|
-
value: { base: '{colors.gray.0}', _dark:
|
|
480
|
+
value: { base: '{colors.gray.0}', _dark: desaturatedGray[1400] },
|
|
323
481
|
},
|
|
324
482
|
},
|
|
325
483
|
|
|
@@ -331,14 +489,21 @@ export const semanticTokens = {
|
|
|
331
489
|
* - strong: high-emphasis borders, focus outlines on neutral
|
|
332
490
|
*/
|
|
333
491
|
border: {
|
|
492
|
+
// Plain `border` feeds Chakra's `--global-color-border` (the implicit
|
|
493
|
+
// default border color). Not a text color, so its `_dark` takes the
|
|
494
|
+
// straight halved-saturation mirror (no a11y bump). `_light` repeats
|
|
495
|
+
// Chakra's value so light is untouched.
|
|
496
|
+
DEFAULT: {
|
|
497
|
+
value: { _light: '{colors.gray.200}', _dark: desaturatedGray[800] },
|
|
498
|
+
},
|
|
334
499
|
default: {
|
|
335
|
-
value: { base: '{colors.gray.300}', _dark:
|
|
500
|
+
value: { base: '{colors.gray.300}', _dark: desaturatedGray[1100] },
|
|
336
501
|
},
|
|
337
502
|
subtle: {
|
|
338
|
-
value: { base: '{colors.gray.200}', _dark:
|
|
503
|
+
value: { base: '{colors.gray.200}', _dark: desaturatedGray[1300] },
|
|
339
504
|
},
|
|
340
505
|
strong: {
|
|
341
|
-
value: { base: '{colors.gray.500}', _dark:
|
|
506
|
+
value: { base: '{colors.gray.500}', _dark: desaturatedGray[900] },
|
|
342
507
|
},
|
|
343
508
|
},
|
|
344
509
|
},
|
|
@@ -352,22 +517,47 @@ export const semanticTokens = {
|
|
|
352
517
|
* by reviewers. It is intentionally hand-maintained alongside `semanticTokens`
|
|
353
518
|
* so a rename here is a visible, reviewable diff.
|
|
354
519
|
*
|
|
355
|
-
* Note: `bg.panel`
|
|
356
|
-
*
|
|
357
|
-
*
|
|
520
|
+
* Note: `bg.panel` and the bare `bg`/`fg`/`border` DEFAULT tokens are
|
|
521
|
+
* deliberately omitted — they are internal realignments of Chakra defaults
|
|
522
|
+
* (overlay surfaces and html-level globals), not part of the public migration
|
|
523
|
+
* contract. App code should use `bg.surface`/`bg.canvas`, `fg.default`, etc.
|
|
358
524
|
*/
|
|
359
525
|
export type SemanticColorToken =
|
|
360
526
|
| `bg.${
|
|
361
527
|
| 'canvas'
|
|
362
528
|
| 'surface'
|
|
529
|
+
| 'raised'
|
|
363
530
|
| 'subtle'
|
|
364
531
|
| 'muted'
|
|
532
|
+
| 'sunken'
|
|
365
533
|
| 'inverse'
|
|
366
534
|
| 'selected'
|
|
367
535
|
| 'highlighted'}`
|
|
368
536
|
| 'bg.invalid.subtle'
|
|
369
|
-
| `fg.${'default' | 'muted' | 'subtle' | 'inverse'}`
|
|
537
|
+
| `fg.${'emphasized' | 'default' | 'muted' | 'subtle' | 'inverse'}`
|
|
370
538
|
| `border.${'default' | 'subtle' | 'strong'}`
|
|
539
|
+
// `slate.*` — foundational mode-aware neutral family (a tonal scale, not a
|
|
540
|
+
// role). Prefer a `fg`/`bg`/`border` role token when one fits; reach for
|
|
541
|
+
// `slate.N` when you need a specific neutral step no role names.
|
|
542
|
+
| `slate.${
|
|
543
|
+
| 0
|
|
544
|
+
| 50
|
|
545
|
+
| 100
|
|
546
|
+
| 200
|
|
547
|
+
| 300
|
|
548
|
+
| 400
|
|
549
|
+
| 500
|
|
550
|
+
| 600
|
|
551
|
+
| 700
|
|
552
|
+
| 800
|
|
553
|
+
| 900
|
|
554
|
+
| 1000
|
|
555
|
+
| 1100
|
|
556
|
+
| 1200
|
|
557
|
+
| 1300
|
|
558
|
+
| 1400
|
|
559
|
+
| 1500}`
|
|
560
|
+
| `primary.${'fill' | 'fillStrong'}`
|
|
371
561
|
| `${'primary' | 'secondary' | 'danger' | 'success' | 'warning'}.${
|
|
372
562
|
| 'lightest'
|
|
373
563
|
| 'extralight'
|
package/src/theme/global.ts
CHANGED
|
@@ -20,8 +20,8 @@ export const globalCss = defineGlobalStyles({
|
|
|
20
20
|
// Dark mode body fallbacks. Only activates under the `.dark` class set by the
|
|
21
21
|
// color-mode provider, so light-mode rendering is byte-for-byte identical.
|
|
22
22
|
'.dark': {
|
|
23
|
-
'--chakra-colors-chakra-body-text': '#
|
|
24
|
-
'--chakra-colors-chakra-body-bg': '#
|
|
23
|
+
'--chakra-colors-chakra-body-text': '#E5E8EC', // desaturated gray.200 - Primary text (dark); matches fg.default's _dark
|
|
24
|
+
'--chakra-colors-chakra-body-bg': '#0E1014', // desaturated gray.1500 - Background (dark); matches bg.canvas's _dark
|
|
25
25
|
},
|
|
26
26
|
|
|
27
27
|
html: {
|
|
@@ -49,6 +49,35 @@ export const globalCss = defineGlobalStyles({
|
|
|
49
49
|
"body[data-lang='es']": {
|
|
50
50
|
fontFamily: inter.style.fontFamily,
|
|
51
51
|
},
|
|
52
|
+
|
|
53
|
+
// Global scrollbar styling. Without this, scrollbars fall back to the raw
|
|
54
|
+
// browser chrome — a bright, square, high-contrast track that stands out
|
|
55
|
+
// badly in dark mode. A thin, transparent-track, rounded thumb (mode-aware
|
|
56
|
+
// via the `slate` ramp) is unobtrusive in both modes. Components that opt out
|
|
57
|
+
// (e.g. hidden scrollbars) still override locally.
|
|
58
|
+
'*': {
|
|
59
|
+
scrollbarWidth: 'thin',
|
|
60
|
+
scrollbarColor: 'var(--chakra-colors-slate-300) transparent',
|
|
61
|
+
},
|
|
62
|
+
'::-webkit-scrollbar': {
|
|
63
|
+
width: '10px',
|
|
64
|
+
height: '10px',
|
|
65
|
+
},
|
|
66
|
+
'::-webkit-scrollbar-track': {
|
|
67
|
+
background: 'transparent',
|
|
68
|
+
},
|
|
69
|
+
'::-webkit-scrollbar-thumb': {
|
|
70
|
+
backgroundColor: 'var(--chakra-colors-slate-300)',
|
|
71
|
+
borderRadius: '9999px',
|
|
72
|
+
border: '2px solid transparent',
|
|
73
|
+
backgroundClip: 'content-box',
|
|
74
|
+
},
|
|
75
|
+
'::-webkit-scrollbar-thumb:hover': {
|
|
76
|
+
backgroundColor: 'var(--chakra-colors-slate-400)',
|
|
77
|
+
},
|
|
78
|
+
'::-webkit-scrollbar-corner': {
|
|
79
|
+
background: 'transparent',
|
|
80
|
+
},
|
|
52
81
|
});
|
|
53
82
|
|
|
54
83
|
// Legacy export for backwards compatibility
|