@lobehub/ui 5.46.2 → 5.47.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.
Files changed (49) hide show
  1. package/es/base-ui/Accordion/style.mjs +0 -1
  2. package/es/base-ui/Accordion/style.mjs.map +1 -1
  3. package/es/base-ui/Collapsible/Collapsible.d.mts +6 -0
  4. package/es/base-ui/Collapsible/Collapsible.mjs +25 -0
  5. package/es/base-ui/Collapsible/Collapsible.mjs.map +1 -0
  6. package/es/base-ui/Collapsible/index.d.mts +3 -0
  7. package/es/base-ui/Collapsible/type.d.mts +14 -0
  8. package/es/base-ui/FocusScope/FocusScope.d.mts +15 -0
  9. package/es/base-ui/FocusScope/FocusScope.mjs +36 -0
  10. package/es/base-ui/FocusScope/FocusScope.mjs.map +1 -0
  11. package/es/base-ui/FocusScope/domUtils.mjs +31 -0
  12. package/es/base-ui/FocusScope/domUtils.mjs.map +1 -0
  13. package/es/base-ui/FocusScope/index.d.mts +6 -0
  14. package/es/base-ui/FocusScope/store.d.mts +11 -0
  15. package/es/base-ui/FocusScope/store.mjs +76 -0
  16. package/es/base-ui/FocusScope/store.mjs.map +1 -0
  17. package/es/base-ui/FocusScope/style.d.mts +8 -0
  18. package/es/base-ui/FocusScope/style.mjs +18 -0
  19. package/es/base-ui/FocusScope/style.mjs.map +1 -0
  20. package/es/base-ui/FocusScope/useScopeArrowNav.d.mts +15 -0
  21. package/es/base-ui/FocusScope/useScopeArrowNav.mjs +111 -0
  22. package/es/base-ui/FocusScope/useScopeArrowNav.mjs.map +1 -0
  23. package/es/base-ui/FocusScope/useScopeSwitcher.d.mts +9 -0
  24. package/es/base-ui/FocusScope/useScopeSwitcher.mjs +47 -0
  25. package/es/base-ui/FocusScope/useScopeSwitcher.mjs.map +1 -0
  26. package/es/base-ui/Input/style.d.mts +1 -1
  27. package/es/base-ui/Text/style.d.mts +1 -1
  28. package/es/base-ui/Tree/Tree.d.mts +6 -0
  29. package/es/base-ui/Tree/Tree.mjs +175 -0
  30. package/es/base-ui/Tree/Tree.mjs.map +1 -0
  31. package/es/base-ui/Tree/TreeNode.mjs +124 -0
  32. package/es/base-ui/Tree/TreeNode.mjs.map +1 -0
  33. package/es/base-ui/Tree/context.mjs +12 -0
  34. package/es/base-ui/Tree/context.mjs.map +1 -0
  35. package/es/base-ui/Tree/index.d.mts +5 -0
  36. package/es/base-ui/Tree/style.d.mts +19 -0
  37. package/es/base-ui/Tree/style.mjs +149 -0
  38. package/es/base-ui/Tree/style.mjs.map +1 -0
  39. package/es/base-ui/Tree/type.d.mts +85 -0
  40. package/es/base-ui/Tree/utils.d.mts +11 -0
  41. package/es/base-ui/Tree/utils.mjs +73 -0
  42. package/es/base-ui/Tree/utils.mjs.map +1 -0
  43. package/es/base-ui/index.d.mts +22 -8
  44. package/es/base-ui/index.mjs +17 -8
  45. package/es/mdx/FileTree/File.mjs +3 -3
  46. package/es/mdx/FileTree/File.mjs.map +1 -1
  47. package/es/mdx/FileTree/Folder.mjs +3 -3
  48. package/es/mdx/FileTree/Folder.mjs.map +1 -1
  49. package/package.json +1 -1
