@twreporter/react-typescript-components 0.1.0-beta.7 → 0.1.0-beta.9

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 (373) hide show
  1. package/README.md +16 -0
  2. package/lib/button/constants.d.mts +3 -0
  3. package/lib/button/constants.d.ts +3 -0
  4. package/lib/button/constants.js +5 -0
  5. package/lib/button/constants.mjs +3 -0
  6. package/lib/button/index.d.mts +130 -23
  7. package/lib/button/index.d.ts +130 -23
  8. package/lib/button/index.js +11 -207
  9. package/lib/button/index.mjs +7 -9
  10. package/lib/button-CO0UXA6C.js +552 -0
  11. package/lib/button-CO0UXA6C.js.map +1 -0
  12. package/lib/button-DL6w1ghn.mjs +519 -0
  13. package/lib/button-DL6w1ghn.mjs.map +1 -0
  14. package/lib/chunk-BxBTb9qk.js +39 -0
  15. package/lib/constants/external-links.d.mts +16 -0
  16. package/lib/constants/external-links.d.ts +16 -0
  17. package/lib/constants/external-links.js +3 -0
  18. package/lib/constants/external-links.mjs +3 -0
  19. package/lib/constants/internal-links.d.mts +51 -0
  20. package/lib/constants/internal-links.d.ts +51 -0
  21. package/lib/constants/internal-links.js +3 -0
  22. package/lib/constants/internal-links.mjs +3 -0
  23. package/lib/constants/release-branch.d.mts +3 -0
  24. package/lib/constants/release-branch.d.ts +3 -0
  25. package/lib/constants/release-branch.js +3 -0
  26. package/lib/constants/release-branch.mjs +3 -0
  27. package/lib/constants/request-origins.d.mts +68 -0
  28. package/lib/constants/request-origins.d.ts +68 -0
  29. package/lib/constants/request-origins.js +47 -0
  30. package/lib/constants/request-origins.js.map +1 -0
  31. package/lib/constants/request-origins.mjs +46 -0
  32. package/lib/constants/request-origins.mjs.map +1 -0
  33. package/lib/constants/theme.d.mts +3 -0
  34. package/lib/constants/theme.d.ts +3 -0
  35. package/lib/constants/theme.js +3 -0
  36. package/lib/constants/theme.mjs +3 -0
  37. package/lib/constants-2TRY2zTK.js +38 -0
  38. package/lib/constants-2TRY2zTK.js.map +1 -0
  39. package/lib/constants-BS3rPbaX.d.ts +17 -0
  40. package/lib/constants-BWFuBApI.mjs +14 -0
  41. package/lib/constants-BWFuBApI.mjs.map +1 -0
  42. package/lib/constants-B_NgWFML.d.ts +24 -0
  43. package/lib/constants-BmxSMOOn.js +36 -0
  44. package/lib/constants-BmxSMOOn.js.map +1 -0
  45. package/lib/constants-BqeEbkVD.mjs +20 -0
  46. package/lib/constants-BqeEbkVD.mjs.map +1 -0
  47. package/lib/constants-CIX1G5rj.d.mts +24 -0
  48. package/lib/constants-CMMcn0f-.d.ts +11 -0
  49. package/lib/constants-COxV6T69.d.mts +11 -0
  50. package/lib/constants-CQscYQcW.mjs +25 -0
  51. package/lib/constants-CQscYQcW.mjs.map +1 -0
  52. package/lib/constants-D7_N9Z7C.d.mts +17 -0
  53. package/lib/constants-DF_II8Fz.js +43 -0
  54. package/lib/constants-DF_II8Fz.js.map +1 -0
  55. package/lib/constants-DQxcqnYL.d.ts +29 -0
  56. package/lib/constants-DRyQ6AuU.js +15 -0
  57. package/lib/constants-DRyQ6AuU.js.map +1 -0
  58. package/lib/constants-DWy9qTkZ.d.mts +22 -0
  59. package/lib/constants-K2ObjToq.js +26 -0
  60. package/lib/constants-K2ObjToq.js.map +1 -0
  61. package/lib/constants-gCmka4Fp.d.ts +22 -0
  62. package/lib/constants-mrRqEvQT.d.mts +29 -0
  63. package/lib/constants-oTHAnh6r.mjs +18 -0
  64. package/lib/constants-oTHAnh6r.mjs.map +1 -0
  65. package/lib/constants-t0lkfgqP.mjs +9 -0
  66. package/lib/constants-t0lkfgqP.mjs.map +1 -0
  67. package/lib/customized-link/external-link.d.mts +3 -7
  68. package/lib/customized-link/external-link.d.ts +3 -7
  69. package/lib/customized-link/external-link.js +2 -17
  70. package/lib/customized-link/external-link.mjs +3 -3
  71. package/lib/customized-link/index.d.mts +10 -8
  72. package/lib/customized-link/index.d.ts +10 -8
  73. package/lib/customized-link/index.js +6 -40
  74. package/lib/customized-link/index.mjs +5 -5
  75. package/lib/customized-link/internal-link.d.mts +3 -7
  76. package/lib/customized-link/internal-link.d.ts +3 -7
  77. package/lib/customized-link/internal-link.js +3 -19
  78. package/lib/customized-link/internal-link.mjs +6 -3
  79. package/lib/customized-link/type.d.mts +2 -9
  80. package/lib/customized-link/type.d.ts +2 -9
  81. package/lib/customized-link/type.js +0 -4
  82. package/lib/customized-link/type.mjs +1 -3
  83. package/lib/customized-link-BkuKVCKQ.mjs +12 -0
  84. package/lib/customized-link-BkuKVCKQ.mjs.map +1 -0
  85. package/lib/customized-link-CK7Xlgdt.js +17 -0
  86. package/lib/customized-link-CK7Xlgdt.js.map +1 -0
  87. package/lib/divider/constants.d.mts +3 -0
  88. package/lib/divider/constants.d.ts +3 -0
  89. package/lib/divider/constants.js +3 -0
  90. package/lib/divider/constants.mjs +3 -0
  91. package/lib/divider/index.d.mts +15 -0
  92. package/lib/divider/index.d.ts +15 -0
  93. package/lib/divider/index.js +6 -0
  94. package/lib/divider/index.mjs +4 -0
  95. package/lib/divider-Bb3tebJO.mjs +15 -0
  96. package/lib/divider-Bb3tebJO.mjs.map +1 -0
  97. package/lib/divider-b3Shh7FV.js +29 -0
  98. package/lib/divider-b3Shh7FV.js.map +1 -0
  99. package/lib/dropdown-menu/index.d.mts +17 -0
  100. package/lib/dropdown-menu/index.d.ts +17 -0
  101. package/lib/dropdown-menu/index.js +13 -0
  102. package/lib/dropdown-menu/index.mjs +13 -0
  103. package/lib/dropdown-menu-Da9XSi5T.mjs +135 -0
  104. package/lib/dropdown-menu-Da9XSi5T.mjs.map +1 -0
  105. package/lib/dropdown-menu-pmVRiPhM.js +180 -0
  106. package/lib/dropdown-menu-pmVRiPhM.js.map +1 -0
  107. package/lib/external-link-2XoC1_oL.d.ts +9 -0
  108. package/lib/external-link-Bq-CThgd.d.mts +9 -0
  109. package/lib/external-link-CEDvlQYo.js +23 -0
  110. package/lib/external-link-CEDvlQYo.js.map +1 -0
  111. package/lib/external-link-Cx9S31Ye.mjs +16 -0
  112. package/lib/external-link-Cx9S31Ye.mjs.map +1 -0
  113. package/lib/external-links-2b4M_rcA.mjs +17 -0
  114. package/lib/external-links-2b4M_rcA.mjs.map +1 -0
  115. package/lib/external-links-SfJjb48j.js +23 -0
  116. package/lib/external-links-SfJjb48j.js.map +1 -0
  117. package/lib/hamburger-menu/index.d.mts +7 -0
  118. package/lib/hamburger-menu/index.d.ts +6 -0
  119. package/lib/hamburger-menu/index.js +21 -0
  120. package/lib/hamburger-menu/index.mjs +21 -0
  121. package/lib/hamburger-menu-CMHvrA25.js +486 -0
  122. package/lib/hamburger-menu-CMHvrA25.js.map +1 -0
  123. package/lib/hamburger-menu-UYqFVwiu.mjs +471 -0
  124. package/lib/hamburger-menu-UYqFVwiu.mjs.map +1 -0
  125. package/lib/header/index.d.mts +26 -0
  126. package/lib/header/index.d.ts +25 -0
  127. package/lib/header/index.js +468 -0
  128. package/lib/header/index.js.map +1 -0
  129. package/lib/header/index.mjs +462 -0
  130. package/lib/header/index.mjs.map +1 -0
  131. package/lib/heading-CWQISn4r.js +75 -0
  132. package/lib/heading-CWQISn4r.js.map +1 -0
  133. package/lib/heading-Dt90Ed74.mjs +37 -0
  134. package/lib/heading-Dt90Ed74.mjs.map +1 -0
  135. package/lib/icons/constants.d.mts +3 -0
  136. package/lib/icons/constants.d.ts +3 -0
  137. package/lib/icons/constants.js +5 -0
  138. package/lib/icons/constants.mjs +3 -0
  139. package/lib/icons/index.d.mts +40 -0
  140. package/lib/icons/index.d.ts +40 -0
  141. package/lib/icons/index.js +12 -0
  142. package/lib/icons/index.mjs +5 -0
  143. package/lib/icons-CtVvOt3y.mjs +57 -0
  144. package/lib/icons-CtVvOt3y.mjs.map +1 -0
  145. package/lib/icons-teg1h03Q.js +107 -0
  146. package/lib/icons-teg1h03Q.js.map +1 -0
  147. package/lib/index-Ej3agYJF.d.mts +5 -0
  148. package/lib/index-H3peA2d_.d.ts +5 -0
  149. package/lib/internal-link-CqTu3Yi5.js +2278 -0
  150. package/lib/internal-link-CqTu3Yi5.js.map +1 -0
  151. package/lib/internal-link-DCSEl1jM.d.ts +9 -0
  152. package/lib/internal-link-NQb751uB.mjs +2299 -0
  153. package/lib/internal-link-NQb751uB.mjs.map +1 -0
  154. package/lib/internal-link-P1QwjWbL.d.mts +9 -0
  155. package/lib/internal-links-BF-974mA.mjs +52 -0
  156. package/lib/internal-links-BF-974mA.mjs.map +1 -0
  157. package/lib/internal-links-CBkMU8cY.js +58 -0
  158. package/lib/internal-links-CBkMU8cY.js.map +1 -0
  159. package/lib/logo/constants.d.mts +3 -0
  160. package/lib/logo/constants.d.ts +3 -0
  161. package/lib/logo/constants.js +5 -0
  162. package/lib/logo/constants.mjs +3 -0
  163. package/lib/logo/index.d.mts +42 -0
  164. package/lib/logo/index.d.ts +42 -0
  165. package/lib/logo/index.js +8 -0
  166. package/lib/logo/index.mjs +5 -0
  167. package/lib/logo-CaawAABC.mjs +64 -0
  168. package/lib/logo-CaawAABC.mjs.map +1 -0
  169. package/lib/logo-rQxaglyD.js +83 -0
  170. package/lib/logo-rQxaglyD.js.map +1 -0
  171. package/lib/paragraph-BWXQNQtX.mjs +30 -0
  172. package/lib/paragraph-BWXQNQtX.mjs.map +1 -0
  173. package/lib/paragraph-CJvb0_cM.js +56 -0
  174. package/lib/paragraph-CJvb0_cM.js.map +1 -0
  175. package/lib/release-branch-CRZV4Ivz.js +18 -0
  176. package/lib/release-branch-CRZV4Ivz.js.map +1 -0
  177. package/lib/release-branch-CsBbhuYE.d.ts +14 -0
  178. package/lib/release-branch-DIEpb2N0.d.mts +14 -0
  179. package/lib/release-branch-DNCD1uH_.mjs +12 -0
  180. package/lib/release-branch-DNCD1uH_.mjs.map +1 -0
  181. package/lib/styles.css +965 -0
  182. package/lib/text/constants.d.mts +3 -0
  183. package/lib/text/constants.d.ts +3 -0
  184. package/lib/text/constants.js +4 -0
  185. package/lib/text/constants.mjs +3 -0
  186. package/lib/text/heading.d.mts +22 -20
  187. package/lib/text/heading.d.ts +22 -20
  188. package/lib/text/heading.js +9 -70
  189. package/lib/text/heading.mjs +4 -4
  190. package/lib/text/paragraph.d.mts +18 -16
  191. package/lib/text/paragraph.d.ts +18 -16
  192. package/lib/text/paragraph.js +6 -57
  193. package/lib/text/paragraph.mjs +4 -4
  194. package/lib/theme-BDGfJ8n-.d.ts +13 -0
  195. package/lib/theme-BG6yZVj-.mjs +11 -0
  196. package/lib/theme-BG6yZVj-.mjs.map +1 -0
  197. package/lib/theme-BqjiyFsg.d.mts +13 -0
  198. package/lib/theme-DDBlIbeS.js +17 -0
  199. package/lib/theme-DDBlIbeS.js.map +1 -0
  200. package/lib/title-bar/index.d.mts +55 -23
  201. package/lib/title-bar/index.d.ts +55 -23
  202. package/lib/title-bar/index.js +131 -403
  203. package/lib/title-bar/index.js.map +1 -1
  204. package/lib/title-bar/index.mjs +140 -25
  205. package/lib/title-bar/index.mjs.map +1 -1
  206. package/lib/type-C4hJK9H9.d.ts +11 -0
  207. package/lib/type-DeNBwt-o.d.mts +11 -0
  208. package/lib/types/index.d.mts +2 -3
  209. package/lib/types/index.d.ts +2 -3
  210. package/lib/types/index.js +0 -4
  211. package/lib/types/index.mjs +1 -3
  212. package/package.json +11 -6
  213. package/lib/button/components/text-button/index.d.mts +0 -24
  214. package/lib/button/components/text-button/index.d.ts +0 -24
  215. package/lib/button/components/text-button/index.js +0 -202
  216. package/lib/button/components/text-button/index.js.map +0 -1
  217. package/lib/button/components/text-button/index.mjs +0 -8
  218. package/lib/button/components/text-button/index.mjs.map +0 -1
  219. package/lib/button/components/text-button/theme.d.mts +0 -11
  220. package/lib/button/components/text-button/theme.d.ts +0 -11
  221. package/lib/button/components/text-button/theme.js +0 -65
  222. package/lib/button/components/text-button/theme.js.map +0 -1
  223. package/lib/button/components/text-button/theme.mjs +0 -5
  224. package/lib/button/components/text-button/theme.mjs.map +0 -1
  225. package/lib/button/constant.d.mts +0 -11
  226. package/lib/button/constant.d.ts +0 -11
  227. package/lib/button/constant.js +0 -13
  228. package/lib/button/constant.js.map +0 -1
  229. package/lib/button/constant.mjs +0 -3
  230. package/lib/button/constant.mjs.map +0 -1
  231. package/lib/button/enum.d.mts +0 -11
  232. package/lib/button/enum.d.ts +0 -11
  233. package/lib/button/enum.js +0 -19
  234. package/lib/button/enum.js.map +0 -1
  235. package/lib/button/enum.mjs +0 -3
  236. package/lib/button/enum.mjs.map +0 -1
  237. package/lib/button/index.js.map +0 -1
  238. package/lib/button/index.mjs.map +0 -1
  239. package/lib/button/stories/text-button.stories.d.mts +0 -55
  240. package/lib/button/stories/text-button.stories.d.ts +0 -55
  241. package/lib/button/stories/text-button.stories.js +0 -252
  242. package/lib/button/stories/text-button.stories.js.map +0 -1
  243. package/lib/button/stories/text-button.stories.mjs +0 -35
  244. package/lib/button/stories/text-button.stories.mjs.map +0 -1
  245. package/lib/chunk-6DXA3EX7.mjs +0 -35
  246. package/lib/chunk-6DXA3EX7.mjs.map +0 -1
  247. package/lib/chunk-7NJDHQ2X.mjs +0 -56
  248. package/lib/chunk-7NJDHQ2X.mjs.map +0 -1
  249. package/lib/chunk-ELECTE3D.mjs +0 -8
  250. package/lib/chunk-ELECTE3D.mjs.map +0 -1
  251. package/lib/chunk-FF422IYY.mjs +0 -38
  252. package/lib/chunk-FF422IYY.mjs.map +0 -1
  253. package/lib/chunk-FVKIUNIP.mjs +0 -58
  254. package/lib/chunk-FVKIUNIP.mjs.map +0 -1
  255. package/lib/chunk-GQWO45DN.mjs +0 -32
  256. package/lib/chunk-GQWO45DN.mjs.map +0 -1
  257. package/lib/chunk-HQG6Q2EY.mjs +0 -42
  258. package/lib/chunk-HQG6Q2EY.mjs.map +0 -1
  259. package/lib/chunk-JB4TYHDE.mjs +0 -11
  260. package/lib/chunk-JB4TYHDE.mjs.map +0 -1
  261. package/lib/chunk-JFT6JILC.mjs +0 -12
  262. package/lib/chunk-JFT6JILC.mjs.map +0 -1
  263. package/lib/chunk-JHLT5GDV.mjs +0 -50
  264. package/lib/chunk-JHLT5GDV.mjs.map +0 -1
  265. package/lib/chunk-QOLETTSG.mjs +0 -28
  266. package/lib/chunk-QOLETTSG.mjs.map +0 -1
  267. package/lib/chunk-U22UKMAJ.mjs +0 -84
  268. package/lib/chunk-U22UKMAJ.mjs.map +0 -1
  269. package/lib/chunk-UM7RNC2Y.mjs +0 -14
  270. package/lib/chunk-UM7RNC2Y.mjs.map +0 -1
  271. package/lib/chunk-URJXIWFX.mjs +0 -16
  272. package/lib/chunk-URJXIWFX.mjs.map +0 -1
  273. package/lib/chunk-X2UWIBNH.mjs +0 -16
  274. package/lib/chunk-X2UWIBNH.mjs.map +0 -1
  275. package/lib/chunk-XO7SDD7W.mjs +0 -17
  276. package/lib/chunk-XO7SDD7W.mjs.map +0 -1
  277. package/lib/chunk-ZALXWB2J.mjs +0 -27
  278. package/lib/chunk-ZALXWB2J.mjs.map +0 -1
  279. package/lib/customized-link/external-link.js.map +0 -1
  280. package/lib/customized-link/external-link.mjs.map +0 -1
  281. package/lib/customized-link/index.js.map +0 -1
  282. package/lib/customized-link/index.mjs.map +0 -1
  283. package/lib/customized-link/internal-link.js.map +0 -1
  284. package/lib/customized-link/internal-link.mjs.map +0 -1
  285. package/lib/customized-link/type.js.map +0 -1
  286. package/lib/customized-link/type.mjs.map +0 -1
  287. package/lib/storybook/utils/get-enum-arg.d.mts +0 -19
  288. package/lib/storybook/utils/get-enum-arg.d.ts +0 -19
  289. package/lib/storybook/utils/get-enum-arg.js +0 -31
  290. package/lib/storybook/utils/get-enum-arg.js.map +0 -1
  291. package/lib/storybook/utils/get-enum-arg.mjs +0 -3
  292. package/lib/storybook/utils/get-enum-arg.mjs.map +0 -1
  293. package/lib/styles.css.map +0 -1
  294. package/lib/styles.d.mts +0 -2
  295. package/lib/styles.d.ts +0 -2
  296. package/lib/text/enum/index.d.mts +0 -15
  297. package/lib/text/enum/index.d.ts +0 -15
  298. package/lib/text/enum/index.js +0 -17
  299. package/lib/text/enum/index.js.map +0 -1
  300. package/lib/text/enum/index.mjs +0 -3
  301. package/lib/text/enum/index.mjs.map +0 -1
  302. package/lib/text/heading.js.map +0 -1
  303. package/lib/text/heading.mjs.map +0 -1
  304. package/lib/text/paragraph.js.map +0 -1
  305. package/lib/text/paragraph.mjs.map +0 -1
  306. package/lib/text/stories/heading.stories.d.mts +0 -35
  307. package/lib/text/stories/heading.stories.d.ts +0 -35
  308. package/lib/text/stories/heading.stories.js +0 -131
  309. package/lib/text/stories/heading.stories.js.map +0 -1
  310. package/lib/text/stories/heading.stories.mjs +0 -50
  311. package/lib/text/stories/heading.stories.mjs.map +0 -1
  312. package/lib/text/stories/paragraph.stories.d.mts +0 -33
  313. package/lib/text/stories/paragraph.stories.d.ts +0 -33
  314. package/lib/text/stories/paragraph.stories.js +0 -108
  315. package/lib/text/stories/paragraph.stories.js.map +0 -1
  316. package/lib/text/stories/paragraph.stories.mjs +0 -40
  317. package/lib/text/stories/paragraph.stories.mjs.map +0 -1
  318. package/lib/title-bar/components/title-tab/hook.d.mts +0 -5
  319. package/lib/title-bar/components/title-tab/hook.d.ts +0 -5
  320. package/lib/title-bar/components/title-tab/hook.js +0 -34
  321. package/lib/title-bar/components/title-tab/hook.js.map +0 -1
  322. package/lib/title-bar/components/title-tab/hook.mjs +0 -3
  323. package/lib/title-bar/components/title-tab/hook.mjs.map +0 -1
  324. package/lib/title-bar/components/title-tab/index.d.mts +0 -11
  325. package/lib/title-bar/components/title-tab/index.d.ts +0 -11
  326. package/lib/title-bar/components/title-tab/index.js +0 -367
  327. package/lib/title-bar/components/title-tab/index.js.map +0 -1
  328. package/lib/title-bar/components/title-tab/index.mjs +0 -16
  329. package/lib/title-bar/components/title-tab/index.mjs.map +0 -1
  330. package/lib/title-bar/components/title-tab/tab-item.d.mts +0 -10
  331. package/lib/title-bar/components/title-tab/tab-item.d.ts +0 -10
  332. package/lib/title-bar/components/title-tab/tab-item.js +0 -250
  333. package/lib/title-bar/components/title-tab/tab-item.js.map +0 -1
  334. package/lib/title-bar/components/title-tab/tab-item.mjs +0 -13
  335. package/lib/title-bar/components/title-tab/tab-item.mjs.map +0 -1
  336. package/lib/title-bar/components/title-tab/type.d.mts +0 -8
  337. package/lib/title-bar/components/title-tab/type.d.ts +0 -8
  338. package/lib/title-bar/components/title-tab/type.js +0 -4
  339. package/lib/title-bar/components/title-tab/type.js.map +0 -1
  340. package/lib/title-bar/components/title-tab/type.mjs +0 -3
  341. package/lib/title-bar/components/title-tab/type.mjs.map +0 -1
  342. package/lib/title-bar/components/title1.d.mts +0 -10
  343. package/lib/title-bar/components/title1.d.ts +0 -10
  344. package/lib/title-bar/components/title1.js +0 -123
  345. package/lib/title-bar/components/title1.js.map +0 -1
  346. package/lib/title-bar/components/title1.mjs +0 -6
  347. package/lib/title-bar/components/title1.mjs.map +0 -1
  348. package/lib/title-bar/components/title2.d.mts +0 -11
  349. package/lib/title-bar/components/title2.d.ts +0 -11
  350. package/lib/title-bar/components/title2.js +0 -131
  351. package/lib/title-bar/components/title2.js.map +0 -1
  352. package/lib/title-bar/components/title2.mjs +0 -6
  353. package/lib/title-bar/components/title2.mjs.map +0 -1
  354. package/lib/title-bar/stories/title-tab.stories.d.mts +0 -17
  355. package/lib/title-bar/stories/title-tab.stories.d.ts +0 -17
  356. package/lib/title-bar/stories/title-tab.stories.js +0 -391
  357. package/lib/title-bar/stories/title-tab.stories.js.map +0 -1
  358. package/lib/title-bar/stories/title-tab.stories.mjs +0 -39
  359. package/lib/title-bar/stories/title-tab.stories.mjs.map +0 -1
  360. package/lib/title-bar/stories/title1.stories.d.mts +0 -18
  361. package/lib/title-bar/stories/title1.stories.d.ts +0 -18
  362. package/lib/title-bar/stories/title1.stories.js +0 -155
  363. package/lib/title-bar/stories/title1.stories.js.map +0 -1
  364. package/lib/title-bar/stories/title1.stories.mjs +0 -35
  365. package/lib/title-bar/stories/title1.stories.mjs.map +0 -1
  366. package/lib/title-bar/stories/title2.stories.d.mts +0 -18
  367. package/lib/title-bar/stories/title2.stories.d.ts +0 -18
  368. package/lib/title-bar/stories/title2.stories.js +0 -304
  369. package/lib/title-bar/stories/title2.stories.js.map +0 -1
  370. package/lib/title-bar/stories/title2.stories.mjs +0 -38
  371. package/lib/title-bar/stories/title2.stories.mjs.map +0 -1
  372. package/lib/types/index.js.map +0 -1
  373. package/lib/types/index.mjs.map +0 -1
