@itcase/ui 1.8.52 → 1.8.53

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.
@@ -12,7 +12,7 @@ var useStyles = require('./cjs/hooks/useStyles/useStyles.js');
12
12
  var Button = require('./Button_cjs_C8P5a38-.js');
13
13
  var Icon = require('./Icon_cjs_CKWWo53f.js');
14
14
  var Input = require('./Input_cjs_BGLd0EQu.js');
15
- var Label = require('./Label_cjs_DHLQmexE.js');
15
+ var Label = require('./Label_cjs_DtPQ3nBp.js');
16
16
  var Text = require('./Text_cjs_C-Ux7Tz5.js');
17
17
  var _default = require('@itcase/icons/default');
18
18
 
@@ -10,7 +10,7 @@ import { useStyles } from './hooks/useStyles/useStyles.js';
10
10
  import { B as Button } from './Button_es_CwtOu3lT.js';
11
11
  import { I as Icon } from './Icon_es_B7IMj2rG.js';
12
12
  import { I as Input } from './Input_es_D2mNCqiH.js';
13
- import { L as Label } from './Label_es_DDjXQQpD.js';
13
+ import { L as Label } from './Label_es_Bdm6UXMY.js';
14
14
  import { T as Text } from './Text_es_BdFAdf7M.js';
15
15
  import { icons14 } from '@itcase/icons/default';
16
16
 
@@ -82,6 +82,16 @@ var labelAppearanceError = {
82
82
  },
83
83
  };
84
84
 
85
+ var labelAppearanceGradient = {
86
+ gradientPrimary: {
87
+ fill: 'gradientPrimaryDiagonal',
88
+ labelTextColor: 'surfaceTextInverse',
89
+ borderColor: 'surfaceBorderPrimary',
90
+ iconAfterFillIcon: 'surfaceItemInverse',
91
+ iconBeforeFillIcon: 'surfaceItemInverse',
92
+ },
93
+ };
94
+
85
95
  var labelAppearanceInfo = {
86
96
  infoMutedPrimary: {
87
97
  fill: 'infoMuted',
@@ -144,17 +154,17 @@ var labelAppearanceShape = {
144
154
  rounded: {
145
155
  shape: 'rounded',
146
156
  },
147
- roundedL: {
157
+ roundedS: {
148
158
  shape: 'rounded',
149
- shapeStrength: '1_5m',
159
+ shapeStrength: '0_5m',
150
160
  },
151
161
  roundedM: {
152
162
  shape: 'rounded',
153
163
  shapeStrength: '1m',
154
164
  },
155
- roundedS: {
165
+ roundedL: {
156
166
  shape: 'rounded',
157
- shapeStrength: '0_5m',
167
+ shapeStrength: '1_5m',
158
168
  },
159
169
  roundedXL: {
160
170
  shape: 'rounded',
@@ -298,7 +308,7 @@ var labelAppearanceWarning = {
298
308
  },
299
309
  };
300
310
 
301
- var labelAppearance = tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign({}, labelAppearanceDisable), labelAppearanceShape), labelAppearanceSize), labelAppearanceStyle), labelAppearanceAccent), labelAppearanceDanger), labelAppearanceError), labelAppearanceInfo), labelAppearancePrimary), labelAppearanceSecondary), labelAppearanceSuccess), labelAppearanceSurface), labelAppearanceWarning);
311
+ var labelAppearance = tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign(tslib_es6.__assign({}, labelAppearanceDisable), labelAppearanceShape), labelAppearanceSize), labelAppearanceStyle), labelAppearanceGradient), labelAppearanceAccent), labelAppearanceDanger), labelAppearanceError), labelAppearanceInfo), labelAppearancePrimary), labelAppearanceSecondary), labelAppearanceSuccess), labelAppearanceSurface), labelAppearanceWarning);
302
312
 
