@matbea-ui/matbea-ui 0.2.0-dev.519215 → 0.2.0-dev.619284
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 +260 -50
- package/dist/matbea-ui.cjs.js.map +1 -1
- package/dist/matbea-ui.es.js +255 -52
- package/dist/matbea-ui.es.js.map +1 -1
- package/dist/types/index.d.ts +50 -2
- package/package.json +2 -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";
|
|
@@ -60,6 +61,7 @@ type TextFieldProps = {
|
|
|
60
61
|
defaultValue?: string;
|
|
61
62
|
placeholder?: string;
|
|
62
63
|
label?: string;
|
|
64
|
+
labelVariant?: TypographyVariant;
|
|
63
65
|
error?: string;
|
|
64
66
|
disabled?: boolean;
|
|
65
67
|
icon?: React.ReactNode;
|
|
@@ -205,6 +207,15 @@ declare const Checkbox: React.FC<CheckboxProps>;
|
|
|
205
207
|
|
|
206
208
|
declare const Logo: () => react_jsx_runtime.JSX.Element;
|
|
207
209
|
|
|
210
|
+
interface ButtonSwitcherProps {
|
|
211
|
+
active: boolean;
|
|
212
|
+
leftButtonLabel: string | React.ReactNode;
|
|
213
|
+
rightButtonLabel: string | React.ReactNode;
|
|
214
|
+
}
|
|
215
|
+
declare const ButtonSwitcher: React.FC<ButtonSwitcherProps>;
|
|
216
|
+
|
|
217
|
+
declare const Avatar: (props: HTMLAttributes<HTMLDivElement>) => react_jsx_runtime.JSX.Element;
|
|
218
|
+
|
|
208
219
|
type ApplicationDataVariant = "primary" | "secondary";
|
|
209
220
|
interface ApplicationDataProps {
|
|
210
221
|
label: string;
|
|
@@ -651,5 +662,42 @@ declare const ZilliqaIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
|
651
662
|
|
|
652
663
|
declare const ZrxIcon: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
653
664
|
|
|
654
|
-
|
|
665
|
+
declare const CONFIG: {
|
|
666
|
+
minFontSize: number;
|
|
667
|
+
minLineHeight: number;
|
|
668
|
+
minValue: number;
|
|
669
|
+
excludeProps: string[];
|
|
670
|
+
scaleVariable: string;
|
|
671
|
+
vhVariable: string;
|
|
672
|
+
};
|
|
673
|
+
declare const adaptiveScalePlugin: Middleware;
|
|
674
|
+
declare const createAdaptiveScalePlugin: (customConfig?: Partial<typeof CONFIG>) => Middleware;
|
|
675
|
+
|
|
676
|
+
declare const StyledProvider: ({ children }: {
|
|
677
|
+
children: React.ReactNode;
|
|
678
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
679
|
+
|
|
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
|
+
declare const GlobalStyles: react.NamedExoticComponent<styled_components.ExecutionProps & object>;
|
|
701
|
+
|
|
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, breakpoints, copyToClipboard, createAdaptiveScalePlugin, formatCardNumber, maskEmail, theme };
|
|
655
703
|
export type { AppTheme, ApplicationDataProps, ApplicationInfoProps, ApplicationStatusProps, 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.619284",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/matbea-ui.cjs.js",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"dist"
|
|
20
20
|
],
|
|
21
21
|
"scripts": {
|
|
22
|
-
"
|
|
22
|
+
"sb": "storybook dev -p 6006",
|
|
23
23
|
"build-storybook": "storybook build",
|
|
24
24
|
"test": "vitest",
|
|
25
25
|
"test:ui": "vitest --ui",
|
|
@@ -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",
|