@zohodesk/components 1.4.9 → 1.4.10-exp.1

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 (46) hide show
  1. package/README.md +5 -0
  2. package/es/AppContainer/AppContainer.js +1 -0
  3. package/es/AppContainer/AppContainer.module.css +3 -2
  4. package/es/Button/css/Button.module.css +13 -4
  5. package/es/DateTime/DateTime.module.css +12 -9
  6. package/es/DateTime/YearView.module.css +1 -1
  7. package/es/Heading/Heading.module.css +0 -1
  8. package/es/Label/Label.module.css +8 -8
  9. package/es/MultiSelect/MultiSelect.module.css +1 -1
  10. package/es/Select/SelectWithIcon.js +1 -1
  11. package/es/Select/__tests__/Select.spec.js +16 -8
  12. package/es/Select/__tests__/__snapshots__/Select.spec.js.snap +281 -0
  13. package/es/Tab/Tabs.module.css +1 -1
  14. package/es/TextBox/TextBox.module.css +4 -4
  15. package/es/Textarea/Textarea.module.css +1 -1
  16. package/es/Tooltip/Tooltip.module.css +1 -1
  17. package/es/Typography/css/Typography.module.css +4 -4
  18. package/es/common/basic.module.css +39 -6
  19. package/es/common/basicReset.module.css +2 -2
  20. package/es/common/common.module.css +5 -5
  21. package/es/utils/Common.js +1 -1
  22. package/es/v1/Tab/v1Tabs.module.css +1 -1
  23. package/es/v1/Typography/css/v1_Typography.module.css +4 -4
  24. package/lib/AppContainer/AppContainer.js +2 -0
  25. package/lib/AppContainer/AppContainer.module.css +3 -2
  26. package/lib/Button/css/Button.module.css +13 -4
  27. package/lib/DateTime/DateTime.module.css +12 -9
  28. package/lib/DateTime/YearView.module.css +1 -1
  29. package/lib/Heading/Heading.module.css +0 -1
  30. package/lib/Label/Label.module.css +8 -8
  31. package/lib/MultiSelect/MultiSelect.module.css +1 -1
  32. package/lib/Select/SelectWithIcon.js +1 -1
  33. package/lib/Select/__tests__/Select.spec.js +165 -155
  34. package/lib/Select/__tests__/__snapshots__/Select.spec.js.snap +281 -0
  35. package/lib/Tab/Tabs.module.css +1 -1
  36. package/lib/TextBox/TextBox.module.css +4 -4
  37. package/lib/Textarea/Textarea.module.css +1 -1
  38. package/lib/Tooltip/Tooltip.module.css +1 -1
  39. package/lib/Typography/css/Typography.module.css +4 -4
  40. package/lib/common/basic.module.css +39 -6
  41. package/lib/common/basicReset.module.css +2 -2
  42. package/lib/common/common.module.css +5 -5
  43. package/lib/utils/Common.js +1 -1
  44. package/lib/v1/Tab/v1Tabs.module.css +1 -1
  45. package/lib/v1/Typography/css/v1_Typography.module.css +4 -4
  46. package/package.json +1 -1
package/README.md CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  Dot UI is a customizable React component library built to deliver a clean, accessible, and developer-friendly UI experience. It offers a growing set of reusable components designed to align with modern design systems and streamline application development across projects.
4
4
 
5
+ # 1.4.10
6
+
7
+ - **Select, MultiSelect**
8
+ - Searching with leading spaces is not reflected the results correctly. Issue Fixed.
9
+
5
10
  # 1.4.9
6
11
 
7
12
  - **MultiSelect , MultiSelectWithAvatar, AdvancedMultiSelect, AdvancedGroupMultiSelect**
@@ -9,6 +9,7 @@ import '@zohodesk/variables/assets/dotVariables.module.css';
9
9
  import '@zohodesk/variables/assets/sizeVariables.module.css';
10
10
  import '@zohodesk/variables/assets/fontsizeVariables.module.css';
11
11
  import '@zohodesk/variables/es/fontFamilyVariables.module.css';
