@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/UploadedFile.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import { u as R } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
1
|
+
import { jsxs as a, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as j } from "react";
|
|
3
|
+
import { s as o } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
+
import p from "./Icon.js";
|
|
5
|
+
import T from "./ProgressBar.js";
|
|
6
|
+
import { b as S, c as y } from "./utils-DtEfC-TX.js";
|
|
7
|
+
import { u as O } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
9
8
|
const z = {
|
|
10
9
|
small: "1.5rem",
|
|
11
10
|
medium: "1.75rem",
|
|
@@ -14,7 +13,7 @@ const z = {
|
|
|
14
13
|
small: "2.25rem",
|
|
15
14
|
medium: "2.5rem",
|
|
16
15
|
large: "2.75rem"
|
|
17
|
-
},
|
|
16
|
+
}, R = o.div`
|
|
18
17
|
display: inline-flex;
|
|
19
18
|
gap: 0.5rem;
|
|
20
19
|
align-items: center;
|
|
@@ -22,7 +21,7 @@ const z = {
|
|
|
22
21
|
|
|
23
22
|
height: ${(e) => e.progress ? w[e.size] : z[e.size]};
|
|
24
23
|
height: ${(e) => e.progress ? w[e.size] : z[e.size]};
|
|
25
|
-
`,
|
|
24
|
+
`, W = o.div`
|
|
26
25
|
color: ${(e) => S(
|
|
27
26
|
e.theme,
|
|
28
27
|
"UploadedFile",
|
|
@@ -38,155 +37,130 @@ const z = {
|
|
|
38
37
|
min-width: 0;
|
|
39
38
|
flex-shrink: 1;
|
|
40
39
|
min-height: 0;
|
|
41
|
-
`,
|
|
40
|
+
`, E = o.div`
|
|
42
41
|
display: flex;
|
|
43
42
|
justify-content: space-between;
|
|
44
43
|
white-space: nowrap;
|
|
45
44
|
overflow: hidden;
|
|
46
45
|
text-overflow: ellipsis;
|
|
47
46
|
|
|
48
|
-
${(e) =>
|
|
47
|
+
${(e) => y(
|
|
49
48
|
e.theme,
|
|
50
49
|
"UploadedFile",
|
|
51
50
|
e.size,
|
|
52
51
|
"enabled"
|
|
53
52
|
)};
|
|
54
|
-
`,
|
|
53
|
+
`, G = o.span`
|
|
55
54
|
display: flex;
|
|
56
55
|
align-items: center;
|
|
57
56
|
justify-content: center;
|
|
58
57
|
cursor: ${(e) => e.onCancel ? "pointer" : "default"};
|
|
59
|
-
`,
|
|
58
|
+
`, K = o.span`
|
|
60
59
|
white-space: nowrap;
|
|
61
60
|
overflow: hidden;
|
|
62
61
|
text-overflow: ellipsis;
|
|
63
62
|
cursor: ${(e) => e.hasOnClick ? "pointer" : "default"};
|
|
64
63
|
|
|
65
|
-
${(e) =>
|
|
64
|
+
${(e) => y(
|
|
66
65
|
e.theme,
|
|
67
66
|
"UploadedFile",
|
|
68
67
|
e.size,
|
|
69
68
|
"enabled"
|
|
70
69
|
)};
|
|
71
|
-
`,
|
|
70
|
+
`, L = j((e, C) => {
|
|
72
71
|
const {
|
|
73
|
-
id:
|
|
74
|
-
fileName:
|
|
75
|
-
fileSize:
|
|
76
|
-
showFileSize:
|
|
77
|
-
progressPercentage:
|
|
72
|
+
id: x,
|
|
73
|
+
fileName: n = "file",
|
|
74
|
+
fileSize: m = null,
|
|
75
|
+
showFileSize: B = !1,
|
|
76
|
+
progressPercentage: i,
|
|
78
77
|
onFileClick: s = () => {
|
|
79
78
|
},
|
|
80
|
-
onCancel:
|
|
79
|
+
onCancel: c = () => {
|
|
81
80
|
},
|
|
82
|
-
size:
|
|
83
|
-
color:
|
|
84
|
-
className:
|
|
85
|
-
style:
|
|
86
|
-
fileIcon:
|
|
87
|
-
cancelIcon:
|
|
88
|
-
...
|
|
81
|
+
size: F = "small",
|
|
82
|
+
color: v = "primary",
|
|
83
|
+
className: $ = "",
|
|
84
|
+
style: k = {},
|
|
85
|
+
fileIcon: P = "file",
|
|
86
|
+
cancelIcon: U = "times",
|
|
87
|
+
...d
|
|
89
88
|
} = e;
|
|
90
|
-
var
|
|
91
|
-
theme:
|
|
92
|
-
size:
|
|
93
|
-
color:
|
|
94
|
-
progress:
|
|
89
|
+
var l = {
|
|
90
|
+
theme: O(),
|
|
91
|
+
size: F,
|
|
92
|
+
color: v,
|
|
93
|
+
progress: i && i > 0
|
|
95
94
|
};
|
|
96
|
-
const
|
|
97
|
-
function
|
|
98
|
-
if (
|
|
99
|
-
const u = 1024,
|
|
100
|
-
return parseFloat((
|
|
95
|
+
const I = () => n && m && B ? `${n} (${M(m, 2)})` : n || "";
|
|
96
|
+
function M(r, h = 2) {
|
|
97
|
+
if (r === 0) return "0 Bytes";
|
|
98
|
+
const u = 1024, N = h < 0 ? 0 : h, b = ["Bytes", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"], g = Math.floor(Math.log(r) / Math.log(u));
|
|
99
|
+
return parseFloat((r / Math.pow(u, g)).toFixed(N)) + " " + b[g];
|
|
101
100
|
}
|
|
102
|
-
const
|
|
101
|
+
const f = {
|
|
103
102
|
small: "1rem",
|
|
104
103
|
medium: "1.25rem",
|
|
105
104
|
large: "1.5rem"
|
|
106
105
|
};
|
|
107
|
-
return /* @__PURE__ */
|
|
108
|
-
|
|
106
|
+
return /* @__PURE__ */ a(
|
|
107
|
+
R,
|
|
109
108
|
{
|
|
110
|
-
ref:
|
|
111
|
-
id:
|
|
112
|
-
...
|
|
113
|
-
className: "lnc-ui-uploaded-file " +
|
|
114
|
-
style:
|
|
115
|
-
...
|
|
109
|
+
ref: C,
|
|
110
|
+
id: x,
|
|
111
|
+
...l,
|
|
112
|
+
className: "lnc-ui-uploaded-file " + $,
|
|
113
|
+
style: k,
|
|
114
|
+
...d,
|
|
116
115
|
children: [
|
|
117
|
-
/* @__PURE__ */
|
|
118
|
-
|
|
116
|
+
/* @__PURE__ */ t(
|
|
117
|
+
p,
|
|
119
118
|
{
|
|
120
|
-
...
|
|
121
|
-
icon:
|
|
122
|
-
sizeInUnits:
|
|
119
|
+
...l,
|
|
120
|
+
icon: P,
|
|
121
|
+
sizeInUnits: f[e.size],
|
|
123
122
|
style: { cursor: s ? "pointer" : "default" },
|
|
124
|
-
onClick: (
|
|
123
|
+
onClick: (r) => s ? s(r) : null
|
|
125
124
|
}
|
|
126
125
|
),
|
|
127
|
-
/* @__PURE__ */
|
|
128
|
-
/* @__PURE__ */
|
|
129
|
-
/* @__PURE__ */
|
|
130
|
-
|
|
126
|
+
/* @__PURE__ */ a(W, { ...l, children: [
|
|
127
|
+
/* @__PURE__ */ a(E, { ...l, children: [
|
|
128
|
+
/* @__PURE__ */ t(
|
|
129
|
+
K,
|
|
131
130
|
{
|
|
132
|
-
...
|
|
131
|
+
...l,
|
|
133
132
|
hasOnClick: !!s,
|
|
134
|
-
onClick: (
|
|
135
|
-
children:
|
|
133
|
+
onClick: (r) => s ? s(r) : null,
|
|
134
|
+
children: I()
|
|
136
135
|
}
|
|
137
136
|
),
|
|
138
|
-
|
|
139
|
-
|
|
137
|
+
i && /* @__PURE__ */ a("div", { children: [
|
|
138
|
+
i,
|
|
140
139
|
"%"
|
|
141
140
|
] })
|
|
142
141
|
] }),
|
|
143
|
-
(
|
|
144
|
-
|
|
142
|
+
(i || i == 0) && /* @__PURE__ */ t(
|
|
143
|
+
T,
|
|
145
144
|
{
|
|
146
|
-
progressPercentage:
|
|
145
|
+
progressPercentage: i,
|
|
147
146
|
style: { height: "0.5rem" },
|
|
148
|
-
...
|
|
147
|
+
...l
|
|
149
148
|
}
|
|
150
149
|
)
|
|
151
150
|
] }),
|
|
152
|
-
/* @__PURE__ */
|
|
153
|
-
|
|
151
|
+
/* @__PURE__ */ t(G, { onCancel: c, onClick: c || null, children: /* @__PURE__ */ t(
|
|
152
|
+
p,
|
|
154
153
|
{
|
|
155
|
-
...
|
|
156
|
-
icon:
|
|
157
|
-
sizeInUnits:
|
|
158
|
-
...
|
|
154
|
+
...l,
|
|
155
|
+
icon: U,
|
|
156
|
+
sizeInUnits: f[e.size],
|
|
157
|
+
...d
|
|
159
158
|
}
|
|
160
159
|
) })
|
|
161
160
|
]
|
|
162
161
|
}
|
|
163
162
|
);
|
|
164
163
|
});
|
|
165
|
-
Y.propTypes = {
|
|
166
|
-
id: i.any,
|
|
167
|
-
fileName: i.string,
|
|
168
|
-
fileSize: i.oneOfType([i.string, i.number]),
|
|
169
|
-
showFileSize: i.bool,
|
|
170
|
-
progressPercentage: i.number,
|
|
171
|
-
className: i.string,
|
|
172
|
-
style: i.object,
|
|
173
|
-
onFileClick: i.func,
|
|
174
|
-
onCancel: i.func,
|
|
175
|
-
size: i.oneOf(["small", "medium", "large"]),
|
|
176
|
-
color: i.oneOf([
|
|
177
|
-
"primary",
|
|
178
|
-
"secondary",
|
|
179
|
-
"success",
|
|
180
|
-
"danger",
|
|
181
|
-
"warning",
|
|
182
|
-
"disabled",
|
|
183
|
-
"neutral",
|
|
184
|
-
"information",
|
|
185
|
-
"gray"
|
|
186
|
-
]),
|
|
187
|
-
fileIcon: i.string,
|
|
188
|
-
cancelIcon: i.string
|
|
189
|
-
};
|
|
190
164
|
export {
|
|
191
|
-
|
|
165
|
+
L as default
|
|
192
166
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { g } from "./_commonjsHelpers-BkfeUUK-.js";
|
|
2
2
|
import v from "react";
|
|
3
|
-
import { u as b, p as O } from "./SearchSection-
|
|
3
|
+
import { u as b, p as O } from "./SearchSection-DAaMecR4.js";
|
|
4
4
|
function V(t, e) {
|
|
5
5
|
for (var r = 0; r < e.length; r++) {
|
|
6
6
|
const o = e[r];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const v=require("./_commonjsHelpers-DwTZ_eVU.cjs"),b=require("react"),h=require("./SearchSection-
|
|
1
|
+
"use strict";const v=require("./_commonjsHelpers-DwTZ_eVU.cjs"),b=require("react"),h=require("./SearchSection-B94YN_6P.cjs");function O(t,e){for(var r=0;r<e.length;r++){const o=e[r];if(typeof o!="string"&&!Array.isArray(o)){for(const a in o)if(a!=="default"&&!(a in t)){const n=Object.getOwnPropertyDescriptor(o,a);n&&Object.defineProperty(t,a,n.get?n:{enumerable:!0,get:()=>o[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var V=Object.create,i=Object.defineProperty,D=Object.getOwnPropertyDescriptor,S=Object.getOwnPropertyNames,j=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty,M=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,A=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},_=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of S(e))!w.call(t,a)&&a!==r&&i(t,a,{get:()=>e[a],enumerable:!(o=D(e,a))||o.enumerable});return t},L=(t,e,r)=>(r=t!=null?V(j(t)):{},_(!t||!t.__esModule?i(r,"default",{value:t,enumerable:!0}):r,t)),R=t=>_(i({},"__esModule",{value:!0}),t),s=(t,e,r)=>(M(t,typeof e!="symbol"?e+"":e,r),r),f={};A(f,{default:()=>d});var P=R(f),c=L(b),y=h.utils,m=h.patterns;const E="https://play.vidyard.com/embed/v4.js",C="VidyardV4",N="onVidyardAPI";class d extends c.Component{constructor(){super(...arguments),s(this,"callPlayer",y.callPlayer),s(this,"mute",()=>{this.setVolume(0)}),s(this,"unmute",()=>{this.props.volume!==null&&this.setVolume(this.props.volume)}),s(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{playing:r,config:o,onError:a,onDuration:n}=this.props,l=e&&e.match(m.MATCH_URL_VIDYARD)[1];this.player&&this.stop(),(0,y.getSDK)(E,C,N).then(p=>{this.container&&(p.api.addReadyListener((u,g)=>{this.player||(this.player=g,this.player.on("ready",this.props.onReady),this.player.on("play",this.props.onPlay),this.player.on("pause",this.props.onPause),this.player.on("seek",this.props.onSeek),this.player.on("playerComplete",this.props.onEnded))},l),p.api.renderPlayer({uuid:l,container:this.container,autoplay:r?1:0,...o.options}),p.api.getPlayerMetadata(l).then(u=>{this.duration=u.length_in_seconds,n(u.length_in_seconds)}))},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){window.VidyardV4.api.destroyPlayer(this.player)}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setPlaybackRate(e){this.callPlayer("setPlaybackSpeed",e)}getDuration(){return this.duration}getCurrentTime(){return this.callPlayer("currentTime")}getSecondsLoaded(){return null}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return c.default.createElement("div",{style:r},c.default.createElement("div",{ref:this.ref}))}}s(d,"displayName","Vidyard");s(d,"canPlay",m.canPlay.vidyard);const T=v.getDefaultExportFromCjs(P),k=O({__proto__:null,default:T},[P]);exports.Vidyard=k;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const f=require("./_commonjsHelpers-DwTZ_eVU.cjs"),m=require("react"),c=require("./SearchSection-
|
|
1
|
+
"use strict";const f=require("./_commonjsHelpers-DwTZ_eVU.cjs"),m=require("react"),c=require("./SearchSection-B94YN_6P.cjs");function _(t,e){for(var r=0;r<e.length;r++){const a=e[r];if(typeof a!="string"&&!Array.isArray(a)){for(const o in a)if(o!=="default"&&!(o in t)){const s=Object.getOwnPropertyDescriptor(a,o);s&&Object.defineProperty(t,o,s.get?s:{enumerable:!0,get:()=>a[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var P=Object.create,n=Object.defineProperty,g=Object.getOwnPropertyDescriptor,b=Object.getOwnPropertyNames,v=Object.getPrototypeOf,O=Object.prototype.hasOwnProperty,D=(t,e,r)=>e in t?n(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,j=(t,e)=>{for(var r in e)n(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of b(e))!O.call(t,o)&&o!==r&&n(t,o,{get:()=>e[o],enumerable:!(a=g(e,o))||a.enumerable});return t},w=(t,e,r)=>(r=t!=null?P(v(t)):{},h(!t||!t.__esModule?n(r,"default",{value:t,enumerable:!0}):r,t)),M=t=>h(n({},"__esModule",{value:!0}),t),i=(t,e,r)=>(D(t,typeof e!="symbol"?e+"":e,r),r),y={};j(y,{default:()=>l});var d=M(y),p=w(m),u=c.utils,S=c.patterns;const L="https://player.vimeo.com/api/player.js",V="Vimeo",E=t=>t.replace("/manage/videos","");class l extends p.Component{constructor(){super(...arguments),i(this,"callPlayer",u.callPlayer),i(this,"duration",null),i(this,"currentTime",null),i(this,"secondsLoaded",null),i(this,"mute",()=>{this.setMuted(!0)}),i(this,"unmute",()=>{this.setMuted(!1)}),i(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){this.duration=null,(0,u.getSDK)(L,V).then(r=>{if(!this.container)return;const{playerOptions:a,title:o}=this.props.config;this.player=new r.Player(this.container,{url:E(e),autoplay:this.props.playing,muted:this.props.muted,loop:this.props.loop,playsinline:this.props.playsinline,controls:this.props.controls,...a}),this.player.ready().then(()=>{const s=this.container.querySelector("iframe");s.style.width="100%",s.style.height="100%",o&&(s.title=o)}).catch(this.props.onError),this.player.on("loaded",()=>{this.props.onReady(),this.refreshDuration()}),this.player.on("play",()=>{this.props.onPlay(),this.refreshDuration()}),this.player.on("pause",this.props.onPause),this.player.on("seeked",s=>this.props.onSeek(s.seconds)),this.player.on("ended",this.props.onEnded),this.player.on("error",this.props.onError),this.player.on("timeupdate",({seconds:s})=>{this.currentTime=s}),this.player.on("progress",({seconds:s})=>{this.secondsLoaded=s}),this.player.on("bufferstart",this.props.onBuffer),this.player.on("bufferend",this.props.onBufferEnd),this.player.on("playbackratechange",s=>this.props.onPlaybackRateChange(s.playbackRate))},this.props.onError)}refreshDuration(){this.player.getDuration().then(e=>{this.duration=e})}play(){const e=this.callPlayer("play");e&&e.catch(this.props.onError)}pause(){this.callPlayer("pause")}stop(){this.callPlayer("unload")}seekTo(e,r=!0){this.callPlayer("setCurrentTime",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setMuted(e){this.callPlayer("setMuted",e)}setLoop(e){this.callPlayer("setLoop",e)}setPlaybackRate(e){this.callPlayer("setPlaybackRate",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const{display:e}=this.props,r={width:"100%",height:"100%",overflow:"hidden",display:e};return p.default.createElement("div",{key:this.props.url,ref:this.ref,style:r})}}i(l,"displayName","Vimeo");i(l,"canPlay",S.canPlay.vimeo);i(l,"forceLoad",!0);const k=f.getDefaultExportFromCjs(d),R=_({__proto__:null,default:k},[d]);exports.Vimeo=R;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { g as d } from "./_commonjsHelpers-BkfeUUK-.js";
|
|
2
2
|
import f from "react";
|
|
3
|
-
import { u as m, p as _ } from "./SearchSection-
|
|
3
|
+
import { u as m, p as _ } from "./SearchSection-DAaMecR4.js";
|
|
4
4
|
function P(t, e) {
|
|
5
5
|
for (var r = 0; r < e.length; r++) {
|
|
6
6
|
const a = e[r];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const g=require("./_commonjsHelpers-DwTZ_eVU.cjs"),v=require("react"),y=require("./SearchSection-
|
|
1
|
+
"use strict";const g=require("./_commonjsHelpers-DwTZ_eVU.cjs"),v=require("react"),y=require("./SearchSection-B94YN_6P.cjs");function w(t,e){for(var a=0;a<e.length;a++){const s=e[a];if(typeof s!="string"&&!Array.isArray(s)){for(const r in s)if(r!=="default"&&!(r in t)){const o=Object.getOwnPropertyDescriptor(s,r);o&&Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:()=>s[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var O=Object.create,i=Object.defineProperty,C=Object.getOwnPropertyDescriptor,S=Object.getOwnPropertyNames,k=Object.getPrototypeOf,D=Object.prototype.hasOwnProperty,R=(t,e,a)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a,E=(t,e)=>{for(var a in e)i(t,a,{get:e[a],enumerable:!0})},d=(t,e,a,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of S(e))!D.call(t,r)&&r!==a&&i(t,r,{get:()=>e[r],enumerable:!(s=C(e,r))||s.enumerable});return t},j=(t,e,a)=>(a=t!=null?O(k(t)):{},d(!t||!t.__esModule?i(a,"default",{value:t,enumerable:!0}):a,t)),I=t=>d(i({},"__esModule",{value:!0}),t),n=(t,e,a)=>(R(t,typeof e!="symbol"?e+"":e,a),a),_={};E(_,{default:()=>l});var P=I(_),h=j(v),c=y.utils,b=y.patterns;const M="https://fast.wistia.com/assets/external/E-v1.js",W="Wistia",q="wistia-player-";class l extends h.Component{constructor(){super(...arguments),n(this,"callPlayer",c.callPlayer),n(this,"playerID",this.props.config.playerId||`${q}${(0,c.randomString)()}`),n(this,"onPlay",(...e)=>this.props.onPlay(...e)),n(this,"onPause",(...e)=>this.props.onPause(...e)),n(this,"onSeek",(...e)=>this.props.onSeek(...e)),n(this,"onEnded",(...e)=>this.props.onEnded(...e)),n(this,"onPlaybackRateChange",(...e)=>this.props.onPlaybackRateChange(...e)),n(this,"mute",()=>{this.callPlayer("mute")}),n(this,"unmute",()=>{this.callPlayer("unmute")})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{playing:a,muted:s,controls:r,onReady:o,config:p,onError:f}=this.props;(0,c.getSDK)(M,W).then(m=>{p.customControls&&p.customControls.forEach(u=>m.defineControl(u)),window._wq=window._wq||[],window._wq.push({id:this.playerID,options:{autoPlay:a,silentAutoPlay:"allow",muted:s,controlsVisibleOnLoad:r,fullscreenButton:r,playbar:r,playbackRateControl:r,qualityControl:r,volumeControl:r,settingsControl:r,smallPlayButton:r,...p.options},onReady:u=>{this.player=u,this.unbind(),this.player.bind("play",this.onPlay),this.player.bind("pause",this.onPause),this.player.bind("seek",this.onSeek),this.player.bind("end",this.onEnded),this.player.bind("playbackratechange",this.onPlaybackRateChange),o()}})},f)}unbind(){this.player.unbind("play",this.onPlay),this.player.unbind("pause",this.onPause),this.player.unbind("seek",this.onSeek),this.player.unbind("end",this.onEnded),this.player.unbind("playbackratechange",this.onPlaybackRateChange)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.unbind(),this.callPlayer("remove")}seekTo(e,a=!0){this.callPlayer("time",e),a||this.pause()}setVolume(e){this.callPlayer("volume",e)}setPlaybackRate(e){this.callPlayer("playbackRate",e)}getDuration(){return this.callPlayer("duration")}getCurrentTime(){return this.callPlayer("time")}getSecondsLoaded(){return null}render(){const{url:e}=this.props,a=e&&e.match(b.MATCH_URL_WISTIA)[1],s=`wistia_embed wistia_async_${a}`,r={width:"100%",height:"100%"};return h.default.createElement("div",{id:this.playerID,key:a,className:s,style:r})}}n(l,"displayName","Wistia");n(l,"canPlay",b.canPlay.wistia);n(l,"loopOnEnded",!0);const A=g.getDefaultExportFromCjs(P),L=w({__proto__:null,default:A},[P]);exports.Wistia=L;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { g as m } from "./_commonjsHelpers-BkfeUUK-.js";
|
|
2
2
|
import g from "react";
|
|
3
|
-
import { u as v, p as w } from "./SearchSection-
|
|
3
|
+
import { u as v, p as w } from "./SearchSection-DAaMecR4.js";
|
|
4
4
|
function O(t, e) {
|
|
5
5
|
for (var a = 0; a < e.length; a++) {
|
|
6
6
|
const s = e[a];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const I=require("./_commonjsHelpers-DwTZ_eVU.cjs"),L=require("react"),v=require("./SearchSection-
|
|
1
|
+
"use strict";const I=require("./_commonjsHelpers-DwTZ_eVU.cjs"),L=require("react"),v=require("./SearchSection-B94YN_6P.cjs");function M(a,e){for(var t=0;t<e.length;t++){const o=e[t];if(typeof o!="string"&&!Array.isArray(o)){for(const r in o)if(r!=="default"&&!(r in a)){const n=Object.getOwnPropertyDescriptor(o,r);n&&Object.defineProperty(a,r,n.get?n:{enumerable:!0,get:()=>o[r]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}var Y=Object.create,u=Object.defineProperty,j=Object.getOwnPropertyDescriptor,k=Object.getOwnPropertyNames,N=Object.getPrototypeOf,V=Object.prototype.hasOwnProperty,B=(a,e,t)=>e in a?u(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,H=(a,e)=>{for(var t in e)u(a,t,{get:e[t],enumerable:!0})},S=(a,e,t,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of k(e))!V.call(a,r)&&r!==t&&u(a,r,{get:()=>e[r],enumerable:!(o=j(e,r))||o.enumerable});return a},K=(a,e,t)=>(t=a!=null?Y(N(a)):{},S(!a||!a.__esModule?u(t,"default",{value:a,enumerable:!0}):t,a)),F=a=>S(u({},"__esModule",{value:!0}),a),s=(a,e,t)=>(B(a,typeof e!="symbol"?e+"":e,t),t),w={};H(w,{default:()=>O});var D=F(w),b=K(L),c=v.utils,E=v.patterns;const x="https://www.youtube.com/iframe_api",T="YT",G="onYouTubeIframeAPIReady",f=/[?&](?:list|channel)=([a-zA-Z0-9_-]+)/,m=/user\/([a-zA-Z0-9_-]+)\/?/,q=/youtube-nocookie\.com/,z="https://www.youtube-nocookie.com";class O extends b.Component{constructor(){super(...arguments),s(this,"callPlayer",c.callPlayer),s(this,"parsePlaylist",e=>{if(e instanceof Array)return{listType:"playlist",playlist:e.map(this.getID).join(",")};if(f.test(e)){const[,t]=e.match(f);return{listType:"playlist",list:t.replace(/^UC/,"UU")}}if(m.test(e)){const[,t]=e.match(m);return{listType:"user_uploads",list:t}}return{}}),s(this,"onStateChange",e=>{const{data:t}=e,{onPlay:o,onPause:r,onBuffer:n,onBufferEnd:P,onEnded:_,onReady:g,loop:y,config:{playerVars:l,onUnstarted:h}}=this.props,{UNSTARTED:d,PLAYING:p,PAUSED:i,BUFFERING:A,ENDED:C,CUED:R}=window[T].PlayerState;if(t===d&&h(),t===p&&(o(),P()),t===i&&r(),t===A&&n(),t===C){const U=!!this.callPlayer("getPlaylist");y&&!U&&(l.start?this.seekTo(l.start):this.play()),_()}t===R&&g()}),s(this,"mute",()=>{this.callPlayer("mute")}),s(this,"unmute",()=>{this.callPlayer("unMute")}),s(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}getID(e){return!e||e instanceof Array||f.test(e)?null:e.match(E.MATCH_URL_YOUTUBE)[1]}load(e,t){const{playing:o,muted:r,playsinline:n,controls:P,loop:_,config:g,onError:y}=this.props,{playerVars:l,embedOptions:h}=g,d=this.getID(e);if(t){if(f.test(e)||m.test(e)||e instanceof Array){this.player.loadPlaylist(this.parsePlaylist(e));return}this.player.cueVideoById({videoId:d,startSeconds:(0,c.parseStartTime)(e)||l.start,endSeconds:(0,c.parseEndTime)(e)||l.end});return}(0,c.getSDK)(x,T,G,p=>p.loaded).then(p=>{this.container&&(this.player=new p.Player(this.container,{width:"100%",height:"100%",videoId:d,playerVars:{autoplay:o?1:0,mute:r?1:0,controls:P?1:0,start:(0,c.parseStartTime)(e),end:(0,c.parseEndTime)(e),origin:window.location.origin,playsinline:n?1:0,...this.parsePlaylist(e),...l},events:{onReady:()=>{_&&this.player.setLoop(!0),this.props.onReady()},onPlaybackRateChange:i=>this.props.onPlaybackRateChange(i.data),onPlaybackQualityChange:i=>this.props.onPlaybackQualityChange(i),onStateChange:this.onStateChange,onError:i=>y(i.data)},host:q.test(e)?z:void 0,...h}))},y),h.events&&console.warn("Using `embedOptions.events` will likely break things. Use ReactPlayer’s callback props instead, eg onReady, onPlay, onPause")}play(){this.callPlayer("playVideo")}pause(){this.callPlayer("pauseVideo")}stop(){document.body.contains(this.callPlayer("getIframe"))&&this.callPlayer("stopVideo")}seekTo(e,t=!1){this.callPlayer("seekTo",e),!t&&!this.props.playing&&this.pause()}setVolume(e){this.callPlayer("setVolume",e*100)}setPlaybackRate(e){this.callPlayer("setPlaybackRate",e)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentTime")}getSecondsLoaded(){return this.callPlayer("getVideoLoadedFraction")*this.getDuration()}render(){const{display:e}=this.props,t={width:"100%",height:"100%",display:e};return b.default.createElement("div",{style:t},b.default.createElement("div",{ref:this.ref}))}}s(O,"displayName","YouTube");s(O,"canPlay",E.canPlay.youtube);const Q=I.getDefaultExportFromCjs(D),Z=M({__proto__:null,default:Q},[D]);exports.YouTube=Z;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { g as U } from "./_commonjsHelpers-BkfeUUK-.js";
|
|
2
2
|
import I from "react";
|
|
3
|
-
import { u as L, p as M } from "./SearchSection-
|
|
3
|
+
import { u as L, p as M } from "./SearchSection-DAaMecR4.js";
|
|
4
4
|
function Y(a, e) {
|
|
5
5
|
for (var t = 0; t < e.length; t++) {
|
|
6
6
|
const o = e[t];
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { useState as f, useMemo as m, useEffect as a, forwardRef as u, useRef as d } from "react";
|
|
3
|
+
import { s as p } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
+
import { u as I } from "./useUpdateEffect-CuYWz7EA.js";
|
|
5
|
+
const w = (s) => {
|
|
6
|
+
const [r, t] = f(!1), e = m(
|
|
7
|
+
() => new IntersectionObserver(
|
|
8
|
+
([n]) => t(n.isIntersecting)
|
|
9
|
+
),
|
|
10
|
+
[]
|
|
11
|
+
);
|
|
12
|
+
return a(() => (e.observe(s.current), () => {
|
|
13
|
+
e.disconnect();
|
|
14
|
+
}), [s, e]), r;
|
|
15
|
+
}, h = p.div`
|
|
16
|
+
min-height: 1px;
|
|
17
|
+
${(s) => s.isHorizontal === !0 ? "min-width: 1px; width: 1px;" : "width: 100%;"}
|
|
18
|
+
`, E = u((s, r) => {
|
|
19
|
+
const {
|
|
20
|
+
onIsVisible: t = () => {
|
|
21
|
+
},
|
|
22
|
+
onIsNotVisible: e,
|
|
23
|
+
isHorizontal: n = !1,
|
|
24
|
+
className: c = ""
|
|
25
|
+
} = s, i = d(null), o = w(i);
|
|
26
|
+
return I(() => {
|
|
27
|
+
o ? t() : e == null || e();
|
|
28
|
+
}, [o]), /* @__PURE__ */ l(
|
|
29
|
+
h,
|
|
30
|
+
{
|
|
31
|
+
ref: i,
|
|
32
|
+
className: `scroller-element ${c}`,
|
|
33
|
+
isHorizontal: n
|
|
34
|
+
}
|
|
35
|
+
);
|
|
36
|
+
});
|
|
37
|
+
export {
|
|
38
|
+
E as I
|
|
39
|
+
};
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"use strict";const l=require("react/jsx-runtime"),o=require("react"),D=require("./FlexBox.cjs"),T=require("./IconButton.cjs"),H=require("./ThemeProvider.cjs"),K=require("./emotion-styled.browser.esm-BtEseadx.cjs"),A=require("./consts-goSZX3xP.cjs"),M=require("./useDetectMobile-zkbzoOGV.cjs"),O=require("./index-CX2A-q39.cjs"),W=require("./Button.cjs"),V=require("./Icon.cjs"),z=require("./utils-RnrgDDZP.cjs"),F=K.styled.div`
|
|
2
|
+
position: relative;
|
|
3
|
+
padding: ${e=>e.padding};
|
|
4
|
+
|
|
5
|
+
& button {
|
|
6
|
+
white-space: nowrap;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
& .badge-button {
|
|
10
|
+
${e=>e.showTimesBtn===!0&&"padding-left: 0.5rem; padding-right: 0.5rem;"}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
& .gradient {
|
|
14
|
+
position: absolute;
|
|
15
|
+
top: 50%;
|
|
16
|
+
transform: translate(0, -50%);
|
|
17
|
+
z-index: 4;
|
|
18
|
+
transition: ${"0.3s"};
|
|
19
|
+
right: ${e=>e.noArrows!==!0?"6rem":"0"};
|
|
20
|
+
width: 2rem;
|
|
21
|
+
background: #fff;
|
|
22
|
+
height: 100%;
|
|
23
|
+
-webkit-mask-image: linear-gradient(to left, black 10%, transparent 50%);
|
|
24
|
+
mask-image: linear-gradient(to left, black 10%, transparent 50%);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
& .scrollable-container {
|
|
28
|
+
max-width: -webkit-fill-available;
|
|
29
|
+
max-width: -moz-available; /* WebKit-based browsers will ignore this. */
|
|
30
|
+
max-width: fill-available;
|
|
31
|
+
|
|
32
|
+
${e=>e.rightAlignArrows===!0&&e.noArrows!==!0&&"margin-right: 6rem"};
|
|
33
|
+
scroll-behavior: smooth;
|
|
34
|
+
overflow: hidden;
|
|
35
|
+
-webkit-overflow-scrolling: touch;
|
|
36
|
+
::-webkit-scrollbar {
|
|
37
|
+
-webkit-appearance: none;
|
|
38
|
+
}
|
|
39
|
+
-ms-overflow-style: none;
|
|
40
|
+
/* Internet Explorer 10+ */
|
|
41
|
+
scrollbar-width: none;
|
|
42
|
+
/* Firefox */
|
|
43
|
+
|
|
44
|
+
&::-webkit-scrollbar {
|
|
45
|
+
display: none;
|
|
46
|
+
/* Safari and Chrome */
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
@media (max-width: ${A.MOBILE_SIZE_PX+"px"}) {
|
|
50
|
+
margin-right: 0;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
& .scroll-arrow-right,
|
|
54
|
+
& .scroll-arrow-left {
|
|
55
|
+
position: absolute;
|
|
56
|
+
top: 50%;
|
|
57
|
+
transform: translate(0, -50%);
|
|
58
|
+
display: flex;
|
|
59
|
+
justify-content: center;
|
|
60
|
+
align-items: center;
|
|
61
|
+
cursor: pointer;
|
|
62
|
+
|
|
63
|
+
visibility: ${e=>e.arrowsVisibleOnHover===!1&&e.hasOverflow?"visible":"hidden"};
|
|
64
|
+
z-index: 4;
|
|
65
|
+
transition: ${"0.3s"};
|
|
66
|
+
}
|
|
67
|
+
& .scroll-arrow-right {
|
|
68
|
+
${e=>e.rightAlignArrows===!0?"right: 0":"right: 0.7rem"};
|
|
69
|
+
}
|
|
70
|
+
& .scroll-arrow-left {
|
|
71
|
+
${e=>e.rightAlignArrows===!0?"right: 2.625rem":"left: 0.7rem"};
|
|
72
|
+
}
|
|
73
|
+
& .scrollable-container:hover > .scroll-arrow-left,
|
|
74
|
+
& .scrollable-container:hover > .scroll-arrow-right {
|
|
75
|
+
visibility: ${e=>e.hasOverflow?"visible":"hidden"};
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
@media (max-width: ${A.MOBILE_SIZE_PX+"px"}) {
|
|
79
|
+
& .scrollable-container {
|
|
80
|
+
overflow: auto;
|
|
81
|
+
}
|
|
82
|
+
& .scroll-arrow-left,
|
|
83
|
+
& .scroll-arrow-right {
|
|
84
|
+
display: none;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
& .gradient {
|
|
88
|
+
right: 0;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
& .scrollable-container button:nth-of-type(3) {
|
|
92
|
+
${e=>e.noMargin!==!0&&"margin-left: 1rem"};
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
`,G=o.forwardRef(({columnGap:e="2rem",rowGap:w="1.25rem",scrollBySize:d=300,wrapForMobile:x=!1,wrap:i=!1,children:u,methodsRef:f,arrowsVisibleOnHover:v=!0,rightAlignArrows:p=!1,padding:b="0",showTimesBtn:h,noArrows:a,noGradient:y=!1,hideDisabledArrows:c=!1,noMargin:g=!1,...S},k)=>{const j=M.useDetectMobile(),{theme:r}=H.useTheme(),[s,N]=o.useState(!1),[m,I]=o.useState(!1),[C,q]=o.useState(!0),t=o.useRef(),$=()=>{var n;(n=t.current)==null||n.scrollBy(d,0)},E=()=>{var n;(n=t.current)==null||n.scrollBy(-d,0)},[B,L]=o.useState(!1);o.useEffect(()=>{var n,R;L(((n=t==null?void 0:t.current)==null?void 0:n.scrollWidth)>((R=t==null?void 0:t.current)==null?void 0:R.clientWidth))},[u]),o.useImperativeHandle(f,()=>({scrollToEnd(){_()},scrollLeft(){E()},scrollRight(){$()}}));const _=()=>{t.current.scrollLeft=t.current.scrollWidth};return l.jsx(F,{ref:k,arrowsVisibleOnHover:v,hasOverflow:B,noArrows:a,padding:b,rightAlignArrows:p,showTimesBtn:h,theme:r,noMargin:g,...S,children:l.jsxs(D,{ref:t,className:"scrollable-container",columnGap:e,rowGap:w,wrap:i||x&&j?"Wrap":"NoWrap",children:[a!==!0&&l.jsxs(l.Fragment,{children:[!(c===!0&&m===!0)&&l.jsx(T,{borderRadius:"curved",btnType:"tinted",className:"scroll-arrow-left",color:"neutral",disabled:m,icon:"angle-left",onClick:E}),!(c===!0&&s===!0)&&l.jsx(T,{borderRadius:"curved",btnType:"tinted",className:"scroll-arrow-right",color:"neutral",disabled:s,icon:"angle-right",onClick:$})]}),l.jsx(O.InfiniteScrollEndElement,{isHorizontal:!0,onIsNotVisible:()=>{m===!0&&I(!1)},onIsVisible:()=>{m===!1&&I(!0)}}),u,l.jsx(O.InfiniteScrollEndElement,{className:"right-scroller",isHorizontal:!0,onIsNotVisible:()=>{s===!0&&N(!1),q(!0)},onIsVisible:()=>{s===!1&&N(!0),q(!1)}}),C&&B&&y!==!0&&l.jsx("div",{className:"gradient"})]})})}),P=o.forwardRef((e,w)=>{const{allButton:d=!0,items:x=[],selectedIds:i=[],onSelect:u=()=>{},onRemove:f=()=>{},onSelectAll:v=()=>{},className:p,showTimesBtn:b=!1,labelKey:h="label",valueKey:a="value",codeKey:y="code",uniqueKey:c,typeKey:g,productsToolbarName:S="All",...k}=e,j=(r,s)=>{i!=null&&i.includes(s)?f(r,s):u(r,s)};return l.jsxs(G,{ref:w,arrowsVisibleOnHover:!1,className:p,columnGap:"0.75rem",padding:"0.25rem 0",rightAlignArrows:!0,showTimesBtn:b,...k,children:[d&&l.jsx(W,{borderRadius:"curved",btnType:i.length===0?"filled":"tinted",className:"badge-button",color:"neutral",onClick:v,children:S}),x.map((r,s)=>l.jsxs(W,{borderRadius:"curved",btnType:i.includes(r.uuid)?"filled":"tinted",className:"badge-button",color:"neutral",onClick:()=>j(r,r[a]),children:[z.isDefined(r==null?void 0:r.icon)&&l.jsxs(l.Fragment,{children:[l.jsx("i",{className:r==null?void 0:r.icon})," "]}),r[h],b===!0&&l.jsx(V,{className:"times-btn",icon:"times",sizeInUnits:"0.75rem",onClick:()=>f(r[a],r[h],r[y],c?r[c]:null,g?r[g]:null)})]},s))]})});exports.SelectBar=P;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use strict";const u=require("react/jsx-runtime"),s=require("react"),f=require("./emotion-styled.browser.esm-BtEseadx.cjs"),d=require("./useUpdateEffect-BtMgpgIV.cjs"),a=t=>{const[i,n]=s.useState(!1),e=s.useMemo(()=>new IntersectionObserver(([r])=>n(r.isIntersecting)),[]);return s.useEffect(()=>(e.observe(t.current),()=>{e.disconnect()}),[t,e]),i},m=f.styled.div`
|
|
2
|
+
min-height: 1px;
|
|
3
|
+
${t=>t.isHorizontal===!0?"min-width: 1px; width: 1px;":"width: 100%;"}
|
|
4
|
+
`,I=s.forwardRef((t,i)=>{const{onIsVisible:n=()=>{},onIsNotVisible:e,isHorizontal:r=!1,className:l=""}=t,c=s.useRef(null),o=a(c);return d.useUpdateEffect(()=>{o?n():e==null||e()},[o]),u.jsx(m,{ref:c,className:`scroller-element ${l}`,isHorizontal:r})});exports.InfiniteScrollEndElement=I;
|