@twreporter/react-typescript-components 0.1.0-beta.16 → 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/button/index.js +1 -1
- package/lib/button/index.mjs +1 -1
- package/lib/{button-hDNHA85d.mjs → button-D_AWI7r9.mjs} +8 -2
- package/lib/button-D_AWI7r9.mjs.map +1 -0
- package/lib/{button-D50NHdly.js → button-Dk0MxlKd.js} +8 -2
- package/lib/button-Dk0MxlKd.js.map +1 -0
- package/lib/constants/release-branch.d.mts +2 -2
- package/lib/constants/theme.d.mts +2 -2
- package/lib/{constants-B6oiTL1L.d.mts → constants-B-jtTtz5.d.mts} +2 -2
- package/lib/{constants-BqAhJjFv.d.mts → constants-BL-KiLbo.d.mts} +2 -2
- package/lib/{constants-BNxn_qJc.js → constants-B_1Vpdib.js} +1 -1
- package/lib/{constants-BNxn_qJc.js.map → constants-B_1Vpdib.js.map} +1 -1
- package/lib/{constants--CDeoDub.mjs → constants-Br6I254P.mjs} +1 -1
- package/lib/{constants--CDeoDub.mjs.map → constants-Br6I254P.mjs.map} +1 -1
- package/lib/{constants-B_NgWFML.d.ts → constants-C86Q6QlO.d.ts} +1 -1
- package/lib/{constants-CVmr4VOP.d.mts → constants-CIMBoUWq.d.mts} +2 -2
- package/lib/{constants-CBjyeHSl.d.ts → constants-COhDITk3.d.ts} +1 -1
- package/lib/{constants-Cb4Udkwt.d.mts → constants-CwFazfN4.d.mts} +2 -2
- package/lib/{constants-D-mBwgNQ.d.mts → constants-DJDyKM0N.d.mts} +2 -2
- package/lib/customized-link/external-link.d.mts +2 -2
- package/lib/customized-link/index.d.mts +3 -3
- package/lib/customized-link/internal-link.d.mts +2 -2
- package/lib/customized-link/type.d.mts +1 -1
- package/lib/divider/constants.d.mts +2 -2
- package/lib/divider/index.d.mts +2 -2
- package/lib/dropdown-menu/index.d.mts +1 -1
- package/lib/{external-link-goP_Ay-S.d.mts → external-link-C3_4RBmQ.d.mts} +2 -2
- package/lib/hamburger-menu/index.js +5 -3
- package/lib/hamburger-menu/index.mjs +5 -3
- package/lib/{hamburger-menu-DNfJ2jMA.js → hamburger-menu-DGS62txC.js} +40 -32
- package/lib/hamburger-menu-DGS62txC.js.map +1 -0
- package/lib/{hamburger-menu-DOrmybn_.mjs → hamburger-menu-iIWjGEVX.mjs} +40 -32
- package/lib/hamburger-menu-iIWjGEVX.mjs.map +1 -0
- package/lib/header/index.d.mts +3 -3
- package/lib/header/index.js +52 -11
- package/lib/header/index.js.map +1 -1
- package/lib/header/index.mjs +52 -11
- package/lib/header/index.mjs.map +1 -1
- package/lib/{heading-CNS7rJIc.js → heading-Fvd7unhP.js} +1 -1
- package/lib/{heading-CNS7rJIc.js.map → heading-Fvd7unhP.js.map} +1 -1
- package/lib/{heading-BSEtBLuY.mjs → heading-Qm-0gpRy.mjs} +1 -1
- package/lib/{heading-BSEtBLuY.mjs.map → heading-Qm-0gpRy.mjs.map} +1 -1
- package/lib/hooks/index.d.mts +10 -0
- package/lib/hooks/index.d.ts +10 -0
- package/lib/hooks/index.js +6 -0
- package/lib/hooks/index.mjs +4 -0
- package/lib/hooks/use-outside-click.d.mts +2 -0
- package/lib/hooks/use-outside-click.d.ts +2 -0
- package/lib/hooks/use-outside-click.js +3 -0
- package/lib/hooks/use-outside-click.mjs +3 -0
- package/lib/hooks-B0DKeSXi.js +13 -0
- package/lib/hooks-B0DKeSXi.js.map +1 -0
- package/lib/hooks-CDCpkU85.mjs +8 -0
- package/lib/hooks-CDCpkU85.mjs.map +1 -0
- package/lib/icons/constants.d.mts +2 -2
- package/lib/icons/constants.d.ts +1 -1
- package/lib/icons/index.d.mts +3 -3
- package/lib/icons/index.d.ts +1 -1
- package/lib/{index-CYb6xr3M.d.mts → index-B0aBR23L.d.mts} +1 -1
- package/lib/input/constants.d.mts +17 -0
- package/lib/input/constants.d.ts +17 -0
- package/lib/input/constants.js +16 -0
- package/lib/input/constants.js.map +1 -0
- package/lib/input/constants.mjs +14 -0
- package/lib/input/constants.mjs.map +1 -0
- package/lib/input/index.d.mts +41 -0
- package/lib/input/index.d.ts +41 -0
- package/lib/input/index.js +14 -0
- package/lib/input/index.mjs +12 -0
- package/lib/input/theme.d.mts +16 -0
- package/lib/input/theme.d.ts +16 -0
- package/lib/input/theme.js +4 -0
- package/lib/input/theme.mjs +4 -0
- package/lib/input-BU_QJnbj.mjs +71 -0
- package/lib/input-BU_QJnbj.mjs.map +1 -0
- package/lib/input-VmgNb9pm.js +86 -0
- package/lib/input-VmgNb9pm.js.map +1 -0
- package/lib/{internal-link-Ciu7CWSY.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 +3 -3
- package/lib/logo/index.d.ts +6 -6
- package/lib/logo/index.js +1 -1
- package/lib/logo/index.mjs +1 -1
- package/lib/{logo-CuMjQGbj.js → logo-BTNfdxTv.js} +1 -1
- package/lib/{logo-CuMjQGbj.js.map → logo-BTNfdxTv.js.map} +1 -1
- package/lib/{logo-CxXblyO9.mjs → logo-D68VZ-fc.mjs} +1 -1
- package/lib/{logo-CxXblyO9.mjs.map → logo-D68VZ-fc.mjs.map} +1 -1
- package/lib/{release-branch-BqeBsvrl.d.mts → release-branch-CFUcv043.d.mts} +2 -2
- package/lib/styles.css +113 -9
- 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 +4 -4
- package/lib/tab-bar/index.mjs +4 -4
- 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-CdsxfUdk.mjs → tab-bar-CXhDni4V.mjs} +5 -5
- package/lib/{tab-bar-CdsxfUdk.mjs.map → tab-bar-CXhDni4V.mjs.map} +1 -1
- package/lib/{tab-bar-qKbhyjg-.js → tab-bar-CZt-vw5x.js} +5 -5
- package/lib/{tab-bar-qKbhyjg-.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-lCi6tmmS.d.mts → theme-BQP-h-2z.d.mts} +2 -2
- package/lib/theme-Bgd_TUHZ.mjs +38 -0
- package/lib/theme-Bgd_TUHZ.mjs.map +1 -0
- package/lib/{theme-DQCIQh_8.mjs → theme-CE2RkJwt.mjs} +1 -1
- package/lib/{theme-DQCIQh_8.mjs.map → theme-CE2RkJwt.mjs.map} +1 -1
- package/lib/{theme-W--MzZEH.js → theme-CmvdSSbX.js} +1 -1
- package/lib/{theme-W--MzZEH.js.map → theme-CmvdSSbX.js.map} +1 -1
- package/lib/theme-Cv8rt4oO.js +43 -0
- package/lib/theme-Cv8rt4oO.js.map +1 -0
- package/lib/title-bar/index.d.mts +4 -4
- package/lib/title-bar/index.d.ts +4 -4
- package/lib/title-bar/index.js +2 -2
- package/lib/title-bar/index.mjs +2 -2
- package/lib/{type-2Go0njwa.d.mts → type-Dons5TOa.d.mts} +1 -1
- package/lib/types/index.d.mts +1 -1
- package/lib/use-outside-click-BB1MpRid.js +27 -0
- package/lib/use-outside-click-BB1MpRid.js.map +1 -0
- package/lib/use-outside-click-CHxRFaTZ.d.ts +7 -0
- package/lib/use-outside-click-CSVLlhkD.d.mts +7 -0
- package/lib/use-outside-click-DAfe2vPE.mjs +20 -0
- package/lib/use-outside-click-DAfe2vPE.mjs.map +1 -0
- package/package.json +2 -2
- package/lib/button-D50NHdly.js.map +0 -1
- package/lib/button-hDNHA85d.mjs.map +0 -1
- package/lib/hamburger-menu-DNfJ2jMA.js.map +0 -1
- package/lib/hamburger-menu-DOrmybn_.mjs.map +0 -1
|
@@ -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
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
--color-opacity-white-02: rgba(255, 255, 255, 0.2);
|
|
40
40
|
--color-opacity-white-05: rgba(255, 255, 255, 0.5);
|
|
41
41
|
--color-opacity-white-08: rgba(255, 255, 255, 0.8);
|
|
42
|
+
--color-opacity-gray100-08: rgba(241, 241, 241, 0.8);
|
|
42
43
|
--color-opacity-black-02: rgba(0, 0, 0, 0.2);
|
|
43
44
|
--font-title: "merriweather", "source-han-serif-tc", serif;
|
|
44
45
|
--font-default: "Roboto Slab", "Noto Sans TC", sans-serif, "Tauhu Oo";
|
|
@@ -209,15 +210,24 @@
|
|
|
209
210
|
.sticky {
|
|
210
211
|
position: sticky;
|
|
211
212
|
}
|
|
213
|
+
.-top-\[8px\] {
|
|
214
|
+
top: calc(8px * -1);
|
|
215
|
+
}
|
|
212
216
|
.top-0 {
|
|
213
217
|
top: calc(var(--spacing) * 0);
|
|
214
218
|
}
|
|
219
|
+
.right-0 {
|
|
220
|
+
right: calc(var(--spacing) * 0);
|
|
221
|
+
}
|
|
215
222
|
.bottom-0 {
|
|
216
223
|
bottom: calc(var(--spacing) * 0);
|
|
217
224
|
}
|
|
218
225
|
.left-0 {
|
|
219
226
|
left: calc(var(--spacing) * 0);
|
|
220
227
|
}
|
|
228
|
+
.-z-1 {
|
|
229
|
+
z-index: calc(1 * -1);
|
|
230
|
+
}
|
|
221
231
|
.z-1 {
|
|
222
232
|
z-index: 1;
|
|
223
233
|
}
|
|
@@ -233,6 +243,9 @@
|
|
|
233
243
|
.z-10 {
|
|
234
244
|
z-index: 10;
|
|
235
245
|
}
|
|
246
|
+
.z-999 {
|
|
247
|
+
z-index: 999;
|
|
248
|
+
}
|
|
236
249
|
.m-0 {
|
|
237
250
|
margin: calc(var(--spacing) * 0);
|
|
238
251
|
}
|
|
@@ -263,6 +276,9 @@
|
|
|
263
276
|
.ml-\[4px\] {
|
|
264
277
|
margin-left: 4px;
|
|
265
278
|
}
|
|
279
|
+
.ml-\[8px\] {
|
|
280
|
+
margin-left: 8px;
|
|
281
|
+
}
|
|
266
282
|
.ml-\[24px\] {
|
|
267
283
|
margin-left: 24px;
|
|
268
284
|
}
|
|
@@ -301,9 +317,6 @@
|
|
|
301
317
|
.h-\[32px\] {
|
|
302
318
|
height: 32px;
|
|
303
319
|
}
|
|
304
|
-
.h-\[40px\] {
|
|
305
|
-
height: 40px;
|
|
306
|
-
}
|
|
307
320
|
.h-\[3000px\] {
|
|
308
321
|
height: 3000px;
|
|
309
322
|
}
|
|
@@ -325,15 +338,24 @@
|
|
|
325
338
|
.w-0 {
|
|
326
339
|
width: calc(var(--spacing) * 0);
|
|
327
340
|
}
|
|
341
|
+
.w-\[-webkit-fill-available\] {
|
|
342
|
+
width: -webkit-fill-available;
|
|
343
|
+
}
|
|
328
344
|
.w-\[24px\] {
|
|
329
345
|
width: 24px;
|
|
330
346
|
}
|
|
347
|
+
.w-\[240px\] {
|
|
348
|
+
width: 240px;
|
|
349
|
+
}
|
|
331
350
|
.w-\[300px\] {
|
|
332
351
|
width: 300px;
|
|
333
352
|
}
|
|
334
353
|
.w-\[360px\] {
|
|
335
354
|
width: 360px;
|
|
336
355
|
}
|
|
356
|
+
.w-\[fill-available\] {
|
|
357
|
+
width: fill-available;
|
|
358
|
+
}
|
|
337
359
|
.w-fit {
|
|
338
360
|
width: fit-content;
|
|
339
361
|
}
|
|
@@ -427,9 +449,6 @@
|
|
|
427
449
|
.overscroll-contain {
|
|
428
450
|
overscroll-behavior: contain;
|
|
429
451
|
}
|
|
430
|
-
.rounded-\[20px\] {
|
|
431
|
-
border-radius: 20px;
|
|
432
|
-
}
|
|
433
452
|
.rounded-\[40px\] {
|
|
434
453
|
border-radius: 40px;
|
|
435
454
|
}
|
|
@@ -444,6 +463,10 @@
|
|
|
444
463
|
border-style: var(--tw-border-style);
|
|
445
464
|
border-width: 1.5px;
|
|
446
465
|
}
|
|
466
|
+
.border-\[1px\] {
|
|
467
|
+
border-style: var(--tw-border-style);
|
|
468
|
+
border-width: 1px;
|
|
469
|
+
}
|
|
447
470
|
.border-t-\[1px\] {
|
|
448
471
|
border-top-style: var(--tw-border-style);
|
|
449
472
|
border-top-width: 1px;
|
|
@@ -468,6 +491,9 @@
|
|
|
468
491
|
.border-gray-500 {
|
|
469
492
|
border-color: var(--color-gray-500);
|
|
470
493
|
}
|
|
494
|
+
.border-gray-600 {
|
|
495
|
+
border-color: var(--color-gray-600);
|
|
496
|
+
}
|
|
471
497
|
.border-gray-800 {
|
|
472
498
|
border-color: var(--color-gray-800);
|
|
473
499
|
}
|
|
@@ -477,6 +503,12 @@
|
|
|
477
503
|
.border-supportive-faded {
|
|
478
504
|
border-color: var(--color-supportive-faded);
|
|
479
505
|
}
|
|
506
|
+
.border-supportive-pastel {
|
|
507
|
+
border-color: var(--color-supportive-pastel);
|
|
508
|
+
}
|
|
509
|
+
.border-transparent {
|
|
510
|
+
border-color: transparent;
|
|
511
|
+
}
|
|
480
512
|
.border-t-gray-600 {
|
|
481
513
|
border-top-color: var(--color-gray-600);
|
|
482
514
|
}
|
|
@@ -507,6 +539,12 @@
|
|
|
507
539
|
.bg-opacity-black-02 {
|
|
508
540
|
background-color: var(--color-opacity-black-02);
|
|
509
541
|
}
|
|
542
|
+
.bg-opacity-gray100-08 {
|
|
543
|
+
background-color: var(--color-opacity-gray100-08);
|
|
544
|
+
}
|
|
545
|
+
.bg-opacity-white-08 {
|
|
546
|
+
background-color: var(--color-opacity-white-08);
|
|
547
|
+
}
|
|
510
548
|
.bg-photo-dark {
|
|
511
549
|
background-color: var(--color-photo-dark);
|
|
512
550
|
}
|
|
@@ -745,6 +783,10 @@
|
|
|
745
783
|
--tw-duration: 200ms;
|
|
746
784
|
transition-duration: 200ms;
|
|
747
785
|
}
|
|
786
|
+
.duration-\[300ms\] {
|
|
787
|
+
--tw-duration: 300ms;
|
|
788
|
+
transition-duration: 300ms;
|
|
789
|
+
}
|
|
748
790
|
.ease-in {
|
|
749
791
|
--tw-ease: var(--ease-in);
|
|
750
792
|
transition-timing-function: var(--ease-in);
|
|
@@ -951,10 +993,36 @@
|
|
|
951
993
|
}
|
|
952
994
|
}
|
|
953
995
|
}
|
|
954
|
-
.focus\:
|
|
996
|
+
.focus\:bg-gray-100 {
|
|
997
|
+
&:focus {
|
|
998
|
+
background-color: var(--color-gray-100);
|
|
999
|
+
}
|
|
1000
|
+
}
|
|
1001
|
+
.focus\:bg-opacity-gray100-08 {
|
|
955
1002
|
&:focus {
|
|
956
|
-
--
|
|
957
|
-
|
|
1003
|
+
background-color: var(--color-opacity-gray100-08);
|
|
1004
|
+
}
|
|
1005
|
+
}
|
|
1006
|
+
.focus\:text-gray-800 {
|
|
1007
|
+
&:focus {
|
|
1008
|
+
color: var(--color-gray-800);
|
|
1009
|
+
}
|
|
1010
|
+
}
|
|
1011
|
+
.focus-visible\:border-0 {
|
|
1012
|
+
&:focus-visible {
|
|
1013
|
+
border-style: var(--tw-border-style);
|
|
1014
|
+
border-width: 0px;
|
|
1015
|
+
}
|
|
1016
|
+
}
|
|
1017
|
+
.focus-visible\:border-transparent {
|
|
1018
|
+
&:focus-visible {
|
|
1019
|
+
border-color: transparent;
|
|
1020
|
+
}
|
|
1021
|
+
}
|
|
1022
|
+
.focus-visible\:outline-0 {
|
|
1023
|
+
&:focus-visible {
|
|
1024
|
+
outline-style: var(--tw-outline-style);
|
|
1025
|
+
outline-width: 0px;
|
|
958
1026
|
}
|
|
959
1027
|
}
|
|
960
1028
|
.active\:bg-gray-200 {
|
|
@@ -1094,6 +1162,11 @@
|
|
|
1094
1162
|
display: none;
|
|
1095
1163
|
}
|
|
1096
1164
|
}
|
|
1165
|
+
.desktop\:inline-flex {
|
|
1166
|
+
@media (width >= 1024px) {
|
|
1167
|
+
display: inline-flex;
|
|
1168
|
+
}
|
|
1169
|
+
}
|
|
1097
1170
|
.desktop\:w-\[280px\] {
|
|
1098
1171
|
@media (width >= 1024px) {
|
|
1099
1172
|
width: 280px;
|
|
@@ -1116,6 +1189,16 @@
|
|
|
1116
1189
|
flex-direction: column;
|
|
1117
1190
|
}
|
|
1118
1191
|
}
|
|
1192
|
+
.desktop\:bg-gray-100 {
|
|
1193
|
+
@media (width >= 1024px) {
|
|
1194
|
+
background-color: var(--color-gray-100);
|
|
1195
|
+
}
|
|
1196
|
+
}
|
|
1197
|
+
.desktop\:bg-gray-white {
|
|
1198
|
+
@media (width >= 1024px) {
|
|
1199
|
+
background-color: var(--color-gray-white);
|
|
1200
|
+
}
|
|
1201
|
+
}
|
|
1119
1202
|
.desktop\:px-\[48px\] {
|
|
1120
1203
|
@media (width >= 1024px) {
|
|
1121
1204
|
padding-inline: 48px;
|
|
@@ -1161,6 +1244,21 @@
|
|
|
1161
1244
|
background-color: var(--color-opacity-white-08);
|
|
1162
1245
|
}
|
|
1163
1246
|
}
|
|
1247
|
+
.\[\&\:\:-webkit-search-cancel-button\]\:hidden {
|
|
1248
|
+
&::-webkit-search-cancel-button {
|
|
1249
|
+
display: none;
|
|
1250
|
+
}
|
|
1251
|
+
}
|
|
1252
|
+
.\[\&\:\:placeholder\]\:text-gray-500 {
|
|
1253
|
+
&::placeholder {
|
|
1254
|
+
color: var(--color-gray-500);
|
|
1255
|
+
}
|
|
1256
|
+
}
|
|
1257
|
+
.\[\&\:\:placeholder\]\:text-gray-800 {
|
|
1258
|
+
&::placeholder {
|
|
1259
|
+
color: var(--color-gray-800);
|
|
1260
|
+
}
|
|
1261
|
+
}
|
|
1164
1262
|
.\[\&\>a\]\:no-underline {
|
|
1165
1263
|
&>a {
|
|
1166
1264
|
text-decoration-line: none;
|
|
@@ -1595,6 +1693,11 @@
|
|
|
1595
1693
|
syntax: "*";
|
|
1596
1694
|
inherits: false;
|
|
1597
1695
|
}
|
|
1696
|
+
@property --tw-outline-style {
|
|
1697
|
+
syntax: "*";
|
|
1698
|
+
inherits: false;
|
|
1699
|
+
initial-value: solid;
|
|
1700
|
+
}
|
|
1598
1701
|
@keyframes spin {
|
|
1599
1702
|
to {
|
|
1600
1703
|
transform: rotate(360deg);
|
|
@@ -1625,6 +1728,7 @@
|
|
|
1625
1728
|
--tw-ring-offset-shadow: 0 0 #0000;
|
|
1626
1729
|
--tw-duration: initial;
|
|
1627
1730
|
--tw-ease: initial;
|
|
1731
|
+
--tw-outline-style: solid;
|
|
1628
1732
|
}
|
|
1629
1733
|
}
|
|
1630
1734
|
}
|
|
@@ -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
|
@@ -2,7 +2,7 @@ require('../constants-BmxSMOOn.js');
|
|
|
2
2
|
require('../constants-Cndhv6qr.js');
|
|
3
3
|
require('../paragraph-iuz3jP0Q.js');
|
|
4
4
|
require('../theme-DDBlIbeS.js');
|
|
5
|
-
require('../button-
|
|
5
|
+
require('../button-Dk0MxlKd.js');
|
|
6
6
|
require('../internal-links-DxtMobuI.js');
|
|
7
7
|
require('../release-branch-CRZV4Ivz.js');
|
|
8
8
|
require('../external-link-DoBTwlV3.js');
|
|
@@ -11,8 +11,8 @@ 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
|
@@ -3,7 +3,7 @@ import "../constants-oTHAnh6r.mjs";
|
|
|
3
3
|
import "../constants-CBSEPx91.mjs";
|
|
4
4
|
import "../paragraph-Cf9jr8RF.mjs";
|
|
5
5
|
import "../theme-BG6yZVj-.mjs";
|
|
6
|
-
import "../button-
|
|
6
|
+
import "../button-D_AWI7r9.mjs";
|
|
7
7
|
import "../internal-links-CP3dqmrz.mjs";
|
|
8
8
|
import "../release-branch-DNCD1uH_.mjs";
|
|
9
9
|
import "../external-link-DXT5ep5-.mjs";
|
|
@@ -11,8 +11,8 @@ 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
|
-
import { icon_with_text_button_default } from "./button-
|
|
3
|
+
import { icon_with_text_button_default } from "./button-D_AWI7r9.mjs";
|
|
4
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";
|
|
@@ -33,7 +33,7 @@ const TabBar = ({ className = "" }) => {
|
|
|
33
33
|
return /* @__PURE__ */ jsxs("div", {
|
|
34
34
|
className: clsx("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)]", "desktop:hidden", bgColor, ZIndex.tabBarMobile, ZIndex.tabBarTablet, className),
|
|
35
35
|
children: [_.map(TabBarItems(releaseBranch), (item) => {
|
|
36
|
-
const isActive = pathname === item.link;
|
|
36
|
+
const isActive = !isHamburgerMenuOpen && pathname === item.link;
|
|
37
37
|
return /* @__PURE__ */ jsx(LinkComponent, {
|
|
38
38
|
to: item.link,
|
|
39
39
|
target: item.target,
|
|
@@ -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
|
-
const require_button = require('./button-
|
|
3
|
+
const require_button = require('./button-Dk0MxlKd.js');
|
|
4
4
|
const require_external_link = require('./external-link-DoBTwlV3.js');
|
|
5
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");
|
|
@@ -38,7 +38,7 @@ const TabBar = ({ className = "" }) => {
|
|
|
38
38
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
39
39
|
className: (0, clsx.default)("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)]", "desktop:hidden", bgColor, ZIndex.tabBarMobile, ZIndex.tabBarTablet, className),
|
|
40
40
|
children: [_.map(require_constants.TabBarItems(releaseBranch), (item) => {
|
|
41
|
-
const isActive = pathname === item.link;
|
|
41
|
+
const isActive = !isHamburgerMenuOpen && pathname === item.link;
|
|
42
42
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(LinkComponent, {
|
|
43
43
|
to: item.link,
|
|
44
44
|
target: item.target,
|
|
@@ -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
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { THEME } from "./theme-BG6yZVj-.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/input/theme.ts
|
|
4
|
+
const selectThemeStyle = (theme) => {
|
|
5
|
+
switch (theme) {
|
|
6
|
+
case THEME.photography: return {
|
|
7
|
+
bgColor: "bg-opacity-white-08",
|
|
8
|
+
focusBgColor: "focus:bg-gray-100",
|
|
9
|
+
desktopBgColor: "desktop:bg-gray-100",
|
|
10
|
+
borderColor: "border-supportive-pastel",
|
|
11
|
+
color: "text-gray-800",
|
|
12
|
+
focusColor: "focus:text-gray-800",
|
|
13
|
+
placeholderColor: "[&::placeholder]:text-gray-800"
|
|
14
|
+
};
|
|
15
|
+
case THEME.transparent: return {
|
|
16
|
+
bgColor: "bg-opacity-gray100-08",
|
|
17
|
+
focusBgColor: "focus:bg-opacity-gray100-08",
|
|
18
|
+
desktopBgColor: "desktop:bg-gray-white",
|
|
19
|
+
borderColor: "border-gray-600",
|
|
20
|
+
color: "text-gray-800",
|
|
21
|
+
focusColor: "focus:text-gray-800",
|
|
22
|
+
placeholderColor: "[&::placeholder]:text-gray-500"
|
|
23
|
+
};
|
|
24
|
+
default: return {
|
|
25
|
+
bgColor: "bg-opacity-gray100-08",
|
|
26
|
+
focusBgColor: "focus:bg-opacity-gray100-08",
|
|
27
|
+
desktopBgColor: "desktop:bg-gray-white",
|
|
28
|
+
borderColor: "border-gray-600",
|
|
29
|
+
color: "text-gray-800",
|
|
30
|
+
focusColor: "focus:text-gray-800",
|
|
31
|
+
placeholderColor: "[&::placeholder]:text-gray-500"
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
//#endregion
|
|
37
|
+
export { selectThemeStyle };
|
|
38
|
+
//# sourceMappingURL=theme-Bgd_TUHZ.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
const require_theme = require('./theme-DDBlIbeS.js');
|
|
2
|
+
|
|
3
|
+
//#region src/input/theme.ts
|
|
4
|
+
const selectThemeStyle = (theme) => {
|
|
5
|
+
switch (theme) {
|
|
6
|
+
case require_theme.THEME.photography: return {
|
|
7
|
+
bgColor: "bg-opacity-white-08",
|
|
8
|
+
focusBgColor: "focus:bg-gray-100",
|
|
9
|
+
desktopBgColor: "desktop:bg-gray-100",
|
|
10
|
+
borderColor: "border-supportive-pastel",
|
|
11
|
+
color: "text-gray-800",
|
|
12
|
+
focusColor: "focus:text-gray-800",
|
|
13
|
+
placeholderColor: "[&::placeholder]:text-gray-800"
|
|
14
|
+
};
|
|
15
|
+
case require_theme.THEME.transparent: return {
|
|
16
|
+
bgColor: "bg-opacity-gray100-08",
|
|
17
|
+
focusBgColor: "focus:bg-opacity-gray100-08",
|
|
18
|
+
desktopBgColor: "desktop:bg-gray-white",
|
|
19
|
+
borderColor: "border-gray-600",
|
|
20
|
+
color: "text-gray-800",
|
|
21
|
+
focusColor: "focus:text-gray-800",
|
|
22
|
+
placeholderColor: "[&::placeholder]:text-gray-500"
|
|
23
|
+
};
|
|
24
|
+
default: return {
|
|
25
|
+
bgColor: "bg-opacity-gray100-08",
|
|
26
|
+
focusBgColor: "focus:bg-opacity-gray100-08",
|
|
27
|
+
desktopBgColor: "desktop:bg-gray-white",
|
|
28
|
+
borderColor: "border-gray-600",
|
|
29
|
+
color: "text-gray-800",
|
|
30
|
+
focusColor: "focus:text-gray-800",
|
|
31
|
+
placeholderColor: "[&::placeholder]:text-gray-500"
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
//#endregion
|
|
37
|
+
Object.defineProperty(exports, 'selectThemeStyle', {
|
|
38
|
+
enumerable: true,
|
|
39
|
+
get: function () {
|
|
40
|
+
return selectThemeStyle;
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
//# sourceMappingURL=theme-Cv8rt4oO.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|