@dynamic-labs/iconic 0.0.2 → 0.0.4

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.
@@ -0,0 +1,12 @@
1
+ import { type FC } from 'react';
2
+ export type Iconic = FC<{
3
+ alt?: string;
4
+ width?: string;
5
+ height?: string;
6
+ className?: string;
7
+ }>;
8
+ export declare const createIconic: (props: {
9
+ sourcePath: string;
10
+ iconName: string;
11
+ alt: string;
12
+ }) => Iconic;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createIconic = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const CDN_BASE_URL = 'https://iconic.dynamic-static-assets.com';
6
+ const createIconic = (props) => {
7
+ const Icon = Object.assign(Object.assign({}, props), { function: (props) => {
8
+ return ((0, jsx_runtime_1.jsx)("img", Object.assign({ "data-testid": Icon.iconName, src: `${CDN_BASE_URL}${Icon.sourcePath}`, alt: Icon.alt }, props)));
9
+ } });
10
+ return Icon.function.bind(Icon);
11
+ };
12
+ exports.createIconic = createIconic;
@@ -1,168 +1,3 @@
1
- /// <reference types="react" />
2
- declare const BraveIcon_base: {
3
- new (props: {
4
- alt?: string;
5
- className?: string;
6
- width?: number;
7
- height?: number;
8
- } | Readonly<{
9
- alt?: string;
10
- className?: string;
11
- width?: number;
12
- height?: number;
13
- }>): {
14
- readonly iconName: string;
15
- readonly alt: string;
16
- readonly categoryName: string;
17
- readonly iconPath: string;
18
- readonly url: string;
19
- render(): JSX.Element;
20
- context: unknown;
21
- setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<{
22
- alt?: string;
23
- className?: string;
24
- width?: number;
25
- height?: number;
26
- }>) => {} | Pick<{}, K>) | Pick<{}, K>, callback?: () => void): void;
27
- forceUpdate(callback?: () => void): void;
28
- readonly props: Readonly<{
29
- alt?: string;
30
- className?: string;
31
- width?: number;
32
- height?: number;
33
- }>;
34
- state: Readonly<{}>;
35
- refs: {
36
- [key: string]: import("react").ReactInstance;
37
- };
38
- componentDidMount?(): void;
39
- shouldComponentUpdate?(nextProps: Readonly<{
40
- alt?: string;
41
- className?: string;
42
- width?: number;
43
- height?: number;
44
- }>, nextState: Readonly<{}>, nextContext: any): boolean;
45
- componentWillUnmount?(): void;
46
- componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
47
- getSnapshotBeforeUpdate?(prevProps: Readonly<{
48
- alt?: string;
49
- className?: string;
50
- width?: number;
51
- height?: number;
52
- }>, prevState: Readonly<{}>): any;
53
- componentDidUpdate?(prevProps: Readonly<{
54
- alt?: string;
55
- className?: string;
56
- width?: number;
57
- height?: number;
58
- }>, prevState: Readonly<{}>, snapshot?: any): void;
59
- componentWillMount?(): void;
60
- UNSAFE_componentWillMount?(): void;
61
- componentWillReceiveProps?(nextProps: Readonly<{
62
- alt?: string;
63
- className?: string;
64
- width?: number;
65
- height?: number;
66
- }>, nextContext: any): void;
67
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<{
68
- alt?: string;
69
- className?: string;
70
- width?: number;
71
- height?: number;
72
- }>, nextContext: any): void;
73
- componentWillUpdate?(nextProps: Readonly<{
74
- alt?: string;
75
- className?: string;
76
- width?: number;
77
- height?: number;
78
- }>, nextState: Readonly<{}>, nextContext: any): void;
79
- UNSAFE_componentWillUpdate?(nextProps: Readonly<{
80
- alt?: string;
81
- className?: string;
82
- width?: number;
83
- height?: number;
84
- }>, nextState: Readonly<{}>, nextContext: any): void;
85
- };
86
- new (props: {
87
- alt?: string;
88
- className?: string;
89
- width?: number;
90
- height?: number;
91
- }, context: any): {
92
- readonly iconName: string;
93
- readonly alt: string;
94
- readonly categoryName: string;
95
- readonly iconPath: string;
96
- readonly url: string;
97
- render(): JSX.Element;
98
- context: unknown;
99
- setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<{
100
- alt?: string;
101
- className?: string;
102
- width?: number;
103
- height?: number;
104
- }>) => {} | Pick<{}, K>) | Pick<{}, K>, callback?: () => void): void;
105
- forceUpdate(callback?: () => void): void;
106
- readonly props: Readonly<{
107
- alt?: string;
108
- className?: string;
109
- width?: number;
110
- height?: number;
111
- }>;
112
- state: Readonly<{}>;
113
- refs: {
114
- [key: string]: import("react").ReactInstance;
115
- };
116
- componentDidMount?(): void;
117
- shouldComponentUpdate?(nextProps: Readonly<{
118
- alt?: string;
119
- className?: string;
120
- width?: number;
121
- height?: number;
122
- }>, nextState: Readonly<{}>, nextContext: any): boolean;
123
- componentWillUnmount?(): void;
124
- componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
125
- getSnapshotBeforeUpdate?(prevProps: Readonly<{
126
- alt?: string;
127
- className?: string;
128
- width?: number;
129
- height?: number;
130
- }>, prevState: Readonly<{}>): any;
131
- componentDidUpdate?(prevProps: Readonly<{
132
- alt?: string;
133
- className?: string;
134
- width?: number;
135
- height?: number;
136
- }>, prevState: Readonly<{}>, snapshot?: any): void;
137
- componentWillMount?(): void;
138
- UNSAFE_componentWillMount?(): void;
139
- componentWillReceiveProps?(nextProps: Readonly<{
140
- alt?: string;
141
- className?: string;
142
- width?: number;
143
- height?: number;
144
- }>, nextContext: any): void;
145
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<{
146
- alt?: string;
147
- className?: string;
148
- width?: number;
149
- height?: number;
150
- }>, nextContext: any): void;
151
- componentWillUpdate?(nextProps: Readonly<{
152
- alt?: string;
153
- className?: string;
154
- width?: number;
155
- height?: number;
156
- }>, nextState: Readonly<{}>, nextContext: any): void;
157
- UNSAFE_componentWillUpdate?(nextProps: Readonly<{
158
- alt?: string;
159
- className?: string;
160
- width?: number;
161
- height?: number;
162
- }>, nextState: Readonly<{}>, nextContext: any): void;
163
- };
164
- contextType?: import("react").Context<any>;
165
- };
166
- export declare class BraveIcon extends BraveIcon_base {
167
- }
1
+ import { type Iconic } from '../../../Iconic';
2
+ export declare const BraveIcon: Iconic;
168
3
  export default BraveIcon;