@@ -0,0 +1,73 @@
1
+ //#region src/base-ui/Tree/utils.ts
2
+ const hasChildren = (node) => !node.isLeaf && !!node.children && node.children.length > 0;
3
+ const flattenVisible = (data, expanded, depth = 0, parentKey = null, trail = [], out = []) => {
4
+ data.forEach((node, i) => {
5
+ const isLast = i === data.length - 1;
6
+ const expandable = hasChildren(node);
7
+ out.push({
8
+ depth,
9
+ hasChildren: expandable,
10
+ index: out.length,
11
+ isLast,
12
+ node,
13
+ parentKey,
14
+ trail
15
+ });
16
+ if (expandable && expanded.has(node.key)) flattenVisible(node.children, expanded, depth + 1, node.key, [...trail, !isLast], out);
17
+ });
18
+ return out;
19
+ };
20
+ const getAllKeys = (data, out = []) => {
21
+ for (const node of data) {
22
+ out.push(node.key);
23
+ if (node.children) getAllKeys(node.children, out);
24
+ }
25
+ return out;
26
+ };
27
+ const isCheckable = (node) => node.checkable !== false && !node.disabled;
28
+ const getSubtreeKeys = (node, out = []) => {
29
+ if (isCheckable(node)) out.push(node.key);
30
+ node.children?.forEach((child) => getSubtreeKeys(child, out));
31
+ return out;
32
+ };
33
+ const conductCheck = (data, checkedKeys) => {
34
+ const checked = new Set(checkedKeys);
35
+ const halfChecked = /* @__PURE__ */ new Set();
36
+ const down = (node, inherited) => {
37
+ const on = inherited || checked.has(node.key);
38
+ if (on && isCheckable(node)) checked.add(node.key);
39
+ node.children?.forEach((child) => down(child, on && isCheckable(node)));
40
+ };
41
+ data.forEach((node) => down(node, false));
42
+ const walk = (node) => {
43
+ const kids = (node.children ?? []).filter(isCheckable);
44
+ if (kids.length === 0) return checked.has(node.key);
45
+ const results = kids.map(walk);
46
+ if (results.every(Boolean)) {
47
+ checked.add(node.key);
48
+ return true;
49
+ }
50
+ checked.delete(node.key);
51
+ if (results.some(Boolean) || kids.some((kid) => halfChecked.has(kid.key))) halfChecked.add(node.key);
52
+ return false;
53
+ };
54
+ data.forEach(walk);
55
+ return {
56
+ checked,
57
+ halfChecked
58
+ };
59
+ };
60
+ const getAncestorKeys = (data, key, path = []) => {
61
+ for (const node of data) {
62
+ if (node.key === key) return [...path].reverse();
63
+ if (node.children) {
64
+ const found = getAncestorKeys(node.children, key, [...path, node.key]);
65
+ if (found.length > 0 || node.children.some((c) => c.key === key)) return found;
66
+ }
67
+ }
68
+ return [];
69
+ };
70
+ //#endregion
71
+ export { conductCheck, flattenVisible, getAllKeys, getAncestorKeys, getSubtreeKeys, hasChildren };
72
+
73
+ //# sourceMappingURL=utils.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.mjs","names":[],"sources":["../../../src/base-ui/Tree/utils.ts"],"sourcesContent":["import type { TreeDataNode, TreeFlatRow } from './type';\n\nexport const hasChildren = (node: TreeDataNode) =>\n !node.isLeaf && !!node.children && node.children.length > 0;\n\nexport const flattenVisible = (\n data: TreeDataNode[],\n expanded: Set<string>,\n depth = 0,\n parentKey: string | null = null,\n trail: boolean[] = [],\n out: TreeFlatRow[] = [],\n): TreeFlatRow[] => {\n data.forEach((node, i) => {\n const isLast = i === data.length - 1;\n const expandable = hasChildren(node);\n out.push({ depth, hasChildren: expandable, index: out.length, isLast, node, parentKey, trail });\n if (expandable && expanded.has(node.key)) {\n flattenVisible(node.children!, expanded, depth + 1, node.key, [...trail, !isLast], out);\n }\n });\n return out;\n};\n\nexport const getAllKeys = (data: TreeDataNode[], out: string[] = []): string[] => {\n for (const node of data) {\n out.push(node.key);\n if (node.children) getAllKeys(node.children, out);\n }\n return out;\n};\n\nexport const findNode = (data: TreeDataNode[], key: string): TreeDataNode | undefined => {\n for (const node of data) {\n if (node.key === key) return node;\n const found = node.children && findNode(node.children, key);\n if (found) return found;\n }\n};\n\nconst isCheckable = (node: TreeDataNode) => node.checkable !== false && !node.disabled;\n\nexport const getSubtreeKeys = (node: TreeDataNode, out: string[] = []): string[] => {\n if (isCheckable(node)) out.push(node.key);\n node.children?.forEach((child) => getSubtreeKeys(child, out));\n return out;\n};\n\nexport const conductCheck = (data: TreeDataNode[], checkedKeys: Iterable<string>) => {\n const checked = new Set(checkedKeys);\n const halfChecked = new Set<string>();\n\n const down = (node: TreeDataNode, inherited: boolean) => {\n const on = inherited || checked.has(node.key);\n if (on && isCheckable(node)) checked.add(node.key);\n node.children?.forEach((child) => down(child, on && isCheckable(node)));\n };\n data.forEach((node) => down(node, false));\n\n const walk = (node: TreeDataNode): boolean => {\n const kids = (node.children ?? []).filter(isCheckable);\n if (kids.length === 0) return checked.has(node.key);\n const results = kids.map(walk);\n if (results.every(Boolean)) {\n checked.add(node.key);\n return true;\n }\n checked.delete(node.key);\n if (results.some(Boolean) || kids.some((kid) => halfChecked.has(kid.key))) {\n halfChecked.add(node.key);\n }\n return false;\n };\n\n data.forEach(walk);\n return { checked, halfChecked };\n};\n\nexport const getAncestorKeys = (\n data: TreeDataNode[],\n key: string,\n path: string[] = [],\n): string[] => {\n for (const node of data) {\n if (node.key === key) return [...path].reverse();\n if (node.children) {\n const found = getAncestorKeys(node.children, key, [...path, node.key]);\n if (found.length > 0 || node.children.some((c) => c.key === key)) return found;\n }\n }\n return [];\n};\n"],"mappings":";AAEA,MAAa,eAAe,SAC1B,CAAC,KAAK,UAAU,CAAC,CAAC,KAAK,YAAY,KAAK,SAAS,SAAS;AAE5D,MAAa,kBACX,MACA,UACA,QAAQ,GACR,YAA2B,MAC3B,QAAmB,CAAC,GACpB,MAAqB,CAAC,MACJ;CAClB,KAAK,SAAS,MAAM,MAAM;EACxB,MAAM,SAAS,MAAM,KAAK,SAAS;EACnC,MAAM,aAAa,YAAY,IAAI;EACnC,IAAI,KAAK;GAAE;GAAO,aAAa;GAAY,OAAO,IAAI;GAAQ;GAAQ;GAAM;GAAW;EAAM,CAAC;EAC9F,IAAI,cAAc,SAAS,IAAI,KAAK,GAAG,GACrC,eAAe,KAAK,UAAW,UAAU,QAAQ,GAAG,KAAK,KAAK,CAAC,GAAG,OAAO,CAAC,MAAM,GAAG,GAAG;CAE1F,CAAC;CACD,OAAO;AACT;AAEA,MAAa,cAAc,MAAsB,MAAgB,CAAC,MAAgB;CAChF,KAAK,MAAM,QAAQ,MAAM;EACvB,IAAI,KAAK,KAAK,GAAG;EACjB,IAAI,KAAK,UAAU,WAAW,KAAK,UAAU,GAAG;CAClD;CACA,OAAO;AACT;AAUA,MAAM,eAAe,SAAuB,KAAK,cAAc,SAAS,CAAC,KAAK;AAE9E,MAAa,kBAAkB,MAAoB,MAAgB,CAAC,MAAgB;CAClF,IAAI,YAAY,IAAI,GAAG,IAAI,KAAK,KAAK,GAAG;CACxC,KAAK,UAAU,SAAS,UAAU,eAAe,OAAO,GAAG,CAAC;CAC5D,OAAO;AACT;AAEA,MAAa,gBAAgB,MAAsB,gBAAkC;CACnF,MAAM,UAAU,IAAI,IAAI,WAAW;CACnC,MAAM,8BAAc,IAAI,IAAY;CAEpC,MAAM,QAAQ,MAAoB,cAAuB;EACvD,MAAM,KAAK,aAAa,QAAQ,IAAI,KAAK,GAAG;EAC5C,IAAI,MAAM,YAAY,IAAI,GAAG,QAAQ,IAAI,KAAK,GAAG;EACjD,KAAK,UAAU,SAAS,UAAU,KAAK,OAAO,MAAM,YAAY,IAAI,CAAC,CAAC;CACxE;CACA,KAAK,SAAS,SAAS,KAAK,MAAM,KAAK,CAAC;CAExC,MAAM,QAAQ,SAAgC;EAC5C,MAAM,QAAQ,KAAK,YAAY,CAAC,EAAA,CAAG,OAAO,WAAW;EACrD,IAAI,KAAK,WAAW,GAAG,OAAO,QAAQ,IAAI,KAAK,GAAG;EAClD,MAAM,UAAU,KAAK,IAAI,IAAI;EAC7B,IAAI,QAAQ,MAAM,OAAO,GAAG;GAC1B,QAAQ,IAAI,KAAK,GAAG;GACpB,OAAO;EACT;EACA,QAAQ,OAAO,KAAK,GAAG;EACvB,IAAI,QAAQ,KAAK,OAAO,KAAK,KAAK,MAAM,QAAQ,YAAY,IAAI,IAAI,GAAG,CAAC,GACtE,YAAY,IAAI,KAAK,GAAG;EAE1B,OAAO;CACT;CAEA,KAAK,QAAQ,IAAI;CACjB,OAAO;EAAE;EAAS;CAAY;AAChC;AAEA,MAAa,mBACX,MACA,KACA,OAAiB,CAAC,MACL;CACb,KAAK,MAAM,QAAQ,MAAM;EACvB,IAAI,KAAK,QAAQ,KAAK,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC,QAAQ;EAC/C,IAAI,KAAK,UAAU;GACjB,MAAM,QAAQ,gBAAgB,KAAK,UAAU,KAAK,CAAC,GAAG,MAAM,KAAK,GAAG,CAAC;GACrE,IAAI,MAAM,SAAS,KAAK,KAAK,SAAS,MAAM,MAAM,EAAE,QAAQ,GAAG,GAAG,OAAO;EAC3E;CACF;CACA,OAAO,CAAC;AACV"}
@@ -50,7 +50,7 @@ import Input from "./Input/Input.mjs";
50
50
  import InputNumber from "./Input/InputNumber.mjs";
51
51
  import InputOTP from "./Input/InputOTP.mjs";
52
52
  import InputPassword from "./Input/InputPassword.mjs";
53
- import { rootVariants, styles as styles$6 } from "./Input/style.mjs";
53
+ import { rootVariants, styles as styles$7 } from "./Input/style.mjs";
54
54
  import TextArea from "./Input/TextArea.mjs";
55
55
  import "./Input/index.mjs";
56
56
  import { AutoCompleteOption, AutoCompleteProps } from "./AutoComplete/type.mjs";
@@ -70,6 +70,9 @@ import Checkbox from "./Checkbox/Checkbox.mjs";
70
70
  import CheckboxGroup from "./Checkbox/CheckboxGroup.mjs";
71
71
  import { styles as styles$5 } from "./Checkbox/style.mjs";
72
72
  import "./Checkbox/index.mjs";
73
+ import { CollapsibleProps } from "./Collapsible/type.mjs";
74
+ import Collapsible from "./Collapsible/Collapsible.mjs";
75
+ import "./Collapsible/index.mjs";
73
76
  import { ControlSize, controlHeight } from "./controlSize.mjs";
74
77
  import { DraggablePanelBody, DraggablePanelBodyProps, DraggablePanelContainer, DraggablePanelContainerProps, DraggablePanelContent, DraggablePanelContentProps, DraggablePanelFooter, DraggablePanelFooterProps, DraggablePanelHandle, DraggablePanelHandleProps, DraggablePanelHeader, DraggablePanelHeaderProps, DraggablePanelRoot, DraggablePanelRootProps, DraggablePanelToggle, DraggablePanelToggleProps } from "./DraggablePanel/atoms.mjs";
75
78
  import { useDraggablePanelContext } from "./DraggablePanel/context.mjs";
@@ -95,6 +98,12 @@ import "./FloatingPanel/index.mjs";
95
98
  import { FloatingSheetProps } from "./FloatingSheet/type.mjs";
96
99
  import { FloatingSheet } from "./FloatingSheet/FloatingSheet.mjs";
97
100
  import "./FloatingSheet/index.mjs";
101
+ import { FocusScope, FocusScopeProps, useFocusScopeId } from "./FocusScope/FocusScope.mjs";
102
+ import { getActiveScopeId, getLastFocusedItem, registerScope, setActiveScope, setLastFocusedItem, useActiveScopeId, useFocusScopeActive } from "./FocusScope/store.mjs";
103
+ import { styles as styles$6 } from "./FocusScope/style.mjs";
104
+ import { UseScopeArrowNavOptions, focusScopeItem, notifyScopeItemFocus, useScopeArrowNav } from "./FocusScope/useScopeArrowNav.mjs";
105
+ import { UseScopeSwitcherOptions, useScopeSwitcher } from "./FocusScope/useScopeSwitcher.mjs";
106
+ import "./FocusScope/index.mjs";
98
107
  import { FormContextValue, FormDividerProps, FormFieldProps, FormFlatGroupProps, FormFooterProps, FormGroupItemType, FormGroupProps, FormLayout, FormProps, FormSubmitFooterProps, FormTitleProps, FormValues, FormVariant, ItemsType } from "./Form/type.mjs";
99
108
  import FormDivider from "./Form/components/FormDivider.mjs";
100
109
  import FormField from "./Form/components/FormField.mjs";
@@ -108,7 +117,7 @@ import { Form } from "./Form/index.mjs";
108
117
  import { RadioGroupOption, RadioGroupProps, RadioProps } from "./Radio/type.mjs";
109
118
  import Radio from "./Radio/Radio.mjs";
110
119
  import RadioGroup from "./Radio/RadioGroup.mjs";
