mainstack-design-system 0.7.26 → 0.7.27

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/build/index.d.ts CHANGED
@@ -660,10 +660,11 @@ declare interface IconButtonProps extends ButtonProps {
660
660
  }
661
661
 
662
662
  /** @format */
663
+ /// <reference types="react" />
663
664
  export declare interface ICountrySelectProps {
664
665
  valueType?: "full" | "code";
665
666
  options?: any;
666
- label?: string;
667
+ label?: string | React.ReactNode;
667
668
  placeholder?: string;
668
669
  onChange?: (e: any) => void;
669
670
  onBlur?: (e: any) => void;
@@ -832,7 +833,7 @@ export declare interface IPhoneNumberInputProps {
832
833
  onChange?: (value: string) => void;
833
834
  enableSearch?: boolean;
834
835
  placeholder?: string;
835
- label?: string;
836
+ label?: string | React.ReactNode;
836
837
  id?: string;
837
838
  subtext?: string | JSX.Element;
838
839
  fontFamily?: string;
@@ -13006,7 +13006,7 @@ const W4 = (Z7 = L3 == null ? void 0 : L3.sort((e, o) => e.name.localeCompare(o.
13006
13006
  l(y);
13007
13007
  }, v = P1(null);
13008
13008
  return /* @__PURE__ */ r1(k1, { w: "full", fontFamily: g ?? "Degular", fontWeight: 500, children: [
13009
- i && /* @__PURE__ */ t(
13009
+ i && typeof i == "string" ? /* @__PURE__ */ t(
13010
13010
  u2,
13011
13011
  {
13012
13012
  fontSize: "1rem",
@@ -13019,7 +13019,7 @@ const W4 = (Z7 = L3 == null ? void 0 : L3.sort((e, o) => e.name.localeCompare(o.
13019
13019
  color: b ? T.gray200 : T.black300,
13020
13020
  children: i
13021
13021
  }
13022
- ),
13022
+ ) : i,
13023
13023
  /* @__PURE__ */ t(
13024
13024
  G4,
13025
13025
  {
@@ -14427,7 +14427,7 @@ const eh = ({
14427
14427
  fontWeight: 500,
14428
14428
  className: "ms-ds",
14429
14429
  children: [
14430
- n && /* @__PURE__ */ t(
14430
+ n && typeof n == "string" ? /* @__PURE__ */ t(
14431
14431
  u2,
14432
14432
  {
14433
14433
  fontSize: "1rem",
@@ -14439,7 +14439,7 @@ const eh = ({
14439
14439
  htmlFor: d ?? "",
14440
14440
  children: n
14441
14441
  }
14442
- ),
14442
+ ) : n,
14443
14443
  /* @__PURE__ */ t(
14444
14444
  X4,
14445
14445
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mainstack-design-system",
3
- "version": "0.7.26",
3
+ "version": "0.7.27",
4
4
  "type": "module",
5
5
  "main": "build/mainstack-design-system.js",
6
6
  "types": "build/index.d.ts",