@nutui/nutui-react 2.3.3 → 2.3.5

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.
Files changed (74) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/dist/esm/Address/style/style.css +1 -1
  3. package/dist/esm/Audio/style/style.css +1 -1
  4. package/dist/esm/AvatarCropper/style/style.css +1 -1
  5. package/dist/esm/AvatarCropper.js +9 -6
  6. package/dist/esm/Cascader/style/style.css +1 -1
  7. package/dist/esm/DatePicker/style/style.css +1 -1
  8. package/dist/esm/DatePicker.js +1 -3
  9. package/dist/esm/Dialog/style/style.css +1 -1
  10. package/dist/esm/InfiniteLoading/style/style.css +1 -1
  11. package/dist/esm/InfiniteLoading.js +67 -26
  12. package/dist/esm/Picker/style/style.css +1 -1
  13. package/dist/esm/Picker.js +2 -2
  14. package/dist/esm/Popover/style/style.css +1 -1
  15. package/dist/esm/Popover.js +2 -2
  16. package/dist/esm/Range/style/style.css +1 -1
  17. package/dist/esm/Range.js +28 -13
  18. package/dist/esm/Tabbar/style/style.css +1 -1
  19. package/dist/esm/TabbarItem/style/style.css +1 -1
  20. package/dist/esm/Tabs/style/style.css +1 -1
  21. package/dist/esm/Tour/style/style.css +1 -1
  22. package/dist/esm/VirtualList.js +3 -1
  23. package/dist/esm/types/src/packages/avatarcropper/avatarcropper.d.ts +2 -0
  24. package/dist/esm/types/src/packages/avatarcropper/avatarcropper.taro.d.ts +2 -0
  25. package/dist/esm/types/src/packages/avatarcropper/index.d.ts +1 -1
  26. package/dist/esm/types/src/packages/avatarcropper/index.taro.d.ts +1 -1
  27. package/dist/esm/types/src/packages/configprovider/types.d.ts +1 -1
  28. package/dist/esm/types/src/packages/empty/empty.taro.d.ts +1 -1
  29. package/dist/esm/types/src/packages/infiniteloading/infiniteloading.d.ts +2 -2
  30. package/dist/esm/types/src/packages/infiniteloading/infiniteloading.taro.d.ts +2 -2
  31. package/dist/esm/types/src/packages/range/index.d.ts +2 -1
  32. package/dist/esm/types/src/packages/range/index.taro.d.ts +2 -1
  33. package/dist/esm/types/src/packages/range/range.d.ts +2 -2
  34. package/dist/esm/types/src/packages/range/range.taro.d.ts +2 -2
  35. package/dist/esm/types/src/packages/range/types.d.ts +6 -0
  36. package/dist/esm/types/src/packages/virtuallist/utils.d.ts +1 -1
  37. package/dist/esm/types/src/packages/virtuallist/virtuallist.taro.d.ts +1 -0
  38. package/dist/locales/base.js +1 -1
  39. package/dist/locales/en-US.js +1 -1
  40. package/dist/locales/id-ID.js +1 -1
  41. package/dist/locales/tr-TR.js +1 -1
  42. package/dist/locales/zh-CN.js +1 -1
  43. package/dist/locales/zh-TW.js +1 -1
  44. package/dist/locales/zh-UG.js +1 -1
  45. package/dist/nutui.react.es.js +53 -39
  46. package/dist/nutui.react.umd.js +53 -39
  47. package/dist/packages/avatarcropper/avatarcropper.scss +5 -0
  48. package/dist/packages/dialog/dialog.scss +1 -1
  49. package/dist/packages/infiniteloading/infiniteloading.scss +2 -6
  50. package/dist/packages/picker/picker.scss +1 -0
  51. package/dist/packages/popover/popover.scss +21 -15
  52. package/dist/packages/range/range.scss +2 -2
  53. package/dist/packages/tabbaritem/tabbaritem.scss +10 -4
  54. package/dist/packages/tabs/tabs.scss +2 -2
  55. package/dist/style.css +1 -1
  56. package/dist/style.mjs +1 -1
  57. package/dist/styles/variables-jmapp.scss +9 -0
  58. package/dist/styles/variables.scss +9 -0
  59. package/dist/types/packages/avatarcropper/avatarcropper.d.ts +6 -0
  60. package/dist/types/packages/avatarcropper/avatarcropper.taro.d.ts +2 -0
  61. package/dist/types/packages/avatarcropper/index.d.ts +1 -1
  62. package/dist/types/packages/avatarcropper/index.taro.d.ts +1 -1
  63. package/dist/types/packages/configprovider/types.d.ts +1 -1
  64. package/dist/types/packages/empty/empty.taro.d.ts +1 -1
  65. package/dist/types/packages/infiniteloading/infiniteloading.d.ts +2 -2
  66. package/dist/types/packages/infiniteloading/infiniteloading.taro.d.ts +2 -2
  67. package/dist/types/packages/range/index.d.ts +2 -1
  68. package/dist/types/packages/range/index.taro.d.ts +2 -1
  69. package/dist/types/packages/range/range.d.ts +2 -2
  70. package/dist/types/packages/range/range.taro.d.ts +2 -2
  71. package/dist/types/packages/range/types.d.ts +6 -0
  72. package/dist/types/packages/virtuallist/utils.d.ts +1 -1
  73. package/dist/types/packages/virtuallist/virtuallist.taro.d.ts +1 -0
  74. package/package.json +2 -2
