@ya-accelerators/nextjs-framework 0.0.100 → 0.0.101

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 (287) hide show
  1. package/dist/constants.d.ts +4 -0
  2. package/dist/constants.js +4 -0
  3. package/dist/constants.js.map +1 -1
  4. package/dist/env.client.d.ts +2 -2
  5. package/dist/env.client.js +1 -1
  6. package/dist/env.client.js.map +1 -1
  7. package/dist/env.d.ts +2 -2
  8. package/dist/env.js +1 -5
  9. package/dist/env.js.map +1 -1
  10. package/dist/hooks/anchor/index.d.ts +13 -0
  11. package/dist/hooks/anchor/index.js +65 -0
  12. package/dist/hooks/anchor/index.js.map +1 -0
  13. package/dist/hooks/date/index.js.map +1 -1
  14. package/dist/hooks/loading/index.jsx +1 -1
  15. package/dist/hooks/loading/index.jsx.map +1 -1
  16. package/dist/hooks/localStorage/index.js +2 -9
  17. package/dist/hooks/localStorage/index.js.map +1 -1
  18. package/dist/hooks/modal/index.d.ts +1 -1
  19. package/dist/hooks/modal/index.jsx +1 -1
  20. package/dist/hooks/modal/index.jsx.map +1 -1
  21. package/dist/hooks/mounted/index.js +0 -4
  22. package/dist/hooks/mounted/index.js.map +1 -1
  23. package/dist/hooks/toast/index.d.ts +3 -1
  24. package/dist/hooks/toast/index.jsx +9 -9
  25. package/dist/hooks/toast/index.jsx.map +1 -1
  26. package/dist/hooks/uploads/index.d.ts +1 -1
  27. package/dist/hooks/uploads/index.js +0 -3
  28. package/dist/hooks/uploads/index.js.map +1 -1
  29. package/dist/i18n/get-message-fallback.d.ts +0 -1
  30. package/dist/i18n/get-message-fallback.js +0 -1
  31. package/dist/i18n/get-message-fallback.js.map +1 -1
  32. package/dist/i18n/index.js +1 -4
  33. package/dist/i18n/index.js.map +1 -1
  34. package/dist/i18n/strings/ja-JP.json +3 -3
  35. package/dist/lib/cookie/index.d.ts +1 -1
  36. package/dist/lib/cookie/index.js +0 -1
  37. package/dist/lib/cookie/index.js.map +1 -1
  38. package/dist/lib/next-auth/index.js +0 -11
  39. package/dist/lib/next-auth/index.js.map +1 -1
  40. package/dist/lib/trpc/index.d.ts +3 -2
  41. package/dist/lib/trpc/index.js +39 -11
  42. package/dist/lib/trpc/index.js.map +1 -1
  43. package/dist/lib/uploads/index.js +0 -17
  44. package/dist/lib/uploads/index.js.map +1 -1
  45. package/dist/logger/index.d.ts +2 -1
  46. package/dist/logger/index.js +0 -6
  47. package/dist/logger/index.js.map +1 -1
  48. package/dist/styles/globals.css +77 -0
  49. package/dist/styles/tailwind.config.d.ts +362 -359
  50. package/dist/styles/tailwind.config.js +22 -20
  51. package/dist/styles/tailwind.config.js.map +1 -1
  52. package/dist/styles/tailwind.config.ts +25 -21
  53. package/dist/tsconfig.tsbuildinfo +1 -1
  54. package/dist/ui/component/button/base.d.ts +4 -4
  55. package/dist/ui/component/button/base.jsx +2 -2
  56. package/dist/ui/component/button/base.jsx.map +1 -1
  57. package/dist/ui/component/button/colored/index.d.ts +2 -2
  58. package/dist/ui/component/button/image/index.d.ts +2 -2
  59. package/dist/ui/component/button/index.d.ts +4 -9
  60. package/dist/ui/component/button/index.jsx +0 -5
  61. package/dist/ui/component/button/index.jsx.map +1 -1
  62. package/dist/ui/component/card/index.jsx +1 -1
  63. package/dist/ui/component/card/index.jsx.map +1 -1
  64. package/dist/ui/component/icon/index.d.ts +2 -2
  65. package/dist/ui/component/index.d.ts +70 -78
  66. package/dist/ui/component/index.js +4 -4
  67. package/dist/ui/component/index.js.map +1 -1
  68. package/dist/ui/component/progressBar/index.d.ts +9 -0
  69. package/dist/ui/component/progressBar/index.jsx +15 -0
  70. package/dist/ui/component/progressBar/index.jsx.map +1 -0
  71. package/dist/ui/component/skeleton/index.d.ts +10 -0
  72. package/dist/ui/component/skeleton/index.jsx +35 -0
  73. package/dist/ui/component/skeleton/index.jsx.map +1 -0
  74. package/dist/ui/component/typography/H1/index.d.ts +2 -3
  75. package/dist/ui/component/typography/H1/index.jsx +2 -2
  76. package/dist/ui/component/typography/H1/index.jsx.map +1 -1
  77. package/dist/ui/component/typography/H2/index.d.ts +2 -3
  78. package/dist/ui/component/typography/H2/index.jsx +2 -2
  79. package/dist/ui/component/typography/H2/index.jsx.map +1 -1
  80. package/dist/ui/component/typography/H3/index.d.ts +2 -3
  81. package/dist/ui/component/typography/H3/index.jsx +2 -2
  82. package/dist/ui/component/typography/H3/index.jsx.map +1 -1
  83. package/dist/ui/component/typography/H4/index.d.ts +2 -3
  84. package/dist/ui/component/typography/H4/index.jsx +2 -2
  85. package/dist/ui/component/typography/H4/index.jsx.map +1 -1
  86. package/dist/ui/component/typography/H5/index.d.ts +2 -3
  87. package/dist/ui/component/typography/H5/index.jsx +2 -2
  88. package/dist/ui/component/typography/H5/index.jsx.map +1 -1
  89. package/dist/ui/component/typography/H6/index.d.ts +2 -3
  90. package/dist/ui/component/typography/H6/index.jsx +2 -2
  91. package/dist/ui/component/typography/H6/index.jsx.map +1 -1
  92. package/dist/ui/component/typography/Label/index.d.ts +2 -3
  93. package/dist/ui/component/typography/Label/index.jsx +2 -2
  94. package/dist/ui/component/typography/Label/index.jsx.map +1 -1
  95. package/dist/ui/component/typography/LinkText/index.d.ts +2 -3
  96. package/dist/ui/component/typography/LinkText/index.jsx +2 -2
  97. package/dist/ui/component/typography/LinkText/index.jsx.map +1 -1
  98. package/dist/ui/component/typography/P/index.d.ts +2 -3
  99. package/dist/ui/component/typography/P/index.jsx +2 -2
  100. package/dist/ui/component/typography/P/index.jsx.map +1 -1
  101. package/dist/ui/component/typography/Pre/index.d.ts +2 -3
  102. package/dist/ui/component/typography/Pre/index.jsx +2 -2
  103. package/dist/ui/component/typography/Pre/index.jsx.map +1 -1
  104. package/dist/ui/component/typography/Span/index.d.ts +2 -3
  105. package/dist/ui/component/typography/Span/index.jsx +2 -2
  106. package/dist/ui/component/typography/Span/index.jsx.map +1 -1
  107. package/dist/ui/component/typography/index.d.ts +24 -35
  108. package/dist/ui/composite/accordion/index.d.ts +12 -0
  109. package/dist/ui/composite/accordion/index.jsx +29 -0
  110. package/dist/ui/composite/accordion/index.jsx.map +1 -0
  111. package/dist/ui/composite/alert/index.d.ts +13 -0
  112. package/dist/ui/composite/alert/index.jsx +35 -0
  113. package/dist/ui/composite/alert/index.jsx.map +1 -0
  114. package/dist/ui/composite/avatar/index.d.ts +9 -0
  115. package/dist/ui/composite/avatar/index.jsx +25 -0
  116. package/dist/ui/composite/avatar/index.jsx.map +1 -0
  117. package/dist/ui/composite/dropdown/index.d.ts +2 -2
  118. package/dist/ui/composite/dropdown/index.jsx +0 -1
  119. package/dist/ui/composite/dropdown/index.jsx.map +1 -1
  120. package/dist/ui/composite/emptyState/index.d.ts +9 -0
  121. package/dist/ui/composite/emptyState/index.jsx +18 -0
  122. package/dist/ui/composite/emptyState/index.jsx.map +1 -0
  123. package/dist/ui/{layout → composite}/form/index.d.ts +4 -5
  124. package/dist/ui/{layout → composite}/form/index.jsx +9 -43
  125. package/dist/ui/composite/form/index.jsx.map +1 -0
  126. package/dist/ui/{layout → composite}/form/renderItem.d.ts +1 -2
  127. package/dist/ui/{layout → composite}/form/renderItem.jsx +25 -30
  128. package/dist/ui/composite/form/renderItem.jsx.map +1 -0
  129. package/dist/ui/composite/index.d.ts +475 -224
  130. package/dist/ui/composite/index.js +30 -0
  131. package/dist/ui/composite/index.js.map +1 -1
  132. package/dist/ui/composite/input/attachment/index.jsx +5 -8
  133. package/dist/ui/composite/input/attachment/index.jsx.map +1 -1
  134. package/dist/ui/composite/input/checkbox/index.d.ts +2 -2
  135. package/dist/ui/composite/input/checkbox/index.jsx +2 -2
  136. package/dist/ui/composite/input/checkbox/index.jsx.map +1 -1
  137. package/dist/ui/composite/input/datePicker/index.d.ts +1 -1
  138. package/dist/ui/composite/input/datePicker/index.jsx +5 -16
  139. package/dist/ui/composite/input/datePicker/index.jsx.map +1 -1
  140. package/dist/ui/composite/input/dateRange/index.d.ts +1 -1
  141. package/dist/ui/composite/input/dateRange/index.jsx +1 -3
  142. package/dist/ui/composite/input/dateRange/index.jsx.map +1 -1
  143. package/dist/ui/composite/input/dateTimePicker/index.jsx +1 -8
  144. package/dist/ui/composite/input/dateTimePicker/index.jsx.map +1 -1
  145. package/dist/ui/composite/input/dateTimeRange/index.d.ts +1 -1
  146. package/dist/ui/composite/input/dateTimeRange/index.jsx +2 -5
  147. package/dist/ui/composite/input/dateTimeRange/index.jsx.map +1 -1
  148. package/dist/ui/composite/input/file/index.jsx +13 -9
  149. package/dist/ui/composite/input/file/index.jsx.map +1 -1
  150. package/dist/ui/composite/input/index.d.ts +129 -119
  151. package/dist/ui/composite/input/index.js +2 -0
  152. package/dist/ui/composite/input/index.js.map +1 -1
  153. package/dist/ui/composite/input/list/index.jsx +2 -10
  154. package/dist/ui/composite/input/list/index.jsx.map +1 -1
  155. package/dist/ui/composite/input/radio/index.d.ts +2 -2
  156. package/dist/ui/composite/input/radio/index.jsx +3 -3
  157. package/dist/ui/composite/input/radio/index.jsx.map +1 -1
  158. package/dist/ui/composite/input/select/GroupHeading/index.jsx +1 -1
  159. package/dist/ui/composite/input/select/GroupHeading/index.jsx.map +1 -1
  160. package/dist/ui/composite/input/select/Input/index.jsx +1 -4
  161. package/dist/ui/composite/input/select/Input/index.jsx.map +1 -1
  162. package/dist/ui/composite/input/select/Option/index.jsx +0 -1
  163. package/dist/ui/composite/input/select/Option/index.jsx.map +1 -1
  164. package/dist/ui/composite/input/select/Placeholder/index.jsx +1 -1
  165. package/dist/ui/composite/input/select/Placeholder/index.jsx.map +1 -1
  166. package/dist/ui/composite/input/select/SelectContainer/index.jsx +1 -1
  167. package/dist/ui/composite/input/select/SelectContainer/index.jsx.map +1 -1
  168. package/dist/ui/composite/input/select/SingleValue/index.jsx +1 -1
  169. package/dist/ui/composite/input/select/SingleValue/index.jsx.map +1 -1
  170. package/dist/ui/composite/input/select/index.jsx +0 -2
  171. package/dist/ui/composite/input/select/index.jsx.map +1 -1
  172. package/dist/ui/composite/input/switch/index.d.ts +11 -0
  173. package/dist/ui/composite/input/switch/index.jsx +21 -0
  174. package/dist/ui/composite/input/switch/index.jsx.map +1 -0
  175. package/dist/ui/composite/input/text/index.d.ts +1 -1
  176. package/dist/ui/composite/input/text/index.jsx +1 -1
  177. package/dist/ui/composite/input/text/index.jsx.map +1 -1
  178. package/dist/ui/composite/input/textarea/index.d.ts +1 -1
  179. package/dist/ui/composite/input/textarea/index.jsx +1 -1
  180. package/dist/ui/composite/input/textarea/index.jsx.map +1 -1
  181. package/dist/ui/composite/input/timePicker/index.d.ts +1 -1
  182. package/dist/ui/composite/input/timeRange/index.d.ts +1 -1
  183. package/dist/ui/composite/input/timeRange/index.jsx +1 -1
  184. package/dist/ui/composite/input/timeRange/index.jsx.map +1 -1
  185. package/dist/ui/composite/input/weekDaysSelector/index.d.ts +1 -1
  186. package/dist/ui/composite/input/weekdayPicker/index.d.ts +1 -1
  187. package/dist/ui/composite/input/weekdayPicker/index.jsx +1 -1
  188. package/dist/ui/composite/input/weekdayPicker/index.jsx.map +1 -1
  189. package/dist/ui/composite/label/index.d.ts +3 -2
  190. package/dist/ui/composite/label/index.jsx +4 -4
  191. package/dist/ui/composite/label/index.jsx.map +1 -1
  192. package/dist/ui/composite/loading/index.jsx.map +1 -0
  193. package/dist/ui/composite/markdown/codeBlock.d.ts +4 -0
  194. package/dist/ui/composite/markdown/codeBlock.jsx +67 -0
  195. package/dist/ui/composite/markdown/codeBlock.jsx.map +1 -0
  196. package/dist/ui/composite/markdown/index.d.ts +3 -0
  197. package/dist/ui/composite/markdown/index.jsx +65 -0
  198. package/dist/ui/composite/markdown/index.jsx.map +1 -0
  199. package/dist/ui/{component/modal/index.d.ts → composite/modal/card.d.ts} +1 -1
  200. package/dist/ui/composite/modal/card.jsx +13 -0
  201. package/dist/ui/composite/modal/card.jsx.map +1 -0
  202. package/dist/ui/composite/modal/index.d.ts +2 -0
  203. package/dist/ui/composite/modal/index.jsx +3 -0
  204. package/dist/ui/composite/modal/index.jsx.map +1 -0
  205. package/dist/ui/{layout/modal/index.jsx → composite/modal/overlay.jsx} +4 -10
  206. package/dist/ui/composite/modal/overlay.jsx.map +1 -0
  207. package/dist/ui/{layout → composite}/object/index.d.ts +2 -3
  208. package/dist/ui/{layout → composite}/object/index.jsx +50 -24
  209. package/dist/ui/composite/object/index.jsx.map +1 -0
  210. package/dist/ui/composite/pageTitle/index.jsx +4 -2
  211. package/dist/ui/composite/pageTitle/index.jsx.map +1 -1
  212. package/dist/ui/composite/popover/index.d.ts +12 -0
  213. package/dist/ui/composite/popover/index.jsx +48 -0
  214. package/dist/ui/composite/popover/index.jsx.map +1 -0
  215. package/dist/ui/composite/stepper/index.d.ts +8 -0
  216. package/dist/ui/composite/stepper/index.jsx +34 -0
  217. package/dist/ui/composite/stepper/index.jsx.map +1 -0
  218. package/dist/ui/composite/table/features.d.ts +15 -0
  219. package/dist/ui/composite/table/features.js +10 -0
  220. package/dist/ui/composite/table/features.js.map +1 -0
  221. package/dist/ui/{layout → composite}/table/index.d.ts +4 -9
  222. package/dist/ui/{layout → composite}/table/index.jsx +10 -23
  223. package/dist/ui/composite/table/index.jsx.map +1 -0
  224. package/dist/ui/composite/toast/index.d.ts +18 -0
  225. package/dist/ui/{layout → composite}/toast/index.jsx +11 -4
  226. package/dist/ui/composite/toast/index.jsx.map +1 -0
  227. package/dist/ui/composite/tooltip/index.d.ts +11 -0
  228. package/dist/ui/composite/tooltip/index.jsx +29 -0
  229. package/dist/ui/composite/tooltip/index.jsx.map +1 -0
  230. package/dist/ui/functional/index.d.ts +5 -5
  231. package/dist/ui/functional/signInForm/index.jsx +1 -1
  232. package/dist/ui/functional/signInForm/index.jsx.map +1 -1
  233. package/dist/ui/layout/app/component.jsx +2 -2
  234. package/dist/ui/layout/app/component.jsx.map +1 -1
  235. package/dist/ui/layout/drawer/index.d.ts +11 -0
  236. package/dist/ui/layout/drawer/index.jsx +73 -0
  237. package/dist/ui/layout/drawer/index.jsx.map +1 -0
  238. package/dist/ui/layout/index.d.ts +38 -351
  239. package/dist/ui/layout/index.js +2 -12
  240. package/dist/ui/layout/index.js.map +1 -1
  241. package/dist/ui/layout/root/index.d.ts +1 -1
  242. package/dist/ui/layout/root/index.jsx +1 -2
  243. package/dist/ui/layout/root/index.jsx.map +1 -1
  244. package/dist/ui/layout/root/provider/index.jsx +0 -4
  245. package/dist/ui/layout/root/provider/index.jsx.map +1 -1
  246. package/dist/ui/layout/tab/component.jsx +1 -1
  247. package/dist/ui/layout/tab/component.jsx.map +1 -1
  248. package/dist/ui/layout/tab/content/index.d.ts +1 -1
  249. package/dist/ui/theme/border/index.d.ts +15 -15
  250. package/dist/ui/theme/border/index.js.map +1 -1
  251. package/dist/ui/theme/color/index.d.ts +24 -23
  252. package/dist/ui/theme/color/index.js +14 -24
  253. package/dist/ui/theme/color/index.js.map +1 -1
  254. package/dist/ui/theme/rounded/index.d.ts +6 -5
  255. package/dist/ui/theme/rounded/index.js +2 -0
  256. package/dist/ui/theme/rounded/index.js.map +1 -1
  257. package/dist/ui/theme/size/index.d.ts +8 -8
  258. package/dist/ui/theme/size/index.js +8 -8
  259. package/dist/ui/theme/size/index.js.map +1 -1
  260. package/dist/ui/types/index.d.ts +16 -2
  261. package/dist/ui/types/index.js +0 -1
  262. package/dist/ui/types/index.js.map +1 -1
  263. package/dist/util/date/impl.js +0 -2
  264. package/dist/util/date/impl.js.map +1 -1
  265. package/dist/util/date/index.d.ts +7 -7
  266. package/dist/util/index.js +7 -19
  267. package/dist/util/index.js.map +1 -1
  268. package/package.json +7 -6
  269. package/dist/ui/component/button/text/index.d.ts +0 -11
  270. package/dist/ui/component/button/text/index.jsx +0 -7
  271. package/dist/ui/component/button/text/index.jsx.map +0 -1
  272. package/dist/ui/component/markdown/index.d.ts +0 -4
  273. package/dist/ui/component/markdown/index.jsx +0 -61
  274. package/dist/ui/component/markdown/index.jsx.map +0 -1
  275. package/dist/ui/component/modal/index.jsx +0 -12
  276. package/dist/ui/component/modal/index.jsx.map +0 -1
  277. package/dist/ui/layout/form/index.jsx.map +0 -1
  278. package/dist/ui/layout/form/renderItem.jsx.map +0 -1
  279. package/dist/ui/layout/loading/index.jsx.map +0 -1
  280. package/dist/ui/layout/modal/index.jsx.map +0 -1
  281. package/dist/ui/layout/object/index.jsx.map +0 -1
  282. package/dist/ui/layout/table/index.jsx.map +0 -1
  283. package/dist/ui/layout/toast/index.d.ts +0 -7
  284. package/dist/ui/layout/toast/index.jsx.map +0 -1
  285. /package/dist/ui/{layout → composite}/loading/index.d.ts +0 -0
  286. /package/dist/ui/{layout → composite}/loading/index.jsx +0 -0
  287. /package/dist/ui/{layout/modal/index.d.ts → composite/modal/overlay.d.ts} +0 -0
