@douyinfe/semi-foundation 2.35.0 → 2.36.0-beta.0

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 (57) hide show
  1. package/calendar/calendar.scss +1 -1
  2. package/datePicker/_utils/getYears.ts +8 -4
  3. package/datePicker/datePicker.scss +0 -1
  4. package/datePicker/foundation.ts +1 -1
  5. package/datePicker/monthsGridFoundation.ts +2 -1
  6. package/datePicker/yearAndMonthFoundation.ts +3 -1
  7. package/lib/cjs/calendar/calendar.css +2 -2
  8. package/lib/cjs/calendar/calendar.scss +1 -1
  9. package/lib/cjs/datePicker/_utils/getYears.d.ts +1 -1
  10. package/lib/cjs/datePicker/_utils/getYears.js +11 -5
  11. package/lib/cjs/datePicker/datePicker.css +0 -1
  12. package/lib/cjs/datePicker/datePicker.scss +0 -1
  13. package/lib/cjs/datePicker/foundation.d.ts +1 -1
  14. package/lib/cjs/datePicker/monthsGridFoundation.d.ts +2 -1
  15. package/lib/cjs/datePicker/yearAndMonthFoundation.d.ts +2 -0
  16. package/lib/cjs/table/foundation.js +2 -1
  17. package/lib/cjs/table/table.css +6 -0
  18. package/lib/cjs/table/table.scss +12 -0
  19. package/lib/cjs/tabs/tabs.css +14 -14
  20. package/lib/cjs/tabs/tabs.scss +16 -14
  21. package/lib/cjs/timePicker/foundation.d.ts +1 -1
  22. package/lib/cjs/timePicker/foundation.js +3 -5
  23. package/lib/cjs/typography/constants.d.ts +1 -0
  24. package/lib/cjs/typography/constants.js +1 -0
  25. package/lib/cjs/typography/typography.css +120 -0
  26. package/lib/cjs/typography/typography.scss +131 -6
  27. package/lib/cjs/typography/variables.scss +48 -0
  28. package/lib/es/calendar/calendar.css +2 -2
  29. package/lib/es/calendar/calendar.scss +1 -1
  30. package/lib/es/datePicker/_utils/getYears.d.ts +1 -1
  31. package/lib/es/datePicker/_utils/getYears.js +11 -5
  32. package/lib/es/datePicker/datePicker.css +0 -1
  33. package/lib/es/datePicker/datePicker.scss +0 -1
  34. package/lib/es/datePicker/foundation.d.ts +1 -1
  35. package/lib/es/datePicker/monthsGridFoundation.d.ts +2 -1
  36. package/lib/es/datePicker/yearAndMonthFoundation.d.ts +2 -0
  37. package/lib/es/table/foundation.js +2 -1
  38. package/lib/es/table/table.css +6 -0
  39. package/lib/es/table/table.scss +12 -0
  40. package/lib/es/tabs/tabs.css +14 -14
  41. package/lib/es/tabs/tabs.scss +16 -14
  42. package/lib/es/timePicker/foundation.d.ts +1 -1
  43. package/lib/es/timePicker/foundation.js +3 -5
  44. package/lib/es/typography/constants.d.ts +1 -0
  45. package/lib/es/typography/constants.js +1 -0
  46. package/lib/es/typography/typography.css +120 -0
  47. package/lib/es/typography/typography.scss +131 -6
  48. package/lib/es/typography/variables.scss +48 -0
  49. package/overflowList/foundation.ts +4 -4
  50. package/package.json +2 -2
  51. package/table/foundation.ts +1 -0
  52. package/table/table.scss +12 -0
  53. package/tabs/tabs.scss +16 -14
  54. package/timePicker/foundation.ts +4 -6
  55. package/typography/constants.ts +1 -0
  56. package/typography/typography.scss +131 -6
  57. package/typography/variables.scss +48 -0
@@ -273,7 +273,7 @@ $module: #{$prefix}-calendar;
273
273
  justify-content: center;
274
274
  align-items: center;
275
275
 
