react-better-html 1.1.91 → 1.1.92
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.d.mts +12 -1
- package/dist/index.d.ts +12 -1
- package/dist/index.js +33 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +33 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2477,7 +2477,7 @@ Image.profileImage = forwardRef4(function ProfileImage({ size = 40, letters, bac
|
|
|
2477
2477
|
justifyContent: "center",
|
|
2478
2478
|
ref,
|
|
2479
2479
|
...props,
|
|
2480
|
-
children: /* @__PURE__ */ jsx6(Text_default, { fontWeight: 700, children: letters.toUpperCase().slice(0, 2) })
|
|
2480
|
+
children: /* @__PURE__ */ jsx6(Text_default, { fontSize: size / 2.5, fontWeight: 700, children: letters.toUpperCase().slice(0, 2) })
|
|
2481
2481
|
}
|
|
2482
2482
|
) : /* @__PURE__ */ jsx6(Image, { width: size, height: size, borderRadius: 999, objectFit: "cover", ref, ...props });
|
|
2483
2483
|
});
|
|
@@ -5148,7 +5148,39 @@ var DropdownComponent = forwardRef7(function Dropdown({
|
|
|
5148
5148
|
)
|
|
5149
5149
|
] }) });
|
|
5150
5150
|
});
|
|
5151
|
+
DropdownComponent.countries = forwardRef7(function Countries({ ...props }, ref) {
|
|
5152
|
+
const theme2 = useTheme();
|
|
5153
|
+
const renderOption = useCallback6(
|
|
5154
|
+
(option, index, isSelected) => /* @__PURE__ */ jsxs8(Div_default.row, { alignItems: "center", gap: theme2.styles.gap, children: [
|
|
5155
|
+
/* @__PURE__ */ jsx13(Image_default, { src: `https://flagcdn.com/w80/${option.data?.code.toString().toLowerCase()}.webp`, width: 20 }),
|
|
5156
|
+
/* @__PURE__ */ jsx13(Text_default, { children: option.label })
|
|
5157
|
+
] }),
|
|
5158
|
+
[]
|
|
5159
|
+
);
|
|
5160
|
+
const options = useMemo3(
|
|
5161
|
+
() => countries.map(
|
|
5162
|
+
(country) => ({
|
|
5163
|
+
value: country.code,
|
|
5164
|
+
label: country.name,
|
|
5165
|
+
data: country,
|
|
5166
|
+
searchValues: [country.code]
|
|
5167
|
+
})
|
|
5168
|
+
),
|
|
5169
|
+
[]
|
|
5170
|
+
);
|
|
5171
|
+
return /* @__PURE__ */ jsx13(
|
|
5172
|
+
DropdownComponent,
|
|
5173
|
+
{
|
|
5174
|
+
placeholder: "Select a country",
|
|
5175
|
+
options,
|
|
5176
|
+
renderOption,
|
|
5177
|
+
ref,
|
|
5178
|
+
...props
|
|
5179
|
+
}
|
|
5180
|
+
);
|
|
5181
|
+
});
|
|
5151
5182
|
var Dropdown2 = memo14(DropdownComponent);
|
|
5183
|
+
Dropdown2.countries = DropdownComponent.countries;
|
|
5152
5184
|
var Dropdown_default = Dropdown2;
|
|
5153
5185
|
|
|
5154
5186
|
// src/components/Calendar.tsx
|