@@ -1,11 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.BraveIcon = void 0;
4
- const BrowserIconComponent_1 = require("../BrowserIconComponent");
5
- class BraveIcon extends (0, BrowserIconComponent_1.BrowserIconComponent)({
4
+ const Iconic_1 = require("../../../Iconic");
5
+ exports.BraveIcon = (0, Iconic_1.createIconic)({
6
+ iconName: 'brave',
6
7
  alt: 'Brave Browser',
7
- iconName: 'brave'
8
- }) {
9
- }
10
- exports.BraveIcon = BraveIcon;
11
- exports.default = BraveIcon;
8
+ sourcePath: 'icons/browsers/brave/brave.svg'
9
+ });
10
+ exports.default = exports.BraveIcon;
@@ -1,168 +1,3 @@
1
- /// <reference types="react" />
2
- declare const ArbitrumIcon_base: {
3
- new (props: {
4
- alt?: string;
5
- className?: string;
6
- width?: number;
7
- height?: number;
8
- } | Readonly<{
9
- alt?: string;
10
- className?: string;
11
- width?: number;
12
- height?: number;
13
- }>): {
14
- readonly iconName: string;
15
- readonly alt: string;
16
- readonly categoryName: string;
17
- readonly iconPath: string;
18
- readonly url: string;
19
- render(): JSX.Element;
20
- context: unknown;
21
- setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<{
22
- alt?: string;
23
- className?: string;
24
- width?: number;
25
- height?: number;
26
- }>) => {} | Pick<{}, K>) | Pick<{}, K>, callback?: () => void): void;
27
- forceUpdate(callback?: () => void): void;
28
- readonly props: Readonly<{
29
- alt?: string;
30
- className?: string;
31
- width?: number;
32
- height?: number;
33
- }>;
34
- state: Readonly<{}>;
35
- refs: {
36
- [key: string]: import("react").ReactInstance;
37
- };
38
- componentDidMount?(): void;
39
- shouldComponentUpdate?(nextProps: Readonly<{
40
- alt?: string;
41
- className?: string;
42
- width?: number;
43
- height?: number;
44
- }>, nextState: Readonly<{}>, nextContext: any): boolean;
45
- componentWillUnmount?(): void;
46
- componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
47
- getSnapshotBeforeUpdate?(prevProps: Readonly<{
48
- alt?: string;
49
- className?: string;
50
- width?: number;
51
- height?: number;
52
- }>, prevState: Readonly<{}>): any;
53
- componentDidUpdate?(prevProps: Readonly<{
54
- alt?: string;
55
- className?: string;
56
- width?: number;
57
- height?: number;
58
- }>, prevState: Readonly<{}>, snapshot?: any): void;
59
- componentWillMount?(): void;
60
- UNSAFE_componentWillMount?(): void;
61
- componentWillReceiveProps?(nextProps: Readonly<{
62
- alt?: string;
63
- className?: string;
64
- width?: number;
65
- height?: number;
66
- }>, nextContext: any): void;
67
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<{
68
- alt?: string;
69
- className?: string;
70
- width?: number;
71
- height?: number;
72
- }>, nextContext: any): void;
73
- componentWillUpdate?(nextProps: Readonly<{
74
- alt?: string;
75
- className?: string;
76
- width?: number;
77
- height?: number;
78
- }>, nextState: Readonly<{}>, nextContext: any): void;
79
- UNSAFE_componentWillUpdate?(nextProps: Readonly<{
80
- alt?: string;
81
- className?: string;
82
- width?: number;
83
- height?: number;
84
- }>, nextState: Readonly<{}>, nextContext: any): void;
85
- };
86
- new (props: {
87
- alt?: string;
88
- className?: string;
89
- width?: number;
90
- height?: number;
91
- }, context: any): {
92
- readonly iconName: string;
93
- readonly alt: string;
94
- readonly categoryName: string;
95
- readonly iconPath: string;
96
- readonly url: string;
97
- render(): JSX.Element;
98
- context: unknown;
99
- setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<{
100
- alt?: string;
101
- className?: string;
102
- width?: number;
103
- height?: number;
104
- }>) => {} | Pick<{}, K>) | Pick<{}, K>, callback?: () => void): void;
105
- forceUpdate(callback?: () => void): void;
106
- readonly props: Readonly<{
107
- alt?: string;
108
- className?: string;
109
- width?: number;
110
- height?: number;
111
- }>;
112
- state: Readonly<{}>;
113
- refs: {
114
- [key: string]: import("react").ReactInstance;
115
- };
116
- componentDidMount?(): void;
117
- shouldComponentUpdate?(nextProps: Readonly<{
118
- alt?: string;
119
- className?: string;
120
- width?: number;
121
- height?: number;
122
- }>, nextState: Readonly<{}>, nextContext: any): boolean;
123
- componentWillUnmount?(): void;
124
- componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
125
- getSnapshotBeforeUpdate?(prevProps: Readonly<{
126
- alt?: string;
127
- className?: string;
128
- width?: number;
129
- height?: number;
130
- }>, prevState: Readonly<{}>): any;
131
- componentDidUpdate?(prevProps: Readonly<{
132
- alt?: string;
133
- className?: string;
134
- width?: number;
135
- height?: number;
136
- }>, prevState: Readonly<{}>, snapshot?: any): void;
137
- componentWillMount?(): void;
138
- UNSAFE_componentWillMount?(): void;
139
- componentWillReceiveProps?(nextProps: Readonly<{
140
- alt?: string;
141
- className?: string;
142
- width?: number;
143
- height?: number;
144
- }>, nextContext: any): void;
145
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<{
146
- alt?: string;
147
- className?: string;
148
- width?: number;
149
- height?: number;
150
- }>, nextContext: any): void;
151
- componentWillUpdate?(nextProps: Readonly<{
152
- alt?: string;
153
- className?: string;
154
- width?: number;
155
- height?: number;
156
- }>, nextState: Readonly<{}>, nextContext: any): void;
157
- UNSAFE_componentWillUpdate?(nextProps: Readonly<{
158
- alt?: string;
159
- className?: string;
160
- width?: number;
161
- height?: number;
162
- }>, nextState: Readonly<{}>, nextContext: any): void;
163
- };
164
- contextType?: import("react").Context<any>;
165
- };
166
- export declare class ArbitrumIcon extends ArbitrumIcon_base {
167
- }
1
+ import { type Iconic } from '../../../Iconic';
2
+ export declare const ArbitrumIcon: Iconic;
168
3
  export default ArbitrumIcon;
