@zohodesk/dot 1.0.0-beta.242 → 1.0.0-beta.244
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 +16 -0
- package/assets/Appearance/dark/mode/dotDarkMode.module.css +1 -1
- package/assets/Appearance/pureDark/mode/dotPureDarkMode.module.css +1 -1
- package/es/ActionButton/ActionButton.module.css +3 -0
- package/es/IconButton/IconButton.js +5 -3
- package/es/IconButton/props/defaultProps.js +2 -1
- package/es/IconButton/props/propTypes.js +2 -1
- package/es/NewStar/NewStar.js +22 -20
- package/es/NewStar/NewStar.module.css +66 -1
- package/es/dropdown/ToggleDropDown/ToggleDropDown.js +8 -4
- package/es/list/ListLayout/ListLayout.js +1 -0
- package/lib/ActionButton/ActionButton.module.css +3 -0
- package/lib/IconButton/IconButton.js +5 -3
- package/lib/IconButton/props/defaultProps.js +2 -1
- package/lib/IconButton/props/propTypes.js +1 -1
- package/lib/NewStar/NewStar.js +22 -20
- package/lib/NewStar/NewStar.module.css +66 -1
- package/lib/dropdown/ToggleDropDown/ToggleDropDown.js +8 -4
- package/lib/list/ListLayout/ListLayout.js +1 -0
- package/package.json +27 -15
package/README.md
CHANGED
|
@@ -2,6 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
In this Library, we Provide Some Basic Components to Build Your Application
|
|
4
4
|
|
|
5
|
+
# 1.0.0-beta.244
|
|
6
|
+
|
|
7
|
+
- **ActionButton** - button element margin issue fix(safari browser).
|
|
8
|
+
|
|
9
|
+
# 1.0.0-beta.243
|
|
10
|
+
|
|
11
|
+
- **NewStar** - Position and Font Size Increase Issue Solved.
|
|
12
|
+
|
|
13
|
+
- **MessageBanner** - `Night` and `Dark` mode issue fix.
|
|
14
|
+
|
|
15
|
+
- **IconButton** - customProps support.
|
|
16
|
+
|
|
17
|
+
- **ToggleDropdDown** - Screen Reader fix.
|
|
18
|
+
|
|
19
|
+
- **ListLayout** - Focus Indication fix.
|
|
20
|
+
|
|
5
21
|
# 1.0.0-beta.242
|
|
6
22
|
|
|
7
23
|
- `Accesssility`- Screen Reader fix.
|
|
@@ -328,7 +328,7 @@
|
|
|
328
328
|
--zdt_message_close_text: var(--zd_dark6);
|
|
329
329
|
|
|
330
330
|
/* message banner */
|
|
331
|
-
--zdt_messagebanner_text: var(--
|
|
331
|
+
--zdt_messagebanner_text: var(--dot_black);
|
|
332
332
|
--zdt_messagebanner_link_text: var(--zdt_cta_primary_text);
|
|
333
333
|
--zdt_messagebanner_close_text: var(--zd_smoke18);
|
|
334
334
|
--zdt_messagebanner_close_hover_bg: #ececc6;
|
|
@@ -328,7 +328,7 @@
|
|
|
328
328
|
--zdt_message_close_text: var(--zd_dark6);
|
|
329
329
|
|
|
330
330
|
/* message banner */
|
|
331
|
-
--zdt_messagebanner_text: var(--
|
|
331
|
+
--zdt_messagebanner_text: var(--dot_black);
|
|
332
332
|
--zdt_messagebanner_link_text: var(--zdt_cta_primary_text);
|
|
333
333
|
--zdt_messagebanner_close_text: var(--zd_smoke18);
|
|
334
334
|
--zdt_messagebanner_close_hover_bg: #ececc6;
|
|
@@ -31,6 +31,9 @@
|
|
|
31
31
|
.arrowWrapper {
|
|
32
32
|
transition: width var(--zd_transition3), padding var(--zd_transition3), background-color var(--zd_transition2), border-color var(--zd_transition2);
|
|
33
33
|
}
|
|
34
|
+
.contentBox, .arrowWrapper {
|
|
35
|
+
margin: 0;
|
|
36
|
+
}
|
|
34
37
|
.clickable {
|
|
35
38
|
cursor: pointer;
|
|
36
39
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
1
2
|
import React from 'react';
|
|
2
3
|
import { defaultProps } from './props/defaultProps';
|
|
3
4
|
import { propTypes } from './props/propTypes';
|
|
@@ -79,7 +80,8 @@ export default class IconButton extends React.Component {
|
|
|
79
80
|
isNeedEffect,
|
|
80
81
|
needButtonTag,
|
|
81
82
|
a11y,
|
|
82
|
-
dataIsHtml
|
|
83
|
+
dataIsHtml,
|
|
84
|
+
customProps
|
|
83
85
|
} = this.props;
|
|
84
86
|
let {
|
|
85
87
|
isPressed
|
|
@@ -97,7 +99,7 @@ export default class IconButton extends React.Component {
|
|
|
97
99
|
hoverType: hoverType,
|
|
98
100
|
isDisabled: isDisabled,
|
|
99
101
|
isNeedEffect: isNeedEffect
|
|
100
|
-
}, /*#__PURE__*/React.createElement(Container, {
|
|
102
|
+
}, /*#__PURE__*/React.createElement(Container, _extends({
|
|
101
103
|
"aria-label": ariaLabel,
|
|
102
104
|
"aria-haspopup": ariaHaspopup,
|
|
103
105
|
"aria-expanded": ariaExpanded,
|
|
@@ -121,7 +123,7 @@ export default class IconButton extends React.Component {
|
|
|
121
123
|
onFocus: this.triggerMouseOver,
|
|
122
124
|
onBlur: this.onBlur,
|
|
123
125
|
disabled: isDisabled
|
|
124
|
-
}, iconName ? /*#__PURE__*/React.createElement(Icon, {
|
|
126
|
+
}, customProps), iconName ? /*#__PURE__*/React.createElement(Icon, {
|
|
125
127
|
isBold: isBold,
|
|
126
128
|
size: iconSize,
|
|
127
129
|
name: iconName,
|
package/es/NewStar/NewStar.js
CHANGED
|
@@ -13,36 +13,38 @@ export default class NewStar extends React.Component {
|
|
|
13
13
|
} = this.props;
|
|
14
14
|
let alignPosition = {
|
|
15
15
|
topRight: {
|
|
16
|
-
className: style.topRight
|
|
17
|
-
align: 'right',
|
|
18
|
-
alignBox: 'row',
|
|
19
|
-
reverse: 'wrap'
|
|
16
|
+
className: style.topRight
|
|
17
|
+
// align: 'right',
|
|
18
|
+
// alignBox: 'row',
|
|
19
|
+
// reverse: 'wrap'
|
|
20
20
|
},
|
|
21
|
+
|
|
21
22
|
topLeft: {
|
|
22
|
-
className: style.topLeft
|
|
23
|
-
align: 'left',
|
|
24
|
-
alignBox: 'row',
|
|
25
|
-
reverse: 'wrap'
|
|
23
|
+
className: style.topLeft
|
|
24
|
+
// align: 'left',
|
|
25
|
+
// alignBox: 'row',
|
|
26
|
+
// reverse: 'wrap'
|
|
26
27
|
},
|
|
28
|
+
|
|
27
29
|
bottomLeft: {
|
|
28
|
-
className: style.bottomLeft
|
|
29
|
-
align: 'left',
|
|
30
|
-
alignBox: 'column-reverse',
|
|
31
|
-
reverse: 'wrap'
|
|
30
|
+
className: style.bottomLeft
|
|
31
|
+
// align: 'left',
|
|
32
|
+
// alignBox: 'column-reverse',
|
|
33
|
+
// reverse: 'wrap'
|
|
32
34
|
},
|
|
35
|
+
|
|
33
36
|
bottomRight: {
|
|
34
|
-
className: style.bottomRight
|
|
35
|
-
align: 'right',
|
|
36
|
-
alignBox: 'column',
|
|
37
|
-
reverse: 'wrap-reverse'
|
|
37
|
+
className: style.bottomRight
|
|
38
|
+
// align: 'right',
|
|
39
|
+
// alignBox: 'column',
|
|
40
|
+
// reverse: 'wrap-reverse'
|
|
38
41
|
}
|
|
39
42
|
};
|
|
43
|
+
|
|
40
44
|
return /*#__PURE__*/React.createElement(Container, {
|
|
41
|
-
alignBox:
|
|
45
|
+
alignBox: "row",
|
|
42
46
|
isCover: false,
|
|
43
|
-
className: `${style.star} ${alignPosition[position].className} ${customClass}
|
|
44
|
-
wrap: alignPosition[position].reverse,
|
|
45
|
-
align: alignPosition[position].align
|
|
47
|
+
className: `${style.star} ${alignPosition[position].className} ${customClass}`
|
|
46
48
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
47
49
|
name: "ZD-snippetStar",
|
|
48
50
|
iconClass: `${style[palette]} ${style.starOne}`,
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
.star {
|
|
2
2
|
position: absolute;
|
|
3
|
-
|
|
4
3
|
height: var(--zd_size20);
|
|
5
4
|
width: var(--zd_size21);
|
|
6
5
|
}
|
|
@@ -48,9 +47,15 @@
|
|
|
48
47
|
transform: translate(-45%, 45%);
|
|
49
48
|
left: 0;
|
|
50
49
|
}
|
|
50
|
+
|
|
51
|
+
.stars {
|
|
52
|
+
position: absolute;
|
|
53
|
+
}
|
|
54
|
+
|
|
51
55
|
[dir=ltr] .stars {
|
|
52
56
|
animation: twinkle var(--zd_transition4) infinite, star-scale var(--zd_transition10) infinite;
|
|
53
57
|
}
|
|
58
|
+
|
|
54
59
|
[dir=rtl] .stars {
|
|
55
60
|
animation: twinkle var(--zd_transition4) infinite, star-scale var(--zd_transition10) infinite;
|
|
56
61
|
}
|
|
@@ -85,6 +90,66 @@
|
|
|
85
90
|
animation-delay: 1s;
|
|
86
91
|
}
|
|
87
92
|
|
|
93
|
+
.topLeft .starOne{top:0}
|
|
94
|
+
|
|
95
|
+
[dir=ltr] .topLeft .starOne{
|
|
96
|
+
left:0}
|
|
97
|
+
|
|
98
|
+
[dir=rtl] .topLeft .starOne{right:0}
|
|
99
|
+
.topLeft .starTwo{top:0}
|
|
100
|
+
[dir=ltr] .topLeft .starTwo{
|
|
101
|
+
left:10px}
|
|
102
|
+
[dir=rtl] .topLeft .starTwo{right:10px}
|
|
103
|
+
.topLeft .starThree{top:10px}
|
|
104
|
+
[dir=ltr] .topLeft .starThree{
|
|
105
|
+
left:0}
|
|
106
|
+
[dir=rtl] .topLeft .starThree{right:0}
|
|
107
|
+
|
|
108
|
+
.topRight .starOne{top:0}
|
|
109
|
+
|
|
110
|
+
[dir=ltr] .topRight .starOne{
|
|
111
|
+
right:0}
|
|
112
|
+
|
|
113
|
+
[dir=rtl] .topRight .starOne{left:0}
|
|
114
|
+
.topRight .starTwo{top:0}
|
|
115
|
+
[dir=ltr] .topRight .starTwo{
|
|
116
|
+
right:10px}
|
|
117
|
+
[dir=rtl] .topRight .starTwo{left:10px}
|
|
118
|
+
.topRight .starThree{top:10px}
|
|
119
|
+
[dir=ltr] .topRight .starThree{
|
|
120
|
+
right:0}
|
|
121
|
+
[dir=rtl] .topRight .starThree{left:0}
|
|
122
|
+
|
|
123
|
+
.bottomLeft .starOne{bottom:0}
|
|
124
|
+
|
|
125
|
+
[dir=ltr] .bottomLeft .starOne{
|
|
126
|
+
left:0}
|
|
127
|
+
|
|
128
|
+
[dir=rtl] .bottomLeft .starOne{right:0}
|
|
129
|
+
.bottomLeft .starTwo{bottom:0}
|
|
130
|
+
[dir=ltr] .bottomLeft .starTwo{
|
|
131
|
+
left:10px}
|
|
132
|
+
[dir=rtl] .bottomLeft .starTwo{right:10px}
|
|
133
|
+
.bottomLeft .starThree{bottom:10px}
|
|
134
|
+
[dir=ltr] .bottomLeft .starThree{
|
|
135
|
+
left:0}
|
|
136
|
+
[dir=rtl] .bottomLeft .starThree{right:0}
|
|
137
|
+
|
|
138
|
+
.bottomRight .starOne{bottom:0}
|
|
139
|
+
|
|
140
|
+
[dir=ltr] .bottomRight .starOne{
|
|
141
|
+
right:0}
|
|
142
|
+
|
|
143
|
+
[dir=rtl] .bottomRight .starOne{left:0}
|
|
144
|
+
.bottomRight .starTwo{bottom:0}
|
|
145
|
+
[dir=ltr] .bottomRight .starTwo{
|
|
146
|
+
right:10px}
|
|
147
|
+
[dir=rtl] .bottomRight .starTwo{left:10px}
|
|
148
|
+
.bottomRight .starThree{bottom:10px}
|
|
149
|
+
[dir=ltr] .bottomRight .starThree{
|
|
150
|
+
right:0}
|
|
151
|
+
[dir=rtl] .bottomRight .starThree{left:0}
|
|
152
|
+
|
|
88
153
|
@keyframes twinkle {
|
|
89
154
|
0% {
|
|
90
155
|
opacity: 0.5;
|
|
@@ -711,7 +711,8 @@ export class ToggleDropDown extends Component {
|
|
|
711
711
|
palette: palette,
|
|
712
712
|
a11y: {
|
|
713
713
|
role: isSearch ? 'option' : 'menuitem',
|
|
714
|
-
ariaSelected: selectedId === item[idName]
|
|
714
|
+
ariaSelected: selectedId === item[idName],
|
|
715
|
+
ariaLabel: item[keyName]
|
|
715
716
|
}
|
|
716
717
|
}, ListItemWithIconProps)) : /*#__PURE__*/React.createElement(ListItem, _extends({
|
|
717
718
|
key: listIndex,
|
|
@@ -732,7 +733,8 @@ export class ToggleDropDown extends Component {
|
|
|
732
733
|
palette: palette,
|
|
733
734
|
a11y: {
|
|
734
735
|
role: isSearch ? 'option' : 'menuitem',
|
|
735
|
-
ariaSelected: selectedId === item[idName]
|
|
736
|
+
ariaSelected: selectedId === item[idName],
|
|
737
|
+
ariaLabel: item[keyName]
|
|
736
738
|
}
|
|
737
739
|
}, ListItemProps));
|
|
738
740
|
}));
|
|
@@ -778,7 +780,8 @@ export class ToggleDropDown extends Component {
|
|
|
778
780
|
palette: palette,
|
|
779
781
|
a11y: {
|
|
780
782
|
role: isSearch ? 'option' : 'menuitem',
|
|
781
|
-
ariaSelected: selectedId === item[idName]
|
|
783
|
+
ariaSelected: selectedId === item[idName],
|
|
784
|
+
ariaLabel: item[keyName]
|
|
782
785
|
}
|
|
783
786
|
}, ListItemWithIconProps)) : /*#__PURE__*/React.createElement(ListItem, _extends({
|
|
784
787
|
key: listIndex,
|
|
@@ -799,7 +802,8 @@ export class ToggleDropDown extends Component {
|
|
|
799
802
|
palette: palette,
|
|
800
803
|
a11y: {
|
|
801
804
|
role: isSearch ? 'option' : 'menuitem',
|
|
802
|
-
ariaSelected: selectedId === item[idName]
|
|
805
|
+
ariaSelected: selectedId === item[idName],
|
|
806
|
+
ariaLabel: item[keyName]
|
|
803
807
|
}
|
|
804
808
|
}, ListItemProps)));
|
|
805
809
|
}), isFetchingOptions && /*#__PURE__*/React.createElement(Container, {
|
|
@@ -31,6 +31,9 @@
|
|
|
31
31
|
.arrowWrapper {
|
|
32
32
|
transition: width var(--zd_transition3), padding var(--zd_transition3), background-color var(--zd_transition2), border-color var(--zd_transition2);
|
|
33
33
|
}
|
|
34
|
+
.contentBox, .arrowWrapper {
|
|
35
|
+
margin: 0;
|
|
36
|
+
}
|
|
34
37
|
.clickable {
|
|
35
38
|
cursor: pointer;
|
|
36
39
|
}
|
|
@@ -14,6 +14,7 @@ var _semanticButtonModule = _interopRequireDefault(require("@zohodesk/components
|
|
|
14
14
|
var _RippleEffect = _interopRequireDefault(require("@zohodesk/components/lib/RippleEffect/RippleEffect"));
|
|
15
15
|
var _IconButtonModule = _interopRequireDefault(require("./IconButton.module.css"));
|
|
16
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
17
18
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
18
19
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
19
20
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
@@ -109,7 +110,8 @@ var IconButton = /*#__PURE__*/function (_React$Component) {
|
|
|
109
110
|
isNeedEffect = _this$props4.isNeedEffect,
|
|
110
111
|
needButtonTag = _this$props4.needButtonTag,
|
|
111
112
|
a11y = _this$props4.a11y,
|
|
112
|
-
dataIsHtml = _this$props4.dataIsHtml
|
|
113
|
+
dataIsHtml = _this$props4.dataIsHtml,
|
|
114
|
+
customProps = _this$props4.customProps;
|
|
113
115
|
var isPressed = this.state.isPressed;
|
|
114
116
|
var ariaHaspopup = a11y.ariaHaspopup,
|
|
115
117
|
ariaExpanded = a11y.ariaExpanded,
|
|
@@ -122,7 +124,7 @@ var IconButton = /*#__PURE__*/function (_React$Component) {
|
|
|
122
124
|
hoverType: hoverType,
|
|
123
125
|
isDisabled: isDisabled,
|
|
124
126
|
isNeedEffect: isNeedEffect
|
|
125
|
-
}, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
127
|
+
}, /*#__PURE__*/_react["default"].createElement(_Layout.Container, _extends({
|
|
126
128
|
"aria-label": ariaLabel,
|
|
127
129
|
"aria-haspopup": ariaHaspopup,
|
|
128
130
|
"aria-expanded": ariaExpanded,
|
|
@@ -146,7 +148,7 @@ var IconButton = /*#__PURE__*/function (_React$Component) {
|
|
|
146
148
|
onFocus: this.triggerMouseOver,
|
|
147
149
|
onBlur: this.onBlur,
|
|
148
150
|
disabled: isDisabled
|
|
149
|
-
}, iconName ? /*#__PURE__*/_react["default"].createElement(_Icon["default"], {
|
|
151
|
+
}, customProps), iconName ? /*#__PURE__*/_react["default"].createElement(_Icon["default"], {
|
|
150
152
|
isBold: isBold,
|
|
151
153
|
size: iconSize,
|
|
152
154
|
name: iconName,
|
|
@@ -33,5 +33,5 @@ var propTypes = (_propTypes = {
|
|
|
33
33
|
ariaLabel: _propTypes2["default"].string,
|
|
34
34
|
ariaControls: _propTypes2["default"].string,
|
|
35
35
|
ariaLabelledby: _propTypes2["default"].string
|
|
36
|
-
})), _defineProperty(_propTypes, "dataIsHtml", _propTypes2["default"].bool), _propTypes);
|
|
36
|
+
})), _defineProperty(_propTypes, "dataIsHtml", _propTypes2["default"].bool), _defineProperty(_propTypes, "customProps", _propTypes2["default"].object), _propTypes);
|
|
37
37
|
exports.propTypes = propTypes;
|
package/lib/NewStar/NewStar.js
CHANGED
|
@@ -38,36 +38,38 @@ var NewStar = /*#__PURE__*/function (_React$Component) {
|
|
|
38
38
|
position = _this$props.position;
|
|
39
39
|
var alignPosition = {
|
|
40
40
|
topRight: {
|
|
41
|
-
className: _NewStarModule["default"].topRight
|
|
42
|
-
align: 'right',
|
|
43
|
-
alignBox: 'row',
|
|
44
|
-
reverse: 'wrap'
|
|
41
|
+
className: _NewStarModule["default"].topRight
|
|
42
|
+
// align: 'right',
|
|
43
|
+
// alignBox: 'row',
|
|
44
|
+
// reverse: 'wrap'
|
|
45
45
|
},
|
|
46
|
+
|
|
46
47
|
topLeft: {
|
|
47
|
-
className: _NewStarModule["default"].topLeft
|
|
48
|
-
align: 'left',
|
|
49
|
-
alignBox: 'row',
|
|
50
|
-
reverse: 'wrap'
|
|
48
|
+
className: _NewStarModule["default"].topLeft
|
|
49
|
+
// align: 'left',
|
|
50
|
+
// alignBox: 'row',
|
|
51
|
+
// reverse: 'wrap'
|
|
51
52
|
},
|
|
53
|
+
|
|
52
54
|
bottomLeft: {
|
|
53
|
-
className: _NewStarModule["default"].bottomLeft
|
|
54
|
-
align: 'left',
|
|
55
|
-
alignBox: 'column-reverse',
|
|
56
|
-
reverse: 'wrap'
|
|
55
|
+
className: _NewStarModule["default"].bottomLeft
|
|
56
|
+
// align: 'left',
|
|
57
|
+
// alignBox: 'column-reverse',
|
|
58
|
+
// reverse: 'wrap'
|
|
57
59
|
},
|
|
60
|
+
|
|
58
61
|
bottomRight: {
|
|
59
|
-
className: _NewStarModule["default"].bottomRight
|
|
60
|
-
align: 'right',
|
|
61
|
-
alignBox: 'column',
|
|
62
|
-
reverse: 'wrap-reverse'
|
|
62
|
+
className: _NewStarModule["default"].bottomRight
|
|
63
|
+
// align: 'right',
|
|
64
|
+
// alignBox: 'column',
|
|
65
|
+
// reverse: 'wrap-reverse'
|
|
63
66
|
}
|
|
64
67
|
};
|
|
68
|
+
|
|
65
69
|
return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
66
|
-
alignBox:
|
|
70
|
+
alignBox: "row",
|
|
67
71
|
isCover: false,
|
|
68
|
-
className: "".concat(_NewStarModule["default"].star, " ").concat(alignPosition[position].className, " ").concat(customClass)
|
|
69
|
-
wrap: alignPosition[position].reverse,
|
|
70
|
-
align: alignPosition[position].align
|
|
72
|
+
className: "".concat(_NewStarModule["default"].star, " ").concat(alignPosition[position].className, " ").concat(customClass)
|
|
71
73
|
}, /*#__PURE__*/_react["default"].createElement(_Icon["default"], {
|
|
72
74
|
name: "ZD-snippetStar",
|
|
73
75
|
iconClass: "".concat(_NewStarModule["default"][palette], " ").concat(_NewStarModule["default"].starOne),
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
.star {
|
|
2
2
|
position: absolute;
|
|
3
|
-
|
|
4
3
|
height: var(--zd_size20);
|
|
5
4
|
width: var(--zd_size21);
|
|
6
5
|
}
|
|
@@ -48,9 +47,15 @@
|
|
|
48
47
|
transform: translate(-45%, 45%);
|
|
49
48
|
left: 0;
|
|
50
49
|
}
|
|
50
|
+
|
|
51
|
+
.stars {
|
|
52
|
+
position: absolute;
|
|
53
|
+
}
|
|
54
|
+
|
|
51
55
|
[dir=ltr] .stars {
|
|
52
56
|
animation: twinkle var(--zd_transition4) infinite, star-scale var(--zd_transition10) infinite;
|
|
53
57
|
}
|
|
58
|
+
|
|
54
59
|
[dir=rtl] .stars {
|
|
55
60
|
animation: twinkle var(--zd_transition4) infinite, star-scale var(--zd_transition10) infinite;
|
|
56
61
|
}
|
|
@@ -85,6 +90,66 @@
|
|
|
85
90
|
animation-delay: 1s;
|
|
86
91
|
}
|
|
87
92
|
|
|
93
|
+
.topLeft .starOne{top:0}
|
|
94
|
+
|
|
95
|
+
[dir=ltr] .topLeft .starOne{
|
|
96
|
+
left:0}
|
|
97
|
+
|
|
98
|
+
[dir=rtl] .topLeft .starOne{right:0}
|
|
99
|
+
.topLeft .starTwo{top:0}
|
|
100
|
+
[dir=ltr] .topLeft .starTwo{
|
|
101
|
+
left:10px}
|
|
102
|
+
[dir=rtl] .topLeft .starTwo{right:10px}
|
|
103
|
+
.topLeft .starThree{top:10px}
|
|
104
|
+
[dir=ltr] .topLeft .starThree{
|
|
105
|
+
left:0}
|
|
106
|
+
[dir=rtl] .topLeft .starThree{right:0}
|
|
107
|
+
|
|
108
|
+
.topRight .starOne{top:0}
|
|
109
|
+
|
|
110
|
+
[dir=ltr] .topRight .starOne{
|
|
111
|
+
right:0}
|
|
112
|
+
|
|
113
|
+
[dir=rtl] .topRight .starOne{left:0}
|
|
114
|
+
.topRight .starTwo{top:0}
|
|
115
|
+
[dir=ltr] .topRight .starTwo{
|
|
116
|
+
right:10px}
|
|
117
|
+
[dir=rtl] .topRight .starTwo{left:10px}
|
|
118
|
+
.topRight .starThree{top:10px}
|
|
119
|
+
[dir=ltr] .topRight .starThree{
|
|
120
|
+
right:0}
|
|
121
|
+
[dir=rtl] .topRight .starThree{left:0}
|
|
122
|
+
|
|
123
|
+
.bottomLeft .starOne{bottom:0}
|
|
124
|
+
|
|
125
|
+
[dir=ltr] .bottomLeft .starOne{
|
|
126
|
+
left:0}
|
|
127
|
+
|
|
128
|
+
[dir=rtl] .bottomLeft .starOne{right:0}
|
|
129
|
+
.bottomLeft .starTwo{bottom:0}
|
|
130
|
+
[dir=ltr] .bottomLeft .starTwo{
|
|
131
|
+
left:10px}
|
|
132
|
+
[dir=rtl] .bottomLeft .starTwo{right:10px}
|
|
133
|
+
.bottomLeft .starThree{bottom:10px}
|
|
134
|
+
[dir=ltr] .bottomLeft .starThree{
|
|
135
|
+
left:0}
|
|
136
|
+
[dir=rtl] .bottomLeft .starThree{right:0}
|
|
137
|
+
|
|
138
|
+
.bottomRight .starOne{bottom:0}
|
|
139
|
+
|
|
140
|
+
[dir=ltr] .bottomRight .starOne{
|
|
141
|
+
right:0}
|
|
142
|
+
|
|
143
|
+
[dir=rtl] .bottomRight .starOne{left:0}
|
|
144
|
+
.bottomRight .starTwo{bottom:0}
|
|
145
|
+
[dir=ltr] .bottomRight .starTwo{
|
|
146
|
+
right:10px}
|
|
147
|
+
[dir=rtl] .bottomRight .starTwo{left:10px}
|
|
148
|
+
.bottomRight .starThree{bottom:10px}
|
|
149
|
+
[dir=ltr] .bottomRight .starThree{
|
|
150
|
+
right:0}
|
|
151
|
+
[dir=rtl] .bottomRight .starThree{left:0}
|
|
152
|
+
|
|
88
153
|
@keyframes twinkle {
|
|
89
154
|
0% {
|
|
90
155
|
opacity: 0.5;
|
|
@@ -755,7 +755,8 @@ var ToggleDropDown = /*#__PURE__*/function (_Component) {
|
|
|
755
755
|
palette: palette,
|
|
756
756
|
a11y: {
|
|
757
757
|
role: isSearch ? 'option' : 'menuitem',
|
|
758
|
-
ariaSelected: selectedId === item[idName]
|
|
758
|
+
ariaSelected: selectedId === item[idName],
|
|
759
|
+
ariaLabel: item[keyName]
|
|
759
760
|
}
|
|
760
761
|
}, ListItemWithIconProps)) : /*#__PURE__*/_react["default"].createElement(_ListItem["default"], _extends({
|
|
761
762
|
key: listIndex,
|
|
@@ -776,7 +777,8 @@ var ToggleDropDown = /*#__PURE__*/function (_Component) {
|
|
|
776
777
|
palette: palette,
|
|
777
778
|
a11y: {
|
|
778
779
|
role: isSearch ? 'option' : 'menuitem',
|
|
779
|
-
ariaSelected: selectedId === item[idName]
|
|
780
|
+
ariaSelected: selectedId === item[idName],
|
|
781
|
+
ariaLabel: item[keyName]
|
|
780
782
|
}
|
|
781
783
|
}, ListItemProps));
|
|
782
784
|
}));
|
|
@@ -822,7 +824,8 @@ var ToggleDropDown = /*#__PURE__*/function (_Component) {
|
|
|
822
824
|
palette: palette,
|
|
823
825
|
a11y: {
|
|
824
826
|
role: isSearch ? 'option' : 'menuitem',
|
|
825
|
-
ariaSelected: selectedId === item[idName]
|
|
827
|
+
ariaSelected: selectedId === item[idName],
|
|
828
|
+
ariaLabel: item[keyName]
|
|
826
829
|
}
|
|
827
830
|
}, ListItemWithIconProps)) : /*#__PURE__*/_react["default"].createElement(_ListItem["default"], _extends({
|
|
828
831
|
key: listIndex,
|
|
@@ -843,7 +846,8 @@ var ToggleDropDown = /*#__PURE__*/function (_Component) {
|
|
|
843
846
|
palette: palette,
|
|
844
847
|
a11y: {
|
|
845
848
|
role: isSearch ? 'option' : 'menuitem',
|
|
846
|
-
ariaSelected: selectedId === item[idName]
|
|
849
|
+
ariaSelected: selectedId === item[idName],
|
|
850
|
+
ariaLabel: item[keyName]
|
|
847
851
|
}
|
|
848
852
|
}, ListItemProps)));
|
|
849
853
|
}), isFetchingOptions && /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zohodesk/dot",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.244",
|
|
4
4
|
"main": "lib/index",
|
|
5
5
|
"module": "es/index.js",
|
|
6
6
|
"private": false,
|
|
@@ -44,42 +44,54 @@
|
|
|
44
44
|
"velocity-react": "1.4.3",
|
|
45
45
|
"@zohodesk/variables": "1.0.0-beta.29",
|
|
46
46
|
"@zohodesk/i18n": "1.0.0-beta.7",
|
|
47
|
-
"@zohodesk/components": "1.0.0-alpha-
|
|
47
|
+
"@zohodesk/components": "1.0.0-alpha-256",
|
|
48
48
|
"@zohodesk/icons": "1.0.0-beta.109",
|
|
49
49
|
"@zohodesk/svg": "1.0.0-beta.49",
|
|
50
50
|
"@zohodesk/virtualizer": "1.0.3",
|
|
51
51
|
"react-sortable-hoc": "^0.8.3",
|
|
52
|
-
"@zohodesk/a11y": "1.3.
|
|
52
|
+
"@zohodesk/a11y": "1.3.7"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
55
|
"velocity-react": "1.4.3",
|
|
56
56
|
"@zohodesk/variables": "1.0.0-beta.29",
|
|
57
57
|
"@zohodesk/i18n": "1.0.0-beta.7",
|
|
58
|
-
"@zohodesk/components": "1.0.0-alpha-
|
|
58
|
+
"@zohodesk/components": "1.0.0-alpha-256",
|
|
59
59
|
"@zohodesk/icons": "1.0.0-beta.109",
|
|
60
60
|
"@zohodesk/svg": "1.0.0-beta.48",
|
|
61
|
-
"@zohodesk/a11y": "1.3.
|
|
61
|
+
"@zohodesk/a11y": "1.3.7"
|
|
62
62
|
},
|
|
63
63
|
"react-cli": {
|
|
64
64
|
"preprocess": {
|
|
65
65
|
"runner": "./preprocess/index.js"
|
|
66
66
|
},
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"
|
|
67
|
+
"css": {
|
|
68
|
+
"plugins": {
|
|
69
|
+
"hasRTL": true
|
|
70
|
+
},
|
|
71
|
+
"exclude": {
|
|
72
|
+
"rtl": [
|
|
73
|
+
"@zohodesk/icons",
|
|
74
|
+
"@zohodesk/variables",
|
|
75
|
+
"@zohodesk/components",
|
|
76
|
+
"/jsapps/components/lib"
|
|
77
|
+
]
|
|
70
78
|
}
|
|
71
79
|
},
|
|
72
80
|
"docs": {
|
|
73
81
|
"disableES5Transpile": true,
|
|
74
82
|
"componentFolder": "./src",
|
|
75
83
|
"cssUniqueness": "false",
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
"
|
|
81
|
-
|
|
82
|
-
|
|
84
|
+
"plugins": {
|
|
85
|
+
"hasRTL": true
|
|
86
|
+
},
|
|
87
|
+
"exclude": {
|
|
88
|
+
"rtl": [
|
|
89
|
+
"@zohodesk/icons",
|
|
90
|
+
"@zohodesk/variables",
|
|
91
|
+
"@zohodesk/components",
|
|
92
|
+
"/jsapps/components/lib"
|
|
93
|
+
]
|
|
94
|
+
},
|
|
83
95
|
"selectorReplace": {
|
|
84
96
|
"before": [
|
|
85
97
|
"data-mode"
|