@liner-fe/prism 2.1.3 → 2.1.5
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/index.d.ts +1 -1
- package/lib/assets/shield-usage.d.ts +8 -0
- package/lib/components/Illust/index.d.ts +13 -0
- package/lib/constants/component.d.ts +1 -0
- package/lib/constants/figma/index.d.ts +1 -0
- package/lib/constants/illust/name.d.ts +1 -0
- package/lib/constants/illust/size.d.ts +5 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.mjs +43 -4
- package/lib/index.mjs.map +4 -4
- package/lib/static/illust/dark/rectangle_searching.webp +0 -0
- package/lib/static/illust/dark/rectangle_space_work.webp +0 -0
- package/lib/static/illust/dark/rectangle_standing_with_a_star.webp +0 -0
- package/lib/static/illust/dark/square_bomb_timeout.webp +0 -0
- package/lib/static/illust/dark/square_brain_deep_q_a.webp +0 -0
- package/lib/static/illust/dark/square_bye_end_custom_AI.webp +0 -0
- package/lib/static/illust/dark/square_clap.webp +0 -0
- package/lib/static/illust/dark/square_decoration_bulb.webp +0 -0
- package/lib/static/illust/dark/square_decoration_hourglass.webp +0 -0
- package/lib/static/illust/dark/square_decoration_star_01.webp +0 -0
- package/lib/static/illust/dark/square_decoration_star_02.webp +0 -0
- package/lib/static/illust/dark/square_decoration_star_03.webp +0 -0
- package/lib/static/illust/dark/square_decoration_star_04.webp +0 -0
- package/lib/static/illust/dark/square_decoration_star_05.webp +0 -0
- package/lib/static/illust/dark/square_decoration_star_06.webp +0 -0
- package/lib/static/illust/dark/square_decoration_star_07.webp +0 -0
- package/lib/static/illust/dark/square_decoration_star_08.webp +0 -0
- package/lib/static/illust/dark/square_decoration_star_09.webp +0 -0
- package/lib/static/illust/dark/square_decoration_star_10.webp +0 -0
- package/lib/static/illust/dark/square_decoration_star_11.webp +0 -0
- package/lib/static/illust/dark/square_documents_reliable_citation.webp +0 -0
- package/lib/static/illust/dark/square_documents_reliable_source.webp +0 -0
- package/lib/static/illust/dark/square_empty_box.webp +0 -0
- package/lib/static/illust/dark/square_empty_box_2.webp +0 -0
- package/lib/static/illust/dark/square_find_man.webp +0 -0
- package/lib/static/illust/dark/square_folder_01.webp +0 -0
- package/lib/static/illust/dark/square_folder_02.webp +0 -0
- package/lib/static/illust/dark/square_free_ticket_welcome.webp +0 -0
- package/lib/static/illust/dark/square_gift_welcome.webp +0 -0
- package/lib/static/illust/dark/square_give_gift.webp +0 -0
- package/lib/static/illust/dark/square_holding_a_book_onboarding.webp +0 -0
- package/lib/static/illust/dark/square_introduce.webp +0 -0
- package/lib/static/illust/dark/square_introduce_pro.webp +0 -0
- package/lib/static/illust/dark/square_lock_locked_thread.webp +0 -0
- package/lib/static/illust/dark/square_magnifying_glass.webp +0 -0
- package/lib/static/illust/dark/square_magnifying_glass_not_found.webp +0 -0
- package/lib/static/illust/dark/square_make_profile_onboarding.webp +0 -0
- package/lib/static/illust/dark/square_paper.webp +0 -0
- package/lib/static/illust/dark/square_pencil_paper_empty_history.webp +0 -0
- package/lib/static/illust/dark/square_pricing_page_airplane.webp +0 -0
- package/lib/static/illust/dark/square_pricing_page_car.webp +0 -0
- package/lib/static/illust/dark/square_pricing_page_flag.webp +0 -0
- package/lib/static/illust/dark/square_pricing_page_rocket.webp +0 -0
- package/lib/static/illust/dark/square_raining_error.webp +0 -0
- package/lib/static/illust/dark/square_searching_01.webp +0 -0
- package/lib/static/illust/dark/square_searching_02.webp +0 -0
- package/lib/static/illust/dark/square_searching_03.webp +0 -0
- package/lib/static/illust/dark/square_smoke_timeout.webp +0 -0
- package/lib/static/illust/dark/square_time_out.webp +0 -0
- package/lib/static/illust/dark/square_time_out_time_out_01.webp +0 -0
- package/lib/static/illust/dark/square_time_out_time_out_02.webp +0 -0
- package/lib/static/illust/dark/square_time_out_time_out_03.webp +0 -0
- package/lib/static/illust/dark/square_time_out_time_out_04.webp +0 -0
- package/lib/static/illust/dark/square_working_01.webp +0 -0
- package/lib/static/illust/dark/square_worried_01.webp +0 -0
- package/lib/static/illust/dark/square_worried_02.webp +0 -0
- package/lib/static/illust/dark/square_worried_03.webp +0 -0
- package/lib/static/illust/dark/square_worried_04.webp +0 -0
- package/lib/static/illust/dark/square_worried_05.webp +0 -0
- package/lib/static/illust/dark/square_writing_onboarding.webp +0 -0
- package/lib/static/illust/light/rectangle_cheerup_01.webp +0 -0
- package/lib/static/illust/light/rectangle_cheerup_02.webp +0 -0
- package/lib/static/illust/light/rectangle_searching.webp +0 -0
- package/lib/static/illust/light/rectangle_space_work.webp +0 -0
- package/lib/static/illust/light/rectangle_standing_with_a_star.webp +0 -0
- package/lib/static/illust/light/square_ai_writing_essay_mode.webp +0 -0
- package/lib/static/illust/light/square_bomb_timeout.webp +0 -0
- package/lib/static/illust/light/square_book_pencil_general_mode.webp +0 -0
- package/lib/static/illust/light/square_brain_deep_q_a.webp +0 -0
- package/lib/static/illust/light/square_bye_end_custom_ai.webp +0 -0
- package/lib/static/illust/light/square_careers_page_coffee.webp +0 -0
- package/lib/static/illust/light/square_careers_page_english.webp +0 -0
- package/lib/static/illust/light/square_careers_page_money.webp +0 -0
- package/lib/static/illust/light/square_careers_page_palm.webp +0 -0
- package/lib/static/illust/light/square_careers_page_shake_hands.webp +0 -0
- package/lib/static/illust/light/square_careers_page_tennis.webp +0 -0
- package/lib/static/illust/light/square_clap.webp +0 -0
- package/lib/static/illust/light/square_decoration_bulb.webp +0 -0
- package/lib/static/illust/light/square_decoration_hourglass.webp +0 -0
- package/lib/static/illust/light/square_decoration_star_01.webp +0 -0
- package/lib/static/illust/light/square_decoration_star_02.webp +0 -0
- package/lib/static/illust/light/square_decoration_star_03.webp +0 -0
- package/lib/static/illust/light/square_decoration_star_04.webp +0 -0
- package/lib/static/illust/light/square_decoration_star_05.webp +0 -0
- package/lib/static/illust/light/square_decoration_star_06.webp +0 -0
- package/lib/static/illust/light/square_decoration_star_07.webp +0 -0
- package/lib/static/illust/light/square_decoration_star_08.webp +0 -0
- package/lib/static/illust/light/square_decoration_star_09.webp +0 -0
- package/lib/static/illust/light/square_decoration_star_10.webp +0 -0
- package/lib/static/illust/light/square_decoration_star_11.webp +0 -0
- package/lib/static/illust/light/square_documents_reliable_citation.webp +0 -0
- package/lib/static/illust/light/square_documents_reliable_source.webp +0 -0
- package/lib/static/illust/light/square_empty_box_2.webp +0 -0
- package/lib/static/illust/light/square_empty_box_empty_page.webp +0 -0
- package/lib/static/illust/light/square_feather_pen.webp +0 -0
- package/lib/static/illust/light/square_find_man.webp +0 -0
- package/lib/static/illust/light/square_find_paper_use_liner.webp +0 -0
- package/lib/static/illust/light/square_folder_01.webp +0 -0
- package/lib/static/illust/light/square_folder_02.webp +0 -0
- package/lib/static/illust/light/square_free_ticket_welcome.webp +0 -0
- package/lib/static/illust/light/square_gift_welcome.webp +0 -0
- package/lib/static/illust/light/square_give_gift.webp +0 -0
- package/lib/static/illust/light/square_graduation_cap_pencil_scholar_mode.webp +0 -0
- package/lib/static/illust/light/square_holding_a_book_onboarding.webp +0 -0
- package/lib/static/illust/light/square_introduce.webp +0 -0
- package/lib/static/illust/light/square_introduce_pro.webp +0 -0
- package/lib/static/illust/light/square_lock_locked_thread.webp +0 -0
- package/lib/static/illust/light/square_magnifying_glass.webp +0 -0
- package/lib/static/illust/light/square_magnifying_glass_not_found.webp +0 -0
- package/lib/static/illust/light/square_make_profile_onboarding.webp +0 -0
- package/lib/static/illust/light/square_megaphone.webp +0 -0
- package/lib/static/illust/light/square_paper.webp +0 -0
- package/lib/static/illust/light/square_pencil_paper_empty_history.webp +0 -0
- package/lib/static/illust/light/square_pricing_page_airplane.webp +0 -0
- package/lib/static/illust/light/square_pricing_page_car.webp +0 -0
- package/lib/static/illust/light/square_pricing_page_flag.webp +0 -0
- package/lib/static/illust/light/square_pricing_page_rocket.webp +0 -0
- package/lib/static/illust/light/square_raining_error.webp +0 -0
- package/lib/static/illust/light/square_searching_01.webp +0 -0
- package/lib/static/illust/light/square_searching_02.webp +0 -0
- package/lib/static/illust/light/square_searching_03.webp +0 -0
- package/lib/static/illust/light/square_smoke_timeout.webp +0 -0
- package/lib/static/illust/light/square_time_out.webp +0 -0
- package/lib/static/illust/light/square_time_out_time_out_01.webp +0 -0
- package/lib/static/illust/light/square_time_out_time_out_02.webp +0 -0
- package/lib/static/illust/light/square_time_out_time_out_03.webp +0 -0
- package/lib/static/illust/light/square_time_out_time_out_04.webp +0 -0
- package/lib/static/illust/light/square_understand_concepts_use_liner.webp +0 -0
- package/lib/static/illust/light/square_university_01.webp +0 -0
- package/lib/static/illust/light/square_university_02.webp +0 -0
- package/lib/static/illust/light/square_working_01.webp +0 -0
- package/lib/static/illust/light/square_worried_01.webp +0 -0
- package/lib/static/illust/light/square_worried_02.webp +0 -0
- package/lib/static/illust/light/square_worried_03.webp +0 -0
- package/lib/static/illust/light/square_worried_04.webp +0 -0
- package/lib/static/illust/light/square_worried_05.webp +0 -0
- package/lib/static/illust/light/square_write_essay_use_liner.webp +0 -0
- package/lib/static/illust/light/square_writing.webp +0 -0
- package/lib/static/illust/light/square_writing_essay_mode.webp +0 -0
- package/lib/type/index.d.ts +1 -1
- package/lib/types/illust.d.ts +1 -0
- package/package.json +7 -4
- package/lib/assets/lp-pri-icon-m-shield-usage.d.ts +0 -8
package/lib/assets/index.d.ts
CHANGED
|
@@ -145,7 +145,7 @@ export { ICLpPriIconSArrowForward } from './lp-pri-icon-s-arrow-forward';
|
|
|
145
145
|
export { ICLpPriIconMLink } from './lp-pri-icon-m-link';
|
|
146
146
|
export { ICLpPriIconMSheetExport } from './lp-pri-icon-m-sheet-export';
|
|
147
147
|
export { ICLpPriIconMShieldPerson } from './lp-pri-icon-m-shield-person';
|
|
148
|
-
export {
|
|
148
|
+
export { ICShieldUsage } from './shield-usage';
|
|
149
149
|
export { ICHighlighter } from './highlighter';
|
|
150
150
|
export { ICLpPriIconMFormalBag } from './lp-pri-icon-m-formal-bag';
|
|
151
151
|
export { ICLpPriIconMCasualShoe } from './lp-pri-icon-m-casual-shoe';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IllustName } from '../../types/illust';
|
|
2
|
+
import { Property } from 'csstype';
|
|
3
|
+
import { ImageProps } from 'next/image';
|
|
4
|
+
interface IProps extends Omit<ImageProps, 'alt' | 'width' | 'height' | 'fill'> {
|
|
5
|
+
src: IllustName;
|
|
6
|
+
isOnlyLight?: boolean;
|
|
7
|
+
width: number;
|
|
8
|
+
height: number;
|
|
9
|
+
justifyContent?: Property.JustifyContent;
|
|
10
|
+
alignItems?: Property.AlignItems;
|
|
11
|
+
}
|
|
12
|
+
export declare const Illust: (props: IProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const illustNames: readonly ["rectangle_cheerup_01", "rectangle_cheerup_02", "rectangle_searching", "rectangle_space_work", "rectangle_standing_with_a_star", "square_ai_writing_essay_mode", "square_bomb_timeout", "square_book_pencil_general_mode", "square_brain_deep_q_a", "square_bye_end_custom_ai", "square_careers_page_coffee", "square_careers_page_english", "square_careers_page_money", "square_careers_page_palm", "square_careers_page_shake_hands", "square_careers_page_tennis", "square_clap", "square_decoration_bulb", "square_decoration_hourglass", "square_decoration_star_01", "square_decoration_star_02", "square_decoration_star_03", "square_decoration_star_04", "square_decoration_star_05", "square_decoration_star_06", "square_decoration_star_07", "square_decoration_star_08", "square_decoration_star_09", "square_decoration_star_10", "square_decoration_star_11", "square_documents_reliable_citation", "square_documents_reliable_source", "square_empty_box_2", "square_empty_box_empty_page", "square_feather_pen", "square_find_man", "square_find_paper_use_liner", "square_folder_01", "square_folder_02", "square_free_ticket_welcome", "square_gift_welcome", "square_give_gift", "square_graduation_cap_pencil_scholar_mode", "square_holding_a_book_onboarding", "square_introduce", "square_introduce_pro", "square_lock_locked_thread", "square_magnifying_glass", "square_magnifying_glass_not_found", "square_make_profile_onboarding", "square_megaphone", "square_paper", "square_pencil_paper_empty_history", "square_pricing_page_airplane", "square_pricing_page_car", "square_pricing_page_flag", "square_pricing_page_rocket", "square_raining_error", "square_searching_01", "square_searching_02", "square_searching_03", "square_smoke_timeout", "square_time_out", "square_time_out_time_out_01", "square_time_out_time_out_02", "square_time_out_time_out_03", "square_time_out_time_out_04", "square_understand_concepts_use_liner", "square_university_01", "square_university_02", "square_working_01", "square_worried_01", "square_worried_02", "square_worried_03", "square_worried_04", "square_worried_05", "square_write_essay_use_liner", "square_writing", "square_writing_essay_mode"];
|
package/lib/index.d.ts
CHANGED
package/lib/index.mjs
CHANGED
|
@@ -6828,9 +6828,9 @@ var ICLpPriIconMShieldPerson = /* @__PURE__ */ __name((props) => {
|
|
|
6828
6828
|
] });
|
|
6829
6829
|
}, "ICLpPriIconMShieldPerson");
|
|
6830
6830
|
|
|
6831
|
-
// src/assets/
|
|
6831
|
+
// src/assets/shield-usage.tsx
|
|
6832
6832
|
import { jsx as jsx148, jsxs as jsxs106 } from "react/jsx-runtime";
|
|
6833
|
-
var
|
|
6833
|
+
var ICShieldUsage = /* @__PURE__ */ __name((props) => {
|
|
6834
6834
|
const { thick = false, fill = false, size = 32, color = "#1E1E1F" } = props;
|
|
6835
6835
|
if (thick) {
|
|
6836
6836
|
return /* @__PURE__ */ jsxs106("svg", { ...props, width: size, height: size, viewBox: "0 0 48 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
@@ -6876,7 +6876,7 @@ var ICLpPriIconMShieldUsage = /* @__PURE__ */ __name((props) => {
|
|
|
6876
6876
|
}
|
|
6877
6877
|
)
|
|
6878
6878
|
] });
|
|
6879
|
-
}, "
|
|
6879
|
+
}, "ICShieldUsage");
|
|
6880
6880
|
|
|
6881
6881
|
// src/assets/highlighter.tsx
|
|
6882
6882
|
import { jsx as jsx149 } from "react/jsx-runtime";
|
|
@@ -7410,7 +7410,7 @@ var iconMap = {
|
|
|
7410
7410
|
"lp-pri-icon-m-link": ICLpPriIconMLink,
|
|
7411
7411
|
"lp-pri-icon-m-sheet-export": ICLpPriIconMSheetExport,
|
|
7412
7412
|
"lp-pri-icon-m-shield-person": ICLpPriIconMShieldPerson,
|
|
7413
|
-
"
|
|
7413
|
+
"shield-usage": ICShieldUsage,
|
|
7414
7414
|
"lp-pri-icon-s-arrow-forward": ICLpPriIconSArrowForward,
|
|
7415
7415
|
essay: ICEssay,
|
|
7416
7416
|
"lp-pri-icon-m-formal-bag": ICLpPriIconMFormalBag,
|
|
@@ -9384,6 +9384,44 @@ var Item3 = /* @__PURE__ */ __name(({ value, text, disabled, icon, onClick }) =>
|
|
|
9384
9384
|
);
|
|
9385
9385
|
}, "Item");
|
|
9386
9386
|
var List = Object.assign(ListRoot, { Item: Item3 });
|
|
9387
|
+
|
|
9388
|
+
// src/constants/illust/size.ts
|
|
9389
|
+
var illustSize = {
|
|
9390
|
+
rectangle_standing_with_a_star: { width: 2422, height: 1282 },
|
|
9391
|
+
rectangle_space_work: { width: 2422, height: 1282 },
|
|
9392
|
+
rectangle_searching: { width: 2422, height: 1282 },
|
|
9393
|
+
rectangle_cheerup_01: { width: 2422, height: 1282 },
|
|
9394
|
+
rectangle_cheerup_02: { width: 2422, height: 1282 }
|
|
9395
|
+
};
|
|
9396
|
+
|
|
9397
|
+
// src/components/Illust/index.tsx
|
|
9398
|
+
import { useDarkTheme } from "@liner-fe/design-token";
|
|
9399
|
+
import Image from "next/image";
|
|
9400
|
+
import { jsx as jsx178 } from "react/jsx-runtime";
|
|
9401
|
+
var ILLUST = "/illust";
|
|
9402
|
+
var Illust = /* @__PURE__ */ __name((props) => {
|
|
9403
|
+
const { isDarkMode } = useDarkTheme();
|
|
9404
|
+
const { src, isOnlyLight, width, height, justifyContent = "center", alignItems = "center" } = props;
|
|
9405
|
+
const prefixSrc = (() => {
|
|
9406
|
+
if (isDarkMode && !isOnlyLight) {
|
|
9407
|
+
return `${ILLUST}/dark/`;
|
|
9408
|
+
}
|
|
9409
|
+
return `${ILLUST}/light/`;
|
|
9410
|
+
})();
|
|
9411
|
+
const aspectRatio = illustSize[src] ? illustSize[src].width / illustSize[src].height : void 0;
|
|
9412
|
+
const css = {
|
|
9413
|
+
width,
|
|
9414
|
+
height,
|
|
9415
|
+
display: "flex",
|
|
9416
|
+
justifyContent,
|
|
9417
|
+
alignItems
|
|
9418
|
+
};
|
|
9419
|
+
if (aspectRatio) {
|
|
9420
|
+
return /* @__PURE__ */ jsx178("div", { style: css, children: /* @__PURE__ */ jsx178(Image, { alt: src, ...props, src: `${prefixSrc}${src}.webp`, width, height: width / aspectRatio }) });
|
|
9421
|
+
}
|
|
9422
|
+
const size = width > height ? height : width;
|
|
9423
|
+
return /* @__PURE__ */ jsx178("div", { style: css, children: /* @__PURE__ */ jsx178(Image, { alt: src, ...props, src: `${prefixSrc}${src}.webp`, width: size, height: size }) });
|
|
9424
|
+
}, "Illust");
|
|
9387
9425
|
export {
|
|
9388
9426
|
Button,
|
|
9389
9427
|
Caption,
|
|
@@ -9393,6 +9431,7 @@ export {
|
|
|
9393
9431
|
Heading,
|
|
9394
9432
|
Icon,
|
|
9395
9433
|
IconButton,
|
|
9434
|
+
Illust,
|
|
9396
9435
|
Label,
|
|
9397
9436
|
List,
|
|
9398
9437
|
Media,
|