@algorithm-shift/design-system 1.2.57 → 1.2.59

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.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,15 +27551,20 @@ var PhoneInput = ({ className, style, ...props }) => {
27551
27551
  {
27552
27552
  defaultCountry: "in",
27553
27553
  name: props.name,
27554
- value: props.value,
27555
- className: cn(className, props.errorMessage ? "border-red-500" : ""),
27554
+ value: props.value || "",
27555
+ className: cn(
27556
+ "rounded-md",
27557
+ className,
27558
+ props.errorMessage ? "border-red-500" : ""
27559
+ ),
27556
27560
  style: {
27557
27561
  ...style,
27558
27562
  borderColor: props.errorMessage ? "#f87171" : style?.borderColor
27559
27563
  },
27560
27564
  onChange: (phone) => handleChange(phone),
27561
27565
  inputProps: {
27562
- id: "phone-field"
27566
+ id: "phone-field",
27567
+ style: { width: "100%", border: "none", outline: "none" }
27563
27568
  },
27564
27569
  placeholder,
27565
27570
  disabled: isDisabled || !isEditable
@@ -27590,7 +27595,7 @@ var SearchInput = ({ className, style, ...props }) => {
27590
27595
  type: "text",
27591
27596
  id: props.name || "text-field",
27592
27597
  name: props.name,
27593
- value: props.value,
27598
+ value: props.value || "",
27594
27599
  className: cn(className, props.errorMessage ? "border-red-500" : ""),
27595
27600
  style: {
27596
27601
  ...style,
@@ -27620,7 +27625,7 @@ var FileInput2 = ({ className, style, ...props }) => {
27620
27625
  type: "file",
27621
27626
  id: "file",
27622
27627
  name: props.name,
27623
- value: props.value,
27628
+ value: props.value || "",
27624
27629
  className: cn(className, props.errorMessage ? "border-red-500" : ""),
27625
27630
  style: {
27626
27631
  ...style,
@@ -27679,7 +27684,7 @@ function DatePicker({ className, style, ...props }) {
27679
27684
  onChange: handleChange,
27680
27685
  disabled: isDisabled || !isEditable,
27681
27686
  name: props.name,
27682
- value: props.value,
27687
+ value: props.value || "",
27683
27688
  className: cn(
27684
27689
  className,
27685
27690
  props.errorMessage ? "border-red-500" : "",
@@ -27999,7 +28004,7 @@ var TextInputGroup = ({ className, style, prepend, append, ...props }) => {
27999
28004
  id: props.name || "prepend-input",
28000
28005
  type: "url",
28001
28006
  name: props.name,
28002
- value: props.value,
28007
+ value: props.value || "",
28003
28008
  className: cn(
28004
28009
  className,
28005
28010
  "rounded-none flex-1 border-none focus:ring-0"
@@ -28647,7 +28652,7 @@ function Navbar({
28647
28652
  userName = "Guest User"
28648
28653
  }) {
28649
28654
  const isMobileView = canvasMode === "mobile" || canvasMode === "tablet";
28650
- return /* @__PURE__ */ jsx56("nav", { className: "w-full border-b bg-white shadow-sm", style, children: /* @__PURE__ */ jsxs33("div", { className: "mx-auto flex max-w-7xl items-center justify-between px-4 py-2", children: [
28655
+ return /* @__PURE__ */ jsx56("nav", { className: "w-full border-b bg-white shadow-sm", style, children: /* @__PURE__ */ jsxs33("div", { className: "mx-auto flex max-w-7xl items-center justify-between px-4 py-4", children: [
28651
28656
  /* @__PURE__ */ jsx56(Link6, { href: "/", className: "flex items-center space-x-2", children: imageUrl ? /* @__PURE__ */ jsx56(Image3, { src: imageUrl, alt: altText, width: 200, height: 200 }) : /* @__PURE__ */ jsx56("span", { className: "font-semibold text-blue-700", children: "Logo" }) }),
28652
28657
  !isMobileView && /* @__PURE__ */ jsx56("div", { className: "flex items-center space-x-6 sm:hidden md:flex", children: list.map((item) => /* @__PURE__ */ jsx56(
28653
28658
  Link6,