@scbt-ecom/ui 0.42.1 → 0.42.3
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/CustomLink-DRb2l2sC.js.map +1 -1
- package/dist/shared/ui/customLink/CustomLink.d.ts +2 -7
- package/dist/shared/ui/customLink/model/helpers.d.ts +10 -0
- package/dist/shared/ui/loader/Loader.d.ts +1 -7
- package/dist/shared/ui/loader/model/helpers.d.ts +7 -0
- package/dist/shared/ui/skeleton/Skeleton.d.ts +2 -1
- package/dist/shared/validation/base/union.validators.d.ts +2 -2
- package/dist/ui.js.map +1 -1
- package/dist/validation.js +9 -9
- package/dist/validation.js.map +1 -1
- package/dist/widget.js +208 -211
- package/dist/widget.js.map +1 -1
- package/dist/widgets/header/Header.d.ts +1 -1
- package/dist/widgets/header/model/types.d.ts +13 -16
- package/package.json +1 -1
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import { ComponentProps } from 'react';
|
|
2
2
|
import { VariantProps } from 'class-variance-authority';
|
|
3
|
-
import { AllowedIcons } from '
|
|
4
|
-
|
|
5
|
-
intent?: "blue" | "white" | "dark" | null | undefined;
|
|
6
|
-
withUnderline?: boolean | null | undefined;
|
|
7
|
-
disabled?: boolean | null | undefined;
|
|
8
|
-
size?: "sm" | "md" | null | undefined;
|
|
9
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
3
|
+
import { AllowedIcons } from '../icon';
|
|
4
|
+
import { customLinkConfig } from './model/helpers';
|
|
10
5
|
type CustomLinkClasses = {
|
|
11
6
|
link?: string;
|
|
12
7
|
icon?: string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const customLinkConfig: (props?: ({
|
|
2
|
+
intent?: "blue" | "white" | "dark" | null | undefined;
|
|
3
|
+
withUnderline?: boolean | null | undefined;
|
|
4
|
+
disabled?: boolean | null | undefined;
|
|
5
|
+
size?: "sm" | "md" | null | undefined;
|
|
6
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
|
+
export declare const linkArrowConfig: (props?: ({
|
|
8
|
+
intent?: "blue" | "white" | "dark" | null | undefined;
|
|
9
|
+
disabled?: boolean | null | undefined;
|
|
10
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactElement } from 'react';
|
|
2
2
|
import { VariantProps } from 'class-variance-authority';
|
|
3
|
-
|
|
4
|
-
position?: "fixed" | "absolute" | "static" | null | undefined;
|
|
5
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
|
-
declare const loaderConfig: (props?: ({
|
|
7
|
-
intent?: "primary" | "secondary" | null | undefined;
|
|
8
|
-
size?: "sm" | "md" | "lg" | null | undefined;
|
|
9
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
3
|
+
import { loaderConfig, wrapperConfig } from './model/helpers';
|
|
10
4
|
type TLoaderClasses = {
|
|
11
5
|
wrapper?: string;
|
|
12
6
|
loader?: string;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const wrapperConfig: (props?: ({
|
|
2
|
+
position?: "fixed" | "absolute" | "static" | null | undefined;
|
|
3
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
4
|
+
export declare const loaderConfig: (props?: ({
|
|
5
|
+
intent?: "primary" | "secondary" | null | undefined;
|
|
6
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
7
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export interface SkeletonProps extends HTMLAttributes<HTMLDivElement> {
|
|
2
3
|
className?: string;
|
|
3
4
|
}
|
|
4
5
|
export declare const Skeleton: ({ className }: SkeletonProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -26,12 +26,12 @@ export type UnionValidationOptions<Required extends boolean, T extends z.Primiti
|
|
|
26
26
|
/**
|
|
27
27
|
* Схема валидации обязательного поля из выборки
|
|
28
28
|
*/
|
|
29
|
-
declare const getUnionRequired: <T extends z.Primitive>(values: [T, T, ...T[]], props?: Omit<UnionValidationOptions<true, T>, "required">) => z.ZodUnion<[z.ZodLiteral<T>, z.ZodLiteral<T>, ...z.ZodLiteral<T>[]]
|
|
29
|
+
declare const getUnionRequired: <T extends z.Primitive>(values: [T, T, ...T[]], props?: Omit<UnionValidationOptions<true, T>, "required">) => z.ZodDefault<z.ZodEffects<z.ZodNullable<z.ZodUnion<[z.ZodLiteral<T>, z.ZodLiteral<T>, ...z.ZodLiteral<T>[]]>>, T | null, T | null>>;
|
|
30
30
|
type UnionRequiredSchema<T extends z.Primitive> = ReturnType<typeof getUnionRequired<T>>;
|
|
31
31
|
/**
|
|
32
32
|
* Схема валидации обязательного поля из выборки
|
|
33
33
|
*/
|
|
34
|
-
declare const getUnionOptional: <T extends z.Primitive>(values: [T, T, ...T[]], props?: UnionValidationOptions<false, T>) => z.ZodOptional<z.ZodUnion<[z.ZodLiteral<T>, z.ZodLiteral<T>, ...z.ZodLiteral<T>[]]
|
|
34
|
+
declare const getUnionOptional: <T extends z.Primitive>(values: [T, T, ...T[]], props?: UnionValidationOptions<false, T>) => z.ZodOptional<z.ZodDefault<z.ZodEffects<z.ZodNullable<z.ZodUnion<[z.ZodLiteral<T>, z.ZodLiteral<T>, ...z.ZodLiteral<T>[]]>>, T | null, T | null>>>;
|
|
35
35
|
type UnionOptionalSchema<T extends z.Primitive> = ReturnType<typeof getUnionOptional<T>>;
|
|
36
36
|
/**
|
|
37
37
|
* Схема валидации обязательного поля из выборки
|