@lanaco/lnc-react-ui 4.0.2 → 4.0.3
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/bundle-visualization.html +4842 -0
- 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 +23 -25
- 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 +1 -1
- package/dist/Button.js +21 -21
- package/dist/ButtonGroup.cjs +1 -1
- package/dist/ButtonGroup.js +10 -6
- package/dist/CheckBoxInput.cjs +1 -1
- package/dist/CheckBoxInput.js +4 -4
- package/dist/Chip.cjs +1 -1
- package/dist/Chip.js +9 -9
- package/dist/ColorInput.cjs +1 -1
- package/dist/ColorInput.js +5 -5
- package/dist/ConfirmationForm.cjs +5 -5
- package/dist/ConfirmationForm.js +59 -59
- 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 +2 -2
- package/dist/DateInput.cjs +4 -4
- package/dist/DateInput.js +491 -491
- package/dist/DecimalInput.cjs +1 -1
- package/dist/DecimalInput.js +5 -5
- package/dist/DetailsView.cjs +4 -4
- package/dist/DetailsView.js +40 -40
- package/dist/DoubleRangeSlider.cjs +1 -1
- package/dist/DoubleRangeSlider.js +4 -4
- package/dist/DragAndDropFile.cjs +1 -1
- package/dist/DragAndDropFile.js +6 -6
- package/dist/DragDropFiles.cjs +1 -1
- package/dist/DragDropFiles.js +4 -4
- package/dist/Drawer.cjs +1 -1
- package/dist/Drawer.js +15 -15
- package/dist/Dropdown.cjs +1 -1
- package/dist/Dropdown.js +6 -6
- package/dist/DropdownItem.cjs +1 -1
- package/dist/DropdownItem.js +4 -4
- package/dist/DropdownLookup.cjs +1 -1
- package/dist/DropdownLookup.js +6 -6
- 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 +4 -4
- 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 +3 -3
- 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 +1 -1
- package/dist/Grid.js +2 -2
- package/dist/GridItem.cjs +1 -1
- package/dist/GridItem.js +2 -2
- package/dist/Header.cjs +1 -1
- package/dist/Header.js +7 -7
- package/dist/Icon.cjs +1 -1
- package/dist/Icon.js +33 -10
- package/dist/IconButton.cjs +5 -5
- package/dist/IconButton.js +33 -33
- package/dist/Kanban.cjs +12 -12
- package/dist/Kanban.js +948 -936
- 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 +11 -11
- package/dist/Modal.cjs +1 -1
- package/dist/Modal.js +7 -7
- package/dist/MultiSelectDropdown.cjs +1 -1
- package/dist/MultiSelectDropdown.js +4 -4
- package/dist/MultiSelectDropdownLookup.cjs +1 -1
- package/dist/MultiSelectDropdownLookup.js +4 -4
- package/dist/NestedDropdownItem.cjs +1 -1
- package/dist/NestedDropdownItem.js +18 -18
- package/dist/NestedMenuItem.cjs +1 -1
- package/dist/NestedMenuItem.js +9 -9
- 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 +5 -5
- package/dist/PageLayout.cjs +2 -2
- package/dist/PageLayout.js +27 -27
- package/dist/Pagination.cjs +12 -0
- package/dist/Pagination.js +248 -0
- package/dist/PasswordInput.cjs +1 -1
- package/dist/PasswordInput.js +14 -14
- 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 +3 -3
- package/dist/RadioInput.cjs +1 -1
- package/dist/RadioInput.js +4 -4
- package/dist/RangeSlider.cjs +1 -1
- package/dist/RangeSlider.js +4 -4
- package/dist/SearchBar.cjs +1 -1
- package/dist/SearchBar.js +6 -6
- package/dist/Separator.cjs +1 -1
- package/dist/Separator.js +9 -9
- package/dist/Sidebar.cjs +1 -1
- package/dist/Sidebar.js +4 -4
- 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 +4 -4
- 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 +3 -3
- package/dist/TextAreaInput.cjs +1 -1
- package/dist/TextAreaInput.js +5 -5
- package/dist/TextInput.cjs +1 -1
- package/dist/TextInput.js +5 -5
- package/dist/ThemeProvider.cjs +1 -1
- package/dist/ThemeProvider.js +5 -5
- package/dist/TimeInput.cjs +1 -1
- package/dist/TimeInput.js +9 -9
- package/dist/Toggle.cjs +1 -1
- package/dist/Toggle.js +4 -4
- package/dist/TreeMenu.cjs +1 -1
- package/dist/TreeMenu.js +2 -2
- 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/{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/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/Breadcrumbs.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as o, jsxs as u, Fragment as z } from "react/jsx-runtime";
|
|
2
|
-
import A,
|
|
3
|
-
import { P as t } from "./index-
|
|
4
|
-
import { n as c } from "./emotion-styled.browser.esm-
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import { u as
|
|
8
|
-
const
|
|
2
|
+
import { forwardRef as A, useState as N } from "react";
|
|
3
|
+
import { P as t } from "./index-BYnWp42a.js";
|
|
4
|
+
import { n as c } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
5
|
+
import { g as O, a as P } from "./utils-C52T57HO.js";
|
|
6
|
+
import v from "./Icon.js";
|
|
7
|
+
import { u as R } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
|
|
8
|
+
const $ = c.div`
|
|
9
9
|
display: inline-flex;
|
|
10
10
|
flex-wrap: wrap;
|
|
11
11
|
${(r) => O(
|
|
@@ -21,24 +21,24 @@ const _ = c.div`
|
|
|
21
21
|
"enabled",
|
|
22
22
|
"text"
|
|
23
23
|
)};
|
|
24
|
-
`,
|
|
24
|
+
`, k = c.div`
|
|
25
25
|
cursor: pointer;
|
|
26
|
-
`,
|
|
26
|
+
`, F = c.span``, V = A((r, i) => {
|
|
27
27
|
const {
|
|
28
28
|
separator: a = "/",
|
|
29
|
-
maxItems:
|
|
30
|
-
itemsAfterCollapse:
|
|
29
|
+
maxItems: y = 8,
|
|
30
|
+
itemsAfterCollapse: b = 1,
|
|
31
31
|
itemsBeforeCollapse: C = 1,
|
|
32
32
|
//----------------
|
|
33
33
|
className: B = "",
|
|
34
34
|
style: I = {},
|
|
35
35
|
color: h = "neutral",
|
|
36
|
-
size:
|
|
37
|
-
children:
|
|
38
|
-
...
|
|
36
|
+
size: w = "small",
|
|
37
|
+
children: T,
|
|
38
|
+
...d
|
|
39
39
|
} = r, S = {
|
|
40
|
-
theme:
|
|
41
|
-
size:
|
|
40
|
+
theme: R(),
|
|
41
|
+
size: w,
|
|
42
42
|
color: h,
|
|
43
43
|
className: "lnc-ui-breadcrumbs " + B,
|
|
44
44
|
style: I
|
|
@@ -56,17 +56,17 @@ const _ = c.div`
|
|
|
56
56
|
child: e
|
|
57
57
|
}
|
|
58
58
|
) : e == null ? void 0 : e.map(
|
|
59
|
-
(
|
|
59
|
+
(g, s) => n <= e.length && f == !0 ? m - 1 >= s || e.length - p <= s ? /* @__PURE__ */ o(
|
|
60
60
|
l,
|
|
61
61
|
{
|
|
62
62
|
index: s,
|
|
63
63
|
length: e.length,
|
|
64
64
|
separator: a,
|
|
65
|
-
child:
|
|
65
|
+
child: g
|
|
66
66
|
},
|
|
67
67
|
s
|
|
68
|
-
) : m == s && /* @__PURE__ */ u(
|
|
69
|
-
/* @__PURE__ */ o(
|
|
68
|
+
) : m == s && /* @__PURE__ */ u(k, { onClick: (D) => j(!f), children: [
|
|
69
|
+
/* @__PURE__ */ o(v, { icon: "ellipsis" }),
|
|
70
70
|
a,
|
|
71
71
|
" "
|
|
72
72
|
] }, s) : /* @__PURE__ */ o(
|
|
@@ -75,11 +75,11 @@ const _ = c.div`
|
|
|
75
75
|
index: s,
|
|
76
76
|
length: e.length,
|
|
77
77
|
separator: a,
|
|
78
|
-
child:
|
|
78
|
+
child: g
|
|
79
79
|
},
|
|
80
80
|
s
|
|
81
81
|
)
|
|
82
|
-
), l = ({ index: n, length: p, separator: m, child: e }) => /* @__PURE__ */ u(
|
|
82
|
+
), l = ({ index: n, length: p, separator: m, child: e }) => /* @__PURE__ */ u(F, { children: [
|
|
83
83
|
e,
|
|
84
84
|
n + 1 !== p && /* @__PURE__ */ u(z, { children: [
|
|
85
85
|
" ",
|
|
@@ -87,17 +87,17 @@ const _ = c.div`
|
|
|
87
87
|
" "
|
|
88
88
|
] })
|
|
89
89
|
] });
|
|
90
|
-
return /* @__PURE__ */ o(
|
|
90
|
+
return /* @__PURE__ */ o($, { ref: i, ...S, ...d, children: /* @__PURE__ */ o(
|
|
91
91
|
x,
|
|
92
92
|
{
|
|
93
|
-
maxItems:
|
|
94
|
-
itemsAfterCollapse:
|
|
93
|
+
maxItems: y,
|
|
94
|
+
itemsAfterCollapse: b,
|
|
95
95
|
itemsBeforeCollapse: C,
|
|
96
|
-
children:
|
|
96
|
+
children: T
|
|
97
97
|
}
|
|
98
98
|
) });
|
|
99
99
|
});
|
|
100
|
-
|
|
100
|
+
V.propTypes = {
|
|
101
101
|
separator: t.oneOfType([t.string, t.element]),
|
|
102
102
|
/**
|
|
103
103
|
* Specifies the maximum number of breadcrumbs to display. When there are more than the maximum number, only the first itemsBeforeCollapse and last itemsAfterCollapse will be shown, with an ellipsis in between
|
|
@@ -127,5 +127,5 @@ F.propTypes = {
|
|
|
127
127
|
size: t.oneOf(["small", "medium", "large"])
|
|
128
128
|
};
|
|
129
129
|
export {
|
|
130
|
-
|
|
130
|
+
V as default
|
|
131
131
|
};
|
package/dist/Button.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const n=require("react/jsx-runtime"),U=require("react"),o=require("./index-
|
|
1
|
+
"use strict";const n=require("react/jsx-runtime"),U=require("react"),o=require("./index-BIlhCoy2.cjs");;/* empty css */const C=require("./index-DAOBjHnD.cjs"),r=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),t=require("./utils-DTAPpJXU.cjs"),V=require("./Icon.cjs"),W=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),B={small:{regular:"1rem",icon:"0.75rem",justIcon:"0.5rem"},medium:{regular:"1.5rem",icon:"1rem",justIcon:"0.5rem"},large:{regular:"1.5rem",icon:"1rem",justIcon:"0.5rem"}},f=e=>`
|
|
2
2
|
outline: none;
|
|
3
3
|
display: inline-flex;
|
|
4
4
|
flex-direction: row;
|
package/dist/Button.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as i, jsxs as K, Fragment as W } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import { P as o } from "./index-
|
|
2
|
+
import { forwardRef as E } from "react";
|
|
3
|
+
import { P as o } from "./index-BYnWp42a.js";
|
|
4
4
|
/* empty css */
|
|
5
|
-
import { i as y } from "./index-
|
|
6
|
-
import { n as r } from "./emotion-styled.browser.esm-
|
|
7
|
-
import {
|
|
5
|
+
import { i as y } from "./index-CvebWhtp.js";
|
|
6
|
+
import { n as r } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
7
|
+
import { g as x, a as t, d as c, h as T, e as z, b as q } from "./utils-C52T57HO.js";
|
|
8
8
|
import j from "./Icon.js";
|
|
9
|
-
import { u as
|
|
9
|
+
import { u as A } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
|
|
10
10
|
const k = {
|
|
11
11
|
small: {
|
|
12
12
|
regular: "1rem",
|
|
@@ -34,16 +34,16 @@ const k = {
|
|
|
34
34
|
cursor: pointer;
|
|
35
35
|
color: ${!e.disabled && "white"};
|
|
36
36
|
|
|
37
|
-
border-radius: ${
|
|
37
|
+
border-radius: ${q(
|
|
38
38
|
e.theme,
|
|
39
39
|
e.borderRadius
|
|
40
40
|
)};
|
|
41
41
|
|
|
42
42
|
padding-left: ${e.hasLeadingIcon ? k[e.size].icon : k[e.size].regular};
|
|
43
43
|
padding-right: ${e.hasTrailingIcon ? k[e.size].icon : k[e.size].regular};
|
|
44
|
-
`,
|
|
44
|
+
`, G = r.span`
|
|
45
45
|
padding-right: ${(e) => e.size === "small" ? "0.25rem" : "0.5rem"};
|
|
46
|
-
`,
|
|
46
|
+
`, H = r.span`
|
|
47
47
|
padding-left: ${(e) => e.size === "small" ? "0.25rem" : "0.5rem"};
|
|
48
48
|
`, w = r.button`
|
|
49
49
|
${(e) => I(e)}
|
|
@@ -143,7 +143,7 @@ const k = {
|
|
|
143
143
|
"text"
|
|
144
144
|
)};
|
|
145
145
|
}
|
|
146
|
-
`,
|
|
146
|
+
`, J = r.button`
|
|
147
147
|
${(e) => I(e)}
|
|
148
148
|
|
|
149
149
|
min-height: ${(e) => c(e.theme, e.size)};
|
|
@@ -341,7 +341,7 @@ const k = {
|
|
|
341
341
|
"backgroundOpacity"
|
|
342
342
|
)};
|
|
343
343
|
}
|
|
344
|
-
`,
|
|
344
|
+
`, M = r(R)`
|
|
345
345
|
border: 1px solid
|
|
346
346
|
${(e) => t(
|
|
347
347
|
e.theme,
|
|
@@ -351,7 +351,7 @@ const k = {
|
|
|
351
351
|
"border",
|
|
352
352
|
"borderOpacity"
|
|
353
353
|
)};
|
|
354
|
-
`,
|
|
354
|
+
`, Q = E((e, d) => {
|
|
355
355
|
const {
|
|
356
356
|
text: v = "",
|
|
357
357
|
iconStyle: O = "solid",
|
|
@@ -366,8 +366,8 @@ const k = {
|
|
|
366
366
|
onBlur: m,
|
|
367
367
|
onClick: b,
|
|
368
368
|
onKeyDown: g,
|
|
369
|
-
onLeadingIconClick:
|
|
370
|
-
onTrailingIconClick:
|
|
369
|
+
onLeadingIconClick: X,
|
|
370
|
+
onTrailingIconClick: Y,
|
|
371
371
|
//----------------
|
|
372
372
|
size: B = "small",
|
|
373
373
|
color: U = "primary",
|
|
@@ -376,7 +376,7 @@ const k = {
|
|
|
376
376
|
children: P,
|
|
377
377
|
...h
|
|
378
378
|
} = e, f = {
|
|
379
|
-
theme:
|
|
379
|
+
theme: A(),
|
|
380
380
|
color: U,
|
|
381
381
|
size: B,
|
|
382
382
|
style: N,
|
|
@@ -385,7 +385,7 @@ const k = {
|
|
|
385
385
|
btnType: n,
|
|
386
386
|
className: "lnc-ui-button " + D
|
|
387
387
|
}, a = !y(F), l = !y(C), V = !y(v), $ = () => /* @__PURE__ */ K(W, { children: [
|
|
388
|
-
a && /* @__PURE__ */ i(
|
|
388
|
+
a && /* @__PURE__ */ i(G, { size: B, children: /* @__PURE__ */ i(
|
|
389
389
|
j,
|
|
390
390
|
{
|
|
391
391
|
icon: F,
|
|
@@ -395,7 +395,7 @@ const k = {
|
|
|
395
395
|
) }),
|
|
396
396
|
v,
|
|
397
397
|
P,
|
|
398
|
-
l && /* @__PURE__ */ i(
|
|
398
|
+
l && /* @__PURE__ */ i(H, { size: B, children: /* @__PURE__ */ i(
|
|
399
399
|
j,
|
|
400
400
|
{
|
|
401
401
|
icon: C,
|
|
@@ -422,7 +422,7 @@ const k = {
|
|
|
422
422
|
children: $()
|
|
423
423
|
}
|
|
424
424
|
) : n === "tinted" ? /* @__PURE__ */ i(
|
|
425
|
-
|
|
425
|
+
J,
|
|
426
426
|
{
|
|
427
427
|
ref: d,
|
|
428
428
|
"data-type": "tinted",
|
|
@@ -439,7 +439,7 @@ const k = {
|
|
|
439
439
|
children: $()
|
|
440
440
|
}
|
|
441
441
|
) : n === "outline" ? /* @__PURE__ */ i(
|
|
442
|
-
|
|
442
|
+
M,
|
|
443
443
|
{
|
|
444
444
|
ref: d,
|
|
445
445
|
"data-type": "outline",
|
|
@@ -493,7 +493,7 @@ const k = {
|
|
|
493
493
|
}
|
|
494
494
|
);
|
|
495
495
|
});
|
|
496
|
-
|
|
496
|
+
Q.propTypes = {
|
|
497
497
|
text: o.string,
|
|
498
498
|
iconStyle: o.oneOf(["regular", "solid"]),
|
|
499
499
|
/**
|
|
@@ -538,5 +538,5 @@ M.propTypes = {
|
|
|
538
538
|
size: o.oneOf(["small", "medium", "large"])
|
|
539
539
|
};
|
|
540
540
|
export {
|
|
541
|
-
|
|
541
|
+
Q as default
|
|
542
542
|
};
|
package/dist/ButtonGroup.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const i=require("react/jsx-runtime")
|
|
1
|
+
"use strict";const i=require("react/jsx-runtime"),a=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),t=require("./index-BIlhCoy2.cjs"),o=require("./utils-DTAPpJXU.cjs"),b=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),s=a.newStyled.div`
|
|
2
2
|
display: inline-flex;
|
|
3
3
|
flex-wrap: wrap;
|
|
4
4
|
width: fit-content;
|
package/dist/ButtonGroup.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { jsx as u } from "react/jsx-runtime";
|
|
2
|
-
import "
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { u as l } from "./emotion-element-5486c51c.browser.esm-CSejtOeT.js";
|
|
2
|
+
import { n as i } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
3
|
+
import { P as t } from "./index-BYnWp42a.js";
|
|
4
|
+
import { a as o, b } from "./utils-C52T57HO.js";
|
|
5
|
+
import { u as l } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
|
|
7
6
|
const s = i.div`
|
|
8
7
|
display: inline-flex;
|
|
9
8
|
flex-wrap: wrap;
|
|
@@ -83,7 +82,12 @@ const s = i.div`
|
|
|
83
82
|
"border"
|
|
84
83
|
)};
|
|
85
84
|
}
|
|
86
|
-
`, m = ({
|
|
85
|
+
`, m = ({
|
|
86
|
+
children: e,
|
|
87
|
+
borderRadius: d = "regular",
|
|
88
|
+
style: n = {},
|
|
89
|
+
className: a = ""
|
|
90
|
+
}) => {
|
|
87
91
|
const r = l();
|
|
88
92
|
return /* @__PURE__ */ u(
|
|
89
93
|
s,
|
package/dist/CheckBoxInput.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const n=require("react/jsx-runtime"),z=require("react"),t=require("./index-
|
|
1
|
+
"use strict";const n=require("react/jsx-runtime"),z=require("react"),t=require("./index-BIlhCoy2.cjs"),R=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),o=require("./utils-DTAPpJXU.cjs"),j=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),V=e=>e=="left"?"row-reverse":"row",i=(e,s)=>`calc(${e.components.Checkbox.default.enabled.sizes[s]} / 2)`,O=R.newStyled.label`
|
|
2
2
|
-webkit-user-select: none;
|
|
3
3
|
-moz-user-select: none;
|
|
4
4
|
-ms-user-select: none;
|
package/dist/CheckBoxInput.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs as k, jsx as i, Fragment as B } from "react/jsx-runtime";
|
|
2
2
|
import I from "react";
|
|
3
|
-
import { P as t } from "./index-
|
|
4
|
-
import { n as j } from "./emotion-styled.browser.esm-
|
|
5
|
-
import {
|
|
6
|
-
import { u as P } from "./emotion-element-5486c51c.browser.esm-
|
|
3
|
+
import { P as t } from "./index-BYnWp42a.js";
|
|
4
|
+
import { n as j } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
5
|
+
import { d as g, g as L, a as n, b as N, e as x } from "./utils-C52T57HO.js";
|
|
6
|
+
import { u as P } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
|
|
7
7
|
const R = (e) => e == "left" ? "row-reverse" : "row", o = (e, d) => `calc(${e.components.Checkbox.default.enabled.sizes[d]} / 2)`, T = j.label`
|
|
8
8
|
-webkit-user-select: none;
|
|
9
9
|
-moz-user-select: none;
|
package/dist/Chip.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),V=require("react"),r=require("./index-
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),V=require("react"),r=require("./index-BIlhCoy2.cjs"),j=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),n=require("./utils-DTAPpJXU.cjs"),O=require("./Avatar.cjs"),q=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),m=e=>{var o="fas";return`${o} fa-${e} fa-fw`},S=(e,o,l,a)=>e?`padding-right: ${a=="small"?"0.75rem":"0.625rem"}; padding-left: ${a=="small"?"0.25rem":"0.125rem"};`:o?`padding-right: ${a=="small"?"0.5rem":"0.375rem"}; padding-left: ${a=="small"?"0.5rem":"0.375rem"};`:l?`padding-right: ${a=="small"?"0.5rem":"0.375rem"}; padding-left: ${a=="small"?"0.75rem":"0.625rem"};`:`padding-right: ${a=="small"?"1rem":"0.75rem"}; padding-left: ${a=="small"?"1rem":"0.75rem"};`,N=j.newStyled.span`
|
|
2
2
|
cursor: pointer;
|
|
3
3
|
display: inline-flex;
|
|
4
4
|
height: ${e=>n.getSizeValueWithUnits(e.theme,e.size)};
|
package/dist/Chip.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as u, jsx as i, Fragment as N } from "react/jsx-runtime";
|
|
2
|
-
import S from "react";
|
|
3
|
-
import { P as a } from "./index-
|
|
4
|
-
import { n as j } from "./emotion-styled.browser.esm-
|
|
5
|
-
import {
|
|
2
|
+
import { forwardRef as S } from "react";
|
|
3
|
+
import { P as a } from "./index-BYnWp42a.js";
|
|
4
|
+
import { n as j } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
5
|
+
import { d as b, h as B, a as t, b as D, g as F, c as V, e as U } from "./utils-C52T57HO.js";
|
|
6
6
|
import W from "./Avatar.js";
|
|
7
|
-
import { u as A } from "./emotion-element-5486c51c.browser.esm-
|
|
7
|
+
import { u as A } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
|
|
8
8
|
const h = (e) => {
|
|
9
9
|
var n = "fas";
|
|
10
10
|
return `${n} fa-${e} fa-fw`;
|
|
@@ -68,7 +68,7 @@ const h = (e) => {
|
|
|
68
68
|
"backgroundOpacity"
|
|
69
69
|
)};
|
|
70
70
|
}
|
|
71
|
-
`,
|
|
71
|
+
`, z = (e, n) => `calc(${b(e, n)} - 8px)`, q = S((e, n) => {
|
|
72
72
|
const {
|
|
73
73
|
label: l,
|
|
74
74
|
leadingIcon: r,
|
|
@@ -127,7 +127,7 @@ const h = (e) => {
|
|
|
127
127
|
{
|
|
128
128
|
...g,
|
|
129
129
|
disabled: s,
|
|
130
|
-
sizeInUnits:
|
|
130
|
+
sizeInUnits: z(m, d),
|
|
131
131
|
...P
|
|
132
132
|
}
|
|
133
133
|
),
|
|
@@ -147,7 +147,7 @@ const h = (e) => {
|
|
|
147
147
|
}
|
|
148
148
|
);
|
|
149
149
|
});
|
|
150
|
-
|
|
150
|
+
q.propTypes = {
|
|
151
151
|
label: a.string,
|
|
152
152
|
leadingIcon: a.string,
|
|
153
153
|
trailingIcon: a.string,
|
|
@@ -185,5 +185,5 @@ z.propTypes = {
|
|
|
185
185
|
avatarProps: a.any
|
|
186
186
|
};
|
|
187
187
|
export {
|
|
188
|
-
|
|
188
|
+
q as default
|
|
189
189
|
};
|
package/dist/ColorInput.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const i=require("react/jsx-runtime"),b=require("react"),C=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),t=require("./index-
|
|
1
|
+
"use strict";const i=require("react/jsx-runtime"),b=require("react"),C=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),t=require("./index-BIlhCoy2.cjs"),n=require("./utils-DTAPpJXU.cjs"),N=require("./index-DaiUAQVF.cjs"),A=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),H=require("./useUpdateEffect-BtMgpgIV.cjs"),V=(e,r)=>`calc(${n.getSizeValueWithUnits(e,r)} - 1rem)`,L=C.newStyled.label`
|
|
2
2
|
display: inline-flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
gap: 0.5rem;
|
package/dist/ColorInput.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as a, jsxs as L } from "react/jsx-runtime";
|
|
2
2
|
import q, { useState as R, useCallback as G } from "react";
|
|
3
|
-
import { n as I } from "./emotion-styled.browser.esm-
|
|
4
|
-
import { P as t } from "./index-
|
|
5
|
-
import {
|
|
6
|
-
import { d as X } from "./index-
|
|
7
|
-
import { u as Y } from "./emotion-element-5486c51c.browser.esm-
|
|
3
|
+
import { n as I } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
4
|
+
import { P as t } from "./index-BYnWp42a.js";
|
|
5
|
+
import { g as J, d, a as g, b as V, e as C, f as M, h as Q } from "./utils-C52T57HO.js";
|
|
6
|
+
import { d as X } from "./index-CNBqQrtK.js";
|
|
7
|
+
import { u as Y } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
|
|
8
8
|
import { u as Z } from "./useUpdateEffect-CuYWz7EA.js";
|
|
9
9
|
const T = (e, o) => `calc(${d(e, o)} - 1rem)`, ee = I.label`
|
|
10
10
|
display: inline-flex;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),_=require("react"),r=require("./index-BIlhCoy2.cjs"),m=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),p=require("./Icon.cjs"),y=require("./utils-DTAPpJXU.cjs"),B=require("./Modal.cjs"),F=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),E=m.newStyled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
gap: 1rem;
|
|
4
4
|
align-items: center;
|
|
5
5
|
${e=>e.type=="centered"&&"flex-direction: column; gap: 1.25rem;"}
|
|
6
6
|
& .alert-icon {
|
|
7
7
|
font-size: 2.2rem;
|
|
8
|
-
color: ${e=>
|
|
8
|
+
color: ${e=>y.getColorRgbaValue(e.theme,"ConfirmationForm",e.color,"enabled","icon")};
|
|
9
9
|
}
|
|
10
10
|
${e=>e.type=="centered"&&"padding-top: 0.5rem;"}
|
|
11
|
-
`,V=
|
|
11
|
+
`,V=m.newStyled.div`
|
|
12
12
|
display: flex;
|
|
13
13
|
flex-direction: ${e=>e.type=="regular"?"row":"column"};
|
|
14
14
|
width: 100%;
|
|
@@ -17,6 +17,6 @@
|
|
|
17
17
|
justify-content: ${e=>M(e.actionsAlignment)};
|
|
18
18
|
${e=>e.type=="regular"&&"height: 4rem; border-radius: 0 0 16px 16px; padding: 0.75rem 1.5rem 0.75rem 1.5rem;"}
|
|
19
19
|
${e=>e.type=="regular"&&e.actionsTrack==!1&&"padding: 0 1.5rem 1.5rem 1.5rem;"}
|
|
20
|
-
${e=>e.type=="regular"&&e.actionsTrack==!0&&`background-color: ${
|
|
20
|
+
${e=>e.type=="regular"&&e.actionsTrack==!0&&`background-color: ${y.getColorRgbaValue(e.theme,"ConfirmationForm","primary","enabled","trackBg")};`}
|
|
21
21
|
${e=>e.type=="centered"&&"padding: 1rem 0 0.5rem 0;"}
|
|
22
|
-
`,M=e=>e=="right"?"end":e=="left"?"start":"center",
|
|
22
|
+
`,M=e=>e=="right"?"end":e=="left"?"start":"center",u=_.forwardRef((e,d)=>{const{color:g,statusIcon:f=!0,title:T,type:s="regular",actions:x,actionsAlignment:P="right",actionsTrack:h=!1,overlay:b=!0,showCloseButton:j=!0,onClose:k=()=>{},zIndex:C=1e3,size:w="fluid",clickOutsideToClose:$=!1,className:q="",style:A={},overlayProps:O,children:D,rest:v}=e;let i={theme:F.useTheme(),size:w,zIndex:C,className:"lnc-ui-confirmation-form "+q,style:A};const N=o=>o=="danger"?"times-circle":o=="warning"?"exclamation-triangle":o=="success"?"check-circle":"exclamation-circle",R=({statusIcon:o,color:n})=>typeof o=="boolean"&&o==!0?t.jsx(p,{className:"alert-icon",icon:N(n)}):typeof o=="string"&&o!==""?t.jsx(p,{className:"alert-icon",icon:o}):React.cloneElement(o,{className:"alert-icon "+(o==null?void 0:o.className)}),z=({statusIcon:o,color:n,title:l,type:c,themeProps:a})=>t.jsxs(E,{...a,color:n,type:c,children:[t.jsx(R,{statusIcon:o,color:n}),t.jsx("h3",{children:l})]}),S=({actions:o,type:n,actionsAlignment:l,actionsTrack:c,themeProps:a})=>t.jsx(V,{type:n,actionsAlignment:l,actionsTrack:c,...a,children:o});return t.jsx(B,{ref:d,...i,header:s=="regular"?t.jsx(z,{statusIcon:f,color:g,title:T,type:s,themeProps:i}):null,footer:s=="regular"?t.jsx(S,{actions:x,type:s,actionsAlignment:P,actionsTrack:h,themeProps:i}):null,overlay:b,showCloseButton:j,onClose:k,clickOutsideToClose:$,overlayProps:O,...v,children:t.jsx("div",{children:"okej"})})});u.propTypes={color:r.PropTypes.oneOf(["primary","secondary","success","danger","warning","information","neutral","gray"]),statusIcon:r.PropTypes.oneOfType([r.PropTypes.string,r.PropTypes.element,r.PropTypes.bool]),title:r.PropTypes.oneOfType([r.PropTypes.string,r.PropTypes.element]),type:r.PropTypes.oneOf(["regular","centered"]),actions:r.PropTypes.element,actionsAlignment:r.PropTypes.oneOf(["right","center","left"]),actionsTrack:r.PropTypes.bool,showCloseButton:r.PropTypes.bool,overlay:r.PropTypes.bool,onClose:r.PropTypes.func,zIndex:r.PropTypes.number,clickOutsideToClose:r.PropTypes.bool,className:r.PropTypes.string,style:r.PropTypes.object,size:r.PropTypes.oneOf(["fluid","xs","s","m","l","xl","full"]),overlayProps:r.PropTypes.any};module.exports=u;
|
package/dist/ConfirmationForm.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { jsx as o, jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { P as r } from "./index-
|
|
4
|
-
import { n as
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import { u as
|
|
9
|
-
const
|
|
1
|
+
import { jsx as o, jsxs as R } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as S } from "react";
|
|
3
|
+
import { P as r } from "./index-BYnWp42a.js";
|
|
4
|
+
import { n as f } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
5
|
+
import m from "./Icon.js";
|
|
6
|
+
import { a as d } from "./utils-C52T57HO.js";
|
|
7
|
+
import E from "./Modal.js";
|
|
8
|
+
import { u as M } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
|
|
9
|
+
const V = f.div`
|
|
10
10
|
display: flex;
|
|
11
11
|
gap: 1rem;
|
|
12
12
|
align-items: center;
|
|
13
13
|
${(e) => e.type == "centered" && "flex-direction: column; gap: 1.25rem;"}
|
|
14
14
|
& .alert-icon {
|
|
15
15
|
font-size: 2.2rem;
|
|
16
|
-
color: ${(e) =>
|
|
16
|
+
color: ${(e) => d(
|
|
17
17
|
e.theme,
|
|
18
18
|
"ConfirmationForm",
|
|
19
19
|
e.color,
|
|
@@ -22,16 +22,16 @@ const M = d.div`
|
|
|
22
22
|
)};
|
|
23
23
|
}
|
|
24
24
|
${(e) => e.type == "centered" && "padding-top: 0.5rem;"}
|
|
25
|
-
`,
|
|
25
|
+
`, q = f.div`
|
|
26
26
|
display: flex;
|
|
27
27
|
flex-direction: ${(e) => e.type == "regular" ? "row" : "column"};
|
|
28
28
|
width: 100%;
|
|
29
29
|
flex: 1;
|
|
30
30
|
gap: 0.5rem;
|
|
31
|
-
justify-content: ${(e) =>
|
|
31
|
+
justify-content: ${(e) => D(e.actionsAlignment)};
|
|
32
32
|
${(e) => e.type == "regular" && "height: 4rem; border-radius: 0 0 16px 16px; padding: 0.75rem 1.5rem 0.75rem 1.5rem;"}
|
|
33
33
|
${(e) => e.type == "regular" && e.actionsTrack == !1 && "padding: 0 1.5rem 1.5rem 1.5rem;"}
|
|
34
|
-
${(e) => e.type == "regular" && e.actionsTrack == !0 && `background-color: ${
|
|
34
|
+
${(e) => e.type == "regular" && e.actionsTrack == !0 && `background-color: ${d(
|
|
35
35
|
e.theme,
|
|
36
36
|
"ConfirmationForm",
|
|
37
37
|
"primary",
|
|
@@ -39,48 +39,48 @@ const M = d.div`
|
|
|
39
39
|
"trackBg"
|
|
40
40
|
)};`}
|
|
41
41
|
${(e) => e.type == "centered" && "padding: 1rem 0 0.5rem 0;"}
|
|
42
|
-
`,
|
|
42
|
+
`, D = (e) => e == "right" ? "end" : e == "left" ? "start" : "center", G = S((e, u) => {
|
|
43
43
|
const {
|
|
44
|
-
color:
|
|
45
|
-
statusIcon:
|
|
46
|
-
title:
|
|
44
|
+
color: p,
|
|
45
|
+
statusIcon: g = !0,
|
|
46
|
+
title: y,
|
|
47
47
|
type: i = "regular",
|
|
48
|
-
actions:
|
|
49
|
-
actionsAlignment:
|
|
50
|
-
actionsTrack:
|
|
51
|
-
overlay:
|
|
52
|
-
showCloseButton:
|
|
53
|
-
onClose:
|
|
48
|
+
actions: h,
|
|
49
|
+
actionsAlignment: x = "right",
|
|
50
|
+
actionsTrack: T = !1,
|
|
51
|
+
overlay: b = !0,
|
|
52
|
+
showCloseButton: k = !0,
|
|
53
|
+
onClose: C = () => {
|
|
54
54
|
},
|
|
55
|
-
zIndex:
|
|
56
|
-
size:
|
|
57
|
-
clickOutsideToClose:
|
|
58
|
-
className:
|
|
59
|
-
style:
|
|
60
|
-
overlayProps:
|
|
61
|
-
children:
|
|
62
|
-
rest:
|
|
55
|
+
zIndex: $ = 1e3,
|
|
56
|
+
size: w = "fluid",
|
|
57
|
+
clickOutsideToClose: A = !1,
|
|
58
|
+
className: O = "",
|
|
59
|
+
style: v = {},
|
|
60
|
+
overlayProps: N,
|
|
61
|
+
children: H,
|
|
62
|
+
rest: P
|
|
63
63
|
} = e;
|
|
64
64
|
let l = {
|
|
65
|
-
theme:
|
|
66
|
-
size:
|
|
67
|
-
zIndex:
|
|
68
|
-
className: "lnc-ui-confirmation-form " +
|
|
69
|
-
style:
|
|
65
|
+
theme: M(),
|
|
66
|
+
size: w,
|
|
67
|
+
zIndex: $,
|
|
68
|
+
className: "lnc-ui-confirmation-form " + O,
|
|
69
|
+
style: v
|
|
70
70
|
};
|
|
71
|
-
const
|
|
71
|
+
const j = (t) => t == "danger" ? "times-circle" : t == "warning" ? "exclamation-triangle" : t == "success" ? "check-circle" : "exclamation-circle", z = ({ statusIcon: t, color: n }) => typeof t == "boolean" && t == !0 ? /* @__PURE__ */ o(m, { className: "alert-icon", icon: j(n) }) : typeof t == "string" && t !== "" ? /* @__PURE__ */ o(m, { className: "alert-icon", icon: t }) : React.cloneElement(t, {
|
|
72
72
|
className: "alert-icon " + (t == null ? void 0 : t.className)
|
|
73
|
-
}),
|
|
74
|
-
/* @__PURE__ */ o(
|
|
73
|
+
}), B = ({ statusIcon: t, color: n, title: a, type: c, themeProps: s }) => /* @__PURE__ */ R(V, { ...s, color: n, type: c, children: [
|
|
74
|
+
/* @__PURE__ */ o(z, { statusIcon: t, color: n }),
|
|
75
75
|
/* @__PURE__ */ o("h3", { children: a })
|
|
76
|
-
] }),
|
|
76
|
+
] }), F = ({
|
|
77
77
|
actions: t,
|
|
78
78
|
type: n,
|
|
79
79
|
actionsAlignment: a,
|
|
80
80
|
actionsTrack: c,
|
|
81
81
|
themeProps: s
|
|
82
82
|
}) => /* @__PURE__ */ o(
|
|
83
|
-
|
|
83
|
+
q,
|
|
84
84
|
{
|
|
85
85
|
type: n,
|
|
86
86
|
actionsAlignment: a,
|
|
@@ -90,41 +90,41 @@ const M = d.div`
|
|
|
90
90
|
}
|
|
91
91
|
);
|
|
92
92
|
return /* @__PURE__ */ o(
|
|
93
|
-
|
|
93
|
+
E,
|
|
94
94
|
{
|
|
95
|
-
ref:
|
|
95
|
+
ref: u,
|
|
96
96
|
...l,
|
|
97
97
|
header: i == "regular" ? /* @__PURE__ */ o(
|
|
98
|
-
|
|
98
|
+
B,
|
|
99
99
|
{
|
|
100
|
-
statusIcon:
|
|
101
|
-
color:
|
|
102
|
-
title:
|
|
100
|
+
statusIcon: g,
|
|
101
|
+
color: p,
|
|
102
|
+
title: y,
|
|
103
103
|
type: i,
|
|
104
104
|
themeProps: l
|
|
105
105
|
}
|
|
106
106
|
) : null,
|
|
107
107
|
footer: i == "regular" ? /* @__PURE__ */ o(
|
|
108
|
-
|
|
108
|
+
F,
|
|
109
109
|
{
|
|
110
|
-
actions:
|
|
110
|
+
actions: h,
|
|
111
111
|
type: i,
|
|
112
|
-
actionsAlignment:
|
|
113
|
-
actionsTrack:
|
|
112
|
+
actionsAlignment: x,
|
|
113
|
+
actionsTrack: T,
|
|
114
114
|
themeProps: l
|
|
115
115
|
}
|
|
116
116
|
) : null,
|
|
117
|
-
overlay:
|
|
118
|
-
showCloseButton:
|
|
119
|
-
onClose:
|
|
120
|
-
clickOutsideToClose:
|
|
121
|
-
overlayProps:
|
|
122
|
-
...
|
|
117
|
+
overlay: b,
|
|
118
|
+
showCloseButton: k,
|
|
119
|
+
onClose: C,
|
|
120
|
+
clickOutsideToClose: A,
|
|
121
|
+
overlayProps: N,
|
|
122
|
+
...P,
|
|
123
123
|
children: /* @__PURE__ */ o("div", { children: "okej" })
|
|
124
124
|
}
|
|
125
125
|
);
|
|
126
126
|
});
|
|
127
|
-
|
|
127
|
+
G.propTypes = {
|
|
128
128
|
color: r.oneOf([
|
|
129
129
|
"primary",
|
|
130
130
|
"secondary",
|
|
@@ -165,5 +165,5 @@ D.propTypes = {
|
|
|
165
165
|
overlayProps: r.any
|
|
166
166
|
};
|
|
167
167
|
export {
|
|
168
|
-
|
|
168
|
+
G as default
|
|
169
169
|
};
|
package/dist/Content.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const o=require("react/jsx-runtime"),i=require("react"),c=require("./index-
|
|
1
|
+
"use strict";const o=require("react/jsx-runtime"),i=require("react"),c=require("./index-BIlhCoy2.cjs"),e=i.forwardRef((t,n)=>{const{children:r,__TYPE__:_="Content",...s}=t;return o.jsx("main",{ref:n,...s,children:r})});e.propTypes={__TYPE__:c.PropTypes.string};e.displayName="Content";module.exports=e;
|