@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
package/dist/Accordion.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";const
|
|
2
|
-
color: ${
|
|
1
|
+
"use strict";const b=require("react/jsx-runtime"),s=require("react"),R=require("./emotion-styled.browser.esm-BtEseadx.cjs"),c=require("./utils-RnrgDDZP.cjs"),S=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),x=require("./useUpdateEffect-BtMgpgIV.cjs"),D=R.styled.div`
|
|
2
|
+
color: ${t=>!t.disabled&&c.getColorRgbaValue(t.theme,"Accordion","primary","enabled","text")};
|
|
3
3
|
background-color: transparent;
|
|
4
|
-
${
|
|
5
|
-
${
|
|
6
|
-
`,
|
|
4
|
+
${t=>c.getComponentTypographyCss(t.theme,"Accordion",t.size,"enabled")};
|
|
5
|
+
${t=>t.disabled===!0?c.getDisabledStateCss(t.theme):""}
|
|
6
|
+
`,N=s.forwardRef((t,u)=>{const{expanded:r=!1,disabled:i=!1,change:p=()=>{},size:a="small",className:_="",style:C={},children:m,...E}=t,f={theme:S.useTheme(),size:a,style:C,className:"lnc-ui-accordion "+_},[o,l]=s.useState(r);x.useUpdateEffect(()=>{l(r)},[r]);const d=e=>{p(!o,e),l(!o)},y=s.Children.map(m,e=>{var n;if(s.isValidElement(e)&&(e.props.__TYPE__=="ACCORDION_SUMMARY"||((n=e==null?void 0:e.type)==null?void 0:n.displayName)==="ACCORDION_SUMMARY"))return s.cloneElement(e,{size:a,onClick:d,onExpand:d,isExpanded:o,disabled:i})}),A=s.Children.map(m,e=>{var n;if(s.isValidElement(e)&&(e.props.__TYPE__=="ACCORDION_DETAILS"||((n=e==null?void 0:e.type)==null?void 0:n.displayName)==="ACCORDION_DETAILS"))return s.cloneElement(e,{size:a,isExpanded:o})});return b.jsxs(D,{ref:u,...f,disabled:i,...E,children:[y,A]})});module.exports=N;
|
package/dist/Accordion.js
CHANGED
|
@@ -1,70 +1,59 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { b as R, c as S, h as T } from "./utils-DtEfC-TX.js";
|
|
1
|
+
import { jsxs as D } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as N, useState as O, Children as c, isValidElement as i, cloneElement as l } from "react";
|
|
3
|
+
import { s as R } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
+
import { b as S, c as g, h as x } from "./utils-DtEfC-TX.js";
|
|
6
5
|
import { u as I } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
7
|
-
import { u as
|
|
8
|
-
const M =
|
|
9
|
-
color: ${(
|
|
6
|
+
import { u as T } from "./useUpdateEffect-CuYWz7EA.js";
|
|
7
|
+
const M = R.div`
|
|
8
|
+
color: ${(t) => !t.disabled && S(t.theme, "Accordion", "primary", "enabled", "text")};
|
|
10
9
|
background-color: transparent;
|
|
11
|
-
${(
|
|
12
|
-
${(
|
|
13
|
-
`,
|
|
10
|
+
${(t) => g(t.theme, "Accordion", t.size, "enabled")};
|
|
11
|
+
${(t) => t.disabled === !0 ? x(t.theme) : ""}
|
|
12
|
+
`, V = N((t, f) => {
|
|
14
13
|
const {
|
|
15
|
-
expanded:
|
|
16
|
-
disabled:
|
|
17
|
-
change:
|
|
14
|
+
expanded: a = !1,
|
|
15
|
+
disabled: n = !1,
|
|
16
|
+
change: u = () => {
|
|
18
17
|
},
|
|
19
|
-
size:
|
|
18
|
+
size: r = "small",
|
|
20
19
|
className: C = "",
|
|
21
|
-
style:
|
|
22
|
-
children:
|
|
23
|
-
...
|
|
24
|
-
} =
|
|
20
|
+
style: A = {},
|
|
21
|
+
children: m,
|
|
22
|
+
..._
|
|
23
|
+
} = t, y = {
|
|
25
24
|
theme: I(),
|
|
26
|
-
size:
|
|
27
|
-
style:
|
|
25
|
+
size: r,
|
|
26
|
+
style: A,
|
|
28
27
|
className: "lnc-ui-accordion " + C
|
|
29
|
-
}, [
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}, [
|
|
33
|
-
const
|
|
34
|
-
|
|
35
|
-
},
|
|
36
|
-
var
|
|
37
|
-
if (
|
|
38
|
-
return
|
|
39
|
-
size:
|
|
40
|
-
onClick:
|
|
41
|
-
onExpand:
|
|
42
|
-
isExpanded:
|
|
43
|
-
disabled:
|
|
28
|
+
}, [o, d] = O(a);
|
|
29
|
+
T(() => {
|
|
30
|
+
d(a);
|
|
31
|
+
}, [a]);
|
|
32
|
+
const p = (e) => {
|
|
33
|
+
u(!o, e), d(!o);
|
|
34
|
+
}, E = c.map(m, (e) => {
|
|
35
|
+
var s;
|
|
36
|
+
if (i(e) && (e.props.__TYPE__ == "ACCORDION_SUMMARY" || ((s = e == null ? void 0 : e.type) == null ? void 0 : s.displayName) === "ACCORDION_SUMMARY"))
|
|
37
|
+
return l(e, {
|
|
38
|
+
size: r,
|
|
39
|
+
onClick: p,
|
|
40
|
+
onExpand: p,
|
|
41
|
+
isExpanded: o,
|
|
42
|
+
disabled: n
|
|
44
43
|
});
|
|
45
|
-
}),
|
|
46
|
-
var
|
|
47
|
-
if (
|
|
48
|
-
return
|
|
49
|
-
size:
|
|
50
|
-
isExpanded:
|
|
44
|
+
}), b = c.map(m, (e) => {
|
|
45
|
+
var s;
|
|
46
|
+
if (i(e) && (e.props.__TYPE__ == "ACCORDION_DETAILS" || ((s = e == null ? void 0 : e.type) == null ? void 0 : s.displayName) === "ACCORDION_DETAILS"))
|
|
47
|
+
return l(e, {
|
|
48
|
+
size: r,
|
|
49
|
+
isExpanded: o
|
|
51
50
|
});
|
|
52
51
|
});
|
|
53
|
-
return /* @__PURE__ */
|
|
54
|
-
|
|
55
|
-
|
|
52
|
+
return /* @__PURE__ */ D(M, { ref: f, ...y, disabled: n, ..._, children: [
|
|
53
|
+
E,
|
|
54
|
+
b
|
|
56
55
|
] });
|
|
57
56
|
});
|
|
58
|
-
Y.propTypes = {
|
|
59
|
-
expanded: o.bool,
|
|
60
|
-
disabled: o.bool,
|
|
61
|
-
//--------------------------------------------------------------
|
|
62
|
-
change: o.func,
|
|
63
|
-
//---------------------------------------------------------------
|
|
64
|
-
className: o.string,
|
|
65
|
-
style: o.object,
|
|
66
|
-
size: o.oneOf(["small", "medium", "large"])
|
|
67
|
-
};
|
|
68
57
|
export {
|
|
69
|
-
|
|
58
|
+
V as default
|
|
70
59
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
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 a=require("react/jsx-runtime"),l=require("react"),d=require("./emotion-styled.browser.esm-BtEseadx.cjs"),t=(e,r)=>r=="medium"?`${e?"0.4rem":"0"} 1.25rem ${e?"0.8rem":"0"} 1.25rem`:r=="large"?`${e?"0.6rem":"0"} 1.5rem ${e?"1rem":"0"} 1.5rem`:`${e?"0.2rem":"0"} 1rem ${e?"0.6rem":"0"} 1rem`,u=d.styled.div`
|
|
2
2
|
transform: ${e=>e.isExpanded?"scaleY(1)":"scaleY(0)"};
|
|
3
3
|
transform-origin: top;
|
|
4
4
|
transition: transform 0.25s ease;
|
|
5
5
|
max-height: ${e=>e.isExpanded?"auto":"0"};
|
|
6
|
-
padding: ${e=>
|
|
7
|
-
`,s=
|
|
6
|
+
padding: ${e=>t(e.isExpanded,e.size)};
|
|
7
|
+
`,s=l.forwardRef((e,r)=>{const{isExpanded:i,size:n="small",children:m,...o}=e;return a.jsx(u,{ref:r,size:n,isExpanded:i,...o,children:m})});s.displayName="ACCORDION_DETAILS";exports.default=s;exports.getPadding=t;
|
package/dist/AccordionDetails.js
CHANGED
|
@@ -1,32 +1,18 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
const d = (r, e) => e == "medium" ? `${r ? "0.4rem" : "0"} 1.25rem ${r ? "0.8rem" : "0"} 1.25rem` : e == "large" ? `${r ? "0.6rem" : "0"} 1.5rem ${r ? "1rem" : "0"} 1.5rem` : `${r ? "0.2rem" : "0"} 1rem ${r ? "0.6rem" : "0"} 1rem`, c = f.div`
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as i } from "react";
|
|
3
|
+
import { s as n } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
+
const l = (r, e) => e == "medium" ? `${r ? "0.4rem" : "0"} 1.25rem ${r ? "0.8rem" : "0"} 1.25rem` : e == "large" ? `${r ? "0.6rem" : "0"} 1.5rem ${r ? "1rem" : "0"} 1.5rem` : `${r ? "0.2rem" : "0"} 1rem ${r ? "0.6rem" : "0"} 1rem`, d = n.div`
|
|
6
5
|
transform: ${(r) => r.isExpanded ? "scaleY(1)" : "scaleY(0)"};
|
|
7
6
|
transform-origin: top;
|
|
8
7
|
transition: transform 0.25s ease;
|
|
9
8
|
max-height: ${(r) => r.isExpanded ? "auto" : "0"};
|
|
10
|
-
padding: ${(r) =>
|
|
11
|
-
`,
|
|
12
|
-
const {
|
|
13
|
-
|
|
14
|
-
isExpanded: s,
|
|
15
|
-
size: o = "small",
|
|
16
|
-
children: a,
|
|
17
|
-
...i
|
|
18
|
-
} = r;
|
|
19
|
-
return /* @__PURE__ */ n(c, { ref: e, size: o, isExpanded: s, ...i, children: a });
|
|
9
|
+
padding: ${(r) => l(r.isExpanded, r.size)};
|
|
10
|
+
`, f = i((r, e) => {
|
|
11
|
+
const { isExpanded: t, size: m = "small", children: s, ...a } = r;
|
|
12
|
+
return /* @__PURE__ */ o(d, { ref: e, size: m, isExpanded: t, ...a, children: s });
|
|
20
13
|
});
|
|
21
|
-
|
|
22
|
-
__TYPE__: m.string,
|
|
23
|
-
//---------------------------------------------------------------
|
|
24
|
-
className: m.string,
|
|
25
|
-
style: m.object,
|
|
26
|
-
size: m.oneOf(["small", "medium", "large"])
|
|
27
|
-
};
|
|
28
|
-
t.displayName = "ACCORDION_DETAILS";
|
|
14
|
+
f.displayName = "ACCORDION_DETAILS";
|
|
29
15
|
export {
|
|
30
|
-
|
|
31
|
-
|
|
16
|
+
f as default,
|
|
17
|
+
l as getPadding
|
|
32
18
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const s=require("react/jsx-runtime"),f=require("react"),h=require("./emotion-styled.browser.esm-BtEseadx.cjs"),b=require("./Icon.cjs"),g=require("./utils-RnrgDDZP.cjs"),q=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),C={small:"0.6rem 1rem",medium:"0.8rem 1.25rem",large:"1rem 1.5rem"},R=h.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: space-between;
|
|
4
4
|
cursor: pointer;
|
|
5
|
-
color: ${e=>
|
|
5
|
+
color: ${e=>g.getColorRgbaValue(e.theme,"Accordion","primary","enabled","summaryText")};
|
|
6
6
|
|
|
7
|
-
padding: ${e=>
|
|
7
|
+
padding: ${e=>C[e.size]};
|
|
8
8
|
& .accordion-icon-lnc {
|
|
9
9
|
transform: ${e=>e.isExpanded?"rotate(180deg)":"rotate(0)"};
|
|
10
10
|
transition: transform 0.25s ease;
|
|
11
11
|
}
|
|
12
|
-
`,
|
|
12
|
+
`,n=f.forwardRef((e,o)=>{const{disabled:t,isExpanded:i,onExpand:c,onClick:a=()=>{},size:m="small",className:l="",style:d={},children:u,...p}=e,y={theme:q.useTheme(),size:m,style:d,className:l},x=r=>{t==!1&&c(r),a(r)};return s.jsxs(R,{ref:o,...y,onClick:x,isExpanded:i,...p,children:[u,s.jsx(b,{icon:"angle-down",sizeInUnits:"1.125rem",className:"accordion-icon-lnc"})]})});n.displayName="ACCORDION_SUMMARY";module.exports=n;
|
package/dist/AccordionSummary.js
CHANGED
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
const N = {
|
|
1
|
+
import { jsxs as f, jsx as u } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as y } from "react";
|
|
3
|
+
import { s as h } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
+
import x from "./Icon.js";
|
|
5
|
+
import { b as C } from "./utils-DtEfC-TX.js";
|
|
6
|
+
import { u as g } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
7
|
+
const b = {
|
|
9
8
|
small: "0.6rem 1rem",
|
|
10
9
|
medium: "0.8rem 1.25rem",
|
|
11
10
|
large: "1rem 1.5rem"
|
|
12
|
-
},
|
|
11
|
+
}, A = h.div`
|
|
13
12
|
display: flex;
|
|
14
13
|
justify-content: space-between;
|
|
15
14
|
cursor: pointer;
|
|
16
|
-
color: ${(e) =>
|
|
15
|
+
color: ${(e) => C(
|
|
17
16
|
e.theme,
|
|
18
17
|
"Accordion",
|
|
19
18
|
"primary",
|
|
@@ -21,39 +20,38 @@ const N = {
|
|
|
21
20
|
"summaryText"
|
|
22
21
|
)};
|
|
23
22
|
|
|
24
|
-
padding: ${(e) =>
|
|
23
|
+
padding: ${(e) => b[e.size]};
|
|
25
24
|
& .accordion-icon-lnc {
|
|
26
25
|
transform: ${(e) => e.isExpanded ? "rotate(180deg)" : "rotate(0)"};
|
|
27
26
|
transition: transform 0.25s ease;
|
|
28
27
|
}
|
|
29
|
-
`,
|
|
28
|
+
`, N = y((e, r) => {
|
|
30
29
|
const {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
onClick: i = () => {
|
|
30
|
+
disabled: s,
|
|
31
|
+
isExpanded: n,
|
|
32
|
+
onExpand: a,
|
|
33
|
+
onClick: m = () => {
|
|
36
34
|
},
|
|
37
|
-
size:
|
|
38
|
-
className:
|
|
39
|
-
style:
|
|
40
|
-
children:
|
|
41
|
-
...
|
|
42
|
-
} = e,
|
|
43
|
-
return /* @__PURE__ */
|
|
44
|
-
|
|
35
|
+
size: t = "small",
|
|
36
|
+
className: i = "",
|
|
37
|
+
style: c = {},
|
|
38
|
+
children: l,
|
|
39
|
+
...d
|
|
40
|
+
} = e, p = { theme: g(), size: t, style: c, className: i };
|
|
41
|
+
return /* @__PURE__ */ f(
|
|
42
|
+
A,
|
|
45
43
|
{
|
|
46
|
-
ref:
|
|
47
|
-
...
|
|
48
|
-
onClick: (
|
|
49
|
-
|
|
44
|
+
ref: r,
|
|
45
|
+
...p,
|
|
46
|
+
onClick: (o) => {
|
|
47
|
+
s == !1 && a(o), m(o);
|
|
50
48
|
},
|
|
51
|
-
isExpanded:
|
|
52
|
-
...
|
|
49
|
+
isExpanded: n,
|
|
50
|
+
...d,
|
|
53
51
|
children: [
|
|
54
|
-
|
|
55
|
-
/* @__PURE__ */
|
|
56
|
-
|
|
52
|
+
l,
|
|
53
|
+
/* @__PURE__ */ u(
|
|
54
|
+
x,
|
|
57
55
|
{
|
|
58
56
|
icon: "angle-down",
|
|
59
57
|
sizeInUnits: "1.125rem",
|
|
@@ -64,15 +62,7 @@ const N = {
|
|
|
64
62
|
}
|
|
65
63
|
);
|
|
66
64
|
});
|
|
67
|
-
|
|
68
|
-
__TYPE__: o.string,
|
|
69
|
-
onClick: o.func,
|
|
70
|
-
//---------------------------------------------------------------
|
|
71
|
-
className: o.string,
|
|
72
|
-
style: o.object,
|
|
73
|
-
size: o.oneOf(["small", "medium", "large"])
|
|
74
|
-
};
|
|
75
|
-
s.displayName = "ACCORDION_SUMMARY";
|
|
65
|
+
N.displayName = "ACCORDION_SUMMARY";
|
|
76
66
|
export {
|
|
77
|
-
|
|
67
|
+
N as default
|
|
78
68
|
};
|
package/dist/ActionsToolbar.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),B=require("react"),L=require("./emotion-styled.browser.esm-BtEseadx.cjs"),V=require("./DropdownMenu.cjs"),s=require("./DropdownItem.cjs"),M=require("./Separator.cjs"),d=require("./Button.cjs"),b=require("./utils-RnrgDDZP.cjs"),Z=require("./ThemeProvider.cjs"),F=L.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
border-radius: 8px;
|
|
@@ -15,5 +15,4 @@
|
|
|
15
15
|
display: flex;
|
|
16
16
|
gap: 0.5rem;
|
|
17
17
|
}
|
|
18
|
-
}
|
|
19
|
-
`,c=B.forwardRef((t,T)=>{const{__TYPE__:G="ACTIONS_TOOLBAR",showCreate:u=!0,enableCreate:x=!0,createText:d="Create new item",showEdit:m=!0,enableEditOnSelection:g=!0,editText:P="Edit",showDelete:w=!0,enableDeleteOnSelection:h=!0,deleteText:C="Delete",showCopy:f=!0,enableCopyOnSelection:O=!0,copyText:j="Copy",actionsText:S="Actions",customActions:a,selectedRowsLength:n=0,readOnly:s=!1,actionDropdownProps:D,actionsDropdownZIndex:_,actionsDropdownPlacement:q,onCreate:R=()=>{},onEdit:E=()=>{},onDelete:k=()=>{},onCopy:v=()=>{},className:A="",style:I={},color:l="primary",size:p="small",selectedRows:N,...z}=t,{theme:L}=Z.useTheme();return o.jsxs(F,{ref:T,theme:L,color:l,className:`lnc-table-view-actions-toolbar ${A}`,style:I,...z,children:[o.jsx("div",{children:u&&s==!1&&o.jsx(y,{leadingIcon:"plus",btnType:"outline",type:"button",color:l,size:p,title:d,disabled:!x,onClick:R,text:d})}),o.jsx("div",{children:o.jsxs(Y,{className:"lnc-table-view-actions-toolbar-dropdown",color:l,size:p,zIndex:_,placement:q,...D,control:o.jsx(y,{text:S,btnType:"outline",trailingIcon:"angle-down",color:l,size:p,type:"button"}),children:[f&&s==!1&&o.jsx(i,{icon:"copy",disabled:!(O&&n>0),onClick:v,children:j}),m&&s==!1&&o.jsx(i,{icon:"pen",disabled:!(g&&n>0),onClick:E,children:P}),w&&s==!1&&o.jsx(i,{icon:"trash",disabled:!(h&&n>0),onClick:k,children:C}),o.jsx(M,{}),a==null?void 0:a.map((r,$)=>{if((r==null?void 0:r.show)!=!1)return o.jsx(i,{icon:r.icon,disabled:!(r.enableOnSelection==!0&&n>0||r.enable==!0&&r.enableOnSelection==!1),onClick:()=>{r.onAction(N)},children:r.name},$)})]})})]})});c.propTypes={__TYPE__:e.PropTypes.string,showCreate:e.PropTypes.bool,enableCreate:e.PropTypes.bool,createText:e.PropTypes.string,showEdit:e.PropTypes.bool,enableEditOnSelection:e.PropTypes.bool,editText:e.PropTypes.string,showDelete:e.PropTypes.bool,enableDeleteOnSelection:e.PropTypes.bool,deleteText:e.PropTypes.string,showCopy:e.PropTypes.bool,enableCopyOnSelection:e.PropTypes.bool,copyText:e.PropTypes.string,actionsText:e.PropTypes.string,customActions:e.PropTypes.array,selectedRowsLength:e.PropTypes.number,readOnly:e.PropTypes.bool,onCreate:e.PropTypes.func,onEdit:e.PropTypes.func,onDelete:e.PropTypes.func,onCopy:e.PropTypes.func,className:e.PropTypes.string,style:e.PropTypes.object,size:e.PropTypes.oneOf(["small","medium","large"]),color:e.PropTypes.oneOf(["primary","secondary","success","danger","warning","information","neutral","gray"])};c.displayName="ACTIONS_TOOLBAR";module.exports=c;
|
|
18
|
+
`,u=B.forwardRef((t,p)=>{const{showCreate:x=!0,enableCreate:m=!0,createText:c="Create new item",showEdit:y=!0,enableEditOnSelection:h=!0,editText:w="Edit",showDelete:g=!0,enableDeleteOnSelection:C=!0,deleteText:f="Delete",showCopy:T=!0,enableCopyOnSelection:j=!0,copyText:O="Copy",actionsText:q="Actions",customActions:i,selectedRowsLength:n=0,readOnly:r=!1,actionDropdownProps:D,actionsDropdownZIndex:S,actionsDropdownPlacement:k,onCreate:R=()=>{},onEdit:v=()=>{},onDelete:I=()=>{},onCopy:N=()=>{},className:A="",style:E={},color:l="primary",size:a="small",selectedRows:$,...z}=t,{theme:P}=Z.useTheme();return e.jsxs(F,{ref:p,theme:P,color:l,className:`lnc-table-view-actions-toolbar ${A}`,style:E,...z,children:[e.jsx("div",{children:x&&r==!1&&e.jsx(d,{leadingIcon:"plus",btnType:"outline",type:"button",color:l,size:a,title:c,disabled:!m,onClick:R,text:c})}),e.jsx("div",{children:e.jsxs(V,{className:"lnc-table-view-actions-toolbar-dropdown",color:l,size:a,zIndex:S,placement:k,...D,control:e.jsx(d,{text:q,btnType:"outline",trailingIcon:"angle-down",color:l,size:a,type:"button"}),children:[T&&r==!1&&e.jsx(s,{icon:"copy",disabled:!(j&&n>0),onClick:N,children:O}),y&&r==!1&&e.jsx(s,{icon:"pen",disabled:!(h&&n>0),onClick:v,children:w}),g&&r==!1&&e.jsx(s,{icon:"trash",disabled:!(C&&n>0),onClick:I,children:f}),e.jsx(M,{}),i==null?void 0:i.map((o,_)=>{if((o==null?void 0:o.show)!=!1)return e.jsx(s,{icon:o.icon,disabled:!(o.enableOnSelection==!0&&n>0||o.enable==!0&&o.enableOnSelection==!1),onClick:()=>{o.onAction($)},children:o.name},_)})]})})]})});u.displayName="ACTIONS_TOOLBAR";module.exports=u;
|