@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
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";const s=require("react/jsx-runtime"),C=require("react"),o=require("./index-BIlhCoy2.cjs"),N=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),_=require("./react-toastify.esm-Dqcb4SQT.cjs");;/* empty css */const t=require("./utils-DTAPpJXU.cjs"),R=require("./ThemeProvider.cjs"),v=N.newStyled.div`
|
|
2
|
+
& .lnc-notification {
|
|
3
|
+
& > div {
|
|
4
|
+
background-color: ${e=>t.getColorRgbaValue(e.theme,"Notification",e.color,"enabled","background","backgroundOpacity")};
|
|
5
|
+
|
|
6
|
+
box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1),
|
|
7
|
+
0px 4px 6px -2px rgba(0, 0, 0, 0.05);
|
|
8
|
+
border: ${e=>`1px solid ${t.getColorRgbaValue(e.theme,"Notification","default","enabled","border")}`};
|
|
9
|
+
border-radius: ${e=>t.getBorderRadiusValueWithUnits(e.theme,"regular")};
|
|
10
|
+
}
|
|
11
|
+
& .Toastify__close-button {
|
|
12
|
+
& svg {
|
|
13
|
+
fill: ${e=>t.getColorRgbaValue(e.theme,"Notification","default","enabled","icon")};
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
& .Toastify__toast--success {
|
|
17
|
+
& svg {
|
|
18
|
+
fill: ${e=>t.getColorRgbaValue(e.theme,"Notification","success","enabled","icon")};
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
& .Toastify__toast--information {
|
|
22
|
+
& svg {
|
|
23
|
+
fill: ${e=>t.getColorRgbaValue(e.theme,"Notification","information","enabled","icon")};
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
& .Toastify__toast--danger {
|
|
27
|
+
& svg {
|
|
28
|
+
fill: ${e=>t.getColorRgbaValue(e.theme,"Notification","warning","enabled","icon")};
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
& .Toastify__toast--error {
|
|
32
|
+
& svg {
|
|
33
|
+
fill: ${e=>t.getColorRgbaValue(e.theme,"Notification","danger","enabled","icon")};
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
`,r=C.forwardRef((e,i)=>{const{position:a="top-right",autoClose:n=5e5,hideProgressBar:l=!0,newestOnTop:c=!0,closeOnClick:p=!0,rtl:u=!1,pauseOnFocusLoss:b=!1,draggable:g=!1,pauseOnHover:d=!1,closeButton:f=!0,className:y="",style:m={},toastContainerProps:T,children:O,...h}=e,{theme:P}=R.useTheme(),x={theme:P,className:"lnc-ui-notification "+y,style:m};return s.jsx(v,{ref:i,...x,...h,children:s.jsx(_.ToastContainer,{position:a,autoClose:n,hideProgressBar:l,newestOnTop:c,closeOnClick:p,rtl:u,pauseOnFocusLoss:b,draggable:g,pauseOnHover:d,closeButton:f,className:"lnc-notification",...T})})});r.propTypes={position:o.PropTypes.oneOf(["top-right","top-center","top-left","bottom-right","bottom-center","bottom-left"]),autoClose:o.PropTypes.number,hideProgressBar:o.PropTypes.bool,newestOnTop:o.PropTypes.bool,closeOnClick:o.PropTypes.bool,rtl:o.PropTypes.bool,pauseOnFocusLoss:o.PropTypes.bool,draggable:o.PropTypes.bool,pauseOnHover:o.PropTypes.bool,closeButton:o.PropTypes.bool,className:o.PropTypes.string,style:o.PropTypes.object,toastContainerProps:o.PropTypes.any};module.exports=r;
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as T } from "react";
|
|
3
|
+
import { P as t } from "./index-BYnWp42a.js";
|
|
4
|
+
import { n as O } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
5
|
+
import { T as _ } from "./react-toastify.esm-CkXGwKXL.js";
|
|
6
|
+
/* empty css */
|
|
7
|
+
import { a as e, b as v } from "./utils-C52T57HO.js";
|
|
8
|
+
import { useTheme as C } from "./ThemeProvider.js";
|
|
9
|
+
const $ = O.div`
|
|
10
|
+
& .lnc-notification {
|
|
11
|
+
& > div {
|
|
12
|
+
background-color: ${(o) => e(
|
|
13
|
+
o.theme,
|
|
14
|
+
"Notification",
|
|
15
|
+
o.color,
|
|
16
|
+
"enabled",
|
|
17
|
+
"background",
|
|
18
|
+
"backgroundOpacity"
|
|
19
|
+
)};
|
|
20
|
+
|
|
21
|
+
box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1),
|
|
22
|
+
0px 4px 6px -2px rgba(0, 0, 0, 0.05);
|
|
23
|
+
border: ${(o) => `1px solid ${e(
|
|
24
|
+
o.theme,
|
|
25
|
+
"Notification",
|
|
26
|
+
"default",
|
|
27
|
+
"enabled",
|
|
28
|
+
"border"
|
|
29
|
+
)}`};
|
|
30
|
+
border-radius: ${(o) => v(o.theme, "regular")};
|
|
31
|
+
}
|
|
32
|
+
& .Toastify__close-button {
|
|
33
|
+
& svg {
|
|
34
|
+
fill: ${(o) => e(
|
|
35
|
+
o.theme,
|
|
36
|
+
"Notification",
|
|
37
|
+
"default",
|
|
38
|
+
"enabled",
|
|
39
|
+
"icon"
|
|
40
|
+
)};
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
& .Toastify__toast--success {
|
|
44
|
+
& svg {
|
|
45
|
+
fill: ${(o) => e(
|
|
46
|
+
o.theme,
|
|
47
|
+
"Notification",
|
|
48
|
+
"success",
|
|
49
|
+
"enabled",
|
|
50
|
+
"icon"
|
|
51
|
+
)};
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
& .Toastify__toast--information {
|
|
55
|
+
& svg {
|
|
56
|
+
fill: ${(o) => e(
|
|
57
|
+
o.theme,
|
|
58
|
+
"Notification",
|
|
59
|
+
"information",
|
|
60
|
+
"enabled",
|
|
61
|
+
"icon"
|
|
62
|
+
)};
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
& .Toastify__toast--danger {
|
|
66
|
+
& svg {
|
|
67
|
+
fill: ${(o) => e(
|
|
68
|
+
o.theme,
|
|
69
|
+
"Notification",
|
|
70
|
+
"warning",
|
|
71
|
+
"enabled",
|
|
72
|
+
"icon"
|
|
73
|
+
)};
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
& .Toastify__toast--error {
|
|
77
|
+
& svg {
|
|
78
|
+
fill: ${(o) => e(
|
|
79
|
+
o.theme,
|
|
80
|
+
"Notification",
|
|
81
|
+
"danger",
|
|
82
|
+
"enabled",
|
|
83
|
+
"icon"
|
|
84
|
+
)};
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
`, P = T((o, a) => {
|
|
89
|
+
const {
|
|
90
|
+
position: s = "top-right",
|
|
91
|
+
autoClose: n = 5e5,
|
|
92
|
+
hideProgressBar: r = !0,
|
|
93
|
+
newestOnTop: l = !0,
|
|
94
|
+
closeOnClick: c = !0,
|
|
95
|
+
rtl: f = !1,
|
|
96
|
+
pauseOnFocusLoss: p = !1,
|
|
97
|
+
draggable: m = !1,
|
|
98
|
+
pauseOnHover: b = !1,
|
|
99
|
+
closeButton: d = !0,
|
|
100
|
+
className: u = "",
|
|
101
|
+
style: g = {},
|
|
102
|
+
toastContainerProps: h,
|
|
103
|
+
children: w,
|
|
104
|
+
...y
|
|
105
|
+
} = o, { theme: N } = C(), x = {
|
|
106
|
+
theme: N,
|
|
107
|
+
className: "lnc-ui-notification " + u,
|
|
108
|
+
style: g
|
|
109
|
+
};
|
|
110
|
+
return /* @__PURE__ */ i($, { ref: a, ...x, ...y, children: /* @__PURE__ */ i(
|
|
111
|
+
_,
|
|
112
|
+
{
|
|
113
|
+
position: s,
|
|
114
|
+
autoClose: n,
|
|
115
|
+
hideProgressBar: r,
|
|
116
|
+
newestOnTop: l,
|
|
117
|
+
closeOnClick: c,
|
|
118
|
+
rtl: f,
|
|
119
|
+
pauseOnFocusLoss: p,
|
|
120
|
+
draggable: m,
|
|
121
|
+
pauseOnHover: b,
|
|
122
|
+
closeButton: d,
|
|
123
|
+
className: "lnc-notification",
|
|
124
|
+
...h
|
|
125
|
+
}
|
|
126
|
+
) });
|
|
127
|
+
});
|
|
128
|
+
P.propTypes = {
|
|
129
|
+
position: t.oneOf([
|
|
130
|
+
"top-right",
|
|
131
|
+
"top-center",
|
|
132
|
+
"top-left",
|
|
133
|
+
"bottom-right",
|
|
134
|
+
"bottom-center",
|
|
135
|
+
"bottom-left"
|
|
136
|
+
]),
|
|
137
|
+
/**
|
|
138
|
+
* Value in ms
|
|
139
|
+
*/
|
|
140
|
+
autoClose: t.number,
|
|
141
|
+
hideProgressBar: t.bool,
|
|
142
|
+
newestOnTop: t.bool,
|
|
143
|
+
closeOnClick: t.bool,
|
|
144
|
+
/**
|
|
145
|
+
* Right to Left
|
|
146
|
+
*/
|
|
147
|
+
rtl: t.bool,
|
|
148
|
+
pauseOnFocusLoss: t.bool,
|
|
149
|
+
draggable: t.bool,
|
|
150
|
+
pauseOnHover: t.bool,
|
|
151
|
+
closeButton: t.bool,
|
|
152
|
+
//----------------------------
|
|
153
|
+
className: t.string,
|
|
154
|
+
style: t.object,
|
|
155
|
+
/**
|
|
156
|
+
* Other react-toastify ToastContainer props.
|
|
157
|
+
*/
|
|
158
|
+
toastContainerProps: t.any
|
|
159
|
+
};
|
|
160
|
+
export {
|
|
161
|
+
P as default
|
|
162
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";const i=require("react/jsx-runtime"),P=require("react"),t=require("./index-BIlhCoy2.cjs"),w=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs");;/* empty css */const N=require("./Icon.cjs"),o=require("./utils-DTAPpJXU.cjs"),T=require("./Avatar.cjs"),j=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),v=w.newStyled.div`
|
|
2
|
+
${e=>o.getComponentTypographyCss(e.theme,"Notification","small","enabled")};
|
|
3
|
+
|
|
4
|
+
word-wrap: break-word;
|
|
5
|
+
box-sizing: border-box;
|
|
6
|
+
display: flex;
|
|
7
|
+
gap: 1rem;
|
|
8
|
+
justify-content: space-between;
|
|
9
|
+
|
|
10
|
+
& .notification-actions {
|
|
11
|
+
align-items: center;
|
|
12
|
+
${e=>e.sideButtons&&"margin: -14px"};
|
|
13
|
+
flex-direction: ${e=>e.sideButtons?"column":"row"};
|
|
14
|
+
${e=>e.sideButtons&&"margin-left: auto"};
|
|
15
|
+
${e=>e.inlineActions==!1&&e.sideButtons==!1&&"padding-top: 4px"};
|
|
16
|
+
gap: ${e=>e.sideButtons?"0":"1rem"};
|
|
17
|
+
display: flex;
|
|
18
|
+
|
|
19
|
+
color: ${e=>o.getColorRgbaValue(e.theme,"Notification",e.color,"enabled","action")};
|
|
20
|
+
|
|
21
|
+
& > button {
|
|
22
|
+
${e=>e.sideButtons&&"flex: 1; width: 100%;"}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
& .notification-main {
|
|
26
|
+
word-wrap: break-word;
|
|
27
|
+
box-sizing: border-box;
|
|
28
|
+
display: flex;
|
|
29
|
+
gap: 1rem;
|
|
30
|
+
}
|
|
31
|
+
& .notification-content {
|
|
32
|
+
display: flex;
|
|
33
|
+
flex-direction: column;
|
|
34
|
+
gap: 0.25rem;
|
|
35
|
+
color: ${e=>o.getColorRgbaValue(e.theme,"Notification",e.color,"enabled","text")};
|
|
36
|
+
}
|
|
37
|
+
& .notification-icon {
|
|
38
|
+
align-items: flex-start;
|
|
39
|
+
& i {
|
|
40
|
+
font-size: 1.25rem;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
& .notification-title {
|
|
44
|
+
font-weight: ${e=>o.getComponentPropValue(e.theme,"Notification",e.color,"enabled","fontWeightTitle")};
|
|
45
|
+
color: ${e=>o.getColorRgbaValue(e.theme,"Notification",e.color,"enabled","title")};
|
|
46
|
+
}
|
|
47
|
+
`,c=P.forwardRef((e,l)=>{const{title:d,icon:a,className:m,style:p={},size:f="small",avatar:u=!1,actions:r,inlineActions:n=!1,sideButtons:s=!1,iconProps:g,avatarProps:x,children:y,...b}=e,h={theme:j.useTheme(),className:m,style:p,size:f,inlineActions:n,sideButtons:s};return i.jsxs(v,{ref:l,...h,...b,children:[i.jsxs("div",{className:"notification-main",children:[u?i.jsx(T,{sizeInUnits:"2.75rem",...x}):a&&i.jsx(N,{className:"notification-icon",icon:a,...g}),i.jsxs("div",{className:"notification-content",children:[i.jsx("div",{className:"notification-title",children:d}),y,!n&&!s&&i.jsx("div",{className:"notification-actions",children:r})]})]}),(n||s)&&i.jsx("div",{className:"notification-actions",children:r})]})});c.propTypes={avatar:t.PropTypes.bool,title:t.PropTypes.string,icon:t.PropTypes.string,actions:t.PropTypes.element,inlineActions:t.PropTypes.bool,sideButtons:t.PropTypes.bool,className:t.PropTypes.string,style:t.PropTypes.object,iconProps:t.PropTypes.any,avatarProps:t.PropTypes.any};module.exports=c;
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { jsxs as a, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as N } from "react";
|
|
3
|
+
import { P as i } from "./index-BYnWp42a.js";
|
|
4
|
+
import { n as w } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
5
|
+
/* empty css */
|
|
6
|
+
import v from "./Icon.js";
|
|
7
|
+
import { g as $, a as s, c as B } from "./utils-C52T57HO.js";
|
|
8
|
+
import P from "./Avatar.js";
|
|
9
|
+
import { u as z } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
|
|
10
|
+
const T = w.div`
|
|
11
|
+
${(t) => $(t.theme, "Notification", "small", "enabled")};
|
|
12
|
+
|
|
13
|
+
word-wrap: break-word;
|
|
14
|
+
box-sizing: border-box;
|
|
15
|
+
display: flex;
|
|
16
|
+
gap: 1rem;
|
|
17
|
+
justify-content: space-between;
|
|
18
|
+
|
|
19
|
+
& .notification-actions {
|
|
20
|
+
align-items: center;
|
|
21
|
+
${(t) => t.sideButtons && "margin: -14px"};
|
|
22
|
+
flex-direction: ${(t) => t.sideButtons ? "column" : "row"};
|
|
23
|
+
${(t) => t.sideButtons && "margin-left: auto"};
|
|
24
|
+
${(t) => t.inlineActions == !1 && t.sideButtons == !1 && "padding-top: 4px"};
|
|
25
|
+
gap: ${(t) => t.sideButtons ? "0" : "1rem"};
|
|
26
|
+
display: flex;
|
|
27
|
+
|
|
28
|
+
color: ${(t) => s(
|
|
29
|
+
t.theme,
|
|
30
|
+
"Notification",
|
|
31
|
+
t.color,
|
|
32
|
+
"enabled",
|
|
33
|
+
"action"
|
|
34
|
+
)};
|
|
35
|
+
|
|
36
|
+
& > button {
|
|
37
|
+
${(t) => t.sideButtons && "flex: 1; width: 100%;"}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
& .notification-main {
|
|
41
|
+
word-wrap: break-word;
|
|
42
|
+
box-sizing: border-box;
|
|
43
|
+
display: flex;
|
|
44
|
+
gap: 1rem;
|
|
45
|
+
}
|
|
46
|
+
& .notification-content {
|
|
47
|
+
display: flex;
|
|
48
|
+
flex-direction: column;
|
|
49
|
+
gap: 0.25rem;
|
|
50
|
+
color: ${(t) => s(
|
|
51
|
+
t.theme,
|
|
52
|
+
"Notification",
|
|
53
|
+
t.color,
|
|
54
|
+
"enabled",
|
|
55
|
+
"text"
|
|
56
|
+
)};
|
|
57
|
+
}
|
|
58
|
+
& .notification-icon {
|
|
59
|
+
align-items: flex-start;
|
|
60
|
+
& i {
|
|
61
|
+
font-size: 1.25rem;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
& .notification-title {
|
|
65
|
+
font-weight: ${(t) => B(
|
|
66
|
+
t.theme,
|
|
67
|
+
"Notification",
|
|
68
|
+
t.color,
|
|
69
|
+
"enabled",
|
|
70
|
+
"fontWeightTitle"
|
|
71
|
+
)};
|
|
72
|
+
color: ${(t) => s(
|
|
73
|
+
t.theme,
|
|
74
|
+
"Notification",
|
|
75
|
+
t.color,
|
|
76
|
+
"enabled",
|
|
77
|
+
"title"
|
|
78
|
+
)};
|
|
79
|
+
}
|
|
80
|
+
`, j = N((t, c) => {
|
|
81
|
+
const {
|
|
82
|
+
title: m,
|
|
83
|
+
icon: r,
|
|
84
|
+
className: f,
|
|
85
|
+
style: d = {},
|
|
86
|
+
size: p = "small",
|
|
87
|
+
avatar: g = !1,
|
|
88
|
+
actions: l,
|
|
89
|
+
inlineActions: e = !1,
|
|
90
|
+
sideButtons: n = !1,
|
|
91
|
+
iconProps: b,
|
|
92
|
+
avatarProps: h,
|
|
93
|
+
children: u,
|
|
94
|
+
...x
|
|
95
|
+
} = t, y = {
|
|
96
|
+
theme: z(),
|
|
97
|
+
className: f,
|
|
98
|
+
style: d,
|
|
99
|
+
size: p,
|
|
100
|
+
inlineActions: e,
|
|
101
|
+
sideButtons: n
|
|
102
|
+
};
|
|
103
|
+
return /* @__PURE__ */ a(T, { ref: c, ...y, ...x, children: [
|
|
104
|
+
/* @__PURE__ */ a("div", { className: "notification-main", children: [
|
|
105
|
+
g ? /* @__PURE__ */ o(P, { sizeInUnits: "2.75rem", ...h }) : r && /* @__PURE__ */ o(v, { className: "notification-icon", icon: r, ...b }),
|
|
106
|
+
/* @__PURE__ */ a("div", { className: "notification-content", children: [
|
|
107
|
+
/* @__PURE__ */ o("div", { className: "notification-title", children: m }),
|
|
108
|
+
u,
|
|
109
|
+
!e && !n && /* @__PURE__ */ o("div", { className: "notification-actions", children: l })
|
|
110
|
+
] })
|
|
111
|
+
] }),
|
|
112
|
+
(e || n) && /* @__PURE__ */ o("div", { className: "notification-actions", children: l })
|
|
113
|
+
] });
|
|
114
|
+
});
|
|
115
|
+
j.propTypes = {
|
|
116
|
+
avatar: i.bool,
|
|
117
|
+
title: i.string,
|
|
118
|
+
/**
|
|
119
|
+
* If `avatar={true}` icon won't be displayed
|
|
120
|
+
*/
|
|
121
|
+
icon: i.string,
|
|
122
|
+
actions: i.element,
|
|
123
|
+
inlineActions: i.bool,
|
|
124
|
+
sideButtons: i.bool,
|
|
125
|
+
//-----------------------
|
|
126
|
+
className: i.string,
|
|
127
|
+
style: i.object,
|
|
128
|
+
iconProps: i.any,
|
|
129
|
+
avatarProps: i.any
|
|
130
|
+
};
|
|
131
|
+
export {
|
|
132
|
+
j as default
|
|
133
|
+
};
|
package/dist/NumberInput.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const i=require("react/jsx-runtime"),t=require("./index-
|
|
1
|
+
"use strict";const i=require("react/jsx-runtime"),t=require("./index-BIlhCoy2.cjs"),l=require("react"),U=require("./index-DaiUAQVF.cjs"),d=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),n=require("./utils-DTAPpJXU.cjs"),A=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),B=d.newStyled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
|
package/dist/NumberInput.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as A, jsx as g } from "react/jsx-runtime";
|
|
2
|
-
import { P as n } from "./index-
|
|
2
|
+
import { P as n } from "./index-BYnWp42a.js";
|
|
3
3
|
import P, { useState as C, useEffect as W, useCallback as G } from "react";
|
|
4
|
-
import { d as M } from "./index-
|
|
5
|
-
import { n as i } from "./emotion-styled.browser.esm-
|
|
6
|
-
import {
|
|
7
|
-
import { u as q } from "./emotion-element-5486c51c.browser.esm-
|
|
4
|
+
import { d as M } from "./index-CNBqQrtK.js";
|
|
5
|
+
import { n as i } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
6
|
+
import { d, a, b as U, e as D, h as S, g as X } from "./utils-C52T57HO.js";
|
|
7
|
+
import { u as q } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
|
|
8
8
|
const H = i.div`
|
|
9
9
|
display: flex;
|
|
10
10
|
align-items: center;
|
package/dist/PageLayout.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const x=require("react/jsx-runtime"),a=require("react"),E=require("./index-
|
|
1
|
+
"use strict";const x=require("react/jsx-runtime"),a=require("react"),E=require("./index-BIlhCoy2.cjs"),c=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),S=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),T=c.newStyled.section`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: auto;
|
|
4
4
|
flex-direction: ${s=>s.hasSidebar?"row":"column"};
|
|
@@ -23,4 +23,4 @@
|
|
|
23
23
|
flex: 0 0 15rem;
|
|
24
24
|
height: 100%;
|
|
25
25
|
}
|
|
26
|
-
`,u=a.forwardRef((s,f)=>{const{children:o,isChild:h,__TYPE__:C="PageLayout",...p}=s,P=
|
|
26
|
+
`,u=a.forwardRef((s,f)=>{const{children:o,isChild:h,__TYPE__:C="PageLayout",...p}=s,P=S.useTheme(),g=a.Children.toArray(o).some(e=>{var t;return e.props.__TYPE__||((t=e==null?void 0:e.type)==null?void 0:t.displayName)=="Sidebar"}),m=e=>{let t,i,l;if(a.Children.forEach(e,(r,d)=>{var _,n,y;if(r.props.__TYPE__=="Sidebar"||((_=r==null?void 0:r.type)==null?void 0:_.displayName)==="Sidebar"){if(i)throw"Found multiple ocurrences of Sidebar component on the same level in the component tree.";i=d+1}else if(r.props.__TYPE__=="PageLayout"||((n=r==null?void 0:r.type)==null?void 0:n.displayName)==="PageLayout"){if(t)throw"Found multiple ocurrences of PageLayout component on the same level in the component tree.";t=d+1}else if(r.props.__TYPE__=="Content"||((y=r==null?void 0:r.type)==null?void 0:y.displayName)==="Content"){if(l)throw"Found multiple ocurrences of Content component on the same level in the component tree.";l=d+1}}),t&&i)return i<t?"left":"right";if(l&&i)return i<l?"left":"right"},b=a.Children.map(o,e=>{var t,i;if(a.isValidElement(e)){if(e.props.__TYPE__=="Sidebar"||((t=e.type)==null?void 0:t.displayName)==="Sidebar")return a.cloneElement(e,{placement:m(o)});if(e.props.__TYPE__=="PageLayout"||((i=e.type)==null?void 0:i.displayName)==="PageLayout")return React.cloneElement(e,{isChild:!0})}return e});return x.jsx(T,{isChild:h,hasSidebar:g,theme:P,ref:f,...p,children:b})});u.propTypes={__TYPE__:E.PropTypes.string};u.displayName="PageLayout";module.exports=u;
|
package/dist/PageLayout.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as E } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import { P as
|
|
4
|
-
import { n as
|
|
5
|
-
import { u as
|
|
6
|
-
const
|
|
2
|
+
import { forwardRef as x, Children as d, isValidElement as S, cloneElement as T } from "react";
|
|
3
|
+
import { P as L } from "./index-BYnWp42a.js";
|
|
4
|
+
import { n as C } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
5
|
+
import { u as Y } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
|
|
6
|
+
const w = C.section`
|
|
7
7
|
display: flex;
|
|
8
8
|
flex: auto;
|
|
9
|
-
flex-direction: ${(
|
|
10
|
-
height: ${(
|
|
9
|
+
flex-direction: ${(i) => i.hasSidebar ? "row" : "column"};
|
|
10
|
+
height: ${(i) => i.isChild ? "100%" : "100dvh"};
|
|
11
11
|
|
|
12
12
|
* {
|
|
13
13
|
box-sizing: border-box;
|
|
@@ -28,53 +28,53 @@ const C = S.section`
|
|
|
28
28
|
flex: 0 0 15rem;
|
|
29
29
|
height: 100%;
|
|
30
30
|
}
|
|
31
|
-
`, y =
|
|
32
|
-
const { children:
|
|
31
|
+
`, y = x((i, p) => {
|
|
32
|
+
const { children: l, isChild: h, __TYPE__: N = "PageLayout", ...n } = i, m = Y(), P = d.toArray(l).some(
|
|
33
33
|
(e) => {
|
|
34
34
|
var t;
|
|
35
35
|
return e.props.__TYPE__ || ((t = e == null ? void 0 : e.type) == null ? void 0 : t.displayName) == "Sidebar";
|
|
36
36
|
}
|
|
37
37
|
), g = (e) => {
|
|
38
|
-
let t, a,
|
|
39
|
-
if (
|
|
38
|
+
let t, a, s;
|
|
39
|
+
if (d.forEach(e, (r, o) => {
|
|
40
40
|
var f, u, _;
|
|
41
41
|
if (r.props.__TYPE__ == "Sidebar" || ((f = r == null ? void 0 : r.type) == null ? void 0 : f.displayName) === "Sidebar") {
|
|
42
42
|
if (a)
|
|
43
43
|
throw "Found multiple ocurrences of Sidebar component on the same level in the component tree.";
|
|
44
|
-
a =
|
|
44
|
+
a = o + 1;
|
|
45
45
|
} else if (r.props.__TYPE__ == "PageLayout" || ((u = r == null ? void 0 : r.type) == null ? void 0 : u.displayName) === "PageLayout") {
|
|
46
46
|
if (t)
|
|
47
47
|
throw "Found multiple ocurrences of PageLayout component on the same level in the component tree.";
|
|
48
|
-
t =
|
|
48
|
+
t = o + 1;
|
|
49
49
|
} else if (r.props.__TYPE__ == "Content" || ((_ = r == null ? void 0 : r.type) == null ? void 0 : _.displayName) === "Content") {
|
|
50
|
-
if (
|
|
50
|
+
if (s)
|
|
51
51
|
throw "Found multiple ocurrences of Content component on the same level in the component tree.";
|
|
52
|
-
|
|
52
|
+
s = o + 1;
|
|
53
53
|
}
|
|
54
54
|
}), t && a)
|
|
55
55
|
return a < t ? "left" : "right";
|
|
56
|
-
if (
|
|
57
|
-
return a <
|
|
58
|
-
}, b =
|
|
56
|
+
if (s && a)
|
|
57
|
+
return a < s ? "left" : "right";
|
|
58
|
+
}, b = d.map(l, (e) => {
|
|
59
59
|
var t, a;
|
|
60
|
-
if (
|
|
60
|
+
if (S(e)) {
|
|
61
61
|
if (e.props.__TYPE__ == "Sidebar" || ((t = e.type) == null ? void 0 : t.displayName) === "Sidebar")
|
|
62
|
-
return
|
|
63
|
-
placement: g(
|
|
62
|
+
return T(e, {
|
|
63
|
+
placement: g(l)
|
|
64
64
|
});
|
|
65
65
|
if (e.props.__TYPE__ == "PageLayout" || ((a = e.type) == null ? void 0 : a.displayName) === "PageLayout")
|
|
66
|
-
return
|
|
66
|
+
return React.cloneElement(e, { isChild: !0 });
|
|
67
67
|
}
|
|
68
68
|
return e;
|
|
69
69
|
});
|
|
70
70
|
return /* @__PURE__ */ E(
|
|
71
|
-
|
|
71
|
+
w,
|
|
72
72
|
{
|
|
73
|
-
isChild:
|
|
73
|
+
isChild: h,
|
|
74
74
|
hasSidebar: P,
|
|
75
75
|
theme: m,
|
|
76
|
-
ref:
|
|
77
|
-
...
|
|
76
|
+
ref: p,
|
|
77
|
+
...n,
|
|
78
78
|
children: b
|
|
79
79
|
}
|
|
80
80
|
);
|
|
@@ -84,7 +84,7 @@ y.propTypes = {
|
|
|
84
84
|
* Do not override this property.
|
|
85
85
|
* Should only be used as indicator for type if you are passing custom component.
|
|
86
86
|
*/
|
|
87
|
-
__TYPE__:
|
|
87
|
+
__TYPE__: L.string
|
|
88
88
|
};
|
|
89
89
|
y.displayName = "PageLayout";
|
|
90
90
|
export {
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";const o=require("react/jsx-runtime"),E=require("react"),t=require("./index-BIlhCoy2.cjs"),P=require("./Button.cjs"),b=require("./IconButton.cjs"),_=require("./ButtonGroup.cjs"),C=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),G=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),w=require("./useUpdateEffect-BtMgpgIV.cjs"),U=C.newStyled.div`
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
flex-wrap: wrap;
|
|
4
|
+
width: 100%;
|
|
5
|
+
gap: 0.375rem;
|
|
6
|
+
justify-content: ${u=>u.horizontalAlignment};
|
|
7
|
+
`,$=C.newStyled.div`
|
|
8
|
+
& > .button-group-pagination-lnc {
|
|
9
|
+
width: 100%;
|
|
10
|
+
justify-content: ${u=>u.horizontalAlignment};
|
|
11
|
+
}
|
|
12
|
+
`,O=u=>{const{icons:d={},borderRadius:c="regular",currentPage:f=1,buttonType:q="outline",currentPageButtonType:B="tinted",withFirstLast:m=!0,withButtonGroup:N=!0,disabledNext:v=!1,disabledPrevious:k=!1,disabledFirst:S=!1,disabledLast:z=!1,disabled:i=!1,totalNumberOfPages:g=1,pagesOffset:y=0,horizontalAlignment:T="left",onPageChange:L=()=>{},className:h="",style:x={},color:R="primary",size:F="small"}=u,l={theme:G.useTheme(),size:F,color:R,btnType:q},[s,a]=E.useState(f);w.useUpdateEffect(()=>{a(f)},[f]),w.useUpdateEffect(()=>{L(s)},[s]);const p=(r,e)=>{e=="next"&&s<g?a(s+1):e=="previous"&&s>1?a(s-1):e=="last"&&s!=g?a(g):e=="first"&&s!=1?a(1):isNaN(+e)||a(e)},A=()=>{let r=[];for(let e=s-y>0?s-y:1;e<s&&e>0;e++)r.push(o.jsx(P,{...l,borderRadius:c,onClick:n=>p(n,e),btnType:"basic",text:e.toString(),disabled:i},e));r.push(o.jsx(P,{...l,borderRadius:c,btnType:B,text:s.toString(),disabled:i},s));for(let e=s+1;e<=s+y&&e<=g;e++)r.push(o.jsx(P,{...l,borderRadius:c,onClick:n=>p(n,e),btnType:"basic",text:e.toString(),disabled:i},e));return r},j=(r=null)=>{var e={};return r&&(e.borderRadius=r),o.jsxs(o.Fragment,{children:[m&&o.jsx(b,{...l,icon:d.doubleLeft||"angle-double-left",disabled:S||i,onClick:n=>p(n,"first"),...e}),o.jsx(b,{...l,icon:d.left||"angle-left",disabled:k||i,onClick:n=>p(n,"previous"),...e}),A(),o.jsx(b,{...l,icon:d.right||"angle-right",disabled:v||i,onClick:n=>p(n,"next"),...e}),m&&o.jsx(b,{...l,icon:d.doubleRight||"angle-double-right",disabled:z||i,onClick:n=>p(n,"last"),...e})]})};return N?o.jsx($,{horizontalAlignment:T,children:o.jsx(_,{className:"button-group-pagination-lnc "+h,style:x,borderRadius:c,children:j()})}):o.jsx(U,{horizontalAlignment:T,className:h,style:x,children:j(c)})};O.propTypes={icons:t.PropTypes.shape({left:t.PropTypes.element,right:t.PropTypes.element,doubleLeft:t.PropTypes.element,doubleRight:t.PropTypes.element}),disabled:t.PropTypes.bool,borderRadius:t.PropTypes.oneOf(["slight","regular","edged","curved","none"]),buttonType:t.PropTypes.oneOf(["filled","tinted","outline","basic"]),currentPageButtonType:t.PropTypes.oneOf(["filled","tinted","outline","basic"]),withFirstLast:t.PropTypes.bool,withButtonGroup:t.PropTypes.bool,currentPage:t.PropTypes.number,totalNumberOfPages:t.PropTypes.number,pagesOffset:t.PropTypes.number,disabledNext:t.PropTypes.bool,disabledPrevious:t.PropTypes.bool,disabledFirst:t.PropTypes.bool,disabledLast:t.PropTypes.bool,horizontalAlignment:t.PropTypes.oneOf(["left","center","right"]),onPageChange:t.PropTypes.func,className:t.PropTypes.string,style:t.PropTypes.object,size:t.PropTypes.oneOf(["small","medium","large"]),color:t.PropTypes.oneOf(["primary","secondary","success","warning","danger","information","neutral","gray"])};module.exports=O;
|