package/README.md CHANGED
@@ -53,6 +53,22 @@ yarn build
53
53
 
54
54
  The output files will be generated in the `lib/` directory.
55
55
 
56
+ ### Build tool change: tsup → tsdown
57
+
58
+ We replaced tsup with tsdown for building this package due to intermittent memory crashes when generating type declarations with tsup (ERR_WORKER_OUT_OF_MEMORY). See: https://github.com/egoist/tsup/issues/920
59
+
60
+ What changed
61
+
62
+ - Components are built with tsdown (see `tsdown.config.ts`).
63
+ - Scripts:
64
+ - `yarn build:components` runs tsdown.
65
+ - `yarn build` cleans, builds components, then builds Tailwind CSS to `lib/styles.css`.
66
+
67
+ Impact
68
+
69
+ - No breaking changes for consumers: we still ship ESM and CJS outputs in `lib/` with bundled `.d.ts` and sourcemaps.
70
+ - For contributors: use `yarn build` or `yarn build:components`; tsup is no longer used.
71
+
56
72
  ## License
57
73
 
58
74
  MIT
@@ -0,0 +1,3 @@
1
+ import "../index-Ej3agYJF.mjs";
2
+ import { SIZE, STYLE, Size, Style, TYPE, Type } from "../constants-DWy9qTkZ.mjs";
3
+ export { SIZE, STYLE, Size, Style, TYPE, Type };
@@ -0,0 +1,3 @@
1
+ import "../index-H3peA2d_.js";
2
+ import { SIZE, STYLE, Size, Style, TYPE, Type } from "../constants-gCmka4Fp.js";
3
+ export { SIZE, STYLE, Size, Style, TYPE, Type };
@@ -0,0 +1,5 @@
1
+ const require_constants = require('../constants-BmxSMOOn.js');
2
+
3
+ exports.SIZE = require_constants.SIZE;
4
+ exports.STYLE = require_constants.STYLE;
5
+ exports.TYPE = require_constants.TYPE;
@@ -0,0 +1,3 @@
1
+ import { SIZE, STYLE, TYPE } from "../constants-oTHAnh6r.mjs";
2
+
3
+ export { SIZE, STYLE, TYPE };
@@ -1,26 +1,133 @@
1
- import { Theme, THEME } from './constant.mjs';
2
- import { Size, Style } from './enum.mjs';
3
- import * as react from 'react';
4
- export { default as TextButton } from './components/text-button/index.mjs';
5
- import '../types/index.mjs';
1
+ import "../index-Ej3agYJF.mjs";
2
+ import { SIZE, STYLE, Size, Style, TYPE, Type } from "../constants-DWy9qTkZ.mjs";
3
+ import { THEME, Theme } from "../theme-BqjiyFsg.mjs";
4
+ import { WEIGHT, Weight } from "../constants-D7_N9Z7C.mjs";
5
+ import * as react0 from "react";
6
+ import React$1, { FC, ReactElement } from "react";
6
7
 
