@itcase/ui 1.0.95 → 1.0.96

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.
@@ -48,6 +48,7 @@ const tabConfig = {
48
48
  function Tab(props) {
49
49
  const {
50
50
  isActive,
51
+ isDisabled,
51
52
  isHover,
52
53
  appearance,
53
54
  after,
@@ -63,6 +64,7 @@ function Tab(props) {
63
64
  labelColor,
64
65
  labelTextColorHover,
65
66
  labelColorActive,
67
+ labelColorDisabled,
66
68
  labelTextGradient,
67
69
  labelTextSize,
68
70
  labelTextWrap,
@@ -139,7 +141,7 @@ function Tab(props) {
139
141
  styles: tab
140
142
  } = useStyles.useStyles(props);
141
143
  return /*#__PURE__*/React__default.default.createElement("div", {
142
- className: clsx__default.default('tab', isActive && 'tab_state_active', isHover && 'tab_state_hover', fillClass || tabConfig.appearance[appearance] && `fill_${tabConfig.appearance[appearance].fill}`.replace(/([A-Z])/g, '-$1').toLowerCase(), fillHoverClass || tabConfig.appearance[appearance] && `fill_hover_${tabConfig.appearance[appearance].fillHover}`.replace(/([A-Z])/g, '-$1').toLowerCase(), className, sizeClass, fillActiveClass, fillActiveHoverClass, fillDisabledClass, shapeClass, typeClass, widthClass, reset && 'tab-reset', set && `tab_set_${set}`, justifyContentClass, onClick && 'cursor_type_pointer'),
144
+ className: clsx__default.default('tab', isActive && 'tab_state_active', isDisabled && 'tab_state_disabled', isHover && 'tab_state_hover', fillClass || (isDisabled ? fillDisabledClass || tabConfig.appearance[appearance] && `fill_${tabConfig.appearance[appearance].fillDisabled}`.replace(/([A-Z])/g, '-$1').toLowerCase() : fillClass || tabConfig.appearance[appearance] && `fill_${tabConfig.appearance[appearance].fill}`.replace(/([A-Z])/g, '-$1').toLowerCase()), fillHoverClass || (isDisabled ? null : tabConfig.appearance[appearance] && `fill_hover_${tabConfig.appearance[appearance].fillHover}`.replace(/([A-Z])/g, '-$1').toLowerCase()), className, sizeClass, fillActiveClass, fillActiveHoverClass, shapeClass, typeClass, widthClass, reset && 'tab-reset', set && `tab_set_${set}`, justifyContentClass, onClick && 'cursor_type_pointer'),
143
145
  "data-tour": dataTour,
144
146
  style: tab,
145
147
  onClick: onClick,
@@ -155,7 +157,7 @@ function Tab(props) {
155
157
  }, label && /*#__PURE__*/React__default.default.createElement(index$1.Text, {
156
158
  className: "tab__label",
157
159
  size: labelTextSize,
158
- textColor: labelColor || tabConfig.appearance[appearance].labelColor,
160
+ textColor: isDisabled ? labelColorDisabled || tabConfig.appearance[appearance].labelColorDisabled : labelColor || tabConfig.appearance[appearance].labelColor,
159
161
  textColorActive: isActive && (labelColorActive || tabConfig.appearance[appearance].labelColorActive),
160
162
  textColorGradient: labelTextGradient,
161
163
  textColorHover: labelTextColorHover,
@@ -169,10 +171,9 @@ function Tab(props) {
169
171
  value: badgeValue
170
172
  })), /*#__PURE__*/React__default.default.createElement(index$3.Divider, {
171
173
  direction: dividerDirection,
172
- fill: dividerFill || tabConfig.appearance[appearance].dividerFill,
174
+ fill: isDisabled ? dividerFillDisabled || tabConfig.appearance[appearance].dividerFillDisabled : dividerFill || tabConfig.appearance[appearance].dividerFill,
173
175
  fillActive: isActive && (dividerFillActive || tabConfig.appearance[appearance].dividerFillActive),
174
176
  fillActiveHover: dividerFillActiveHover,
175
- fillDisabled: dividerFillDisabled,
176
177
  fillHover: isHover && (dividerFillHover || tabConfig.appearance[appearance].dividerFillHover),
177
178
  size: dividerSize,
178
179
  width: "fill"
@@ -56,7 +56,6 @@
56
56
  .cell {
57
57
  &&_state {
58
58
  &_disabled {
59
- border: solid 1px red;
60
59
  }
61
60
  }
62
61
  }
@@ -33,7 +33,6 @@
33
33
  background-position: -200%;
34
34
  }
35
35
  }
36
- /* mode && `avatar_mode_${mode}`, */
37
36
  .label {
38
37
  &_shape {
39
38
  &_rounded {
@@ -259,7 +259,6 @@
259
259
  }
260
260
  }
261
261
  &--is-disabled {
262
- border: solid 1px red;
263
262
  }
264
263
  }
265
264
  }
@@ -51,7 +51,6 @@
51
51
  }
52
52
  }
53
53
  &--is-disabled {
54
- border: solid 1px red;
55
54
  }
56
55
  }
57
56
  }
@@ -923,7 +923,7 @@ div.swiper-block {
923
923
  position: relative;
924
924
  &__swiper {
925
925
  & .swiper-wrapper {
926
- border: solid 1px red;
926
+ box-sizing: border-box;
927
927
  }
928
928
  }
929
929
  &__wrapper {
@@ -55,9 +55,11 @@ div.tab-reset {
55
55
  }
56
56
  .tab {
57
57
  &_size {
58
- @each $size in normal, compact, xxs, xs, s, m, l, xl, xxl, {
58
+ @each $size in normal, compact, xxs, xs, s, m, l, xl, xxl {
59
59
  &_$(size) {
60
60
  ^^&__wrapper {
61
+ display: flex;
62
+ align-items: center;
61
63
  padding: var(--tab-size-$(size)-padding);
62
64
  gap: var(--tab-size-$(size)-gap);
63
65
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/ui",
3
- "version": "1.0.95",
3
+ "version": "1.0.96",
4
4
  "description": "UI components (Modal, Loader, Popup, etc)",
5
5
  "keywords": [
6
6
  "Modal",