@phsa.tec/design-system-react 0.1.6 → 0.1.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 (217) hide show
  1. package/README.md +390 -209
  2. package/dist/index.d.mts +485 -0
  3. package/dist/index.d.ts +485 -0
  4. package/dist/index.js +4259 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.mjs +4186 -0
  7. package/dist/index.mjs.map +1 -0
  8. package/dist/styles.css +2534 -0
  9. package/dist/styles.css.map +1 -0
  10. package/dist/styles.d.mts +2 -0
  11. package/dist/styles.d.ts +2 -0
  12. package/package.json +46 -6
  13. package/.eslintrc.json +0 -7
  14. package/.github/workflows/deploy-storybook.yml +0 -75
  15. package/.storybook/main.ts +0 -16
  16. package/.storybook/preview.ts +0 -15
  17. package/components.json +0 -21
  18. package/jest.config.ts +0 -25
  19. package/next.config.ts +0 -7
  20. package/postcss.config.mjs +0 -8
  21. package/public/file.svg +0 -1
  22. package/public/globe.svg +0 -1
  23. package/public/next.svg +0 -1
  24. package/public/vercel.svg +0 -1
  25. package/public/window.svg +0 -1
  26. package/src/app/columns.tsx +0 -178
  27. package/src/app/favicon.ico +0 -0
  28. package/src/app/fonts/GeistMonoVF.woff +0 -0
  29. package/src/app/fonts/GeistVF.woff +0 -0
  30. package/src/app/globals.css +0 -94
  31. package/src/app/layout.tsx +0 -35
  32. package/src/app/page.tsx +0 -7
  33. package/src/components/actions/AlertDialog/AlertDialog.tsx +0 -45
  34. package/src/components/actions/AlertDialog/alert-dialog.stories.tsx +0 -21
  35. package/src/components/actions/AlertDialog/index.ts +0 -1
  36. package/src/components/actions/Button/Button.stories.ts +0 -38
  37. package/src/components/actions/Button/Button.tsx +0 -23
  38. package/src/components/actions/Button/index.ts +0 -1
  39. package/src/components/actions/Collapsible/index.ts +0 -1
  40. package/src/components/actions/Dialog/Dialog.stories.tsx +0 -70
  41. package/src/components/actions/Dialog/Dialog.tsx +0 -87
  42. package/src/components/actions/Dialog/components/DialogWithActions/index.tsx +0 -40
  43. package/src/components/actions/Dialog/index.ts +0 -1
  44. package/src/components/actions/Steps/Steps.stories.tsx +0 -25
  45. package/src/components/actions/Steps/Steps.tsx +0 -51
  46. package/src/components/actions/Steps/index.ts +0 -1
  47. package/src/components/actions/index.ts +0 -5
  48. package/src/components/dataDisplay/Avatar/Avatar.stories.tsx +0 -22
  49. package/src/components/dataDisplay/Avatar/Avatar.tsx +0 -21
  50. package/src/components/dataDisplay/Avatar/index.ts +0 -2
  51. package/src/components/dataDisplay/Badge/Badge.stories.tsx +0 -36
  52. package/src/components/dataDisplay/Badge/index.ts +0 -1
  53. package/src/components/dataDisplay/Card/Card.stories.tsx +0 -24
  54. package/src/components/dataDisplay/Card/Card.tsx +0 -34
  55. package/src/components/dataDisplay/Card/index.ts +0 -1
  56. package/src/components/dataDisplay/DataPairList/DataPairList.tsx +0 -56
  57. package/src/components/dataDisplay/DataPairList/data-pair-list.stories.tsx +0 -87
  58. package/src/components/dataDisplay/DataPairList/index.ts +0 -2
  59. package/src/components/dataDisplay/DataPairList/types.ts +0 -10
  60. package/src/components/dataDisplay/DropDownMenu/index.ts +0 -1
  61. package/src/components/dataDisplay/ErrorMessage/ErrorMessage.tsx +0 -6
  62. package/src/components/dataDisplay/ErrorMessage/index.ts +0 -1
  63. package/src/components/dataDisplay/Icon/Icon.stories.tsx +0 -21
  64. package/src/components/dataDisplay/Icon/Icon.tsx +0 -47
  65. package/src/components/dataDisplay/Icon/index.ts +0 -1
  66. package/src/components/dataDisplay/Icon/types.ts +0 -6
  67. package/src/components/dataDisplay/Label/Label.stories.tsx +0 -21
  68. package/src/components/dataDisplay/Label/Label.tsx +0 -10
  69. package/src/components/dataDisplay/Label/index.ts +0 -1
  70. package/src/components/dataDisplay/Table/Table.tsx +0 -173
  71. package/src/components/dataDisplay/Table/columns.tsx +0 -223
  72. package/src/components/dataDisplay/Table/components/DynamicTable/data-table-column-header.tsx +0 -72
  73. package/src/components/dataDisplay/Table/components/DynamicTable/data-table-pagination.tsx +0 -91
  74. package/src/components/dataDisplay/Table/components/DynamicTable/data-table-toolbar.tsx +0 -17
  75. package/src/components/dataDisplay/Table/components/DynamicTable/data-table-view-options.tsx +0 -58
  76. package/src/components/dataDisplay/Table/components/DynamicTable/data-table.stories.tsx +0 -118
  77. package/src/components/dataDisplay/Table/components/DynamicTable/index.tsx +0 -136
  78. package/src/components/dataDisplay/Table/components/DynamicTable/types.ts +0 -43
  79. package/src/components/dataDisplay/Table/custom/CustomTable/data-table-column-header.tsx +0 -71
  80. package/src/components/dataDisplay/Table/custom/CustomTable/data-table-faceted-filter.tsx +0 -147
  81. package/src/components/dataDisplay/Table/custom/CustomTable/data-table-pagination.tsx +0 -97
  82. package/src/components/dataDisplay/Table/custom/CustomTable/data-table-row-actions.tsx +0 -78
  83. package/src/components/dataDisplay/Table/custom/CustomTable/data-table-toolbar.tsx +0 -60
  84. package/src/components/dataDisplay/Table/custom/CustomTable/data-table-view-options.tsx +0 -59
  85. package/src/components/dataDisplay/Table/custom/CustomTable/data-table.tsx +0 -145
  86. package/src/components/dataDisplay/Table/custom/CustomTable/data.ts +0 -71
  87. package/src/components/dataDisplay/Table/custom/CustomTable/index.tsx +0 -34
  88. package/src/components/dataDisplay/Table/custom/CustomTable/schema.ts +0 -11
  89. package/src/components/dataDisplay/Table/index.ts +0 -2
  90. package/src/components/dataDisplay/Table/table.stories.tsx +0 -147
  91. package/src/components/dataDisplay/Table/types.ts +0 -15
  92. package/src/components/dataDisplay/Tabs/Tabs.stories.tsx +0 -34
  93. package/src/components/dataDisplay/Tabs/Tabs.tsx +0 -53
  94. package/src/components/dataDisplay/Tabs/index.ts +0 -1
  95. package/src/components/dataDisplay/Text/Text.stories.tsx +0 -66
  96. package/src/components/dataDisplay/Text/Text.tsx +0 -56
  97. package/src/components/dataDisplay/Text/index.ts +0 -1
  98. package/src/components/dataDisplay/index.ts +0 -8
  99. package/src/components/dataInput/Input/components/Input/Input.stories.tsx +0 -99
  100. package/src/components/dataInput/Input/components/Input/InputBase.tsx +0 -50
  101. package/src/components/dataInput/Input/components/Input/__tests__/input.test.tsx +0 -38
  102. package/src/components/dataInput/Input/components/Input/index.tsx +0 -48
  103. package/src/components/dataInput/Input/components/Input/types.ts +0 -15
  104. package/src/components/dataInput/Input/components/InputBase/index.tsx +0 -31
  105. package/src/components/dataInput/Input/components/MaskInput/__tests__/mask-input.test.tsx +0 -77
  106. package/src/components/dataInput/Input/components/MaskInput/index.ts +0 -1
  107. package/src/components/dataInput/Input/components/MaskInput/mask-input.stories.tsx +0 -85
  108. package/src/components/dataInput/Input/components/MaskInput/mask-input.tsx +0 -73
  109. package/src/components/dataInput/Input/components/MultipleInput/MultipleInput.tsx +0 -105
  110. package/src/components/dataInput/Input/components/MultipleInput/MultipleInputBase.tsx +0 -100
  111. package/src/components/dataInput/Input/components/MultipleInput/MultipleMaskInput.tsx +0 -35
  112. package/src/components/dataInput/Input/components/MultipleInput/MultipleNumberInput.tsx +0 -35
  113. package/src/components/dataInput/Input/components/MultipleInput/__tests__/multiple-input.test.tsx +0 -152
  114. package/src/components/dataInput/Input/components/MultipleInput/index.ts +0 -2
  115. package/src/components/dataInput/Input/components/MultipleInput/multiple-input.stories.tsx +0 -96
  116. package/src/components/dataInput/Input/components/NumberInput/__tests__/number-input.test.tsx +0 -175
  117. package/src/components/dataInput/Input/components/NumberInput/index.ts +0 -1
  118. package/src/components/dataInput/Input/components/NumberInput/number-input.stories.tsx +0 -76
  119. package/src/components/dataInput/Input/components/NumberInput/number-input.tsx +0 -70
  120. package/src/components/dataInput/Input/index.ts +0 -4
  121. package/src/components/dataInput/Select/MultiSelect/MultiSelect.stories.tsx +0 -119
  122. package/src/components/dataInput/Select/MultiSelect/MultiSelectBase.tsx +0 -135
  123. package/src/components/dataInput/Select/MultiSelect/index.tsx +0 -75
  124. package/src/components/dataInput/Select/Select.stories.tsx +0 -61
  125. package/src/components/dataInput/Select/Select.tsx +0 -73
  126. package/src/components/dataInput/Select/SelectBase.tsx +0 -58
  127. package/src/components/dataInput/Select/index.ts +0 -2
  128. package/src/components/dataInput/Switch/Switch.stories.tsx +0 -75
  129. package/src/components/dataInput/Switch/Switch.tsx +0 -52
  130. package/src/components/dataInput/Switch/index.ts +0 -1
  131. package/src/components/dataInput/checkbox/Checkbox.tsx +0 -57
  132. package/src/components/dataInput/checkbox/Checkbox_old.tsx +0 -58
  133. package/src/components/dataInput/checkbox/Checkout.stories.tsx +0 -62
  134. package/src/components/dataInput/checkbox/index.ts +0 -1
  135. package/src/components/dataInput/form/Form.tsx +0 -47
  136. package/src/components/dataInput/form/index.ts +0 -3
  137. package/src/components/dataInput/index.ts +0 -5
  138. package/src/components/feedback/ErrorLabel/index.tsx +0 -24
  139. package/src/components/feedback/Spinner/index.ts +0 -1
  140. package/src/components/feedback/Toast/Toast.stories.tsx +0 -45
  141. package/src/components/feedback/Toast/index.ts +0 -2
  142. package/src/components/feedback/index.ts +0 -2
  143. package/src/components/index.ts +0 -6
  144. package/src/components/layout/Crud/components/Table/index.tsx +0 -183
  145. package/src/components/layout/Crud/components/Table/types.ts +0 -15
  146. package/src/components/layout/Crud/crud.stories.tsx +0 -317
  147. package/src/components/layout/Crud/hook/useCrudLayout/index.tsx +0 -94
  148. package/src/components/layout/Crud/hook/useRequest/index.tsx +0 -156
  149. package/src/components/layout/Crud/index.tsx +0 -295
  150. package/src/components/layout/Crud/store/CrudLayoutStore.ts +0 -75
  151. package/src/components/layout/Crud/types.ts +0 -14
  152. package/src/components/layout/Drawer/CustomDrawer/index.tsx +0 -33
  153. package/src/components/layout/Drawer/Drawer.stories.tsx +0 -80
  154. package/src/components/layout/Drawer/index.ts +0 -2
  155. package/src/components/layout/PageLayout/PageLayout.stories.tsx +0 -42
  156. package/src/components/layout/PageLayout/index.tsx +0 -28
  157. package/src/components/layout/Separator/index.ts +0 -1
  158. package/src/components/layout/Sheet/Sheet.stories.tsx +0 -28
  159. package/src/components/layout/Sheet/Sheet.tsx +0 -22
  160. package/src/components/layout/Sheet/index.ts +0 -1
  161. package/src/components/layout/Sidebar/Sidebar.stories.tsx +0 -116
  162. package/src/components/layout/Sidebar/Sidebar.tsx +0 -50
  163. package/src/components/layout/Sidebar/components/app-sidebar.tsx +0 -203
  164. package/src/components/layout/Sidebar/components/footer-sidebar.tsx +0 -17
  165. package/src/components/layout/Sidebar/components/header-sidebar.tsx +0 -90
  166. package/src/components/layout/Sidebar/components/menus.tsx +0 -55
  167. package/src/components/layout/Sidebar/components/nav-projects.tsx +0 -88
  168. package/src/components/layout/Sidebar/components/nav-user.tsx +0 -114
  169. package/src/components/layout/Sidebar/components/team-switcher.tsx +0 -85
  170. package/src/components/layout/Sidebar/index.ts +0 -2
  171. package/src/components/layout/Sidebar/provider/index.tsx +0 -51
  172. package/src/components/layout/Tabs/Tabs.tsx +0 -51
  173. package/src/components/layout/Tabs/index.ts +0 -1
  174. package/src/components/layout/Tabs/tabs.stories.tsx +0 -57
  175. package/src/components/layout/index.ts +0 -6
  176. package/src/components/navigation/Breadcrumbs/Breadcrumbs.tsx +0 -66
  177. package/src/components/navigation/Breadcrumbs/index.ts +0 -2
  178. package/src/components/navigation/index.ts +0 -1
  179. package/src/components/ui/alert-dialog.tsx +0 -141
  180. package/src/components/ui/alert.tsx +0 -59
  181. package/src/components/ui/avatar.tsx +0 -50
  182. package/src/components/ui/badge.tsx +0 -40
  183. package/src/components/ui/breadcrumb.tsx +0 -115
  184. package/src/components/ui/button.tsx +0 -57
  185. package/src/components/ui/card.tsx +0 -83
  186. package/src/components/ui/checkbox.tsx +0 -34
  187. package/src/components/ui/collapsible.tsx +0 -11
  188. package/src/components/ui/command.tsx +0 -153
  189. package/src/components/ui/dialog.tsx +0 -124
  190. package/src/components/ui/drawer.tsx +0 -117
  191. package/src/components/ui/dropdown-menu.tsx +0 -201
  192. package/src/components/ui/form.tsx +0 -179
  193. package/src/components/ui/input.tsx +0 -24
  194. package/src/components/ui/label.tsx +0 -30
  195. package/src/components/ui/popover.tsx +0 -33
  196. package/src/components/ui/select.tsx +0 -161
  197. package/src/components/ui/separator.tsx +0 -31
  198. package/src/components/ui/sheet.tsx +0 -140
  199. package/src/components/ui/sidebar.tsx +0 -763
  200. package/src/components/ui/skeleton.tsx +0 -15
  201. package/src/components/ui/sonner.tsx +0 -31
  202. package/src/components/ui/spinner.tsx +0 -54
  203. package/src/components/ui/switch.tsx +0 -33
  204. package/src/components/ui/table.tsx +0 -120
  205. package/src/components/ui/tabs.tsx +0 -55
  206. package/src/components/ui/toast.tsx +0 -130
  207. package/src/components/ui/toaster.tsx +0 -35
  208. package/src/components/ui/tooltip.tsx +0 -32
  209. package/src/hooks/use-conditional-controller.tsx +0 -35
  210. package/src/hooks/use-mask.tsx +0 -116
  211. package/src/hooks/use-mobile.tsx +0 -19
  212. package/src/hooks/use-toast.ts +0 -191
  213. package/src/index.ts +0 -1
  214. package/src/introduction.mdx +0 -132
  215. package/src/lib/utils.ts +0 -6
  216. package/tailwind.config.ts +0 -83
  217. package/tsconfig.json +0 -27
