@twreporter/react-typescript-components 0.1.0-beta.5 → 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/README.md +11 -1
- package/lib/button/components/text-button/index.d.mts +24 -0
- package/lib/button/components/text-button/index.d.ts +24 -0
- package/lib/button/components/text-button/index.js +202 -0
- package/lib/button/components/text-button/index.js.map +1 -0
- package/lib/button/components/text-button/index.mjs +8 -0
- package/lib/button/components/text-button/index.mjs.map +1 -0
- 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/constant.d.mts +11 -0
- package/lib/button/constant.d.ts +11 -0
- package/lib/button/constant.js +13 -0
- package/lib/button/constant.js.map +1 -0
- package/lib/button/constant.mjs +3 -0
- package/lib/button/constant.mjs.map +1 -0
- package/lib/button/enum.d.mts +11 -0
- package/lib/button/enum.d.ts +11 -0
- package/lib/button/enum.js +19 -0
- package/lib/button/enum.js.map +1 -0
- package/lib/button/enum.mjs +3 -0
- package/lib/button/enum.mjs.map +1 -0
- package/lib/button/index.d.mts +26 -0
- package/lib/button/index.d.ts +26 -0
- package/lib/button/index.js +208 -0
- package/lib/button/index.js.map +1 -0
- package/lib/button/index.mjs +9 -0
- package/lib/button/index.mjs.map +1 -0
- package/lib/button/stories/text-button.stories.d.mts +55 -0
- package/lib/button/stories/text-button.stories.d.ts +55 -0
- package/lib/button/stories/text-button.stories.js +252 -0
- package/lib/button/stories/text-button.stories.js.map +1 -0
- package/lib/button/stories/text-button.stories.mjs +35 -0
- package/lib/button/stories/text-button.stories.mjs.map +1 -0
- package/lib/{chunk-3B7LTZRJ.mjs → chunk-6DXA3EX7.mjs} +8 -6
- package/lib/chunk-6DXA3EX7.mjs.map +1 -0
- package/lib/chunk-7NJDHQ2X.mjs +56 -0
- package/lib/chunk-7NJDHQ2X.mjs.map +1 -0
- package/lib/chunk-ELECTE3D.mjs +8 -0
- package/lib/chunk-ELECTE3D.mjs.map +1 -0
- package/lib/chunk-FF422IYY.mjs +38 -0
- package/lib/chunk-FF422IYY.mjs.map +1 -0
- package/lib/chunk-FVKIUNIP.mjs +58 -0
- package/lib/chunk-FVKIUNIP.mjs.map +1 -0
- package/lib/chunk-GQWO45DN.mjs +32 -0
- package/lib/chunk-GQWO45DN.mjs.map +1 -0
- package/lib/chunk-JB4TYHDE.mjs +11 -0
- package/lib/chunk-JB4TYHDE.mjs.map +1 -0
- package/lib/chunk-JFT6JILC.mjs +12 -0
- package/lib/chunk-JFT6JILC.mjs.map +1 -0
- package/lib/chunk-QOLETTSG.mjs +28 -0
- package/lib/chunk-QOLETTSG.mjs.map +1 -0
- package/lib/chunk-U22UKMAJ.mjs +84 -0
- package/lib/chunk-U22UKMAJ.mjs.map +1 -0
- package/lib/chunk-URJXIWFX.mjs +16 -0
- package/lib/chunk-URJXIWFX.mjs.map +1 -0
- package/lib/chunk-X2UWIBNH.mjs +16 -0
- package/lib/chunk-X2UWIBNH.mjs.map +1 -0
- package/lib/chunk-XO7SDD7W.mjs +17 -0
- package/lib/chunk-XO7SDD7W.mjs.map +1 -0
- package/lib/chunk-ZALXWB2J.mjs +27 -0
- package/lib/chunk-ZALXWB2J.mjs.map +1 -0
- package/lib/customized-link/external-link.d.mts +7 -0
- package/lib/customized-link/external-link.d.ts +7 -0
- package/lib/customized-link/external-link.js +18 -0
- package/lib/customized-link/external-link.js.map +1 -0
- package/lib/customized-link/external-link.mjs +3 -0
- package/lib/customized-link/external-link.mjs.map +1 -0
- package/lib/customized-link/index.d.mts +11 -0
- package/lib/customized-link/index.d.ts +11 -0
- package/lib/customized-link/index.js +42 -0
- package/lib/customized-link/index.js.map +1 -0
- package/lib/customized-link/index.mjs +5 -0
- package/lib/customized-link/index.mjs.map +1 -0
- package/lib/customized-link/internal-link.d.mts +7 -0
- package/lib/customized-link/internal-link.d.ts +7 -0
- package/lib/customized-link/internal-link.js +22 -0
- package/lib/customized-link/internal-link.js.map +1 -0
- package/lib/customized-link/internal-link.mjs +3 -0
- package/lib/customized-link/internal-link.mjs.map +1 -0
- package/lib/customized-link/type.d.mts +9 -0
- package/lib/customized-link/type.d.ts +9 -0
- package/lib/customized-link/type.js +4 -0
- package/lib/customized-link/type.js.map +1 -0
- package/lib/customized-link/type.mjs +3 -0
- package/lib/customized-link/type.mjs.map +1 -0
- package/lib/storybook/utils/get-enum-arg.d.mts +19 -0
- package/lib/storybook/utils/get-enum-arg.d.ts +19 -0
- package/lib/storybook/utils/get-enum-arg.js +31 -0
- package/lib/storybook/utils/get-enum-arg.js.map +1 -0
- package/lib/storybook/utils/get-enum-arg.mjs +3 -0
- package/lib/storybook/utils/get-enum-arg.mjs.map +1 -0
- package/lib/styles.css +199 -2
- package/lib/styles.css.map +1 -1
- package/lib/text/heading.d.mts +8 -8
- package/lib/text/heading.d.ts +8 -8
- package/lib/text/paragraph.d.mts +6 -6
- package/lib/text/paragraph.d.ts +6 -6
- package/lib/text/stories/heading.stories.d.mts +35 -0
- package/lib/text/stories/heading.stories.d.ts +35 -0
- package/lib/text/stories/heading.stories.js +131 -0
- package/lib/text/stories/heading.stories.js.map +1 -0
- package/lib/text/stories/heading.stories.mjs +50 -0
- package/lib/text/stories/heading.stories.mjs.map +1 -0
- package/lib/text/stories/paragraph.stories.d.mts +33 -0
- package/lib/text/stories/paragraph.stories.d.ts +33 -0
- package/lib/text/stories/paragraph.stories.js +108 -0
- package/lib/text/stories/paragraph.stories.js.map +1 -0
- package/lib/text/stories/paragraph.stories.mjs +40 -0
- package/lib/text/stories/paragraph.stories.mjs.map +1 -0
- package/lib/title-bar/components/title-tab/hook.d.mts +5 -0
- package/lib/title-bar/components/title-tab/hook.d.ts +5 -0
- package/lib/title-bar/components/title-tab/hook.js +34 -0
- package/lib/title-bar/components/title-tab/hook.js.map +1 -0
- package/lib/title-bar/components/title-tab/hook.mjs +3 -0
- package/lib/title-bar/components/title-tab/hook.mjs.map +1 -0
- package/lib/title-bar/components/title-tab/index.d.mts +11 -0
- package/lib/title-bar/components/title-tab/index.d.ts +11 -0
- package/lib/title-bar/components/title-tab/index.js +367 -0
- package/lib/title-bar/components/title-tab/index.js.map +1 -0
- package/lib/title-bar/components/title-tab/index.mjs +16 -0
- package/lib/title-bar/components/title-tab/index.mjs.map +1 -0
- package/lib/title-bar/components/title-tab/tab-item.d.mts +10 -0
- package/lib/title-bar/components/title-tab/tab-item.d.ts +10 -0
- package/lib/title-bar/components/title-tab/tab-item.js +250 -0
- package/lib/title-bar/components/title-tab/tab-item.js.map +1 -0
- package/lib/title-bar/components/title-tab/tab-item.mjs +13 -0
- package/lib/title-bar/components/title-tab/tab-item.mjs.map +1 -0
- package/lib/title-bar/components/title-tab/type.d.mts +8 -0
- package/lib/title-bar/components/title-tab/type.d.ts +8 -0
- package/lib/title-bar/components/title-tab/type.js +4 -0
- package/lib/title-bar/components/title-tab/type.js.map +1 -0
- package/lib/title-bar/components/title-tab/type.mjs +3 -0
- package/lib/title-bar/components/title-tab/type.mjs.map +1 -0
- package/lib/title-bar/components/title1.d.mts +10 -0
- package/lib/title-bar/components/title1.d.ts +10 -0
- package/lib/title-bar/components/title1.js +123 -0
- package/lib/title-bar/components/title1.js.map +1 -0
- package/lib/title-bar/components/title1.mjs +6 -0
- package/lib/title-bar/components/title1.mjs.map +1 -0
- package/lib/title-bar/components/title2.d.mts +3 -3
- package/lib/title-bar/components/title2.d.ts +3 -3
- package/lib/title-bar/components/title2.js +6 -4
- package/lib/title-bar/components/title2.js.map +1 -1
- package/lib/title-bar/components/title2.mjs +1 -1
- package/lib/title-bar/index.d.mts +15 -2
- package/lib/title-bar/index.d.ts +15 -2
- package/lib/title-bar/index.js +296 -8
- package/lib/title-bar/index.js.map +1 -1
- package/lib/title-bar/index.mjs +19 -3
- package/lib/title-bar/index.mjs.map +1 -1
- package/lib/title-bar/stories/title-tab.stories.d.mts +17 -0
- package/lib/title-bar/stories/title-tab.stories.d.ts +17 -0
- package/lib/title-bar/stories/title-tab.stories.js +391 -0
- package/lib/title-bar/stories/title-tab.stories.js.map +1 -0
- package/lib/title-bar/stories/title-tab.stories.mjs +39 -0
- package/lib/title-bar/stories/title-tab.stories.mjs.map +1 -0
- package/lib/title-bar/stories/title1.stories.d.mts +18 -0
- package/lib/title-bar/stories/title1.stories.d.ts +18 -0
- package/lib/title-bar/stories/title1.stories.js +155 -0
- package/lib/title-bar/stories/title1.stories.js.map +1 -0
- package/lib/title-bar/stories/title1.stories.mjs +35 -0
- package/lib/title-bar/stories/title1.stories.mjs.map +1 -0
- package/lib/title-bar/stories/title2.stories.d.mts +18 -0
- package/lib/title-bar/stories/title2.stories.d.ts +18 -0
- package/lib/title-bar/stories/title2.stories.js +304 -0
- package/lib/title-bar/stories/title2.stories.js.map +1 -0
- package/lib/title-bar/stories/title2.stories.mjs +38 -0
- package/lib/title-bar/stories/title2.stories.mjs.map +1 -0
- package/package.json +12 -5
- package/lib/chunk-3B7LTZRJ.mjs.map +0 -1
package/package.json
CHANGED
|
@@ -3,14 +3,16 @@
|
|
|
3
3
|
"description": "React components using TypeScript and Tailwind CSS",
|
|
4
4
|
"author": "twreporter <developer@twreporter.org>",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"version": "0.1.0-beta.
|
|
6
|
+
"version": "0.1.0-beta.7",
|
|
7
7
|
"type": "commonjs",
|
|
8
8
|
"scripts": {
|
|
9
9
|
"clean": "rm -rf lib",
|
|
10
10
|
"build:styles": "tailwindcss -i ./src/styles.css -o ./lib/styles.css",
|
|
11
11
|
"build:components": "tsup src/* --outDir lib",
|
|
12
12
|
"build": "yarn clean && yarn build:components && yarn build:styles",
|
|
13
|
-
"prepublishOnly": "yarn build"
|
|
13
|
+
"prepublishOnly": "yarn build",
|
|
14
|
+
"storybook": "storybook dev -p 6006",
|
|
15
|
+
"build-storybook": "storybook build"
|
|
14
16
|
},
|
|
15
17
|
"peerDependencies": {
|
|
16
18
|
"react": "^19.0.0",
|
|
@@ -21,14 +23,18 @@
|
|
|
21
23
|
"clsx": "^2.1.1"
|
|
22
24
|
},
|
|
23
25
|
"devDependencies": {
|
|
26
|
+
"@storybook/addon-docs": "^9.1.3",
|
|
27
|
+
"@storybook/react-vite": "^9.1.3",
|
|
24
28
|
"@tailwindcss/cli": "^4.1.11",
|
|
25
29
|
"@tailwindcss/postcss": "^4.1.11",
|
|
26
|
-
"@twreporter/tailwind-config": "^0.1.0-beta.
|
|
30
|
+
"@twreporter/tailwind-config": "^0.1.0-beta.5",
|
|
27
31
|
"@types/react": "^19",
|
|
28
32
|
"@types/react-dom": "^19",
|
|
29
33
|
"autoprefixer": "^10.4.21",
|
|
34
|
+
"storybook": "^9.1.3",
|
|
30
35
|
"tsup": "^8.5.0",
|
|
31
|
-
"typescript": "^5"
|
|
36
|
+
"typescript": "^5",
|
|
37
|
+
"vite": "^7.1.3"
|
|
32
38
|
},
|
|
33
39
|
"files": [
|
|
34
40
|
"lib"
|
|
@@ -37,5 +43,6 @@
|
|
|
37
43
|
"type": "git",
|
|
38
44
|
"url": "git+https://github.com/twreporter/www-public-monorepo.git",
|
|
39
45
|
"directory": "packages/react-typescript-components"
|
|
40
|
-
}
|
|
46
|
+
},
|
|
47
|
+
"gitHead": "80c85301804c9dae5cdb00017c32c8f895e672da"
|
|
41
48
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/title-bar/components/title2.tsx"],"names":[],"mappings":";;;;;AAaA,IAAM,SAAgC,CAAC;AAAA,EACrC,KAAA;AAAA,EACA,QAAA,GAAW,EAAA;AAAA,EACX,YAAA,GAAe,IAAA;AAAA,EACf,SAAA,GAAY;AACd,CAAA,KAAM;AACJ,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,IACC,YAAA,IAAgB,IAAA;AAAA,oBACjB,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-3B7LTZRJ.mjs","sourcesContent":["import clsx from 'clsx'\nimport type React from 'react'\n// components\nimport { H5 } from '../../text/heading'\nimport { P2 } from '../../text/paragraph'\n\ntype Title2Props = {\n title: string\n subtitle?: string\n renderButton?: React.ReactNode\n className?: string\n}\n\nconst Title2: React.FC<Title2Props> = ({\n title,\n subtitle = '',\n renderButton = null,\n className = '',\n}) => {\n return (\n <div className={clsx('flex justify-between flex-col', className)}>\n <div className={clsx('flex items-baseline gap-[16px]')}>\n <H5 className=\"text-gray-800\" text={title} />\n {subtitle ? <P2 className=\"text-gray-600\" text={subtitle} /> : null}\n </div>\n {renderButton || null}\n <div\n className={clsx(\n 'w-full h-[1px] bg-gray-800 mt-[8px]',\n 'desktop:mt-[16px]'\n )}\n />\n </div>\n )\n}\n\nexport default Title2\n"]}
|