@gamecrafters/base-ui 0.0.7 → 0.0.9

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 (210) hide show
  1. package/build/components/aspect-ratio/AspectRatio.d.ts +1 -4
  2. package/build/components/aspect-ratio/AspectRatio.types.d.ts +1 -4
  3. package/build/components/bubble/Bubble.d.ts +10 -0
  4. package/build/components/bubble/Bubble.types.d.ts +29 -0
  5. package/build/components/bubble/BubbleContent.d.ts +7 -0
  6. package/build/components/bubble/BubbleContext.d.ts +2 -0
  7. package/build/components/bubble/BubbleGroup.d.ts +8 -0
  8. package/build/components/bubble/BubbleGroupContext.d.ts +2 -0
  9. package/build/components/bubble/BubbleReactions.d.ts +10 -0
  10. package/build/components/bubble/index.d.ts +33 -0
  11. package/build/components/chart/Chart.d.ts +3 -17
  12. package/build/components/chart/Chart.types.d.ts +107 -51
  13. package/build/components/chart/ChartContext.d.ts +3 -0
  14. package/build/components/chart/ChartGradient.d.ts +7 -0
  15. package/build/components/chart/ChartLegend.d.ts +6 -5
  16. package/build/components/chart/ChartRadialText.d.ts +7 -0
  17. package/build/components/chart/ChartTooltip.d.ts +6 -7
  18. package/build/components/chart/chartPalette.d.ts +13 -0
  19. package/build/components/chart/index.d.ts +14 -30
  20. package/build/components/chart/useChart.d.ts +3 -0
  21. package/build/components/checkbox-card/CheckboxCard.d.ts +14 -0
  22. package/build/components/checkbox-card/CheckboxCard.types.d.ts +26 -0
  23. package/build/components/checkbox-card/CheckboxCardContext.d.ts +2 -0
  24. package/build/components/checkbox-card/CheckboxCardLeadingVisual.d.ts +5 -0
  25. package/build/components/checkbox-card/index.d.ts +27 -0
  26. package/build/components/clipboard/Clipboard.d.ts +12 -0
  27. package/build/components/clipboard/Clipboard.types.d.ts +37 -0
  28. package/build/components/clipboard/ClipboardContext.d.ts +2 -0
  29. package/build/components/clipboard/ClipboardIndicator.d.ts +7 -0
  30. package/build/components/clipboard/ClipboardInput.d.ts +4 -0
  31. package/build/components/clipboard/ClipboardTrigger.d.ts +8 -0
  32. package/build/components/clipboard/copyText.d.ts +1 -0
  33. package/build/components/clipboard/index.d.ts +30 -0
  34. package/build/components/{upload/Upload.d.ts → file-upload/FileUpload.d.ts} +5 -5
  35. package/build/components/file-upload/FileUpload.types.d.ts +51 -0
  36. package/build/components/file-upload/FileUploadContext.d.ts +2 -0
  37. package/build/components/file-upload/FileUploadDescription.d.ts +5 -0
  38. package/build/components/{upload/UploadItem.d.ts → file-upload/FileUploadItem.d.ts} +1 -1
  39. package/build/components/file-upload/FileUploadLabel.d.ts +5 -0
  40. package/build/components/{upload → file-upload}/files.d.ts +2 -2
  41. package/build/components/{upload → file-upload}/index.d.ts +14 -14
  42. package/build/components/flow/Flow.d.ts +12 -0
  43. package/build/components/flow/Flow.types.d.ts +71 -0
  44. package/build/components/flow/FlowConnectors.d.ts +18 -0
  45. package/build/components/flow/FlowContext.d.ts +2 -0
  46. package/build/components/flow/FlowList.d.ts +5 -0
  47. package/build/components/flow/FlowNode.d.ts +7 -0
  48. package/build/components/flow/FlowParallel.d.ts +6 -0
  49. package/build/components/flow/flowLayout.d.ts +7 -0
  50. package/build/components/flow/flowPath.d.ts +2 -0
  51. package/build/components/flow/index.d.ts +31 -0
  52. package/build/components/hover-card/HoverCard.d.ts +7 -0
  53. package/build/components/hover-card/HoverCard.types.d.ts +33 -0
  54. package/build/components/hover-card/HoverCardContent.d.ts +5 -0
  55. package/build/components/hover-card/HoverCardContext.d.ts +2 -0
  56. package/build/components/hover-card/HoverCardTrigger.d.ts +15 -0
  57. package/build/components/hover-card/index.d.ts +12 -0
  58. package/build/components/index.d.ts +23 -2
  59. package/build/components/label-group/LabelGroup.d.ts +9 -0
  60. package/build/components/label-group/LabelGroup.types.d.ts +9 -0
  61. package/build/components/label-group/index.d.ts +3 -0
  62. package/build/components/label-group/useClippedChildren.d.ts +8 -0
  63. package/build/components/list/List.d.ts +10 -0
  64. package/build/components/list/List.types.d.ts +12 -0
  65. package/build/components/list/ListItem.d.ts +7 -0
  66. package/build/components/list/index.d.ts +16 -0
  67. package/build/components/marquee/Marquee.d.ts +11 -0
  68. package/build/components/marquee/Marquee.types.d.ts +26 -0
  69. package/build/components/marquee/index.d.ts +3 -0
  70. package/build/components/marquee/useMarquee.d.ts +14 -0
  71. package/build/components/message/Message.d.ts +9 -0
  72. package/build/components/message/Message.types.d.ts +29 -0
  73. package/build/components/message/MessageAvatar.d.ts +7 -0
  74. package/build/components/message/MessageContent.d.ts +7 -0
  75. package/build/components/message/MessageContext.d.ts +2 -0
  76. package/build/components/message/MessageFooter.d.ts +7 -0
  77. package/build/components/message/MessageGroup.d.ts +8 -0
  78. package/build/components/message/MessageGroupContext.d.ts +2 -0
  79. package/build/components/message/MessageHeader.d.ts +7 -0
  80. package/build/components/message/index.d.ts +42 -0
  81. package/build/components/meter/Meter.d.ts +15 -0
  82. package/build/components/meter/Meter.types.d.ts +41 -0
  83. package/build/components/meter/MeterContext.d.ts +2 -0
  84. package/build/components/meter/MeterIndicator.d.ts +7 -0
  85. package/build/components/meter/MeterLabel.d.ts +7 -0
  86. package/build/components/meter/MeterTrack.d.ts +7 -0
  87. package/build/components/meter/MeterValue.d.ts +6 -0
  88. package/build/components/meter/index.d.ts +40 -0
  89. package/build/components/meter/meterReading.d.ts +2 -0
  90. package/build/components/navigation-list/NavigationList.types.d.ts +53 -0
  91. package/build/components/navigation-list/NavigationListContext.d.ts +11 -0
  92. package/build/components/navigation-list/NavigationListGroup.d.ts +7 -0
  93. package/build/components/{nav-list/NavListGroupExpand.d.ts → navigation-list/NavigationListGroupExpand.d.ts} +3 -3
  94. package/build/components/navigation-list/NavigationListGroupHeading.d.ts +4 -0
  95. package/build/components/navigation-list/NavigationListHeading.d.ts +6 -0
  96. package/build/components/{nav-list/NavListItem.d.ts → navigation-list/NavigationListItem.d.ts} +1 -1
  97. package/build/components/navigation-list/NavigationListItemWithSubNavigation.d.ts +15 -0
  98. package/build/components/navigation-list/headingLevel.d.ts +3 -0
  99. package/build/components/{nav-list → navigation-list}/index.d.ts +15 -15
  100. package/build/components/navigation-menu/NavigationMenu.d.ts +13 -0
  101. package/build/components/navigation-menu/NavigationMenu.types.d.ts +90 -0
  102. package/build/components/navigation-menu/NavigationMenuContent.d.ts +10 -0
  103. package/build/components/navigation-menu/NavigationMenuContext.d.ts +8 -0
  104. package/build/components/navigation-menu/NavigationMenuDescription.d.ts +7 -0
  105. package/build/components/navigation-menu/NavigationMenuDivider.d.ts +6 -0
  106. package/build/components/navigation-menu/NavigationMenuGroup.d.ts +7 -0
  107. package/build/components/navigation-menu/NavigationMenuGroupHeading.d.ts +7 -0
  108. package/build/components/navigation-menu/NavigationMenuHeading.d.ts +6 -0
  109. package/build/components/navigation-menu/NavigationMenuItem.d.ts +7 -0
  110. package/build/components/navigation-menu/NavigationMenuLeadingVisual.d.ts +6 -0
  111. package/build/components/navigation-menu/NavigationMenuLink.d.ts +9 -0
  112. package/build/components/navigation-menu/NavigationMenuList.d.ts +6 -0
  113. package/build/components/navigation-menu/NavigationMenuSubNavigation.d.ts +6 -0
  114. package/build/components/navigation-menu/NavigationMenuTrailingVisual.d.ts +6 -0
  115. package/build/components/navigation-menu/NavigationMenuTrigger.d.ts +6 -0
  116. package/build/components/navigation-menu/NavigationMenuVisual.d.ts +2 -0
  117. package/build/components/navigation-menu/headingLevel.d.ts +3 -0
  118. package/build/components/navigation-menu/index.d.ts +66 -0
  119. package/build/components/number-input/NumberInput.d.ts +14 -0
  120. package/build/components/number-input/NumberInput.types.d.ts +14 -0
  121. package/build/components/number-input/index.d.ts +3 -0
  122. package/build/components/number-input/numberValue.d.ts +7 -0
  123. package/build/components/password-input/PasswordInput.d.ts +11 -0
  124. package/build/components/password-input/PasswordInput.types.d.ts +10 -0
  125. package/build/components/password-input/index.d.ts +2 -0
  126. package/build/components/pin-input/PINInput.d.ts +22 -0
  127. package/build/components/pin-input/PINInput.types.d.ts +21 -0
  128. package/build/components/pin-input/index.d.ts +2 -0
  129. package/build/components/popover/Popover.d.ts +10 -0
  130. package/build/components/popover/Popover.types.d.ts +25 -0
  131. package/build/components/popover/PopoverContent.d.ts +14 -0
  132. package/build/components/popover/PopoverContext.d.ts +2 -0
  133. package/build/components/popover/index.d.ts +24 -0
  134. package/build/components/qr-code/QRCode.d.ts +21 -0
  135. package/build/components/qr-code/QRCode.types.d.ts +35 -0
  136. package/build/components/qr-code/index.d.ts +2 -0
  137. package/build/components/radio-card/RadioCard.d.ts +14 -0
  138. package/build/components/radio-card/RadioCard.types.d.ts +26 -0
  139. package/build/components/radio-card/RadioCardContext.d.ts +2 -0
  140. package/build/components/radio-card/RadioCardDescription.d.ts +5 -0
  141. package/build/components/radio-card/RadioCardLabel.d.ts +5 -0
  142. package/build/components/radio-card/RadioCardLeadingVisual.d.ts +5 -0
  143. package/build/components/radio-card/index.d.ts +27 -0
  144. package/build/components/splitter/Splitter.d.ts +7 -0
  145. package/build/components/splitter/Splitter.types.d.ts +23 -0
  146. package/build/components/splitter/SplitterPanel.d.ts +5 -0
  147. package/build/components/splitter/SplitterResizeTrigger.d.ts +5 -0
  148. package/build/components/splitter/SplitterResizeTriggerIndicator.d.ts +5 -0
  149. package/build/components/splitter/SplitterResizeTriggerSeparator.d.ts +5 -0
  150. package/build/components/splitter/index.d.ts +24 -0
  151. package/build/components/statistic-card/StatisticCard.d.ts +5 -0
  152. package/build/components/statistic-card/StatisticCard.types.d.ts +26 -0
  153. package/build/components/statistic-card/StatisticCardContext.d.ts +2 -0
  154. package/build/components/statistic-card/StatisticCardDescription.d.ts +5 -0
  155. package/build/components/statistic-card/StatisticCardLabel.d.ts +5 -0
  156. package/build/components/statistic-card/StatisticCardTrailingVisual.d.ts +5 -0
  157. package/build/components/statistic-card/StatisticCardTrend.d.ts +8 -0
  158. package/build/components/statistic-card/StatisticCardValue.d.ts +5 -0
  159. package/build/components/statistic-card/index.d.ts +29 -0
  160. package/build/components/steps/Steps.d.ts +10 -0
  161. package/build/components/steps/Steps.types.d.ts +31 -0
  162. package/build/components/steps/StepsBody.d.ts +5 -0
  163. package/build/components/steps/StepsDescription.d.ts +5 -0
  164. package/build/components/steps/StepsIndicator.d.ts +5 -0
  165. package/build/components/steps/StepsItem.d.ts +8 -0
  166. package/build/components/steps/StepsItemContext.d.ts +2 -0
  167. package/build/components/steps/StepsTitle.d.ts +5 -0
  168. package/build/components/steps/index.d.ts +35 -0
  169. package/build/components/steps/useStepsItem.d.ts +2 -0
  170. package/build/components/table-of-contents/TableOfContents.d.ts +7 -0
  171. package/build/components/table-of-contents/TableOfContents.types.d.ts +32 -0
  172. package/build/components/table-of-contents/TableOfContentsGroup.d.ts +9 -0
  173. package/build/components/table-of-contents/TableOfContentsItem.d.ts +8 -0
  174. package/build/components/table-of-contents/TableOfContentsList.d.ts +5 -0
  175. package/build/components/table-of-contents/TableOfContentsTitle.d.ts +7 -0
  176. package/build/components/table-of-contents/index.d.ts +32 -0
  177. package/build/components/table-of-contents/useTableOfContentsActiveId.d.ts +2 -0
  178. package/build/main.cjs.js +2 -2
  179. package/build/main.d.ts +1 -1
  180. package/build/main.esm.js +2 -2
  181. package/build/providers/direction/Direction.types.d.ts +11 -0
  182. package/build/providers/direction/DirectionContext.d.ts +3 -0
  183. package/build/providers/direction/DirectionProvider.d.ts +7 -0
  184. package/build/providers/direction/index.d.ts +4 -0
  185. package/build/providers/direction/useDirection.d.ts +2 -0
  186. package/build/providers/index.d.ts +2 -0
  187. package/build/styles/main.css +3 -1
  188. package/package.json +3 -6
  189. package/build/components/chart/chartScales.d.ts +0 -36
  190. package/build/components/chart/useChartWidth.d.ts +0 -2
  191. package/build/components/nav-list/NavList.types.d.ts +0 -53
  192. package/build/components/nav-list/NavListContext.d.ts +0 -11
  193. package/build/components/nav-list/NavListGroup.d.ts +0 -7
  194. package/build/components/nav-list/NavListGroupHeading.d.ts +0 -4
  195. package/build/components/nav-list/NavListHeading.d.ts +0 -6
  196. package/build/components/nav-list/NavListItemWithSubNav.d.ts +0 -15
  197. package/build/components/nav-list/headingLevel.d.ts +0 -3
  198. package/build/components/upload/Upload.types.d.ts +0 -51
  199. package/build/components/upload/UploadContext.d.ts +0 -2
  200. /package/build/components/{upload/UploadDescription.d.ts → checkbox-card/CheckboxCardDescription.d.ts} +0 -0
  201. /package/build/components/{upload/UploadLabel.d.ts → checkbox-card/CheckboxCardLabel.d.ts} +0 -0
  202. /package/build/components/{upload/UploadIcon.d.ts → file-upload/FileUploadIcon.d.ts} +0 -0
  203. /package/build/components/{upload/UploadList.d.ts → file-upload/FileUploadList.d.ts} +0 -0
  204. /package/build/components/{nav-list/NavList.d.ts → navigation-list/NavigationList.d.ts} +0 -0
  205. /package/build/components/{nav-list/NavListSubNav.d.ts → navigation-list/NavigationListSubNavigation.d.ts} +0 -0
  206. /package/build/{theme → providers/theme}/Theme.types.d.ts +0 -0
  207. /package/build/{theme → providers/theme}/ThemeContext.d.ts +0 -0
  208. /package/build/{theme → providers/theme}/ThemeProvider.d.ts +0 -0
  209. /package/build/{theme → providers/theme}/index.d.ts +0 -0
  210. /package/build/{theme → providers/theme}/useTheme.d.ts +0 -0
