mainstack-design-system 0.3.2 → 0.3.3

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.
@@ -47484,10 +47484,7 @@ const Cf = {
47484
47484
  outline: b ? "3px solid" : `${d ? "3px solid" : "1px solid"}`,
47485
47485
  outlineOffset: b ? "-3px" : `${d ? "-3px" : "-1px"}`,
47486
47486
  _hover: {
47487
- bg: b ? "none" : oe.gray50,
47488
- outline: "3px solid",
47489
- outlineColor: d ? oe.red500 : oe.black300,
47490
- outlineOffset: "-3px"
47487
+ bg: b ? "none" : oe.gray50
47491
47488
  },
47492
47489
  outlineColor: b ? `${d ? oe.red500 : oe.black300}` : `${d ? oe.red500 : oe.gray50}`,
47493
47490
  borderRadius: "16px",
@@ -47511,7 +47508,13 @@ const Cf = {
47511
47508
  a && /* @__PURE__ */ f(v1, { mt: "4px", children: a })
47512
47509
  ] }),
47513
47510
  /* @__PURE__ */ Q(n1, { alignItems: "center", ml: "auto", children: [
47514
- l === "has-toggle" ? /* @__PURE__ */ f(X1e, { onChange: p, isChecked: g }) : l === "has-delete" ? /* @__PURE__ */ f(
47511
+ l === "has-toggle" ? /* @__PURE__ */ f(
47512
+ X1e,
47513
+ {
47514
+ onChange: p,
47515
+ isChecked: g
47516
+ }
47517
+ ) : l === "has-delete" ? /* @__PURE__ */ f(
47515
47518
  ry,
47516
47519
  {
47517
47520
  fontSize: "16px",
@@ -47596,6 +47599,7 @@ const Cf = {
47596
47599
  borderRadius: "100%",
47597
47600
  width: Co[e.size].size,
47598
47601
  height: Co[e.size].size,
47602
+ objectFit: "cover",
47599
47603
  fallback: (e == null ? void 0 : e.fallback) === "store" ? /* @__PURE__ */ f(
47600
47604
  Z4,
47601
47605
  {
@@ -47728,7 +47732,7 @@ const Cf = {
47728
47732
  an,
47729
47733
  {
47730
47734
  color: oe.black300,
47731
- fontFamily: "Degular",
47735
+ fontFamily: (e == null ? void 0 : e.fontFamily) ?? "Degular",
47732
47736
  fontSize: "16px",
47733
47737
  fontWeight: 600,
47734
47738
  lineHeight: "20px",
@@ -47741,7 +47745,7 @@ const Cf = {
47741
47745
  an,
47742
47746
  {
47743
47747
  color: oe.gray400,
47744
- fontFamily: "Degular",
47748
+ fontFamily: (e == null ? void 0 : e.fontFamily) ?? "Degular",
47745
47749
  fontSize: "14px",
47746
47750
  fontWeight: 500,
47747
47751
  lineHeight: "16px",
@@ -47808,11 +47812,11 @@ const Cf = {
47808
47812
  gap: "10px",
47809
47813
  width: "full",
47810
47814
  children: [
47811
- /* @__PURE__ */ f(
47815
+ n && /* @__PURE__ */ f(
47812
47816
  an,
47813
47817
  {
47814
47818
  color: e ? oe.black300 : oe.gray400,
47815
- fontFamily: "Degular",
47819
+ fontFamily: (i == null ? void 0 : i.fontFamily) ?? "Degular",
47816
47820
  fontSize: "16px",
47817
47821
  fontWeight: 600,
47818
47822
  lineHeight: "16px",
@@ -48158,7 +48162,7 @@ const Cf = {
48158
48162
  an,
48159
48163
  {
48160
48164
  color: oe.black300,
48161
- fontFamily: "Degular",
48165
+ fontFamily: (e == null ? void 0 : e.fontFamily) ?? "Degular",
48162
48166
  fontSize: "16px",
48163
48167
  fontWeight: 600,
48164
48168
  lineHeight: "20px",
@@ -48171,7 +48175,7 @@ const Cf = {
48171
48175
  an,
48172
48176
  {
48173
48177
  color: oe.gray400,
48174
- fontFamily: "Degular",
48178
+ fontFamily: (e == null ? void 0 : e.fontFamily) ?? "Degular",
48175
48179
  fontSize: "14px",
48176
48180
  fontWeight: 500,
48177
48181
  lineHeight: "16px",
@@ -48249,7 +48253,7 @@ const Cf = {
48249
48253
  an,
48250
48254
  {
48251
48255
  color: oe.black300,
48252
- fontFamily: "Degular",
48256
+ fontFamily: (e == null ? void 0 : e.fontFamily) ?? "Degular",
48253
48257
  fontSize: "16px",
48254
48258
  fontWeight: 600,
48255
48259
  lineHeight: "20px",
@@ -48262,7 +48266,7 @@ const Cf = {
48262
48266
  an,
48263
48267
  {
48264
48268
  color: oe.gray400,
48265
- fontFamily: "Degular",
48269
+ fontFamily: (e == null ? void 0 : e.fontFamily) ?? "Degular",
48266
48270
  fontSize: "14px",
48267
48271
  fontWeight: 500,
48268
48272
  lineHeight: "16px",
@@ -51597,7 +51601,7 @@ const Ub = {
51597
51601
  // ...styles,
51598
51602
  display: "flex",
51599
51603
  height: "auto",
51600
- fontFamily: "Degular",
51604
+ fontFamily: "inherit",
51601
51605
  fontWeight: 500,
51602
51606
  fontSize: "1rem",
51603
51607
  lineHeight: "24px",
@@ -51642,7 +51646,7 @@ const Ub = {
51642
51646
  padding: "6px 12px 6px 20px"
51643
51647
  }),
51644
51648
  multiValueLabel: (e) => ({
51645
- fontFamily: "Degular",
51649
+ fontFamily: "inherit",
51646
51650
  fontWeight: 500,
51647
51651
  fontSize: "0.875rem",
51648
51652
  letterSpacing: "-0.0125rem",
@@ -51717,21 +51721,22 @@ const Ub = {
51717
51721
  CustomOption: y,
51718
51722
  CustomMultiValue: b,
51719
51723
  disabled: x,
51720
- noOptionsMessage: _
51724
+ noOptionsMessage: _,
51725
+ fontFamily: T
51721
51726
  }) => {
51722
- const T = {}, k = y, M = b;
51723
- k && (T.Option = k), M && (T.MultiValue = M);
51724
- const L = Lt(
51727
+ const k = {}, M = y, L = b;
51728
+ M && (k.Option = M), L && (k.MultiValue = L);
51729
+ const I = Lt(
51725
51730
  null
51726
51731
  );
51727
- return /* @__PURE__ */ Q(v1, { w: "full", fontFamily: "Degular", fontWeight: 500, children: [
51732
+ return /* @__PURE__ */ Q(v1, { w: "full", fontFamily: T ?? "Degular", fontWeight: 500, children: [
51728
51733
  e && /* @__PURE__ */ f(
51729
51734
  dc,
51730
51735
  {
51731
51736
  fontSize: "1rem",
51732
51737
  lineHeight: "1.25rem",
51733
51738
  fontWeight: 600,
51734
- fontFamily: "Degular",
51739
+ fontFamily: T ?? "Degular",
51735
51740
  letterSpacing: "-0.004rem",
51736
51741
  mb: "12px",
51737
51742
  htmlFor: n,
@@ -51746,19 +51751,19 @@ const Ub = {
51746
51751
  isClearable: v,
51747
51752
  defaultInputValue: m,
51748
51753
  value: c,
51749
- onChange: (I) => {
51750
- var E;
51751
- d && (d(I), (E = L == null ? void 0 : L.current) == null || E.blur());
51754
+ onChange: (E) => {
51755
+ var O;
51756
+ d && (d(E), (O = I == null ? void 0 : I.current) == null || O.blur());
51752
51757
  },
51753
- ref: L,
51754
- onBlur: (I) => l && l(I),
51758
+ ref: I,
51759
+ onBlur: (E) => l && l(E),
51755
51760
  components: {
51756
51761
  ClearIndicator: xI,
51757
51762
  DropdownIndicator: jb,
51758
51763
  IndicatorSeparator: kI,
51759
51764
  MultiValueRemove: SI,
51760
51765
  // IndicatorsContainer,
51761
- ...T
51766
+ ...k
51762
51767
  },
51763
51768
  id: n,
51764
51769
  options: p,
@@ -51787,32 +51792,33 @@ const Ub = {
51787
51792
  CustomOption: y,
51788
51793
  CustomMultiValue: b,
51789
51794
  disabled: x,
51790
- noOptionsMessage: _
51795
+ noOptionsMessage: _,
51796
+ fontFamily: T
51791
51797
  }) => {
51792
- const [T, k] = Et(p), M = {};
51798
+ const [k, M] = Et(p), L = {};
51793
51799
  if (v) {
51794
- const O = y, P = b;
51795
- O && (M.Option = O), P && (M.MultiValue = P);
51800
+ const P = y, H = b;
51801
+ P && (L.Option = P), H && (L.MultiValue = H);
51796
51802
  }
51797
- const L = (O) => {
51798
- const P = {
51799
- label: O,
51800
- value: O.toLowerCase().replace(/\W/g, "")
51803
+ const I = (P) => {
51804
+ const H = {
51805
+ label: P,
51806
+ value: P.toLowerCase().replace(/\W/g, "")
51801
51807
  };
51802
- k((H) => [...H, P]), d && d(v ? [...c, P] : P);
51803
- }, I = (O) => {
51804
- O.keyCode === 188 && (O.preventDefault(), L(O.target.value));
51805
- }, E = Lt(
51808
+ M((N) => [...N, H]), d && d(v ? [...c, H] : H);
51809
+ }, E = (P) => {
51810
+ P.keyCode === 188 && (P.preventDefault(), I(P.target.value));
51811
+ }, O = Lt(
51806
51812
  null
51807
51813
  );
51808
- return /* @__PURE__ */ Q(v1, { w: "full", fontFamily: "Degular", fontWeight: 500, children: [
51814
+ return /* @__PURE__ */ Q(v1, { w: "full", fontFamily: T ?? "Degular", fontWeight: 500, children: [
51809
51815
  e && /* @__PURE__ */ f(
51810
51816
  dc,
51811
51817
  {
51812
51818
  fontSize: "1rem",
51813
51819
  lineHeight: "1.25rem",
51814
51820
  fontWeight: 600,
51815
- fontFamily: "Degular",
51821
+ fontFamily: T ?? "Degular",
51816
51822
  letterSpacing: "-0.004rem",
51817
51823
  mb: "12px",
51818
51824
  htmlFor: n,
@@ -51825,14 +51831,14 @@ const Ub = {
51825
51831
  {
51826
51832
  isMulti: v,
51827
51833
  isClearable: !0,
51828
- onChange: (O) => {
51829
- var P, H;
51830
- d && (v ? (d(O), (P = E == null ? void 0 : E.current) == null || P.blur()) : (d(O), (H = E == null ? void 0 : E.current) == null || H.blur()));
51831
- },
51832
- ref: E,
51833
- onBlur: (O) => l && l(O),
51834
- onKeyDown: I,
51835
- onCreateOption: L,
51834
+ onChange: (P) => {
51835
+ var H, N;
51836
+ d && (v ? (d(P), (H = O == null ? void 0 : O.current) == null || H.blur()) : (d(P), (N = O == null ? void 0 : O.current) == null || N.blur()));
51837
+ },
51838
+ ref: O,
51839
+ onBlur: (P) => l && l(P),
51840
+ onKeyDown: E,
51841
+ onCreateOption: I,
51836
51842
  options: p,
51837
51843
  value: c,
51838
51844
  id: n,
@@ -51847,12 +51853,21 @@ const Ub = {
51847
51853
  DropdownIndicator: jb,
51848
51854
  IndicatorSeparator: kI,
51849
51855
  MultiValueRemove: SI,
51850
- ...M
51856
+ ...L
51851
51857
  },
51852
51858
  noOptionsMessage: () => _ ?? "No options"
51853
51859
  }
51854
51860
  ),
51855
- v && /* @__PURE__ */ f(Ya, { size: "xxs", color: oe.gray400, mt: "8px", children: "Comma seperated" })
51861
+ v && /* @__PURE__ */ f(
51862
+ Ya,
51863
+ {
51864
+ size: "xxs",
51865
+ color: oe.gray400,
51866
+ mt: "8px",
51867
+ fontFamily: T ?? "Degular",
51868
+ children: "Comma seperated"
51869
+ }
51870
+ )
51856
51871
  ] });
51857
51872
  };
51858
51873
  var oie = ["defaultOptions", "cacheOptions", "loadOptions", "options", "isLoading", "onInputChange", "filterOption"];
@@ -53698,23 +53713,24 @@ const die = (kL = lg == null ? void 0 : lg.sort((e, n) => e.name.localeCompare(n
53698
53713
  label: a = "Country",
53699
53714
  valueType: i = "full",
53700
53715
  placeholder: l = "Select your country",
53701
- options: d = die
53716
+ options: d = die,
53717
+ fontFamily: c
53702
53718
  }) => {
53703
- var p, v;
53704
- const c = (g, y) => {
53705
- const b = d == null ? void 0 : d.filter(
53706
- (x) => x.label.toLowerCase().includes(g.toLowerCase())
53719
+ var v, g;
53720
+ const m = (y, b) => {
53721
+ const x = d == null ? void 0 : d.filter(
53722
+ (_) => _.label.toLowerCase().includes(y.toLowerCase())
53707
53723
  );
53708
- y(b);
53709
- }, m = Lt(null);
53710
- return /* @__PURE__ */ Q(v1, { w: "full", fontFamily: "Degular", fontWeight: 500, children: [
53724
+ b(x);
53725
+ }, p = Lt(null);
53726
+ return /* @__PURE__ */ Q(v1, { w: "full", fontFamily: c ?? "Degular", fontWeight: 500, children: [
53711
53727
  a && /* @__PURE__ */ f(
53712
53728
  dc,
53713
53729
  {
53714
53730
  fontSize: "1rem",
53715
53731
  lineHeight: "1.25rem",
53716
53732
  fontWeight: 600,
53717
- fontFamily: "Degular",
53733
+ fontFamily: c ?? "Degular",
53718
53734
  letterSpacing: "-0.004rem",
53719
53735
  mb: "12px",
53720
53736
  htmlFor: "country",
@@ -53729,7 +53745,7 @@ const die = (kL = lg == null ? void 0 : lg.sort((e, n) => e.name.localeCompare(n
53729
53745
  IndicatorSeparator: () => null
53730
53746
  // Option: CustomOption,
53731
53747
  },
53732
- loadOptions: c,
53748
+ loadOptions: m,
53733
53749
  cacheOptions: !0,
53734
53750
  defaultOptions: d,
53735
53751
  id: "country",
@@ -53737,15 +53753,15 @@ const die = (kL = lg == null ? void 0 : lg.sort((e, n) => e.name.localeCompare(n
53737
53753
  styles: Ub,
53738
53754
  formatOptionLabel: cie,
53739
53755
  name: "country",
53740
- onChange: (g) => {
53741
- var y;
53742
- n && (n(i === "code" ? g : g == null ? void 0 : g.value), (y = m == null ? void 0 : m.current) == null || y.blur());
53756
+ onChange: (y) => {
53757
+ var b;
53758
+ n && (n(i === "code" ? y : y == null ? void 0 : y.value), (b = p == null ? void 0 : p.current) == null || b.blur());
53743
53759
  },
53744
- ref: m,
53760
+ ref: p,
53745
53761
  value: e ? {
53746
53762
  value: e,
53747
- abr: (p = d == null ? void 0 : d.find((g) => (g == null ? void 0 : g.value) === e)) == null ? void 0 : p.abr,
53748
- flag: (v = d == null ? void 0 : d.find((g) => (g == null ? void 0 : g.value) === e)) == null ? void 0 : v.flag
53763
+ abr: (v = d == null ? void 0 : d.find((y) => (y == null ? void 0 : y.value) === e)) == null ? void 0 : v.abr,
53764
+ flag: (g = d == null ? void 0 : d.find((y) => (y == null ? void 0 : y.value) === e)) == null ? void 0 : g.flag
53749
53765
  } : null
53750
53766
  }
53751
53767
  )
@@ -55099,9 +55115,10 @@ const $9e = ({
55099
55115
  placeholder: i,
55100
55116
  label: l,
55101
55117
  id: d,
55102
- subtext: c
55118
+ subtext: c,
55119
+ fontFamily: m
55103
55120
  }) => {
55104
- const m = `<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none">
55121
+ const p = `<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none">
55105
55122
  <mask id="mask0_1047_15277" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="20" height="20">
55106
55123
  <rect width="20" height="20" fill="#C4C4C4"/>
55107
55124
  </mask>
@@ -55111,39 +55128,57 @@ const $9e = ({
55111
55128
  </svg>`;
55112
55129
  return d1(() => {
55113
55130
  if (window) {
55114
- const p = document.querySelector(".phone_container_class .arrow");
55115
- p && (p.innerHTML = m);
55131
+ const v = document.querySelector(".phone_container_class .arrow");
55132
+ v && (v.innerHTML = p);
55116
55133
  }
55117
- }, []), /* @__PURE__ */ Q(v1, { w: "full", fontFamily: "Degular", fontWeight: 500, className: "ms-ds", children: [
55118
- l && /* @__PURE__ */ f(
55119
- dc,
55120
- {
55121
- fontSize: "1rem",
55122
- lineHeight: "1.25rem",
55123
- fontWeight: 600,
55124
- fontFamily: "Degular",
55125
- letterSpacing: "-0.004rem",
55126
- mb: "12px",
55127
- htmlFor: d ?? "",
55128
- children: l
55129
- }
55130
- ),
55131
- /* @__PURE__ */ f(
55132
- hie,
55133
- {
55134
- enableSearch: a,
55135
- countryCodeEditable: !1,
55136
- value: e,
55137
- onChange: n,
55138
- containerClass: "phone-input-container phone_container_class",
55139
- placeholder: i,
55140
- inputClass: "phone_input",
55141
- buttonClass: "phone_country_button",
55142
- dropdownClass: "phone_country_dropdown"
55143
- }
55144
- ),
55145
- c && /* @__PURE__ */ f(Ya, { size: "xxs", color: oe.gray400, mt: "8px", children: c })
55146
- ] });
55134
+ }, []), /* @__PURE__ */ Q(
55135
+ v1,
55136
+ {
55137
+ w: "full",
55138
+ fontFamily: m ?? "Degular",
55139
+ fontWeight: 500,
55140
+ className: "ms-ds",
55141
+ children: [
55142
+ l && /* @__PURE__ */ f(
55143
+ dc,
55144
+ {
55145
+ fontSize: "1rem",
55146
+ lineHeight: "1.25rem",
55147
+ fontWeight: 600,
55148
+ fontFamily: m ?? "Degular",
55149
+ letterSpacing: "-0.004rem",
55150
+ mb: "12px",
55151
+ htmlFor: d ?? "",
55152
+ children: l
55153
+ }
55154
+ ),
55155
+ /* @__PURE__ */ f(
55156
+ hie,
55157
+ {
55158
+ enableSearch: a,
55159
+ countryCodeEditable: !1,
55160
+ value: e,
55161
+ onChange: n,
55162
+ containerClass: "phone-input-container phone_container_class",
55163
+ placeholder: i,
55164
+ inputClass: "phone_input",
55165
+ buttonClass: "phone_country_button",
55166
+ dropdownClass: "phone_country_dropdown"
55167
+ }
55168
+ ),
55169
+ c && /* @__PURE__ */ f(
55170
+ Ya,
55171
+ {
55172
+ size: "xxs",
55173
+ color: oe.gray400,
55174
+ mt: "8px",
55175
+ fontFamily: m ?? "Degular",
55176
+ children: c
55177
+ }
55178
+ )
55179
+ ]
55180
+ }
55181
+ );
55147
55182
  }, G9e = ({
55148
55183
  label: e,
55149
55184
  name: n,
@@ -55160,14 +55195,15 @@ const $9e = ({
55160
55195
  type: b,
55161
55196
  width: x,
55162
55197
  disabled: _,
55163
- ...T
55198
+ fontFamily: T,
55199
+ ...k
55164
55200
  }) => {
55165
- const [k, M] = Et(!1);
55201
+ const [M, L] = Et(!1);
55166
55202
  return /* @__PURE__ */ Q(v1, { w: x || "full", children: [
55167
55203
  /* @__PURE__ */ f(
55168
55204
  an,
55169
55205
  {
55170
- fontFamily: "Degular",
55206
+ fontFamily: T ?? "Degular",
55171
55207
  fontSize: "16px",
55172
55208
  lineHeight: "20px",
55173
55209
  letterSpacing: "-0.064px",
@@ -55179,7 +55215,7 @@ const $9e = ({
55179
55215
  }
55180
55216
  ),
55181
55217
  /* @__PURE__ */ Q(wh, { children: [
55182
- b === "password" && /* @__PURE__ */ f(V9, { py: "24px", children: /* @__PURE__ */ f(v1, { onClick: () => M((L) => !L), children: k ? /* @__PURE__ */ f(
55218
+ b === "password" && /* @__PURE__ */ f(V9, { py: "24px", children: /* @__PURE__ */ f(v1, { onClick: () => L((I) => !I), children: M ? /* @__PURE__ */ f(
55183
55219
  ane,
55184
55220
  {
55185
55221
  style: {
@@ -55208,7 +55244,7 @@ const $9e = ({
55208
55244
  bg: oe.white100,
55209
55245
  borderRadius: "12px",
55210
55246
  border: "none",
55211
- fontFamily: "Degular",
55247
+ fontFamily: T ?? "Degular",
55212
55248
  fontSize: "16px",
55213
55249
  lineHeight: "24px",
55214
55250
  letterSpacing: "-0.2px",
@@ -55230,28 +55266,45 @@ const $9e = ({
55230
55266
  },
55231
55267
  py: "24px",
55232
55268
  px: "16px",
55233
- type: b === "password" && !k ? "password" : b === "password" && k ? "text" : b,
55269
+ type: b === "password" && !M ? "password" : b === "password" && M ? "text" : b,
55234
55270
  _placeholder: { color: `${oe.gray200}` },
55235
55271
  width: "100%",
55236
55272
  disabled: _,
55237
55273
  _disabled: {
55238
55274
  color: `${oe.gray200}`
55239
55275
  },
55240
- ...T
55276
+ ...k
55241
55277
  }
55242
55278
  )
55243
55279
  ] }),
55244
55280
  /* @__PURE__ */ f(v1, { mt: "8px", children: v && g ? /* @__PURE__ */ Q(n1, { alignItems: "center", gap: "6px", children: [
55245
55281
  /* @__PURE__ */ f(Hb, { color: oe.green600 }),
55246
- /* @__PURE__ */ f(Ya, { color: oe.green600, size: "xxs", children: g })
55282
+ /* @__PURE__ */ f(
55283
+ Ya,
55284
+ {
55285
+ color: oe.green600,
55286
+ size: "xxs",
55287
+ fontFamily: T ?? "Degular",
55288
+ children: g
55289
+ }
55290
+ )
55247
55291
  ] }) : m && p ? /* @__PURE__ */ Q(n1, { alignItems: "center", gap: "6px", children: [
55248
55292
  /* @__PURE__ */ f(Bf, { color: oe.red500 }),
55249
- /* @__PURE__ */ f(Ya, { color: oe.red500, size: "xxs", children: p })
55293
+ /* @__PURE__ */ f(
55294
+ Ya,
55295
+ {
55296
+ color: oe.red500,
55297
+ size: "xxs",
55298
+ fontFamily: T ?? "Degular",
55299
+ children: p
55300
+ }
55301
+ )
55250
55302
  ] }) : y ? /* @__PURE__ */ f(
55251
55303
  Ya,
55252
55304
  {
55253
55305
  color: _ ? oe.gray200 : oe.gray400,
55254
55306
  size: "xxs",
55307
+ fontFamily: T ?? "Degular",
55255
55308
  children: y
55256
55309
  }
55257
55310
  ) : null })
@@ -63620,7 +63673,8 @@ const Xue = ({
63620
63673
  defaultValue: l,
63621
63674
  placeholder: d,
63622
63675
  onClear: c,
63623
- ...m
63676
+ fontFamily: m,
63677
+ ...p
63624
63678
  }) => /* @__PURE__ */ Q(wh, { alignItems: "center", children: [
63625
63679
  /* @__PURE__ */ f(kh, { px: "16px", transform: "translateY(-50%)", top: "50%", children: /* @__PURE__ */ f(rne, { color: oe.gray200 }) }),
63626
63680
  a && /* @__PURE__ */ f(
@@ -63645,7 +63699,7 @@ const Xue = ({
63645
63699
  bg: oe.gray50,
63646
63700
  borderRadius: "100px",
63647
63701
  border: "none",
63648
- fontFamily: "Degular",
63702
+ fontFamily: m ?? "Degular",
63649
63703
  fontSize: "16px",
63650
63704
  lineHeight: "24px",
63651
63705
  letterSpacing: "-0.2px",
@@ -63662,7 +63716,7 @@ const Xue = ({
63662
63716
  type: "text",
63663
63717
  _placeholder: { color: `${oe.gray200}` },
63664
63718
  width: "100%",
63665
- ...m
63719
+ ...p
63666
63720
  }
63667
63721
  )
63668
63722
  ] }), Y9e = ({
@@ -63678,18 +63732,19 @@ const Xue = ({
63678
63732
  textLimit: v,
63679
63733
  height: g,
63680
63734
  width: y,
63681
- ...b
63735
+ fontFamily: b,
63736
+ ...x
63682
63737
  }) => {
63683
- const [x, _] = Et(0), [T, k] = Et(!1), M = (L) => {
63684
- var E;
63685
- const I = (E = L == null ? void 0 : L.target) == null ? void 0 : E.value;
63686
- _(I.length), I.length > (v || 200) ? k(!0) : k(!1);
63738
+ const [_, T] = Et(0), [k, M] = Et(!1), L = (I) => {
63739
+ var O;
63740
+ const E = (O = I == null ? void 0 : I.target) == null ? void 0 : O.value;
63741
+ T(E.length), E.length > (v || 200) ? M(!0) : M(!1);
63687
63742
  };
63688
63743
  return /* @__PURE__ */ Q(v1, { w: y || "full", position: "relative", children: [
63689
63744
  /* @__PURE__ */ f(
63690
63745
  an,
63691
63746
  {
63692
- fontFamily: "Degular",
63747
+ fontFamily: b ?? "Degular",
63693
63748
  fontSize: "16px",
63694
63749
  lineHeight: "20px",
63695
63750
  letterSpacing: "-0.064px",
@@ -63707,11 +63762,19 @@ const Xue = ({
63707
63762
  top: "38px",
63708
63763
  position: "absolute",
63709
63764
  zIndex: 10,
63710
- children: /* @__PURE__ */ Q(Ya, { color: oe.gray200, size: "xxs", children: [
63711
- x,
63712
- "/",
63713
- v || 200
63714
- ] })
63765
+ children: /* @__PURE__ */ Q(
63766
+ Ya,
63767
+ {
63768
+ color: oe.gray200,
63769
+ size: "xxs",
63770
+ fontFamily: b ?? "Degular",
63771
+ children: [
63772
+ _,
63773
+ "/",
63774
+ v || 200
63775
+ ]
63776
+ }
63777
+ )
63715
63778
  }
63716
63779
  ),
63717
63780
  /* @__PURE__ */ f(
@@ -63721,53 +63784,69 @@ const Xue = ({
63721
63784
  id: a,
63722
63785
  value: i,
63723
63786
  defaultValue: d,
63724
- onChange: (L) => {
63725
- M(L), l && l(L);
63787
+ onChange: (I) => {
63788
+ L(I), l && l(I);
63726
63789
  },
63727
63790
  placeholder: c || "Type something...",
63728
63791
  bg: oe.white100,
63729
63792
  borderRadius: "12px",
63730
63793
  border: "none",
63731
- fontFamily: "Degular",
63794
+ fontFamily: b ?? "Degular",
63732
63795
  fontSize: "16px",
63733
63796
  lineHeight: "24px",
63734
63797
  letterSpacing: "-0.2px",
63735
63798
  fontWeight: 500,
63736
- outlineOffset: m || T ? "-2px" : "-1px",
63737
- outline: m || T ? "2px solid" : "1px solid",
63799
+ outlineOffset: m || k ? "-2px" : "-1px",
63800
+ outline: m || k ? "2px solid" : "1px solid",
63738
63801
  _placeholder: { color: `${oe.gray200}` },
63739
- outlineColor: m || T ? oe.red500 : oe.gray50,
63802
+ outlineColor: m || k ? oe.red500 : oe.gray50,
63740
63803
  _focus: {
63741
- outline: `3px solid ${m || T ? oe.red500 : oe.black300}`,
63804
+ outline: `3px solid ${m || k ? oe.red500 : oe.black300}`,
63742
63805
  outlineOffset: "-3px",
63743
63806
  background: `${oe.white100}`
63744
63807
  },
63745
63808
  _focusVisible: {
63746
- outline: `3px solid ${m || T ? oe.red500 : oe.black300}`,
63809
+ outline: `3px solid ${m || k ? oe.red500 : oe.black300}`,
63747
63810
  outlineOffset: "-3px",
63748
63811
  background: `${oe.white100}`
63749
63812
  },
63750
63813
  _hover: {
63751
63814
  background: `${oe.gray50}`
63752
63815
  },
63753
- h: g || "120px",
63816
+ h: g ?? "120px",
63754
63817
  w: "100%",
63755
63818
  px: "16px",
63756
63819
  pt: "30px",
63757
63820
  resize: "none",
63758
- ...b
63821
+ ...x
63759
63822
  }
63760
63823
  ),
63761
63824
  /* @__PURE__ */ f(v1, { mt: "8px", children: m && p ? /* @__PURE__ */ Q(n1, { alignItems: "center", gap: "6px", children: [
63762
63825
  /* @__PURE__ */ f(Bf, { color: oe.red500 }),
63763
- /* @__PURE__ */ f(Ya, { color: oe.red500, size: "xxs", children: p })
63764
- ] }) : T ? /* @__PURE__ */ Q(n1, { alignItems: "center", gap: "6px", children: [
63826
+ /* @__PURE__ */ f(
63827
+ Ya,
63828
+ {
63829
+ color: oe.red500,
63830
+ size: "xxs",
63831
+ fontFamily: b ?? "Degular",
63832
+ children: p
63833
+ }
63834
+ )
63835
+ ] }) : k ? /* @__PURE__ */ Q(n1, { alignItems: "center", gap: "6px", children: [
63765
63836
  /* @__PURE__ */ f(Bf, { color: oe.red500 }),
63766
- /* @__PURE__ */ Q(Ya, { color: oe.red500, size: "xxs", children: [
63767
- "Text cannot be more than ",
63768
- v || 200,
63769
- " characters long."
63770
- ] })
63837
+ /* @__PURE__ */ Q(
63838
+ Ya,
63839
+ {
63840
+ color: oe.red500,
63841
+ size: "xxs",
63842
+ fontFamily: b ?? "Degular",
63843
+ children: [
63844
+ "Text cannot be more than ",
63845
+ v || 200,
63846
+ " characters long."
63847
+ ]
63848
+ }
63849
+ )
63771
63850
  ] }) : null })
63772
63851
  ] });
63773
63852
  }, q9e = ({
@@ -16,6 +16,7 @@ export interface IInput extends InputProps {
16
16
  hint?: string;
17
17
  width?: string;
18
18
  disabled?: boolean;
19
+ fontFamily?: string;
19
20
  }
20
- declare const Input: ({ label, name, id, value, onChange, defaultValue, placeholder, error, errorMessage, success, successMessage, hint, type, width, disabled, ...props }: IInput) => import("react/jsx-runtime").JSX.Element;
21
+ declare const Input: ({ label, name, id, value, onChange, defaultValue, placeholder, error, errorMessage, success, successMessage, hint, type, width, disabled, fontFamily, ...props }: IInput) => import("react/jsx-runtime").JSX.Element;
21
22
  export default Input;
@@ -13,6 +13,7 @@ export interface ISearchInput extends InputProps {
13
13
  successMessage?: string;
14
14
  hint?: string;
15
15
  onClear?: any;
16
+ fontFamily?: string;
16
17
  }
17
- declare const SearchInput: ({ name, id, value, onChange, defaultValue, placeholder, onClear, ...props }: ISearchInput) => import("react/jsx-runtime").JSX.Element;
18
+ declare const SearchInput: ({ name, id, value, onChange, defaultValue, placeholder, onClear, fontFamily, ...props }: ISearchInput) => import("react/jsx-runtime").JSX.Element;
18
19
  export default SearchInput;
@@ -7,6 +7,7 @@ export interface ICountrySelectProps {
7
7
  onChange?: (e: any) => void;
8
8
  onBlur?: (e: any) => void;
9
9
  value?: any;
10
+ fontFamily?: string;
10
11
  }
11
- declare const CountrySelect: ({ value, onChange, label, valueType, placeholder, options, }: ICountrySelectProps) => import("react/jsx-runtime").JSX.Element;
12
+ declare const CountrySelect: ({ value, onChange, label, valueType, placeholder, options, fontFamily, }: ICountrySelectProps) => import("react/jsx-runtime").JSX.Element;
12
13
  export default CountrySelect;
@@ -8,6 +8,7 @@ export interface IPhoneNumberInputProps {
8
8
  label?: string;
9
9
  id?: string;
10
10
  subtext?: string | JSX.Element;
11
+ fontFamily?: string;
11
12
  }
12
- declare const PhoneNumberInput: ({ value, onChange, enableSearch, placeholder, label, id, subtext, }: IPhoneNumberInputProps) => import("react/jsx-runtime").JSX.Element;
13
+ declare const PhoneNumberInput: ({ value, onChange, enableSearch, placeholder, label, id, subtext, fontFamily, }: IPhoneNumberInputProps) => import("react/jsx-runtime").JSX.Element;
13
14
  export default PhoneNumberInput;
@@ -22,7 +22,8 @@ export interface ISelectInputProps {
22
22
  CustomMultiValue?: React.ComponentType<MultiValueProps<any, boolean, GroupBase<any>>>;
23
23
  disabled?: boolean;
24
24
  noOptionsMessage?: string;
25
+ fontFamily?: string;
25
26
  }
26
27
  export declare const DropdownIndicator: (props: DropdownIndicatorProps) => import("react/jsx-runtime").JSX.Element;
27
- export declare const SelectInput: ({ label, id, name, placeholder, onBlur, onChange, value, defaultValue, options, isMulti, hideSelectedOptions, CustomOption, CustomMultiValue, disabled, noOptionsMessage, }: ISelectInputProps) => import("react/jsx-runtime").JSX.Element;
28
- export declare const CreatableSelectInput: ({ label, id, name, placeholder, onBlur, onChange, value, defaultValue, options, isMulti, hideSelectedOptions, CustomOption, CustomMultiValue, disabled, noOptionsMessage, }: ISelectInputProps) => import("react/jsx-runtime").JSX.Element;
28
+ export declare const SelectInput: ({ label, id, name, placeholder, onBlur, onChange, value, defaultValue, options, isMulti, hideSelectedOptions, CustomOption, CustomMultiValue, disabled, noOptionsMessage, fontFamily, }: ISelectInputProps) => import("react/jsx-runtime").JSX.Element;
29
+ export declare const CreatableSelectInput: ({ label, id, name, placeholder, onBlur, onChange, value, defaultValue, options, isMulti, hideSelectedOptions, CustomOption, CustomMultiValue, disabled, noOptionsMessage, fontFamily, }: ISelectInputProps) => import("react/jsx-runtime").JSX.Element;
@@ -14,6 +14,7 @@ interface ITextArea extends TextareaProps {
14
14
  textLimit?: number;
15
15
  height?: string;
16
16
  width?: string;
17
+ fontFamily?: string;
17
18
  }
18
- declare const TextArea: ({ label, name, id, value, onChange, defaultValue, placeholder, error, errorMessage, textLimit, height, width, ...props }: ITextArea) => import("react/jsx-runtime").JSX.Element;
19
+ declare const TextArea: ({ label, name, id, value, onChange, defaultValue, placeholder, error, errorMessage, textLimit, height, width, fontFamily, ...props }: ITextArea) => import("react/jsx-runtime").JSX.Element;
19
20
  export default TextArea;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mainstack-design-system",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "type": "module",
5
5
  "main": "build/mainstack-design-system.js",
6
6
  "types": "build/src/index.d.ts",