@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.mjs
CHANGED
|
@@ -26793,7 +26793,7 @@ var TextInput = ({ className, style, ...props }) => {
|
|
|
26793
26793
|
...style,
|
|
26794
26794
|
borderColor: props.errorMessage ? "#f87171" : style?.borderColor
|
|
26795
26795
|
},
|
|
26796
|
-
value: props.value,
|
|
26796
|
+
value: props.value || "",
|
|
26797
26797
|
autoComplete: isAutocomplete ? "on" : "off",
|
|
26798
26798
|
placeholder,
|
|
26799
26799
|
onChange: handleChange,
|
|
@@ -26826,7 +26826,7 @@ var NumberInput = ({ className, style, ...props }) => {
|
|
|
26826
26826
|
type: "number",
|
|
26827
26827
|
id: props.name || "number-field",
|
|
26828
26828
|
name: props.name,
|
|
26829
|
-
value: props.value,
|
|
26829
|
+
value: props.value || "",
|
|
26830
26830
|
className: cn(className, props.errorMessage ? "border-red-500" : ""),
|
|
26831
26831
|
style: {
|
|
26832
26832
|
...style,
|
|
@@ -26864,7 +26864,7 @@ var EmailInput = ({ className, style, ...props }) => {
|
|
|
26864
26864
|
{
|
|
26865
26865
|
type: "email",
|
|
26866
26866
|
name: props.name,
|
|
26867
|
-
value: props.value,
|
|
26867
|
+
value: props.value || "",
|
|
26868
26868
|
className: cn(className, props.errorMessage ? "border-red-500" : ""),
|
|
26869
26869
|
style: {
|
|
26870
26870
|
...style,
|
|
@@ -26903,7 +26903,7 @@ var PasswordInput = ({ className, style, ...props }) => {
|
|
|
26903
26903
|
type: "password",
|
|
26904
26904
|
id: props.name || "password-field",
|
|
26905
26905
|
name: props.name,
|
|
26906
|
-
value: props.value,
|
|
26906
|
+
value: props.value || "",
|
|
26907
26907
|
className: cn(className, props.errorMessage ? "border-red-500" : ""),
|
|
26908
26908
|
style: {
|
|
26909
26909
|
...style,
|
|
@@ -26955,7 +26955,7 @@ var Textarea2 = ({ className, style, ...props }) => {
|
|
|
26955
26955
|
{
|
|
26956
26956
|
id: "textarea-field",
|
|
26957
26957
|
name: props.name,
|
|
26958
|
-
value: props.value,
|
|
26958
|
+
value: props.value || "",
|
|
26959
26959
|
className: cn(className, props.errorMessage ? "border-red-500" : ""),
|
|
26960
26960
|
style: {
|
|
26961
26961
|
...style,
|
|
@@ -26993,7 +26993,7 @@ var UrlInput = ({ className, style, ...props }) => {
|
|
|
26993
26993
|
id: "url-field",
|
|
26994
26994
|
type: "url",
|
|
26995
26995
|
name: props.name,
|
|
26996
|
-
value: props.value,
|
|
26996
|
+
value: props.value || "",
|
|
26997
26997
|
className: cn(className, props.errorMessage ? "border-red-500" : ""),
|
|
26998
26998
|
style: {
|
|
26999
26999
|
...style,
|
|
@@ -27307,7 +27307,7 @@ function RichText({ className, style, ...props }) {
|
|
|
27307
27307
|
borderColor: props.errorMessage ? "#f87171" : style?.borderColor
|
|
27308
27308
|
},
|
|
27309
27309
|
children: [
|
|
27310
|
-
/* @__PURE__ */ jsx31(MyEditor, { onChange: (content) => props.onChange?.(content), value: props.value, isDefault: true }),
|
|
27310
|
+
/* @__PURE__ */ jsx31(MyEditor, { onChange: (content) => props.onChange?.(content), value: props.value || "", isDefault: true }),
|
|
27311
27311
|
props.errorMessage && /* @__PURE__ */ jsx31("p", { className: "mt-1 text-xs text-red-500", children: props.errorMessage })
|
|
27312
27312
|
]
|
|
27313
27313
|
}
|
|
@@ -27458,7 +27458,7 @@ var Dropdown = ({ className, style, ...props }) => {
|
|
|
27458
27458
|
label: item[dataLabel]
|
|
27459
27459
|
}));
|
|
27460
27460
|
return /* @__PURE__ */ jsxs17(Fragment10, { children: [
|
|
27461
|
-
/* @__PURE__ */ jsxs17(Select, { name: props.name, value: props.value, onValueChange: handleChange, disabled: isDisabled || !isEditable, children: [
|
|
27461
|
+
/* @__PURE__ */ jsxs17(Select, { name: props.name, value: props.value || "", onValueChange: handleChange, disabled: isDisabled || !isEditable, children: [
|
|
27462
27462
|
/* @__PURE__ */ jsx33(
|
|
27463
27463
|
SelectTrigger,
|
|
27464
27464
|
{
|
|
@@ -27551,7 +27551,7 @@ var PhoneInput = ({ className, style, ...props }) => {
|
|
|
27551
27551
|
{
|
|
27552
27552
|
defaultCountry: "in",
|
|
27553
27553
|
name: props.name,
|
|
27554
|
-
value: props.value,
|
|
27554
|
+
value: props.value || "",
|
|
27555
27555
|
className: cn(className, props.errorMessage ? "border-red-500" : ""),
|
|
27556
27556
|
style: {
|
|
27557
27557
|
...style,
|
|
@@ -27590,7 +27590,7 @@ var SearchInput = ({ className, style, ...props }) => {
|
|
|
27590
27590
|
type: "text",
|
|
27591
27591
|
id: props.name || "text-field",
|
|
27592
27592
|
name: props.name,
|
|
27593
|
-
value: props.value,
|
|
27593
|
+
value: props.value || "",
|
|
27594
27594
|
className: cn(className, props.errorMessage ? "border-red-500" : ""),
|
|
27595
27595
|
style: {
|
|
27596
27596
|
...style,
|
|
@@ -27620,7 +27620,7 @@ var FileInput2 = ({ className, style, ...props }) => {
|
|
|
27620
27620
|
type: "file",
|
|
27621
27621
|
id: "file",
|
|
27622
27622
|
name: props.name,
|
|
27623
|
-
value: props.value,
|
|
27623
|
+
value: props.value || "",
|
|
27624
27624
|
className: cn(className, props.errorMessage ? "border-red-500" : ""),
|
|
27625
27625
|
style: {
|
|
27626
27626
|
...style,
|
|
@@ -27679,7 +27679,7 @@ function DatePicker({ className, style, ...props }) {
|
|
|
27679
27679
|
onChange: handleChange,
|
|
27680
27680
|
disabled: isDisabled || !isEditable,
|
|
27681
27681
|
name: props.name,
|
|
27682
|
-
value: props.value,
|
|
27682
|
+
value: props.value || "",
|
|
27683
27683
|
className: cn(
|
|
27684
27684
|
className,
|
|
27685
27685
|
props.errorMessage ? "border-red-500" : "",
|
|
@@ -27999,7 +27999,7 @@ var TextInputGroup = ({ className, style, prepend, append, ...props }) => {
|
|
|
27999
27999
|
id: props.name || "prepend-input",
|
|
28000
28000
|
type: "url",
|
|
28001
28001
|
name: props.name,
|
|
28002
|
-
value: props.value,
|
|
28002
|
+
value: props.value || "",
|
|
28003
28003
|
className: cn(
|
|
28004
28004
|
className,
|
|
28005
28005
|
"rounded-none flex-1 border-none focus:ring-0"
|