@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/DragDropFiles.cjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
"use strict";const l=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const l=require("react/jsx-runtime"),s=require("react"),$=require("./emotion-styled.browser.esm-BtEseadx.cjs"),B=require("./DragAndDropFile.cjs"),E=require("./UploadedFile.cjs"),f=require("./utils-RnrgDDZP.cjs"),G=require("./FlexGrid.cjs"),g=require("./FlexGridItem.cjs"),M=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),U=$.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: 1rem;
|
|
5
5
|
|
|
6
|
-
border: ${
|
|
7
|
-
border-radius: ${
|
|
6
|
+
border: ${t=>`1px solid ${f.getColorRgbaValue(t.theme,"DragDropFiles",t.color,"enabled","border")}`};
|
|
7
|
+
border-radius: ${t=>f.getBorderRadiusValueWithUnits(t.theme,"regular")};
|
|
8
8
|
padding: 1.25rem 2.5rem;
|
|
9
9
|
|
|
10
10
|
& .file-item-lnc {
|
|
11
11
|
padding: 0.5rem 0.813rem;
|
|
12
12
|
height: 100%;
|
|
13
13
|
}
|
|
14
|
-
`,
|
|
14
|
+
`,V=s.forwardRef((t,D)=>{const{id:x="",disabled:b=!1,preventDefault:q=!1,acceptDropzone:C={},acceptInput:F,multiple:j=!0,selectFileText:R="Select file",dndFileText:w="Drag and drop file here or",control:S,showFileSize:d=!0,files:m=[],onChange:u=()=>{},onFocus:y=()=>{},onBlur:z=()=>{},onDropAccepted:h=()=>{},onDrop:p=()=>{},fileClick:A=()=>{},onCancel:k=()=>{},color:i="primary",size:c="small",dragAndDropFileProps:v,uploadedFileProps:n,..._}=t;var I={theme:M.useTheme(),size:c,color:i};const[r,a]=s.useState([]);s.useEffect(()=>{a(m)},[m]);const N=s.useCallback((e,o)=>{p&&p(e,o)},[]),O=s.useCallback(e=>{h&&h(e)},[]),T=e=>{var o;(o=e.target)!=null&&o.files?a([...r,...e.target.files]):e&&a([...r,...e]),u&&u(e)};return l.jsx(U,{ref:D,...I,..._,children:l.jsxs(G,{direction:"RowReverse",children:[l.jsx(g,{M:(r==null?void 0:r.length)>0?6:12,children:l.jsx(B,{id:x,disabled:b,preventDefault:q,acceptDropzone:C,acceptInput:F,multiple:j,selectFileText:R,dndFileText:w,control:S,showFileSize:d,showDnD:!((r==null?void 0:r.length)>0),onChange:T,onFocus:y,onBlur:z,onDrop:N,onDropAccepted:O,color:i,size:c,...v})}),r==null?void 0:r.map((e,o)=>l.jsx(g,{M:6,children:l.jsx(E,{fileName:e.name,fileSize:e.size,showFileSize:d,color:i,size:c,onFileClick:A,onCancel:k,...n,className:"file-item-lnc "+(n==null?void 0:n.className)},o)},o))]})})});module.exports=V;
|
package/dist/DragDropFiles.js
CHANGED
|
@@ -1,175 +1,121 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
2
|
-
import { forwardRef as G, useState as M, useEffect as U, useCallback as
|
|
3
|
-
import { P as e } from "./index-CblbdqjE.js";
|
|
1
|
+
import { jsx as t, jsxs as B } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as G, useState as M, useEffect as U, useCallback as h } from "react";
|
|
4
3
|
import { s as V } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
5
4
|
import E from "./DragAndDropFile.js";
|
|
6
|
-
import
|
|
7
|
-
import { b as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { u as
|
|
11
|
-
const
|
|
5
|
+
import P from "./UploadedFile.js";
|
|
6
|
+
import { b as W, a as q } from "./utils-DtEfC-TX.js";
|
|
7
|
+
import H from "./FlexGrid.js";
|
|
8
|
+
import g from "./FlexGridItem.js";
|
|
9
|
+
import { u as J } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
10
|
+
const K = V.div`
|
|
12
11
|
display: flex;
|
|
13
12
|
flex-direction: column;
|
|
14
13
|
gap: 1rem;
|
|
15
14
|
|
|
16
|
-
border: ${(
|
|
17
|
-
|
|
15
|
+
border: ${(l) => `1px solid ${W(
|
|
16
|
+
l.theme,
|
|
18
17
|
"DragDropFiles",
|
|
19
|
-
|
|
18
|
+
l.color,
|
|
20
19
|
"enabled",
|
|
21
20
|
"border"
|
|
22
21
|
)}`};
|
|
23
|
-
border-radius: ${(
|
|
22
|
+
border-radius: ${(l) => q(l.theme, "regular")};
|
|
24
23
|
padding: 1.25rem 2.5rem;
|
|
25
24
|
|
|
26
25
|
& .file-item-lnc {
|
|
27
26
|
padding: 0.5rem 0.813rem;
|
|
28
27
|
height: 100%;
|
|
29
28
|
}
|
|
30
|
-
`,
|
|
29
|
+
`, te = G((l, D) => {
|
|
31
30
|
const {
|
|
32
|
-
id:
|
|
33
|
-
disabled:
|
|
34
|
-
preventDefault:
|
|
35
|
-
acceptDropzone:
|
|
36
|
-
acceptInput:
|
|
31
|
+
id: u = "",
|
|
32
|
+
disabled: x = !1,
|
|
33
|
+
preventDefault: b = !1,
|
|
34
|
+
acceptDropzone: C = {},
|
|
35
|
+
acceptInput: F,
|
|
37
36
|
multiple: z = !0,
|
|
38
|
-
selectFileText:
|
|
39
|
-
dndFileText:
|
|
40
|
-
control:
|
|
37
|
+
selectFileText: A = "Select file",
|
|
38
|
+
dndFileText: R = "Drag and drop file here or",
|
|
39
|
+
control: S,
|
|
41
40
|
showFileSize: d = !0,
|
|
42
|
-
files:
|
|
41
|
+
files: m = [],
|
|
43
42
|
// ----------------------------------------
|
|
44
|
-
onChange:
|
|
43
|
+
onChange: c = () => {
|
|
45
44
|
},
|
|
46
|
-
onFocus:
|
|
45
|
+
onFocus: v = () => {
|
|
47
46
|
},
|
|
48
|
-
onBlur:
|
|
47
|
+
onBlur: w = () => {
|
|
49
48
|
},
|
|
50
49
|
onDropAccepted: f = () => {
|
|
51
50
|
},
|
|
52
|
-
onDrop:
|
|
51
|
+
onDrop: p = () => {
|
|
53
52
|
},
|
|
54
|
-
fileClick:
|
|
53
|
+
fileClick: y = () => {
|
|
55
54
|
},
|
|
56
|
-
onCancel:
|
|
55
|
+
onCancel: k = () => {
|
|
57
56
|
},
|
|
58
57
|
// ----------------------------------------
|
|
59
|
-
className: X = "",
|
|
60
|
-
style: Y = {},
|
|
61
58
|
color: i = "primary",
|
|
62
|
-
size:
|
|
63
|
-
dragAndDropFileProps:
|
|
59
|
+
size: n = "small",
|
|
60
|
+
dragAndDropFileProps: I,
|
|
64
61
|
uploadedFileProps: a,
|
|
65
|
-
...
|
|
66
|
-
} =
|
|
67
|
-
var
|
|
68
|
-
const [r,
|
|
62
|
+
...N
|
|
63
|
+
} = l;
|
|
64
|
+
var O = { theme: J(), size: n, color: i };
|
|
65
|
+
const [r, s] = M([]);
|
|
69
66
|
U(() => {
|
|
70
|
-
|
|
71
|
-
}, [
|
|
72
|
-
const
|
|
73
|
-
|
|
74
|
-
}, []),
|
|
75
|
-
f && f(
|
|
76
|
-
}, []),
|
|
77
|
-
var
|
|
78
|
-
(
|
|
67
|
+
s(m);
|
|
68
|
+
}, [m]);
|
|
69
|
+
const T = h((e, o) => {
|
|
70
|
+
p && p(e, o);
|
|
71
|
+
}, []), $ = h((e) => {
|
|
72
|
+
f && f(e);
|
|
73
|
+
}, []), j = (e) => {
|
|
74
|
+
var o;
|
|
75
|
+
(o = e.target) != null && o.files ? s([...r, ...e.target.files]) : e && s([...r, ...e]), c && c(e);
|
|
79
76
|
};
|
|
80
|
-
return /* @__PURE__ */ t(
|
|
81
|
-
/* @__PURE__ */ t(
|
|
77
|
+
return /* @__PURE__ */ t(K, { ref: D, ...O, ...N, children: /* @__PURE__ */ B(H, { direction: "RowReverse", children: [
|
|
78
|
+
/* @__PURE__ */ t(g, { M: (r == null ? void 0 : r.length) > 0 ? 6 : 12, children: /* @__PURE__ */ t(
|
|
82
79
|
E,
|
|
83
80
|
{
|
|
84
|
-
id:
|
|
85
|
-
disabled:
|
|
86
|
-
preventDefault:
|
|
87
|
-
acceptDropzone:
|
|
88
|
-
acceptInput:
|
|
81
|
+
id: u,
|
|
82
|
+
disabled: x,
|
|
83
|
+
preventDefault: b,
|
|
84
|
+
acceptDropzone: C,
|
|
85
|
+
acceptInput: F,
|
|
89
86
|
multiple: z,
|
|
90
|
-
selectFileText:
|
|
91
|
-
dndFileText:
|
|
92
|
-
control:
|
|
87
|
+
selectFileText: A,
|
|
88
|
+
dndFileText: R,
|
|
89
|
+
control: S,
|
|
93
90
|
showFileSize: d,
|
|
94
91
|
showDnD: !((r == null ? void 0 : r.length) > 0),
|
|
95
|
-
onChange:
|
|
96
|
-
onFocus:
|
|
97
|
-
onBlur:
|
|
98
|
-
onDrop:
|
|
99
|
-
onDropAccepted:
|
|
92
|
+
onChange: j,
|
|
93
|
+
onFocus: v,
|
|
94
|
+
onBlur: w,
|
|
95
|
+
onDrop: T,
|
|
96
|
+
onDropAccepted: $,
|
|
100
97
|
color: i,
|
|
101
|
-
size:
|
|
102
|
-
...
|
|
98
|
+
size: n,
|
|
99
|
+
...I
|
|
103
100
|
}
|
|
104
101
|
) }),
|
|
105
|
-
r == null ? void 0 : r.map((
|
|
106
|
-
|
|
102
|
+
r == null ? void 0 : r.map((e, o) => /* @__PURE__ */ t(g, { M: 6, children: /* @__PURE__ */ t(
|
|
103
|
+
P,
|
|
107
104
|
{
|
|
108
|
-
fileName:
|
|
109
|
-
fileSize:
|
|
105
|
+
fileName: e.name,
|
|
106
|
+
fileSize: e.size,
|
|
110
107
|
showFileSize: d,
|
|
111
108
|
color: i,
|
|
112
|
-
size:
|
|
113
|
-
onFileClick:
|
|
114
|
-
onCancel:
|
|
109
|
+
size: n,
|
|
110
|
+
onFileClick: y,
|
|
111
|
+
onCancel: k,
|
|
115
112
|
...a,
|
|
116
113
|
className: "file-item-lnc " + (a == null ? void 0 : a.className)
|
|
117
114
|
},
|
|
118
|
-
|
|
119
|
-
) },
|
|
115
|
+
o
|
|
116
|
+
) }, o))
|
|
120
117
|
] }) });
|
|
121
118
|
});
|
|
122
|
-
Q.propTypes = {
|
|
123
|
-
id: e.any,
|
|
124
|
-
disabled: e.bool,
|
|
125
|
-
preventDefault: e.bool,
|
|
126
|
-
/**
|
|
127
|
-
* Type of: { \[key: string]: string[] }
|
|
128
|
-
*
|
|
129
|
-
* Ex: {
|
|
130
|
-
*
|
|
131
|
-
* 'image/png': ['.png'],
|
|
132
|
-
*
|
|
133
|
-
* 'text/html': ['.html', '.htm']
|
|
134
|
-
*
|
|
135
|
-
* }
|
|
136
|
-
*/
|
|
137
|
-
acceptDropzone: e.object,
|
|
138
|
-
acceptInput: e.string,
|
|
139
|
-
multiple: e.bool,
|
|
140
|
-
selectFileText: e.string,
|
|
141
|
-
dndFileText: e.oneOfType([e.string, e.element]),
|
|
142
|
-
/**
|
|
143
|
-
* Custom control which opens file explorer on click
|
|
144
|
-
*/
|
|
145
|
-
control: e.element,
|
|
146
|
-
showFileSize: e.bool,
|
|
147
|
-
files: e.array,
|
|
148
|
-
//-------------------------
|
|
149
|
-
onChange: e.func,
|
|
150
|
-
onFocus: e.func,
|
|
151
|
-
onBlur: e.func,
|
|
152
|
-
onDropAccepted: e.func,
|
|
153
|
-
onDrop: e.func,
|
|
154
|
-
fileClick: e.func,
|
|
155
|
-
onCancel: e.func,
|
|
156
|
-
//-------------------------
|
|
157
|
-
className: e.string,
|
|
158
|
-
style: e.object,
|
|
159
|
-
size: e.oneOf(["small", "medium", "large"]),
|
|
160
|
-
color: e.oneOf([
|
|
161
|
-
"primary",
|
|
162
|
-
"secondary",
|
|
163
|
-
"success",
|
|
164
|
-
"danger",
|
|
165
|
-
"warning",
|
|
166
|
-
"information",
|
|
167
|
-
"neutral",
|
|
168
|
-
"gray"
|
|
169
|
-
]),
|
|
170
|
-
dragAndDropFileProps: e.any,
|
|
171
|
-
uploadedFileProps: e.any
|
|
172
|
-
};
|
|
173
119
|
export {
|
|
174
|
-
|
|
120
|
+
te as default
|
|
175
121
|
};
|
package/dist/Drawer.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";const $=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const $=require("react/jsx-runtime"),o=require("react"),q=require("./emotion-react.browser.esm-Cvnp-zmB.cjs"),k=require("./utils-RnrgDDZP.cjs"),j=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs");function N(){return N=Object.assign||function(n){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(n[t]=r[t])}return n},N.apply(this,arguments)}var B=function(e,r){var t={left:{top:0,left:0,transform:"translate3d(-100%, 0, 0)",width:r,height:"100vh"},right:{top:0,right:0,transform:"translate3d(100%, 0, 0)",width:r,height:"100vh"},bottom:{left:0,right:0,bottom:0,transform:"translate3d(0, 100%, 0)",width:"100%",height:r},top:{left:0,right:0,top:0,transform:"translate3d(0, -100%, 0)",width:"100%",height:r}};return t[e]},P=function(e){var r=e.open,t=e.onClose,_=t===void 0?function(){}:t,b=e.children,p=e.style,l=e.enableOverlay,x=l===void 0?!0:l,u=e.overlayColor,C=u===void 0?"#000":u,s=e.overlayOpacity,D=s===void 0?.4:s,v=e.zIndex,m=v===void 0?100:v,y=e.duration,E=y===void 0?500:y,i=e.direction,h=e.size,c=h===void 0?250:h,S=e.className,f=e.customIdSuffix,g=e.lockBackgroundScroll,a=g===void 0?!1:g,w=e.overlayClassName,Z=w===void 0?"":w,O=o.useRef(null);o.useEffect(function(){var R=function(){O.current=window.document.querySelector("body"),O.current&&a&&(O.current.style.overflow=r?"hidden":"")};R()},[r]);var d=o.useMemo(function(){return f||(Math.random()+1).toString(36).substring(7)},[f]),I={backgroundColor:C.toString(),opacity:D,zIndex:m},z=N({zIndex:m+1,transitionDuration:E+"ms"},B(i,c),p);return o.createElement("div",{id:"EZDrawer"+d,className:"EZDrawer"},o.createElement("input",{type:"checkbox",id:"EZDrawer__checkbox"+d,className:"EZDrawer__checkbox",onChange:_,checked:r}),o.createElement("nav",{role:"navigation",id:"EZDrawer__container"+d,style:z,className:"EZDrawer__container "+S},b),x&&o.createElement("label",{htmlFor:"EZDrawer__checkbox"+d,id:"EZDrawer__overlay"+d,className:"EZDrawer__overlay "+Z,style:I}))};const F=o.forwardRef((n,e)=>{const{direction:r="right",duration:t=300,overlayOpacity:_=.4,enableOverlay:b=!0,zIndex:p=100,onClose:l=()=>{},onOpen:x=()=>{},className:u="",style:C={},color:s="neutral",size:D="small",overlayColor:v,width:m="unset",children:y,...E}=n,i=j.useTheme(),[h,c]=o.useState(!1);o.useImperativeHandle(e,()=>({open(){S()},close(){f()}}));const S=a=>{c(!0),x(a)},f=a=>{c(!1),l(a)},g=()=>{c(!1),l()};return $.jsx(q.ClassNames,{children:({css:a,cx:w})=>$.jsx(P,{open:h,onClose:g,direction:r,zIndex:p,duration:t,overlayOpacity:_,enableOverlay:b,size:m,className:w("drawer-lnc "+u,a`
|
|
2
2
|
padding: 20px;
|
|
3
|
-
background-color: ${
|
|
4
|
-
color: ${
|
|
5
|
-
${
|
|
6
|
-
`),style:
|
|
3
|
+
background-color: ${k.getColorRgbaValue(i,"Drawer",s,"enabled","background")} !important;
|
|
4
|
+
color: ${k.getColorRgbaValue(i,"Drawer",s,"enabled","text")};
|
|
5
|
+
${k.getComponentTypographyCss(i,"Drawer",D,"enabled")};
|
|
6
|
+
`),style:C,overlayColor:v,...E,children:y})})});module.exports=F;
|
package/dist/Drawer.js
CHANGED
|
@@ -1,33 +1,32 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
function
|
|
8
|
-
return $ = Object.assign || function(n) {
|
|
1
|
+
import { jsx as N } from "react/jsx-runtime";
|
|
2
|
+
import p, { useRef as j, useEffect as B, useMemo as P, forwardRef as M, useState as T, useImperativeHandle as q } from "react";
|
|
3
|
+
import { C as F } from "./emotion-react.browser.esm-DUVZ5oEL.js";
|
|
4
|
+
import { b as $, c as H } from "./utils-DtEfC-TX.js";
|
|
5
|
+
import { u as V } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
6
|
+
function k() {
|
|
7
|
+
return k = Object.assign || function(o) {
|
|
9
8
|
for (var e = 1; e < arguments.length; e++) {
|
|
10
|
-
var
|
|
11
|
-
for (var a in
|
|
12
|
-
Object.prototype.hasOwnProperty.call(
|
|
9
|
+
var r = arguments[e];
|
|
10
|
+
for (var a in r)
|
|
11
|
+
Object.prototype.hasOwnProperty.call(r, a) && (o[a] = r[a]);
|
|
13
12
|
}
|
|
14
|
-
return
|
|
15
|
-
},
|
|
13
|
+
return o;
|
|
14
|
+
}, k.apply(this, arguments);
|
|
16
15
|
}
|
|
17
|
-
var
|
|
16
|
+
var A = function(e, r) {
|
|
18
17
|
var a = {
|
|
19
18
|
left: {
|
|
20
19
|
top: 0,
|
|
21
20
|
left: 0,
|
|
22
21
|
transform: "translate3d(-100%, 0, 0)",
|
|
23
|
-
width:
|
|
22
|
+
width: r,
|
|
24
23
|
height: "100vh"
|
|
25
24
|
},
|
|
26
25
|
right: {
|
|
27
26
|
top: 0,
|
|
28
27
|
right: 0,
|
|
29
28
|
transform: "translate3d(100%, 0, 0)",
|
|
30
|
-
width:
|
|
29
|
+
width: r,
|
|
31
30
|
height: "100vh"
|
|
32
31
|
},
|
|
33
32
|
bottom: {
|
|
@@ -36,7 +35,7 @@ var G = function(e, o) {
|
|
|
36
35
|
bottom: 0,
|
|
37
36
|
transform: "translate3d(0, 100%, 0)",
|
|
38
37
|
width: "100%",
|
|
39
|
-
height:
|
|
38
|
+
height: r
|
|
40
39
|
},
|
|
41
40
|
top: {
|
|
42
41
|
left: 0,
|
|
@@ -44,163 +43,126 @@ var G = function(e, o) {
|
|
|
44
43
|
top: 0,
|
|
45
44
|
transform: "translate3d(0, -100%, 0)",
|
|
46
45
|
width: "100%",
|
|
47
|
-
height:
|
|
46
|
+
height: r
|
|
48
47
|
}
|
|
49
48
|
};
|
|
50
49
|
return a[e];
|
|
51
|
-
},
|
|
52
|
-
var
|
|
53
|
-
} : a, _ = e.children,
|
|
54
|
-
|
|
50
|
+
}, G = function(e) {
|
|
51
|
+
var r = e.open, a = e.onClose, w = a === void 0 ? function() {
|
|
52
|
+
} : a, _ = e.children, b = e.style, n = e.enableOverlay, C = n === void 0 ? !0 : n, d = e.overlayColor, D = d === void 0 ? "#000" : d, l = e.overlayOpacity, x = l === void 0 ? 0.4 : l, u = e.zIndex, m = u === void 0 ? 100 : u, v = e.duration, E = v === void 0 ? 500 : v, i = e.direction, f = e.size, s = f === void 0 ? 250 : f, S = e.className, y = e.customIdSuffix, h = e.lockBackgroundScroll, t = h === void 0 ? !1 : h, g = e.overlayClassName, Z = g === void 0 ? "" : g, O = j(null);
|
|
53
|
+
B(function() {
|
|
55
54
|
var R = function() {
|
|
56
|
-
|
|
55
|
+
O.current = window.document.querySelector("body"), O.current && t && (O.current.style.overflow = r ? "hidden" : "");
|
|
57
56
|
};
|
|
58
57
|
R();
|
|
59
|
-
}, [
|
|
60
|
-
var
|
|
61
|
-
return
|
|
62
|
-
}, [
|
|
63
|
-
backgroundColor:
|
|
64
|
-
opacity:
|
|
65
|
-
zIndex:
|
|
66
|
-
},
|
|
67
|
-
zIndex:
|
|
68
|
-
transitionDuration:
|
|
69
|
-
},
|
|
70
|
-
return
|
|
71
|
-
id: "EZDrawer" +
|
|
58
|
+
}, [r]);
|
|
59
|
+
var c = P(function() {
|
|
60
|
+
return y || (Math.random() + 1).toString(36).substring(7);
|
|
61
|
+
}, [y]), I = {
|
|
62
|
+
backgroundColor: D.toString(),
|
|
63
|
+
opacity: x,
|
|
64
|
+
zIndex: m
|
|
65
|
+
}, z = k({
|
|
66
|
+
zIndex: m + 1,
|
|
67
|
+
transitionDuration: E + "ms"
|
|
68
|
+
}, A(i, s), b);
|
|
69
|
+
return p.createElement("div", {
|
|
70
|
+
id: "EZDrawer" + c,
|
|
72
71
|
className: "EZDrawer"
|
|
73
|
-
},
|
|
72
|
+
}, p.createElement("input", {
|
|
74
73
|
type: "checkbox",
|
|
75
|
-
id: "EZDrawer__checkbox" +
|
|
74
|
+
id: "EZDrawer__checkbox" + c,
|
|
76
75
|
className: "EZDrawer__checkbox",
|
|
77
76
|
onChange: w,
|
|
78
|
-
checked:
|
|
79
|
-
}),
|
|
77
|
+
checked: r
|
|
78
|
+
}), p.createElement("nav", {
|
|
80
79
|
role: "navigation",
|
|
81
|
-
id: "EZDrawer__container" +
|
|
82
|
-
style:
|
|
83
|
-
className: "EZDrawer__container " +
|
|
84
|
-
}, _),
|
|
85
|
-
htmlFor: "EZDrawer__checkbox" +
|
|
86
|
-
id: "EZDrawer__overlay" +
|
|
87
|
-
className: "EZDrawer__overlay " +
|
|
88
|
-
style:
|
|
80
|
+
id: "EZDrawer__container" + c,
|
|
81
|
+
style: z,
|
|
82
|
+
className: "EZDrawer__container " + S
|
|
83
|
+
}, _), C && p.createElement("label", {
|
|
84
|
+
htmlFor: "EZDrawer__checkbox" + c,
|
|
85
|
+
id: "EZDrawer__overlay" + c,
|
|
86
|
+
className: "EZDrawer__overlay " + Z,
|
|
87
|
+
style: I
|
|
89
88
|
}));
|
|
90
89
|
};
|
|
91
|
-
const
|
|
90
|
+
const X = M((o, e) => {
|
|
92
91
|
const {
|
|
93
|
-
direction:
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
zIndex: c = 100,
|
|
92
|
+
direction: r = "right",
|
|
93
|
+
duration: a = 300,
|
|
94
|
+
overlayOpacity: w = 0.4,
|
|
95
|
+
enableOverlay: _ = !0,
|
|
96
|
+
zIndex: b = 100,
|
|
99
97
|
//----------------
|
|
100
|
-
onClose:
|
|
98
|
+
onClose: n = () => {
|
|
101
99
|
},
|
|
102
|
-
onOpen:
|
|
100
|
+
onOpen: C = () => {
|
|
103
101
|
},
|
|
104
102
|
//----------------
|
|
105
|
-
className:
|
|
106
|
-
style:
|
|
107
|
-
color:
|
|
108
|
-
size:
|
|
109
|
-
overlayColor:
|
|
110
|
-
width:
|
|
111
|
-
children:
|
|
112
|
-
...
|
|
113
|
-
} =
|
|
114
|
-
|
|
103
|
+
className: d = "",
|
|
104
|
+
style: D = {},
|
|
105
|
+
color: l = "neutral",
|
|
106
|
+
size: x = "small",
|
|
107
|
+
overlayColor: u,
|
|
108
|
+
width: m = "unset",
|
|
109
|
+
children: v,
|
|
110
|
+
...E
|
|
111
|
+
} = o, i = V(), [f, s] = T(!1);
|
|
112
|
+
q(e, () => ({
|
|
115
113
|
open() {
|
|
116
|
-
|
|
114
|
+
S();
|
|
117
115
|
},
|
|
118
116
|
close() {
|
|
119
|
-
|
|
117
|
+
y();
|
|
120
118
|
}
|
|
121
119
|
}));
|
|
122
|
-
const
|
|
123
|
-
|
|
124
|
-
},
|
|
125
|
-
|
|
126
|
-
},
|
|
127
|
-
|
|
120
|
+
const S = (t) => {
|
|
121
|
+
s(!0), C(t);
|
|
122
|
+
}, y = (t) => {
|
|
123
|
+
s(!1), n(t);
|
|
124
|
+
}, h = () => {
|
|
125
|
+
s(!1), n();
|
|
128
126
|
};
|
|
129
|
-
return /* @__PURE__ */
|
|
130
|
-
|
|
127
|
+
return /* @__PURE__ */ N(F, { children: ({ css: t, cx: g }) => /* @__PURE__ */ N(
|
|
128
|
+
G,
|
|
131
129
|
{
|
|
132
|
-
open:
|
|
133
|
-
onClose:
|
|
134
|
-
direction:
|
|
135
|
-
zIndex:
|
|
136
|
-
duration:
|
|
137
|
-
overlayOpacity:
|
|
138
|
-
enableOverlay:
|
|
139
|
-
size:
|
|
140
|
-
className:
|
|
141
|
-
"drawer-lnc " +
|
|
130
|
+
open: f,
|
|
131
|
+
onClose: h,
|
|
132
|
+
direction: r,
|
|
133
|
+
zIndex: b,
|
|
134
|
+
duration: a,
|
|
135
|
+
overlayOpacity: w,
|
|
136
|
+
enableOverlay: _,
|
|
137
|
+
size: m,
|
|
138
|
+
className: g(
|
|
139
|
+
"drawer-lnc " + d,
|
|
142
140
|
t`
|
|
143
141
|
padding: 20px;
|
|
144
|
-
background-color: ${
|
|
145
|
-
|
|
142
|
+
background-color: ${$(
|
|
143
|
+
i,
|
|
146
144
|
"Drawer",
|
|
147
|
-
|
|
145
|
+
l,
|
|
148
146
|
"enabled",
|
|
149
147
|
"background"
|
|
150
148
|
)} !important;
|
|
151
|
-
color: ${
|
|
152
|
-
|
|
149
|
+
color: ${$(
|
|
150
|
+
i,
|
|
153
151
|
"Drawer",
|
|
154
|
-
|
|
152
|
+
l,
|
|
155
153
|
"enabled",
|
|
156
154
|
"text"
|
|
157
155
|
)};
|
|
158
|
-
${
|
|
156
|
+
${H(i, "Drawer", x, "enabled")};
|
|
159
157
|
`
|
|
160
158
|
),
|
|
161
|
-
style:
|
|
162
|
-
overlayColor:
|
|
163
|
-
...
|
|
164
|
-
children:
|
|
159
|
+
style: D,
|
|
160
|
+
overlayColor: u,
|
|
161
|
+
...E,
|
|
162
|
+
children: v
|
|
165
163
|
}
|
|
166
164
|
) });
|
|
167
165
|
});
|
|
168
|
-
K.propTypes = {
|
|
169
|
-
direction: r.oneOf(["top", "right", "left", "bottom"]),
|
|
170
|
-
open: r.bool,
|
|
171
|
-
/**
|
|
172
|
-
* Duration of opening the drawer in ms
|
|
173
|
-
*/
|
|
174
|
-
duration: r.number,
|
|
175
|
-
overlayOpacity: r.number,
|
|
176
|
-
/**
|
|
177
|
-
* Determines whether to show the overlay
|
|
178
|
-
*/
|
|
179
|
-
enableOverlay: r.bool,
|
|
180
|
-
/**
|
|
181
|
-
* z-index of Drawer
|
|
182
|
-
*/
|
|
183
|
-
zIndex: r.number,
|
|
184
|
-
//---------------------------------------------------------------
|
|
185
|
-
onClose: r.func,
|
|
186
|
-
onOpen: r.func,
|
|
187
|
-
//---------------------------------------------------------------
|
|
188
|
-
className: r.string,
|
|
189
|
-
style: r.object,
|
|
190
|
-
overlayColor: r.string,
|
|
191
|
-
width: r.oneOfType([r.number, r.string]),
|
|
192
|
-
size: r.oneOf(["small", "medium", "large"]),
|
|
193
|
-
color: r.oneOf([
|
|
194
|
-
"primary",
|
|
195
|
-
"secondary",
|
|
196
|
-
"success",
|
|
197
|
-
"warning",
|
|
198
|
-
"danger",
|
|
199
|
-
"information",
|
|
200
|
-
"neutral",
|
|
201
|
-
"gray"
|
|
202
|
-
])
|
|
203
|
-
};
|
|
204
166
|
export {
|
|
205
|
-
|
|
167
|
+
X as default
|
|
206
168
|
};
|
package/dist/Dropdown.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const _=require("react/jsx-runtime"),n=require("react"),o=require("./CustomStyles-C86XQqBE.cjs"),l=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs");require("./index-41nUb2kP.cjs");const j=require("./index-Cp66dWMi.cjs");function q(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const s=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,s.get?s:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const v=q(n);var M=n.forwardRef(function(e,r){var t=o.useStateManager(e);return v.createElement(o.Select,l._extends({ref:r},t))}),w=M;const O=n.forwardRef((e,r)=>{const{styles:t,debounceTime:s=0,isSearchable:i=!0,isClearable:m=!0,size:d="small",color:f="primary",className:b="",style:S={},...p}=e,g=l.useTheme(),y=n.useCallback(j.debounce((c,u)=>{a==null||a(c,u)},s)),a=(c,u)=>{y(c,u)};return _.jsx(w,{ref:r,styles:t||o.customStyles,size:d,color:f,theme:g,isSearchable:i,isClearable:m,className:b,style:S,...p})});exports.components=o.components;exports.default=O;
|