@usefui/components 1.7.0 → 1.7.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @usefui/components
2
2
 
3
+ ## 1.7.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Handle missing variations and adjust UI on component. Fix Icon definition.
8
+
9
+ ## 1.7.1
10
+
11
+ ### Patch Changes
12
+
13
+ - Fix dialog position
14
+
3
15
  ## 1.7.0
4
16
 
5
17
  ### Minor Changes
package/dist/index.d.mts CHANGED
@@ -237,6 +237,7 @@ declare const AvatarBadge: {
237
237
 
238
238
  interface IBadgeProperties extends IComponentStyling, IComponentShape, IComponentSize, React$1.ComponentProps<"div"> {
239
239
  variant?: TComponentVariant | TComponentVariantExtended;
240
+ emphasis?: boolean;
240
241
  }
241
242
  /**
242
243
  * Badges are used to convey data or states to the users.
@@ -251,6 +252,7 @@ interface IBadgeProperties extends IComponentStyling, IComponentShape, IComponen
251
252
  * @param {TComponentShape} props.shape - The shape of the component. Defaults to `smooth`.
252
253
  * @param {ComponentSizeEnum} props.sizing - The size of the component. Defaults to "small".
253
254
  * @param {string} props.variant - The style definition used by the component.
255
+ * @param {boolean} props.emphasis - Emphasis change the style definition used by the component.
254
256
  * @param {ReactNode} props.children - The content to be rendered inside the Badge.
255
257
  * @returns {ReactElement} The Badge component.
256
258
  */
@@ -518,7 +520,7 @@ interface IDialogItemProperties extends IComponentStyling, IComponentSize, IScro
518
520
  * @returns {ReactElement} The Dialog component.
519
521
  */
520
522
  declare const Dialog: {
521
- (props: IDialogItemProperties): React$1.JSX.Element;
523
+ (props: IDialogItemProperties): React$1.JSX.Element | null;
522
524
  displayName: string;
523
525
  Root: {
524
526
  ({ children }: React$1.ComponentProps<"div">): React$1.JSX.Element;
@@ -588,8 +590,10 @@ declare const DialogControl: {
588
590
 
589
591
  declare const Divider: styled_components.StyledComponent<"hr", any, {}, never>;
590
592
 
593
+ type DropdownContentVariant = "body" | "contrast";
591
594
  interface IDropdownContentProperties extends IComponentStyling, IComponentSize, React$1.ComponentPropsWithRef<"ul"> {
592
595
  defaultOpen?: boolean;
596
+ variant?: DropdownContentVariant;
593
597
  }
594
598
  interface IDropdownItemProperties extends IComponentStyling, React$1.ComponentProps<"li"> {
595
599
  radio?: boolean;
@@ -666,6 +670,7 @@ declare const DropdownMenuTrigger: {
666
670
  * @param {IDropdownContentProperties} props - The props for the DropdownMenu.Content component.
667
671
  * @param {boolean} props.raw - Define whether the component is styled or not.
668
672
  * @param {ComponentSizeEnum} props.sizing - The size of the component. Defaults to "medium".
673
+ * @param {DropdownContentVariant} props.variant - The variant of the component. Defaults to "body".
669
674
  * @param {boolean} props.defaultOpen - The initial open state of the dropdown menu. Defaults to false.
670
675
  * @param {ReactNode} props.children - The content to be rendered inside the dropdown menu.
671
676
  * @returns {ReactElement} The DropdownMenu.Content component.
@@ -965,6 +970,7 @@ interface IMessageBubbleProperties extends IComponentStyling, React$1.HTMLAttrib
965
970
  }
966
971
  interface IMessageBubbleContentProperties extends IComponentStyling, IComponentShape, IComponentSize, React$1.HTMLAttributes<HTMLDivElement> {
967
972
  variant?: TComponentVariant | TComponentVariantExtended;
973
+ emphasis?: boolean;
968
974
  children: string;
969
975
  }
970
976
  interface IMessageBubbleMetaProperties extends IComponentStyling, React$1.HTMLAttributes<HTMLDivElement> {
@@ -1015,6 +1021,7 @@ declare const MessageBubble: {
1015
1021
  *
1016
1022
  * @param {IMessageBubbleContentProperties} props - The props for the MessageBubble.Content component.
1017
1023
  * @param {boolean} props.raw - When true, removes default styling for custom layouts.
1024
+ * @param {boolean} props.emphasis - Emphasis change the style definition used by the component.
1018
1025
  * @param {ReactNode} props.children - The message text or rich content to render.
1019
1026
  * @returns {ReactElement} The MessageBubble.Content component.
1020
1027
  */
@@ -1255,6 +1262,8 @@ declare const Portal: {
1255
1262
 
1256
1263
  type ResizableEditorProperties = {
1257
1264
  defaultWidth?: number;
1265
+ minWidth?: number;
1266
+ maxWidth?: number;
1258
1267
  left: React$1.ReactNode;
1259
1268
  right: React$1.ReactNode;
1260
1269
  };
@@ -1263,12 +1272,14 @@ type ResizableEditorProperties = {
1263
1272
  *
1264
1273
  * @param {ResizableEditorProperties} props - The props for the Resizable component.
1265
1274
  * @param {number} props.defaultWidth - The default width of the Resizable left section.
1275
+ * @param {number} props.minWidth - The minimum width of the Resizable sections, expressed as a percentage.
1276
+ * @param {number} props.maxWidth - The maximum width of the Resizable sections, expressed as a percentage.
1266
1277
  * @param {ReactNode} props.left - The content to be rendered inside the Left panel of the Resizable component.
1267
1278
  * @param {ReactNode} props.right - The content to be rendered inside the Right panel of the Resizable component.
1268
1279
  * @returns {ReactElement} The Resizable component.
1269
1280
  */
1270
1281
  declare const Resizable: {
1271
- ({ defaultWidth, left, right, }: ResizableEditorProperties): React$1.JSX.Element;
1282
+ ({ defaultWidth, minWidth, maxWidth, left, right, }: ResizableEditorProperties): React$1.JSX.Element;
1272
1283
  displayName: string;
1273
1284
  };
1274
1285
 
@@ -1816,123 +1827,6 @@ declare const Tooltip: {
1816
1827
  displayName: string;
1817
1828
  };
1818
1829
 
1819
- interface ITreeComposition {
1820
- Root: typeof TreeRoot;
1821
- Node: typeof TreeNode;
1822
- Trigger: typeof TreeTrigger;
1823
- Content: typeof TreeContent;
1824
- }
1825
- interface ITreeProperties extends IComponentSpacing, React$1.ComponentProps<"ul"> {
1826
- }
1827
- interface ITreeRootProperties extends IReactChildren {
1828
- defaultExpandedIds?: string[];
1829
- onSelectionChange?: (ids: string[]) => void;
1830
- }
1831
- interface ITreeNodeProperties extends IComponentSpacing, React$1.ComponentProps<"li"> {
1832
- nodeId: string;
1833
- level?: number;
1834
- isLast?: boolean;
1835
- }
1836
- interface ITreeTriggerProperties extends Omit<IButtonProperties, "value"> {
1837
- nodeId: string;
1838
- }
1839
- interface ITreeContentProperties extends IComponentSpacing, React$1.ComponentProps<"ul"> {
1840
- nodeId: string;
1841
- defaultOpen?: boolean;
1842
- }
1843
- /**
1844
- * Tree is used to display a hierarchical list of items.
1845
- *
1846
- * **Best practices:**
1847
- *
1848
- * - Use a clear and descriptive label for each tree node.
1849
- * - Ensure that the tree can be operated using only the keyboard.
1850
- * - Ensure that the focus is properly managed when nodes are expanded/collapsed.
1851
- *
1852
- * @param {ITreeProperties} props - The props for the Tree component.
1853
- * @param {ReactNode} props.children - The content to be rendered inside the tree.
1854
- * @returns {ReactElement} The Tree component.
1855
- */
1856
- declare const Tree: {
1857
- (props: ITreeProperties): React$1.JSX.Element;
1858
- displayName: string;
1859
- Root: {
1860
- ({ children, defaultExpandedIds, onSelectionChange, }: ITreeRootProperties): React$1.JSX.Element;
1861
- displayName: string;
1862
- };
1863
- Node: {
1864
- (props: ITreeNodeProperties): React$1.JSX.Element;
1865
- displayName: string;
1866
- };
1867
- Trigger: {
1868
- (props: ITreeTriggerProperties): React$1.JSX.Element;
1869
- displayName: string;
1870
- };
1871
- Content: {
1872
- (props: ITreeContentProperties): React$1.JSX.Element;
1873
- displayName: string;
1874
- };
1875
- };
1876
- declare const TreeRoot: {
1877
- ({ children, defaultExpandedIds, onSelectionChange, }: ITreeRootProperties): React$1.JSX.Element;
1878
- displayName: string;
1879
- };
1880
- /**
1881
- * Tree.Node is used to wrap each node of the tree.
1882
- *
1883
- * **Best practices:**
1884
- *
1885
- * - Provide a unique nodeId for each node.
1886
- * - Use the level prop to indicate the depth of the node in the hierarchy.
1887
- *
1888
- * @param {ITreeNodeProperties} props - The props for the Tree.Node component.
1889
- * @param {string} props.nodeId - The unique identifier for the node.
1890
- * @param {number} props.level - The depth level of the node. Defaults to 0.
1891
- * @param {boolean} props.isLast - Whether the node is the last in its siblings. Defaults to false.
1892
- * @param {ReactNode} props.children - The content to be rendered inside the node.
1893
- * @returns {ReactElement} The Tree.Node component.
1894
- */
1895
- declare const TreeNode: {
1896
- (props: ITreeNodeProperties): React$1.JSX.Element;
1897
- displayName: string;
1898
- };
1899
- /**
1900
- * Tree.Trigger is used to trigger the expansion and collapse of the associated Tree.Content component.
1901
- *
1902
- * **Best practices:**
1903
- *
1904
- * - Use a clear and descriptive label for the trigger.
1905
- * - Ensure that the trigger can be operated using only the keyboard.
1906
- * - Ensure that the focus is properly managed when the trigger is activated.
1907
- *
1908
- * @param {ITreeTriggerProperties} props - The props for the Tree.Trigger component.
1909
- * @param {string} props.nodeId - The value used to bind the Tree.Trigger and Tree.Content components.
1910
- * @param {ReactNode} props.children - The content to be rendered inside the trigger.
1911
- * @returns {ReactElement} The Tree.Trigger component.
1912
- */
1913
- declare const TreeTrigger: {
1914
- (props: ITreeTriggerProperties): React$1.JSX.Element;
1915
- displayName: string;
1916
- };
1917
- /**
1918
- * Tree.Content is used to contain the children of the associated Tree.Trigger component.
1919
- *
1920
- * **Best practices:**
1921
- *
1922
- * - Ensure that the content is hidden when the associated node is collapsed.
1923
- * - Ensure that the content is properly focused when the associated node is expanded.
1924
- *
1925
- * @param {ITreeContentProperties} props - The props for the Tree.Content component.
1926
- * @param {string} props.nodeId - The value used to bind the Tree.Content and Tree.Trigger components.
1927
- * @param {boolean} props.defaultOpen - The initial open state of the content. Defaults to false.
1928
- * @param {ReactNode} props.children - The content to be rendered inside the node content.
1929
- * @returns {ReactElement} The Tree.Content component.
1930
- */
1931
- declare const TreeContent: {
1932
- (props: ITreeContentProperties): React$1.JSX.Element;
1933
- displayName: string;
1934
- };
1935
-
1936
1830
  interface ISelectTriggerProperties extends IButtonProperties {
1937
1831
  error?: boolean;
1938
1832
  children?: React$1.ReactNode;
@@ -2082,10 +1976,6 @@ declare const useToolbar: () => IComponentAPI;
2082
1976
 
2083
1977
  declare const useMessageBubble: () => IComponentAPI;
2084
1978
 
2085
- declare const useTree: () => IComponentAPI;
2086
-
2087
- declare const useTreeNode: () => IComponentAPI;
2088
-
2089
1979
  declare const useSelect: () => IComponentAPI;
2090
1980
 
2091
- export { Accordion, AccordionContent, AccordionRoot, AccordionTrigger, AvataStatusEnum, Avatar, AvatarStatus, type AvatarStatusType, Badge, Breadcrumb, type BreadcrumbComposition, BreadcrumbItem, BreadcrumbSeparator, Button, Card, CardBody, type CardComposition, CardGrid, CardMeta, Checkbox, CheckboxIndicator, CheckboxRoot, Collapsible, CollapsibleContent, CollapsibleRoot, CollapsibleTrigger, CopyButton, Dialog, DialogControl, DialogMenu, DialogOverlay, DialogRoot, DialogTrigger, Divider, DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuRoot, DropdownMenuTrigger, Field, FieldDate, FieldFile, FieldLabel, FieldMeta, FieldNumber, FieldPassword, FieldRoot, FieldTag, FieldWrapper, type IAccordionComposition, type IAccordionContentProperties, type IAccordionProperties, type IAccordionTriggerProperties, type IAvatarBadgeProperties, type IAvatarComposition, type IAvatarProperties, type IBadgeProperties, type IButtonProperties, type ICheckboxComposition, type ICheckboxProperties, type ICollapsibleComposition, type ICollapsibleProperties, type IDialogItemProperties, type IDropdownComposition, type IDropdownContentProperties, type IDropdownItemProperties, type IField, type IFieldComposition, type IFieldDate, type IFieldFile, type IFieldLabel, type IFieldMeta, type IFieldNumber, type IFieldTag, type IMessageBubbleContentProperties, type IMessageBubbleContext, type IMessageBubbleMetaProperties, type IMessageBubbleProperties, type IOTPFieldComposition, type IOverlayProperties, type IPageToolsProperties, type IPageWrapperProperties, type IPortalProperties, type IScrollAreaProperties, type ISelectContentProperties, type ISelectItemProperties, type ISelectTriggerProperties, type ISheetComposition, type ISheetProperties, type ISwitchComposition, type ISwitchProperties, type ISwitchThumbProperties, type ITabsComposition, type ITabsProperties, type ITextShimmerProperties, type IToggleProperties, type IToolbarBodyProperties, type IToolbarComposition, type IToolbarItemProperties, type IToolbarSectionProperties, type ITreeComposition, type ITreeContentProperties, type ITreeNodeProperties, type ITreeProperties, type ITreeRootProperties, type ITreeTriggerProperties, MessageBubble, MessageBubbleContent, MessageBubbleMeta, MessageBubbleRoot, type MessageBubbleSide, MetaVariantEnum, OTPField, OTPFieldSlot, Overlay, Page, PageContent, PageMenu, PageNavigation, PagePanel, PageTools, PageWrapper, Portal, Resizable, ScrollArea, type ScrollContainerProps, Select, SelectContent, SelectItem, SelectRoot, SelectTrigger, Sheet, SheetRoot, SheetTrigger, Shimmer, Skeleton, type SkeletonProperties, Spinner, Switch, SwitchRoot, SwitchThumb, type TMetaVariant, Table, TableBody, TableCell, TableFooter, TableHead, TableHeadCell, TableRow, Tabs, TabsContent, TabsRoot, TabsTrigger, Textarea, type TextareaProps, Toggle, Toolbar, ToolbarItem, ToolbarRoot, ToolbarSection, ToolbarTrigger, Tooltip, Tree, TreeContent, TreeNode, TreeRoot, TreeTrigger, useAccordion, useCheckbox, useCollapsible, useDialog, useDropdownMenu, useField, useMessageBubble, useSelect, useSheet, useSwitch, useTabs, useToolbar, useTree, useTreeNode };
1981
+ export { Accordion, AccordionContent, AccordionRoot, AccordionTrigger, AvataStatusEnum, Avatar, AvatarStatus, type AvatarStatusType, Badge, Breadcrumb, type BreadcrumbComposition, BreadcrumbItem, BreadcrumbSeparator, Button, Card, CardBody, type CardComposition, CardGrid, CardMeta, Checkbox, CheckboxIndicator, CheckboxRoot, Collapsible, CollapsibleContent, CollapsibleRoot, CollapsibleTrigger, CopyButton, Dialog, DialogControl, DialogMenu, DialogOverlay, DialogRoot, DialogTrigger, Divider, DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuRoot, DropdownMenuTrigger, Field, FieldDate, FieldFile, FieldLabel, FieldMeta, FieldNumber, FieldPassword, FieldRoot, FieldTag, FieldWrapper, type IAccordionComposition, type IAccordionContentProperties, type IAccordionProperties, type IAccordionTriggerProperties, type IAvatarBadgeProperties, type IAvatarComposition, type IAvatarProperties, type IBadgeProperties, type IButtonProperties, type ICheckboxComposition, type ICheckboxProperties, type ICollapsibleComposition, type ICollapsibleProperties, type IDialogItemProperties, type IDropdownComposition, type IDropdownContentProperties, type IDropdownItemProperties, type IField, type IFieldComposition, type IFieldDate, type IFieldFile, type IFieldLabel, type IFieldMeta, type IFieldNumber, type IFieldTag, type IMessageBubbleContentProperties, type IMessageBubbleContext, type IMessageBubbleMetaProperties, type IMessageBubbleProperties, type IOTPFieldComposition, type IOverlayProperties, type IPageToolsProperties, type IPageWrapperProperties, type IPortalProperties, type IScrollAreaProperties, type ISelectContentProperties, type ISelectItemProperties, type ISelectTriggerProperties, type ISheetComposition, type ISheetProperties, type ISwitchComposition, type ISwitchProperties, type ISwitchThumbProperties, type ITabsComposition, type ITabsProperties, type ITextShimmerProperties, type IToggleProperties, type IToolbarBodyProperties, type IToolbarComposition, type IToolbarItemProperties, type IToolbarSectionProperties, MessageBubble, MessageBubbleContent, MessageBubbleMeta, MessageBubbleRoot, type MessageBubbleSide, MetaVariantEnum, OTPField, OTPFieldSlot, Overlay, Page, PageContent, PageMenu, PageNavigation, PagePanel, PageTools, PageWrapper, Portal, Resizable, ScrollArea, type ScrollContainerProps, Select, SelectContent, SelectItem, SelectRoot, SelectTrigger, Sheet, SheetRoot, SheetTrigger, Shimmer, Skeleton, type SkeletonProperties, Spinner, Switch, SwitchRoot, SwitchThumb, type TMetaVariant, Table, TableBody, TableCell, TableFooter, TableHead, TableHeadCell, TableRow, Tabs, TabsContent, TabsRoot, TabsTrigger, Textarea, type TextareaProps, Toggle, Toolbar, ToolbarItem, ToolbarRoot, ToolbarSection, ToolbarTrigger, Tooltip, useAccordion, useCheckbox, useCollapsible, useDialog, useDropdownMenu, useField, useMessageBubble, useSelect, useSheet, useSwitch, useTabs, useToolbar };
package/dist/index.d.ts CHANGED
@@ -237,6 +237,7 @@ declare const AvatarBadge: {
237
237
 
238
238
  interface IBadgeProperties extends IComponentStyling, IComponentShape, IComponentSize, React$1.ComponentProps<"div"> {
239
239
  variant?: TComponentVariant | TComponentVariantExtended;
240
+ emphasis?: boolean;
240
241
  }
241
242
  /**
242
243
  * Badges are used to convey data or states to the users.
@@ -251,6 +252,7 @@ interface IBadgeProperties extends IComponentStyling, IComponentShape, IComponen
251
252
  * @param {TComponentShape} props.shape - The shape of the component. Defaults to `smooth`.
252
253
  * @param {ComponentSizeEnum} props.sizing - The size of the component. Defaults to "small".
253
254
  * @param {string} props.variant - The style definition used by the component.
255
+ * @param {boolean} props.emphasis - Emphasis change the style definition used by the component.
254
256
  * @param {ReactNode} props.children - The content to be rendered inside the Badge.
255
257
  * @returns {ReactElement} The Badge component.
256
258
  */
@@ -518,7 +520,7 @@ interface IDialogItemProperties extends IComponentStyling, IComponentSize, IScro
518
520
  * @returns {ReactElement} The Dialog component.
519
521
  */
520
522
  declare const Dialog: {
521
- (props: IDialogItemProperties): React$1.JSX.Element;
523
+ (props: IDialogItemProperties): React$1.JSX.Element | null;
522
524
  displayName: string;
523
525
  Root: {
524
526
  ({ children }: React$1.ComponentProps<"div">): React$1.JSX.Element;
@@ -588,8 +590,10 @@ declare const DialogControl: {
588
590
 
589
591
  declare const Divider: styled_components.StyledComponent<"hr", any, {}, never>;
590
592
 
593
+ type DropdownContentVariant = "body" | "contrast";
591
594
  interface IDropdownContentProperties extends IComponentStyling, IComponentSize, React$1.ComponentPropsWithRef<"ul"> {
592
595
  defaultOpen?: boolean;
596
+ variant?: DropdownContentVariant;
593
597
  }
594
598
  interface IDropdownItemProperties extends IComponentStyling, React$1.ComponentProps<"li"> {
595
599
  radio?: boolean;
@@ -666,6 +670,7 @@ declare const DropdownMenuTrigger: {
666
670
  * @param {IDropdownContentProperties} props - The props for the DropdownMenu.Content component.
667
671
  * @param {boolean} props.raw - Define whether the component is styled or not.
668
672
  * @param {ComponentSizeEnum} props.sizing - The size of the component. Defaults to "medium".
673
+ * @param {DropdownContentVariant} props.variant - The variant of the component. Defaults to "body".
669
674
  * @param {boolean} props.defaultOpen - The initial open state of the dropdown menu. Defaults to false.
670
675
  * @param {ReactNode} props.children - The content to be rendered inside the dropdown menu.
671
676
  * @returns {ReactElement} The DropdownMenu.Content component.
@@ -965,6 +970,7 @@ interface IMessageBubbleProperties extends IComponentStyling, React$1.HTMLAttrib
965
970
  }
966
971
  interface IMessageBubbleContentProperties extends IComponentStyling, IComponentShape, IComponentSize, React$1.HTMLAttributes<HTMLDivElement> {
967
972
  variant?: TComponentVariant | TComponentVariantExtended;
973
+ emphasis?: boolean;
968
974
  children: string;
969
975
  }
970
976
  interface IMessageBubbleMetaProperties extends IComponentStyling, React$1.HTMLAttributes<HTMLDivElement> {
@@ -1015,6 +1021,7 @@ declare const MessageBubble: {
1015
1021
  *
1016
1022
  * @param {IMessageBubbleContentProperties} props - The props for the MessageBubble.Content component.
1017
1023
  * @param {boolean} props.raw - When true, removes default styling for custom layouts.
1024
+ * @param {boolean} props.emphasis - Emphasis change the style definition used by the component.
1018
1025
  * @param {ReactNode} props.children - The message text or rich content to render.
1019
1026
  * @returns {ReactElement} The MessageBubble.Content component.
1020
1027
  */
@@ -1255,6 +1262,8 @@ declare const Portal: {
1255
1262
 
1256
1263
  type ResizableEditorProperties = {
1257
1264
  defaultWidth?: number;
1265
+ minWidth?: number;
1266
+ maxWidth?: number;
1258
1267
  left: React$1.ReactNode;
1259
1268
  right: React$1.ReactNode;
1260
1269
  };
@@ -1263,12 +1272,14 @@ type ResizableEditorProperties = {
1263
1272
  *
1264
1273
  * @param {ResizableEditorProperties} props - The props for the Resizable component.
1265
1274
  * @param {number} props.defaultWidth - The default width of the Resizable left section.
1275
+ * @param {number} props.minWidth - The minimum width of the Resizable sections, expressed as a percentage.
1276
+ * @param {number} props.maxWidth - The maximum width of the Resizable sections, expressed as a percentage.
1266
1277
  * @param {ReactNode} props.left - The content to be rendered inside the Left panel of the Resizable component.
1267
1278
  * @param {ReactNode} props.right - The content to be rendered inside the Right panel of the Resizable component.
1268
1279
  * @returns {ReactElement} The Resizable component.
1269
1280
  */
1270
1281
  declare const Resizable: {
1271
- ({ defaultWidth, left, right, }: ResizableEditorProperties): React$1.JSX.Element;
1282
+ ({ defaultWidth, minWidth, maxWidth, left, right, }: ResizableEditorProperties): React$1.JSX.Element;
1272
1283
  displayName: string;
1273
1284
  };
1274
1285
 
@@ -1816,123 +1827,6 @@ declare const Tooltip: {
1816
1827
  displayName: string;
1817
1828
  };
1818
1829
 
1819
- interface ITreeComposition {
1820
- Root: typeof TreeRoot;
1821
- Node: typeof TreeNode;
1822
- Trigger: typeof TreeTrigger;
1823
- Content: typeof TreeContent;
1824
- }
1825
- interface ITreeProperties extends IComponentSpacing, React$1.ComponentProps<"ul"> {
1826
- }
1827
- interface ITreeRootProperties extends IReactChildren {
1828
- defaultExpandedIds?: string[];
1829
- onSelectionChange?: (ids: string[]) => void;
1830
- }
1831
- interface ITreeNodeProperties extends IComponentSpacing, React$1.ComponentProps<"li"> {
1832
- nodeId: string;
1833
- level?: number;
1834
- isLast?: boolean;
1835
- }
1836
- interface ITreeTriggerProperties extends Omit<IButtonProperties, "value"> {
1837
- nodeId: string;
1838
- }
1839
- interface ITreeContentProperties extends IComponentSpacing, React$1.ComponentProps<"ul"> {
1840
- nodeId: string;
1841
- defaultOpen?: boolean;
1842
- }
1843
- /**
1844
- * Tree is used to display a hierarchical list of items.
1845
- *
1846
- * **Best practices:**
1847
- *
1848
- * - Use a clear and descriptive label for each tree node.
1849
- * - Ensure that the tree can be operated using only the keyboard.
1850
- * - Ensure that the focus is properly managed when nodes are expanded/collapsed.
1851
- *
1852
- * @param {ITreeProperties} props - The props for the Tree component.
1853
- * @param {ReactNode} props.children - The content to be rendered inside the tree.
1854
- * @returns {ReactElement} The Tree component.
1855
- */
1856
- declare const Tree: {
1857
- (props: ITreeProperties): React$1.JSX.Element;
1858
- displayName: string;
1859
- Root: {
1860
- ({ children, defaultExpandedIds, onSelectionChange, }: ITreeRootProperties): React$1.JSX.Element;
1861
- displayName: string;
1862
- };
1863
- Node: {
1864
- (props: ITreeNodeProperties): React$1.JSX.Element;
1865
- displayName: string;
1866
- };
1867
- Trigger: {
1868
- (props: ITreeTriggerProperties): React$1.JSX.Element;
1869
- displayName: string;
1870
- };
1871
- Content: {
1872
- (props: ITreeContentProperties): React$1.JSX.Element;
1873
- displayName: string;
1874
- };
1875
- };
1876
- declare const TreeRoot: {
1877
- ({ children, defaultExpandedIds, onSelectionChange, }: ITreeRootProperties): React$1.JSX.Element;
1878
- displayName: string;
1879
- };
1880
- /**
1881
- * Tree.Node is used to wrap each node of the tree.
1882
- *
1883
- * **Best practices:**
1884
- *
1885
- * - Provide a unique nodeId for each node.
1886
- * - Use the level prop to indicate the depth of the node in the hierarchy.
1887
- *
1888
- * @param {ITreeNodeProperties} props - The props for the Tree.Node component.
1889
- * @param {string} props.nodeId - The unique identifier for the node.
1890
- * @param {number} props.level - The depth level of the node. Defaults to 0.
1891
- * @param {boolean} props.isLast - Whether the node is the last in its siblings. Defaults to false.
1892
- * @param {ReactNode} props.children - The content to be rendered inside the node.
1893
- * @returns {ReactElement} The Tree.Node component.
1894
- */
1895
- declare const TreeNode: {
1896
- (props: ITreeNodeProperties): React$1.JSX.Element;
1897
- displayName: string;
1898
- };
1899
- /**
1900
- * Tree.Trigger is used to trigger the expansion and collapse of the associated Tree.Content component.
1901
- *
1902
- * **Best practices:**
1903
- *
1904
- * - Use a clear and descriptive label for the trigger.
1905
- * - Ensure that the trigger can be operated using only the keyboard.
1906
- * - Ensure that the focus is properly managed when the trigger is activated.
1907
- *
1908
- * @param {ITreeTriggerProperties} props - The props for the Tree.Trigger component.
1909
- * @param {string} props.nodeId - The value used to bind the Tree.Trigger and Tree.Content components.
1910
- * @param {ReactNode} props.children - The content to be rendered inside the trigger.
1911
- * @returns {ReactElement} The Tree.Trigger component.
1912
- */
1913
- declare const TreeTrigger: {
1914
- (props: ITreeTriggerProperties): React$1.JSX.Element;
1915
- displayName: string;
1916
- };
1917
- /**
1918
- * Tree.Content is used to contain the children of the associated Tree.Trigger component.
1919
- *
1920
- * **Best practices:**
1921
- *
1922
- * - Ensure that the content is hidden when the associated node is collapsed.
1923
- * - Ensure that the content is properly focused when the associated node is expanded.
1924
- *
1925
- * @param {ITreeContentProperties} props - The props for the Tree.Content component.
1926
- * @param {string} props.nodeId - The value used to bind the Tree.Content and Tree.Trigger components.
1927
- * @param {boolean} props.defaultOpen - The initial open state of the content. Defaults to false.
1928
- * @param {ReactNode} props.children - The content to be rendered inside the node content.
1929
- * @returns {ReactElement} The Tree.Content component.
1930
- */
1931
- declare const TreeContent: {
1932
- (props: ITreeContentProperties): React$1.JSX.Element;
1933
- displayName: string;
1934
- };
1935
-
1936
1830
  interface ISelectTriggerProperties extends IButtonProperties {
1937
1831
  error?: boolean;
1938
1832
  children?: React$1.ReactNode;
@@ -2082,10 +1976,6 @@ declare const useToolbar: () => IComponentAPI;
2082
1976
 
2083
1977
  declare const useMessageBubble: () => IComponentAPI;
2084
1978
 
2085
- declare const useTree: () => IComponentAPI;
2086
-
2087
- declare const useTreeNode: () => IComponentAPI;
2088
-
2089
1979
  declare const useSelect: () => IComponentAPI;
2090
1980
 
2091
- export { Accordion, AccordionContent, AccordionRoot, AccordionTrigger, AvataStatusEnum, Avatar, AvatarStatus, type AvatarStatusType, Badge, Breadcrumb, type BreadcrumbComposition, BreadcrumbItem, BreadcrumbSeparator, Button, Card, CardBody, type CardComposition, CardGrid, CardMeta, Checkbox, CheckboxIndicator, CheckboxRoot, Collapsible, CollapsibleContent, CollapsibleRoot, CollapsibleTrigger, CopyButton, Dialog, DialogControl, DialogMenu, DialogOverlay, DialogRoot, DialogTrigger, Divider, DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuRoot, DropdownMenuTrigger, Field, FieldDate, FieldFile, FieldLabel, FieldMeta, FieldNumber, FieldPassword, FieldRoot, FieldTag, FieldWrapper, type IAccordionComposition, type IAccordionContentProperties, type IAccordionProperties, type IAccordionTriggerProperties, type IAvatarBadgeProperties, type IAvatarComposition, type IAvatarProperties, type IBadgeProperties, type IButtonProperties, type ICheckboxComposition, type ICheckboxProperties, type ICollapsibleComposition, type ICollapsibleProperties, type IDialogItemProperties, type IDropdownComposition, type IDropdownContentProperties, type IDropdownItemProperties, type IField, type IFieldComposition, type IFieldDate, type IFieldFile, type IFieldLabel, type IFieldMeta, type IFieldNumber, type IFieldTag, type IMessageBubbleContentProperties, type IMessageBubbleContext, type IMessageBubbleMetaProperties, type IMessageBubbleProperties, type IOTPFieldComposition, type IOverlayProperties, type IPageToolsProperties, type IPageWrapperProperties, type IPortalProperties, type IScrollAreaProperties, type ISelectContentProperties, type ISelectItemProperties, type ISelectTriggerProperties, type ISheetComposition, type ISheetProperties, type ISwitchComposition, type ISwitchProperties, type ISwitchThumbProperties, type ITabsComposition, type ITabsProperties, type ITextShimmerProperties, type IToggleProperties, type IToolbarBodyProperties, type IToolbarComposition, type IToolbarItemProperties, type IToolbarSectionProperties, type ITreeComposition, type ITreeContentProperties, type ITreeNodeProperties, type ITreeProperties, type ITreeRootProperties, type ITreeTriggerProperties, MessageBubble, MessageBubbleContent, MessageBubbleMeta, MessageBubbleRoot, type MessageBubbleSide, MetaVariantEnum, OTPField, OTPFieldSlot, Overlay, Page, PageContent, PageMenu, PageNavigation, PagePanel, PageTools, PageWrapper, Portal, Resizable, ScrollArea, type ScrollContainerProps, Select, SelectContent, SelectItem, SelectRoot, SelectTrigger, Sheet, SheetRoot, SheetTrigger, Shimmer, Skeleton, type SkeletonProperties, Spinner, Switch, SwitchRoot, SwitchThumb, type TMetaVariant, Table, TableBody, TableCell, TableFooter, TableHead, TableHeadCell, TableRow, Tabs, TabsContent, TabsRoot, TabsTrigger, Textarea, type TextareaProps, Toggle, Toolbar, ToolbarItem, ToolbarRoot, ToolbarSection, ToolbarTrigger, Tooltip, Tree, TreeContent, TreeNode, TreeRoot, TreeTrigger, useAccordion, useCheckbox, useCollapsible, useDialog, useDropdownMenu, useField, useMessageBubble, useSelect, useSheet, useSwitch, useTabs, useToolbar, useTree, useTreeNode };
1981
+ export { Accordion, AccordionContent, AccordionRoot, AccordionTrigger, AvataStatusEnum, Avatar, AvatarStatus, type AvatarStatusType, Badge, Breadcrumb, type BreadcrumbComposition, BreadcrumbItem, BreadcrumbSeparator, Button, Card, CardBody, type CardComposition, CardGrid, CardMeta, Checkbox, CheckboxIndicator, CheckboxRoot, Collapsible, CollapsibleContent, CollapsibleRoot, CollapsibleTrigger, CopyButton, Dialog, DialogControl, DialogMenu, DialogOverlay, DialogRoot, DialogTrigger, Divider, DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuRoot, DropdownMenuTrigger, Field, FieldDate, FieldFile, FieldLabel, FieldMeta, FieldNumber, FieldPassword, FieldRoot, FieldTag, FieldWrapper, type IAccordionComposition, type IAccordionContentProperties, type IAccordionProperties, type IAccordionTriggerProperties, type IAvatarBadgeProperties, type IAvatarComposition, type IAvatarProperties, type IBadgeProperties, type IButtonProperties, type ICheckboxComposition, type ICheckboxProperties, type ICollapsibleComposition, type ICollapsibleProperties, type IDialogItemProperties, type IDropdownComposition, type IDropdownContentProperties, type IDropdownItemProperties, type IField, type IFieldComposition, type IFieldDate, type IFieldFile, type IFieldLabel, type IFieldMeta, type IFieldNumber, type IFieldTag, type IMessageBubbleContentProperties, type IMessageBubbleContext, type IMessageBubbleMetaProperties, type IMessageBubbleProperties, type IOTPFieldComposition, type IOverlayProperties, type IPageToolsProperties, type IPageWrapperProperties, type IPortalProperties, type IScrollAreaProperties, type ISelectContentProperties, type ISelectItemProperties, type ISelectTriggerProperties, type ISheetComposition, type ISheetProperties, type ISwitchComposition, type ISwitchProperties, type ISwitchThumbProperties, type ITabsComposition, type ITabsProperties, type ITextShimmerProperties, type IToggleProperties, type IToolbarBodyProperties, type IToolbarComposition, type IToolbarItemProperties, type IToolbarSectionProperties, MessageBubble, MessageBubbleContent, MessageBubbleMeta, MessageBubbleRoot, type MessageBubbleSide, MetaVariantEnum, OTPField, OTPFieldSlot, Overlay, Page, PageContent, PageMenu, PageNavigation, PagePanel, PageTools, PageWrapper, Portal, Resizable, ScrollArea, type ScrollContainerProps, Select, SelectContent, SelectItem, SelectRoot, SelectTrigger, Sheet, SheetRoot, SheetTrigger, Shimmer, Skeleton, type SkeletonProperties, Spinner, Switch, SwitchRoot, SwitchThumb, type TMetaVariant, Table, TableBody, TableCell, TableFooter, TableHead, TableHeadCell, TableRow, Tabs, TabsContent, TabsRoot, TabsTrigger, Textarea, type TextareaProps, Toggle, Toolbar, ToolbarItem, ToolbarRoot, ToolbarSection, ToolbarTrigger, Tooltip, useAccordion, useCheckbox, useCollapsible, useDialog, useDropdownMenu, useField, useMessageBubble, useSelect, useSheet, useSwitch, useTabs, useToolbar };