@synerise/ds-file-uploader 1.0.8 → 1.0.9

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/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.0.9](https://github.com/Synerise/synerise-design/compare/@synerise/ds-file-uploader@1.0.8...@synerise/ds-file-uploader@1.0.9) (2025-05-19)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-file-uploader
9
+
10
+
11
+
12
+
13
+
6
14
  ## [1.0.8](https://github.com/Synerise/synerise-design/compare/@synerise/ds-file-uploader@1.0.7...@synerise/ds-file-uploader@1.0.8) (2025-05-07)
7
15
 
8
16
  **Note:** Version bump only for package @synerise/ds-file-uploader
@@ -1 +1 @@
1
- {"version":3,"file":"AvatarUploader.d.ts","sourceRoot":"","sources":["../../src/AvatarUploader/AvatarUploader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAW1B,OAAO,EAAE,iBAAiB,EAAe,MAAM,uBAAuB,CAAC;AAcvE,QAAA,MAAM,cAAc,yIAejB,iBAAiB,sBAiHnB,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"AvatarUploader.d.ts","sourceRoot":"","sources":["../../src/AvatarUploader/AvatarUploader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAY1B,OAAO,EAAE,iBAAiB,EAAe,MAAM,uBAAuB,CAAC;AAcvE,QAAA,MAAM,cAAc,yIAejB,iBAAiB,sBAmHnB,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -4,6 +4,7 @@ import { useDropzone } from 'react-dropzone';
4
4
  import Tooltip from '@synerise/ds-tooltip';
5
5
  import Icon, { InfoFillS, Add3M, FileTypePictureL } from '@synerise/ds-icon';
6
6
  import Button from '@synerise/ds-button';
7
+ import { useTheme } from '@synerise/ds-core';
7
8
  import FileViewAvatar from './FileViewAvatar/FileViewAvatar';
8
9
  import * as S from './AvatarUploader.styles';
9
10
  function readAsText(file) {
@@ -41,6 +42,7 @@ var AvatarUploader = function AvatarUploader(_ref) {
41
42
  var _React$useState = React.useState(true),
42
43
  uploadSuccess = _React$useState[0],
43
44
  setUploadSuccess = _React$useState[1];
45
+ var theme = useTheme();
44
46
  var readFilesContent = React.useCallback(function (addedFiles) {
45
47
  var readerPromises = addedFiles.map(function (file) {
46
48
  return readAsText(file);
@@ -94,6 +96,7 @@ var AvatarUploader = function AvatarUploader(_ref) {
94
96
  "data-testid": "tooltip-info"
95
97
  }, /*#__PURE__*/React.createElement(Icon, {
96
98
  component: /*#__PURE__*/React.createElement(InfoFillS, null),
99
+ color: theme.palette['grey-400'],
97
100
  size: 24
98
101
  })))), files.length > 0 && files.map(function (file, index) {
99
102
  return /*#__PURE__*/React.createElement(FileViewAvatar, {
@@ -1 +1 @@
1
- {"version":3,"file":"AvatarUploader.styles.d.ts","sourceRoot":"","sources":["../../src/AvatarUploader/AvatarUploader.styles.ts"],"names":[],"mappings":";AAKA,eAAO,MAAM,SAAS,oEAGrB,CAAC;AACF,eAAO,MAAM,iBAAiB,oEAG7B,CAAC;AACF,eAAO,MAAM,WAAW;;SAMvB,CAAC;AAEF,eAAO,MAAM,iBAAiB;mBAA+B,OAAO;SAGnE,CAAC;AAEF,eAAO,MAAM,aAAa,uMAGzB,CAAC;AAEF,eAAO,MAAM,kBAAkB,sEAO9B,CAAC;AAEF,eAAO,MAAM,wBAAwB,uMAMpC,CAAC;AAEF,eAAO,MAAM,cAAc;;;UAGnB,MAAM;aACH,OAAO;iBACH,MAAM;SAuGpB,CAAC;AAEF,eAAO,MAAM,YAAY,uMAMxB,CAAC;AAEF,eAAO,MAAM,KAAK,sEAWjB,CAAC"}
1
+ {"version":3,"file":"AvatarUploader.styles.d.ts","sourceRoot":"","sources":["../../src/AvatarUploader/AvatarUploader.styles.ts"],"names":[],"mappings":";AAKA,eAAO,MAAM,SAAS,oEAGrB,CAAC;AACF,eAAO,MAAM,iBAAiB,oEAG7B,CAAC;AACF,eAAO,MAAM,WAAW;;SAMvB,CAAC;AAEF,eAAO,MAAM,iBAAiB;mBAA+B,OAAO;SAGnE,CAAC;AAEF,eAAO,MAAM,aAAa,uMAGzB,CAAC;AAEF,eAAO,MAAM,kBAAkB,sEAO9B,CAAC;AAEF,eAAO,MAAM,wBAAwB,uMAMpC,CAAC;AAEF,eAAO,MAAM,cAAc;;;UAGnB,MAAM;aACH,OAAO;iBACH,MAAM;SAsGpB,CAAC;AAEF,eAAO,MAAM,YAAY,uMAMxB,CAAC;AAEF,eAAO,MAAM,KAAK,sEAOjB,CAAC"}
@@ -45,7 +45,7 @@ export var LargeDropAreaDescription = styled(Typography.Text).withConfig({
45
45
  export var DropAreaButton = styled.button.withConfig({
46
46
  displayName: "AvatarUploaderstyles__DropAreaButton",
47
47
  componentId: "sc-1lljrgr-7"
48
- })(["align-items:center;border:1px dashed ", ";padding:11px 12px;border-radius:3px;cursor:pointer;background-color:transparent;width:80px;height:80px;transition:height 0.3s;", ";", "{fill:", ";}span{display:inline-block;margin:0 0 0 12px;}", " ", " &:hover:not(:disabled){background-color:", ";border-color:", ";", ",", "{color:", ";}", "{fill:", ";color:", ";}}&:disabled{background-color:", ";", "{color:", ";}}&&:active{color:", ";border-color:", ";background-color:", ";}&:focus:not(:active):not(:disabled){border-color:", ";background-color:", ";}&:disabled{span,", "{opacity:0.4;}}", ""], function (props) {
48
+ })(["align-items:center;border:1px dashed ", ";padding:11px 12px;border-radius:3px;cursor:pointer;background-color:transparent;width:80px;height:80px;transition:height 0.3s;", ";", "{color:", ";}span{display:inline-block;margin:0 0 0 12px;}", " ", " &:hover:not(:disabled){background-color:", ";border-color:", ";", ",", "{color:", ";}", "{color:", ";}}&:disabled{background-color:", ";", "{color:", ";}}&&:active{color:", ";border-color:", ";background-color:", ";}&:focus:not(:active):not(:disabled){border-color:", ";background-color:", ";}&:disabled{span,", "{opacity:0.4;}}", ""], function (props) {
49
49
  return props.theme.palette['grey-400'];
50
50
  }, function (props) {
51
51
  return props.mode === 'multi-large' && props.filesLength === 0 && "\n height: 108px;\n flex-direction: column;\n text-align: center;\n justify-content: center;\n ";
@@ -63,8 +63,6 @@ export var DropAreaButton = styled.button.withConfig({
63
63
  return props.theme.palette['grey-700'];
64
64
  }, IconContainer, function (props) {
65
65
  return props.theme.palette['grey-700'];
66
- }, function (props) {
67
- return props.theme.palette['grey-700'];
68
66
  }, function (props) {
69
67
  return props.theme.palette['grey-050'];
70
68
  }, LargeDropAreaLabel, function (props) {
@@ -80,7 +78,7 @@ export var DropAreaButton = styled.button.withConfig({
80
78
  }, function (props) {
81
79
  return props.theme.palette['blue-050'];
82
80
  }, IconContainer, function (props) {
83
- return props.isDropping && !props.disabled && "\n height: " + (props.mode === 'multi-large' ? '200px' : '80px') + ";\n background-color: " + props.theme.palette['blue-050'] + " !important;\n border-color: " + props.theme.palette['blue-300'] + " !important;\n\n span, " + DropAreaLabel + ", " + LargeDropAreaLabel + ", " + LargeDropAreaDescription + " {\n color: " + props.theme.palette['blue-500'] + " !important;\n }\n\n " + IconContainer + " {\n fill: " + props.theme.palette['blue-500'] + " !important;\n }\n ";
81
+ return props.isDropping && !props.disabled && "\n height: " + (props.mode === 'multi-large' ? '200px' : '80px') + ";\n background-color: " + props.theme.palette['blue-050'] + " !important;\n border-color: " + props.theme.palette['blue-300'] + " !important;\n\n span, " + DropAreaLabel + ", " + LargeDropAreaLabel + ", " + LargeDropAreaDescription + " {\n color: " + props.theme.palette['blue-500'] + " !important;\n }\n\n " + IconContainer + " {\n color: " + props.theme.palette['blue-500'] + " !important;\n }\n ";
84
82
  });
85
83
  export var ErrorMessage = styled(Typography.Text).withConfig({
86
84
  displayName: "AvatarUploaderstyles__ErrorMessage",
@@ -91,6 +89,4 @@ export var ErrorMessage = styled(Typography.Text).withConfig({
91
89
  export var Label = styled(TypographyLabel).withConfig({
92
90
  displayName: "AvatarUploaderstyles__Label",
93
91
  componentId: "sc-1lljrgr-9"
94
- })(["&&{cursor:initial;margin:0 0 8px;display:flex;align-items:center;", "{fill:", ";}}"], IconContainer, function (props) {
95
- return props.theme.palette['grey-400'];
96
- });
92
+ })(["&&{cursor:initial;margin:0 0 8px;display:flex;align-items:center;}"]);
@@ -1 +1 @@
1
- {"version":3,"file":"FileViewAvatar.styles.d.ts","sourceRoot":"","sources":["../../../src/AvatarUploader/FileViewAvatar/FileViewAvatar.styles.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,YAAY,oEAIxB,CAAC;AACF,eAAO,MAAM,UAAU,oEAOtB,CAAC;AACF,eAAO,MAAM,UAAU,oEAEtB,CAAC;AACF,eAAO,MAAM,gBAAgB,uCAQ5B,CAAC;AACF,eAAO,MAAM,WAAW;;;SAKvB,CAAC;AAEF,eAAO,MAAM,gBAAgB,oEAU5B,CAAC;AAEF,eAAO,MAAM,mBAAmB,oEAE/B,CAAC;AACF,eAAO,MAAM,iBAAiB,oEAAe,CAAC;AAE9C,eAAO,MAAM,IAAI,oEAIhB,CAAC;AACF,eAAO,MAAM,mBAAmB;;SAG/B,CAAC;AAEF,eAAO,MAAM,IAAI,sEAShB,CAAC;AAEF,eAAO,MAAM,mBAAmB;;SA0B/B,CAAC;AACF,eAAO,MAAM,aAAa;;SAiBzB,CAAC;AACF,eAAO,MAAM,eAAe;YAAwB,MAAM;;;SAwBzD,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;;SAsFpB,CAAC"}
1
+ {"version":3,"file":"FileViewAvatar.styles.d.ts","sourceRoot":"","sources":["../../../src/AvatarUploader/FileViewAvatar/FileViewAvatar.styles.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,YAAY,oEAIxB,CAAC;AACF,eAAO,MAAM,UAAU,oEAOtB,CAAC;AACF,eAAO,MAAM,UAAU,oEAEtB,CAAC;AACF,eAAO,MAAM,gBAAgB,uCAQ5B,CAAC;AACF,eAAO,MAAM,WAAW;;;SAKvB,CAAC;AAEF,eAAO,MAAM,gBAAgB,oEAU5B,CAAC;AAEF,eAAO,MAAM,mBAAmB,oEAE/B,CAAC;AACF,eAAO,MAAM,iBAAiB,oEAAe,CAAC;AAE9C,eAAO,MAAM,IAAI,oEAIhB,CAAC;AACF,eAAO,MAAM,mBAAmB;;SAG/B,CAAC;AAEF,eAAO,MAAM,IAAI,sEAShB,CAAC;AAEF,eAAO,MAAM,mBAAmB;;SA0B/B,CAAC;AACF,eAAO,MAAM,aAAa;;SAiBzB,CAAC;AACF,eAAO,MAAM,eAAe;YAAwB,MAAM;;;SAuBzD,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;;SAsFpB,CAAC"}
@@ -5,13 +5,13 @@ import { Loader } from '@synerise/ds-loader/dist/Loader.styles';
5
5
  export var PreviewImage = styled.div.withConfig({
6
6
  displayName: "FileViewAvatarstyles__PreviewImage",
7
7
  componentId: "sc-1jbyu2z-0"
8
- })(["", "{fill:", ";}"], IconContainer, function (props) {
8
+ })(["", "{color:", ";}"], IconContainer, function (props) {
9
9
  return props.theme.palette['grey-700'];
10
10
  });
11
11
  export var RepeatIcon = styled.div.withConfig({
12
12
  displayName: "FileViewAvatarstyles__RepeatIcon",
13
13
  componentId: "sc-1jbyu2z-1"
14
- })(["", "{fill:", ";}&:hover{cursor:pointer;}"], IconContainer, function (props) {
14
+ })(["", "{color:", ";}&:hover{cursor:pointer;}"], IconContainer, function (props) {
15
15
  return props.theme.palette['blue-600'];
16
16
  });
17
17
  export var LoaderIcon = styled.div.withConfig({
@@ -28,7 +28,7 @@ export var SmallLoader = styled(Loader).withConfig({
28
28
  export var PlaceholderImage = styled.div.withConfig({
29
29
  displayName: "FileViewAvatarstyles__PlaceholderImage",
30
30
  componentId: "sc-1jbyu2z-4"
31
- })(["background-color:", ";width:32px;height:32px;border-radius:3px;padding:4px;", "{fill:", ";}"], function (props) {
31
+ })(["background-color:", ";width:32px;height:32px;border-radius:3px;padding:4px;", "{color:", ";}"], function (props) {
32
32
  return props.theme.palette['grey-200'];
33
33
  }, IconContainer, function (props) {
34
34
  return props.theme.palette['grey-500'];
@@ -60,7 +60,7 @@ export var Name = styled(Label).withConfig({
60
60
  export var RemoveButtonWrapper = styled.div.withConfig({
61
61
  displayName: "FileViewAvatarstyles__RemoveButtonWrapper",
62
62
  componentId: "sc-1jbyu2z-10"
63
- })(["display:", ";background-color:transparent;z-index:10;border:0;padding:0;margin:0 4px 0 0;height:16px;width:16px;position:absolute;top:8px;right:5px;cursor:pointer;overflow:", ";", "{position:absolute;right:-2px;top:-2px;transition:fill 0.3s;fill:", ";&:hover{fill:", ";}}"], function (props) {
63
+ })(["display:", ";background-color:transparent;z-index:10;border:0;padding:0;margin:0 4px 0 0;height:16px;width:16px;position:absolute;top:8px;right:5px;cursor:pointer;overflow:", ";", "{position:absolute;right:-2px;top:-2px;transition:fill 0.3s;color:", ";&:hover{color:", ";}}"], function (props) {
64
64
  return props.pressed ? 'flex' : 'none';
65
65
  }, function (props) {
66
66
  return props.pressed ? 'visible' : 'hidden';
@@ -72,7 +72,7 @@ export var RemoveButtonWrapper = styled.div.withConfig({
72
72
  export var RemoveWrapper = styled.div.withConfig({
73
73
  displayName: "FileViewAvatarstyles__RemoveWrapper",
74
74
  componentId: "sc-1jbyu2z-11"
75
- })(["z-index:100;height:0;width:0;position:relative;bottom:10px;left:68px;cursor:pointer;overflow:hidden;", "{transition:fill 0.3s;fill:", ";&:hover{fill:", ";}}"], IconContainer, function (props) {
75
+ })(["z-index:100;height:0;width:0;position:relative;bottom:10px;left:68px;cursor:pointer;overflow:hidden;", "{transition:fill 0.3s;color:", ";&:hover{color:", ";}}"], IconContainer, function (props) {
76
76
  return props.theme.palette['red-600'];
77
77
  }, function (props) {
78
78
  return props.theme.palette['red-600'];
@@ -88,7 +88,7 @@ export var AvatarContainer = styled.div.withConfig({
88
88
  export var FileView = styled.button.withConfig({
89
89
  displayName: "FileViewAvatarstyles__FileView",
90
90
  componentId: "sc-1jbyu2z-13"
91
- })(["background-color:", ";border-radius:3px;border:2px solid transparent;display:flex;align-items:center;padding:7px 12px 7px 6px;height:32px;text-align:left;line-height:initial;position:relative;margin:0 0 12px;&:last-of-type{margin:0;}&:hover{border-color:", ";padding-right:", ";", "{color:", ";}", "{", "{fill:", ";}}", "}&:focus{border-color:", ";background-color:", ";}&:hover{background-color:", ";}&:active{border-color:", ";background-color:", ";", "{color:", ";}", "{", "{fill:", ";}}}", ";", ";", ";"], function (props) {
91
+ })(["background-color:", ";border-radius:3px;border:2px solid transparent;display:flex;align-items:center;padding:7px 12px 7px 6px;height:32px;text-align:left;line-height:initial;position:relative;margin:0 0 12px;&:last-of-type{margin:0;}&:hover{border-color:", ";padding-right:", ";", "{color:", ";}", "{", "{color:", ";}}", "}&:focus{border-color:", ";background-color:", ";}&:hover{background-color:", ";}&:active{border-color:", ";background-color:", ";", "{color:", ";}", "{", "{color:", ";}}}", ";", ";", ";"], function (props) {
92
92
  return props.theme.palette['grey-100'];
93
93
  }, function (props) {
94
94
  return props.theme.palette['grey-200'];
@@ -1 +1 @@
1
- {"version":3,"file":"FileUploader.styles.d.ts","sourceRoot":"","sources":["../src/FileUploader.styles.ts"],"names":[],"mappings":";AAEA,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAIzC,eAAO,MAAM,SAAS,oEAErB,CAAC;AAEF,eAAO,MAAM,WAAW;;;;;;;SAMvB,CAAC;AAEF,eAAO,MAAM,iBAAiB;mBAA+B,OAAO;SAGnE,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;kDAKzB,CAAC;AAEF,eAAO,MAAM,kBAAkB,sEAO9B,CAAC;AAEF,eAAO,MAAM,wBAAwB;;;;;kDAMpC,CAAC;AAEF,eAAO,MAAM,cAAc;;;UAGnB,MAAM;aACH,OAAO;iBACH,MAAM;YACX,OAAO;SAyGhB,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;kDAMxB,CAAC;AAEF,eAAO,MAAM,KAAK,sEAWjB,CAAC;AAEF,eAAO,MAAM,YAAY,4EAAmB,CAAC"}
1
+ {"version":3,"file":"FileUploader.styles.d.ts","sourceRoot":"","sources":["../src/FileUploader.styles.ts"],"names":[],"mappings":";AAEA,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAIzC,eAAO,MAAM,SAAS,oEAErB,CAAC;AAEF,eAAO,MAAM,WAAW;;;;;;;SAMvB,CAAC;AAEF,eAAO,MAAM,iBAAiB;mBAA+B,OAAO;SAGnE,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;kDAKzB,CAAC;AAEF,eAAO,MAAM,kBAAkB,sEAO9B,CAAC;AAEF,eAAO,MAAM,wBAAwB;;;;;kDAMpC,CAAC;AAEF,eAAO,MAAM,cAAc;;;UAGnB,MAAM;aACH,OAAO;iBACH,MAAM;YACX,OAAO;SAwGhB,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;kDAMxB,CAAC;AAEF,eAAO,MAAM,KAAK,sEAWjB,CAAC;AAEF,eAAO,MAAM,YAAY,4EAAmB,CAAC"}
@@ -42,7 +42,7 @@ export var LargeDropAreaDescription = styled(Text).withConfig({
42
42
  export var DropAreaButton = styled.button.withConfig({
43
43
  displayName: "FileUploaderstyles__DropAreaButton",
44
44
  componentId: "sc-62r2x6-6"
45
- })(["display:", ";align-items:center;border:1px dashed ", ";padding:11px 12px;border-radius:3px;cursor:pointer;background-color:transparent;width:100%;height:48px;transition:height 0.03s;", ";", ";", "{fill:", ";}", " ", " &:hover:not(:disabled){background-color:", ";border-color:", ";", ",", "{color:", ";}", "{fill:", ";color:", ";}}&:disabled{background-color:", ";", "{color:", ";}}&&:active{color:", ";border-color:", ";background-color:", ";}&:focus:not(:active):not(:disabled){border-color:", ";background-color:", ";}&:disabled{span,", "{opacity:0.4;}}", ""], function (props) {
45
+ })(["display:", ";align-items:center;border:1px dashed ", ";padding:11px 12px;border-radius:3px;cursor:pointer;background-color:transparent;width:100%;height:48px;transition:height 0.03s;", ";", ";", "{color:", ";}", " ", " &:hover:not(:disabled){background-color:", ";border-color:", ";", ",", "{color:", ";}", "{color:", ";}}&:disabled{background-color:", ";", "{color:", ";}}&&:active{color:", ";border-color:", ";background-color:", ";}&:focus:not(:active):not(:disabled){border-color:", ";background-color:", ";}&:disabled{span,", "{opacity:0.4;}}", ""], function (props) {
46
46
  return props.hidden ? 'none' : 'flex';
47
47
  }, function (props) {
48
48
  return props.theme.palette['grey-400'];
@@ -64,8 +64,6 @@ export var DropAreaButton = styled.button.withConfig({
64
64
  return props.theme.palette['grey-700'];
65
65
  }, IconContainer, function (props) {
66
66
  return props.theme.palette['grey-700'];
67
- }, function (props) {
68
- return props.theme.palette['grey-700'];
69
67
  }, function (props) {
70
68
  return props.theme.palette['grey-050'];
71
69
  }, LargeDropAreaLabel, function (props) {
@@ -81,7 +79,7 @@ export var DropAreaButton = styled.button.withConfig({
81
79
  }, function (props) {
82
80
  return props.theme.palette['blue-050'];
83
81
  }, IconContainer, function (props) {
84
- return props.isDropping && !props.disabled && "\n height: " + (props.mode === 'multi-large' && props.filesLength === 0 ? '160px' : 'auto') + ";\n background-color: " + props.theme.palette['blue-050'] + " !important;\n border-color: " + props.theme.palette['blue-300'] + " !important;\n\n span, " + DropAreaLabel + ", " + LargeDropAreaLabel + ", " + LargeDropAreaDescription + " {\n color: " + props.theme.palette['blue-500'] + " !important;\n }\n\n " + IconContainer + " {\n fill: " + props.theme.palette['blue-500'] + " !important;\n }\n ";
82
+ return props.isDropping && !props.disabled && "\n height: " + (props.mode === 'multi-large' && props.filesLength === 0 ? '160px' : 'auto') + ";\n background-color: " + props.theme.palette['blue-050'] + " !important;\n border-color: " + props.theme.palette['blue-300'] + " !important;\n\n span, " + DropAreaLabel + ", " + LargeDropAreaLabel + ", " + LargeDropAreaDescription + " {\n color: " + props.theme.palette['blue-500'] + " !important;\n }\n\n " + IconContainer + " {\n color: " + props.theme.palette['blue-500'] + " !important;\n }\n ";
85
83
  });
86
84
  export var ErrorMessage = styled(Text).withConfig({
87
85
  displayName: "FileUploaderstyles__ErrorMessage",
@@ -92,7 +90,7 @@ export var ErrorMessage = styled(Text).withConfig({
92
90
  export var Label = styled(TypographyLabel).withConfig({
93
91
  displayName: "FileUploaderstyles__Label",
94
92
  componentId: "sc-62r2x6-8"
95
- })(["&&{cursor:initial;margin:0 0 8px;display:flex;align-items:center;", "{fill:", ";}}"], IconContainer, function (props) {
93
+ })(["&&{cursor:initial;margin:0 0 8px;display:flex;align-items:center;", "{color:", ";}}"], IconContainer, function (props) {
96
94
  return props.theme.palette['grey-400'];
97
95
  });
98
96
  export var UploadButton = styled(Button).withConfig({
@@ -5,13 +5,13 @@ import Popconfirm from '@synerise/ds-popconfirm';
5
5
  export var PreviewImage = styled.div.withConfig({
6
6
  displayName: "FileViewstyles__PreviewImage",
7
7
  componentId: "sc-wpdc66-0"
8
- })(["", "{fill:", ";}margin:-4px -8px -4px -4px;"], IconContainer, function (props) {
8
+ })(["", "{color:", ";}margin:-4px -8px -4px -4px;"], IconContainer, function (props) {
9
9
  return props.theme.palette['grey-700'];
10
10
  });
11
11
  export var PlaceholderImage = styled.div.withConfig({
12
12
  displayName: "FileViewstyles__PlaceholderImage",
13
13
  componentId: "sc-wpdc66-1"
14
- })(["background-color:", ";width:32px;height:32px;border-radius:3px;padding:4px;", "{fill:", ";}"], function (props) {
14
+ })(["background-color:", ";width:32px;height:32px;border-radius:3px;padding:4px;", "{color:", ";}"], function (props) {
15
15
  return props.theme.palette['grey-200'];
16
16
  }, IconContainer, function (props) {
17
17
  return props.theme.palette['grey-500'];
@@ -47,7 +47,7 @@ export var SizeOrError = styled(Typography.Text).withConfig({
47
47
  export var RemoveWrapper = styled.div.withConfig({
48
48
  displayName: "FileViewstyles__RemoveWrapper",
49
49
  componentId: "sc-wpdc66-7"
50
- })(["display:flex;background-color:transparent;z-index:10;border:0;padding:0;margin:0;height:16px;width:16px;position:absolute;top:14px;right:10px;cursor:pointer;", "{position:absolute;right:-2px;top:-2px;transition:fill 0.3s;fill:", ";&:hover{fill:", ";}}"], IconContainer, function (props) {
50
+ })(["display:flex;background-color:transparent;z-index:10;border:0;padding:0;margin:0;height:16px;width:16px;position:absolute;top:14px;right:10px;cursor:pointer;", "{position:absolute;right:-2px;top:-2px;transition:color 0.3s;color:", ";&:hover{color:", ";}}"], IconContainer, function (props) {
51
51
  return props.theme.palette['grey-300'];
52
52
  }, function (props) {
53
53
  return props.theme.palette['red-500'];
@@ -55,7 +55,7 @@ export var RemoveWrapper = styled.div.withConfig({
55
55
  export var CheckButtonWrapper = styled.div.withConfig({
56
56
  displayName: "FileViewstyles__CheckButtonWrapper",
57
57
  componentId: "sc-wpdc66-8"
58
- })(["display:flex;background-color:transparent;z-index:10;margin:0;height:16px;width:16px;position:absolute;top:14px;right:10px;cursor:pointer;", "{position:absolute;right:-2px;top:-2px;transition:fill 0.3s;fill:", ";&:hover{fill:", ";}}"], IconContainer, function (props) {
58
+ })(["display:flex;background-color:transparent;z-index:10;margin:0;height:16px;width:16px;position:absolute;top:14px;right:10px;cursor:pointer;", "{position:absolute;right:-2px;top:-2px;transition:color 0.3s;color:", ";&:hover{color:", ";}}"], IconContainer, function (props) {
59
59
  return props.theme.palette['green-600'];
60
60
  }, function (props) {
61
61
  return props.theme.palette['green-500'];
@@ -63,7 +63,7 @@ export var CheckButtonWrapper = styled.div.withConfig({
63
63
  export var RemoveButtonWrapper = styled.div.withConfig({
64
64
  displayName: "FileViewstyles__RemoveButtonWrapper",
65
65
  componentId: "sc-wpdc66-9"
66
- })(["display:", ";background-color:transparent;z-index:10;border:0;padding:0;margin:0;height:16px;width:16px;position:absolute;top:14px;right:10px;cursor:pointer;overflow:", ";", "{position:absolute;right:-2px;top:-2px;transition:fill 0.3s;fill:", ";&:hover{fill:", ";}}"], function (props) {
66
+ })(["display:", ";background-color:transparent;z-index:10;border:0;padding:0;margin:0;height:16px;width:16px;position:absolute;top:14px;right:10px;cursor:pointer;overflow:", ";", "{position:absolute;right:-2px;top:-2px;transition:color 0.3s;color:", ";&:hover{color:", ";}}"], function (props) {
67
67
  return props.pressed ? 'flex' : 'none';
68
68
  }, function (props) {
69
69
  return props.pressed ? 'visible' : 'hidden';
@@ -1 +1 @@
1
- {"version":3,"file":"ItemUploader.styles.d.ts","sourceRoot":"","sources":["../../src/ItemUploader/ItemUploader.styles.ts"],"names":[],"mappings":";AAIA,eAAO,MAAM,SAAS,oEAErB,CAAC;AACF,eAAO,MAAM,iBAAiB,oEAE7B,CAAC;AAEF,eAAO,MAAM,iBAAiB;mBAA+B,OAAO;SAGnE,CAAC;AAEF,eAAO,MAAM,aAAa,uMAGzB,CAAC;AAEF,eAAO,MAAM,kBAAkB,sEAO9B,CAAC;AAEF,eAAO,MAAM,wBAAwB,uMAMpC,CAAC;AAEF,eAAO,MAAM,cAAc;;;UAGnB,MAAM;aACH,OAAO;iBACH,MAAM;SAuGpB,CAAC;AAEF,eAAO,MAAM,YAAY,uMAMxB,CAAC;AACF,eAAO,MAAM,WAAW;;SAMvB,CAAC;AAEF,eAAO,MAAM,KAAK,sEAWjB,CAAC"}
1
+ {"version":3,"file":"ItemUploader.styles.d.ts","sourceRoot":"","sources":["../../src/ItemUploader/ItemUploader.styles.ts"],"names":[],"mappings":";AAIA,eAAO,MAAM,SAAS,oEAErB,CAAC;AACF,eAAO,MAAM,iBAAiB,oEAE7B,CAAC;AAEF,eAAO,MAAM,iBAAiB;mBAA+B,OAAO;SAGnE,CAAC;AAEF,eAAO,MAAM,aAAa,uMAGzB,CAAC;AAEF,eAAO,MAAM,kBAAkB,sEAO9B,CAAC;AAEF,eAAO,MAAM,wBAAwB,uMAMpC,CAAC;AAEF,eAAO,MAAM,cAAc;;;UAGnB,MAAM;aACH,OAAO;iBACH,MAAM;SAsGpB,CAAC;AAEF,eAAO,MAAM,YAAY,uMAMxB,CAAC;AACF,eAAO,MAAM,WAAW;;SAMvB,CAAC;AAEF,eAAO,MAAM,KAAK,sEAWjB,CAAC"}
@@ -36,7 +36,7 @@ export var LargeDropAreaDescription = styled(Typography.Text).withConfig({
36
36
  export var DropAreaButton = styled.button.withConfig({
37
37
  displayName: "ItemUploaderstyles__DropAreaButton",
38
38
  componentId: "sc-a5v1d2-6"
39
- })(["align-items:center;border:1px dashed ", ";padding:11px 12px;border-radius:3px;cursor:pointer;background-color:transparent;width:80px;height:80px;transition:height 0.3s;", ";", "{fill:", ";}span{display:inline-block;margin:0 0 0 12px;}", " ", " &:hover:not(:disabled){background-color:", ";border-color:", ";", ",", "{color:", ";}", "{fill:", ";color:", ";}}&:disabled{background-color:", ";", "{color:", ";}}&&:active{color:", ";border-color:", ";background-color:", ";}&:focus:not(:active):not(:disabled){border-color:", ";background-color:", ";}&:disabled{span,", "{opacity:0.4;}}", ""], function (props) {
39
+ })(["align-items:center;border:1px dashed ", ";padding:11px 12px;border-radius:3px;cursor:pointer;background-color:transparent;width:80px;height:80px;transition:height 0.3s;", ";", "{color:", ";}span{display:inline-block;margin:0 0 0 12px;}", " ", " &:hover:not(:disabled){background-color:", ";border-color:", ";", ",", "{color:", ";}", "{color:", ";}}&:disabled{background-color:", ";", "{color:", ";}}&&:active{color:", ";border-color:", ";background-color:", ";}&:focus:not(:active):not(:disabled){border-color:", ";background-color:", ";}&:disabled{span,", "{opacity:0.4;}}", ""], function (props) {
40
40
  return props.theme.palette['grey-300'];
41
41
  }, function (props) {
42
42
  return props.mode === 'multi-large' && props.filesLength === 0 && "\n height: 108px;\n flex-direction: column;\n text-align: center;\n justify-content: center;\n ";
@@ -54,8 +54,6 @@ export var DropAreaButton = styled.button.withConfig({
54
54
  return props.theme.palette['grey-700'];
55
55
  }, IconContainer, function (props) {
56
56
  return props.theme.palette['grey-700'];
57
- }, function (props) {
58
- return props.theme.palette['grey-700'];
59
57
  }, function (props) {
60
58
  return props.theme.palette['grey-050'];
61
59
  }, LargeDropAreaLabel, function (props) {
@@ -71,7 +69,7 @@ export var DropAreaButton = styled.button.withConfig({
71
69
  }, function (props) {
72
70
  return props.theme.palette['blue-050'];
73
71
  }, IconContainer, function (props) {
74
- return props.isDropping && !props.disabled && "\n height: " + (props.mode === 'multi-large' ? '168px' : 'auto') + ";\n background-color: " + props.theme.palette['blue-050'] + " !important;\n border-color: " + props.theme.palette['blue-300'] + " !important;\n\n span, " + DropAreaLabel + ", " + LargeDropAreaLabel + ", " + LargeDropAreaDescription + " {\n color: " + props.theme.palette['blue-500'] + " !important;\n }\n\n " + IconContainer + " {\n fill: " + props.theme.palette['blue-500'] + " !important;\n }\n ";
72
+ return props.isDropping && !props.disabled && "\n height: " + (props.mode === 'multi-large' ? '168px' : 'auto') + ";\n background-color: " + props.theme.palette['blue-050'] + " !important;\n border-color: " + props.theme.palette['blue-300'] + " !important;\n\n span, " + DropAreaLabel + ", " + LargeDropAreaLabel + ", " + LargeDropAreaDescription + " {\n color: " + props.theme.palette['blue-500'] + " !important;\n }\n\n " + IconContainer + " {\n color: " + props.theme.palette['blue-500'] + " !important;\n }\n ";
75
73
  });
76
74
  export var ErrorMessage = styled(Typography.Text).withConfig({
77
75
  displayName: "ItemUploaderstyles__ErrorMessage",
@@ -90,6 +88,6 @@ export var Description = styled(Typography.Text).withConfig({
90
88
  export var Label = styled(TypographyLabel).withConfig({
91
89
  displayName: "ItemUploaderstyles__Label",
92
90
  componentId: "sc-a5v1d2-9"
93
- })(["&&{cursor:initial;margin:0 0 8px;display:flex;align-items:center;", "{fill:", ";}}"], IconContainer, function (props) {
91
+ })(["&&{cursor:initial;margin:0 0 8px;display:flex;align-items:center;", "{color:", ";}}"], IconContainer, function (props) {
94
92
  return props.theme.palette['grey-400'];
95
93
  });
@@ -5,13 +5,13 @@ import { Loader } from '@synerise/ds-loader/dist/Loader.styles';
5
5
  export var PreviewImage = styled.div.withConfig({
6
6
  displayName: "FileViewItemstyles__PreviewImage",
7
7
  componentId: "sc-1rkoxpv-0"
8
- })(["", "{display:flex;fill:", ";}"], IconContainer, function (props) {
8
+ })(["", "{display:flex;color:", ";}"], IconContainer, function (props) {
9
9
  return props.theme.palette['grey-700'];
10
10
  });
11
11
  export var RepeatIcon = styled.div.withConfig({
12
12
  displayName: "FileViewItemstyles__RepeatIcon",
13
13
  componentId: "sc-1rkoxpv-1"
14
- })(["", "{fill:", ";}&:hover{cursor:pointer;}"], IconContainer, function (props) {
14
+ })(["", "{color:", ";}&:hover{cursor:pointer;}"], IconContainer, function (props) {
15
15
  return props.theme.palette['blue-600'];
16
16
  });
17
17
  export var LoaderIcon = styled.div.withConfig({
@@ -28,7 +28,7 @@ export var SmallLoader = styled(Loader).withConfig({
28
28
  export var PlaceholderImage = styled.div.withConfig({
29
29
  displayName: "FileViewItemstyles__PlaceholderImage",
30
30
  componentId: "sc-1rkoxpv-4"
31
- })(["background-color:", ";width:32px;height:32px;border-radius:3px;padding:4px;", "{fill:", ";}"], function (props) {
31
+ })(["background-color:", ";width:32px;height:32px;border-radius:3px;padding:4px;", "{color:", ";}"], function (props) {
32
32
  return props.theme.palette['grey-200'];
33
33
  }, IconContainer, function (props) {
34
34
  return props.theme.palette['grey-500'];
@@ -50,7 +50,7 @@ export var Name = styled(Label).withConfig({
50
50
  export var RemoveButtonWrapper = styled.div.withConfig({
51
51
  displayName: "FileViewItemstyles__RemoveButtonWrapper",
52
52
  componentId: "sc-1rkoxpv-8"
53
- })(["display:", ";background-color:transparent;z-index:10;border:0;padding:0;margin:0 4px 0 0;height:16px;width:16px;position:absolute;top:8px;right:5px;cursor:pointer;overflow:", ";", "{position:absolute;right:-2px;top:-2px;transition:fill 0.3s;fill:", ";&:hover{fill:", ";}}"], function (props) {
53
+ })(["display:", ";background-color:transparent;z-index:10;border:0;padding:0;margin:0 4px 0 0;height:16px;width:16px;position:absolute;top:8px;right:5px;cursor:pointer;overflow:", ";", "{position:absolute;right:-2px;top:-2px;transition:fill 0.3s;color:", ";&:hover{color:", ";}}"], function (props) {
54
54
  return props.pressed ? 'flex' : 'none';
55
55
  }, function (props) {
56
56
  return props.pressed ? 'visible' : 'hidden';
@@ -62,7 +62,7 @@ export var RemoveButtonWrapper = styled.div.withConfig({
62
62
  export var FileView = styled.button.withConfig({
63
63
  displayName: "FileViewItemstyles__FileView",
64
64
  componentId: "sc-1rkoxpv-9"
65
- })(["background-color:", ";border-radius:3px;border:2px solid transparent;display:flex;align-items:center;padding:7px 12px 7px 6px;height:32px;text-align:left;line-height:initial;position:relative;margin:0 0 12px;&:last-of-type{margin:0;}&:hover{border-color:", ";padding-right:", ";", "{color:", ";}", "{", "{fill:", ";}}", "}&:focus{border-color:", ";background-color:", ";}&:hover{background-color:", ";}&:active{border-color:", ";background-color:", ";", "{color:", ";}", "{", "{fill:", ";}}}", ";", ";", ";"], function (props) {
65
+ })(["background-color:", ";border-radius:3px;border:2px solid transparent;display:flex;align-items:center;padding:7px 12px 7px 6px;height:32px;text-align:left;line-height:initial;position:relative;margin:0 0 12px;&:last-of-type{margin:0;}&:hover{border-color:", ";padding-right:", ";", "{color:", ";}", "{", "{color:", ";}}", "}&:focus{border-color:", ";background-color:", ";}&:hover{background-color:", ";}&:active{border-color:", ";background-color:", ";", "{color:", ";}", "{", "{color:", ";}}}", ";", ";", ";"], function (props) {
66
66
  return props.theme.palette['grey-100'];
67
67
  }, function (props) {
68
68
  return props.theme.palette['grey-200'];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-file-uploader",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "FileUploader UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -34,13 +34,13 @@
34
34
  ],
35
35
  "types": "dist/index.d.ts",
36
36
  "dependencies": {
37
- "@synerise/ds-button": "^1.2.0",
38
- "@synerise/ds-icon": "^1.4.2",
37
+ "@synerise/ds-button": "^1.3.0",
38
+ "@synerise/ds-icon": "^1.5.0",
39
39
  "@synerise/ds-loader": "^1.0.2",
40
- "@synerise/ds-popconfirm": "^1.0.7",
41
- "@synerise/ds-progress-bar": "^1.1.2",
42
- "@synerise/ds-tooltip": "^1.1.6",
43
- "@synerise/ds-typography": "^1.0.7",
40
+ "@synerise/ds-popconfirm": "^1.0.8",
41
+ "@synerise/ds-progress-bar": "^1.1.3",
42
+ "@synerise/ds-tooltip": "^1.1.7",
43
+ "@synerise/ds-typography": "^1.0.8",
44
44
  "@synerise/ds-utils": "^1.1.0",
45
45
  "filesize.js": "^2.0.0",
46
46
  "react-dropzone": "^10.2.1"
@@ -51,5 +51,5 @@
51
51
  "react-intl": ">=3.12.0 <= 6.8",
52
52
  "styled-components": "^5.3.3"
53
53
  },
54
- "gitHead": "90af7549cf0f556340bdd0deec4bb59bacf3e95e"
54
+ "gitHead": "8aa16b27c86c97e3ac774d92561ab0a03176c439"
55
55
  }