12
+ import '@zohodesk/variables/es/fontWeightVariables.module.css';
12
13
  import '@zohodesk/variables/assets/transitionVariables.module.css';
13
14
  import '@zohodesk/variables/assets/no_transitionVariables.module.css';
14
15
  import "../common/a11y.module.css";
@@ -8,8 +8,9 @@
8
8
  -moz-box-sizing: border-box;
9
9
  -ms-box-sizing: border-box;
10
10
  }
11
- .container {
12
- font-family: var(--zd_regular);
11
+ .container, .container button, .container input, .container textarea ,.container select {
12
+ /* font-family: var(--zd_regular); */
13
+ font-family: var(--zd-font-family, ZDLato);
13
14
  }
14
15
  .tooltip {
15
16
  height: 0 ;
@@ -5,7 +5,7 @@
5
5
  --button_cursor: pointer;
6
6
  --button_font_size: var(--zd_font_size13);
7
7
  --button_text_color: var(--zdt_button_default_text);
8
- --button_font_family: var(--zd_regular);
8
+ --button_font_weight: var(--zd-fw-normal);
9
9
  --button_text_transform: capitalize;
10
10
  --button_bg_color: var(--zdt_button_default_bg);
11
11
  --button_border_radius: 4px;
@@ -49,7 +49,7 @@
49
49
  position: relative;
50
50
  font-size: var(--button_font_size);
51
51
  color: var(--button_text_color);
52
- font-family: var(--button_font_family);
52
+ font-weight: var(--button_font_weight);
53
53
  text-transform: var(--button_text_transform);
54
54
  min-width: var(--button_min_width);
55
55
  height: var(--button_height);
@@ -63,7 +63,7 @@
63
63
  }
64
64
 
65
65
  .bold {
66
- --button_font_family: var(--zd_semibold);
66
+ --button_font_weight: var(--zd-fw-semibold);
67
67
  composes: ftsmooth from '../../common/common.module.css';
68
68
  }
69
69
 
@@ -569,7 +569,7 @@
569
569
  }
570
570
 
571
571
  .loader {
572
- color: var(--dot_mirror)
572
+ color: var(--dot_mirror);
573
573
  }
574
574
 
