@liner-fe/prism 2.1.32 → 2.1.34

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 (277) hide show
  1. package/lib/components/IconButton/index.d.ts +1 -1
  2. package/lib/components/Illust/index.d.ts +12 -12
  3. package/lib/components/Label/index.d.ts +1 -1
  4. package/lib/components/Snackbar/SnackbarButton/index.d.ts +10 -0
  5. package/lib/components/Snackbar/SnackbarClose/index.d.ts +7 -0
  6. package/lib/components/Snackbar/SnackbarDescription/index.d.ts +5 -0
  7. package/lib/components/Snackbar/SnackbarIcon/index.d.ts +6 -0
  8. package/lib/components/Snackbar/SnackbarTitle/index.d.ts +5 -0
  9. package/lib/components/Snackbar/index.d.ts +3 -0
  10. package/lib/components/TextButton/index.d.ts +1 -1
  11. package/lib/components/Toast/export.d.ts +1 -1
  12. package/lib/components/Typography/Set/Heading.d.ts +3 -3
  13. package/lib/components/Typography/types.d.ts +8 -1
  14. package/lib/constants/illust/name.d.ts +2 -1
  15. package/lib/constants/illust/path.d.ts +3 -0
  16. package/lib/constants/illust/size.d.ts +2 -2
  17. package/lib/hooks/useIllust.d.ts +9 -0
  18. package/lib/hooks/useSnackbar.d.ts +5 -0
  19. package/lib/hooks/useToast.d.ts +9 -0
  20. package/lib/illust.d.ts +1 -0
  21. package/lib/illust.js +64 -26
  22. package/lib/illust.js.map +3 -3
  23. package/lib/index.cjs +64 -58
  24. package/lib/index.cjs.map +4 -4
  25. package/lib/index.css +15 -18
  26. package/lib/index.css.map +2 -2
  27. package/lib/index.mjs +64 -58
  28. package/lib/index.mjs.map +4 -4
  29. package/lib/static/illust/dark/object-bomb-1_1.webp +0 -0
  30. package/lib/static/illust/dark/object-brain-1_1.webp +0 -0
  31. package/lib/static/illust/dark/object-clap-1_1.webp +0 -0
  32. package/lib/static/illust/dark/object-documents_02-1_1.webp +0 -0
  33. package/lib/static/illust/dark/object-empty_box-1_1.webp +0 -0
  34. package/lib/static/illust/dark/object-empty_box-4_3.webp +0 -0
  35. package/lib/static/illust/dark/object-folder_01-1_1.webp +0 -0
  36. package/lib/static/illust/dark/object-folder_02-1_1.webp +0 -0
  37. package/lib/static/illust/dark/object-free_ticket-1_1.webp +0 -0
  38. package/lib/static/illust/dark/object-gift-1_1.webp +0 -0
  39. package/lib/static/illust/dark/object-give_gift-1_1.webp +0 -0
  40. package/lib/static/illust/dark/object-graduation_cap_pencil-4_3.webp +0 -0
  41. package/lib/static/illust/dark/object-lock-4_3.webp +0 -0
  42. package/lib/static/illust/dark/object-magnifying_glass-1_1.webp +0 -0
  43. package/lib/static/illust/dark/object-magnifying_glass-4_3.webp +0 -0
  44. package/lib/static/illust/dark/object-megaphone-1_1.webp +0 -0
  45. package/lib/static/illust/dark/object-paper-1_1.webp +0 -0
  46. package/lib/static/illust/dark/object-pencil_paper-16_9.webp +0 -0
  47. package/lib/static/illust/dark/object-puzzle-4_3.webp +0 -0
  48. package/lib/static/illust/dark/object-smoke-16_9.webp +0 -0
  49. package/lib/static/illust/dark/object_documents_01-1_1.webp +0 -0
  50. package/lib/static/illust/dark/object_find_man-1_1.webp +0 -0
  51. package/lib/static/illust/dark/person-bye-4_3.webp +0 -0
  52. package/lib/static/illust/dark/person-holding_a_book-1_1.webp +0 -0
  53. package/lib/static/illust/dark/person-introduce-1_1.webp +0 -0
  54. package/lib/static/illust/dark/person-introduce-pro-1_1.webp +0 -0
  55. package/lib/static/illust/dark/person-make_profile-1_1.webp +0 -0
  56. package/lib/static/illust/dark/person-raining-1_1.webp +0 -0
  57. package/lib/static/illust/dark/person-searching-16_9.webp +0 -0
  58. package/lib/static/illust/dark/person-searching_01-1_1.webp +0 -0
  59. package/lib/static/illust/dark/person-searching_01-4_3.webp +0 -0
  60. package/lib/static/illust/dark/person-searching_02-1_1.webp +0 -0
  61. package/lib/static/illust/dark/person-space_in_work-4_3.webp +0 -0
  62. package/lib/static/illust/dark/person-standing_with_a_star-16_9.webp +0 -0
  63. package/lib/static/illust/dark/person-time_out_01-1_1.webp +0 -0
  64. package/lib/static/illust/dark/person-time_out_02-1_1.webp +0 -0
  65. package/lib/static/illust/dark/person-time_out_03-1_1.webp +0 -0
  66. package/lib/static/illust/dark/person-time_out_04-1_1.webp +0 -0
  67. package/lib/static/illust/dark/person-time_out_05-1_1.webp +0 -0
  68. package/lib/static/illust/dark/person-working_01-4_3.webp +0 -0
  69. package/lib/static/illust/dark/person-worried-1_1.webp +0 -0
  70. package/lib/static/illust/dark/person-worried_01-4_3.webp +0 -0
  71. package/lib/static/illust/dark/person-worried_02-4_3.webp +0 -0
  72. package/lib/static/illust/dark/person-worried_03-4_3.webp +0 -0
  73. package/lib/static/illust/dark/person-worried_04-4_3.webp +0 -0
  74. package/lib/static/illust/dark/person-writing_01-1_1.webp +0 -0
  75. package/lib/static/illust/light/object-bomb-1_1.webp +0 -0
  76. package/lib/static/illust/light/object-book_pencil-4_3.webp +0 -0
  77. package/lib/static/illust/light/object-brain-1_1.webp +0 -0
  78. package/lib/static/illust/light/object-clap-1_1.webp +0 -0
  79. package/lib/static/illust/light/object-documents_02-1_1.webp +0 -0
  80. package/lib/static/illust/light/object-empty_box-1_1.webp +0 -0
  81. package/lib/static/illust/light/object-empty_box-4_3.webp +0 -0
  82. package/lib/static/illust/light/object-feather_pen-1_1.webp +0 -0
  83. package/lib/static/illust/light/object-folder_01-1_1.webp +0 -0
  84. package/lib/static/illust/light/object-folder_02-1_1.webp +0 -0
  85. package/lib/static/illust/light/object-free_ticket-1_1.webp +0 -0
  86. package/lib/static/illust/light/object-gift-1_1.webp +0 -0
  87. package/lib/static/illust/light/object-give_gift-1_1.webp +0 -0
  88. package/lib/static/illust/light/object-graduation_cap_pencil-4_3.webp +0 -0
  89. package/lib/static/illust/light/object-lock-4_3.webp +0 -0
  90. package/lib/static/illust/light/object-magnifying_glass-1_1.webp +0 -0
  91. package/lib/static/illust/light/object-magnifying_glass-4_3.webp +0 -0
  92. package/lib/static/illust/light/object-megaphone-1_1.webp +0 -0
  93. package/lib/static/illust/light/object-paper-1_1.webp +0 -0
  94. package/lib/static/illust/light/object-pencil_paper-16_9.webp +0 -0
  95. package/lib/static/illust/light/object-puzzle-4_3.webp +0 -0
  96. package/lib/static/illust/light/object-smoke-16_9.webp +0 -0
  97. package/lib/static/illust/light/object-university_01-1_1.webp +0 -0
  98. package/lib/static/illust/light/object-university_02-1_1.webp +0 -0
  99. package/lib/static/illust/light/object_documents_01-1_1.webp +0 -0
  100. package/lib/static/illust/light/object_find_man-1_1.webp +0 -0
  101. package/lib/static/illust/light/person-ai_writing-1_1.webp +0 -0
  102. package/lib/static/illust/light/person-bye-4_3.webp +0 -0
  103. package/lib/static/illust/light/person-cheerup-16_9.webp +0 -0
  104. package/lib/static/illust/light/person-cheerup-4_3.webp +0 -0
  105. package/lib/static/illust/light/person-holding_a_book-1_1.webp +0 -0
  106. package/lib/static/illust/light/person-introduce-1_1.webp +0 -0
  107. package/lib/static/illust/light/person-introduce-pro-1_1.webp +0 -0
  108. package/lib/static/illust/light/person-make_profile-1_1.webp +0 -0
  109. package/lib/static/illust/light/person-raining-1_1.webp +0 -0
  110. package/lib/static/illust/light/person-searching-16_9.webp +0 -0
  111. package/lib/static/illust/light/person-searching_01-1_1.webp +0 -0
  112. package/lib/static/illust/light/person-searching_01-4_3.webp +0 -0
  113. package/lib/static/illust/light/person-searching_02-1_1.webp +0 -0
  114. package/lib/static/illust/light/person-space_in_work-4_3.webp +0 -0
  115. package/lib/static/illust/light/person-standing_with_a_star-16_9.webp +0 -0
  116. package/lib/static/illust/light/person-time_out_01-1_1.webp +0 -0
  117. package/lib/static/illust/light/person-time_out_02-1_1.webp +0 -0
  118. package/lib/static/illust/light/person-time_out_03-1_1.webp +0 -0
  119. package/lib/static/illust/light/person-time_out_04-1_1.webp +0 -0
  120. package/lib/static/illust/light/person-time_out_05-1_1.webp +0 -0
  121. package/lib/static/illust/light/person-understand-1_1.webp +0 -0
  122. package/lib/static/illust/light/person-working_01-4_3.webp +0 -0
  123. package/lib/static/illust/light/person-working_02-4_3.webp +0 -0
  124. package/lib/static/illust/light/person-worried-1_1.webp +0 -0
  125. package/lib/static/illust/light/person-worried_01-4_3.webp +0 -0
  126. package/lib/static/illust/light/person-worried_02-4_3.webp +0 -0
  127. package/lib/static/illust/light/person-worried_03-4_3.webp +0 -0
  128. package/lib/static/illust/light/person-worried_04-4_3.webp +0 -0
  129. package/lib/static/illust/light/person-writing_01-1_1.webp +0 -0
  130. package/lib/static/illust/light/person-writing_02-1_1.webp +0 -0
  131. package/lib/types/generateRandomId.d.ts +1 -0
  132. package/lib/types/illust.d.ts +4 -1
  133. package/lib/types/snackbar.d.ts +38 -0
  134. package/lib/types/typescript.d.ts +4 -0
  135. package/lib/utils/illust.d.ts +5 -0
  136. package/lib/utils/object.d.ts +1 -1
  137. package/package.json +15 -4
  138. package/lib/components/Toast/hooks/useToast.d.ts +0 -11
  139. package/lib/static/illust/dark/rectangle_searching.webp +0 -0
  140. package/lib/static/illust/dark/rectangle_space_work.webp +0 -0
  141. package/lib/static/illust/dark/rectangle_standing_with_a_star.webp +0 -0
  142. package/lib/static/illust/dark/square_bomb_timeout.webp +0 -0
  143. package/lib/static/illust/dark/square_brain_deep_q_a.webp +0 -0
  144. package/lib/static/illust/dark/square_bye_end_custom_AI.webp +0 -0
  145. package/lib/static/illust/dark/square_clap.webp +0 -0
  146. package/lib/static/illust/dark/square_documents_reliable_citation.webp +0 -0
  147. package/lib/static/illust/dark/square_documents_reliable_source.webp +0 -0
  148. package/lib/static/illust/dark/square_empty_box.webp +0 -0
  149. package/lib/static/illust/dark/square_empty_box_2.webp +0 -0
  150. package/lib/static/illust/dark/square_find_man.webp +0 -0
  151. package/lib/static/illust/dark/square_folder_01.webp +0 -0
  152. package/lib/static/illust/dark/square_folder_02.webp +0 -0
  153. package/lib/static/illust/dark/square_free_ticket_welcome.webp +0 -0
  154. package/lib/static/illust/dark/square_gift_welcome.webp +0 -0
  155. package/lib/static/illust/dark/square_give_gift.webp +0 -0
  156. package/lib/static/illust/dark/square_holding_a_book_onboarding.webp +0 -0
  157. package/lib/static/illust/dark/square_introduce.webp +0 -0
  158. package/lib/static/illust/dark/square_introduce_pro.webp +0 -0
  159. package/lib/static/illust/dark/square_lock_locked_thread.webp +0 -0
  160. package/lib/static/illust/dark/square_magnifying_glass.webp +0 -0
  161. package/lib/static/illust/dark/square_magnifying_glass_not_found.webp +0 -0
  162. package/lib/static/illust/dark/square_make_profile_onboarding.webp +0 -0
  163. package/lib/static/illust/dark/square_paper.webp +0 -0
  164. package/lib/static/illust/dark/square_pencil_paper_empty_history.webp +0 -0
  165. package/lib/static/illust/dark/square_raining_error.webp +0 -0
  166. package/lib/static/illust/dark/square_searching_01.webp +0 -0
  167. package/lib/static/illust/dark/square_searching_02.webp +0 -0
  168. package/lib/static/illust/dark/square_searching_03.webp +0 -0
  169. package/lib/static/illust/dark/square_smoke_timeout.webp +0 -0
  170. package/lib/static/illust/dark/square_time_out.webp +0 -0
  171. package/lib/static/illust/dark/square_time_out_time_out_01.webp +0 -0
  172. package/lib/static/illust/dark/square_time_out_time_out_02.webp +0 -0
  173. package/lib/static/illust/dark/square_time_out_time_out_03.webp +0 -0
  174. package/lib/static/illust/dark/square_time_out_time_out_04.webp +0 -0
  175. package/lib/static/illust/dark/square_working_01.webp +0 -0
  176. package/lib/static/illust/dark/square_worried_01.webp +0 -0
  177. package/lib/static/illust/dark/square_worried_02.webp +0 -0
  178. package/lib/static/illust/dark/square_worried_03.webp +0 -0
  179. package/lib/static/illust/dark/square_worried_04.webp +0 -0
  180. package/lib/static/illust/dark/square_worried_05.webp +0 -0
  181. package/lib/static/illust/dark/square_writing_onboarding.webp +0 -0
  182. package/lib/static/illust/light/rectangle_cheerup_01.webp +0 -0
  183. package/lib/static/illust/light/rectangle_cheerup_02.webp +0 -0
  184. package/lib/static/illust/light/rectangle_searching.webp +0 -0
  185. package/lib/static/illust/light/rectangle_space_work.webp +0 -0
  186. package/lib/static/illust/light/rectangle_standing_with_a_star.webp +0 -0
  187. package/lib/static/illust/light/square_ai_writing_essay_mode.webp +0 -0
  188. package/lib/static/illust/light/square_bomb_timeout.webp +0 -0
  189. package/lib/static/illust/light/square_book_pencil_general_mode.webp +0 -0
  190. package/lib/static/illust/light/square_brain_deep_q_a.webp +0 -0
  191. package/lib/static/illust/light/square_bye_end_custom_ai.webp +0 -0
  192. package/lib/static/illust/light/square_clap.webp +0 -0
  193. package/lib/static/illust/light/square_documents_reliable_citation.webp +0 -0
  194. package/lib/static/illust/light/square_documents_reliable_source.webp +0 -0
  195. package/lib/static/illust/light/square_empty_box_2.webp +0 -0
  196. package/lib/static/illust/light/square_empty_box_empty_page.webp +0 -0
  197. package/lib/static/illust/light/square_feather_pen.webp +0 -0
  198. package/lib/static/illust/light/square_find_man.webp +0 -0
  199. package/lib/static/illust/light/square_find_paper_use_liner.webp +0 -0
  200. package/lib/static/illust/light/square_folder_01.webp +0 -0
  201. package/lib/static/illust/light/square_folder_02.webp +0 -0
  202. package/lib/static/illust/light/square_free_ticket_welcome.webp +0 -0
  203. package/lib/static/illust/light/square_gift_welcome.webp +0 -0
  204. package/lib/static/illust/light/square_give_gift.webp +0 -0
  205. package/lib/static/illust/light/square_graduation_cap_pencil_scholar_mode.webp +0 -0
  206. package/lib/static/illust/light/square_holding_a_book_onboarding.webp +0 -0
  207. package/lib/static/illust/light/square_introduce.webp +0 -0
  208. package/lib/static/illust/light/square_introduce_pro.webp +0 -0
  209. package/lib/static/illust/light/square_lock_locked_thread.webp +0 -0
  210. package/lib/static/illust/light/square_magnifying_glass.webp +0 -0
  211. package/lib/static/illust/light/square_magnifying_glass_not_found.webp +0 -0
  212. package/lib/static/illust/light/square_make_profile_onboarding.webp +0 -0
  213. package/lib/static/illust/light/square_megaphone.webp +0 -0
  214. package/lib/static/illust/light/square_paper.webp +0 -0
  215. package/lib/static/illust/light/square_pencil_paper_empty_history.webp +0 -0
  216. package/lib/static/illust/light/square_raining_error.webp +0 -0
  217. package/lib/static/illust/light/square_searching_01.webp +0 -0
  218. package/lib/static/illust/light/square_searching_02.webp +0 -0
  219. package/lib/static/illust/light/square_searching_03.webp +0 -0
  220. package/lib/static/illust/light/square_smoke_timeout.webp +0 -0
  221. package/lib/static/illust/light/square_time_out.webp +0 -0
  222. package/lib/static/illust/light/square_time_out_time_out_01.webp +0 -0
  223. package/lib/static/illust/light/square_time_out_time_out_02.webp +0 -0
  224. package/lib/static/illust/light/square_time_out_time_out_03.webp +0 -0
  225. package/lib/static/illust/light/square_time_out_time_out_04.webp +0 -0
  226. package/lib/static/illust/light/square_understand_concepts_use_liner.webp +0 -0
  227. package/lib/static/illust/light/square_university_01.webp +0 -0
  228. package/lib/static/illust/light/square_university_02.webp +0 -0
  229. package/lib/static/illust/light/square_working_01.webp +0 -0
  230. package/lib/static/illust/light/square_worried_01.webp +0 -0
  231. package/lib/static/illust/light/square_worried_02.webp +0 -0
  232. package/lib/static/illust/light/square_worried_03.webp +0 -0
  233. package/lib/static/illust/light/square_worried_04.webp +0 -0
  234. package/lib/static/illust/light/square_worried_05.webp +0 -0
  235. package/lib/static/illust/light/square_write_essay_use_liner.webp +0 -0
  236. package/lib/static/illust/light/square_writing.webp +0 -0
  237. package/lib/static/illust/light/square_writing_essay_mode.webp +0 -0
  238. /package/lib/static/illust/dark/{square_pricing_page_airplane.webp → decoration-airplane-1_1.webp} +0 -0
  239. /package/lib/static/illust/dark/{square_decoration_bulb.webp → decoration-bulb-1_1.webp} +0 -0
  240. /package/lib/static/illust/dark/{square_pricing_page_car.webp → decoration-car-1_1.webp} +0 -0
  241. /package/lib/static/illust/dark/{square_pricing_page_flag.webp → decoration-flag-1_1.webp} +0 -0
  242. /package/lib/static/illust/dark/{square_decoration_hourglass.webp → decoration-hourglass-1_1.webp} +0 -0
  243. /package/lib/static/illust/dark/{square_pricing_page_rocket.webp → decoration-rocket-1_1.webp} +0 -0
  244. /package/lib/static/illust/dark/{square_decoration_star_01.webp → decoration-star_01-1_1.webp} +0 -0
  245. /package/lib/static/illust/dark/{square_decoration_star_02.webp → decoration-star_02-1_1.webp} +0 -0
  246. /package/lib/static/illust/dark/{square_decoration_star_03.webp → decoration-star_03-1_1.webp} +0 -0
  247. /package/lib/static/illust/dark/{square_decoration_star_04.webp → decoration-star_04-1_1.webp} +0 -0
  248. /package/lib/static/illust/dark/{square_decoration_star_05.webp → decoration-star_05-1_1.webp} +0 -0
  249. /package/lib/static/illust/dark/{square_decoration_star_06.webp → decoration-star_06-1_1.webp} +0 -0
  250. /package/lib/static/illust/dark/{square_decoration_star_07.webp → decoration-star_07-1_1.webp} +0 -0
  251. /package/lib/static/illust/dark/{square_decoration_star_08.webp → decoration-star_08-1_1.webp} +0 -0
  252. /package/lib/static/illust/dark/{square_decoration_star_09.webp → decoration-star_09-1_1.webp} +0 -0
  253. /package/lib/static/illust/dark/{square_decoration_star_10.webp → decoration-star_10-1_1.webp} +0 -0
  254. /package/lib/static/illust/dark/{square_decoration_star_11.webp → decoration-star_11-1_1.webp} +0 -0
  255. /package/lib/static/illust/light/{square_pricing_page_airplane.webp → decoration-airplane-1_1.webp} +0 -0
  256. /package/lib/static/illust/light/{square_decoration_bulb.webp → decoration-bulb-1_1.webp} +0 -0
  257. /package/lib/static/illust/light/{square_pricing_page_car.webp → decoration-car-1_1.webp} +0 -0
  258. /package/lib/static/illust/light/{square_careers_page_coffee.webp → decoration-coffee-1_1.webp} +0 -0
  259. /package/lib/static/illust/light/{square_careers_page_english.webp → decoration-english-1_1.webp} +0 -0
  260. /package/lib/static/illust/light/{square_pricing_page_flag.webp → decoration-flag-1_1.webp} +0 -0
  261. /package/lib/static/illust/light/{square_decoration_hourglass.webp → decoration-hourglass-1_1.webp} +0 -0
  262. /package/lib/static/illust/light/{square_careers_page_money.webp → decoration-money-1_1.webp} +0 -0
  263. /package/lib/static/illust/light/{square_careers_page_palm.webp → decoration-palm-1_1.webp} +0 -0
  264. /package/lib/static/illust/light/{square_pricing_page_rocket.webp → decoration-rocket-1_1.webp} +0 -0
  265. /package/lib/static/illust/light/{square_careers_page_shake_hands.webp → decoration-shake_hands-1_1.webp} +0 -0
  266. /package/lib/static/illust/light/{square_decoration_star_01.webp → decoration-star_01-1_1.webp} +0 -0
  267. /package/lib/static/illust/light/{square_decoration_star_02.webp → decoration-star_02-1_1.webp} +0 -0
  268. /package/lib/static/illust/light/{square_decoration_star_03.webp → decoration-star_03-1_1.webp} +0 -0
  269. /package/lib/static/illust/light/{square_decoration_star_04.webp → decoration-star_04-1_1.webp} +0 -0
  270. /package/lib/static/illust/light/{square_decoration_star_05.webp → decoration-star_05-1_1.webp} +0 -0
  271. /package/lib/static/illust/light/{square_decoration_star_06.webp → decoration-star_06-1_1.webp} +0 -0
  272. /package/lib/static/illust/light/{square_decoration_star_07.webp → decoration-star_07-1_1.webp} +0 -0
  273. /package/lib/static/illust/light/{square_decoration_star_08.webp → decoration-star_08-1_1.webp} +0 -0
  274. /package/lib/static/illust/light/{square_decoration_star_09.webp → decoration-star_09-1_1.webp} +0 -0
  275. /package/lib/static/illust/light/{square_decoration_star_10.webp → decoration-star_10-1_1.webp} +0 -0
  276. /package/lib/static/illust/light/{square_decoration_star_11.webp → decoration-star_11-1_1.webp} +0 -0
  277. /package/lib/static/illust/light/{square_careers_page_tennis.webp → decoration-tennis-1_1.webp} +0 -0
