@helpdice/ui 2.5.1 → 2.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/dist/auto-complete/index.js +999 -1249
  2. package/dist/index.d.ts +0 -1
  3. package/dist/index.js +999 -1249
  4. package/dist/input/index.d.ts +2 -2
  5. package/dist/input/index.js +999 -1249
  6. package/dist/input/{currency-input/components/CurrencyInput.d.ts → input-currency.d.ts} +1 -1
  7. package/{esm/input/phone-input/phone.d.ts → dist/input/input-phone.d.ts} +1 -1
  8. package/dist/input/{currency-input/components/utils → utils}/cleanValue.d.ts +1 -1
  9. package/dist/input/{currency-input/components/utils → utils}/formatValue.d.ts +1 -1
  10. package/dist/input/{currency-input/components/utils → utils}/getLocaleConfig.d.ts +1 -1
  11. package/dist/table/index.js +999 -1249
  12. package/esm/index.d.ts +0 -1
  13. package/esm/index.js +1 -1
  14. package/esm/input/index.d.ts +2 -2
  15. package/esm/input/index.js +2 -2
  16. package/esm/input/{currency-input/components/CurrencyInput.d.ts → input-currency.d.ts} +1 -1
  17. package/esm/input/{currency-input/components/CurrencyInput.js → input-currency.js} +2 -2
  18. package/{dist/input/phone-input/phone.d.ts → esm/input/input-phone.d.ts} +1 -1
  19. package/esm/input/input-phone.js +1166 -0
  20. package/esm/input/{currency-input/components/utils → utils}/cleanValue.d.ts +1 -1
  21. package/esm/input/{currency-input/components/utils → utils}/formatValue.d.ts +1 -1
  22. package/esm/input/{currency-input/components/utils → utils}/getLocaleConfig.d.ts +1 -1
  23. package/package.json +1 -1
  24. package/dist/input/currency-input/index.d.ts +0 -5
  25. package/dist/input/phone-input/index.d.ts +0 -2
  26. package/esm/input/currency-input/index.d.ts +0 -5
  27. package/esm/input/currency-input/index.js +0 -4
  28. package/esm/input/phone-input/index.d.ts +0 -2
  29. package/esm/input/phone-input/index.js +0 -2
  30. package/esm/input/phone-input/phone.js +0 -167
  31. /package/dist/input/{currency-input/components/CurrencyInputProps.d.ts → input-currency-props.d.ts} +0 -0
  32. /package/dist/input/{currency-input/components/utils → utils}/escapeRegExp.d.ts +0 -0
  33. /package/dist/input/{currency-input/components/utils → utils}/fixedDecimalValue.d.ts +0 -0
  34. /package/dist/input/{currency-input/components/utils → utils}/getSuffix.d.ts +0 -0
  35. /package/dist/input/{currency-input/components/utils → utils}/index.d.ts +0 -0
  36. /package/dist/input/{currency-input/components/utils → utils}/isNumber.d.ts +0 -0
  37. /package/dist/input/{currency-input/components/utils → utils}/padTrimValue.d.ts +0 -0
  38. /package/dist/input/{currency-input/components/utils → utils}/parseAbbrValue.d.ts +0 -0
  39. /package/dist/input/{currency-input/components/utils → utils}/removeInvalidChars.d.ts +0 -0
  40. /package/dist/input/{currency-input/components/utils → utils}/removeSeparators.d.ts +0 -0
  41. /package/dist/input/{currency-input/components/utils → utils}/repositionCursor.d.ts +0 -0
  42. /package/esm/input/{currency-input/components/CurrencyInputProps.d.ts → input-currency-props.d.ts} +0 -0
  43. /package/esm/input/{currency-input/components/CurrencyInputProps.js → input-currency-props.js} +0 -0
  44. /package/esm/input/{currency-input/components/utils → utils}/addSeparators.js +0 -0
  45. /package/esm/input/{currency-input/components/utils → utils}/cleanValue.js +0 -0
  46. /package/esm/input/{currency-input/components/utils → utils}/escapeRegExp.d.ts +0 -0
  47. /package/esm/input/{currency-input/components/utils → utils}/escapeRegExp.js +0 -0
  48. /package/esm/input/{currency-input/components/utils → utils}/fixedDecimalValue.d.ts +0 -0
  49. /package/esm/input/{currency-input/components/utils → utils}/fixedDecimalValue.js +0 -0
  50. /package/esm/input/{currency-input/components/utils → utils}/formatValue.js +0 -0
  51. /package/esm/input/{currency-input/components/utils → utils}/getLocaleConfig.js +0 -0
  52. /package/esm/input/{currency-input/components/utils → utils}/getSuffix.d.ts +0 -0
  53. /package/esm/input/{currency-input/components/utils → utils}/getSuffix.js +0 -0
  54. /package/esm/input/{currency-input/components/utils → utils}/index.d.ts +0 -0
  55. /package/esm/input/{currency-input/components/utils → utils}/index.js +0 -0
  56. /package/esm/input/{currency-input/components/utils → utils}/isNumber.d.ts +0 -0
  57. /package/esm/input/{currency-input/components/utils → utils}/isNumber.js +0 -0
  58. /package/esm/input/{currency-input/components/utils → utils}/padTrimValue.d.ts +0 -0
  59. /package/esm/input/{currency-input/components/utils → utils}/padTrimValue.js +0 -0
  60. /package/esm/input/{currency-input/components/utils → utils}/parseAbbrValue.d.ts +0 -0
  61. /package/esm/input/{currency-input/components/utils → utils}/parseAbbrValue.js +0 -0
  62. /package/esm/input/{currency-input/components/utils → utils}/removeInvalidChars.d.ts +0 -0
  63. /package/esm/input/{currency-input/components/utils → utils}/removeInvalidChars.js +0 -0
  64. /package/esm/input/{currency-input/components/utils → utils}/removeSeparators.d.ts +0 -0
  65. /package/esm/input/{currency-input/components/utils → utils}/removeSeparators.js +0 -0
  66. /package/esm/input/{currency-input/components/utils → utils}/repositionCursor.d.ts +0 -0
  67. /package/esm/input/{currency-input/components/utils → utils}/repositionCursor.js +0 -0
