@algorithm-shift/design-system 1.2.57 → 1.2.58
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 +13 -13
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -13
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -26885,7 +26885,7 @@ var TextInput = ({ className, style, ...props }) => {
|
|
|
26885
26885
|
...style,
|
|
26886
26886
|
borderColor: props.errorMessage ? "#f87171" : style?.borderColor
|
|
26887
26887
|
},
|
|
26888
|
-
value: props.value,
|
|
26888
|
+
value: props.value || "",
|
|
26889
26889
|
autoComplete: isAutocomplete ? "on" : "off",
|
|
26890
26890
|
placeholder,
|
|
26891
26891
|
onChange: handleChange,
|
|
@@ -26918,7 +26918,7 @@ var NumberInput = ({ className, style, ...props }) => {
|
|
|
26918
26918
|
type: "number",
|
|
26919
26919
|
id: props.name || "number-field",
|
|
26920
26920
|
name: props.name,
|
|
26921
|
-
value: props.value,
|
|
26921
|
+
value: props.value || "",
|
|
26922
26922
|
className: cn(className, props.errorMessage ? "border-red-500" : ""),
|
|
26923
26923
|
style: {
|
|
26924
26924
|
...style,
|
|
@@ -26956,7 +26956,7 @@ var EmailInput = ({ className, style, ...props }) => {
|
|
|
26956
26956
|
{
|
|
26957
26957
|
type: "email",
|
|
26958
26958
|
name: props.name,
|
|
26959
|
-
value: props.value,
|
|
26959
|
+
value: props.value || "",
|
|
26960
26960
|
className: cn(className, props.errorMessage ? "border-red-500" : ""),
|
|
26961
26961
|
style: {
|
|
26962
26962
|
...style,
|
|
@@ -26995,7 +26995,7 @@ var PasswordInput = ({ className, style, ...props }) => {
|
|
|
26995
26995
|
type: "password",
|
|
26996
26996
|
id: props.name || "password-field",
|
|
26997
26997
|
name: props.name,
|
|
26998
|
-
value: props.value,
|
|
26998
|
+
value: props.value || "",
|
|
26999
26999
|
className: cn(className, props.errorMessage ? "border-red-500" : ""),
|
|
27000
27000
|
style: {
|
|
27001
27001
|
...style,
|
|
@@ -27047,7 +27047,7 @@ var Textarea2 = ({ className, style, ...props }) => {
|
|
|
27047
27047
|
{
|
|
27048
27048
|
id: "textarea-field",
|
|
27049
27049
|
name: props.name,
|
|
27050
|
-
value: props.value,
|
|
27050
|
+
value: props.value || "",
|
|
27051
27051
|
className: cn(className, props.errorMessage ? "border-red-500" : ""),
|
|
27052
27052
|
style: {
|
|
27053
27053
|
...style,
|
|
@@ -27085,7 +27085,7 @@ var UrlInput = ({ className, style, ...props }) => {
|
|
|
27085
27085
|
id: "url-field",
|
|
27086
27086
|
type: "url",
|
|
27087
27087
|
name: props.name,
|
|
27088
|
-
value: props.value,
|
|
27088
|
+
value: props.value || "",
|
|
27089
27089
|
className: cn(className, props.errorMessage ? "border-red-500" : ""),
|
|
27090
27090
|
style: {
|
|
27091
27091
|
...style,
|
|
@@ -27399,7 +27399,7 @@ function RichText({ className, style, ...props }) {
|
|
|
27399
27399
|
borderColor: props.errorMessage ? "#f87171" : style?.borderColor
|
|
27400
27400
|
},
|
|
27401
27401
|
children: [
|
|
27402
|
-
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(MyEditor, { onChange: (content) => props.onChange?.(content), value: props.value, isDefault: true }),
|
|
27402
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(MyEditor, { onChange: (content) => props.onChange?.(content), value: props.value || "", isDefault: true }),
|
|
27403
27403
|
props.errorMessage && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
|
|
27404
27404
|
]
|
|
27405
27405
|
}
|
|
@@ -27550,7 +27550,7 @@ var Dropdown = ({ className, style, ...props }) => {
|
|
|
27550
27550
|
label: item[dataLabel]
|
|
27551
27551
|
}));
|
|
27552
27552
|
return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(import_jsx_runtime33.Fragment, { children: [
|
|
27553
|
-
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(Select, { name: props.name, value: props.value, onValueChange: handleChange, disabled: isDisabled || !isEditable, children: [
|
|
27553
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(Select, { name: props.name, value: props.value || "", onValueChange: handleChange, disabled: isDisabled || !isEditable, children: [
|
|
27554
27554
|
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
27555
27555
|
SelectTrigger,
|
|
27556
27556
|
{
|
|
@@ -27643,7 +27643,7 @@ var PhoneInput = ({ className, style, ...props }) => {
|
|
|
27643
27643
|
{
|
|
27644
27644
|
defaultCountry: "in",
|
|
27645
27645
|
name: props.name,
|
|
27646
|
-
value: props.value,
|
|
27646
|
+
value: props.value || "",
|
|
27647
27647
|
className: cn(className, props.errorMessage ? "border-red-500" : ""),
|
|
27648
27648
|
style: {
|
|
27649
27649
|
...style,
|
|
@@ -27682,7 +27682,7 @@ var SearchInput = ({ className, style, ...props }) => {
|
|
|
27682
27682
|
type: "text",
|
|
27683
27683
|
id: props.name || "text-field",
|
|
27684
27684
|
name: props.name,
|
|
27685
|
-
value: props.value,
|
|
27685
|
+
value: props.value || "",
|
|
27686
27686
|
className: cn(className, props.errorMessage ? "border-red-500" : ""),
|
|
27687
27687
|
style: {
|
|
27688
27688
|
...style,
|
|
@@ -27712,7 +27712,7 @@ var FileInput2 = ({ className, style, ...props }) => {
|
|
|
27712
27712
|
type: "file",
|
|
27713
27713
|
id: "file",
|
|
27714
27714
|
name: props.name,
|
|
27715
|
-
value: props.value,
|
|
27715
|
+
value: props.value || "",
|
|
27716
27716
|
className: cn(className, props.errorMessage ? "border-red-500" : ""),
|
|
27717
27717
|
style: {
|
|
27718
27718
|
...style,
|
|
@@ -27771,7 +27771,7 @@ function DatePicker({ className, style, ...props }) {
|
|
|
27771
27771
|
onChange: handleChange,
|
|
27772
27772
|
disabled: isDisabled || !isEditable,
|
|
27773
27773
|
name: props.name,
|
|
27774
|
-
value: props.value,
|
|
27774
|
+
value: props.value || "",
|
|
27775
27775
|
className: cn(
|
|
27776
27776
|
className,
|
|
27777
27777
|
props.errorMessage ? "border-red-500" : "",
|
|
@@ -28091,7 +28091,7 @@ var TextInputGroup = ({ className, style, prepend, append, ...props }) => {
|
|
|
28091
28091
|
id: props.name || "prepend-input",
|
|
28092
28092
|
type: "url",
|
|
28093
28093
|
name: props.name,
|
|
28094
|
-
value: props.value,
|
|
28094
|
+
value: props.value || "",
|
|
28095
28095
|
className: cn(
|
|
28096
28096
|
className,
|
|
28097
28097
|
"rounded-none flex-1 border-none focus:ring-0"
|