@vehiclehistory/property-lib 0.0.10 → 0.0.12

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.
Files changed (31) hide show
  1. package/dist/components/funnel/FunnelHeader.d.ts +9 -0
  2. package/dist/components/index.d.ts +26 -25
  3. package/dist/main.js +60 -50
  4. package/dist/styles.css +1 -1
  5. package/package.json +1 -1
  6. /package/dist/components/{Accordion → ui/Accordion}/Accordion.d.ts +0 -0
  7. /package/dist/components/{Alert → ui/Alert}/Alert.d.ts +0 -0
  8. /package/dist/components/{Autocomplete → ui/Autocomplete}/Autocomplete.d.ts +0 -0
  9. /package/dist/components/{Badge → ui/Badge}/Badge.d.ts +0 -0
  10. /package/dist/components/{Button → ui/Button}/Button.d.ts +0 -0
  11. /package/dist/components/{ButtonGroup → ui/ButtonGroup}/ButtonGroup.d.ts +0 -0
  12. /package/dist/components/{Card → ui/Card}/Card.d.ts +0 -0
  13. /package/dist/components/{Checkbox → ui/Checkbox}/Checkbox.d.ts +0 -0
  14. /package/dist/components/{Container → ui/Container}/Container.d.ts +0 -0
  15. /package/dist/components/{Dialog → ui/Dialog}/Dialog.d.ts +0 -0
  16. /package/dist/components/{Dialog → ui/Dialog}/DialogOld.d.ts +0 -0
  17. /package/dist/components/{Dots → ui/Dots}/Dots.d.ts +0 -0
  18. /package/dist/components/{Icon → ui/Icon}/Icon.d.ts +0 -0
  19. /package/dist/components/{Icon → ui/Icon}/icons.d.ts +0 -0
  20. /package/dist/components/{Loading → ui/Loading}/LoadingBar.d.ts +0 -0
  21. /package/dist/components/{Loading → ui/Loading}/Spinner.d.ts +0 -0
  22. /package/dist/components/{Popover → ui/Popover}/Popover.d.ts +0 -0
  23. /package/dist/components/{Progress → ui/Progress}/ProgressBar.d.ts +0 -0
  24. /package/dist/components/{Radio → ui/Radio}/Radio.d.ts +0 -0
  25. /package/dist/components/{Select → ui/Select}/Select.d.ts +0 -0
  26. /package/dist/components/{Skeleton → ui/Skeleton}/Skeleton.d.ts +0 -0
  27. /package/dist/components/{Slider → ui/Slider}/Slider.d.ts +0 -0
  28. /package/dist/components/{Stars → ui/Stars}/Stars.d.ts +0 -0
  29. /package/dist/components/{Swiper → ui/Swiper}/Swiper.d.ts +0 -0
  30. /package/dist/components/{Text → ui/Text}/TextArea.d.ts +0 -0
  31. /package/dist/components/{Text → ui/Text}/Textbox.d.ts +0 -0
