@twreporter/react-typescript-components 0.1.0-beta.6 → 0.1.0-beta.7
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/components/text-button/index.js +59 -13
- package/lib/button/components/text-button/index.js.map +1 -1
- package/lib/button/components/text-button/index.mjs +2 -1
- package/lib/button/components/text-button/theme.d.mts +11 -0
- package/lib/button/components/text-button/theme.d.ts +11 -0
- package/lib/button/components/text-button/theme.js +65 -0
- package/lib/button/components/text-button/theme.js.map +1 -0
- package/lib/button/components/text-button/theme.mjs +5 -0
- package/lib/button/components/text-button/theme.mjs.map +1 -0
- package/lib/button/index.js +59 -13
- package/lib/button/index.js.map +1 -1
- package/lib/button/index.mjs +3 -2
- package/lib/button/stories/text-button.stories.js +59 -13
- package/lib/button/stories/text-button.stories.js.map +1 -1
- package/lib/button/stories/text-button.stories.mjs +2 -1
- package/lib/button/stories/text-button.stories.mjs.map +1 -1
- package/lib/{chunk-R4F4LGAY.mjs → chunk-7NJDHQ2X.mjs} +3 -3
- package/lib/{chunk-R4F4LGAY.mjs.map → chunk-7NJDHQ2X.mjs.map} +1 -1
- package/lib/chunk-ELECTE3D.mjs +8 -0
- package/lib/{chunk-7DK5MO62.mjs.map → chunk-ELECTE3D.mjs.map} +1 -1
- package/lib/{chunk-GRCEZABQ.mjs → chunk-FF422IYY.mjs} +3 -3
- package/lib/{chunk-GRCEZABQ.mjs.map → chunk-FF422IYY.mjs.map} +1 -1
- package/lib/chunk-FVKIUNIP.mjs +58 -0
- package/lib/chunk-FVKIUNIP.mjs.map +1 -0
- package/lib/{chunk-QE5LVT7A.mjs → chunk-U22UKMAJ.mjs} +9 -15
- package/lib/chunk-U22UKMAJ.mjs.map +1 -0
- package/lib/{chunk-CZVB2Y6O.mjs → chunk-ZALXWB2J.mjs} +3 -3
- package/lib/{chunk-CZVB2Y6O.mjs.map → chunk-ZALXWB2J.mjs.map} +1 -1
- package/lib/styles.css +27 -6
- package/lib/styles.css.map +1 -1
- package/lib/title-bar/components/title-tab/index.js +59 -13
- package/lib/title-bar/components/title-tab/index.js.map +1 -1
- package/lib/title-bar/components/title-tab/index.mjs +5 -4
- package/lib/title-bar/components/title-tab/tab-item.js +59 -13
- package/lib/title-bar/components/title-tab/tab-item.js.map +1 -1
- package/lib/title-bar/components/title-tab/tab-item.mjs +4 -3
- package/lib/title-bar/components/title1.js +1 -1
- package/lib/title-bar/components/title1.js.map +1 -1
- package/lib/title-bar/components/title1.mjs +1 -1
- package/lib/title-bar/index.js +60 -14
- package/lib/title-bar/index.js.map +1 -1
- package/lib/title-bar/index.mjs +9 -8
- package/lib/title-bar/index.mjs.map +1 -1
- package/lib/title-bar/stories/title-tab.stories.js +59 -13
- package/lib/title-bar/stories/title-tab.stories.js.map +1 -1
- package/lib/title-bar/stories/title-tab.stories.mjs +5 -4
- package/lib/title-bar/stories/title-tab.stories.mjs.map +1 -1
- package/lib/title-bar/stories/title1.stories.js +1 -1
- package/lib/title-bar/stories/title1.stories.js.map +1 -1
- package/lib/title-bar/stories/title1.stories.mjs +1 -1
- package/lib/title-bar/stories/title2.stories.js +59 -13
- package/lib/title-bar/stories/title2.stories.js.map +1 -1
- package/lib/title-bar/stories/title2.stories.mjs +3 -2
- package/lib/title-bar/stories/title2.stories.mjs.map +1 -1
- package/package.json +2 -2
- package/lib/chunk-7DK5MO62.mjs +0 -8
- package/lib/chunk-QE5LVT7A.mjs.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/button/stories/text-button.stories.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../src/button/stories/text-button.stories.ts"],"names":[],"mappings":";;;;;;;;;AASA,IAAM,IAAA,GAAO;AAAA,EACX,KAAA,EAAO,mBAAA;AAAA,EACP,SAAA,EAAW,mBAAA;AAAA,EACX,QAAA,EAAU;AAAA,IACR,MAAM,mBAAA,CAAoB,mBAAA,CAAW,IAAA,EAAM,mBAAA,CAAW,KAAK,CAAC,CAAA;AAAA,IAC5D,OAAO,qBAAA,CAAsB,mBAAA,CAAW,KAAA,EAAO,mBAAA,CAAW,MAAM,MAAM,CAAA;AAAA,IACtE,OAAO,mBAAA,CAAoB,mBAAA,CAAW,KAAA,EAAO,mBAAA,CAAW,MAAM,IAAI;AAAA;AAEtE,CAAA;AAEA,IAAO,2BAAA,GAAQ;AAGR,IAAM,KAAA,GAAe;AAAA,EAC1B,IAAA,EAAM;AAAA,IACJ,IAAA,EAAM,cAAA;AAAA,IACN,IAAA,EAAM,oBAAW,IAAA,CAAK,CAAA;AAAA,IACtB,KAAA,EAAO,oBAAW,KAAA,CAAM,MAAA;AAAA,IACxB,KAAA,EAAO,oBAAW,KAAA,CAAM,IAAA;AAAA,IACxB,MAAA,EAAQ,KAAA;AAAA,IACR,QAAA,EAAU,KAAA;AAAA,IACV,OAAA,EAAS;AAAA,GACX;AAAA,EACA,UAAA,EAAY,EAAE,QAAA,EAAU,EAAE,SAAS,CAAC,WAAW,GAAE;AACnD","file":"text-button.stories.mjs","sourcesContent":["import type { Meta, StoryObj } from '@storybook/react-vite'\n// utils\nimport {\n getRadioArgFromObject,\n getRadioArgFromEnum,\n} from '../../storybook/utils/get-enum-arg'\n// components\nimport TextButton from '../components/text-button'\n\nconst meta = {\n title: 'Button/TextButton',\n component: TextButton,\n argTypes: {\n size: getRadioArgFromEnum(TextButton.Size, TextButton.Size.S),\n theme: getRadioArgFromObject(TextButton.THEME, TextButton.THEME.normal),\n style: getRadioArgFromEnum(TextButton.Style, TextButton.Style.DARK),\n },\n} satisfies Meta<typeof TextButton>\n\nexport default meta\ntype Story = StoryObj<typeof meta>\n\nexport const Basic: Story = {\n args: {\n text: '文字',\n size: TextButton.Size.S,\n theme: TextButton.THEME.normal,\n style: TextButton.Style.DARK,\n active: false,\n disabled: false,\n loading: false,\n },\n parameters: { controls: { exclude: ['className'] } },\n}\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { tab_item_default } from './chunk-GRCEZABQ.mjs';
|
|
2
1
|
import { useScrollStatus } from './chunk-GQWO45DN.mjs';
|
|
2
|
+
import { tab_item_default } from './chunk-FF422IYY.mjs';
|
|
3
3
|
import { H1 } from './chunk-JHLT5GDV.mjs';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import { useState, useEffect, createElement } from 'react';
|
|
@@ -52,5 +52,5 @@ var TitleTab = ({
|
|
|
52
52
|
var title_tab_default = TitleTab;
|
|
53
53
|
|
|
54
54
|
export { title_tab_default };
|
|
55
|
-
//# sourceMappingURL=chunk-
|
|
56
|
-
//# sourceMappingURL=chunk-
|
|
55
|
+
//# sourceMappingURL=chunk-7NJDHQ2X.mjs.map
|
|
56
|
+
//# sourceMappingURL=chunk-7NJDHQ2X.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/title-bar/components/title-tab/index.tsx"],"names":[],"mappings":";;;;;;;AAeA,IAAM,WAA8B,CAAC;AAAA,EACnC,KAAA;AAAA,EACA,OAAO,EAAC;AAAA,EACR,cAAA,GAAiB;AACnB,CAAA,KAAM;AACJ,EAAA,MAAM,CAAC,WAAA,EAAa,cAAc,CAAA,GAAI,SAAS,cAAc,CAAA;AAC7D,EAAA,MAAM,CAAC,gBAAA,EAAkB,mBAAmB,CAAA,GAAI,SAAS,KAAK,CAAA;AAE9D,EAAA,MAAM,GAAA,GAAM,gBAAgB,mBAAmB,CAAA;AAE/C,EAAA,SAAA,CAAU,MAAM;AACd,IAAA,cAAA,CAAe,cAAc,CAAA;AAAA,EAC/B,CAAA,EAAG,CAAC,cAAc,CAAC,CAAA;AAEnB,EAAA,uBACE,IAAA,CAAC,KAAA,EAAA,EAAI,SAAA,EAAU,oCAAA,EACb,QAAA,EAAA;AAAA,oBAAA,GAAA,CAAC,EAAA,EAAA,EAAG,MAAM,KAAA,EAAO,CAAA;AAAA,IAChB,IAAA,CAAK,SAAS,CAAA,mBACb,GAAA;AAAA,MAAC,KAAA;A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,IAAA,cAAA,CAAe,cAAc,CAAA;AAAA,EAC/B,CAAA,EAAG,CAAC,cAAc,CAAC,CAAA;AAEnB,EAAA,uBACE,IAAA,CAAC,KAAA,EAAA,EAAI,SAAA,EAAU,oCAAA,EACb,QAAA,EAAA;AAAA,oBAAA,GAAA,CAAC,EAAA,EAAA,EAAG,MAAM,KAAA,EAAO,CAAA;AAAA,IAChB,IAAA,CAAK,SAAS,CAAA,mBACb,GAAA;AAAA,MAAC,KAAA;AAAA,MAAA;AAAA,QACC,GAAA;AAAA,QACA,SAAA,EAAW,IAAA;AAAA,UACT,mBAAA;AAAA,UACA,kCAAA;AAAA,UACA;AAAA,YACE,uJAAA,EACE;AAAA;AACJ,SACF;AAAA,QAEC,QAAA,EAAA,IAAA,CAAK,GAAA,CAAI,CAAC,GAAA,EAAK,KAAA,KAAU;AACxB,UAAA,MAAM,WAAW,EAAE,GAAG,GAAA,EAAK,QAAA,EAAU,UAAU,WAAA,EAAY;AAC3D,UAAA,MAAM,cAAc,MAAM;AACxB,YAAA,cAAA,CAAe,KAAK,CAAA;AAAA,UACtB,CAAA;AACA,UAAA,uBACE,aAAA,CAAC,gBAAA,EAAA,EAAS,GAAG,QAAA,EAAU,GAAA,EAAK,CAAA,IAAA,EAAO,GAAA,CAAI,IAAI,CAAA,CAAA,EAAI,KAAK,CAAA,CAAA,EAAI,OAAA,EAAS,WAAA,EAAa,CAAA;AAAA,QAElF,CAAC;AAAA;AAAA,KACH,GACE,IAAA;AAAA,oBACJ,GAAA;AAAA,MAAC,KAAA;AAAA,MAAA;AAAA,QACC,SAAA,EAAW,IAAA;AAAA,UACT,qCAAA;AAAA,UACA;AAAA;AACF;AAAA;AACF,GAAA,EACF,CAAA;AAEJ,CAAA;AAEA,IAAO,iBAAA,GAAQ","file":"chunk-7NJDHQ2X.mjs","sourcesContent":["import clsx from 'clsx'\nimport { type FC, useState, useEffect } from 'react'\n// hook\nimport { useScrollStatus } from './hook'\n// components\nimport TabItem from './tab-item'\nimport { H1 } from '../../../text/heading'\n// type\nimport type { Tab } from './type'\n\ntype TitleTabProps = {\n title: string\n tabs: Tab[]\n activeTabIndex?: number\n}\nconst TitleTab: FC<TitleTabProps> = ({\n title,\n tabs = [],\n activeTabIndex = 0,\n}) => {\n const [activeIndex, setActiveIndex] = useState(activeTabIndex)\n const [showGradientMask, setShowGradientMask] = useState(false)\n\n const ref = useScrollStatus(setShowGradientMask)\n\n useEffect(() => {\n setActiveIndex(activeTabIndex)\n }, [activeTabIndex])\n\n return (\n <div className=\"flex flex-col w-full text-gray-800\">\n <H1 text={title} />\n {tabs.length > 0 ? (\n <div\n ref={ref}\n className={clsx(\n 'flex items-center',\n 'overflow-x-scroll scrollbar:!w-0',\n {\n '[mask-image:linear-gradient(to_left,rgba(241,241,241,0),#f1f1f1_48px)] [-webkit-mask-image:linear-gradient(to_left,rgba(241,241,241,0),#f1f1f1_48px)]':\n showGradientMask,\n }\n )}\n >\n {tabs.map((tab, index) => {\n const tabProps = { ...tab, isActive: index === activeIndex }\n const handleClick = () => {\n setActiveIndex(index)\n }\n return (\n <TabItem {...tabProps} key={`tab-${tab.text}-${index}`} onClick={handleClick} />\n )\n })}\n </div>\n ) : null}\n <div\n className={clsx(\n 'w-full h-[1px] bg-gray-300 mt-[0px]',\n 'desktop:mt-[0px]'\n )}\n />\n </div>\n )\n}\n\nexport default TitleTab\n"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { text_button_default } from './chunk-U22UKMAJ.mjs';
|
|
2
|
+
|
|
3
|
+
// src/button/index.ts
|
|
4
|
+
var button_default = { TextButton: text_button_default };
|
|
5
|
+
|
|
6
|
+
export { button_default };
|
|
7
|
+
//# sourceMappingURL=chunk-ELECTE3D.mjs.map
|
|
8
|
+
//# sourceMappingURL=chunk-ELECTE3D.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/button/index.ts"],"names":[],"mappings":";;;AAIA,IAAO,cAAA,GAAQ,EAAE,UAAA,EAAA,mBAAA","file":"chunk-
|
|
1
|
+
{"version":3,"sources":["../src/button/index.ts"],"names":[],"mappings":";;;AAIA,IAAO,cAAA,GAAQ,EAAE,UAAA,EAAA,mBAAA","file":"chunk-ELECTE3D.mjs","sourcesContent":["import TextButton from './components/text-button'\n\nexport { TextButton }\n\nexport default { TextButton }\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { text_button_default } from './chunk-
|
|
1
|
+
import { text_button_default } from './chunk-U22UKMAJ.mjs';
|
|
2
2
|
import { external_link_default } from './chunk-X2UWIBNH.mjs';
|
|
3
3
|
import { internal_link_default } from './chunk-XO7SDD7W.mjs';
|
|
4
4
|
import clsx from 'clsx';
|
|
@@ -34,5 +34,5 @@ var TabItem = ({
|
|
|
34
34
|
var tab_item_default = TabItem;
|
|
35
35
|
|
|
36
36
|
export { tab_item_default };
|
|
37
|
-
//# sourceMappingURL=chunk-
|
|
38
|
-
//# sourceMappingURL=chunk-
|
|
37
|
+
//# sourceMappingURL=chunk-FF422IYY.mjs.map
|
|
38
|
+
//# sourceMappingURL=chunk-FF422IYY.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/title-bar/components/title-tab/tab-item.tsx"],"names":[],"mappings":";;;;;;AAYA,IAAM,UAA4B,CAAC;AAAA,EACjC,IAAA;AAAA,EACA,IAAA;AAAA,EACA,UAAA,GAAa,KAAA;AAAA,EACb,QAAA,GAAW,KAAA;AAAA,EACX,OAAA;AAAA,EACA,SAAA,GAAY;AACd,CAAA,KAAM;AACJ,EAAA,MAAM,cAAA,GAAiB,aAAa,qBAAA,GAAe,qBAAA;AACnD,EAAA,uBACE,GAAA;AAAA,IAAC,QAAA;AAAA,IAAA;AAAA,MACC,SAAA,EAAW,IAAA,CAAK,mCAAA,EAAqC,SAAS,CAAA;AAAA,MAC9D,OAAA;AAAA,MACA,IAAA,EAAK,QAAA;AAAA,MAEL,QAAA,kBAAA,GAAA,CAAC,cAAA,EAAA,EAAe,EAAA,EAAI,IAAA,EAClB,QAAA,kBAAA,GAAA;AAAA,QAAC,mBAAA;AAAA,QAAA;AAAA,UACC,IAAA;AAAA,UACA,MAAA,EAAQ,QAAA;AAAA,UACR,IAAA,EAAM,oBAAW,IAAA,CAAK,CAAA;AAAA,UACtB,SAAA,EAAU;AAAA;AAAA,OACZ,EACF;AAAA;AAAA,GACF;AAEJ,CAAA;AAEA,IAAO,gBAAA,GAAQ","file":"chunk-
|
|
1
|
+
{"version":3,"sources":["../src/title-bar/components/title-tab/tab-item.tsx"],"names":[],"mappings":";;;;;;AAYA,IAAM,UAA4B,CAAC;AAAA,EACjC,IAAA;AAAA,EACA,IAAA;AAAA,EACA,UAAA,GAAa,KAAA;AAAA,EACb,QAAA,GAAW,KAAA;AAAA,EACX,OAAA;AAAA,EACA,SAAA,GAAY;AACd,CAAA,KAAM;AACJ,EAAA,MAAM,cAAA,GAAiB,aAAa,qBAAA,GAAe,qBAAA;AACnD,EAAA,uBACE,GAAA;AAAA,IAAC,QAAA;AAAA,IAAA;AAAA,MACC,SAAA,EAAW,IAAA,CAAK,mCAAA,EAAqC,SAAS,CAAA;AAAA,MAC9D,OAAA;AAAA,MACA,IAAA,EAAK,QAAA;AAAA,MAEL,QAAA,kBAAA,GAAA,CAAC,cAAA,EAAA,EAAe,EAAA,EAAI,IAAA,EAClB,QAAA,kBAAA,GAAA;AAAA,QAAC,mBAAA;AAAA,QAAA;AAAA,UACC,IAAA;AAAA,UACA,MAAA,EAAQ,QAAA;AAAA,UACR,IAAA,EAAM,oBAAW,IAAA,CAAK,CAAA;AAAA,UACtB,SAAA,EAAU;AAAA;AAAA,OACZ,EACF;AAAA;AAAA,GACF;AAEJ,CAAA;AAEA,IAAO,gBAAA,GAAQ","file":"chunk-FF422IYY.mjs","sourcesContent":["import clsx from 'clsx'\nimport type { FC } from 'react'\n// type\nimport type { Tab } from './type'\n// component\nimport { ExternalLink, InternalLink } from '../../../customized-link'\nimport { TextButton } from '../../../button'\n\ntype TabItemProps = Tab & {\n onClick: () => void\n className?: string\n}\nconst TabItem: FC<TabItemProps> = ({\n text,\n link,\n isExternal = false,\n isActive = false,\n onClick,\n className = '',\n}) => {\n const CustomizedLink = isExternal ? ExternalLink : InternalLink\n return (\n <button\n className={clsx('flex shrink-0 mr-[24px] last:mr-0', className)}\n onClick={onClick}\n type=\"button\"\n >\n <CustomizedLink to={link}>\n <TextButton\n text={text}\n active={isActive}\n size={TextButton.Size.L}\n className=\"py-[16px]\"\n />\n </CustomizedLink>\n </button>\n )\n}\n\nexport default TabItem\n"]}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { THEME } from './chunk-JB4TYHDE.mjs';
|
|
2
|
+
|
|
3
|
+
// src/button/components/text-button/theme.ts
|
|
4
|
+
var getDisabledContainerTheme = (theme) => {
|
|
5
|
+
return [
|
|
6
|
+
// default theme
|
|
7
|
+
"text-gray-400 hover:text-gray-400",
|
|
8
|
+
// photography & transparent theme
|
|
9
|
+
{
|
|
10
|
+
"text-gray-500 hover:text-gray-500": theme === THEME.photography || theme === THEME.transparent
|
|
11
|
+
}
|
|
12
|
+
];
|
|
13
|
+
};
|
|
14
|
+
var getActiveContainerTheme = (theme, style) => {
|
|
15
|
+
return [
|
|
16
|
+
// default theme
|
|
17
|
+
{
|
|
18
|
+
"text-gray-800 hover:text-gray-800": style === 2 /* LIGHT */,
|
|
19
|
+
"text-brand-heavy hover:text-brand-heavy": style === 1 /* DARK */,
|
|
20
|
+
"text-brand-dark hover:text-brand-dark": style === 0 /* BRAND */
|
|
21
|
+
},
|
|
22
|
+
// photography theme
|
|
23
|
+
{
|
|
24
|
+
"text-gray-400 hover:text-gray-400": theme === THEME.photography && style === 2 /* LIGHT */,
|
|
25
|
+
"text-supportive-pastel hover:text-supportive-pastel": theme === THEME.photography && style !== 2 /* LIGHT */
|
|
26
|
+
},
|
|
27
|
+
// transparent theme
|
|
28
|
+
{
|
|
29
|
+
"text-gray-black hover:text-gray-black": theme === THEME.transparent && style === 2 /* LIGHT */,
|
|
30
|
+
"text-gray-200 hover:text-gray-200": theme === THEME.transparent && style !== 2 /* LIGHT */
|
|
31
|
+
}
|
|
32
|
+
];
|
|
33
|
+
};
|
|
34
|
+
var getContainerTheme = (theme, style) => {
|
|
35
|
+
return [
|
|
36
|
+
// default theme
|
|
37
|
+
{
|
|
38
|
+
"text-gray-600 hover:text-gray-800": style === 2 /* LIGHT */,
|
|
39
|
+
"text-gray-800 hover:text-brand-heavy": style === 1 /* DARK */,
|
|
40
|
+
"text-brand-heavy hover:text-brand-dark": style === 0 /* BRAND */
|
|
41
|
+
},
|
|
42
|
+
// photography
|
|
43
|
+
{
|
|
44
|
+
"text-gray-300 hover:text-gray-400": theme === THEME.photography && style === 2 /* LIGHT */,
|
|
45
|
+
"text-gray-white hover:text-supportive-pastel": theme === THEME.photography && style === 1 /* DARK */,
|
|
46
|
+
"text-supportive-faded hover:text-supportive-pastel": theme === THEME.photography && style === 0 /* BRAND */
|
|
47
|
+
},
|
|
48
|
+
// transparent theme
|
|
49
|
+
{
|
|
50
|
+
"text-gray-800 hover:text-gray-black": theme === THEME.transparent && style === 2 /* LIGHT */,
|
|
51
|
+
"text-gray-white hover:text-gray-200": theme === THEME.transparent && style !== 2 /* LIGHT */
|
|
52
|
+
}
|
|
53
|
+
];
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
export { getActiveContainerTheme, getContainerTheme, getDisabledContainerTheme };
|
|
57
|
+
//# sourceMappingURL=chunk-FVKIUNIP.mjs.map
|
|
58
|
+
//# sourceMappingURL=chunk-FVKIUNIP.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/button/components/text-button/theme.ts"],"names":[],"mappings":";;;AAUO,IAAM,yBAAA,GAAuC,CAAC,KAAA,KAAU;AAC7D,EAAA,OAAO;AAAA;AAAA,IAEL,mCAAA;AAAA;AAAA,IAEA;AAAA,MACE,mCAAA,EAAqC,KAAA,KAAU,KAAA,CAAM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AuC,KAAA,KAAU,KAAA,CAAM,WAAA,IAAe,KAAA,KAAA,CAAA;AAAA,MACtE,qCAAA,EAAuC,KAAA,KAAU,KAAA,CAAM,WAAA,IAAe,KAAA,KAAA,CAAA;AAAA;AACxE,GACF;AACF","file":"chunk-FVKIUNIP.mjs","sourcesContent":["// constants\nimport { THEME } from '../../constant'\n// type\nimport type { Theme } from '../../constant'\nimport type { ClassArray } from 'clsx'\n// enum\nimport { Style } from '../../enum'\n\ntype ThemeFunc = (theme: Theme, style?: Style) => ClassArray\n\nexport const getDisabledContainerTheme: ThemeFunc = (theme) => {\n return [\n // default theme\n 'text-gray-400 hover:text-gray-400',\n // photography & transparent theme\n {\n 'text-gray-500 hover:text-gray-500': theme === THEME.photography || theme === THEME.transparent,\n }\n ]\n}\n\nexport const getActiveContainerTheme: ThemeFunc = (theme, style) => {\n return [\n // default theme\n {\n 'text-gray-800 hover:text-gray-800': style === Style.LIGHT,\n 'text-brand-heavy hover:text-brand-heavy': style === Style.DARK,\n 'text-brand-dark hover:text-brand-dark': style === Style.BRAND,\n },\n // photography theme\n {\n 'text-gray-400 hover:text-gray-400': theme === THEME.photography && style === Style.LIGHT,\n 'text-supportive-pastel hover:text-supportive-pastel': theme === THEME.photography && style !== Style.LIGHT,\n },\n // transparent theme\n {\n 'text-gray-black hover:text-gray-black': theme === THEME.transparent && style === Style.LIGHT,\n 'text-gray-200 hover:text-gray-200': theme === THEME.transparent && style !== Style.LIGHT,\n },\n ]\n}\n\nexport const getContainerTheme: ThemeFunc = (theme, style) => {\n return [\n // default theme\n {\n 'text-gray-600 hover:text-gray-800': style === Style.LIGHT,\n 'text-gray-800 hover:text-brand-heavy': style === Style.DARK,\n 'text-brand-heavy hover:text-brand-dark': style === Style.BRAND,\n },\n // photography\n {\n 'text-gray-300 hover:text-gray-400': theme === THEME.photography && style === Style.LIGHT,\n 'text-gray-white hover:text-supportive-pastel': theme === THEME.photography && style === Style.DARK,\n 'text-supportive-faded hover:text-supportive-pastel': theme === THEME.photography && style === Style.BRAND,\n },\n // transparent theme\n {\n 'text-gray-800 hover:text-gray-black': theme === THEME.transparent && style === Style.LIGHT,\n 'text-gray-white hover:text-gray-200': theme === THEME.transparent && style !== Style.LIGHT,\n },\n ]\n}"]}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { getDisabledContainerTheme, getActiveContainerTheme, getContainerTheme } from './chunk-FVKIUNIP.mjs';
|
|
1
2
|
import { P2, P1 } from './chunk-HQG6Q2EY.mjs';
|
|
2
3
|
import { THEME } from './chunk-JB4TYHDE.mjs';
|
|
3
4
|
import { Size, Style } from './chunk-URJXIWFX.mjs';
|
|
@@ -18,9 +19,13 @@ var TextButton = ({
|
|
|
18
19
|
className = ""
|
|
19
20
|
}) => {
|
|
20
21
|
const TextJSX = useMemo(
|
|
21
|
-
() => size === 0 /* S */ ? /* @__PURE__ */ jsx(P2, { text }) : /* @__PURE__ */ jsx(P1, { text }),
|
|
22
|
+
() => size === 0 /* S */ ? /* @__PURE__ */ jsx(P2, { text, weight: P2.Weight.bold }) : /* @__PURE__ */ jsx(P1, { text, weight: P1.Weight.bold }),
|
|
22
23
|
[size, text]
|
|
23
24
|
);
|
|
25
|
+
const themeClass = useMemo(() => {
|
|
26
|
+
const themeFunc = disabled ? getDisabledContainerTheme : active ? getActiveContainerTheme : getContainerTheme;
|
|
27
|
+
return themeFunc(theme, style);
|
|
28
|
+
}, [disabled, active, theme, style]);
|
|
24
29
|
return /* @__PURE__ */ jsx(
|
|
25
30
|
"div",
|
|
26
31
|
{
|
|
@@ -30,18 +35,7 @@ var TextButton = ({
|
|
|
30
35
|
"cursor-default": disabled,
|
|
31
36
|
"cursor-pointer": !disabled
|
|
32
37
|
},
|
|
33
|
-
|
|
34
|
-
"text-gray-500 hover:text-gray-500": disabled && (theme === THEME.photography || theme === THEME.transparent),
|
|
35
|
-
"text-gray-400 hover:text-gray-400": disabled || theme === THEME.photography && style === 2 /* LIGHT */ && !active && !disabled,
|
|
36
|
-
"text-gray-200 hover:text-supportive-pastel": theme === THEME.photography && !active && !disabled,
|
|
37
|
-
"text-gray-300 hover:text-gray-400": theme === THEME.photography && style === 2 /* LIGHT */ && active && !disabled,
|
|
38
|
-
"text-gray-white hover:text-supportive-pastel": theme === THEME.photography && style === 1 /* DARK */ && active && !disabled,
|
|
39
|
-
"text-supportive-faded hover:text-supportive-pastel": theme === THEME.photography && style === 0 /* BRAND */ && active && !disabled,
|
|
40
|
-
"text-gray-100 hover:text-gray-200": theme === THEME.transparent && !active && !disabled,
|
|
41
|
-
"text-gray-white hover:text-gray-white": theme === THEME.transparent && active && !disabled,
|
|
42
|
-
"text-gray-600 hover:text-brand-heavy": theme === THEME.normal && !active && !disabled,
|
|
43
|
-
"text-brand-heavy hover:text-brand-heavy": theme === THEME.normal && active && !disabled
|
|
44
|
-
},
|
|
38
|
+
themeClass,
|
|
45
39
|
className
|
|
46
40
|
),
|
|
47
41
|
children: /* @__PURE__ */ jsxs("div", { className: "relative flex justify-center items-center", children: [
|
|
@@ -86,5 +80,5 @@ TextButton.THEME = THEME;
|
|
|
86
80
|
var text_button_default = TextButton;
|
|
87
81
|
|
|
88
82
|
export { text_button_default };
|
|
89
|
-
//# sourceMappingURL=chunk-
|
|
90
|
-
//# sourceMappingURL=chunk-
|
|
83
|
+
//# sourceMappingURL=chunk-U22UKMAJ.mjs.map
|
|
84
|
+
//# sourceMappingURL=chunk-U22UKMAJ.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/button/components/text-button/index.tsx"],"names":[],"mappings":";;;;;;;;AAyBA,IAAM,aAIF,CAAC;AAAA,EACH,IAAA;AAAA,EACA,iBAAA;AAAA,EACA,kBAAA;AAAA,EACA,IAAA,GAAA,CAAA;AAAA,EACA,QAAQ,KAAA,CAAM,MAAA;AAAA,EACd,KAAA,GAAA,CAAA;AAAA,EACA,MAAA,GAAS,KAAA;AAAA,EACT,QAAA,GAAW,KAAA;AAAA,EACX,OAAA,GAAU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AAA,8BACD,GAAA,CAAC,KAAA,EAAA,EAAI,SAAA,EAAU,4BAAA,EAA8B,QAAA,EAAA,kBAAA,EAAmB;AAAA;AAAA;AAAA,SAClE;AAAA,wBACA,GAAA;AAAA,UAAC,MAAA;AAAA,UAAA;AAAA,YACC,SAAA,EAAW,IAAA;AAAA,cACT,iDAAA;AAAA,cACA,uEAAA;AAAA,cACA;AAAA,gBACE,aAAA,EAAe,IAAA,KAAA,CAAA;AAAA,gBACf,aAAA,EAAe,IAAA,KAAA,CAAA;AAAA,eACjB;AAAA,cACA;AAAA,gBACE,aAAa,CAAC,OAAA;AAAA,gBACd,aAAA,EAAe;AAAA;AACjB;AACF;AAAA;AACF,OAAA,EACF;AAAA;AAAA,GACF;AAEJ,CAAA;AACA,UAAA,CAAW,IAAA,GAAO,IAAA;AAClB,UAAA,CAAW,KAAA,GAAQ,KAAA;AACnB,UAAA,CAAW,KAAA,GAAQ,KAAA;AAEnB,IAAO,mBAAA,GAAQ","file":"chunk-U22UKMAJ.mjs","sourcesContent":["import { type FC, type ReactElement, useMemo } from 'react'\nimport clsx from 'clsx'\n// components\nimport { P1, P2 } from '../../../text/paragraph'\n// enums\nimport { Size, Style } from '../../enum'\n// type\nimport type { Theme } from '../../constant'\n// constants\nimport { THEME } from '../../constant'\n// utils\nimport { getContainerTheme, getActiveContainerTheme, getDisabledContainerTheme } from './theme'\n\ntype TextButtonProps = {\n text: string\n leftIconComponent?: ReactElement\n rightIconComponent?: ReactElement\n size?: Size\n style?: Style\n theme?: Theme\n active?: boolean\n disabled?: boolean\n loading?: boolean\n className?: string\n}\nconst TextButton: FC<TextButtonProps> & {\n Size: typeof Size\n Style: typeof Style\n THEME: typeof THEME\n} = ({\n text,\n leftIconComponent,\n rightIconComponent,\n size = Size.S,\n theme = THEME.normal,\n style = Style.DARK,\n active = false,\n disabled = false,\n loading = false,\n className = '',\n}) => {\n const TextJSX = useMemo(\n () => (size === Size.S ? <P2 text={text} weight={P2.Weight.bold} /> : <P1 text={text} weight={P1.Weight.bold} />),\n [size, text]\n )\n const themeClass = useMemo(() => {\n const themeFunc = disabled ? getDisabledContainerTheme : (active ? getActiveContainerTheme : getContainerTheme)\n return themeFunc(theme, style)\n }, [disabled, active, theme, style])\n\n return (\n <div\n className={clsx(\n 'flex items-center',\n {\n 'cursor-default': disabled,\n 'cursor-pointer': !disabled,\n },\n themeClass,\n className\n )}\n >\n <div className=\"relative flex justify-center items-center\">\n <div\n className={clsx('flex justify-center items-center', {\n 'opacity-0': loading,\n 'opacity-100': !loading,\n })}\n >\n <div className=\"flex items-center mr-[4px]\">{leftIconComponent}</div>\n {TextJSX}\n <div className=\"flex items-center ml-[4px]\">{rightIconComponent}</div>\n </div>\n <span\n className={clsx(\n 'inline-block absolute box-border animation-spin',\n 'border-2 border-solid border-gray-400 border-t-gray-600 rounded-[50%]',\n {\n 'size-[18px]': size === Size.S,\n 'size-[24px]': size === Size.L,\n },\n {\n 'opacity-0': !loading,\n 'opacity-100': loading,\n }\n )}\n />\n </div>\n </div>\n )\n}\nTextButton.Size = Size\nTextButton.Style = Style\nTextButton.THEME = THEME\n\nexport default TextButton\n"]}
|
|
@@ -13,7 +13,7 @@ var Title1 = ({ title, subtitle = "", className = "" }) => {
|
|
|
13
13
|
"div",
|
|
14
14
|
{
|
|
15
15
|
className: clsx(
|
|
16
|
-
"w-full h-[1px] bg-gray-
|
|
16
|
+
"w-full h-[1px] bg-gray-300 mt-[8px]",
|
|
17
17
|
"desktop:mt-[16px]"
|
|
18
18
|
)
|
|
19
19
|
}
|
|
@@ -23,5 +23,5 @@ var Title1 = ({ title, subtitle = "", className = "" }) => {
|
|
|
23
23
|
var title1_default = Title1;
|
|
24
24
|
|
|
25
25
|
export { title1_default };
|
|
26
|
-
//# sourceMappingURL=chunk-
|
|
27
|
-
//# sourceMappingURL=chunk-
|
|
26
|
+
//# sourceMappingURL=chunk-ZALXWB2J.mjs.map
|
|
27
|
+
//# sourceMappingURL=chunk-ZALXWB2J.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/title-bar/components/title1.tsx"],"names":[],"mappings":";;;;;AAYA,IAAM,MAAA,GAA0B,CAAC,EAAE,KAAA,EAAO,WAAW,EAAA,EAAI,SAAA,GAAY,IAAG,KAAM;AAC5E,EAAA,4BACG,KAAA,EAAA,EAAI,SAAA,EAAW,IAAA,CAAK,+BAAA,EAAiC,SAAS,CAAA,EAC7D,QAAA,EAAA;AAAA,oBAAA,IAAA,CAAC,KAAA,EAAA,EAAI,SAAA,EAAW,IAAA,CAAK,gCAAgC,CAAA,EACnD,QAAA,EAAA;AAAA,sBAAA,GAAA,CAAC,EAAA,EAAA,EAAG,SAAA,EAAU,eAAA,EAAgB,IAAA,EAAM,KAAA,EAAO,CAAA;AAAA,MAC1C,2BAAW,GAAA,CAAC,EAAA,EAAA,EAAG,WAAU,eAAA,EAAgB,IAAA,EAAM,UAAU,CAAA,GAAK;AAAA,KAAA,EACjE,CAAA;AAAA,oBACA,GAAA;AAAA,MAAC,KAAA;AAAA,MAAA;AAAA,QACC,SAAA,EAAW,IAAA;AAAA,UACT,qCAAA;AAAA,UACA;AAAA;AACF;AAAA;AACF,GAAA,EACF,CAAA;AAEJ,CAAA;AAEA,IAAO,cAAA,GAAQ","file":"chunk-
|
|
1
|
+
{"version":3,"sources":["../src/title-bar/components/title1.tsx"],"names":[],"mappings":";;;;;AAYA,IAAM,MAAA,GAA0B,CAAC,EAAE,KAAA,EAAO,WAAW,EAAA,EAAI,SAAA,GAAY,IAAG,KAAM;AAC5E,EAAA,4BACG,KAAA,EAAA,EAAI,SAAA,EAAW,IAAA,CAAK,+BAAA,EAAiC,SAAS,CAAA,EAC7D,QAAA,EAAA;AAAA,oBAAA,IAAA,CAAC,KAAA,EAAA,EAAI,SAAA,EAAW,IAAA,CAAK,gCAAgC,CAAA,EACnD,QAAA,EAAA;AAAA,sBAAA,GAAA,CAAC,EAAA,EAAA,EAAG,SAAA,EAAU,eAAA,EAAgB,IAAA,EAAM,KAAA,EAAO,CAAA;AAAA,MAC1C,2BAAW,GAAA,CAAC,EAAA,EAAA,EAAG,WAAU,eAAA,EAAgB,IAAA,EAAM,UAAU,CAAA,GAAK;AAAA,KAAA,EACjE,CAAA;AAAA,oBACA,GAAA;AAAA,MAAC,KAAA;AAAA,MAAA;AAAA,QACC,SAAA,EAAW,IAAA;AAAA,UACT,qCAAA;AAAA,UACA;AAAA;AACF;AAAA;AACF,GAAA,EACF,CAAA;AAEJ,CAAA;AAEA,IAAO,cAAA,GAAQ","file":"chunk-ZALXWB2J.mjs","sourcesContent":["import clsx from 'clsx'\nimport type { FC } from 'react'\n// components\nimport { H2 } from '../../text/heading'\nimport { P1 } from '../../text/paragraph'\n\ntype Title1Props = {\n title: string\n subtitle?: string\n className?: string\n}\n\nconst Title1: FC<Title1Props> = ({ title, subtitle = '', className = '' }) => {\n return (\n <div className={clsx('flex justify-between flex-col', className)}>\n <div className={clsx('flex items-baseline gap-[16px]')}>\n <H2 className=\"text-gray-800\" text={title} />\n {subtitle ? <P1 className=\"text-gray-600\" text={subtitle} /> : null}\n </div>\n <div\n className={clsx(\n 'w-full h-[1px] bg-gray-300 mt-[8px]',\n 'desktop:mt-[16px]'\n )}\n />\n </div>\n )\n}\n\nexport default Title1\n"]}
|
package/lib/styles.css
CHANGED
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
"Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
|
8
8
|
--font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
|
|
9
9
|
"Courier New", monospace;
|
|
10
|
-
--color-gray-100: #f1f1f1;
|
|
11
10
|
--color-gray-200: #e2e2e2;
|
|
12
11
|
--color-gray-300: #cdcdcd;
|
|
13
12
|
--color-gray-400: #bbbbbb;
|
|
@@ -19,9 +18,11 @@
|
|
|
19
18
|
--default-font-family: var(--font-sans);
|
|
20
19
|
--default-mono-font-family: var(--font-mono);
|
|
21
20
|
--color-brand-heavy: #c40d23;
|
|
21
|
+
--color-brand-dark: #9b051e;
|
|
22
22
|
--color-supportive-faded: #f0d5be;
|
|
23
23
|
--color-supportive-pastel: #e3be98;
|
|
24
24
|
--color-gray-white: #ffffff;
|
|
25
|
+
--color-gray-black: #000000;
|
|
25
26
|
--font-title: "merriweather", "source-han-serif-tc", serif;
|
|
26
27
|
--font-default: "Roboto Slab", "Noto Sans TC", sans-serif, "Tauhu Oo";
|
|
27
28
|
}
|
|
@@ -326,12 +327,12 @@
|
|
|
326
327
|
--tw-font-weight: var(--font-weight-bold);
|
|
327
328
|
font-weight: var(--font-weight-bold);
|
|
328
329
|
}
|
|
330
|
+
.text-brand-dark {
|
|
331
|
+
color: var(--color-brand-dark);
|
|
332
|
+
}
|
|
329
333
|
.text-brand-heavy {
|
|
330
334
|
color: var(--color-brand-heavy);
|
|
331
335
|
}
|
|
332
|
-
.text-gray-100 {
|
|
333
|
-
color: var(--color-gray-100);
|
|
334
|
-
}
|
|
335
336
|
.text-gray-200 {
|
|
336
337
|
color: var(--color-gray-200);
|
|
337
338
|
}
|
|
@@ -350,12 +351,18 @@
|
|
|
350
351
|
.text-gray-800 {
|
|
351
352
|
color: var(--color-gray-800);
|
|
352
353
|
}
|
|
354
|
+
.text-gray-black {
|
|
355
|
+
color: var(--color-gray-black);
|
|
356
|
+
}
|
|
353
357
|
.text-gray-white {
|
|
354
358
|
color: var(--color-gray-white);
|
|
355
359
|
}
|
|
356
360
|
.text-supportive-faded {
|
|
357
361
|
color: var(--color-supportive-faded);
|
|
358
362
|
}
|
|
363
|
+
.text-supportive-pastel {
|
|
364
|
+
color: var(--color-supportive-pastel);
|
|
365
|
+
}
|
|
359
366
|
.opacity-0 {
|
|
360
367
|
opacity: 0%;
|
|
361
368
|
}
|
|
@@ -370,6 +377,13 @@
|
|
|
370
377
|
margin-right: calc(var(--spacing) * 0);
|
|
371
378
|
}
|
|
372
379
|
}
|
|
380
|
+
.hover\:text-brand-dark {
|
|
381
|
+
&:hover {
|
|
382
|
+
@media (hover: hover) {
|
|
383
|
+
color: var(--color-brand-dark);
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
}
|
|
373
387
|
.hover\:text-brand-heavy {
|
|
374
388
|
&:hover {
|
|
375
389
|
@media (hover: hover) {
|
|
@@ -398,10 +412,17 @@
|
|
|
398
412
|
}
|
|
399
413
|
}
|
|
400
414
|
}
|
|
401
|
-
.hover\:text-gray-
|
|
415
|
+
.hover\:text-gray-800 {
|
|
416
|
+
&:hover {
|
|
417
|
+
@media (hover: hover) {
|
|
418
|
+
color: var(--color-gray-800);
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
.hover\:text-gray-black {
|
|
402
423
|
&:hover {
|
|
403
424
|
@media (hover: hover) {
|
|
404
|
-
color: var(--color-gray-
|
|
425
|
+
color: var(--color-gray-black);
|
|
405
426
|
}
|
|
406
427
|
}
|
|
407
428
|
}
|
package/lib/styles.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/styles.css"],"sourcesContent":["/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */\n@layer properties;\n@layer theme, base, components, utilities;\n@layer theme {\n :root, :host {\n --font-sans: ui-sans-serif, system-ui, sans-serif, \"Apple Color Emoji\",\n \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";\n --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\",\n \"Courier New\", monospace;\n --color-gray-100: #f1f1f1;\n --color-gray-200: #e2e2e2;\n --color-gray-300: #cdcdcd;\n --color-gray-400: #bbbbbb;\n --color-gray-500: #9c9c9c;\n --color-gray-600: #808080;\n --color-gray-800: #404040;\n --spacing: 0.25rem;\n --font-weight-bold: 700;\n --default-font-family: var(--font-sans);\n --default-mono-font-family: var(--font-mono);\n --color-brand-heavy: #c40d23;\n --color-supportive-faded: #f0d5be;\n --color-supportive-pastel: #e3be98;\n --color-gray-white: #ffffff;\n --font-title: \"merriweather\", \"source-han-serif-tc\", serif;\n --font-default: \"Roboto Slab\", \"Noto Sans TC\", sans-serif, \"Tauhu Oo\";\n }\n}\n@layer base {\n *, ::after, ::before, ::backdrop, ::file-selector-button {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n border: 0 solid;\n }\n html, :host {\n line-height: 1.5;\n -webkit-text-size-adjust: 100%;\n -moz-tab-size: 4;\n -o-tab-size: 4;\n tab-size: 4;\n font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\");\n font-feature-settings: var(--default-font-feature-settings, normal);\n font-variation-settings: var(--default-font-variation-settings, normal);\n -webkit-tap-highlight-color: transparent;\n }\n hr {\n height: 0;\n color: inherit;\n border-top-width: 1px;\n }\n abbr:where([title]) {\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n }\n h1, h2, h3, h4, h5, h6 {\n font-size: inherit;\n font-weight: inherit;\n }\n a {\n color: inherit;\n -webkit-text-decoration: inherit;\n text-decoration: inherit;\n }\n b, strong {\n font-weight: bolder;\n }\n code, kbd, samp, pre {\n font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace);\n font-feature-settings: var(--default-mono-font-feature-settings, normal);\n font-variation-settings: var(--default-mono-font-variation-settings, normal);\n font-size: 1em;\n }\n small {\n font-size: 80%;\n }\n sub, sup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n }\n sub {\n bottom: -0.25em;\n }\n sup {\n top: -0.5em;\n }\n table {\n text-indent: 0;\n border-color: inherit;\n border-collapse: collapse;\n }\n :-moz-focusring {\n outline: auto;\n }\n progress {\n vertical-align: baseline;\n }\n summary {\n display: list-item;\n }\n ol, ul, menu {\n list-style: none;\n }\n img, svg, video, canvas, audio, iframe, embed, object {\n display: block;\n vertical-align: middle;\n }\n img, video {\n max-width: 100%;\n height: auto;\n }\n button, input, select, optgroup, textarea, ::file-selector-button {\n font: inherit;\n font-feature-settings: inherit;\n font-variation-settings: inherit;\n letter-spacing: inherit;\n color: inherit;\n border-radius: 0;\n background-color: transparent;\n opacity: 1;\n }\n :where(select:is([multiple], [size])) optgroup {\n font-weight: bolder;\n }\n :where(select:is([multiple], [size])) optgroup option {\n padding-inline-start: 20px;\n }\n ::file-selector-button {\n margin-inline-end: 4px;\n }\n ::-moz-placeholder {\n opacity: 1;\n }\n ::placeholder {\n opacity: 1;\n }\n @supports (not (-webkit-appearance: -apple-pay-button)) or (contain-intrinsic-size: 1px) {\n ::-moz-placeholder {\n color: currentcolor;\n @supports (color: color-mix(in lab, red, red)) {\n color: color-mix(in oklab, currentcolor 50%, transparent);\n }\n }\n ::placeholder {\n color: currentcolor;\n @supports (color: color-mix(in lab, red, red)) {\n color: color-mix(in oklab, currentcolor 50%, transparent);\n }\n }\n }\n textarea {\n resize: vertical;\n }\n ::-webkit-search-decoration {\n -webkit-appearance: none;\n }\n ::-webkit-date-and-time-value {\n min-height: 1lh;\n text-align: inherit;\n }\n ::-webkit-datetime-edit {\n display: inline-flex;\n }\n ::-webkit-datetime-edit-fields-wrapper {\n padding: 0;\n }\n ::-webkit-datetime-edit, ::-webkit-datetime-edit-year-field, ::-webkit-datetime-edit-month-field, ::-webkit-datetime-edit-day-field, ::-webkit-datetime-edit-hour-field, ::-webkit-datetime-edit-minute-field, ::-webkit-datetime-edit-second-field, ::-webkit-datetime-edit-millisecond-field, ::-webkit-datetime-edit-meridiem-field {\n padding-block: 0;\n }\n :-moz-ui-invalid {\n box-shadow: none;\n }\n button, input:where([type=\"button\"], [type=\"reset\"], [type=\"submit\"]), ::file-selector-button {\n -webkit-appearance: button;\n -moz-appearance: button;\n appearance: button;\n }\n ::-webkit-inner-spin-button, ::-webkit-outer-spin-button {\n height: auto;\n }\n [hidden]:where(:not([hidden=\"until-found\"])) {\n display: none !important;\n }\n}\n@layer utilities {\n .absolute {\n position: absolute;\n }\n .relative {\n position: relative;\n }\n .m-0 {\n margin: calc(var(--spacing) * 0);\n }\n .mt-\\[0px\\] {\n margin-top: 0px;\n }\n .mt-\\[8px\\] {\n margin-top: 8px;\n }\n .mr-\\[4px\\] {\n margin-right: 4px;\n }\n .mr-\\[24px\\] {\n margin-right: 24px;\n }\n .ml-\\[4px\\] {\n margin-left: 4px;\n }\n .box-border {\n box-sizing: border-box;\n }\n .flex {\n display: flex;\n }\n .inline-block {\n display: inline-block;\n }\n .size-\\[18px\\] {\n width: 18px;\n height: 18px;\n }\n .size-\\[24px\\] {\n width: 24px;\n height: 24px;\n }\n .h-\\[1px\\] {\n height: 1px;\n }\n .w-full {\n width: 100%;\n }\n .shrink-0 {\n flex-shrink: 0;\n }\n .cursor-default {\n cursor: default;\n }\n .cursor-pointer {\n cursor: pointer;\n }\n .flex-col {\n flex-direction: column;\n }\n .flex-row {\n flex-direction: row;\n }\n .items-baseline {\n align-items: baseline;\n }\n .items-center {\n align-items: center;\n }\n .justify-between {\n justify-content: space-between;\n }\n .justify-center {\n justify-content: center;\n }\n .gap-\\[16px\\] {\n gap: 16px;\n }\n .overflow-x-scroll {\n overflow-x: scroll;\n }\n .rounded-\\[50\\%\\] {\n border-radius: 50%;\n }\n .border-2 {\n border-style: var(--tw-border-style);\n border-width: 2px;\n }\n .border-solid {\n --tw-border-style: solid;\n border-style: solid;\n }\n .border-gray-400 {\n border-color: var(--color-gray-400);\n }\n .border-t-gray-600 {\n border-top-color: var(--color-gray-600);\n }\n .bg-gray-300 {\n background-color: var(--color-gray-300);\n }\n .bg-gray-800 {\n background-color: var(--color-gray-800);\n }\n .\\[mask-image\\:linear-gradient\\(to_left\\,rgba\\(241\\,241\\,241\\,0\\)\\,\\#f1f1f1_48px\\)\\] {\n -webkit-mask-image: linear-gradient(to left,rgba(241,241,241,0),#f1f1f1 48px);\n mask-image: linear-gradient(to left,rgba(241,241,241,0),#f1f1f1 48px);\n }\n .py-\\[16px\\] {\n padding-block: 16px;\n }\n .font-default {\n font-family: var(--font-default);\n }\n .font-title {\n font-family: var(--font-title);\n }\n .text-\\[10px\\] {\n font-size: 10px;\n }\n .text-\\[12px\\] {\n font-size: 12px;\n }\n .text-\\[14px\\] {\n font-size: 14px;\n }\n .text-\\[16px\\] {\n font-size: 16px;\n }\n .text-\\[17px\\] {\n font-size: 17px;\n }\n .text-\\[18px\\] {\n font-size: 18px;\n }\n .text-\\[22px\\] {\n font-size: 22px;\n }\n .text-\\[24px\\] {\n font-size: 24px;\n }\n .text-\\[28px\\] {\n font-size: 28px;\n }\n .leading-\\[125\\%\\] {\n --tw-leading: 125%;\n line-height: 125%;\n }\n .leading-\\[150\\%\\] {\n --tw-leading: 150%;\n line-height: 150%;\n }\n .font-bold {\n --tw-font-weight: var(--font-weight-bold);\n font-weight: var(--font-weight-bold);\n }\n .text-brand-heavy {\n color: var(--color-brand-heavy);\n }\n .text-gray-100 {\n color: var(--color-gray-100);\n }\n .text-gray-200 {\n color: var(--color-gray-200);\n }\n .text-gray-300 {\n color: var(--color-gray-300);\n }\n .text-gray-400 {\n color: var(--color-gray-400);\n }\n .text-gray-500 {\n color: var(--color-gray-500);\n }\n .text-gray-600 {\n color: var(--color-gray-600);\n }\n .text-gray-800 {\n color: var(--color-gray-800);\n }\n .text-gray-white {\n color: var(--color-gray-white);\n }\n .text-supportive-faded {\n color: var(--color-supportive-faded);\n }\n .opacity-0 {\n opacity: 0%;\n }\n .opacity-100 {\n opacity: 100%;\n }\n .\\[-webkit-mask-image\\:linear-gradient\\(to_left\\,rgba\\(241\\,241\\,241\\,0\\)\\,\\#f1f1f1_48px\\)\\] {\n -webkit-mask-image: linear-gradient(to left,rgba(241,241,241,0),#f1f1f1 48px);\n }\n .last\\:mr-0 {\n &:last-child {\n margin-right: calc(var(--spacing) * 0);\n }\n }\n .hover\\:text-brand-heavy {\n &:hover {\n @media (hover: hover) {\n color: var(--color-brand-heavy);\n }\n }\n }\n .hover\\:text-gray-200 {\n &:hover {\n @media (hover: hover) {\n color: var(--color-gray-200);\n }\n }\n }\n .hover\\:text-gray-400 {\n &:hover {\n @media (hover: hover) {\n color: var(--color-gray-400);\n }\n }\n }\n .hover\\:text-gray-500 {\n &:hover {\n @media (hover: hover) {\n color: var(--color-gray-500);\n }\n }\n }\n .hover\\:text-gray-white {\n &:hover {\n @media (hover: hover) {\n color: var(--color-gray-white);\n }\n }\n }\n .hover\\:text-supportive-pastel {\n &:hover {\n @media (hover: hover) {\n color: var(--color-supportive-pastel);\n }\n }\n }\n .tablet\\:text-\\[16px\\] {\n @media (width >= 768px) {\n font-size: 16px;\n }\n }\n .tablet\\:text-\\[18px\\] {\n @media (width >= 768px) {\n font-size: 18px;\n }\n }\n .tablet\\:text-\\[22px\\] {\n @media (width >= 768px) {\n font-size: 22px;\n }\n }\n .tablet\\:text-\\[28px\\] {\n @media (width >= 768px) {\n font-size: 28px;\n }\n }\n .tablet\\:text-\\[32px\\] {\n @media (width >= 768px) {\n font-size: 32px;\n }\n }\n .tablet\\:text-\\[36px\\] {\n @media (width >= 768px) {\n font-size: 36px;\n }\n }\n .desktop\\:mt-\\[0px\\] {\n @media (width >= 1024px) {\n margin-top: 0px;\n }\n }\n .desktop\\:mt-\\[16px\\] {\n @media (width >= 1024px) {\n margin-top: 16px;\n }\n }\n}\n@property --tw-border-style {\n syntax: \"*\";\n inherits: false;\n initial-value: solid;\n}\n@property --tw-leading {\n syntax: \"*\";\n inherits: false;\n}\n@property --tw-font-weight {\n syntax: \"*\";\n inherits: false;\n}\n@layer properties {\n @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {\n *, ::before, ::after, ::backdrop {\n --tw-border-style: solid;\n --tw-leading: initial;\n --tw-font-weight: initial;\n }\n }\n}\n"],"mappings":";AACA;AACA;AACA;AACE;AAAA,EAAO;AACL;AAAA,MAAa,aAAa;AAAA,MAAE,SAAS;AAAA,MAAE,UAAU;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,iBAAW;AACb;AACF;AACA,GAAC;AACC,WAAO,CAAC,MAAM,CAAC,EAAE;AACf,iBAAW;AACb;AACF;AACA,GAAC;AACC,WAAO,CAAC,MAAM,CAAC,EAAE;AACf,iBAAW;AACb;AACF;AACA,GAAC;AACC,WAAO,CAAC,MAAM,CAAC,EAAE;AACf,iBAAW;AACb;AACF;AACA,GAAC;AACC,WAAO,CAAC,MAAM,CAAC,EAAE;AACf,iBAAW;AACb;AACF;AACA,GAAC;AACC,WAAO,CAAC,MAAM,CAAC,EAAE;AACf,iBAAW;AACb;AACF;AACA,GAAC;AACC,WAAO,CAAC,MAAM,CAAC,EAAE;AACf,kBAAY;AACd;AACF;AACA,GAAC;AACC,WAAO,CAAC,MAAM,CAAC,EAAE;AACf,kBAAY;AACd;AACF;AACF;AACA,UAAU,kBAAkB,EAC1B,MAAM,EAAE,GAAG,EACX,QAAQ,EAAE,KAAK,EACf,aAAa,EAAE,KAAK;AAEtB,UAAU,aAAa,EACrB,MAAM,EAAE,GAAG,EACX,QAAQ,EAAE,KAAK;AAEjB,UAAU,iBAAiB,EACzB,MAAM,EAAE,GAAG,EACX,QAAQ,EAAE,KAAK;AAEjB;AACE,YAAU,CAAC,CAAC,eAAe,EAAE,MAAM,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,UAAU,GAAG,CAAC,CAAC,WAAW,EAAE,QAAQ,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,KAAK,IAAI,EAAE,EAAE;AAC7H;AAAA,IAAG;AAAA,IAAU;AAAA,IAAS;AACpB,yBAAmB;AACnB,oBAAc;AACd,wBAAkB;AACpB;AACF;AACF;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../src/styles.css"],"sourcesContent":["/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */\n@layer properties;\n@layer theme, base, components, utilities;\n@layer theme {\n :root, :host {\n --font-sans: ui-sans-serif, system-ui, sans-serif, \"Apple Color Emoji\",\n \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";\n --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\",\n \"Courier New\", monospace;\n --color-gray-200: #e2e2e2;\n --color-gray-300: #cdcdcd;\n --color-gray-400: #bbbbbb;\n --color-gray-500: #9c9c9c;\n --color-gray-600: #808080;\n --color-gray-800: #404040;\n --spacing: 0.25rem;\n --font-weight-bold: 700;\n --default-font-family: var(--font-sans);\n --default-mono-font-family: var(--font-mono);\n --color-brand-heavy: #c40d23;\n --color-brand-dark: #9b051e;\n --color-supportive-faded: #f0d5be;\n --color-supportive-pastel: #e3be98;\n --color-gray-white: #ffffff;\n --color-gray-black: #000000;\n --font-title: \"merriweather\", \"source-han-serif-tc\", serif;\n --font-default: \"Roboto Slab\", \"Noto Sans TC\", sans-serif, \"Tauhu Oo\";\n }\n}\n@layer base {\n *, ::after, ::before, ::backdrop, ::file-selector-button {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n border: 0 solid;\n }\n html, :host {\n line-height: 1.5;\n -webkit-text-size-adjust: 100%;\n -moz-tab-size: 4;\n -o-tab-size: 4;\n tab-size: 4;\n font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\");\n font-feature-settings: var(--default-font-feature-settings, normal);\n font-variation-settings: var(--default-font-variation-settings, normal);\n -webkit-tap-highlight-color: transparent;\n }\n hr {\n height: 0;\n color: inherit;\n border-top-width: 1px;\n }\n abbr:where([title]) {\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n }\n h1, h2, h3, h4, h5, h6 {\n font-size: inherit;\n font-weight: inherit;\n }\n a {\n color: inherit;\n -webkit-text-decoration: inherit;\n text-decoration: inherit;\n }\n b, strong {\n font-weight: bolder;\n }\n code, kbd, samp, pre {\n font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace);\n font-feature-settings: var(--default-mono-font-feature-settings, normal);\n font-variation-settings: var(--default-mono-font-variation-settings, normal);\n font-size: 1em;\n }\n small {\n font-size: 80%;\n }\n sub, sup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n }\n sub {\n bottom: -0.25em;\n }\n sup {\n top: -0.5em;\n }\n table {\n text-indent: 0;\n border-color: inherit;\n border-collapse: collapse;\n }\n :-moz-focusring {\n outline: auto;\n }\n progress {\n vertical-align: baseline;\n }\n summary {\n display: list-item;\n }\n ol, ul, menu {\n list-style: none;\n }\n img, svg, video, canvas, audio, iframe, embed, object {\n display: block;\n vertical-align: middle;\n }\n img, video {\n max-width: 100%;\n height: auto;\n }\n button, input, select, optgroup, textarea, ::file-selector-button {\n font: inherit;\n font-feature-settings: inherit;\n font-variation-settings: inherit;\n letter-spacing: inherit;\n color: inherit;\n border-radius: 0;\n background-color: transparent;\n opacity: 1;\n }\n :where(select:is([multiple], [size])) optgroup {\n font-weight: bolder;\n }\n :where(select:is([multiple], [size])) optgroup option {\n padding-inline-start: 20px;\n }\n ::file-selector-button {\n margin-inline-end: 4px;\n }\n ::-moz-placeholder {\n opacity: 1;\n }\n ::placeholder {\n opacity: 1;\n }\n @supports (not (-webkit-appearance: -apple-pay-button)) or (contain-intrinsic-size: 1px) {\n ::-moz-placeholder {\n color: currentcolor;\n @supports (color: color-mix(in lab, red, red)) {\n color: color-mix(in oklab, currentcolor 50%, transparent);\n }\n }\n ::placeholder {\n color: currentcolor;\n @supports (color: color-mix(in lab, red, red)) {\n color: color-mix(in oklab, currentcolor 50%, transparent);\n }\n }\n }\n textarea {\n resize: vertical;\n }\n ::-webkit-search-decoration {\n -webkit-appearance: none;\n }\n ::-webkit-date-and-time-value {\n min-height: 1lh;\n text-align: inherit;\n }\n ::-webkit-datetime-edit {\n display: inline-flex;\n }\n ::-webkit-datetime-edit-fields-wrapper {\n padding: 0;\n }\n ::-webkit-datetime-edit, ::-webkit-datetime-edit-year-field, ::-webkit-datetime-edit-month-field, ::-webkit-datetime-edit-day-field, ::-webkit-datetime-edit-hour-field, ::-webkit-datetime-edit-minute-field, ::-webkit-datetime-edit-second-field, ::-webkit-datetime-edit-millisecond-field, ::-webkit-datetime-edit-meridiem-field {\n padding-block: 0;\n }\n :-moz-ui-invalid {\n box-shadow: none;\n }\n button, input:where([type=\"button\"], [type=\"reset\"], [type=\"submit\"]), ::file-selector-button {\n -webkit-appearance: button;\n -moz-appearance: button;\n appearance: button;\n }\n ::-webkit-inner-spin-button, ::-webkit-outer-spin-button {\n height: auto;\n }\n [hidden]:where(:not([hidden=\"until-found\"])) {\n display: none !important;\n }\n}\n@layer utilities {\n .absolute {\n position: absolute;\n }\n .relative {\n position: relative;\n }\n .m-0 {\n margin: calc(var(--spacing) * 0);\n }\n .mt-\\[0px\\] {\n margin-top: 0px;\n }\n .mt-\\[8px\\] {\n margin-top: 8px;\n }\n .mr-\\[4px\\] {\n margin-right: 4px;\n }\n .mr-\\[24px\\] {\n margin-right: 24px;\n }\n .ml-\\[4px\\] {\n margin-left: 4px;\n }\n .box-border {\n box-sizing: border-box;\n }\n .flex {\n display: flex;\n }\n .inline-block {\n display: inline-block;\n }\n .size-\\[18px\\] {\n width: 18px;\n height: 18px;\n }\n .size-\\[24px\\] {\n width: 24px;\n height: 24px;\n }\n .h-\\[1px\\] {\n height: 1px;\n }\n .w-full {\n width: 100%;\n }\n .shrink-0 {\n flex-shrink: 0;\n }\n .cursor-default {\n cursor: default;\n }\n .cursor-pointer {\n cursor: pointer;\n }\n .flex-col {\n flex-direction: column;\n }\n .flex-row {\n flex-direction: row;\n }\n .items-baseline {\n align-items: baseline;\n }\n .items-center {\n align-items: center;\n }\n .justify-between {\n justify-content: space-between;\n }\n .justify-center {\n justify-content: center;\n }\n .gap-\\[16px\\] {\n gap: 16px;\n }\n .overflow-x-scroll {\n overflow-x: scroll;\n }\n .rounded-\\[50\\%\\] {\n border-radius: 50%;\n }\n .border-2 {\n border-style: var(--tw-border-style);\n border-width: 2px;\n }\n .border-solid {\n --tw-border-style: solid;\n border-style: solid;\n }\n .border-gray-400 {\n border-color: var(--color-gray-400);\n }\n .border-t-gray-600 {\n border-top-color: var(--color-gray-600);\n }\n .bg-gray-300 {\n background-color: var(--color-gray-300);\n }\n .bg-gray-800 {\n background-color: var(--color-gray-800);\n }\n .\\[mask-image\\:linear-gradient\\(to_left\\,rgba\\(241\\,241\\,241\\,0\\)\\,\\#f1f1f1_48px\\)\\] {\n -webkit-mask-image: linear-gradient(to left,rgba(241,241,241,0),#f1f1f1 48px);\n mask-image: linear-gradient(to left,rgba(241,241,241,0),#f1f1f1 48px);\n }\n .py-\\[16px\\] {\n padding-block: 16px;\n }\n .font-default {\n font-family: var(--font-default);\n }\n .font-title {\n font-family: var(--font-title);\n }\n .text-\\[10px\\] {\n font-size: 10px;\n }\n .text-\\[12px\\] {\n font-size: 12px;\n }\n .text-\\[14px\\] {\n font-size: 14px;\n }\n .text-\\[16px\\] {\n font-size: 16px;\n }\n .text-\\[17px\\] {\n font-size: 17px;\n }\n .text-\\[18px\\] {\n font-size: 18px;\n }\n .text-\\[22px\\] {\n font-size: 22px;\n }\n .text-\\[24px\\] {\n font-size: 24px;\n }\n .text-\\[28px\\] {\n font-size: 28px;\n }\n .leading-\\[125\\%\\] {\n --tw-leading: 125%;\n line-height: 125%;\n }\n .leading-\\[150\\%\\] {\n --tw-leading: 150%;\n line-height: 150%;\n }\n .font-bold {\n --tw-font-weight: var(--font-weight-bold);\n font-weight: var(--font-weight-bold);\n }\n .text-brand-dark {\n color: var(--color-brand-dark);\n }\n .text-brand-heavy {\n color: var(--color-brand-heavy);\n }\n .text-gray-200 {\n color: var(--color-gray-200);\n }\n .text-gray-300 {\n color: var(--color-gray-300);\n }\n .text-gray-400 {\n color: var(--color-gray-400);\n }\n .text-gray-500 {\n color: var(--color-gray-500);\n }\n .text-gray-600 {\n color: var(--color-gray-600);\n }\n .text-gray-800 {\n color: var(--color-gray-800);\n }\n .text-gray-black {\n color: var(--color-gray-black);\n }\n .text-gray-white {\n color: var(--color-gray-white);\n }\n .text-supportive-faded {\n color: var(--color-supportive-faded);\n }\n .text-supportive-pastel {\n color: var(--color-supportive-pastel);\n }\n .opacity-0 {\n opacity: 0%;\n }\n .opacity-100 {\n opacity: 100%;\n }\n .\\[-webkit-mask-image\\:linear-gradient\\(to_left\\,rgba\\(241\\,241\\,241\\,0\\)\\,\\#f1f1f1_48px\\)\\] {\n -webkit-mask-image: linear-gradient(to left,rgba(241,241,241,0),#f1f1f1 48px);\n }\n .last\\:mr-0 {\n &:last-child {\n margin-right: calc(var(--spacing) * 0);\n }\n }\n .hover\\:text-brand-dark {\n &:hover {\n @media (hover: hover) {\n color: var(--color-brand-dark);\n }\n }\n }\n .hover\\:text-brand-heavy {\n &:hover {\n @media (hover: hover) {\n color: var(--color-brand-heavy);\n }\n }\n }\n .hover\\:text-gray-200 {\n &:hover {\n @media (hover: hover) {\n color: var(--color-gray-200);\n }\n }\n }\n .hover\\:text-gray-400 {\n &:hover {\n @media (hover: hover) {\n color: var(--color-gray-400);\n }\n }\n }\n .hover\\:text-gray-500 {\n &:hover {\n @media (hover: hover) {\n color: var(--color-gray-500);\n }\n }\n }\n .hover\\:text-gray-800 {\n &:hover {\n @media (hover: hover) {\n color: var(--color-gray-800);\n }\n }\n }\n .hover\\:text-gray-black {\n &:hover {\n @media (hover: hover) {\n color: var(--color-gray-black);\n }\n }\n }\n .hover\\:text-supportive-pastel {\n &:hover {\n @media (hover: hover) {\n color: var(--color-supportive-pastel);\n }\n }\n }\n .tablet\\:text-\\[16px\\] {\n @media (width >= 768px) {\n font-size: 16px;\n }\n }\n .tablet\\:text-\\[18px\\] {\n @media (width >= 768px) {\n font-size: 18px;\n }\n }\n .tablet\\:text-\\[22px\\] {\n @media (width >= 768px) {\n font-size: 22px;\n }\n }\n .tablet\\:text-\\[28px\\] {\n @media (width >= 768px) {\n font-size: 28px;\n }\n }\n .tablet\\:text-\\[32px\\] {\n @media (width >= 768px) {\n font-size: 32px;\n }\n }\n .tablet\\:text-\\[36px\\] {\n @media (width >= 768px) {\n font-size: 36px;\n }\n }\n .desktop\\:mt-\\[0px\\] {\n @media (width >= 1024px) {\n margin-top: 0px;\n }\n }\n .desktop\\:mt-\\[16px\\] {\n @media (width >= 1024px) {\n margin-top: 16px;\n }\n }\n}\n@property --tw-border-style {\n syntax: \"*\";\n inherits: false;\n initial-value: solid;\n}\n@property --tw-leading {\n syntax: \"*\";\n inherits: false;\n}\n@property --tw-font-weight {\n syntax: \"*\";\n inherits: false;\n}\n@layer properties {\n @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {\n *, ::before, ::after, ::backdrop {\n --tw-border-style: solid;\n --tw-leading: initial;\n --tw-font-weight: initial;\n }\n }\n}\n"],"mappings":";AACA;AACA;AACA;AACE;AAAA,EAAO;AACL;AAAA,MAAa,aAAa;AAAA,MAAE,SAAS;AAAA,MAAE,UAAU;AAAA,MAAE,mBAAmB;AAAA,MACpE,gBAAgB;AAAA,MAAE,iBAAiB;AAAA,MAAE;AACvC;AAAA,MAAa,YAAY;AAAA,MAAE,cAAc;AAAA,MAAE,KAAK;AAAA,MAAE,MAAM;AAAA,MAAE,QAAQ;AAAA,MAAE,iBAAiB;AAAA,MACnF,aAAa;AAAA,MAAE;AACjB,sBAAkB;AAClB,sBAAkB;AAClB,sBAAkB;AAClB,sBAAkB;AAClB,sBAAkB;AAClB,sBAAkB;AAClB,eAAW;AACX,wBAAoB;AACpB,2BAAuB,IAAI;AAC3B,gCAA4B,IAAI;AAChC,yBAAqB;AACrB,wBAAoB;AACpB,8BAA0B;AAC1B,+BAA2B;AAC3B,wBAAoB;AACpB,wBAAoB;AACpB;AAAA,MAAc,cAAc;AAAA,MAAE,qBAAqB;AAAA,MAAE;AACrD;AAAA,MAAgB,aAAa;AAAA,MAAE,cAAc;AAAA,MAAE,UAAU;AAAA,MAAE;AAC7D;A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KAAK,OAAO,CAAC,cAAgB,CAAC,aAAe,CAAC;AAAA,EAAiB;AACrE,wBAAoB;AACjB,qBAAiB;AACZ,gBAAY;AACtB;AACA;AAAA,EAA6B;AAC3B,YAAQ;AACV;AACA,GAAC,OAAO,OAAO,KAAK,CAAC;AACnB,aAAS;AACX;AACF;AACA;AACE,GAAC;AACC,cAAU;AACZ;AACA,GAAC;AACC,cAAU;AACZ;AACA,GAAC;AACC,YAAQ,KAAK,IAAI,WAAW,EAAE;AAChC;AACA,GAAC;AACC,gBAAY;AACd;AACA,GAAC;AACC,gBAAY;AACd;AACA,GAAC;AACC,kBAAc;AAChB;AACA,GAAC;AACC,kBAAc;AAChB;AACA,GAAC;AACC,iBAAa;AACf;AACA,GAAC;AACC,gBAAY;AACd;AACA,GAAC;AACC,aAAS;AACX;AACA,GAAC;AACC,aAAS;AACX;AACA,GAAC;AACC,WAAO;AACP,YAAQ;AACV;AACA,GAAC;AACC,WAAO;AACP,YAAQ;AACV;AACA,GAAC;AACC,YAAQ;AACV;AACA,GAAC;AACC,WAAO;AACT;AACA,GAAC;AACC,iBAAa;AACf;AACA,GAAC;AACC,YAAQ;AACV;AACA,GAAC;AACC,YAAQ;AACV;AACA,GAAC;AACC,oBAAgB;AAClB;AACA,GAAC;AACC,oBAAgB;AAClB;AACA,GAAC;AACC,iBAAa;AACf;AACA,GAAC;AACC,iBAAa;AACf;AACA,GAAC;AACC,qBAAiB;AACnB;AACA,GAAC;AACC,qBAAiB;AACnB;AACA,GAAC;AACC,SAAK;AACP;AACA,GAAC;AACC,gBAAY;AACd;AACA,GAAC;AACC,mBAAe;AACjB;AACA,GAAC;AACC,kBAAc,IAAI;AAClB,kBAAc;AAChB;AACA,GAAC;AACC,uBAAmB;AACnB,kBAAc;AAChB;AACA,GAAC;AACC,kBAAc,IAAI;AACpB;AACA,GAAC;AACC,sBAAkB,IAAI;AACxB;AACA,GAAC;AACC,sBAAkB,IAAI;AACxB;AACA,GAAC;AACC,sBAAkB,IAA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GAAC;AACC,WAAO,CAAC,MAAM,CAAC,EAAE;AACf,kBAAY;AACd;AACF;AACA,GAAC;AACC,WAAO,CAAC,MAAM,CAAC,EAAE;AACf,kBAAY;AACd;AACF;AACF;AACA,UAAU,kBAAkB,EAC1B,MAAM,EAAE,GAAG,EACX,QAAQ,EAAE,KAAK,EACf,aAAa,EAAE,KAAK;AAEtB,UAAU,aAAa,EACrB,MAAM,EAAE,GAAG,EACX,QAAQ,EAAE,KAAK;AAEjB,UAAU,iBAAiB,EACzB,MAAM,EAAE,GAAG,EACX,QAAQ,EAAE,KAAK;AAEjB;AACE,YAAU,CAAC,CAAC,eAAe,EAAE,MAAM,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,UAAU,GAAG,CAAC,CAAC,WAAW,EAAE,QAAQ,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,KAAK,IAAI,EAAE,EAAE;AAC7H;AAAA,IAAG;AAAA,IAAU;AAAA,IAAS;AACpB,yBAAmB;AACnB,oBAAc;AACd,wBAAkB;AACpB;AACF;AACF;","names":[]}
|
|
@@ -121,6 +121,59 @@ var THEME = {
|
|
|
121
121
|
transparent: "transparent",
|
|
122
122
|
index: "index"
|
|
123
123
|
};
|
|
124
|
+
|
|
125
|
+
// src/button/components/text-button/theme.ts
|
|
126
|
+
var getDisabledContainerTheme = (theme) => {
|
|
127
|
+
return [
|
|
128
|
+
// default theme
|
|
129
|
+
"text-gray-400 hover:text-gray-400",
|
|
130
|
+
// photography & transparent theme
|
|
131
|
+
{
|
|
132
|
+
"text-gray-500 hover:text-gray-500": theme === THEME.photography || theme === THEME.transparent
|
|
133
|
+
}
|
|
134
|
+
];
|
|
135
|
+
};
|
|
136
|
+
var getActiveContainerTheme = (theme, style) => {
|
|
137
|
+
return [
|
|
138
|
+
// default theme
|
|
139
|
+
{
|
|
140
|
+
"text-gray-800 hover:text-gray-800": style === 2 /* LIGHT */,
|
|
141
|
+
"text-brand-heavy hover:text-brand-heavy": style === 1 /* DARK */,
|
|
142
|
+
"text-brand-dark hover:text-brand-dark": style === 0 /* BRAND */
|
|
143
|
+
},
|
|
144
|
+
// photography theme
|
|
145
|
+
{
|
|
146
|
+
"text-gray-400 hover:text-gray-400": theme === THEME.photography && style === 2 /* LIGHT */,
|
|
147
|
+
"text-supportive-pastel hover:text-supportive-pastel": theme === THEME.photography && style !== 2 /* LIGHT */
|
|
148
|
+
},
|
|
149
|
+
// transparent theme
|
|
150
|
+
{
|
|
151
|
+
"text-gray-black hover:text-gray-black": theme === THEME.transparent && style === 2 /* LIGHT */,
|
|
152
|
+
"text-gray-200 hover:text-gray-200": theme === THEME.transparent && style !== 2 /* LIGHT */
|
|
153
|
+
}
|
|
154
|
+
];
|
|
155
|
+
};
|
|
156
|
+
var getContainerTheme = (theme, style) => {
|
|
157
|
+
return [
|
|
158
|
+
// default theme
|
|
159
|
+
{
|
|
160
|
+
"text-gray-600 hover:text-gray-800": style === 2 /* LIGHT */,
|
|
161
|
+
"text-gray-800 hover:text-brand-heavy": style === 1 /* DARK */,
|
|
162
|
+
"text-brand-heavy hover:text-brand-dark": style === 0 /* BRAND */
|
|
163
|
+
},
|
|
164
|
+
// photography
|
|
165
|
+
{
|
|
166
|
+
"text-gray-300 hover:text-gray-400": theme === THEME.photography && style === 2 /* LIGHT */,
|
|
167
|
+
"text-gray-white hover:text-supportive-pastel": theme === THEME.photography && style === 1 /* DARK */,
|
|
168
|
+
"text-supportive-faded hover:text-supportive-pastel": theme === THEME.photography && style === 0 /* BRAND */
|
|
169
|
+
},
|
|
170
|
+
// transparent theme
|
|
171
|
+
{
|
|
172
|
+
"text-gray-800 hover:text-gray-black": theme === THEME.transparent && style === 2 /* LIGHT */,
|
|
173
|
+
"text-gray-white hover:text-gray-200": theme === THEME.transparent && style !== 2 /* LIGHT */
|
|
174
|
+
}
|
|
175
|
+
];
|
|
176
|
+
};
|
|
124
177
|
var TextButton = ({
|
|
125
178
|
text,
|
|
126
179
|
leftIconComponent,
|
|
@@ -134,9 +187,13 @@ var TextButton = ({
|
|
|
134
187
|
className = ""
|
|
135
188
|
}) => {
|
|
136
189
|
const TextJSX = React.useMemo(
|
|
137
|
-
() => size === 0 /* S */ ? /* @__PURE__ */ jsxRuntime.jsx(P2, { text }) : /* @__PURE__ */ jsxRuntime.jsx(P1, { text }),
|
|
190
|
+
() => size === 0 /* S */ ? /* @__PURE__ */ jsxRuntime.jsx(P2, { text, weight: P2.Weight.bold }) : /* @__PURE__ */ jsxRuntime.jsx(P1, { text, weight: P1.Weight.bold }),
|
|
138
191
|
[size, text]
|
|
139
192
|
);
|
|
193
|
+
const themeClass = React.useMemo(() => {
|
|
194
|
+
const themeFunc = disabled ? getDisabledContainerTheme : active ? getActiveContainerTheme : getContainerTheme;
|
|
195
|
+
return themeFunc(theme, style);
|
|
196
|
+
}, [disabled, active, theme, style]);
|
|
140
197
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
141
198
|
"div",
|
|
142
199
|
{
|
|
@@ -146,18 +203,7 @@ var TextButton = ({
|
|
|
146
203
|
"cursor-default": disabled,
|
|
147
204
|
"cursor-pointer": !disabled
|
|
148
205
|
},
|
|
149
|
-
|
|
150
|
-
"text-gray-500 hover:text-gray-500": disabled && (theme === THEME.photography || theme === THEME.transparent),
|
|
151
|
-
"text-gray-400 hover:text-gray-400": disabled || theme === THEME.photography && style === 2 /* LIGHT */ && !active && !disabled,
|
|
152
|
-
"text-gray-200 hover:text-supportive-pastel": theme === THEME.photography && !active && !disabled,
|
|
153
|
-
"text-gray-300 hover:text-gray-400": theme === THEME.photography && style === 2 /* LIGHT */ && active && !disabled,
|
|
154
|
-
"text-gray-white hover:text-supportive-pastel": theme === THEME.photography && style === 1 /* DARK */ && active && !disabled,
|
|
155
|
-
"text-supportive-faded hover:text-supportive-pastel": theme === THEME.photography && style === 0 /* BRAND */ && active && !disabled,
|
|
156
|
-
"text-gray-100 hover:text-gray-200": theme === THEME.transparent && !active && !disabled,
|
|
157
|
-
"text-gray-white hover:text-gray-white": theme === THEME.transparent && active && !disabled,
|
|
158
|
-
"text-gray-600 hover:text-brand-heavy": theme === THEME.normal && !active && !disabled,
|
|
159
|
-
"text-brand-heavy hover:text-brand-heavy": theme === THEME.normal && active && !disabled
|
|
160
|
-
},
|
|
206
|
+
themeClass,
|
|
161
207
|
className
|
|
162
208
|
),
|
|
163
209
|
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative flex justify-center items-center", children: [
|