575
575
  [dir=ltr] .strike {
@@ -579,34 +579,43 @@
579
579
  [dir=rtl] .strike {
580
580
  background-image: repeating-linear-gradient(-120deg, var(--button_strike_color) 0 1px, transparent 1px 8px);
581
581
  }
582
+
582
583
  .primaryStrike {
583
584
  --button_strike_color: var(--zdt_button_primary_strike);
584
585
  }
586
+
585
587
  .primaryfilledStrike {
586
588
  --button_strike_color: var(--zdt_button_primaryFilled_strike);
587
589
  --button_border_color: var(--zdt_button_primaryfill_bg);
588
590
  }
591
+
589
592
  .dangerStrike {
590
593
  --button_strike_color: var(--zdt_button_danger_strike);
591
594
  }
595
+
592
596
  .dangerfilledStrike {
593
597
  --button_strike_color: var(--zdt_button_dangerFilled_strike);
594
598
  --button_border_color: var(--zdt_button_dangerfill_bg);
595
599
  }
600
+
596
601
  .secondaryStrike {
597
602
  --button_strike_color: var(--zdt_button_secondary_border);
598
603
  }
604
+
599
605
  .secondaryfilledStrike {
600
606
  --button_strike_color: var(--zdt_button_secondaryFilled_strike);
601
607
  --button_border_color: var(--zdt_button_secondaryfill_bg);
602
608
  }
609
+
603
610
  .tertiaryfilledStrike {
604
611
  --button_strike_color: var(--zdt_button_tertiaryFilled_strike);
605
612
  --button_border_color: var(--zdt_button_tertiaryfill_bg);
606
613
  }
614
+
607
615
  .successStrike {
608
616
  --button_strike_color: var(--zdt_button_success_strike);
609
617
  }
618
+
610
619
  .successfilledStrike {
611
620
  --button_strike_color: var(--zdt_button_successFilled_strike);
612
621
  --button_border_color: var(--zdt_button_successfill_bg);
@@ -1,5 +1,5 @@
1
1
  .semibold {
2
- font-family: var(--zd_semibold);
2
+ font-weight: var(--zd-fw-semibold);
3
3
  }
4
4
 
5
5
  [dir=ltr] .boxPadding {
@@ -29,7 +29,7 @@
29
29
  }
30
30
 
31
31
  .datesStr {
32
- font-family: var(--zd_regular);
32
+ font-weight: var(--zd-fw-normal);
33
33
  }
34
34
 
35
35
  .grid {
@@ -122,7 +122,8 @@
122
122
  color: var(--zdt_datetime_invalid_text);
123
123
  }
124
124
 
125
- .invalidDate.holiday,.inActiveDate.holiday:hover {
125
+ .invalidDate.holiday,
126
+ .inActiveDate.holiday:hover {
126
127
  color: var(--zdt_datetime_invaliddate_text);
127
128
  }
128
129
 
@@ -147,15 +148,17 @@
147
148
  background-color: var(--zdt_datetime_selected_bg);
148
149
  border-radius: 50%;
149
150
  }
150
- .inActiveDate{
151
- color: var(--zdt_datetime_invalid_text);
152
- cursor: no-drop;
151
+
152
+ .inActiveDate {
153
+ color: var(--zdt_datetime_invalid_text);
154
+ cursor: no-drop;
153
155
  }
154
- .inActiveDate:hover
155
- {
156
+
157
+ .inActiveDate:hover {
156
158
  color: var(--zdt_datetime_invalid_text);
157
159
  }
158
- .inActiveDate:hover, .inActiveDate.holiday:hover{
160
+
161
+ .inActiveDate:hover, .inActiveDate.holiday:hover {
159
162
  background-color: var(--zdt_datetime_inactivedate_hover_bg);
160
163
 
161
164
  }
@@ -61,7 +61,7 @@
61
61
  }
62
62
 
63
63
  .isActive .yearText {
64
- font-family: var(--zd_semibold);
64
+ font-weight: var(--zd-fw-semibold);
65
65
  color: var(--zdt_yearview_year_hover_text);
66
66
  font-size: var(--zd_font_size11) ;
67
67
  }
@@ -1,5 +1,4 @@
1
1
  .reset {
2
2
  font-size: inherit ;
3
- font-weight: initial;
4
3
  margin: initial ;
5
4
  }
@@ -2,7 +2,7 @@
2
2
  /* label default variables */
3
3
  --label_font_size: var(--zd_font_size14);
4
4
  --label_text_color: var(--zdt_label_default_text);
5
- --label_font_family: var(--zd_regular);
5
+ --label_font_weight: var(--zd-fw-normal);
6
6
  --label_cursor: default;
7
7
  --label_line_height: 1.286;
8
8
  }
@@ -13,24 +13,24 @@
13
13
  line-height: var(--label_line_height);
14
14
  font-size: var(--label_font_size);
15
15
  color: var(--label_text_color);
16
- font-family: var(--label_font_family);
16
+ font-weight: var(--label_font_weight);
17
17
  cursor: var(--label_cursor);
18
18
  }
19
19
  .xsmall {
20
20
  --label_font_size: var(--zd_font_size12);
21
- --label_line_height:1.5;
21
+ --label_line_height: 1.5;
22
22
  }
23
23
  .small {
24
24
  --label_font_size: var(--zd_font_size13);
25
- --label_line_height:1.385;
25
+ --label_line_height: 1.385;
26
26
  }
27
27
  .medium {
28
28
  --label_font_size: var(--zd_font_size14);
29
- --label_line_height:1.286;
29
+ --label_line_height: 1.286;
30
30
  }
31
31
  .large {
32
32
  --label_font_size: var(--zd_font_size26);
33
- --label_line_height:0.6923;
33
+ --label_line_height: 0.6923;
34
34
  composes: semibold from '../common/common.module.css';
35
35
  }
36
36
  .pointer {
@@ -46,10 +46,10 @@
46
46
  display: inline-block;
47
47
  }
48
48
  .font_default {
49
- --label_font_family: var(--zd_regular);
49
+ --label_font_weight: var(--zd-fw-normal);
50
50
  }
51
51
  .font_primary {
52
- --label_font_family: var(--zd_semibold);
52
+ --label_font_weight: var(--zd-fw-semibold);
53
53
  composes: ftsmooth from '../common/common.module.css';
54
54
  }
55
55
  .dotted {
@@ -196,7 +196,7 @@
196
196
  .more {
197
197
  font-size: var(--zd_font_size14) ;
198
198
  color: var(--zdt_multiselect_more_text);
199
- font-family: inherit;
199
+ font-weight: var(--zd-fw-normal);
200
200
  cursor: pointer;
201
201
  margin-top: var(--zd_size5) ;
202
202
  background-color: var(--zdt_multiselect_delete_bg);
@@ -193,7 +193,7 @@ class SelectWithIcon extends Component {
193
193
  } = this.props;
194
194
 
195
195
  if (options.length) {
196
- datas = options.filter(obj => obj[valueKey].toLowerCase().includes(searchValue.toLowerCase()));
196
+ datas = options.filter(obj => obj[valueKey].toLowerCase().includes(searchValue.toLowerCase().trim()));
197
197
  }
198
198
 
199
199
  return datas;
@@ -246,14 +246,22 @@ describe('Select -', () => {
246
246
  userEvent.type(within(getByTestId(dropboxTestId)).getByRole('textbox'), '2');
247
247
  expect(getAllByRole(listItemRole)).toHaveLength(1);
248
248
  expect(asFragment()).toMatchSnapshot();
249
- }); // test('Should render the only options matching search value even with additional spaces before and after', () => {
250
- // const { getByRole, getAllByRole, asFragment, getByTestId } = render(<Select needSearch options={options} />);
251
- // userEvent.click(getByRole(selectInputRole));
252
- // userEvent.type(within(getByTestId(dropboxTestId)).getByRole('textbox'), ' 2 ');
253
- // expect(getAllByRole(listItemRole)).toHaveLength(1);
254
- // expect(asFragment()).toMatchSnapshot();
255
- // });
256
-
249
+ });
250
+ test('Should render the only options matching search value even with additional spaces before and after', () => {
251
+ const {
252
+ getByRole,
253
+ getAllByRole,
254
+ asFragment,
255
+ getByTestId
256
+ } = render( /*#__PURE__*/React.createElement(Select, {
257
+ needSearch: true,
258
+ options: options
259
+ }));
260
+ userEvent.click(getByRole(selectInputRole));
261
+ userEvent.type(within(getByTestId(dropboxTestId)).getByRole('textbox'), ' 2 ');
262
+ expect(getAllByRole(listItemRole)).toHaveLength(1);
263
+ expect(asFragment()).toMatchSnapshot();
264
+ });
257
265
  test('Should trigger given onSearch, when type on the search input', async () => {
258
266
  const mockOnSearch = jest.fn();
259
267
  const {
@@ -1926,6 +1926,287 @@ exports[`Select - Should render the only options matching search value 1`] = `
1926
1926
  </DocumentFragment>
1927
1927
  `;
1928
1928
 
1929
+ exports[`Select - Should render the only options matching search value even with additional spaces before and after 1`] = `
1930
+ <DocumentFragment>
1931
+ <div
1932
+ class="container box_medium "
1933
+ data-selector-id="select"
1934
+ >
1935
+ <div
1936
+ class=""
1937
+ data-id="selectComponent"
1938
+ data-test-id="selectComponent"
1939
+ >
1940
+ <div
1941
+ class="container effect effectFocused input flex rowdir"
1942
+ data-id="containerComponent"
1943
+ data-selector-id="textBoxIcon"
1944
+ data-test-id="containerComponent"
1945
+ >
1946
+ <div
1947
+ class="grow basis shrinkOff"
1948
+ data-id="boxComponent"
1949
+ data-selector-id="box"
1950
+ data-test-id="boxComponent"
1951
+ >
1952
+ <input
1953
+ aria-activedescendant="1"
1954
+ aria-controls="1"
1955
+ aria-expanded="true"
1956
+ aria-haspopup="true"
1957
+ aria-label="click to select options"
1958
+ aria-owns="1"
1959
+ aria-readonly="true"
1960
+ autocomplete="off"
1961
+ class=" pointer container medium default effect focus borderColor_default inputDotted "
1962
+ data-id="selectComponent_textBox"
1963
+ data-selector-id="textBoxIcon"
1964
+ data-test-id="selectComponent_textBox"
1965
+ data-title="Option 1"
1966
+ maxlength="250"
1967
+ placeholder=""
1968
+ readonly=""
1969
+ role="Menuitem"
1970
+ type="text"
1971
+ value="Option 1"
1972
+ />
1973
+ </div>
1974
+ <div
1975
+ class="iconContainer shrinkOff"
1976
+ data-id="boxComponent"
1977
+ data-selector-id="box"
1978
+ data-test-id="boxComponent"
1979
+ >
1980
+ <div
1981
+ class="flex cover rowdir"
1982
+ data-id="containerComponent"
1983
+ data-selector-id="container"
1984
+ data-test-id="containerComponent"
1985
+ >
1986
+ <div
1987
+ class="icon rotated shrinkOff"
1988
+ data-id="boxComponent"
1989
+ data-selector-id="box"
1990
+ data-test-id="boxComponent"
1991
+ >
1992
+ <div
1993
+ class="rightPlaceholder inflex rowdir both"
1994
+ data-id="containerComponent"
1995
+ data-selector-id="container"
1996
+ data-test-id="containerComponent"
1997
+ >
1998
+ <div
1999
+ aria-hidden="true"
2000
+ class="arrowIcon flex cover coldir both"
2001
+ data-id="selectComponent_downIcon"
2002
+ data-selector-id="container"
2003
+ data-test-id="selectComponent_downIcon"
2004
+ >
2005
+ <i
2006
+ aria-hidden="true"
2007
+ class="zd_font_icons basic icon-down "
2008
+ data-id="fontIcon"
2009
+ data-selector-id="fontIcon"
2010
+ data-test-id="fontIcon"
2011
+ style="--zd-iconfont-size: var(--zd_font_size7);"
2012
+ />
2013
+ </div>
2014
+ </div>
2015
+ </div>
2016
+ </div>
2017
+ </div>
2018
+ <div
2019
+ class="line borderColor_default "
2020
+ />
2021
+ </div>
2022
+ </div>
2023
+ <div
2024
+ class="main container bottomMid default"
2025
+ data-a11y-focus-main-area="true"
2026
+ data-arrow-position="mid"
2027
+ data-box-direction="bottom"
2028
+ data-id="selectComponent_suggestions"
2029
+ data-position="bottomMid"
2030
+ data-selector-id="dropBox"
2031
+ data-test-id="selectComponent_suggestions"
2032
+ dot-ui-element="dropbox"
2033
+ style="z-index: 4;"
2034
+ >
2035
+ <div
2036
+ class="subContainer shadow radius bounce defaultPalette"
2037
+ data-id="selectComponent_suggestions_subcontainer"
2038
+ data-selector-id="dropBox_subcontainer"
2039
+ data-test-id="selectComponent_suggestions_subcontainer"
2040
+ tabindex="-1"
2041
+ >
2042
+ <div
2043
+ class="flex rowdir"
2044
+ data-id="containerComponent"
2045
+ data-selector-id="container"
2046
+ data-test-id="containerComponent"
2047
+ >
2048
+ <div
2049
+ class="grow basis shrinkOff"
2050
+ data-id="boxComponent"
2051
+ data-selector-id="box"
2052
+ data-test-id="boxComponent"
2053
+ >
2054
+ <div
2055
+ class="flex cover coldir"
2056
+ data-id="containerComponent"
2057
+ data-selector-id="container"
2058
+ data-test-id="containerComponent"
2059
+ >
2060
+ <div
2061
+ class="notScroll shrinkOff"
2062
+ data-id="CardHeader"
2063
+ data-selector-id="cardHeader"
2064
+ data-test-id="CardHeader"
2065
+ >
2066
+ <div
2067
+ class="search medium"
2068
+ >
2069
+ <div
2070
+ class="container effect effectFocused flex rowdir"
2071
+ data-id="containerComponent"
2072
+ data-selector-id="textBoxIcon"
2073
+ data-test-id="containerComponent"
2074
+ >
2075
+ <div
2076
+ class="grow basis shrinkOff"
2077
+ data-id="boxComponent"
2078
+ data-selector-id="box"
2079
+ data-test-id="boxComponent"
2080
+ >
2081
+ <input
2082
+ aria-autocomplete="list"
2083
+ aria-controls="1"
2084
+ aria-describedby="2"
2085
+ autocomplete="off"
2086
+ class=" container small default effect borderColor_default "
2087
+ data-id="selectComponent_search"
2088
+ data-selector-id="textBoxIcon"
2089
+ data-test-id="selectComponent_search"
2090
+ maxlength="250"
2091
+ placeholder="Search"
2092
+ type="text"
2093
+ value=" 2 "
2094
+ />
2095
+ </div>
2096
+ <div
2097
+ class="iconContainer shrinkOff"
2098
+ data-id="boxComponent"
2099
+ data-selector-id="box"
2100
+ data-test-id="boxComponent"
2101
+ >
2102
+ <div
2103
+ class="flex cover rowdir"
2104
+ data-id="containerComponent"
2105
+ data-selector-id="container"
2106
+ data-test-id="containerComponent"
2107
+ >
2108
+ <button
2109
+ class="buttonReset icon shrinkOff"
2110
+ data-id="selectComponent_search_ClearIcon"
2111
+ data-selector-id="box"
2112
+ data-test-id="selectComponent_search_ClearIcon"
2113
+ data-title="Clear"
2114
+ >
2115
+ <div
2116
+ aria-hidden="true"
2117
+ class="flex cover coldir both"
2118
+ data-id="containerComponent"
2119
+ data-selector-id="container"
2120
+ data-test-id="containerComponent"
2121
+ >
2122
+ <i
2123
+ aria-hidden="true"
2124
+ class="zd_font_icons basic icon-delete rtl "
2125
+ data-id="fontIcon"
2126
+ data-selector-id="fontIcon"
2127
+ data-test-id="fontIcon"
2128
+ style="--zd-iconfont-size: var(--zd_font_size14);"
2129
+ />
2130
+ </div>
2131
+ </button>
2132
+ </div>
2133
+ </div>
2134
+ <div
2135
+ class="line borderColor_default "
2136
+ />
2137
+ </div>
2138
+ </div>
2139
+ </div>
2140
+ <div
2141
+ class="small grow basis shrinkOn scrolly"
2142
+ data-id="CardContent"
2143
+ data-selector-id="cardContent"
2144
+ data-test-id="CardContent"
2145
+ >
2146
+ <div
2147
+ class="flex coldir"
2148
+ data-id="containerComponent"
2149
+ data-selector-id="container"
2150
+ data-test-id="containerComponent"
2151
+ id="1"
2152
+ role="listbox"
2153
+ tabindex="0"
2154
+ >
2155
+ <div
2156
+ class="listItemContainer shrinkOff"
2157
+ data-id="selectComponent_Options"
2158
+ data-selector-id="box"
2159
+ data-test-id="selectComponent_Options"
2160
+ >
2161
+ <li
2162
+ aria-label="Option 2"
2163
+ aria-selected="false"
2164
+ ariaparentrole="listbox"
2165
+ class="list medium default defaultHover mediumwithTick flex rowdir vCenter"
2166
+ data-a11y-inset-focus="true"
2167
+ data-a11y-list-active="true"
2168
+ data-id="Option 2"
2169
+ data-selector-id="listItem"
2170
+ data-test-id="Option 2"
2171
+ data-title="Option 2"
2172
+ role="option"
2173
+ tabindex="0"
2174
+ >
2175
+ <div
2176
+ class="leftBox grow basis shrinkOff"
2177
+ data-id="boxComponent"
2178
+ data-selector-id="box"
2179
+ data-test-id="boxComponent"
2180
+ >
2181
+ <div
2182
+ class="titleBox shrinkOff"
2183
+ data-id="boxComponent"
2184
+ data-selector-id="box"
2185
+ data-test-id="boxComponent"
2186
+ >
2187
+ <div
2188
+ class="value basisAuto shrinkOn"
2189
+ data-id="boxComponent"
2190
+ data-selector-id="box"
2191
+ data-test-id="boxComponent"
2192
+ >
2193
+ Option 2
2194
+ </div>
2195
+ </div>
2196
+ </div>
2197
+ </li>
2198
+ </div>
2199
+ </div>
2200
+ </div>
2201
+ </div>
2202
+ </div>
2203
+ </div>
2204
+ </div>
2205
+ </div>
2206
+ </div>
2207
+ </DocumentFragment>
2208
+ `;
2209
+
1929
2210
  exports[`Select - Should render the placeholder when there is no default value 1`] = `
1930
2211
  <DocumentFragment>
1931
2212
  <div
@@ -145,7 +145,7 @@
145
145
  }
146
146
 
147
147
  .emptyStateTitle {
148
- font-family: var(--zd_semibold);
148
+ font-weight: var(--zd-fw-semibold);
149
149
  word-wrap: break-word;
150
150
  font-size: var(--zd_font_size16) ;
151
151
  max-width: var(--zd_size430) ;
@@ -9,7 +9,7 @@
9
9
  --textbox_width: 100%;
10
10
  --textbox_height: var(--zd_size35);
11
11
  --textbox_border_radius: none;
12
- --textbox_font_family: var(--zd_regular);
12
+ --textbox_font_weight: var(--zd-fw-normal);
13
13
  /* Variable:Ignore */
14
14
  --textbox_letter_spacing: 0.1px;
15
15
  --textbox_padding: 0;
@@ -166,18 +166,18 @@
166
166
  .primary,
167
167
  .secondary,
168
168
  .light {
169
- font-family: var(--textbox_font_family);
169
+ font-weight: var(--textbox_font_weight);
170
170
  }
171
171
 
172
172
  .primary {
173
173
  --textbox_text_color: var(--zdt_textbox_default_text);
174
- --textbox_font_family: var(--zd_semibold);
174
+ --textbox_font_weight: var(--zd-fw-semibold);
175
175
  composes: ftsmooth from '../common/common.module.css';
176
176
  }
177
177
 
178
178
  .secondary {
179
179
  --textbox_text_color: var(--zdt_textbox_secondary_text);
180
- --textbox_font_family: var(--zd_light);
180
+ --textbox_font_weight: var(--zd-fw-light);
181
181
  }
182
182
 
183
183
  .light {
@@ -139,7 +139,7 @@
139
139
  --textarea_height: var(--zd_size184);
140
140
  }
141
141
  .default {
142
- font-family: var(--zd_regular);
142
+ font-weight: var(--zd-fw-normal);
143
143
  --textarea_text_color: var(--zdt_textarea_black_text);
144
144
  }
145
145
  .primary {
@@ -14,7 +14,7 @@
14
14
  .tooltipcont {
15
15
  color: var(--zdt_tooltip_default_text);
16
16
  font-size: var(--zd_font_size13) ;
17
- font-family: var(--zd_semibold);
17
+ font-weight: var(--zd-fw-semibold);
18
18
  word-break: break-word;
19
19
  max-width: var(--zd_size420) ;
20
20
  line-height: 1.5385;
@@ -25,20 +25,20 @@
25
25
  }
26
26
 
27
27
  .font_regular {
28
- font-family: var(--zd_regular);
28
+ font-weight: var(--zd-fw-normal);
29
29
  }
30
30
 
31
31
  .font_light {
32
- font-family: var(--zd_light);
32
+ font-weight: var(--zd-fw-light);
33
33
  }
34
34
 
35
35
  .font_semibold {
36
- font-family: var(--zd_semibold);
36
+ font-weight: var(--zd-fw-semibold);
37
37
  composes: ftsmooth from '../../common/common.module.css';
38
38
  }
39
39
 
40
40
  .font_bold {
41
- font-family: var(--zd_bold);
41
+ font-weight: var(--zd-fw-bold);
42
42
  composes: ftsmooth from '../../common/common.module.css';
43
43
  }
44
44