@drawbridge/components 0.0.52 → 0.0.55

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.
@@ -1,4 +1,7 @@
1
1
  "use client";
2
+ import {
3
+ chevron_down_default
4
+ } from "./chunk-FYA7EAMR.mjs";
2
5
  import {
3
6
  inputPhoneStyle
4
7
  } from "./chunk-FJ7PKMAC.mjs";
@@ -66,28 +69,55 @@ var InputPhone = ({
66
69
  style: inputPhoneStyle(style)
67
70
  },
68
71
  children: [
69
- (countries == null ? void 0 : countries.length) > 1 ? /* @__PURE__ */ jsx(
70
- "select",
72
+ (countries == null ? void 0 : countries.length) > 1 ? /* @__PURE__ */ jsxs(
73
+ "div",
71
74
  {
72
75
  ...{
73
- className: "px-3 bg-none appearance-none border-none " + (keyboard ? "focus-visible:!border focus-visible:!border-inherit !rounded-none " : "focus-visible:!outline-0 focus-visible:!ring-0"),
74
- onChange: ({ target }) => {
75
- setCountry(target.value);
76
- setNumber("");
77
- },
78
- style: inputPhoneStyle(style),
79
- value: country
76
+ className: "relative"
80
77
  },
81
- children: countries.map((item, key) => /* @__PURE__ */ jsx(
82
- "option",
83
- {
84
- ...{
85
- value: item
86
- },
87
- children: item
88
- },
89
- "input-phone-country-" + item + "-" + key
90
- ))
78
+ children: [
79
+ /* @__PURE__ */ jsx(
80
+ "select",
81
+ {
82
+ ...{
83
+ className: "pl-3 pr-6 bg-none appearance-none border-none " + (keyboard ? "focus-visible:!border focus-visible:!border-inherit !rounded-none " : "focus-visible:!outline-0 focus-visible:!ring-0"),
84
+ onChange: ({ target }) => {
85
+ setCountry(target.value);
86
+ setNumber("");
87
+ },
88
+ style: inputPhoneStyle(style),
89
+ value: country
90
+ },
91
+ children: countries.map((item, key) => /* @__PURE__ */ jsx(
92
+ "option",
93
+ {
94
+ ...{
95
+ value: item
96
+ },
97
+ children: item
98
+ },
99
+ "input-phone-country-" + item + "-" + key
100
+ ))
101
+ }
102
+ ),
103
+ /* @__PURE__ */ jsx(
104
+ "div",
105
+ {
106
+ ...{
107
+ "aria-hidden": true,
108
+ className: "h-full flex items-center absolute inset-y-0 right-1.5 pointer-events-none"
109
+ },
110
+ children: /* @__PURE__ */ jsx(
111
+ chevron_down_default,
112
+ {
113
+ ...{
114
+ className: "w-4 h-4 text-inherit"
115
+ }
116
+ }
117
+ )
118
+ }
119
+ )
120
+ ]
91
121
  }
92
122
  ) : /* @__PURE__ */ jsx(
93
123
  "span",