@itcase/ui 1.9.11 → 1.9.12

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.
@@ -332,14 +332,15 @@ function Chips(props) {
332
332
  }
333
333
 
334
334
  function ChipsGroup(props) {
335
- const { className, chipsList, dataTestId, dataTour, horizontalScroll, style, onClick, children, } = props;
335
+ const { className, dataTestId, dataTour, chipsList, horizontalScroll, style, onClick, children, } = props;
336
336
  const propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props);
337
337
  const { directionClass, alignClass, alignDirectionClass, fillClass, borderColorClass, borderTypeClass, borderWidthClass, chipsAppearance, widthClass, wrapClass, } = propsGenerator;
338
338
  // @ts-expect-error
339
- const { styles: groupStyles, wrapper: groupWrapperStyles } = useStyles.useStyles(props);
340
- return (jsxRuntime.jsx("div", { className: clsx(className, 'chips-group', 'group', widthClass && `width_${widthClass}`, alignDirectionClass && `align_${alignDirectionClass}`, directionClass && `group_direction_${directionClass}`, alignClass && `align_${alignClass}`, fillClass && `fill_${fillClass}`, horizontalScroll && 'group_scroll_horizontal', wrapClass && `group_wrap_${wrapClass}`, borderColorClass && `border-color_${borderColorClass}`, borderWidthClass && `border-width_${borderWidthClass}`, borderTypeClass && `border_type_${borderTypeClass}`), "data-test-id": dataTestId, "data-tour": dataTour, style: Object.assign({}, groupStyles, style), children: horizontalScroll ? (jsxRuntime.jsx("div", { className: "chips-group__wrapper", style: groupWrapperStyles, children: children
341
- ? children
342
- : chipsList?.map((item) => (jsxRuntime.jsx(Chips, { appearance: chipsAppearance, label: item.label, isDisabled: item.isDisabled, iconAfter: item.iconAfter, iconBefore: item.iconBefore, isActive: item.isActive, onClick: () => onClick(item) }, item.id))) })) : children ? (children) : (chipsList?.map((item) => (jsxRuntime.jsx(Chips, { appearance: chipsAppearance, label: item.label, isDisabled: item.isDisabled, iconAfter: item.iconAfter, iconBefore: item.iconBefore, isActive: item.isActive, onClick: () => onClick(item) }, item.id)))) }));
339
+ const { styles: groupStyles } = useStyles.useStyles(props);
340
+ console.log();
341
+ return (jsxRuntime.jsx("div", { className: clsx(className, 'chips-group', 'group', widthClass && `width_${widthClass}`, alignDirectionClass && `align_${alignDirectionClass}`, directionClass && `group_direction_${directionClass}`, alignClass && `align_${alignClass}`, fillClass && `fill_${fillClass}`, horizontalScroll && 'group_scroll_horizontal', wrapClass && `group_wrap_${wrapClass}`, borderColorClass && `border-color_${borderColorClass}`, borderWidthClass && `border-width_${borderWidthClass}`, borderTypeClass && `border_type_${borderTypeClass}`), "data-test-id": dataTestId, "data-tour": dataTour, style: Object.assign({}, groupStyles, style), children: children
342
+ ? children
343
+ : chipsList?.map((item) => (jsxRuntime.jsx(Chips, { appearance: chipsAppearance, label: item.label, iconAfter: item.iconAfter, iconBefore: item.iconBefore, isActive: item.isActive, isDisabled: item.isDisabled, onClick: () => onClick(item) }, item.id))) }));
343
344
  }
344
345
 
345
346
  exports.Chips = Chips;
@@ -330,14 +330,15 @@ function Chips(props) {
330
330
  }
331
331
 
