@lanaco/lnc-react-ui 4.0.198 → 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 +6 -5
- package/dist/ToggleSection.js +49 -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
|
@@ -1,32 +1,30 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { P as t } from "./index-CblbdqjE.js";
|
|
1
|
+
import { jsxs as M, Fragment as i, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as x, useState as S, cloneElement as p, Children as w, isValidElement as b } from "react";
|
|
4
3
|
import { s as h } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
5
4
|
import { b as D } from "./utils-DtEfC-TX.js";
|
|
6
|
-
import { m as
|
|
7
|
-
import { u as
|
|
8
|
-
import { A as
|
|
9
|
-
const
|
|
5
|
+
import { m as C } from "./motion-Ckekul_K.js";
|
|
6
|
+
import { u as P } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
7
|
+
import { A as j } from "./index-D-c5IxDk.js";
|
|
8
|
+
const A = h(C.div)`
|
|
10
9
|
margin-left: 0.3rem;
|
|
11
10
|
padding-left: 0.3rem;
|
|
12
|
-
border-left: ${(
|
|
13
|
-
|
|
11
|
+
border-left: ${(t) => `2px solid ${D(
|
|
12
|
+
t.theme,
|
|
14
13
|
"MenuItem",
|
|
15
|
-
|
|
14
|
+
t.color,
|
|
16
15
|
"focus",
|
|
17
16
|
"background"
|
|
18
17
|
)}`};
|
|
19
18
|
border-radius: 2px;
|
|
20
|
-
`,
|
|
19
|
+
`, O = x((t, R) => {
|
|
21
20
|
const {
|
|
22
|
-
|
|
23
|
-
item: f,
|
|
21
|
+
item: l,
|
|
24
22
|
//------------------
|
|
25
|
-
onItemSelected:
|
|
23
|
+
onItemSelected: d = () => {
|
|
26
24
|
},
|
|
27
25
|
//--------------------
|
|
28
|
-
defaultOpen:
|
|
29
|
-
animation:
|
|
26
|
+
defaultOpen: f = !1,
|
|
27
|
+
animation: u = {
|
|
30
28
|
animate: { opacity: 1, height: "auto" },
|
|
31
29
|
exit: { opacity: 0, height: 0 },
|
|
32
30
|
initial: { opacity: 0, height: 0 },
|
|
@@ -37,66 +35,46 @@ const z = h(j.div)`
|
|
|
37
35
|
height: { duration: 0.15 }
|
|
38
36
|
}
|
|
39
37
|
},
|
|
40
|
-
className:
|
|
41
|
-
style:
|
|
42
|
-
color:
|
|
43
|
-
size:
|
|
44
|
-
children:
|
|
45
|
-
...
|
|
46
|
-
} =
|
|
38
|
+
className: E = "",
|
|
39
|
+
style: c = {},
|
|
40
|
+
color: o = "primary",
|
|
41
|
+
size: r = "small",
|
|
42
|
+
children: N,
|
|
43
|
+
...g
|
|
44
|
+
} = t, y = P(), [s, _] = S(f), T = p(l, {
|
|
47
45
|
isNested: !0,
|
|
48
|
-
showNested:
|
|
46
|
+
showNested: s,
|
|
49
47
|
toggleNested: () => {
|
|
50
|
-
|
|
48
|
+
_(!s);
|
|
51
49
|
},
|
|
52
|
-
color:
|
|
53
|
-
size:
|
|
54
|
-
}),
|
|
55
|
-
var
|
|
56
|
-
return
|
|
57
|
-
color: e.props.color ? e.props.color :
|
|
58
|
-
size:
|
|
59
|
-
onItemSelected:
|
|
50
|
+
color: o,
|
|
51
|
+
size: r
|
|
52
|
+
}), I = w.map(N, (e, V) => {
|
|
53
|
+
var n, m;
|
|
54
|
+
return b(e) && (e.props.__TYPE__ == "MENU_ITEM" || ((n = e == null ? void 0 : e.type) == null ? void 0 : n.displayName) === "MENU_ITEM" || e.props.__TYPE__ == "NESTED_ITEM" || ((m = e == null ? void 0 : e.type) == null ? void 0 : m.displayName) === "NESTED_ITEM") ? p(e, {
|
|
55
|
+
color: e.props.color ? e.props.color : o,
|
|
56
|
+
size: r,
|
|
57
|
+
onItemSelected: d
|
|
60
58
|
}) : e;
|
|
61
59
|
});
|
|
62
|
-
return /* @__PURE__ */
|
|
63
|
-
/* @__PURE__ */
|
|
64
|
-
/* @__PURE__ */
|
|
65
|
-
|
|
60
|
+
return /* @__PURE__ */ M(i, { children: [
|
|
61
|
+
/* @__PURE__ */ a(i, { children: T }),
|
|
62
|
+
/* @__PURE__ */ a(j, { children: s && /* @__PURE__ */ a(
|
|
63
|
+
A,
|
|
66
64
|
{
|
|
67
|
-
...
|
|
68
|
-
theme:
|
|
69
|
-
color:
|
|
70
|
-
size:
|
|
71
|
-
className: "nested-item-lnc " +
|
|
72
|
-
style:
|
|
73
|
-
...
|
|
74
|
-
children:
|
|
65
|
+
...u,
|
|
66
|
+
theme: y,
|
|
67
|
+
color: o,
|
|
68
|
+
size: r,
|
|
69
|
+
className: "nested-item-lnc " + E,
|
|
70
|
+
style: c,
|
|
71
|
+
...g,
|
|
72
|
+
children: I
|
|
75
73
|
}
|
|
76
74
|
) })
|
|
77
75
|
] });
|
|
78
76
|
});
|
|
79
|
-
|
|
80
|
-
item: t.oneOfType([t.string, t.element]),
|
|
81
|
-
//--------------------------
|
|
82
|
-
defaultOpen: t.bool,
|
|
83
|
-
animation: t.object,
|
|
84
|
-
className: t.string,
|
|
85
|
-
style: t.object,
|
|
86
|
-
color: t.oneOf([
|
|
87
|
-
"primary",
|
|
88
|
-
"secondary",
|
|
89
|
-
"success",
|
|
90
|
-
"warning",
|
|
91
|
-
"danger",
|
|
92
|
-
"information",
|
|
93
|
-
"neutral",
|
|
94
|
-
"gray"
|
|
95
|
-
]),
|
|
96
|
-
size: t.oneOf(["small", "medium", "large"]),
|
|
97
|
-
__TYPE__: t.string
|
|
98
|
-
};
|
|
99
|
-
d.displayName = "NESTED_ITEM";
|
|
77
|
+
O.displayName = "NESTED_ITEM";
|
|
100
78
|
export {
|
|
101
|
-
|
|
79
|
+
O as default
|
|
102
80
|
};
|
package/dist/NestedMenuItem.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";const n=require("react/jsx-runtime"),
|
|
2
|
-
${
|
|
3
|
-
${
|
|
4
|
-
${
|
|
1
|
+
"use strict";const n=require("react/jsx-runtime"),o=require("react"),b=require("./emotion-styled.browser.esm-BtEseadx.cjs"),q=require("./utils-RnrgDDZP.cjs"),w=require("./motion-B_VPZaJq.cjs"),h=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),$=require("./index-DZoWlChs.cjs"),j=b.styled(w.motion.div)`
|
|
2
|
+
${t=>t.tuckIn==!0&&`margin-left: ${t.tuckInSize};`}
|
|
3
|
+
${t=>t.tuckIn==!0&&`padding-left: ${t.tuckInSize};`}
|
|
4
|
+
${t=>t.tuckIn==!0&&`border-left: 2px solid ${q.getColorRgbaValue(t.theme,"MenuItem",t.color,"focus","background","backgroundOpacity")};`}
|
|
5
5
|
border-radius: 2px;
|
|
6
|
-
`,
|
|
6
|
+
`,c=o.forwardRef((t,m)=>{const{item:l,onItemSelected:d=()=>{},defaultOpen:E=!1,tuckIn:p=!0,tuckInSize:_="0.3rem",animation:y={animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},initial:{opacity:0,height:0},transition:{type:"tween",duration:.15,opacity:{duration:.15,ease:"easeOut"},height:{duration:.15}}},className:I="",style:N={},color:s="primary",size:i="small",children:g,...x}=t,S=h.useTheme(),[r,T]=o.useState(E),f=()=>{T(!r)},k=o.cloneElement(l,{isNested:!0,showNested:r,toggleNested:f,color:s,size:i}),M=o.Children.map(g,(e,z)=>{var a,u;if(o.isValidElement(e)&&(e.props.__TYPE__=="MENU_ITEM"||((a=e==null?void 0:e.type)==null?void 0:a.displayName)==="MENU_ITEM"||e.props.__TYPE__=="NESTED_ITEM"||((u=e==null?void 0:e.type)==null?void 0:u.displayName)==="NESTED_ITEM"))return o.cloneElement(e,{color:e.props.color?e.props.color:s,size:i,onItemSelected:d})});return n.jsxs(n.Fragment,{children:[n.jsx(n.Fragment,{children:k}),n.jsx($.AnimatePresence,{children:r&&n.jsx(j,{theme:S,tuckIn:p,tuckInSize:_,color:s,size:i,className:"nested-item-lnc "+I,style:N,ref:m,show:r,...y,...x,children:M})})]})});c.displayName="NESTED_ITEM";module.exports=c;
|
package/dist/NestedMenuItem.js
CHANGED
|
@@ -1,34 +1,33 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { b as j } from "./utils-DtEfC-TX.js";
|
|
1
|
+
import { jsxs as x, Fragment as m, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as b, useState as h, cloneElement as u, Children as $, isValidElement as w } from "react";
|
|
3
|
+
import { s as z } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
+
import { b as C } from "./utils-DtEfC-TX.js";
|
|
6
5
|
import { m as D } from "./motion-Ckekul_K.js";
|
|
7
|
-
import { u as
|
|
8
|
-
import { A as
|
|
9
|
-
const
|
|
10
|
-
${(
|
|
11
|
-
${(
|
|
12
|
-
${(
|
|
13
|
-
|
|
6
|
+
import { u as O } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
7
|
+
import { A as P } from "./index-D-c5IxDk.js";
|
|
8
|
+
const j = z(D.div)`
|
|
9
|
+
${(t) => t.tuckIn == !0 && `margin-left: ${t.tuckInSize};`}
|
|
10
|
+
${(t) => t.tuckIn == !0 && `padding-left: ${t.tuckInSize};`}
|
|
11
|
+
${(t) => t.tuckIn == !0 && `border-left: 2px solid ${C(
|
|
12
|
+
t.theme,
|
|
14
13
|
"MenuItem",
|
|
15
|
-
|
|
14
|
+
t.color,
|
|
16
15
|
"focus",
|
|
17
16
|
"background",
|
|
18
17
|
"backgroundOpacity"
|
|
19
18
|
)};`}
|
|
20
19
|
border-radius: 2px;
|
|
21
|
-
`,
|
|
20
|
+
`, A = b((t, l) => {
|
|
22
21
|
const {
|
|
23
|
-
item:
|
|
22
|
+
item: c,
|
|
24
23
|
//------------------
|
|
25
|
-
onItemSelected:
|
|
24
|
+
onItemSelected: p = () => {
|
|
26
25
|
},
|
|
27
26
|
//--------------------
|
|
28
|
-
defaultOpen:
|
|
29
|
-
tuckIn:
|
|
27
|
+
defaultOpen: d = !1,
|
|
28
|
+
tuckIn: f = !0,
|
|
30
29
|
tuckInSize: E = "0.3rem",
|
|
31
|
-
animation:
|
|
30
|
+
animation: I = {
|
|
32
31
|
animate: { opacity: 1, height: "auto" },
|
|
33
32
|
exit: { opacity: 0, height: 0 },
|
|
34
33
|
initial: { opacity: 0, height: 0 },
|
|
@@ -39,77 +38,51 @@ const A = $(D.div)`
|
|
|
39
38
|
height: { duration: 0.15 }
|
|
40
39
|
}
|
|
41
40
|
},
|
|
42
|
-
className:
|
|
43
|
-
style:
|
|
44
|
-
color:
|
|
45
|
-
size:
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
} = o, k = Y(), [r, b] = h(g), M = u(d, {
|
|
41
|
+
className: N = "",
|
|
42
|
+
style: g = {},
|
|
43
|
+
color: r = "primary",
|
|
44
|
+
size: n = "small",
|
|
45
|
+
children: y,
|
|
46
|
+
..._
|
|
47
|
+
} = t, T = O(), [o, S] = h(d), k = u(c, {
|
|
50
48
|
isNested: !0,
|
|
51
|
-
showNested:
|
|
49
|
+
showNested: o,
|
|
52
50
|
toggleNested: () => {
|
|
53
|
-
|
|
51
|
+
S(!o);
|
|
54
52
|
},
|
|
55
|
-
color:
|
|
56
|
-
size:
|
|
57
|
-
}),
|
|
58
|
-
var
|
|
59
|
-
if (
|
|
53
|
+
color: r,
|
|
54
|
+
size: n
|
|
55
|
+
}), M = $.map(y, (e, U) => {
|
|
56
|
+
var a, i;
|
|
57
|
+
if (w(e) && (e.props.__TYPE__ == "MENU_ITEM" || ((a = e == null ? void 0 : e.type) == null ? void 0 : a.displayName) === "MENU_ITEM" || e.props.__TYPE__ == "NESTED_ITEM" || ((i = e == null ? void 0 : e.type) == null ? void 0 : i.displayName) === "NESTED_ITEM"))
|
|
60
58
|
return u(e, {
|
|
61
|
-
color: e.props.color ? e.props.color :
|
|
62
|
-
size:
|
|
63
|
-
onItemSelected:
|
|
59
|
+
color: e.props.color ? e.props.color : r,
|
|
60
|
+
size: n,
|
|
61
|
+
onItemSelected: p
|
|
64
62
|
});
|
|
65
63
|
});
|
|
66
|
-
return /* @__PURE__ */
|
|
67
|
-
/* @__PURE__ */
|
|
68
|
-
/* @__PURE__ */
|
|
69
|
-
|
|
64
|
+
return /* @__PURE__ */ x(m, { children: [
|
|
65
|
+
/* @__PURE__ */ s(m, { children: k }),
|
|
66
|
+
/* @__PURE__ */ s(P, { children: o && /* @__PURE__ */ s(
|
|
67
|
+
j,
|
|
70
68
|
{
|
|
71
|
-
theme:
|
|
72
|
-
tuckIn:
|
|
69
|
+
theme: T,
|
|
70
|
+
tuckIn: f,
|
|
73
71
|
tuckInSize: E,
|
|
74
|
-
color:
|
|
75
|
-
size:
|
|
76
|
-
className: "nested-item-lnc " +
|
|
77
|
-
style:
|
|
78
|
-
ref:
|
|
79
|
-
show:
|
|
72
|
+
color: r,
|
|
73
|
+
size: n,
|
|
74
|
+
className: "nested-item-lnc " + N,
|
|
75
|
+
style: g,
|
|
76
|
+
ref: l,
|
|
77
|
+
show: o,
|
|
78
|
+
...I,
|
|
80
79
|
..._,
|
|
81
|
-
|
|
82
|
-
children: x
|
|
80
|
+
children: M
|
|
83
81
|
}
|
|
84
82
|
) })
|
|
85
83
|
] });
|
|
86
84
|
});
|
|
87
|
-
|
|
88
|
-
item: t.oneOfType([t.string, t.element]),
|
|
89
|
-
//--------------------------
|
|
90
|
-
defaultOpen: t.bool,
|
|
91
|
-
/**
|
|
92
|
-
* Determines wether nested items will be tucked in to the right (using margin-right and padding-left).
|
|
93
|
-
*/
|
|
94
|
-
tuckIn: t.bool,
|
|
95
|
-
tuckInSize: t.string,
|
|
96
|
-
animation: t.object,
|
|
97
|
-
className: t.string,
|
|
98
|
-
style: t.object,
|
|
99
|
-
color: t.oneOf([
|
|
100
|
-
"primary",
|
|
101
|
-
"secondary",
|
|
102
|
-
"success",
|
|
103
|
-
"warning",
|
|
104
|
-
"danger",
|
|
105
|
-
"information",
|
|
106
|
-
"neutral",
|
|
107
|
-
"gray"
|
|
108
|
-
]),
|
|
109
|
-
size: t.oneOf(["small", "medium", "large"]),
|
|
110
|
-
__TYPE__: t.string
|
|
111
|
-
};
|
|
112
|
-
c.displayName = "NESTED_ITEM";
|
|
85
|
+
A.displayName = "NESTED_ITEM";
|
|
113
86
|
export {
|
|
114
|
-
|
|
87
|
+
A as default
|
|
115
88
|
};
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),N=require("react"),y=require("./emotion-styled.browser.esm-BtEseadx.cjs"),R=require("./react-toastify.esm-BoMuFZcq.cjs"),o=require("./utils-RnrgDDZP.cjs"),T=require("./ThemeProvider.cjs"),v=y.styled.div`
|
|
2
2
|
& .lnc-notification {
|
|
3
3
|
& > div {
|
|
4
|
-
background-color: ${o
|
|
4
|
+
background-color: ${e=>o.getColorRgbaValue(e.theme,"Notification",e.color,"enabled","background","backgroundOpacity")};
|
|
5
5
|
|
|
6
6
|
box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1),
|
|
7
7
|
0px 4px 6px -2px rgba(0, 0, 0, 0.05);
|
|
8
|
-
border: ${
|
|
9
|
-
border-radius: ${o
|
|
8
|
+
border: ${e=>`1px solid ${o.getColorRgbaValue(e.theme,"Notification","default","enabled","border")}`};
|
|
9
|
+
border-radius: ${e=>o.getBorderRadiusValueWithUnits(e.theme,"regular")};
|
|
10
10
|
}
|
|
11
11
|
& .Toastify__close-button {
|
|
12
12
|
& svg {
|
|
13
|
-
fill: ${o
|
|
13
|
+
fill: ${e=>o.getColorRgbaValue(e.theme,"Notification","default","enabled","icon")};
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
& .Toastify__toast--success {
|
|
17
17
|
& svg {
|
|
18
|
-
fill: ${o
|
|
18
|
+
fill: ${e=>o.getColorRgbaValue(e.theme,"Notification","success","enabled","icon")};
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
& .Toastify__toast--information {
|
|
22
22
|
& svg {
|
|
23
|
-
fill: ${o
|
|
23
|
+
fill: ${e=>o.getColorRgbaValue(e.theme,"Notification","information","enabled","icon")};
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
& .Toastify__toast--danger {
|
|
27
27
|
& svg {
|
|
28
|
-
fill: ${o
|
|
28
|
+
fill: ${e=>o.getColorRgbaValue(e.theme,"Notification","warning","enabled","icon")};
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
& .Toastify__toast--error {
|
|
32
32
|
& svg {
|
|
33
|
-
fill: ${o
|
|
33
|
+
fill: ${e=>o.getColorRgbaValue(e.theme,"Notification","danger","enabled","icon")};
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
|
|
37
|
+
`,$=N.forwardRef((e,i)=>{const{position:a="top-right",autoClose:s=5e5,hideProgressBar:r=!0,newestOnTop:n=!0,closeOnClick:l=!0,rtl:c=!1,pauseOnFocusLoss:u=!1,draggable:f=!1,pauseOnHover:g=!1,closeButton:d=!0,className:b="",style:m={},size:h="small",toastContainerProps:p,...x}=e,{theme:_}=T.useTheme(),C={theme:_,className:"lnc-ui-notification "+b,style:m,size:h};return t.jsx(v,{ref:i,...C,...x,children:t.jsx(R.ToastContainer,{position:a,autoClose:s,hideProgressBar:r,newestOnTop:n,closeOnClick:l,rtl:c,pauseOnFocusLoss:u,draggable:f,pauseOnHover:g,closeButton:d,className:"lnc-notification",...p})})});module.exports=$;
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
const P = _.div`
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as y } from "react";
|
|
3
|
+
import { s as T } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
+
import { T as $ } from "./react-toastify.esm-BLQznunb.js";
|
|
5
|
+
import { b as t, a as v } from "./utils-DtEfC-TX.js";
|
|
6
|
+
import { useTheme as C } from "./ThemeProvider.js";
|
|
7
|
+
const O = T.div`
|
|
9
8
|
& .lnc-notification {
|
|
10
9
|
& > div {
|
|
11
|
-
background-color: ${(o) =>
|
|
10
|
+
background-color: ${(o) => t(
|
|
12
11
|
o.theme,
|
|
13
12
|
"Notification",
|
|
14
13
|
o.color,
|
|
@@ -19,18 +18,18 @@ const P = _.div`
|
|
|
19
18
|
|
|
20
19
|
box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1),
|
|
21
20
|
0px 4px 6px -2px rgba(0, 0, 0, 0.05);
|
|
22
|
-
border: ${(o) => `1px solid ${
|
|
21
|
+
border: ${(o) => `1px solid ${t(
|
|
23
22
|
o.theme,
|
|
24
23
|
"Notification",
|
|
25
24
|
"default",
|
|
26
25
|
"enabled",
|
|
27
26
|
"border"
|
|
28
27
|
)}`};
|
|
29
|
-
border-radius: ${(o) =>
|
|
28
|
+
border-radius: ${(o) => v(o.theme, "regular")};
|
|
30
29
|
}
|
|
31
30
|
& .Toastify__close-button {
|
|
32
31
|
& svg {
|
|
33
|
-
fill: ${(o) =>
|
|
32
|
+
fill: ${(o) => t(
|
|
34
33
|
o.theme,
|
|
35
34
|
"Notification",
|
|
36
35
|
"default",
|
|
@@ -41,7 +40,7 @@ const P = _.div`
|
|
|
41
40
|
}
|
|
42
41
|
& .Toastify__toast--success {
|
|
43
42
|
& svg {
|
|
44
|
-
fill: ${(o) =>
|
|
43
|
+
fill: ${(o) => t(
|
|
45
44
|
o.theme,
|
|
46
45
|
"Notification",
|
|
47
46
|
"success",
|
|
@@ -52,7 +51,7 @@ const P = _.div`
|
|
|
52
51
|
}
|
|
53
52
|
& .Toastify__toast--information {
|
|
54
53
|
& svg {
|
|
55
|
-
fill: ${(o) =>
|
|
54
|
+
fill: ${(o) => t(
|
|
56
55
|
o.theme,
|
|
57
56
|
"Notification",
|
|
58
57
|
"information",
|
|
@@ -63,7 +62,7 @@ const P = _.div`
|
|
|
63
62
|
}
|
|
64
63
|
& .Toastify__toast--danger {
|
|
65
64
|
& svg {
|
|
66
|
-
fill: ${(o) =>
|
|
65
|
+
fill: ${(o) => t(
|
|
67
66
|
o.theme,
|
|
68
67
|
"Notification",
|
|
69
68
|
"warning",
|
|
@@ -74,7 +73,7 @@ const P = _.div`
|
|
|
74
73
|
}
|
|
75
74
|
& .Toastify__toast--error {
|
|
76
75
|
& svg {
|
|
77
|
-
fill: ${(o) =>
|
|
76
|
+
fill: ${(o) => t(
|
|
78
77
|
o.theme,
|
|
79
78
|
"Notification",
|
|
80
79
|
"danger",
|
|
@@ -84,79 +83,47 @@ const P = _.div`
|
|
|
84
83
|
}
|
|
85
84
|
}
|
|
86
85
|
}
|
|
87
|
-
`,
|
|
86
|
+
`, j = y((o, i) => {
|
|
88
87
|
const {
|
|
89
|
-
position:
|
|
90
|
-
autoClose:
|
|
88
|
+
position: a = "top-right",
|
|
89
|
+
autoClose: s = 5e5,
|
|
91
90
|
hideProgressBar: n = !0,
|
|
92
|
-
newestOnTop:
|
|
93
|
-
closeOnClick:
|
|
94
|
-
rtl:
|
|
95
|
-
pauseOnFocusLoss:
|
|
96
|
-
draggable:
|
|
97
|
-
pauseOnHover:
|
|
98
|
-
closeButton:
|
|
99
|
-
className:
|
|
91
|
+
newestOnTop: r = !0,
|
|
92
|
+
closeOnClick: l = !0,
|
|
93
|
+
rtl: c = !1,
|
|
94
|
+
pauseOnFocusLoss: f = !1,
|
|
95
|
+
draggable: d = !1,
|
|
96
|
+
pauseOnHover: m = !1,
|
|
97
|
+
closeButton: u = !0,
|
|
98
|
+
className: p = "",
|
|
100
99
|
style: g = {},
|
|
101
|
-
size:
|
|
102
|
-
toastContainerProps:
|
|
103
|
-
...
|
|
104
|
-
} = o, { theme:
|
|
105
|
-
theme:
|
|
106
|
-
className: "lnc-ui-notification " +
|
|
100
|
+
size: b = "small",
|
|
101
|
+
toastContainerProps: h,
|
|
102
|
+
...x
|
|
103
|
+
} = o, { theme: N } = C(), _ = {
|
|
104
|
+
theme: N,
|
|
105
|
+
className: "lnc-ui-notification " + p,
|
|
107
106
|
style: g,
|
|
108
|
-
size:
|
|
107
|
+
size: b
|
|
109
108
|
};
|
|
110
|
-
return /* @__PURE__ */
|
|
111
|
-
|
|
109
|
+
return /* @__PURE__ */ e(O, { ref: i, ..._, ...x, children: /* @__PURE__ */ e(
|
|
110
|
+
$,
|
|
112
111
|
{
|
|
113
|
-
position:
|
|
114
|
-
autoClose:
|
|
112
|
+
position: a,
|
|
113
|
+
autoClose: s,
|
|
115
114
|
hideProgressBar: n,
|
|
116
|
-
newestOnTop:
|
|
117
|
-
closeOnClick:
|
|
118
|
-
rtl:
|
|
119
|
-
pauseOnFocusLoss:
|
|
120
|
-
draggable:
|
|
121
|
-
pauseOnHover:
|
|
122
|
-
closeButton:
|
|
115
|
+
newestOnTop: r,
|
|
116
|
+
closeOnClick: l,
|
|
117
|
+
rtl: c,
|
|
118
|
+
pauseOnFocusLoss: f,
|
|
119
|
+
draggable: d,
|
|
120
|
+
pauseOnHover: m,
|
|
121
|
+
closeButton: u,
|
|
123
122
|
className: "lnc-notification",
|
|
124
|
-
...
|
|
123
|
+
...h
|
|
125
124
|
}
|
|
126
125
|
) });
|
|
127
126
|
});
|
|
128
|
-
k.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
127
|
export {
|
|
161
|
-
|
|
128
|
+
j as default
|
|
162
129
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),p=require("react"),w=require("./emotion-styled.browser.esm-BtEseadx.cjs"),N=require("./Icon.cjs"),i=require("./utils-RnrgDDZP.cjs"),y=require("./Avatar.cjs"),$=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),j=w.styled.div`
|
|
2
2
|
${e=>i.getComponentTypographyCss(e.theme,"Notification","small","enabled")};
|
|
3
3
|
|
|
4
4
|
word-wrap: break-word;
|
|
@@ -44,4 +44,4 @@
|
|
|
44
44
|
font-weight: ${e=>i.getComponentPropValue(e.theme,"Notification",e.color,"enabled","fontWeightTitle")};
|
|
45
45
|
color: ${e=>i.getColorRgbaValue(e.theme,"Notification",e.color,"enabled","title")};
|
|
46
46
|
}
|
|
47
|
-
`,
|
|
47
|
+
`,v=p.forwardRef((e,c)=>{const{title:l,icon:s,className:r,style:d={},size:m="small",avatar:f=!1,actions:a,inlineActions:o=!1,sideButtons:n=!1,iconProps:u,avatarProps:x,children:g,...b}=e,h={theme:$.useTheme(),className:r,style:d,size:m,inlineActions:o,sideButtons:n};return t.jsxs(j,{ref:c,...h,...b,children:[t.jsxs("div",{className:"notification-main",children:[f?t.jsx(y,{sizeInUnits:"2.75rem",...x}):s&&t.jsx(N,{className:"notification-icon",icon:s,...u}),t.jsxs("div",{className:"notification-content",children:[t.jsx("div",{className:"notification-title",children:l}),g,!o&&!n&&t.jsx("div",{className:"notification-actions",children:a})]})]}),(o||n)&&t.jsx("div",{className:"notification-actions",children:a})]})});module.exports=v;
|