8
+ //#region src/button/components/text-button/index.d.ts
9
+ type TextButtonProps = {
10
+ text: string;
11
+ leftIconComponent?: ReactElement;
12
+ rightIconComponent?: ReactElement;
13
+ size?: Size;
14
+ style?: Style;
15
+ theme?: Theme;
16
+ active?: boolean;
17
+ disabled?: boolean;
18
+ loading?: boolean;
19
+ className?: string;
20
+ };
21
+ declare const TextButton: FC<TextButtonProps> & {
22
+ Size: typeof SIZE;
23
+ Style: typeof STYLE;
24
+ Theme: typeof THEME;
25
+ };
26
+ //#endregion
27
+ //#region src/button/components/icon-button/index.d.ts
28
+ type IconButtonProps = {
29
+ iconComponent: React$1.ReactElement;
30
+ theme?: Theme;
31
+ type?: Type;
32
+ disabled?: boolean;
33
+ active?: boolean;
34
+ className?: string;
35
+ onClick?: (e: React$1.MouseEvent<HTMLButtonElement>) => void;
36
+ };
37
+ declare const IconButton: React$1.FC<IconButtonProps> & {
38
+ Theme: typeof THEME;
39
+ Type: typeof TYPE;
40
+ };
41
+ //#endregion
42
+ //#region src/button/components/menu-button/index.d.ts
43
+ type MenuButtonProps = {
44
+ text: string;
45
+ color: string;
46
+ fontWeight: Weight;
47
+ className?: string;
48
+ p1ClassName?: string;
49
+ };
50
+ declare const MenuButton: React$1.FC<MenuButtonProps> & {
51
+ FontWeight: typeof WEIGHT;
52
+ };
53
+ //#endregion
54
+ //#region src/button/components/pill-button/index.d.ts
55
+ type PillButtonProps = {
56
+ text?: string;
57
+ leftIconComponent?: React.ReactElement;
58
+ rightIconComponent?: React.ReactElement;
59
+ size?: Size;
60
+ theme?: Theme;
61
+ type?: Type;
62
+ style?: Style;
63
+ disabled?: boolean;
64
+ loading?: boolean;
65
+ className?: string;
66
+ };
67
+ declare const PillButton: FC<PillButtonProps> & {
68
+ Theme: typeof THEME;
69
+ Type: typeof TYPE;
70
+ Size: typeof SIZE;
71
+ Style: typeof STYLE;
72
+ };
73
+ //#endregion
74
+ //#region src/button/index.d.ts
7
75
  declare const _default: {
8
- TextButton: react.FC<{
9
- text: string;
10
- leftIconComponent?: react.ReactElement;
11
- rightIconComponent?: react.ReactElement;
12
- size?: Size;
13
- style?: Style;
14
- theme?: Theme;
15
- active?: boolean;
16
- disabled?: boolean;
17
- loading?: boolean;
18
- className?: string;
19
- }> & {
20
- Size: typeof Size;
21
- Style: typeof Style;
22
- THEME: typeof THEME;
23
- };
76
+ TextButton: react0.FC<{
77
+ text: string;
78
+ leftIconComponent?: react0.ReactElement;
79
+ rightIconComponent?: react0.ReactElement;
80
+ size?: Size;
81
+ style?: Style;
82
+ theme?: Theme;
83
+ active?: boolean;
84
+ disabled?: boolean;
85
+ loading?: boolean;
86
+ className?: string;
87
+ }> & {
88
+ Size: typeof SIZE;
89
+ Style: typeof STYLE;
90
+ Theme: typeof THEME;
91
+ };
92
+ IconButton: react0.FC<{
93
+ iconComponent: React.ReactElement;
94
+ theme?: Theme;
95
+ type?: Type;
96
+ disabled?: boolean;
97
+ active?: boolean;
98
+ className?: string;
99
+ onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
100
+ }> & {
101
+ Theme: typeof THEME;
102
+ Type: typeof TYPE;
103
+ };
104
+ MenuButton: react0.FC<{
105
+ text: string;
106
+ color: string;
107
+ fontWeight: Weight;
108
+ className?: string;
109
+ p1ClassName?: string;
110
+ }> & {
111
+ FontWeight: typeof WEIGHT;
112
+ };
113
+ PillButton: react0.FC<{
114
+ text?: string;
115
+ leftIconComponent?: React.ReactElement;
116
+ rightIconComponent?: React.ReactElement;
117
+ size?: Size;
118
+ theme?: Theme;
119
+ type?: Type;
120
+ style?: Style;
121
+ disabled?: boolean;
122
+ loading?: boolean;
123
+ className?: string;
124
+ }> & {
125
+ Theme: typeof THEME;
126
+ Type: typeof TYPE;
127
+ Size: typeof SIZE;
128
+ Style: typeof STYLE;
129
+ };
24
130
  };
