@liner-fe/prism 2.6.40 → 2.7.1

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 (3) hide show
  1. package/lib/index.d.ts +10 -24
  2. package/lib/index.js +9373 -9377
  3. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import * as react from 'react';
2
- import react__default, { ComponentType, ForwardRefExoticComponent, RefAttributes, ButtonHTMLAttributes, SVGProps, HTMLAttributes, ReactNode, ComponentPropsWithoutRef, InputHTMLAttributes, ComponentProps, LiHTMLAttributes, MouseEventHandler } from 'react';
3
1
  import { SystemKeys, BasicColorType, TypographyCaptionPrefix, TypographyParagraphPrefix, TypographyHeadingPrefix, TypographyTitlePrefix, TypographyDisplayPrefix } from '@liner-fe/design-token-primitive';
2
+ import * as react from 'react';
3
+ import react__default, { ButtonHTMLAttributes, SVGProps, RefAttributes, HTMLAttributes, ReactNode, ComponentPropsWithoutRef, InputHTMLAttributes, ComponentProps, LiHTMLAttributes, MouseEventHandler } from 'react';
4
4
  import * as cva from 'cva';
5
5
  import { VariantProps } from 'cva';
6
6
  import { IconProps as IconProps$1 } from '@liner-fe/icon';
@@ -15,19 +15,6 @@ import { PopoverProps, PopoverPortalProps } from '@radix-ui/react-popover';
15
15
  import { ImageProps } from 'next/image';
16
16
  import { Property } from 'csstype';
17
17
 
18
- interface IconComponentProps {
19
- className?: string;
20
- color?: string;
21
- fill?: boolean;
22
- thick?: boolean;
23
- size?: 16 | 20 | 24 | 32 | 40;
24
- }
25
- type IconComponent = ComponentType<IconComponentProps> | ForwardRefExoticComponent<IconComponentProps & RefAttributes<SVGSVGElement>>;
26
- type IconMapType = typeof iconMap;
27
- 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' | 'retry' | 'add-to-folder' | 'remove-from-folder' | 'move-to-folder' | 'new-thread-folder' | 'chrome' | 'new-chrome-extension' | 'mobile' | 'google-color' | 'stop' | 'microscope' | 'members' | 'teams' | 'literature-review' | 'expand-close';
28
-
29
- declare const iconMap: Record<IconKey, IconComponent>;
30
-
31
18
  declare const objectToArray: <T extends Record<string, unknown>>(obj: T) => [string, unknown][];