@@ -0,0 +1,485 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { ColumnDef, SortingState, VisibilityState } from '@tanstack/react-table';
3
+ import * as class_variance_authority_types from 'class-variance-authority/types';
4
+ import * as React$1 from 'react';
5
+ import React__default, { PropsWithChildren } from 'react';
6
+ import { VariantProps } from 'class-variance-authority';
7
+ import * as AvatarPrimitive from '@radix-ui/react-avatar';
8
+ import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
9
+ import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
10
+ import { NumericFormatProps } from 'react-number-format';
11
+ import * as react_hook_form from 'react-hook-form';
12
+ import { FieldValues, FieldPath, ControllerProps } from 'react-hook-form';
13
+ export { useFormContext } from 'react-hook-form';
14
+ import * as _radix_ui_react_slot from '@radix-ui/react-slot';
15
+ import * as LabelPrimitive from '@radix-ui/react-label';
16
+ import * as SelectPrimitive from '@radix-ui/react-select';
17
+ import * as SwitchPrimitives from '@radix-ui/react-switch';
18
+ import * as DialogPrimitive from '@radix-ui/react-dialog';
19
+ import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
20
+ import * as vaul from 'vaul';
21
+ import { Drawer as Drawer$1 } from 'vaul';
22
+ import * as SeparatorPrimitive from '@radix-ui/react-separator';
23
+ import * as ToastPrimitives from '@radix-ui/react-toast';
24
+
25
+ interface DynamicTableProps<TData> {
26
+ data: TData[];
27
+ columns: ColumnDef<TData>[];
28
+ className?: string;
29
+ toolbar?: React.ReactNode;
30
+ pagination?: boolean;
31
+ sorting?: boolean;
32
+ columnVisibility?: boolean;
33
+ filters?: React.ReactNode;
34
+ rowsPerPage?: number[];
35
+ defaultSort?: SortingState;
36
+ defaultVisibility?: VisibilityState;
37
+ }
38
+
39
+ declare function DynamicTable<TData>({ data, columns, className, toolbar, pagination: showPagination, sorting: showSorting, columnVisibility: showColumnVisibility, filters, rowsPerPage, defaultSort, defaultVisibility, }: DynamicTableProps<TData>): react_jsx_runtime.JSX.Element;
40
+
41
+ interface Column<T> {
42
+ header: string;
43
+ accessorKey: keyof T;
44
+ cell?: (row: T) => React.ReactNode;
45
+ sortable?: boolean;
46
+ filterable?: boolean;
47
+ }
48
+ interface TableProps<T> {
49
+ data: T[];
50
+ columns: Column<T>[];
51
+ className?: string;
52
+ filters?: React.ReactNode;
53
+ onSort?: (field: keyof T, direction: "asc" | "desc") => void;
54
+ }
55
+
56
+ declare const badgeVariants: (props?: ({
57
+ variant?: "default" | "destructive" | "outline" | "secondary" | "success" | "warning" | null | undefined;
58
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
59
+ interface BadgeProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
60
+ }
61
+ declare function Badge({ className, variant, ...props }: BadgeProps): react_jsx_runtime.JSX.Element;
62
+
63
+ type IconProps = {
64
+ name: string;
65
+ size?: number;
66
+ className?: string;
67
+ color?: string;
68
+ };
69
+
70
+ declare const Icon: React__default.FC<IconProps>;
71
+
72
+ declare const Avatar: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
73
+ declare const AvatarImage: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarImageProps & React$1.RefAttributes<HTMLImageElement>, "ref"> & React$1.RefAttributes<HTMLImageElement>>;
74
+ declare const AvatarFallback: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarFallbackProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
75
+
76
+ declare const DropdownMenu: React$1.FC<DropdownMenuPrimitive.DropdownMenuProps>;
77
+ declare const DropdownMenuTrigger: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
78
+ declare const DropdownMenuGroup: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React$1.RefAttributes<HTMLDivElement>>;
79
+ declare const DropdownMenuPortal: React$1.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
80
+ declare const DropdownMenuSub: React$1.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
81
+ declare const DropdownMenuRadioGroup: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React$1.RefAttributes<HTMLDivElement>>;
82
+ declare const DropdownMenuSubTrigger: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
83
+ inset?: boolean;
84
+ } & React$1.RefAttributes<HTMLDivElement>>;
85
+ declare const DropdownMenuSubContent: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
86
+ declare const DropdownMenuContent: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
87
+ declare const DropdownMenuItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
88
+ inset?: boolean;
89
+ } & React$1.RefAttributes<HTMLDivElement>>;
90
+ declare const DropdownMenuCheckboxItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
91
+ declare const DropdownMenuRadioItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
92
+ declare const DropdownMenuLabel: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
93
+ inset?: boolean;
94
+ } & React$1.RefAttributes<HTMLDivElement>>;
95
+ declare const DropdownMenuSeparator: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
96
+ declare const DropdownMenuShortcut: {
97
+ ({ className, ...props }: React$1.HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
98
+ displayName: string;
99
+ };
100
+
101
+ interface DataPairListProps {
102
+ title?: string;
103
+ data: Record<string, string | number | undefined>;
104
+ labels?: Record<string, string>;
105
+ className?: string;
106
+ infoDirection?: "vertical" | "horizontal";
107
+ direction?: "vertical" | "horizontal";
108
+ withBorder?: boolean;
109
+ header?: React.ReactNode;
110
+ }
111
+
112
+ declare const DataPairList: ({ title, data, labels, className, infoDirection, direction, withBorder, header, }: DataPairListProps) => react_jsx_runtime.JSX.Element | null;
113
+
114
+ declare const textVariants: (props?: ({
115
+ variant?: "title" | "caption" | "display" | "subtitle" | "normal" | "muted" | null | undefined;
116
+ align?: "left" | "center" | "right" | "justify" | null | undefined;
117
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
118
+ type TextProps = VariantProps<typeof textVariants> & {
119
+ className?: string;
120
+ children: React.ReactNode;
121
+ };
122
+ declare function Text({ variant, align, className, children, }: TextProps): react_jsx_runtime.JSX.Element;
123
+
124
+ type CheckboxProps$1 = React$1.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>;
125
+
126
+ type CheckboxProps = CheckboxProps$1 & {
127
+ label: string;
128
+ error?: string;
129
+ withoutForm?: boolean;
130
+ };
131
+ declare const Checkbox: ({ label, error, withoutForm, ...props }: CheckboxProps) => react_jsx_runtime.JSX.Element;
132
+
133
+ type InputProps$1 = React$1.ComponentProps<"input">;
134
+
135
+ type InputBaseProps = InputProps$1 & {
136
+ onChangeText?: (text: string) => void;
137
+ mask?: string | string[];
138
+ "data-testid"?: string;
139
+ };
140
+
141
+ type InputProps = Omit<InputBaseProps, "children"> & {
142
+ component?: React.ReactNode;
143
+ error?: string;
144
+ withoutForm?: boolean;
145
+ label?: string;
146
+ leftIcon?: React.ReactNode;
147
+ rightIcon?: React.ReactNode;
148
+ helperText?: string;
149
+ floatingLabel?: boolean;
150
+ "data-testid"?: string;
151
+ extraElement?: React.ReactNode;
152
+ containerClassName?: string;
153
+ };
154
+
155
+ declare const Input: ({ "data-testid": dataTestId, withoutForm, extraElement, containerClassName, ...props }: InputProps) => react_jsx_runtime.JSX.Element;
156
+
157
+ type NumberInputProps = Omit<NumericFormatProps, "onChange"> & InputProps;
158
+ declare const NumberInput: (props: NumberInputProps) => react_jsx_runtime.JSX.Element;
159
+
160
+ type MaskInputProps = {
161
+ mask?: string;
162
+ } & InputProps;
163
+ declare const MaskInput: ({ "data-testid": dataTestId, withoutForm, extraElement, mask, ...props }: MaskInputProps) => react_jsx_runtime.JSX.Element;
164
+
165
+ type MultipleInputProps = MaskInputProps & {
166
+ data?: string[];
167
+ onAdd?: (data: string) => void;
168
+ onRemove?: (position: number) => void;
169
+ name: string;
170
+ defaultValue?: string;
171
+ "data-testid"?: string;
172
+ };
173
+ declare const MultipleInput: ({ data, onAdd, defaultValue, onRemove, withoutForm, ...props }: MultipleInputProps) => react_jsx_runtime.JSX.Element;
174
+
175
+ type MultipleMaskInputProps = MaskInputProps & {
176
+ data?: string[];
177
+ onChangeData?: (data: string[]) => void;
178
+ name: string;
179
+ };
180
+ declare const MultipleMaskInput: ({ data, ...props }: MultipleMaskInputProps) => react_jsx_runtime.JSX.Element;
181
+
182
+ declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: react_hook_form.FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React$1.JSX.Element;
183
+ declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => react_jsx_runtime.JSX.Element;
184
+ declare const useFormField: () => {
185
+ invalid: boolean;
186
+ isDirty: boolean;
187
+ isTouched: boolean;
188
+ isValidating: boolean;
189
+ error?: react_hook_form.FieldError;
190
+ id: string;
191
+ name: string;
192
+ formItemId: string;
193
+ formDescriptionId: string;
194
+ formMessageId: string;
195
+ };
196
+ declare const FormItem: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
197
+ declare const FormLabel: React$1.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React$1.RefAttributes<HTMLLabelElement>, "ref"> & React$1.RefAttributes<HTMLLabelElement>>;
198
+ declare const FormControl: React$1.ForwardRefExoticComponent<Omit<_radix_ui_react_slot.SlotProps & React$1.RefAttributes<HTMLElement>, "ref"> & React$1.RefAttributes<HTMLElement>>;
199
+ declare const FormDescription: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
200
+ declare const FormMessage: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
201
+
202
+ type SelectProps$1 = SelectPrimitive.SelectProps;
203
+
204
+ type SelectBaseProps = Omit<SelectProps$1, "onValueChange"> & {
205
+ options: {
206
+ value: string | number;
207
+ label: string;
208
+ }[];
209
+ placeholder?: string;
210
+ className?: string;
211
+ id?: string;
212
+ onChange?: (value: string) => void;
213
+ value?: string;
214
+ onChangeCallback?: (value: string) => void;
215
+ };
216
+
217
+ type SelectProps = SelectBaseProps & {
218
+ label?: string;
219
+ name?: string;
220
+ error?: string;
221
+ description?: string;
222
+ withoutForm?: boolean;
223
+ };
224
+ declare const Select: ({ name, label, description, error, className, withoutForm, options, placeholder, ...props }: SelectProps) => react_jsx_runtime.JSX.Element;
225
+
226
+ type MultiSelectBaseProps = {
227
+ options: {
228
+ label: string;
229
+ value: string;
230
+ }[];
231
+ selected?: string[];
232
+ onChange?: (values: string[]) => void;
233
+ placeholder?: string;
234
+ className?: string;
235
+ };
236
+
237
+ type MultiSelectProps = MultiSelectBaseProps & {
238
+ label?: string;
239
+ name?: string;
240
+ withoutForm?: boolean;
241
+ className?: string;
242
+ required?: boolean;
243
+ "data-testid"?: string;
244
+ };
245
+ declare function MultiSelect({ label, name, withoutForm, className, required, "data-testid": testId, ...props }: MultiSelectProps): react_jsx_runtime.JSX.Element;
246
+
247
+ type SwitchProps$1 = React$1.ComponentPropsWithoutRef<typeof SwitchPrimitives.Root>;
248
+
249
+ type SwitchProps = SwitchProps$1 & {
250
+ label?: string;
251
+ withoutForm?: boolean;
252
+ };
253
+ declare function Switch({ label, withoutForm, className, ...props }: SwitchProps): react_jsx_runtime.JSX.Element;
254
+
255
+ declare const buttonVariants: (props?: ({
256
+ variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
257
+ size?: "default" | "sm" | "lg" | "icon" | null | undefined;
258
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
259
+ interface ButtonProps$1 extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
260
+ asChild?: boolean;
261
+ }
262
+
263
+ type ButtonProps = ButtonProps$1 & {
264
+ loading?: boolean;
265
+ };
266
+ declare const Button: React$1.ForwardRefExoticComponent<ButtonProps$1 & {
267
+ loading?: boolean;
268
+ } & React$1.RefAttributes<HTMLButtonElement>>;
269
+
270
+ type DialogProps$1 = DialogPrimitive.DialogProps;
271
+
272
+ type DialogProps = DialogProps$1 & PropsWithChildren & {
273
+ className?: string;
274
+ title?: string;
275
+ description?: string;
276
+ footer?: () => React.ReactNode;
277
+ };
278
+ declare function Dialog({ title, description, className, children, footer, ...props }: DialogProps): react_jsx_runtime.JSX.Element;
279
+ type DialogWithFormProps = DialogProps & {
280
+ onSubmit: () => void;
281
+ };
282
+ declare const DialogWithForm: ({ title, description, className, children, footer, onSubmit, ...props }: DialogWithFormProps) => react_jsx_runtime.JSX.Element;
283
+
284
+ declare const Collapsible: React$1.ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleProps & React$1.RefAttributes<HTMLDivElement>>;
285
+ declare const CollapsibleTrigger: React$1.ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
286
+ declare const CollapsibleContent: React$1.ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleContentProps & React$1.RefAttributes<HTMLDivElement>>;
287
+
288
+ type StepsProps = {
289
+ data: {
290
+ label?: string;
291
+ id: number;
292
+ }[];
293
+ onClick?: (id: number) => void;
294
+ value?: number;
295
+ };
296
+ declare const Steps: ({ data, onClick, value }: StepsProps) => react_jsx_runtime.JSX.Element;
297
+
298
+ type AlertDialogProps = {
299
+ title: string;
300
+ description?: string;
301
+ children: React.ReactNode;
302
+ onConfirm?: () => void;
303
+ onCancel?: () => void;
304
+ };
305
+ declare const AlertDialog: ({ title, description, children, onConfirm, onCancel, }: AlertDialogProps) => react_jsx_runtime.JSX.Element;
306
+
307
+ type DrawerProps = React$1.ComponentProps<typeof Drawer$1.Root>;
308
+ declare const Drawer: {
309
+ ({ shouldScaleBackground, ...props }: DrawerProps): react_jsx_runtime.JSX.Element;
310
+ displayName: string;
311
+ };
312
+ declare const DrawerTrigger: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
313
+ declare const DrawerPortal: typeof vaul.Portal;
314
+ declare const DrawerClose: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React$1.RefAttributes<HTMLButtonElement>>;
315
+ declare const DrawerOverlay: React$1.ForwardRefExoticComponent<Omit<Omit<DialogPrimitive.DialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
316
+ declare const DrawerContent: React$1.ForwardRefExoticComponent<Omit<Omit<DialogPrimitive.DialogContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
317
+ declare const DrawerHeader: {
318
+ ({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
319
+ displayName: string;
320
+ };
321
+ declare const DrawerFooter: {
322
+ ({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
323
+ displayName: string;
324
+ };
325
+ declare const DrawerTitle: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
326
+ declare const DrawerDescription: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
327
+
328
+ type CustomDrawerProps = DrawerProps & {
329
+ className?: string;
330
+ };
331
+ declare function CustomDrawer({ className, ...props }: CustomDrawerProps): react_jsx_runtime.JSX.Element;
332
+
333
+ declare const Sheet$1: React$1.FC<DialogPrimitive.DialogProps>;
334
+
335
+ type SheetProps = typeof Sheet$1 & PropsWithChildren & {
336
+ side?: "left" | "right" | "top" | "bottom";
337
+ className?: string;
338
+ onOpenChange?: (open: boolean) => void;
339
+ open?: boolean;
340
+ };
341
+ declare function Sheet({ side, className, children, ...props }: SheetProps): react_jsx_runtime.JSX.Element;
342
+
343
+ type AppSidebarProps = {
344
+ footer?: () => React$1.ReactNode;
345
+ user?: {
346
+ email?: string;
347
+ name?: string;
348
+ };
349
+ enterprise?: {
350
+ name: string;
351
+ logo: () => React$1.ReactNode;
352
+ plan: string;
353
+ };
354
+ navbar: {
355
+ title: string;
356
+ url: string;
357
+ items: {
358
+ title: string;
359
+ url: string;
360
+ isActive?: boolean | undefined;
361
+ icon?: () => React$1.ReactNode;
362
+ }[];
363
+ }[];
364
+ };
365
+
366
+ interface SidebarProps extends AppSidebarProps {
367
+ children: React.ReactNode;
368
+ contentClassName?: string;
369
+ showFooter?: boolean;
370
+ defaultPath?: string;
371
+ defaultCollapsed?: boolean;
372
+ }
373
+ declare const Sidebar: ({ children, contentClassName, showFooter, defaultPath, defaultCollapsed, ...rest }: SidebarProps) => react_jsx_runtime.JSX.Element;
374
+
375
+ declare function NavUser({ user, logoutAction, }: {
376
+ user: {
377
+ name: string;
378
+ email: string;
379
+ avatar: string;
380
+ };
381
+ logoutAction?: () => void;
382
+ }): react_jsx_runtime.JSX.Element;
383
+
384
+ declare const Separator: React$1.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
385
+
386
+ type PageLayoutProps = PropsWithChildren & {
387
+ title: string;
388
+ subtitle?: string;
389
+ header?: React__default.ReactNode;
390
+ };
391
+ declare const PageLayout: ({ subtitle, title, children, header, }: PageLayoutProps) => react_jsx_runtime.JSX.Element;
392
+
393
+ interface TabsProps {
394
+ tabs: {
395
+ label: string;
396
+ content: React$1.ReactNode;
397
+ }[];
398
+ activeTabIndex?: number;
399
+ onTabChange?: (index: number) => void;
400
+ className?: string;
401
+ }
402
+ declare const Tabs: React$1.FC<TabsProps>;
403
+
404
+ declare const Breadcrumb: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & {
405
+ separator?: React$1.ReactNode;
406
+ } & React$1.RefAttributes<HTMLElement>>;
407
+ declare const BreadcrumbList: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>, "ref"> & React$1.RefAttributes<HTMLOListElement>>;
408
+ declare const BreadcrumbItem: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React$1.RefAttributes<HTMLLIElement>>;
409
+ declare const BreadcrumbLink: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref"> & {
410
+ asChild?: boolean;
411
+ } & React$1.RefAttributes<HTMLAnchorElement>>;
412
+ declare const BreadcrumbPage: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
413
+ declare const BreadcrumbSeparator: {
414
+ ({ children, className, ...props }: React$1.ComponentProps<"li">): react_jsx_runtime.JSX.Element;
415
+ displayName: string;
416
+ };
417
+ declare const BreadcrumbEllipsis: {
418
+ ({ className, ...props }: React$1.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
419
+ displayName: string;
420
+ };
421
+
422
+ declare const spinnerVariants: (props?: ({
423
+ show?: boolean | null | undefined;
424
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
425
+ declare const loaderVariants: (props?: ({
426
+ size?: "small" | "medium" | "large" | null | undefined;
427
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
428
+ interface SpinnerContentProps extends VariantProps<typeof spinnerVariants>, VariantProps<typeof loaderVariants> {
429
+ className?: string;
430
+ children?: React__default.ReactNode;
431
+ }
432
+ declare function Spinner({ size, show, children, className, }: SpinnerContentProps): react_jsx_runtime.JSX.Element;
433
+
434
+ declare function Toaster(): react_jsx_runtime.JSX.Element;
435
+
436
+ declare const Toast$1: React$1.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastProps & React$1.RefAttributes<HTMLLIElement>, "ref"> & VariantProps<(props?: ({
437
+ variant?: "default" | "destructive" | "success" | null | undefined;
438
+ } & class_variance_authority_types.ClassProp) | undefined) => string> & React$1.RefAttributes<HTMLLIElement>>;
439
+ declare const ToastAction: React$1.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastActionProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
440
+ type ToastProps = React$1.ComponentPropsWithoutRef<typeof Toast$1>;
441
+ type ToastActionElement = React$1.ReactElement<typeof ToastAction>;
442
+
443
+ type ToasterToast = ToastProps & {
444
+ id: string;
445
+ title?: React$1.ReactNode;
446
+ description?: React$1.ReactNode;
447
+ action?: ToastActionElement;
448
+ };
449
+ declare const actionTypes: {
450
+ readonly ADD_TOAST: "ADD_TOAST";
451
+ readonly UPDATE_TOAST: "UPDATE_TOAST";
452
+ readonly DISMISS_TOAST: "DISMISS_TOAST";
453
+ readonly REMOVE_TOAST: "REMOVE_TOAST";
454
+ };
455
+ type ActionType = typeof actionTypes;
456
+ type Action = {
457
+ type: ActionType["ADD_TOAST"];
458
+ toast: ToasterToast;
459
+ } | {
460
+ type: ActionType["UPDATE_TOAST"];
461
+ toast: Partial<ToasterToast>;
462
+ } | {
463
+ type: ActionType["DISMISS_TOAST"];
464
+ toastId?: ToasterToast["id"];
465
+ } | {
466
+ type: ActionType["REMOVE_TOAST"];
467
+ toastId?: ToasterToast["id"];
468
+ };
469
+ interface State {
470
+ toasts: ToasterToast[];
471
+ }
472
+ declare const reducer: (state: State, action: Action) => State;
473
+ type Toast = Omit<ToasterToast, "id">;
474
+ declare function toast({ ...props }: Toast): {
475
+ id: string;
476
+ dismiss: () => void;
477
+ update: (props: ToasterToast) => void;
478
+ };
479
+ declare function useToast(): {
480
+ toast: typeof toast;
481
+ dismiss: (toastId?: string) => void;
482
+ toasts: ToasterToast[];
483
+ };
484
+
485
+ export { AlertDialog, type AlertDialogProps, Avatar, AvatarFallback, AvatarImage, Badge, type BadgeProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonProps, Checkbox, type CheckboxProps, Collapsible, CollapsibleContent, CollapsibleTrigger, type Column, CustomDrawer, type CustomDrawerProps, DataPairList, type DataPairListProps, Dialog, type DialogProps, DialogWithForm, type DialogWithFormProps, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, type DrawerProps, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, DynamicTable, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, Icon, Input, MaskInput, type MaskInputProps, MultiSelect, MultipleInput, type MultipleInputProps, MultipleMaskInput, type MultipleMaskInputProps, NavUser, NumberInput, type NumberInputProps, PageLayout, type PageLayoutProps, Select, type SelectProps, Separator, Sheet, type SheetProps, Sidebar, Spinner, Steps, Switch, type SwitchProps, type TableProps, Tabs, Text, Toaster, badgeVariants, reducer, toast, useFormField, useToast };