@twreporter/react-typescript-components 0.1.0-beta.19 → 0.1.0-beta.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/button/constants.d.mts +2 -2
- package/lib/button/index.d.mts +12 -12
- package/lib/constants/release-branch.d.mts +2 -2
- package/lib/constants/theme.d.mts +2 -2
- package/lib/{constants-BZGBDC2T.mjs → constants-B8QkNSRh.mjs} +2 -2
- package/lib/{constants-BZGBDC2T.mjs.map → constants-B8QkNSRh.mjs.map} +1 -1
- package/lib/{constants-COhDITk3.d.ts → constants-CBjyeHSl.d.ts} +1 -1
- package/lib/{constants-BV86fOLv.js → constants-CUzusjTU.js} +2 -2
- package/lib/{constants-BV86fOLv.js.map → constants-CUzusjTU.js.map} +1 -1
- package/lib/{constants-DZWOFPZT.d.mts → constants-C_OX3J7_.d.mts} +2 -2
- package/lib/{constants-C86Q6QlO.d.ts → constants-CzHmv07x.d.ts} +1 -1
- package/lib/{constants-DRxdMM_X.mjs → constants-DKqcALfv.mjs} +1 -1
- package/lib/{constants-DRxdMM_X.mjs.map → constants-DKqcALfv.mjs.map} +1 -1
- package/lib/{constants-B95_A0GY.d.mts → constants-DVYCKpJ0.d.mts} +2 -2
- package/lib/{constants-B5th6nHM.d.mts → constants-MpdMPjnk.d.mts} +2 -2
- package/lib/{constants-5phfWHvb.mjs → constants-Npoq7yu0.mjs} +1 -1
- package/lib/{constants-5phfWHvb.mjs.map → constants-Npoq7yu0.mjs.map} +1 -1
- package/lib/{constants-D8wNUvoZ.js → constants-R6EfY15A.js} +1 -1
- package/lib/{constants-D8wNUvoZ.js.map → constants-R6EfY15A.js.map} +1 -1
- package/lib/{constants-D2OTwBsV.d.mts → constants-ZGhPn0d6.d.mts} +2 -2
- package/lib/{constants-IzZ4bWWt.d.mts → constants-oNjXcfW2.d.mts} +2 -2
- package/lib/{constants-C2moxnps.js → constants-pqSeExjX.js} +1 -1
- package/lib/{constants-C2moxnps.js.map → constants-pqSeExjX.js.map} +1 -1
- package/lib/{context-BgdqM3zA.mjs → context-C9AuSZIE.mjs} +1 -1
- package/lib/{context-BgdqM3zA.mjs.map → context-C9AuSZIE.mjs.map} +1 -1
- package/lib/{context-I1lTR5SO.js → context-vBt5fnU9.js} +1 -1
- package/lib/{context-I1lTR5SO.js.map → context-vBt5fnU9.js.map} +1 -1
- package/lib/customized-link/external-link.d.mts +2 -2
- package/lib/customized-link/external-link.d.ts +2 -2
- package/lib/customized-link/external-link.js +1 -1
- package/lib/customized-link/external-link.mjs +1 -1
- package/lib/customized-link/index.d.mts +6 -6
- package/lib/customized-link/index.d.ts +3 -3
- package/lib/customized-link/index.js +2 -2
- package/lib/customized-link/index.mjs +2 -2
- package/lib/customized-link/internal-link.d.mts +2 -2
- package/lib/customized-link/internal-link.d.ts +2 -2
- package/lib/customized-link/type.d.mts +1 -1
- package/lib/customized-link/type.d.ts +1 -1
- package/lib/{customized-link-CHH91yod.js → customized-link-BDKQVdcH.js} +2 -2
- package/lib/{customized-link-CHH91yod.js.map → customized-link-BDKQVdcH.js.map} +1 -1
- package/lib/{customized-link-BacydHK_.mjs → customized-link-D3p9rjEe.mjs} +2 -2
- package/lib/{customized-link-BacydHK_.mjs.map → customized-link-D3p9rjEe.mjs.map} +1 -1
- package/lib/divider/constants.d.mts +2 -2
- package/lib/divider/index.d.mts +2 -2
- package/lib/dropdown-menu/index.d.mts +1 -1
- package/lib/dropdown-menu/index.d.ts +1 -1
- package/lib/dropdown-menu/index.js +7 -7
- package/lib/dropdown-menu/index.mjs +7 -7
- package/lib/{dropdown-menu-D4XjLl7G.js → dropdown-menu-CTUg6MST.js} +5 -5
- package/lib/{dropdown-menu-D4XjLl7G.js.map → dropdown-menu-CTUg6MST.js.map} +1 -1
- package/lib/{dropdown-menu-jbg-kt3s.mjs → dropdown-menu-MOuxtoud.mjs} +5 -5
- package/lib/{dropdown-menu-jbg-kt3s.mjs.map → dropdown-menu-MOuxtoud.mjs.map} +1 -1
- package/lib/{external-link-Diro-q37.mjs → external-link-BMIFL3DE.mjs} +3 -2
- package/lib/external-link-BMIFL3DE.mjs.map +1 -0
- package/lib/{external-link-B3tELAVU.d.ts → external-link-BMxYePU7.d.ts} +2 -2
- package/lib/{external-link-afU9uFB6.js → external-link-Ce1_loKh.js} +3 -2
- package/lib/external-link-Ce1_loKh.js.map +1 -0
- package/lib/{external-link-0t606cM_.d.mts → external-link-CvvjuS1W.d.mts} +2 -2
- package/lib/footer/index.d.mts +8 -2
- package/lib/footer/index.d.ts +6 -0
- package/lib/footer/index.js +20 -16
- package/lib/footer/index.js.map +1 -1
- package/lib/footer/index.mjs +20 -16
- package/lib/footer/index.mjs.map +1 -1
- package/lib/footer/links.d.mts +11 -6
- package/lib/footer/links.d.ts +13 -8
- package/lib/footer/links.js +7 -9
- package/lib/footer/links.mjs +6 -8
- package/lib/footer/logo.d.mts +2 -2
- package/lib/footer/logo.js +5 -5
- package/lib/footer/logo.mjs +5 -5
- package/lib/footer/types.d.mts +4 -0
- package/lib/footer/types.d.ts +4 -0
- package/lib/footer/types.js +0 -0
- package/lib/footer/types.mjs +1 -0
- package/lib/hamburger-menu/index.js +11 -11
- package/lib/hamburger-menu/index.mjs +11 -11
- package/lib/{hamburger-menu-MQgF0vLX.mjs → hamburger-menu-B-n_-t91.mjs} +8 -8
- package/lib/{hamburger-menu-MQgF0vLX.mjs.map → hamburger-menu-B-n_-t91.mjs.map} +1 -1
- package/lib/{hamburger-menu-baCi46g2.js → hamburger-menu-CYiCx5_x.js} +8 -8
- package/lib/{hamburger-menu-baCi46g2.js.map → hamburger-menu-CYiCx5_x.js.map} +1 -1
- package/lib/header/index.d.mts +3 -3
- package/lib/header/index.js +18 -18
- package/lib/header/index.mjs +16 -16
- package/lib/{heading-Cljxy-62.mjs → heading-CCsID-nv.mjs} +1 -1
- package/lib/{heading-Cljxy-62.mjs.map → heading-CCsID-nv.mjs.map} +1 -1
- package/lib/{heading-Dnpw_s7U.js → heading-D7slLGoI.js} +1 -1
- package/lib/{heading-Dnpw_s7U.js.map → heading-D7slLGoI.js.map} +1 -1
- package/lib/hooks/index.d.mts +3 -3
- package/lib/hooks/index.d.ts +1 -1
- package/lib/hooks/index.js +2 -2
- package/lib/hooks/index.mjs +2 -2
- package/lib/hooks/use-outside-click.d.mts +1 -1
- package/lib/hooks/use-outside-click.d.ts +1 -1
- package/lib/hooks/use-outside-click.js +1 -1
- package/lib/hooks/use-outside-click.mjs +1 -1
- package/lib/{hooks-BxlKOoQu.js → hooks-CYgvBAmt.js} +2 -2
- package/lib/{hooks-BxlKOoQu.js.map → hooks-CYgvBAmt.js.map} +1 -1
- package/lib/{hooks-DmImq-Z7.mjs → hooks-CcqXFDPN.mjs} +2 -2
- package/lib/{hooks-DmImq-Z7.mjs.map → hooks-CcqXFDPN.mjs.map} +1 -1
- package/lib/icons/constants.d.mts +2 -2
- package/lib/icons/constants.d.ts +1 -1
- package/lib/icons/constants.js +1 -1
- package/lib/icons/constants.mjs +1 -1
- package/lib/icons/index.d.mts +3 -3
- package/lib/icons/index.d.ts +10 -10
- package/lib/icons/index.js +2 -2
- package/lib/icons/index.mjs +2 -2
- package/lib/{icons-qP5oNB0W.js → icons-BZI6_5JJ.js} +2 -2
- package/lib/{icons-qP5oNB0W.js.map → icons-BZI6_5JJ.js.map} +1 -1
- package/lib/{icons-I7T-auOQ.mjs → icons-C5UqghX2.mjs} +2 -2
- package/lib/{icons-I7T-auOQ.mjs.map → icons-C5UqghX2.mjs.map} +1 -1
- package/lib/{index-DegwO8ei.d.mts → index-CUE6zs36.d.mts} +1 -1
- package/lib/input/constants.d.mts +1 -1
- package/lib/input/index.d.mts +5 -5
- package/lib/input/index.js +4 -4
- package/lib/input/index.mjs +4 -4
- package/lib/input/theme.d.mts +2 -2
- package/lib/input/theme.js +1 -1
- package/lib/input/theme.mjs +1 -1
- package/lib/{input-DvriSZ9o.mjs → input-BJWcutA3.mjs} +3 -3
- package/lib/{input-DvriSZ9o.mjs.map → input-BJWcutA3.mjs.map} +1 -1
- package/lib/{input-DaMbsNrg.js → input-e0a-Wul_.js} +3 -3
- package/lib/{input-DaMbsNrg.js.map → input-e0a-Wul_.js.map} +1 -1
- package/lib/{internal-link-DtMsmfE9.d.ts → internal-link-BL950cs3.d.ts} +2 -2
- package/lib/{internal-link-Daag4Lrv.d.mts → internal-link-DgOMen4w.d.mts} +2 -2
- package/lib/{links-DO97xw7S.mjs → links-CFjOQl4o.mjs} +12 -15
- package/lib/links-CFjOQl4o.mjs.map +1 -0
- package/lib/{links-Xuo8pb4a.js → links-DMd-CuUJ.js} +17 -20
- package/lib/links-DMd-CuUJ.js.map +1 -0
- package/lib/logo/constants.d.mts +2 -2
- package/lib/logo/constants.d.ts +1 -1
- package/lib/logo/constants.js +1 -1
- package/lib/logo/constants.mjs +1 -1
- package/lib/logo/index.d.mts +10 -10
- package/lib/logo/index.d.ts +1 -1
- package/lib/logo/index.js +2 -2
- package/lib/logo/index.mjs +2 -2
- package/lib/{logo-B3GSkN1O.js → logo-B35M1BaX.js} +2 -2
- package/lib/{logo-B3GSkN1O.js.map → logo-B35M1BaX.js.map} +1 -1
- package/lib/{logo-C5NgKyYa.js → logo-CeaVUbIW.js} +2 -2
- package/lib/{logo-C5NgKyYa.js.map → logo-CeaVUbIW.js.map} +1 -1
- package/lib/{logo-NfYCtrtN.mjs → logo-DkEpjnPV.mjs} +2 -2
- package/lib/{logo-NfYCtrtN.mjs.map → logo-DkEpjnPV.mjs.map} +1 -1
- package/lib/{logo-CumKSrK5.mjs → logo-lPQ3Apwn.mjs} +2 -2
- package/lib/{logo-CumKSrK5.mjs.map → logo-lPQ3Apwn.mjs.map} +1 -1
- package/lib/{release-branch-CaxOk9Rq.d.mts → release-branch-uF0B5lcE.d.mts} +2 -2
- package/lib/tab-bar/constants.d.mts +3 -3
- package/lib/tab-bar/constants.d.ts +1 -1
- package/lib/tab-bar/constants.js +3 -3
- package/lib/tab-bar/constants.mjs +3 -3
- package/lib/tab-bar/index.js +8 -8
- package/lib/tab-bar/index.mjs +8 -8
- package/lib/tab-bar/theme.d.mts +2 -2
- package/lib/tab-bar/theme.js +1 -1
- package/lib/tab-bar/theme.mjs +1 -1
- package/lib/{tab-bar-CQjgjdkW.mjs → tab-bar-C_FxNWkG.mjs} +6 -6
- package/lib/{tab-bar-CQjgjdkW.mjs.map → tab-bar-C_FxNWkG.mjs.map} +1 -1
- package/lib/{tab-bar-Dq0ewfWA.js → tab-bar-USs-mSXE.js} +6 -6
- package/lib/{tab-bar-Dq0ewfWA.js.map → tab-bar-USs-mSXE.js.map} +1 -1
- package/lib/text/constants.d.mts +2 -2
- package/lib/text/heading.d.mts +2 -2
- package/lib/text/heading.js +1 -1
- package/lib/text/heading.mjs +1 -1
- package/lib/text/paragraph.d.mts +2 -2
- package/lib/{theme-BQQzAfHb.js → theme-B9k1Udon.js} +1 -1
- package/lib/{theme-BQQzAfHb.js.map → theme-B9k1Udon.js.map} +1 -1
- package/lib/{theme-LkZX5giH.js → theme-BLdi7Moc.js} +1 -1
- package/lib/{theme-LkZX5giH.js.map → theme-BLdi7Moc.js.map} +1 -1
- package/lib/{theme-CDCgzSJw.mjs → theme-Cf9NG_eL.mjs} +1 -1
- package/lib/{theme-CDCgzSJw.mjs.map → theme-Cf9NG_eL.mjs.map} +1 -1
- package/lib/{theme-Cx5oFufE.d.mts → theme-DKi2E2si.d.mts} +2 -2
- package/lib/{theme-D_LHh2_S.mjs → theme-DURvzYaJ.mjs} +1 -1
- package/lib/{theme-D_LHh2_S.mjs.map → theme-DURvzYaJ.mjs.map} +1 -1
- package/lib/title-bar/index.d.mts +4 -4
- package/lib/title-bar/index.js +3 -3
- package/lib/title-bar/index.mjs +3 -3
- package/lib/{type-ubTUOk6A.d.ts → type-Bsf9A8YX.d.mts} +2 -1
- package/lib/{type-DGvbr3Rm.d.mts → type-CcygKers.d.ts} +2 -1
- package/lib/types/index.d.mts +1 -1
- package/lib/types-dW_WJa4D.d.ts +15 -0
- package/lib/types-p8V2pbqn.d.mts +15 -0
- package/lib/{use-outside-click-CHxRFaTZ.d.ts → use-outside-click-BA-T3hJc.d.ts} +1 -1
- package/lib/{use-outside-click-Br_ste4n.mjs → use-outside-click-BfAURk-E.mjs} +1 -1
- package/lib/{use-outside-click-Br_ste4n.mjs.map → use-outside-click-BfAURk-E.mjs.map} +1 -1
- package/lib/{use-outside-click-Cl1QlhTH.js → use-outside-click-DnJ0DNZ9.js} +1 -1
- package/lib/{use-outside-click-Cl1QlhTH.js.map → use-outside-click-DnJ0DNZ9.js.map} +1 -1
- package/lib/use-outside-click-E-9eTkfz.d.mts +7 -0
- package/package.json +6 -3
- package/lib/constants-0fgvpoyZ.js +0 -171
- package/lib/constants-0fgvpoyZ.js.map +0 -1
- package/lib/constants-DyO2QpJk.mjs +0 -154
- package/lib/constants-DyO2QpJk.mjs.map +0 -1
- package/lib/external-link-Diro-q37.mjs.map +0 -1
- package/lib/external-link-afU9uFB6.js.map +0 -1
- package/lib/footer/constants.d.mts +0 -51
- package/lib/footer/constants.d.ts +0 -51
- package/lib/footer/constants.js +0 -7
- package/lib/footer/constants.mjs +0 -5
- package/lib/links-DO97xw7S.mjs.map +0 -1
- package/lib/links-Xuo8pb4a.js.map +0 -1
- package/lib/use-outside-click-Diz2B7wx.d.mts +0 -7
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { internal_link_default } from "./internal-link-DCXJvzgx.mjs";
|
|
2
2
|
import { P1, P2 } from "./paragraph-Cf9jr8RF.mjs";
|
|
3
3
|
import { THEME } from "./theme-BG6yZVj-.mjs";
|
|
4
|
-
import { external_link_default } from "./external-link-
|
|
5
|
-
import {
|
|
6
|
-
import { Arrow } from "./icons-
|
|
7
|
-
import {
|
|
4
|
+
import { external_link_default } from "./external-link-BMIFL3DE.mjs";
|
|
5
|
+
import { LOGO_SYMBOL_TYPE } from "./constants-DKqcALfv.mjs";
|
|
6
|
+
import { Arrow } from "./icons-C5UqghX2.mjs";
|
|
7
|
+
import { HeaderContext } from "./context-C9AuSZIE.mjs";
|
|
8
8
|
import { useContext } from "react";
|
|
9
9
|
import clsx from "clsx";
|
|
10
10
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -114,4 +114,4 @@ const DropdownMenu = ({ text = "", isActive = false, dropdownItems = [] }) => {
|
|
|
114
114
|
|
|
115
115
|
//#endregion
|
|
116
116
|
export { DropdownMenu, selectHamburgerFooterTheme, selectHamburgerItemTheme, selectHamburgerMenuTheme, selectLogoType };
|
|
117
|
-
//# sourceMappingURL=dropdown-menu-
|
|
117
|
+
//# sourceMappingURL=dropdown-menu-MOuxtoud.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dropdown-menu-
|
|
1
|
+
{"version":3,"file":"dropdown-menu-MOuxtoud.mjs","names":["DropdownMenuItem: FC<{\n label: string\n}>","DropdownMenu: FC<DropdownMenuProps>","ExternalLink","InternalLink","DropdownMenuItem"],"sources":["../src/hamburger-menu/utils/theme.ts","../src/dropdown-menu/dropdown-menu-item/index.tsx","../src/dropdown-menu/index.tsx"],"sourcesContent":["import { THEME, type Theme } from '../../constants/theme'\n// logo\nimport { LOGO_SYMBOL_TYPE } from '../../logo/constants'\n\nexport const selectHamburgerMenuTheme = (theme: Theme) => {\n switch (theme) {\n case THEME.photography:\n return {\n bgColor: 'bg-photo-dark',\n scrollBarColor: '[&::-webkit-scrollbar-thumb]:bg-opacity-white-08',\n }\n default:\n return {\n bgColor: 'bg-gray-white',\n scrollBarColor: '[&::-webkit-scrollbar-thumb]:bg-opacity-black-02',\n }\n }\n}\n\nexport const selectLogoType = (theme: Theme) => {\n switch (theme) {\n case THEME.photography:\n case THEME.transparent:\n return LOGO_SYMBOL_TYPE.white\n default:\n return LOGO_SYMBOL_TYPE.default\n }\n}\n\nexport const selectHamburgerItemTheme = (theme: Theme, active = false) => {\n switch (theme) {\n case THEME.photography:\n return {\n color: active ? 'text-supportive-pastel' : 'text-gray-white',\n svgBgColor: active\n ? '[&>svg]:bg-supportive-pastel'\n : '[&>svg]:bg-gray-white',\n hoverBgColor: 'hover:bg-opacity-white-02',\n activeBgColor: 'active:bg-opacity-white-05',\n }\n default:\n return {\n color: active ? 'text-brand-heavy' : 'text-gray-800',\n svgBgColor: active ? '[&>svg]:bg-brand-heavy' : '[&>svg]:bg-gray-800',\n hoverBgColor: 'hover:bg-gray-100',\n activeBgColor: 'active:bg-gray-200',\n }\n }\n}\n\nexport const selectHamburgerFooterTheme = (theme: Theme) => {\n switch (theme) {\n case THEME.photography:\n return {\n color: 'text-gray-400',\n hoverColor: 'hover:text-gray-400',\n hoverBgColor: 'hover:bg-opacity-white-02',\n svgHoverBgColor: 'hover:[&>svg]:bg-gray-400',\n svgBgColor: '[&>svg]:bg-gray-400',\n activeColor: 'active:text-gray-400',\n activeBgColor: 'active:bg-opacity-white-05',\n svgActiveBgColor: 'active:[&>svg]:bg-gray-400',\n }\n default:\n return {\n color: 'text-gray-600',\n hoverColor: 'hover:text-gray-800',\n hoverBgColor: 'hover:bg-gray-100',\n svgHoverBgColor: 'hover:[&>svg]:bg-gray-800',\n svgBgColor: '[&>svg]:bg-gray-600',\n activeColor: 'active:text-gray-800',\n activeBgColor: 'active:bg-gray-200',\n svgActiveBgColor: 'active:[&>svg]:bg-gray-800',\n }\n }\n}\n","import { useContext, type FC } from 'react'\nimport clsx from 'clsx'\n// context\nimport { HeaderContext } from '../../header/context'\n// theme\nimport { selectHamburgerItemTheme } from '../../hamburger-menu/utils/theme'\n// text\nimport { P2 } from '../../text/paragraph'\nconst DropdownMenuItem: FC<{\n label: string\n}> = ({ label }) => {\n const { theme } = useContext(HeaderContext)\n const { color, hoverBgColor, activeBgColor } = selectHamburgerItemTheme(theme)\n return (\n <div\n className={clsx(\n 'py-[8px] pl-[48px] pr-[32px] cursor-pointer',\n color,\n hoverBgColor,\n activeBgColor\n )}\n >\n <P2 text={label} weight={P2.Weight.bold} />\n </div>\n )\n}\n\nexport default DropdownMenuItem\n","import { useContext, type FC } from 'react'\nimport clsx from 'clsx'\n// context\nimport { HeaderContext } from '../header/context'\n// text\nimport { P1 } from '../text/paragraph'\n// icons\nimport { Arrow } from '../icons'\n// theme\nimport { selectHamburgerItemTheme } from '../hamburger-menu/utils/theme'\n// components\nimport DropdownMenuItem from './dropdown-menu-item'\n// link\nimport { ExternalLink, InternalLink } from '../customized-link'\nimport type { LinkTarget } from '../customized-link/type'\n\ntype DropdownMenuProps = {\n text?: string\n isActive?: boolean\n dropdownItems: { label: string; to: string; target: LinkTarget }[]\n}\nconst DropdownMenu: FC<DropdownMenuProps> = ({\n text = '',\n isActive = false,\n dropdownItems = [],\n}) => {\n const { theme, releaseBranch, isLinkExternal } = useContext(HeaderContext)\n const { color, svgBgColor, hoverBgColor, activeBgColor } =\n selectHamburgerItemTheme(theme, isActive)\n const LinkComponent = isLinkExternal ? ExternalLink : InternalLink\n return (\n <>\n <div\n className={clsx(\n 'flex items-center justify-between cursor-pointer py-[8px] px-[32px]',\n '[&>svg]:transition-all [&>svg]:duration-300',\n svgBgColor,\n color,\n hoverBgColor,\n isActive ? `[&>svg]:-rotate-[180deg]` : '[&>svg]:rotate-[0deg]',\n isActive ? activeBgColor : ''\n )}\n >\n <P1 text={text} weight={P1.Weight.bold} />\n <Arrow direction=\"down\" releaseBranch={releaseBranch} />\n </div>\n <div\n className={clsx(\n 'overflow-hidden transition-all duration-300 ease-in-out',\n isActive ? 'max-h-[300px]' : 'max-h-0'\n )}\n >\n {dropdownItems.map((itme) => {\n return (\n <LinkComponent to={itme.to} target={itme.target} key={itme.label}>\n <DropdownMenuItem label={itme.label} />\n </LinkComponent>\n )\n })}\n </div>\n </>\n )\n}\n\nexport { DropdownMenu }\n"],"mappings":";;;;;;;;;;;;AAIA,MAAa,4BAA4B,UAAiB;AACxD,SAAQ,OAAR;EACE,KAAK,MAAM,YACT,QAAO;GACL,SAAS;GACT,gBAAgB;GACjB;EACH,QACE,QAAO;GACL,SAAS;GACT,gBAAgB;GACjB;;;AAIP,MAAa,kBAAkB,UAAiB;AAC9C,SAAQ,OAAR;EACE,KAAK,MAAM;EACX,KAAK,MAAM,YACT,QAAO,iBAAiB;EAC1B,QACE,QAAO,iBAAiB;;;AAI9B,MAAa,4BAA4B,OAAc,SAAS,UAAU;AACxE,SAAQ,OAAR;EACE,KAAK,MAAM,YACT,QAAO;GACL,OAAO,SAAS,2BAA2B;GAC3C,YAAY,SACR,iCACA;GACJ,cAAc;GACd,eAAe;GAChB;EACH,QACE,QAAO;GACL,OAAO,SAAS,qBAAqB;GACrC,YAAY,SAAS,2BAA2B;GAChD,cAAc;GACd,eAAe;GAChB;;;AAIP,MAAa,8BAA8B,UAAiB;AAC1D,SAAQ,OAAR;EACE,KAAK,MAAM,YACT,QAAO;GACL,OAAO;GACP,YAAY;GACZ,cAAc;GACd,iBAAiB;GACjB,YAAY;GACZ,aAAa;GACb,eAAe;GACf,kBAAkB;GACnB;EACH,QACE,QAAO;GACL,OAAO;GACP,YAAY;GACZ,cAAc;GACd,iBAAiB;GACjB,YAAY;GACZ,aAAa;GACb,eAAe;GACf,kBAAkB;GACnB;;;;;;ACjEP,MAAMA,oBAEA,EAAE,YAAY;CAClB,MAAM,EAAE,UAAU,WAAW,cAAc;CAC3C,MAAM,EAAE,OAAO,cAAc,kBAAkB,yBAAyB,MAAM;AAC9E,QACE,oBAAC;EACC,WAAW,KACT,+CACA,OACA,cACA,cACD;YAED,oBAAC;GAAG,MAAM;GAAO,QAAQ,GAAG,OAAO;IAAQ;GACvC;;AAIV,iCAAe;;;;ACNf,MAAMC,gBAAuC,EAC3C,OAAO,IACP,WAAW,OACX,gBAAgB,EAAE,OACd;CACJ,MAAM,EAAE,OAAO,eAAe,mBAAmB,WAAW,cAAc;CAC1E,MAAM,EAAE,OAAO,YAAY,cAAc,kBACvC,yBAAyB,OAAO,SAAS;CAC3C,MAAM,gBAAgB,iBAAiBC,wBAAeC;AACtD,QACE,4CACE,qBAAC;EACC,WAAW,KACT,uEACA,+CACA,YACA,OACA,cACA,WAAW,6BAA6B,yBACxC,WAAW,gBAAgB,GAC5B;aAED,oBAAC;GAAS;GAAM,QAAQ,GAAG,OAAO;IAAQ,EAC1C,oBAAC;GAAM,WAAU;GAAsB;IAAiB;GACpD,EACN,oBAAC;EACC,WAAW,KACT,2DACA,WAAW,kBAAkB,UAC9B;YAEA,cAAc,KAAK,SAAS;AAC3B,UACE,oBAAC;IAAc,IAAI,KAAK;IAAI,QAAQ,KAAK;cACvC,oBAACC,8BAAiB,OAAO,KAAK,QAAS;MADa,KAAK,MAE3C;IAElB;GACE,IACL"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/customized-link/external-link.tsx
|
|
4
|
-
const ExternalLink = ({ to, target = "_self", className = "", children, onMouseEnter, onMouseLeave }) => {
|
|
4
|
+
const ExternalLink = ({ to, target = "_self", className = "", children, id = "", onMouseEnter, onMouseLeave }) => {
|
|
5
5
|
return /* @__PURE__ */ jsx("a", {
|
|
6
6
|
href: to,
|
|
7
7
|
target,
|
|
8
8
|
className,
|
|
9
|
+
id,
|
|
9
10
|
onMouseEnter,
|
|
10
11
|
onMouseLeave,
|
|
11
12
|
children
|
|
@@ -15,4 +16,4 @@ var external_link_default = ExternalLink;
|
|
|
15
16
|
|
|
16
17
|
//#endregion
|
|
17
18
|
export { external_link_default };
|
|
18
|
-
//# sourceMappingURL=external-link-
|
|
19
|
+
//# sourceMappingURL=external-link-BMIFL3DE.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"external-link-BMIFL3DE.mjs","names":["ExternalLink: FC<ExternalLinkProps>"],"sources":["../src/customized-link/external-link.tsx"],"sourcesContent":["import type { FC } from 'react'\nimport type { CustomizedLinkProps } from './type'\n\ntype ExternalLinkProps = CustomizedLinkProps\nconst ExternalLink: FC<ExternalLinkProps> = ({\n to,\n target = '_self',\n className = '',\n children,\n id = '',\n onMouseEnter,\n onMouseLeave,\n}) => {\n return (\n <a\n href={to}\n target={target}\n className={className}\n id={id}\n onMouseEnter={onMouseEnter}\n onMouseLeave={onMouseLeave}\n >\n {children}\n </a>\n )\n}\n\nexport default ExternalLink\n"],"mappings":";;;AAIA,MAAMA,gBAAuC,EAC3C,IACA,SAAS,SACT,YAAY,IACZ,UACA,KAAK,IACL,cACA,mBACI;AACJ,QACE,oBAAC;EACC,MAAM;EACE;EACG;EACP;EACU;EACA;EAEb;GACC;;AAIR,4BAAe"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CustomizedLinkProps } from "./type-
|
|
1
|
+
import { CustomizedLinkProps } from "./type-CcygKers.js";
|
|
2
2
|
import { FC } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/customized-link/external-link.d.ts
|
|
@@ -6,4 +6,4 @@ type ExternalLinkProps = CustomizedLinkProps;
|
|
|
6
6
|
declare const ExternalLink: FC<ExternalLinkProps>;
|
|
7
7
|
//#endregion
|
|
8
8
|
export { ExternalLink };
|
|
9
|
-
//# sourceMappingURL=external-link-
|
|
9
|
+
//# sourceMappingURL=external-link-BMxYePU7.d.ts.map
|
|
@@ -3,11 +3,12 @@ let react_jsx_runtime = require("react/jsx-runtime");
|
|
|
3
3
|
react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
|
|
4
4
|
|
|
5
5
|
//#region src/customized-link/external-link.tsx
|
|
6
|
-
const ExternalLink = ({ to, target = "_self", className = "", children, onMouseEnter, onMouseLeave }) => {
|
|
6
|
+
const ExternalLink = ({ to, target = "_self", className = "", children, id = "", onMouseEnter, onMouseLeave }) => {
|
|
7
7
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("a", {
|
|
8
8
|
href: to,
|
|
9
9
|
target,
|
|
10
10
|
className,
|
|
11
|
+
id,
|
|
11
12
|
onMouseEnter,
|
|
12
13
|
onMouseLeave,
|
|
13
14
|
children
|
|
@@ -22,4 +23,4 @@ Object.defineProperty(exports, 'external_link_default', {
|
|
|
22
23
|
return external_link_default;
|
|
23
24
|
}
|
|
24
25
|
});
|
|
25
|
-
//# sourceMappingURL=external-link-
|
|
26
|
+
//# sourceMappingURL=external-link-Ce1_loKh.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"external-link-Ce1_loKh.js","names":["ExternalLink: FC<ExternalLinkProps>"],"sources":["../src/customized-link/external-link.tsx"],"sourcesContent":["import type { FC } from 'react'\nimport type { CustomizedLinkProps } from './type'\n\ntype ExternalLinkProps = CustomizedLinkProps\nconst ExternalLink: FC<ExternalLinkProps> = ({\n to,\n target = '_self',\n className = '',\n children,\n id = '',\n onMouseEnter,\n onMouseLeave,\n}) => {\n return (\n <a\n href={to}\n target={target}\n className={className}\n id={id}\n onMouseEnter={onMouseEnter}\n onMouseLeave={onMouseLeave}\n >\n {children}\n </a>\n )\n}\n\nexport default ExternalLink\n"],"mappings":";;;;;AAIA,MAAMA,gBAAuC,EAC3C,IACA,SAAS,SACT,YAAY,IACZ,UACA,KAAK,IACL,cACA,mBACI;AACJ,QACE,2CAAC;EACC,MAAM;EACE;EACG;EACP;EACU;EACA;EAEb;GACC;;AAIR,4BAAe"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CustomizedLinkProps } from "./type-
|
|
1
|
+
import { CustomizedLinkProps } from "./type-Bsf9A8YX.mjs";
|
|
2
2
|
import { FC } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/customized-link/external-link.d.ts
|
|
@@ -6,4 +6,4 @@ type ExternalLinkProps = CustomizedLinkProps;
|
|
|
6
6
|
declare const ExternalLink: FC<ExternalLinkProps>;
|
|
7
7
|
//#endregion
|
|
8
8
|
export { ExternalLink };
|
|
9
|
-
//# sourceMappingURL=external-link-
|
|
9
|
+
//# sourceMappingURL=external-link-CvvjuS1W.d.mts.map
|
package/lib/footer/index.d.mts
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
1
|
-
import "../index-
|
|
2
|
-
import { ReleaseBranch } from "../release-branch-
|
|
1
|
+
import "../index-CUE6zs36.mjs";
|
|
2
|
+
import { ReleaseBranch } from "../release-branch-uF0B5lcE.mjs";
|
|
3
|
+
import "../constants-DVYCKpJ0.mjs";
|
|
4
|
+
import { LinkType, SocialMediaLink } from "../types-p8V2pbqn.mjs";
|
|
3
5
|
import { FC } from "react";
|
|
4
6
|
|
|
5
7
|
//#region src/footer/index.d.ts
|
|
6
8
|
type FooterProps = {
|
|
7
9
|
releaseBranch: ReleaseBranch;
|
|
10
|
+
fundraisingId: string;
|
|
11
|
+
fundraisingDateString: string;
|
|
12
|
+
socialMediaLinks?: SocialMediaLink[];
|
|
13
|
+
buttonLinks?: LinkType[][];
|
|
8
14
|
};
|
|
9
15
|
declare const Footer: FC<FooterProps>;
|
|
10
16
|
//#endregion
|
package/lib/footer/index.d.ts
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
import "../index-H3peA2d_.js";
|
|
2
2
|
import { ReleaseBranch } from "../release-branch-CsBbhuYE.js";
|
|
3
|
+
import "../constants-CBjyeHSl.js";
|
|
4
|
+
import { LinkType, SocialMediaLink } from "../types-dW_WJa4D.js";
|
|
3
5
|
import { FC } from "react";
|
|
4
6
|
|
|
5
7
|
//#region src/footer/index.d.ts
|
|
6
8
|
type FooterProps = {
|
|
7
9
|
releaseBranch: ReleaseBranch;
|
|
10
|
+
fundraisingId: string;
|
|
11
|
+
fundraisingDateString: string;
|
|
12
|
+
socialMediaLinks?: SocialMediaLink[];
|
|
13
|
+
buttonLinks?: LinkType[][];
|
|
8
14
|
};
|
|
9
15
|
declare const Footer: FC<FooterProps>;
|
|
10
16
|
export = Footer;
|
package/lib/footer/index.js
CHANGED
|
@@ -5,28 +5,26 @@ const require_paragraph = require('../paragraph-iuz3jP0Q.js');
|
|
|
5
5
|
require('../theme-DDBlIbeS.js');
|
|
6
6
|
const require_button = require('../button-Dk0MxlKd.js');
|
|
7
7
|
const require_external_links = require('../external-links-DCn-uTD-.js');
|
|
8
|
-
require('../internal-links-DxtMobuI.js');
|
|
9
8
|
require('../release-branch-CRZV4Ivz.js');
|
|
10
9
|
require('../request-origins-BDXulkK9.js');
|
|
11
|
-
const require_external_link = require('../external-link-
|
|
10
|
+
const require_external_link = require('../external-link-Ce1_loKh.js');
|
|
12
11
|
require('../internal-link-Bq4yp13E.js');
|
|
13
|
-
require('../customized-link-
|
|
12
|
+
require('../customized-link-BDKQVdcH.js');
|
|
14
13
|
require('../constants-nmH6p6-y.js');
|
|
15
14
|
const require_divider = require('../divider-B1zvSjNJ.js');
|
|
16
|
-
require('../
|
|
17
|
-
require('../
|
|
18
|
-
require('../
|
|
19
|
-
|
|
20
|
-
require('../
|
|
21
|
-
const
|
|
22
|
-
const require_links = require('../links-Xuo8pb4a.js');
|
|
15
|
+
require('../logo-B35M1BaX.js');
|
|
16
|
+
require('../constants-pqSeExjX.js');
|
|
17
|
+
const require_logo$1 = require('../logo-CeaVUbIW.js');
|
|
18
|
+
require('../constants-R6EfY15A.js');
|
|
19
|
+
require('../icons-BZI6_5JJ.js');
|
|
20
|
+
const require_links = require('../links-DMd-CuUJ.js');
|
|
23
21
|
let clsx = require("clsx");
|
|
24
22
|
clsx = require_chunk.__toESM(clsx);
|
|
25
23
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
26
24
|
react_jsx_runtime = require_chunk.__toESM(react_jsx_runtime);
|
|
27
25
|
|
|
28
26
|
//#region src/footer/index.tsx
|
|
29
|
-
const Footer = ({ releaseBranch }) => {
|
|
27
|
+
const Footer = ({ releaseBranch, fundraisingId, fundraisingDateString, socialMediaLinks = [], buttonLinks = [] }) => {
|
|
30
28
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("footer", {
|
|
31
29
|
className: (0, clsx.default)("w-full bg-gray-white"),
|
|
32
30
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
@@ -54,7 +52,10 @@ const Footer = ({ releaseBranch }) => {
|
|
|
54
52
|
})]
|
|
55
53
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
56
54
|
className: (0, clsx.default)("flex mb-[16px] gap-[16px]", "desktop:gap-[24px]"),
|
|
57
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_links.LinkButtonGroups, {
|
|
55
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_links.LinkButtonGroups, {
|
|
56
|
+
releaseBranch,
|
|
57
|
+
linksGroups: buttonLinks
|
|
58
|
+
})
|
|
58
59
|
})]
|
|
59
60
|
}),
|
|
60
61
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_divider.divider_default, { className: "w-full my-[24px]" }),
|
|
@@ -65,7 +66,7 @@ const Footer = ({ releaseBranch }) => {
|
|
|
65
66
|
children: [
|
|
66
67
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_paragraph.P3, {
|
|
67
68
|
className: "text-gray-600",
|
|
68
|
-
text:
|
|
69
|
+
text: `衛部救字第 ${fundraisingId} 號|勸募期間 ${fundraisingDateString}`
|
|
69
70
|
}),
|
|
70
71
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
71
72
|
className: "hidden desktop:flex",
|
|
@@ -74,7 +75,7 @@ const Footer = ({ releaseBranch }) => {
|
|
|
74
75
|
className: "text-gray-600",
|
|
75
76
|
text: "|"
|
|
76
77
|
}),
|
|
77
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_links.
|
|
78
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_links.StaticLinks, { releaseBranch }),
|
|
78
79
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_paragraph.P3, {
|
|
79
80
|
className: "text-gray-600",
|
|
80
81
|
text: "|"
|
|
@@ -83,14 +84,17 @@ const Footer = ({ releaseBranch }) => {
|
|
|
83
84
|
}),
|
|
84
85
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
85
86
|
className: "flex desktop:hidden",
|
|
86
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_links.
|
|
87
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_links.StaticLinks, { releaseBranch })
|
|
87
88
|
}),
|
|
88
89
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_paragraph.P3, {
|
|
89
90
|
className: "text-gray-600",
|
|
90
91
|
text: `Copyright © ${(/* @__PURE__ */ new Date()).getFullYear()} The Reporter.`
|
|
91
92
|
})
|
|
92
93
|
]
|
|
93
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_links.SocialLinks, {
|
|
94
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_links.SocialLinks, {
|
|
95
|
+
releaseBranch,
|
|
96
|
+
links: socialMediaLinks
|
|
97
|
+
})]
|
|
94
98
|
})
|
|
95
99
|
]
|
|
96
100
|
})
|
package/lib/footer/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["Footer: FC<FooterProps>","Logo","P2","ExternalLink","EXTERNAL_LINKS","PillButton","LinkButtonGroups","Divider","P3","
|
|
1
|
+
{"version":3,"file":"index.js","names":["Footer: FC<FooterProps>","Logo","P2","ExternalLink","EXTERNAL_LINKS","PillButton","LinkButtonGroups","Divider","P3","StaticLinks","SocialLinks"],"sources":["../../src/footer/index.tsx"],"sourcesContent":["import type { FC } from 'react'\nimport clsx from 'clsx'\n// text\nimport { P2, P3 } from '../text/paragraph'\n// divider\nimport Divider from '../divider'\n// constants\nimport type { ReleaseBranch } from '../constants/release-branch'\nimport { EXTERNAL_LINKS } from '../constants/external-links'\n// components\nimport Logo from './logo'\nimport { SocialLinks, StaticLinks, LinkButtonGroups } from './links'\n// button\nimport { PillButton } from '../button'\n// link\nimport { ExternalLink } from '../customized-link'\n// types\nimport type { LinkType, SocialMediaLink } from './types'\n\ntype FooterProps = {\n releaseBranch: ReleaseBranch\n fundraisingId: string\n fundraisingDateString: string\n socialMediaLinks?: SocialMediaLink[]\n buttonLinks?: LinkType[][]\n}\nconst Footer: FC<FooterProps> = ({\n releaseBranch,\n fundraisingId,\n fundraisingDateString,\n socialMediaLinks = [],\n buttonLinks = [],\n}) => {\n return (\n <footer className={clsx('w-full bg-gray-white')}>\n <div\n className={clsx(\n 'flex flex-col mx-auto justify-center max-w-[400px] px-[24px] pt-[48px] pb-[96px]',\n 'desktop:max-w-[1200px] desktop:px-[48px] desktop:py-[48px]'\n )}\n >\n {/* upper content */}\n <div\n className={clsx(\n 'w-full flex flex-col justify-center',\n 'desktop:flex-row desktop:justify-between'\n )}\n >\n {/* information content */}\n <div\n className={clsx(\n 'flex flex-col w-full gap-[32px] mb-[48px] items-center text-center',\n 'desktop:max-w-[320px] desktop:mb-0 desktop:text-start desktop:items-start'\n )}\n >\n {/* logo */}\n <div\n className={clsx(\n 'w-full flex flex-col gap-[16px] items-center',\n 'desktop:gap-[24px] desktop:items-start'\n )}\n >\n <Logo releaseBranch={releaseBranch} />\n <P2\n className=\"text-gray-600\"\n text=\"台灣第一個由公益基金會成立的網路媒體,致力於公共領域調查報導,打造多元進步的媒體環境。\"\n />\n </div>\n {/* donation button */}\n <ExternalLink to={EXTERNAL_LINKS.monthlyDonation} target=\"_blank\">\n <PillButton\n className=\"w-[280px]! justify-center!\"\n type={PillButton.Type.secondary}\n size={PillButton.Size.l}\n text={'贊助我們'}\n />\n </ExternalLink>\n </div>\n {/* links content */}\n <div\n className={clsx('flex mb-[16px] gap-[16px]', 'desktop:gap-[24px]')}\n >\n <LinkButtonGroups\n releaseBranch={releaseBranch}\n linksGroups={buttonLinks}\n />\n </div>\n </div>\n <Divider className=\"w-full my-[24px]\" />\n {/* lower content */}\n <div\n className={clsx(\n 'flex flex-col-reverse gap-[24px] items-center text-center',\n 'desktop:flex-row desktop:justify-between desktop:gap-0'\n )}\n >\n {/* info */}\n <div\n className={clsx('flex flex-col items-center', 'desktop:flex-row')}\n >\n <P3\n className=\"text-gray-600\"\n text={`衛部救字第 ${fundraisingId} 號|勸募期間 ${fundraisingDateString}`}\n />\n <div className=\"hidden desktop:flex\">\n <P3 className=\"text-gray-600\" text=\"|\" />\n <StaticLinks releaseBranch={releaseBranch} />\n <P3 className=\"text-gray-600\" text=\"|\" />\n </div>\n <div className=\"flex desktop:hidden\">\n <StaticLinks releaseBranch={releaseBranch} />\n </div>\n <P3\n className=\"text-gray-600\"\n text={`Copyright © ${new Date().getFullYear()} The Reporter.`}\n />\n </div>\n {/* social links */}\n <SocialLinks releaseBranch={releaseBranch} links={socialMediaLinks} />\n </div>\n </div>\n </footer>\n )\n}\n\nexport default Footer\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AA0BA,MAAMA,UAA2B,EAC/B,eACA,eACA,uBACA,mBAAmB,EAAE,EACrB,cAAc,EAAE,OACZ;AACJ,QACE,2CAAC;EAAO,6BAAgB,uBAAuB;YAC7C,4CAAC;GACC,6BACE,oFACA,6DACD;;IAGD,4CAAC;KACC,6BACE,uCACA,2CACD;gBAGD,4CAAC;MACC,6BACE,sEACA,4EACD;iBAGD,4CAAC;OACC,6BACE,gDACA,yCACD;kBAED,2CAACC,+BAAoB,gBAAiB,EACtC,2CAACC;QACC,WAAU;QACV,MAAK;SACL;QACE,EAEN,2CAACC;OAAa,IAAIC,sCAAe;OAAiB,QAAO;iBACvD,2CAACC;QACC,WAAU;QACV,MAAMA,mCAAW,KAAK;QACtB,MAAMA,mCAAW,KAAK;QACtB,MAAM;SACN;QACW;OACX,EAEN,2CAAC;MACC,6BAAgB,6BAA6B,qBAAqB;gBAElE,2CAACC;OACgB;OACf,aAAa;QACb;OACE;MACF;IACN,2CAACC,mCAAQ,WAAU,qBAAqB;IAExC,4CAAC;KACC,6BACE,6DACA,yDACD;gBAGD,4CAAC;MACC,6BAAgB,8BAA8B,mBAAmB;;OAEjE,2CAACC;QACC,WAAU;QACV,MAAM,SAAS,cAAc,UAAU;SACvC;OACF,4CAAC;QAAI,WAAU;;SACb,2CAACA;UAAG,WAAU;UAAgB,MAAK;WAAM;SACzC,2CAACC,6BAA2B,gBAAiB;SAC7C,2CAACD;UAAG,WAAU;UAAgB,MAAK;WAAM;;SACrC;OACN,2CAAC;QAAI,WAAU;kBACb,2CAACC,6BAA2B,gBAAiB;SACzC;OACN,2CAACD;QACC,WAAU;QACV,MAAM,gCAAe,IAAI,MAAM,EAAC,aAAa,CAAC;SAC9C;;OACE,EAEN,2CAACE;MAA2B;MAAe,OAAO;OAAoB;MAClE;;IACF;GACC;;AAIb,qBAAe"}
|
package/lib/footer/index.mjs
CHANGED
|
@@ -5,25 +5,23 @@ import { P2, P3 } from "../paragraph-Cf9jr8RF.mjs";
|
|
|
5
5
|
import "../theme-BG6yZVj-.mjs";
|
|
6
6
|
import { pill_button_default } from "../button-D_AWI7r9.mjs";
|
|
7
7
|
import { EXTERNAL_LINKS } from "../external-links-B-A17Osq.mjs";
|
|
8
|
-
import "../internal-links-CP3dqmrz.mjs";
|
|
9
8
|
import "../release-branch-DNCD1uH_.mjs";
|
|
10
9
|
import "../request-origins-CGkNWg8R.mjs";
|
|
11
|
-
import { external_link_default } from "../external-link-
|
|
12
|
-
import "../customized-link-
|
|
10
|
+
import { external_link_default } from "../external-link-BMIFL3DE.mjs";
|
|
11
|
+
import "../customized-link-D3p9rjEe.mjs";
|
|
13
12
|
import "../constants-z9Q8ph_H.mjs";
|
|
14
13
|
import { divider_default } from "../divider-CE4u6SR5.mjs";
|
|
15
|
-
import "../
|
|
16
|
-
import "../
|
|
17
|
-
import "../
|
|
18
|
-
import
|
|
19
|
-
import "../
|
|
20
|
-
import {
|
|
21
|
-
import { InfoLinks, LinkButtonGroups, SocialLinks } from "../links-DO97xw7S.mjs";
|
|
14
|
+
import "../logo-DkEpjnPV.mjs";
|
|
15
|
+
import "../constants-DKqcALfv.mjs";
|
|
16
|
+
import { logo_default } from "../logo-lPQ3Apwn.mjs";
|
|
17
|
+
import "../constants-Npoq7yu0.mjs";
|
|
18
|
+
import "../icons-C5UqghX2.mjs";
|
|
19
|
+
import { LinkButtonGroups, SocialLinks, StaticLinks } from "../links-CFjOQl4o.mjs";
|
|
22
20
|
import clsx from "clsx";
|
|
23
21
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
24
22
|
|
|
25
23
|
//#region src/footer/index.tsx
|
|
26
|
-
const Footer = ({ releaseBranch }) => {
|
|
24
|
+
const Footer = ({ releaseBranch, fundraisingId, fundraisingDateString, socialMediaLinks = [], buttonLinks = [] }) => {
|
|
27
25
|
return /* @__PURE__ */ jsx("footer", {
|
|
28
26
|
className: clsx("w-full bg-gray-white"),
|
|
29
27
|
children: /* @__PURE__ */ jsxs("div", {
|
|
@@ -51,7 +49,10 @@ const Footer = ({ releaseBranch }) => {
|
|
|
51
49
|
})]
|
|
52
50
|
}), /* @__PURE__ */ jsx("div", {
|
|
53
51
|
className: clsx("flex mb-[16px] gap-[16px]", "desktop:gap-[24px]"),
|
|
54
|
-
children: /* @__PURE__ */ jsx(LinkButtonGroups, {
|
|
52
|
+
children: /* @__PURE__ */ jsx(LinkButtonGroups, {
|
|
53
|
+
releaseBranch,
|
|
54
|
+
linksGroups: buttonLinks
|
|
55
|
+
})
|
|
55
56
|
})]
|
|
56
57
|
}),
|
|
57
58
|
/* @__PURE__ */ jsx(divider_default, { className: "w-full my-[24px]" }),
|
|
@@ -62,7 +63,7 @@ const Footer = ({ releaseBranch }) => {
|
|
|
62
63
|
children: [
|
|
63
64
|
/* @__PURE__ */ jsx(P3, {
|
|
64
65
|
className: "text-gray-600",
|
|
65
|
-
text:
|
|
66
|
+
text: `衛部救字第 ${fundraisingId} 號|勸募期間 ${fundraisingDateString}`
|
|
66
67
|
}),
|
|
67
68
|
/* @__PURE__ */ jsxs("div", {
|
|
68
69
|
className: "hidden desktop:flex",
|
|
@@ -71,7 +72,7 @@ const Footer = ({ releaseBranch }) => {
|
|
|
71
72
|
className: "text-gray-600",
|
|
72
73
|
text: "|"
|
|
73
74
|
}),
|
|
74
|
-
/* @__PURE__ */ jsx(
|
|
75
|
+
/* @__PURE__ */ jsx(StaticLinks, { releaseBranch }),
|
|
75
76
|
/* @__PURE__ */ jsx(P3, {
|
|
76
77
|
className: "text-gray-600",
|
|
77
78
|
text: "|"
|
|
@@ -80,14 +81,17 @@ const Footer = ({ releaseBranch }) => {
|
|
|
80
81
|
}),
|
|
81
82
|
/* @__PURE__ */ jsx("div", {
|
|
82
83
|
className: "flex desktop:hidden",
|
|
83
|
-
children: /* @__PURE__ */ jsx(
|
|
84
|
+
children: /* @__PURE__ */ jsx(StaticLinks, { releaseBranch })
|
|
84
85
|
}),
|
|
85
86
|
/* @__PURE__ */ jsx(P3, {
|
|
86
87
|
className: "text-gray-600",
|
|
87
88
|
text: `Copyright © ${(/* @__PURE__ */ new Date()).getFullYear()} The Reporter.`
|
|
88
89
|
})
|
|
89
90
|
]
|
|
90
|
-
}), /* @__PURE__ */ jsx(SocialLinks, {
|
|
91
|
+
}), /* @__PURE__ */ jsx(SocialLinks, {
|
|
92
|
+
releaseBranch,
|
|
93
|
+
links: socialMediaLinks
|
|
94
|
+
})]
|
|
91
95
|
})
|
|
92
96
|
]
|
|
93
97
|
})
|
package/lib/footer/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":["Footer: FC<FooterProps>","Logo","ExternalLink","PillButton","Divider"],"sources":["../../src/footer/index.tsx"],"sourcesContent":["import type { FC } from 'react'\nimport clsx from 'clsx'\n// text\nimport { P2, P3 } from '../text/paragraph'\n// divider\nimport Divider from '../divider'\n// constants\nimport type { ReleaseBranch } from '../constants/release-branch'\nimport {
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["Footer: FC<FooterProps>","Logo","ExternalLink","PillButton","Divider"],"sources":["../../src/footer/index.tsx"],"sourcesContent":["import type { FC } from 'react'\nimport clsx from 'clsx'\n// text\nimport { P2, P3 } from '../text/paragraph'\n// divider\nimport Divider from '../divider'\n// constants\nimport type { ReleaseBranch } from '../constants/release-branch'\nimport { EXTERNAL_LINKS } from '../constants/external-links'\n// components\nimport Logo from './logo'\nimport { SocialLinks, StaticLinks, LinkButtonGroups } from './links'\n// button\nimport { PillButton } from '../button'\n// link\nimport { ExternalLink } from '../customized-link'\n// types\nimport type { LinkType, SocialMediaLink } from './types'\n\ntype FooterProps = {\n releaseBranch: ReleaseBranch\n fundraisingId: string\n fundraisingDateString: string\n socialMediaLinks?: SocialMediaLink[]\n buttonLinks?: LinkType[][]\n}\nconst Footer: FC<FooterProps> = ({\n releaseBranch,\n fundraisingId,\n fundraisingDateString,\n socialMediaLinks = [],\n buttonLinks = [],\n}) => {\n return (\n <footer className={clsx('w-full bg-gray-white')}>\n <div\n className={clsx(\n 'flex flex-col mx-auto justify-center max-w-[400px] px-[24px] pt-[48px] pb-[96px]',\n 'desktop:max-w-[1200px] desktop:px-[48px] desktop:py-[48px]'\n )}\n >\n {/* upper content */}\n <div\n className={clsx(\n 'w-full flex flex-col justify-center',\n 'desktop:flex-row desktop:justify-between'\n )}\n >\n {/* information content */}\n <div\n className={clsx(\n 'flex flex-col w-full gap-[32px] mb-[48px] items-center text-center',\n 'desktop:max-w-[320px] desktop:mb-0 desktop:text-start desktop:items-start'\n )}\n >\n {/* logo */}\n <div\n className={clsx(\n 'w-full flex flex-col gap-[16px] items-center',\n 'desktop:gap-[24px] desktop:items-start'\n )}\n >\n <Logo releaseBranch={releaseBranch} />\n <P2\n className=\"text-gray-600\"\n text=\"台灣第一個由公益基金會成立的網路媒體,致力於公共領域調查報導,打造多元進步的媒體環境。\"\n />\n </div>\n {/* donation button */}\n <ExternalLink to={EXTERNAL_LINKS.monthlyDonation} target=\"_blank\">\n <PillButton\n className=\"w-[280px]! justify-center!\"\n type={PillButton.Type.secondary}\n size={PillButton.Size.l}\n text={'贊助我們'}\n />\n </ExternalLink>\n </div>\n {/* links content */}\n <div\n className={clsx('flex mb-[16px] gap-[16px]', 'desktop:gap-[24px]')}\n >\n <LinkButtonGroups\n releaseBranch={releaseBranch}\n linksGroups={buttonLinks}\n />\n </div>\n </div>\n <Divider className=\"w-full my-[24px]\" />\n {/* lower content */}\n <div\n className={clsx(\n 'flex flex-col-reverse gap-[24px] items-center text-center',\n 'desktop:flex-row desktop:justify-between desktop:gap-0'\n )}\n >\n {/* info */}\n <div\n className={clsx('flex flex-col items-center', 'desktop:flex-row')}\n >\n <P3\n className=\"text-gray-600\"\n text={`衛部救字第 ${fundraisingId} 號|勸募期間 ${fundraisingDateString}`}\n />\n <div className=\"hidden desktop:flex\">\n <P3 className=\"text-gray-600\" text=\"|\" />\n <StaticLinks releaseBranch={releaseBranch} />\n <P3 className=\"text-gray-600\" text=\"|\" />\n </div>\n <div className=\"flex desktop:hidden\">\n <StaticLinks releaseBranch={releaseBranch} />\n </div>\n <P3\n className=\"text-gray-600\"\n text={`Copyright © ${new Date().getFullYear()} The Reporter.`}\n />\n </div>\n {/* social links */}\n <SocialLinks releaseBranch={releaseBranch} links={socialMediaLinks} />\n </div>\n </div>\n </footer>\n )\n}\n\nexport default Footer\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AA0BA,MAAMA,UAA2B,EAC/B,eACA,eACA,uBACA,mBAAmB,EAAE,EACrB,cAAc,EAAE,OACZ;AACJ,QACE,oBAAC;EAAO,WAAW,KAAK,uBAAuB;YAC7C,qBAAC;GACC,WAAW,KACT,oFACA,6DACD;;IAGD,qBAAC;KACC,WAAW,KACT,uCACA,2CACD;gBAGD,qBAAC;MACC,WAAW,KACT,sEACA,4EACD;iBAGD,qBAAC;OACC,WAAW,KACT,gDACA,yCACD;kBAED,oBAACC,gBAAoB,gBAAiB,EACtC,oBAAC;QACC,WAAU;QACV,MAAK;SACL;QACE,EAEN,oBAACC;OAAa,IAAI,eAAe;OAAiB,QAAO;iBACvD,oBAACC;QACC,WAAU;QACV,MAAMA,oBAAW,KAAK;QACtB,MAAMA,oBAAW,KAAK;QACtB,MAAM;SACN;QACW;OACX,EAEN,oBAAC;MACC,WAAW,KAAK,6BAA6B,qBAAqB;gBAElE,oBAAC;OACgB;OACf,aAAa;QACb;OACE;MACF;IACN,oBAACC,mBAAQ,WAAU,qBAAqB;IAExC,qBAAC;KACC,WAAW,KACT,6DACA,yDACD;gBAGD,qBAAC;MACC,WAAW,KAAK,8BAA8B,mBAAmB;;OAEjE,oBAAC;QACC,WAAU;QACV,MAAM,SAAS,cAAc,UAAU;SACvC;OACF,qBAAC;QAAI,WAAU;;SACb,oBAAC;UAAG,WAAU;UAAgB,MAAK;WAAM;SACzC,oBAAC,eAA2B,gBAAiB;SAC7C,oBAAC;UAAG,WAAU;UAAgB,MAAK;WAAM;;SACrC;OACN,oBAAC;QAAI,WAAU;kBACb,oBAAC,eAA2B,gBAAiB;SACzC;OACN,oBAAC;QACC,WAAU;QACV,MAAM,gCAAe,IAAI,MAAM,EAAC,aAAa,CAAC;SAC9C;;OACE,EAEN,oBAAC;MAA2B;MAAe,OAAO;OAAoB;MAClE;;IACF;GACC;;AAIb,qBAAe"}
|
package/lib/footer/links.d.mts
CHANGED
|
@@ -1,23 +1,28 @@
|
|
|
1
|
-
import "../index-
|
|
2
|
-
import { ReleaseBranch } from "../release-branch-
|
|
1
|
+
import "../index-CUE6zs36.mjs";
|
|
2
|
+
import { ReleaseBranch } from "../release-branch-uF0B5lcE.mjs";
|
|
3
|
+
import "../constants-DVYCKpJ0.mjs";
|
|
4
|
+
import { LinkType, SocialMediaLink } from "../types-p8V2pbqn.mjs";
|
|
3
5
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
6
|
|
|
5
7
|
//#region src/footer/links.d.ts
|
|
6
8
|
declare const SocialLinks: ({
|
|
7
|
-
releaseBranch
|
|
9
|
+
releaseBranch,
|
|
10
|
+
links
|
|
8
11
|
}: {
|
|
9
12
|
releaseBranch: ReleaseBranch;
|
|
13
|
+
links: SocialMediaLink[];
|
|
10
14
|
}) => react_jsx_runtime0.JSX.Element;
|
|
11
|
-
declare const
|
|
15
|
+
declare const StaticLinks: ({
|
|
12
16
|
releaseBranch
|
|
13
17
|
}: {
|
|
14
18
|
releaseBranch: ReleaseBranch;
|
|
15
19
|
}) => react_jsx_runtime0.JSX.Element;
|
|
16
20
|
declare const LinkButtonGroups: ({
|
|
17
|
-
|
|
21
|
+
linksGroups
|
|
18
22
|
}: {
|
|
19
23
|
releaseBranch: ReleaseBranch;
|
|
24
|
+
linksGroups: LinkType[][];
|
|
20
25
|
}) => react_jsx_runtime0.JSX.Element[];
|
|
21
26
|
//#endregion
|
|
22
|
-
export {
|
|
27
|
+
export { LinkButtonGroups, SocialLinks, StaticLinks };
|
|
23
28
|
//# sourceMappingURL=links.d.mts.map
|
package/lib/footer/links.d.ts
CHANGED
|
@@ -1,23 +1,28 @@
|
|
|
1
1
|
import "../index-H3peA2d_.js";
|
|
2
2
|
import { ReleaseBranch } from "../release-branch-CsBbhuYE.js";
|
|
3
|
-
import
|
|
3
|
+
import "../constants-CBjyeHSl.js";
|
|
4
|
+
import { LinkType, SocialMediaLink } from "../types-dW_WJa4D.js";
|
|
5
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
6
|
|
|
5
7
|
//#region src/footer/links.d.ts
|
|
6
8
|
declare const SocialLinks: ({
|
|
7
|
-
releaseBranch
|
|
9
|
+
releaseBranch,
|
|
10
|
+
links
|
|
8
11
|
}: {
|
|
9
12
|
releaseBranch: ReleaseBranch;
|
|
10
|
-
|
|
11
|
-
|
|
13
|
+
links: SocialMediaLink[];
|
|
14
|
+
}) => react_jsx_runtime0.JSX.Element;
|
|
15
|
+
declare const StaticLinks: ({
|
|
12
16
|
releaseBranch
|
|
13
17
|
}: {
|
|
14
18
|
releaseBranch: ReleaseBranch;
|
|
15
|
-
}) =>
|
|
19
|
+
}) => react_jsx_runtime0.JSX.Element;
|
|
16
20
|
declare const LinkButtonGroups: ({
|
|
17
|
-
|
|
21
|
+
linksGroups
|
|
18
22
|
}: {
|
|
19
23
|
releaseBranch: ReleaseBranch;
|
|
20
|
-
|
|
24
|
+
linksGroups: LinkType[][];
|
|
25
|
+
}) => react_jsx_runtime0.JSX.Element[];
|
|
21
26
|
//#endregion
|
|
22
|
-
export {
|
|
27
|
+
export { LinkButtonGroups, SocialLinks, StaticLinks };
|
|
23
28
|
//# sourceMappingURL=links.d.ts.map
|
package/lib/footer/links.js
CHANGED
|
@@ -3,17 +3,15 @@ require('../constants-Cndhv6qr.js');
|
|
|
3
3
|
require('../paragraph-iuz3jP0Q.js');
|
|
4
4
|
require('../theme-DDBlIbeS.js');
|
|
5
5
|
require('../button-Dk0MxlKd.js');
|
|
6
|
-
require('../internal-links-DxtMobuI.js');
|
|
7
6
|
require('../release-branch-CRZV4Ivz.js');
|
|
8
7
|
require('../request-origins-BDXulkK9.js');
|
|
9
|
-
require('../external-link-
|
|
8
|
+
require('../external-link-Ce1_loKh.js');
|
|
10
9
|
require('../internal-link-Bq4yp13E.js');
|
|
11
|
-
require('../customized-link-
|
|
12
|
-
require('../constants-
|
|
13
|
-
require('../icons-
|
|
14
|
-
require('../
|
|
15
|
-
const require_links = require('../links-Xuo8pb4a.js');
|
|
10
|
+
require('../customized-link-BDKQVdcH.js');
|
|
11
|
+
require('../constants-R6EfY15A.js');
|
|
12
|
+
require('../icons-BZI6_5JJ.js');
|
|
13
|
+
const require_links = require('../links-DMd-CuUJ.js');
|
|
16
14
|
|
|
17
|
-
exports.InfoLinks = require_links.InfoLinks;
|
|
18
15
|
exports.LinkButtonGroups = require_links.LinkButtonGroups;
|
|
19
|
-
exports.SocialLinks = require_links.SocialLinks;
|
|
16
|
+
exports.SocialLinks = require_links.SocialLinks;
|
|
17
|
+
exports.StaticLinks = require_links.StaticLinks;
|
package/lib/footer/links.mjs
CHANGED
|
@@ -4,14 +4,12 @@ import "../constants-CBSEPx91.mjs";
|
|
|
4
4
|
import "../paragraph-Cf9jr8RF.mjs";
|
|
5
5
|
import "../theme-BG6yZVj-.mjs";
|
|
6
6
|
import "../button-D_AWI7r9.mjs";
|
|
7
|
-
import "../internal-links-CP3dqmrz.mjs";
|
|
8
7
|
import "../release-branch-DNCD1uH_.mjs";
|
|
9
8
|
import "../request-origins-CGkNWg8R.mjs";
|
|
10
|
-
import "../external-link-
|
|
11
|
-
import "../customized-link-
|
|
12
|
-
import "../constants-
|
|
13
|
-
import "../icons-
|
|
14
|
-
import "../
|
|
15
|
-
import { InfoLinks, LinkButtonGroups, SocialLinks } from "../links-DO97xw7S.mjs";
|
|
9
|
+
import "../external-link-BMIFL3DE.mjs";
|
|
10
|
+
import "../customized-link-D3p9rjEe.mjs";
|
|
11
|
+
import "../constants-Npoq7yu0.mjs";
|
|
12
|
+
import "../icons-C5UqghX2.mjs";
|
|
13
|
+
import { LinkButtonGroups, SocialLinks, StaticLinks } from "../links-CFjOQl4o.mjs";
|
|
16
14
|
|
|
17
|
-
export {
|
|
15
|
+
export { LinkButtonGroups, SocialLinks, StaticLinks };
|
package/lib/footer/logo.d.mts
CHANGED
package/lib/footer/logo.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
require('../release-branch-CRZV4Ivz.js');
|
|
2
|
-
require('../external-link-
|
|
2
|
+
require('../external-link-Ce1_loKh.js');
|
|
3
3
|
require('../internal-link-Bq4yp13E.js');
|
|
4
|
-
require('../customized-link-
|
|
5
|
-
require('../
|
|
6
|
-
require('../
|
|
7
|
-
const require_logo$1 = require('../logo-
|
|
4
|
+
require('../customized-link-BDKQVdcH.js');
|
|
5
|
+
require('../logo-B35M1BaX.js');
|
|
6
|
+
require('../constants-pqSeExjX.js');
|
|
7
|
+
const require_logo$1 = require('../logo-CeaVUbIW.js');
|
|
8
8
|
|
|
9
9
|
module.exports = require_logo$1.logo_default;
|
package/lib/footer/logo.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "../internal-link-DCXJvzgx.mjs";
|
|
2
2
|
import "../release-branch-DNCD1uH_.mjs";
|
|
3
|
-
import "../external-link-
|
|
4
|
-
import "../customized-link-
|
|
5
|
-
import "../
|
|
6
|
-
import "../
|
|
7
|
-
import { logo_default } from "../logo-
|
|
3
|
+
import "../external-link-BMIFL3DE.mjs";
|
|
4
|
+
import "../customized-link-D3p9rjEe.mjs";
|
|
5
|
+
import "../logo-DkEpjnPV.mjs";
|
|
6
|
+
import "../constants-DKqcALfv.mjs";
|
|
7
|
+
import { logo_default } from "../logo-lPQ3Apwn.mjs";
|
|
8
8
|
|
|
9
9
|
export { logo_default as default };
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|