create-warlock 5.40.1 → 5.41.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/esm/commands/create-new-app/index.mjs +12 -7
- package/esm/commands/create-new-app/index.mjs.map +1 -1
- package/esm/commands/create-new-app/types.d.mts +2 -0
- package/esm/commands/create-warlock-app/index.mjs +5 -2
- package/esm/commands/create-warlock-app/index.mjs.map +1 -1
- package/esm/features/features-map.mjs +6 -0
- package/esm/features/features-map.mjs.map +1 -1
- package/esm/features/ui-kit.mjs +39 -0
- package/esm/features/ui-kit.mjs.map +1 -0
- package/esm/flags/definitions.mjs +5 -0
- package/esm/flags/definitions.mjs.map +1 -1
- package/esm/flags/seed-from-flags.mjs +7 -2
- package/esm/flags/seed-from-flags.mjs.map +1 -1
- package/esm/helpers/app.mjs +7 -2
- package/esm/helpers/app.mjs.map +1 -1
- package/esm/index.mjs +5 -1
- package/esm/index.mjs.map +1 -1
- package/esm/prompts/ask-stack.mjs +5 -0
- package/esm/prompts/ask-stack.mjs.map +1 -1
- package/esm/prompts/ask-ui-kit.mjs +27 -0
- package/esm/prompts/ask-ui-kit.mjs.map +1 -0
- package/llms-full.txt +6 -1
- package/package.json +2 -2
- package/skills/SKILL.md +6 -1
- package/templates/design-system-mantine/SOURCES.md +23 -0
- package/templates/design-system-mantine/package.json +16 -0
- package/templates/design-system-mantine/src/web/design-system/components/checkbox-input.tsx +19 -0
- package/templates/design-system-mantine/src/web/design-system/components/date-picker-input.tsx +22 -0
- package/templates/design-system-mantine/src/web/design-system/components/date-time-picker-input.tsx +32 -0
- package/templates/design-system-mantine/src/web/design-system/components/email-input.tsx +21 -0
- package/templates/design-system-mantine/src/web/design-system/components/field-frame.tsx +65 -0
- package/templates/design-system-mantine/src/web/design-system/components/file-input.tsx +32 -0
- package/templates/design-system-mantine/src/web/design-system/components/multi-select-input.tsx +28 -0
- package/templates/design-system-mantine/src/web/design-system/components/paginated-table.tsx +94 -0
- package/templates/design-system-mantine/src/web/design-system/components/password-input.tsx +20 -0
- package/templates/design-system-mantine/src/web/design-system/components/radio-input.tsx +34 -0
- package/templates/design-system-mantine/src/web/design-system/components/select-input.tsx +24 -0
- package/templates/design-system-mantine/src/web/design-system/components/submit-button.tsx +24 -0
- package/templates/design-system-mantine/src/web/design-system/components/switch-input.tsx +19 -0
- package/templates/design-system-mantine/src/web/design-system/components/text-input.tsx +21 -0
- package/templates/design-system-mantine/src/web/design-system/components/textarea-input.tsx +21 -0
- package/templates/design-system-mantine/src/web/design-system/components/time-picker-input.tsx +19 -0
- package/templates/design-system-mantine/src/web/design-system/confirm.ts +40 -0
- package/templates/design-system-mantine/src/web/design-system/hooks/use-control.ts +30 -0
- package/templates/design-system-mantine/src/web/design-system/hooks/use-date-control.ts +51 -0
- package/templates/design-system-mantine/src/web/design-system/hooks/use-file-control.ts +26 -0
- package/templates/design-system-mantine/src/web/design-system/hooks/use-select-control.ts +85 -0
- package/templates/design-system-mantine/src/web/design-system/hooks/use-submit-control.ts +13 -0
- package/templates/design-system-mantine/src/web/design-system/mantine-theme.ts +32 -0
- package/templates/design-system-mantine/src/web/design-system/notify.ts +72 -0
- package/templates/design-system-mantine/src/web/design-system/provider.tsx +28 -0
- package/templates/design-system-mantine/src/web/design-system/types/control-props.ts +46 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { FormControlProps } from "@mongez/react-form";
|
|
2
|
+
import type { ReactNode } from "react";
|
|
3
|
+
|
|
4
|
+
export type ControlProps = Pick<
|
|
5
|
+
FormControlProps,
|
|
6
|
+
| "name"
|
|
7
|
+
| "rules"
|
|
8
|
+
| "schema"
|
|
9
|
+
| "validate"
|
|
10
|
+
| "validateOn"
|
|
11
|
+
| "onChange"
|
|
12
|
+
| "onError"
|
|
13
|
+
| "errors"
|
|
14
|
+
| "errorKeys"
|
|
15
|
+
| "disabled"
|
|
16
|
+
| "readOnly"
|
|
17
|
+
| "required"
|
|
18
|
+
> & {
|
|
19
|
+
id: string;
|
|
20
|
+
label: ReactNode;
|
|
21
|
+
hint?: ReactNode;
|
|
22
|
+
error?: ReactNode;
|
|
23
|
+
value?: unknown;
|
|
24
|
+
defaultValue?: unknown;
|
|
25
|
+
placeholder?: string;
|
|
26
|
+
className?: string;
|
|
27
|
+
dir?: "ltr" | "rtl";
|
|
28
|
+
autoComplete?: string;
|
|
29
|
+
rows?: number;
|
|
30
|
+
accept?: string;
|
|
31
|
+
multiple?: boolean;
|
|
32
|
+
};
|
|
33
|
+
export type Choice = { value: string; label: string; disabled?: boolean };
|
|
34
|
+
export type SelectProps = ControlProps & {
|
|
35
|
+
options: readonly Choice[];
|
|
36
|
+
searchLabel?: string;
|
|
37
|
+
emptyLabel?: string;
|
|
38
|
+
clearLabel?: string;
|
|
39
|
+
};
|
|
40
|
+
export type RadioProps = ControlProps & { options: readonly Choice[] };
|
|
41
|
+
export type CheckProps = ControlProps & { checked?: boolean; defaultChecked?: boolean };
|
|
42
|
+
export type DateProps = ControlProps & {
|
|
43
|
+
clearLabel?: string;
|
|
44
|
+
closeLabel?: string;
|
|
45
|
+
timeLabel?: string;
|
|
46
|
+
};
|