@@ -0,0 +1 @@
1
+ export declare const generateRandomId: () => number;
@@ -1 +1,4 @@
1
- export type IllustName = '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';
1
+ 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";
2
+ 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";
3
+ export type IllustType = DarkIllustType | LightIllustType;
4
+ export {};
@@ -0,0 +1,38 @@
1
+ import { IconProps } from '../components/Icon';
2
+ import { ToastProps } from '@radix-ui/react-toast';
3
+ interface ISnackbarBase extends ToastProps {
4
+ title: string;
5
+ description?: string;
6
+ position?: 'left' | 'right';
7
+ }
8
+ export interface ButtonType {
9
+ onClick: () => void;
10
+ text: string;
11
+ }
12
+ interface ISnackbarBasic {
13
+ kind?: 'basic';
14
+ icon?: Pick<IconProps, 'name' | 'fill' | 'thick'>;
15
+ button?: {
16
+ text?: ButtonType;
17
+ basic?: ButtonType;
18
+ };
19
+ }
20
+ interface ISnackbarNavigation {
21
+ kind: 'navigation';
22
+ button: {
23
+ onClick: () => void;
24
+ };
25
+ }
26
+ interface ISnackbarExtended {
27
+ kind: 'extended';
28
+ button?: {
29
+ text?: ButtonType;
30
+ basic?: ButtonType;
31
+ };
32
+ }
33
+ export type SnackbarProp = ISnackbarBase & (ISnackbarBasic | ISnackbarNavigation | ISnackbarExtended);
34
+ export type SnackbarPropWithId = SnackbarProp & {
35
+ snackbarId: number;
36
+ timer: number;
37
+ };
38
+ export {};
@@ -0,0 +1,4 @@
1
+ export type WithRequired<T, K extends keyof T> = T & {
2
+ [P in K]-?: T[P];
3
+ };
4
+ export type StrictOmit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
@@ -0,0 +1,5 @@
1
+ import { IllustType } from '../types/illust';
2
+ export declare const prefetchIllust: ({ name, isDark }: {
3
+ name: IllustType;
4
+ isDark?: boolean;
5
+ }) => Promise<Response>;
@@ -3,4 +3,4 @@ export declare const objectToArray: <T extends Record<string, any>>(obj: T) => [
3
3
  export declare const arrayToStyleObject: (colorKeys: BasicColorType[], style: {
4
4
  readonly [key: string]: string;
5
5
  }, prefix?: string) => Partial<Record<BasicColorType, string>>;
6
- export declare const isEmptyObject: (obj: Object) => boolean;
6
+ export declare const isEmptyObject: (obj: object) => boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@liner-fe/prism",
3
- "version": "2.1.32",
3
+ "version": "2.1.34",
4
4
  "packageManager": "yarn@3.6.0",
5
5
  "scripts": {
6
6
  "dev": "next dev",
@@ -9,10 +9,11 @@
9
9
  "storybook": "storybook dev -p 6006",
10
10
  "build-storybook": "storybook build",
11
11
  "appendCSS": "ts-node './scripts/index.ts'",
12
- "build": "ts-node ./scripts/clearFolder && node ./build.mjs && tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json && ts-node ./scripts/copyPublic",
12
+ "build": "ts-node ./scripts/clearFolder && yarn illustToTypescriptCode && node ./build.mjs && tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json && ts-node ./scripts/copyPublic",
13
13
  "build:package": "yarn build",
14
14
  "prepack": "yarn build",
15
- "illust": "ts-node ./scripts/format-illust && find . -type d -empty -delete"
15
+ "illust": "ts-node ./scripts/format-illust && find . -type d -empty -delete",
16
+ "illustToTypescriptCode": "yarn workspace @liner-fe/prism ts-node ./scripts/illustToTypescriptCode"
16
17
  },
17
18
  "dependencies": {
18
19
  "@artsy/fresnel": "^7.1.4",
@@ -29,6 +30,7 @@
29
30
  "@radix-ui/react-tooltip": "^1.1.2",
30
31
  "clsx": "^2.1.1",
31
32
  "cva": "beta",
33
+ "date-fns": "^4.1.0",
32
34
  "framer-motion": "^11.2.13",
33
35
  "lottie-web": "^5.9.4",
34
36
  "react": "^18.2.0",
@@ -42,6 +44,7 @@
42
44
  },
43
45
  "devDependencies": {
44
46
  "@chromatic-com/storybook": "^1.5.0",
47
+ "@eslint/js": "^9.22.0",
45
48
  "@storybook/addon-designs": "^8.0.4",
46
49
  "@storybook/addon-essentials": "^8.4.2",
47
50
  "@storybook/addon-interactions": "^8.4.2",
@@ -62,6 +65,9 @@
62
65
  "esbuild": "^0.25.0",
63
66
  "esbuild-node-externals": "^1.16.0",
64
67
  "esbuild-sass-plugin": "^3.3.1",
68
+ "eslint": "^9.22.0",
69
+ "eslint-plugin-react": "^7.37.4",
70
+ "globals": "^16.0.0",
65
71
  "next": "^15.1.2",
66
72
  "postcss": "^8.4.24",
67
73
  "prettier": "^2.8.8",
@@ -72,6 +78,7 @@
72
78
  "ts-node": "^10.9.2",
73
79
  "tsc-alias": "^1.8.10",
74
80
  "typescript": "^5.1.6",
81
+ "typescript-eslint": "^8.26.1",
75
82
  "typescript-plugin-css-modules": "^5.1.0"
76
83
  },
77
84
  "publishConfig": {
@@ -89,5 +96,9 @@
89
96
  "name": "jake-liner",
90
97
  "email": "jake@linercorp.com"
91
98
  }
92
- ]
99
+ ],
100
+ "volta": {
101
+ "node": "20.18.3",
102
+ "yarn": "1.22.22"
103
+ }
93
104
  }
@@ -1,11 +0,0 @@
1
- import { ToastProp } from '..';
2
- export declare const toastAtom: import("recoil").RecoilState<{
3
- list: Array<ToastProp>;
4
- }>;
5
- export declare const ONE_SECOND = 1000;
6
- export declare const useToast: () => {
7
- open: (toast: Omit<Partial<ToastProp>, "toastId">) => {
8
- toastId: number;
9
- };
10
- endLoading: (toastId: number) => void;
11
- };