@@ -0,0 +1,9 @@
1
+ import { ReactNode, NamedExoticComponent } from 'react';
2
+
3
+ declare const _default: NamedExoticComponent<{
4
+ children?: ReactNode;
5
+ className?: string;
6
+ tag?: any;
7
+ title?: string;
8
+ }>;
9
+ export default _default;
@@ -1,26 +1,27 @@
1
- import { default as Accordion } from './Accordion/Accordion';
2
- import { default as Alert } from './Alert/Alert';
3
- import { default as Autocomplete } from './Autocomplete/Autocomplete';
4
- import { default as Badge } from './Badge/Badge';
5
- import { default as Button } from './Button/Button';
6
- import { default as ButtonGroup } from './ButtonGroup/ButtonGroup';
7
- import { default as Card } from './Card/Card';
8
- import { default as Checkbox } from './Checkbox/Checkbox';
9
- import { default as Container } from './Container/Container';
10
- import { default as Dialog } from './Dialog/Dialog';
11
- import { default as DialogOld } from './Dialog/DialogOld';
12
- import { default as Dots } from './Dots/Dots';
13
- import { default as Icon } from './Icon/Icon';
14
- import { default as LoadingBar } from './Loading/LoadingBar';
15
- import { default as Spinner } from './Loading/Spinner';
16
- import { default as Popover } from './Popover/Popover';
17
- import { default as ProgressBar } from './Progress/ProgressBar';
18
- import { default as Radio } from './Radio/Radio';
19
- import { default as Select } from './Select/Select';
20
- import { default as Skeleton } from './Skeleton/Skeleton';
21
- import { default as Slider } from './Slider/Slider';
22
- import { default as Stars } from './Stars/Stars';
23
- import { default as TextArea } from './Text/TextArea';
24
- import { default as Textbox } from './Text/Textbox';
1
+ import { default as Accordion } from './ui/Accordion/Accordion';
2
+ import { default as Alert } from './ui/Alert/Alert';
3
+ import { default as Autocomplete } from './ui/Autocomplete/Autocomplete';
4
+ import { default as Badge } from './ui/Badge/Badge';
5
+ import { default as Button } from './ui/Button/Button';
6
+ import { default as ButtonGroup } from './ui/ButtonGroup/ButtonGroup';
7
+ import { default as Card } from './ui/Card/Card';
8
+ import { default as Checkbox } from './ui/Checkbox/Checkbox';
9
+ import { default as Container } from './ui/Container/Container';
10
+ import { default as Dialog } from './ui/Dialog/Dialog';
11
+ import { default as DialogOld } from './ui/Dialog/DialogOld';
12
+ import { default as Dots } from './ui/Dots/Dots';
13
+ import { default as Icon } from './ui/Icon/Icon';
14
+ import { default as LoadingBar } from './ui/Loading/LoadingBar';
15
+ import { default as Spinner } from './ui/Loading/Spinner';
16
+ import { default as Popover } from './ui/Popover/Popover';
17
+ import { default as ProgressBar } from './ui/Progress/ProgressBar';
18
+ import { default as Radio } from './ui/Radio/Radio';
19
+ import { default as Select } from './ui/Select/Select';
20
+ import { default as Skeleton } from './ui/Skeleton/Skeleton';
21
+ import { default as Slider } from './ui/Slider/Slider';
22
+ import { default as Stars } from './ui/Stars/Stars';
23
+ import { default as TextArea } from './ui/Text/TextArea';
24
+ import { default as Textbox } from './ui/Text/Textbox';
25
+ import { default as FunnelHeader } from './funnel/FunnelHeader';
25
26
 
26
- export { Accordion, Alert, Autocomplete, Badge, Button, ButtonGroup, Card, Checkbox, Container, Dialog, DialogOld, Dots, Icon, LoadingBar, Spinner, Popover, ProgressBar, Radio, Select, Skeleton, Slider, Stars, TextArea, Textbox, };
27
+ export { Accordion, Alert, Autocomplete, Badge, Button, ButtonGroup, Card, Checkbox, Container, Dialog, DialogOld, Dots, FunnelHeader, Icon, LoadingBar, Spinner, Popover, ProgressBar, Radio, Select, Skeleton, Slider, Stars, TextArea, Textbox, };
package/dist/main.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { jsx as i, jsxs as v, Fragment as z } from "react/jsx-runtime";
2
- import { memo as A, useState as Z, useEffect as S, useRef as q } from "react";
2
+ import { memo as A, useState as Z, useEffect as S, useRef as j } from "react";
3
3
  import m from "classnames";
4
- const F = {
4
+ const q = {
5
5
  xxSmall: "w-4 h-4",
6
6
  xSmall: "w-5 h-5",
7
7
  small: "w-6 h-6",
@@ -486,7 +486,7 @@ const F = {
486
486
  "svg",
487
487
  {
488
488
  xmlns: "http://www.w3.org/2000/svg",
489
- className: `${F[a]} fill-current flex-shrink-0 ${s}${e ? ` ${e}` : ""}`,
489
+ className: `${q[a]} fill-current flex-shrink-0 ${s}${e ? ` ${e}` : ""}`,
490
490
  style: { maxWidth: "4em" },
491
491
  role: "presentation",
492
492
  viewBox: n,
@@ -556,7 +556,7 @@ const F = {
556
556
  }
557
557
  )
558
558
  ] }) });
559
- }, d1 = A(P), U = ({
559
+ }, h1 = A(P), U = ({
560
560
  children: d,
561
561
  className: e = "",
562
562
  messages: t = [],
@@ -614,7 +614,7 @@ const F = {
614
614
  ] })
615
615
  }
616
616
  );
