@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,17 @@
|
|
|
1
|
+
import { ValuesOf } from "./index-H3peA2d_.js";
|
|
2
|
+
|
|
3
|
+
//#region src/text/constants.d.ts
|
|
4
|
+
declare const TYPE: {
|
|
5
|
+
readonly default: "default";
|
|
6
|
+
readonly article: "article";
|
|
7
|
+
};
|
|
8
|
+
type Type = ValuesOf<typeof TYPE>;
|
|
9
|
+
declare const WEIGHT: {
|
|
10
|
+
readonly extraLight: "extra-light";
|
|
11
|
+
readonly normal: "normal";
|
|
12
|
+
readonly bold: "bold";
|
|
13
|
+
};
|
|
14
|
+
type Weight = ValuesOf<typeof WEIGHT>;
|
|
15
|
+
//#endregion
|
|
16
|
+
export { TYPE, Type, WEIGHT, Weight };
|
|
17
|
+
//# sourceMappingURL=constants-BS3rPbaX.d.ts.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/text/constants.ts
|
|
2
|
+
const TYPE = {
|
|
3
|
+
default: "default",
|
|
4
|
+
article: "article"
|
|
5
|
+
};
|
|
6
|
+
const WEIGHT = {
|
|
7
|
+
extraLight: "extra-light",
|
|
8
|
+
normal: "normal",
|
|
9
|
+
bold: "bold"
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
//#endregion
|
|
13
|
+
export { TYPE, WEIGHT };
|
|
14
|
+
//# sourceMappingURL=constants-BWFuBApI.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants-BWFuBApI.mjs","names":[],"sources":["../src/text/constants.ts"],"sourcesContent":["import type { ValuesOf } from '../types'\n\nexport const TYPE = {\n default: 'default',\n article: 'article',\n} as const\n\nexport type Type = ValuesOf<typeof TYPE>\n\nexport const WEIGHT = {\n extraLight: 'extra-light',\n normal: 'normal',\n bold: 'bold',\n} as const\n\nexport type Weight = ValuesOf<typeof WEIGHT>\n"],"mappings":";AAEA,MAAa,OAAO;CAClB,SAAS;CACT,SAAS;CACV;AAID,MAAa,SAAS;CACpB,YAAY;CACZ,QAAQ;CACR,MAAM;CACP"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ValuesOf } from "./index-H3peA2d_.js";
|
|
2
|
+
|
|
3
|
+
//#region src/logo/constants.d.ts
|
|
4
|
+
declare const LOGO: {
|
|
5
|
+
readonly header: "header";
|
|
6
|
+
readonly footer: "footer";
|
|
7
|
+
readonly symbol: "symbol";
|
|
8
|
+
readonly 'loading-fallback': "loading-fallback";
|
|
9
|
+
};
|
|
10
|
+
type Logo = ValuesOf<typeof LOGO>;
|
|
11
|
+
declare const LOGO_TYPE: {
|
|
12
|
+
readonly default: "default";
|
|
13
|
+
readonly white: "white";
|
|
14
|
+
};
|
|
15
|
+
type LogoType = ValuesOf<typeof LOGO_TYPE>;
|
|
16
|
+
declare const LOGO_SYMBOL_TYPE: {
|
|
17
|
+
readonly default: "default";
|
|
18
|
+
readonly white: "white";
|
|
19
|
+
readonly black: "black";
|
|
20
|
+
};
|
|
21
|
+
type LogoSymbolType = ValuesOf<typeof LOGO_SYMBOL_TYPE>;
|
|
22
|
+
//#endregion
|
|
23
|
+
export { LOGO, LOGO_SYMBOL_TYPE, LOGO_TYPE, Logo, LogoSymbolType, LogoType };
|
|
24
|
+
//# sourceMappingURL=constants-B_NgWFML.d.ts.map
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/button/constants.ts
|
|
3
|
+
const SIZE = {
|
|
4
|
+
s: "s",
|
|
5
|
+
l: "l"
|
|
6
|
+
};
|
|
7
|
+
const STYLE = {
|
|
8
|
+
brand: "brand",
|
|
9
|
+
dark: "dark",
|
|
10
|
+
light: "light"
|
|
11
|
+
};
|
|
12
|
+
const TYPE = {
|
|
13
|
+
primary: "primary",
|
|
14
|
+
secondary: "secondary"
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
//#endregion
|
|
18
|
+
Object.defineProperty(exports, 'SIZE', {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () {
|
|
21
|
+
return SIZE;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, 'STYLE', {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () {
|
|
27
|
+
return STYLE;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(exports, 'TYPE', {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function () {
|
|
33
|
+
return TYPE;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
//# sourceMappingURL=constants-BmxSMOOn.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants-BmxSMOOn.js","names":[],"sources":["../src/button/constants.ts"],"sourcesContent":["import type { ValuesOf } from '../types'\n\nexport const SIZE = {\n s: 's',\n l: 'l',\n} as const\n\nexport type Size = ValuesOf<typeof SIZE>\n\nexport const STYLE = {\n brand: 'brand',\n dark: 'dark',\n light: 'light',\n} as const\n\nexport type Style = ValuesOf<typeof STYLE>\n\nexport const TYPE = {\n primary: 'primary',\n secondary: 'secondary',\n} as const\n\nexport type Type = ValuesOf<typeof TYPE>\n"],"mappings":";;AAEA,MAAa,OAAO;CAClB,GAAG;CACH,GAAG;CACJ;AAID,MAAa,QAAQ;CACnB,OAAO;CACP,MAAM;CACN,OAAO;CACR;AAID,MAAa,OAAO;CAClB,SAAS;CACT,WAAW;CACZ"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
//#region src/logo/constants.ts
|
|
2
|
+
const LOGO = {
|
|
3
|
+
header: "header",
|
|
4
|
+
footer: "footer",
|
|
5
|
+
symbol: "symbol",
|
|
6
|
+
"loading-fallback": "loading-fallback"
|
|
7
|
+
};
|
|
8
|
+
const LOGO_TYPE = {
|
|
9
|
+
default: "default",
|
|
10
|
+
white: "white"
|
|
11
|
+
};
|
|
12
|
+
const LOGO_SYMBOL_TYPE = {
|
|
13
|
+
default: "default",
|
|
14
|
+
white: "white",
|
|
15
|
+
black: "black"
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
//#endregion
|
|
19
|
+
export { LOGO, LOGO_SYMBOL_TYPE, LOGO_TYPE };
|
|
20
|
+
//# sourceMappingURL=constants-BqeEbkVD.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants-BqeEbkVD.mjs","names":[],"sources":["../src/logo/constants.ts"],"sourcesContent":["import type { ValuesOf } from '../types'\n\nexport const LOGO = {\n header: 'header',\n footer: 'footer',\n symbol: 'symbol',\n 'loading-fallback': 'loading-fallback',\n} as const\n\nexport type Logo = ValuesOf<typeof LOGO>\n\nexport const LOGO_TYPE = {\n default: 'default',\n white: 'white',\n} as const\n\nexport type LogoType = ValuesOf<typeof LOGO_TYPE>\n\nexport const LOGO_SYMBOL_TYPE = {\n default: 'default',\n white: 'white',\n black: 'black',\n} as const\n\nexport type LogoSymbolType = ValuesOf<typeof LOGO_SYMBOL_TYPE>\n"],"mappings":";AAEA,MAAa,OAAO;CAClB,QAAQ;CACR,QAAQ;CACR,QAAQ;CACR,oBAAoB;CACrB;AAID,MAAa,YAAY;CACvB,SAAS;CACT,OAAO;CACR;AAID,MAAa,mBAAmB;CAC9B,SAAS;CACT,OAAO;CACP,OAAO;CACR"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ValuesOf } from "./index-BmIgLA0K.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/icons/constants.d.ts
|
|
4
|
+
declare const ICON_TYPE: {
|
|
5
|
+
readonly mask: "mask";
|
|
6
|
+
readonly raw: "raw";
|
|
7
|
+
};
|
|
8
|
+
type IconType = ValuesOf<typeof ICON_TYPE>;
|
|
9
|
+
declare const ARROW_DIRECTION: {
|
|
10
|
+
readonly right: "right";
|
|
11
|
+
readonly left: "left";
|
|
12
|
+
readonly up: "up";
|
|
13
|
+
readonly down: "down";
|
|
14
|
+
};
|
|
15
|
+
type ArrowDirection = ValuesOf<typeof ARROW_DIRECTION>;
|
|
16
|
+
declare const MEDIA_TYPE: {
|
|
17
|
+
readonly facebook: "facebook";
|
|
18
|
+
readonly instagram: "instagram";
|
|
19
|
+
readonly medium: "medium";
|
|
20
|
+
readonly twitter: "twitter";
|
|
21
|
+
readonly youtube: "youtube";
|
|
22
|
+
readonly line: "line";
|
|
23
|
+
readonly google: "google";
|
|
24
|
+
readonly plurk: "plurk";
|
|
25
|
+
};
|
|
26
|
+
type MediaType = ValuesOf<typeof MEDIA_TYPE>;
|
|
27
|
+
//#endregion
|
|
28
|
+
export { ARROW_DIRECTION, ArrowDirection, ICON_TYPE, IconType, MEDIA_TYPE, MediaType };
|
|
29
|
+
//# sourceMappingURL=constants-BswaTS-y.d.mts.map
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
const require_internal_links = require('./internal-links-CBkMU8cY.js');
|
|
2
|
+
const require_icons = require('./icons-DF-7dKxN.js');
|
|
3
|
+
|
|
4
|
+
//#region src/tab-bar/constants.ts
|
|
5
|
+
const TabBarItems = (releaseBranch) => [
|
|
6
|
+
{
|
|
7
|
+
text: "首頁",
|
|
8
|
+
link: require_internal_links.INTERNAL_LINKS.home,
|
|
9
|
+
target: "_self",
|
|
10
|
+
icon: require_icons.Home(releaseBranch)
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
text: "最新",
|
|
14
|
+
link: require_internal_links.INTERNAL_LINKS.latest,
|
|
15
|
+
target: "_self",
|
|
16
|
+
icon: require_icons.Clock(releaseBranch)
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
text: "深度專題",
|
|
20
|
+
link: require_internal_links.INTERNAL_LINKS.topics,
|
|
21
|
+
target: "_self",
|
|
22
|
+
icon: require_icons.Topic(releaseBranch)
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
text: "我的閱讀",
|
|
26
|
+
link: require_internal_links.INTERNAL_LINKS.myReading.index,
|
|
27
|
+
target: "_self",
|
|
28
|
+
icon: require_icons.KidStar(releaseBranch)
|
|
29
|
+
}
|
|
30
|
+
];
|
|
31
|
+
|
|
32
|
+
//#endregion
|
|
33
|
+
Object.defineProperty(exports, 'TabBarItems', {
|
|
34
|
+
enumerable: true,
|
|
35
|
+
get: function () {
|
|
36
|
+
return TabBarItems;
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
//# sourceMappingURL=constants-Bz-ufaJ2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants-Bz-ufaJ2.js","names":["TabBarItems: (releaseBranch: ReleaseBranch) => TabBarItem[]","INTERNAL_LINKS","Home","Clock","Topic","KidStar"],"sources":["../src/tab-bar/constants.ts"],"sourcesContent":["import type { ReactElement } from 'react'\nimport { INTERNAL_LINKS } from '../constants/internal-links'\nimport type { LinkTarget } from '../customized-link/type'\n// icons\nimport { Home, Clock, Topic, KidStar } from '../icons'\n// release branch\nimport type { ReleaseBranch } from '../constants/release-branch'\n\ntype TabBarItem = {\n text: string\n link: string\n target: LinkTarget\n icon: ReactElement\n}\nexport const TabBarItems: (releaseBranch: ReleaseBranch) => TabBarItem[] = (\n releaseBranch\n) => [\n {\n text: '首頁',\n link: INTERNAL_LINKS.home,\n target: '_self',\n icon: Home(releaseBranch),\n },\n {\n text: '最新',\n link: INTERNAL_LINKS.latest,\n target: '_self',\n icon: Clock(releaseBranch),\n },\n {\n text: '深度專題',\n link: INTERNAL_LINKS.topics,\n target: '_self',\n icon: Topic(releaseBranch),\n },\n {\n text: '我的閱讀',\n link: INTERNAL_LINKS.myReading.index,\n target: '_self',\n icon: KidStar(releaseBranch),\n },\n]\n"],"mappings":";;;;AAcA,MAAaA,eACX,kBACG;CACH;EACE,MAAM;EACN,MAAMC,sCAAe;EACrB,QAAQ;EACR,MAAMC,mBAAK,cAAc;EAC1B;CACD;EACE,MAAM;EACN,MAAMD,sCAAe;EACrB,QAAQ;EACR,MAAME,oBAAM,cAAc;EAC3B;CACD;EACE,MAAM;EACN,MAAMF,sCAAe;EACrB,QAAQ;EACR,MAAMG,oBAAM,cAAc;EAC3B;CACD;EACE,MAAM;EACN,MAAMH,sCAAe,UAAU;EAC/B,QAAQ;EACR,MAAMI,sBAAQ,cAAc;EAC7B;CACF"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ValuesOf } from "./index-BmIgLA0K.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/divider/constants.d.ts
|
|
4
|
+
declare const DIRECTION: {
|
|
5
|
+
readonly horizontal: "horizontal";
|
|
6
|
+
readonly vertical: "vertical";
|
|
7
|
+
};
|
|
8
|
+
type Direction = ValuesOf<typeof DIRECTION>;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { DIRECTION, Direction };
|
|
11
|
+
//# sourceMappingURL=constants-CEyUZ-jZ.d.mts.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ValuesOf } from "./index-H3peA2d_.js";
|
|
2
|
+
|
|
3
|
+
//#region src/divider/constants.d.ts
|
|
4
|
+
declare const DIRECTION: {
|
|
5
|
+
readonly horizontal: "horizontal";
|
|
6
|
+
readonly vertical: "vertical";
|
|
7
|
+
};
|
|
8
|
+
type Direction = ValuesOf<typeof DIRECTION>;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { DIRECTION, Direction };
|
|
11
|
+
//# sourceMappingURL=constants-CMMcn0f-.d.ts.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
//#region src/icons/constants.ts
|
|
2
|
+
const ICON_TYPE = {
|
|
3
|
+
mask: "mask",
|
|
4
|
+
raw: "raw"
|
|
5
|
+
};
|
|
6
|
+
const ARROW_DIRECTION = {
|
|
7
|
+
right: "right",
|
|
8
|
+
left: "left",
|
|
9
|
+
up: "up",
|
|
10
|
+
down: "down"
|
|
11
|
+
};
|
|
12
|
+
const MEDIA_TYPE = {
|
|
13
|
+
facebook: "facebook",
|
|
14
|
+
instagram: "instagram",
|
|
15
|
+
medium: "medium",
|
|
16
|
+
twitter: "twitter",
|
|
17
|
+
youtube: "youtube",
|
|
18
|
+
line: "line",
|
|
19
|
+
google: "google",
|
|
20
|
+
plurk: "plurk"
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
export { ARROW_DIRECTION, ICON_TYPE, MEDIA_TYPE };
|
|
25
|
+
//# sourceMappingURL=constants-CQscYQcW.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants-CQscYQcW.mjs","names":[],"sources":["../src/icons/constants.ts"],"sourcesContent":["import type { ValuesOf } from '../types'\n\nexport const ICON_TYPE = {\n mask: 'mask',\n raw: 'raw',\n} as const\n\nexport type IconType = ValuesOf<typeof ICON_TYPE>\n\nexport const ARROW_DIRECTION = {\n right: 'right',\n left: 'left',\n up: 'up',\n down: 'down',\n} as const\n\nexport type ArrowDirection = ValuesOf<typeof ARROW_DIRECTION>\n\nexport const MEDIA_TYPE = {\n facebook: 'facebook',\n instagram: 'instagram',\n medium: 'medium',\n twitter: 'twitter',\n youtube: 'youtube',\n line: 'line',\n google: 'google',\n plurk: 'plurk',\n} as const\n\nexport type MediaType = ValuesOf<typeof MEDIA_TYPE>\n"],"mappings":";AAEA,MAAa,YAAY;CACvB,MAAM;CACN,KAAK;CACN;AAID,MAAa,kBAAkB;CAC7B,OAAO;CACP,MAAM;CACN,IAAI;CACJ,MAAM;CACP;AAID,MAAa,aAAa;CACxB,UAAU;CACV,WAAW;CACX,QAAQ;CACR,SAAS;CACT,SAAS;CACT,MAAM;CACN,QAAQ;CACR,OAAO;CACR"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/icons/constants.ts
|
|
3
|
+
const ICON_TYPE = {
|
|
4
|
+
mask: "mask",
|
|
5
|
+
raw: "raw"
|
|
6
|
+
};
|
|
7
|
+
const ARROW_DIRECTION = {
|
|
8
|
+
right: "right",
|
|
9
|
+
left: "left",
|
|
10
|
+
up: "up",
|
|
11
|
+
down: "down"
|
|
12
|
+
};
|
|
13
|
+
const MEDIA_TYPE = {
|
|
14
|
+
facebook: "facebook",
|
|
15
|
+
instagram: "instagram",
|
|
16
|
+
medium: "medium",
|
|
17
|
+
twitter: "twitter",
|
|
18
|
+
youtube: "youtube",
|
|
19
|
+
line: "line",
|
|
20
|
+
google: "google",
|
|
21
|
+
plurk: "plurk"
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
//#endregion
|
|
25
|
+
Object.defineProperty(exports, 'ARROW_DIRECTION', {
|
|
26
|
+
enumerable: true,
|
|
27
|
+
get: function () {
|
|
28
|
+
return ARROW_DIRECTION;
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
Object.defineProperty(exports, 'ICON_TYPE', {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
get: function () {
|
|
34
|
+
return ICON_TYPE;
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
Object.defineProperty(exports, 'MEDIA_TYPE', {
|
|
38
|
+
enumerable: true,
|
|
39
|
+
get: function () {
|
|
40
|
+
return MEDIA_TYPE;
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
//# sourceMappingURL=constants-DF_II8Fz.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants-DF_II8Fz.js","names":[],"sources":["../src/icons/constants.ts"],"sourcesContent":["import type { ValuesOf } from '../types'\n\nexport const ICON_TYPE = {\n mask: 'mask',\n raw: 'raw',\n} as const\n\nexport type IconType = ValuesOf<typeof ICON_TYPE>\n\nexport const ARROW_DIRECTION = {\n right: 'right',\n left: 'left',\n up: 'up',\n down: 'down',\n} as const\n\nexport type ArrowDirection = ValuesOf<typeof ARROW_DIRECTION>\n\nexport const MEDIA_TYPE = {\n facebook: 'facebook',\n instagram: 'instagram',\n medium: 'medium',\n twitter: 'twitter',\n youtube: 'youtube',\n line: 'line',\n google: 'google',\n plurk: 'plurk',\n} as const\n\nexport type MediaType = ValuesOf<typeof MEDIA_TYPE>\n"],"mappings":";;AAEA,MAAa,YAAY;CACvB,MAAM;CACN,KAAK;CACN;AAID,MAAa,kBAAkB;CAC7B,OAAO;CACP,MAAM;CACN,IAAI;CACJ,MAAM;CACP;AAID,MAAa,aAAa;CACxB,UAAU;CACV,WAAW;CACX,QAAQ;CACR,SAAS;CACT,SAAS;CACT,MAAM;CACN,QAAQ;CACR,OAAO;CACR"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ValuesOf } from "./index-BmIgLA0K.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/logo/constants.d.ts
|
|
4
|
+
declare const LOGO: {
|
|
5
|
+
readonly header: "header";
|
|
6
|
+
readonly footer: "footer";
|
|
7
|
+
readonly symbol: "symbol";
|
|
8
|
+
readonly 'loading-fallback': "loading-fallback";
|
|
9
|
+
};
|
|
10
|
+
type Logo = ValuesOf<typeof LOGO>;
|
|
11
|
+
declare const LOGO_TYPE: {
|
|
12
|
+
readonly default: "default";
|
|
13
|
+
readonly white: "white";
|
|
14
|
+
};
|
|
15
|
+
type LogoType = ValuesOf<typeof LOGO_TYPE>;
|
|
16
|
+
declare const LOGO_SYMBOL_TYPE: {
|
|
17
|
+
readonly default: "default";
|
|
18
|
+
readonly white: "white";
|
|
19
|
+
readonly black: "black";
|
|
20
|
+
};
|
|
21
|
+
type LogoSymbolType = ValuesOf<typeof LOGO_SYMBOL_TYPE>;
|
|
22
|
+
//#endregion
|
|
23
|
+
export { LOGO, LOGO_SYMBOL_TYPE, LOGO_TYPE, Logo, LogoSymbolType, LogoType };
|
|
24
|
+
//# sourceMappingURL=constants-DNr36wyK.d.mts.map
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ValuesOf } from "./index-H3peA2d_.js";
|
|
2
|
+
|
|
3
|
+
//#region src/icons/constants.d.ts
|
|
4
|
+
declare const ICON_TYPE: {
|
|
5
|
+
readonly mask: "mask";
|
|
6
|
+
readonly raw: "raw";
|
|
7
|
+
};
|
|
8
|
+
type IconType = ValuesOf<typeof ICON_TYPE>;
|
|
9
|
+
declare const ARROW_DIRECTION: {
|
|
10
|
+
readonly right: "right";
|
|
11
|
+
readonly left: "left";
|
|
12
|
+
readonly up: "up";
|
|
13
|
+
readonly down: "down";
|
|
14
|
+
};
|
|
15
|
+
type ArrowDirection = ValuesOf<typeof ARROW_DIRECTION>;
|
|
16
|
+
declare const MEDIA_TYPE: {
|
|
17
|
+
readonly facebook: "facebook";
|
|
18
|
+
readonly instagram: "instagram";
|
|
19
|
+
readonly medium: "medium";
|
|
20
|
+
readonly twitter: "twitter";
|
|
21
|
+
readonly youtube: "youtube";
|
|
22
|
+
readonly line: "line";
|
|
23
|
+
readonly google: "google";
|
|
24
|
+
readonly plurk: "plurk";
|
|
25
|
+
};
|
|
26
|
+
type MediaType = ValuesOf<typeof MEDIA_TYPE>;
|
|
27
|
+
//#endregion
|
|
28
|
+
export { ARROW_DIRECTION, ArrowDirection, ICON_TYPE, IconType, MEDIA_TYPE, MediaType };
|
|
29
|
+
//# sourceMappingURL=constants-DQxcqnYL.d.ts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/divider/constants.ts
|
|
3
|
+
const DIRECTION = {
|
|
4
|
+
horizontal: "horizontal",
|
|
5
|
+
vertical: "vertical"
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
//#endregion
|
|
9
|
+
Object.defineProperty(exports, 'DIRECTION', {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function () {
|
|
12
|
+
return DIRECTION;
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
//# sourceMappingURL=constants-DRyQ6AuU.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants-DRyQ6AuU.js","names":[],"sources":["../src/divider/constants.ts"],"sourcesContent":["import type { ValuesOf } from '../types'\n\nexport const DIRECTION = {\n horizontal: 'horizontal',\n vertical: 'vertical',\n} as const\n\nexport type Direction = ValuesOf<typeof DIRECTION>\n"],"mappings":";;AAEA,MAAa,YAAY;CACvB,YAAY;CACZ,UAAU;CACX"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/text/constants.ts
|
|
3
|
+
const TYPE = {
|
|
4
|
+
default: "default",
|
|
5
|
+
article: "article"
|
|
6
|
+
};
|
|
7
|
+
const WEIGHT = {
|
|
8
|
+
extraLight: "extra-light",
|
|
9
|
+
normal: "normal",
|
|
10
|
+
bold: "bold"
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
//#endregion
|
|
14
|
+
Object.defineProperty(exports, 'TYPE', {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function () {
|
|
17
|
+
return TYPE;
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
Object.defineProperty(exports, 'WEIGHT', {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
get: function () {
|
|
23
|
+
return WEIGHT;
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
//# sourceMappingURL=constants-K2ObjToq.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants-K2ObjToq.js","names":[],"sources":["../src/text/constants.ts"],"sourcesContent":["import type { ValuesOf } from '../types'\n\nexport const TYPE = {\n default: 'default',\n article: 'article',\n} as const\n\nexport type Type = ValuesOf<typeof TYPE>\n\nexport const WEIGHT = {\n extraLight: 'extra-light',\n normal: 'normal',\n bold: 'bold',\n} as const\n\nexport type Weight = ValuesOf<typeof WEIGHT>\n"],"mappings":";;AAEA,MAAa,OAAO;CAClB,SAAS;CACT,SAAS;CACV;AAID,MAAa,SAAS;CACpB,YAAY;CACZ,QAAQ;CACR,MAAM;CACP"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ValuesOf } from "./index-BmIgLA0K.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/text/constants.d.ts
|
|
4
|
+
declare const TYPE: {
|
|
5
|
+
readonly default: "default";
|
|
6
|
+
readonly article: "article";
|
|
7
|
+
};
|
|
8
|
+
type Type = ValuesOf<typeof TYPE>;
|
|
9
|
+
declare const WEIGHT: {
|
|
10
|
+
readonly extraLight: "extra-light";
|
|
11
|
+
readonly normal: "normal";
|
|
12
|
+
readonly bold: "bold";
|
|
13
|
+
};
|
|
14
|
+
type Weight = ValuesOf<typeof WEIGHT>;
|
|
15
|
+
//#endregion
|
|
16
|
+
export { TYPE, Type, WEIGHT, Weight };
|
|
17
|
+
//# sourceMappingURL=constants-OhAETTiQ.d.mts.map
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { INTERNAL_LINKS } from "./internal-links-BF-974mA.mjs";
|
|
2
|
+
import { Clock, Home, KidStar, Topic } from "./icons-DguoV48M.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/tab-bar/constants.ts
|
|
5
|
+
const TabBarItems = (releaseBranch) => [
|
|
6
|
+
{
|
|
7
|
+
text: "首頁",
|
|
8
|
+
link: INTERNAL_LINKS.home,
|
|
9
|
+
target: "_self",
|
|
10
|
+
icon: Home(releaseBranch)
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
text: "最新",
|
|
14
|
+
link: INTERNAL_LINKS.latest,
|
|
15
|
+
target: "_self",
|
|
16
|
+
icon: Clock(releaseBranch)
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
text: "深度專題",
|
|
20
|
+
link: INTERNAL_LINKS.topics,
|
|
21
|
+
target: "_self",
|
|
22
|
+
icon: Topic(releaseBranch)
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
text: "我的閱讀",
|
|
26
|
+
link: INTERNAL_LINKS.myReading.index,
|
|
27
|
+
target: "_self",
|
|
28
|
+
icon: KidStar(releaseBranch)
|
|
29
|
+
}
|
|
30
|
+
];
|
|
31
|
+
|
|
32
|
+
//#endregion
|
|
33
|
+
export { TabBarItems };
|
|
34
|
+
//# sourceMappingURL=constants-QF71lY6v.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants-QF71lY6v.mjs","names":["TabBarItems: (releaseBranch: ReleaseBranch) => TabBarItem[]"],"sources":["../src/tab-bar/constants.ts"],"sourcesContent":["import type { ReactElement } from 'react'\nimport { INTERNAL_LINKS } from '../constants/internal-links'\nimport type { LinkTarget } from '../customized-link/type'\n// icons\nimport { Home, Clock, Topic, KidStar } from '../icons'\n// release branch\nimport type { ReleaseBranch } from '../constants/release-branch'\n\ntype TabBarItem = {\n text: string\n link: string\n target: LinkTarget\n icon: ReactElement\n}\nexport const TabBarItems: (releaseBranch: ReleaseBranch) => TabBarItem[] = (\n releaseBranch\n) => [\n {\n text: '首頁',\n link: INTERNAL_LINKS.home,\n target: '_self',\n icon: Home(releaseBranch),\n },\n {\n text: '最新',\n link: INTERNAL_LINKS.latest,\n target: '_self',\n icon: Clock(releaseBranch),\n },\n {\n text: '深度專題',\n link: INTERNAL_LINKS.topics,\n target: '_self',\n icon: Topic(releaseBranch),\n },\n {\n text: '我的閱讀',\n link: INTERNAL_LINKS.myReading.index,\n target: '_self',\n icon: KidStar(releaseBranch),\n },\n]\n"],"mappings":";;;;AAcA,MAAaA,eACX,kBACG;CACH;EACE,MAAM;EACN,MAAM,eAAe;EACrB,QAAQ;EACR,MAAM,KAAK,cAAc;EAC1B;CACD;EACE,MAAM;EACN,MAAM,eAAe;EACrB,QAAQ;EACR,MAAM,MAAM,cAAc;EAC3B;CACD;EACE,MAAM;EACN,MAAM,eAAe;EACrB,QAAQ;EACR,MAAM,MAAM,cAAc;EAC3B;CACD;EACE,MAAM;EACN,MAAM,eAAe,UAAU;EAC/B,QAAQ;EACR,MAAM,QAAQ,cAAc;EAC7B;CACF"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ValuesOf } from "./index-H3peA2d_.js";
|
|
2
|
+
|
|
3
|
+
//#region src/button/constants.d.ts
|
|
4
|
+
declare const SIZE: {
|
|
5
|
+
readonly s: "s";
|
|
6
|
+
readonly l: "l";
|
|
7
|
+
};
|
|
8
|
+
type Size = ValuesOf<typeof SIZE>;
|
|
9
|
+
declare const STYLE: {
|
|
10
|
+
readonly brand: "brand";
|
|
11
|
+
readonly dark: "dark";
|
|
12
|
+
readonly light: "light";
|
|
13
|
+
};
|
|
14
|
+
type Style = ValuesOf<typeof STYLE>;
|
|
15
|
+
declare const TYPE: {
|
|
16
|
+
readonly primary: "primary";
|
|
17
|
+
readonly secondary: "secondary";
|
|
18
|
+
};
|
|
19
|
+
type Type = ValuesOf<typeof TYPE>;
|
|
20
|
+
//#endregion
|
|
21
|
+
export { SIZE, STYLE, Size, Style, TYPE, Type };
|
|
22
|
+
//# sourceMappingURL=constants-gCmka4Fp.d.ts.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ValuesOf } from "./index-BmIgLA0K.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/button/constants.d.ts
|
|
4
|
+
declare const SIZE: {
|
|
5
|
+
readonly s: "s";
|
|
6
|
+
readonly l: "l";
|
|
7
|
+
};
|
|
8
|
+
type Size = ValuesOf<typeof SIZE>;
|
|
9
|
+
declare const STYLE: {
|
|
10
|
+
readonly brand: "brand";
|
|
11
|
+
readonly dark: "dark";
|
|
12
|
+
readonly light: "light";
|
|
13
|
+
};
|
|
14
|
+
type Style = ValuesOf<typeof STYLE>;
|
|
15
|
+
declare const TYPE: {
|
|
16
|
+
readonly primary: "primary";
|
|
17
|
+
readonly secondary: "secondary";
|
|
18
|
+
};
|
|
19
|
+
type Type = ValuesOf<typeof TYPE>;
|
|
20
|
+
//#endregion
|
|
21
|
+
export { SIZE, STYLE, Size, Style, TYPE, Type };
|
|
22
|
+
//# sourceMappingURL=constants-jYAxSTFp.d.mts.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
//#region src/button/constants.ts
|
|
2
|
+
const SIZE = {
|
|
3
|
+
s: "s",
|
|
4
|
+
l: "l"
|
|
5
|
+
};
|
|
6
|
+
const STYLE = {
|
|
7
|
+
brand: "brand",
|
|
8
|
+
dark: "dark",
|
|
9
|
+
light: "light"
|
|
10
|
+
};
|
|
11
|
+
const TYPE = {
|
|
12
|
+
primary: "primary",
|
|
13
|
+
secondary: "secondary"
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
//#endregion
|
|
17
|
+
export { SIZE, STYLE, TYPE };
|
|
18
|
+
//# sourceMappingURL=constants-oTHAnh6r.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants-oTHAnh6r.mjs","names":[],"sources":["../src/button/constants.ts"],"sourcesContent":["import type { ValuesOf } from '../types'\n\nexport const SIZE = {\n s: 's',\n l: 'l',\n} as const\n\nexport type Size = ValuesOf<typeof SIZE>\n\nexport const STYLE = {\n brand: 'brand',\n dark: 'dark',\n light: 'light',\n} as const\n\nexport type Style = ValuesOf<typeof STYLE>\n\nexport const TYPE = {\n primary: 'primary',\n secondary: 'secondary',\n} as const\n\nexport type Type = ValuesOf<typeof TYPE>\n"],"mappings":";AAEA,MAAa,OAAO;CAClB,GAAG;CACH,GAAG;CACJ;AAID,MAAa,QAAQ;CACnB,OAAO;CACP,MAAM;CACN,OAAO;CACR;AAID,MAAa,OAAO;CAClB,SAAS;CACT,WAAW;CACZ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants-t0lkfgqP.mjs","names":[],"sources":["../src/divider/constants.ts"],"sourcesContent":["import type { ValuesOf } from '../types'\n\nexport const DIRECTION = {\n horizontal: 'horizontal',\n vertical: 'vertical',\n} as const\n\nexport type Direction = ValuesOf<typeof DIRECTION>\n"],"mappings":";AAEA,MAAa,YAAY;CACvB,YAAY;CACZ,UAAU;CACX"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { THEME } from "./theme-BG6yZVj-.mjs";
|
|
2
|
+
import { RELEASE_BRANCH } from "./release-branch-DNCD1uH_.mjs";
|
|
3
|
+
import { createContext } from "react";
|
|
4
|
+
|
|
5
|
+
//#region src/header/context/index.ts
|
|
6
|
+
const HeaderContext = createContext({
|
|
7
|
+
theme: THEME.normal,
|
|
8
|
+
releaseBranch: RELEASE_BRANCH.master,
|
|
9
|
+
isLinkExternal: false,
|
|
10
|
+
isAuthed: false,
|
|
11
|
+
pathname: "",
|
|
12
|
+
referrerPath: "",
|
|
13
|
+
toUseNarrow: false,
|
|
14
|
+
hideHeader: false
|
|
15
|
+
});
|
|
16
|
+
const HamburgerContext = createContext({
|
|
17
|
+
toggleHamburger: () => {},
|
|
18
|
+
closeHamburgerMenu: () => {},
|
|
19
|
+
isHamburgerMenuOpen: false
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
//#endregion
|
|
23
|
+
export { HamburgerContext, HeaderContext };
|
|
24
|
+
//# sourceMappingURL=context-BCesW3fW.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context-BCesW3fW.mjs","names":[],"sources":["../src/header/context/index.ts"],"sourcesContent":["import { createContext } from 'react'\n\nimport { THEME, type Theme } from '../../constants/theme'\nimport {\n RELEASE_BRANCH,\n type ReleaseBranch,\n} from '../../constants/release-branch'\n\nexport type HeaderContextType = {\n theme: Theme\n releaseBranch: ReleaseBranch\n isLinkExternal: boolean\n isAuthed: boolean\n pathname: string\n referrerPath: string\n toUseNarrow: boolean\n hideHeader: boolean\n}\nexport const HeaderContext = createContext<HeaderContextType>({\n theme: THEME.normal,\n releaseBranch: RELEASE_BRANCH.master,\n isLinkExternal: false,\n isAuthed: false,\n pathname: '',\n referrerPath: '',\n toUseNarrow: false,\n hideHeader: false,\n})\n\nexport type HamburgerContextType = {\n toggleHamburger: () => void\n closeHamburgerMenu: () => void\n isHamburgerMenuOpen: boolean\n}\nexport const HamburgerContext = createContext<HamburgerContextType>({\n toggleHamburger: () => {},\n closeHamburgerMenu: () => {},\n isHamburgerMenuOpen: false,\n})\n"],"mappings":";;;;;AAkBA,MAAa,gBAAgB,cAAiC;CAC5D,OAAO,MAAM;CACb,eAAe,eAAe;CAC9B,gBAAgB;CAChB,UAAU;CACV,UAAU;CACV,cAAc;CACd,aAAa;CACb,YAAY;CACb,CAAC;AAOF,MAAa,mBAAmB,cAAoC;CAClE,uBAAuB;CACvB,0BAA0B;CAC1B,qBAAqB;CACtB,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
const require_chunk = require('./chunk-BxBTb9qk.js');
|
|
2
|
+
const require_theme = require('./theme-DDBlIbeS.js');
|
|
3
|
+
const require_release_branch = require('./release-branch-CRZV4Ivz.js');
|
|
4
|
+
let react = require("react");
|
|
5
|
+
react = require_chunk.__toESM(react);
|
|
6
|
+
|
|
7
|
+
//#region src/header/context/index.ts
|
|
8
|
+
const HeaderContext = (0, react.createContext)({
|
|
9
|
+
theme: require_theme.THEME.normal,
|
|
10
|
+
releaseBranch: require_release_branch.RELEASE_BRANCH.master,
|
|
11
|
+
isLinkExternal: false,
|
|
12
|
+
isAuthed: false,
|
|
13
|
+
pathname: "",
|
|
14
|
+
referrerPath: "",
|
|
15
|
+
toUseNarrow: false,
|
|
16
|
+
hideHeader: false
|
|
17
|
+
});
|
|
18
|
+
const HamburgerContext = (0, react.createContext)({
|
|
19
|
+
toggleHamburger: () => {},
|
|
20
|
+
closeHamburgerMenu: () => {},
|
|
21
|
+
isHamburgerMenuOpen: false
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
//#endregion
|
|
25
|
+
Object.defineProperty(exports, 'HamburgerContext', {
|
|
26
|
+
enumerable: true,
|
|
27
|
+
get: function () {
|
|
28
|
+
return HamburgerContext;
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
Object.defineProperty(exports, 'HeaderContext', {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
get: function () {
|
|
34
|
+
return HeaderContext;
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
//# sourceMappingURL=context-Bvr0Qj2x.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context-Bvr0Qj2x.js","names":["THEME","RELEASE_BRANCH"],"sources":["../src/header/context/index.ts"],"sourcesContent":["import { createContext } from 'react'\n\nimport { THEME, type Theme } from '../../constants/theme'\nimport {\n RELEASE_BRANCH,\n type ReleaseBranch,\n} from '../../constants/release-branch'\n\nexport type HeaderContextType = {\n theme: Theme\n releaseBranch: ReleaseBranch\n isLinkExternal: boolean\n isAuthed: boolean\n pathname: string\n referrerPath: string\n toUseNarrow: boolean\n hideHeader: boolean\n}\nexport const HeaderContext = createContext<HeaderContextType>({\n theme: THEME.normal,\n releaseBranch: RELEASE_BRANCH.master,\n isLinkExternal: false,\n isAuthed: false,\n pathname: '',\n referrerPath: '',\n toUseNarrow: false,\n hideHeader: false,\n})\n\nexport type HamburgerContextType = {\n toggleHamburger: () => void\n closeHamburgerMenu: () => void\n isHamburgerMenuOpen: boolean\n}\nexport const HamburgerContext = createContext<HamburgerContextType>({\n toggleHamburger: () => {},\n closeHamburgerMenu: () => {},\n isHamburgerMenuOpen: false,\n})\n"],"mappings":";;;;;;;AAkBA,MAAa,yCAAiD;CAC5D,OAAOA,oBAAM;CACb,eAAeC,sCAAe;CAC9B,gBAAgB;CAChB,UAAU;CACV,UAAU;CACV,cAAc;CACd,aAAa;CACb,YAAY;CACb,CAAC;AAOF,MAAa,4CAAuD;CAClE,uBAAuB;CACvB,0BAA0B;CAC1B,qBAAqB;CACtB,CAAC"}
|