@twreporter/react-typescript-components 0.1.0-beta.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (240) hide show
  1. package/README.md +74 -0
  2. package/lib/button/constants.d.mts +3 -0
  3. package/lib/button/constants.d.ts +3 -0
  4. package/lib/button/constants.js +5 -0
  5. package/lib/button/constants.mjs +3 -0
  6. package/lib/button/index.d.mts +160 -0
  7. package/lib/button/index.d.ts +160 -0
  8. package/lib/button/index.js +13 -0
  9. package/lib/button/index.mjs +7 -0
  10. package/lib/button-DFLYlJJW.js +630 -0
  11. package/lib/button-DFLYlJJW.js.map +1 -0
  12. package/lib/button-DyUYGG90.mjs +591 -0
  13. package/lib/button-DyUYGG90.mjs.map +1 -0
  14. package/lib/chunk-BxBTb9qk.js +39 -0
  15. package/lib/constants/external-links.d.mts +16 -0
  16. package/lib/constants/external-links.d.ts +16 -0
  17. package/lib/constants/external-links.js +3 -0
  18. package/lib/constants/external-links.mjs +3 -0
  19. package/lib/constants/internal-links.d.mts +51 -0
  20. package/lib/constants/internal-links.d.ts +51 -0
  21. package/lib/constants/internal-links.js +3 -0
  22. package/lib/constants/internal-links.mjs +3 -0
  23. package/lib/constants/release-branch.d.mts +3 -0
  24. package/lib/constants/release-branch.d.ts +3 -0
  25. package/lib/constants/release-branch.js +3 -0
  26. package/lib/constants/release-branch.mjs +3 -0
  27. package/lib/constants/request-origins.d.mts +68 -0
  28. package/lib/constants/request-origins.d.ts +68 -0
  29. package/lib/constants/request-origins.js +47 -0
  30. package/lib/constants/request-origins.js.map +1 -0
  31. package/lib/constants/request-origins.mjs +46 -0
  32. package/lib/constants/request-origins.mjs.map +1 -0
  33. package/lib/constants/theme.d.mts +3 -0
  34. package/lib/constants/theme.d.ts +3 -0
  35. package/lib/constants/theme.js +3 -0
  36. package/lib/constants/theme.mjs +3 -0
  37. package/lib/constants-2TRY2zTK.js +38 -0
  38. package/lib/constants-2TRY2zTK.js.map +1 -0
  39. package/lib/constants-BS3rPbaX.d.ts +17 -0
  40. package/lib/constants-BWFuBApI.mjs +14 -0
  41. package/lib/constants-BWFuBApI.mjs.map +1 -0
  42. package/lib/constants-B_NgWFML.d.ts +24 -0
  43. package/lib/constants-BmxSMOOn.js +36 -0
  44. package/lib/constants-BmxSMOOn.js.map +1 -0
  45. package/lib/constants-BqeEbkVD.mjs +20 -0
  46. package/lib/constants-BqeEbkVD.mjs.map +1 -0
  47. package/lib/constants-BswaTS-y.d.mts +29 -0
  48. package/lib/constants-Bz-ufaJ2.js +39 -0
  49. package/lib/constants-Bz-ufaJ2.js.map +1 -0
  50. package/lib/constants-CEyUZ-jZ.d.mts +11 -0
  51. package/lib/constants-CMMcn0f-.d.ts +11 -0
  52. package/lib/constants-CQscYQcW.mjs +25 -0
  53. package/lib/constants-CQscYQcW.mjs.map +1 -0
  54. package/lib/constants-DF_II8Fz.js +43 -0
  55. package/lib/constants-DF_II8Fz.js.map +1 -0
  56. package/lib/constants-DNr36wyK.d.mts +24 -0
  57. package/lib/constants-DQxcqnYL.d.ts +29 -0
  58. package/lib/constants-DRyQ6AuU.js +15 -0
  59. package/lib/constants-DRyQ6AuU.js.map +1 -0
  60. package/lib/constants-K2ObjToq.js +26 -0
  61. package/lib/constants-K2ObjToq.js.map +1 -0
  62. package/lib/constants-OhAETTiQ.d.mts +17 -0
  63. package/lib/constants-QF71lY6v.mjs +34 -0
  64. package/lib/constants-QF71lY6v.mjs.map +1 -0
  65. package/lib/constants-gCmka4Fp.d.ts +22 -0
  66. package/lib/constants-jYAxSTFp.d.mts +22 -0
  67. package/lib/constants-oTHAnh6r.mjs +18 -0
  68. package/lib/constants-oTHAnh6r.mjs.map +1 -0
  69. package/lib/constants-t0lkfgqP.mjs +9 -0
  70. package/lib/constants-t0lkfgqP.mjs.map +1 -0
  71. package/lib/context-BCesW3fW.mjs +24 -0
  72. package/lib/context-BCesW3fW.mjs.map +1 -0
  73. package/lib/context-Bvr0Qj2x.js +37 -0
  74. package/lib/context-Bvr0Qj2x.js.map +1 -0
  75. package/lib/customized-link/external-link.d.mts +3 -0
  76. package/lib/customized-link/external-link.d.ts +3 -0
  77. package/lib/customized-link/external-link.js +3 -0
  78. package/lib/customized-link/external-link.mjs +3 -0
  79. package/lib/customized-link/index.d.mts +13 -0
  80. package/lib/customized-link/index.d.ts +13 -0
  81. package/lib/customized-link/index.js +8 -0
  82. package/lib/customized-link/index.mjs +5 -0
  83. package/lib/customized-link/internal-link.d.mts +3 -0
  84. package/lib/customized-link/internal-link.d.ts +3 -0
  85. package/lib/customized-link/internal-link.js +6 -0
  86. package/lib/customized-link/internal-link.mjs +6 -0
  87. package/lib/customized-link/type.d.mts +2 -0
  88. package/lib/customized-link/type.d.ts +2 -0
  89. package/lib/customized-link/type.js +0 -0
  90. package/lib/customized-link/type.mjs +1 -0
  91. package/lib/customized-link-BkuKVCKQ.mjs +12 -0
  92. package/lib/customized-link-BkuKVCKQ.mjs.map +1 -0
  93. package/lib/customized-link-CK7Xlgdt.js +17 -0
  94. package/lib/customized-link-CK7Xlgdt.js.map +1 -0
  95. package/lib/divider/constants.d.mts +3 -0
  96. package/lib/divider/constants.d.ts +3 -0
  97. package/lib/divider/constants.js +3 -0
  98. package/lib/divider/constants.mjs +3 -0
  99. package/lib/divider/index.d.mts +15 -0
  100. package/lib/divider/index.d.ts +15 -0
  101. package/lib/divider/index.js +6 -0
  102. package/lib/divider/index.mjs +4 -0
  103. package/lib/divider-Bb3tebJO.mjs +15 -0
  104. package/lib/divider-Bb3tebJO.mjs.map +1 -0
  105. package/lib/divider-b3Shh7FV.js +29 -0
  106. package/lib/divider-b3Shh7FV.js.map +1 -0
  107. package/lib/dropdown-menu/index.d.mts +17 -0
  108. package/lib/dropdown-menu/index.d.ts +17 -0
  109. package/lib/dropdown-menu/index.js +14 -0
  110. package/lib/dropdown-menu/index.mjs +14 -0
  111. package/lib/dropdown-menu-CCtPuYyJ.js +150 -0
  112. package/lib/dropdown-menu-CCtPuYyJ.js.map +1 -0
  113. package/lib/dropdown-menu-Cil4RtSK.mjs +117 -0
  114. package/lib/dropdown-menu-Cil4RtSK.mjs.map +1 -0
  115. package/lib/external-link-2XoC1_oL.d.ts +9 -0
  116. package/lib/external-link-BUhvS4ry.d.mts +9 -0
  117. package/lib/external-link-CEDvlQYo.js +23 -0
  118. package/lib/external-link-CEDvlQYo.js.map +1 -0
  119. package/lib/external-link-Cx9S31Ye.mjs +16 -0
  120. package/lib/external-link-Cx9S31Ye.mjs.map +1 -0
  121. package/lib/external-links-2b4M_rcA.mjs +17 -0
  122. package/lib/external-links-2b4M_rcA.mjs.map +1 -0
  123. package/lib/external-links-SfJjb48j.js +23 -0
  124. package/lib/external-links-SfJjb48j.js.map +1 -0
  125. package/lib/hamburger-menu/index.d.mts +7 -0
  126. package/lib/hamburger-menu/index.d.ts +6 -0
  127. package/lib/hamburger-menu/index.js +22 -0
  128. package/lib/hamburger-menu/index.mjs +22 -0
  129. package/lib/hamburger-menu-BZ1hA7l5.mjs +472 -0
  130. package/lib/hamburger-menu-BZ1hA7l5.mjs.map +1 -0
  131. package/lib/hamburger-menu-Bd_wmcAB.js +487 -0
  132. package/lib/hamburger-menu-Bd_wmcAB.js.map +1 -0
  133. package/lib/header/index.d.mts +26 -0
  134. package/lib/header/index.d.ts +25 -0
  135. package/lib/header/index.js +465 -0
  136. package/lib/header/index.js.map +1 -0
  137. package/lib/header/index.mjs +459 -0
  138. package/lib/header/index.mjs.map +1 -0
  139. package/lib/heading-CFSkTbdH.mjs +37 -0
  140. package/lib/heading-CFSkTbdH.mjs.map +1 -0
  141. package/lib/heading-DFzj2z0V.js +75 -0
  142. package/lib/heading-DFzj2z0V.js.map +1 -0
  143. package/lib/icons/constants.d.mts +3 -0
  144. package/lib/icons/constants.d.ts +3 -0
  145. package/lib/icons/constants.js +5 -0
  146. package/lib/icons/constants.mjs +3 -0
  147. package/lib/icons/index.d.mts +43 -0
  148. package/lib/icons/index.d.ts +43 -0
  149. package/lib/icons/index.js +15 -0
  150. package/lib/icons/index.mjs +5 -0
  151. package/lib/icons-DF-7dKxN.js +128 -0
  152. package/lib/icons-DF-7dKxN.js.map +1 -0
  153. package/lib/icons-DguoV48M.mjs +60 -0
  154. package/lib/icons-DguoV48M.mjs.map +1 -0
  155. package/lib/index-BmIgLA0K.d.mts +5 -0
  156. package/lib/index-H3peA2d_.d.ts +5 -0
  157. package/lib/internal-link-CqTu3Yi5.js +2278 -0
  158. package/lib/internal-link-CqTu3Yi5.js.map +1 -0
  159. package/lib/internal-link-D8jJal8P.d.mts +9 -0
  160. package/lib/internal-link-DCSEl1jM.d.ts +9 -0
  161. package/lib/internal-link-NQb751uB.mjs +2299 -0
  162. package/lib/internal-link-NQb751uB.mjs.map +1 -0
  163. package/lib/internal-links-BF-974mA.mjs +52 -0
  164. package/lib/internal-links-BF-974mA.mjs.map +1 -0
  165. package/lib/internal-links-CBkMU8cY.js +58 -0
  166. package/lib/internal-links-CBkMU8cY.js.map +1 -0
  167. package/lib/logo/constants.d.mts +3 -0
  168. package/lib/logo/constants.d.ts +3 -0
  169. package/lib/logo/constants.js +5 -0
  170. package/lib/logo/constants.mjs +3 -0
  171. package/lib/logo/index.d.mts +42 -0
  172. package/lib/logo/index.d.ts +42 -0
  173. package/lib/logo/index.js +8 -0
  174. package/lib/logo/index.mjs +5 -0
  175. package/lib/logo-CC5oU9Qb.mjs +64 -0
  176. package/lib/logo-CC5oU9Qb.mjs.map +1 -0
  177. package/lib/logo-D4M-1sGD.js +83 -0
  178. package/lib/logo-D4M-1sGD.js.map +1 -0
  179. package/lib/paragraph-BWXQNQtX.mjs +30 -0
  180. package/lib/paragraph-BWXQNQtX.mjs.map +1 -0
  181. package/lib/paragraph-CJvb0_cM.js +56 -0
  182. package/lib/paragraph-CJvb0_cM.js.map +1 -0
  183. package/lib/release-branch-CRZV4Ivz.js +18 -0
  184. package/lib/release-branch-CRZV4Ivz.js.map +1 -0
  185. package/lib/release-branch-CsBbhuYE.d.ts +14 -0
  186. package/lib/release-branch-DNCD1uH_.mjs +12 -0
  187. package/lib/release-branch-DNCD1uH_.mjs.map +1 -0
  188. package/lib/release-branch-DZwlCiWD.d.mts +14 -0
  189. package/lib/styles.css +1599 -0
  190. package/lib/tab-bar/constants.d.mts +16 -0
  191. package/lib/tab-bar/constants.d.ts +16 -0
  192. package/lib/tab-bar/constants.js +7 -0
  193. package/lib/tab-bar/constants.mjs +7 -0
  194. package/lib/tab-bar/index.d.mts +10 -0
  195. package/lib/tab-bar/index.d.ts +9 -0
  196. package/lib/tab-bar/index.js +18 -0
  197. package/lib/tab-bar/index.mjs +18 -0
  198. package/lib/tab-bar/theme.d.mts +10 -0
  199. package/lib/tab-bar/theme.d.ts +10 -0
  200. package/lib/tab-bar/theme.js +4 -0
  201. package/lib/tab-bar/theme.mjs +4 -0
  202. package/lib/tab-bar-CBL2tDXk.mjs +62 -0
  203. package/lib/tab-bar-CBL2tDXk.mjs.map +1 -0
  204. package/lib/tab-bar-ZRrpziiN.js +78 -0
  205. package/lib/tab-bar-ZRrpziiN.js.map +1 -0
  206. package/lib/text/constants.d.mts +3 -0
  207. package/lib/text/constants.d.ts +3 -0
  208. package/lib/text/constants.js +4 -0
  209. package/lib/text/constants.mjs +3 -0
  210. package/lib/text/heading.d.mts +31 -0
  211. package/lib/text/heading.d.ts +31 -0
  212. package/lib/text/heading.js +9 -0
  213. package/lib/text/heading.mjs +4 -0
  214. package/lib/text/paragraph.d.mts +25 -0
  215. package/lib/text/paragraph.d.ts +25 -0
  216. package/lib/text/paragraph.js +7 -0
  217. package/lib/text/paragraph.mjs +4 -0
  218. package/lib/theme-BDGfJ8n-.d.ts +13 -0
  219. package/lib/theme-BErS2Qs6.mjs +13 -0
  220. package/lib/theme-BErS2Qs6.mjs.map +1 -0
  221. package/lib/theme-BG6yZVj-.mjs +11 -0
  222. package/lib/theme-BG6yZVj-.mjs.map +1 -0
  223. package/lib/theme-BPB1kPtQ.js +18 -0
  224. package/lib/theme-BPB1kPtQ.js.map +1 -0
  225. package/lib/theme-ClamfAy8.d.mts +13 -0
  226. package/lib/theme-DDBlIbeS.js +17 -0
  227. package/lib/theme-DDBlIbeS.js.map +1 -0
  228. package/lib/title-bar/index.d.mts +58 -0
  229. package/lib/title-bar/index.d.ts +58 -0
  230. package/lib/title-bar/index.js +153 -0
  231. package/lib/title-bar/index.js.map +1 -0
  232. package/lib/title-bar/index.mjs +145 -0
  233. package/lib/title-bar/index.mjs.map +1 -0
  234. package/lib/type-C4hJK9H9.d.ts +11 -0
  235. package/lib/type-FR-fOZvz.d.mts +11 -0
  236. package/lib/types/index.d.mts +2 -0
  237. package/lib/types/index.d.ts +2 -0
  238. package/lib/types/index.js +0 -0
  239. package/lib/types/index.mjs +1 -0
  240. package/package.json +53 -0