617
- }, h1 = A(U), u1 = ({
617
+ }, u1 = A(U), p1 = ({
618
618
  autoFocus: d = !1,
619
619
  required: e = !1,
620
620
  className: t = "",
@@ -780,7 +780,7 @@ const F = {
780
780
  )
781
781
  ]
782
782
  }
783
- ), p1 = ({
783
+ ), m1 = ({
784
784
  children: d,
785
785
  className: e = "",
786
786
  size: t = "sm",
@@ -835,7 +835,7 @@ const F = {
835
835
  children: d
836
836
  }
837
837
  );
838
- }, m1 = A(W), V1 = ({ children: d, className: e }) => /* @__PURE__ */ i("div", { className: m("flex md:max-w-min border border-gray-300 divide-x divide-gray-200 rounded-lg", e), children: d }), H1 = ({
838
+ }, V1 = A(W), H1 = ({ children: d, className: e }) => /* @__PURE__ */ i("div", { className: m("flex md:max-w-min border border-gray-300 divide-x divide-gray-200 rounded-lg", e), children: d }), L1 = ({
839
839
  block: d = !1,
840
840
  borderless: e = !1,
841
841
  children: t,
@@ -898,7 +898,7 @@ const F = {
898
898
  ]
899
899
  }
900
900
  );
901
- }, L1 = A(Q), J = ({ children: d, aside: e, direction: t = "right" }) => /* @__PURE__ */ v("div", { className: "flex flex-col lg:flex-row lg:p-0 max-w-screen-lg", children: [
901
+ }, C1 = A(Q), J = ({ children: d, aside: e, direction: t = "right" }) => /* @__PURE__ */ v("div", { className: "flex flex-col lg:flex-row lg:p-0 max-w-screen-lg", children: [
902
902
  /* @__PURE__ */ i(
903
903
  "main",
904
904
  {
@@ -924,7 +924,7 @@ const F = {
924
924
  children: e
925
925
  }
926
926
  )
927
- ] }), C1 = A(J), G = ({
927
+ ] }), M1 = A(J), G = ({
928
928
  activator: d,
929
929
  id: e = "",
930
930
  children: t,
@@ -1004,7 +1004,7 @@ const F = {
1004
1004
  ] })
1005
1005
  }
1006
1006
  )
1007
- ] }), M1 = A(G), K = ({
1007
+ ] }), f1 = A(G), K = ({
1008
1008
  activator: d,
1009
1009
  id: e = "",
1010
1010
  children: t,
@@ -1023,13 +1023,13 @@ const F = {
1023
1023
  title: M = "",
1024
1024
  titleClass: u = ""
1025
1025
  }) => {
1026
- const V = q(null), w = async () => {
1026
+ const V = j(null), w = async () => {
1027
1027
  V.current.classList.add("closing"), await D(V.current), V.current.classList.remove("closing"), r && r(), f(!1);
1028
1028
  }, g = async (x) => {
1029
1029
  x.key === "Escape" && await w();
1030
1030
  }, N = async ({ clientX: x, clientY: k, target: T }) => {
1031
- const { left: O, right: E, top: $, bottom: j } = V.current.getBoundingClientRect() ?? {};
1032
- (!V.current.contains(T) || x < O || x > E || k < $ || k > j) && await w();
1031
+ const { left: O, right: E, top: F, bottom: $ } = V.current.getBoundingClientRect() ?? {};
1032
+ (!V.current.contains(T) || x < O || x > E || k < F || k > $) && await w();
1033
1033
  }, D = (x) => Promise.allSettled(
1034
1034
  x.getAnimations().map((k) => k.finished)
1035
1035
  );
@@ -1105,7 +1105,7 @@ const F = {
1105
1105
  }
1106
1106
  )
1107
1107
  ] });