@@ -8,7 +8,7 @@ var __publicField = (obj, key, value) => {
8
8
  return value;
9
9
  };
10
10
  /*!
11
- * @nutui/nutui-react v2.3.3 Fri Dec 22 2023 17:49:13 GMT+0800 (China Standard Time)
11
+ * @nutui/nutui-react v2.3.5 Fri Jan 05 2024 14:40:52 GMT+0800 (China Standard Time)
12
12
  * (c) 2023 @jdf2e.
13
13
  * Released under the MIT License.
14
14
  */
@@ -14084,7 +14084,7 @@ Please add \`${key}Action\` when creating your handler.`);
14084
14084
  },
14085
14085
  key: item.value ? item.value : index
14086
14086
  },
14087
- /* @__PURE__ */ React.createElement(React.Fragment, null, item.text ? item.text : item)
14087
+ /* @__PURE__ */ React.createElement(React.Fragment, null, item.text)
14088
14088
  );
14089
14089
  }),
14090
14090
  !threeDimensional && options2.map((item, index) => {
@@ -14094,7 +14094,7 @@ Please add \`${key}Action\` when creating your handler.`);
14094
14094
  className: "nut-picker-roller-item-title",
14095
14095
  key: item.value ? item.value : index
14096
14096
  },
14097
- /* @__PURE__ */ React.createElement(React.Fragment, null, item.text ? item.text : item)
14097
+ /* @__PURE__ */ React.createElement(React.Fragment, null, item.text)
14098
14098
  );
14099
14099
  })
14100
14100
  ),
@@ -14659,9 +14659,7 @@ Please add \`${key}Action\` when creating your handler.`);
14659
14659
  return val || [];
14660
14660
  };
14661
14661
  React.useEffect(() => {
14662
- if (selectedDate) {
14663
- setPickerOptions(columns());
14664
- }
14662
+ setPickerOptions(columns());
14665
14663
  }, [selectedDate, startDate, endDate]);