package/README.md ADDED
@@ -0,0 +1,74 @@
1
+ # @twreporter/react-typescript-components
2
+
3
+ React components built with TypeScript and Tailwind CSS.
4
+
5
+ ## Roadmap
6
+
7
+ - [X] add storybook
8
+ - [ ] add test
9
+
10
+ ## Installation
11
+
12
+ ```bash
13
+ yarn add @twreporter/react-typescript-components
14
+ # or
15
+ npm install @twreporter/react-typescript-components
16
+ ```
17
+
18
+ ## Peer Dependencies
19
+
20
+ Make sure your project has the following peer dependencies installed:
21
+
22
+ - react ^19.0.0
23
+ - react-dom ^19.0.0
24
+ - tailwindcss ^4.1.11
25
+
26
+ ## Usage
27
+
28
+ ```tsx
29
+ import { Title2 } from '@twreporter/react-typescript-components/lib/title-bar'
30
+
31
+ function App() {
32
+ return (
33
+ <Title2 title="Title" subtitle="Subtitle" />
34
+ )
35
+ }
36
+ ```
37
+
38
+ ## Development & Build
39
+
40
+ ### Storybook
41
+
42
+ Run storybook on localhost
43
+
44
+ ```bash
45
+ yarn storybook
46
+ ```
47
+
48
+ ### Build
49
+
50
+ ```bash
51
+ yarn build
52
+ ```
53
+
54
+ The output files will be generated in the `lib/` directory.
55
+
56
+ ### Build tool change: tsup → tsdown
57
+
58
+ We replaced tsup with tsdown for building this package due to intermittent memory crashes when generating type declarations with tsup (ERR_WORKER_OUT_OF_MEMORY). See: https://github.com/egoist/tsup/issues/920
59
+
60
+ What changed
61
+
62
+ - Components are built with tsdown (see `tsdown.config.ts`).
63
+ - Scripts:
64
+ - `yarn build:components` runs tsdown.
65
+ - `yarn build` cleans, builds components, then builds Tailwind CSS to `lib/styles.css`.
66
+
67
+ Impact
68
+
69
+ - No breaking changes for consumers: we still ship ESM and CJS outputs in `lib/` with bundled `.d.ts` and sourcemaps.
70
+ - For contributors: use `yarn build` or `yarn build:components`; tsup is no longer used.
71
+
72
+ ## License
73
+
74
+ MIT
@@ -0,0 +1,3 @@
1
+ import "../index-BmIgLA0K.mjs";
2
+ import { SIZE, STYLE, Size, Style, TYPE, Type } from "../constants-jYAxSTFp.mjs";
3
+ export { SIZE, STYLE, Size, Style, TYPE, Type };
@@ -0,0 +1,3 @@
1
+ import "../index-H3peA2d_.js";
2
+ import { SIZE, STYLE, Size, Style, TYPE, Type } from "../constants-gCmka4Fp.js";
3
+ export { SIZE, STYLE, Size, Style, TYPE, Type };
@@ -0,0 +1,5 @@
1
+ const require_constants = require('../constants-BmxSMOOn.js');
2
+
3
+ exports.SIZE = require_constants.SIZE;
4
+ exports.STYLE = require_constants.STYLE;
5
+ exports.TYPE = require_constants.TYPE;
@@ -0,0 +1,3 @@
1
+ import { SIZE, STYLE, TYPE } from "../constants-oTHAnh6r.mjs";
2
+
3
+ export { SIZE, STYLE, TYPE };
@@ -0,0 +1,160 @@
1
+ import "../index-BmIgLA0K.mjs";
2
+ import { SIZE, STYLE, Size, Style, TYPE, Type } from "../constants-jYAxSTFp.mjs";
3
+ import { THEME, Theme } from "../theme-ClamfAy8.mjs";
4
+ import { WEIGHT, Weight } from "../constants-OhAETTiQ.mjs";
5
+ import * as react0 from "react";
6
+ import React$1, { FC, ReactElement } from "react";
7
+
8
+ //#region src/button/components/text-button/index.d.ts
9
+ type TextButtonProps = {
10
+ text: string;
11
+ leftIconComponent?: ReactElement;
12
+ rightIconComponent?: ReactElement;
13
+ size?: Size;
14
+ style?: Style;
15
+ theme?: Theme;
16
+ active?: boolean;
17
+ disabled?: boolean;
18
+ loading?: boolean;
19
+ className?: string;
20
+ };
21
+ declare const TextButton: FC<TextButtonProps> & {
22
+ Size: typeof SIZE;
23
+ Style: typeof STYLE;
24
+ Theme: typeof THEME;
25
+ };
26
+ //#endregion
27
+ //#region src/button/components/icon-button/index.d.ts
28
+ type IconButtonProps = {
29
+ iconComponent: React$1.ReactElement;
30
+ theme?: Theme;
31
+ type?: Type;
32
+ disabled?: boolean;
33
+ active?: boolean;
34
+ className?: string;
35
+ onClick?: (e: React$1.MouseEvent<HTMLButtonElement>) => void;
36
+ };
37
+ declare const IconButton: React$1.FC<IconButtonProps> & {
38
+ Theme: typeof THEME;
39
+ Type: typeof TYPE;
40
+ };
41
+ //#endregion
42
+ //#region src/button/components/menu-button/index.d.ts
43
+ type MenuButtonProps = {
44
+ text: string;
45
+ color: string;
46
+ fontWeight: Weight;
47
+ className?: string;
48
+ p1ClassName?: string;
49
+ };
50
+ declare const MenuButton: React$1.FC<MenuButtonProps> & {
51
+ FontWeight: typeof WEIGHT;
52
+ };
53
+ //#endregion
54
+ //#region src/button/components/pill-button/index.d.ts
55
+ type PillButtonProps = {
56
+ text?: string;
57
+ leftIconComponent?: React.ReactElement;
58
+ rightIconComponent?: React.ReactElement;
59
+ size?: Size;
60
+ theme?: Theme;
61
+ type?: Type;
62
+ style?: Style;
63
+ disabled?: boolean;
64
+ loading?: boolean;
65
+ className?: string;
66
+ };
67
+ declare const PillButton: FC<PillButtonProps> & {
68
+ Theme: typeof THEME;
69
+ Type: typeof TYPE;
70
+ Size: typeof SIZE;
71
+ Style: typeof STYLE;
72
+ };
73
+ //#endregion
74
+ //#region src/button/components/icon-with-text-button/index.d.ts
75
+ type IconWithTextButtonProps = {
76
+ text?: string;
77
+ iconComponent: React.ReactNode;
78
+ theme?: Theme;
79
+ disabled?: boolean;
80
+ active?: boolean;
81
+ hideText?: boolean;
82
+ className?: string;
83
+ onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
84
+ };
85
+ declare const IconWithTextButton: FC<IconWithTextButtonProps> & {
86
+ Theme: typeof THEME;
87
+ };
88
+ //#endregion
89
+ //#region src/button/index.d.ts
90
+ declare const _default: {
91
+ TextButton: react0.FC<{
92
+ text: string;
93
+ leftIconComponent?: react0.ReactElement;
94
+ rightIconComponent?: react0.ReactElement;
95
+ size?: Size;
96
+ style?: Style;
97
+ theme?: Theme;
98
+ active?: boolean;
99
+ disabled?: boolean;
100
+ loading?: boolean;
101
+ className?: string;
102
+ }> & {
103
+ Size: typeof SIZE;
104
+ Style: typeof STYLE;
105
+ Theme: typeof THEME;
106
+ };
107
+ IconButton: react0.FC<{
108
+ iconComponent: React.ReactElement;
109
+ theme?: Theme;
110
+ type?: Type;
111
+ disabled?: boolean;
112
+ active?: boolean;
113
+ className?: string;
114
+ onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
115
+ }> & {
116
+ Theme: typeof THEME;
117
+ Type: typeof TYPE;
118
+ };
119
+ MenuButton: react0.FC<{
120
+ text: string;
121
+ color: string;
122
+ fontWeight: Weight;
123
+ className?: string;
124
+ p1ClassName?: string;
125
+ }> & {
126
+ FontWeight: typeof WEIGHT;
127
+ };
128
+ PillButton: react0.FC<{
129
+ text?: string;
130
+ leftIconComponent?: React.ReactElement;
131
+ rightIconComponent?: React.ReactElement;
132
+ size?: Size;
133
+ theme?: Theme;
134
+ type?: Type;
135
+ style?: Style;
136
+ disabled?: boolean;
137
+ loading?: boolean;
138
+ className?: string;
139
+ }> & {
140
+ Theme: typeof THEME;
141
+ Type: typeof TYPE;
142
+ Size: typeof SIZE;
143
+ Style: typeof STYLE;
144
+ };
145
+ IconWithTextButton: react0.FC<{
146
+ text?: string;
147
+ iconComponent: React.ReactNode;
148
+ theme?: Theme;
149
+ disabled?: boolean;
150
+ active?: boolean;
151
+ hideText?: boolean;
152
+ className?: string;
153
+ onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
154
+ }> & {
155
+ Theme: typeof THEME;
156
+ };
157
+ };
158
+ //#endregion
159
+ export { IconButton, IconWithTextButton, MenuButton, PillButton, TextButton, _default as default };
160
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1,160 @@
1
+ import "../index-H3peA2d_.js";
2
+ import { SIZE, STYLE, Size, Style, TYPE, Type } from "../constants-gCmka4Fp.js";
3
+ import { THEME, Theme } from "../theme-BDGfJ8n-.js";
4
+ import { WEIGHT, Weight } from "../constants-BS3rPbaX.js";
5
+ import * as react0 from "react";
6
+ import React$1, { FC, ReactElement } from "react";
7
+
8
+ //#region src/button/components/text-button/index.d.ts
9
+ type TextButtonProps = {
10
+ text: string;
11
+ leftIconComponent?: ReactElement;
12
+ rightIconComponent?: ReactElement;
13
+ size?: Size;
14
+ style?: Style;
15
+ theme?: Theme;
16
+ active?: boolean;
17
+ disabled?: boolean;
18
+ loading?: boolean;
19
+ className?: string;
20
+ };
21
+ declare const TextButton: FC<TextButtonProps> & {
22
+ Size: typeof SIZE;
23
+ Style: typeof STYLE;
24
+ Theme: typeof THEME;
25
+ };
26
+ //#endregion
27
+ //#region src/button/components/icon-button/index.d.ts
28
+ type IconButtonProps = {
29
+ iconComponent: React$1.ReactElement;
30
+ theme?: Theme;
31
+ type?: Type;
32
+ disabled?: boolean;
33
+ active?: boolean;
34
+ className?: string;
35
+ onClick?: (e: React$1.MouseEvent<HTMLButtonElement>) => void;
36
+ };
37
+ declare const IconButton: React$1.FC<IconButtonProps> & {
38
+ Theme: typeof THEME;
39
+ Type: typeof TYPE;
40
+ };
41
+ //#endregion
42
+ //#region src/button/components/menu-button/index.d.ts
43
+ type MenuButtonProps = {
44
+ text: string;
45
+ color: string;
46
+ fontWeight: Weight;
47
+ className?: string;
48
+ p1ClassName?: string;
49
+ };
50
+ declare const MenuButton: React$1.FC<MenuButtonProps> & {
51
+ FontWeight: typeof WEIGHT;
52
+ };
53
+ //#endregion
54
+ //#region src/button/components/pill-button/index.d.ts
55
+ type PillButtonProps = {
56
+ text?: string;
57
+ leftIconComponent?: React.ReactElement;
58
+ rightIconComponent?: React.ReactElement;
59
+ size?: Size;
60
+ theme?: Theme;
61
+ type?: Type;
62
+ style?: Style;
63
+ disabled?: boolean;
64
+ loading?: boolean;
65
+ className?: string;
66
+ };
67
+ declare const PillButton: FC<PillButtonProps> & {
68
+ Theme: typeof THEME;
69
+ Type: typeof TYPE;
70
+ Size: typeof SIZE;
71
+ Style: typeof STYLE;
72
+ };
73
+ //#endregion
74
+ //#region src/button/components/icon-with-text-button/index.d.ts
75
+ type IconWithTextButtonProps = {
76
+ text?: string;
77
+ iconComponent: React.ReactNode;
78
+ theme?: Theme;
79
+ disabled?: boolean;
80
+ active?: boolean;
81
+ hideText?: boolean;
82
+ className?: string;
83
+ onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
84
+ };
85
+ declare const IconWithTextButton: FC<IconWithTextButtonProps> & {
86
+ Theme: typeof THEME;
87
+ };
88
+ //#endregion
89
+ //#region src/button/index.d.ts
90
+ declare const _default: {
91
+ TextButton: react0.FC<{
92
+ text: string;
93
+ leftIconComponent?: react0.ReactElement;
94
+ rightIconComponent?: react0.ReactElement;
95
+ size?: Size;
96
+ style?: Style;
97
+ theme?: Theme;
98
+ active?: boolean;
99
+ disabled?: boolean;
100
+ loading?: boolean;
101
+ className?: string;
102
+ }> & {
103
+ Size: typeof SIZE;
104
+ Style: typeof STYLE;
105
+ Theme: typeof THEME;
106
+ };
107
+ IconButton: react0.FC<{
108
+ iconComponent: React.ReactElement;
109
+ theme?: Theme;
110
+ type?: Type;
111
+ disabled?: boolean;
112
+ active?: boolean;
113
+ className?: string;
114
+ onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
115
+ }> & {
116
+ Theme: typeof THEME;
117
+ Type: typeof TYPE;
118
+ };
119
+ MenuButton: react0.FC<{
120
+ text: string;
121
+ color: string;
122
+ fontWeight: Weight;
123
+ className?: string;
124
+ p1ClassName?: string;
125
+ }> & {
126
+ FontWeight: typeof WEIGHT;
127
+ };
128
+ PillButton: react0.FC<{
129
+ text?: string;
130
+ leftIconComponent?: React.ReactElement;
131
+ rightIconComponent?: React.ReactElement;
132
+ size?: Size;
133
+ theme?: Theme;
134
+ type?: Type;
135
+ style?: Style;
136
+ disabled?: boolean;
137
+ loading?: boolean;
138
+ className?: string;
139
+ }> & {
140
+ Theme: typeof THEME;
141
+ Type: typeof TYPE;
142
+ Size: typeof SIZE;
143
+ Style: typeof STYLE;
144
+ };
145
+ IconWithTextButton: react0.FC<{
146
+ text?: string;
147
+ iconComponent: React.ReactNode;
148
+ theme?: Theme;
149
+ disabled?: boolean;
150
+ active?: boolean;
151
+ hideText?: boolean;
152
+ className?: string;
153
+ onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
154
+ }> & {
155
+ Theme: typeof THEME;
156
+ };
157
+ };
158
+ //#endregion
159
+ export { IconButton, IconWithTextButton, MenuButton, PillButton, TextButton, _default as default };
160
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,13 @@
1
+ Object.defineProperty(exports, '__esModule', { value: true });
2
+ require('../constants-BmxSMOOn.js');
3
+ require('../constants-K2ObjToq.js');
4
+ require('../paragraph-CJvb0_cM.js');
5
+ require('../theme-DDBlIbeS.js');
6
+ const require_button = require('../button-DFLYlJJW.js');
7
+
8
+ exports.IconButton = require_button.icon_button_default;
9
+ exports.IconWithTextButton = require_button.icon_with_text_button_default;
10
+ exports.MenuButton = require_button.menu_button_default;
11
+ exports.PillButton = require_button.pill_button_default;
12
+ exports.TextButton = require_button.text_button_default;
13
+ exports.default = require_button.button_default;
@@ -0,0 +1,7 @@
1
+ import "../constants-oTHAnh6r.mjs";
2
+ import "../constants-BWFuBApI.mjs";
3
+ import "../paragraph-BWXQNQtX.mjs";
4
+ import "../theme-BG6yZVj-.mjs";
5
+ import { button_default, icon_button_default, icon_with_text_button_default, menu_button_default, pill_button_default, text_button_default } from "../button-DyUYGG90.mjs";
6
+
7
+ export { icon_button_default as IconButton, icon_with_text_button_default as IconWithTextButton, menu_button_default as MenuButton, pill_button_default as PillButton, text_button_default as TextButton, button_default as default };