332
332
  function ChipsGroup(props) {
333
- const { className, chipsList, dataTestId, dataTour, horizontalScroll, style, onClick, children, } = props;
333
+ const { className, dataTestId, dataTour, chipsList, horizontalScroll, style, onClick, children, } = props;
334
334
  const propsGenerator = useDevicePropsGenerator(props);
335
335
  const { directionClass, alignClass, alignDirectionClass, fillClass, borderColorClass, borderTypeClass, borderWidthClass, chipsAppearance, widthClass, wrapClass, } = propsGenerator;
336
336
  // @ts-expect-error
337
- const { styles: groupStyles, wrapper: groupWrapperStyles } = useStyles(props);
338
- return (jsx("div", { className: clsx(className, 'chips-group', 'group', widthClass && `width_${widthClass}`, alignDirectionClass && `align_${alignDirectionClass}`, directionClass && `group_direction_${directionClass}`, alignClass && `align_${alignClass}`, fillClass && `fill_${fillClass}`, horizontalScroll && 'group_scroll_horizontal', wrapClass && `group_wrap_${wrapClass}`, borderColorClass && `border-color_${borderColorClass}`, borderWidthClass && `border-width_${borderWidthClass}`, borderTypeClass && `border_type_${borderTypeClass}`), "data-test-id": dataTestId, "data-tour": dataTour, style: Object.assign({}, groupStyles, style), children: horizontalScroll ? (jsx("div", { className: "chips-group__wrapper", style: groupWrapperStyles, children: children
339
- ? children
340
- : chipsList?.map((item) => (jsx(Chips, { appearance: chipsAppearance, label: item.label, isDisabled: item.isDisabled, iconAfter: item.iconAfter, iconBefore: item.iconBefore, isActive: item.isActive, onClick: () => onClick(item) }, item.id))) })) : children ? (children) : (chipsList?.map((item) => (jsx(Chips, { appearance: chipsAppearance, label: item.label, isDisabled: item.isDisabled, iconAfter: item.iconAfter, iconBefore: item.iconBefore, isActive: item.isActive, onClick: () => onClick(item) }, item.id)))) }));
337
+ const { styles: groupStyles } = useStyles(props);
338
+ console.log();
339
+ return (jsx("div", { className: clsx(className, 'chips-group', 'group', widthClass && `width_${widthClass}`, alignDirectionClass && `align_${alignDirectionClass}`, directionClass && `group_direction_${directionClass}`, alignClass && `align_${alignClass}`, fillClass && `fill_${fillClass}`, horizontalScroll && 'group_scroll_horizontal', wrapClass && `group_wrap_${wrapClass}`, borderColorClass && `border-color_${borderColorClass}`, borderWidthClass && `border-width_${borderWidthClass}`, borderTypeClass && `border_type_${borderTypeClass}`), "data-test-id": dataTestId, "data-tour": dataTour, style: Object.assign({}, groupStyles, style), children: children
340
+ ? children
341
+ : chipsList?.map((item) => (jsx(Chips, { appearance: chipsAppearance, label: item.label, iconAfter: item.iconAfter, iconBefore: item.iconBefore, isActive: item.isActive, isDisabled: item.isDisabled, onClick: () => onClick(item) }, item.id))) }));
341
342
  }
342
343
 
343
344
  export { Chips as C, chipsAppearance as a, ChipsGroup as b, chipsConfig as c };
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var ChipsGroup = require('../../ChipsGroup_cjs_BaaOwVai.js');
3
+ var ChipsGroup = require('../../ChipsGroup_cjs_BQ27ybIx.js');
4
4
  require('react/jsx-runtime');
5
5
  require('clsx');
6
6
  require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
@@ -7,7 +7,7 @@ var luxon = require('luxon');
7
7
  var common = require('@itcase/common');
8
8
  var useAppearanceConfig = require('../hooks/useAppearanceConfig/useAppearanceConfig.js');
9
9
  var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
10
- var ChipsGroup = require('../../ChipsGroup_cjs_BaaOwVai.js');
10
+ var ChipsGroup = require('../../ChipsGroup_cjs_BQ27ybIx.js');
11
11
  var DatePicker = require('../../DatePicker_cjs_D9q-RqJu.js');
12
12
  require('react-select');
13
13
  require('../../Icon_cjs_NpWSQezS.js');
@@ -1,4 +1,4 @@
1
- export { C as Chips, b as ChipsGroup, a as chipsAppearance, c as chipsConfig } from '../ChipsGroup_es_5mF_atdB.js';
1
+ export { C as Chips, b as ChipsGroup, a as chipsAppearance, c as chipsConfig } from '../ChipsGroup_es_DFVf6wUN.js';
2
2
  import 'react/jsx-runtime';
3
3
  import 'clsx';
4
4
  import '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
@@ -5,7 +5,7 @@ import { DateTime } from 'luxon';
5
5
  import { DATE_PERIOD_INTERVALS } from '@itcase/common';
6
6
  import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
7
7
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
8
- import { b as ChipsGroup, C as Chips } from '../ChipsGroup_es_5mF_atdB.js';
8
+ import { b as ChipsGroup, C as Chips } from '../ChipsGroup_es_DFVf6wUN.js';
9
9
  import { D as DatePickerInput } from '../DatePicker_es_C8h_4BAl.js';
