@foxford/ui 2.0.0-beta-d2ba84e-20220706 → 2.0.0-beta-38ffcd6-20220707
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/Amount/Amount.js.map +1 -1
- package/components/Anchor/Anchor.js.map +1 -1
- package/components/Anchor/style.js +1 -1
- package/components/Anchor/style.js.map +1 -1
- package/components/Button/Button.js.map +1 -1
- package/components/Button/style.js +1 -1
- package/components/Button/style.js.map +1 -1
- package/components/Icon/Icon.js.map +1 -1
- package/components/Icon/style.js +1 -1
- package/components/Icon/style.js.map +1 -1
- package/components/Input/style.js +1 -1
- package/components/Input/style.js.map +1 -1
- package/components/Modal/Modal.js.map +1 -1
- package/components/Paper/Paper.js.map +1 -1
- package/components/Section/Section.js.map +1 -1
- package/components/Separator/Separator.js.map +1 -1
- package/components/Separator/style.js +1 -1
- package/components/Separator/style.js.map +1 -1
- package/components/Spacer/Spacer.js.map +1 -1
- package/components/Spacer/style.js +1 -1
- package/components/Spacer/style.js.map +1 -1
- package/components/Spinner/Spinner.js.map +1 -1
- package/components/Spinner/style.js +1 -1
- package/components/Spinner/style.js.map +1 -1
- package/components/Tabs/Tabs.js +1 -1
- package/components/Tabs/Tabs.js.map +1 -1
- package/components/Tabs/{Tab.js → TabsTab.js} +2 -2
- package/components/Tabs/TabsTab.js.map +1 -0
- package/components/Tabs/style.js +1 -1
- package/components/Tabs/style.js.map +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/Text.js.map +1 -1
- package/components/Text/style.js +1 -1
- package/components/Text/style.js.map +1 -1
- package/components/Text.Ellipse/Text.Ellipse.js.map +1 -1
- package/dts/index.d.ts +205 -180
- package/hooks/useClassname.js +2 -0
- package/hooks/useClassname.js.map +1 -0
- package/index.cjs.js +1 -1
- package/index.cjs.js.map +1 -1
- package/index.js +1 -1
- package/mixins/responsive-property.js +1 -1
- package/mixins/responsive-property.js.map +1 -1
- package/mixins/screen.js +1 -1
- package/mixins/screen.js.map +1 -1
- package/package.json +7 -4
- package/theme/breakpoints.js +1 -1
- package/theme/breakpoints.js.map +1 -1
- package/theme/index.js.map +1 -1
- package/components/Tabs/Tab.js.map +0 -1
package/dts/index.d.ts
CHANGED
|
@@ -14,116 +14,6 @@ import Floater from 'react-floater';
|
|
|
14
14
|
import { InputState, MaskOptions } from 'react-input-mask';
|
|
15
15
|
import { ReactSelectProps } from 'react-select';
|
|
16
16
|
|
|
17
|
-
declare type ColorPropsProperties = 'color' | 'fontColor' | `${string}Color` | `color${string}`;
|
|
18
|
-
declare type ColorValue = keyof typeof ColorNames | RGB | RGBA | HEX;
|
|
19
|
-
declare type ColorCalcProperty = (_color: ColorValue) => FlattenSimpleInterpolation | null;
|
|
20
|
-
declare type ColorCssProperty = string | ColorCalcProperty;
|
|
21
|
-
declare type Color<T extends ColorPropsProperties = 'color'> = {
|
|
22
|
-
[key in `${T}`]?: RGB | RGBA | HEX | keyof typeof ColorNames;
|
|
23
|
-
};
|
|
24
|
-
declare const color: (color?: ColorValue, cssProperty?: ColorCssProperty) => () => (props: {
|
|
25
|
-
theme: DefaultTheme;
|
|
26
|
-
}) => FlattenSimpleInterpolation | null;
|
|
27
|
-
|
|
28
|
-
declare enum SizeLatin {
|
|
29
|
-
xxxl = "xxxl",
|
|
30
|
-
xxl = "xxl",
|
|
31
|
-
xl = "xl",
|
|
32
|
-
l = "l",
|
|
33
|
-
m = "m",
|
|
34
|
-
s = "s",
|
|
35
|
-
xs = "xs",
|
|
36
|
-
xxs = "xxs",
|
|
37
|
-
xxxs = "xxxs"
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* Value for breakpoint
|
|
42
|
-
*/
|
|
43
|
-
declare type PossibleValues = number | keyof typeof SizeLatin | 'auto' | 'initial' | 'inherit' | boolean;
|
|
44
|
-
declare type PropsProperties = 'size' | 'fontSize' | 'height' | 'width' | 'top' | 'right' | 'bottom' | 'left' | 'padding' | 'paddingTop' | 'paddingRight' | 'paddingBottom' | 'paddingLeft' | 'margin' | 'marginTop' | 'marginRight' | 'marginBottom' | 'marginLeft' | 'fluid';
|
|
45
|
-
declare type CalcProperty = (_size: number, _sizing?: string) => FlattenSimpleInterpolation | null;
|
|
46
|
-
declare type CssProperty = string | CalcProperty;
|
|
47
|
-
declare type ResponsiveKeys = '' | 'XS' | 'S' | 'M' | 'L' | 'XL';
|
|
48
|
-
declare type ResponsiveProperty<T extends PropsProperties, V extends PossibleValues = PossibleValues> = {
|
|
49
|
-
[key in `${T}${ResponsiveKeys}`]?: V;
|
|
50
|
-
};
|
|
51
|
-
declare const property: (value: PossibleValues, cssProperty?: CssProperty, sizing?: string) => () => () => FlattenSimpleInterpolation | null;
|
|
52
|
-
interface ResponsivePropertyPayload<T extends PropsProperties> {
|
|
53
|
-
sizes: ResponsiveProperty<T>;
|
|
54
|
-
cssProperty: CssProperty;
|
|
55
|
-
sizing?: 'px' | 'rem' | 'em' | '%';
|
|
56
|
-
customSizeHandler?: (_value: PossibleValues) => PossibleValues;
|
|
57
|
-
sort?: (_a: string, _b: string) => number;
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* Миксин для генерации media запросов
|
|
61
|
-
*
|
|
62
|
-
* @param obj.sizes Объект, в качестве ключей брэйкпоинт, в качестве значений - величина
|
|
63
|
-
* @param obj.cssProperty CSS свойство, может быть функцией, возвращающей css`` из styled-components
|
|
64
|
-
* @param obj.sizing значение величины, по умолчанию `px`
|
|
65
|
-
* @param obj.customSizeHandler функция для вычисления кастомных значений величин
|
|
66
|
-
* @returns строки медиазапросов
|
|
67
|
-
*/
|
|
68
|
-
declare const responsiveProperty: <T extends PropsProperties>({ sizes, cssProperty, sizing, customSizeHandler, sort, }: ResponsivePropertyPayload<T>) => () => () => styled_components.FlattenInterpolation<styled_components.ThemeProps<styled_components.DefaultTheme>>[];
|
|
69
|
-
|
|
70
|
-
declare type HEX = `#${string}`;
|
|
71
|
-
declare type RGB = `rgb(${number}, ${number}, ${number})`;
|
|
72
|
-
declare type RGBA = `rgba(${number}, ${number}, ${number}, ${number})`;
|
|
73
|
-
interface Tooltiped {
|
|
74
|
-
innerRef?: React.LegacyRef<HTMLElement>;
|
|
75
|
-
onMouseEnter?: () => void;
|
|
76
|
-
onMouseLeave?: () => void;
|
|
77
|
-
}
|
|
78
|
-
interface BaseProps {
|
|
79
|
-
/**
|
|
80
|
-
* CSS classname
|
|
81
|
-
*/
|
|
82
|
-
className?: string;
|
|
83
|
-
/**
|
|
84
|
-
* Style object
|
|
85
|
-
*/
|
|
86
|
-
style?: React.CSSProperties;
|
|
87
|
-
}
|
|
88
|
-
interface InputField extends Color, Color<'placeholderColor'>, ResponsiveProperty<'width', 'auto' | 'l' | 'm' | 's' | 'xs' | number> {
|
|
89
|
-
/**
|
|
90
|
-
* Is disabled field
|
|
91
|
-
*/
|
|
92
|
-
disabled?: boolean;
|
|
93
|
-
/**
|
|
94
|
-
* Has error
|
|
95
|
-
*/
|
|
96
|
-
error?: boolean;
|
|
97
|
-
/**
|
|
98
|
-
* Tab index
|
|
99
|
-
*/
|
|
100
|
-
tabIndex?: number;
|
|
101
|
-
/**
|
|
102
|
-
* Take on the size of it's container.
|
|
103
|
-
*/
|
|
104
|
-
fluid?: boolean;
|
|
105
|
-
/**
|
|
106
|
-
* Children react node
|
|
107
|
-
*/
|
|
108
|
-
children?: React.ReactNode;
|
|
109
|
-
/**
|
|
110
|
-
* Rounded style
|
|
111
|
-
*/
|
|
112
|
-
rounded?: boolean;
|
|
113
|
-
/**
|
|
114
|
-
* Placeholder text
|
|
115
|
-
*/
|
|
116
|
-
placeholder?: string;
|
|
117
|
-
/**
|
|
118
|
-
* Field name attribute
|
|
119
|
-
*/
|
|
120
|
-
name?: string;
|
|
121
|
-
autoComplete?: string | undefined;
|
|
122
|
-
autoFocus?: boolean | undefined;
|
|
123
|
-
readOnly?: boolean | undefined;
|
|
124
|
-
required?: boolean | undefined;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
17
|
declare enum ColorNames {
|
|
128
18
|
facebook = "facebook",
|
|
129
19
|
twitter = "twitter",
|
|
@@ -304,6 +194,141 @@ interface Props {
|
|
|
304
194
|
}
|
|
305
195
|
declare function ThemeProvider(props: Props): JSX.Element;
|
|
306
196
|
|
|
197
|
+
declare const theme: Theme;
|
|
198
|
+
|
|
199
|
+
declare type ColorPropsProperties = 'color' | 'fontColor' | `${string}Color` | `color${string}`;
|
|
200
|
+
declare type ColorValue = keyof typeof ColorNames | RGB | RGBA | HEX;
|
|
201
|
+
declare type ColorCalcProperty = (_color: ColorValue) => FlattenSimpleInterpolation | null;
|
|
202
|
+
declare type ColorCssProperty = string | ColorCalcProperty;
|
|
203
|
+
declare type Color<T extends ColorPropsProperties = 'color'> = {
|
|
204
|
+
[key in `${T}`]?: RGB | RGBA | HEX | keyof typeof ColorNames;
|
|
205
|
+
};
|
|
206
|
+
declare const color: (color?: ColorValue, cssProperty?: ColorCssProperty) => () => (props: {
|
|
207
|
+
theme: DefaultTheme;
|
|
208
|
+
}) => FlattenSimpleInterpolation | null;
|
|
209
|
+
|
|
210
|
+
declare enum SizeLatin {
|
|
211
|
+
xxxl = "xxxl",
|
|
212
|
+
xxl = "xxl",
|
|
213
|
+
xl = "xl",
|
|
214
|
+
l = "l",
|
|
215
|
+
m = "m",
|
|
216
|
+
s = "s",
|
|
217
|
+
xs = "xs",
|
|
218
|
+
xxs = "xxs",
|
|
219
|
+
xxxs = "xxxs"
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* Value for breakpoint
|
|
224
|
+
*/
|
|
225
|
+
declare type PossibleValues = number | keyof typeof SizeLatin | 'auto' | 'initial' | 'inherit' | boolean;
|
|
226
|
+
declare type PropsProperties = 'size' | 'fontSize' | 'height' | 'width' | 'top' | 'right' | 'bottom' | 'left' | 'padding' | 'paddingTop' | 'paddingRight' | 'paddingBottom' | 'paddingLeft' | 'margin' | 'marginTop' | 'marginRight' | 'marginBottom' | 'marginLeft' | 'fluid';
|
|
227
|
+
declare type CalcProperty = (_size: number, _sizing?: string) => FlattenSimpleInterpolation | null;
|
|
228
|
+
declare type CssProperty = string | CalcProperty;
|
|
229
|
+
declare type ResponsiveKeys = '' | 'XXS' | 'XS' | 'S' | 'M' | 'L' | 'XL';
|
|
230
|
+
declare type ResponsiveNamedProperty<T extends PropsProperties, V extends PossibleValues = PossibleValues> = {
|
|
231
|
+
[key in `${T}${ResponsiveKeys}`]?: V;
|
|
232
|
+
};
|
|
233
|
+
declare type ResponsiveProperty<V = number | string | keyof typeof SizeLatin> = V | [desktop: V, tablet: V, mobile: V] | [xl: V, l: V, m: V, s: V, xs: V, xxs: V];
|
|
234
|
+
declare const property: (value: PossibleValues, cssProperty?: CssProperty, sizing?: string) => () => () => FlattenSimpleInterpolation | null;
|
|
235
|
+
/**
|
|
236
|
+
* Sort keys as desktop first
|
|
237
|
+
* @param a key a
|
|
238
|
+
* @param b key b
|
|
239
|
+
* @returns number
|
|
240
|
+
*/
|
|
241
|
+
declare const desktopFirst: (a: string, b: string) => number;
|
|
242
|
+
/**
|
|
243
|
+
* Sort keys as mobile first
|
|
244
|
+
* @param a key a
|
|
245
|
+
* @param b key b
|
|
246
|
+
* @returns number
|
|
247
|
+
*/
|
|
248
|
+
declare const mobileFirst: (a: string, b: string) => number;
|
|
249
|
+
interface ResponsiveNamedPropertyPayload<T extends PropsProperties> {
|
|
250
|
+
sizes: ResponsiveNamedProperty<T>;
|
|
251
|
+
cssProperty: CssProperty;
|
|
252
|
+
sizing?: 'px' | 'rem' | 'em' | '%';
|
|
253
|
+
customSizeHandler?: (_value: PossibleValues) => PossibleValues;
|
|
254
|
+
sort?: (_a: string, _b: string) => number;
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
* Миксин для генерации media запросов
|
|
258
|
+
*
|
|
259
|
+
* @param obj.sizes Объект, в качестве ключей брэйкпоинт, в качестве значений - величина
|
|
260
|
+
* @param obj.cssProperty CSS свойство, может быть функцией, возвращающей css`` из styled-components
|
|
261
|
+
* @param obj.sizing значение величины, по умолчанию `px`
|
|
262
|
+
* @param obj.customSizeHandler функция для вычисления кастомных значений величин
|
|
263
|
+
* @returns строки медиазапросов
|
|
264
|
+
*/
|
|
265
|
+
declare const responsiveNamedProperty: <T extends PropsProperties>({ sizes, cssProperty, sizing, customSizeHandler, sort, }: ResponsiveNamedPropertyPayload<T>) => () => () => styled_components.FlattenInterpolation<styled_components.ThemeProps<styled_components.DefaultTheme>>[];
|
|
266
|
+
/**
|
|
267
|
+
* Миксин для генерации media запросов
|
|
268
|
+
*
|
|
269
|
+
* @param property имя пропсы
|
|
270
|
+
* @param cssProperty имя css свойства
|
|
271
|
+
* @param sizing значение величины, по умолчанию `px`
|
|
272
|
+
* @returns строки медиазапросов
|
|
273
|
+
*/
|
|
274
|
+
declare const responsiveProperty: (property: string, cssProperty?: string | null, sizing?: string) => () => (props: any) => styled_components.FlattenInterpolation<styled_components.ThemeProps<styled_components.DefaultTheme>> | null;
|
|
275
|
+
|
|
276
|
+
declare type HEX = `#${string}`;
|
|
277
|
+
declare type RGB = `rgb(${number}, ${number}, ${number})`;
|
|
278
|
+
declare type RGBA = `rgba(${number}, ${number}, ${number}, ${number})`;
|
|
279
|
+
interface Tooltiped {
|
|
280
|
+
innerRef?: React.LegacyRef<HTMLElement>;
|
|
281
|
+
onMouseEnter?: () => void;
|
|
282
|
+
onMouseLeave?: () => void;
|
|
283
|
+
}
|
|
284
|
+
interface BaseProps {
|
|
285
|
+
/**
|
|
286
|
+
* CSS classname
|
|
287
|
+
*/
|
|
288
|
+
className?: string;
|
|
289
|
+
/**
|
|
290
|
+
* Style object
|
|
291
|
+
*/
|
|
292
|
+
style?: React.CSSProperties;
|
|
293
|
+
}
|
|
294
|
+
interface InputField extends Color, Color<'placeholderColor'>, ResponsiveNamedProperty<'width', 'auto' | 'l' | 'm' | 's' | 'xs' | number> {
|
|
295
|
+
/**
|
|
296
|
+
* Is disabled field
|
|
297
|
+
*/
|
|
298
|
+
disabled?: boolean;
|
|
299
|
+
/**
|
|
300
|
+
* Has error
|
|
301
|
+
*/
|
|
302
|
+
error?: boolean;
|
|
303
|
+
/**
|
|
304
|
+
* Tab index
|
|
305
|
+
*/
|
|
306
|
+
tabIndex?: number;
|
|
307
|
+
/**
|
|
308
|
+
* Take on the size of it's container.
|
|
309
|
+
*/
|
|
310
|
+
fluid?: boolean;
|
|
311
|
+
/**
|
|
312
|
+
* Children react node
|
|
313
|
+
*/
|
|
314
|
+
children?: React.ReactNode;
|
|
315
|
+
/**
|
|
316
|
+
* Rounded style
|
|
317
|
+
*/
|
|
318
|
+
rounded?: boolean;
|
|
319
|
+
/**
|
|
320
|
+
* Placeholder text
|
|
321
|
+
*/
|
|
322
|
+
placeholder?: string;
|
|
323
|
+
/**
|
|
324
|
+
* Field name attribute
|
|
325
|
+
*/
|
|
326
|
+
name?: string;
|
|
327
|
+
autoComplete?: string | undefined;
|
|
328
|
+
autoFocus?: boolean | undefined;
|
|
329
|
+
readOnly?: boolean | undefined;
|
|
330
|
+
required?: boolean | undefined;
|
|
331
|
+
}
|
|
307
332
|
interface Theme {
|
|
308
333
|
breakpoints: Readonly<{
|
|
309
334
|
xl: number;
|
|
@@ -325,7 +350,6 @@ interface Theme {
|
|
|
325
350
|
};
|
|
326
351
|
classNamePrefix: string;
|
|
327
352
|
}
|
|
328
|
-
declare const theme: Theme;
|
|
329
353
|
|
|
330
354
|
declare type StyledComponentProps = {
|
|
331
355
|
theme?: {
|
|
@@ -497,7 +521,7 @@ declare enum IconNames {
|
|
|
497
521
|
declare type Icon$1 = React.FC<React.SVGProps<SVGSVGElement>> | (() => JSX.Element);
|
|
498
522
|
declare const defaultIcons: Record<IconNames, Icon$1>;
|
|
499
523
|
|
|
500
|
-
interface IconProps extends BaseProps, Color, VAlign,
|
|
524
|
+
interface IconProps extends BaseProps, Color, VAlign, ResponsiveNamedProperty<'size'> {
|
|
501
525
|
/**
|
|
502
526
|
* Children react node
|
|
503
527
|
*/
|
|
@@ -525,7 +549,7 @@ interface IconProps extends BaseProps, Color, VAlign, ResponsiveProperty<'size'>
|
|
|
525
549
|
* - [`VAlign`](#/Миксины)
|
|
526
550
|
* - [`Color`](#/Миксины)
|
|
527
551
|
* - [`Color<'fontColor'>`](#/Миксины)
|
|
528
|
-
* - [`
|
|
552
|
+
* - [`ResponsiveNamedProperty<'size'>`](#/Миксины)
|
|
529
553
|
*/
|
|
530
554
|
declare function Icon(props: IconProps): JSX.Element;
|
|
531
555
|
declare namespace Icon {
|
|
@@ -672,7 +696,7 @@ declare enum CurrencyCodes {
|
|
|
672
696
|
}
|
|
673
697
|
declare const CURRENCY_MAP: Readonly<Record<CurrencyCodes, string>>;
|
|
674
698
|
|
|
675
|
-
interface AmountProps extends BaseProps, Color,
|
|
699
|
+
interface AmountProps extends BaseProps, Color, ResponsiveNamedProperty<'size'>, Display {
|
|
676
700
|
/**
|
|
677
701
|
* Value for amount
|
|
678
702
|
*/
|
|
@@ -710,7 +734,7 @@ interface AmountProps extends BaseProps, Color, ResponsiveProperty<'size'>, Disp
|
|
|
710
734
|
* Расширен:
|
|
711
735
|
* - [`BaseProps`](#/Миксины)
|
|
712
736
|
* - [`Color`](#/Миксины)
|
|
713
|
-
* - [`
|
|
737
|
+
* - [`ResponsiveNamedProperty<'size'>`](#/Миксины)
|
|
714
738
|
*/
|
|
715
739
|
declare class Amount extends PureComponent<AmountProps> {
|
|
716
740
|
static displayName: string;
|
|
@@ -728,7 +752,7 @@ declare class Amount extends PureComponent<AmountProps> {
|
|
|
728
752
|
render(): JSX.Element;
|
|
729
753
|
}
|
|
730
754
|
|
|
731
|
-
interface AnchorProps extends BaseProps, Color,
|
|
755
|
+
interface AnchorProps extends BaseProps, Color, ResponsiveNamedProperty<'size'>, Display {
|
|
732
756
|
/**
|
|
733
757
|
* Custom CSS class name
|
|
734
758
|
*/
|
|
@@ -775,7 +799,7 @@ interface AnchorProps extends BaseProps, Color, ResponsiveProperty<'size'>, Disp
|
|
|
775
799
|
* Расширен:
|
|
776
800
|
* - [`BaseProps`](#/Миксины)
|
|
777
801
|
* - [`Color`](#/Миксины)
|
|
778
|
-
* - [`
|
|
802
|
+
* - [`ResponsiveNamedProperty<'size'>`](#/Миксины)
|
|
779
803
|
* - [`Display`](#/Миксины)
|
|
780
804
|
*/
|
|
781
805
|
declare function Anchor(props: typeof Anchor.defaultProps & AnchorProps): JSX.Element;
|
|
@@ -913,7 +937,7 @@ interface TextEllipseState {
|
|
|
913
937
|
* - [`BaseProps`](#/Миксины)
|
|
914
938
|
* - [`Color`](#/Миксины)
|
|
915
939
|
* - [`Display`](#/Миксины)
|
|
916
|
-
* - [`
|
|
940
|
+
* - [`ResponsiveNamedProperty<'size'>`](#/Миксины)
|
|
917
941
|
*/
|
|
918
942
|
declare class TextEllipse extends Component<TextEllipseProps, TextEllipseState> {
|
|
919
943
|
static displayName: string;
|
|
@@ -924,7 +948,7 @@ declare class TextEllipse extends Component<TextEllipseProps, TextEllipseState>
|
|
|
924
948
|
render(): JSX.Element;
|
|
925
949
|
}
|
|
926
950
|
|
|
927
|
-
interface TextProps extends BaseProps, Color,
|
|
951
|
+
interface TextProps extends BaseProps, Color, ResponsiveNamedProperty<'size'>, Display {
|
|
928
952
|
/**
|
|
929
953
|
* An element type to render as (string).
|
|
930
954
|
*/
|
|
@@ -970,7 +994,7 @@ interface TextProps extends BaseProps, Color, ResponsiveProperty<'size'>, Displa
|
|
|
970
994
|
* - [`BaseProps`](#/Миксины)
|
|
971
995
|
* - [`Color`](#/Миксины)
|
|
972
996
|
* - [`Display`](#/Миксины)
|
|
973
|
-
* - [`
|
|
997
|
+
* - [`ResponsiveNamedProperty<'size'>`](#/Миксины)
|
|
974
998
|
*/
|
|
975
999
|
declare function Text(props: TextProps): JSX.Element;
|
|
976
1000
|
declare namespace Text {
|
|
@@ -1000,7 +1024,7 @@ declare namespace Badge {
|
|
|
1000
1024
|
var displayName: string;
|
|
1001
1025
|
}
|
|
1002
1026
|
|
|
1003
|
-
interface ButtonProps extends BaseProps, Tooltiped, Display, Color, Color<'fontColor'>,
|
|
1027
|
+
interface ButtonProps extends BaseProps, Tooltiped, Display, Color, Color<'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> {
|
|
1004
1028
|
/**
|
|
1005
1029
|
* Node type
|
|
1006
1030
|
*/
|
|
@@ -1080,20 +1104,20 @@ interface ButtonProps extends BaseProps, Tooltiped, Display, Color, Color<'fontC
|
|
|
1080
1104
|
* - [`Tooltiped`](#/Миксины)
|
|
1081
1105
|
* - [`Color`](#/Миксины)
|
|
1082
1106
|
* - [`Color<'fontColor'>`](#/Миксины)
|
|
1083
|
-
* - [`
|
|
1084
|
-
* - [`
|
|
1085
|
-
* - [`
|
|
1086
|
-
* - [`
|
|
1087
|
-
* - [`
|
|
1088
|
-
* - [`
|
|
1089
|
-
* - [`
|
|
1090
|
-
* - [`
|
|
1091
|
-
* - [`
|
|
1092
|
-
* - [`
|
|
1093
|
-
* - [`
|
|
1094
|
-
* - [`
|
|
1095
|
-
* - [`
|
|
1096
|
-
* - [`
|
|
1107
|
+
* - [`ResponsiveNamedProperty<'padding'>`](#/Миксины)
|
|
1108
|
+
* - [`ResponsiveNamedProperty<'paddingTop'>`](#/Миксины)
|
|
1109
|
+
* - [`ResponsiveNamedProperty<'paddingRight'>`](#/Миксины)
|
|
1110
|
+
* - [`ResponsiveNamedProperty<'paddingBottom'>`](#/Миксины)
|
|
1111
|
+
* - [`ResponsiveNamedProperty<'paddingLeft'>`](#/Миксины)
|
|
1112
|
+
* - [`ResponsiveNamedProperty<'margin'>`](#/Миксины)
|
|
1113
|
+
* - [`ResponsiveNamedProperty<'marginTop'>`](#/Миксины)
|
|
1114
|
+
* - [`ResponsiveNamedProperty<'marginRight'>`](#/Миксины)
|
|
1115
|
+
* - [`ResponsiveNamedProperty<'marginBottom'>`](#/Миксины)
|
|
1116
|
+
* - [`ResponsiveNamedProperty<'marginLeft'>`](#/Миксины)
|
|
1117
|
+
* - [`ResponsiveNamedProperty<'fontSize'>`](#/Миксины)
|
|
1118
|
+
* - [`ResponsiveNamedProperty<'fluid', boolean>`](#/Миксины)
|
|
1119
|
+
* - [`ResponsiveNamedProperty<'width', 'auto' | 'l' | 'm' | 's' | 'xs' | number>`](#/Миксины)
|
|
1120
|
+
* - [`ResponsiveNamedProperty<'height', 'l' | 'm' | 's' | 'xs' | number>`](#/Миксины)
|
|
1097
1121
|
*/
|
|
1098
1122
|
declare function Button(props: ButtonProps): JSX.Element;
|
|
1099
1123
|
declare namespace Button {
|
|
@@ -1140,7 +1164,7 @@ interface ModalCloseProps {
|
|
|
1140
1164
|
}
|
|
1141
1165
|
declare function ModalClose({ className, onClick }: ModalCloseProps): JSX.Element;
|
|
1142
1166
|
|
|
1143
|
-
interface ModalProps extends BaseProps,
|
|
1167
|
+
interface ModalProps extends BaseProps, ResponsiveNamedProperty<'width'> {
|
|
1144
1168
|
/**
|
|
1145
1169
|
* Primary content.
|
|
1146
1170
|
*/
|
|
@@ -1198,7 +1222,7 @@ interface ModalProps extends BaseProps, ResponsiveProperty<'width'> {
|
|
|
1198
1222
|
*
|
|
1199
1223
|
* Расширен:
|
|
1200
1224
|
* - [`BaseProps`](#/Миксины)
|
|
1201
|
-
* - [`
|
|
1225
|
+
* - [`ResponsiveNamedProperty<'width'>`](#/Миксины)
|
|
1202
1226
|
*/
|
|
1203
1227
|
declare function Modal(props: ModalProps): JSX.Element;
|
|
1204
1228
|
declare namespace Modal {
|
|
@@ -1217,7 +1241,7 @@ declare namespace Modal {
|
|
|
1217
1241
|
var displayName: string;
|
|
1218
1242
|
}
|
|
1219
1243
|
|
|
1220
|
-
interface PaperProps extends BaseProps, Display, Color,
|
|
1244
|
+
interface PaperProps extends BaseProps, Display, Color, ResponsiveNamedProperty<'padding'> {
|
|
1221
1245
|
/**
|
|
1222
1246
|
* Paper content
|
|
1223
1247
|
*/
|
|
@@ -1251,7 +1275,7 @@ interface PaperProps extends BaseProps, Display, Color, ResponsiveProperty<'padd
|
|
|
1251
1275
|
* - [`BaseProps`](#/Миксины)
|
|
1252
1276
|
* - [`Display`](#/Миксины)
|
|
1253
1277
|
* - [`Color`](#/Миксины)
|
|
1254
|
-
* - [`
|
|
1278
|
+
* - [`ResponsiveNamedProperty<'padding'>`](#/Миксины)
|
|
1255
1279
|
*/
|
|
1256
1280
|
declare function Paper({ padding, rounded, shadow, className, ...props }: PaperProps): JSX.Element;
|
|
1257
1281
|
declare namespace Paper {
|
|
@@ -1607,7 +1631,7 @@ declare const withThemeScrollable: react.ForwardRefExoticComponent<{
|
|
|
1607
1631
|
theme?: DefaultTheme | undefined;
|
|
1608
1632
|
}>;
|
|
1609
1633
|
|
|
1610
|
-
interface SectionProps extends BaseProps, Display, Color,
|
|
1634
|
+
interface SectionProps extends BaseProps, Display, Color, ResponsiveNamedProperty<'padding'> {
|
|
1611
1635
|
/**
|
|
1612
1636
|
* Paper with shadow
|
|
1613
1637
|
*/
|
|
@@ -1633,7 +1657,7 @@ interface SectionProps extends BaseProps, Display, Color, ResponsiveProperty<'pa
|
|
|
1633
1657
|
* - [`BaseProps`](#/Миксины)
|
|
1634
1658
|
* - [`Color`](#/Миксины)
|
|
1635
1659
|
* - [`Display`](#/Миксины)
|
|
1636
|
-
* - [`
|
|
1660
|
+
* - [`ResponsiveNamedProperty<'padding'>`](#/Миксины)
|
|
1637
1661
|
*/
|
|
1638
1662
|
declare function Section(props: SectionProps): JSX.Element;
|
|
1639
1663
|
declare namespace Section {
|
|
@@ -1648,7 +1672,7 @@ interface SeparatorTextProps extends BaseProps, Color {
|
|
|
1648
1672
|
}
|
|
1649
1673
|
declare function SeparatorText({ children, className, color, ...restProps }: SeparatorTextProps): JSX.Element;
|
|
1650
1674
|
|
|
1651
|
-
interface SeparatorProps extends BaseProps, Color,
|
|
1675
|
+
interface SeparatorProps extends BaseProps, Color, 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'> {
|
|
1652
1676
|
/**
|
|
1653
1677
|
* Separator weight
|
|
1654
1678
|
*/
|
|
@@ -1659,20 +1683,20 @@ interface SeparatorProps extends BaseProps, Color, ResponsiveProperty<'top'>, Re
|
|
|
1659
1683
|
* - [`BaseProps`](#/Миксины)
|
|
1660
1684
|
* - [`Color`](#/Миксины)
|
|
1661
1685
|
* - [`Color<'fontColor'>`](#/Миксины)
|
|
1662
|
-
* - [`
|
|
1663
|
-
* - [`
|
|
1664
|
-
* - [`
|
|
1665
|
-
* - [`
|
|
1666
|
-
* - [`
|
|
1667
|
-
* - [`
|
|
1668
|
-
* - [`
|
|
1669
|
-
* - [`
|
|
1670
|
-
* - [`
|
|
1671
|
-
* - [`
|
|
1672
|
-
* - [`
|
|
1673
|
-
* - [`
|
|
1674
|
-
* - [`
|
|
1675
|
-
* - [`
|
|
1686
|
+
* - [`ResponsiveNamedProperty<'top'>`](#/Миксины)
|
|
1687
|
+
* - [`ResponsiveNamedProperty<'right'>`](#/Миксины)
|
|
1688
|
+
* - [`ResponsiveNamedProperty<'bottom'>`](#/Миксины)
|
|
1689
|
+
* - [`ResponsiveNamedProperty<'left'>`](#/Миксины)
|
|
1690
|
+
* - [`ResponsiveNamedProperty<'padding'>`](#/Миксины)
|
|
1691
|
+
* - [`ResponsiveNamedProperty<'paddingTop'>`](#/Миксины)
|
|
1692
|
+
* - [`ResponsiveNamedProperty<'paddingRight'>`](#/Миксины)
|
|
1693
|
+
* - [`ResponsiveNamedProperty<'paddingBottom'>`](#/Миксины)
|
|
1694
|
+
* - [`ResponsiveNamedProperty<'paddingLeft'>`](#/Миксины)
|
|
1695
|
+
* - [`ResponsiveNamedProperty<'margin'>`](#/Миксины)
|
|
1696
|
+
* - [`ResponsiveNamedProperty<'marginTop'>`](#/Миксины)
|
|
1697
|
+
* - [`ResponsiveNamedProperty<'marginRight'>`](#/Миксины)
|
|
1698
|
+
* - [`ResponsiveNamedProperty<'marginBottom'>`](#/Миксины)
|
|
1699
|
+
* - [`ResponsiveNamedProperty<'marginLeft'>`](#/Миксины)
|
|
1676
1700
|
*/
|
|
1677
1701
|
declare function Separator(props: typeof Separator.defaultProps & SeparatorProps): JSX.Element;
|
|
1678
1702
|
declare namespace Separator {
|
|
@@ -1685,7 +1709,7 @@ declare namespace Separator {
|
|
|
1685
1709
|
var displayName: string;
|
|
1686
1710
|
}
|
|
1687
1711
|
|
|
1688
|
-
interface SpacerProps extends BaseProps, Display,
|
|
1712
|
+
interface SpacerProps extends BaseProps, Display, 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'> {
|
|
1689
1713
|
/**
|
|
1690
1714
|
* Primary content
|
|
1691
1715
|
*/
|
|
@@ -1698,27 +1722,27 @@ interface SpacerProps extends BaseProps, Display, ResponsiveProperty<'top'>, Res
|
|
|
1698
1722
|
* Расширен:
|
|
1699
1723
|
* - [`BaseProps`](#/Миксины)
|
|
1700
1724
|
* - [`Display`](#/Миксины)
|
|
1701
|
-
* - [`
|
|
1702
|
-
* - [`
|
|
1703
|
-
* - [`
|
|
1704
|
-
* - [`
|
|
1705
|
-
* - [`
|
|
1706
|
-
* - [`
|
|
1707
|
-
* - [`
|
|
1708
|
-
* - [`
|
|
1709
|
-
* - [`
|
|
1710
|
-
* - [`
|
|
1711
|
-
* - [`
|
|
1712
|
-
* - [`
|
|
1713
|
-
* - [`
|
|
1714
|
-
* - [`
|
|
1725
|
+
* - [`ResponsiveNamedProperty<'top'>`](#/Миксины)
|
|
1726
|
+
* - [`ResponsiveNamedProperty<'right'>`](#/Миксины)
|
|
1727
|
+
* - [`ResponsiveNamedProperty<'bottom'>`](#/Миксины)
|
|
1728
|
+
* - [`ResponsiveNamedProperty<'left'>`](#/Миксины)
|
|
1729
|
+
* - [`ResponsiveNamedProperty<'padding'>`](#/Миксины)
|
|
1730
|
+
* - [`ResponsiveNamedProperty<'paddingTop'>`](#/Миксины)
|
|
1731
|
+
* - [`ResponsiveNamedProperty<'paddingRight'>`](#/Миксины)
|
|
1732
|
+
* - [`ResponsiveNamedProperty<'paddingBottom'>`](#/Миксины)
|
|
1733
|
+
* - [`ResponsiveNamedProperty<'paddingLeft'>`](#/Миксины)
|
|
1734
|
+
* - [`ResponsiveNamedProperty<'margin'>`](#/Миксины)
|
|
1735
|
+
* - [`ResponsiveNamedProperty<'marginTop'>`](#/Миксины)
|
|
1736
|
+
* - [`ResponsiveNamedProperty<'marginRight'>`](#/Миксины)
|
|
1737
|
+
* - [`ResponsiveNamedProperty<'marginBottom'>`](#/Миксины)
|
|
1738
|
+
* - [`ResponsiveNamedProperty<'marginLeft'>`](#/Миксины)
|
|
1715
1739
|
*/
|
|
1716
1740
|
declare function Spacer(props: SpacerProps): JSX.Element;
|
|
1717
1741
|
declare namespace Spacer {
|
|
1718
1742
|
var displayName: string;
|
|
1719
1743
|
}
|
|
1720
1744
|
|
|
1721
|
-
interface SpinnerProps extends BaseProps,
|
|
1745
|
+
interface SpinnerProps extends BaseProps, ResponsiveNamedProperty<'size'> {
|
|
1722
1746
|
/**
|
|
1723
1747
|
* Size of spinner
|
|
1724
1748
|
*/
|
|
@@ -1735,7 +1759,7 @@ interface SpinnerProps extends BaseProps, ResponsiveProperty<'size'> {
|
|
|
1735
1759
|
/**
|
|
1736
1760
|
* Расширен:
|
|
1737
1761
|
* - [`BaseProps`](#/Миксины)
|
|
1738
|
-
* - [`
|
|
1762
|
+
* - [`ResponsiveNamedProperty<'size'>`](#/Миксины)
|
|
1739
1763
|
*/
|
|
1740
1764
|
declare function Spinner({ className, ...props }: typeof Spinner.defaultProps & SpinnerProps): JSX.Element;
|
|
1741
1765
|
declare namespace Spinner {
|
|
@@ -1820,8 +1844,8 @@ interface TabProps extends Color, Color<'borderColor'> {
|
|
|
1820
1844
|
theme?: 'compact' | 'crispy' | 'crispyCompact';
|
|
1821
1845
|
className?: string;
|
|
1822
1846
|
}
|
|
1823
|
-
declare function
|
|
1824
|
-
declare namespace
|
|
1847
|
+
declare function TabsTab(props: TabProps): JSX.Element;
|
|
1848
|
+
declare namespace TabsTab {
|
|
1825
1849
|
var defaultProps: {
|
|
1826
1850
|
as: string;
|
|
1827
1851
|
activeClassName: string;
|
|
@@ -1842,6 +1866,7 @@ interface TabsProps extends BaseProps, Color, Color<'borderColor'> {
|
|
|
1842
1866
|
classNameInner?: string;
|
|
1843
1867
|
classNameContent?: string;
|
|
1844
1868
|
noBorder?: boolean;
|
|
1869
|
+
width?: ResponsiveProperty<number>;
|
|
1845
1870
|
}
|
|
1846
1871
|
/**
|
|
1847
1872
|
* Расширен:
|
|
@@ -1855,7 +1880,7 @@ declare namespace Tabs {
|
|
|
1855
1880
|
borderColor: string;
|
|
1856
1881
|
color: string;
|
|
1857
1882
|
};
|
|
1858
|
-
var Tab: typeof
|
|
1883
|
+
var Tab: typeof TabsTab;
|
|
1859
1884
|
}
|
|
1860
1885
|
|
|
1861
1886
|
declare type FloaterProps = Parameters<typeof Floater>[0];
|
|
@@ -1890,7 +1915,7 @@ declare namespace Tooltip {
|
|
|
1890
1915
|
var displayName: string;
|
|
1891
1916
|
}
|
|
1892
1917
|
|
|
1893
|
-
interface TagProps extends BaseProps, Display, Color,
|
|
1918
|
+
interface TagProps extends BaseProps, Display, Color, ResponsiveNamedProperty<'height'>, ResponsiveNamedProperty<'width'> {
|
|
1894
1919
|
as?: 'button' | 'div' | 'input' | 'label';
|
|
1895
1920
|
/**
|
|
1896
1921
|
* Field id
|
|
@@ -1958,8 +1983,8 @@ declare namespace TagInput {
|
|
|
1958
1983
|
* - [`BaseProps`](#/Миксины)
|
|
1959
1984
|
* - [`Display`](#/Миксины)
|
|
1960
1985
|
* - [`Color`](#/Миксины)
|
|
1961
|
-
* - [`
|
|
1962
|
-
* - [`
|
|
1986
|
+
* - [`ResponsiveNamedProperty<'width'>`](#/Миксины)
|
|
1987
|
+
* - [`ResponsiveNamedProperty<'height'>`](#/Миксины)
|
|
1963
1988
|
*/
|
|
1964
1989
|
declare function Tag(props: typeof Tag.defaultProps & TagProps): JSX.Element;
|
|
1965
1990
|
declare namespace Tag {
|
|
@@ -2507,4 +2532,4 @@ declare namespace Select {
|
|
|
2507
2532
|
var displayName: string;
|
|
2508
2533
|
}
|
|
2509
2534
|
|
|
2510
|
-
export { ActionBtn, Amount, Anchor, Arrow, Avatar, Badge, Button, COUNTRY_DATA, CURRENCY_MAP, Checkbox, ColorNames, Container, ContextMenu, CurrencyCodes, DEFAULT_MASK, INITIAL_MASK, Icon, Input, Modal, Paper, Progress, Radio, withThemeScrollable as Scrollable, Section, Select, Separator, Spacer, Spinner, Switcher, Tabs, Tag, Text, Textarea, ThemeProvider, Tooltip, baseInputStyle, buildMediaQuery, color, defaultIcons, property, responsiveProperty, screenL, screenM, screenMaxL, screenMaxM, screenMaxS, screenMaxXl, screenMaxXs, screenMaxXxs, screenMinL, screenMinM, screenMinS, screenMinXl, screenMinXs, screenRetina, screenS, screenXl, screenXs, theme, vAlign };
|
|
2535
|
+
export { ActionBtn, Amount, Anchor, Arrow, Avatar, Badge, BaseProps, Button, COUNTRY_DATA, CURRENCY_MAP, Checkbox, ColorNames, Container, ContextMenu, CurrencyCodes, DEFAULT_MASK, HEX, INITIAL_MASK, Icon, Input, InputField, Modal, Paper, Progress, RGB, RGBA, Radio, withThemeScrollable as Scrollable, Section, Select, Separator, Spacer, Spinner, Switcher, Tabs, Tag, Text, Textarea, Theme, ThemeProvider, Tooltip, Tooltiped, baseInputStyle, buildMediaQuery, color, defaultIcons, desktopFirst, mobileFirst, property, responsiveNamedProperty, responsiveProperty, screenL, screenM, screenMaxL, screenMaxM, screenMaxS, screenMaxXl, screenMaxXs, screenMaxXxs, screenMinL, screenMinM, screenMinS, screenMinXl, screenMinXs, screenRetina, screenS, screenXl, screenXs, theme, vAlign };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useClassname.js","sources":["../../../src/hooks/useClassname.ts"],"sourcesContent":["import cx from 'clsx'\nimport { useTheme } from 'styled-components'\n\nexport function useClassname(componentName: string, originalClassName: string | undefined) {\n const theme = useTheme()\n return cx(`${theme.classNamePrefix}-${componentName}`, originalClassName)\n}\n"],"names":["useClassname","componentName","originalClassName","theme","useTheme","cx","classNamePrefix"],"mappings":"iEAGO,SAASA,EAAaC,EAAuBC,GAClD,IAAMC,EAAQC,IACd,OAAOC,YAAMF,EAAMG,gBAAmBL,KAAAA,OAAAA,GAAiBC"}
|