@@ -1,80 +1,258 @@
1
1
  import * as button from './button';
2
+ import * as form from './form';
3
+ import * as table from './table';
4
+ import * as toast from './toast';
2
5
  export declare const Composite: {
3
- PageTitle: ({ routes, title, actions, back, keepRoutesSpace, showTitle, className, }: {
4
- routes?: {
5
- label: string;
6
- href: string;
7
- }[];
8
- title: string;
9
- actions?: {
10
- path: string;
11
- button?: import("react").ComponentProps<typeof button.Button>;
6
+ LoadingOverlay: (props: import("react").ComponentProps<typeof import("../component/loading").LoadingSpinner>) => import("react").JSX.Element;
7
+ ModalCard: ({ showCloseButton, onClickClose, id, className, children, ...props }: {
8
+ showCloseButton?: boolean;
9
+ onClickClose?: (id?: string) => void;
10
+ id?: string;
11
+ } & import("react").ComponentProps<typeof import("../component/card").Card>) => import("react").JSX.Element;
12
+ ModalOverlay: ({ items, onDismiss, }: {
13
+ items: {
14
+ id: string;
15
+ rounded?: import("..").Rounded;
16
+ title?: string;
17
+ message?: string;
12
18
  content?: import("react").ReactNode;
19
+ actions?: {
20
+ default?: boolean;
21
+ label: string;
22
+ color?: import("..").ColorTypes;
23
+ onClick?: () => void;
24
+ }[];
25
+ showCloseButton?: boolean;
26
+ dismissOnBarrierClick?: boolean;
13
27
  }[];
14
- back?: boolean;
15
- keepRoutesSpace?: boolean;
16
- showTitle?: boolean;
28
+ onDismiss: (id?: string) => void;
29
+ }) => import("react").JSX.Element | null;
30
+ ToastPosition: {
31
+ readonly topLeft: 'topLeft';
32
+ readonly topCenter: 'topCenter';
33
+ readonly topRight: 'topRight';
34
+ readonly bottomLeft: 'bottomLeft';
35
+ readonly bottomCenter: 'bottomCenter';
36
+ readonly bottomRight: 'bottomRight';
37
+ };
38
+ Toast: ({ color, position, onClickClose, body, ...props }: {
39
+ color: import("..").ColorTypes;
40
+ position?: toast.ToastPosition;
41
+ onClickClose: () => void;
42
+ body: string;
43
+ } & Omit<import("react").ComponentProps<typeof import("../component/card").Card>, 'children'>) => import("react").JSX.Element;
44
+ Accordion: ({ items, multiple, rounded, className, }: {
45
+ items: {
46
+ label: string;
47
+ content: import("react").ReactNode;
48
+ defaultOpen?: boolean;
49
+ }[];
50
+ multiple?: boolean;
51
+ rounded?: import("..").Rounded;
52
+ className?: string;
53
+ }) => import("react").JSX.Element;
54
+ Alert: ({ color, title, icon, rounded, actions, onClickClose, className, body, }: {
55
+ color?: import("..").ColorTypes;
56
+ title?: string;
57
+ icon?: import("..").IconType;
58
+ rounded?: import("..").Rounded;
59
+ actions?: import("react").ReactNode;
60
+ onClickClose?: () => void;
17
61
  className?: string;
62
+ body?: string;
18
63
  }) => import("react").JSX.Element;
19
- Label: ({ color, size, rounded, border, label, icon, className, ...props }: {
64
+ Avatar: ({ src, name, color, size, rounded, className, }: {
65
+ src?: string;
66
+ name?: string;
67
+ color?: import("..").ColorTypes;
68
+ size?: import("..").ControlSize;
69
+ rounded?: import("..").Rounded;
70
+ className?: string;
71
+ }) => import("react").JSX.Element;
72
+ Button: (buttonProps: ((({
73
+ variant: 'image';
74
+ } & Omit<{
75
+ size?: import("..").ControlSize;
76
+ rounded?: import("..").Rounded;
77
+ border?: import("..").BorderProps;
78
+ label?: string;
79
+ icon?: import("..").IconType;
80
+ image?: Omit<import("react").ComponentProps<typeof import("next/image").default>, 'alt' | 'fill' | 'width' | 'height'> & {
81
+ square?: boolean;
82
+ };
83
+ } & Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "children" | "color">, "icon">) | ({
84
+ variant: 'colored';
85
+ } & {
20
86
  color: import("..").ColorTypes;
87
+ container?: boolean;
88
+ } & Omit<{
89
+ size?: import("..").ControlSize;
90
+ rounded?: import("..").Rounded;
91
+ border?: import("..").BorderProps;
92
+ label?: string;
93
+ icon?: import("..").IconType;
94
+ image?: Omit<import("react").ComponentProps<typeof import("next/image").default>, 'alt' | 'fill' | 'width' | 'height'> & {
95
+ square?: boolean;
96
+ };
97
+ } & Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "children" | "color">, "image">)) & {
98
+ action?: import("../..").ModalProps;
99
+ }) | ({
100
+ variant: 'image';
101
+ } & Omit<{
21
102
  size?: import("..").ControlSize;
22
103
  rounded?: import("..").Rounded;
23
104
  border?: import("..").BorderProps;
24
105
  label?: string;
25
106
  icon?: import("..").IconType;
26
- } & Omit<import("react").ComponentProps<"label">, "color">) => import("react").JSX.Element;
107
+ image?: Omit<import("react").ComponentProps<typeof import("next/image").default>, 'alt' | 'fill' | 'width' | 'height'> & {
108
+ square?: boolean;
109
+ };
110
+ disabled?: boolean;
111
+ } & Omit<Omit<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, keyof import("next/link").LinkProps<any>> & import("next/link").LinkProps<any> & {
112
+ children?: React.ReactNode | undefined;
113
+ } & import("react").RefAttributes<HTMLAnchorElement>, "children" | "color" | "disabled" | "onClick">, "icon">) | ({
114
+ variant: 'colored';
115
+ } & {
116
+ color: import("..").ColorTypes;
117
+ container?: boolean;
118
+ } & Omit<{
119
+ size?: import("..").ControlSize;
120
+ rounded?: import("..").Rounded;
121
+ border?: import("..").BorderProps;
122
+ label?: string;
123
+ icon?: import("..").IconType;
124
+ image?: Omit<import("react").ComponentProps<typeof import("next/image").default>, 'alt' | 'fill' | 'width' | 'height'> & {
125
+ square?: boolean;
126
+ };
127
+ disabled?: boolean;
128
+ } & Omit<Omit<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, keyof import("next/link").LinkProps<any>> & import("next/link").LinkProps<any> & {
129
+ children?: React.ReactNode | undefined;
130
+ } & import("react").RefAttributes<HTMLAnchorElement>, "children" | "color" | "disabled" | "onClick">, "image">)) => import("react").JSX.Element;
131
+ DropDown: ({ button, content, position, menuRounded, menuClassName, disabled, }: {
132
+ button: import("react").ComponentProps<typeof import("../component/button").Button>;
133
+ content: import("react").ReactNode | (import("react").ComponentProps<typeof import("./button").Button> | 'divider')[];
134
+ position: 'left' | 'center' | 'right';
135
+ menuRounded?: import("..").Rounded;
136
+ menuClassName?: string;
137
+ disabled?: boolean;
138
+ }) => import("react").JSX.Element | null;
139
+ EmptyState: ({ icon, title, message, action, className, }: {
140
+ icon?: import("..").IconType;
141
+ title: string;
142
+ message?: string;
143
+ action?: import("react").ReactNode;
144
+ className?: string;
145
+ }) => import("react").JSX.Element;
146
+ Form: <T, U>({ singlePage, name, title, actions, items, uploadPath, submitButton, cancelButton, disabled, className, rounded, }: {
147
+ singlePage?: boolean;
148
+ name: string;
149
+ title?: string;
150
+ actions: {
151
+ validate?: (data: T) => Promise<void>;
152
+ confirm?: Omit<import("../..").ModalProps, 'rounded' | 'actions'>;
153
+ submit: (data: T) => Promise<U>;
154
+ onSuccess?: {
155
+ toast?: string;
156
+ } & ({
157
+ callback?: ((result?: U | undefined) => void) | undefined;
158
+ } | {
159
+ replace: string;
160
+ } | {
161
+ back: true;
162
+ });
163
+ };
164
+ items: ((false | import("..").FormItem | undefined)[] | (false | import("..").FormItem | undefined)[][] | false | undefined)[];
165
+ uploadPath?: string;
166
+ submitButton?: import("react").ComponentProps<typeof import("../component/button").Button>;
167
+ cancelButton?: import("react").ComponentProps<typeof import("../component/button").Button>;
168
+ disabled?: boolean;
169
+ className?: string;
170
+ rounded?: import("..").Rounded;
171
+ }) => import("react").JSX.Element;
172
+ PagedForm: <T, U>({ rounded, title, actions, submitButton, cancelButton, disabled, className, pages, }: {
173
+ rounded?: import("..").Rounded;
174
+ title?: string;
175
+ actions: {
176
+ submit: (data: T) => Promise<U>;
177
+ confirm?: Omit<import("../..").ModalProps, 'rounded' | 'actions'>;
178
+ onSuccess?: {
179
+ toast?: string;
180
+ } & ({
181
+ callback?: ((result?: U | undefined) => void) | undefined;
182
+ } | {
183
+ replace: string;
184
+ } | {
185
+ back: true;
186
+ });
187
+ };
188
+ submitButton: import("react").ComponentProps<typeof import("../component/button").Button>;
189
+ cancelButton: import("react").ComponentProps<typeof import("../component/button").Button>;
190
+ disabled?: boolean;
191
+ className?: string;
192
+ pages: {
193
+ name: string;
194
+ title?: string;
195
+ items: Pick<import("react").ComponentProps<typeof form.Form>, 'items'>['items'];
196
+ validate?: (data: never) => Promise<void>;
197
+ }[];
198
+ }) => import("react").JSX.Element;
199
+ ActionForm: <T, U, Items extends readonly {
200
+ name: string;
201
+ }[]>({ items, layout, overrides, additionals, submitButton, ...props }: {
202
+ items: Items;
203
+ layout?: Items[number]["name"][][] | undefined;
204
+ overrides?: { [K in Items[number]["name"]]?: import("..").FormItem[][] | import("..").FormItem[] | (Partial<Omit<import("..").FormElement, "name" | "required">> | Partial<Omit<import("..").FormInputHidden, "name" | "required">> | Partial<Omit<import("..").FormInputCheckbox, "name" | "required">> | Partial<Omit<import("..").FormInputDate, "name" | "required">> | Partial<Omit<import("..").FormInputDateRange, "name" | "required">> | Partial<Omit<import("..").FormInputDateTime, "name" | "required">> | Partial<Omit<import("..").FormInputDateTimeRange, "name" | "required">> | Partial<Omit<import("..").FormInputFile, "name" | "required">> | Partial<Omit<import("..").FormInputList, "name" | "required">> | Partial<Omit<import("..").FormInputRadio, "name" | "required">> | Partial<Omit<import("..").FormInputSelect, "name" | "required">> | Partial<Omit<import("..").FormInputText, "name" | "required">> | Partial<Omit<import("..").FormInputTextArea, "name" | "required">> | Partial<Omit<import("..").FormInputTime, "name" | "required">> | Partial<Omit<import("..").FormInputTimeRange, "name" | "required">> | Partial<Omit<import("..").FormInputWeekday, "name" | "required">> | Partial<Omit<import("..").FormInputWeekdays, "name" | "required">>) | undefined; } | undefined;
205
+ additionals?: import("..").FormItem[] | import("..").FormItem[][] | ((false | import("..").FormItem | undefined)[] | (false | import("..").FormItem | undefined)[][] | false | undefined)[];
206
+ submitButton?: import("react").ComponentProps<typeof import("../component/button").Button>;
207
+ } & Omit<{
208
+ singlePage?: boolean;
209
+ name: string;
210
+ title?: string;
211
+ actions: {
212
+ validate?: ((data: T) => Promise<void>) | undefined;
213
+ confirm?: Omit<import("../..").ModalProps, 'rounded' | 'actions'>;
214
+ submit: (data: T) => Promise<U>;
215
+ onSuccess?: ({
216
+ toast?: string;
217
+ } & ({
218
+ callback?: ((result?: U | undefined) => void) | undefined;
219
+ } | {
220
+ replace: string;
221
+ } | {
222
+ back: true;
223
+ })) | undefined;
224
+ };
225
+ items: ((false | import("..").FormItem | undefined)[] | (false | import("..").FormItem | undefined)[][] | false | undefined)[];
226
+ uploadPath?: string;
227
+ submitButton?: import("react").ComponentProps<typeof import("../component/button").Button>;
228
+ cancelButton?: import("react").ComponentProps<typeof import("../component/button").Button>;
229
+ disabled?: boolean;
230
+ className?: string;
231
+ rounded?: import("..").Rounded;
232
+ }, "items">) => import("react").JSX.Element;
27
233
  Input: {
28
- WeekDaysSelector: ({ name, short, defaultValue, onChange, disabled, className, error, }: {
234
+ Checkbox: ({ orientation, name, options, defaultValue, onChange, disabled, error, }: {
235
+ orientation: 'horizontal' | 'vertical';
29
236
  name: string;
30
- short?: boolean;
31
- defaultValue?: import("../..").Weekday | import("../..").Weekday[] | null;
32
- onChange?: (value: import("../..").Weekday | import("../..").Weekday[]) => void;
237
+ options: {
238
+ value: string;
239
+ label: string;
240
+ disabled?: boolean;
241
+ }[];
242
+ defaultValue?: string[];
243
+ onChange?: (values: string[]) => void;
33
244
  disabled?: boolean;
34
- className?: string;
35
245
  error?: boolean;
36
246
  }) => import("react").JSX.Element;
37
- WeekdayPicker: ({ name, short, defaultValue, onChange, disabled, className, required, multiSelect, error, ...props }: {
247
+ CheckboxItem: ({ name, checked, onClick, value, label, disabled, error, }: {
38
248
  name: string;
39
- short?: boolean;
40
- defaultValue?: import("../..").Weekday | import("../..").Weekday[] | null;
41
- onChange?: (value: import("../..").Weekday | import("../..").Weekday[]) => void;
249
+ checked: boolean;
250
+ onClick: () => void;
251
+ value: string;
252
+ label: string;
42
253
  disabled?: boolean;
43
- className?: string;
44
- required?: boolean;
45
- multiSelect?: boolean;
46
254
  error?: boolean;
47
255
  }) => import("react").JSX.Element;
48
- TimeRange: ({ defaultValue, name, disabled, error, required, stepMinutes, onChange, ...props }: Omit<import("react").ComponentProps<typeof import("./input/timePicker").TimePicker>, "defaultValue" | "onChange"> & {
49
- defaultValue?: {
50
- start?: string | null;
51
- end?: string | null;
52
- };
53
- error?: boolean;
54
- required?: boolean;
55
- disabled?: boolean;
56
- stepMinutes?: number;
57
- onChange?: (value: {
58
- start?: string | null;
59
- end?: string | null;
60
- }) => void;
61
- }) => import("react").JSX.Element;
62
- TimePicker: ({ min, max, stepMinutes, defaultValue, value, selectRef, ...props }: {
63
- min?: string | null;
64
- max?: string | null;
65
- stepMinutes?: number;
66
- defaultValue?: string | null;
67
- value?: string | null;
68
- selectRef?: React.RefObject<import("react-select").SelectInstance<import("./input/select/types").SelectOption, boolean> | null>;
69
- } & Omit<import("react").ComponentProps<typeof import("./input/select").Select>, "options" | "defaultValue">) => import("react").JSX.Element;
70
- TextArea: ({ name, color, rounded, disabled, className, required, defaultValue, error, rows, ...props }: {
71
- name: string;
72
- color?: import("..").TextColorTypes;
73
- rounded?: import("..").Rounded;
74
- required?: boolean;
75
- defaultValue?: string | number | readonly string[] | undefined | null;
76
- error?: boolean;
77
- } & Omit<import("react").ComponentProps<"textarea">, "name" | "color" | "defaultValue">) => import("react").JSX.Element;
78
256
  Text: ({ name, rounded, focused, color, icon, className, defaultValue, error, inputClassName, isClearable, ...props }: {
79
257
  name: string;
80
258
  rounded?: import("..").Rounded;
@@ -85,7 +263,36 @@ export declare const Composite: {
85
263
  error?: boolean;
86
264
  inputClassName?: string;
87
265
  isClearable?: boolean;
88
- } & Omit<import("react").ComponentProps<"input">, "name" | "color" | "defaultValue">) => import("react").JSX.Element;
266
+ } & Omit<import("react").ComponentProps<'input'>, 'name' | 'color' | 'defaultValue'>) => import("react").JSX.Element;
267
+ DatePicker: (props: Parameters<({ name, rounded, placement, defaultValue, value, min, max, precision, plainDate, onChange, disabled, className, required, error, autoFocus, }: {
268
+ name: string;
269
+ rounded?: import("..").Rounded;
270
+ placement?: 'top' | 'right' | 'bottom' | 'left' | 'top-start' | 'top-end' | 'right-start' | 'right-end' | 'bottom-start' | 'bottom-end' | 'left-start' | 'left-end';
271
+ defaultValue?: Date;
272
+ value?: Date;
273
+ min?: Date;
274
+ max?: Date;
275
+ precision?: "day" | "month" | "year";
276
+ plainDate?: boolean;
277
+ onChange?: (value?: Date) => void;
278
+ disabled?: boolean;
279
+ className?: string;
280
+ required?: boolean;
281
+ error?: boolean;
282
+ autoFocus?: boolean;
283
+ }) => import("react").JSX.Element>[0]) => import("react").JSX.Element;
284
+ DateRange: ({ defaultValue, name, disabled, error, stepDays, onChange, ...props }: Omit<import("react").ComponentProps<typeof import("./input/datePicker").DatePicker>, 'defaultValue' | 'onChange'> & {
285
+ defaultValue?: {
286
+ start?: Date;
287
+ end?: Date;
288
+ };
289
+ error?: boolean;
290
+ stepDays?: number;
291
+ onChange?: (value: {
292
+ start?: Date;
293
+ end?: Date;
294
+ }) => void;
295
+ }) => import("react").JSX.Element;
89
296
  useScrollToSelectedOnOpen: (args: {
90
297
  menuOpen: boolean;
91
298
  portalEl?: HTMLElement;
@@ -111,59 +318,14 @@ export declare const Composite: {
111
318
  rounded?: import("..").Rounded;
112
319
  error?: boolean;
113
320
  } & import("react").RefAttributes<import("react-select").SelectInstance<import("./input/select/types").SelectOption, boolean>>>;
114
- Search: ({ value, onUpdate, className, }: {
115
- value?: string;
116
- onUpdate: (value: string) => void;
117
- className?: string;
118
- }) => import("react").JSX.Element;
119
- Radio: ({ orientation, name, options, value, defaultValue, onChange, disabled, required, }: {
120
- orientation: "horizontal" | "vertical";
121
- name: string;
122
- options: {
123
- value: string;
124
- label: string;
125
- disabled?: boolean;
126
- }[];
127
- value?: string;
128
- defaultValue?: string | null;
129
- onChange?: (value: string) => void;
130
- disabled?: boolean;
131
- required?: boolean;
132
- }) => import("react").JSX.Element;
133
- List: ({ name, rounded, columns, scalarArray, defaultValues, minListLength, maxListLength, isFirstItem, }: {
134
- name: string;
135
- rounded?: import("..").Rounded;
136
- columns: import("..").FormListColumn[];
137
- scalarArray?: boolean;
138
- defaultValues?: Record<string, string | number | boolean | Date | string[]>[];
139
- minListLength?: number;
140
- maxListLength?: number;
141
- isFirstItem: boolean;
142
- }) => import("react").JSX.Element;
143
- File: ({ name, accept, multiple, rounded, disabled, required, onChange, onDone, uploadPath, className, }: {
144
- name: string;
145
- accept?: string;
146
- multiple?: boolean;
147
- rounded?: import("..").Rounded;
148
- disabled?: boolean;
149
- required?: boolean;
150
- onChange?: (value?: import("../../hooks/uploads").FileUpload | import("../../hooks/uploads").FileUpload[]) => void;
151
- onDone?: (value?: import("../../hooks/uploads").FileUpload | import("../../hooks/uploads").FileUpload[]) => void;
152
- uploadPath?: string;
153
- className?: string;
154
- }) => import("react").JSX.Element;
155
- DateTimeRange: ({ defaultValue, name, disabled, error, stepMinutes, onChange, ...props }: Omit<import("react").ComponentProps<typeof import("./input/dateTimePicker").DateTimePicker>, "defaultValue" | "onChange"> & {
156
- defaultValue?: {
157
- start?: Date;
158
- end?: Date;
159
- };
160
- error?: boolean;
321
+ TimePicker: ({ min, max, stepMinutes, defaultValue, value, selectRef, ...props }: {
322
+ min?: string | null;
323
+ max?: string | null;
161
324
  stepMinutes?: number;
162
- onChange?: (value: {
163
- start?: Date;
164
- end?: Date;
165
- }) => void;
166
- }) => import("react").JSX.Element;
325
+ defaultValue?: string | null;
326
+ value?: string | null;
327
+ selectRef?: React.RefObject<import("react-select").SelectInstance<import("./input/select/types").SelectOption, boolean> | null>;
328
+ } & Omit<import("react").ComponentProps<typeof import("./input/select").Select>, 'options' | 'defaultValue'>) => import("react").JSX.Element;
167
329
  DateTimePicker: ({ name, defaultValue, value, min, max, onChange, disabled, required, error, stepMinutes, timeSelectRef, }: {
168
330
  name: string;
169
331
  defaultValue?: Date;
@@ -177,57 +339,106 @@ export declare const Composite: {
177
339
  stepMinutes?: number;
178
340
  timeSelectRef?: React.RefObject<import("react-select").SelectInstance<import("./input/select/types").SelectOption, boolean> | null>;
179
341
  }) => import("react").JSX.Element;
180
- DateRange: ({ defaultValue, name, disabled, error, stepDays, onChange, ...props }: Omit<import("react").ComponentProps<typeof import("./input/datePicker").DatePicker>, "defaultValue" | "onChange"> & {
342
+ DateTimeRange: ({ defaultValue, name, disabled, error, stepMinutes, onChange, ...props }: Omit<import("react").ComponentProps<typeof import("./input/dateTimePicker").DateTimePicker>, 'defaultValue' | 'onChange'> & {
181
343
  defaultValue?: {
182
344
  start?: Date;
183
345
  end?: Date;
184
346
  };
185
347
  error?: boolean;
186
- stepDays?: number;
348
+ stepMinutes?: number;
187
349
  onChange?: (value: {
188
350
  start?: Date;
189
351
  end?: Date;
190
352
  }) => void;
191
353
  }) => import("react").JSX.Element;
192
- DatePicker: (props: Parameters<({ name, rounded, placement, defaultValue, value, min, max, precision, plainDate, onChange, disabled, className, required, error, autoFocus, }: {
354
+ File: ({ name, accept, multiple, rounded, disabled, required, onChange, onDone, uploadPath, className, }: {
193
355
  name: string;
356
+ accept?: string;
357
+ multiple?: boolean;
194
358
  rounded?: import("..").Rounded;
195
- placement?: "top" | "right" | "bottom" | "left" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end";
196
- defaultValue?: Date;
197
- value?: Date;
198
- min?: Date;
199
- max?: Date;
200
- precision?: "year" | "month" | "day";
201
- plainDate?: boolean;
202
- onChange?: (value?: Date) => void;
203
359
  disabled?: boolean;
204
- className?: string;
205
360
  required?: boolean;
206
- error?: boolean;
207
- autoFocus?: boolean;
208
- }) => import("react").JSX.Element>[0]) => import("react").JSX.Element;
209
- Checkbox: ({ orientation, name, options, defaultValue, onChange, disabled, error, }: {
210
- orientation: "horizontal" | "vertical";
361
+ onChange?: (value?: import("../../hooks/uploads").FileUpload | import("../../hooks/uploads").FileUpload[]) => void;
362
+ onDone?: (value?: import("../../hooks/uploads").FileUpload | import("../../hooks/uploads").FileUpload[]) => void;
363
+ uploadPath?: string;
364
+ className?: string;
365
+ }) => import("react").JSX.Element;
366
+ Radio: ({ orientation, name, options, value, defaultValue, onChange, disabled, required, }: {
367
+ orientation: 'horizontal' | 'vertical';
211
368
  name: string;
212
369
  options: {
213
370
  value: string;
214
371
  label: string;
215
372
  disabled?: boolean;
216
373
  }[];
217
- defaultValue?: string[] | null;
218
- onChange?: (values: string[]) => void;
374
+ value?: string;
375
+ defaultValue?: string;
376
+ onChange?: (value: string) => void;
377
+ disabled?: boolean;
378
+ required?: boolean;
379
+ }) => import("react").JSX.Element;
380
+ Switch: ({ name, label, color, defaultChecked, disabled, error, onChange, className, }: {
381
+ name: string;
382
+ label?: string;
383
+ color?: import("..").ColorTypes;
384
+ defaultChecked?: boolean;
219
385
  disabled?: boolean;
220
386
  error?: boolean;
387
+ onChange?: (checked: boolean) => void;
388
+ className?: string;
221
389
  }) => import("react").JSX.Element;
222
- CheckboxItem: ({ name, checked, onClick, value, label, disabled, error, }: {
390
+ TextArea: ({ name, color, rounded, disabled, className, required, defaultValue, error, rows, ...props }: {
223
391
  name: string;
224
- checked: boolean;
225
- onClick: () => void;
226
- value: string;
227
- label: string;
392
+ color?: import("..").TextColorTypes;
393
+ rounded?: import("..").Rounded;
394
+ required?: boolean;
395
+ defaultValue?: string | number | readonly string[] | undefined | null;
396
+ error?: boolean;
397
+ } & Omit<import("react").ComponentProps<'textarea'>, 'name' | 'color' | 'defaultValue'>) => import("react").JSX.Element;
398
+ TimeRange: ({ defaultValue, name, disabled, error, required, stepMinutes, onChange, ...props }: Omit<import("react").ComponentProps<typeof import("./input/timePicker").TimePicker>, 'defaultValue' | 'onChange'> & {
399
+ defaultValue?: {
400
+ start?: string | null;
401
+ end?: string | null;
402
+ };
403
+ error?: boolean;
404
+ required?: boolean;
405
+ disabled?: boolean;
406
+ stepMinutes?: number;
407
+ onChange?: (value: {
408
+ start?: string | null;
409
+ end?: string | null;
410
+ }) => void;
411
+ }) => import("react").JSX.Element;
412
+ WeekDaysSelector: ({ name, short, defaultValue, onChange, disabled, className, error, }: {
413
+ name: string;
414
+ short?: boolean;
415
+ defaultValue?: import("../..").Weekday | import("../..").Weekday[];
416
+ onChange?: (value: import("../..").Weekday | import("../..").Weekday[]) => void;
228
417
  disabled?: boolean;
418
+ className?: string;
229
419
  error?: boolean;
230
420
  }) => import("react").JSX.Element;
421
+ WeekdayPicker: ({ name, short, defaultValue, onChange, disabled, className, required, multiSelect, error, ...props }: {
422
+ name: string;
423
+ short?: boolean;
424
+ defaultValue?: import("../..").Weekday | import("../..").Weekday[];
425
+ onChange?: (value: import("../..").Weekday | import("../..").Weekday[]) => void;
426
+ disabled?: boolean;
427
+ className?: string;
428
+ required?: boolean;
429
+ multiSelect?: boolean;
430
+ error?: boolean;
431
+ }) => import("react").JSX.Element;
432
+ List: ({ name, rounded, columns, scalarArray, defaultValues, minListLength, maxListLength, isFirstItem, }: {
433
+ name: string;
434
+ rounded?: import("..").Rounded;
435
+ columns: import("..").FormListColumn[];
436
+ scalarArray?: boolean;
437
+ defaultValues?: Record<string, string | number | boolean | Date | string[]>[];
438
+ minListLength?: number;
439
+ maxListLength?: number;
440
+ isFirstItem: boolean;
441
+ }) => import("react").JSX.Element;
231
442
  Attachment: ({ name, accept, multiple, rounded, size, disabled, required, onChange, uploadPath, className, ref, }: {
232
443
  name: string;
233
444
  accept?: string;
@@ -243,109 +454,149 @@ export declare const Composite: {
243
454
  open: () => void;
244
455
  }>;
245
456
  }) => import("react").JSX.Element;
457
+ Search: ({ value, onUpdate, className, }: {
458
+ value?: string;
459
+ onUpdate: (value: string) => void;
460
+ className?: string;
461
+ }) => import("react").JSX.Element;
246
462
  };
247
- DropDown: ({ button, content, position, menuRounded, menuClassName, disabled, }: {
248
- button: import("react").ComponentProps<({ variant, ...props }: ({
249
- variant: "colored";
250
- } & import("react").ComponentProps<typeof import("../component/button/colored").Colored>) | ({
251
- variant: "text";
252
- } & import("react").ComponentProps<typeof import("../component/button/text").Text>) | ({
253
- variant: "image";
254
- } & import("react").ComponentProps<typeof import("../component/button/image").Imaged>)) => import("react").JSX.Element>;
255
- content: import("react").ReactNode | (import("react").ComponentProps<typeof import("./button").Button> | "divider")[];
256
- position: "left" | "center" | "right";
257
- menuRounded?: import("..").Rounded;
258
- menuClassName?: string;
259
- disabled?: boolean;
260
- }) => import("react").JSX.Element | null;
261
- Button: (buttonProps: ({
262
- variant: "colored";
263
- } & {
463
+ Label: ({ color, container, size, rounded, border, label, icon, className, ...props }: {
264
464
  color: import("..").ColorTypes;
265
465
  container?: boolean;
266
- } & Omit<{
267
- size?: import("..").ControlSize;
268
- rounded?: import("..").Rounded;
269
- border?: import("..").BorderProps;
270
- label?: string;
271
- icon?: import("..").IconType;
272
- image?: Omit<import("react").ComponentProps<typeof import("next/image").default>, "alt" | "fill" | "width" | "height"> & {
273
- square?: boolean;
274
- };
275
- disabled?: boolean;
276
- } & Omit<Omit<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, keyof import("next/link").LinkProps<any>> & import("next/link").LinkProps<any> & {
277
- children?: React.ReactNode | undefined;
278
- } & import("react").RefAttributes<HTMLAnchorElement>, "children" | "color" | "disabled" | "onClick">, "image">) | ({
279
- variant: "text";
280
- } & {
281
- color?: import("..").TextColorTypes;
282
- container?: boolean;
283
- } & Omit<{
284
466
  size?: import("..").ControlSize;
285
467
  rounded?: import("..").Rounded;
286
468
  border?: import("..").BorderProps;
287
469
  label?: string;
288
470
  icon?: import("..").IconType;
289
- image?: Omit<import("react").ComponentProps<typeof import("next/image").default>, "alt" | "fill" | "width" | "height"> & {
290
- square?: boolean;
291
- };
292
- disabled?: boolean;
293
- } & Omit<Omit<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, keyof import("next/link").LinkProps<any>> & import("next/link").LinkProps<any> & {
294
- children?: React.ReactNode | undefined;
295
- } & import("react").RefAttributes<HTMLAnchorElement>, "children" | "color" | "disabled" | "onClick">, "image">) | ({
296
- variant: "image";
297
- } & Omit<{
298
- size?: import("..").ControlSize;
471
+ } & Omit<import("react").ComponentProps<'label'>, 'color'>) => import("react").JSX.Element;
472
+ Markdown: ({ body }: {
473
+ body: string;
474
+ }) => import("react").JSX.Element;
475
+ DataTable: <TData extends import("..").DataTableRow>({ className, rounded, addtionalHeader, showTableHeader, headerBackgroundColor, headerTextColor, columns, emptyMessage, data: tmp, pagination, sort, rowSelect, }: {
476
+ className?: string;
299
477
  rounded?: import("..").Rounded;
300
- border?: import("..").BorderProps;
301
- label?: string;
302
- icon?: import("..").IconType;
303
- image?: Omit<import("react").ComponentProps<typeof import("next/image").default>, "alt" | "fill" | "width" | "height"> & {
304
- square?: boolean;
478
+ addtionalHeader?: import("react").ReactNode;
479
+ showTableHeader?: boolean;
480
+ headerBackgroundColor?: import("..").ColorTypes;
481
+ headerTextColor?: import("..").TextColorTypes;
482
+ columns: import("..").DataTableColumnDef<TData>[];
483
+ emptyMessage?: import("react").ReactNode;
484
+ data: TData[];
485
+ pagination?: {
486
+ count: number;
487
+ page: number;
488
+ onPageSelected?: (page: number) => void;
305
489
  };
306
- disabled?: boolean;
307
- } & Omit<Omit<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, keyof import("next/link").LinkProps<any>> & import("next/link").LinkProps<any> & {
308
- children?: React.ReactNode | undefined;
309
- } & import("react").RefAttributes<HTMLAnchorElement>, "children" | "color" | "disabled" | "onClick">, "icon">) | ((({
310
- variant: "colored";
311
- } & {
312
- color: import("..").ColorTypes;
313
- container?: boolean;
314
- } & Omit<{
315
- size?: import("..").ControlSize;
316
- rounded?: import("..").Rounded;
317
- border?: import("..").BorderProps;
318
- label?: string;
319
- icon?: import("..").IconType;
320
- image?: Omit<import("react").ComponentProps<typeof import("next/image").default>, "alt" | "fill" | "width" | "height"> & {
321
- square?: boolean;
490
+ sort?: {
491
+ isRouterSortEnabled: boolean;
492
+ orderBy?: Record<string, 'asc' | 'desc'>[];
493
+ excludeHeaders?: string[];
494
+ dndEnabled?: boolean;
495
+ onSorted?: (data: TData[]) => void;
322
496
  };
323
- } & Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "children" | "color">, "image">) | ({
324
- variant: "text";
497
+ rowSelect?: (data: TData) => void;
498
+ }) => import("react").JSX.Element;
499
+ ObjectView: <T extends Record<string, unknown>>({ name, obj, layout, overrides, additionals, className, itemOrientation, itemClassName, labelWidth, }: {
500
+ name: string;
501
+ obj: T;
502
+ layout?: (keyof T)[][] | undefined;
503
+ overrides?: { [K in keyof T]?: Partial<Omit<{
504
+ key: string;
505
+ label?: string;
506
+ value?: string | number | boolean | null | import("react").ReactNode;
507
+ }, "key">> | undefined; } | undefined;
508
+ additionals?: {
509
+ key: string;
510
+ label?: string;
511
+ value?: string | number | boolean | null | import("react").ReactNode;
512
+ }[] | {
513
+ key: string;
514
+ label?: string;
515
+ value?: string | number | boolean | null | import("react").ReactNode;
516
+ }[][] | ((false | {
517
+ key: string;
518
+ label?: string;
519
+ value?: string | number | boolean | null | import("react").ReactNode;
520
+ } | undefined)[] | (false | {
521
+ key: string;
522
+ label?: string;
523
+ value?: string | number | boolean | null | import("react").ReactNode;
524
+ } | undefined)[][] | false | undefined)[];
525
+ className?: string;
325
526
  } & {
326
- color?: import("..").TextColorTypes;
327
- container?: boolean;
328
- } & Omit<{
329
- size?: import("..").ControlSize;
527
+ itemOrientation?: 'horizontal' | 'vertical';
528
+ itemClassName?: string;
529
+ labelWidth?: number;
530
+ }) => import("react").JSX.Element;
531
+ ObjectTable: <T extends Record<string, unknown>>({ name, obj, layout, overrides, additionals, firstColumnSize, ...restProps }: {
532
+ name: string;
533
+ obj: T;
534
+ layout?: (keyof T)[][] | undefined;
535
+ overrides?: { [K in keyof T]?: Partial<Omit<{
536
+ key: string;
537
+ label?: string;
538
+ value?: string | number | boolean | null | import("react").ReactNode;
539
+ }, "key">> | undefined; } | undefined;
540
+ additionals?: {
541
+ key: string;
542
+ label?: string;
543
+ value?: string | number | boolean | null | import("react").ReactNode;
544
+ }[] | {
545
+ key: string;
546
+ label?: string;
547
+ value?: string | number | boolean | null | import("react").ReactNode;
548
+ }[][] | ((false | {
549
+ key: string;
550
+ label?: string;
551
+ value?: string | number | boolean | null | import("react").ReactNode;
552
+ } | undefined)[] | (false | {
553
+ key: string;
554
+ label?: string;
555
+ value?: string | number | boolean | null | import("react").ReactNode;
556
+ } | undefined)[][] | false | undefined)[];
557
+ className?: string;
558
+ } & Omit<import("react").ComponentProps<typeof table.DataTable>, 'data' | 'columns'> & {
559
+ firstColumnSize?: number;
560
+ }) => import("react").JSX.Element;
561
+ PageTitle: ({ routes, title, actions, back, keepRoutesSpace, showTitle, className, }: {
562
+ routes?: {
563
+ label: string;
564
+ href: string;
565
+ }[];
566
+ title: string;
567
+ actions?: {
568
+ path: string;
569
+ button?: import("react").ComponentProps<typeof button.Button>;
570
+ content?: import("react").ReactNode;
571
+ }[];
572
+ back?: boolean;
573
+ keepRoutesSpace?: boolean;
574
+ showTitle?: boolean;
575
+ className?: string;
576
+ }) => import("react").JSX.Element;
577
+ Popover: ({ trigger, content, placement, rounded, panelClassName, disabled, className, }: {
578
+ trigger: import("react").ReactNode;
579
+ content: import("react").ReactNode;
580
+ placement?: import("../../hooks/anchor").AnchorPlacement;
330
581
  rounded?: import("..").Rounded;
331
- border?: import("..").BorderProps;
332
- label?: string;
333
- icon?: import("..").IconType;
334
- image?: Omit<import("react").ComponentProps<typeof import("next/image").default>, "alt" | "fill" | "width" | "height"> & {
335
- square?: boolean;
336
- };
337
- } & Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "children" | "color">, "image">) | ({
338
- variant: "image";
339
- } & Omit<{
340
- size?: import("..").ControlSize;
582
+ panelClassName?: string;
583
+ disabled?: boolean;
584
+ className?: string;
585
+ }) => import("react").JSX.Element;
586
+ Stepper: ({ steps, current, orientation, className, }: {
587
+ steps: {
588
+ label: string;
589
+ }[];
590
+ current: number;
591
+ orientation?: 'horizontal' | 'vertical';
592
+ className?: string;
593
+ }) => import("react").JSX.Element;
594
+ Tooltip: ({ content, placement, rounded, disabled, className, children, }: {
595
+ content: import("react").ReactNode;
596
+ placement?: import("../../hooks/anchor").AnchorPlacement;
341
597
  rounded?: import("..").Rounded;
342
- border?: import("..").BorderProps;
343
- label?: string;
344
- icon?: import("..").IconType;
345
- image?: Omit<import("react").ComponentProps<typeof import("next/image").default>, "alt" | "fill" | "width" | "height"> & {
346
- square?: boolean;
347
- };
348
- } & Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "children" | "color">, "icon">)) & {
349
- action?: import("../..").ModalProps;
350
- })) => import("react").JSX.Element;
598
+ disabled?: boolean;
599
+ className?: string;
600
+ children: import("react").ReactNode;
601
+ }) => import("react").JSX.Element;
351
602
  };