@zohodesk/dot 1.0.0-beta.200 → 1.0.0-beta.204
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 +49 -31
- package/es/Appearance/dark/mode/dotDarkMode.module.css +6 -3
- package/es/Appearance/dark/themes/blue/blueDarkDotTheme.module.css +1 -1
- package/es/Appearance/default/mode/dotDefaultMode.module.css +6 -3
- package/es/Appearance/default/themes/blue/blueDefaultDotTheme.module.css +1 -1
- package/es/docs/setupDocs.js +1 -3
- package/es/list/ListLayout/ListLayout.module.css +18 -20
- package/es/version2/GlobalNotification/GlobalNotification.js +18 -6
- package/es/version2/notification/DesktopNotification/DesktopNotification.js +13 -5
- package/lib/Appearance/dark/mode/dotDarkMode.module.css +6 -3
- package/lib/Appearance/dark/themes/blue/blueDarkDotTheme.module.css +1 -1
- package/lib/Appearance/default/mode/dotDefaultMode.module.css +6 -3
- package/lib/Appearance/default/themes/blue/blueDefaultDotTheme.module.css +1 -1
- package/lib/list/ListLayout/ListLayout.module.css +18 -20
- package/lib/version2/GlobalNotification/GlobalNotification.js +18 -6
- package/lib/version2/notification/DesktopNotification/DesktopNotification.js +13 -5
- package/package.json +3 -3
- package/src/Appearance/dark/mode/dotDarkMode.module.css +6 -3
- package/src/Appearance/dark/themes/blue/blueDarkDotTheme.module.css +1 -1
- package/src/Appearance/default/mode/dotDefaultMode.module.css +6 -3
- package/src/Appearance/default/themes/blue/blueDefaultDotTheme.module.css +1 -1
- package/src/docs/setupDocs.js +0 -2
- package/src/list/ListLayout/ListLayout.module.css +10 -14
- package/src/version2/GlobalNotification/GlobalNotification.js +12 -4
- package/src/version2/notification/DesktopNotification/DesktopNotification.js +10 -3
- package/es/deprecated/Theme/dotDarkTheme.module.css +0 -532
- package/es/deprecated/Theme/dotDefaultTheme.module.css +0 -532
- package/es/deprecated/Theme/palette/darkPalette.module.css +0 -40
- package/es/deprecated/Theme/palette/defaultPalette.module.css +0 -40
- package/lib/deprecated/Theme/dotDarkTheme.module.css +0 -532
- package/lib/deprecated/Theme/dotDefaultTheme.module.css +0 -532
- package/lib/deprecated/Theme/palette/darkPalette.module.css +0 -40
- package/lib/deprecated/Theme/palette/defaultPalette.module.css +0 -40
- package/src/deprecated/Theme/dotDarkTheme.module.css +0 -532
- package/src/deprecated/Theme/dotDefaultTheme.module.css +0 -532
- package/src/deprecated/Theme/palette/darkPalette.module.css +0 -40
- package/src/deprecated/Theme/palette/defaultPalette.module.css +0 -40
package/README.md
CHANGED
|
@@ -1,6 +1,24 @@
|
|
|
1
1
|
# DOT Design Components
|
|
2
2
|
|
|
3
|
-
In this Library we Provide Some Basic Components to Build Your Application
|
|
3
|
+
In this Library, we Provide Some Basic Components to Build Your Application
|
|
4
|
+
|
|
5
|
+
# 1.0.0-beta.204
|
|
6
|
+
|
|
7
|
+
- blueDefaultTheme & blueDarkTheme class name added in Mode & Blue DotTheme files
|
|
8
|
+
- GlobalNotification, DesktopNotification => customProps prop added
|
|
9
|
+
|
|
10
|
+
# 1.0.0-beta.203
|
|
11
|
+
|
|
12
|
+
- ListLayout => active, keyboarActive css priority fixed
|
|
13
|
+
|
|
14
|
+
# 1.0.0-beta.202
|
|
15
|
+
|
|
16
|
+
- ListLayout => marginLeft fixed
|
|
17
|
+
|
|
18
|
+
# 1.0.0-beta.201
|
|
19
|
+
|
|
20
|
+
- deprecated theme file moved to another place
|
|
21
|
+
- ListLayout => keyboardActive ui border added
|
|
4
22
|
|
|
5
23
|
# 1.0.0-beta.200
|
|
6
24
|
|
|
@@ -46,7 +64,7 @@ In this Library we Provide Some Basic Components to Build Your Application
|
|
|
46
64
|
|
|
47
65
|
# 1.0.0-beta.189
|
|
48
66
|
|
|
49
|
-
- - transition variable implemented in all
|
|
67
|
+
- - transition variable implemented in all CSS
|
|
50
68
|
|
|
51
69
|
# 1.0.0-beta.188
|
|
52
70
|
|
|
@@ -111,7 +129,7 @@ In this Library we Provide Some Basic Components to Build Your Application
|
|
|
111
129
|
# 1.0.0-beta.175
|
|
112
130
|
|
|
113
131
|
- PropTypes Validattion Fixes
|
|
114
|
-
-
|
|
132
|
+
- error state DataId and Common Css Fixes
|
|
115
133
|
|
|
116
134
|
# 1.0.0-beta.174
|
|
117
135
|
|
|
@@ -163,7 +181,7 @@ In this Library we Provide Some Basic Components to Build Your Application
|
|
|
163
181
|
|
|
164
182
|
# 1.0.0-beta.165
|
|
165
183
|
|
|
166
|
-
- Palette
|
|
184
|
+
- Palette-Based Folder Structure Changed.
|
|
167
185
|
- data-theme changed to data-mode
|
|
168
186
|
- data-palette changed to data-theme
|
|
169
187
|
|
|
@@ -371,7 +389,7 @@ In this Library we Provide Some Basic Components to Build Your Application
|
|
|
371
389
|
|
|
372
390
|
# 1.0.0-beta.131
|
|
373
391
|
|
|
374
|
-
- Added the character '#' in
|
|
392
|
+
- Added the character '#' in the AlphabeticList component.
|
|
375
393
|
|
|
376
394
|
# 1.0.0-beta.130
|
|
377
395
|
|
|
@@ -408,7 +426,7 @@ In this Library we Provide Some Basic Components to Build Your Application
|
|
|
408
426
|
|
|
409
427
|
# 1.0.0-beta.123
|
|
410
428
|
|
|
411
|
-
- Drawer =>
|
|
429
|
+
- Drawer => drawer model portal removed, hereafter need to send inner portal name through innerPortalName prop.
|
|
412
430
|
|
|
413
431
|
# 1.0.0-beta.122
|
|
414
432
|
|
|
@@ -424,7 +442,7 @@ In this Library we Provide Some Basic Components to Build Your Application
|
|
|
424
442
|
|
|
425
443
|
# 1.0.0-beta.119
|
|
426
444
|
|
|
427
|
-
- Drawer RHS padding
|
|
445
|
+
- Drawer RHS padding CSS fixes
|
|
428
446
|
|
|
429
447
|
# 1.0.0-beta.118
|
|
430
448
|
|
|
@@ -470,7 +488,7 @@ In this Library we Provide Some Basic Components to Build Your Application
|
|
|
470
488
|
|
|
471
489
|
# 1.0.0-beta.109
|
|
472
490
|
|
|
473
|
-
- needAutoZindex prop added in
|
|
491
|
+
- needAutoZindex prop added in freeze layer and Drawer
|
|
474
492
|
- Provider Changes
|
|
475
493
|
|
|
476
494
|
# 1.0.0-beta.108
|
|
@@ -479,7 +497,7 @@ In this Library we Provide Some Basic Components to Build Your Application
|
|
|
479
497
|
|
|
480
498
|
# 1.0.0-beta.107
|
|
481
499
|
|
|
482
|
-
- ToggleDropDown Temp Fix for Rerender
|
|
500
|
+
- ToggleDropDown Temp Fix for Rerender Issue
|
|
483
501
|
|
|
484
502
|
# 1.0.0-beta.106
|
|
485
503
|
|
|
@@ -552,7 +570,7 @@ In this Library we Provide Some Basic Components to Build Your Application
|
|
|
552
570
|
# 1.0.0-beta.91
|
|
553
571
|
|
|
554
572
|
- Upload Component Preview mode Fixed
|
|
555
|
-
- dotcommon.module.css removed,
|
|
573
|
+
- dotcommon.module.css removed, audio image removed
|
|
556
574
|
|
|
557
575
|
# 1.0.0-beta.90
|
|
558
576
|
|
|
@@ -601,8 +619,8 @@ In this Library we Provide Some Basic Components to Build Your Application
|
|
|
601
619
|
|
|
602
620
|
# 1.0.0-beta.79
|
|
603
621
|
|
|
604
|
-
-Upload => abort upload support added
|
|
605
|
-
-ExternalLink => Issue with URLs with Uppercase characters fixed
|
|
622
|
+
- Upload => abort upload support added
|
|
623
|
+
- ExternalLink => Issue with URLs with Uppercase characters fixed
|
|
606
624
|
|
|
607
625
|
# 1.0.0-beta.78
|
|
608
626
|
|
|
@@ -638,7 +656,7 @@ In this Library we Provide Some Basic Components to Build Your Application
|
|
|
638
656
|
# 1.0.0-beta.72
|
|
639
657
|
|
|
640
658
|
- CommonEmptyState Props Changed
|
|
641
|
-
-
|
|
659
|
+
- SVG Version Updated
|
|
642
660
|
|
|
643
661
|
# 1.0.0-beta.71
|
|
644
662
|
|
|
@@ -745,20 +763,20 @@ In this Library we Provide Some Basic Components to Build Your Application
|
|
|
745
763
|
|
|
746
764
|
# 1.0.0-beta.51
|
|
747
765
|
|
|
748
|
-
- Version update for
|
|
766
|
+
- Version update for SVG package
|
|
749
767
|
|
|
750
768
|
# 1.0.0-beta.50
|
|
751
769
|
|
|
752
|
-
- Version update for
|
|
770
|
+
- Version update for SVG package
|
|
753
771
|
|
|
754
772
|
# 1.0.0-beta.49
|
|
755
773
|
|
|
756
|
-
- Version update for
|
|
774
|
+
- Version update for SVG package
|
|
757
775
|
|
|
758
776
|
# 1.0.0-beta.48
|
|
759
777
|
|
|
760
778
|
- Component version update
|
|
761
|
-
- customClass prop added for
|
|
779
|
+
- customClass prop added for error state components
|
|
762
780
|
|
|
763
781
|
# 1.0.0-beta.47
|
|
764
782
|
|
|
@@ -862,16 +880,16 @@ In this Library we Provide Some Basic Components to Build Your Application
|
|
|
862
880
|
|
|
863
881
|
# 1.0.0-beta.30
|
|
864
882
|
|
|
865
|
-
- Upload Component
|
|
883
|
+
- Upload Component CSS Fix
|
|
866
884
|
|
|
867
885
|
# 1.0.0-beta.29
|
|
868
886
|
|
|
869
887
|
- Attachment, Upload Component Added
|
|
870
|
-
- Dot Component Issue
|
|
888
|
+
- Dot Component Issue and SecondaryPanel List Dotted Fixed
|
|
871
889
|
|
|
872
890
|
# 1.0.0-beta.28
|
|
873
891
|
|
|
874
|
-
- Toast
|
|
892
|
+
- Toast Message component functionality fix.
|
|
875
893
|
|
|
876
894
|
# 1.0.0-beta.27
|
|
877
895
|
|
|
@@ -882,7 +900,7 @@ In this Library we Provide Some Basic Components to Build Your Application
|
|
|
882
900
|
|
|
883
901
|
# 1.0.0-beta.26
|
|
884
902
|
|
|
885
|
-
- Changing 'falseObj' key to 'failure'
|
|
903
|
+
- Changing the 'falseObj' key to 'failure' inconsistency with permission library.
|
|
886
904
|
|
|
887
905
|
# 1.0.0-beta.25
|
|
888
906
|
|
|
@@ -891,13 +909,13 @@ In this Library we Provide Some Basic Components to Build Your Application
|
|
|
891
909
|
# 1.0.0-beta.24
|
|
892
910
|
|
|
893
911
|
- TicketId Link Added
|
|
894
|
-
- Avatar User
|
|
912
|
+
- Avatar User Palette Added
|
|
895
913
|
- IconButton Added
|
|
896
914
|
|
|
897
915
|
# 1.0.0-beta.23
|
|
898
916
|
|
|
899
|
-
- Adding tourId in FlipCard, AvatarFlip and GridIcons component.
|
|
900
|
-
- Adding SvgMask support and tourId in FreezeLayer component.
|
|
917
|
+
- Adding tourId in FlipCard, AvatarFlip, and GridIcons component.
|
|
918
|
+
- Adding SvgMask support and tourId in the FreezeLayer component.
|
|
901
919
|
|
|
902
920
|
# 1.0.0-beta.21
|
|
903
921
|
|
|
@@ -911,7 +929,7 @@ In this Library we Provide Some Basic Components to Build Your Application
|
|
|
911
929
|
|
|
912
930
|
# 1.0.0-beta.19
|
|
913
931
|
|
|
914
|
-
- Onclick option added for TableRow Component
|
|
932
|
+
- Onclick option added for TableRow Component, Avatar Icon Data-Id Fixed and Container Changed, Avatar Based Components Css Provider Implemented
|
|
915
933
|
|
|
916
934
|
# 1.0.0-beta.17
|
|
917
935
|
|
|
@@ -930,12 +948,12 @@ In this Library we Provide Some Basic Components to Build Your Application
|
|
|
930
948
|
- DeleteLookupHeader Removed
|
|
931
949
|
- Lookup text Bold prop Included
|
|
932
950
|
- Toggle Dropdown Children Fix
|
|
933
|
-
-
|
|
951
|
+
- SVG Version Updated
|
|
934
952
|
- ErrorState Fix
|
|
935
953
|
|
|
936
954
|
# 1.0.0-beta.13
|
|
937
955
|
|
|
938
|
-
- Toggle Dropdown
|
|
956
|
+
- Toggle Dropdown onScroll implemented,
|
|
939
957
|
- Data Id Fixes
|
|
940
958
|
- AlertLookup Setcion ClassName Support
|
|
941
959
|
- Table Onclick Functions
|
|
@@ -947,13 +965,13 @@ In this Library we Provide Some Basic Components to Build Your Application
|
|
|
947
965
|
# 1.0.0-beta.11
|
|
948
966
|
|
|
949
967
|
- Svg Exported
|
|
950
|
-
-
|
|
968
|
+
- External Link Fix, Data-Id Change
|
|
951
969
|
- Toggle Dropdown Fix
|
|
952
970
|
|
|
953
971
|
# 1.0.0-beta.10
|
|
954
972
|
|
|
955
973
|
- Externel Link XSS Fix
|
|
956
|
-
- AlertLookup
|
|
974
|
+
- AlertLookup custom-header Fix
|
|
957
975
|
- ToastMessage DataId Added
|
|
958
976
|
|
|
959
977
|
# 1.0.0-beta.9
|
|
@@ -978,11 +996,11 @@ In this Library we Provide Some Basic Components to Build Your Application
|
|
|
978
996
|
|
|
979
997
|
# 1.0.0-beta.3
|
|
980
998
|
|
|
981
|
-
-Drawer
|
|
999
|
+
-Drawer, Toast Message, Loader, Toggle DropDown update
|
|
982
1000
|
|
|
983
1001
|
# 1.0.0-beta.2
|
|
984
1002
|
|
|
985
|
-
- List, Lookup, Layout, FreezeLayer
|
|
1003
|
+
- List, Lookup, Layout, FreezeLayer, SVG Published
|
|
986
1004
|
|
|
987
1005
|
# 1.0.0-beta.1
|
|
988
1006
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[data-mode='dark'] {
|
|
1
|
+
[data-mode='dark'], :global(.blueDarkTheme) [data-desk-theme="blue"] {
|
|
2
2
|
/* action button */
|
|
3
3
|
--zdt_actionButton_primaryFilled_bg: var(--zdt_cta_primary_bg);
|
|
4
4
|
--zdt_actionButton_primaryFilled_hover_bg: var(--zdt_cta_primary_hover_bg);
|
|
@@ -230,8 +230,10 @@
|
|
|
230
230
|
|
|
231
231
|
/* list layout */
|
|
232
232
|
--zdt_listLayout_border: var(--zdt_cta_grey_15_border);
|
|
233
|
-
--
|
|
234
|
-
--
|
|
233
|
+
--zdt_listLayout_hover_bg: var(--dot_listItemHover);
|
|
234
|
+
--zdt_listLayout_active_bg: var(--dot_listItemActive);
|
|
235
|
+
--zdt_listLayout_active_border: var(--zdt_cta_primary_border);
|
|
236
|
+
--zdt_listLayout_keyboard_active_border:#828994;
|
|
235
237
|
|
|
236
238
|
/* list stencils */
|
|
237
239
|
--zdt_liststencils_innercontainer_border: var(--zdt_cta_grey_15_border);
|
|
@@ -455,6 +457,7 @@
|
|
|
455
457
|
--zdt_commonalert_close_hover_bg: #583a45;
|
|
456
458
|
--zdt_commonalert_success_hover_bg: #2c4e42;
|
|
457
459
|
--zdt_commonalert_info_hover_bg: var(--zdt_cta_primary_light_bg);
|
|
460
|
+
--zdt_commonalert_plaininfo_hover_bg: #262f3d;
|
|
458
461
|
--zdt_commonalert_danger_hover_bg: #583a45;
|
|
459
462
|
--zdt_commonalert_error_hover_bg: #583a45;
|
|
460
463
|
--zdt_commonalert_warning_hover_bg: #583c2c;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[data-mode='default'] {
|
|
1
|
+
[data-mode='default'], :global(.blueDefaultTheme) [data-desk-theme="blue"] {
|
|
2
2
|
/* action button */
|
|
3
3
|
--zdt_actionButton_primaryFilled_bg: var(--zdt_cta_primary_bg);
|
|
4
4
|
--zdt_actionButton_primaryFilled_hover_bg: var(--zdt_cta_primary_hover_bg);
|
|
@@ -230,8 +230,10 @@
|
|
|
230
230
|
|
|
231
231
|
/* list layout */
|
|
232
232
|
--zdt_listLayout_border: var(--zdt_cta_grey_15_border);
|
|
233
|
-
--
|
|
234
|
-
--
|
|
233
|
+
--zdt_listLayout_hover_bg: var(--dot_listItemHover);
|
|
234
|
+
--zdt_listLayout_active_bg: var(--dot_listItemActive);
|
|
235
|
+
--zdt_listLayout_active_border: var(--zdt_cta_primary_border);
|
|
236
|
+
--zdt_listLayout_keyboard_active_border:var(--dot_border_slateGrey);
|
|
235
237
|
|
|
236
238
|
/* list stencils */
|
|
237
239
|
--zdt_liststencils_innercontainer_border: var(--zdt_cta_grey_15_border);
|
|
@@ -455,6 +457,7 @@
|
|
|
455
457
|
--zdt_commonalert_close_hover_bg: var(--dot_bg_paleRed);
|
|
456
458
|
--zdt_commonalert_success_hover_bg: #e9f7ef;
|
|
457
459
|
--zdt_commonalert_info_hover_bg: var(--zdt_cta_primary_light_bg);
|
|
460
|
+
--zdt_commonalert_plaininfo_hover_bg: var(--dot_bg_lavender);
|
|
458
461
|
--zdt_commonalert_danger_hover_bg: var(--dot_bg_paleRed);
|
|
459
462
|
--zdt_commonalert_error_hover_bg: var(--dot_bg_paleRed);
|
|
460
463
|
--zdt_commonalert_warning_hover_bg: #fff1e6;
|
package/es/docs/setupDocs.js
CHANGED
|
@@ -7,9 +7,7 @@ export { default as HelpDescription__default } from '../setup/helptips/Descripti
|
|
|
7
7
|
export { default as HelpTitle } from '../setup/helptips/Title/Title';
|
|
8
8
|
export { default as HelpTitle__default } from '../setup/helptips/Title/docs/Title__default.docs';
|
|
9
9
|
export { default as HelpListGroup } from '../setup/helptips/ListGroup/ListGroup';
|
|
10
|
-
export { default as HelpListGroup__default } from '../setup/helptips/ListGroup/docs/ListGroup__default.docs';
|
|
11
|
-
// export { default as SelectDropdown__default } from '../setup/header/SelectDropdown/docs/SelectDropdown__default.docs';
|
|
12
|
-
|
|
10
|
+
export { default as HelpListGroup__default } from '../setup/helptips/ListGroup/docs/ListGroup__default.docs';
|
|
13
11
|
export { default as SetupHeaderViews } from '../setup/header/Views/Views';
|
|
14
12
|
export { default as SetupHeaderViews__default } from '../setup/header/Views/docs/Views__default.docs';
|
|
15
13
|
export { default as SetupHeaderSearch } from '../setup/header/Search/Search';
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
composes: varClass;
|
|
7
7
|
}
|
|
8
8
|
.listHover:hover, .hoveredStyle{
|
|
9
|
-
background-color: var(--
|
|
9
|
+
background-color: var(--zdt_listLayout_hover_bg);
|
|
10
10
|
}
|
|
11
11
|
.active, .active:hover {
|
|
12
|
-
background-color: var(--
|
|
12
|
+
background-color: var(--zdt_listLayout_active_bg);
|
|
13
13
|
}
|
|
14
14
|
.cursorPointer{
|
|
15
15
|
cursor: pointer
|
|
@@ -31,30 +31,28 @@
|
|
|
31
31
|
border-bottom: 1px dotted var(--listBorder);
|
|
32
32
|
}
|
|
33
33
|
[dir=ltr] .compact, [dir=ltr] .classic, [dir=ltr] .superCompact {
|
|
34
|
-
|
|
34
|
+
border-left: var(--zd_size2) solid transparent;
|
|
35
35
|
}
|
|
36
36
|
[dir=rtl] .compact, [dir=rtl] .classic, [dir=rtl] .superCompact {
|
|
37
|
-
|
|
37
|
+
border-right: var(--zd_size2) solid transparent;
|
|
38
38
|
}
|
|
39
|
-
.keyboardActive {
|
|
40
|
-
position: relative;
|
|
41
|
-
}
|
|
42
|
-
.keyboardActive::after {
|
|
43
|
-
content: '';
|
|
44
|
-
position: absolute;
|
|
45
|
-
z-index: 2;
|
|
46
|
-
height: 100%;
|
|
47
|
-
top:0;
|
|
48
|
-
}
|
|
49
|
-
[dir=ltr] .keyboardActive::after {
|
|
50
|
-
border-left: var(--zd_size2) solid var(--dot_border_slateGrey);
|
|
51
|
-
left: 0;
|
|
39
|
+
[dir=ltr] .keyboardActive, [dir=ltr] .active{
|
|
52
40
|
border-top-left-radius: var(--zd_size5);
|
|
53
41
|
border-bottom-left-radius: var(--zd_size5);
|
|
54
42
|
}
|
|
55
|
-
[dir=rtl] .keyboardActive
|
|
56
|
-
border-right: var(--zd_size2) solid var(--dot_border_slateGrey);
|
|
57
|
-
right: 0;
|
|
43
|
+
[dir=rtl] .keyboardActive, [dir=rtl] .active{
|
|
58
44
|
border-top-right-radius: var(--zd_size5);
|
|
59
45
|
border-bottom-right-radius: var(--zd_size5);
|
|
46
|
+
}
|
|
47
|
+
[dir=ltr] .keyboardActive{
|
|
48
|
+
border-left-color: var(--zdt_listLayout_keyboard_active_border);
|
|
49
|
+
}
|
|
50
|
+
[dir=rtl] .keyboardActive{
|
|
51
|
+
border-right-color: var(--zdt_listLayout_keyboard_active_border);
|
|
52
|
+
}
|
|
53
|
+
[dir=ltr] .active{
|
|
54
|
+
border-left-color: var(--zdt_listLayout_active_border);
|
|
55
|
+
}
|
|
56
|
+
[dir=rtl] .active{
|
|
57
|
+
border-right-color: var(--zdt_listLayout_active_border);
|
|
60
58
|
}
|
|
@@ -50,7 +50,8 @@ export default class GlobalNotification extends React.Component {
|
|
|
50
50
|
message,
|
|
51
51
|
hideMessage,
|
|
52
52
|
onClick,
|
|
53
|
-
i18nKeys = {}
|
|
53
|
+
i18nKeys = {},
|
|
54
|
+
customProps
|
|
54
55
|
} = this.props;
|
|
55
56
|
let {
|
|
56
57
|
closeTitle = 'Close'
|
|
@@ -60,7 +61,8 @@ export default class GlobalNotification extends React.Component {
|
|
|
60
61
|
message: message,
|
|
61
62
|
hideMessage: hideMessage,
|
|
62
63
|
onClick: onClick,
|
|
63
|
-
closeTitle: closeTitle
|
|
64
|
+
closeTitle: closeTitle,
|
|
65
|
+
customProps: customProps
|
|
64
66
|
});
|
|
65
67
|
}
|
|
66
68
|
|
|
@@ -72,7 +74,13 @@ GlobalNotification.propTypes = {
|
|
|
72
74
|
onClick: PropTypes.func,
|
|
73
75
|
showMessage: PropTypes.bool,
|
|
74
76
|
type: PropTypes.oneOf(['success', 'danger', 'info', 'warning', 'error']),
|
|
75
|
-
i18nKeys: PropTypes.object
|
|
77
|
+
i18nKeys: PropTypes.object,
|
|
78
|
+
customProps: PropTypes.shape({
|
|
79
|
+
ExtraProps: PropTypes.object
|
|
80
|
+
})
|
|
81
|
+
};
|
|
82
|
+
GlobalNotification.defaultProps = {
|
|
83
|
+
customProps: {}
|
|
76
84
|
};
|
|
77
85
|
|
|
78
86
|
if (false) {
|
|
@@ -96,12 +104,16 @@ export function GlobalNotificationUI(props) {
|
|
|
96
104
|
type = '',
|
|
97
105
|
message,
|
|
98
106
|
onClick,
|
|
99
|
-
closeTitle = ''
|
|
107
|
+
closeTitle = '',
|
|
108
|
+
customProps = {}
|
|
100
109
|
} = props;
|
|
101
|
-
|
|
110
|
+
let {
|
|
111
|
+
ExtraProps = {}
|
|
112
|
+
} = customProps;
|
|
113
|
+
return /*#__PURE__*/React.createElement("div", _extends({
|
|
102
114
|
className: `${style.message} ${type ? style[type] : ''}`,
|
|
103
115
|
"data-id": `show_${type}_message`
|
|
104
|
-
}, /*#__PURE__*/React.createElement(Container, {
|
|
116
|
+
}, ExtraProps), /*#__PURE__*/React.createElement(Container, {
|
|
105
117
|
className: `${style.container}`,
|
|
106
118
|
alignBox: "row",
|
|
107
119
|
isCover: false,
|
|
@@ -57,7 +57,8 @@ export function DesktopNotificationUI(props) {
|
|
|
57
57
|
onClose,
|
|
58
58
|
needClose,
|
|
59
59
|
customClass = {},
|
|
60
|
-
i18nKeys = {}
|
|
60
|
+
i18nKeys = {},
|
|
61
|
+
customProps
|
|
61
62
|
} = props;
|
|
62
63
|
let {
|
|
63
64
|
closeTitle = 'Close'
|
|
@@ -68,6 +69,9 @@ export function DesktopNotificationUI(props) {
|
|
|
68
69
|
let {
|
|
69
70
|
buttonPalette = 'dangerFilled'
|
|
70
71
|
} = buttonPaletteObject[type] || {};
|
|
72
|
+
let {
|
|
73
|
+
ExtraProps = {}
|
|
74
|
+
} = customProps;
|
|
71
75
|
|
|
72
76
|
function onClickSubmit(e) {
|
|
73
77
|
onSubmit && onSubmit();
|
|
@@ -88,12 +92,12 @@ export function DesktopNotificationUI(props) {
|
|
|
88
92
|
style: needAutoZindex && isAnimate ? {
|
|
89
93
|
zIndex: `${Zindex}`
|
|
90
94
|
} : {}
|
|
91
|
-
}, /*#__PURE__*/React.createElement(Container, {
|
|
95
|
+
}, /*#__PURE__*/React.createElement(Container, _extends({
|
|
92
96
|
className: `${style.container} ${isAnimate ? animateClass : animateRemoveClass} ${style[`${size}`] ? style[`${size}`] : ''} ${isShrinkView ? style.globalNotify : ''} ${containerClass}`,
|
|
93
97
|
isCover: false,
|
|
94
98
|
dataId: dataId,
|
|
95
99
|
isInline: uiVariantTwo
|
|
96
|
-
}, /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(DesktopNotificationHeader, {
|
|
100
|
+
}, ExtraProps), /*#__PURE__*/React.createElement(Box, null, /*#__PURE__*/React.createElement(DesktopNotificationHeader, {
|
|
97
101
|
type: type,
|
|
98
102
|
title: title,
|
|
99
103
|
variant: titleVariant,
|
|
@@ -177,7 +181,10 @@ DesktopNotification.propTypes = {
|
|
|
177
181
|
submitText: PropTypes.string,
|
|
178
182
|
submitType: PropTypes.oneOf(['primary', 'danger', 'success']),
|
|
179
183
|
titleVariant: PropTypes.oneOf(['primary', 'secondary']),
|
|
180
|
-
type: PropTypes.oneOf(['success', 'error', 'danger', 'warning', 'info', 'notification', 'alarm'])
|
|
184
|
+
type: PropTypes.oneOf(['success', 'error', 'danger', 'warning', 'info', 'notification', 'alarm']),
|
|
185
|
+
customProps: PropTypes.shape({
|
|
186
|
+
ExtraProps: PropTypes.object
|
|
187
|
+
})
|
|
181
188
|
};
|
|
182
189
|
DesktopNotification.defaultProps = {
|
|
183
190
|
isMore: false,
|
|
@@ -190,7 +197,8 @@ DesktopNotification.defaultProps = {
|
|
|
190
197
|
needIcon: true,
|
|
191
198
|
titleVariant: 'primary',
|
|
192
199
|
isShrinkView: false,
|
|
193
|
-
needClose: true
|
|
200
|
+
needClose: true,
|
|
201
|
+
customProps: {}
|
|
194
202
|
};
|
|
195
203
|
|
|
196
204
|
if (false) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[data-mode='dark'] {
|
|
1
|
+
[data-mode='dark'], :global(.blueDarkTheme) [data-desk-theme="blue"] {
|
|
2
2
|
/* action button */
|
|
3
3
|
--zdt_actionButton_primaryFilled_bg: var(--zdt_cta_primary_bg);
|
|
4
4
|
--zdt_actionButton_primaryFilled_hover_bg: var(--zdt_cta_primary_hover_bg);
|
|
@@ -230,8 +230,10 @@
|
|
|
230
230
|
|
|
231
231
|
/* list layout */
|
|
232
232
|
--zdt_listLayout_border: var(--zdt_cta_grey_15_border);
|
|
233
|
-
--
|
|
234
|
-
--
|
|
233
|
+
--zdt_listLayout_hover_bg: var(--dot_listItemHover);
|
|
234
|
+
--zdt_listLayout_active_bg: var(--dot_listItemActive);
|
|
235
|
+
--zdt_listLayout_active_border: var(--zdt_cta_primary_border);
|
|
236
|
+
--zdt_listLayout_keyboard_active_border:#828994;
|
|
235
237
|
|
|
236
238
|
/* list stencils */
|
|
237
239
|
--zdt_liststencils_innercontainer_border: var(--zdt_cta_grey_15_border);
|
|
@@ -455,6 +457,7 @@
|
|
|
455
457
|
--zdt_commonalert_close_hover_bg: #583a45;
|
|
456
458
|
--zdt_commonalert_success_hover_bg: #2c4e42;
|
|
457
459
|
--zdt_commonalert_info_hover_bg: var(--zdt_cta_primary_light_bg);
|
|
460
|
+
--zdt_commonalert_plaininfo_hover_bg: #262f3d;
|
|
458
461
|
--zdt_commonalert_danger_hover_bg: #583a45;
|
|
459
462
|
--zdt_commonalert_error_hover_bg: #583a45;
|
|
460
463
|
--zdt_commonalert_warning_hover_bg: #583c2c;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[data-mode='default'] {
|
|
1
|
+
[data-mode='default'], :global(.blueDefaultTheme) [data-desk-theme="blue"] {
|
|
2
2
|
/* action button */
|
|
3
3
|
--zdt_actionButton_primaryFilled_bg: var(--zdt_cta_primary_bg);
|
|
4
4
|
--zdt_actionButton_primaryFilled_hover_bg: var(--zdt_cta_primary_hover_bg);
|
|
@@ -230,8 +230,10 @@
|
|
|
230
230
|
|
|
231
231
|
/* list layout */
|
|
232
232
|
--zdt_listLayout_border: var(--zdt_cta_grey_15_border);
|
|
233
|
-
--
|
|
234
|
-
--
|
|
233
|
+
--zdt_listLayout_hover_bg: var(--dot_listItemHover);
|
|
234
|
+
--zdt_listLayout_active_bg: var(--dot_listItemActive);
|
|
235
|
+
--zdt_listLayout_active_border: var(--zdt_cta_primary_border);
|
|
236
|
+
--zdt_listLayout_keyboard_active_border:var(--dot_border_slateGrey);
|
|
235
237
|
|
|
236
238
|
/* list stencils */
|
|
237
239
|
--zdt_liststencils_innercontainer_border: var(--zdt_cta_grey_15_border);
|
|
@@ -455,6 +457,7 @@
|
|
|
455
457
|
--zdt_commonalert_close_hover_bg: var(--dot_bg_paleRed);
|
|
456
458
|
--zdt_commonalert_success_hover_bg: #e9f7ef;
|
|
457
459
|
--zdt_commonalert_info_hover_bg: var(--zdt_cta_primary_light_bg);
|
|
460
|
+
--zdt_commonalert_plaininfo_hover_bg: var(--dot_bg_lavender);
|
|
458
461
|
--zdt_commonalert_danger_hover_bg: var(--dot_bg_paleRed);
|
|
459
462
|
--zdt_commonalert_error_hover_bg: var(--dot_bg_paleRed);
|
|
460
463
|
--zdt_commonalert_warning_hover_bg: #fff1e6;
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
composes: varClass;
|
|
7
7
|
}
|
|
8
8
|
.listHover:hover, .hoveredStyle{
|
|
9
|
-
background-color: var(--
|
|
9
|
+
background-color: var(--zdt_listLayout_hover_bg);
|
|
10
10
|
}
|
|
11
11
|
.active, .active:hover {
|
|
12
|
-
background-color: var(--
|
|
12
|
+
background-color: var(--zdt_listLayout_active_bg);
|
|
13
13
|
}
|
|
14
14
|
.cursorPointer{
|
|
15
15
|
cursor: pointer
|
|
@@ -31,30 +31,28 @@
|
|
|
31
31
|
border-bottom: 1px dotted var(--listBorder);
|
|
32
32
|
}
|
|
33
33
|
[dir=ltr] .compact, [dir=ltr] .classic, [dir=ltr] .superCompact {
|
|
34
|
-
|
|
34
|
+
border-left: var(--zd_size2) solid transparent;
|
|
35
35
|
}
|
|
36
36
|
[dir=rtl] .compact, [dir=rtl] .classic, [dir=rtl] .superCompact {
|
|
37
|
-
|
|
37
|
+
border-right: var(--zd_size2) solid transparent;
|
|
38
38
|
}
|
|
39
|
-
.keyboardActive {
|
|
40
|
-
position: relative;
|
|
41
|
-
}
|
|
42
|
-
.keyboardActive::after {
|
|
43
|
-
content: '';
|
|
44
|
-
position: absolute;
|
|
45
|
-
z-index: 2;
|
|
46
|
-
height: 100%;
|
|
47
|
-
top:0;
|
|
48
|
-
}
|
|
49
|
-
[dir=ltr] .keyboardActive::after {
|
|
50
|
-
border-left: var(--zd_size2) solid var(--dot_border_slateGrey);
|
|
51
|
-
left: 0;
|
|
39
|
+
[dir=ltr] .keyboardActive, [dir=ltr] .active{
|
|
52
40
|
border-top-left-radius: var(--zd_size5);
|
|
53
41
|
border-bottom-left-radius: var(--zd_size5);
|
|
54
42
|
}
|
|
55
|
-
[dir=rtl] .keyboardActive
|
|
56
|
-
border-right: var(--zd_size2) solid var(--dot_border_slateGrey);
|
|
57
|
-
right: 0;
|
|
43
|
+
[dir=rtl] .keyboardActive, [dir=rtl] .active{
|
|
58
44
|
border-top-right-radius: var(--zd_size5);
|
|
59
45
|
border-bottom-right-radius: var(--zd_size5);
|
|
46
|
+
}
|
|
47
|
+
[dir=ltr] .keyboardActive{
|
|
48
|
+
border-left-color: var(--zdt_listLayout_keyboard_active_border);
|
|
49
|
+
}
|
|
50
|
+
[dir=rtl] .keyboardActive{
|
|
51
|
+
border-right-color: var(--zdt_listLayout_keyboard_active_border);
|
|
52
|
+
}
|
|
53
|
+
[dir=ltr] .active{
|
|
54
|
+
border-left-color: var(--zdt_listLayout_active_border);
|
|
55
|
+
}
|
|
56
|
+
[dir=rtl] .active{
|
|
57
|
+
border-right-color: var(--zdt_listLayout_active_border);
|
|
60
58
|
}
|
|
@@ -102,7 +102,8 @@ var GlobalNotification = /*#__PURE__*/function (_React$Component) {
|
|
|
102
102
|
hideMessage = _this$props3.hideMessage,
|
|
103
103
|
onClick = _this$props3.onClick,
|
|
104
104
|
_this$props3$i18nKeys = _this$props3.i18nKeys,
|
|
105
|
-
i18nKeys = _this$props3$i18nKeys === void 0 ? {} : _this$props3$i18nKeys
|
|
105
|
+
i18nKeys = _this$props3$i18nKeys === void 0 ? {} : _this$props3$i18nKeys,
|
|
106
|
+
customProps = _this$props3.customProps;
|
|
106
107
|
var _i18nKeys$closeTitle = i18nKeys.closeTitle,
|
|
107
108
|
closeTitle = _i18nKeys$closeTitle === void 0 ? 'Close' : _i18nKeys$closeTitle;
|
|
108
109
|
return /*#__PURE__*/_react["default"].createElement(GlobalNotificationUI, {
|
|
@@ -110,7 +111,8 @@ var GlobalNotification = /*#__PURE__*/function (_React$Component) {
|
|
|
110
111
|
message: message,
|
|
111
112
|
hideMessage: hideMessage,
|
|
112
113
|
onClick: onClick,
|
|
113
|
-
closeTitle: closeTitle
|
|
114
|
+
closeTitle: closeTitle,
|
|
115
|
+
customProps: customProps
|
|
114
116
|
});
|
|
115
117
|
}
|
|
116
118
|
}]);
|
|
@@ -126,7 +128,13 @@ GlobalNotification.propTypes = {
|
|
|
126
128
|
onClick: _propTypes["default"].func,
|
|
127
129
|
showMessage: _propTypes["default"].bool,
|
|
128
130
|
type: _propTypes["default"].oneOf(['success', 'danger', 'info', 'warning', 'error']),
|
|
129
|
-
i18nKeys: _propTypes["default"].object
|
|
131
|
+
i18nKeys: _propTypes["default"].object,
|
|
132
|
+
customProps: _propTypes["default"].shape({
|
|
133
|
+
ExtraProps: _propTypes["default"].object
|
|
134
|
+
})
|
|
135
|
+
};
|
|
136
|
+
GlobalNotification.defaultProps = {
|
|
137
|
+
customProps: {}
|
|
130
138
|
};
|
|
131
139
|
|
|
132
140
|
if (false) {
|
|
@@ -149,11 +157,15 @@ function GlobalNotificationUI(props) {
|
|
|
149
157
|
message = props.message,
|
|
150
158
|
onClick = props.onClick,
|
|
151
159
|
_props$closeTitle = props.closeTitle,
|
|
152
|
-
closeTitle = _props$closeTitle === void 0 ? '' : _props$closeTitle
|
|
153
|
-
|
|
160
|
+
closeTitle = _props$closeTitle === void 0 ? '' : _props$closeTitle,
|
|
161
|
+
_props$customProps = props.customProps,
|
|
162
|
+
customProps = _props$customProps === void 0 ? {} : _props$customProps;
|
|
163
|
+
var _customProps$ExtraPro = customProps.ExtraProps,
|
|
164
|
+
ExtraProps = _customProps$ExtraPro === void 0 ? {} : _customProps$ExtraPro;
|
|
165
|
+
return /*#__PURE__*/_react["default"].createElement("div", _extends({
|
|
154
166
|
className: "".concat(_GlobalNotificationModule["default"].message, " ").concat(type ? _GlobalNotificationModule["default"][type] : ''),
|
|
155
167
|
"data-id": "show_".concat(type, "_message")
|
|
156
|
-
}, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
168
|
+
}, ExtraProps), /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
157
169
|
className: "".concat(_GlobalNotificationModule["default"].container),
|
|
158
170
|
alignBox: "row",
|
|
159
171
|
isCover: false,
|