@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.
- package/README.md +74 -0
- package/lib/button/constants.d.mts +3 -0
- package/lib/button/constants.d.ts +3 -0
- package/lib/button/constants.js +5 -0
- package/lib/button/constants.mjs +3 -0
- package/lib/button/index.d.mts +160 -0
- package/lib/button/index.d.ts +160 -0
- package/lib/button/index.js +13 -0
- package/lib/button/index.mjs +7 -0
- package/lib/button-DFLYlJJW.js +630 -0
- package/lib/button-DFLYlJJW.js.map +1 -0
- package/lib/button-DyUYGG90.mjs +591 -0
- package/lib/button-DyUYGG90.mjs.map +1 -0
- package/lib/chunk-BxBTb9qk.js +39 -0
- package/lib/constants/external-links.d.mts +16 -0
- package/lib/constants/external-links.d.ts +16 -0
- package/lib/constants/external-links.js +3 -0
- package/lib/constants/external-links.mjs +3 -0
- package/lib/constants/internal-links.d.mts +51 -0
- package/lib/constants/internal-links.d.ts +51 -0
- package/lib/constants/internal-links.js +3 -0
- package/lib/constants/internal-links.mjs +3 -0
- package/lib/constants/release-branch.d.mts +3 -0
- package/lib/constants/release-branch.d.ts +3 -0
- package/lib/constants/release-branch.js +3 -0
- package/lib/constants/release-branch.mjs +3 -0
- package/lib/constants/request-origins.d.mts +68 -0
- package/lib/constants/request-origins.d.ts +68 -0
- package/lib/constants/request-origins.js +47 -0
- package/lib/constants/request-origins.js.map +1 -0
- package/lib/constants/request-origins.mjs +46 -0
- package/lib/constants/request-origins.mjs.map +1 -0
- package/lib/constants/theme.d.mts +3 -0
- package/lib/constants/theme.d.ts +3 -0
- package/lib/constants/theme.js +3 -0
- package/lib/constants/theme.mjs +3 -0
- package/lib/constants-2TRY2zTK.js +38 -0
- package/lib/constants-2TRY2zTK.js.map +1 -0
- package/lib/constants-BS3rPbaX.d.ts +17 -0
- package/lib/constants-BWFuBApI.mjs +14 -0
- package/lib/constants-BWFuBApI.mjs.map +1 -0
- package/lib/constants-B_NgWFML.d.ts +24 -0
- package/lib/constants-BmxSMOOn.js +36 -0
- package/lib/constants-BmxSMOOn.js.map +1 -0
- package/lib/constants-BqeEbkVD.mjs +20 -0
- package/lib/constants-BqeEbkVD.mjs.map +1 -0
- package/lib/constants-BswaTS-y.d.mts +29 -0
- package/lib/constants-Bz-ufaJ2.js +39 -0
- package/lib/constants-Bz-ufaJ2.js.map +1 -0
- package/lib/constants-CEyUZ-jZ.d.mts +11 -0
- package/lib/constants-CMMcn0f-.d.ts +11 -0
- package/lib/constants-CQscYQcW.mjs +25 -0
- package/lib/constants-CQscYQcW.mjs.map +1 -0
- package/lib/constants-DF_II8Fz.js +43 -0
- package/lib/constants-DF_II8Fz.js.map +1 -0
- package/lib/constants-DNr36wyK.d.mts +24 -0
- package/lib/constants-DQxcqnYL.d.ts +29 -0
- package/lib/constants-DRyQ6AuU.js +15 -0
- package/lib/constants-DRyQ6AuU.js.map +1 -0
- package/lib/constants-K2ObjToq.js +26 -0
- package/lib/constants-K2ObjToq.js.map +1 -0
- package/lib/constants-OhAETTiQ.d.mts +17 -0
- package/lib/constants-QF71lY6v.mjs +34 -0
- package/lib/constants-QF71lY6v.mjs.map +1 -0
- package/lib/constants-gCmka4Fp.d.ts +22 -0
- package/lib/constants-jYAxSTFp.d.mts +22 -0
- package/lib/constants-oTHAnh6r.mjs +18 -0
- package/lib/constants-oTHAnh6r.mjs.map +1 -0
- package/lib/constants-t0lkfgqP.mjs +9 -0
- package/lib/constants-t0lkfgqP.mjs.map +1 -0
- package/lib/context-BCesW3fW.mjs +24 -0
- package/lib/context-BCesW3fW.mjs.map +1 -0
- package/lib/context-Bvr0Qj2x.js +37 -0
- package/lib/context-Bvr0Qj2x.js.map +1 -0
- package/lib/customized-link/external-link.d.mts +3 -0
- package/lib/customized-link/external-link.d.ts +3 -0
- package/lib/customized-link/external-link.js +3 -0
- package/lib/customized-link/external-link.mjs +3 -0
- package/lib/customized-link/index.d.mts +13 -0
- package/lib/customized-link/index.d.ts +13 -0
- package/lib/customized-link/index.js +8 -0
- package/lib/customized-link/index.mjs +5 -0
- package/lib/customized-link/internal-link.d.mts +3 -0
- package/lib/customized-link/internal-link.d.ts +3 -0
- package/lib/customized-link/internal-link.js +6 -0
- package/lib/customized-link/internal-link.mjs +6 -0
- package/lib/customized-link/type.d.mts +2 -0
- package/lib/customized-link/type.d.ts +2 -0
- package/lib/customized-link/type.js +0 -0
- package/lib/customized-link/type.mjs +1 -0
- package/lib/customized-link-BkuKVCKQ.mjs +12 -0
- package/lib/customized-link-BkuKVCKQ.mjs.map +1 -0
- package/lib/customized-link-CK7Xlgdt.js +17 -0
- package/lib/customized-link-CK7Xlgdt.js.map +1 -0
- package/lib/divider/constants.d.mts +3 -0
- package/lib/divider/constants.d.ts +3 -0
- package/lib/divider/constants.js +3 -0
- package/lib/divider/constants.mjs +3 -0
- package/lib/divider/index.d.mts +15 -0
- package/lib/divider/index.d.ts +15 -0
- package/lib/divider/index.js +6 -0
- package/lib/divider/index.mjs +4 -0
- package/lib/divider-Bb3tebJO.mjs +15 -0
- package/lib/divider-Bb3tebJO.mjs.map +1 -0
- package/lib/divider-b3Shh7FV.js +29 -0
- package/lib/divider-b3Shh7FV.js.map +1 -0
- package/lib/dropdown-menu/index.d.mts +17 -0
- package/lib/dropdown-menu/index.d.ts +17 -0
- package/lib/dropdown-menu/index.js +14 -0
- package/lib/dropdown-menu/index.mjs +14 -0
- package/lib/dropdown-menu-CCtPuYyJ.js +150 -0
- package/lib/dropdown-menu-CCtPuYyJ.js.map +1 -0
- package/lib/dropdown-menu-Cil4RtSK.mjs +117 -0
- package/lib/dropdown-menu-Cil4RtSK.mjs.map +1 -0
- package/lib/external-link-2XoC1_oL.d.ts +9 -0
- package/lib/external-link-BUhvS4ry.d.mts +9 -0
- package/lib/external-link-CEDvlQYo.js +23 -0
- package/lib/external-link-CEDvlQYo.js.map +1 -0
- package/lib/external-link-Cx9S31Ye.mjs +16 -0
- package/lib/external-link-Cx9S31Ye.mjs.map +1 -0
- package/lib/external-links-2b4M_rcA.mjs +17 -0
- package/lib/external-links-2b4M_rcA.mjs.map +1 -0
- package/lib/external-links-SfJjb48j.js +23 -0
- package/lib/external-links-SfJjb48j.js.map +1 -0
- package/lib/hamburger-menu/index.d.mts +7 -0
- package/lib/hamburger-menu/index.d.ts +6 -0
- package/lib/hamburger-menu/index.js +22 -0
- package/lib/hamburger-menu/index.mjs +22 -0
- package/lib/hamburger-menu-BZ1hA7l5.mjs +472 -0
- package/lib/hamburger-menu-BZ1hA7l5.mjs.map +1 -0
- package/lib/hamburger-menu-Bd_wmcAB.js +487 -0
- package/lib/hamburger-menu-Bd_wmcAB.js.map +1 -0
- package/lib/header/index.d.mts +26 -0
- package/lib/header/index.d.ts +25 -0
- package/lib/header/index.js +465 -0
- package/lib/header/index.js.map +1 -0
- package/lib/header/index.mjs +459 -0
- package/lib/header/index.mjs.map +1 -0
- package/lib/heading-CFSkTbdH.mjs +37 -0
- package/lib/heading-CFSkTbdH.mjs.map +1 -0
- package/lib/heading-DFzj2z0V.js +75 -0
- package/lib/heading-DFzj2z0V.js.map +1 -0
- package/lib/icons/constants.d.mts +3 -0
- package/lib/icons/constants.d.ts +3 -0
- package/lib/icons/constants.js +5 -0
- package/lib/icons/constants.mjs +3 -0
- package/lib/icons/index.d.mts +43 -0
- package/lib/icons/index.d.ts +43 -0
- package/lib/icons/index.js +15 -0
- package/lib/icons/index.mjs +5 -0
- package/lib/icons-DF-7dKxN.js +128 -0
- package/lib/icons-DF-7dKxN.js.map +1 -0
- package/lib/icons-DguoV48M.mjs +60 -0
- package/lib/icons-DguoV48M.mjs.map +1 -0
- package/lib/index-BmIgLA0K.d.mts +5 -0
- package/lib/index-H3peA2d_.d.ts +5 -0
- package/lib/internal-link-CqTu3Yi5.js +2278 -0
- package/lib/internal-link-CqTu3Yi5.js.map +1 -0
- package/lib/internal-link-D8jJal8P.d.mts +9 -0
- package/lib/internal-link-DCSEl1jM.d.ts +9 -0
- package/lib/internal-link-NQb751uB.mjs +2299 -0
- package/lib/internal-link-NQb751uB.mjs.map +1 -0
- package/lib/internal-links-BF-974mA.mjs +52 -0
- package/lib/internal-links-BF-974mA.mjs.map +1 -0
- package/lib/internal-links-CBkMU8cY.js +58 -0
- package/lib/internal-links-CBkMU8cY.js.map +1 -0
- package/lib/logo/constants.d.mts +3 -0
- package/lib/logo/constants.d.ts +3 -0
- package/lib/logo/constants.js +5 -0
- package/lib/logo/constants.mjs +3 -0
- package/lib/logo/index.d.mts +42 -0
- package/lib/logo/index.d.ts +42 -0
- package/lib/logo/index.js +8 -0
- package/lib/logo/index.mjs +5 -0
- package/lib/logo-CC5oU9Qb.mjs +64 -0
- package/lib/logo-CC5oU9Qb.mjs.map +1 -0
- package/lib/logo-D4M-1sGD.js +83 -0
- package/lib/logo-D4M-1sGD.js.map +1 -0
- package/lib/paragraph-BWXQNQtX.mjs +30 -0
- package/lib/paragraph-BWXQNQtX.mjs.map +1 -0
- package/lib/paragraph-CJvb0_cM.js +56 -0
- package/lib/paragraph-CJvb0_cM.js.map +1 -0
- package/lib/release-branch-CRZV4Ivz.js +18 -0
- package/lib/release-branch-CRZV4Ivz.js.map +1 -0
- package/lib/release-branch-CsBbhuYE.d.ts +14 -0
- package/lib/release-branch-DNCD1uH_.mjs +12 -0
- package/lib/release-branch-DNCD1uH_.mjs.map +1 -0
- package/lib/release-branch-DZwlCiWD.d.mts +14 -0
- package/lib/styles.css +1599 -0
- package/lib/tab-bar/constants.d.mts +16 -0
- package/lib/tab-bar/constants.d.ts +16 -0
- package/lib/tab-bar/constants.js +7 -0
- package/lib/tab-bar/constants.mjs +7 -0
- package/lib/tab-bar/index.d.mts +10 -0
- package/lib/tab-bar/index.d.ts +9 -0
- package/lib/tab-bar/index.js +18 -0
- package/lib/tab-bar/index.mjs +18 -0
- package/lib/tab-bar/theme.d.mts +10 -0
- package/lib/tab-bar/theme.d.ts +10 -0
- package/lib/tab-bar/theme.js +4 -0
- package/lib/tab-bar/theme.mjs +4 -0
- package/lib/tab-bar-CBL2tDXk.mjs +62 -0
- package/lib/tab-bar-CBL2tDXk.mjs.map +1 -0
- package/lib/tab-bar-ZRrpziiN.js +78 -0
- package/lib/tab-bar-ZRrpziiN.js.map +1 -0
- package/lib/text/constants.d.mts +3 -0
- package/lib/text/constants.d.ts +3 -0
- package/lib/text/constants.js +4 -0
- package/lib/text/constants.mjs +3 -0
- package/lib/text/heading.d.mts +31 -0
- package/lib/text/heading.d.ts +31 -0
- package/lib/text/heading.js +9 -0
- package/lib/text/heading.mjs +4 -0
- package/lib/text/paragraph.d.mts +25 -0
- package/lib/text/paragraph.d.ts +25 -0
- package/lib/text/paragraph.js +7 -0
- package/lib/text/paragraph.mjs +4 -0
- package/lib/theme-BDGfJ8n-.d.ts +13 -0
- package/lib/theme-BErS2Qs6.mjs +13 -0
- package/lib/theme-BErS2Qs6.mjs.map +1 -0
- package/lib/theme-BG6yZVj-.mjs +11 -0
- package/lib/theme-BG6yZVj-.mjs.map +1 -0
- package/lib/theme-BPB1kPtQ.js +18 -0
- package/lib/theme-BPB1kPtQ.js.map +1 -0
- package/lib/theme-ClamfAy8.d.mts +13 -0
- package/lib/theme-DDBlIbeS.js +17 -0
- package/lib/theme-DDBlIbeS.js.map +1 -0
- package/lib/title-bar/index.d.mts +58 -0
- package/lib/title-bar/index.d.ts +58 -0
- package/lib/title-bar/index.js +153 -0
- package/lib/title-bar/index.js.map +1 -0
- package/lib/title-bar/index.mjs +145 -0
- package/lib/title-bar/index.mjs.map +1 -0
- package/lib/type-C4hJK9H9.d.ts +11 -0
- package/lib/type-FR-fOZvz.d.mts +11 -0
- package/lib/types/index.d.mts +2 -0
- package/lib/types/index.d.ts +2 -0
- package/lib/types/index.js +0 -0
- package/lib/types/index.mjs +1 -0
- package/package.json +53 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button-DyUYGG90.mjs","names":["getDisabledContainerTheme: ThemeFunc","getActiveContainerTheme: ThemeFunc","getContainerTheme: ThemeFunc","TextButton: FC<TextButtonProps> & {\n Size: typeof SIZE\n Style: typeof STYLE\n Theme: typeof THEME\n}","getPrimaryIconButtonTheme: ThemeFunc","getSecondaryIconButtonTheme: ThemeFunc","IconButton: React.FC<IconButtonProps> & {\n Theme: typeof THEME\n Type: typeof TYPE\n}","MenuButton: React.FC<MenuButtonProps> & { FontWeight: typeof WEIGHT }","PillButton: FC<PillButtonProps> & {\n Theme: typeof THEME\n Type: typeof TYPE\n Size: typeof SIZE\n Style: typeof STYLE\n}","IconWithTextButton: FC<IconWithTextButtonProps> & {\n Theme: typeof THEME\n}"],"sources":["../src/button/components/text-button/theme.ts","../src/button/components/text-button/index.tsx","../src/button/components/icon-button/theme.ts","../src/button/components/icon-button/index.tsx","../src/button/components/menu-button/index.tsx","../src/button/components/pill-button/theme.ts","../src/button/components/pill-button/index.tsx","../src/button/components/icon-with-text-button/theme.ts","../src/button/components/icon-with-text-button/index.tsx","../src/button/index.ts"],"sourcesContent":["// theme\nimport { THEME, type Theme } from '../../../constants/theme'\n// type\nimport type { ClassArray } from 'clsx'\n// constants\nimport { STYLE, type Style } from '../../constants'\n\ntype ThemeFunc = (theme: Theme, style?: Style) => ClassArray\n\nexport const getDisabledContainerTheme: ThemeFunc = (theme) => {\n return [\n // default theme\n 'text-gray-400 hover:text-gray-400',\n // photography & transparent theme\n {\n 'text-gray-500 hover:text-gray-500':\n theme === THEME.photography || theme === THEME.transparent,\n },\n ]\n}\n\nexport const getActiveContainerTheme: ThemeFunc = (theme, style) => {\n return [\n // default theme\n {\n 'text-gray-800 hover:text-gray-800': style === STYLE.light,\n 'text-brand-heavy hover:text-brand-heavy': style === STYLE.dark,\n 'text-brand-dark hover:text-brand-dark': style === STYLE.brand,\n },\n // photography theme\n {\n 'text-gray-400 hover:text-gray-400':\n theme === THEME.photography && style === STYLE.light,\n 'text-supportive-pastel hover:text-supportive-pastel':\n theme === THEME.photography && style !== STYLE.light,\n },\n // transparent theme\n {\n 'text-gray-black hover:text-gray-black':\n theme === THEME.transparent && style === STYLE.light,\n 'text-gray-200 hover:text-gray-200':\n theme === THEME.transparent && style !== STYLE.light,\n },\n ]\n}\n\nexport const getContainerTheme: ThemeFunc = (theme, style) => {\n return [\n // default theme\n {\n 'text-gray-600 hover:text-gray-800': style === STYLE.light,\n 'text-gray-800 hover:text-brand-heavy': style === STYLE.dark,\n 'text-brand-heavy hover:text-brand-dark': style === STYLE.brand,\n },\n // photography\n {\n 'text-gray-300 hover:text-gray-400':\n theme === THEME.photography && style === STYLE.light,\n 'text-gray-white hover:text-supportive-pastel':\n theme === THEME.photography && style === STYLE.dark,\n 'text-supportive-faded hover:text-supportive-pastel':\n theme === THEME.photography && style === STYLE.brand,\n },\n // transparent theme\n {\n 'text-gray-800 hover:text-gray-black':\n theme === THEME.transparent && style === STYLE.light,\n 'text-gray-white hover:text-gray-200':\n theme === THEME.transparent && style !== STYLE.light,\n },\n ]\n}\n","import { type FC, type ReactElement, useMemo } from 'react'\nimport clsx from 'clsx'\n// components\nimport { P1, P2 } from '../../../text/paragraph'\n// constants\nimport { SIZE, type Size, STYLE, type Style } from '../../constants'\nimport { THEME, type Theme } from '../../../constants/theme'\n// utils\nimport {\n getContainerTheme,\n getActiveContainerTheme,\n getDisabledContainerTheme,\n} from './theme'\n\ntype TextButtonProps = {\n text: string\n leftIconComponent?: ReactElement\n rightIconComponent?: ReactElement\n size?: Size\n style?: Style\n theme?: Theme\n active?: boolean\n disabled?: boolean\n loading?: boolean\n className?: string\n}\nconst TextButton: FC<TextButtonProps> & {\n Size: typeof SIZE\n Style: typeof STYLE\n Theme: typeof THEME\n} = ({\n text,\n leftIconComponent,\n rightIconComponent,\n size = SIZE.s,\n theme = THEME.normal,\n style = STYLE.dark,\n active = false,\n disabled = false,\n loading = false,\n className = '',\n}) => {\n const TextJSX = useMemo(\n () =>\n size === SIZE.s ? (\n <P2 text={text} weight={P2.Weight.bold} />\n ) : (\n <P1 text={text} weight={P1.Weight.bold} />\n ),\n [size, text]\n )\n const themeClass = useMemo(() => {\n const themeFunc = disabled\n ? getDisabledContainerTheme\n : active\n ? getActiveContainerTheme\n : getContainerTheme\n return themeFunc(theme, style)\n }, [disabled, active, theme, style])\n\n return (\n <div\n className={clsx(\n 'flex items-center',\n {\n 'cursor-default': disabled,\n 'cursor-pointer': !disabled,\n },\n themeClass,\n className\n )}\n >\n <div className=\"relative flex justify-center items-center\">\n <div\n className={clsx('flex justify-center items-center', {\n 'opacity-0': loading,\n 'opacity-100': !loading,\n })}\n >\n <div className=\"flex items-center mr-[4px]\">{leftIconComponent}</div>\n {TextJSX}\n <div className=\"flex items-center ml-[4px]\">{rightIconComponent}</div>\n </div>\n <span\n className={clsx(\n 'inline-block absolute box-border animate-spin',\n 'border-2 border-solid border-gray-400 border-t-gray-600 rounded-[50%]',\n {\n 'size-[18px]': size === SIZE.s,\n 'size-[24px]': size === SIZE.l,\n },\n {\n 'opacity-0': !loading,\n 'opacity-100': loading,\n }\n )}\n />\n </div>\n </div>\n )\n}\nTextButton.Size = SIZE\nTextButton.Style = STYLE\nTextButton.Theme = THEME\n\nexport default TextButton\n","// constants\nimport { THEME, type Theme } from '../../../constants/theme'\n// type\nimport type { ClassArray } from 'clsx'\n\ntype ThemeFunc = (\n theme: Theme,\n active: boolean,\n disabled: boolean\n) => ClassArray\n\nexport const getPrimaryIconButtonTheme: ThemeFunc = (\n theme,\n active,\n disabled\n) => {\n if (disabled) {\n return ['text-gray-400 hover:text-gray-400']\n }\n return [\n // default theme\n 'text-gray-600 hover:text-gray-800 [&>svg]:bg-gray-600 desktop:[&>svg]:hover:bg-gray-800',\n {\n 'text-brand-heavy hover:text-brand-heavy [&>svg]:bg-brand-heavy desktop:[&>svg]:hover:bg-brand-heavy':\n theme === THEME.normal && active,\n },\n // photography theme\n {\n 'text-gray-white hover:text-supportive-pastel [&>svg]:bg-gray-white [&>svg]:hover:bg-supportive-pastel':\n theme === THEME.photography && !active,\n 'text-supportive-pastel hover:text-supportive-pastel [&>svg]:bg-supportive-pastel [&>svg]:hover:bg-supportive-pastel':\n theme === THEME.photography && active,\n },\n // transparent theme\n {\n 'text-gray-white hover:text-gray-200 [&>svg]:bg-gray-white [&>svg]:hover:bg-gray-200':\n theme === THEME.transparent && !active,\n 'text-gray-white hover:text-gray-white [&>svg]:bg-gray-white [&>svg]:hover:bg-gray-white':\n theme === THEME.transparent && active,\n },\n ]\n}\n\nexport const getSecondaryIconButtonTheme: ThemeFunc = (\n theme,\n active,\n disabled\n) => {\n if (disabled) {\n return ['text-gray-400 hover:text-gray-400']\n }\n return [\n // default theme\n 'text-gray-400 hover:text-gray-600 [&>svg]:bg-gray-400 [&>svg]:hover:bg-gray-600',\n {\n 'text-brand-heavy hover:text-brand-heavy [&>svg]:bg-brand-heavy [&>svg]:hover:bg-brand-heavy':\n theme === THEME.normal && active,\n },\n // photography theme\n {\n 'text-gray-400 hover:text-supportive-pastel [&>svg]:bg-gray-400 [&>svg]:hover:bg-supportive-pastel':\n theme === THEME.photography && !active,\n 'text-supportive-pastel hover:text-supportive-pastel [&>svg]:bg-supportive-pastel [&>svg]:hover:bg-supportive-pastel':\n theme === THEME.photography && active,\n },\n // transparent theme\n {\n 'text-gray-600 hover:text-gray-white [&>svg]:bg-gray-600 [&>svg]:hover:bg-gray-white':\n theme === THEME.transparent && !active,\n 'text-gray-600 hover:text-gray-600 [&>svg]:bg-gray-600 [&>svg]:hover:bg-gray-600':\n theme === THEME.transparent && active,\n },\n ]\n}\n","import type React from 'react'\nimport clsx from 'clsx'\n// constants\nimport { THEME, type Theme } from '../../../constants/theme'\nimport { TYPE, type Type } from '../../constants'\n// theme\nimport { getPrimaryIconButtonTheme, getSecondaryIconButtonTheme } from './theme'\n\ntype IconButtonProps = {\n iconComponent: React.ReactElement\n theme?: Theme\n type?: Type\n disabled?: boolean\n active?: boolean\n className?: string\n onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void\n}\nconst IconButton: React.FC<IconButtonProps> & {\n Theme: typeof THEME\n Type: typeof TYPE\n} = ({\n iconComponent,\n theme = THEME.normal,\n type = TYPE.primary,\n disabled = false,\n active = false,\n className = '',\n onClick = () => {},\n}) => {\n const themeClass =\n type === TYPE.primary\n ? getPrimaryIconButtonTheme(theme, active, disabled)\n : getSecondaryIconButtonTheme(theme, active, disabled)\n return (\n <button\n className={clsx(\n 'flex',\n '[&>svg]:w-[24px] [&>svg]:h-[24px]',\n disabled ? 'cursor-default' : 'cursor-pointer',\n themeClass,\n className\n )}\n onClick={disabled ? () => {} : onClick}\n type=\"button\"\n >\n {iconComponent}\n </button>\n )\n}\n\nIconButton.Theme = THEME\nIconButton.Type = TYPE\n\nexport default IconButton\n","import type React from 'react'\nimport clsx from 'clsx'\n// P1\nimport { P1 } from '../../../text/paragraph'\nimport { WEIGHT, type Weight } from '../../../text/constants'\n\ntype MenuButtonProps = {\n text: string\n color: string\n fontWeight: Weight\n className?: string\n p1ClassName?: string\n}\nconst MenuButton: React.FC<MenuButtonProps> & { FontWeight: typeof WEIGHT } = ({\n text,\n color,\n fontWeight,\n className = '',\n p1ClassName = '',\n}) => {\n return (\n <div className={clsx('cursor-pointer', color, className)}>\n <P1\n text={text}\n weight={fontWeight}\n className={clsx('py-[8px]', p1ClassName)}\n />\n </div>\n )\n}\nMenuButton.FontWeight = WEIGHT\n\nexport default MenuButton\n","import { THEME, type Theme } from '../../../constants/theme'\nimport { STYLE, type Style } from '../../constants'\n\nexport const getFilledPillButtonTheme = (\n theme: Theme,\n disabled: boolean,\n style: Style\n) => {\n if (disabled) {\n switch (theme) {\n case THEME.transparent:\n switch (style) {\n case STYLE.light:\n return {\n color: 'text-gray-white',\n bgColor: 'bg-gray-400',\n hoverColor: 'hover:text-gray-white',\n hoverBgColor: 'hover:bg-gray-400',\n borderColor: 'border-gray-400',\n svgBgColor: '[&>svg]:bg-gray-white',\n borderHoverColor: 'hover:border-gray-400',\n svgHoverBgColor: 'hover:[&>svg]:bg-gray-white',\n }\n default:\n return {\n color: 'text-gray-700',\n bgColor: 'bg-gray-500',\n hoverColor: 'hover:text-gray-700',\n hoverBgColor: 'hover:bg-gray-500',\n borderColor: 'border-gray-500',\n svgBgColor: '[&>svg]:bg-gray-700',\n borderHoverColor: 'hover:border-gray-500',\n svgHoverBgColor: 'hover:[&>svg]:bg-gray-500',\n }\n }\n case THEME.photography:\n return {\n color: 'text-gray-700',\n bgColor: 'bg-gray-500',\n hoverColor: 'hover:text-gray-700',\n hoverBgColor: 'hover:bg-gray-500',\n borderColor: 'border-gray-500',\n svgBgColor: '[&>svg]:bg-gray-700',\n borderHoverColor: 'hover:border-gray-500',\n svgHoverBgColor: 'hover:[&>svg]:bg-gray-700',\n }\n default:\n return {\n color: 'text-gray-white',\n bgColor: 'bg-gray-400',\n hoverColor: 'hover:text-gray-white',\n hoverBgColor: 'hover:bg-gray-400',\n borderColor: 'border-gray-400',\n svgBgColor: '[&>svg]:bg-gray-white',\n borderHoverColor: 'hover:border-gray-400',\n svgHoverBgColor: 'hover:[&>svg]:bg-gray-white',\n }\n }\n }\n switch (theme) {\n case THEME.photography:\n switch (style) {\n case STYLE.dark:\n return {\n color: 'text-photo-dark',\n bgColor: 'bg-gray-white',\n hoverColor: 'hover:text-photo-dark',\n hoverBgColor: 'hover:bg-gray-200',\n borderColor: 'border-gray-white',\n svgBgColor: '[&>svg]:bg-photo-dark',\n borderHoverColor: 'hover:border-gray-200',\n svgHoverBgColor: 'hover:[&>svg]:bg-photo-dark',\n }\n case STYLE.light:\n return {\n color: 'text-photo-dark',\n bgColor: 'bg-gray-300',\n hoverColor: 'hover:text-photo-dark',\n hoverBgColor: 'hover:bg-gray-400',\n borderColor: 'border-gray-300',\n svgBgColor: '[&>svg]:bg-photo-dark',\n borderHoverColor: 'hover:border-gray-400',\n svgHoverBgColor: 'hover:[&>svg]:bg-photo-dark',\n }\n default:\n return {\n color: 'text-photo-dark',\n bgColor: 'bg-supportive-faded',\n hoverColor: 'hover:text-photo-dark',\n hoverBgColor: 'hover:bg-supportive-pastel',\n borderColor: 'border-supportive-faded',\n svgBgColor: '[&>svg]:bg-photo-dark',\n borderHoverColor: 'hover:border-supportive-pastel',\n svgHoverBgColor: 'hover:[&>svg]:bg-photo-dark',\n }\n }\n case THEME.transparent:\n switch (style) {\n case STYLE.dark:\n return {\n color: 'text-gray-800',\n bgColor: 'bg-gray-300',\n hoverColor: 'hover:text-gray-800',\n hoverBgColor: 'hover:bg-gray-400',\n borderColor: 'border-gray-300',\n svgBgColor: '[&>svg]:bg-gray-800',\n borderHoverColor: 'hover:border-gray-400',\n svgHoverBgColor: 'hover:[&>svg]:bg-gray-800',\n }\n case STYLE.light:\n return {\n color: 'text-gray-white',\n bgColor: 'bg-gray-800',\n hoverColor: 'hover:text-gray-white',\n hoverBgColor: 'hover:bg-gray-black',\n borderColor: 'border-gray-800',\n svgBgColor: '[&>svg]:bg-gray-white',\n borderHoverColor: 'hover:border-gray-black',\n svgHoverBgColor: 'hover:[&>svg]:bg-gray-white',\n }\n default:\n return {\n color: 'text-gray-800',\n bgColor: 'bg-gray-white',\n hoverColor: 'hover:text-gray-800',\n hoverBgColor: 'hover:bg-gray-200',\n borderColor: 'border-gray-white',\n svgBgColor: '[&>svg]:bg-gray-800',\n borderHoverColor: 'hover:border-gray-200',\n svgHoverBgColor: 'hover:[&>svg]:bg-gray-800',\n }\n }\n default:\n switch (style) {\n case STYLE.dark:\n return {\n color: 'text-gray-white',\n bgColor: 'bg-gray-800',\n hoverColor: 'hover:text-gray-white',\n hoverBgColor: 'hover:bg-gray-black',\n borderColor: 'border-gray-800',\n svgBgColor: '[&>svg]:bg-gray-white',\n borderHoverColor: 'hover:border-gray-black',\n svgHoverBgColor: 'hover:[&>svg]:bg-gray-white',\n }\n case STYLE.light:\n return {\n color: 'text-gray-800',\n bgColor: 'bg-gray-white',\n hoverColor: 'hover:text-gray-800',\n hoverBgColor: 'hover:bg-gray-200',\n borderColor: 'border-gray-white',\n svgBgColor: '[&>svg]:bg-gray-800',\n borderHoverColor: 'hover:border-gray-200',\n svgHoverBgColor: 'hover:[&>svg]:bg-gray-800',\n }\n default:\n return {\n color: 'text-gray-white',\n bgColor: 'bg-brand-heavy',\n hoverColor: 'hover:text-gray-white',\n hoverBgColor: 'hover:bg-brand-dark',\n borderColor: 'border-brand-heavy',\n svgBgColor: '[&>svg]:bg-gray-white',\n borderHoverColor: 'hover:border-brand-dark',\n svgHoverBgColor: 'hover:[&>svg]:bg-gray-white',\n }\n }\n }\n}\n\nexport const getOutlinePillButtonTheme = (\n theme: Theme,\n disabled: boolean,\n style: Style\n) => {\n if (disabled) {\n switch (theme) {\n case THEME.transparent:\n switch (style) {\n case STYLE.light:\n return {\n color: 'text-gray-400',\n bgColor: 'bg-gray-400',\n hoverColor: 'hover:text-gray-400',\n hoverBgColor: 'hover:bg-gray-400',\n borderColor: 'border-gray-400',\n svgBgColor: '[&>svg]:bg-gray-400',\n borderHoverColor: 'hover:border-gray-400',\n svgHoverBgColor: 'hover:[&>svg]:bg-gray-400',\n }\n default:\n return {\n color: 'text-gray-500',\n bgColor: 'bg-gray-500',\n hoverColor: 'hover:text-gray-500',\n hoverBgColor: 'hover:bg-gray-500',\n borderColor: 'border-gray-500',\n svgBgColor: '[&>svg]:bg-gray-500',\n borderHoverColor: 'hover:border-gray-500',\n svgHoverBgColor: 'hover:[&>svg]:bg-gray-500',\n }\n }\n case THEME.photography:\n return {\n color: 'text-gray-500',\n bgColor: 'bg-gray-500',\n hoverColor: 'hover:text-gray-500',\n hoverBgColor: 'hover:bg-gray-500',\n borderColor: 'border-gray-500',\n svgBgColor: '[&>svg]:bg-gray-500',\n borderHoverColor: 'hover:border-gray-500',\n svgHoverBgColor: 'hover:[&>svg]:bg-gray-500',\n }\n default:\n return {\n color: 'text-gray-400',\n bgColor: 'bg-gray-400',\n hoverColor: 'hover:text-gray-400',\n hoverBgColor: 'hover:bg-gray-400',\n borderColor: 'border-gray-400',\n svgBgColor: '[&>svg]:bg-gray-400',\n borderHoverColor: 'hover:border-gray-400',\n svgHoverBgColor: 'hover:[&>svg]:bg-gray-400',\n }\n }\n }\n\n switch (theme) {\n case THEME.photography:\n switch (style) {\n case STYLE.dark:\n return {\n color: 'text-gray-white',\n bgColor: 'bg-gray-white',\n hoverColor: 'hover:text-gray-200',\n hoverBgColor: 'hover:bg-gray-200',\n borderColor: 'border-gray-white',\n svgBgColor: '[&>svg]:bg-gray-white',\n borderHoverColor: 'hover:border-gray-200',\n svgHoverBgColor: 'hover:[&>svg]:bg-gray-200',\n }\n case STYLE.light:\n return {\n color: 'text-gray-300',\n bgColor: 'bg-gray-300',\n hoverColor: 'hover:text-gray-400',\n hoverBgColor: 'hover:bg-gray-400',\n borderColor: 'border-gray-300',\n svgBgColor: '[&>svg]:bg-gray-300',\n borderHoverColor: 'hover:border-gray-400',\n svgHoverBgColor: 'hover:[&>svg]:bg-gray-400',\n }\n default:\n return {\n color: 'text-supportive-faded',\n bgColor: 'bg-supportive-faded',\n hoverColor: 'hover:text-supportive-pastel',\n hoverBgColor: 'hover:bg-supportive-pastel',\n borderColor: 'border-supportive-faded',\n svgBgColor: '[&>svg]:bg-supportive-faded',\n borderHoverColor: 'hover:border-supportive-pastel',\n svgHoverBgColor: 'hover:[&>svg]:bg-supportive-pastel',\n }\n }\n case THEME.transparent:\n switch (style) {\n case STYLE.dark:\n return {\n color: 'text-gray-300',\n bgColor: 'bg-gray-300',\n hoverColor: 'hover:text-gray-400',\n hoverBgColor: 'hover:bg-gray-400',\n borderColor: 'border-gray-300',\n svgBgColor: '[&>svg]:bg-gray-300',\n borderHoverColor: 'hover:border-gray-400',\n svgHoverBgColor: 'hover:[&>svg]:bg-gray-400',\n }\n case STYLE.light:\n return {\n color: 'text-gray-800',\n bgColor: 'bg-gray-800',\n hoverColor: 'hover:text-gray-black',\n hoverBgColor: 'hover:bg-gray-black',\n borderColor: 'border-gray-800',\n svgBgColor: '[&>svg]:bg-gray-800',\n borderHoverColor: 'hover:border-gray-black',\n svgHoverBgColor: 'hover:[&>svg]:bg-gray-black',\n }\n default:\n return {\n color: 'text-gray-white',\n bgColor: 'bg-gray-white',\n hoverColor: 'hover:text-gray-200',\n hoverBgColor: 'hover:bg-gray-200',\n borderColor: 'border-gray-white',\n svgBgColor: '[&>svg]:bg-gray-white',\n borderHoverColor: 'hover:border-gray-200',\n svgHoverBgColor: 'hover:[&>svg]:bg-gray-200',\n }\n }\n default:\n switch (style) {\n case STYLE.dark:\n return {\n color: 'text-gray-800',\n bgColor: 'bg-gray-800',\n hoverColor: 'hover:text-gray-black',\n hoverBgColor: 'hover:bg-gray-black',\n borderColor: 'border-gray-800',\n svgBgColor: '[&>svg]:bg-gray-800',\n borderHoverColor: 'hover:border-gray-black',\n svgHoverBgColor: 'hover:[&>svg]:bg-gray-black',\n }\n case STYLE.light:\n return {\n color: 'text-gray-800',\n bgColor: 'bg-gray-white',\n hoverColor: 'hover:text-gray-800',\n hoverBgColor: 'hover:bg-gray-200',\n borderColor: 'border-gray-white',\n svgBgColor: '[&>svg]:bg-gray-800',\n borderHoverColor: 'hover:border-gray-200',\n svgHoverBgColor: 'hover:[&>svg]:bg-gray-800',\n }\n default:\n return {\n color: 'text-brand-heavy',\n bgColor: 'bg-brand-heavy',\n hoverColor: 'hover:text-brand-dark',\n hoverBgColor: 'hover:bg-brand-dark',\n borderColor: 'border-brand-heavy',\n svgBgColor: '[&>svg]:bg-brand-heavy',\n borderHoverColor: 'hover:border-brand-dark',\n svgHoverBgColor: 'hover:[&>svg]:bg-brand-dark',\n }\n }\n }\n}\n","import { useMemo, type FC } from 'react'\nimport clsx from 'clsx'\n// text\nimport { P1, P2 } from '../../../text/paragraph'\n// constants\nimport {\n SIZE,\n type Size,\n STYLE,\n type Style,\n TYPE,\n type Type,\n} from '../../constants'\nimport { THEME, type Theme } from '../../../constants/theme'\n// theme\nimport { getFilledPillButtonTheme, getOutlinePillButtonTheme } from './theme'\n\ntype PillButtonProps = {\n text?: string\n leftIconComponent?: React.ReactElement\n rightIconComponent?: React.ReactElement\n size?: Size\n theme?: Theme\n type?: Type\n style?: Style\n disabled?: boolean\n loading?: boolean\n className?: string\n}\nconst PillButton: FC<PillButtonProps> & {\n Theme: typeof THEME\n Type: typeof TYPE\n Size: typeof SIZE\n Style: typeof STYLE\n} = ({\n text = '',\n leftIconComponent = null,\n rightIconComponent = null,\n size = SIZE.s,\n theme = THEME.normal,\n type = TYPE.primary,\n style = STYLE.brand,\n disabled = false,\n loading = false,\n className = '',\n}) => {\n const themeFunc =\n type === TYPE.primary ? getFilledPillButtonTheme : getOutlinePillButtonTheme\n const {\n color,\n bgColor,\n hoverColor,\n hoverBgColor,\n borderColor,\n svgBgColor,\n borderHoverColor,\n svgHoverBgColor,\n } = themeFunc(theme, disabled, style)\n\n const padding = size === SIZE.s ? 'py-[4px] px-[12px]' : 'py-[8px] px-[16px]'\n const iconSize =\n size === SIZE.s\n ? '[&>svg]:h-[18px] [&>svg]:w-[18px]'\n : '[&>svg]:h-[24px] [&>svg]:w-[24px]'\n\n const TextJSX = useMemo(\n () =>\n size === SIZE.s ? (\n <P2 text={text} weight={P2.Weight.bold} />\n ) : (\n <P1 text={text} weight={P1.Weight.bold} />\n ),\n [size, text]\n )\n\n return (\n <div\n className={clsx(\n 'w-fit flex items-center rounded-[40px] border-solid border-[1.5px]',\n borderColor,\n color,\n padding,\n disabled || loading ? 'cursor-not-allowed' : 'cursor-pointer',\n type === TYPE.primary ? bgColor : 'bg-transparent',\n iconSize,\n svgBgColor,\n hoverColor,\n type === TYPE.primary ? hoverBgColor : 'bg-transparent',\n borderHoverColor,\n svgHoverBgColor,\n className\n )}\n >\n <div className=\"relative flex justify-center items-center\">\n <div\n className={clsx('flex justify-center items-center', {\n 'opacity-0': loading,\n 'opacity-100': !loading,\n })}\n >\n <div className=\"flex items-center mr-[4px]\">{leftIconComponent}</div>\n {TextJSX}\n <div className=\"flex items-center ml-[4px]\">{rightIconComponent}</div>\n </div>\n <span\n className={clsx(\n 'inline-block absolute box-border animate-spin',\n 'border-2 border-solid border-gray-400 border-t-gray-600 rounded-[50%]',\n {\n 'size-[18px]': size === SIZE.s,\n 'size-[24px]': size === SIZE.l,\n },\n {\n 'opacity-0': !loading,\n 'opacity-100': loading,\n }\n )}\n />\n </div>\n </div>\n )\n}\nPillButton.Theme = THEME\nPillButton.Type = TYPE\nPillButton.Size = SIZE\nPillButton.Style = STYLE\n\nexport default PillButton\n","import { THEME, type Theme } from '../../../constants/theme'\n\nexport const getIconWithTextButtonTheme = (\n theme: Theme,\n isActive: boolean,\n isDisabled: boolean\n) => {\n if (isDisabled) {\n return {\n color: 'text-gray-400',\n hoverColor: 'hover:text-gray-400',\n svgBgColor: '[&>svg]:bg-gray-400',\n svgHoverBgColor: '[&>svg]:hover:bg-gray-400',\n }\n }\n\n const switchKey = isActive ? `${theme}-active` : theme\n switch (switchKey) {\n case THEME.photography:\n return {\n color: 'text-gray-200',\n hoverColor: 'hover:text-supportive-pastel',\n svgBgColor: '[&>svg]:bg-gray-200',\n svgHoverBgColor: '[&>svg]:hover:bg-supportive-pastel',\n }\n case `${THEME.photography}-active`:\n return {\n color: 'text-supportive-pastel',\n hoverColor: 'hover:text-supportive-pastel',\n svgBgColor: '[&>svg]:bg-supportive-pastel',\n svgHoverBgColor: '[&>svg]:hover:bg-supportive-pastel',\n }\n case THEME.transparent:\n return {\n color: 'text-gray-100',\n hoverColor: 'hover:text-gray-200',\n svgBgColor: '[&>svg]:bg-gray-100',\n svgHoverBgColor: '[&>svg]:hover:bg-gray-200',\n }\n case `${THEME.transparent}-active`:\n return {\n color: 'text-gray-white',\n hoverColor: 'hover:text-gray-white',\n svgBgColor: '[&>svg]:bg-gray-white',\n svgHoverBgColor: '[&>svg]:hover:bg-gray-white',\n }\n case `${THEME.normal}-active`:\n return {\n color: 'text-brand-heavy',\n hoverColor: 'hover:text-brand-heavy',\n svgBgColor: '[&>svg]:bg-brand-heavy',\n svgHoverBgColor: '[&>svg]:hover:bg-brand-heavy',\n }\n default:\n return {\n color: 'text-gray-600',\n hoverColor: 'hover:text-brand-heavy',\n svgBgColor: '[&>svg]:bg-gray-600',\n svgHoverBgColor: '[&>svg]:hover:bg-brand-heavy',\n }\n }\n}\n","import type { FC } from 'react'\nimport clsx from 'clsx'\n// constants\nimport { THEME, type Theme } from '../../../constants/theme'\n// theme\nimport { getIconWithTextButtonTheme } from './theme'\n// text\nimport { P4 } from '../../../text/paragraph'\n\ntype IconWithTextButtonProps = {\n text?: string\n iconComponent: React.ReactNode\n theme?: Theme\n disabled?: boolean\n active?: boolean\n hideText?: boolean\n className?: string\n onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void\n}\nconst IconWithTextButton: FC<IconWithTextButtonProps> & {\n Theme: typeof THEME\n} = ({\n text = '',\n iconComponent,\n theme = THEME.normal,\n disabled = false,\n active = false,\n hideText = false,\n className = '',\n onClick = () => {},\n}) => {\n const { color, hoverColor, svgBgColor, svgHoverBgColor } =\n getIconWithTextButtonTheme(theme, active, disabled)\n const handleClick = (e: React.MouseEvent<HTMLButtonElement>) => {\n if (disabled) {\n return\n }\n onClick(e)\n }\n return (\n <button\n className={clsx(\n 'flex flex-col items-center',\n '[&>svg]:w-[24px] [&>svg]:h-[24px]',\n color,\n hoverColor,\n svgBgColor,\n svgHoverBgColor,\n disabled ? 'cursor-not-allowed' : 'cursor-pointer',\n className\n )}\n type=\"button\"\n onClick={handleClick}\n >\n {iconComponent}\n <P4\n text={text}\n weight={P4.Weight.normal}\n className={clsx(\n 'mt-[2px] transition-opacity duration-[100ms]',\n hideText ? 'opacity-0' : 'opacity-100',\n hideText ? 'max-h-0' : 'max-h-none'\n )}\n />\n </button>\n )\n}\nIconWithTextButton.Theme = THEME\nexport default IconWithTextButton\n","import TextButton from './components/text-button'\nimport IconButton from './components/icon-button'\nimport MenuButton from './components/menu-button'\nimport PillButton from './components/pill-button'\nimport IconWithTextButton from './components/icon-with-text-button'\n\nexport { TextButton, IconButton, MenuButton, PillButton, IconWithTextButton }\n\nexport default {\n TextButton,\n IconButton,\n MenuButton,\n PillButton,\n IconWithTextButton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;CACJ,MAAM,EAAE,OAAO,YAAY,YAAY,oBACrC,2BAA2B,OAAO,QAAQ,SAAS;CACrD,MAAM,eAAe,MAA2C;AAC9D,MAAI,SACF;AAEF,UAAQ,EAAE;;AAEZ,QACE,qBAAC;EACC,WAAW,KACT,8BACA,qCACA,OACA,YACA,YACA,iBACA,WAAW,uBAAuB,kBAClC,UACD;EACD,MAAK;EACL,SAAS;aAER,eACD,oBAAC;GACO;GACN,QAAQ,GAAG,OAAO;GAClB,WAAW,KACT,gDACA,WAAW,cAAc,eACzB,WAAW,YAAY,aACxB;IACD;GACK;;AAGb,mBAAmB,QAAQ;AAC3B,oCAAe;;;;AC5Df,qBAAe;CACb;CACA;CACA;CACA;CACA;CACD"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
//#region rolldown:runtime
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __commonJS = (cb, mod) => function() {
|
|
9
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
13
|
+
key = keys[i];
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
15
|
+
get: ((k) => from[k]).bind(null, key),
|
|
16
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
return to;
|
|
20
|
+
};
|
|
21
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
22
|
+
value: mod,
|
|
23
|
+
enumerable: true
|
|
24
|
+
}) : target, mod));
|
|
25
|
+
|
|
26
|
+
//#endregion
|
|
27
|
+
|
|
28
|
+
Object.defineProperty(exports, '__commonJS', {
|
|
29
|
+
enumerable: true,
|
|
30
|
+
get: function () {
|
|
31
|
+
return __commonJS;
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
Object.defineProperty(exports, '__toESM', {
|
|
35
|
+
enumerable: true,
|
|
36
|
+
get: function () {
|
|
37
|
+
return __toESM;
|
|
38
|
+
}
|
|
39
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
//#region src/constants/external-links.d.ts
|
|
2
|
+
declare const EXTERNAL_LINKS: {
|
|
3
|
+
readonly monthlyDonation: "https://www.twreporter.org/donation/period";
|
|
4
|
+
readonly onceDonation: "https://www.twreporter.org/donation/one-time";
|
|
5
|
+
readonly openLab: "https://medium.com/twreporter";
|
|
6
|
+
readonly facebook: "https://www.facebook.com/twreporter/";
|
|
7
|
+
readonly instagram: "https://www.instagram.com/twreporter/";
|
|
8
|
+
readonly twitter: "https://twitter.com/tw_reporter_org";
|
|
9
|
+
readonly youtube: "https://www.youtube.com/c/TwreporterOrg";
|
|
10
|
+
readonly kidsReporter: "https://kids.twreporter.org/";
|
|
11
|
+
readonly publicationAndMerchandise: "https://twreporter.waca.ec/";
|
|
12
|
+
readonly lawmaker: "https://lawmaker.twreporter.org/";
|
|
13
|
+
};
|
|
14
|
+
//#endregion
|
|
15
|
+
export { EXTERNAL_LINKS };
|
|
16
|
+
//# sourceMappingURL=external-links.d.mts.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
//#region src/constants/external-links.d.ts
|
|
2
|
+
declare const EXTERNAL_LINKS: {
|
|
3
|
+
readonly monthlyDonation: "https://www.twreporter.org/donation/period";
|
|
4
|
+
readonly onceDonation: "https://www.twreporter.org/donation/one-time";
|
|
5
|
+
readonly openLab: "https://medium.com/twreporter";
|
|
6
|
+
readonly facebook: "https://www.facebook.com/twreporter/";
|
|
7
|
+
readonly instagram: "https://www.instagram.com/twreporter/";
|
|
8
|
+
readonly twitter: "https://twitter.com/tw_reporter_org";
|
|
9
|
+
readonly youtube: "https://www.youtube.com/c/TwreporterOrg";
|
|
10
|
+
readonly kidsReporter: "https://kids.twreporter.org/";
|
|
11
|
+
readonly publicationAndMerchandise: "https://twreporter.waca.ec/";
|
|
12
|
+
readonly lawmaker: "https://lawmaker.twreporter.org/";
|
|
13
|
+
};
|
|
14
|
+
//#endregion
|
|
15
|
+
export { EXTERNAL_LINKS };
|
|
16
|
+
//# sourceMappingURL=external-links.d.ts.map
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
//#region src/constants/internal-links.d.ts
|
|
2
|
+
declare const INTERNAL_LINKS: {
|
|
3
|
+
readonly home: "/";
|
|
4
|
+
readonly latest: "/latest";
|
|
5
|
+
readonly topics: "/topics";
|
|
6
|
+
readonly search: "/search";
|
|
7
|
+
readonly about: "/about-us";
|
|
8
|
+
readonly account: {
|
|
9
|
+
readonly index: "/account";
|
|
10
|
+
readonly donationPage: "/account/donation-history";
|
|
11
|
+
readonly emailSubscription: "/account/email-subscription";
|
|
12
|
+
readonly exclusiveOffers: "/account/exclusive-offers";
|
|
13
|
+
};
|
|
14
|
+
readonly myReading: {
|
|
15
|
+
readonly index: "/myreading";
|
|
16
|
+
readonly savedBookmarks: "/myreading/saved";
|
|
17
|
+
readonly browsingHistory: "/myreading/history";
|
|
18
|
+
};
|
|
19
|
+
readonly categories: {
|
|
20
|
+
readonly world: "/categories/world";
|
|
21
|
+
readonly humanRights: "/categories/humanrights";
|
|
22
|
+
readonly politicsAndSociety: "/categories/politics-and-society";
|
|
23
|
+
readonly health: "/categories/health";
|
|
24
|
+
readonly environment: "/categories/environment";
|
|
25
|
+
readonly econ: "/categories/econ";
|
|
26
|
+
readonly culture: "/categories/culture";
|
|
27
|
+
readonly education: "/categories/education";
|
|
28
|
+
readonly opinion: {
|
|
29
|
+
readonly index: "/categories/opinion";
|
|
30
|
+
readonly bookReview: "/categories/opinion/book-review";
|
|
31
|
+
readonly letter: "/categories/opinion/letter";
|
|
32
|
+
};
|
|
33
|
+
readonly podcast: {
|
|
34
|
+
readonly theRealStory: "/categories/podcast/the-real-story";
|
|
35
|
+
readonly onTheGround: "/categories/podcast/on-the-ground";
|
|
36
|
+
};
|
|
37
|
+
readonly foundation: {
|
|
38
|
+
readonly index: "/categories/foundation";
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
readonly humanStory: "/tags/58db34a30f56b40d001ae6a6";
|
|
42
|
+
readonly photography: "/photography";
|
|
43
|
+
readonly podcast: {
|
|
44
|
+
readonly aboutPodcast: "/a/podcast-list";
|
|
45
|
+
};
|
|
46
|
+
readonly infographic: "/tags/630f029461ca4e07004ef530";
|
|
47
|
+
readonly influenceReport: "/a/impact-and-annual-report";
|
|
48
|
+
};
|
|
49
|
+
//#endregion
|
|
50
|
+
export { INTERNAL_LINKS };
|
|
51
|
+
//# sourceMappingURL=internal-links.d.mts.map
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
//#region src/constants/internal-links.d.ts
|
|
2
|
+
declare const INTERNAL_LINKS: {
|
|
3
|
+
readonly home: "/";
|
|
4
|
+
readonly latest: "/latest";
|
|
5
|
+
readonly topics: "/topics";
|
|
6
|
+
readonly search: "/search";
|
|
7
|
+
readonly about: "/about-us";
|
|
8
|
+
readonly account: {
|
|
9
|
+
readonly index: "/account";
|
|
10
|
+
readonly donationPage: "/account/donation-history";
|
|
11
|
+
readonly emailSubscription: "/account/email-subscription";
|
|
12
|
+
readonly exclusiveOffers: "/account/exclusive-offers";
|
|
13
|
+
};
|
|
14
|
+
readonly myReading: {
|
|
15
|
+
readonly index: "/myreading";
|
|
16
|
+
readonly savedBookmarks: "/myreading/saved";
|
|
17
|
+
readonly browsingHistory: "/myreading/history";
|
|
18
|
+
};
|
|
19
|
+
readonly categories: {
|
|
20
|
+
readonly world: "/categories/world";
|
|
21
|
+
readonly humanRights: "/categories/humanrights";
|
|
22
|
+
readonly politicsAndSociety: "/categories/politics-and-society";
|
|
23
|
+
readonly health: "/categories/health";
|
|
24
|
+
readonly environment: "/categories/environment";
|
|
25
|
+
readonly econ: "/categories/econ";
|
|
26
|
+
readonly culture: "/categories/culture";
|
|
27
|
+
readonly education: "/categories/education";
|
|
28
|
+
readonly opinion: {
|
|
29
|
+
readonly index: "/categories/opinion";
|
|
30
|
+
readonly bookReview: "/categories/opinion/book-review";
|
|
31
|
+
readonly letter: "/categories/opinion/letter";
|
|
32
|
+
};
|
|
33
|
+
readonly podcast: {
|
|
34
|
+
readonly theRealStory: "/categories/podcast/the-real-story";
|
|
35
|
+
readonly onTheGround: "/categories/podcast/on-the-ground";
|
|
36
|
+
};
|
|
37
|
+
readonly foundation: {
|
|
38
|
+
readonly index: "/categories/foundation";
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
readonly humanStory: "/tags/58db34a30f56b40d001ae6a6";
|
|
42
|
+
readonly photography: "/photography";
|
|
43
|
+
readonly podcast: {
|
|
44
|
+
readonly aboutPodcast: "/a/podcast-list";
|
|
45
|
+
};
|
|
46
|
+
readonly infographic: "/tags/630f029461ca4e07004ef530";
|
|
47
|
+
readonly influenceReport: "/a/impact-and-annual-report";
|
|
48
|
+
};
|
|
49
|
+
//#endregion
|
|
50
|
+
export { INTERNAL_LINKS };
|
|
51
|
+
//# sourceMappingURL=internal-links.d.ts.map
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
//#region src/constants/request-origins.d.ts
|
|
2
|
+
declare const forServerSideRendering: {
|
|
3
|
+
master: {
|
|
4
|
+
accounts: string;
|
|
5
|
+
api: string;
|
|
6
|
+
main: string;
|
|
7
|
+
support: string;
|
|
8
|
+
};
|
|
9
|
+
staging: {
|
|
10
|
+
accounts: string;
|
|
11
|
+
api: string;
|
|
12
|
+
main: string;
|
|
13
|
+
support: string;
|
|
14
|
+
};
|
|
15
|
+
preview: {
|
|
16
|
+
accounts: string;
|
|
17
|
+
api: string;
|
|
18
|
+
main: string;
|
|
19
|
+
support: string;
|
|
20
|
+
};
|
|
21
|
+
release: {
|
|
22
|
+
accounts: string;
|
|
23
|
+
api: string;
|
|
24
|
+
main: string;
|
|
25
|
+
support: string;
|
|
26
|
+
};
|
|
27
|
+
dev: {
|
|
28
|
+
accounts: string;
|
|
29
|
+
api: string;
|
|
30
|
+
main: string;
|
|
31
|
+
support: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
declare const forClientSideRendering: {
|
|
35
|
+
master: {
|
|
36
|
+
accounts: string;
|
|
37
|
+
api: string;
|
|
38
|
+
main: string;
|
|
39
|
+
support: string;
|
|
40
|
+
};
|
|
41
|
+
staging: {
|
|
42
|
+
accounts: string;
|
|
43
|
+
api: string;
|
|
44
|
+
main: string;
|
|
45
|
+
support: string;
|
|
46
|
+
};
|
|
47
|
+
preview: {
|
|
48
|
+
accounts: string;
|
|
49
|
+
api: string;
|
|
50
|
+
main: string;
|
|
51
|
+
support: string;
|
|
52
|
+
};
|
|
53
|
+
release: {
|
|
54
|
+
accounts: string;
|
|
55
|
+
api: string;
|
|
56
|
+
main: string;
|
|
57
|
+
support: string;
|
|
58
|
+
};
|
|
59
|
+
dev: {
|
|
60
|
+
accounts: string;
|
|
61
|
+
api: string;
|
|
62
|
+
main: string;
|
|
63
|
+
support: string;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
//#endregion
|
|
67
|
+
export { forClientSideRendering, forServerSideRendering };
|
|
68
|
+
//# sourceMappingURL=request-origins.d.mts.map
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
//#region src/constants/request-origins.d.ts
|
|
2
|
+
declare const forServerSideRendering: {
|
|
3
|
+
master: {
|
|
4
|
+
accounts: string;
|
|
5
|
+
api: string;
|
|
6
|
+
main: string;
|
|
7
|
+
support: string;
|
|
8
|
+
};
|
|
9
|
+
staging: {
|
|
10
|
+
accounts: string;
|
|
11
|
+
api: string;
|
|
12
|
+
main: string;
|
|
13
|
+
support: string;
|
|
14
|
+
};
|
|
15
|
+
preview: {
|
|
16
|
+
accounts: string;
|
|
17
|
+
api: string;
|
|
18
|
+
main: string;
|
|
19
|
+
support: string;
|
|
20
|
+
};
|
|
21
|
+
release: {
|
|
22
|
+
accounts: string;
|
|
23
|
+
api: string;
|
|
24
|
+
main: string;
|
|
25
|
+
support: string;
|
|
26
|
+
};
|
|
27
|
+
dev: {
|
|
28
|
+
accounts: string;
|
|
29
|
+
api: string;
|
|
30
|
+
main: string;
|
|
31
|
+
support: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
declare const forClientSideRendering: {
|
|
35
|
+
master: {
|
|
36
|
+
accounts: string;
|
|
37
|
+
api: string;
|
|
38
|
+
main: string;
|
|
39
|
+
support: string;
|
|
40
|
+
};
|
|
41
|
+
staging: {
|
|
42
|
+
accounts: string;
|
|
43
|
+
api: string;
|
|
44
|
+
main: string;
|
|
45
|
+
support: string;
|
|
46
|
+
};
|
|
47
|
+
preview: {
|
|
48
|
+
accounts: string;
|
|
49
|
+
api: string;
|
|
50
|
+
main: string;
|
|
51
|
+
support: string;
|
|
52
|
+
};
|
|
53
|
+
release: {
|
|
54
|
+
accounts: string;
|
|
55
|
+
api: string;
|
|
56
|
+
main: string;
|
|
57
|
+
support: string;
|
|
58
|
+
};
|
|
59
|
+
dev: {
|
|
60
|
+
accounts: string;
|
|
61
|
+
api: string;
|
|
62
|
+
main: string;
|
|
63
|
+
support: string;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
//#endregion
|
|
67
|
+
export { forClientSideRendering, forServerSideRendering };
|
|
68
|
+
//# sourceMappingURL=request-origins.d.ts.map
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
const require_release_branch = require('../release-branch-CRZV4Ivz.js');
|
|
2
|
+
|
|
3
|
+
//#region src/constants/request-origins.ts
|
|
4
|
+
const forServerSideRendering = {
|
|
5
|
+
[require_release_branch.RELEASE_BRANCH.master]: {
|
|
6
|
+
accounts: "http://localhost:3001",
|
|
7
|
+
api: "http://localhost:8080",
|
|
8
|
+
main: "http://localhost:3000",
|
|
9
|
+
support: "http://localhost:3001"
|
|
10
|
+
},
|
|
11
|
+
[require_release_branch.RELEASE_BRANCH.staging]: {
|
|
12
|
+
accounts: "https://staging-accounts.twreporter.org",
|
|
13
|
+
api: "https://staging-go-api.twreporter.org",
|
|
14
|
+
main: "https://staging.twreporter.org",
|
|
15
|
+
support: "https://staging-support.twreporter.org"
|
|
16
|
+
},
|
|
17
|
+
[require_release_branch.RELEASE_BRANCH.preview]: {
|
|
18
|
+
accounts: "https://accounts.twreporter.org",
|
|
19
|
+
api: "https://go-api.twreporter.org",
|
|
20
|
+
main: "https://www.twreporter.org",
|
|
21
|
+
support: "https://support.twreporter.org"
|
|
22
|
+
},
|
|
23
|
+
[require_release_branch.RELEASE_BRANCH.release]: {
|
|
24
|
+
accounts: "https://accounts.twreporter.org",
|
|
25
|
+
api: "https://go-api.twreporter.org",
|
|
26
|
+
main: "https://www.twreporter.org",
|
|
27
|
+
support: "https://support.twreporter.org"
|
|
28
|
+
},
|
|
29
|
+
[require_release_branch.RELEASE_BRANCH.dev]: {
|
|
30
|
+
accounts: "https://dev-accounts.twreporter.org",
|
|
31
|
+
api: "https://staging-go-api.twreporter.org",
|
|
32
|
+
main: "https://dev.twreporter.org",
|
|
33
|
+
support: "https://dev-support.twreporter.org"
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
const forClientSideRendering = {
|
|
37
|
+
[require_release_branch.RELEASE_BRANCH.master]: forServerSideRendering[require_release_branch.RELEASE_BRANCH.master],
|
|
38
|
+
[require_release_branch.RELEASE_BRANCH.staging]: forServerSideRendering[require_release_branch.RELEASE_BRANCH.staging],
|
|
39
|
+
[require_release_branch.RELEASE_BRANCH.preview]: forServerSideRendering[require_release_branch.RELEASE_BRANCH.preview],
|
|
40
|
+
[require_release_branch.RELEASE_BRANCH.release]: forServerSideRendering[require_release_branch.RELEASE_BRANCH.release],
|
|
41
|
+
[require_release_branch.RELEASE_BRANCH.dev]: forServerSideRendering[require_release_branch.RELEASE_BRANCH.dev]
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
//#endregion
|
|
45
|
+
exports.forClientSideRendering = forClientSideRendering;
|
|
46
|
+
exports.forServerSideRendering = forServerSideRendering;
|
|
47
|
+
//# sourceMappingURL=request-origins.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request-origins.js","names":["RELEASE_BRANCH"],"sources":["../../src/constants/request-origins.ts"],"sourcesContent":["import { RELEASE_BRANCH } from './release-branch'\n\nconst forServerSideRendering = {\n [RELEASE_BRANCH.master]: {\n accounts: 'http://localhost:3001',\n api: 'http://localhost:8080',\n main: 'http://localhost:3000',\n support: 'http://localhost:3001',\n },\n [RELEASE_BRANCH.staging]: {\n accounts: 'https://staging-accounts.twreporter.org',\n api: 'https://staging-go-api.twreporter.org',\n main: 'https://staging.twreporter.org',\n support: 'https://staging-support.twreporter.org',\n },\n [RELEASE_BRANCH.preview]: {\n accounts: 'https://accounts.twreporter.org',\n api: 'https://go-api.twreporter.org',\n main: 'https://www.twreporter.org',\n support: 'https://support.twreporter.org',\n },\n [RELEASE_BRANCH.release]: {\n accounts: 'https://accounts.twreporter.org',\n api: 'https://go-api.twreporter.org',\n main: 'https://www.twreporter.org',\n support: 'https://support.twreporter.org',\n },\n [RELEASE_BRANCH.dev]: {\n accounts: 'https://dev-accounts.twreporter.org',\n api: 'https://staging-go-api.twreporter.org',\n main: 'https://dev.twreporter.org',\n support: 'https://dev-support.twreporter.org',\n },\n}\n\nconst forClientSideRendering = {\n [RELEASE_BRANCH.master]: forServerSideRendering[RELEASE_BRANCH.master],\n [RELEASE_BRANCH.staging]: forServerSideRendering[RELEASE_BRANCH.staging],\n [RELEASE_BRANCH.preview]: forServerSideRendering[RELEASE_BRANCH.preview],\n [RELEASE_BRANCH.release]: forServerSideRendering[RELEASE_BRANCH.release],\n [RELEASE_BRANCH.dev]: forServerSideRendering[RELEASE_BRANCH.dev],\n}\n\nexport { forClientSideRendering, forServerSideRendering }\n"],"mappings":";;;AAEA,MAAM,yBAAyB;EAC5BA,sCAAe,SAAS;EACvB,UAAU;EACV,KAAK;EACL,MAAM;EACN,SAAS;EACV;EACAA,sCAAe,UAAU;EACxB,UAAU;EACV,KAAK;EACL,MAAM;EACN,SAAS;EACV;EACAA,sCAAe,UAAU;EACxB,UAAU;EACV,KAAK;EACL,MAAM;EACN,SAAS;EACV;EACAA,sCAAe,UAAU;EACxB,UAAU;EACV,KAAK;EACL,MAAM;EACN,SAAS;EACV;EACAA,sCAAe,MAAM;EACpB,UAAU;EACV,KAAK;EACL,MAAM;EACN,SAAS;EACV;CACF;AAED,MAAM,yBAAyB;EAC5BA,sCAAe,SAAS,uBAAuBA,sCAAe;EAC9DA,sCAAe,UAAU,uBAAuBA,sCAAe;EAC/DA,sCAAe,UAAU,uBAAuBA,sCAAe;EAC/DA,sCAAe,UAAU,uBAAuBA,sCAAe;EAC/DA,sCAAe,MAAM,uBAAuBA,sCAAe;CAC7D"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { RELEASE_BRANCH } from "../release-branch-DNCD1uH_.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/constants/request-origins.ts
|
|
4
|
+
const forServerSideRendering = {
|
|
5
|
+
[RELEASE_BRANCH.master]: {
|
|
6
|
+
accounts: "http://localhost:3001",
|
|
7
|
+
api: "http://localhost:8080",
|
|
8
|
+
main: "http://localhost:3000",
|
|
9
|
+
support: "http://localhost:3001"
|
|
10
|
+
},
|
|
11
|
+
[RELEASE_BRANCH.staging]: {
|
|
12
|
+
accounts: "https://staging-accounts.twreporter.org",
|
|
13
|
+
api: "https://staging-go-api.twreporter.org",
|
|
14
|
+
main: "https://staging.twreporter.org",
|
|
15
|
+
support: "https://staging-support.twreporter.org"
|
|
16
|
+
},
|
|
17
|
+
[RELEASE_BRANCH.preview]: {
|
|
18
|
+
accounts: "https://accounts.twreporter.org",
|
|
19
|
+
api: "https://go-api.twreporter.org",
|
|
20
|
+
main: "https://www.twreporter.org",
|
|
21
|
+
support: "https://support.twreporter.org"
|
|
22
|
+
},
|
|
23
|
+
[RELEASE_BRANCH.release]: {
|
|
24
|
+
accounts: "https://accounts.twreporter.org",
|
|
25
|
+
api: "https://go-api.twreporter.org",
|
|
26
|
+
main: "https://www.twreporter.org",
|
|
27
|
+
support: "https://support.twreporter.org"
|
|
28
|
+
},
|
|
29
|
+
[RELEASE_BRANCH.dev]: {
|
|
30
|
+
accounts: "https://dev-accounts.twreporter.org",
|
|
31
|
+
api: "https://staging-go-api.twreporter.org",
|
|
32
|
+
main: "https://dev.twreporter.org",
|
|
33
|
+
support: "https://dev-support.twreporter.org"
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
const forClientSideRendering = {
|
|
37
|
+
[RELEASE_BRANCH.master]: forServerSideRendering[RELEASE_BRANCH.master],
|
|
38
|
+
[RELEASE_BRANCH.staging]: forServerSideRendering[RELEASE_BRANCH.staging],
|
|
39
|
+
[RELEASE_BRANCH.preview]: forServerSideRendering[RELEASE_BRANCH.preview],
|
|
40
|
+
[RELEASE_BRANCH.release]: forServerSideRendering[RELEASE_BRANCH.release],
|
|
41
|
+
[RELEASE_BRANCH.dev]: forServerSideRendering[RELEASE_BRANCH.dev]
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
//#endregion
|
|
45
|
+
export { forClientSideRendering, forServerSideRendering };
|
|
46
|
+
//# sourceMappingURL=request-origins.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request-origins.mjs","names":[],"sources":["../../src/constants/request-origins.ts"],"sourcesContent":["import { RELEASE_BRANCH } from './release-branch'\n\nconst forServerSideRendering = {\n [RELEASE_BRANCH.master]: {\n accounts: 'http://localhost:3001',\n api: 'http://localhost:8080',\n main: 'http://localhost:3000',\n support: 'http://localhost:3001',\n },\n [RELEASE_BRANCH.staging]: {\n accounts: 'https://staging-accounts.twreporter.org',\n api: 'https://staging-go-api.twreporter.org',\n main: 'https://staging.twreporter.org',\n support: 'https://staging-support.twreporter.org',\n },\n [RELEASE_BRANCH.preview]: {\n accounts: 'https://accounts.twreporter.org',\n api: 'https://go-api.twreporter.org',\n main: 'https://www.twreporter.org',\n support: 'https://support.twreporter.org',\n },\n [RELEASE_BRANCH.release]: {\n accounts: 'https://accounts.twreporter.org',\n api: 'https://go-api.twreporter.org',\n main: 'https://www.twreporter.org',\n support: 'https://support.twreporter.org',\n },\n [RELEASE_BRANCH.dev]: {\n accounts: 'https://dev-accounts.twreporter.org',\n api: 'https://staging-go-api.twreporter.org',\n main: 'https://dev.twreporter.org',\n support: 'https://dev-support.twreporter.org',\n },\n}\n\nconst forClientSideRendering = {\n [RELEASE_BRANCH.master]: forServerSideRendering[RELEASE_BRANCH.master],\n [RELEASE_BRANCH.staging]: forServerSideRendering[RELEASE_BRANCH.staging],\n [RELEASE_BRANCH.preview]: forServerSideRendering[RELEASE_BRANCH.preview],\n [RELEASE_BRANCH.release]: forServerSideRendering[RELEASE_BRANCH.release],\n [RELEASE_BRANCH.dev]: forServerSideRendering[RELEASE_BRANCH.dev],\n}\n\nexport { forClientSideRendering, forServerSideRendering }\n"],"mappings":";;;AAEA,MAAM,yBAAyB;EAC5B,eAAe,SAAS;EACvB,UAAU;EACV,KAAK;EACL,MAAM;EACN,SAAS;EACV;EACA,eAAe,UAAU;EACxB,UAAU;EACV,KAAK;EACL,MAAM;EACN,SAAS;EACV;EACA,eAAe,UAAU;EACxB,UAAU;EACV,KAAK;EACL,MAAM;EACN,SAAS;EACV;EACA,eAAe,UAAU;EACxB,UAAU;EACV,KAAK;EACL,MAAM;EACN,SAAS;EACV;EACA,eAAe,MAAM;EACpB,UAAU;EACV,KAAK;EACL,MAAM;EACN,SAAS;EACV;CACF;AAED,MAAM,yBAAyB;EAC5B,eAAe,SAAS,uBAAuB,eAAe;EAC9D,eAAe,UAAU,uBAAuB,eAAe;EAC/D,eAAe,UAAU,uBAAuB,eAAe;EAC/D,eAAe,UAAU,uBAAuB,eAAe;EAC/D,eAAe,MAAM,uBAAuB,eAAe;CAC7D"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/logo/constants.ts
|
|
3
|
+
const LOGO = {
|
|
4
|
+
header: "header",
|
|
5
|
+
footer: "footer",
|
|
6
|
+
symbol: "symbol",
|
|
7
|
+
"loading-fallback": "loading-fallback"
|
|
8
|
+
};
|
|
9
|
+
const LOGO_TYPE = {
|
|
10
|
+
default: "default",
|
|
11
|
+
white: "white"
|
|
12
|
+
};
|
|
13
|
+
const LOGO_SYMBOL_TYPE = {
|
|
14
|
+
default: "default",
|
|
15
|
+
white: "white",
|
|
16
|
+
black: "black"
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
20
|
+
Object.defineProperty(exports, 'LOGO', {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
get: function () {
|
|
23
|
+
return LOGO;
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
Object.defineProperty(exports, 'LOGO_SYMBOL_TYPE', {
|
|
27
|
+
enumerable: true,
|
|
28
|
+
get: function () {
|
|
29
|
+
return LOGO_SYMBOL_TYPE;
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
Object.defineProperty(exports, 'LOGO_TYPE', {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function () {
|
|
35
|
+
return LOGO_TYPE;
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
//# sourceMappingURL=constants-2TRY2zTK.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants-2TRY2zTK.js","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"}
|