@devalok/shilp-sutra 0.1.0 → 0.2.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 (286) hide show
  1. package/dist/composed/avatar-group.d.ts +1 -0
  2. package/dist/composed/avatar-group.d.ts.map +1 -1
  3. package/dist/composed/avatar-group.js +1 -0
  4. package/dist/composed/command-palette.d.ts +1 -0
  5. package/dist/composed/command-palette.js +4 -3
  6. package/dist/composed/date-picker/calendar-grid.d.ts +1 -0
  7. package/dist/composed/date-picker/calendar-grid.js +1 -0
  8. package/dist/composed/date-picker/date-picker.d.ts +1 -0
  9. package/dist/composed/date-picker/date-picker.js +1 -0
  10. package/dist/composed/date-picker/date-range-picker.d.ts +1 -0
  11. package/dist/composed/date-picker/date-range-picker.js +1 -0
  12. package/dist/composed/date-picker/date-time-picker.d.ts +1 -0
  13. package/dist/composed/date-picker/date-time-picker.js +1 -0
  14. package/dist/composed/date-picker/index.d.ts +1 -0
  15. package/dist/composed/date-picker/month-picker.d.ts +1 -0
  16. package/dist/composed/date-picker/month-picker.js +1 -0
  17. package/dist/composed/date-picker/presets.d.ts +1 -0
  18. package/dist/composed/date-picker/presets.js +1 -0
  19. package/dist/composed/date-picker/time-picker.d.ts +1 -0
  20. package/dist/composed/date-picker/time-picker.js +2 -1
  21. package/dist/composed/date-picker/use-calendar.d.ts +1 -0
  22. package/dist/composed/date-picker/use-calendar.d.ts.map +1 -1
  23. package/dist/composed/date-picker/use-calendar.js +1 -0
  24. package/dist/composed/date-picker/year-picker.d.ts +1 -0
  25. package/dist/composed/date-picker/year-picker.js +1 -0
  26. package/dist/composed/empty-state.js +1 -1
  27. package/dist/composed/error-boundary.d.ts +1 -0
  28. package/dist/composed/error-boundary.js +2 -1
  29. package/dist/composed/global-loading.d.ts +1 -0
  30. package/dist/composed/global-loading.js +1 -0
  31. package/dist/composed/index.d.ts +15 -0
  32. package/dist/composed/index.d.ts.map +1 -1
  33. package/dist/composed/index.js +1 -0
  34. package/dist/composed/lib/string-utils.d.ts +1 -0
  35. package/dist/composed/lib/string-utils.d.ts.map +1 -1
  36. package/dist/composed/lib/string-utils.js +7 -4
  37. package/dist/composed/loading-skeleton.js +32 -32
  38. package/dist/composed/member-picker.d.ts +1 -0
  39. package/dist/composed/member-picker.js +1 -0
  40. package/dist/composed/page-skeletons.js +38 -38
  41. package/dist/composed/rich-text-editor.d.ts +1 -0
  42. package/dist/composed/rich-text-editor.d.ts.map +1 -1
  43. package/dist/composed/rich-text-editor.js +47 -44
  44. package/dist/composed/status-badge.js +6 -6
  45. package/dist/hooks/index.d.ts +1 -0
  46. package/dist/hooks/index.js +10 -0
  47. package/dist/hooks/use-color-mode.d.ts +1 -0
  48. package/dist/hooks/use-color-mode.d.ts.map +1 -1
  49. package/dist/hooks/use-color-mode.js +9 -8
  50. package/dist/hooks/use-mobile.d.ts +1 -0
  51. package/dist/hooks/use-mobile.js +1 -0
  52. package/dist/hooks/use-toast.d.ts +1 -0
  53. package/dist/hooks/use-toast.d.ts.map +1 -1
  54. package/dist/hooks/use-toast.js +3 -2
  55. package/dist/primitives/react-accordion.d.ts +114 -0
  56. package/dist/primitives/react-alert-dialog.d.ts +51 -0
  57. package/dist/primitives/react-aspect-ratio.d.ts +11 -0
  58. package/dist/primitives/react-avatar.d.ts +24 -0
  59. package/dist/primitives/react-checkbox.d.ts +50 -0
  60. package/dist/primitives/react-collapsible.d.ts +33 -0
  61. package/dist/primitives/react-context-menu.d.ts +96 -0
  62. package/dist/primitives/react-dialog.d.ts +103 -0
  63. package/dist/primitives/react-dropdown-menu.d.ts +97 -0
  64. package/dist/primitives/react-hover-card.d.ts +79 -0
  65. package/dist/primitives/react-label.d.ts +10 -0
  66. package/dist/primitives/react-menu.d.ts +169 -0
  67. package/dist/primitives/react-menubar.d.ts +115 -0
  68. package/dist/primitives/react-navigation-menu.d.ts +126 -0
  69. package/dist/primitives/react-popover.d.ts +85 -0
  70. package/dist/primitives/react-progress.d.ts +19 -0
  71. package/dist/primitives/react-radio-group.d.ts +58 -0
  72. package/dist/primitives/react-roving-focus.d.ts +49 -0
  73. package/dist/primitives/react-select.d.ts +137 -0
  74. package/dist/primitives/react-separator.d.ts +21 -0
  75. package/dist/primitives/react-slider.d.ts +75 -0
  76. package/dist/primitives/react-switch.d.ts +21 -0
  77. package/dist/primitives/react-tabs.d.ts +56 -0
  78. package/dist/primitives/react-toast.d.ts +120 -0
  79. package/dist/primitives/react-toggle-group.d.ts +75 -0
  80. package/dist/primitives/react-toggle.d.ts +24 -0
  81. package/dist/primitives/react-tooltip.d.ts +101 -0
  82. package/dist/primitives/react-visually-hidden.d.ts +22 -0
  83. package/dist/shell/app-command-palette.d.ts +3 -3
  84. package/dist/shell/app-command-palette.d.ts.map +1 -1
  85. package/dist/shell/app-command-palette.js +2 -1
  86. package/dist/shell/bottom-navbar.d.ts +1 -0
  87. package/dist/shell/bottom-navbar.d.ts.map +1 -1
  88. package/dist/shell/bottom-navbar.js +40 -37
  89. package/dist/shell/index.d.ts +14 -2
  90. package/dist/shell/index.d.ts.map +1 -1
  91. package/dist/shell/index.js +16 -12
  92. package/dist/shell/link-context.d.ts +12 -0
  93. package/dist/shell/link-context.d.ts.map +1 -0
  94. package/dist/shell/link-context.js +19 -0
  95. package/dist/shell/notification-center.d.ts +1 -0
  96. package/dist/shell/notification-center.d.ts.map +1 -1
  97. package/dist/shell/notification-center.js +21 -19
  98. package/dist/shell/notification-preferences.d.ts +3 -3
  99. package/dist/shell/notification-preferences.d.ts.map +1 -1
  100. package/dist/shell/notification-preferences.js +14 -13
  101. package/dist/shell/sidebar.d.ts +1 -0
  102. package/dist/shell/sidebar.d.ts.map +1 -1
  103. package/dist/shell/sidebar.js +32 -30
  104. package/dist/shell/top-bar.d.ts +1 -0
  105. package/dist/shell/top-bar.d.ts.map +1 -1
  106. package/dist/shell/top-bar.js +35 -30
  107. package/dist/tailwind/preset.d.ts.map +1 -1
  108. package/dist/tailwind/preset.js +32 -2
  109. package/dist/ui/accordion.d.ts +2 -1
  110. package/dist/ui/accordion.js +1 -0
  111. package/dist/ui/alert-dialog.d.ts +2 -1
  112. package/dist/ui/alert-dialog.js +1 -0
  113. package/dist/ui/alert.d.ts +1 -0
  114. package/dist/ui/alert.d.ts.map +1 -1
  115. package/dist/ui/alert.js +2 -1
  116. package/dist/ui/aspect-ratio.d.ts +2 -1
  117. package/dist/ui/aspect-ratio.js +1 -0
  118. package/dist/ui/autocomplete.d.ts +1 -0
  119. package/dist/ui/autocomplete.js +35 -34
  120. package/dist/ui/avatar.d.ts +2 -1
  121. package/dist/ui/avatar.js +13 -12
  122. package/dist/ui/badge.d.ts +1 -0
  123. package/dist/ui/badge.d.ts.map +1 -1
  124. package/dist/ui/badge.js +4 -3
  125. package/dist/ui/banner.d.ts +1 -0
  126. package/dist/ui/banner.d.ts.map +1 -1
  127. package/dist/ui/banner.js +1 -0
  128. package/dist/ui/breadcrumb.d.ts +1 -0
  129. package/dist/ui/breadcrumb.js +1 -0
  130. package/dist/ui/button-group.d.ts +1 -0
  131. package/dist/ui/button-group.js +1 -0
  132. package/dist/ui/button.d.ts +1 -0
  133. package/dist/ui/button.js +2 -1
  134. package/dist/ui/card.d.ts +1 -0
  135. package/dist/ui/card.d.ts.map +1 -1
  136. package/dist/ui/card.js +2 -1
  137. package/dist/ui/charts/_internal/animation.d.ts +1 -0
  138. package/dist/ui/charts/_internal/animation.d.ts.map +1 -1
  139. package/dist/ui/charts/_internal/animation.js +1 -0
  140. package/dist/ui/charts/_internal/axes.d.ts +1 -0
  141. package/dist/ui/charts/_internal/axes.d.ts.map +1 -1
  142. package/dist/ui/charts/_internal/axes.js +1 -0
  143. package/dist/ui/charts/_internal/colors.d.ts +1 -0
  144. package/dist/ui/charts/_internal/colors.js +1 -0
  145. package/dist/ui/charts/_internal/grid-lines.d.ts +1 -0
  146. package/dist/ui/charts/_internal/grid-lines.js +1 -0
  147. package/dist/ui/charts/_internal/legend.d.ts +1 -0
  148. package/dist/ui/charts/_internal/legend.js +1 -0
  149. package/dist/ui/charts/_internal/scales.d.ts +1 -0
  150. package/dist/ui/charts/_internal/tooltip.d.ts +1 -0
  151. package/dist/ui/charts/_internal/tooltip.d.ts.map +1 -1
  152. package/dist/ui/charts/_internal/tooltip.js +1 -0
  153. package/dist/ui/charts/_internal/types.d.ts +1 -0
  154. package/dist/ui/charts/_internal/types.js +1 -0
  155. package/dist/ui/charts/area-chart.d.ts +1 -0
  156. package/dist/ui/charts/area-chart.js +1 -0
  157. package/dist/ui/charts/bar-chart.d.ts +1 -0
  158. package/dist/ui/charts/bar-chart.js +2 -1
  159. package/dist/ui/charts/chart-container.d.ts +1 -0
  160. package/dist/ui/charts/chart-container.js +12 -11
  161. package/dist/ui/charts/gauge-chart.d.ts +1 -0
  162. package/dist/ui/charts/gauge-chart.js +1 -0
  163. package/dist/ui/charts/index.d.ts +1 -0
  164. package/dist/ui/charts/line-chart.d.ts +1 -0
  165. package/dist/ui/charts/line-chart.js +2 -1
  166. package/dist/ui/charts/pie-chart.d.ts +1 -0
  167. package/dist/ui/charts/pie-chart.js +1 -0
  168. package/dist/ui/charts/radar-chart.d.ts +1 -0
  169. package/dist/ui/charts/radar-chart.js +21 -20
  170. package/dist/ui/charts/sparkline.d.ts +1 -0
  171. package/dist/ui/charts/sparkline.js +1 -0
  172. package/dist/ui/checkbox.d.ts +2 -1
  173. package/dist/ui/checkbox.js +1 -0
  174. package/dist/ui/chip.d.ts +1 -0
  175. package/dist/ui/chip.d.ts.map +1 -1
  176. package/dist/ui/chip.js +35 -36
  177. package/dist/ui/code.js +13 -13
  178. package/dist/ui/collapsible.d.ts +2 -1
  179. package/dist/ui/collapsible.js +1 -0
  180. package/dist/ui/combobox.d.ts +1 -0
  181. package/dist/ui/combobox.js +2 -1
  182. package/dist/ui/context-menu.d.ts +2 -1
  183. package/dist/ui/context-menu.js +2 -1
  184. package/dist/ui/data-table-toolbar.d.ts +1 -0
  185. package/dist/ui/data-table-toolbar.js +1 -0
  186. package/dist/ui/data-table.d.ts +1 -0
  187. package/dist/ui/data-table.d.ts.map +1 -1
  188. package/dist/ui/data-table.js +79 -78
  189. package/dist/ui/dialog.d.ts +2 -1
  190. package/dist/ui/dialog.js +1 -0
  191. package/dist/ui/dropdown-menu.d.ts +2 -1
  192. package/dist/ui/dropdown-menu.js +23 -22
  193. package/dist/ui/file-upload.d.ts +1 -0
  194. package/dist/ui/file-upload.js +60 -59
  195. package/dist/ui/form.d.ts +1 -0
  196. package/dist/ui/form.js +1 -0
  197. package/dist/ui/hover-card.d.ts +2 -1
  198. package/dist/ui/hover-card.js +1 -0
  199. package/dist/ui/icon-button.d.ts +1 -0
  200. package/dist/ui/icon-button.d.ts.map +1 -1
  201. package/dist/ui/icon-button.js +1 -0
  202. package/dist/ui/index.d.ts +18 -0
  203. package/dist/ui/index.d.ts.map +1 -1
  204. package/dist/ui/index.js +1 -0
  205. package/dist/ui/input-otp.d.ts +1 -0
  206. package/dist/ui/input-otp.js +2 -1
  207. package/dist/ui/input.d.ts +2 -1
  208. package/dist/ui/input.d.ts.map +1 -1
  209. package/dist/ui/input.js +1 -0
  210. package/dist/ui/label.d.ts +2 -1
  211. package/dist/ui/label.js +1 -0
  212. package/dist/ui/lib/slot.d.ts +1 -0
  213. package/dist/ui/lib/use-reduced-motion.d.ts +1 -0
  214. package/dist/ui/lib/use-reduced-motion.js +1 -0
  215. package/dist/ui/lib/use-ripple.d.ts +1 -0
  216. package/dist/ui/lib/use-ripple.js +1 -0
  217. package/dist/ui/link.d.ts +1 -0
  218. package/dist/ui/link.js +1 -0
  219. package/dist/ui/menubar.d.ts +2 -1
  220. package/dist/ui/menubar.js +23 -22
  221. package/dist/ui/navigation-menu.d.ts +2 -1
  222. package/dist/ui/navigation-menu.js +7 -6
  223. package/dist/ui/number-input.d.ts +1 -0
  224. package/dist/ui/number-input.js +2 -1
  225. package/dist/ui/pagination.d.ts +1 -0
  226. package/dist/ui/pagination.js +1 -0
  227. package/dist/ui/popover.d.ts +2 -1
  228. package/dist/ui/popover.js +1 -0
  229. package/dist/ui/progress.d.ts +2 -1
  230. package/dist/ui/progress.js +1 -0
  231. package/dist/ui/radio.d.ts +2 -1
  232. package/dist/ui/radio.js +1 -0
  233. package/dist/ui/search-input.d.ts +6 -5
  234. package/dist/ui/search-input.d.ts.map +1 -1
  235. package/dist/ui/search-input.js +11 -10
  236. package/dist/ui/segmented-control.d.ts +1 -0
  237. package/dist/ui/segmented-control.d.ts.map +1 -1
  238. package/dist/ui/segmented-control.js +4 -4
  239. package/dist/ui/select.d.ts +2 -1
  240. package/dist/ui/select.js +3 -2
  241. package/dist/ui/separator.d.ts +2 -1
  242. package/dist/ui/separator.js +1 -0
  243. package/dist/ui/sheet.d.ts +2 -1
  244. package/dist/ui/sheet.js +1 -0
  245. package/dist/ui/sidebar.d.ts +1 -0
  246. package/dist/ui/sidebar.js +53 -52
  247. package/dist/ui/slider.d.ts +2 -1
  248. package/dist/ui/slider.js +1 -0
  249. package/dist/ui/stack.d.ts +2 -2
  250. package/dist/ui/stack.d.ts.map +1 -1
  251. package/dist/ui/stack.js +51 -21
  252. package/dist/ui/stat-card.d.ts +4 -1
  253. package/dist/ui/stat-card.d.ts.map +1 -1
  254. package/dist/ui/stat-card.js +22 -21
  255. package/dist/ui/stepper.d.ts +1 -0
  256. package/dist/ui/stepper.js +26 -25
  257. package/dist/ui/switch.d.ts +2 -1
  258. package/dist/ui/switch.js +1 -0
  259. package/dist/ui/table.js +12 -12
  260. package/dist/ui/tabs.d.ts +2 -1
  261. package/dist/ui/tabs.js +1 -0
  262. package/dist/ui/text.d.ts +1 -1
  263. package/dist/ui/text.d.ts.map +1 -1
  264. package/dist/ui/textarea.d.ts +1 -0
  265. package/dist/ui/textarea.d.ts.map +1 -1
  266. package/dist/ui/textarea.js +2 -0
  267. package/dist/ui/toast.d.ts +2 -1
  268. package/dist/ui/toast.js +2 -1
  269. package/dist/ui/toaster.d.ts +1 -0
  270. package/dist/ui/toaster.js +1 -0
  271. package/dist/ui/toggle-group.d.ts +2 -1
  272. package/dist/ui/toggle-group.js +1 -0
  273. package/dist/ui/toggle.d.ts +2 -1
  274. package/dist/ui/toggle.js +1 -0
  275. package/dist/ui/tooltip.d.ts +2 -1
  276. package/dist/ui/tooltip.js +1 -0
  277. package/dist/ui/transitions.d.ts +1 -0
  278. package/dist/ui/transitions.js +1 -0
  279. package/dist/ui/tree-view/index.d.ts +1 -0
  280. package/dist/ui/tree-view/tree-item.d.ts +1 -0
  281. package/dist/ui/tree-view/tree-item.js +2 -1
  282. package/dist/ui/tree-view/tree-view.d.ts +1 -0
  283. package/dist/ui/tree-view/tree-view.js +1 -0
  284. package/dist/ui/tree-view/use-tree.d.ts +1 -0
  285. package/dist/ui/tree-view/use-tree.js +1 -0
  286. package/package.json +97 -24
