@thx/controls 16.8.4 → 16.8.5

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.
@@ -2,48 +2,49 @@ import React, { useCallback } from 'react';
2
2
  import { toMoney } from '@thx/money';
3
3
  import debug from 'debug';
4
4
  import Money from 'js-money';
5
- import CurrencyInput from 'react-currency-input-field';
6
- import { Input, Dropdown } from 'semantic-ui-react';
5
+ import { Input, Label, Dropdown } from 'semantic-ui-react';
6
+ import { useMoneyInput } from '../useMoneyInput.js';
7
7
 
8
8
  const d = debug("thx.controls.money.MoneyCurrencyInput");
9
9
  function MoneyCurrencyInput(props) {
10
- const { name, onBlur, prefix, defaultCurrency, onChange, showPrefix, value, wholeNumber, currencies, locked, lockCurrency, ...rest } = props;
10
+ const { name, onBlur, prefix, defaultCurrency, onChange, showPrefix, value, wholeNumber, currencies, locked, ...rest } = props;
11
11
  const options = currencies || [
12
12
  { key: "CAD", text: "CAD", value: "CAD" },
13
13
  { key: "USD", text: "USD", value: "USD" }
14
14
  ];
15
- const currencyCode = value?.currency || defaultCurrency?.code || "CAD";
16
15
  const handleChange = useCallback((v) => {
17
- if (onChange) {
18
- onChange(toMoney(v || 0, currencyCode || "CAD"));
16
+ if (!v) {
17
+ onChange && onChange(toMoney(0, defaultCurrency));
18
+ } else {
19
+ onChange && onChange(v);
19
20
  }
20
- }, [currencyCode, onChange]);
21
+ }, [defaultCurrency, onChange]);
22
+ const val = !(value instanceof Money) && value !== void 0 ? toMoney(value) : value;
23
+ const [inputElement] = useMoneyInput({ onChange: handleChange, prefix, showPrefix, value: val, wholeNumber });
21
24
  const handleDropdownChange = useCallback((e, v) => {
22
25
  const newCurrencyCode = v.value;
23
26
  const newMoney = new Money(value?.amount || 0, newCurrencyCode);
24
27
  d("Change", value, newCurrencyCode, newMoney);
25
28
  onChange && onChange(newMoney);
26
29
  }, [onChange, value]);
30
+ const currencyCode = value?.currency || defaultCurrency?.code || "CAD";
31
+ d("Render", value, currencyCode);
27
32
  return /* @__PURE__ */ React.createElement(Input, {
28
- ...rest
29
- }, /* @__PURE__ */ React.createElement(CurrencyInput, {
33
+ ...rest,
34
+ labelPosition: "right"
35
+ }, /* @__PURE__ */ React.createElement("input", {
30
36
  name,
31
- disabled: locked,
32
- placeholder: "0.00",
33
- decimalsLimit: wholeNumber ? -1 : 2,
34
- prefix: showPrefix ? prefix || "$" : void 0,
35
- onValueChange: handleChange,
36
- style: { textAlign: "right" },
37
+ ref: inputElement,
37
38
  onBlur,
38
- value: value?.toDecimal() || 0,
39
- className: "ui right labeled input"
40
- }), /* @__PURE__ */ React.createElement(Dropdown, {
41
- disabled: locked || lockCurrency,
39
+ readOnly: locked
40
+ }), /* @__PURE__ */ React.createElement(Label, {
41
+ basic: true
42
+ }, /* @__PURE__ */ React.createElement(Dropdown, {
43
+ disabled: locked,
42
44
  options,
43
45
  value: currencyCode,
44
- onChange: handleDropdownChange,
45
- className: "ui basic label dropdown"
46
- }));
46
+ onChange: handleDropdownChange
47
+ })));
47
48
  }
48
49
 
49
50
  export { MoneyCurrencyInput };
@@ -1 +1 @@
1
- {"version":3,"file":"MoneyCurrencyInput.js","sources":["../../../../src/money/MoneyCurrencyInput/MoneyCurrencyInput.tsx"],"sourcesContent":["import {toMoney} from '@thx/money';\n/* eslint-disable jsx-a11y/no-static-element-interactions */\nimport debug from 'debug';\nimport Money, {CurrencyString} from 'js-money';\nimport {SyntheticEvent, useCallback} from 'react';\nimport CurrencyInput, {CurrencyInputProps} from 'react-currency-input-field';\nimport {Dropdown, DropdownProps, Input, InputProps} from 'semantic-ui-react';\nimport type {MoneyInputProps} from '../MoneyInput';\n\nconst d = debug('thx.controls.money.MoneyCurrencyInput');\n\nexport interface MoneyCurrencyInputProps extends MoneyInputProps {\n\tcurrencies?: {key: string; value: string; text: string}[];\n\tlockCurrency?: boolean;\n}\n\nexport function MoneyCurrencyInput(props: MoneyCurrencyInputProps & Omit<InputProps, 'onChange'>) {\n\tconst {name, onBlur, prefix, defaultCurrency, onChange, showPrefix, value, wholeNumber, currencies, locked, lockCurrency, ...rest} = props;\n\n\tconst options = currencies || [\n\t\t{key: 'CAD', text: 'CAD', value: 'CAD'},\n\t\t{key: 'USD', text: 'USD', value: 'USD'},\n\t];\n\n\tconst currencyCode = value?.currency || defaultCurrency?.code || 'CAD';\n\n\tconst handleChange: CurrencyInputProps['onValueChange'] = useCallback(\n\t\t(v): void => {\n\t\t\tif (onChange) {\n\t\t\t\tonChange(toMoney(v || 0, currencyCode || 'CAD'));\n\t\t\t}\n\t\t},\n\t\t[currencyCode, onChange],\n\t);\n\n\tconst handleDropdownChange = useCallback(\n\t\t(e: SyntheticEvent<HTMLElement, Event>, v: DropdownProps) => {\n\t\t\tconst newCurrencyCode = v.value as CurrencyString;\n\t\t\tconst newMoney = new Money(value?.amount || 0, newCurrencyCode);\n\n\t\t\td('Change', value, newCurrencyCode, newMoney);\n\t\t\t// setInputValue(newMoney);\n\t\t\tonChange && onChange(newMoney);\n\t\t\t// forceUpdate();\n\t\t},\n\t\t[onChange, value],\n\t);\n\n\treturn (\n\t\t<Input {...rest}>\n\t\t\t<CurrencyInput\n\t\t\t\tname={name}\n\t\t\t\tdisabled={locked}\n\t\t\t\tplaceholder=\"0.00\"\n\t\t\t\tdecimalsLimit={wholeNumber ? -1 : 2}\n\t\t\t\tprefix={showPrefix ? prefix || '$' : undefined}\n\t\t\t\tonValueChange={handleChange}\n\t\t\t\tstyle={{textAlign: 'right'}}\n\t\t\t\tonBlur={onBlur}\n\t\t\t\tvalue={value?.toDecimal() || 0}\n\t\t\t\tclassName=\"ui right labeled input\"\n\t\t\t/>\n\t\t\t<Dropdown\n\t\t\t\tdisabled={locked || lockCurrency}\n\t\t\t\toptions={options}\n\t\t\t\tvalue={currencyCode}\n\t\t\t\tonChange={handleDropdownChange}\n\t\t\t\tclassName=\"ui basic label dropdown\"\n\t\t\t/>\n\t\t</Input>\n\t);\n}\n"],"names":[],"mappings":";;;;;;;AASA,MAAM,CAAA,GAAI,MAAM,uCAAuC,CAAA,CAAA;AAOhD,SAAA,kBAAA,CAA4B,KAA+D,EAAA;AACjG,EAAA,MAAM,EAAC,IAAA,EAAM,MAAQ,EAAA,MAAA,EAAQ,eAAiB,EAAA,QAAA,EAAU,UAAY,EAAA,KAAA,EAAO,WAAa,EAAA,UAAA,EAAY,MAAQ,EAAA,YAAA,EAAA,GAAiB,IAAQ,EAAA,GAAA,KAAA,CAAA;AAErI,EAAA,MAAM,UAAU,UAAc,IAAA;AAAA,IAC7B,EAAC,GAAK,EAAA,KAAA,EAAO,IAAM,EAAA,KAAA,EAAO,OAAO,KAAK,EAAA;AAAA,IACtC,EAAC,GAAK,EAAA,KAAA,EAAO,IAAM,EAAA,KAAA,EAAO,OAAO,KAAK,EAAA;AAAA,GACvC,CAAA;AAEA,EAAA,MAAM,YAAe,GAAA,KAAA,EAAO,QAAY,IAAA,eAAA,EAAiB,IAAQ,IAAA,KAAA,CAAA;AAEjE,EAAM,MAAA,YAAA,GAAoD,WACzD,CAAA,CAAC,CAAY,KAAA;AACZ,IAAA,IAAI,QAAU,EAAA;AACb,MAAA,QAAA,CAAS,OAAQ,CAAA,CAAA,IAAK,CAAG,EAAA,YAAA,IAAgB,KAAK,CAAC,CAAA,CAAA;AAAA,KAChD;AAAA,GAED,EAAA,CAAC,YAAc,EAAA,QAAQ,CACxB,CAAA,CAAA;AAEA,EAAA,MAAM,oBAAuB,GAAA,WAAA,CAC5B,CAAC,CAAA,EAAuC,CAAqB,KAAA;AAC5D,IAAA,MAAM,kBAAkB,CAAE,CAAA,KAAA,CAAA;AAC1B,IAAA,MAAM,WAAW,IAAI,KAAA,CAAM,KAAO,EAAA,MAAA,IAAU,GAAG,eAAe,CAAA,CAAA;AAE9D,IAAE,CAAA,CAAA,QAAA,EAAU,KAAO,EAAA,eAAA,EAAiB,QAAQ,CAAA,CAAA;AAE5C,IAAA,QAAA,IAAY,SAAS,QAAQ,CAAA,CAAA;AAAA,GAG9B,EAAA,CAAC,QAAU,EAAA,KAAK,CACjB,CAAA,CAAA;AAEA,EAAA,uBACE,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA;AAAA,IAAU,GAAA,IAAA;AAAA,GAAA,kBACT,KAAA,CAAA,aAAA,CAAA,aAAA,EAAA;AAAA,IACA,IAAA;AAAA,IACA,QAAU,EAAA,MAAA;AAAA,IACV,WAAY,EAAA,MAAA;AAAA,IACZ,aAAA,EAAe,cAAc,CAAK,CAAA,GAAA,CAAA;AAAA,IAClC,MAAA,EAAQ,UAAa,GAAA,MAAA,IAAU,GAAM,GAAA,KAAA,CAAA;AAAA,IACrC,aAAe,EAAA,YAAA;AAAA,IACf,KAAA,EAAO,EAAC,SAAA,EAAW,OAAO,EAAA;AAAA,IAC1B,MAAA;AAAA,IACA,KAAA,EAAO,KAAO,EAAA,SAAA,EAAe,IAAA,CAAA;AAAA,IAC7B,SAAU,EAAA,wBAAA;AAAA,GACX,mBACC,KAAA,CAAA,aAAA,CAAA,QAAA,EAAA;AAAA,IACA,UAAU,MAAU,IAAA,YAAA;AAAA,IACpB,OAAA;AAAA,IACA,KAAO,EAAA,YAAA;AAAA,IACP,QAAU,EAAA,oBAAA;AAAA,IACV,SAAU,EAAA,yBAAA;AAAA,GACX,CACD,CAAA,CAAA;AAEF;;;;"}
1
+ {"version":3,"file":"MoneyCurrencyInput.js","sources":["../../../../src/money/MoneyCurrencyInput/MoneyCurrencyInput.tsx"],"sourcesContent":["import {toMoney} from '@thx/money';\n/* eslint-disable jsx-a11y/no-static-element-interactions */\nimport debug from 'debug';\nimport Money, {CurrencyString} from 'js-money';\nimport {SyntheticEvent, useCallback} from 'react';\nimport {Dropdown, DropdownProps, Input, InputProps, Label} from 'semantic-ui-react';\nimport type {MoneyInputProps} from '../MoneyInput';\nimport {useMoneyInput} from '../useMoneyInput';\n\nconst d = debug('thx.controls.money.MoneyCurrencyInput');\n\nexport interface MoneyCurrencyInputProps extends MoneyInputProps {\n\tcurrencies?: {key: string; value: string; text: string}[];\n}\n\nexport function MoneyCurrencyInput(props: MoneyCurrencyInputProps & Omit<InputProps, 'onChange'>) {\n\tconst {name, onBlur, prefix, defaultCurrency, onChange, showPrefix, value, wholeNumber, currencies, locked, ...rest} = props;\n\n\tconst options = currencies || [\n\t\t{key: 'CAD', text: 'CAD', value: 'CAD'},\n\t\t{key: 'USD', text: 'USD', value: 'USD'},\n\t];\n\n\tconst handleChange = useCallback(\n\t\t(v?: Money) => {\n\t\t\tif (!v) {\n\t\t\t\tonChange && onChange(toMoney(0, defaultCurrency));\n\t\t\t} else {\n\t\t\t\tonChange && onChange(v);\n\t\t\t}\n\t\t},\n\t\t[defaultCurrency, onChange],\n\t);\n\n\tconst val = !(value instanceof Money) && value !== undefined ? toMoney(value) : value;\n\n\tconst [inputElement] = useMoneyInput({onChange: handleChange, prefix, showPrefix, value: val, wholeNumber});\n\n\tconst handleDropdownChange = useCallback(\n\t\t(e: SyntheticEvent<HTMLElement, Event>, v: DropdownProps) => {\n\t\t\tconst newCurrencyCode = v.value as CurrencyString;\n\t\t\tconst newMoney = new Money(value?.amount || 0, newCurrencyCode);\n\n\t\t\td('Change', value, newCurrencyCode, newMoney);\n\t\t\t// setInputValue(newMoney);\n\t\t\tonChange && onChange(newMoney);\n\t\t\t// forceUpdate();\n\t\t},\n\t\t[onChange, value],\n\t);\n\n\tconst currencyCode = value?.currency || defaultCurrency?.code || 'CAD';\n\td('Render', value, currencyCode);\n\n\treturn (\n\t\t<Input {...rest} labelPosition=\"right\">\n\t\t\t<input name={name} ref={inputElement} onBlur={onBlur} readOnly={locked} />\n\t\t\t<Label basic>\n\t\t\t\t<Dropdown disabled={locked} options={options} value={currencyCode} onChange={handleDropdownChange} />\n\t\t\t</Label>\n\t\t</Input>\n\t);\n}\n"],"names":[],"mappings":";;;;;;;AASA,MAAM,CAAA,GAAI,MAAM,uCAAuC,CAAA,CAAA;AAMhD,SAAA,kBAAA,CAA4B,KAA+D,EAAA;AACjG,EAAM,MAAA,EAAC,IAAM,EAAA,MAAA,EAAQ,MAAQ,EAAA,eAAA,EAAiB,QAAU,EAAA,UAAA,EAAY,KAAO,EAAA,WAAA,EAAa,UAAY,EAAA,MAAA,EAAA,GAAW,IAAQ,EAAA,GAAA,KAAA,CAAA;AAEvH,EAAA,MAAM,UAAU,UAAc,IAAA;AAAA,IAC7B,EAAC,GAAK,EAAA,KAAA,EAAO,IAAM,EAAA,KAAA,EAAO,OAAO,KAAK,EAAA;AAAA,IACtC,EAAC,GAAK,EAAA,KAAA,EAAO,IAAM,EAAA,KAAA,EAAO,OAAO,KAAK,EAAA;AAAA,GACvC,CAAA;AAEA,EAAM,MAAA,YAAA,GAAe,WACpB,CAAA,CAAC,CAAc,KAAA;AACd,IAAA,IAAI,CAAC,CAAG,EAAA;AACP,MAAA,QAAA,IAAY,QAAS,CAAA,OAAA,CAAQ,CAAG,EAAA,eAAe,CAAC,CAAA,CAAA;AAAA,KAC1C,MAAA;AACN,MAAA,QAAA,IAAY,SAAS,CAAC,CAAA,CAAA;AAAA,KACvB;AAAA,GAED,EAAA,CAAC,eAAiB,EAAA,QAAQ,CAC3B,CAAA,CAAA;AAEA,EAAM,MAAA,GAAA,GAAM,EAAmB,KAAA,YAAA,KAAA,CAAA,IAAU,UAAU,KAAY,CAAA,GAAA,OAAA,CAAQ,KAAK,CAAI,GAAA,KAAA,CAAA;AAEhF,EAAM,MAAA,CAAC,YAAgB,CAAA,GAAA,aAAA,CAAc,EAAC,QAAA,EAAU,YAAc,EAAA,MAAA,EAAQ,UAAY,EAAA,KAAA,EAAO,GAAK,EAAA,WAAA,EAAY,CAAA,CAAA;AAE1G,EAAA,MAAM,oBAAuB,GAAA,WAAA,CAC5B,CAAC,CAAA,EAAuC,CAAqB,KAAA;AAC5D,IAAA,MAAM,kBAAkB,CAAE,CAAA,KAAA,CAAA;AAC1B,IAAA,MAAM,WAAW,IAAI,KAAA,CAAM,KAAO,EAAA,MAAA,IAAU,GAAG,eAAe,CAAA,CAAA;AAE9D,IAAE,CAAA,CAAA,QAAA,EAAU,KAAO,EAAA,eAAA,EAAiB,QAAQ,CAAA,CAAA;AAE5C,IAAA,QAAA,IAAY,SAAS,QAAQ,CAAA,CAAA;AAAA,GAG9B,EAAA,CAAC,QAAU,EAAA,KAAK,CACjB,CAAA,CAAA;AAEA,EAAA,MAAM,YAAe,GAAA,KAAA,EAAO,QAAY,IAAA,eAAA,EAAiB,IAAQ,IAAA,KAAA,CAAA;AACjE,EAAE,CAAA,CAAA,QAAA,EAAU,OAAO,YAAY,CAAA,CAAA;AAE/B,EAAA,uBACE,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA;AAAA,IAAU,GAAA,IAAA;AAAA,IAAM,aAAc,EAAA,OAAA;AAAA,GAAA,kBAC7B,KAAA,CAAA,aAAA,CAAA,OAAA,EAAA;AAAA,IAAM,IAAA;AAAA,IAAY,GAAK,EAAA,YAAA;AAAA,IAAc,MAAA;AAAA,IAAgB,QAAU,EAAA,MAAA;AAAA,GAAQ,mBACvE,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA;AAAA,IAAM,KAAK,EAAA,IAAA;AAAA,GAAA,kBACV,KAAA,CAAA,aAAA,CAAA,QAAA,EAAA;AAAA,IAAS,QAAU,EAAA,MAAA;AAAA,IAAQ,OAAA;AAAA,IAAkB,KAAO,EAAA,YAAA;AAAA,IAAc,QAAU,EAAA,oBAAA;AAAA,GAAsB,CACpG,CACD,CAAA,CAAA;AAEF;;;;"}
@@ -1,29 +1,29 @@
1
1
  import React, { useCallback } from 'react';