10
10
  import 'react-select';
11
11
  import '../Icon_es_CJuX1p1_.js';
@@ -0,0 +1,112 @@
1
+ @define-mixin h1-print $weight: normal {
2
+ @mixin font-fixed $weight, var(--typography-h1-print),
3
+ var(--typography-h1-line-height-print), var(--typography-h1-font-print);
4
+ }
5
+
6
+ @define-mixin h2-print $weight: normal {
7
+ @mixin font-fixed $weight, var(--typography-h2-print),
8
+ var(--typography-h2-line-height-print), var(--typography-h2-font-print);
9
+ }
10
+
11
+ @define-mixin h3-print $weight: normal {
12
+ @mixin font-fixed $weight, var(--typography-h3-print),
13
+ var(--typography-h3-line-height-print), var(--typography-h3-font-print);
14
+ }
15
+
16
+ @define-mixin h4-print $weight: normal {
17
+ @mixin font-fixed $weight, var(--typography-h4-print),
18
+ var(--typography-h4-line-height-print), var(--typography-h4-font-print);
19
+ }
20
+
21
+ @define-mixin h5-print $weight: normal {
22
+ @mixin font-fixed $weight, var(--typography-h5-print),
23
+ var(--typography-h5-line-height-print), var(--typography-h5-font-print);
24
+ }
25
+
26
+ @define-mixin h6-print $weight: normal {
27
+ @mixin font-fixed $weight, var(--typography-h6-print),
28
+ var(--typography-h6-line-height-print), var(--typography-h6-font-print);
29
+ }
30
+
31
+ @define-mixin hero_h1-print $weight: normal {
32
+ @mixin font-fixed $weight, var(--typography-hero1-print),
33
+ var(--typography-hero1-line-height-print),
34
+ var(--typography-hero1-font-print);
35
+ }
36
+
37
+ @define-mixin hero_h2-print $weight: normal {
38
+ @mixin font-fixed $weight, var(--typography-hero2-print),
39
+ var(--typography-hero2-line-height-print),
40
+ var(--typography-hero2-font-print);
41
+ }
42
+
43
+ @define-mixin hero_h3-print $weight: normal {
44
+ @mixin font-fixed $weight, var(--typography-hero3-print),
45
+ var(--typography-hero3-line-height-print),
46
+ var(--typography-hero3-font-print);
47
+ }
48
+
49
+ @define-mixin hero_h4-print $weight: normal {
50
+ @mixin font-fixed $weight, var(--typography-hero4-print),
51
+ var(--typography-hero4-line-height-print),
52
+ var(--typography-hero4-font-print);
53
+ }
54
+
55
+ @define-mixin hero_h5-print $weight: normal {
56
+ @mixin font-fixed $weight, var(--typography-hero5-print),
57
+ var(--typography-hero5-line-height-print),
58
+ var(--typography-hero5-font-print);
59
+ }
60
+
61
+ @define-mixin hero_h6-print $weight: normal {
62
+ @mixin font-fixed $weight, var(--typography-hero6-print),
63
+ var(--typography-hero6-line-height-print),
64
+ var(--typography-hero6-font-print);
65
+ }
66
+
67
+ @define-mixin p-print $weight: normal {
68
+ @mixin font-fixed $weight, var(--typography-p-print),
69
+ var(--typography-p-line-height-print), var(--typography-p-font-print);
70
+ }
71
+
72
+ @define-mixin text-xxl-print $weight: normal {
73
+ @mixin font-fixed $weight, var(--typography-text-xxl-print),
74
+ var(--typography-text-xxl-line-height-print),
75
+ var(--typography-text-xxl-font-print);
76
+ }
77
+
78
+ @define-mixin text-xl-print $weight: normal {
79
+ @mixin font-fixed $weight, var(--typography-text-xl-print),
80
+ var(--typography-text-xl-line-height-print),
81
+ var(--typography-text-xl-font-print);
82
+ }
83
+
84
+ @define-mixin text-l-print $weight: normal {
85
+ @mixin font-fixed $weight, var(--typography-text-l-print),
86
+ var(--typography-text-l-line-height-print),
87
+ var(--typography-text-l-font-print);
88
+ }
89
+
90
+ @define-mixin text-m-print $weight: normal {
91
+ @mixin font-fixed $weight, var(--typography-text-m-print),
92
+ var(--typography-text-m-line-height-print),
93
+ var(--typography-text-m-font-print);
94
+ }
95
+
96
+ @define-mixin text-s-print $weight: normal {
97
+ @mixin font-fixed $weight, var(--typography-text-s-print),
98
+ var(--typography-text-s-line-height-print),
99
+ var(--typography-text-s-font-print);
100
+ }
101
+
102
+ @define-mixin text-xs-print $weight: normal {
103
+ @mixin font-fixed $weight, var(--typography-text-xs-print),
104
+ var(--typography-text-xs-line-height-print),
105
+ var(--typography-text-xs-font-print);
106
+ }
107
+
108
+ @define-mixin text-xxs-print $weight: normal {
109
+ @mixin font-fixed $weight, var(--typography-text-xxs-print),
110
+ var(--typography-text-xxs-line-height-print),
111
+ var(--typography-text-xxs-font-print);
112
+ }
@@ -43855,6 +43855,9 @@ textarea.fill {
43855
43855
  &_tertiary {
43856
43856
  font-family: var(--font-tertiary);
43857
43857
  }
43858
+ &_print {
43859
+ font-family: var(--font-print);
43860
+ }
43858
43861
  }
