@dxc-technology/halstack-react 0.0.0-7e90a66 → 0.0.0-7ffdc43
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/HalstackContext.d.ts +12 -0
- package/HalstackContext.js +295 -0
- package/accordion/Accordion.stories.tsx +4 -4
- package/accordion-group/AccordionGroup.js +1 -0
- package/alert/Alert.js +4 -1
- package/badge/Badge.d.ts +1 -1
- package/badge/Badge.js +5 -3
- package/badge/types.d.ts +1 -0
- package/bleed/Bleed.js +1 -34
- package/bleed/Bleed.stories.tsx +94 -95
- package/bleed/types.d.ts +1 -1
- package/box/Box.js +22 -32
- package/bulleted-list/BulletedList.d.ts +7 -0
- package/bulleted-list/BulletedList.js +123 -0
- package/bulleted-list/BulletedList.stories.tsx +200 -0
- package/bulleted-list/types.d.ts +11 -0
- package/{list → bulleted-list}/types.js +0 -0
- package/button/Button.js +46 -62
- package/button/Button.stories.tsx +9 -0
- package/button/types.d.ts +7 -7
- package/card/Card.js +34 -36
- package/checkbox/Checkbox.js +4 -1
- package/checkbox/types.d.ts +1 -3
- package/common/variables.js +213 -88
- package/date-input/DateInput.js +16 -13
- package/dropdown/Dropdown.stories.tsx +1 -1
- package/file-input/FileInput.js +9 -6
- package/file-input/FileItem.js +7 -5
- package/flex/Flex.d.ts +4 -0
- package/flex/Flex.js +57 -0
- package/flex/Flex.stories.tsx +103 -0
- package/flex/types.d.ts +21 -0
- package/{radio → flex}/types.js +0 -0
- package/footer/Footer.js +7 -5
- package/footer/Icons.js +1 -1
- package/header/Header.js +7 -4
- package/inset/Inset.js +1 -34
- package/inset/Inset.stories.tsx +36 -36
- package/inset/types.d.ts +1 -1
- package/layout/ApplicationLayout.d.ts +16 -6
- package/layout/ApplicationLayout.js +70 -117
- package/layout/ApplicationLayout.stories.tsx +83 -93
- package/layout/Icons.d.ts +5 -0
- package/layout/Icons.js +13 -2
- package/layout/SidenavContext.d.ts +5 -0
- package/layout/SidenavContext.js +19 -0
- package/layout/types.d.ts +18 -33
- package/link/Link.d.ts +3 -2
- package/link/Link.js +57 -70
- package/link/Link.stories.tsx +95 -53
- package/link/Link.test.js +7 -15
- package/link/types.d.ts +7 -23
- package/main.d.ts +7 -10
- package/main.js +43 -61
- package/number-input/types.d.ts +1 -1
- package/package.json +5 -4
- package/paginator/Paginator.js +17 -38
- package/paginator/Paginator.test.js +42 -0
- package/paragraph/Paragraph.d.ts +6 -0
- package/paragraph/Paragraph.js +38 -0
- package/paragraph/Paragraph.stories.tsx +44 -0
- package/password-input/PasswordInput.js +7 -4
- package/password-input/PasswordInput.test.js +1 -2
- package/password-input/types.d.ts +1 -1
- package/progress-bar/ProgressBar.js +1 -1
- package/progress-bar/ProgressBar.stories.jsx +11 -11
- package/quick-nav/QuickNav.js +74 -20
- package/quick-nav/QuickNav.stories.tsx +43 -16
- package/quick-nav/types.d.ts +4 -4
- package/radio-group/Radio.js +1 -1
- package/radio-group/RadioGroup.js +10 -7
- package/resultsetTable/ResultsetTable.test.js +42 -0
- package/select/Listbox.d.ts +1 -1
- package/select/Listbox.js +35 -8
- package/select/Select.js +83 -78
- package/select/Select.stories.tsx +144 -100
- package/select/Select.test.js +299 -194
- package/select/types.d.ts +3 -4
- package/sidenav/Sidenav.d.ts +6 -5
- package/sidenav/Sidenav.js +184 -52
- package/sidenav/Sidenav.stories.tsx +154 -156
- package/sidenav/Sidenav.test.js +25 -37
- package/sidenav/types.d.ts +50 -27
- package/spinner/Spinner.js +1 -1
- package/switch/Switch.d.ts +1 -1
- package/switch/Switch.js +6 -5
- package/switch/Switch.stories.tsx +8 -8
- package/switch/types.d.ts +2 -2
- package/tabs/Tabs.stories.tsx +0 -6
- package/tabs-nav/NavTabs.d.ts +8 -0
- package/tabs-nav/NavTabs.js +125 -0
- package/tabs-nav/NavTabs.stories.tsx +170 -0
- package/tabs-nav/NavTabs.test.js +82 -0
- package/tabs-nav/Tab.d.ts +4 -0
- package/tabs-nav/Tab.js +132 -0
- package/tabs-nav/types.d.ts +53 -0
- package/{row → tabs-nav}/types.js +0 -0
- package/text-input/Suggestion.d.ts +4 -0
- package/text-input/Suggestion.js +55 -0
- package/text-input/TextInput.js +46 -72
- package/text-input/TextInput.test.js +1 -1
- package/text-input/types.d.ts +14 -2
- package/textarea/Textarea.js +10 -19
- package/textarea/types.d.ts +1 -1
- package/typography/Typography.d.ts +4 -0
- package/typography/Typography.js +131 -0
- package/typography/Typography.stories.tsx +198 -0
- package/typography/types.d.ts +18 -0
- package/{stack → typography}/types.js +0 -0
- package/useTheme.js +2 -2
- package/useTranslatedLabels.d.ts +2 -0
- package/useTranslatedLabels.js +20 -0
- package/wizard/Wizard.js +36 -41
- package/wizard/Wizard.stories.tsx +20 -1
- package/wizard/types.d.ts +4 -3
- package/ThemeContext.d.ts +0 -10
- package/ThemeContext.js +0 -243
- package/list/List.d.ts +0 -4
- package/list/List.js +0 -47
- package/list/List.stories.tsx +0 -95
- package/list/types.d.ts +0 -7
- package/radio/Radio.d.ts +0 -4
- package/radio/Radio.js +0 -173
- package/radio/Radio.stories.tsx +0 -192
- package/radio/Radio.test.js +0 -71
- package/radio/types.d.ts +0 -54
- package/row/Row.d.ts +0 -3
- package/row/Row.js +0 -127
- package/row/Row.stories.tsx +0 -237
- package/row/types.d.ts +0 -28
- package/stack/Stack.d.ts +0 -3
- package/stack/Stack.js +0 -97
- package/stack/Stack.stories.tsx +0 -164
- package/stack/types.d.ts +0 -24
- package/text/Text.d.ts +0 -7
- package/text/Text.js +0 -30
- package/text/Text.stories.tsx +0 -19
package/common/variables.js
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.typeface = exports.spaces = exports.responsiveSizes = exports.globalTokens = exports.componentTokens = void 0;
|
|
6
|
+
exports.typeface = exports.spaces = exports.responsiveSizes = exports.globalTokens = exports.defaultTranslatedComponentLabels = exports.componentTokens = void 0;
|
|
7
7
|
var globalTokens = {
|
|
8
|
-
//
|
|
8
|
+
// Color
|
|
9
9
|
inherit: "inherit",
|
|
10
10
|
transparent: "transparent",
|
|
11
11
|
hal_white: "#ffffff",
|
|
@@ -19,12 +19,15 @@ var globalTokens = {
|
|
|
19
19
|
color_grey_800: "#4d4d4d",
|
|
20
20
|
color_grey_600: "#808080",
|
|
21
21
|
color_grey_50: "#fafafa",
|
|
22
|
+
color_grey_a_100: "#0000000d",
|
|
23
|
+
color_grey_a_300: "#00000033",
|
|
22
24
|
hal_purple_l_95: "#f2eafa",
|
|
23
25
|
hal_purple_l_90: "#e5d5f6",
|
|
24
26
|
hal_purple_l_65: "#a46ede",
|
|
25
27
|
hal_purple_s_38: "#5f249f",
|
|
26
28
|
hal_purple_d_30: "#4b1c7d",
|
|
27
29
|
hal_purple_d_20: "#321353",
|
|
30
|
+
hal_purple_d_70: "#9A6BB2",
|
|
28
31
|
color_purple_600: "#7D2FD0",
|
|
29
32
|
color_purple_300: "#cbacec",
|
|
30
33
|
hal_blue_l_95: "#e6f4ff",
|
|
@@ -107,7 +110,7 @@ var globalTokens = {
|
|
|
107
110
|
type_normal: "normal",
|
|
108
111
|
type_spacing_tight_02: "-0.05em",
|
|
109
112
|
type_spacing_tight_01: "-0.025em",
|
|
110
|
-
type_spacing_normal: "
|
|
113
|
+
type_spacing_normal: "0em",
|
|
111
114
|
type_spacing_wide_01: "0.025em",
|
|
112
115
|
type_spacing_wide_02: "0.05em",
|
|
113
116
|
type_spacing_wide_03: "0.1em",
|
|
@@ -236,7 +239,7 @@ var componentTokens = {
|
|
|
236
239
|
successBackgroundColor: globalTokens.hal_green_l_95,
|
|
237
240
|
warningBackgroundColor: globalTokens.hal_yellow_l_95,
|
|
238
241
|
errorBackgroundColor: globalTokens.hal_red_l_95,
|
|
239
|
-
hoverActionBackgroundColor:
|
|
242
|
+
hoverActionBackgroundColor: globalTokens.color_grey_a_100,
|
|
240
243
|
activeActionBackgroundColor: "#0000001A",
|
|
241
244
|
focusActionBorderColor: globalTokens.hal_blue_l_50,
|
|
242
245
|
overlayColor: "#000000B3"
|
|
@@ -257,12 +260,21 @@ var componentTokens = {
|
|
|
257
260
|
oneShadowDepthShadowOffsetY: "3px",
|
|
258
261
|
oneShadowDepthShadowBlur: "6px",
|
|
259
262
|
oneShadowDepthShadowSpread: "0px",
|
|
260
|
-
oneShadowDepthShadowColor:
|
|
263
|
+
oneShadowDepthShadowColor: globalTokens.color_grey_a_300,
|
|
261
264
|
twoShadowDepthShadowOffsetX: "0px",
|
|
262
265
|
twoShadowDepthShadowOffsetY: "3px",
|
|
263
266
|
twoShadowDepthShadowBlur: "10px",
|
|
264
267
|
twoShadowDepthShadowSpread: "0px",
|
|
265
|
-
twoShadowDepthShadowColor:
|
|
268
|
+
twoShadowDepthShadowColor: globalTokens.color_grey_a_300
|
|
269
|
+
},
|
|
270
|
+
bulletedList: {
|
|
271
|
+
fontColor: globalTokens.hal_black,
|
|
272
|
+
fontColorOnDark: globalTokens.hal_white,
|
|
273
|
+
bulletIconHeight: "1.5rem",
|
|
274
|
+
bulletIconWidth: "1.5rem",
|
|
275
|
+
bulletHeight: "5px",
|
|
276
|
+
bulletWidth: "5px",
|
|
277
|
+
bulletMarginRight: "0.5rem"
|
|
266
278
|
},
|
|
267
279
|
button: {
|
|
268
280
|
labelFontLineHeight: globalTokens.type_leading_normal,
|
|
@@ -483,14 +495,13 @@ var componentTokens = {
|
|
|
483
495
|
focusDropBorderColor: globalTokens.hal_blue_l_50,
|
|
484
496
|
disabledDropBorderColor: globalTokens.hal_grey_l_60,
|
|
485
497
|
dragoverDropBackgroundColor: globalTokens.color_blue_50,
|
|
486
|
-
hoverFileItemIconBackgroundColor: globalTokens.hal_grey_l_95,
|
|
487
498
|
activeFileItemIconBackgrounColor: globalTokens.hal_grey_l_80,
|
|
488
499
|
errorFileItemBorderColor: globalTokens.hal_red_s_41,
|
|
489
500
|
errorFileItemBackgroundColor: globalTokens.color_red_50,
|
|
490
|
-
|
|
501
|
+
errorFilePreviewBackgroundColor: globalTokens.color_red_700,
|
|
491
502
|
errorFileItemIconColor: globalTokens.hal_red_s_41,
|
|
492
503
|
fileItemIconBackgroundColor: globalTokens.hal_grey_l_95,
|
|
493
|
-
|
|
504
|
+
deleteFileItemColor: globalTokens.hal_black,
|
|
494
505
|
errorMessageFontColor: globalTokens.hal_red_s_41,
|
|
495
506
|
labelFontFamily: globalTokens.type_sans,
|
|
496
507
|
labelFontSize: globalTokens.type_scale_02,
|
|
@@ -517,9 +528,12 @@ var componentTokens = {
|
|
|
517
528
|
fileItemBorderThickness: globalTokens.border_width_1,
|
|
518
529
|
fileItemBorderStyle: globalTokens.border_solid,
|
|
519
530
|
fileItemBorderRadius: globalTokens.border_radius_medium,
|
|
520
|
-
hoverDeleteFileItemBackgroundColor:
|
|
521
|
-
activeDeleteFileItemBackgroundColor:
|
|
522
|
-
|
|
531
|
+
hoverDeleteFileItemBackgroundColor: globalTokens.color_grey_a_100,
|
|
532
|
+
activeDeleteFileItemBackgroundColor: globalTokens.color_grey_a_300,
|
|
533
|
+
focusDeleteFileItemBorderColor: globalTokens.hal_blue_l_50,
|
|
534
|
+
filePreviewBackgroundColor: globalTokens.hal_grey_l_95,
|
|
535
|
+
filePreviewIconColor: globalTokens.color_grey_600,
|
|
536
|
+
errorFilePreviewIconColor: globalTokens.hal_red_s_41
|
|
523
537
|
},
|
|
524
538
|
footer: {
|
|
525
539
|
height: "124px",
|
|
@@ -712,7 +726,7 @@ var componentTokens = {
|
|
|
712
726
|
link: {
|
|
713
727
|
fontColor: globalTokens.hal_blue_s_35,
|
|
714
728
|
fontFamily: globalTokens.inherit,
|
|
715
|
-
fontSize: globalTokens.
|
|
729
|
+
fontSize: globalTokens.inherit,
|
|
716
730
|
fontStyle: globalTokens.type_normal,
|
|
717
731
|
fontWeight: globalTokens.type_regular,
|
|
718
732
|
iconSize: "16px",
|
|
@@ -729,6 +743,13 @@ var componentTokens = {
|
|
|
729
743
|
activeUnderlineColor: globalTokens.black,
|
|
730
744
|
focusColor: globalTokens.hal_blue_l_50
|
|
731
745
|
},
|
|
746
|
+
paragraph: {
|
|
747
|
+
fontColor: globalTokens.hal_black,
|
|
748
|
+
fontColorOnDark: globalTokens.hal_white,
|
|
749
|
+
display: "block",
|
|
750
|
+
fontSize: globalTokens.type_scale_03,
|
|
751
|
+
fontWeight: globalTokens.type_regular
|
|
752
|
+
},
|
|
732
753
|
paginator: {
|
|
733
754
|
backgroundColor: globalTokens.darkWhite,
|
|
734
755
|
fontColor: globalTokens.hal_black,
|
|
@@ -737,15 +758,15 @@ var componentTokens = {
|
|
|
737
758
|
fontStyle: globalTokens.type_normal,
|
|
738
759
|
fontWeight: globalTokens.type_regular,
|
|
739
760
|
fontTextTransform: "none",
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
marginRight: "
|
|
743
|
-
marginLeft: "
|
|
761
|
+
verticalPadding: "0.75rem",
|
|
762
|
+
horizontalPadding: "2rem",
|
|
763
|
+
marginRight: "2rem",
|
|
764
|
+
marginLeft: "2rem",
|
|
744
765
|
itemsPerPageSelectorMarginLeft: "0px",
|
|
745
|
-
itemsPerPageSelectorMarginRight: "
|
|
766
|
+
itemsPerPageSelectorMarginRight: "1rem",
|
|
746
767
|
pageSelectorMarginRight: "30px",
|
|
747
768
|
pageSelectorMarginLeft: "0px",
|
|
748
|
-
totalItemsContainerMarginRight: "
|
|
769
|
+
totalItemsContainerMarginRight: "3rem",
|
|
749
770
|
totalItemsContainerMarginLeft: "0px"
|
|
750
771
|
},
|
|
751
772
|
progressBar: {
|
|
@@ -777,21 +798,21 @@ var componentTokens = {
|
|
|
777
798
|
overlayColor: globalTokens.black,
|
|
778
799
|
overlayOpacity: "0.8"
|
|
779
800
|
},
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
801
|
+
quickNav: {
|
|
802
|
+
fontColor: globalTokens.hal_grey_s_40,
|
|
803
|
+
hoverFontColor: globalTokens.hal_purple_d_70,
|
|
804
|
+
selectedFontColor: globalTokens.hal_purple_s_38,
|
|
805
|
+
dividerBorderColor: globalTokens.hal_grey_l_75,
|
|
806
|
+
focusBorderColor: globalTokens.hal_blue_l_50,
|
|
807
|
+
focusBorderStyle: globalTokens.border_solid,
|
|
808
|
+
focusBorderThickness: globalTokens.border_width_2,
|
|
809
|
+
focusBorderRadius: globalTokens.border_width_2,
|
|
810
|
+
paddingTop: globalTokens.spacing_03,
|
|
811
|
+
paddingBottom: globalTokens.spacing_03,
|
|
812
|
+
paddingLeft: globalTokens.spacing_05,
|
|
813
|
+
paddingRight: globalTokens.spacing_05,
|
|
793
814
|
fontFamily: globalTokens.type_sans,
|
|
794
|
-
fontSize: globalTokens.
|
|
815
|
+
fontSize: globalTokens.type_scale_02,
|
|
795
816
|
fontStyle: globalTokens.type_normal,
|
|
796
817
|
fontWeight: globalTokens.type_regular
|
|
797
818
|
},
|
|
@@ -905,24 +926,35 @@ var componentTokens = {
|
|
|
905
926
|
arrowContainerColor: globalTokens.hal_grey_l_90,
|
|
906
927
|
arrowColor: globalTokens.hal_black,
|
|
907
928
|
titleFontFamily: globalTokens.type_sans,
|
|
908
|
-
titleFontSize: globalTokens.
|
|
929
|
+
titleFontSize: globalTokens.type_scale_04,
|
|
909
930
|
titleFontStyle: globalTokens.type_normal,
|
|
910
|
-
titleFontWeight: globalTokens.
|
|
911
|
-
titleFontColor: globalTokens.
|
|
931
|
+
titleFontWeight: globalTokens.type_semibold,
|
|
932
|
+
titleFontColor: globalTokens.color_grey_800,
|
|
912
933
|
titleFontTextTransform: "none",
|
|
913
934
|
titleFontLetterSpacing: globalTokens.type_spacing_normal,
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
935
|
+
groupTitleFontFamily: globalTokens.type_sans,
|
|
936
|
+
groupTitleFontSize: globalTokens.type_scale_02,
|
|
937
|
+
groupTitleFontStyle: globalTokens.type_normal,
|
|
938
|
+
groupTitleFontWeight: globalTokens.type_semibold,
|
|
939
|
+
groupTitleFontColor: globalTokens.black,
|
|
940
|
+
groupTitleHoverBackgroundColor: globalTokens.hal_grey_l_90,
|
|
941
|
+
groupTitleActiveBackgroundColor: globalTokens.hal_grey_l_80,
|
|
942
|
+
groupTitleSelectedFontColor: globalTokens.white,
|
|
943
|
+
groupTitleSelectedBackgroundColor: globalTokens.color_grey_800,
|
|
944
|
+
groupTitleSelectedHoverFontColor: globalTokens.white,
|
|
945
|
+
groupTitleSelectedHoverBackgroundColor: globalTokens.color_grey_600,
|
|
946
|
+
groupTitleFontTextTransform: globalTokens.type_uppercase,
|
|
947
|
+
groupTitleFontLetterSpacing: globalTokens.type_spacing_wide_02,
|
|
921
948
|
linkFontFamily: globalTokens.type_sans,
|
|
922
949
|
linkFontSize: globalTokens.type_scale_02,
|
|
923
950
|
linkFontStyle: globalTokens.type_normal,
|
|
924
951
|
linkFontWeight: globalTokens.type_regular,
|
|
925
952
|
linkFontColor: globalTokens.color_grey_800,
|
|
953
|
+
linkHoverBackgroundColor: globalTokens.hal_grey_l_90,
|
|
954
|
+
linkSelectedFontColor: globalTokens.white,
|
|
955
|
+
linkSelectedBackgroundColor: globalTokens.color_grey_800,
|
|
956
|
+
linkSelectedHoverFontColor: globalTokens.white,
|
|
957
|
+
linkSelectedHoverBackgroundColor: globalTokens.color_grey_600,
|
|
926
958
|
linkFontTextTransform: "none",
|
|
927
959
|
linkFontLetterSpacing: globalTokens.type_spacing_wide_01,
|
|
928
960
|
linkTextDecoration: globalTokens.type_no_line,
|
|
@@ -1010,7 +1042,7 @@ var componentTokens = {
|
|
|
1010
1042
|
},
|
|
1011
1043
|
spinner: {
|
|
1012
1044
|
trackCircleColor: "#5f249f",
|
|
1013
|
-
|
|
1045
|
+
trackCircleColorOverlay: "#a46ede",
|
|
1014
1046
|
totalCircleColor: globalTokens.white,
|
|
1015
1047
|
labelFontFamily: globalTokens.type_sans,
|
|
1016
1048
|
labelFontSize: globalTokens.type_scale_02,
|
|
@@ -1145,6 +1177,7 @@ var componentTokens = {
|
|
|
1145
1177
|
disabledFontColor: "#999999",
|
|
1146
1178
|
disabledIconColor: "#999999",
|
|
1147
1179
|
disabledFontStyle: globalTokens.type_normal,
|
|
1180
|
+
disabledBadgeBackgroundColor: "#0000004D",
|
|
1148
1181
|
hoverBackgroundColor: "#f2eafa",
|
|
1149
1182
|
pressedBackgroundColor: "#e5d5f6",
|
|
1150
1183
|
pressedFontWeight: globalTokens.type_semibold,
|
|
@@ -1264,57 +1297,64 @@ var componentTokens = {
|
|
|
1264
1297
|
optionFocusBorderThickness: globalTokens.border_width_2
|
|
1265
1298
|
},
|
|
1266
1299
|
wizard: {
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1300
|
+
visitedStepFontColor: globalTokens.hal_black,
|
|
1301
|
+
visitedStepBackgroundColor: globalTokens.hal_white,
|
|
1302
|
+
visitedStepBorderColor: globalTokens.hal_black,
|
|
1303
|
+
unvisitedStepFontColor: globalTokens.hal_grey_s_40,
|
|
1304
|
+
unvisitedLabelFontColor: globalTokens.hal_grey_s_40,
|
|
1305
|
+
unvisitedHelperTextFontColor: globalTokens.hal_grey_s_40,
|
|
1306
|
+
unvisitedStepBackgroundColor: globalTokens.transparent,
|
|
1307
|
+
unvisitedStepBorderColor: globalTokens.hal_grey_s_40,
|
|
1308
|
+
selectedStepFontColor: globalTokens.white,
|
|
1309
|
+
selectedStepBackgroundColor: globalTokens.hal_purple_s_38,
|
|
1310
|
+
selectedStepBorderColor: globalTokens.hal_purple_s_38,
|
|
1311
|
+
selectedLabelFontColor: globalTokens.hal_black,
|
|
1312
|
+
selectedHelperTextFontColor: globalTokens.hal_black,
|
|
1313
|
+
selectedStepWidth: "32px",
|
|
1314
|
+
selectedStepHeight: "32px",
|
|
1315
|
+
selectedStepBorderThickness: "2px",
|
|
1316
|
+
selectedStepBorderStyle: "solid",
|
|
1317
|
+
selectedStepBorderRadius: "45px",
|
|
1318
|
+
stepFontSize: globalTokens.type_scale_03,
|
|
1319
|
+
stepFontFamily: globalTokens.type_sans,
|
|
1320
|
+
stepFontStyle: globalTokens.type_normal,
|
|
1321
|
+
stepFontWeight: globalTokens.type_regular,
|
|
1322
|
+
stepFontTracking: globalTokens.type_spacing_wide_02,
|
|
1323
|
+
stepIconSize: "20px",
|
|
1324
|
+
stepWidth: "32px",
|
|
1325
|
+
stepHeight: "32px",
|
|
1326
|
+
stepBorderThickness: "2px",
|
|
1327
|
+
stepBorderStyle: "solid",
|
|
1328
|
+
stepBorderRadius: "45px",
|
|
1329
|
+
visitedLabelFontColor: globalTokens.hal_black,
|
|
1279
1330
|
labelFontSize: globalTokens.type_scale_03,
|
|
1280
1331
|
labelFontFamily: globalTokens.type_sans,
|
|
1281
1332
|
labelFontStyle: globalTokens.type_normal,
|
|
1282
1333
|
labelFontWeight: globalTokens.type_regular,
|
|
1283
|
-
|
|
1334
|
+
labelFontTracking: globalTokens.type_spacing_normal,
|
|
1284
1335
|
labelFontTextTransform: "none",
|
|
1285
1336
|
labelTextAlign: "left",
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
selectedCircleHeight: "32px",
|
|
1305
|
-
selectedCircleBorderThickness: "2px",
|
|
1306
|
-
selectedCircleBorderStyle: "solid",
|
|
1307
|
-
selectedCircleBorderRadius: "45px",
|
|
1308
|
-
selectedCircleBorderColor: globalTokens.purple,
|
|
1309
|
-
disabledCircleWidth: "32px",
|
|
1310
|
-
disabledCircleHeight: "32px",
|
|
1311
|
-
disabledCircleBorderThickness: "2px",
|
|
1312
|
-
disabledCircleBorderStyle: "solid",
|
|
1313
|
-
disabledCircleBorderRadius: "45px",
|
|
1314
|
-
disabledCircleBorderColor: globalTokens.lightGrey,
|
|
1337
|
+
helperTextFontSize: globalTokens.type_scale_02,
|
|
1338
|
+
helperTextFontFamily: globalTokens.type_sans,
|
|
1339
|
+
helperTextFontStyle: globalTokens.type_normal,
|
|
1340
|
+
helperTextFontWeight: globalTokens.type_regular,
|
|
1341
|
+
helperTextFontTracking: globalTokens.type_spacing_normal,
|
|
1342
|
+
helperTextFontTextTransform: "none",
|
|
1343
|
+
visitedHelperTextFontColor: globalTokens.hal_black,
|
|
1344
|
+
helperTextTextAlign: "left",
|
|
1345
|
+
disabledStepBackgroundColor: globalTokens.hal_grey_l_95,
|
|
1346
|
+
disabledStepFontColor: globalTokens.hal_grey_l_60,
|
|
1347
|
+
disabledLabelFontColor: globalTokens.hal_grey_l_60,
|
|
1348
|
+
disabledHelperTextFontColor: globalTokens.hal_grey_l_60,
|
|
1349
|
+
disabledStepBorderColor: globalTokens.hal_grey_l_95,
|
|
1350
|
+
disabledStepWidth: "32px",
|
|
1351
|
+
disabledStepHeight: "32px",
|
|
1352
|
+
disabledStepBorderThickness: "2px",
|
|
1353
|
+
disabledStepBorderStyle: "solid",
|
|
1354
|
+
disabledStepBorderRadius: "45px",
|
|
1315
1355
|
separatorBorderThickness: "1px",
|
|
1316
1356
|
separatorBorderStyle: "solid",
|
|
1317
|
-
separatorColor: globalTokens.
|
|
1357
|
+
separatorColor: globalTokens.hal_grey_s_40,
|
|
1318
1358
|
focusColor: globalTokens.hal_blue_l_50
|
|
1319
1359
|
}
|
|
1320
1360
|
};
|
|
@@ -1369,4 +1409,89 @@ var typeface = {
|
|
|
1369
1409
|
textTransform: "uppercase"
|
|
1370
1410
|
}
|
|
1371
1411
|
};
|
|
1372
|
-
exports.typeface = typeface;
|
|
1412
|
+
exports.typeface = typeface;
|
|
1413
|
+
var defaultTranslatedComponentLabels = {
|
|
1414
|
+
formFields: {
|
|
1415
|
+
optionalLabel: "(Optional)",
|
|
1416
|
+
requiredSelectionErrorMessage: "This field is required. Please, choose an option.",
|
|
1417
|
+
requiredValueErrorMessage: "This field is required. Please, enter a value.",
|
|
1418
|
+
formatRequestedErrorMessage: "Please match the format requested.",
|
|
1419
|
+
lengthErrorMessage: function lengthErrorMessage(minLength, maxLength) {
|
|
1420
|
+
return "Min length ".concat(minLength, ", max length ").concat(maxLength, ".");
|
|
1421
|
+
},
|
|
1422
|
+
logoAlternativeText: "Logo"
|
|
1423
|
+
},
|
|
1424
|
+
alert: {
|
|
1425
|
+
infoTitleText: "information",
|
|
1426
|
+
successTitleText: "success",
|
|
1427
|
+
warningTitleText: "warning",
|
|
1428
|
+
errorTitleText: "error"
|
|
1429
|
+
},
|
|
1430
|
+
dateInput: {
|
|
1431
|
+
invalidDateErrorMessage: "Invalid date."
|
|
1432
|
+
},
|
|
1433
|
+
fileInput: {
|
|
1434
|
+
fileSizeGreaterThanErrorMessage: "File size must be greater than min size.",
|
|
1435
|
+
fileSizeLessThanErrorMessage: "File size must be less than max size.",
|
|
1436
|
+
multipleButtonLabelDefault: "Select files",
|
|
1437
|
+
singleButtonLabelDefault: "Select file",
|
|
1438
|
+
dropAreaButtonLabelDefault: "Select",
|
|
1439
|
+
multipleDropAreaLabelDefault: "or drop files",
|
|
1440
|
+
singleDropAreaLabelDefault: "or drop a file"
|
|
1441
|
+
},
|
|
1442
|
+
footer: {
|
|
1443
|
+
copyrightText: function copyrightText(year) {
|
|
1444
|
+
return "\xA9 DXC Technology ".concat(year, ". All rights reserved.");
|
|
1445
|
+
}
|
|
1446
|
+
},
|
|
1447
|
+
numberInput: {
|
|
1448
|
+
valueGreaterThanOrEqualToErrorMessage: function valueGreaterThanOrEqualToErrorMessage(value) {
|
|
1449
|
+
return "Value must be greater than or equal to ".concat(value, ".");
|
|
1450
|
+
},
|
|
1451
|
+
valueLessThanOrEqualToErrorMessage: function valueLessThanOrEqualToErrorMessage(value) {
|
|
1452
|
+
return "Value must be less than or equal to ".concat(value, ".");
|
|
1453
|
+
},
|
|
1454
|
+
decrementValueTitle: "Decrement value",
|
|
1455
|
+
incrementValueTitle: "Increment value"
|
|
1456
|
+
},
|
|
1457
|
+
paginator: {
|
|
1458
|
+
itemsPerPageText: "Items per page ",
|
|
1459
|
+
minToMaxOfText: function minToMaxOfText(minNumberOfItems, maxNumberOfItems, totalItems) {
|
|
1460
|
+
return "".concat(minNumberOfItems, " to ").concat(maxNumberOfItems, " of ").concat(totalItems);
|
|
1461
|
+
},
|
|
1462
|
+
goToPageText: "Go to page:",
|
|
1463
|
+
pageOfText: function pageOfText(pageNumber, totalPagesNumber) {
|
|
1464
|
+
return "Page: ".concat(pageNumber, " of ").concat(totalPagesNumber);
|
|
1465
|
+
}
|
|
1466
|
+
},
|
|
1467
|
+
passwordInput: {
|
|
1468
|
+
inputShowPasswordTitle: "Show password",
|
|
1469
|
+
inputHidePasswordTitle: "Hide password"
|
|
1470
|
+
},
|
|
1471
|
+
quickNav: {
|
|
1472
|
+
contentTitle: "Contents"
|
|
1473
|
+
},
|
|
1474
|
+
radioGroup: {
|
|
1475
|
+
optionalItemLabelDefault: "N/A"
|
|
1476
|
+
},
|
|
1477
|
+
select: {
|
|
1478
|
+
noMatchesErrorMessage: "No matches found",
|
|
1479
|
+
actionClearSelectionTitle: "Clear selection",
|
|
1480
|
+
actionClearSearchTitle: "Clear search"
|
|
1481
|
+
},
|
|
1482
|
+
textInput: {
|
|
1483
|
+
clearFieldActionTitle: "Clear field",
|
|
1484
|
+
searchingMessage: "Searching...",
|
|
1485
|
+
fetchingDataErrorMessage: "Error fetching data"
|
|
1486
|
+
},
|
|
1487
|
+
calendar: {
|
|
1488
|
+
days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
|
|
1489
|
+
daysShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
1490
|
+
months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
|
|
1491
|
+
monthsShort: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
|
|
1492
|
+
},
|
|
1493
|
+
applicationLayout: {
|
|
1494
|
+
visibilityToggleTitle: "Toggle visibility sidenav"
|
|
1495
|
+
}
|
|
1496
|
+
};
|
|
1497
|
+
exports.defaultTranslatedComponentLabels = defaultTranslatedComponentLabels;
|
package/date-input/DateInput.js
CHANGED
|
@@ -25,14 +25,16 @@ var _ClickAwayListener = _interopRequireDefault(require("@material-ui/core/Click
|
|
|
25
25
|
|
|
26
26
|
var _Popover = _interopRequireDefault(require("@material-ui/core/Popover"));
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _dayjs = _interopRequireDefault(require("dayjs"));
|
|
29
29
|
|
|
30
|
-
var
|
|
30
|
+
var _dayjs2 = _interopRequireDefault(require("@date-io/dayjs"));
|
|
31
31
|
|
|
32
32
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
33
33
|
|
|
34
34
|
var _useTheme = _interopRequireDefault(require("../useTheme"));
|
|
35
35
|
|
|
36
|
+
var _useTranslatedLabels = _interopRequireDefault(require("../useTranslatedLabels"));
|
|
37
|
+
|
|
36
38
|
var _TextInput = _interopRequireDefault(require("../text-input/TextInput"));
|
|
37
39
|
|
|
38
40
|
var _templateObject;
|
|
@@ -46,7 +48,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
46
48
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
47
49
|
|
|
48
50
|
var getValueForPicker = function getValueForPicker(value, format) {
|
|
49
|
-
return (0,
|
|
51
|
+
return (0, _dayjs["default"])(value, format.toUpperCase(), true).format();
|
|
50
52
|
};
|
|
51
53
|
|
|
52
54
|
var DxcDateInput = /*#__PURE__*/_react["default"].forwardRef(function (_ref, ref) {
|
|
@@ -87,6 +89,7 @@ var DxcDateInput = /*#__PURE__*/_react["default"].forwardRef(function (_ref, ref
|
|
|
87
89
|
setAnchorEl = _useState6[1];
|
|
88
90
|
|
|
89
91
|
var colorsTheme = (0, _useTheme["default"])();
|
|
92
|
+
var translatedLabels = (0, _useTranslatedLabels["default"])();
|
|
90
93
|
var refDate = ref || (0, _react.useRef)(null);
|
|
91
94
|
|
|
92
95
|
var handleCalendarOnKeyDown = function handleCalendarOnKeyDown(event) {
|
|
@@ -100,7 +103,7 @@ var DxcDateInput = /*#__PURE__*/_react["default"].forwardRef(function (_ref, ref
|
|
|
100
103
|
};
|
|
101
104
|
|
|
102
105
|
var handleCalendarOnClick = function handleCalendarOnClick(newDate) {
|
|
103
|
-
var newValue = (0,
|
|
106
|
+
var newValue = (0, _dayjs["default"])(newDate).format(format.toUpperCase());
|
|
104
107
|
value !== null && value !== void 0 ? value : setInnerValue(newValue);
|
|
105
108
|
newDate !== null && newDate !== void 0 && newDate.toJSON() ? onChange === null || onChange === void 0 ? void 0 : onChange({
|
|
106
109
|
value: newValue,
|
|
@@ -114,32 +117,32 @@ var DxcDateInput = /*#__PURE__*/_react["default"].forwardRef(function (_ref, ref
|
|
|
114
117
|
var newValue = _ref2.value,
|
|
115
118
|
inputError = _ref2.error;
|
|
116
119
|
value !== null && value !== void 0 ? value : setInnerValue(newValue);
|
|
117
|
-
var
|
|
118
|
-
var invalidDateMessage = newValue !== "" && !
|
|
120
|
+
var dayjsDate = (0, _dayjs["default"])(newValue, format.toUpperCase(), true);
|
|
121
|
+
var invalidDateMessage = newValue !== "" && !dayjsDate.isValid() && translatedLabels.dateInput.invalidDateErrorMessage;
|
|
119
122
|
var callbackParams = inputError || invalidDateMessage ? {
|
|
120
123
|
value: newValue,
|
|
121
124
|
error: inputError || invalidDateMessage
|
|
122
125
|
} : {
|
|
123
126
|
value: newValue
|
|
124
127
|
};
|
|
125
|
-
|
|
126
|
-
date:
|
|
128
|
+
dayjsDate.isValid() ? onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread(_objectSpread({}, callbackParams), {}, {
|
|
129
|
+
date: dayjsDate.toDate()
|
|
127
130
|
})) : onChange === null || onChange === void 0 ? void 0 : onChange(callbackParams);
|
|
128
131
|
};
|
|
129
132
|
|
|
130
133
|
var handleIOnBlur = function handleIOnBlur(_ref3) {
|
|
131
134
|
var value = _ref3.value,
|
|
132
135
|
inputError = _ref3.error;
|
|
133
|
-
var
|
|
134
|
-
var invalidDateMessage = value !== "" && !
|
|
136
|
+
var dayjsDate = (0, _dayjs["default"])(value, format.toUpperCase(), true);
|
|
137
|
+
var invalidDateMessage = value !== "" && !dayjsDate.isValid() && translatedLabels.dateInput.invalidDateErrorMessage;
|
|
135
138
|
var callbackParams = inputError || invalidDateMessage ? {
|
|
136
139
|
value: value,
|
|
137
140
|
error: inputError || invalidDateMessage
|
|
138
141
|
} : {
|
|
139
142
|
value: value
|
|
140
143
|
};
|
|
141
|
-
|
|
142
|
-
date:
|
|
144
|
+
dayjsDate.isValid() ? onBlur === null || onBlur === void 0 ? void 0 : onBlur(_objectSpread(_objectSpread({}, callbackParams), {}, {
|
|
145
|
+
date: dayjsDate.toDate()
|
|
143
146
|
})) : onBlur === null || onBlur === void 0 ? void 0 : onBlur(callbackParams);
|
|
144
147
|
};
|
|
145
148
|
|
|
@@ -310,7 +313,7 @@ var DxcDateInput = /*#__PURE__*/_react["default"].forwardRef(function (_ref, ref
|
|
|
310
313
|
}, /*#__PURE__*/_react["default"].createElement(_core.MuiThemeProvider, {
|
|
311
314
|
theme: dateTheme
|
|
312
315
|
}, /*#__PURE__*/_react["default"].createElement(_pickers.MuiPickersUtilsProvider, {
|
|
313
|
-
utils:
|
|
316
|
+
utils: _dayjs2["default"]
|
|
314
317
|
}, /*#__PURE__*/_react["default"].createElement(StyledDPicker, null, /*#__PURE__*/_react["default"].createElement(_TextInput["default"], {
|
|
315
318
|
label: label,
|
|
316
319
|
name: name,
|
|
@@ -17,7 +17,7 @@ const iconSVG = (
|
|
|
17
17
|
);
|
|
18
18
|
|
|
19
19
|
const iconSVGLarge = (
|
|
20
|
-
<svg
|
|
20
|
+
<svg enableBackground="new 0 0 24 24" height="48px" viewBox="0 0 24 24" width="48px" fill="currentColor">
|
|
21
21
|
<g>
|
|
22
22
|
<path d="M0,0h24v24H0V0z" fill="none" />
|
|
23
23
|
<path d="M0,0h24v24H0V0z" fill="none" />
|
package/file-input/FileInput.js
CHANGED
|
@@ -33,6 +33,8 @@ var _variables = require("../common/variables.js");
|
|
|
33
33
|
|
|
34
34
|
var _useTheme = _interopRequireDefault(require("../useTheme"));
|
|
35
35
|
|
|
36
|
+
var _useTranslatedLabels = _interopRequireDefault(require("../useTranslatedLabels"));
|
|
37
|
+
|
|
36
38
|
var _Button = _interopRequireDefault(require("../button/Button"));
|
|
37
39
|
|
|
38
40
|
var _FileItem = _interopRequireDefault(require("./FileItem"));
|
|
@@ -127,6 +129,7 @@ var DxcFileInput = function DxcFileInput(_ref) {
|
|
|
127
129
|
fileInputId = _useState6[0];
|
|
128
130
|
|
|
129
131
|
var colorsTheme = (0, _useTheme["default"])();
|
|
132
|
+
var translatedLabels = (0, _useTranslatedLabels["default"])();
|
|
130
133
|
(0, _react.useEffect)(function () {
|
|
131
134
|
var getFiles = /*#__PURE__*/function () {
|
|
132
135
|
var _ref2 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2() {
|
|
@@ -204,11 +207,11 @@ var DxcFileInput = function DxcFileInput(_ref) {
|
|
|
204
207
|
|
|
205
208
|
var checkFileSize = function checkFileSize(file) {
|
|
206
209
|
if (file.size < minSize) {
|
|
207
|
-
return
|
|
210
|
+
return translatedLabels.fileInput.fileSizeGreaterThanErrorMessage;
|
|
208
211
|
}
|
|
209
212
|
|
|
210
213
|
if (file.size > maxSize) {
|
|
211
|
-
return
|
|
214
|
+
return translatedLabels.fileInput.fileSizeLessThanErrorMessage;
|
|
212
215
|
}
|
|
213
216
|
};
|
|
214
217
|
|
|
@@ -410,7 +413,7 @@ var DxcFileInput = function DxcFileInput(_ref) {
|
|
|
410
413
|
onChange: selectFiles
|
|
411
414
|
}), /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
412
415
|
mode: "secondary",
|
|
413
|
-
label: buttonLabel !== null && buttonLabel !== void 0 ? buttonLabel : multiple ?
|
|
416
|
+
label: buttonLabel !== null && buttonLabel !== void 0 ? buttonLabel : multiple ? translatedLabels.fileInput.multipleButtonLabelDefault : translatedLabels.fileInput.singleButtonLabelDefault,
|
|
414
417
|
onClick: handleClick,
|
|
415
418
|
disabled: disabled,
|
|
416
419
|
size: "medium",
|
|
@@ -450,15 +453,15 @@ var DxcFileInput = function DxcFileInput(_ref) {
|
|
|
450
453
|
mode: mode
|
|
451
454
|
}, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
452
455
|
mode: "secondary",
|
|
453
|
-
label: buttonLabel !== null && buttonLabel !== void 0 ? buttonLabel :
|
|
456
|
+
label: buttonLabel !== null && buttonLabel !== void 0 ? buttonLabel : translatedLabels.fileInput.dropAreaButtonLabelDefault,
|
|
454
457
|
onClick: handleClick,
|
|
455
458
|
disabled: disabled,
|
|
456
459
|
size: "fitContent"
|
|
457
460
|
})), mode === "dropzone" ? /*#__PURE__*/_react["default"].createElement(DropzoneLabel, {
|
|
458
461
|
disabled: disabled
|
|
459
|
-
}, dropAreaLabel !== null && dropAreaLabel !== void 0 ? dropAreaLabel : multiple ?
|
|
462
|
+
}, dropAreaLabel !== null && dropAreaLabel !== void 0 ? dropAreaLabel : multiple ? translatedLabels.fileInput.multipleDropAreaLabelDefault : translatedLabels.fileInput.singleDropAreaLabelDefault) : /*#__PURE__*/_react["default"].createElement(FiledropLabel, {
|
|
460
463
|
disabled: disabled
|
|
461
|
-
}, dropAreaLabel !== null && dropAreaLabel !== void 0 ? dropAreaLabel : multiple ?
|
|
464
|
+
}, dropAreaLabel !== null && dropAreaLabel !== void 0 ? dropAreaLabel : multiple ? translatedLabels.fileInput.multipleDropAreaLabelDefault : translatedLabels.fileInput.singleDropAreaLabelDefault)), files.map(function (file) {
|
|
462
465
|
return /*#__PURE__*/_react["default"].createElement(FileItemContainer, {
|
|
463
466
|
mode: mode,
|
|
464
467
|
multiple: multiple,
|
package/file-input/FileItem.js
CHANGED
|
@@ -133,9 +133,9 @@ var FileItemContainer = _styledComponents["default"].div(_templateObject3 || (_t
|
|
|
133
133
|
var ImagePreview = _styledComponents["default"].img(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2["default"])(["\n width: 48px;\n height: 48px;\n object-fit: contain;\n margin-right: 12px;\n border-radius: 2px;\n"])));
|
|
134
134
|
|
|
135
135
|
var IconPreviewContainer = _styledComponents["default"].div(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n align-items: center;\n justify-content: center;\n margin-right: 12px;\n background-color: ", ";\n width: 48px;\n height: 48px;\n border-radius: 2px;\n color: ", ";\n"])), function (props) {
|
|
136
|
-
return props.error ? props.theme.
|
|
136
|
+
return props.error ? props.theme.errorFilePreviewBackgroundColor : props.theme.filePreviewBackgroundColor;
|
|
137
137
|
}, function (props) {
|
|
138
|
-
return props.error ? props.theme.
|
|
138
|
+
return props.error ? props.theme.errorFilePreviewIconColor : props.theme.filePreviewIconColor;
|
|
139
139
|
});
|
|
140
140
|
|
|
141
141
|
var IconPreview = _styledComponents["default"].div(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2["default"])([""])));
|
|
@@ -156,14 +156,16 @@ var FileName = _styledComponents["default"].span(_templateObject7 || (_templateO
|
|
|
156
156
|
|
|
157
157
|
var ErrorIcon = _styledComponents["default"].span(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n flex-wrap: wrap;\n align-content: center;\n padding: 3px;\n height: 18px;\n width: 18px;\n color: #d0011b;\n"])));
|
|
158
158
|
|
|
159
|
-
var DeleteIcon = _styledComponents["default"].button(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n flex-wrap: wrap;\n align-content: center;\n height: 24px;\n width: 24px;\n font-size: 1rem;\n font-family: ", ";\n border: 1px solid transparent;\n border-radius: 2px;\n margin-left: 4px;\n background-color: transparent;\n box-shadow: 0 0 0 2px transparent;\n padding: 3px;\n cursor: pointer;\n svg {\n line-height: 18px;\n }\n &:hover {\n background-color: ", ";\n }\n &:focus {\n outline: none;\n box-shadow: 0 0 0 2px ", ";\n }\n &:focus-visible {\n outline: none;\n box-shadow: 0 0 0 2px ", ";\n }\n &:active {\n background-color: ", ";\n }\n"])), function (props) {
|
|
159
|
+
var DeleteIcon = _styledComponents["default"].button(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2["default"])(["\n display: flex;\n flex-wrap: wrap;\n align-content: center;\n height: 24px;\n width: 24px;\n font-size: 1rem;\n font-family: ", ";\n border: 1px solid transparent;\n border-radius: 2px;\n margin-left: 4px;\n background-color: transparent;\n box-shadow: 0 0 0 2px transparent;\n padding: 3px;\n cursor: pointer;\n color: ", ";\n svg {\n line-height: 18px;\n }\n &:hover {\n background-color: ", ";\n }\n &:focus {\n outline: none;\n box-shadow: 0 0 0 2px ", ";\n }\n &:focus-visible {\n outline: none;\n box-shadow: 0 0 0 2px ", ";\n }\n &:active {\n background-color: ", ";\n }\n"])), function (props) {
|
|
160
160
|
return props.theme.fontFamily;
|
|
161
|
+
}, function (props) {
|
|
162
|
+
return props.theme.deleteFileItemColor;
|
|
161
163
|
}, function (props) {
|
|
162
164
|
return props.theme.hoverDeleteFileItemBackgroundColor;
|
|
163
165
|
}, function (props) {
|
|
164
|
-
return props.theme.
|
|
166
|
+
return props.theme.focusDeleteFileItemBorderColor;
|
|
165
167
|
}, function (props) {
|
|
166
|
-
return props.theme.
|
|
168
|
+
return props.theme.focusDeleteFileItemBorderColor;
|
|
167
169
|
}, function (props) {
|
|
168
170
|
return props.theme.activeDeleteFileItemBackgroundColor;
|
|
169
171
|
});
|
package/flex/Flex.d.ts
ADDED