@itcase/ui 1.8.40 → 1.8.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Button_cjs_Ctkyt2ES.js → Button_cjs_CcE72qEn.js} +2 -13
- package/dist/{Button_es_BiIuX0ER.js → Button_es_Cv4k5QQw.js} +2 -13
- package/dist/{DatePicker_cjs_D_1v2mS0.js → DatePicker_cjs_BC_SxUN5.js} +1 -1
- package/dist/{DatePicker_es_CQwbdG0g.js → DatePicker_es_DVIxGUlK.js} +1 -1
- package/dist/cjs/components/Button.js +1 -1
- package/dist/cjs/components/CookiesWarning.js +1 -1
- package/dist/cjs/components/DatePeriod.js +2 -2
- package/dist/cjs/components/DatePicker.js +2 -2
- package/dist/cjs/components/Response.js +1 -1
- package/dist/cjs/components/Segmented.js +18 -1
- package/dist/components/Button.js +1 -1
- package/dist/components/CookiesWarning.js +1 -1
- package/dist/components/DatePeriod.js +2 -2
- package/dist/components/DatePicker.js +2 -2
- package/dist/components/Response.js +1 -1
- package/dist/components/Segmented.js +18 -1
- package/dist/css/components/Button/Button.css +7 -4
- package/dist/types/components/Button/appearance/buttonAccent.d.ts +0 -11
- package/dist/types/components/Segmented/appearance/segmentedDefault.d.ts +17 -0
- package/dist/types/components/Segmented/appearance/segmentedSize.d.ts +1 -1
- package/package.json +1 -1
|
@@ -12,20 +12,9 @@ var useDevicePropsGenerator = require('./cjs/hooks/useDevicePropsGenerator/useDe
|
|
|
12
12
|
var useStyles = require('./cjs/hooks/useStyles/useStyles.js');
|
|
13
13
|
|
|
14
14
|
var buttonAppearanceAccent = {
|
|
15
|
-
accent: {
|
|
16
|
-
fill: 'accentPrimary',
|
|
17
|
-
fillHover: 'accentHover',
|
|
18
|
-
labelTextColor: 'accentTextPrimary',
|
|
19
|
-
labelTextColorHover: 'accentTextPrimary',
|
|
20
|
-
borderColor: 'accentBorderPrimary',
|
|
21
|
-
iconAfterFillIcon: 'accentItemPrimary',
|
|
22
|
-
iconBeforeFillIcon: 'accentItemPrimary',
|
|
23
|
-
iconFillIcon: 'accentItemPrimary',
|
|
24
|
-
loaderAppearance: 'accentPrimary',
|
|
25
|
-
},
|
|
26
15
|
accentPrimary: {
|
|
27
16
|
fill: 'accentPrimary',
|
|
28
|
-
fillHover: '
|
|
17
|
+
fillHover: 'accentHoverPrimary',
|
|
29
18
|
labelTextColor: 'accentTextPrimary',
|
|
30
19
|
labelTextColorHover: 'accentTextPrimary',
|
|
31
20
|
borderColor: 'accentBorderPrimary',
|
|
@@ -36,7 +25,7 @@ var buttonAppearanceAccent = {
|
|
|
36
25
|
},
|
|
37
26
|
accentSecondary: {
|
|
38
27
|
fill: 'accentPrimary',
|
|
39
|
-
fillHover: '
|
|
28
|
+
fillHover: 'accentHoverPrimary',
|
|
40
29
|
labelTextColor: 'accentTextSecondary',
|
|
41
30
|
labelTextColorHover: 'accentTextSecondary',
|
|
42
31
|
borderColor: 'accentBorderPrimary',
|
|
@@ -10,20 +10,9 @@ import { useDevicePropsGenerator } from './hooks/useDevicePropsGenerator/useDevi
|
|
|
10
10
|
import { useStyles } from './hooks/useStyles/useStyles.js';
|
|
11
11
|
|
|
12
12
|
var buttonAppearanceAccent = {
|
|
13
|
-
accent: {
|
|
14
|
-
fill: 'accentPrimary',
|
|
15
|
-
fillHover: 'accentHover',
|
|
16
|
-
labelTextColor: 'accentTextPrimary',
|
|
17
|
-
labelTextColorHover: 'accentTextPrimary',
|
|
18
|
-
borderColor: 'accentBorderPrimary',
|
|
19
|
-
iconAfterFillIcon: 'accentItemPrimary',
|
|
20
|
-
iconBeforeFillIcon: 'accentItemPrimary',
|
|
21
|
-
iconFillIcon: 'accentItemPrimary',
|
|
22
|
-
loaderAppearance: 'accentPrimary',
|
|
23
|
-
},
|
|
24
13
|
accentPrimary: {
|
|
25
14
|
fill: 'accentPrimary',
|
|
26
|
-
fillHover: '
|
|
15
|
+
fillHover: 'accentHoverPrimary',
|
|
27
16
|
labelTextColor: 'accentTextPrimary',
|
|
28
17
|
labelTextColorHover: 'accentTextPrimary',
|
|
29
18
|
borderColor: 'accentBorderPrimary',
|
|
@@ -34,7 +23,7 @@ var buttonAppearanceAccent = {
|
|
|
34
23
|
},
|
|
35
24
|
accentSecondary: {
|
|
36
25
|
fill: 'accentPrimary',
|
|
37
|
-
fillHover: '
|
|
26
|
+
fillHover: 'accentHoverPrimary',
|
|
38
27
|
labelTextColor: 'accentTextSecondary',
|
|
39
28
|
labelTextColorHover: 'accentTextSecondary',
|
|
40
29
|
borderColor: 'accentBorderPrimary',
|
|
@@ -8,7 +8,7 @@ var locale = require('date-fns/locale');
|
|
|
8
8
|
var DatePicker = require('react-datepicker');
|
|
9
9
|
var useDevicePropsGenerator = require('./cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
10
10
|
var useStyles = require('./cjs/hooks/useStyles/useStyles.js');
|
|
11
|
-
var Button = require('./
|
|
11
|
+
var Button = require('./Button_cjs_CcE72qEn.js');
|
|
12
12
|
var Tooltip = require('./Tooltip_cjs_BBwH8sjA.js');
|
|
13
13
|
var Input = require('./Input_cjs_CPmXkQGd.js');
|
|
14
14
|
var Label = require('./Label_cjs_Mb8j2bLu.js');
|
|
@@ -6,7 +6,7 @@ import { ru } from 'date-fns/locale';
|
|
|
6
6
|
import DatePicker from 'react-datepicker';
|
|
7
7
|
import { useDevicePropsGenerator } from './hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
8
8
|
import { useStyles } from './hooks/useStyles/useStyles.js';
|
|
9
|
-
import { B as Button } from './
|
|
9
|
+
import { B as Button } from './Button_es_Cv4k5QQw.js';
|
|
10
10
|
import { I as Icon } from './Tooltip_es_Y2aoFQW7.js';
|
|
11
11
|
import { I as Input } from './Input_es_D9Y1Rj5Y.js';
|
|
12
12
|
import { L as Label } from './Label_es_CIDBUVgO.js';
|
|
@@ -6,7 +6,7 @@ var React = require('react');
|
|
|
6
6
|
var clsx = require('clsx');
|
|
7
7
|
var Cookies = require('js-cookie');
|
|
8
8
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
9
|
-
var Button = require('../../
|
|
9
|
+
var Button = require('../../Button_cjs_CcE72qEn.js');
|
|
10
10
|
var Text = require('../../Text_cjs_C9fOm0nd.js');
|
|
11
11
|
require('lodash/camelCase');
|
|
12
12
|
require('lodash/castArray');
|
|
@@ -5,7 +5,7 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var clsx = require('clsx');
|
|
7
7
|
var common = require('@itcase/common');
|
|
8
|
-
var DatePicker = require('../../
|
|
8
|
+
var DatePicker = require('../../DatePicker_cjs_BC_SxUN5.js');
|
|
9
9
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
10
10
|
var ChipsGroup = require('../../ChipsGroup_cjs_p99H-9a8.js');
|
|
11
11
|
require('date-fns/locale');
|
|
@@ -21,7 +21,7 @@ require('../hooks/useMediaQueries/useMediaQueries.js');
|
|
|
21
21
|
require('react-responsive');
|
|
22
22
|
require('../utils/setViewportProperty.js');
|
|
23
23
|
require('../hooks/useStyles/styleAttributes.js');
|
|
24
|
-
require('../../
|
|
24
|
+
require('../../Button_cjs_CcE72qEn.js');
|
|
25
25
|
require('../../Tooltip_cjs_BBwH8sjA.js');
|
|
26
26
|
require('../../Text_cjs_C9fOm0nd.js');
|
|
27
27
|
require('react-inlinesvg');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var DatePicker = require('../../
|
|
3
|
+
var DatePicker = require('../../DatePicker_cjs_BC_SxUN5.js');
|
|
4
4
|
require('../../tslib.es6_cjs_CCZ3TN_7.js');
|
|
5
5
|
require('react/jsx-runtime');
|
|
6
6
|
require('react');
|
|
@@ -21,7 +21,7 @@ require('../utils/setViewportProperty.js');
|
|
|
21
21
|
require('../hooks/useStyles/useStyles.js');
|
|
22
22
|
require('lodash/maxBy');
|
|
23
23
|
require('../hooks/useStyles/styleAttributes.js');
|
|
24
|
-
require('../../
|
|
24
|
+
require('../../Button_cjs_CcE72qEn.js');
|
|
25
25
|
require('../../Tooltip_cjs_BBwH8sjA.js');
|
|
26
26
|
require('../../Text_cjs_C9fOm0nd.js');
|
|
27
27
|
require('react-inlinesvg');
|
|
@@ -8,7 +8,7 @@ var SVG = require('react-inlinesvg');
|
|
|
8
8
|
var urlWithAssetPrefix = require('../hoc/urlWithAssetPrefix.js');
|
|
9
9
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
10
10
|
var useStyles = require('../hooks/useStyles/useStyles.js');
|
|
11
|
-
var Button = require('../../
|
|
11
|
+
var Button = require('../../Button_cjs_CcE72qEn.js');
|
|
12
12
|
var Group = require('../../Group_cjs_Cwt0gWk4.js');
|
|
13
13
|
var Text = require('../../Text_cjs_C9fOm0nd.js');
|
|
14
14
|
require('@itcase/common');
|
|
@@ -43,6 +43,23 @@ var segmentedAppearanceDefault = {
|
|
|
43
43
|
iconFillActive: 'surfaceItemSecondary',
|
|
44
44
|
indicatorFill: 'accentPrimary',
|
|
45
45
|
},
|
|
46
|
+
defaultSecondary: {
|
|
47
|
+
fill: 'surfaceSecondary',
|
|
48
|
+
fillActive: 'accentPrimary',
|
|
49
|
+
fillActiveHover: 'accentPrimary',
|
|
50
|
+
fillHover: 'surfaceSecondary',
|
|
51
|
+
labelTextActiveColor: 'accentTextPrimary',
|
|
52
|
+
labelTextActiveHoverColor: 'accentTextPrimary',
|
|
53
|
+
labelTextColor: 'surfaceTextPrimary',
|
|
54
|
+
borderColor: 'surfaceBorderQuaternary',
|
|
55
|
+
iconAfterFill: 'surfaceItemQuaternary',
|
|
56
|
+
iconAfterFillActive: 'surfaceItemSecondary',
|
|
57
|
+
iconBeforeFill: 'surfaceItemQuaternary',
|
|
58
|
+
iconBeforeFillActive: 'surfaceItemSecondary',
|
|
59
|
+
iconFill: 'surfaceItemQuaternary',
|
|
60
|
+
iconFillActive: 'surfaceItemSecondary',
|
|
61
|
+
indicatorFill: 'accentPrimary',
|
|
62
|
+
},
|
|
46
63
|
};
|
|
47
64
|
|
|
48
65
|
var segmentedAppearanceDisabled = {
|
|
@@ -100,7 +117,7 @@ var segmentedAppearanceSize = {
|
|
|
100
117
|
labelTextSize: 'xs',
|
|
101
118
|
iconSize: '16',
|
|
102
119
|
},
|
|
103
|
-
|
|
120
|
+
sizeXXS: {
|
|
104
121
|
size: 'xxs',
|
|
105
122
|
labelTextSize: 'xxs',
|
|
106
123
|
iconSize: '14',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { B as Button, a as buttonAppearance, b as buttonConfig } from '../
|
|
1
|
+
export { B as Button, a as buttonAppearance, b as buttonConfig } from '../Button_es_Cv4k5QQw.js';
|
|
2
2
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
@@ -4,7 +4,7 @@ import { useRef, useMemo, useCallback, useEffect } from 'react';
|
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import Cookies from 'js-cookie';
|
|
6
6
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
7
|
-
import { B as Button } from '../
|
|
7
|
+
import { B as Button } from '../Button_es_Cv4k5QQw.js';
|
|
8
8
|
import { T as Text } from '../Text_es_BfLRfj-5.js';
|
|
9
9
|
import 'lodash/camelCase';
|
|
10
10
|
import 'lodash/castArray';
|
|
@@ -3,7 +3,7 @@ import { jsx, jsxs } from 'react/jsx-runtime';
|
|
|
3
3
|
import { useCallback } from 'react';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import { DATE_PERIOD_INTERVALS } from '@itcase/common';
|
|
6
|
-
import { D as DatePickerInput } from '../
|
|
6
|
+
import { D as DatePickerInput } from '../DatePicker_es_DVIxGUlK.js';
|
|
7
7
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
8
8
|
import { b as ChipsGroup, C as Chips } from '../ChipsGroup_es_CWq3TR_1.js';
|
|
9
9
|
import 'date-fns/locale';
|
|
@@ -19,7 +19,7 @@ import '../hooks/useMediaQueries/useMediaQueries.js';
|
|
|
19
19
|
import 'react-responsive';
|
|
20
20
|
import '../utils/setViewportProperty.js';
|
|
21
21
|
import '../hooks/useStyles/styleAttributes.js';
|
|
22
|
-
import '../
|
|
22
|
+
import '../Button_es_Cv4k5QQw.js';
|
|
23
23
|
import '../Tooltip_es_Y2aoFQW7.js';
|
|
24
24
|
import '../Text_es_BfLRfj-5.js';
|
|
25
25
|
import 'react-inlinesvg';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { D as DatePickerInput, a as datePickerAppearance, d as datePickerConfig } from '../
|
|
1
|
+
export { D as DatePickerInput, a as datePickerAppearance, d as datePickerConfig } from '../DatePicker_es_DVIxGUlK.js';
|
|
2
2
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
@@ -19,7 +19,7 @@ import '../utils/setViewportProperty.js';
|
|
|
19
19
|
import '../hooks/useStyles/useStyles.js';
|
|
20
20
|
import 'lodash/maxBy';
|
|
21
21
|
import '../hooks/useStyles/styleAttributes.js';
|
|
22
|
-
import '../
|
|
22
|
+
import '../Button_es_Cv4k5QQw.js';
|
|
23
23
|
import '../Tooltip_es_Y2aoFQW7.js';
|
|
24
24
|
import '../Text_es_BfLRfj-5.js';
|
|
25
25
|
import 'react-inlinesvg';
|
|
@@ -6,7 +6,7 @@ import SVG from 'react-inlinesvg';
|
|
|
6
6
|
import { urlWithAssetPrefix } from '../hoc/urlWithAssetPrefix.js';
|
|
7
7
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
8
8
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
9
|
-
import { B as Button } from '../
|
|
9
|
+
import { B as Button } from '../Button_es_Cv4k5QQw.js';
|
|
10
10
|
import { G as Group } from '../Group_es_CYW2Hquh.js';
|
|
11
11
|
import { T as Text } from '../Text_es_BfLRfj-5.js';
|
|
12
12
|
import '@itcase/common';
|
|
@@ -41,6 +41,23 @@ var segmentedAppearanceDefault = {
|
|
|
41
41
|
iconFillActive: 'surfaceItemSecondary',
|
|
42
42
|
indicatorFill: 'accentPrimary',
|
|
43
43
|
},
|
|
44
|
+
defaultSecondary: {
|
|
45
|
+
fill: 'surfaceSecondary',
|
|
46
|
+
fillActive: 'accentPrimary',
|
|
47
|
+
fillActiveHover: 'accentPrimary',
|
|
48
|
+
fillHover: 'surfaceSecondary',
|
|
49
|
+
labelTextActiveColor: 'accentTextPrimary',
|
|
50
|
+
labelTextActiveHoverColor: 'accentTextPrimary',
|
|
51
|
+
labelTextColor: 'surfaceTextPrimary',
|
|
52
|
+
borderColor: 'surfaceBorderQuaternary',
|
|
53
|
+
iconAfterFill: 'surfaceItemQuaternary',
|
|
54
|
+
iconAfterFillActive: 'surfaceItemSecondary',
|
|
55
|
+
iconBeforeFill: 'surfaceItemQuaternary',
|
|
56
|
+
iconBeforeFillActive: 'surfaceItemSecondary',
|
|
57
|
+
iconFill: 'surfaceItemQuaternary',
|
|
58
|
+
iconFillActive: 'surfaceItemSecondary',
|
|
59
|
+
indicatorFill: 'accentPrimary',
|
|
60
|
+
},
|
|
44
61
|
};
|
|
45
62
|
|
|
46
63
|
var segmentedAppearanceDisabled = {
|
|
@@ -98,7 +115,7 @@ var segmentedAppearanceSize = {
|
|
|
98
115
|
labelTextSize: 'xs',
|
|
99
116
|
iconSize: '16',
|
|
100
117
|
},
|
|
101
|
-
|
|
118
|
+
sizeXXS: {
|
|
102
119
|
size: 'xxs',
|
|
103
120
|
labelTextSize: 'xxs',
|
|
104
121
|
iconSize: '14',
|
|
@@ -46,17 +46,20 @@
|
|
|
46
46
|
^^&__wrapper {
|
|
47
47
|
min-width: var(
|
|
48
48
|
--button-type-$(type)-$(size)-min-width,
|
|
49
|
-
--button-$(size)-min-width
|
|
49
|
+
var(--button-$(size)-min-width),
|
|
50
50
|
);
|
|
51
51
|
min-height: var(
|
|
52
52
|
--button-type-$(type)-$(size)-min-height,
|
|
53
|
-
--button-$(size)-min-height
|
|
53
|
+
var(--button-$(size)-min-height)
|
|
54
54
|
);
|
|
55
55
|
padding: var(
|
|
56
56
|
--button-type-$(type)-$(size)-padding,
|
|
57
|
-
--button-$(size)-padding
|
|
57
|
+
var(--button-$(size)-padding)
|
|
58
|
+
);
|
|
59
|
+
gap: var(
|
|
60
|
+
--button-type-$(type)-$(size)-gap,
|
|
61
|
+
var(--button-$(size)-gap)
|
|
58
62
|
);
|
|
59
|
-
gap: var(--button-type-$(type)-$(size)-gap, --button-$(size)-gap);
|
|
60
63
|
}
|
|
61
64
|
}
|
|
62
65
|
}
|
|
@@ -1,15 +1,4 @@
|
|
|
1
1
|
declare const buttonAppearanceAccent: {
|
|
2
|
-
accent: {
|
|
3
|
-
fill: string;
|
|
4
|
-
fillHover: string;
|
|
5
|
-
labelTextColor: string;
|
|
6
|
-
labelTextColorHover: string;
|
|
7
|
-
borderColor: string;
|
|
8
|
-
iconAfterFillIcon: string;
|
|
9
|
-
iconBeforeFillIcon: string;
|
|
10
|
-
iconFillIcon: string;
|
|
11
|
-
loaderAppearance: string;
|
|
12
|
-
};
|
|
13
2
|
accentPrimary: {
|
|
14
3
|
fill: string;
|
|
15
4
|
fillHover: string;
|
|
@@ -16,5 +16,22 @@ declare const segmentedAppearanceDefault: {
|
|
|
16
16
|
iconFillActive: string;
|
|
17
17
|
indicatorFill: string;
|
|
18
18
|
};
|
|
19
|
+
defaultSecondary: {
|
|
20
|
+
fill: string;
|
|
21
|
+
fillActive: string;
|
|
22
|
+
fillActiveHover: string;
|
|
23
|
+
fillHover: string;
|
|
24
|
+
labelTextActiveColor: string;
|
|
25
|
+
labelTextActiveHoverColor: string;
|
|
26
|
+
labelTextColor: string;
|
|
27
|
+
borderColor: string;
|
|
28
|
+
iconAfterFill: string;
|
|
29
|
+
iconAfterFillActive: string;
|
|
30
|
+
iconBeforeFill: string;
|
|
31
|
+
iconBeforeFillActive: string;
|
|
32
|
+
iconFill: string;
|
|
33
|
+
iconFillActive: string;
|
|
34
|
+
indicatorFill: string;
|
|
35
|
+
};
|
|
19
36
|
};
|
|
20
37
|
export { segmentedAppearanceDefault };
|