@popsure/dirty-swan 0.41.4 → 0.41.6
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/dist/cjs/index.js +6 -4
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/lib/components/input/currency/index.d.ts +7 -6
- package/dist/cjs/lib/components/input/currency/input.stories.d.ts +83 -0
- package/dist/cjs/lib/index.d.ts +1 -1
- package/dist/esm/components/input/currency/index.js +5 -2
- package/dist/esm/components/input/currency/index.js.map +1 -1
- package/dist/esm/components/input/currency/index.test.js +1 -1
- package/dist/esm/components/input/currency/index.test.js.map +1 -1
- package/dist/esm/components/input/currency/input.stories.js +32 -0
- package/dist/esm/components/input/currency/input.stories.js.map +1 -0
- package/dist/esm/components/input/input.stories.js +1 -55
- package/dist/esm/components/input/input.stories.js.map +1 -1
- package/dist/esm/components/multiDropzone/index.js +2 -3
- package/dist/esm/components/multiDropzone/index.js.map +1 -1
- package/dist/esm/components/multiDropzone/index.test.js +0 -5
- package/dist/esm/components/multiDropzone/index.test.js.map +1 -1
- package/dist/esm/config-56f12c98.js +57 -0
- package/dist/esm/config-56f12c98.js.map +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/lib/components/input/currency/index.d.ts +7 -6
- package/dist/esm/lib/components/input/currency/input.stories.d.ts +83 -0
- package/dist/esm/lib/index.d.ts +1 -1
- package/package.json +1 -1
- package/src/lib/components/input/currency/index.test.tsx +1 -1
- package/src/lib/components/input/currency/index.tsx +11 -7
- package/src/lib/components/input/currency/input.stories.tsx +48 -0
- package/src/lib/components/multiDropzone/index.test.tsx +0 -7
- package/src/lib/components/multiDropzone/index.tsx +3 -7
- package/src/lib/index.tsx +1 -1
- package/src/lib/components/input/currency/index.stories.mdx +0 -33
package/dist/cjs/index.js
CHANGED
|
@@ -8198,12 +8198,11 @@ var MultiDropzone = function (_a) {
|
|
|
8198
8198
|
maxSize: maxSize,
|
|
8199
8199
|
onDrop: onDrop,
|
|
8200
8200
|
}), getRootProps = _f.getRootProps, getInputProps = _f.getInputProps;
|
|
8201
|
-
var uniqueId = require$$0.useRef(generateId());
|
|
8202
8201
|
return (jsxRuntime.jsxs("div", __assign({ className: styles$t.container }, { children: [jsxRuntime.jsxs("div", __assign({ className: classNames("w100 ta-center br8 c-pointer " + styles$t.dropzoneContainer, (_b = {},
|
|
8203
8202
|
_b[styles$t['dropzoneContainerDisabled']] = uploading,
|
|
8204
|
-
_b)) }, getRootProps(), { children: [jsxRuntime.jsx("input", __assign({ "data-testid": "ds-drop-input"
|
|
8203
|
+
_b)) }, getRootProps(), { children: [jsxRuntime.jsx("input", __assign({ "data-testid": "ds-drop-input" }, getInputProps()), void 0),
|
|
8205
8204
|
jsxRuntime.jsx(UploadCloudIcon, { className: isCondensed ? styles$t.img : '', size: isCondensed ? 24 : 64, color: 'purple-500' }, void 0),
|
|
8206
|
-
jsxRuntime.jsx("
|
|
8205
|
+
jsxRuntime.jsx("div", __assign({ className: "p-h4 mt8 d-block c-pointer " + (isCondensed ? styles$t.textInline : '') }, { children: uploading
|
|
8207
8206
|
? (textOverrides === null || textOverrides === void 0 ? void 0 : textOverrides.currentlyUploadingText) ||
|
|
8208
8207
|
'Please wait while uploading file...'
|
|
8209
8208
|
: (textOverrides === null || textOverrides === void 0 ? void 0 : textOverrides.instructionsText) || 'Choose file or drag & drop' }), void 0),
|
|
@@ -8353,7 +8352,10 @@ var CurrencyInput = function (_a) {
|
|
|
8353
8352
|
// eslint-disable-next-line
|
|
8354
8353
|
}, [value]);
|
|
8355
8354
|
require$$0.useEffect(function () {
|
|
8356
|
-
if (shadowValue) {
|
|
8355
|
+
if (shadowValue === '' && value) {
|
|
8356
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(null);
|
|
8357
|
+
}
|
|
8358
|
+
else if (shadowValue) {
|
|
8357
8359
|
onChange === null || onChange === void 0 ? void 0 : onChange(reverseFormatInput(shadowValue));
|
|
8358
8360
|
}
|
|
8359
8361
|
// eslint-disable-next-line
|