@hortiview/shared-components 0.0.4470 → 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.
- package/README.md +200 -20
- package/dist/{ListAreaService-BPp_O2BH.js → ListAreaService-CFOmATRF.js} +17 -16
- package/dist/SearchBar-CY2zfu6B.js +3232 -0
- package/dist/assets/main.css +22 -0
- package/dist/component-D1YrRAXe.js +673 -0
- package/dist/components/BaseView/BaseView.js +300 -46
- package/dist/components/BasicHeading/BasicHeading.js +24 -23
- package/dist/components/BasicHeading/BasicHeading.test.js +333 -32
- package/dist/components/BlockView/BlockView.js +17 -17
- package/dist/components/EmptyView/EmptyView.js +247 -8
- package/dist/components/HashTabView/HashTabView.js +1845 -59
- package/dist/components/Iconify/Iconify.js +1 -1
- package/dist/components/ListArea/ListArea.js +5326 -755
- package/dist/components/ListArea/ListArea.test.js +2 -2
- package/dist/components/ListArea/ListAreaService.js +5 -4
- package/dist/components/SearchBar/SearchBar.js +3 -31
- package/dist/components/SearchBar/SearchBar.test.js +1 -1
- package/dist/index.es-BD4kFWFx.js +673 -0
- package/dist/index.es-CUWXKh7P.js +106 -0
- package/dist/index.es-Cv6meSAn.js +1067 -0
- package/dist/index.es-DYsXox--.js +151 -0
- package/dist/index.es-WZ1mqvGz.js +1769 -0
- package/dist/index.es-mBp_Btvi.js +45 -0
- package/dist/main.js +23 -22
- package/dist/tslib.es6-BOWp4lfV.js +72 -0
- package/package.json +1 -1
|
@@ -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
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
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
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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.
|
|
4
|
+
"version": "0.0.4539",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/main.js",
|
|
7
7
|
"types": "dist/main.d.ts",
|