@twreporter/react-typescript-components 0.1.0-beta.10

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 (240) hide show
  1. package/README.md +74 -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 +160 -0
  7. package/lib/button/index.d.ts +160 -0
  8. package/lib/button/index.js +13 -0
  9. package/lib/button/index.mjs +7 -0
  10. package/lib/button-DFLYlJJW.js +630 -0
  11. package/lib/button-DFLYlJJW.js.map +1 -0
  12. package/lib/button-DyUYGG90.mjs +591 -0
  13. package/lib/button-DyUYGG90.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-BswaTS-y.d.mts +29 -0
  48. package/lib/constants-Bz-ufaJ2.js +39 -0
  49. package/lib/constants-Bz-ufaJ2.js.map +1 -0
  50. package/lib/constants-CEyUZ-jZ.d.mts +11 -0
  51. package/lib/constants-CMMcn0f-.d.ts +11 -0
  52. package/lib/constants-CQscYQcW.mjs +25 -0
  53. package/lib/constants-CQscYQcW.mjs.map +1 -0
  54. package/lib/constants-DF_II8Fz.js +43 -0
  55. package/lib/constants-DF_II8Fz.js.map +1 -0
  56. package/lib/constants-DNr36wyK.d.mts +24 -0
  57. package/lib/constants-DQxcqnYL.d.ts +29 -0
  58. package/lib/constants-DRyQ6AuU.js +15 -0
  59. package/lib/constants-DRyQ6AuU.js.map +1 -0
  60. package/lib/constants-K2ObjToq.js +26 -0
  61. package/lib/constants-K2ObjToq.js.map +1 -0
  62. package/lib/constants-OhAETTiQ.d.mts +17 -0
  63. package/lib/constants-QF71lY6v.mjs +34 -0
  64. package/lib/constants-QF71lY6v.mjs.map +1 -0
  65. package/lib/constants-gCmka4Fp.d.ts +22 -0
  66. package/lib/constants-jYAxSTFp.d.mts +22 -0
  67. package/lib/constants-oTHAnh6r.mjs +18 -0
  68. package/lib/constants-oTHAnh6r.mjs.map +1 -0
  69. package/lib/constants-t0lkfgqP.mjs +9 -0
  70. package/lib/constants-t0lkfgqP.mjs.map +1 -0
  71. package/lib/context-BCesW3fW.mjs +24 -0
  72. package/lib/context-BCesW3fW.mjs.map +1 -0
  73. package/lib/context-Bvr0Qj2x.js +37 -0
  74. package/lib/context-Bvr0Qj2x.js.map +1 -0
  75. package/lib/customized-link/external-link.d.mts +3 -0
  76. package/lib/customized-link/external-link.d.ts +3 -0
  77. package/lib/customized-link/external-link.js +3 -0
  78. package/lib/customized-link/external-link.mjs +3 -0
  79. package/lib/customized-link/index.d.mts +13 -0
  80. package/lib/customized-link/index.d.ts +13 -0
  81. package/lib/customized-link/index.js +8 -0
  82. package/lib/customized-link/index.mjs +5 -0
  83. package/lib/customized-link/internal-link.d.mts +3 -0
  84. package/lib/customized-link/internal-link.d.ts +3 -0
  85. package/lib/customized-link/internal-link.js +6 -0
  86. package/lib/customized-link/internal-link.mjs +6 -0
  87. package/lib/customized-link/type.d.mts +2 -0
  88. package/lib/customized-link/type.d.ts +2 -0
  89. package/lib/customized-link/type.js +0 -0
  90. package/lib/customized-link/type.mjs +1 -0
  91. package/lib/customized-link-BkuKVCKQ.mjs +12 -0
  92. package/lib/customized-link-BkuKVCKQ.mjs.map +1 -0
  93. package/lib/customized-link-CK7Xlgdt.js +17 -0
  94. package/lib/customized-link-CK7Xlgdt.js.map +1 -0
  95. package/lib/divider/constants.d.mts +3 -0
  96. package/lib/divider/constants.d.ts +3 -0
  97. package/lib/divider/constants.js +3 -0
  98. package/lib/divider/constants.mjs +3 -0
  99. package/lib/divider/index.d.mts +15 -0
  100. package/lib/divider/index.d.ts +15 -0
  101. package/lib/divider/index.js +6 -0
  102. package/lib/divider/index.mjs +4 -0
  103. package/lib/divider-Bb3tebJO.mjs +15 -0
  104. package/lib/divider-Bb3tebJO.mjs.map +1 -0
  105. package/lib/divider-b3Shh7FV.js +29 -0
  106. package/lib/divider-b3Shh7FV.js.map +1 -0
  107. package/lib/dropdown-menu/index.d.mts +17 -0
  108. package/lib/dropdown-menu/index.d.ts +17 -0
  109. package/lib/dropdown-menu/index.js +14 -0
  110. package/lib/dropdown-menu/index.mjs +14 -0
  111. package/lib/dropdown-menu-CCtPuYyJ.js +150 -0
  112. package/lib/dropdown-menu-CCtPuYyJ.js.map +1 -0
  113. package/lib/dropdown-menu-Cil4RtSK.mjs +117 -0
  114. package/lib/dropdown-menu-Cil4RtSK.mjs.map +1 -0
  115. package/lib/external-link-2XoC1_oL.d.ts +9 -0
  116. package/lib/external-link-BUhvS4ry.d.mts +9 -0
  117. package/lib/external-link-CEDvlQYo.js +23 -0
  118. package/lib/external-link-CEDvlQYo.js.map +1 -0
  119. package/lib/external-link-Cx9S31Ye.mjs +16 -0
  120. package/lib/external-link-Cx9S31Ye.mjs.map +1 -0
  121. package/lib/external-links-2b4M_rcA.mjs +17 -0
  122. package/lib/external-links-2b4M_rcA.mjs.map +1 -0
  123. package/lib/external-links-SfJjb48j.js +23 -0
  124. package/lib/external-links-SfJjb48j.js.map +1 -0
  125. package/lib/hamburger-menu/index.d.mts +7 -0
  126. package/lib/hamburger-menu/index.d.ts +6 -0
  127. package/lib/hamburger-menu/index.js +22 -0
  128. package/lib/hamburger-menu/index.mjs +22 -0
  129. package/lib/hamburger-menu-BZ1hA7l5.mjs +472 -0
  130. package/lib/hamburger-menu-BZ1hA7l5.mjs.map +1 -0
  131. package/lib/hamburger-menu-Bd_wmcAB.js +487 -0
  132. package/lib/hamburger-menu-Bd_wmcAB.js.map +1 -0
  133. package/lib/header/index.d.mts +26 -0
  134. package/lib/header/index.d.ts +25 -0
  135. package/lib/header/index.js +465 -0
  136. package/lib/header/index.js.map +1 -0
  137. package/lib/header/index.mjs +459 -0
  138. package/lib/header/index.mjs.map +1 -0
  139. package/lib/heading-CFSkTbdH.mjs +37 -0
  140. package/lib/heading-CFSkTbdH.mjs.map +1 -0
  141. package/lib/heading-DFzj2z0V.js +75 -0
  142. package/lib/heading-DFzj2z0V.js.map +1 -0
  143. package/lib/icons/constants.d.mts +3 -0
  144. package/lib/icons/constants.d.ts +3 -0
  145. package/lib/icons/constants.js +5 -0
  146. package/lib/icons/constants.mjs +3 -0
  147. package/lib/icons/index.d.mts +43 -0
  148. package/lib/icons/index.d.ts +43 -0
  149. package/lib/icons/index.js +15 -0
  150. package/lib/icons/index.mjs +5 -0
  151. package/lib/icons-DF-7dKxN.js +128 -0
  152. package/lib/icons-DF-7dKxN.js.map +1 -0
  153. package/lib/icons-DguoV48M.mjs +60 -0
  154. package/lib/icons-DguoV48M.mjs.map +1 -0
  155. package/lib/index-BmIgLA0K.d.mts +5 -0
  156. package/lib/index-H3peA2d_.d.ts +5 -0
  157. package/lib/internal-link-CqTu3Yi5.js +2278 -0
  158. package/lib/internal-link-CqTu3Yi5.js.map +1 -0
  159. package/lib/internal-link-D8jJal8P.d.mts +9 -0
  160. package/lib/internal-link-DCSEl1jM.d.ts +9 -0
  161. package/lib/internal-link-NQb751uB.mjs +2299 -0
  162. package/lib/internal-link-NQb751uB.mjs.map +1 -0
  163. package/lib/internal-links-BF-974mA.mjs +52 -0
  164. package/lib/internal-links-BF-974mA.mjs.map +1 -0
  165. package/lib/internal-links-CBkMU8cY.js +58 -0
  166. package/lib/internal-links-CBkMU8cY.js.map +1 -0
  167. package/lib/logo/constants.d.mts +3 -0
  168. package/lib/logo/constants.d.ts +3 -0
  169. package/lib/logo/constants.js +5 -0
  170. package/lib/logo/constants.mjs +3 -0
  171. package/lib/logo/index.d.mts +42 -0
  172. package/lib/logo/index.d.ts +42 -0
  173. package/lib/logo/index.js +8 -0
  174. package/lib/logo/index.mjs +5 -0
  175. package/lib/logo-CC5oU9Qb.mjs +64 -0
  176. package/lib/logo-CC5oU9Qb.mjs.map +1 -0
  177. package/lib/logo-D4M-1sGD.js +83 -0
  178. package/lib/logo-D4M-1sGD.js.map +1 -0
  179. package/lib/paragraph-BWXQNQtX.mjs +30 -0
  180. package/lib/paragraph-BWXQNQtX.mjs.map +1 -0
  181. package/lib/paragraph-CJvb0_cM.js +56 -0
  182. package/lib/paragraph-CJvb0_cM.js.map +1 -0
  183. package/lib/release-branch-CRZV4Ivz.js +18 -0
  184. package/lib/release-branch-CRZV4Ivz.js.map +1 -0
  185. package/lib/release-branch-CsBbhuYE.d.ts +14 -0
  186. package/lib/release-branch-DNCD1uH_.mjs +12 -0
  187. package/lib/release-branch-DNCD1uH_.mjs.map +1 -0
  188. package/lib/release-branch-DZwlCiWD.d.mts +14 -0
  189. package/lib/styles.css +1599 -0
  190. package/lib/tab-bar/constants.d.mts +16 -0
  191. package/lib/tab-bar/constants.d.ts +16 -0
  192. package/lib/tab-bar/constants.js +7 -0
  193. package/lib/tab-bar/constants.mjs +7 -0
  194. package/lib/tab-bar/index.d.mts +10 -0
  195. package/lib/tab-bar/index.d.ts +9 -0
  196. package/lib/tab-bar/index.js +18 -0
  197. package/lib/tab-bar/index.mjs +18 -0
  198. package/lib/tab-bar/theme.d.mts +10 -0
  199. package/lib/tab-bar/theme.d.ts +10 -0
  200. package/lib/tab-bar/theme.js +4 -0
  201. package/lib/tab-bar/theme.mjs +4 -0
  202. package/lib/tab-bar-CBL2tDXk.mjs +62 -0
  203. package/lib/tab-bar-CBL2tDXk.mjs.map +1 -0
  204. package/lib/tab-bar-ZRrpziiN.js +78 -0
  205. package/lib/tab-bar-ZRrpziiN.js.map +1 -0
  206. package/lib/text/constants.d.mts +3 -0
  207. package/lib/text/constants.d.ts +3 -0
  208. package/lib/text/constants.js +4 -0
  209. package/lib/text/constants.mjs +3 -0
  210. package/lib/text/heading.d.mts +31 -0
  211. package/lib/text/heading.d.ts +31 -0
  212. package/lib/text/heading.js +9 -0
  213. package/lib/text/heading.mjs +4 -0
  214. package/lib/text/paragraph.d.mts +25 -0
  215. package/lib/text/paragraph.d.ts +25 -0
  216. package/lib/text/paragraph.js +7 -0
  217. package/lib/text/paragraph.mjs +4 -0
  218. package/lib/theme-BDGfJ8n-.d.ts +13 -0
  219. package/lib/theme-BErS2Qs6.mjs +13 -0
  220. package/lib/theme-BErS2Qs6.mjs.map +1 -0
  221. package/lib/theme-BG6yZVj-.mjs +11 -0
  222. package/lib/theme-BG6yZVj-.mjs.map +1 -0
  223. package/lib/theme-BPB1kPtQ.js +18 -0
  224. package/lib/theme-BPB1kPtQ.js.map +1 -0
  225. package/lib/theme-ClamfAy8.d.mts +13 -0
  226. package/lib/theme-DDBlIbeS.js +17 -0
  227. package/lib/theme-DDBlIbeS.js.map +1 -0
  228. package/lib/title-bar/index.d.mts +58 -0
  229. package/lib/title-bar/index.d.ts +58 -0
  230. package/lib/title-bar/index.js +153 -0
  231. package/lib/title-bar/index.js.map +1 -0
  232. package/lib/title-bar/index.mjs +145 -0
  233. package/lib/title-bar/index.mjs.map +1 -0
  234. package/lib/type-C4hJK9H9.d.ts +11 -0
  235. package/lib/type-FR-fOZvz.d.mts +11 -0
  236. package/lib/types/index.d.mts +2 -0
  237. package/lib/types/index.d.ts +2 -0
  238. package/lib/types/index.js +0 -0
  239. package/lib/types/index.mjs +1 -0
  240. package/package.json +53 -0
