@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/FlexGridItem.js
CHANGED
|
@@ -1,97 +1,69 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { P as i } from "./index-CblbdqjE.js";
|
|
1
|
+
import { jsx as N } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as X, useState as u, useEffect as S } from "react";
|
|
4
3
|
import { s as I } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
5
|
-
import { u as
|
|
6
|
-
const
|
|
4
|
+
import { u as W } from "./utils-DtEfC-TX.js";
|
|
5
|
+
const j = I.div`
|
|
7
6
|
${(t) => t.width > 0 ? "" : "flex: 1;"}
|
|
8
7
|
min-width: ${(t) => 100 / t.columns}%;
|
|
9
8
|
width: ${(t) => t.width}%;
|
|
10
9
|
padding: ${(t) => t.rowGap}px ${(t) => t.columnGap}px;
|
|
11
10
|
overflow-wrap: break-word;
|
|
12
|
-
`,
|
|
11
|
+
`, M = X((t, x) => {
|
|
13
12
|
const {
|
|
14
|
-
XS:
|
|
15
|
-
S:
|
|
16
|
-
M:
|
|
13
|
+
XS: s,
|
|
14
|
+
S: i,
|
|
15
|
+
M: o,
|
|
17
16
|
L: c,
|
|
18
|
-
XL:
|
|
19
|
-
col:
|
|
17
|
+
XL: m,
|
|
18
|
+
col: p,
|
|
20
19
|
columns: e,
|
|
21
|
-
spacing:
|
|
22
|
-
rowSpacing:
|
|
23
|
-
columnSpacing:
|
|
24
|
-
children:
|
|
25
|
-
} = t, l =
|
|
26
|
-
|
|
20
|
+
spacing: d,
|
|
21
|
+
rowSpacing: r,
|
|
22
|
+
columnSpacing: n,
|
|
23
|
+
children: b
|
|
24
|
+
} = t, l = W(), [k, g] = u(0), [$, f] = u(0), [L, w] = u(0);
|
|
25
|
+
S(() => {
|
|
27
26
|
h();
|
|
28
|
-
}, [e,
|
|
27
|
+
}, [e, s, i, o, c, m, p]), S(() => {
|
|
29
28
|
h(), G();
|
|
30
|
-
}, [l]),
|
|
29
|
+
}, [l]), S(() => {
|
|
31
30
|
G();
|
|
32
|
-
}, [
|
|
31
|
+
}, [d, r, n]);
|
|
33
32
|
const h = () => {
|
|
34
|
-
let
|
|
33
|
+
let a = p ? 100 / (e / p) : 0;
|
|
35
34
|
switch (l) {
|
|
36
35
|
case "XS":
|
|
37
|
-
|
|
36
|
+
a = s ? 100 / (e / s) : a;
|
|
38
37
|
break;
|
|
39
38
|
case "S":
|
|
40
|
-
|
|
39
|
+
a = i ? 100 / (e / i) : s ? 100 / (e / s) : a;
|
|
41
40
|
break;
|
|
42
41
|
case "M":
|
|
43
|
-
|
|
42
|
+
a = o ? 100 / (e / o) : i ? 100 / (e / i) : s ? 100 / (e / s) : a;
|
|
44
43
|
break;
|
|
45
44
|
case "L":
|
|
46
|
-
|
|
45
|
+
a = c ? 100 / (e / c) : o ? 100 / (e / o) : i ? 100 / (e / i) : s ? 100 / (e / s) : a;
|
|
47
46
|
break;
|
|
48
47
|
case "XL":
|
|
49
|
-
|
|
48
|
+
a = m ? 100 / (e / m) : c ? 100 / (e / c) : o ? 100 / (e / o) : i ? 100 / (e / i) : s ? 100 / (e / s) : a;
|
|
50
49
|
break;
|
|
51
50
|
}
|
|
52
|
-
|
|
51
|
+
g(a);
|
|
53
52
|
}, G = () => {
|
|
54
|
-
|
|
53
|
+
d ? (f(d), w(d)) : (r && (isNaN(r) ? f(r[l] ?? 0) : f(r)), n && (isNaN(n) ? w(n[l] ?? 0) : w(n)));
|
|
55
54
|
};
|
|
56
|
-
return /* @__PURE__ */
|
|
57
|
-
|
|
55
|
+
return /* @__PURE__ */ N(
|
|
56
|
+
j,
|
|
58
57
|
{
|
|
59
58
|
ref: x,
|
|
60
59
|
columns: e,
|
|
61
|
-
width:
|
|
62
|
-
rowGap:
|
|
63
|
-
columnGap:
|
|
64
|
-
children:
|
|
60
|
+
width: k,
|
|
61
|
+
rowGap: $,
|
|
62
|
+
columnGap: L,
|
|
63
|
+
children: b
|
|
65
64
|
}
|
|
66
65
|
);
|
|
67
66
|
});
|
|
68
|
-
j.propTypes = {
|
|
69
|
-
/**
|
|
70
|
-
* Number of columns to take up on XS screens.
|
|
71
|
-
*/
|
|
72
|
-
XS: i.number,
|
|
73
|
-
/**
|
|
74
|
-
* Number of columns to take up on S screens.
|
|
75
|
-
*/
|
|
76
|
-
S: i.number,
|
|
77
|
-
/**
|
|
78
|
-
* Number of columns to take up on M screens.
|
|
79
|
-
*/
|
|
80
|
-
M: i.number,
|
|
81
|
-
/**
|
|
82
|
-
* Number of columns to take up on L screens.
|
|
83
|
-
*/
|
|
84
|
-
L: i.number,
|
|
85
|
-
/**
|
|
86
|
-
* Number of columns to take up on XL screens.
|
|
87
|
-
*/
|
|
88
|
-
XL: i.number,
|
|
89
|
-
/**
|
|
90
|
-
* Number of columns to take up on any screen size.
|
|
91
|
-
* Defining number on columns for specific screen sizes takes priority over this.
|
|
92
|
-
*/
|
|
93
|
-
col: i.number
|
|
94
|
-
};
|
|
95
67
|
export {
|
|
96
|
-
|
|
68
|
+
M as default
|
|
97
69
|
};
|
package/dist/Footer.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const c=require("react/jsx-runtime"),n=require("react"),e=n.forwardRef((r,t)=>{const{children:o,...s}=r;return c.jsx("footer",{ref:t,...s,children:o})});e.displayName="Footer";module.exports=e;
|
package/dist/Footer.js
CHANGED
|
@@ -1,18 +1,10 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
return /* @__PURE__ */ s("footer", { ref: t, ...p, children: e });
|
|
1
|
+
import { jsx as f } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as s } from "react";
|
|
3
|
+
const a = s((o, r) => {
|
|
4
|
+
const { children: t, ...e } = o;
|
|
5
|
+
return /* @__PURE__ */ f("footer", { ref: r, ...e, children: t });
|
|
7
6
|
});
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Do not override this property.
|
|
11
|
-
* Should only be used as indicator for type if you are passing custom component.
|
|
12
|
-
*/
|
|
13
|
-
__TYPE__: f.string
|
|
14
|
-
};
|
|
15
|
-
o.displayName = "Footer";
|
|
7
|
+
a.displayName = "Footer";
|
|
16
8
|
export {
|
|
17
|
-
|
|
9
|
+
a as default
|
|
18
10
|
};
|
package/dist/FormField.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),n=require("./emotion-styled.browser.esm-BtEseadx.cjs"),l=require("./utils-RnrgDDZP.cjs"),b=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),y=n.styled.label`
|
|
2
2
|
display: block;
|
|
3
3
|
margin-bottom: 4px;
|
|
4
|
-
${e=>
|
|
5
|
-
color: ${e=>
|
|
6
|
-
`,
|
|
4
|
+
${e=>l.getComponentTypographyCss(e.theme,"FormField",e.size,"enabled")}
|
|
5
|
+
color: ${e=>l.getColorRgbaValue(e.theme,"FormField","primary","enabled","label")};
|
|
6
|
+
`,h=n.styled.span`
|
|
7
7
|
display: block;
|
|
8
8
|
margin-top: 8px;
|
|
9
|
-
${e=>
|
|
10
|
-
color: ${e=>
|
|
11
|
-
`,
|
|
9
|
+
${e=>l.getComponentTypographyCss(e.theme,"FormField",e.size,"enabled")}
|
|
10
|
+
color: ${e=>l.getColorRgbaValue(e.theme,"FormField",e.color,"enabled","text")};
|
|
11
|
+
`,u=e=>{const{size:o="small",color:m="primary",className:a="",style:c={},text:s="",label:r="",children:d}=e,i=b.useTheme();return t.jsxs("div",{style:c,className:"lnc-ui-form-field "+a,children:[r&&t.jsx(y,{theme:i,size:o,children:r}),d,s&&t.jsx(h,{size:o,theme:i,color:m,children:s})]})};module.exports=u;
|
package/dist/FormField.js
CHANGED
|
@@ -1,64 +1,39 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { P as l } from "./index-CblbdqjE.js";
|
|
1
|
+
import { jsxs as h, jsx as a } from "react/jsx-runtime";
|
|
3
2
|
import { s as m } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
-
import { c as
|
|
5
|
-
import { u as
|
|
6
|
-
const
|
|
3
|
+
import { c as s, b as i } from "./utils-DtEfC-TX.js";
|
|
4
|
+
import { u as p } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
5
|
+
const y = m.label`
|
|
7
6
|
display: block;
|
|
8
7
|
margin-bottom: 4px;
|
|
9
|
-
${(e) =>
|
|
10
|
-
color: ${(e) =>
|
|
11
|
-
`,
|
|
8
|
+
${(e) => s(e.theme, "FormField", e.size, "enabled")}
|
|
9
|
+
color: ${(e) => i(e.theme, "FormField", "primary", "enabled", "label")};
|
|
10
|
+
`, F = m.span`
|
|
12
11
|
display: block;
|
|
13
12
|
margin-top: 8px;
|
|
14
|
-
${(e) =>
|
|
15
|
-
color: ${(e) =>
|
|
13
|
+
${(e) => s(e.theme, "FormField", e.size, "enabled")}
|
|
14
|
+
color: ${(e) => i(
|
|
16
15
|
e.theme,
|
|
17
16
|
"FormField",
|
|
18
17
|
e.color,
|
|
19
18
|
"enabled",
|
|
20
19
|
"text"
|
|
21
20
|
)};
|
|
22
|
-
`,
|
|
21
|
+
`, $ = (e) => {
|
|
23
22
|
const {
|
|
24
|
-
size:
|
|
25
|
-
color:
|
|
26
|
-
className:
|
|
27
|
-
style:
|
|
23
|
+
size: l = "small",
|
|
24
|
+
color: d = "primary",
|
|
25
|
+
className: n = "",
|
|
26
|
+
style: c = {},
|
|
28
27
|
text: o = "",
|
|
29
|
-
label:
|
|
30
|
-
children:
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
o && /* @__PURE__ */ a(h, { size: r, theme: t, color: c, children: o })
|
|
28
|
+
label: t = "",
|
|
29
|
+
children: b
|
|
30
|
+
} = e, r = p();
|
|
31
|
+
return /* @__PURE__ */ h("div", { style: c, className: "lnc-ui-form-field " + n, children: [
|
|
32
|
+
t && /* @__PURE__ */ a(y, { theme: r, size: l, children: t }),
|
|
33
|
+
b,
|
|
34
|
+
o && /* @__PURE__ */ a(F, { size: l, theme: r, color: d, children: o })
|
|
37
35
|
] });
|
|
38
36
|
};
|
|
39
|
-
F.propTypes = {
|
|
40
|
-
/**
|
|
41
|
-
* Additional text that appears below the main element.
|
|
42
|
-
*/
|
|
43
|
-
text: l.string,
|
|
44
|
-
/**
|
|
45
|
-
* Label text that appears above the main element.
|
|
46
|
-
*/
|
|
47
|
-
label: l.string,
|
|
48
|
-
size: l.oneOf(["small", "medium", "large"]),
|
|
49
|
-
color: l.oneOf([
|
|
50
|
-
"primary",
|
|
51
|
-
"secondary",
|
|
52
|
-
"success",
|
|
53
|
-
"danger",
|
|
54
|
-
"warning",
|
|
55
|
-
"information",
|
|
56
|
-
"neutral",
|
|
57
|
-
"gray"
|
|
58
|
-
]),
|
|
59
|
-
style: l.object,
|
|
60
|
-
className: l.string
|
|
61
|
-
};
|
|
62
37
|
export {
|
|
63
|
-
|
|
38
|
+
$ as default
|
|
64
39
|
};
|
package/dist/FormView.cjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),E=require("react"),g=require("./emotion-styled.browser.esm-BtEseadx.cjs"),W=require("./FlexGrid.cjs"),M=require("./FlexGridItem.cjs"),x=require("./Button.cjs"),f=require("./IconButton.cjs"),O=require("./TextInput.cjs"),U=require("./CheckBoxInput.cjs"),H=require("./RadioGroup.cjs"),J=require("./NumberInput.cjs"),K=require("./DecimalInput.cjs"),L=require("./PasswordInput.cjs"),P=require("./TextAreaInput.cjs"),Q=require("./TimeInput.cjs"),X=require("./ColorInput.cjs"),Y=require("./FileInput.cjs"),Z=require("./RangeSlider.cjs"),b=require("./utils-RnrgDDZP.cjs"),z=require("./FormField.cjs"),ee=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),te=g.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: space-between;
|
|
4
|
-
`,
|
|
4
|
+
`,re=g.styled.form`
|
|
5
5
|
display: flex;
|
|
6
6
|
flex-direction: column;
|
|
7
7
|
gap: 1rem;
|
|
8
|
-
box-shadow: ${l=>
|
|
9
|
-
border-radius: ${l=>
|
|
8
|
+
box-shadow: ${l=>b.getComponentPropValue(l.theme,"Popover",l.color,"enabled","boxShadow")};
|
|
9
|
+
border-radius: ${l=>b.getBorderRadiusValueWithUnits(l.theme,l.borderRadius)};
|
|
10
10
|
border-top: 1px solid rgba(0, 0, 0, 0.04);
|
|
11
11
|
padding: 12px;
|
|
12
|
-
background-color: ${l=>
|
|
13
|
-
`,ne=(l,
|
|
12
|
+
background-color: ${l=>b.getColorRgbaValue(l.theme,"Popover","default","enabled","bg")};
|
|
13
|
+
`,ne=(l,n,a,s,r,o)=>{var d;switch(l||""){case"text":return e.jsx(O,{name:a,color:r,size:o,...n,defaultValue:s});case"checkbox":return e.jsx(U,{color:r,size:o,name:a,...n});case"radioGroup":return e.jsx(H,{color:r,size:o,value:s,radioProps:n.radioProps,name:a,items:[...((d=n.items)==null?void 0:d.map(i=>({value:i.value,label:i.label})))??[]]});case"number":return e.jsx(J,{color:r,size:o,name:a,...n,defaultValue:s});case"decimal":return e.jsx(K,{name:a,color:r,size:o,...n,defaultValue:s});case"file":return e.jsx(Y,{name:a,color:r,size:o,...n,defaultValue:s});case"password":return e.jsx(L,{name:a,color:r,...n,defaultValue:s});case"textArea":return e.jsx(P,{name:a,color:r,size:o,...n,defaultValue:s});case"time":return e.jsx(Q,{name:a,color:r,size:o,...n,defaultValue:s});case"color":return e.jsx(X,{name:a,color:r,size:o,...n,defaultValue:s});case"range":return e.jsx(Z,{name:a,color:r,size:o,...n,defaultValue:s});default:return s}},j=E.forwardRef((l,n)=>{const{goToPreviousView:a,id:s,data:r,fields:o=[],errors:d={},flexGridProps:i,goBackText:h="Go back",backActive:p=!0,nextActive:y=!0,previousActive:q=!0,disableGoBack:I=!1,disableNext:T=!1,disablePrevious:V=!1,disableDiscard:k=!1,disableSave:w=!1,discardText:F="Discard",saveText:C="Save",goToNext:R=()=>{},goToPrevious:B=()=>{},goBack:G=()=>{},onSubmit:S=()=>{},onDiscard:v=()=>{},color:c="primary",size:m="small",children:A,..._}=l,D=ee.useTheme(),N=(t,u)=>{a&&a(),G(t,u)},$=()=>e.jsx(e.Fragment,{children:A||e.jsx(W,{spacing:10,...i,children:o.map((t,u)=>e.jsx(M,{...t,children:e.jsx(z,{label:t.label,text:d[t.accessor],color:d[t.accessor]?"danger":c,size:m,children:t.type=="custom"?t.element:ne(t.type,t.inputProps,t.accessor,r[t.accessor],d[t.accessor]?"danger":c,m)},u)},u))})});return e.jsxs(re,{ref:n,theme:D,color:c,borderRadius:"regular",..._,children:[p&&e.jsx(x,{leadingIcon:"arrow-circle-left",text:h,btnType:"outline",style:{width:"fit-content"},onClick:t=>N(t,r),disabled:I,type:"button"},0),$(),e.jsxs(te,{children:[e.jsxs("div",{children:[y&&e.jsxs(e.Fragment,{children:[e.jsx(f,{btnType:"outline",icon:"angle-left",disabled:V,onClick:t=>B(r,t),type:"button"})," "]}),q&&e.jsx(f,{btnType:"outline",icon:"angle-right",disabled:T,onClick:t=>R(r,t),type:"button"})]}),e.jsxs("div",{children:[e.jsx(x,{leadingIcon:"eraser",btnType:"outline",color:"warning",text:F,disabled:k,onClick:v,type:"button"})," ",e.jsx(x,{leadingIcon:"floppy-disk",btnType:"tinted",color:"success",text:C,disabled:w,onClick:S})]})]})]},s)});j.displayName="FORM_VIEW";module.exports=j;
|