@liner-fe/prism 2.1.29 → 2.1.31
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/lib/assets/redo.d.ts +8 -0
- package/lib/components/Button/index.d.ts +13 -7
- package/lib/components/Icon/index.d.ts +10 -4
- package/lib/components/IconButton/index.d.ts +11 -5
- package/lib/components/Label/index.d.ts +14 -8
- package/lib/components/TextButton/index.d.ts +12 -6
- package/lib/components/Textfield/index.d.ts +9 -3
- package/lib/components/Typography/utils.d.ts +8 -2
- package/lib/index.cjs +1448 -1414
- package/lib/index.cjs.map +4 -4
- package/lib/index.mjs +1169 -1135
- package/lib/index.mjs.map +4 -4
- package/lib/type/index.d.ts +1 -1
- package/package.json +2 -2
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
import { ButtonHTMLAttributes } from 'react';
|
|
2
|
-
import { VariantProps } from '
|
|
2
|
+
import { VariantProps } from 'cva';
|
|
3
3
|
import { IconProps } from '../Icon';
|
|
4
4
|
declare const defaultButtonVariants: (props?: ({
|
|
5
|
-
level?: "primary" | "secondary" | "tertiary" | "quaternary" | "negative" | "static" | "inverse-static" |
|
|
6
|
-
fill?: boolean |
|
|
7
|
-
align?: "center" | "spaceBetween" |
|
|
8
|
-
size?: "m" | "s" | "l" | "cta" |
|
|
9
|
-
width?: "fit-content" | "full" |
|
|
10
|
-
} &
|
|
5
|
+
level?: "primary" | "secondary" | "tertiary" | "quaternary" | "negative" | "static" | "inverse-static" | undefined;
|
|
6
|
+
fill?: boolean | undefined;
|
|
7
|
+
align?: "center" | "spaceBetween" | undefined;
|
|
8
|
+
size?: "m" | "s" | "l" | "cta" | undefined;
|
|
9
|
+
width?: "fit-content" | "full" | undefined;
|
|
10
|
+
} & ({
|
|
11
|
+
class?: import("cva").ClassValue;
|
|
12
|
+
className?: never;
|
|
13
|
+
} | {
|
|
14
|
+
class?: never;
|
|
15
|
+
className?: import("cva").ClassValue;
|
|
16
|
+
})) | undefined) => string;
|
|
11
17
|
export interface CommonButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
12
18
|
as?: 'default' | 'text';
|
|
13
19
|
asChild?: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VariantProps } from '
|
|
1
|
+
import { VariantProps } from 'cva';
|
|
2
2
|
import { IconKey, IconMapType } from '../../type';
|
|
3
3
|
import { SystemKeys } from '@liner-fe/design-token';
|
|
4
4
|
import { BasicColorType } from '../../types/color';
|
|
@@ -12,9 +12,15 @@ declare const iconSizeMap: {
|
|
|
12
12
|
export declare const iconKeyOptions: IconKey[];
|
|
13
13
|
export declare const colorKeys: BasicColorType[];
|
|
14
14
|
declare const iconVariants: (props?: ({
|
|
15
|
-
type?: BasicColorType |
|
|
16
|
-
fillType?: BasicColorType |
|
|
17
|
-
} &
|
|
15
|
+
type?: BasicColorType | undefined;
|
|
16
|
+
fillType?: BasicColorType | undefined;
|
|
17
|
+
} & ({
|
|
18
|
+
class?: import("cva").ClassValue;
|
|
19
|
+
className?: never;
|
|
20
|
+
} | {
|
|
21
|
+
class?: never;
|
|
22
|
+
className?: import("cva").ClassValue;
|
|
23
|
+
})) | undefined) => string;
|
|
18
24
|
export declare const getIconComponent: (iconKey: IconKey, map: IconMapType) => import("../../type").IconComponent;
|
|
19
25
|
export type IconSizeKey = keyof typeof iconSizeMap;
|
|
20
26
|
export type IconColorType = Extract<SystemKeys, BasicColorType>;
|
|
@@ -1,11 +1,17 @@
|
|
|
1
|
-
import { VariantProps } from '
|
|
1
|
+
import { VariantProps } from 'cva';
|
|
2
2
|
import { ButtonHTMLAttributes } from 'react';
|
|
3
3
|
import { IconProps } from '../Icon';
|
|
4
4
|
declare const iconButtonVariants: (props?: ({
|
|
5
|
-
level?: "primary" | "secondary" | "tertiary" | "quaternary" | "negative" | "static" | "inverse" | "inverse-static" |
|
|
6
|
-
size?: "m" | "s" | "xs" | "l" |
|
|
7
|
-
fill?: boolean |
|
|
8
|
-
} &
|
|
5
|
+
level?: "primary" | "secondary" | "tertiary" | "quaternary" | "negative" | "static" | "inverse" | "inverse-static" | undefined;
|
|
6
|
+
size?: "m" | "s" | "xs" | "l" | undefined;
|
|
7
|
+
fill?: boolean | undefined;
|
|
8
|
+
} & ({
|
|
9
|
+
class?: import("cva").ClassValue;
|
|
10
|
+
className?: never;
|
|
11
|
+
} | {
|
|
12
|
+
class?: never;
|
|
13
|
+
className?: import("cva").ClassValue;
|
|
14
|
+
})) | undefined) => string;
|
|
9
15
|
export type IconButtonLevelType = 'primary' | 'secondary' | 'tertiary' | 'quaternary' | 'negative' | 'static' | 'inverse' | 'inverse-static';
|
|
10
16
|
export type IconSizeType = 'l' | 'm' | 's' | 'xs';
|
|
11
17
|
export interface IconButtonProps extends ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof iconButtonVariants> {
|
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
3
|
-
import { VariantProps } from '
|
|
3
|
+
import { VariantProps } from 'cva';
|
|
4
4
|
declare const defaultLabelVariants: (props?: ({
|
|
5
|
-
level?: "primary" | "secondary" |
|
|
6
|
-
position?: "right" | "top" |
|
|
7
|
-
size?: "m" | "s" | "l" |
|
|
8
|
-
offset?: "high" | "low" | "medium" |
|
|
9
|
-
disabled?: boolean |
|
|
10
|
-
error?: boolean |
|
|
11
|
-
} &
|
|
5
|
+
level?: "primary" | "secondary" | undefined;
|
|
6
|
+
position?: "right" | "top" | undefined;
|
|
7
|
+
size?: "m" | "s" | "l" | undefined;
|
|
8
|
+
offset?: "high" | "low" | "medium" | undefined;
|
|
9
|
+
disabled?: boolean | undefined;
|
|
10
|
+
error?: boolean | undefined;
|
|
11
|
+
} & ({
|
|
12
|
+
class?: import("cva").ClassValue;
|
|
13
|
+
className?: never;
|
|
14
|
+
} | {
|
|
15
|
+
class?: never;
|
|
16
|
+
className?: import("cva").ClassValue;
|
|
17
|
+
})) | undefined) => string;
|
|
12
18
|
interface LabelProps extends ComponentPropsWithoutRef<typeof LabelPrimitive.Root>, VariantProps<typeof defaultLabelVariants> {
|
|
13
19
|
level?: 'primary' | 'secondary';
|
|
14
20
|
position?: 'top' | 'right';
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
import { ButtonIconProps, ButtonSizeType, CommonButtonProps } from '../../index';
|
|
2
|
-
import { VariantProps } from '
|
|
2
|
+
import { VariantProps } from 'cva';
|
|
3
3
|
declare const textButtonVariants: (props?: ({
|
|
4
|
-
level?: "primary" | "secondary" | "tertiary" | "inverse" | "inverse-static" |
|
|
5
|
-
size?: "m" | "s" |
|
|
6
|
-
thick?: boolean |
|
|
7
|
-
underline?: boolean |
|
|
8
|
-
} &
|
|
4
|
+
level?: "primary" | "secondary" | "tertiary" | "inverse" | "inverse-static" | undefined;
|
|
5
|
+
size?: "m" | "s" | undefined;
|
|
6
|
+
thick?: boolean | undefined;
|
|
7
|
+
underline?: boolean | undefined;
|
|
8
|
+
} & ({
|
|
9
|
+
class?: import("cva").ClassValue;
|
|
10
|
+
className?: never;
|
|
11
|
+
} | {
|
|
12
|
+
class?: never;
|
|
13
|
+
className?: import("cva").ClassValue;
|
|
14
|
+
})) | undefined) => string;
|
|
9
15
|
type TextLevelType = 'primary' | 'secondary' | 'tertiary' | 'inverse' | 'inverse-static';
|
|
10
16
|
type TextButtonSizeType = Extract<ButtonSizeType, 'm' | 's'>;
|
|
11
17
|
export interface TextButtonProps extends CommonButtonProps, VariantProps<typeof textButtonVariants> {
|
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
import { InputHTMLAttributes } from 'react';
|
|
2
|
-
import { VariantProps } from '
|
|
2
|
+
import { VariantProps } from 'cva';
|
|
3
3
|
import { DefaultButtonProps, FillType } from '../Button';
|
|
4
4
|
import { BasicColorType } from '../../types/color';
|
|
5
5
|
declare const defaultTextfieldVariants: (props?: ({
|
|
6
|
-
color?: "neutral-container-lowest" | "neutral-container-mid" |
|
|
7
|
-
} &
|
|
6
|
+
color?: "neutral-container-lowest" | "neutral-container-mid" | undefined;
|
|
7
|
+
} & ({
|
|
8
|
+
class?: import("cva").ClassValue;
|
|
9
|
+
className?: never;
|
|
10
|
+
} | {
|
|
11
|
+
class?: never;
|
|
12
|
+
className?: import("cva").ClassValue;
|
|
13
|
+
})) | undefined) => string;
|
|
8
14
|
export interface TextfieldButtonProps extends Omit<DefaultButtonProps<FillType>, 'size'> {
|
|
9
15
|
}
|
|
10
16
|
export type TextfieldLabelType = 'in' | 'out';
|
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
export declare const colorVariants: (props?: ({
|
|
2
|
-
type?: import("../..").BasicColorType |
|
|
3
|
-
} &
|
|
2
|
+
type?: import("../..").BasicColorType | undefined;
|
|
3
|
+
} & ({
|
|
4
|
+
class?: import("cva").ClassValue;
|
|
5
|
+
className?: never;
|
|
6
|
+
} | {
|
|
7
|
+
class?: never;
|
|
8
|
+
className?: import("cva").ClassValue;
|
|
9
|
+
})) | undefined) => string;
|