25
-
26
- export { _default as default };
131
+ //#endregion
132
+ export { IconButton, MenuButton, PillButton, TextButton, _default as default };
133
+ //# sourceMappingURL=index.d.mts.map
@@ -1,26 +1,133 @@
1
- import { Theme, THEME } from './constant.js';
2
- import { Size, Style } from './enum.js';
3
- import * as react from 'react';
4
- export { default as TextButton } from './components/text-button/index.js';
5
- import '../types/index.js';
1
+ import "../index-H3peA2d_.js";
2
+ import { SIZE, STYLE, Size, Style, TYPE, Type } from "../constants-gCmka4Fp.js";
3
+ import { THEME, Theme } from "../theme-BDGfJ8n-.js";
4
+ import { WEIGHT, Weight } from "../constants-BS3rPbaX.js";
5
+ import * as react0 from "react";
6
+ import React$1, { FC, ReactElement } from "react";
6
7
 
8
+ //#region src/button/components/text-button/index.d.ts
9
+ type TextButtonProps = {
10
+ text: string;
11
+ leftIconComponent?: ReactElement;
12
+ rightIconComponent?: ReactElement;
13
+ size?: Size;
14
+ style?: Style;
15
+ theme?: Theme;
16
+ active?: boolean;
17
+ disabled?: boolean;
18
+ loading?: boolean;
19
+ className?: string;
20
+ };
21
+ declare const TextButton: FC<TextButtonProps> & {
22
+ Size: typeof SIZE;
23
+ Style: typeof STYLE;
24
+ Theme: typeof THEME;
25
+ };
26
+ //#endregion
27
+ //#region src/button/components/icon-button/index.d.ts
28
+ type IconButtonProps = {
29
+ iconComponent: React$1.ReactElement;
30
+ theme?: Theme;
31
+ type?: Type;
32
+ disabled?: boolean;
33
+ active?: boolean;
34
+ className?: string;
35
+ onClick?: (e: React$1.MouseEvent<HTMLButtonElement>) => void;
36
+ };
37
+ declare const IconButton: React$1.FC<IconButtonProps> & {
38
+ Theme: typeof THEME;
39
+ Type: typeof TYPE;
40
+ };
41
+ //#endregion
42
+ //#region src/button/components/menu-button/index.d.ts
43
+ type MenuButtonProps = {
44
+ text: string;
45
+ color: string;
46
+ fontWeight: Weight;
47
+ className?: string;
48
+ p1ClassName?: string;
49
+ };
50
+ declare const MenuButton: React$1.FC<MenuButtonProps> & {
51
+ FontWeight: typeof WEIGHT;
52
+ };
53
+ //#endregion
54
+ //#region src/button/components/pill-button/index.d.ts
55
+ type PillButtonProps = {
56
+ text?: string;
57
+ leftIconComponent?: React.ReactElement;
58
+ rightIconComponent?: React.ReactElement;
59
+ size?: Size;
60
+ theme?: Theme;
61
+ type?: Type;
62
+ style?: Style;
63
+ disabled?: boolean;
64
+ loading?: boolean;
65
+ className?: string;
66
+ };
67
+ declare const PillButton: FC<PillButtonProps> & {
68
+ Theme: typeof THEME;
69
+ Type: typeof TYPE;
70
+ Size: typeof SIZE;
71
+ Style: typeof STYLE;
72
+ };
73
+ //#endregion
74
+ //#region src/button/index.d.ts
7
75
  declare const _default: {
8
- TextButton: react.FC<{
9
- text: string;
10
- leftIconComponent?: react.ReactElement;
11
- rightIconComponent?: react.ReactElement;
12
- size?: Size;
13
- style?: Style;
14
- theme?: Theme;
15
- active?: boolean;
16
- disabled?: boolean;
17
- loading?: boolean;
18
- className?: string;
19
- }> & {
20
- Size: typeof Size;
21
- Style: typeof Style;
22
- THEME: typeof THEME;
23
- };
76
+ TextButton: react0.FC<{
77
+ text: string;
78
+ leftIconComponent?: react0.ReactElement;
79
+ rightIconComponent?: react0.ReactElement;
80
+ size?: Size;
81
+ style?: Style;
82
+ theme?: Theme;
83
+ active?: boolean;
84
+ disabled?: boolean;
85
+ loading?: boolean;
86
+ className?: string;
87
+ }> & {
88
+ Size: typeof SIZE;
89
+ Style: typeof STYLE;
90
+ Theme: typeof THEME;
91
+ };
92
+ IconButton: react0.FC<{
93
+ iconComponent: React.ReactElement;
94
+ theme?: Theme;
95
+ type?: Type;
96
+ disabled?: boolean;
97
+ active?: boolean;
98
+ className?: string;
99
+ onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
100
+ }> & {
101
+ Theme: typeof THEME;
102
+ Type: typeof TYPE;
103
+ };
104
+ MenuButton: react0.FC<{
105
+ text: string;
106
+ color: string;
107
+ fontWeight: Weight;
108
+ className?: string;
109
+ p1ClassName?: string;
110
+ }> & {
111
+ FontWeight: typeof WEIGHT;
112
+ };
113
+ PillButton: react0.FC<{
114
+ text?: string;
115
+ leftIconComponent?: React.ReactElement;
116
+ rightIconComponent?: React.ReactElement;
117
+ size?: Size;
118
+ theme?: Theme;
119
+ type?: Type;
120
+ style?: Style;
121
+ disabled?: boolean;
122
+ loading?: boolean;
123
+ className?: string;
124
+ }> & {
125
+ Theme: typeof THEME;
126
+ Type: typeof TYPE;
127
+ Size: typeof SIZE;
128
+ Style: typeof STYLE;
129
+ };
24
130
  };
