@twreporter/react-typescript-components 0.1.0-beta.17 → 0.1.0-beta.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/button/constants.d.mts +2 -2
- package/lib/button/index.d.mts +12 -12
- package/lib/constants/release-branch.d.mts +2 -2
- package/lib/constants/theme.d.mts +2 -2
- package/lib/{constants-C2kTkuiJ.d.mts → constants-B-jtTtz5.d.mts} +2 -2
- package/lib/{constants-oX1rftqQ.d.mts → constants-BL-KiLbo.d.mts} +2 -2
- package/lib/{constants-91DoZaeP.js → constants-B_1Vpdib.js} +1 -1
- package/lib/{constants-91DoZaeP.js.map → constants-B_1Vpdib.js.map} +1 -1
- package/lib/{constants-BYqJQzQQ.mjs → constants-Br6I254P.mjs} +1 -1
- package/lib/{constants-BYqJQzQQ.mjs.map → constants-Br6I254P.mjs.map} +1 -1
- package/lib/{constants-CzHmv07x.d.ts → constants-C86Q6QlO.d.ts} +1 -1
- package/lib/{constants-Cg4dfRV_.d.mts → constants-CIMBoUWq.d.mts} +2 -2
- package/lib/{constants-BnVX84Yl.d.mts → constants-CwFazfN4.d.mts} +2 -2
- package/lib/{constants-P65Nafg1.d.mts → constants-DJDyKM0N.d.mts} +2 -2
- package/lib/{constants-BuIUKM2c.js → constants-nmH6p6-y.js} +1 -1
- package/lib/{constants-BuIUKM2c.js.map → constants-nmH6p6-y.js.map} +1 -1
- package/lib/{constants-Cz7n-nLz.mjs → constants-z9Q8ph_H.mjs} +1 -1
- package/lib/{constants-Cz7n-nLz.mjs.map → constants-z9Q8ph_H.mjs.map} +1 -1
- package/lib/customized-link/external-link.d.mts +2 -2
- package/lib/customized-link/external-link.js +1 -1
- package/lib/customized-link/external-link.mjs +1 -1
- package/lib/customized-link/index.d.mts +6 -6
- package/lib/customized-link/index.js +3 -3
- package/lib/customized-link/index.mjs +2 -2
- package/lib/customized-link/internal-link.d.mts +2 -2
- package/lib/customized-link/internal-link.js +1 -1
- package/lib/customized-link/type.d.mts +1 -1
- package/lib/{customized-link-DNKmWI0u.mjs → customized-link-DnaZxeKK.mjs} +2 -2
- package/lib/{customized-link-DNKmWI0u.mjs.map → customized-link-DnaZxeKK.mjs.map} +1 -1
- package/lib/{customized-link-XNoMkeYw.js → customized-link-DqW2a8oZ.js} +3 -3
- package/lib/{customized-link-XNoMkeYw.js.map → customized-link-DqW2a8oZ.js.map} +1 -1
- package/lib/divider/constants.d.mts +2 -2
- package/lib/divider/constants.js +1 -1
- package/lib/divider/constants.mjs +1 -1
- package/lib/divider/index.d.mts +2 -2
- package/lib/divider/index.js +2 -2
- package/lib/divider/index.mjs +2 -2
- package/lib/{divider-Db3AhImD.js → divider-B1zvSjNJ.js} +2 -2
- package/lib/{divider-Db3AhImD.js.map → divider-B1zvSjNJ.js.map} +1 -1
- package/lib/{divider-CEIxmAsH.mjs → divider-CE4u6SR5.mjs} +2 -2
- package/lib/{divider-CEIxmAsH.mjs.map → divider-CE4u6SR5.mjs.map} +1 -1
- package/lib/dropdown-menu/index.d.mts +1 -1
- package/lib/dropdown-menu/index.js +4 -4
- package/lib/dropdown-menu/index.mjs +3 -3
- package/lib/{dropdown-menu-tbV9rhnw.js → dropdown-menu-BAqmP8qa.js} +3 -3
- package/lib/{dropdown-menu-tbV9rhnw.js.map → dropdown-menu-BAqmP8qa.js.map} +1 -1
- package/lib/{dropdown-menu-CuyS5r71.mjs → dropdown-menu-D7VNOiIl.mjs} +2 -2
- package/lib/{dropdown-menu-CuyS5r71.mjs.map → dropdown-menu-D7VNOiIl.mjs.map} +1 -1
- package/lib/{external-link-khVeTReZ.d.mts → external-link-C3_4RBmQ.d.mts} +2 -2
- package/lib/{external-link-BykRRwmY.mjs → external-link-DXT5ep5-.mjs} +1 -1
- package/lib/{external-link-BykRRwmY.mjs.map → external-link-DXT5ep5-.mjs.map} +1 -1
- package/lib/{external-link-BMrkjNyi.js → external-link-DoBTwlV3.js} +1 -1
- package/lib/{external-link-BMrkjNyi.js.map → external-link-DoBTwlV3.js.map} +1 -1
- package/lib/hamburger-menu/index.js +9 -10
- package/lib/hamburger-menu/index.mjs +8 -9
- package/lib/{hamburger-menu-qrLPGpHF.js → hamburger-menu-DGS62txC.js} +8 -8
- package/lib/{hamburger-menu-qrLPGpHF.js.map → hamburger-menu-DGS62txC.js.map} +1 -1
- package/lib/{hamburger-menu-Ca6QMgF9.mjs → hamburger-menu-iIWjGEVX.mjs} +7 -7
- package/lib/{hamburger-menu-Ca6QMgF9.mjs.map → hamburger-menu-iIWjGEVX.mjs.map} +1 -1
- package/lib/header/index.d.mts +3 -3
- package/lib/header/index.js +16 -16
- package/lib/header/index.js.map +1 -1
- package/lib/header/index.mjs +15 -15
- package/lib/header/index.mjs.map +1 -1
- package/lib/{heading-DJepEhoE.js → heading-Fvd7unhP.js} +1 -1
- package/lib/{heading-DJepEhoE.js.map → heading-Fvd7unhP.js.map} +1 -1
- package/lib/{heading-BWuXn7wB.mjs → heading-Qm-0gpRy.mjs} +1 -1
- package/lib/{heading-BWuXn7wB.mjs.map → heading-Qm-0gpRy.mjs.map} +1 -1
- package/lib/hooks/index.d.mts +3 -3
- package/lib/hooks/index.js +2 -2
- package/lib/hooks/index.mjs +2 -2
- package/lib/hooks/use-outside-click.d.mts +1 -1
- package/lib/hooks/use-outside-click.js +1 -1
- package/lib/hooks/use-outside-click.mjs +1 -1
- package/lib/{hooks-Mt5N4Z2W.js → hooks-B0DKeSXi.js} +2 -2
- package/lib/{hooks-Mt5N4Z2W.js.map → hooks-B0DKeSXi.js.map} +1 -1
- package/lib/{hooks-DFV2v01e.mjs → hooks-CDCpkU85.mjs} +2 -2
- package/lib/{hooks-DFV2v01e.mjs.map → hooks-CDCpkU85.mjs.map} +1 -1
- package/lib/icons/constants.d.mts +2 -2
- package/lib/icons/index.d.mts +3 -3
- package/lib/{index-DaRD2S-9.d.mts → index-B0aBR23L.d.mts} +1 -1
- package/lib/input/constants.d.mts +17 -3
- package/lib/input/constants.d.ts +17 -3
- package/lib/input/constants.js +15 -4
- package/lib/input/constants.js.map +1 -0
- package/lib/input/constants.mjs +13 -2
- package/lib/input/constants.mjs.map +1 -0
- package/lib/input/index.d.mts +7 -10
- package/lib/input/index.d.ts +2 -5
- package/lib/input/index.js +2 -3
- package/lib/input/index.mjs +2 -3
- package/lib/input/theme.d.mts +2 -2
- package/lib/input/theme.js +1 -1
- package/lib/input/theme.mjs +1 -1
- package/lib/{input-_Hl5B4_K.mjs → input-BU_QJnbj.mjs} +6 -8
- package/lib/input-BU_QJnbj.mjs.map +1 -0
- package/lib/{input-czWOItrW.js → input-VmgNb9pm.js} +6 -8
- package/lib/input-VmgNb9pm.js.map +1 -0
- package/lib/{internal-link-BLXTBMRq.js → internal-link-B9ExuJfg.js} +1 -1
- package/lib/{internal-link-BLXTBMRq.js.map → internal-link-B9ExuJfg.js.map} +1 -1
- package/lib/{internal-link-BSb3__eR.d.mts → internal-link-HG_KM8L7.d.mts} +2 -2
- package/lib/logo/constants.d.mts +2 -2
- package/lib/logo/constants.d.ts +1 -1
- package/lib/logo/index.d.mts +8 -8
- package/lib/logo/index.d.ts +1 -1
- package/lib/{release-branch-8qGtkKtd.d.mts → release-branch-CFUcv043.d.mts} +2 -2
- package/lib/styles.css +9 -0
- package/lib/tab-bar/constants.d.mts +3 -3
- package/lib/tab-bar/constants.js +1 -1
- package/lib/tab-bar/constants.mjs +1 -1
- package/lib/tab-bar/index.js +6 -6
- package/lib/tab-bar/index.mjs +5 -5
- package/lib/tab-bar/theme.d.mts +2 -2
- package/lib/tab-bar/theme.js +1 -1
- package/lib/tab-bar/theme.mjs +1 -1
- package/lib/{tab-bar-BqiC7-Lw.mjs → tab-bar-CXhDni4V.mjs} +4 -4
- package/lib/{tab-bar-BqiC7-Lw.mjs.map → tab-bar-CXhDni4V.mjs.map} +1 -1
- package/lib/{tab-bar-Binq1EhQ.js → tab-bar-CZt-vw5x.js} +5 -5
- package/lib/{tab-bar-Binq1EhQ.js.map → tab-bar-CZt-vw5x.js.map} +1 -1
- package/lib/text/constants.d.mts +2 -2
- package/lib/text/heading.d.mts +2 -2
- package/lib/text/heading.js +1 -1
- package/lib/text/heading.mjs +1 -1
- package/lib/text/paragraph.d.mts +2 -2
- package/lib/{theme-B9CWW8U9.d.mts → theme-BQP-h-2z.d.mts} +2 -2
- package/lib/{theme-CkSx7UX3.mjs → theme-Bgd_TUHZ.mjs} +1 -1
- package/lib/{theme-CkSx7UX3.mjs.map → theme-Bgd_TUHZ.mjs.map} +1 -1
- package/lib/{theme-PhMjSVv9.mjs → theme-CE2RkJwt.mjs} +1 -1
- package/lib/{theme-PhMjSVv9.mjs.map → theme-CE2RkJwt.mjs.map} +1 -1
- package/lib/{theme-BOMyqC4d.js → theme-CmvdSSbX.js} +1 -1
- package/lib/{theme-BOMyqC4d.js.map → theme-CmvdSSbX.js.map} +1 -1
- package/lib/{theme-CIEkzycI.js → theme-Cv8rt4oO.js} +1 -1
- package/lib/{theme-CIEkzycI.js.map → theme-Cv8rt4oO.js.map} +1 -1
- package/lib/title-bar/index.d.mts +4 -4
- package/lib/title-bar/index.js +4 -4
- package/lib/title-bar/index.mjs +3 -3
- package/lib/{type-4zpM3Fk5.d.mts → type-Dons5TOa.d.mts} +1 -1
- package/lib/types/index.d.mts +1 -1
- package/lib/{use-outside-click-436PXIeY.js → use-outside-click-BB1MpRid.js} +1 -1
- package/lib/{use-outside-click-436PXIeY.js.map → use-outside-click-BB1MpRid.js.map} +1 -1
- package/lib/use-outside-click-CSVLlhkD.d.mts +7 -0
- package/lib/{use-outside-click-Bz_v9VCq.mjs → use-outside-click-DAfe2vPE.mjs} +1 -1
- package/lib/{use-outside-click-Bz_v9VCq.mjs.map → use-outside-click-DAfe2vPE.mjs.map} +1 -1
- package/package.json +2 -2
- package/lib/constants-BGUGvo1A.d.ts +0 -22
- package/lib/constants-BP47D2l7.js +0 -36
- package/lib/constants-BP47D2l7.js.map +0 -1
- package/lib/constants-CxHP9dkH.d.mts +0 -22
- package/lib/constants-Dfgyc0ND.mjs +0 -18
- package/lib/constants-Dfgyc0ND.mjs.map +0 -1
- package/lib/input-_Hl5B4_K.mjs.map +0 -1
- package/lib/input-czWOItrW.js.map +0 -1
- package/lib/use-outside-click-DToGSYRk.d.mts +0 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CustomizedLinkProps } from "./type-
|
|
1
|
+
import { CustomizedLinkProps } from "./type-Dons5TOa.mjs";
|
|
2
2
|
import { FC } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/customized-link/internal-link.d.ts
|
|
@@ -6,4 +6,4 @@ type InternalLinkProps = CustomizedLinkProps;
|
|
|
6
6
|
declare const InternalLink: FC<InternalLinkProps>;
|
|
7
7
|
//#endregion
|
|
8
8
|
export { InternalLink };
|
|
9
|
-
//# sourceMappingURL=internal-link-
|
|
9
|
+
//# sourceMappingURL=internal-link-HG_KM8L7.d.mts.map
|
package/lib/logo/constants.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "../index-
|
|
2
|
-
import { LOGO, LOGO_SYMBOL_TYPE, LOGO_TYPE, Logo, LogoSymbolType, LogoType } from "../constants-
|
|
1
|
+
import "../index-B0aBR23L.mjs";
|
|
2
|
+
import { LOGO, LOGO_SYMBOL_TYPE, LOGO_TYPE, Logo, LogoSymbolType, LogoType } from "../constants-BL-KiLbo.mjs";
|
|
3
3
|
export { LOGO, LOGO_SYMBOL_TYPE, LOGO_TYPE, Logo, LogoSymbolType, LogoType };
|
package/lib/logo/constants.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import "../index-H3peA2d_.js";
|
|
2
|
-
import { LOGO, LOGO_SYMBOL_TYPE, LOGO_TYPE, Logo, LogoSymbolType, LogoType } from "../constants-
|
|
2
|
+
import { LOGO, LOGO_SYMBOL_TYPE, LOGO_TYPE, Logo, LogoSymbolType, LogoType } from "../constants-C86Q6QlO.js";
|
|
3
3
|
export { LOGO, LOGO_SYMBOL_TYPE, LOGO_TYPE, Logo, LogoSymbolType, LogoType };
|
package/lib/logo/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "../index-
|
|
2
|
-
import { ReleaseBranch } from "../release-branch-
|
|
3
|
-
import { LOGO_SYMBOL_TYPE, LOGO_TYPE, LogoSymbolType, LogoType } from "../constants-
|
|
4
|
-
import * as
|
|
1
|
+
import "../index-B0aBR23L.mjs";
|
|
2
|
+
import { ReleaseBranch } from "../release-branch-CFUcv043.mjs";
|
|
3
|
+
import { LOGO_SYMBOL_TYPE, LOGO_TYPE, LogoSymbolType, LogoType } from "../constants-BL-KiLbo.mjs";
|
|
4
|
+
import * as react4 from "react";
|
|
5
5
|
import React from "react";
|
|
6
6
|
|
|
7
7
|
//#region src/logo/components/logo-header.d.ts
|
|
@@ -24,16 +24,16 @@ declare const LogoSymbol: React.FC<LogoSymbolProps> & {
|
|
|
24
24
|
//#endregion
|
|
25
25
|
//#region src/logo/index.d.ts
|
|
26
26
|
declare const _default: {
|
|
27
|
-
LogoHeader:
|
|
27
|
+
LogoHeader: react4.FC<{
|
|
28
28
|
type: LogoType;
|
|
29
29
|
releaseBranch?: ReleaseBranch;
|
|
30
|
-
} &
|
|
30
|
+
} & react4.ImgHTMLAttributes<HTMLImageElement>> & {
|
|
31
31
|
Type: typeof LOGO_TYPE;
|
|
32
32
|
};
|
|
33
|
-
LogoSymbol:
|
|
33
|
+
LogoSymbol: react4.FC<{
|
|
34
34
|
type: LogoSymbolType;
|
|
35
35
|
releaseBranch?: ReleaseBranch;
|
|
36
|
-
} &
|
|
36
|
+
} & react4.ImgHTMLAttributes<HTMLImageElement>> & {
|
|
37
37
|
Type: typeof LOGO_SYMBOL_TYPE;
|
|
38
38
|
};
|
|
39
39
|
};
|
package/lib/logo/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../index-H3peA2d_.js";
|
|
2
2
|
import { ReleaseBranch } from "../release-branch-CsBbhuYE.js";
|
|
3
|
-
import { LOGO_SYMBOL_TYPE, LOGO_TYPE, LogoSymbolType, LogoType } from "../constants-
|
|
3
|
+
import { LOGO_SYMBOL_TYPE, LOGO_TYPE, LogoSymbolType, LogoType } from "../constants-C86Q6QlO.js";
|
|
4
4
|
import * as react11 from "react";
|
|
5
5
|
import React from "react";
|
|
6
6
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ValuesOf } from "./index-
|
|
1
|
+
import { ValuesOf } from "./index-B0aBR23L.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/constants/release-branch.d.ts
|
|
4
4
|
declare const RELEASE_BRANCH: {
|
|
@@ -11,4 +11,4 @@ declare const RELEASE_BRANCH: {
|
|
|
11
11
|
type ReleaseBranch = ValuesOf<typeof RELEASE_BRANCH>;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { RELEASE_BRANCH, ReleaseBranch };
|
|
14
|
-
//# sourceMappingURL=release-branch-
|
|
14
|
+
//# sourceMappingURL=release-branch-CFUcv043.d.mts.map
|
package/lib/styles.css
CHANGED
|
@@ -338,15 +338,24 @@
|
|
|
338
338
|
.w-0 {
|
|
339
339
|
width: calc(var(--spacing) * 0);
|
|
340
340
|
}
|
|
341
|
+
.w-\[-webkit-fill-available\] {
|
|
342
|
+
width: -webkit-fill-available;
|
|
343
|
+
}
|
|
341
344
|
.w-\[24px\] {
|
|
342
345
|
width: 24px;
|
|
343
346
|
}
|
|
347
|
+
.w-\[240px\] {
|
|
348
|
+
width: 240px;
|
|
349
|
+
}
|
|
344
350
|
.w-\[300px\] {
|
|
345
351
|
width: 300px;
|
|
346
352
|
}
|
|
347
353
|
.w-\[360px\] {
|
|
348
354
|
width: 360px;
|
|
349
355
|
}
|
|
356
|
+
.w-\[fill-available\] {
|
|
357
|
+
width: fill-available;
|
|
358
|
+
}
|
|
350
359
|
.w-fit {
|
|
351
360
|
width: fit-content;
|
|
352
361
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "../index-
|
|
2
|
-
import { ReleaseBranch } from "../release-branch-
|
|
3
|
-
import { LinkTarget } from "../type-
|
|
1
|
+
import "../index-B0aBR23L.mjs";
|
|
2
|
+
import { ReleaseBranch } from "../release-branch-CFUcv043.mjs";
|
|
3
|
+
import { LinkTarget } from "../type-Dons5TOa.mjs";
|
|
4
4
|
import { ReactElement } from "react";
|
|
5
5
|
|
|
6
6
|
//#region src/tab-bar/constants.d.ts
|
package/lib/tab-bar/constants.js
CHANGED
|
@@ -2,6 +2,6 @@ require('../internal-links-DxtMobuI.js');
|
|
|
2
2
|
require('../release-branch-CRZV4Ivz.js');
|
|
3
3
|
require('../constants-D8wNUvoZ.js');
|
|
4
4
|
require('../icons-qP5oNB0W.js');
|
|
5
|
-
const require_constants$1 = require('../constants-
|
|
5
|
+
const require_constants$1 = require('../constants-B_1Vpdib.js');
|
|
6
6
|
|
|
7
7
|
exports.TabBarItems = require_constants$1.TabBarItems;
|
|
@@ -2,6 +2,6 @@ import "../internal-links-CP3dqmrz.mjs";
|
|
|
2
2
|
import "../release-branch-DNCD1uH_.mjs";
|
|
3
3
|
import "../constants-5phfWHvb.mjs";
|
|
4
4
|
import "../icons-I7T-auOQ.mjs";
|
|
5
|
-
import { TabBarItems } from "../constants-
|
|
5
|
+
import { TabBarItems } from "../constants-Br6I254P.mjs";
|
|
6
6
|
|
|
7
7
|
export { TabBarItems };
|
package/lib/tab-bar/index.js
CHANGED
|
@@ -5,14 +5,14 @@ require('../theme-DDBlIbeS.js');
|
|
|
5
5
|
require('../button-Dk0MxlKd.js');
|
|
6
6
|
require('../internal-links-DxtMobuI.js');
|
|
7
7
|
require('../release-branch-CRZV4Ivz.js');
|
|
8
|
-
require('../external-link-
|
|
9
|
-
require('../internal-link-
|
|
10
|
-
require('../customized-link-
|
|
8
|
+
require('../external-link-DoBTwlV3.js');
|
|
9
|
+
require('../internal-link-B9ExuJfg.js');
|
|
10
|
+
require('../customized-link-DqW2a8oZ.js');
|
|
11
11
|
require('../context-I1lTR5SO.js');
|
|
12
12
|
require('../constants-D8wNUvoZ.js');
|
|
13
13
|
require('../icons-qP5oNB0W.js');
|
|
14
|
-
const require_tab_bar = require('../tab-bar-
|
|
15
|
-
require('../theme-
|
|
16
|
-
require('../constants-
|
|
14
|
+
const require_tab_bar = require('../tab-bar-CZt-vw5x.js');
|
|
15
|
+
require('../theme-CmvdSSbX.js');
|
|
16
|
+
require('../constants-B_1Vpdib.js');
|
|
17
17
|
|
|
18
18
|
module.exports = require_tab_bar.tab_bar_default;
|
package/lib/tab-bar/index.mjs
CHANGED
|
@@ -6,13 +6,13 @@ import "../theme-BG6yZVj-.mjs";
|
|
|
6
6
|
import "../button-D_AWI7r9.mjs";
|
|
7
7
|
import "../internal-links-CP3dqmrz.mjs";
|
|
8
8
|
import "../release-branch-DNCD1uH_.mjs";
|
|
9
|
-
import "../external-link-
|
|
10
|
-
import "../customized-link-
|
|
9
|
+
import "../external-link-DXT5ep5-.mjs";
|
|
10
|
+
import "../customized-link-DnaZxeKK.mjs";
|
|
11
11
|
import "../context-BgdqM3zA.mjs";
|
|
12
12
|
import "../constants-5phfWHvb.mjs";
|
|
13
13
|
import "../icons-I7T-auOQ.mjs";
|
|
14
|
-
import { tab_bar_default } from "../tab-bar-
|
|
15
|
-
import "../theme-
|
|
16
|
-
import "../constants-
|
|
14
|
+
import { tab_bar_default } from "../tab-bar-CXhDni4V.mjs";
|
|
15
|
+
import "../theme-CE2RkJwt.mjs";
|
|
16
|
+
import "../constants-Br6I254P.mjs";
|
|
17
17
|
|
|
18
18
|
export { tab_bar_default as default };
|
package/lib/tab-bar/theme.d.mts
CHANGED
package/lib/tab-bar/theme.js
CHANGED
package/lib/tab-bar/theme.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { internal_link_default } from "./internal-link-NQb751uB.mjs";
|
|
2
2
|
import { THEME } from "./theme-BG6yZVj-.mjs";
|
|
3
3
|
import { icon_with_text_button_default } from "./button-D_AWI7r9.mjs";
|
|
4
|
-
import { external_link_default } from "./external-link-
|
|
4
|
+
import { external_link_default } from "./external-link-DXT5ep5-.mjs";
|
|
5
5
|
import { HamburgerContext, HeaderContext } from "./context-BgdqM3zA.mjs";
|
|
6
6
|
import { Hamburger } from "./icons-I7T-auOQ.mjs";
|
|
7
|
-
import { selectTabBarTheme } from "./theme-
|
|
8
|
-
import { TabBarItems } from "./constants-
|
|
7
|
+
import { selectTabBarTheme } from "./theme-CE2RkJwt.mjs";
|
|
8
|
+
import { TabBarItems } from "./constants-Br6I254P.mjs";
|
|
9
9
|
import { useContext } from "react";
|
|
10
10
|
import clsx from "clsx";
|
|
11
11
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -59,4 +59,4 @@ var tab_bar_default = TabBar;
|
|
|
59
59
|
|
|
60
60
|
//#endregion
|
|
61
61
|
export { ZIndex, tab_bar_default };
|
|
62
|
-
//# sourceMappingURL=tab-bar-
|
|
62
|
+
//# sourceMappingURL=tab-bar-CXhDni4V.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tab-bar-
|
|
1
|
+
{"version":3,"file":"tab-bar-CXhDni4V.mjs","names":["TabBar: FC<TabBarProps>","ExternalLink","InternalLink","IconWithTextButton"],"sources":["../src/header/constants/z-index.ts","../src/tab-bar/index.tsx"],"sourcesContent":["export const ZIndex = {\n tabBarMobile: 'z-10',\n tabBarTablet: 'tablet:z-3',\n hamburger: 'z-4',\n header: 'z-3',\n topRow: 'z-2',\n channel: 'z-1',\n} as const\n","import { useContext, type FC } from 'react'\nimport clsx from 'clsx'\n// context\nimport { HamburgerContext, HeaderContext } from '../header/context'\n// z-index\nimport { ZIndex } from '../header/constants/z-index'\n// button\nimport { IconWithTextButton } from '../button'\n// icons\nimport { Hamburger } from '../icons'\n// theme\nimport { THEME } from '../constants/theme'\nimport { selectTabBarTheme } from './theme'\n// constants\nimport { TabBarItems } from './constants'\n// links\nimport { InternalLink, ExternalLink } from '../customized-link'\n// lodash\nimport map from 'lodash/map'\nconst _ = {\n map,\n}\n\ntype TabBarProps = {\n className?: string\n}\nconst TabBar: FC<TabBarProps> = ({ className = '' }) => {\n const { theme, releaseBranch, isLinkExternal, pathname } =\n useContext(HeaderContext)\n const { toggleHamburger, isHamburgerMenuOpen } = useContext(HamburgerContext)\n const { bgColor } = selectTabBarTheme(theme)\n const iconTheme = theme === THEME.photography ? theme : THEME.normal\n const LinkComponent = isLinkExternal ? ExternalLink : InternalLink\n return (\n <div\n className={clsx(\n 'w-screen fixed left-0 bottom-0 flex justify-between px-[16px] pt-[8px] pb-[calc(8px+env(safe-area-inset-bottom,0))] shadow-[0_0_2px_rgba(0,0,0,0.15)]',\n 'desktop:hidden',\n bgColor,\n ZIndex.tabBarMobile,\n ZIndex.tabBarTablet,\n className\n )}\n >\n {_.map(TabBarItems(releaseBranch), (item) => {\n const isActive = !isHamburgerMenuOpen && pathname === item.link\n return (\n <LinkComponent\n key={item.text}\n to={item.link}\n target={item.target}\n className=\"flex justify-center flex-1\"\n >\n <IconWithTextButton\n text={item.text}\n iconComponent={item.icon}\n theme={iconTheme}\n active={isActive}\n />\n </LinkComponent>\n )\n })}\n <IconWithTextButton\n text=\"選單\"\n iconComponent={Hamburger(releaseBranch)}\n className=\"flex justify-center flex-1\"\n onClick={toggleHamburger}\n active={isHamburgerMenuOpen}\n theme={iconTheme}\n />\n </div>\n )\n}\nexport default TabBar\n"],"mappings":";;;;;;;;;;;;;;AAAA,MAAa,SAAS;CACpB,cAAc;CACd,cAAc;CACd,WAAW;CACX,QAAQ;CACR,QAAQ;CACR,SAAS;CACV;;;;ACYD,MAAM,IAAI,EACR,KACD;AAKD,MAAMA,UAA2B,EAAE,YAAY,SAAS;CACtD,MAAM,EAAE,OAAO,eAAe,gBAAgB,aAC5C,WAAW,cAAc;CAC3B,MAAM,EAAE,iBAAiB,wBAAwB,WAAW,iBAAiB;CAC7E,MAAM,EAAE,YAAY,kBAAkB,MAAM;CAC5C,MAAM,YAAY,UAAU,MAAM,cAAc,QAAQ,MAAM;CAC9D,MAAM,gBAAgB,iBAAiBC,wBAAeC;AACtD,QACE,qBAAC;EACC,WAAW,KACT,yJACA,kBACA,SACA,OAAO,cACP,OAAO,cACP,UACD;aAEA,EAAE,IAAI,YAAY,cAAc,GAAG,SAAS;GAC3C,MAAM,WAAW,CAAC,uBAAuB,aAAa,KAAK;AAC3D,UACE,oBAAC;IAEC,IAAI,KAAK;IACT,QAAQ,KAAK;IACb,WAAU;cAEV,oBAACC;KACC,MAAM,KAAK;KACX,eAAe,KAAK;KACpB,OAAO;KACP,QAAQ;MACR;MAVG,KAAK,KAWI;IAElB,EACF,oBAACA;GACC,MAAK;GACL,eAAe,UAAU,cAAc;GACvC,WAAU;GACV,SAAS;GACT,QAAQ;GACR,OAAO;IACP;GACE;;AAGV,sBAAe"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-BxBTb9qk.js');
|
|
2
2
|
const require_theme = require('./theme-DDBlIbeS.js');
|
|
3
3
|
const require_button = require('./button-Dk0MxlKd.js');
|
|
4
|
-
const require_external_link = require('./external-link-
|
|
5
|
-
const require_internal_link = require('./internal-link-
|
|
4
|
+
const require_external_link = require('./external-link-DoBTwlV3.js');
|
|
5
|
+
const require_internal_link = require('./internal-link-B9ExuJfg.js');
|
|
6
6
|
const require_context = require('./context-I1lTR5SO.js');
|
|
7
7
|
const require_icons = require('./icons-qP5oNB0W.js');
|
|
8
|
-
const require_theme$1 = require('./theme-
|
|
9
|
-
const require_constants = require('./constants-
|
|
8
|
+
const require_theme$1 = require('./theme-CmvdSSbX.js');
|
|
9
|
+
const require_constants = require('./constants-B_1Vpdib.js');
|
|
10
10
|
let react = require("react");
|
|
11
11
|
react = require_chunk.__toESM(react);
|
|
12
12
|
let clsx = require("clsx");
|
|
@@ -75,4 +75,4 @@ Object.defineProperty(exports, 'tab_bar_default', {
|
|
|
75
75
|
return tab_bar_default;
|
|
76
76
|
}
|
|
77
77
|
});
|
|
78
|
-
//# sourceMappingURL=tab-bar-
|
|
78
|
+
//# sourceMappingURL=tab-bar-CZt-vw5x.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tab-bar-
|
|
1
|
+
{"version":3,"file":"tab-bar-CZt-vw5x.js","names":["TabBar: FC<TabBarProps>","HeaderContext","HamburgerContext","selectTabBarTheme","THEME","ExternalLink","InternalLink","TabBarItems","IconWithTextButton","Hamburger"],"sources":["../src/header/constants/z-index.ts","../src/tab-bar/index.tsx"],"sourcesContent":["export const ZIndex = {\n tabBarMobile: 'z-10',\n tabBarTablet: 'tablet:z-3',\n hamburger: 'z-4',\n header: 'z-3',\n topRow: 'z-2',\n channel: 'z-1',\n} as const\n","import { useContext, type FC } from 'react'\nimport clsx from 'clsx'\n// context\nimport { HamburgerContext, HeaderContext } from '../header/context'\n// z-index\nimport { ZIndex } from '../header/constants/z-index'\n// button\nimport { IconWithTextButton } from '../button'\n// icons\nimport { Hamburger } from '../icons'\n// theme\nimport { THEME } from '../constants/theme'\nimport { selectTabBarTheme } from './theme'\n// constants\nimport { TabBarItems } from './constants'\n// links\nimport { InternalLink, ExternalLink } from '../customized-link'\n// lodash\nimport map from 'lodash/map'\nconst _ = {\n map,\n}\n\ntype TabBarProps = {\n className?: string\n}\nconst TabBar: FC<TabBarProps> = ({ className = '' }) => {\n const { theme, releaseBranch, isLinkExternal, pathname } =\n useContext(HeaderContext)\n const { toggleHamburger, isHamburgerMenuOpen } = useContext(HamburgerContext)\n const { bgColor } = selectTabBarTheme(theme)\n const iconTheme = theme === THEME.photography ? theme : THEME.normal\n const LinkComponent = isLinkExternal ? ExternalLink : InternalLink\n return (\n <div\n className={clsx(\n 'w-screen fixed left-0 bottom-0 flex justify-between px-[16px] pt-[8px] pb-[calc(8px+env(safe-area-inset-bottom,0))] shadow-[0_0_2px_rgba(0,0,0,0.15)]',\n 'desktop:hidden',\n bgColor,\n ZIndex.tabBarMobile,\n ZIndex.tabBarTablet,\n className\n )}\n >\n {_.map(TabBarItems(releaseBranch), (item) => {\n const isActive = !isHamburgerMenuOpen && pathname === item.link\n return (\n <LinkComponent\n key={item.text}\n to={item.link}\n target={item.target}\n className=\"flex justify-center flex-1\"\n >\n <IconWithTextButton\n text={item.text}\n iconComponent={item.icon}\n theme={iconTheme}\n active={isActive}\n />\n </LinkComponent>\n )\n })}\n <IconWithTextButton\n text=\"選單\"\n iconComponent={Hamburger(releaseBranch)}\n className=\"flex justify-center flex-1\"\n onClick={toggleHamburger}\n active={isHamburgerMenuOpen}\n theme={iconTheme}\n />\n </div>\n )\n}\nexport default TabBar\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,MAAa,SAAS;CACpB,cAAc;CACd,cAAc;CACd,WAAW;CACX,QAAQ;CACR,QAAQ;CACR,SAAS;CACV;;;;ACYD,MAAM,IAAI,EACR,yBACD;AAKD,MAAMA,UAA2B,EAAE,YAAY,SAAS;CACtD,MAAM,EAAE,OAAO,eAAe,gBAAgB,mCACjCC,8BAAc;CAC3B,MAAM,EAAE,iBAAiB,8CAAmCC,iCAAiB;CAC7E,MAAM,EAAE,YAAYC,kCAAkB,MAAM;CAC5C,MAAM,YAAY,UAAUC,oBAAM,cAAc,QAAQA,oBAAM;CAC9D,MAAM,gBAAgB,iBAAiBC,8CAAeC;AACtD,QACE,4CAAC;EACC,6BACE,yJACA,kBACA,SACA,OAAO,cACP,OAAO,cACP,UACD;aAEA,EAAE,IAAIC,8BAAY,cAAc,GAAG,SAAS;GAC3C,MAAM,WAAW,CAAC,uBAAuB,aAAa,KAAK;AAC3D,UACE,2CAAC;IAEC,IAAI,KAAK;IACT,QAAQ,KAAK;IACb,WAAU;cAEV,2CAACC;KACC,MAAM,KAAK;KACX,eAAe,KAAK;KACpB,OAAO;KACP,QAAQ;MACR;MAVG,KAAK,KAWI;IAElB,EACF,2CAACA;GACC,MAAK;GACL,eAAeC,wBAAU,cAAc;GACvC,WAAU;GACV,SAAS;GACT,QAAQ;GACR,OAAO;IACP;GACE;;AAGV,sBAAe"}
|
package/lib/text/constants.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "../index-
|
|
2
|
-
import { TYPE, Type, WEIGHT, Weight } from "../constants-
|
|
1
|
+
import "../index-B0aBR23L.mjs";
|
|
2
|
+
import { TYPE, Type, WEIGHT, Weight } from "../constants-DJDyKM0N.mjs";
|
|
3
3
|
export { TYPE, Type, WEIGHT, Weight };
|
package/lib/text/heading.d.mts
CHANGED
package/lib/text/heading.js
CHANGED
package/lib/text/heading.mjs
CHANGED
package/lib/text/paragraph.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ValuesOf } from "./index-
|
|
1
|
+
import { ValuesOf } from "./index-B0aBR23L.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/constants/theme.d.ts
|
|
4
4
|
declare const THEME: {
|
|
@@ -10,4 +10,4 @@ declare const THEME: {
|
|
|
10
10
|
type Theme = ValuesOf<typeof THEME>;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { THEME, Theme };
|
|
13
|
-
//# sourceMappingURL=theme-
|
|
13
|
+
//# sourceMappingURL=theme-BQP-h-2z.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme-
|
|
1
|
+
{"version":3,"file":"theme-Bgd_TUHZ.mjs","names":[],"sources":["../src/input/theme.ts"],"sourcesContent":["import { THEME, type Theme } from '../constants/theme'\n\nexport const selectThemeStyle = (theme: Theme) => {\n switch (theme) {\n case THEME.photography:\n return {\n bgColor: 'bg-opacity-white-08',\n focusBgColor: 'focus:bg-gray-100',\n desktopBgColor: 'desktop:bg-gray-100',\n borderColor: 'border-supportive-pastel',\n color: 'text-gray-800',\n focusColor: 'focus:text-gray-800',\n placeholderColor: '[&::placeholder]:text-gray-800',\n }\n case THEME.transparent:\n return {\n bgColor: 'bg-opacity-gray100-08',\n focusBgColor: 'focus:bg-opacity-gray100-08',\n desktopBgColor: 'desktop:bg-gray-white',\n borderColor: 'border-gray-600',\n color: 'text-gray-800',\n focusColor: 'focus:text-gray-800',\n placeholderColor: '[&::placeholder]:text-gray-500',\n }\n default:\n return {\n bgColor: 'bg-opacity-gray100-08',\n focusBgColor: 'focus:bg-opacity-gray100-08',\n desktopBgColor: 'desktop:bg-gray-white',\n borderColor: 'border-gray-600',\n color: 'text-gray-800',\n focusColor: 'focus:text-gray-800',\n placeholderColor: '[&::placeholder]:text-gray-500',\n }\n }\n}\n"],"mappings":";;;AAEA,MAAa,oBAAoB,UAAiB;AAChD,SAAQ,OAAR;EACE,KAAK,MAAM,YACT,QAAO;GACL,SAAS;GACT,cAAc;GACd,gBAAgB;GAChB,aAAa;GACb,OAAO;GACP,YAAY;GACZ,kBAAkB;GACnB;EACH,KAAK,MAAM,YACT,QAAO;GACL,SAAS;GACT,cAAc;GACd,gBAAgB;GAChB,aAAa;GACb,OAAO;GACP,YAAY;GACZ,kBAAkB;GACnB;EACH,QACE,QAAO;GACL,SAAS;GACT,cAAc;GACd,gBAAgB;GAChB,aAAa;GACb,OAAO;GACP,YAAY;GACZ,kBAAkB;GACnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme-
|
|
1
|
+
{"version":3,"file":"theme-CE2RkJwt.mjs","names":[],"sources":["../src/tab-bar/theme.ts"],"sourcesContent":["import { THEME, type Theme } from '../constants/theme'\n\nexport const selectTabBarTheme = (theme: Theme) => {\n switch (theme) {\n case THEME.photography:\n return {\n bgColor: 'bg-photo-dark',\n }\n default:\n return {\n bgColor: 'bg-gray-100',\n }\n }\n}\n"],"mappings":";;;AAEA,MAAa,qBAAqB,UAAiB;AACjD,SAAQ,OAAR;EACE,KAAK,MAAM,YACT,QAAO,EACL,SAAS,iBACV;EACH,QACE,QAAO,EACL,SAAS,eACV"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme-
|
|
1
|
+
{"version":3,"file":"theme-CmvdSSbX.js","names":["THEME"],"sources":["../src/tab-bar/theme.ts"],"sourcesContent":["import { THEME, type Theme } from '../constants/theme'\n\nexport const selectTabBarTheme = (theme: Theme) => {\n switch (theme) {\n case THEME.photography:\n return {\n bgColor: 'bg-photo-dark',\n }\n default:\n return {\n bgColor: 'bg-gray-100',\n }\n }\n}\n"],"mappings":";;;AAEA,MAAa,qBAAqB,UAAiB;AACjD,SAAQ,OAAR;EACE,KAAKA,oBAAM,YACT,QAAO,EACL,SAAS,iBACV;EACH,QACE,QAAO,EACL,SAAS,eACV"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme-
|
|
1
|
+
{"version":3,"file":"theme-Cv8rt4oO.js","names":["THEME"],"sources":["../src/input/theme.ts"],"sourcesContent":["import { THEME, type Theme } from '../constants/theme'\n\nexport const selectThemeStyle = (theme: Theme) => {\n switch (theme) {\n case THEME.photography:\n return {\n bgColor: 'bg-opacity-white-08',\n focusBgColor: 'focus:bg-gray-100',\n desktopBgColor: 'desktop:bg-gray-100',\n borderColor: 'border-supportive-pastel',\n color: 'text-gray-800',\n focusColor: 'focus:text-gray-800',\n placeholderColor: '[&::placeholder]:text-gray-800',\n }\n case THEME.transparent:\n return {\n bgColor: 'bg-opacity-gray100-08',\n focusBgColor: 'focus:bg-opacity-gray100-08',\n desktopBgColor: 'desktop:bg-gray-white',\n borderColor: 'border-gray-600',\n color: 'text-gray-800',\n focusColor: 'focus:text-gray-800',\n placeholderColor: '[&::placeholder]:text-gray-500',\n }\n default:\n return {\n bgColor: 'bg-opacity-gray100-08',\n focusBgColor: 'focus:bg-opacity-gray100-08',\n desktopBgColor: 'desktop:bg-gray-white',\n borderColor: 'border-gray-600',\n color: 'text-gray-800',\n focusColor: 'focus:text-gray-800',\n placeholderColor: '[&::placeholder]:text-gray-500',\n }\n }\n}\n"],"mappings":";;;AAEA,MAAa,oBAAoB,UAAiB;AAChD,SAAQ,OAAR;EACE,KAAKA,oBAAM,YACT,QAAO;GACL,SAAS;GACT,cAAc;GACd,gBAAgB;GAChB,aAAa;GACb,OAAO;GACP,YAAY;GACZ,kBAAkB;GACnB;EACH,KAAKA,oBAAM,YACT,QAAO;GACL,SAAS;GACT,cAAc;GACd,gBAAgB;GAChB,aAAa;GACb,OAAO;GACP,YAAY;GACZ,kBAAkB;GACnB;EACH,QACE,QAAO;GACL,SAAS;GACT,cAAc;GACd,gBAAgB;GAChB,aAAa;GACb,OAAO;GACP,YAAY;GACZ,kBAAkB;GACnB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react8 from "react";
|
|
2
2
|
import React$1, { FC } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/title-bar/components/title-tab/type.d.ts
|
|
@@ -36,18 +36,18 @@ declare const TitleTab: FC<TitleTabProps>;
|
|
|
36
36
|
//#endregion
|
|
37
37
|
//#region src/title-bar/index.d.ts
|
|
38
38
|
declare const _default: {
|
|
39
|
-
Title2:
|
|
39
|
+
Title2: react8.FC<{
|
|
40
40
|
title: string;
|
|
41
41
|
subtitle?: string;
|
|
42
42
|
renderButton?: React.ReactNode;
|
|
43
43
|
className?: string;
|
|
44
44
|
}>;
|
|
45
|
-
Title1:
|
|
45
|
+
Title1: react8.FC<{
|
|
46
46
|
title: string;
|
|
47
47
|
subtitle?: string;
|
|
48
48
|
className?: string;
|
|
49
49
|
}>;
|
|
50
|
-
TitleTab:
|
|
50
|
+
TitleTab: react8.FC<{
|
|
51
51
|
title: string;
|
|
52
52
|
tabs: Tab[];
|
|
53
53
|
activeTabIndex?: number;
|
package/lib/title-bar/index.js
CHANGED
|
@@ -5,10 +5,10 @@ require('../constants-Cndhv6qr.js');
|
|
|
5
5
|
const require_paragraph = require('../paragraph-iuz3jP0Q.js');
|
|
6
6
|
require('../theme-DDBlIbeS.js');
|
|
7
7
|
const require_button = require('../button-Dk0MxlKd.js');
|
|
8
|
-
const require_external_link = require('../external-link-
|
|
9
|
-
const require_internal_link = require('../internal-link-
|
|
10
|
-
require('../customized-link-
|
|
11
|
-
const require_heading = require('../heading-
|
|
8
|
+
const require_external_link = require('../external-link-DoBTwlV3.js');
|
|
9
|
+
const require_internal_link = require('../internal-link-B9ExuJfg.js');
|
|
10
|
+
require('../customized-link-DqW2a8oZ.js');
|
|
11
|
+
const require_heading = require('../heading-Fvd7unhP.js');
|
|
12
12
|
let react = require("react");
|
|
13
13
|
react = require_chunk.__toESM(react);
|
|
14
14
|
let clsx = require("clsx");
|
package/lib/title-bar/index.mjs
CHANGED
|
@@ -4,9 +4,9 @@ import "../constants-CBSEPx91.mjs";
|
|
|
4
4
|
import { P1, P2 } from "../paragraph-Cf9jr8RF.mjs";
|
|
5
5
|
import "../theme-BG6yZVj-.mjs";
|
|
6
6
|
import { text_button_default } from "../button-D_AWI7r9.mjs";
|
|
7
|
-
import { external_link_default } from "../external-link-
|
|
8
|
-
import "../customized-link-
|
|
9
|
-
import { H1, H2, H5 } from "../heading-
|
|
7
|
+
import { external_link_default } from "../external-link-DXT5ep5-.mjs";
|
|
8
|
+
import "../customized-link-DnaZxeKK.mjs";
|
|
9
|
+
import { H1, H2, H5 } from "../heading-Qm-0gpRy.mjs";
|
|
10
10
|
import { createElement, useEffect, useRef, useState } from "react";
|
|
11
11
|
import clsx from "clsx";
|
|
12
12
|
import { jsx, jsxs } from "react/jsx-runtime";
|
package/lib/types/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ValuesOf } from "../index-
|
|
1
|
+
import { ValuesOf } from "../index-B0aBR23L.mjs";
|
|
2
2
|
export { ValuesOf };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-outside-click-
|
|
1
|
+
{"version":3,"file":"use-outside-click-BB1MpRid.js","names":[],"sources":["../src/hooks/use-outside-click.ts"],"sourcesContent":["import { useEffect, useRef } from 'react'\n\nexport const useOutsideClick = (callback: () => void) => {\n const ref = useRef<HTMLDivElement>(null)\n\n useEffect(() => {\n const handleClickOutside = (event: MouseEvent | TouchEvent) => {\n if (ref.current && !ref.current.contains(event.target as Node)) {\n callback()\n }\n }\n\n window.addEventListener('click', handleClickOutside)\n\n return () => {\n window.removeEventListener('click', handleClickOutside)\n }\n }, [callback])\n\n return ref\n}\n"],"mappings":";;;;;AAEA,MAAa,mBAAmB,aAAyB;CACvD,MAAM,wBAA6B,KAAK;AAExC,4BAAgB;EACd,MAAM,sBAAsB,UAAmC;AAC7D,OAAI,IAAI,WAAW,CAAC,IAAI,QAAQ,SAAS,MAAM,OAAe,CAC5D,WAAU;;AAId,SAAO,iBAAiB,SAAS,mBAAmB;AAEpD,eAAa;AACX,UAAO,oBAAoB,SAAS,mBAAmB;;IAExD,CAAC,SAAS,CAAC;AAEd,QAAO"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as react2 from "react";
|
|
2
|
+
|
|
3
|
+
//#region src/hooks/use-outside-click.d.ts
|
|
4
|
+
declare const useOutsideClick: (callback: () => void) => react2.RefObject<HTMLDivElement | null>;
|
|
5
|
+
//#endregion
|
|
6
|
+
export { useOutsideClick };
|
|
7
|
+
//# sourceMappingURL=use-outside-click-CSVLlhkD.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-outside-click-
|
|
1
|
+
{"version":3,"file":"use-outside-click-DAfe2vPE.mjs","names":[],"sources":["../src/hooks/use-outside-click.ts"],"sourcesContent":["import { useEffect, useRef } from 'react'\n\nexport const useOutsideClick = (callback: () => void) => {\n const ref = useRef<HTMLDivElement>(null)\n\n useEffect(() => {\n const handleClickOutside = (event: MouseEvent | TouchEvent) => {\n if (ref.current && !ref.current.contains(event.target as Node)) {\n callback()\n }\n }\n\n window.addEventListener('click', handleClickOutside)\n\n return () => {\n window.removeEventListener('click', handleClickOutside)\n }\n }, [callback])\n\n return ref\n}\n"],"mappings":";;;AAEA,MAAa,mBAAmB,aAAyB;CACvD,MAAM,MAAM,OAAuB,KAAK;AAExC,iBAAgB;EACd,MAAM,sBAAsB,UAAmC;AAC7D,OAAI,IAAI,WAAW,CAAC,IAAI,QAAQ,SAAS,MAAM,OAAe,CAC5D,WAAU;;AAId,SAAO,iBAAiB,SAAS,mBAAmB;AAEpD,eAAa;AACX,UAAO,oBAAoB,SAAS,mBAAmB;;IAExD,CAAC,SAAS,CAAC;AAEd,QAAO"}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "React components using TypeScript and Tailwind CSS",
|
|
4
4
|
"author": "twreporter <developer@twreporter.org>",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"version": "0.1.0-beta.
|
|
6
|
+
"version": "0.1.0-beta.18",
|
|
7
7
|
"type": "commonjs",
|
|
8
8
|
"scripts": {
|
|
9
9
|
"clean": "rm -rf lib",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"url": "git+https://github.com/twreporter/www-public-monorepo.git",
|
|
51
51
|
"directory": "packages/react-typescript-components"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "a011711831512259d08fdbb328780bd50f2f166f"
|
|
54
54
|
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { ValuesOf } from "./index-H3peA2d_.js";
|
|
2
|
-
|
|
3
|
-
//#region src/input/constants.d.ts
|
|
4
|
-
declare const WIDTH_TYPE: {
|
|
5
|
-
readonly fit: "fit";
|
|
6
|
-
readonly stretch: "stretch";
|
|
7
|
-
};
|
|
8
|
-
type WidthType = ValuesOf<typeof WIDTH_TYPE>;
|
|
9
|
-
declare const TEXT_ALIGN: {
|
|
10
|
-
readonly left: "left";
|
|
11
|
-
readonly center: "center";
|
|
12
|
-
};
|
|
13
|
-
type TextAlign = ValuesOf<typeof TEXT_ALIGN>;
|
|
14
|
-
declare const TEXT_STATE: {
|
|
15
|
-
readonly default: "default";
|
|
16
|
-
readonly error: "error";
|
|
17
|
-
readonly disabled: "disabled";
|
|
18
|
-
};
|
|
19
|
-
type TextState = ValuesOf<typeof TEXT_STATE>;
|
|
20
|
-
//#endregion
|
|
21
|
-
export { TEXT_ALIGN, TEXT_STATE, TextAlign, TextState, WIDTH_TYPE, WidthType };
|
|
22
|
-
//# sourceMappingURL=constants-BGUGvo1A.d.ts.map
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
//#region src/input/constants.ts
|
|
3
|
-
const WIDTH_TYPE = {
|
|
4
|
-
fit: "fit",
|
|
5
|
-
stretch: "stretch"
|
|
6
|
-
};
|
|
7
|
-
const TEXT_ALIGN = {
|
|
8
|
-
left: "left",
|
|
9
|
-
center: "center"
|
|
10
|
-
};
|
|
11
|
-
const TEXT_STATE = {
|
|
12
|
-
default: "default",
|
|
13
|
-
error: "error",
|
|
14
|
-
disabled: "disabled"
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
//#endregion
|
|
18
|
-
Object.defineProperty(exports, 'TEXT_ALIGN', {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
get: function () {
|
|
21
|
-
return TEXT_ALIGN;
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
Object.defineProperty(exports, 'TEXT_STATE', {
|
|
25
|
-
enumerable: true,
|
|
26
|
-
get: function () {
|
|
27
|
-
return TEXT_STATE;
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
Object.defineProperty(exports, 'WIDTH_TYPE', {
|
|
31
|
-
enumerable: true,
|
|
32
|
-
get: function () {
|
|
33
|
-
return WIDTH_TYPE;
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
//# sourceMappingURL=constants-BP47D2l7.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants-BP47D2l7.js","names":[],"sources":["../src/input/constants.ts"],"sourcesContent":["import type { ValuesOf } from '../types'\n\n// for search-bar\nexport const WIDTH_TYPE = {\n fit: 'fit',\n stretch: 'stretch',\n} as const\nexport type WidthType = ValuesOf<typeof WIDTH_TYPE>\n\n// for text-field\nexport const TEXT_ALIGN = {\n left: 'left',\n center: 'center',\n} as const\nexport type TextAlign = ValuesOf<typeof TEXT_ALIGN>\n\nexport const TEXT_STATE = {\n default: 'default',\n error: 'error',\n disabled: 'disabled',\n} as const\nexport type TextState = ValuesOf<typeof TEXT_STATE>\n"],"mappings":";;AAGA,MAAa,aAAa;CACxB,KAAK;CACL,SAAS;CACV;AAID,MAAa,aAAa;CACxB,MAAM;CACN,QAAQ;CACT;AAGD,MAAa,aAAa;CACxB,SAAS;CACT,OAAO;CACP,UAAU;CACX"}
|