@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.
Files changed (62) hide show
  1. package/dist/index.d.ts +0 -1
  2. package/dist/input/index.d.ts +2 -2
  3. package/dist/input/{currency-input/components/CurrencyInput.d.ts → input-currency.d.ts} +1 -1
  4. package/{esm/input/phone-input/phone.d.ts → dist/input/input-phone.d.ts} +1 -1
  5. package/dist/input/{currency-input/components/utils → utils}/cleanValue.d.ts +1 -1
  6. package/dist/input/{currency-input/components/utils → utils}/formatValue.d.ts +1 -1
  7. package/dist/input/{currency-input/components/utils → utils}/getLocaleConfig.d.ts +1 -1
  8. package/esm/index.d.ts +0 -1
  9. package/esm/index.js +1 -1
  10. package/esm/input/index.d.ts +2 -2
  11. package/esm/input/index.js +2 -2
  12. package/esm/input/{currency-input/components/CurrencyInput.d.ts → input-currency.d.ts} +1 -1
  13. package/esm/input/{currency-input/components/CurrencyInput.js → input-currency.js} +2 -2
  14. package/{dist/input/phone-input/phone.d.ts → esm/input/input-phone.d.ts} +1 -1
  15. package/esm/input/{phone-input/phone.js → input-phone.js} +3 -3
  16. package/esm/input/{currency-input/components/utils → utils}/cleanValue.d.ts +1 -1
  17. package/esm/input/{currency-input/components/utils → utils}/formatValue.d.ts +1 -1
  18. package/esm/input/{currency-input/components/utils → utils}/getLocaleConfig.d.ts +1 -1
  19. package/package.json +1 -1
  20. package/dist/input/currency-input/index.d.ts +0 -5
  21. package/dist/input/phone-input/index.d.ts +0 -2
  22. package/esm/input/currency-input/index.d.ts +0 -5
  23. package/esm/input/currency-input/index.js +0 -4
  24. package/esm/input/phone-input/index.d.ts +0 -2
  25. package/esm/input/phone-input/index.js +0 -2
  26. /package/dist/input/{currency-input/components/CurrencyInputProps.d.ts → input-currency-props.d.ts} +0 -0
  27. /package/dist/input/{currency-input/components/utils → utils}/escapeRegExp.d.ts +0 -0
  28. /package/dist/input/{currency-input/components/utils → utils}/fixedDecimalValue.d.ts +0 -0
  29. /package/dist/input/{currency-input/components/utils → utils}/getSuffix.d.ts +0 -0
  30. /package/dist/input/{currency-input/components/utils → utils}/index.d.ts +0 -0
  31. /package/dist/input/{currency-input/components/utils → utils}/isNumber.d.ts +0 -0
  32. /package/dist/input/{currency-input/components/utils → utils}/padTrimValue.d.ts +0 -0
  33. /package/dist/input/{currency-input/components/utils → utils}/parseAbbrValue.d.ts +0 -0
  34. /package/dist/input/{currency-input/components/utils → utils}/removeInvalidChars.d.ts +0 -0
  35. /package/dist/input/{currency-input/components/utils → utils}/removeSeparators.d.ts +0 -0
  36. /package/dist/input/{currency-input/components/utils → utils}/repositionCursor.d.ts +0 -0
  37. /package/esm/input/{currency-input/components/CurrencyInputProps.d.ts → input-currency-props.d.ts} +0 -0
  38. /package/esm/input/{currency-input/components/CurrencyInputProps.js → input-currency-props.js} +0 -0
  39. /package/esm/input/{currency-input/components/utils → utils}/addSeparators.js +0 -0
  40. /package/esm/input/{currency-input/components/utils → utils}/cleanValue.js +0 -0
  41. /package/esm/input/{currency-input/components/utils → utils}/escapeRegExp.d.ts +0 -0
  42. /package/esm/input/{currency-input/components/utils → utils}/escapeRegExp.js +0 -0
  43. /package/esm/input/{currency-input/components/utils → utils}/fixedDecimalValue.d.ts +0 -0
  44. /package/esm/input/{currency-input/components/utils → utils}/fixedDecimalValue.js +0 -0
  45. /package/esm/input/{currency-input/components/utils → utils}/formatValue.js +0 -0
  46. /package/esm/input/{currency-input/components/utils → utils}/getLocaleConfig.js +0 -0
  47. /package/esm/input/{currency-input/components/utils → utils}/getSuffix.d.ts +0 -0
  48. /package/esm/input/{currency-input/components/utils → utils}/getSuffix.js +0 -0
  49. /package/esm/input/{currency-input/components/utils → utils}/index.d.ts +0 -0
  50. /package/esm/input/{currency-input/components/utils → utils}/index.js +0 -0
  51. /package/esm/input/{currency-input/components/utils → utils}/isNumber.d.ts +0 -0
  52. /package/esm/input/{currency-input/components/utils → utils}/isNumber.js +0 -0
  53. /package/esm/input/{currency-input/components/utils → utils}/padTrimValue.d.ts +0 -0
  54. /package/esm/input/{currency-input/components/utils → utils}/padTrimValue.js +0 -0
  55. /package/esm/input/{currency-input/components/utils → utils}/parseAbbrValue.d.ts +0 -0
  56. /package/esm/input/{currency-input/components/utils → utils}/parseAbbrValue.js +0 -0
  57. /package/esm/input/{currency-input/components/utils → utils}/removeInvalidChars.d.ts +0 -0
  58. /package/esm/input/{currency-input/components/utils → utils}/removeInvalidChars.js +0 -0
  59. /package/esm/input/{currency-input/components/utils → utils}/removeSeparators.d.ts +0 -0
  60. /package/esm/input/{currency-input/components/utils → utils}/removeSeparators.js +0 -0
  61. /package/esm/input/{currency-input/components/utils → utils}/repositionCursor.d.ts +0 -0
  62. /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';