@@ -1,11 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ArbitrumIcon = void 0;
4
- const ChainIconComponent_1 = require("../ChainIconComponent");
5
- class ArbitrumIcon extends (0, ChainIconComponent_1.ChainIconComponent)({
6
- alt: 'Arbitrum Browser',
7
- iconName: 'arbitrum'
8
- }) {
9
- }
10
- exports.ArbitrumIcon = ArbitrumIcon;
11
- exports.default = ArbitrumIcon;
4
+ const Iconic_1 = require("../../../Iconic");
5
+ exports.ArbitrumIcon = (0, Iconic_1.createIconic)({
6
+ iconName: 'arbitrum',
7
+ alt: 'Arbitrum Chain',
8
+ sourcePath: 'icons/chains/arbitrum/arbitrum.svg'
9
+ });
10
+ exports.default = exports.ArbitrumIcon;
@@ -1 +1,2 @@
1
1
  export * from './icons';
2
+ export * from './Iconic';
package/dist/src/index.js CHANGED
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./icons"), exports);
18
+ __exportStar(require("./Iconic"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/iconic",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "description": "A library of icons used by Dynamic Lab's SDK, served via CDN",
5
5
  "main": "dist/src/index.js",
6
6
  "scripts": {
@@ -1,170 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const IconComponentKlass: (props: {
3
- categoryName: string;
4
- }) => (classProps: {
5
- alt: string;
6
- iconName: string;
7
- }) => {
8
- new (props: {
9
- alt?: string;
10
- className?: string;
11
- width?: number;
12
- height?: number;
13
- } | Readonly<{
14
- alt?: string;
15
- className?: string;
16
- width?: number;
17
- height?: number;
18
- }>): {
19
- readonly iconName: string;
20
- readonly alt: string;
21
- readonly categoryName: string;
22
- readonly iconPath: string;
23
- readonly url: string;
24
- render(): JSX.Element;
25
- context: unknown;
26
- setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<{
27
- alt?: string;
28
- className?: string;
29
- width?: number;
30
- height?: number;
31
- }>) => {} | Pick<{}, K>) | Pick<{}, K>, callback?: () => void): void;
32
- forceUpdate(callback?: () => void): void;
33
- readonly props: Readonly<{
34
- alt?: string;
35
- className?: string;
36
- width?: number;
37
- height?: number;
38
- }>;
39
- state: Readonly<{}>;
40
- refs: {
41
- [key: string]: import("react").ReactInstance;
42
- };
43
- componentDidMount?(): void;
44
- shouldComponentUpdate?(nextProps: Readonly<{
45
- alt?: string;
46
- className?: string;
47
- width?: number;
48
- height?: number;
49
- }>, nextState: Readonly<{}>, nextContext: any): boolean;
50
- componentWillUnmount?(): void;
51
- componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
52
- getSnapshotBeforeUpdate?(prevProps: Readonly<{
53
- alt?: string;
54
- className?: string;
55
- width?: number;
56
- height?: number;
57
- }>, prevState: Readonly<{}>): any;
58
- componentDidUpdate?(prevProps: Readonly<{
59
- alt?: string;
60
- className?: string;
61
- width?: number;
62
- height?: number;
63
- }>, prevState: Readonly<{}>, snapshot?: any): void;
64
- componentWillMount?(): void;
65
- UNSAFE_componentWillMount?(): void;
66
- componentWillReceiveProps?(nextProps: Readonly<{
67
- alt?: string;
68
- className?: string;
69
- width?: number;
70
- height?: number;
71
- }>, nextContext: any): void;
72
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<{
73
- alt?: string;
74
- className?: string;
75
- width?: number;
76
- height?: number;
77
- }>, nextContext: any): void;
78
- componentWillUpdate?(nextProps: Readonly<{
79
- alt?: string;
80
- className?: string;
81
- width?: number;
82
- height?: number;
83
- }>, nextState: Readonly<{}>, nextContext: any): void;
84
- UNSAFE_componentWillUpdate?(nextProps: Readonly<{
85
- alt?: string;
86
- className?: string;
87
- width?: number;
88
- height?: number;
89
- }>, nextState: Readonly<{}>, nextContext: any): void;
90
- };
91
- new (props: {
92
- alt?: string;
93
- className?: string;
94
- width?: number;
95
- height?: number;
96
- }, context: any): {
97
- readonly iconName: string;
98
- readonly alt: string;
99
- readonly categoryName: string;
100
- readonly iconPath: string;
101
- readonly url: string;
102
- render(): JSX.Element;
103
- context: unknown;
104
- setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<{
105
- alt?: string;
106
- className?: string;
107
- width?: number;
108
- height?: number;
109
- }>) => {} | Pick<{}, K>) | Pick<{}, K>, callback?: () => void): void;
110
- forceUpdate(callback?: () => void): void;
111
- readonly props: Readonly<{
112
- alt?: string;
113
- className?: string;
114
- width?: number;
115
- height?: number;
116
- }>;
117
- state: Readonly<{}>;
118
- refs: {
119
- [key: string]: import("react").ReactInstance;
120
- };
121
- componentDidMount?(): void;
122
- shouldComponentUpdate?(nextProps: Readonly<{
123
- alt?: string;
124
- className?: string;
125
- width?: number;
126
- height?: number;
127
- }>, nextState: Readonly<{}>, nextContext: any): boolean;
128
- componentWillUnmount?(): void;
129
- componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
130
- getSnapshotBeforeUpdate?(prevProps: Readonly<{
131
- alt?: string;
132
- className?: string;
133
- width?: number;
134
- height?: number;
135
- }>, prevState: Readonly<{}>): any;
136
- componentDidUpdate?(prevProps: Readonly<{
137
- alt?: string;
138
- className?: string;
139
- width?: number;
140
- height?: number;
141
- }>, prevState: Readonly<{}>, snapshot?: any): void;
142
- componentWillMount?(): void;
143
- UNSAFE_componentWillMount?(): void;
144
- componentWillReceiveProps?(nextProps: Readonly<{
145
- alt?: string;
146
- className?: string;
147
- width?: number;
148
- height?: number;
149
- }>, nextContext: any): void;
150
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<{
151
- alt?: string;
152
- className?: string;
153
- width?: number;
154
- height?: number;
155
- }>, nextContext: any): void;
156
- componentWillUpdate?(nextProps: Readonly<{
157
- alt?: string;
158
- className?: string;
159
- width?: number;
160
- height?: number;
161
- }>, nextState: Readonly<{}>, nextContext: any): void;
162
- UNSAFE_componentWillUpdate?(nextProps: Readonly<{
163
- alt?: string;
164
- className?: string;
165
- width?: number;
166
- height?: number;
167
- }>, nextState: Readonly<{}>, nextContext: any): void;
168
- };
169
- contextType?: import("react").Context<any>;
170
- };
@@ -1,31 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IconComponentKlass = void 0;
4
- const jsx_runtime_1 = require("react/jsx-runtime");
5
- const react_1 = require("react");
6
- const CDN_BASE_URL = 'https://iconic.dynamic-static-assets.com';
7
- class IconComponent extends react_1.Component {
8
- get iconPath() {
9
- return `icons/${this.categoryName}/${this.iconName}.svg`;
10
- }
11
- get url() {
12
- return `${CDN_BASE_URL}/${this.iconPath}`;
13
- }
14
- render() {
15
- var _a;
16
- return (0, jsx_runtime_1.jsx)("img", Object.assign({ src: this.url }, this.props, { alt: (_a = this.alt) !== null && _a !== void 0 ? _a : this.props.alt }));
17
- }
18
- }
19
- const IconComponentKlass = (props) => {
20
- return (classProps) => {
21
- return class extends IconComponent {
22
- constructor() {
23
- super(...arguments);
24
- this.iconName = classProps.iconName;
25
- this.alt = classProps.alt;
26
- this.categoryName = props.categoryName;
27
- }
28
- };
29
- };
30
- };
31
- exports.IconComponentKlass = IconComponentKlass;
@@ -1,168 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const BrowserIconComponent: (classProps: {
3
- alt: string;
4
- iconName: string;
5
- }) => {
6
- new (props: {
7
- alt?: string;
8
- className?: string;
9
- width?: number;
10
- height?: number;
11
- } | Readonly<{
12
- alt?: string;
13
- className?: string;
14
- width?: number;
15
- height?: number;
16
- }>): {
17
- readonly iconName: string;
18
- readonly alt: string;
19
- readonly categoryName: string;
20
- readonly iconPath: string;
21
- readonly url: string;
22
- render(): JSX.Element;
23
- context: unknown;
24
- setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<{
25
- alt?: string;
26
- className?: string;
27
- width?: number;
28
- height?: number;
29
- }>) => {} | Pick<{}, K>) | Pick<{}, K>, callback?: () => void): void;
30
- forceUpdate(callback?: () => void): void;
31
- readonly props: Readonly<{
32
- alt?: string;
33
- className?: string;
34
- width?: number;
35
- height?: number;
36
- }>;
37
- state: Readonly<{}>;
38
- refs: {
39
- [key: string]: import("react").ReactInstance;
40
- };
41
- componentDidMount?(): void;
42
- shouldComponentUpdate?(nextProps: Readonly<{
43
- alt?: string;
44
- className?: string;
45
- width?: number;
46
- height?: number;
47
- }>, nextState: Readonly<{}>, nextContext: any): boolean;
48
- componentWillUnmount?(): void;
49
- componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
50
- getSnapshotBeforeUpdate?(prevProps: Readonly<{
51
- alt?: string;
52
- className?: string;
53
- width?: number;
54
- height?: number;
55
- }>, prevState: Readonly<{}>): any;
56
- componentDidUpdate?(prevProps: Readonly<{
57
- alt?: string;
58
- className?: string;
59
- width?: number;
60
- height?: number;
61
- }>, prevState: Readonly<{}>, snapshot?: any): void;
62
- componentWillMount?(): void;
63
- UNSAFE_componentWillMount?(): void;
64
- componentWillReceiveProps?(nextProps: Readonly<{
65
- alt?: string;
66
- className?: string;
67
- width?: number;
68
- height?: number;
69
- }>, nextContext: any): void;
70
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<{
71
- alt?: string;
72
- className?: string;
73
- width?: number;
74
- height?: number;
75
- }>, nextContext: any): void;
76
- componentWillUpdate?(nextProps: Readonly<{
77
- alt?: string;
78
- className?: string;
79
- width?: number;
80
- height?: number;
81
- }>, nextState: Readonly<{}>, nextContext: any): void;
82
- UNSAFE_componentWillUpdate?(nextProps: Readonly<{
83
- alt?: string;
84
- className?: string;
85
- width?: number;
86
- height?: number;
87
- }>, nextState: Readonly<{}>, nextContext: any): void;
88
- };
89
- new (props: {
90
- alt?: string;
91
- className?: string;
92
- width?: number;
93
- height?: number;
94
- }, context: any): {
95
- readonly iconName: string;
96
- readonly alt: string;
97
- readonly categoryName: string;
98
- readonly iconPath: string;
99
- readonly url: string;
100
- render(): JSX.Element;
101
- context: unknown;
102
- setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<{
103
- alt?: string;
104
- className?: string;
105
- width?: number;
106
- height?: number;
107
- }>) => {} | Pick<{}, K>) | Pick<{}, K>, callback?: () => void): void;
108
- forceUpdate(callback?: () => void): void;
109
- readonly props: Readonly<{
110
- alt?: string;
111
- className?: string;
112
- width?: number;
113
- height?: number;
114
- }>;
115
- state: Readonly<{}>;
116
- refs: {
117
- [key: string]: import("react").ReactInstance;
118
- };
119
- componentDidMount?(): void;
120
- shouldComponentUpdate?(nextProps: Readonly<{
121
- alt?: string;
122
- className?: string;
123
- width?: number;
124
- height?: number;
125
- }>, nextState: Readonly<{}>, nextContext: any): boolean;
126
- componentWillUnmount?(): void;
127
- componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
128
- getSnapshotBeforeUpdate?(prevProps: Readonly<{
129
- alt?: string;
130
- className?: string;
131
- width?: number;
132
- height?: number;
133
- }>, prevState: Readonly<{}>): any;
134
- componentDidUpdate?(prevProps: Readonly<{
135
- alt?: string;
136
- className?: string;
137
- width?: number;
138
- height?: number;
139
- }>, prevState: Readonly<{}>, snapshot?: any): void;
140
- componentWillMount?(): void;
141
- UNSAFE_componentWillMount?(): void;
142
- componentWillReceiveProps?(nextProps: Readonly<{
143
- alt?: string;
144
- className?: string;
145
- width?: number;
146
- height?: number;
147
- }>, nextContext: any): void;
148
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<{
149
- alt?: string;
150
- className?: string;
151
- width?: number;
152
- height?: number;
153
- }>, nextContext: any): void;
154
- componentWillUpdate?(nextProps: Readonly<{
155
- alt?: string;
156
- className?: string;
157
- width?: number;
158
- height?: number;
159
- }>, nextState: Readonly<{}>, nextContext: any): void;
160
- UNSAFE_componentWillUpdate?(nextProps: Readonly<{
161
- alt?: string;
162
- className?: string;
163
- width?: number;
164
- height?: number;
165
- }>, nextState: Readonly<{}>, nextContext: any): void;
166
- };
167
- contextType?: import("react").Context<any>;
168
- };
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BrowserIconComponent = void 0;
4
- const IconComponent_1 = require("../../IconComponent");
5
- exports.BrowserIconComponent = (0, IconComponent_1.IconComponentKlass)({
6
- categoryName: 'browsers'
7
- });
@@ -1,168 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const ChainIconComponent: (classProps: {
3
- alt: string;
4
- iconName: string;
5
- }) => {
6
- new (props: {
7
- alt?: string;
8
- className?: string;
9
- width?: number;
10
- height?: number;
11
- } | Readonly<{
12
- alt?: string;
13
- className?: string;
14
- width?: number;
15
- height?: number;
16
- }>): {
17
- readonly iconName: string;
18
- readonly alt: string;
19
- readonly categoryName: string;
20
- readonly iconPath: string;
21
- readonly url: string;
22
- render(): JSX.Element;
23
- context: unknown;
24
- setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<{
25
- alt?: string;
26
- className?: string;
27
- width?: number;
28
- height?: number;
29
- }>) => {} | Pick<{}, K>) | Pick<{}, K>, callback?: () => void): void;
30
- forceUpdate(callback?: () => void): void;
31
- readonly props: Readonly<{
32
- alt?: string;
33
- className?: string;
34
- width?: number;
35
- height?: number;
36
- }>;
37
- state: Readonly<{}>;
38
- refs: {
39
- [key: string]: import("react").ReactInstance;
40
- };
41
- componentDidMount?(): void;
42
- shouldComponentUpdate?(nextProps: Readonly<{
43
- alt?: string;
44
- className?: string;
45
- width?: number;
46
- height?: number;
47
- }>, nextState: Readonly<{}>, nextContext: any): boolean;
48
- componentWillUnmount?(): void;
49
- componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
50
- getSnapshotBeforeUpdate?(prevProps: Readonly<{
51
- alt?: string;
52
- className?: string;
53
- width?: number;
54
- height?: number;
55
- }>, prevState: Readonly<{}>): any;
56
- componentDidUpdate?(prevProps: Readonly<{
57
- alt?: string;
58
- className?: string;
59
- width?: number;
60
- height?: number;
61
- }>, prevState: Readonly<{}>, snapshot?: any): void;
62
- componentWillMount?(): void;
63
- UNSAFE_componentWillMount?(): void;
64
- componentWillReceiveProps?(nextProps: Readonly<{
65
- alt?: string;
66
- className?: string;
67
- width?: number;
68
- height?: number;
69
- }>, nextContext: any): void;
70
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<{
71
- alt?: string;
72
- className?: string;
73
- width?: number;
74
- height?: number;
75
- }>, nextContext: any): void;
76
- componentWillUpdate?(nextProps: Readonly<{
77
- alt?: string;
78
- className?: string;
79
- width?: number;
80
- height?: number;
81
- }>, nextState: Readonly<{}>, nextContext: any): void;
82
- UNSAFE_componentWillUpdate?(nextProps: Readonly<{
83
- alt?: string;
84
- className?: string;
85
- width?: number;
86
- height?: number;
87
- }>, nextState: Readonly<{}>, nextContext: any): void;
88
- };
89
- new (props: {
90
- alt?: string;
91
- className?: string;
92
- width?: number;
93
- height?: number;
94
- }, context: any): {
95
- readonly iconName: string;
96
- readonly alt: string;
97
- readonly categoryName: string;
98
- readonly iconPath: string;
99
- readonly url: string;
100
- render(): JSX.Element;
101
- context: unknown;
102
- setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<{
103
- alt?: string;
104
- className?: string;
105
- width?: number;
106
- height?: number;
107
- }>) => {} | Pick<{}, K>) | Pick<{}, K>, callback?: () => void): void;
108
- forceUpdate(callback?: () => void): void;
109
- readonly props: Readonly<{
110
- alt?: string;
111
- className?: string;
112
- width?: number;
113
- height?: number;
114
- }>;
115
- state: Readonly<{}>;
116
- refs: {
117
- [key: string]: import("react").ReactInstance;
118
- };
119
- componentDidMount?(): void;
120
- shouldComponentUpdate?(nextProps: Readonly<{
121
- alt?: string;
122
- className?: string;
123
- width?: number;
124
- height?: number;
125
- }>, nextState: Readonly<{}>, nextContext: any): boolean;
126
- componentWillUnmount?(): void;
127
- componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void;
128
- getSnapshotBeforeUpdate?(prevProps: Readonly<{
129
- alt?: string;
130
- className?: string;
131
- width?: number;
132
- height?: number;
133
- }>, prevState: Readonly<{}>): any;
134
- componentDidUpdate?(prevProps: Readonly<{
135
- alt?: string;
136
- className?: string;
137
- width?: number;
138
- height?: number;
139
- }>, prevState: Readonly<{}>, snapshot?: any): void;
140
- componentWillMount?(): void;
141
- UNSAFE_componentWillMount?(): void;
142
- componentWillReceiveProps?(nextProps: Readonly<{
143
- alt?: string;
144
- className?: string;
145
- width?: number;
146
- height?: number;
147
- }>, nextContext: any): void;
148
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<{
149
- alt?: string;
150
- className?: string;
151
- width?: number;
152
- height?: number;
153
- }>, nextContext: any): void;
154
- componentWillUpdate?(nextProps: Readonly<{
155
- alt?: string;
156
- className?: string;
157
- width?: number;
158
- height?: number;
159
- }>, nextState: Readonly<{}>, nextContext: any): void;
160
- UNSAFE_componentWillUpdate?(nextProps: Readonly<{
161
- alt?: string;
162
- className?: string;
163
- width?: number;
164
- height?: number;
165
- }>, nextState: Readonly<{}>, nextContext: any): void;
166
- };
167
- contextType?: import("react").Context<any>;
168
- };
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ChainIconComponent = void 0;
4
- const IconComponent_1 = require("../../IconComponent");
5
- exports.ChainIconComponent = (0, IconComponent_1.IconComponentKlass)({
6
- categoryName: 'chains'
7
- });