@hybr1d-tech/charizard 0.7.12 → 0.7.14

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/hybr1d-ui.js CHANGED
@@ -9902,11 +9902,17 @@ const Bg = "_checkboxContainer_10wo0_1", Rg = "_hiddenCheckbox_10wo0_7", Fg = "_
9902
9902
  icons: Pg
9903
9903
  }, g2 = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='01%20Alert/info'%3e%3cpath%20id='info-sign'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M8%200C3.58%200%200%203.58%200%208C0%2012.42%203.58%2016%208%2016C12.42%2016%2016%2012.42%2016%208C16%203.58%2012.42%200%208%200ZM9%203V5H7V3H9ZM6%2012V13H10V12H9V6H6V7H7V12H6Z'%20fill='%23254DDA'/%3e%3c/g%3e%3c/svg%3e", zg = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='01%20Alert/success'%3e%3cpath%20id='tick-circle'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M0%208C0%2012.42%203.58%2016%208%2016C12.42%2016%2016%2012.42%2016%208C16%203.58%2012.42%200%208%200C3.58%200%200%203.58%200%208ZM11.29%205.29C11.47%205.11%2011.72%205%2012%205C12.55%205%2013%205.45%2013%206C13%206.28%2012.89%206.53%2012.71%206.71L7.71%2011.71C7.53%2011.89%207.28%2012%207%2012C6.72%2012%206.47%2011.89%206.29%2011.71L3.29%208.71C3.11%208.53%203%208.28%203%208C3%207.45%203.45%207%204%207C4.28%207%204.53%207.11%204.71%207.29L7%209.59L11.29%205.29Z'%20fill='%2336B37E'/%3e%3c/g%3e%3c/svg%3e", Ro = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M19.657%2015.696a1.04%201.04%200%200%200%200-1.469l-6.923-6.923a1.04%201.04%200%200%200-1.468%200l-6.923%206.923a1.038%201.038%200%201%200%201.468%201.469L12%209.507l6.189%206.189a1.04%201.04%200%200%200%201.468%200'%20fill='%23070F2C'/%3e%3c/svg%3e";
9904
9904
  var Og = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.NEUTRAL = "neutral", e.POSITIVE = "positive", e.WARNING = "warning", e.NEGATIVE = "negative", e.HIGHLIGHT = "highlight", e))(Og || {}), Wg = /* @__PURE__ */ ((e) => (e.CLOSE = "close", e.SHOW_MORE = "show-more", e))(Wg || {});