@@ -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-input';
5
- import CurrencyInput from './currency-input';
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 './CurrencyInputProps';
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,5 +1,5 @@
1
1
  import React from 'react';
2
- import { InputTypes } from '..';
2
+ import { InputTypes } from '.';
3
3
  type PhoneInputProps = {
4
4
  onChange: (data: string) => void;
5
5
  value?: string;
@@ -1,4 +1,4 @@
1
- import { CurrencyInputProps } from '../CurrencyInputProps';
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
  };
@@ -1,4 +1,4 @@
1
- import { IntlConfig } from '../CurrencyInputProps';
1
+ import { IntlConfig } from '../input-currency-props';
2
2
  export type FormatValueOptions = {
3
3
  /**
4
4
  * Value to format
@@ -1,4 +1,4 @@
1
- import { IntlConfig } from '../CurrencyInputProps';
1
+ import { IntlConfig } from '../input-currency-props';
2
2
  type LocaleConfig = {
3
3
  currencySymbol: string;
4
4
  groupSeparator: string;
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';
@@ -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-input';
5
- import CurrencyInput from './currency-input';
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;
@@ -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-input';
6
- import CurrencyInput from './currency-input';
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 './CurrencyInputProps';
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 '../../input-block-label';
10
- import useScale, { withScale } from '../../../use-scale';
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,
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { InputTypes } from '..';
2
+ import { InputTypes } from '.';
3
3
  type PhoneInputProps = {
4
4
  onChange: (data: string) => void;
5
5
  value?: string;
@@ -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 '../styles';
7
- import useScale, { withScale } from '../../use-scale';
8
- import InputBlockLabel from '../input-block-label';
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 '../CurrencyInputProps';
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
  };
@@ -1,4 +1,4 @@
1
- import { IntlConfig } from '../CurrencyInputProps';
1
+ import { IntlConfig } from '../input-currency-props';
2
2
  export type FormatValueOptions = {
3
3
  /**
4
4
  * Value to format
@@ -1,4 +1,4 @@
1
- import { IntlConfig } from '../CurrencyInputProps';
1
+ import { IntlConfig } from '../input-currency-props';
2
2
  type LocaleConfig = {
3
3
  currencySymbol: string;
4
4
  groupSeparator: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@helpdice/ui",
3
- "version": "2.5.1",
3
+ "version": "2.5.2",
4
4
  "main": "dist/index.js",
5
5
  "types": "esm/index.d.ts",
6
6
  "unpkg": "dist/index.min.js",
@@ -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,2 +0,0 @@
1
- import PhoneInput from './phone';
2
- export default PhoneInput;
@@ -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,4 +0,0 @@
1
- import CurrencyInput from './components/CurrencyInput';
2
- export { formatValue } from './components/utils/formatValue';
3
- export { cleanValue } from './components/utils/cleanValue';
4
- export default CurrencyInput;
@@ -1,2 +0,0 @@
1
- import PhoneInput from './phone';
2
- export default PhoneInput;
@@ -1,2 +0,0 @@
1
- import PhoneInput from './phone';
2
- export default PhoneInput;