@@ -1,4 +1,4 @@
1
- import { CurrencyInputProps } from '../CurrencyInputProps';
1
+ import { CurrencyInputProps } from '../input-currency-props';
2
2
  export type CleanValueOptions = Pick<CurrencyInputProps, 'decimalSeparator' | 'groupSeparator' | 'allowDecimals' | 'decimalsLimit' | 'allowNegativeValue' | 'disableAbbreviations' | 'prefix' | 'transformRawValue'> & {
3
3
  value: string;
4
4
  };
@@ -1,4 +1,4 @@
1
- import { IntlConfig } from '../CurrencyInputProps';
1
+ import { IntlConfig } from '../input-currency-props';
2
2
  export type FormatValueOptions = {
3
3
  /**
4
4
  * Value to format
@@ -1,4 +1,4 @@
1
- import { IntlConfig } from '../CurrencyInputProps';
1
+ import { IntlConfig } from '../input-currency-props';
2
2
  type LocaleConfig = {
3
3
  currencySymbol: string;
4
4
  groupSeparator: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@helpdice/ui",
3
- "version": "2.5.1",
3
+ "version": "2.5.3",
4
4
  "main": "dist/index.js",
5
5
  "types": "esm/index.d.ts",
6
6
  "unpkg": "dist/index.min.js",
@@ -1,5 +0,0 @@
1
- import CurrencyInput from './components/CurrencyInput';
2
- export type { CurrencyInputProps, CurrencyInputOnChangeValues } from './components/CurrencyInputProps';
3
- export { formatValue } from './components/utils/formatValue';
4
- export { cleanValue } from './components/utils/cleanValue';
5
- export default CurrencyInput;
@@ -1,2 +0,0 @@
1
- import PhoneInput from './phone';
2
- export default PhoneInput;
@@ -1,5 +0,0 @@
1
- import CurrencyInput from './components/CurrencyInput';
2
- export type { CurrencyInputProps, CurrencyInputOnChangeValues } from './components/CurrencyInputProps';
3
- export { formatValue } from './components/utils/formatValue';
4
- export { cleanValue } from './components/utils/cleanValue';
5
- export default CurrencyInput;
@@ -1,4 +0,0 @@
1
- import CurrencyInput from './components/CurrencyInput';
2
- export { formatValue } from './components/utils/formatValue';
3
- export { cleanValue } from './components/utils/cleanValue';
4
- export default CurrencyInput;
@@ -1,2 +0,0 @@
1
- import PhoneInput from './phone';
2
- export default PhoneInput;
@@ -1,2 +0,0 @@
1
- import PhoneInput from './phone';
2
- export default PhoneInput;
@@ -1,167 +0,0 @@
1
- import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
2
- import _JSXStyle from "../styled-jsx.es.js";
3
- import React, { useState, useRef, useEffect, useMemo } from 'react';
4
- import countries from './countries.json';
5
- import { useTheme } from '@helpdice/theme';
6
- import { getColors } from '../styles';
7
- import useScale, { withScale } from '../../use-scale';
8
- import InputBlockLabel from '../input-block-label';
9
- function PhoneInput(_ref) {
10
- var onChange = _ref.onChange,
11
- _ref$value = _ref.value,
12
- value = _ref$value === void 0 ? '' : _ref$value,
13
- country = _ref.country,
14
- _ref$placeholder = _ref.placeholder,
15
- placeholder = _ref$placeholder === void 0 ? 'Enter phone number' : _ref$placeholder,
16
- _ref$color = _ref.color,
17
- _color = _ref$color === void 0 ? 'default' : _ref$color,
18
- children = _ref.children,
19
- fullWidth = _ref.fullWidth;
20
- var theme = useTheme();
21
- var _useScale = useScale(),
22
- SCALES = _useScale.SCALES;
23
- var defaultValue = country ? countries.findIndex(function (cn) {
24
- return cn.code == country;
25
- }) : 103;
26
- var _useState = useState(countries[defaultValue]),
27
- _useState2 = _slicedToArray(_useState, 2),
28
- selectedCountry = _useState2[0],
29
- setSelectedCountry = _useState2[1];
30
- var _useState3 = useState(value),
31
- _useState4 = _slicedToArray(_useState3, 2),
32
- phoneNumber = _useState4[0],
33
- setPhoneNumber = _useState4[1];
34
- var _useState5 = useState(false),
35
- _useState6 = _slicedToArray(_useState5, 2),
36
- isFocused = _useState6[0],
37
- setIsFocused = _useState6[1];
38
- var _useState7 = useState(false),
39
- _useState8 = _slicedToArray(_useState7, 2),
40
- dropdownOpen = _useState8[0],
41
- setDropdownOpen = _useState8[1];
42
- var _useState9 = useState(''),
43
- _useState10 = _slicedToArray(_useState9, 2),
44
- searchTerm = _useState10[0],
45
- setSearchTerm = _useState10[1];
46
- var dropdownRef = useRef(null);
47
- var _useMemo = useMemo(function () {
48
- return getColors(theme.palette, _color);
49
- }, [theme.palette]),
50
- borderColor = _useMemo.borderColor,
51
- hoverBorder = _useMemo.hoverBorder;
52
- var handleSelectCountry = function handleSelectCountry(country) {
53
- setSelectedCountry(country);
54
- setDropdownOpen(false);
55
- setSearchTerm('');
56
- if (onChange) onChange("".concat(country.code, ":").concat(phoneNumber));
57
- };
58
- var handlePhoneChange = function handlePhoneChange(e) {
59
- var value = e.target.value.replace(/[^\d]/g, '');
60
- setPhoneNumber(value);
61
- if (onChange) onChange("".concat(selectedCountry.phone, ",").concat(value));
62
- };
63
- var handleClickOutside = function handleClickOutside(e) {
64
- if (dropdownRef.current && !dropdownRef.current.contains(e.target)) {
65
- setDropdownOpen(false);
66
- setSearchTerm('');
67
- }
68
- };
69
- useEffect(function () {
70
- document.addEventListener('mousedown', handleClickOutside);
71
- return function () {
72
- return document.removeEventListener('mousedown', handleClickOutside);
73
- };
74
- }, []);
75
- var filteredCountries = countries.filter(function (c) {
76
- return "".concat(c.label, " ").concat(c.code, " ").concat(c.phone).toLowerCase().includes(searchTerm.toLowerCase());
77
- });
78
- var defaultWidth = fullWidth ? '100%' : 'initial';
79
- return /*#__PURE__*/React.createElement("div", {
80
- ref: dropdownRef,
81
- className: _JSXStyle.dynamic([["2480261071", [SCALES.height(2.25), SCALES.font(0.875), SCALES.width(1, defaultWidth), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), hoverBorder, borderColor, SCALES.width(1, defaultWidth), borderColor, SCALES.width(1, defaultWidth), theme.type == 'dark' ? 'black' : 'white', borderColor, borderColor, theme.type == 'dark' ? '#3a3d3d' : '#efefef']]]) + " " + "with-label ".concat(isFocused ? 'focused' : '')
82
- }, children && /*#__PURE__*/React.createElement(InputBlockLabel, null, children), /*#__PURE__*/React.createElement("div", {
83
- className: _JSXStyle.dynamic([["2480261071", [SCALES.height(2.25), SCALES.font(0.875), SCALES.width(1, defaultWidth), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), hoverBorder, borderColor, SCALES.width(1, defaultWidth), borderColor, SCALES.width(1, defaultWidth), theme.type == 'dark' ? 'black' : 'white', borderColor, borderColor, theme.type == 'dark' ? '#3a3d3d' : '#efefef']]]) + " " + "input-wrapper"
84
- }, /*#__PURE__*/React.createElement("div", {
85
- onClick: function onClick() {
86
- return setDropdownOpen(!dropdownOpen);
87
- },
88
- className: _JSXStyle.dynamic([["2480261071", [SCALES.height(2.25), SCALES.font(0.875), SCALES.width(1, defaultWidth), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), hoverBorder, borderColor, SCALES.width(1, defaultWidth), borderColor, SCALES.width(1, defaultWidth), theme.type == 'dark' ? 'black' : 'white', borderColor, borderColor, theme.type == 'dark' ? '#3a3d3d' : '#efefef']]]) + " " + "dropdown-toggle"
89
- }, /*#__PURE__*/React.createElement("span", {
90
- style: {
91
- display: 'flex',
92
- alignItems: 'center',
93
- gap: 5,
94
- paddingRight: '15px'
95
- },
96
- className: _JSXStyle.dynamic([["2480261071", [SCALES.height(2.25), SCALES.font(0.875), SCALES.width(1, defaultWidth), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), hoverBorder, borderColor, SCALES.width(1, defaultWidth), borderColor, SCALES.width(1, defaultWidth), theme.type == 'dark' ? 'black' : 'white', borderColor, borderColor, theme.type == 'dark' ? '#3a3d3d' : '#efefef']]])
97
- }, /*#__PURE__*/React.createElement("img", {
98
- loading: "lazy",
99
- width: "20",
100
- height: "20",
101
- src: "https://flagcdn.com/w20/".concat(selectedCountry.code.toLowerCase(), ".png"),
102
- srcSet: "https://flagcdn.com/w40/".concat(selectedCountry.code.toLowerCase(), ".png 2x"),
103
- alt: "".concat(selectedCountry.label, " Flag"),
104
- className: _JSXStyle.dynamic([["2480261071", [SCALES.height(2.25), SCALES.font(0.875), SCALES.width(1, defaultWidth), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), hoverBorder, borderColor, SCALES.width(1, defaultWidth), borderColor, SCALES.width(1, defaultWidth), theme.type == 'dark' ? 'black' : 'white', borderColor, borderColor, theme.type == 'dark' ? '#3a3d3d' : '#efefef']]])
105
- }), /*#__PURE__*/React.createElement("span", {
106
- className: _JSXStyle.dynamic([["2480261071", [SCALES.height(2.25), SCALES.font(0.875), SCALES.width(1, defaultWidth), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), hoverBorder, borderColor, SCALES.width(1, defaultWidth), borderColor, SCALES.width(1, defaultWidth), theme.type == 'dark' ? 'black' : 'white', borderColor, borderColor, theme.type == 'dark' ? '#3a3d3d' : '#efefef']]])
107
- }, selectedCountry.phone))), /*#__PURE__*/React.createElement("input", {
108
- type: "tel",
109
- placeholder: placeholder,
110
- value: phoneNumber,
111
- onChange: handlePhoneChange,
112
- onFocus: function onFocus() {
113
- return setIsFocused(true);
114
- },
115
- onBlur: function onBlur() {
116
- return setIsFocused(false);
117
- },
118
- className: _JSXStyle.dynamic([["2480261071", [SCALES.height(2.25), SCALES.font(0.875), SCALES.width(1, defaultWidth), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), hoverBorder, borderColor, SCALES.width(1, defaultWidth), borderColor, SCALES.width(1, defaultWidth), theme.type == 'dark' ? 'black' : 'white', borderColor, borderColor, theme.type == 'dark' ? '#3a3d3d' : '#efefef']]]) + " " + "phone-input"
119
- })), dropdownOpen && /*#__PURE__*/React.createElement("div", {
120
- className: _JSXStyle.dynamic([["2480261071", [SCALES.height(2.25), SCALES.font(0.875), SCALES.width(1, defaultWidth), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), hoverBorder, borderColor, SCALES.width(1, defaultWidth), borderColor, SCALES.width(1, defaultWidth), theme.type == 'dark' ? 'black' : 'white', borderColor, borderColor, theme.type == 'dark' ? '#3a3d3d' : '#efefef']]]) + " " + "dropdown"
121
- }, /*#__PURE__*/React.createElement("input", {
122
- type: "text",
123
- placeholder: "Search country...",
124
- value: searchTerm,
125
- onChange: function onChange(e) {
126
- return setSearchTerm(e.target.value);
127
- },
128
- className: _JSXStyle.dynamic([["2480261071", [SCALES.height(2.25), SCALES.font(0.875), SCALES.width(1, defaultWidth), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), hoverBorder, borderColor, SCALES.width(1, defaultWidth), borderColor, SCALES.width(1, defaultWidth), theme.type == 'dark' ? 'black' : 'white', borderColor, borderColor, theme.type == 'dark' ? '#3a3d3d' : '#efefef']]]) + " " + "search-input"
129
- }), /*#__PURE__*/React.createElement("div", {
130
- className: _JSXStyle.dynamic([["2480261071", [SCALES.height(2.25), SCALES.font(0.875), SCALES.width(1, defaultWidth), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), hoverBorder, borderColor, SCALES.width(1, defaultWidth), borderColor, SCALES.width(1, defaultWidth), theme.type == 'dark' ? 'black' : 'white', borderColor, borderColor, theme.type == 'dark' ? '#3a3d3d' : '#efefef']]]) + " " + "country-list"
131
- }, filteredCountries.length > 0 ? filteredCountries.map(function (c) {
132
- return /*#__PURE__*/React.createElement("div", {
133
- key: c.code,
134
- onClick: function onClick() {
135
- return handleSelectCountry(c);
136
- },
137
- className: _JSXStyle.dynamic([["2480261071", [SCALES.height(2.25), SCALES.font(0.875), SCALES.width(1, defaultWidth), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), hoverBorder, borderColor, SCALES.width(1, defaultWidth), borderColor, SCALES.width(1, defaultWidth), theme.type == 'dark' ? 'black' : 'white', borderColor, borderColor, theme.type == 'dark' ? '#3a3d3d' : '#efefef']]]) + " " + "dropdown-item"
138
- }, /*#__PURE__*/React.createElement("span", {
139
- style: {
140
- display: 'flex',
141
- alignItems: 'center',
142
- gap: 5
143
- },
144
- className: _JSXStyle.dynamic([["2480261071", [SCALES.height(2.25), SCALES.font(0.875), SCALES.width(1, defaultWidth), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), hoverBorder, borderColor, SCALES.width(1, defaultWidth), borderColor, SCALES.width(1, defaultWidth), theme.type == 'dark' ? 'black' : 'white', borderColor, borderColor, theme.type == 'dark' ? '#3a3d3d' : '#efefef']]])
145
- }, /*#__PURE__*/React.createElement("img", {
146
- loading: "lazy",
147
- width: "23",
148
- height: "23",
149
- src: "https://flagcdn.com/w20/".concat(c.code.toLowerCase(), ".png"),
150
- srcSet: "https://flagcdn.com/w40/".concat(c.code.toLowerCase(), ".png 2x"),
151
- alt: "".concat(c.label, " Flag"),
152
- className: _JSXStyle.dynamic([["2480261071", [SCALES.height(2.25), SCALES.font(0.875), SCALES.width(1, defaultWidth), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), hoverBorder, borderColor, SCALES.width(1, defaultWidth), borderColor, SCALES.width(1, defaultWidth), theme.type == 'dark' ? 'black' : 'white', borderColor, borderColor, theme.type == 'dark' ? '#3a3d3d' : '#efefef']]])
153
- }), c.phone, " ", /*#__PURE__*/React.createElement("span", {
154
- style: {
155
- color: 'grey'
156
- },
157
- className: _JSXStyle.dynamic([["2480261071", [SCALES.height(2.25), SCALES.font(0.875), SCALES.width(1, defaultWidth), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), hoverBorder, borderColor, SCALES.width(1, defaultWidth), borderColor, SCALES.width(1, defaultWidth), theme.type == 'dark' ? 'black' : 'white', borderColor, borderColor, theme.type == 'dark' ? '#3a3d3d' : '#efefef']]])
158
- }, c.label)));
159
- }) : /*#__PURE__*/React.createElement("div", {
160
- className: _JSXStyle.dynamic([["2480261071", [SCALES.height(2.25), SCALES.font(0.875), SCALES.width(1, defaultWidth), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), hoverBorder, borderColor, SCALES.width(1, defaultWidth), borderColor, SCALES.width(1, defaultWidth), theme.type == 'dark' ? 'black' : 'white', borderColor, borderColor, theme.type == 'dark' ? '#3a3d3d' : '#efefef']]]) + " " + "dropdown-item disabled"
161
- }, "No results"))), /*#__PURE__*/React.createElement(_JSXStyle, {
162
- id: "2480261071",
163
- dynamic: [SCALES.height(2.25), SCALES.font(0.875), SCALES.width(1, defaultWidth), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), hoverBorder, borderColor, SCALES.width(1, defaultWidth), borderColor, SCALES.width(1, defaultWidth), theme.type == 'dark' ? 'black' : 'white', borderColor, borderColor, theme.type == 'dark' ? '#3a3d3d' : '#efefef']
164
- }, ".with-label.__jsx-style-dynamic-selector{position:relative;display:inline-block;box-sizing:border-box;-webkit-box-align:center;--input-height:".concat(SCALES.height(2.25), ";font-size:").concat(SCALES.font(0.875), ";width:").concat(SCALES.width(1, defaultWidth), ";padding:").concat(SCALES.pt(0), " ").concat(SCALES.pr(0), " ").concat(SCALES.pb(0), " ").concat(SCALES.pl(0), ";margin:").concat(SCALES.mt(0), " ").concat(SCALES.mr(0), " ").concat(SCALES.mb(0), " ").concat(SCALES.ml(0), ";}.phone-input-container.focused.__jsx-style-dynamic-selector{outline:1px solid ").concat(hoverBorder, ";border-radius:6px;}.input-wrapper.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;border:1px solid ").concat(borderColor, ";width:").concat(SCALES.width(1, defaultWidth), ";height:var(--input-height);border-radius:6px;overflow:hidden;}.dropdown-toggle.__jsx-style-dynamic-selector{padding:7px 12px;border-radius:6px 0px 0px 6px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:14px;border-right:1px solid ").concat(borderColor, ";}.phone-input.__jsx-style-dynamic-selector{width:100%;min-width:0;padding:5px 10px;background-color:transparent;font-size:14px;border:none;}.phone-input.__jsx-style-dynamic-selector:focus{outline:none;}.dropdown.__jsx-style-dynamic-selector{position:absolute;top:100%;left:0;width:").concat(SCALES.width(1, defaultWidth), ";background:").concat(theme.type == 'dark' ? 'black' : 'white', ";border:1px solid ").concat(borderColor, ";border-radius:6px;margin-top:4px;z-index:999;box-shadow:0 4px 10px rgba(0,0,0,0.1);}.search-input.__jsx-style-dynamic-selector{width:100%;padding:8px 10px;border:none;background-color:transparent;border-bottom:1px solid ").concat(borderColor, ";font-size:14px;}.search-input.__jsx-style-dynamic-selector:focus{outline:none;}.country-list.__jsx-style-dynamic-selector{max-height:200px;overflow-y:auto;}.dropdown-item.__jsx-style-dynamic-selector{padding:10px;cursor:pointer;font-size:14px;}.dropdown-item.__jsx-style-dynamic-selector:hover{background:").concat(theme.type == 'dark' ? '#3a3d3d' : '#efefef', ";}.dropdown-item.disabled.__jsx-style-dynamic-selector{color:#888;cursor:default;}")));
165
- }
166
- ;
167
- export default withScale(PhoneInput);