32
19
  declare const arrayToStyleObject: <T extends SystemKeys>(colorKeys: T[], style: {
33
20
  readonly [key: string]: string;
@@ -38,7 +25,7 @@ declare const defaultButtonVariants: (props?: ({
38
25
  level?: "primary" | "secondary" | "tertiary" | "quaternary" | "quinary" | "negative" | "static" | "inverse-static" | undefined;
39
26
  fill?: boolean | undefined;
40
27
  align?: "center" | "spaceBetween" | undefined;
41
- size?: "m" | "s" | "l" | "cta" | undefined;
28
+ size?: "l" | "m" | "s" | "cta" | undefined;
42
29
  width?: "full" | "fit-content" | undefined;
43
30
  } & ({
44
31
  class?: cva.ClassValue;
@@ -72,6 +59,8 @@ type ButtonProps = DefaultButtonProps<FillType>;
72
59
  declare const DefaultButton: react.ForwardRefExoticComponent<DefaultButtonProps<boolean> & react.RefAttributes<HTMLButtonElement>>;
73
60
  declare const Button: react.ForwardRefExoticComponent<ButtonProps & react.RefAttributes<HTMLButtonElement>>;
74
61
 
62
+ 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' | 'retry' | 'add-to-folder' | 'remove-from-folder' | 'move-to-folder' | 'new-thread-folder' | 'chrome' | 'new-chrome-extension' | 'mobile' | 'google-color' | 'stop' | 'microscope' | 'members' | 'teams' | 'literature-review' | 'expand-close';
63
+
75
64
  declare const iconSizeMap: {
76
65
  readonly xs: 16;
77
66
  readonly s: 20;
@@ -79,7 +68,6 @@ declare const iconSizeMap: {
79
68
  readonly l: 32;
80
69
  readonly xl: 40;
81
70
  };
82
- declare const iconKeyOptions: IconKey[];
83
71
  declare const iconVariants: (props?: ({
84
72
  type?: SystemKeys | undefined;
85
73
  fillType?: SystemKeys | undefined;
@@ -90,7 +78,6 @@ declare const iconVariants: (props?: ({
90
78
  class?: never;
91
79
  className?: cva.ClassValue;
92
80
  })) | undefined) => string;
93
- declare const getIconComponent: (iconKey: IconKey, map: IconMapType) => IconComponent;
94
81
  type IconSizeKey = keyof typeof iconSizeMap;
95
82
  type IconColorType = Extract<SystemKeys, BasicColorType>;
96
83
  interface IconProps extends VariantProps<typeof iconVariants>, Omit<SVGProps<SVGSVGElement>, 'fill'> {
@@ -102,7 +89,6 @@ interface IconProps extends VariantProps<typeof iconVariants>, Omit<SVGProps<SVG
102
89
  fill?: boolean;
103
90
  className?: string;
104
91
  }
105
- declare const Icon: react.ForwardRefExoticComponent<Omit<IconProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
106
92
 
107
93
  interface IToastBase extends ToastProps, RefAttributes<HTMLLIElement> {
108
94
  toastId: number;
@@ -213,10 +199,10 @@ declare const Display: react.ForwardRefExoticComponent<IDisplayProps & react.Ref
213
199
 
214
200
  type BreakPointsKey = keyof typeof breakpointOrigin;
215
201
  declare const rootMediaStyle: string;
216
- declare const MediaContextProvider: react.ComponentType<_artsy_fresnel_dist_Media.MediaContextProviderProps<"m" | "s" | "xl" | "l" | "xs" | "xxl" | "xxxl"> & {
202
+ declare const MediaContextProvider: react.ComponentType<_artsy_fresnel_dist_Media.MediaContextProviderProps<"xl" | "l" | "m" | "s" | "xs" | "xxl" | "xxxl"> & {
217
203
  children: react.ReactNode;
218
204
  }>;
219
- declare const Media: react.ComponentType<_artsy_fresnel_dist_Media.MediaProps<"m" | "s" | "xl" | "l" | "xs" | "xxl" | "xxxl", never>>;
205
+ declare const Media: react.ComponentType<_artsy_fresnel_dist_Media.MediaProps<"xl" | "l" | "m" | "s" | "xs" | "xxl" | "xxxl", never>>;
220
206
 
221
207
  declare const KEY = "level";
222
208
 
@@ -350,7 +336,7 @@ declare const Tooltip: (({ children, ...props }: TooltipRootProps) => react_jsx_
350
336
 
351
337
  declare const iconButtonVariants: (props?: ({
352
338
  level?: "primary" | "secondary" | "tertiary" | "quaternary" | "negative" | "static" | "inverse-static" | "inverse" | undefined;
353
- size?: "m" | "s" | "l" | "xs" | undefined;
339
+ size?: "l" | "m" | "s" | "xs" | undefined;
354
340
  fill?: boolean | undefined;
355
341
  } & ({
356
342
  class?: cva.ClassValue;
@@ -501,7 +487,7 @@ declare const useSnackbar: () => {
501
487
  declare const defaultLabelVariants: (props?: ({
502
488
  level?: "primary" | "secondary" | undefined;
503
489
  position?: "top" | "right" | undefined;
504
- size?: "m" | "s" | "l" | undefined;
490
+ size?: "l" | "m" | "s" | undefined;
505
491
  offset?: "medium" | "high" | "low" | undefined;
506
492
  disabled?: boolean | undefined;
507
493
  error?: boolean | undefined;
@@ -672,4 +658,4 @@ interface TagProps extends Omit<IPropsNormalBold, 'type' | 'size' | 'weight'> {
672
658
  }
673
659
  declare const Tag: react.ForwardRefExoticComponent<TagProps & react.RefAttributes<HTMLParagraphElement>>;
674
660
 
675
- export { type BaseCoachMarkContentProps, type BreakPointsKey, Button, type ButtonIconProps, type ButtonProps, type ButtonSizeType, Caption, Checkbox, CoachMark, type CoachMarkContentProps, type CommonButtonProps, CompactCoachMark, DefaultButton, type DefaultButtonProps, Display, type FillFalseLevelType, type FillLevelType, type FillType, Heading, type ICaptionProps, type IDisplayProps, type IHeadingProps, type IPropsAccent, type IPropsAnswer, type IPropsNormal, type IPropsNormalBold, 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, type ItemProps, Label, List, Loading, Logo, Media, MediaContextProvider, Paragraph, type ParagraphProps, Popover, type PopoverContentProps, PrimitiveCoachMark, type PrimitiveCoachMarkContentProps, type PrimitiveCoachMarkRootProps, Radio, Select, type SelectItemProps, type SelectProps, SingleSnackbar, Snackbar, Tag, TextButton, type TextButtonProps, Textfield, type TextfieldButtonProps, type TextfieldLabelType, type TextfieldProps, Title, Toaster, Tooltip, Typography, arrayToStyleObject, getIconComponent, iconKeyOptions, iconMap, isEmptyObject, objectToArray, rootMediaStyle, snackbarAtom, useSnackbar, useToast };
661
+ export { type BaseCoachMarkContentProps, type BreakPointsKey, Button, type ButtonIconProps, type ButtonProps, type ButtonSizeType, Caption, Checkbox, CoachMark, type CoachMarkContentProps, type CommonButtonProps, CompactCoachMark, DefaultButton, type DefaultButtonProps, Display, type FillFalseLevelType, type FillLevelType, type FillType, Heading, type ICaptionProps, type IDisplayProps, type IHeadingProps, type IPropsAccent, type IPropsAnswer, type IPropsNormal, type IPropsNormalBold, type IPropsPost, type ITitleProps, IconButton, type IconButtonLevelType, type IconButtonProps, type IconSizeType, type ItemProps, Label, List, Loading, Logo, Media, MediaContextProvider, Paragraph, type ParagraphProps, Popover, type PopoverContentProps, PrimitiveCoachMark, type PrimitiveCoachMarkContentProps, type PrimitiveCoachMarkRootProps, Radio, Select, type SelectItemProps, type SelectProps, SingleSnackbar, Snackbar, Tag, TextButton, type TextButtonProps, Textfield, type TextfieldButtonProps, type TextfieldLabelType, type TextfieldProps, Title, Toaster, Tooltip, Typography, arrayToStyleObject, isEmptyObject, objectToArray, rootMediaStyle, snackbarAtom, useSnackbar, useToast };