@@ -0,0 +1,17 @@
1
+ import { ValuesOf } from "./index-H3peA2d_.js";
2
+
3
+ //#region src/text/constants.d.ts
4
+ declare const TYPE: {
5
+ readonly default: "default";
6
+ readonly article: "article";
7
+ };
8
+ type Type = ValuesOf<typeof TYPE>;
9
+ declare const WEIGHT: {
10
+ readonly extraLight: "extra-light";
11
+ readonly normal: "normal";
12
+ readonly bold: "bold";
13
+ };
14
+ type Weight = ValuesOf<typeof WEIGHT>;
15
+ //#endregion
16
+ export { TYPE, Type, WEIGHT, Weight };
17
+ //# sourceMappingURL=constants-BS3rPbaX.d.ts.map
@@ -0,0 +1,14 @@
1
+ //#region src/text/constants.ts
2
+ const TYPE = {
3
+ default: "default",
4
+ article: "article"
5
+ };
6
+ const WEIGHT = {
7
+ extraLight: "extra-light",
8
+ normal: "normal",
9
+ bold: "bold"
10
+ };
11
+
12
+ //#endregion
13
+ export { TYPE, WEIGHT };
14
+ //# sourceMappingURL=constants-BWFuBApI.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants-BWFuBApI.mjs","names":[],"sources":["../src/text/constants.ts"],"sourcesContent":["import type { ValuesOf } from '../types'\n\nexport const TYPE = {\n default: 'default',\n article: 'article',\n} as const\n\nexport type Type = ValuesOf<typeof TYPE>\n\nexport const WEIGHT = {\n extraLight: 'extra-light',\n normal: 'normal',\n bold: 'bold',\n} as const\n\nexport type Weight = ValuesOf<typeof WEIGHT>\n"],"mappings":";AAEA,MAAa,OAAO;CAClB,SAAS;CACT,SAAS;CACV;AAID,MAAa,SAAS;CACpB,YAAY;CACZ,QAAQ;CACR,MAAM;CACP"}
@@ -0,0 +1,24 @@
1
+ import { ValuesOf } from "./index-H3peA2d_.js";
2
+
3
+ //#region src/logo/constants.d.ts
4
+ declare const LOGO: {
5
+ readonly header: "header";
6
+ readonly footer: "footer";
7
+ readonly symbol: "symbol";
8
+ readonly 'loading-fallback': "loading-fallback";
9
+ };
10
+ type Logo = ValuesOf<typeof LOGO>;
11
+ declare const LOGO_TYPE: {
12
+ readonly default: "default";
13
+ readonly white: "white";
14
+ };
15
+ type LogoType = ValuesOf<typeof LOGO_TYPE>;
16
+ declare const LOGO_SYMBOL_TYPE: {
17
+ readonly default: "default";
18
+ readonly white: "white";
19
+ readonly black: "black";
20
+ };
21
+ type LogoSymbolType = ValuesOf<typeof LOGO_SYMBOL_TYPE>;
22
+ //#endregion
23
+ export { LOGO, LOGO_SYMBOL_TYPE, LOGO_TYPE, Logo, LogoSymbolType, LogoType };
24
+ //# sourceMappingURL=constants-B_NgWFML.d.ts.map
@@ -0,0 +1,36 @@
1
+
2
+ //#region src/button/constants.ts
3
+ const SIZE = {
4
+ s: "s",
5
+ l: "l"
6
+ };
7
+ const STYLE = {
8
+ brand: "brand",
9
+ dark: "dark",
10
+ light: "light"
11
+ };
12
+ const TYPE = {
13
+ primary: "primary",
14
+ secondary: "secondary"
15
+ };
16
+
17
+ //#endregion
18
+ Object.defineProperty(exports, 'SIZE', {
19
+ enumerable: true,
20
+ get: function () {
21
+ return SIZE;
22
+ }
23
+ });
24
+ Object.defineProperty(exports, 'STYLE', {
25
+ enumerable: true,
26
+ get: function () {
27
+ return STYLE;
28
+ }
29
+ });
30
+ Object.defineProperty(exports, 'TYPE', {
31
+ enumerable: true,
32
+ get: function () {
33
+ return TYPE;
34
+ }
35
+ });
36
+ //# sourceMappingURL=constants-BmxSMOOn.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants-BmxSMOOn.js","names":[],"sources":["../src/button/constants.ts"],"sourcesContent":["import type { ValuesOf } from '../types'\n\nexport const SIZE = {\n s: 's',\n l: 'l',\n} as const\n\nexport type Size = ValuesOf<typeof SIZE>\n\nexport const STYLE = {\n brand: 'brand',\n dark: 'dark',\n light: 'light',\n} as const\n\nexport type Style = ValuesOf<typeof STYLE>\n\nexport const TYPE = {\n primary: 'primary',\n secondary: 'secondary',\n} as const\n\nexport type Type = ValuesOf<typeof TYPE>\n"],"mappings":";;AAEA,MAAa,OAAO;CAClB,GAAG;CACH,GAAG;CACJ;AAID,MAAa,QAAQ;CACnB,OAAO;CACP,MAAM;CACN,OAAO;CACR;AAID,MAAa,OAAO;CAClB,SAAS;CACT,WAAW;CACZ"}
@@ -0,0 +1,20 @@
1
+ //#region src/logo/constants.ts
2
+ const LOGO = {
3
+ header: "header",
4
+ footer: "footer",
5
+ symbol: "symbol",
6
+ "loading-fallback": "loading-fallback"
7
+ };
8
+ const LOGO_TYPE = {
9
+ default: "default",
10
+ white: "white"
11
+ };
12
+ const LOGO_SYMBOL_TYPE = {
13
+ default: "default",
14
+ white: "white",
15
+ black: "black"
16
+ };
17
+
18
+ //#endregion
19
+ export { LOGO, LOGO_SYMBOL_TYPE, LOGO_TYPE };
20
+ //# sourceMappingURL=constants-BqeEbkVD.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants-BqeEbkVD.mjs","names":[],"sources":["../src/logo/constants.ts"],"sourcesContent":["import type { ValuesOf } from '../types'\n\nexport const LOGO = {\n header: 'header',\n footer: 'footer',\n symbol: 'symbol',\n 'loading-fallback': 'loading-fallback',\n} as const\n\nexport type Logo = ValuesOf<typeof LOGO>\n\nexport const LOGO_TYPE = {\n default: 'default',\n white: 'white',\n} as const\n\nexport type LogoType = ValuesOf<typeof LOGO_TYPE>\n\nexport const LOGO_SYMBOL_TYPE = {\n default: 'default',\n white: 'white',\n black: 'black',\n} as const\n\nexport type LogoSymbolType = ValuesOf<typeof LOGO_SYMBOL_TYPE>\n"],"mappings":";AAEA,MAAa,OAAO;CAClB,QAAQ;CACR,QAAQ;CACR,QAAQ;CACR,oBAAoB;CACrB;AAID,MAAa,YAAY;CACvB,SAAS;CACT,OAAO;CACR;AAID,MAAa,mBAAmB;CAC9B,SAAS;CACT,OAAO;CACP,OAAO;CACR"}
@@ -0,0 +1,29 @@
1
+ import { ValuesOf } from "./index-BmIgLA0K.mjs";
2
+
3
+ //#region src/icons/constants.d.ts
4
+ declare const ICON_TYPE: {
5
+ readonly mask: "mask";
6
+ readonly raw: "raw";
7
+ };
8
+ type IconType = ValuesOf<typeof ICON_TYPE>;
9
+ declare const ARROW_DIRECTION: {
10
+ readonly right: "right";
11
+ readonly left: "left";
12
+ readonly up: "up";
13
+ readonly down: "down";
14
+ };
15
+ type ArrowDirection = ValuesOf<typeof ARROW_DIRECTION>;
16
+ declare const MEDIA_TYPE: {
17
+ readonly facebook: "facebook";
18
+ readonly instagram: "instagram";
19
+ readonly medium: "medium";
20
+ readonly twitter: "twitter";
21
+ readonly youtube: "youtube";
22
+ readonly line: "line";
23
+ readonly google: "google";
24
+ readonly plurk: "plurk";
25
+ };
26
+ type MediaType = ValuesOf<typeof MEDIA_TYPE>;
27
+ //#endregion
28
+ export { ARROW_DIRECTION, ArrowDirection, ICON_TYPE, IconType, MEDIA_TYPE, MediaType };
29
+ //# sourceMappingURL=constants-BswaTS-y.d.mts.map
@@ -0,0 +1,39 @@
1
+ const require_internal_links = require('./internal-links-CBkMU8cY.js');
2
+ const require_icons = require('./icons-DF-7dKxN.js');
3
+
4
+ //#region src/tab-bar/constants.ts
5
+ const TabBarItems = (releaseBranch) => [
6
+ {
7
+ text: "首頁",
8
+ link: require_internal_links.INTERNAL_LINKS.home,
9
+ target: "_self",
10
+ icon: require_icons.Home(releaseBranch)
11
+ },
12
+ {
13
+ text: "最新",
14
+ link: require_internal_links.INTERNAL_LINKS.latest,
15
+ target: "_self",
16
+ icon: require_icons.Clock(releaseBranch)
17
+ },
18
+ {
19
+ text: "深度專題",
20
+ link: require_internal_links.INTERNAL_LINKS.topics,
21
+ target: "_self",
22
+ icon: require_icons.Topic(releaseBranch)
23
+ },
24
+ {
25
+ text: "我的閱讀",
26
+ link: require_internal_links.INTERNAL_LINKS.myReading.index,
27
+ target: "_self",
28
+ icon: require_icons.KidStar(releaseBranch)
29
+ }
30
+ ];
31
+
32
+ //#endregion
33
+ Object.defineProperty(exports, 'TabBarItems', {
34
+ enumerable: true,
35
+ get: function () {
36
+ return TabBarItems;
37
+ }
38
+ });
39
+ //# sourceMappingURL=constants-Bz-ufaJ2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants-Bz-ufaJ2.js","names":["TabBarItems: (releaseBranch: ReleaseBranch) => TabBarItem[]","INTERNAL_LINKS","Home","Clock","Topic","KidStar"],"sources":["../src/tab-bar/constants.ts"],"sourcesContent":["import type { ReactElement } from 'react'\nimport { INTERNAL_LINKS } from '../constants/internal-links'\nimport type { LinkTarget } from '../customized-link/type'\n// icons\nimport { Home, Clock, Topic, KidStar } from '../icons'\n// release branch\nimport type { ReleaseBranch } from '../constants/release-branch'\n\ntype TabBarItem = {\n text: string\n link: string\n target: LinkTarget\n icon: ReactElement\n}\nexport const TabBarItems: (releaseBranch: ReleaseBranch) => TabBarItem[] = (\n releaseBranch\n) => [\n {\n text: '首頁',\n link: INTERNAL_LINKS.home,\n target: '_self',\n icon: Home(releaseBranch),\n },\n {\n text: '最新',\n link: INTERNAL_LINKS.latest,\n target: '_self',\n icon: Clock(releaseBranch),\n },\n {\n text: '深度專題',\n link: INTERNAL_LINKS.topics,\n target: '_self',\n icon: Topic(releaseBranch),\n },\n {\n text: '我的閱讀',\n link: INTERNAL_LINKS.myReading.index,\n target: '_self',\n icon: KidStar(releaseBranch),\n },\n]\n"],"mappings":";;;;AAcA,MAAaA,eACX,kBACG;CACH;EACE,MAAM;EACN,MAAMC,sCAAe;EACrB,QAAQ;EACR,MAAMC,mBAAK,cAAc;EAC1B;CACD;EACE,MAAM;EACN,MAAMD,sCAAe;EACrB,QAAQ;EACR,MAAME,oBAAM,cAAc;EAC3B;CACD;EACE,MAAM;EACN,MAAMF,sCAAe;EACrB,QAAQ;EACR,MAAMG,oBAAM,cAAc;EAC3B;CACD;EACE,MAAM;EACN,MAAMH,sCAAe,UAAU;EAC/B,QAAQ;EACR,MAAMI,sBAAQ,cAAc;EAC7B;CACF"}
@@ -0,0 +1,11 @@
1
+ import { ValuesOf } from "./index-BmIgLA0K.mjs";
2
+
3
+ //#region src/divider/constants.d.ts
4
+ declare const DIRECTION: {
5
+ readonly horizontal: "horizontal";
6
+ readonly vertical: "vertical";
7
+ };
8
+ type Direction = ValuesOf<typeof DIRECTION>;
9
+ //#endregion
10
+ export { DIRECTION, Direction };
11
+ //# sourceMappingURL=constants-CEyUZ-jZ.d.mts.map
@@ -0,0 +1,11 @@
1
+ import { ValuesOf } from "./index-H3peA2d_.js";
2
+
3
+ //#region src/divider/constants.d.ts
4
+ declare const DIRECTION: {
5
+ readonly horizontal: "horizontal";
6
+ readonly vertical: "vertical";
7
+ };
8
+ type Direction = ValuesOf<typeof DIRECTION>;
9
+ //#endregion
10
+ export { DIRECTION, Direction };
11
+ //# sourceMappingURL=constants-CMMcn0f-.d.ts.map
@@ -0,0 +1,25 @@
1
+ //#region src/icons/constants.ts
2
+ const ICON_TYPE = {
3
+ mask: "mask",
4
+ raw: "raw"
5
+ };
6
+ const ARROW_DIRECTION = {
7
+ right: "right",
8
+ left: "left",
9
+ up: "up",
10
+ down: "down"
11
+ };
12
+ const MEDIA_TYPE = {
13
+ facebook: "facebook",
14
+ instagram: "instagram",
15
+ medium: "medium",
16
+ twitter: "twitter",
17
+ youtube: "youtube",
18
+ line: "line",
19
+ google: "google",
20
+ plurk: "plurk"
21
+ };
22
+
23
+ //#endregion
24
+ export { ARROW_DIRECTION, ICON_TYPE, MEDIA_TYPE };
25
+ //# sourceMappingURL=constants-CQscYQcW.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants-CQscYQcW.mjs","names":[],"sources":["../src/icons/constants.ts"],"sourcesContent":["import type { ValuesOf } from '../types'\n\nexport const ICON_TYPE = {\n mask: 'mask',\n raw: 'raw',\n} as const\n\nexport type IconType = ValuesOf<typeof ICON_TYPE>\n\nexport const ARROW_DIRECTION = {\n right: 'right',\n left: 'left',\n up: 'up',\n down: 'down',\n} as const\n\nexport type ArrowDirection = ValuesOf<typeof ARROW_DIRECTION>\n\nexport const MEDIA_TYPE = {\n facebook: 'facebook',\n instagram: 'instagram',\n medium: 'medium',\n twitter: 'twitter',\n youtube: 'youtube',\n line: 'line',\n google: 'google',\n plurk: 'plurk',\n} as const\n\nexport type MediaType = ValuesOf<typeof MEDIA_TYPE>\n"],"mappings":";AAEA,MAAa,YAAY;CACvB,MAAM;CACN,KAAK;CACN;AAID,MAAa,kBAAkB;CAC7B,OAAO;CACP,MAAM;CACN,IAAI;CACJ,MAAM;CACP;AAID,MAAa,aAAa;CACxB,UAAU;CACV,WAAW;CACX,QAAQ;CACR,SAAS;CACT,SAAS;CACT,MAAM;CACN,QAAQ;CACR,OAAO;CACR"}
@@ -0,0 +1,43 @@
1
+
2
+ //#region src/icons/constants.ts
3
+ const ICON_TYPE = {
4
+ mask: "mask",
5
+ raw: "raw"
6
+ };
7
+ const ARROW_DIRECTION = {
8
+ right: "right",
9
+ left: "left",
10
+ up: "up",
11
+ down: "down"
12
+ };
13
+ const MEDIA_TYPE = {
14
+ facebook: "facebook",
15
+ instagram: "instagram",
16
+ medium: "medium",
17
+ twitter: "twitter",
18
+ youtube: "youtube",
19
+ line: "line",
20
+ google: "google",
21
+ plurk: "plurk"
22
+ };
23
+
24
+ //#endregion
25
+ Object.defineProperty(exports, 'ARROW_DIRECTION', {
26
+ enumerable: true,
27
+ get: function () {
28
+ return ARROW_DIRECTION;
29
+ }
30
+ });
31
+ Object.defineProperty(exports, 'ICON_TYPE', {
32
+ enumerable: true,
33
+ get: function () {
34
+ return ICON_TYPE;
35
+ }
36
+ });
37
+ Object.defineProperty(exports, 'MEDIA_TYPE', {
38
+ enumerable: true,
39
+ get: function () {
40
+ return MEDIA_TYPE;
41
+ }
42
+ });
43
+ //# sourceMappingURL=constants-DF_II8Fz.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants-DF_II8Fz.js","names":[],"sources":["../src/icons/constants.ts"],"sourcesContent":["import type { ValuesOf } from '../types'\n\nexport const ICON_TYPE = {\n mask: 'mask',\n raw: 'raw',\n} as const\n\nexport type IconType = ValuesOf<typeof ICON_TYPE>\n\nexport const ARROW_DIRECTION = {\n right: 'right',\n left: 'left',\n up: 'up',\n down: 'down',\n} as const\n\nexport type ArrowDirection = ValuesOf<typeof ARROW_DIRECTION>\n\nexport const MEDIA_TYPE = {\n facebook: 'facebook',\n instagram: 'instagram',\n medium: 'medium',\n twitter: 'twitter',\n youtube: 'youtube',\n line: 'line',\n google: 'google',\n plurk: 'plurk',\n} as const\n\nexport type MediaType = ValuesOf<typeof MEDIA_TYPE>\n"],"mappings":";;AAEA,MAAa,YAAY;CACvB,MAAM;CACN,KAAK;CACN;AAID,MAAa,kBAAkB;CAC7B,OAAO;CACP,MAAM;CACN,IAAI;CACJ,MAAM;CACP;AAID,MAAa,aAAa;CACxB,UAAU;CACV,WAAW;CACX,QAAQ;CACR,SAAS;CACT,SAAS;CACT,MAAM;CACN,QAAQ;CACR,OAAO;CACR"}
@@ -0,0 +1,24 @@
1
+ import { ValuesOf } from "./index-BmIgLA0K.mjs";
2
+
3
+ //#region src/logo/constants.d.ts
4
+ declare const LOGO: {
5
+ readonly header: "header";
6
+ readonly footer: "footer";
7
+ readonly symbol: "symbol";
8
+ readonly 'loading-fallback': "loading-fallback";
9
+ };
10
+ type Logo = ValuesOf<typeof LOGO>;
11
+ declare const LOGO_TYPE: {
12
+ readonly default: "default";
13
+ readonly white: "white";
14
+ };
15
+ type LogoType = ValuesOf<typeof LOGO_TYPE>;
16
+ declare const LOGO_SYMBOL_TYPE: {
17
+ readonly default: "default";
18
+ readonly white: "white";
19
+ readonly black: "black";
20
+ };
21
+ type LogoSymbolType = ValuesOf<typeof LOGO_SYMBOL_TYPE>;
22
+ //#endregion
23
+ export { LOGO, LOGO_SYMBOL_TYPE, LOGO_TYPE, Logo, LogoSymbolType, LogoType };
24
+ //# sourceMappingURL=constants-DNr36wyK.d.mts.map
@@ -0,0 +1,29 @@
1
+ import { ValuesOf } from "./index-H3peA2d_.js";
2
+
3
+ //#region src/icons/constants.d.ts
4
+ declare const ICON_TYPE: {
5
+ readonly mask: "mask";
6
+ readonly raw: "raw";
7
+ };
8
+ type IconType = ValuesOf<typeof ICON_TYPE>;
9
+ declare const ARROW_DIRECTION: {
10
+ readonly right: "right";
11
+ readonly left: "left";
12
+ readonly up: "up";
13
+ readonly down: "down";
14
+ };
15
+ type ArrowDirection = ValuesOf<typeof ARROW_DIRECTION>;
16
+ declare const MEDIA_TYPE: {
17
+ readonly facebook: "facebook";
18
+ readonly instagram: "instagram";
19
+ readonly medium: "medium";
20
+ readonly twitter: "twitter";
21
+ readonly youtube: "youtube";
22
+ readonly line: "line";
23
+ readonly google: "google";
24
+ readonly plurk: "plurk";
25
+ };
26
+ type MediaType = ValuesOf<typeof MEDIA_TYPE>;
27
+ //#endregion
28
+ export { ARROW_DIRECTION, ArrowDirection, ICON_TYPE, IconType, MEDIA_TYPE, MediaType };
29
+ //# sourceMappingURL=constants-DQxcqnYL.d.ts.map
@@ -0,0 +1,15 @@
1
+
2
+ //#region src/divider/constants.ts
3
+ const DIRECTION = {
4
+ horizontal: "horizontal",
5
+ vertical: "vertical"
6
+ };
7
+
8
+ //#endregion
9
+ Object.defineProperty(exports, 'DIRECTION', {
10
+ enumerable: true,
11
+ get: function () {
12
+ return DIRECTION;
13
+ }
14
+ });
15
+ //# sourceMappingURL=constants-DRyQ6AuU.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants-DRyQ6AuU.js","names":[],"sources":["../src/divider/constants.ts"],"sourcesContent":["import type { ValuesOf } from '../types'\n\nexport const DIRECTION = {\n horizontal: 'horizontal',\n vertical: 'vertical',\n} as const\n\nexport type Direction = ValuesOf<typeof DIRECTION>\n"],"mappings":";;AAEA,MAAa,YAAY;CACvB,YAAY;CACZ,UAAU;CACX"}
@@ -0,0 +1,26 @@
1
+
2
+ //#region src/text/constants.ts
3
+ const TYPE = {
4
+ default: "default",
5
+ article: "article"
6
+ };
7
+ const WEIGHT = {
8
+ extraLight: "extra-light",
9
+ normal: "normal",
10
+ bold: "bold"
11
+ };
12
+
13
+ //#endregion
14
+ Object.defineProperty(exports, 'TYPE', {
15
+ enumerable: true,
16
+ get: function () {
17
+ return TYPE;
18
+ }
19
+ });
20
+ Object.defineProperty(exports, 'WEIGHT', {
21
+ enumerable: true,
22
+ get: function () {
23
+ return WEIGHT;
24
+ }
25
+ });
26
+ //# sourceMappingURL=constants-K2ObjToq.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants-K2ObjToq.js","names":[],"sources":["../src/text/constants.ts"],"sourcesContent":["import type { ValuesOf } from '../types'\n\nexport const TYPE = {\n default: 'default',\n article: 'article',\n} as const\n\nexport type Type = ValuesOf<typeof TYPE>\n\nexport const WEIGHT = {\n extraLight: 'extra-light',\n normal: 'normal',\n bold: 'bold',\n} as const\n\nexport type Weight = ValuesOf<typeof WEIGHT>\n"],"mappings":";;AAEA,MAAa,OAAO;CAClB,SAAS;CACT,SAAS;CACV;AAID,MAAa,SAAS;CACpB,YAAY;CACZ,QAAQ;CACR,MAAM;CACP"}
@@ -0,0 +1,17 @@
1
+ import { ValuesOf } from "./index-BmIgLA0K.mjs";
2
+
3
+ //#region src/text/constants.d.ts
4
+ declare const TYPE: {
5
+ readonly default: "default";
6
+ readonly article: "article";
7
+ };
8
+ type Type = ValuesOf<typeof TYPE>;
9
+ declare const WEIGHT: {
10
+ readonly extraLight: "extra-light";
11
+ readonly normal: "normal";
12
+ readonly bold: "bold";
13
+ };
14
+ type Weight = ValuesOf<typeof WEIGHT>;
15
+ //#endregion
16
+ export { TYPE, Type, WEIGHT, Weight };
17
+ //# sourceMappingURL=constants-OhAETTiQ.d.mts.map
@@ -0,0 +1,34 @@
1
+ import { INTERNAL_LINKS } from "./internal-links-BF-974mA.mjs";
2
+ import { Clock, Home, KidStar, Topic } from "./icons-DguoV48M.mjs";
3
+
4
+ //#region src/tab-bar/constants.ts
5
+ const TabBarItems = (releaseBranch) => [
6
+ {
7
+ text: "首頁",
8
+ link: INTERNAL_LINKS.home,
9
+ target: "_self",
10
+ icon: Home(releaseBranch)
11
+ },
12
+ {
13
+ text: "最新",
14
+ link: INTERNAL_LINKS.latest,
15
+ target: "_self",
16
+ icon: Clock(releaseBranch)
17
+ },
18
+ {
19
+ text: "深度專題",
20
+ link: INTERNAL_LINKS.topics,
21
+ target: "_self",
22
+ icon: Topic(releaseBranch)
23
+ },
24
+ {
25
+ text: "我的閱讀",
26
+ link: INTERNAL_LINKS.myReading.index,
27
+ target: "_self",
28
+ icon: KidStar(releaseBranch)
29
+ }
30
+ ];
31
+
32
+ //#endregion
33
+ export { TabBarItems };
34
+ //# sourceMappingURL=constants-QF71lY6v.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants-QF71lY6v.mjs","names":["TabBarItems: (releaseBranch: ReleaseBranch) => TabBarItem[]"],"sources":["../src/tab-bar/constants.ts"],"sourcesContent":["import type { ReactElement } from 'react'\nimport { INTERNAL_LINKS } from '../constants/internal-links'\nimport type { LinkTarget } from '../customized-link/type'\n// icons\nimport { Home, Clock, Topic, KidStar } from '../icons'\n// release branch\nimport type { ReleaseBranch } from '../constants/release-branch'\n\ntype TabBarItem = {\n text: string\n link: string\n target: LinkTarget\n icon: ReactElement\n}\nexport const TabBarItems: (releaseBranch: ReleaseBranch) => TabBarItem[] = (\n releaseBranch\n) => [\n {\n text: '首頁',\n link: INTERNAL_LINKS.home,\n target: '_self',\n icon: Home(releaseBranch),\n },\n {\n text: '最新',\n link: INTERNAL_LINKS.latest,\n target: '_self',\n icon: Clock(releaseBranch),\n },\n {\n text: '深度專題',\n link: INTERNAL_LINKS.topics,\n target: '_self',\n icon: Topic(releaseBranch),\n },\n {\n text: '我的閱讀',\n link: INTERNAL_LINKS.myReading.index,\n target: '_self',\n icon: KidStar(releaseBranch),\n },\n]\n"],"mappings":";;;;AAcA,MAAaA,eACX,kBACG;CACH;EACE,MAAM;EACN,MAAM,eAAe;EACrB,QAAQ;EACR,MAAM,KAAK,cAAc;EAC1B;CACD;EACE,MAAM;EACN,MAAM,eAAe;EACrB,QAAQ;EACR,MAAM,MAAM,cAAc;EAC3B;CACD;EACE,MAAM;EACN,MAAM,eAAe;EACrB,QAAQ;EACR,MAAM,MAAM,cAAc;EAC3B;CACD;EACE,MAAM;EACN,MAAM,eAAe,UAAU;EAC/B,QAAQ;EACR,MAAM,QAAQ,cAAc;EAC7B;CACF"}
@@ -0,0 +1,22 @@
1
+ import { ValuesOf } from "./index-H3peA2d_.js";
2
+
3
+ //#region src/button/constants.d.ts
4
+ declare const SIZE: {
5
+ readonly s: "s";
6
+ readonly l: "l";
7
+ };
8
+ type Size = ValuesOf<typeof SIZE>;
9
+ declare const STYLE: {
10
+ readonly brand: "brand";
11
+ readonly dark: "dark";
12
+ readonly light: "light";
13
+ };
14
+ type Style = ValuesOf<typeof STYLE>;
15
+ declare const TYPE: {
16
+ readonly primary: "primary";
17
+ readonly secondary: "secondary";
18
+ };
19
+ type Type = ValuesOf<typeof TYPE>;
20
+ //#endregion
21
+ export { SIZE, STYLE, Size, Style, TYPE, Type };
22
+ //# sourceMappingURL=constants-gCmka4Fp.d.ts.map
@@ -0,0 +1,22 @@
1
+ import { ValuesOf } from "./index-BmIgLA0K.mjs";
2
+
3
+ //#region src/button/constants.d.ts
4
+ declare const SIZE: {
5
+ readonly s: "s";
6
+ readonly l: "l";
7
+ };
8
+ type Size = ValuesOf<typeof SIZE>;
9
+ declare const STYLE: {
10
+ readonly brand: "brand";
11
+ readonly dark: "dark";
12
+ readonly light: "light";
13
+ };
14
+ type Style = ValuesOf<typeof STYLE>;
15
+ declare const TYPE: {
16
+ readonly primary: "primary";
17
+ readonly secondary: "secondary";
18
+ };
19
+ type Type = ValuesOf<typeof TYPE>;
20
+ //#endregion
21
+ export { SIZE, STYLE, Size, Style, TYPE, Type };
22
+ //# sourceMappingURL=constants-jYAxSTFp.d.mts.map
@@ -0,0 +1,18 @@
1
+ //#region src/button/constants.ts
2
+ const SIZE = {
3
+ s: "s",
4
+ l: "l"
5
+ };
6
+ const STYLE = {
7
+ brand: "brand",
8
+ dark: "dark",
9
+ light: "light"
10
+ };
11
+ const TYPE = {
12
+ primary: "primary",
13
+ secondary: "secondary"
14
+ };
15
+
16
+ //#endregion
17
+ export { SIZE, STYLE, TYPE };
18
+ //# sourceMappingURL=constants-oTHAnh6r.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants-oTHAnh6r.mjs","names":[],"sources":["../src/button/constants.ts"],"sourcesContent":["import type { ValuesOf } from '../types'\n\nexport const SIZE = {\n s: 's',\n l: 'l',\n} as const\n\nexport type Size = ValuesOf<typeof SIZE>\n\nexport const STYLE = {\n brand: 'brand',\n dark: 'dark',\n light: 'light',\n} as const\n\nexport type Style = ValuesOf<typeof STYLE>\n\nexport const TYPE = {\n primary: 'primary',\n secondary: 'secondary',\n} as const\n\nexport type Type = ValuesOf<typeof TYPE>\n"],"mappings":";AAEA,MAAa,OAAO;CAClB,GAAG;CACH,GAAG;CACJ;AAID,MAAa,QAAQ;CACnB,OAAO;CACP,MAAM;CACN,OAAO;CACR;AAID,MAAa,OAAO;CAClB,SAAS;CACT,WAAW;CACZ"}
@@ -0,0 +1,9 @@
1
+ //#region src/divider/constants.ts
2
+ const DIRECTION = {
3
+ horizontal: "horizontal",
4
+ vertical: "vertical"
5
+ };
6
+
7
+ //#endregion
8
+ export { DIRECTION };
9
+ //# sourceMappingURL=constants-t0lkfgqP.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants-t0lkfgqP.mjs","names":[],"sources":["../src/divider/constants.ts"],"sourcesContent":["import type { ValuesOf } from '../types'\n\nexport const DIRECTION = {\n horizontal: 'horizontal',\n vertical: 'vertical',\n} as const\n\nexport type Direction = ValuesOf<typeof DIRECTION>\n"],"mappings":";AAEA,MAAa,YAAY;CACvB,YAAY;CACZ,UAAU;CACX"}
@@ -0,0 +1,24 @@
1
+ import { THEME } from "./theme-BG6yZVj-.mjs";
2
+ import { RELEASE_BRANCH } from "./release-branch-DNCD1uH_.mjs";
3
+ import { createContext } from "react";
4
+
5
+ //#region src/header/context/index.ts
6
+ const HeaderContext = createContext({
7
+ theme: THEME.normal,
8
+ releaseBranch: RELEASE_BRANCH.master,
9
+ isLinkExternal: false,
10
+ isAuthed: false,
11
+ pathname: "",
12
+ referrerPath: "",
13
+ toUseNarrow: false,
14
+ hideHeader: false
15
+ });
16
+ const HamburgerContext = createContext({
17
+ toggleHamburger: () => {},
18
+ closeHamburgerMenu: () => {},
19
+ isHamburgerMenuOpen: false
20
+ });
21
+
22
+ //#endregion
23
+ export { HamburgerContext, HeaderContext };
24
+ //# sourceMappingURL=context-BCesW3fW.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context-BCesW3fW.mjs","names":[],"sources":["../src/header/context/index.ts"],"sourcesContent":["import { createContext } from 'react'\n\nimport { THEME, type Theme } from '../../constants/theme'\nimport {\n RELEASE_BRANCH,\n type ReleaseBranch,\n} from '../../constants/release-branch'\n\nexport type HeaderContextType = {\n theme: Theme\n releaseBranch: ReleaseBranch\n isLinkExternal: boolean\n isAuthed: boolean\n pathname: string\n referrerPath: string\n toUseNarrow: boolean\n hideHeader: boolean\n}\nexport const HeaderContext = createContext<HeaderContextType>({\n theme: THEME.normal,\n releaseBranch: RELEASE_BRANCH.master,\n isLinkExternal: false,\n isAuthed: false,\n pathname: '',\n referrerPath: '',\n toUseNarrow: false,\n hideHeader: false,\n})\n\nexport type HamburgerContextType = {\n toggleHamburger: () => void\n closeHamburgerMenu: () => void\n isHamburgerMenuOpen: boolean\n}\nexport const HamburgerContext = createContext<HamburgerContextType>({\n toggleHamburger: () => {},\n closeHamburgerMenu: () => {},\n isHamburgerMenuOpen: false,\n})\n"],"mappings":";;;;;AAkBA,MAAa,gBAAgB,cAAiC;CAC5D,OAAO,MAAM;CACb,eAAe,eAAe;CAC9B,gBAAgB;CAChB,UAAU;CACV,UAAU;CACV,cAAc;CACd,aAAa;CACb,YAAY;CACb,CAAC;AAOF,MAAa,mBAAmB,cAAoC;CAClE,uBAAuB;CACvB,0BAA0B;CAC1B,qBAAqB;CACtB,CAAC"}
@@ -0,0 +1,37 @@
1
+ const require_chunk = require('./chunk-BxBTb9qk.js');
2
+ const require_theme = require('./theme-DDBlIbeS.js');
3
+ const require_release_branch = require('./release-branch-CRZV4Ivz.js');
4
+ let react = require("react");
5
+ react = require_chunk.__toESM(react);
6
+
7
+ //#region src/header/context/index.ts
8
+ const HeaderContext = (0, react.createContext)({
9
+ theme: require_theme.THEME.normal,
10
+ releaseBranch: require_release_branch.RELEASE_BRANCH.master,
11
+ isLinkExternal: false,
12
+ isAuthed: false,
13
+ pathname: "",
14
+ referrerPath: "",
15
+ toUseNarrow: false,
16
+ hideHeader: false
17
+ });
18
+ const HamburgerContext = (0, react.createContext)({
19
+ toggleHamburger: () => {},
20
+ closeHamburgerMenu: () => {},
21
+ isHamburgerMenuOpen: false
22
+ });
23
+
24
+ //#endregion
25
+ Object.defineProperty(exports, 'HamburgerContext', {
26
+ enumerable: true,
27
+ get: function () {
28
+ return HamburgerContext;
29
+ }
30
+ });
31
+ Object.defineProperty(exports, 'HeaderContext', {
32
+ enumerable: true,
33
+ get: function () {
34
+ return HeaderContext;
35
+ }
36
+ });
37
+ //# sourceMappingURL=context-Bvr0Qj2x.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context-Bvr0Qj2x.js","names":["THEME","RELEASE_BRANCH"],"sources":["../src/header/context/index.ts"],"sourcesContent":["import { createContext } from 'react'\n\nimport { THEME, type Theme } from '../../constants/theme'\nimport {\n RELEASE_BRANCH,\n type ReleaseBranch,\n} from '../../constants/release-branch'\n\nexport type HeaderContextType = {\n theme: Theme\n releaseBranch: ReleaseBranch\n isLinkExternal: boolean\n isAuthed: boolean\n pathname: string\n referrerPath: string\n toUseNarrow: boolean\n hideHeader: boolean\n}\nexport const HeaderContext = createContext<HeaderContextType>({\n theme: THEME.normal,\n releaseBranch: RELEASE_BRANCH.master,\n isLinkExternal: false,\n isAuthed: false,\n pathname: '',\n referrerPath: '',\n toUseNarrow: false,\n hideHeader: false,\n})\n\nexport type HamburgerContextType = {\n toggleHamburger: () => void\n closeHamburgerMenu: () => void\n isHamburgerMenuOpen: boolean\n}\nexport const HamburgerContext = createContext<HamburgerContextType>({\n toggleHamburger: () => {},\n closeHamburgerMenu: () => {},\n isHamburgerMenuOpen: false,\n})\n"],"mappings":";;;;;;;AAkBA,MAAa,yCAAiD;CAC5D,OAAOA,oBAAM;CACb,eAAeC,sCAAe;CAC9B,gBAAgB;CAChB,UAAU;CACV,UAAU;CACV,cAAc;CACd,aAAa;CACb,YAAY;CACb,CAAC;AAOF,MAAa,4CAAuD;CAClE,uBAAuB;CACvB,0BAA0B;CAC1B,qBAAqB;CACtB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import "../type-FR-fOZvz.mjs";
2
+ import { ExternalLink } from "../external-link-BUhvS4ry.mjs";
3
+ export { ExternalLink as default };
@@ -0,0 +1,3 @@
1
+ import "../type-C4hJK9H9.js";
2
+ import { ExternalLink } from "../external-link-2XoC1_oL.js";
3
+ export = ExternalLink;
@@ -0,0 +1,3 @@
1
+ const require_external_link = require('../external-link-CEDvlQYo.js');
2
+
3
+ module.exports = require_external_link.external_link_default;