@@ -0,0 +1,115 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as _radix_ui_react_context from './_internal/react-context';
3
+ import { Scope } from './_internal/react-context';
4
+ import * as React from 'react';
5
+ import * as MenuPrimitive from './react-menu';
6
+ import * as RovingFocusGroup from './react-roving-focus';
7
+ import { Primitive } from './_internal/react-primitive';
8
+
9
+ type ScopedProps<P> = P & {
10
+ __scopeMenubar?: Scope;
11
+ };
12
+ declare const createMenubarScope: _radix_ui_react_context.CreateScope;
13
+ type RovingFocusGroupProps = React.ComponentPropsWithoutRef<typeof RovingFocusGroup.Root>;
14
+ type PrimitiveDivProps = React.ComponentPropsWithoutRef<typeof Primitive.div>;
15
+ interface MenubarProps extends PrimitiveDivProps {
16
+ value?: string;
17
+ defaultValue?: string;
18
+ onValueChange?: (value: string) => void;
19
+ loop?: RovingFocusGroupProps['loop'];
20
+ dir?: RovingFocusGroupProps['dir'];
21
+ }
22
+ declare const Menubar: React.ForwardRefExoticComponent<MenubarProps & React.RefAttributes<HTMLDivElement>>;
23
+ interface MenubarMenuProps {
24
+ value?: string;
25
+ children?: React.ReactNode;
26
+ }
27
+ declare const MenubarMenu: {
28
+ (props: ScopedProps<MenubarMenuProps>): react_jsx_runtime.JSX.Element;
29
+ displayName: string;
30
+ };
31
+ type PrimitiveButtonProps = React.ComponentPropsWithoutRef<typeof Primitive.button>;
32
+ interface MenubarTriggerProps extends PrimitiveButtonProps {
33
+ }
34
+ declare const MenubarTrigger: React.ForwardRefExoticComponent<MenubarTriggerProps & React.RefAttributes<HTMLButtonElement>>;
35
+ type MenuPortalProps = React.ComponentPropsWithoutRef<typeof MenuPrimitive.Portal>;
36
+ interface MenubarPortalProps extends MenuPortalProps {
37
+ }
38
+ declare const MenubarPortal: React.FC<MenubarPortalProps>;
39
+ type MenuContentProps = React.ComponentPropsWithoutRef<typeof MenuPrimitive.Content>;
40
+ interface MenubarContentProps extends Omit<MenuContentProps, 'onEntryFocus'> {
41
+ }
42
+ declare const MenubarContent: React.ForwardRefExoticComponent<MenubarContentProps & React.RefAttributes<HTMLDivElement>>;
43
+ type MenuGroupProps = React.ComponentPropsWithoutRef<typeof MenuPrimitive.Group>;
44
+ interface MenubarGroupProps extends MenuGroupProps {
45
+ }
46
+ declare const MenubarGroup: React.ForwardRefExoticComponent<MenubarGroupProps & React.RefAttributes<HTMLDivElement>>;
47
+ type MenuLabelProps = React.ComponentPropsWithoutRef<typeof MenuPrimitive.Label>;
48
+ interface MenubarLabelProps extends MenuLabelProps {
49
+ }
50
+ declare const MenubarLabel: React.ForwardRefExoticComponent<MenubarLabelProps & React.RefAttributes<HTMLDivElement>>;
51
+ type MenuItemProps = React.ComponentPropsWithoutRef<typeof MenuPrimitive.Item>;
52
+ interface MenubarItemProps extends MenuItemProps {
53
+ }
54
+ declare const MenubarItem: React.ForwardRefExoticComponent<MenubarItemProps & React.RefAttributes<HTMLDivElement>>;
55
+ type MenuCheckboxItemProps = React.ComponentPropsWithoutRef<typeof MenuPrimitive.CheckboxItem>;
56
+ interface MenubarCheckboxItemProps extends MenuCheckboxItemProps {
57
+ }
58
+ declare const MenubarCheckboxItem: React.ForwardRefExoticComponent<MenubarCheckboxItemProps & React.RefAttributes<HTMLDivElement>>;
59
+ type MenuRadioGroupProps = React.ComponentPropsWithoutRef<typeof MenuPrimitive.RadioGroup>;
60
+ interface MenubarRadioGroupProps extends MenuRadioGroupProps {
61
+ }
62
+ declare const MenubarRadioGroup: React.ForwardRefExoticComponent<MenubarRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
63
+ type MenuRadioItemProps = React.ComponentPropsWithoutRef<typeof MenuPrimitive.RadioItem>;
64
+ interface MenubarRadioItemProps extends MenuRadioItemProps {
65
+ }
66
+ declare const MenubarRadioItem: React.ForwardRefExoticComponent<MenubarRadioItemProps & React.RefAttributes<HTMLDivElement>>;
67
+ type MenuItemIndicatorProps = React.ComponentPropsWithoutRef<typeof MenuPrimitive.ItemIndicator>;
68
+ interface MenubarItemIndicatorProps extends MenuItemIndicatorProps {
69
+ }
70
+ declare const MenubarItemIndicator: React.ForwardRefExoticComponent<MenubarItemIndicatorProps & React.RefAttributes<HTMLSpanElement>>;
71
+ type MenuSeparatorProps = React.ComponentPropsWithoutRef<typeof MenuPrimitive.Separator>;
72
+ interface MenubarSeparatorProps extends MenuSeparatorProps {
73
+ }
74
+ declare const MenubarSeparator: React.ForwardRefExoticComponent<MenubarSeparatorProps & React.RefAttributes<HTMLDivElement>>;
75
+ type MenuArrowProps = React.ComponentPropsWithoutRef<typeof MenuPrimitive.Arrow>;
76
+ interface MenubarArrowProps extends MenuArrowProps {
77
+ }
78
+ declare const MenubarArrow: React.ForwardRefExoticComponent<MenubarArrowProps & React.RefAttributes<SVGSVGElement>>;
79
+ interface MenubarSubProps {
80
+ children?: React.ReactNode;
81
+ open?: boolean;
82
+ defaultOpen?: boolean;
83
+ onOpenChange?(open: boolean): void;
84
+ }
85
+ declare const MenubarSub: React.FC<MenubarSubProps>;
86
+ type MenuSubTriggerProps = React.ComponentPropsWithoutRef<typeof MenuPrimitive.SubTrigger>;
87
+ interface MenubarSubTriggerProps extends MenuSubTriggerProps {
88
+ }
89
+ declare const MenubarSubTrigger: React.ForwardRefExoticComponent<MenubarSubTriggerProps & React.RefAttributes<HTMLDivElement>>;
90
+ type MenuSubContentProps = React.ComponentPropsWithoutRef<typeof MenuPrimitive.SubContent>;
91
+ interface MenubarSubContentProps extends MenuSubContentProps {
92
+ }
93
+ declare const MenubarSubContent: React.ForwardRefExoticComponent<MenubarSubContentProps & React.RefAttributes<HTMLDivElement>>;
94
+ declare const Root: React.ForwardRefExoticComponent<MenubarProps & React.RefAttributes<HTMLDivElement>>;
95
+ declare const Menu: {
96
+ (props: ScopedProps<MenubarMenuProps>): react_jsx_runtime.JSX.Element;
97
+ displayName: string;
98
+ };
99
+ declare const Trigger: React.ForwardRefExoticComponent<MenubarTriggerProps & React.RefAttributes<HTMLButtonElement>>;
100
+ declare const Portal: React.FC<MenubarPortalProps>;
101
+ declare const Content: React.ForwardRefExoticComponent<MenubarContentProps & React.RefAttributes<HTMLDivElement>>;
102
+ declare const Group: React.ForwardRefExoticComponent<MenubarGroupProps & React.RefAttributes<HTMLDivElement>>;
103
+ declare const Label: React.ForwardRefExoticComponent<MenubarLabelProps & React.RefAttributes<HTMLDivElement>>;
104
+ declare const Item: React.ForwardRefExoticComponent<MenubarItemProps & React.RefAttributes<HTMLDivElement>>;
105
+ declare const CheckboxItem: React.ForwardRefExoticComponent<MenubarCheckboxItemProps & React.RefAttributes<HTMLDivElement>>;
106
+ declare const RadioGroup: React.ForwardRefExoticComponent<MenubarRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
107
+ declare const RadioItem: React.ForwardRefExoticComponent<MenubarRadioItemProps & React.RefAttributes<HTMLDivElement>>;
108
+ declare const ItemIndicator: React.ForwardRefExoticComponent<MenubarItemIndicatorProps & React.RefAttributes<HTMLSpanElement>>;
109
+ declare const Separator: React.ForwardRefExoticComponent<MenubarSeparatorProps & React.RefAttributes<HTMLDivElement>>;
110
+ declare const Arrow: React.ForwardRefExoticComponent<MenubarArrowProps & React.RefAttributes<SVGSVGElement>>;
111
+ declare const Sub: React.FC<MenubarSubProps>;
112
+ declare const SubTrigger: React.ForwardRefExoticComponent<MenubarSubTriggerProps & React.RefAttributes<HTMLDivElement>>;
113
+ declare const SubContent: React.ForwardRefExoticComponent<MenubarSubContentProps & React.RefAttributes<HTMLDivElement>>;
114
+
115
+ export { Arrow, CheckboxItem, Content, Group, Item, ItemIndicator, Label, Menu, Menubar, MenubarArrow, type MenubarArrowProps, MenubarCheckboxItem, type MenubarCheckboxItemProps, MenubarContent, type MenubarContentProps, MenubarGroup, type MenubarGroupProps, MenubarItem, MenubarItemIndicator, type MenubarItemIndicatorProps, type MenubarItemProps, MenubarLabel, type MenubarLabelProps, MenubarMenu, type MenubarMenuProps, MenubarPortal, type MenubarPortalProps, type MenubarProps, MenubarRadioGroup, type MenubarRadioGroupProps, MenubarRadioItem, type MenubarRadioItemProps, MenubarSeparator, type MenubarSeparatorProps, MenubarSub, MenubarSubContent, type MenubarSubContentProps, type MenubarSubProps, MenubarSubTrigger, type MenubarSubTriggerProps, MenubarTrigger, type MenubarTriggerProps, Portal, RadioGroup, RadioItem, Root, Separator, Sub, SubContent, SubTrigger, Trigger, createMenubarScope };
@@ -0,0 +1,126 @@
1
+ import * as _radix_ui_react_context from './_internal/react-context';
2
+ import { Scope } from './_internal/react-context';
3
+ import * as React from 'react';
4
+ import { Primitive } from './_internal/react-primitive';
5
+ import { DismissableLayer } from './_internal/react-dismissable-layer';
6
+ import * as VisuallyHiddenPrimitive from './react-visually-hidden';
7
+
8
+ type Orientation = 'vertical' | 'horizontal';
9
+ type Direction = 'ltr' | 'rtl';
10
+ declare const createNavigationMenuScope: _radix_ui_react_context.CreateScope;
11
+ type NavigationMenuElement = React.ComponentRef<typeof Primitive.nav>;
12
+ type PrimitiveNavProps = React.ComponentPropsWithoutRef<typeof Primitive.nav>;
13
+ interface NavigationMenuProps extends Omit<NavigationMenuProviderProps, keyof NavigationMenuProviderPrivateProps>, PrimitiveNavProps {
14
+ value?: string;
15
+ defaultValue?: string;
16
+ onValueChange?: (value: string) => void;
17
+ dir?: Direction;
18
+ orientation?: Orientation;
19
+ /**
20
+ * The duration from when the pointer enters the trigger until the tooltip gets opened.
21
+ * @defaultValue 200
22
+ */
23
+ delayDuration?: number;
24
+ /**
25
+ * How much time a user has to enter another trigger without incurring a delay again.
26
+ * @defaultValue 300
27
+ */
28
+ skipDelayDuration?: number;
29
+ }
30
+ declare const NavigationMenu: React.ForwardRefExoticComponent<NavigationMenuProps & React.RefAttributes<HTMLElement>>;
31
+ type PrimitiveDivProps = React.ComponentPropsWithoutRef<typeof Primitive.div>;
32
+ interface NavigationMenuSubProps extends Omit<NavigationMenuProviderProps, keyof NavigationMenuProviderPrivateProps>, PrimitiveDivProps {
33
+ value?: string;
34
+ defaultValue?: string;
35
+ onValueChange?: (value: string) => void;
36
+ orientation?: Orientation;
37
+ }
38
+ declare const NavigationMenuSub: React.ForwardRefExoticComponent<NavigationMenuSubProps & React.RefAttributes<HTMLDivElement>>;
39
+ interface NavigationMenuProviderPrivateProps {
40
+ isRootMenu: boolean;
41
+ scope: Scope;
42
+ children: React.ReactNode;
43
+ orientation: Orientation;
44
+ dir: Direction;
45
+ rootNavigationMenu: NavigationMenuElement | null;
46
+ value: string;
47
+ onTriggerEnter(itemValue: string): void;
48
+ onTriggerLeave?(): void;
49
+ onContentEnter?(): void;
50
+ onContentLeave?(): void;
51
+ onItemSelect(itemValue: string): void;
52
+ onItemDismiss(): void;
53
+ }
54
+ interface NavigationMenuProviderProps extends NavigationMenuProviderPrivateProps {
55
+ }
56
+ type PrimitiveUnorderedListProps = React.ComponentPropsWithoutRef<typeof Primitive.ul>;
57
+ interface NavigationMenuListProps extends PrimitiveUnorderedListProps {
58
+ }
59
+ declare const NavigationMenuList: React.ForwardRefExoticComponent<NavigationMenuListProps & React.RefAttributes<HTMLUListElement>>;
60
+ type FocusProxyElement = React.ComponentRef<typeof VisuallyHiddenPrimitive.Root>;
61
+ type PrimitiveListItemProps = React.ComponentPropsWithoutRef<typeof Primitive.li>;
62
+ interface NavigationMenuItemProps extends PrimitiveListItemProps {
63
+ value?: string;
64
+ }
65
+ declare const NavigationMenuItem: React.ForwardRefExoticComponent<NavigationMenuItemProps & React.RefAttributes<HTMLLIElement>>;
66
+ type NavigationMenuTriggerElement = React.ComponentRef<typeof Primitive.button>;
67
+ type PrimitiveButtonProps = React.ComponentPropsWithoutRef<typeof Primitive.button>;
68
+ interface NavigationMenuTriggerProps extends PrimitiveButtonProps {
69
+ }
70
+ declare const NavigationMenuTrigger: React.ForwardRefExoticComponent<NavigationMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
71
+ type PrimitiveLinkProps = React.ComponentPropsWithoutRef<typeof Primitive.a>;
72
+ interface NavigationMenuLinkProps extends Omit<PrimitiveLinkProps, 'onSelect'> {
73
+ active?: boolean;
74
+ onSelect?: (event: Event) => void;
75
+ }
76
+ declare const NavigationMenuLink: React.ForwardRefExoticComponent<NavigationMenuLinkProps & React.RefAttributes<HTMLAnchorElement>>;
77
+ interface NavigationMenuIndicatorProps extends NavigationMenuIndicatorImplProps {
78
+ /**
79
+ * Used to force mounting when more control is needed. Useful when
80
+ * controlling animation with React animation libraries.
81
+ */
82
+ forceMount?: true;
83
+ }
84
+ declare const NavigationMenuIndicator: React.ForwardRefExoticComponent<NavigationMenuIndicatorProps & React.RefAttributes<HTMLDivElement>>;
85
+ interface NavigationMenuIndicatorImplProps extends PrimitiveDivProps {
86
+ }
87
+ interface NavigationMenuContentProps extends Omit<NavigationMenuContentImplProps, keyof NavigationMenuContentImplPrivateProps> {
88
+ /**
89
+ * Used to force mounting when more control is needed. Useful when
90
+ * controlling animation with React animation libraries.
91
+ */
92
+ forceMount?: true;
93
+ }
94
+ declare const NavigationMenuContent: React.ForwardRefExoticComponent<NavigationMenuContentProps & React.RefAttributes<HTMLDivElement>>;
95
+ type DismissableLayerProps = React.ComponentPropsWithoutRef<typeof DismissableLayer>;
96
+ interface NavigationMenuContentImplPrivateProps {
97
+ value: string;
98
+ triggerRef: React.RefObject<NavigationMenuTriggerElement | null>;
99
+ focusProxyRef: React.RefObject<FocusProxyElement | null>;
100
+ wasEscapeCloseRef: React.MutableRefObject<boolean>;
101
+ onContentFocusOutside(): void;
102
+ onRootContentClose(): void;
103
+ }
104
+ interface NavigationMenuContentImplProps extends Omit<DismissableLayerProps, 'onDismiss' | 'disableOutsidePointerEvents'>, NavigationMenuContentImplPrivateProps {
105
+ }
106
+ interface NavigationMenuViewportProps extends Omit<NavigationMenuViewportImplProps, 'activeContentValue'> {
107
+ /**
108
+ * Used to force mounting when more control is needed. Useful when
109
+ * controlling animation with React animation libraries.
110
+ */
111
+ forceMount?: true;
112
+ }
113
+ declare const NavigationMenuViewport: React.ForwardRefExoticComponent<NavigationMenuViewportProps & React.RefAttributes<HTMLDivElement>>;
114
+ interface NavigationMenuViewportImplProps extends PrimitiveDivProps {
115
+ }
116
+ declare const Root: React.ForwardRefExoticComponent<NavigationMenuProps & React.RefAttributes<HTMLElement>>;
117
+ declare const Sub: React.ForwardRefExoticComponent<NavigationMenuSubProps & React.RefAttributes<HTMLDivElement>>;
118
+ declare const List: React.ForwardRefExoticComponent<NavigationMenuListProps & React.RefAttributes<HTMLUListElement>>;
119
+ declare const Item: React.ForwardRefExoticComponent<NavigationMenuItemProps & React.RefAttributes<HTMLLIElement>>;
120
+ declare const Trigger: React.ForwardRefExoticComponent<NavigationMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
121
+ declare const Link: React.ForwardRefExoticComponent<NavigationMenuLinkProps & React.RefAttributes<HTMLAnchorElement>>;
122
+ declare const Indicator: React.ForwardRefExoticComponent<NavigationMenuIndicatorProps & React.RefAttributes<HTMLDivElement>>;
123
+ declare const Content: React.ForwardRefExoticComponent<NavigationMenuContentProps & React.RefAttributes<HTMLDivElement>>;
124
+ declare const Viewport: React.ForwardRefExoticComponent<NavigationMenuViewportProps & React.RefAttributes<HTMLDivElement>>;
125
+
126
+ export { Content, Indicator, Item, Link, List, NavigationMenu, NavigationMenuContent, type NavigationMenuContentProps, NavigationMenuIndicator, type NavigationMenuIndicatorProps, NavigationMenuItem, type NavigationMenuItemProps, NavigationMenuLink, type NavigationMenuLinkProps, NavigationMenuList, type NavigationMenuListProps, type NavigationMenuProps, NavigationMenuSub, type NavigationMenuSubProps, NavigationMenuTrigger, type NavigationMenuTriggerProps, NavigationMenuViewport, type NavigationMenuViewportProps, Root, Sub, Trigger, Viewport, createNavigationMenuScope };
@@ -0,0 +1,85 @@
1
+ import * as _radix_ui_react_context from './_internal/react-context';
2
+ import * as React from 'react';
3
+ import { DismissableLayer } from './_internal/react-dismissable-layer';
4
+ import { FocusScope } from './_internal/react-focus-scope';
5
+ import * as PopperPrimitive from './_internal/react-popper';
6
+ import { Portal as Portal$1 } from './_internal/react-portal';
7
+ import { Primitive } from './_internal/react-primitive';
8
+
9
+ declare const createPopoverScope: _radix_ui_react_context.CreateScope;
10
+ interface PopoverProps {
11
+ children?: React.ReactNode;
12
+ open?: boolean;
13
+ defaultOpen?: boolean;
14
+ onOpenChange?: (open: boolean) => void;
15
+ modal?: boolean;
16
+ }
17
+ declare const Popover: React.FC<PopoverProps>;
18
+ type PopperAnchorProps = React.ComponentPropsWithoutRef<typeof PopperPrimitive.Anchor>;
19
+ interface PopoverAnchorProps extends PopperAnchorProps {
20
+ }
21
+ declare const PopoverAnchor: React.ForwardRefExoticComponent<PopoverAnchorProps & React.RefAttributes<HTMLDivElement>>;
22
+ type PrimitiveButtonProps = React.ComponentPropsWithoutRef<typeof Primitive.button>;
23
+ interface PopoverTriggerProps extends PrimitiveButtonProps {
24
+ }
25
+ declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
26
+ type PortalProps = React.ComponentPropsWithoutRef<typeof Portal$1>;
27
+ interface PopoverPortalProps {
28
+ children?: React.ReactNode;
29
+ /**
30
+ * Specify a container element to portal the content into.
31
+ */
32
+ container?: PortalProps['container'];
33
+ /**
34
+ * Used to force mounting when more control is needed. Useful when
35
+ * controlling animation with React animation libraries.
36
+ */
37
+ forceMount?: true;
38
+ }
39
+ declare const PopoverPortal: React.FC<PopoverPortalProps>;
40
+ interface PopoverContentProps extends PopoverContentTypeProps {
41
+ /**
42
+ * Used to force mounting when more control is needed. Useful when
43
+ * controlling animation with React animation libraries.
44
+ */
45
+ forceMount?: true;
46
+ }
47
+ declare const PopoverContent: React.ForwardRefExoticComponent<PopoverContentProps & React.RefAttributes<HTMLDivElement>>;
48
+ interface PopoverContentTypeProps extends Omit<PopoverContentImplProps, 'trapFocus' | 'disableOutsidePointerEvents'> {
49
+ }
50
+ type FocusScopeProps = React.ComponentPropsWithoutRef<typeof FocusScope>;
51
+ type DismissableLayerProps = React.ComponentPropsWithoutRef<typeof DismissableLayer>;
52
+ type PopperContentProps = React.ComponentPropsWithoutRef<typeof PopperPrimitive.Content>;
53
+ interface PopoverContentImplProps extends Omit<PopperContentProps, 'onPlaced'>, Omit<DismissableLayerProps, 'onDismiss'> {
54
+ /**
55
+ * Whether focus should be trapped within the `Popover`
56
+ * (default: false)
57
+ */
58
+ trapFocus?: FocusScopeProps['trapped'];
59
+ /**
60
+ * Event handler called when auto-focusing on open.
61
+ * Can be prevented.
62
+ */
63
+ onOpenAutoFocus?: FocusScopeProps['onMountAutoFocus'];
64
+ /**
65
+ * Event handler called when auto-focusing on close.
66
+ * Can be prevented.
67
+ */
68
+ onCloseAutoFocus?: FocusScopeProps['onUnmountAutoFocus'];
69
+ }
70
+ interface PopoverCloseProps extends PrimitiveButtonProps {
71
+ }
72
+ declare const PopoverClose: React.ForwardRefExoticComponent<PopoverCloseProps & React.RefAttributes<HTMLButtonElement>>;
73
+ type PopperArrowProps = React.ComponentPropsWithoutRef<typeof PopperPrimitive.Arrow>;
74
+ interface PopoverArrowProps extends PopperArrowProps {
75
+ }
76
+ declare const PopoverArrow: React.ForwardRefExoticComponent<PopoverArrowProps & React.RefAttributes<SVGSVGElement>>;
77
+ declare const Root: React.FC<PopoverProps>;
78
+ declare const Anchor: React.ForwardRefExoticComponent<PopoverAnchorProps & React.RefAttributes<HTMLDivElement>>;
79
+ declare const Trigger: React.ForwardRefExoticComponent<PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
80
+ declare const Portal: React.FC<PopoverPortalProps>;
81
+ declare const Content: React.ForwardRefExoticComponent<PopoverContentProps & React.RefAttributes<HTMLDivElement>>;
82
+ declare const Close: React.ForwardRefExoticComponent<PopoverCloseProps & React.RefAttributes<HTMLButtonElement>>;
83
+ declare const Arrow: React.ForwardRefExoticComponent<PopoverArrowProps & React.RefAttributes<SVGSVGElement>>;
84
+
85
+ export { Anchor, Arrow, Close, Content, Popover, PopoverAnchor, type PopoverAnchorProps, PopoverArrow, type PopoverArrowProps, PopoverClose, type PopoverCloseProps, PopoverContent, type PopoverContentProps, PopoverPortal, type PopoverPortalProps, type PopoverProps, PopoverTrigger, type PopoverTriggerProps, Portal, Root, Trigger, createPopoverScope };
@@ -0,0 +1,19 @@
1
+ import * as _radix_ui_react_context from './_internal/react-context';
2
+ import * as React from 'react';
3
+ import { Primitive } from './_internal/react-primitive';
4
+
5
+ declare const createProgressScope: _radix_ui_react_context.CreateScope;
6
+ type PrimitiveDivProps = React.ComponentPropsWithoutRef<typeof Primitive.div>;
7
+ interface ProgressProps extends PrimitiveDivProps {
8
+ value?: number | null | undefined;
9
+ max?: number;
10
+ getValueLabel?(value: number, max: number): string;
11
+ }
12
+ declare const Progress: React.ForwardRefExoticComponent<ProgressProps & React.RefAttributes<HTMLDivElement>>;
13
+ interface ProgressIndicatorProps extends PrimitiveDivProps {
14
+ }
15
+ declare const ProgressIndicator: React.ForwardRefExoticComponent<ProgressIndicatorProps & React.RefAttributes<HTMLDivElement>>;
16
+ declare const Root: React.ForwardRefExoticComponent<ProgressProps & React.RefAttributes<HTMLDivElement>>;
17
+ declare const Indicator: React.ForwardRefExoticComponent<ProgressIndicatorProps & React.RefAttributes<HTMLDivElement>>;
18
+
19
+ export { Indicator, Progress, ProgressIndicator, type ProgressIndicatorProps, type ProgressProps, Root, createProgressScope };
@@ -0,0 +1,58 @@
1
+ import * as _radix_ui_react_context from './_internal/react-context';
2
+ import * as React from 'react';
3
+ import { Primitive } from './_internal/react-primitive';
4
+ import * as RovingFocusGroup from './react-roving-focus';
5
+
6
+ type PrimitiveButtonProps = React.ComponentPropsWithoutRef<typeof Primitive.button>;
7
+ interface RadioProps$1 extends PrimitiveButtonProps {
8
+ checked?: boolean;
9
+ required?: boolean;
10
+ onCheck?(): void;
11
+ }
12
+ declare const Radio: React.ForwardRefExoticComponent<RadioProps$1 & React.RefAttributes<HTMLButtonElement>>;
13
+ type PrimitiveSpanProps = React.ComponentPropsWithoutRef<typeof Primitive.span>;
14
+ interface RadioIndicatorProps$1 extends PrimitiveSpanProps {
15
+ /**
16
+ * Used to force mounting when more control is needed. Useful when
17
+ * controlling animation with React animation libraries.
18
+ */
19
+ forceMount?: true;
20
+ }
21
+ declare const RadioIndicator: React.ForwardRefExoticComponent<RadioIndicatorProps$1 & React.RefAttributes<HTMLSpanElement>>;
22
+
23
+ declare const createRadioGroupScope: _radix_ui_react_context.CreateScope;
24
+ type RadioGroupContextValue = {
25
+ name?: string;
26
+ required: boolean;
27
+ disabled: boolean;
28
+ value: string | null;
29
+ onValueChange(value: string): void;
30
+ };
31
+ type RovingFocusGroupProps = React.ComponentPropsWithoutRef<typeof RovingFocusGroup.Root>;
32
+ type PrimitiveDivProps = React.ComponentPropsWithoutRef<typeof Primitive.div>;
33
+ interface RadioGroupProps extends PrimitiveDivProps {
34
+ name?: RadioGroupContextValue['name'];
35
+ required?: React.ComponentPropsWithoutRef<typeof Radio>['required'];
36
+ disabled?: React.ComponentPropsWithoutRef<typeof Radio>['disabled'];
37
+ dir?: RovingFocusGroupProps['dir'];
38
+ orientation?: RovingFocusGroupProps['orientation'];
39
+ loop?: RovingFocusGroupProps['loop'];
40
+ defaultValue?: string;
41
+ value?: string | null;
42
+ onValueChange?: RadioGroupContextValue['onValueChange'];
43
+ }
44
+ declare const RadioGroup: React.ForwardRefExoticComponent<RadioGroupProps & React.RefAttributes<HTMLDivElement>>;
45
+ type RadioProps = React.ComponentPropsWithoutRef<typeof Radio>;
46
+ interface RadioGroupItemProps extends Omit<RadioProps, 'onCheck' | 'name'> {
47
+ value: string;
48
+ }
49
+ declare const RadioGroupItem: React.ForwardRefExoticComponent<RadioGroupItemProps & React.RefAttributes<HTMLButtonElement>>;
50
+ type RadioIndicatorProps = React.ComponentPropsWithoutRef<typeof RadioIndicator>;
51
+ interface RadioGroupIndicatorProps extends RadioIndicatorProps {
52
+ }
53
+ declare const RadioGroupIndicator: React.ForwardRefExoticComponent<RadioGroupIndicatorProps & React.RefAttributes<HTMLSpanElement>>;
54
+ declare const Root: React.ForwardRefExoticComponent<RadioGroupProps & React.RefAttributes<HTMLDivElement>>;
55
+ declare const Item: React.ForwardRefExoticComponent<RadioGroupItemProps & React.RefAttributes<HTMLButtonElement>>;
56
+ declare const Indicator: React.ForwardRefExoticComponent<RadioGroupIndicatorProps & React.RefAttributes<HTMLSpanElement>>;
57
+
58
+ export { Indicator, Item, RadioGroup, RadioGroupIndicator, type RadioGroupIndicatorProps, RadioGroupItem, type RadioGroupItemProps, type RadioGroupProps, Root, createRadioGroupScope };
@@ -0,0 +1,49 @@
1
+ import * as _radix_ui_react_context from './_internal/react-context';
2
+ import * as React from 'react';
3
+ import { Primitive } from './_internal/react-primitive';
4
+
5
+ declare const createRovingFocusGroupScope: _radix_ui_react_context.CreateScope;
6
+ type Orientation = React.AriaAttributes['aria-orientation'];
7
+ type Direction = 'ltr' | 'rtl';
8
+ interface RovingFocusGroupOptions {
9
+ /**
10
+ * The orientation of the group.
11
+ * Mainly so arrow navigation is done accordingly (left & right vs. up & down)
12
+ */
13
+ orientation?: Orientation;
14
+ /**
15
+ * The direction of navigation between items.
16
+ */
17
+ dir?: Direction;
18
+ /**
19
+ * Whether keyboard navigation should loop around
20
+ * @defaultValue false
21
+ */
22
+ loop?: boolean;
23
+ }
24
+ interface RovingFocusGroupProps extends RovingFocusGroupImplProps {
25
+ }
26
+ declare const RovingFocusGroup: React.ForwardRefExoticComponent<RovingFocusGroupProps & React.RefAttributes<HTMLDivElement>>;
27
+ type PrimitiveDivProps = React.ComponentPropsWithoutRef<typeof Primitive.div>;
28
+ interface RovingFocusGroupImplProps extends Omit<PrimitiveDivProps, 'dir'>, RovingFocusGroupOptions {
29
+ currentTabStopId?: string | null;
30
+ defaultCurrentTabStopId?: string;
31
+ onCurrentTabStopIdChange?: (tabStopId: string | null) => void;
32
+ onEntryFocus?: (event: Event) => void;
33
+ preventScrollOnEntryFocus?: boolean;
34
+ }
35
+ type PrimitiveSpanProps = React.ComponentPropsWithoutRef<typeof Primitive.span>;
36
+ interface RovingFocusItemProps extends Omit<PrimitiveSpanProps, 'children'> {
37
+ tabStopId?: string;
38
+ focusable?: boolean;
39
+ active?: boolean;
40
+ children?: React.ReactNode | ((props: {
41
+ hasTabStop: boolean;
42
+ isCurrentTabStop: boolean;
43
+ }) => React.ReactNode);
44
+ }
45
+ declare const RovingFocusGroupItem: React.ForwardRefExoticComponent<RovingFocusItemProps & React.RefAttributes<HTMLSpanElement>>;
46
+ declare const Root: React.ForwardRefExoticComponent<RovingFocusGroupProps & React.RefAttributes<HTMLDivElement>>;
47
+ declare const Item: React.ForwardRefExoticComponent<RovingFocusItemProps & React.RefAttributes<HTMLSpanElement>>;
48
+
49
+ export { Item, Root, RovingFocusGroup, RovingFocusGroupItem, type RovingFocusGroupProps, type RovingFocusItemProps, createRovingFocusGroupScope };
@@ -0,0 +1,137 @@
1
+ import * as _radix_ui_react_context from './_internal/react-context';
2
+ import * as React from 'react';
3
+ import { DismissableLayer } from './_internal/react-dismissable-layer';
4
+ import { FocusScope } from './_internal/react-focus-scope';
5
+ import * as PopperPrimitive from './_internal/react-popper';
6
+ import { Portal as Portal$1 } from './_internal/react-portal';
7
+ import { Primitive } from './_internal/react-primitive';
8
+
9
+ type Direction = 'ltr' | 'rtl';
10
+ declare const createSelectScope: _radix_ui_react_context.CreateScope;
11
+ interface SelectSharedProps {
12
+ children?: React.ReactNode;
13
+ open?: boolean;
14
+ defaultOpen?: boolean;
15
+ onOpenChange?(open: boolean): void;
16
+ dir?: Direction;
17
+ name?: string;
18
+ autoComplete?: string;
19
+ disabled?: boolean;
20
+ required?: boolean;
21
+ form?: string;
22
+ }
23
+ type SelectProps = SelectSharedProps & {
24
+ value?: string;
25
+ defaultValue?: string;
26
+ onValueChange?(value: string): void;
27
+ };
28
+ declare const Select: React.FC<SelectProps>;
29
+ type PrimitiveButtonProps = React.ComponentPropsWithoutRef<typeof Primitive.button>;
30
+ interface SelectTriggerProps extends PrimitiveButtonProps {
31
+ }
32
+ declare const SelectTrigger: React.ForwardRefExoticComponent<SelectTriggerProps & React.RefAttributes<HTMLButtonElement>>;
33
+ type PrimitiveSpanProps = React.ComponentPropsWithoutRef<typeof Primitive.span>;
34
+ interface SelectValueProps extends Omit<PrimitiveSpanProps, 'placeholder'> {
35
+ placeholder?: React.ReactNode;
36
+ }
37
+ declare const SelectValue: React.ForwardRefExoticComponent<SelectValueProps & React.RefAttributes<HTMLSpanElement>>;
38
+ interface SelectIconProps extends PrimitiveSpanProps {
39
+ }
40
+ declare const SelectIcon: React.ForwardRefExoticComponent<SelectIconProps & React.RefAttributes<HTMLSpanElement>>;
41
+ type PortalProps = React.ComponentPropsWithoutRef<typeof Portal$1>;
42
+ interface SelectPortalProps {
43
+ children?: React.ReactNode;
44
+ /**
45
+ * Specify a container element to portal the content into.
46
+ */
47
+ container?: PortalProps['container'];
48
+ }
49
+ declare const SelectPortal: React.FC<SelectPortalProps>;
50
+ interface SelectContentProps extends SelectContentImplProps {
51
+ }
52
+ declare const SelectContent: React.ForwardRefExoticComponent<SelectContentProps & React.RefAttributes<HTMLDivElement>>;
53
+ type DismissableLayerProps = React.ComponentPropsWithoutRef<typeof DismissableLayer>;
54
+ type FocusScopeProps = React.ComponentPropsWithoutRef<typeof FocusScope>;
55
+ type SelectPopperPrivateProps = {
56
+ onPlaced?: PopperContentProps['onPlaced'];
57
+ };
58
+ interface SelectContentImplProps extends Omit<SelectPopperPositionProps, keyof SelectPopperPrivateProps>, Omit<SelectItemAlignedPositionProps, keyof SelectPopperPrivateProps> {
59
+ /**
60
+ * Event handler called when auto-focusing on close.
61
+ * Can be prevented.
62
+ */
63
+ onCloseAutoFocus?: FocusScopeProps['onUnmountAutoFocus'];
64
+ /**
65
+ * Event handler called when the escape key is down.
66
+ * Can be prevented.
67
+ */
68
+ onEscapeKeyDown?: DismissableLayerProps['onEscapeKeyDown'];
69
+ /**
70
+ * Event handler called when the a `pointerdown` event happens outside of the `DismissableLayer`.
71
+ * Can be prevented.
72
+ */
73
+ onPointerDownOutside?: DismissableLayerProps['onPointerDownOutside'];
74
+ position?: 'item-aligned' | 'popper';
75
+ }
76
+ interface SelectItemAlignedPositionProps extends PrimitiveDivProps, SelectPopperPrivateProps {
77
+ }
78
+ type PopperContentProps = React.ComponentPropsWithoutRef<typeof PopperPrimitive.Content>;
79
+ interface SelectPopperPositionProps extends PopperContentProps, SelectPopperPrivateProps {
80
+ }
81
+ type PrimitiveDivProps = React.ComponentPropsWithoutRef<typeof Primitive.div>;
82
+ interface SelectViewportProps extends PrimitiveDivProps {
83
+ nonce?: string;
84
+ }
85
+ declare const SelectViewport: React.ForwardRefExoticComponent<SelectViewportProps & React.RefAttributes<HTMLDivElement>>;
86
+ interface SelectGroupProps extends PrimitiveDivProps {
87
+ }
88
+ declare const SelectGroup: React.ForwardRefExoticComponent<SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
89
+ interface SelectLabelProps extends PrimitiveDivProps {
90
+ }
91
+ declare const SelectLabel: React.ForwardRefExoticComponent<SelectLabelProps & React.RefAttributes<HTMLDivElement>>;
92
+ interface SelectItemProps extends PrimitiveDivProps {
93
+ value: string;
94
+ disabled?: boolean;
95
+ textValue?: string;
96
+ }
97
+ declare const SelectItem: React.ForwardRefExoticComponent<SelectItemProps & React.RefAttributes<HTMLDivElement>>;
98
+ interface SelectItemTextProps extends PrimitiveSpanProps {
99
+ }
100
+ declare const SelectItemText: React.ForwardRefExoticComponent<SelectItemTextProps & React.RefAttributes<HTMLSpanElement>>;
101
+ interface SelectItemIndicatorProps extends PrimitiveSpanProps {
102
+ }
103
+ declare const SelectItemIndicator: React.ForwardRefExoticComponent<SelectItemIndicatorProps & React.RefAttributes<HTMLSpanElement>>;
104
+ interface SelectScrollUpButtonProps extends Omit<SelectScrollButtonImplProps, 'onAutoScroll'> {
105
+ }
106
+ declare const SelectScrollUpButton: React.ForwardRefExoticComponent<SelectScrollUpButtonProps & React.RefAttributes<HTMLDivElement>>;
107
+ interface SelectScrollDownButtonProps extends Omit<SelectScrollButtonImplProps, 'onAutoScroll'> {
108
+ }
109
+ declare const SelectScrollDownButton: React.ForwardRefExoticComponent<SelectScrollDownButtonProps & React.RefAttributes<HTMLDivElement>>;
110
+ interface SelectScrollButtonImplProps extends PrimitiveDivProps {
111
+ onAutoScroll(): void;
112
+ }
113
+ interface SelectSeparatorProps extends PrimitiveDivProps {
114
+ }
115
+ declare const SelectSeparator: React.ForwardRefExoticComponent<SelectSeparatorProps & React.RefAttributes<HTMLDivElement>>;
116
+ type PopperArrowProps = React.ComponentPropsWithoutRef<typeof PopperPrimitive.Arrow>;
117
+ interface SelectArrowProps extends PopperArrowProps {
118
+ }
119
+ declare const SelectArrow: React.ForwardRefExoticComponent<SelectArrowProps & React.RefAttributes<SVGSVGElement>>;
120
+ declare const Root: React.FC<SelectProps>;
121
+ declare const Trigger: React.ForwardRefExoticComponent<SelectTriggerProps & React.RefAttributes<HTMLButtonElement>>;
122
+ declare const Value: React.ForwardRefExoticComponent<SelectValueProps & React.RefAttributes<HTMLSpanElement>>;
123
+ declare const Icon: React.ForwardRefExoticComponent<SelectIconProps & React.RefAttributes<HTMLSpanElement>>;
124
+ declare const Portal: React.FC<SelectPortalProps>;
125
+ declare const Content: React.ForwardRefExoticComponent<SelectContentProps & React.RefAttributes<HTMLDivElement>>;
126
+ declare const Viewport: React.ForwardRefExoticComponent<SelectViewportProps & React.RefAttributes<HTMLDivElement>>;
127
+ declare const Group: React.ForwardRefExoticComponent<SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
128
+ declare const Label: React.ForwardRefExoticComponent<SelectLabelProps & React.RefAttributes<HTMLDivElement>>;
129
+ declare const Item: React.ForwardRefExoticComponent<SelectItemProps & React.RefAttributes<HTMLDivElement>>;
130
+ declare const ItemText: React.ForwardRefExoticComponent<SelectItemTextProps & React.RefAttributes<HTMLSpanElement>>;
131
+ declare const ItemIndicator: React.ForwardRefExoticComponent<SelectItemIndicatorProps & React.RefAttributes<HTMLSpanElement>>;
132
+ declare const ScrollUpButton: React.ForwardRefExoticComponent<SelectScrollUpButtonProps & React.RefAttributes<HTMLDivElement>>;
133
+ declare const ScrollDownButton: React.ForwardRefExoticComponent<SelectScrollDownButtonProps & React.RefAttributes<HTMLDivElement>>;
134
+ declare const Separator: React.ForwardRefExoticComponent<SelectSeparatorProps & React.RefAttributes<HTMLDivElement>>;
135
+ declare const Arrow: React.ForwardRefExoticComponent<SelectArrowProps & React.RefAttributes<SVGSVGElement>>;
136
+
137
+ export { Arrow, Content, Group, Icon, Item, ItemIndicator, ItemText, Label, Portal, Root, ScrollDownButton, ScrollUpButton, Select, SelectArrow, type SelectArrowProps, SelectContent, type SelectContentProps, SelectGroup, type SelectGroupProps, SelectIcon, type SelectIconProps, SelectItem, SelectItemIndicator, type SelectItemIndicatorProps, type SelectItemProps, SelectItemText, type SelectItemTextProps, SelectLabel, type SelectLabelProps, SelectPortal, type SelectPortalProps, type SelectProps, SelectScrollDownButton, type SelectScrollDownButtonProps, SelectScrollUpButton, type SelectScrollUpButtonProps, SelectSeparator, type SelectSeparatorProps, SelectTrigger, type SelectTriggerProps, SelectValue, type SelectValueProps, SelectViewport, type SelectViewportProps, Separator, Trigger, Value, Viewport, createSelectScope };
@@ -0,0 +1,21 @@
1
+ import * as React from 'react';
2
+ import { Primitive } from './_internal/react-primitive';
3
+
4
+ declare const ORIENTATIONS: readonly ["horizontal", "vertical"];
5
+ type Orientation = (typeof ORIENTATIONS)[number];
6
+ type PrimitiveDivProps = React.ComponentPropsWithoutRef<typeof Primitive.div>;
7
+ interface SeparatorProps extends PrimitiveDivProps {
8
+ /**
9
+ * Either `vertical` or `horizontal`. Defaults to `horizontal`.
10
+ */
11
+ orientation?: Orientation;
12
+ /**
13
+ * Whether or not the component is purely decorative. When true, accessibility-related attributes
14
+ * are updated so that that the rendered element is removed from the accessibility tree.
15
+ */
16
+ decorative?: boolean;
17
+ }
18
+ declare const Separator: React.ForwardRefExoticComponent<SeparatorProps & React.RefAttributes<HTMLDivElement>>;
19
+ declare const Root: React.ForwardRefExoticComponent<SeparatorProps & React.RefAttributes<HTMLDivElement>>;
20
+
21
+ export { Root, Separator, type SeparatorProps };