@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/SearchBar.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { jsx as v, jsxs as _ } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import { n as x } from "./emotion-styled.browser.esm-
|
|
4
|
-
import { P as u } from "./index-
|
|
5
|
-
import
|
|
6
|
-
import { k as
|
|
7
|
-
import { useTheme as
|
|
2
|
+
import E, { Children as ue, isValidElement as w, cloneElement as R, useState as M, createRef as ce, createElement as X } from "react";
|
|
3
|
+
import { n as x } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
4
|
+
import { P as u } from "./index-BYnWp42a.js";
|
|
5
|
+
import de from "./Chip.js";
|
|
6
|
+
import { k as pe } from "./emotion-react.browser.esm-CN-s34fZ.js";
|
|
7
|
+
import { useTheme as fe } from "./ThemeProvider.js";
|
|
8
8
|
import { _ as L } from "./objectWithoutPropertiesLoose-DwEN6RBQ.js";
|
|
9
|
-
import { _ as V } from "./emotion-element-5486c51c.browser.esm-
|
|
10
|
-
import {
|
|
11
|
-
import { R as $ } from "./index
|
|
12
|
-
const
|
|
9
|
+
import { _ as V } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
|
|
10
|
+
import { _ as me, a as he } from "./setPrototypeOf-CttqfWo1.js";
|
|
11
|
+
import { R as $ } from "./index--Kmch3aI.js";
|
|
12
|
+
const ve = pe`
|
|
13
13
|
from {
|
|
14
14
|
opacity: 0;
|
|
15
15
|
}
|
|
16
16
|
to {
|
|
17
17
|
opacity: 1;
|
|
18
18
|
}
|
|
19
|
-
`,
|
|
19
|
+
`, ge = x.div`
|
|
20
20
|
@media (prefers-reduced-motion: no-preference) {
|
|
21
|
-
animation-name: ${
|
|
21
|
+
animation-name: ${ve};
|
|
22
22
|
animation-fill-mode: backwards;
|
|
23
23
|
}
|
|
24
|
-
`,
|
|
25
|
-
|
|
24
|
+
`, Ee = ({ duration: e = 300, delay: o = 0, children: l, ...n }) => /* @__PURE__ */ v(
|
|
25
|
+
ge,
|
|
26
26
|
{
|
|
27
27
|
...n,
|
|
28
28
|
style: {
|
|
@@ -34,28 +34,28 @@ const he = de`
|
|
|
34
34
|
}
|
|
35
35
|
);
|
|
36
36
|
function F(e, o) {
|
|
37
|
-
e.prototype = Object.create(o.prototype), e.prototype.constructor = e,
|
|
37
|
+
e.prototype = Object.create(o.prototype), e.prototype.constructor = e, me(e, o);
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function xe(e, o) {
|
|
40
40
|
return e.classList ? !!o && e.classList.contains(o) : (" " + (e.className.baseVal || e.className) + " ").indexOf(" " + o + " ") !== -1;
|
|
41
41
|
}
|
|
42
|
-
function
|
|
43
|
-
e.classList ? e.classList.add(o) :
|
|
42
|
+
function Ce(e, o) {
|
|
43
|
+
e.classList ? e.classList.add(o) : xe(e, o) || (typeof e.className == "string" ? e.className = e.className + " " + o : e.setAttribute("class", (e.className && e.className.baseVal || "") + " " + o));
|
|
44
44
|
}
|
|
45
45
|
function H(e, o) {
|
|
46
46
|
return e.replace(new RegExp("(^|\\s)" + o + "(?:\\s|$)", "g"), "$1").replace(/\s+/g, " ").replace(/^\s*|\s*$/g, "");
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function be(e, o) {
|
|
49
49
|
e.classList ? e.classList.remove(o) : typeof e.className == "string" ? e.className = H(e.className, o) : e.setAttribute("class", H(e.className && e.className.baseVal || "", o));
|
|
50
50
|
}
|
|
51
51
|
const J = {
|
|
52
52
|
disabled: !1
|
|
53
53
|
};
|
|
54
|
-
var
|
|
54
|
+
var Ne = process.env.NODE_ENV !== "production" ? u.oneOfType([u.number, u.shape({
|
|
55
55
|
enter: u.number,
|
|
56
56
|
exit: u.number,
|
|
57
57
|
appear: u.number
|
|
58
|
-
}).isRequired]) : null,
|
|
58
|
+
}).isRequired]) : null, ye = process.env.NODE_ENV !== "production" ? u.oneOfType([u.string, u.shape({
|
|
59
59
|
enter: u.string,
|
|
60
60
|
exit: u.string,
|
|
61
61
|
active: u.string
|
|
@@ -67,7 +67,7 @@ var be = process.env.NODE_ENV !== "production" ? u.oneOfType([u.number, u.shape(
|
|
|
67
67
|
exitDone: u.string,
|
|
68
68
|
exitActive: u.string
|
|
69
69
|
})]) : null;
|
|
70
|
-
const I =
|
|
70
|
+
const I = E.createContext(null);
|
|
71
71
|
var Q = function(o) {
|
|
72
72
|
return o.scrollTop;
|
|
73
73
|
}, O = "unmounted", N = "exited", y = "entering", D = "entered", P = "exiting", C = /* @__PURE__ */ function(e) {
|
|
@@ -192,12 +192,12 @@ var Q = function(o) {
|
|
|
192
192
|
var a = L(t, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
193
193
|
return (
|
|
194
194
|
// allows for nested Transitions
|
|
195
|
-
/* @__PURE__ */
|
|
195
|
+
/* @__PURE__ */ E.createElement(I.Provider, {
|
|
196
196
|
value: null
|
|
197
|
-
}, typeof i == "function" ? i(r, a) :
|
|
197
|
+
}, typeof i == "function" ? i(r, a) : E.cloneElement(E.Children.only(i), a))
|
|
198
198
|
);
|
|
199
199
|
}, o;
|
|
200
|
-
}(
|
|
200
|
+
}(E.Component);
|
|
201
201
|
C.contextType = I;
|
|
202
202
|
C.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
203
203
|
/**
|
|
@@ -295,7 +295,7 @@ C.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
295
295
|
* @type {number | { enter?: number, exit?: number, appear?: number }}
|
|
296
296
|
*/
|
|
297
297
|
timeout: function(o) {
|
|
298
|
-
var l =
|
|
298
|
+
var l = Ne;
|
|
299
299
|
o.addEndListener || (l = l.isRequired);
|
|
300
300
|
for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), t = 1; t < n; t++)
|
|
301
301
|
r[t - 1] = arguments[t];
|
|
@@ -389,13 +389,13 @@ C.EXITED = N;
|
|
|
389
389
|
C.ENTERING = y;
|
|
390
390
|
C.ENTERED = D;
|
|
391
391
|
C.EXITING = P;
|
|
392
|
-
var
|
|
392
|
+
var Se = function(o, l) {
|
|
393
393
|
return o && l && l.split(" ").forEach(function(n) {
|
|
394
|
-
return
|
|
394
|
+
return Ce(o, n);
|
|
395
395
|
});
|
|
396
396
|
}, A = function(o, l) {
|
|
397
397
|
return o && l && l.split(" ").forEach(function(n) {
|
|
398
|
-
return
|
|
398
|
+
return be(o, n);
|
|
399
399
|
});
|
|
400
400
|
}, U = /* @__PURE__ */ function(e) {
|
|
401
401
|
F(o, e);
|
|
@@ -438,7 +438,7 @@ var ye = function(o, l) {
|
|
|
438
438
|
var l = o.prototype;
|
|
439
439
|
return l.addClass = function(r, t, i) {
|
|
440
440
|
var a = this.getClassNames(t)[i + "ClassName"], s = this.getClassNames("enter"), c = s.doneClassName;
|
|
441
|
-
t === "appear" && i === "done" && c && (a += " " + c), i === "active" && r && Q(r), a && (this.appliedClasses[t][i] = a,
|
|
441
|
+
t === "appear" && i === "done" && c && (a += " " + c), i === "active" && r && Q(r), a && (this.appliedClasses[t][i] = a, Se(r, a));
|
|
442
442
|
}, l.removeClasses = function(r, t) {
|
|
443
443
|
var i = this.appliedClasses[t], a = i.base, s = i.active, c = i.done;
|
|
444
444
|
this.appliedClasses[t] = {}, a && A(r, a), s && A(r, s), c && A(r, c);
|
|
@@ -446,7 +446,7 @@ var ye = function(o, l) {
|
|
|
446
446
|
var r = this.props;
|
|
447
447
|
r.classNames;
|
|
448
448
|
var t = L(r, ["classNames"]);
|
|
449
|
-
return /* @__PURE__ */
|
|
449
|
+
return /* @__PURE__ */ E.createElement(C, V({}, t, {
|
|
450
450
|
onEnter: this.onEnter,
|
|
451
451
|
onEntered: this.onEntered,
|
|
452
452
|
onEntering: this.onEntering,
|
|
@@ -455,7 +455,7 @@ var ye = function(o, l) {
|
|
|
455
455
|
onExited: this.onExited
|
|
456
456
|
}));
|
|
457
457
|
}, o;
|
|
458
|
-
}(
|
|
458
|
+
}(E.Component);
|
|
459
459
|
U.defaultProps = {
|
|
460
460
|
classNames: ""
|
|
461
461
|
};
|
|
@@ -528,7 +528,7 @@ U.propTypes = process.env.NODE_ENV !== "production" ? V({}, C.propTypes, {
|
|
|
528
528
|
* exitDone?: string,
|
|
529
529
|
* }}
|
|
530
530
|
*/
|
|
531
|
-
classNames:
|
|
531
|
+
classNames: ye,
|
|
532
532
|
/**
|
|
533
533
|
* A `<Transition>` callback fired immediately after the 'enter' or 'appear' class is
|
|
534
534
|
* applied.
|
|
@@ -593,7 +593,7 @@ function G(e, o) {
|
|
|
593
593
|
n[r.key] = l(r);
|
|
594
594
|
}), n;
|
|
595
595
|
}
|
|
596
|
-
function
|
|
596
|
+
function Te(e, o) {
|
|
597
597
|
e = e || {}, o = o || {};
|
|
598
598
|
function l(p) {
|
|
599
599
|
return p in o ? o[p] : e[p];
|
|
@@ -617,7 +617,7 @@ function Se(e, o) {
|
|
|
617
617
|
function S(e, o, l) {
|
|
618
618
|
return l[o] != null ? l[o] : e.props[o];
|
|
619
619
|
}
|
|
620
|
-
function
|
|
620
|
+
function De(e, o) {
|
|
621
621
|
return G(e.children, function(l) {
|
|
622
622
|
return R(l, {
|
|
623
623
|
onExited: o.bind(null, l),
|
|
@@ -628,8 +628,8 @@ function Te(e, o) {
|
|
|
628
628
|
});
|
|
629
629
|
});
|
|
630
630
|
}
|
|
631
|
-
function
|
|
632
|
-
var n = G(e.children), r =
|
|
631
|
+
function Oe(e, o, l) {
|
|
632
|
+
var n = G(e.children), r = Te(o, n);
|
|
633
633
|
return Object.keys(r).forEach(function(t) {
|
|
634
634
|
var i = r[t];
|
|
635
635
|
if (w(i)) {
|
|
@@ -650,11 +650,11 @@ function De(e, o, l) {
|
|
|
650
650
|
}
|
|
651
651
|
}), r;
|
|
652
652
|
}
|
|
653
|
-
var
|
|
653
|
+
var ke = Object.values || function(e) {
|
|
654
654
|
return Object.keys(e).map(function(o) {
|
|
655
655
|
return e[o];
|
|
656
656
|
});
|
|
657
|
-
},
|
|
657
|
+
}, $e = {
|
|
658
658
|
component: "div",
|
|
659
659
|
childFactory: function(o) {
|
|
660
660
|
return o;
|
|
@@ -664,7 +664,7 @@ var Oe = Object.values || function(e) {
|
|
|
664
664
|
function o(n, r) {
|
|
665
665
|
var t;
|
|
666
666
|
t = e.call(this, n, r) || this;
|
|
667
|
-
var i = t.handleExited.bind(
|
|
667
|
+
var i = t.handleExited.bind(he(t));
|
|
668
668
|
return t.state = {
|
|
669
669
|
contextValue: {
|
|
670
670
|
isMounting: !0
|
|
@@ -685,7 +685,7 @@ var Oe = Object.values || function(e) {
|
|
|
685
685
|
}, o.getDerivedStateFromProps = function(r, t) {
|
|
686
686
|
var i = t.children, a = t.handleExited, s = t.firstRender;
|
|
687
687
|
return {
|
|
688
|
-
children: s ?
|
|
688
|
+
children: s ? De(r, a) : Oe(r, i, a),
|
|
689
689
|
firstRender: !1
|
|
690
690
|
};
|
|
691
691
|
}, l.handleExited = function(r, t) {
|
|
@@ -697,14 +697,14 @@ var Oe = Object.values || function(e) {
|
|
|
697
697
|
};
|
|
698
698
|
}));
|
|
699
699
|
}, l.render = function() {
|
|
700
|
-
var r = this.props, t = r.component, i = r.childFactory, a = L(r, ["component", "childFactory"]), s = this.state.contextValue, c =
|
|
701
|
-
return delete a.appear, delete a.enter, delete a.exit, t === null ? /* @__PURE__ */
|
|
700
|
+
var r = this.props, t = r.component, i = r.childFactory, a = L(r, ["component", "childFactory"]), s = this.state.contextValue, c = ke(this.state.children).map(i);
|
|
701
|
+
return delete a.appear, delete a.enter, delete a.exit, t === null ? /* @__PURE__ */ E.createElement(I.Provider, {
|
|
702
702
|
value: s
|
|
703
|
-
}, c) : /* @__PURE__ */
|
|
703
|
+
}, c) : /* @__PURE__ */ E.createElement(I.Provider, {
|
|
704
704
|
value: s
|
|
705
|
-
}, /* @__PURE__ */
|
|
705
|
+
}, /* @__PURE__ */ E.createElement(t, a, c));
|
|
706
706
|
}, o;
|
|
707
|
-
}(
|
|
707
|
+
}(E.Component);
|
|
708
708
|
j.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
709
709
|
/**
|
|
710
710
|
* `<TransitionGroup>` renders a `<div>` by default. You can change this
|
|
@@ -758,12 +758,12 @@ j.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
758
758
|
*/
|
|
759
759
|
childFactory: u.func
|
|
760
760
|
} : {};
|
|
761
|
-
j.defaultProps =
|
|
761
|
+
j.defaultProps = $e;
|
|
762
762
|
const Y = (e) => {
|
|
763
763
|
if (e.size === "small") return e.theme.typography.medium.fontSize;
|
|
764
764
|
if (e.size === "medium") return e.theme.typography.large.fontSize;
|
|
765
765
|
if (e.size === "large") return "1.3125rem";
|
|
766
|
-
},
|
|
766
|
+
}, we = (e) => {
|
|
767
767
|
if (e === "small") return "0.40625rem 0.375rem";
|
|
768
768
|
if (e === "medium") return "0.46875rem 0.375rem";
|
|
769
769
|
if (e === "large") return "0.53125rem 0.375rem";
|
|
@@ -771,7 +771,7 @@ const Y = (e) => {
|
|
|
771
771
|
if (e === "small") return "0.625rem 0.5rem 0.375rem 0.5rem";
|
|
772
772
|
if (e === "medium") return "0.71875rem 0.5625rem 0.375rem 0.5625rem";
|
|
773
773
|
if (e === "large") return "0.78125rem 0.625rem 0.375rem 0.625rem";
|
|
774
|
-
},
|
|
774
|
+
}, Re = x.div`
|
|
775
775
|
display: inline-block;
|
|
776
776
|
position: relative;
|
|
777
777
|
box-sizing: border-box;
|
|
@@ -780,11 +780,11 @@ const Y = (e) => {
|
|
|
780
780
|
border-radius: 0.1875rem;
|
|
781
781
|
width: 100%;
|
|
782
782
|
transition: all 250ms ease;
|
|
783
|
-
`,
|
|
783
|
+
`, Ie = x.div`
|
|
784
784
|
padding: 0.15rem;
|
|
785
785
|
transition: all 250ms ease;
|
|
786
786
|
display: inline-block;
|
|
787
|
-
`,
|
|
787
|
+
`, ze = x.div`
|
|
788
788
|
display: inline-block;
|
|
789
789
|
margin: 0.125rem;
|
|
790
790
|
flex-grow: 1;
|
|
@@ -793,14 +793,14 @@ const Y = (e) => {
|
|
|
793
793
|
& > div {
|
|
794
794
|
width: 100%;
|
|
795
795
|
}
|
|
796
|
-
`,
|
|
796
|
+
`, _e = x.div`
|
|
797
797
|
display: inline-block;
|
|
798
798
|
box-sizing: border-box;
|
|
799
799
|
margin: 0.125rem;
|
|
800
800
|
margin-left: 0.25rem;
|
|
801
801
|
flex-grow: 1;
|
|
802
802
|
transition: all 250ms ease;
|
|
803
|
-
`,
|
|
803
|
+
`, Me = x.input`
|
|
804
804
|
width: 100%;
|
|
805
805
|
transition: all 250ms ease;
|
|
806
806
|
text-decoration: none;
|
|
@@ -809,22 +809,22 @@ const Y = (e) => {
|
|
|
809
809
|
box-sizing: border-box;
|
|
810
810
|
outline: none;
|
|
811
811
|
border: none;
|
|
812
|
-
padding: ${(e) =>
|
|
812
|
+
padding: ${(e) => we(e.size)};
|
|
813
813
|
background-color: transparent;
|
|
814
814
|
font-family: ${(e) => e.theme.typography.fontFamily};
|
|
815
815
|
font-size: ${(e) => e.theme.typography[e.size].fontSize};
|
|
816
816
|
color: ${(e) => e.theme.palette[e.color].textDark};
|
|
817
817
|
border-radius: 0.1875rem;
|
|
818
|
-
`,
|
|
818
|
+
`, Ae = x.div`
|
|
819
819
|
display: flex;
|
|
820
820
|
width: 100%;
|
|
821
|
-
`,
|
|
821
|
+
`, Pe = x.div`
|
|
822
822
|
padding: ${(e) => Z(e.size)};
|
|
823
823
|
color: ${(e) => e.disabled ? e.theme.palette.gray[800] : e.theme.palette[e.color].main};
|
|
824
824
|
font-size: ${(e) => Y(e)};
|
|
825
825
|
background-color: whitesmoke;
|
|
826
826
|
transition: all 250ms ease;
|
|
827
|
-
`,
|
|
827
|
+
`, Le = x.div`
|
|
828
828
|
padding: ${(e) => Z(e.size)};
|
|
829
829
|
color: ${(e) => e.disabled ? e.theme.palette.gray[800] : e.theme.palette[e.color].main};
|
|
830
830
|
font-size: ${(e) => Y(e)};
|
|
@@ -833,7 +833,7 @@ const Y = (e) => {
|
|
|
833
833
|
cursor: ${(e) => e.disabled === !0 ? "default" : "pointer"};
|
|
834
834
|
margin-right: 0;
|
|
835
835
|
margin-left: auto;
|
|
836
|
-
`,
|
|
836
|
+
`, Ve = x.div`
|
|
837
837
|
position: absolute;
|
|
838
838
|
background-color: white;
|
|
839
839
|
z-index: 1;
|
|
@@ -846,7 +846,7 @@ const Y = (e) => {
|
|
|
846
846
|
display: flex;
|
|
847
847
|
flex-direction: column;
|
|
848
848
|
transition: all 250ms ease;
|
|
849
|
-
`,
|
|
849
|
+
`, Fe = x.div`
|
|
850
850
|
font-family: ${(e) => e.theme.typography.fontFamily};
|
|
851
851
|
font-size: ${(e) => e.theme.typography[e.size].fontSize};
|
|
852
852
|
padding: 0.375rem;
|
|
@@ -860,9 +860,9 @@ const Y = (e) => {
|
|
|
860
860
|
}
|
|
861
861
|
`, K = (e) => {
|
|
862
862
|
const { items: o, suggestions: l, onChange: n, id: r, disabled: t, className: i, size: a, color: s } = e, [c, p] = M(""), [m, h] = M(!1), [b, k] = M(0);
|
|
863
|
-
let W =
|
|
864
|
-
const { theme: ee } =
|
|
865
|
-
let
|
|
863
|
+
let W = ce();
|
|
864
|
+
const { theme: ee } = fe();
|
|
865
|
+
let g = { size: a, color: s, theme: ee };
|
|
866
866
|
const te = () => ("10000000-1000-4000-8000" + -1e11).replace(
|
|
867
867
|
/[018]/g,
|
|
868
868
|
(d) => (d ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> d / 4).toString(16)
|
|
@@ -897,10 +897,10 @@ const Y = (e) => {
|
|
|
897
897
|
f[d] = { ...f[d], active: !f[d].active }, n(r, f, f[d]);
|
|
898
898
|
}, se = () => {
|
|
899
899
|
if (m)
|
|
900
|
-
return /* @__PURE__ */ v(
|
|
901
|
-
|
|
900
|
+
return /* @__PURE__ */ v(Ee, { children: /* @__PURE__ */ v(Ve, { ...g, children: l.map((d, f) => /* @__PURE__ */ X(
|
|
901
|
+
Fe,
|
|
902
902
|
{
|
|
903
|
-
...
|
|
903
|
+
...g,
|
|
904
904
|
key: f,
|
|
905
905
|
onMouseDown: () => B(d),
|
|
906
906
|
hover: b === f
|
|
@@ -908,22 +908,22 @@ const Y = (e) => {
|
|
|
908
908
|
`${d.description} - ${d.operationDescription}`
|
|
909
909
|
)) }) });
|
|
910
910
|
};
|
|
911
|
-
return /* @__PURE__ */ _(
|
|
912
|
-
/* @__PURE__ */ _(
|
|
913
|
-
/* @__PURE__ */ v(
|
|
914
|
-
/* @__PURE__ */ _(
|
|
911
|
+
return /* @__PURE__ */ _(Re, { className: i, ...g, children: [
|
|
912
|
+
/* @__PURE__ */ _(Ae, { ...g, children: [
|
|
913
|
+
/* @__PURE__ */ v(Pe, { ...g, disabled: t, children: /* @__PURE__ */ v("i", { className: "fas fa-search fa-fw" }) }),
|
|
914
|
+
/* @__PURE__ */ _(Ie, { ...g, children: [
|
|
915
915
|
/* @__PURE__ */ v(j, { component: null, children: o.map((d, f) => /* @__PURE__ */ v(U, { timeout: 200, classNames: "item", children: /* @__PURE__ */ X(
|
|
916
|
-
|
|
916
|
+
ze,
|
|
917
917
|
{
|
|
918
|
-
...
|
|
918
|
+
...g,
|
|
919
919
|
key: f,
|
|
920
920
|
first: f === 0,
|
|
921
921
|
title: `${d.description} - ${d.operationDescription}: ${d.value}`
|
|
922
922
|
},
|
|
923
923
|
/* @__PURE__ */ v(
|
|
924
|
-
|
|
924
|
+
de,
|
|
925
925
|
{
|
|
926
|
-
...
|
|
926
|
+
...g,
|
|
927
927
|
id: d.id,
|
|
928
928
|
text: d.description,
|
|
929
929
|
additionalInfo: d.value,
|
|
@@ -934,10 +934,10 @@ const Y = (e) => {
|
|
|
934
934
|
}
|
|
935
935
|
)
|
|
936
936
|
) }, f)) }),
|
|
937
|
-
/* @__PURE__ */ v(
|
|
938
|
-
|
|
937
|
+
/* @__PURE__ */ v(_e, { ...g, children: /* @__PURE__ */ v(
|
|
938
|
+
Me,
|
|
939
939
|
{
|
|
940
|
-
...
|
|
940
|
+
...g,
|
|
941
941
|
ref: W,
|
|
942
942
|
value: c,
|
|
943
943
|
onBlur: re,
|
|
@@ -947,7 +947,7 @@ const Y = (e) => {
|
|
|
947
947
|
}
|
|
948
948
|
) })
|
|
949
949
|
] }),
|
|
950
|
-
/* @__PURE__ */ v(
|
|
950
|
+
/* @__PURE__ */ v(Le, { ...g, disabled: t, children: /* @__PURE__ */ v(
|
|
951
951
|
"i",
|
|
952
952
|
{
|
|
953
953
|
className: "fas fa-times fa-fw",
|
package/dist/Separator.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const i=require("react/jsx-runtime"),l=require("react"),r=require("./index-
|
|
1
|
+
"use strict";const i=require("react/jsx-runtime"),l=require("react"),r=require("./index-BIlhCoy2.cjs"),m=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),u=require("./utils-DTAPpJXU.cjs"),p=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),d=m.newStyled.div`
|
|
2
2
|
height: 1px;
|
|
3
3
|
background-color: ${e=>u.getColorRgbaValue(e.theme,"MenuItem","default","enabled","separator")};
|
|
4
4
|
margin-left: -0.25rem;
|
package/dist/Separator.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as p } from "react/jsx-runtime";
|
|
2
|
-
import l from "react";
|
|
3
|
-
import { P as r } from "./index-
|
|
4
|
-
import { n } from "./emotion-styled.browser.esm-
|
|
5
|
-
import {
|
|
6
|
-
import { u as c } from "./emotion-element-5486c51c.browser.esm-
|
|
2
|
+
import { forwardRef as l } from "react";
|
|
3
|
+
import { P as r } from "./index-BYnWp42a.js";
|
|
4
|
+
import { n } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
5
|
+
import { a as i } from "./utils-C52T57HO.js";
|
|
6
|
+
import { u as c } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
|
|
7
7
|
const f = n.div`
|
|
8
8
|
height: 1px;
|
|
9
9
|
background-color: ${(e) => i(
|
|
@@ -15,14 +15,14 @@ const f = n.div`
|
|
|
15
15
|
)};
|
|
16
16
|
margin-left: -0.25rem;
|
|
17
17
|
margin-right: -0.25rem;
|
|
18
|
-
`, d = l
|
|
19
|
-
const { className:
|
|
18
|
+
`, d = l((e, o) => {
|
|
19
|
+
const { className: t = "", style: a = {}, ...s } = e, m = c();
|
|
20
20
|
return /* @__PURE__ */ p(
|
|
21
21
|
f,
|
|
22
22
|
{
|
|
23
|
-
ref:
|
|
23
|
+
ref: o,
|
|
24
24
|
theme: m,
|
|
25
|
-
className: "lnc-ui-dropdown-separator " +
|
|
25
|
+
className: "lnc-ui-dropdown-separator " + t,
|
|
26
26
|
style: a,
|
|
27
27
|
...s
|
|
28
28
|
}
|
package/dist/Sidebar.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),a=require("react"),i=require("./index-
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),a=require("react"),i=require("./index-BIlhCoy2.cjs"),l=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),x=require("./Icon.cjs"),g=require("./utils-DTAPpJXU.cjs"),y=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),_=l.newStyled.aside`
|
|
2
2
|
direction: ${e=>e.placement=="right"?"rtl":"ltr"};
|
|
3
3
|
position: relative;
|
|
4
4
|
&& {
|
package/dist/Sidebar.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as g, jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import S,
|
|
3
|
-
import { P as s } from "./index-
|
|
4
|
-
import { n as l } from "./emotion-styled.browser.esm-
|
|
5
|
-
import
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
2
|
+
import { forwardRef as S, useState as x, useEffect as C } from "react";
|
|
3
|
+
import { P as s } from "./index-BYnWp42a.js";
|
|
4
|
+
import { n as l } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
5
|
+
import y from "./Icon.js";
|
|
6
|
+
import { u as $ } from "./utils-C52T57HO.js";
|
|
7
|
+
import { u as _ } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
|
|
8
8
|
const v = l.aside`
|
|
9
9
|
direction: ${(e) => e.placement == "right" ? "rtl" : "ltr"};
|
|
10
10
|
position: relative;
|
|
@@ -43,17 +43,17 @@ const v = l.aside`
|
|
|
43
43
|
transition: transform 0.6s ease;
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
-
`, m = S
|
|
46
|
+
`, m = S((e, f) => {
|
|
47
47
|
const {
|
|
48
48
|
placement: r,
|
|
49
49
|
collapsed: a = void 0,
|
|
50
50
|
hideCollapseButton: h = !1,
|
|
51
51
|
size: n = "15rem",
|
|
52
|
-
children:
|
|
52
|
+
children: b,
|
|
53
53
|
className: d,
|
|
54
54
|
__TYPE__: T = "Sidebar",
|
|
55
|
-
...
|
|
56
|
-
} = e, c =
|
|
55
|
+
...u
|
|
56
|
+
} = e, c = _(), p = $(), [t, i] = x();
|
|
57
57
|
return C(() => {
|
|
58
58
|
a != null ? i(a) : p == "XS" || p == "S" ? i(!0) : i(!1);
|
|
59
59
|
}, [a]), /* @__PURE__ */ g(
|
|
@@ -65,7 +65,7 @@ const v = l.aside`
|
|
|
65
65
|
size: n,
|
|
66
66
|
theme: c,
|
|
67
67
|
ref: f,
|
|
68
|
-
...
|
|
68
|
+
...u,
|
|
69
69
|
children: [
|
|
70
70
|
!h && /* @__PURE__ */ o(
|
|
71
71
|
z,
|
|
@@ -75,7 +75,7 @@ const v = l.aside`
|
|
|
75
75
|
sidebarCollapsed: t,
|
|
76
76
|
theme: c,
|
|
77
77
|
children: /* @__PURE__ */ o("span", { children: /* @__PURE__ */ o(
|
|
78
|
-
|
|
78
|
+
y,
|
|
79
79
|
{
|
|
80
80
|
className: "sidebar-icon-lnc",
|
|
81
81
|
icon: r == "right" ? "angle-right" : "angle-left",
|
|
@@ -90,7 +90,7 @@ const v = l.aside`
|
|
|
90
90
|
className: "lnc-sidebar-content",
|
|
91
91
|
sidebarCollapsed: t,
|
|
92
92
|
size: n,
|
|
93
|
-
children:
|
|
93
|
+
children: b
|
|
94
94
|
}
|
|
95
95
|
)
|
|
96
96
|
]
|
package/dist/Spinner.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const s=require("react/jsx-runtime")
|
|
1
|
+
"use strict";const s=require("react/jsx-runtime"),n=require("./index-BIlhCoy2.cjs"),i=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),u=require("./emotion-react.browser.esm-D7h2t2Bz.cjs"),t=require("./utils-DTAPpJXU.cjs"),g=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),p={small:"0.6rem",medium:"0.7rem",large:"0.8rem"},b=(e,r)=>{if(e==="small")return`
|
|
2
2
|
width: ${r.sizes.small};
|
|
3
3
|
height: ${r.sizes.small};
|
|
4
4
|
`;if(e==="medium")return`
|
package/dist/Spinner.js
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { jsxs as c, jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import "
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { u as h } from "./emotion-element-5486c51c.browser.esm-CSejtOeT.js";
|
|
2
|
+
import { P as n } from "./index-BYnWp42a.js";
|
|
3
|
+
import { n as s } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
4
|
+
import { k as p } from "./emotion-react.browser.esm-CN-s34fZ.js";
|
|
5
|
+
import { g, a as i } from "./utils-C52T57HO.js";
|
|
6
|
+
import { u as h } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
|
|
8
7
|
const u = {
|
|
9
8
|
small: "0.6rem",
|
|
10
9
|
medium: "0.7rem",
|
|
11
10
|
large: "0.8rem"
|
|
12
|
-
},
|
|
11
|
+
}, f = (e, r) => {
|
|
13
12
|
if (e === "small")
|
|
14
13
|
return `
|
|
15
14
|
width: ${r.sizes.small};
|
|
@@ -25,7 +24,7 @@ const u = {
|
|
|
25
24
|
width: ${r.sizes.large};
|
|
26
25
|
height: ${r.sizes.large};
|
|
27
26
|
`;
|
|
28
|
-
},
|
|
27
|
+
}, b = p`
|
|
29
28
|
to {
|
|
30
29
|
transform: rotate(360deg);
|
|
31
30
|
}
|
|
@@ -42,7 +41,7 @@ const u = {
|
|
|
42
41
|
transform: translate(-50%, -50%);
|
|
43
42
|
${(e) => g(e.theme, "Spinner", e.size, "enabled")};
|
|
44
43
|
font-size: ${(e) => u[e.size]};
|
|
45
|
-
color: ${(e) =>
|
|
44
|
+
color: ${(e) => i(
|
|
46
45
|
e.theme,
|
|
47
46
|
"Spinner",
|
|
48
47
|
e.color,
|
|
@@ -52,8 +51,8 @@ const u = {
|
|
|
52
51
|
}
|
|
53
52
|
`, $ = s.div`
|
|
54
53
|
display: inline-block;
|
|
55
|
-
${(e) =>
|
|
56
|
-
border: ${(e) => `0.3125rem solid ${
|
|
54
|
+
${(e) => f(e.size, e.theme)}
|
|
55
|
+
border: ${(e) => `0.3125rem solid ${i(
|
|
57
56
|
e.theme,
|
|
58
57
|
"Spinner",
|
|
59
58
|
e.color,
|
|
@@ -61,14 +60,14 @@ const u = {
|
|
|
61
60
|
"unfilled"
|
|
62
61
|
)}`};
|
|
63
62
|
border-radius: 50%;
|
|
64
|
-
border-top-color: ${(e) =>
|
|
63
|
+
border-top-color: ${(e) => i(
|
|
65
64
|
e.theme,
|
|
66
65
|
"Spinner",
|
|
67
66
|
e.color,
|
|
68
67
|
"enabled",
|
|
69
68
|
"background"
|
|
70
69
|
)};
|
|
71
|
-
border-right-color: ${(e) =>
|
|
70
|
+
border-right-color: ${(e) => i(
|
|
72
71
|
e.theme,
|
|
73
72
|
"Spinner",
|
|
74
73
|
e.color,
|
|
@@ -76,9 +75,15 @@ const u = {
|
|
|
76
75
|
"background"
|
|
77
76
|
)};
|
|
78
77
|
|
|
79
|
-
animation: ${
|
|
78
|
+
animation: ${b} 0.8s ease-in-out infinite;
|
|
80
79
|
`, z = (e) => {
|
|
81
|
-
const {
|
|
80
|
+
const {
|
|
81
|
+
label: r,
|
|
82
|
+
className: a = "",
|
|
83
|
+
style: l = {},
|
|
84
|
+
size: m = "small",
|
|
85
|
+
color: d = "primary"
|
|
86
|
+
} = e, t = { theme: h(), size: m, color: d };
|
|
82
87
|
return /* @__PURE__ */ c(
|
|
83
88
|
y,
|
|
84
89
|
{
|
|
@@ -94,11 +99,11 @@ const u = {
|
|
|
94
99
|
);
|
|
95
100
|
};
|
|
96
101
|
z.propTypes = {
|
|
97
|
-
label:
|
|
98
|
-
className:
|
|
99
|
-
style:
|
|
100
|
-
size:
|
|
101
|
-
color:
|
|
102
|
+
label: n.string,
|
|
103
|
+
className: n.string,
|
|
104
|
+
style: n.object,
|
|
105
|
+
size: n.oneOf(["small", "medium", "large"]),
|
|
106
|
+
color: n.oneOf([
|
|
102
107
|
"primary",
|
|
103
108
|
"secondary",
|
|
104
109
|
"success",
|
package/dist/Surface.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use strict";const x=require("react/jsx-runtime")
|
|
1
|
+
"use strict";const x=require("react/jsx-runtime"),c=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),r=require("./index-BIlhCoy2.cjs"),s=require("./utils-DTAPpJXU.cjs"),p=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),g=c.newStyled.div`
|
|
2
2
|
padding: ${e=>e.padding};
|
|
3
3
|
box-shadow: ${e=>s.getBoxShadowValue(e.theme,e.boxShadow)};
|
|
4
4
|
border-radius: ${e=>s.getBorderRadiusValueWithUnits(e.theme,e.borderRadius)};
|
|
5
5
|
width: ${e=>e.fullWidth?"100%":"fit-content"};
|
|
6
6
|
border-top: 1px solid rgba(0, 0, 0, 0.04);
|
|
7
|
-
`,o=({children:e,style:t={},className:d="",boxShadow:
|
|
7
|
+
`,o=({children:e,style:t={},className:d="",boxShadow:n="s",borderRadius:i="regular",padding:l="s",fullWidth:a=!1})=>{const u=p.useTheme(),m={xs:"0.25rem",s:"0.5rem",m:"0.75rem",l:"1rem",xl:"1.25rem",xxl:"1.5rem"};return x.jsx(g,{theme:u,style:t,className:"lnc-ui-surface "+d,borderRadius:i,boxShadow:n,padding:m[l],fullWidth:a,children:e})};o.propTypes={borderRadius:r.PropTypes.oneOf(["slight","regular","edged","curved","none"]),boxShadow:r.PropTypes.oneOf(["xs","s","m","l","xl","xxl"]),paddign:r.PropTypes.oneOf(["xs","s","m","l","xl","xxl"]),fullWidth:r.PropTypes.bool,className:r.PropTypes.string,style:r.PropTypes.object};module.exports=o;
|