@liner-fe/prism 2.8.15 → 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 +1 -22
- 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: {
|
|
@@ -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
|
};
|