@helpdice/ui 2.5.1 → 2.5.2
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/index.d.ts +0 -1
- package/dist/input/index.d.ts +2 -2
- package/dist/input/{currency-input/components/CurrencyInput.d.ts → input-currency.d.ts} +1 -1
- package/{esm/input/phone-input/phone.d.ts → dist/input/input-phone.d.ts} +1 -1
- package/dist/input/{currency-input/components/utils → utils}/cleanValue.d.ts +1 -1
- package/dist/input/{currency-input/components/utils → utils}/formatValue.d.ts +1 -1
- package/dist/input/{currency-input/components/utils → utils}/getLocaleConfig.d.ts +1 -1
- package/esm/index.d.ts +0 -1
- package/esm/index.js +1 -1
- package/esm/input/index.d.ts +2 -2
- package/esm/input/index.js +2 -2
- package/esm/input/{currency-input/components/CurrencyInput.d.ts → input-currency.d.ts} +1 -1
- package/esm/input/{currency-input/components/CurrencyInput.js → input-currency.js} +2 -2
- package/{dist/input/phone-input/phone.d.ts → esm/input/input-phone.d.ts} +1 -1
- package/esm/input/{phone-input/phone.js → input-phone.js} +3 -3
- package/esm/input/{currency-input/components/utils → utils}/cleanValue.d.ts +1 -1
- package/esm/input/{currency-input/components/utils → utils}/formatValue.d.ts +1 -1
- package/esm/input/{currency-input/components/utils → utils}/getLocaleConfig.d.ts +1 -1
- package/package.json +1 -1
- package/dist/input/currency-input/index.d.ts +0 -5
- package/dist/input/phone-input/index.d.ts +0 -2
- package/esm/input/currency-input/index.d.ts +0 -5
- package/esm/input/currency-input/index.js +0 -4
- package/esm/input/phone-input/index.d.ts +0 -2
- package/esm/input/phone-input/index.js +0 -2
- /package/dist/input/{currency-input/components/CurrencyInputProps.d.ts → input-currency-props.d.ts} +0 -0
- /package/dist/input/{currency-input/components/utils → utils}/escapeRegExp.d.ts +0 -0
- /package/dist/input/{currency-input/components/utils → utils}/fixedDecimalValue.d.ts +0 -0
- /package/dist/input/{currency-input/components/utils → utils}/getSuffix.d.ts +0 -0
- /package/dist/input/{currency-input/components/utils → utils}/index.d.ts +0 -0
- /package/dist/input/{currency-input/components/utils → utils}/isNumber.d.ts +0 -0
- /package/dist/input/{currency-input/components/utils → utils}/padTrimValue.d.ts +0 -0
- /package/dist/input/{currency-input/components/utils → utils}/parseAbbrValue.d.ts +0 -0
- /package/dist/input/{currency-input/components/utils → utils}/removeInvalidChars.d.ts +0 -0
- /package/dist/input/{currency-input/components/utils → utils}/removeSeparators.d.ts +0 -0
- /package/dist/input/{currency-input/components/utils → utils}/repositionCursor.d.ts +0 -0
- /package/esm/input/{currency-input/components/CurrencyInputProps.d.ts → input-currency-props.d.ts} +0 -0
- /package/esm/input/{currency-input/components/CurrencyInputProps.js → input-currency-props.js} +0 -0
- /package/esm/input/{currency-input/components/utils → utils}/addSeparators.js +0 -0
- /package/esm/input/{currency-input/components/utils → utils}/cleanValue.js +0 -0
- /package/esm/input/{currency-input/components/utils → utils}/escapeRegExp.d.ts +0 -0
- /package/esm/input/{currency-input/components/utils → utils}/escapeRegExp.js +0 -0
- /package/esm/input/{currency-input/components/utils → utils}/fixedDecimalValue.d.ts +0 -0
- /package/esm/input/{currency-input/components/utils → utils}/fixedDecimalValue.js +0 -0
- /package/esm/input/{currency-input/components/utils → utils}/formatValue.js +0 -0
- /package/esm/input/{currency-input/components/utils → utils}/getLocaleConfig.js +0 -0
- /package/esm/input/{currency-input/components/utils → utils}/getSuffix.d.ts +0 -0
- /package/esm/input/{currency-input/components/utils → utils}/getSuffix.js +0 -0
- /package/esm/input/{currency-input/components/utils → utils}/index.d.ts +0 -0
- /package/esm/input/{currency-input/components/utils → utils}/index.js +0 -0
- /package/esm/input/{currency-input/components/utils → utils}/isNumber.d.ts +0 -0
- /package/esm/input/{currency-input/components/utils → utils}/isNumber.js +0 -0
- /package/esm/input/{currency-input/components/utils → utils}/padTrimValue.d.ts +0 -0
- /package/esm/input/{currency-input/components/utils → utils}/padTrimValue.js +0 -0
- /package/esm/input/{currency-input/components/utils → utils}/parseAbbrValue.d.ts +0 -0
- /package/esm/input/{currency-input/components/utils → utils}/parseAbbrValue.js +0 -0
- /package/esm/input/{currency-input/components/utils → utils}/removeInvalidChars.d.ts +0 -0
- /package/esm/input/{currency-input/components/utils → utils}/removeInvalidChars.js +0 -0
- /package/esm/input/{currency-input/components/utils → utils}/removeSeparators.d.ts +0 -0
- /package/esm/input/{currency-input/components/utils → utils}/removeSeparators.js +0 -0
- /package/esm/input/{currency-input/components/utils → utils}/repositionCursor.d.ts +0 -0
- /package/esm/input/{currency-input/components/utils → utils}/repositionCursor.js +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -125,7 +125,6 @@ export { default as Swipe } from './swipe';
|
|
|
125
125
|
export type { SwipeProps } from './swipe';
|
|
126
126
|
export { default as Carousel } from './carousal';
|
|
127
127
|
export type { CarouselProps } from './carousal';
|
|
128
|
-
export type { CurrencyInputProps, CurrencyInputOnChangeValues } from './input/currency-input';
|
|
129
128
|
export { default as useToasts } from './use-toasts';
|
|
130
129
|
export type { Toast, ToastInput, ToastAction, ToastLayout } from './use-toasts';
|
|
131
130
|
export { default as Clipboard } from './copy-to-clipboard';
|
package/dist/input/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import Input from './input-field';
|
|
2
2
|
import Textarea from '../textarea';
|
|
3
3
|
import InputPassword from './password';
|
|
4
|
-
import PhoneInput from './phone
|
|
5
|
-
import CurrencyInput from './currency
|
|
4
|
+
import PhoneInput from './input-phone';
|
|
5
|
+
import CurrencyInput from './input-currency';
|
|
6
6
|
export type InputComponentType = typeof Input & {
|
|
7
7
|
Textarea: typeof Textarea;
|
|
8
8
|
Password: typeof InputPassword;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { FC } from 'react';
|
|
2
|
-
import { CurrencyInputProps } from './
|
|
2
|
+
import { CurrencyInputProps } from './input-currency-props';
|
|
3
3
|
export declare const InputCurrency: FC<Omit<CurrencyInputProps, 'ref'>>;
|
|
4
4
|
declare const _default: React.ForwardRefExoticComponent<Omit<CurrencyInputProps, "ref"> & {
|
|
5
5
|
width?: string | number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CurrencyInputProps } from '../
|
|
1
|
+
import { CurrencyInputProps } from '../input-currency-props';
|
|
2
2
|
export type CleanValueOptions = Pick<CurrencyInputProps, 'decimalSeparator' | 'groupSeparator' | 'allowDecimals' | 'decimalsLimit' | 'allowNegativeValue' | 'disableAbbreviations' | 'prefix' | 'transformRawValue'> & {
|
|
3
3
|
value: string;
|
|
4
4
|
};
|
package/esm/index.d.ts
CHANGED
|
@@ -125,7 +125,6 @@ export { default as Swipe } from './swipe';
|
|
|
125
125
|
export type { SwipeProps } from './swipe';
|
|
126
126
|
export { default as Carousel } from './carousal';
|
|
127
127
|
export type { CarouselProps } from './carousal';
|
|
128
|
-
export type { CurrencyInputProps, CurrencyInputOnChangeValues } from './input/currency-input';
|
|
129
128
|
export { default as useToasts } from './use-toasts';
|
|
130
129
|
export type { Toast, ToastInput, ToastAction, ToastLayout } from './use-toasts';
|
|
131
130
|
export { default as Clipboard } from './copy-to-clipboard';
|
package/esm/index.js
CHANGED
|
@@ -84,8 +84,8 @@ export * from './login-with';
|
|
|
84
84
|
export { default as Swipe } from './swipe';
|
|
85
85
|
// Carousel
|
|
86
86
|
export { default as Carousel } from './carousal';
|
|
87
|
-
|
|
88
87
|
// Currency Input
|
|
88
|
+
// export type { CurrencyInputProps, CurrencyInputOnChangeValues } from './input/input-currency';
|
|
89
89
|
|
|
90
90
|
export { default as useToasts } from './use-toasts';
|
|
91
91
|
export { default as Clipboard } from './copy-to-clipboard';
|
package/esm/input/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import Input from './input-field';
|
|
2
2
|
import Textarea from '../textarea';
|
|
3
3
|
import InputPassword from './password';
|
|
4
|
-
import PhoneInput from './phone
|
|
5
|
-
import CurrencyInput from './currency
|
|
4
|
+
import PhoneInput from './input-phone';
|
|
5
|
+
import CurrencyInput from './input-currency';
|
|
6
6
|
export type InputComponentType = typeof Input & {
|
|
7
7
|
Textarea: typeof Textarea;
|
|
8
8
|
Password: typeof InputPassword;
|
package/esm/input/index.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import Input from './input-field';
|
|
3
3
|
import Textarea from '../textarea';
|
|
4
4
|
import InputPassword from './password';
|
|
5
|
-
import PhoneInput from './phone
|
|
6
|
-
import CurrencyInput from './currency
|
|
5
|
+
import PhoneInput from './input-phone';
|
|
6
|
+
import CurrencyInput from './input-currency';
|
|
7
7
|
Input.Textarea = Textarea;
|
|
8
8
|
Input.Password = InputPassword;
|
|
9
9
|
Input.Phone = PhoneInput;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { FC } from 'react';
|
|
2
|
-
import { CurrencyInputProps } from './
|
|
2
|
+
import { CurrencyInputProps } from './input-currency-props';
|
|
3
3
|
export declare const InputCurrency: FC<Omit<CurrencyInputProps, 'ref'>>;
|
|
4
4
|
declare const _default: React.ForwardRefExoticComponent<Omit<CurrencyInputProps, "ref"> & {
|
|
5
5
|
width?: string | number;
|
|
@@ -6,8 +6,8 @@ import _JSXStyle from "../styled-jsx.es.js";
|
|
|
6
6
|
import React, { useState, useEffect, useRef, forwardRef, useMemo, useImperativeHandle } from 'react';
|
|
7
7
|
import { isNumber, cleanValue, fixedDecimalValue, formatValue, getLocaleConfig, padTrimValue, getSuffix, repositionCursor } from './utils';
|
|
8
8
|
import { useTheme } from '@helpdice/theme';
|
|
9
|
-
import InputBlockLabel from '
|
|
10
|
-
import useScale, { withScale } from '
|
|
9
|
+
import InputBlockLabel from './input-block-label';
|
|
10
|
+
import useScale, { withScale } from '../use-scale';
|
|
11
11
|
export var InputCurrency = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
12
12
|
var _ref$allowDecimals = _ref.allowDecimals,
|
|
13
13
|
allowDecimals = _ref$allowDecimals === void 0 ? true : _ref$allowDecimals,
|
|
@@ -3,9 +3,9 @@ import _JSXStyle from "../styled-jsx.es.js";
|
|
|
3
3
|
import React, { useState, useRef, useEffect, useMemo } from 'react';
|
|
4
4
|
import countries from './countries.json';
|
|
5
5
|
import { useTheme } from '@helpdice/theme';
|
|
6
|
-
import { getColors } from '
|
|
7
|
-
import useScale, { withScale } from '
|
|
8
|
-
import InputBlockLabel from '
|
|
6
|
+
import { getColors } from './styles';
|
|
7
|
+
import useScale, { withScale } from '../use-scale';
|
|
8
|
+
import InputBlockLabel from './input-block-label';
|
|
9
9
|
function PhoneInput(_ref) {
|
|
10
10
|
var onChange = _ref.onChange,
|
|
11
11
|
_ref$value = _ref.value,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CurrencyInputProps } from '../
|
|
1
|
+
import { CurrencyInputProps } from '../input-currency-props';
|
|
2
2
|
export type CleanValueOptions = Pick<CurrencyInputProps, 'decimalSeparator' | 'groupSeparator' | 'allowDecimals' | 'decimalsLimit' | 'allowNegativeValue' | 'disableAbbreviations' | 'prefix' | 'transformRawValue'> & {
|
|
3
3
|
value: string;
|
|
4
4
|
};
|
package/package.json
CHANGED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import CurrencyInput from './components/CurrencyInput';
|
|
2
|
-
export type { CurrencyInputProps, CurrencyInputOnChangeValues } from './components/CurrencyInputProps';
|
|
3
|
-
export { formatValue } from './components/utils/formatValue';
|
|
4
|
-
export { cleanValue } from './components/utils/cleanValue';
|
|
5
|
-
export default CurrencyInput;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import CurrencyInput from './components/CurrencyInput';
|
|
2
|
-
export type { CurrencyInputProps, CurrencyInputOnChangeValues } from './components/CurrencyInputProps';
|
|
3
|
-
export { formatValue } from './components/utils/formatValue';
|
|
4
|
-
export { cleanValue } from './components/utils/cleanValue';
|
|
5
|
-
export default CurrencyInput;
|
/package/dist/input/{currency-input/components/CurrencyInputProps.d.ts → input-currency-props.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/esm/input/{currency-input/components/CurrencyInputProps.d.ts → input-currency-props.d.ts}
RENAMED
|
File without changes
|
/package/esm/input/{currency-input/components/CurrencyInputProps.js → input-currency-props.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|