@matbea-ui/matbea-ui 0.2.0-dev.976304 → 0.2.0-dev.987039

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.
@@ -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;
@@ -113,6 +115,8 @@ type SelectFieldProps = {
113
115
  defaultValue?: string;
114
116
  placeholder?: string;
115
117
  label?: string;
118
+ searchInput?: boolean;
119
+ searchPlaceholder?: string;
116
120
  error?: string;
117
121
  disabled?: boolean;
118
122
  icon?: React.ReactNode;
@@ -215,7 +219,29 @@ interface ButtonSwitcherProps {
215
219
  }
216
220
  declare const ButtonSwitcher: React.FC<ButtonSwitcherProps>;
217
221
 
218
- declare const Avatar: (props: HTMLAttributes<HTMLDivElement>) => react_jsx_runtime.JSX.Element;
222
+ declare const Avatar: (props: HTMLAttributes<HTMLDivElement> & {
223
+ size?: number;
224
+ }) => react_jsx_runtime.JSX.Element;
225
+
226
+ interface LangCountrySelectProps {
227
+ currentLang: string;
228
+ currentCurrency: string;
229
+ currentCountry: string;
230
+ countries: SelectFieldProps["options"];
231
+ currencies: SelectFieldProps["options"];
232
+ languages: SelectFieldProps["options"];
233
+ handleSave?: ({ lang, currency, country, }: {
234
+ lang: string;
235
+ currency: string;
236
+ country: string;
237
+ }) => void;
238
+ labelLang: string;
239
+ labelCurrency: string;
240
+ labelCountry: string;
241
+ saveText?: string;
242
+ searchPlaceholder?: string;
243
+ }
244
+ declare const LangCountrySelect: React.FC<LangCountrySelectProps>;
219
245
 
220
246
  type ApplicationDataVariant = "primary" | "secondary";
221
247
  interface ApplicationDataProps {
@@ -231,7 +257,7 @@ type ApplicationInfoVariant = "primary" | "secondary";
231
257
 
232
258
  interface ApplicationInfoProps {
233
259
  children: React.ReactNode;
234
- actions: React.ReactNode;
260
+ actions?: React.ReactNode;
235
261
  variant?: ApplicationInfoVariant;
236
262
  }
237
263
  declare const ApplicationInfo: React.FC<ApplicationInfoProps>;
@@ -286,6 +312,33 @@ interface TransactionStatusProps {
286
312
  }
287
313
  declare const TransactionStatus: React.FC<TransactionStatusProps>;
288
314
 
315
+ interface InputMessageProps {
316
+ onChangeMessage?: (value: string) => void;
317
+ message?: string;
318
+ onChangeFiles?: (files: File[]) => void;
319
+ files?: File[];
320
+ handleClickEmoji?: (value: string) => void;
321
+ onSend?: () => void;
322
+ }
323
+ declare const InputMessage: React.FC<InputMessageProps>;
324
+
325
+ type MessageVariant = "self" | "other";
326
+
327
+ interface ChatMessageProps {
328
+ children: React.ReactNode;
329
+ variant?: MessageVariant;
330
+ longName?: string;
331
+ date?: string;
332
+ }
333
+ declare const ChatMessage: React.FC<ChatMessageProps>;
334
+
335
+ interface ChatProps {
336
+ children: React.ReactNode;
337
+ inputMessage: React.ReactNode;
338
+ longName: string;
339
+ }
340
+ declare const Chat: React.FC<ChatProps>;
341
+
289
342
  declare const maskEmail: (email: string, keep?: number, stars?: number) => string;
290
343
  declare const formatCardNumber: (cardNum: number) => string;
291
344
  declare const copyToClipboard: (text: string) => Promise<void>;
@@ -331,15 +384,15 @@ declare const theme: {
331
384
  };
332
385
  readonly media: {
333
386
  readonly maxWidth: {
334
- readonly mobile: "@media (max-width: 375px)";
335
- readonly tablet: "@media (max-width: 834px)";
387
+ readonly mobile: "@media (max-width: 576px)";
388
+ readonly tablet: "@media (max-width: 1023px)";
336
389
  };
337
390
  };
338
391
  };
339
392
  type AppTheme = typeof theme;
340
393
 
341
394
  interface IconProps extends react__default.SVGProps<SVGSVGElement> {
342
- size?: number | string;
395
+ size?: number;
343
396
  children?: react__default.ReactNode;
344
397
  }
345
398
 
@@ -678,27 +731,7 @@ declare const StyledProvider: ({ children }: {
678
731
  children: React.ReactNode;
679
732
  }) => react_jsx_runtime.JSX.Element;
680
733
 
681
- declare const breakpoints: {
682
- mobile: {
683
- max: number;
684
- scale: number;
685
- };
686
- tablet: {
687
- min: number;
688
- max: number;
689
- scale: number;
690
- };
691
- desktop: {
692
- min: number;
693
- max: number;
694
- scale: number;
695
- };
696
- wide: {
697
- min: number;
698
- scale: number;
699
- };
700
- };
701
734
  declare const GlobalStyles: react.NamedExoticComponent<styled_components.ExecutionProps & object>;
702
735
 
703
- 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, breakpoints, copyToClipboard, createAdaptiveScalePlugin, formatCardNumber, maskEmail, theme };
704
- export type { AppTheme, ApplicationDataProps, ApplicationInfoProps, ApplicationStatusProps, CurrencyNameProps, InformerProps, InformerType, RequisitesProps, SelectFieldProps, SelectOption, TextFieldProps, TransactionStatusProps, TypographyVariant };
736
+ 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, LangCountrySelect, 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 };
737
+ export type { AppTheme, ApplicationDataProps, ApplicationInfoProps, ApplicationStatusProps, ChatProps, CurrencyNameProps, InformerProps, InformerType, LangCountrySelectProps, 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.976304",
3
+ "version": "0.2.0-dev.987039",
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",