43859
43862
  .text-gradient {
43860
43863
  &_primary {
@@ -99311,6 +99314,41 @@ div.swiper-pagination {
99311
99314
  margin: 0;
99312
99315
  @mixin text-xxs;
99313
99316
  }
99317
+ &_xxl {
99318
+ padding: 0;
99319
+ margin: 0;
99320
+ @mixin text-xxl-print;
99321
+ }
99322
+ &_xl {
99323
+ padding: 0;
99324
+ margin: 0;
99325
+ @mixin text-xl-print;
99326
+ }
99327
+ &_l {
99328
+ padding: 0;
99329
+ margin: 0;
99330
+ @mixin text-l-print;
99331
+ }
99332
+ &_m {
99333
+ padding: 0;
99334
+ margin: 0;
99335
+ @mixin text-m-print;
99336
+ }
99337
+ &_s {
99338
+ padding: 0;
99339
+ margin: 0;
99340
+ @mixin text-s-print;
99341
+ }
99342
+ &_xs {
99343
+ padding: 0;
99344
+ margin: 0;
99345
+ @mixin text-xs-print;
99346
+ }
99347
+ &_xxs {
99348
+ padding: 0;
99349
+ margin: 0;
99350
+ @mixin text-xxs-print;
99351
+ }
99314
99352
  &_h1 {
99315
99353
  padding: 0;
99316
99354
  margin: 0;
@@ -99341,13 +99379,95 @@ div.swiper-pagination {
99341
99379
  margin: 0;
99342
99380
  @mixin h6;
99343
99381
  }
99382
+ &_$(size) {
99383
+ padding: 0;
99384
+ margin: 0;
99385
+ @mixin h1-print;
99386
+ }
99387
+ &_$(size) {
99388
+ padding: 0;
99389
+ margin: 0;
99390
+ @mixin h2-print;
99391
+ }
99392
+ &_$(size) {
99393
+ padding: 0;
99394
+ margin: 0;
99395
+ @mixin h3-print;
99396
+ }
99397
+ &_$(size) {
99398
+ padding: 0;
99399
+ margin: 0;
99400
+ @mixin h4-print;
99401
+ }
99402
+ &_$(size) {
99403
+ padding: 0;
99404
+ margin: 0;
99405
+ @mixin h5-print;
99406
+ }
99407
+ &_$(size) {
99408
+ padding: 0;
99409
+ margin: 0;
99410
+ @mixin h6-print;
99411
+ }
99344
99412
  &_p {
99345
99413
  padding: 0;
99346
99414
  margin: 0;
99347
99415
  @mixin p;
99348
99416
  }
99417
+ &_$(sizeP) {
99418
+ padding: 0;
99419
+ margin: 0;
99420
+ @mixin p-print;
99421
+ }
99349
99422
  }
99350
99423
  }
99424
+ /* .text {
99425
+ &_size {
99426
+
99427
+ @each $sizeText in xxl, xl, l, m, s, xs, xxs {
99428
+ &_$(sizeText) {
99429
+ padding: 0;
99430
+ margin: 0;
99431
+ @mixin text-$(sizeText);
99432
+ }
99433
+ }
99434
+ @each $sizeTextPrint in xxl, xl, l, m, s, xs, xxs {
99435
+ &_$(sizeTextPrint) {
99436
+ padding: 0;
99437
+ margin: 0;
99438
+ @mixin text-$(sizeTextPrint)-print;
99439
+ }
99440
+ }
99441
+ @each $size in h1, h2, h3, h4, h5, h6 {
99442
+ &_$(size) {
99443
+ padding: 0;
99444
+ margin: 0;
99445
+ @mixin $(size);
99446
+ }
99447
+ }
99448
+ @each $sizePrint in h1, h2, h3, h4, h5, h6 {
99449
+ &_$(sizePrint) {
99450
+ padding: 0;
99451
+ margin: 0;
99452
+ @mixin $(size)-print;
99453
+ }
99454
+ }
99455
+ @each $sizeP in p {
99456
+ &_$(sizeP) {
99457
+ padding: 0;
99458
+ margin: 0;
99459
+ @mixin $(sizeP);
99460
+ }
99461
+ }
99462
+ @each $sizePPrint in p {
99463
+ &_$(sizePPrint) {
99464
+ padding: 0;
99465
+ margin: 0;
99466
+ @mixin $(sizePPrint)-print;
99467
+ }
99468
+ }
99469
+ }
99470
+ } */
99351
99471
  .textarea {
99352
99472
  width: 100%;
99353
99473
  min-width: 100%;
@@ -2,6 +2,7 @@ import { CSSProperties, ReactNode } from 'react';
2
2
  import { AlignProps, AppearanceKeysDefault, AppearanceShapeKey, AppearanceSizeKey, AppearanceStyleKey, BorderColorHoverProps, BorderColorProps, BorderTypeProps, BorderWidthProps, CompositeAppearanceKey, DirectionProps, FillActiveHoverProps, FillActiveProps, FillHoverProps, FillProps, FillSizeProps, IconSizeProps, ItemFillProps, ShapeProps, ShapeStrengthProps, SizeProps, TextAlignProps, TextColorProps, TextSizeProps, TextWeightProps, TextWrapProps, TitleSizeProps } from '@itcase/types';
3
3
  import { StyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
4
4
  type TileAppearanceProps = {
5
+ badgeAppearance?: AppearanceKeysDefault;
5
6
  badgeAppearanceSize?: AppearanceSizeKey;
6
7
  badgeShape?: ShapeProps;
7
8
  badgeSize?: SizeProps;
@@ -69,4 +70,4 @@ type TileConfig = {
69
70
  appearance: TileAppearance;
70
71
  setAppearance: (appearanceConfig: TileAppearance) => void;
71
72
  };
72
- export type { TileAppearanceProps, TileAppearance, TileConfig, TileProps };
73
+ export type { TileAppearance, TileAppearanceProps, TileConfig, TileProps };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/ui",
3
- "version": "1.9.11",
3
+ "version": "1.9.12",
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.34",
105
105
  "@itcase/icons": "^1.2.23",
106
106
  "@itcase/storybook-config": "^1.2.28",
107
- "@itcase/tokens-am": "^1.1.31",
108
- "@itcase/tokens-baikal": "^1.1.31",
107
+ "@itcase/tokens-am": "^1.1.33",
108
+ "@itcase/tokens-baikal": "^1.1.33",
109
109
  "@itcase/tokens-palette": "^1.1.29",
110
110
  "clsx": "^2.1.1",
111
111
  "date-fns": "^4.1.0",
@@ -139,8 +139,8 @@
139
139
  "@babel/preset-react": "^7.28.5",
140
140
  "@commitlint/cli": "^20.1.0",
141
141
  "@commitlint/config-conventional": "^20.0.0",
142
- "@itcase/config": "^1.0.67",
143
- "@itcase/lint": "^1.1.68",
142
+ "@itcase/config": "^1.0.68",
143
+ "@itcase/lint": "^1.1.69",
144
144
  "@itcase/types": "^1.1.0",
145
145
  "@rollup/plugin-alias": "^6.0.0",
146
146
  "@rollup/plugin-babel": "^6.1.0",
@@ -168,7 +168,7 @@
168
168
  "husky": "^9.1.7",
169
169
  "lint-staged": "^16.2.6",
170
170
  "prettier": "^3.6.2",
171
- "rollup": "^4.53.2",
171
+ "rollup": "^4.53.3",
172
172
  "rollup-plugin-copy": "^3.5.0",
173
173
  "rollup-plugin-dts": "^6.2.3",
174
174
  "rollup-plugin-peer-deps-external": "^2.2.4",