@codebit-programando-solucoes/codebit-web-antd 1.1.39 → 1.1.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1206,11 +1206,6 @@ var __webpack_exports__ = {};
1206
1206
  AudioPlayer.propTypes = {
1207
1207
  audioUrl: external_prop_types_default().string.isRequired
1208
1208
  };
1209
- const PhoneInput_module = {
1210
- container: "container-IJ_oCC",
1211
- countrySelect: "countrySelect-hsVqWh",
1212
- phoneInput: "phoneInput-Pz8eaz"
1213
- };
1214
1209
  const COUNTRIES = [
1215
1210
  {
1216
1211
  code: 'BR',
@@ -1473,35 +1468,31 @@ var __webpack_exports__ = {};
1473
1468
  setDisplayValue(applyMask(rawDigits, selectedCountry.code));
1474
1469
  onChange?.(selectedCountry.dialCode + rawDigits);
1475
1470
  };
1476
- return /*#__PURE__*/ (0, jsx_runtime.jsxs)(external_antd_namespaceObject.Input.Group, {
1477
- compact: true,
1478
- className: PhoneInput_module.container,
1479
- children: [
1480
- /*#__PURE__*/ (0, jsx_runtime.jsx)(external_antd_namespaceObject.Select, {
1481
- value: selectedCountry.code,
1482
- onChange: handleCountryChange,
1483
- disabled: disabled,
1484
- size: size,
1485
- className: PhoneInput_module.countrySelect,
1486
- popupMatchSelectWidth: false,
1487
- showSearch: true,
1488
- filterOption: (input, option)=>option?.searchLabel?.toLowerCase().includes(input.toLowerCase()) ?? false,
1489
- options: COUNTRIES.map((c)=>({
1490
- value: c.code,
1491
- label: `${c.flag} +${c.dialCode}`,
1492
- searchLabel: countrySearchLabel(c)
1493
- })),
1494
- optionRender: (option)=>option.data.searchLabel
1495
- }),
1496
- /*#__PURE__*/ (0, jsx_runtime.jsx)(external_antd_namespaceObject.Input, {
1497
- value: displayValue,
1498
- onChange: handleInputChange,
1499
- disabled: disabled,
1500
- size: size,
1501
- placeholder: placeholder,
1502
- className: PhoneInput_module.phoneInput
1503
- })
1504
- ]
1471
+ const countrySelector = /*#__PURE__*/ (0, jsx_runtime.jsx)(external_antd_namespaceObject.Select, {
1472
+ value: selectedCountry.code,
1473
+ onChange: handleCountryChange,
1474
+ disabled: disabled,
1475
+ size: size,
1476
+ style: {
1477
+ width: 110
1478
+ },
1479
+ popupMatchSelectWidth: false,
1480
+ showSearch: true,
1481
+ filterOption: (input, option)=>option?.searchLabel?.toLowerCase().includes(input.toLowerCase()) ?? false,
1482
+ options: COUNTRIES.map((c)=>({
1483
+ value: c.code,
1484
+ label: `${c.flag} +${c.dialCode}`,
1485
+ searchLabel: countrySearchLabel(c)
1486
+ })),
1487
+ optionRender: (option)=>option.data.searchLabel
1488
+ });
1489
+ return /*#__PURE__*/ (0, jsx_runtime.jsx)(external_antd_namespaceObject.Input, {
1490
+ addonBefore: countrySelector,
1491
+ value: displayValue,
1492
+ onChange: handleInputChange,
1493
+ disabled: disabled,
1494
+ size: size,
1495
+ placeholder: placeholder
1505
1496
  });
1506
1497
  };
1507
1498
  PhoneInput.propTypes = {
package/dist/index.css CHANGED
@@ -89,21 +89,6 @@ html.dark-theme {
89
89
  min-width: 100px;
90
90
  }
91
91
 
92
- .container-IJ_oCC {
93
- width: 100%;
94
- display: flex !important;
95
- }
96
-
97
- .countrySelect-hsVqWh {
98
- flex-shrink: 0;
99
- width: 110px !important;
100
- }
101
-
102
- .phoneInput-Pz8eaz {
103
- flex: 1;
104
- min-width: 0;
105
- }
106
-
107
92
  .layout-mL5o6I {
108
93
  height: 100vh;
109
94
  position: fixed;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codebit-programando-solucoes/codebit-web-antd",
3
- "version": "1.1.39",
3
+ "version": "1.1.40",
4
4
  "main": "./dist/index.cjs",
5
5
  "type": "module",
6
6
  "types": "./src/index.d.ts",