@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.
Files changed (30) hide show
  1. package/dist/{ListAreaService-BPp_O2BH.js → ListAreaService-CFOmATRF.js} +17 -16
  2. package/dist/SearchBar-CY2zfu6B.js +3232 -0
  3. package/dist/assets/main.css +22 -0
  4. package/dist/component-D1YrRAXe.js +673 -0
  5. package/dist/components/BaseView/BaseView.d.ts +5 -1
  6. package/dist/components/BaseView/BaseView.js +300 -44
  7. package/dist/components/BaseView/BaseView.test.js +1 -1
  8. package/dist/components/BasicHeading/BasicHeading.js +27 -26
  9. package/dist/components/BasicHeading/BasicHeading.test.js +333 -32
  10. package/dist/components/BlockView/BlockView.js +17 -17
  11. package/dist/components/EmptyView/EmptyView.js +247 -8
  12. package/dist/components/HashTabView/HashTabView.js +1845 -59
  13. package/dist/components/Iconify/Iconify.js +1 -1
  14. package/dist/components/ListArea/ListArea.js +5326 -755
  15. package/dist/components/ListArea/ListArea.test.js +2 -2
  16. package/dist/components/ListArea/ListAreaService.js +5 -4
  17. package/dist/components/SearchBar/SearchBar.js +3 -31
  18. package/dist/components/SearchBar/SearchBar.test.js +1 -1
  19. package/dist/hooks/useBreakpoint.js +2 -2
  20. package/dist/index.es-BD4kFWFx.js +673 -0
  21. package/dist/index.es-CUWXKh7P.js +106 -0
  22. package/dist/index.es-Cv6meSAn.js +1067 -0
  23. package/dist/index.es-DYsXox--.js +151 -0
  24. package/dist/index.es-WZ1mqvGz.js +1769 -0
  25. package/dist/index.es-mBp_Btvi.js +45 -0
  26. package/dist/main.d.ts +1 -0
  27. package/dist/main.js +23 -22
  28. package/dist/tslib.es6-BOWp4lfV.js +72 -0
  29. package/dist/{useBreakpoint-DyAmuka7.js → useBreakpoint-DROHPVxO.js} +2 -2
  30. package/package.json +1 -1
@@ -0,0 +1,151 @@
1
+ import { P as r, d as m, _ as h, c as v } from "./index.es-WZ1mqvGz.js";
2
+ import x, { forwardRef as w, useRef as A, useImperativeHandle as P } from "react";
3
+ const b = {
4
+ /**
5
+ * Children to be rendered. Expects multiple components of a similar type.
6
+ *
7
+ * Defaults to **null**.
8
+ */
9
+ children: r.node,
10
+ /**
11
+ * The grouping direction.
12
+ *
13
+ * Defaults to **'horizontal'**.
14
+ */
15
+ direction: r.oneOf(["horizontal", "vertical", "horizontal-reverse", "vertical-reverse"]),
16
+ /**
17
+ * Sets the Group width to be 100%.
18
+ *
19
+ * Defaults to **false**.
20
+ */
21
+ fullWidth: r.bool,
22
+ /**
23
+ * How much spacing between items. Dense is 8p, standard is 16px and airy is 24px.
24
+ *
25
+ * Defaults to **'standard'**.
26
+ */
27
+ gap: r.oneOf(["dense", "standard", "airy", "none"]),
28
+ /**
29
+ * @deprecated _Renamed for improved clarity. See `gap`._
30
+ *
31
+ * How much spacing between items. Dense is 8p, standard is 16px and airy is 24px.
32
+ *
33
+ * Defaults to **undefined**.
34
+ */
35
+ padding: m(r.oneOf(["dense", "standard", "airy", "none"]), "Group", "Renamed for improved clarity. See `gap`."),
36
+ /**
37
+ * Alignment along the primary axis. 'For `horizontal` grouping this means the x-axis positioning, for `vertical`, this means the y-axis positioning.Equivalent to flexbox 'justify-content.
38
+ *
39
+ * Defaults to **'start'**.
40
+ */
41
+ primaryAlign: r.oneOf(["start", "end", "center", "space-evenly", "space-between", "space-around"]),
42
+ /**
43
+ * Alignment along the secondary axis. For horizontal grouping this means the y-axis positioning, for vertical, this means the x-axis positioning.Equivalent to flexbox 'align-items.
44
+ *
45
+ * Defaults to **'baseline'**.
46
+ */
47
+ secondaryAlign: r.oneOf(["start", "end", "center", "stretch", "baseline"])
48
+ }, G = {
49
+ children: null,
50
+ direction: "horizontal",
51
+ fullWidth: !1,
52
+ gap: "standard",
53
+ padding: void 0,
54
+ primaryAlign: "start",
55
+ secondaryAlign: "baseline"
56
+ }, z = (e) => {
57
+ switch (e) {
58
+ case "end":
59
+ return "flex-end";
60
+ case "start":
61
+ return "flex-start";
62
+ case "center":
63
+ return "center";
64
+ case "stretch":
65
+ return "stretch";
66
+ case "baseline":
67
+ default:
68
+ return "baseline";
69
+ }
70
+ }, O = (e) => {
71
+ switch (e) {
72
+ case "end":
73
+ return "flex-end";
74
+ case "center":
75
+ return "center";
76
+ case "space-evenly":
77
+ return "space-evenly";
78
+ case "space-between":
79
+ return "space-between";
80
+ case "space-around":
81
+ return "space-around";
82
+ case "start":
83
+ default:
84
+ return "flex-start";
85
+ }
86
+ }, R = (e) => {
87
+ switch (e) {
88
+ case "dense":
89
+ return "8px";
90
+ case "airy":
91
+ return "24px";
92
+ case "standard":
93
+ return "16px";
94
+ case "none":
95
+ default:
96
+ return "0px";
97
+ }
98
+ }, _ = (e) => {
99
+ switch (e) {
100
+ case "horizontal":
101
+ return "row";
102
+ case "vertical":
103
+ return "column";
104
+ case "horizontal-reverse":
105
+ return "row-reverse";
106
+ case "vertical-reverse":
107
+ return "column-reverse";
108
+ default:
109
+ return "row";
110
+ }
111
+ }, n = /* @__PURE__ */ w((e, a) => {
112
+ const {
113
+ children: s,
114
+ className: c,
115
+ direction: o,
116
+ fullWidth: l,
117
+ gap: i,
118
+ padding: d,
119
+ primaryAlign: u,
120
+ secondaryAlign: p,
121
+ style: f,
122
+ variant: D,
123
+ ...y
124
+ } = e, g = {
125
+ display: "flex",
126
+ flexDirection: _(o),
127
+ justifyContent: O(u),
128
+ alignItems: z(p),
129
+ gap: R(d || i),
130
+ width: l ? "100%" : "",
131
+ ...f
132
+ }, t = A();
133
+ return P(a, () => t.current, []), /* @__PURE__ */ x.createElement("div", h({
134
+ ref: t,
135
+ className: v(
136
+ "lmnt",
137
+ "lmnt-group",
138
+ // variant === 'dense' && 'lmnt-button-group--dense',
139
+ // variant === 'standard' && 'lmnt-button-group--standard',
140
+ // variant === 'airy' && 'lmnt-button-group--airy',
141
+ c
142
+ ),
143
+ style: g
144
+ }, y), s);
145
+ });
146
+ n.displayName = "Group";
147
+ n.propTypes = b;
148
+ n.defaultProps = G;
149
+ export {
150
+ n as G
151
+ };