111
- import { styles as styles$7 } from "./Radio/style.mjs";
120
+ import { styles as styles$8 } from "./Radio/style.mjs";
112
121
  import "./Radio/index.mjs";
113
122
  import { SegmentedClassNames, SegmentedOption, SegmentedOptions, SegmentedOrientation, SegmentedProps, SegmentedSize, SegmentedStyles, SegmentedVariant } from "./Segmented/type.mjs";
114
123
  import { SegmentedIndicator, SegmentedIndicatorProps, SegmentedItem, SegmentedItemIcon, SegmentedItemLabel, SegmentedItemProps, SegmentedRoot, SegmentedRootProps } from "./Segmented/atoms.mjs";
@@ -125,15 +134,15 @@ import Skeleton from "./Skeleton/index.mjs";
125
134
  import { SliderProps, SliderWithInputProps } from "./Slider/type.mjs";
126
135
  import Slider from "./Slider/Slider.mjs";
127
136
  import SliderWithInput from "./Slider/SliderWithInput.mjs";
128
- import { styles as styles$8 } from "./Slider/style.mjs";
137
+ import { styles as styles$9 } from "./Slider/style.mjs";
129
138
  import "./Slider/index.mjs";
130
139
  import { SwitchChangeEventHandler, SwitchClassNames, SwitchClickEventHandler, SwitchContextType, SwitchIconPosition, SwitchIconProps, SwitchProps, SwitchRootProps, SwitchSize, SwitchStyles, SwitchThumbProps } from "./Switch/type.mjs";
131
- import { styles as styles$9 } from "./Switch/style.mjs";
140
+ import { styles as styles$10 } from "./Switch/style.mjs";
132
141
  import { SwitchIcon, SwitchRoot, SwitchThumb, useSwitchContext } from "./Switch/atoms.mjs";
133
142
  import Switch from "./Switch/Switch.mjs";
134
143
  import "./Switch/index.mjs";
135
144
  import { TabsClassNames, TabsIndicatorProps, TabsItem, TabsListProps, TabsOrientation, TabsPanelProps, TabsProps, TabsRootProps, TabsSize, TabsStyles, TabsTabProps, TabsVariant } from "./Tabs/type.mjs";
136
- import { styles as styles$10 } from "./Tabs/style.mjs";
145
+ import { styles as styles$11 } from "./Tabs/style.mjs";
137
146
  import { TabsIndicator, TabsList, TabsPanel, TabsRoot, TabsTab, useTabsContext } from "./Tabs/atoms.mjs";
138
147
  import Tabs from "./Tabs/Tabs.mjs";
139
148
  import "./Tabs/index.mjs";
@@ -141,13 +150,18 @@ import { TagClassNames, TagProps, TagShape, TagSize, TagStyles, TagVariant } fro
141
150
  import Tag from "./Tag/Tag.mjs";
142
151
  import { colorsPreset, colorsPresetSystem, presetColors, presetSystemColors } from "./Tag/utils.mjs";
143
152
  import "./Tag/index.mjs";
144
- import { groupStyles, styles as styles$11, variants } from "./Text/style.mjs";
153
+ import { groupStyles, styles as styles$12, variants } from "./Text/style.mjs";
145
154
  import { TextClassNames, TextProps, TextStyles } from "./Text/type.mjs";
146
155
  import Text from "./Text/Text.mjs";
147
156
  import "./Text/index.mjs";
148
157
  import { ToggleGroupClassNames, ToggleGroupOption, ToggleGroupProps, ToggleGroupSize, ToggleGroupStyles, ToggleGroupVariant } from "./ToggleGroup/type.mjs";
149
- import { styles as styles$12 } from "./ToggleGroup/style.mjs";
158
+ import { styles as styles$13 } from "./ToggleGroup/style.mjs";
150
159
  import { ToggleGroupItem, ToggleGroupItemIcon, ToggleGroupItemLabel, ToggleGroupItemProps, ToggleGroupRoot, ToggleGroupRootProps } from "./ToggleGroup/atoms.mjs";
151
160
  import ToggleGroup from "./ToggleGroup/ToggleGroup.mjs";
152
161
  import "./ToggleGroup/index.mjs";