14666
14664
  return /* @__PURE__ */ React.createElement("div", { className: `nut-datepicker ${className}`, style, ...rest }, pickerOptions.length && /* @__PURE__ */ React.createElement(
14667
14665
  Picker$1,
@@ -17433,11 +17431,20 @@ Please add \`${key}Action\` when creating your handler.`);
17433
17431
  const [exactValue, setEaxctValue] = React.useState(
17434
17432
  () => value || defaultValue || 0
17435
17433
  );
17434
+ const marksRef = React.useRef({});
17436
17435
  React.useEffect(() => {
17437
17436
  if (marks) {
17438
- const marksKeys = Object.keys(marks);
17439
- const list = marksKeys.map(parseFloat).sort((a2, b) => a2 - b).filter((point) => point >= min && point <= max);
17440
- setMarksList(list);
17437
+ if (Array.isArray(marks)) {
17438
+ const list = marks.sort((a2, b) => a2.value - b.value).filter((point) => point.value >= min && point.value <= max);
17439
+ setMarksList(list.map((mark) => mark.value));
17440
+ list.forEach((mark) => {
17441
+ marksRef.current[mark.value] = mark.label !== void 0 ? mark.label : mark.value;
17442
+ });
17443
+ } else {
17444
+ const marksKeys = Object.keys(marks);
17445
+ const list = marksKeys.map(parseFloat).sort((a2, b) => a2 - b).filter((point) => point >= min && point <= max);
17446
+ setMarksList(list);
17447
+ }
17441
17448
  }
17442
17449
  }, [marks]);
17443
17450
  const scope = () => {
@@ -17630,20 +17637,20 @@ Please add \`${key}Action\` when creating your handler.`);
17630
17637
  const renderButton = (index) => {
17631
17638
  return /* @__PURE__ */ React.createElement(React.Fragment, null, button || /* @__PURE__ */ React.createElement("div", { className: "nut-range-button" }, currentDescription !== null && /* @__PURE__ */ React.createElement("div", { className: "number" }, currentDescription ? currentDescription(curValue(index)) : curValue(index))));
17632
17639
  };
17633
- return /* @__PURE__ */ React.createElement("div", { className: containerClasses }, minDescription !== null && /* @__PURE__ */ React.createElement("div", { className: "min" }, minDescription || min), /* @__PURE__ */ React.createElement("div", { ref: root2, className: classes, onClick: (e2) => click(e2) }, marksList.length > 0 && /* @__PURE__ */ React.createElement("div", { className: "nut-range-mark" }, marksList.map((marks2) => {
17640
+ return /* @__PURE__ */ React.createElement("div", { className: containerClasses }, minDescription !== null && /* @__PURE__ */ React.createElement("div", { className: "min" }, minDescription || min), /* @__PURE__ */ React.createElement("div", { ref: root2, className: classes, onClick: (e2) => click(e2) }, marksList.length > 0 && /* @__PURE__ */ React.createElement("div", { className: "nut-range-mark" }, marksList.map((mark) => {
17634
17641
  return /* @__PURE__ */ React.createElement(
17635
17642
  "span",
17636
17643
  {
17637
- key: marks2,
17638
- className: markClassName(marks2),
17639
- style: marksStyle(marks2)
17644
+ key: mark,
17645
+ className: markClassName(mark),
17646
+ style: marksStyle(mark)
17640
17647
  },
17641
- marks2,
17648
+ Array.isArray(marks) ? marksRef.current[mark] : marks[mark],
17642
17649
  /* @__PURE__ */ React.createElement(
17643
17650
  "span",
17644
17651
  {
17645
17652
  className: classNames("nut-range-tick", {
17646
- active: tickClass(marks2)
17653
+ active: tickClass(mark)
17647
17654
  })
17648
17655
  }
17649
17656
  )
@@ -19575,7 +19582,7 @@ Please add \`${key}Action\` when creating your handler.`);
19575
19582
  const [isInfiniting, setIsInfiniting] = React.useState(false);
19576
19583
  const scroller = React.useRef(null);
19577
19584
  const refreshTop = React.useRef(null);
19578
- const scrollEl = React.useRef(window);
19585
+ const scrollEl = React.useRef(null);
19579
19586
  const isTouching = React.useRef(false);
19580
19587
  const beforeScrollTop = React.useRef(0);
19581
19588
  const refreshMaxH = React.useRef(0);
@@ -19583,14 +19590,16 @@ Please add \`${key}Action\` when creating your handler.`);
19583
19590
  const distance = React.useRef(0);
19584
19591
  const classes = classNames(classPrefix$d, className);
19585
19592
  React.useEffect(() => {
19593
+ var _a2;
19586
19594
  if (target && document.getElementById(target)) {
19587
19595
  scrollEl.current = document.getElementById(target);
19588
19596
  } else {
19589
19597
  scrollEl.current = window;
19590
19598
  }
19591
- scrollEl.current.addEventListener("scroll", handleScroll, capture);
19599
+ (_a2 = scrollEl.current) == null ? void 0 : _a2.addEventListener("scroll", handleScroll, capture);
19592
19600
  return () => {
19593
- scrollEl.current.removeEventListener("scroll", handleScroll, capture);
19601
+ var _a3;
19602
+ (_a3 = scrollEl.current) == null ? void 0 : _a3.removeEventListener("scroll", handleScroll, capture);
19594
19603
  };
19595
19604
  }, [hasMore, isInfiniting, onLoadMore]);
19596
19605
  React.useEffect(() => {
@@ -19608,15 +19617,13 @@ Please add \`${key}Action\` when creating your handler.`);
19608
19617
  transition: isTouching.current ? `height 0s cubic-bezier(0.25,0.1,0.25,1)` : `height 0.2s cubic-bezier(0.25,0.1,0.25,1)`
19609
19618
  };
19610
19619
  };
19611
- const handleScroll = () => {
19612
- requestAniFrame$1(() => {
19613
- if (!isScrollAtBottom() || !hasMore || isInfiniting) {
19614
- return false;
19615
- }
19616
- setIsInfiniting(true);
19617
- onLoadMore && onLoadMore(infiniteDone);
19618
- return true;
19619
- });
19620
+ const handleScroll = async () => {
19621
+ if (!isScrollAtBottom() || !hasMore || isInfiniting) {
19622
+ return;
19623
+ }
19624
+ setIsInfiniting(true);
19625
+ await (onLoadMore == null ? void 0 : onLoadMore());
19626
+ infiniteDone();
19620
19627
  };
19621
19628
  const infiniteDone = () => {
19622
19629
  setIsInfiniting(false);
@@ -19653,12 +19660,13 @@ Please add \`${key}Action\` when creating your handler.`);
19653
19660
  isTouching.current = false;
19654
19661
  }
19655
19662
  };
19656
- const touchEnd = () => {
19663
+ const touchEnd = async () => {
19657
19664
  if (distance.current < refreshMaxH.current) {
19658
19665
  distance.current = 0;
19659
19666
  getRefreshTop().style.height = `${distance.current}px`;
19660
19667
  } else {
19661
- onRefresh && onRefresh(refreshDone);
19668
+ await (onRefresh == null ? void 0 : onRefresh());
19669
+ refreshDone();
19662
19670
  }
19663
19671
  };
19664
19672
  const getWindowScrollTop = () => {
@@ -19700,9 +19708,9 @@ Please add \`${key}Action\` when creating your handler.`);
19700
19708
  onTouchEnd: touchEnd,
19701
19709
  ...restProps
19702
19710
  },
19703
- /* @__PURE__ */ React.createElement("div", { className: "nut-infinite-top", ref: refreshTop, style: getStyle() }, /* @__PURE__ */ React.createElement("div", { className: "top-box" }, pullingText || locale.infiniteloading.pullRefreshText)),
19711
+ /* @__PURE__ */ React.createElement("div", { className: "nut-infinite-top", ref: refreshTop, style: getStyle() }, /* @__PURE__ */ React.createElement("div", { className: "nut-infinite-top-tips" }, pullingText || locale.infiniteloading.pullRefreshText)),
19704
19712
  /* @__PURE__ */ React.createElement("div", { className: "nut-infinite-container" }, children),
19705
- /* @__PURE__ */ React.createElement("div", { className: "nut-infinite-bottom" }, isInfiniting ? /* @__PURE__ */ React.createElement("div", { className: "bottom-box" }, loadingText || locale.infiniteloading.loadText) : !hasMore && /* @__PURE__ */ React.createElement("div", { className: "bottom-box" }, loadMoreText || locale.infiniteloading.loadMoreText))
19713
+ /* @__PURE__ */ React.createElement("div", { className: "nut-infinite-bottom" }, isInfiniting ? /* @__PURE__ */ React.createElement("div", { className: "nut-infinite-bottom-tips" }, loadingText || locale.infiniteloading.loadText) : !hasMore && /* @__PURE__ */ React.createElement("div", { className: "nut-infinite-bottom-tips" }, loadMoreText || locale.infiniteloading.loadMoreText))
19706
19714
  );
19707
19715
  };
19708
19716
  InfiniteLoading.defaultProps = defaultProps$B;
@@ -20549,10 +20557,10 @@ Please add \`${key}Action\` when creating your handler.`);
20549
20557
  key: item.key || index,
20550
20558
  onClick: () => handleSelect(item, index)
20551
20559
  },
20552
- item.icon ? /* @__PURE__ */ React.createElement("i", { className: "nut-popover-menu-item-icon" }, item.icon) : null,
20560
+ item.icon ? /* @__PURE__ */ React.createElement("div", { className: "nut-popover-menu-item-icon" }, item.icon) : null,
20553
20561
  /* @__PURE__ */ React.createElement("div", { className: "nut-popover-menu-item-name" }, item.name),
20554
20562
  item.action && item.action.icon ? /* @__PURE__ */ React.createElement(
20555
- "i",
20563
+ "div",
20556
20564
  {
20557
20565
  className: "nut-popover-menu-item-action-icon",
20558
20566
  onClick: (e2) => {
@@ -24029,14 +24037,16 @@ Please add \`${key}Action\` when creating your handler.`);
24029
24037
  tempIndex = tempIndex || 0;
24030
24038
  return tempIndex;
24031
24039
  };
24032
- const updateItemSize = (positions, items, sizeKey) => {
24040
+ const updateItemSize = (positions, items, sizeKey, margin) => {
24033
24041
  const newPos = positions.concat();
24034
24042
  Array.from(items).forEach((item) => {
24035
24043
  const index = Number(item.getAttribute("data-index"));
24036
24044
  const styleVal = item.getAttribute("style");
24037
24045
  if (styleVal && styleVal.includes("none"))
24038
24046
  return;
24039
- const nowSize = item.getBoundingClientRect()[sizeKey];
24047
+ let nowSize = item.getBoundingClientRect()[sizeKey];
24048
+ if (margin)
24049
+ nowSize += margin;
24040
24050
  const oldSize = positions[index][sizeKey];
24041
24051
  const dValue = oldSize - nowSize;
24042
24052
  if (dValue) {
@@ -24784,7 +24794,8 @@ Please add \`${key}Action\` when creating your handler.`);
24784
24794
  /* @__PURE__ */ React.createElement(Button, { type: "success", key: "confirm" }, "确认")
24785
24795
  ],
24786
24796
  toolbarPosition: "bottom",
24787
- editText: "编辑"
24797
+ editText: "编辑",
24798
+ shape: "square"
24788
24799
  };
24789
24800
  const classPrefix = `nut-avatar-cropper`;
24790
24801
  const AvatarCropper = (props) => {
@@ -24795,6 +24806,7 @@ Please add \`${key}Action\` when creating your handler.`);
24795
24806
  space,
24796
24807
  toolbarPosition,
24797
24808
  editText,
24809
+ shape,
24798
24810
  className,
24799
24811
  style,
24800
24812
  onConfirm,
@@ -24804,7 +24816,7 @@ Please add \`${key}Action\` when creating your handler.`);
24804
24816
  ...defaultProps,
24805
24817
  ...props
24806
24818
  };
24807
- const cls = classNames(classPrefix, className);
24819
+ const cls = classNames(classPrefix, className, shape === "round" && "round");
24808
24820
  const toolbarPositionCls = classNames(
24809
24821
  `${classPrefix}-popup-toolbar`,
24810
24822
  toolbarPosition
@@ -24852,7 +24864,8 @@ Please add \`${key}Action\` when creating your handler.`);
24852
24864
  const height = width;
24853
24865
  return {
24854
24866
  width,
24855
- height
24867
+ height,
24868
+ borderRadius: shape === "round" ? "50%" : ""
24856
24869
  };
24857
24870
  }, [devicePixelRatio, drawImage.swidth]);
24858
24871
  const isAngle = React.useMemo(() => {
@@ -25126,7 +25139,8 @@ Please add \`${key}Action\` when creating your handler.`);
25126
25139
  type: "file",
25127
25140
  accept: "image/*",
25128
25141
  className: `${classPrefix}-input`,
25129
- onChange: (e2) => inputImageChange(e2)
25142
+ onChange: (e2) => inputImageChange(e2),
25143
+ "aria-label": "选择图片"
25130
25144
  }
25131
25145
  ), /* @__PURE__ */ React.createElement("div", { className: "nut-avatar-cropper-edit-text" }, editText)), CropperPopup());