@@ -0,0 +1,90 @@
1
+ import type * as React from "react";
2
+ import type { PolymorphicProps } from "../../utilities/polymorphic";
3
+ export type NavigationMenuOrientation = "horizontal" | "vertical";
4
+ export type NavigationMenuOpenOn = "click" | "hover";
5
+ export type NavigationMenuContentAlign = "start" | "center" | "end";
6
+ export type NavigationMenuHeadingLevel = "h2" | "h3";
7
+ export type NavigationMenuProps = Omit<React.ComponentPropsWithoutRef<"nav">, "defaultValue"> & {
8
+ children?: React.ReactNode;
9
+ value?: string | null;
10
+ defaultValue?: string | null;
11
+ onValueChange?: (value: string | null) => void;
12
+ orientation?: NavigationMenuOrientation;
13
+ openOn?: NavigationMenuOpenOn;
14
+ openDelay?: number;
15
+ closeDelay?: number;
16
+ className?: string;
17
+ };
18
+ export type NavigationMenuHeadingProps = Omit<React.ComponentPropsWithoutRef<"h2">, "children"> & {
19
+ as?: NavigationMenuHeadingLevel;
20
+ visuallyHidden?: boolean;
21
+ children?: React.ReactNode;
22
+ className?: string;
23
+ };
24
+ export type NavigationMenuListProps = React.ComponentPropsWithoutRef<"ul"> & {
25
+ children?: React.ReactNode;
26
+ className?: string;
27
+ };
28
+ export type NavigationMenuItemProps = Omit<React.ComponentPropsWithoutRef<"li">, "value"> & {
29
+ children?: React.ReactNode;
30
+ value?: string;
31
+ className?: string;
32
+ };
33
+ export type NavigationMenuTriggerProps = React.ComponentPropsWithoutRef<"button"> & {
34
+ children?: React.ReactNode;
35
+ className?: string;
36
+ };
37
+ export type NavigationMenuContentProps<As extends React.ElementType = "div"> = PolymorphicProps<As, "div", {
38
+ children?: React.ReactNode;
39
+ align?: NavigationMenuContentAlign;
40
+ className?: string;
41
+ }>;
42
+ export type NavigationMenuLinkProps<As extends React.ElementType = "a"> = PolymorphicProps<As, "a", {
43
+ children?: React.ReactNode;
44
+ active?: boolean;
45
+ className?: string;
46
+ }>;
47
+ export type NavigationMenuSubNavigationProps = React.ComponentPropsWithoutRef<"ul"> & {
48
+ children?: React.ReactNode;
49
+ className?: string;
50
+ };
51
+ export type NavigationMenuGroupProps = React.ComponentPropsWithoutRef<"div"> & {
52
+ children?: React.ReactNode;
53
+ title?: string;
54
+ hideDivider?: boolean;
55
+ className?: string;
56
+ };
57
+ export type NavigationMenuGroupHeadingProps = Omit<React.ComponentPropsWithoutRef<"h3">, "as"> & {
58
+ as?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
59
+ children?: React.ReactNode;
60
+ className?: string;
61
+ };
62
+ export type NavigationMenuDescriptionProps = React.ComponentPropsWithoutRef<"span"> & {
63
+ children?: React.ReactNode;
64
+ className?: string;
65
+ };
66
+ export type NavigationMenuVisualProps = React.ComponentPropsWithoutRef<"span"> & {
67
+ children?: React.ReactNode;
68
+ className?: string;
69
+ };
70
+ export type NavigationMenuDividerProps = Omit<React.ComponentPropsWithoutRef<"div">, "children"> & {
71
+ className?: string;
72
+ };
73
+ export type NavigationMenuContextValue = {
74
+ openValue: string | null;
75
+ setOpenValue: (value: string | null) => void;
76
+ orientation: NavigationMenuOrientation;
77
+ openOn: NavigationMenuOpenOn;
78
+ openAfterDelay: (value: string) => void;
79
+ closeAfterDelay: () => void;
80
+ };
81
+ export type NavigationMenuItemContextValue = {
82
+ value: string;
83
+ triggerId: string;
84
+ contentId: string;
85
+ isOpen: boolean;
86
+ };
87
+ export type NavigationMenuLinkContextValue = {
88
+ linkId: string;
89
+ descriptionId: string;
90
+ };
@@ -0,0 +1,10 @@
1
+ import * as React from "react";
2
+ import type { NavigationMenuContentAlign } from "./NavigationMenu.types";
3
+ declare const _default: <As extends React.ElementType = "div">(props: import("../../utilities/polymorphic").DistributiveOmit<React.ComponentPropsWithRef<React.ElementType extends As ? "div" : As> & {
4
+ children?: React.ReactNode;
5
+ align?: NavigationMenuContentAlign;
6
+ className?: string;
7
+ }, "as"> & {
8
+ as?: As | undefined;
9
+ } & React.RefAttributes<any>) => React.ReactNode;
10
+ export default _default;
@@ -0,0 +1,8 @@
1
+ import type { NavigationMenuContextValue, NavigationMenuItemContextValue, NavigationMenuLinkContextValue } from "./NavigationMenu.types";
2
+ export declare const NavigationMenuContext: import("react").Context<NavigationMenuContextValue>;
3
+ export declare const NavigationMenuItemContext: import("react").Context<NavigationMenuItemContextValue>;
4
+ export declare const NavigationMenuLinkContext: import("react").Context<NavigationMenuLinkContextValue>;
5
+ export declare const NavigationMenuHeadingLevelContext: import("react").Context<number | null>;
6
+ export declare const NavigationMenuDepthContext: import("react").Context<{
7
+ depth: number;
8
+ }>;
@@ -0,0 +1,7 @@
1
+ import * as React from "react";
2
+ import type { NavigationMenuDescriptionProps } from "./NavigationMenu.types";
3
+ declare function NavigationMenuDescription(props: NavigationMenuDescriptionProps): React.JSX.Element;
4
+ declare namespace NavigationMenuDescription {
5
+ var displayName: string;
6
+ }
7
+ export default NavigationMenuDescription;
@@ -0,0 +1,6 @@
1
+ import type { NavigationMenuDividerProps } from "./NavigationMenu.types";
2
+ declare function NavigationMenuDivider(props: NavigationMenuDividerProps): import("react").JSX.Element;
3
+ declare namespace NavigationMenuDivider {
4
+ var displayName: string;
5
+ }
6
+ export default NavigationMenuDivider;
@@ -0,0 +1,7 @@
1
+ import * as React from "react";
2
+ import type { NavigationMenuGroupProps } from "./NavigationMenu.types";
3
+ declare function NavigationMenuGroup(props: NavigationMenuGroupProps): React.JSX.Element;
4
+ declare namespace NavigationMenuGroup {
5
+ var displayName: string;
6
+ }
7
+ export default NavigationMenuGroup;
@@ -0,0 +1,7 @@
1
+ import * as React from "react";
2
+ import type { NavigationMenuGroupHeadingProps } from "./NavigationMenu.types";
3
+ declare function NavigationMenuGroupHeading(props: NavigationMenuGroupHeadingProps): React.JSX.Element;
4
+ declare namespace NavigationMenuGroupHeading {
5
+ var displayName: string;
6
+ }
7
+ export default NavigationMenuGroupHeading;
@@ -0,0 +1,6 @@
1
+ import type { NavigationMenuHeadingProps } from "./NavigationMenu.types";
2
+ declare function NavigationMenuHeading(props: NavigationMenuHeadingProps): import("react").JSX.Element;
3
+ declare namespace NavigationMenuHeading {
4
+ var displayName: string;
5
+ }
6
+ export default NavigationMenuHeading;
@@ -0,0 +1,7 @@
1
+ import * as React from "react";
2
+ declare const _default: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref">, "value"> & {
3
+ children?: React.ReactNode;
4
+ value?: string;
5
+ className?: string;
6
+ } & React.RefAttributes<any>>;
7
+ export default _default;
@@ -0,0 +1,6 @@
1
+ import type { NavigationMenuVisualProps } from "./NavigationMenu.types";
2
+ declare function NavigationMenuLeadingVisual(props: NavigationMenuVisualProps): import("react").JSX.Element;
3
+ declare namespace NavigationMenuLeadingVisual {
4
+ var displayName: string;
5
+ }
6
+ export default NavigationMenuLeadingVisual;
@@ -0,0 +1,9 @@
1
+ import * as React from "react";
2
+ declare const _default: <As extends React.ElementType = "a">(props: import("../../utilities/polymorphic").DistributiveOmit<React.ComponentPropsWithRef<React.ElementType extends As ? "a" : As> & {
3
+ children?: React.ReactNode;
4
+ active?: boolean;
5
+ className?: string;
6
+ }, "as"> & {
7
+ as?: As | undefined;
8
+ } & React.RefAttributes<any>) => React.ReactNode;
9
+ export default _default;
@@ -0,0 +1,6 @@
1
+ import * as React from "react";
2
+ declare const _default: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & {
3
+ children?: React.ReactNode;
4
+ className?: string;
5
+ } & React.RefAttributes<any>>;
6
+ export default _default;
@@ -0,0 +1,6 @@
1
+ import * as React from "react";
2
+ declare const _default: (props: Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & {
3
+ children?: React.ReactNode;
4
+ className?: string;
5
+ } & React.RefAttributes<any>) => React.ReactNode;
6
+ export default _default;
@@ -0,0 +1,6 @@
1
+ import type { NavigationMenuVisualProps } from "./NavigationMenu.types";
2
+ declare function NavigationMenuTrailingVisual(props: NavigationMenuVisualProps): import("react").JSX.Element;
3
+ declare namespace NavigationMenuTrailingVisual {
4
+ var displayName: string;
5
+ }
6
+ export default NavigationMenuTrailingVisual;
@@ -0,0 +1,6 @@
1
+ import * as React from "react";
2
+ declare const _default: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
3
+ children?: React.ReactNode;
4
+ className?: string;
5
+ } & React.RefAttributes<any>>;
6
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import type { NavigationMenuVisualProps } from "./NavigationMenu.types";
2
+ export declare const NavigationMenuVisualContainer: ({ className, ...rest }: NavigationMenuVisualProps) => import("react").JSX.Element;
@@ -0,0 +1,3 @@
1
+ import type { NavigationMenuHeadingLevel } from "./NavigationMenu.types";
2
+ export declare const levelForHeadingTag: (as: NavigationMenuHeadingLevel) => number;
3
+ export declare const headingTagForLevel: (menuLevel: number | null) => "h1" | "h2" | "h3" | "h4";
@@ -0,0 +1,66 @@
1
+ import NavigationMenuContent from "./NavigationMenuContent";
2
+ import NavigationMenuDescription from "./NavigationMenuDescription";
3
+ import NavigationMenuDivider from "./NavigationMenuDivider";
4
+ import NavigationMenuGroup from "./NavigationMenuGroup";
5
+ import NavigationMenuGroupHeading from "./NavigationMenuGroupHeading";
6
+ import NavigationMenuHeading from "./NavigationMenuHeading";
7
+ import NavigationMenuItem from "./NavigationMenuItem";
8
+ import NavigationMenuLeadingVisual from "./NavigationMenuLeadingVisual";
9
+ import NavigationMenuLink from "./NavigationMenuLink";
10
+ import NavigationMenuList from "./NavigationMenuList";
11
+ import NavigationMenuSubNavigation from "./NavigationMenuSubNavigation";
12
+ import NavigationMenuTrailingVisual from "./NavigationMenuTrailingVisual";
13
+ import NavigationMenuTrigger from "./NavigationMenuTrigger";
14
+ export declare const NavigationMenu: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "ref">, "defaultValue"> & {
15
+ children?: React.ReactNode;
16
+ value?: string | null;
17
+ defaultValue?: string | null;
18
+ onValueChange?: (value: string | null) => void;
19
+ orientation?: import("./NavigationMenu.types").NavigationMenuOrientation;
20
+ openOn?: import("./NavigationMenu.types").NavigationMenuOpenOn;
21
+ openDelay?: number;
22
+ closeDelay?: number;
23
+ className?: string;
24
+ } & import("react").RefAttributes<any>> & {
25
+ Heading: typeof NavigationMenuHeading;
26
+ List: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & {
27
+ children?: React.ReactNode;
28
+ className?: string;
29
+ } & import("react").RefAttributes<any>>;
30
+ Item: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref">, "value"> & {
31
+ children?: React.ReactNode;
32
+ value?: string;
33
+ className?: string;
34
+ } & import("react").RefAttributes<any>>;
35
+ Trigger: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
36
+ children?: React.ReactNode;
37
+ className?: string;
38
+ } & import("react").RefAttributes<any>>;
39
+ Content: <As extends React.ElementType = "div">(props: import("../../utilities/polymorphic").DistributiveOmit<import("react").ComponentPropsWithRef<import("react").ElementType extends As ? "div" : As> & {
40
+ children?: React.ReactNode;
41
+ align?: import("./NavigationMenu.types").NavigationMenuContentAlign;
42
+ className?: string;
43
+ }, "as"> & {
44
+ as?: As | undefined;
45
+ } & import("react").RefAttributes<any>) => React.ReactNode;
46
+ Link: <As extends React.ElementType = "a">(props: import("../../utilities/polymorphic").DistributiveOmit<import("react").ComponentPropsWithRef<import("react").ElementType extends As ? "a" : As> & {
47
+ children?: React.ReactNode;
48
+ active?: boolean;
49
+ className?: string;
50
+ }, "as"> & {
51
+ as?: As | undefined;
52
+ } & import("react").RefAttributes<any>) => React.ReactNode;
53
+ SubNavigation: (props: Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & {
54
+ children?: React.ReactNode;
55
+ className?: string;
56
+ } & import("react").RefAttributes<any>) => React.ReactNode;
57
+ Group: typeof NavigationMenuGroup;
58
+ GroupHeading: typeof NavigationMenuGroupHeading;
59
+ Description: typeof NavigationMenuDescription;
60
+ LeadingVisual: typeof NavigationMenuLeadingVisual;
61
+ TrailingVisual: typeof NavigationMenuTrailingVisual;
62
+ Divider: typeof NavigationMenuDivider;
63
+ };
64
+ export { NavigationMenuHeading, NavigationMenuList, NavigationMenuItem, NavigationMenuTrigger, NavigationMenuContent, NavigationMenuLink, NavigationMenuSubNavigation, NavigationMenuGroup, NavigationMenuGroupHeading, NavigationMenuDescription, NavigationMenuLeadingVisual, NavigationMenuTrailingVisual, NavigationMenuDivider, };
65
+ export { NavigationMenuContext, NavigationMenuItemContext, NavigationMenuLinkContext, NavigationMenuHeadingLevelContext, NavigationMenuDepthContext, } from "./NavigationMenuContext";
66
+ export * from "./NavigationMenu.types";
@@ -0,0 +1,14 @@
1
+ import * as React from "react";
2
+ declare const _default: (props: Omit<import("..").TextInputProps, "onChange" | "value" | "defaultValue" | "type" | "step" | "trailingAction" | "max" | "min" | "characterLimit"> & {
3
+ value?: number | null;
4
+ defaultValue?: number;
5
+ min?: number;
6
+ max?: number;
7
+ step?: number;
8
+ onChange?: (value: number | null, event?: React.ChangeEvent<HTMLInputElement>) => void;
9
+ hideStepper?: boolean;
10
+ incrementLabel?: string;
11
+ decrementLabel?: string;
12
+ className?: string;
13
+ } & React.RefAttributes<any>) => React.ReactNode;
14
+ export default _default;
@@ -0,0 +1,14 @@
1
+ import type * as React from "react";
2
+ import type { TextInputProps } from "../text-input/TextInput.types";
3
+ export type NumberInputProps = Omit<TextInputProps, "type" | "value" | "defaultValue" | "min" | "max" | "step" | "onChange" | "characterLimit" | "trailingAction"> & {
4
+ value?: number | null;
5
+ defaultValue?: number;
6
+ min?: number;
7
+ max?: number;
8
+ step?: number;
9
+ onChange?: (value: number | null, event?: React.ChangeEvent<HTMLInputElement>) => void;
10
+ hideStepper?: boolean;
11
+ incrementLabel?: string;
12
+ decrementLabel?: string;
13
+ className?: string;
14
+ };
@@ -0,0 +1,3 @@
1
+ export { default as NumberInput } from "./NumberInput";
2
+ export { clampToRange, stepValue } from "./numberValue";
3
+ export * from "./NumberInput.types";
@@ -0,0 +1,7 @@
1
+ export declare const clampToRange: (value: number, min?: number, max?: number) => number;
2
+ export declare const stepValue: (value: number | null, direction: 1 | -1, { step, min, max }?: {
3
+ step?: number;
4
+ min?: number;
5
+ max?: number;
6
+ }) => number;
7
+ export declare const readValue: (input: HTMLInputElement) => number | null;
@@ -0,0 +1,11 @@
1
+ import * as React from "react";
2
+ declare const _default: (props: Omit<import("..").TextInputProps, "type" | "trailingAction"> & {
3
+ visible?: boolean;
4
+ defaultVisible?: boolean;
5
+ onVisibilityChange?: (visible: boolean) => void;
6
+ hideToggle?: boolean;
7
+ showLabel?: string;
8
+ hideLabel?: string;
9
+ className?: string;
10
+ } & React.RefAttributes<any>) => React.ReactNode;
11
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import type { TextInputProps } from "../text-input/TextInput.types";
2
+ export type PasswordInputProps = Omit<TextInputProps, "type" | "trailingAction"> & {
3
+ visible?: boolean;
4
+ defaultVisible?: boolean;
5
+ onVisibilityChange?: (visible: boolean) => void;
6
+ hideToggle?: boolean;
7
+ showLabel?: string;
8
+ hideLabel?: string;
9
+ className?: string;
10
+ };
@@ -0,0 +1,2 @@
1
+ export { default as PasswordInput } from "./PasswordInput";
2
+ export * from "./PasswordInput.types";
@@ -0,0 +1,22 @@
1
+ import * as React from "react";
2
+ import type { TextInputSize } from "../text-input/TextInput.types";
3
+ import type { PINInputType } from "./PINInput.types";
4
+ declare const _default: (props: Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "onChange" | "defaultValue"> & {
5
+ length?: number;
6
+ value?: string;
7
+ defaultValue?: string;
8
+ type?: PINInputType;
9
+ mask?: boolean;
10
+ size?: TextInputSize;
11
+ disabled?: boolean;
12
+ readOnly?: boolean;
13
+ required?: boolean;
14
+ validationStatus?: import("..").TextInputValidationStatus;
15
+ autoFocus?: boolean;
16
+ autoComplete?: string;
17
+ onChange?: (value: string) => void;
18
+ onComplete?: (value: string) => void;
19
+ boxLabel?: string;
20
+ className?: string;
21
+ } & React.RefAttributes<any>) => React.ReactNode;
22
+ export default _default;
@@ -0,0 +1,21 @@
1
+ import type * as React from "react";
2
+ import type { TextInputSize, TextInputValidationStatus } from "../text-input/TextInput.types";
3
+ export type PINInputType = "numeric" | "alphanumeric";
4
+ export type PINInputProps = Omit<React.ComponentPropsWithoutRef<"div">, "onChange" | "defaultValue"> & {
5
+ length?: number;
6
+ value?: string;
7
+ defaultValue?: string;
8
+ type?: PINInputType;
9
+ mask?: boolean;
10
+ size?: TextInputSize;
11
+ disabled?: boolean;
12
+ readOnly?: boolean;
13
+ required?: boolean;
14
+ validationStatus?: TextInputValidationStatus;
15
+ autoFocus?: boolean;
16
+ autoComplete?: string;
17
+ onChange?: (value: string) => void;
18
+ onComplete?: (value: string) => void;
19
+ boxLabel?: string;
20
+ className?: string;
21
+ };
@@ -0,0 +1,2 @@
1
+ export { default as PINInput } from "./PINInput";
2
+ export * from "./PINInput.types";
@@ -0,0 +1,10 @@
1
+ import * as React from "react";
2
+ declare const _default: <As extends React.ElementType = "div">(props: import("../../utilities/polymorphic").DistributiveOmit<React.ComponentPropsWithRef<React.ElementType extends As ? "div" : As> & {
3
+ caret?: import("./Popover.types").PopoverCaret;
4
+ open?: boolean;
5
+ relative?: boolean;
6
+ className?: string;
7
+ }, "as"> & {
8
+ as?: As | undefined;
9
+ } & React.RefAttributes<any>) => React.ReactNode;
10
+ export default _default;
@@ -0,0 +1,25 @@
1
+ import type * as React from "react";
2
+ import type { PolymorphicProps } from "../../utilities/polymorphic";
3
+ export type PopoverCaret = "top" | "bottom" | "left" | "right" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | "left-top" | "left-bottom" | "right-top" | "right-bottom";
4
+ export type PopoverContentWidth = "xsmall" | "small" | "medium" | "large" | "xlarge" | "auto";
5
+ export type PopoverContentHeight = "small" | "medium" | "large" | "xlarge" | "auto" | "fit-content";
6
+ export type PopoverContentOverflow = "auto" | "hidden" | "scroll" | "visible";
7
+ export type PopoverProps<As extends React.ElementType = "div"> = PolymorphicProps<As, "div", {
8
+ caret?: PopoverCaret;
9
+ open?: boolean;
10
+ relative?: boolean;
11
+ className?: string;
12
+ }>;
13
+ export type PopoverContentProps<As extends React.ElementType = "div"> = PolymorphicProps<As, "div", {
14
+ width?: PopoverContentWidth;
15
+ height?: PopoverContentHeight;
16
+ overflow?: PopoverContentOverflow;
17
+ onClickOutside?: (event: MouseEvent | TouchEvent) => void;
18
+ onEscape?: (event: KeyboardEvent) => void;
19
+ ignoreClickRefs?: React.RefObject<HTMLElement | null>[];
20
+ className?: string;
21
+ }>;
22
+ export type PopoverContextValue = {
23
+ open?: boolean;
24
+ caret?: PopoverCaret;
25
+ };
@@ -0,0 +1,14 @@
1
+ import * as React from "react";
2
+ import type { PopoverContentHeight, PopoverContentOverflow, PopoverContentWidth } from "./Popover.types";
3
+ declare const _default: <As extends React.ElementType = "div">(props: import("../../utilities/polymorphic").DistributiveOmit<React.ComponentPropsWithRef<React.ElementType extends As ? "div" : As> & {
4
+ width?: PopoverContentWidth;
5
+ height?: PopoverContentHeight;
6
+ overflow?: PopoverContentOverflow;
7
+ onClickOutside?: (event: MouseEvent | TouchEvent) => void;
8
+ onEscape?: (event: KeyboardEvent) => void;
9
+ ignoreClickRefs?: React.RefObject<HTMLElement | null>[];
10
+ className?: string;
11
+ }, "as"> & {
12
+ as?: As | undefined;
13
+ } & React.RefAttributes<any>) => React.ReactNode;
14
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import type { PopoverContextValue } from "./Popover.types";
2
+ export declare const PopoverContext: import("react").Context<PopoverContextValue>;
@@ -0,0 +1,24 @@
1
+ import PopoverContent from "./PopoverContent";
2
+ export declare const Popover: (<As extends React.ElementType = "div">(props: import("../../utilities/polymorphic").DistributiveOmit<import("react").ComponentPropsWithRef<import("react").ElementType extends As ? "div" : As> & {
3
+ caret?: import("./Popover.types").PopoverCaret;
4
+ open?: boolean;
5
+ relative?: boolean;
6
+ className?: string;
7
+ }, "as"> & {
8
+ as?: As | undefined;
9
+ } & import("react").RefAttributes<any>) => React.ReactNode) & {
10
+ Content: <As extends React.ElementType = "div">(props: import("../../utilities/polymorphic").DistributiveOmit<import("react").ComponentPropsWithRef<import("react").ElementType extends As ? "div" : As> & {
11
+ width?: import("./Popover.types").PopoverContentWidth;
12
+ height?: import("./Popover.types").PopoverContentHeight;
13
+ overflow?: import("./Popover.types").PopoverContentOverflow;
14
+ onClickOutside?: (event: MouseEvent | TouchEvent) => void;
15
+ onEscape?: (event: KeyboardEvent) => void;
16
+ ignoreClickRefs?: React.RefObject<HTMLElement | null>[];
17
+ className?: string;
18
+ }, "as"> & {
19
+ as?: As | undefined;
20
+ } & import("react").RefAttributes<any>) => React.ReactNode;
21
+ };
22
+ export { PopoverContent };
23
+ export { PopoverContext } from "./PopoverContext";
24
+ export * from "./Popover.types";
@@ -0,0 +1,21 @@
1
+ import * as React from "react";
2
+ declare const _default: (props: Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "children"> & {
3
+ value: string;
4
+ size?: number;
5
+ margin?: number;
6
+ ecLevel?: import("../../lib/qr-code").ErrorCorrectionLevel;
7
+ version?: number;
8
+ mode?: import("../../lib/qr-code").EncodingMode;
9
+ mask?: import("./QRCode.types").QRCodeMask;
10
+ dotType?: import("./QRCode.types").QRCodeDotType;
11
+ dotSize?: number;
12
+ corners?: import("./QRCode.types").QRCodeCorners;
13
+ color?: string;
14
+ background?: string;
15
+ logo?: React.ReactNode;
16
+ logoSize?: number;
17
+ label?: string;
18
+ fallback?: React.ReactNode;
19
+ className?: string;
20
+ } & React.RefAttributes<any>) => React.ReactNode;
21
+ export default _default;
@@ -0,0 +1,35 @@
1
+ import type * as React from "react";
2
+ import type { CornerOptions, DotType } from "../../lib/qr-code/types";
3
+ import type { EncodingMode, ErrorCorrectionLevel, QRCodeOptions } from "../../lib/qr-code/core/types";
4
+ export type QRCodeDotType = DotType;
5
+ export type QRCodeMask = NonNullable<QRCodeOptions["mask"]>;
6
+ export type QRCodeCornerOptions = {
7
+ outerShape?: CornerOptions["outerShape"];
8
+ innerShape?: CornerOptions["innerShape"];
9
+ outerColor?: string;
10
+ innerColor?: string;
11
+ };
12
+ export type QRCodeCorners = {
13
+ topLeft?: QRCodeCornerOptions;
14
+ topRight?: QRCodeCornerOptions;
15
+ bottomLeft?: QRCodeCornerOptions;
16
+ };
17
+ export type QRCodeProps = Omit<React.ComponentPropsWithoutRef<"div">, "children"> & {
18
+ value: string;
19
+ size?: number;
20
+ margin?: number;
21
+ ecLevel?: ErrorCorrectionLevel;
22
+ version?: number;
23
+ mode?: EncodingMode;
24
+ mask?: QRCodeMask;
25
+ dotType?: QRCodeDotType;
26
+ dotSize?: number;
27
+ corners?: QRCodeCorners;
28
+ color?: string;
29
+ background?: string;
30
+ logo?: React.ReactNode;
31
+ logoSize?: number;
32
+ label?: string;
33
+ fallback?: React.ReactNode;
34
+ className?: string;
35
+ };
@@ -0,0 +1,2 @@
1
+ export { default as QRCode } from "./QRCode";
2
+ export * from "./QRCode.types";
@@ -0,0 +1,14 @@
1
+ import * as React from "react";
2
+ import type { RadioCardValidationStatus } from "./RadioCard.types";
3
+ declare const _default: (props: Omit<Omit<React.DetailedHTMLProps<React.LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "ref">, "onChange"> & {
4
+ value: string;
5
+ name?: string;
6
+ checked?: boolean;
7
+ defaultChecked?: boolean;
8
+ disabled?: boolean;
9
+ required?: boolean;
10
+ validationStatus?: RadioCardValidationStatus;
11
+ onChange?: React.ChangeEventHandler<HTMLInputElement>;
12
+ className?: string;
13
+ } & React.RefAttributes<any>) => React.ReactNode;
14
+ export default _default;
@@ -0,0 +1,26 @@
1
+ import type * as React from "react";
2
+ export type RadioCardValidationStatus = "error" | "success";
3
+ export type RadioCardProps = Omit<React.ComponentPropsWithoutRef<"label">, "onChange"> & {
4
+ value: string;
5
+ name?: string;
6
+ checked?: boolean;
7
+ defaultChecked?: boolean;
8
+ disabled?: boolean;
9
+ required?: boolean;
10
+ validationStatus?: RadioCardValidationStatus;
11
+ onChange?: React.ChangeEventHandler<HTMLInputElement>;
12
+ className?: string;
13
+ };
14
+ export type RadioCardLabelProps = React.ComponentPropsWithoutRef<"span"> & {
15
+ className?: string;
16
+ };
17
+ export type RadioCardDescriptionProps = React.ComponentPropsWithoutRef<"span"> & {
18
+ className?: string;
19
+ };
20
+ export type RadioCardLeadingVisualProps = React.ComponentPropsWithoutRef<"span"> & {
21
+ className?: string;
22
+ };
23
+ export type RadioCardContextValue = {
24
+ labelId?: string;
25
+ descriptionId?: string;
26
+ };
@@ -0,0 +1,2 @@
1
+ import type { RadioCardContextValue } from "./RadioCard.types";
2
+ export declare const RadioCardContext: import("react").Context<RadioCardContextValue>;
@@ -0,0 +1,5 @@
1
+ import * as React from "react";
2
+ declare const _default: (props: Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
3
+ className?: string;
4
+ } & React.RefAttributes<any>) => React.ReactNode;
5
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import * as React from "react";
2
+ declare const _default: (props: Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
3
+ className?: string;
4
+ } & React.RefAttributes<any>) => React.ReactNode;
5
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import * as React from "react";
2
+ declare const _default: (props: Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
3
+ className?: string;
4
+ } & React.RefAttributes<any>) => React.ReactNode;
5
+ export default _default;