@ark-ui/solid
Version:
A collection of unstyled, accessible UI components for Solid, utilizing state machines for seamless interaction.
134 lines (113 loc) • 11.1 kB
TypeScript
import { NodeState, NodeProps, ExpandedChangeDetails, FocusChangeDetails, LoadChildrenCompleteDetails, LoadChildrenDetails, SelectionChangeDetails } from '@zag-js/tree-view';
export { ExpandedChangeDetails as TreeViewExpandedChangeDetails, FocusChangeDetails as TreeViewFocusChangeDetails, LoadChildrenCompleteDetails as TreeViewLoadChildrenCompleteDetails, LoadChildrenDetails as TreeViewLoadChildrenDetails, NodeProps as TreeViewNodeProps, NodeState as TreeViewNodeState, SelectionChangeDetails as TreeViewSelectionChangeDetails, anatomy as treeViewAnatomy } from '@zag-js/tree-view';
import { TreeNode } from '@zag-js/collection';
export { TreeCollection, TreeNode } from '@zag-js/collection';
export { c as createFileTreeCollection, a as createTreeCollection } from '../../tree-collection-BGrnj3vg.js';
import * as solid_js from 'solid-js';
import { JSX, Accessor } from 'solid-js';
import { A as Assign } from '../../types-Bc0WfPsv.js';
import { HTMLProps, PolymorphicProps } from '../factory.js';
import { i as UseTreeViewReturn, T as TreeViewRoot, a as TreeViewRootBaseProps, b as TreeViewRootProps, c as TreeViewRootProvider, d as TreeViewRootProviderBaseProps, e as TreeViewRootProviderProps, f as TreeViewTree, g as TreeViewTreeBaseProps, h as TreeViewTreeProps } from '../../tree-view-tree-CbBeWSwi.js';
export { U as UseTreeViewProps, u as useTreeView } from '../../tree-view-tree-CbBeWSwi.js';
import '../../render-strategy-B5MqQP3X.js';
import '@zag-js/solid';
interface TreeViewBranchBaseProps extends PolymorphicProps<'div'> {
}
interface TreeViewBranchProps extends Assign<HTMLProps<'div'>, TreeViewBranchBaseProps> {
}
declare const TreeViewBranch: (props: TreeViewBranchProps) => solid_js.JSX.Element;
interface TreeViewBranchContentBaseProps extends PolymorphicProps<'div'> {
}
interface TreeViewBranchContentProps extends HTMLProps<'div'>, TreeViewBranchContentBaseProps {
}
declare const TreeViewBranchContent: (props: TreeViewBranchContentProps) => solid_js.JSX.Element;
interface TreeViewBranchControlBaseProps extends PolymorphicProps<'div'> {
}
interface TreeViewBranchControlProps extends HTMLProps<'div'>, TreeViewBranchControlBaseProps {
}
declare const TreeViewBranchControl: (props: TreeViewBranchControlProps) => solid_js.JSX.Element;
interface TreeViewBranchIndentGuideBaseProps extends PolymorphicProps<'div'> {
}
interface TreeViewBranchIndentGuideProps extends HTMLProps<'div'>, TreeViewBranchIndentGuideBaseProps {
}
declare const TreeViewBranchIndentGuide: (props: TreeViewBranchIndentGuideProps) => solid_js.JSX.Element;
interface TreeViewBranchIndicatorBaseProps extends PolymorphicProps<'div'> {
}
interface TreeViewBranchIndicatorProps extends HTMLProps<'div'>, TreeViewBranchIndicatorBaseProps {
}
declare const TreeViewBranchIndicator: (props: TreeViewBranchIndicatorProps) => solid_js.JSX.Element;
interface TreeViewBranchTextBaseProps extends PolymorphicProps<'span'> {
}
interface TreeViewBranchTextProps extends HTMLProps<'span'>, TreeViewBranchTextBaseProps {
}
declare const TreeViewBranchText: (props: TreeViewBranchTextProps) => solid_js.JSX.Element;
interface TreeViewBranchTriggerBaseProps extends PolymorphicProps<'div'> {
}
interface TreeViewBranchTriggerProps extends HTMLProps<'div'>, TreeViewBranchTriggerBaseProps {
}
declare const TreeViewBranchTrigger: (props: TreeViewBranchTriggerProps) => solid_js.JSX.Element;
interface UseTreeViewContext<T extends TreeNode> extends UseTreeViewReturn<T> {
}
declare const useTreeViewContext: () => UseTreeViewContext<any>;
interface TreeViewContextProps<T extends TreeNode> {
children: (context: UseTreeViewContext<T>) => JSX.Element;
}
declare const TreeViewContext: <T extends TreeNode>(props: TreeViewContextProps<T>) => JSX.Element;
interface TreeViewItemBaseProps extends PolymorphicProps<'div'> {
}
interface TreeViewItemProps extends Assign<HTMLProps<'div'>, TreeViewItemBaseProps> {
}
declare const TreeViewItem: (props: TreeViewItemProps) => solid_js.JSX.Element;
interface TreeViewItemIndicatorBaseProps extends PolymorphicProps<'div'> {
}
interface TreeViewItemIndicatorProps extends HTMLProps<'div'>, TreeViewItemIndicatorBaseProps {
}
declare const TreeViewItemIndicator: (props: TreeViewItemIndicatorProps) => solid_js.JSX.Element;
interface TreeViewItemTextBaseProps extends PolymorphicProps<'span'> {
}
interface TreeViewItemTextProps extends HTMLProps<'span'>, TreeViewItemTextBaseProps {
}
declare const TreeViewItemText: (props: TreeViewItemTextProps) => solid_js.JSX.Element;
interface TreeViewLabelBaseProps extends PolymorphicProps<'h3'> {
}
interface TreeViewLabelProps extends HTMLProps<'h3'>, TreeViewLabelBaseProps {
}
declare const TreeViewLabel: (props: TreeViewLabelProps) => solid_js.JSX.Element;
interface TreeViewNodeCheckboxBaseProps extends PolymorphicProps<'span'> {
}
interface TreeViewNodeCheckboxProps extends HTMLProps<'span'>, TreeViewNodeCheckboxBaseProps {
}
declare const TreeViewNodeCheckbox: (props: TreeViewNodeCheckboxProps) => solid_js.JSX.Element;
interface TreeViewNodeCheckboxIndicatorBaseProps {
children?: JSX.Element;
indeterminate?: JSX.Element;
fallback?: JSX.Element;
}
interface TreeViewNodeCheckboxIndicatorProps extends TreeViewNodeCheckboxIndicatorBaseProps {
}
declare const TreeViewNodeCheckboxIndicator: (props: TreeViewNodeCheckboxIndicatorProps) => JSX.Element;
interface UseTreeViewNodeContext extends Accessor<NodeState> {
}
declare const useTreeViewNodeContext: () => UseTreeViewNodeContext;
interface TreeViewNodeContextProps {
children: (context: UseTreeViewNodeContext) => JSX.Element;
}
declare const TreeViewNodeContext: (props: TreeViewNodeContextProps) => JSX.Element;
interface TreeViewNodeProviderBaseProps<T> extends NodeProps {
node: T;
}
interface TreeViewNodeProviderProps<T> extends TreeViewNodeProviderBaseProps<T> {
children?: JSX.Element;
}
declare function TreeViewNodeProvider<T>(props: TreeViewNodeProviderProps<T>): JSX.Element;
declare const treeView_ExpandedChangeDetails: typeof ExpandedChangeDetails;
declare const treeView_FocusChangeDetails: typeof FocusChangeDetails;
declare const treeView_LoadChildrenCompleteDetails: typeof LoadChildrenCompleteDetails;
declare const treeView_LoadChildrenDetails: typeof LoadChildrenDetails;
declare const treeView_NodeProps: typeof NodeProps;
declare const treeView_NodeState: typeof NodeState;
declare const treeView_SelectionChangeDetails: typeof SelectionChangeDetails;
declare namespace treeView {
export { TreeViewBranch as Branch, type TreeViewBranchBaseProps as BranchBaseProps, TreeViewBranchContent as BranchContent, type TreeViewBranchContentBaseProps as BranchContentBaseProps, type TreeViewBranchContentProps as BranchContentProps, TreeViewBranchControl as BranchControl, type TreeViewBranchControlBaseProps as BranchControlBaseProps, type TreeViewBranchControlProps as BranchControlProps, TreeViewBranchIndentGuide as BranchIndentGuide, type TreeViewBranchIndentGuideBaseProps as BranchIndentGuideBaseProps, type TreeViewBranchIndentGuideProps as BranchIndentGuideProps, TreeViewBranchIndicator as BranchIndicator, type TreeViewBranchIndicatorBaseProps as BranchIndicatorBaseProps, type TreeViewBranchIndicatorProps as BranchIndicatorProps, type TreeViewBranchProps as BranchProps, TreeViewBranchText as BranchText, type TreeViewBranchTextBaseProps as BranchTextBaseProps, type TreeViewBranchTextProps as BranchTextProps, TreeViewBranchTrigger as BranchTrigger, type TreeViewBranchTriggerBaseProps as BranchTriggerBaseProps, type TreeViewBranchTriggerProps as BranchTriggerProps, TreeViewContext as Context, type TreeViewContextProps as ContextProps, treeView_ExpandedChangeDetails as ExpandedChangeDetails, treeView_FocusChangeDetails as FocusChangeDetails, TreeViewItem as Item, type TreeViewItemBaseProps as ItemBaseProps, TreeViewItemIndicator as ItemIndicator, type TreeViewItemIndicatorBaseProps as ItemIndicatorBaseProps, type TreeViewItemIndicatorProps as ItemIndicatorProps, type TreeViewItemProps as ItemProps, TreeViewItemText as ItemText, type TreeViewItemTextBaseProps as ItemTextBaseProps, type TreeViewItemTextProps as ItemTextProps, TreeViewLabel as Label, type TreeViewLabelBaseProps as LabelBaseProps, type TreeViewLabelProps as LabelProps, treeView_LoadChildrenCompleteDetails as LoadChildrenCompleteDetails, treeView_LoadChildrenDetails as LoadChildrenDetails, TreeViewNodeCheckbox as NodeCheckbox, type TreeViewNodeCheckboxBaseProps as NodeCheckboxBaseProps, TreeViewNodeCheckboxIndicator as NodeCheckboxIndicator, type TreeViewNodeCheckboxIndicatorBaseProps as NodeCheckboxIndicatorBaseProps, type TreeViewNodeCheckboxIndicatorProps as NodeCheckboxIndicatorProps, type TreeViewNodeCheckboxProps as NodeCheckboxProps, TreeViewNodeContext as NodeContext, type TreeViewNodeContextProps as NodeContextProps, treeView_NodeProps as NodeProps, TreeViewNodeProvider as NodeProvider, type TreeViewNodeProviderBaseProps as NodeProviderBaseProps, type TreeViewNodeProviderProps as NodeProviderProps, treeView_NodeState as NodeState, TreeViewRoot as Root, TreeViewRootBaseProps as RootBaseProps, TreeViewRootProps as RootProps, TreeViewRootProvider as RootProvider, TreeViewRootProviderBaseProps as RootProviderBaseProps, TreeViewRootProviderProps as RootProviderProps, treeView_SelectionChangeDetails as SelectionChangeDetails, TreeViewTree as Tree, TreeViewTreeBaseProps as TreeBaseProps, TreeViewTreeProps as TreeProps };
}
export { treeView as TreeView, TreeViewBranch, type TreeViewBranchBaseProps, TreeViewBranchContent, type TreeViewBranchContentBaseProps, type TreeViewBranchContentProps, TreeViewBranchControl, type TreeViewBranchControlBaseProps, type TreeViewBranchControlProps, TreeViewBranchIndentGuide, type TreeViewBranchIndentGuideBaseProps, type TreeViewBranchIndentGuideProps, TreeViewBranchIndicator, type TreeViewBranchIndicatorBaseProps, type TreeViewBranchIndicatorProps, type TreeViewBranchProps, TreeViewBranchText, type TreeViewBranchTextBaseProps, type TreeViewBranchTextProps, TreeViewBranchTrigger, type TreeViewBranchTriggerBaseProps, type TreeViewBranchTriggerProps, TreeViewContext, type TreeViewContextProps, TreeViewItem, type TreeViewItemBaseProps, TreeViewItemIndicator, type TreeViewItemIndicatorBaseProps, type TreeViewItemIndicatorProps, type TreeViewItemProps, TreeViewItemText, type TreeViewItemTextBaseProps, type TreeViewItemTextProps, TreeViewLabel, type TreeViewLabelBaseProps, type TreeViewLabelProps, TreeViewNodeCheckbox, type TreeViewNodeCheckboxBaseProps, TreeViewNodeCheckboxIndicator, type TreeViewNodeCheckboxIndicatorBaseProps, type TreeViewNodeCheckboxIndicatorProps, type TreeViewNodeCheckboxProps, TreeViewNodeContext, type TreeViewNodeContextProps, TreeViewNodeProvider, type TreeViewNodeProviderBaseProps, type TreeViewNodeProviderProps, TreeViewRoot, TreeViewRootBaseProps, TreeViewRootProps, TreeViewRootProvider, TreeViewRootProviderBaseProps, TreeViewRootProviderProps, TreeViewTree, TreeViewTreeBaseProps, TreeViewTreeProps, type UseTreeViewContext, type UseTreeViewNodeContext, UseTreeViewReturn, useTreeViewContext, useTreeViewNodeContext };