25
-
26
- export { _default as default };
131
+ //#endregion
132
+ export { IconButton, MenuButton, PillButton, TextButton, _default as default };
133
+ //# sourceMappingURL=index.d.ts.map
@@ -1,208 +1,12 @@
1
- 'use strict';
2
-
3
1
  Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var react = require('react');
6
- var clsx2 = require('clsx');
7
- var jsxRuntime = require('react/jsx-runtime');
8
-
9
- function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
10
-
11
- var clsx2__default = /*#__PURE__*/_interopDefault(clsx2);
12
-
13
- // src/button/components/text-button/index.tsx
14
-
15
- // src/text/enum/index.ts
16
- var WEIGHT = {
17
- extraLight: "extra-light",
18
- normal: "normal",
19
- bold: "bold"
20
- };
21
- var baseClass = "font-default leading-[150%] flex items-center m-0";
22
- var variantClass = {
23
- P1: "text-[16px]",
24
- P2: "text-[14px]",
25
- P3: "text-[12px]",
26
- P4: "text-[10px]"
27
- };
28
- var ParagraphVariant = (variant) => {
29
- const Component = ({
30
- text = "",
31
- weight = WEIGHT.normal,
32
- className = "",
33
- ...props
34
- }) => /* @__PURE__ */ jsxRuntime.jsx(
35
- "p",
36
- {
37
- className: clsx2__default.default(
38
- baseClass,
39
- variantClass[variant],
40
- `font-${weight}`,
41
- className
42
- ),
43
- ...props,
44
- children: text
45
- }
46
- );
47
- Component.displayName = variant;
48
- Component.Weight = WEIGHT;
49
- return Component;
50
- };
51
- var P1 = ParagraphVariant("P1");
52
- var P2 = ParagraphVariant("P2");
53
- ParagraphVariant("P3");
54
- ParagraphVariant("P4");
55
-
56
- // src/button/enum.ts
57
- var Size = /* @__PURE__ */ ((Size2) => {
58
- Size2[Size2["S"] = 0] = "S";
59
- Size2[Size2["L"] = 1] = "L";
60
- return Size2;
61
- })(Size || {});
62
- var Style = /* @__PURE__ */ ((Style2) => {
63
- Style2[Style2["BRAND"] = 0] = "BRAND";
64
- Style2[Style2["DARK"] = 1] = "DARK";
65
- Style2[Style2["LIGHT"] = 2] = "LIGHT";
66
- return Style2;
67
- })(Style || {});
68
-
69
- // src/button/constant.ts
70
- var THEME = {
71
- normal: "normal",
72
- photography: "photography",
73
- transparent: "transparent",
74
- index: "index"
75
- };
76
-
77
- // src/button/components/text-button/theme.ts
78
- var getDisabledContainerTheme = (theme) => {
79
- return [
80
- // default theme
81
- "text-gray-400 hover:text-gray-400",
82
- // photography & transparent theme
83
- {
84
- "text-gray-500 hover:text-gray-500": theme === THEME.photography || theme === THEME.transparent
85
- }
86
- ];
87
- };
88
- var getActiveContainerTheme = (theme, style) => {
89
- return [
90
- // default theme
91
- {
92
- "text-gray-800 hover:text-gray-800": style === 2 /* LIGHT */,
93
- "text-brand-heavy hover:text-brand-heavy": style === 1 /* DARK */,
94
- "text-brand-dark hover:text-brand-dark": style === 0 /* BRAND */
95
- },
96
- // photography theme
97
- {
98
- "text-gray-400 hover:text-gray-400": theme === THEME.photography && style === 2 /* LIGHT */,
99
- "text-supportive-pastel hover:text-supportive-pastel": theme === THEME.photography && style !== 2 /* LIGHT */
100
- },
101
- // transparent theme
102
- {
103
- "text-gray-black hover:text-gray-black": theme === THEME.transparent && style === 2 /* LIGHT */,
104
- "text-gray-200 hover:text-gray-200": theme === THEME.transparent && style !== 2 /* LIGHT */
105
- }
106
- ];
107
- };
108
- var getContainerTheme = (theme, style) => {
109
- return [
110
- // default theme
111
- {
112
- "text-gray-600 hover:text-gray-800": style === 2 /* LIGHT */,
113
- "text-gray-800 hover:text-brand-heavy": style === 1 /* DARK */,
114
- "text-brand-heavy hover:text-brand-dark": style === 0 /* BRAND */
115
- },
116
- // photography
117
- {
118
- "text-gray-300 hover:text-gray-400": theme === THEME.photography && style === 2 /* LIGHT */,
119
- "text-gray-white hover:text-supportive-pastel": theme === THEME.photography && style === 1 /* DARK */,
120
- "text-supportive-faded hover:text-supportive-pastel": theme === THEME.photography && style === 0 /* BRAND */
121
- },
122
- // transparent theme
123
- {
124
- "text-gray-800 hover:text-gray-black": theme === THEME.transparent && style === 2 /* LIGHT */,
125
- "text-gray-white hover:text-gray-200": theme === THEME.transparent && style !== 2 /* LIGHT */
126
- }
127
- ];
128
- };
129
- var TextButton = ({
130
- text,
131
- leftIconComponent,
132
- rightIconComponent,
133
- size = 0 /* S */,
134
- theme = THEME.normal,
135
- style = 1 /* DARK */,
136
- active = false,
137
- disabled = false,
138
- loading = false,
139
- className = ""
140
- }) => {
141
- const TextJSX = react.useMemo(
142
- () => size === 0 /* S */ ? /* @__PURE__ */ jsxRuntime.jsx(P2, { text, weight: P2.Weight.bold }) : /* @__PURE__ */ jsxRuntime.jsx(P1, { text, weight: P1.Weight.bold }),
143
- [size, text]
144
- );
145
- const themeClass = react.useMemo(() => {
146
- const themeFunc = disabled ? getDisabledContainerTheme : active ? getActiveContainerTheme : getContainerTheme;
147
- return themeFunc(theme, style);
148
- }, [disabled, active, theme, style]);
149
- return /* @__PURE__ */ jsxRuntime.jsx(
150
- "div",
151
- {
152
- className: clsx2__default.default(
153
- "flex items-center",
154
- {
155
- "cursor-default": disabled,
156
- "cursor-pointer": !disabled
157
- },
158
- themeClass,
159
- className
160
- ),
161
- children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative flex justify-center items-center", children: [
162
- /* @__PURE__ */ jsxRuntime.jsxs(
163
- "div",
164
- {
165
- className: clsx2__default.default("flex justify-center items-center", {
166
- "opacity-0": loading,
167
- "opacity-100": !loading
168
- }),
169
- children: [
170
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center mr-[4px]", children: leftIconComponent }),
171
- TextJSX,
172
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center ml-[4px]", children: rightIconComponent })
173
- ]
174
- }
175
- ),
176
- /* @__PURE__ */ jsxRuntime.jsx(
177
- "span",
178
- {
179
- className: clsx2__default.default(
180
- "inline-block absolute box-border animation-spin",
181
- "border-2 border-solid border-gray-400 border-t-gray-600 rounded-[50%]",
182
- {
183
- "size-[18px]": size === 0 /* S */,
184
- "size-[24px]": size === 1 /* L */
185
- },
186
- {
187
- "opacity-0": !loading,
188
- "opacity-100": loading
189
- }
190
- )
191
- }
192
- )
193
- ] })
194
- }
195
- );
196
- };
197
- TextButton.Size = Size;
198
- TextButton.Style = Style;
199
- TextButton.THEME = THEME;
200
- var text_button_default = TextButton;
201
-
202
- // src/button/index.ts
203
- var button_default = { TextButton: text_button_default };
204
-
205
- exports.TextButton = text_button_default;
206
- exports.default = button_default;
207
- //# sourceMappingURL=index.js.map
208
- //# sourceMappingURL=index.js.map
2
+ require('../constants-BmxSMOOn.js');
3
+ require('../constants-K2ObjToq.js');
4
+ require('../paragraph-CJvb0_cM.js');
5
+ require('../theme-DDBlIbeS.js');
6
+ const require_button = require('../button-CO0UXA6C.js');
7
+
8
+ exports.IconButton = require_button.icon_button_default;
9
+ exports.MenuButton = require_button.menu_button_default;
10
+ exports.PillButton = require_button.pill_button_default;
11
+ exports.TextButton = require_button.text_button_default;
12
+ exports.default = require_button.button_default;
@@ -1,9 +1,7 @@
1
- export { button_default as default } from '../chunk-ELECTE3D.mjs';
2
- export { text_button_default as TextButton } from '../chunk-U22UKMAJ.mjs';
3
- import '../chunk-FVKIUNIP.mjs';
4
- import '../chunk-HQG6Q2EY.mjs';
5
- import '../chunk-UM7RNC2Y.mjs';
6
- import '../chunk-JB4TYHDE.mjs';
7
- import '../chunk-URJXIWFX.mjs';
8
- //# sourceMappingURL=index.mjs.map
9
- //# sourceMappingURL=index.mjs.map
1
+ import "../constants-oTHAnh6r.mjs";
2
+ import "../constants-BWFuBApI.mjs";
3
+ import "../paragraph-BWXQNQtX.mjs";
4
+ import "../theme-BG6yZVj-.mjs";
5
+ import { button_default, icon_button_default, menu_button_default, pill_button_default, text_button_default } from "../button-DL6w1ghn.mjs";
6
+
7
+ export { icon_button_default as IconButton, menu_button_default as MenuButton, pill_button_default as PillButton, text_button_default as TextButton, button_default as default };