@lanaco/lnc-react-ui 4.0.199 → 4.0.200
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 +5 -5
- package/dist/Accordion.js +45 -56
- package/dist/AccordionDetails.cjs +3 -3
- package/dist/AccordionDetails.js +11 -25
- package/dist/AccordionSummary.cjs +4 -4
- package/dist/AccordionSummary.js +34 -44
- package/dist/ActionsToolbar.cjs +2 -3
- package/dist/ActionsToolbar.js +83 -135
- package/dist/Alert.cjs +10 -10
- package/dist/Alert.js +32 -64
- package/dist/Avatar.cjs +9 -9
- package/dist/Avatar.js +33 -72
- package/dist/Badge.cjs +6 -6
- package/dist/Badge.js +22 -47
- package/dist/BlogCategoryCardsSection.cjs +1 -1
- package/dist/BlogCategoryCardsSection.js +12 -14
- package/dist/BlogExploreSection.cjs +1 -1
- package/dist/BlogExploreSection.js +1 -1
- package/dist/BlogsSectionWithFilters.cjs +1 -1
- package/dist/BlogsSectionWithFilters.js +1 -1
- package/dist/Breadcrumbs.cjs +5 -5
- package/dist/Breadcrumbs.js +57 -87
- package/dist/Button.cjs +11 -11
- package/dist/Button.js +126 -173
- package/dist/ButtonGroup.cjs +8 -8
- package/dist/ButtonGroup.js +37 -49
- package/dist/CalorieCalculatorSection.cjs +8 -8
- package/dist/CalorieCalculatorSection.js +90 -97
- package/dist/CheckBoxInput.cjs +1 -1
- package/dist/CheckBoxInput.js +2 -5
- package/dist/Chip.cjs +14 -14
- package/dist/Chip.js +73 -111
- package/dist/ConfirmationForm.cjs +6 -6
- package/dist/ConfirmationForm.js +67 -109
- package/dist/ContactSection.cjs +1 -0
- package/dist/ContactSection.js +1 -0
- package/dist/Content.cjs +1 -1
- package/dist/Content.js +7 -15
- package/dist/{DailyMotion-ByXblnua.js → DailyMotion-BBcJkMo_.js} +1 -1
- package/dist/{DailyMotion-BaFUcQKQ.cjs → DailyMotion-CpZExcrg.cjs} +1 -1
- package/dist/DataView.cjs +1 -1
- package/dist/DataView.js +30 -50
- package/dist/DateInput.cjs +4 -4
- package/dist/DateInput.js +1347 -1383
- package/dist/DecimalInput.cjs +6 -6
- package/dist/DecimalInput.js +210 -263
- package/dist/DecimalInputV2.cjs +23 -23
- package/dist/DecimalInputV2.js +119 -176
- package/dist/DetailedProductsInfinitiveSection.cjs +1 -1
- package/dist/DetailedProductsInfinitiveSection.js +1 -1
- package/dist/DetailedProductsSection.cjs +1 -1
- package/dist/DetailedProductsSection.js +1 -1
- package/dist/DetailsView.cjs +9 -9
- package/dist/DetailsView.js +111 -162
- package/dist/DoubleRangeSlider.cjs +22 -22
- package/dist/DoubleRangeSlider.js +70 -95
- package/dist/DragAndDropFile.cjs +10 -10
- package/dist/DragAndDropFile.js +347 -402
- package/dist/DragDropFiles.cjs +4 -4
- package/dist/DragDropFiles.js +70 -124
- package/dist/Drawer.cjs +5 -5
- package/dist/Drawer.js +97 -135
- package/dist/Dropdown.cjs +1 -1
- package/dist/Dropdown.js +44 -213
- package/dist/DropdownItem.cjs +14 -14
- package/dist/DropdownItem.js +106 -142
- package/dist/DropdownLookup.cjs +1 -1
- package/dist/DropdownLookup.js +61 -242
- package/dist/DropdownMenu.cjs +4 -4
- package/dist/DropdownMenu.js +87 -149
- package/dist/EditableTable.cjs +10 -10
- package/dist/EditableTable.js +165 -331
- package/dist/{Facebook-BCqiOWZO.js → Facebook-BSWPEXjA.js} +1 -1
- package/dist/{Facebook-D9wwecSW.cjs → Facebook-DoKw-XxT.cjs} +1 -1
- package/dist/FaqSection.cjs +3 -3
- package/dist/FaqSection.js +119 -153
- package/dist/FileInput.cjs +7 -7
- package/dist/FileInput.js +66 -94
- package/dist/{FilePlayer-ktaNhf3p.js → FilePlayer-BtGpIWnK.js} +1 -1
- package/dist/{FilePlayer-DB6jnpeC.cjs → FilePlayer-D9az_lc_.cjs} +1 -1
- package/dist/FlexBox.cjs +6 -6
- package/dist/FlexBox.js +28 -63
- package/dist/FlexGrid.cjs +1 -1
- package/dist/FlexGrid.js +27 -67
- package/dist/FlexGridItem.cjs +6 -6
- package/dist/FlexGridItem.js +34 -62
- package/dist/Footer.cjs +1 -1
- package/dist/Footer.js +7 -15
- package/dist/FormField.cjs +7 -7
- package/dist/FormField.js +22 -47
- package/dist/FormView.cjs +6 -6
- package/dist/FormView.js +148 -195
- package/dist/Grid.cjs +2 -2
- package/dist/Grid.js +40 -65
- package/dist/GridItem.cjs +2 -2
- package/dist/GridItem.js +47 -80
- package/dist/Header.cjs +1 -1
- package/dist/Header.js +7 -15
- package/dist/HelpBannerSection.cjs +3 -3
- package/dist/HelpBannerSection.js +9 -15
- package/dist/Icon.cjs +4 -4
- package/dist/Icon.js +29 -55
- package/dist/IconButton.cjs +9 -9
- package/dist/IconButton.js +89 -127
- package/dist/{Kaltura-CvlN0HDg.js → Kaltura-BDqlEQpd.js} +1 -1
- package/dist/{Kaltura-CCdXLzOa.cjs → Kaltura-CK6JHUZC.cjs} +1 -1
- package/dist/Kanban.cjs +7 -7
- package/dist/Kanban.js +2033 -2098
- package/dist/KanbanActionsToolbar.cjs +4 -5
- package/dist/KanbanActionsToolbar.js +61 -96
- package/dist/KanbanCard-B9V9EjVE.js +137 -0
- package/dist/KanbanCard-DihrKn-I.cjs +30 -0
- package/dist/KanbanCard.cjs +1 -1
- package/dist/KanbanCard.js +2 -3
- package/dist/KanbanFooter.cjs +3 -3
- package/dist/KanbanFooter.js +37 -55
- package/dist/KanbanHeader.cjs +4 -4
- package/dist/KanbanHeader.js +49 -81
- package/dist/KanbanView.cjs +2 -2
- package/dist/KanbanView.js +106 -173
- package/dist/Link.cjs +7 -7
- package/dist/Link.js +20 -37
- package/dist/LocationSearchSection.cjs +1 -1
- package/dist/LocationSearchSection.js +1 -1
- package/dist/MasonryGeneralCardsSection.cjs +1 -1
- package/dist/MasonryGeneralCardsSection.js +1 -1
- package/dist/MenuItem.cjs +13 -13
- package/dist/MenuItem.js +101 -139
- package/dist/{Mixcloud-nG_VyBNt.cjs → Mixcloud-C1Boh2Bm.cjs} +1 -1
- package/dist/{Mixcloud-Bb8MTclI.js → Mixcloud-zAh6j7Ha.js} +1 -1
- package/dist/Modal.cjs +18 -19
- package/dist/Modal.js +131 -166
- package/dist/MultiSelectDropdown.cjs +1 -1
- package/dist/MultiSelectDropdown.js +25 -196
- package/dist/MultiSelectDropdownLookup.cjs +1 -1
- package/dist/MultiSelectDropdownLookup.js +27 -209
- package/dist/{Mux-DfYpGTiP.js → Mux-BGTG_Tvc.js} +1 -1
- package/dist/{Mux-BgB2a8kM.cjs → Mux-C6TwZeaq.cjs} +1 -1
- package/dist/NestedDropdownItem.cjs +3 -3
- package/dist/NestedDropdownItem.js +45 -67
- package/dist/NestedMenuItem.cjs +5 -5
- package/dist/NestedMenuItem.js +51 -78
- package/dist/NotificationContainer.cjs +10 -10
- package/dist/NotificationContainer.js +46 -79
- package/dist/NotificationMessage.cjs +2 -2
- package/dist/NotificationMessage.js +47 -64
- package/dist/NumberInput.cjs +23 -23
- package/dist/NumberInput.js +89 -149
- package/dist/PageLayout.cjs +2 -2
- package/dist/PageLayout.js +20 -28
- package/dist/Pagination.cjs +3 -3
- package/dist/Pagination.js +102 -185
- package/dist/PasswordInput.cjs +23 -23
- package/dist/PasswordInput.js +108 -137
- package/dist/Popover.cjs +1 -1
- package/dist/Popover.js +7 -32
- package/dist/PopoverContent.cjs +5 -5
- package/dist/PopoverContent.js +22 -28
- package/dist/PopoverTrigger.cjs +1 -1
- package/dist/PopoverTrigger.js +7 -12
- package/dist/ProgressBar.cjs +8 -8
- package/dist/ProgressBar.js +32 -59
- package/dist/RadioGroup.cjs +3 -3
- package/dist/RadioGroup.js +41 -72
- package/dist/RadioInput.cjs +28 -28
- package/dist/RadioInput.js +78 -123
- package/dist/RangeSlider.cjs +19 -19
- package/dist/RangeSlider.js +92 -119
- package/dist/ReviewsSection.cjs +13 -13
- package/dist/ReviewsSection.js +81 -101
- package/dist/SalesCampaignsSection.cjs +19 -19
- package/dist/SalesCampaignsSection.js +283 -324
- package/dist/SearchBar.cjs +10 -10
- package/dist/SearchBar.js +168 -188
- package/dist/SearchSection-B94YN_6P.cjs +161 -0
- package/dist/{SearchSection-DDQ_K98T.js → SearchSection-DAaMecR4.js} +337 -359
- package/dist/SearchSection.cjs +1 -1
- package/dist/SearchSection.js +2 -3
- package/dist/Separator.cjs +3 -3
- package/dist/Separator.js +14 -19
- package/dist/Sidebar.cjs +4 -5
- package/dist/Sidebar.js +33 -56
- package/dist/SimpleCategoriesSection.cjs +1 -1
- package/dist/SimpleCategoriesSection.js +1 -1
- package/dist/{SoundCloud-C86xwUG6.cjs → SoundCloud-C6R6E6Zc.cjs} +1 -1
- package/dist/{SoundCloud-DG91z39R.js → SoundCloud-lO8wg_0s.js} +1 -1
- package/dist/Spinner.cjs +18 -18
- package/dist/Spinner.js +37 -54
- package/dist/StatsSection.cjs +6 -6
- package/dist/StatsSection.js +15 -25
- package/dist/{Streamable-4uAnb3WN.cjs → Streamable-DZO95CiT.cjs} +1 -1
- package/dist/{Streamable-BAIWLgyD.js → Streamable-Dwa5ZEK4.js} +1 -1
- package/dist/Surface.cjs +4 -4
- package/dist/Surface.js +19 -34
- package/dist/SwipeableDrawer.cjs +8 -8
- package/dist/SwipeableDrawer.js +84 -136
- package/dist/TabItem.cjs +11 -11
- package/dist/TabItem.js +83 -118
- package/dist/Table.cjs +65 -65
- package/dist/Table.js +786 -1167
- package/dist/TableView.cjs +2 -2
- package/dist/TableView.js +113 -197
- package/dist/Tabs.cjs +4 -4
- package/dist/Tabs.js +41 -60
- package/dist/TextAreaInput.cjs +14 -14
- package/dist/TextAreaInput.js +131 -181
- package/dist/TextInput.cjs +23 -23
- package/dist/TextInput.js +78 -126
- package/dist/ThemeProvider.cjs +5 -5
- package/dist/ThemeProvider.js +35 -39
- package/dist/TimeInput.cjs +7 -7
- package/dist/TimeInput.js +46 -72
- package/dist/Toggle.cjs +20 -20
- package/dist/Toggle.js +78 -109
- package/dist/ToggleSection.cjs +5 -5
- package/dist/ToggleSection.js +48 -55
- package/dist/TreeMenu.cjs +5 -5
- package/dist/TreeMenu.js +43 -67
- package/dist/TreeMenuSeparator.cjs +3 -3
- package/dist/TreeMenuSeparator.js +12 -20
- package/dist/{Twitch-CVAj24ti.cjs → Twitch-B17oKtD0.cjs} +1 -1
- package/dist/{Twitch-DfXeW5Xs.js → Twitch-C73-dwWo.js} +1 -1
- package/dist/UploadedFile.cjs +11 -11
- package/dist/UploadedFile.js +73 -99
- package/dist/{Vidyard-De3pges0.js → Vidyard-B6GdBHsM.js} +1 -1
- package/dist/{Vidyard-DaCcaaH4.cjs → Vidyard-s1MMcaRm.cjs} +1 -1
- package/dist/{Vimeo-8wXdCXGs.cjs → Vimeo-J1l_SU2E.cjs} +1 -1
- package/dist/{Vimeo-N6I2qi_h.js → Vimeo-kzHz4Gco.js} +1 -1
- package/dist/{Wistia-BrUzHQoq.cjs → Wistia-CudQyDHM.cjs} +1 -1
- package/dist/{Wistia-dlV6n6tO.js → Wistia-w4jnqd7y.js} +1 -1
- package/dist/{YouTube-Cfsj4ZaP.cjs → YouTube-BAYKouHS.cjs} +1 -1
- package/dist/{YouTube-DNJxWqRm.js → YouTube-BKyipPZx.js} +1 -1
- package/dist/index-BdKi2ogu.js +39 -0
- package/dist/index-CRk3vcd4.cjs +95 -0
- package/dist/index-CX2A-q39.cjs +4 -0
- package/dist/{index-CWALXP1T.js → index-CwMCk9wV.js} +118 -145
- package/dist/index.cjs +1 -1
- package/dist/index.js +2 -2
- package/dist/{tag-BtS5lWJ0.js → tag-Dm8CW4TM.js} +21 -27
- package/dist/{tag-CmeZsPQt.cjs → tag-UQjq2_Ba.cjs} +7 -7
- package/package.json +1 -1
- package/dist/KanbanCard-68kSAXL6.js +0 -175
- package/dist/KanbanCard-BDvoqTDS.cjs +0 -30
- package/dist/SearchSection-BcbHP6QF.cjs +0 -161
- package/dist/index-Be-_NM9Q.cjs +0 -4
- package/dist/index-C0LcDEqa.js +0 -47
- package/dist/index-CSNxZFTX.cjs +0 -95
package/dist/PageLayout.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { P as L } from "./index-CblbdqjE.js";
|
|
1
|
+
import { jsx as x } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as S, Children as d, isValidElement as E, cloneElement as h } from "react";
|
|
4
3
|
import { s as C } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
5
|
-
import { u as
|
|
4
|
+
import { u as L } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
6
5
|
const N = C.section`
|
|
7
6
|
display: flex;
|
|
8
7
|
flex: auto;
|
|
@@ -28,16 +27,16 @@ const N = C.section`
|
|
|
28
27
|
flex: 0 0 15rem;
|
|
29
28
|
height: 100%;
|
|
30
29
|
}
|
|
31
|
-
`,
|
|
32
|
-
const { children: l, isChild:
|
|
30
|
+
`, T = S((i, _) => {
|
|
31
|
+
const { children: l, isChild: p, ...n } = i, m = L(), g = d.toArray(l).some(
|
|
33
32
|
(e) => {
|
|
34
33
|
var t;
|
|
35
34
|
return e.props.__TYPE__ || ((t = e == null ? void 0 : e.type) == null ? void 0 : t.displayName) == "Sidebar";
|
|
36
35
|
}
|
|
37
|
-
),
|
|
36
|
+
), P = (e) => {
|
|
38
37
|
let t, a, s;
|
|
39
38
|
if (d.forEach(e, (r, o) => {
|
|
40
|
-
var f, u,
|
|
39
|
+
var f, u, y;
|
|
41
40
|
if (r.props.__TYPE__ == "Sidebar" || ((f = r == null ? void 0 : r.type) == null ? void 0 : f.displayName) === "Sidebar") {
|
|
42
41
|
if (a)
|
|
43
42
|
throw "Found multiple ocurrences of Sidebar component on the same level in the component tree.";
|
|
@@ -46,7 +45,7 @@ const N = C.section`
|
|
|
46
45
|
if (t)
|
|
47
46
|
throw "Found multiple ocurrences of PageLayout component on the same level in the component tree.";
|
|
48
47
|
t = o + 1;
|
|
49
|
-
} else if (r.props.__TYPE__ == "Content" || ((
|
|
48
|
+
} else if (r.props.__TYPE__ == "Content" || ((y = r == null ? void 0 : r.type) == null ? void 0 : y.displayName) === "Content") {
|
|
50
49
|
if (s)
|
|
51
50
|
throw "Found multiple ocurrences of Content component on the same level in the component tree.";
|
|
52
51
|
s = o + 1;
|
|
@@ -55,38 +54,31 @@ const N = C.section`
|
|
|
55
54
|
return a < t ? "left" : "right";
|
|
56
55
|
if (s && a)
|
|
57
56
|
return a < s ? "left" : "right";
|
|
58
|
-
},
|
|
57
|
+
}, b = d.map(l, (e) => {
|
|
59
58
|
var t, a;
|
|
60
|
-
if (
|
|
59
|
+
if (E(e)) {
|
|
61
60
|
if (e.props.__TYPE__ == "Sidebar" || ((t = e.type) == null ? void 0 : t.displayName) === "Sidebar")
|
|
62
|
-
return
|
|
63
|
-
placement:
|
|
61
|
+
return h(e, {
|
|
62
|
+
placement: P(l)
|
|
64
63
|
});
|
|
65
64
|
if (e.props.__TYPE__ == "PageLayout" || ((a = e.type) == null ? void 0 : a.displayName) === "PageLayout")
|
|
66
|
-
return
|
|
65
|
+
return h(e, { isChild: !0 });
|
|
67
66
|
}
|
|
68
67
|
return e;
|
|
69
68
|
});
|
|
70
|
-
return /* @__PURE__ */
|
|
69
|
+
return /* @__PURE__ */ x(
|
|
71
70
|
N,
|
|
72
71
|
{
|
|
73
|
-
isChild:
|
|
72
|
+
isChild: p,
|
|
74
73
|
hasSidebar: g,
|
|
75
|
-
theme:
|
|
76
|
-
ref:
|
|
74
|
+
theme: m,
|
|
75
|
+
ref: _,
|
|
77
76
|
...n,
|
|
78
|
-
children:
|
|
77
|
+
children: b
|
|
79
78
|
}
|
|
80
79
|
);
|
|
81
80
|
});
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
* Do not override this property.
|
|
85
|
-
* Should only be used as indicator for type if you are passing custom component.
|
|
86
|
-
*/
|
|
87
|
-
__TYPE__: L.string
|
|
88
|
-
};
|
|
89
|
-
p.displayName = "PageLayout";
|
|
81
|
+
T.displayName = "PageLayout";
|
|
90
82
|
export {
|
|
91
|
-
|
|
83
|
+
T as default
|
|
92
84
|
};
|
package/dist/Pagination.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const n=require("react/jsx-runtime"),_=require("react"),h=require("./Button.cjs"),g=require("./IconButton.cjs"),A=require("./ButtonGroup.cjs"),q=require("./emotion-styled.browser.esm-BtEseadx.cjs"),L=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),C=require("./useUpdateEffect-BtMgpgIV.cjs"),U=q.styled.div`
|
|
2
2
|
display: inline-flex;
|
|
3
3
|
flex-wrap: wrap;
|
|
4
4
|
width: 100%;
|
|
5
5
|
gap: 0.375rem;
|
|
6
6
|
justify-content: ${u=>u.horizontalAlignment};
|
|
7
|
-
|
|
7
|
+
`,G=q.styled.div`
|
|
8
8
|
& > .button-group-pagination-lnc {
|
|
9
9
|
width: 100%;
|
|
10
10
|
justify-content: ${u=>u.horizontalAlignment};
|
|
11
11
|
}
|
|
12
|
-
`,O=u=>{const{icons:
|
|
12
|
+
`,O=u=>{const{icons:d={},borderRadius:c="regular",currentPage:b=1,buttonType:w="outline",currentPageButtonType:k="tinted",withFirstLast:x=!0,withButtonGroup:B=!0,disabledNext:T=!1,disabledPrevious:v=!1,disabledFirst:N=!1,disabledLast:S=!1,disabled:o=!1,totalNumberOfPages:f=1,pagesOffset:p=0,horizontalAlignment:m="left",onPageChange:z=()=>{},className:j="",style:y={},color:E="primary",size:F="small"}=u,r={theme:L.useTheme(),size:F,color:E,btnType:w},[t,l]=_.useState(b);C.useUpdateEffect(()=>{l(b)},[b]),C.useUpdateEffect(()=>{z(t)},[t]);const a=(i,e)=>{e=="next"&&t<f?l(t+1):e=="previous"&&t>1?l(t-1):e=="last"&&t!=f?l(f):e=="first"&&t!=1?l(1):isNaN(+e)||l(e)},R=()=>{let i=[];for(let e=t-p>0?t-p:1;e<t&&e>0;e++)i.push(n.jsx(h,{...r,borderRadius:c,onClick:s=>a(s,e),btnType:"basic",text:e.toString(),disabled:o},e));i.push(n.jsx(h,{...r,borderRadius:c,btnType:k,text:t.toString(),disabled:o},t));for(let e=t+1;e<=t+p&&e<=f;e++)i.push(n.jsx(h,{...r,borderRadius:c,onClick:s=>a(s,e),btnType:"basic",text:e.toString(),disabled:o},e));return i},P=(i=null)=>{var e={};return i&&(e.borderRadius=i),n.jsxs(n.Fragment,{children:[x&&n.jsx(g,{...r,icon:d.doubleLeft||"angle-double-left",disabled:N||o,onClick:s=>a(s,"first"),...e}),n.jsx(g,{...r,icon:d.left||"angle-left",disabled:v||o,onClick:s=>a(s,"previous"),...e}),R(),n.jsx(g,{...r,icon:d.right||"angle-right",disabled:T||o,onClick:s=>a(s,"next"),...e}),x&&n.jsx(g,{...r,icon:d.doubleRight||"angle-double-right",disabled:S||o,onClick:s=>a(s,"last"),...e})]})};return B?n.jsx(G,{horizontalAlignment:m,children:n.jsx(A,{className:"button-group-pagination-lnc "+j,style:y,borderRadius:c,children:P()})}):n.jsx(U,{horizontalAlignment:m,className:j,style:y,children:P(c)})};module.exports=O;
|
package/dist/Pagination.js
CHANGED
|
@@ -1,248 +1,165 @@
|
|
|
1
|
-
import { jsx as i, jsxs as G, Fragment as
|
|
2
|
-
import { useState as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import { u as
|
|
9
|
-
|
|
10
|
-
const D = w.div`
|
|
1
|
+
import { jsx as i, jsxs as G, Fragment as O } from "react/jsx-runtime";
|
|
2
|
+
import { useState as R } from "react";
|
|
3
|
+
import b from "./Button.js";
|
|
4
|
+
import g from "./IconButton.js";
|
|
5
|
+
import E from "./ButtonGroup.js";
|
|
6
|
+
import { s as B } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
7
|
+
import { u as U } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
8
|
+
import { u as k } from "./useUpdateEffect-CuYWz7EA.js";
|
|
9
|
+
const q = B.div`
|
|
11
10
|
display: inline-flex;
|
|
12
11
|
flex-wrap: wrap;
|
|
13
12
|
width: 100%;
|
|
14
13
|
gap: 0.375rem;
|
|
15
|
-
justify-content: ${(
|
|
16
|
-
`,
|
|
14
|
+
justify-content: ${(u) => u.horizontalAlignment};
|
|
15
|
+
`, D = B.div`
|
|
17
16
|
& > .button-group-pagination-lnc {
|
|
18
17
|
width: 100%;
|
|
19
|
-
justify-content: ${(
|
|
18
|
+
justify-content: ${(u) => u.horizontalAlignment};
|
|
20
19
|
}
|
|
21
|
-
`,
|
|
20
|
+
`, Y = (u) => {
|
|
22
21
|
const {
|
|
23
|
-
icons:
|
|
24
|
-
borderRadius:
|
|
25
|
-
currentPage:
|
|
26
|
-
buttonType:
|
|
27
|
-
currentPageButtonType:
|
|
28
|
-
withFirstLast:
|
|
29
|
-
withButtonGroup:
|
|
30
|
-
disabledNext:
|
|
31
|
-
disabledPrevious:
|
|
32
|
-
disabledFirst:
|
|
33
|
-
disabledLast:
|
|
34
|
-
disabled:
|
|
35
|
-
totalNumberOfPages:
|
|
36
|
-
pagesOffset:
|
|
37
|
-
horizontalAlignment:
|
|
22
|
+
icons: f = {},
|
|
23
|
+
borderRadius: d = "regular",
|
|
24
|
+
currentPage: p = 1,
|
|
25
|
+
buttonType: T = "outline",
|
|
26
|
+
currentPageButtonType: v = "tinted",
|
|
27
|
+
withFirstLast: h = !0,
|
|
28
|
+
withButtonGroup: w = !0,
|
|
29
|
+
disabledNext: N = !1,
|
|
30
|
+
disabledPrevious: j = !1,
|
|
31
|
+
disabledFirst: z = !1,
|
|
32
|
+
disabledLast: S = !1,
|
|
33
|
+
disabled: r = !1,
|
|
34
|
+
totalNumberOfPages: c = 1,
|
|
35
|
+
pagesOffset: m = 0,
|
|
36
|
+
horizontalAlignment: y = "left",
|
|
38
37
|
//------------------
|
|
39
|
-
onPageChange:
|
|
38
|
+
onPageChange: A = () => {
|
|
40
39
|
},
|
|
41
40
|
//------------------
|
|
42
41
|
className: x = "",
|
|
43
|
-
style:
|
|
44
|
-
color:
|
|
45
|
-
size:
|
|
46
|
-
} =
|
|
47
|
-
|
|
48
|
-
a(
|
|
49
|
-
}, [
|
|
50
|
-
|
|
51
|
-
}, [
|
|
52
|
-
const
|
|
53
|
-
|
|
54
|
-
},
|
|
55
|
-
let
|
|
56
|
-
for (let
|
|
57
|
-
|
|
42
|
+
style: P = {},
|
|
43
|
+
color: F = "primary",
|
|
44
|
+
size: L = "small"
|
|
45
|
+
} = u, s = { theme: U(), size: L, color: F, btnType: T }, [e, a] = R(p);
|
|
46
|
+
k(() => {
|
|
47
|
+
a(p);
|
|
48
|
+
}, [p]), k(() => {
|
|
49
|
+
A(e);
|
|
50
|
+
}, [e]);
|
|
51
|
+
const l = (o, t) => {
|
|
52
|
+
t == "next" && e < c ? a(e + 1) : t == "previous" && e > 1 ? a(e - 1) : t == "last" && e != c ? a(c) : t == "first" && e != 1 ? a(1) : isNaN(+t) || a(t);
|
|
53
|
+
}, $ = () => {
|
|
54
|
+
let o = [];
|
|
55
|
+
for (let t = e - m > 0 ? e - m : 1; t < e && t > 0; t++)
|
|
56
|
+
o.push(
|
|
58
57
|
/* @__PURE__ */ i(
|
|
59
|
-
|
|
58
|
+
b,
|
|
60
59
|
{
|
|
61
60
|
...s,
|
|
62
|
-
borderRadius:
|
|
63
|
-
onClick: (
|
|
61
|
+
borderRadius: d,
|
|
62
|
+
onClick: (n) => l(n, t),
|
|
64
63
|
btnType: "basic",
|
|
65
|
-
text:
|
|
66
|
-
disabled:
|
|
64
|
+
text: t.toString(),
|
|
65
|
+
disabled: r
|
|
67
66
|
},
|
|
68
|
-
|
|
67
|
+
t
|
|
69
68
|
)
|
|
70
69
|
);
|
|
71
|
-
|
|
70
|
+
o.push(
|
|
72
71
|
/* @__PURE__ */ i(
|
|
73
|
-
|
|
72
|
+
b,
|
|
74
73
|
{
|
|
75
74
|
...s,
|
|
76
|
-
borderRadius:
|
|
77
|
-
btnType:
|
|
78
|
-
text:
|
|
79
|
-
disabled:
|
|
75
|
+
borderRadius: d,
|
|
76
|
+
btnType: v,
|
|
77
|
+
text: e.toString(),
|
|
78
|
+
disabled: r
|
|
80
79
|
},
|
|
81
|
-
|
|
80
|
+
e
|
|
82
81
|
)
|
|
83
82
|
);
|
|
84
|
-
for (let
|
|
85
|
-
|
|
83
|
+
for (let t = e + 1; t <= e + m && t <= c; t++)
|
|
84
|
+
o.push(
|
|
86
85
|
/* @__PURE__ */ i(
|
|
87
|
-
|
|
86
|
+
b,
|
|
88
87
|
{
|
|
89
88
|
...s,
|
|
90
|
-
borderRadius:
|
|
91
|
-
onClick: (
|
|
89
|
+
borderRadius: d,
|
|
90
|
+
onClick: (n) => l(n, t),
|
|
92
91
|
btnType: "basic",
|
|
93
|
-
text:
|
|
94
|
-
disabled:
|
|
92
|
+
text: t.toString(),
|
|
93
|
+
disabled: r
|
|
95
94
|
},
|
|
96
|
-
|
|
95
|
+
t
|
|
97
96
|
)
|
|
98
97
|
);
|
|
99
|
-
return
|
|
100
|
-
},
|
|
101
|
-
var
|
|
102
|
-
return
|
|
103
|
-
|
|
104
|
-
|
|
98
|
+
return o;
|
|
99
|
+
}, C = (o = null) => {
|
|
100
|
+
var t = {};
|
|
101
|
+
return o && (t.borderRadius = o), /* @__PURE__ */ G(O, { children: [
|
|
102
|
+
h && /* @__PURE__ */ i(
|
|
103
|
+
g,
|
|
105
104
|
{
|
|
106
105
|
...s,
|
|
107
|
-
icon:
|
|
108
|
-
disabled:
|
|
109
|
-
onClick: (
|
|
110
|
-
...
|
|
106
|
+
icon: f.doubleLeft || "angle-double-left",
|
|
107
|
+
disabled: z || r,
|
|
108
|
+
onClick: (n) => l(n, "first"),
|
|
109
|
+
...t
|
|
111
110
|
}
|
|
112
111
|
),
|
|
113
112
|
/* @__PURE__ */ i(
|
|
114
|
-
|
|
113
|
+
g,
|
|
115
114
|
{
|
|
116
115
|
...s,
|
|
117
|
-
icon:
|
|
118
|
-
disabled:
|
|
119
|
-
onClick: (
|
|
120
|
-
...
|
|
116
|
+
icon: f.left || "angle-left",
|
|
117
|
+
disabled: j || r,
|
|
118
|
+
onClick: (n) => l(n, "previous"),
|
|
119
|
+
...t
|
|
121
120
|
}
|
|
122
121
|
),
|
|
123
|
-
|
|
122
|
+
$(),
|
|
124
123
|
/* @__PURE__ */ i(
|
|
125
|
-
|
|
124
|
+
g,
|
|
126
125
|
{
|
|
127
126
|
...s,
|
|
128
|
-
icon:
|
|
129
|
-
disabled:
|
|
130
|
-
onClick: (
|
|
131
|
-
...
|
|
127
|
+
icon: f.right || "angle-right",
|
|
128
|
+
disabled: N || r,
|
|
129
|
+
onClick: (n) => l(n, "next"),
|
|
130
|
+
...t
|
|
132
131
|
}
|
|
133
132
|
),
|
|
134
|
-
|
|
135
|
-
|
|
133
|
+
h && /* @__PURE__ */ i(
|
|
134
|
+
g,
|
|
136
135
|
{
|
|
137
136
|
...s,
|
|
138
|
-
icon:
|
|
139
|
-
disabled:
|
|
140
|
-
onClick: (
|
|
141
|
-
...
|
|
137
|
+
icon: f.doubleRight || "angle-double-right",
|
|
138
|
+
disabled: S || r,
|
|
139
|
+
onClick: (n) => l(n, "last"),
|
|
140
|
+
...t
|
|
142
141
|
}
|
|
143
142
|
)
|
|
144
143
|
] });
|
|
145
144
|
};
|
|
146
|
-
return
|
|
147
|
-
|
|
145
|
+
return w ? /* @__PURE__ */ i(D, { horizontalAlignment: y, children: /* @__PURE__ */ i(
|
|
146
|
+
E,
|
|
148
147
|
{
|
|
149
148
|
className: "button-group-pagination-lnc " + x,
|
|
150
|
-
style:
|
|
151
|
-
borderRadius:
|
|
152
|
-
children:
|
|
149
|
+
style: P,
|
|
150
|
+
borderRadius: d,
|
|
151
|
+
children: C()
|
|
153
152
|
}
|
|
154
153
|
) }) : /* @__PURE__ */ i(
|
|
155
|
-
|
|
154
|
+
q,
|
|
156
155
|
{
|
|
157
|
-
horizontalAlignment:
|
|
156
|
+
horizontalAlignment: y,
|
|
158
157
|
className: x,
|
|
159
|
-
style:
|
|
160
|
-
children:
|
|
158
|
+
style: P,
|
|
159
|
+
children: C(d)
|
|
161
160
|
}
|
|
162
161
|
);
|
|
163
162
|
};
|
|
164
|
-
I.propTypes = {
|
|
165
|
-
icons: t.shape({
|
|
166
|
-
left: t.element,
|
|
167
|
-
right: t.element,
|
|
168
|
-
doubleLeft: t.element,
|
|
169
|
-
doubleRight: t.element
|
|
170
|
-
}),
|
|
171
|
-
/**
|
|
172
|
-
* Applies to the movement buttons and to the page number buttons
|
|
173
|
-
*/
|
|
174
|
-
disabled: t.bool,
|
|
175
|
-
borderRadius: t.oneOf([
|
|
176
|
-
"slight",
|
|
177
|
-
"regular",
|
|
178
|
-
"edged",
|
|
179
|
-
"curved",
|
|
180
|
-
"none"
|
|
181
|
-
]),
|
|
182
|
-
/**
|
|
183
|
-
* Sets the button `type`
|
|
184
|
-
*/
|
|
185
|
-
buttonType: t.oneOf(["filled", "tinted", "outline", "basic"]),
|
|
186
|
-
/**
|
|
187
|
-
* Set button `type` of the current page button
|
|
188
|
-
*/
|
|
189
|
-
currentPageButtonType: t.oneOf([
|
|
190
|
-
"filled",
|
|
191
|
-
"tinted",
|
|
192
|
-
"outline",
|
|
193
|
-
"basic"
|
|
194
|
-
]),
|
|
195
|
-
/**
|
|
196
|
-
* Show the First and Last buttons
|
|
197
|
-
*/
|
|
198
|
-
withFirstLast: t.bool,
|
|
199
|
-
/**
|
|
200
|
-
* Wrap the buttons in a `ButtonGroup` component
|
|
201
|
-
*/
|
|
202
|
-
withButtonGroup: t.bool,
|
|
203
|
-
/**
|
|
204
|
-
* Active page number
|
|
205
|
-
*/
|
|
206
|
-
currentPage: t.number,
|
|
207
|
-
totalNumberOfPages: t.number,
|
|
208
|
-
/**
|
|
209
|
-
* how many page numbers will be shown to the right/left of the current page
|
|
210
|
-
*/
|
|
211
|
-
pagesOffset: t.number,
|
|
212
|
-
/**
|
|
213
|
-
* Applies to the Next button
|
|
214
|
-
*/
|
|
215
|
-
disabledNext: t.bool,
|
|
216
|
-
/**
|
|
217
|
-
* Applies to the Previous button
|
|
218
|
-
*/
|
|
219
|
-
disabledPrevious: t.bool,
|
|
220
|
-
/**
|
|
221
|
-
* Applies to the First button
|
|
222
|
-
*/
|
|
223
|
-
disabledFirst: t.bool,
|
|
224
|
-
/**
|
|
225
|
-
* Applies to the Last button
|
|
226
|
-
*/
|
|
227
|
-
disabledLast: t.bool,
|
|
228
|
-
horizontalAlignment: t.oneOf(["left", "center", "right"]),
|
|
229
|
-
//-------------------------------
|
|
230
|
-
onPageChange: t.func,
|
|
231
|
-
//-------------------------------
|
|
232
|
-
className: t.string,
|
|
233
|
-
style: t.object,
|
|
234
|
-
size: t.oneOf(["small", "medium", "large"]),
|
|
235
|
-
color: t.oneOf([
|
|
236
|
-
"primary",
|
|
237
|
-
"secondary",
|
|
238
|
-
"success",
|
|
239
|
-
"warning",
|
|
240
|
-
"danger",
|
|
241
|
-
"information",
|
|
242
|
-
"neutral",
|
|
243
|
-
"gray"
|
|
244
|
-
])
|
|
245
|
-
};
|
|
246
163
|
export {
|
|
247
|
-
|
|
164
|
+
Y as default
|
|
248
165
|
};
|
package/dist/PasswordInput.cjs
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const c=require("react/jsx-runtime"),a=require("react"),p=require("./index-Cp66dWMi.cjs"),B=require("./Icon.cjs"),h=require("./emotion-styled.browser.esm-BtEseadx.cjs"),l=require("./utils-RnrgDDZP.cjs"),D=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),P=h.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
|
|
5
|
-
min-height: ${e=>
|
|
6
|
-
max-height: ${e=>
|
|
7
|
-
background-color: ${e=>
|
|
5
|
+
min-height: ${e=>l.getSizeValueWithUnits(e.theme,e.size)};
|
|
6
|
+
max-height: ${e=>l.getSizeValueWithUnits(e.theme,e.size)};
|
|
7
|
+
background-color: ${e=>l.getColorRgbaValue(e.theme,"Input",e.color,"enabled","background")};
|
|
8
8
|
border: 1px solid
|
|
9
|
-
${e=>
|
|
10
|
-
border-radius: ${e=>
|
|
9
|
+
${e=>l.getColorRgbaValue(e.theme,"Input",e.focused===!0?"primary":e.color,e.disabled===!0?"disabled":"enabled","border")};
|
|
10
|
+
border-radius: ${e=>l.getBorderRadiusValueWithUnits(e.theme,"regular")};
|
|
11
11
|
|
|
12
|
-
${e=>e.focused&&e.readOnly!==!0?
|
|
13
|
-
/* ${e=>e.disabled===!0?
|
|
14
|
-
${e=>e.disabled===!0&&`background-color: ${
|
|
15
|
-
color: ${
|
|
12
|
+
${e=>e.focused&&e.readOnly!==!0?l.getOutlineCss(e.theme):""}
|
|
13
|
+
/* ${e=>e.disabled===!0?l.getDisabledStateCss(e.theme):""} */
|
|
14
|
+
${e=>e.disabled===!0&&`background-color: ${l.getColorRgbaValue(e.theme,"Input",e.color,"disabled","background","backgroundOpacity")};
|
|
15
|
+
color: ${o=>l.getColorRgbaValue(o.theme,"Input",o.color,"disabled","text")};`}
|
|
16
16
|
`,$=h.styled.span`
|
|
17
17
|
padding: 0 12px;
|
|
18
|
-
color: ${e=>
|
|
19
|
-
`,
|
|
18
|
+
color: ${e=>l.getColorRgbaValue(e.theme,"Input",e.focused===!0?"primary":e.color,"enabled","prefix")};
|
|
19
|
+
`,A=h.styled($)``,G=h.styled($)`
|
|
20
20
|
cursor: pointer;
|
|
21
|
-
`,
|
|
21
|
+
`,H=h.styled.input`
|
|
22
22
|
background: none;
|
|
23
23
|
border: none;
|
|
24
24
|
outline: none;
|
|
@@ -26,16 +26,16 @@
|
|
|
26
26
|
padding-bottom: 0.625rem;
|
|
27
27
|
width: 100%;
|
|
28
28
|
|
|
29
|
-
${e=>
|
|
30
|
-
min-height: ${e=>
|
|
31
|
-
max-height: ${e=>
|
|
32
|
-
color: ${e=>
|
|
33
|
-
caret-color: ${e=>
|
|
29
|
+
${e=>l.getComponentTypographyCss(e.theme,"Input",e.size,"enabled")}
|
|
30
|
+
min-height: ${e=>l.getSizeValueWithUnits(e.theme,e.size)};
|
|
31
|
+
max-height: ${e=>l.getSizeValueWithUnits(e.theme,e.size)};
|
|
32
|
+
color: ${e=>l.getColorRgbaValue(e.theme,"Input",e.focused===!0?"primary":e.color,"enabled","text")};
|
|
33
|
+
caret-color: ${e=>l.getColorRgbaValue(e.theme,"Input",e.color,"enabled","caret")};
|
|
34
34
|
padding-right: ${e=>e.suffix?"0":"0.75rem"};
|
|
35
35
|
padding-left: ${e=>e.prefix?"0":"0.75rem"};
|
|
36
36
|
|
|
37
37
|
&::placeholder {
|
|
38
|
-
color: ${e=>
|
|
38
|
+
color: ${e=>l.getColorRgbaValue(e.theme,"Input",e.color,"enabled","placeholder")};
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
&:read-only {
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
&:disabled {
|
|
46
|
-
/* ${e=>
|
|
47
|
-
${e=>`background-color: ${
|
|
48
|
-
color: ${
|
|
46
|
+
/* ${e=>l.getDisabledStateCss(e.theme)} */
|
|
47
|
+
${e=>`background-color: ${l.getColorRgbaValue(e.theme,"Input",e.color,"disabled","background","backgroundOpacity")};
|
|
48
|
+
color: ${o=>l.getColorRgbaValue(o.theme,"Input",o.color,"disabled","text")};`}
|
|
49
49
|
background: none;
|
|
50
50
|
}
|
|
51
|
-
`,
|
|
51
|
+
`,J=a.forwardRef((e,o)=>{const{wrapperRef:R,disabled:C,readOnly:S,debounceTime:z=0,placeholder:v,prefix:m,suffix:f,value:d,defaultValue:j,onChange:u,onBlur:x,onFocus:y,className:q="",style:w={},size:k="small",color:s="primary",...O}=e,n=a.useRef(),i=D.useTheme(),[W,I]=a.useState(d||j||"");a.useEffect(()=>{d!=null&&I(d)},[d]);const[b,E]=a.useState(!0),[g,V]=a.useState(!1);a.useEffect(()=>{var r;const t=((r=n==null?void 0:n.current)==null?void 0:r.value)||"";n.current.selectionStart=t!=null&&t.length?t.length:0,n.current.selectionEnd=t!=null&&t.length?t.length:0},[b]),a.useEffect(()=>{o!=null&&(o.current=n.current)},[o,n]);const U=a.useCallback(p.debounce((t,r)=>_(t,r),z),[u]),_=(t,r)=>{u&&(u==null||u(t,r))},F=t=>{I(t.target.value),U(t,t.target.value)},L=()=>{E(!b),n.current.focus()},N=t=>{V(!0),y==null||y(t)},T=t=>{V(!1),x==null||x(t)};return c.jsxs(P,{ref:R,style:w,className:q,theme:i,color:s,size:k,focused:g,disabled:C,readOnly:S,children:[m&&c.jsx($,{theme:i,color:s,focused:g,className:"lnc-input-prefix",children:m}),c.jsx(H,{ref:n,type:b?"password":"text",theme:i,color:s,size:k,placeholder:v,prefix:m,suffix:f,disabled:C,readOnly:S,focused:g,onFocus:N,onBlur:T,onChange:F,value:W,...O}),c.jsx(G,{theme:i,color:s,focused:g,onClick:L,children:c.jsx(B,{icon:b?"eye-slash":"eye"})}),f&&c.jsx(A,{theme:i,color:s,focused:g,className:"lnc-input-suffix",children:f})]})});module.exports=J;
|