@liner-fe/prism 2.8.14 → 2.8.16
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.d.ts +7 -28
- package/lib/index.js +670 -772
- package/package.json +4 -3
- package/lib/illust.d.ts +0 -31
- package/lib/illust.js +0 -132
package/lib/index.d.ts
CHANGED
|
@@ -12,8 +12,7 @@ import { Popover as Popover$1, Tooltip as Tooltip$1, Checkbox as Checkbox$1, Rad
|
|
|
12
12
|
import * as recoil from 'recoil';
|
|
13
13
|
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
14
14
|
import { PopoverProps, PopoverPortalProps } from '@radix-ui/react-popover';
|
|
15
|
-
import {
|
|
16
|
-
import { Property } from 'csstype';
|
|
15
|
+
import { IllustProps } from '@liner-fe/illust';
|
|
17
16
|
|
|
18
17
|
declare const objectToArray: <T extends Record<string, unknown>>(obj: T) => [string, unknown][];
|
|
19
18
|
declare const arrayToStyleObject: <T extends SystemKeys>(colorKeys: T[], style: {
|
|
@@ -25,7 +24,7 @@ declare const defaultButtonVariants: (props?: ({
|
|
|
25
24
|
level?: "primary" | "secondary" | "tertiary" | "quaternary" | "quinary" | "negative" | "static" | "inverse-static" | undefined;
|
|
26
25
|
fill?: boolean | undefined;
|
|
27
26
|
align?: "center" | "spaceBetween" | undefined;
|
|
28
|
-
size?: "
|
|
27
|
+
size?: "l" | "m" | "s" | "cta" | undefined;
|
|
29
28
|
width?: "full" | "fit-content" | undefined;
|
|
30
29
|
} & ({
|
|
31
30
|
class?: cva.ClassValue;
|
|
@@ -174,10 +173,10 @@ declare const Display: react.ForwardRefExoticComponent<IDisplayProps & react.Ref
|
|
|
174
173
|
|
|
175
174
|
type BreakPointsKey = keyof typeof breakpointOrigin;
|
|
176
175
|
declare const rootMediaStyle: string;
|
|
177
|
-
declare const MediaContextProvider: react.ComponentType<_artsy_fresnel_dist_Media.MediaContextProviderProps<"
|
|
176
|
+
declare const MediaContextProvider: react.ComponentType<_artsy_fresnel_dist_Media.MediaContextProviderProps<"xl" | "l" | "m" | "s" | "xs" | "xxl" | "xxxl"> & {
|
|
178
177
|
children: react.ReactNode;
|
|
179
178
|
}>;
|
|
180
|
-
declare const Media: react.ComponentType<_artsy_fresnel_dist_Media.MediaProps<"
|
|
179
|
+
declare const Media: react.ComponentType<_artsy_fresnel_dist_Media.MediaProps<"xl" | "l" | "m" | "s" | "xs" | "xxl" | "xxxl", never>>;
|
|
181
180
|
|
|
182
181
|
declare const KEY = "level";
|
|
183
182
|
|
|
@@ -313,7 +312,7 @@ declare const Tooltip: (({ children, ...props }: TooltipRootProps) => react_jsx_
|
|
|
313
312
|
|
|
314
313
|
declare const iconButtonVariants: (props?: ({
|
|
315
314
|
level?: "primary" | "secondary" | "tertiary" | "quaternary" | "negative" | "static" | "inverse-static" | "inverse" | undefined;
|
|
316
|
-
size?: "
|
|
315
|
+
size?: "l" | "m" | "s" | "xs" | undefined;
|
|
317
316
|
fill?: boolean | undefined;
|
|
318
317
|
} & ({
|
|
319
318
|
class?: cva.ClassValue;
|
|
@@ -472,7 +471,7 @@ declare const useSnackbar: () => {
|
|
|
472
471
|
declare const defaultLabelVariants: (props?: ({
|
|
473
472
|
level?: "primary" | "secondary" | undefined;
|
|
474
473
|
position?: "right" | "top" | undefined;
|
|
475
|
-
size?: "
|
|
474
|
+
size?: "l" | "m" | "s" | undefined;
|
|
476
475
|
offset?: "medium" | "high" | "low" | undefined;
|
|
477
476
|
disabled?: boolean | undefined;
|
|
478
477
|
error?: boolean | undefined;
|
|
@@ -495,7 +494,7 @@ declare const Label: react.ForwardRefExoticComponent<LabelProps & react.RefAttri
|
|
|
495
494
|
|
|
496
495
|
declare const textButtonVariants: (props?: ({
|
|
497
496
|
level?: "primary" | "secondary" | "tertiary" | "inverse-static" | "inverse" | undefined;
|
|
498
|
-
size?: "
|
|
497
|
+
size?: "m" | "s" | undefined;
|
|
499
498
|
thick?: boolean | undefined;
|
|
500
499
|
underline?: boolean | undefined;
|
|
501
500
|
} & ({
|
|
@@ -575,26 +574,6 @@ interface RestrictedButtonProps {
|
|
|
575
574
|
onClick?: MouseEventHandler<HTMLButtonElement>;
|
|
576
575
|
}
|
|
577
576
|
|
|
578
|
-
declare const illustNames: readonly ["hero-gift", "hero-search", "mini-approve", "mini-documents-2", "mini-documents-3", "mini-documents-4", "mini-documents-5", "mini-documents", "mini-egg", "mini-empty-message", "mini-empty", "mini-gift", "mini-graduation_hat", "mini-not-search", "mini-not-ticket-2", "mini-private", "mini-search", "mini-ticket", "mini-ticket-3", "mini-window", "spot-catch_star", "spot-clap", "spot-empty", "spot-gift", "spot-no_search", "spot-search-2", "spot-search-3", "spot-search-4", "spot-search-5", "spot-search", "spot-sign_up", "spot-team", "spot-write", "mini-sign", "mini-pots", "mini-erase", "mini-rocket"];
|
|
579
|
-
declare const darkIllustNames: readonly ["hero-gift", "hero-search", "mini-approve", "mini-documents-2", "mini-documents-3", "mini-documents-4", "mini-documents-5", "mini-documents", "mini-egg", "mini-empty-message", "mini-empty", "mini-gift", "mini-graduation_hat", "mini-not-search", "mini-not-ticket-2", "mini-private", "mini-search", "mini-ticket", "mini-ticket-3", "mini-window", "spot-catch_star", "spot-clap", "spot-empty", "spot-gift", "spot-no_search", "spot-search-2", "spot-search-3", "spot-search-4", "spot-search-5", "spot-search", "spot-sign_up", "spot-team", "spot-write", "mini-sign", "mini-pots", "mini-erase", "mini-rocket"];
|
|
580
|
-
|
|
581
|
-
type LightIllustType = (typeof illustNames)[number];
|
|
582
|
-
type DarkIllustType = (typeof darkIllustNames)[number];
|
|
583
|
-
type IllustType = DarkIllustType | LightIllustType;
|
|
584
|
-
|
|
585
|
-
interface Source<T extends false | true = true> {
|
|
586
|
-
name: IllustType;
|
|
587
|
-
inverse?: T;
|
|
588
|
-
}
|
|
589
|
-
interface IllustProps extends Omit<ImageProps, 'alt' | 'width' | 'height' | 'fill' | 'src'> {
|
|
590
|
-
width: number;
|
|
591
|
-
src: {
|
|
592
|
-
light: Source<false>;
|
|
593
|
-
dark?: Source;
|
|
594
|
-
};
|
|
595
|
-
margin?: Property.Margin<string>;
|
|
596
|
-
}
|
|
597
|
-
|
|
598
577
|
type CoachMarkProps = PrimitiveCoachMarkRootProps & {
|
|
599
578
|
children?: ReactNode;
|
|
600
579
|
};
|