25132
25146
  };
@@ -89,4 +89,9 @@
89
89
  }
90
90
  }
91
91
  }
92
+ &.round {
93
+ .nut-avatar-cropper-edit-text {
94
+ border-radius: 50%;
95
+ }
96
+ }
92
97
  }
@@ -35,7 +35,7 @@
35
35
  &-header {
36
36
  display: block;
37
37
  text-align: center;
38
- font-size: $font-size-large;
38
+ font-size: $dialog-header-font-size;
39
39
  font-weight: $dialog-header-font-weight;
40
40
  color: $color-title;
41
41
  @include oneline-ellipsis();
@@ -11,7 +11,7 @@
11
11
  font-size: $font-size-small;
12
12
  color: $infiniteloading-color;
13
13
 
14
- .top-box {
14
+ &-tips {
15
15
  width: 100%;
16
16
  display: flex;
17
17
  flex-direction: column;
@@ -21,8 +21,6 @@
21
21
  display: flex;
22
22
  justify-content: center;
23
23
  align-items: center;
24
- width: $pulltorefresh-icon-width;
25
- height: $pulltorefresh-icon-height;
26
24
  margin-bottom: 4px;
27
25
  }
28
26
  }
@@ -38,14 +36,12 @@
38
36
  color: $infiniteloading-color;
39
37
  text-align: center;
40
38
 
41
- .bottom-box {
39
+ &-tips {
42
40
  display: flex;
43
41
  justify-content: center;
44
42
  align-items: center;
45
43
 
46
44
  &-icons {
47
- width: $infiniteloading-icon-size;
48
- height: $infiniteloading-icon-size;
49
45
  margin-right: 8px;
50
46
  }
51
47
  }
@@ -85,6 +85,7 @@
85
85
  background-position: top, bottom;
86
86
  background-size: 100% 108px;
87
87
  background-repeat: no-repeat;
88
+ transform: translateZ(0);
88
89
  z-index: 3;
89
90
  }
90
91
 
@@ -22,21 +22,6 @@
22
22
  border-bottom-color: $popover-border-color;
23
23
  border-top-width: 0;
24
24
  margin-top: -8px;
25
-
26
- &.nut-popover-arrow-bottom {
27
- left: 50%;
28
- transform: translateX(-50%);
29
- }
30
-
31
- &.nut-popover-arrow-bottom-start {
32
- left: 16px;
33
- transform: translateX(0%);
34
- }
35
-
36
- &.nut-popover-arrow-bottom-end {
37
- right: 16px;
38
- transform: translateX(0%);
39
- }
40
25
  }
