@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/FlexGrid.js
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { P as e } from "./index-
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
const
|
|
1
|
+
import { jsx as u } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as S, Children as d, isValidElement as y, cloneElement as g } from "react";
|
|
3
|
+
import { P as e } from "./index-BYnWp42a.js";
|
|
4
|
+
import b from "./FlexBox.js";
|
|
5
|
+
import j from "./FlexGridItem.js";
|
|
6
|
+
const x = S((r, t) => {
|
|
7
7
|
const {
|
|
8
|
-
columns:
|
|
9
|
-
spacing:
|
|
10
|
-
rowSpacing:
|
|
11
|
-
columnSpacing:
|
|
12
|
-
justifyContent:
|
|
13
|
-
alignItems:
|
|
14
|
-
children:
|
|
15
|
-
rest:
|
|
16
|
-
} =
|
|
17
|
-
if (!(!n
|
|
18
|
-
return n
|
|
19
|
-
columns:
|
|
20
|
-
spacing:
|
|
21
|
-
rowSpacing:
|
|
22
|
-
columnSpacing:
|
|
8
|
+
columns: o = 12,
|
|
9
|
+
spacing: p,
|
|
10
|
+
rowSpacing: m,
|
|
11
|
+
columnSpacing: a,
|
|
12
|
+
justifyContent: c = "Start",
|
|
13
|
+
alignItems: i = "Stretch",
|
|
14
|
+
children: l,
|
|
15
|
+
rest: s
|
|
16
|
+
} = r, f = d.map(l, (n) => {
|
|
17
|
+
if (!(!y(n) || n.type != j))
|
|
18
|
+
return g(n, {
|
|
19
|
+
columns: o,
|
|
20
|
+
spacing: p,
|
|
21
|
+
rowSpacing: m,
|
|
22
|
+
columnSpacing: a
|
|
23
23
|
});
|
|
24
24
|
});
|
|
25
|
-
return /* @__PURE__ */
|
|
26
|
-
|
|
25
|
+
return /* @__PURE__ */ u(
|
|
26
|
+
b,
|
|
27
27
|
{
|
|
28
|
-
ref:
|
|
28
|
+
ref: t,
|
|
29
29
|
wrap: "Wrap",
|
|
30
|
-
justifyContent:
|
|
31
|
-
alignItems:
|
|
32
|
-
...
|
|
33
|
-
children:
|
|
30
|
+
justifyContent: c,
|
|
31
|
+
alignItems: i,
|
|
32
|
+
...s,
|
|
33
|
+
children: f
|
|
34
34
|
}
|
|
35
35
|
);
|
|
36
36
|
});
|
|
37
|
-
|
|
37
|
+
x.propTypes = {
|
|
38
38
|
/**
|
|
39
39
|
* Number of available grid columns.
|
|
40
40
|
*/
|
|
@@ -74,5 +74,5 @@ g.propTypes = {
|
|
|
74
74
|
])
|
|
75
75
|
};
|
|
76
76
|
export {
|
|
77
|
-
|
|
77
|
+
x as default
|
|
78
78
|
};
|
package/dist/FlexGridItem.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const X=require("react/jsx-runtime"),i=require("react"),n=require("./index-
|
|
1
|
+
"use strict";const X=require("react/jsx-runtime"),i=require("react"),n=require("./index-BIlhCoy2.cjs"),g=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),q=require("./utils-DTAPpJXU.cjs"),$=g.newStyled.div`
|
|
2
2
|
${s=>s.width>0?"":"flex: 1;"}
|
|
3
3
|
min-width: ${s=>100/s.columns}%;
|
|
4
4
|
width: ${s=>s.width}%;
|
package/dist/FlexGridItem.js
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import { jsx as y } from "react/jsx-runtime";
|
|
2
|
-
import N,
|
|
3
|
-
import { P as i } from "./index-
|
|
4
|
-
import { n as I } from "./emotion-styled.browser.esm-
|
|
5
|
-
import { u as M } from "./utils-
|
|
6
|
-
const
|
|
2
|
+
import { forwardRef as N, useState as S, useEffect as b } from "react";
|
|
3
|
+
import { P as i } from "./index-BYnWp42a.js";
|
|
4
|
+
import { n as I } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
5
|
+
import { u as M } from "./utils-C52T57HO.js";
|
|
6
|
+
const W = I.div`
|
|
7
7
|
${(t) => t.width > 0 ? "" : "flex: 1;"}
|
|
8
8
|
min-width: ${(t) => 100 / t.columns}%;
|
|
9
9
|
width: ${(t) => t.width}%;
|
|
10
10
|
padding: ${(t) => t.rowGap}px ${(t) => t.columnGap}px;
|
|
11
11
|
overflow-wrap: break-word;
|
|
12
|
-
`,
|
|
12
|
+
`, j = N((t, x) => {
|
|
13
13
|
const {
|
|
14
14
|
XS: r,
|
|
15
15
|
S: s,
|
|
16
16
|
M: a,
|
|
17
|
-
L:
|
|
17
|
+
L: n,
|
|
18
18
|
XL: d,
|
|
19
19
|
col: u,
|
|
20
20
|
columns: e,
|
|
21
21
|
spacing: p,
|
|
22
|
-
rowSpacing:
|
|
22
|
+
rowSpacing: c,
|
|
23
23
|
columnSpacing: m,
|
|
24
24
|
children: k
|
|
25
25
|
} = t, l = M(), [L, X] = S(0), [g, f] = S(0), [$, w] = S(0);
|
|
26
26
|
b(() => {
|
|
27
27
|
h();
|
|
28
|
-
}, [e, r, s, a,
|
|
28
|
+
}, [e, r, s, a, n, d, u]), b(() => {
|
|
29
29
|
h(), G();
|
|
30
30
|
}, [l]), b(() => {
|
|
31
31
|
G();
|
|
32
|
-
}, [p,
|
|
32
|
+
}, [p, c, m]);
|
|
33
33
|
const h = () => {
|
|
34
34
|
let o = u ? 100 / (e / u) : 0;
|
|
35
35
|
switch (l) {
|
|
@@ -43,18 +43,18 @@ const R = I.div`
|
|
|
43
43
|
o = a ? 100 / (e / a) : s ? 100 / (e / s) : r ? 100 / (e / r) : o;
|
|
44
44
|
break;
|
|
45
45
|
case "L":
|
|
46
|
-
o =
|
|
46
|
+
o = n ? 100 / (e / n) : a ? 100 / (e / a) : s ? 100 / (e / s) : r ? 100 / (e / r) : o;
|
|
47
47
|
break;
|
|
48
48
|
case "XL":
|
|
49
|
-
o = d ? 100 / (e / d) :
|
|
49
|
+
o = d ? 100 / (e / d) : n ? 100 / (e / n) : a ? 100 / (e / a) : s ? 100 / (e / s) : r ? 100 / (e / r) : o;
|
|
50
50
|
break;
|
|
51
51
|
}
|
|
52
52
|
X(o);
|
|
53
53
|
}, G = () => {
|
|
54
|
-
p ? (f(p), w(p)) : (
|
|
54
|
+
p ? (f(p), w(p)) : (c && (isNaN(c) ? f(c[l] ?? 0) : f(c)), m && (isNaN(m) ? w(m[l] ?? 0) : w(m)));
|
|
55
55
|
};
|
|
56
56
|
return /* @__PURE__ */ y(
|
|
57
|
-
|
|
57
|
+
W,
|
|
58
58
|
{
|
|
59
59
|
ref: x,
|
|
60
60
|
columns: e,
|
|
@@ -65,7 +65,7 @@ const R = I.div`
|
|
|
65
65
|
}
|
|
66
66
|
);
|
|
67
67
|
});
|
|
68
|
-
|
|
68
|
+
j.propTypes = {
|
|
69
69
|
/**
|
|
70
70
|
* Number of columns to take up on XS screens.
|
|
71
71
|
*/
|
|
@@ -93,5 +93,5 @@ W.propTypes = {
|
|
|
93
93
|
col: i.number
|
|
94
94
|
};
|
|
95
95
|
export {
|
|
96
|
-
|
|
96
|
+
j as default
|
|
97
97
|
};
|
package/dist/Footer.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const n=require("react/jsx-runtime"),i=require("react"),c=require("./index-
|
|
1
|
+
"use strict";const n=require("react/jsx-runtime"),i=require("react"),c=require("./index-BIlhCoy2.cjs"),e=i.forwardRef((r,o)=>{const{children:t,__TYPE__:_="Footer",...s}=r;return n.jsx("footer",{ref:o,...s,children:t})});e.propTypes={__TYPE__:c.PropTypes.string};e.displayName="Footer";module.exports=e;
|
package/dist/Footer.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import _ from "react";
|
|
3
|
-
import { P as
|
|
4
|
-
const o = _
|
|
5
|
-
const { children: e, __TYPE__:
|
|
2
|
+
import { forwardRef as _ } from "react";
|
|
3
|
+
import { P as f } from "./index-BYnWp42a.js";
|
|
4
|
+
const o = _((r, t) => {
|
|
5
|
+
const { children: e, __TYPE__: m = "Footer", ...p } = r;
|
|
6
6
|
return /* @__PURE__ */ s("footer", { ref: t, ...p, children: e });
|
|
7
7
|
});
|
|
8
8
|
o.propTypes = {
|
|
@@ -10,7 +10,7 @@ o.propTypes = {
|
|
|
10
10
|
* Do not override this property.
|
|
11
11
|
* Should only be used as indicator for type if you are passing custom component.
|
|
12
12
|
*/
|
|
13
|
-
__TYPE__:
|
|
13
|
+
__TYPE__: f.string
|
|
14
14
|
};
|
|
15
15
|
o.displayName = "Footer";
|
|
16
16
|
export {
|
package/dist/FormField.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const s=require("react/jsx-runtime")
|
|
1
|
+
"use strict";const s=require("react/jsx-runtime"),r=require("./index-BIlhCoy2.cjs"),a=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),o=require("./utils-DTAPpJXU.cjs"),b=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),g=a.newStyled.label`
|
|
2
2
|
display: block;
|
|
3
3
|
margin-bottom: 4px;
|
|
4
4
|
${e=>o.getComponentTypographyCss(e.theme,"FormField",e.size,"enabled")}
|
package/dist/FormField.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { jsxs as b, jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import "
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { u as g } from "./emotion-element-5486c51c.browser.esm-CSejtOeT.js";
|
|
2
|
+
import { P as l } from "./index-BYnWp42a.js";
|
|
3
|
+
import { n as m } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
4
|
+
import { g as i, a as n } from "./utils-C52T57HO.js";
|
|
5
|
+
import { u as g } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
|
|
7
6
|
const f = m.label`
|
|
8
7
|
display: block;
|
|
9
8
|
margin-bottom: 4px;
|
|
@@ -27,14 +26,14 @@ const f = m.label`
|
|
|
27
26
|
className: d = "",
|
|
28
27
|
style: p = {},
|
|
29
28
|
text: o = "",
|
|
30
|
-
label:
|
|
29
|
+
label: a = "",
|
|
31
30
|
children: y,
|
|
32
31
|
...u
|
|
33
|
-
} = e,
|
|
32
|
+
} = e, t = g();
|
|
34
33
|
return /* @__PURE__ */ b("div", { style: p, className: "lnc-ui-form-field " + d, children: [
|
|
35
|
-
|
|
34
|
+
a && /* @__PURE__ */ s(f, { theme: t, size: r, children: a }),
|
|
36
35
|
y,
|
|
37
|
-
o && /* @__PURE__ */ s(h, { size: r, theme:
|
|
36
|
+
o && /* @__PURE__ */ s(h, { size: r, theme: t, color: c, children: o })
|
|
38
37
|
] });
|
|
39
38
|
};
|
|
40
39
|
F.propTypes = {
|
package/dist/FormView.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),W=require("react"),r=require("./index-
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),W=require("react"),r=require("./index-BIlhCoy2.cjs"),g=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),$=require("./FlexGrid.cjs"),M=require("./FlexGridItem.cjs"),b=require("./Button.cjs"),m=require("./IconButton.cjs"),Y=require("./TextInput.cjs"),U=require("./CheckBoxInput.cjs"),H=require("./RadioGroup.cjs"),J=require("./NumberInput.cjs"),K=require("./DecimalInput.cjs"),L=require("./PasswordInput.cjs"),Q=require("./TextAreaInput.cjs"),X=require("./TimeInput.cjs"),Z=require("./ColorInput.cjs"),z=require("./FileInput.cjs"),ee=require("./RangeSlider.cjs"),x=require("./utils-DTAPpJXU.cjs"),re=require("./FormField.cjs"),te=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),oe=g.newStyled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: space-between;
|
|
4
4
|
`,se=g.newStyled.form`
|
package/dist/FormView.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as c, jsx as r, Fragment as g } from "react/jsx-runtime";
|
|
2
|
-
import W from "react";
|
|
3
|
-
import { P as e } from "./index-
|
|
4
|
-
import { n as y } from "./emotion-styled.browser.esm-
|
|
2
|
+
import { forwardRef as W } from "react";
|
|
3
|
+
import { P as e } from "./index-BYnWp42a.js";
|
|
4
|
+
import { n as y } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
5
5
|
import M from "./FlexGrid.js";
|
|
6
6
|
import Y from "./FlexGridItem.js";
|
|
7
|
-
import
|
|
7
|
+
import f from "./Button.js";
|
|
8
8
|
import x from "./IconButton.js";
|
|
9
9
|
import U from "./TextInput.js";
|
|
10
10
|
import q from "./CheckBoxInput.js";
|
|
@@ -17,9 +17,9 @@ import X from "./TimeInput.js";
|
|
|
17
17
|
import Z from "./ColorInput.js";
|
|
18
18
|
import z from "./FileInput.js";
|
|
19
19
|
import ee from "./RangeSlider.js";
|
|
20
|
-
import {
|
|
20
|
+
import { c as re, b as te, a as oe } from "./utils-C52T57HO.js";
|
|
21
21
|
import ae from "./FormField.js";
|
|
22
|
-
import { u as ne } from "./emotion-element-5486c51c.browser.esm-
|
|
22
|
+
import { u as ne } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
|
|
23
23
|
const ie = y.div`
|
|
24
24
|
display: flex;
|
|
25
25
|
justify-content: space-between;
|
|
@@ -166,7 +166,7 @@ const ie = y.div`
|
|
|
166
166
|
default:
|
|
167
167
|
return n;
|
|
168
168
|
}
|
|
169
|
-
}, h = W
|
|
169
|
+
}, h = W((d, a) => {
|
|
170
170
|
const {
|
|
171
171
|
__TYPE__: l = "FORM_VIEW",
|
|
172
172
|
goToPreviousView: n,
|
|
@@ -181,17 +181,17 @@ const ie = y.div`
|
|
|
181
181
|
previousActive: V = !0,
|
|
182
182
|
editActive: se,
|
|
183
183
|
disableGoBack: w = !1,
|
|
184
|
-
disableNext:
|
|
185
|
-
disablePrevious:
|
|
184
|
+
disableNext: B = !1,
|
|
185
|
+
disablePrevious: C = !1,
|
|
186
186
|
disableEdit: ce,
|
|
187
|
-
disableDiscard:
|
|
188
|
-
disableSave:
|
|
189
|
-
discardText:
|
|
190
|
-
saveText:
|
|
187
|
+
disableDiscard: A = !1,
|
|
188
|
+
disableSave: F = !1,
|
|
189
|
+
discardText: G = "Discard",
|
|
190
|
+
saveText: S = "Save",
|
|
191
191
|
//------------------
|
|
192
|
-
goToNext:
|
|
192
|
+
goToNext: _ = () => {
|
|
193
193
|
},
|
|
194
|
-
goToPrevious:
|
|
194
|
+
goToPrevious: R = () => {
|
|
195
195
|
},
|
|
196
196
|
onEdit: me = () => {
|
|
197
197
|
},
|
|
@@ -203,8 +203,8 @@ const ie = y.div`
|
|
|
203
203
|
},
|
|
204
204
|
//------------------
|
|
205
205
|
className: ue = "",
|
|
206
|
-
style:
|
|
207
|
-
color:
|
|
206
|
+
style: be = {},
|
|
207
|
+
color: b = "primary",
|
|
208
208
|
size: p = "small",
|
|
209
209
|
children: j,
|
|
210
210
|
...D
|
|
@@ -216,12 +216,12 @@ const ie = y.div`
|
|
|
216
216
|
{
|
|
217
217
|
ref: a,
|
|
218
218
|
theme: O,
|
|
219
|
-
color:
|
|
219
|
+
color: b,
|
|
220
220
|
borderRadius: "regular",
|
|
221
221
|
...D,
|
|
222
222
|
children: [
|
|
223
223
|
v && /* @__PURE__ */ r(
|
|
224
|
-
|
|
224
|
+
f,
|
|
225
225
|
{
|
|
226
226
|
leadingIcon: "arrow-circle-left",
|
|
227
227
|
text: k,
|
|
@@ -238,14 +238,14 @@ const ie = y.div`
|
|
|
238
238
|
{
|
|
239
239
|
label: t.label,
|
|
240
240
|
text: s[t.accessor],
|
|
241
|
-
color: s[t.accessor] ? "danger" :
|
|
241
|
+
color: s[t.accessor] ? "danger" : b,
|
|
242
242
|
size: p,
|
|
243
243
|
children: t.type == "custom" ? t.element : de(
|
|
244
244
|
t.type,
|
|
245
245
|
t.inputProps,
|
|
246
246
|
t.accessor,
|
|
247
247
|
o[t.accessor],
|
|
248
|
-
s[t.accessor] ? "danger" :
|
|
248
|
+
s[t.accessor] ? "danger" : b,
|
|
249
249
|
p
|
|
250
250
|
)
|
|
251
251
|
},
|
|
@@ -259,8 +259,8 @@ const ie = y.div`
|
|
|
259
259
|
{
|
|
260
260
|
btnType: "outline",
|
|
261
261
|
icon: "angle-left",
|
|
262
|
-
disabled:
|
|
263
|
-
onClick: (t) =>
|
|
262
|
+
disabled: C,
|
|
263
|
+
onClick: (t) => R(o, t),
|
|
264
264
|
type: "button"
|
|
265
265
|
}
|
|
266
266
|
),
|
|
@@ -271,34 +271,34 @@ const ie = y.div`
|
|
|
271
271
|
{
|
|
272
272
|
btnType: "outline",
|
|
273
273
|
icon: "angle-right",
|
|
274
|
-
disabled:
|
|
275
|
-
onClick: (t) =>
|
|
274
|
+
disabled: B,
|
|
275
|
+
onClick: (t) => _(o, t),
|
|
276
276
|
type: "button"
|
|
277
277
|
}
|
|
278
278
|
)
|
|
279
279
|
] }),
|
|
280
280
|
/* @__PURE__ */ c("div", { children: [
|
|
281
281
|
/* @__PURE__ */ r(
|
|
282
|
-
|
|
282
|
+
f,
|
|
283
283
|
{
|
|
284
284
|
leadingIcon: "eraser",
|
|
285
285
|
btnType: "outline",
|
|
286
286
|
color: "warning",
|
|
287
|
-
text:
|
|
288
|
-
disabled:
|
|
287
|
+
text: G,
|
|
288
|
+
disabled: A,
|
|
289
289
|
onClick: P,
|
|
290
290
|
type: "button"
|
|
291
291
|
}
|
|
292
292
|
),
|
|
293
293
|
" ",
|
|
294
294
|
/* @__PURE__ */ r(
|
|
295
|
-
|
|
295
|
+
f,
|
|
296
296
|
{
|
|
297
297
|
leadingIcon: "floppy-disk",
|
|
298
298
|
btnType: "tinted",
|
|
299
299
|
color: "success",
|
|
300
|
-
text:
|
|
301
|
-
disabled:
|
|
300
|
+
text: S,
|
|
301
|
+
disabled: F,
|
|
302
302
|
onClick: E
|
|
303
303
|
}
|
|
304
304
|
)
|
package/dist/Grid.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const w=require("react/jsx-runtime"),j=require("react"),t=require("./index-
|
|
1
|
+
"use strict";const w=require("react/jsx-runtime"),j=require("react"),t=require("./index-BIlhCoy2.cjs"),G=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),I=G.newStyled.div`
|
|
2
2
|
display: ${e=>e.inline?"inline-grid":"grid"};
|
|
3
3
|
row-gap: ${e=>e.rowGap?e.rowGap:e.gap?e.gap:0};
|
|
4
4
|
column-gap: ${e=>e.columnGap?e.columnGap:e.gap?e.gap:0};
|
|
@@ -8,6 +8,5 @@
|
|
|
8
8
|
${e=>e.justifyItems&&`justify-items: ${e.justifyItems};`}
|
|
9
9
|
${e=>e.alignItems&&`align-items: ${e.alignItems};`}
|
|
10
10
|
${e=>e.justifyContent&&`justify-content: ${e.justifyContent};`}
|
|
11
|
-
${e=>e.templateAreas&&`grid-template-areas: ${e.templateAreas};`}
|
|
12
|
-
|
|
11
|
+
${e=>e.templateAreas&&`grid-template-areas: ${e.templateAreas};`}
|
|
13
12
|
`,s=j.forwardRef((e,n)=>{const{inline:a=!1,template:r,templateColumns:i,templateRows:l,gap:o,rowGap:p,columnGap:m,justifyItems:y,alignItems:c,justifyContent:g,templateAreas:u,children:d,className:f="",style:T={},...$}=e;var P={inline:a,template:r,templateColumns:i,templateRows:l,gap:o,rowGap:p,columnGap:m,justifyItems:y,alignItems:c,justifyContent:g,templateAreas:u};return w.jsx(I,{ref:n,...P,className:f,style:T,...$,children:d})});s.defaultProps={inline:!1,style:{},className:""};s.propTypes={inline:t.PropTypes.bool,template:t.PropTypes.string,templateColumns:t.PropTypes.string,templateRows:t.PropTypes.string,gap:t.PropTypes.string,rowGap:t.PropTypes.string,columnGap:t.PropTypes.string,justifyItems:t.PropTypes.oneOf(["start","end","center","stretch"]),alignItems:t.PropTypes.oneOf(["start","end","center","stretch"]),placeItems:t.PropTypes.oneOf(["start","end","center","stretch"]),justifyContent:t.PropTypes.oneOf(["start","end","center","stretch","space-between","space-evenly"]),templateAreas:t.PropTypes.string,style:t.PropTypes.object,className:t.PropTypes.string};module.exports=s;
|
package/dist/Grid.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as G } from "react/jsx-runtime";
|
|
2
|
-
import I from "react";
|
|
3
|
-
import { P as e } from "./index-
|
|
4
|
-
import { n as C } from "./emotion-styled.browser.esm-
|
|
5
|
-
const
|
|
2
|
+
import { forwardRef as I } from "react";
|
|
3
|
+
import { P as e } from "./index-BYnWp42a.js";
|
|
4
|
+
import { n as C } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
5
|
+
const h = C.div`
|
|
6
6
|
display: ${(t) => t.inline ? "inline-grid" : "grid"};
|
|
7
7
|
row-gap: ${(t) => t.rowGap ? t.rowGap : t.gap ? t.gap : 0};
|
|
8
8
|
column-gap: ${(t) => t.columnGap ? t.columnGap : t.gap ? t.gap : 0};
|
|
@@ -12,9 +12,8 @@ const R = C.div`
|
|
|
12
12
|
${(t) => t.justifyItems && `justify-items: ${t.justifyItems};`}
|
|
13
13
|
${(t) => t.alignItems && `align-items: ${t.alignItems};`}
|
|
14
14
|
${(t) => t.justifyContent && `justify-content: ${t.justifyContent};`}
|
|
15
|
-
${(t) => t.templateAreas && `grid-template-areas: ${t.templateAreas};`}
|
|
16
|
-
|
|
17
|
-
`, a = I.forwardRef((t, s) => {
|
|
15
|
+
${(t) => t.templateAreas && `grid-template-areas: ${t.templateAreas};`}
|
|
16
|
+
`, a = I((t, s) => {
|
|
18
17
|
const {
|
|
19
18
|
inline: n = !1,
|
|
20
19
|
template: l,
|
|
@@ -32,8 +31,30 @@ const R = C.div`
|
|
|
32
31
|
style: $ = {},
|
|
33
32
|
...w
|
|
34
33
|
} = t;
|
|
35
|
-
var j = {
|
|
36
|
-
|
|
34
|
+
var j = {
|
|
35
|
+
inline: n,
|
|
36
|
+
template: l,
|
|
37
|
+
templateColumns: i,
|
|
38
|
+
templateRows: m,
|
|
39
|
+
gap: r,
|
|
40
|
+
rowGap: o,
|
|
41
|
+
columnGap: g,
|
|
42
|
+
justifyItems: c,
|
|
43
|
+
alignItems: p,
|
|
44
|
+
justifyContent: f,
|
|
45
|
+
templateAreas: d
|
|
46
|
+
};
|
|
47
|
+
return /* @__PURE__ */ G(
|
|
48
|
+
h,
|
|
49
|
+
{
|
|
50
|
+
ref: s,
|
|
51
|
+
...j,
|
|
52
|
+
className: y,
|
|
53
|
+
style: $,
|
|
54
|
+
...w,
|
|
55
|
+
children: u
|
|
56
|
+
}
|
|
57
|
+
);
|
|
37
58
|
});
|
|
38
59
|
a.defaultProps = {
|
|
39
60
|
inline: !1,
|
|
@@ -51,7 +72,14 @@ a.propTypes = {
|
|
|
51
72
|
justifyItems: e.oneOf(["start", "end", "center", "stretch"]),
|
|
52
73
|
alignItems: e.oneOf(["start", "end", "center", "stretch"]),
|
|
53
74
|
placeItems: e.oneOf(["start", "end", "center", "stretch"]),
|
|
54
|
-
justifyContent: e.oneOf([
|
|
75
|
+
justifyContent: e.oneOf([
|
|
76
|
+
"start",
|
|
77
|
+
"end",
|
|
78
|
+
"center",
|
|
79
|
+
"stretch",
|
|
80
|
+
"space-between",
|
|
81
|
+
"space-evenly"
|
|
82
|
+
]),
|
|
55
83
|
templateAreas: e.string,
|
|
56
84
|
//-------------
|
|
57
85
|
style: e.object,
|
package/dist/GridItem.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const f=require("react/jsx-runtime"),p=require("react"),t=require("./index-
|
|
1
|
+
"use strict";const f=require("react/jsx-runtime"),p=require("react"),t=require("./index-BIlhCoy2.cjs"),T=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),P=T.newStyled.div`
|
|
2
2
|
display: ${e=>e.inline?"inline-grid":"grid"};
|
|
3
3
|
row-gap: ${e=>e.rowGap?e.rowGap:e.gap?e.gap:0};
|
|
4
4
|
column-gap: ${e=>e.columnGap?e.columnGap:e.gap?e.gap:0};
|
|
@@ -11,5 +11,5 @@
|
|
|
11
11
|
${e=>e.colStart&&`grid-column-start: ${e.colStart};`}
|
|
12
12
|
${e=>(e.colEnd||e.colSpan)&&`grid-column-end: span ${e.colEnd||e.colSpan};`}
|
|
13
13
|
${e=>e.rowStart&&`grid-row-start: ${e.rowStart};`}
|
|
14
|
-
${e=>(e.rowEnd||e.rowSpan)&&`grid-row-end: span ${e.rowEnd||e.rowSpan};`}
|
|
14
|
+
${e=>(e.rowEnd||e.rowSpan)&&`grid-row-end: span ${e.rowEnd||e.rowSpan};`}
|
|
15
15
|
`,r=p.forwardRef((e,a)=>{const{colStart:n,colEnd:l,rowStart:o,rowEnd:i,colSpan:s,rowSpan:c,justifySelf:d,alignSelf:m,area:S,className:g="",style:u={},children:w,...y}=e;var $={colStart:n,colEnd:l,rowStart:o,rowEnd:i,colSpan:s,rowSpan:c,justifySelf:d,alignSelf:m,area:S};return f.jsx(P,{ref:a,...$,className:g,style:u,...y,children:w})});r.propTypes={colStart:t.PropTypes.number,colEnd:t.PropTypes.number,rowStart:t.PropTypes.number,rowEnd:t.PropTypes.number,colSpan:t.PropTypes.number,rowSpan:t.PropTypes.number,justifySelf:t.PropTypes.oneOf(["start","end","center","stretch"]),alignSelf:t.PropTypes.oneOf(["start","end","center","stretch"]),area:t.PropTypes.string,style:t.PropTypes.object,className:t.PropTypes.string};module.exports=r;
|
package/dist/GridItem.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import y from "react";
|
|
3
|
-
import { P as t } from "./index-
|
|
4
|
-
import { n as E } from "./emotion-styled.browser.esm-
|
|
1
|
+
import { jsx as u } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as y } from "react";
|
|
3
|
+
import { P as t } from "./index-BYnWp42a.js";
|
|
4
|
+
import { n as E } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
5
5
|
const b = E.div`
|
|
6
6
|
display: ${(e) => e.inline ? "inline-grid" : "grid"};
|
|
7
7
|
row-gap: ${(e) => e.rowGap ? e.rowGap : e.gap ? e.gap : 0};
|
|
@@ -15,8 +15,8 @@ const b = E.div`
|
|
|
15
15
|
${(e) => e.colStart && `grid-column-start: ${e.colStart};`}
|
|
16
16
|
${(e) => (e.colEnd || e.colSpan) && `grid-column-end: span ${e.colEnd || e.colSpan};`}
|
|
17
17
|
${(e) => e.rowStart && `grid-row-start: ${e.rowStart};`}
|
|
18
|
-
${(e) => (e.rowEnd || e.rowSpan) && `grid-row-end: span ${e.rowEnd || e.rowSpan};`}
|
|
19
|
-
`, j = y
|
|
18
|
+
${(e) => (e.rowEnd || e.rowSpan) && `grid-row-end: span ${e.rowEnd || e.rowSpan};`}
|
|
19
|
+
`, j = y((e, a) => {
|
|
20
20
|
const {
|
|
21
21
|
colStart: r,
|
|
22
22
|
colEnd: n,
|
|
@@ -30,10 +30,30 @@ const b = E.div`
|
|
|
30
30
|
className: S = "",
|
|
31
31
|
style: f = {},
|
|
32
32
|
children: $,
|
|
33
|
-
...
|
|
33
|
+
...w
|
|
34
34
|
} = e;
|
|
35
|
-
var
|
|
36
|
-
|
|
35
|
+
var s = {
|
|
36
|
+
colStart: r,
|
|
37
|
+
colEnd: n,
|
|
38
|
+
rowStart: l,
|
|
39
|
+
rowEnd: o,
|
|
40
|
+
colSpan: i,
|
|
41
|
+
rowSpan: m,
|
|
42
|
+
justifySelf: d,
|
|
43
|
+
alignSelf: c,
|
|
44
|
+
area: g
|
|
45
|
+
};
|
|
46
|
+
return /* @__PURE__ */ u(
|
|
47
|
+
b,
|
|
48
|
+
{
|
|
49
|
+
ref: a,
|
|
50
|
+
...s,
|
|
51
|
+
className: S,
|
|
52
|
+
style: f,
|
|
53
|
+
...w,
|
|
54
|
+
children: $
|
|
55
|
+
}
|
|
56
|
+
);
|
|
37
57
|
});
|
|
38
58
|
j.propTypes = {
|
|
39
59
|
/**
|
package/dist/Header.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const i=require("react/jsx-runtime"),o=require("react"),a=require("./index-
|
|
1
|
+
"use strict";const i=require("react/jsx-runtime"),o=require("react"),a=require("./index-BIlhCoy2.cjs"),e=o.forwardRef((r,s)=>{const{children:t,__TYPE__:c="Header",...n}=r;return i.jsx("header",{ref:s,...n,children:t})});e.propTypes={__TYPE__:a.PropTypes.string};e.displayName="Header";module.exports=e;
|
package/dist/Header.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { P as
|
|
4
|
-
const r =
|
|
5
|
-
const { children:
|
|
6
|
-
return /* @__PURE__ */
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as t } from "react";
|
|
3
|
+
import { P as d } from "./index-BYnWp42a.js";
|
|
4
|
+
const r = t((e, o) => {
|
|
5
|
+
const { children: a, __TYPE__: _ = "Header", ...p } = e;
|
|
6
|
+
return /* @__PURE__ */ s("header", { ref: o, ...p, children: a });
|
|
7
7
|
});
|
|
8
8
|
r.propTypes = {
|
|
9
9
|
/**
|
|
10
10
|
* Do not override this property.
|
|
11
11
|
* Should only be used as indicator for type if you are passing custom component.
|
|
12
12
|
*/
|
|
13
|
-
__TYPE__:
|
|
13
|
+
__TYPE__: d.string
|
|
14
14
|
};
|
|
15
15
|
r.displayName = "Header";
|
|
16
16
|
export {
|
package/dist/Icon.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
"use strict";const n=require("react/jsx-runtime"),z=require("react")
|
|
1
|
+
"use strict";const n=require("react/jsx-runtime"),z=require("react"),s=require("./index-BIlhCoy2.cjs"),P=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),o=require("./utils-DTAPpJXU.cjs"),b=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),I=P.newStyled.span`
|
|
2
2
|
box-sizing: border-box;
|
|
3
3
|
${e=>e.sizeInUnits&&e.sizeInUnits!=""?`font-size: ${e.sizeInUnits}`:o.getComponentTypographyCss(e.theme,"Icon",e.size,"enabled")};
|
|
4
4
|
${e=>e.color&&`color: ${o.getColorRgbaValue(e.theme,"Icon",e.color,"enabled","icon")}`};
|
|
5
5
|
display: inline-flex;
|
|
6
6
|
justify-content: center;
|
|
7
7
|
align-items: center;
|
|
8
|
-
`,t=z.forwardRef((e,r)=>{const{id:h="",icon:i="",iconStyle:c="solid",tooltip:l="",sizeInUnits:a="",size:y="small",color:m,className:
|
|
8
|
+
`,t=z.forwardRef((e,r)=>{const{id:h="",icon:i="",iconStyle:c="solid",tooltip:l="",sizeInUnits:a="",size:y="small",color:m,className:d="",style:u={},...p}=e,g={theme:b.useTheme(),size:y,color:m,sizeInUnits:a},f=()=>{var T=c==="solid"?"fas":"far";return`${T} fa-${i} fa-fw`};return n.jsx(I,{ref:r,...g,tooltip:l,className:d,style:u,...p,children:n.jsx("i",{"data-control":!!e["data-control"],className:f()})})});t.propTypes={id:s.PropTypes.string,icon:s.PropTypes.string,iconStyle:s.PropTypes.oneOf(["solid","regular"]),tooltip:s.PropTypes.string,className:s.PropTypes.string,style:s.PropTypes.object,size:s.PropTypes.oneOf(["small","medium","large"]),sizeInUnits:s.PropTypes.string,color:s.PropTypes.oneOf(["primary","secondary","success","danger","warning","information","neutral","gray"])};module.exports=t;
|