303
313
  var labelConfig = {
304
314
  appearance: labelAppearance,
@@ -80,6 +80,16 @@ var labelAppearanceError = {
80
80
  },
81
81
  };
82
82
 
83
+ var labelAppearanceGradient = {
84
+ gradientPrimary: {
85
+ fill: 'gradientPrimaryDiagonal',
86
+ labelTextColor: 'surfaceTextInverse',
87
+ borderColor: 'surfaceBorderPrimary',
88
+ iconAfterFillIcon: 'surfaceItemInverse',
89
+ iconBeforeFillIcon: 'surfaceItemInverse',
90
+ },
91
+ };
92
+
83
93
  var labelAppearanceInfo = {
84
94
  infoMutedPrimary: {
85
95
  fill: 'infoMuted',
@@ -142,17 +152,17 @@ var labelAppearanceShape = {
142
152
  rounded: {
143
153
  shape: 'rounded',
144
154
  },
145
- roundedL: {
155
+ roundedS: {
146
156
  shape: 'rounded',
147
- shapeStrength: '1_5m',
157
+ shapeStrength: '0_5m',
148
158
  },
149
159
  roundedM: {
150
160
  shape: 'rounded',
151
161
  shapeStrength: '1m',
152
162
  },
153
- roundedS: {
163
+ roundedL: {
154
164
  shape: 'rounded',
155
- shapeStrength: '0_5m',
165
+ shapeStrength: '1_5m',
156
166
  },
157
167
  roundedXL: {
158
168
  shape: 'rounded',
@@ -296,7 +306,7 @@ var labelAppearanceWarning = {
296
306
  },
297
307
  };
298
308
 
299
- var labelAppearance = __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, labelAppearanceDisable), labelAppearanceShape), labelAppearanceSize), labelAppearanceStyle), labelAppearanceAccent), labelAppearanceDanger), labelAppearanceError), labelAppearanceInfo), labelAppearancePrimary), labelAppearanceSecondary), labelAppearanceSuccess), labelAppearanceSurface), labelAppearanceWarning);
309
+ var labelAppearance = __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, labelAppearanceDisable), labelAppearanceShape), labelAppearanceSize), labelAppearanceStyle), labelAppearanceGradient), labelAppearanceAccent), labelAppearanceDanger), labelAppearanceError), labelAppearanceInfo), labelAppearancePrimary), labelAppearanceSecondary), labelAppearanceSuccess), labelAppearanceSurface), labelAppearanceWarning);
300
310
 
