@zohodesk/components 1.0.0-temp-246 → 1.0.0-temp-242.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 +23 -7
- package/assets/Appearance/dark/mode/Component_DarkMode.module.css +0 -2
- package/assets/Appearance/light/mode/Component_LightMode.module.css +0 -2
- package/assets/Appearance/pureDark/mode/Component_PureDarkMode.module.css +0 -2
- package/es/AppContainer/AppContainer.js +1 -0
- package/es/AppContainer/AppContainer.module.css +3 -2
- package/es/Button/css/Button.module.css +13 -4
- package/es/CheckBox/CheckBox.js +10 -21
- package/es/CheckBox/CheckBox.module.css +6 -21
- package/es/CheckBox/__tests__/CheckBox.spec.js +0 -9
- package/es/CheckBox/__tests__/__snapshots__/CheckBox.spec.js.snap +93 -162
- package/es/CheckBox/props/propTypes.js +1 -4
- package/es/DateTime/DateTime.module.css +12 -9
- package/es/DateTime/YearView.module.css +1 -1
- package/es/DropBox/DropBoxElement/DropBoxElement.js +1 -1
- package/es/DropBox/utils/isMobilePopover.js +3 -14
- package/es/Heading/Heading.module.css +1 -1
- package/es/Label/Label.js +1 -19
- package/es/Label/Label.module.css +8 -8
- package/es/Label/__tests__/Label.spec.js +0 -58
- package/es/Label/__tests__/__snapshots__/Label.spec.js.snap +0 -66
- package/es/Label/props/defaultProps.js +0 -1
- package/es/Label/props/propTypes.js +1 -7
- package/es/MultiSelect/MultiSelect.module.css +1 -1
- package/es/Popup/Popup.js +21 -1045
- package/es/Radio/Radio.js +9 -20
- package/es/Radio/Radio.module.css +5 -38
- package/es/Radio/__tests__/Radio.spec.js +0 -10
- package/es/Radio/__tests__/__snapshots__/Radio.spec.js.snap +81 -238
- package/es/Radio/props/propTypes.js +1 -4
- package/es/Tab/Tabs.module.css +1 -1
- package/es/TextBox/TextBox.module.css +4 -4
- package/es/TextBoxIcon/TextBoxIcon.module.css +0 -6
- package/es/Textarea/Textarea.module.css +1 -1
- package/es/Tooltip/Tooltip.module.css +1 -1
- package/es/Typography/css/Typography.module.css +4 -4
- package/es/common/basic.module.css +39 -6
- package/es/common/basicReset.module.css +2 -2
- package/es/common/common.module.css +5 -5
- package/es/shared/InputFieldLine/InputFieldLine.module.css +1 -1
- package/es/utils/Common.js +1 -1
- package/es/v1/Popup/Popup.js +1 -1
- package/es/v1/Tab/v1Tabs.module.css +1 -1
- package/es/v1/Typography/css/v1_Typography.module.css +4 -4
- package/lib/AppContainer/AppContainer.js +2 -0
- package/lib/AppContainer/AppContainer.module.css +3 -2
- package/lib/Button/css/Button.module.css +13 -4
- package/lib/CheckBox/CheckBox.js +9 -23
- package/lib/CheckBox/CheckBox.module.css +6 -21
- package/lib/CheckBox/__tests__/CheckBox.spec.js +12 -21
- package/lib/CheckBox/__tests__/__snapshots__/CheckBox.spec.js.snap +93 -162
- package/lib/CheckBox/props/propTypes.js +1 -5
- package/lib/DateTime/DateTime.module.css +12 -9
- package/lib/DateTime/YearView.module.css +1 -1
- package/lib/DropBox/DropBoxElement/DropBoxElement.js +5 -5
- package/lib/DropBox/utils/isMobilePopover.js +4 -14
- package/lib/Heading/Heading.module.css +1 -1
- package/lib/Label/Label.js +1 -21
- package/lib/Label/Label.module.css +8 -8
- package/lib/Label/__tests__/Label.spec.js +0 -58
- package/lib/Label/__tests__/__snapshots__/Label.spec.js.snap +0 -66
- package/lib/Label/props/defaultProps.js +0 -1
- package/lib/Label/props/propTypes.js +1 -8
- package/lib/MultiSelect/MultiSelect.module.css +1 -1
- package/lib/Popup/Popup.js +25 -1152
- package/lib/Radio/Radio.js +8 -22
- package/lib/Radio/Radio.module.css +5 -38
- package/lib/Radio/__tests__/Radio.spec.js +0 -10
- package/lib/Radio/__tests__/__snapshots__/Radio.spec.js.snap +81 -238
- package/lib/Radio/props/propTypes.js +1 -5
- package/lib/Tab/Tabs.module.css +1 -1
- package/lib/TextBox/TextBox.module.css +4 -4
- package/lib/TextBoxIcon/TextBoxIcon.module.css +0 -6
- package/lib/Textarea/Textarea.module.css +1 -1
- package/lib/Tooltip/Tooltip.module.css +1 -1
- package/lib/Typography/css/Typography.module.css +4 -4
- package/lib/common/basic.module.css +39 -6
- package/lib/common/basicReset.module.css +2 -2
- package/lib/common/common.module.css +5 -5
- package/lib/shared/InputFieldLine/InputFieldLine.module.css +1 -1
- package/lib/utils/Common.js +1 -1
- package/lib/v1/Popup/Popup.js +1 -1
- package/lib/v1/Tab/v1Tabs.module.css +1 -1
- package/lib/v1/Typography/css/v1_Typography.module.css +4 -4
- package/package.json +5 -5
- package/es/DropBox/DropBoxPositionMapping.js +0 -142
- package/es/Popup/PositionMapping.js +0 -72
- package/es/Popup/Registry.js +0 -36
- package/es/Popup/intersectionObserver.js +0 -49
- package/es/Popup/viewPort.js +0 -373
- package/lib/DropBox/DropBoxPositionMapping.js +0 -149
- package/lib/Popup/PositionMapping.js +0 -81
- package/lib/Popup/Registry.js +0 -46
- package/lib/Popup/intersectionObserver.js +0 -72
- package/lib/Popup/viewPort.js +0 -367
package/README.md
CHANGED
|
@@ -1,15 +1,31 @@
|
|
|
1
1
|
# DOT Style Guide
|
|
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
|
+
# 1.5.3
|
|
5
|
+
- **Popup**
|
|
6
|
+
- Refactored to use the dotkit `Popup` component.
|
|
4
7
|
|
|
5
|
-
# 1.
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
- `
|
|
8
|
+
# 1.5.2
|
|
9
|
+
|
|
10
|
+
- **TextBoxIcon**
|
|
11
|
+
- Removed `--textboxicon_line_height` and `--textboxicon_line_color` to avoid overriding the InputFieldLine border properties.
|
|
12
|
+
|
|
13
|
+
# 1.5.1
|
|
14
|
+
|
|
15
|
+
- Font Family Migrated to Font-weight across all css (Impacted)
|
|
16
|
+
|
|
17
|
+
# 1.5.2
|
|
9
18
|
|
|
10
|
-
- **
|
|
11
|
-
- `
|
|
12
|
-
|
|
19
|
+
- **TextBoxIcon**
|
|
20
|
+
- Removed `--textboxicon_line_height` and `--textboxicon_line_color` to avoid overriding the InputFieldLine border properties.
|
|
21
|
+
|
|
22
|
+
# 1.5.1
|
|
23
|
+
|
|
24
|
+
- Font Family Migrated to Font-weight across all css (Impacted)
|
|
25
|
+
|
|
26
|
+
# 1.4.24
|
|
27
|
+
- **Popup**
|
|
28
|
+
- Refactored to use the dotkit `Popup` component.
|
|
13
29
|
|
|
14
30
|
# 1.4.23
|
|
15
31
|
|
|
@@ -95,7 +95,6 @@
|
|
|
95
95
|
--zdt_checkbox_danger_stroke_border: hsla(0, 100.00%, calc(70.98% + var(--zdc_default_inverse_lower)), calc(1 + var(--zdc_alpha_low)));
|
|
96
96
|
--zdt_checkbox_label_primary_text: var(--zdt_cta_primary_text);
|
|
97
97
|
--zdt_checkbox_label_danger_text: hsla(0, 100.00%, calc(70.98% + var(--zdc_default_inverse_lower)), calc(1 + var(--zdc_alpha_low)));
|
|
98
|
-
--zdt_checkbox_secondary_text: hsla(217, 7.76%, calc(54.51% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
99
98
|
|
|
100
99
|
/* dropbox */
|
|
101
100
|
--zdt_dropbox_default_bg: hsla(217, 23.08%, calc(17.84% + var(--zdc_default)), calc(1 + var(--zdc_alpha_high)));
|
|
@@ -171,7 +170,6 @@
|
|
|
171
170
|
--zdt_radio_danger_fill: hsla(0, 100.00%, calc(70.98% + var(--zdc_default_inverse_lower)), calc(1 + var(--zdc_alpha_low)));
|
|
172
171
|
--zdt_radio_label_primary_text: var(--zdt_cta_primary_text);
|
|
173
172
|
--zdt_radio_label_danger_text: hsla(0, 100.00%, calc(70.98% + var(--zdc_default_inverse_lower)), calc(1 + var(--zdc_alpha_low)));
|
|
174
|
-
--zdt_radio_secondary_text: hsla(217, 7.76%, calc(54.51% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
175
173
|
|
|
176
174
|
/* listitem */
|
|
177
175
|
--zdt_listitem_default_text: hsla(210, 7.41%, calc(89.41% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
@@ -95,7 +95,6 @@
|
|
|
95
95
|
--zdt_checkbox_danger_stroke_border: hsla(0, 71.91%, calc(53.92% + var(--zdc_default_inverse_lower)), calc(1 + var(--zdc_alpha_low)));
|
|
96
96
|
--zdt_checkbox_label_primary_text: var(--zdt_cta_primary_text);
|
|
97
97
|
--zdt_checkbox_label_danger_text: hsla(0, 71.91%, calc(53.92% + var(--zdc_default_inverse_lower)), calc(1 + var(--zdc_alpha_low)));
|
|
98
|
-
--zdt_checkbox_secondary_text: hsla(218, 9.76%, calc(51.76% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
99
98
|
|
|
100
99
|
/* dropbox */
|
|
101
100
|
--zdt_dropbox_default_bg: hsla(0, 0.00%, calc(100.00% + var(--zdc_default)), calc(1 + var(--zdc_alpha_high)));
|
|
@@ -171,7 +170,6 @@
|
|
|
171
170
|
--zdt_radio_danger_fill: hsla(0, 71.91%, calc(53.92% + var(--zdc_default_inverse_lower)), calc(1 + var(--zdc_alpha_low)));
|
|
172
171
|
--zdt_radio_label_primary_text: var(--zdt_cta_primary_text);
|
|
173
172
|
--zdt_radio_label_danger_text: hsla(0, 71.91%, calc(53.92% + var(--zdc_default_inverse_lower)), calc(1 + var(--zdc_alpha_low)));
|
|
174
|
-
--zdt_radio_secondary_text: hsla(218, 9.76%, calc(51.76% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
175
173
|
|
|
176
174
|
/* listitem */
|
|
177
175
|
--zdt_listitem_default_text: hsla(0, 0.00%, calc(0.00% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
@@ -95,7 +95,6 @@
|
|
|
95
95
|
--zdt_checkbox_danger_stroke_border: hsla(0, 100.00%, calc(70.98% + var(--zdc_default_inverse_lower)), calc(1 + var(--zdc_alpha_low)));
|
|
96
96
|
--zdt_checkbox_label_primary_text: var(--zdt_cta_primary_text);
|
|
97
97
|
--zdt_checkbox_label_danger_text: hsla(0, 100.00%, calc(70.98% + var(--zdc_default_inverse_lower)), calc(1 + var(--zdc_alpha_low)));
|
|
98
|
-
--zdt_checkbox_secondary_text: hsla(217, 7.76%, calc(54.51% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
99
98
|
|
|
100
99
|
/* dropbox */
|
|
101
100
|
--zdt_dropbox_default_bg: hsla(0, 0.00%, calc(12.94% + var(--zdc_default)), calc(1 + var(--zdc_alpha_high)));
|
|
@@ -171,7 +170,6 @@
|
|
|
171
170
|
--zdt_radio_danger_fill: hsla(0, 100.00%, calc(70.98% + var(--zdc_default_inverse_lower)), calc(1 + var(--zdc_alpha_low)));
|
|
172
171
|
--zdt_radio_label_primary_text: var(--zdt_cta_primary_text);
|
|
173
172
|
--zdt_radio_label_danger_text: hsla(0, 100.00%, calc(70.98% + var(--zdc_default_inverse_lower)), calc(1 + var(--zdc_alpha_low)));
|
|
174
|
-
--zdt_radio_secondary_text: hsla(217, 7.76%, calc(54.51% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
175
173
|
|
|
176
174
|
/* listitem */
|
|
177
175
|
--zdt_listitem_default_text: hsla(210, 7.41%, calc(89.41% + var(--zdc_default_inverse)), calc(1 + var(--zdc_alpha_high)));
|
|
@@ -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), var(--zd_fallback_font, 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
|
-
--
|
|
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-
|
|
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
|
-
--
|
|
66
|
+
--button_font_weight: var(--zd-fw-semibold);
|
|
67
67
|
composes: ftsmooth from '../../common/common.module.css';
|
|
68
68
|
}
|
|
69
69
|
|
|
@@ -623,7 +623,7 @@
|
|
|
623
623
|
}
|
|
624
624
|
|
|
625
625
|
.loader {
|
|
626
|
-
color: var(--dot_mirror)
|
|
626
|
+
color: var(--dot_mirror);
|
|
627
627
|
}
|
|
628
628
|
|
|
629
629
|
[dir=ltr] .strike {
|
|
@@ -633,34 +633,43 @@
|
|
|
633
633
|
[dir=rtl] .strike {
|
|
634
634
|
background-image: repeating-linear-gradient(-120deg, var(--button_strike_color) 0 1px, transparent 1px 8px);
|
|
635
635
|
}
|
|
636
|
+
|
|
636
637
|
.primaryStrike {
|
|
637
638
|
--button_strike_color: var(--zdt_button_primary_strike);
|
|
638
639
|
}
|
|
640
|
+
|
|
639
641
|
.primaryfilledStrike {
|
|
640
642
|
--button_strike_color: var(--zdt_button_primaryFilled_strike);
|
|
641
643
|
--button_border_color: var(--zdt_button_primaryfill_bg);
|
|
642
644
|
}
|
|
645
|
+
|
|
643
646
|
.dangerStrike {
|
|
644
647
|
--button_strike_color: var(--zdt_button_danger_strike);
|
|
645
648
|
}
|
|
649
|
+
|
|
646
650
|
.dangerfilledStrike {
|
|
647
651
|
--button_strike_color: var(--zdt_button_dangerFilled_strike);
|
|
648
652
|
--button_border_color: var(--zdt_button_dangerfill_bg);
|
|
649
653
|
}
|
|
654
|
+
|
|
650
655
|
.secondaryStrike {
|
|
651
656
|
--button_strike_color: var(--zdt_button_secondary_border);
|
|
652
657
|
}
|
|
658
|
+
|
|
653
659
|
.secondaryfilledStrike {
|
|
654
660
|
--button_strike_color: var(--zdt_button_secondaryFilled_strike);
|
|
655
661
|
--button_border_color: var(--zdt_button_secondaryfill_bg);
|
|
656
662
|
}
|
|
663
|
+
|
|
657
664
|
.tertiaryfilledStrike {
|
|
658
665
|
--button_strike_color: var(--zdt_button_tertiaryFilled_strike);
|
|
659
666
|
--button_border_color: var(--zdt_button_tertiaryfill_bg);
|
|
660
667
|
}
|
|
668
|
+
|
|
661
669
|
.successStrike {
|
|
662
670
|
--button_strike_color: var(--zdt_button_success_strike);
|
|
663
671
|
}
|
|
672
|
+
|
|
664
673
|
.successfilledStrike {
|
|
665
674
|
--button_strike_color: var(--zdt_button_successFilled_strike);
|
|
666
675
|
--button_border_color: var(--zdt_button_successfill_border);
|
package/es/CheckBox/CheckBox.js
CHANGED
|
@@ -2,7 +2,6 @@ import React from 'react';
|
|
|
2
2
|
import { propTypes } from "./props/propTypes";
|
|
3
3
|
import { defaultProps } from "./props/defaultProps";
|
|
4
4
|
import Label from "../Label/Label";
|
|
5
|
-
import Typography from "../Typography/Typography";
|
|
6
5
|
import { Container, Box } from "../Layout";
|
|
7
6
|
import CssProvider from "../Provider/CssProvider";
|
|
8
7
|
import style from "./CheckBox.module.css";
|
|
@@ -54,20 +53,17 @@ export default class CheckBox extends React.Component {
|
|
|
54
53
|
customClass,
|
|
55
54
|
customProps,
|
|
56
55
|
dataSelectorId,
|
|
57
|
-
renderRightPlaceholderNode
|
|
58
|
-
secondaryText
|
|
56
|
+
renderRightPlaceholderNode
|
|
59
57
|
} = this.props;
|
|
60
58
|
let {
|
|
61
59
|
CheckBoxProps = {},
|
|
62
|
-
LabelProps = {}
|
|
63
|
-
secondaryTextProps = {}
|
|
60
|
+
LabelProps = {}
|
|
64
61
|
} = customProps;
|
|
65
62
|
let {
|
|
66
63
|
customCheckBox = '',
|
|
67
64
|
customLabel = '',
|
|
68
65
|
customCBoxSize = '',
|
|
69
|
-
customTickSize = ''
|
|
70
|
-
customSecondaryText = ''
|
|
66
|
+
customTickSize = ''
|
|
71
67
|
} = customClass;
|
|
72
68
|
let accessMode = isReadOnly ? style.readonly : disabled ? CssProvider('isDisabled') : style.pointer;
|
|
73
69
|
let toolTip = disabled ? disabledTitle : title ? title : null;
|
|
@@ -99,8 +95,7 @@ export default class CheckBox extends React.Component {
|
|
|
99
95
|
dataSelectorId: dataSelectorId || id,
|
|
100
96
|
...CheckBoxProps
|
|
101
97
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
102
|
-
className: `${style.boxContainer} ${
|
|
103
|
-
align: secondaryText ? "start" : undefined
|
|
98
|
+
className: `${style.boxContainer} ${style[size]} ${customCBoxSize} ${isFilled ? style.filled : ''} ${!isEditable ? `${style[`disabled`]}` : ''}`
|
|
104
99
|
}, /*#__PURE__*/React.createElement("input", {
|
|
105
100
|
type: "hidden",
|
|
106
101
|
id: id,
|
|
@@ -148,10 +143,10 @@ export default class CheckBox extends React.Component {
|
|
|
148
143
|
y1: "20",
|
|
149
144
|
x2: "28.53",
|
|
150
145
|
y2: "20"
|
|
151
|
-
}) : null))),
|
|
146
|
+
}) : null))), text && /*#__PURE__*/React.createElement(Box, {
|
|
152
147
|
flexible: true,
|
|
153
|
-
className: style.
|
|
154
|
-
},
|
|
148
|
+
className: style.text
|
|
149
|
+
}, /*#__PURE__*/React.createElement(Label, {
|
|
155
150
|
text: text,
|
|
156
151
|
palette: disabled ? 'disable' : labelPalette,
|
|
157
152
|
id: id,
|
|
@@ -160,17 +155,11 @@ export default class CheckBox extends React.Component {
|
|
|
160
155
|
clipped: isClipped,
|
|
161
156
|
variant: variant,
|
|
162
157
|
customClass: `${active && !disabled ? `${style[`active${palette}Label`]}` : ''}
|
|
163
|
-
|
|
164
|
-
|
|
158
|
+
${checked && active ? `${style[`checked${palette}Label`]}` : ''}
|
|
159
|
+
${accessMode} ${customLabel}`,
|
|
165
160
|
title: toolTip ? toolTip : text,
|
|
166
161
|
...LabelProps
|
|
167
|
-
}),
|
|
168
|
-
$ui_size: "12",
|
|
169
|
-
$ui_lineHeight: "1.2",
|
|
170
|
-
...secondaryTextProps,
|
|
171
|
-
$i18n_dataTitle: toolTip ? null : secondaryText,
|
|
172
|
-
$ui_className: `${style.secondaryText} ${customSecondaryText}`
|
|
173
|
-
}, secondaryText) : null), renderRightPlaceholderNode ? renderRightPlaceholderNode : null);
|
|
162
|
+
})), renderRightPlaceholderNode ? renderRightPlaceholderNode : null);
|
|
174
163
|
}
|
|
175
164
|
|
|
176
165
|
}
|
|
@@ -90,6 +90,12 @@
|
|
|
90
90
|
[dir=rtl] .linePath {
|
|
91
91
|
animation: lineAnimate var(--zd_transition3) ease forwards;
|
|
92
92
|
}
|
|
93
|
+
[dir=ltr] .text {
|
|
94
|
+
margin-left: var(--zd_size6) ;
|
|
95
|
+
}
|
|
96
|
+
[dir=rtl] .text {
|
|
97
|
+
margin-right: var(--zd_size6) ;
|
|
98
|
+
}
|
|
93
99
|
|
|
94
100
|
.checkedprimary,
|
|
95
101
|
.checkeddanger {
|
|
@@ -135,27 +141,6 @@
|
|
|
135
141
|
.disabled {
|
|
136
142
|
opacity: 0.7
|
|
137
143
|
}
|
|
138
|
-
|
|
139
|
-
.withSecondaryText {
|
|
140
|
-
margin-top: var(--zd_size1) ;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
.secondaryText {
|
|
144
|
-
color: var(--zdt_checkbox_secondary_text);
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
.labelContainer {
|
|
148
|
-
composes: dflex flexcolumn from '../common/common.module.css';
|
|
149
|
-
gap: var(--zd_size4) ;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
[dir=ltr] .labelContainer {
|
|
153
|
-
margin-left: var(--zd_size6) ;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
[dir=rtl] .labelContainer {
|
|
157
|
-
margin-right: var(--zd_size6) ;
|
|
158
|
-
}
|
|
159
144
|
@keyframes tickAnimate {
|
|
160
145
|
0% {
|
|
161
146
|
stroke-dashoffset: 40;
|
|
@@ -160,15 +160,6 @@ describe('CheckBox component', () => {
|
|
|
160
160
|
}));
|
|
161
161
|
expect(asFragment()).toMatchSnapshot();
|
|
162
162
|
});
|
|
163
|
-
test('Should render secondaryText', () => {
|
|
164
|
-
const {
|
|
165
|
-
asFragment
|
|
166
|
-
} = render( /*#__PURE__*/React.createElement(CheckBox, {
|
|
167
|
-
text: "checkboxText",
|
|
168
|
-
secondaryText: "secondaryText"
|
|
169
|
-
}));
|
|
170
|
-
expect(asFragment()).toMatchSnapshot();
|
|
171
|
-
});
|
|
172
163
|
test('Should be render activeStyle is minus', () => {
|
|
173
164
|
const {
|
|
174
165
|
asFragment
|