276
- span {
276
+ > span {
277
277
  display: flex;
278
278
  align-items: center;
279
279
  justify-content: center;
@@ -1,6 +1,10 @@
1
- const getYears = () => {
2
- const year = new Date().getFullYear();
3
- const startYear = year - 100;
4
- return Array.from({ length: 200 }, (v, i) => startYear + i);
1
+ const getYears = (startYear?: number, endYear?: number) => {
2
+ const currentYear = new Date().getFullYear();
3
+ let start = typeof startYear === 'number' ? startYear : currentYear - 100;
4
+ let end = typeof endYear === 'number' ? endYear : currentYear + 100;
5
+ if (end < start) {
6
+ [start, end] = [end, start];
7
+ }
8
+ return Array.from({ length: end - start + 1 }, (v, i) => start + i);
5
9
  };
6
10
  export default getYears;
@@ -7,7 +7,6 @@ $module-list: #{$prefix}-scrolllist;
7
7
  .#{$module} {
8
8
  box-sizing: border-box;
9
9
  display: inline-block;
10
- vertical-align: top;
11
10
 
12
11
  .#{$module-list}-body {
13
12
  .#{$module-list}-item {
@@ -117,7 +117,7 @@ export interface EventHandlerProps {
117
117
  onClickOutSide?: () => void
118
118
  }
119
119
 
120
- export interface DatePickerFoundationProps extends ElementProps, RenderProps, EventHandlerProps {
120
+ export interface DatePickerFoundationProps extends ElementProps, RenderProps, EventHandlerProps, Pick<MonthsGridFoundationProps, 'startYear' | 'endYear'> {
121
121
  autoAdjustOverflow?: boolean;
122
122
  autoFocus?: boolean;
123
123
  autoSwitchDate?: boolean;
@@ -24,6 +24,7 @@ import { BaseValueType, DateInputFoundationProps, PresetPosition, ValueType } fr
24
24
  import { MonthDayInfo } from './monthFoundation';
25
25
  import { ArrayElement } from '../utils/type';
26
26
  import isValidTimeZone from './_utils/isValidTimeZone';
27
+ import { YearAndMonthFoundationProps } from './yearAndMonthFoundation';
27
28
 
28
29
  const dateDiffFns = {
29
30
  month: differenceInCalendarMonths,
@@ -54,7 +55,7 @@ interface MonthsGridElementProps {
54
55
  export type PanelType = 'left' | 'right';
55
56
  export type YearMonthChangeType = 'prevMonth' | 'nextMonth' | 'prevYear' | 'nextYear';
56
57
 
57
- export interface MonthsGridFoundationProps extends MonthsGridElementProps {
58
+ export interface MonthsGridFoundationProps extends MonthsGridElementProps, Pick<YearAndMonthFoundationProps, 'startYear' | 'endYear'> {
58
59
  type?: Type;
59
60
  /** may be null if selection is not complete when type is dateRange or dateTimeRange */
60
61
  defaultValue?: (Date | null)[];
@@ -24,7 +24,9 @@ export interface YearAndMonthFoundationProps {
24
24
  renderQuickControls?: any;
25
25
  renderDateInput?: any;
26
26
  type?: Type;
27
- yearAndMonthOpts?: any
27
+ yearAndMonthOpts?: any;
28
+ startYear?: number;
29
+ endYear?: number
28
30
  }
29
31
 
30
32
  export interface YearAndMonthFoundationState {
@@ -263,13 +263,13 @@
263
263
  justify-content: center;
264
264
  align-items: center;
265
265
  }
266
- .semi-calendar-week-grid-row li span {
266
+ .semi-calendar-week-grid-row li > span {
267
267
  display: flex;
268
268
  align-items: center;
269
269
  justify-content: center;
270
270
  line-height: 26px;
271
271
  }
272
- .semi-calendar-week-grid-row li span:last-child {
272
+ .semi-calendar-week-grid-row li > span:last-child {
273
273
  padding: 0 4px;
274
274
  }
275
275
  .semi-calendar-week .semi-calendar-all-day {
@@ -273,7 +273,7 @@ $module: #{$prefix}-calendar;
273
273
  justify-content: center;
274
274
  align-items: center;
275
275
 
276
- span {
276
+ > span {
277
277
  display: flex;
278
278
  align-items: center;
279
279
  justify-content: center;
@@ -1,2 +1,2 @@
1
- declare const getYears: () => number[];
1
+ declare const getYears: (startYear?: number, endYear?: number) => number[];
2
2
  export default getYears;
@@ -5,12 +5,18 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
 
8
- const getYears = () => {
9
- const year = new Date().getFullYear();
10
- const startYear = year - 100;
8
+ const getYears = (startYear, endYear) => {
9
+ const currentYear = new Date().getFullYear();
10
+ let start = typeof startYear === 'number' ? startYear : currentYear - 100;
11
+ let end = typeof endYear === 'number' ? endYear : currentYear + 100;
12
+
13
+ if (end < start) {
14
+ [start, end] = [end, start];
15
+ }
16
+
11
17
  return Array.from({
12
- length: 200
13
- }, (v, i) => startYear + i);
18
+ length: end - start + 1
19
+ }, (v, i) => start + i);
14
20
  };
15
21
 
16
22
  var _default = getYears;
@@ -4,7 +4,6 @@
4
4
  .semi-datepicker {
5
5
  box-sizing: border-box;
6
6
  display: inline-block;
7
- vertical-align: top;
8
7
  }
9
8
  .semi-datepicker .semi-scrolllist-body .semi-scrolllist-item {
10
9
  -ms-overflow-style: none; /* Internet Explorer 10+ */
@@ -7,7 +7,6 @@ $module-list: #{$prefix}-scrolllist;
7
7
  .#{$module} {
8
8
  box-sizing: border-box;
9
9
  display: inline-block;
10
- vertical-align: top;
11
10
 
12
11
  .#{$module-list}-body {
13
12
  .#{$module-list}-item {
@@ -87,7 +87,7 @@ export interface EventHandlerProps {
87
87
  onPresetClick?: OnPresetClickType;
88
88
  onClickOutSide?: () => void;
89
89
  }
90
- export interface DatePickerFoundationProps extends ElementProps, RenderProps, EventHandlerProps {
90
+ export interface DatePickerFoundationProps extends ElementProps, RenderProps, EventHandlerProps, Pick<MonthsGridFoundationProps, 'startYear' | 'endYear'> {
91
91
  autoAdjustOverflow?: boolean;
92
92
  autoFocus?: boolean;
93
93
  autoSwitchDate?: boolean;
@@ -4,6 +4,7 @@ import { WeekStartNumber } from './_utils/getMonthTable';
4
4
  import { DateInputFoundationProps, PresetPosition, ValueType } from './foundation';
5
5
  import { MonthDayInfo } from './monthFoundation';
6
6
  import { ArrayElement } from '../utils/type';
7
+ import { YearAndMonthFoundationProps } from './yearAndMonthFoundation';
7
8
  declare type Type = ArrayElement<typeof strings.TYPE_SET>;
8
9
  interface MonthsGridElementProps {
9
10
  navPrev?: any;
@@ -13,7 +14,7 @@ interface MonthsGridElementProps {
13
14
  }
14
15
  export declare type PanelType = 'left' | 'right';
15
16
  export declare type YearMonthChangeType = 'prevMonth' | 'nextMonth' | 'prevYear' | 'nextYear';
16
- export interface MonthsGridFoundationProps extends MonthsGridElementProps {
17
+ export interface MonthsGridFoundationProps extends MonthsGridElementProps, Pick<YearAndMonthFoundationProps, 'startYear' | 'endYear'> {
17
18
  type?: Type;
18
19
  /** may be null if selection is not complete when type is dateRange or dateTimeRange */
19
20
  defaultValue?: (Date | null)[];
@@ -36,6 +36,8 @@ export interface YearAndMonthFoundationProps {
36
36
  renderDateInput?: any;
37
37
  type?: Type;
38
38
  yearAndMonthOpts?: any;
39
+ startYear?: number;
40
+ endYear?: number;
39
41
  }
40
42
  export interface YearAndMonthFoundationState {
41
43
  years: Array<{
@@ -436,7 +436,8 @@ class TableFoundation extends _foundation.default {
436
436
  }
437
437
 
438
438
  return arr;
439
- }, [...children])
439
+ }, // @ts-ignore
440
+ [...children])
440
441
  }));
441
442
  }
442
443
  } else if (onFilter(value, record)) {
@@ -94,6 +94,12 @@
94
94
  .semi-table-header-sticky .semi-table-thead > .semi-table-row > .semi-table-row-head {
95
95
  background-color: var(--semi-color-bg-1);
96
96
  }
97
+ .semi-table-align-center .semi-table-operate-wrapper {
98
+ justify-content: center;
99
+ }
100
+ .semi-table-align-right .semi-table-operate-wrapper {
101
+ justify-content: flex-end;
102
+ }
97
103
  .semi-table-operate-wrapper {
98
104
  display: flex;
99
105
  justify-content: flex-start;
@@ -83,6 +83,18 @@ $module: #{$prefix}-table;
83
83
  }
84
84
  }
85
85
 
86
+ &-align-center {
87
+ .#{$module}-operate-wrapper {
88
+ justify-content: center;
89
+ }
90
+ }
91
+
92
+ &-align-right {
93
+ .#{$module}-operate-wrapper {
94
+ justify-content: flex-end;
95
+ }
96
+ }
97
+
86
98
  &-operate-wrapper {
87
99
  display: flex;
88
100
  justify-content: flex-start;
@@ -34,14 +34,14 @@
34
34
  color: var(--semi-color-text-2);
35
35
  user-select: none;
36
36
  }
37
- .semi-tabs-bar .semi-tabs-tab .semi-icon {
37
+ .semi-tabs-bar .semi-tabs-tab .semi-icon:not(.semi-icon-checkbox_tick, .semi-icon-radio, .semi-icon-checkbox_indeterminate) {
38
38
  position: relative;
39
39
  margin-right: 8px;
40
40
  top: 3px;
41
41
  color: var(--semi-color-text-2);
42
42
  transition: color var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none);
43
43
  }
44
- .semi-tabs-bar .semi-tabs-tab .semi-icon-close {
44
+ .semi-tabs-bar .semi-tabs-tab .semi-icon.semi-tabs-tab-icon-close {
45
45
  margin-right: 0;
46
46
  font-size: 14px;
47
47
  color: var(--semi-color-text-2);
@@ -51,13 +51,13 @@
51
51
  .semi-tabs-bar .semi-tabs-tab:hover {
52
52
  color: var(--semi-color-text-0);
53
53
  }
54
- .semi-tabs-bar .semi-tabs-tab:hover .semi-icon {
54
+ .semi-tabs-bar .semi-tabs-tab:hover .semi-icon:not(.semi-icon-checkbox_tick, .semi-icon-radio, .semi-icon-checkbox_indeterminate) {
55
55
  color: var(--semi-color-text-0);
56
56
  }
57
57
  .semi-tabs-bar .semi-tabs-tab:active {
58
58
  color: var(--semi-color-text-0);
59
59
  }
60
- .semi-tabs-bar .semi-tabs-tab:active .semi-icon {
60
+ .semi-tabs-bar .semi-tabs-tab:active .semi-icon:not(.semi-icon-checkbox_tick, .semi-icon-radio, .semi-icon-checkbox_indeterminate) {
61
61
  color: var(--semi-color-text-0);
62
62
  }
63
63
  .semi-tabs-bar .semi-tabs-tab-active, .semi-tabs-bar .semi-tabs-tab-active:hover {
@@ -65,13 +65,13 @@
65
65
  font-weight: 600;
66
66
  color: var(--semi-color-text-0);
67
67
  }
68
- .semi-tabs-bar .semi-tabs-tab-active .semi-icon, .semi-tabs-bar .semi-tabs-tab-active:hover .semi-icon {
68
+ .semi-tabs-bar .semi-tabs-tab-active .semi-icon:not(.semi-icon-checkbox_tick, .semi-icon-radio, .semi-icon-checkbox_indeterminate), .semi-tabs-bar .semi-tabs-tab-active:hover .semi-icon:not(.semi-icon-checkbox_tick, .semi-icon-radio, .semi-icon-checkbox_indeterminate) {
69
69
  color: var(--semi-color-primary);
70
70
  }
71
- .semi-tabs-bar .semi-tabs-tab-active .semi-icon-close, .semi-tabs-bar .semi-tabs-tab-active:hover .semi-icon-close {
71
+ .semi-tabs-bar .semi-tabs-tab-active .semi-icon.semi-tabs-tab-icon-close, .semi-tabs-bar .semi-tabs-tab-active:hover .semi-icon.semi-tabs-tab-icon-close {
72
72
  color: var(--semi-color-text-2);
73
73
  }
74
- .semi-tabs-bar .semi-tabs-tab-active .semi-icon-close:hover {
74
+ .semi-tabs-bar .semi-tabs-tab-active .semi-icon.semi-tabs-tab-icon-close:hover {
75
75
  color: var(--semi-color-text-1);
76
76
  }
77
77
  .semi-tabs-bar .semi-tabs-tab-disabled {
@@ -94,14 +94,14 @@
94
94
  color: var(--semi-color-text-2);
95
95
  user-select: none;
96
96
  }
97
- .semi-tabs-tab-single.semi-tabs-tab .semi-icon {
97
+ .semi-tabs-tab-single.semi-tabs-tab .semi-icon:not(.semi-icon-checkbox_tick, .semi-icon-radio, .semi-icon-checkbox_indeterminate) {
98
98
  position: relative;
99
99
  margin-right: 8px;
100
100
  top: 3px;
101
101
  color: var(--semi-color-text-2);
102
102
  transition: color var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none);
103
103
  }
104
- .semi-tabs-tab-single.semi-tabs-tab .semi-icon-close {
104
+ .semi-tabs-tab-single.semi-tabs-tab .semi-icon.semi-tabs-tab-icon-close {
105
105
  margin-right: 0;
106
106
  font-size: 14px;
107
107
  color: var(--semi-color-text-2);
@@ -111,13 +111,13 @@
111
111
  .semi-tabs-tab-single.semi-tabs-tab:hover {
112
112
  color: var(--semi-color-text-0);
113
113
  }
114
- .semi-tabs-tab-single.semi-tabs-tab:hover .semi-icon {
114
+ .semi-tabs-tab-single.semi-tabs-tab:hover .semi-icon:not(.semi-icon-checkbox_tick, .semi-icon-radio, .semi-icon-checkbox_indeterminate) {
115
115
  color: var(--semi-color-text-0);
116
116
  }
117
117
  .semi-tabs-tab-single.semi-tabs-tab:active {
118
118
  color: var(--semi-color-text-0);
119
119
  }
120
- .semi-tabs-tab-single.semi-tabs-tab:active .semi-icon {
120
+ .semi-tabs-tab-single.semi-tabs-tab:active .semi-icon:not(.semi-icon-checkbox_tick, .semi-icon-radio, .semi-icon-checkbox_indeterminate) {
121
121
  color: var(--semi-color-text-0);
122
122
  }
123
123
  .semi-tabs-tab-single.semi-tabs-tab-active, .semi-tabs-tab-single.semi-tabs-tab-active:hover {
@@ -125,13 +125,13 @@
125
125
  font-weight: 600;
126
126
  color: var(--semi-color-text-0);
127
127
  }
128
- .semi-tabs-tab-single.semi-tabs-tab-active .semi-icon, .semi-tabs-tab-single.semi-tabs-tab-active:hover .semi-icon {
128
+ .semi-tabs-tab-single.semi-tabs-tab-active .semi-icon:not(.semi-icon-checkbox_tick, .semi-icon-radio, .semi-icon-checkbox_indeterminate), .semi-tabs-tab-single.semi-tabs-tab-active:hover .semi-icon:not(.semi-icon-checkbox_tick, .semi-icon-radio, .semi-icon-checkbox_indeterminate) {
129
129
  color: var(--semi-color-primary);
130
130
  }
131
- .semi-tabs-tab-single.semi-tabs-tab-active .semi-icon-close, .semi-tabs-tab-single.semi-tabs-tab-active:hover .semi-icon-close {
131
+ .semi-tabs-tab-single.semi-tabs-tab-active .semi-icon.semi-tabs-tab-icon-close, .semi-tabs-tab-single.semi-tabs-tab-active:hover .semi-icon.semi-tabs-tab-icon-close {
132
132
  color: var(--semi-color-text-2);
133
133
  }
134
- .semi-tabs-tab-single.semi-tabs-tab-active .semi-icon-close:hover {
134
+ .semi-tabs-tab-single.semi-tabs-tab-active .semi-icon.semi-tabs-tab-icon-close:hover {
135
135
  color: var(--semi-color-text-1);
136
136
  }
137
137
  .semi-tabs-tab-single.semi-tabs-tab-disabled {
@@ -4,6 +4,8 @@
4
4
 
5
5
 
6
6
  $module: #{$prefix}-tabs;
7
+ // Prevent the Radio and Checkbox in ReactNode passed in through the tab attribute in Tabs from being affected by the icon style override
8
+ $ignoreIcon: '.#{$prefix}-icon-checkbox_tick, .#{$prefix}-icon-radio, .#{$prefix}-icon-checkbox_indeterminate';
7
9
 
8
10
  .#{$module} {
9
11
  box-sizing: border-box;
@@ -41,7 +43,7 @@ $module: #{$prefix}-tabs;
41
43
 
42
44
  user-select: none;
43
45
 
44
- .#{$prefix}-icon {
46
+ .#{$prefix}-icon:not(#{$ignoreIcon}) {
45
47
  position: relative;
46
48
  margin-right: $spacing-tabs_tab_icon-marginRight;
47
49
  top: $spacing-tabs_tab_icon-top;
@@ -50,7 +52,7 @@ $module: #{$prefix}-tabs;
50
52
 
51
53
  }
52
54
 
53
- .#{$prefix}-icon-close {
55
+ .#{$prefix}-icon.#{$module}-tab-icon-close {
54
56
  margin-right: 0;
55
57
  font-size: 14px;
56
58
  color: var(--semi-color-text-2);
@@ -61,7 +63,7 @@ $module: #{$prefix}-tabs;
61
63
  &:hover {
62
64
  color: $color-tabs_tab_line_default-text-hover;
63
65
 
64
- .#{$prefix}-icon {
66
+ .#{$prefix}-icon:not(#{$ignoreIcon}) {
65
67
  color: $color-tabs_tab-icon-hover;
66
68
  }
67
69
  }
@@ -69,7 +71,7 @@ $module: #{$prefix}-tabs;
69
71
  &:active {
70
72
  color: $color-tabs_tab_line_default-text-active;
71
73
 
72
- .#{$prefix}-icon {
74
+ .#{$prefix}-icon:not(#{$ignoreIcon}) {
73
75
  color: $color-tabs_tab-icon-active;
74
76
  }
75
77
  }
@@ -84,16 +86,16 @@ $module: #{$prefix}-tabs;
84
86
  font-weight: $font-tabs_tab_active-fontWeight;
85
87
  color: $color-tabs_tab_line_selected-text-default;
86
88
 
87
- .#{$prefix}-icon {
89
+ .#{$prefix}-icon:not(#{$ignoreIcon}) {
88
90
  color: $color-tabs_tab_selected-icon-default;
89
91
  }
90
92
 
91
- .#{$prefix}-icon-close {
93
+ .#{$prefix}-icon.#{$module}-tab-icon-close {
92
94
  color: var(--semi-color-text-2);
93
95
  }
94
96
  }
95
97
 
96
- .#{$prefix}-icon-close:hover {
98
+ .#{$prefix}-icon.#{$module}-tab-icon-close:hover {
97
99
  color: var(--semi-color-text-1);
98
100
  }
99
101
  }
@@ -123,7 +125,7 @@ $module: #{$prefix}-tabs;
123
125
 
124
126
  user-select: none;
125
127
 
126
- .#{$prefix}-icon {
128
+ .#{$prefix}-icon:not(#{$ignoreIcon}) {
127
129
  position: relative;
128
130
  margin-right: $spacing-tabs_tab_icon-marginRight;
129
131
  top: $spacing-tabs_tab_icon-top;
@@ -132,7 +134,7 @@ $module: #{$prefix}-tabs;
132
134
 
133
135
  }
134
136
 
135
- .#{$prefix}-icon-close {
137
+ .#{$prefix}-icon.#{$module}-tab-icon-close {
136
138
  margin-right: 0;
137
139
  font-size: 14px;
138
140
  color: var(--semi-color-text-2);
@@ -143,7 +145,7 @@ $module: #{$prefix}-tabs;
143
145
  &:hover {
144
146
  color: $color-tabs_tab_line_default-text-hover;
145
147
 
146
- .#{$prefix}-icon {
148
+ .#{$prefix}-icon:not(#{$ignoreIcon}) {
147
149
  color: $color-tabs_tab-icon-hover;
148
150
  }
149
151
  }
@@ -151,7 +153,7 @@ $module: #{$prefix}-tabs;
151
153
  &:active {
152
154
  color: $color-tabs_tab_line_default-text-active;
153
155
 
154
- .#{$prefix}-icon {
156
+ .#{$prefix}-icon:not(#{$ignoreIcon}) {
155
157
  color: $color-tabs_tab-icon-active;
156
158
  }
157
159
  }
@@ -166,16 +168,16 @@ $module: #{$prefix}-tabs;
166
168
  font-weight: $font-tabs_tab_active-fontWeight;
167
169
  color: $color-tabs_tab_line_selected-text-default;
168
170
 
169
- .#{$prefix}-icon {
171
+ .#{$prefix}-icon:not(#{$ignoreIcon}) {
170
172
  color: $color-tabs_tab_selected-icon-default;
171
173
  }
172
174
 
173
- .#{$prefix}-icon-close {
175
+ .#{$prefix}-icon.#{$module}-tab-icon-close {
174
176
  color: var(--semi-color-text-2);
175
177
  }
176
178
  }
177
179
 
178
- .#{$prefix}-icon-close:hover {
180
+ .#{$prefix}-icon.#{$module}-tab-icon-close:hover {
179
181
  color: var(--semi-color-text-1);
180
182
  }
181
183
  }
@@ -21,7 +21,7 @@ declare class TimePickerFoundation<P = Record<string, any>, S = Record<string, a
21
21
  minutes: number;
22
22
  seconds: number;
23
23
  }): boolean;
24
- isValidTimeZone(timeZone?: string | number): boolean;
24
+ isValidTimeZone(timeZone: string | number): boolean;
25
25
  getDefaultFormatIfNeed(): string;
26
26
  /**
27
27
  * User input value => save timestamp
@@ -68,9 +68,7 @@ class TimePickerFoundation extends _foundation.default {
68
68
  }
69
69
 
70
70
  isValidTimeZone(timeZone) {
71
- const _timeZone = timeZone === undefined ? this.getProp('timeZone') : timeZone;
72
-
73
- return ['string', 'number'].includes(typeof _timeZone) && _timeZone !== '';
71
+ return ['string', 'number'].includes(typeof timeZone) && timeZone !== '';
74
72
  }
75
73
 
76
74
  getDefaultFormatIfNeed() {
@@ -108,7 +106,7 @@ class TimePickerFoundation extends _foundation.default {
108
106
  const pv = (0, _utils.parseToDate)(v, formatToken, dateFnsLocale);
109
107
 
110
108
  if (!isNaN(pv.getTime())) {
111
- parsedValues.push(this.isValidTimeZone() ? (0, _dateFnsExtra.utcToZonedTime)(pv, timeZone) : pv);
109
+ parsedValues.push(this.isValidTimeZone(timeZone) ? (0, _dateFnsExtra.utcToZonedTime)(pv, timeZone) : pv);
112
110
  }
113
111
  });
114
112
  const isAM = [true, false];
@@ -435,7 +433,7 @@ class TimePickerFoundation extends _foundation.default {
435
433
  _value = Array.isArray(_value) ? _value[0] : _value;
436
434
  }
437
435
 
438
- if (this.isValidTimeZone() && _value) {
436
+ if (this.isValidTimeZone(timeZone) && _value) {
439
437
  const formatToken = this.getValidFormat();
440
438
 
441
439
  if (Array.isArray(_value)) {
@@ -2,6 +2,7 @@ declare const cssClasses: {
2
2
  PREFIX: string;
3
3
  };
4
4
  declare const strings: {
5
+ readonly WEIGHT: readonly ["light", "regular", "medium", "semibold", "bold", "default"];
5
6
  readonly TYPE: readonly ["primary", "secondary", "danger", "warning", "success", "tertiary", "quaternary"];
6
7
  readonly SIZE: readonly ["normal", "small"];
7
8
  readonly SPACING: readonly ["normal", "extended"];
@@ -12,6 +12,7 @@ const cssClasses = {
12
12
  };
13
13
  exports.cssClasses = cssClasses;
14
14
  const strings = {
15
+ WEIGHT: ['light', 'regular', 'medium', 'semibold', 'bold', "default"],
15
16
  TYPE: ['primary', 'secondary', 'danger', 'warning', 'success', 'tertiary', 'quaternary'],
16
17
  SIZE: ['normal', 'small'],
17
18
  SPACING: ['normal', 'extended'],
@@ -146,6 +146,26 @@ h1.semi-typography,
146
146
  font-weight: 600;
147
147
  margin: 0;
148
148
  }
149
+ h1.semi-typography.semi-typography-h1-weight-light,
150
+ .semi-typography-h1.semi-typography.semi-typography-h1-weight-light {
151
+ font-weight: 200;
152
+ }
153
+ h1.semi-typography.semi-typography-h1-weight-regular,
154
+ .semi-typography-h1.semi-typography.semi-typography-h1-weight-regular {
155
+ font-weight: 400;
156
+ }
157
+ h1.semi-typography.semi-typography-h1-weight-medium,
158
+ .semi-typography-h1.semi-typography.semi-typography-h1-weight-medium {
159
+ font-weight: 500;
160
+ }
161
+ h1.semi-typography.semi-typography-h1-weight-semibold,
162
+ .semi-typography-h1.semi-typography.semi-typography-h1-weight-semibold {
163
+ font-weight: 600;
164
+ }
165
+ h1.semi-typography.semi-typography-h1-weight-bold,
166
+ .semi-typography-h1.semi-typography.semi-typography-h1-weight-bold {
167
+ font-weight: 700;
168
+ }
149
169
 
150
170
  h2.semi-typography,
151
171
  .semi-typography-h2.semi-typography {
@@ -155,6 +175,26 @@ h2.semi-typography,
155
175
  font-weight: 600;
156
176
  margin: 0;
157
177
  }
178
+ h2.semi-typography.semi-typography-h2-weight-light,
179
+ .semi-typography-h2.semi-typography.semi-typography-h2-weight-light {
180
+ font-weight: 200;
181
+ }
182
+ h2.semi-typography.semi-typography-h2-weight-regular,
183
+ .semi-typography-h2.semi-typography.semi-typography-h2-weight-regular {
184
+ font-weight: 400;
185
+ }
186
+ h2.semi-typography.semi-typography-h2-weight-medium,
187
+ .semi-typography-h2.semi-typography.semi-typography-h2-weight-medium {
188
+ font-weight: 500;
189
+ }
190
+ h2.semi-typography.semi-typography-h2-weight-semibold,
191
+ .semi-typography-h2.semi-typography.semi-typography-h2-weight-semibold {
192
+ font-weight: 600;
193
+ }
194
+ h2.semi-typography.semi-typography-h2-weight-bold,
195
+ .semi-typography-h2.semi-typography.semi-typography-h2-weight-bold {
196
+ font-weight: 700;
197
+ }
158
198
 
159
199
  h3.semi-typography,
160
200
  .semi-typography-h3.semi-typography {
@@ -164,6 +204,26 @@ h3.semi-typography,
164
204
  font-weight: 600;
165
205
  margin: 0;
166
206
  }
207
+ h3.semi-typography.semi-typography-h3-weight-light,
208
+ .semi-typography-h3.semi-typography.semi-typography-h3-weight-light {
209
+ font-weight: 200;
210
+ }
211
+ h3.semi-typography.semi-typography-h3-weight-regular,
212
+ .semi-typography-h3.semi-typography.semi-typography-h3-weight-regular {
213
+ font-weight: 400;
214
+ }
215
+ h3.semi-typography.semi-typography-h3-weight-medium,
216
+ .semi-typography-h3.semi-typography.semi-typography-h3-weight-medium {
217
+ font-weight: 500;
218
+ }
219
+ h3.semi-typography.semi-typography-h3-weight-semibold,
220
+ .semi-typography-h3.semi-typography.semi-typography-h3-weight-semibold {
221
+ font-weight: 600;
222
+ }
223
+ h3.semi-typography.semi-typography-h3-weight-bold,
224
+ .semi-typography-h3.semi-typography.semi-typography-h3-weight-bold {
225
+ font-weight: 700;
226
+ }
167
227
 
168
228
  h4.semi-typography,
169
229
  .semi-typography-h4.semi-typography {
@@ -173,6 +233,26 @@ h4.semi-typography,
173
233
  font-weight: 600;
174
234
  margin: 0;
175
235
  }
236
+ h4.semi-typography.semi-typography-h4-weight-light,
237
+ .semi-typography-h4.semi-typography.semi-typography-h4-weight-light {
238
+ font-weight: 200;
239
+ }
240
+ h4.semi-typography.semi-typography-h4-weight-regular,
241
+ .semi-typography-h4.semi-typography.semi-typography-h4-weight-regular {
242
+ font-weight: 400;
243
+ }
244
+ h4.semi-typography.semi-typography-h4-weight-medium,
245
+ .semi-typography-h4.semi-typography.semi-typography-h4-weight-medium {
246
+ font-weight: 500;
247
+ }
248
+ h4.semi-typography.semi-typography-h4-weight-semibold,
249
+ .semi-typography-h4.semi-typography.semi-typography-h4-weight-semibold {
250
+ font-weight: 600;
251
+ }
252
+ h4.semi-typography.semi-typography-h4-weight-bold,
253
+ .semi-typography-h4.semi-typography.semi-typography-h4-weight-bold {
254
+ font-weight: 700;
255
+ }
176
256
 
177
257
  h5.semi-typography,
178
258
  .semi-typography-h5.semi-typography {
@@ -182,6 +262,26 @@ h5.semi-typography,
182
262
  font-weight: 600;
183
263
  margin: 0;
184
264
  }
265
+ h5.semi-typography.semi-typography-h5-weight-light,
266
+ .semi-typography-h5.semi-typography.semi-typography-h5-weight-light {
267
+ font-weight: 200;
268
+ }
269
+ h5.semi-typography.semi-typography-h5-weight-regular,
270
+ .semi-typography-h5.semi-typography.semi-typography-h5-weight-regular {
271
+ font-weight: 400;
272
+ }
273
+ h5.semi-typography.semi-typography-h5-weight-medium,
274
+ .semi-typography-h5.semi-typography.semi-typography-h5-weight-medium {
275
+ font-weight: 500;
276
+ }
277
+ h5.semi-typography.semi-typography-h5-weight-semibold,
278
+ .semi-typography-h5.semi-typography.semi-typography-h5-weight-semibold {
279
+ font-weight: 600;
280
+ }
281
+ h5.semi-typography.semi-typography-h5-weight-bold,
282
+ .semi-typography-h5.semi-typography.semi-typography-h5-weight-bold {
283
+ font-weight: 700;
284
+ }
185
285
 
186
286
  h6.semi-typography,
187
287
  .semi-typography-h6.semi-typography {
@@ -191,6 +291,26 @@ h6.semi-typography,
191
291
  font-weight: 600;
192
292
  margin: 0;
193
293
  }
294
+ h6.semi-typography.semi-typography-h6-weight-light,
295
+ .semi-typography-h6.semi-typography.semi-typography-h6-weight-light {
296
+ font-weight: 200;
297
+ }
298
+ h6.semi-typography.semi-typography-h6-weight-regular,
299
+ .semi-typography-h6.semi-typography.semi-typography-h6-weight-regular {
300
+ font-weight: 400;
301
+ }
302
+ h6.semi-typography.semi-typography-h6-weight-medium,
303
+ .semi-typography-h6.semi-typography.semi-typography-h6-weight-medium {
304
+ font-weight: 500;
305
+ }
306
+ h6.semi-typography.semi-typography-h6-weight-semibold,
307
+ .semi-typography-h6.semi-typography.semi-typography-h6-weight-semibold {
308
+ font-weight: 600;
309
+ }
310
+ h6.semi-typography.semi-typography-h6-weight-bold,
311
+ .semi-typography-h6.semi-typography.semi-typography-h6-weight-bold {
312
+ font-weight: 700;
313
+ }
194
314
 
195
315
  p.semi-typography-extended,
196
316
  .semi-typography-paragraph.semi-typography-extended {