@necto-react/components 1.2.12 → 1.2.14
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/dist/index.cjs +478 -235
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +203 -65
- package/dist/index.d.ts +203 -65
- package/dist/index.js +478 -235
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -83,14 +83,26 @@ interface ElseProps {
|
|
|
83
83
|
|
|
84
84
|
declare const Else: (props: ElseProps) => ReactElement;
|
|
85
85
|
|
|
86
|
-
|
|
86
|
+
/**
|
|
87
|
+
* Copyright (c) Corinvo, LLC. and affiliates.
|
|
88
|
+
*
|
|
89
|
+
* This source code is licensed under the MIT license found in the
|
|
90
|
+
* LICENSE file in the root directory of this source tree.
|
|
91
|
+
*
|
|
92
|
+
*/
|
|
93
|
+
|
|
94
|
+
type ButtonProps<T extends ElementType = 'button'> = PrimitiveProps<T> & {
|
|
87
95
|
children?: ReactNode;
|
|
88
|
-
|
|
96
|
+
icon?: ReactNode;
|
|
89
97
|
showIcon?: boolean;
|
|
98
|
+
iconPosition?: 'left' | 'right';
|
|
90
99
|
iconSize?: number;
|
|
91
100
|
disabled?: boolean;
|
|
101
|
+
css?: Interpolation<Theme>;
|
|
92
102
|
};
|
|
93
103
|
|
|
104
|
+
type AppleButtonProps<T extends ElementType = 'button'> = ButtonProps<T>;
|
|
105
|
+
|
|
94
106
|
/**
|
|
95
107
|
* Copyright (c) Corinvo, LLC. and affiliates.
|
|
96
108
|
*
|
|
@@ -99,15 +111,9 @@ type AppleButtonProps<T extends ElementType = 'button'> = PrimitiveProps<T> & {
|
|
|
99
111
|
*
|
|
100
112
|
*/
|
|
101
113
|
|
|
102
|
-
declare const AppleButton: ForwardRefExoticComponent<Omit<AppleButtonProps,
|
|
114
|
+
declare const AppleButton: ForwardRefExoticComponent<Omit<AppleButtonProps, 'ref'> & RefAttributes<HTMLButtonElement>>;
|
|
103
115
|
|
|
104
|
-
type AtlassianButtonProps<T extends ElementType = 'button'> =
|
|
105
|
-
children?: ReactNode;
|
|
106
|
-
iconPosition?: 'left' | 'right';
|
|
107
|
-
showIcon?: boolean;
|
|
108
|
-
iconSize?: number;
|
|
109
|
-
disabled?: boolean;
|
|
110
|
-
};
|
|
116
|
+
type AtlassianButtonProps<T extends ElementType = 'button'> = ButtonProps<T>;
|
|
111
117
|
|
|
112
118
|
/**
|
|
113
119
|
* Copyright (c) Corinvo, LLC. and affiliates.
|
|
@@ -117,15 +123,9 @@ type AtlassianButtonProps<T extends ElementType = 'button'> = PrimitiveProps<T>
|
|
|
117
123
|
*
|
|
118
124
|
*/
|
|
119
125
|
|
|
120
|
-
declare const AtlassianButton: ForwardRefExoticComponent<Omit<AtlassianButtonProps,
|
|
126
|
+
declare const AtlassianButton: ForwardRefExoticComponent<Omit<AtlassianButtonProps, 'ref'> & RefAttributes<HTMLButtonElement>>;
|
|
121
127
|
|
|
122
|
-
type BitbucketButtonProps<T extends ElementType = 'button'> =
|
|
123
|
-
children?: ReactNode;
|
|
124
|
-
iconPosition?: 'left' | 'right';
|
|
125
|
-
showIcon?: boolean;
|
|
126
|
-
iconSize?: number;
|
|
127
|
-
disabled?: boolean;
|
|
128
|
-
};
|
|
128
|
+
type BitbucketButtonProps<T extends ElementType = 'button'> = ButtonProps<T>;
|
|
129
129
|
|
|
130
130
|
/**
|
|
131
131
|
* Copyright (c) Corinvo, LLC. and affiliates.
|
|
@@ -135,15 +135,9 @@ type BitbucketButtonProps<T extends ElementType = 'button'> = PrimitiveProps<T>
|
|
|
135
135
|
*
|
|
136
136
|
*/
|
|
137
137
|
|
|
138
|
-
declare const BitbucketButton: ForwardRefExoticComponent<Omit<BitbucketButtonProps,
|
|
138
|
+
declare const BitbucketButton: ForwardRefExoticComponent<Omit<BitbucketButtonProps, 'ref'> & RefAttributes<HTMLButtonElement>>;
|
|
139
139
|
|
|
140
|
-
type DiscordButtonProps<T extends ElementType = 'button'> =
|
|
141
|
-
children?: ReactNode;
|
|
142
|
-
iconPosition?: 'left' | 'right';
|
|
143
|
-
showIcon?: boolean;
|
|
144
|
-
iconSize?: number;
|
|
145
|
-
disabled?: boolean;
|
|
146
|
-
};
|
|
140
|
+
type DiscordButtonProps<T extends ElementType = 'button'> = ButtonProps<T>;
|
|
147
141
|
|
|
148
142
|
/**
|
|
149
143
|
* Copyright (c) Corinvo, LLC. and affiliates.
|
|
@@ -153,15 +147,9 @@ type DiscordButtonProps<T extends ElementType = 'button'> = PrimitiveProps<T> &
|
|
|
153
147
|
*
|
|
154
148
|
*/
|
|
155
149
|
|
|
156
|
-
declare const DiscordButton: ForwardRefExoticComponent<Omit<DiscordButtonProps,
|
|
150
|
+
declare const DiscordButton: ForwardRefExoticComponent<Omit<DiscordButtonProps, 'ref'> & RefAttributes<HTMLButtonElement>>;
|
|
157
151
|
|
|
158
|
-
type DropboxButtonProps<T extends ElementType = 'button'> =
|
|
159
|
-
children?: ReactNode;
|
|
160
|
-
iconPosition?: 'left' | 'right';
|
|
161
|
-
showIcon?: boolean;
|
|
162
|
-
iconSize?: number;
|
|
163
|
-
disabled?: boolean;
|
|
164
|
-
};
|
|
152
|
+
type DropboxButtonProps<T extends ElementType = 'button'> = ButtonProps<T>;
|
|
165
153
|
|
|
166
154
|
/**
|
|
167
155
|
* Copyright (c) Corinvo, LLC. and affiliates.
|
|
@@ -171,15 +159,9 @@ type DropboxButtonProps<T extends ElementType = 'button'> = PrimitiveProps<T> &
|
|
|
171
159
|
*
|
|
172
160
|
*/
|
|
173
161
|
|
|
174
|
-
declare const DropboxButton: ForwardRefExoticComponent<Omit<DropboxButtonProps,
|
|
162
|
+
declare const DropboxButton: ForwardRefExoticComponent<Omit<DropboxButtonProps, 'ref'> & RefAttributes<HTMLButtonElement>>;
|
|
175
163
|
|
|
176
|
-
type FacebookButtonProps<T extends ElementType = 'button'> =
|
|
177
|
-
children?: ReactNode;
|
|
178
|
-
iconPosition?: 'left' | 'right';
|
|
179
|
-
showIcon?: boolean;
|
|
180
|
-
iconSize?: number;
|
|
181
|
-
disabled?: boolean;
|
|
182
|
-
};
|
|
164
|
+
type FacebookButtonProps<T extends ElementType = 'button'> = ButtonProps<T>;
|
|
183
165
|
|
|
184
166
|
/**
|
|
185
167
|
* Copyright (c) Corinvo, LLC. and affiliates.
|
|
@@ -189,14 +171,22 @@ type FacebookButtonProps<T extends ElementType = 'button'> = PrimitiveProps<T> &
|
|
|
189
171
|
*
|
|
190
172
|
*/
|
|
191
173
|
|
|
192
|
-
declare const FacebookButton: ForwardRefExoticComponent<Omit<FacebookButtonProps,
|
|
174
|
+
declare const FacebookButton: ForwardRefExoticComponent<Omit<FacebookButtonProps, 'ref'> & RefAttributes<HTMLButtonElement>>;
|
|
193
175
|
|
|
194
|
-
type GitHubButtonProps<T extends ElementType = 'button'> =
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
176
|
+
type GitHubButtonProps<T extends ElementType = 'button'> = ButtonProps<T>;
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* Copyright (c) Corinvo, LLC. and affiliates.
|
|
180
|
+
*
|
|
181
|
+
* This source code is licensed under the MIT license found in the
|
|
182
|
+
* LICENSE file in the root directory of this source tree.
|
|
183
|
+
*
|
|
184
|
+
*/
|
|
185
|
+
|
|
186
|
+
declare const GitHubButton: ForwardRefExoticComponent<Omit<GitHubButtonProps, 'ref'> & RefAttributes<HTMLButtonElement>>;
|
|
187
|
+
|
|
188
|
+
type GitLabButtonProps<T extends ElementType = 'button'> = ButtonProps<T> & {
|
|
189
|
+
iconColor?: string | null;
|
|
200
190
|
};
|
|
201
191
|
|
|
202
192
|
/**
|
|
@@ -207,14 +197,130 @@ type GitHubButtonProps<T extends ElementType = 'button'> = PrimitiveProps<T> & {
|
|
|
207
197
|
*
|
|
208
198
|
*/
|
|
209
199
|
|
|
210
|
-
declare const
|
|
200
|
+
declare const GitLabButton: ForwardRefExoticComponent<Omit<GitLabButtonProps, 'ref'> & RefAttributes<HTMLButtonElement>>;
|
|
211
201
|
|
|
212
|
-
type
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
202
|
+
type GoogleButtonProps<T extends ElementType = 'button'> = ButtonProps<T>;
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* Copyright (c) Corinvo, LLC. and affiliates.
|
|
206
|
+
*
|
|
207
|
+
* This source code is licensed under the MIT license found in the
|
|
208
|
+
* LICENSE file in the root directory of this source tree.
|
|
209
|
+
*
|
|
210
|
+
*/
|
|
211
|
+
|
|
212
|
+
declare const GoogleButton: ForwardRefExoticComponent<Omit<GoogleButtonProps, 'ref'> & RefAttributes<HTMLButtonElement>>;
|
|
213
|
+
|
|
214
|
+
type HubSpotButtonProps<T extends ElementType = 'button'> = ButtonProps<T>;
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* Copyright (c) Corinvo, LLC. and affiliates.
|
|
218
|
+
*
|
|
219
|
+
* This source code is licensed under the MIT license found in the
|
|
220
|
+
* LICENSE file in the root directory of this source tree.
|
|
221
|
+
*
|
|
222
|
+
*/
|
|
223
|
+
|
|
224
|
+
declare const HubSpotButton: ForwardRefExoticComponent<Omit<HubSpotButtonProps, 'ref'> & RefAttributes<HTMLButtonElement>>;
|
|
225
|
+
|
|
226
|
+
type HuggingFaceButtonProps<T extends ElementType = 'button'> = ButtonProps<T>;
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* Copyright (c) Corinvo, LLC. and affiliates.
|
|
230
|
+
*
|
|
231
|
+
* This source code is licensed under the MIT license found in the
|
|
232
|
+
* LICENSE file in the root directory of this source tree.
|
|
233
|
+
*
|
|
234
|
+
*/
|
|
235
|
+
|
|
236
|
+
declare const HuggingFaceButton: ForwardRefExoticComponent<Omit<HuggingFaceButtonProps, 'ref'> & RefAttributes<HTMLButtonElement>>;
|
|
237
|
+
|
|
238
|
+
type LinkedInButtonProps<T extends ElementType = 'button'> = ButtonProps<T>;
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* Copyright (c) Corinvo, LLC. and affiliates.
|
|
242
|
+
*
|
|
243
|
+
* This source code is licensed under the MIT license found in the
|
|
244
|
+
* LICENSE file in the root directory of this source tree.
|
|
245
|
+
*
|
|
246
|
+
*/
|
|
247
|
+
|
|
248
|
+
declare const LinkedInButton: ForwardRefExoticComponent<Omit<LinkedInButtonProps, 'ref'> & RefAttributes<HTMLButtonElement>>;
|
|
249
|
+
|
|
250
|
+
type MetaMaskButtonProps<T extends ElementType = 'button'> = ButtonProps<T>;
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* Copyright (c) Corinvo, LLC. and affiliates.
|
|
254
|
+
*
|
|
255
|
+
* This source code is licensed under the MIT license found in the
|
|
256
|
+
* LICENSE file in the root directory of this source tree.
|
|
257
|
+
*
|
|
258
|
+
*/
|
|
259
|
+
|
|
260
|
+
declare const MetaMaskButton: ForwardRefExoticComponent<Omit<MetaMaskButtonProps, 'ref'> & RefAttributes<HTMLButtonElement>>;
|
|
261
|
+
|
|
262
|
+
type MicrosoftButtonProps<T extends ElementType = 'button'> = ButtonProps<T>;
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
* Copyright (c) Corinvo, LLC. and affiliates.
|
|
266
|
+
*
|
|
267
|
+
* This source code is licensed under the MIT license found in the
|
|
268
|
+
* LICENSE file in the root directory of this source tree.
|
|
269
|
+
*
|
|
270
|
+
*/
|
|
271
|
+
|
|
272
|
+
declare const MicrosoftButton: ForwardRefExoticComponent<Omit<MicrosoftButtonProps, 'ref'> & RefAttributes<HTMLButtonElement>>;
|
|
273
|
+
|
|
274
|
+
type NotionButtonProps<T extends ElementType = 'button'> = ButtonProps<T>;
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* Copyright (c) Corinvo, LLC. and affiliates.
|
|
278
|
+
*
|
|
279
|
+
* This source code is licensed under the MIT license found in the
|
|
280
|
+
* LICENSE file in the root directory of this source tree.
|
|
281
|
+
*
|
|
282
|
+
*/
|
|
283
|
+
|
|
284
|
+
declare const NotionButton: ForwardRefExoticComponent<Omit<NotionButtonProps, 'ref'> & RefAttributes<HTMLButtonElement>>;
|
|
285
|
+
|
|
286
|
+
type OKXButtonProps<T extends ElementType = 'button'> = ButtonProps<T>;
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* Copyright (c) Corinvo, LLC. and affiliates.
|
|
290
|
+
*
|
|
291
|
+
* This source code is licensed under the MIT license found in the
|
|
292
|
+
* LICENSE file in the root directory of this source tree.
|
|
293
|
+
*
|
|
294
|
+
*/
|
|
295
|
+
|
|
296
|
+
declare const OKXButton: ForwardRefExoticComponent<Omit<OKXButtonProps, 'ref'> & RefAttributes<HTMLButtonElement>>;
|
|
297
|
+
|
|
298
|
+
type SalesforceButtonProps<T extends ElementType = 'button'> = ButtonProps<T>;
|
|
299
|
+
|
|
300
|
+
/**
|
|
301
|
+
* Copyright (c) Corinvo, LLC. and affiliates.
|
|
302
|
+
*
|
|
303
|
+
* This source code is licensed under the MIT license found in the
|
|
304
|
+
* LICENSE file in the root directory of this source tree.
|
|
305
|
+
*
|
|
306
|
+
*/
|
|
307
|
+
|
|
308
|
+
declare const SalesforceButton: ForwardRefExoticComponent<Omit<SalesforceButtonProps, 'ref'> & RefAttributes<HTMLButtonElement>>;
|
|
309
|
+
|
|
310
|
+
type SlackButtonProps<T extends ElementType = 'button'> = ButtonProps<T>;
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* Copyright (c) Corinvo, LLC. and affiliates.
|
|
314
|
+
*
|
|
315
|
+
* This source code is licensed under the MIT license found in the
|
|
316
|
+
* LICENSE file in the root directory of this source tree.
|
|
317
|
+
*
|
|
318
|
+
*/
|
|
319
|
+
|
|
320
|
+
declare const SlackButton: ForwardRefExoticComponent<Omit<SlackButtonProps, 'ref'> & RefAttributes<HTMLButtonElement>>;
|
|
321
|
+
|
|
322
|
+
type SnapchatButtonProps<T extends ElementType = 'button'> = ButtonProps<T> & {
|
|
323
|
+
iconColor?: string | null;
|
|
218
324
|
};
|
|
219
325
|
|
|
220
326
|
/**
|
|
@@ -225,14 +331,22 @@ type GitLabButtonProps<T extends ElementType = 'button'> = PrimitiveProps<T> & {
|
|
|
225
331
|
*
|
|
226
332
|
*/
|
|
227
333
|
|
|
228
|
-
declare const
|
|
334
|
+
declare const SnapchatButton: ForwardRefExoticComponent<Omit<SnapchatButtonProps, 'ref'> & RefAttributes<HTMLButtonElement>>;
|
|
229
335
|
|
|
230
|
-
type
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
336
|
+
type SpotifyButtonProps<T extends ElementType = 'button'> = ButtonProps<T>;
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* Copyright (c) Corinvo, LLC. and affiliates.
|
|
340
|
+
*
|
|
341
|
+
* This source code is licensed under the MIT license found in the
|
|
342
|
+
* LICENSE file in the root directory of this source tree.
|
|
343
|
+
*
|
|
344
|
+
*/
|
|
345
|
+
|
|
346
|
+
declare const SpotifyButton: ForwardRefExoticComponent<Omit<SpotifyButtonProps, 'ref'> & RefAttributes<HTMLButtonElement>>;
|
|
347
|
+
|
|
348
|
+
type TikTokButtonProps<T extends ElementType = 'button'> = ButtonProps<T> & {
|
|
349
|
+
iconColor?: string | null;
|
|
236
350
|
};
|
|
237
351
|
|
|
238
352
|
/**
|
|
@@ -243,6 +357,30 @@ type GoogleButtonProps<T extends ElementType = 'button'> = PrimitiveProps<T> & {
|
|
|
243
357
|
*
|
|
244
358
|
*/
|
|
245
359
|
|
|
246
|
-
declare const
|
|
360
|
+
declare const TikTokButton: ForwardRefExoticComponent<Omit<TikTokButtonProps, 'ref'> & RefAttributes<HTMLButtonElement>>;
|
|
361
|
+
|
|
362
|
+
type TwitchButtonProps<T extends ElementType = 'button'> = ButtonProps<T>;
|
|
363
|
+
|
|
364
|
+
/**
|
|
365
|
+
* Copyright (c) Corinvo, LLC. and affiliates.
|
|
366
|
+
*
|
|
367
|
+
* This source code is licensed under the MIT license found in the
|
|
368
|
+
* LICENSE file in the root directory of this source tree.
|
|
369
|
+
*
|
|
370
|
+
*/
|
|
371
|
+
|
|
372
|
+
declare const TwitchButton: ForwardRefExoticComponent<Omit<TwitchButtonProps, 'ref'> & RefAttributes<HTMLButtonElement>>;
|
|
373
|
+
|
|
374
|
+
type XButtonProps<T extends ElementType = 'button'> = ButtonProps<T>;
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* Copyright (c) Corinvo, LLC. and affiliates.
|
|
378
|
+
*
|
|
379
|
+
* This source code is licensed under the MIT license found in the
|
|
380
|
+
* LICENSE file in the root directory of this source tree.
|
|
381
|
+
*
|
|
382
|
+
*/
|
|
383
|
+
|
|
384
|
+
declare const XButton: ForwardRefExoticComponent<Omit<XButtonProps, 'ref'> & RefAttributes<HTMLButtonElement>>;
|
|
247
385
|
|
|
248
|
-
export { AppleButton, type AppleButtonProps, AtlassianButton, type AtlassianButtonProps, BitbucketButton, type BitbucketButtonProps, DiscordButton, type DiscordButtonProps, DropboxButton, type DropboxButtonProps, Else, type ElseProps, FacebookButton, type FacebookButtonProps, GitHubButton, type GitHubButtonProps, GitLabButton, type GitLabButtonProps, GoogleButton, type GoogleButtonProps, If, type IfProps, Primitive };
|
|
386
|
+
export { AppleButton, type AppleButtonProps, AtlassianButton, type AtlassianButtonProps, BitbucketButton, type BitbucketButtonProps, DiscordButton, type DiscordButtonProps, DropboxButton, type DropboxButtonProps, Else, type ElseProps, FacebookButton, type FacebookButtonProps, GitHubButton, type GitHubButtonProps, GitLabButton, type GitLabButtonProps, GoogleButton, type GoogleButtonProps, HubSpotButton, type HubSpotButtonProps, HuggingFaceButton, type HuggingFaceButtonProps, If, type IfProps, LinkedInButton, type LinkedInButtonProps, MetaMaskButton, type MetaMaskButtonProps, MicrosoftButton, type MicrosoftButtonProps, NotionButton, type NotionButtonProps, OKXButton, type OKXButtonProps, Primitive, SalesforceButton, type SalesforceButtonProps, SlackButton, type SlackButtonProps, SnapchatButton, type SnapchatButtonProps, SpotifyButton, type SpotifyButtonProps, TikTokButton, type TikTokButtonProps, TwitchButton, type TwitchButtonProps, XButton, type XButtonProps };
|