@foxford/ui 2.8.0-beta-aad81f2-20230829 → 2.8.0-beta-d4f31ed-20230905
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/components/ActionBtn/ActionBtn.js.map +1 -1
- package/components/Alert/CountdownCircle.js +1 -1
- package/components/Alert/CountdownCircle.js.map +1 -1
- package/components/Alert/utils.js.map +1 -1
- package/components/Amount/Amount.js.map +1 -1
- package/components/Anchor/Anchor.js.map +1 -1
- package/components/Anchor/style.js.map +1 -1
- package/components/Arrow/style.js +1 -1
- package/components/Arrow/style.js.map +1 -1
- package/components/Avatar/Avatar.js.map +1 -1
- package/components/Badge/Badge.js.map +1 -1
- package/components/Badge/style.js.map +1 -1
- package/components/Button/constants.js.map +1 -1
- package/components/Button/style.js +1 -1
- package/components/Button/style.js.map +1 -1
- package/components/Checkbox/style.js +1 -1
- package/components/Checkbox/style.js.map +1 -1
- package/components/Container/Container.js.map +1 -1
- package/components/Container/style.js.map +1 -1
- package/components/ContextMenu/ContextMenu.js.map +1 -1
- package/components/ContextMenu/Item.js +1 -1
- package/components/ContextMenu/Item.js.map +1 -1
- package/components/ContextMenu.Multilevel/ContextMenu.Multilevel.js.map +1 -1
- package/components/ContextMenu.Multilevel/Controls.js +1 -1
- package/components/ContextMenu.Multilevel/Controls.js.map +1 -1
- package/components/ContextMenu.Multilevel/Heading.js +1 -1
- package/components/ContextMenu.Multilevel/Heading.js.map +1 -1
- package/components/ContextMenu.Multilevel/SubHeading.js +1 -1
- package/components/ContextMenu.Multilevel/SubHeading.js.map +1 -1
- package/components/Icon/Icon.js.map +1 -1
- package/components/Icon/style.js.map +1 -1
- package/components/Input/Input.js.map +1 -1
- package/components/Input/helpers.js.map +1 -1
- package/components/Input/style.js.map +1 -1
- package/components/Modal/Close.js.map +1 -1
- package/components/Modal/Modal.js.map +1 -1
- package/components/Paper/Paper.js.map +1 -1
- package/components/Paper/style.js +1 -1
- package/components/Paper/style.js.map +1 -1
- package/components/Progress/Progress.js.map +1 -1
- package/components/Progress.Circle/Progress.Circle.js.map +1 -1
- package/components/Progress.Segmented/Progress.Segmented.js.map +1 -1
- package/components/Progress.Segmented/style.js +1 -1
- package/components/Progress.Segmented/style.js.map +1 -1
- package/components/Radio/Group.js.map +1 -1
- package/components/Radio/Radio.js.map +1 -1
- package/components/Radio/style.js.map +1 -1
- package/components/Section/Section.js.map +1 -1
- package/components/Section/style.js +1 -1
- package/components/Section/style.js.map +1 -1
- package/components/Select/Select.js.map +1 -1
- package/components/Select/style.js +1 -1
- package/components/Select/style.js.map +1 -1
- package/components/Separator/Separator.js.map +1 -1
- package/components/Separator/SeparatorText.js.map +1 -1
- package/components/Separator/style.js.map +1 -1
- package/components/Spacer/Spacer.js.map +1 -1
- package/components/Spacer/style.js.map +1 -1
- package/components/Spinner/Spinner.js.map +1 -1
- package/components/Spinner/style.js.map +1 -1
- package/components/Switcher/Switcher.js.map +1 -1
- package/components/Tabs/Tabs.js.map +1 -1
- package/components/Tabs/TabsTab.js.map +1 -1
- package/components/Tag/Tag.js +1 -1
- package/components/Tag/Tag.js.map +1 -1
- package/components/Tag/style.js +1 -1
- package/components/Tag/style.js.map +1 -1
- package/components/Text/style.js +1 -1
- package/components/Text/style.js.map +1 -1
- package/components/Textarea/style.js +1 -1
- package/components/Textarea/style.js.map +1 -1
- package/dts/index.d.ts +887 -514
- package/index.cjs.js +1 -1
- package/index.cjs.js.map +1 -1
- package/index.js +1 -1
- package/mixins/color.js.map +1 -1
- package/mixins/display.js.map +1 -1
- package/package.json +1 -1
- package/theme/colors-dark.js.map +1 -1
- package/theme/colors-light.js.map +1 -1
- package/theme/colors.js +1 -1
- package/theme/colors.js.map +1 -1
- package/components/ArrowBadge/ArrowBadge.js +0 -2
- package/components/ArrowBadge/ArrowBadge.js.map +0 -1
- package/components/ArrowBadge/SideShape.js +0 -2
- package/components/ArrowBadge/SideShape.js.map +0 -1
- package/components/ArrowBadge/images/arrow.module.svg.js +0 -2
- package/components/ArrowBadge/images/arrow.module.svg.js.map +0 -1
- package/components/ArrowBadge/images/tail.module.svg.js +0 -2
- package/components/ArrowBadge/images/tail.module.svg.js.map +0 -1
- package/components/ArrowBadge/style.js +0 -2
- package/components/ArrowBadge/style.js.map +0 -1
package/dts/index.d.ts
CHANGED
|
@@ -1,17 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import * as styled_components from 'styled-components';
|
|
3
3
|
import { DefaultTheme, FlattenSimpleInterpolation, CSSObject, SimpleInterpolation, css } from 'styled-components';
|
|
4
|
-
import * as react from 'react';
|
|
5
|
-
import { ForwardRefExoticComponent, PropsWithoutRef, RefAttributes, PureComponent } from 'react';
|
|
6
|
-
import { ResponsiveNamedProperty as ResponsiveNamedProperty$1, ResponsiveProperty as ResponsiveProperty$1 } from 'mixins/responsive-property';
|
|
7
|
-
import { BaseProps as BaseProps$1, Nullable as Nullable$1, FontWeight as FontWeight$1, InputField as InputField$1 } from 'shared/interfaces';
|
|
8
|
-
import { SizeLatin as SizeLatin$1 } from 'shared/enums/sizeLatin';
|
|
9
4
|
import { Link, NavLink } from 'react-router-dom';
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
12
|
-
import { Anchor as Anchor$1 } from 'components/Anchor';
|
|
13
|
-
import { TextHeadingProps } from 'components/Text.Heading';
|
|
14
|
-
import { TextEllipse } from 'components/Text.Ellipse';
|
|
5
|
+
import * as react from 'react';
|
|
6
|
+
import { Component, ForwardRefExoticComponent, PropsWithoutRef, RefAttributes, PureComponent } from 'react';
|
|
15
7
|
import { Classes } from 'react-modal';
|
|
16
8
|
import * as rc_scrollbars_lib_Scrollbars_types from 'rc-scrollbars/lib/Scrollbars/types';
|
|
17
9
|
import * as rc_scrollbars from 'rc-scrollbars';
|
|
@@ -22,72 +14,7 @@ import Floater from 'react-floater';
|
|
|
22
14
|
import { InputState, MaskOptions } from 'react-input-mask';
|
|
23
15
|
import { ReactSelectProps } from 'react-select';
|
|
24
16
|
|
|
25
|
-
|
|
26
|
-
theme: Partial<DefaultTheme> | ((topLevelTheme: DefaultTheme) => DefaultTheme);
|
|
27
|
-
children: React.ReactNode;
|
|
28
|
-
}
|
|
29
|
-
declare function ThemeProvider(props: ThemeProviderProps): JSX.Element;
|
|
30
|
-
|
|
31
|
-
declare const defaultTheme: DefaultTheme;
|
|
32
|
-
declare const motherLightTheme: DefaultTheme;
|
|
33
|
-
declare const motherDarkTheme: DefaultTheme;
|
|
34
|
-
declare const babyLightTheme: DefaultTheme;
|
|
35
|
-
declare const babyDarkTheme: DefaultTheme;
|
|
36
|
-
declare const teenLightTheme: DefaultTheme;
|
|
37
|
-
declare const teenDarkTheme: DefaultTheme;
|
|
38
|
-
declare const adultLightTheme: DefaultTheme;
|
|
39
|
-
declare const adultDarkTheme: DefaultTheme;
|
|
40
|
-
|
|
41
|
-
declare enum ColorNames {
|
|
42
|
-
facebook = "facebook",
|
|
43
|
-
twitter = "twitter",
|
|
44
|
-
youtube = "youtube",
|
|
45
|
-
instagrammagenta = "instagrammagenta",
|
|
46
|
-
instagramblue = "instagramblue",
|
|
47
|
-
instagrampurple = "instagrampurple",
|
|
48
|
-
instagramorange = "instagramorange",
|
|
49
|
-
instagramyellow = "instagramyellow",
|
|
50
|
-
pinterest = "pinterest",
|
|
51
|
-
googleplus = "googleplus",
|
|
52
|
-
linkedin = "linkedin",
|
|
53
|
-
vimeoblue = "vimeoblue",
|
|
54
|
-
vimeogreen = "vimeogreen",
|
|
55
|
-
vimeoorange = "vimeoorange",
|
|
56
|
-
vimeopink = "vimeopink",
|
|
57
|
-
tumblr = "tumblr",
|
|
58
|
-
snapchat = "snapchat",
|
|
59
|
-
whatsappgreen = "whatsappgreen",
|
|
60
|
-
whatsappteal1 = "whatsappteal1",
|
|
61
|
-
whatsappteal2 = "whatsappteal2",
|
|
62
|
-
foursquarepink = "foursquarepink",
|
|
63
|
-
foursquareblue = "foursquareblue",
|
|
64
|
-
swarm = "swarm",
|
|
65
|
-
skypeblue = "skypeblue",
|
|
66
|
-
skypegreen = "skypegreen",
|
|
67
|
-
android = "android",
|
|
68
|
-
stumbleupon = "stumbleupon",
|
|
69
|
-
flickrpink = "flickrpink",
|
|
70
|
-
flickrblue = "flickrblue",
|
|
71
|
-
yahoo = "yahoo",
|
|
72
|
-
soundcloud = "soundcloud",
|
|
73
|
-
spotifygreen = "spotifygreen",
|
|
74
|
-
spotifydarkgreen = "spotifydarkgreen",
|
|
75
|
-
dribbble = "dribbble",
|
|
76
|
-
reddit = "reddit",
|
|
77
|
-
deviantart = "deviantart",
|
|
78
|
-
pocket = "pocket",
|
|
79
|
-
quora = "quora",
|
|
80
|
-
quorablue = "quorablue",
|
|
81
|
-
slideshareorange = "slideshareorange",
|
|
82
|
-
slideshareblue = "slideshareblue",
|
|
83
|
-
telegram = "telegram",
|
|
84
|
-
fivehundredpx = "fivehundredpx",
|
|
85
|
-
listlyorange = "listlyorange",
|
|
86
|
-
listlyblue = "listlyblue",
|
|
87
|
-
vine = "vine",
|
|
88
|
-
vk = "vk",
|
|
89
|
-
ok = "ok",
|
|
90
|
-
mailru = "mailru",
|
|
17
|
+
declare enum DefaultColorNames {
|
|
91
18
|
white = "white",
|
|
92
19
|
black = "black",
|
|
93
20
|
tundora = "tundora",
|
|
@@ -158,6 +85,138 @@ declare enum ColorNames {
|
|
|
158
85
|
baliHai = "baliHai",
|
|
159
86
|
primary = "primary",
|
|
160
87
|
accent = "accent",
|
|
88
|
+
transparent = "transparent"
|
|
89
|
+
}
|
|
90
|
+
declare enum BaseColorNames {
|
|
91
|
+
'content-onmain-primary' = "content-onmain-primary",
|
|
92
|
+
'content-onmain-secondary' = "content-onmain-secondary",
|
|
93
|
+
'content-onmain-tertiary' = "content-onmain-tertiary",
|
|
94
|
+
'content-oncolor-primary' = "content-oncolor-primary",
|
|
95
|
+
'content-oncolor-secondary' = "content-oncolor-secondary",
|
|
96
|
+
'content-oncolor-tertiary' = "content-oncolor-tertiary",
|
|
97
|
+
'content-oncolor-inverse' = "content-oncolor-inverse",
|
|
98
|
+
'content-oncolor-constant' = "content-oncolor-constant",
|
|
99
|
+
'content-disabled' = "content-disabled",
|
|
100
|
+
'content-oncolor-disabled' = "content-oncolor-disabled",
|
|
101
|
+
'content-oncolor-hover' = "content-oncolor-hover",
|
|
102
|
+
'content-onmain-hover' = "content-onmain-hover",
|
|
103
|
+
'content-discount' = "content-discount",
|
|
104
|
+
'content-link' = "content-link",
|
|
105
|
+
'border-onmain-default-large' = "border-onmain-default-large",
|
|
106
|
+
'border-onmain-default-small' = "border-onmain-default-small",
|
|
107
|
+
'border-onmain-contrast' = "border-onmain-contrast",
|
|
108
|
+
'border-disabled' = "border-disabled",
|
|
109
|
+
'border-oncolor-disabled' = "border-oncolor-disabled",
|
|
110
|
+
'border-oncolor-default' = "border-oncolor-default",
|
|
111
|
+
'bg-onmain-main' = "bg-onmain-main",
|
|
112
|
+
'bg-onmain-primary' = "bg-onmain-primary",
|
|
113
|
+
'bg-onmain-secondary' = "bg-onmain-secondary",
|
|
114
|
+
'bg-onmain-tertiary' = "bg-onmain-tertiary",
|
|
115
|
+
'bg-onmain-divider' = "bg-onmain-divider",
|
|
116
|
+
'bg-onmain-contrast' = "bg-onmain-contrast",
|
|
117
|
+
'bg-onmain-inverse' = "bg-onmain-inverse",
|
|
118
|
+
'bg-oncolor-primary' = "bg-oncolor-primary",
|
|
119
|
+
'bg-oncolor-secondary' = "bg-oncolor-secondary",
|
|
120
|
+
'bg-oncolor-tertiary' = "bg-oncolor-tertiary",
|
|
121
|
+
'bg-oncolor-hover' = "bg-oncolor-hover",
|
|
122
|
+
'bg-disabled-large' = "bg-disabled-large",
|
|
123
|
+
'bg-disabled-small' = "bg-disabled-small",
|
|
124
|
+
'bg-disabled-active' = "bg-disabled-active",
|
|
125
|
+
'bg-oncolor-disabled' = "bg-oncolor-disabled",
|
|
126
|
+
'bg-contrast-active' = "bg-contrast-active",
|
|
127
|
+
'bg-oncontrast-hover' = "bg-oncontrast-hover",
|
|
128
|
+
'alert-bg-success-100' = "alert-bg-success-100",
|
|
129
|
+
'alert-bg-success-200' = "alert-bg-success-200",
|
|
130
|
+
'alert-bg-success-500' = "alert-bg-success-500",
|
|
131
|
+
'alert-bg-warning-100' = "alert-bg-warning-100",
|
|
132
|
+
'alert-bg-warning-200' = "alert-bg-warning-200",
|
|
133
|
+
'alert-bg-warning-500' = "alert-bg-warning-500",
|
|
134
|
+
'alert-bg-error-100' = "alert-bg-error-100",
|
|
135
|
+
'alert-bg-error-200' = "alert-bg-error-200",
|
|
136
|
+
'alert-bg-error-500' = "alert-bg-error-500",
|
|
137
|
+
'alert-success' = "alert-success",
|
|
138
|
+
'alert-warning' = "alert-warning",
|
|
139
|
+
'alert-error' = "alert-error"
|
|
140
|
+
}
|
|
141
|
+
declare enum BrandColorNames {
|
|
142
|
+
'content-brand-primary' = "content-brand-primary",
|
|
143
|
+
'content-brand-secondary' = "content-brand-secondary",
|
|
144
|
+
'border-brand-primary' = "border-brand-primary",
|
|
145
|
+
'border-brand-secondary' = "border-brand-secondary",
|
|
146
|
+
'border-brand-primary-hover' = "border-brand-primary-hover",
|
|
147
|
+
'border-brand-primary-active' = "border-brand-primary-active",
|
|
148
|
+
'bg-brand-primary-basic' = "bg-brand-primary-basic",
|
|
149
|
+
'bg-brand-primary-100' = "bg-brand-primary-100",
|
|
150
|
+
'bg-brand-primary-200' = "bg-brand-primary-200",
|
|
151
|
+
'bg-brand-primary-400' = "bg-brand-primary-400",
|
|
152
|
+
'bg-brand-primary-500' = "bg-brand-primary-500",
|
|
153
|
+
'bg-brand-secondary-basic' = "bg-brand-secondary-basic",
|
|
154
|
+
'bg-brand-secondary-100' = "bg-brand-secondary-100",
|
|
155
|
+
'bg-brand-secondary-200' = "bg-brand-secondary-200",
|
|
156
|
+
'bg-brand-secondary-400' = "bg-brand-secondary-400",
|
|
157
|
+
'bg-brand-secondary-500' = "bg-brand-secondary-500",
|
|
158
|
+
'bg-brand-tertiary-100' = "bg-brand-tertiary-100",
|
|
159
|
+
'bg-brand-tertiary-200' = "bg-brand-tertiary-200",
|
|
160
|
+
'bg-brand-quaternary-100' = "bg-brand-quaternary-100",
|
|
161
|
+
'bg-brand-quaternary-200' = "bg-brand-quaternary-200",
|
|
162
|
+
'bg-brand-quaternary-400' = "bg-brand-quaternary-400",
|
|
163
|
+
'bg-brand-quaternary-500' = "bg-brand-quaternary-500",
|
|
164
|
+
'bg-brand-primary-basic-active' = "bg-brand-primary-basic-active",
|
|
165
|
+
'bg-brand-primary-100-active' = "bg-brand-primary-100-active",
|
|
166
|
+
'bg-brand-primary-100-hover' = "bg-brand-primary-100-hover"
|
|
167
|
+
}
|
|
168
|
+
declare enum SocialColorNames {
|
|
169
|
+
facebook = "facebook",
|
|
170
|
+
twitter = "twitter",
|
|
171
|
+
youtube = "youtube",
|
|
172
|
+
instagrammagenta = "instagrammagenta",
|
|
173
|
+
instagramblue = "instagramblue",
|
|
174
|
+
instagrampurple = "instagrampurple",
|
|
175
|
+
instagramorange = "instagramorange",
|
|
176
|
+
instagramyellow = "instagramyellow",
|
|
177
|
+
pinterest = "pinterest",
|
|
178
|
+
googleplus = "googleplus",
|
|
179
|
+
linkedin = "linkedin",
|
|
180
|
+
vimeoblue = "vimeoblue",
|
|
181
|
+
vimeogreen = "vimeogreen",
|
|
182
|
+
vimeoorange = "vimeoorange",
|
|
183
|
+
vimeopink = "vimeopink",
|
|
184
|
+
tumblr = "tumblr",
|
|
185
|
+
snapchat = "snapchat",
|
|
186
|
+
whatsappgreen = "whatsappgreen",
|
|
187
|
+
whatsappteal1 = "whatsappteal1",
|
|
188
|
+
whatsappteal2 = "whatsappteal2",
|
|
189
|
+
foursquarepink = "foursquarepink",
|
|
190
|
+
foursquareblue = "foursquareblue",
|
|
191
|
+
swarm = "swarm",
|
|
192
|
+
skypeblue = "skypeblue",
|
|
193
|
+
skypegreen = "skypegreen",
|
|
194
|
+
android = "android",
|
|
195
|
+
stumbleupon = "stumbleupon",
|
|
196
|
+
flickrpink = "flickrpink",
|
|
197
|
+
flickrblue = "flickrblue",
|
|
198
|
+
yahoo = "yahoo",
|
|
199
|
+
soundcloud = "soundcloud",
|
|
200
|
+
spotifygreen = "spotifygreen",
|
|
201
|
+
spotifydarkgreen = "spotifydarkgreen",
|
|
202
|
+
dribbble = "dribbble",
|
|
203
|
+
reddit = "reddit",
|
|
204
|
+
deviantart = "deviantart",
|
|
205
|
+
pocket = "pocket",
|
|
206
|
+
quora = "quora",
|
|
207
|
+
quorablue = "quorablue",
|
|
208
|
+
slideshareorange = "slideshareorange",
|
|
209
|
+
slideshareblue = "slideshareblue",
|
|
210
|
+
telegram = "telegram",
|
|
211
|
+
fivehundredpx = "fivehundredpx",
|
|
212
|
+
listlyorange = "listlyorange",
|
|
213
|
+
listlyblue = "listlyblue",
|
|
214
|
+
vine = "vine",
|
|
215
|
+
vk = "vk",
|
|
216
|
+
ok = "ok",
|
|
217
|
+
mailru = "mailru"
|
|
218
|
+
}
|
|
219
|
+
declare enum UnitColorNames {
|
|
161
220
|
profession = "profession",
|
|
162
221
|
professionDark = "professionDark",
|
|
163
222
|
camps = "camps",
|
|
@@ -209,18 +268,266 @@ declare enum ColorNames {
|
|
|
209
268
|
grey = "grey",
|
|
210
269
|
darkgrey = "darkgrey",
|
|
211
270
|
lightgrey = "lightgrey",
|
|
212
|
-
superlightgrey = "superlightgrey"
|
|
213
|
-
|
|
214
|
-
|
|
271
|
+
superlightgrey = "superlightgrey"
|
|
272
|
+
}
|
|
273
|
+
declare const ColorNames: {
|
|
274
|
+
'content-brand-primary': (typeof BrandColorNames)["content-brand-primary"];
|
|
275
|
+
'content-brand-secondary': (typeof BrandColorNames)["content-brand-secondary"];
|
|
276
|
+
'border-brand-primary': (typeof BrandColorNames)["border-brand-primary"];
|
|
277
|
+
'border-brand-secondary': (typeof BrandColorNames)["border-brand-secondary"];
|
|
278
|
+
'border-brand-primary-hover': (typeof BrandColorNames)["border-brand-primary-hover"];
|
|
279
|
+
'border-brand-primary-active': (typeof BrandColorNames)["border-brand-primary-active"];
|
|
280
|
+
'bg-brand-primary-basic': (typeof BrandColorNames)["bg-brand-primary-basic"];
|
|
281
|
+
'bg-brand-primary-100': (typeof BrandColorNames)["bg-brand-primary-100"];
|
|
282
|
+
'bg-brand-primary-200': (typeof BrandColorNames)["bg-brand-primary-200"];
|
|
283
|
+
'bg-brand-primary-400': (typeof BrandColorNames)["bg-brand-primary-400"];
|
|
284
|
+
'bg-brand-primary-500': (typeof BrandColorNames)["bg-brand-primary-500"];
|
|
285
|
+
'bg-brand-secondary-basic': (typeof BrandColorNames)["bg-brand-secondary-basic"];
|
|
286
|
+
'bg-brand-secondary-100': (typeof BrandColorNames)["bg-brand-secondary-100"];
|
|
287
|
+
'bg-brand-secondary-200': (typeof BrandColorNames)["bg-brand-secondary-200"];
|
|
288
|
+
'bg-brand-secondary-400': (typeof BrandColorNames)["bg-brand-secondary-400"];
|
|
289
|
+
'bg-brand-secondary-500': (typeof BrandColorNames)["bg-brand-secondary-500"];
|
|
290
|
+
'bg-brand-tertiary-100': (typeof BrandColorNames)["bg-brand-tertiary-100"];
|
|
291
|
+
'bg-brand-tertiary-200': (typeof BrandColorNames)["bg-brand-tertiary-200"];
|
|
292
|
+
'bg-brand-quaternary-100': (typeof BrandColorNames)["bg-brand-quaternary-100"];
|
|
293
|
+
'bg-brand-quaternary-200': (typeof BrandColorNames)["bg-brand-quaternary-200"];
|
|
294
|
+
'bg-brand-quaternary-400': (typeof BrandColorNames)["bg-brand-quaternary-400"];
|
|
295
|
+
'bg-brand-quaternary-500': (typeof BrandColorNames)["bg-brand-quaternary-500"];
|
|
296
|
+
'bg-brand-primary-basic-active': (typeof BrandColorNames)["bg-brand-primary-basic-active"];
|
|
297
|
+
'bg-brand-primary-100-active': (typeof BrandColorNames)["bg-brand-primary-100-active"];
|
|
298
|
+
'bg-brand-primary-100-hover': (typeof BrandColorNames)["bg-brand-primary-100-hover"];
|
|
299
|
+
'content-onmain-primary': (typeof BaseColorNames)["content-onmain-primary"];
|
|
300
|
+
'content-onmain-secondary': (typeof BaseColorNames)["content-onmain-secondary"];
|
|
301
|
+
'content-onmain-tertiary': (typeof BaseColorNames)["content-onmain-tertiary"];
|
|
302
|
+
'content-oncolor-primary': (typeof BaseColorNames)["content-oncolor-primary"];
|
|
303
|
+
'content-oncolor-secondary': (typeof BaseColorNames)["content-oncolor-secondary"];
|
|
304
|
+
'content-oncolor-tertiary': (typeof BaseColorNames)["content-oncolor-tertiary"];
|
|
305
|
+
'content-oncolor-inverse': (typeof BaseColorNames)["content-oncolor-inverse"];
|
|
306
|
+
'content-oncolor-constant': (typeof BaseColorNames)["content-oncolor-constant"];
|
|
307
|
+
'content-disabled': (typeof BaseColorNames)["content-disabled"];
|
|
308
|
+
'content-oncolor-disabled': (typeof BaseColorNames)["content-oncolor-disabled"];
|
|
309
|
+
'content-oncolor-hover': (typeof BaseColorNames)["content-oncolor-hover"];
|
|
310
|
+
'content-onmain-hover': (typeof BaseColorNames)["content-onmain-hover"];
|
|
311
|
+
'content-discount': (typeof BaseColorNames)["content-discount"];
|
|
312
|
+
'content-link': (typeof BaseColorNames)["content-link"];
|
|
313
|
+
'border-onmain-default-large': (typeof BaseColorNames)["border-onmain-default-large"];
|
|
314
|
+
'border-onmain-default-small': (typeof BaseColorNames)["border-onmain-default-small"];
|
|
315
|
+
'border-onmain-contrast': (typeof BaseColorNames)["border-onmain-contrast"];
|
|
316
|
+
'border-disabled': (typeof BaseColorNames)["border-disabled"];
|
|
317
|
+
'border-oncolor-disabled': (typeof BaseColorNames)["border-oncolor-disabled"];
|
|
318
|
+
'border-oncolor-default': (typeof BaseColorNames)["border-oncolor-default"];
|
|
319
|
+
'bg-onmain-main': (typeof BaseColorNames)["bg-onmain-main"];
|
|
320
|
+
'bg-onmain-primary': (typeof BaseColorNames)["bg-onmain-primary"];
|
|
321
|
+
'bg-onmain-secondary': (typeof BaseColorNames)["bg-onmain-secondary"];
|
|
322
|
+
'bg-onmain-tertiary': (typeof BaseColorNames)["bg-onmain-tertiary"];
|
|
323
|
+
'bg-onmain-divider': (typeof BaseColorNames)["bg-onmain-divider"];
|
|
324
|
+
'bg-onmain-contrast': (typeof BaseColorNames)["bg-onmain-contrast"];
|
|
325
|
+
'bg-onmain-inverse': (typeof BaseColorNames)["bg-onmain-inverse"];
|
|
326
|
+
'bg-oncolor-primary': (typeof BaseColorNames)["bg-oncolor-primary"];
|
|
327
|
+
'bg-oncolor-secondary': (typeof BaseColorNames)["bg-oncolor-secondary"];
|
|
328
|
+
'bg-oncolor-tertiary': (typeof BaseColorNames)["bg-oncolor-tertiary"];
|
|
329
|
+
'bg-oncolor-hover': (typeof BaseColorNames)["bg-oncolor-hover"];
|
|
330
|
+
'bg-disabled-large': (typeof BaseColorNames)["bg-disabled-large"];
|
|
331
|
+
'bg-disabled-small': (typeof BaseColorNames)["bg-disabled-small"];
|
|
332
|
+
'bg-disabled-active': (typeof BaseColorNames)["bg-disabled-active"];
|
|
333
|
+
'bg-oncolor-disabled': (typeof BaseColorNames)["bg-oncolor-disabled"];
|
|
334
|
+
'bg-contrast-active': (typeof BaseColorNames)["bg-contrast-active"];
|
|
335
|
+
'bg-oncontrast-hover': (typeof BaseColorNames)["bg-oncontrast-hover"];
|
|
336
|
+
'alert-bg-success-100': (typeof BaseColorNames)["alert-bg-success-100"];
|
|
337
|
+
'alert-bg-success-200': (typeof BaseColorNames)["alert-bg-success-200"];
|
|
338
|
+
'alert-bg-success-500': (typeof BaseColorNames)["alert-bg-success-500"];
|
|
339
|
+
'alert-bg-warning-100': (typeof BaseColorNames)["alert-bg-warning-100"];
|
|
340
|
+
'alert-bg-warning-200': (typeof BaseColorNames)["alert-bg-warning-200"];
|
|
341
|
+
'alert-bg-warning-500': (typeof BaseColorNames)["alert-bg-warning-500"];
|
|
342
|
+
'alert-bg-error-100': (typeof BaseColorNames)["alert-bg-error-100"];
|
|
343
|
+
'alert-bg-error-200': (typeof BaseColorNames)["alert-bg-error-200"];
|
|
344
|
+
'alert-bg-error-500': (typeof BaseColorNames)["alert-bg-error-500"];
|
|
345
|
+
'alert-success': (typeof BaseColorNames)["alert-success"];
|
|
346
|
+
'alert-warning': (typeof BaseColorNames)["alert-warning"];
|
|
347
|
+
'alert-error': (typeof BaseColorNames)["alert-error"];
|
|
348
|
+
profession: UnitColorNames.profession;
|
|
349
|
+
professionDark: UnitColorNames.professionDark;
|
|
350
|
+
camps: UnitColorNames.camps;
|
|
351
|
+
campsDark: UnitColorNames.campsDark;
|
|
352
|
+
courses: UnitColorNames.courses;
|
|
353
|
+
coursesDark: UnitColorNames.coursesDark;
|
|
354
|
+
openLesson: UnitColorNames.openLesson;
|
|
355
|
+
openLessonDark: UnitColorNames.openLessonDark;
|
|
356
|
+
externat: UnitColorNames.externat;
|
|
357
|
+
externatDark: UnitColorNames.externatDark;
|
|
358
|
+
olympiad: UnitColorNames.olympiad;
|
|
359
|
+
olympiadDark: UnitColorNames.olympiadDark;
|
|
360
|
+
textbook: UnitColorNames.textbook;
|
|
361
|
+
textbookDark: UnitColorNames.textbookDark;
|
|
362
|
+
tutors: UnitColorNames.tutors;
|
|
363
|
+
tutorsDark: UnitColorNames.tutorsDark;
|
|
364
|
+
training: UnitColorNames.training;
|
|
365
|
+
trainingDark: UnitColorNames.trainingDark;
|
|
366
|
+
mathematics: UnitColorNames.mathematics;
|
|
367
|
+
physics: UnitColorNames.physics;
|
|
368
|
+
informatics: UnitColorNames.informatics;
|
|
369
|
+
chemistry: UnitColorNames.chemistry;
|
|
370
|
+
biology: UnitColorNames.biology;
|
|
371
|
+
english: UnitColorNames.english;
|
|
372
|
+
russian: UnitColorNames.russian;
|
|
373
|
+
history: UnitColorNames.history;
|
|
374
|
+
society: UnitColorNames.society;
|
|
375
|
+
geography: UnitColorNames.geography;
|
|
376
|
+
developing: UnitColorNames.developing;
|
|
377
|
+
literature: UnitColorNames.literature;
|
|
378
|
+
intersubject: UnitColorNames.intersubject;
|
|
379
|
+
primarySchool: UnitColorNames.primarySchool;
|
|
380
|
+
recommended: UnitColorNames.recommended;
|
|
381
|
+
astronomy: UnitColorNames.astronomy;
|
|
382
|
+
ecology: UnitColorNames.ecology;
|
|
383
|
+
technology: UnitColorNames.technology;
|
|
384
|
+
languages: UnitColorNames.languages;
|
|
385
|
+
art: UnitColorNames.art;
|
|
386
|
+
physicalCulture: UnitColorNames.physicalCulture;
|
|
387
|
+
logic: UnitColorNames.logic;
|
|
388
|
+
businessLogic: UnitColorNames.businessLogic;
|
|
389
|
+
rap: UnitColorNames.rap;
|
|
390
|
+
ikt: UnitColorNames.ikt;
|
|
391
|
+
kids: UnitColorNames.kids;
|
|
392
|
+
fgos: UnitColorNames.fgos;
|
|
393
|
+
blue: UnitColorNames.blue;
|
|
394
|
+
red: UnitColorNames.red;
|
|
395
|
+
green: UnitColorNames.green;
|
|
396
|
+
grey: UnitColorNames.grey;
|
|
397
|
+
darkgrey: UnitColorNames.darkgrey;
|
|
398
|
+
lightgrey: UnitColorNames.lightgrey;
|
|
399
|
+
superlightgrey: UnitColorNames.superlightgrey;
|
|
400
|
+
facebook: SocialColorNames.facebook;
|
|
401
|
+
twitter: SocialColorNames.twitter;
|
|
402
|
+
youtube: SocialColorNames.youtube;
|
|
403
|
+
instagrammagenta: SocialColorNames.instagrammagenta;
|
|
404
|
+
instagramblue: SocialColorNames.instagramblue;
|
|
405
|
+
instagrampurple: SocialColorNames.instagrampurple;
|
|
406
|
+
instagramorange: SocialColorNames.instagramorange;
|
|
407
|
+
instagramyellow: SocialColorNames.instagramyellow;
|
|
408
|
+
pinterest: SocialColorNames.pinterest;
|
|
409
|
+
googleplus: SocialColorNames.googleplus;
|
|
410
|
+
linkedin: SocialColorNames.linkedin;
|
|
411
|
+
vimeoblue: SocialColorNames.vimeoblue;
|
|
412
|
+
vimeogreen: SocialColorNames.vimeogreen;
|
|
413
|
+
vimeoorange: SocialColorNames.vimeoorange;
|
|
414
|
+
vimeopink: SocialColorNames.vimeopink;
|
|
415
|
+
tumblr: SocialColorNames.tumblr;
|
|
416
|
+
snapchat: SocialColorNames.snapchat;
|
|
417
|
+
whatsappgreen: SocialColorNames.whatsappgreen;
|
|
418
|
+
whatsappteal1: SocialColorNames.whatsappteal1;
|
|
419
|
+
whatsappteal2: SocialColorNames.whatsappteal2;
|
|
420
|
+
foursquarepink: SocialColorNames.foursquarepink;
|
|
421
|
+
foursquareblue: SocialColorNames.foursquareblue;
|
|
422
|
+
swarm: SocialColorNames.swarm;
|
|
423
|
+
skypeblue: SocialColorNames.skypeblue;
|
|
424
|
+
skypegreen: SocialColorNames.skypegreen;
|
|
425
|
+
android: SocialColorNames.android;
|
|
426
|
+
stumbleupon: SocialColorNames.stumbleupon;
|
|
427
|
+
flickrpink: SocialColorNames.flickrpink;
|
|
428
|
+
flickrblue: SocialColorNames.flickrblue;
|
|
429
|
+
yahoo: SocialColorNames.yahoo;
|
|
430
|
+
soundcloud: SocialColorNames.soundcloud;
|
|
431
|
+
spotifygreen: SocialColorNames.spotifygreen;
|
|
432
|
+
spotifydarkgreen: SocialColorNames.spotifydarkgreen;
|
|
433
|
+
dribbble: SocialColorNames.dribbble;
|
|
434
|
+
reddit: SocialColorNames.reddit;
|
|
435
|
+
deviantart: SocialColorNames.deviantart;
|
|
436
|
+
pocket: SocialColorNames.pocket;
|
|
437
|
+
quora: SocialColorNames.quora;
|
|
438
|
+
quorablue: SocialColorNames.quorablue;
|
|
439
|
+
slideshareorange: SocialColorNames.slideshareorange;
|
|
440
|
+
slideshareblue: SocialColorNames.slideshareblue;
|
|
441
|
+
telegram: SocialColorNames.telegram;
|
|
442
|
+
fivehundredpx: SocialColorNames.fivehundredpx;
|
|
443
|
+
listlyorange: SocialColorNames.listlyorange;
|
|
444
|
+
listlyblue: SocialColorNames.listlyblue;
|
|
445
|
+
vine: SocialColorNames.vine;
|
|
446
|
+
vk: SocialColorNames.vk;
|
|
447
|
+
ok: SocialColorNames.ok;
|
|
448
|
+
mailru: SocialColorNames.mailru;
|
|
449
|
+
white: DefaultColorNames.white;
|
|
450
|
+
black: DefaultColorNames.black;
|
|
451
|
+
tundora: DefaultColorNames.tundora;
|
|
452
|
+
paleSky: DefaultColorNames.paleSky;
|
|
453
|
+
bostonBlue: DefaultColorNames.bostonBlue;
|
|
454
|
+
atlantisBrightly: DefaultColorNames.atlantisBrightly;
|
|
455
|
+
cinnabar: DefaultColorNames.cinnabar;
|
|
456
|
+
sail: DefaultColorNames.sail;
|
|
457
|
+
bittersweet: DefaultColorNames.bittersweet;
|
|
458
|
+
turquoise: DefaultColorNames.turquoise;
|
|
459
|
+
dodgerBlue: DefaultColorNames.dodgerBlue;
|
|
460
|
+
mantis: DefaultColorNames.mantis;
|
|
461
|
+
azure: DefaultColorNames.azure;
|
|
462
|
+
bahamaBlue: DefaultColorNames.bahamaBlue;
|
|
463
|
+
shamrock: DefaultColorNames.shamrock;
|
|
464
|
+
olive: DefaultColorNames.olive;
|
|
465
|
+
copperRose: DefaultColorNames.copperRose;
|
|
466
|
+
cyan: DefaultColorNames.cyan;
|
|
467
|
+
plum: DefaultColorNames.plum;
|
|
468
|
+
hokeyPokey: DefaultColorNames.hokeyPokey;
|
|
469
|
+
monaLisa: DefaultColorNames.monaLisa;
|
|
470
|
+
mariner: DefaultColorNames.mariner;
|
|
471
|
+
heliotrope: DefaultColorNames.heliotrope;
|
|
472
|
+
dandelion: DefaultColorNames.dandelion;
|
|
473
|
+
fruitSalad: DefaultColorNames.fruitSalad;
|
|
474
|
+
fuchsiaBlue: DefaultColorNames.fuchsiaBlue;
|
|
475
|
+
persianGreen: DefaultColorNames.persianGreen;
|
|
476
|
+
watermelon: DefaultColorNames.watermelon;
|
|
477
|
+
tropaz: DefaultColorNames.tropaz;
|
|
478
|
+
lima: DefaultColorNames.lima;
|
|
479
|
+
mintTulip: DefaultColorNames.mintTulip;
|
|
480
|
+
carnationPink: DefaultColorNames.carnationPink;
|
|
481
|
+
paleRose: DefaultColorNames.paleRose;
|
|
482
|
+
deYork: DefaultColorNames.deYork;
|
|
483
|
+
peppermint: DefaultColorNames.peppermint;
|
|
484
|
+
cornflowerBlue: DefaultColorNames.cornflowerBlue;
|
|
485
|
+
colonialWhite: DefaultColorNames.colonialWhite;
|
|
486
|
+
cherokee: DefaultColorNames.cherokee;
|
|
487
|
+
supernova: DefaultColorNames.supernova;
|
|
488
|
+
picasso: DefaultColorNames.picasso;
|
|
489
|
+
bilobaFlower: DefaultColorNames.bilobaFlower;
|
|
490
|
+
linkWater: DefaultColorNames.linkWater;
|
|
491
|
+
mineShaft: DefaultColorNames.mineShaft;
|
|
492
|
+
silver: DefaultColorNames.silver;
|
|
493
|
+
alto: DefaultColorNames.alto;
|
|
494
|
+
mercury: DefaultColorNames.mercury;
|
|
495
|
+
wildSand: DefaultColorNames.wildSand;
|
|
496
|
+
whiteGray: DefaultColorNames.whiteGray;
|
|
497
|
+
alabaster: DefaultColorNames.alabaster;
|
|
498
|
+
whiteLilac: DefaultColorNames.whiteLilac;
|
|
499
|
+
atlantis: DefaultColorNames.atlantis;
|
|
500
|
+
yellowOrange: DefaultColorNames.yellowOrange;
|
|
501
|
+
mystic: DefaultColorNames.mystic;
|
|
502
|
+
pomegranate: DefaultColorNames.pomegranate;
|
|
503
|
+
oliveDrab: DefaultColorNames.oliveDrab;
|
|
504
|
+
curious: DefaultColorNames.curious;
|
|
505
|
+
orangePeel: DefaultColorNames.orangePeel;
|
|
506
|
+
nebula: DefaultColorNames.nebula;
|
|
507
|
+
seaNymph: DefaultColorNames.seaNymph;
|
|
508
|
+
chromeWhite: DefaultColorNames.chromeWhite;
|
|
509
|
+
onahau: DefaultColorNames.onahau;
|
|
510
|
+
citrineWhite: DefaultColorNames.citrineWhite;
|
|
511
|
+
coralReef: DefaultColorNames.coralReef;
|
|
512
|
+
creemBrulee: DefaultColorNames.creemBrulee;
|
|
513
|
+
frangipani: DefaultColorNames.frangipani;
|
|
514
|
+
yourPink: DefaultColorNames.yourPink;
|
|
515
|
+
periwinkleGray: DefaultColorNames.periwinkleGray;
|
|
516
|
+
baliHai: DefaultColorNames.baliHai;
|
|
517
|
+
primary: DefaultColorNames.primary;
|
|
518
|
+
accent: DefaultColorNames.accent;
|
|
519
|
+
transparent: DefaultColorNames.transparent;
|
|
520
|
+
};
|
|
215
521
|
|
|
216
|
-
declare type
|
|
217
|
-
declare type ColorValue =
|
|
522
|
+
declare type ColorPropertyVariants = 'color' | 'fontColor' | `${string}Color` | `color${string}`;
|
|
523
|
+
declare type ColorValue = RGB | RGBA | HEX | 'inherit' | 'initial' | 'transparent';
|
|
218
524
|
declare type ColorCalcProperty = (_color: ColorValue) => FlattenSimpleInterpolation | null;
|
|
219
525
|
declare type ColorCssProperty = string | ColorCalcProperty;
|
|
220
|
-
declare type Color
|
|
221
|
-
|
|
526
|
+
declare type Color = keyof typeof ColorNames | ColorValue;
|
|
527
|
+
declare type ColorProperty<T extends ColorPropertyVariants = 'color'> = {
|
|
528
|
+
[key in `${T}`]?: Color;
|
|
222
529
|
};
|
|
223
|
-
declare const color: (color?:
|
|
530
|
+
declare const color: (color?: Color, cssProperty?: ColorCssProperty) => () => (props: {
|
|
224
531
|
theme: DefaultTheme;
|
|
225
532
|
}) => FlattenSimpleInterpolation | null;
|
|
226
533
|
|
|
@@ -314,7 +621,7 @@ interface BaseProps {
|
|
|
314
621
|
/** Style object */
|
|
315
622
|
style?: React.CSSProperties;
|
|
316
623
|
}
|
|
317
|
-
interface InputField extends
|
|
624
|
+
interface InputField extends ColorProperty, ColorProperty<'placeholderColor'>, ResponsiveNamedProperty<'width', 'auto' | keyof typeof SizeInput | number> {
|
|
318
625
|
/**
|
|
319
626
|
* Is disabled field
|
|
320
627
|
*/
|
|
@@ -367,233 +674,28 @@ declare function hexToRgbA(hex: string, alpha?: number): string;
|
|
|
367
674
|
*/
|
|
368
675
|
declare function isHex(hex: string): boolean;
|
|
369
676
|
|
|
370
|
-
|
|
371
|
-
theme
|
|
372
|
-
|
|
373
|
-
};
|
|
374
|
-
};
|
|
375
|
-
declare type MediaQueryParams = {
|
|
376
|
-
and?: string;
|
|
377
|
-
condition?: (_props: any) => boolean;
|
|
378
|
-
};
|
|
379
|
-
/**
|
|
380
|
-
* @return `@media screen and (min-width: 320px) and (max-width: 374px) { ...args }`
|
|
381
|
-
*/
|
|
382
|
-
declare const screenXs: (params?: MediaQueryParams) => (args_0: TemplateStringsArray | CSSObject, ...args_1: SimpleInterpolation[]) => (props: StyledComponentProps) => styled_components.FlattenSimpleInterpolation;
|
|
383
|
-
/**
|
|
384
|
-
* @return `@media screen and (min-width: 375px) and (max-width: 767px) { ...args }`
|
|
385
|
-
*/
|
|
386
|
-
declare const screenS: (params?: MediaQueryParams) => (args_0: TemplateStringsArray | CSSObject, ...args_1: SimpleInterpolation[]) => (props: StyledComponentProps) => styled_components.FlattenSimpleInterpolation;
|
|
387
|
-
/**
|
|
388
|
-
* @return `@media screen and (min-width: 768) and (max-width: 1023px) { ...args }`
|
|
389
|
-
*/
|
|
390
|
-
declare const screenM: (params?: MediaQueryParams) => (args_0: TemplateStringsArray | CSSObject, ...args_1: SimpleInterpolation[]) => (props: StyledComponentProps) => styled_components.FlattenSimpleInterpolation;
|
|
391
|
-
/**
|
|
392
|
-
* @return `@media screen and (min-width: 1024px) and (max-width: 1279px) { ...args }`
|
|
393
|
-
*/
|
|
394
|
-
declare const screenL: (params?: MediaQueryParams) => (args_0: TemplateStringsArray | CSSObject, ...args_1: SimpleInterpolation[]) => (props: StyledComponentProps) => styled_components.FlattenSimpleInterpolation;
|
|
395
|
-
/**
|
|
396
|
-
* @return `@media screen and (min-width: 1280px) and (max-width: 1439px) { ...args }`
|
|
397
|
-
*/
|
|
398
|
-
declare const screenXl: (params?: MediaQueryParams) => (args_0: TemplateStringsArray | CSSObject, ...args_1: SimpleInterpolation[]) => (props: StyledComponentProps) => styled_components.FlattenSimpleInterpolation;
|
|
399
|
-
/**
|
|
400
|
-
* @return `@media screen and (max-width: 319px) { ...args }`
|
|
401
|
-
*/
|
|
402
|
-
declare const screenMaxXxs: (params?: MediaQueryParams) => (args_0: TemplateStringsArray | CSSObject, ...args_1: SimpleInterpolation[]) => (props: StyledComponentProps) => styled_components.FlattenSimpleInterpolation;
|
|
403
|
-
/**
|
|
404
|
-
* @return `@media screen and (max-width: 374px) { ...args }`
|
|
405
|
-
*/
|
|
406
|
-
declare const screenMaxXs: (params?: MediaQueryParams) => (args_0: TemplateStringsArray | CSSObject, ...args_1: SimpleInterpolation[]) => (props: StyledComponentProps) => styled_components.FlattenSimpleInterpolation;
|
|
407
|
-
/**
|
|
408
|
-
* @return `@media screen and (min-width: 375px) { ...args }`
|
|
409
|
-
*/
|
|
410
|
-
declare const screenMinXs: (params?: MediaQueryParams) => (args_0: TemplateStringsArray | CSSObject, ...args_1: SimpleInterpolation[]) => (props: StyledComponentProps) => styled_components.FlattenSimpleInterpolation;
|
|
411
|
-
/**
|
|
412
|
-
* @return `@media screen and (max-width: 767px) { ...args }`
|
|
413
|
-
*/
|
|
414
|
-
declare const screenMaxS: (params?: MediaQueryParams) => (args_0: TemplateStringsArray | CSSObject, ...args_1: SimpleInterpolation[]) => (props: StyledComponentProps) => styled_components.FlattenSimpleInterpolation;
|
|
415
|
-
/**
|
|
416
|
-
* @return `@media screen and (min-width: 768px) { ...args }`
|
|
417
|
-
*/
|
|
418
|
-
declare const screenMinS: (params?: MediaQueryParams) => (args_0: TemplateStringsArray | CSSObject, ...args_1: SimpleInterpolation[]) => (props: StyledComponentProps) => styled_components.FlattenSimpleInterpolation;
|
|
419
|
-
/**
|
|
420
|
-
* @return `@media screen and (max-width: 1023px) { ...args }`
|
|
421
|
-
*/
|
|
422
|
-
declare const screenMaxM: (params?: MediaQueryParams) => (args_0: TemplateStringsArray | CSSObject, ...args_1: SimpleInterpolation[]) => (props: StyledComponentProps) => styled_components.FlattenSimpleInterpolation;
|
|
423
|
-
/**
|
|
424
|
-
* @return `@media screen and (min-width: 1024px) { ...args }`
|
|
425
|
-
*/
|
|
426
|
-
declare const screenMinM: (params?: MediaQueryParams) => (args_0: TemplateStringsArray | CSSObject, ...args_1: SimpleInterpolation[]) => (props: StyledComponentProps) => styled_components.FlattenSimpleInterpolation;
|
|
427
|
-
/**
|
|
428
|
-
* @return `@media screen and (max-width: 1279px) { ...args }`
|
|
429
|
-
*/
|
|
430
|
-
declare const screenMaxL: (params?: MediaQueryParams) => (args_0: TemplateStringsArray | CSSObject, ...args_1: SimpleInterpolation[]) => (props: StyledComponentProps) => styled_components.FlattenSimpleInterpolation;
|
|
431
|
-
/**
|
|
432
|
-
* @return `@media screen and (min-width: 1280px) { ...args }`
|
|
433
|
-
*/
|
|
434
|
-
declare const screenMinL: (params?: MediaQueryParams) => (args_0: TemplateStringsArray | CSSObject, ...args_1: SimpleInterpolation[]) => (props: StyledComponentProps) => styled_components.FlattenSimpleInterpolation;
|
|
435
|
-
/**
|
|
436
|
-
* @return `@media screen and (max-width: 1439px) { ...args }`
|
|
437
|
-
*/
|
|
438
|
-
declare const screenMaxXl: (params?: MediaQueryParams) => (args_0: TemplateStringsArray | CSSObject, ...args_1: SimpleInterpolation[]) => (props: StyledComponentProps) => styled_components.FlattenSimpleInterpolation;
|
|
439
|
-
/**
|
|
440
|
-
* @return `@media screen and (min-width: 1440px) { ...args }`
|
|
441
|
-
*/
|
|
442
|
-
declare const screenMinXl: (params?: MediaQueryParams) => (args_0: TemplateStringsArray | CSSObject, ...args_1: SimpleInterpolation[]) => (props: StyledComponentProps) => styled_components.FlattenSimpleInterpolation;
|
|
443
|
-
/**
|
|
444
|
-
* @return `@media -webkit-min-device-pixel-ratio: 2 and (min-resolution: 192dpi) { ...args }`
|
|
445
|
-
*/
|
|
446
|
-
declare const screenRetina: (args_0: TemplateStringsArray | CSSObject, args_1: SimpleInterpolation) => styled_components.FlattenSimpleInterpolation;
|
|
447
|
-
|
|
448
|
-
interface VAlign {
|
|
449
|
-
vAlign?: 'top' | 'middle' | 'bottom' | 'text-top' | 'text-bottom' | 'baseline';
|
|
677
|
+
interface ThemeProviderProps {
|
|
678
|
+
theme: Partial<DefaultTheme> | ((topLevelTheme: DefaultTheme) => DefaultTheme);
|
|
679
|
+
children: React.ReactNode;
|
|
450
680
|
}
|
|
451
|
-
declare
|
|
681
|
+
declare function ThemeProvider(props: ThemeProviderProps): JSX.Element;
|
|
452
682
|
|
|
453
|
-
declare
|
|
683
|
+
declare const defaultTheme: DefaultTheme;
|
|
684
|
+
declare const motherLightTheme: DefaultTheme;
|
|
685
|
+
declare const motherDarkTheme: DefaultTheme;
|
|
686
|
+
declare const babyLightTheme: DefaultTheme;
|
|
687
|
+
declare const babyDarkTheme: DefaultTheme;
|
|
688
|
+
declare const teenLightTheme: DefaultTheme;
|
|
689
|
+
declare const teenDarkTheme: DefaultTheme;
|
|
690
|
+
declare const adultLightTheme: DefaultTheme;
|
|
691
|
+
declare const adultDarkTheme: DefaultTheme;
|
|
454
692
|
|
|
455
|
-
|
|
456
|
-
|
|
693
|
+
declare type Display = 'block' | 'inline' | 'inline-block' | 'flex' | 'inline-flex' | 'table-cell' | 'inherit' | 'none';
|
|
694
|
+
interface DisplayProperty {
|
|
695
|
+
display?: Display;
|
|
457
696
|
}
|
|
458
697
|
|
|
459
|
-
|
|
460
|
-
book = "book",
|
|
461
|
-
blackBoard = "blackBoard",
|
|
462
|
-
burger = "burger",
|
|
463
|
-
eye = "eye",
|
|
464
|
-
email = "email",
|
|
465
|
-
sort = "sort",
|
|
466
|
-
unsort = "unsort",
|
|
467
|
-
person = "person",
|
|
468
|
-
diamond = "diamond",
|
|
469
|
-
diamondFilled = "diamondFilled",
|
|
470
|
-
diamondSolid = "diamondSolid",
|
|
471
|
-
infoInverse = "infoInverse",
|
|
472
|
-
list = "list",
|
|
473
|
-
login = "login",
|
|
474
|
-
logout = "logout",
|
|
475
|
-
fire = "fire",
|
|
476
|
-
camps = "camps",
|
|
477
|
-
cart = "cart",
|
|
478
|
-
clock = "clock",
|
|
479
|
-
clockFilled = "clockFilled",
|
|
480
|
-
courses = "courses",
|
|
481
|
-
discount = "discount",
|
|
482
|
-
externat = "externat",
|
|
483
|
-
headphones = "headphones",
|
|
484
|
-
page = "page",
|
|
485
|
-
priceTag = "priceTag",
|
|
486
|
-
phone = "phone",
|
|
487
|
-
prof = "prof",
|
|
488
|
-
star = "star",
|
|
489
|
-
settings = "settings",
|
|
490
|
-
student = "student",
|
|
491
|
-
target = "target",
|
|
492
|
-
textbook = "textbook",
|
|
493
|
-
trophy = "trophy",
|
|
494
|
-
message = "message",
|
|
495
|
-
wallet = "wallet",
|
|
496
|
-
edit = "edit",
|
|
497
|
-
copy = "copy",
|
|
498
|
-
print = "print",
|
|
499
|
-
objective = "objective",
|
|
500
|
-
present = "present",
|
|
501
|
-
coins = "coins",
|
|
502
|
-
calendar = "calendar",
|
|
503
|
-
calendar_simple = "calendar_simple",
|
|
504
|
-
chevronDown = "chevronDown",
|
|
505
|
-
chevronUp = "chevronUp",
|
|
506
|
-
chevronRight = "chevronRight",
|
|
507
|
-
chevronLeft = "chevronLeft",
|
|
508
|
-
cross = "cross",
|
|
509
|
-
dialog = "dialog",
|
|
510
|
-
dropDownArrow = "dropDownArrow",
|
|
511
|
-
externalLink = "externalLink",
|
|
512
|
-
file = "file",
|
|
513
|
-
fileBordered = "fileBordered",
|
|
514
|
-
lessons = "lessons",
|
|
515
|
-
pencil = "pencil",
|
|
516
|
-
phoneNoFill = "phoneNoFill",
|
|
517
|
-
radioChecked = "radioChecked",
|
|
518
|
-
radioNotChecked = "radioNotChecked",
|
|
519
|
-
search = "search",
|
|
520
|
-
tasks = "tasks",
|
|
521
|
-
tinyCross = "tinyCross",
|
|
522
|
-
sharpCross = "sharpCross",
|
|
523
|
-
plus = "plus",
|
|
524
|
-
plusThin = "plusThin",
|
|
525
|
-
play = "play",
|
|
526
|
-
reload = "reload",
|
|
527
|
-
checkCircle = "checkCircle",
|
|
528
|
-
info = "info",
|
|
529
|
-
check = "check",
|
|
530
|
-
home = "home",
|
|
531
|
-
questionFilled = "questionFilled",
|
|
532
|
-
document = "document",
|
|
533
|
-
cancel = "cancel",
|
|
534
|
-
playPause = "playPause",
|
|
535
|
-
video = "video"
|
|
536
|
-
}
|
|
537
|
-
declare type Icon$1 = React.FC<React.SVGProps<SVGSVGElement>> | (() => JSX.Element);
|
|
538
|
-
declare const defaultIcons: Record<IconNames, Icon$1>;
|
|
539
|
-
|
|
540
|
-
interface IconProps extends BaseProps, Color, VAlign, ResponsiveNamedProperty<'size'> {
|
|
541
|
-
/**
|
|
542
|
-
* Children react node
|
|
543
|
-
*/
|
|
544
|
-
children?: React.ReactNode;
|
|
545
|
-
/**
|
|
546
|
-
* Name of default icon
|
|
547
|
-
*/
|
|
548
|
-
name?: keyof typeof IconNames;
|
|
549
|
-
/**
|
|
550
|
-
* Object with icon's svg. Use for custom icon insertion with dangerouslySetInnerHTML
|
|
551
|
-
*/
|
|
552
|
-
svg?: string;
|
|
553
|
-
/**
|
|
554
|
-
* Object with icon's svg. Use for custom icon insertion
|
|
555
|
-
*/
|
|
556
|
-
icon?: React.ReactNode;
|
|
557
|
-
/**
|
|
558
|
-
* Show pointer cursor on hover?
|
|
559
|
-
*/
|
|
560
|
-
pointer?: boolean;
|
|
561
|
-
}
|
|
562
|
-
/**
|
|
563
|
-
* Расширен:
|
|
564
|
-
* - [`BaseProps`](#/Миксины)
|
|
565
|
-
* - [`VAlign`](#/Миксины)
|
|
566
|
-
* - [`Color`](#/Миксины)
|
|
567
|
-
* - [`Color<'fontColor'>`](#/Миксины)
|
|
568
|
-
* - [`ResponsiveNamedProperty<'size'>`](#/Миксины)
|
|
569
|
-
*/
|
|
570
|
-
declare function Icon(props: IconProps): JSX.Element;
|
|
571
|
-
declare namespace Icon {
|
|
572
|
-
var displayName: string;
|
|
573
|
-
}
|
|
574
|
-
|
|
575
|
-
interface ActionBtnProps extends BaseProps, Display {
|
|
576
|
-
/** Icon name (for inner Icon component) */
|
|
577
|
-
icon?: keyof typeof IconNames;
|
|
578
|
-
disabled?: boolean;
|
|
579
|
-
active?: boolean;
|
|
580
|
-
onClick?(): void;
|
|
581
|
-
/**
|
|
582
|
-
* Children react node
|
|
583
|
-
*/
|
|
584
|
-
children?: React.ReactNode;
|
|
585
|
-
}
|
|
586
|
-
/**
|
|
587
|
-
* Расширен:
|
|
588
|
-
* - [`BaseProps`](#/Миксины)
|
|
589
|
-
* - [`Display`](#/Миксины)
|
|
590
|
-
*/
|
|
591
|
-
declare function ActionBtn({ icon, disabled, onClick, children, className, active, style }: ActionBtnProps): JSX.Element;
|
|
592
|
-
declare namespace ActionBtn {
|
|
593
|
-
var displayName: string;
|
|
594
|
-
}
|
|
595
|
-
|
|
596
|
-
interface AnchorProps extends BaseProps, Color, ResponsiveNamedProperty<'size'>, Display {
|
|
698
|
+
interface AnchorProps extends BaseProps, ColorProperty, ResponsiveNamedProperty<'size'>, DisplayProperty {
|
|
597
699
|
/**
|
|
598
700
|
* Custom CSS class name
|
|
599
701
|
*/
|
|
@@ -657,16 +759,16 @@ declare namespace Anchor {
|
|
|
657
759
|
}
|
|
658
760
|
|
|
659
761
|
declare type ButtonStaticSize = 'xl' | 'l' | 'm' | 's' | 'xs';
|
|
660
|
-
declare type ButtonSize = ButtonStaticSize | ResponsiveProperty
|
|
661
|
-
interface ButtonProps extends BaseProps
|
|
762
|
+
declare type ButtonSize = ButtonStaticSize | ResponsiveProperty<`${number}rem` | number>;
|
|
763
|
+
interface ButtonProps extends BaseProps, DisplayProperty, ColorProperty, ColorProperty<'fontColor'>, ResponsiveNamedProperty<'padding'>, ResponsiveNamedProperty<'paddingTop'>, ResponsiveNamedProperty<'paddingRight'>, ResponsiveNamedProperty<'paddingBottom'>, ResponsiveNamedProperty<'paddingLeft'>, ResponsiveNamedProperty<'margin'>, ResponsiveNamedProperty<'marginTop'>, ResponsiveNamedProperty<'marginRight'>, ResponsiveNamedProperty<'marginBottom'>, ResponsiveNamedProperty<'marginLeft'>, ResponsiveNamedProperty<'fontSize'>, ResponsiveNamedProperty<'fluid', boolean>, ResponsiveNamedProperty<'width', 'auto' | 'l' | 'm' | 's' | 'xs' | number>, ResponsiveNamedProperty<'height', 'l' | 'm' | 's' | 'xs' | number> {
|
|
662
764
|
/** Root node polymorphic type */
|
|
663
|
-
as?: 'div' | 'span' | 'a' | 'button' | typeof Link | typeof Anchor
|
|
765
|
+
as?: 'div' | 'span' | 'a' | 'button' | typeof Link | typeof Anchor;
|
|
664
766
|
/** Button size */
|
|
665
767
|
size?: ButtonSize;
|
|
666
768
|
/** Button type attribute */
|
|
667
769
|
type?: 'button' | 'submit' | 'reset';
|
|
668
770
|
/** Button icons */
|
|
669
|
-
icon?: JSX.Element | [Nullable
|
|
771
|
+
icon?: JSX.Element | [Nullable<JSX.Element>, Nullable<JSX.Element>];
|
|
670
772
|
/** Button success state */
|
|
671
773
|
success?: boolean;
|
|
672
774
|
/** Loading state */
|
|
@@ -695,7 +797,7 @@ interface ButtonProps extends BaseProps$1, Display$1, Color$1, Color$1<'fontColo
|
|
|
695
797
|
/** Outline appearance */
|
|
696
798
|
outline?: boolean;
|
|
697
799
|
/** Content font weight */
|
|
698
|
-
fontWeight?: FontWeight
|
|
800
|
+
fontWeight?: FontWeight;
|
|
699
801
|
/** Associated form */
|
|
700
802
|
form?: string;
|
|
701
803
|
/** @preset {Default} Primary appearance */
|
|
@@ -733,8 +835,174 @@ interface ButtonProps extends BaseProps$1, Display$1, Color$1, Color$1<'fontColo
|
|
|
733
835
|
*/
|
|
734
836
|
declare const Button: react.ForwardRefExoticComponent<ButtonProps & react.RefAttributes<HTMLElement>>;
|
|
735
837
|
|
|
838
|
+
interface VAlign {
|
|
839
|
+
vAlign?: 'top' | 'middle' | 'bottom' | 'text-top' | 'text-bottom' | 'baseline';
|
|
840
|
+
}
|
|
841
|
+
declare const vAlign: (vAlign: 'top' | 'middle' | 'bottom' | 'text-top' | 'text-bottom' | 'baseline') => styled_components.FlattenSimpleInterpolation;
|
|
842
|
+
|
|
843
|
+
declare enum IconNames {
|
|
844
|
+
book = "book",
|
|
845
|
+
blackBoard = "blackBoard",
|
|
846
|
+
burger = "burger",
|
|
847
|
+
eye = "eye",
|
|
848
|
+
email = "email",
|
|
849
|
+
sort = "sort",
|
|
850
|
+
unsort = "unsort",
|
|
851
|
+
person = "person",
|
|
852
|
+
diamond = "diamond",
|
|
853
|
+
diamondFilled = "diamondFilled",
|
|
854
|
+
diamondSolid = "diamondSolid",
|
|
855
|
+
infoInverse = "infoInverse",
|
|
856
|
+
list = "list",
|
|
857
|
+
login = "login",
|
|
858
|
+
logout = "logout",
|
|
859
|
+
fire = "fire",
|
|
860
|
+
camps = "camps",
|
|
861
|
+
cart = "cart",
|
|
862
|
+
clock = "clock",
|
|
863
|
+
clockFilled = "clockFilled",
|
|
864
|
+
courses = "courses",
|
|
865
|
+
discount = "discount",
|
|
866
|
+
externat = "externat",
|
|
867
|
+
headphones = "headphones",
|
|
868
|
+
page = "page",
|
|
869
|
+
priceTag = "priceTag",
|
|
870
|
+
phone = "phone",
|
|
871
|
+
prof = "prof",
|
|
872
|
+
star = "star",
|
|
873
|
+
settings = "settings",
|
|
874
|
+
student = "student",
|
|
875
|
+
target = "target",
|
|
876
|
+
textbook = "textbook",
|
|
877
|
+
trophy = "trophy",
|
|
878
|
+
message = "message",
|
|
879
|
+
wallet = "wallet",
|
|
880
|
+
edit = "edit",
|
|
881
|
+
copy = "copy",
|
|
882
|
+
print = "print",
|
|
883
|
+
objective = "objective",
|
|
884
|
+
present = "present",
|
|
885
|
+
coins = "coins",
|
|
886
|
+
calendar = "calendar",
|
|
887
|
+
calendar_simple = "calendar_simple",
|
|
888
|
+
chevronDown = "chevronDown",
|
|
889
|
+
chevronUp = "chevronUp",
|
|
890
|
+
chevronRight = "chevronRight",
|
|
891
|
+
chevronLeft = "chevronLeft",
|
|
892
|
+
cross = "cross",
|
|
893
|
+
dialog = "dialog",
|
|
894
|
+
dropDownArrow = "dropDownArrow",
|
|
895
|
+
externalLink = "externalLink",
|
|
896
|
+
file = "file",
|
|
897
|
+
fileBordered = "fileBordered",
|
|
898
|
+
lessons = "lessons",
|
|
899
|
+
pencil = "pencil",
|
|
900
|
+
phoneNoFill = "phoneNoFill",
|
|
901
|
+
radioChecked = "radioChecked",
|
|
902
|
+
radioNotChecked = "radioNotChecked",
|
|
903
|
+
search = "search",
|
|
904
|
+
tasks = "tasks",
|
|
905
|
+
tinyCross = "tinyCross",
|
|
906
|
+
sharpCross = "sharpCross",
|
|
907
|
+
plus = "plus",
|
|
908
|
+
plusThin = "plusThin",
|
|
909
|
+
play = "play",
|
|
910
|
+
reload = "reload",
|
|
911
|
+
checkCircle = "checkCircle",
|
|
912
|
+
info = "info",
|
|
913
|
+
check = "check",
|
|
914
|
+
home = "home",
|
|
915
|
+
questionFilled = "questionFilled",
|
|
916
|
+
document = "document",
|
|
917
|
+
cancel = "cancel",
|
|
918
|
+
playPause = "playPause",
|
|
919
|
+
video = "video"
|
|
920
|
+
}
|
|
921
|
+
declare type Icon$1 = React.FC<React.SVGProps<SVGSVGElement>> | (() => JSX.Element);
|
|
922
|
+
declare const defaultIcons: Record<IconNames, Icon$1>;
|
|
923
|
+
|
|
924
|
+
interface IconProps extends BaseProps, ColorProperty, VAlign, ResponsiveNamedProperty<'size'> {
|
|
925
|
+
/**
|
|
926
|
+
* Children react node
|
|
927
|
+
*/
|
|
928
|
+
children?: React.ReactNode;
|
|
929
|
+
/**
|
|
930
|
+
* Name of default icon
|
|
931
|
+
*/
|
|
932
|
+
name?: keyof typeof IconNames;
|
|
933
|
+
/**
|
|
934
|
+
* Object with icon's svg. Use for custom icon insertion with dangerouslySetInnerHTML
|
|
935
|
+
*/
|
|
936
|
+
svg?: string;
|
|
937
|
+
/**
|
|
938
|
+
* Object with icon's svg. Use for custom icon insertion
|
|
939
|
+
*/
|
|
940
|
+
icon?: React.ReactNode;
|
|
941
|
+
/**
|
|
942
|
+
* Show pointer cursor on hover?
|
|
943
|
+
*/
|
|
944
|
+
pointer?: boolean;
|
|
945
|
+
}
|
|
946
|
+
/**
|
|
947
|
+
* Расширен:
|
|
948
|
+
* - [`BaseProps`](#/Миксины)
|
|
949
|
+
* - [`VAlign`](#/Миксины)
|
|
950
|
+
* - [`Color`](#/Миксины)
|
|
951
|
+
* - [`Color<'fontColor'>`](#/Миксины)
|
|
952
|
+
* - [`ResponsiveNamedProperty<'size'>`](#/Миксины)
|
|
953
|
+
*/
|
|
954
|
+
declare function Icon(props: IconProps): JSX.Element;
|
|
955
|
+
declare namespace Icon {
|
|
956
|
+
var displayName: string;
|
|
957
|
+
}
|
|
958
|
+
|
|
959
|
+
declare type H = 'h1' | 'h2' | 'h3' | 'h4';
|
|
960
|
+
interface TextHeadingProps extends Omit<TextProps, 'content' | 'as'> {
|
|
961
|
+
/** Default set of size, lineHeight and weight props */
|
|
962
|
+
h?: H;
|
|
963
|
+
/** Children react node */
|
|
964
|
+
children?: React.ReactNode;
|
|
965
|
+
}
|
|
966
|
+
|
|
967
|
+
interface TextEllipseProps extends Omit<TextProps, 'content'> {
|
|
968
|
+
/** Toggle text for folded state */
|
|
969
|
+
moreText?: string;
|
|
970
|
+
/** Toggle text for unfolded state */
|
|
971
|
+
lessText?: string;
|
|
972
|
+
/** Classname */
|
|
973
|
+
className?: string;
|
|
974
|
+
/** Html content */
|
|
975
|
+
content: string | string[];
|
|
976
|
+
/** Characters quantity for ellipsed text */
|
|
977
|
+
chars?: number;
|
|
978
|
+
/** Wrap text in quotes */
|
|
979
|
+
quoted?: boolean;
|
|
980
|
+
/** Flag to show toggler */
|
|
981
|
+
showToggler?: boolean;
|
|
982
|
+
}
|
|
983
|
+
interface TextEllipseState {
|
|
984
|
+
isUnFolded: boolean;
|
|
985
|
+
isEllipsed: boolean;
|
|
986
|
+
}
|
|
987
|
+
/**
|
|
988
|
+
* Расширен:
|
|
989
|
+
* - [`BaseProps`](#/Миксины)
|
|
990
|
+
* - [`Color`](#/Миксины)
|
|
991
|
+
* - [`Display`](#/Миксины)
|
|
992
|
+
* - [`ResponsiveNamedProperty<'size'>`](#/Миксины)
|
|
993
|
+
*/
|
|
994
|
+
declare class TextEllipse extends Component<TextEllipseProps, TextEllipseState> {
|
|
995
|
+
static displayName: string;
|
|
996
|
+
constructor(props: TextEllipseProps);
|
|
997
|
+
componentDidUpdate({ content }: TextEllipseProps): void;
|
|
998
|
+
getContent: (props: Omit<TextEllipseProps, 'className' | 'moreText' | 'lessText' | 'showToggler'>) => "" | JSX.Element;
|
|
999
|
+
getQuted: (content: string) => string;
|
|
1000
|
+
toggle: () => void;
|
|
1001
|
+
render(): JSX.Element;
|
|
1002
|
+
}
|
|
1003
|
+
|
|
736
1004
|
declare type TextAppearance = 'display' | 'heading' | 'subheading' | 'subheading-compact' | 'body' | 'caption';
|
|
737
|
-
interface TextProps extends
|
|
1005
|
+
interface TextProps extends DisplayProperty, ColorProperty, ResponsiveNamedProperty<'size'>, BaseProps {
|
|
738
1006
|
/** Root node polymorphic type */
|
|
739
1007
|
as?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'div' | 'span';
|
|
740
1008
|
/** Root id attribute */
|
|
@@ -742,7 +1010,7 @@ interface TextProps extends Display$1, Color$1, ResponsiveNamedProperty$1<'size'
|
|
|
742
1010
|
/** Use predefined props with low priority */
|
|
743
1011
|
appearance?: TextAppearance;
|
|
744
1012
|
/** Custom sizes set */
|
|
745
|
-
sizes?: Record<SizeLatin
|
|
1013
|
+
sizes?: Record<SizeLatin, number>;
|
|
746
1014
|
/** Sizing units */
|
|
747
1015
|
fontUnits?: string;
|
|
748
1016
|
/** Font family */
|
|
@@ -773,62 +1041,291 @@ interface TextComponent extends ForwardRefExoticComponent<PropsWithoutRef<TextPr
|
|
|
773
1041
|
Ellipse: typeof TextEllipse;
|
|
774
1042
|
}
|
|
775
1043
|
|
|
776
|
-
declare const Text: TextComponent;
|
|
1044
|
+
declare const Text: TextComponent;
|
|
1045
|
+
|
|
1046
|
+
declare type AlertType = 'warning' | 'error' | 'info' | 'success';
|
|
1047
|
+
declare type AlertSize = keyof Pick<typeof SizeLatin, 'l' | 's'>;
|
|
1048
|
+
interface AlertProps extends BaseProps {
|
|
1049
|
+
/** Text of the timer cancellation button */
|
|
1050
|
+
cancelTimerText?: string | React.ReactNode;
|
|
1051
|
+
/** Children react node */
|
|
1052
|
+
children?: React.ReactNode;
|
|
1053
|
+
/** Use a colorless background */
|
|
1054
|
+
clear?: boolean;
|
|
1055
|
+
/** This method is taken from react-toastify library */
|
|
1056
|
+
closeToast?(): void;
|
|
1057
|
+
/** Icon name (for inner Icon component) */
|
|
1058
|
+
customIcon?: keyof typeof IconNames;
|
|
1059
|
+
/** Any custom image (e.g.: img, svg, icon from @foxford/icon-pack) */
|
|
1060
|
+
image?: React.ReactNode;
|
|
1061
|
+
/** Use for tablet and mobile view */
|
|
1062
|
+
isCompact?: boolean;
|
|
1063
|
+
/** Display a hyperlink */
|
|
1064
|
+
link?: {
|
|
1065
|
+
content: string | React.ReactNode;
|
|
1066
|
+
onClick(): void;
|
|
1067
|
+
};
|
|
1068
|
+
linkProps?: AnchorProps;
|
|
1069
|
+
/** Use alert without icon */
|
|
1070
|
+
noIcon?: boolean;
|
|
1071
|
+
/** You can cancel the action if the timer has not expired yet */
|
|
1072
|
+
onClickCancelTimer?(): void;
|
|
1073
|
+
/** Display the action button */
|
|
1074
|
+
primaryAction?: {
|
|
1075
|
+
content: string | React.ReactNode;
|
|
1076
|
+
onClick(): void;
|
|
1077
|
+
};
|
|
1078
|
+
primaryActionProps?: ButtonProps;
|
|
1079
|
+
/** Display the second action button */
|
|
1080
|
+
secondaryAction?: {
|
|
1081
|
+
content: string | React.ReactNode;
|
|
1082
|
+
onClick(): void;
|
|
1083
|
+
};
|
|
1084
|
+
secondaryActionProps?: ButtonProps;
|
|
1085
|
+
/** Use this to change the appearance of the alert */
|
|
1086
|
+
size?: AlertSize;
|
|
1087
|
+
/** Use it when you need to move text to another line in alerts without a title */
|
|
1088
|
+
textProps?: TextProps;
|
|
1089
|
+
textWrap?: boolean;
|
|
1090
|
+
/** It is used in alerts with a timer. Pass the value in seconds */
|
|
1091
|
+
timer?: number;
|
|
1092
|
+
/** Display a title */
|
|
1093
|
+
title?: string;
|
|
1094
|
+
titleProps?: TextProps;
|
|
1095
|
+
type?: AlertType;
|
|
1096
|
+
width?: ResponsiveProperty;
|
|
1097
|
+
}
|
|
1098
|
+
|
|
1099
|
+
declare const Alert: react.ForwardRefExoticComponent<AlertProps & react.RefAttributes<HTMLDivElement>>;
|
|
1100
|
+
|
|
1101
|
+
declare type ArrowStaticSize = 'l' | 'm' | 'xs';
|
|
1102
|
+
declare type ArrowSize = ArrowStaticSize | ResponsiveProperty<`${number}rem` | number>;
|
|
1103
|
+
interface ArrowProps extends BaseProps {
|
|
1104
|
+
/** Square shape */
|
|
1105
|
+
square?: boolean;
|
|
1106
|
+
/** Used on colored background */
|
|
1107
|
+
onColored?: boolean;
|
|
1108
|
+
/** Size of button */
|
|
1109
|
+
size?: ArrowSize;
|
|
1110
|
+
/** Arrow points top */
|
|
1111
|
+
top?: boolean;
|
|
1112
|
+
/** Arrow points right */
|
|
1113
|
+
right?: boolean;
|
|
1114
|
+
/** Arrow points bottom */
|
|
1115
|
+
bottom?: boolean;
|
|
1116
|
+
/** Arrow points left */
|
|
1117
|
+
left?: boolean;
|
|
1118
|
+
/** Inverted colors */
|
|
1119
|
+
inverse?: boolean;
|
|
1120
|
+
/** Outlined appearance */
|
|
1121
|
+
outline?: boolean;
|
|
1122
|
+
/** Button disabled */
|
|
1123
|
+
disabled?: boolean;
|
|
1124
|
+
/** Click handler */
|
|
1125
|
+
onClick?(event: React.MouseEvent<HTMLButtonElement>): void;
|
|
1126
|
+
}
|
|
1127
|
+
|
|
1128
|
+
/**
|
|
1129
|
+
* Button with arrow icon
|
|
1130
|
+
*/
|
|
1131
|
+
declare const Arrow: react.ForwardRefExoticComponent<ArrowProps & react.RefAttributes<HTMLButtonElement>>;
|
|
1132
|
+
|
|
1133
|
+
declare type CheckboxStaticSize = 'extraSmall' | 'small' | 'medium' | 'large' | 'extraLarge' | 'xs' | 's' | 'm' | 'l' | 'xl';
|
|
1134
|
+
declare type CheckboxSize = CheckboxStaticSize | ResponsiveProperty<`${number}rem` | number>;
|
|
1135
|
+
interface CheckboxProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'width' | 'value'>, BaseProps {
|
|
1136
|
+
/** Checkbox value */
|
|
1137
|
+
value?: string | number;
|
|
1138
|
+
/** Checkbox size */
|
|
1139
|
+
size?: CheckboxSize;
|
|
1140
|
+
/** Display inline, default to true */
|
|
1141
|
+
inline?: boolean;
|
|
1142
|
+
/** Checkbox errored appearance */
|
|
1143
|
+
error?: boolean;
|
|
1144
|
+
/** Root label width 100% */
|
|
1145
|
+
fluid?: boolean;
|
|
1146
|
+
/** Root label width */
|
|
1147
|
+
width?: ResponsiveProperty<number | string>;
|
|
1148
|
+
/** Label content */
|
|
1149
|
+
children?: React.ReactNode;
|
|
1150
|
+
/** @preset {Brand} Checkbox success appearance */
|
|
1151
|
+
success?: boolean;
|
|
1152
|
+
/** @preset {Brand} Label with background */
|
|
1153
|
+
background?: boolean;
|
|
1154
|
+
/** @preset {Brand} Modifies appearance on colored background */
|
|
1155
|
+
onColored?: boolean;
|
|
1156
|
+
/** @deprecated Use children */
|
|
1157
|
+
label?: string;
|
|
1158
|
+
}
|
|
1159
|
+
interface CheckboxGroupProps extends BaseProps {
|
|
1160
|
+
inline?: boolean;
|
|
1161
|
+
children: React.ReactNode;
|
|
1162
|
+
}
|
|
1163
|
+
interface CheckboxComponent extends ForwardRefExoticComponent<PropsWithoutRef<CheckboxProps> & RefAttributes<HTMLLabelElement>> {
|
|
1164
|
+
Group: (props: CheckboxGroupProps) => JSX.Element;
|
|
1165
|
+
}
|
|
1166
|
+
|
|
1167
|
+
declare const Checkbox: CheckboxComponent;
|
|
1168
|
+
|
|
1169
|
+
declare type TextAreaHTMLAttributes = Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, 'cols' | 'rows' | 'color'>;
|
|
1170
|
+
interface TextareaProps extends BaseProps, InputField, TextAreaHTMLAttributes {
|
|
1171
|
+
/** Specifies the visible width of a text area */
|
|
1172
|
+
cols?: number;
|
|
1173
|
+
/** Specifies the visible number of lines in a text area */
|
|
1174
|
+
rows?: number;
|
|
1175
|
+
/** Specifies the visible max number of lines in a text area */
|
|
1176
|
+
maxRows?: number;
|
|
1177
|
+
/** Specifies the maximum number of characters allowed in the text area */
|
|
1178
|
+
maxLength?: number;
|
|
1179
|
+
/** On change handler */
|
|
1180
|
+
onChange?(_event: React.ChangeEvent<HTMLTextAreaElement>): void;
|
|
1181
|
+
/** Value */
|
|
1182
|
+
value?: string;
|
|
1183
|
+
/** Autosize for textarea */
|
|
1184
|
+
autosize?: boolean;
|
|
1185
|
+
}
|
|
1186
|
+
|
|
1187
|
+
declare const Textarea: {
|
|
1188
|
+
(props: TextareaProps): JSX.Element;
|
|
1189
|
+
displayName: string;
|
|
1190
|
+
};
|
|
777
1191
|
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
isCompact?: boolean;
|
|
795
|
-
/** Display a hyperlink */
|
|
796
|
-
link?: {
|
|
797
|
-
content: string | React.ReactNode;
|
|
798
|
-
onClick(): void;
|
|
1192
|
+
interface Theme {
|
|
1193
|
+
breakpoints: Readonly<{
|
|
1194
|
+
xl: number;
|
|
1195
|
+
l: number;
|
|
1196
|
+
m: number;
|
|
1197
|
+
s: number;
|
|
1198
|
+
xs: number;
|
|
1199
|
+
xxs: number;
|
|
1200
|
+
}>;
|
|
1201
|
+
colors: Record<keyof typeof ColorNames, ColorValue>;
|
|
1202
|
+
borderRadius: string;
|
|
1203
|
+
textColor?: string;
|
|
1204
|
+
fallbackColor?: string;
|
|
1205
|
+
zIndex: {
|
|
1206
|
+
modal: number;
|
|
1207
|
+
tooltip: number;
|
|
799
1208
|
};
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
/** Display the action button */
|
|
806
|
-
primaryAction?: {
|
|
807
|
-
content: string | React.ReactNode;
|
|
808
|
-
onClick(): void;
|
|
1209
|
+
classNamePrefix: string;
|
|
1210
|
+
defaultInputControlsWidth: number | keyof typeof SizeInput | 'auto';
|
|
1211
|
+
domain?: string;
|
|
1212
|
+
utils?: {
|
|
1213
|
+
relBuilder?: (_link?: string, _target?: string) => undefined | string;
|
|
809
1214
|
};
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
1215
|
+
mode: ThemeMode;
|
|
1216
|
+
preset: ThemePreset;
|
|
1217
|
+
name: ThemeName;
|
|
1218
|
+
components?: {
|
|
1219
|
+
Alert?: AlertProps;
|
|
1220
|
+
Arrow?: ArrowProps;
|
|
1221
|
+
Button?: ButtonProps;
|
|
1222
|
+
Checkbox?: CheckboxProps;
|
|
1223
|
+
Textarea?: TextareaProps;
|
|
1224
|
+
Text?: TextProps;
|
|
1225
|
+
'Text.Heading'?: TextHeadingProps;
|
|
815
1226
|
};
|
|
816
|
-
secondaryActionProps?: ButtonProps;
|
|
817
|
-
/** Use this to change the appearance of the alert */
|
|
818
|
-
size?: AlertSize;
|
|
819
|
-
/** Use it when you need to move text to another line in alerts without a title */
|
|
820
|
-
textProps?: TextProps;
|
|
821
|
-
textWrap?: boolean;
|
|
822
|
-
/** It is used in alerts with a timer. Pass the value in seconds */
|
|
823
|
-
timer?: number;
|
|
824
|
-
/** Display a title */
|
|
825
|
-
title?: string;
|
|
826
|
-
titleProps?: TextProps;
|
|
827
|
-
type?: AlertType;
|
|
828
|
-
width?: ResponsiveProperty$1;
|
|
829
1227
|
}
|
|
830
1228
|
|
|
831
|
-
declare
|
|
1229
|
+
declare type StyledComponentProps = {
|
|
1230
|
+
theme?: {
|
|
1231
|
+
breakpoints?: typeof defaultTheme.breakpoints;
|
|
1232
|
+
};
|
|
1233
|
+
};
|
|
1234
|
+
declare type MediaQueryParams = {
|
|
1235
|
+
and?: string;
|
|
1236
|
+
condition?: (_props: any) => boolean;
|
|
1237
|
+
};
|
|
1238
|
+
/**
|
|
1239
|
+
* @return `@media screen and (min-width: 320px) and (max-width: 374px) { ...args }`
|
|
1240
|
+
*/
|
|
1241
|
+
declare const screenXs: (params?: MediaQueryParams) => (args_0: TemplateStringsArray | CSSObject, ...args_1: SimpleInterpolation[]) => (props: StyledComponentProps) => styled_components.FlattenSimpleInterpolation;
|
|
1242
|
+
/**
|
|
1243
|
+
* @return `@media screen and (min-width: 375px) and (max-width: 767px) { ...args }`
|
|
1244
|
+
*/
|
|
1245
|
+
declare const screenS: (params?: MediaQueryParams) => (args_0: TemplateStringsArray | CSSObject, ...args_1: SimpleInterpolation[]) => (props: StyledComponentProps) => styled_components.FlattenSimpleInterpolation;
|
|
1246
|
+
/**
|
|
1247
|
+
* @return `@media screen and (min-width: 768) and (max-width: 1023px) { ...args }`
|
|
1248
|
+
*/
|
|
1249
|
+
declare const screenM: (params?: MediaQueryParams) => (args_0: TemplateStringsArray | CSSObject, ...args_1: SimpleInterpolation[]) => (props: StyledComponentProps) => styled_components.FlattenSimpleInterpolation;
|
|
1250
|
+
/**
|
|
1251
|
+
* @return `@media screen and (min-width: 1024px) and (max-width: 1279px) { ...args }`
|
|
1252
|
+
*/
|
|
1253
|
+
declare const screenL: (params?: MediaQueryParams) => (args_0: TemplateStringsArray | CSSObject, ...args_1: SimpleInterpolation[]) => (props: StyledComponentProps) => styled_components.FlattenSimpleInterpolation;
|
|
1254
|
+
/**
|
|
1255
|
+
* @return `@media screen and (min-width: 1280px) and (max-width: 1439px) { ...args }`
|
|
1256
|
+
*/
|
|
1257
|
+
declare const screenXl: (params?: MediaQueryParams) => (args_0: TemplateStringsArray | CSSObject, ...args_1: SimpleInterpolation[]) => (props: StyledComponentProps) => styled_components.FlattenSimpleInterpolation;
|
|
1258
|
+
/**
|
|
1259
|
+
* @return `@media screen and (max-width: 319px) { ...args }`
|
|
1260
|
+
*/
|
|
1261
|
+
declare const screenMaxXxs: (params?: MediaQueryParams) => (args_0: TemplateStringsArray | CSSObject, ...args_1: SimpleInterpolation[]) => (props: StyledComponentProps) => styled_components.FlattenSimpleInterpolation;
|
|
1262
|
+
/**
|
|
1263
|
+
* @return `@media screen and (max-width: 374px) { ...args }`
|
|
1264
|
+
*/
|
|
1265
|
+
declare const screenMaxXs: (params?: MediaQueryParams) => (args_0: TemplateStringsArray | CSSObject, ...args_1: SimpleInterpolation[]) => (props: StyledComponentProps) => styled_components.FlattenSimpleInterpolation;
|
|
1266
|
+
/**
|
|
1267
|
+
* @return `@media screen and (min-width: 375px) { ...args }`
|
|
1268
|
+
*/
|
|
1269
|
+
declare const screenMinXs: (params?: MediaQueryParams) => (args_0: TemplateStringsArray | CSSObject, ...args_1: SimpleInterpolation[]) => (props: StyledComponentProps) => styled_components.FlattenSimpleInterpolation;
|
|
1270
|
+
/**
|
|
1271
|
+
* @return `@media screen and (max-width: 767px) { ...args }`
|
|
1272
|
+
*/
|
|
1273
|
+
declare const screenMaxS: (params?: MediaQueryParams) => (args_0: TemplateStringsArray | CSSObject, ...args_1: SimpleInterpolation[]) => (props: StyledComponentProps) => styled_components.FlattenSimpleInterpolation;
|
|
1274
|
+
/**
|
|
1275
|
+
* @return `@media screen and (min-width: 768px) { ...args }`
|
|
1276
|
+
*/
|
|
1277
|
+
declare const screenMinS: (params?: MediaQueryParams) => (args_0: TemplateStringsArray | CSSObject, ...args_1: SimpleInterpolation[]) => (props: StyledComponentProps) => styled_components.FlattenSimpleInterpolation;
|
|
1278
|
+
/**
|
|
1279
|
+
* @return `@media screen and (max-width: 1023px) { ...args }`
|
|
1280
|
+
*/
|
|
1281
|
+
declare const screenMaxM: (params?: MediaQueryParams) => (args_0: TemplateStringsArray | CSSObject, ...args_1: SimpleInterpolation[]) => (props: StyledComponentProps) => styled_components.FlattenSimpleInterpolation;
|
|
1282
|
+
/**
|
|
1283
|
+
* @return `@media screen and (min-width: 1024px) { ...args }`
|
|
1284
|
+
*/
|
|
1285
|
+
declare const screenMinM: (params?: MediaQueryParams) => (args_0: TemplateStringsArray | CSSObject, ...args_1: SimpleInterpolation[]) => (props: StyledComponentProps) => styled_components.FlattenSimpleInterpolation;
|
|
1286
|
+
/**
|
|
1287
|
+
* @return `@media screen and (max-width: 1279px) { ...args }`
|
|
1288
|
+
*/
|
|
1289
|
+
declare const screenMaxL: (params?: MediaQueryParams) => (args_0: TemplateStringsArray | CSSObject, ...args_1: SimpleInterpolation[]) => (props: StyledComponentProps) => styled_components.FlattenSimpleInterpolation;
|
|
1290
|
+
/**
|
|
1291
|
+
* @return `@media screen and (min-width: 1280px) { ...args }`
|
|
1292
|
+
*/
|
|
1293
|
+
declare const screenMinL: (params?: MediaQueryParams) => (args_0: TemplateStringsArray | CSSObject, ...args_1: SimpleInterpolation[]) => (props: StyledComponentProps) => styled_components.FlattenSimpleInterpolation;
|
|
1294
|
+
/**
|
|
1295
|
+
* @return `@media screen and (max-width: 1439px) { ...args }`
|
|
1296
|
+
*/
|
|
1297
|
+
declare const screenMaxXl: (params?: MediaQueryParams) => (args_0: TemplateStringsArray | CSSObject, ...args_1: SimpleInterpolation[]) => (props: StyledComponentProps) => styled_components.FlattenSimpleInterpolation;
|
|
1298
|
+
/**
|
|
1299
|
+
* @return `@media screen and (min-width: 1440px) { ...args }`
|
|
1300
|
+
*/
|
|
1301
|
+
declare const screenMinXl: (params?: MediaQueryParams) => (args_0: TemplateStringsArray | CSSObject, ...args_1: SimpleInterpolation[]) => (props: StyledComponentProps) => styled_components.FlattenSimpleInterpolation;
|
|
1302
|
+
/**
|
|
1303
|
+
* @return `@media -webkit-min-device-pixel-ratio: 2 and (min-resolution: 192dpi) { ...args }`
|
|
1304
|
+
*/
|
|
1305
|
+
declare const screenRetina: (args_0: TemplateStringsArray | CSSObject, args_1: SimpleInterpolation) => styled_components.FlattenSimpleInterpolation;
|
|
1306
|
+
|
|
1307
|
+
declare function buildMediaQuery(value: number | keyof typeof SizeLatin | 'auto' | 'initial' | 'inherit' | boolean, property: string | ((_size: number | 'auto' | 'initial' | 'inherit' | boolean, _sizing?: null | string) => FlattenSimpleInterpolation | null), screenQueryFunction: typeof screenXs, sizing: null | string, sizes?: Record<SizeLatin, number>): ReturnType<typeof css>;
|
|
1308
|
+
|
|
1309
|
+
interface ActionBtnProps extends BaseProps, DisplayProperty {
|
|
1310
|
+
/** Icon name (for inner Icon component) */
|
|
1311
|
+
icon?: keyof typeof IconNames;
|
|
1312
|
+
disabled?: boolean;
|
|
1313
|
+
active?: boolean;
|
|
1314
|
+
onClick?(): void;
|
|
1315
|
+
/**
|
|
1316
|
+
* Children react node
|
|
1317
|
+
*/
|
|
1318
|
+
children?: React.ReactNode;
|
|
1319
|
+
}
|
|
1320
|
+
/**
|
|
1321
|
+
* Расширен:
|
|
1322
|
+
* - [`BaseProps`](#/Миксины)
|
|
1323
|
+
* - [`Display`](#/Миксины)
|
|
1324
|
+
*/
|
|
1325
|
+
declare function ActionBtn({ icon, disabled, onClick, children, className, active, style }: ActionBtnProps): JSX.Element;
|
|
1326
|
+
declare namespace ActionBtn {
|
|
1327
|
+
var displayName: string;
|
|
1328
|
+
}
|
|
832
1329
|
|
|
833
1330
|
declare enum CurrencyCodes {
|
|
834
1331
|
ALL = "ALL",
|
|
@@ -949,7 +1446,7 @@ declare enum CurrencyCodes {
|
|
|
949
1446
|
}
|
|
950
1447
|
declare const CURRENCY_MAP: Readonly<Record<CurrencyCodes, string>>;
|
|
951
1448
|
|
|
952
|
-
interface AmountProps extends BaseProps,
|
|
1449
|
+
interface AmountProps extends BaseProps, ColorProperty, ResponsiveNamedProperty<'size'>, DisplayProperty {
|
|
953
1450
|
/**
|
|
954
1451
|
* Value for amount
|
|
955
1452
|
*/
|
|
@@ -1005,72 +1502,7 @@ declare class Amount extends PureComponent<AmountProps> {
|
|
|
1005
1502
|
render(): JSX.Element;
|
|
1006
1503
|
}
|
|
1007
1504
|
|
|
1008
|
-
|
|
1009
|
-
declare type ArrowSize = ArrowStaticSize | ResponsiveProperty$1<`${number}rem` | number>;
|
|
1010
|
-
interface ArrowProps extends BaseProps$1 {
|
|
1011
|
-
/** Square shape */
|
|
1012
|
-
square?: boolean;
|
|
1013
|
-
/** Used on colored background */
|
|
1014
|
-
onColored?: boolean;
|
|
1015
|
-
/** Size of button */
|
|
1016
|
-
size?: ArrowSize;
|
|
1017
|
-
/** Arrow points top */
|
|
1018
|
-
top?: boolean;
|
|
1019
|
-
/** Arrow points right */
|
|
1020
|
-
right?: boolean;
|
|
1021
|
-
/** Arrow points bottom */
|
|
1022
|
-
bottom?: boolean;
|
|
1023
|
-
/** Arrow points left */
|
|
1024
|
-
left?: boolean;
|
|
1025
|
-
/** Inverted colors */
|
|
1026
|
-
inverse?: boolean;
|
|
1027
|
-
/** Outlined appearance */
|
|
1028
|
-
outline?: boolean;
|
|
1029
|
-
/** Button disabled */
|
|
1030
|
-
disabled?: boolean;
|
|
1031
|
-
/** Click handler */
|
|
1032
|
-
onClick?(event: React.MouseEvent<HTMLButtonElement>): void;
|
|
1033
|
-
}
|
|
1034
|
-
|
|
1035
|
-
/**
|
|
1036
|
-
* Button with arrow icon
|
|
1037
|
-
*/
|
|
1038
|
-
declare const Arrow: react.ForwardRefExoticComponent<ArrowProps & react.RefAttributes<HTMLButtonElement>>;
|
|
1039
|
-
|
|
1040
|
-
declare type ArrowBadgeSideShape = 'square' | 'tail' | 'arrow';
|
|
1041
|
-
declare type ArrowBadgeSize = 'xl' | 'l' | 'm' | 's';
|
|
1042
|
-
interface ArrowBadgeProps extends BaseProps, Color, Display {
|
|
1043
|
-
/** Children react node */
|
|
1044
|
-
children?: React.ReactNode;
|
|
1045
|
-
content?: React.ReactNode;
|
|
1046
|
-
/** Secondary appearance */
|
|
1047
|
-
secondary?: boolean;
|
|
1048
|
-
/** Third appearance */
|
|
1049
|
-
third?: boolean;
|
|
1050
|
-
/** Fourth appearance */
|
|
1051
|
-
fourth?: boolean;
|
|
1052
|
-
/** Small view */
|
|
1053
|
-
small?: boolean;
|
|
1054
|
-
/** Size */
|
|
1055
|
-
size?: ArrowBadgeSize;
|
|
1056
|
-
/** Left side shape */
|
|
1057
|
-
leftShape?: ArrowBadgeSideShape;
|
|
1058
|
-
/** Right side shape */
|
|
1059
|
-
rightShape?: ArrowBadgeSideShape;
|
|
1060
|
-
}
|
|
1061
|
-
|
|
1062
|
-
/**
|
|
1063
|
-
* Расширен:
|
|
1064
|
-
* - [`BaseProps`](#/Миксины)
|
|
1065
|
-
* - [`Color`](#/Миксины)
|
|
1066
|
-
* - [`Display`](#/Миксины)
|
|
1067
|
-
*/
|
|
1068
|
-
declare function ArrowBadge({ children, content, className, display, ...restProps }: ArrowBadgeProps): JSX.Element;
|
|
1069
|
-
declare namespace ArrowBadge {
|
|
1070
|
-
var displayName: string;
|
|
1071
|
-
}
|
|
1072
|
-
|
|
1073
|
-
interface AvatarProps extends BaseProps, Color {
|
|
1505
|
+
interface AvatarProps extends BaseProps, ColorProperty {
|
|
1074
1506
|
/**
|
|
1075
1507
|
* Children react node
|
|
1076
1508
|
*/
|
|
@@ -1107,7 +1539,7 @@ declare class Avatar extends PureComponent<AvatarProps> {
|
|
|
1107
1539
|
render(): JSX.Element;
|
|
1108
1540
|
}
|
|
1109
1541
|
|
|
1110
|
-
interface BadgeProps extends BaseProps,
|
|
1542
|
+
interface BadgeProps extends BaseProps, ColorProperty, DisplayProperty {
|
|
1111
1543
|
/**
|
|
1112
1544
|
* Children react node
|
|
1113
1545
|
*/
|
|
@@ -1128,7 +1560,7 @@ declare namespace Badge {
|
|
|
1128
1560
|
var displayName: string;
|
|
1129
1561
|
}
|
|
1130
1562
|
|
|
1131
|
-
interface ContainerProps extends BaseProps,
|
|
1563
|
+
interface ContainerProps extends BaseProps, DisplayProperty, ColorProperty {
|
|
1132
1564
|
/**
|
|
1133
1565
|
* Primary content
|
|
1134
1566
|
*/
|
|
@@ -1244,7 +1676,7 @@ declare namespace Modal {
|
|
|
1244
1676
|
var displayName: string;
|
|
1245
1677
|
}
|
|
1246
1678
|
|
|
1247
|
-
interface SpacerProps extends BaseProps,
|
|
1679
|
+
interface SpacerProps extends BaseProps, DisplayProperty, ResponsiveNamedProperty<'top'>, ResponsiveNamedProperty<'right'>, ResponsiveNamedProperty<'bottom'>, ResponsiveNamedProperty<'left'>, ResponsiveNamedProperty<'padding'>, ResponsiveNamedProperty<'paddingTop'>, ResponsiveNamedProperty<'paddingRight'>, ResponsiveNamedProperty<'paddingBottom'>, ResponsiveNamedProperty<'paddingLeft'>, ResponsiveNamedProperty<'margin'>, ResponsiveNamedProperty<'marginTop'>, ResponsiveNamedProperty<'marginRight'>, ResponsiveNamedProperty<'marginBottom'>, ResponsiveNamedProperty<'marginLeft'> {
|
|
1248
1680
|
/**
|
|
1249
1681
|
* Primary content
|
|
1250
1682
|
*/
|
|
@@ -1278,7 +1710,7 @@ declare namespace Spacer {
|
|
|
1278
1710
|
var displayName: string;
|
|
1279
1711
|
}
|
|
1280
1712
|
|
|
1281
|
-
interface PaperProps extends SpacerProps,
|
|
1713
|
+
interface PaperProps extends SpacerProps, ColorProperty, ResponsiveNamedProperty<'padding'> {
|
|
1282
1714
|
/**
|
|
1283
1715
|
* Set to true to generate a circlular paper container
|
|
1284
1716
|
*/
|
|
@@ -1311,7 +1743,7 @@ declare namespace Paper {
|
|
|
1311
1743
|
var displayName: string;
|
|
1312
1744
|
}
|
|
1313
1745
|
|
|
1314
|
-
interface ProgressSegmentedProps extends BaseProps,
|
|
1746
|
+
interface ProgressSegmentedProps extends BaseProps, ColorProperty<'separatorColor'>, ColorProperty<'percentColor'> {
|
|
1315
1747
|
/**
|
|
1316
1748
|
* Current percent complete
|
|
1317
1749
|
*/
|
|
@@ -1351,7 +1783,7 @@ declare namespace ProgressSegmented {
|
|
|
1351
1783
|
var displayName: string;
|
|
1352
1784
|
}
|
|
1353
1785
|
|
|
1354
|
-
interface ProgressCircleProps extends BaseProps,
|
|
1786
|
+
interface ProgressCircleProps extends BaseProps, ColorProperty<'resultColor'>, ColorProperty<'strokeBGColor'> {
|
|
1355
1787
|
/**
|
|
1356
1788
|
* status ['fail', 'success', 'started']
|
|
1357
1789
|
*/
|
|
@@ -1413,7 +1845,7 @@ declare class ProgressCircle extends PureComponent<typeof ProgressCircle.default
|
|
|
1413
1845
|
render(): JSX.Element;
|
|
1414
1846
|
}
|
|
1415
1847
|
|
|
1416
|
-
interface ProgressProps extends BaseProps,
|
|
1848
|
+
interface ProgressProps extends BaseProps, ColorProperty, ColorProperty<'backgroundColor'> {
|
|
1417
1849
|
/**
|
|
1418
1850
|
* Current percent complete
|
|
1419
1851
|
*/
|
|
@@ -1660,7 +2092,7 @@ declare const withThemeScrollable: react.ForwardRefExoticComponent<{
|
|
|
1660
2092
|
theme?: DefaultTheme | undefined;
|
|
1661
2093
|
}>;
|
|
1662
2094
|
|
|
1663
|
-
interface SectionProps extends BaseProps,
|
|
2095
|
+
interface SectionProps extends BaseProps, DisplayProperty, ColorProperty, ResponsiveNamedProperty<'padding'> {
|
|
1664
2096
|
/**
|
|
1665
2097
|
* Paper with shadow
|
|
1666
2098
|
*/
|
|
@@ -1693,7 +2125,7 @@ declare namespace Section {
|
|
|
1693
2125
|
var displayName: string;
|
|
1694
2126
|
}
|
|
1695
2127
|
|
|
1696
|
-
interface SeparatorTextProps extends BaseProps,
|
|
2128
|
+
interface SeparatorTextProps extends BaseProps, ColorProperty {
|
|
1697
2129
|
/**
|
|
1698
2130
|
* Children react node
|
|
1699
2131
|
*/
|
|
@@ -1701,7 +2133,7 @@ interface SeparatorTextProps extends BaseProps, Color {
|
|
|
1701
2133
|
}
|
|
1702
2134
|
declare function SeparatorText({ children, className, color, ...restProps }: SeparatorTextProps): JSX.Element;
|
|
1703
2135
|
|
|
1704
|
-
interface SeparatorProps extends BaseProps,
|
|
2136
|
+
interface SeparatorProps extends BaseProps, ColorProperty, ResponsiveNamedProperty<'top'>, ResponsiveNamedProperty<'right'>, ResponsiveNamedProperty<'bottom'>, ResponsiveNamedProperty<'left'>, ResponsiveNamedProperty<'padding'>, ResponsiveNamedProperty<'paddingTop'>, ResponsiveNamedProperty<'paddingRight'>, ResponsiveNamedProperty<'paddingBottom'>, ResponsiveNamedProperty<'paddingLeft'>, ResponsiveNamedProperty<'margin'>, ResponsiveNamedProperty<'marginTop'>, ResponsiveNamedProperty<'marginRight'>, ResponsiveNamedProperty<'marginBottom'>, ResponsiveNamedProperty<'marginLeft'> {
|
|
1705
2137
|
/**
|
|
1706
2138
|
* Separator weight
|
|
1707
2139
|
*/
|
|
@@ -1765,7 +2197,7 @@ declare namespace Spinner {
|
|
|
1765
2197
|
var displayName: string;
|
|
1766
2198
|
}
|
|
1767
2199
|
|
|
1768
|
-
interface SwitcherProps extends BaseProps,
|
|
2200
|
+
interface SwitcherProps extends BaseProps, ColorProperty<'color'>, ColorProperty<'inactiveColor'> {
|
|
1769
2201
|
/**
|
|
1770
2202
|
* Id for swithcer
|
|
1771
2203
|
*/
|
|
@@ -1814,7 +2246,7 @@ declare namespace Switcher {
|
|
|
1814
2246
|
var displayName: string;
|
|
1815
2247
|
}
|
|
1816
2248
|
|
|
1817
|
-
interface TabProps extends
|
|
2249
|
+
interface TabProps extends ColorProperty, ColorProperty<'borderColor'> {
|
|
1818
2250
|
/**
|
|
1819
2251
|
* An element type to render as (string or function).
|
|
1820
2252
|
*/
|
|
@@ -1850,7 +2282,7 @@ declare namespace TabsTab {
|
|
|
1850
2282
|
};
|
|
1851
2283
|
}
|
|
1852
2284
|
|
|
1853
|
-
interface TabsProps extends BaseProps,
|
|
2285
|
+
interface TabsProps extends BaseProps, ColorProperty, ColorProperty<'borderColor'> {
|
|
1854
2286
|
/**
|
|
1855
2287
|
* Primary content.
|
|
1856
2288
|
*/
|
|
@@ -1911,7 +2343,7 @@ declare namespace Tooltip {
|
|
|
1911
2343
|
var displayName: string;
|
|
1912
2344
|
}
|
|
1913
2345
|
|
|
1914
|
-
interface TagProps extends BaseProps,
|
|
2346
|
+
interface TagProps extends BaseProps, DisplayProperty, ColorProperty, ResponsiveNamedProperty<'height'>, ResponsiveNamedProperty<'width'> {
|
|
1915
2347
|
as?: 'button' | 'div' | 'input' | 'label';
|
|
1916
2348
|
/**
|
|
1917
2349
|
* Field id
|
|
@@ -1997,12 +2429,12 @@ interface MultiLevelControls {
|
|
|
1997
2429
|
cancel?: {
|
|
1998
2430
|
content?: string;
|
|
1999
2431
|
onClick?(): void;
|
|
2000
|
-
color?:
|
|
2432
|
+
color?: Color;
|
|
2001
2433
|
};
|
|
2002
2434
|
confirm?: {
|
|
2003
2435
|
content?: string;
|
|
2004
2436
|
onClick?(): void;
|
|
2005
|
-
color?:
|
|
2437
|
+
color?: Color;
|
|
2006
2438
|
};
|
|
2007
2439
|
}
|
|
2008
2440
|
interface MultiLevelItem {
|
|
@@ -2127,7 +2559,7 @@ declare class ContextMenu extends PureComponent<ContextMenuProps, {
|
|
|
2127
2559
|
minWidth: number;
|
|
2128
2560
|
opacity: number;
|
|
2129
2561
|
position: string;
|
|
2130
|
-
transition: string;
|
|
2562
|
+
transition: string; /** Indicates if button is active (e.g. when context menu is open) */
|
|
2131
2563
|
visibility: string;
|
|
2132
2564
|
zIndex: number;
|
|
2133
2565
|
};
|
|
@@ -2141,19 +2573,19 @@ declare class ContextMenu extends PureComponent<ContextMenuProps, {
|
|
|
2141
2573
|
visibility: string;
|
|
2142
2574
|
};
|
|
2143
2575
|
floaterClosing: {
|
|
2144
|
-
opacity: number;
|
|
2576
|
+
opacity: number; /** On close menu callback */
|
|
2145
2577
|
visibility: string;
|
|
2146
2578
|
};
|
|
2147
2579
|
floaterCentered: {
|
|
2148
2580
|
left: string;
|
|
2149
|
-
position: string;
|
|
2581
|
+
position: string; /** Content */
|
|
2150
2582
|
top: string;
|
|
2151
|
-
transform: string;
|
|
2583
|
+
transform: string;
|
|
2152
2584
|
};
|
|
2153
2585
|
container: {
|
|
2154
2586
|
boxSizing: string;
|
|
2155
2587
|
borderRadius: number;
|
|
2156
|
-
border: string;
|
|
2588
|
+
border: string;
|
|
2157
2589
|
color: string;
|
|
2158
2590
|
backgroundColor: string;
|
|
2159
2591
|
minHeight: number;
|
|
@@ -2181,29 +2613,6 @@ declare class ContextMenu extends PureComponent<ContextMenuProps, {
|
|
|
2181
2613
|
render(): JSX.Element;
|
|
2182
2614
|
}
|
|
2183
2615
|
|
|
2184
|
-
declare type TextAreaHTMLAttributes = Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, 'cols' | 'rows' | 'color'>;
|
|
2185
|
-
interface TextareaProps extends BaseProps$1, InputField$1, TextAreaHTMLAttributes {
|
|
2186
|
-
/** Specifies the visible width of a text area */
|
|
2187
|
-
cols?: number;
|
|
2188
|
-
/** Specifies the visible number of lines in a text area */
|
|
2189
|
-
rows?: number;
|
|
2190
|
-
/** Specifies the visible max number of lines in a text area */
|
|
2191
|
-
maxRows?: number;
|
|
2192
|
-
/** Specifies the maximum number of characters allowed in the text area */
|
|
2193
|
-
maxLength?: number;
|
|
2194
|
-
/** On change handler */
|
|
2195
|
-
onChange?(_event: React.ChangeEvent<HTMLTextAreaElement>): void;
|
|
2196
|
-
/** Value */
|
|
2197
|
-
value?: string;
|
|
2198
|
-
/** Autosize for textarea */
|
|
2199
|
-
autosize?: boolean;
|
|
2200
|
-
}
|
|
2201
|
-
|
|
2202
|
-
declare const Textarea: {
|
|
2203
|
-
(props: TextareaProps): JSX.Element;
|
|
2204
|
-
displayName: string;
|
|
2205
|
-
};
|
|
2206
|
-
|
|
2207
2616
|
interface InputPhoneProps extends InputProps {
|
|
2208
2617
|
/**
|
|
2209
2618
|
* Settings for different country codes
|
|
@@ -2341,7 +2750,7 @@ interface RadioGroupProps extends BaseProps {
|
|
|
2341
2750
|
declare function RadioGroup({ children, ...props }: RadioGroupProps): JSX.Element;
|
|
2342
2751
|
|
|
2343
2752
|
declare type RadioInputHtmlAttributes = Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'width'>;
|
|
2344
|
-
interface RadioProps extends BaseProps,
|
|
2753
|
+
interface RadioProps extends BaseProps, DisplayProperty, RadioInputHtmlAttributes {
|
|
2345
2754
|
/**
|
|
2346
2755
|
* Field id
|
|
2347
2756
|
*/
|
|
@@ -2406,43 +2815,7 @@ declare namespace Radio {
|
|
|
2406
2815
|
var displayName: string;
|
|
2407
2816
|
}
|
|
2408
2817
|
|
|
2409
|
-
|
|
2410
|
-
declare type CheckboxSize = CheckboxStaticSize | ResponsiveProperty$1<`${number}rem` | number>;
|
|
2411
|
-
interface CheckboxProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'width' | 'value'>, BaseProps$1 {
|
|
2412
|
-
/** Checkbox value */
|
|
2413
|
-
value?: string | number;
|
|
2414
|
-
/** Checkbox size */
|
|
2415
|
-
size?: CheckboxSize;
|
|
2416
|
-
/** Display inline, default to true */
|
|
2417
|
-
inline?: boolean;
|
|
2418
|
-
/** Checkbox errored appearance */
|
|
2419
|
-
error?: boolean;
|
|
2420
|
-
/** Root label width 100% */
|
|
2421
|
-
fluid?: boolean;
|
|
2422
|
-
/** Root label width */
|
|
2423
|
-
width?: ResponsiveProperty$1<number | string>;
|
|
2424
|
-
/** Label content */
|
|
2425
|
-
children?: React.ReactNode;
|
|
2426
|
-
/** @preset {Brand} Checkbox success appearance */
|
|
2427
|
-
success?: boolean;
|
|
2428
|
-
/** @preset {Brand} Label with background */
|
|
2429
|
-
background?: boolean;
|
|
2430
|
-
/** @preset {Brand} Modifies appearance on colored background */
|
|
2431
|
-
onColored?: boolean;
|
|
2432
|
-
/** @deprecated Use children */
|
|
2433
|
-
label?: string;
|
|
2434
|
-
}
|
|
2435
|
-
interface CheckboxGroupProps extends BaseProps$1 {
|
|
2436
|
-
inline?: boolean;
|
|
2437
|
-
children: React.ReactNode;
|
|
2438
|
-
}
|
|
2439
|
-
interface CheckboxComponent extends ForwardRefExoticComponent<PropsWithoutRef<CheckboxProps> & RefAttributes<HTMLLabelElement>> {
|
|
2440
|
-
Group: (props: CheckboxGroupProps) => JSX.Element;
|
|
2441
|
-
}
|
|
2442
|
-
|
|
2443
|
-
declare const Checkbox: CheckboxComponent;
|
|
2444
|
-
|
|
2445
|
-
interface SelectProps extends BaseProps, ReactSelectProps, Display {
|
|
2818
|
+
interface SelectProps extends BaseProps, ReactSelectProps, DisplayProperty {
|
|
2446
2819
|
fluid?: boolean;
|
|
2447
2820
|
error?: boolean;
|
|
2448
2821
|
/**
|
|
@@ -2476,4 +2849,4 @@ declare namespace Select {
|
|
|
2476
2849
|
var displayName: string;
|
|
2477
2850
|
}
|
|
2478
2851
|
|
|
2479
|
-
export { ActionBtn, Alert, Amount, Anchor, Arrow,
|
|
2852
|
+
export { ActionBtn, Alert, Amount, Anchor, Arrow, Avatar, Badge, BaseProps, Button, COUNTRY_DATA, CURRENCY_MAP, Checkbox, ColorNames, Container, ContextMenu, CurrencyCodes, DEFAULT_MASK, FontWeight, HEX, INITIAL_MASK, Icon, Input, InputField, Modal, Nullable, Paper, Progress, RGB, RGBA, Radio, withThemeScrollable as Scrollable, Section, Select, Separator, Spacer, Spinner, Switcher, Tabs, Tag, Text, Textarea, Theme, ThemeMode, ThemeName, ThemePreset, ThemeProvider, Tooltip, adultDarkTheme, adultLightTheme, babyDarkTheme, babyLightTheme, baseInputStyle, buildMediaQuery, color, defaultIcons, desktopFirst, hexToRgbA, isHex, mobileFirst, motherDarkTheme, motherLightTheme, property, responsiveNamedProperty, responsiveProperty, screenL, screenM, screenMaxL, screenMaxM, screenMaxS, screenMaxXl, screenMaxXs, screenMaxXxs, screenMinL, screenMinM, screenMinS, screenMinXl, screenMinXs, screenRetina, screenS, screenXl, screenXs, teenDarkTheme, teenLightTheme, defaultTheme as theme, vAlign };
|