@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/Accordion.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const g=require("react/jsx-runtime"),t=require("react"),o=require("./index-
|
|
1
|
+
"use strict";const g=require("react/jsx-runtime"),t=require("react"),o=require("./index-BIlhCoy2.cjs"),x=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),l=require("./utils-DTAPpJXU.cjs"),R=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),S=require("./useUpdateEffect-BtMgpgIV.cjs"),N=x.newStyled.div`
|
|
2
2
|
color: ${s=>!s.disabled&&l.getColorRgbaValue(s.theme,"Accordion","primary","enabled","text")};
|
|
3
3
|
background-color: transparent;
|
|
4
4
|
${s=>l.getComponentTypographyCss(s.theme,"Accordion",s.size,"enabled")};
|
package/dist/Accordion.js
CHANGED
|
@@ -1,65 +1,70 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { P as
|
|
4
|
-
import { n as
|
|
5
|
-
import {
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
const
|
|
9
|
-
color: ${(
|
|
1
|
+
import { jsxs as N } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as O, useState as S, Children as i, isValidElement as c, cloneElement as f } from "react";
|
|
3
|
+
import { P as s } from "./index-BYnWp42a.js";
|
|
4
|
+
import { n as x } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
5
|
+
import { a as D, g as R, h as T } from "./utils-C52T57HO.js";
|
|
6
|
+
import { u as I } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
|
|
7
|
+
import { u as P } from "./useUpdateEffect-CuYWz7EA.js";
|
|
8
|
+
const M = x.div`
|
|
9
|
+
color: ${(o) => !o.disabled && D(o.theme, "Accordion", "primary", "enabled", "text")};
|
|
10
10
|
background-color: transparent;
|
|
11
|
-
${(
|
|
12
|
-
${(
|
|
13
|
-
`,
|
|
11
|
+
${(o) => R(o.theme, "Accordion", o.size, "enabled")};
|
|
12
|
+
${(o) => o.disabled === !0 ? T(o.theme) : ""}
|
|
13
|
+
`, Y = O((o, u) => {
|
|
14
14
|
const {
|
|
15
15
|
expanded: r = !1,
|
|
16
|
-
disabled:
|
|
17
|
-
change:
|
|
16
|
+
disabled: m = !1,
|
|
17
|
+
change: y = () => {
|
|
18
18
|
},
|
|
19
|
-
size:
|
|
20
|
-
className:
|
|
21
|
-
style:
|
|
22
|
-
children:
|
|
23
|
-
...
|
|
24
|
-
} =
|
|
25
|
-
|
|
26
|
-
|
|
19
|
+
size: n = "small",
|
|
20
|
+
className: C = "",
|
|
21
|
+
style: b = {},
|
|
22
|
+
children: p,
|
|
23
|
+
...A
|
|
24
|
+
} = o, _ = {
|
|
25
|
+
theme: I(),
|
|
26
|
+
size: n,
|
|
27
|
+
style: b,
|
|
28
|
+
className: "lnc-ui-accordion " + C
|
|
29
|
+
}, [t, l] = S(r);
|
|
30
|
+
P(() => {
|
|
31
|
+
l(r);
|
|
27
32
|
}, [r]);
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
},
|
|
31
|
-
var
|
|
32
|
-
if (
|
|
33
|
-
return
|
|
34
|
-
size:
|
|
35
|
-
onClick:
|
|
36
|
-
onExpand:
|
|
37
|
-
isExpanded:
|
|
38
|
-
disabled:
|
|
33
|
+
const d = (e) => {
|
|
34
|
+
y(!t, e), l(!t);
|
|
35
|
+
}, g = i.map(p, (e) => {
|
|
36
|
+
var a;
|
|
37
|
+
if (c(e) && (e.props.__TYPE__ == "ACCORDION_SUMMARY" || ((a = e == null ? void 0 : e.type) == null ? void 0 : a.displayName) === "ACCORDION_SUMMARY"))
|
|
38
|
+
return f(e, {
|
|
39
|
+
size: n,
|
|
40
|
+
onClick: d,
|
|
41
|
+
onExpand: d,
|
|
42
|
+
isExpanded: t,
|
|
43
|
+
disabled: m
|
|
39
44
|
});
|
|
40
|
-
}),
|
|
41
|
-
var
|
|
42
|
-
if (
|
|
43
|
-
return
|
|
44
|
-
size:
|
|
45
|
-
isExpanded:
|
|
45
|
+
}), E = i.map(p, (e) => {
|
|
46
|
+
var a;
|
|
47
|
+
if (c(e) && (e.props.__TYPE__ == "ACCORDION_DETAILS" || ((a = e == null ? void 0 : e.type) == null ? void 0 : a.displayName) === "ACCORDION_DETAILS"))
|
|
48
|
+
return f(e, {
|
|
49
|
+
size: n,
|
|
50
|
+
isExpanded: t
|
|
46
51
|
});
|
|
47
52
|
});
|
|
48
|
-
return /* @__PURE__ */
|
|
49
|
-
|
|
50
|
-
|
|
53
|
+
return /* @__PURE__ */ N(M, { ref: u, ..._, disabled: m, ...A, children: [
|
|
54
|
+
g,
|
|
55
|
+
E
|
|
51
56
|
] });
|
|
52
57
|
});
|
|
53
|
-
|
|
54
|
-
expanded:
|
|
55
|
-
disabled:
|
|
58
|
+
Y.propTypes = {
|
|
59
|
+
expanded: s.bool,
|
|
60
|
+
disabled: s.bool,
|
|
56
61
|
//--------------------------------------------------------------
|
|
57
|
-
change:
|
|
62
|
+
change: s.func,
|
|
58
63
|
//---------------------------------------------------------------
|
|
59
|
-
className:
|
|
60
|
-
style:
|
|
61
|
-
size:
|
|
64
|
+
className: s.string,
|
|
65
|
+
style: s.object,
|
|
66
|
+
size: s.oneOf(["small", "medium", "large"])
|
|
62
67
|
};
|
|
63
68
|
export {
|
|
64
|
-
|
|
69
|
+
Y as default
|
|
65
70
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("react/jsx-runtime"),d=require("react"),t=require("./index-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("react/jsx-runtime"),d=require("react"),t=require("./index-BIlhCoy2.cjs"),u=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),i=(e,r)=>r=="medium"?`${e?"0.4rem":"0"} 1.25rem ${e?"0.8rem":"0"} 1.25rem`:r=="large"?`${e?"0.6rem":"0"} 1.5rem ${e?"1rem":"0"} 1.5rem`:`${e?"0.2rem":"0"} 1rem ${e?"0.6rem":"0"} 1rem`,c=u.newStyled.div`
|
|
2
2
|
transform: ${e=>e.isExpanded?"scaleY(1)":"scaleY(0)"};
|
|
3
3
|
transform-origin: top;
|
|
4
4
|
transition: transform 0.25s ease;
|
package/dist/AccordionDetails.js
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import l from "react";
|
|
3
|
-
import { P as
|
|
4
|
-
import { n as f } from "./emotion-styled.browser.esm-
|
|
2
|
+
import { forwardRef as l } from "react";
|
|
3
|
+
import { P as m } from "./index-BYnWp42a.js";
|
|
4
|
+
import { n as f } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
5
5
|
const d = (r, e) => e == "medium" ? `${r ? "0.4rem" : "0"} 1.25rem ${r ? "0.8rem" : "0"} 1.25rem` : e == "large" ? `${r ? "0.6rem" : "0"} 1.5rem ${r ? "1rem" : "0"} 1.5rem` : `${r ? "0.2rem" : "0"} 1rem ${r ? "0.6rem" : "0"} 1rem`, c = f.div`
|
|
6
6
|
transform: ${(r) => r.isExpanded ? "scaleY(1)" : "scaleY(0)"};
|
|
7
7
|
transform-origin: top;
|
|
8
8
|
transition: transform 0.25s ease;
|
|
9
9
|
max-height: ${(r) => r.isExpanded ? "auto" : "0"};
|
|
10
10
|
padding: ${(r) => d(r.isExpanded, r.size)};
|
|
11
|
-
`,
|
|
11
|
+
`, t = l((r, e) => {
|
|
12
12
|
const {
|
|
13
|
-
__TYPE__:
|
|
13
|
+
__TYPE__: p = "ACCORDION_DETAILS",
|
|
14
14
|
isExpanded: s,
|
|
15
|
-
size:
|
|
16
|
-
children:
|
|
15
|
+
size: o = "small",
|
|
16
|
+
children: a,
|
|
17
17
|
...i
|
|
18
18
|
} = r;
|
|
19
|
-
return /* @__PURE__ */ n(c, { ref: e, size:
|
|
19
|
+
return /* @__PURE__ */ n(c, { ref: e, size: o, isExpanded: s, ...i, children: a });
|
|
20
20
|
});
|
|
21
|
-
|
|
22
|
-
__TYPE__:
|
|
21
|
+
t.propTypes = {
|
|
22
|
+
__TYPE__: m.string,
|
|
23
23
|
//---------------------------------------------------------------
|
|
24
|
-
className:
|
|
25
|
-
style:
|
|
26
|
-
size:
|
|
24
|
+
className: m.string,
|
|
25
|
+
style: m.object,
|
|
26
|
+
size: m.oneOf(["small", "medium", "large"])
|
|
27
27
|
};
|
|
28
|
-
|
|
28
|
+
t.displayName = "ACCORDION_DETAILS";
|
|
29
29
|
export {
|
|
30
|
-
|
|
30
|
+
t as default,
|
|
31
31
|
d as getPadding
|
|
32
32
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const o=require("react/jsx-runtime"),f=require("react"),s=require("./index-
|
|
1
|
+
"use strict";const o=require("react/jsx-runtime"),f=require("react"),s=require("./index-BIlhCoy2.cjs"),x=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),g=require("./Icon.cjs"),C=require("./utils-DTAPpJXU.cjs"),P=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),h={small:"0.6rem 1rem",medium:"0.8rem 1.25rem",large:"1rem 1.5rem"},R=x.newStyled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: space-between;
|
|
4
4
|
cursor: pointer;
|
package/dist/AccordionSummary.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as y, jsx as _ } from "react/jsx-runtime";
|
|
2
|
-
import C from "react";
|
|
3
|
-
import { P as o } from "./index-
|
|
4
|
-
import { n as g } from "./emotion-styled.browser.esm-
|
|
2
|
+
import { forwardRef as C } from "react";
|
|
3
|
+
import { P as o } from "./index-BYnWp42a.js";
|
|
4
|
+
import { n as g } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
5
5
|
import h from "./Icon.js";
|
|
6
|
-
import {
|
|
7
|
-
import { u as A } from "./emotion-element-5486c51c.browser.esm-
|
|
6
|
+
import { a as x } from "./utils-C52T57HO.js";
|
|
7
|
+
import { u as A } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
|
|
8
8
|
const N = {
|
|
9
9
|
small: "0.6rem 1rem",
|
|
10
10
|
medium: "0.8rem 1.25rem",
|
|
@@ -26,12 +26,12 @@ const N = {
|
|
|
26
26
|
transform: ${(e) => e.isExpanded ? "rotate(180deg)" : "rotate(0)"};
|
|
27
27
|
transition: transform 0.25s ease;
|
|
28
28
|
}
|
|
29
|
-
`, s = C
|
|
29
|
+
`, s = C((e, n) => {
|
|
30
30
|
const {
|
|
31
|
-
__TYPE__:
|
|
31
|
+
__TYPE__: T = "ACCORDION_SUMMARY",
|
|
32
32
|
disabled: a,
|
|
33
|
-
isExpanded:
|
|
34
|
-
onExpand:
|
|
33
|
+
isExpanded: m,
|
|
34
|
+
onExpand: t,
|
|
35
35
|
onClick: i = () => {
|
|
36
36
|
},
|
|
37
37
|
size: c = "small",
|
|
@@ -46,9 +46,9 @@ const N = {
|
|
|
46
46
|
ref: n,
|
|
47
47
|
...u,
|
|
48
48
|
onClick: (r) => {
|
|
49
|
-
a == !1 &&
|
|
49
|
+
a == !1 && t(r), i(r);
|
|
50
50
|
},
|
|
51
|
-
isExpanded:
|
|
51
|
+
isExpanded: m,
|
|
52
52
|
...f,
|
|
53
53
|
children: [
|
|
54
54
|
p,
|
package/dist/ActionsToolbar.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const o=require("react/jsx-runtime"),$=require("react"),e=require("./index-
|
|
1
|
+
"use strict";const o=require("react/jsx-runtime"),$=require("react"),e=require("./index-BIlhCoy2.cjs"),B=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),V=require("./DropdownMenu.cjs"),i=require("./DropdownItem.cjs"),Y=require("./Separator.cjs"),y=require("./Button.cjs"),b=require("./utils-DTAPpJXU.cjs"),M=require("./ThemeProvider.cjs"),Z=B.newStyled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
border-radius: 8px;
|
|
@@ -16,4 +16,4 @@
|
|
|
16
16
|
gap: 0.5rem;
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
`,c=$.forwardRef((t,T)=>{const{__TYPE__:F="ACTIONS_TOOLBAR",showCreate:u=!0,enableCreate:x=!0,createText:d="Create new item",showEdit:m=!0,enableEditOnSelection:g=!0,editText:P="Edit",showDelete:w=!0,enableDeleteOnSelection:h=!0,deleteText:C="Delete",showCopy:f=!0,enableCopyOnSelection:O=!0,copyText:j="Copy",actionsText:S="Actions",customActions:a,selectedRowsLength:n=0,readOnly:s=!1,actionDropdownProps:D,actionsDropdownZIndex:_,actionsDropdownPlacement:q,onCreate:E=()=>{},onEdit:R=()=>{},onDelete:k=()=>{},onCopy:v=()=>{},className:A="",style:I={},color:l="primary",size:p="small",...N}=t,{theme:z}=
|
|
19
|
+
`,c=$.forwardRef((t,T)=>{const{__TYPE__:F="ACTIONS_TOOLBAR",showCreate:u=!0,enableCreate:x=!0,createText:d="Create new item",showEdit:m=!0,enableEditOnSelection:g=!0,editText:P="Edit",showDelete:w=!0,enableDeleteOnSelection:h=!0,deleteText:C="Delete",showCopy:f=!0,enableCopyOnSelection:O=!0,copyText:j="Copy",actionsText:S="Actions",customActions:a,selectedRowsLength:n=0,readOnly:s=!1,actionDropdownProps:D,actionsDropdownZIndex:_,actionsDropdownPlacement:q,onCreate:E=()=>{},onEdit:R=()=>{},onDelete:k=()=>{},onCopy:v=()=>{},className:A="",style:I={},color:l="primary",size:p="small",...N}=t,{theme:z}=M.useTheme();return o.jsxs(Z,{ref:T,theme:z,color:l,className:`lnc-table-view-actions-toolbar ${A}`,style:I,...N,children:[o.jsx("div",{children:u&&s==!1&&o.jsx(y,{leadingIcon:"plus",btnType:"outline",type:"button",color:l,size:p,title:d,disabled:!x,onClick:E,text:d})}),o.jsx("div",{children:o.jsxs(V,{className:"lnc-table-view-actions-toolbar-dropdown",color:l,size:p,zIndex:_,placement:q,...D,control:o.jsx(y,{text:S,btnType:"outline",trailingIcon:"angle-down",color:l,size:p,type:"button"}),children:[f&&s==!1&&o.jsx(i,{icon:"copy",disabled:!(O&&n>0),onClick:v,children:j}),m&&s==!1&&o.jsx(i,{icon:"pen",disabled:!(g&&n>0),onClick:R,children:P}),w&&s==!1&&o.jsx(i,{icon:"trash",disabled:!(h&&n>0),onClick:k,children:C}),o.jsx(Y,{}),a==null?void 0:a.map((r,L)=>{if((r==null?void 0:r.show)!=!1)return o.jsx(i,{icon:r.icon,disabled:!(r.enableOnSelection==!0&&n>0||r.enable==!0&&r.enableOnSelection==!1),onClick:r.onAction,children:r.name},L)})]})})]})});c.propTypes={__TYPE__:e.PropTypes.string,showCreate:e.PropTypes.bool,enableCreate:e.PropTypes.bool,createText:e.PropTypes.string,showEdit:e.PropTypes.bool,enableEditOnSelection:e.PropTypes.bool,editText:e.PropTypes.string,showDelete:e.PropTypes.bool,enableDeleteOnSelection:e.PropTypes.bool,deleteText:e.PropTypes.string,showCopy:e.PropTypes.bool,enableCopyOnSelection:e.PropTypes.bool,copyText:e.PropTypes.string,actionsText:e.PropTypes.string,customActions:e.PropTypes.array,selectedRowsLength:e.PropTypes.number,readOnly:e.PropTypes.bool,onCreate:e.PropTypes.func,onEdit:e.PropTypes.func,onDelete:e.PropTypes.func,onCopy:e.PropTypes.func,className:e.PropTypes.string,style:e.PropTypes.object,size:e.PropTypes.oneOf(["small","medium","large"]),color:e.PropTypes.oneOf(["primary","secondary","success","danger","warning","information","neutral","gray"])};c.displayName="ACTIONS_TOOLBAR";module.exports=c;
|
package/dist/ActionsToolbar.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsxs as p, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import Y from "react";
|
|
3
|
-
import { P as e } from "./index-
|
|
4
|
-
import { n as M } from "./emotion-styled.browser.esm-
|
|
5
|
-
import
|
|
2
|
+
import { forwardRef as Y } from "react";
|
|
3
|
+
import { P as e } from "./index-BYnWp42a.js";
|
|
4
|
+
import { n as M } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
5
|
+
import V from "./DropdownMenu.js";
|
|
6
6
|
import i from "./DropdownItem.js";
|
|
7
7
|
import Z from "./Separator.js";
|
|
8
8
|
import b from "./Button.js";
|
|
9
|
-
import {
|
|
9
|
+
import { a as m } from "./utils-C52T57HO.js";
|
|
10
10
|
import { useTheme as q } from "./ThemeProvider.js";
|
|
11
11
|
const F = M.div`
|
|
12
12
|
display: flex;
|
|
@@ -40,7 +40,7 @@ const F = M.div`
|
|
|
40
40
|
gap: 0.5rem;
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
`, u = Y
|
|
43
|
+
`, u = Y((n, f) => {
|
|
44
44
|
const {
|
|
45
45
|
__TYPE__: G = "ACTIONS_TOOLBAR",
|
|
46
46
|
showCreate: y = !0,
|
|
@@ -52,8 +52,8 @@ const F = M.div`
|
|
|
52
52
|
showDelete: x = !0,
|
|
53
53
|
enableDeleteOnSelection: C = !0,
|
|
54
54
|
deleteText: O = "Delete",
|
|
55
|
-
showCopy:
|
|
56
|
-
enableCopyOnSelection:
|
|
55
|
+
showCopy: S = !0,
|
|
56
|
+
enableCopyOnSelection: D = !0,
|
|
57
57
|
copyText: _ = "Copy",
|
|
58
58
|
actionsText: E = "Actions",
|
|
59
59
|
customActions: s,
|
|
@@ -65,11 +65,11 @@ const F = M.div`
|
|
|
65
65
|
//----------------
|
|
66
66
|
onCreate: N = () => {
|
|
67
67
|
},
|
|
68
|
-
onEdit:
|
|
68
|
+
onEdit: v = () => {
|
|
69
69
|
},
|
|
70
|
-
onDelete:
|
|
70
|
+
onDelete: P = () => {
|
|
71
71
|
},
|
|
72
|
-
onCopy:
|
|
72
|
+
onCopy: R = () => {
|
|
73
73
|
},
|
|
74
74
|
className: j = "",
|
|
75
75
|
style: z = {},
|
|
@@ -122,12 +122,12 @@ const F = M.div`
|
|
|
122
122
|
}
|
|
123
123
|
),
|
|
124
124
|
children: [
|
|
125
|
-
|
|
125
|
+
S && l == !1 && /* @__PURE__ */ t(
|
|
126
126
|
i,
|
|
127
127
|
{
|
|
128
128
|
icon: "copy",
|
|
129
|
-
disabled: !(
|
|
130
|
-
onClick:
|
|
129
|
+
disabled: !(D && r > 0),
|
|
130
|
+
onClick: R,
|
|
131
131
|
children: _
|
|
132
132
|
}
|
|
133
133
|
),
|
|
@@ -136,7 +136,7 @@ const F = M.div`
|
|
|
136
136
|
{
|
|
137
137
|
icon: "pen",
|
|
138
138
|
disabled: !(h && r > 0),
|
|
139
|
-
onClick:
|
|
139
|
+
onClick: v,
|
|
140
140
|
children: T
|
|
141
141
|
}
|
|
142
142
|
),
|
|
@@ -145,7 +145,7 @@ const F = M.div`
|
|
|
145
145
|
{
|
|
146
146
|
icon: "trash",
|
|
147
147
|
disabled: !(C && r > 0),
|
|
148
|
-
onClick:
|
|
148
|
+
onClick: P,
|
|
149
149
|
children: O
|
|
150
150
|
}
|
|
151
151
|
),
|
package/dist/Alert.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const o=require("react/jsx-runtime"),c=require("react"),r=require("./index-
|
|
1
|
+
"use strict";const o=require("react/jsx-runtime"),c=require("react"),r=require("./index-BIlhCoy2.cjs"),x=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),T=require("./ThemeProvider.cjs"),t=require("./utils-DTAPpJXU.cjs"),s=require("./Icon.cjs"),P=x.newStyled.div`
|
|
2
2
|
min-height: 3rem;
|
|
3
3
|
${e=>t.getComponentTypographyCss(e.theme,"Alert",e.size,"enabled")};
|
|
4
4
|
line-height: 1.25rem;
|
package/dist/Alert.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsxs as c, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import { P as r } from "./index-
|
|
4
|
-
import { n as
|
|
5
|
-
import { useTheme as
|
|
6
|
-
import {
|
|
2
|
+
import { forwardRef as y, cloneElement as x } from "react";
|
|
3
|
+
import { P as r } from "./index-BYnWp42a.js";
|
|
4
|
+
import { n as w } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
5
|
+
import { useTheme as N } from "./ThemeProvider.js";
|
|
6
|
+
import { g as A, b as $, a as o, c as m } from "./utils-C52T57HO.js";
|
|
7
7
|
import s from "./Icon.js";
|
|
8
|
-
const
|
|
8
|
+
const T = w.div`
|
|
9
9
|
min-height: 3rem;
|
|
10
|
-
${(e) =>
|
|
10
|
+
${(e) => A(e.theme, "Alert", e.size, "enabled")};
|
|
11
11
|
line-height: 1.25rem;
|
|
12
|
-
border-radius: ${(e) =>
|
|
12
|
+
border-radius: ${(e) => $(e.theme, "regular")};
|
|
13
13
|
background-color: ${(e) => o(
|
|
14
14
|
e.theme,
|
|
15
15
|
"Alert",
|
|
@@ -69,40 +69,40 @@ const $ = x.div`
|
|
|
69
69
|
)};
|
|
70
70
|
cursor: pointer;
|
|
71
71
|
}
|
|
72
|
-
`,
|
|
72
|
+
`, C = (e) => e == "danger" ? "times-circle" : e == "warning" ? "exclamation-triangle" : e == "success" ? "check-circle" : "exclamation-circle", k = ({ statusIcon: e, color: n }) => typeof e == "boolean" && e == !0 ? /* @__PURE__ */ t(s, { className: "alert-icon", icon: C(n) }) : typeof e == "string" && e !== "" ? /* @__PURE__ */ t(s, { className: "alert-icon", icon: e }) : x(e, {
|
|
73
73
|
className: "alert-icon " + (e == null ? void 0 : e.className)
|
|
74
|
-
}),
|
|
74
|
+
}), z = y((e, n) => {
|
|
75
75
|
const {
|
|
76
|
-
className:
|
|
76
|
+
className: d = "",
|
|
77
77
|
size: g = "small",
|
|
78
78
|
color: l = "primary",
|
|
79
|
-
title:
|
|
79
|
+
title: f,
|
|
80
80
|
actions: a,
|
|
81
|
-
noIcon:
|
|
81
|
+
noIcon: h = !1,
|
|
82
82
|
statusIcon: i = !0,
|
|
83
|
-
children:
|
|
83
|
+
children: p,
|
|
84
84
|
...b
|
|
85
|
-
} = e, { theme:
|
|
85
|
+
} = e, { theme: u } = N();
|
|
86
86
|
return /* @__PURE__ */ c(
|
|
87
|
-
|
|
87
|
+
T,
|
|
88
88
|
{
|
|
89
89
|
ref: n,
|
|
90
|
-
...{ theme:
|
|
91
|
-
className: "lnc-ui-alert " +
|
|
90
|
+
...{ theme: u, size: g, color: l },
|
|
91
|
+
className: "lnc-ui-alert " + d,
|
|
92
92
|
actions: a,
|
|
93
93
|
...b,
|
|
94
94
|
children: [
|
|
95
|
-
|
|
95
|
+
h == !1 && i && /* @__PURE__ */ t(k, { color: l, statusIcon: i }),
|
|
96
96
|
/* @__PURE__ */ c("div", { className: "alert-content", children: [
|
|
97
|
-
/* @__PURE__ */ t("div", { className: "alert-title", children:
|
|
98
|
-
|
|
97
|
+
/* @__PURE__ */ t("div", { className: "alert-title", children: f }),
|
|
98
|
+
p,
|
|
99
99
|
/* @__PURE__ */ t("div", { className: "alert-actions", children: a })
|
|
100
100
|
] })
|
|
101
101
|
]
|
|
102
102
|
}
|
|
103
103
|
);
|
|
104
104
|
});
|
|
105
|
-
|
|
105
|
+
z.propTypes = {
|
|
106
106
|
title: r.oneOfType([r.string, r.element]),
|
|
107
107
|
actions: r.element,
|
|
108
108
|
/**
|
|
@@ -134,5 +134,5 @@ k.propTypes = {
|
|
|
134
134
|
])
|
|
135
135
|
};
|
|
136
136
|
export {
|
|
137
|
-
|
|
137
|
+
z as default
|
|
138
138
|
};
|
package/dist/Avatar.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const n=require("react/jsx-runtime"),T=require("react"),i=require("./index-
|
|
1
|
+
"use strict";const n=require("react/jsx-runtime"),T=require("react"),i=require("./index-BIlhCoy2.cjs"),P=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs");;/* empty css */const s=require("./utils-DTAPpJXU.cjs"),I=require("./Icon.cjs"),f=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),w=P.newStyled.div`
|
|
2
2
|
border-radius: ${e=>s.getBorderRadiusValueWithUnits(e.theme,e.borderRadius)};
|
|
3
3
|
color: white;
|
|
4
4
|
display: inline-flex;
|
|
@@ -13,4 +13,4 @@
|
|
|
13
13
|
height: ${e=>e.sizeInUnits?e.sizeInUnits:s.getSizeValueWithUnits(e.theme,e.size)};
|
|
14
14
|
width: ${e=>e.sizeInUnits?e.sizeInUnits:s.getSizeValueWithUnits(e.theme,e.size)};
|
|
15
15
|
}
|
|
16
|
-
`,a=T.forwardRef((e,l)=>{const{image:r,icon:c="user",
|
|
16
|
+
`,a=T.forwardRef((e,l)=>{const{image:r,icon:c="user",sizeInUnits:t,borderRadius:u="curved",onFocus:d=()=>{},onBlur:m=()=>{},onClick:g=()=>{},size:o="small",color:h="primary",className:y="",style:z={},...b}=e,U={theme:f.useTheme(),color:h,style:z,size:o,sizeInUnits:t,className:"lnc-ui-avatar "+y};return n.jsx(w,{ref:l,...U,borderRadius:u,onClick:g,onFocus:d,onBlur:m,...b,children:r?n.jsx("img",{src:r}):n.jsx(I,{icon:c,size:o,sizeInUnits:t?`calc(${t} / 2)`:null})})});a.propTypes={image:i.PropTypes.string,icon:i.PropTypes.string,tabIndex:i.PropTypes.number,sizeInUnits:i.PropTypes.string,disabled:i.PropTypes.bool,borderRadius:i.PropTypes.oneOf(["slight","regular","edged","curved","none"]),onBlur:i.PropTypes.func,onFocus:i.PropTypes.func,onClick:i.PropTypes.func,className:i.PropTypes.string,style:i.PropTypes.object,size:i.PropTypes.oneOf(["small","medium","large"]),color:i.PropTypes.oneOf(["primary","secondary","success","warning","danger","information","neutral","gray"])};module.exports=a;
|
package/dist/Avatar.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import I from "react";
|
|
3
|
-
import { P as i } from "./index-
|
|
4
|
-
import { n as U } from "./emotion-styled.browser.esm-
|
|
2
|
+
import { forwardRef as I } from "react";
|
|
3
|
+
import { P as i } from "./index-BYnWp42a.js";
|
|
4
|
+
import { n as U } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
5
5
|
/* empty css */
|
|
6
|
-
import {
|
|
6
|
+
import { b as y, d as t, h as $, a as v } from "./utils-C52T57HO.js";
|
|
7
7
|
import w from "./Icon.js";
|
|
8
|
-
import { u as R } from "./emotion-element-5486c51c.browser.esm-
|
|
8
|
+
import { u as R } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
|
|
9
9
|
const x = U.div`
|
|
10
10
|
border-radius: ${(e) => y(e.theme, e.borderRadius)};
|
|
11
11
|
color: white;
|
|
@@ -21,50 +21,48 @@ const x = U.div`
|
|
|
21
21
|
height: ${(e) => e.sizeInUnits ? e.sizeInUnits : t(e.theme, e.size)};
|
|
22
22
|
width: ${(e) => e.sizeInUnits ? e.sizeInUnits : t(e.theme, e.size)};
|
|
23
23
|
}
|
|
24
|
-
`, C = I
|
|
24
|
+
`, C = I((e, o) => {
|
|
25
25
|
const {
|
|
26
|
-
image:
|
|
26
|
+
image: r,
|
|
27
27
|
icon: l = "user",
|
|
28
|
-
tabIndex: S,
|
|
29
28
|
sizeInUnits: n,
|
|
30
|
-
|
|
31
|
-
borderRadius: d = "curved",
|
|
29
|
+
borderRadius: m = "curved",
|
|
32
30
|
//----------------
|
|
33
|
-
onFocus:
|
|
31
|
+
onFocus: d = () => {
|
|
34
32
|
},
|
|
35
33
|
onBlur: c = () => {
|
|
36
34
|
},
|
|
37
35
|
onClick: u = () => {
|
|
38
36
|
},
|
|
39
37
|
//----------------
|
|
40
|
-
size:
|
|
41
|
-
color:
|
|
42
|
-
className:
|
|
38
|
+
size: a = "small",
|
|
39
|
+
color: h = "primary",
|
|
40
|
+
className: g = "",
|
|
43
41
|
style: f = {},
|
|
44
|
-
...
|
|
45
|
-
} = e,
|
|
42
|
+
...z
|
|
43
|
+
} = e, b = {
|
|
46
44
|
theme: R(),
|
|
47
|
-
color:
|
|
45
|
+
color: h,
|
|
48
46
|
style: f,
|
|
49
|
-
size:
|
|
47
|
+
size: a,
|
|
50
48
|
sizeInUnits: n,
|
|
51
|
-
className: "lnc-ui-avatar " +
|
|
49
|
+
className: "lnc-ui-avatar " + g
|
|
52
50
|
};
|
|
53
51
|
return /* @__PURE__ */ s(
|
|
54
52
|
x,
|
|
55
53
|
{
|
|
56
54
|
ref: o,
|
|
57
|
-
...
|
|
58
|
-
borderRadius:
|
|
55
|
+
...b,
|
|
56
|
+
borderRadius: m,
|
|
59
57
|
onClick: u,
|
|
60
|
-
onFocus:
|
|
58
|
+
onFocus: d,
|
|
61
59
|
onBlur: c,
|
|
62
|
-
...
|
|
63
|
-
children:
|
|
60
|
+
...z,
|
|
61
|
+
children: r ? /* @__PURE__ */ s("img", { src: r }) : /* @__PURE__ */ s(
|
|
64
62
|
w,
|
|
65
63
|
{
|
|
66
64
|
icon: l,
|
|
67
|
-
size:
|
|
65
|
+
size: a,
|
|
68
66
|
sizeInUnits: n ? `calc(${n} / 2)` : null
|
|
69
67
|
}
|
|
70
68
|
)
|
package/dist/Badge.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const h=require("react/jsx-runtime"),p=require("react"),r=require("./index-
|
|
1
|
+
"use strict";const h=require("react/jsx-runtime"),p=require("react"),r=require("./index-BIlhCoy2.cjs"),f=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),s=require("./utils-DTAPpJXU.cjs"),z=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),t=e=>e=="large"?"2rem":e=="medium"?"1.75rem":"1.5rem",R=f.newStyled.div`
|
|
2
2
|
${e=>s.getComponentTypographyCss(e.theme,"Badge",e.size,"enabled")};
|
|
3
3
|
background-color: ${e=>s.getColorRgbaValue(e.theme,"Badge",e.color,"enabled","background","backgroundOpacity")};
|
|
4
4
|
color: ${e=>s.getColorRgbaValue(e.theme,"Badge",e.color,"enabled","text")};
|
package/dist/Badge.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as h } from "react/jsx-runtime";
|
|
2
|
-
import y from "react";
|
|
3
|
-
import { P as r } from "./index-
|
|
4
|
-
import { n as b } from "./emotion-styled.browser.esm-
|
|
5
|
-
import {
|
|
6
|
-
import { u as $ } from "./emotion-element-5486c51c.browser.esm-
|
|
7
|
-
const a = (e) => e == "large" ? "2rem" : e == "medium" ? "1.75rem" : "1.5rem",
|
|
2
|
+
import { forwardRef as y } from "react";
|
|
3
|
+
import { P as r } from "./index-BYnWp42a.js";
|
|
4
|
+
import { n as b } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
5
|
+
import { g as p, a as o, b as z } from "./utils-C52T57HO.js";
|
|
6
|
+
import { u as $ } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
|
|
7
|
+
const a = (e) => e == "large" ? "2rem" : e == "medium" ? "1.75rem" : "1.5rem", B = b.div`
|
|
8
8
|
${(e) => p(e.theme, "Badge", e.size, "enabled")};
|
|
9
|
-
background-color: ${(e) =>
|
|
9
|
+
background-color: ${(e) => o(
|
|
10
10
|
e.theme,
|
|
11
11
|
"Badge",
|
|
12
12
|
e.color,
|
|
@@ -14,7 +14,7 @@ const a = (e) => e == "large" ? "2rem" : e == "medium" ? "1.75rem" : "1.5rem", R
|
|
|
14
14
|
"background",
|
|
15
15
|
"backgroundOpacity"
|
|
16
16
|
)};
|
|
17
|
-
color: ${(e) =>
|
|
17
|
+
color: ${(e) => o(e.theme, "Badge", e.color, "enabled", "text")};
|
|
18
18
|
border-radius: ${(e) => z(e.theme, e.borderRadius)};
|
|
19
19
|
display: inline-flex;
|
|
20
20
|
min-width: ${(e) => a(e.size)};
|
|
@@ -27,7 +27,7 @@ const a = (e) => e == "large" ? "2rem" : e == "medium" ? "1.75rem" : "1.5rem", R
|
|
|
27
27
|
& i {
|
|
28
28
|
font-size: ${(e) => e.size == "small" ? "0.75rem" : e.size == "medium" ? "0.875rem" : "1rem"};
|
|
29
29
|
}
|
|
30
|
-
`,
|
|
30
|
+
`, R = y((e, t) => {
|
|
31
31
|
const {
|
|
32
32
|
borderRadius: i = "curved",
|
|
33
33
|
onClick: n = () => {
|
|
@@ -37,11 +37,18 @@ const a = (e) => e == "large" ? "2rem" : e == "medium" ? "1.75rem" : "1.5rem", R
|
|
|
37
37
|
color: d = "primary",
|
|
38
38
|
size: l = "small",
|
|
39
39
|
children: c,
|
|
40
|
-
...
|
|
41
|
-
} = e,
|
|
42
|
-
|
|
40
|
+
...g
|
|
41
|
+
} = e, u = $(), f = {
|
|
42
|
+
borderRadius: i,
|
|
43
|
+
theme: u,
|
|
44
|
+
size: l,
|
|
45
|
+
color: d,
|
|
46
|
+
className: "lnc-ui-badge " + s,
|
|
47
|
+
style: m
|
|
48
|
+
};
|
|
49
|
+
return /* @__PURE__ */ h(B, { ref: t, ...f, onClick: n, ...g, children: c });
|
|
43
50
|
});
|
|
44
|
-
|
|
51
|
+
R.propTypes = {
|
|
45
52
|
onClick: r.func,
|
|
46
53
|
borderRadius: r.oneOf([
|
|
47
54
|
"slight",
|
|
@@ -66,5 +73,5 @@ B.propTypes = {
|
|
|
66
73
|
size: r.oneOf(["small", "medium", "large"])
|
|
67
74
|
};
|
|
68
75
|
export {
|
|
69
|
-
|
|
76
|
+
R as default
|
|
70
77
|
};
|
package/dist/Breadcrumbs.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const s=require("react/jsx-runtime"),i=require("react"),t=require("./index-
|
|
1
|
+
"use strict";const s=require("react/jsx-runtime"),i=require("react"),t=require("./index-BIlhCoy2.cjs"),c=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),g=require("./utils-DTAPpJXU.cjs"),R=require("./Icon.cjs"),_=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),z=c.newStyled.div`
|
|
2
2
|
display: inline-flex;
|
|
3
3
|
flex-wrap: wrap;
|
|
4
4
|
${o=>g.getComponentTypographyCss(o.theme,"Breadcrumbs",o.size,"enabled")};
|