@liner-fe/prism 2.1.55 → 2.1.57
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/index.css +1 -1
- package/lib/index.css.map +1 -7
- package/lib/index.d.ts +547 -20
- package/lib/index.js +86 -1
- package/lib/index.js.map +1 -7
- package/package.json +5 -6
- package/lib/assets/Info.d.ts +0 -8
- package/lib/assets/add-clock.d.ts +0 -8
- package/lib/assets/ai.d.ts +0 -8
- package/lib/assets/airplane.d.ts +0 -8
- package/lib/assets/android.d.ts +0 -8
- package/lib/assets/apple.d.ts +0 -8
- package/lib/assets/arrow-back.d.ts +0 -8
- package/lib/assets/arrow-backward.d.ts +0 -8
- package/lib/assets/arrow-down-left.d.ts +0 -8
- package/lib/assets/arrow-down.d.ts +0 -8
- package/lib/assets/arrow-downward.d.ts +0 -8
- package/lib/assets/arrow-drop-down.d.ts +0 -8
- package/lib/assets/arrow-drop-right.d.ts +0 -8
- package/lib/assets/arrow-forward.d.ts +0 -9
- package/lib/assets/arrow-left.d.ts +0 -8
- package/lib/assets/arrow-right.d.ts +0 -8
- package/lib/assets/arrow-turn.d.ts +0 -8
- package/lib/assets/arrow-up-down.d.ts +0 -8
- package/lib/assets/arrow-up-left.d.ts +0 -8
- package/lib/assets/arrow-up-right.d.ts +0 -8
- package/lib/assets/arrow-up.d.ts +0 -8
- package/lib/assets/arrow-upward.d.ts +0 -8
- package/lib/assets/balance.d.ts +0 -8
- package/lib/assets/bell.d.ts +0 -8
- package/lib/assets/block.d.ts +0 -8
- package/lib/assets/bolt.d.ts +0 -8
- package/lib/assets/book.d.ts +0 -8
- package/lib/assets/bookmark-cancel.d.ts +0 -8
- package/lib/assets/bookmark.d.ts +0 -8
- package/lib/assets/books.d.ts +0 -8
- package/lib/assets/brain.d.ts +0 -8
- package/lib/assets/bulb-exclamtionmark.d.ts +0 -8
- package/lib/assets/bulb.d.ts +0 -8
- package/lib/assets/camera.d.ts +0 -8
- package/lib/assets/car.d.ts +0 -8
- package/lib/assets/casual-shoe.d.ts +0 -8
- package/lib/assets/chart-bar.d.ts +0 -8
- package/lib/assets/chart-line-uptrend.d.ts +0 -8
- package/lib/assets/check-mark-fill.d.ts +0 -8
- package/lib/assets/check-mark.d.ts +0 -8
- package/lib/assets/clock.d.ts +0 -8
- package/lib/assets/close-fill.d.ts +0 -8
- package/lib/assets/close.d.ts +0 -8
- package/lib/assets/copy.d.ts +0 -8
- package/lib/assets/credit.d.ts +0 -8
- package/lib/assets/creditcard.d.ts +0 -8
- package/lib/assets/dark-mode.d.ts +0 -8
- package/lib/assets/description.d.ts +0 -8
- package/lib/assets/desktop-on-cursor.d.ts +0 -8
- package/lib/assets/desktop.d.ts +0 -8
- package/lib/assets/document-add.d.ts +0 -8
- package/lib/assets/document-check.d.ts +0 -8
- package/lib/assets/document-warning.d.ts +0 -8
- package/lib/assets/document.d.ts +0 -8
- package/lib/assets/double-arrow-backward.d.ts +0 -8
- package/lib/assets/double-arrow-forward.d.ts +0 -8
- package/lib/assets/download.d.ts +0 -8
- package/lib/assets/drop-down.d.ts +0 -8
- package/lib/assets/drop-up.d.ts +0 -8
- package/lib/assets/email.d.ts +0 -8
- package/lib/assets/end.d.ts +0 -8
- package/lib/assets/essay.d.ts +0 -8
- package/lib/assets/example.d.ts +0 -8
- package/lib/assets/exclamationmark-fill.d.ts +0 -8
- package/lib/assets/exclamationmark.d.ts +0 -8
- package/lib/assets/expand.d.ts +0 -8
- package/lib/assets/extend.d.ts +0 -8
- package/lib/assets/facebook.d.ts +0 -8
- package/lib/assets/feedback.d.ts +0 -8
- package/lib/assets/filter.d.ts +0 -8
- package/lib/assets/fire.d.ts +0 -8
- package/lib/assets/flowchart.d.ts +0 -8
- package/lib/assets/focus.d.ts +0 -8
- package/lib/assets/folder-add.d.ts +0 -8
- package/lib/assets/folder-open-share.d.ts +0 -8
- package/lib/assets/folder-open.d.ts +0 -8
- package/lib/assets/folder-share.d.ts +0 -8
- package/lib/assets/folder.d.ts +0 -8
- package/lib/assets/formal-bag.d.ts +0 -8
- package/lib/assets/globe.d.ts +0 -8
- package/lib/assets/google-export.d.ts +0 -8
- package/lib/assets/google.d.ts +0 -8
- package/lib/assets/graduationcap.d.ts +0 -8
- package/lib/assets/help.d.ts +0 -8
- package/lib/assets/hide-all.d.ts +0 -8
- package/lib/assets/highlight-edit.d.ts +0 -8
- package/lib/assets/highlighter.d.ts +0 -8
- package/lib/assets/history.d.ts +0 -8
- package/lib/assets/home.d.ts +0 -8
- package/lib/assets/index.d.ts +0 -163
- package/lib/assets/light-mode.d.ts +0 -8
- package/lib/assets/light.d.ts +0 -8
- package/lib/assets/liner-variation.d.ts +0 -8
- package/lib/assets/liner.d.ts +0 -8
- package/lib/assets/link.d.ts +0 -8
- package/lib/assets/list.d.ts +0 -8
- package/lib/assets/lock.d.ts +0 -8
- package/lib/assets/magic-pencil.d.ts +0 -8
- package/lib/assets/magic-wand.d.ts +0 -8
- package/lib/assets/make-easy.d.ts +0 -8
- package/lib/assets/memo.d.ts +0 -8
- package/lib/assets/menu.d.ts +0 -8
- package/lib/assets/mindmap.d.ts +0 -8
- package/lib/assets/minus.d.ts +0 -8
- package/lib/assets/moon.d.ts +0 -8
- package/lib/assets/more.d.ts +0 -8
- package/lib/assets/move.d.ts +0 -8
- package/lib/assets/new-tab.d.ts +0 -8
- package/lib/assets/new-thread.d.ts +0 -8
- package/lib/assets/palette.d.ts +0 -8
- package/lib/assets/paperclip.d.ts +0 -8
- package/lib/assets/paragraph.d.ts +0 -8
- package/lib/assets/paraphase.d.ts +0 -8
- package/lib/assets/paraphrase.d.ts +0 -8
- package/lib/assets/pencil.d.ts +0 -8
- package/lib/assets/person-add.d.ts +0 -8
- package/lib/assets/person-fill.d.ts +0 -8
- package/lib/assets/person.d.ts +0 -8
- package/lib/assets/photo.d.ts +0 -8
- package/lib/assets/play-button.d.ts +0 -8
- package/lib/assets/plus.d.ts +0 -8
- package/lib/assets/power.d.ts +0 -8
- package/lib/assets/question-box.d.ts +0 -8
- package/lib/assets/question-message.d.ts +0 -8
- package/lib/assets/quote.d.ts +0 -8
- package/lib/assets/redo.d.ts +0 -8
- package/lib/assets/regenerate.d.ts +0 -8
- package/lib/assets/report.d.ts +0 -8
- package/lib/assets/rocket.d.ts +0 -8
- package/lib/assets/search.d.ts +0 -8
- package/lib/assets/secret-mode.d.ts +0 -8
- package/lib/assets/send.d.ts +0 -8
- package/lib/assets/setting.d.ts +0 -8
- package/lib/assets/share.d.ts +0 -8
- package/lib/assets/sheet-export.d.ts +0 -8
- package/lib/assets/shield-person.d.ts +0 -8
- package/lib/assets/shield-usage.d.ts +0 -8
- package/lib/assets/shield.d.ts +0 -8
- package/lib/assets/shorten.d.ts +0 -8
- package/lib/assets/show-all.d.ts +0 -8
- package/lib/assets/sign-out.d.ts +0 -8
- package/lib/assets/source.d.ts +0 -8
- package/lib/assets/speaker.d.ts +0 -8
- package/lib/assets/spinner.d.ts +0 -8
- package/lib/assets/stack.d.ts +0 -8
- package/lib/assets/start.d.ts +0 -8
- package/lib/assets/step.d.ts +0 -8
- package/lib/assets/summarize.d.ts +0 -8
- package/lib/assets/sun.d.ts +0 -8
- package/lib/assets/target.d.ts +0 -8
- package/lib/assets/text-select.d.ts +0 -8
- package/lib/assets/thumb-down.d.ts +0 -8
- package/lib/assets/thumb-up.d.ts +0 -8
- package/lib/assets/timer.d.ts +0 -8
- package/lib/assets/translate.d.ts +0 -8
- package/lib/assets/trash.d.ts +0 -8
- package/lib/assets/tune.d.ts +0 -8
- package/lib/assets/twitter.d.ts +0 -8
- package/lib/assets/undo.d.ts +0 -8
- package/lib/assets/verification-badge.d.ts +0 -8
- package/lib/assets/view-list.d.ts +0 -8
- package/lib/assets/visibility-off.d.ts +0 -8
- package/lib/assets/visibility.d.ts +0 -8
- package/lib/assets/volume-up.d.ts +0 -8
- package/lib/assets/volume.d.ts +0 -8
- package/lib/assets/zoom-in.d.ts +0 -8
- package/lib/assets/zoom-out.d.ts +0 -8
- package/lib/components/Button/index.d.ts +0 -41
- package/lib/components/CheckBox/index.d.ts +0 -7
- package/lib/components/DropDown/index.d.ts +0 -1
- package/lib/components/Icon/index.d.ts +0 -38
- package/lib/components/IconButton/index.d.ts +0 -26
- package/lib/components/Illust/index.d.ts +0 -17
- package/lib/components/Label/index.d.ts +0 -27
- package/lib/components/List/index.d.ts +0 -18
- package/lib/components/Loading/index.d.ts +0 -8
- package/lib/components/Popover/index.d.ts +0 -43
- package/lib/components/Radio/index.d.ts +0 -10
- package/lib/components/Select/index.d.ts +0 -26
- package/lib/components/Slider/index.d.ts +0 -15
- package/lib/components/Snackbar/SnackbarButton/index.d.ts +0 -10
- package/lib/components/Snackbar/SnackbarClose/index.d.ts +0 -7
- package/lib/components/Snackbar/SnackbarDescription/index.d.ts +0 -5
- package/lib/components/Snackbar/SnackbarIcon/index.d.ts +0 -6
- package/lib/components/Snackbar/SnackbarTitle/index.d.ts +0 -5
- package/lib/components/Snackbar/index.d.ts +0 -3
- package/lib/components/TextButton/index.d.ts +0 -27
- package/lib/components/Textfield/index.d.ts +0 -32
- package/lib/components/Toast/export.d.ts +0 -2
- package/lib/components/Toast/index.d.ts +0 -23
- package/lib/components/Tooltip/index.d.ts +0 -71
- package/lib/components/Typography/Responsive/constant.d.ts +0 -3
- package/lib/components/Typography/Responsive/index.d.ts +0 -8
- package/lib/components/Typography/Responsive/lib.d.ts +0 -6
- package/lib/components/Typography/Responsive/type.d.ts +0 -23
- package/lib/components/Typography/Set/Caption.d.ts +0 -19
- package/lib/components/Typography/Set/Display.d.ts +0 -7
- package/lib/components/Typography/Set/Heading.d.ts +0 -7
- package/lib/components/Typography/Set/Paragraph.d.ts +0 -23
- package/lib/components/Typography/Set/Title.d.ts +0 -8
- package/lib/components/Typography/index.d.ts +0 -7
- package/lib/components/Typography/types.d.ts +0 -20
- package/lib/components/Typography/utils.d.ts +0 -9
- package/lib/components/_Description/index.d.ts +0 -5
- package/lib/constants/component.d.ts +0 -16
- package/lib/constants/figma/component.d.ts +0 -4
- package/lib/constants/figma/index.d.ts +0 -25
- package/lib/constants/figma/token.d.ts +0 -4
- package/lib/constants/figma/types.d.ts +0 -7
- package/lib/constants/illust/name.d.ts +0 -2
- package/lib/constants/illust/path.d.ts +0 -3
- package/lib/constants/illust/size.d.ts +0 -5
- package/lib/constants/token.d.ts +0 -11
- package/lib/hooks/collection.d.ts +0 -14
- package/lib/hooks/media.d.ts +0 -1
- package/lib/hooks/useIllust.d.ts +0 -9
- package/lib/hooks/useSnackbar.d.ts +0 -5
- package/lib/hooks/useToast.d.ts +0 -9
- package/lib/illust.d.ts +0 -2
- package/lib/illust.js +0 -87
- package/lib/illust.js.map +0 -7
- package/lib/token/BorderRadius/index.d.ts +0 -1
- package/lib/token/BreakPoint/index.d.ts +0 -1
- package/lib/token/Gap/index.d.ts +0 -1
- package/lib/token/Padding/index.d.ts +0 -1
- package/lib/token/Shadow/index.d.ts +0 -1
- package/lib/token/color/index.d.ts +0 -4
- package/lib/token/opacity/index.d.ts +0 -1
- package/lib/token/size/index.d.ts +0 -1
- package/lib/type/index.d.ts +0 -11
- package/lib/types/color.d.ts +0 -4
- package/lib/types/generateRandomId.d.ts +0 -1
- package/lib/types/illust.d.ts +0 -4
- package/lib/types/snackbar.d.ts +0 -38
- package/lib/types/typescript.d.ts +0 -4
- package/lib/utils/icon.d.ts +0 -2
- package/lib/utils/illust.d.ts +0 -5
- package/lib/utils/object.d.ts +0 -6
- package/lib/utils/path.d.ts +0 -1
package/lib/index.d.ts
CHANGED
|
@@ -1,20 +1,547 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
1
|
+
import { SystemKeys, breakpointOrigin, TypographyCaptionPrefix, TypographyDisplayPrefix, TypographyParagraphPrefix, TypographyHeadingPrefix, TypographyTitlePrefix } from '@liner-fe/design-token';
|
|
2
|
+
import * as react from 'react';
|
|
3
|
+
import react__default, { SVGProps, ButtonHTMLAttributes, RefAttributes, HTMLAttributes, ReactNode, ComponentPropsWithoutRef, InputHTMLAttributes, ComponentProps, LiHTMLAttributes } from 'react';
|
|
4
|
+
import * as cva from 'cva';
|
|
5
|
+
import { VariantProps } from 'cva';
|
|
6
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
7
|
+
import { ToastProps } from '@radix-ui/react-toast';
|
|
8
|
+
import * as _artsy_fresnel_dist_Media from '@artsy/fresnel/dist/Media';
|
|
9
|
+
import { Popover as Popover$1, Tooltip as Tooltip$1, Checkbox as Checkbox$1, RadioGroup, Slider as Slider$1, Select as Select$1, Label as Label$1 } from 'radix-ui';
|
|
10
|
+
import { ImageProps } from 'next/image';
|
|
11
|
+
import { Property } from 'csstype';
|
|
12
|
+
|
|
13
|
+
interface IconComponentProps {
|
|
14
|
+
className?: string;
|
|
15
|
+
color?: string;
|
|
16
|
+
fill?: boolean;
|
|
17
|
+
thick?: boolean;
|
|
18
|
+
size?: 16 | 20 | 24 | 32 | 40;
|
|
19
|
+
}
|
|
20
|
+
type IconComponent = (props: IconComponentProps) => JSX.Element | undefined;
|
|
21
|
+
type IconMapType = typeof iconMap;
|
|
22
|
+
type IconKey = 'close-fill' | 'more' | 'liner' | 'liner-variation' | 'person-fill' | 'list' | 'history' | 'start' | 'end' | 'paperclip' | 'share' | 'sign-out' | 'check-mark-fill' | 'exclamationmark-fill' | 'plus' | 'minus' | 'new-thread' | 'move' | 'search' | 'globe' | 'graduationcap' | 'palette' | 'download' | 'regenerate' | 'credit' | 'feedback' | 'tune' | 'arrow-back' | 'arrow-forward' | 'arrow-up' | 'arrow-down' | 'menu' | 'document-warning' | 'arrow-right' | 'arrow-left' | 'step' | 'arrow-turn' | 'power' | 'desktop' | 'desktop-on-cursor' | 'view-list' | 'chart-bar' | 'chart-line-uptrend' | 'folder' | 'person' | 'trash' | 'pencil' | 'copy' | 'book' | 'description' | 'bookmark' | 'photo' | 'camera' | 'bolt' | 'question-message' | 'books' | 'balance' | 'folder-add' | 'document' | 'person-add' | 'send' | 'check-mark' | 'exclamationmark' | 'close' | 'lock' | 'ai' | 'stack' | 'summarize' | 'memo' | 'highlighter' | 'creditcard' | 'speaker' | 'light' | 'document-add' | 'thumb-up' | 'thumb-down' | 'shield' | 'home' | 'visibility' | 'visibility-off' | 'magic-wand' | 'magic-pencil' | 'bulb-exclamtionmark' | 'bulb' | 'paraphase' | 'make-easy' | 'translate' | 'Info' | 'folder-open' | 'highlight-edit' | 'apple' | 'android' | 'twitter' | 'facebook' | 'google' | 'paraphrase' | 'car' | 'airplane' | 'rocket' | 'source' | 'setting' | 'extend' | 'shorten' | 'sun' | 'moon' | 'fire' | 'arrow-upward' | 'arrow-downward' | 'light-mode' | 'dark-mode' | 'target' | 'question-box' | 'new-tab' | 'example' | 'quote' | 'document-check' | 'block' | 'bookmark-cancel' | 'arrow-up-right' | 'arrow-down-left' | 'arrow-up-left' | 'email' | 'filter' | 'timer' | 'play-button' | 'text-select' | 'arrow-drop-down' | 'bell' | 'secret-mode' | 'add-clock' | 'clock' | 'arrow-backward' | 'link' | 'sheet-export' | 'shield-usage' | 'essay' | 'spinner' | 'drop-down' | 'drop-up' | 'arrow-drop-right' | 'arrow-up-down' | 'google-export' | 'shield-person' | 'formal-bag' | 'casual-shoe' | 'undo' | 'redo' | 'expand' | 'verification-badge' | 'volume-up' | 'volume' | 'folder-open-share' | 'folder-share' | 'report' | 'mindmap' | 'flowchart' | 'show-all' | 'hide-all' | 'brain' | 'zoom-in' | 'zoom-out' | 'focus' | 'help' | 'paragraph';
|
|
23
|
+
|
|
24
|
+
declare const iconMap: Record<IconKey, IconComponent>;
|
|
25
|
+
|
|
26
|
+
type MyExtract<T, U extends Partial<T>> = T extends U ? T : never;
|
|
27
|
+
type BasicColorType = MyExtract<SystemKeys, 'neutral-label-primary' | 'neutral-label-secondary' | 'neutral-label-tertiary' | 'neutral-label-quaternary' | 'neutral-label-static-primary' | 'neutral-label-static-secondary' | 'inverse-label-primary' | 'inverse-label-secondary' | 'inverse-label-tertiary' | 'inverse-label-quaternary' | 'inverse-label-static-primary' | 'inverse-label-static-secondary' | 'brand-label-primary' | 'brand-label-secondary' | 'function-label-positive' | 'function-label-negative' | 'function-label-caution' | 'accent-yellow' | 'accent-cyan' | 'accent-mint' | 'accent-purple' | 'accent-pink' | 'neutral-fill-low' | 'neutral-fill-mid' | 'neutral-fill-high' | 'neutral-fill-highest' | 'neutral-container-lowest' | 'neutral-container-low' | 'neutral-container-mid' | 'neutral-container-high' | 'neutral-container-highest' | 'neutral-container-static-lowest' | 'brand-container-mid' | 'brand-container-high' | 'inverse-container-lowest' | 'inverse-container-low' | 'inverse-container-mid' | 'inverse-container-high' | 'inverse-container-static-high' | 'inverse-container-highest'>;
|
|
28
|
+
|
|
29
|
+
declare const objectToArray: <T extends Record<string, any>>(obj: T) => [string, any][];
|
|
30
|
+
declare const arrayToStyleObject: (colorKeys: BasicColorType[], style: {
|
|
31
|
+
readonly [key: string]: string;
|
|
32
|
+
}, prefix?: string) => Partial<Record<BasicColorType, string>>;
|
|
33
|
+
declare const isEmptyObject: (obj: object) => boolean;
|
|
34
|
+
|
|
35
|
+
declare const iconSizeMap: {
|
|
36
|
+
readonly xs: 16;
|
|
37
|
+
readonly s: 20;
|
|
38
|
+
readonly m: 24;
|
|
39
|
+
readonly l: 32;
|
|
40
|
+
readonly xl: 40;
|
|
41
|
+
};
|
|
42
|
+
declare const iconKeyOptions: IconKey[];
|
|
43
|
+
declare const colorKeys: BasicColorType[];
|
|
44
|
+
declare const iconVariants: (props?: ({
|
|
45
|
+
type?: BasicColorType | undefined;
|
|
46
|
+
fillType?: BasicColorType | undefined;
|
|
47
|
+
} & ({
|
|
48
|
+
class?: cva.ClassValue;
|
|
49
|
+
className?: never;
|
|
50
|
+
} | {
|
|
51
|
+
class?: never;
|
|
52
|
+
className?: cva.ClassValue;
|
|
53
|
+
})) | undefined) => string;
|
|
54
|
+
declare const getIconComponent: (iconKey: IconKey, map: IconMapType) => IconComponent;
|
|
55
|
+
type IconSizeKey = keyof typeof iconSizeMap;
|
|
56
|
+
type IconColorType = Extract<SystemKeys, BasicColorType>;
|
|
57
|
+
interface IconProps extends VariantProps<typeof iconVariants>, Omit<SVGProps<SVGSVGElement>, 'fill'> {
|
|
58
|
+
name: IconKey;
|
|
59
|
+
type?: IconColorType;
|
|
60
|
+
fillType?: IconColorType;
|
|
61
|
+
size?: IconSizeKey;
|
|
62
|
+
thick?: boolean;
|
|
63
|
+
fill?: boolean;
|
|
64
|
+
className?: string;
|
|
65
|
+
}
|
|
66
|
+
declare const Icon: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
67
|
+
|
|
68
|
+
declare const defaultButtonVariants: (props?: ({
|
|
69
|
+
level?: "primary" | "secondary" | "tertiary" | "quaternary" | "negative" | "static" | "inverse-static" | undefined;
|
|
70
|
+
fill?: boolean | undefined;
|
|
71
|
+
align?: "center" | "spaceBetween" | undefined;
|
|
72
|
+
size?: "m" | "s" | "l" | "cta" | undefined;
|
|
73
|
+
width?: "full" | "fit-content" | undefined;
|
|
74
|
+
} & ({
|
|
75
|
+
class?: cva.ClassValue;
|
|
76
|
+
className?: never;
|
|
77
|
+
} | {
|
|
78
|
+
class?: never;
|
|
79
|
+
className?: cva.ClassValue;
|
|
80
|
+
})) | undefined) => string;
|
|
81
|
+
interface CommonButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
82
|
+
as?: 'default' | 'text';
|
|
83
|
+
asChild?: boolean;
|
|
84
|
+
}
|
|
85
|
+
type FillType = boolean;
|
|
86
|
+
type FillLevelType = 'primary' | 'secondary' | 'tertiary' | 'quaternary' | 'negative' | 'static' | 'inverse-static';
|
|
87
|
+
type FillFalseLevelType = 'primary' | 'secondary';
|
|
88
|
+
type ButtonSizeType = 'cta' | 'l' | 'm' | 's';
|
|
89
|
+
type DefaultLevelType<T> = T extends true ? FillLevelType : FillFalseLevelType;
|
|
90
|
+
type ButtonIconProps = Exclude<IconProps, 'size' | 'thick'>;
|
|
91
|
+
interface DefaultButtonProps<T extends FillType> extends CommonButtonProps, VariantProps<typeof defaultButtonVariants> {
|
|
92
|
+
asChild?: boolean;
|
|
93
|
+
level?: DefaultLevelType<T>;
|
|
94
|
+
fill?: T;
|
|
95
|
+
size?: ButtonSizeType;
|
|
96
|
+
align?: 'center' | 'spaceBetween';
|
|
97
|
+
width?: 'full' | 'fit-content';
|
|
98
|
+
leftIcon?: ButtonIconProps;
|
|
99
|
+
rightIcon?: ButtonIconProps;
|
|
100
|
+
isLoading?: boolean;
|
|
101
|
+
}
|
|
102
|
+
type ButtonProps = DefaultButtonProps<FillType>;
|
|
103
|
+
declare const DefaultButton: react.ForwardRefExoticComponent<DefaultButtonProps<boolean> & react.RefAttributes<HTMLButtonElement>>;
|
|
104
|
+
declare const Button: react.ForwardRefExoticComponent<ButtonProps & react.RefAttributes<HTMLButtonElement>>;
|
|
105
|
+
|
|
106
|
+
interface IToastBase extends ToastProps, RefAttributes<HTMLLIElement> {
|
|
107
|
+
toastId: number;
|
|
108
|
+
message: string;
|
|
109
|
+
timer: number;
|
|
110
|
+
isLoading?: boolean;
|
|
111
|
+
}
|
|
112
|
+
interface IToastIcon {
|
|
113
|
+
icon: Omit<IconProps, 'size'>;
|
|
114
|
+
button?: never;
|
|
115
|
+
}
|
|
116
|
+
interface IToastButton {
|
|
117
|
+
icon?: never;
|
|
118
|
+
button: {
|
|
119
|
+
onClick: () => void;
|
|
120
|
+
label: string;
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
type ToastProp = IToastBase & (IToastIcon | IToastButton);
|
|
124
|
+
declare const Toaster: () => react_jsx_runtime.JSX.Element;
|
|
125
|
+
|
|
126
|
+
type StrictOmit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
|
|
127
|
+
|
|
128
|
+
declare const useToast: () => {
|
|
129
|
+
open: (toast: StrictOmit<ToastProp, "toastId" | "timer">) => {
|
|
130
|
+
toastId: number;
|
|
131
|
+
};
|
|
132
|
+
endLoading: (toastId: number) => void;
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
interface ITypographyCommon<T extends HTMLElement = HTMLParagraphElement> extends Omit<HTMLAttributes<T>, 'color'>, WithHTMLAsProps {
|
|
136
|
+
color?: BasicColorType;
|
|
137
|
+
}
|
|
138
|
+
type BOLD = 'bold';
|
|
139
|
+
type MEDIUM = 'medium';
|
|
140
|
+
type REGULAR = 'regular';
|
|
141
|
+
type ANSWER = 'answer';
|
|
142
|
+
type ACCENT = 'accent';
|
|
143
|
+
type NORMAL = 'normal';
|
|
144
|
+
type POST = 'post';
|
|
145
|
+
type AcceptAsHTMLTag = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'header' | 'footer' | 'p' | 'article' | 'body' | 'main' | 'b' | 'blockquote';
|
|
146
|
+
interface WithHTMLAsProps {
|
|
147
|
+
as?: Extract<keyof HTMLElementTagNameMap, AcceptAsHTMLTag>;
|
|
148
|
+
}
|
|
149
|
+
type HTMLAsElementObject = Pick<HTMLElementTagNameMap, AcceptAsHTMLTag>;
|
|
150
|
+
type HTMLAsElement = HTMLAsElementObject[keyof HTMLAsElementObject];
|
|
151
|
+
|
|
152
|
+
interface IHeadingProps extends ITypographyCommon<HTMLAsElement> {
|
|
153
|
+
type: 'answer';
|
|
154
|
+
size: 1 | 2 | 3 | 4 | 5 | 6;
|
|
155
|
+
}
|
|
156
|
+
declare const Heading: react__default.ForwardRefExoticComponent<IHeadingProps & react__default.RefAttributes<HTMLAsElement>>;
|
|
157
|
+
|
|
158
|
+
interface IPropsNormalBold extends ITypographyCommon<HTMLElement> {
|
|
159
|
+
type: NORMAL;
|
|
160
|
+
size: 1 | 2 | 3;
|
|
161
|
+
weight: BOLD;
|
|
162
|
+
}
|
|
163
|
+
interface IPropsNormalRegular extends ITypographyCommon<HTMLElement> {
|
|
164
|
+
type: NORMAL;
|
|
165
|
+
size: 1 | 2 | 3;
|
|
166
|
+
weight: REGULAR;
|
|
167
|
+
}
|
|
168
|
+
interface IPropsNormalMedium extends ITypographyCommon<HTMLElement> {
|
|
169
|
+
type: NORMAL;
|
|
170
|
+
size: 1 | 2 | 3;
|
|
171
|
+
weight: MEDIUM;
|
|
172
|
+
}
|
|
173
|
+
type ICaptionProps = IPropsNormalBold | IPropsNormalRegular | IPropsNormalMedium;
|
|
174
|
+
declare const Caption: react.ForwardRefExoticComponent<ICaptionProps & react.RefAttributes<HTMLParagraphElement>>;
|
|
175
|
+
|
|
176
|
+
interface IPropsNormal extends ITypographyCommon {
|
|
177
|
+
type: NORMAL;
|
|
178
|
+
size: 1 | 2 | 3 | 4;
|
|
179
|
+
weight: REGULAR | MEDIUM | BOLD;
|
|
180
|
+
}
|
|
181
|
+
interface IPropsPost extends ITypographyCommon {
|
|
182
|
+
type: POST;
|
|
183
|
+
size: 1 | 3;
|
|
184
|
+
weight: REGULAR;
|
|
185
|
+
}
|
|
186
|
+
interface IPropsAccent extends ITypographyCommon {
|
|
187
|
+
type: ACCENT;
|
|
188
|
+
size: 1 | 2 | 3;
|
|
189
|
+
weight: REGULAR | MEDIUM | BOLD;
|
|
190
|
+
}
|
|
191
|
+
interface IPropsAnswer extends ITypographyCommon {
|
|
192
|
+
type: ANSWER;
|
|
193
|
+
size: 1;
|
|
194
|
+
weight: BOLD | REGULAR;
|
|
195
|
+
}
|
|
196
|
+
type ParagraphProps = IPropsNormal | IPropsPost | IPropsAccent | IPropsAnswer;
|
|
197
|
+
declare const Paragraph: react.ForwardRefExoticComponent<ParagraphProps & react.RefAttributes<HTMLParagraphElement>>;
|
|
198
|
+
|
|
199
|
+
interface ITitleProps extends ITypographyCommon {
|
|
200
|
+
type: ACCENT | NORMAL;
|
|
201
|
+
weight: BOLD | MEDIUM;
|
|
202
|
+
size: 1 | 2 | 3 | 4;
|
|
203
|
+
}
|
|
204
|
+
declare const Title: react__default.ForwardRefExoticComponent<ITitleProps & react__default.RefAttributes<HTMLParagraphElement>>;
|
|
205
|
+
|
|
206
|
+
interface IDisplayProps extends ITypographyCommon {
|
|
207
|
+
size: 2 | 3;
|
|
208
|
+
type: 'accent' | 'normal';
|
|
209
|
+
weight: 'black';
|
|
210
|
+
}
|
|
211
|
+
declare const Display: react.ForwardRefExoticComponent<IDisplayProps & react.RefAttributes<HTMLParagraphElement>>;
|
|
212
|
+
|
|
213
|
+
type BreakPointsKey = keyof typeof breakpointOrigin;
|
|
214
|
+
declare const rootMediaStyle: string;
|
|
215
|
+
declare const MediaContextProvider: react.ComponentType<_artsy_fresnel_dist_Media.MediaContextProviderProps<"m" | "s" | "xs" | "l" | "xl" | "xxl" | "xxxl"> & {
|
|
216
|
+
children: react.ReactNode;
|
|
217
|
+
}>;
|
|
218
|
+
declare const Media: react.ComponentType<_artsy_fresnel_dist_Media.MediaProps<"m" | "s" | "xs" | "l" | "xl" | "xxl" | "xxxl", never>>;
|
|
219
|
+
|
|
220
|
+
declare const KEY = "level";
|
|
221
|
+
|
|
222
|
+
type OmitChildren<T, P extends string | react__default.ReactNode> = Omit<T, 'children'> & {
|
|
223
|
+
text?: P;
|
|
224
|
+
};
|
|
225
|
+
type TypoSet<T extends string | react__default.ReactNode = string> = ({
|
|
226
|
+
[KEY]: TypographyCaptionPrefix;
|
|
227
|
+
} & OmitChildren<ICaptionProps, T>) | ({
|
|
228
|
+
[KEY]: TypographyDisplayPrefix;
|
|
229
|
+
} & OmitChildren<IDisplayProps, T>) | ({
|
|
230
|
+
[KEY]: TypographyParagraphPrefix;
|
|
231
|
+
} & OmitChildren<ParagraphProps, T>) | ({
|
|
232
|
+
[KEY]: TypographyHeadingPrefix;
|
|
233
|
+
} & OmitChildren<IHeadingProps, T>) | ({
|
|
234
|
+
[KEY]: TypographyTitlePrefix;
|
|
235
|
+
} & OmitChildren<ITitleProps, T>);
|
|
236
|
+
|
|
237
|
+
type TypographyType = (props: Partial<Record<BreakPointsKey, TypoSet>> & {
|
|
238
|
+
children?: react__default.ReactNode;
|
|
239
|
+
}) => JSX.Element;
|
|
240
|
+
declare const Typography: TypographyType;
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* PopoverRoot
|
|
244
|
+
*/
|
|
245
|
+
interface PopoverRootProps {
|
|
246
|
+
isOpen?: boolean;
|
|
247
|
+
children?: react.ReactNode;
|
|
248
|
+
onChange?: (isOpen: boolean) => void;
|
|
249
|
+
}
|
|
250
|
+
/**
|
|
251
|
+
* PopoverTrigger
|
|
252
|
+
*/
|
|
253
|
+
interface PopoverTriggerProps {
|
|
254
|
+
by?: ReactNode;
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
* PopoverContent
|
|
258
|
+
*/
|
|
259
|
+
interface PopoverContentProps extends HTMLAttributes<HTMLDivElement> {
|
|
260
|
+
level?: 'primary' | 'secondary';
|
|
261
|
+
tag?: string;
|
|
262
|
+
icon?: Pick<IconProps, 'name' | 'thick' | 'fill'>;
|
|
263
|
+
title?: string;
|
|
264
|
+
description?: string;
|
|
265
|
+
position?: 'top' | 'right' | 'bottom' | 'left';
|
|
266
|
+
align?: 'start' | 'center' | 'end';
|
|
267
|
+
confirmText?: string;
|
|
268
|
+
isOverlay?: boolean;
|
|
269
|
+
container?: HTMLElement;
|
|
270
|
+
onConfirm?: () => void;
|
|
271
|
+
onClose?: () => void;
|
|
272
|
+
onPointerDownOutside?: () => void;
|
|
273
|
+
}
|
|
274
|
+
declare const Popover: (({ isOpen, children, onChange }: PopoverRootProps) => react_jsx_runtime.JSX.Element) & {
|
|
275
|
+
Trigger: ({ by }: PopoverTriggerProps) => react_jsx_runtime.JSX.Element;
|
|
276
|
+
Content: react.ForwardRefExoticComponent<PopoverContentProps & react.RefAttributes<HTMLDivElement>>;
|
|
277
|
+
Arrow: react.ForwardRefExoticComponent<Popover$1.PopoverArrowProps & react.RefAttributes<SVGSVGElement>>;
|
|
278
|
+
Close: react.ForwardRefExoticComponent<Popover$1.PopoverCloseProps & react.RefAttributes<HTMLButtonElement>>;
|
|
279
|
+
};
|
|
280
|
+
|
|
281
|
+
interface TooltipRootProps {
|
|
282
|
+
/**
|
|
283
|
+
* Tooltip 내부에 렌더링할 컴포넌트입니다.
|
|
284
|
+
*/
|
|
285
|
+
children?: ReactNode;
|
|
286
|
+
/**
|
|
287
|
+
* Tooltip의 열림 상태를 제어합니다.
|
|
288
|
+
* controlled 상태로 사용할 때 활용합니다.
|
|
289
|
+
*/
|
|
290
|
+
open?: boolean;
|
|
291
|
+
/**
|
|
292
|
+
* Tooltip의 초기 열림 상태를 설정합니다.
|
|
293
|
+
* uncontrolled 상태로 사용할 때 활용합니다.
|
|
294
|
+
*/
|
|
295
|
+
defaultOpen?: boolean;
|
|
296
|
+
/**
|
|
297
|
+
* Tooltip의 열림/닫힘 상태가 변경될 때 호출되는 콜백 함수입니다.
|
|
298
|
+
*/
|
|
299
|
+
onOpenChange?: (open: boolean) => void;
|
|
300
|
+
/**
|
|
301
|
+
* 마우스가 Trigger에 진입한 후 Tooltip이 열리기까지의 지연 시간(ms)입니다.
|
|
302
|
+
* Provider에 설정된 값을 재정의합니다.
|
|
303
|
+
* @default 0
|
|
304
|
+
*/
|
|
305
|
+
delayDuration?: number;
|
|
306
|
+
/**
|
|
307
|
+
* true로 설정하면 Tooltip 컨텐츠에 마우스를 올렸을 때
|
|
308
|
+
* Trigger를 벗어나도 Tooltip이 닫히지 않습니다.
|
|
309
|
+
* @default false
|
|
310
|
+
*/
|
|
311
|
+
disableHoverableContent?: boolean;
|
|
312
|
+
}
|
|
313
|
+
type Side = 'top' | 'right' | 'bottom' | 'left';
|
|
314
|
+
interface TooltipTriggerProps {
|
|
315
|
+
/**
|
|
316
|
+
* @param by
|
|
317
|
+
* Tooltip을 표시할 트리거 엘리먼트를 설정합니다.
|
|
318
|
+
*/
|
|
319
|
+
by: ReactNode;
|
|
320
|
+
}
|
|
321
|
+
interface TooltipContentProps extends react__default.HTMLAttributes<HTMLDivElement> {
|
|
322
|
+
children?: ReactNode;
|
|
323
|
+
/**
|
|
324
|
+
* @param description
|
|
325
|
+
* Tooltip안에 표시할 텍스트 컨텐츠를 설정합니다.
|
|
326
|
+
*/
|
|
327
|
+
description?: string;
|
|
328
|
+
/**
|
|
329
|
+
* @param position
|
|
330
|
+
* Tooltip을 렌더링할 방향을 설정합니다.
|
|
331
|
+
*/
|
|
332
|
+
position?: Side;
|
|
333
|
+
/**
|
|
334
|
+
* @param offset
|
|
335
|
+
* Tooltip과 Trigger 사이의 간격을 설정합니다(px)
|
|
336
|
+
*/
|
|
337
|
+
offset?: 'medium' | 'high';
|
|
338
|
+
/**
|
|
339
|
+
* @param collisionPadding
|
|
340
|
+
* Tooltip이 충돌 판정을 받는 영역을 조정합니다.
|
|
341
|
+
*/
|
|
342
|
+
collisionPadding?: number | Partial<Record<Side, number>>;
|
|
343
|
+
}
|
|
344
|
+
declare const Tooltip: (({ children, ...props }: TooltipRootProps) => react_jsx_runtime.JSX.Element) & {
|
|
345
|
+
Provider: react__default.FC<Tooltip$1.TooltipProviderProps>;
|
|
346
|
+
Trigger: ({ by }: TooltipTriggerProps) => react_jsx_runtime.JSX.Element;
|
|
347
|
+
Content: react__default.ForwardRefExoticComponent<TooltipContentProps & react__default.RefAttributes<HTMLDivElement>>;
|
|
348
|
+
};
|
|
349
|
+
|
|
350
|
+
declare const iconButtonVariants: (props?: ({
|
|
351
|
+
level?: "primary" | "secondary" | "tertiary" | "quaternary" | "negative" | "static" | "inverse-static" | "inverse" | undefined;
|
|
352
|
+
size?: "m" | "s" | "xs" | "l" | undefined;
|
|
353
|
+
fill?: boolean | undefined;
|
|
354
|
+
} & ({
|
|
355
|
+
class?: cva.ClassValue;
|
|
356
|
+
className?: never;
|
|
357
|
+
} | {
|
|
358
|
+
class?: never;
|
|
359
|
+
className?: cva.ClassValue;
|
|
360
|
+
})) | undefined) => string;
|
|
361
|
+
type IconButtonLevelType = 'primary' | 'secondary' | 'tertiary' | 'quaternary' | 'negative' | 'static' | 'inverse' | 'inverse-static';
|
|
362
|
+
type IconSizeType = 'l' | 'm' | 's' | 'xs';
|
|
363
|
+
interface IconButtonProps extends ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof iconButtonVariants> {
|
|
364
|
+
asChild?: boolean;
|
|
365
|
+
size?: 'l' | 'm' | 's' | 'xs';
|
|
366
|
+
fill?: boolean;
|
|
367
|
+
level?: IconButtonLevelType;
|
|
368
|
+
icon: Omit<IconProps, 'className'>;
|
|
369
|
+
isLoading?: boolean;
|
|
370
|
+
}
|
|
371
|
+
declare const IconButton: react.ForwardRefExoticComponent<IconButtonProps & react.RefAttributes<HTMLButtonElement>>;
|
|
372
|
+
|
|
373
|
+
interface CheckboxProps extends React.ComponentPropsWithoutRef<typeof Checkbox$1.Root> {
|
|
374
|
+
label?: string;
|
|
375
|
+
description?: string;
|
|
376
|
+
}
|
|
377
|
+
declare const Checkbox: react.ForwardRefExoticComponent<CheckboxProps & react.RefAttributes<HTMLButtonElement>>;
|
|
378
|
+
|
|
379
|
+
interface RadioItemProps extends ComponentPropsWithoutRef<typeof RadioGroup.Item> {
|
|
380
|
+
label?: string;
|
|
381
|
+
description?: string;
|
|
382
|
+
}
|
|
383
|
+
declare const Radio: react.ForwardRefExoticComponent<Omit<RadioGroup.RadioGroupProps & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>> & {
|
|
384
|
+
Item: react.ForwardRefExoticComponent<RadioItemProps & react.RefAttributes<HTMLButtonElement>>;
|
|
385
|
+
};
|
|
386
|
+
|
|
387
|
+
declare const defaultTextfieldVariants: (props?: ({
|
|
388
|
+
color?: "neutral-container-lowest" | "neutral-container-mid" | undefined;
|
|
389
|
+
} & ({
|
|
390
|
+
class?: cva.ClassValue;
|
|
391
|
+
className?: never;
|
|
392
|
+
} | {
|
|
393
|
+
class?: never;
|
|
394
|
+
className?: cva.ClassValue;
|
|
395
|
+
})) | undefined) => string;
|
|
396
|
+
type TextfieldButtonProps = Omit<DefaultButtonProps<FillType>, 'size'>;
|
|
397
|
+
type TextfieldLabelType = 'in' | 'out';
|
|
398
|
+
interface TextfieldLabelProps {
|
|
399
|
+
text: string;
|
|
400
|
+
type?: TextfieldLabelType;
|
|
401
|
+
}
|
|
402
|
+
interface TextfieldProps extends InputHTMLAttributes<HTMLInputElement>, VariantProps<typeof defaultTextfieldVariants> {
|
|
403
|
+
label?: TextfieldLabelProps;
|
|
404
|
+
value?: string;
|
|
405
|
+
maxCharacter?: number;
|
|
406
|
+
error?: string;
|
|
407
|
+
disabled?: boolean;
|
|
408
|
+
button?: TextfieldButtonProps;
|
|
409
|
+
color?: Extract<BasicColorType, 'neutral-container-mid' | 'neutral-container-lowest'>;
|
|
410
|
+
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
411
|
+
onClear?: () => void;
|
|
412
|
+
}
|
|
413
|
+
declare const Textfield: react.ForwardRefExoticComponent<TextfieldProps & react.RefAttributes<HTMLInputElement>>;
|
|
414
|
+
|
|
415
|
+
interface Range {
|
|
416
|
+
text: string;
|
|
417
|
+
icon: IconKey;
|
|
418
|
+
}
|
|
419
|
+
interface SliderRootProps extends ComponentPropsWithoutRef<typeof Slider$1.Root> {
|
|
420
|
+
label?: string;
|
|
421
|
+
tooltip?: string;
|
|
422
|
+
rangeLeft: Range;
|
|
423
|
+
rangeRight: Range;
|
|
424
|
+
}
|
|
425
|
+
declare const Slider: react.ForwardRefExoticComponent<SliderRootProps & react.RefAttributes<HTMLSpanElement>>;
|
|
426
|
+
|
|
427
|
+
interface SelectProps extends ComponentPropsWithoutRef<typeof Select$1.Root> {
|
|
428
|
+
id?: string;
|
|
429
|
+
placeholder?: string;
|
|
430
|
+
label?: string;
|
|
431
|
+
chip?: string;
|
|
432
|
+
listLabel?: string;
|
|
433
|
+
popSide?: ComponentProps<typeof Select$1.Content>['side'];
|
|
434
|
+
sideOffset?: ComponentProps<typeof Select$1.Content>['sideOffset'];
|
|
435
|
+
isResponsive?: boolean;
|
|
436
|
+
openDirection?: 'slide-up' | 'slide-right';
|
|
437
|
+
badge?: string;
|
|
438
|
+
container?: HTMLElement;
|
|
439
|
+
}
|
|
440
|
+
interface SelectItemProps {
|
|
441
|
+
value: string;
|
|
442
|
+
text?: string;
|
|
443
|
+
disabled?: boolean;
|
|
444
|
+
icon?: IconProps;
|
|
445
|
+
onClick?: () => void;
|
|
446
|
+
}
|
|
447
|
+
declare const Select: react.ForwardRefExoticComponent<SelectProps & react.RefAttributes<never>> & {
|
|
448
|
+
Item: ({ value, text, disabled, icon, onClick }: SelectItemProps) => react_jsx_runtime.JSX.Element;
|
|
449
|
+
};
|
|
450
|
+
|
|
451
|
+
interface ListRootProps extends LiHTMLAttributes<HTMLUListElement> {
|
|
452
|
+
children?: ReactNode;
|
|
453
|
+
value?: string;
|
|
454
|
+
onChangeValue?: (value: string) => void;
|
|
455
|
+
}
|
|
456
|
+
interface ItemProps {
|
|
457
|
+
value: string;
|
|
458
|
+
text: string;
|
|
459
|
+
disabled?: boolean;
|
|
460
|
+
icon?: IconProps;
|
|
461
|
+
onClick?: () => void;
|
|
462
|
+
}
|
|
463
|
+
declare const List: (({ children, className, ...props }: ListRootProps) => react_jsx_runtime.JSX.Element) & {
|
|
464
|
+
Item: ({ value, text, disabled, icon, onClick }: ItemProps) => react_jsx_runtime.JSX.Element;
|
|
465
|
+
};
|
|
466
|
+
|
|
467
|
+
declare const defaultLabelVariants: (props?: ({
|
|
468
|
+
level?: "primary" | "secondary" | undefined;
|
|
469
|
+
position?: "top" | "right" | undefined;
|
|
470
|
+
size?: "m" | "s" | "l" | undefined;
|
|
471
|
+
offset?: "medium" | "high" | "low" | undefined;
|
|
472
|
+
disabled?: boolean | undefined;
|
|
473
|
+
error?: boolean | undefined;
|
|
474
|
+
} & ({
|
|
475
|
+
class?: cva.ClassValue;
|
|
476
|
+
className?: never;
|
|
477
|
+
} | {
|
|
478
|
+
class?: never;
|
|
479
|
+
className?: cva.ClassValue;
|
|
480
|
+
})) | undefined) => string;
|
|
481
|
+
interface LabelProps extends ComponentPropsWithoutRef<typeof Label$1.Root>, VariantProps<typeof defaultLabelVariants> {
|
|
482
|
+
level?: 'primary' | 'secondary';
|
|
483
|
+
position?: 'top' | 'right';
|
|
484
|
+
size?: 'l' | 'm' | 's';
|
|
485
|
+
offset?: 'high' | 'medium' | 'low';
|
|
486
|
+
disabled?: boolean;
|
|
487
|
+
error?: boolean;
|
|
488
|
+
}
|
|
489
|
+
declare const Label: react.ForwardRefExoticComponent<LabelProps & react.RefAttributes<HTMLLabelElement>>;
|
|
490
|
+
|
|
491
|
+
declare const textButtonVariants: (props?: ({
|
|
492
|
+
level?: "primary" | "secondary" | "tertiary" | "inverse-static" | "inverse" | undefined;
|
|
493
|
+
size?: "m" | "s" | undefined;
|
|
494
|
+
thick?: boolean | undefined;
|
|
495
|
+
underline?: boolean | undefined;
|
|
496
|
+
} & ({
|
|
497
|
+
class?: cva.ClassValue;
|
|
498
|
+
className?: never;
|
|
499
|
+
} | {
|
|
500
|
+
class?: never;
|
|
501
|
+
className?: cva.ClassValue;
|
|
502
|
+
})) | undefined) => string;
|
|
503
|
+
type TextLevelType = 'primary' | 'secondary' | 'tertiary' | 'inverse' | 'inverse-static';
|
|
504
|
+
type TextButtonSizeType = Extract<ButtonSizeType, 'm' | 's'>;
|
|
505
|
+
interface TextButtonProps extends CommonButtonProps, VariantProps<typeof textButtonVariants> {
|
|
506
|
+
asChild?: boolean;
|
|
507
|
+
level?: TextLevelType;
|
|
508
|
+
thick?: boolean;
|
|
509
|
+
underline?: boolean;
|
|
510
|
+
size?: TextButtonSizeType;
|
|
511
|
+
leftIcon?: ButtonIconProps;
|
|
512
|
+
rightIcon?: ButtonIconProps;
|
|
513
|
+
}
|
|
514
|
+
declare const TextButton: react.ForwardRefExoticComponent<TextButtonProps & react.RefAttributes<HTMLButtonElement>>;
|
|
515
|
+
|
|
516
|
+
type LoadingSizeType = 'm' | 's' | 'xs';
|
|
517
|
+
type LoadingLevelType = 'brand-label-primary' | 'neutral-label-primary' | 'neutral-label-static-primary' | 'inverse-label-primary' | 'inverse-label-static-primary';
|
|
518
|
+
interface LoadingProps {
|
|
519
|
+
size?: LoadingSizeType;
|
|
520
|
+
level?: LoadingLevelType;
|
|
521
|
+
}
|
|
522
|
+
declare const Loading: ({ size, level }: LoadingProps) => react_jsx_runtime.JSX.Element;
|
|
523
|
+
|
|
524
|
+
type LightIllustType = "decoration-airplane-1_1" | "decoration-bulb-1_1" | "decoration-car-1_1" | "decoration-coffee-1_1" | "decoration-english-1_1" | "decoration-flag-1_1" | "decoration-hourglass-1_1" | "decoration-money-1_1" | "decoration-palm-1_1" | "decoration-rocket-1_1" | "decoration-shake_hands-1_1" | "decoration-star_01-1_1" | "decoration-star_02-1_1" | "decoration-star_03-1_1" | "decoration-star_04-1_1" | "decoration-star_05-1_1" | "decoration-star_06-1_1" | "decoration-star_07-1_1" | "decoration-star_08-1_1" | "decoration-star_09-1_1" | "decoration-star_10-1_1" | "decoration-star_11-1_1" | "decoration-tennis-1_1" | "object-bomb-1_1" | "object-book_pencil-4_3" | "object-brain-1_1" | "object-clap-1_1" | "object-documents_02-1_1" | "object-empty_box-1_1" | "object-empty_box-4_3" | "object-feather_pen-1_1" | "object-folder_01-1_1" | "object-folder_02-1_1" | "object-free_ticket-1_1" | "object-gift-1_1" | "object-give_gift-1_1" | "object-graduation_cap_pencil-4_3" | "object-lock-4_3" | "object-magnifying_glass-1_1" | "object-magnifying_glass-4_3" | "object-megaphone-1_1" | "object-paper-1_1" | "object-pencil_paper-16_9" | "object-puzzle-4_3" | "object-smoke-16_9" | "object-university_01-1_1" | "object-university_02-1_1" | "object_documents_01-1_1" | "object_find_man-1_1" | "person-ai_writing-1_1" | "person-bye-4_3" | "person-cheerup-16_9" | "person-cheerup-4_3" | "person-holding_a_book-1_1" | "person-introduce-1_1" | "person-introduce-pro-1_1" | "person-make_profile-1_1" | "person-raining-1_1" | "person-searching-16_9" | "person-searching_01-1_1" | "person-searching_01-4_3" | "person-searching_02-1_1" | "person-space_in_work-4_3" | "person-standing_with_a_star-16_9" | "person-time_out_01-1_1" | "person-time_out_02-1_1" | "person-time_out_03-1_1" | "person-time_out_04-1_1" | "person-time_out_05-1_1" | "person-understand-1_1" | "person-working_01-4_3" | "person-working_02-4_3" | "person-worried-1_1" | "person-worried_01-4_3" | "person-worried_02-4_3" | "person-worried_03-4_3" | "person-worried_04-4_3" | "person-writing_01-1_1" | "person-writing_02-1_1";
|
|
525
|
+
type DarkIllustType = "decoration-airplane-1_1" | "decoration-bulb-1_1" | "decoration-car-1_1" | "decoration-flag-1_1" | "decoration-hourglass-1_1" | "decoration-rocket-1_1" | "decoration-star_01-1_1" | "decoration-star_02-1_1" | "decoration-star_03-1_1" | "decoration-star_04-1_1" | "decoration-star_05-1_1" | "decoration-star_06-1_1" | "decoration-star_07-1_1" | "decoration-star_08-1_1" | "decoration-star_09-1_1" | "decoration-star_10-1_1" | "decoration-star_11-1_1" | "object-bomb-1_1" | "object-brain-1_1" | "object-clap-1_1" | "object-documents_02-1_1" | "object-empty_box-1_1" | "object-empty_box-4_3" | "object-folder_01-1_1" | "object-folder_02-1_1" | "object-free_ticket-1_1" | "object-gift-1_1" | "object-give_gift-1_1" | "object-graduation_cap_pencil-4_3" | "object-lock-4_3" | "object-magnifying_glass-1_1" | "object-magnifying_glass-4_3" | "object-megaphone-1_1" | "object-paper-1_1" | "object-pencil_paper-16_9" | "object-puzzle-4_3" | "object-smoke-16_9" | "object_documents_01-1_1" | "object_find_man-1_1" | "person-bye-4_3" | "person-holding_a_book-1_1" | "person-introduce-1_1" | "person-introduce-pro-1_1" | "person-make_profile-1_1" | "person-raining-1_1" | "person-searching-16_9" | "person-searching_01-1_1" | "person-searching_01-4_3" | "person-searching_02-1_1" | "person-space_in_work-4_3" | "person-standing_with_a_star-16_9" | "person-time_out_01-1_1" | "person-time_out_02-1_1" | "person-time_out_03-1_1" | "person-time_out_04-1_1" | "person-time_out_05-1_1" | "person-working_01-4_3" | "person-worried-1_1" | "person-worried_01-4_3" | "person-worried_02-4_3" | "person-worried_03-4_3" | "person-worried_04-4_3" | "person-writing_01-1_1";
|
|
526
|
+
type IllustType = DarkIllustType | LightIllustType;
|
|
527
|
+
|
|
528
|
+
interface Source<T extends false | true = true> {
|
|
529
|
+
name: IllustType;
|
|
530
|
+
inverse?: T;
|
|
531
|
+
}
|
|
532
|
+
interface IProps extends Omit<ImageProps, 'alt' | 'width' | 'height' | 'fill' | 'src'> {
|
|
533
|
+
width: number;
|
|
534
|
+
src: {
|
|
535
|
+
light: Source<false>;
|
|
536
|
+
dark?: Source;
|
|
537
|
+
};
|
|
538
|
+
margin?: Property.Margin<string>;
|
|
539
|
+
}
|
|
540
|
+
declare const Illust: (props: IProps) => react_jsx_runtime.JSX.Element;
|
|
541
|
+
|
|
542
|
+
declare const prefetchIllust: ({ name, isDark }: {
|
|
543
|
+
name: IllustType;
|
|
544
|
+
isDark?: boolean;
|
|
545
|
+
}) => Promise<Response>;
|
|
546
|
+
|
|
547
|
+
export { type BasicColorType, type BreakPointsKey, Button, type ButtonIconProps, type ButtonProps, type ButtonSizeType, Caption, Checkbox, type CommonButtonProps, DefaultButton, type DefaultButtonProps, Display, type FillFalseLevelType, type FillLevelType, type FillType, Heading, type ICaptionProps, type IDisplayProps, type IHeadingProps, type IPropsAccent, type IPropsAnswer, type IPropsNormal, type IPropsPost, type ITitleProps, Icon, IconButton, type IconButtonLevelType, type IconButtonProps, type IconColorType, type IconComponent, type IconComponentProps, type IconKey, type IconMapType, type IconProps, type IconSizeKey, type IconSizeType, Illust, type ItemProps, Label, List, Loading, Media, MediaContextProvider, Paragraph, type ParagraphProps, Popover, type PopoverContentProps, Radio, Select, type SelectItemProps, type SelectProps, Slider, type Source, TextButton, type TextButtonProps, Textfield, type TextfieldButtonProps, type TextfieldLabelType, type TextfieldProps, Title, Toaster, Tooltip, Typography, arrayToStyleObject, colorKeys, getIconComponent, iconKeyOptions, iconMap, isEmptyObject, objectToArray, prefetchIllust, rootMediaStyle, useToast };
|