153
- export { Accordion, type AccordionClassNames, AccordionHeader, type AccordionHeaderProps, type AccordionIndicatorPlacement, AccordionItem, type AccordionItemProps, type AccordionItemType, AccordionPanel, type AccordionPanelProps, type AccordionProps, AccordionRoot, type AccordionRootProps, type AccordionStyles, AccordionTrigger, type AccordionTriggerProps, type AccordionVariant, ActionIcon, type ActionIconClassNames, type ActionIconOutdent, type ActionIconProps, type ActionIconSize, type ActionIconStyles, type ActionIconVariant, Alert, type AlertClassNames, type AlertCloseConfig, type AlertProps, type AlertRef, type AlertStyles, type AlertType, type AlertVariant, AutoComplete, type AutoCompleteOption, type AutoCompleteProps, Avatar, type AvatarClassNames, AvatarGroup, type AvatarGroupItemType, type AvatarGroupProps, type AvatarProps, type AvatarStyles, type BaseModalProps, Button, type ButtonIconPosition, type ButtonOutdent, type ButtonProps, type ButtonShape, type ButtonSize, type ButtonType, Checkbox, CheckboxGroup, type CheckboxGroupOption, type CheckboxGroupProps, type CheckboxProps, type CheckboxShape, type ContextMenuCheckboxItem, ContextMenuHost, type ContextMenuInterceptor, type ContextMenuItem, ContextMenuTrigger, type ControlSize, DraggablePanel, DraggablePanelBody, type DraggablePanelBodyProps, DraggablePanelContainer, type DraggablePanelContainerProps, DraggablePanelContent, type DraggablePanelContentProps, DraggablePanelFooter, type DraggablePanelFooterProps, DraggablePanelHandle, type DraggablePanelHandleProps, DraggablePanelHeader, type DraggablePanelHeaderProps, type DraggablePanelPlacement, type DraggablePanelProps, DraggablePanelRoot, type DraggablePanelRootProps, type DraggablePanelSize, DraggablePanelToggle, type DraggablePanelToggleProps, Drawer, DrawerBackdrop, type DrawerBackdropProps, DrawerClose, type DrawerCloseProps, DrawerContent, type DrawerContentProps, DrawerDescription, type DrawerDescriptionProps, DrawerFooter, type DrawerFooterProps, DrawerHeader, type DrawerHeaderProps, type DrawerPlacement, DrawerPopup, type DrawerPopupProps, DrawerPortal, type DrawerPortalProps, type DrawerProps, type DrawerPush, DrawerRoot, type DrawerRootProps, type DrawerSemanticNames, type DrawerSemanticStyles, DrawerTitle, type DrawerTitleProps, DrawerTrigger, type DrawerTriggerProps, type DropdownItem, DropdownMenu, type DropdownMenuCheckboxItem, DropdownMenuCheckboxItemIndicator, DropdownMenuCheckboxItemPrimitive, type DropdownMenuCheckboxItemProps, DropdownMenuFooter, type DropdownMenuFooterProps, DropdownMenuGroup, DropdownMenuGroupLabel, type DropdownMenuGroupLabelProps, DropdownMenuHeader, type DropdownMenuHeaderProps, DropdownMenuItem, DropdownMenuItemContent, type DropdownMenuItemContentProps, DropdownMenuItemDesc, type DropdownMenuItemDescProps, DropdownMenuItemExtra, type DropdownMenuItemExtraProps, DropdownMenuItemIcon, type DropdownMenuItemIconProps, DropdownMenuItemLabel, DropdownMenuItemLabelGroup, type DropdownMenuItemLabelGroupProps, type DropdownMenuItemLabelProps, type DropdownMenuItemProps, type DropdownMenuPlacement, DropdownMenuPopup, type DropdownMenuPopupProps, DropdownMenuPortal, type DropdownMenuPortalProps, DropdownMenuPositioner, type DropdownMenuPositionerProps, type DropdownMenuProps, DropdownMenuRoot, DropdownMenuScrollViewport, type DropdownMenuScrollViewportProps, DropdownMenuSeparator, type DropdownMenuSeparatorProps, DropdownMenuSubmenuArrow, type DropdownMenuSubmenuArrowProps, DropdownMenuSubmenuRoot, DropdownMenuSubmenuTrigger, type DropdownMenuSubmenuTriggerProps, DropdownMenuSwitchItem, type DropdownMenuSwitchItemProps, type DropdownMenuSwitchItem$1 as DropdownMenuSwitchItemType, DropdownMenuTrigger, type DropdownMenuTriggerProps, type FloatingCollisionPadding, FloatingPanel, type FloatingPanelOffset, type FloatingPanelPlacement, type FloatingPanelProps, FloatingSheet, type FloatingSheetProps, Form, type FormContextValue, FormDivider, type FormDividerProps, FormField, type FormFieldProps, FormFlatGroup, type FormFlatGroupProps, FormFooter, type FormFooterProps, FormGroup, type FormGroupItemType, type FormGroupProps, type FormLayout, type FormProps, FormSubmitFooter, type FormSubmitFooterProps, FormTitle, type FormTitleProps, type FormValues, type FormVariant, type IconSpaceMode, type ImperativeModalProps, Input, type InputClassNames, InputNumber, type InputNumberProps, InputOTP, type InputOTPProps, InputPassword, type InputPasswordProps, type InputProps, type InputSize, type InputStyles, type InputVariant, type ItemsType, Modal, ModalBackdrop, type ModalBackdropProps, ModalClose, type ModalCloseProps, type ModalComponentProps, type ModalConfirmConfig, ModalContent, type ModalContentProps, ModalContext, type ModalContextValue, ModalDescription, type ModalDescriptionProps, ModalFooter, type ModalFooterProps, ModalHeader, type ModalHeaderProps, ModalHost, type ModalHostProps, type ModalInstance, ModalPopup, type ModalPopupProps, ModalPortal, type ModalPortalProps, ModalRoot, type ModalRootProps, type ModalSystem, ModalTitle, type ModalTitleProps, ModalTrigger, type ModalTriggerProps, ModalViewport, type ModalViewportProps, Popover, PopoverArrow, type PopoverArrowAtomProps, PopoverArrowIcon, PopoverBackdrop, type PopoverBackdropProps, type PopoverContextValue, PopoverGroup, type PopoverGroupHandle, type PopoverGroupItem, type PopoverPlacement, PopoverPopup, type PopoverPopupAtomProps, type PopoverPopupProps, PopoverPortal, type PopoverPortalAtomProps, type PopoverPortalProps, PopoverPositioner, type PopoverPositionerAtomProps, type PopoverPositionerProps, type PopoverProps, PopoverProvider, PopoverRoot, type PopoverTrigger, type PopoverTriggerComponentProps, PopoverTriggerElement, type PopoverTriggerElementProps, PopoverViewport, type PopoverViewportAtomProps, Radio, RadioGroup, type RadioGroupOption, type RadioGroupProps, type RadioProps, ScrollArea, ScrollAreaContent, type ScrollAreaContentProps, ScrollAreaCorner, type ScrollAreaCornerProps, type ScrollAreaProps, ScrollAreaRoot, type ScrollAreaRootProps, ScrollAreaScrollbar, type ScrollAreaScrollbarProps, ScrollAreaThumb, type ScrollAreaThumbProps, ScrollAreaViewport, type ScrollAreaViewportProps, Segmented, type SegmentedClassNames, SegmentedIndicator, type SegmentedIndicatorProps, SegmentedItem, SegmentedItemIcon, SegmentedItemLabel, type SegmentedItemProps, type SegmentedOption, type SegmentedOptions, type SegmentedOrientation, type SegmentedProps, SegmentedRoot, type SegmentedRootProps, type SegmentedSize, type SegmentedStyles, type SegmentedVariant, Select, SelectArrow, type SelectArrowProps, SelectBackdrop, type SelectBehaviorVariant, type SelectClassNames, SelectGroup, SelectGroupLabel, type SelectGroupLabelProps, type SelectGroupProps, SelectIcon, type SelectIconProps, type SelectIndicatorVariant, SelectItem, SelectItemIndicator, type SelectItemIndicatorProps, type SelectItemProps, SelectItemText, type SelectItemTextProps, SelectList, type SelectListProps, type SelectOption, type SelectOptionGroup, type SelectOptions, SelectPopup, type SelectPopupProps, SelectPortal, type SelectPortalProps, SelectPositioner, type SelectPositionerProps, type SelectProps, SelectRoot, type SelectRootChangeEventDetails, SelectScrollDownArrow, type SelectScrollDownArrowProps, SelectScrollUpArrow, type SelectScrollUpArrowProps, SelectSeparator, type SelectSize, SelectTrigger, type SelectTriggerProps, SelectValue, type SelectValueProps, type SelectVariant, Skeleton, type SkeletonAnimation, SkeletonAvatar, type SkeletonAvatarProps, type SkeletonProps, SkeletonText, type SkeletonTextProps, Slider, type SliderProps, SliderWithInput, type SliderWithInputProps, _default as SplitButton, type SplitButtonMenuProps, type SplitButtonProps, Switch, type SwitchChangeEventHandler, type SwitchClassNames, type SwitchClickEventHandler, type SwitchContextType, SwitchIcon, type SwitchIconPosition, type SwitchIconProps, type SwitchProps, SwitchRoot, type SwitchRootProps, type SwitchSize, type SwitchStyles, SwitchThumb, type SwitchThumbProps, Tabs, type TabsClassNames, TabsIndicator, type TabsIndicatorProps, type TabsItem, TabsList, type TabsListProps, type TabsOrientation, TabsPanel, type TabsPanelProps, type TabsProps, TabsRoot, type TabsRootProps, type TabsSize, type TabsStyles, TabsTab, type TabsTabProps, type TabsVariant, Tag, type TagClassNames, type TagProps, type TagShape, type TagSize, type TagStyles, type TagVariant, Text, TextArea, type TextAreaAutoSize, type TextAreaProps, type TextClassNames, type TextProps, type TextStyles, type ToastAPI, ToastHost, type ToastHostProps, type ToastInstance, type ToastOptions, type ToastPosition, type ToastPromiseOptions, type ToastProps, type ToastType, ToggleGroup, type ToggleGroupClassNames, ToggleGroupItem, ToggleGroupItemIcon, ToggleGroupItemLabel, type ToggleGroupItemProps, type ToggleGroupOption, type ToggleGroupProps, ToggleGroupRoot, type ToggleGroupRootProps, type ToggleGroupSize, type ToggleGroupStyles, type ToggleGroupVariant, Tooltip, TooltipGroup, type TooltipGroupProps, type TooltipPlacement, type TooltipPopupComponentProps, type TooltipPortalProps, type TooltipPositionerProps, type TooltipProps, type TooltipTriggerComponentProps, type VirtualListProps, styles as accordionStyles, styles$1 as actionIconStyles, styles$2 as alertStyles, styles$3 as autoCompleteStyles, backdropTransition, buttonPaddingInline, styles$4 as buttonStyles, styles$5 as checkboxStyles, closeContextMenu, colorsPreset, colorsPresetSystem, confirmModal, controlHeight, createModal, createModalSystem, drawerBackdropTransition, getDrawerMotionConfig, getFloatingCollisionPadding, styles$6 as inputStyles, rootVariants as inputVariants, modalMotionConfig, parseTrigger, presetColors, presetSystemColors, styles$7 as radioStyles, renderDropdownMenuItems, setContextMenuInterceptor, setFloatingCollisionPadding, showContextMenu, styles$8 as sliderStyles, styles$9 as switchStyles, styles$10 as tabsStyles, groupStyles as textGroupStyles, styles$11 as textStyles, variants as textVariants, toast, styles$12 as toggleGroupStyles, updateContextMenuItems, useAccordionContext, useDraggablePanelContext, useDrawerActions, useDrawerOpen, useFormContext, useModalActions, useModalContext, useModalOpen, usePopoverContext, usePopoverGroupHandle, usePopoverPortalContainer, useSwitchContext, useTabsContext, useToast };
162
+ import { styles as styles$14 } from "./Tree/style.mjs";
163
+ import { TreeClassNames, TreeDataNode, TreeFlatRow, TreeProps, TreeStyles } from "./Tree/type.mjs";
164
+ import Tree from "./Tree/Tree.mjs";
165
+ import { conductCheck, flattenVisible, getAllKeys } from "./Tree/utils.mjs";
166
+ import "./Tree/index.mjs";
167
+ export { Accordion, type AccordionClassNames, AccordionHeader, type AccordionHeaderProps, type AccordionIndicatorPlacement, AccordionItem, type AccordionItemProps, type AccordionItemType, AccordionPanel, type AccordionPanelProps, type AccordionProps, AccordionRoot, type AccordionRootProps, type AccordionStyles, AccordionTrigger, type AccordionTriggerProps, type AccordionVariant, ActionIcon, type ActionIconClassNames, type ActionIconOutdent, type ActionIconProps, type ActionIconSize, type ActionIconStyles, type ActionIconVariant, Alert, type AlertClassNames, type AlertCloseConfig, type AlertProps, type AlertRef, type AlertStyles, type AlertType, type AlertVariant, AutoComplete, type AutoCompleteOption, type AutoCompleteProps, Avatar, type AvatarClassNames, AvatarGroup, type AvatarGroupItemType, type AvatarGroupProps, type AvatarProps, type AvatarStyles, type BaseModalProps, Button, type ButtonIconPosition, type ButtonOutdent, type ButtonProps, type ButtonShape, type ButtonSize, type ButtonType, Checkbox, CheckboxGroup, type CheckboxGroupOption, type CheckboxGroupProps, type CheckboxProps, type CheckboxShape, Collapsible, type CollapsibleProps, type ContextMenuCheckboxItem, ContextMenuHost, type ContextMenuInterceptor, type ContextMenuItem, ContextMenuTrigger, type ControlSize, DraggablePanel, DraggablePanelBody, type DraggablePanelBodyProps, DraggablePanelContainer, type DraggablePanelContainerProps, DraggablePanelContent, type DraggablePanelContentProps, DraggablePanelFooter, type DraggablePanelFooterProps, DraggablePanelHandle, type DraggablePanelHandleProps, DraggablePanelHeader, type DraggablePanelHeaderProps, type DraggablePanelPlacement, type DraggablePanelProps, DraggablePanelRoot, type DraggablePanelRootProps, type DraggablePanelSize, DraggablePanelToggle, type DraggablePanelToggleProps, Drawer, DrawerBackdrop, type DrawerBackdropProps, DrawerClose, type DrawerCloseProps, DrawerContent, type DrawerContentProps, DrawerDescription, type DrawerDescriptionProps, DrawerFooter, type DrawerFooterProps, DrawerHeader, type DrawerHeaderProps, type DrawerPlacement, DrawerPopup, type DrawerPopupProps, DrawerPortal, type DrawerPortalProps, type DrawerProps, type DrawerPush, DrawerRoot, type DrawerRootProps, type DrawerSemanticNames, type DrawerSemanticStyles, DrawerTitle, type DrawerTitleProps, DrawerTrigger, type DrawerTriggerProps, type DropdownItem, DropdownMenu, type DropdownMenuCheckboxItem, DropdownMenuCheckboxItemIndicator, DropdownMenuCheckboxItemPrimitive, type DropdownMenuCheckboxItemProps, DropdownMenuFooter, type DropdownMenuFooterProps, DropdownMenuGroup, DropdownMenuGroupLabel, type DropdownMenuGroupLabelProps, DropdownMenuHeader, type DropdownMenuHeaderProps, DropdownMenuItem, DropdownMenuItemContent, type DropdownMenuItemContentProps, DropdownMenuItemDesc, type DropdownMenuItemDescProps, DropdownMenuItemExtra, type DropdownMenuItemExtraProps, DropdownMenuItemIcon, type DropdownMenuItemIconProps, DropdownMenuItemLabel, DropdownMenuItemLabelGroup, type DropdownMenuItemLabelGroupProps, type DropdownMenuItemLabelProps, type DropdownMenuItemProps, type DropdownMenuPlacement, DropdownMenuPopup, type DropdownMenuPopupProps, DropdownMenuPortal, type DropdownMenuPortalProps, DropdownMenuPositioner, type DropdownMenuPositionerProps, type DropdownMenuProps, DropdownMenuRoot, DropdownMenuScrollViewport, type DropdownMenuScrollViewportProps, DropdownMenuSeparator, type DropdownMenuSeparatorProps, DropdownMenuSubmenuArrow, type DropdownMenuSubmenuArrowProps, DropdownMenuSubmenuRoot, DropdownMenuSubmenuTrigger, type DropdownMenuSubmenuTriggerProps, DropdownMenuSwitchItem, type DropdownMenuSwitchItemProps, type DropdownMenuSwitchItem$1 as DropdownMenuSwitchItemType, DropdownMenuTrigger, type DropdownMenuTriggerProps, type FloatingCollisionPadding, FloatingPanel, type FloatingPanelOffset, type FloatingPanelPlacement, type FloatingPanelProps, FloatingSheet, type FloatingSheetProps, FocusScope, type FocusScopeProps, Form, type FormContextValue, FormDivider, type FormDividerProps, FormField, type FormFieldProps, FormFlatGroup, type FormFlatGroupProps, FormFooter, type FormFooterProps, FormGroup, type FormGroupItemType, type FormGroupProps, type FormLayout, type FormProps, FormSubmitFooter, type FormSubmitFooterProps, FormTitle, type FormTitleProps, type FormValues, type FormVariant, type IconSpaceMode, type ImperativeModalProps, Input, type InputClassNames, InputNumber, type InputNumberProps, InputOTP, type InputOTPProps, InputPassword, type InputPasswordProps, type InputProps, type InputSize, type InputStyles, type InputVariant, type ItemsType, Modal, ModalBackdrop, type ModalBackdropProps, ModalClose, type ModalCloseProps, type ModalComponentProps, type ModalConfirmConfig, ModalContent, type ModalContentProps, ModalContext, type ModalContextValue, ModalDescription, type ModalDescriptionProps, ModalFooter, type ModalFooterProps, ModalHeader, type ModalHeaderProps, ModalHost, type ModalHostProps, type ModalInstance, ModalPopup, type ModalPopupProps, ModalPortal, type ModalPortalProps, ModalRoot, type ModalRootProps, type ModalSystem, ModalTitle, type ModalTitleProps, ModalTrigger, type ModalTriggerProps, ModalViewport, type ModalViewportProps, Popover, PopoverArrow, type PopoverArrowAtomProps, PopoverArrowIcon, PopoverBackdrop, type PopoverBackdropProps, type PopoverContextValue, PopoverGroup, type PopoverGroupHandle, type PopoverGroupItem, type PopoverPlacement, PopoverPopup, type PopoverPopupAtomProps, type PopoverPopupProps, PopoverPortal, type PopoverPortalAtomProps, type PopoverPortalProps, PopoverPositioner, type PopoverPositionerAtomProps, type PopoverPositionerProps, type PopoverProps, PopoverProvider, PopoverRoot, type PopoverTrigger, type PopoverTriggerComponentProps, PopoverTriggerElement, type PopoverTriggerElementProps, PopoverViewport, type PopoverViewportAtomProps, Radio, RadioGroup, type RadioGroupOption, type RadioGroupProps, type RadioProps, ScrollArea, ScrollAreaContent, type ScrollAreaContentProps, ScrollAreaCorner, type ScrollAreaCornerProps, type ScrollAreaProps, ScrollAreaRoot, type ScrollAreaRootProps, ScrollAreaScrollbar, type ScrollAreaScrollbarProps, ScrollAreaThumb, type ScrollAreaThumbProps, ScrollAreaViewport, type ScrollAreaViewportProps, Segmented, type SegmentedClassNames, SegmentedIndicator, type SegmentedIndicatorProps, SegmentedItem, SegmentedItemIcon, SegmentedItemLabel, type SegmentedItemProps, type SegmentedOption, type SegmentedOptions, type SegmentedOrientation, type SegmentedProps, SegmentedRoot, type SegmentedRootProps, type SegmentedSize, type SegmentedStyles, type SegmentedVariant, Select, SelectArrow, type SelectArrowProps, SelectBackdrop, type SelectBehaviorVariant, type SelectClassNames, SelectGroup, SelectGroupLabel, type SelectGroupLabelProps, type SelectGroupProps, SelectIcon, type SelectIconProps, type SelectIndicatorVariant, SelectItem, SelectItemIndicator, type SelectItemIndicatorProps, type SelectItemProps, SelectItemText, type SelectItemTextProps, SelectList, type SelectListProps, type SelectOption, type SelectOptionGroup, type SelectOptions, SelectPopup, type SelectPopupProps, SelectPortal, type SelectPortalProps, SelectPositioner, type SelectPositionerProps, type SelectProps, SelectRoot, type SelectRootChangeEventDetails, SelectScrollDownArrow, type SelectScrollDownArrowProps, SelectScrollUpArrow, type SelectScrollUpArrowProps, SelectSeparator, type SelectSize, SelectTrigger, type SelectTriggerProps, SelectValue, type SelectValueProps, type SelectVariant, Skeleton, type SkeletonAnimation, SkeletonAvatar, type SkeletonAvatarProps, type SkeletonProps, SkeletonText, type SkeletonTextProps, Slider, type SliderProps, SliderWithInput, type SliderWithInputProps, _default as SplitButton, type SplitButtonMenuProps, type SplitButtonProps, Switch, type SwitchChangeEventHandler, type SwitchClassNames, type SwitchClickEventHandler, type SwitchContextType, SwitchIcon, type SwitchIconPosition, type SwitchIconProps, type SwitchProps, SwitchRoot, type SwitchRootProps, type SwitchSize, type SwitchStyles, SwitchThumb, type SwitchThumbProps, Tabs, type TabsClassNames, TabsIndicator, type TabsIndicatorProps, type TabsItem, TabsList, type TabsListProps, type TabsOrientation, TabsPanel, type TabsPanelProps, type TabsProps, TabsRoot, type TabsRootProps, type TabsSize, type TabsStyles, TabsTab, type TabsTabProps, type TabsVariant, Tag, type TagClassNames, type TagProps, type TagShape, type TagSize, type TagStyles, type TagVariant, Text, TextArea, type TextAreaAutoSize, type TextAreaProps, type TextClassNames, type TextProps, type TextStyles, type ToastAPI, ToastHost, type ToastHostProps, type ToastInstance, type ToastOptions, type ToastPosition, type ToastPromiseOptions, type ToastProps, type ToastType, ToggleGroup, type ToggleGroupClassNames, ToggleGroupItem, ToggleGroupItemIcon, ToggleGroupItemLabel, type ToggleGroupItemProps, type ToggleGroupOption, type ToggleGroupProps, ToggleGroupRoot, type ToggleGroupRootProps, type ToggleGroupSize, type ToggleGroupStyles, type ToggleGroupVariant, Tooltip, TooltipGroup, type TooltipGroupProps, type TooltipPlacement, type TooltipPopupComponentProps, type TooltipPortalProps, type TooltipPositionerProps, type TooltipProps, type TooltipTriggerComponentProps, Tree, type TreeClassNames, type TreeDataNode, type TreeFlatRow, type TreeProps, type TreeStyles, type UseScopeArrowNavOptions, type UseScopeSwitcherOptions, type VirtualListProps, styles as accordionStyles, styles$1 as actionIconStyles, styles$2 as alertStyles, styles$3 as autoCompleteStyles, backdropTransition, buttonPaddingInline, styles$4 as buttonStyles, styles$5 as checkboxStyles, closeContextMenu, colorsPreset, colorsPresetSystem, conductCheck, confirmModal, controlHeight, createModal, createModalSystem, drawerBackdropTransition, flattenVisible, focusScopeItem, styles$6 as focusScopeStyles, getActiveScopeId, getAllKeys, getDrawerMotionConfig, getFloatingCollisionPadding, getLastFocusedItem, styles$7 as inputStyles, rootVariants as inputVariants, modalMotionConfig, notifyScopeItemFocus, parseTrigger, presetColors, presetSystemColors, styles$8 as radioStyles, registerScope, renderDropdownMenuItems, setActiveScope, setContextMenuInterceptor, setFloatingCollisionPadding, setLastFocusedItem, showContextMenu, styles$9 as sliderStyles, styles$10 as switchStyles, styles$11 as tabsStyles, groupStyles as textGroupStyles, styles$12 as textStyles, variants as textVariants, toast, styles$13 as toggleGroupStyles, styles$14 as treeStyles, updateContextMenuItems, useAccordionContext, useActiveScopeId, useDraggablePanelContext, useDrawerActions, useDrawerOpen, useFocusScopeActive, useFocusScopeId, useFormContext, useModalActions, useModalContext, useModalOpen, usePopoverContext, usePopoverGroupHandle, usePopoverPortalContainer, useScopeArrowNav, useScopeSwitcher, useSwitchContext, useTabsContext, useToast };
@@ -4,7 +4,7 @@ import TooltipGroup from "./Tooltip/TooltipGroup.mjs";
4
4
  import { controlHeight } from "./controlSize.mjs";
