@popsure/dirty-swan 0.41.5 → 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 +4 -1
- 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/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/index.tsx +1 -1
- package/src/lib/components/input/currency/index.stories.mdx +0 -33
package/dist/cjs/index.js
CHANGED
|
@@ -8352,7 +8352,10 @@ var CurrencyInput = function (_a) {
|
|
|
8352
8352
|
// eslint-disable-next-line
|
|
8353
8353
|
}, [value]);
|
|
8354
8354
|
require$$0.useEffect(function () {
|
|
8355
|
-
if (shadowValue) {
|
|
8355
|
+
if (shadowValue === '' && value) {
|
|
8356
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(null);
|
|
8357
|
+
}
|
|
8358
|
+
else if (shadowValue) {
|
|
8356
8359
|
onChange === null || onChange === void 0 ? void 0 : onChange(reverseFormatInput(shadowValue));
|
|
8357
8360
|
}
|
|
8358
8361
|
// eslint-disable-next-line
|