@hortiview/shared-components 0.0.4529 → 0.0.4540
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/{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.d.ts +5 -1
- package/dist/components/BaseView/BaseView.js +300 -44
- package/dist/components/BaseView/BaseView.test.js +1 -1
- package/dist/components/BasicHeading/BasicHeading.js +27 -26
- 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/hooks/useBreakpoint.js +2 -2
- 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.d.ts +1 -0
- package/dist/main.js +23 -22
- package/dist/tslib.es6-BOWp4lfV.js +72 -0
- package/dist/{useBreakpoint-DyAmuka7.js → useBreakpoint-DROHPVxO.js} +2 -2
- package/package.json +1 -1
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { P as e, c as N, a as O, _ } from "./index.es-WZ1mqvGz.js";
|
|
2
|
+
import n, { forwardRef as h, useRef as x, useImperativeHandle as R, useMemo as o } from "react";
|
|
3
|
+
const W = {
|
|
4
|
+
/**
|
|
5
|
+
* Content to be rendered inside the elevation.
|
|
6
|
+
*
|
|
7
|
+
* Defaults to **null**.
|
|
8
|
+
*/
|
|
9
|
+
children: e.node,
|
|
10
|
+
/**
|
|
11
|
+
* Adds a custom padding style to the child content. Must be a valid CSS padding declaration. i.e. 38px 30px
|
|
12
|
+
*
|
|
13
|
+
* Defaults to **null**.
|
|
14
|
+
*/
|
|
15
|
+
customPadding: e.string,
|
|
16
|
+
/**
|
|
17
|
+
* Sets the distance of the elevation. Value must be between 0-24.
|
|
18
|
+
*
|
|
19
|
+
* Defaults to **0**.
|
|
20
|
+
*/
|
|
21
|
+
elevation: e.oneOf([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24]),
|
|
22
|
+
/**
|
|
23
|
+
* Avoids adding an extra element to the DOM and applies proper classes directly to the child element.
|
|
24
|
+
*
|
|
25
|
+
* Defaults to **null**.
|
|
26
|
+
*/
|
|
27
|
+
noWrap: e.bool,
|
|
28
|
+
/**
|
|
29
|
+
* The elevation element will have a visible border.
|
|
30
|
+
*
|
|
31
|
+
* Defaults to **false**.
|
|
32
|
+
*/
|
|
33
|
+
outlined: e.bool,
|
|
34
|
+
/**
|
|
35
|
+
* Adds a universal padding around the child content. `dense` is 8px, `standard` is 16px, and `airy` is 24px. If `customPadding` is used, this will be ignored.
|
|
36
|
+
*
|
|
37
|
+
* Defaults to **undefined**.
|
|
38
|
+
*/
|
|
39
|
+
padding: e.oneOf(["standard", "dense", "airy"]),
|
|
40
|
+
/**
|
|
41
|
+
* The elevation element will have a border radius of 8px.
|
|
42
|
+
*
|
|
43
|
+
* Defaults to **false**.
|
|
44
|
+
*/
|
|
45
|
+
rounded: e.bool,
|
|
46
|
+
/**
|
|
47
|
+
* HTML tag to render the contents in.
|
|
48
|
+
*
|
|
49
|
+
* Defaults to **'div'**.
|
|
50
|
+
*/
|
|
51
|
+
tag: e.oneOfType([e.string, e.elementType, e.instanceOf(n.Component)]),
|
|
52
|
+
/**
|
|
53
|
+
* Adds animation when elevation is changed.
|
|
54
|
+
*
|
|
55
|
+
* Defaults to **null**.
|
|
56
|
+
*/
|
|
57
|
+
transition: e.bool
|
|
58
|
+
}, $ = {
|
|
59
|
+
children: null,
|
|
60
|
+
customPadding: null,
|
|
61
|
+
elevation: 0,
|
|
62
|
+
noWrap: null,
|
|
63
|
+
outlined: !1,
|
|
64
|
+
padding: void 0,
|
|
65
|
+
rounded: !1,
|
|
66
|
+
tag: "div",
|
|
67
|
+
transition: null
|
|
68
|
+
}, t = /* @__PURE__ */ h((y, P) => {
|
|
69
|
+
const {
|
|
70
|
+
children: l,
|
|
71
|
+
className: d,
|
|
72
|
+
customPadding: s,
|
|
73
|
+
elevation: i,
|
|
74
|
+
noWrap: E,
|
|
75
|
+
padding: a,
|
|
76
|
+
rounded: r,
|
|
77
|
+
tag: m,
|
|
78
|
+
outlined: p,
|
|
79
|
+
style: c,
|
|
80
|
+
transition: u,
|
|
81
|
+
...v
|
|
82
|
+
} = y, f = x();
|
|
83
|
+
R(P, () => f.current, []);
|
|
84
|
+
const g = o(() => N("lmnt", `mdc-elevation--z${i}`, a === "standard" && "lmnt-elevation--padding-standard", a === "dense" && "lmnt-elevation--padding-dense", a === "airy" && "lmnt-elevation--padding-airy", u && "mdc-elevation-transition", r && "lmnt-elevation--rounded", p && "lmnt-elevation--outlined", d), [i, a, u, r, p, d]), T = o(() => ({
|
|
85
|
+
...c,
|
|
86
|
+
padding: s
|
|
87
|
+
}), [c, s]), b = o(() => m, [m]);
|
|
88
|
+
return (
|
|
89
|
+
// eslint-disable-next-line react/jsx-no-useless-fragment
|
|
90
|
+
/* @__PURE__ */ n.createElement(n.Fragment, null, E ? O(l, {
|
|
91
|
+
className: g,
|
|
92
|
+
...v
|
|
93
|
+
}) : /* @__PURE__ */ n.createElement(b, _({
|
|
94
|
+
ref: f,
|
|
95
|
+
className: g,
|
|
96
|
+
style: T
|
|
97
|
+
}, v), l))
|
|
98
|
+
);
|
|
99
|
+
});
|
|
100
|
+
t.displayName = "Elevation";
|
|
101
|
+
t.propTypes = W;
|
|
102
|
+
t.defaultProps = $;
|
|
103
|
+
var C = /* @__PURE__ */ n.memo(t);
|
|
104
|
+
export {
|
|
105
|
+
C as E
|
|
106
|
+
};
|