@vehiclehistory/property-lib 0.0.88 → 0.0.89

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.
@@ -1,5 +1,9 @@
1
1
  import { NamedExoticComponent } from 'react';
2
2
  declare const _default: NamedExoticComponent<{
3
3
  className?: string;
4
+ iconClass?: string;
5
+ iconProps?: {
6
+ [key: string]: any;
7
+ };
4
8
  }>;
5
9
  export default _default;
package/dist/main.es.js CHANGED
@@ -593,7 +593,7 @@ const W = {
593
593
  ] })
594
594
  }
595
595
  );
596
- }, T1 = A(J), _ = ({
596
+ }, F1 = A(J), _ = ({
597
597
  children: d,
598
598
  className: e,
599
599
  messages: t = [],
@@ -663,7 +663,7 @@ const W = {
663
663
  ] })
664
664
  }
665
665
  );
666
- }, D1 = A(_), O1 = ({
666
+ }, T1 = A(_), D1 = ({
667
667
  autoFocus: d = !1,
668
668
  className: e,
669
669
  dataSearch: t = "container",
@@ -848,7 +848,7 @@ const W = {
848
848
  ]
849
849
  }
850
850
  );
851
- }, B1 = ({
851
+ }, O1 = ({
852
852
  children: d,
853
853
  className: e,
854
854
  size: t = "sm",
@@ -970,7 +970,7 @@ const W = {
970
970
  ]
971
971
  }
972
972
  );
973
- }, I1 = A(K), X = ({
973
+ }, B1 = A(K), X = ({
974
974
  activator: d,
975
975
  id: e = "",
976
976
  children: t,
@@ -1070,7 +1070,7 @@ const W = {
1070
1070
  }
1071
1071
  )
1072
1072
  ] });