41
26
 
42
27
  &-left {
@@ -189,10 +174,31 @@
189
174
  }
190
175
  }
191
176
 
177
+ &-bottom {
178
+ .nut-popover-arrow-bottom {
179
+ left: 50%;
180
+ transform: translateX(-50%);
181
+ }
182
+ }
183
+
192
184
  &-bottom-end {
185
+ .nut-popover-arrow-bottom-end {
186
+ right: 16px;
187
+ transform: translateX(0%);
188
+ }
189
+
193
190
  right: 0;
194
191
  }
195
192
 
193
+ &-bottom-start {
194
+ left: 0;
195
+
196
+ .nut-popover-arrow-bottom-start {
197
+ left: 16px;
198
+ transform: translateX(0%);
199
+ }
200
+ }
201
+
196
202
  &-left-end {
197
203
  bottom: 0;
198
204
  }
@@ -69,7 +69,7 @@
69
69
  text-align: center;
70
70
  word-break: keep-all;
71
71
  user-select: none;
72
- transform: translateY(-50%);
72
+ transform: translateY(-11px);
73
73
  }
74
74
 
75
75
  &-tick {
@@ -191,7 +191,7 @@
191
191
  text-align: center;
192
192
  word-break: keep-all;
193
193
  user-select: none;
194
- transform: translateX(-50%);
194
+ transform: translateX(-10px);
195
195
  }
196
196
 
197
197
  &-tick {
@@ -10,10 +10,6 @@
10
10
  color: $tabbar-inactive-color;
11
11
  height: 100%;
12
12
 
13
- &-active {
14
- color: $tabbar-active-color;
15
- }
16
-
17
13
  &-icon-box {
18
14
  padding: 0px;
19
15
  display: flex;
@@ -40,4 +36,14 @@
40
36
  font-weight: $tabbar-text-large-font-weight;
41
37
  }
42
38
  }
39
+
40
+ &-active {
41
+ color: $tabbar-active-color;
42
+ .nut-tabbar-item-icon-box {
43
+ color: inherit;
44
+ .nut-icon {
45
+ color: inherit;
46
+ }
47
+ }
48
+ }
43
49
  }
@@ -8,7 +8,7 @@
8
8
  display: flex;
9
9
  box-sizing: border-box;
10
10
  height: $tabs-titles-height;
11
- padding: 0 16px;
11
+ padding: $tabs-titles-padding;
12
12
  user-select: none;
13
13
  overflow: hidden;
14
14
  background: $tabs-titles-background-color;
@@ -49,7 +49,7 @@
49
49
  margin: 0 $tabs-titles-gap;
50
50
  min-width: $tabs-titles-item-min-width;
51
51
  font-size: $tabs-titles-font-size;
52
- color: $color-title;
52
+ color: $tabs-titles-item-color;
53
53
  text-overflow: ellipsis;
54
54
  white-space: nowrap;
55
55