@digital-ai/dot-components 2.15.0 → 2.15.1
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/CHANGE_LOG.md +13 -5
- package/index.esm.js +5 -5
- package/index.umd.js +5 -5
- package/package.json +1 -1
package/CHANGE_LOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.15.1](https://www.npmjs.com/package/@digital-ai/dot-components) (09/25/2023)
|
|
4
|
+
|
|
5
|
+
[Full Changelog](https://digital-ai.github.io/dot-components/?path=/story/introduction--page/digital-ai/dot-components/compare/2.15.0...2.15.1)
|
|
6
|
+
|
|
7
|
+
**Fixed bugs:**
|
|
8
|
+
|
|
9
|
+
- D-26722 Fix `DotFileUpload`: file list is always shown [\#1620](https://github.com/digital-ai/dot-components/pull/1620) ([angel-git](https://github.com/angel-git))
|
|
10
|
+
|
|
11
|
+
**Misc:**
|
|
12
|
+
|
|
13
|
+
- master \> develop [\#1617](https://github.com/digital-ai/dot-components/pull/1617) ([ryangamble](https://github.com/ryangamble))
|
|
14
|
+
|
|
3
15
|
## [2.15.0](https://www.npmjs.com/package/@digital-ai/dot-components) (09/18/2023)
|
|
4
16
|
|
|
5
17
|
[Full Changelog](https://digital-ai.github.io/dot-components/?path=/story/introduction--page/digital-ai/dot-components/compare/2.14.1...2.15.0)
|
|
@@ -458,7 +470,6 @@
|
|
|
458
470
|
|
|
459
471
|
- CI: bumps version to 2.2.1 \[skip ci\] \(\#1371\) [\#1372](https://github.com/digital-ai/dot-components/pull/1372) ([CWSites](https://github.com/CWSites))
|
|
460
472
|
- resolving more warnings [\#1369](https://github.com/digital-ai/dot-components/pull/1369) ([CWSites](https://github.com/CWSites))
|
|
461
|
-
- GitHub Action Troubleshooting [\#1368](https://github.com/digital-ai/dot-components/pull/1368) ([CWSites](https://github.com/CWSites))
|
|
462
473
|
|
|
463
474
|
## [2.2.1](https://www.npmjs.com/package/@digital-ai/dot-components) (02/08/2023)
|
|
464
475
|
|
|
@@ -478,6 +489,7 @@
|
|
|
478
489
|
|
|
479
490
|
**Misc:**
|
|
480
491
|
|
|
492
|
+
- GitHub Action Troubleshooting [\#1368](https://github.com/digital-ai/dot-components/pull/1368) ([CWSites](https://github.com/CWSites))
|
|
481
493
|
- Upload drip echo icon [\#1366](https://github.com/digital-ai/dot-components/pull/1366) ([pauldigitalai](https://github.com/pauldigitalai))
|
|
482
494
|
- S-90007 Add missing test [\#1362](https://github.com/digital-ai/dot-components/pull/1362) ([angel-git](https://github.com/angel-git))
|
|
483
495
|
- icons-pin-update-Jan-27th [\#1354](https://github.com/digital-ai/dot-components/pull/1354) ([pauldigitalai](https://github.com/pauldigitalai))
|
|
@@ -874,10 +886,6 @@
|
|
|
874
886
|
|
|
875
887
|
[Full Changelog](https://digital-ai.github.io/dot-components/?path=/story/introduction--page/digital-ai/dot-components/compare/1.11.3...1.12.0)
|
|
876
888
|
|
|
877
|
-
**Breaking changes:**
|
|
878
|
-
|
|
879
|
-
- S-82342: Upgrade MUI to v5 [\#1079](https://github.com/digital-ai/dot-components/pull/1079) ([CWSites](https://github.com/CWSites))
|
|
880
|
-
|
|
881
889
|
**Features:**
|
|
882
890
|
|
|
883
891
|
- S-82910: `DotTypography`: Add more Storybook examples [\#1092](https://github.com/digital-ai/dot-components/pull/1092) ([dmiletic85](https://github.com/dmiletic85))
|
package/index.esm.js
CHANGED
|
@@ -9319,16 +9319,16 @@ const DotFileListItem = ({
|
|
|
9319
9319
|
}), void 0);
|
|
9320
9320
|
};
|
|
9321
9321
|
|
|
9322
|
-
const renderMaxSizeMessage = maxSizeMB =>
|
|
9322
|
+
const renderMaxSizeMessage = maxSizeMB => jsx(DotTypography, Object.assign({
|
|
9323
9323
|
variant: "body2"
|
|
9324
9324
|
}, {
|
|
9325
|
-
children:
|
|
9325
|
+
children: `File size should not exceed ${maxSizeMB}MB.`
|
|
9326
9326
|
}), void 0);
|
|
9327
|
-
const renderMaxFilesMessage = (maxFiles, maxFilesClasses) =>
|
|
9327
|
+
const renderMaxFilesMessage = (maxFiles, maxFilesClasses) => jsx(DotTypography, Object.assign({
|
|
9328
9328
|
className: maxFilesClasses,
|
|
9329
9329
|
variant: "body2"
|
|
9330
9330
|
}, {
|
|
9331
|
-
children:
|
|
9331
|
+
children: `${maxFiles} files are the maximum number of files you can upload.`
|
|
9332
9332
|
}), void 0);
|
|
9333
9333
|
const renderSelectFilesButton = (isUploadDisabled, onButtonClick) => jsx(DotButton, Object.assign({
|
|
9334
9334
|
disabled: isUploadDisabled,
|
|
@@ -9503,7 +9503,7 @@ const DotFileUpload = ({
|
|
|
9503
9503
|
isUploadDisabled,
|
|
9504
9504
|
open
|
|
9505
9505
|
})]
|
|
9506
|
-
}), void 0), !!maxSize && renderMaxSizeMessage(maxSize), !!maxFiles && renderMaxFilesMessage(maxFiles, maxFilesClasses), !hideFilesList
|
|
9506
|
+
}), void 0), !!maxSize && renderMaxSizeMessage(maxSize), !!maxFiles && renderMaxFilesMessage(maxFiles, maxFilesClasses), !hideFilesList && jsx(DotList, {
|
|
9507
9507
|
"data-testid": dataTestId && `${dataTestId}-file-list`,
|
|
9508
9508
|
items: uploadedFilesList,
|
|
9509
9509
|
width: "100%"
|
package/index.umd.js
CHANGED
|
@@ -10139,18 +10139,18 @@
|
|
|
10139
10139
|
};
|
|
10140
10140
|
|
|
10141
10141
|
var renderMaxSizeMessage = function renderMaxSizeMessage(maxSizeMB) {
|
|
10142
|
-
return jsxRuntime.
|
|
10142
|
+
return jsxRuntime.jsx(DotTypography, __assign({
|
|
10143
10143
|
variant: "body2"
|
|
10144
10144
|
}, {
|
|
10145
|
-
children:
|
|
10145
|
+
children: "File size should not exceed " + maxSizeMB + "MB."
|
|
10146
10146
|
}), void 0);
|
|
10147
10147
|
};
|
|
10148
10148
|
var renderMaxFilesMessage = function renderMaxFilesMessage(maxFiles, maxFilesClasses) {
|
|
10149
|
-
return jsxRuntime.
|
|
10149
|
+
return jsxRuntime.jsx(DotTypography, __assign({
|
|
10150
10150
|
className: maxFilesClasses,
|
|
10151
10151
|
variant: "body2"
|
|
10152
10152
|
}, {
|
|
10153
|
-
children:
|
|
10153
|
+
children: maxFiles + " files are the maximum number of files you can upload."
|
|
10154
10154
|
}), void 0);
|
|
10155
10155
|
};
|
|
10156
10156
|
var renderSelectFilesButton = function renderSelectFilesButton(isUploadDisabled, onButtonClick) {
|
|
@@ -10343,7 +10343,7 @@
|
|
|
10343
10343
|
isUploadDisabled: isUploadDisabled,
|
|
10344
10344
|
open: open
|
|
10345
10345
|
})]
|
|
10346
|
-
}), void 0), !!maxSize && renderMaxSizeMessage(maxSize), !!maxFiles && renderMaxFilesMessage(maxFiles, maxFilesClasses), !hideFilesList
|
|
10346
|
+
}), void 0), !!maxSize && renderMaxSizeMessage(maxSize), !!maxFiles && renderMaxFilesMessage(maxFiles, maxFilesClasses), !hideFilesList && jsxRuntime.jsx(DotList, {
|
|
10347
10347
|
"data-testid": dataTestId && dataTestId + "-file-list",
|
|
10348
10348
|
items: uploadedFilesList,
|
|
10349
10349
|
width: "100%"
|