azeriand-library 1.17.7 → 1.18.0
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.esm.js +16 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +16 -3
- package/dist/index.umd.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -16017,15 +16017,28 @@ function Checkbox({ label, checkedDefault = false, onChange }) {
|
|
|
16017
16017
|
function SectionName({ section, className }) {
|
|
16018
16018
|
return /* @__PURE__ */ jsx$1("div", { className: `uppercase font-bold tracking-[0.15rem] w-fit section-name ${className}`, children: section });
|
|
16019
16019
|
}
|
|
16020
|
-
function Input({ type, value, disabled, placeholder, maxLength, onChange, iconPosition = "left", centerText = false, icon, className, ...cardProps }) {
|
|
16020
|
+
function Input({ type = "text", value, disabled, placeholder, maxLength, onChange, iconPosition = "left", centerText = false, icon, className, ...cardProps }) {
|
|
16021
16021
|
function inputUpdated(ev) {
|
|
16022
16022
|
onChange == null ? void 0 : onChange(ev.target.value);
|
|
16023
16023
|
}
|
|
16024
|
-
const
|
|
16024
|
+
const normalizedValue = value ?? "";
|
|
16025
|
+
const inputClassName = `flex justify-center items-center border-none bg-transparent py-[0.5rem] ${icon && iconPosition ? "px-[0.5rem]" : "px-[1rem]"} m-0 w-full ${centerText ? "text-center" : ""}`;
|
|
16025
16026
|
const directionClassName = iconPosition === "left" ? "pl-3" : "flex-row-reverse pr-3";
|
|
16026
16027
|
return /* @__PURE__ */ jsxs(Card, { className: `flex justify-center items-center rounded-md ${className} ${icon ? directionClassName : ""}`, noBlur: true, noPadding: true, ...cardProps, style: cardProps.style, children: [
|
|
16027
16028
|
icon && /* @__PURE__ */ jsx$1("div", { className: "flex items-center", children: icon }),
|
|
16028
|
-
/* @__PURE__ */ jsx$1(
|
|
16029
|
+
/* @__PURE__ */ jsx$1(
|
|
16030
|
+
"input",
|
|
16031
|
+
{
|
|
16032
|
+
className: inputClassName,
|
|
16033
|
+
onChange: inputUpdated,
|
|
16034
|
+
placeholder,
|
|
16035
|
+
value: normalizedValue,
|
|
16036
|
+
disabled,
|
|
16037
|
+
type,
|
|
16038
|
+
maxLength,
|
|
16039
|
+
style: cardProps.style
|
|
16040
|
+
}
|
|
16041
|
+
)
|
|
16029
16042
|
] });
|
|
16030
16043
|
}
|
|
16031
16044
|
function CustomDay(props) {
|