@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.
- package/dist/constants.d.ts +4 -0
- package/dist/constants.js +4 -0
- package/dist/constants.js.map +1 -1
- package/dist/env.client.d.ts +2 -2
- package/dist/env.client.js +1 -1
- package/dist/env.client.js.map +1 -1
- package/dist/env.d.ts +2 -2
- package/dist/env.js +1 -5
- package/dist/env.js.map +1 -1
- package/dist/hooks/anchor/index.d.ts +13 -0
- package/dist/hooks/anchor/index.js +65 -0
- package/dist/hooks/anchor/index.js.map +1 -0
- package/dist/hooks/date/index.js.map +1 -1
- package/dist/hooks/loading/index.jsx +1 -1
- package/dist/hooks/loading/index.jsx.map +1 -1
- package/dist/hooks/localStorage/index.js +2 -9
- package/dist/hooks/localStorage/index.js.map +1 -1
- package/dist/hooks/modal/index.d.ts +1 -1
- package/dist/hooks/modal/index.jsx +1 -1
- package/dist/hooks/modal/index.jsx.map +1 -1
- package/dist/hooks/mounted/index.js +0 -4
- package/dist/hooks/mounted/index.js.map +1 -1
- package/dist/hooks/toast/index.d.ts +3 -1
- package/dist/hooks/toast/index.jsx +9 -9
- package/dist/hooks/toast/index.jsx.map +1 -1
- package/dist/hooks/uploads/index.d.ts +1 -1
- package/dist/hooks/uploads/index.js +0 -3
- package/dist/hooks/uploads/index.js.map +1 -1
- package/dist/i18n/get-message-fallback.d.ts +0 -1
- package/dist/i18n/get-message-fallback.js +0 -1
- package/dist/i18n/get-message-fallback.js.map +1 -1
- package/dist/i18n/index.js +1 -4
- package/dist/i18n/index.js.map +1 -1
- package/dist/i18n/strings/ja-JP.json +3 -3
- package/dist/lib/cookie/index.d.ts +1 -1
- package/dist/lib/cookie/index.js +0 -1
- package/dist/lib/cookie/index.js.map +1 -1
- package/dist/lib/next-auth/index.js +0 -11
- package/dist/lib/next-auth/index.js.map +1 -1
- package/dist/lib/trpc/index.d.ts +3 -2
- package/dist/lib/trpc/index.js +39 -11
- package/dist/lib/trpc/index.js.map +1 -1
- package/dist/lib/uploads/index.js +0 -17
- package/dist/lib/uploads/index.js.map +1 -1
- package/dist/logger/index.d.ts +2 -1
- package/dist/logger/index.js +0 -6
- package/dist/logger/index.js.map +1 -1
- package/dist/styles/globals.css +77 -0
- package/dist/styles/tailwind.config.d.ts +362 -359
- package/dist/styles/tailwind.config.js +22 -20
- package/dist/styles/tailwind.config.js.map +1 -1
- package/dist/styles/tailwind.config.ts +25 -21
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/component/button/base.d.ts +4 -4
- package/dist/ui/component/button/base.jsx +2 -2
- package/dist/ui/component/button/base.jsx.map +1 -1
- package/dist/ui/component/button/colored/index.d.ts +2 -2
- package/dist/ui/component/button/image/index.d.ts +2 -2
- package/dist/ui/component/button/index.d.ts +4 -9
- package/dist/ui/component/button/index.jsx +0 -5
- package/dist/ui/component/button/index.jsx.map +1 -1
- package/dist/ui/component/card/index.jsx +1 -1
- package/dist/ui/component/card/index.jsx.map +1 -1
- package/dist/ui/component/icon/index.d.ts +2 -2
- package/dist/ui/component/index.d.ts +70 -78
- package/dist/ui/component/index.js +4 -4
- package/dist/ui/component/index.js.map +1 -1
- package/dist/ui/component/progressBar/index.d.ts +9 -0
- package/dist/ui/component/progressBar/index.jsx +15 -0
- package/dist/ui/component/progressBar/index.jsx.map +1 -0
- package/dist/ui/component/skeleton/index.d.ts +10 -0
- package/dist/ui/component/skeleton/index.jsx +35 -0
- package/dist/ui/component/skeleton/index.jsx.map +1 -0
- package/dist/ui/component/typography/H1/index.d.ts +2 -3
- package/dist/ui/component/typography/H1/index.jsx +2 -2
- package/dist/ui/component/typography/H1/index.jsx.map +1 -1
- package/dist/ui/component/typography/H2/index.d.ts +2 -3
- package/dist/ui/component/typography/H2/index.jsx +2 -2
- package/dist/ui/component/typography/H2/index.jsx.map +1 -1
- package/dist/ui/component/typography/H3/index.d.ts +2 -3
- package/dist/ui/component/typography/H3/index.jsx +2 -2
- package/dist/ui/component/typography/H3/index.jsx.map +1 -1
- package/dist/ui/component/typography/H4/index.d.ts +2 -3
- package/dist/ui/component/typography/H4/index.jsx +2 -2
- package/dist/ui/component/typography/H4/index.jsx.map +1 -1
- package/dist/ui/component/typography/H5/index.d.ts +2 -3
- package/dist/ui/component/typography/H5/index.jsx +2 -2
- package/dist/ui/component/typography/H5/index.jsx.map +1 -1
- package/dist/ui/component/typography/H6/index.d.ts +2 -3
- package/dist/ui/component/typography/H6/index.jsx +2 -2
- package/dist/ui/component/typography/H6/index.jsx.map +1 -1
- package/dist/ui/component/typography/Label/index.d.ts +2 -3
- package/dist/ui/component/typography/Label/index.jsx +2 -2
- package/dist/ui/component/typography/Label/index.jsx.map +1 -1
- package/dist/ui/component/typography/LinkText/index.d.ts +2 -3
- package/dist/ui/component/typography/LinkText/index.jsx +2 -2
- package/dist/ui/component/typography/LinkText/index.jsx.map +1 -1
- package/dist/ui/component/typography/P/index.d.ts +2 -3
- package/dist/ui/component/typography/P/index.jsx +2 -2
- package/dist/ui/component/typography/P/index.jsx.map +1 -1
- package/dist/ui/component/typography/Pre/index.d.ts +2 -3
- package/dist/ui/component/typography/Pre/index.jsx +2 -2
- package/dist/ui/component/typography/Pre/index.jsx.map +1 -1
- package/dist/ui/component/typography/Span/index.d.ts +2 -3
- package/dist/ui/component/typography/Span/index.jsx +2 -2
- package/dist/ui/component/typography/Span/index.jsx.map +1 -1
- package/dist/ui/component/typography/index.d.ts +24 -35
- package/dist/ui/composite/accordion/index.d.ts +12 -0
- package/dist/ui/composite/accordion/index.jsx +29 -0
- package/dist/ui/composite/accordion/index.jsx.map +1 -0
- package/dist/ui/composite/alert/index.d.ts +13 -0
- package/dist/ui/composite/alert/index.jsx +35 -0
- package/dist/ui/composite/alert/index.jsx.map +1 -0
- package/dist/ui/composite/avatar/index.d.ts +9 -0
- package/dist/ui/composite/avatar/index.jsx +25 -0
- package/dist/ui/composite/avatar/index.jsx.map +1 -0
- package/dist/ui/composite/dropdown/index.d.ts +2 -2
- package/dist/ui/composite/dropdown/index.jsx +0 -1
- package/dist/ui/composite/dropdown/index.jsx.map +1 -1
- package/dist/ui/composite/emptyState/index.d.ts +9 -0
- package/dist/ui/composite/emptyState/index.jsx +18 -0
- package/dist/ui/composite/emptyState/index.jsx.map +1 -0
- package/dist/ui/{layout → composite}/form/index.d.ts +4 -5
- package/dist/ui/{layout → composite}/form/index.jsx +9 -43
- package/dist/ui/composite/form/index.jsx.map +1 -0
- package/dist/ui/{layout → composite}/form/renderItem.d.ts +1 -2
- package/dist/ui/{layout → composite}/form/renderItem.jsx +25 -30
- package/dist/ui/composite/form/renderItem.jsx.map +1 -0
- package/dist/ui/composite/index.d.ts +475 -224
- package/dist/ui/composite/index.js +30 -0
- package/dist/ui/composite/index.js.map +1 -1
- package/dist/ui/composite/input/attachment/index.jsx +5 -8
- package/dist/ui/composite/input/attachment/index.jsx.map +1 -1
- package/dist/ui/composite/input/checkbox/index.d.ts +2 -2
- package/dist/ui/composite/input/checkbox/index.jsx +2 -2
- package/dist/ui/composite/input/checkbox/index.jsx.map +1 -1
- package/dist/ui/composite/input/datePicker/index.d.ts +1 -1
- package/dist/ui/composite/input/datePicker/index.jsx +5 -16
- package/dist/ui/composite/input/datePicker/index.jsx.map +1 -1
- package/dist/ui/composite/input/dateRange/index.d.ts +1 -1
- package/dist/ui/composite/input/dateRange/index.jsx +1 -3
- package/dist/ui/composite/input/dateRange/index.jsx.map +1 -1
- package/dist/ui/composite/input/dateTimePicker/index.jsx +1 -8
- package/dist/ui/composite/input/dateTimePicker/index.jsx.map +1 -1
- package/dist/ui/composite/input/dateTimeRange/index.d.ts +1 -1
- package/dist/ui/composite/input/dateTimeRange/index.jsx +2 -5
- package/dist/ui/composite/input/dateTimeRange/index.jsx.map +1 -1
- package/dist/ui/composite/input/file/index.jsx +13 -9
- package/dist/ui/composite/input/file/index.jsx.map +1 -1
- package/dist/ui/composite/input/index.d.ts +129 -119
- package/dist/ui/composite/input/index.js +2 -0
- package/dist/ui/composite/input/index.js.map +1 -1
- package/dist/ui/composite/input/list/index.jsx +2 -10
- package/dist/ui/composite/input/list/index.jsx.map +1 -1
- package/dist/ui/composite/input/radio/index.d.ts +2 -2
- package/dist/ui/composite/input/radio/index.jsx +3 -3
- package/dist/ui/composite/input/radio/index.jsx.map +1 -1
- package/dist/ui/composite/input/select/GroupHeading/index.jsx +1 -1
- package/dist/ui/composite/input/select/GroupHeading/index.jsx.map +1 -1
- package/dist/ui/composite/input/select/Input/index.jsx +1 -4
- package/dist/ui/composite/input/select/Input/index.jsx.map +1 -1
- package/dist/ui/composite/input/select/Option/index.jsx +0 -1
- package/dist/ui/composite/input/select/Option/index.jsx.map +1 -1
- package/dist/ui/composite/input/select/Placeholder/index.jsx +1 -1
- package/dist/ui/composite/input/select/Placeholder/index.jsx.map +1 -1
- package/dist/ui/composite/input/select/SelectContainer/index.jsx +1 -1
- package/dist/ui/composite/input/select/SelectContainer/index.jsx.map +1 -1
- package/dist/ui/composite/input/select/SingleValue/index.jsx +1 -1
- package/dist/ui/composite/input/select/SingleValue/index.jsx.map +1 -1
- package/dist/ui/composite/input/select/index.jsx +0 -2
- package/dist/ui/composite/input/select/index.jsx.map +1 -1
- package/dist/ui/composite/input/switch/index.d.ts +11 -0
- package/dist/ui/composite/input/switch/index.jsx +21 -0
- package/dist/ui/composite/input/switch/index.jsx.map +1 -0
- package/dist/ui/composite/input/text/index.d.ts +1 -1
- package/dist/ui/composite/input/text/index.jsx +1 -1
- package/dist/ui/composite/input/text/index.jsx.map +1 -1
- package/dist/ui/composite/input/textarea/index.d.ts +1 -1
- package/dist/ui/composite/input/textarea/index.jsx +1 -1
- package/dist/ui/composite/input/textarea/index.jsx.map +1 -1
- package/dist/ui/composite/input/timePicker/index.d.ts +1 -1
- package/dist/ui/composite/input/timeRange/index.d.ts +1 -1
- package/dist/ui/composite/input/timeRange/index.jsx +1 -1
- package/dist/ui/composite/input/timeRange/index.jsx.map +1 -1
- package/dist/ui/composite/input/weekDaysSelector/index.d.ts +1 -1
- package/dist/ui/composite/input/weekdayPicker/index.d.ts +1 -1
- package/dist/ui/composite/input/weekdayPicker/index.jsx +1 -1
- package/dist/ui/composite/input/weekdayPicker/index.jsx.map +1 -1
- package/dist/ui/composite/label/index.d.ts +3 -2
- package/dist/ui/composite/label/index.jsx +4 -4
- package/dist/ui/composite/label/index.jsx.map +1 -1
- package/dist/ui/composite/loading/index.jsx.map +1 -0
- package/dist/ui/composite/markdown/codeBlock.d.ts +4 -0
- package/dist/ui/composite/markdown/codeBlock.jsx +67 -0
- package/dist/ui/composite/markdown/codeBlock.jsx.map +1 -0
- package/dist/ui/composite/markdown/index.d.ts +3 -0
- package/dist/ui/composite/markdown/index.jsx +65 -0
- package/dist/ui/composite/markdown/index.jsx.map +1 -0
- package/dist/ui/{component/modal/index.d.ts → composite/modal/card.d.ts} +1 -1
- package/dist/ui/composite/modal/card.jsx +13 -0
- package/dist/ui/composite/modal/card.jsx.map +1 -0
- package/dist/ui/composite/modal/index.d.ts +2 -0
- package/dist/ui/composite/modal/index.jsx +3 -0
- package/dist/ui/composite/modal/index.jsx.map +1 -0
- package/dist/ui/{layout/modal/index.jsx → composite/modal/overlay.jsx} +4 -10
- package/dist/ui/composite/modal/overlay.jsx.map +1 -0
- package/dist/ui/{layout → composite}/object/index.d.ts +2 -3
- package/dist/ui/{layout → composite}/object/index.jsx +50 -24
- package/dist/ui/composite/object/index.jsx.map +1 -0
- package/dist/ui/composite/pageTitle/index.jsx +4 -2
- package/dist/ui/composite/pageTitle/index.jsx.map +1 -1
- package/dist/ui/composite/popover/index.d.ts +12 -0
- package/dist/ui/composite/popover/index.jsx +48 -0
- package/dist/ui/composite/popover/index.jsx.map +1 -0
- package/dist/ui/composite/stepper/index.d.ts +8 -0
- package/dist/ui/composite/stepper/index.jsx +34 -0
- package/dist/ui/composite/stepper/index.jsx.map +1 -0
- package/dist/ui/composite/table/features.d.ts +15 -0
- package/dist/ui/composite/table/features.js +10 -0
- package/dist/ui/composite/table/features.js.map +1 -0
- package/dist/ui/{layout → composite}/table/index.d.ts +4 -9
- package/dist/ui/{layout → composite}/table/index.jsx +10 -23
- package/dist/ui/composite/table/index.jsx.map +1 -0
- package/dist/ui/composite/toast/index.d.ts +18 -0
- package/dist/ui/{layout → composite}/toast/index.jsx +11 -4
- package/dist/ui/composite/toast/index.jsx.map +1 -0
- package/dist/ui/composite/tooltip/index.d.ts +11 -0
- package/dist/ui/composite/tooltip/index.jsx +29 -0
- package/dist/ui/composite/tooltip/index.jsx.map +1 -0
- package/dist/ui/functional/index.d.ts +5 -5
- package/dist/ui/functional/signInForm/index.jsx +1 -1
- package/dist/ui/functional/signInForm/index.jsx.map +1 -1
- package/dist/ui/layout/app/component.jsx +2 -2
- package/dist/ui/layout/app/component.jsx.map +1 -1
- package/dist/ui/layout/drawer/index.d.ts +11 -0
- package/dist/ui/layout/drawer/index.jsx +73 -0
- package/dist/ui/layout/drawer/index.jsx.map +1 -0
- package/dist/ui/layout/index.d.ts +38 -351
- package/dist/ui/layout/index.js +2 -12
- package/dist/ui/layout/index.js.map +1 -1
- package/dist/ui/layout/root/index.d.ts +1 -1
- package/dist/ui/layout/root/index.jsx +1 -2
- package/dist/ui/layout/root/index.jsx.map +1 -1
- package/dist/ui/layout/root/provider/index.jsx +0 -4
- package/dist/ui/layout/root/provider/index.jsx.map +1 -1
- package/dist/ui/layout/tab/component.jsx +1 -1
- package/dist/ui/layout/tab/component.jsx.map +1 -1
- package/dist/ui/layout/tab/content/index.d.ts +1 -1
- package/dist/ui/theme/border/index.d.ts +15 -15
- package/dist/ui/theme/border/index.js.map +1 -1
- package/dist/ui/theme/color/index.d.ts +24 -23
- package/dist/ui/theme/color/index.js +14 -24
- package/dist/ui/theme/color/index.js.map +1 -1
- package/dist/ui/theme/rounded/index.d.ts +6 -5
- package/dist/ui/theme/rounded/index.js +2 -0
- package/dist/ui/theme/rounded/index.js.map +1 -1
- package/dist/ui/theme/size/index.d.ts +8 -8
- package/dist/ui/theme/size/index.js +8 -8
- package/dist/ui/theme/size/index.js.map +1 -1
- package/dist/ui/types/index.d.ts +16 -2
- package/dist/ui/types/index.js +0 -1
- package/dist/ui/types/index.js.map +1 -1
- package/dist/util/date/impl.js +0 -2
- package/dist/util/date/impl.js.map +1 -1
- package/dist/util/date/index.d.ts +7 -7
- package/dist/util/index.js +7 -19
- package/dist/util/index.js.map +1 -1
- package/package.json +7 -6
- package/dist/ui/component/button/text/index.d.ts +0 -11
- package/dist/ui/component/button/text/index.jsx +0 -7
- package/dist/ui/component/button/text/index.jsx.map +0 -1
- package/dist/ui/component/markdown/index.d.ts +0 -4
- package/dist/ui/component/markdown/index.jsx +0 -61
- package/dist/ui/component/markdown/index.jsx.map +0 -1
- package/dist/ui/component/modal/index.jsx +0 -12
- package/dist/ui/component/modal/index.jsx.map +0 -1
- package/dist/ui/layout/form/index.jsx.map +0 -1
- package/dist/ui/layout/form/renderItem.jsx.map +0 -1
- package/dist/ui/layout/loading/index.jsx.map +0 -1
- package/dist/ui/layout/modal/index.jsx.map +0 -1
- package/dist/ui/layout/object/index.jsx.map +0 -1
- package/dist/ui/layout/table/index.jsx.map +0 -1
- package/dist/ui/layout/toast/index.d.ts +0 -7
- package/dist/ui/layout/toast/index.jsx.map +0 -1
- /package/dist/ui/{layout → composite}/loading/index.d.ts +0 -0
- /package/dist/ui/{layout → composite}/loading/index.jsx +0 -0
- /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
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
234
|
+
Checkbox: ({ orientation, name, options, defaultValue, onChange, disabled, error, }: {
|
|
235
|
+
orientation: 'horizontal' | 'vertical';
|
|
29
236
|
name: string;
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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
|
-
|
|
247
|
+
CheckboxItem: ({ name, checked, onClick, value, label, disabled, error, }: {
|
|
38
248
|
name: string;
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
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<
|
|
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
|
-
|
|
115
|
-
|
|
116
|
-
|
|
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
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
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
|
-
|
|
218
|
-
|
|
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
|
-
|
|
390
|
+
TextArea: ({ name, color, rounded, disabled, className, required, defaultValue, error, rows, ...props }: {
|
|
223
391
|
name: string;
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
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
|
-
|
|
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
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
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
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
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
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
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
|
-
|
|
324
|
-
|
|
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
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
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
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
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
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
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
|
};
|