@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.
- package/README.md +74 -0
- package/lib/button/constants.d.mts +3 -0
- package/lib/button/constants.d.ts +3 -0
- package/lib/button/constants.js +5 -0
- package/lib/button/constants.mjs +3 -0
- package/lib/button/index.d.mts +160 -0
- package/lib/button/index.d.ts +160 -0
- package/lib/button/index.js +13 -0
- package/lib/button/index.mjs +7 -0
- package/lib/button-DFLYlJJW.js +630 -0
- package/lib/button-DFLYlJJW.js.map +1 -0
- package/lib/button-DyUYGG90.mjs +591 -0
- package/lib/button-DyUYGG90.mjs.map +1 -0
- package/lib/chunk-BxBTb9qk.js +39 -0
- package/lib/constants/external-links.d.mts +16 -0
- package/lib/constants/external-links.d.ts +16 -0
- package/lib/constants/external-links.js +3 -0
- package/lib/constants/external-links.mjs +3 -0
- package/lib/constants/internal-links.d.mts +51 -0
- package/lib/constants/internal-links.d.ts +51 -0
- package/lib/constants/internal-links.js +3 -0
- package/lib/constants/internal-links.mjs +3 -0
- package/lib/constants/release-branch.d.mts +3 -0
- package/lib/constants/release-branch.d.ts +3 -0
- package/lib/constants/release-branch.js +3 -0
- package/lib/constants/release-branch.mjs +3 -0
- package/lib/constants/request-origins.d.mts +68 -0
- package/lib/constants/request-origins.d.ts +68 -0
- package/lib/constants/request-origins.js +47 -0
- package/lib/constants/request-origins.js.map +1 -0
- package/lib/constants/request-origins.mjs +46 -0
- package/lib/constants/request-origins.mjs.map +1 -0
- package/lib/constants/theme.d.mts +3 -0
- package/lib/constants/theme.d.ts +3 -0
- package/lib/constants/theme.js +3 -0
- package/lib/constants/theme.mjs +3 -0
- package/lib/constants-2TRY2zTK.js +38 -0
- package/lib/constants-2TRY2zTK.js.map +1 -0
- package/lib/constants-BS3rPbaX.d.ts +17 -0
- package/lib/constants-BWFuBApI.mjs +14 -0
- package/lib/constants-BWFuBApI.mjs.map +1 -0
- package/lib/constants-B_NgWFML.d.ts +24 -0
- package/lib/constants-BmxSMOOn.js +36 -0
- package/lib/constants-BmxSMOOn.js.map +1 -0
- package/lib/constants-BqeEbkVD.mjs +20 -0
- package/lib/constants-BqeEbkVD.mjs.map +1 -0
- package/lib/constants-BswaTS-y.d.mts +29 -0
- package/lib/constants-Bz-ufaJ2.js +39 -0
- package/lib/constants-Bz-ufaJ2.js.map +1 -0
- package/lib/constants-CEyUZ-jZ.d.mts +11 -0
- package/lib/constants-CMMcn0f-.d.ts +11 -0
- package/lib/constants-CQscYQcW.mjs +25 -0
- package/lib/constants-CQscYQcW.mjs.map +1 -0
- package/lib/constants-DF_II8Fz.js +43 -0
- package/lib/constants-DF_II8Fz.js.map +1 -0
- package/lib/constants-DNr36wyK.d.mts +24 -0
- package/lib/constants-DQxcqnYL.d.ts +29 -0
- package/lib/constants-DRyQ6AuU.js +15 -0
- package/lib/constants-DRyQ6AuU.js.map +1 -0
- package/lib/constants-K2ObjToq.js +26 -0
- package/lib/constants-K2ObjToq.js.map +1 -0
- package/lib/constants-OhAETTiQ.d.mts +17 -0
- package/lib/constants-QF71lY6v.mjs +34 -0
- package/lib/constants-QF71lY6v.mjs.map +1 -0
- package/lib/constants-gCmka4Fp.d.ts +22 -0
- package/lib/constants-jYAxSTFp.d.mts +22 -0
- package/lib/constants-oTHAnh6r.mjs +18 -0
- package/lib/constants-oTHAnh6r.mjs.map +1 -0
- package/lib/constants-t0lkfgqP.mjs +9 -0
- package/lib/constants-t0lkfgqP.mjs.map +1 -0
- package/lib/context-BCesW3fW.mjs +24 -0
- package/lib/context-BCesW3fW.mjs.map +1 -0
- package/lib/context-Bvr0Qj2x.js +37 -0
- package/lib/context-Bvr0Qj2x.js.map +1 -0
- package/lib/customized-link/external-link.d.mts +3 -0
- package/lib/customized-link/external-link.d.ts +3 -0
- package/lib/customized-link/external-link.js +3 -0
- package/lib/customized-link/external-link.mjs +3 -0
- package/lib/customized-link/index.d.mts +13 -0
- package/lib/customized-link/index.d.ts +13 -0
- package/lib/customized-link/index.js +8 -0
- package/lib/customized-link/index.mjs +5 -0
- package/lib/customized-link/internal-link.d.mts +3 -0
- package/lib/customized-link/internal-link.d.ts +3 -0
- package/lib/customized-link/internal-link.js +6 -0
- package/lib/customized-link/internal-link.mjs +6 -0
- package/lib/customized-link/type.d.mts +2 -0
- package/lib/customized-link/type.d.ts +2 -0
- package/lib/customized-link/type.js +0 -0
- package/lib/customized-link/type.mjs +1 -0
- package/lib/customized-link-BkuKVCKQ.mjs +12 -0
- package/lib/customized-link-BkuKVCKQ.mjs.map +1 -0
- package/lib/customized-link-CK7Xlgdt.js +17 -0
- package/lib/customized-link-CK7Xlgdt.js.map +1 -0
- package/lib/divider/constants.d.mts +3 -0
- package/lib/divider/constants.d.ts +3 -0
- package/lib/divider/constants.js +3 -0
- package/lib/divider/constants.mjs +3 -0
- package/lib/divider/index.d.mts +15 -0
- package/lib/divider/index.d.ts +15 -0
- package/lib/divider/index.js +6 -0
- package/lib/divider/index.mjs +4 -0
- package/lib/divider-Bb3tebJO.mjs +15 -0
- package/lib/divider-Bb3tebJO.mjs.map +1 -0
- package/lib/divider-b3Shh7FV.js +29 -0
- package/lib/divider-b3Shh7FV.js.map +1 -0
- package/lib/dropdown-menu/index.d.mts +17 -0
- package/lib/dropdown-menu/index.d.ts +17 -0
- package/lib/dropdown-menu/index.js +14 -0
- package/lib/dropdown-menu/index.mjs +14 -0
- package/lib/dropdown-menu-CCtPuYyJ.js +150 -0
- package/lib/dropdown-menu-CCtPuYyJ.js.map +1 -0
- package/lib/dropdown-menu-Cil4RtSK.mjs +117 -0
- package/lib/dropdown-menu-Cil4RtSK.mjs.map +1 -0
- package/lib/external-link-2XoC1_oL.d.ts +9 -0
- package/lib/external-link-BUhvS4ry.d.mts +9 -0
- package/lib/external-link-CEDvlQYo.js +23 -0
- package/lib/external-link-CEDvlQYo.js.map +1 -0
- package/lib/external-link-Cx9S31Ye.mjs +16 -0
- package/lib/external-link-Cx9S31Ye.mjs.map +1 -0
- package/lib/external-links-2b4M_rcA.mjs +17 -0
- package/lib/external-links-2b4M_rcA.mjs.map +1 -0
- package/lib/external-links-SfJjb48j.js +23 -0
- package/lib/external-links-SfJjb48j.js.map +1 -0
- package/lib/hamburger-menu/index.d.mts +7 -0
- package/lib/hamburger-menu/index.d.ts +6 -0
- package/lib/hamburger-menu/index.js +22 -0
- package/lib/hamburger-menu/index.mjs +22 -0
- package/lib/hamburger-menu-BZ1hA7l5.mjs +472 -0
- package/lib/hamburger-menu-BZ1hA7l5.mjs.map +1 -0
- package/lib/hamburger-menu-Bd_wmcAB.js +487 -0
- package/lib/hamburger-menu-Bd_wmcAB.js.map +1 -0
- package/lib/header/index.d.mts +26 -0
- package/lib/header/index.d.ts +25 -0
- package/lib/header/index.js +465 -0
- package/lib/header/index.js.map +1 -0
- package/lib/header/index.mjs +459 -0
- package/lib/header/index.mjs.map +1 -0
- package/lib/heading-CFSkTbdH.mjs +37 -0
- package/lib/heading-CFSkTbdH.mjs.map +1 -0
- package/lib/heading-DFzj2z0V.js +75 -0
- package/lib/heading-DFzj2z0V.js.map +1 -0
- package/lib/icons/constants.d.mts +3 -0
- package/lib/icons/constants.d.ts +3 -0
- package/lib/icons/constants.js +5 -0
- package/lib/icons/constants.mjs +3 -0
- package/lib/icons/index.d.mts +43 -0
- package/lib/icons/index.d.ts +43 -0
- package/lib/icons/index.js +15 -0
- package/lib/icons/index.mjs +5 -0
- package/lib/icons-DF-7dKxN.js +128 -0
- package/lib/icons-DF-7dKxN.js.map +1 -0
- package/lib/icons-DguoV48M.mjs +60 -0
- package/lib/icons-DguoV48M.mjs.map +1 -0
- package/lib/index-BmIgLA0K.d.mts +5 -0
- package/lib/index-H3peA2d_.d.ts +5 -0
- package/lib/internal-link-CqTu3Yi5.js +2278 -0
- package/lib/internal-link-CqTu3Yi5.js.map +1 -0
- package/lib/internal-link-D8jJal8P.d.mts +9 -0
- package/lib/internal-link-DCSEl1jM.d.ts +9 -0
- package/lib/internal-link-NQb751uB.mjs +2299 -0
- package/lib/internal-link-NQb751uB.mjs.map +1 -0
- package/lib/internal-links-BF-974mA.mjs +52 -0
- package/lib/internal-links-BF-974mA.mjs.map +1 -0
- package/lib/internal-links-CBkMU8cY.js +58 -0
- package/lib/internal-links-CBkMU8cY.js.map +1 -0
- package/lib/logo/constants.d.mts +3 -0
- package/lib/logo/constants.d.ts +3 -0
- package/lib/logo/constants.js +5 -0
- package/lib/logo/constants.mjs +3 -0
- package/lib/logo/index.d.mts +42 -0
- package/lib/logo/index.d.ts +42 -0
- package/lib/logo/index.js +8 -0
- package/lib/logo/index.mjs +5 -0
- package/lib/logo-CC5oU9Qb.mjs +64 -0
- package/lib/logo-CC5oU9Qb.mjs.map +1 -0
- package/lib/logo-D4M-1sGD.js +83 -0
- package/lib/logo-D4M-1sGD.js.map +1 -0
- package/lib/paragraph-BWXQNQtX.mjs +30 -0
- package/lib/paragraph-BWXQNQtX.mjs.map +1 -0
- package/lib/paragraph-CJvb0_cM.js +56 -0
- package/lib/paragraph-CJvb0_cM.js.map +1 -0
- package/lib/release-branch-CRZV4Ivz.js +18 -0
- package/lib/release-branch-CRZV4Ivz.js.map +1 -0
- package/lib/release-branch-CsBbhuYE.d.ts +14 -0
- package/lib/release-branch-DNCD1uH_.mjs +12 -0
- package/lib/release-branch-DNCD1uH_.mjs.map +1 -0
- package/lib/release-branch-DZwlCiWD.d.mts +14 -0
- package/lib/styles.css +1599 -0
- package/lib/tab-bar/constants.d.mts +16 -0
- package/lib/tab-bar/constants.d.ts +16 -0
- package/lib/tab-bar/constants.js +7 -0
- package/lib/tab-bar/constants.mjs +7 -0
- package/lib/tab-bar/index.d.mts +10 -0
- package/lib/tab-bar/index.d.ts +9 -0
- package/lib/tab-bar/index.js +18 -0
- package/lib/tab-bar/index.mjs +18 -0
- package/lib/tab-bar/theme.d.mts +10 -0
- package/lib/tab-bar/theme.d.ts +10 -0
- package/lib/tab-bar/theme.js +4 -0
- package/lib/tab-bar/theme.mjs +4 -0
- package/lib/tab-bar-CBL2tDXk.mjs +62 -0
- package/lib/tab-bar-CBL2tDXk.mjs.map +1 -0
- package/lib/tab-bar-ZRrpziiN.js +78 -0
- package/lib/tab-bar-ZRrpziiN.js.map +1 -0
- package/lib/text/constants.d.mts +3 -0
- package/lib/text/constants.d.ts +3 -0
- package/lib/text/constants.js +4 -0
- package/lib/text/constants.mjs +3 -0
- package/lib/text/heading.d.mts +31 -0
- package/lib/text/heading.d.ts +31 -0
- package/lib/text/heading.js +9 -0
- package/lib/text/heading.mjs +4 -0
- package/lib/text/paragraph.d.mts +25 -0
- package/lib/text/paragraph.d.ts +25 -0
- package/lib/text/paragraph.js +7 -0
- package/lib/text/paragraph.mjs +4 -0
- package/lib/theme-BDGfJ8n-.d.ts +13 -0
- package/lib/theme-BErS2Qs6.mjs +13 -0
- package/lib/theme-BErS2Qs6.mjs.map +1 -0
- package/lib/theme-BG6yZVj-.mjs +11 -0
- package/lib/theme-BG6yZVj-.mjs.map +1 -0
- package/lib/theme-BPB1kPtQ.js +18 -0
- package/lib/theme-BPB1kPtQ.js.map +1 -0
- package/lib/theme-ClamfAy8.d.mts +13 -0
- package/lib/theme-DDBlIbeS.js +17 -0
- package/lib/theme-DDBlIbeS.js.map +1 -0
- package/lib/title-bar/index.d.mts +58 -0
- package/lib/title-bar/index.d.ts +58 -0
- package/lib/title-bar/index.js +153 -0
- package/lib/title-bar/index.js.map +1 -0
- package/lib/title-bar/index.mjs +145 -0
- package/lib/title-bar/index.mjs.map +1 -0
- package/lib/type-C4hJK9H9.d.ts +11 -0
- package/lib/type-FR-fOZvz.d.mts +11 -0
- package/lib/types/index.d.mts +2 -0
- package/lib/types/index.d.ts +2 -0
- package/lib/types/index.js +0 -0
- package/lib/types/index.mjs +1 -0
- 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,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 };
|