@twreporter/react-components 9.5.0-rc.1 → 9.5.0
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/package.json +7 -8
- package/lib/badge/badge.stories.d.ts +0 -13
- package/lib/badge/index.d.ts +0 -14
- package/lib/bookmark-list/bookmark.d.ts +0 -9
- package/lib/bookmark-list/bookmarks.d.ts +0 -15
- package/lib/bookmark-list/customized-link.d.ts +0 -19
- package/lib/bookmark-list/image-wrapper.d.ts +0 -27
- package/lib/bookmark-list/index.d.ts +0 -26
- package/lib/bookmark-list/redirect-to-sign-in.d.ts +0 -9
- package/lib/bookmark-list/stories/bookmark.stories.d.ts +0 -9
- package/lib/bookmark-widget/index.d.ts +0 -13
- package/lib/button/components/iconButton.d.ts +0 -21
- package/lib/button/components/iconWithTextButton.d.ts +0 -20
- package/lib/button/components/link.d.ts +0 -45
- package/lib/button/components/menuButton.d.ts +0 -29
- package/lib/button/components/pillButton.d.ts +0 -33
- package/lib/button/components/textButton.d.ts +0 -31
- package/lib/button/components/toggleButton.d.ts +0 -18
- package/lib/button/enums/index.d.ts +0 -13
- package/lib/button/index.d.ts +0 -20
- package/lib/button/stories/iconButton.stories.d.ts +0 -42
- package/lib/button/stories/iconWithTextButton.stories.d.ts +0 -37
- package/lib/button/stories/link.stories.d.ts +0 -139
- package/lib/button/stories/menuButton.stories.d.ts +0 -26
- package/lib/button/stories/pillButton.stories.d.ts +0 -92
- package/lib/button/stories/textButton.stories.d.ts +0 -85
- package/lib/button/stories/toggleButton.stories.d.ts +0 -22
- package/lib/button/utils/size.d.ts +0 -8
- package/lib/button/utils/theme.d.ts +0 -47
- package/lib/card/components/article-card.d.ts +0 -33
- package/lib/card/components/dialog.d.ts +0 -14
- package/lib/card/components/short-story.d.ts +0 -25
- package/lib/card/index.d.ts +0 -10
- package/lib/card/stories/articleCard.stories.d.ts +0 -30
- package/lib/card/stories/dialog.stories.d.ts +0 -23
- package/lib/card/stories/shortStory.stories.d.ts +0 -37
- package/lib/checkbox/checkbox.stories.d.ts +0 -21
- package/lib/checkbox/index.d.ts +0 -16
- package/lib/color.stories.d.ts +0 -63
- package/lib/confirmation/index.d.ts +0 -25
- package/lib/customized-link.d.ts +0 -12
- package/lib/divider.d.ts +0 -15
- package/lib/divider.stories.d.ts +0 -33
- package/lib/donation-link.d.ts +0 -10
- package/lib/empty-state/enums/index.d.ts +0 -5
- package/lib/empty-state/index.d.ts +0 -29
- package/lib/empty-state/stories/empty-guide.stories.d.ts +0 -29
- package/lib/error/index.d.ts +0 -8
- package/lib/error/message.d.ts +0 -9
- package/lib/footer/constants/links.d.ts +0 -19
- package/lib/footer/footer.stories.d.ts +0 -15
- package/lib/footer/index.d.ts +0 -9
- package/lib/footer/link.d.ts +0 -18
- package/lib/footer/logo.d.ts +0 -9
- package/lib/hook/index.d.ts +0 -10
- package/lib/hook/use-bookmark.d.ts +0 -15
- package/lib/hook/use-font-face-observer.d.ts +0 -2
- package/lib/hook/use-outside-click.d.ts +0 -2
- package/lib/icon/enum/index.d.ts +0 -25
- package/lib/icon/index.d.ts +0 -225
- package/lib/icon/stories/arrow.stories.d.ts +0 -72
- package/lib/icon/stories/article.stories.d.ts +0 -11
- package/lib/icon/stories/bookmark.stories.d.ts +0 -57
- package/lib/icon/stories/changeIconColor.stories.d.ts +0 -23
- package/lib/icon/stories/clock.stories.d.ts +0 -11
- package/lib/icon/stories/copy.stories.d.ts +0 -11
- package/lib/icon/stories/cross.stories.d.ts +0 -11
- package/lib/icon/stories/filter.stories.d.ts +0 -11
- package/lib/icon/stories/hamburger.stories.d.ts +0 -11
- package/lib/icon/stories/home.stories.d.ts +0 -11
- package/lib/icon/stories/letter.stories.d.ts +0 -11
- package/lib/icon/stories/loading.stories.d.ts +0 -11
- package/lib/icon/stories/member.stories.d.ts +0 -11
- package/lib/icon/stories/printer.stories.d.ts +0 -11
- package/lib/icon/stories/search.stories.d.ts +0 -11
- package/lib/icon/stories/share.stories.d.ts +0 -11
- package/lib/icon/stories/socialMedia.stories.d.ts +0 -25
- package/lib/icon/stories/text.stories.d.ts +0 -11
- package/lib/icon/stories/topic.stories.d.ts +0 -11
- package/lib/image-with-fallback.d.ts +0 -15
- package/lib/input/components/search-bar.d.ts +0 -27
- package/lib/input/components/text-field.d.ts +0 -26
- package/lib/input/enums/index.d.ts +0 -13
- package/lib/input/index.d.ts +0 -8
- package/lib/input/stories/search-bar.stories.d.ts +0 -33
- package/lib/input/stories/text-field.stories.d.ts +0 -37
- package/lib/input/utils/theme.d.ts +0 -9
- package/lib/is-fetching-wrapper.d.ts +0 -14
- package/lib/junior-link.d.ts +0 -7
- package/lib/link-with-tracker.d.ts +0 -29
- package/lib/listing-page/components/card-list.d.ts +0 -19
- package/lib/listing-page/components/image.d.ts +0 -29
- package/lib/listing-page/components/list-item.d.ts +0 -27
- package/lib/listing-page/components/list.d.ts +0 -31
- package/lib/listing-page/components/page-content.d.ts +0 -2
- package/lib/listing-page/components/topics/index.d.ts +0 -25
- package/lib/listing-page/components/topics/post-item.d.ts +0 -19
- package/lib/listing-page/components/topics/posts.d.ts +0 -2
- package/lib/listing-page/components/topics/section.d.ts +0 -20
- package/lib/listing-page/components/topics/topic-item.d.ts +0 -22
- package/lib/listing-page/constants/mockup-spec.d.ts +0 -46
- package/lib/listing-page/constants/predefined-css.d.ts +0 -2
- package/lib/listing-page/constants/prop-types.d.ts +0 -1
- package/lib/listing-page/constants/topics.d.ts +0 -6
- package/lib/listing-page/index.d.ts +0 -10
- package/lib/listing-page/stories/cardList.stories.d.ts +0 -72
- package/lib/logo/components/logo-footer.d.ts +0 -16
- package/lib/logo/components/logo-header.d.ts +0 -17
- package/lib/logo/components/logo-loading-fallback.d.ts +0 -9
- package/lib/logo/components/logo-symbol.d.ts +0 -18
- package/lib/logo/index.d.ts +0 -12
- package/lib/logo/stories/logoFooter.stories.d.ts +0 -11
- package/lib/logo/stories/logoHeader.stories.d.ts +0 -15
- package/lib/logo/stories/logoLoadingFallback.stories.d.ts +0 -11
- package/lib/logo/stories/logoSymbol.stories.d.ts +0 -15
- package/lib/logo/utils/path.d.ts +0 -5
- package/lib/material-icon.d.ts +0 -17
- package/lib/mobile-member-role-card/index.d.ts +0 -25
- package/lib/mobile-member-role-card/stories/member-role-card.stories.d.ts +0 -34
- package/lib/mobile-pop-up-modal.d.ts +0 -28
- package/lib/more.d.ts +0 -10
- package/lib/pagination/index.d.ts +0 -36
- package/lib/podcast-link.d.ts +0 -7
- package/lib/rwd.d.ts +0 -5
- package/lib/shared-enum.d.ts +0 -4
- package/lib/side-bar/index.d.ts +0 -81
- package/lib/simple-header/index.d.ts +0 -2
- package/lib/simple-header/simpleHeader.stories.d.ts +0 -9
- package/lib/snack-bar/components/snack-bar.d.ts +0 -12
- package/lib/snack-bar/hooks/use-snack-bar.d.ts +0 -9
- package/lib/snack-bar/index.d.ts +0 -8
- package/lib/snack-bar/stories/snackBar.stories.d.ts +0 -28
- package/lib/snack-bar/utils/theme.d.ts +0 -8
- package/lib/storybook/constants/index.d.ts +0 -21
- package/lib/storybook/utils/get-enum-arg.d.ts +0 -7
- package/lib/table-of-contents/index.d.ts +0 -200
- package/lib/text/constants/headline-type.d.ts +0 -4
- package/lib/text/enums/index.d.ts +0 -9
- package/lib/text/headline.d.ts +0 -60
- package/lib/text/paragraph.d.ts +0 -49
- package/lib/text/stories/headline.stories.d.ts +0 -112
- package/lib/text/stories/paragraph.stories.d.ts +0 -78
- package/lib/text/utils/webfonts.d.ts +0 -9
- package/lib/title-bar/components/tab.d.ts +0 -13
- package/lib/title-bar/components/title1.d.ts +0 -11
- package/lib/title-bar/components/title2.d.ts +0 -13
- package/lib/title-bar/index.d.ts +0 -10
- package/lib/title-bar/stories/tab.stories.d.ts +0 -43
- package/lib/title-bar/stories/title1.stories.d.ts +0 -29
- package/lib/title-bar/stories/title2.stories.d.ts +0 -29
- package/lib/utils/link-with-params.d.ts +0 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twreporter/react-components",
|
|
3
|
-
"version": "9.5.0
|
|
3
|
+
"version": "9.5.0",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"types": "lib/index.d.ts",
|
|
6
6
|
"repository": "https://github.com/twreporter/twreporter-npm-packages.git",
|
|
@@ -8,16 +8,16 @@
|
|
|
8
8
|
"license": "MIT",
|
|
9
9
|
"scripts": {
|
|
10
10
|
"clean": "make clean",
|
|
11
|
-
"build": "make build
|
|
11
|
+
"build": "make build",
|
|
12
12
|
"dev": "make dev",
|
|
13
|
-
"prepublishOnly": "make build
|
|
13
|
+
"prepublishOnly": "make build",
|
|
14
14
|
"storybook": "storybook dev -p 3000",
|
|
15
15
|
"build-storybook": "storybook build",
|
|
16
16
|
"chromatic": "npx chromatic --exit-zero-on-changes"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@twreporter/core": "^1.24.3
|
|
20
|
-
"@twreporter/redux": "^8.3.2
|
|
19
|
+
"@twreporter/core": "^1.24.3",
|
|
20
|
+
"@twreporter/redux": "^8.3.2",
|
|
21
21
|
"fontfaceobserver-es": "^3.3.3",
|
|
22
22
|
"hoist-non-react-statics": "^2.3.1",
|
|
23
23
|
"lodash": "^4.0.0",
|
|
@@ -53,8 +53,7 @@
|
|
|
53
53
|
"babel-loader": "^8.2.4",
|
|
54
54
|
"chromatic": "^6.5.4",
|
|
55
55
|
"react-dom": "^18.2.0",
|
|
56
|
-
"storybook": "^8.1.11"
|
|
57
|
-
"typescript": "^5.7.3"
|
|
56
|
+
"storybook": "^8.1.11"
|
|
58
57
|
},
|
|
59
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "46ab7372a7f9eb23f4b874ea197d439b90440ab2"
|
|
60
59
|
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
export let title: string;
|
|
3
|
-
export { Badge as component };
|
|
4
|
-
}
|
|
5
|
-
export default _default;
|
|
6
|
-
export namespace badge {
|
|
7
|
-
namespace args {
|
|
8
|
-
let text: string;
|
|
9
|
-
let textColor: any;
|
|
10
|
-
let backgroundColor: string;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
import Badge from '.';
|
package/lib/badge/index.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export function Badge({ text, textColor, backgroundColor, ...props }: {
|
|
2
|
-
[x: string]: any;
|
|
3
|
-
text?: string;
|
|
4
|
-
textColor?: string;
|
|
5
|
-
backgroundColor?: string;
|
|
6
|
-
}): JSX.Element;
|
|
7
|
-
export namespace Badge {
|
|
8
|
-
namespace propTypes {
|
|
9
|
-
let text: any;
|
|
10
|
-
let textColor: any;
|
|
11
|
-
let backgroundColor: any;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
export default Badge;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export default Bookmarks;
|
|
2
|
-
declare function Bookmarks({ total, bookmarks, handleDelete, releaseBranch, }: {
|
|
3
|
-
total?: number;
|
|
4
|
-
bookmarks?: any[];
|
|
5
|
-
handleDelete: any;
|
|
6
|
-
releaseBranch?: any;
|
|
7
|
-
}): JSX.Element;
|
|
8
|
-
declare namespace Bookmarks {
|
|
9
|
-
namespace propTypes {
|
|
10
|
-
let bookmarks: any;
|
|
11
|
-
let handleDelete: any;
|
|
12
|
-
let total: any;
|
|
13
|
-
let releaseBranch: any;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export default CustomizedLink;
|
|
2
|
-
declare function CustomizedLink({ children, isExternal, slug, host }: {
|
|
3
|
-
children: any;
|
|
4
|
-
isExternal: any;
|
|
5
|
-
slug: any;
|
|
6
|
-
host: any;
|
|
7
|
-
}): JSX.Element;
|
|
8
|
-
declare namespace CustomizedLink {
|
|
9
|
-
namespace defaultProps {
|
|
10
|
-
let children: any;
|
|
11
|
-
}
|
|
12
|
-
namespace propTypes {
|
|
13
|
-
let children_1: any;
|
|
14
|
-
export { children_1 as children };
|
|
15
|
-
export let isExternal: any;
|
|
16
|
-
export let slug: any;
|
|
17
|
-
export let host: any;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export default ImgWrapper;
|
|
2
|
-
declare class ImgWrapper {
|
|
3
|
-
constructor(props: any);
|
|
4
|
-
state: {
|
|
5
|
-
isObjectFit: boolean;
|
|
6
|
-
};
|
|
7
|
-
componentDidMount(): void;
|
|
8
|
-
render(): JSX.Element;
|
|
9
|
-
}
|
|
10
|
-
declare namespace ImgWrapper {
|
|
11
|
-
namespace defaultProps {
|
|
12
|
-
let alt: string;
|
|
13
|
-
let children: any;
|
|
14
|
-
let src: string;
|
|
15
|
-
let srcSet: string;
|
|
16
|
-
}
|
|
17
|
-
namespace propTypes {
|
|
18
|
-
let alt_1: any;
|
|
19
|
-
export { alt_1 as alt };
|
|
20
|
-
let children_1: any;
|
|
21
|
-
export { children_1 as children };
|
|
22
|
-
let src_1: any;
|
|
23
|
-
export { src_1 as src };
|
|
24
|
-
let srcSet_1: any;
|
|
25
|
-
export { srcSet_1 as srcSet };
|
|
26
|
-
}
|
|
27
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
declare const _default: import("react-redux").ConnectedComponent<{
|
|
2
|
-
({ releaseBranch, bookmarks, total, getMultipleBookmarks, deleteSingleBookmark, isAuthed, jwt, userID, }: {
|
|
3
|
-
releaseBranch?: any;
|
|
4
|
-
bookmarks: any;
|
|
5
|
-
total: any;
|
|
6
|
-
getMultipleBookmarks: any;
|
|
7
|
-
deleteSingleBookmark: any;
|
|
8
|
-
isAuthed: any;
|
|
9
|
-
jwt: any;
|
|
10
|
-
userID: any;
|
|
11
|
-
}): JSX.Element;
|
|
12
|
-
propTypes: {
|
|
13
|
-
releaseBranch: any;
|
|
14
|
-
bookmarks: any;
|
|
15
|
-
total: any;
|
|
16
|
-
getMultipleBookmarks: any;
|
|
17
|
-
deleteSingleBookmark: any;
|
|
18
|
-
isAuthed: any;
|
|
19
|
-
jwt: any;
|
|
20
|
-
userID: any;
|
|
21
|
-
};
|
|
22
|
-
defaultProps: {
|
|
23
|
-
releaseBranch: any;
|
|
24
|
-
};
|
|
25
|
-
}, any>;
|
|
26
|
-
export default _default;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export default BookmarkWidget;
|
|
2
|
-
declare function BookmarkWidget({ articleMeta, renderIcon, toAutoCheck }: {
|
|
3
|
-
articleMeta: any;
|
|
4
|
-
renderIcon: any;
|
|
5
|
-
toAutoCheck?: boolean;
|
|
6
|
-
}): any;
|
|
7
|
-
declare namespace BookmarkWidget {
|
|
8
|
-
namespace propTypes {
|
|
9
|
-
let articleMeta: any;
|
|
10
|
-
let renderIcon: any;
|
|
11
|
-
let toAutoCheck: any;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export default IconButton;
|
|
2
|
-
declare function IconButton({ iconComponent, theme, type, disabled, active, ...props }: {
|
|
3
|
-
[x: string]: any;
|
|
4
|
-
iconComponent: any;
|
|
5
|
-
theme?: any;
|
|
6
|
-
type?: "primary";
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
active?: boolean;
|
|
9
|
-
}): JSX.Element;
|
|
10
|
-
declare namespace IconButton {
|
|
11
|
-
export namespace propTypes {
|
|
12
|
-
let iconComponent: any;
|
|
13
|
-
let theme: any;
|
|
14
|
-
let type: any;
|
|
15
|
-
let disabled: any;
|
|
16
|
-
let active: any;
|
|
17
|
-
}
|
|
18
|
-
export { THEME };
|
|
19
|
-
export { Type };
|
|
20
|
-
}
|
|
21
|
-
import { Type } from '../enums';
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export default IconWithTextButton;
|
|
2
|
-
declare function IconWithTextButton({ text, iconComponent, theme, disabled, active, hideText, }: {
|
|
3
|
-
text?: string;
|
|
4
|
-
iconComponent: any;
|
|
5
|
-
theme?: any;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
active?: boolean;
|
|
8
|
-
hideText?: boolean;
|
|
9
|
-
}): JSX.Element;
|
|
10
|
-
declare namespace IconWithTextButton {
|
|
11
|
-
export namespace propTypes {
|
|
12
|
-
let text: any;
|
|
13
|
-
let iconComponent: any;
|
|
14
|
-
let theme: any;
|
|
15
|
-
let disabled: any;
|
|
16
|
-
let active: any;
|
|
17
|
-
let hideText: any;
|
|
18
|
-
}
|
|
19
|
-
export { THEME };
|
|
20
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
export function InheritLinkButton({ type, link, text, ...props }: {
|
|
2
|
-
[x: string]: any;
|
|
3
|
-
type?: "default";
|
|
4
|
-
link?: {};
|
|
5
|
-
text?: string;
|
|
6
|
-
}): JSX.Element;
|
|
7
|
-
export namespace InheritLinkButton {
|
|
8
|
-
export namespace propTypes {
|
|
9
|
-
let type: any;
|
|
10
|
-
let link: any;
|
|
11
|
-
let text: any;
|
|
12
|
-
}
|
|
13
|
-
export { LinkType as Type };
|
|
14
|
-
}
|
|
15
|
-
export default LinkButton;
|
|
16
|
-
import { LinkType } from '../enums';
|
|
17
|
-
declare function LinkButton({ type, link, text, weight, TextComponent, disabled, ...props }: {
|
|
18
|
-
[x: string]: any;
|
|
19
|
-
type?: "default";
|
|
20
|
-
link?: {};
|
|
21
|
-
text?: string;
|
|
22
|
-
weight?: "normal";
|
|
23
|
-
TextComponent?: any;
|
|
24
|
-
disabled?: boolean;
|
|
25
|
-
}): JSX.Element;
|
|
26
|
-
declare namespace LinkButton {
|
|
27
|
-
export namespace propTypes_1 {
|
|
28
|
-
let type_1: any;
|
|
29
|
-
export { type_1 as type };
|
|
30
|
-
let link_1: any;
|
|
31
|
-
export { link_1 as link };
|
|
32
|
-
let text_1: any;
|
|
33
|
-
export { text_1 as text };
|
|
34
|
-
export let weight: any;
|
|
35
|
-
export let TextComponent: any;
|
|
36
|
-
export let disabled: any;
|
|
37
|
-
}
|
|
38
|
-
export { propTypes_1 as propTypes };
|
|
39
|
-
export { LinkType as Type };
|
|
40
|
-
export let Weight: Readonly<{
|
|
41
|
-
EXTRA_LIGHT: "extraLight";
|
|
42
|
-
NORMAL: "normal";
|
|
43
|
-
BOLD: "bold";
|
|
44
|
-
}>;
|
|
45
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export default MenuButton;
|
|
2
|
-
declare function MenuButton({ text, link, color, fontWeight, hoverBgColor, activeBgColor, paddingLeft, paddingRight, ...props }: {
|
|
3
|
-
[x: string]: any;
|
|
4
|
-
text?: string;
|
|
5
|
-
link?: {};
|
|
6
|
-
color?: any;
|
|
7
|
-
fontWeight?: "normal";
|
|
8
|
-
hoverBgColor?: any;
|
|
9
|
-
activeBgColor?: any;
|
|
10
|
-
paddingLeft?: number;
|
|
11
|
-
paddingRight?: number;
|
|
12
|
-
}): JSX.Element;
|
|
13
|
-
declare namespace MenuButton {
|
|
14
|
-
namespace propTypes {
|
|
15
|
-
let text: any;
|
|
16
|
-
let link: any;
|
|
17
|
-
let color: any;
|
|
18
|
-
let fontWeight: any;
|
|
19
|
-
let hoverBgColor: any;
|
|
20
|
-
let activeBgColor: any;
|
|
21
|
-
let paddingLeft: any;
|
|
22
|
-
let paddingRight: any;
|
|
23
|
-
}
|
|
24
|
-
let FontWeight: Readonly<{
|
|
25
|
-
EXTRA_LIGHT: "extraLight";
|
|
26
|
-
NORMAL: "normal";
|
|
27
|
-
BOLD: "bold";
|
|
28
|
-
}>;
|
|
29
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
export default PillButton;
|
|
2
|
-
declare function PillButton({ text, leftIconComponent, rightIconComponent, size, theme, type, style, disabled, loading, ...props }: {
|
|
3
|
-
[x: string]: any;
|
|
4
|
-
text?: string;
|
|
5
|
-
leftIconComponent?: any;
|
|
6
|
-
rightIconComponent?: any;
|
|
7
|
-
size?: "S";
|
|
8
|
-
theme?: any;
|
|
9
|
-
type?: "primary";
|
|
10
|
-
style?: "brand";
|
|
11
|
-
disabled?: boolean;
|
|
12
|
-
loading?: boolean;
|
|
13
|
-
}): JSX.Element;
|
|
14
|
-
declare namespace PillButton {
|
|
15
|
-
export namespace propTypes {
|
|
16
|
-
let leftIconComponent: any;
|
|
17
|
-
let rightIconComponent: any;
|
|
18
|
-
let text: any;
|
|
19
|
-
let size: any;
|
|
20
|
-
let theme: any;
|
|
21
|
-
let type: any;
|
|
22
|
-
let style: any;
|
|
23
|
-
let disabled: any;
|
|
24
|
-
let loading: any;
|
|
25
|
-
}
|
|
26
|
-
export { THEME };
|
|
27
|
-
export { Type };
|
|
28
|
-
export { Size };
|
|
29
|
-
export { Style };
|
|
30
|
-
}
|
|
31
|
-
import { Type } from '../enums';
|
|
32
|
-
import { Size } from '../../shared-enum';
|
|
33
|
-
import { Style } from '../enums';
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export default TextButton;
|
|
2
|
-
declare function TextButton({ text, leftIconComponent, rightIconComponent, size, theme, style, active, disabled, loading, ...props }: {
|
|
3
|
-
[x: string]: any;
|
|
4
|
-
text?: string;
|
|
5
|
-
leftIconComponent?: any;
|
|
6
|
-
rightIconComponent?: any;
|
|
7
|
-
size?: "S";
|
|
8
|
-
theme?: any;
|
|
9
|
-
style?: "dark";
|
|
10
|
-
active?: boolean;
|
|
11
|
-
disabled?: boolean;
|
|
12
|
-
loading?: boolean;
|
|
13
|
-
}): JSX.Element;
|
|
14
|
-
declare namespace TextButton {
|
|
15
|
-
export namespace propTypes {
|
|
16
|
-
let leftIconComponent: any;
|
|
17
|
-
let rightIconComponent: any;
|
|
18
|
-
let text: any;
|
|
19
|
-
let size: any;
|
|
20
|
-
let theme: any;
|
|
21
|
-
let style: any;
|
|
22
|
-
let active: any;
|
|
23
|
-
let disabled: any;
|
|
24
|
-
let loading: any;
|
|
25
|
-
}
|
|
26
|
-
export { THEME };
|
|
27
|
-
export { Size };
|
|
28
|
-
export { Style };
|
|
29
|
-
}
|
|
30
|
-
import { Size } from '../../shared-enum';
|
|
31
|
-
import { Style } from '../enums';
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export default ToggleButton;
|
|
2
|
-
declare function ToggleButton({ value, labelOn, labelOff, disabled, onChange, ...props }: {
|
|
3
|
-
[x: string]: any;
|
|
4
|
-
value?: boolean;
|
|
5
|
-
labelOn?: string;
|
|
6
|
-
labelOff?: string;
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
onChange?: () => void;
|
|
9
|
-
}): JSX.Element;
|
|
10
|
-
declare namespace ToggleButton {
|
|
11
|
-
namespace propTypes {
|
|
12
|
-
let value: any;
|
|
13
|
-
let labelOn: any;
|
|
14
|
-
let labelOff: any;
|
|
15
|
-
let disabled: any;
|
|
16
|
-
let onChange: any;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export const Style: Readonly<{
|
|
2
|
-
BRAND: "brand";
|
|
3
|
-
DARK: "dark";
|
|
4
|
-
LIGHT: "light";
|
|
5
|
-
}>;
|
|
6
|
-
export const Type: Readonly<{
|
|
7
|
-
PRIMARY: "primary";
|
|
8
|
-
SECONDARY: "secondary";
|
|
9
|
-
}>;
|
|
10
|
-
export const LinkType: Readonly<{
|
|
11
|
-
DEFAULT: "default";
|
|
12
|
-
UNDERLINE: "underline";
|
|
13
|
-
}>;
|
package/lib/button/index.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
export { PillButton };
|
|
3
|
-
export { IconButton };
|
|
4
|
-
export { IconWithTextButton };
|
|
5
|
-
export { TextButton };
|
|
6
|
-
export { ToggleButton };
|
|
7
|
-
export { LinkButton };
|
|
8
|
-
export { InheritLinkButton };
|
|
9
|
-
export { MenuButton };
|
|
10
|
-
}
|
|
11
|
-
export default _default;
|
|
12
|
-
import PillButton from './components/pillButton';
|
|
13
|
-
import IconButton from './components/iconButton';
|
|
14
|
-
import IconWithTextButton from './components/iconWithTextButton';
|
|
15
|
-
import TextButton from './components/textButton';
|
|
16
|
-
import ToggleButton from './components/toggleButton';
|
|
17
|
-
import LinkButton from './components/link';
|
|
18
|
-
import { InheritLinkButton } from './components/link';
|
|
19
|
-
import MenuButton from './components/menuButton';
|
|
20
|
-
export { PillButton, IconButton, IconWithTextButton, TextButton, ToggleButton, LinkButton, InheritLinkButton, MenuButton };
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
export let title: string;
|
|
3
|
-
export { IconButton as component };
|
|
4
|
-
export namespace argTypes {
|
|
5
|
-
export { THEME_STORYBOOK_ARG_TYPE as theme };
|
|
6
|
-
export let type: {
|
|
7
|
-
defaultValue: any;
|
|
8
|
-
options: any[];
|
|
9
|
-
control: {
|
|
10
|
-
type: string;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
export default _default;
|
|
16
|
-
export namespace iconButton {
|
|
17
|
-
namespace args {
|
|
18
|
-
export let iconComponent: JSX.Element;
|
|
19
|
-
export let theme: any;
|
|
20
|
-
let type_1: "primary";
|
|
21
|
-
export { type_1 as type };
|
|
22
|
-
export let disabled: boolean;
|
|
23
|
-
export let active: boolean;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
export namespace shareButton {
|
|
27
|
-
export namespace args_1 {
|
|
28
|
-
let iconComponent_1: JSX.Element;
|
|
29
|
-
export { iconComponent_1 as iconComponent };
|
|
30
|
-
let theme_1: any;
|
|
31
|
-
export { theme_1 as theme };
|
|
32
|
-
let type_2: "primary";
|
|
33
|
-
export { type_2 as type };
|
|
34
|
-
let disabled_1: boolean;
|
|
35
|
-
export { disabled_1 as disabled };
|
|
36
|
-
let active_1: boolean;
|
|
37
|
-
export { active_1 as active };
|
|
38
|
-
}
|
|
39
|
-
export { args_1 as args };
|
|
40
|
-
}
|
|
41
|
-
import IconButton from '../components/iconButton';
|
|
42
|
-
import { THEME_STORYBOOK_ARG_TYPE } from '../../storybook/constants';
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
export let title: string;
|
|
3
|
-
export { IconWithTextButton as component };
|
|
4
|
-
export namespace argTypes {
|
|
5
|
-
export { THEME_STORYBOOK_ARG_TYPE as theme };
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
export default _default;
|
|
9
|
-
export namespace iconWithTextButton {
|
|
10
|
-
namespace args {
|
|
11
|
-
let text: string;
|
|
12
|
-
let iconComponent: JSX.Element;
|
|
13
|
-
let theme: any;
|
|
14
|
-
let disabled: boolean;
|
|
15
|
-
let active: boolean;
|
|
16
|
-
let hideText: boolean;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
export namespace shareButton {
|
|
20
|
-
export namespace args_1 {
|
|
21
|
-
let text_1: string;
|
|
22
|
-
export { text_1 as text };
|
|
23
|
-
let iconComponent_1: JSX.Element;
|
|
24
|
-
export { iconComponent_1 as iconComponent };
|
|
25
|
-
let theme_1: any;
|
|
26
|
-
export { theme_1 as theme };
|
|
27
|
-
let disabled_1: boolean;
|
|
28
|
-
export { disabled_1 as disabled };
|
|
29
|
-
let active_1: boolean;
|
|
30
|
-
export { active_1 as active };
|
|
31
|
-
let hideText_1: boolean;
|
|
32
|
-
export { hideText_1 as hideText };
|
|
33
|
-
}
|
|
34
|
-
export { args_1 as args };
|
|
35
|
-
}
|
|
36
|
-
import IconWithTextButton from '../components/iconWithTextButton';
|
|
37
|
-
import { THEME_STORYBOOK_ARG_TYPE } from '../../storybook/constants';
|
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
export let title: string;
|
|
3
|
-
export { Link as component };
|
|
4
|
-
export namespace argTypes {
|
|
5
|
-
let type: {
|
|
6
|
-
defaultValue: any;
|
|
7
|
-
options: any[];
|
|
8
|
-
control: {
|
|
9
|
-
type: string;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
let weight: {
|
|
13
|
-
defaultValue: any;
|
|
14
|
-
options: any[];
|
|
15
|
-
control: {
|
|
16
|
-
type: string;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
namespace textComponent {
|
|
20
|
-
let defaultValue: string;
|
|
21
|
-
let options: string[];
|
|
22
|
-
namespace control {
|
|
23
|
-
let type_1: string;
|
|
24
|
-
export { type_1 as type };
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
namespace leftWord {
|
|
28
|
-
let defaultValue_1: string;
|
|
29
|
-
export { defaultValue_1 as defaultValue };
|
|
30
|
-
export namespace control_1 {
|
|
31
|
-
let type_2: string;
|
|
32
|
-
export { type_2 as type };
|
|
33
|
-
}
|
|
34
|
-
export { control_1 as control };
|
|
35
|
-
}
|
|
36
|
-
namespace rightWord {
|
|
37
|
-
let defaultValue_2: string;
|
|
38
|
-
export { defaultValue_2 as defaultValue };
|
|
39
|
-
export namespace control_2 {
|
|
40
|
-
let type_3: string;
|
|
41
|
-
export { type_3 as type };
|
|
42
|
-
}
|
|
43
|
-
export { control_2 as control };
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
export default _default;
|
|
48
|
-
export namespace link {
|
|
49
|
-
namespace args {
|
|
50
|
-
export let text: string;
|
|
51
|
-
let type_4: "default";
|
|
52
|
-
export { type_4 as type };
|
|
53
|
-
export namespace link {
|
|
54
|
-
let to: string;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
namespace parameters {
|
|
58
|
-
namespace controls {
|
|
59
|
-
let exclude: string[];
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
export namespace changeTextComponent {
|
|
64
|
-
export function render(args: any): JSX.Element;
|
|
65
|
-
export namespace args_1 {
|
|
66
|
-
let text_1: string;
|
|
67
|
-
export { text_1 as text };
|
|
68
|
-
let type_5: "default";
|
|
69
|
-
export { type_5 as type };
|
|
70
|
-
let textComponent_1: string;
|
|
71
|
-
export { textComponent_1 as textComponent };
|
|
72
|
-
export namespace link_1 {
|
|
73
|
-
let to_1: string;
|
|
74
|
-
export { to_1 as to };
|
|
75
|
-
}
|
|
76
|
-
export { link_1 as link };
|
|
77
|
-
}
|
|
78
|
-
export { args_1 as args };
|
|
79
|
-
export namespace parameters_1 {
|
|
80
|
-
export namespace controls_1 {
|
|
81
|
-
let exclude_1: string[];
|
|
82
|
-
export { exclude_1 as exclude };
|
|
83
|
-
}
|
|
84
|
-
export { controls_1 as controls };
|
|
85
|
-
}
|
|
86
|
-
export { parameters_1 as parameters };
|
|
87
|
-
}
|
|
88
|
-
export namespace disabledLink {
|
|
89
|
-
export namespace args_2 {
|
|
90
|
-
let text_2: string;
|
|
91
|
-
export { text_2 as text };
|
|
92
|
-
let type_6: "default";
|
|
93
|
-
export { type_6 as type };
|
|
94
|
-
export namespace link_2 {
|
|
95
|
-
let to_2: string;
|
|
96
|
-
export { to_2 as to };
|
|
97
|
-
}
|
|
98
|
-
export { link_2 as link };
|
|
99
|
-
export let disabled: boolean;
|
|
100
|
-
}
|
|
101
|
-
export { args_2 as args };
|
|
102
|
-
export namespace parameters_2 {
|
|
103
|
-
export namespace controls_2 {
|
|
104
|
-
let exclude_2: string[];
|
|
105
|
-
export { exclude_2 as exclude };
|
|
106
|
-
}
|
|
107
|
-
export { controls_2 as controls };
|
|
108
|
-
}
|
|
109
|
-
export { parameters_2 as parameters };
|
|
110
|
-
}
|
|
111
|
-
export namespace linkInParagraph {
|
|
112
|
-
export function render_1(args: any): JSX.Element;
|
|
113
|
-
export { render_1 as render };
|
|
114
|
-
export namespace args_3 {
|
|
115
|
-
let text_3: string;
|
|
116
|
-
export { text_3 as text };
|
|
117
|
-
let type_7: "default";
|
|
118
|
-
export { type_7 as type };
|
|
119
|
-
export namespace link_3 {
|
|
120
|
-
let to_3: string;
|
|
121
|
-
export { to_3 as to };
|
|
122
|
-
}
|
|
123
|
-
export { link_3 as link };
|
|
124
|
-
let leftWord_1: string;
|
|
125
|
-
export { leftWord_1 as leftWord };
|
|
126
|
-
let rightWord_1: string;
|
|
127
|
-
export { rightWord_1 as rightWord };
|
|
128
|
-
}
|
|
129
|
-
export { args_3 as args };
|
|
130
|
-
export namespace parameters_3 {
|
|
131
|
-
export namespace controls_3 {
|
|
132
|
-
let exclude_3: string[];
|
|
133
|
-
export { exclude_3 as exclude };
|
|
134
|
-
}
|
|
135
|
-
export { controls_3 as controls };
|
|
136
|
-
}
|
|
137
|
-
export { parameters_3 as parameters };
|
|
138
|
-
}
|
|
139
|
-
import Link from '../components/link';
|