@lanaco/lnc-react-ui 4.0.3 → 4.0.6
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/Avatar.cjs +1 -1
- package/dist/Avatar.js +5 -6
- package/dist/Button.cjs +2 -2
- package/dist/Button.js +0 -1
- package/dist/CheckBoxInput.js +2 -2
- package/dist/Chip.cjs +1 -1
- package/dist/Chip.js +10 -9
- package/dist/ColorInput.js +18 -18
- package/dist/ConfirmationForm.cjs +5 -5
- package/dist/ConfirmationForm.js +16 -16
- package/dist/DataView.cjs +1 -1
- package/dist/DataView.js +35 -35
- package/dist/DecimalInput.js +41 -41
- package/dist/DoubleRangeSlider.js +30 -30
- package/dist/DragAndDropFile.js +162 -162
- package/dist/DragDropFiles.js +29 -29
- package/dist/Drawer.js +46 -46
- package/dist/Dropdown.js +36 -36
- package/dist/DropdownItem.js +19 -19
- package/dist/DropdownLookup.js +34 -34
- package/dist/DropdownMenu.js +43 -43
- package/dist/FileInput.js +21 -21
- package/dist/FlexGridItem.js +13 -13
- package/dist/Grid.cjs +1 -2
- package/dist/Grid.js +36 -8
- package/dist/GridItem.cjs +1 -1
- package/dist/GridItem.js +27 -7
- package/dist/Icon.cjs +2 -2
- package/dist/Icon.js +5 -6
- package/dist/IconButton.cjs +5 -5
- package/dist/IconButton.js +24 -25
- package/dist/Kanban.js +446 -446
- package/dist/MenuItem.cjs +2 -2
- package/dist/MenuItem.js +59 -58
- package/dist/Modal.js +38 -38
- package/dist/MultiSelectDropdown.js +2 -2
- package/dist/MultiSelectDropdownLookup.js +2 -2
- package/dist/NestedDropdownItem.js +43 -43
- package/dist/NestedMenuItem.js +44 -44
- package/dist/NotificationContainer.cjs +2 -2
- package/dist/NotificationContainer.js +24 -23
- package/dist/NumberInput.js +12 -12
- package/dist/PageLayout.cjs +2 -2
- package/dist/PageLayout.js +18 -18
- package/dist/PasswordInput.js +40 -40
- package/dist/RadioGroup.js +11 -11
- package/dist/RadioInput.js +6 -6
- package/dist/RangeSlider.js +25 -25
- package/dist/SearchBar.js +73 -73
- package/dist/Sidebar.js +11 -11
- package/dist/SwipeableDrawer.js +16 -16
- package/dist/TabItem.js +25 -25
- package/dist/Tabs.js +32 -26
- package/dist/TextAreaInput.js +30 -30
- package/dist/TextInput.js +22 -22
- package/dist/ThemeProvider.js +83 -83
- package/dist/TimeInput.js +4 -4
- package/dist/Toggle.cjs +1 -1
- package/dist/Toggle.js +0 -1
- package/dist/TreeMenu.js +56 -56
- package/dist/style.css +1 -5
- package/package.json +1 -1
- package/bundle-visualization.html +0 -4842
- package/custom-addons/ThemeSelector.js +0 -111
- package/custom-addons/register.js +0 -16
- package/custom-addons/theme-selector.css +0 -17
package/dist/DropdownMenu.js
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
1
|
+
import { jsx as r, jsxs as B } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as K, useRef as l, useState as L, Children as U, isValidElement as Y, cloneElement as f } from "react";
|
|
3
3
|
import { P as o } from "./index-BYnWp42a.js";
|
|
4
|
-
import { n as
|
|
5
|
-
import
|
|
6
|
-
import { a as
|
|
7
|
-
import { useTheme as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { m as
|
|
12
|
-
const
|
|
4
|
+
import { n as b } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
5
|
+
import $ from "./Button.js";
|
|
6
|
+
import { a as q } from "./utils-C52T57HO.js";
|
|
7
|
+
import { useTheme as A } from "./ThemeProvider.js";
|
|
8
|
+
import G from "./Popover.js";
|
|
9
|
+
import H from "./PopoverTrigger.js";
|
|
10
|
+
import J from "./PopoverContent.js";
|
|
11
|
+
import { m as Q } from "./motion-ecIGZGwI.js";
|
|
12
|
+
const W = b.div``, X = b(Q.div)`
|
|
13
13
|
gap: 0.25rem;
|
|
14
14
|
display: flex;
|
|
15
15
|
flex-direction: column;
|
|
16
16
|
${(t) => t.widthfitcontent == !1 && "min-width: 12.5rem"};
|
|
17
|
-
background-color: ${(t) =>
|
|
17
|
+
background-color: ${(t) => q(
|
|
18
18
|
t.theme,
|
|
19
19
|
"Dropdown",
|
|
20
20
|
t.color,
|
|
21
21
|
"enabled",
|
|
22
22
|
"background"
|
|
23
23
|
)};
|
|
24
|
-
`,
|
|
24
|
+
`, Z = K((t, s) => {
|
|
25
25
|
const {
|
|
26
|
-
control:
|
|
27
|
-
offsetValue:
|
|
26
|
+
control: a,
|
|
27
|
+
offsetValue: _ = 9,
|
|
28
28
|
placement: v,
|
|
29
29
|
widthFitContent: M = !1,
|
|
30
30
|
closeOnItemSelect: P = !0,
|
|
@@ -57,44 +57,44 @@ const H = T.div``, J = T(G.div)`
|
|
|
57
57
|
}
|
|
58
58
|
},
|
|
59
59
|
className: x = "",
|
|
60
|
-
style:
|
|
61
|
-
color:
|
|
60
|
+
style: ee = {},
|
|
61
|
+
color: n = "primary",
|
|
62
62
|
size: i = "small",
|
|
63
63
|
contentClassName: D = "",
|
|
64
|
-
popoverProps:
|
|
64
|
+
popoverProps: oe,
|
|
65
65
|
children: R,
|
|
66
66
|
...k
|
|
67
67
|
} = t;
|
|
68
|
-
|
|
69
|
-
const z =
|
|
70
|
-
O(e,
|
|
71
|
-
}, j =
|
|
72
|
-
var
|
|
73
|
-
return
|
|
74
|
-
ref:
|
|
68
|
+
l();
|
|
69
|
+
const z = l(), { theme: F } = A(), C = l(), I = l(), [V, m] = L(!1), S = (e, c, p) => {
|
|
70
|
+
O(e, c, p), P == !0 && m(!1);
|
|
71
|
+
}, j = U.map(R, (e, c) => {
|
|
72
|
+
var p, T;
|
|
73
|
+
return Y(e) && (e.props.__TYPE__ == "MENU_ITEM" || ((p = e == null ? void 0 : e.type) == null ? void 0 : p.displayName) === "MENU_ITEM" || e.props.__TYPE__ == "NESTED_ITEM" || ((T = e == null ? void 0 : e.type) == null ? void 0 : T.displayName) === "NESTED_ITEM") ? c == 0 ? (e.props.ref && (I.current = s), f(e, {
|
|
74
|
+
ref: s || I,
|
|
75
75
|
//needed to focus on navigation
|
|
76
|
-
color: e.props.color ? e.props.color :
|
|
76
|
+
color: e.props.color ? e.props.color : n,
|
|
77
77
|
size: i,
|
|
78
78
|
onItemSelected: S,
|
|
79
79
|
animation: h
|
|
80
|
-
})) :
|
|
81
|
-
color: e.props.color ? e.props.color :
|
|
80
|
+
})) : f(e, {
|
|
81
|
+
color: e.props.color ? e.props.color : n,
|
|
82
82
|
size: i,
|
|
83
83
|
onItemSelected: S
|
|
84
84
|
}) : e;
|
|
85
85
|
});
|
|
86
|
-
return /* @__PURE__ */
|
|
87
|
-
|
|
86
|
+
return /* @__PURE__ */ r(W, { ref: s, className: x, ...k, children: /* @__PURE__ */ B(
|
|
87
|
+
G,
|
|
88
88
|
{
|
|
89
89
|
open: V,
|
|
90
|
-
onOpenChange:
|
|
90
|
+
onOpenChange: m,
|
|
91
91
|
placement: v,
|
|
92
|
-
offsetValue:
|
|
92
|
+
offsetValue: _,
|
|
93
93
|
children: [
|
|
94
|
-
/* @__PURE__ */
|
|
95
|
-
|
|
94
|
+
/* @__PURE__ */ r(H, { onClick: () => m((e) => !e), children: typeof a == "string" || a instanceof String ? /* @__PURE__ */ r(
|
|
95
|
+
$,
|
|
96
96
|
{
|
|
97
|
-
text:
|
|
97
|
+
text: a,
|
|
98
98
|
onClick: g,
|
|
99
99
|
onMouseEnter: E,
|
|
100
100
|
onMouseLeave: w,
|
|
@@ -103,11 +103,11 @@ const H = T.div``, J = T(G.div)`
|
|
|
103
103
|
ref: C,
|
|
104
104
|
onKeyDown: y,
|
|
105
105
|
trailingIcon: "angle-down",
|
|
106
|
-
color:
|
|
106
|
+
color: n,
|
|
107
107
|
size: i
|
|
108
108
|
}
|
|
109
|
-
) :
|
|
110
|
-
color:
|
|
109
|
+
) : f(a, {
|
|
110
|
+
color: n,
|
|
111
111
|
size: i,
|
|
112
112
|
ref: C,
|
|
113
113
|
onClick: g,
|
|
@@ -117,12 +117,12 @@ const H = T.div``, J = T(G.div)`
|
|
|
117
117
|
onFocus: u,
|
|
118
118
|
onKeyDown: y
|
|
119
119
|
}) }),
|
|
120
|
-
/* @__PURE__ */
|
|
121
|
-
|
|
120
|
+
/* @__PURE__ */ r(J, { zIndex: N, children: /* @__PURE__ */ r(
|
|
121
|
+
X,
|
|
122
122
|
{
|
|
123
123
|
ref: z,
|
|
124
124
|
widthfitcontent: M,
|
|
125
|
-
color:
|
|
125
|
+
color: n,
|
|
126
126
|
theme: F,
|
|
127
127
|
className: D,
|
|
128
128
|
children: j
|
|
@@ -132,7 +132,7 @@ const H = T.div``, J = T(G.div)`
|
|
|
132
132
|
}
|
|
133
133
|
) });
|
|
134
134
|
});
|
|
135
|
-
|
|
135
|
+
Z.propTypes = {
|
|
136
136
|
control: o.oneOfType([o.string, o.element]),
|
|
137
137
|
/**
|
|
138
138
|
* Menu offset from the control
|
|
@@ -190,5 +190,5 @@ Q.propTypes = {
|
|
|
190
190
|
popoverProps: o.any
|
|
191
191
|
};
|
|
192
192
|
export {
|
|
193
|
-
|
|
193
|
+
Z as default
|
|
194
194
|
};
|
package/dist/FileInput.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
1
|
+
import { jsxs as S, jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as R, useState as g } from "react";
|
|
3
3
|
import { n as c } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
4
4
|
import { P as t } from "./index-BYnWp42a.js";
|
|
5
5
|
import { d as y, a as r, e as V, g as x, h as p } from "./utils-C52T57HO.js";
|
|
6
|
-
import { u as
|
|
7
|
-
const
|
|
6
|
+
import { u as B } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
|
|
7
|
+
const D = c.label`
|
|
8
8
|
display: inline-flex;
|
|
9
9
|
box-sizing: border-box;
|
|
10
10
|
width: 100%;
|
|
@@ -19,14 +19,14 @@ const B = c.label`
|
|
|
19
19
|
)};
|
|
20
20
|
border-radius: 8px;
|
|
21
21
|
${(e) => e.focused === !0 && e.readOnly !== !0 ? V(e.theme) : ""}
|
|
22
|
-
`,
|
|
22
|
+
`, L = c.input`
|
|
23
23
|
width: 0.1px;
|
|
24
24
|
height: 0.1px;
|
|
25
25
|
opacity: 0;
|
|
26
26
|
overflow: hidden;
|
|
27
27
|
position: absolute;
|
|
28
28
|
z-index: -1;
|
|
29
|
-
`,
|
|
29
|
+
`, U = c.div`
|
|
30
30
|
display: flex;
|
|
31
31
|
align-items: center;
|
|
32
32
|
white-space: nowrap;
|
|
@@ -58,7 +58,7 @@ const B = c.label`
|
|
|
58
58
|
border-radius: 8px 0 0 8px;
|
|
59
59
|
|
|
60
60
|
${(e) => e.disabled === !0 ? p(e.theme) : ""}
|
|
61
|
-
`,
|
|
61
|
+
`, W = c.input`
|
|
62
62
|
width: 100%;
|
|
63
63
|
appearance: none;
|
|
64
64
|
outline: none;
|
|
@@ -98,7 +98,7 @@ const B = c.label`
|
|
|
98
98
|
)};
|
|
99
99
|
|
|
100
100
|
${(e) => e.disabled === !0 ? p(e.theme) : ""}
|
|
101
|
-
`,
|
|
101
|
+
`, q = R((e, $) => {
|
|
102
102
|
const {
|
|
103
103
|
className: I = "",
|
|
104
104
|
style: C = {},
|
|
@@ -106,15 +106,15 @@ const B = c.label`
|
|
|
106
106
|
onFocus: d,
|
|
107
107
|
onBlur: s,
|
|
108
108
|
disabled: l,
|
|
109
|
-
readOnly:
|
|
109
|
+
readOnly: b,
|
|
110
110
|
multiple: w = !1,
|
|
111
111
|
accept: z = "",
|
|
112
112
|
label: O = "Choose File",
|
|
113
113
|
color: F = "primary",
|
|
114
114
|
size: k = "small",
|
|
115
115
|
...v
|
|
116
|
-
} = e, T =
|
|
117
|
-
var u = { theme: T, size: k, color: F, disabled: l, focused:
|
|
116
|
+
} = e, T = B(), [o, N] = g([]), [f, h] = g(!1);
|
|
117
|
+
var u = { theme: T, size: k, color: F, disabled: l, focused: f };
|
|
118
118
|
const j = () => {
|
|
119
119
|
if (o.length > 0) {
|
|
120
120
|
var n = "";
|
|
@@ -124,23 +124,23 @@ const B = c.label`
|
|
|
124
124
|
}
|
|
125
125
|
return "";
|
|
126
126
|
};
|
|
127
|
-
return /* @__PURE__ */
|
|
128
|
-
|
|
127
|
+
return /* @__PURE__ */ S(
|
|
128
|
+
D,
|
|
129
129
|
{
|
|
130
130
|
...u,
|
|
131
131
|
className: I,
|
|
132
132
|
style: C,
|
|
133
|
-
focused:
|
|
134
|
-
readOnly:
|
|
133
|
+
focused: f,
|
|
134
|
+
readOnly: b,
|
|
135
135
|
children: [
|
|
136
136
|
/* @__PURE__ */ m(
|
|
137
|
-
|
|
137
|
+
L,
|
|
138
138
|
{
|
|
139
139
|
...u,
|
|
140
140
|
accept: z,
|
|
141
141
|
multiple: w,
|
|
142
142
|
ref: $,
|
|
143
|
-
onChange: l ||
|
|
143
|
+
onChange: l || b ? () => {
|
|
144
144
|
} : (n) => {
|
|
145
145
|
var a = [];
|
|
146
146
|
if (n.target.files && n.target.files.length > 0)
|
|
@@ -159,9 +159,9 @@ const B = c.label`
|
|
|
159
159
|
...v
|
|
160
160
|
}
|
|
161
161
|
),
|
|
162
|
-
/* @__PURE__ */ m(
|
|
162
|
+
/* @__PURE__ */ m(U, { ...u, children: O }),
|
|
163
163
|
/* @__PURE__ */ m(
|
|
164
|
-
|
|
164
|
+
W,
|
|
165
165
|
{
|
|
166
166
|
tabIndex: -1,
|
|
167
167
|
...u,
|
|
@@ -174,7 +174,7 @@ const B = c.label`
|
|
|
174
174
|
}
|
|
175
175
|
);
|
|
176
176
|
});
|
|
177
|
-
|
|
177
|
+
q.propTypes = {
|
|
178
178
|
id: t.any,
|
|
179
179
|
disabled: t.bool,
|
|
180
180
|
readOnly: t.bool,
|
|
@@ -202,5 +202,5 @@ W.propTypes = {
|
|
|
202
202
|
])
|
|
203
203
|
};
|
|
204
204
|
export {
|
|
205
|
-
|
|
205
|
+
q as default
|
|
206
206
|
};
|
package/dist/FlexGridItem.js
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import { jsx as y } from "react/jsx-runtime";
|
|
2
|
-
import N,
|
|
2
|
+
import { forwardRef as N, useState as S, useEffect as b } from "react";
|
|
3
3
|
import { P as i } from "./index-BYnWp42a.js";
|
|
4
4
|
import { n as I } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
5
5
|
import { u as M } from "./utils-C52T57HO.js";
|
|
6
|
-
const
|
|
6
|
+
const W = I.div`
|
|
7
7
|
${(t) => t.width > 0 ? "" : "flex: 1;"}
|
|
8
8
|
min-width: ${(t) => 100 / t.columns}%;
|
|
9
9
|
width: ${(t) => t.width}%;
|
|
10
10
|
padding: ${(t) => t.rowGap}px ${(t) => t.columnGap}px;
|
|
11
11
|
overflow-wrap: break-word;
|
|
12
|
-
`,
|
|
12
|
+
`, j = N((t, x) => {
|
|
13
13
|
const {
|
|
14
14
|
XS: r,
|
|
15
15
|
S: s,
|
|
16
16
|
M: a,
|
|
17
|
-
L:
|
|
17
|
+
L: n,
|
|
18
18
|
XL: d,
|
|
19
19
|
col: u,
|
|
20
20
|
columns: e,
|
|
21
21
|
spacing: p,
|
|
22
|
-
rowSpacing:
|
|
22
|
+
rowSpacing: c,
|
|
23
23
|
columnSpacing: m,
|
|
24
24
|
children: k
|
|
25
25
|
} = t, l = M(), [L, X] = S(0), [g, f] = S(0), [$, w] = S(0);
|
|
26
26
|
b(() => {
|
|
27
27
|
h();
|
|
28
|
-
}, [e, r, s, a,
|
|
28
|
+
}, [e, r, s, a, n, d, u]), b(() => {
|
|
29
29
|
h(), G();
|
|
30
30
|
}, [l]), b(() => {
|
|
31
31
|
G();
|
|
32
|
-
}, [p,
|
|
32
|
+
}, [p, c, m]);
|
|
33
33
|
const h = () => {
|
|
34
34
|
let o = u ? 100 / (e / u) : 0;
|
|
35
35
|
switch (l) {
|
|
@@ -43,18 +43,18 @@ const R = I.div`
|
|
|
43
43
|
o = a ? 100 / (e / a) : s ? 100 / (e / s) : r ? 100 / (e / r) : o;
|
|
44
44
|
break;
|
|
45
45
|
case "L":
|
|
46
|
-
o =
|
|
46
|
+
o = n ? 100 / (e / n) : a ? 100 / (e / a) : s ? 100 / (e / s) : r ? 100 / (e / r) : o;
|
|
47
47
|
break;
|
|
48
48
|
case "XL":
|
|
49
|
-
o = d ? 100 / (e / d) :
|
|
49
|
+
o = d ? 100 / (e / d) : n ? 100 / (e / n) : a ? 100 / (e / a) : s ? 100 / (e / s) : r ? 100 / (e / r) : o;
|
|
50
50
|
break;
|
|
51
51
|
}
|
|
52
52
|
X(o);
|
|
53
53
|
}, G = () => {
|
|
54
|
-
p ? (f(p), w(p)) : (
|
|
54
|
+
p ? (f(p), w(p)) : (c && (isNaN(c) ? f(c[l] ?? 0) : f(c)), m && (isNaN(m) ? w(m[l] ?? 0) : w(m)));
|
|
55
55
|
};
|
|
56
56
|
return /* @__PURE__ */ y(
|
|
57
|
-
|
|
57
|
+
W,
|
|
58
58
|
{
|
|
59
59
|
ref: x,
|
|
60
60
|
columns: e,
|
|
@@ -65,7 +65,7 @@ const R = I.div`
|
|
|
65
65
|
}
|
|
66
66
|
);
|
|
67
67
|
});
|
|
68
|
-
|
|
68
|
+
j.propTypes = {
|
|
69
69
|
/**
|
|
70
70
|
* Number of columns to take up on XS screens.
|
|
71
71
|
*/
|
|
@@ -93,5 +93,5 @@ W.propTypes = {
|
|
|
93
93
|
col: i.number
|
|
94
94
|
};
|
|
95
95
|
export {
|
|
96
|
-
|
|
96
|
+
j as default
|
|
97
97
|
};
|
package/dist/Grid.cjs
CHANGED
|
@@ -8,6 +8,5 @@
|
|
|
8
8
|
${e=>e.justifyItems&&`justify-items: ${e.justifyItems};`}
|
|
9
9
|
${e=>e.alignItems&&`align-items: ${e.alignItems};`}
|
|
10
10
|
${e=>e.justifyContent&&`justify-content: ${e.justifyContent};`}
|
|
11
|
-
${e=>e.templateAreas&&`grid-template-areas: ${e.templateAreas};`}
|
|
12
|
-
|
|
11
|
+
${e=>e.templateAreas&&`grid-template-areas: ${e.templateAreas};`}
|
|
13
12
|
`,s=j.forwardRef((e,n)=>{const{inline:a=!1,template:r,templateColumns:i,templateRows:l,gap:o,rowGap:p,columnGap:m,justifyItems:y,alignItems:c,justifyContent:g,templateAreas:u,children:d,className:f="",style:T={},...$}=e;var P={inline:a,template:r,templateColumns:i,templateRows:l,gap:o,rowGap:p,columnGap:m,justifyItems:y,alignItems:c,justifyContent:g,templateAreas:u};return w.jsx(I,{ref:n,...P,className:f,style:T,...$,children:d})});s.defaultProps={inline:!1,style:{},className:""};s.propTypes={inline:t.PropTypes.bool,template:t.PropTypes.string,templateColumns:t.PropTypes.string,templateRows:t.PropTypes.string,gap:t.PropTypes.string,rowGap:t.PropTypes.string,columnGap:t.PropTypes.string,justifyItems:t.PropTypes.oneOf(["start","end","center","stretch"]),alignItems:t.PropTypes.oneOf(["start","end","center","stretch"]),placeItems:t.PropTypes.oneOf(["start","end","center","stretch"]),justifyContent:t.PropTypes.oneOf(["start","end","center","stretch","space-between","space-evenly"]),templateAreas:t.PropTypes.string,style:t.PropTypes.object,className:t.PropTypes.string};module.exports=s;
|
package/dist/Grid.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as G } from "react/jsx-runtime";
|
|
2
|
-
import I from "react";
|
|
2
|
+
import { forwardRef as I } from "react";
|
|
3
3
|
import { P as e } from "./index-BYnWp42a.js";
|
|
4
4
|
import { n as C } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
5
|
-
const
|
|
5
|
+
const h = C.div`
|
|
6
6
|
display: ${(t) => t.inline ? "inline-grid" : "grid"};
|
|
7
7
|
row-gap: ${(t) => t.rowGap ? t.rowGap : t.gap ? t.gap : 0};
|
|
8
8
|
column-gap: ${(t) => t.columnGap ? t.columnGap : t.gap ? t.gap : 0};
|
|
@@ -12,9 +12,8 @@ const R = C.div`
|
|
|
12
12
|
${(t) => t.justifyItems && `justify-items: ${t.justifyItems};`}
|
|
13
13
|
${(t) => t.alignItems && `align-items: ${t.alignItems};`}
|
|
14
14
|
${(t) => t.justifyContent && `justify-content: ${t.justifyContent};`}
|
|
15
|
-
${(t) => t.templateAreas && `grid-template-areas: ${t.templateAreas};`}
|
|
16
|
-
|
|
17
|
-
`, a = I.forwardRef((t, s) => {
|
|
15
|
+
${(t) => t.templateAreas && `grid-template-areas: ${t.templateAreas};`}
|
|
16
|
+
`, a = I((t, s) => {
|
|
18
17
|
const {
|
|
19
18
|
inline: n = !1,
|
|
20
19
|
template: l,
|
|
@@ -32,8 +31,30 @@ const R = C.div`
|
|
|
32
31
|
style: $ = {},
|
|
33
32
|
...w
|
|
34
33
|
} = t;
|
|
35
|
-
var j = {
|
|
36
|
-
|
|
34
|
+
var j = {
|
|
35
|
+
inline: n,
|
|
36
|
+
template: l,
|
|
37
|
+
templateColumns: i,
|
|
38
|
+
templateRows: m,
|
|
39
|
+
gap: r,
|
|
40
|
+
rowGap: o,
|
|
41
|
+
columnGap: g,
|
|
42
|
+
justifyItems: c,
|
|
43
|
+
alignItems: p,
|
|
44
|
+
justifyContent: f,
|
|
45
|
+
templateAreas: d
|
|
46
|
+
};
|
|
47
|
+
return /* @__PURE__ */ G(
|
|
48
|
+
h,
|
|
49
|
+
{
|
|
50
|
+
ref: s,
|
|
51
|
+
...j,
|
|
52
|
+
className: y,
|
|
53
|
+
style: $,
|
|
54
|
+
...w,
|
|
55
|
+
children: u
|
|
56
|
+
}
|
|
57
|
+
);
|
|
37
58
|
});
|
|
38
59
|
a.defaultProps = {
|
|
39
60
|
inline: !1,
|
|
@@ -51,7 +72,14 @@ a.propTypes = {
|
|
|
51
72
|
justifyItems: e.oneOf(["start", "end", "center", "stretch"]),
|
|
52
73
|
alignItems: e.oneOf(["start", "end", "center", "stretch"]),
|
|
53
74
|
placeItems: e.oneOf(["start", "end", "center", "stretch"]),
|
|
54
|
-
justifyContent: e.oneOf([
|
|
75
|
+
justifyContent: e.oneOf([
|
|
76
|
+
"start",
|
|
77
|
+
"end",
|
|
78
|
+
"center",
|
|
79
|
+
"stretch",
|
|
80
|
+
"space-between",
|
|
81
|
+
"space-evenly"
|
|
82
|
+
]),
|
|
55
83
|
templateAreas: e.string,
|
|
56
84
|
//-------------
|
|
57
85
|
style: e.object,
|
package/dist/GridItem.cjs
CHANGED
|
@@ -11,5 +11,5 @@
|
|
|
11
11
|
${e=>e.colStart&&`grid-column-start: ${e.colStart};`}
|
|
12
12
|
${e=>(e.colEnd||e.colSpan)&&`grid-column-end: span ${e.colEnd||e.colSpan};`}
|
|
13
13
|
${e=>e.rowStart&&`grid-row-start: ${e.rowStart};`}
|
|
14
|
-
${e=>(e.rowEnd||e.rowSpan)&&`grid-row-end: span ${e.rowEnd||e.rowSpan};`}
|
|
14
|
+
${e=>(e.rowEnd||e.rowSpan)&&`grid-row-end: span ${e.rowEnd||e.rowSpan};`}
|
|
15
15
|
`,r=p.forwardRef((e,a)=>{const{colStart:n,colEnd:l,rowStart:o,rowEnd:i,colSpan:s,rowSpan:c,justifySelf:d,alignSelf:m,area:S,className:g="",style:u={},children:w,...y}=e;var $={colStart:n,colEnd:l,rowStart:o,rowEnd:i,colSpan:s,rowSpan:c,justifySelf:d,alignSelf:m,area:S};return f.jsx(P,{ref:a,...$,className:g,style:u,...y,children:w})});r.propTypes={colStart:t.PropTypes.number,colEnd:t.PropTypes.number,rowStart:t.PropTypes.number,rowEnd:t.PropTypes.number,colSpan:t.PropTypes.number,rowSpan:t.PropTypes.number,justifySelf:t.PropTypes.oneOf(["start","end","center","stretch"]),alignSelf:t.PropTypes.oneOf(["start","end","center","stretch"]),area:t.PropTypes.string,style:t.PropTypes.object,className:t.PropTypes.string};module.exports=r;
|
package/dist/GridItem.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import y from "react";
|
|
1
|
+
import { jsx as u } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as y } from "react";
|
|
3
3
|
import { P as t } from "./index-BYnWp42a.js";
|
|
4
4
|
import { n as E } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
5
5
|
const b = E.div`
|
|
@@ -15,8 +15,8 @@ const b = E.div`
|
|
|
15
15
|
${(e) => e.colStart && `grid-column-start: ${e.colStart};`}
|
|
16
16
|
${(e) => (e.colEnd || e.colSpan) && `grid-column-end: span ${e.colEnd || e.colSpan};`}
|
|
17
17
|
${(e) => e.rowStart && `grid-row-start: ${e.rowStart};`}
|
|
18
|
-
${(e) => (e.rowEnd || e.rowSpan) && `grid-row-end: span ${e.rowEnd || e.rowSpan};`}
|
|
19
|
-
`, j = y
|
|
18
|
+
${(e) => (e.rowEnd || e.rowSpan) && `grid-row-end: span ${e.rowEnd || e.rowSpan};`}
|
|
19
|
+
`, j = y((e, a) => {
|
|
20
20
|
const {
|
|
21
21
|
colStart: r,
|
|
22
22
|
colEnd: n,
|
|
@@ -30,10 +30,30 @@ const b = E.div`
|
|
|
30
30
|
className: S = "",
|
|
31
31
|
style: f = {},
|
|
32
32
|
children: $,
|
|
33
|
-
...
|
|
33
|
+
...w
|
|
34
34
|
} = e;
|
|
35
|
-
var
|
|
36
|
-
|
|
35
|
+
var s = {
|
|
36
|
+
colStart: r,
|
|
37
|
+
colEnd: n,
|
|
38
|
+
rowStart: l,
|
|
39
|
+
rowEnd: o,
|
|
40
|
+
colSpan: i,
|
|
41
|
+
rowSpan: m,
|
|
42
|
+
justifySelf: d,
|
|
43
|
+
alignSelf: c,
|
|
44
|
+
area: g
|
|
45
|
+
};
|
|
46
|
+
return /* @__PURE__ */ u(
|
|
47
|
+
b,
|
|
48
|
+
{
|
|
49
|
+
ref: a,
|
|
50
|
+
...s,
|
|
51
|
+
className: S,
|
|
52
|
+
style: f,
|
|
53
|
+
...w,
|
|
54
|
+
children: $
|
|
55
|
+
}
|
|
56
|
+
);
|
|
37
57
|
});
|
|
38
58
|
j.propTypes = {
|
|
39
59
|
/**
|
package/dist/Icon.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
"use strict";const n=require("react/jsx-runtime"),z=require("react")
|
|
1
|
+
"use strict";const n=require("react/jsx-runtime"),z=require("react"),s=require("./index-BIlhCoy2.cjs"),P=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),o=require("./utils-DTAPpJXU.cjs"),b=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),I=P.newStyled.span`
|
|
2
2
|
box-sizing: border-box;
|
|
3
3
|
${e=>e.sizeInUnits&&e.sizeInUnits!=""?`font-size: ${e.sizeInUnits}`:o.getComponentTypographyCss(e.theme,"Icon",e.size,"enabled")};
|
|
4
4
|
${e=>e.color&&`color: ${o.getColorRgbaValue(e.theme,"Icon",e.color,"enabled","icon")}`};
|
|
5
5
|
display: inline-flex;
|
|
6
6
|
justify-content: center;
|
|
7
7
|
align-items: center;
|
|
8
|
-
`,t=z.forwardRef((e,r)=>{const{id:h="",icon:i="",iconStyle:c="solid",tooltip:l="",sizeInUnits:a="",size:y="small",color:m,className:
|
|
8
|
+
`,t=z.forwardRef((e,r)=>{const{id:h="",icon:i="",iconStyle:c="solid",tooltip:l="",sizeInUnits:a="",size:y="small",color:m,className:d="",style:u={},...p}=e,g={theme:b.useTheme(),size:y,color:m,sizeInUnits:a},f=()=>{var T=c==="solid"?"fas":"far";return`${T} fa-${i} fa-fw`};return n.jsx(I,{ref:r,...g,tooltip:l,className:d,style:u,...p,children:n.jsx("i",{"data-control":!!e["data-control"],className:f()})})});t.propTypes={id:s.PropTypes.string,icon:s.PropTypes.string,iconStyle:s.PropTypes.oneOf(["solid","regular"]),tooltip:s.PropTypes.string,className:s.PropTypes.string,style:s.PropTypes.object,size:s.PropTypes.oneOf(["small","medium","large"]),sizeInUnits:s.PropTypes.string,color:s.PropTypes.oneOf(["primary","secondary","success","danger","warning","information","neutral","gray"])};module.exports=t;
|
package/dist/Icon.js
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as z } from "react";
|
|
3
|
-
/* empty css */
|
|
4
3
|
import { P as o } from "./index-BYnWp42a.js";
|
|
5
|
-
import { n as
|
|
6
|
-
import { g as
|
|
4
|
+
import { n as I } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
5
|
+
import { g as h, a as p } from "./utils-C52T57HO.js";
|
|
7
6
|
import { u as b } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
|
|
8
|
-
const $ =
|
|
7
|
+
const $ = I.span`
|
|
9
8
|
box-sizing: border-box;
|
|
10
|
-
${(e) => e.sizeInUnits && e.sizeInUnits != "" ? `font-size: ${e.sizeInUnits}` :
|
|
11
|
-
${(e) => e.color && `color: ${
|
|
9
|
+
${(e) => e.sizeInUnits && e.sizeInUnits != "" ? `font-size: ${e.sizeInUnits}` : h(e.theme, "Icon", e.size, "enabled")};
|
|
10
|
+
${(e) => e.color && `color: ${p(
|
|
12
11
|
e.theme,
|
|
13
12
|
"Icon",
|
|
14
13
|
e.color,
|
package/dist/IconButton.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const a=require("react/jsx-runtime")
|
|
1
|
+
"use strict";const a=require("react/jsx-runtime"),$=require("react"),o=require("./index-BIlhCoy2.cjs"),b=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),t=require("./utils-DTAPpJXU.cjs"),S=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),m=e=>`
|
|
2
2
|
outline: none;
|
|
3
3
|
display: inline-flex;
|
|
4
4
|
flex-direction: row;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
max-width: ${t.getSizeValueWithUnits(e.theme,e.size)};
|
|
16
16
|
`,P=b.newStyled.i`
|
|
17
17
|
font-size: 1.125rem;
|
|
18
|
-
|
|
18
|
+
`,B=b.newStyled.button`
|
|
19
19
|
${e=>m(e)}
|
|
20
20
|
|
|
21
21
|
${e=>t.getComponentTypographyCss(e.theme,"ButtonFilled",e.size,"enabled")};
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
background-color: ${e=>t.getColorRgbaValue(e.theme,"ButtonTinted","gray","disabled","background","backgroundOpacity")};
|
|
84
84
|
color: ${e=>t.getColorRgbaValue(e.theme,"ButtonTinted","gray","disabled","text")};
|
|
85
85
|
}
|
|
86
|
-
`,
|
|
86
|
+
`,C=b.newStyled.button`
|
|
87
87
|
${e=>m(e)}
|
|
88
88
|
|
|
89
89
|
${e=>t.getComponentTypographyCss(e.theme,"ButtonTinted",e.size,"enabled")};
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
cursor: default;
|
|
117
117
|
background-color: ${e=>t.getColorRgbaValue(e.theme,"ButtonBasic","gray","disabled","background","backgroundOpacity")};
|
|
118
118
|
}
|
|
119
|
-
`,F=b.newStyled(
|
|
119
|
+
`,F=b.newStyled(C)`
|
|
120
120
|
border: 1px solid
|
|
121
121
|
${e=>t.getColorRgbaValue(e.theme,"ButtonBasic",e.color,"enabled","border","borderOpacity")};
|
|
122
|
-
`,
|
|
122
|
+
`,f=$.forwardRef((e,n)=>{const{icon:h=null,iconStyle:k="solid",borderRadius:V="regular",btnType:l="filled",disabled:R=!1,tabIndex:j=0,onFocus:r=()=>{},onBlur:i=()=>{},onClick:c=()=>{},onKeyDown:u=()=>{},size:y="small",color:T="primary",className:x="",style:z={},...d}=e,g={theme:S.useTheme(),color:T,size:y,style:z,className:"lnc-ui-icon-button "+x,disabled:R,borderRadius:V,btnType:l},v=()=>{var O=k==="solid"?"fas":"far";return`${O} fa-${h} fa-fw`},s=()=>$.isValidElement(h)?h:a.jsx(P,{className:v()});return l==="filled"?a.jsx(B,{ref:n,"data-type":"filled",...g,onFocus:r,onBlur:i,onClick:c,onKeyDown:u,type:l,...d,children:s()}):l==="tinted"?a.jsx(w,{ref:n,"data-type":"tinted",...g,onFocus:r,onBlur:i,onClick:c,onKeyDown:u,...d,children:s()}):l==="outline"?a.jsx(F,{ref:n,"data-type":"outline",...g,onFocus:r,onBlur:i,onClick:c,onKeyDown:u,...d,children:s()}):l==="basic"?a.jsx(C,{ref:n,"data-type":"basic",...g,onFocus:r,onBlur:i,onClick:c,onKeyDown:u,...d,children:s()}):a.jsx(B,{ref:n,"data-type":"filled",size:y,...g,onFocus:r,onBlur:i,onClick:c,onKeyDown:u,...d,children:s()})});f.propTypes={icon:o.PropTypes.oneOfType([o.PropTypes.string,o.PropTypes.element]),iconStyle:o.PropTypes.oneOf(["regular","solid"]),borderRadius:o.PropTypes.oneOf(["slight","regular","edged","curved","none"]),btnType:o.PropTypes.oneOf(["filled","tinted","outline","basic"]),disabled:o.PropTypes.bool,tabIndex:o.PropTypes.number,onBlur:o.PropTypes.func,onFocus:o.PropTypes.func,onClick:o.PropTypes.func,onKeyDown:o.PropTypes.func,className:o.PropTypes.string,style:o.PropTypes.object,color:o.PropTypes.oneOf(["primary","secondary","success","warning","danger","information","neutral","gray"]),size:o.PropTypes.oneOf(["small","medium","large"])};module.exports=f;
|