@matbea-ui/matbea-ui 0.2.0-dev.619284 → 0.2.0-dev.833803
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/matbea-ui.cjs.js +22226 -236
- package/dist/matbea-ui.cjs.js.map +1 -1
- package/dist/matbea-ui.es.js +22171 -183
- package/dist/matbea-ui.es.js.map +1 -1
- package/dist/types/index.d.ts +40 -28
- package/package.json +4 -2
package/dist/types/index.d.ts
CHANGED
|
@@ -18,8 +18,10 @@ type ButtonProps = {
|
|
|
18
18
|
icon?: ReactNode;
|
|
19
19
|
iconPosition?: IconPosition;
|
|
20
20
|
children?: ReactNode;
|
|
21
|
+
ref?: React.Ref<HTMLButtonElement>;
|
|
22
|
+
disabled?: boolean;
|
|
21
23
|
} & ButtonHTMLAttributes<HTMLButtonElement>;
|
|
22
|
-
declare const Button: ({ variant, size, form, fullWidth, icon, iconPosition, children, disabled, ...rest }: ButtonProps) => react_jsx_runtime.JSX.Element;
|
|
24
|
+
declare const Button: ({ variant, size, form, fullWidth, icon, iconPosition, children, disabled, ref, ...rest }: ButtonProps) => react_jsx_runtime.JSX.Element;
|
|
23
25
|
|
|
24
26
|
type CopyTooltipProps = {
|
|
25
27
|
label: string;
|
|
@@ -64,6 +66,7 @@ type TextFieldProps = {
|
|
|
64
66
|
labelVariant?: TypographyVariant;
|
|
65
67
|
error?: string;
|
|
66
68
|
disabled?: boolean;
|
|
69
|
+
labelColor?: string;
|
|
67
70
|
icon?: React.ReactNode;
|
|
68
71
|
action?: React.ReactNode;
|
|
69
72
|
name?: string;
|
|
@@ -214,7 +217,9 @@ interface ButtonSwitcherProps {
|
|
|
214
217
|
}
|
|
215
218
|
declare const ButtonSwitcher: React.FC<ButtonSwitcherProps>;
|
|
216
219
|
|
|
217
|
-
declare const Avatar: (props: HTMLAttributes<HTMLDivElement>
|
|
220
|
+
declare const Avatar: (props: HTMLAttributes<HTMLDivElement> & {
|
|
221
|
+
size?: number;
|
|
222
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
218
223
|
|
|
219
224
|
type ApplicationDataVariant = "primary" | "secondary";
|
|
220
225
|
interface ApplicationDataProps {
|
|
@@ -230,7 +235,7 @@ type ApplicationInfoVariant = "primary" | "secondary";
|
|
|
230
235
|
|
|
231
236
|
interface ApplicationInfoProps {
|
|
232
237
|
children: React.ReactNode;
|
|
233
|
-
actions
|
|
238
|
+
actions?: React.ReactNode;
|
|
234
239
|
variant?: ApplicationInfoVariant;
|
|
235
240
|
}
|
|
236
241
|
declare const ApplicationInfo: React.FC<ApplicationInfoProps>;
|
|
@@ -285,6 +290,33 @@ interface TransactionStatusProps {
|
|
|
285
290
|
}
|
|
286
291
|
declare const TransactionStatus: React.FC<TransactionStatusProps>;
|
|
287
292
|
|
|
293
|
+
interface InputMessageProps {
|
|
294
|
+
onChangeMessage?: (value: string) => void;
|
|
295
|
+
message?: string;
|
|
296
|
+
onChangeFiles?: (files: File[]) => void;
|
|
297
|
+
files?: File[];
|
|
298
|
+
handleClickEmoji?: (value: string) => void;
|
|
299
|
+
onSend?: () => void;
|
|
300
|
+
}
|
|
301
|
+
declare const InputMessage: React.FC<InputMessageProps>;
|
|
302
|
+
|
|
303
|
+
type MessageVariant = "self" | "other";
|
|
304
|
+
|
|
305
|
+
interface ChatMessageProps {
|
|
306
|
+
children: React.ReactNode;
|
|
307
|
+
variant?: MessageVariant;
|
|
308
|
+
longName?: string;
|
|
309
|
+
date?: string;
|
|
310
|
+
}
|
|
311
|
+
declare const ChatMessage: React.FC<ChatMessageProps>;
|
|
312
|
+
|
|
313
|
+
interface ChatProps {
|
|
314
|
+
children: React.ReactNode;
|
|
315
|
+
inputMessage: React.ReactNode;
|
|
316
|
+
longName: string;
|
|
317
|
+
}
|
|
318
|
+
declare const Chat: React.FC<ChatProps>;
|
|
319
|
+
|
|
288
320
|
declare const maskEmail: (email: string, keep?: number, stars?: number) => string;
|
|
289
321
|
declare const formatCardNumber: (cardNum: number) => string;
|
|
290
322
|
declare const copyToClipboard: (text: string) => Promise<void>;
|
|
@@ -330,15 +362,15 @@ declare const theme: {
|
|
|
330
362
|
};
|
|
331
363
|
readonly media: {
|
|
332
364
|
readonly maxWidth: {
|
|
333
|
-
readonly mobile: "@media (max-width:
|
|
334
|
-
readonly tablet: "@media (max-width:
|
|
365
|
+
readonly mobile: "@media (max-width: 576px)";
|
|
366
|
+
readonly tablet: "@media (max-width: 1023px)";
|
|
335
367
|
};
|
|
336
368
|
};
|
|
337
369
|
};
|
|
338
370
|
type AppTheme = typeof theme;
|
|
339
371
|
|
|
340
372
|
interface IconProps extends react__default.SVGProps<SVGSVGElement> {
|
|
341
|
-
size?: number
|
|
373
|
+
size?: number;
|
|
342
374
|
children?: react__default.ReactNode;
|
|
343
375
|
}
|
|
344
376
|
|
|
@@ -677,27 +709,7 @@ declare const StyledProvider: ({ children }: {
|
|
|
677
709
|
children: React.ReactNode;
|
|
678
710
|
}) => react_jsx_runtime.JSX.Element;
|
|
679
711
|
|
|
680
|
-
declare const breakpoints: {
|
|
681
|
-
mobile: {
|
|
682
|
-
max: number;
|
|
683
|
-
scale: number;
|
|
684
|
-
};
|
|
685
|
-
tablet: {
|
|
686
|
-
min: number;
|
|
687
|
-
max: number;
|
|
688
|
-
scale: number;
|
|
689
|
-
};
|
|
690
|
-
desktop: {
|
|
691
|
-
min: number;
|
|
692
|
-
max: number;
|
|
693
|
-
scale: number;
|
|
694
|
-
};
|
|
695
|
-
wide: {
|
|
696
|
-
min: number;
|
|
697
|
-
scale: number;
|
|
698
|
-
};
|
|
699
|
-
};
|
|
700
712
|
declare const GlobalStyles: react.NamedExoticComponent<styled_components.ExecutionProps & object>;
|
|
701
713
|
|
|
702
|
-
export { AaveIcon, AlgorandIcon, ApplicationData, ApplicationInfo, ApplicationStatus, ArrowIcon, AttachIcon, AvalancheIcon, Avatar, BalanceRow, BatIcon, BitcoinIcon, BnbSmallIcon, BtgIcon, BusdIcon, Button, ButtonSwitcher, CakeIcon, CardanoIcon, ChainlinkIcon, CheckIcon, Checkbox, CircleSendCryptoIcon, ClockIcon, Close2Icon, CloseIcon, Container, CopyIcon, CopyTooltip, CosmosIcon, Counter, CountryBrIcon, CountryCzechIcon, CountryKzIcon, CountryRusIcon, CurrencyName, CurrencyRate, DashSmallIcon, DashboardIcon, DecentralandIcon, DepositIcon, DepositSimpleIcon, DigibyteIcon, DogeSmallIcon, DropdownIcon, DropdownSmallIcon, DropdownUpIcon, EditIcon, ElrondIcon, EmojiIcon, EnjinIcon, EosIcon, ErrorBigIcon, EtcIcon, EthIcon, EurIcon, ExchangeArrowsIcon, ExchangeIcon, ExchangeSimpleIcon, FantomIcon, FilecoinIcon, FtxIcon, GlobalStyles, HamburgerButton, HamburgerIcon, HeadphonesIcon, HederaIcon, HideUiIcon, HistoryIcon, IcomputerIcon, IconNeoIcon, IcxIcon, IlsIcon, InfoIcon, Informer, IotaIcon, KlaytnIcon, LariIcon, LinkIcon, LiskIcon, LitecoinIcon, Loader, Logo, LogoAbankIcon, LogoAbsolutIcon, LogoAcbaCreditIcon, LogoAlphabankIcon, LogoArmEconomBankIcon, LogoArshidBankIcon, LogoBankcentercreditIcon, LogoBankofGeorgiaIcon, LogoEurobankIcon, LogoForteBankIcon, LogoHalykBankIcon, LogoHomecreditIcon, LogoHumoCardIcon, LogoJysanBankIcon, LogoKaspiBankIcon, LogoMonobankIcon, LogoMtsbankIcon, LogoNetellerIcon, LogoOshadbankIcon, LogoOtkrutieIcon, LogoPochtabankIcon, LogoPrivatebankIcon, LogoPumbIcon, LogoQiwiIcon, LogoRayfuzenbankIcon, LogoRevolutIcon, LogoRnkbIcon, LogoRosbankIcon, LogoRosselhozbankIcon, LogoRusstandartIcon, LogoSberIcon, LogoSbpIcon, LogoSotovuyIcon, LogoTbcBankIcon, LogoTinkoffIcon, LogoUkrsibbankIcon, LogoUzCardIcon, LogoVtbIcon, LogoWiseIcon, LogoYoumoneyIcon, LogoutIcon, LunaIcon, MakerIcon, MaticIcon, MessageSendIcon, NearIcon, NemIcon, OmgnetworkIcon, OmiseIcon, OntologyIcon, P2PIcon, PaxgIcon, PlusIcon, PolkaIcon, QnekworkIcon, QutumIcon, RadioButton, ReciveCryptoIcon, Requisites, RippleIcon, RubIcon, SandboxIcon, ScanQrIcon, SearchIcon, SelectField, SendCryptoIcon, SettingsIcon, ShowUiIcon, SolanaIcon, StellarIcon, StepnIcon, StyledProvider, SuccessfullBigIcon, SuccessfullSmallIcon, SushiIcon, Switcher, SynthetixIcon, TabList, Table, TetherIcon, TextField, TezosIcon, ThegraphIcon, ThetaIcon, Tooltip, TopUpIcon, TransactionStatus, TrxSmallIcon, Typography, UniswapIcon, UpSmallIcon, UsdIcon, UsdcIcon, UserAccount, UserIcon, UsersIcon, VechainIcon, WalletFillIcon, WalletIcon, WarningIcon, WavesIcon, WithdrawIcon, WithdrawSimpleIcon, XmrSmallIcon, ZcashSmallIcon, ZilliqaIcon, ZrxIcon, adaptiveScalePlugin,
|
|
703
|
-
export type { AppTheme, ApplicationDataProps, ApplicationInfoProps, ApplicationStatusProps, CurrencyNameProps, InformerProps, InformerType, RequisitesProps, SelectFieldProps, SelectOption, TextFieldProps, TransactionStatusProps, TypographyVariant };
|
|
714
|
+
export { AaveIcon, AlgorandIcon, ApplicationData, ApplicationInfo, ApplicationStatus, ArrowIcon, AttachIcon, AvalancheIcon, Avatar, BalanceRow, BatIcon, BitcoinIcon, BnbSmallIcon, BtgIcon, BusdIcon, Button, ButtonSwitcher, CakeIcon, CardanoIcon, ChainlinkIcon, Chat, ChatMessage, CheckIcon, Checkbox, CircleSendCryptoIcon, ClockIcon, Close2Icon, CloseIcon, Container, CopyIcon, CopyTooltip, CosmosIcon, Counter, CountryBrIcon, CountryCzechIcon, CountryKzIcon, CountryRusIcon, CurrencyName, CurrencyRate, DashSmallIcon, DashboardIcon, DecentralandIcon, DepositIcon, DepositSimpleIcon, DigibyteIcon, DogeSmallIcon, DropdownIcon, DropdownSmallIcon, DropdownUpIcon, EditIcon, ElrondIcon, EmojiIcon, EnjinIcon, EosIcon, ErrorBigIcon, EtcIcon, EthIcon, EurIcon, ExchangeArrowsIcon, ExchangeIcon, ExchangeSimpleIcon, FantomIcon, FilecoinIcon, FtxIcon, GlobalStyles, HamburgerButton, HamburgerIcon, HeadphonesIcon, HederaIcon, HideUiIcon, HistoryIcon, IcomputerIcon, IconNeoIcon, IcxIcon, IlsIcon, InfoIcon, Informer, InputMessage, IotaIcon, KlaytnIcon, LariIcon, LinkIcon, LiskIcon, LitecoinIcon, Loader, Logo, LogoAbankIcon, LogoAbsolutIcon, LogoAcbaCreditIcon, LogoAlphabankIcon, LogoArmEconomBankIcon, LogoArshidBankIcon, LogoBankcentercreditIcon, LogoBankofGeorgiaIcon, LogoEurobankIcon, LogoForteBankIcon, LogoHalykBankIcon, LogoHomecreditIcon, LogoHumoCardIcon, LogoJysanBankIcon, LogoKaspiBankIcon, LogoMonobankIcon, LogoMtsbankIcon, LogoNetellerIcon, LogoOshadbankIcon, LogoOtkrutieIcon, LogoPochtabankIcon, LogoPrivatebankIcon, LogoPumbIcon, LogoQiwiIcon, LogoRayfuzenbankIcon, LogoRevolutIcon, LogoRnkbIcon, LogoRosbankIcon, LogoRosselhozbankIcon, LogoRusstandartIcon, LogoSberIcon, LogoSbpIcon, LogoSotovuyIcon, LogoTbcBankIcon, LogoTinkoffIcon, LogoUkrsibbankIcon, LogoUzCardIcon, LogoVtbIcon, LogoWiseIcon, LogoYoumoneyIcon, LogoutIcon, LunaIcon, MakerIcon, MaticIcon, MessageSendIcon, NearIcon, NemIcon, OmgnetworkIcon, OmiseIcon, OntologyIcon, P2PIcon, PaxgIcon, PlusIcon, PolkaIcon, QnekworkIcon, QutumIcon, RadioButton, ReciveCryptoIcon, Requisites, RippleIcon, RubIcon, SandboxIcon, ScanQrIcon, SearchIcon, SelectField, SendCryptoIcon, SettingsIcon, ShowUiIcon, SolanaIcon, StellarIcon, StepnIcon, StyledProvider, SuccessfullBigIcon, SuccessfullSmallIcon, SushiIcon, Switcher, SynthetixIcon, TabList, Table, TetherIcon, TextField, TezosIcon, ThegraphIcon, ThetaIcon, Tooltip, TopUpIcon, TransactionStatus, TrxSmallIcon, Typography, UniswapIcon, UpSmallIcon, UsdIcon, UsdcIcon, UserAccount, UserIcon, UsersIcon, VechainIcon, WalletFillIcon, WalletIcon, WarningIcon, WavesIcon, WithdrawIcon, WithdrawSimpleIcon, XmrSmallIcon, ZcashSmallIcon, ZilliqaIcon, ZrxIcon, adaptiveScalePlugin, copyToClipboard, createAdaptiveScalePlugin, formatCardNumber, maskEmail, theme };
|
|
715
|
+
export type { AppTheme, ApplicationDataProps, ApplicationInfoProps, ApplicationStatusProps, ChatProps, CurrencyNameProps, InformerProps, InformerType, RequisitesProps, SelectFieldProps, SelectOption, TextFieldProps, TransactionStatusProps, TypographyVariant };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@matbea-ui/matbea-ui",
|
|
3
|
-
"version": "0.2.0-dev.
|
|
3
|
+
"version": "0.2.0-dev.833803",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/matbea-ui.cjs.js",
|
|
@@ -44,8 +44,10 @@
|
|
|
44
44
|
"styled-components": "^6"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
+
"emoji-picker-react": "^4.16.1",
|
|
47
48
|
"lodash": "^4.17.21",
|
|
48
|
-
"react-tooltip": "^5.30.0"
|
|
49
|
+
"react-tooltip": "^5.30.0",
|
|
50
|
+
"styled-components": "^6.1.19"
|
|
49
51
|
},
|
|
50
52
|
"devDependencies": {
|
|
51
53
|
"@chromatic-com/storybook": "^4.1.3",
|