@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.
Files changed (31) hide show
  1. package/dist/cjs/index.js +6 -4
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/lib/components/input/currency/index.d.ts +7 -6
  4. package/dist/cjs/lib/components/input/currency/input.stories.d.ts +83 -0
  5. package/dist/cjs/lib/index.d.ts +1 -1
  6. package/dist/esm/components/input/currency/index.js +5 -2
  7. package/dist/esm/components/input/currency/index.js.map +1 -1
  8. package/dist/esm/components/input/currency/index.test.js +1 -1
  9. package/dist/esm/components/input/currency/index.test.js.map +1 -1
  10. package/dist/esm/components/input/currency/input.stories.js +32 -0
  11. package/dist/esm/components/input/currency/input.stories.js.map +1 -0
  12. package/dist/esm/components/input/input.stories.js +1 -55
  13. package/dist/esm/components/input/input.stories.js.map +1 -1
  14. package/dist/esm/components/multiDropzone/index.js +2 -3
  15. package/dist/esm/components/multiDropzone/index.js.map +1 -1
  16. package/dist/esm/components/multiDropzone/index.test.js +0 -5
  17. package/dist/esm/components/multiDropzone/index.test.js.map +1 -1
  18. package/dist/esm/config-56f12c98.js +57 -0
  19. package/dist/esm/config-56f12c98.js.map +1 -0
  20. package/dist/esm/index.js +1 -1
  21. package/dist/esm/lib/components/input/currency/index.d.ts +7 -6
  22. package/dist/esm/lib/components/input/currency/input.stories.d.ts +83 -0
  23. package/dist/esm/lib/index.d.ts +1 -1
  24. package/package.json +1 -1
  25. package/src/lib/components/input/currency/index.test.tsx +1 -1
  26. package/src/lib/components/input/currency/index.tsx +11 -7
  27. package/src/lib/components/input/currency/input.stories.tsx +48 -0
  28. package/src/lib/components/multiDropzone/index.test.tsx +0 -7
  29. package/src/lib/components/multiDropzone/index.tsx +3 -7
  30. package/src/lib/index.tsx +1 -1
  31. 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", id: uniqueId.current }, getInputProps()), void 0),
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("label", __assign({ htmlFor: uniqueId.current, className: "p-h4 mt8 d-block c-pointer " + (isCondensed ? styles$t.textInline : '') }, { children: uploading
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