2
2
  import { toMoney } from '@thx/money';
3
3
  import debug from 'debug';
4
- import CurrencyInput from 'react-currency-input-field';
4
+ import Money from 'js-money';
5
5
  import { Input } from 'semantic-ui-react';
6
+ import { useMoneyInput } from '../useMoneyInput.js';
6
7
 
7
8
  debug("thx.controls.money.MoneyInput");
8
9
  function MoneyInput(props) {
9
10
  const { name, onBlur, locked, prefix, defaultCurrency, onChange, showPrefix, value, wholeNumber, ...rest } = props;
10
11
  const handleChange = useCallback((v) => {
11
- if (onChange) {
12
- onChange(toMoney(v || 0, defaultCurrency || "CAD"));
12
+ if (!v) {
13
+ onChange && onChange(toMoney(0, defaultCurrency));
14
+ } else {
15
+ onChange && onChange(v);
13
16
  }
14
17
  }, [defaultCurrency, onChange]);
18
+ const val = !(value instanceof Money) && value !== void 0 ? toMoney(value) : value;
19
+ const [inputElement] = useMoneyInput({ onChange: handleChange, prefix, showPrefix, value: val, wholeNumber });
15
20
  return /* @__PURE__ */ React.createElement(Input, {
16
21
  ...rest
17
- }, /* @__PURE__ */ React.createElement(CurrencyInput, {
22
+ }, /* @__PURE__ */ React.createElement("input", {
18
23
  name,
19
- disabled: locked,
20
- placeholder: "0.00",
21
- decimalsLimit: wholeNumber ? -1 : 2,
22
- prefix: showPrefix ? prefix || "$" : void 0,
23
- onValueChange: handleChange,
24
- style: { textAlign: "right" },
24
+ ref: inputElement,
25
25
  onBlur,
26
- value: value?.toDecimal() || 0
26
+ readOnly: locked
27
27
  }));
28
28
  }
29
29
 
@@ -1 +1 @@
1
- {"version":3,"file":"MoneyInput.js","sources":["../../../../src/money/MoneyInput/MoneyInput.tsx"],"sourcesContent":["import {toMoney} from '@thx/money';\nimport debug from 'debug';\nimport type {Currency} from 'js-money';\nimport type Money from 'js-money';\nimport {useCallback} from 'react';\nimport CurrencyInput, {CurrencyInputProps} from 'react-currency-input-field';\nimport {Input, InputProps} from 'semantic-ui-react';\n\nconst d = debug('thx.controls.money.MoneyInput');\n\nexport interface MoneyInputProps {\n\tname?: string;\n\tonChange?: (value?: Money) => void;\n\tvalue?: Money | undefined;\n\tdefaultCurrency?: Currency; // Defaults to Money.CAD\n\tonBlur?: (ev: any) => void;\n\tprefix?: string; // Defaults to currency symbol\n\tshowPrefix?: boolean; // Defaults to false\n\tlocked?: boolean; // Defaults to false\n\twholeNumber?: boolean; // Defaults to false\n}\n\nexport function MoneyInput(props: MoneyInputProps & Omit<InputProps, 'onChange'>) {\n\tconst {name, onBlur, locked, prefix, defaultCurrency, onChange, showPrefix, value, wholeNumber, ...rest} = props;\n\n\tconst handleChange: CurrencyInputProps['onValueChange'] = useCallback(\n\t\t(v): void => {\n\t\t\tif (onChange) {\n\t\t\t\tonChange(toMoney(v || 0, defaultCurrency || 'CAD'));\n\t\t\t}\n\t\t},\n\t\t[defaultCurrency, onChange],\n\t);\n\n\treturn (\n\t\t<Input {...rest}>\n\t\t\t<CurrencyInput\n\t\t\t\tname={name}\n\t\t\t\tdisabled={locked}\n\t\t\t\tplaceholder=\"0.00\"\n\t\t\t\tdecimalsLimit={wholeNumber ? -1 : 2}\n\t\t\t\tprefix={showPrefix ? prefix || '$' : undefined}\n\t\t\t\tonValueChange={handleChange}\n\t\t\t\tstyle={{textAlign: 'right'}}\n\t\t\t\tonBlur={onBlur}\n\t\t\t\tvalue={value?.toDecimal() || 0}\n\t\t\t/>\n\t\t</Input>\n\t);\n}\n"],"names":[],"mappings":";;;;;;AAQU,MAAM,+BAA+B,EAAA;AAcxC,SAAA,UAAA,CAAoB,KAAuD,EAAA;AACjF,EAAM,MAAA,EAAC,IAAM,EAAA,MAAA,EAAQ,MAAQ,EAAA,MAAA,EAAQ,iBAAiB,QAAU,EAAA,UAAA,EAAY,KAAO,EAAA,WAAA,EAAA,GAAgB,IAAQ,EAAA,GAAA,KAAA,CAAA;AAE3G,EAAM,MAAA,YAAA,GAAoD,WACzD,CAAA,CAAC,CAAY,KAAA;AACZ,IAAA,IAAI,QAAU,EAAA;AACb,MAAA,QAAA,CAAS,OAAQ,CAAA,CAAA,IAAK,CAAG,EAAA,eAAA,IAAmB,KAAK,CAAC,CAAA,CAAA;AAAA,KACnD;AAAA,GAED,EAAA,CAAC,eAAiB,EAAA,QAAQ,CAC3B,CAAA,CAAA;AAEA,EAAA,uBACE,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA;AAAA,IAAU,GAAA,IAAA;AAAA,GAAA,kBACT,KAAA,CAAA,aAAA,CAAA,aAAA,EAAA;AAAA,IACA,IAAA;AAAA,IACA,QAAU,EAAA,MAAA;AAAA,IACV,WAAY,EAAA,MAAA;AAAA,IACZ,aAAA,EAAe,cAAc,CAAK,CAAA,GAAA,CAAA;AAAA,IAClC,MAAA,EAAQ,UAAa,GAAA,MAAA,IAAU,GAAM,GAAA,KAAA,CAAA;AAAA,IACrC,aAAe,EAAA,YAAA;AAAA,IACf,KAAA,EAAO,EAAC,SAAA,EAAW,OAAO,EAAA;AAAA,IAC1B,MAAA;AAAA,IACA,KAAA,EAAO,KAAO,EAAA,SAAA,EAAe,IAAA,CAAA;AAAA,GAC9B,CACD,CAAA,CAAA;AAEF;;;;"}
1
+ {"version":3,"file":"MoneyInput.js","sources":["../../../../src/money/MoneyInput/MoneyInput.tsx"],"sourcesContent":["import {toMoney} from '@thx/money';\nimport debug from 'debug';\nimport Money, {Currency, MoneyObject} from 'js-money';\nimport {useCallback} from 'react';\nimport {Input, InputProps} from 'semantic-ui-react';\nimport {useMoneyInput} from '../useMoneyInput';\n\nconst d = debug('thx.controls.money.MoneyInput');\n\nexport interface MoneyInputProps {\n\tname?: string;\n\tonChange?: (value: Money) => void;\n\tvalue?: Money | MoneyObject;\n\tdefaultCurrency?: Currency; // Defaults to Money.CAD\n\tonBlur?: (ev: any) => void;\n\tprefix?: string; // Defaults to currency symbol\n\tshowPrefix?: boolean; // Defaults to false\n\tlocked?: boolean; // Defaults to false\n\twholeNumber?: boolean; // Defaults to false\n}\n\nexport function MoneyInput(props: MoneyInputProps & Omit<InputProps, 'onChange'>) {\n\tconst {name, onBlur, locked, prefix, defaultCurrency, onChange, showPrefix, value, wholeNumber, ...rest} = props;\n\n\tconst handleChange = useCallback(\n\t\t(v?: Money) => {\n\t\t\tif (!v) {\n\t\t\t\tonChange && onChange(toMoney(0, defaultCurrency));\n\t\t\t} else {\n\t\t\t\tonChange && onChange(v);\n\t\t\t}\n\t\t},\n\t\t[defaultCurrency, onChange],\n\t);\n\n\tconst val = !(value instanceof Money) && value !== undefined ? toMoney(value) : value;\n\n\tconst [inputElement] = useMoneyInput({onChange: handleChange, prefix, showPrefix, value: val, wholeNumber});\n\n\treturn (\n\t\t<Input {...rest}>\n\t\t\t<input name={name} ref={inputElement} onBlur={onBlur} readOnly={locked} />\n\t\t</Input>\n\t);\n}\n"],"names":[],"mappings":";;;;;;;AAOU,MAAM,+BAA+B,EAAA;AAcxC,SAAA,UAAA,CAAoB,KAAuD,EAAA;AACjF,EAAM,MAAA,EAAC,IAAM,EAAA,MAAA,EAAQ,MAAQ,EAAA,MAAA,EAAQ,iBAAiB,QAAU,EAAA,UAAA,EAAY,KAAO,EAAA,WAAA,EAAA,GAAgB,IAAQ,EAAA,GAAA,KAAA,CAAA;AAE3G,EAAM,MAAA,YAAA,GAAe,WACpB,CAAA,CAAC,CAAc,KAAA;AACd,IAAA,IAAI,CAAC,CAAG,EAAA;AACP,MAAA,QAAA,IAAY,QAAS,CAAA,OAAA,CAAQ,CAAG,EAAA,eAAe,CAAC,CAAA,CAAA;AAAA,KAC1C,MAAA;AACN,MAAA,QAAA,IAAY,SAAS,CAAC,CAAA,CAAA;AAAA,KACvB;AAAA,GAED,EAAA,CAAC,eAAiB,EAAA,QAAQ,CAC3B,CAAA,CAAA;AAEA,EAAM,MAAA,GAAA,GAAM,EAAmB,KAAA,YAAA,KAAA,CAAA,IAAU,UAAU,KAAY,CAAA,GAAA,OAAA,CAAQ,KAAK,CAAI,GAAA,KAAA,CAAA;AAEhF,EAAM,MAAA,CAAC,YAAgB,CAAA,GAAA,aAAA,CAAc,EAAC,QAAA,EAAU,YAAc,EAAA,MAAA,EAAQ,UAAY,EAAA,KAAA,EAAO,GAAK,EAAA,WAAA,EAAY,CAAA,CAAA;AAE1G,EAAA,uBACE,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA;AAAA,IAAU,GAAA,IAAA;AAAA,GAAA,kBACT,KAAA,CAAA,aAAA,CAAA,OAAA,EAAA;AAAA,IAAM,IAAA;AAAA,IAAY,GAAK,EAAA,YAAA;AAAA,IAAc,MAAA;AAAA,IAAgB,QAAU,EAAA,MAAA;AAAA,GAAQ,CACzE,CAAA,CAAA;AAEF;;;;"}
@@ -0,0 +1,74 @@
1
+ import { toMoney } from '@thx/money';
2
+ import debug from 'debug';
3
+ import InputmaskImport from 'inputmask';
4
+ import Money from 'js-money';
5
+ import { useRef, useEffect, useCallback } from 'react';
6
+
7
+ const d = debug("thx.controls.money.useMoneyInput");
8
+ function useMoneyInput(props) {
9
+ const { value, onChange, onSet, showPrefix, prefix, wholeNumber } = props;
10
+ const inputElement = useRef(null);
11
+ const maskInstance = useRef(null);
12
+ const currencyCode = value?.currency || "CAD";
13
+ useEffect(() => {
14
+ if (!inputElement.current)
15
+ throw new Error("Could not get input element");
16
+ d("Creating input mask instance");
17
+ maskInstance.current = new InputmaskImport({
18
+ alias: "numeric",
19
+ groupSeparator: ",",
20
+ digits: wholeNumber ? "0" : Money[currencyCode].decimal_digits.toString(),
21
+ digitsOptional: false,
22
+ prefix: showPrefix ? prefix || Money[currencyCode].symbol : void 0,
23
+ placeholder: "0",
24
+ autoUnmask: true,
25
+ oncomplete() {
26
+ if (onChange) {
27
+ if (inputElement.current?.value) {
28
+ onChange(toMoney(inputElement.current?.value, currencyCode));
29
+ } else {
30
+ onChange();
31
+ }
32
+ }
33
+ },
34
+ oncleared() {
35
+ if (onChange)
36
+ onChange();
37
+ },
38
+ onincomplete() {
39
+ if (onChange)
40
+ onChange(toMoney(inputElement.current?.value, currencyCode));
41
+ }
42
+ });
43
+ maskInstance.current.mask(inputElement.current);
44
+ return () => {
45
+ if (maskInstance.current) {
46
+ d("Cleaning up input mask instance");
47
+ maskInstance.current.remove();
48
+ maskInstance.current = null;
49
+ }
50
+ };
51
+ }, [currencyCode, prefix, showPrefix, wholeNumber]);
52
+ const setVal = useCallback((v) => {
53
+ if (inputElement.current) {
54
+ d("Value is being set:", v);
55
+ if (v) {
56
+ inputElement.current.value = v.toDecimal().toString();
57
+ } else {
58
+ inputElement.current.value = "";
59
+ }
60
+ onSet && onSet(v);
61
+ }
62
+ }, [onSet]);
63
+ useEffect(() => {
64
+ const whatCurrentlyIsDisplayed = inputElement.current?.value || "";
65
+ const whatWeAreSetting = value ? value.toString() : "";
66
+ if (whatCurrentlyIsDisplayed !== whatWeAreSetting) {
67
+ setVal(value);
68
+ }
69
+ }, [setVal, value]);
70
+ return [inputElement, setVal];
71
+ }
72
+
73
+ export { useMoneyInput };
74
+ //# sourceMappingURL=useMoneyInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useMoneyInput.js","sources":["../../../src/money/useMoneyInput.ts"],"sourcesContent":["import {toMoney} from '@thx/money';\nimport debug from 'debug';\nimport Inputmask from 'inputmask';\nimport Money from 'js-money';\nimport {MutableRefObject, useCallback, useEffect, useRef} from 'react';\n\nconst d = debug('thx.controls.money.useMoneyInput');\n\ninterface UseMoneyInputProps {\n\tvalue?: Money;\n\tonChange?: (value?: Money) => void;\n\tonSet?: (value?: Money) => void;\n\t// defaultCurrency?: Currency; // Defaults to Money.CAD\n\tprefix?: string; // Defaults to currency symbol\n\tshowPrefix?: boolean; // Defaults to false\n\twholeNumber?: boolean; // Defaults to false\n}\n\ntype SetValueFn = (value?: Money) => void;\n\nexport function useMoneyInput(props: UseMoneyInputProps): [MutableRefObject<HTMLInputElement | null>, SetValueFn] {\n\tconst {value, onChange, onSet, showPrefix, prefix, wholeNumber} = props;\n\n\tconst inputElement = useRef<HTMLInputElement | null>(null);\n\tconst maskInstance = useRef<Inputmask.Instance | null>(null);\n\n\t// set the adjCurrency\n\t// let adjCurrency = Money.CAD;\n\t// if (value?.currency && Money[value?.currency]) adjCurrency = Money[value?.currency];\n\t// if (defaultCurrency) adjCurrency = defaultCurrency;\n\tconst currencyCode = value?.currency || 'CAD';\n\n\tuseEffect(() => {\n\t\tif (!inputElement.current) throw new Error('Could not get input element');\n\n\t\td('Creating input mask instance');\n\t\tmaskInstance.current = new Inputmask({\n\t\t\talias: 'numeric',\n\t\t\tgroupSeparator: ',',\n\t\t\tdigits: wholeNumber ? '0' : Money[currencyCode].decimal_digits.toString(),\n\t\t\tdigitsOptional: false,\n\t\t\tprefix: showPrefix ? prefix || Money[currencyCode].symbol : undefined,\n\t\t\tplaceholder: '0',\n\t\t\tautoUnmask: true,\n\t\t\toncomplete() {\n\t\t\t\tif (onChange) {\n\t\t\t\t\tif (inputElement.current?.value) {\n\t\t\t\t\t\tonChange(toMoney(inputElement.current?.value, currencyCode));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tonChange();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\t\t\toncleared() {\n\t\t\t\tif (onChange) onChange();\n\t\t\t},\n\t\t\tonincomplete() {\n\t\t\t\tif (onChange) onChange(toMoney(inputElement.current?.value, currencyCode));\n\t\t\t},\n\t\t});\n\t\tmaskInstance.current.mask(inputElement.current);\n\n\t\treturn () => {\n\t\t\tif (maskInstance.current) {\n\t\t\t\td('Cleaning up input mask instance');\n\t\t\t\tmaskInstance.current.remove();\n\t\t\t\tmaskInstance.current = null;\n\t\t\t}\n\t\t};\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\n\t}, [currencyCode, prefix, showPrefix, wholeNumber]);\n\n\tconst setVal = useCallback<SetValueFn>(\n\t\t(v?: Money) => {\n\t\t\tif (inputElement.current) {\n\t\t\t\td('Value is being set:', v);\n\t\t\t\tif (v) {\n\t\t\t\t\tinputElement.current.value = v.toDecimal().toString();\n\t\t\t\t} else {\n\t\t\t\t\tinputElement.current.value = '';\n\t\t\t\t}\n\t\t\t\tonSet && onSet(v);\n\t\t\t}\n\t\t},\n\t\t[onSet],\n\t);\n\n\t// If we change the value prop we need to sync the DOM value to display the new value\n\tuseEffect(() => {\n\t\tconst whatCurrentlyIsDisplayed = inputElement.current?.value || ''; // string | undef\n\t\tconst whatWeAreSetting = value ? value.toString() : ''; // money | undef\n\n\t\tif (whatCurrentlyIsDisplayed !== whatWeAreSetting) {\n\t\t\tsetVal(value);\n\t\t}\n\t}, [setVal, value]);\n\n\treturn [inputElement, setVal];\n}\n"],"names":["Inputmask"],"mappings":";;;;;;AAMA,MAAM,CAAA,GAAI,MAAM,kCAAkC,CAAA,CAAA;AAc3C,SAAA,aAAA,CAAuB,KAAoF,EAAA;AACjH,EAAA,MAAM,EAAC,KAAO,EAAA,QAAA,EAAU,KAAO,EAAA,UAAA,EAAY,QAAQ,WAAe,EAAA,GAAA,KAAA,CAAA;AAElE,EAAM,MAAA,YAAA,GAAe,OAAgC,IAAI,CAAA,CAAA;AACzD,EAAM,MAAA,YAAA,GAAe,OAAkC,IAAI,CAAA,CAAA;AAM3D,EAAM,MAAA,YAAA,GAAe,OAAO,QAAY,IAAA,KAAA,CAAA;AAExC,EAAA,SAAA,CAAU,MAAM;AACf,IAAA,IAAI,CAAC,YAAa,CAAA,OAAA;AAAS,MAAM,MAAA,IAAI,MAAM,6BAA6B,CAAA,CAAA;AAExE,IAAA,CAAA,CAAE,8BAA8B,CAAA,CAAA;AAChC,IAAa,YAAA,CAAA,OAAA,GAAU,IAAIA,eAAU,CAAA;AAAA,MACpC,KAAO,EAAA,SAAA;AAAA,MACP,cAAgB,EAAA,GAAA;AAAA,MAChB,QAAQ,WAAc,GAAA,GAAA,GAAM,KAAM,CAAA,YAAA,CAAA,CAAc,eAAe,QAAS,EAAA;AAAA,MACxE,cAAgB,EAAA,KAAA;AAAA,MAChB,MAAQ,EAAA,UAAA,GAAa,MAAU,IAAA,KAAA,CAAM,cAAc,MAAS,GAAA,KAAA,CAAA;AAAA,MAC5D,WAAa,EAAA,GAAA;AAAA,MACb,UAAY,EAAA,IAAA;AAAA,MACZ,UAAa,GAAA;AACZ,QAAA,IAAI,QAAU,EAAA;AACb,UAAI,IAAA,YAAA,CAAa,SAAS,KAAO,EAAA;AAChC,YAAA,QAAA,CAAS,OAAQ,CAAA,YAAA,CAAa,OAAS,EAAA,KAAA,EAAO,YAAY,CAAC,CAAA,CAAA;AAAA,WACrD,MAAA;AACN,YAAS,QAAA,EAAA,CAAA;AAAA,WACV;AAAA,SACD;AAAA,OACD;AAAA,MACA,SAAY,GAAA;AACX,QAAI,IAAA,QAAA;AAAU,UAAS,QAAA,EAAA,CAAA;AAAA,OACxB;AAAA,MACA,YAAe,GAAA;AACd,QAAI,IAAA,QAAA;AAAU,UAAA,QAAA,CAAS,OAAQ,CAAA,YAAA,CAAa,OAAS,EAAA,KAAA,EAAO,YAAY,CAAC,CAAA,CAAA;AAAA,OAC1E;AAAA,KACA,CAAA,CAAA;AACD,IAAa,YAAA,CAAA,OAAA,CAAQ,IAAK,CAAA,YAAA,CAAa,OAAO,CAAA,CAAA;AAE9C,IAAA,OAAO,MAAM;AACZ,MAAA,IAAI,aAAa,OAAS,EAAA;AACzB,QAAA,CAAA,CAAE,iCAAiC,CAAA,CAAA;AACnC,QAAA,YAAA,CAAa,QAAQ,MAAO,EAAA,CAAA;AAC5B,QAAA,YAAA,CAAa,OAAU,GAAA,IAAA,CAAA;AAAA,OACxB;AAAA,KACD,CAAA;AAAA,KAEE,CAAC,YAAA,EAAc,MAAQ,EAAA,UAAA,EAAY,WAAW,CAAC,CAAA,CAAA;AAElD,EAAM,MAAA,MAAA,GAAS,WACd,CAAA,CAAC,CAAc,KAAA;AACd,IAAA,IAAI,aAAa,OAAS,EAAA;AACzB,MAAA,CAAA,CAAE,uBAAuB,CAAC,CAAA,CAAA;AAC1B,MAAA,IAAI,CAAG,EAAA;AACN,QAAA,YAAA,CAAa,OAAQ,CAAA,KAAA,GAAQ,CAAE,CAAA,SAAA,GAAY,QAAS,EAAA,CAAA;AAAA,OAC9C,MAAA;AACN,QAAA,YAAA,CAAa,QAAQ,KAAQ,GAAA,EAAA,CAAA;AAAA,OAC9B;AACA,MAAA,KAAA,IAAS,MAAM,CAAC,CAAA,CAAA;AAAA,KACjB;AAAA,GACD,EACA,CAAC,KAAK,CACP,CAAA,CAAA;AAGA,EAAA,SAAA,CAAU,MAAM;AACf,IAAM,MAAA,wBAAA,GAA2B,YAAa,CAAA,OAAA,EAAS,KAAS,IAAA,EAAA,CAAA;AAChE,IAAA,MAAM,gBAAmB,GAAA,KAAA,GAAQ,KAAM,CAAA,QAAA,EAAa,GAAA,EAAA,CAAA;AAEpD,IAAA,IAAI,6BAA6B,gBAAkB,EAAA;AAClD,MAAA,MAAA,CAAO,KAAK,CAAA,CAAA;AAAA,KACb;AAAA,GACE,EAAA,CAAC,MAAQ,EAAA,KAAK,CAAC,CAAA,CAAA;AAElB,EAAO,OAAA,CAAC,cAAc,MAAM,CAAA,CAAA;AAC7B;;;;"}
package/dist/stats.html CHANGED
@@ -2669,7 +2669,7 @@ var drawChart = (function (exports) {
2669
2669
  </script>
2670
2670
  <script>
2671
2671
  /*<!--*/
2672
- const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.js","children":[{"name":"src/index.ts","uid":"651c-1"}]},{"name":"step/useStep.js","children":[{"name":"src/step/useStep.ts","uid":"651c-3"}]},{"name":"step/Step.js","children":[{"name":"src/step/Step.tsx","uid":"651c-5"}]},{"name":"step/FormStep.js","children":[{"name":"src/step/FormStep.tsx","uid":"651c-7"}]},{"name":"step/StepProvider.js","children":[{"name":"src/step/StepProvider.tsx","uid":"651c-9"}]},{"name":"inputs/MaskedInput/useMaskedInput.js","children":[{"name":"src/inputs/MaskedInput/useMaskedInput.ts","uid":"651c-11"}]},{"name":"inputs/TableInput/addRowOnTab.js","children":[{"name":"src/inputs/TableInput/addRowOnTab.ts","uid":"651c-13"}]},{"name":"date/LocalDatePicker/LocalDatePicker.js","children":[{"name":"src/date/LocalDatePicker/LocalDatePicker.tsx","uid":"651c-15"}]},{"name":"date/LocalMonthSelect/LocalMonthSelect.js","children":[{"name":"src/date/LocalMonthSelect/LocalMonthSelect.tsx","uid":"651c-17"}]},{"name":"date/LocalTimePicker/LocalTimePicker.js","children":[{"name":"src/date/LocalTimePicker/LocalTimePicker.tsx","uid":"651c-19"}]},{"name":"date/MonthYearPicker/MonthYearPicker.js","children":[{"name":"src/date/MonthYearPicker/MonthYearPicker.tsx","uid":"651c-21"}]},{"name":"date/MonthDayPicker/MonthDayPicker.js","children":[{"name":"src/date/MonthDayPicker/MonthDayPicker.tsx","uid":"651c-23"}]},{"name":"form/TForm/TForm.js","children":[{"name":"src/form/TForm/TForm.tsx","uid":"651c-25"}]},{"name":"form/TForm/useTForm.js","children":[{"name":"src/form/TForm/useTForm.tsx","uid":"651c-27"}]},{"name":"inputs/Scriptel/Scriptel.js","children":[{"name":"src/inputs/Scriptel/Scriptel.tsx","uid":"651c-29"}]},{"name":"inputs/Scriptel/withScriptel.js","children":[{"name":"src/inputs/Scriptel/withScriptel.tsx","uid":"651c-31"}]},{"name":"inputs/PhoneInput/PhoneInput.js","children":[{"name":"src/inputs/PhoneInput/PhoneInput.tsx","uid":"651c-33"}]},{"name":"inputs/MaskedInput/MaskedInput.js","children":[{"name":"src/inputs/MaskedInput/MaskedInput.tsx","uid":"651c-35"}]},{"name":"date/YearSelect/YearSelect.js","children":[{"name":"src/date/YearSelect/YearSelect.tsx","uid":"651c-37"}]},{"name":"inputs/ScriptelInput/ScriptelInput.js","children":[{"name":"src/inputs/ScriptelInput/ScriptelInput.tsx","uid":"651c-39"}]},{"name":"inputs/TableInput/TableInput.js","children":[{"name":"src/inputs/TableInput/TableInput.tsx","uid":"651c-41"}]},{"name":"inputs/TableInput/MoneyCell.js","children":[{"name":"src/inputs/TableInput/MoneyCell.tsx","uid":"651c-43"}]},{"name":"inputs/TableInput/MoneyEditCell.js","children":[{"name":"src/inputs/TableInput/MoneyEditCell.tsx","uid":"651c-45"}]},{"name":"inputs/TableInput/LocalDateCell.js","children":[{"name":"src/inputs/TableInput/LocalDateCell.tsx","uid":"651c-47"}]},{"name":"inputs/TableInput/CheckboxEditCell.js","children":[{"name":"src/inputs/TableInput/CheckboxEditCell.tsx","uid":"651c-49"}]},{"name":"inputs/TableInput/LocalDateEditCell.js","children":[{"name":"src/inputs/TableInput/LocalDateEditCell.tsx","uid":"651c-51"}]},{"name":"inputs/TableInput/MoneySumFooter.js","children":[{"name":"src/inputs/TableInput/MoneySumFooter.tsx","uid":"651c-53"}]},{"name":"inputs/TableInput/StringEditCell.js","children":[{"name":"src/inputs/TableInput/StringEditCell.tsx","uid":"651c-55"}]},{"name":"inputs/TableInput/DropdownCell.js","children":[{"name":"src/inputs/TableInput/DropdownCell.tsx","uid":"651c-57"}]},{"name":"inputs/TableInput/HoverCell.js","children":[{"name":"src/inputs/TableInput/HoverCell.tsx","uid":"651c-59"}]},{"name":"inputs/SinInput/SinInput.js","children":[{"name":"src/inputs/SinInput/SinInput.tsx","uid":"651c-61"}]},{"name":"money/MoneyInput/MoneyInput.js","children":[{"name":"src/money/MoneyInput/MoneyInput.tsx","uid":"651c-63"}]},{"name":"money/MoneyCurrencyInput/MoneyCurrencyInput.js","children":[{"name":"src/money/MoneyCurrencyInput/MoneyCurrencyInput.tsx","uid":"651c-65"}]},{"name":"inputs/CreditCardInput/CreditCardInput.js","children":[{"name":"src/inputs/CreditCardInput/CreditCardInput.tsx","uid":"651c-67"}]},{"name":"inputs/RadioGroup/RadioGroup.js","children":[{"name":"src/inputs/RadioGroup/RadioGroup.tsx","uid":"651c-69"}]},{"name":"inputs/Scriptel/scriptel/enums.js","children":[{"name":"src/inputs/Scriptel/scriptel/enums.ts","uid":"651c-71"}]},{"name":"step/stepContext.js","children":[{"name":"src/step/stepContext.ts","uid":"651c-73"}]},{"name":"date/DatePicker/styles.css.js","children":[{"name":"src/date/DatePicker/styles.css","uid":"651c-75"}]},{"name":"inputs/Scriptel/ScriptelContext.js","children":[{"name":"src/inputs/Scriptel/ScriptelContext.ts","uid":"651c-77"}]},{"name":"date/LocalDatePicker/MaskedDateInput.js","children":[{"name":"src/date/LocalDatePicker/MaskedDateInput.tsx","uid":"651c-79"}]},{"name":"date/LocalTimePicker/MaskedTimeInput.js","children":[{"name":"src/date/LocalTimePicker/MaskedTimeInput.tsx","uid":"651c-81"}]},{"name":"inputs/CreditCardInput/styles.css.js","children":[{"name":"src/inputs/CreditCardInput/styles.css","uid":"651c-83"}]},{"name":"inputs/CreditCardInput/CreditCardNumberInput.js","children":[{"name":"src/inputs/CreditCardInput/CreditCardNumberInput.tsx","uid":"651c-85"}]},{"name":"inputs/Scriptel/scriptel/index.js","children":[{"name":"src/inputs/Scriptel/scriptel/index.ts","uid":"651c-87"}]},{"name":"external/style-inject/dist/style-inject.es.js","children":[{"name":"home/darkadept/dev/thx/node_modules/style-inject/dist/style-inject.es.js","uid":"651c-89"}]}],"isRoot":true},"nodeParts":{"651c-1":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"mainUid":"651c-0"},"651c-3":{"renderedLength":113,"gzipLength":106,"brotliLength":82,"mainUid":"651c-2"},"651c-5":{"renderedLength":203,"gzipLength":157,"brotliLength":111,"mainUid":"651c-4"},"651c-7":{"renderedLength":440,"gzipLength":270,"brotliLength":214,"mainUid":"651c-6"},"651c-9":{"renderedLength":3529,"gzipLength":1021,"brotliLength":861,"mainUid":"651c-8"},"651c-11":{"renderedLength":1487,"gzipLength":502,"brotliLength":423,"mainUid":"651c-10"},"651c-13":{"renderedLength":312,"gzipLength":199,"brotliLength":173,"mainUid":"651c-12"},"651c-15":{"renderedLength":2882,"gzipLength":891,"brotliLength":787,"mainUid":"651c-14"},"651c-17":{"renderedLength":1135,"gzipLength":503,"brotliLength":415,"mainUid":"651c-16"},"651c-19":{"renderedLength":1205,"gzipLength":488,"brotliLength":402,"mainUid":"651c-18"},"651c-21":{"renderedLength":1229,"gzipLength":491,"brotliLength":424,"mainUid":"651c-20"},"651c-23":{"renderedLength":1965,"gzipLength":657,"brotliLength":544,"mainUid":"651c-22"},"651c-25":{"renderedLength":600,"gzipLength":307,"brotliLength":267,"mainUid":"651c-24"},"651c-27":{"renderedLength":2930,"gzipLength":959,"brotliLength":816,"mainUid":"651c-26"},"651c-29":{"renderedLength":1275,"gzipLength":476,"brotliLength":406,"mainUid":"651c-28"},"651c-31":{"renderedLength":275,"gzipLength":163,"brotliLength":130,"mainUid":"651c-30"},"651c-33":{"renderedLength":381,"gzipLength":248,"brotliLength":218,"mainUid":"651c-32"},"651c-35":{"renderedLength":390,"gzipLength":237,"brotliLength":203,"mainUid":"651c-34"},"651c-37":{"renderedLength":1553,"gzipLength":580,"brotliLength":461,"mainUid":"651c-36"},"651c-39":{"renderedLength":1963,"gzipLength":648,"brotliLength":547,"mainUid":"651c-38"},"651c-41":{"renderedLength":2788,"gzipLength":828,"brotliLength":734,"mainUid":"651c-40"},"651c-43":{"renderedLength":257,"gzipLength":187,"brotliLength":149,"mainUid":"651c-42"},"651c-45":{"renderedLength":708,"gzipLength":368,"brotliLength":313,"mainUid":"651c-44"},"651c-47":{"renderedLength":264,"gzipLength":191,"brotliLength":154,"mainUid":"651c-46"},"651c-49":{"renderedLength":702,"gzipLength":367,"brotliLength":330,"mainUid":"651c-48"},"651c-51":{"renderedLength":695,"gzipLength":350,"brotliLength":295,"mainUid":"651c-50"},"651c-53":{"renderedLength":414,"gzipLength":261,"brotliLength":219,"mainUid":"651c-52"},"651c-55":{"renderedLength":717,"gzipLength":369,"brotliLength":319,"mainUid":"651c-54"},"651c-57":{"renderedLength":493,"gzipLength":255,"brotliLength":211,"mainUid":"651c-56"},"651c-59":{"renderedLength":403,"gzipLength":245,"brotliLength":195,"mainUid":"651c-58"},"651c-61":{"renderedLength":1144,"gzipLength":530,"brotliLength":462,"mainUid":"651c-60"},"651c-63":{"renderedLength":745,"gzipLength":419,"brotliLength":329,"mainUid":"651c-62"},"651c-65":{"renderedLength":1518,"gzipLength":648,"brotliLength":541,"mainUid":"651c-64"},"651c-67":{"renderedLength":2324,"gzipLength":586,"brotliLength":495,"mainUid":"651c-66"},"651c-69":{"renderedLength":561,"gzipLength":301,"brotliLength":259,"mainUid":"651c-68"},"651c-71":{"renderedLength":937,"gzipLength":292,"brotliLength":231,"mainUid":"651c-70"},"651c-73":{"renderedLength":80,"gzipLength":90,"brotliLength":72,"mainUid":"651c-72"},"651c-75":{"renderedLength":538,"gzipLength":263,"brotliLength":211,"mainUid":"651c-74"},"651c-77":{"renderedLength":46,"gzipLength":60,"brotliLength":45,"mainUid":"651c-76"},"651c-79":{"renderedLength":464,"gzipLength":299,"brotliLength":256,"mainUid":"651c-78"},"651c-81":{"renderedLength":446,"gzipLength":290,"brotliLength":241,"mainUid":"651c-80"},"651c-83":{"renderedLength":78,"gzipLength":92,"brotliLength":79,"mainUid":"651c-82"},"651c-85":{"renderedLength":1713,"gzipLength":687,"brotliLength":585,"mainUid":"651c-84"},"651c-87":{"renderedLength":2530,"gzipLength":860,"brotliLength":739,"mainUid":"651c-86"},"651c-89":{"renderedLength":636,"gzipLength":318,"brotliLength":242,"mainUid":"651c-88"}},"nodeMetas":{"651c-0":{"id":"/src/index.ts","moduleParts":{"index.js":"651c-1"},"imported":[{"uid":"651c-90"},{"uid":"651c-91"},{"uid":"651c-92"},{"uid":"651c-93"},{"uid":"651c-94"},{"uid":"651c-95"},{"uid":"651c-96"},{"uid":"651c-97"},{"uid":"651c-98"},{"uid":"651c-99"},{"uid":"651c-100"},{"uid":"651c-101"},{"uid":"651c-102"},{"uid":"651c-103"},{"uid":"651c-104"},{"uid":"651c-105"},{"uid":"651c-106"},{"uid":"651c-107"}],"importedBy":[],"isEntry":true},"651c-2":{"id":"/src/step/useStep.ts","moduleParts":{"step/useStep.js":"651c-3"},"imported":[{"uid":"651c-108"},{"uid":"651c-72"}],"importedBy":[{"uid":"651c-107"},{"uid":"651c-6"}]},"651c-4":{"id":"/src/step/Step.tsx","moduleParts":{"step/Step.js":"651c-5"},"imported":[{"uid":"651c-108"},{"uid":"651c-110"}],"importedBy":[{"uid":"651c-107"},{"uid":"651c-8"}]},"651c-6":{"id":"/src/step/FormStep.tsx","moduleParts":{"step/FormStep.js":"651c-7"},"imported":[{"uid":"651c-108"},{"uid":"651c-110"},{"uid":"651c-2"}],"importedBy":[{"uid":"651c-107"},{"uid":"651c-8"}]},"651c-8":{"id":"/src/step/StepProvider.tsx","moduleParts":{"step/StepProvider.js":"651c-9"},"imported":[{"uid":"651c-108"},{"uid":"651c-110"},{"uid":"651c-126"},{"uid":"651c-111"},{"uid":"651c-6"},{"uid":"651c-4"},{"uid":"651c-72"}],"importedBy":[{"uid":"651c-107"}]},"651c-10":{"id":"/src/inputs/MaskedInput/useMaskedInput.ts","moduleParts":{"inputs/MaskedInput/useMaskedInput.js":"651c-11"},"imported":[{"uid":"651c-110"},{"uid":"651c-117"},{"uid":"651c-108"},{"uid":"651c-118"}],"importedBy":[{"uid":"651c-97"},{"uid":"651c-34"},{"uid":"651c-60"},{"uid":"651c-84"}]},"651c-12":{"id":"/src/inputs/TableInput/addRowOnTab.ts","moduleParts":{"inputs/TableInput/addRowOnTab.js":"651c-13"},"imported":[],"importedBy":[{"uid":"651c-104"},{"uid":"651c-44"},{"uid":"651c-48"},{"uid":"651c-54"}]},"651c-14":{"id":"/src/date/LocalDatePicker/LocalDatePicker.tsx","moduleParts":{"date/LocalDatePicker/LocalDatePicker.js":"651c-15"},"imported":[{"uid":"651c-108"},{"uid":"651c-109"},{"uid":"651c-110"},{"uid":"651c-111"},{"uid":"651c-112"},{"uid":"651c-74"},{"uid":"651c-78"}],"importedBy":[{"uid":"651c-90"}]},"651c-16":{"id":"/src/date/LocalMonthSelect/LocalMonthSelect.tsx","moduleParts":{"date/LocalMonthSelect/LocalMonthSelect.js":"651c-17"},"imported":[{"uid":"651c-108"},{"uid":"651c-113"},{"uid":"651c-110"},{"uid":"651c-111"}],"importedBy":[{"uid":"651c-91"}]},"651c-18":{"id":"/src/date/LocalTimePicker/LocalTimePicker.tsx","moduleParts":{"date/LocalTimePicker/LocalTimePicker.js":"651c-19"},"imported":[{"uid":"651c-108"},{"uid":"651c-113"},{"uid":"651c-109"},{"uid":"651c-110"},{"uid":"651c-112"},{"uid":"651c-80"}],"importedBy":[{"uid":"651c-92"}]},"651c-20":{"id":"/src/date/MonthYearPicker/MonthYearPicker.tsx","moduleParts":{"date/MonthYearPicker/MonthYearPicker.js":"651c-21"},"imported":[{"uid":"651c-108"},{"uid":"651c-113"},{"uid":"651c-109"},{"uid":"651c-110"},{"uid":"651c-111"},{"uid":"651c-112"}],"importedBy":[{"uid":"651c-94"}]},"651c-22":{"id":"/src/date/MonthDayPicker/MonthDayPicker.tsx","moduleParts":{"date/MonthDayPicker/MonthDayPicker.js":"651c-23"},"imported":[{"uid":"651c-108"},{"uid":"651c-109"},{"uid":"651c-110"},{"uid":"651c-111"},{"uid":"651c-112"}],"importedBy":[{"uid":"651c-93"}]},"651c-24":{"id":"/src/form/TForm/TForm.tsx","moduleParts":{"form/TForm/TForm.js":"651c-25"},"imported":[{"uid":"651c-108"},{"uid":"651c-110"},{"uid":"651c-114"},{"uid":"651c-26"}],"importedBy":[{"uid":"651c-96"}]},"651c-26":{"id":"/src/form/TForm/useTForm.tsx","moduleParts":{"form/TForm/useTForm.js":"651c-27"},"imported":[{"uid":"651c-108"},{"uid":"651c-115"},{"uid":"651c-114"},{"uid":"651c-116"},{"uid":"651c-111"}],"importedBy":[{"uid":"651c-96"},{"uid":"651c-24"}]},"651c-28":{"id":"/src/inputs/Scriptel/Scriptel.tsx","moduleParts":{"inputs/Scriptel/Scriptel.js":"651c-29"},"imported":[{"uid":"651c-108"},{"uid":"651c-110"},{"uid":"651c-76"},{"uid":"651c-86"}],"importedBy":[{"uid":"651c-99"},{"uid":"651c-30"}]},"651c-30":{"id":"/src/inputs/Scriptel/withScriptel.tsx","moduleParts":{"inputs/Scriptel/withScriptel.js":"651c-31"},"imported":[{"uid":"651c-108"},{"uid":"651c-28"}],"importedBy":[{"uid":"651c-99"}]},"651c-32":{"id":"/src/inputs/PhoneInput/PhoneInput.tsx","moduleParts":{"inputs/PhoneInput/PhoneInput.js":"651c-33"},"imported":[{"uid":"651c-108"},{"uid":"651c-110"},{"uid":"651c-97"}],"importedBy":[{"uid":"651c-101"}]},"651c-34":{"id":"/src/inputs/MaskedInput/MaskedInput.tsx","moduleParts":{"inputs/MaskedInput/MaskedInput.js":"651c-35"},"imported":[{"uid":"651c-108"},{"uid":"651c-110"},{"uid":"651c-111"},{"uid":"651c-10"}],"importedBy":[{"uid":"651c-97"}]},"651c-36":{"id":"/src/date/YearSelect/YearSelect.tsx","moduleParts":{"date/YearSelect/YearSelect.js":"651c-37"},"imported":[{"uid":"651c-108"},{"uid":"651c-110"},{"uid":"651c-111"}],"importedBy":[{"uid":"651c-95"}]},"651c-38":{"id":"/src/inputs/ScriptelInput/ScriptelInput.tsx","moduleParts":{"inputs/ScriptelInput/ScriptelInput.js":"651c-39"},"imported":[{"uid":"651c-108"},{"uid":"651c-110"},{"uid":"651c-111"},{"uid":"651c-76"}],"importedBy":[{"uid":"651c-100"}]},"651c-40":{"id":"/src/inputs/TableInput/TableInput.tsx","moduleParts":{"inputs/TableInput/TableInput.js":"651c-41"},"imported":[{"uid":"651c-108"},{"uid":"651c-110"},{"uid":"651c-114"},{"uid":"651c-122"},{"uid":"651c-111"}],"importedBy":[{"uid":"651c-104"}]},"651c-42":{"id":"/src/inputs/TableInput/MoneyCell.tsx","moduleParts":{"inputs/TableInput/MoneyCell.js":"651c-43"},"imported":[{"uid":"651c-108"},{"uid":"651c-123"}],"importedBy":[{"uid":"651c-104"}]},"651c-44":{"id":"/src/inputs/TableInput/MoneyEditCell.tsx","moduleParts":{"inputs/TableInput/MoneyEditCell.js":"651c-45"},"imported":[{"uid":"651c-108"},{"uid":"651c-110"},{"uid":"651c-105"},{"uid":"651c-12"}],"importedBy":[{"uid":"651c-104"}]},"651c-46":{"id":"/src/inputs/TableInput/LocalDateCell.tsx","moduleParts":{"inputs/TableInput/LocalDateCell.js":"651c-47"},"imported":[{"uid":"651c-108"},{"uid":"651c-109"}],"importedBy":[{"uid":"651c-104"}]},"651c-48":{"id":"/src/inputs/TableInput/CheckboxEditCell.tsx","moduleParts":{"inputs/TableInput/CheckboxEditCell.js":"651c-49"},"imported":[{"uid":"651c-108"},{"uid":"651c-110"},{"uid":"651c-111"},{"uid":"651c-12"}],"importedBy":[{"uid":"651c-104"}]},"651c-50":{"id":"/src/inputs/TableInput/LocalDateEditCell.tsx","moduleParts":{"inputs/TableInput/LocalDateEditCell.js":"651c-51"},"imported":[{"uid":"651c-108"},{"uid":"651c-110"},{"uid":"651c-90"}],"importedBy":[{"uid":"651c-104"}]},"651c-52":{"id":"/src/inputs/TableInput/MoneySumFooter.tsx","moduleParts":{"inputs/TableInput/MoneySumFooter.js":"651c-53"},"imported":[{"uid":"651c-108"},{"uid":"651c-123"}],"importedBy":[{"uid":"651c-104"}]},"651c-54":{"id":"/src/inputs/TableInput/StringEditCell.tsx","moduleParts":{"inputs/TableInput/StringEditCell.js":"651c-55"},"imported":[{"uid":"651c-108"},{"uid":"651c-110"},{"uid":"651c-111"},{"uid":"651c-12"}],"importedBy":[{"uid":"651c-104"}]},"651c-56":{"id":"/src/inputs/TableInput/DropdownCell.tsx","moduleParts":{"inputs/TableInput/DropdownCell.js":"651c-57"},"imported":[{"uid":"651c-108"},{"uid":"651c-111"}],"importedBy":[{"uid":"651c-104"}]},"651c-58":{"id":"/src/inputs/TableInput/HoverCell.tsx","moduleParts":{"inputs/TableInput/HoverCell.js":"651c-59"},"imported":[{"uid":"651c-108"},{"uid":"651c-110"}],"importedBy":[{"uid":"651c-104"}]},"651c-60":{"id":"/src/inputs/SinInput/SinInput.tsx","moduleParts":{"inputs/SinInput/SinInput.js":"651c-61"},"imported":[{"uid":"651c-108"},{"uid":"651c-110"},{"uid":"651c-111"},{"uid":"651c-121"},{"uid":"651c-10"}],"importedBy":[{"uid":"651c-103"}]},"651c-62":{"id":"/src/money/MoneyInput/MoneyInput.tsx","moduleParts":{"money/MoneyInput/MoneyInput.js":"651c-63"},"imported":[{"uid":"651c-108"},{"uid":"651c-123"},{"uid":"651c-110"},{"uid":"651c-124"},{"uid":"651c-111"}],"importedBy":[{"uid":"651c-105"}]},"651c-64":{"id":"/src/money/MoneyCurrencyInput/MoneyCurrencyInput.tsx","moduleParts":{"money/MoneyCurrencyInput/MoneyCurrencyInput.js":"651c-65"},"imported":[{"uid":"651c-108"},{"uid":"651c-123"},{"uid":"651c-110"},{"uid":"651c-125"},{"uid":"651c-124"},{"uid":"651c-111"}],"importedBy":[{"uid":"651c-106"}]},"651c-66":{"id":"/src/inputs/CreditCardInput/CreditCardInput.tsx","moduleParts":{"inputs/CreditCardInput/CreditCardInput.js":"651c-67"},"imported":[{"uid":"651c-108"},{"uid":"651c-109"},{"uid":"651c-110"},{"uid":"651c-119"},{"uid":"651c-120"},{"uid":"651c-111"},{"uid":"651c-94"},{"uid":"651c-84"},{"uid":"651c-82"}],"importedBy":[{"uid":"651c-102"}]},"651c-68":{"id":"/src/inputs/RadioGroup/RadioGroup.tsx","moduleParts":{"inputs/RadioGroup/RadioGroup.js":"651c-69"},"imported":[{"uid":"651c-108"},{"uid":"651c-110"},{"uid":"651c-111"}],"importedBy":[{"uid":"651c-98"}]},"651c-70":{"id":"/src/inputs/Scriptel/scriptel/enums.ts","moduleParts":{"inputs/Scriptel/scriptel/enums.js":"651c-71"},"imported":[],"importedBy":[{"uid":"651c-99"},{"uid":"651c-86"}]},"651c-72":{"id":"/src/step/stepContext.ts","moduleParts":{"step/stepContext.js":"651c-73"},"imported":[{"uid":"651c-108"}],"importedBy":[{"uid":"651c-2"},{"uid":"651c-8"}]},"651c-74":{"id":"/src/date/DatePicker/styles.css","moduleParts":{"date/DatePicker/styles.css.js":"651c-75"},"imported":[{"uid":"651c-88"}],"importedBy":[{"uid":"651c-14"},{"uid":"651c-112"}]},"651c-76":{"id":"/src/inputs/Scriptel/ScriptelContext.ts","moduleParts":{"inputs/Scriptel/ScriptelContext.js":"651c-77"},"imported":[{"uid":"651c-108"}],"importedBy":[{"uid":"651c-28"},{"uid":"651c-38"}]},"651c-78":{"id":"/src/date/LocalDatePicker/MaskedDateInput.tsx","moduleParts":{"date/LocalDatePicker/MaskedDateInput.js":"651c-79"},"imported":[{"uid":"651c-108"},{"uid":"651c-110"},{"uid":"651c-97"}],"importedBy":[{"uid":"651c-14"}]},"651c-80":{"id":"/src/date/LocalTimePicker/MaskedTimeInput.tsx","moduleParts":{"date/LocalTimePicker/MaskedTimeInput.js":"651c-81"},"imported":[{"uid":"651c-108"},{"uid":"651c-110"},{"uid":"651c-97"}],"importedBy":[{"uid":"651c-18"}]},"651c-82":{"id":"/src/inputs/CreditCardInput/styles.css","moduleParts":{"inputs/CreditCardInput/styles.css.js":"651c-83"},"imported":[{"uid":"651c-88"}],"importedBy":[{"uid":"651c-66"}]},"651c-84":{"id":"/src/inputs/CreditCardInput/CreditCardNumberInput.tsx","moduleParts":{"inputs/CreditCardInput/CreditCardNumberInput.js":"651c-85"},"imported":[{"uid":"651c-108"},{"uid":"651c-129"},{"uid":"651c-110"},{"uid":"651c-130"},{"uid":"651c-111"},{"uid":"651c-10"}],"importedBy":[{"uid":"651c-66"}]},"651c-86":{"id":"/src/inputs/Scriptel/scriptel/index.ts","moduleParts":{"inputs/Scriptel/scriptel/index.js":"651c-87"},"imported":[{"uid":"651c-110"},{"uid":"651c-128"},{"uid":"651c-70"}],"importedBy":[{"uid":"651c-28"}]},"651c-88":{"id":"/home/darkadept/dev/thx/node_modules/style-inject/dist/style-inject.es.js","moduleParts":{"external/style-inject/dist/style-inject.es.js":"651c-89"},"imported":[],"importedBy":[{"uid":"651c-74"},{"uid":"651c-82"}]},"651c-90":{"id":"/src/date/LocalDatePicker/index.ts","moduleParts":{},"imported":[{"uid":"651c-14"}],"importedBy":[{"uid":"651c-0"},{"uid":"651c-50"}]},"651c-91":{"id":"/src/date/LocalMonthSelect/index.ts","moduleParts":{},"imported":[{"uid":"651c-16"}],"importedBy":[{"uid":"651c-0"}]},"651c-92":{"id":"/src/date/LocalTimePicker/index.ts","moduleParts":{},"imported":[{"uid":"651c-18"}],"importedBy":[{"uid":"651c-0"}]},"651c-93":{"id":"/src/date/MonthDayPicker/index.ts","moduleParts":{},"imported":[{"uid":"651c-22"}],"importedBy":[{"uid":"651c-0"}]},"651c-94":{"id":"/src/date/MonthYearPicker/index.ts","moduleParts":{},"imported":[{"uid":"651c-20"}],"importedBy":[{"uid":"651c-0"},{"uid":"651c-66"}]},"651c-95":{"id":"/src/date/YearSelect/index.ts","moduleParts":{},"imported":[{"uid":"651c-36"}],"importedBy":[{"uid":"651c-0"}]},"651c-96":{"id":"/src/form/TForm/index.ts","moduleParts":{},"imported":[{"uid":"651c-24"},{"uid":"651c-26"}],"importedBy":[{"uid":"651c-0"}]},"651c-97":{"id":"/src/inputs/MaskedInput/index.ts","moduleParts":{},"imported":[{"uid":"651c-34"},{"uid":"651c-10"}],"importedBy":[{"uid":"651c-0"},{"uid":"651c-32"},{"uid":"651c-78"},{"uid":"651c-80"}]},"651c-98":{"id":"/src/inputs/RadioGroup/index.ts","moduleParts":{},"imported":[{"uid":"651c-68"}],"importedBy":[{"uid":"651c-0"}]},"651c-99":{"id":"/src/inputs/Scriptel/index.ts","moduleParts":{},"imported":[{"uid":"651c-28"},{"uid":"651c-30"},{"uid":"651c-70"}],"importedBy":[{"uid":"651c-0"}]},"651c-100":{"id":"/src/inputs/ScriptelInput/index.ts","moduleParts":{},"imported":[{"uid":"651c-38"}],"importedBy":[{"uid":"651c-0"}]},"651c-101":{"id":"/src/inputs/PhoneInput/index.ts","moduleParts":{},"imported":[{"uid":"651c-32"}],"importedBy":[{"uid":"651c-0"}]},"651c-102":{"id":"/src/inputs/CreditCardInput/index.ts","moduleParts":{},"imported":[{"uid":"651c-66"}],"importedBy":[{"uid":"651c-0"}]},"651c-103":{"id":"/src/inputs/SinInput/index.ts","moduleParts":{},"imported":[{"uid":"651c-60"}],"importedBy":[{"uid":"651c-0"}]},"651c-104":{"id":"/src/inputs/TableInput/index.ts","moduleParts":{},"imported":[{"uid":"651c-40"},{"uid":"651c-42"},{"uid":"651c-44"},{"uid":"651c-46"},{"uid":"651c-48"},{"uid":"651c-50"},{"uid":"651c-52"},{"uid":"651c-54"},{"uid":"651c-56"},{"uid":"651c-58"},{"uid":"651c-12"}],"importedBy":[{"uid":"651c-0"}]},"651c-105":{"id":"/src/money/MoneyInput/index.ts","moduleParts":{},"imported":[{"uid":"651c-62"}],"importedBy":[{"uid":"651c-0"},{"uid":"651c-44"}]},"651c-106":{"id":"/src/money/MoneyCurrencyInput/index.ts","moduleParts":{},"imported":[{"uid":"651c-64"}],"importedBy":[{"uid":"651c-0"}]},"651c-107":{"id":"/src/step/index.ts","moduleParts":{},"imported":[{"uid":"651c-4"},{"uid":"651c-2"},{"uid":"651c-6"},{"uid":"651c-8"}],"importedBy":[{"uid":"651c-0"}]},"651c-108":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"651c-14"},{"uid":"651c-16"},{"uid":"651c-18"},{"uid":"651c-22"},{"uid":"651c-20"},{"uid":"651c-36"},{"uid":"651c-24"},{"uid":"651c-26"},{"uid":"651c-34"},{"uid":"651c-10"},{"uid":"651c-68"},{"uid":"651c-28"},{"uid":"651c-30"},{"uid":"651c-38"},{"uid":"651c-32"},{"uid":"651c-66"},{"uid":"651c-60"},{"uid":"651c-40"},{"uid":"651c-42"},{"uid":"651c-44"},{"uid":"651c-46"},{"uid":"651c-48"},{"uid":"651c-50"},{"uid":"651c-52"},{"uid":"651c-54"},{"uid":"651c-56"},{"uid":"651c-58"},{"uid":"651c-62"},{"uid":"651c-64"},{"uid":"651c-4"},{"uid":"651c-2"},{"uid":"651c-6"},{"uid":"651c-8"},{"uid":"651c-78"},{"uid":"651c-80"},{"uid":"651c-76"},{"uid":"651c-84"},{"uid":"651c-72"}],"isExternal":true},"651c-109":{"id":"@thx/date","moduleParts":{},"imported":[],"importedBy":[{"uid":"651c-14"},{"uid":"651c-18"},{"uid":"651c-22"},{"uid":"651c-20"},{"uid":"651c-66"},{"uid":"651c-46"}],"isExternal":true},"651c-110":{"id":"debug","moduleParts":{},"imported":[],"importedBy":[{"uid":"651c-14"},{"uid":"651c-16"},{"uid":"651c-18"},{"uid":"651c-22"},{"uid":"651c-20"},{"uid":"651c-36"},{"uid":"651c-24"},{"uid":"651c-34"},{"uid":"651c-10"},{"uid":"651c-68"},{"uid":"651c-28"},{"uid":"651c-38"},{"uid":"651c-32"},{"uid":"651c-66"},{"uid":"651c-60"},{"uid":"651c-40"},{"uid":"651c-44"},{"uid":"651c-48"},{"uid":"651c-50"},{"uid":"651c-54"},{"uid":"651c-58"},{"uid":"651c-62"},{"uid":"651c-64"},{"uid":"651c-4"},{"uid":"651c-6"},{"uid":"651c-8"},{"uid":"651c-78"},{"uid":"651c-80"},{"uid":"651c-86"},{"uid":"651c-84"}],"isExternal":true},"651c-111":{"id":"semantic-ui-react","moduleParts":{},"imported":[],"importedBy":[{"uid":"651c-14"},{"uid":"651c-16"},{"uid":"651c-22"},{"uid":"651c-20"},{"uid":"651c-36"},{"uid":"651c-26"},{"uid":"651c-34"},{"uid":"651c-68"},{"uid":"651c-38"},{"uid":"651c-66"},{"uid":"651c-60"},{"uid":"651c-40"},{"uid":"651c-48"},{"uid":"651c-54"},{"uid":"651c-56"},{"uid":"651c-62"},{"uid":"651c-64"},{"uid":"651c-8"},{"uid":"651c-84"}],"isExternal":true},"651c-112":{"id":"/src/date/DatePicker/index.ts","moduleParts":{},"imported":[{"uid":"651c-127"},{"uid":"651c-74"}],"importedBy":[{"uid":"651c-14"},{"uid":"651c-18"},{"uid":"651c-22"},{"uid":"651c-20"}]},"651c-113":{"id":"@js-joda/core","moduleParts":{},"imported":[],"importedBy":[{"uid":"651c-16"},{"uid":"651c-18"},{"uid":"651c-20"}],"isExternal":true},"651c-114":{"id":"formik","moduleParts":{},"imported":[],"importedBy":[{"uid":"651c-24"},{"uid":"651c-26"},{"uid":"651c-40"}],"isExternal":true},"651c-115":{"id":"flat","moduleParts":{},"imported":[],"importedBy":[{"uid":"651c-26"}],"isExternal":true},"651c-116":{"id":"lodash-es","moduleParts":{},"imported":[],"importedBy":[{"uid":"651c-26"}],"isExternal":true},"651c-117":{"id":"inputmask","moduleParts":{},"imported":[],"importedBy":[{"uid":"651c-10"}],"isExternal":true},"651c-118":{"id":"use-deep-compare-effect","moduleParts":{},"imported":[],"importedBy":[{"uid":"651c-10"}],"isExternal":true},"651c-119":{"id":"react-credit-cards","moduleParts":{},"imported":[],"importedBy":[{"uid":"651c-66"}],"isExternal":true},"651c-120":{"id":"react-credit-cards/es/styles-compiled.css","moduleParts":{},"imported":[],"importedBy":[{"uid":"651c-66"}],"isExternal":true},"651c-121":{"id":"social-insurance-number","moduleParts":{},"imported":[],"importedBy":[{"uid":"651c-60"}],"isExternal":true},"651c-122":{"id":"react-table","moduleParts":{},"imported":[],"importedBy":[{"uid":"651c-40"}],"isExternal":true},"651c-123":{"id":"@thx/money","moduleParts":{},"imported":[],"importedBy":[{"uid":"651c-42"},{"uid":"651c-52"},{"uid":"651c-62"},{"uid":"651c-64"}],"isExternal":true},"651c-124":{"id":"react-currency-input-field","moduleParts":{},"imported":[],"importedBy":[{"uid":"651c-62"},{"uid":"651c-64"}],"isExternal":true},"651c-125":{"id":"js-money","moduleParts":{},"imported":[],"importedBy":[{"uid":"651c-64"}],"isExternal":true},"651c-126":{"id":"react-router-dom","moduleParts":{},"imported":[],"importedBy":[{"uid":"651c-8"}],"isExternal":true},"651c-127":{"id":"react-datepicker","moduleParts":{},"imported":[],"importedBy":[{"uid":"651c-112"}],"isExternal":true},"651c-128":{"id":"eventemitter3","moduleParts":{},"imported":[],"importedBy":[{"uid":"651c-86"}],"isExternal":true},"651c-129":{"id":"credit-card-type","moduleParts":{},"imported":[],"importedBy":[{"uid":"651c-84"}],"isExternal":true},"651c-130":{"id":"luhn","moduleParts":{},"imported":[],"importedBy":[{"uid":"651c-84"}],"isExternal":true}},"env":{"rollup":"2.70.1"},"options":{"gzip":true,"brotli":true,"sourcemap":false}};
2672
+ const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.js","children":[{"name":"src/index.ts","uid":"944c-1"}]},{"name":"step/useStep.js","children":[{"name":"src/step/useStep.ts","uid":"944c-3"}]},{"name":"step/Step.js","children":[{"name":"src/step/Step.tsx","uid":"944c-5"}]},{"name":"step/FormStep.js","children":[{"name":"src/step/FormStep.tsx","uid":"944c-7"}]},{"name":"step/StepProvider.js","children":[{"name":"src/step/StepProvider.tsx","uid":"944c-9"}]},{"name":"inputs/MaskedInput/useMaskedInput.js","children":[{"name":"src/inputs/MaskedInput/useMaskedInput.ts","uid":"944c-11"}]},{"name":"date/LocalDatePicker/LocalDatePicker.js","children":[{"name":"src/date/LocalDatePicker/LocalDatePicker.tsx","uid":"944c-13"}]},{"name":"date/LocalMonthSelect/LocalMonthSelect.js","children":[{"name":"src/date/LocalMonthSelect/LocalMonthSelect.tsx","uid":"944c-15"}]},{"name":"date/MonthDayPicker/MonthDayPicker.js","children":[{"name":"src/date/MonthDayPicker/MonthDayPicker.tsx","uid":"944c-17"}]},{"name":"date/MonthYearPicker/MonthYearPicker.js","children":[{"name":"src/date/MonthYearPicker/MonthYearPicker.tsx","uid":"944c-19"}]},{"name":"date/LocalTimePicker/LocalTimePicker.js","children":[{"name":"src/date/LocalTimePicker/LocalTimePicker.tsx","uid":"944c-21"}]},{"name":"date/YearSelect/YearSelect.js","children":[{"name":"src/date/YearSelect/YearSelect.tsx","uid":"944c-23"}]},{"name":"inputs/MaskedInput/MaskedInput.js","children":[{"name":"src/inputs/MaskedInput/MaskedInput.tsx","uid":"944c-25"}]},{"name":"form/TForm/TForm.js","children":[{"name":"src/form/TForm/TForm.tsx","uid":"944c-27"}]},{"name":"form/TForm/useTForm.js","children":[{"name":"src/form/TForm/useTForm.tsx","uid":"944c-29"}]},{"name":"inputs/RadioGroup/RadioGroup.js","children":[{"name":"src/inputs/RadioGroup/RadioGroup.tsx","uid":"944c-31"}]},{"name":"inputs/Scriptel/Scriptel.js","children":[{"name":"src/inputs/Scriptel/Scriptel.tsx","uid":"944c-33"}]},{"name":"inputs/Scriptel/withScriptel.js","children":[{"name":"src/inputs/Scriptel/withScriptel.tsx","uid":"944c-35"}]},{"name":"inputs/ScriptelInput/ScriptelInput.js","children":[{"name":"src/inputs/ScriptelInput/ScriptelInput.tsx","uid":"944c-37"}]},{"name":"inputs/CreditCardInput/CreditCardInput.js","children":[{"name":"src/inputs/CreditCardInput/CreditCardInput.tsx","uid":"944c-39"}]},{"name":"inputs/PhoneInput/PhoneInput.js","children":[{"name":"src/inputs/PhoneInput/PhoneInput.tsx","uid":"944c-41"}]},{"name":"inputs/TableInput/addRowOnTab.js","children":[{"name":"src/inputs/TableInput/addRowOnTab.ts","uid":"944c-43"}]},{"name":"inputs/SinInput/SinInput.js","children":[{"name":"src/inputs/SinInput/SinInput.tsx","uid":"944c-45"}]},{"name":"money/MoneyInput/MoneyInput.js","children":[{"name":"src/money/MoneyInput/MoneyInput.tsx","uid":"944c-47"}]},{"name":"inputs/TableInput/TableInput.js","children":[{"name":"src/inputs/TableInput/TableInput.tsx","uid":"944c-49"}]},{"name":"inputs/TableInput/MoneyCell.js","children":[{"name":"src/inputs/TableInput/MoneyCell.tsx","uid":"944c-51"}]},{"name":"inputs/TableInput/MoneyEditCell.js","children":[{"name":"src/inputs/TableInput/MoneyEditCell.tsx","uid":"944c-53"}]},{"name":"inputs/TableInput/LocalDateCell.js","children":[{"name":"src/inputs/TableInput/LocalDateCell.tsx","uid":"944c-55"}]},{"name":"inputs/TableInput/CheckboxEditCell.js","children":[{"name":"src/inputs/TableInput/CheckboxEditCell.tsx","uid":"944c-57"}]},{"name":"inputs/TableInput/LocalDateEditCell.js","children":[{"name":"src/inputs/TableInput/LocalDateEditCell.tsx","uid":"944c-59"}]},{"name":"inputs/TableInput/MoneySumFooter.js","children":[{"name":"src/inputs/TableInput/MoneySumFooter.tsx","uid":"944c-61"}]},{"name":"inputs/TableInput/StringEditCell.js","children":[{"name":"src/inputs/TableInput/StringEditCell.tsx","uid":"944c-63"}]},{"name":"inputs/TableInput/DropdownCell.js","children":[{"name":"src/inputs/TableInput/DropdownCell.tsx","uid":"944c-65"}]},{"name":"inputs/TableInput/HoverCell.js","children":[{"name":"src/inputs/TableInput/HoverCell.tsx","uid":"944c-67"}]},{"name":"money/MoneyCurrencyInput/MoneyCurrencyInput.js","children":[{"name":"src/money/MoneyCurrencyInput/MoneyCurrencyInput.tsx","uid":"944c-69"}]},{"name":"inputs/Scriptel/scriptel/enums.js","children":[{"name":"src/inputs/Scriptel/scriptel/enums.ts","uid":"944c-71"}]},{"name":"step/stepContext.js","children":[{"name":"src/step/stepContext.ts","uid":"944c-73"}]},{"name":"date/DatePicker/styles.css.js","children":[{"name":"src/date/DatePicker/styles.css","uid":"944c-75"}]},{"name":"inputs/CreditCardInput/styles.css.js","children":[{"name":"src/inputs/CreditCardInput/styles.css","uid":"944c-77"}]},{"name":"money/useMoneyInput.js","children":[{"name":"src/money/useMoneyInput.ts","uid":"944c-79"}]},{"name":"date/LocalDatePicker/MaskedDateInput.js","children":[{"name":"src/date/LocalDatePicker/MaskedDateInput.tsx","uid":"944c-81"}]},{"name":"inputs/Scriptel/ScriptelContext.js","children":[{"name":"src/inputs/Scriptel/ScriptelContext.ts","uid":"944c-83"}]},{"name":"date/LocalTimePicker/MaskedTimeInput.js","children":[{"name":"src/date/LocalTimePicker/MaskedTimeInput.tsx","uid":"944c-85"}]},{"name":"inputs/CreditCardInput/CreditCardNumberInput.js","children":[{"name":"src/inputs/CreditCardInput/CreditCardNumberInput.tsx","uid":"944c-87"}]},{"name":"inputs/Scriptel/scriptel/index.js","children":[{"name":"src/inputs/Scriptel/scriptel/index.ts","uid":"944c-89"}]},{"name":"external/style-inject/dist/style-inject.es.js","children":[{"name":"home/mike/dev/thx/node_modules/style-inject/dist/style-inject.es.js","uid":"944c-91"}]}],"isRoot":true},"nodeParts":{"944c-1":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"mainUid":"944c-0"},"944c-3":{"renderedLength":113,"gzipLength":106,"brotliLength":82,"mainUid":"944c-2"},"944c-5":{"renderedLength":203,"gzipLength":157,"brotliLength":111,"mainUid":"944c-4"},"944c-7":{"renderedLength":440,"gzipLength":270,"brotliLength":214,"mainUid":"944c-6"},"944c-9":{"renderedLength":3529,"gzipLength":1021,"brotliLength":861,"mainUid":"944c-8"},"944c-11":{"renderedLength":1487,"gzipLength":502,"brotliLength":423,"mainUid":"944c-10"},"944c-13":{"renderedLength":2882,"gzipLength":891,"brotliLength":787,"mainUid":"944c-12"},"944c-15":{"renderedLength":1135,"gzipLength":503,"brotliLength":415,"mainUid":"944c-14"},"944c-17":{"renderedLength":1965,"gzipLength":657,"brotliLength":544,"mainUid":"944c-16"},"944c-19":{"renderedLength":1229,"gzipLength":491,"brotliLength":424,"mainUid":"944c-18"},"944c-21":{"renderedLength":1205,"gzipLength":488,"brotliLength":402,"mainUid":"944c-20"},"944c-23":{"renderedLength":1553,"gzipLength":580,"brotliLength":461,"mainUid":"944c-22"},"944c-25":{"renderedLength":390,"gzipLength":237,"brotliLength":203,"mainUid":"944c-24"},"944c-27":{"renderedLength":600,"gzipLength":307,"brotliLength":267,"mainUid":"944c-26"},"944c-29":{"renderedLength":2930,"gzipLength":959,"brotliLength":816,"mainUid":"944c-28"},"944c-31":{"renderedLength":561,"gzipLength":301,"brotliLength":259,"mainUid":"944c-30"},"944c-33":{"renderedLength":1275,"gzipLength":476,"brotliLength":406,"mainUid":"944c-32"},"944c-35":{"renderedLength":275,"gzipLength":163,"brotliLength":130,"mainUid":"944c-34"},"944c-37":{"renderedLength":1963,"gzipLength":648,"brotliLength":547,"mainUid":"944c-36"},"944c-39":{"renderedLength":2324,"gzipLength":586,"brotliLength":495,"mainUid":"944c-38"},"944c-41":{"renderedLength":381,"gzipLength":248,"brotliLength":218,"mainUid":"944c-40"},"944c-43":{"renderedLength":312,"gzipLength":199,"brotliLength":173,"mainUid":"944c-42"},"944c-45":{"renderedLength":1144,"gzipLength":530,"brotliLength":462,"mainUid":"944c-44"},"944c-47":{"renderedLength":778,"gzipLength":392,"brotliLength":329,"mainUid":"944c-46"},"944c-49":{"renderedLength":2788,"gzipLength":828,"brotliLength":734,"mainUid":"944c-48"},"944c-51":{"renderedLength":257,"gzipLength":187,"brotliLength":149,"mainUid":"944c-50"},"944c-53":{"renderedLength":708,"gzipLength":368,"brotliLength":313,"mainUid":"944c-52"},"944c-55":{"renderedLength":264,"gzipLength":191,"brotliLength":154,"mainUid":"944c-54"},"944c-57":{"renderedLength":702,"gzipLength":367,"brotliLength":330,"mainUid":"944c-56"},"944c-59":{"renderedLength":695,"gzipLength":350,"brotliLength":295,"mainUid":"944c-58"},"944c-61":{"renderedLength":414,"gzipLength":261,"brotliLength":219,"mainUid":"944c-60"},"944c-63":{"renderedLength":717,"gzipLength":369,"brotliLength":319,"mainUid":"944c-62"},"944c-65":{"renderedLength":493,"gzipLength":255,"brotliLength":211,"mainUid":"944c-64"},"944c-67":{"renderedLength":403,"gzipLength":245,"brotliLength":195,"mainUid":"944c-66"},"944c-69":{"renderedLength":1575,"gzipLength":642,"brotliLength":536,"mainUid":"944c-68"},"944c-71":{"renderedLength":937,"gzipLength":292,"brotliLength":231,"mainUid":"944c-70"},"944c-73":{"renderedLength":80,"gzipLength":90,"brotliLength":72,"mainUid":"944c-72"},"944c-75":{"renderedLength":538,"gzipLength":263,"brotliLength":211,"mainUid":"944c-74"},"944c-77":{"renderedLength":78,"gzipLength":92,"brotliLength":79,"mainUid":"944c-76"},"944c-79":{"renderedLength":2089,"gzipLength":749,"brotliLength":637,"mainUid":"944c-78"},"944c-81":{"renderedLength":464,"gzipLength":299,"brotliLength":256,"mainUid":"944c-80"},"944c-83":{"renderedLength":46,"gzipLength":60,"brotliLength":45,"mainUid":"944c-82"},"944c-85":{"renderedLength":446,"gzipLength":290,"brotliLength":241,"mainUid":"944c-84"},"944c-87":{"renderedLength":1713,"gzipLength":687,"brotliLength":585,"mainUid":"944c-86"},"944c-89":{"renderedLength":2530,"gzipLength":860,"brotliLength":739,"mainUid":"944c-88"},"944c-91":{"renderedLength":636,"gzipLength":318,"brotliLength":242,"mainUid":"944c-90"}},"nodeMetas":{"944c-0":{"id":"/src/index.ts","moduleParts":{"index.js":"944c-1"},"imported":[{"uid":"944c-92"},{"uid":"944c-93"},{"uid":"944c-94"},{"uid":"944c-95"},{"uid":"944c-96"},{"uid":"944c-97"},{"uid":"944c-98"},{"uid":"944c-99"},{"uid":"944c-100"},{"uid":"944c-101"},{"uid":"944c-102"},{"uid":"944c-103"},{"uid":"944c-104"},{"uid":"944c-105"},{"uid":"944c-106"},{"uid":"944c-107"},{"uid":"944c-108"},{"uid":"944c-109"}],"importedBy":[],"isEntry":true},"944c-2":{"id":"/src/step/useStep.ts","moduleParts":{"step/useStep.js":"944c-3"},"imported":[{"uid":"944c-110"},{"uid":"944c-72"}],"importedBy":[{"uid":"944c-109"},{"uid":"944c-6"}]},"944c-4":{"id":"/src/step/Step.tsx","moduleParts":{"step/Step.js":"944c-5"},"imported":[{"uid":"944c-110"},{"uid":"944c-112"}],"importedBy":[{"uid":"944c-109"},{"uid":"944c-8"}]},"944c-6":{"id":"/src/step/FormStep.tsx","moduleParts":{"step/FormStep.js":"944c-7"},"imported":[{"uid":"944c-110"},{"uid":"944c-112"},{"uid":"944c-2"}],"importedBy":[{"uid":"944c-109"},{"uid":"944c-8"}]},"944c-8":{"id":"/src/step/StepProvider.tsx","moduleParts":{"step/StepProvider.js":"944c-9"},"imported":[{"uid":"944c-110"},{"uid":"944c-112"},{"uid":"944c-127"},{"uid":"944c-113"},{"uid":"944c-6"},{"uid":"944c-4"},{"uid":"944c-72"}],"importedBy":[{"uid":"944c-109"}]},"944c-10":{"id":"/src/inputs/MaskedInput/useMaskedInput.ts","moduleParts":{"inputs/MaskedInput/useMaskedInput.js":"944c-11"},"imported":[{"uid":"944c-112"},{"uid":"944c-119"},{"uid":"944c-110"},{"uid":"944c-120"}],"importedBy":[{"uid":"944c-99"},{"uid":"944c-24"},{"uid":"944c-44"},{"uid":"944c-86"}]},"944c-12":{"id":"/src/date/LocalDatePicker/LocalDatePicker.tsx","moduleParts":{"date/LocalDatePicker/LocalDatePicker.js":"944c-13"},"imported":[{"uid":"944c-110"},{"uid":"944c-111"},{"uid":"944c-112"},{"uid":"944c-113"},{"uid":"944c-114"},{"uid":"944c-74"},{"uid":"944c-80"}],"importedBy":[{"uid":"944c-92"}]},"944c-14":{"id":"/src/date/LocalMonthSelect/LocalMonthSelect.tsx","moduleParts":{"date/LocalMonthSelect/LocalMonthSelect.js":"944c-15"},"imported":[{"uid":"944c-110"},{"uid":"944c-115"},{"uid":"944c-112"},{"uid":"944c-113"}],"importedBy":[{"uid":"944c-93"}]},"944c-16":{"id":"/src/date/MonthDayPicker/MonthDayPicker.tsx","moduleParts":{"date/MonthDayPicker/MonthDayPicker.js":"944c-17"},"imported":[{"uid":"944c-110"},{"uid":"944c-111"},{"uid":"944c-112"},{"uid":"944c-113"},{"uid":"944c-114"}],"importedBy":[{"uid":"944c-95"}]},"944c-18":{"id":"/src/date/MonthYearPicker/MonthYearPicker.tsx","moduleParts":{"date/MonthYearPicker/MonthYearPicker.js":"944c-19"},"imported":[{"uid":"944c-110"},{"uid":"944c-115"},{"uid":"944c-111"},{"uid":"944c-112"},{"uid":"944c-113"},{"uid":"944c-114"}],"importedBy":[{"uid":"944c-96"}]},"944c-20":{"id":"/src/date/LocalTimePicker/LocalTimePicker.tsx","moduleParts":{"date/LocalTimePicker/LocalTimePicker.js":"944c-21"},"imported":[{"uid":"944c-110"},{"uid":"944c-115"},{"uid":"944c-111"},{"uid":"944c-112"},{"uid":"944c-114"},{"uid":"944c-84"}],"importedBy":[{"uid":"944c-94"}]},"944c-22":{"id":"/src/date/YearSelect/YearSelect.tsx","moduleParts":{"date/YearSelect/YearSelect.js":"944c-23"},"imported":[{"uid":"944c-110"},{"uid":"944c-112"},{"uid":"944c-113"}],"importedBy":[{"uid":"944c-97"}]},"944c-24":{"id":"/src/inputs/MaskedInput/MaskedInput.tsx","moduleParts":{"inputs/MaskedInput/MaskedInput.js":"944c-25"},"imported":[{"uid":"944c-110"},{"uid":"944c-112"},{"uid":"944c-113"},{"uid":"944c-10"}],"importedBy":[{"uid":"944c-99"}]},"944c-26":{"id":"/src/form/TForm/TForm.tsx","moduleParts":{"form/TForm/TForm.js":"944c-27"},"imported":[{"uid":"944c-110"},{"uid":"944c-112"},{"uid":"944c-116"},{"uid":"944c-28"}],"importedBy":[{"uid":"944c-98"}]},"944c-28":{"id":"/src/form/TForm/useTForm.tsx","moduleParts":{"form/TForm/useTForm.js":"944c-29"},"imported":[{"uid":"944c-110"},{"uid":"944c-117"},{"uid":"944c-116"},{"uid":"944c-118"},{"uid":"944c-113"}],"importedBy":[{"uid":"944c-98"},{"uid":"944c-26"}]},"944c-30":{"id":"/src/inputs/RadioGroup/RadioGroup.tsx","moduleParts":{"inputs/RadioGroup/RadioGroup.js":"944c-31"},"imported":[{"uid":"944c-110"},{"uid":"944c-112"},{"uid":"944c-113"}],"importedBy":[{"uid":"944c-100"}]},"944c-32":{"id":"/src/inputs/Scriptel/Scriptel.tsx","moduleParts":{"inputs/Scriptel/Scriptel.js":"944c-33"},"imported":[{"uid":"944c-110"},{"uid":"944c-112"},{"uid":"944c-82"},{"uid":"944c-88"}],"importedBy":[{"uid":"944c-101"},{"uid":"944c-34"}]},"944c-34":{"id":"/src/inputs/Scriptel/withScriptel.tsx","moduleParts":{"inputs/Scriptel/withScriptel.js":"944c-35"},"imported":[{"uid":"944c-110"},{"uid":"944c-32"}],"importedBy":[{"uid":"944c-101"}]},"944c-36":{"id":"/src/inputs/ScriptelInput/ScriptelInput.tsx","moduleParts":{"inputs/ScriptelInput/ScriptelInput.js":"944c-37"},"imported":[{"uid":"944c-110"},{"uid":"944c-112"},{"uid":"944c-113"},{"uid":"944c-82"}],"importedBy":[{"uid":"944c-102"}]},"944c-38":{"id":"/src/inputs/CreditCardInput/CreditCardInput.tsx","moduleParts":{"inputs/CreditCardInput/CreditCardInput.js":"944c-39"},"imported":[{"uid":"944c-110"},{"uid":"944c-111"},{"uid":"944c-112"},{"uid":"944c-121"},{"uid":"944c-122"},{"uid":"944c-113"},{"uid":"944c-96"},{"uid":"944c-86"},{"uid":"944c-76"}],"importedBy":[{"uid":"944c-104"}]},"944c-40":{"id":"/src/inputs/PhoneInput/PhoneInput.tsx","moduleParts":{"inputs/PhoneInput/PhoneInput.js":"944c-41"},"imported":[{"uid":"944c-110"},{"uid":"944c-112"},{"uid":"944c-99"}],"importedBy":[{"uid":"944c-103"}]},"944c-42":{"id":"/src/inputs/TableInput/addRowOnTab.ts","moduleParts":{"inputs/TableInput/addRowOnTab.js":"944c-43"},"imported":[],"importedBy":[{"uid":"944c-106"},{"uid":"944c-52"},{"uid":"944c-56"},{"uid":"944c-62"}]},"944c-44":{"id":"/src/inputs/SinInput/SinInput.tsx","moduleParts":{"inputs/SinInput/SinInput.js":"944c-45"},"imported":[{"uid":"944c-110"},{"uid":"944c-112"},{"uid":"944c-113"},{"uid":"944c-123"},{"uid":"944c-10"}],"importedBy":[{"uid":"944c-105"}]},"944c-46":{"id":"/src/money/MoneyInput/MoneyInput.tsx","moduleParts":{"money/MoneyInput/MoneyInput.js":"944c-47"},"imported":[{"uid":"944c-110"},{"uid":"944c-125"},{"uid":"944c-112"},{"uid":"944c-126"},{"uid":"944c-113"},{"uid":"944c-78"}],"importedBy":[{"uid":"944c-107"}]},"944c-48":{"id":"/src/inputs/TableInput/TableInput.tsx","moduleParts":{"inputs/TableInput/TableInput.js":"944c-49"},"imported":[{"uid":"944c-110"},{"uid":"944c-112"},{"uid":"944c-116"},{"uid":"944c-124"},{"uid":"944c-113"}],"importedBy":[{"uid":"944c-106"}]},"944c-50":{"id":"/src/inputs/TableInput/MoneyCell.tsx","moduleParts":{"inputs/TableInput/MoneyCell.js":"944c-51"},"imported":[{"uid":"944c-110"},{"uid":"944c-125"}],"importedBy":[{"uid":"944c-106"}]},"944c-52":{"id":"/src/inputs/TableInput/MoneyEditCell.tsx","moduleParts":{"inputs/TableInput/MoneyEditCell.js":"944c-53"},"imported":[{"uid":"944c-110"},{"uid":"944c-112"},{"uid":"944c-107"},{"uid":"944c-42"}],"importedBy":[{"uid":"944c-106"}]},"944c-54":{"id":"/src/inputs/TableInput/LocalDateCell.tsx","moduleParts":{"inputs/TableInput/LocalDateCell.js":"944c-55"},"imported":[{"uid":"944c-110"},{"uid":"944c-111"}],"importedBy":[{"uid":"944c-106"}]},"944c-56":{"id":"/src/inputs/TableInput/CheckboxEditCell.tsx","moduleParts":{"inputs/TableInput/CheckboxEditCell.js":"944c-57"},"imported":[{"uid":"944c-110"},{"uid":"944c-112"},{"uid":"944c-113"},{"uid":"944c-42"}],"importedBy":[{"uid":"944c-106"}]},"944c-58":{"id":"/src/inputs/TableInput/LocalDateEditCell.tsx","moduleParts":{"inputs/TableInput/LocalDateEditCell.js":"944c-59"},"imported":[{"uid":"944c-110"},{"uid":"944c-112"},{"uid":"944c-92"}],"importedBy":[{"uid":"944c-106"}]},"944c-60":{"id":"/src/inputs/TableInput/MoneySumFooter.tsx","moduleParts":{"inputs/TableInput/MoneySumFooter.js":"944c-61"},"imported":[{"uid":"944c-110"},{"uid":"944c-125"}],"importedBy":[{"uid":"944c-106"}]},"944c-62":{"id":"/src/inputs/TableInput/StringEditCell.tsx","moduleParts":{"inputs/TableInput/StringEditCell.js":"944c-63"},"imported":[{"uid":"944c-110"},{"uid":"944c-112"},{"uid":"944c-113"},{"uid":"944c-42"}],"importedBy":[{"uid":"944c-106"}]},"944c-64":{"id":"/src/inputs/TableInput/DropdownCell.tsx","moduleParts":{"inputs/TableInput/DropdownCell.js":"944c-65"},"imported":[{"uid":"944c-110"},{"uid":"944c-113"}],"importedBy":[{"uid":"944c-106"}]},"944c-66":{"id":"/src/inputs/TableInput/HoverCell.tsx","moduleParts":{"inputs/TableInput/HoverCell.js":"944c-67"},"imported":[{"uid":"944c-110"},{"uid":"944c-112"}],"importedBy":[{"uid":"944c-106"}]},"944c-68":{"id":"/src/money/MoneyCurrencyInput/MoneyCurrencyInput.tsx","moduleParts":{"money/MoneyCurrencyInput/MoneyCurrencyInput.js":"944c-69"},"imported":[{"uid":"944c-110"},{"uid":"944c-125"},{"uid":"944c-112"},{"uid":"944c-126"},{"uid":"944c-113"},{"uid":"944c-78"}],"importedBy":[{"uid":"944c-108"}]},"944c-70":{"id":"/src/inputs/Scriptel/scriptel/enums.ts","moduleParts":{"inputs/Scriptel/scriptel/enums.js":"944c-71"},"imported":[],"importedBy":[{"uid":"944c-101"},{"uid":"944c-88"}]},"944c-72":{"id":"/src/step/stepContext.ts","moduleParts":{"step/stepContext.js":"944c-73"},"imported":[{"uid":"944c-110"}],"importedBy":[{"uid":"944c-2"},{"uid":"944c-8"}]},"944c-74":{"id":"/src/date/DatePicker/styles.css","moduleParts":{"date/DatePicker/styles.css.js":"944c-75"},"imported":[{"uid":"944c-90"}],"importedBy":[{"uid":"944c-12"},{"uid":"944c-114"}]},"944c-76":{"id":"/src/inputs/CreditCardInput/styles.css","moduleParts":{"inputs/CreditCardInput/styles.css.js":"944c-77"},"imported":[{"uid":"944c-90"}],"importedBy":[{"uid":"944c-38"}]},"944c-78":{"id":"/src/money/useMoneyInput.ts","moduleParts":{"money/useMoneyInput.js":"944c-79"},"imported":[{"uid":"944c-125"},{"uid":"944c-112"},{"uid":"944c-119"},{"uid":"944c-126"},{"uid":"944c-110"}],"importedBy":[{"uid":"944c-46"},{"uid":"944c-68"}]},"944c-80":{"id":"/src/date/LocalDatePicker/MaskedDateInput.tsx","moduleParts":{"date/LocalDatePicker/MaskedDateInput.js":"944c-81"},"imported":[{"uid":"944c-110"},{"uid":"944c-112"},{"uid":"944c-99"}],"importedBy":[{"uid":"944c-12"}]},"944c-82":{"id":"/src/inputs/Scriptel/ScriptelContext.ts","moduleParts":{"inputs/Scriptel/ScriptelContext.js":"944c-83"},"imported":[{"uid":"944c-110"}],"importedBy":[{"uid":"944c-32"},{"uid":"944c-36"}]},"944c-84":{"id":"/src/date/LocalTimePicker/MaskedTimeInput.tsx","moduleParts":{"date/LocalTimePicker/MaskedTimeInput.js":"944c-85"},"imported":[{"uid":"944c-110"},{"uid":"944c-112"},{"uid":"944c-99"}],"importedBy":[{"uid":"944c-20"}]},"944c-86":{"id":"/src/inputs/CreditCardInput/CreditCardNumberInput.tsx","moduleParts":{"inputs/CreditCardInput/CreditCardNumberInput.js":"944c-87"},"imported":[{"uid":"944c-110"},{"uid":"944c-130"},{"uid":"944c-112"},{"uid":"944c-131"},{"uid":"944c-113"},{"uid":"944c-10"}],"importedBy":[{"uid":"944c-38"}]},"944c-88":{"id":"/src/inputs/Scriptel/scriptel/index.ts","moduleParts":{"inputs/Scriptel/scriptel/index.js":"944c-89"},"imported":[{"uid":"944c-112"},{"uid":"944c-129"},{"uid":"944c-70"}],"importedBy":[{"uid":"944c-32"}]},"944c-90":{"id":"/home/mike/dev/thx/node_modules/style-inject/dist/style-inject.es.js","moduleParts":{"external/style-inject/dist/style-inject.es.js":"944c-91"},"imported":[],"importedBy":[{"uid":"944c-74"},{"uid":"944c-76"}]},"944c-92":{"id":"/src/date/LocalDatePicker/index.ts","moduleParts":{},"imported":[{"uid":"944c-12"}],"importedBy":[{"uid":"944c-0"},{"uid":"944c-58"}]},"944c-93":{"id":"/src/date/LocalMonthSelect/index.ts","moduleParts":{},"imported":[{"uid":"944c-14"}],"importedBy":[{"uid":"944c-0"}]},"944c-94":{"id":"/src/date/LocalTimePicker/index.ts","moduleParts":{},"imported":[{"uid":"944c-20"}],"importedBy":[{"uid":"944c-0"}]},"944c-95":{"id":"/src/date/MonthDayPicker/index.ts","moduleParts":{},"imported":[{"uid":"944c-16"}],"importedBy":[{"uid":"944c-0"}]},"944c-96":{"id":"/src/date/MonthYearPicker/index.ts","moduleParts":{},"imported":[{"uid":"944c-18"}],"importedBy":[{"uid":"944c-0"},{"uid":"944c-38"}]},"944c-97":{"id":"/src/date/YearSelect/index.ts","moduleParts":{},"imported":[{"uid":"944c-22"}],"importedBy":[{"uid":"944c-0"}]},"944c-98":{"id":"/src/form/TForm/index.ts","moduleParts":{},"imported":[{"uid":"944c-26"},{"uid":"944c-28"}],"importedBy":[{"uid":"944c-0"}]},"944c-99":{"id":"/src/inputs/MaskedInput/index.ts","moduleParts":{},"imported":[{"uid":"944c-24"},{"uid":"944c-10"}],"importedBy":[{"uid":"944c-0"},{"uid":"944c-40"},{"uid":"944c-80"},{"uid":"944c-84"}]},"944c-100":{"id":"/src/inputs/RadioGroup/index.ts","moduleParts":{},"imported":[{"uid":"944c-30"}],"importedBy":[{"uid":"944c-0"}]},"944c-101":{"id":"/src/inputs/Scriptel/index.ts","moduleParts":{},"imported":[{"uid":"944c-32"},{"uid":"944c-34"},{"uid":"944c-70"}],"importedBy":[{"uid":"944c-0"}]},"944c-102":{"id":"/src/inputs/ScriptelInput/index.ts","moduleParts":{},"imported":[{"uid":"944c-36"}],"importedBy":[{"uid":"944c-0"}]},"944c-103":{"id":"/src/inputs/PhoneInput/index.ts","moduleParts":{},"imported":[{"uid":"944c-40"}],"importedBy":[{"uid":"944c-0"}]},"944c-104":{"id":"/src/inputs/CreditCardInput/index.ts","moduleParts":{},"imported":[{"uid":"944c-38"}],"importedBy":[{"uid":"944c-0"}]},"944c-105":{"id":"/src/inputs/SinInput/index.ts","moduleParts":{},"imported":[{"uid":"944c-44"}],"importedBy":[{"uid":"944c-0"}]},"944c-106":{"id":"/src/inputs/TableInput/index.ts","moduleParts":{},"imported":[{"uid":"944c-48"},{"uid":"944c-50"},{"uid":"944c-52"},{"uid":"944c-54"},{"uid":"944c-56"},{"uid":"944c-58"},{"uid":"944c-60"},{"uid":"944c-62"},{"uid":"944c-64"},{"uid":"944c-66"},{"uid":"944c-42"}],"importedBy":[{"uid":"944c-0"}]},"944c-107":{"id":"/src/money/MoneyInput/index.ts","moduleParts":{},"imported":[{"uid":"944c-46"}],"importedBy":[{"uid":"944c-0"},{"uid":"944c-52"}]},"944c-108":{"id":"/src/money/MoneyCurrencyInput/index.ts","moduleParts":{},"imported":[{"uid":"944c-68"}],"importedBy":[{"uid":"944c-0"}]},"944c-109":{"id":"/src/step/index.ts","moduleParts":{},"imported":[{"uid":"944c-4"},{"uid":"944c-2"},{"uid":"944c-6"},{"uid":"944c-8"}],"importedBy":[{"uid":"944c-0"}]},"944c-110":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"944c-12"},{"uid":"944c-14"},{"uid":"944c-20"},{"uid":"944c-16"},{"uid":"944c-18"},{"uid":"944c-22"},{"uid":"944c-26"},{"uid":"944c-28"},{"uid":"944c-24"},{"uid":"944c-10"},{"uid":"944c-30"},{"uid":"944c-32"},{"uid":"944c-34"},{"uid":"944c-36"},{"uid":"944c-40"},{"uid":"944c-38"},{"uid":"944c-44"},{"uid":"944c-48"},{"uid":"944c-50"},{"uid":"944c-52"},{"uid":"944c-54"},{"uid":"944c-56"},{"uid":"944c-58"},{"uid":"944c-60"},{"uid":"944c-62"},{"uid":"944c-64"},{"uid":"944c-66"},{"uid":"944c-46"},{"uid":"944c-68"},{"uid":"944c-4"},{"uid":"944c-2"},{"uid":"944c-6"},{"uid":"944c-8"},{"uid":"944c-80"},{"uid":"944c-84"},{"uid":"944c-82"},{"uid":"944c-86"},{"uid":"944c-78"},{"uid":"944c-72"}],"isExternal":true},"944c-111":{"id":"@thx/date","moduleParts":{},"imported":[],"importedBy":[{"uid":"944c-12"},{"uid":"944c-20"},{"uid":"944c-16"},{"uid":"944c-18"},{"uid":"944c-38"},{"uid":"944c-54"}],"isExternal":true},"944c-112":{"id":"debug","moduleParts":{},"imported":[],"importedBy":[{"uid":"944c-12"},{"uid":"944c-14"},{"uid":"944c-20"},{"uid":"944c-16"},{"uid":"944c-18"},{"uid":"944c-22"},{"uid":"944c-26"},{"uid":"944c-24"},{"uid":"944c-10"},{"uid":"944c-30"},{"uid":"944c-32"},{"uid":"944c-36"},{"uid":"944c-40"},{"uid":"944c-38"},{"uid":"944c-44"},{"uid":"944c-48"},{"uid":"944c-52"},{"uid":"944c-56"},{"uid":"944c-58"},{"uid":"944c-62"},{"uid":"944c-66"},{"uid":"944c-46"},{"uid":"944c-68"},{"uid":"944c-4"},{"uid":"944c-6"},{"uid":"944c-8"},{"uid":"944c-80"},{"uid":"944c-84"},{"uid":"944c-88"},{"uid":"944c-86"},{"uid":"944c-78"}],"isExternal":true},"944c-113":{"id":"semantic-ui-react","moduleParts":{},"imported":[],"importedBy":[{"uid":"944c-12"},{"uid":"944c-14"},{"uid":"944c-16"},{"uid":"944c-18"},{"uid":"944c-22"},{"uid":"944c-28"},{"uid":"944c-24"},{"uid":"944c-30"},{"uid":"944c-36"},{"uid":"944c-38"},{"uid":"944c-44"},{"uid":"944c-48"},{"uid":"944c-56"},{"uid":"944c-62"},{"uid":"944c-64"},{"uid":"944c-46"},{"uid":"944c-68"},{"uid":"944c-8"},{"uid":"944c-86"}],"isExternal":true},"944c-114":{"id":"/src/date/DatePicker/index.ts","moduleParts":{},"imported":[{"uid":"944c-128"},{"uid":"944c-74"}],"importedBy":[{"uid":"944c-12"},{"uid":"944c-20"},{"uid":"944c-16"},{"uid":"944c-18"}]},"944c-115":{"id":"@js-joda/core","moduleParts":{},"imported":[],"importedBy":[{"uid":"944c-14"},{"uid":"944c-20"},{"uid":"944c-18"}],"isExternal":true},"944c-116":{"id":"formik","moduleParts":{},"imported":[],"importedBy":[{"uid":"944c-26"},{"uid":"944c-28"},{"uid":"944c-48"}],"isExternal":true},"944c-117":{"id":"flat","moduleParts":{},"imported":[],"importedBy":[{"uid":"944c-28"}],"isExternal":true},"944c-118":{"id":"lodash-es","moduleParts":{},"imported":[],"importedBy":[{"uid":"944c-28"}],"isExternal":true},"944c-119":{"id":"inputmask","moduleParts":{},"imported":[],"importedBy":[{"uid":"944c-10"},{"uid":"944c-78"}],"isExternal":true},"944c-120":{"id":"use-deep-compare-effect","moduleParts":{},"imported":[],"importedBy":[{"uid":"944c-10"}],"isExternal":true},"944c-121":{"id":"react-credit-cards","moduleParts":{},"imported":[],"importedBy":[{"uid":"944c-38"}],"isExternal":true},"944c-122":{"id":"react-credit-cards/es/styles-compiled.css","moduleParts":{},"imported":[],"importedBy":[{"uid":"944c-38"}],"isExternal":true},"944c-123":{"id":"social-insurance-number","moduleParts":{},"imported":[],"importedBy":[{"uid":"944c-44"}],"isExternal":true},"944c-124":{"id":"react-table","moduleParts":{},"imported":[],"importedBy":[{"uid":"944c-48"}],"isExternal":true},"944c-125":{"id":"@thx/money","moduleParts":{},"imported":[],"importedBy":[{"uid":"944c-50"},{"uid":"944c-60"},{"uid":"944c-46"},{"uid":"944c-68"},{"uid":"944c-78"}],"isExternal":true},"944c-126":{"id":"js-money","moduleParts":{},"imported":[],"importedBy":[{"uid":"944c-46"},{"uid":"944c-68"},{"uid":"944c-78"}],"isExternal":true},"944c-127":{"id":"react-router-dom","moduleParts":{},"imported":[],"importedBy":[{"uid":"944c-8"}],"isExternal":true},"944c-128":{"id":"react-datepicker","moduleParts":{},"imported":[],"importedBy":[{"uid":"944c-114"}],"isExternal":true},"944c-129":{"id":"eventemitter3","moduleParts":{},"imported":[],"importedBy":[{"uid":"944c-88"}],"isExternal":true},"944c-130":{"id":"credit-card-type","moduleParts":{},"imported":[],"importedBy":[{"uid":"944c-86"}],"isExternal":true},"944c-131":{"id":"luhn","moduleParts":{},"imported":[],"importedBy":[{"uid":"944c-86"}],"isExternal":true}},"env":{"rollup":"2.70.1"},"options":{"gzip":true,"brotli":true,"sourcemap":false}};
2673
2673
 
2674
2674
  const run = () => {
2675
2675
  const width = window.innerWidth;
package/dist/stats.txt CHANGED
@@ -1,95 +1,97 @@
1
1
  -----------------------------
2
2
  Rollup File Analysis
3
3
  -----------------------------
4
- bundle size: 45.068 KB
5
- original size: 65.321 KB
6
- code reduction: 31.01 %
7
- module count: 45
4
+ bundle size: 47.247 KB
5
+ original size: 68.165 KB
6
+ code reduction: 30.69 %
7
+ module count: 46
8
8
 
9
9
  /src/step/StepProvider.tsx
10
- ███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 7.83 % (3.529 KB)
10
+ ███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 7.47 % (3.529 KB)
11
11
  /src/form/TForm/useTForm.tsx
12
- ███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 6.5 % (2.93 KB)
12
+ ███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 6.2 % (2.93 KB)
13
13
  /src/date/LocalDatePicker/LocalDatePicker.tsx
14
- ███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 6.39 % (2.882 KB)
14
+ ███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 6.1 % (2.882 KB)
15
15
  /src/inputs/TableInput/TableInput.tsx
16
- ███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 6.19 % (2.788 KB)
16
+ ██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 5.9 % (2.788 KB)
17
17
  /src/inputs/Scriptel/scriptel/index.ts
18
- ██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 5.61 % (2.53 KB)
18
+ ██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 5.35 % (2.53 KB)
19
19
  /src/inputs/CreditCardInput/CreditCardInput.tsx
20
- ██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 5.16 % (2.324 KB)
20
+ ██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 4.92 % (2.324 KB)
21
+ /src/money/useMoneyInput.ts
22
+ ██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 4.42 % (2.089 KB)
21
23
  /src/date/MonthDayPicker/MonthDayPicker.tsx
22
- ██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 4.36 % (1.965 KB)
24
+ ██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 4.16 % (1.965 KB)
23
25
  /src/inputs/ScriptelInput/ScriptelInput.tsx
24
- ██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 4.36 % (1.963 KB)
26
+ ██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 4.15 % (1.963 KB)
25
27
  /src/inputs/CreditCardInput/CreditCardNumberInput.tsx
26
- █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.8 % (1.713 KB)
27
- /src/date/YearSelect/YearSelect.tsx
28
- █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.45 % (1.553 KB)
28
+ █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.63 % (1.713 KB)
29
29
  /src/money/MoneyCurrencyInput/MoneyCurrencyInput.tsx
30
- █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.37 % (1.518 KB)
30
+ █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.33 % (1.575 KB)
31
+ /src/date/YearSelect/YearSelect.tsx
32
+ █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.29 % (1.553 KB)
31
33
  /src/inputs/MaskedInput/useMaskedInput.ts
32
- █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.3 % (1.487 KB)
34
+ █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3.15 % (1.487 KB)
33
35
  /src/inputs/Scriptel/Scriptel.tsx
34
- █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.83 % (1.275 KB)
36
+ █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.7 % (1.275 KB)
35
37
  /src/date/MonthYearPicker/MonthYearPicker.tsx
36
- █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.73 % (1.229 KB)
38
+ █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.6 % (1.229 KB)
37
39
  /src/date/LocalTimePicker/LocalTimePicker.tsx
38
- █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.67 % (1.205 KB)
40
+ █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.55 % (1.205 KB)
39
41
  /src/inputs/SinInput/SinInput.tsx
40
- █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.54 % (1.144 KB)
42
+ █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.42 % (1.144 KB)
41
43
  /src/date/LocalMonthSelect/LocalMonthSelect.tsx
42
- █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.52 % (1.135 KB)
44
+ █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.4 % (1.135 KB)
43
45
  /src/inputs/Scriptel/scriptel/enums.ts
44
- █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2.08 % (937 Bytes)
46
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.98 % (937 Bytes)
45
47
  /src/money/MoneyInput/MoneyInput.tsx
46
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.65 % (745 Bytes)
48
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.65 % (778 Bytes)
47
49
  /src/inputs/TableInput/StringEditCell.tsx
48
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.59 % (717 Bytes)
50
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.52 % (717 Bytes)
49
51
  /src/inputs/TableInput/MoneyEditCell.tsx
50
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.57 % (708 Bytes)
52
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.5 % (708 Bytes)
51
53
  /src/inputs/TableInput/CheckboxEditCell.tsx
52
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.56 % (702 Bytes)
54
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.49 % (702 Bytes)
53
55
  /src/inputs/TableInput/LocalDateEditCell.tsx
54
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.54 % (695 Bytes)
55
- /home/darkadept/dev/thx/node_modules/style-inject/dist/style-inject.es.js
56
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.41 % (636 Bytes)
56
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.47 % (695 Bytes)
57
+ /home/mike/dev/thx/node_modules/style-inject/dist/style-inject.es.js
58
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.35 % (636 Bytes)
57
59
  /src/form/TForm/TForm.tsx
58
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.33 % (600 Bytes)
60
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.27 % (600 Bytes)
59
61
  /src/inputs/RadioGroup/RadioGroup.tsx
60
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.24 % (561 Bytes)
62
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.19 % (561 Bytes)
61
63
  /src/date/DatePicker/styles.css
62
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.19 % (538 Bytes)
64
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.14 % (538 Bytes)
63
65
  /src/inputs/TableInput/DropdownCell.tsx
64
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.09 % (493 Bytes)
66
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.04 % (493 Bytes)
65
67
  /src/date/LocalDatePicker/MaskedDateInput.tsx
66
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.03 % (464 Bytes)
68
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.98 % (464 Bytes)
67
69
  /src/date/LocalTimePicker/MaskedTimeInput.tsx
68
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.99 % (446 Bytes)
70
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.94 % (446 Bytes)
69
71
  /src/step/FormStep.tsx
70
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.98 % (440 Bytes)
72
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.93 % (440 Bytes)
71
73
  /src/inputs/TableInput/MoneySumFooter.tsx
72
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.92 % (414 Bytes)
74
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.88 % (414 Bytes)
73
75
  /src/inputs/TableInput/HoverCell.tsx
74
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.89 % (403 Bytes)
76
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.85 % (403 Bytes)
75
77
  /src/inputs/MaskedInput/MaskedInput.tsx
76
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.87 % (390 Bytes)
78
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.83 % (390 Bytes)
77
79
  /src/inputs/PhoneInput/PhoneInput.tsx
78
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.85 % (381 Bytes)
80
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.81 % (381 Bytes)
79
81
  /src/inputs/TableInput/addRowOnTab.ts
80
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.69 % (312 Bytes)
82
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.66 % (312 Bytes)
81
83
  /src/inputs/Scriptel/withScriptel.tsx
82
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.61 % (275 Bytes)
84
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.58 % (275 Bytes)
83
85
  /src/inputs/TableInput/LocalDateCell.tsx
84
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.59 % (264 Bytes)
86
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.56 % (264 Bytes)
85
87
  /src/inputs/TableInput/MoneyCell.tsx
86
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.57 % (257 Bytes)
88
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.54 % (257 Bytes)
87
89
  /src/step/Step.tsx
88
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.45 % (203 Bytes)
90
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.43 % (203 Bytes)
89
91
  /src/step/useStep.ts
90
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.25 % (113 Bytes)
92
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.24 % (113 Bytes)
91
93
  /src/step/stepContext.ts
92
- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.18 % (80 Bytes)
94
+ ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.17 % (80 Bytes)
93
95
  /src/inputs/CreditCardInput/styles.css
94
96
  ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.17 % (78 Bytes)
95
97
  /src/inputs/Scriptel/ScriptelContext.ts
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { LocalDate } from '@js-joda/core';
2
3
  import type { TableCellProps } from './TableInput';
3
4
  export declare function LocalDateEditCell<D extends Record<string, unknown>>(): (props: TableCellProps<D, LocalDate | null>) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type Money from 'js-money';
2
3
  import type { TableCellProps } from './TableInput';
3
4
  import type { AddRowOnTabIf } from './addRowOnTab';
@@ -7,6 +7,5 @@ export interface MoneyCurrencyInputProps extends MoneyInputProps {
7
7
  value: string;
8
8
  text: string;
9
9
  }[];
10
- lockCurrency?: boolean;
11
10
  }
12
11
  export declare function MoneyCurrencyInput(props: MoneyCurrencyInputProps & Omit<InputProps, 'onChange'>): JSX.Element;
@@ -1,11 +1,10 @@
1
1
  /// <reference types="react" />
2
- import type { Currency } from 'js-money';
3
- import type Money from 'js-money';
2
+ import Money, { Currency, MoneyObject } from 'js-money';
4
3
  import { InputProps } from 'semantic-ui-react';
5
4
  export interface MoneyInputProps {
6
5
  name?: string;
7
- onChange?: (value?: Money) => void;
8
- value?: Money | undefined;
6
+ onChange?: (value: Money) => void;
7
+ value?: Money | MoneyObject;
9
8
  defaultCurrency?: Currency;
10
9
  onBlur?: (ev: any) => void;
11
10
  prefix?: string;
@@ -0,0 +1,13 @@
1
+ import Money from 'js-money';
2
+ import { MutableRefObject } from 'react';
3
+ interface UseMoneyInputProps {
4
+ value?: Money;
5
+ onChange?: (value?: Money) => void;
6
+ onSet?: (value?: Money) => void;
7
+ prefix?: string;
8
+ showPrefix?: boolean;
9
+ wholeNumber?: boolean;
10
+ }
11
+ declare type SetValueFn = (value?: Money) => void;
12
+ export declare function useMoneyInput(props: UseMoneyInputProps): [MutableRefObject<HTMLInputElement | null>, SetValueFn];
13
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thx/controls",
3
- "version": "16.8.4",
3
+ "version": "16.8.5",
4
4
  "description": "A collection of components designed with SemanticUI.",
5
5
  "bugs": {
6
6
  "url": "https://github.com/thr-consulting/thr-addons/issues"
@@ -46,7 +46,6 @@
46
46
  "lodash-es": "^4.17.15",
47
47
  "luhn": "^2.4.1",
48
48
  "react-credit-cards": "^0.8.3",
49
- "react-currency-input-field": "^3.6.14",
50
49
  "react-datepicker": "^4.25.0",
51
50
  "react-table": "^7.6.3",
52
51
  "social-insurance-number": "^0.2.2",
@@ -65,5 +64,5 @@
65
64
  "publishConfig": {
66
65
  "access": "public"
67
66
  },
68
- "gitHead": "913bd90c7d7ff3a78bf2173d8344771fa85f1e6b"
67
+ "gitHead": "3c8d677a19857f884b0aa721fa2a3056b4221244"
69
68
  }