5
5
  import { buttonPaddingInline, styles as styles$4 } from "./Button/style.mjs";
6
6
  import Button from "./Button/Button.mjs";
7
- import { styles as styles$9 } from "./Switch/style.mjs";
7
+ import { styles as styles$10 } from "./Switch/style.mjs";
8
8
  import { SwitchIcon, SwitchRoot, SwitchThumb, useSwitchContext } from "./Switch/atoms.mjs";
9
9
  import Switch from "./Switch/Switch.mjs";
10
10
  import { ScrollAreaContent, ScrollAreaCorner, ScrollAreaRoot, ScrollAreaScrollbar, ScrollAreaThumb, ScrollAreaViewport } from "./ScrollArea/atoms.mjs";
@@ -35,7 +35,7 @@ import { AccordionHeader, AccordionItem, AccordionPanel, AccordionRoot, Accordio
35
35
  import Accordion from "./Accordion/Accordion.mjs";
36
36
  import { styles as styles$2 } from "./Alert/style.mjs";
37
37
  import Alert from "./Alert/Alert.mjs";
38
- import { rootVariants, styles as styles$6 } from "./Input/style.mjs";
38
+ import { rootVariants, styles as styles$7 } from "./Input/style.mjs";
39
39
  import Input from "./Input/Input.mjs";
40
40
  import InputNumber from "./Input/InputNumber.mjs";
41
41
  import InputOTP from "./Input/InputOTP.mjs";
@@ -48,6 +48,7 @@ import Avatar from "./Avatar/index.mjs";
48
48
  import { styles as styles$5 } from "./Checkbox/style.mjs";
49
49
  import Checkbox from "./Checkbox/Checkbox.mjs";
50
50
  import CheckboxGroup from "./Checkbox/CheckboxGroup.mjs";
51
+ import Collapsible from "./Collapsible/Collapsible.mjs";
51
52
  import { useDraggablePanelContext } from "./DraggablePanel/context.mjs";
52
53
  import { DraggablePanelBody, DraggablePanelContainer, DraggablePanelContent, DraggablePanelFooter, DraggablePanelHandle, DraggablePanelHeader, DraggablePanelRoot, DraggablePanelToggle } from "./DraggablePanel/atoms.mjs";
53
54
  import DraggablePanel from "./DraggablePanel/DraggablePanel.mjs";
@@ -61,6 +62,11 @@ import { ModalHost, confirmModal, createModal, createModalSystem } from "./Modal
61
62
  import Modal from "./Modal/Modal.mjs";
62
63
  import { FloatingPanel } from "./FloatingPanel/FloatingPanel.mjs";
63
64
  import { FloatingSheet } from "./FloatingSheet/FloatingSheet.mjs";
65
+ import { getActiveScopeId, getLastFocusedItem, registerScope, setActiveScope, setLastFocusedItem, useActiveScopeId, useFocusScopeActive } from "./FocusScope/store.mjs";
66
+ import { styles as styles$6 } from "./FocusScope/style.mjs";
67
+ import { FocusScope, useFocusScopeId } from "./FocusScope/FocusScope.mjs";
68
+ import { focusScopeItem, notifyScopeItemFocus, useScopeArrowNav } from "./FocusScope/useScopeArrowNav.mjs";
69
+ import { useScopeSwitcher } from "./FocusScope/useScopeSwitcher.mjs";
64
70
  import FormDivider from "./Form/components/FormDivider.mjs";
65
71
  import { useFormContext } from "./Form/context.mjs";
66
72
  import FormTitle from "./Form/components/FormTitle.mjs";
@@ -70,24 +76,27 @@ import FormFooter from "./Form/components/FormFooter.mjs";
70
76
  import FormGroup from "./Form/components/FormGroup.mjs";
71
77
  import FormSubmitFooter from "./Form/components/FormSubmitFooter.mjs";
72
78
  import { Form } from "./Form/index.mjs";
73
- import { styles as styles$7 } from "./Radio/style.mjs";
79
+ import { styles as styles$8 } from "./Radio/style.mjs";
74
80
  import Radio from "./Radio/Radio.mjs";
75
81
  import RadioGroup from "./Radio/RadioGroup.mjs";
76
82
  import { SegmentedIndicator, SegmentedItem, SegmentedItemIcon, SegmentedItemLabel, SegmentedRoot } from "./Segmented/atoms.mjs";
77
83
  import Segmented from "./Segmented/Segmented.mjs";
78
84
  import { SelectArrow, SelectBackdrop, SelectGroup, SelectGroupLabel, SelectIcon, SelectItem, SelectItemIndicator, SelectItemText, SelectList, SelectPopup, SelectPortal, SelectPositioner, SelectRoot, SelectScrollDownArrow, SelectScrollUpArrow, SelectSeparator, SelectTrigger, SelectValue } from "./Select/atoms.mjs";
79
85
  import Select from "./Select/Select.mjs";
80
- import { styles as styles$8 } from "./Slider/style.mjs";
86
+ import { styles as styles$9 } from "./Slider/style.mjs";
81
87
  import Slider from "./Slider/Slider.mjs";
82
88
  import SliderWithInput from "./Slider/SliderWithInput.mjs";
83
- import { styles as styles$10 } from "./Tabs/style.mjs";
89
+ import { styles as styles$11 } from "./Tabs/style.mjs";
84
90
  import { TabsIndicator, TabsList, TabsPanel, TabsRoot, TabsTab, useTabsContext } from "./Tabs/atoms.mjs";
85
91
  import Tabs from "./Tabs/Tabs.mjs";
86
92
  import { colorsPreset, colorsPresetSystem, presetColors, presetSystemColors } from "./Tag/utils.mjs";
87
93
  import Tag from "./Tag/Tag.mjs";
88
- import { groupStyles, styles as styles$11, variants } from "./Text/style.mjs";
94
+ import { groupStyles, styles as styles$12, variants } from "./Text/style.mjs";
89
95
  import Text from "./Text/Text.mjs";
90
- import { styles as styles$12 } from "./ToggleGroup/style.mjs";
96
+ import { styles as styles$13 } from "./ToggleGroup/style.mjs";
91
97
  import { ToggleGroupItem, ToggleGroupItemIcon, ToggleGroupItemLabel, ToggleGroupRoot } from "./ToggleGroup/atoms.mjs";
92
98
  import ToggleGroup from "./ToggleGroup/ToggleGroup.mjs";
93
- export { Accordion, AccordionHeader, AccordionItem, AccordionPanel, AccordionRoot, AccordionTrigger, ActionIcon, Alert, AutoComplete, Avatar, AvatarGroup, Button, Checkbox, CheckboxGroup, ContextMenuHost, ContextMenuTrigger, DraggablePanel, DraggablePanelBody, DraggablePanelContainer, DraggablePanelContent, DraggablePanelFooter, DraggablePanelHandle, DraggablePanelHeader, DraggablePanelRoot, DraggablePanelToggle, Drawer, DrawerBackdrop, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerPopup, DrawerPortal, DrawerRoot, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItemIndicator, DropdownMenuCheckboxItemPrimitive, DropdownMenuFooter, DropdownMenuGroup, DropdownMenuGroupLabel, DropdownMenuHeader, DropdownMenuItem, DropdownMenuItemContent, DropdownMenuItemDesc, DropdownMenuItemExtra, DropdownMenuItemIcon, DropdownMenuItemLabel, DropdownMenuItemLabelGroup, DropdownMenuPopup, DropdownMenuPortal, DropdownMenuPositioner, DropdownMenuRoot, DropdownMenuScrollViewport, DropdownMenuSeparator, DropdownMenuSubmenuArrow, DropdownMenuSubmenuRoot, DropdownMenuSubmenuTrigger, DropdownMenuSwitchItem, DropdownMenuTrigger, FloatingPanel, FloatingSheet, Form, FormDivider, FormField, FormFlatGroup, FormFooter, FormGroup, FormSubmitFooter, FormTitle, Input, InputNumber, InputOTP, InputPassword, Modal, ModalBackdrop, ModalClose, ModalContent, ModalContext, ModalDescription, ModalFooter, ModalHeader, ModalHost, ModalPopup, ModalPortal, ModalRoot, ModalTitle, ModalTrigger, ModalViewport, Popover, PopoverArrow, PopoverArrowIcon, PopoverBackdrop, PopoverGroup, PopoverPopup, PopoverPortal, PopoverPositioner, PopoverProvider, PopoverRoot, PopoverTriggerElement, PopoverViewport, Radio, RadioGroup, ScrollArea, ScrollAreaContent, ScrollAreaCorner, ScrollAreaRoot, ScrollAreaScrollbar, ScrollAreaThumb, ScrollAreaViewport, Segmented, SegmentedIndicator, SegmentedItem, SegmentedItemIcon, SegmentedItemLabel, SegmentedRoot, Select, SelectArrow, SelectBackdrop, SelectGroup, SelectGroupLabel, SelectIcon, SelectItem, SelectItemIndicator, SelectItemText, SelectList, SelectPopup, SelectPortal, SelectPositioner, SelectRoot, SelectScrollDownArrow, SelectScrollUpArrow, SelectSeparator, SelectTrigger, SelectValue, Skeleton, SkeletonAvatar, SkeletonText, Slider, SliderWithInput, SplitButton, Switch, SwitchIcon, SwitchRoot, SwitchThumb, Tabs, TabsIndicator, TabsList, TabsPanel, TabsRoot, TabsTab, Tag, Text, TextArea, ToastHost, ToggleGroup, ToggleGroupItem, ToggleGroupItemIcon, ToggleGroupItemLabel, ToggleGroupRoot, Tooltip, TooltipGroup, styles as accordionStyles, styles$1 as actionIconStyles, styles$2 as alertStyles, styles$3 as autoCompleteStyles, backdropTransition, buttonPaddingInline, styles$4 as buttonStyles, styles$5 as checkboxStyles, closeContextMenu, colorsPreset, colorsPresetSystem, confirmModal, controlHeight, createModal, createModalSystem, drawerBackdropTransition, getDrawerMotionConfig, getFloatingCollisionPadding, styles$6 as inputStyles, rootVariants as inputVariants, modalMotionConfig, parseTrigger, presetColors, presetSystemColors, styles$7 as radioStyles, renderDropdownMenuItems, setContextMenuInterceptor, setFloatingCollisionPadding, showContextMenu, styles$8 as sliderStyles, styles$9 as switchStyles, styles$10 as tabsStyles, groupStyles as textGroupStyles, styles$11 as textStyles, variants as textVariants, toast, styles$12 as toggleGroupStyles, updateContextMenuItems, useAccordionContext, useDraggablePanelContext, useDrawerActions, useDrawerOpen, useFormContext, useModalActions, useModalContext, useModalOpen, usePopoverContext, usePopoverGroupHandle, usePopoverPortalContainer, useSwitchContext, useTabsContext, useToast };
99
+ import { styles as styles$14 } from "./Tree/style.mjs";
100
+ import { conductCheck, flattenVisible, getAllKeys } from "./Tree/utils.mjs";
101
+ import Tree from "./Tree/Tree.mjs";
102
+ export { Accordion, AccordionHeader, AccordionItem, AccordionPanel, AccordionRoot, AccordionTrigger, ActionIcon, Alert, AutoComplete, Avatar, AvatarGroup, Button, Checkbox, CheckboxGroup, Collapsible, ContextMenuHost, ContextMenuTrigger, DraggablePanel, DraggablePanelBody, DraggablePanelContainer, DraggablePanelContent, DraggablePanelFooter, DraggablePanelHandle, DraggablePanelHeader, DraggablePanelRoot, DraggablePanelToggle, Drawer, DrawerBackdrop, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerPopup, DrawerPortal, DrawerRoot, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItemIndicator, DropdownMenuCheckboxItemPrimitive, DropdownMenuFooter, DropdownMenuGroup, DropdownMenuGroupLabel, DropdownMenuHeader, DropdownMenuItem, DropdownMenuItemContent, DropdownMenuItemDesc, DropdownMenuItemExtra, DropdownMenuItemIcon, DropdownMenuItemLabel, DropdownMenuItemLabelGroup, DropdownMenuPopup, DropdownMenuPortal, DropdownMenuPositioner, DropdownMenuRoot, DropdownMenuScrollViewport, DropdownMenuSeparator, DropdownMenuSubmenuArrow, DropdownMenuSubmenuRoot, DropdownMenuSubmenuTrigger, DropdownMenuSwitchItem, DropdownMenuTrigger, FloatingPanel, FloatingSheet, FocusScope, Form, FormDivider, FormField, FormFlatGroup, FormFooter, FormGroup, FormSubmitFooter, FormTitle, Input, InputNumber, InputOTP, InputPassword, Modal, ModalBackdrop, ModalClose, ModalContent, ModalContext, ModalDescription, ModalFooter, ModalHeader, ModalHost, ModalPopup, ModalPortal, ModalRoot, ModalTitle, ModalTrigger, ModalViewport, Popover, PopoverArrow, PopoverArrowIcon, PopoverBackdrop, PopoverGroup, PopoverPopup, PopoverPortal, PopoverPositioner, PopoverProvider, PopoverRoot, PopoverTriggerElement, PopoverViewport, Radio, RadioGroup, ScrollArea, ScrollAreaContent, ScrollAreaCorner, ScrollAreaRoot, ScrollAreaScrollbar, ScrollAreaThumb, ScrollAreaViewport, Segmented, SegmentedIndicator, SegmentedItem, SegmentedItemIcon, SegmentedItemLabel, SegmentedRoot, Select, SelectArrow, SelectBackdrop, SelectGroup, SelectGroupLabel, SelectIcon, SelectItem, SelectItemIndicator, SelectItemText, SelectList, SelectPopup, SelectPortal, SelectPositioner, SelectRoot, SelectScrollDownArrow, SelectScrollUpArrow, SelectSeparator, SelectTrigger, SelectValue, Skeleton, SkeletonAvatar, SkeletonText, Slider, SliderWithInput, SplitButton, Switch, SwitchIcon, SwitchRoot, SwitchThumb, Tabs, TabsIndicator, TabsList, TabsPanel, TabsRoot, TabsTab, Tag, Text, TextArea, ToastHost, ToggleGroup, ToggleGroupItem, ToggleGroupItemIcon, ToggleGroupItemLabel, ToggleGroupRoot, Tooltip, TooltipGroup, Tree, styles as accordionStyles, styles$1 as actionIconStyles, styles$2 as alertStyles, styles$3 as autoCompleteStyles, backdropTransition, buttonPaddingInline, styles$4 as buttonStyles, styles$5 as checkboxStyles, closeContextMenu, colorsPreset, colorsPresetSystem, conductCheck, confirmModal, controlHeight, createModal, createModalSystem, drawerBackdropTransition, flattenVisible, focusScopeItem, styles$6 as focusScopeStyles, getActiveScopeId, getAllKeys, getDrawerMotionConfig, getFloatingCollisionPadding, getLastFocusedItem, styles$7 as inputStyles, rootVariants as inputVariants, modalMotionConfig, notifyScopeItemFocus, parseTrigger, presetColors, presetSystemColors, styles$8 as radioStyles, registerScope, renderDropdownMenuItems, setActiveScope, setContextMenuInterceptor, setFloatingCollisionPadding, setLastFocusedItem, showContextMenu, styles$9 as sliderStyles, styles$10 as switchStyles, styles$11 as tabsStyles, groupStyles as textGroupStyles, styles$12 as textStyles, variants as textVariants, toast, styles$13 as toggleGroupStyles, styles$14 as treeStyles, updateContextMenuItems, useAccordionContext, useActiveScopeId, useDraggablePanelContext, useDrawerActions, useDrawerOpen, useFocusScopeActive, useFocusScopeId, useFormContext, useModalActions, useModalContext, useModalOpen, usePopoverContext, usePopoverGroupHandle, usePopoverPortalContainer, useScopeArrowNav, useScopeSwitcher, useSwitchContext, useTabsContext, useToast };
@@ -4,7 +4,7 @@ import Icon from "../../Icon/Icon.mjs";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
  import { FileIcon } from "lucide-react";
6
6
  //#region src/mdx/FileTree/File.tsx
7
- const File = ({ name, icon = FileIcon, ...rest }) => {
7
+ const File$1 = ({ name, icon = FileIcon, ...rest }) => {
8
8
  return /* @__PURE__ */ jsxs(FlexBasic_default, {
9
9
  horizontal: true,
10
10
  align: "center",
@@ -13,8 +13,8 @@ const File = ({ name, icon = FileIcon, ...rest }) => {
13
13
  children: [/* @__PURE__ */ jsx(Icon, { icon }), /* @__PURE__ */ jsx("span", { children: name })]
14
14
  });
15
15
  };
16
- File.displayName = "MdxFile";
16
+ File$1.displayName = "MdxFile";
17
17
  //#endregion
18
- export { File as default };
18
+ export { File$1 as default };
19
19
 
20
20
  //# sourceMappingURL=File.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"File.mjs","names":["Flexbox"],"sources":["../../../src/mdx/FileTree/File.tsx"],"sourcesContent":["'use client';\n\nimport { FileIcon } from 'lucide-react';\nimport type { FC } from 'react';\n\nimport { Flexbox, type FlexboxProps } from '@/Flex';\nimport Icon, { type IconProps } from '@/Icon';\n\nexport interface FileProps extends Omit<FlexboxProps, 'children'> {\n icon?: IconProps['icon'];\n name: string;\n}\n\nconst File: FC<FileProps> = ({ name, icon = FileIcon, ...rest }) => {\n return (\n <Flexbox horizontal align={'center'} gap={4} {...rest}>\n <Icon icon={icon} />\n <span>{name}</span>\n </Flexbox>\n );\n};\n\nFile.displayName = 'MdxFile';\n\nexport default File;\n"],"mappings":";;;;;;AAaA,MAAM,QAAuB,EAAE,MAAM,OAAO,UAAU,GAAG,WAAW;CAClE,OACE,qBAACA,mBAAD;EAAS,YAAA;EAAW,OAAO;EAAU,KAAK;EAAG,GAAI;EAAjD,UAAA,CACE,oBAAC,MAAD,EAAY,KAAO,CAAA,GACnB,oBAAC,QAAD,EAAA,UAAO,KAAW,CAAA,CACX;;AAEb;AAEA,KAAK,cAAc"}
1
+ {"version":3,"file":"File.mjs","names":["File","Flexbox"],"sources":["../../../src/mdx/FileTree/File.tsx"],"sourcesContent":["'use client';\n\nimport { FileIcon } from 'lucide-react';\nimport type { FC } from 'react';\n\nimport { Flexbox, type FlexboxProps } from '@/Flex';\nimport Icon, { type IconProps } from '@/Icon';\n\nexport interface FileProps extends Omit<FlexboxProps, 'children'> {\n icon?: IconProps['icon'];\n name: string;\n}\n\nconst File: FC<FileProps> = ({ name, icon = FileIcon, ...rest }) => {\n return (\n <Flexbox horizontal align={'center'} gap={4} {...rest}>\n <Icon icon={icon} />\n <span>{name}</span>\n </Flexbox>\n );\n};\n\nFile.displayName = 'MdxFile';\n\nexport default File;\n"],"mappings":";;;;;;AAaA,MAAMA,UAAuB,EAAE,MAAM,OAAO,UAAU,GAAG,WAAW;CAClE,OACE,qBAACC,mBAAD;EAAS,YAAA;EAAW,OAAO;EAAU,KAAK;EAAG,GAAI;EAAjD,UAAA,CACE,oBAAC,MAAD,EAAY,KAAO,CAAA,GACnB,oBAAC,QAAD,EAAA,UAAO,KAAW,CAAA,CACX;;AAEb;AAEA,OAAK,cAAc"}
@@ -6,7 +6,7 @@ import { useState } from "react";
6
6
  import { jsx, jsxs } from "react/jsx-runtime";
7
7
  import { FolderIcon, FolderOpen } from "lucide-react";
8
8
  //#region src/mdx/FileTree/Folder.tsx
9
- const Folder = ({ name, defaultOpen, icon = FolderIcon, children, ...rest }) => {
9
+ const Folder$1 = ({ name, defaultOpen, icon = FolderIcon, children, ...rest }) => {
10
10
  const [open, setOpen] = useState(defaultOpen);
11
11
  return /* @__PURE__ */ jsxs(FlexBasic_default, {
12
12
  ...rest,
@@ -23,8 +23,8 @@ const Folder = ({ name, defaultOpen, icon = FolderIcon, children, ...rest }) =>
23
23
  })]
24
24
  });
25
25
  };
26
- Folder.displayName = "MdxFolder";
26
+ Folder$1.displayName = "MdxFolder";
27
27
  //#endregion
28
- export { Folder as default };
28
+ export { Folder$1 as default };
29
29
 
30
30
  //# sourceMappingURL=Folder.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"Folder.mjs","names":["Flexbox"],"sources":["../../../src/mdx/FileTree/Folder.tsx"],"sourcesContent":["'use client';\n\nimport { FolderIcon, FolderOpen } from 'lucide-react';\nimport { type FC, useState } from 'react';\n\nimport { Flexbox, type FlexboxProps } from '@/Flex';\nimport Icon, { type IconProps } from '@/Icon';\n\nimport { styles } from './style';\n\nexport interface FolderProps extends FlexboxProps {\n defaultOpen?: boolean;\n icon?: IconProps['icon'];\n name: string;\n}\n\nconst Folder: FC<FolderProps> = ({ name, defaultOpen, icon = FolderIcon, children, ...rest }) => {\n const [open, setOpen] = useState(defaultOpen);\n return (\n <Flexbox {...rest}>\n <Flexbox\n horizontal\n align={'center'}\n className={styles.folder}\n gap={4}\n onClick={() => setOpen(!open)}\n >\n <Icon icon={open ? FolderOpen : icon} />\n <span>{name}</span>\n </Flexbox>\n {open && <Flexbox className={styles.folderChildren}>{children}</Flexbox>}\n </Flexbox>\n );\n};\n\nFolder.displayName = 'MdxFolder';\n\nexport default Folder;\n"],"mappings":";;;;;;;;AAgBA,MAAM,UAA2B,EAAE,MAAM,aAAa,OAAO,YAAY,UAAU,GAAG,WAAW;CAC/F,MAAM,CAAC,MAAM,WAAW,SAAS,WAAW;CAC5C,OACE,qBAACA,mBAAD;EAAS,GAAI;EAAb,UAAA,CACE,qBAACA,mBAAD;GACE,YAAA;GACA,OAAO;GACP,WAAW,OAAO;GAClB,KAAK;GACL,eAAe,QAAQ,CAAC,IAAI;GAL9B,UAAA,CAOE,oBAAC,MAAD,EAAM,MAAM,OAAO,aAAa,KAAO,CAAA,GACvC,oBAAC,QAAD,EAAA,UAAO,KAAW,CAAA,CACX;EACR,CAAA,GAAA,QAAQ,oBAACA,mBAAD;GAAS,WAAW,OAAO;GAAiB;EAAkB,CAAA,CAChE;;AAEb;AAEA,OAAO,cAAc"}
1
+ {"version":3,"file":"Folder.mjs","names":["Folder","Flexbox"],"sources":["../../../src/mdx/FileTree/Folder.tsx"],"sourcesContent":["'use client';\n\nimport { FolderIcon, FolderOpen } from 'lucide-react';\nimport { type FC, useState } from 'react';\n\nimport { Flexbox, type FlexboxProps } from '@/Flex';\nimport Icon, { type IconProps } from '@/Icon';\n\nimport { styles } from './style';\n\nexport interface FolderProps extends FlexboxProps {\n defaultOpen?: boolean;\n icon?: IconProps['icon'];\n name: string;\n}\n\nconst Folder: FC<FolderProps> = ({ name, defaultOpen, icon = FolderIcon, children, ...rest }) => {\n const [open, setOpen] = useState(defaultOpen);\n return (\n <Flexbox {...rest}>\n <Flexbox\n horizontal\n align={'center'}\n className={styles.folder}\n gap={4}\n onClick={() => setOpen(!open)}\n >\n <Icon icon={open ? FolderOpen : icon} />\n <span>{name}</span>\n </Flexbox>\n {open && <Flexbox className={styles.folderChildren}>{children}</Flexbox>}\n </Flexbox>\n );\n};\n\nFolder.displayName = 'MdxFolder';\n\nexport default Folder;\n"],"mappings":";;;;;;;;AAgBA,MAAMA,YAA2B,EAAE,MAAM,aAAa,OAAO,YAAY,UAAU,GAAG,WAAW;CAC/F,MAAM,CAAC,MAAM,WAAW,SAAS,WAAW;CAC5C,OACE,qBAACC,mBAAD;EAAS,GAAI;EAAb,UAAA,CACE,qBAACA,mBAAD;GACE,YAAA;GACA,OAAO;GACP,WAAW,OAAO;GAClB,KAAK;GACL,eAAe,QAAQ,CAAC,IAAI;GAL9B,UAAA,CAOE,oBAAC,MAAD,EAAM,MAAM,OAAO,aAAa,KAAO,CAAA,GACvC,oBAAC,QAAD,EAAA,UAAO,KAAW,CAAA,CACX;EACR,CAAA,GAAA,QAAQ,oBAACA,mBAAD;GAAS,WAAW,OAAO;GAAiB;EAAkB,CAAA,CAChE;;AAEb;AAEA,SAAO,cAAc"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/ui",
3
- "version": "5.46.2",
3
+ "version": "5.47.0",
4
4
  "description": "Lobe UI is an open-source UI component library for building AIGC web apps",
5
5
  "keywords": [
6
6
  "lobehub",