@ikatec/nebula-react 1.0.12 → 1.0.13

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.js CHANGED
@@ -1065,6 +1065,7 @@ var input_select_default = messages2;
1065
1065
  // src/i18n/messages/en/input-phone.ts
1066
1066
  var messages3 = {
1067
1067
  countries: {
1068
+ empty: "Select",
1068
1069
  AF: "Afghanistan",
1069
1070
  AX: "\xC5land Islands",
1070
1071
  AL: "Albania",
@@ -1344,6 +1345,7 @@ var input_select_default2 = messages5;
1344
1345
  // src/i18n/messages/es/input-phone.ts
1345
1346
  var messages6 = {
1346
1347
  countries: {
1348
+ empty: "Seleccionar",
1347
1349
  AF: "Afganist\xE1n",
1348
1350
  AX: "Islas \xC5land",
1349
1351
  AL: "Albania",
@@ -1623,6 +1625,7 @@ var input_select_default3 = messages8;
1623
1625
  // src/i18n/messages/pt-br/input-phone.ts
1624
1626
  var messages9 = {
1625
1627
  countries: {
1628
+ empty: "Selecione",
1626
1629
  AF: "Afeganist\xE3o",
1627
1630
  AX: "Ilhas \xC5land",
1628
1631
  AL: "Alb\xE2nia",
@@ -3529,19 +3532,22 @@ var CountrySelect = ({
3529
3532
  /* @__PURE__ */ jsxRuntime.jsx(FlagComponent, { country: value, countryName: value, "aria-hidden": "true" }),
3530
3533
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "nebula-ds text-inputText-text-filled focus:text-inputText-text-focus", children: /* @__PURE__ */ jsxRuntime.jsx(ChevronDown, { size: 16, "aria-hidden": "true" }) })
3531
3534
  ] }),
3532
- /* @__PURE__ */ jsxRuntime.jsx(
3535
+ /* @__PURE__ */ jsxRuntime.jsxs(
3533
3536
  "select",
3534
3537
  {
3535
3538
  disabled,
3536
- value,
3539
+ value: value ?? "empty",
3537
3540
  onChange: handleSelect,
3538
3541
  className: "nebula-ds absolute bg-inputText-background-default inset-0 text-sm opacity-0 text-inputText-text-filled focus:text-inputText-text-focus",
3539
3542
  "aria-label": "Select country",
3540
- children: options.filter((x) => x.value).map((option, i) => /* @__PURE__ */ jsxRuntime.jsxs("option", { value: option.value, children: [
3541
- option.value && countries[option.value],
3542
- " ",
3543
- option.value && `+${RPNInput__namespace.getCountryCallingCode(option.value)}`
3544
- ] }, option.value ?? `empty-${i}`))
3543
+ children: [
3544
+ /* @__PURE__ */ jsxRuntime.jsx("option", { value: "empty", children: countries.empty }),
3545
+ options.filter((x) => x.value).map((option, i) => /* @__PURE__ */ jsxRuntime.jsxs("option", { value: option.value, children: [
3546
+ option.value && countries[option.value],
3547
+ " ",
3548
+ option.value && `+${RPNInput__namespace.getCountryCallingCode(option.value)}`
3549
+ ] }, option.value ?? `empty-${i}`))
3550
+ ]
3545
3551
  }
3546
3552
  )
3547
3553
  ] });
@@ -3632,7 +3638,6 @@ function InputPhone({
3632
3638
  inputComponent: PhoneInput,
3633
3639
  disabled,
3634
3640
  international: true,
3635
- limitMaxLength: true,
3636
3641
  defaultCountry: isFirstRender && (!value || value === "") ? defaultCountry : valueState ? defaultCountry : void 0,
3637
3642
  countryCallingCodeEditable: true,
3638
3643
  ...props,
package/dist/index.mjs CHANGED
@@ -1025,6 +1025,7 @@ var input_select_default = messages2;
1025
1025
  // src/i18n/messages/en/input-phone.ts
1026
1026
  var messages3 = {
1027
1027
  countries: {
1028
+ empty: "Select",
1028
1029
  AF: "Afghanistan",
1029
1030
  AX: "\xC5land Islands",
1030
1031
  AL: "Albania",
@@ -1304,6 +1305,7 @@ var input_select_default2 = messages5;
1304
1305
  // src/i18n/messages/es/input-phone.ts
1305
1306
  var messages6 = {
1306
1307
  countries: {
1308
+ empty: "Seleccionar",
1307
1309
  AF: "Afganist\xE1n",
1308
1310
  AX: "Islas \xC5land",
1309
1311
  AL: "Albania",
@@ -1583,6 +1585,7 @@ var input_select_default3 = messages8;
1583
1585
  // src/i18n/messages/pt-br/input-phone.ts
1584
1586
  var messages9 = {
1585
1587
  countries: {
1588
+ empty: "Selecione",
1586
1589
  AF: "Afeganist\xE3o",
1587
1590
  AX: "Ilhas \xC5land",
1588
1591
  AL: "Alb\xE2nia",
@@ -3489,19 +3492,22 @@ var CountrySelect = ({
3489
3492
  /* @__PURE__ */ jsx(FlagComponent, { country: value, countryName: value, "aria-hidden": "true" }),
3490
3493
  /* @__PURE__ */ jsx("span", { className: "nebula-ds text-inputText-text-filled focus:text-inputText-text-focus", children: /* @__PURE__ */ jsx(ChevronDown, { size: 16, "aria-hidden": "true" }) })
3491
3494
  ] }),
3492
- /* @__PURE__ */ jsx(
3495
+ /* @__PURE__ */ jsxs(
3493
3496
  "select",
3494
3497
  {
3495
3498
  disabled,
3496
- value,
3499
+ value: value ?? "empty",
3497
3500
  onChange: handleSelect,
3498
3501
  className: "nebula-ds absolute bg-inputText-background-default inset-0 text-sm opacity-0 text-inputText-text-filled focus:text-inputText-text-focus",
3499
3502
  "aria-label": "Select country",
3500
- children: options.filter((x) => x.value).map((option, i) => /* @__PURE__ */ jsxs("option", { value: option.value, children: [
3501
- option.value && countries[option.value],
3502
- " ",
3503
- option.value && `+${RPNInput.getCountryCallingCode(option.value)}`
3504
- ] }, option.value ?? `empty-${i}`))
3503
+ children: [
3504
+ /* @__PURE__ */ jsx("option", { value: "empty", children: countries.empty }),
3505
+ options.filter((x) => x.value).map((option, i) => /* @__PURE__ */ jsxs("option", { value: option.value, children: [
3506
+ option.value && countries[option.value],
3507
+ " ",
3508
+ option.value && `+${RPNInput.getCountryCallingCode(option.value)}`
3509
+ ] }, option.value ?? `empty-${i}`))
3510
+ ]
3505
3511
  }
3506
3512
  )
3507
3513
  ] });
@@ -3592,7 +3598,6 @@ function InputPhone({
3592
3598
  inputComponent: PhoneInput,
3593
3599
  disabled,
3594
3600
  international: true,
3595
- limitMaxLength: true,
3596
3601
  defaultCountry: isFirstRender && (!value || value === "") ? defaultCountry : valueState ? defaultCountry : void 0,
3597
3602
  countryCallingCodeEditable: true,
3598
3603
  ...props,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikatec/nebula-react",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
4
4
  "description": "React components",
5
5
  "publishConfig": {
6
6
  "access": "public"