@rolder/kit 3.0.0-alpha.14 → 3.0.0-alpha.16

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 (129) hide show
  1. package/dist/TestIcon.d.ts +1 -0
  2. package/dist/TestIcon.js +4 -0
  3. package/dist/index.d.ts +1 -9
  4. package/dist/index.js +2 -0
  5. package/package.json +8 -32
  6. package/dist/ai/ui/conversation/ConversationContext.d.ts +0 -7
  7. package/dist/ai/ui/conversation/ConversationContext.js +0 -8
  8. package/dist/ai/ui/conversation/ConversationProvider.d.ts +0 -2
  9. package/dist/ai/ui/conversation/ConversationProvider.js +0 -14
  10. package/dist/ai/ui/conversation/Empty.d.ts +0 -1
  11. package/dist/ai/ui/conversation/Empty.js +0 -21
  12. package/dist/ai/ui/conversation/File.d.ts +0 -4
  13. package/dist/ai/ui/conversation/File.js +0 -42
  14. package/dist/ai/ui/conversation/FileIcon.d.ts +0 -3
  15. package/dist/ai/ui/conversation/FileIcon.js +0 -225
  16. package/dist/ai/ui/conversation/Loader.d.ts +0 -2
  17. package/dist/ai/ui/conversation/Loader.js +0 -12
  18. package/dist/ai/ui/conversation/Message.d.ts +0 -4
  19. package/dist/ai/ui/conversation/Message.js +0 -25
  20. package/dist/ai/ui/conversation/Root.d.ts +0 -2
  21. package/dist/ai/ui/conversation/Root.js +0 -26
  22. package/dist/ai/ui/conversation/index.d.ts +0 -13
  23. package/dist/ai/ui/conversation/index.js +0 -14
  24. package/dist/ai/ui/conversation/types.d.ts +0 -7
  25. package/dist/ai/ui/conversation/types.js +0 -0
  26. package/dist/ai/ui/conversation/useChatMessage.d.ts +0 -2
  27. package/dist/ai/ui/conversation/useChatMessage.js +0 -12
  28. package/dist/ai/ui/promptInput/File.d.ts +0 -2
  29. package/dist/ai/ui/promptInput/File.js +0 -117
  30. package/dist/ai/ui/promptInput/FileIcon.d.ts +0 -3
  31. package/dist/ai/ui/promptInput/FileIcon.js +0 -225
  32. package/dist/ai/ui/promptInput/Footer.d.ts +0 -2
  33. package/dist/ai/ui/promptInput/Footer.js +0 -8
  34. package/dist/ai/ui/promptInput/PromptInputContext.d.ts +0 -12
  35. package/dist/ai/ui/promptInput/PromptInputContext.js +0 -8
  36. package/dist/ai/ui/promptInput/PromptInputProvider.d.ts +0 -2
  37. package/dist/ai/ui/promptInput/PromptInputProvider.js +0 -50
  38. package/dist/ai/ui/promptInput/Root.d.ts +0 -3
  39. package/dist/ai/ui/promptInput/Root.js +0 -17
  40. package/dist/ai/ui/promptInput/Submit.d.ts +0 -2
  41. package/dist/ai/ui/promptInput/Submit.js +0 -40
  42. package/dist/ai/ui/promptInput/Textarea.d.ts +0 -2
  43. package/dist/ai/ui/promptInput/Textarea.js +0 -33
  44. package/dist/ai/ui/promptInput/index.d.ts +0 -8
  45. package/dist/ai/ui/promptInput/index.js +0 -13
  46. package/dist/ai/ui/promptInput/types.d.ts +0 -11
  47. package/dist/ai/ui/promptInput/types.js +0 -0
  48. package/dist/ai/utils/convertFileUIPartBlobToDataURL.d.ts +0 -5
  49. package/dist/ai/utils/convertFileUIPartBlobToDataURL.js +0 -21
  50. package/dist/ai/utils/parseAiMessagePart.d.ts +0 -2
  51. package/dist/ai/utils/parseAiMessagePart.js +0 -12
  52. package/dist/app/AppDefaults.d.ts +0 -3
  53. package/dist/app/AppDefaults.js +0 -27
  54. package/dist/app/DefaultApp.d.ts +0 -6
  55. package/dist/app/DefaultApp.js +0 -43
  56. package/dist/app/cookieColorSchemeManager.d.ts +0 -6
  57. package/dist/app/cookieColorSchemeManager.js +0 -46
  58. package/dist/app/defaultRequestMiddlewares.d.ts +0 -4
  59. package/dist/app/defaultRequestMiddlewares.js +0 -24
  60. package/dist/app/defaultTheme.d.ts +0 -141
  61. package/dist/app/defaultTheme.js +0 -24
  62. package/dist/functions/getCookie.d.ts +0 -3
  63. package/dist/functions/setCookie.d.ts +0 -10
  64. package/dist/functions/setCookies.d.ts +0 -14
  65. package/dist/hooks/useMutation.d.ts +0 -4
  66. package/dist/hooks/useMutationWithInvalidate.d.ts +0 -4
  67. package/dist/styles.css +0 -74
  68. package/dist/surreal/connection.d.ts +0 -9
  69. package/dist/surreal/deafaultCrud.d.ts +0 -2
  70. package/dist/surreal/deserialize.d.ts +0 -17
  71. package/dist/surreal/encryption.d.ts +0 -6
  72. package/dist/ui/AnimatedChevron.d.ts +0 -6
  73. package/dist/ui/JsonInput.d.ts +0 -2
  74. package/dist/ui/RouterLink.d.ts +0 -16
  75. package/dist/ui/editor/Content.d.ts +0 -3
  76. package/dist/ui/editor/Provider.d.ts +0 -17
  77. package/dist/ui/editor/Root.d.ts +0 -2
  78. package/dist/ui/editor/Toolbar.d.ts +0 -5
  79. package/dist/ui/editor/index.d.ts +0 -12
  80. package/dist/ui/editor/types.d.ts +0 -7
  81. package/dist/ui/error/DefaultError.d.ts +0 -2
  82. package/dist/ui/error/DefaultNotFound.d.ts +0 -1
  83. package/dist/ui/error/Forbidden.d.ts +0 -1
  84. package/dist/ui/error/defaultErrorNotification.d.ts +0 -1
  85. package/dist/ui/error/index.d.ts +0 -4
  86. package/dist/ui/form/blurOnError.d.ts +0 -4
  87. package/dist/ui/form/buttons/CancelButton.d.ts +0 -5
  88. package/dist/ui/form/buttons/SubmitButton.d.ts +0 -5
  89. package/dist/ui/form/buttons/SubscribeActionIcon.d.ts +0 -4
  90. package/dist/ui/form/buttons/SubscribeButton.d.ts +0 -5
  91. package/dist/ui/form/buttons/index.d.ts +0 -4
  92. package/dist/ui/form/context.d.ts +0 -83
  93. package/dist/ui/form/fields/JsonField.d.ts +0 -2
  94. package/dist/ui/form/fields/MultiSelectField.d.ts +0 -2
  95. package/dist/ui/form/fields/NumberField.d.ts +0 -2
  96. package/dist/ui/form/fields/PassowrdField.d.ts +0 -2
  97. package/dist/ui/form/fields/SelectField.d.ts +0 -2
  98. package/dist/ui/form/fields/SwitchField.d.ts +0 -2
  99. package/dist/ui/form/fields/TextField.d.ts +0 -2
  100. package/dist/ui/form/fields/TextPassowrdField.d.ts +0 -2
  101. package/dist/ui/form/fields/TextareaField.d.ts +0 -2
  102. package/dist/ui/form/fields/index.d.ts +0 -9
  103. package/dist/ui/form/fieldsSchema.d.ts +0 -12
  104. package/dist/ui/form/index.d.ts +0 -3
  105. package/dist/ui/hoverPaper/HoverPaper.d.ts +0 -6
  106. package/dist/ui/hoverPaper/index.d.ts +0 -2
  107. package/dist/ui/hoverPaper/usePaperHover.d.ts +0 -4
  108. package/dist/ui/saveInput/JsonInput.d.ts +0 -6
  109. package/dist/ui/saveInput/NumberInput.d.ts +0 -6
  110. package/dist/ui/saveInput/SaveInput.d.ts +0 -36
  111. package/dist/ui/saveInput/Select.d.ts +0 -6
  112. package/dist/ui/saveInput/Switch.d.ts +0 -6
  113. package/dist/ui/saveInput/TextInput.d.ts +0 -6
  114. package/dist/ui/saveInput/Textarea.d.ts +0 -6
  115. package/dist/ui/saveInput/index.d.ts +0 -1
  116. package/dist/ui/scrollArea/ScrollArea.d.ts +0 -62
  117. package/dist/ui/scrollArea/ScrollArea.js +0 -30
  118. package/dist/ui/scrollArea/ScrollAreaButton.d.ts +0 -5
  119. package/dist/ui/scrollArea/ScrollAreaButton.js +0 -51
  120. package/dist/ui/scrollArea/ScrollAreaContent.d.ts +0 -6
  121. package/dist/ui/scrollArea/ScrollAreaContent.js +0 -29
  122. package/dist/ui/scrollArea/context.d.ts +0 -28
  123. package/dist/ui/scrollArea/context.js +0 -10
  124. package/dist/ui/scrollArea/index.d.ts +0 -3
  125. package/dist/ui/scrollArea/index.js +0 -3
  126. package/dist/ui/scrollArea/types.d.ts +0 -65
  127. package/dist/ui/scrollArea/types.js +0 -0
  128. package/dist/ui/scrollArea/useScrollArea.d.ts +0 -9
  129. package/dist/ui/scrollArea/useScrollArea.js +0 -146
@@ -1,83 +0,0 @@
1
- declare const useFieldContext: <TData>() => import("@tanstack/form-core").FieldApi<any, string, TData, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any>, useFormContext: () => import("@tanstack/react-form").ReactFormExtendedApi<Record<string, never>, any, any, any, any, any, any, any, any, any, any, any>;
2
- declare const useAppForm: <TFormData, TOnMount extends import("@tanstack/form-core").FormValidateOrFn<TFormData> | undefined, TOnChange extends import("@tanstack/form-core").FormValidateOrFn<TFormData> | undefined, TOnChangeAsync extends import("@tanstack/form-core").FormAsyncValidateOrFn<TFormData> | undefined, TOnBlur extends import("@tanstack/form-core").FormValidateOrFn<TFormData> | undefined, TOnBlurAsync extends import("@tanstack/form-core").FormAsyncValidateOrFn<TFormData> | undefined, TOnSubmit extends import("@tanstack/form-core").FormValidateOrFn<TFormData> | undefined, TOnSubmitAsync extends import("@tanstack/form-core").FormAsyncValidateOrFn<TFormData> | undefined, TOnDynamic extends import("@tanstack/form-core").FormValidateOrFn<TFormData> | undefined, TOnDynamicAsync extends import("@tanstack/form-core").FormAsyncValidateOrFn<TFormData> | undefined, TOnServer extends import("@tanstack/form-core").FormAsyncValidateOrFn<TFormData> | undefined, TSubmitMeta>(props: import("@tanstack/form-core").FormOptions<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnDynamic, TOnDynamicAsync, TOnServer, TSubmitMeta>) => import("@tanstack/react-form").AppFieldExtendedReactFormApi<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnDynamic, TOnDynamicAsync, TOnServer, TSubmitMeta, {
3
- readonly TextField: (props: import("@mantine/core").TextInputProps) => import("react/jsx-runtime").JSX.Element;
4
- readonly NumberField: (props: import("@mantine/core").NumberInputProps) => import("react/jsx-runtime").JSX.Element;
5
- readonly TextareaField: (props: import("@mantine/core").TextareaProps) => import("react/jsx-runtime").JSX.Element;
6
- readonly TextPassowrdField: (props: import("@mantine/core").TextInputProps) => import("react/jsx-runtime").JSX.Element;
7
- readonly PassowrdField: (props: import("@mantine/core").PasswordInputProps) => import("react/jsx-runtime").JSX.Element;
8
- readonly SelectField: (props: import("@mantine/core").SelectProps) => import("react/jsx-runtime").JSX.Element;
9
- readonly MultiSelectField: (props: import("@mantine/core").MultiSelectProps) => import("react/jsx-runtime").JSX.Element;
10
- readonly SwitchField: (props: import("@mantine/core").SwitchProps) => import("react/jsx-runtime").JSX.Element;
11
- readonly JsonField: (props: import("@uiw/react-codemirror").ReactCodeMirrorProps) => import("react/jsx-runtime").JSX.Element;
12
- }, {
13
- readonly SubmitButton: (props: import("@mantine/core").ButtonProps & {
14
- label?: string;
15
- onClick?: () => void;
16
- }) => import("react/jsx-runtime").JSX.Element;
17
- readonly CancelButton: (props: import("@mantine/core").ButtonProps & {
18
- label?: string;
19
- onClick?: () => void;
20
- }) => import("react/jsx-runtime").JSX.Element;
21
- readonly SubscribeButton: (props: import("@mantine/core").ButtonProps & {
22
- label: string;
23
- onClick?: () => void;
24
- }) => import("react/jsx-runtime").JSX.Element;
25
- readonly SubscribeActionIcon: (props: import("@mantine/core").ActionIconProps & {
26
- onClick?: () => void;
27
- }) => import("react/jsx-runtime").JSX.Element;
28
- }>, withForm: <TFormData, TOnMount extends import("@tanstack/form-core").FormValidateOrFn<TFormData> | undefined, TOnChange extends import("@tanstack/form-core").FormValidateOrFn<TFormData> | undefined, TOnChangeAsync extends import("@tanstack/form-core").FormAsyncValidateOrFn<TFormData> | undefined, TOnBlur extends import("@tanstack/form-core").FormValidateOrFn<TFormData> | undefined, TOnBlurAsync extends import("@tanstack/form-core").FormAsyncValidateOrFn<TFormData> | undefined, TOnSubmit extends import("@tanstack/form-core").FormValidateOrFn<TFormData> | undefined, TOnSubmitAsync extends import("@tanstack/form-core").FormAsyncValidateOrFn<TFormData> | undefined, TOnDynamic extends import("@tanstack/form-core").FormValidateOrFn<TFormData> | undefined, TOnDynamicAsync extends import("@tanstack/form-core").FormAsyncValidateOrFn<TFormData> | undefined, TOnServer extends import("@tanstack/form-core").FormAsyncValidateOrFn<TFormData> | undefined, TSubmitMeta, TRenderProps extends object = {}>({ render, props, }: import("@tanstack/react-form").WithFormProps<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnDynamic, TOnDynamicAsync, TOnServer, TSubmitMeta, {
29
- readonly TextField: (props: import("@mantine/core").TextInputProps) => import("react/jsx-runtime").JSX.Element;
30
- readonly NumberField: (props: import("@mantine/core").NumberInputProps) => import("react/jsx-runtime").JSX.Element;
31
- readonly TextareaField: (props: import("@mantine/core").TextareaProps) => import("react/jsx-runtime").JSX.Element;
32
- readonly TextPassowrdField: (props: import("@mantine/core").TextInputProps) => import("react/jsx-runtime").JSX.Element;
33
- readonly PassowrdField: (props: import("@mantine/core").PasswordInputProps) => import("react/jsx-runtime").JSX.Element;
34
- readonly SelectField: (props: import("@mantine/core").SelectProps) => import("react/jsx-runtime").JSX.Element;
35
- readonly MultiSelectField: (props: import("@mantine/core").MultiSelectProps) => import("react/jsx-runtime").JSX.Element;
36
- readonly SwitchField: (props: import("@mantine/core").SwitchProps) => import("react/jsx-runtime").JSX.Element;
37
- readonly JsonField: (props: import("@uiw/react-codemirror").ReactCodeMirrorProps) => import("react/jsx-runtime").JSX.Element;
38
- }, {
39
- readonly SubmitButton: (props: import("@mantine/core").ButtonProps & {
40
- label?: string;
41
- onClick?: () => void;
42
- }) => import("react/jsx-runtime").JSX.Element;
43
- readonly CancelButton: (props: import("@mantine/core").ButtonProps & {
44
- label?: string;
45
- onClick?: () => void;
46
- }) => import("react/jsx-runtime").JSX.Element;
47
- readonly SubscribeButton: (props: import("@mantine/core").ButtonProps & {
48
- label: string;
49
- onClick?: () => void;
50
- }) => import("react/jsx-runtime").JSX.Element;
51
- readonly SubscribeActionIcon: (props: import("@mantine/core").ActionIconProps & {
52
- onClick?: () => void;
53
- }) => import("react/jsx-runtime").JSX.Element;
54
- }, TRenderProps>) => import("react").FunctionComponent<import("react").PropsWithChildren<NoInfer<[unknown] extends [TRenderProps] ? any : TRenderProps> & {
55
- form: import("@tanstack/react-form").AppFieldExtendedReactFormApi<[unknown] extends [TFormData] ? any : TFormData, [import("@tanstack/form-core").FormValidateOrFn<TFormData> | undefined] extends [TOnMount] ? [TOnMount] extends [TOnMount & (import("@tanstack/form-core").FormValidateOrFn<TFormData> | undefined)] ? any : TOnMount : TOnMount, [import("@tanstack/form-core").FormValidateOrFn<TFormData> | undefined] extends [TOnChange] ? [TOnChange] extends [TOnChange & (import("@tanstack/form-core").FormValidateOrFn<TFormData> | undefined)] ? any : TOnChange : TOnChange, [import("@tanstack/form-core").FormValidateOrFn<TFormData> | undefined] extends [TOnChangeAsync] ? [TOnChangeAsync] extends [TOnChangeAsync & (import("@tanstack/form-core").FormValidateOrFn<TFormData> | undefined)] ? any : TOnChangeAsync : TOnChangeAsync, [import("@tanstack/form-core").FormValidateOrFn<TFormData> | undefined] extends [TOnBlur] ? [TOnBlur] extends [TOnBlur & (import("@tanstack/form-core").FormValidateOrFn<TFormData> | undefined)] ? any : TOnBlur : TOnBlur, [import("@tanstack/form-core").FormValidateOrFn<TFormData> | undefined] extends [TOnBlurAsync] ? [TOnBlurAsync] extends [TOnBlurAsync & (import("@tanstack/form-core").FormValidateOrFn<TFormData> | undefined)] ? any : TOnBlurAsync : TOnBlurAsync, [import("@tanstack/form-core").FormValidateOrFn<TFormData> | undefined] extends [TOnSubmit] ? [TOnSubmit] extends [TOnSubmit & (import("@tanstack/form-core").FormValidateOrFn<TFormData> | undefined)] ? any : TOnSubmit : TOnSubmit, [import("@tanstack/form-core").FormValidateOrFn<TFormData> | undefined] extends [TOnSubmitAsync] ? [TOnSubmitAsync] extends [TOnSubmitAsync & (import("@tanstack/form-core").FormValidateOrFn<TFormData> | undefined)] ? any : TOnSubmitAsync : TOnSubmitAsync, [import("@tanstack/form-core").FormValidateOrFn<TFormData> | undefined] extends [TOnDynamic] ? [TOnDynamic] extends [TOnDynamic & (import("@tanstack/form-core").FormValidateOrFn<TFormData> | undefined)] ? any : TOnDynamic : TOnDynamic, [import("@tanstack/form-core").FormValidateOrFn<TFormData> | undefined] extends [TOnDynamicAsync] ? [TOnDynamicAsync] extends [TOnDynamicAsync & (import("@tanstack/form-core").FormValidateOrFn<TFormData> | undefined)] ? any : TOnDynamicAsync : TOnDynamicAsync, [import("@tanstack/form-core").FormValidateOrFn<TFormData> | undefined] extends [TOnServer] ? [TOnServer] extends [TOnServer & (import("@tanstack/form-core").FormValidateOrFn<TFormData> | undefined)] ? any : TOnServer : TOnServer, [unknown] extends [TSubmitMeta] ? any : TSubmitMeta, {
56
- readonly TextField: (props: import("@mantine/core").TextInputProps) => import("react/jsx-runtime").JSX.Element;
57
- readonly NumberField: (props: import("@mantine/core").NumberInputProps) => import("react/jsx-runtime").JSX.Element;
58
- readonly TextareaField: (props: import("@mantine/core").TextareaProps) => import("react/jsx-runtime").JSX.Element;
59
- readonly TextPassowrdField: (props: import("@mantine/core").TextInputProps) => import("react/jsx-runtime").JSX.Element;
60
- readonly PassowrdField: (props: import("@mantine/core").PasswordInputProps) => import("react/jsx-runtime").JSX.Element;
61
- readonly SelectField: (props: import("@mantine/core").SelectProps) => import("react/jsx-runtime").JSX.Element;
62
- readonly MultiSelectField: (props: import("@mantine/core").MultiSelectProps) => import("react/jsx-runtime").JSX.Element;
63
- readonly SwitchField: (props: import("@mantine/core").SwitchProps) => import("react/jsx-runtime").JSX.Element;
64
- readonly JsonField: (props: import("@uiw/react-codemirror").ReactCodeMirrorProps) => import("react/jsx-runtime").JSX.Element;
65
- }, {
66
- readonly SubmitButton: (props: import("@mantine/core").ButtonProps & {
67
- label?: string;
68
- onClick?: () => void;
69
- }) => import("react/jsx-runtime").JSX.Element;
70
- readonly CancelButton: (props: import("@mantine/core").ButtonProps & {
71
- label?: string;
72
- onClick?: () => void;
73
- }) => import("react/jsx-runtime").JSX.Element;
74
- readonly SubscribeButton: (props: import("@mantine/core").ButtonProps & {
75
- label: string;
76
- onClick?: () => void;
77
- }) => import("react/jsx-runtime").JSX.Element;
78
- readonly SubscribeActionIcon: (props: import("@mantine/core").ActionIconProps & {
79
- onClick?: () => void;
80
- }) => import("react/jsx-runtime").JSX.Element;
81
- }>;
82
- }>>;
83
- export { useAppForm, useFieldContext, useFormContext, withForm };
@@ -1,2 +0,0 @@
1
- import type { ReactCodeMirrorProps } from '@uiw/react-codemirror';
2
- export declare const JsonField: (props: ReactCodeMirrorProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- import { type MultiSelectProps } from '@mantine/core';
2
- export declare const MultiSelectField: (props: MultiSelectProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- import { type NumberInputProps } from '@mantine/core';
2
- export declare const NumberField: (props: NumberInputProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- import { type PasswordInputProps } from '@mantine/core';
2
- export declare const PassowrdField: (props: PasswordInputProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- import { type SelectProps } from '@mantine/core';
2
- export declare const SelectField: (props: SelectProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- import { type SwitchProps } from '@mantine/core';
2
- export declare const SwitchField: (props: SwitchProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- import { type TextInputProps } from '@mantine/core';
2
- export declare const TextField: (props: TextInputProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- import { type TextInputProps } from '@mantine/core';
2
- export declare const TextPassowrdField: (props: TextInputProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- import { type TextareaProps } from '@mantine/core';
2
- export declare const TextareaField: (props: TextareaProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,9 +0,0 @@
1
- export * from './JsonField';
2
- export * from './MultiSelectField';
3
- export * from './NumberField';
4
- export * from './PassowrdField';
5
- export * from './SelectField';
6
- export * from './SwitchField';
7
- export * from './TextareaField';
8
- export * from './TextField';
9
- export * from './TextPassowrdField';
@@ -1,12 +0,0 @@
1
- import z from 'zod/v4';
2
- export declare const fieldsSchema: {
3
- id: z.ZodString;
4
- str: z.ZodString;
5
- strArr: z.ZodArray<z.ZodString>;
6
- strMin3: z.ZodString;
7
- select: z.ZodString;
8
- email: z.ZodEmail;
9
- username: z.ZodString;
10
- password: z.ZodString;
11
- kebab: z.ZodString;
12
- };
@@ -1,3 +0,0 @@
1
- export { blurOnError } from './blurOnError';
2
- export { useAppForm, useFieldContext, withForm } from './context';
3
- export { fieldsSchema } from './fieldsSchema';
@@ -1,6 +0,0 @@
1
- import { type ElementProps, type PaperProps } from '@mantine/core';
2
- interface Props extends PaperProps, ElementProps<'div', keyof PaperProps> {
3
- disabled?: boolean;
4
- }
5
- export declare const HoverPaper: import("react").ForwardRefExoticComponent<Props & import("react").RefAttributes<HTMLDivElement>>;
6
- export {};
@@ -1,2 +0,0 @@
1
- export { HoverPaper } from './HoverPaper';
2
- export { usePaperHover } from './usePaperHover';
@@ -1,4 +0,0 @@
1
- export declare const usePaperHover: () => {
2
- paperHovered: boolean;
3
- paperRef: (node: HTMLDivElement | null) => void;
4
- };
@@ -1,6 +0,0 @@
1
- import type { ReactCodeMirrorProps } from '@uiw/react-codemirror';
2
- export declare const JsonInput: ({ initialValue, onChange, debounce, ...props }: {
3
- initialValue: string;
4
- onChange: (value: string) => Promise<void>;
5
- debounce?: number;
6
- } & Omit<ReactCodeMirrorProps, "value" | "onChange">) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +0,0 @@
1
- import { type NumberInputProps } from '@mantine/core';
2
- export declare const NumberInput: ({ initialValue, onChange, debounce, ...props }: {
3
- initialValue: string | number;
4
- onChange: (value: string | number) => Promise<void>;
5
- debounce?: number;
6
- } & Omit<NumberInputProps, "value" | "onChange">) => import("react/jsx-runtime").JSX.Element;
@@ -1,36 +0,0 @@
1
- export declare const SaveInput: (({ initialValue, onChange, debounce, ...props }: {
2
- initialValue?: string;
3
- onChange: (value: string) => Promise<void>;
4
- debounce?: number;
5
- } & Omit<import("@mantine/core").TextInputProps, "value" | "onChange">) => import("react/jsx-runtime").JSX.Element) & {
6
- TextInput: ({ initialValue, onChange, debounce, ...props }: {
7
- initialValue?: string;
8
- onChange: (value: string) => Promise<void>;
9
- debounce?: number;
10
- } & Omit<import("@mantine/core").TextInputProps, "value" | "onChange">) => import("react/jsx-runtime").JSX.Element;
11
- NumberInput: ({ initialValue, onChange, debounce, ...props }: {
12
- initialValue: string | number;
13
- onChange: (value: string | number) => Promise<void>;
14
- debounce?: number;
15
- } & Omit<import("@mantine/core").NumberInputProps, "value" | "onChange">) => import("react/jsx-runtime").JSX.Element;
16
- Textarea: ({ initialValue, onChange, debounce, ...props }: {
17
- initialValue: string;
18
- onChange: (value: string) => Promise<void>;
19
- debounce?: number;
20
- } & Omit<import("@mantine/core").TextareaProps, "value" | "onChange">) => import("react/jsx-runtime").JSX.Element;
21
- Switch: ({ initialValue, onChange, debounce, w, ...props }: {
22
- initialValue: boolean;
23
- onChange: (value: boolean) => Promise<void>;
24
- debounce?: number;
25
- } & Omit<import("@mantine/core").SwitchProps, "checked" | "onChange">) => import("react/jsx-runtime").JSX.Element;
26
- JsonInput: ({ initialValue, onChange, debounce, ...props }: {
27
- initialValue: string;
28
- onChange: (value: string) => Promise<void>;
29
- debounce?: number;
30
- } & Omit<import("@uiw/react-codemirror").ReactCodeMirrorProps, "value" | "onChange">) => import("react/jsx-runtime").JSX.Element;
31
- Select: ({ initialValue, onChange, debounce, ...props }: {
32
- initialValue: string | null;
33
- onChange: (value: string | null) => Promise<void>;
34
- debounce?: number;
35
- } & Omit<import("@mantine/core").SelectProps, "value" | "onChange">) => import("react/jsx-runtime").JSX.Element;
36
- };
@@ -1,6 +0,0 @@
1
- import { type SelectProps } from '@mantine/core';
2
- export declare const Select: ({ initialValue, onChange, debounce, ...props }: {
3
- initialValue: string | null;
4
- onChange: (value: string | null) => Promise<void>;
5
- debounce?: number;
6
- } & Omit<SelectProps, "value" | "onChange">) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +0,0 @@
1
- import { type SwitchProps } from '@mantine/core';
2
- export declare const Switch: ({ initialValue, onChange, debounce, w, ...props }: {
3
- initialValue: boolean;
4
- onChange: (value: boolean) => Promise<void>;
5
- debounce?: number;
6
- } & Omit<SwitchProps, "checked" | "onChange">) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +0,0 @@
1
- import { type TextInputProps } from '@mantine/core';
2
- export declare const TextInput: ({ initialValue, onChange, debounce, ...props }: {
3
- initialValue?: string;
4
- onChange: (value: string) => Promise<void>;
5
- debounce?: number;
6
- } & Omit<TextInputProps, "value" | "onChange">) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +0,0 @@
1
- import { type TextareaProps } from '@mantine/core';
2
- export declare const Textarea: ({ initialValue, onChange, debounce, ...props }: {
3
- initialValue: string;
4
- onChange: (value: string) => Promise<void>;
5
- debounce?: number;
6
- } & Omit<TextareaProps, "value" | "onChange">) => import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export { SaveInput } from './SaveInput';
@@ -1,62 +0,0 @@
1
- import type { ScrollAreaContextValue, ScrollAreaProps } from './types';
2
- /**
3
- * ScrollArea Component - Расширенная область прокрутки с автоскроллом
4
- *
5
- * @example
6
- * // Базовое использование
7
- * <ScrollArea h={300}>
8
- * <div>Контент для прокрутки</div>
9
- * </ScrollArea>
10
- *
11
- * @example
12
- * // С автоскроллом и кнопкой
13
- * <ScrollArea autoScroll scrollToBottomOnInit h={400}>
14
- * <div>Чат сообщения...</div>
15
- * <ScrollArea.ScrollButton className="absolute bottom-4 right-4" />
16
- * </ScrollArea>
17
- *
18
- * @example
19
- * // С кастомными настройками
20
- * <ScrollArea
21
- * autoScroll={true}
22
- * animated={true}
23
- * nearThreshold={50}
24
- * h={300}
25
- * scrollbarSize={6}
26
- * type="hover"
27
- * >
28
- * {messages.map(msg => <div key={msg.id}>{msg.text}</div>)}
29
- * <ScrollArea.ScrollButton
30
- * className="absolute bottom-4 right-4"
31
- * upIcon={<CustomUpIcon />}
32
- * downIcon={<CustomDownIcon />}
33
- * />
34
- * </ScrollArea>
35
- *
36
- * @example
37
- * // Использование хука для доступа к viewport
38
- * function CustomControl() {
39
- * const { isAtBottom, scrollToBottom, viewportRef } = useScrollArea();
40
- *
41
- * const scrollToElement = () => {
42
- * const target = viewportRef.current?.querySelector('[data-target]');
43
- * target?.scrollIntoView();
44
- * };
45
- *
46
- * return (
47
- * <button onClick={scrollToBottom} disabled={isAtBottom}>
48
- * Прокрутить вниз
49
- * </button>
50
- * );
51
- * }
52
- */
53
- export declare const ScrollArea: {
54
- ({ children, autoScroll, scrollToBottomOnInit, animated, nearThreshold, radius, ...mantineProps }: ScrollAreaProps): import("react/jsx-runtime").JSX.Element;
55
- displayName: string;
56
- } & {
57
- ScrollButton: {
58
- ({ className }: import("./types").ScrollButtonProps): import("react/jsx-runtime").JSX.Element | null;
59
- displayName: string;
60
- };
61
- Provider: import("react").Provider<ScrollAreaContextValue | null>;
62
- };
@@ -1,30 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import { ScrollAreaProvider } from "./context.js";
3
- import { ScrollAreaButton } from "./ScrollAreaButton.js";
4
- import { ScrollAreaContent } from "./ScrollAreaContent.js";
5
- import { useScrollAreaState } from "./useScrollArea.js";
6
- const ScrollAreaRoot = ({ children, autoScroll = false, scrollToBottomOnInit = false, animated = true, nearThreshold = 100, radius, ...mantineProps })=>{
7
- const scrollAreaValue = useScrollAreaState({
8
- autoScroll,
9
- scrollToBottomOnInit,
10
- animated,
11
- nearThreshold
12
- });
13
- const contextValue = {
14
- ...scrollAreaValue,
15
- radius,
16
- mantineProps
17
- };
18
- return /*#__PURE__*/ jsx(ScrollAreaProvider, {
19
- value: contextValue,
20
- children: /*#__PURE__*/ jsx(ScrollAreaContent, {
21
- children: children
22
- })
23
- });
24
- };
25
- ScrollAreaRoot.displayName = 'ScrollArea';
26
- const ScrollArea = Object.assign(ScrollAreaRoot, {
27
- ScrollButton: ScrollAreaButton,
28
- Provider: ScrollAreaProvider
29
- });
30
- export { ScrollArea };
@@ -1,5 +0,0 @@
1
- import type { ScrollButtonProps } from './types';
2
- export declare const ScrollAreaButton: {
3
- ({ className }: ScrollButtonProps): import("react/jsx-runtime").JSX.Element | null;
4
- displayName: string;
5
- };
@@ -1,51 +0,0 @@
1
- import { jsx, jsxs } from "react/jsx-runtime";
2
- import { ActionIcon } from "@mantine/core";
3
- import { useScrollArea } from "./context.js";
4
- const ScrollAreaButton = ({ className })=>{
5
- const { hasScrollableContent, isAboveCenter, scrollToTop, scrollToBottom } = useScrollArea();
6
- if (!hasScrollableContent) return null;
7
- const isScrollingDown = isAboveCenter;
8
- const icon = /*#__PURE__*/ jsxs("svg", {
9
- xmlns: "http://www.w3.org/2000/svg",
10
- width: "24",
11
- height: "24",
12
- viewBox: "0 0 24 24",
13
- fill: "none",
14
- stroke: "currentColor",
15
- strokeWidth: "1.5",
16
- strokeLinecap: "round",
17
- strokeLinejoin: "round",
18
- role: "img",
19
- "aria-label": "Chevron",
20
- style: {
21
- transition: 'transform 0.2s ease-in-out',
22
- transform: isScrollingDown ? 'rotate(-180deg)' : 'rotate(0deg)'
23
- },
24
- children: [
25
- /*#__PURE__*/ jsx("path", {
26
- stroke: "none",
27
- d: "M0 0h24v24H0z",
28
- fill: "none"
29
- }),
30
- /*#__PURE__*/ jsx("path", {
31
- d: "M6 9l6 6l6 -6"
32
- })
33
- ]
34
- });
35
- const handleClick = ()=>{
36
- if (isScrollingDown) scrollToBottom();
37
- else scrollToTop();
38
- };
39
- return /*#__PURE__*/ jsx(ActionIcon, {
40
- pos: "absolute",
41
- bottom: 16,
42
- right: 16,
43
- variant: "light",
44
- onClick: handleClick,
45
- className: className,
46
- "aria-label": isScrollingDown ? 'Scroll to bottom' : 'Scroll to top',
47
- children: icon
48
- });
49
- };
50
- ScrollAreaButton.displayName = 'ScrollArea.ScrollButton';
51
- export { ScrollAreaButton };
@@ -1,6 +0,0 @@
1
- export declare const ScrollAreaContent: {
2
- ({ children, }: {
3
- children: React.ReactNode;
4
- }): import("react/jsx-runtime").JSX.Element;
5
- displayName: string;
6
- };
@@ -1,29 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import { Box, ScrollArea, getRadius } from "@mantine/core";
3
- import { useContext } from "react";
4
- import { ScrollAreaContext } from "./context.js";
5
- const ScrollAreaContent = ({ children })=>{
6
- const fullContext = useContext(ScrollAreaContext);
7
- if (!fullContext) throw new Error('ScrollAreaContent must be used within ScrollArea');
8
- const { _callbackRef, mantineProps, radius, _contentResizeRef } = fullContext;
9
- return /*#__PURE__*/ jsx(ScrollArea, {
10
- classNames: {
11
- viewport: 'rolder-scroll-area-viewport',
12
- content: 'rolder-scroll-area-content',
13
- scrollbar: 'rolder-scroll-area-scrollbar'
14
- },
15
- style: {
16
- '--radius': radius ? getRadius(radius) : void 0
17
- },
18
- ...mantineProps,
19
- viewportRef: _callbackRef,
20
- children: /*#__PURE__*/ jsx(Box, {
21
- h: "100%",
22
- w: "100%",
23
- ref: _contentResizeRef,
24
- children: children
25
- })
26
- });
27
- };
28
- ScrollAreaContent.displayName = 'ScrollArea.Content';
29
- export { ScrollAreaContent };
@@ -1,28 +0,0 @@
1
- import type { ScrollAreaContextValue, ScrollAreaHook } from './types';
2
- /** Внутренний контекст для передачи состояния ScrollArea */
3
- export declare const ScrollAreaContext: import("react").Context<ScrollAreaContextValue | null>;
4
- export declare const ScrollAreaProvider: import("react").Provider<ScrollAreaContextValue | null>;
5
- /**
6
- * Хук для доступа к состоянию и методам ScrollArea
7
- *
8
- * @returns Объект с индикаторами позиции, методами управления и ref на viewport
9
- *
10
- * @example
11
- * ```tsx
12
- * function MyComponent() {
13
- * const { isAtBottom, scrollToTop, viewportRef } = useScrollArea();
14
- *
15
- * const scrollToElement = () => {
16
- * const target = viewportRef.current?.querySelector('[data-target]');
17
- * target?.scrollIntoView();
18
- * };
19
- *
20
- * return (
21
- * <button onClick={scrollToTop} disabled={isAtTop}>
22
- * В начало
23
- * </button>
24
- * );
25
- * }
26
- * ```
27
- */
28
- export declare const useScrollArea: () => ScrollAreaHook;
@@ -1,10 +0,0 @@
1
- import { createContext, useContext } from "react";
2
- const ScrollAreaContext = /*#__PURE__*/ createContext(null);
3
- const ScrollAreaProvider = ScrollAreaContext.Provider;
4
- const useScrollArea = ()=>{
5
- const context = useContext(ScrollAreaContext);
6
- if (!context) throw new Error('useScrollArea must be used within ScrollArea');
7
- const { _callbackRef, mantineProps: _, radius: __, ...publicAPI } = context;
8
- return publicAPI;
9
- };
10
- export { ScrollAreaContext, ScrollAreaProvider, useScrollArea };
@@ -1,3 +0,0 @@
1
- export { useScrollArea } from './context';
2
- export { ScrollArea } from './ScrollArea';
3
- export type { ScrollAreaContextValue, ScrollAreaHook, ScrollAreaProps, ScrollAreaState, ScrollButtonProps, ScrollPosition, } from './types';
@@ -1,3 +0,0 @@
1
- import { useScrollArea } from "./context.js";
2
- import { ScrollArea } from "./ScrollArea.js";
3
- export { ScrollArea, useScrollArea };
@@ -1,65 +0,0 @@
1
- import type { MantineRadius, ScrollAreaProps as MantineScrollAreaProps } from '@mantine/core';
2
- import type { ReactNode } from 'react';
3
- export interface ScrollAreaProps extends Omit<MantineScrollAreaProps, 'children'> {
4
- /** Включение автоскролла при добавлении контента (по умолчанию false) */
5
- autoScroll?: boolean;
6
- /** Прокрутить к концу при инициализации компонента (по умолчанию false) */
7
- scrollToBottomOnInit?: boolean;
8
- /** Анимированная прокрутка (по умолчанию true) */
9
- animated?: boolean;
10
- /** Отступ для near-зон в пикселях (по умолчанию 100) */
11
- nearThreshold?: number;
12
- /** Радиус для viewport и scrollbar на тот случай, когда они "торчат" углами*/
13
- radius?: MantineRadius;
14
- /** Дочерние элементы - автоматически оборачиваются в ScrollArea.Content */
15
- children: ReactNode;
16
- }
17
- export interface ScrollAreaHook {
18
- /** Точно в начале (scrollTop === 0) */
19
- isAtTop: boolean;
20
- /** В пределах nearThreshold от начала */
21
- isNearTop: boolean;
22
- /** Точно в конце (scrollTop + clientHeight >= scrollHeight) */
23
- isAtBottom: boolean;
24
- /** В пределах nearThreshold от конца */
25
- isNearBottom: boolean;
26
- /** Выше центральной точки области прокрутки */
27
- isAboveCenter: boolean;
28
- /** Есть контент требующий прокрутки */
29
- hasScrollableContent: boolean;
30
- /** Прокрутить к началу области */
31
- scrollToTop: (animated?: boolean) => void;
32
- /** Прокрутить к концу области */
33
- scrollToBottom: (animated?: boolean) => void;
34
- /** React ref на viewport элемент для прямого доступа к DOM */
35
- viewportRef: React.RefObject<HTMLDivElement | null>;
36
- }
37
- export interface ScrollAreaState extends ScrollAreaHook {
38
- /** Внутренний callback ref для подключения к Mantine ScrollArea */
39
- _callbackRef: (node: HTMLDivElement | null) => void;
40
- /** Внутренний ref для наблюдения за изменениями контента */
41
- _contentResizeRef: (node: HTMLDivElement | null) => void;
42
- }
43
- export interface ScrollAreaContextValue extends ScrollAreaState {
44
- /** Радиус для viewport и scrollbar на тот случай, когда они "торчат" углами*/
45
- radius?: MantineRadius;
46
- /** Пропсы Mantine ScrollArea, переданные в корневой компонент */
47
- mantineProps: Omit<MantineScrollAreaProps, 'children'>;
48
- }
49
- export interface ScrollButtonProps {
50
- /** CSS классы для стилизации кнопки */
51
- className?: string;
52
- /** Иконка для прокрутки вверх (по умолчанию IconChevronUp) */
53
- upIcon?: ReactNode;
54
- /** Иконка для прокрутки вниз (по умолчанию IconChevronDown) */
55
- downIcon?: ReactNode;
56
- }
57
- /** Внутренний тип для отслеживания позиции скролла */
58
- export interface ScrollPosition {
59
- /** Текущая позиция скролла сверху */
60
- scrollTop: number;
61
- /** Высота видимой области */
62
- clientHeight: number;
63
- /** Общая высота прокручиваемого контента */
64
- scrollHeight: number;
65
- }
File without changes
@@ -1,9 +0,0 @@
1
- import type { ScrollAreaState } from './types';
2
- interface UseScrollAreaOptions {
3
- autoScroll?: boolean;
4
- scrollToBottomOnInit?: boolean;
5
- animated?: boolean;
6
- nearThreshold?: number;
7
- }
8
- export declare const useScrollAreaState: (options?: UseScrollAreaOptions) => ScrollAreaState;
9
- export {};