@ikatec/nebula-react 1.0.11 → 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
@@ -179,7 +179,7 @@ var buttonVariantsConfig = classVarianceAuthority.cva(
179
179
  items-center
180
180
  justify-center
181
181
  whitespace-nowrap
182
- rounded-full
182
+ rounded-button
183
183
  font-semibold
184
184
  ring-offset-background
185
185
  transition-colors
@@ -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",
@@ -2266,7 +2269,7 @@ var Option = (props) => {
2266
2269
  };
2267
2270
  var controlStyles = ({ isDisabled, isFocused }, isError) => {
2268
2271
  return cn(
2269
- "flex w-full items-center border bg-inputSelect-default-background rounded-[20px] px-4 min-h-10 transition",
2272
+ "flex w-full items-center border bg-inputSelect-default-background rounded-input px-4 min-h-10 transition",
2270
2273
  {
2271
2274
  "ring-[3px] border-inputSelect-focus-border text-inputSelect-focus-text ring-inputSelect-focus-border": isFocused,
2272
2275
  "border-inputSelect-danger-border text-inputSelect-danger-icon": isError,
@@ -2382,7 +2385,7 @@ var InputText = React8__namespace.forwardRef(
2382
2385
  {
2383
2386
  ref,
2384
2387
  className: cn(
2385
- "w-full h-10 outline-none rounded-[20px] text-sm leading-none font-medium",
2388
+ "w-full h-10 outline-none rounded-input text-sm leading-none font-medium",
2386
2389
  "bg-inputText-background-default disabled:bg-inputText-background-disabled",
2387
2390
  "border border-inputText-border-default focus:ring-[3px] focus:ring-inputText-border-focus focus:border-inputText-border-focus",
2388
2391
  "text-inputText-text-filled focus:text-inputText-text-focus placeholder:text-inputText-text-default disabled:text-inputText-text-disabled",
@@ -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
  ] });
@@ -3620,7 +3626,7 @@ function InputPhone({
3620
3626
  RPNInput__namespace.default,
3621
3627
  {
3622
3628
  className: cn(
3623
- "flex w-full h-10 bg-inputText-background-default rounded-[20px] border border-inputText-border-default focus-within:ring-[3px] focus-within:ring-inputText-border-focus focus-within:border-inputText-border-focus",
3629
+ "flex w-full h-10 bg-inputText-background-default rounded-input border border-inputText-border-default focus-within:ring-[3px] focus-within:ring-inputText-border-focus focus-within:border-inputText-border-focus",
3624
3630
  { "bg-inputText-background-disabled": disabled },
3625
3631
  {
3626
3632
  "text-inputText-icon-danger border-inputText-border-danger focus-within:border-inputText-border-danger focus-within:ring-button-danger-border-focus": isError
@@ -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
@@ -139,7 +139,7 @@ var buttonVariantsConfig = cva(
139
139
  items-center
140
140
  justify-center
141
141
  whitespace-nowrap
142
- rounded-full
142
+ rounded-button
143
143
  font-semibold
144
144
  ring-offset-background
145
145
  transition-colors
@@ -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",
@@ -2226,7 +2229,7 @@ var Option = (props) => {
2226
2229
  };
2227
2230
  var controlStyles = ({ isDisabled, isFocused }, isError) => {
2228
2231
  return cn(
2229
- "flex w-full items-center border bg-inputSelect-default-background rounded-[20px] px-4 min-h-10 transition",
2232
+ "flex w-full items-center border bg-inputSelect-default-background rounded-input px-4 min-h-10 transition",
2230
2233
  {
2231
2234
  "ring-[3px] border-inputSelect-focus-border text-inputSelect-focus-text ring-inputSelect-focus-border": isFocused,
2232
2235
  "border-inputSelect-danger-border text-inputSelect-danger-icon": isError,
@@ -2342,7 +2345,7 @@ var InputText = React8.forwardRef(
2342
2345
  {
2343
2346
  ref,
2344
2347
  className: cn(
2345
- "w-full h-10 outline-none rounded-[20px] text-sm leading-none font-medium",
2348
+ "w-full h-10 outline-none rounded-input text-sm leading-none font-medium",
2346
2349
  "bg-inputText-background-default disabled:bg-inputText-background-disabled",
2347
2350
  "border border-inputText-border-default focus:ring-[3px] focus:ring-inputText-border-focus focus:border-inputText-border-focus",
2348
2351
  "text-inputText-text-filled focus:text-inputText-text-focus placeholder:text-inputText-text-default disabled:text-inputText-text-disabled",
@@ -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
  ] });
@@ -3580,7 +3586,7 @@ function InputPhone({
3580
3586
  RPNInput.default,
3581
3587
  {
3582
3588
  className: cn(
3583
- "flex w-full h-10 bg-inputText-background-default rounded-[20px] border border-inputText-border-default focus-within:ring-[3px] focus-within:ring-inputText-border-focus focus-within:border-inputText-border-focus",
3589
+ "flex w-full h-10 bg-inputText-background-default rounded-input border border-inputText-border-default focus-within:ring-[3px] focus-within:ring-inputText-border-focus focus-within:border-inputText-border-focus",
3584
3590
  { "bg-inputText-background-disabled": disabled },
3585
3591
  {
3586
3592
  "text-inputText-icon-danger border-inputText-border-danger focus-within:border-inputText-border-danger focus-within:ring-button-danger-border-focus": isError
@@ -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.11",
3
+ "version": "1.0.13",
4
4
  "description": "React components",
5
5
  "publishConfig": {
6
6
  "access": "public"