301
311
  var labelConfig = {
302
312
  appearance: labelAppearance,
@@ -6,7 +6,7 @@ var useAppearanceConfig = require('../hooks/useAppearanceConfig/useAppearanceCon
6
6
  var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
7
7
  var useStyles = require('../hooks/useStyles/useStyles.js');
8
8
  var Icon = require('../../Icon_cjs_CKWWo53f.js');
9
- var Label = require('../../Label_cjs_DHLQmexE.js');
9
+ var Label = require('../../Label_cjs_DtPQ3nBp.js');
10
10
  var Text = require('../../Text_cjs_C-Ux7Tz5.js');
11
11
  var tslib_es6 = require('../../tslib.es6_cjs_CCZ3TN_7.js');
12
12
  require('react');
@@ -4,7 +4,7 @@ var jsxRuntime = require('react/jsx-runtime');
4
4
  var React = require('react');
5
5
  var clsx = require('clsx');
6
6
  var common = require('@itcase/common');
7
- var DatePicker = require('../../DatePicker_cjs_C5A_2oSh.js');
7
+ var DatePicker = require('../../DatePicker_cjs_Dm4jEz9i.js');
8
8
  var useAppearanceConfig = require('../hooks/useAppearanceConfig/useAppearanceConfig.js');
9
9
  var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
10
10
  var ChipsGroup = require('../../ChipsGroup_cjs_CVCYLe2C.js');
@@ -31,7 +31,7 @@ require('../../Link_cjs_BqT6eVl6.js');
31
31
  require('../../Text_cjs_C-Ux7Tz5.js');
32
32
  require('../../Loader_cjs_D_n5PrK5.js');
33
33
  require('../../Input_cjs_BGLd0EQu.js');
34
- require('../../Label_cjs_DHLQmexE.js');
34
+ require('../../Label_cjs_DtPQ3nBp.js');
35
35
  require('@itcase/icons/default');
36
36
  require('lodash/castArray');
37
37
 
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var DatePicker = require('../../DatePicker_cjs_C5A_2oSh.js');
3
+ var DatePicker = require('../../DatePicker_cjs_Dm4jEz9i.js');
4
4
  require('../../tslib.es6_cjs_CCZ3TN_7.js');
5
5
  require('react/jsx-runtime');
6
6
  require('react');
@@ -31,7 +31,7 @@ require('../../Link_cjs_BqT6eVl6.js');
31
31
  require('../../Text_cjs_C-Ux7Tz5.js');
32
32
  require('../../Loader_cjs_D_n5PrK5.js');
33
33
  require('../../Input_cjs_BGLd0EQu.js');
34
- require('../../Label_cjs_DHLQmexE.js');
34
+ require('../../Label_cjs_DtPQ3nBp.js');
35
35
  require('@itcase/icons/default');
36
36
 
37
37
 
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var Label = require('../../Label_cjs_DHLQmexE.js');
3
+ var Label = require('../../Label_cjs_DtPQ3nBp.js');
4
4
  require('react/jsx-runtime');
5
5
  require('react');
6
6
  require('clsx');
@@ -4,7 +4,7 @@ import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceC
4
4
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
5
5
  import { useStyles } from '../hooks/useStyles/useStyles.js';
6
6
  import { I as Icon } from '../Icon_es_B7IMj2rG.js';
7
- import { L as Label } from '../Label_es_DDjXQQpD.js';
7
+ import { L as Label } from '../Label_es_Bdm6UXMY.js';
8
8
  import { T as Text } from '../Text_es_BdFAdf7M.js';
9
9
  import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
10
10
  import 'react';
@@ -2,7 +2,7 @@ import { jsx, jsxs } from 'react/jsx-runtime';
2
2
  import { useCallback } from 'react';
3
3
  import clsx from 'clsx';
4
4
  import { DATE_PERIOD_INTERVALS } from '@itcase/common';
5
- import { D as DatePickerInput } from '../DatePicker_es_CqxAvzoP.js';
5
+ import { D as DatePickerInput } from '../DatePicker_es_DOS_Wd3d.js';
6
6
  import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
7
7
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
8
8
  import { b as ChipsGroup, C as Chips } from '../ChipsGroup_es_BrX6_qHH.js';
@@ -29,7 +29,7 @@ import '../Link_es_BnUIX0QT.js';
29
29
  import '../Text_es_BdFAdf7M.js';
30
30
  import '../Loader_es_DXVVV9LE.js';
31
31
  import '../Input_es_D2mNCqiH.js';
32
- import '../Label_es_DDjXQQpD.js';
32
+ import '../Label_es_Bdm6UXMY.js';
33
33
  import '@itcase/icons/default';
34
34
  import 'lodash/castArray';
35
35
 
@@ -1,4 +1,4 @@
1
- export { D as DatePickerInput, a as datePickerAppearance, d as datePickerConfig } from '../DatePicker_es_CqxAvzoP.js';
1
+ export { D as DatePickerInput, a as datePickerAppearance, d as datePickerConfig } from '../DatePicker_es_DOS_Wd3d.js';
2
2
  import '../tslib.es6_es_Bwu1Cn-t.js';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react';
@@ -29,5 +29,5 @@ import '../Link_es_BnUIX0QT.js';
29
29
  import '../Text_es_BdFAdf7M.js';
30
30
  import '../Loader_es_DXVVV9LE.js';
31
31
  import '../Input_es_D2mNCqiH.js';
32
- import '../Label_es_DDjXQQpD.js';
32
+ import '../Label_es_Bdm6UXMY.js';
33
33
  import '@itcase/icons/default';
@@ -1,4 +1,4 @@
1
- export { L as Label, a as labelAppearance, l as labelConfig } from '../Label_es_DDjXQQpD.js';
1
+ export { L as Label, a as labelAppearance, l as labelConfig } from '../Label_es_Bdm6UXMY.js';
2
2
  import 'react/jsx-runtime';
3
3
  import 'react';
4
4
  import 'clsx';
@@ -0,0 +1,12 @@
1
+ .fill_gradient {
2
+ @each $type in primary, secondary, tertiary, quaternary {
3
+ &-$(type) {
4
+ @each $direction, $degree in (top, right, diagonal, bottom, left),
5
+ (0deg, 90deg, 135deg, 180deg, 270deg) {
6
+ &-$(direction) {
7
+ background: linear-gradient($(degree), var(--color-gradient-$(type)));
8
+ }
9
+ }
10
+ }
11
+ }
12
+ }
@@ -1,8 +1,10 @@
1
- declare const labelAppearanceWarning: {
2
- gradient: {
1
+ declare const labelAppearanceGradient: {
2
+ gradientPrimary: {
3
3
  fill: string;
4
- fillHover: string;
5
4
  labelTextColor: string;
5
+ borderColor: string;
6
+ iconAfterFillIcon: string;
7
+ iconBeforeFillIcon: string;
6
8
  };
7
9
  };
8
- export { labelAppearanceWarning };
10
+ export { labelAppearanceGradient };
@@ -2,7 +2,7 @@ declare const labelAppearanceShape: {
2
2
  rounded: {
3
3
  shape: string;
4
4
  };
5
- roundedL: {
5
+ roundedS: {
6
6
  shape: string;
7
7
  shapeStrength: string;
8
8
  };
@@ -10,7 +10,7 @@ declare const labelAppearanceShape: {
10
10
  shape: string;
11
11
  shapeStrength: string;
12
12
  };
13
- roundedS: {
13
+ roundedL: {
14
14
  shape: string;
15
15
  shapeStrength: string;
16
16
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/ui",
3
- "version": "1.8.52",
3
+ "version": "1.8.53",
4
4
  "description": "UI components (Modal, Loader, Popup, etc)",
5
5
  "keywords": [
6
6
  "Modal",
@@ -104,8 +104,8 @@
104
104
  "@itcase/common": "^1.2.28",
105
105
  "@itcase/icons": "^1.2.16",
106
106
  "@itcase/storybook-config": "^1.1.37",
107
- "@itcase/tokens-am": "^1.1.15",
108
- "@itcase/tokens-baikal": "^1.1.15",
107
+ "@itcase/tokens-am": "^1.1.19",
108
+ "@itcase/tokens-baikal": "^1.1.17",
109
109
  "@itcase/tokens-palette": "^1.1.11",
110
110
  "@storybook/addon-vitest": "^9.0.17",
111
111
  "clsx": "^2.1.1",
@@ -1,20 +0,0 @@
1
- .fill-gradient {
2
- @each $type in accent, primary, secondary, tertiary, surface, success, error {
3
- &_$(type) {
4
- @each $color in primary, secondary, tertiary, quaternary, quinary, senary,
5
- accent, disabled, hover {
6
- &-$(color) {
7
- @each $direction in left, top, right, bottom {
8
- &-$(direction) {
9
- background: linear-gradient(
10
- to $(direction),
11
- var(--color-$(type)-gradient-$(color)-start) 0%,
12
- var(--color-$(type)-gradient-$(color)-end) 100%
13
- );
14
- }
15
- }
16
- }
17
- }
18
- }
19
- }
20
- }