@mindlogic-ai/logician-ui 3.1.0 → 3.2.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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/Tree/Tree.d.ts +20 -0
- package/dist/components/Tree/Tree.d.ts.map +1 -0
- package/dist/components/Tree/Tree.js +43 -0
- package/dist/components/Tree/Tree.js.map +1 -0
- package/dist/components/Tree/Tree.mjs +41 -0
- package/dist/components/Tree/Tree.mjs.map +1 -0
- package/dist/components/Tree/Tree.types.d.ts +21 -0
- package/dist/components/Tree/Tree.types.d.ts.map +1 -0
- package/dist/components/Tree/TreeBranch.d.ts +3 -0
- package/dist/components/Tree/TreeBranch.d.ts.map +1 -0
- package/dist/components/Tree/TreeBranch.js +14 -0
- package/dist/components/Tree/TreeBranch.js.map +1 -0
- package/dist/components/Tree/TreeBranch.mjs +12 -0
- package/dist/components/Tree/TreeBranch.mjs.map +1 -0
- package/dist/components/Tree/TreeBranchContent.d.ts +3 -0
- package/dist/components/Tree/TreeBranchContent.d.ts.map +1 -0
- package/dist/components/Tree/TreeBranchContent.js +14 -0
- package/dist/components/Tree/TreeBranchContent.js.map +1 -0
- package/dist/components/Tree/TreeBranchContent.mjs +12 -0
- package/dist/components/Tree/TreeBranchContent.mjs.map +1 -0
- package/dist/components/Tree/TreeBranchControl.d.ts +3 -0
- package/dist/components/Tree/TreeBranchControl.d.ts.map +1 -0
- package/dist/components/Tree/TreeBranchControl.js +19 -0
- package/dist/components/Tree/TreeBranchControl.js.map +1 -0
- package/dist/components/Tree/TreeBranchControl.mjs +17 -0
- package/dist/components/Tree/TreeBranchControl.mjs.map +1 -0
- package/dist/components/Tree/TreeBranchIndentGuide.d.ts +3 -0
- package/dist/components/Tree/TreeBranchIndentGuide.d.ts.map +1 -0
- package/dist/components/Tree/TreeBranchIndentGuide.js +20 -0
- package/dist/components/Tree/TreeBranchIndentGuide.js.map +1 -0
- package/dist/components/Tree/TreeBranchIndentGuide.mjs +18 -0
- package/dist/components/Tree/TreeBranchIndentGuide.mjs.map +1 -0
- package/dist/components/Tree/TreeBranchIndicator.d.ts +3 -0
- package/dist/components/Tree/TreeBranchIndicator.d.ts.map +1 -0
- package/dist/components/Tree/TreeBranchIndicator.js +15 -0
- package/dist/components/Tree/TreeBranchIndicator.js.map +1 -0
- package/dist/components/Tree/TreeBranchIndicator.mjs +13 -0
- package/dist/components/Tree/TreeBranchIndicator.mjs.map +1 -0
- package/dist/components/Tree/TreeBranchText.d.ts +3 -0
- package/dist/components/Tree/TreeBranchText.d.ts.map +1 -0
- package/dist/components/Tree/TreeBranchText.js +14 -0
- package/dist/components/Tree/TreeBranchText.js.map +1 -0
- package/dist/components/Tree/TreeBranchText.mjs +12 -0
- package/dist/components/Tree/TreeBranchText.mjs.map +1 -0
- package/dist/components/Tree/TreeBranchTrigger.d.ts +3 -0
- package/dist/components/Tree/TreeBranchTrigger.d.ts.map +1 -0
- package/dist/components/Tree/TreeBranchTrigger.js +15 -0
- package/dist/components/Tree/TreeBranchTrigger.js.map +1 -0
- package/dist/components/Tree/TreeBranchTrigger.mjs +13 -0
- package/dist/components/Tree/TreeBranchTrigger.mjs.map +1 -0
- package/dist/components/Tree/TreeItem.d.ts +3 -0
- package/dist/components/Tree/TreeItem.d.ts.map +1 -0
- package/dist/components/Tree/TreeItem.js +25 -0
- package/dist/components/Tree/TreeItem.js.map +1 -0
- package/dist/components/Tree/TreeItem.mjs +23 -0
- package/dist/components/Tree/TreeItem.mjs.map +1 -0
- package/dist/components/Tree/TreeItemIndicator.d.ts +3 -0
- package/dist/components/Tree/TreeItemIndicator.d.ts.map +1 -0
- package/dist/components/Tree/TreeItemIndicator.js +14 -0
- package/dist/components/Tree/TreeItemIndicator.js.map +1 -0
- package/dist/components/Tree/TreeItemIndicator.mjs +12 -0
- package/dist/components/Tree/TreeItemIndicator.mjs.map +1 -0
- package/dist/components/Tree/TreeItemText.d.ts +3 -0
- package/dist/components/Tree/TreeItemText.d.ts.map +1 -0
- package/dist/components/Tree/TreeItemText.js +14 -0
- package/dist/components/Tree/TreeItemText.js.map +1 -0
- package/dist/components/Tree/TreeItemText.mjs +12 -0
- package/dist/components/Tree/TreeItemText.mjs.map +1 -0
- package/dist/components/Tree/TreeLabel.d.ts +3 -0
- package/dist/components/Tree/TreeLabel.d.ts.map +1 -0
- package/dist/components/Tree/TreeLabel.js +14 -0
- package/dist/components/Tree/TreeLabel.js.map +1 -0
- package/dist/components/Tree/TreeLabel.mjs +12 -0
- package/dist/components/Tree/TreeLabel.mjs.map +1 -0
- package/dist/components/Tree/TreeNode.d.ts +5 -0
- package/dist/components/Tree/TreeNode.d.ts.map +1 -0
- package/dist/components/Tree/TreeNode.js +9 -0
- package/dist/components/Tree/TreeNode.js.map +1 -0
- package/dist/components/Tree/TreeNode.mjs +7 -0
- package/dist/components/Tree/TreeNode.mjs.map +1 -0
- package/dist/components/Tree/TreeNodeCheckbox.d.ts +3 -0
- package/dist/components/Tree/TreeNodeCheckbox.d.ts.map +1 -0
- package/dist/components/Tree/TreeNodeCheckbox.js +14 -0
- package/dist/components/Tree/TreeNodeCheckbox.js.map +1 -0
- package/dist/components/Tree/TreeNodeCheckbox.mjs +12 -0
- package/dist/components/Tree/TreeNodeCheckbox.mjs.map +1 -0
- package/dist/components/Tree/TreeNodeContext.d.ts +2 -0
- package/dist/components/Tree/TreeNodeContext.d.ts.map +1 -0
- package/dist/components/Tree/TreeNodeContext.js +9 -0
- package/dist/components/Tree/TreeNodeContext.js.map +1 -0
- package/dist/components/Tree/TreeNodeContext.mjs +7 -0
- package/dist/components/Tree/TreeNodeContext.mjs.map +1 -0
- package/dist/components/Tree/TreeNodeProvider.d.ts +5 -0
- package/dist/components/Tree/TreeNodeProvider.d.ts.map +1 -0
- package/dist/components/Tree/TreeNodeProvider.js +9 -0
- package/dist/components/Tree/TreeNodeProvider.js.map +1 -0
- package/dist/components/Tree/TreeNodeProvider.mjs +7 -0
- package/dist/components/Tree/TreeNodeProvider.mjs.map +1 -0
- package/dist/components/Tree/TreeRoot.d.ts +3 -0
- package/dist/components/Tree/TreeRoot.d.ts.map +1 -0
- package/dist/components/Tree/TreeRoot.js +14 -0
- package/dist/components/Tree/TreeRoot.js.map +1 -0
- package/dist/components/Tree/TreeRoot.mjs +12 -0
- package/dist/components/Tree/TreeRoot.mjs.map +1 -0
- package/dist/components/Tree/TreeTree.d.ts +3 -0
- package/dist/components/Tree/TreeTree.d.ts.map +1 -0
- package/dist/components/Tree/TreeTree.js +14 -0
- package/dist/components/Tree/TreeTree.js.map +1 -0
- package/dist/components/Tree/TreeTree.mjs +12 -0
- package/dist/components/Tree/TreeTree.mjs.map +1 -0
- package/dist/components/Tree/index.d.ts +23 -0
- package/dist/components/Tree/index.d.ts.map +1 -0
- 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 +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +78 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +33 -1
- 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/package.json +10 -2
- package/src/components/Icon/_constants/iconList.ts +35 -0
- package/src/components/Icon/index.tsx +20 -0
- package/src/components/Tree/Tree.stories.tsx +564 -0
- package/src/components/Tree/Tree.tsx +37 -0
- package/src/components/Tree/Tree.types.ts +51 -0
- package/src/components/Tree/TreeBranch.tsx +11 -0
- package/src/components/Tree/TreeBranchContent.tsx +21 -0
- package/src/components/Tree/TreeBranchControl.tsx +28 -0
- package/src/components/Tree/TreeBranchIndentGuide.tsx +20 -0
- package/src/components/Tree/TreeBranchIndicator.tsx +27 -0
- package/src/components/Tree/TreeBranchText.tsx +19 -0
- package/src/components/Tree/TreeBranchTrigger.tsx +25 -0
- package/src/components/Tree/TreeItem.tsx +33 -0
- package/src/components/Tree/TreeItemIndicator.tsx +20 -0
- package/src/components/Tree/TreeItemText.tsx +19 -0
- package/src/components/Tree/TreeLabel.tsx +19 -0
- package/src/components/Tree/TreeNode.tsx +6 -0
- package/src/components/Tree/TreeNodeCheckbox.tsx +12 -0
- package/src/components/Tree/TreeNodeContext.tsx +3 -0
- package/src/components/Tree/TreeNodeProvider.tsx +6 -0
- package/src/components/Tree/TreeRoot.tsx +11 -0
- package/src/components/Tree/TreeTree.tsx +11 -0
- package/src/components/Tree/index.ts +42 -0
- 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 +2 -0
- package/src/test-support/setup.ts +11 -0
|
@@ -79,10 +79,16 @@ import {
|
|
|
79
79
|
LuDownload,
|
|
80
80
|
LuExternalLink,
|
|
81
81
|
LuGraduationCap,
|
|
82
|
+
LuGripVertical,
|
|
82
83
|
LuInfo,
|
|
83
84
|
LuMenu,
|
|
85
|
+
LuMinus,
|
|
86
|
+
LuOctagonAlert,
|
|
87
|
+
LuPlus,
|
|
84
88
|
LuReceipt,
|
|
85
89
|
LuSendHorizontal,
|
|
90
|
+
LuStickyNote,
|
|
91
|
+
LuTriangleAlert,
|
|
86
92
|
LuUpload,
|
|
87
93
|
} from 'react-icons/lu';
|
|
88
94
|
import {
|
|
@@ -102,13 +108,24 @@ import { PiChatSlashBold, PiExam, PiGlobe, PiGlobeX } from 'react-icons/pi';
|
|
|
102
108
|
import { RxDotsHorizontal } from 'react-icons/rx';
|
|
103
109
|
import { SlSettings } from 'react-icons/sl';
|
|
104
110
|
import {
|
|
111
|
+
TbAlertCircle,
|
|
105
112
|
TbAppWindowFilled,
|
|
113
|
+
TbArrowBackUp,
|
|
114
|
+
TbArrowForwardUp,
|
|
115
|
+
TbCheck,
|
|
116
|
+
TbChevronDown,
|
|
117
|
+
TbChevronUp,
|
|
106
118
|
TbInfinity,
|
|
107
119
|
TbLayoutNavbar,
|
|
120
|
+
TbLock,
|
|
108
121
|
TbLockCog,
|
|
122
|
+
TbLockOpen,
|
|
123
|
+
TbMaximize,
|
|
109
124
|
TbMessageChatbotFilled,
|
|
125
|
+
TbSitemap,
|
|
110
126
|
TbSum,
|
|
111
127
|
TbWorldSearch,
|
|
128
|
+
TbX,
|
|
112
129
|
} from 'react-icons/tb';
|
|
113
130
|
|
|
114
131
|
import createIcon from '@/components/Icon/_utils/createIcon';
|
|
@@ -251,6 +268,13 @@ const iconList = {
|
|
|
251
268
|
LuReceipt,
|
|
252
269
|
LuSendHorizontal,
|
|
253
270
|
LuUpload,
|
|
271
|
+
// Lucide icons surfaced under friendly names (used by Workflow chrome)
|
|
272
|
+
AlertTriangle: LuTriangleAlert,
|
|
273
|
+
AlertOctagon: LuOctagonAlert,
|
|
274
|
+
GripVertical: LuGripVertical,
|
|
275
|
+
StickyNote: LuStickyNote,
|
|
276
|
+
Minus: LuMinus,
|
|
277
|
+
Plus: LuPlus,
|
|
254
278
|
|
|
255
279
|
// MD Icons
|
|
256
280
|
MdAnnouncement,
|
|
@@ -278,13 +302,24 @@ const iconList = {
|
|
|
278
302
|
SlSettings,
|
|
279
303
|
|
|
280
304
|
// TB Icons
|
|
305
|
+
TbAlertCircle,
|
|
281
306
|
TbAppWindowFilled,
|
|
307
|
+
TbArrowBackUp,
|
|
308
|
+
TbArrowForwardUp,
|
|
309
|
+
TbCheck,
|
|
310
|
+
TbChevronDown,
|
|
311
|
+
TbChevronUp,
|
|
282
312
|
TbInfinity,
|
|
283
313
|
TbLayoutNavbar,
|
|
314
|
+
TbLock,
|
|
284
315
|
TbLockCog,
|
|
316
|
+
TbLockOpen,
|
|
317
|
+
TbMaximize,
|
|
285
318
|
TbMessageChatbotFilled,
|
|
319
|
+
TbSitemap,
|
|
286
320
|
TbSum,
|
|
287
321
|
TbWorldSearch,
|
|
322
|
+
TbX,
|
|
288
323
|
|
|
289
324
|
// Custom SVG Icons
|
|
290
325
|
Analytics,
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { Icons } from './_constants/iconList';
|
|
2
2
|
|
|
3
|
+
export type { CreatedIcon } from './_utils/createIcon';
|
|
4
|
+
|
|
3
5
|
// 각 아이콘을 개별적으로 export (Icons. 없이 직접 사용 가능)
|
|
4
6
|
export const {
|
|
5
7
|
// BI Icons
|
|
@@ -117,13 +119,31 @@ export const {
|
|
|
117
119
|
// SL Icons
|
|
118
120
|
SlSettings,
|
|
119
121
|
// TB Icons
|
|
122
|
+
TbAlertCircle,
|
|
120
123
|
TbAppWindowFilled,
|
|
124
|
+
TbArrowBackUp,
|
|
125
|
+
TbArrowForwardUp,
|
|
126
|
+
TbCheck,
|
|
127
|
+
TbChevronDown,
|
|
128
|
+
TbChevronUp,
|
|
121
129
|
TbInfinity,
|
|
122
130
|
TbLayoutNavbar,
|
|
131
|
+
TbLock,
|
|
123
132
|
TbLockCog,
|
|
133
|
+
TbLockOpen,
|
|
134
|
+
TbMaximize,
|
|
124
135
|
TbMessageChatbotFilled,
|
|
136
|
+
TbSitemap,
|
|
125
137
|
TbSum,
|
|
126
138
|
TbWorldSearch,
|
|
139
|
+
TbX,
|
|
140
|
+
// Lucide icons surfaced under friendly names (Workflow chrome)
|
|
141
|
+
AlertTriangle,
|
|
142
|
+
AlertOctagon,
|
|
143
|
+
GripVertical,
|
|
144
|
+
StickyNote,
|
|
145
|
+
Minus,
|
|
146
|
+
Plus,
|
|
127
147
|
// Custom SVG Icons
|
|
128
148
|
Analytics,
|
|
129
149
|
Bulb,
|
|
@@ -0,0 +1,564 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
2
|
+
import { Box, HStack, Stack, Text } from '@chakra-ui/react';
|
|
3
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
4
|
+
import { IoFolder, IoFolderOpen } from 'react-icons/io5';
|
|
5
|
+
|
|
6
|
+
import { Tree } from './Tree';
|
|
7
|
+
import {
|
|
8
|
+
createTreeCollection,
|
|
9
|
+
type TreeExpandedChangeDetails,
|
|
10
|
+
type TreeSelectionChangeDetails,
|
|
11
|
+
} from './index';
|
|
12
|
+
|
|
13
|
+
interface Node {
|
|
14
|
+
id: string;
|
|
15
|
+
name: string;
|
|
16
|
+
children?: Node[];
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Realistic 5-level deep org chart. Exercises deep nesting, mixed
|
|
21
|
+
* branch/leaf siblings, and long-ish Korean labels (회사 → 본부 →
|
|
22
|
+
* 그룹 → 팀 → 파트 → 멤버).
|
|
23
|
+
*/
|
|
24
|
+
const orgSample: Node = {
|
|
25
|
+
id: 'ROOT',
|
|
26
|
+
name: '',
|
|
27
|
+
children: [
|
|
28
|
+
{
|
|
29
|
+
id: 'hq',
|
|
30
|
+
name: '본사',
|
|
31
|
+
children: [
|
|
32
|
+
{
|
|
33
|
+
id: 'hq-mgmt',
|
|
34
|
+
name: '경영지원본부',
|
|
35
|
+
children: [
|
|
36
|
+
{
|
|
37
|
+
id: 'hq-mgmt-hr',
|
|
38
|
+
name: '인사팀',
|
|
39
|
+
children: [
|
|
40
|
+
{
|
|
41
|
+
id: 'hq-mgmt-hr-recruit',
|
|
42
|
+
name: '채용파트',
|
|
43
|
+
children: [
|
|
44
|
+
{ id: 'hq-mgmt-hr-recruit-kim', name: '김채용' },
|
|
45
|
+
{ id: 'hq-mgmt-hr-recruit-lee', name: '이지원' },
|
|
46
|
+
],
|
|
47
|
+
},
|
|
48
|
+
{ id: 'hq-mgmt-hr-eval', name: '평가파트' },
|
|
49
|
+
{ id: 'hq-mgmt-hr-edu', name: '교육파트' },
|
|
50
|
+
],
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
id: 'hq-mgmt-fin',
|
|
54
|
+
name: '재무팀',
|
|
55
|
+
children: [
|
|
56
|
+
{ id: 'hq-mgmt-fin-acct', name: '회계파트' },
|
|
57
|
+
{ id: 'hq-mgmt-fin-tax', name: '세무파트' },
|
|
58
|
+
],
|
|
59
|
+
},
|
|
60
|
+
{ id: 'hq-mgmt-legal', name: '법무팀' },
|
|
61
|
+
],
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
id: 'hq-dev',
|
|
65
|
+
name: '개발본부',
|
|
66
|
+
children: [
|
|
67
|
+
{
|
|
68
|
+
id: 'hq-dev-backend',
|
|
69
|
+
name: '백엔드그룹',
|
|
70
|
+
children: [
|
|
71
|
+
{
|
|
72
|
+
id: 'hq-dev-backend-api',
|
|
73
|
+
name: 'API팀',
|
|
74
|
+
children: [
|
|
75
|
+
{ id: 'hq-dev-backend-api-cs', name: '김철수' },
|
|
76
|
+
{ id: 'hq-dev-backend-api-yh', name: '이영희' },
|
|
77
|
+
{ id: 'hq-dev-backend-api-jm', name: '박지민' },
|
|
78
|
+
],
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
id: 'hq-dev-backend-db',
|
|
82
|
+
name: 'DB팀',
|
|
83
|
+
children: [{ id: 'hq-dev-backend-db-sh', name: '최성호' }],
|
|
84
|
+
},
|
|
85
|
+
{ id: 'hq-dev-backend-platform', name: '플랫폼팀' },
|
|
86
|
+
],
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
id: 'hq-dev-frontend',
|
|
90
|
+
name: '프론트엔드그룹',
|
|
91
|
+
children: [
|
|
92
|
+
{ id: 'hq-dev-frontend-web', name: '웹팀' },
|
|
93
|
+
{ id: 'hq-dev-frontend-mobile', name: '모바일팀' },
|
|
94
|
+
],
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
id: 'hq-dev-ai',
|
|
98
|
+
name: 'AI그룹',
|
|
99
|
+
children: [
|
|
100
|
+
{
|
|
101
|
+
id: 'hq-dev-ai-research',
|
|
102
|
+
name: '연구파트',
|
|
103
|
+
children: [
|
|
104
|
+
{ id: 'hq-dev-ai-research-senior', name: '시니어 연구원' },
|
|
105
|
+
{ id: 'hq-dev-ai-research-junior', name: '주니어 연구원' },
|
|
106
|
+
],
|
|
107
|
+
},
|
|
108
|
+
{ id: 'hq-dev-ai-eng', name: '엔지니어링파트' },
|
|
109
|
+
],
|
|
110
|
+
},
|
|
111
|
+
],
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
id: 'hq-sales',
|
|
115
|
+
name: '영업본부',
|
|
116
|
+
children: [
|
|
117
|
+
{ id: 'hq-sales-domestic', name: '국내영업팀' },
|
|
118
|
+
{
|
|
119
|
+
id: 'hq-sales-global',
|
|
120
|
+
name: '해외영업팀',
|
|
121
|
+
children: [
|
|
122
|
+
{
|
|
123
|
+
id: 'hq-sales-global-amer',
|
|
124
|
+
name: '미주파트',
|
|
125
|
+
children: [
|
|
126
|
+
{ id: 'hq-sales-global-amer-us', name: '미국' },
|
|
127
|
+
{ id: 'hq-sales-global-amer-ca', name: '캐나다' },
|
|
128
|
+
],
|
|
129
|
+
},
|
|
130
|
+
{ id: 'hq-sales-global-eu', name: '유럽파트' },
|
|
131
|
+
{
|
|
132
|
+
id: 'hq-sales-global-asia',
|
|
133
|
+
name: '아시아파트',
|
|
134
|
+
children: [
|
|
135
|
+
{ id: 'hq-sales-global-asia-jp', name: '일본' },
|
|
136
|
+
{ id: 'hq-sales-global-asia-cn', name: '중국' },
|
|
137
|
+
],
|
|
138
|
+
},
|
|
139
|
+
],
|
|
140
|
+
},
|
|
141
|
+
],
|
|
142
|
+
},
|
|
143
|
+
],
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
id: 'rnd',
|
|
147
|
+
name: 'R&D센터',
|
|
148
|
+
children: [
|
|
149
|
+
{ id: 'rnd-ml', name: '머신러닝팀' },
|
|
150
|
+
{ id: 'rnd-data', name: '데이터팀' },
|
|
151
|
+
{ id: 'rnd-infra', name: '리서치인프라팀' },
|
|
152
|
+
],
|
|
153
|
+
},
|
|
154
|
+
{ id: 'subsidiary', name: '미국지사' },
|
|
155
|
+
],
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
const orgCollection = createTreeCollection<Node>({
|
|
159
|
+
rootNode: orgSample,
|
|
160
|
+
nodeToValue: (node) => node.id,
|
|
161
|
+
nodeToString: (node) => node.name,
|
|
162
|
+
});
|
|
163
|
+
|
|
164
|
+
// Convenience: all branch ids — for "expand all" demos.
|
|
165
|
+
const allBranchIds = (function collect(n: Node): string[] {
|
|
166
|
+
if (!n.children) return [];
|
|
167
|
+
return n.children.flatMap(c =>
|
|
168
|
+
c.children ? [c.id, ...collect(c)] : [],
|
|
169
|
+
);
|
|
170
|
+
})(orgSample);
|
|
171
|
+
|
|
172
|
+
const renderNode = ({
|
|
173
|
+
node,
|
|
174
|
+
nodeState,
|
|
175
|
+
}: {
|
|
176
|
+
node: Node;
|
|
177
|
+
nodeState: { isBranch: boolean };
|
|
178
|
+
}) =>
|
|
179
|
+
nodeState.isBranch ? (
|
|
180
|
+
<Tree.BranchControl>
|
|
181
|
+
<Tree.BranchIndicator />
|
|
182
|
+
<Tree.BranchText>{node.name}</Tree.BranchText>
|
|
183
|
+
</Tree.BranchControl>
|
|
184
|
+
) : (
|
|
185
|
+
<Tree.Item>
|
|
186
|
+
<Tree.ItemText>{node.name}</Tree.ItemText>
|
|
187
|
+
</Tree.Item>
|
|
188
|
+
);
|
|
189
|
+
|
|
190
|
+
const meta = {
|
|
191
|
+
title: 'Components/Tree',
|
|
192
|
+
component: Tree.Root,
|
|
193
|
+
parameters: { layout: 'padded' },
|
|
194
|
+
} satisfies Meta<typeof Tree.Root>;
|
|
195
|
+
|
|
196
|
+
export default meta;
|
|
197
|
+
|
|
198
|
+
type Story = StoryObj<typeof meta>;
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* All branches collapsed — the simplest entry point. Click a branch
|
|
202
|
+
* (or the chevron) to expand. Single selection mode by default.
|
|
203
|
+
*/
|
|
204
|
+
export const Default: Story = {
|
|
205
|
+
args: { collection: orgCollection, 'aria-label': '조직' },
|
|
206
|
+
render: (args) => (
|
|
207
|
+
<Box maxWidth="360px">
|
|
208
|
+
<Tree.Root {...args}>
|
|
209
|
+
<Tree.Tree>
|
|
210
|
+
<Tree.Node
|
|
211
|
+
indentGuide={<Tree.BranchIndentGuide />}
|
|
212
|
+
render={renderNode}
|
|
213
|
+
/>
|
|
214
|
+
</Tree.Tree>
|
|
215
|
+
</Tree.Root>
|
|
216
|
+
</Box>
|
|
217
|
+
),
|
|
218
|
+
};
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* Some branches pre-expanded so the depth-based indent and the
|
|
222
|
+
* vertical indent guides are visible without interaction.
|
|
223
|
+
*/
|
|
224
|
+
export const DefaultExpanded: Story = {
|
|
225
|
+
args: {
|
|
226
|
+
collection: orgCollection,
|
|
227
|
+
'aria-label': '조직',
|
|
228
|
+
defaultExpandedValue: [
|
|
229
|
+
'hq',
|
|
230
|
+
'hq-dev',
|
|
231
|
+
'hq-dev-backend',
|
|
232
|
+
'hq-dev-backend-api',
|
|
233
|
+
],
|
|
234
|
+
defaultSelectedValue: ['hq-dev-backend-api-yh'],
|
|
235
|
+
},
|
|
236
|
+
render: (args) => (
|
|
237
|
+
<Box maxWidth="360px">
|
|
238
|
+
<Tree.Root {...args}>
|
|
239
|
+
<Tree.Tree>
|
|
240
|
+
<Tree.Node
|
|
241
|
+
indentGuide={<Tree.BranchIndentGuide />}
|
|
242
|
+
render={renderNode}
|
|
243
|
+
/>
|
|
244
|
+
</Tree.Tree>
|
|
245
|
+
</Tree.Root>
|
|
246
|
+
</Box>
|
|
247
|
+
),
|
|
248
|
+
};
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* Every branch expanded. Use to verify that depth-based padding and
|
|
252
|
+
* the stacked vertical indent guides line up correctly at 4-5 levels
|
|
253
|
+
* deep (본사 → 개발본부 → 백엔드그룹 → API팀 → 김철수).
|
|
254
|
+
*/
|
|
255
|
+
export const DeeplyNested: Story = {
|
|
256
|
+
args: {
|
|
257
|
+
collection: orgCollection,
|
|
258
|
+
'aria-label': '조직',
|
|
259
|
+
defaultExpandedValue: allBranchIds,
|
|
260
|
+
},
|
|
261
|
+
render: (args) => (
|
|
262
|
+
<Box maxWidth="420px">
|
|
263
|
+
<Tree.Root {...args}>
|
|
264
|
+
<Tree.Tree>
|
|
265
|
+
<Tree.Node
|
|
266
|
+
indentGuide={<Tree.BranchIndentGuide />}
|
|
267
|
+
render={renderNode}
|
|
268
|
+
/>
|
|
269
|
+
</Tree.Tree>
|
|
270
|
+
</Tree.Root>
|
|
271
|
+
</Box>
|
|
272
|
+
),
|
|
273
|
+
};
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* Side-by-side comparison: default style (chevron + depth padding only)
|
|
277
|
+
* vs. factchat 그룹 관리 style (∟ leaf prefix using the `Tree.Item`
|
|
278
|
+
* children slot). Demonstrates that any custom content can be inlined
|
|
279
|
+
* before `Tree.ItemText`.
|
|
280
|
+
*/
|
|
281
|
+
export const LeafIndicatorComparison: Story = {
|
|
282
|
+
args: {
|
|
283
|
+
collection: orgCollection,
|
|
284
|
+
'aria-label': '조직',
|
|
285
|
+
defaultExpandedValue: ['hq', 'hq-dev', 'hq-dev-backend', 'hq-dev-backend-api'],
|
|
286
|
+
},
|
|
287
|
+
render: (args) => {
|
|
288
|
+
const renderWithLeafPrefix = ({
|
|
289
|
+
node,
|
|
290
|
+
nodeState,
|
|
291
|
+
}: {
|
|
292
|
+
node: Node;
|
|
293
|
+
nodeState: { isBranch: boolean };
|
|
294
|
+
}) =>
|
|
295
|
+
nodeState.isBranch ? (
|
|
296
|
+
<Tree.BranchControl>
|
|
297
|
+
<Tree.BranchIndicator />
|
|
298
|
+
<Tree.BranchText>{node.name}</Tree.BranchText>
|
|
299
|
+
</Tree.BranchControl>
|
|
300
|
+
) : (
|
|
301
|
+
<Tree.Item>
|
|
302
|
+
<Text as="span" color="fg.muted" fontSize="sm" lineHeight="1">
|
|
303
|
+
∟
|
|
304
|
+
</Text>
|
|
305
|
+
<Tree.ItemText>{node.name}</Tree.ItemText>
|
|
306
|
+
</Tree.Item>
|
|
307
|
+
);
|
|
308
|
+
|
|
309
|
+
return (
|
|
310
|
+
<HStack align="flex-start" gap={8}>
|
|
311
|
+
<Stack gap={2} width="360px">
|
|
312
|
+
<Text fontSize="sm" fontWeight="semibold" color="fg.muted">
|
|
313
|
+
기본
|
|
314
|
+
</Text>
|
|
315
|
+
<Tree.Root {...args}>
|
|
316
|
+
<Tree.Tree>
|
|
317
|
+
<Tree.Node
|
|
318
|
+
indentGuide={<Tree.BranchIndentGuide />}
|
|
319
|
+
render={renderNode}
|
|
320
|
+
/>
|
|
321
|
+
</Tree.Tree>
|
|
322
|
+
</Tree.Root>
|
|
323
|
+
</Stack>
|
|
324
|
+
<Stack gap={2} width="360px">
|
|
325
|
+
<Text fontSize="sm" fontWeight="semibold" color="fg.muted">
|
|
326
|
+
∟ leaf 표시 (factchat 그룹 관리 스타일)
|
|
327
|
+
</Text>
|
|
328
|
+
<Tree.Root {...args}>
|
|
329
|
+
<Tree.Tree>
|
|
330
|
+
<Tree.Node
|
|
331
|
+
indentGuide={<Tree.BranchIndentGuide />}
|
|
332
|
+
render={renderWithLeafPrefix}
|
|
333
|
+
/>
|
|
334
|
+
</Tree.Tree>
|
|
335
|
+
</Tree.Root>
|
|
336
|
+
</Stack>
|
|
337
|
+
</HStack>
|
|
338
|
+
);
|
|
339
|
+
},
|
|
340
|
+
};
|
|
341
|
+
|
|
342
|
+
/**
|
|
343
|
+
* Replace the default chevron with a folder icon that swaps between
|
|
344
|
+
* `IoFolder` (closed) and `IoFolderOpen` (expanded). Uses the
|
|
345
|
+
* `nodeState.expanded` boolean exposed by Ark's render prop, and
|
|
346
|
+
* sets `transform="none"` on the indicator to suppress the recipe's
|
|
347
|
+
* default `_open: rotate(90deg)` (which fits a chevron, not a folder).
|
|
348
|
+
*/
|
|
349
|
+
export const CustomBranchIcon: Story = {
|
|
350
|
+
args: {
|
|
351
|
+
collection: orgCollection,
|
|
352
|
+
'aria-label': '조직',
|
|
353
|
+
defaultExpandedValue: ['hq', 'hq-mgmt', 'hq-mgmt-hr'],
|
|
354
|
+
},
|
|
355
|
+
render: (args) => {
|
|
356
|
+
const renderWithFolder = ({
|
|
357
|
+
node,
|
|
358
|
+
nodeState,
|
|
359
|
+
}: {
|
|
360
|
+
node: Node;
|
|
361
|
+
nodeState: { isBranch: boolean; expanded: boolean };
|
|
362
|
+
}) =>
|
|
363
|
+
nodeState.isBranch ? (
|
|
364
|
+
<Tree.BranchControl>
|
|
365
|
+
<Tree.BranchIndicator
|
|
366
|
+
transform="none"
|
|
367
|
+
_open={{ transform: 'none' }}
|
|
368
|
+
>
|
|
369
|
+
{nodeState.expanded ? <IoFolderOpen /> : <IoFolder />}
|
|
370
|
+
</Tree.BranchIndicator>
|
|
371
|
+
<Tree.BranchText>{node.name}</Tree.BranchText>
|
|
372
|
+
</Tree.BranchControl>
|
|
373
|
+
) : (
|
|
374
|
+
<Tree.Item>
|
|
375
|
+
<Tree.ItemText>{node.name}</Tree.ItemText>
|
|
376
|
+
</Tree.Item>
|
|
377
|
+
);
|
|
378
|
+
|
|
379
|
+
return (
|
|
380
|
+
<Box maxWidth="360px">
|
|
381
|
+
<Tree.Root {...args}>
|
|
382
|
+
<Tree.Tree>
|
|
383
|
+
<Tree.Node
|
|
384
|
+
indentGuide={<Tree.BranchIndentGuide />}
|
|
385
|
+
render={renderWithFolder}
|
|
386
|
+
/>
|
|
387
|
+
</Tree.Tree>
|
|
388
|
+
</Tree.Root>
|
|
389
|
+
</Box>
|
|
390
|
+
);
|
|
391
|
+
},
|
|
392
|
+
};
|
|
393
|
+
|
|
394
|
+
/**
|
|
395
|
+
* The recipe ships three size variants (`xs` / `sm` / `md`). They
|
|
396
|
+
* scale row text size, padding-block, indentation step and icon size
|
|
397
|
+
* proportionally — useful for dense sidebars (xs) vs. main content (md).
|
|
398
|
+
*/
|
|
399
|
+
export const SizeVariants: Story = {
|
|
400
|
+
args: {
|
|
401
|
+
collection: orgCollection,
|
|
402
|
+
'aria-label': '조직',
|
|
403
|
+
defaultExpandedValue: ['hq', 'hq-dev', 'hq-dev-backend'],
|
|
404
|
+
},
|
|
405
|
+
render: (args) => (
|
|
406
|
+
<HStack align="flex-start" gap={6}>
|
|
407
|
+
{(['xs', 'sm', 'md'] as const).map(size => (
|
|
408
|
+
<Stack key={size} gap={2} width="300px">
|
|
409
|
+
<Text fontSize="sm" fontWeight="semibold" color="fg.muted">
|
|
410
|
+
size = {size}
|
|
411
|
+
</Text>
|
|
412
|
+
<Tree.Root {...args} size={size}>
|
|
413
|
+
<Tree.Tree>
|
|
414
|
+
<Tree.Node
|
|
415
|
+
indentGuide={<Tree.BranchIndentGuide />}
|
|
416
|
+
render={renderNode}
|
|
417
|
+
/>
|
|
418
|
+
</Tree.Tree>
|
|
419
|
+
</Tree.Root>
|
|
420
|
+
</Stack>
|
|
421
|
+
))}
|
|
422
|
+
</HStack>
|
|
423
|
+
),
|
|
424
|
+
};
|
|
425
|
+
|
|
426
|
+
/**
|
|
427
|
+
* Long labels that exceed the container width — verifies the leaf
|
|
428
|
+
* rows wrap (or, in tight columns, truncate) without breaking the
|
|
429
|
+
* depth-based start padding alignment.
|
|
430
|
+
*/
|
|
431
|
+
const longLabelSample: Node = {
|
|
432
|
+
id: 'ROOT',
|
|
433
|
+
name: '',
|
|
434
|
+
children: [
|
|
435
|
+
{
|
|
436
|
+
id: 'long-root',
|
|
437
|
+
name: '아주 긴 한글 그룹명 — 사이드바 폭을 시험하기 위한 항목',
|
|
438
|
+
children: [
|
|
439
|
+
{
|
|
440
|
+
id: 'long-child-1',
|
|
441
|
+
name: '여러 줄로 줄바꿈이 일어날 수 있는 충분히 긴 자식 노드의 이름',
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
id: 'long-child-2',
|
|
445
|
+
name: '비교적 짧은 이름',
|
|
446
|
+
},
|
|
447
|
+
{
|
|
448
|
+
id: 'long-branch',
|
|
449
|
+
name: '하위 그룹도 있는, 마찬가지로 길어서 줄바꿈 테스트가 가능한 브랜치 노드',
|
|
450
|
+
children: [
|
|
451
|
+
{
|
|
452
|
+
id: 'long-leaf',
|
|
453
|
+
name: '깊게 들여쓰여진 상태에서의 매우 긴 잎 노드 — 가로 폭이 좁아질수록 줄바꿈이 잘 일어나야 합니다',
|
|
454
|
+
},
|
|
455
|
+
],
|
|
456
|
+
},
|
|
457
|
+
],
|
|
458
|
+
},
|
|
459
|
+
],
|
|
460
|
+
};
|
|
461
|
+
|
|
462
|
+
export const LongLabels: Story = {
|
|
463
|
+
args: {
|
|
464
|
+
collection: createTreeCollection<Node>({
|
|
465
|
+
rootNode: longLabelSample,
|
|
466
|
+
nodeToValue: (node) => node.id,
|
|
467
|
+
nodeToString: (node) => node.name,
|
|
468
|
+
}),
|
|
469
|
+
'aria-label': '긴 라벨 트리',
|
|
470
|
+
defaultExpandedValue: ['long-root', 'long-branch'],
|
|
471
|
+
},
|
|
472
|
+
render: (args) => (
|
|
473
|
+
<Box maxWidth="280px">
|
|
474
|
+
<Tree.Root {...args}>
|
|
475
|
+
<Tree.Tree>
|
|
476
|
+
<Tree.Node
|
|
477
|
+
indentGuide={<Tree.BranchIndentGuide />}
|
|
478
|
+
render={renderNode}
|
|
479
|
+
/>
|
|
480
|
+
</Tree.Tree>
|
|
481
|
+
</Tree.Root>
|
|
482
|
+
</Box>
|
|
483
|
+
),
|
|
484
|
+
};
|
|
485
|
+
|
|
486
|
+
const ControlledTree = () => {
|
|
487
|
+
const [expandedValue, setExpandedValue] = useState<string[]>([
|
|
488
|
+
'hq',
|
|
489
|
+
'hq-mgmt',
|
|
490
|
+
'hq-mgmt-hr',
|
|
491
|
+
]);
|
|
492
|
+
const [selectedValue, setSelectedValue] = useState<string[]>([
|
|
493
|
+
'hq-mgmt-hr-eval',
|
|
494
|
+
]);
|
|
495
|
+
|
|
496
|
+
return (
|
|
497
|
+
<Box maxWidth="360px">
|
|
498
|
+
<Tree.Root
|
|
499
|
+
collection={orgCollection}
|
|
500
|
+
aria-label="조직"
|
|
501
|
+
expandedValue={expandedValue}
|
|
502
|
+
onExpandedChange={(details: TreeExpandedChangeDetails) =>
|
|
503
|
+
setExpandedValue(details.expandedValue)
|
|
504
|
+
}
|
|
505
|
+
selectedValue={selectedValue}
|
|
506
|
+
onSelectionChange={(details: TreeSelectionChangeDetails) =>
|
|
507
|
+
setSelectedValue(details.selectedValue)
|
|
508
|
+
}
|
|
509
|
+
>
|
|
510
|
+
<Tree.Tree>
|
|
511
|
+
<Tree.Node
|
|
512
|
+
indentGuide={<Tree.BranchIndentGuide />}
|
|
513
|
+
render={renderNode}
|
|
514
|
+
/>
|
|
515
|
+
</Tree.Tree>
|
|
516
|
+
</Tree.Root>
|
|
517
|
+
<Text mt={4} fontSize="xs" color="fg.muted">
|
|
518
|
+
expanded: {expandedValue.join(', ') || '(none)'}
|
|
519
|
+
<br />
|
|
520
|
+
selected: {selectedValue.join(', ') || '(none)'}
|
|
521
|
+
</Text>
|
|
522
|
+
</Box>
|
|
523
|
+
);
|
|
524
|
+
};
|
|
525
|
+
|
|
526
|
+
/**
|
|
527
|
+
* Fully controlled — `expandedValue` and `selectedValue` are driven
|
|
528
|
+
* by React state. Useful when parent state needs to react to user
|
|
529
|
+
* navigation (e.g., sync with URL).
|
|
530
|
+
*/
|
|
531
|
+
export const Controlled: Story = {
|
|
532
|
+
args: { collection: orgCollection },
|
|
533
|
+
render: () => <ControlledTree />,
|
|
534
|
+
};
|
|
535
|
+
|
|
536
|
+
/**
|
|
537
|
+
* Multiple selection — Ctrl/Cmd-click (or Shift-click for range) to
|
|
538
|
+
* select more than one node at a time.
|
|
539
|
+
*/
|
|
540
|
+
export const MultipleSelection: Story = {
|
|
541
|
+
args: {
|
|
542
|
+
collection: orgCollection,
|
|
543
|
+
'aria-label': '조직',
|
|
544
|
+
selectionMode: 'multiple',
|
|
545
|
+
defaultExpandedValue: ['hq', 'hq-dev', 'hq-dev-backend'],
|
|
546
|
+
defaultSelectedValue: [
|
|
547
|
+
'hq-dev-backend-api',
|
|
548
|
+
'hq-dev-backend-db',
|
|
549
|
+
'hq-dev-frontend',
|
|
550
|
+
],
|
|
551
|
+
},
|
|
552
|
+
render: (args) => (
|
|
553
|
+
<Box maxWidth="360px">
|
|
554
|
+
<Tree.Root {...args}>
|
|
555
|
+
<Tree.Tree>
|
|
556
|
+
<Tree.Node
|
|
557
|
+
indentGuide={<Tree.BranchIndentGuide />}
|
|
558
|
+
render={renderNode}
|
|
559
|
+
/>
|
|
560
|
+
</Tree.Tree>
|
|
561
|
+
</Tree.Root>
|
|
562
|
+
</Box>
|
|
563
|
+
),
|
|
564
|
+
};
|