@zohodesk/components 1.2.52 → 1.2.53
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/.cli/propValidation_report.html +1 -1
- package/README.md +12 -0
- package/es/CheckBox/CheckBox.js +6 -5
- package/es/CheckBox/CheckBox.module.css +5 -2
- package/es/CheckBox/__tests__/__snapshots__/CheckBox.spec.js.snap +64 -64
- package/es/DateTime/DateTime.js +8 -4
- package/es/DateTime/DateWidget.js +8 -1
- package/es/DateTime/props/propTypes.js +5 -0
- package/es/ListItem/__tests__/__snapshots__/ListItemWithCheckBox.spec.js.snap +2 -2
- package/es/ListItem/__tests__/__snapshots__/ListItemWithRadio.spec.js.snap +1 -1
- package/es/MultiSelect/AdvancedGroupMultiSelect.js +4 -2
- package/es/MultiSelect/AdvancedMultiSelect.js +4 -2
- package/es/MultiSelect/MultiSelect.js +4 -2
- package/es/MultiSelect/props/propTypes.js +6 -3
- package/es/Radio/Radio.js +9 -7
- package/es/Radio/Radio.module.css +1 -1
- package/es/Radio/__tests__/__snapshots__/Radio.spec.js.snap +77 -77
- package/es/Select/GroupSelect.js +10 -3
- package/es/Select/props/defaultProps.js +2 -1
- package/es/Select/props/propTypes.js +5 -1
- package/es/Textarea/Textarea.js +4 -2
- package/es/Textarea/Textarea.module.css +1 -1
- package/es/Textarea/__tests__/__snapshots__/Textarea.spec.js.snap +41 -41
- package/es/Textarea/props/propTypes.js +2 -1
- package/lib/CheckBox/CheckBox.js +5 -4
- package/lib/CheckBox/CheckBox.module.css +5 -2
- package/lib/CheckBox/__tests__/__snapshots__/CheckBox.spec.js.snap +64 -64
- package/lib/DateTime/DateTime.js +11 -5
- package/lib/DateTime/DateWidget.js +8 -1
- package/lib/DateTime/props/propTypes.js +5 -0
- package/lib/ListItem/__tests__/__snapshots__/ListItemWithCheckBox.spec.js.snap +2 -2
- package/lib/ListItem/__tests__/__snapshots__/ListItemWithRadio.spec.js.snap +1 -1
- package/lib/MultiSelect/AdvancedGroupMultiSelect.js +4 -2
- package/lib/MultiSelect/AdvancedMultiSelect.js +4 -2
- package/lib/MultiSelect/MultiSelect.js +4 -2
- package/lib/MultiSelect/props/propTypes.js +8 -6
- package/lib/Radio/Radio.js +10 -7
- package/lib/Radio/Radio.module.css +1 -1
- package/lib/Radio/__tests__/__snapshots__/Radio.spec.js.snap +77 -77
- package/lib/Select/GroupSelect.js +12 -5
- package/lib/Select/props/defaultProps.js +2 -1
- package/lib/Select/props/propTypes.js +5 -1
- package/lib/Textarea/Textarea.js +4 -2
- package/lib/Textarea/Textarea.module.css +1 -1
- package/lib/Textarea/__tests__/__snapshots__/Textarea.spec.js.snap +41 -41
- package/lib/Textarea/props/propTypes.js +2 -1
- package/package.json +3 -3
- package/result.json +1 -1
package/README.md
CHANGED
|
@@ -32,6 +32,18 @@ In this Package, we Provide Some Basic Components to Build Web App
|
|
|
32
32
|
- TextBoxIcon
|
|
33
33
|
- Tooltip
|
|
34
34
|
|
|
35
|
+
# 1.2.53
|
|
36
|
+
|
|
37
|
+
- **CheckBox** - Disabled State CheckBox Color Fixed
|
|
38
|
+
- **Radio** - ReadOnly State Radio Cursor and color Fixed
|
|
39
|
+
- **Textarea** - isFocus Prop added
|
|
40
|
+
- **AdvancedGroupMultiSelect** - isFocus Prop added
|
|
41
|
+
- **AdvancedMultiSelect** - isFocus Prop added
|
|
42
|
+
- **MultiSelect** - isFocus Prop added
|
|
43
|
+
- **DateWidget** - onDropboxClose,renderCustomHeader,renderCustomFooter Props added
|
|
44
|
+
- **DateTime** - renderCustomHeader,renderCustomFooter Props added
|
|
45
|
+
- **GroupSelect** - customProps supported
|
|
46
|
+
|
|
35
47
|
# 1.2.52
|
|
36
48
|
|
|
37
49
|
- **Typography** - component added in v0
|
package/es/CheckBox/CheckBox.js
CHANGED
|
@@ -74,17 +74,18 @@ export default class CheckBox extends React.Component {
|
|
|
74
74
|
role = 'checkbox',
|
|
75
75
|
ariaChecked = checked
|
|
76
76
|
} = a11y;
|
|
77
|
+
const isEditable = !(isReadOnly || disabled);
|
|
77
78
|
return /*#__PURE__*/React.createElement(Container, {
|
|
78
79
|
dataId: dataId,
|
|
79
80
|
isCover: false,
|
|
80
81
|
isInline: text ? false : true,
|
|
81
82
|
alignBox: "row",
|
|
82
83
|
align: "vertical",
|
|
83
|
-
className: `${style.container} ${accessMode} ${
|
|
84
|
-
${checked ? `${style[`checked${palette}`]}` : ''}
|
|
84
|
+
className: `${style.container} ${accessMode} ${!isEditable ? '' : `${style[palette]}`}
|
|
85
|
+
${checked ? `${style[`checked${palette}`]}` : ''} ${customCheckBox}`,
|
|
85
86
|
"data-title": toolTip,
|
|
86
|
-
onClick:
|
|
87
|
-
tabIndex:
|
|
87
|
+
onClick: !isEditable ? null : this.onChange,
|
|
88
|
+
tabIndex: !isEditable || ariaHidden ? '-1' : '0',
|
|
88
89
|
"aria-checked": ariaChecked,
|
|
89
90
|
eleRef: this.handleGetContainerRef,
|
|
90
91
|
role: role,
|
|
@@ -94,7 +95,7 @@ export default class CheckBox extends React.Component {
|
|
|
94
95
|
"data-selector-id": dataSelectorId || id,
|
|
95
96
|
...CheckBoxProps
|
|
96
97
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
97
|
-
className: `${style.boxContainer} ${style[size]} ${customCBoxSize} ${isFilled ? style.filled : ''}`
|
|
98
|
+
className: `${style.boxContainer} ${style[size]} ${customCBoxSize} ${isFilled ? style.filled : ''} ${!isEditable ? `${style[`disabled`]}` : ''}`
|
|
98
99
|
}, /*#__PURE__*/React.createElement("input", {
|
|
99
100
|
type: "hidden",
|
|
100
101
|
id: id,
|
|
@@ -97,10 +97,10 @@
|
|
|
97
97
|
margin-right: var(--zd_size6) ;
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
-
.checkedprimary,
|
|
100
|
+
.checkedprimary,
|
|
101
101
|
.checkeddanger {
|
|
102
102
|
stroke: var(--checkbox_checked_stroke_color);
|
|
103
|
-
}
|
|
103
|
+
}
|
|
104
104
|
.primary:hover
|
|
105
105
|
/* .primary:focus */
|
|
106
106
|
{
|
|
@@ -138,6 +138,9 @@
|
|
|
138
138
|
.checkeddangerLabel {
|
|
139
139
|
--checkbox_checked_active_color: var(--zdt_checkbox_danger_stroke_border);
|
|
140
140
|
}
|
|
141
|
+
.disabled {
|
|
142
|
+
opacity: 0.7
|
|
143
|
+
}
|
|
141
144
|
@keyframes tickAnimate {
|
|
142
145
|
0% {
|
|
143
146
|
stroke-dashoffset: 40;
|
|
@@ -5,7 +5,7 @@ exports[`CheckBox component Should be disable 1`] = `
|
|
|
5
5
|
<div
|
|
6
6
|
aria-checked="true"
|
|
7
7
|
class="container disabled
|
|
8
|
-
checkedprimary
|
|
8
|
+
checkedprimary flex rowdir vCenter"
|
|
9
9
|
data-id="checkBox"
|
|
10
10
|
data-selector-id="container"
|
|
11
11
|
data-test-id="checkBox"
|
|
@@ -13,7 +13,7 @@ exports[`CheckBox component Should be disable 1`] = `
|
|
|
13
13
|
tabindex="-1"
|
|
14
14
|
>
|
|
15
15
|
<div
|
|
16
|
-
class="boxContainer medium filled shrinkOff"
|
|
16
|
+
class="boxContainer medium filled disabled shrinkOff"
|
|
17
17
|
data-id="boxComponent"
|
|
18
18
|
data-selector-id="box"
|
|
19
19
|
data-test-id="boxComponent"
|
|
@@ -74,7 +74,7 @@ exports[`CheckBox component Should be isReadOnly 1`] = `
|
|
|
74
74
|
<div
|
|
75
75
|
aria-checked="false"
|
|
76
76
|
class="container readonly
|
|
77
|
-
|
|
77
|
+
inflex rowdir vCenter"
|
|
78
78
|
data-id="checkBox"
|
|
79
79
|
data-selector-id="container"
|
|
80
80
|
data-test-id="checkBox"
|
|
@@ -82,7 +82,7 @@ exports[`CheckBox component Should be isReadOnly 1`] = `
|
|
|
82
82
|
tabindex="-1"
|
|
83
83
|
>
|
|
84
84
|
<div
|
|
85
|
-
class="boxContainer medium filled shrinkOff"
|
|
85
|
+
class="boxContainer medium filled disabled shrinkOff"
|
|
86
86
|
data-id="boxComponent"
|
|
87
87
|
data-selector-id="box"
|
|
88
88
|
data-test-id="boxComponent"
|
|
@@ -118,7 +118,7 @@ exports[`CheckBox component Should be render ID 1`] = `
|
|
|
118
118
|
<div
|
|
119
119
|
aria-checked="false"
|
|
120
120
|
class="container pointer primary
|
|
121
|
-
|
|
121
|
+
flex rowdir vCenter"
|
|
122
122
|
data-id="checkBox"
|
|
123
123
|
data-selector-id="container"
|
|
124
124
|
data-test-id="checkBox"
|
|
@@ -126,7 +126,7 @@ exports[`CheckBox component Should be render ID 1`] = `
|
|
|
126
126
|
tabindex="0"
|
|
127
127
|
>
|
|
128
128
|
<div
|
|
129
|
-
class="boxContainer medium filled
|
|
129
|
+
class="boxContainer medium filled shrinkOff"
|
|
130
130
|
data-id="boxComponent"
|
|
131
131
|
data-selector-id="box"
|
|
132
132
|
data-test-id="boxComponent"
|
|
@@ -183,7 +183,7 @@ exports[`CheckBox component Should be render activeStyle is minus 1`] = `
|
|
|
183
183
|
<div
|
|
184
184
|
aria-checked="false"
|
|
185
185
|
class="container pointer primary
|
|
186
|
-
|
|
186
|
+
inflex rowdir vCenter"
|
|
187
187
|
data-id="checkBox"
|
|
188
188
|
data-selector-id="container"
|
|
189
189
|
data-test-id="checkBox"
|
|
@@ -191,7 +191,7 @@ exports[`CheckBox component Should be render activeStyle is minus 1`] = `
|
|
|
191
191
|
tabindex="0"
|
|
192
192
|
>
|
|
193
193
|
<div
|
|
194
|
-
class="boxContainer medium filled
|
|
194
|
+
class="boxContainer medium filled shrinkOff"
|
|
195
195
|
data-id="boxComponent"
|
|
196
196
|
data-selector-id="box"
|
|
197
197
|
data-test-id="boxComponent"
|
|
@@ -227,7 +227,7 @@ exports[`CheckBox component Should be render dataSelectorId 1`] = `
|
|
|
227
227
|
<div
|
|
228
228
|
aria-checked="false"
|
|
229
229
|
class="container pointer primary
|
|
230
|
-
|
|
230
|
+
inflex rowdir vCenter"
|
|
231
231
|
data-id="checkBox"
|
|
232
232
|
data-selector-id="container"
|
|
233
233
|
data-test-id="checkBox"
|
|
@@ -235,7 +235,7 @@ exports[`CheckBox component Should be render dataSelectorId 1`] = `
|
|
|
235
235
|
tabindex="0"
|
|
236
236
|
>
|
|
237
237
|
<div
|
|
238
|
-
class="boxContainer medium filled
|
|
238
|
+
class="boxContainer medium filled shrinkOff"
|
|
239
239
|
data-id="boxComponent"
|
|
240
240
|
data-selector-id="box"
|
|
241
241
|
data-test-id="boxComponent"
|
|
@@ -271,7 +271,7 @@ exports[`CheckBox component Should be render disabledTitle and title 1`] = `
|
|
|
271
271
|
<div
|
|
272
272
|
aria-checked="false"
|
|
273
273
|
class="container disabled
|
|
274
|
-
|
|
274
|
+
flex rowdir vCenter"
|
|
275
275
|
data-id="checkBox"
|
|
276
276
|
data-selector-id="container"
|
|
277
277
|
data-test-id="checkBox"
|
|
@@ -280,7 +280,7 @@ exports[`CheckBox component Should be render disabledTitle and title 1`] = `
|
|
|
280
280
|
tabindex="-1"
|
|
281
281
|
>
|
|
282
282
|
<div
|
|
283
|
-
class="boxContainer medium filled shrinkOff"
|
|
283
|
+
class="boxContainer medium filled disabled shrinkOff"
|
|
284
284
|
data-id="boxComponent"
|
|
285
285
|
data-selector-id="box"
|
|
286
286
|
data-test-id="boxComponent"
|
|
@@ -335,7 +335,7 @@ exports[`CheckBox component Should be render isClipped is false 1`] = `
|
|
|
335
335
|
<div
|
|
336
336
|
aria-checked="false"
|
|
337
337
|
class="container pointer primary
|
|
338
|
-
|
|
338
|
+
inflex rowdir vCenter"
|
|
339
339
|
data-id="checkBox"
|
|
340
340
|
data-selector-id="container"
|
|
341
341
|
data-test-id="checkBox"
|
|
@@ -343,7 +343,7 @@ exports[`CheckBox component Should be render isClipped is false 1`] = `
|
|
|
343
343
|
tabindex="0"
|
|
344
344
|
>
|
|
345
345
|
<div
|
|
346
|
-
class="boxContainer medium filled
|
|
346
|
+
class="boxContainer medium filled shrinkOff"
|
|
347
347
|
data-id="boxComponent"
|
|
348
348
|
data-selector-id="box"
|
|
349
349
|
data-test-id="boxComponent"
|
|
@@ -379,7 +379,7 @@ exports[`CheckBox component Should be render isFilled 1`] = `
|
|
|
379
379
|
<div
|
|
380
380
|
aria-checked="false"
|
|
381
381
|
class="container pointer primary
|
|
382
|
-
|
|
382
|
+
inflex rowdir vCenter"
|
|
383
383
|
data-id="checkBox"
|
|
384
384
|
data-selector-id="container"
|
|
385
385
|
data-test-id="checkBox"
|
|
@@ -387,7 +387,7 @@ exports[`CheckBox component Should be render isFilled 1`] = `
|
|
|
387
387
|
tabindex="0"
|
|
388
388
|
>
|
|
389
389
|
<div
|
|
390
|
-
class="boxContainer medium filled
|
|
390
|
+
class="boxContainer medium filled shrinkOff"
|
|
391
391
|
data-id="boxComponent"
|
|
392
392
|
data-selector-id="box"
|
|
393
393
|
data-test-id="boxComponent"
|
|
@@ -423,7 +423,7 @@ exports[`CheckBox component Should be render name 1`] = `
|
|
|
423
423
|
<div
|
|
424
424
|
aria-checked="false"
|
|
425
425
|
class="container pointer primary
|
|
426
|
-
|
|
426
|
+
inflex rowdir vCenter"
|
|
427
427
|
data-id="checkBox"
|
|
428
428
|
data-selector-id="container"
|
|
429
429
|
data-test-id="checkBox"
|
|
@@ -431,7 +431,7 @@ exports[`CheckBox component Should be render name 1`] = `
|
|
|
431
431
|
tabindex="0"
|
|
432
432
|
>
|
|
433
433
|
<div
|
|
434
|
-
class="boxContainer medium filled
|
|
434
|
+
class="boxContainer medium filled shrinkOff"
|
|
435
435
|
data-id="boxComponent"
|
|
436
436
|
data-selector-id="box"
|
|
437
437
|
data-test-id="boxComponent"
|
|
@@ -468,7 +468,7 @@ exports[`CheckBox component Should be render text 1`] = `
|
|
|
468
468
|
<div
|
|
469
469
|
aria-checked="false"
|
|
470
470
|
class="container pointer primary
|
|
471
|
-
|
|
471
|
+
flex rowdir vCenter"
|
|
472
472
|
data-id="checkBox"
|
|
473
473
|
data-selector-id="container"
|
|
474
474
|
data-test-id="checkBox"
|
|
@@ -476,7 +476,7 @@ exports[`CheckBox component Should be render text 1`] = `
|
|
|
476
476
|
tabindex="0"
|
|
477
477
|
>
|
|
478
478
|
<div
|
|
479
|
-
class="boxContainer medium filled
|
|
479
|
+
class="boxContainer medium filled shrinkOff"
|
|
480
480
|
data-id="boxComponent"
|
|
481
481
|
data-selector-id="box"
|
|
482
482
|
data-test-id="boxComponent"
|
|
@@ -531,7 +531,7 @@ exports[`CheckBox component Should be render title 1`] = `
|
|
|
531
531
|
<div
|
|
532
532
|
aria-checked="false"
|
|
533
533
|
class="container pointer primary
|
|
534
|
-
|
|
534
|
+
flex rowdir vCenter"
|
|
535
535
|
data-id="checkBox"
|
|
536
536
|
data-selector-id="container"
|
|
537
537
|
data-test-id="checkBox"
|
|
@@ -540,7 +540,7 @@ exports[`CheckBox component Should be render title 1`] = `
|
|
|
540
540
|
tabindex="0"
|
|
541
541
|
>
|
|
542
542
|
<div
|
|
543
|
-
class="boxContainer medium filled
|
|
543
|
+
class="boxContainer medium filled shrinkOff"
|
|
544
544
|
data-id="boxComponent"
|
|
545
545
|
data-selector-id="box"
|
|
546
546
|
data-test-id="boxComponent"
|
|
@@ -595,7 +595,7 @@ exports[`CheckBox component Should be render with the basic set of default props
|
|
|
595
595
|
<div
|
|
596
596
|
aria-checked="false"
|
|
597
597
|
class="container pointer primary
|
|
598
|
-
|
|
598
|
+
inflex rowdir vCenter"
|
|
599
599
|
data-id="checkBox"
|
|
600
600
|
data-selector-id="container"
|
|
601
601
|
data-test-id="checkBox"
|
|
@@ -603,7 +603,7 @@ exports[`CheckBox component Should be render with the basic set of default props
|
|
|
603
603
|
tabindex="0"
|
|
604
604
|
>
|
|
605
605
|
<div
|
|
606
|
-
class="boxContainer medium filled
|
|
606
|
+
class="boxContainer medium filled shrinkOff"
|
|
607
607
|
data-id="boxComponent"
|
|
608
608
|
data-selector-id="box"
|
|
609
609
|
data-test-id="boxComponent"
|
|
@@ -639,7 +639,7 @@ exports[`CheckBox component Should render active - danger 1`] = `
|
|
|
639
639
|
<div
|
|
640
640
|
aria-checked="true"
|
|
641
641
|
class="container pointer danger
|
|
642
|
-
checkeddanger
|
|
642
|
+
checkeddanger flex rowdir vCenter"
|
|
643
643
|
data-id="checkBox"
|
|
644
644
|
data-selector-id="container"
|
|
645
645
|
data-test-id="checkBox"
|
|
@@ -647,7 +647,7 @@ exports[`CheckBox component Should render active - danger 1`] = `
|
|
|
647
647
|
tabindex="0"
|
|
648
648
|
>
|
|
649
649
|
<div
|
|
650
|
-
class="boxContainer medium filled
|
|
650
|
+
class="boxContainer medium filled shrinkOff"
|
|
651
651
|
data-id="boxComponent"
|
|
652
652
|
data-selector-id="box"
|
|
653
653
|
data-test-id="boxComponent"
|
|
@@ -708,7 +708,7 @@ exports[`CheckBox component Should render active - primary 1`] = `
|
|
|
708
708
|
<div
|
|
709
709
|
aria-checked="true"
|
|
710
710
|
class="container pointer primary
|
|
711
|
-
checkedprimary
|
|
711
|
+
checkedprimary flex rowdir vCenter"
|
|
712
712
|
data-id="checkBox"
|
|
713
713
|
data-selector-id="container"
|
|
714
714
|
data-test-id="checkBox"
|
|
@@ -716,7 +716,7 @@ exports[`CheckBox component Should render active - primary 1`] = `
|
|
|
716
716
|
tabindex="0"
|
|
717
717
|
>
|
|
718
718
|
<div
|
|
719
|
-
class="boxContainer medium filled
|
|
719
|
+
class="boxContainer medium filled shrinkOff"
|
|
720
720
|
data-id="boxComponent"
|
|
721
721
|
data-selector-id="box"
|
|
722
722
|
data-test-id="boxComponent"
|
|
@@ -777,7 +777,7 @@ exports[`CheckBox component Should render labelSize - default 1`] = `
|
|
|
777
777
|
<div
|
|
778
778
|
aria-checked="false"
|
|
779
779
|
class="container pointer primary
|
|
780
|
-
|
|
780
|
+
flex rowdir vCenter"
|
|
781
781
|
data-id="checkBox"
|
|
782
782
|
data-selector-id="container"
|
|
783
783
|
data-test-id="checkBox"
|
|
@@ -785,7 +785,7 @@ exports[`CheckBox component Should render labelSize - default 1`] = `
|
|
|
785
785
|
tabindex="0"
|
|
786
786
|
>
|
|
787
787
|
<div
|
|
788
|
-
class="boxContainer medium filled
|
|
788
|
+
class="boxContainer medium filled shrinkOff"
|
|
789
789
|
data-id="boxComponent"
|
|
790
790
|
data-selector-id="box"
|
|
791
791
|
data-test-id="boxComponent"
|
|
@@ -840,7 +840,7 @@ exports[`CheckBox component Should render labelSize - large 1`] = `
|
|
|
840
840
|
<div
|
|
841
841
|
aria-checked="false"
|
|
842
842
|
class="container pointer primary
|
|
843
|
-
|
|
843
|
+
flex rowdir vCenter"
|
|
844
844
|
data-id="checkBox"
|
|
845
845
|
data-selector-id="container"
|
|
846
846
|
data-test-id="checkBox"
|
|
@@ -848,7 +848,7 @@ exports[`CheckBox component Should render labelSize - large 1`] = `
|
|
|
848
848
|
tabindex="0"
|
|
849
849
|
>
|
|
850
850
|
<div
|
|
851
|
-
class="boxContainer medium filled
|
|
851
|
+
class="boxContainer medium filled shrinkOff"
|
|
852
852
|
data-id="boxComponent"
|
|
853
853
|
data-selector-id="box"
|
|
854
854
|
data-test-id="boxComponent"
|
|
@@ -903,7 +903,7 @@ exports[`CheckBox component Should render labelSize - medium 1`] = `
|
|
|
903
903
|
<div
|
|
904
904
|
aria-checked="false"
|
|
905
905
|
class="container pointer primary
|
|
906
|
-
|
|
906
|
+
flex rowdir vCenter"
|
|
907
907
|
data-id="checkBox"
|
|
908
908
|
data-selector-id="container"
|
|
909
909
|
data-test-id="checkBox"
|
|
@@ -911,7 +911,7 @@ exports[`CheckBox component Should render labelSize - medium 1`] = `
|
|
|
911
911
|
tabindex="0"
|
|
912
912
|
>
|
|
913
913
|
<div
|
|
914
|
-
class="boxContainer medium filled
|
|
914
|
+
class="boxContainer medium filled shrinkOff"
|
|
915
915
|
data-id="boxComponent"
|
|
916
916
|
data-selector-id="box"
|
|
917
917
|
data-test-id="boxComponent"
|
|
@@ -966,7 +966,7 @@ exports[`CheckBox component Should render labelSize - primary 1`] = `
|
|
|
966
966
|
<div
|
|
967
967
|
aria-checked="false"
|
|
968
968
|
class="container pointer primary
|
|
969
|
-
|
|
969
|
+
flex rowdir vCenter"
|
|
970
970
|
data-id="checkBox"
|
|
971
971
|
data-selector-id="container"
|
|
972
972
|
data-test-id="checkBox"
|
|
@@ -974,7 +974,7 @@ exports[`CheckBox component Should render labelSize - primary 1`] = `
|
|
|
974
974
|
tabindex="0"
|
|
975
975
|
>
|
|
976
976
|
<div
|
|
977
|
-
class="boxContainer medium filled
|
|
977
|
+
class="boxContainer medium filled shrinkOff"
|
|
978
978
|
data-id="boxComponent"
|
|
979
979
|
data-selector-id="box"
|
|
980
980
|
data-test-id="boxComponent"
|
|
@@ -1029,7 +1029,7 @@ exports[`CheckBox component Should render labelSize - small 1`] = `
|
|
|
1029
1029
|
<div
|
|
1030
1030
|
aria-checked="false"
|
|
1031
1031
|
class="container pointer primary
|
|
1032
|
-
|
|
1032
|
+
flex rowdir vCenter"
|
|
1033
1033
|
data-id="checkBox"
|
|
1034
1034
|
data-selector-id="container"
|
|
1035
1035
|
data-test-id="checkBox"
|
|
@@ -1037,7 +1037,7 @@ exports[`CheckBox component Should render labelSize - small 1`] = `
|
|
|
1037
1037
|
tabindex="0"
|
|
1038
1038
|
>
|
|
1039
1039
|
<div
|
|
1040
|
-
class="boxContainer medium filled
|
|
1040
|
+
class="boxContainer medium filled shrinkOff"
|
|
1041
1041
|
data-id="boxComponent"
|
|
1042
1042
|
data-selector-id="box"
|
|
1043
1043
|
data-test-id="boxComponent"
|
|
@@ -1092,7 +1092,7 @@ exports[`CheckBox component Should render palette and checkbox with checked - da
|
|
|
1092
1092
|
<div
|
|
1093
1093
|
aria-checked="true"
|
|
1094
1094
|
class="container pointer danger
|
|
1095
|
-
checkeddanger
|
|
1095
|
+
checkeddanger flex rowdir vCenter"
|
|
1096
1096
|
data-id="checkBox"
|
|
1097
1097
|
data-selector-id="container"
|
|
1098
1098
|
data-test-id="checkBox"
|
|
@@ -1100,7 +1100,7 @@ exports[`CheckBox component Should render palette and checkbox with checked - da
|
|
|
1100
1100
|
tabindex="0"
|
|
1101
1101
|
>
|
|
1102
1102
|
<div
|
|
1103
|
-
class="boxContainer medium filled
|
|
1103
|
+
class="boxContainer medium filled shrinkOff"
|
|
1104
1104
|
data-id="boxComponent"
|
|
1105
1105
|
data-selector-id="box"
|
|
1106
1106
|
data-test-id="boxComponent"
|
|
@@ -1161,7 +1161,7 @@ exports[`CheckBox component Should render palette and checkbox with checked - pr
|
|
|
1161
1161
|
<div
|
|
1162
1162
|
aria-checked="true"
|
|
1163
1163
|
class="container pointer primary
|
|
1164
|
-
checkedprimary
|
|
1164
|
+
checkedprimary flex rowdir vCenter"
|
|
1165
1165
|
data-id="checkBox"
|
|
1166
1166
|
data-selector-id="container"
|
|
1167
1167
|
data-test-id="checkBox"
|
|
@@ -1169,7 +1169,7 @@ exports[`CheckBox component Should render palette and checkbox with checked - pr
|
|
|
1169
1169
|
tabindex="0"
|
|
1170
1170
|
>
|
|
1171
1171
|
<div
|
|
1172
|
-
class="boxContainer medium filled
|
|
1172
|
+
class="boxContainer medium filled shrinkOff"
|
|
1173
1173
|
data-id="boxComponent"
|
|
1174
1174
|
data-selector-id="box"
|
|
1175
1175
|
data-test-id="boxComponent"
|
|
@@ -1230,7 +1230,7 @@ exports[`CheckBox component Should render size - danger 1`] = `
|
|
|
1230
1230
|
<div
|
|
1231
1231
|
aria-checked="false"
|
|
1232
1232
|
class="container pointer primary
|
|
1233
|
-
|
|
1233
|
+
flex rowdir vCenter"
|
|
1234
1234
|
data-id="checkBox"
|
|
1235
1235
|
data-selector-id="container"
|
|
1236
1236
|
data-test-id="checkBox"
|
|
@@ -1238,7 +1238,7 @@ exports[`CheckBox component Should render size - danger 1`] = `
|
|
|
1238
1238
|
tabindex="0"
|
|
1239
1239
|
>
|
|
1240
1240
|
<div
|
|
1241
|
-
class="boxContainer medium filled
|
|
1241
|
+
class="boxContainer medium filled shrinkOff"
|
|
1242
1242
|
data-id="boxComponent"
|
|
1243
1243
|
data-selector-id="box"
|
|
1244
1244
|
data-test-id="boxComponent"
|
|
@@ -1293,7 +1293,7 @@ exports[`CheckBox component Should render size - default 1`] = `
|
|
|
1293
1293
|
<div
|
|
1294
1294
|
aria-checked="false"
|
|
1295
1295
|
class="container pointer primary
|
|
1296
|
-
|
|
1296
|
+
flex rowdir vCenter"
|
|
1297
1297
|
data-id="checkBox"
|
|
1298
1298
|
data-selector-id="container"
|
|
1299
1299
|
data-test-id="checkBox"
|
|
@@ -1301,7 +1301,7 @@ exports[`CheckBox component Should render size - default 1`] = `
|
|
|
1301
1301
|
tabindex="0"
|
|
1302
1302
|
>
|
|
1303
1303
|
<div
|
|
1304
|
-
class="boxContainer medium filled
|
|
1304
|
+
class="boxContainer medium filled shrinkOff"
|
|
1305
1305
|
data-id="boxComponent"
|
|
1306
1306
|
data-selector-id="box"
|
|
1307
1307
|
data-test-id="boxComponent"
|
|
@@ -1356,7 +1356,7 @@ exports[`CheckBox component Should render size - mandatory 1`] = `
|
|
|
1356
1356
|
<div
|
|
1357
1357
|
aria-checked="false"
|
|
1358
1358
|
class="container pointer primary
|
|
1359
|
-
|
|
1359
|
+
flex rowdir vCenter"
|
|
1360
1360
|
data-id="checkBox"
|
|
1361
1361
|
data-selector-id="container"
|
|
1362
1362
|
data-test-id="checkBox"
|
|
@@ -1364,7 +1364,7 @@ exports[`CheckBox component Should render size - mandatory 1`] = `
|
|
|
1364
1364
|
tabindex="0"
|
|
1365
1365
|
>
|
|
1366
1366
|
<div
|
|
1367
|
-
class="boxContainer medium filled
|
|
1367
|
+
class="boxContainer medium filled shrinkOff"
|
|
1368
1368
|
data-id="boxComponent"
|
|
1369
1369
|
data-selector-id="box"
|
|
1370
1370
|
data-test-id="boxComponent"
|
|
@@ -1419,7 +1419,7 @@ exports[`CheckBox component Should render size - medium 1`] = `
|
|
|
1419
1419
|
<div
|
|
1420
1420
|
aria-checked="true"
|
|
1421
1421
|
class="container pointer primary
|
|
1422
|
-
checkedprimary
|
|
1422
|
+
checkedprimary inflex rowdir vCenter"
|
|
1423
1423
|
data-id="checkBox"
|
|
1424
1424
|
data-selector-id="container"
|
|
1425
1425
|
data-test-id="checkBox"
|
|
@@ -1427,7 +1427,7 @@ exports[`CheckBox component Should render size - medium 1`] = `
|
|
|
1427
1427
|
tabindex="0"
|
|
1428
1428
|
>
|
|
1429
1429
|
<div
|
|
1430
|
-
class="boxContainer medium filled
|
|
1430
|
+
class="boxContainer medium filled shrinkOff"
|
|
1431
1431
|
data-id="boxComponent"
|
|
1432
1432
|
data-selector-id="box"
|
|
1433
1433
|
data-test-id="boxComponent"
|
|
@@ -1469,7 +1469,7 @@ exports[`CheckBox component Should render size - primary 1`] = `
|
|
|
1469
1469
|
<div
|
|
1470
1470
|
aria-checked="false"
|
|
1471
1471
|
class="container pointer primary
|
|
1472
|
-
|
|
1472
|
+
flex rowdir vCenter"
|
|
1473
1473
|
data-id="checkBox"
|
|
1474
1474
|
data-selector-id="container"
|
|
1475
1475
|
data-test-id="checkBox"
|
|
@@ -1477,7 +1477,7 @@ exports[`CheckBox component Should render size - primary 1`] = `
|
|
|
1477
1477
|
tabindex="0"
|
|
1478
1478
|
>
|
|
1479
1479
|
<div
|
|
1480
|
-
class="boxContainer medium filled
|
|
1480
|
+
class="boxContainer medium filled shrinkOff"
|
|
1481
1481
|
data-id="boxComponent"
|
|
1482
1482
|
data-selector-id="box"
|
|
1483
1483
|
data-test-id="boxComponent"
|
|
@@ -1532,7 +1532,7 @@ exports[`CheckBox component Should render size - secondary 1`] = `
|
|
|
1532
1532
|
<div
|
|
1533
1533
|
aria-checked="false"
|
|
1534
1534
|
class="container pointer primary
|
|
1535
|
-
|
|
1535
|
+
flex rowdir vCenter"
|
|
1536
1536
|
data-id="checkBox"
|
|
1537
1537
|
data-selector-id="container"
|
|
1538
1538
|
data-test-id="checkBox"
|
|
@@ -1540,7 +1540,7 @@ exports[`CheckBox component Should render size - secondary 1`] = `
|
|
|
1540
1540
|
tabindex="0"
|
|
1541
1541
|
>
|
|
1542
1542
|
<div
|
|
1543
|
-
class="boxContainer medium filled
|
|
1543
|
+
class="boxContainer medium filled shrinkOff"
|
|
1544
1544
|
data-id="boxComponent"
|
|
1545
1545
|
data-selector-id="box"
|
|
1546
1546
|
data-test-id="boxComponent"
|
|
@@ -1595,7 +1595,7 @@ exports[`CheckBox component Should render size - small 1`] = `
|
|
|
1595
1595
|
<div
|
|
1596
1596
|
aria-checked="true"
|
|
1597
1597
|
class="container pointer primary
|
|
1598
|
-
checkedprimary
|
|
1598
|
+
checkedprimary inflex rowdir vCenter"
|
|
1599
1599
|
data-id="checkBox"
|
|
1600
1600
|
data-selector-id="container"
|
|
1601
1601
|
data-test-id="checkBox"
|
|
@@ -1603,7 +1603,7 @@ exports[`CheckBox component Should render size - small 1`] = `
|
|
|
1603
1603
|
tabindex="0"
|
|
1604
1604
|
>
|
|
1605
1605
|
<div
|
|
1606
|
-
class="boxContainer small filled
|
|
1606
|
+
class="boxContainer small filled shrinkOff"
|
|
1607
1607
|
data-id="boxComponent"
|
|
1608
1608
|
data-selector-id="box"
|
|
1609
1609
|
data-test-id="boxComponent"
|
|
@@ -1648,7 +1648,7 @@ exports[`CheckBox component rendering ally ariaLabel , ariaLabelledby, ariaHidde
|
|
|
1648
1648
|
aria-label="ariaLabelCheckBox"
|
|
1649
1649
|
aria-labelledby="ariaLabelledbyCheckBox"
|
|
1650
1650
|
class="container pointer primary
|
|
1651
|
-
checkedprimary
|
|
1651
|
+
checkedprimary inflex rowdir vCenter"
|
|
1652
1652
|
data-id="checkBox"
|
|
1653
1653
|
data-selector-id="container"
|
|
1654
1654
|
data-test-id="checkBox"
|
|
@@ -1656,7 +1656,7 @@ exports[`CheckBox component rendering ally ariaLabel , ariaLabelledby, ariaHidde
|
|
|
1656
1656
|
tabindex="0"
|
|
1657
1657
|
>
|
|
1658
1658
|
<div
|
|
1659
|
-
class="boxContainer medium filled
|
|
1659
|
+
class="boxContainer medium filled shrinkOff"
|
|
1660
1660
|
data-id="boxComponent"
|
|
1661
1661
|
data-selector-id="box"
|
|
1662
1662
|
data-test-id="boxComponent"
|
|
@@ -1701,7 +1701,7 @@ exports[`CheckBox component rendering ally ariaLabel , ariaLabelledby, ariaHidde
|
|
|
1701
1701
|
aria-label="ariaLabelCheckBox"
|
|
1702
1702
|
aria-labelledby="ariaLabelledbyCheckBox"
|
|
1703
1703
|
class="container pointer primary
|
|
1704
|
-
checkedprimary
|
|
1704
|
+
checkedprimary inflex rowdir vCenter"
|
|
1705
1705
|
data-id="checkBox"
|
|
1706
1706
|
data-selector-id="container"
|
|
1707
1707
|
data-test-id="checkBox"
|
|
@@ -1709,7 +1709,7 @@ exports[`CheckBox component rendering ally ariaLabel , ariaLabelledby, ariaHidde
|
|
|
1709
1709
|
tabindex="-1"
|
|
1710
1710
|
>
|
|
1711
1711
|
<div
|
|
1712
|
-
class="boxContainer medium filled
|
|
1712
|
+
class="boxContainer medium filled shrinkOff"
|
|
1713
1713
|
data-id="boxComponent"
|
|
1714
1714
|
data-selector-id="box"
|
|
1715
1715
|
data-test-id="boxComponent"
|
|
@@ -1751,7 +1751,7 @@ exports[`CheckBox component rendering the Custom Props 1`] = `
|
|
|
1751
1751
|
<div
|
|
1752
1752
|
aria-checked="false"
|
|
1753
1753
|
class="container pointer primary
|
|
1754
|
-
|
|
1754
|
+
flex rowdir vCenter"
|
|
1755
1755
|
data-id="checkBox"
|
|
1756
1756
|
data-props="true"
|
|
1757
1757
|
data-selector-id="container"
|
|
@@ -1760,7 +1760,7 @@ exports[`CheckBox component rendering the Custom Props 1`] = `
|
|
|
1760
1760
|
tabindex="0"
|
|
1761
1761
|
>
|
|
1762
1762
|
<div
|
|
1763
|
-
class="boxContainer medium filled
|
|
1763
|
+
class="boxContainer medium filled shrinkOff"
|
|
1764
1764
|
data-id="boxComponent"
|
|
1765
1765
|
data-selector-id="box"
|
|
1766
1766
|
data-test-id="boxComponent"
|
|
@@ -1813,7 +1813,7 @@ exports[`CheckBox component rendering the Custom class 1`] = `
|
|
|
1813
1813
|
<div
|
|
1814
1814
|
aria-checked="true"
|
|
1815
1815
|
class="container pointer primary
|
|
1816
|
-
checkedprimary
|
|
1816
|
+
checkedprimary customCheckBoxClass flex rowdir vCenter"
|
|
1817
1817
|
data-id="checkBox"
|
|
1818
1818
|
data-selector-id="container"
|
|
1819
1819
|
data-test-id="checkBox"
|
|
@@ -1821,7 +1821,7 @@ exports[`CheckBox component rendering the Custom class 1`] = `
|
|
|
1821
1821
|
tabindex="0"
|
|
1822
1822
|
>
|
|
1823
1823
|
<div
|
|
1824
|
-
class="boxContainer medium customCBoxSizeClass filled
|
|
1824
|
+
class="boxContainer medium customCBoxSizeClass filled shrinkOff"
|
|
1825
1825
|
data-id="boxComponent"
|
|
1826
1826
|
data-selector-id="box"
|
|
1827
1827
|
data-test-id="boxComponent"
|
package/es/DateTime/DateTime.js
CHANGED
|
@@ -650,12 +650,15 @@ export default class DateTime extends React.PureComponent {
|
|
|
650
650
|
targetOffset,
|
|
651
651
|
isRestrictScroll,
|
|
652
652
|
dropBoxPortalId,
|
|
653
|
+
renderCustomHeader,
|
|
654
|
+
renderCustomFooter,
|
|
653
655
|
customProps = {},
|
|
654
656
|
weekStartDay,
|
|
655
657
|
holidays
|
|
656
658
|
} = this.props;
|
|
657
659
|
const {
|
|
658
|
-
TimeProps = {}
|
|
660
|
+
TimeProps = {},
|
|
661
|
+
DropBoxProps = {}
|
|
659
662
|
} = customProps;
|
|
660
663
|
const {
|
|
661
664
|
timeText = 'Time',
|
|
@@ -686,7 +689,7 @@ export default class DateTime extends React.PureComponent {
|
|
|
686
689
|
"data-id": `${dataId}_Calendar`,
|
|
687
690
|
"data-test-id": `${dataId}_Calendar`,
|
|
688
691
|
onClick: this.closePopup
|
|
689
|
-
}, /*#__PURE__*/React.createElement(DateTimePopupHeader, {
|
|
692
|
+
}, renderCustomHeader, /*#__PURE__*/React.createElement(DateTimePopupHeader, {
|
|
690
693
|
onOpenYearView: this.handleOpenYearView,
|
|
691
694
|
showMonthTxt: showmonthtxt,
|
|
692
695
|
isYearView: isYearView,
|
|
@@ -742,7 +745,7 @@ export default class DateTime extends React.PureComponent {
|
|
|
742
745
|
monthNames: monthNames,
|
|
743
746
|
monthNamesShort: monthNamesShort,
|
|
744
747
|
isMonthOpen: isMonthOpen
|
|
745
|
-
})) : null));
|
|
748
|
+
})) : null), renderCustomFooter);
|
|
746
749
|
return isDefaultPosition ? /*#__PURE__*/React.createElement("div", {
|
|
747
750
|
className: `${style.dropBox} ${className}`,
|
|
748
751
|
"data-id": `${dataId}_dateBoxContainer`,
|
|
@@ -766,7 +769,8 @@ export default class DateTime extends React.PureComponent {
|
|
|
766
769
|
positionsOffset: positionsOffset,
|
|
767
770
|
targetOffset: targetOffset,
|
|
768
771
|
isRestrictScroll: isRestrictScroll,
|
|
769
|
-
portalId: dropBoxPortalId
|
|
772
|
+
portalId: dropBoxPortalId,
|
|
773
|
+
...DropBoxProps
|
|
770
774
|
}, /*#__PURE__*/React.createElement(Box, null, childEle)) : null;
|
|
771
775
|
}
|
|
772
776
|
|