1073
- }, $1 = A(X), q1 = ({ className: d }) => /* @__PURE__ */ M("div", { className: m("Dots mx-auto", d), children: [
1073
+ }, I1 = A(X), $1 = ({ className: d }) => /* @__PURE__ */ M("div", { className: m("Dots mx-auto", d), children: [
1074
1074
  /* @__PURE__ */ c("span", { style: { animationDelay: "0.1s" } }),
1075
1075
  /* @__PURE__ */ c("span", { style: { animationDelay: "0.2s" } }),
1076
1076
  /* @__PURE__ */ c("span", { style: { animationDelay: "0.3s" } }),
@@ -1121,7 +1121,7 @@ const W = {
1121
1121
  children: /* @__PURE__ */ c("div", { className: "loading-bar__inner", "data-size": "100" })
1122
1122
  }
1123
1123
  );
1124
- }, j1 = A(e1), t1 = ({ className: d }) => /* @__PURE__ */ c("div", { className: m("processing-spinner", d) }), P1 = A(t1), R1 = ({
1124
+ }, q1 = A(e1), t1 = ({ className: d }) => /* @__PURE__ */ c("div", { className: m("processing-spinner", d) }), j1 = A(t1), P1 = ({
1125
1125
  activator: d,
1126
1126
  activatorClass: e = "",
1127
1127
  attrs: t = {},
@@ -1227,7 +1227,7 @@ const W = {
1227
1227
  )
1228
1228
  }
1229
1229
  );
1230
- }, W1 = A(a1), n1 = ({
1230
+ }, R1 = A(a1), n1 = ({
1231
1231
  checked: d = !1,
1232
1232
  children: e,
1233
1233
  className: t,
@@ -1268,7 +1268,7 @@ const W = {
1268
1268
  ]
1269
1269
  }
1270
1270
  );
1271
- }, U1 = A(n1), s1 = ({
1271
+ }, W1 = A(n1), s1 = ({
1272
1272
  className: d = "",
1273
1273
  error: e = !1,
1274
1274
  errorMessage: t = "",
@@ -1323,7 +1323,7 @@ const W = {
1323
1323
  ]
1324
1324
  }
1325
1325
  );
1326
- }, G1 = A(s1), r1 = ({ className: d }) => /* @__PURE__ */ M(
1326
+ }, U1 = A(s1), r1 = ({ className: d }) => /* @__PURE__ */ M(
1327
1327
  "div",
1328
1328
  {
1329
1329
  className: m(
@@ -1335,7 +1335,7 @@ const W = {
1335
1335
  /* @__PURE__ */ c("span", { className: "sr-only", children: "Loading..." })
1336
1336
  ]
1337
1337
  }
1338
- ), Q1 = A(r1), l1 = ({
1338
+ ), G1 = A(r1), l1 = ({
1339
1339
  placeholderClass: d = "",
1340
1340
  children: e,
1341
1341
  className: t,
@@ -1370,18 +1370,16 @@ const W = {
1370
1370
  children: /* @__PURE__ */ c(x, { name: "chevronRight" })
1371
1371
  }
1372
1372
  )
1373
- ] }), J1 = A(l1), i1 = {
1374
- name: "spinnerDark",
1375
- color: "text-teal-700",
1376
- viewBox: "0 0 24 24"
1377
- }, o1 = ({ className: d }) => /* @__PURE__ */ c("div", { className: "rounded-r-md px-2 focus:outline-none", children: /* @__PURE__ */ c(
1373
+ ] }), Q1 = A(l1), i1 = ({ className: d, iconClass: e, iconProps: t = {} }) => /* @__PURE__ */ c("div", { className: m("rounded-r-md px-2 focus:outline-none", d), children: /* @__PURE__ */ c(
1378
1374
  x,
1379
1375
  {
1380
- className: `animate-spin ${d}`,
1376
+ className: m("animate-spin text-black-900", e),
1381
1377
  size: "xSmall",
1382
- ...i1
1378
+ name: "spinnerDark",
1379
+ viewBox: "0 0 24 24",
1380
+ ...t
1383
1381
  }
1384
- ) }), _1 = A(o1), Y1 = ({
1382
+ ) }), J1 = A(i1), _1 = ({
1385
1383
  className: d,
1386
1384
  value: e
1387
1385
  }) => {
@@ -1398,7 +1396,7 @@ const W = {
1398
1396
  style: t
1399
1397
  }
1400
1398
  );
1401
- }, c1 = ({
1399
+ }, o1 = ({
1402
1400
  className: d,
1403
1401
  clear: e = !1,
1404
1402
  error: t = !1,
@@ -1445,7 +1443,7 @@ const W = {
1445
1443
  }
1446
1444
  ),
1447
1445
  a && /* @__PURE__ */ c("span", { className: "relative flex mt-0.5 text-red-700 text-xs text-left", children: a })
1448
- ] }), d1 = A(c1), h1 = ({
1446
+ ] }), c1 = A(o1), d1 = ({
1449
1447
  className: d,
1450
1448
  clear: e = !1,
1451
1449
  error: t = !1,
@@ -1515,7 +1513,7 @@ const W = {
1515
1513
  a && /* @__PURE__ */ c("span", { className: "relative flex mt-0.5 text-red-700 text-xs text-left", children: a })
1516
1514
  ]
1517
1515
  }
1518
- ), T = A(h1), u1 = ({ checked: d = !1, props: e = {} }) => /* @__PURE__ */ c(S, { children: /* @__PURE__ */ c("label", { className: "flex cursor-pointer select-none items-center", children: /* @__PURE__ */ M("div", { className: "relative", children: [
1516
+ ), T = A(d1), h1 = ({ checked: d = !1, props: e = {} }) => /* @__PURE__ */ c(S, { children: /* @__PURE__ */ c("label", { className: "flex cursor-pointer select-none items-center", children: /* @__PURE__ */ M("div", { className: "relative", children: [
1519
1517
  /* @__PURE__ */ c(
1520
1518
  "input",
1521
1519
  {
@@ -1537,7 +1535,7 @@ const W = {
1537
1535
  className: `absolute left-1 top-1 flex h-6 w-6 items-center justify-center rounded-full bg-white transition ${d ? "translate-x-full" : ""}`
1538
1536
  }
1539
1537
  )
1540
- ] }) }) }), K1 = A(u1), p1 = ({
1538
+ ] }) }) }), Y1 = A(h1), u1 = ({
1541
1539
  btnClass: d,
1542
1540
  className: e = "",
1543
1541
  containerClass: t,
@@ -1604,7 +1602,7 @@ const W = {
1604
1602
  }
1605
1603
  ),
1606
1604
  /* @__PURE__ */ c(
1607
- d1,
1605
+ c1,
1608
1606
  {
1609
1607
  id: "contact-message",
1610
1608
  name: "contact-message",
@@ -1635,7 +1633,7 @@ const W = {
1635
1633
  ]
1636
1634
  }
1637
1635
  );
1638
- }, X1 = A(p1), m1 = ({
1636
+ }, K1 = A(u1), p1 = ({
1639
1637
  block: d = !1,
1640
1638
  children: e,
1641
1639
  className: t,
@@ -1673,7 +1671,7 @@ const W = {
1673
1671
  ]
1674
1672
  }
1675
1673
  );
1676
- }, e2 = A(m1), f1 = ({
1674
+ }, X1 = A(p1), m1 = ({
1677
1675
  children: d,
1678
1676
  className: e,
1679
1677
  colGap: t = 2,
@@ -1708,7 +1706,7 @@ const W = {
1708
1706
  d
1709
1707
  ]
1710
1708
  }
1711
- ), t2 = A(f1), a2 = ({
1709
+ ), e2 = A(m1), t2 = ({
1712
1710
  breakPage: d = !1,
1713
1711
  children: e,
1714
1712
  className: t,
@@ -1734,7 +1732,7 @@ const W = {
1734
1732
  e
1735
1733
  ]
1736
1734
  }
1737
- ), n2 = ({ children: d, className: e, list: t = !0 }) => /* @__PURE__ */ c(t ? "li" : "div", { className: m("stacked-list", e), children: d }), V1 = ({ align: d = "center", children: e, className: t, tag: a = "h1", title: n }) => /* @__PURE__ */ c(
1735
+ ), a2 = ({ children: d, className: e, list: t = !0 }) => /* @__PURE__ */ c(t ? "li" : "div", { className: m("stacked-list", e), children: d }), f1 = ({ align: d = "center", children: e, className: t, tag: a = "h1", title: n }) => /* @__PURE__ */ c(
1738
1736
  a,
1739
1737
  {
1740
1738
  className: m(
@@ -1748,7 +1746,7 @@ const W = {
1748
1746
  ),
1749
1747
  children: n || e
1750
1748
  }
1751
- ), s2 = A(V1), H1 = {
1749
+ ), n2 = A(f1), V1 = {
1752
1750
  circular: "circular 3s linear infinite",
1753
1751
  "circular-reverse": "circular 3s linear reverse infinite",
1754
1752
  "fade-in": "fade-in 0.2.5s ease-out",
@@ -1760,17 +1758,17 @@ const W = {
1760
1758
  "menu-open": "menu-open 0.1s ease-out",
1761
1759
  "menu-close": "menu-close 0.1s ease-in-out",
1762
1760
  indeterminate_first: "indeterminate_first 1.1s ease-in-out infinite"
1763
- }, C1 = {
1761
+ }, H1 = {
1764
1762
  map: "var(--map)"
1765
- }, L1 = {
1763
+ }, C1 = {
1766
1764
  "3xs": "0.5rem",
1767
1765
  xxs: "0.625rem",
1768
1766
  "2.5xl": "1.625rem",
1769
1767
  "2.75xl": "1.75rem",
1770
1768
  "3.5xl": "2rem"
1771
- }, M1 = {
1769
+ }, L1 = {
1772
1770
  17: "repeat(17, minmax(0, 1fr))"
1773
- }, g1 = {
1771
+ }, M1 = {
1774
1772
  circular: {
1775
1773
  "100%": {
1776
1774
  transform: "rotate(360deg)"
@@ -1860,16 +1858,16 @@ const W = {
1860
1858
  transform: "translateX(100%)"
1861
1859
  }
1862
1860
  }
1863
- }, v1 = {
1861
+ }, g1 = {
1864
1862
  20: "5rem",
1865
1863
  24: "6rem",
1866
1864
  28: "7rem",
1867
1865
  32: "8rem"
1868
- }, b1 = {
1866
+ }, v1 = {
1869
1867
  aside: "268px",
1870
1868
  container: "724px",
1871
1869
  page: "1200px"
1872
- }, A1 = {
1870
+ }, b1 = {
1873
1871
  "xs-max": {
1874
1872
  max: "639px"
1875
1873
  },
@@ -1887,22 +1885,22 @@ const W = {
1887
1885
  max: "1199px"
1888
1886
  },
1889
1887
  "lg-up": "1200px"
1890
- }, y1 = {
1888
+ }, A1 = {
1891
1889
  0: "0ms",
1892
1890
  50: "50ms"
1893
- }, x1 = {
1891
+ }, y1 = {
1894
1892
  "center-top": "center 30%"
1895
1893
  }, O = {
1896
- animation: H1,
1897
- backgroundImage: C1,
1898
- fontSize: L1,
1899
- gridTemplateColumns: M1,
1900
- keyframes: g1,
1901
- margin: v1,
1902
- maxWidth: b1,
1903
- screens: A1,
1904
- transitionDuration: y1,
1905
- transformOrigin: x1
1894
+ animation: V1,
1895
+ backgroundImage: H1,
1896
+ fontSize: C1,
1897
+ gridTemplateColumns: L1,
1898
+ keyframes: M1,
1899
+ margin: g1,
1900
+ maxWidth: v1,
1901
+ screens: b1,
1902
+ transitionDuration: A1,
1903
+ transformOrigin: y1
1906
1904
  }, B = {
1907
1905
  black: {
1908
1906
  50: "#FCFCFC",
@@ -2010,10 +2008,10 @@ const W = {
2010
2008
  purple: "hsl(279 85% 57%)",
2011
2009
  white: "hsl(0 0% 100%)",
2012
2010
  transparent: "hsl(0 0% 100% / 0)"
2013
- }, r2 = {
2011
+ }, s2 = {
2014
2012
  ...B,
2015
2013
  ...I
2016
- }, w1 = ({ matchUtilities: d, theme: e }) => d(
2014
+ }, x1 = ({ matchUtilities: d, theme: e }) => d(
2017
2015
  {
2018
2016
  aspect: (t) => ({
2019
2017
  "@supports (aspect-ratio: 1 / 1)": {
@@ -2034,7 +2032,7 @@ const W = {
2034
2032
  })
2035
2033
  },
2036
2034
  { values: e("aspectRatio") }
2037
- ), S1 = ({ matchUtilities: d, theme: e }) => d(
2035
+ ), w1 = ({ matchUtilities: d, theme: e }) => d(
2038
2036
  {
2039
2037
  "animation-delay": (t) => ({
2040
2038
  "animation-delay": t
@@ -2043,11 +2041,11 @@ const W = {
2043
2041
  {
2044
2042
  values: e("transitionDelay")
2045
2043
  }
2046
- ), k1 = ({ matchUtilities: d }) => d({
2044
+ ), S1 = ({ matchUtilities: d }) => d({
2047
2045
  "max-inline": (e) => ({
2048
2046
  "max-inline-size": e
2049
2047
  })
2050
- }), z1 = ({ matchUtilities: d }) => d({
2048
+ }), k1 = ({ matchUtilities: d }) => d({
2051
2049
  "max-block": (e) => ({
2052
2050
  "max-block-size": e
2053
2051
  })
@@ -2182,16 +2180,16 @@ const W = {
2182
2180
  classPrefix: "text-body",
2183
2181
  sizes: o,
2184
2182
  weights: s
2185
- }), w1({ matchUtilities: e, theme: t }), S1({ matchUtilities: e, theme: t }), k1({ matchUtilities: e }), z1({ matchUtilities: e });
2183
+ }), x1({ matchUtilities: e, theme: t }), w1({ matchUtilities: e, theme: t }), S1({ matchUtilities: e }), k1({ matchUtilities: e });
2186
2184
  }
2187
- ], l2 = {
2185
+ ], r2 = {
2188
2186
  theme: {
2189
2187
  extend: O,
2190
2188
  colors: B
2191
2189
  },
2192
2190
  plugins: q,
2193
2191
  corePlugins: $
2194
- }, i2 = {
2192
+ }, l2 = {
2195
2193
  theme: {
2196
2194
  extend: O,
2197
2195
  colors: I
@@ -2199,7 +2197,7 @@ const W = {
2199
2197
  plugins: q,
2200
2198
  corePlugins: $
2201
2199
  };
2202
- function Z1(d, e = []) {
2200
+ function z1(d, e = []) {
2203
2201
  return new Proxy(d, {
2204
2202
  get: function(t, a) {
2205
2203
  return t[a];
@@ -2210,13 +2208,13 @@ function Z1(d, e = []) {
2210
2208
  }
2211
2209
  });
2212
2210
  }
2213
- function o2(d, e = []) {
2211
+ function i2(d, e = []) {
2214
2212
  e.length && (d == null || d.classList.add(...e));
2215
2213
  }
2216
- function c2(d, e = []) {
2214
+ function o2(d, e = []) {
2217
2215
  e.length && (d == null || d.classList.remove(...e));
2218
2216
  }
2219
- function d2({ cb: d, form: e, formData: t, validations: a, reactive: n = !1 }) {
2217
+ function c2({ cb: d, form: e, formData: t, validations: a, reactive: n = !1 }) {
2220
2218
  let s = !0;
2221
2219
  for (const [l, o] of t.entries()) {
2222
2220
  const r = e.querySelector(`[name="${l}"]`), i = a[l], u = [];
@@ -2228,21 +2226,21 @@ function d2({ cb: d, form: e, formData: t, validations: a, reactive: n = !1 }) {
2228
2226
  }
2229
2227
  return s;
2230
2228
  }
2231
- function h2(d) {
2229
+ function d2(d) {
2232
2230
  const e = (
2233
2231
  // eslint-disable-next-line
2234
2232
  /(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])/
2235
2233
  ), t = /[^a-zA-Z]+$/;
2236
2234
  return e.test(d.toLowerCase()) && !t.test(d);
2237
2235
  }
2238
- class u2 {
2236
+ class h2 {
2239
2237
  init(e) {
2240
2238
  this.handleSliders(e);
2241
2239
  }
2242
2240
  handleSliders({ items: e, id: t = 1, cb: a }) {
2243
2241
  if (!document.getElementById(`slider-container-${t}`))
2244
2242
  return;
2245
- const n = Z1(
2243
+ const n = z1(
2246
2244
  {
2247
2245
  activeIndex: 0,
2248
2246
  computedSlides: [],
@@ -3170,44 +3168,44 @@ class H {
3170
3168
  }
3171
3169
  }
3172
3170
  export {
3173
- T1 as Accordion,
3174
- D1 as Alert,
3175
- O1 as Autocomplete,
3176
- B1 as Badge,
3171
+ F1 as Accordion,
3172
+ T1 as Alert,
3173
+ D1 as Autocomplete,
3174
+ O1 as Badge,
3177
3175
  F as Button,
3178
- u2 as CardSlider,
3179
- I1 as Checkbox,
3176
+ h2 as CardSlider,
3177
+ B1 as Checkbox,
3180
3178
  H as Common,
3181
- X1 as ContactForm,
3182
- e2 as ContentCard,
3183
- $1 as Dialog,
3184
- q1 as Dots,
3185
- t2 as FlexItem,
3186
- s2 as FunnelHeader,
3179
+ K1 as ContactForm,
3180
+ X1 as ContentCard,
3181
+ I1 as Dialog,
3182
+ $1 as Dots,
3183
+ e2 as FlexItem,
3184
+ n2 as FunnelHeader,
3187
3185
  x as Icon,
3188
- j1 as LoadingBar,
3189
- R1 as Popover,
3190
- P1 as ProcessingSpinner,
3191
- W1 as ProgressBar,
3192
- U1 as Radio,
3193
- G1 as Select,
3194
- Q1 as Skeleton,
3195
- J1 as Slider,
3196
- a2 as Spacer,
3197
- _1 as Spinner,
3198
- n2 as StackedListItem,
3199
- Y1 as Stars,
3200
- d1 as TextArea,
3186
+ q1 as LoadingBar,
3187
+ P1 as Popover,
3188
+ j1 as ProcessingSpinner,
3189
+ R1 as ProgressBar,
3190
+ W1 as Radio,
3191
+ U1 as Select,
3192
+ G1 as Skeleton,
3193
+ Q1 as Slider,
3194
+ t2 as Spacer,
3195
+ J1 as Spinner,
3196
+ a2 as StackedListItem,
3197
+ _1 as Stars,
3198
+ c1 as TextArea,
3201
3199
  T as Textbox,
3202
- K1 as Toggle,
3203
- o2 as addClass,
3204
- r2 as colors,
3200
+ Y1 as Toggle,
3201
+ i2 as addClass,
3202
+ s2 as colors,
3205
3203
  $ as corePlugins,
3206
- i2 as elerisPreset,
3204
+ l2 as elerisPreset,
3207
3205
  O as extensions,
3208
3206
  q as plugins,
3209
- l2 as propertyPreset,
3210
- c2 as removeClass,
3211
- h2 as validateEmail,
3212
- d2 as validateForm
3207
+ r2 as propertyPreset,
3208
+ o2 as removeClass,
3209
+ d2 as validateEmail,
3210
+ c2 as validateForm
3213
3211
  };