1108
- }, f1 = A(K), g1 = ({ className: d = "" }) => /* @__PURE__ */ v("div", { id: "dots", className: m("mx-auto", d), children: [
1108
+ }, g1 = A(K), v1 = ({ className: d = "" }) => /* @__PURE__ */ v("div", { id: "dots", className: m("mx-auto", d), children: [
1109
1109
  /* @__PURE__ */ i("span", { style: { animationDelay: "0.1s" } }),
1110
1110
  /* @__PURE__ */ i("span", { style: { animationDelay: "0.2s" } }),
1111
1111
  /* @__PURE__ */ i("span", { style: { animationDelay: "0.3s" } }),
@@ -1122,7 +1122,7 @@ const F = {
1122
1122
  variation: n = "primary"
1123
1123
  }) => {
1124
1124
  function r({ cb: s }) {
1125
- const l = document.querySelector(".loading-bar--inner");
1125
+ const l = document.querySelector(".loading-bar__inner");
1126
1126
  if (!l) return;
1127
1127
  let o, c, h = !1;
1128
1128
  function p(C) {
@@ -1143,19 +1143,19 @@ const F = {
1143
1143
  {
1144
1144
  className: m(
1145
1145
  "loading-bar my-8",
1146
- `loading-bar--${n}`,
1146
+ `loading-bar__${n}`,
1147
1147
  {
1148
1148
  "h-4": t === "md",
1149
1149
  "h-6": t === "lg",
1150
1150
  "h-8": t === "xl"
1151
1151
  },
1152
- `loading-bar--${t}`,
1152
+ `loading-bar__${t}`,
1153
1153
  e
1154
1154
  ),
1155
- children: /* @__PURE__ */ i("div", { className: "loading-bar--inner", "data-size": "100" })
1155
+ children: /* @__PURE__ */ i("div", { className: "loading-bar__inner", "data-size": "100" })
1156
1156
  }
1157
1157
  );
1158
- }, v1 = A(Y), X = {
1158
+ }, A1 = A(Y), X = {
1159
1159
  name: "spinnerDark",
1160
1160
  color: "text-teal-700",
1161
1161
  viewBox: "0 0 24 24"
@@ -1166,7 +1166,7 @@ const F = {
1166
1166
  ...X,
1167
1167
  className: `animate-spin ${d}`
1168
1168
  }
1169
- ) }), A1 = A(_), y1 = ({
1169
+ ) }), y1 = A(_), b1 = ({
1170
1170
  activator: d,
1171
1171
  activatorClass: e = "",
1172
1172
  attrs: t = {},
@@ -1260,7 +1260,7 @@ const F = {
1260
1260
  )
1261
1261
  }
1262
1262
  );
1263
- }, b1 = A(e1), t1 = ({
1263
+ }, w1 = A(e1), t1 = ({
1264
1264
  checked: d = !1,
1265
1265
  children: e,
1266
1266
  className: t = "",
@@ -1299,7 +1299,7 @@ const F = {
1299
1299
  ]
1300
1300
  }
1301
1301
  );
1302
- }, w1 = A(t1), a1 = ({
1302
+ }, x1 = A(t1), a1 = ({
1303
1303
  children: d,
1304
1304
  className: e = "",
1305
1305
  error: t = !1,
@@ -1353,7 +1353,7 @@ const F = {
1353
1353
  ]
1354
1354
  }
1355
1355
  );
1356
- }, x1 = A(a1), n1 = ({ className: d = "" }) => /* @__PURE__ */ v(
1356
+ }, k1 = A(a1), n1 = ({ className: d = "" }) => /* @__PURE__ */ v(
1357
1357
  "div",
1358
1358
  {
1359
1359
  className: m(
@@ -1365,7 +1365,7 @@ const F = {
1365
1365
  /* @__PURE__ */ i("span", { className: "sr-only", children: "Loading..." })
1366
1366
  ]
1367
1367
  }
1368
- ), k1 = A(n1), l1 = ({
1368
+ ), S1 = A(n1), l1 = ({
1369
1369
  placeholderClass: d = "",
1370
1370
  children: e,
1371
1371
  className: t = "",
@@ -1416,7 +1416,7 @@ const F = {
1416
1416
  )
1417
1417
  ]
1418
1418
  }
1419
- ), S1 = A(l1), z1 = ({
1419
+ ), z1 = A(l1), Z1 = ({
1420
1420
  className: d = "",
1421
1421
  value: e
1422
1422
  }) => {
@@ -1478,7 +1478,7 @@ const F = {
1478
1478
  }
1479
1479
  ),
1480
1480
  a && /* @__PURE__ */ i("span", { className: "relative flex mt-0.5 text-red-700 text-xs text-left", children: a })
1481
- ] }), Z1 = A(r1), s1 = ({
1481
+ ] }), N1 = A(r1), s1 = ({
1482
1482
  className: d = "",
1483
1483
  clear: e = !1,
1484
1484
  error: t = !1,
@@ -1548,7 +1548,16 @@ const F = {
1548
1548
  a && /* @__PURE__ */ i("span", { className: "relative flex mt-0.5 text-red-700 text-xs text-left", children: a })
1549
1549
  ]
1550
1550
  }
1551
- ), N1 = A(s1);
1551
+ ), D1 = A(s1), i1 = ({ children: d, className: e = "", tag: t = "h1", title: a }) => /* @__PURE__ */ i(
1552
+ t,
1553
+ {
1554
+ className: m(
1555
+ "!text-xl text-center mb-6 flex items-center justify-center",
1556
+ e
1557
+ ),
1558
+ children: a || d
1559
+ }
1560
+ ), T1 = A(i1);
1552
1561
  class H {
1553
1562
  static calcCrow(e, t, a, n) {
1554
1563
  const s = H.toRad(a - e), l = H.toRad(n - t);
@@ -2311,29 +2320,30 @@ class H {
2311
2320
  }
2312
2321
  }
2313
2322
  export {
2314
- d1 as Accordion,
2315
- h1 as Alert,
2316
- u1 as Autocomplete,
2317
- p1 as Badge,
2318
- m1 as Button,
2319
- V1 as ButtonGroup,
2320
- H1 as Card,
2321
- L1 as Checkbox,
2323
+ h1 as Accordion,
2324
+ u1 as Alert,
2325
+ p1 as Autocomplete,
2326
+ m1 as Badge,
2327
+ V1 as Button,
2328
+ H1 as ButtonGroup,
2329
+ L1 as Card,
2330
+ C1 as Checkbox,
2322
2331
  H as Common,
2323
- C1 as Container,
2324
- M1 as Dialog,
2325
- f1 as DialogOld,
2326
- g1 as Dots,
2332
+ M1 as Container,
2333
+ f1 as Dialog,
2334
+ g1 as DialogOld,
2335
+ v1 as Dots,
2336
+ T1 as FunnelHeader,
2327
2337
  b as Icon,
2328
- v1 as LoadingBar,
2329
- y1 as Popover,
2330
- b1 as ProgressBar,
2331
- w1 as Radio,
2332
- x1 as Select,
2333
- k1 as Skeleton,
2334
- S1 as Slider,
2335
- A1 as Spinner,
2336
- z1 as Stars,
2337
- Z1 as TextArea,
2338
- N1 as Textbox
2338
+ A1 as LoadingBar,
2339
+ b1 as Popover,
2340
+ w1 as ProgressBar,
2341
+ x1 as Radio,
2342
+ k1 as Select,
2343
+ S1 as Skeleton,
2344
+ z1 as Slider,
2345
+ y1 as Spinner,
2346
+ Z1 as Stars,
2347
+ N1 as TextArea,
2348
+ D1 as Textbox
2339
2349
  };
package/dist/styles.css CHANGED
@@ -1 +1 @@
1
- .loading-bar{@apply bg-gray-50 overflow-hidden relative;box-shadow:2px 0 10px inset #0003}.loading-bar .loading-bar--inner{@apply w-0 h-full;background-size:30px 30px;animation:move 2s linear infinite;box-shadow:2px 0 10px inset #0003}.loading-bar.loading-bar--primary{@apply rounded-md;}.loading-bar.loading-bar--primary .loading-bar--inner{@apply bg-[#767676];background-image:linear-gradient(-45deg,rgba(255,255,255,.2) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.2) 50%,rgba(255,255,255,.2) 75%,transparent 75%,transparent)}.loading-bar.loading-bar--secondary .loading-bar--inner{@apply bg-[#909090];}.loading-bar .perc{@apply absolute top-1/2 left-1/2 -translate-y-1/2 -translate-x-1/2 text-white font-bold;}
1
+ .Button{@apply text-[#222] focus:outline-none font-medium;}.Button:not(.Button--link){@apply focus:ring-2 focus:ring-[#222] px-4 py-1 rounded;}.Button.Button--primary{@apply bg-[#e5e5e5] border border-[#222] hover:bg-[#d4d4d4];}.Button.Button--secondary{@apply bg-teal-700 border border-teal-700 hover:bg-teal-700 text-white focus:ring-teal-700/50 !important;}.Button.Button--link:not(.custom-link){@apply text-[#222] underline !important;}.Button.Button--rounded{@apply rounded-full !important;}.Button.Button--icon{@apply p-1 !important;}.Button.Button--disabled{@apply pointer-events-none;}.loading-bar{@apply bg-gray-50 overflow-hidden relative;box-shadow:2px 0 10px inset #0003}.loading-bar .loading-bar__inner{@apply w-0 h-full;background-size:30px 30px;animation:move 2s linear infinite;box-shadow:2px 0 10px inset #0003}.loading-bar.loading-bar__primary{@apply rounded-md;}.loading-bar.loading-bar__primary .loading-bar__inner{@apply bg-[#767676];background-image:linear-gradient(-45deg,rgba(255,255,255,.2) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.2) 50%,rgba(255,255,255,.2) 75%,transparent 75%,transparent)}.loading-bar.loading-bar__secondary .loading-bar__inner{@apply bg-[#909090];}.loading-bar .perc{@apply absolute top-1/2 left-1/2 -translate-y-1/2 -translate-x-1/2 text-white font-bold;}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vehiclehistory/property-lib",
3
3
  "description": "Shared UI/Utility Library for Property Sites",
4
- "version": "0.0.10",
4
+ "version": "0.0.12",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/penguin-marketing/vh-recs-ui-library.git"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes