@hortiview/shared-components 0.0.4529 → 0.0.4539

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.
@@ -0,0 +1,45 @@
1
+ import { forwardRef as f, useRef as i, useImperativeHandle as s, useEffect as l } from "react";
2
+ import { P as r } from "./index.es-WZ1mqvGz.js";
3
+ import { M as R } from "./component-D1YrRAXe.js";
4
+ const a = {
5
+ /**
6
+ * Content to be rendered inside the component.
7
+ *
8
+ * Defaults to **null**.
9
+ */
10
+ children: r.node,
11
+ /**
12
+ * A reference to the component to apply the ripple to.
13
+ *
14
+ * Defaults to **undefined**.
15
+ */
16
+ componentRef: r.object,
17
+ /**
18
+ * Allows the ripple to extend beyond the component boundaries.
19
+ *
20
+ * Defaults to **undefined**.
21
+ */
22
+ unbounded: r.bool
23
+ }, m = {
24
+ children: null,
25
+ componentRef: void 0,
26
+ unbounded: void 0
27
+ }, o = /* @__PURE__ */ f((u, c) => {
28
+ const {
29
+ componentRef: n,
30
+ unbounded: p,
31
+ children: d
32
+ } = u, e = i();
33
+ return s(c, () => e.current, []), l(() => {
34
+ const t = n.current;
35
+ return t && (e.current = R.attachTo(n.current), p && (e.current.unbounded = !0)), () => {
36
+ t && e.current.destroy();
37
+ };
38
+ }, [n, p]), d;
39
+ });
40
+ o.displayName = "Ripple";
41
+ o.propTypes = a;
42
+ o.defaultProps = m;
43
+ export {
44
+ o as R
45
+ };
package/dist/main.js CHANGED
@@ -1,24 +1,25 @@
1
- import { BaseView as e } from "./components/BaseView/BaseView.js";
2
- import { BasicHeading as a } from "./components/BasicHeading/BasicHeading.js";
3
- import { BlockView as m } from "./components/BlockView/BlockView.js";
4
- import { EmptyView as f } from "./components/EmptyView/EmptyView.js";
5
- import { HashTabView as s } from "./components/HashTabView/HashTabView.js";
6
- import { Iconify as B } from "./components/Iconify/Iconify.js";
7
- import { ListArea as l } from "./components/ListArea/ListArea.js";
8
- import { SearchBar as w } from "./components/SearchBar/SearchBar.js";
9
- import { VerticalDivider as b } from "./components/VerticalDivider/VerticalDivider.js";
10
- import { AvailableCustomIcons as h } from "./enums/AvailableCustomIcons.js";
11
- import { u as v } from "./useBreakpoint-DyAmuka7.js";
1
+ import "./assets/main.css";
2
+ import { BaseView as t } from "./components/BaseView/BaseView.js";
3
+ import { BasicHeading as i } from "./components/BasicHeading/BasicHeading.js";
4
+ import { BlockView as p } from "./components/BlockView/BlockView.js";
5
+ import { EmptyView as x } from "./components/EmptyView/EmptyView.js";
6
+ import { HashTabView as c } from "./components/HashTabView/HashTabView.js";
7
+ import { Iconify as V } from "./components/Iconify/Iconify.js";
8
+ import { ListArea as n } from "./components/ListArea/ListArea.js";
9
+ import { S as u } from "./SearchBar-CY2zfu6B.js";
10
+ import { VerticalDivider as d } from "./components/VerticalDivider/VerticalDivider.js";
11
+ import { AvailableCustomIcons as k } from "./enums/AvailableCustomIcons.js";
12
+ import { u as y } from "./useBreakpoint-DyAmuka7.js";
12
13
  export {
13
- h as AvailableCustomIcons,
14
- e as BaseView,
15
- a as BasicHeading,
16
- m as BlockView,
17
- f as EmptyView,
18
- s as HashTabView,
19
- B as Iconify,
20
- l as ListArea,
21
- w as SearchBar,
22
- b as VerticalDivider,
23
- v as useBreakpoints
14
+ k as AvailableCustomIcons,
15
+ t as BaseView,
16
+ i as BasicHeading,
17
+ p as BlockView,
18
+ x as EmptyView,
19
+ c as HashTabView,
20
+ V as Iconify,
21
+ n as ListArea,
22
+ u as SearchBar,
23
+ d as VerticalDivider,
24
+ y as useBreakpoints
24
25
  };
@@ -0,0 +1,72 @@
1
+ var u = function(t, r) {
2
+ return u = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, e) {
3
+ n.__proto__ = e;
4
+ } || function(n, e) {
5
+ for (var o in e)
6
+ Object.prototype.hasOwnProperty.call(e, o) && (n[o] = e[o]);
7
+ }, u(t, r);
8
+ };
9
+ function s(t, r) {
10
+ if (typeof r != "function" && r !== null)
11
+ throw new TypeError("Class extends value " + String(r) + " is not a constructor or null");
12
+ u(t, r);
13
+ function n() {
14
+ this.constructor = t;
15
+ }
16
+ t.prototype = r === null ? Object.create(r) : (n.prototype = r.prototype, new n());
17
+ }
18
+ var l = function() {
19
+ return l = Object.assign || function(r) {
20
+ for (var n, e = 1, o = arguments.length; e < o; e++) {
21
+ n = arguments[e];
22
+ for (var a in n)
23
+ Object.prototype.hasOwnProperty.call(n, a) && (r[a] = n[a]);
24
+ }
25
+ return r;
26
+ }, l.apply(this, arguments);
27
+ };
28
+ function f(t) {
29
+ var r = typeof Symbol == "function" && Symbol.iterator, n = r && t[r], e = 0;
30
+ if (n)
31
+ return n.call(t);
32
+ if (t && typeof t.length == "number")
33
+ return {
34
+ next: function() {
35
+ return t && e >= t.length && (t = void 0), { value: t && t[e++], done: !t };
36
+ }
37
+ };
38
+ throw new TypeError(r ? "Object is not iterable." : "Symbol.iterator is not defined.");
39
+ }
40
+ function p(t, r) {
41
+ var n = typeof Symbol == "function" && t[Symbol.iterator];
42
+ if (!n)
43
+ return t;
44
+ var e = n.call(t), o, a = [], i;
45
+ try {
46
+ for (; (r === void 0 || r-- > 0) && !(o = e.next()).done; )
47
+ a.push(o.value);
48
+ } catch (c) {
49
+ i = { error: c };
50
+ } finally {
51
+ try {
52
+ o && !o.done && (n = e.return) && n.call(e);
53
+ } finally {
54
+ if (i)
55
+ throw i.error;
56
+ }
57
+ }
58
+ return a;
59
+ }
60
+ function y(t, r, n) {
61
+ if (n || arguments.length === 2)
62
+ for (var e = 0, o = r.length, a; e < o; e++)
63
+ (a || !(e in r)) && (a || (a = Array.prototype.slice.call(r, 0, e)), a[e] = r[e]);
64
+ return t.concat(a || Array.prototype.slice.call(r));
65
+ }
66
+ export {
67
+ l as _,
68
+ y as a,
69
+ p as b,
70
+ s as c,
71
+ f as d
72
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hortiview/shared-components",
3
3
  "description": "This is a shared component library. It should used in the HortiView platform and its modules.",
4
- "version": "0.0.4529",
4
+ "version": "0.0.4539",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",
7
7
  "types": "dist/main.d.ts",