@matbea-ui/matbea-ui 0.2.0-dev.468896 → 0.2.0-dev.54196
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 +22425 -124
- package/dist/matbea-ui.cjs.js.map +1 -1
- package/dist/matbea-ui.es.js +22364 -73
- package/dist/matbea-ui.es.js.map +1 -1
- package/dist/types/index.d.ts +87 -8
- package/package.json +4 -3
package/dist/types/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as react from 'react';
|
|
3
|
-
import react__default, { ReactNode, ButtonHTMLAttributes, ChangeEvent, FocusEventHandler } from 'react';
|
|
3
|
+
import react__default, { ReactNode, ButtonHTMLAttributes, ChangeEvent, FocusEventHandler, HTMLAttributes } from 'react';
|
|
4
4
|
import * as styled_components_dist_types from 'styled-components/dist/types';
|
|
5
5
|
import * as styled_components from 'styled-components';
|
|
6
|
+
import { Middleware } from 'stylis';
|
|
6
7
|
|
|
7
8
|
type ButtonVariant = "primary" | "secondary" | "tertiary";
|
|
8
9
|
type ButtonSize = "default" | "medium" | "small";
|
|
@@ -17,8 +18,10 @@ type ButtonProps = {
|
|
|
17
18
|
icon?: ReactNode;
|
|
18
19
|
iconPosition?: IconPosition;
|
|
19
20
|
children?: ReactNode;
|
|
21
|
+
ref?: React.Ref<HTMLButtonElement>;
|
|
22
|
+
disabled?: boolean;
|
|
20
23
|
} & ButtonHTMLAttributes<HTMLButtonElement>;
|
|
21
|
-
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;
|
|
22
25
|
|
|
23
26
|
type CopyTooltipProps = {
|
|
24
27
|
label: string;
|
|
@@ -60,8 +63,10 @@ type TextFieldProps = {
|
|
|
60
63
|
defaultValue?: string;
|
|
61
64
|
placeholder?: string;
|
|
62
65
|
label?: string;
|
|
66
|
+
labelVariant?: TypographyVariant;
|
|
63
67
|
error?: string;
|
|
64
68
|
disabled?: boolean;
|
|
69
|
+
labelColor?: string;
|
|
65
70
|
icon?: React.ReactNode;
|
|
66
71
|
action?: React.ReactNode;
|
|
67
72
|
name?: string;
|
|
@@ -205,6 +210,36 @@ declare const Checkbox: React.FC<CheckboxProps>;
|
|
|
205
210
|
|
|
206
211
|
declare const Logo: () => react_jsx_runtime.JSX.Element;
|
|
207
212
|
|
|
213
|
+
interface ButtonSwitcherProps {
|
|
214
|
+
active: boolean;
|
|
215
|
+
leftButtonLabel: string | React.ReactNode;
|
|
216
|
+
rightButtonLabel: string | React.ReactNode;
|
|
217
|
+
}
|
|
218
|
+
declare const ButtonSwitcher: React.FC<ButtonSwitcherProps>;
|
|
219
|
+
|
|
220
|
+
declare const Avatar: (props: HTMLAttributes<HTMLDivElement> & {
|
|
221
|
+
size?: number;
|
|
222
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
223
|
+
|
|
224
|
+
interface LangCountrySelectProps {
|
|
225
|
+
currentLang: string;
|
|
226
|
+
currentCurrency: string;
|
|
227
|
+
currentCountry: string;
|
|
228
|
+
countries: SelectFieldProps["options"];
|
|
229
|
+
currencies: SelectFieldProps["options"];
|
|
230
|
+
languages: SelectFieldProps["options"];
|
|
231
|
+
handleSave?: ({ lang, currency, country, }: {
|
|
232
|
+
lang: string;
|
|
233
|
+
currency: string;
|
|
234
|
+
country: string;
|
|
235
|
+
}) => void;
|
|
236
|
+
labelLang: string;
|
|
237
|
+
labelCurrency: string;
|
|
238
|
+
labelCountry: string;
|
|
239
|
+
saveText?: string;
|
|
240
|
+
}
|
|
241
|
+
declare const LangCountrySelect: React.FC<LangCountrySelectProps>;
|
|
242
|
+
|
|
208
243
|
type ApplicationDataVariant = "primary" | "secondary";
|
|
209
244
|
interface ApplicationDataProps {
|
|
210
245
|
label: string;
|
|
@@ -219,7 +254,7 @@ type ApplicationInfoVariant = "primary" | "secondary";
|
|
|
219
254
|
|
|
220
255
|
interface ApplicationInfoProps {
|
|
221
256
|
children: React.ReactNode;
|
|
222
|
-
actions
|
|
257
|
+
actions?: React.ReactNode;
|
|
223
258
|
variant?: ApplicationInfoVariant;
|
|
224
259
|
}
|
|
225
260
|
declare const ApplicationInfo: React.FC<ApplicationInfoProps>;
|
|
@@ -274,6 +309,33 @@ interface TransactionStatusProps {
|
|
|
274
309
|
}
|
|
275
310
|
declare const TransactionStatus: React.FC<TransactionStatusProps>;
|
|
276
311
|
|
|
312
|
+
interface InputMessageProps {
|
|
313
|
+
onChangeMessage?: (value: string) => void;
|
|
314
|
+
message?: string;
|
|
315
|
+
onChangeFiles?: (files: File[]) => void;
|
|
316
|
+
files?: File[];
|
|
317
|
+
handleClickEmoji?: (value: string) => void;
|
|
318
|
+
onSend?: () => void;
|
|
319
|
+
}
|
|
320
|
+
declare const InputMessage: React.FC<InputMessageProps>;
|
|
321
|
+
|
|
322
|
+
type MessageVariant = "self" | "other";
|
|
323
|
+
|
|
324
|
+
interface ChatMessageProps {
|
|
325
|
+
children: React.ReactNode;
|
|
326
|
+
variant?: MessageVariant;
|
|
327
|
+
longName?: string;
|
|
328
|
+
date?: string;
|
|
329
|
+
}
|
|
330
|
+
declare const ChatMessage: React.FC<ChatMessageProps>;
|
|
331
|
+
|
|
332
|
+
interface ChatProps {
|
|
333
|
+
children: React.ReactNode;
|
|
334
|
+
inputMessage: React.ReactNode;
|
|
335
|
+
longName: string;
|
|
336
|
+
}
|
|
337
|
+
declare const Chat: React.FC<ChatProps>;
|
|
338
|
+
|
|
277
339
|
declare const maskEmail: (email: string, keep?: number, stars?: number) => string;
|
|
278
340
|
declare const formatCardNumber: (cardNum: number) => string;
|
|
279
341
|
declare const copyToClipboard: (text: string) => Promise<void>;
|
|
@@ -319,15 +381,15 @@ declare const theme: {
|
|
|
319
381
|
};
|
|
320
382
|
readonly media: {
|
|
321
383
|
readonly maxWidth: {
|
|
322
|
-
readonly mobile: "@media (max-width:
|
|
323
|
-
readonly tablet: "@media (max-width:
|
|
384
|
+
readonly mobile: "@media (max-width: 576px)";
|
|
385
|
+
readonly tablet: "@media (max-width: 1023px)";
|
|
324
386
|
};
|
|
325
387
|
};
|
|
326
388
|
};
|
|
327
389
|
type AppTheme = typeof theme;
|
|
328
390
|
|
|
329
391
|
interface IconProps extends react__default.SVGProps<SVGSVGElement> {
|
|
330
|
-
size?: number
|
|
392
|
+
size?: number;
|
|
331
393
|
children?: react__default.ReactNode;
|
|
332
394
|
}
|
|
333
395
|
|
|
@@ -651,5 +713,22 @@ declare const ZilliqaIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
|
651
713
|
|
|
652
714
|
declare const ZrxIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
653
715
|
|
|
654
|
-
|
|
655
|
-
|
|
716
|
+
declare const CONFIG: {
|
|
717
|
+
minFontSize: number;
|
|
718
|
+
minLineHeight: number;
|
|
719
|
+
minValue: number;
|
|
720
|
+
excludeProps: string[];
|
|
721
|
+
scaleVariable: string;
|
|
722
|
+
vhVariable: string;
|
|
723
|
+
};
|
|
724
|
+
declare const adaptiveScalePlugin: Middleware;
|
|
725
|
+
declare const createAdaptiveScalePlugin: (customConfig?: Partial<typeof CONFIG>) => Middleware;
|
|
726
|
+
|
|
727
|
+
declare const StyledProvider: ({ children }: {
|
|
728
|
+
children: React.ReactNode;
|
|
729
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
730
|
+
|
|
731
|
+
declare const GlobalStyles: react.NamedExoticComponent<styled_components.ExecutionProps & object>;
|
|
732
|
+
|
|
733
|
+
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 };
|
|
734
|
+
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.
|
|
3
|
+
"version": "0.2.0-dev.054196",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/matbea-ui.cjs.js",
|
|
@@ -28,7 +28,6 @@
|
|
|
28
28
|
"build:watch": "rollup -c --watch",
|
|
29
29
|
"lint": "eslint .",
|
|
30
30
|
"lint:fix": "eslint . --fix",
|
|
31
|
-
"prepublishOnly": "npm run lint && npm run build",
|
|
32
31
|
"clean": "rm -rf dist",
|
|
33
32
|
"generate:icons": "node scripts/generate-icons.cjs",
|
|
34
33
|
"dev:publish": "node scripts/dev-publish.js dev",
|
|
@@ -45,8 +44,10 @@
|
|
|
45
44
|
"styled-components": "^6"
|
|
46
45
|
},
|
|
47
46
|
"dependencies": {
|
|
47
|
+
"emoji-picker-react": "^4.16.1",
|
|
48
48
|
"lodash": "^4.17.21",
|
|
49
|
-
"react-tooltip": "^5.30.0"
|
|
49
|
+
"react-tooltip": "^5.30.0",
|
|
50
|
+
"styled-components": "^6.1.19"
|
|
50
51
|
},
|
|
51
52
|
"devDependencies": {
|
|
52
53
|
"@chromatic-com/storybook": "^4.1.3",
|