@tecsinapse/cortex-react 2.1.0-beta.2 → 2.1.0-beta.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.
@@ -83,40 +83,33 @@ const PhoneInputTrigger = ({
83
83
  setTriggerWidth(width);
84
84
  }
85
85
  }, [triggerRef.current, setTriggerWidth]);
86
- return /* @__PURE__ */ jsxRuntime.jsx(index.Popover.Trigger, { disabled, children: /* @__PURE__ */ jsxRuntime.jsxs(
87
- index$1.Input.Face,
88
- {
89
- variants: { className: "outline-none border-1" },
90
- ref: triggerRef,
91
- children: [
92
- /* @__PURE__ */ jsxRuntime.jsx(
93
- index$1.Input.Box,
94
- {
95
- value: inputValue,
96
- onChange: handlePhoneValueChange,
97
- placeholder: label
98
- }
99
- ),
100
- /* @__PURE__ */ jsxRuntime.jsx(index$1.Input.Right, { children: /* @__PURE__ */ jsxRuntime.jsxs(
101
- "div",
102
- {
103
- className: "flex items-center gap-1 cursor-pointer w-full",
104
- onClick: () => setIsOpen?.(true),
105
- children: [
106
- country ? /* @__PURE__ */ jsxRuntime.jsx(
107
- "img",
108
- {
109
- src: `https://purecatamphetamine.github.io/country-flag-icons/3x2/${country?.iso2.toUpperCase()}.svg`,
110
- className: "w-[25px]"
111
- }
112
- ) : null,
113
- /* @__PURE__ */ jsxRuntime.jsx(io5.IoChevronDown, { className: "h-full text-md" })
114
- ]
115
- }
116
- ) })
117
- ]
118
- }
119
- ) });
86
+ return /* @__PURE__ */ jsxRuntime.jsx(index.Popover.Trigger, { disabled, children: /* @__PURE__ */ jsxRuntime.jsxs(index$1.Input.Face, { ref: triggerRef, children: [
87
+ /* @__PURE__ */ jsxRuntime.jsx(
88
+ index$1.Input.Box,
89
+ {
90
+ value: inputValue,
91
+ onChange: handlePhoneValueChange,
92
+ placeholder: label
93
+ }
94
+ ),
95
+ /* @__PURE__ */ jsxRuntime.jsx(index$1.Input.Right, { children: /* @__PURE__ */ jsxRuntime.jsxs(
96
+ "div",
97
+ {
98
+ className: "flex items-center gap-1 cursor-pointer w-full",
99
+ onClick: () => setIsOpen?.(true),
100
+ children: [
101
+ country ? /* @__PURE__ */ jsxRuntime.jsx(
102
+ "img",
103
+ {
104
+ src: `https://purecatamphetamine.github.io/country-flag-icons/3x2/${country?.iso2.toUpperCase()}.svg`,
105
+ className: "w-[25px]"
106
+ }
107
+ ) : null,
108
+ /* @__PURE__ */ jsxRuntime.jsx(io5.IoChevronDown, { className: "h-full text-md" })
109
+ ]
110
+ }
111
+ ) })
112
+ ] }) });
120
113
  };
121
114
 
122
115
  exports.PhoneInputTrigger = PhoneInputTrigger;
@@ -81,40 +81,33 @@ const PhoneInputTrigger = ({
81
81
  setTriggerWidth(width);
82
82
  }
83
83
  }, [triggerRef.current, setTriggerWidth]);
84
- return /* @__PURE__ */ jsx(Popover.Trigger, { disabled, children: /* @__PURE__ */ jsxs(
85
- Input.Face,
86
- {
87
- variants: { className: "outline-none border-1" },
88
- ref: triggerRef,
89
- children: [
90
- /* @__PURE__ */ jsx(
91
- Input.Box,
92
- {
93
- value: inputValue,
94
- onChange: handlePhoneValueChange,
95
- placeholder: label
96
- }
97
- ),
98
- /* @__PURE__ */ jsx(Input.Right, { children: /* @__PURE__ */ jsxs(
99
- "div",
100
- {
101
- className: "flex items-center gap-1 cursor-pointer w-full",
102
- onClick: () => setIsOpen?.(true),
103
- children: [
104
- country ? /* @__PURE__ */ jsx(
105
- "img",
106
- {
107
- src: `https://purecatamphetamine.github.io/country-flag-icons/3x2/${country?.iso2.toUpperCase()}.svg`,
108
- className: "w-[25px]"
109
- }
110
- ) : null,
111
- /* @__PURE__ */ jsx(IoChevronDown, { className: "h-full text-md" })
112
- ]
113
- }
114
- ) })
115
- ]
116
- }
117
- ) });
84
+ return /* @__PURE__ */ jsx(Popover.Trigger, { disabled, children: /* @__PURE__ */ jsxs(Input.Face, { ref: triggerRef, children: [
85
+ /* @__PURE__ */ jsx(
86
+ Input.Box,
87
+ {
88
+ value: inputValue,
89
+ onChange: handlePhoneValueChange,
90
+ placeholder: label
91
+ }
92
+ ),
93
+ /* @__PURE__ */ jsx(Input.Right, { children: /* @__PURE__ */ jsxs(
94
+ "div",
95
+ {
96
+ className: "flex items-center gap-1 cursor-pointer w-full",
97
+ onClick: () => setIsOpen?.(true),
98
+ children: [
99
+ country ? /* @__PURE__ */ jsx(
100
+ "img",
101
+ {
102
+ src: `https://purecatamphetamine.github.io/country-flag-icons/3x2/${country?.iso2.toUpperCase()}.svg`,
103
+ className: "w-[25px]"
104
+ }
105
+ ) : null,
106
+ /* @__PURE__ */ jsx(IoChevronDown, { className: "h-full text-md" })
107
+ ]
108
+ }
109
+ ) })
110
+ ] }) });
118
111
  };
119
112
 
120
113
  export { PhoneInputTrigger };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tecsinapse/cortex-react",
3
- "version": "2.1.0-beta.2",
3
+ "version": "2.1.0-beta.3",
4
4
  "description": "React components based in @tecsinapse/cortex-core",
5
5
  "license": "MIT",
6
6
  "main": "dist/esm/index.js",
@@ -49,5 +49,5 @@
49
49
  "react-icons": ">=5.2.0",
50
50
  "tailwindcss": "^4.1.16"
51
51
  },
52
- "gitHead": "36974495059d2d5bba9fdaf2ef46a82eb44bfeb4"
52
+ "gitHead": "8af4d198dc4eafe396d13b27b805bef0f2b59625"
53
53
  }