@candy.thieves/ui-kit-lumos 0.0.13 → 0.0.14
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/index.css +1 -1
- package/dist/index.js +1534 -1352
- package/dist/index.js.map +1 -1
- package/dist/types/components/TextArea/FormTextArea.d.ts +8 -0
- package/dist/types/components/TextArea/TextArea.d.ts +11 -0
- package/dist/types/components/TextArea/index.d.ts +2 -0
- package/dist/types/components/index.d.ts +2 -0
- package/dist/types/types/types.d.ts +10 -0
- package/dist/types/utils/getHorizontalMetrics.d.ts +1 -1
- package/dist/types/utils/getVerticalMetrics.d.ts +1 -1
- package/package.json +1 -1
- package/dist/types/components/types/index.d.ts +0 -1
- package/dist/types/components/types/scroll.types.d.ts +0 -10
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type Control, type FieldPath, type FieldValues } from 'react-hook-form';
|
|
2
|
+
import { type TextAreaProps } from './TextArea';
|
|
3
|
+
type FormTextAreaProps<T extends FieldValues> = {
|
|
4
|
+
control: Control<T>;
|
|
5
|
+
name: FieldPath<T>;
|
|
6
|
+
} & Omit<TextAreaProps, 'defaultValue' | 'onBlur' | 'onChange' | 'value'>;
|
|
7
|
+
export declare const FormTextArea: <T extends FieldValues>({ control, name, ...props }: FormTextAreaProps<T>) => import("react").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
export type TextAreaProps = {
|
|
3
|
+
label?: string;
|
|
4
|
+
error?: string;
|
|
5
|
+
resize?: 'both' | 'horizontal' | 'none' | 'vertical';
|
|
6
|
+
} & ComponentPropsWithoutRef<'textarea'>;
|
|
7
|
+
export declare const TextArea: import("react").ForwardRefExoticComponent<{
|
|
8
|
+
label?: string;
|
|
9
|
+
error?: string;
|
|
10
|
+
resize?: "both" | "horizontal" | "none" | "vertical";
|
|
11
|
+
} & Omit<import("react").DetailedHTMLProps<import("react").TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "ref"> & import("react").RefAttributes<HTMLTextAreaElement>>;
|
|
@@ -11,9 +11,11 @@ export * from './Modal';
|
|
|
11
11
|
export * from './PasswordInput';
|
|
12
12
|
export * from './RadioGroup';
|
|
13
13
|
export * from './ReadMore';
|
|
14
|
+
export * from './Scroll';
|
|
14
15
|
export * from './SearchInput';
|
|
15
16
|
export * from './Select';
|
|
16
17
|
export * from './Table';
|
|
17
18
|
export * from './Tabs';
|
|
19
|
+
export * from './TextArea';
|
|
18
20
|
export * from './Tooltip';
|
|
19
21
|
export * from './Typography';
|
|
@@ -3,3 +3,13 @@ export type ProgressSizeVariant = 'lg' | 'md' | 'sm';
|
|
|
3
3
|
export type AvatarSize = 'l' | 'm' | 's' | 'xs';
|
|
4
4
|
export type MainAvatarSize = 'xl' | 'xxl';
|
|
5
5
|
export type ModalSize = 'l' | 'm' | 's' | 'xl' | 'xs';
|
|
6
|
+
export type VerticalMetrics = {
|
|
7
|
+
thumbHeight: number;
|
|
8
|
+
maxThumbOffsetY: number;
|
|
9
|
+
maxScrollOffsetY: number;
|
|
10
|
+
};
|
|
11
|
+
export type HorizontalMetrics = {
|
|
12
|
+
thumbWidth: number;
|
|
13
|
+
maxThumbOffsetX: number;
|
|
14
|
+
maxScrollOffsetX: number;
|
|
15
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { HorizontalMetrics } from '@/
|
|
1
|
+
import type { HorizontalMetrics } from '@/types';
|
|
2
2
|
export declare const getHorizontalMetrics: (viewport: HTMLDivElement) => HorizontalMetrics | null;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { VerticalMetrics } from '@/
|
|
1
|
+
import type { VerticalMetrics } from '@/types';
|
|
2
2
|
export declare const getVerticalMetrics: (viewport: HTMLDivElement) => null | VerticalMetrics;
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type { VerticalMetrics, HorizontalMetrics } from './scroll.types.ts';
|