@zohodesk/components 1.0.0-alpha-244 → 1.0.0-alpha-247
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 +10 -0
- package/assets/Appearance/pureDark/mode/pureDarkMode.module.css +2 -2
- package/es/CheckBox/CheckBox.module.css +12 -8
- package/es/LightNightMode/Colors.json +496 -397
- package/es/LightNightMode/docs/AlternativeColors.docs.js +21 -1
- package/es/ListItem/ListItem.module.css +12 -8
- package/es/MultiSelect/AdvancedGroupMultiSelect.js +1 -1
- package/es/Radio/Radio.module.css +8 -6
- package/es/RippleEffect/RippleEffect.module.css +37 -15
- package/es/Switch/Switch.module.css +3 -2
- package/es/index.js +0 -4
- package/lib/CheckBox/CheckBox.module.css +12 -8
- package/lib/LightNightMode/Colors.json +496 -397
- package/lib/LightNightMode/docs/AlternativeColors.docs.js +23 -1
- package/lib/ListItem/ListItem.module.css +12 -8
- package/lib/MultiSelect/AdvancedGroupMultiSelect.js +1 -1
- package/lib/Radio/Radio.module.css +8 -6
- package/lib/RippleEffect/RippleEffect.module.css +37 -15
- package/lib/Switch/Switch.module.css +3 -2
- package/lib/index.js +0 -36
- package/package.json +5 -5
- package/es/a11y/FocusScope/FocusScope.js +0 -370
- package/es/a11y/FocusScope/docs/FocusScope__default.docs.js +0 -139
- package/es/beta/FocusRing/FocusRing.js +0 -281
- package/es/beta/FocusRing/FocusRing.module.css +0 -152
- package/es/beta/FocusRing/docs/FocusRing__default.docs.js +0 -48
- package/lib/a11y/FocusScope/FocusScope.js +0 -443
- package/lib/a11y/FocusScope/docs/FocusScope__default.docs.js +0 -191
- package/lib/beta/FocusRing/FocusRing.js +0 -338
- package/lib/beta/FocusRing/FocusRing.module.css +0 -152
- package/lib/beta/FocusRing/docs/FocusRing__default.docs.js +0 -101
|
@@ -24,7 +24,10 @@ export default class AlternativeColors extends React.Component {
|
|
|
24
24
|
}, "Light Mode Colors"), /*#__PURE__*/React.createElement(Box, {
|
|
25
25
|
flexible: true,
|
|
26
26
|
className: style.rgt
|
|
27
|
-
}, "Alternate Night Mode Colors")
|
|
27
|
+
}, "Alternate Night Mode Colors"), /*#__PURE__*/React.createElement(Box, {
|
|
28
|
+
flexible: true,
|
|
29
|
+
className: style.rgt
|
|
30
|
+
}, "Alternate Pure Dark Mode Colors")), /*#__PURE__*/React.createElement(Container, {
|
|
28
31
|
alignBox: "row",
|
|
29
32
|
className: style.content
|
|
30
33
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
@@ -62,6 +65,23 @@ export default class AlternativeColors extends React.Component {
|
|
|
62
65
|
onClick: () => navigator.clipboard.writeText(clrValue),
|
|
63
66
|
"data-title": `Copy ${clrValue}`
|
|
64
67
|
}, clrValue));
|
|
68
|
+
})), /*#__PURE__*/React.createElement(Box, {
|
|
69
|
+
flexible: true,
|
|
70
|
+
className: style.rgt
|
|
71
|
+
}, index.equalPureDarkColors.toString().split(", ").map((clrValue, j) => {
|
|
72
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
73
|
+
className: style.nestedDiv,
|
|
74
|
+
key: j
|
|
75
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
76
|
+
style: {
|
|
77
|
+
backgroundColor: `${clrValue}`
|
|
78
|
+
},
|
|
79
|
+
className: `${style.rect} ${style.gold}`
|
|
80
|
+
}), /*#__PURE__*/React.createElement("span", {
|
|
81
|
+
className: style.colorvalue,
|
|
82
|
+
onClick: () => navigator.clipboard.writeText(clrValue),
|
|
83
|
+
"data-title": `Copy ${clrValue}`
|
|
84
|
+
}, clrValue));
|
|
65
85
|
}))))))));
|
|
66
86
|
}
|
|
67
87
|
|
|
@@ -106,26 +106,30 @@
|
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
.defaultHover,
|
|
109
|
-
.defaultEffect:hover
|
|
110
|
-
.defaultEffect:focus
|
|
109
|
+
.defaultEffect:hover
|
|
110
|
+
/* .defaultEffect:focus */
|
|
111
|
+
{
|
|
111
112
|
--listitem_bg_color: var(--zdt_listitem_highlight_bg);
|
|
112
113
|
}
|
|
113
114
|
.primaryHover,
|
|
114
|
-
.primaryEffect:hover
|
|
115
|
-
.primaryEffect:focus
|
|
115
|
+
.primaryEffect:hover
|
|
116
|
+
/* .primaryEffect:focus */
|
|
117
|
+
{
|
|
116
118
|
--listitem_bg_color: var(--zdt_listitem_primary_bg);
|
|
117
119
|
--listitem_highlight_bg_color: var(--zdt_listitem_primary_bg);
|
|
118
120
|
}
|
|
119
121
|
.secondaryHover,
|
|
120
|
-
.secondaryEffect:hover
|
|
121
|
-
.secondaryEffect:focus
|
|
122
|
+
.secondaryEffect:hover
|
|
123
|
+
/* .secondaryEffect:focus */
|
|
124
|
+
{
|
|
122
125
|
--listitem_bg_color: var(--zdt_listitem_secondary_bg);
|
|
123
126
|
--listitem_highlight_bg_color: var(--zdt_listitem_secondary_bg);
|
|
124
127
|
--listitem_text_color: var(--zdt_listitem_secondary_text);
|
|
125
128
|
}
|
|
126
129
|
.darkHover,
|
|
127
|
-
.darkEffect:hover
|
|
128
|
-
.darkEffect:focus
|
|
130
|
+
.darkEffect:hover
|
|
131
|
+
/* .darkEffect:focus */
|
|
132
|
+
{
|
|
129
133
|
--listitem_bg_color: var(--zdt_listitem_dark_effect_bg);
|
|
130
134
|
--listitem_highlight_bg_color: var(--zdt_listitem_dark_effect_bg);
|
|
131
135
|
}
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
/**** Components ****/
|
|
4
4
|
|
|
5
|
-
import Loader from '@zohodesk/svg/lib/
|
|
5
|
+
import Loader from '@zohodesk/svg/lib/Loader/Loader';
|
|
6
6
|
import Popup from '../Popup/Popup';
|
|
7
7
|
import TextBoxIcon from '../TextBoxIcon/TextBoxIcon';
|
|
8
8
|
import { Container, Box } from '../Layout';
|
|
@@ -67,14 +67,16 @@
|
|
|
67
67
|
animation: circleAnimate var(--zd_transition3) ease forwards;
|
|
68
68
|
}
|
|
69
69
|
.rdBoxprimary,
|
|
70
|
-
.hoverEfffect:hover .hoverprimary
|
|
71
|
-
.hoverEfffect:focus .hoverprimary
|
|
70
|
+
.hoverEfffect:hover .hoverprimary
|
|
71
|
+
/* .hoverEfffect:focus .hoverprimary */
|
|
72
|
+
{
|
|
72
73
|
--radio_stroke_color: var(--zdt_radio_primary_stroke);
|
|
73
74
|
}
|
|
74
75
|
|
|
75
76
|
.rdBoxdanger,
|
|
76
|
-
.hoverEfffect:hover .hoverdanger
|
|
77
|
-
.hoverEfffect:focus .hoverdanger
|
|
77
|
+
.hoverEfffect:hover .hoverdanger
|
|
78
|
+
/* .hoverEfffect:focus .hoverdanger */
|
|
79
|
+
{
|
|
78
80
|
--radio_stroke_color: var(--zdt_radio_danger_stroke);
|
|
79
81
|
}
|
|
80
82
|
|
|
@@ -86,13 +88,13 @@
|
|
|
86
88
|
}
|
|
87
89
|
|
|
88
90
|
.active:hover .primaryLabel,
|
|
89
|
-
.active:focus .primaryLabel,
|
|
91
|
+
/* .active:focus .primaryLabel, */
|
|
90
92
|
.primarycheckedActive {
|
|
91
93
|
--label_text_color: var(--zdt_radio_label_primary_text);
|
|
92
94
|
}
|
|
93
95
|
|
|
94
96
|
.active:hover .dangerLabel,
|
|
95
|
-
.active:focus .dangerLabel,
|
|
97
|
+
/* .active:focus .dangerLabel, */
|
|
96
98
|
.dangercheckedActive {
|
|
97
99
|
--label_text_color: var(--zdt_radio_label_danger_text);
|
|
98
100
|
}
|
|
@@ -8,43 +8,61 @@
|
|
|
8
8
|
.default.defaultHover {
|
|
9
9
|
border-color: var(--zdt_rippleeffect_hover_border);
|
|
10
10
|
}
|
|
11
|
-
.hoverEffect:hover.primary.defaultHover, .hoverEffect:
|
|
11
|
+
.hoverEffect:hover.primary.defaultHover, .hoverEffect:hover.primary.borderHover
|
|
12
|
+
/* .hoverEffect:focus.primary.borderHover */
|
|
13
|
+
{
|
|
12
14
|
border-color: var(--zdt_rippleeffect_primary_border);
|
|
13
15
|
}
|
|
14
|
-
.primary.defaultHover, .hoverEffect:hover.primary.active.border
|
|
16
|
+
.primary.defaultHover, .hoverEffect:hover.primary.active.border
|
|
17
|
+
/* .hoverEffect:focus.primary.active.border */
|
|
18
|
+
{
|
|
15
19
|
border-color: var(--zdt_rippleeffect_primary_active_border);
|
|
16
20
|
}
|
|
17
|
-
.primaryLight.defaultHover, .hoverEffect:hover.primaryLight.borderHover
|
|
21
|
+
.primaryLight.defaultHover, .hoverEffect:hover.primaryLight.borderHover
|
|
22
|
+
/* .hoverEffect:focus.primaryLight.borderHover */
|
|
23
|
+
{
|
|
18
24
|
border-color: var(--zdt_rippleeffect_primary_light_border);
|
|
19
25
|
}
|
|
20
|
-
.green.defaultHover, .hoverEffect:hover.green.borderHover
|
|
26
|
+
.green.defaultHover, .hoverEffect:hover.green.borderHover
|
|
27
|
+
/* .hoverEffect:focus.green.borderHover */
|
|
28
|
+
{
|
|
21
29
|
border-color: var(--zdt_rippleeffect_green_border);
|
|
22
30
|
}
|
|
23
|
-
.hoverEffect:hover.default.defaultHover
|
|
31
|
+
.hoverEffect:hover.default.defaultHover
|
|
32
|
+
/* .hoverEffect:focus.default.defaultHover */
|
|
33
|
+
{
|
|
24
34
|
border-color: var(--zdt_rippleeffect_slate_border);
|
|
25
35
|
}
|
|
26
|
-
.hoverEffect:hover.default.borderHover
|
|
36
|
+
.hoverEffect:hover.default.borderHover
|
|
37
|
+
/* .hoverEffect:focus.default.borderHover */
|
|
38
|
+
{
|
|
27
39
|
border-color: var(--zdt_rippleeffect_navy_border);
|
|
28
40
|
}
|
|
29
|
-
.hoverEffect:hover.default.bgHover
|
|
41
|
+
.hoverEffect:hover.default.bgHover
|
|
42
|
+
/* .hoverEffect:focus.default.bgHover */
|
|
43
|
+
{
|
|
30
44
|
background-color: var(--zdt_rippleeffect_hover_bg);
|
|
31
45
|
}
|
|
32
|
-
.hoverEffect:hover.primaryLight.bgHover
|
|
46
|
+
.hoverEffect:hover.primaryLight.bgHover
|
|
47
|
+
/* .hoverEffect:focus.primaryLight.bgHover */
|
|
48
|
+
{
|
|
33
49
|
background-color: var(--zdt_rippleeffect_primary_light_bg);
|
|
34
50
|
}
|
|
35
51
|
.primaryFilled {
|
|
36
52
|
background-color: var(--zdt_rippleeffect_primary_bg);
|
|
37
53
|
}
|
|
38
|
-
.hoverEffect:hover.primaryFilled, .
|
|
54
|
+
.hoverEffect:hover.primaryFilled, .primaryFilled.active {
|
|
39
55
|
background-color: var(--zdt_rippleeffect_primaryfilled_bg);
|
|
40
56
|
}
|
|
41
|
-
.hoverEffect:hover.green.bgHover
|
|
57
|
+
.hoverEffect:hover.green.bgHover
|
|
58
|
+
/* .hoverEffect:focus.green.bgHover */
|
|
59
|
+
{
|
|
42
60
|
background-color: var(--zdt_rippleeffect_green_bg);
|
|
43
61
|
}
|
|
44
|
-
.default.active, .hoverEffect:hover.default.active, .
|
|
62
|
+
.default.active, .hoverEffect:hover.default.active, .primaryLight.active, .primaryDark.active {
|
|
45
63
|
background-color: var(--zdt_rippleeffect_primary_light_bg);
|
|
46
64
|
}
|
|
47
|
-
.default.active.border, .hoverEffect:hover.default.active.border, .
|
|
65
|
+
.default.active.border, .hoverEffect:hover.default.active.border, .primaryLight.active.border, .primaryDark.active.border {
|
|
48
66
|
border-color: var(--zdt_rippleeffect_primary_light_border);
|
|
49
67
|
}
|
|
50
68
|
.green.active {
|
|
@@ -56,13 +74,17 @@
|
|
|
56
74
|
.primary.active {
|
|
57
75
|
background-color: var(--zdt_rippleeffect_primary_bg);
|
|
58
76
|
}
|
|
59
|
-
.danger.defaultHover, .hoverEffect:hover.danger.borderHover
|
|
77
|
+
.danger.defaultHover, .hoverEffect:hover.danger.borderHover
|
|
78
|
+
/* .hoverEffect:focus.danger.borderHover */
|
|
79
|
+
{
|
|
60
80
|
border-color: var(--zdt_rippleeffect_danger_border);
|
|
61
81
|
}
|
|
62
|
-
.hoverEffect:hover.danger.bgHover, .
|
|
82
|
+
.hoverEffect:hover.danger.bgHover, .danger.active {
|
|
63
83
|
background-color: var(--zdt_rippleeffect_danger_bg);
|
|
64
84
|
}
|
|
65
|
-
.hoverEffect:hover.primaryDark.bgHover
|
|
85
|
+
.hoverEffect:hover.primaryDark.bgHover
|
|
86
|
+
/* .hoverEffect:focus.primaryDark.bgHover */
|
|
87
|
+
{
|
|
66
88
|
background-color: var(--zdt_rippleeffect_primary_dark_bg);
|
|
67
89
|
}
|
|
68
90
|
.notAllowed {
|
package/es/index.js
CHANGED
|
@@ -149,9 +149,5 @@ export { default as Provider__Zindex_For_FunctionComponent } from './Provider/do
|
|
|
149
149
|
|
|
150
150
|
export { default as SemanticButton } from './semantic/Button/Button';
|
|
151
151
|
export { default as SemanticButton__default } from './semantic/Button/docs/Button__default.docs.js';
|
|
152
|
-
export { default as FocusScope } from './a11y/FocusScope/FocusScope';
|
|
153
|
-
export { default as FocusScope__default } from './a11y/FocusScope/docs/FocusScope__default.docs';
|
|
154
|
-
export { default as FocusRing } from './beta/FocusRing/FocusRing';
|
|
155
|
-
export { default as FocusRing__default } from './beta/FocusRing/docs/FocusRing__default.docs';
|
|
156
152
|
export { default as LightNightMode__AlternativeColors } from './LightNightMode/docs/AlternativeColors.docs';
|
|
157
153
|
export { default as ResponsiveDropBox } from './ResponsiveDropBox/ResponsiveDropBox';
|
|
@@ -101,15 +101,17 @@
|
|
|
101
101
|
.checkeddanger {
|
|
102
102
|
stroke: var(--checkbox_checked_stroke_color);
|
|
103
103
|
}
|
|
104
|
-
.primary:hover
|
|
105
|
-
.primary:focus
|
|
104
|
+
.primary:hover
|
|
105
|
+
/* .primary:focus */
|
|
106
|
+
{
|
|
106
107
|
--checkbox_stroke_color: var(--zdt_checkbox_primary_stroke_border);
|
|
107
108
|
}
|
|
108
109
|
.checkedprimary {
|
|
109
110
|
--checkbox_checked_stroke_color: var(--zdt_checkbox_primary_stroke_border);
|
|
110
111
|
}
|
|
111
|
-
.danger:hover
|
|
112
|
-
.danger:focus
|
|
112
|
+
.danger:hover
|
|
113
|
+
/* .danger:focus */
|
|
114
|
+
{
|
|
113
115
|
--checkbox_stroke_color: var(--zdt_checkbox_danger_stroke_border);
|
|
114
116
|
}
|
|
115
117
|
.checkeddanger {
|
|
@@ -120,15 +122,17 @@
|
|
|
120
122
|
.checkeddangerLabel {
|
|
121
123
|
color: var(--checkbox_checked_active_color);
|
|
122
124
|
}
|
|
123
|
-
.activeprimaryLabel:hover
|
|
124
|
-
.activeprimaryLabel:focus
|
|
125
|
+
.activeprimaryLabel:hover
|
|
126
|
+
/* .activeprimaryLabel:focus */
|
|
127
|
+
{
|
|
125
128
|
--label_text_color: var(--zdt_checkbox_label_primary_text);
|
|
126
129
|
}
|
|
127
130
|
.checkedprimaryLabel {
|
|
128
131
|
--checkbox_checked_active_color: var(--zdt_checkbox_primary_stroke_border);
|
|
129
132
|
}
|
|
130
|
-
.activedangerLabel:hover
|
|
131
|
-
.activedangerLabel:focus
|
|
133
|
+
.activedangerLabel:hover
|
|
134
|
+
/* .activedangerLabel:focus */
|
|
135
|
+
{
|
|
132
136
|
--label_text_color: var(--zdt_checkbox_label_danger_text);
|
|
133
137
|
}
|
|
134
138
|
.checkeddangerLabel {
|