@zohodesk/components 1.0.0-temp-199.22 → 1.0.0-temp-249.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.
- package/README.md +29 -0
- package/assets/Appearance/dark/mode/Component_v1_DarkMode.module.css +6 -0
- package/assets/Appearance/light/mode/Component_v1_LightMode.module.css +6 -0
- package/assets/Appearance/pureDark/mode/Component_v1_PureDarkMode.module.css +6 -0
- package/es/ColorSelect/__tests__/__snapshots__/ColorMultiSelect.spec.js.snap +5 -5
- package/es/ColorSelect/__tests__/__snapshots__/ColorSingleSelect.spec.js.snap +6 -6
- package/es/DateTime/__tests__/__snapshots__/DateTime.spec.js.snap +3 -3
- package/es/DateTime/__tests__/__snapshots__/DateWidget.spec.js.snap +1 -1
- package/es/DateTime/__tests__/__snapshots__/Time.spec.js.snap +3 -3
- package/es/ListItem/ListItem.js +0 -1
- package/es/ListItem/ListItem.module.css +18 -17
- package/es/ListItem/ListItemWithAvatar.js +2 -4
- package/es/ListItem/ListItemWithCheckBox.js +2 -4
- package/es/ListItem/ListItemWithIcon.js +2 -4
- package/es/ListItem/ListItemWithRadio.js +2 -4
- package/es/ListItem/__tests__/__snapshots__/ListItem.spec.js.snap +1 -1
- package/es/MultiSelect/AdvancedGroupMultiSelect.js +2 -6
- package/es/MultiSelect/MultiSelect.js +2 -2
- package/es/MultiSelect/Suggestions.js +2 -7
- package/es/MultiSelect/__tests__/__snapshots__/AdvancedGroupMultiSelect.spec.js.snap +1 -1
- package/es/MultiSelect/__tests__/__snapshots__/AdvancedMultiSelect.spec.js.snap +3 -3
- package/es/MultiSelect/__tests__/__snapshots__/MultiSelect.spec.js.snap +3 -3
- package/es/MultiSelect/__tests__/__snapshots__/MultiSelectWithAvatar.spec.js.snap +1 -1
- package/es/MultiSelect/__tests__/__snapshots__/Suggestions.spec.js.snap +1 -1
- package/es/MultiSelect/props/defaultProps.js +0 -2
- package/es/MultiSelect/props/propTypes.js +3 -11
- package/es/Provider/LibraryContext.js +11 -3
- package/es/Select/GroupSelect.js +1 -1
- package/es/Select/Select.js +5 -3
- package/es/Select/SelectWithAvatar.js +3 -3
- package/es/Select/SelectWithIcon.js +3 -10
- package/es/Select/__tests__/Select.spec.js +5 -0
- package/es/Select/__tests__/__snapshots__/GroupSelect.spec.js.snap +1 -1
- package/es/Select/__tests__/__snapshots__/Select.spec.js.snap +111 -121
- package/es/Select/__tests__/__snapshots__/SelectWithIcon.spec.js.snap +1 -1
- package/es/Select/props/defaultProps.js +2 -4
- package/es/Select/props/propTypes.js +5 -12
- package/es/TextBoxIcon/TextBoxIcon.js +0 -1
- package/es/TextBoxIcon/__tests__/__snapshots__/TextBoxIcon.spec.js.snap +39 -39
- package/es/common/common.module.css +1 -1
- package/es/shared/InputFieldLine/InputFieldLine.js +2 -1
- package/es/shared/InputFieldLine/InputFieldLine.module.css +13 -7
- package/es/shared/InputFieldLine/__tests__/__snapshots__/InputFieldLine.spec.js.snap +19 -19
- package/es/shared/InputFieldLine/props/defaultProps.js +2 -2
- package/es/shared/InputFieldLine/props/propTypes.js +1 -1
- package/es/v1/Label/Label.js +95 -33
- package/es/v1/Label/__tests__/Label.spec.js +214 -0
- package/es/v1/Label/__tests__/__snapshots__/Label.spec.js.snap +451 -0
- package/es/v1/Label/constants/index.js +8 -0
- package/es/v1/Label/css/Label_v1.module.css +42 -0
- package/es/v1/Label/css/cssJSLogic.js +44 -0
- package/es/v1/Label/props/defaultProps.js +14 -9
- package/es/v1/Label/props/propTypes.js +34 -14
- package/lib/ColorSelect/__tests__/__snapshots__/ColorMultiSelect.spec.js.snap +5 -5
- package/lib/ColorSelect/__tests__/__snapshots__/ColorSingleSelect.spec.js.snap +6 -6
- package/lib/DateTime/__tests__/__snapshots__/DateTime.spec.js.snap +3 -3
- package/lib/DateTime/__tests__/__snapshots__/DateWidget.spec.js.snap +1 -1
- package/lib/DateTime/__tests__/__snapshots__/Time.spec.js.snap +3 -3
- package/lib/ListItem/ListItem.js +0 -1
- package/lib/ListItem/ListItem.module.css +18 -17
- package/lib/ListItem/ListItemWithAvatar.js +3 -5
- package/lib/ListItem/ListItemWithCheckBox.js +2 -4
- package/lib/ListItem/ListItemWithIcon.js +3 -5
- package/lib/ListItem/ListItemWithRadio.js +2 -4
- package/lib/ListItem/__tests__/__snapshots__/ListItem.spec.js.snap +1 -1
- package/lib/MultiSelect/AdvancedGroupMultiSelect.js +3 -8
- package/lib/MultiSelect/MultiSelect.js +2 -2
- package/lib/MultiSelect/Suggestions.js +2 -6
- package/lib/MultiSelect/__tests__/__snapshots__/AdvancedGroupMultiSelect.spec.js.snap +1 -1
- package/lib/MultiSelect/__tests__/__snapshots__/AdvancedMultiSelect.spec.js.snap +3 -3
- package/lib/MultiSelect/__tests__/__snapshots__/MultiSelect.spec.js.snap +3 -3
- package/lib/MultiSelect/__tests__/__snapshots__/MultiSelectWithAvatar.spec.js.snap +1 -1
- package/lib/MultiSelect/__tests__/__snapshots__/Suggestions.spec.js.snap +1 -1
- package/lib/MultiSelect/props/defaultProps.js +0 -2
- package/lib/MultiSelect/props/propTypes.js +5 -13
- package/lib/Provider/LibraryContext.js +11 -3
- package/lib/Select/GroupSelect.js +1 -2
- package/lib/Select/Select.js +8 -5
- package/lib/Select/SelectWithAvatar.js +3 -4
- package/lib/Select/SelectWithIcon.js +3 -10
- package/lib/Select/__tests__/Select.spec.js +5 -0
- package/lib/Select/__tests__/__snapshots__/GroupSelect.spec.js.snap +1 -1
- package/lib/Select/__tests__/__snapshots__/Select.spec.js.snap +111 -121
- package/lib/Select/__tests__/__snapshots__/SelectWithIcon.spec.js.snap +1 -1
- package/lib/Select/props/defaultProps.js +3 -5
- package/lib/Select/props/propTypes.js +5 -12
- package/lib/TextBoxIcon/TextBoxIcon.js +0 -1
- package/lib/TextBoxIcon/__tests__/__snapshots__/TextBoxIcon.spec.js.snap +39 -39
- package/lib/common/common.module.css +1 -1
- package/lib/shared/InputFieldLine/InputFieldLine.js +2 -1
- package/lib/shared/InputFieldLine/InputFieldLine.module.css +13 -7
- package/lib/shared/InputFieldLine/__tests__/__snapshots__/InputFieldLine.spec.js.snap +19 -19
- package/lib/shared/InputFieldLine/props/defaultProps.js +2 -2
- package/lib/shared/InputFieldLine/props/propTypes.js +1 -1
- package/lib/v1/Label/Label.js +103 -36
- package/lib/v1/Label/__tests__/Label.spec.js +221 -0
- package/lib/v1/Label/__tests__/__snapshots__/Label.spec.js.snap +451 -0
- package/lib/v1/Label/constants/index.js +16 -0
- package/lib/v1/Label/css/Label_v1.module.css +42 -0
- package/lib/v1/Label/css/cssJSLogic.js +45 -0
- package/lib/v1/Label/props/defaultProps.js +16 -11
- package/lib/v1/Label/props/propTypes.js +36 -16
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -2,6 +2,35 @@
|
|
|
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
|
+
|
|
6
|
+
# 1.6.1
|
|
7
|
+
|
|
8
|
+
- **Label Component - v1**
|
|
9
|
+
- The label component of v1 has been updated with accessibility enhancements and few props have been renamed and restructured to align better with accessibility guidelines
|
|
10
|
+
- Mandatory field accessibility has been improved by allowing the mandatory indicator type (asterisk or text) to be handled via user preferences.
|
|
11
|
+
- Explicit boolean props are introduced: isRequired, isDisabled, isReadOnly - These replace earlier state handling that was implicitly managed through the palette prop.
|
|
12
|
+
- Custom Class Structure has been updated to provide separate styling control : Label element, Container wrapper
|
|
13
|
+
- The variant prop has been replaced with textWeight to clearly define typography styling (regular / semibold).
|
|
14
|
+
- The dataId has been replaced with testId, customId
|
|
15
|
+
|
|
16
|
+
- These updates have been applied across all form labels using Label v1
|
|
17
|
+
|
|
18
|
+
# 1.6.0
|
|
19
|
+
|
|
20
|
+
- Updated @zohodesk-private/color-variable-preprocessor package - Grayscale introduced
|
|
21
|
+
|
|
22
|
+
# 1.5.9
|
|
23
|
+
|
|
24
|
+
- **InputFieldline**
|
|
25
|
+
- changed the handling of conditional logic for padding, scroll and size properties.
|
|
26
|
+
- `size` default prop declaration removed.
|
|
27
|
+
|
|
28
|
+
- **TextBoxIcon**
|
|
29
|
+
- added support for `InputFieldLineProps` via the customProps object.
|
|
30
|
+
|
|
31
|
+
- **Select**
|
|
32
|
+
- Removed the size prop from InputFieldLine usage, as it is unused.
|
|
33
|
+
|
|
5
34
|
# 1.5.8
|
|
6
35
|
|
|
7
36
|
- Memoized **Portal** logic to improve performance.
|
|
@@ -8,4 +8,10 @@
|
|
|
8
8
|
--zdt_v1_switch_onLabel: hsla(217, 23.08%, calc(17.84% + var(--zdc_default)), calc(1 + var(--zdc_alpha_high)));
|
|
9
9
|
--zdt_v1_switch_offLabel: hsla(217, 13.73%, calc(70.00% + var(--zdc_default_inverse_medium)), calc(1 + var(--zdc_alpha_low)));
|
|
10
10
|
--zdt_v1_switch_offLabel_hover: hsla(210, 7.41%, calc(89.41% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
11
|
+
|
|
12
|
+
/* label */
|
|
13
|
+
--zdt_v1_label_text: hsla(210, 7.41%, calc(89.41% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
14
|
+
--zdt_v1_label_required_text: hsla(0, 100.00%, calc(70.98% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
15
|
+
--zdt_v1_label_disabled_text: var(--dot_inputDisable);
|
|
16
|
+
--zdt_v1_label_secondary_text: hsla(217, 13.73%, calc(70.00% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
11
17
|
}
|
|
@@ -8,4 +8,10 @@
|
|
|
8
8
|
--zdt_v1_switch_onLabel: hsla(0, 0.00%, calc(100.00% + var(--zdc_default)), calc(1 + var(--zdc_alpha_high)));
|
|
9
9
|
--zdt_v1_switch_offLabel: hsla(220, 10.45%, calc(39.41% + var(--zdc_default_inverse_medium)), calc(1 + var(--zdc_alpha_low)));
|
|
10
10
|
--zdt_v1_switch_offLabel_hover: hsla(0, 0.00%, calc(0.00% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
11
|
+
|
|
12
|
+
/* label */
|
|
13
|
+
--zdt_v1_label_text: hsla(0, 0.00%, calc(0.00% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
14
|
+
--zdt_v1_label_required_text: hsla(0, 71.91%, calc(53.92% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
15
|
+
--zdt_v1_label_disabled_text: var(--dot_inputDisable);
|
|
16
|
+
--zdt_v1_label_secondary_text: hsla(220, 10.45%, calc(39.41% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
11
17
|
}
|
|
@@ -8,4 +8,10 @@
|
|
|
8
8
|
--zdt_v1_switch_onLabel: hsla(0, 0.00%, calc(12.94% + var(--zdc_default)), calc(1 + var(--zdc_alpha_high)));
|
|
9
9
|
--zdt_v1_switch_offLabel: hsla(0, 0.00%, calc(60.00% + var(--zdc_default_inverse_medium)), calc(1 + var(--zdc_alpha_low)));
|
|
10
10
|
--zdt_v1_switch_offLabel_hover: hsla(210, 7.41%, calc(89.41% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
11
|
+
|
|
12
|
+
/* label */
|
|
13
|
+
--zdt_v1_label_text: hsla(210, 7.41%, calc(89.41% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
14
|
+
--zdt_v1_label_required_text: hsla(0, 100.00%, calc(70.98% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
15
|
+
--zdt_v1_label_disabled_text: var(--dot_inputDisable);
|
|
16
|
+
--zdt_v1_label_secondary_text: hsla(0, 0.00%, calc(60.00% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
11
17
|
}
|
|
@@ -25,7 +25,7 @@ exports[`ColorMultiSelect Should render the default selected value 1`] = `
|
|
|
25
25
|
"
|
|
26
26
|
/>
|
|
27
27
|
<div
|
|
28
|
-
class="varClass customContainer
|
|
28
|
+
class="varClass customContainer effect container custmInputWrapper flex rowdir"
|
|
29
29
|
data-selector-id="textBoxIcon"
|
|
30
30
|
>
|
|
31
31
|
<div
|
|
@@ -210,7 +210,7 @@ exports[`ColorMultiSelect Should render the selected value 1`] = `
|
|
|
210
210
|
"
|
|
211
211
|
/>
|
|
212
212
|
<div
|
|
213
|
-
class="varClass customContainer
|
|
213
|
+
class="varClass customContainer effect container custmInputWrapper flex rowdir"
|
|
214
214
|
data-selector-id="textBoxIcon"
|
|
215
215
|
>
|
|
216
216
|
<div
|
|
@@ -311,7 +311,7 @@ exports[`ColorMultiSelect rendering the defult props 1`] = `
|
|
|
311
311
|
"
|
|
312
312
|
/>
|
|
313
313
|
<div
|
|
314
|
-
class="varClass customContainer
|
|
314
|
+
class="varClass customContainer effect container custmInputWrapper flex rowdir"
|
|
315
315
|
data-selector-id="textBoxIcon"
|
|
316
316
|
>
|
|
317
317
|
<div
|
|
@@ -394,7 +394,7 @@ exports[`ColorMultiSelect renders with renderCustomColorIndicator 1`] = `
|
|
|
394
394
|
"
|
|
395
395
|
/>
|
|
396
396
|
<div
|
|
397
|
-
class="varClass customContainer
|
|
397
|
+
class="varClass customContainer effect container custmInputWrapper flex rowdir"
|
|
398
398
|
data-selector-id="textBoxIcon"
|
|
399
399
|
>
|
|
400
400
|
<div
|
|
@@ -477,7 +477,7 @@ exports[`ColorMultiSelect renders with renderCustomSelectedValue 1`] = `
|
|
|
477
477
|
"
|
|
478
478
|
/>
|
|
479
479
|
<div
|
|
480
|
-
class="varClass customContainer
|
|
480
|
+
class="varClass customContainer effect container custmInputWrapper flex rowdir"
|
|
481
481
|
data-selector-id="textBoxIcon"
|
|
482
482
|
>
|
|
483
483
|
<div
|
|
@@ -18,7 +18,7 @@ exports[`ColorSingleSelect Should render the default selected value 1`] = `
|
|
|
18
18
|
aria-haspopup="listbox"
|
|
19
19
|
aria-owns="3"
|
|
20
20
|
aria-readonly="false"
|
|
21
|
-
class="varClass customContainer medium border_bottom effect borderColor_default hasBorder flex rowdir"
|
|
21
|
+
class="varClass customContainer medium padding_medium border_bottom effect borderColor_default hasBorder flex rowdir scrolly"
|
|
22
22
|
data-selector-id="container"
|
|
23
23
|
data-title=""
|
|
24
24
|
role="button"
|
|
@@ -96,7 +96,7 @@ exports[`ColorSingleSelect Should render the selected value 1`] = `
|
|
|
96
96
|
aria-haspopup="listbox"
|
|
97
97
|
aria-owns="6"
|
|
98
98
|
aria-readonly="false"
|
|
99
|
-
class="varClass customContainer medium border_bottom effect borderColor_default hasBorder flex rowdir"
|
|
99
|
+
class="varClass customContainer medium padding_medium border_bottom effect borderColor_default hasBorder flex rowdir scrolly"
|
|
100
100
|
data-selector-id="container"
|
|
101
101
|
data-title=""
|
|
102
102
|
role="button"
|
|
@@ -170,7 +170,7 @@ exports[`ColorSingleSelect rendering the defult props 1`] = `
|
|
|
170
170
|
aria-haspopup="listbox"
|
|
171
171
|
aria-owns="1"
|
|
172
172
|
aria-readonly="false"
|
|
173
|
-
class="varClass customContainer medium border_bottom effect borderColor_default hasBorder flex rowdir"
|
|
173
|
+
class="varClass customContainer medium padding_medium border_bottom effect borderColor_default hasBorder flex rowdir scrolly"
|
|
174
174
|
data-selector-id="container"
|
|
175
175
|
data-title=""
|
|
176
176
|
role="button"
|
|
@@ -233,7 +233,7 @@ exports[`ColorSingleSelect rendering with isDefaultSelectValue is false 1`] = `
|
|
|
233
233
|
aria-haspopup="listbox"
|
|
234
234
|
aria-owns="9"
|
|
235
235
|
aria-readonly="false"
|
|
236
|
-
class="varClass customContainer medium border_bottom effect borderColor_default hasBorder flex rowdir"
|
|
236
|
+
class="varClass customContainer medium padding_medium border_bottom effect borderColor_default hasBorder flex rowdir scrolly"
|
|
237
237
|
data-selector-id="container"
|
|
238
238
|
data-title=""
|
|
239
239
|
role="button"
|
|
@@ -298,7 +298,7 @@ exports[`ColorSingleSelect renders with renderCustomColorIndicator 1`] = `
|
|
|
298
298
|
aria-haspopup="listbox"
|
|
299
299
|
aria-owns="11"
|
|
300
300
|
aria-readonly="false"
|
|
301
|
-
class="varClass customContainer medium border_bottom effect borderColor_default hasBorder flex rowdir"
|
|
301
|
+
class="varClass customContainer medium padding_medium border_bottom effect borderColor_default hasBorder flex rowdir scrolly"
|
|
302
302
|
data-selector-id="container"
|
|
303
303
|
data-title=""
|
|
304
304
|
role="button"
|
|
@@ -376,7 +376,7 @@ exports[`ColorSingleSelect renders with renderCustomSelectedValue 1`] = `
|
|
|
376
376
|
aria-haspopup="listbox"
|
|
377
377
|
aria-owns="14"
|
|
378
378
|
aria-readonly="false"
|
|
379
|
-
class="varClass customContainer medium border_bottom effect borderColor_default hasBorder flex rowdir"
|
|
379
|
+
class="varClass customContainer medium padding_medium border_bottom effect borderColor_default hasBorder flex rowdir scrolly"
|
|
380
380
|
data-selector-id="container"
|
|
381
381
|
data-title=""
|
|
382
382
|
role="button"
|
|
@@ -618,7 +618,7 @@ exports[`DateTime rendering the isActive is true and isDefaultPosition is true 1
|
|
|
618
618
|
data-test-id="hourField"
|
|
619
619
|
>
|
|
620
620
|
<div
|
|
621
|
-
class="varClass customContainer
|
|
621
|
+
class="varClass customContainer border_bottom effect borderColor_default hasBorder container input flex rowdir"
|
|
622
622
|
data-selector-id="textBoxIcon"
|
|
623
623
|
>
|
|
624
624
|
<div
|
|
@@ -713,7 +713,7 @@ exports[`DateTime rendering the isActive is true and isDefaultPosition is true 1
|
|
|
713
713
|
data-test-id="minuteField"
|
|
714
714
|
>
|
|
715
715
|
<div
|
|
716
|
-
class="varClass customContainer
|
|
716
|
+
class="varClass customContainer border_bottom effect borderColor_default hasBorder container input flex rowdir"
|
|
717
717
|
data-selector-id="textBoxIcon"
|
|
718
718
|
>
|
|
719
719
|
<div
|
|
@@ -808,7 +808,7 @@ exports[`DateTime rendering the isActive is true and isDefaultPosition is true 1
|
|
|
808
808
|
data-test-id="ampmField"
|
|
809
809
|
>
|
|
810
810
|
<div
|
|
811
|
-
class="varClass customContainer
|
|
811
|
+
class="varClass customContainer border_bottom effect borderColor_default hasBorder container input flex rowdir"
|
|
812
812
|
data-selector-id="textBoxIcon"
|
|
813
813
|
>
|
|
814
814
|
<div
|
|
@@ -11,7 +11,7 @@ exports[`DateWidget rendering the defult props 1`] = `
|
|
|
11
11
|
data-test-id="dateWidget_widget"
|
|
12
12
|
>
|
|
13
13
|
<div
|
|
14
|
-
class="varClass customContainer
|
|
14
|
+
class="varClass customContainer border_bottom effect borderColor_default hasBorder container placeHolder flex rowdir"
|
|
15
15
|
data-selector-id="textBoxIcon"
|
|
16
16
|
>
|
|
17
17
|
<div
|
|
@@ -27,7 +27,7 @@ exports[`Time rendering the defult props 1`] = `
|
|
|
27
27
|
data-test-id="hourField"
|
|
28
28
|
>
|
|
29
29
|
<div
|
|
30
|
-
class="varClass customContainer
|
|
30
|
+
class="varClass customContainer border_bottom effect borderColor_default hasBorder container input flex rowdir"
|
|
31
31
|
data-selector-id="textBoxIcon"
|
|
32
32
|
>
|
|
33
33
|
<div
|
|
@@ -120,7 +120,7 @@ exports[`Time rendering the defult props 1`] = `
|
|
|
120
120
|
data-test-id="minuteField"
|
|
121
121
|
>
|
|
122
122
|
<div
|
|
123
|
-
class="varClass customContainer
|
|
123
|
+
class="varClass customContainer border_bottom effect borderColor_default hasBorder container input flex rowdir"
|
|
124
124
|
data-selector-id="textBoxIcon"
|
|
125
125
|
>
|
|
126
126
|
<div
|
|
@@ -213,7 +213,7 @@ exports[`Time rendering the defult props 1`] = `
|
|
|
213
213
|
data-test-id="ampmField"
|
|
214
214
|
>
|
|
215
215
|
<div
|
|
216
|
-
class="varClass customContainer
|
|
216
|
+
class="varClass customContainer border_bottom effect borderColor_default hasBorder container input flex rowdir"
|
|
217
217
|
data-selector-id="textBoxIcon"
|
|
218
218
|
>
|
|
219
219
|
<div
|
package/es/ListItem/ListItem.js
CHANGED
|
@@ -126,7 +126,6 @@ export default class ListItem extends React.Component {
|
|
|
126
126
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
127
127
|
className: style.titleBox
|
|
128
128
|
}, isRenderable(renderBeforeChildren) ? /*#__PURE__*/React.createElement(Box, {
|
|
129
|
-
shrink: true,
|
|
130
129
|
adjust: true,
|
|
131
130
|
className: style.beforeChild
|
|
132
131
|
}, renderNode(renderBeforeChildren)) : null, value ? /*#__PURE__*/React.createElement(Box, {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/* css:lineheight-validation:ignore */
|
|
2
1
|
.varClass {
|
|
3
2
|
/* listitem default variables */
|
|
4
3
|
--listitem_font_size: var(--zd_font_size13);
|
|
@@ -16,14 +15,9 @@
|
|
|
16
15
|
|
|
17
16
|
/* listitem tick icon default variables */
|
|
18
17
|
--listitem_tickicon_color: var(--zdt_listitem_default_tickicon);
|
|
19
|
-
|
|
20
|
-
/* multiLine value for list item */
|
|
21
|
-
--listitem_multiline_lineheight: 1.5385;
|
|
22
|
-
}
|
|
23
|
-
[dir=ltr] .varClass {
|
|
18
|
+
}[dir=ltr] .varClass {
|
|
24
19
|
--listitem_avatar_margin: 0 var(--zd_size15) 0 0;
|
|
25
|
-
}
|
|
26
|
-
[dir=rtl] .varClass {
|
|
20
|
+
}[dir=rtl] .varClass {
|
|
27
21
|
--listitem_avatar_margin: 0 0 0 var(--zd_size15);
|
|
28
22
|
}
|
|
29
23
|
.list {
|
|
@@ -82,9 +76,8 @@
|
|
|
82
76
|
[dir=rtl] .beforeChild{
|
|
83
77
|
margin-left: var(--zd_size10) ;
|
|
84
78
|
}
|
|
85
|
-
/* css:lineheight-validation:ignore */
|
|
86
79
|
.value, .multiLineValue {
|
|
87
|
-
line-height:
|
|
80
|
+
line-height: 1.5385;
|
|
88
81
|
}
|
|
89
82
|
.multiLineValue,.multiLine{
|
|
90
83
|
composes: lineClamp from '../common/common.module.css';
|
|
@@ -122,18 +115,26 @@
|
|
|
122
115
|
composes: justifyFend from '../common/common.module.css';
|
|
123
116
|
}
|
|
124
117
|
|
|
125
|
-
.contentWrapper {
|
|
126
|
-
composes: dflex flexrow alignVertical from '../common/common.module.css';
|
|
127
|
-
width: 100% ;
|
|
128
|
-
}
|
|
129
118
|
.lhsBox {
|
|
130
119
|
composes: dflex from '../common/common.module.css';
|
|
131
120
|
align-self: stretch;
|
|
132
121
|
}
|
|
133
|
-
.
|
|
134
|
-
|
|
122
|
+
.lhsBox_small,
|
|
123
|
+
.lhsBox_medium,
|
|
124
|
+
.lhsBox_large{
|
|
125
|
+
composes: varClass;
|
|
126
|
+
--listitem_doubleline_content_height: calc(var(--listitem_font_size) * 2 );
|
|
135
127
|
height: 100% ;
|
|
136
|
-
|
|
128
|
+
composes: dflex alignVertical from '../common/common.module.css';
|
|
129
|
+
}
|
|
130
|
+
.lhsBox_small {
|
|
131
|
+
max-height: calc(var(--listitem_doubleline_content_height) + var(--zd_size7)); /* 7px = listitem min-height - (top + bottom padding) - doubleLine content height */
|
|
132
|
+
}
|
|
133
|
+
.lhsBox_medium {
|
|
134
|
+
max-height: calc(var(--listitem_doubleline_content_height) + var(--zd_size8)); /* 8px = listitem min-height - (top + bottom padding) - doubleLine content height */
|
|
135
|
+
}
|
|
136
|
+
.lhsBox_large {
|
|
137
|
+
max-height: calc(var(--listitem_doubleline_content_height) + var(--zd_size15)); /* 15px = listitem min-height - (top + bottom padding) - doubleLine content height */
|
|
137
138
|
}
|
|
138
139
|
.defaultHover, .primaryHover, .dangerHover, .secondaryHover, .darkHover {
|
|
139
140
|
background-color: var(--listitem_highlight_bg_color);
|
|
@@ -124,13 +124,11 @@ export default class ListItemWithAvatar extends React.PureComponent {
|
|
|
124
124
|
title: null,
|
|
125
125
|
customProps: ListItemProps,
|
|
126
126
|
...ContainerProps
|
|
127
|
-
}, /*#__PURE__*/React.createElement(Box, {
|
|
128
|
-
className: style.contentWrapper
|
|
129
127
|
}, name || imgSrc ? /*#__PURE__*/React.createElement(Box, {
|
|
130
128
|
className: `${style.leftAvatar} ${lhsAlignContent !== 'center' ? `${style.lhsBox}` : ''}`
|
|
131
129
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
132
130
|
align: lhsAlignContent,
|
|
133
|
-
className: style
|
|
131
|
+
className: style[`lhsBox_${size}`]
|
|
134
132
|
}, isTeam ? /*#__PURE__*/React.createElement(AvatarTeam, {
|
|
135
133
|
name: name,
|
|
136
134
|
size: "small",
|
|
@@ -176,7 +174,7 @@ export default class ListItemWithAvatar extends React.PureComponent {
|
|
|
176
174
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
177
175
|
name: "ZD-ticknew",
|
|
178
176
|
size: "8"
|
|
179
|
-
})) : null)
|
|
177
|
+
})) : null);
|
|
180
178
|
}
|
|
181
179
|
|
|
182
180
|
}
|
|
@@ -100,14 +100,12 @@ export default class ListItemWithCheckBox extends React.Component {
|
|
|
100
100
|
title: null,
|
|
101
101
|
customProps: ListItemProps,
|
|
102
102
|
...ContainerProps
|
|
103
|
-
}, /*#__PURE__*/React.createElement(Box, {
|
|
104
|
-
className: style.contentWrapper
|
|
105
103
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
106
104
|
className: `${style.iconBox} ${style.lhsBox} ${style[`lhsJustifyContent_${lhsJustifyContent}`]}`,
|
|
107
105
|
dataId: `${dataId ? dataId : value}_checkBox`
|
|
108
106
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
109
107
|
align: lhsAlignContent,
|
|
110
|
-
className: lhsAlignContent !== 'center' ? style
|
|
108
|
+
className: lhsAlignContent !== 'center' ? style[`lhsBox_${size}`] : ''
|
|
111
109
|
}, /*#__PURE__*/React.createElement(CheckBox, {
|
|
112
110
|
checked: checked,
|
|
113
111
|
a11y: {
|
|
@@ -132,7 +130,7 @@ export default class ListItemWithCheckBox extends React.Component {
|
|
|
132
130
|
}, renderNode(renderValueRightPlaceholderNode)) : null), secondaryValue ? /*#__PURE__*/React.createElement(Box, {
|
|
133
131
|
"data-title": isDisabled ? null : secondaryValue,
|
|
134
132
|
className: `${style.secondaryField} ${needMultiLineText ? style.multiLine : style.secondaryValue}`
|
|
135
|
-
}, secondaryValue) : null))
|
|
133
|
+
}, secondaryValue) : null));
|
|
136
134
|
}
|
|
137
135
|
|
|
138
136
|
}
|
|
@@ -116,8 +116,6 @@ export default class ListItemWithIcon extends React.Component {
|
|
|
116
116
|
title: null,
|
|
117
117
|
customProps: ListItemProps,
|
|
118
118
|
...ContainerProps
|
|
119
|
-
}, /*#__PURE__*/React.createElement(Box, {
|
|
120
|
-
className: style.contentWrapper
|
|
121
119
|
}, iconName && /*#__PURE__*/React.createElement(Box, {
|
|
122
120
|
"aria-hidden": true,
|
|
123
121
|
align: lhsAlignContent,
|
|
@@ -125,7 +123,7 @@ export default class ListItemWithIcon extends React.Component {
|
|
|
125
123
|
dataId: dataId ? `${dataId}_Icon` : `${value.toLowerCase().replace("'", '_')}_Icon`
|
|
126
124
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
127
125
|
align: lhsAlignContent,
|
|
128
|
-
className: lhsAlignContent !== 'center' ? style
|
|
126
|
+
className: lhsAlignContent !== 'center' ? style[`lhsBox_${size}`] : ''
|
|
129
127
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
130
128
|
iconClass: iconClass,
|
|
131
129
|
name: iconName,
|
|
@@ -156,7 +154,7 @@ export default class ListItemWithIcon extends React.Component {
|
|
|
156
154
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
157
155
|
name: "ZD-ticknew",
|
|
158
156
|
size: "8"
|
|
159
|
-
})) : null)
|
|
157
|
+
})) : null);
|
|
160
158
|
}
|
|
161
159
|
|
|
162
160
|
}
|
|
@@ -101,15 +101,13 @@ export default class ListItemWithRadio extends React.Component {
|
|
|
101
101
|
title: null,
|
|
102
102
|
customProps: ListItemProps,
|
|
103
103
|
...ContainerProps
|
|
104
|
-
}, /*#__PURE__*/React.createElement(Box, {
|
|
105
|
-
className: style.contentWrapper
|
|
106
104
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
107
105
|
align: lhsAlignContent,
|
|
108
106
|
className: `${style.iconBox} ${style.lhsBox} ${style[`lhsJustifyContent_${lhsJustifyContent}`]}`,
|
|
109
107
|
dataId: `${dataId}_radio`
|
|
110
108
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
111
109
|
align: lhsAlignContent,
|
|
112
|
-
className: lhsAlignContent !== 'center' ? style
|
|
110
|
+
className: lhsAlignContent !== 'center' ? style[`lhsBox_${size}`] : ''
|
|
113
111
|
}, /*#__PURE__*/React.createElement(Radio, {
|
|
114
112
|
checked: checked,
|
|
115
113
|
id: id,
|
|
@@ -135,7 +133,7 @@ export default class ListItemWithRadio extends React.Component {
|
|
|
135
133
|
}, renderNode(renderValueRightPlaceholderNode)) : null), secondaryValue ? /*#__PURE__*/React.createElement(Box, {
|
|
136
134
|
"data-title": isDisabled ? null : secondaryValue,
|
|
137
135
|
className: `${style.secondaryField} ${needMultiLineText ? style.multiLine : style.secondaryValue}`
|
|
138
|
-
}, secondaryValue) : null))
|
|
136
|
+
}, secondaryValue) : null));
|
|
139
137
|
}
|
|
140
138
|
|
|
141
139
|
}
|
|
@@ -102,7 +102,7 @@ exports[`ListItem Should render with renderBeforeChildren 1`] = `
|
|
|
102
102
|
data-test-id="boxComponent"
|
|
103
103
|
>
|
|
104
104
|
<div
|
|
105
|
-
class="beforeChild basisAuto
|
|
105
|
+
class="beforeChild basisAuto shrinkOff"
|
|
106
106
|
data-id="boxComponent"
|
|
107
107
|
data-selector-id="box"
|
|
108
108
|
data-test-id="boxComponent"
|
|
@@ -889,12 +889,8 @@ class AdvancedGroupMultiSelect extends React.Component {
|
|
|
889
889
|
autoComplete,
|
|
890
890
|
getTargetRef,
|
|
891
891
|
isFocus,
|
|
892
|
-
limit
|
|
893
|
-
customProps
|
|
892
|
+
limit
|
|
894
893
|
} = this.props;
|
|
895
|
-
const {
|
|
896
|
-
SuggestionsProps = {}
|
|
897
|
-
} = customProps;
|
|
898
894
|
let {
|
|
899
895
|
clearText = MULTISELECT_I18N_KEYS.clearText,
|
|
900
896
|
limitReachedMessage = MULTISELECT_I18N_KEYS.limitReachedMessage
|
|
@@ -1063,7 +1059,7 @@ class AdvancedGroupMultiSelect extends React.Component {
|
|
|
1063
1059
|
a11y: {
|
|
1064
1060
|
role: 'heading'
|
|
1065
1061
|
}
|
|
1066
|
-
})), /*#__PURE__*/React.createElement(Suggestions, {
|
|
1062
|
+
})), /*#__PURE__*/React.createElement(Suggestions, {
|
|
1067
1063
|
suggestions: suggestions,
|
|
1068
1064
|
selectedOptions: selectedOptionIds,
|
|
1069
1065
|
getRef: this.suggestionItemRef,
|
|
@@ -1095,9 +1095,9 @@ export class MultiSelectComponent extends React.Component {
|
|
|
1095
1095
|
isLoading,
|
|
1096
1096
|
selectAllText,
|
|
1097
1097
|
needSelectAll,
|
|
1098
|
+
customProps,
|
|
1098
1099
|
isVirtualizerEnabled,
|
|
1099
|
-
limit
|
|
1100
|
-
customProps
|
|
1100
|
+
limit
|
|
1101
1101
|
} = this.props;
|
|
1102
1102
|
const {
|
|
1103
1103
|
selectedOptions,
|
|
@@ -193,23 +193,18 @@ export default class Suggestions extends React.PureComponent {
|
|
|
193
193
|
htmlId,
|
|
194
194
|
a11y,
|
|
195
195
|
getVirtualizerPublicMethods,
|
|
196
|
-
setVirtualizerContainerRefFunction
|
|
197
|
-
customClass
|
|
196
|
+
setVirtualizerContainerRefFunction
|
|
198
197
|
} = this.props;
|
|
199
198
|
const {
|
|
200
199
|
ariaParentRole,
|
|
201
200
|
ariaMultiselectable
|
|
202
201
|
} = a11y;
|
|
203
|
-
const {
|
|
204
|
-
containerClass = ''
|
|
205
|
-
} = customClass;
|
|
206
202
|
return /*#__PURE__*/React.createElement(Container, {
|
|
207
203
|
isCover: false,
|
|
208
204
|
role: ariaParentRole,
|
|
209
205
|
id: htmlId,
|
|
210
206
|
tabindex: "0",
|
|
211
|
-
"aria-multiselectable": ariaMultiselectable
|
|
212
|
-
className: containerClass
|
|
207
|
+
"aria-multiselectable": ariaMultiselectable
|
|
213
208
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
214
209
|
dataId: `${dataId}`,
|
|
215
210
|
className: className ? className : ''
|
|
@@ -25,7 +25,7 @@ exports[`AdvancedGroupMultiSelect rendering the defult props 1`] = `
|
|
|
25
25
|
"
|
|
26
26
|
/>
|
|
27
27
|
<div
|
|
28
|
-
class="varClass customContainer
|
|
28
|
+
class="varClass customContainer effect container custmInputWrapper flex rowdir"
|
|
29
29
|
data-selector-id="textBoxIcon"
|
|
30
30
|
>
|
|
31
31
|
<div
|
|
@@ -25,7 +25,7 @@ exports[`AdvancedMultiSelect rendering the defult props 1`] = `
|
|
|
25
25
|
"
|
|
26
26
|
/>
|
|
27
27
|
<div
|
|
28
|
-
class="varClass customContainer
|
|
28
|
+
class="varClass customContainer effect container custmInputWrapper flex rowdir"
|
|
29
29
|
data-selector-id="textBoxIcon"
|
|
30
30
|
>
|
|
31
31
|
<div
|
|
@@ -96,7 +96,7 @@ exports[`AdvancedMultiSelect rendering the options array with objects and string
|
|
|
96
96
|
"
|
|
97
97
|
/>
|
|
98
98
|
<div
|
|
99
|
-
class="varClass customContainer
|
|
99
|
+
class="varClass customContainer effect container custmInputWrapper flex rowdir"
|
|
100
100
|
data-selector-id="textBoxIcon"
|
|
101
101
|
>
|
|
102
102
|
<div
|
|
@@ -342,7 +342,7 @@ exports[`AdvancedMultiSelect rendering the options array with only objects using
|
|
|
342
342
|
"
|
|
343
343
|
/>
|
|
344
344
|
<div
|
|
345
|
-
class="varClass customContainer
|
|
345
|
+
class="varClass customContainer effect container custmInputWrapper flex rowdir"
|
|
346
346
|
data-selector-id="textBoxIcon"
|
|
347
347
|
>
|
|
348
348
|
<div
|
|
@@ -25,7 +25,7 @@ exports[`MultiSelect Should render with renderCustomSelectedValue 1`] = `
|
|
|
25
25
|
"
|
|
26
26
|
/>
|
|
27
27
|
<div
|
|
28
|
-
class="varClass customContainer
|
|
28
|
+
class="varClass customContainer effect container custmInputWrapper flex rowdir"
|
|
29
29
|
data-selector-id="textBoxIcon"
|
|
30
30
|
>
|
|
31
31
|
<div
|
|
@@ -108,7 +108,7 @@ exports[`MultiSelect rendering the defult props 1`] = `
|
|
|
108
108
|
"
|
|
109
109
|
/>
|
|
110
110
|
<div
|
|
111
|
-
class="varClass customContainer
|
|
111
|
+
class="varClass customContainer effect container custmInputWrapper flex rowdir"
|
|
112
112
|
data-selector-id="textBoxIcon"
|
|
113
113
|
>
|
|
114
114
|
<div
|
|
@@ -341,7 +341,7 @@ exports[`MultiSelect rendering with limit feature 1`] = `
|
|
|
341
341
|
"
|
|
342
342
|
/>
|
|
343
343
|
<div
|
|
344
|
-
class="varClass customContainer
|
|
344
|
+
class="varClass customContainer effect container custmInputWrapper flex rowdir"
|
|
345
345
|
data-selector-id="textBoxIcon"
|
|
346
346
|
>
|
|
347
347
|
<div
|
|
@@ -25,7 +25,7 @@ exports[`MultiSelectWithAvatar rendering the defult props 1`] = `
|
|
|
25
25
|
"
|
|
26
26
|
/>
|
|
27
27
|
<div
|
|
28
|
-
class="varClass customContainer
|
|
28
|
+
class="varClass customContainer effect container custmInputWrapper flex rowdir"
|
|
29
29
|
data-selector-id="textBoxIcon"
|
|
30
30
|
>
|
|
31
31
|
<div
|
|
@@ -41,7 +41,7 @@ exports[`Suggestions Should render with renderBeforeChildren 1`] = `
|
|
|
41
41
|
data-test-id="boxComponent"
|
|
42
42
|
>
|
|
43
43
|
<div
|
|
44
|
-
class="beforeChild basisAuto
|
|
44
|
+
class="beforeChild basisAuto shrinkOff"
|
|
45
45
|
data-id="boxComponent"
|
|
46
46
|
data-selector-id="box"
|
|
47
47
|
data-test-id="boxComponent"
|
|
@@ -38,7 +38,6 @@ export const AdvancedGroupMultiSelect_defaultProps = {
|
|
|
38
38
|
palette: 'default',
|
|
39
39
|
isLoading: false,
|
|
40
40
|
dataSelectorId: 'advancedGroupMultiSelect',
|
|
41
|
-
customProps: {},
|
|
42
41
|
allowValueFallback: true
|
|
43
42
|
};
|
|
44
43
|
export const AdvancedMultiSelect_defaultProps = {
|
|
@@ -170,6 +169,5 @@ export const SelectedOptions_defaultProps = {
|
|
|
170
169
|
export const Suggestions_defaultProps = {
|
|
171
170
|
a11y: {},
|
|
172
171
|
isVirtualizerEnabled: false,
|
|
173
|
-
customClass: {},
|
|
174
172
|
needMultiLineText: false
|
|
175
173
|
};
|
|
@@ -114,8 +114,7 @@ export const MultiSelect_propTypes = {
|
|
|
114
114
|
setAriaId: PropTypes.string,
|
|
115
115
|
ariaErrorId: PropTypes.string,
|
|
116
116
|
customProps: PropTypes.shape({
|
|
117
|
-
TextBoxIconProps: PropTypes.object
|
|
118
|
-
SuggestionsProps: PropTypes.object
|
|
117
|
+
TextBoxIconProps: PropTypes.object
|
|
119
118
|
}),
|
|
120
119
|
isFocus: PropTypes.bool,
|
|
121
120
|
allowValueFallback: PropTypes.bool,
|
|
@@ -200,11 +199,7 @@ export const Suggestions_propTypes = {
|
|
|
200
199
|
})),
|
|
201
200
|
renderBeforeChildren: PropTypes.oneOfType([PropTypes.func, PropTypes.node]),
|
|
202
201
|
limit: PropTypes.number,
|
|
203
|
-
limitReachedMessage: PropTypes.string
|
|
204
|
-
customClass: PropTypes.shape({
|
|
205
|
-
containerClass: PropTypes.string
|
|
206
|
-
}),
|
|
207
|
-
needMultiLineText: PropTypes.bool
|
|
202
|
+
limitReachedMessage: PropTypes.string
|
|
208
203
|
};
|
|
209
204
|
export const AdvancedGroupMultiSelect_propTypes = {
|
|
210
205
|
animationStyle: PropTypes.string,
|
|
@@ -278,10 +273,7 @@ export const AdvancedGroupMultiSelect_propTypes = {
|
|
|
278
273
|
dataSelectorId: PropTypes.string,
|
|
279
274
|
isFocus: PropTypes.bool,
|
|
280
275
|
allowValueFallback: PropTypes.bool,
|
|
281
|
-
limit: PropTypes.number
|
|
282
|
-
customProps: PropTypes.shape({
|
|
283
|
-
SuggestionsProps: PropTypes.object
|
|
284
|
-
})
|
|
276
|
+
limit: PropTypes.number
|
|
285
277
|
};
|
|
286
278
|
export const AdvancedMultiSelect_propTypes = { ...MultiSelect_propTypes,
|
|
287
279
|
selectedOptionDetails: PropTypes.string,
|