@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/ToggleSection.js
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { jsx as r, jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import
|
|
4
|
-
import C from "./Chip.js";
|
|
1
|
+
import { jsx as r, jsxs as s, Fragment as w } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as x, useState as u, useMemo as y } from "react";
|
|
3
|
+
import b from "./Chip.js";
|
|
5
4
|
import { s as f } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
6
5
|
import { M as h } from "./consts-BuFChS64.js";
|
|
7
|
-
import { u as
|
|
8
|
-
import
|
|
9
|
-
const
|
|
6
|
+
import { u as S } from "./useDetectMobile-Bkvj0VMa.js";
|
|
7
|
+
import v from "./Button.js";
|
|
8
|
+
const N = f.div`
|
|
10
9
|
display: flex;
|
|
11
10
|
|
|
12
11
|
border: 1px solid var(--gray-200, #e4e9f0);
|
|
@@ -73,7 +72,7 @@ const $ = f.div`
|
|
|
73
72
|
width: 100%;
|
|
74
73
|
}
|
|
75
74
|
}
|
|
76
|
-
`,
|
|
75
|
+
`, C = f.div`
|
|
77
76
|
display: flex;
|
|
78
77
|
gap: 1.25rem;
|
|
79
78
|
flex-wrap: wrap;
|
|
@@ -102,7 +101,7 @@ const $ = f.div`
|
|
|
102
101
|
display: none;
|
|
103
102
|
}
|
|
104
103
|
}
|
|
105
|
-
`,
|
|
104
|
+
`, $ = f.a`
|
|
106
105
|
text-decoration: none;
|
|
107
106
|
color: var(--gray-950);
|
|
108
107
|
display: flex;
|
|
@@ -202,53 +201,47 @@ const $ = f.div`
|
|
|
202
201
|
}
|
|
203
202
|
}
|
|
204
203
|
}
|
|
205
|
-
`,
|
|
206
|
-
({ options: t = [], selectedOptionCode:
|
|
207
|
-
} }, l) => /* @__PURE__ */ r(
|
|
208
|
-
|
|
204
|
+
`, k = x(
|
|
205
|
+
({ options: t = [], selectedOptionCode: a = null, onSelectOption: o = () => {
|
|
206
|
+
} }, l) => /* @__PURE__ */ r(N, { ref: l, children: t == null ? void 0 : t.map((c, n) => /* @__PURE__ */ r(
|
|
207
|
+
b,
|
|
209
208
|
{
|
|
210
209
|
label: c,
|
|
211
210
|
borderRadius: "curved",
|
|
212
211
|
color: "neutral",
|
|
213
|
-
className: `options__item ${
|
|
212
|
+
className: `options__item ${a === n ? "active" : ""}`,
|
|
214
213
|
onClick: () => {
|
|
215
|
-
|
|
214
|
+
o(n);
|
|
216
215
|
}
|
|
217
216
|
},
|
|
218
217
|
`toggle-section-tag__${n + 1}`
|
|
219
218
|
)) })
|
|
220
|
-
)
|
|
221
|
-
y.propTypes = {
|
|
222
|
-
options: x.array,
|
|
223
|
-
selectedOptionCode: x.any,
|
|
224
|
-
onSelectOption: x.func
|
|
225
|
-
};
|
|
226
|
-
const z = ({
|
|
219
|
+
), z = ({
|
|
227
220
|
title: t,
|
|
228
|
-
description:
|
|
229
|
-
image:
|
|
221
|
+
description: a,
|
|
222
|
+
image: o,
|
|
230
223
|
learnMoreText: l,
|
|
231
224
|
onSelectItem: c = () => {
|
|
232
225
|
},
|
|
233
226
|
LinkComponent: n,
|
|
234
|
-
link:
|
|
235
|
-
}) => /* @__PURE__ */
|
|
236
|
-
|
|
227
|
+
link: d
|
|
228
|
+
}) => /* @__PURE__ */ s(
|
|
229
|
+
$,
|
|
237
230
|
{
|
|
238
231
|
onClick: c,
|
|
239
232
|
as: n || "a",
|
|
240
|
-
...n ? { to: `/${
|
|
233
|
+
...n ? { to: `/${d}` } : { href: `/${d}` },
|
|
241
234
|
children: [
|
|
242
|
-
/* @__PURE__ */
|
|
243
|
-
/* @__PURE__ */ r("img", { src:
|
|
244
|
-
/* @__PURE__ */
|
|
235
|
+
/* @__PURE__ */ s("div", { className: "card__content", children: [
|
|
236
|
+
/* @__PURE__ */ r("img", { src: o, alt: `Card ${t}`, className: "card__image" }),
|
|
237
|
+
/* @__PURE__ */ s("div", { className: "card__text", children: [
|
|
245
238
|
/* @__PURE__ */ r("div", { className: "card__title", children: t }),
|
|
246
239
|
/* @__PURE__ */ r("div", { className: "card__divider" }),
|
|
247
|
-
/* @__PURE__ */ r("div", { className: "card__description", children:
|
|
240
|
+
/* @__PURE__ */ r("div", { className: "card__description", children: a })
|
|
248
241
|
] })
|
|
249
242
|
] }),
|
|
250
243
|
/* @__PURE__ */ r(
|
|
251
|
-
|
|
244
|
+
v,
|
|
252
245
|
{
|
|
253
246
|
text: l,
|
|
254
247
|
btnType: "basic",
|
|
@@ -258,36 +251,36 @@ const z = ({
|
|
|
258
251
|
)
|
|
259
252
|
]
|
|
260
253
|
}
|
|
261
|
-
), M =
|
|
254
|
+
), M = x(
|
|
262
255
|
({
|
|
263
256
|
items: t = [],
|
|
264
|
-
showMoreText:
|
|
265
|
-
learnMoreText:
|
|
257
|
+
showMoreText: a,
|
|
258
|
+
learnMoreText: o,
|
|
266
259
|
onSelectItem: l = () => {
|
|
267
260
|
},
|
|
268
261
|
LinkComponent: c
|
|
269
262
|
}, n) => {
|
|
270
|
-
const
|
|
263
|
+
const d = S(), [g, p] = u(!1), m = () => {
|
|
271
264
|
p((e) => !e);
|
|
272
|
-
}, i =
|
|
265
|
+
}, i = y(() => t == null ? void 0 : t.map((e, _) => /* @__PURE__ */ r(
|
|
273
266
|
z,
|
|
274
267
|
{
|
|
275
268
|
title: e == null ? void 0 : e.title,
|
|
276
269
|
description: e == null ? void 0 : e.description,
|
|
277
270
|
image: e == null ? void 0 : e.image,
|
|
278
|
-
learnMoreText:
|
|
271
|
+
learnMoreText: o,
|
|
279
272
|
onSelectItem: () => l(e),
|
|
280
273
|
LinkComponent: c,
|
|
281
274
|
link: e == null ? void 0 : e.link
|
|
282
275
|
},
|
|
283
276
|
`toggle-section-item__${_ + 1}`
|
|
284
277
|
)), [t]);
|
|
285
|
-
return /* @__PURE__ */ r(
|
|
278
|
+
return /* @__PURE__ */ r(C, { ref: n, children: d ? g ? i : /* @__PURE__ */ s(w, { children: [
|
|
286
279
|
i == null ? void 0 : i.slice(0, 4),
|
|
287
280
|
(i == null ? void 0 : i.length) > 4 && /* @__PURE__ */ r(
|
|
288
|
-
|
|
281
|
+
v,
|
|
289
282
|
{
|
|
290
|
-
text:
|
|
283
|
+
text: a,
|
|
291
284
|
btnType: "basic",
|
|
292
285
|
color: "neutral",
|
|
293
286
|
className: "section__show-more",
|
|
@@ -296,7 +289,7 @@ const z = ({
|
|
|
296
289
|
)
|
|
297
290
|
] }) : i });
|
|
298
291
|
}
|
|
299
|
-
),
|
|
292
|
+
), O = f.div`
|
|
300
293
|
display: flex;
|
|
301
294
|
flex-direction: column;
|
|
302
295
|
align-items: center;
|
|
@@ -350,26 +343,26 @@ const z = ({
|
|
|
350
343
|
text-align: left;
|
|
351
344
|
}
|
|
352
345
|
}
|
|
353
|
-
`,
|
|
346
|
+
`, F = x(
|
|
354
347
|
({
|
|
355
348
|
title: t,
|
|
356
|
-
description:
|
|
357
|
-
showMoreText:
|
|
349
|
+
description: a,
|
|
350
|
+
showMoreText: o = "Show more",
|
|
358
351
|
learnMoreText: l = "Learn more",
|
|
359
352
|
options: c = [],
|
|
360
353
|
items: n = [],
|
|
361
|
-
onSelectItem:
|
|
354
|
+
onSelectItem: d = () => {
|
|
362
355
|
},
|
|
363
356
|
LinkComponent: g
|
|
364
357
|
}, p) => {
|
|
365
|
-
const [m, i] =
|
|
366
|
-
return /* @__PURE__ */
|
|
367
|
-
/* @__PURE__ */
|
|
358
|
+
const [m, i] = u(0);
|
|
359
|
+
return /* @__PURE__ */ s(O, { ref: p, children: [
|
|
360
|
+
/* @__PURE__ */ s("div", { className: "section__heading", children: [
|
|
368
361
|
t && /* @__PURE__ */ r("div", { className: "section__title", children: t }),
|
|
369
|
-
|
|
362
|
+
a && /* @__PURE__ */ r("div", { className: "section__description", children: a })
|
|
370
363
|
] }),
|
|
371
364
|
/* @__PURE__ */ r(
|
|
372
|
-
|
|
365
|
+
k,
|
|
373
366
|
{
|
|
374
367
|
options: c,
|
|
375
368
|
selectedOptionCode: m,
|
|
@@ -383,9 +376,9 @@ const z = ({
|
|
|
383
376
|
M,
|
|
384
377
|
{
|
|
385
378
|
items: n == null ? void 0 : n[m],
|
|
386
|
-
showMoreText:
|
|
379
|
+
showMoreText: o,
|
|
387
380
|
learnMoreText: l,
|
|
388
|
-
onSelectItem:
|
|
381
|
+
onSelectItem: d,
|
|
389
382
|
LinkComponent: g
|
|
390
383
|
},
|
|
391
384
|
`toggle-section-items__${m}`
|
|
@@ -394,5 +387,5 @@ const z = ({
|
|
|
394
387
|
}
|
|
395
388
|
);
|
|
396
389
|
export {
|
|
397
|
-
|
|
390
|
+
F as default
|
|
398
391
|
};
|
package/dist/TreeMenu.cjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const f=require("react/jsx-runtime"),t=require("react"),w=require("./emotion-styled.browser.esm-BtEseadx.cjs"),C=w.styled.div`
|
|
2
2
|
padding: 0.25rem;
|
|
3
|
-
gap: ${
|
|
3
|
+
gap: ${s=>s.itemsGap};
|
|
4
4
|
display: flex;
|
|
5
5
|
flex-direction: column;
|
|
6
|
-
${
|
|
6
|
+
${s=>s.widthFitContent==!1&&"min-width: 12.5rem"};
|
|
7
7
|
height: 100%;
|
|
8
8
|
justify-content: space-between;
|
|
9
9
|
& > .start-menu-items-lnc,
|
|
10
10
|
> .end-menu-items-lnc {
|
|
11
11
|
display: flex;
|
|
12
12
|
flex-direction: column;
|
|
13
|
-
gap: ${
|
|
13
|
+
gap: ${s=>s.itemsGap};
|
|
14
14
|
}
|
|
15
|
-
`,
|
|
15
|
+
`,D=t.forwardRef((s,n)=>{const{widthFitContent:N=!1,itemsGap:l="0.25rem",onItemSelected:a=()=>{},className:M="",style:I={},color:r="primary",size:o="small",children:T,...j}=s,u=t.useRef(),S=t.Children.map(T,(e,_)=>{var p,m,E,y,i;if(t.isValidElement(e)&&(e.props.__TYPE__=="MENU_ITEM"||((p=e==null?void 0:e.type)==null?void 0:p.displayName)==="MENU_ITEM"||e.props.__TYPE__=="NESTED_ITEM"||((m=e==null?void 0:e.type)==null?void 0:m.displayName)==="NESTED_ITEM"))return _==0&&e.props.justifyToEnd!==!0?(e.props.ref&&(u.current=n),t.cloneElement(e,{ref:n||u,color:r,size:o,onItemSelected:a})):e.props.justifyToEnd!==!0||e.props.__TYPE__=="NESTED_ITEM"||((E=e==null?void 0:e.type)==null?void 0:E.displayName)==="NESTED_ITEM"?t.cloneElement(e,{color:r,size:o,onItemSelected:a}):void 0;if(((y=e.props)==null?void 0:y.justifyToEnd)==!1||!((i=e.props)!=null&&i.justifyToEnd))return e}),x=t.Children.map(T,(e,_)=>{var p,m,E;if(t.isValidElement(e)&&(e.props.__TYPE__=="MENU_ITEM"||((p=e==null?void 0:e.type)==null?void 0:p.displayName)==="MENU_ITEM"||e.props.__TYPE__=="NESTED_ITEM"||((m=e==null?void 0:e.type)==null?void 0:m.displayName)==="NESTED_ITEM")&&e.props.justifyToEnd==!0)return _==0?(e.props.ref&&(u.current=n),t.cloneElement(e,{ref:n||u,color:e.props.color?e.props.color:r,size:o,onItemSelected:a})):t.cloneElement(e,{color:e.props.color?e.props.color:r,size:o,onItemSelected:a});if(((E=e.props)==null?void 0:E.justifyToEnd)==!0)return e});return f.jsxs(C,{ref:n,widthFitContent:N,itemsGap:l,size:o,color:r,className:"lnc-ui-treemenu "+M,style:I,...j,children:[f.jsx("div",{className:"nested-item-lnc start-menu-items-lnc",children:S}),f.jsx("div",{className:"nested-item-lnc end-menu-items-lnc",children:x})]})});module.exports=D;
|
package/dist/TreeMenu.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { jsxs as C, jsx as N } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
const U = G.div`
|
|
2
|
+
import { forwardRef as P, useRef as Y, Children as i, isValidElement as M, cloneElement as u } from "react";
|
|
3
|
+
import { s as g } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
+
const U = g.div`
|
|
6
5
|
padding: 0.25rem;
|
|
7
6
|
gap: ${(t) => t.itemsGap};
|
|
8
7
|
display: flex;
|
|
@@ -16,49 +15,49 @@ const U = G.div`
|
|
|
16
15
|
flex-direction: column;
|
|
17
16
|
gap: ${(t) => t.itemsGap};
|
|
18
17
|
}
|
|
19
|
-
`,
|
|
18
|
+
`, $ = P((t, r) => {
|
|
20
19
|
const {
|
|
21
20
|
widthFitContent: I = !1,
|
|
22
|
-
itemsGap:
|
|
21
|
+
itemsGap: j = "0.25rem",
|
|
23
22
|
//----------------
|
|
24
|
-
onItemSelected:
|
|
23
|
+
onItemSelected: a = () => {
|
|
25
24
|
},
|
|
26
25
|
//----------------
|
|
27
|
-
className:
|
|
28
|
-
style:
|
|
29
|
-
color:
|
|
30
|
-
size:
|
|
26
|
+
className: S = "",
|
|
27
|
+
style: l = {},
|
|
28
|
+
color: s = "primary",
|
|
29
|
+
size: n = "small",
|
|
31
30
|
children: _,
|
|
32
|
-
...
|
|
33
|
-
} = t,
|
|
34
|
-
var
|
|
35
|
-
if (M(e) && (e.props.__TYPE__ == "MENU_ITEM" || ((
|
|
36
|
-
return
|
|
37
|
-
ref: r ||
|
|
31
|
+
...x
|
|
32
|
+
} = t, E = Y(), D = i.map(_, (e, f) => {
|
|
33
|
+
var o, p, m, T, y;
|
|
34
|
+
if (M(e) && (e.props.__TYPE__ == "MENU_ITEM" || ((o = e == null ? void 0 : e.type) == null ? void 0 : o.displayName) === "MENU_ITEM" || e.props.__TYPE__ == "NESTED_ITEM" || ((p = e == null ? void 0 : e.type) == null ? void 0 : p.displayName) === "NESTED_ITEM"))
|
|
35
|
+
return f == 0 && e.props.justifyToEnd !== !0 ? (e.props.ref && (E.current = r), u(e, {
|
|
36
|
+
ref: r || E,
|
|
38
37
|
//needed to focus on navigation
|
|
39
|
-
color:
|
|
40
|
-
size:
|
|
41
|
-
onItemSelected:
|
|
38
|
+
color: s,
|
|
39
|
+
size: n,
|
|
40
|
+
onItemSelected: a
|
|
42
41
|
})) : e.props.justifyToEnd !== !0 || e.props.__TYPE__ == "NESTED_ITEM" || ((m = e == null ? void 0 : e.type) == null ? void 0 : m.displayName) === "NESTED_ITEM" ? u(e, {
|
|
43
|
-
color:
|
|
44
|
-
size:
|
|
45
|
-
onItemSelected:
|
|
42
|
+
color: s,
|
|
43
|
+
size: n,
|
|
44
|
+
onItemSelected: a
|
|
46
45
|
}) : void 0;
|
|
47
|
-
if (((
|
|
46
|
+
if (((T = e.props) == null ? void 0 : T.justifyToEnd) == !1 || !((y = e.props) != null && y.justifyToEnd))
|
|
48
47
|
return e;
|
|
49
|
-
}),
|
|
50
|
-
var
|
|
51
|
-
if (M(e) && (e.props.__TYPE__ == "MENU_ITEM" || ((
|
|
52
|
-
return
|
|
53
|
-
ref: r ||
|
|
48
|
+
}), w = i.map(_, (e, f) => {
|
|
49
|
+
var o, p, m;
|
|
50
|
+
if (M(e) && (e.props.__TYPE__ == "MENU_ITEM" || ((o = e == null ? void 0 : e.type) == null ? void 0 : o.displayName) === "MENU_ITEM" || e.props.__TYPE__ == "NESTED_ITEM" || ((p = e == null ? void 0 : e.type) == null ? void 0 : p.displayName) === "NESTED_ITEM") && e.props.justifyToEnd == !0)
|
|
51
|
+
return f == 0 ? (e.props.ref && (E.current = r), u(e, {
|
|
52
|
+
ref: r || E,
|
|
54
53
|
//needed to focus on navigation
|
|
55
|
-
color: e.props.color ? e.props.color :
|
|
56
|
-
size:
|
|
57
|
-
onItemSelected:
|
|
54
|
+
color: e.props.color ? e.props.color : s,
|
|
55
|
+
size: n,
|
|
56
|
+
onItemSelected: a
|
|
58
57
|
})) : u(e, {
|
|
59
|
-
color: e.props.color ? e.props.color :
|
|
60
|
-
size:
|
|
61
|
-
onItemSelected:
|
|
58
|
+
color: e.props.color ? e.props.color : s,
|
|
59
|
+
size: n,
|
|
60
|
+
onItemSelected: a
|
|
62
61
|
});
|
|
63
62
|
if (((m = e.props) == null ? void 0 : m.justifyToEnd) == !0) return e;
|
|
64
63
|
});
|
|
@@ -67,42 +66,19 @@ const U = G.div`
|
|
|
67
66
|
{
|
|
68
67
|
ref: r,
|
|
69
68
|
widthFitContent: I,
|
|
70
|
-
itemsGap:
|
|
71
|
-
size:
|
|
72
|
-
color:
|
|
73
|
-
className: "lnc-ui-treemenu " +
|
|
74
|
-
style:
|
|
75
|
-
...
|
|
69
|
+
itemsGap: j,
|
|
70
|
+
size: n,
|
|
71
|
+
color: s,
|
|
72
|
+
className: "lnc-ui-treemenu " + S,
|
|
73
|
+
style: l,
|
|
74
|
+
...x,
|
|
76
75
|
children: [
|
|
77
|
-
/* @__PURE__ */ N("div", { className: "nested-item-lnc start-menu-items-lnc", children:
|
|
78
|
-
/* @__PURE__ */ N("div", { className: "nested-item-lnc end-menu-items-lnc", children:
|
|
76
|
+
/* @__PURE__ */ N("div", { className: "nested-item-lnc start-menu-items-lnc", children: D }),
|
|
77
|
+
/* @__PURE__ */ N("div", { className: "nested-item-lnc end-menu-items-lnc", children: w })
|
|
79
78
|
]
|
|
80
79
|
}
|
|
81
80
|
);
|
|
82
81
|
});
|
|
83
|
-
b.propTypes = {
|
|
84
|
-
widthFitContent: s.bool,
|
|
85
|
-
/**
|
|
86
|
-
* Gap between Menu Items
|
|
87
|
-
*/
|
|
88
|
-
itemsGap: s.string,
|
|
89
|
-
//---------------------------------------------------------------
|
|
90
|
-
onItemSelected: s.func,
|
|
91
|
-
//---------------------------------------------------------------
|
|
92
|
-
className: s.string,
|
|
93
|
-
style: s.object,
|
|
94
|
-
color: s.oneOf([
|
|
95
|
-
"primary",
|
|
96
|
-
"secondary",
|
|
97
|
-
"success",
|
|
98
|
-
"warning",
|
|
99
|
-
"danger",
|
|
100
|
-
"information",
|
|
101
|
-
"neutral",
|
|
102
|
-
"gray"
|
|
103
|
-
]),
|
|
104
|
-
size: s.oneOf(["small", "medium", "large"])
|
|
105
|
-
};
|
|
106
82
|
export {
|
|
107
|
-
|
|
83
|
+
$ as default
|
|
108
84
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const n=require("react/jsx-runtime"),c=require("./emotion-styled.browser.esm-BtEseadx.cjs"),i=require("./utils-RnrgDDZP.cjs"),m=require("react"),u=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),l=c.styled.div`
|
|
2
2
|
height: 1px;
|
|
3
|
-
background-color: ${e=>
|
|
3
|
+
background-color: ${e=>i.getColorRgbaValue(e.theme,"MenuItem","default","enabled","separator")};
|
|
4
4
|
margin-left: -0.25rem;
|
|
5
5
|
margin-right: -0.25rem;
|
|
6
|
-
`,
|
|
6
|
+
`,d=m.forwardRef((e,r)=>{const{className:t="",style:s={},...o}=e,a=u.useTheme();return n.jsx(l,{ref:r,theme:a,className:"lnc-ui-separator "+t,style:s,...o})});module.exports=d;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { P as r } from "./index-CblbdqjE.js";
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
3
2
|
import { s as l } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
-
import { b as
|
|
5
|
-
import { forwardRef as
|
|
6
|
-
import { u as
|
|
3
|
+
import { b as n } from "./utils-DtEfC-TX.js";
|
|
4
|
+
import { forwardRef as i } from "react";
|
|
5
|
+
import { u as p } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
7
6
|
const f = l.div`
|
|
8
7
|
height: 1px;
|
|
9
|
-
background-color: ${(e) =>
|
|
8
|
+
background-color: ${(e) => n(
|
|
10
9
|
e.theme,
|
|
11
10
|
"MenuItem",
|
|
12
11
|
"default",
|
|
@@ -15,26 +14,19 @@ const f = l.div`
|
|
|
15
14
|
)};
|
|
16
15
|
margin-left: -0.25rem;
|
|
17
16
|
margin-right: -0.25rem;
|
|
18
|
-
`,
|
|
19
|
-
const { className:
|
|
20
|
-
return /* @__PURE__ */
|
|
17
|
+
`, b = i((e, r) => {
|
|
18
|
+
const { className: t = "", style: a = {}, ...o } = e, m = p();
|
|
19
|
+
return /* @__PURE__ */ s(
|
|
21
20
|
f,
|
|
22
21
|
{
|
|
23
|
-
ref:
|
|
22
|
+
ref: r,
|
|
24
23
|
theme: m,
|
|
25
|
-
className: "lnc-ui-separator " +
|
|
24
|
+
className: "lnc-ui-separator " + t,
|
|
26
25
|
style: a,
|
|
27
|
-
...
|
|
26
|
+
...o
|
|
28
27
|
}
|
|
29
28
|
);
|
|
30
29
|
});
|
|
31
|
-
u.propTypes = {
|
|
32
|
-
/**
|
|
33
|
-
* When the separator needs to be set beetween Menu Items that are justified to end, prop needs to be set to `justifyToEnd={true}`
|
|
34
|
-
*/
|
|
35
|
-
className: r.string,
|
|
36
|
-
style: r.object
|
|
37
|
-
};
|
|
38
30
|
export {
|
|
39
|
-
|
|
31
|
+
b as default
|
|
40
32
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const D=require("./_commonjsHelpers-DwTZ_eVU.cjs"),C=require("react"),_=require("./SearchSection-
|
|
1
|
+
"use strict";const D=require("./_commonjsHelpers-DwTZ_eVU.cjs"),C=require("react"),_=require("./SearchSection-B94YN_6P.cjs");function N(t,e){for(var r=0;r<e.length;r++){const a=e[r];if(typeof a!="string"&&!Array.isArray(a)){for(const s in a)if(s!=="default"&&!(s in t)){const o=Object.getOwnPropertyDescriptor(a,s);o&&Object.defineProperty(t,s,o.get?o:{enumerable:!0,get:()=>a[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var S=Object.create,l=Object.defineProperty,j=Object.getOwnPropertyDescriptor,I=Object.getOwnPropertyNames,M=Object.getPrototypeOf,A=Object.prototype.hasOwnProperty,H=(t,e,r)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,R=(t,e)=>{for(var r in e)l(t,r,{get:e[r],enumerable:!0})},P=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of I(e))!A.call(t,s)&&s!==r&&l(t,s,{get:()=>e[s],enumerable:!(a=j(e,s))||a.enumerable});return t},F=(t,e,r)=>(r=t!=null?S(M(t)):{},P(!t||!t.__esModule?l(r,"default",{value:t,enumerable:!0}):r,t)),U=t=>P(l({},"__esModule",{value:!0}),t),n=(t,e,r)=>(H(t,typeof e!="symbol"?e+"":e,r),r),f={};R(f,{default:()=>h});var v=U(f),y=F(C),c=_.utils,u=_.patterns;const x="https://player.twitch.tv/js/embed/v1.js",K="Twitch",V="twitch-player-";class h extends y.Component{constructor(){super(...arguments),n(this,"callPlayer",c.callPlayer),n(this,"playerID",this.props.config.playerId||`${V}${(0,c.randomString)()}`),n(this,"mute",()=>{this.callPlayer("setMuted",!0)}),n(this,"unmute",()=>{this.callPlayer("setMuted",!1)})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){const{playsinline:a,onError:s,config:o,controls:g}=this.props,i=u.MATCH_URL_TWITCH_CHANNEL.test(e),p=i?e.match(u.MATCH_URL_TWITCH_CHANNEL)[1]:e.match(u.MATCH_URL_TWITCH_VIDEO)[1];if(r){i?this.player.setChannel(p):this.player.setVideo("v"+p);return}(0,c.getSDK)(x,K).then(d=>{this.player=new d.Player(this.playerID,{video:i?"":p,channel:i?p:"",height:"100%",width:"100%",playsinline:a,autoplay:this.props.playing,muted:this.props.muted,controls:i?!0:g,time:(0,c.parseStartTime)(e),...o.options});const{READY:m,PLAYING:E,PAUSE:O,ENDED:L,ONLINE:b,OFFLINE:w,SEEK:T}=d.Player;this.player.addEventListener(m,this.props.onReady),this.player.addEventListener(E,this.props.onPlay),this.player.addEventListener(O,this.props.onPause),this.player.addEventListener(L,this.props.onEnded),this.player.addEventListener(T,this.props.onSeek),this.player.addEventListener(b,this.props.onLoaded),this.player.addEventListener(w,this.props.onLoaded)},s)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.callPlayer("pause")}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentTime")}getSecondsLoaded(){return null}render(){const e={width:"100%",height:"100%"};return y.default.createElement("div",{style:e,id:this.playerID})}}n(h,"displayName","Twitch");n(h,"canPlay",u.canPlay.twitch);n(h,"loopOnEnded",!0);const $=D.getDefaultExportFromCjs(v),q=N({__proto__:null,default:$},[v]);exports.Twitch=q;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { g as w } from "./_commonjsHelpers-BkfeUUK-.js";
|
|
2
2
|
import D from "react";
|
|
3
|
-
import { u as C, p as N } from "./SearchSection-
|
|
3
|
+
import { u as C, p as N } from "./SearchSection-DAaMecR4.js";
|
|
4
4
|
function I(t, e) {
|
|
5
5
|
for (var r = 0; r < e.length; r++) {
|
|
6
6
|
const s = e[r];
|
package/dist/UploadedFile.cjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const s=require("react/jsx-runtime"),I=require("react"),r=require("./emotion-styled.browser.esm-BtEseadx.cjs"),p=require("./Icon.cjs"),M=require("./ProgressBar.cjs"),a=require("./utils-RnrgDDZP.cjs"),N=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),x={small:"1.5rem",medium:"1.75rem",large:"2rem"},y={small:"2.25rem",medium:"2.5rem",large:"2.75rem"},T=r.styled.div`
|
|
2
2
|
display: inline-flex;
|
|
3
3
|
gap: 0.5rem;
|
|
4
4
|
align-items: center;
|
|
5
5
|
width: 100%;
|
|
6
6
|
|
|
7
|
-
height: ${e=>e.progress?
|
|
8
|
-
height: ${e=>e.progress?
|
|
9
|
-
`,R=
|
|
10
|
-
color: ${e=>
|
|
7
|
+
height: ${e=>e.progress?y[e.size]:x[e.size]};
|
|
8
|
+
height: ${e=>e.progress?y[e.size]:x[e.size]};
|
|
9
|
+
`,R=r.styled.div`
|
|
10
|
+
color: ${e=>a.getColorRgbaValue(e.theme,"UploadedFile",e.color,"enabled","color")};
|
|
11
11
|
|
|
12
12
|
width: 100%;
|
|
13
13
|
display: flex;
|
|
@@ -16,24 +16,24 @@
|
|
|
16
16
|
min-width: 0;
|
|
17
17
|
flex-shrink: 1;
|
|
18
18
|
min-height: 0;
|
|
19
|
-
`,
|
|
19
|
+
`,S=r.styled.div`
|
|
20
20
|
display: flex;
|
|
21
21
|
justify-content: space-between;
|
|
22
22
|
white-space: nowrap;
|
|
23
23
|
overflow: hidden;
|
|
24
24
|
text-overflow: ellipsis;
|
|
25
25
|
|
|
26
|
-
${e=>
|
|
27
|
-
`,
|
|
26
|
+
${e=>a.getComponentTypographyCss(e.theme,"UploadedFile",e.size,"enabled")};
|
|
27
|
+
`,_=r.styled.span`
|
|
28
28
|
display: flex;
|
|
29
29
|
align-items: center;
|
|
30
30
|
justify-content: center;
|
|
31
31
|
cursor: ${e=>e.onCancel?"pointer":"default"};
|
|
32
|
-
`,
|
|
32
|
+
`,E=r.styled.span`
|
|
33
33
|
white-space: nowrap;
|
|
34
34
|
overflow: hidden;
|
|
35
35
|
text-overflow: ellipsis;
|
|
36
36
|
cursor: ${e=>e.hasOnClick?"pointer":"default"};
|
|
37
37
|
|
|
38
|
-
${e=>
|
|
39
|
-
`,
|
|
38
|
+
${e=>a.getComponentTypographyCss(e.theme,"UploadedFile",e.size,"enabled")};
|
|
39
|
+
`,O=I.forwardRef((e,z)=>{const{id:w,fileName:o="file",fileSize:d=null,showFileSize:C=!1,progressPercentage:i,onFileClick:n=()=>{},onCancel:c=()=>{},size:j="small",color:B="primary",className:F="",style:v={},fileIcon:$="file",cancelIcon:k="times",...m}=e;var t={theme:N.useTheme(),size:j,color:B,progress:i&&i>0};const q=()=>o&&d&&C?`${o} (${P(d,2)})`:o||"";function P(l,u=2){if(l===0)return"0 Bytes";const f=1024,U=u<0?0:u,b=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],g=Math.floor(Math.log(l)/Math.log(f));return parseFloat((l/Math.pow(f,g)).toFixed(U))+" "+b[g]}const h={small:"1rem",medium:"1.25rem",large:"1.5rem"};return s.jsxs(T,{ref:z,id:w,...t,className:"lnc-ui-uploaded-file "+F,style:v,...m,children:[s.jsx(p,{...t,icon:$,sizeInUnits:h[e.size],style:{cursor:n?"pointer":"default"},onClick:l=>n?n(l):null}),s.jsxs(R,{...t,children:[s.jsxs(S,{...t,children:[s.jsx(E,{...t,hasOnClick:!!n,onClick:l=>n?n(l):null,children:q()}),i&&s.jsxs("div",{children:[i,"%"]})]}),(i||i==0)&&s.jsx(M,{progressPercentage:i,style:{height:"0.5rem"},...t})]}),s.jsx(_,{onCancel:c,onClick:c||null,children:s.jsx(p,{...t,icon:k,sizeInUnits:h[e.size],...m})})]})});module.exports=O;
|