@lanaco/lnc-react-ui 4.0.2 → 4.0.5
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/Accordion.cjs +1 -1
- package/dist/Accordion.js +55 -50
- package/dist/AccordionDetails.cjs +1 -1
- package/dist/AccordionDetails.js +15 -15
- package/dist/AccordionSummary.cjs +1 -1
- package/dist/AccordionSummary.js +11 -11
- package/dist/ActionsToolbar.cjs +2 -2
- package/dist/ActionsToolbar.js +16 -16
- package/dist/Alert.cjs +1 -1
- package/dist/Alert.js +23 -23
- package/dist/Avatar.cjs +2 -2
- package/dist/Avatar.js +18 -21
- package/dist/Badge.cjs +1 -1
- package/dist/Badge.js +21 -14
- package/dist/Breadcrumbs.cjs +1 -1
- package/dist/Breadcrumbs.js +28 -28
- package/dist/Button.cjs +2 -2
- package/dist/Button.js +21 -22
- package/dist/ButtonGroup.cjs +1 -1
- package/dist/ButtonGroup.js +10 -6
- package/dist/CheckBoxInput.cjs +1 -1
- package/dist/CheckBoxInput.js +6 -6
- package/dist/Chip.cjs +1 -1
- package/dist/Chip.js +9 -9
- package/dist/ColorInput.cjs +1 -1
- package/dist/ColorInput.js +20 -20
- package/dist/ConfirmationForm.cjs +1 -1
- package/dist/ConfirmationForm.js +58 -58
- package/dist/Content.cjs +1 -1
- package/dist/Content.js +8 -8
- package/dist/{CustomStyles-nfD3J1mi.js → CustomStyles-BUSJ8bZt.js} +5 -5
- package/dist/{CustomStyles-CqlCjTgU.cjs → CustomStyles-Dlqxic2X.cjs} +1 -1
- package/dist/DataView.cjs +1 -1
- package/dist/DataView.js +35 -35
- package/dist/DateInput.cjs +4 -4
- package/dist/DateInput.js +491 -491
- package/dist/DecimalInput.cjs +1 -1
- package/dist/DecimalInput.js +43 -43
- package/dist/DetailsView.cjs +4 -4
- package/dist/DetailsView.js +40 -40
- package/dist/DoubleRangeSlider.cjs +1 -1
- package/dist/DoubleRangeSlider.js +33 -33
- package/dist/DragAndDropFile.cjs +1 -1
- package/dist/DragAndDropFile.js +165 -165
- package/dist/DragDropFiles.cjs +1 -1
- package/dist/DragDropFiles.js +31 -31
- package/dist/Drawer.cjs +1 -1
- package/dist/Drawer.js +47 -47
- package/dist/Dropdown.cjs +1 -1
- package/dist/Dropdown.js +39 -39
- package/dist/DropdownItem.cjs +1 -1
- package/dist/DropdownItem.js +23 -23
- package/dist/DropdownLookup.cjs +1 -1
- package/dist/DropdownLookup.js +36 -36
- package/dist/DropdownMenu.cjs +7 -1
- package/dist/DropdownMenu.js +192 -10
- package/dist/EditableTable.cjs +1 -1
- package/dist/EditableTable.js +4 -4
- package/dist/FileInput.cjs +1 -1
- package/dist/FileInput.js +24 -24
- package/dist/FlexBox.cjs +1 -1
- package/dist/FlexBox.js +14 -14
- package/dist/FlexGrid.cjs +1 -1
- package/dist/FlexGrid.js +30 -30
- package/dist/FlexGridItem.cjs +1 -1
- package/dist/FlexGridItem.js +16 -16
- package/dist/Footer.cjs +1 -1
- package/dist/Footer.js +5 -5
- package/dist/FormField.cjs +1 -1
- package/dist/FormField.js +8 -9
- package/dist/FormView.cjs +1 -1
- package/dist/FormView.js +31 -31
- package/dist/Grid.cjs +2 -3
- package/dist/Grid.js +38 -10
- package/dist/GridItem.cjs +2 -2
- package/dist/GridItem.js +29 -9
- package/dist/Header.cjs +1 -1
- package/dist/Header.js +7 -7
- package/dist/Icon.cjs +2 -2
- package/dist/Icon.js +35 -13
- package/dist/IconButton.cjs +1 -1
- package/dist/IconButton.js +51 -52
- package/dist/Kanban.cjs +12 -12
- package/dist/Kanban.js +891 -879
- package/dist/KanbanActionsToolbar.cjs +2 -2
- package/dist/KanbanActionsToolbar.js +28 -28
- package/dist/{KanbanCard-D9OhU8C6.js → KanbanCard-CHZ_C9kk.js} +50 -50
- package/dist/KanbanCard-DV3VnSUi.cjs +30 -0
- package/dist/KanbanCard.cjs +1 -1
- package/dist/KanbanCard.js +5 -5
- package/dist/KanbanFooter.cjs +1 -1
- package/dist/KanbanFooter.js +40 -40
- package/dist/KanbanHeader.cjs +2 -2
- package/dist/KanbanHeader.js +46 -46
- package/dist/KanbanView.cjs +1 -1
- package/dist/KanbanView.js +27 -27
- package/dist/Link.cjs +1 -1
- package/dist/Link.js +9 -9
- package/dist/MenuItem.cjs +1 -1
- package/dist/MenuItem.js +39 -39
- package/dist/Modal.cjs +1 -1
- package/dist/Modal.js +42 -42
- package/dist/MultiSelectDropdown.cjs +1 -1
- package/dist/MultiSelectDropdown.js +6 -6
- package/dist/MultiSelectDropdownLookup.cjs +1 -1
- package/dist/MultiSelectDropdownLookup.js +6 -6
- package/dist/NestedDropdownItem.cjs +1 -1
- package/dist/NestedDropdownItem.js +40 -40
- package/dist/NestedMenuItem.cjs +1 -1
- package/dist/NestedMenuItem.js +45 -45
- package/dist/Notification.cjs +1 -83
- package/dist/Notification.js +3 -1077
- package/dist/NotificationContainer.cjs +37 -0
- package/dist/NotificationContainer.js +162 -0
- package/dist/NotificationMessage.cjs +47 -0
- package/dist/NotificationMessage.js +133 -0
- package/dist/NumberInput.cjs +1 -1
- package/dist/NumberInput.js +17 -17
- package/dist/PageLayout.cjs +1 -1
- package/dist/PageLayout.js +32 -32
- package/dist/Pagination.cjs +12 -0
- package/dist/Pagination.js +248 -0
- package/dist/PasswordInput.cjs +1 -1
- package/dist/PasswordInput.js +33 -33
- package/dist/Popover.cjs +1 -0
- package/dist/Popover.js +36 -0
- package/dist/PopoverClose.cjs +1 -0
- package/dist/PopoverClose.js +15 -0
- package/dist/PopoverContent.cjs +10 -0
- package/dist/PopoverContent.js +68 -0
- package/dist/PopoverContext.cjs +1 -0
- package/dist/PopoverContext.js +5 -0
- package/dist/PopoverDescription.cjs +1 -0
- package/dist/PopoverDescription.js +16 -0
- package/dist/PopoverHeading.cjs +1 -0
- package/dist/PopoverHeading.js +16 -0
- package/dist/PopoverTrigger.cjs +1 -0
- package/dist/PopoverTrigger.js +38 -0
- package/dist/ProgressBar.cjs +1 -1
- package/dist/ProgressBar.js +35 -24
- package/dist/RadioGroup.cjs +1 -1
- package/dist/RadioGroup.js +13 -13
- package/dist/RadioInput.cjs +1 -1
- package/dist/RadioInput.js +10 -10
- package/dist/RangeSlider.cjs +1 -1
- package/dist/RangeSlider.js +27 -27
- package/dist/SearchBar.cjs +1 -1
- package/dist/SearchBar.js +77 -77
- package/dist/Separator.cjs +1 -1
- package/dist/Separator.js +9 -9
- package/dist/Sidebar.cjs +1 -1
- package/dist/Sidebar.js +13 -13
- package/dist/Spinner.cjs +1 -1
- package/dist/Spinner.js +25 -20
- package/dist/Surface.cjs +2 -2
- package/dist/Surface.js +14 -15
- package/dist/SwipeableDrawer.cjs +1 -1
- package/dist/SwipeableDrawer.js +18 -18
- package/dist/TabItem.cjs +26 -0
- package/dist/TabItem.js +210 -0
- package/dist/Table.cjs +20 -20
- package/dist/Table.js +13 -12
- package/dist/TableView.cjs +8 -1
- package/dist/TableView.js +238 -9
- package/dist/Tabs.cjs +1 -1
- package/dist/Tabs.js +33 -27
- package/dist/TextAreaInput.cjs +1 -1
- package/dist/TextAreaInput.js +35 -35
- package/dist/TextInput.cjs +1 -1
- package/dist/TextInput.js +24 -24
- package/dist/ThemeProvider.cjs +1 -1
- package/dist/ThemeProvider.js +85 -85
- package/dist/TimeInput.cjs +1 -1
- package/dist/TimeInput.js +13 -13
- package/dist/Toggle.cjs +1 -1
- package/dist/Toggle.js +4 -5
- package/dist/TreeMenu.cjs +1 -1
- package/dist/TreeMenu.js +57 -57
- package/dist/TreeMenuSeparator.cjs +3 -3
- package/dist/TreeMenuSeparator.js +11 -11
- package/dist/UploadedFile.cjs +1 -1
- package/dist/UploadedFile.js +29 -29
- package/dist/_commonjsHelpers-DKOUU3wS.cjs +1 -0
- package/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
- package/dist/{defineProperty-BHpTtkhC.js → defineProperty-B5pLF6px.js} +8 -8
- package/dist/{emotion-element-5486c51c.browser.esm-CSejtOeT.js → emotion-element-5486c51c.browser.esm-Bb4VkP8U.js} +4 -4
- package/dist/{emotion-is-prop-valid.esm-BzFBwmJz.js → emotion-is-prop-valid.esm-DkbeH1Xy.js} +1 -1
- package/dist/{emotion-react.browser.esm-OWM-uG8Q.js → emotion-react.browser.esm-CN-s34fZ.js} +6 -6
- package/dist/{emotion-react.browser.esm-DQBL7Wls.cjs → emotion-react.browser.esm-D7h2t2Bz.cjs} +1 -1
- package/dist/{emotion-styled.browser.esm-BZSYYThs.js → emotion-styled.browser.esm-BiK8DcgW.js} +12 -12
- package/dist/floating-ui.react.esm-72DKnou_.js +1198 -0
- package/dist/floating-ui.react.esm-C4vrBVJU.cjs +4 -0
- package/dist/{hoist-non-react-statics.cjs-Drf1aBlk.js → hoist-non-react-statics.cjs-CAHiRNzQ.js} +1 -1
- package/dist/{hoist-non-react-statics.cjs-B8r9S_ak.cjs → hoist-non-react-statics.cjs-Dr-ytKVG.cjs} +3 -3
- package/dist/{index-CZJEA84h.js → index--Kmch3aI.js} +1 -1
- package/dist/index-BIlhCoy2.cjs +20 -0
- package/dist/{index-BLQWNy78.js → index-BUChtubz.js} +4 -4
- package/dist/{index-Ds9PUTwb.js → index-BYnWp42a.js} +208 -213
- package/dist/{index-D5vEbKUT.js → index-CNBqQrtK.js} +1 -1
- package/dist/{index-IO9v6o0I.cjs → index-CSXL784P.cjs} +2 -2
- package/dist/{index-C29T0m2a.cjs → index-Ct1N7fF4.cjs} +1 -1
- package/dist/{index-BklgDeu4.js → index-Cu0xwYjD.js} +1 -1
- package/dist/{index-Cdkz-XH-.js → index-CvebWhtp.js} +1 -1
- package/dist/index-DAOBjHnD.cjs +1 -0
- package/dist/index-DBXXH_TD.cjs +1 -0
- package/dist/{index-B_da1uvD.js → index-DLVVKJXD.js} +1 -1
- package/dist/index-DaiUAQVF.cjs +1 -0
- package/dist/index.cjs +1 -26
- package/dist/index.js +180 -376
- package/dist/{motion-CtkUpWEn.js → motion-ecIGZGwI.js} +1 -1
- package/dist/react-toastify.esm-CkXGwKXL.js +798 -0
- package/dist/react-toastify.esm-Dqcb4SQT.cjs +1 -0
- package/dist/{setPrototypeOf-a891FLQJ.js → setPrototypeOf-CttqfWo1.js} +2 -2
- package/dist/style.css +1 -5
- package/dist/{tslib.es6-ZNVz5r_T.js → tslib.es6-DQ-SzcmG.js} +5 -5
- package/dist/usePopover.cjs +1 -0
- package/dist/usePopover.js +44 -0
- package/dist/{utils-DEke8iwo.js → utils-C52T57HO.js} +73 -73
- package/dist/{utils-hdRGTsQ7.cjs → utils-DTAPpJXU.cjs} +1 -1
- package/package.json +17 -5
- package/vite.config.js +16 -0
- 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-B6qr13ik.cjs +0 -19
- package/dist/DropdownMenu-DZi3TJ8Q.js +0 -1547
- package/dist/KanbanCard-ConTmu3w.cjs +0 -30
- package/dist/TableView-Cj5_fbSR.js +0 -481
- package/dist/TableView-D8ex512p.cjs +0 -19
- package/dist/index-BjdOz5Ok.cjs +0 -1
- package/dist/index-DXnSjbfJ.cjs +0 -20
- package/dist/index-Dzkd2i4n.cjs +0 -1
- package/dist/index-P-naJISQ.cjs +0 -1
package/dist/DropdownLookup.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { P as e } from "./index-
|
|
3
|
-
import * as
|
|
4
|
-
import
|
|
5
|
-
import { _ as
|
|
6
|
-
import { _ as
|
|
7
|
-
import {
|
|
8
|
-
import "./index
|
|
9
|
-
import { d as
|
|
10
|
-
var
|
|
11
|
-
function
|
|
1
|
+
import { jsx as de } from "react/jsx-runtime";
|
|
2
|
+
import { P as e } from "./index-BYnWp42a.js";
|
|
3
|
+
import * as Oe from "react";
|
|
4
|
+
import { useRef as G, useState as a, useEffect as W, useCallback as j, forwardRef as J } from "react";
|
|
5
|
+
import { _ as me, u as be } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
|
|
6
|
+
import { _ as ge, b as s, h as Se, d as C, u as he, S as ve, a as ye } from "./CustomStyles-BUSJ8bZt.js";
|
|
7
|
+
import { _ as _e } from "./defineProperty-B5pLF6px.js";
|
|
8
|
+
import "./index--Kmch3aI.js";
|
|
9
|
+
import { d as Ie } from "./index-CNBqQrtK.js";
|
|
10
|
+
var Ce = ["defaultOptions", "cacheOptions", "loadOptions", "options", "isLoading", "onInputChange", "filterOption"];
|
|
11
|
+
function Le(o) {
|
|
12
12
|
var r = o.defaultOptions, t = r === void 0 ? !1 : r, i = o.cacheOptions, l = i === void 0 ? !1 : i, d = o.loadOptions;
|
|
13
13
|
o.options;
|
|
14
|
-
var p = o.isLoading, L = p === void 0 ? !1 : p, h = o.onInputChange, v = o.filterOption, M = v === void 0 ? null : v, y =
|
|
15
|
-
l !==
|
|
14
|
+
var p = o.isLoading, L = p === void 0 ? !1 : p, h = o.onInputChange, v = o.filterOption, M = v === void 0 ? null : v, y = ge(o, Ce), _ = y.inputValue, u = G(void 0), O = G(!1), m = a(Array.isArray(t) ? t : void 0), f = s(m, 2), K = f[0], R = f[1], Q = a(typeof _ < "u" ? _ : ""), $ = s(Q, 2), w = $[0], P = $[1], U = a(t === !0), E = s(U, 2), X = E[0], b = E[1], Y = a(void 0), F = s(Y, 2), V = F[0], A = F[1], Z = a([]), z = s(Z, 2), ee = z[0], T = z[1], te = a(!1), B = s(te, 2), ne = B[0], I = B[1], oe = a({}), H = s(oe, 2), g = H[0], N = H[1], ae = a(void 0), k = s(ae, 2), se = k[0], ue = k[1], re = a(void 0), q = s(re, 2), ie = q[0], le = q[1];
|
|
15
|
+
l !== ie && (N({}), le(l)), t !== se && (R(Array.isArray(t) ? t : void 0), ue(t)), W(function() {
|
|
16
16
|
return O.current = !0, function() {
|
|
17
17
|
O.current = !1;
|
|
18
18
|
};
|
|
19
19
|
}, []);
|
|
20
|
-
var x =
|
|
20
|
+
var x = j(function(S, c) {
|
|
21
21
|
if (!d) return c();
|
|
22
22
|
var n = d(S, c);
|
|
23
23
|
n && typeof n.then == "function" && n.then(c, function() {
|
|
@@ -25,12 +25,12 @@ function Me(o) {
|
|
|
25
25
|
});
|
|
26
26
|
}, [d]);
|
|
27
27
|
W(function() {
|
|
28
|
-
t === !0 && x(
|
|
29
|
-
O.current && (
|
|
28
|
+
t === !0 && x(w, function(S) {
|
|
29
|
+
O.current && (R(S || []), b(!!u.current));
|
|
30
30
|
});
|
|
31
31
|
}, []);
|
|
32
|
-
var
|
|
33
|
-
var n =
|
|
32
|
+
var pe = j(function(S, c) {
|
|
33
|
+
var n = Se(S, c, h);
|
|
34
34
|
if (!n) {
|
|
35
35
|
u.current = void 0, P(""), A(""), T([]), b(!1), I(!1);
|
|
36
36
|
return;
|
|
@@ -38,26 +38,26 @@ function Me(o) {
|
|
|
38
38
|
if (l && g[n])
|
|
39
39
|
P(n), A(n), T(g[n]), b(!1), I(!1);
|
|
40
40
|
else {
|
|
41
|
-
var
|
|
41
|
+
var ce = u.current = {};
|
|
42
42
|
P(n), b(!0), I(!V), x(n, function(D) {
|
|
43
|
-
O &&
|
|
43
|
+
O && ce === u.current && (u.current = void 0, b(!1), A(n), T(D || []), I(!1), N(D ? C(C({}, g), {}, _e({}, n, D)) : g));
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
|
-
}, [l, x, V, g, h]),
|
|
46
|
+
}, [l, x, V, g, h]), fe = ne ? [] : w && V ? ee : K || [];
|
|
47
47
|
return C(C({}, y), {}, {
|
|
48
|
-
options:
|
|
49
|
-
isLoading:
|
|
50
|
-
onInputChange:
|
|
48
|
+
options: fe,
|
|
49
|
+
isLoading: X || L,
|
|
50
|
+
onInputChange: pe,
|
|
51
51
|
filterOption: M
|
|
52
52
|
});
|
|
53
53
|
}
|
|
54
|
-
var
|
|
55
|
-
var t =
|
|
56
|
-
return /* @__PURE__ */
|
|
54
|
+
var Me = /* @__PURE__ */ J(function(o, r) {
|
|
55
|
+
var t = Le(o), i = he(t);
|
|
56
|
+
return /* @__PURE__ */ Oe.createElement(ve, me({
|
|
57
57
|
ref: r
|
|
58
58
|
}, i));
|
|
59
|
-
}),
|
|
60
|
-
const
|
|
59
|
+
}), Pe = Me;
|
|
60
|
+
const Ve = J((o, r) => {
|
|
61
61
|
const {
|
|
62
62
|
// defaultOptions,
|
|
63
63
|
// cacheOptions,
|
|
@@ -116,16 +116,16 @@ const Ae = Oe.forwardRef((o, r) => {
|
|
|
116
116
|
style: M = {},
|
|
117
117
|
// children,
|
|
118
118
|
...y
|
|
119
|
-
} = o, _ =
|
|
120
|
-
|
|
119
|
+
} = o, _ = be(), u = j(
|
|
120
|
+
Ie((m, f) => {
|
|
121
121
|
p == null || p(m, f);
|
|
122
122
|
}, i)
|
|
123
123
|
);
|
|
124
|
-
return /* @__PURE__ */
|
|
125
|
-
|
|
124
|
+
return /* @__PURE__ */ de(
|
|
125
|
+
Pe,
|
|
126
126
|
{
|
|
127
127
|
ref: r,
|
|
128
|
-
styles: t ||
|
|
128
|
+
styles: t || ye,
|
|
129
129
|
size: L,
|
|
130
130
|
color: h,
|
|
131
131
|
theme: _,
|
|
@@ -140,7 +140,7 @@ const Ae = Oe.forwardRef((o, r) => {
|
|
|
140
140
|
}
|
|
141
141
|
);
|
|
142
142
|
});
|
|
143
|
-
|
|
143
|
+
Ve.propTypes = {
|
|
144
144
|
/**
|
|
145
145
|
* The default set of options to show before the user starts searching. When set to true, the results for loadOptions('') will be autoloaded.
|
|
146
146
|
*/
|
|
@@ -321,5 +321,5 @@ Ae.propTypes = {
|
|
|
321
321
|
size: e.oneOf(["small", "medium", "large"])
|
|
322
322
|
};
|
|
323
323
|
export {
|
|
324
|
-
|
|
324
|
+
Ve as default
|
|
325
325
|
};
|
package/dist/DropdownMenu.cjs
CHANGED
|
@@ -1 +1,7 @@
|
|
|
1
|
-
"use strict";require("react/jsx-runtime")
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),t=require("react"),o=require("./index-BIlhCoy2.cjs"),x=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),B=require("./Button.cjs"),K=require("./utils-DTAPpJXU.cjs"),L=require("./ThemeProvider.cjs"),U=require("./Popover.cjs"),Y=require("./PopoverTrigger.cjs"),$=require("./PopoverContent.cjs"),A=require("./motion-Oud-wpUz.cjs"),G=x.newStyled.div``,H=x.newStyled(A.motion.div)`
|
|
2
|
+
gap: 0.25rem;
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
${n=>n.widthfitcontent==!1&&"min-width: 12.5rem"};
|
|
6
|
+
background-color: ${n=>K.getColorRgbaValue(n.theme,"Dropdown",n.color,"enabled","background")};
|
|
7
|
+
`,I=t.forwardRef((n,p)=>{const{control:i,offsetValue:C=9,placement:_,widthFitContent:b=!1,closeOnItemSelect:v=!0,zIndex:q,onFocus:m=()=>{},onBlur:f=()=>{},onClick:y=()=>{},onKeyDown:d=()=>{},onMouseEnter:T=()=>{},onMouseLeave:P=()=>{},onItemSelected:M=()=>{},animation:R={animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},initial:{opacity:0,height:0},transition:{type:"tween",duration:.15,opacity:{duration:.15,ease:"easeOut"},height:{duration:.15}}},className:h="",style:J={},color:s="primary",size:c="small",contentClassName:N="",popoverProps:Q,children:O,...j}=n;t.useRef();const D=t.useRef(),{theme:k}=L.useTheme(),g=t.useRef(),E=t.useRef(),[z,l]=t.useState(!1),w=(e,u,a)=>{M(e,u,a),v==!0&&l(!1)},F=t.Children.map(O,(e,u)=>{var a,S;return t.isValidElement(e)&&(e.props.__TYPE__=="MENU_ITEM"||((a=e==null?void 0:e.type)==null?void 0:a.displayName)==="MENU_ITEM"||e.props.__TYPE__=="NESTED_ITEM"||((S=e==null?void 0:e.type)==null?void 0:S.displayName)==="NESTED_ITEM")?u==0?(e.props.ref&&(E.current=p),t.cloneElement(e,{ref:p||E,color:e.props.color?e.props.color:s,size:c,onItemSelected:w,animation:R})):t.cloneElement(e,{color:e.props.color?e.props.color:s,size:c,onItemSelected:w}):e}),V=()=>typeof i=="string"||i instanceof String?r.jsx(B,{text:i,onClick:y,onMouseEnter:T,onMouseLeave:P,onBlur:f,onFocus:m,ref:g,onKeyDown:d,trailingIcon:"angle-down",color:s,size:c}):t.cloneElement(i,{color:s,size:c,ref:g,onClick:y,onMouseEnter:T,onMouseLeave:P,onBlur:f,onFocus:m,onKeyDown:d});return r.jsx(G,{ref:p,className:h,...j,children:r.jsxs(U,{open:z,onOpenChange:l,placement:_,offsetValue:C,children:[r.jsx(Y,{onClick:()=>l(e=>!e),children:V()}),r.jsx($,{zIndex:q,children:r.jsx(H,{ref:D,widthfitcontent:b,color:s,theme:k,className:N,children:F})})]})})});I.propTypes={control:o.PropTypes.oneOfType([o.PropTypes.string,o.PropTypes.element]),offsetValue:o.PropTypes.number,placement:o.PropTypes.oneOf(["center","top","right","bottom","left","top-start","top-end","right-start","right-end","bottom-start","bottom-end","left-start","left-end"]),widthFitContent:o.PropTypes.bool,closeOnItemSelect:o.PropTypes.bool,zIndex:o.PropTypes.number,onBlur:o.PropTypes.func,onFocus:o.PropTypes.func,onClick:o.PropTypes.func,onKeyDown:o.PropTypes.func,onMouseEnter:o.PropTypes.func,onMouseLeave:o.PropTypes.func,onItemSelected:o.PropTypes.func,animation:o.PropTypes.object,className:o.PropTypes.string,color:o.PropTypes.oneOf(["primary","secondary","success","warning","danger","information","neutral","gray"]),size:o.PropTypes.oneOf(["small","medium","large"]),popoverProps:o.PropTypes.any};module.exports=I;
|
package/dist/DropdownMenu.js
CHANGED
|
@@ -1,12 +1,194 @@
|
|
|
1
|
-
import "react/jsx-runtime";
|
|
2
|
-
import "react";
|
|
3
|
-
import "./index-
|
|
4
|
-
import "./emotion-styled.browser.esm-
|
|
5
|
-
import "./Button.js";
|
|
6
|
-
import "./utils-
|
|
7
|
-
import "./ThemeProvider.js";
|
|
8
|
-
import
|
|
9
|
-
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
|
+
import { P as o } from "./index-BYnWp42a.js";
|
|
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
|
+
gap: 0.25rem;
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
${(t) => t.widthfitcontent == !1 && "min-width: 12.5rem"};
|
|
17
|
+
background-color: ${(t) => q(
|
|
18
|
+
t.theme,
|
|
19
|
+
"Dropdown",
|
|
20
|
+
t.color,
|
|
21
|
+
"enabled",
|
|
22
|
+
"background"
|
|
23
|
+
)};
|
|
24
|
+
`, Z = K((t, s) => {
|
|
25
|
+
const {
|
|
26
|
+
control: a,
|
|
27
|
+
offsetValue: _ = 9,
|
|
28
|
+
placement: v,
|
|
29
|
+
widthFitContent: M = !1,
|
|
30
|
+
closeOnItemSelect: P = !0,
|
|
31
|
+
zIndex: N,
|
|
32
|
+
//----------------
|
|
33
|
+
onFocus: u = () => {
|
|
34
|
+
},
|
|
35
|
+
onBlur: d = () => {
|
|
36
|
+
},
|
|
37
|
+
onClick: g = () => {
|
|
38
|
+
},
|
|
39
|
+
onKeyDown: y = () => {
|
|
40
|
+
},
|
|
41
|
+
onMouseEnter: E = () => {
|
|
42
|
+
},
|
|
43
|
+
onMouseLeave: w = () => {
|
|
44
|
+
},
|
|
45
|
+
onItemSelected: O = () => {
|
|
46
|
+
},
|
|
47
|
+
//----------------
|
|
48
|
+
animation: h = {
|
|
49
|
+
animate: { opacity: 1, height: "auto" },
|
|
50
|
+
exit: { opacity: 0, height: 0 },
|
|
51
|
+
initial: { opacity: 0, height: 0 },
|
|
52
|
+
transition: {
|
|
53
|
+
type: "tween",
|
|
54
|
+
duration: 0.15,
|
|
55
|
+
opacity: { duration: 0.15, ease: "easeOut" },
|
|
56
|
+
height: { duration: 0.15 }
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
className: x = "",
|
|
60
|
+
style: ee = {},
|
|
61
|
+
color: n = "primary",
|
|
62
|
+
size: i = "small",
|
|
63
|
+
contentClassName: D = "",
|
|
64
|
+
popoverProps: oe,
|
|
65
|
+
children: R,
|
|
66
|
+
...k
|
|
67
|
+
} = t;
|
|
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
|
+
//needed to focus on navigation
|
|
76
|
+
color: e.props.color ? e.props.color : n,
|
|
77
|
+
size: i,
|
|
78
|
+
onItemSelected: S,
|
|
79
|
+
animation: h
|
|
80
|
+
})) : f(e, {
|
|
81
|
+
color: e.props.color ? e.props.color : n,
|
|
82
|
+
size: i,
|
|
83
|
+
onItemSelected: S
|
|
84
|
+
}) : e;
|
|
85
|
+
});
|
|
86
|
+
return /* @__PURE__ */ r(W, { ref: s, className: x, ...k, children: /* @__PURE__ */ B(
|
|
87
|
+
G,
|
|
88
|
+
{
|
|
89
|
+
open: V,
|
|
90
|
+
onOpenChange: m,
|
|
91
|
+
placement: v,
|
|
92
|
+
offsetValue: _,
|
|
93
|
+
children: [
|
|
94
|
+
/* @__PURE__ */ r(H, { onClick: () => m((e) => !e), children: typeof a == "string" || a instanceof String ? /* @__PURE__ */ r(
|
|
95
|
+
$,
|
|
96
|
+
{
|
|
97
|
+
text: a,
|
|
98
|
+
onClick: g,
|
|
99
|
+
onMouseEnter: E,
|
|
100
|
+
onMouseLeave: w,
|
|
101
|
+
onBlur: d,
|
|
102
|
+
onFocus: u,
|
|
103
|
+
ref: C,
|
|
104
|
+
onKeyDown: y,
|
|
105
|
+
trailingIcon: "angle-down",
|
|
106
|
+
color: n,
|
|
107
|
+
size: i
|
|
108
|
+
}
|
|
109
|
+
) : f(a, {
|
|
110
|
+
color: n,
|
|
111
|
+
size: i,
|
|
112
|
+
ref: C,
|
|
113
|
+
onClick: g,
|
|
114
|
+
onMouseEnter: E,
|
|
115
|
+
onMouseLeave: w,
|
|
116
|
+
onBlur: d,
|
|
117
|
+
onFocus: u,
|
|
118
|
+
onKeyDown: y
|
|
119
|
+
}) }),
|
|
120
|
+
/* @__PURE__ */ r(J, { zIndex: N, children: /* @__PURE__ */ r(
|
|
121
|
+
X,
|
|
122
|
+
{
|
|
123
|
+
ref: z,
|
|
124
|
+
widthfitcontent: M,
|
|
125
|
+
color: n,
|
|
126
|
+
theme: F,
|
|
127
|
+
className: D,
|
|
128
|
+
children: j
|
|
129
|
+
}
|
|
130
|
+
) })
|
|
131
|
+
]
|
|
132
|
+
}
|
|
133
|
+
) });
|
|
134
|
+
});
|
|
135
|
+
Z.propTypes = {
|
|
136
|
+
control: o.oneOfType([o.string, o.element]),
|
|
137
|
+
/**
|
|
138
|
+
* Menu offset from the control
|
|
139
|
+
*/
|
|
140
|
+
offsetValue: o.number,
|
|
141
|
+
placement: o.oneOf([
|
|
142
|
+
"center",
|
|
143
|
+
"top",
|
|
144
|
+
"right",
|
|
145
|
+
"bottom",
|
|
146
|
+
"left",
|
|
147
|
+
"top-start",
|
|
148
|
+
"top-end",
|
|
149
|
+
"right-start",
|
|
150
|
+
"right-end",
|
|
151
|
+
"bottom-start",
|
|
152
|
+
"bottom-end",
|
|
153
|
+
"left-start",
|
|
154
|
+
"left-end"
|
|
155
|
+
]),
|
|
156
|
+
/**
|
|
157
|
+
* Adjust width of dropdown according to dropdown items content.
|
|
158
|
+
*/
|
|
159
|
+
widthFitContent: o.bool,
|
|
160
|
+
/**
|
|
161
|
+
* Close menu when item is selected
|
|
162
|
+
*/
|
|
163
|
+
closeOnItemSelect: o.bool,
|
|
164
|
+
/**
|
|
165
|
+
* zIndex of dropdown popup
|
|
166
|
+
*/
|
|
167
|
+
zIndex: o.number,
|
|
168
|
+
//---------------------------------------------------------------
|
|
169
|
+
onBlur: o.func,
|
|
170
|
+
onFocus: o.func,
|
|
171
|
+
onClick: o.func,
|
|
172
|
+
onKeyDown: o.func,
|
|
173
|
+
onMouseEnter: o.func,
|
|
174
|
+
onMouseLeave: o.func,
|
|
175
|
+
onItemSelected: o.func,
|
|
176
|
+
//---------------------------------------------------------------
|
|
177
|
+
animation: o.object,
|
|
178
|
+
className: o.string,
|
|
179
|
+
color: o.oneOf([
|
|
180
|
+
"primary",
|
|
181
|
+
"secondary",
|
|
182
|
+
"success",
|
|
183
|
+
"warning",
|
|
184
|
+
"danger",
|
|
185
|
+
"information",
|
|
186
|
+
"neutral",
|
|
187
|
+
"gray"
|
|
188
|
+
]),
|
|
189
|
+
size: o.oneOf(["small", "medium", "large"]),
|
|
190
|
+
popoverProps: o.any
|
|
191
|
+
};
|
|
10
192
|
export {
|
|
11
|
-
|
|
193
|
+
Z as default
|
|
12
194
|
};
|
package/dist/EditableTable.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const c=require("react/jsx-runtime"),i=require("react"),r=require("./index-
|
|
1
|
+
"use strict";const c=require("react/jsx-runtime"),i=require("react"),r=require("./index-BIlhCoy2.cjs"),w=require("./utils-DTAPpJXU.cjs"),H=require("./Table.cjs"),G=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),B=require("./TextInput.cjs"),W=require("./NumberInput.cjs"),J=require("./DecimalInput.cjs"),Q=require("./CheckBoxInput.cjs"),U=require("./Dropdown.cjs"),X=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),m={BOOLEAN:"BOOLEAN",STRING:"STRING",INTEGER:"INTEGER",DECIMAL:"DECIMAL",DATE:"DATE",SELECT:"SELECT"},Z=G.newStyled.td`
|
|
2
2
|
white-space: nowrap;
|
|
3
3
|
overflow: hidden;
|
|
4
4
|
text-overflow: ellipsis;
|
package/dist/EditableTable.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsx as i, Fragment as G, jsxs as U } from "react/jsx-runtime";
|
|
2
2
|
import { useState as X, useRef as w, useEffect as F, createElement as Z, forwardRef as ee, useImperativeHandle as re } from "react";
|
|
3
|
-
import { P as r } from "./index-
|
|
4
|
-
import {
|
|
3
|
+
import { P as r } from "./index-BYnWp42a.js";
|
|
4
|
+
import { g as V, r as M, i as z } from "./utils-C52T57HO.js";
|
|
5
5
|
import te from "./Table.js";
|
|
6
|
-
import { n as Y } from "./emotion-styled.browser.esm-
|
|
6
|
+
import { n as Y } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
7
7
|
import N from "./TextInput.js";
|
|
8
8
|
import oe from "./NumberInput.js";
|
|
9
9
|
import ne from "./DecimalInput.js";
|
|
10
10
|
import ae from "./CheckBoxInput.js";
|
|
11
11
|
import se from "./Dropdown.js";
|
|
12
|
-
import { u as ce } from "./emotion-element-5486c51c.browser.esm-
|
|
12
|
+
import { u as ce } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
|
|
13
13
|
const h = {
|
|
14
14
|
BOOLEAN: "BOOLEAN",
|
|
15
15
|
STRING: "STRING",
|
package/dist/FileInput.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const c=require("react/jsx-runtime"),g=require("react"),b=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),t=require("./index-
|
|
1
|
+
"use strict";const c=require("react/jsx-runtime"),g=require("react"),b=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),t=require("./index-BIlhCoy2.cjs"),r=require("./utils-DTAPpJXU.cjs"),j=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),k=b.newStyled.label`
|
|
2
2
|
display: inline-flex;
|
|
3
3
|
box-sizing: border-box;
|
|
4
4
|
width: 100%;
|
package/dist/FileInput.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { n as c } from "./emotion-styled.browser.esm-
|
|
4
|
-
import { P as t } from "./index-
|
|
5
|
-
import {
|
|
6
|
-
import { u as
|
|
7
|
-
const
|
|
1
|
+
import { jsxs as S, jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as R, useState as g } from "react";
|
|
3
|
+
import { n as c } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
4
|
+
import { P as t } from "./index-BYnWp42a.js";
|
|
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 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/FlexBox.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const w=require("react/jsx-runtime"),d=require("react"),y=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),r=require("./index-
|
|
1
|
+
"use strict";const w=require("react/jsx-runtime"),d=require("react"),y=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),r=require("./index-BIlhCoy2.cjs"),f={Row:"row",RowReverse:"row-reverse",Column:"column",ColumnReverse:"column-reverse"},m={NoWrap:"nowrap",Wrap:"wrap",WrapReverse:"wrap-reverse"},x={Start:"flex-start",Center:"center",End:"flex-end",SpaceAround:"space-around",SpaceBetween:"space-between",SpaceEvenly:"space-evenly"},S={Start:"flex-start",Center:"center",Stretch:"stretch",End:"flex-end",Baseline:"baseline"},g=y.newStyled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: ${e=>f[e.direction]};
|
|
4
4
|
flex-wrap: ${e=>m[e.wrap]};
|
package/dist/FlexBox.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as f } from "react/jsx-runtime";
|
|
2
|
-
import m from "react";
|
|
3
|
-
import { n as w } from "./emotion-styled.browser.esm-
|
|
4
|
-
import { P as
|
|
2
|
+
import { forwardRef as m } from "react";
|
|
3
|
+
import { n as w } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
4
|
+
import { P as r } from "./index-BYnWp42a.js";
|
|
5
5
|
const d = {
|
|
6
6
|
Row: "row",
|
|
7
7
|
RowReverse: "row-reverse",
|
|
@@ -32,9 +32,9 @@ const d = {
|
|
|
32
32
|
align-items: ${(e) => x[e.alignItems]};
|
|
33
33
|
column-gap: ${(e) => e.columnGap ? e.columnGap : e.gap};
|
|
34
34
|
row-gap: ${(e) => e.rowGap ? e.rowGap : e.gap};
|
|
35
|
-
`, v = m
|
|
35
|
+
`, v = m((e, t) => {
|
|
36
36
|
const {
|
|
37
|
-
className:
|
|
37
|
+
className: n = "",
|
|
38
38
|
children: a,
|
|
39
39
|
direction: o = "Row",
|
|
40
40
|
wrap: s = "NoWrap",
|
|
@@ -46,8 +46,8 @@ const d = {
|
|
|
46
46
|
return /* @__PURE__ */ f(
|
|
47
47
|
g,
|
|
48
48
|
{
|
|
49
|
-
className: "lnc-flexbox-container " + (
|
|
50
|
-
ref:
|
|
49
|
+
className: "lnc-flexbox-container " + (n || ""),
|
|
50
|
+
ref: t,
|
|
51
51
|
wrap: s,
|
|
52
52
|
gap: p,
|
|
53
53
|
alignItems: l,
|
|
@@ -59,21 +59,21 @@ const d = {
|
|
|
59
59
|
);
|
|
60
60
|
});
|
|
61
61
|
v.propTypes = {
|
|
62
|
-
rowGap:
|
|
63
|
-
columnGap:
|
|
64
|
-
gap:
|
|
62
|
+
rowGap: r.string,
|
|
63
|
+
columnGap: r.string,
|
|
64
|
+
gap: r.string,
|
|
65
65
|
/**
|
|
66
66
|
* Controls the direction of items in FlexBox.
|
|
67
67
|
*/
|
|
68
|
-
direction:
|
|
68
|
+
direction: r.oneOf(["Row", "RowReverse", "Column", "ColumnReverse"]),
|
|
69
69
|
/**
|
|
70
70
|
* Determines whether the FlexBox should wrap, when there is not enough space to display all items in one line.
|
|
71
71
|
*/
|
|
72
|
-
wrap:
|
|
72
|
+
wrap: r.oneOf(["NoWrap", "Wrap", "WrapReverse"]),
|
|
73
73
|
/**
|
|
74
74
|
* Controls how the space is distributed between items along the main-axis.
|
|
75
75
|
*/
|
|
76
|
-
justifyContent:
|
|
76
|
+
justifyContent: r.oneOf([
|
|
77
77
|
"Start",
|
|
78
78
|
"Center",
|
|
79
79
|
"End",
|
|
@@ -84,7 +84,7 @@ v.propTypes = {
|
|
|
84
84
|
/**
|
|
85
85
|
* Controls how the space is distributed between items along the cross-axis.
|
|
86
86
|
*/
|
|
87
|
-
alignItems:
|
|
87
|
+
alignItems: r.oneOf([
|
|
88
88
|
"Start",
|
|
89
89
|
"Center",
|
|
90
90
|
"Stretch",
|
package/dist/FlexGrid.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const P=require("react/jsx-runtime"),r=require("react"),e=require("./index-
|
|
1
|
+
"use strict";const P=require("react/jsx-runtime"),r=require("react"),e=require("./index-BIlhCoy2.cjs"),S=require("./FlexBox.cjs"),d=require("./FlexGridItem.cjs"),t=r.forwardRef((p,o)=>{const{columns:s=12,spacing:c,rowSpacing:i,columnSpacing:a,justifyContent:u="Start",alignItems:y="Stretch",children:l,rest:T}=p,m=r.Children.map(l,n=>{if(!(!r.isValidElement(n)||n.type!=d))return r.cloneElement(n,{columns:s,spacing:c,rowSpacing:i,columnSpacing:a})});return P.jsx(S,{ref:o,wrap:"Wrap",justifyContent:u,alignItems:y,...T,children:m})});t.propTypes={columns:e.PropTypes.number,spacing:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.object]),rowSpacing:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.object]),columnSpacing:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.object]),justifyContent:e.PropTypes.oneOf(["Start","Center","End","SpaceAround","SpaceBetween","SpaceEvenly"]),alignItems:e.PropTypes.oneOf(["Start","Center","Stretch","End","Baseline"])};module.exports=t;
|