@zohodesk/components 1.0.0-temp-256.1 → 1.0.0-temp-257.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 +2 -19
- package/assets/Appearance/dark/mode/Component_DarkMode.module.css +0 -2
- package/assets/Appearance/dark/mode/Component_v1_DarkMode.module.css +5 -20
- package/assets/Appearance/dark/themes/blue/blue_componentsCTA_DarkModifyCategory.module.css +0 -1
- package/assets/Appearance/dark/themes/green/green_componentsCTA_DarkModifyCategory.module.css +0 -1
- package/assets/Appearance/dark/themes/orange/orange_componentsCTA_DarkModifyCategory.module.css +0 -1
- package/assets/Appearance/dark/themes/red/red_componentsCTA_DarkModifyCategory.module.css +0 -1
- package/assets/Appearance/dark/themes/yellow/yellow_componentsCTA_DarkModifyCategory.module.css +0 -1
- package/assets/Appearance/light/mode/Component_LightMode.module.css +0 -2
- package/assets/Appearance/light/mode/Component_v1_LightMode.module.css +5 -20
- package/assets/Appearance/light/themes/blue/blue_componentsCTA_LightModifyCategory.module.css +0 -1
- package/assets/Appearance/light/themes/green/green_componentsCTA_LightModifyCategory.module.css +0 -1
- package/assets/Appearance/light/themes/orange/orange_componentsCTA_LightModifyCategory.module.css +0 -1
- package/assets/Appearance/light/themes/red/red_componentsCTA_LightModifyCategory.module.css +0 -1
- package/assets/Appearance/light/themes/yellow/yellow_componentsCTA_LightModifyCategory.module.css +0 -1
- package/assets/Appearance/pureDark/mode/Component_PureDarkMode.module.css +0 -2
- package/assets/Appearance/pureDark/mode/Component_v1_PureDarkMode.module.css +5 -20
- package/assets/Appearance/pureDark/themes/blue/blue_componentsCTA_PureDarkModifyCategory.module.css +0 -1
- package/assets/Appearance/pureDark/themes/green/green_componentsCTA_PureDarkModifyCategory.module.css +0 -1
- package/assets/Appearance/pureDark/themes/orange/orange_componentsCTA_PureDarkModifyCategory.module.css +0 -1
- package/assets/Appearance/pureDark/themes/red/red_componentsCTA_PureDarkModifyCategory.module.css +0 -1
- package/assets/Appearance/pureDark/themes/yellow/yellow_componentsCTA_PureDarkModifyCategory.module.css +0 -1
- package/es/ListItem/ListItem.js +1 -2
- package/es/ListItem/ListItemWithAvatar.js +3 -9
- package/es/ListItem/ListItemWithCheckBox.js +3 -9
- package/es/ListItem/ListItemWithIcon.js +2 -8
- package/es/ListItem/ListItemWithRadio.js +3 -9
- package/es/ListItem/__tests__/ListItemWithAvatar.spec.js +0 -19
- package/es/ListItem/__tests__/ListItemWithCheckBox.spec.js +0 -19
- package/es/ListItem/__tests__/ListItemWithIcon.spec.js +0 -17
- package/es/ListItem/__tests__/ListItemWithRadio.spec.js +0 -19
- package/es/ListItem/__tests__/__snapshots__/ListItemWithAvatar.spec.js.snap +0 -108
- package/es/ListItem/__tests__/__snapshots__/ListItemWithCheckBox.spec.js.snap +0 -212
- package/es/ListItem/__tests__/__snapshots__/ListItemWithIcon.spec.js.snap +0 -108
- package/es/ListItem/__tests__/__snapshots__/ListItemWithRadio.spec.js.snap +0 -210
- package/es/ListItem/props/defaultProps.js +0 -1
- package/es/ListItem/props/propTypes.js +3 -12
- package/es/Tab/Tab.js +13 -56
- package/es/Tab/Tab.module.css +4 -72
- package/es/Tab/TabWrapper.js +2 -6
- package/es/Tab/Tabs.js +14 -60
- package/es/Tab/Tabs.module.css +15 -84
- package/es/Tab/__tests__/Tab.spec.js +0 -87
- package/es/Tab/__tests__/Tabs.spec.js +0 -11
- package/es/Tab/__tests__/__snapshots__/Tab.spec.js.snap +0 -287
- package/es/Tab/__tests__/__snapshots__/Tabs.spec.js.snap +0 -32
- package/es/Tab/props/defaultProps.js +3 -10
- package/es/Tab/props/propTypes.js +4 -26
- package/es/Tab/utils/tabConfigs.js +0 -11
- package/es/v1/Button/Button.js +163 -106
- package/es/v1/Button/css/Button_v1.module.css +28 -16
- package/es/v1/Button/css/cssJSLogic.js +18 -3
- package/es/v1/Button/props/propTypes.js +14 -3
- package/es/v1/helpers/colorHelpers/background/backgroundColor.module.css +35 -35
- package/es/v1/helpers/colorHelpers/border/borderColor.module.css +20 -20
- package/es/v1/helpers/colorHelpers/text/textColor.module.css +35 -35
- package/lib/ListItem/ListItem.js +1 -3
- package/lib/ListItem/ListItemWithAvatar.js +3 -11
- package/lib/ListItem/ListItemWithCheckBox.js +3 -11
- package/lib/ListItem/ListItemWithIcon.js +2 -8
- package/lib/ListItem/ListItemWithRadio.js +3 -11
- package/lib/ListItem/__tests__/ListItemWithAvatar.spec.js +0 -23
- package/lib/ListItem/__tests__/ListItemWithCheckBox.spec.js +0 -23
- package/lib/ListItem/__tests__/ListItemWithIcon.spec.js +0 -21
- package/lib/ListItem/__tests__/ListItemWithRadio.spec.js +0 -23
- package/lib/ListItem/__tests__/__snapshots__/ListItemWithAvatar.spec.js.snap +0 -108
- package/lib/ListItem/__tests__/__snapshots__/ListItemWithCheckBox.spec.js.snap +0 -212
- package/lib/ListItem/__tests__/__snapshots__/ListItemWithIcon.spec.js.snap +0 -108
- package/lib/ListItem/__tests__/__snapshots__/ListItemWithRadio.spec.js.snap +0 -210
- package/lib/ListItem/props/defaultProps.js +0 -1
- package/lib/ListItem/props/propTypes.js +4 -12
- package/lib/Tab/Tab.js +11 -59
- package/lib/Tab/Tab.module.css +4 -72
- package/lib/Tab/TabWrapper.js +2 -6
- package/lib/Tab/Tabs.js +11 -57
- package/lib/Tab/Tabs.module.css +15 -84
- package/lib/Tab/__tests__/Tab.spec.js +0 -88
- package/lib/Tab/__tests__/Tabs.spec.js +0 -12
- package/lib/Tab/__tests__/__snapshots__/Tab.spec.js.snap +0 -287
- package/lib/Tab/__tests__/__snapshots__/Tabs.spec.js.snap +0 -32
- package/lib/Tab/props/defaultProps.js +3 -10
- package/lib/Tab/props/propTypes.js +4 -28
- package/lib/Tab/utils/tabConfigs.js +2 -15
- package/lib/v1/Button/Button.js +182 -118
- package/lib/v1/Button/css/Button_v1.module.css +28 -16
- package/lib/v1/Button/css/cssJSLogic.js +19 -7
- package/lib/v1/Button/props/propTypes.js +14 -3
- package/lib/v1/helpers/colorHelpers/background/backgroundColor.module.css +35 -35
- package/lib/v1/helpers/colorHelpers/border/borderColor.module.css +20 -20
- package/lib/v1/helpers/colorHelpers/text/textColor.module.css +35 -35
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -2,28 +2,10 @@
|
|
|
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.6.25
|
|
6
|
-
|
|
7
|
-
- **Tab**
|
|
8
|
-
- `variant` prop supported for different rendering styles (`text`, `icon`, `iconWithText`).
|
|
9
|
-
- `iconName` and `iconSize` props supported to render an icon within the tab.
|
|
10
|
-
- `renderBefore` and `renderAfter` slots supported for custom node rendering.
|
|
11
|
-
|
|
12
|
-
- **Tabs**
|
|
13
|
-
- `renderMoreTarget` slot supported to customize the more-button icon (node or function); falls back to the default icon when not provided.
|
|
14
|
-
|
|
15
|
-
- **ListItemWithIcon**
|
|
16
|
-
- `customTitleBoxClass` prop supported to customize the title box styling.
|
|
17
|
-
|
|
18
|
-
- **ListItemWithAvatar, ListItemWithCheckBox, ListItemWithIcon, ListItemWithRadio**
|
|
19
|
-
- `renderLeftValuePlaceholderNode` prop supported to render elements before the value.
|
|
20
|
-
|
|
21
|
-
- **ListItem**
|
|
22
|
-
- `customLeftValuePlaceholder` key supported in `customClass` prop to customize the left value placeholder node container styling.
|
|
23
|
-
|
|
24
5
|
# 1.6.24
|
|
25
6
|
|
|
26
7
|
- **RippleEffect** Reordered className values to ensure customClass is always appended last to adopt CSS utility .
|
|
8
|
+
|
|
27
9
|
# 1.6.23
|
|
28
10
|
|
|
29
11
|
- Removed the empty string fallback from the `font-family` variable definition in `AppContainer`, as the font fallback behavior is now handled correctly.
|
|
@@ -53,6 +35,7 @@ Dot UI is a customizable React component library built to deliver a clean, acces
|
|
|
53
35
|
- `getSubContainerRef` prop supported to get the sub-container element reference.
|
|
54
36
|
- **Popup**
|
|
55
37
|
- Popup Unmount Memory Leak Issue Resolved .
|
|
38
|
+
|
|
56
39
|
# 1.6.18
|
|
57
40
|
|
|
58
41
|
- buttonComponentVersion temproary support given in LibraryContext , will remove once app is migrated
|
|
@@ -349,8 +349,6 @@
|
|
|
349
349
|
--zdt_tab_alpha_active_text: var(--zdt_cta_primary_text);
|
|
350
350
|
--zdt_tab_alpha_active_border: hsla(210, calc(var(--zd-saturation, 1) * 7.41%), calc(89.41% + var(--zdc_default_inverse_medium)), calc(1 + var(--zdc_alpha_low)));
|
|
351
351
|
--zdt_tab_delta_active_border: var(--zdt_cta_primary_border);
|
|
352
|
-
--zdt_tab_default_hover_bg: hsla(223, calc(var(--zd-saturation, 1) * 21.68%), calc(28.04% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
353
|
-
--zdt_tab_default_border_active: hsla(210, calc(var(--zd-saturation, 1) * 7.41%), calc(89.41% + var(--zdc_default_inverse_medium)), calc(1 + var(--zdc_alpha_low)));
|
|
354
352
|
|
|
355
353
|
/* tabs */
|
|
356
354
|
--zdt_tabs_alpha_bg: hsla(217, calc(var(--zd-saturation, 1) * 23.08%), calc(17.84% + var(--zdc_default)), calc(1 + var(--zdc_alpha_high)));
|
|
@@ -16,30 +16,15 @@
|
|
|
16
16
|
--zdt_v1_label_secondary_text: hsla(217, calc(var(--zd-saturation, 1) * 13.73%), calc(70.00% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
17
17
|
|
|
18
18
|
/* palette - universal color tokens */
|
|
19
|
-
--
|
|
20
|
-
--
|
|
21
|
-
--
|
|
22
|
-
--
|
|
23
|
-
--
|
|
24
|
-
--zdt_v1_palette_brand_hover_text: var(--zdt_cta_primary_hover_text);
|
|
25
|
-
--zdt_v1_palette_brand_hover_border: var(--zdt_cta_primary_hover_border);
|
|
26
|
-
--zdt_v1_palette_brand_light_bg: var(--zdt_cta_primary_light_bg);
|
|
27
|
-
--zdt_v1_palette_brand_light_hover_bg: var(--zdt_cta_primary_light_hover_bg);
|
|
28
|
-
--zdt_v1_palette_brand_light_border: var(--zdt_cta_primary_light_border);
|
|
29
|
-
--zdt_v1_palette_grey_light_bg: hsla(217, calc(var(--zd-saturation, 1) * 23.23%), calc(19.41% + var(--zdc_darker_lowest)), calc(1 + var(--zdc_alpha_high)));
|
|
30
|
-
--zdt_v1_palette_grey_light_border: hsla(218, calc(var(--zd-saturation, 1) * 23.08%), calc(22.94% + var(--zdc_default_inverse_medium)), calc(1 + var(--zdc_alpha_low)));
|
|
31
|
-
--zdt_v1_palette_grey_light_hover_bg: hsla(218, calc(var(--zd-saturation, 1) * 23.08%), calc(22.94% + var(--zdc_darker_lowest)), calc(1 + var(--zdc_alpha_high)));
|
|
19
|
+
--zdt_v1_palette_brand_border: var(--zdt_cta_alpha_border);
|
|
20
|
+
--zdt_v1_palette_brand_hover_text: var(--zdt_cta_alpha_hover_text);
|
|
21
|
+
--zdt_v1_palette_brand_hover_border: var(--zdt_cta_alpha_hover_border);
|
|
22
|
+
--zdt_v1_palette_brand_light_border: var(--zdt_cta_secondary_light_border);
|
|
23
|
+
--zdt_v1_palette_grey_light_hover_bg: var(--zdt_cta_grey_20_bg);
|
|
32
24
|
--zdt_v1_palette_grey_bg: hsla(217, calc(var(--zd-saturation, 1) * 13.73%), calc(70.00% + var(--zdc_darker_low)), calc(1 + var(--zdc_alpha_low)));
|
|
33
|
-
--zdt_v1_palette_grey_text: hsla(217, calc(var(--zd-saturation, 1) * 13.73%), calc(70.00% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
34
|
-
--zdt_v1_palette_grey_border: hsla(217, calc(var(--zd-saturation, 1) * 13.73%), calc(70.00% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
35
25
|
--zdt_v1_palette_grey_hover_bg: hsla(217, calc(var(--zd-saturation, 1) * 7.76%), calc(54.51% + var(--zdc_darker_low)), calc(1 + var(--zdc_alpha_low)));
|
|
36
26
|
--zdt_v1_palette_grey_hover_text: hsla(217, calc(var(--zd-saturation, 1) * 13.73%), calc(70.00% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
37
|
-
--zdt_v1_palette_grey_hover_border: hsla(217, calc(var(--zd-saturation, 1) * 7.76%), calc(54.51% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
38
|
-
--zdt_v1_palette_blue_bg: hsla(212, calc(var(--zd-saturation, 1) * 100.00%), calc(63.92% + var(--zdc_darker_low)), calc(1 + var(--zdc_alpha_low)));
|
|
39
|
-
--zdt_v1_palette_blue_text: hsla(212, calc(var(--zd-saturation, 1) * 100.00%), calc(63.92% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
40
|
-
--zdt_v1_palette_blue_border: hsla(212, calc(var(--zd-saturation, 1) * 100.00%), calc(63.92% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
41
27
|
--zdt_v1_palette_blue_hover_bg: hsla(213, calc(var(--zd-saturation, 1) * 85.45%), calc(43.14% + var(--zdc_darker_low)), calc(1 + var(--zdc_alpha_low)));
|
|
42
|
-
--zdt_v1_palette_blue_hover_text: hsla(212, calc(var(--zd-saturation, 1) * 100.00%), calc(71.57% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
43
28
|
--zdt_v1_palette_blue_hover_border: hsla(213, calc(var(--zd-saturation, 1) * 85.45%), calc(43.14% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
44
29
|
--zdt_v1_palette_blue_light_bg: hsla(213, calc(var(--zd-saturation, 1) * 27.27%), calc(23.73% + var(--zdc_default_inverse_lower)), calc(1 + var(--zdc_alpha_low)));
|
|
45
30
|
--zdt_v1_palette_blue_light_border: hsla(208, calc(var(--zd-saturation, 1) * 85.19%), calc(73.53% + var(--zdc_default_inverse_medium)), calc(1 + var(--zdc_alpha_low)));
|
|
@@ -11,5 +11,4 @@
|
|
|
11
11
|
--zdtm_cta_primary_bg_default: hsla(212, 100.00%, calc(63.92% + var(--zdc_default)), calc(1 + var(--zdc_alpha_high)));
|
|
12
12
|
--zdtm_cta_grey_40_bg_default_inverse_low: hsla(216, 22.98%, calc(31.57% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
13
13
|
--zdtm_cta_primary_hover_bg_default: hsla(213, 85.45%, calc(43.14% + var(--zdc_default)), calc(1 + var(--zdc_alpha_high)));
|
|
14
|
-
--zdtm_cta_grey_20_bg_default_inverse_low: hsla(217, 22.81%, calc(11.18% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
15
14
|
}
|
package/assets/Appearance/dark/themes/green/green_componentsCTA_DarkModifyCategory.module.css
CHANGED
|
@@ -11,5 +11,4 @@
|
|
|
11
11
|
--zdtm_cta_primary_bg_default: hsla(133, 40.00%, calc(45.10% + var(--zdc_default)), calc(1 + var(--zdc_alpha_high)));
|
|
12
12
|
--zdtm_cta_grey_40_bg_default_inverse_low: hsla(216, 22.98%, calc(31.57% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
13
13
|
--zdtm_cta_primary_hover_bg_default: hsla(128, 79.71%, calc(27.06% + var(--zdc_default)), calc(1 + var(--zdc_alpha_high)));
|
|
14
|
-
--zdtm_cta_grey_20_bg_default_inverse_low: hsla(217, 22.81%, calc(11.18% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
15
14
|
}
|
package/assets/Appearance/dark/themes/orange/orange_componentsCTA_DarkModifyCategory.module.css
CHANGED
|
@@ -11,5 +11,4 @@
|
|
|
11
11
|
--zdtm_cta_primary_bg_default: hsla(26, 100.00%, calc(56.08% + var(--zdc_default)), calc(1 + var(--zdc_alpha_high)));
|
|
12
12
|
--zdtm_cta_grey_40_bg_default_inverse_low: hsla(216, 22.98%, calc(31.57% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
13
13
|
--zdtm_cta_primary_hover_bg_default: hsla(29, 100.00%, calc(32.94% + var(--zdc_default)), calc(1 + var(--zdc_alpha_high)));
|
|
14
|
-
--zdtm_cta_grey_20_bg_default_inverse_low: hsla(217, 22.81%, calc(11.18% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
15
14
|
}
|
|
@@ -11,5 +11,4 @@
|
|
|
11
11
|
--zdtm_cta_primary_bg_default: hsla(0, 77.78%, calc(61.18% + var(--zdc_default)), calc(1 + var(--zdc_alpha_high)));
|
|
12
12
|
--zdtm_cta_grey_40_bg_default_inverse_low: hsla(216, 22.98%, calc(31.57% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
13
13
|
--zdtm_cta_primary_hover_bg_default: hsla(0, 81.62%, calc(36.27% + var(--zdc_default)), calc(1 + var(--zdc_alpha_high)));
|
|
14
|
-
--zdtm_cta_grey_20_bg_default_inverse_low: hsla(217, 22.81%, calc(11.18% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
15
14
|
}
|
package/assets/Appearance/dark/themes/yellow/yellow_componentsCTA_DarkModifyCategory.module.css
CHANGED
|
@@ -11,5 +11,4 @@
|
|
|
11
11
|
--zdtm_cta_primary_bg_default: hsla(37, 66.94%, calc(52.55% + var(--zdc_default)), calc(1 + var(--zdc_alpha_high)));
|
|
12
12
|
--zdtm_cta_grey_40_bg_default_inverse_low: hsla(216, 22.98%, calc(31.57% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
13
13
|
--zdtm_cta_primary_hover_bg_default: hsla(39, 90.18%, calc(31.96% + var(--zdc_default)), calc(1 + var(--zdc_alpha_high)));
|
|
14
|
-
--zdtm_cta_grey_20_bg_default_inverse_low: hsla(217, 22.81%, calc(11.18% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
15
14
|
}
|
|
@@ -349,8 +349,6 @@
|
|
|
349
349
|
--zdt_tab_alpha_active_text: var(--zdt_cta_primary_text);
|
|
350
350
|
--zdt_tab_alpha_active_border: hsla(0, calc(var(--zd-saturation, 1) * 0.00%), calc(0.00% + var(--zdc_default_inverse_medium)), calc(1 + var(--zdc_alpha_low)));
|
|
351
351
|
--zdt_tab_delta_active_border: var(--zdt_cta_primary_border);
|
|
352
|
-
--zdt_tab_default_hover_bg: var(--zdtm_cta_grey_20_bg_default_inverse_low);
|
|
353
|
-
--zdt_tab_default_border_active: hsla(0, calc(var(--zd-saturation, 1) * 0.00%), calc(0.00% + var(--zdc_default_inverse_medium)), calc(1 + var(--zdc_alpha_low)));
|
|
354
352
|
|
|
355
353
|
/* tabs */
|
|
356
354
|
--zdt_tabs_alpha_bg: hsla(0, calc(var(--zd-saturation, 1) * 0.00%), calc(100.00% + var(--zdc_default)), calc(1 + var(--zdc_alpha_high)));
|
|
@@ -16,30 +16,15 @@
|
|
|
16
16
|
--zdt_v1_label_secondary_text: hsla(220, calc(var(--zd-saturation, 1) * 10.45%), calc(39.41% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
17
17
|
|
|
18
18
|
/* palette - universal color tokens */
|
|
19
|
-
--
|
|
20
|
-
--
|
|
21
|
-
--
|
|
22
|
-
--
|
|
23
|
-
--
|
|
24
|
-
--zdt_v1_palette_brand_hover_text: var(--zdt_cta_primary_hover_text);
|
|
25
|
-
--zdt_v1_palette_brand_hover_border: var(--zdt_cta_primary_hover_border);
|
|
26
|
-
--zdt_v1_palette_brand_light_bg: var(--zdt_cta_primary_light_bg);
|
|
27
|
-
--zdt_v1_palette_brand_light_hover_bg: var(--zdt_cta_primary_light_hover_bg);
|
|
28
|
-
--zdt_v1_palette_brand_light_border: var(--zdt_cta_primary_light_border);
|
|
29
|
-
--zdt_v1_palette_grey_light_bg: hsla(216, calc(var(--zd-saturation, 1) * 38.46%), calc(97.45% + var(--zdc_darker_lowest)), calc(1 + var(--zdc_alpha_high)));
|
|
30
|
-
--zdt_v1_palette_grey_light_border: hsla(210, calc(var(--zd-saturation, 1) * 33.33%), calc(94.12% + var(--zdc_default_inverse_medium)), calc(1 + var(--zdc_alpha_low)));
|
|
31
|
-
--zdt_v1_palette_grey_light_hover_bg: hsla(210, calc(var(--zd-saturation, 1) * 33.33%), calc(94.12% + var(--zdc_darker_lowest)), calc(1 + var(--zdc_alpha_high)));
|
|
19
|
+
--zdt_v1_palette_brand_border: var(--zdt_cta_alpha_border);
|
|
20
|
+
--zdt_v1_palette_brand_hover_text: var(--zdt_cta_alpha_hover_text);
|
|
21
|
+
--zdt_v1_palette_brand_hover_border: var(--zdt_cta_alpha_hover_border);
|
|
22
|
+
--zdt_v1_palette_brand_light_border: var(--zdt_cta_secondary_light_border);
|
|
23
|
+
--zdt_v1_palette_grey_light_hover_bg: var(--zdt_cta_grey_20_bg);
|
|
32
24
|
--zdt_v1_palette_grey_bg: hsla(220, calc(var(--zd-saturation, 1) * 10.45%), calc(39.41% + var(--zdc_darker_low)), calc(1 + var(--zdc_alpha_low)));
|
|
33
|
-
--zdt_v1_palette_grey_text: hsla(220, calc(var(--zd-saturation, 1) * 10.45%), calc(39.41% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
34
|
-
--zdt_v1_palette_grey_border: hsla(220, calc(var(--zd-saturation, 1) * 10.45%), calc(39.41% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
35
25
|
--zdt_v1_palette_grey_hover_bg: hsla(218, calc(var(--zd-saturation, 1) * 9.76%), calc(51.76% + var(--zdc_darker_low)), calc(1 + var(--zdc_alpha_low)));
|
|
36
26
|
--zdt_v1_palette_grey_hover_text: hsla(0, calc(var(--zd-saturation, 1) * 0.00%), calc(0.00% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
37
|
-
--zdt_v1_palette_grey_hover_border: hsla(218, calc(var(--zd-saturation, 1) * 9.76%), calc(51.76% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
38
|
-
--zdt_v1_palette_blue_bg: hsla(212, calc(var(--zd-saturation, 1) * 91.84%), calc(48.04% + var(--zdc_darker_low)), calc(1 + var(--zdc_alpha_low)));
|
|
39
|
-
--zdt_v1_palette_blue_text: hsla(212, calc(var(--zd-saturation, 1) * 91.84%), calc(48.04% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
40
|
-
--zdt_v1_palette_blue_border: hsla(212, calc(var(--zd-saturation, 1) * 91.84%), calc(48.04% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
41
27
|
--zdt_v1_palette_blue_hover_bg: hsla(213, calc(var(--zd-saturation, 1) * 100.00%), calc(36.08% + var(--zdc_darker_low)), calc(1 + var(--zdc_alpha_low)));
|
|
42
|
-
--zdt_v1_palette_blue_hover_text: hsla(213, calc(var(--zd-saturation, 1) * 100.00%), calc(36.08% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
43
28
|
--zdt_v1_palette_blue_hover_border: hsla(213, calc(var(--zd-saturation, 1) * 100.00%), calc(36.08% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
44
29
|
--zdt_v1_palette_blue_light_bg: hsla(212, calc(var(--zd-saturation, 1) * 86.67%), calc(97.06% + var(--zdc_default_inverse_lower)), calc(1 + var(--zdc_alpha_low)));
|
|
45
30
|
--zdt_v1_palette_blue_light_border: hsla(208, calc(var(--zd-saturation, 1) * 85.19%), calc(73.53% + var(--zdc_default_inverse_medium)), calc(1 + var(--zdc_alpha_low)));
|
package/assets/Appearance/light/themes/blue/blue_componentsCTA_LightModifyCategory.module.css
CHANGED
|
@@ -11,5 +11,4 @@
|
|
|
11
11
|
--zdtm_cta_primary_bg_default: hsla(212, 91.84%, calc(48.04% + var(--zdc_default)), calc(1 + var(--zdc_alpha_high)));
|
|
12
12
|
--zdtm_cta_grey_40_bg_default_inverse_low: hsla(231, 22.22%, calc(82.35% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
13
13
|
--zdtm_cta_primary_hover_bg_default: hsla(213, 100.00%, calc(36.08% + var(--zdc_default)), calc(1 + var(--zdc_alpha_high)));
|
|
14
|
-
--zdtm_cta_grey_20_bg_default_inverse_low: hsla(217, 37.14%, calc(93.14% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
15
14
|
}
|
package/assets/Appearance/light/themes/green/green_componentsCTA_LightModifyCategory.module.css
CHANGED
|
@@ -11,5 +11,4 @@
|
|
|
11
11
|
--zdtm_cta_primary_bg_default: hsla(133, 63.29%, calc(40.59% + var(--zdc_default)), calc(1 + var(--zdc_alpha_high)));
|
|
12
12
|
--zdtm_cta_grey_40_bg_default_inverse_low: hsla(135, 7.41%, calc(78.82% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
13
13
|
--zdtm_cta_primary_hover_bg_default: hsla(134, 78.63%, calc(25.69% + var(--zdc_default)), calc(1 + var(--zdc_alpha_high)));
|
|
14
|
-
--zdtm_cta_grey_20_bg_default_inverse_low: hsla(180, 11.11%, calc(92.94% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
15
14
|
}
|
package/assets/Appearance/light/themes/orange/orange_componentsCTA_LightModifyCategory.module.css
CHANGED
|
@@ -11,5 +11,4 @@
|
|
|
11
11
|
--zdtm_cta_primary_bg_default: hsla(28, 81.75%, calc(49.41% + var(--zdc_default)), calc(1 + var(--zdc_alpha_high)));
|
|
12
12
|
--zdtm_cta_grey_40_bg_default_inverse_low: hsla(27, 10.68%, calc(79.80% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
13
13
|
--zdtm_cta_primary_hover_bg_default: hsla(30, 100.00%, calc(34.90% + var(--zdc_default)), calc(1 + var(--zdc_alpha_high)));
|
|
14
|
-
--zdtm_cta_grey_20_bg_default_inverse_low: hsla(30, 13.33%, calc(94.12% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
15
14
|
}
|
|
@@ -11,5 +11,4 @@
|
|
|
11
11
|
--zdtm_cta_primary_bg_default: hsla(0, 71.91%, calc(53.92% + var(--zdc_default)), calc(1 + var(--zdc_alpha_high)));
|
|
12
12
|
--zdtm_cta_grey_40_bg_default_inverse_low: hsla(343, 4.76%, calc(71.18% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
13
13
|
--zdtm_cta_primary_hover_bg_default: hsla(1, 75.38%, calc(38.24% + var(--zdc_default)), calc(1 + var(--zdc_alpha_high)));
|
|
14
|
-
--zdtm_cta_grey_20_bg_default_inverse_low: hsla(330, 5.56%, calc(92.94% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
15
14
|
}
|
package/assets/Appearance/light/themes/yellow/yellow_componentsCTA_LightModifyCategory.module.css
CHANGED
|
@@ -11,5 +11,4 @@
|
|
|
11
11
|
--zdtm_cta_primary_bg_default: hsla(46, 81.07%, calc(52.35% + var(--zdc_default)), calc(1 + var(--zdc_alpha_high)));
|
|
12
12
|
--zdtm_cta_grey_40_bg_default_inverse_low: hsla(45, 28.17%, calc(72.16% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
13
13
|
--zdtm_cta_primary_hover_bg_default: hsla(48, 100.00%, calc(35.49% + var(--zdc_default)), calc(1 + var(--zdc_alpha_high)));
|
|
14
|
-
--zdtm_cta_grey_20_bg_default_inverse_low: hsla(60, 8.57%, calc(93.14% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
15
14
|
}
|
|
@@ -349,8 +349,6 @@
|
|
|
349
349
|
--zdt_tab_alpha_active_text: var(--zdt_cta_primary_text);
|
|
350
350
|
--zdt_tab_alpha_active_border: hsla(210, calc(var(--zd-saturation, 1) * 7.41%), calc(89.41% + var(--zdc_default_inverse_medium)), calc(1 + var(--zdc_alpha_low)));
|
|
351
351
|
--zdt_tab_delta_active_border: var(--zdt_cta_primary_border);
|
|
352
|
-
--zdt_tab_default_hover_bg: hsla(0, calc(var(--zd-saturation, 1) * 0.00%), calc(21.96% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
353
|
-
--zdt_tab_default_border_active: hsla(210, calc(var(--zd-saturation, 1) * 7.41%), calc(89.41% + var(--zdc_default_inverse_medium)), calc(1 + var(--zdc_alpha_low)));
|
|
354
352
|
|
|
355
353
|
/* tabs */
|
|
356
354
|
--zdt_tabs_alpha_bg: hsla(0, calc(var(--zd-saturation, 1) * 0.00%), calc(12.94% + var(--zdc_default)), calc(1 + var(--zdc_alpha_high)));
|
|
@@ -16,30 +16,15 @@
|
|
|
16
16
|
--zdt_v1_label_secondary_text: hsla(0, calc(var(--zd-saturation, 1) * 0.00%), calc(60.00% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
17
17
|
|
|
18
18
|
/* palette - universal color tokens */
|
|
19
|
-
--
|
|
20
|
-
--
|
|
21
|
-
--
|
|
22
|
-
--
|
|
23
|
-
--
|
|
24
|
-
--zdt_v1_palette_brand_hover_text: var(--zdt_cta_primary_hover_text);
|
|
25
|
-
--zdt_v1_palette_brand_hover_border: var(--zdt_cta_primary_hover_border);
|
|
26
|
-
--zdt_v1_palette_brand_light_bg: var(--zdt_cta_primary_light_bg);
|
|
27
|
-
--zdt_v1_palette_brand_light_hover_bg: var(--zdt_cta_primary_light_hover_bg);
|
|
28
|
-
--zdt_v1_palette_brand_light_border: var(--zdt_cta_primary_light_border);
|
|
29
|
-
--zdt_v1_palette_grey_light_bg: hsla(0, calc(var(--zd-saturation, 1) * 0.00%), calc(14.90% + var(--zdc_darker_lowest)), calc(1 + var(--zdc_alpha_high)));
|
|
30
|
-
--zdt_v1_palette_grey_light_border: hsla(0, calc(var(--zd-saturation, 1) * 2.33%), calc(8.43% + var(--zdc_default_inverse_medium)), calc(1 + var(--zdc_alpha_low)));
|
|
31
|
-
--zdt_v1_palette_grey_light_hover_bg: hsla(0, calc(var(--zd-saturation, 1) * 2.33%), calc(8.43% + var(--zdc_darker_lowest)), calc(1 + var(--zdc_alpha_high)));
|
|
19
|
+
--zdt_v1_palette_brand_border: var(--zdt_cta_alpha_border);
|
|
20
|
+
--zdt_v1_palette_brand_hover_text: var(--zdt_cta_alpha_hover_text);
|
|
21
|
+
--zdt_v1_palette_brand_hover_border: var(--zdt_cta_alpha_hover_border);
|
|
22
|
+
--zdt_v1_palette_brand_light_border: var(--zdt_cta_secondary_light_border);
|
|
23
|
+
--zdt_v1_palette_grey_light_hover_bg: var(--zdt_cta_grey_20_bg);
|
|
32
24
|
--zdt_v1_palette_grey_bg: hsla(0, calc(var(--zd-saturation, 1) * 0.00%), calc(60.00% + var(--zdc_darker_low)), calc(1 + var(--zdc_alpha_low)));
|
|
33
|
-
--zdt_v1_palette_grey_text: hsla(0, calc(var(--zd-saturation, 1) * 0.00%), calc(60.00% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
34
|
-
--zdt_v1_palette_grey_border: hsla(0, calc(var(--zd-saturation, 1) * 0.00%), calc(60.00% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
35
25
|
--zdt_v1_palette_grey_hover_bg: hsla(217, calc(var(--zd-saturation, 1) * 7.76%), calc(54.51% + var(--zdc_darker_low)), calc(1 + var(--zdc_alpha_low)));
|
|
36
26
|
--zdt_v1_palette_grey_hover_text: hsla(0, calc(var(--zd-saturation, 1) * 0.00%), calc(60.00% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
37
|
-
--zdt_v1_palette_grey_hover_border: hsla(217, calc(var(--zd-saturation, 1) * 7.76%), calc(54.51% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
38
|
-
--zdt_v1_palette_blue_bg: hsla(212, calc(var(--zd-saturation, 1) * 100.00%), calc(63.92% + var(--zdc_darker_low)), calc(1 + var(--zdc_alpha_low)));
|
|
39
|
-
--zdt_v1_palette_blue_text: hsla(212, calc(var(--zd-saturation, 1) * 100.00%), calc(63.92% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
40
|
-
--zdt_v1_palette_blue_border: hsla(212, calc(var(--zd-saturation, 1) * 100.00%), calc(63.92% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
41
27
|
--zdt_v1_palette_blue_hover_bg: hsla(213, calc(var(--zd-saturation, 1) * 85.45%), calc(43.14% + var(--zdc_darker_low)), calc(1 + var(--zdc_alpha_low)));
|
|
42
|
-
--zdt_v1_palette_blue_hover_text: hsla(212, calc(var(--zd-saturation, 1) * 100.00%), calc(71.57% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
43
28
|
--zdt_v1_palette_blue_hover_border: hsla(213, calc(var(--zd-saturation, 1) * 85.45%), calc(43.14% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
44
29
|
--zdt_v1_palette_blue_light_bg: hsla(213, calc(var(--zd-saturation, 1) * 19.57%), calc(18.04% + var(--zdc_default_inverse_lower)), calc(1 + var(--zdc_alpha_low)));
|
|
45
30
|
--zdt_v1_palette_blue_light_border: hsla(208, calc(var(--zd-saturation, 1) * 85.19%), calc(73.53% + var(--zdc_default_inverse_medium)), calc(1 + var(--zdc_alpha_low)));
|
package/assets/Appearance/pureDark/themes/blue/blue_componentsCTA_PureDarkModifyCategory.module.css
CHANGED
|
@@ -11,5 +11,4 @@
|
|
|
11
11
|
--zdtm_cta_primary_bg_default: hsla(212, 100.00%, calc(63.92% + var(--zdc_default)), calc(1 + var(--zdc_alpha_high)));
|
|
12
12
|
--zdtm_cta_grey_40_bg_default_inverse_low: hsla(0, 0.00%, calc(34.51% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
13
13
|
--zdtm_cta_primary_hover_bg_default: hsla(213, 85.45%, calc(43.14% + var(--zdc_default)), calc(1 + var(--zdc_alpha_high)));
|
|
14
|
-
--zdtm_cta_grey_20_bg_default_inverse_low: hsla(217, 22.81%, calc(11.18% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
15
14
|
}
|
|
@@ -11,5 +11,4 @@
|
|
|
11
11
|
--zdtm_cta_primary_bg_default: hsla(133, 40.00%, calc(45.10% + var(--zdc_default)), calc(1 + var(--zdc_alpha_high)));
|
|
12
12
|
--zdtm_cta_grey_40_bg_default_inverse_low: hsla(0, 0.00%, calc(34.51% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
13
13
|
--zdtm_cta_primary_hover_bg_default: hsla(128, 79.71%, calc(27.06% + var(--zdc_default)), calc(1 + var(--zdc_alpha_high)));
|
|
14
|
-
--zdtm_cta_grey_20_bg_default_inverse_low: hsla(217, 22.81%, calc(11.18% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
15
14
|
}
|
|
@@ -11,5 +11,4 @@
|
|
|
11
11
|
--zdtm_cta_primary_bg_default: hsla(26, 100.00%, calc(56.08% + var(--zdc_default)), calc(1 + var(--zdc_alpha_high)));
|
|
12
12
|
--zdtm_cta_grey_40_bg_default_inverse_low: hsla(0, 0.00%, calc(34.51% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
13
13
|
--zdtm_cta_primary_hover_bg_default: hsla(29, 100.00%, calc(32.94% + var(--zdc_default)), calc(1 + var(--zdc_alpha_high)));
|
|
14
|
-
--zdtm_cta_grey_20_bg_default_inverse_low: hsla(217, 22.81%, calc(11.18% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
15
14
|
}
|
package/assets/Appearance/pureDark/themes/red/red_componentsCTA_PureDarkModifyCategory.module.css
CHANGED
|
@@ -11,5 +11,4 @@
|
|
|
11
11
|
--zdtm_cta_primary_bg_default: hsla(0, 77.78%, calc(61.18% + var(--zdc_default)), calc(1 + var(--zdc_alpha_high)));
|
|
12
12
|
--zdtm_cta_grey_40_bg_default_inverse_low: hsla(0, 0.00%, calc(34.51% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
13
13
|
--zdtm_cta_primary_hover_bg_default: hsla(0, 81.62%, calc(36.27% + var(--zdc_default)), calc(1 + var(--zdc_alpha_high)));
|
|
14
|
-
--zdtm_cta_grey_20_bg_default_inverse_low: hsla(217, 22.81%, calc(11.18% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
15
14
|
}
|
|
@@ -11,5 +11,4 @@
|
|
|
11
11
|
--zdtm_cta_primary_bg_default: hsla(37, 66.94%, calc(52.55% + var(--zdc_default)), calc(1 + var(--zdc_alpha_high)));
|
|
12
12
|
--zdtm_cta_grey_40_bg_default_inverse_low: hsla(0, 0.00%, calc(34.51% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
13
13
|
--zdtm_cta_primary_hover_bg_default: hsla(39, 90.18%, calc(31.96% + var(--zdc_default)), calc(1 + var(--zdc_alpha_high)));
|
|
14
|
-
--zdtm_cta_grey_20_bg_default_inverse_low: hsla(217, 22.81%, calc(11.18% + var(--zdc_default_inverse_low)), calc(1 + var(--zdc_alpha_low)));
|
|
15
14
|
}
|
package/es/ListItem/ListItem.js
CHANGED
|
@@ -88,7 +88,6 @@ export default class ListItem extends React.Component {
|
|
|
88
88
|
let {
|
|
89
89
|
customListItem = '',
|
|
90
90
|
customTickIcon = '',
|
|
91
|
-
customLeftValuePlaceholder = '',
|
|
92
91
|
customValueRightPlaceholder = '',
|
|
93
92
|
customTitleBox = ''
|
|
94
93
|
} = customClass;
|
|
@@ -131,7 +130,7 @@ export default class ListItem extends React.Component {
|
|
|
131
130
|
className: `${style.titleBox} ${lhsAlignContent !== 'start' ? `${style[`alignLhsBox_${lhsAlignContent}`]}` : ''} ${customTitleBox}`
|
|
132
131
|
}, isRenderable(renderBeforeChildren) ? /*#__PURE__*/React.createElement(Box, {
|
|
133
132
|
adjust: true,
|
|
134
|
-
className:
|
|
133
|
+
className: style.beforeChild
|
|
135
134
|
}, renderNode(renderBeforeChildren)) : null, value ? /*#__PURE__*/React.createElement(Box, {
|
|
136
135
|
shrink: true,
|
|
137
136
|
adjust: true,
|
|
@@ -83,7 +83,6 @@ export default class ListItemWithAvatar extends React.PureComponent {
|
|
|
83
83
|
needMultiLineText,
|
|
84
84
|
secondaryValue,
|
|
85
85
|
renderValueRightPlaceholderNode,
|
|
86
|
-
renderLeftValuePlaceholderNode,
|
|
87
86
|
lhsAlignContent
|
|
88
87
|
} = this.props;
|
|
89
88
|
let {
|
|
@@ -96,9 +95,7 @@ export default class ListItemWithAvatar extends React.PureComponent {
|
|
|
96
95
|
customListItem = '',
|
|
97
96
|
customAvatar = '',
|
|
98
97
|
customAvatarTeam = '',
|
|
99
|
-
customValueRightPlaceholder = ''
|
|
100
|
-
customLeftValuePlaceholder = '',
|
|
101
|
-
customTitleBox = ''
|
|
98
|
+
customValueRightPlaceholder = ''
|
|
102
99
|
} = customClass;
|
|
103
100
|
const listA11y = {
|
|
104
101
|
ariaHidden: true,
|
|
@@ -160,11 +157,8 @@ export default class ListItemWithAvatar extends React.PureComponent {
|
|
|
160
157
|
flexible: true,
|
|
161
158
|
className: `${style.leftBox} ${style.selfAlign_center}`
|
|
162
159
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
163
|
-
className:
|
|
164
|
-
},
|
|
165
|
-
adjust: true,
|
|
166
|
-
className: `${customLeftValuePlaceholder}`
|
|
167
|
-
}, renderNode(renderLeftValuePlaceholderNode)) : null, value ? /*#__PURE__*/React.createElement(Box, {
|
|
160
|
+
className: style.titleBox
|
|
161
|
+
}, value ? /*#__PURE__*/React.createElement(Box, {
|
|
168
162
|
shrink: true,
|
|
169
163
|
adjust: true,
|
|
170
164
|
"data-title": isDisabled ? null : title,
|
|
@@ -67,7 +67,6 @@ export default class ListItemWithCheckBox extends React.Component {
|
|
|
67
67
|
needMultiLineText,
|
|
68
68
|
secondaryValue,
|
|
69
69
|
renderValueRightPlaceholderNode,
|
|
70
|
-
renderLeftValuePlaceholderNode,
|
|
71
70
|
lhsAlignContent,
|
|
72
71
|
lhsJustifyContent
|
|
73
72
|
} = this.props;
|
|
@@ -83,9 +82,7 @@ export default class ListItemWithCheckBox extends React.Component {
|
|
|
83
82
|
customListItem = '',
|
|
84
83
|
customCheckBox = '',
|
|
85
84
|
customLabel = '',
|
|
86
|
-
customValueRightPlaceholder = ''
|
|
87
|
-
customLeftValuePlaceholder = '',
|
|
88
|
-
customTitleBox = ''
|
|
85
|
+
customValueRightPlaceholder = ''
|
|
89
86
|
} = customClass;
|
|
90
87
|
const iconBoxDataId = `${dataId ? dataId : value}_checkBox`;
|
|
91
88
|
return /*#__PURE__*/React.createElement(ListContainer, _extends({
|
|
@@ -128,11 +125,8 @@ export default class ListItemWithCheckBox extends React.Component {
|
|
|
128
125
|
flexible: true,
|
|
129
126
|
className: `${style.leftBox} ${style.selfAlign_center}`
|
|
130
127
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
131
|
-
className:
|
|
132
|
-
},
|
|
133
|
-
adjust: true,
|
|
134
|
-
className: `${customLeftValuePlaceholder}`
|
|
135
|
-
}, renderNode(renderLeftValuePlaceholderNode)) : null, value ? /*#__PURE__*/React.createElement(Box, {
|
|
128
|
+
className: style.titleBox
|
|
129
|
+
}, value ? /*#__PURE__*/React.createElement(Box, {
|
|
136
130
|
shrink: true,
|
|
137
131
|
adjust: true,
|
|
138
132
|
"data-title": isDisabled ? null : title,
|
|
@@ -76,13 +76,10 @@ export default class ListItemWithIcon extends React.Component {
|
|
|
76
76
|
a11y,
|
|
77
77
|
customClass,
|
|
78
78
|
customValueRightPlaceholderClass,
|
|
79
|
-
customLeftValuePlaceholderClass,
|
|
80
|
-
customTitleBoxClass,
|
|
81
79
|
customProps,
|
|
82
80
|
needMultiLineText,
|
|
83
81
|
secondaryValue,
|
|
84
82
|
renderValueRightPlaceholderNode,
|
|
85
|
-
renderLeftValuePlaceholderNode,
|
|
86
83
|
lhsAlignContent,
|
|
87
84
|
lhsJustifyContent
|
|
88
85
|
} = this.props;
|
|
@@ -142,11 +139,8 @@ export default class ListItemWithIcon extends React.Component {
|
|
|
142
139
|
flexible: true,
|
|
143
140
|
className: `${style.leftBox} ${style.selfAlign_center}`
|
|
144
141
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
145
|
-
className:
|
|
146
|
-
},
|
|
147
|
-
adjust: true,
|
|
148
|
-
className: `${customLeftValuePlaceholderClass}`
|
|
149
|
-
}, renderNode(renderLeftValuePlaceholderNode)) : null, value ? /*#__PURE__*/React.createElement(Box, {
|
|
142
|
+
className: style.titleBox
|
|
143
|
+
}, value ? /*#__PURE__*/React.createElement(Box, {
|
|
150
144
|
shrink: true,
|
|
151
145
|
adjust: true,
|
|
152
146
|
className: needMultiLineText ? style.multiLineValue : style.value,
|
|
@@ -68,7 +68,6 @@ export default class ListItemWithRadio extends React.Component {
|
|
|
68
68
|
needMultiLineText,
|
|
69
69
|
secondaryValue,
|
|
70
70
|
renderValueRightPlaceholderNode,
|
|
71
|
-
renderLeftValuePlaceholderNode,
|
|
72
71
|
lhsAlignContent,
|
|
73
72
|
lhsJustifyContent
|
|
74
73
|
} = this.props;
|
|
@@ -84,9 +83,7 @@ export default class ListItemWithRadio extends React.Component {
|
|
|
84
83
|
customListItem = '',
|
|
85
84
|
customRadio = '',
|
|
86
85
|
customRadioWrap = '',
|
|
87
|
-
customValueRightPlaceholder = ''
|
|
88
|
-
customLeftValuePlaceholder = '',
|
|
89
|
-
customTitleBox = ''
|
|
86
|
+
customValueRightPlaceholder = ''
|
|
90
87
|
} = customClass;
|
|
91
88
|
const iconBoxDataId = `${dataId}_radio`;
|
|
92
89
|
return /*#__PURE__*/React.createElement(ListContainer, _extends({
|
|
@@ -130,11 +127,8 @@ export default class ListItemWithRadio extends React.Component {
|
|
|
130
127
|
flexible: true,
|
|
131
128
|
className: `${style.leftBox} ${style.selfAlign_center}`
|
|
132
129
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
133
|
-
className:
|
|
134
|
-
},
|
|
135
|
-
adjust: true,
|
|
136
|
-
className: `${customLeftValuePlaceholder}`
|
|
137
|
-
}, renderNode(renderLeftValuePlaceholderNode)) : null, value ? /*#__PURE__*/React.createElement(Box, {
|
|
130
|
+
className: style.titleBox
|
|
131
|
+
}, value ? /*#__PURE__*/React.createElement(Box, {
|
|
138
132
|
shrink: true,
|
|
139
133
|
adjust: true,
|
|
140
134
|
"data-title": disableTitle ? null : title,
|
|
@@ -62,23 +62,4 @@ describe('ListItemWithAvatar', () => {
|
|
|
62
62
|
}));
|
|
63
63
|
expect(asFragment()).toMatchSnapshot();
|
|
64
64
|
});
|
|
65
|
-
test('ListItemWithAvatar with renderLeftValuePlaceholderNode', () => {
|
|
66
|
-
const {
|
|
67
|
-
asFragment
|
|
68
|
-
} = render( /*#__PURE__*/React.createElement(ListItemWithAvatar, {
|
|
69
|
-
renderLeftValuePlaceholderNode: () => /*#__PURE__*/React.createElement("div", null, "Left Placeholder")
|
|
70
|
-
}));
|
|
71
|
-
expect(asFragment()).toMatchSnapshot();
|
|
72
|
-
});
|
|
73
|
-
test('ListItemWithAvatar with renderLeftValuePlaceholderNode & it\'s custom class', () => {
|
|
74
|
-
const {
|
|
75
|
-
asFragment
|
|
76
|
-
} = render( /*#__PURE__*/React.createElement(ListItemWithAvatar, {
|
|
77
|
-
renderLeftValuePlaceholderNode: () => /*#__PURE__*/React.createElement("div", null, "Left Placeholder"),
|
|
78
|
-
customClass: {
|
|
79
|
-
customLeftValuePlaceholder: "customLeftValuePlaceholderClass"
|
|
80
|
-
}
|
|
81
|
-
}));
|
|
82
|
-
expect(asFragment()).toMatchSnapshot();
|
|
83
|
-
});
|
|
84
65
|
});
|
|
@@ -62,23 +62,4 @@ describe('ListItemWithCheckBox', () => {
|
|
|
62
62
|
}));
|
|
63
63
|
expect(asFragment()).toMatchSnapshot();
|
|
64
64
|
});
|
|
65
|
-
test('ListItemWithCheckBox with renderLeftValuePlaceholderNode', () => {
|
|
66
|
-
const {
|
|
67
|
-
asFragment
|
|
68
|
-
} = render( /*#__PURE__*/React.createElement(ListItemWithCheckBox, {
|
|
69
|
-
renderLeftValuePlaceholderNode: () => /*#__PURE__*/React.createElement("div", null, "Left Placeholder")
|
|
70
|
-
}));
|
|
71
|
-
expect(asFragment()).toMatchSnapshot();
|
|
72
|
-
});
|
|
73
|
-
test('ListItemWithCheckBox with renderLeftValuePlaceholderNode & it\'s custom class', () => {
|
|
74
|
-
const {
|
|
75
|
-
asFragment
|
|
76
|
-
} = render( /*#__PURE__*/React.createElement(ListItemWithCheckBox, {
|
|
77
|
-
renderLeftValuePlaceholderNode: () => /*#__PURE__*/React.createElement("div", null, "Left Placeholder"),
|
|
78
|
-
customClass: {
|
|
79
|
-
customLeftValuePlaceholder: "customLeftValuePlaceholderClass"
|
|
80
|
-
}
|
|
81
|
-
}));
|
|
82
|
-
expect(asFragment()).toMatchSnapshot();
|
|
83
|
-
});
|
|
84
65
|
});
|
|
@@ -60,21 +60,4 @@ describe('ListItemWithIcon', () => {
|
|
|
60
60
|
}));
|
|
61
61
|
expect(asFragment()).toMatchSnapshot();
|
|
62
62
|
});
|
|
63
|
-
test('ListItemWithIcon with renderLeftValuePlaceholderNode', () => {
|
|
64
|
-
const {
|
|
65
|
-
asFragment
|
|
66
|
-
} = render( /*#__PURE__*/React.createElement(ListItemWithIcon, {
|
|
67
|
-
renderLeftValuePlaceholderNode: () => /*#__PURE__*/React.createElement("div", null, "Left Placeholder")
|
|
68
|
-
}));
|
|
69
|
-
expect(asFragment()).toMatchSnapshot();
|
|
70
|
-
});
|
|
71
|
-
test('ListItemWithIcon with renderLeftValuePlaceholderNode & it\'s custom class', () => {
|
|
72
|
-
const {
|
|
73
|
-
asFragment
|
|
74
|
-
} = render( /*#__PURE__*/React.createElement(ListItemWithIcon, {
|
|
75
|
-
renderLeftValuePlaceholderNode: () => /*#__PURE__*/React.createElement("div", null, "Left Placeholder"),
|
|
76
|
-
customLeftValuePlaceholderClass: "customLeftValuePlaceholderClass"
|
|
77
|
-
}));
|
|
78
|
-
expect(asFragment()).toMatchSnapshot();
|
|
79
|
-
});
|
|
80
63
|
});
|
|
@@ -62,23 +62,4 @@ describe('ListItemWithRadio', () => {
|
|
|
62
62
|
}));
|
|
63
63
|
expect(asFragment()).toMatchSnapshot();
|
|
64
64
|
});
|
|
65
|
-
test('ListItemWithRadio with renderLeftValuePlaceholderNode', () => {
|
|
66
|
-
const {
|
|
67
|
-
asFragment
|
|
68
|
-
} = render( /*#__PURE__*/React.createElement(ListItemWithRadio, {
|
|
69
|
-
renderLeftValuePlaceholderNode: () => /*#__PURE__*/React.createElement("div", null, "Left Placeholder")
|
|
70
|
-
}));
|
|
71
|
-
expect(asFragment()).toMatchSnapshot();
|
|
72
|
-
});
|
|
73
|
-
test('ListItemWithRadio with renderLeftValuePlaceholderNode & it\'s custom class', () => {
|
|
74
|
-
const {
|
|
75
|
-
asFragment
|
|
76
|
-
} = render( /*#__PURE__*/React.createElement(ListItemWithRadio, {
|
|
77
|
-
renderLeftValuePlaceholderNode: () => /*#__PURE__*/React.createElement("div", null, "Left Placeholder"),
|
|
78
|
-
customClass: {
|
|
79
|
-
customLeftValuePlaceholder: "customLeftValuePlaceholderClass"
|
|
80
|
-
}
|
|
81
|
-
}));
|
|
82
|
-
expect(asFragment()).toMatchSnapshot();
|
|
83
|
-
});
|
|
84
65
|
});
|