9905
- function z9({ alertType: e, actionType: t, header: a, body: o }) {
9906
- const [s, r] = f.useState(!1), [i, c] = f.useState(!1);
9907
- return f.useEffect(() => {
9908
- r(!1);
9909
- }, [a]), !s && /* @__PURE__ */ n.jsxs(
9905
+ function z9({
9906
+ alertType: e,
9907
+ actionType: t,
9908
+ header: a,
9909
+ body: o,
9910
+ hide: s,
9911
+ setHide: r,
9912
+ showMore: i,
9913
+ setShowMore: c
9914
+ }) {
9915
+ return !s && /* @__PURE__ */ n.jsxs(
9910
9916
  "div",
9911
9917
  {
9912
9918
  className: me.alert,
@@ -9934,7 +9940,7 @@ function z9({ alertType: e, actionType: t, header: a, body: o }) {
9934
9940
  {
9935
9941
  className: me.icons,
9936
9942
  onClick: () => {
9937
- t === "close" ? r(!0) : c((l) => !l);
9943
+ t === "close" && r ? r(!0) : c && c((l) => !l);
9938
9944
  },
9939
9945
  children: /* @__PURE__ */ n.jsx(
9940
9946
  V,
@@ -10148,7 +10154,7 @@ function O9({
10148
10154
  }
10149
10155
  ),
10150
10156
  /* @__PURE__ */ n.jsxs("div", { style: { width: "100%" }, children: [
10151
- /* @__PURE__ */ n.jsx(
10157
+ !(o === 1 && P.length === 1) && /* @__PURE__ */ n.jsx(
10152
10158
  "div",
10153
10159
  {
10154
10160
  onClick: () => {
@@ -10172,31 +10178,44 @@ function O9({
10172
10178
  background: G0 ? "#F4F4F4" : "",
10173
10179
  cursor: p || G0 ? "not-allowed" : "pointer"
10174
10180
  },
10175
- children: a || /* @__PURE__ */ n.jsx(n.Fragment, { children: /* @__PURE__ */ n.jsxs("div", { className: I(Q.parentContainer), style: { justifyContent: d }, children: [
10176
- m && /* @__PURE__ */ n.jsx(
10177
- V,
10178
- {
10179
- path: F7,
10180
- height: 28,
10181
- width: 28
10182
- }
10183
- ),
10184
- /* @__PURE__ */ n.jsx("div", { className: I(Q.title, p ? Q.disabledTitle : ""), children: _ }),
10185
- /* @__PURE__ */ n.jsxs("div", { className: I(Q.subTitle, p ? Q.disabledSubTitle : ""), children: [
10186
- /* @__PURE__ */ n.jsx("span", { children: "File Type: " }),
10187
- /* @__PURE__ */ n.jsxs("b", { children: [
10188
- " ",
10189
- w || "PDF, Doc, Docx, PNG, WEBP,Xls, Xlsx and JPEG."
10190
- ] }),
10191
- /* @__PURE__ */ n.jsx("div", { className: Q.smallCircle }),
10192
- "Max size: ",
10193
- /* @__PURE__ */ n.jsx("b", { children: " 5 MB" }),
10194
- /* @__PURE__ */ n.jsx("div", { className: Q.smallCircle }),
10195
- "Upload allowed: ",
10196
- /* @__PURE__ */ n.jsx("b", { children: o })
10197
- ] }),
10198
- C && /* @__PURE__ */ n.jsx("div", { className: I(Q.subTitle, p ? Q.disabledSubTitle : ""), children: C })
10199
- ] }) })
10181
+ children: a || /* @__PURE__ */ n.jsx(n.Fragment, { children: /* @__PURE__ */ n.jsxs(
10182
+ "div",
10183
+ {
10184
+ className: I(Q.parentContainer),
10185
+ style: { justifyContent: d },
10186
+ children: [
10187
+ m && /* @__PURE__ */ n.jsx(
10188
+ V,
10189
+ {
10190
+ path: F7,
10191
+ height: 28,
10192
+ width: 28
10193
+ }
10194
+ ),
10195
+ /* @__PURE__ */ n.jsx("div", { className: I(Q.title, p ? Q.disabledTitle : ""), children: _ }),
10196
+ /* @__PURE__ */ n.jsxs("div", { className: I(Q.subTitle, p ? Q.disabledSubTitle : ""), children: [
10197
+ /* @__PURE__ */ n.jsx("span", { children: "File Type: " }),
10198
+ /* @__PURE__ */ n.jsxs("b", { children: [
10199
+ " ",
10200
+ w || "PDF, Doc, Docx, PNG, WEBP,Xls, Xlsx and JPEG."
10201
+ ] }),
10202
+ /* @__PURE__ */ n.jsx("div", { className: Q.smallCircle }),
10203
+ "Max size: ",
10204
+ /* @__PURE__ */ n.jsx("b", { children: " 5 MB" }),
10205
+ /* @__PURE__ */ n.jsx("div", { className: Q.smallCircle }),
10206
+ "Upload allowed: ",
10207
+ /* @__PURE__ */ n.jsx("b", { children: o })
10208
+ ] }),
10209
+ C && /* @__PURE__ */ n.jsx(
10210
+ "div",
10211
+ {
10212
+ className: I(Q.subTitle, p ? Q.disabledSubTitle : ""),
10213
+ children: C
10214
+ }
10215
+ )
10216
+ ]
10217
+ }
10218
+ ) })
10200
10219
  }
10201
10220
  ),
10202
10221
  (E || !!J) && /* @__PURE__ */ n.jsx("p", { className: Q.fileUploadLimitError, children: E || J }),