@lanaco/lnc-react-ui 4.0.199 → 4.0.201
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/BannerSectionCarousel.cjs +4 -4
- package/dist/BannerSectionCarousel.js +51 -542
- package/dist/BlogCardsSponsoredSection.cjs +1 -1
- package/dist/BlogCardsSponsoredSection.js +1 -1
- 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/BlogListSection.cjs +1 -1
- package/dist/BlogListSection.js +1 -1
- package/dist/BlogsSectionDetailed.cjs +1 -1
- package/dist/BlogsSectionDetailed.js +1 -1
- package/dist/BlogsSectionSimple.cjs +1 -1
- package/dist/BlogsSectionSimple.js +1 -1
- package/dist/BlogsSectionWithFilters.cjs +1 -1
- package/dist/BlogsSectionWithFilters.js +2 -2
- 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 +2 -2
- 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/GiftCardsSection.cjs +1 -1
- package/dist/GiftCardsSection.js +1 -1
- 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/PartnerBrandsSection.cjs +62 -0
- package/dist/PartnerBrandsSection.js +154 -0
- package/dist/PartnerStatsSection.cjs +100 -0
- package/dist/PartnerStatsSection.js +124 -0
- 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/ProductsWithBannerSection.cjs +1 -1
- package/dist/ProductsWithBannerSection.js +1 -1
- 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 +38 -28
- package/dist/SalesCampaignsSection.js +297 -325
- 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 +2 -2
- package/dist/SimpleCategoriesSection.js +2 -2
- 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-BppfjY8h.js +497 -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-DeS-oqJB.cjs +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +25 -21
- package/dist/{style-CkcozOY6.cjs → style-B4kAj6YU.cjs} +38 -8
- package/dist/{style-Cmlod7oq.js → style-neMbLWE6.js} +42 -11
- package/dist/{tag-BtS5lWJ0.js → tag-Dm8CW4TM.js} +21 -27
- package/dist/{tag-CmeZsPQt.cjs → tag-UQjq2_Ba.cjs} +7 -7
- package/package.json +4 -2
- package/vite.config.js +8 -0
- 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/FileInput.js
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { s
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
const D = b.label`
|
|
1
|
+
import { jsxs as S, jsx as b } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as T, useState as g } from "react";
|
|
3
|
+
import { s } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
+
import { d as x, b as t, e as V, c as $, h as y } from "./utils-DtEfC-TX.js";
|
|
5
|
+
import { u as D } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
6
|
+
const L = s.label`
|
|
8
7
|
display: inline-flex;
|
|
9
8
|
box-sizing: border-box;
|
|
10
9
|
width: 100%;
|
|
11
10
|
min-height: ${(e) => x(e.theme, e.size)};
|
|
12
11
|
max-height: ${(e) => x(e.theme, e.size)};
|
|
13
|
-
background-color: ${(e) =>
|
|
12
|
+
background-color: ${(e) => t(
|
|
14
13
|
e.theme,
|
|
15
14
|
"Input",
|
|
16
15
|
e.color,
|
|
@@ -19,20 +18,20 @@ const D = b.label`
|
|
|
19
18
|
)};
|
|
20
19
|
border-radius: 8px;
|
|
21
20
|
${(e) => e.focused === !0 && e.readOnly !== !0 ? V(e.theme) : ""}
|
|
22
|
-
`,
|
|
21
|
+
`, P = s.input`
|
|
23
22
|
width: 0.1px;
|
|
24
23
|
height: 0.1px;
|
|
25
24
|
opacity: 0;
|
|
26
25
|
overflow: hidden;
|
|
27
26
|
position: absolute;
|
|
28
27
|
z-index: -1;
|
|
29
|
-
`, U =
|
|
28
|
+
`, U = s.div`
|
|
30
29
|
display: flex;
|
|
31
30
|
align-items: center;
|
|
32
31
|
white-space: nowrap;
|
|
33
32
|
padding: 0.625rem 0.75rem;
|
|
34
33
|
${(e) => $(e.theme, "Input", e.size, "enabled")}
|
|
35
|
-
color: ${(e) =>
|
|
34
|
+
color: ${(e) => t(
|
|
36
35
|
e.theme,
|
|
37
36
|
"Input",
|
|
38
37
|
e.focused === !0 ? "primary" : e.color,
|
|
@@ -40,7 +39,7 @@ const D = b.label`
|
|
|
40
39
|
"prefix"
|
|
41
40
|
)};
|
|
42
41
|
cursor: ${(e) => e.disabled === !0 ? "default" : "pointer"};
|
|
43
|
-
background-color: ${(e) =>
|
|
42
|
+
background-color: ${(e) => t(
|
|
44
43
|
e.theme,
|
|
45
44
|
"Input",
|
|
46
45
|
e.color,
|
|
@@ -48,7 +47,7 @@ const D = b.label`
|
|
|
48
47
|
"background"
|
|
49
48
|
)};
|
|
50
49
|
border: 1px solid
|
|
51
|
-
${(e) =>
|
|
50
|
+
${(e) => t(
|
|
52
51
|
e.theme,
|
|
53
52
|
"Input",
|
|
54
53
|
e.focused === !0 ? "primary" : e.color,
|
|
@@ -57,8 +56,8 @@ const D = b.label`
|
|
|
57
56
|
)};
|
|
58
57
|
border-radius: 8px 0 0 8px;
|
|
59
58
|
|
|
60
|
-
/* ${(e) => e.disabled === !0 ?
|
|
61
|
-
${(e) => e.disabled === !0 && `background-color: ${
|
|
59
|
+
/* ${(e) => e.disabled === !0 ? y(e.theme) : ""} */
|
|
60
|
+
${(e) => e.disabled === !0 && `background-color: ${t(
|
|
62
61
|
e.theme,
|
|
63
62
|
"Input",
|
|
64
63
|
e.color,
|
|
@@ -66,21 +65,21 @@ const D = b.label`
|
|
|
66
65
|
"background",
|
|
67
66
|
"backgroundOpacity"
|
|
68
67
|
)};
|
|
69
|
-
color: ${(
|
|
70
|
-
|
|
68
|
+
color: ${(r) => t(
|
|
69
|
+
r.theme,
|
|
71
70
|
"Input",
|
|
72
|
-
|
|
71
|
+
r.color,
|
|
73
72
|
"disabled",
|
|
74
73
|
"text"
|
|
75
74
|
)};`}
|
|
76
|
-
`, W =
|
|
75
|
+
`, W = s.input`
|
|
77
76
|
width: 100%;
|
|
78
77
|
appearance: none;
|
|
79
78
|
outline: none;
|
|
80
79
|
padding: 0.625rem 0.75rem;
|
|
81
80
|
${(e) => $(e.theme, "Input", e.size, "enabled")}
|
|
82
81
|
border: 1px solid
|
|
83
|
-
${(e) =>
|
|
82
|
+
${(e) => t(
|
|
84
83
|
e.theme,
|
|
85
84
|
"Input",
|
|
86
85
|
e.focused === !0 ? "primary" : e.color,
|
|
@@ -89,7 +88,7 @@ const D = b.label`
|
|
|
89
88
|
)};
|
|
90
89
|
border-radius: 0 8px 8px 0;
|
|
91
90
|
border-left: transparent;
|
|
92
|
-
color: ${(e) =>
|
|
91
|
+
color: ${(e) => t(
|
|
93
92
|
e.theme,
|
|
94
93
|
"Input",
|
|
95
94
|
e.focused === !0 ? "primary" : e.color,
|
|
@@ -97,14 +96,14 @@ const D = b.label`
|
|
|
97
96
|
"text"
|
|
98
97
|
)};
|
|
99
98
|
|
|
100
|
-
background-color: ${(e) =>
|
|
99
|
+
background-color: ${(e) => t(
|
|
101
100
|
e.theme,
|
|
102
101
|
"Input",
|
|
103
102
|
e.color,
|
|
104
103
|
"enabled",
|
|
105
104
|
"background"
|
|
106
105
|
)};
|
|
107
|
-
color: ${(e) =>
|
|
106
|
+
color: ${(e) => t(
|
|
108
107
|
e.theme,
|
|
109
108
|
"Input",
|
|
110
109
|
e.focused === !0 ? "primary" : e.color,
|
|
@@ -112,9 +111,9 @@ const D = b.label`
|
|
|
112
111
|
"text"
|
|
113
112
|
)};
|
|
114
113
|
|
|
115
|
-
/* ${(e) => e.disabled === !0 ?
|
|
114
|
+
/* ${(e) => e.disabled === !0 ? y(e.theme) : ""} */
|
|
116
115
|
|
|
117
|
-
${(e) => e.disabled === !0 && `background-color: ${
|
|
116
|
+
${(e) => e.disabled === !0 && `background-color: ${t(
|
|
118
117
|
e.theme,
|
|
119
118
|
"Input",
|
|
120
119
|
e.color,
|
|
@@ -122,76 +121,76 @@ const D = b.label`
|
|
|
122
121
|
"background",
|
|
123
122
|
"backgroundOpacity"
|
|
124
123
|
)};
|
|
125
|
-
color: ${(
|
|
126
|
-
|
|
124
|
+
color: ${(r) => t(
|
|
125
|
+
r.theme,
|
|
127
126
|
"Input",
|
|
128
|
-
|
|
127
|
+
r.color,
|
|
129
128
|
"disabled",
|
|
130
129
|
"text"
|
|
131
130
|
)};`}
|
|
132
|
-
`,
|
|
131
|
+
`, J = T((e, r) => {
|
|
133
132
|
const {
|
|
134
|
-
className:
|
|
133
|
+
className: I = "",
|
|
135
134
|
style: k = {},
|
|
136
135
|
onChange: d,
|
|
137
|
-
onFocus:
|
|
136
|
+
onFocus: i,
|
|
138
137
|
onBlur: u,
|
|
139
|
-
disabled:
|
|
140
|
-
readOnly:
|
|
138
|
+
disabled: n,
|
|
139
|
+
readOnly: m,
|
|
141
140
|
multiple: C = !1,
|
|
142
|
-
accept:
|
|
143
|
-
label:
|
|
144
|
-
color:
|
|
145
|
-
size:
|
|
146
|
-
...
|
|
147
|
-
} = e,
|
|
148
|
-
var c = { theme:
|
|
141
|
+
accept: z = "",
|
|
142
|
+
label: w = "Choose File",
|
|
143
|
+
color: O = "primary",
|
|
144
|
+
size: v = "small",
|
|
145
|
+
...F
|
|
146
|
+
} = e, p = D(), [o, N] = g([]), [h, f] = g(!1);
|
|
147
|
+
var c = { theme: p, size: v, color: O, disabled: n, focused: h };
|
|
149
148
|
const j = () => {
|
|
150
|
-
if (
|
|
151
|
-
var
|
|
152
|
-
for (const l in
|
|
153
|
-
|
|
154
|
-
return
|
|
149
|
+
if (o.length > 0) {
|
|
150
|
+
var a = "";
|
|
151
|
+
for (const l in o)
|
|
152
|
+
a += l == o.length - 1 ? `${o[l].name}` : `${o[l].name}, `;
|
|
153
|
+
return a;
|
|
155
154
|
}
|
|
156
155
|
return "";
|
|
157
156
|
};
|
|
158
|
-
return /* @__PURE__ */
|
|
159
|
-
|
|
157
|
+
return /* @__PURE__ */ S(
|
|
158
|
+
L,
|
|
160
159
|
{
|
|
161
160
|
...c,
|
|
162
|
-
className:
|
|
161
|
+
className: I,
|
|
163
162
|
style: k,
|
|
164
163
|
focused: h,
|
|
165
|
-
readOnly:
|
|
164
|
+
readOnly: m,
|
|
166
165
|
children: [
|
|
167
|
-
/* @__PURE__ */
|
|
168
|
-
|
|
166
|
+
/* @__PURE__ */ b(
|
|
167
|
+
P,
|
|
169
168
|
{
|
|
170
169
|
...c,
|
|
171
|
-
accept:
|
|
170
|
+
accept: z,
|
|
172
171
|
multiple: C,
|
|
173
|
-
ref:
|
|
174
|
-
onChange:
|
|
175
|
-
} : (
|
|
172
|
+
ref: r,
|
|
173
|
+
onChange: n || m ? () => {
|
|
174
|
+
} : (a) => {
|
|
176
175
|
var l = [];
|
|
177
|
-
if (
|
|
178
|
-
for (const
|
|
179
|
-
l.push(
|
|
176
|
+
if (a.target.files && a.target.files.length > 0)
|
|
177
|
+
for (const R of a.target.files)
|
|
178
|
+
l.push(R);
|
|
180
179
|
else l = [];
|
|
181
|
-
N(l), d && (d == null || d(
|
|
180
|
+
N(l), d && (d == null || d(a, l));
|
|
182
181
|
},
|
|
183
182
|
type: "file",
|
|
184
|
-
onFocus: (
|
|
185
|
-
|
|
183
|
+
onFocus: (a) => {
|
|
184
|
+
n || f(!0), i && !n && (i == null || i(a));
|
|
186
185
|
},
|
|
187
|
-
onBlur: (
|
|
188
|
-
|
|
186
|
+
onBlur: (a) => {
|
|
187
|
+
n || f(!1), u && !n && (u == null || u(a));
|
|
189
188
|
},
|
|
190
|
-
...
|
|
189
|
+
...F
|
|
191
190
|
}
|
|
192
191
|
),
|
|
193
|
-
/* @__PURE__ */
|
|
194
|
-
/* @__PURE__ */
|
|
192
|
+
/* @__PURE__ */ b(U, { ...c, children: w }),
|
|
193
|
+
/* @__PURE__ */ b(
|
|
195
194
|
W,
|
|
196
195
|
{
|
|
197
196
|
tabIndex: -1,
|
|
@@ -205,33 +204,6 @@ const D = b.label`
|
|
|
205
204
|
}
|
|
206
205
|
);
|
|
207
206
|
});
|
|
208
|
-
q.propTypes = {
|
|
209
|
-
id: t.any,
|
|
210
|
-
disabled: t.bool,
|
|
211
|
-
readOnly: t.bool,
|
|
212
|
-
multiple: t.bool,
|
|
213
|
-
accept: t.string,
|
|
214
|
-
label: t.oneOfType([t.string, t.element]),
|
|
215
|
-
tabIndex: t.number,
|
|
216
|
-
//-------------------------
|
|
217
|
-
onChange: t.func,
|
|
218
|
-
onFocus: t.func,
|
|
219
|
-
onBlur: t.func,
|
|
220
|
-
//-------------------------
|
|
221
|
-
className: t.string,
|
|
222
|
-
style: t.object,
|
|
223
|
-
size: t.oneOf(["small", "medium", "large"]),
|
|
224
|
-
color: t.oneOf([
|
|
225
|
-
"primary",
|
|
226
|
-
"secondary",
|
|
227
|
-
"success",
|
|
228
|
-
"danger",
|
|
229
|
-
"warning",
|
|
230
|
-
"information",
|
|
231
|
-
"neutral",
|
|
232
|
-
"gray"
|
|
233
|
-
])
|
|
234
|
-
};
|
|
235
207
|
export {
|
|
236
|
-
|
|
208
|
+
J as default
|
|
237
209
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { g as b } from "./_commonjsHelpers-BkfeUUK-.js";
|
|
2
2
|
import _ from "react";
|
|
3
|
-
import { u as O, p as A } from "./SearchSection-
|
|
3
|
+
import { u as O, p as A } from "./SearchSection-DAaMecR4.js";
|
|
4
4
|
function R(s, e) {
|
|
5
5
|
for (var t = 0; t < e.length; t++) {
|
|
6
6
|
const i = e[t];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const _=require("./_commonjsHelpers-DwTZ_eVU.cjs"),O=require("react"),E=require("./SearchSection-
|
|
1
|
+
"use strict";const _=require("./_commonjsHelpers-DwTZ_eVU.cjs"),O=require("react"),E=require("./SearchSection-B94YN_6P.cjs");function A(s,e){for(var t=0;t<e.length;t++){const i=e[t];if(typeof i!="string"&&!Array.isArray(i)){for(const n in i)if(n!=="default"&&!(n in s)){const l=Object.getOwnPropertyDescriptor(i,n);l&&Object.defineProperty(s,n,l.get?l:{enumerable:!0,get:()=>i[n]})}}}return Object.freeze(Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}))}var R=Object.create,u=Object.defineProperty,I=Object.getOwnPropertyDescriptor,D=Object.getOwnPropertyNames,w=Object.getPrototypeOf,M=Object.prototype.hasOwnProperty,k=(s,e,t)=>e in s?u(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,U=(s,e)=>{for(var t in e)u(s,t,{get:e[t],enumerable:!0})},m=(s,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of D(e))!M.call(s,n)&&n!==t&&u(s,n,{get:()=>e[n],enumerable:!(i=I(e,n))||i.enumerable});return s},N=(s,e,t)=>(t=s!=null?R(w(s)):{},m(!s||!s.__esModule?u(t,"default",{value:s,enumerable:!0}):t,s)),j=s=>m(u({},"__esModule",{value:!0}),s),r=(s,e,t)=>(k(s,typeof e!="symbol"?e+"":e,t),t),g={};U(g,{default:()=>P});var S=j(g),p=N(O),a=E.utils,d=E.patterns;const y=typeof navigator<"u",H=y&&navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,v=y&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||H)&&!window.MSStream,F=y&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&!window.MSStream,V="https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js",T="Hls",C="https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js",B="dashjs",x="https://cdn.jsdelivr.net/npm/flv.js@VERSION/dist/flv.min.js",K="flvjs",q=/www\.dropbox\.com\/.+/,f=/https:\/\/watch\.cloudflarestream\.com\/([a-z0-9]+)/,G="https://videodelivery.net/{id}/manifest/video.m3u8";class P extends p.Component{constructor(){super(...arguments),r(this,"onReady",(...e)=>this.props.onReady(...e)),r(this,"onPlay",(...e)=>this.props.onPlay(...e)),r(this,"onBuffer",(...e)=>this.props.onBuffer(...e)),r(this,"onBufferEnd",(...e)=>this.props.onBufferEnd(...e)),r(this,"onPause",(...e)=>this.props.onPause(...e)),r(this,"onEnded",(...e)=>this.props.onEnded(...e)),r(this,"onError",(...e)=>this.props.onError(...e)),r(this,"onPlayBackRateChange",e=>this.props.onPlaybackRateChange(e.target.playbackRate)),r(this,"onEnablePIP",(...e)=>this.props.onEnablePIP(...e)),r(this,"onDisablePIP",e=>{const{onDisablePIP:t,playing:i}=this.props;t(e),i&&this.play()}),r(this,"onPresentationModeChange",e=>{if(this.player&&(0,a.supportsWebKitPresentationMode)(this.player)){const{webkitPresentationMode:t}=this.player;t==="picture-in-picture"?this.onEnablePIP(e):t==="inline"&&this.onDisablePIP(e)}}),r(this,"onSeek",e=>{this.props.onSeek(e.target.currentTime)}),r(this,"mute",()=>{this.player.muted=!0}),r(this,"unmute",()=>{this.player.muted=!1}),r(this,"renderSourceElement",(e,t)=>typeof e=="string"?p.default.createElement("source",{key:t,src:e}):p.default.createElement("source",{key:t,...e})),r(this,"renderTrack",(e,t)=>p.default.createElement("track",{key:t,...e})),r(this,"ref",e=>{this.player&&(this.prevPlayer=this.player),this.player=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this),this.addListeners(this.player);const e=this.getSource(this.props.url);e&&(this.player.src=e),(v||this.props.config.forceDisableHls)&&this.player.load()}componentDidUpdate(e){this.shouldUseAudio(this.props)!==this.shouldUseAudio(e)&&(this.removeListeners(this.prevPlayer,e.url),this.addListeners(this.player)),this.props.url!==e.url&&!(0,a.isMediaStream)(this.props.url)&&!(this.props.url instanceof Array)&&(this.player.srcObject=null)}componentWillUnmount(){this.player.removeAttribute("src"),this.removeListeners(this.player),this.hls&&this.hls.destroy()}addListeners(e){const{url:t,playsinline:i}=this.props;e.addEventListener("play",this.onPlay),e.addEventListener("waiting",this.onBuffer),e.addEventListener("playing",this.onBufferEnd),e.addEventListener("pause",this.onPause),e.addEventListener("seeked",this.onSeek),e.addEventListener("ended",this.onEnded),e.addEventListener("error",this.onError),e.addEventListener("ratechange",this.onPlayBackRateChange),e.addEventListener("enterpictureinpicture",this.onEnablePIP),e.addEventListener("leavepictureinpicture",this.onDisablePIP),e.addEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(t)||e.addEventListener("canplay",this.onReady),i&&(e.setAttribute("playsinline",""),e.setAttribute("webkit-playsinline",""),e.setAttribute("x5-playsinline",""))}removeListeners(e,t){e.removeEventListener("canplay",this.onReady),e.removeEventListener("play",this.onPlay),e.removeEventListener("waiting",this.onBuffer),e.removeEventListener("playing",this.onBufferEnd),e.removeEventListener("pause",this.onPause),e.removeEventListener("seeked",this.onSeek),e.removeEventListener("ended",this.onEnded),e.removeEventListener("error",this.onError),e.removeEventListener("ratechange",this.onPlayBackRateChange),e.removeEventListener("enterpictureinpicture",this.onEnablePIP),e.removeEventListener("leavepictureinpicture",this.onDisablePIP),e.removeEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(t)||e.removeEventListener("canplay",this.onReady)}shouldUseAudio(e){return e.config.forceVideo||e.config.attributes.poster?!1:d.AUDIO_EXTENSIONS.test(e.url)||e.config.forceAudio}shouldUseHLS(e){return F&&this.props.config.forceSafariHLS||this.props.config.forceHLS?!0:v||this.props.config.forceDisableHls?!1:d.HLS_EXTENSIONS.test(e)||f.test(e)}shouldUseDASH(e){return d.DASH_EXTENSIONS.test(e)||this.props.config.forceDASH}shouldUseFLV(e){return d.FLV_EXTENSIONS.test(e)||this.props.config.forceFLV}load(e){const{hlsVersion:t,hlsOptions:i,dashVersion:n,flvVersion:l}=this.props.config;if(this.hls&&this.hls.destroy(),this.dash&&this.dash.reset(),this.shouldUseHLS(e)&&(0,a.getSDK)(V.replace("VERSION",t),T).then(o=>{if(this.hls=new o(i),this.hls.on(o.Events.MANIFEST_PARSED,()=>{this.props.onReady()}),this.hls.on(o.Events.ERROR,(h,c)=>{this.props.onError(h,c,this.hls,o)}),f.test(e)){const h=e.match(f)[1];this.hls.loadSource(G.replace("{id}",h))}else this.hls.loadSource(e);this.hls.attachMedia(this.player),this.props.onLoaded()}),this.shouldUseDASH(e)&&(0,a.getSDK)(C.replace("VERSION",n),B).then(o=>{this.dash=o.MediaPlayer().create(),this.dash.initialize(this.player,e,this.props.playing),this.dash.on("error",this.props.onError),parseInt(n)<3?this.dash.getDebug().setLogToBrowserConsole(!1):this.dash.updateSettings({debug:{logLevel:o.Debug.LOG_LEVEL_NONE}}),this.props.onLoaded()}),this.shouldUseFLV(e)&&(0,a.getSDK)(x.replace("VERSION",l),K).then(o=>{this.flv=o.createPlayer({type:"flv",url:e}),this.flv.attachMediaElement(this.player),this.flv.on(o.Events.ERROR,(h,c)=>{this.props.onError(h,c,this.flv,o)}),this.flv.load(),this.props.onLoaded()}),e instanceof Array)this.player.load();else if((0,a.isMediaStream)(e))try{this.player.srcObject=e}catch{this.player.src=window.URL.createObjectURL(e)}}play(){const e=this.player.play();e&&e.catch(this.props.onError)}pause(){this.player.pause()}stop(){this.player.removeAttribute("src"),this.dash&&this.dash.reset()}seekTo(e,t=!0){this.player.currentTime=e,t||this.pause()}setVolume(e){this.player.volume=e}enablePIP(){this.player.requestPictureInPicture&&document.pictureInPictureElement!==this.player?this.player.requestPictureInPicture():(0,a.supportsWebKitPresentationMode)(this.player)&&this.player.webkitPresentationMode!=="picture-in-picture"&&this.player.webkitSetPresentationMode("picture-in-picture")}disablePIP(){document.exitPictureInPicture&&document.pictureInPictureElement===this.player?document.exitPictureInPicture():(0,a.supportsWebKitPresentationMode)(this.player)&&this.player.webkitPresentationMode!=="inline"&&this.player.webkitSetPresentationMode("inline")}setPlaybackRate(e){try{this.player.playbackRate=e}catch(t){this.props.onError(t)}}getDuration(){if(!this.player)return null;const{duration:e,seekable:t}=this.player;return e===1/0&&t.length>0?t.end(t.length-1):e}getCurrentTime(){return this.player?this.player.currentTime:null}getSecondsLoaded(){if(!this.player)return null;const{buffered:e}=this.player;if(e.length===0)return 0;const t=e.end(e.length-1),i=this.getDuration();return t>i?i:t}getSource(e){const t=this.shouldUseHLS(e),i=this.shouldUseDASH(e),n=this.shouldUseFLV(e);if(!(e instanceof Array||(0,a.isMediaStream)(e)||t||i||n))return q.test(e)?e.replace("www.dropbox.com","dl.dropboxusercontent.com"):e}render(){const{url:e,playing:t,loop:i,controls:n,muted:l,config:o,width:h,height:c}=this.props,L=this.shouldUseAudio(this.props)?"audio":"video",b={width:h==="auto"?h:"100%",height:c==="auto"?c:"100%"};return p.default.createElement(L,{ref:this.ref,src:this.getSource(e),style:b,preload:"auto",autoPlay:t||void 0,controls:n,muted:l,loop:i,...o.attributes},e instanceof Array&&e.map(this.renderSourceElement),o.tracks.map(this.renderTrack))}}r(P,"displayName","FilePlayer");r(P,"canPlay",d.canPlay.file);const X=_.getDefaultExportFromCjs(S),W=A({__proto__:null,default:X},[S]);exports.FilePlayer=W;
|
package/dist/FlexBox.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const p=require("react/jsx-runtime"),u=require("react"),w=require("./emotion-styled.browser.esm-BtEseadx.cjs"),d={Row:"row",RowReverse:"row-reverse",Column:"column",ColumnReverse:"column-reverse"},x={NoWrap:"nowrap",Wrap:"wrap",WrapReverse:"wrap-reverse"},m={Start:"flex-start",Center:"center",End:"flex-end",SpaceAround:"space-around",SpaceBetween:"space-between",SpaceEvenly:"space-evenly"},f={Start:"flex-start",Center:"center",Stretch:"stretch",End:"flex-end",Baseline:"baseline"},y=w.styled.div`
|
|
2
2
|
display: flex;
|
|
3
|
-
flex-direction: ${e=>
|
|
4
|
-
flex-wrap: ${e=>
|
|
5
|
-
justify-content: ${e=>
|
|
6
|
-
align-items: ${e=>
|
|
3
|
+
flex-direction: ${e=>d[e.direction]};
|
|
4
|
+
flex-wrap: ${e=>x[e.wrap]};
|
|
5
|
+
justify-content: ${e=>m[e.justifyContent]};
|
|
6
|
+
align-items: ${e=>f[e.alignItems]};
|
|
7
7
|
column-gap: ${e=>e.columnGap?e.columnGap:e.gap};
|
|
8
8
|
row-gap: ${e=>e.rowGap?e.rowGap:e.gap};
|
|
9
|
-
`,
|
|
9
|
+
`,S=u.forwardRef((e,r)=>{const{className:t="",children:n,direction:a="Row",wrap:o="NoWrap",justifyContent:s="Start",alignItems:c="Stretch",gap:l="0",...i}=e;return p.jsx(y,{className:"lnc-flexbox-container "+(t||""),ref:r,wrap:o,gap:l,alignItems:c,direction:a,justifyContent:s,...i,children:n})});module.exports=S;
|
package/dist/FlexBox.js
CHANGED
|
@@ -1,97 +1,62 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { s as
|
|
4
|
-
|
|
5
|
-
const d = {
|
|
1
|
+
import { jsx as p } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as f } from "react";
|
|
3
|
+
import { s as m } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
+
const w = {
|
|
6
5
|
Row: "row",
|
|
7
6
|
RowReverse: "row-reverse",
|
|
8
7
|
Column: "column",
|
|
9
8
|
ColumnReverse: "column-reverse"
|
|
10
|
-
},
|
|
9
|
+
}, d = {
|
|
11
10
|
NoWrap: "nowrap",
|
|
12
11
|
Wrap: "wrap",
|
|
13
12
|
WrapReverse: "wrap-reverse"
|
|
14
|
-
},
|
|
13
|
+
}, u = {
|
|
15
14
|
Start: "flex-start",
|
|
16
15
|
Center: "center",
|
|
17
16
|
End: "flex-end",
|
|
18
17
|
SpaceAround: "space-around",
|
|
19
18
|
SpaceBetween: "space-between",
|
|
20
19
|
SpaceEvenly: "space-evenly"
|
|
21
|
-
},
|
|
20
|
+
}, x = {
|
|
22
21
|
Start: "flex-start",
|
|
23
22
|
Center: "center",
|
|
24
23
|
Stretch: "stretch",
|
|
25
24
|
End: "flex-end",
|
|
26
25
|
Baseline: "baseline"
|
|
27
|
-
}, g =
|
|
26
|
+
}, g = m.div`
|
|
28
27
|
display: flex;
|
|
29
|
-
flex-direction: ${(e) =>
|
|
30
|
-
flex-wrap: ${(e) =>
|
|
31
|
-
justify-content: ${(e) =>
|
|
32
|
-
align-items: ${(e) =>
|
|
28
|
+
flex-direction: ${(e) => w[e.direction]};
|
|
29
|
+
flex-wrap: ${(e) => d[e.wrap]};
|
|
30
|
+
justify-content: ${(e) => u[e.justifyContent]};
|
|
31
|
+
align-items: ${(e) => x[e.alignItems]};
|
|
33
32
|
column-gap: ${(e) => e.columnGap ? e.columnGap : e.gap};
|
|
34
33
|
row-gap: ${(e) => e.rowGap ? e.rowGap : e.gap};
|
|
35
|
-
`,
|
|
34
|
+
`, R = f((e, r) => {
|
|
36
35
|
const {
|
|
37
36
|
className: t = "",
|
|
38
|
-
children:
|
|
39
|
-
direction:
|
|
40
|
-
wrap:
|
|
41
|
-
justifyContent:
|
|
42
|
-
alignItems:
|
|
43
|
-
gap:
|
|
37
|
+
children: n,
|
|
38
|
+
direction: a = "Row",
|
|
39
|
+
wrap: o = "NoWrap",
|
|
40
|
+
justifyContent: s = "Start",
|
|
41
|
+
alignItems: c = "Stretch",
|
|
42
|
+
gap: l = "0",
|
|
44
43
|
...i
|
|
45
44
|
} = e;
|
|
46
|
-
return /* @__PURE__ */
|
|
45
|
+
return /* @__PURE__ */ p(
|
|
47
46
|
g,
|
|
48
47
|
{
|
|
49
48
|
className: "lnc-flexbox-container " + (t || ""),
|
|
50
|
-
ref:
|
|
51
|
-
wrap:
|
|
52
|
-
gap:
|
|
53
|
-
alignItems:
|
|
54
|
-
direction:
|
|
55
|
-
justifyContent:
|
|
49
|
+
ref: r,
|
|
50
|
+
wrap: o,
|
|
51
|
+
gap: l,
|
|
52
|
+
alignItems: c,
|
|
53
|
+
direction: a,
|
|
54
|
+
justifyContent: s,
|
|
56
55
|
...i,
|
|
57
|
-
children:
|
|
56
|
+
children: n
|
|
58
57
|
}
|
|
59
58
|
);
|
|
60
59
|
});
|
|
61
|
-
v.propTypes = {
|
|
62
|
-
rowGap: r.string,
|
|
63
|
-
columnGap: r.string,
|
|
64
|
-
gap: r.string,
|
|
65
|
-
/**
|
|
66
|
-
* Controls the direction of items in FlexBox.
|
|
67
|
-
*/
|
|
68
|
-
direction: r.oneOf(["Row", "RowReverse", "Column", "ColumnReverse"]),
|
|
69
|
-
/**
|
|
70
|
-
* Determines whether the FlexBox should wrap, when there is not enough space to display all items in one line.
|
|
71
|
-
*/
|
|
72
|
-
wrap: r.oneOf(["NoWrap", "Wrap", "WrapReverse"]),
|
|
73
|
-
/**
|
|
74
|
-
* Controls how the space is distributed between items along the main-axis.
|
|
75
|
-
*/
|
|
76
|
-
justifyContent: r.oneOf([
|
|
77
|
-
"Start",
|
|
78
|
-
"Center",
|
|
79
|
-
"End",
|
|
80
|
-
"SpaceAround",
|
|
81
|
-
"SpaceBetween",
|
|
82
|
-
"SpaceEvenly"
|
|
83
|
-
]),
|
|
84
|
-
/**
|
|
85
|
-
* Controls how the space is distributed between items along the cross-axis.
|
|
86
|
-
*/
|
|
87
|
-
alignItems: r.oneOf([
|
|
88
|
-
"Start",
|
|
89
|
-
"Center",
|
|
90
|
-
"Stretch",
|
|
91
|
-
"End",
|
|
92
|
-
"Baseline"
|
|
93
|
-
])
|
|
94
|
-
};
|
|
95
60
|
export {
|
|
96
|
-
|
|
61
|
+
R as default
|
|
97
62
|
};
|
package/dist/FlexGrid.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const d=require("react/jsx-runtime"),e=require("react"),x=require("./FlexBox.cjs"),f=require("./FlexGridItem.cjs"),g=e.forwardRef((t,n)=>{const{columns:i=12,spacing:s,rowSpacing:c,columnSpacing:o,justifyContent:l="Start",alignItems:u="Stretch",children:a,rest:m}=t,p=e.Children.map(a,r=>{if(!(!e.isValidElement(r)||r.type!=f))return e.cloneElement(r,{columns:i,spacing:s,rowSpacing:c,columnSpacing:o})});return d.jsx(x,{ref:n,wrap:"Wrap",justifyContent:l,alignItems:u,...m,children:p})});module.exports=g;
|
package/dist/FlexGrid.js
CHANGED
|
@@ -1,78 +1,38 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
const x = S((r, t) => {
|
|
1
|
+
import { jsx as f } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as d, Children as u, isValidElement as x, cloneElement as g } from "react";
|
|
3
|
+
import S from "./FlexBox.js";
|
|
4
|
+
import h from "./FlexGridItem.js";
|
|
5
|
+
const y = d((e, t) => {
|
|
7
6
|
const {
|
|
8
|
-
columns:
|
|
9
|
-
spacing:
|
|
10
|
-
rowSpacing:
|
|
11
|
-
columnSpacing:
|
|
12
|
-
justifyContent:
|
|
13
|
-
alignItems:
|
|
14
|
-
children:
|
|
15
|
-
rest:
|
|
16
|
-
} =
|
|
17
|
-
if (!(!
|
|
18
|
-
return g(
|
|
19
|
-
columns:
|
|
20
|
-
spacing:
|
|
21
|
-
rowSpacing:
|
|
22
|
-
columnSpacing:
|
|
7
|
+
columns: n = 12,
|
|
8
|
+
spacing: o,
|
|
9
|
+
rowSpacing: i,
|
|
10
|
+
columnSpacing: m,
|
|
11
|
+
justifyContent: l = "Start",
|
|
12
|
+
alignItems: a = "Stretch",
|
|
13
|
+
children: p,
|
|
14
|
+
rest: c
|
|
15
|
+
} = e, s = u.map(p, (r) => {
|
|
16
|
+
if (!(!x(r) || r.type != h))
|
|
17
|
+
return g(r, {
|
|
18
|
+
columns: n,
|
|
19
|
+
spacing: o,
|
|
20
|
+
rowSpacing: i,
|
|
21
|
+
columnSpacing: m
|
|
23
22
|
});
|
|
24
23
|
});
|
|
25
|
-
return /* @__PURE__ */
|
|
26
|
-
|
|
24
|
+
return /* @__PURE__ */ f(
|
|
25
|
+
S,
|
|
27
26
|
{
|
|
28
27
|
ref: t,
|
|
29
28
|
wrap: "Wrap",
|
|
30
|
-
justifyContent:
|
|
31
|
-
alignItems:
|
|
32
|
-
...
|
|
33
|
-
children:
|
|
29
|
+
justifyContent: l,
|
|
30
|
+
alignItems: a,
|
|
31
|
+
...c,
|
|
32
|
+
children: s
|
|
34
33
|
}
|
|
35
34
|
);
|
|
36
35
|
});
|
|
37
|
-
x.propTypes = {
|
|
38
|
-
/**
|
|
39
|
-
* Number of available grid columns.
|
|
40
|
-
*/
|
|
41
|
-
columns: e.number,
|
|
42
|
-
/**
|
|
43
|
-
* Defines spacing for rows and columns.
|
|
44
|
-
*/
|
|
45
|
-
spacing: e.oneOfType([e.number, e.object]),
|
|
46
|
-
/**
|
|
47
|
-
* Defines row spacing. If this is set, `spacing` property is ignored for this value.
|
|
48
|
-
*/
|
|
49
|
-
rowSpacing: e.oneOfType([e.number, e.object]),
|
|
50
|
-
/**
|
|
51
|
-
* Defines column spacing. If this is set, `spacing` property is ignored for this value.
|
|
52
|
-
*/
|
|
53
|
-
columnSpacing: e.oneOfType([e.number, e.object]),
|
|
54
|
-
/**
|
|
55
|
-
* Controls how the space is distributed between items along the main-axis.
|
|
56
|
-
*/
|
|
57
|
-
justifyContent: e.oneOf([
|
|
58
|
-
"Start",
|
|
59
|
-
"Center",
|
|
60
|
-
"End",
|
|
61
|
-
"SpaceAround",
|
|
62
|
-
"SpaceBetween",
|
|
63
|
-
"SpaceEvenly"
|
|
64
|
-
]),
|
|
65
|
-
/**
|
|
66
|
-
* Controls how the space is distributed between items along the cross-axis.
|
|
67
|
-
*/
|
|
68
|
-
alignItems: e.oneOf([
|
|
69
|
-
"Start",
|
|
70
|
-
"Center",
|
|
71
|
-
"Stretch",
|
|
72
|
-
"End",
|
|
73
|
-
"Baseline"
|
|
74
|
-
])
|
|
75
|
-
};
|
|
76
36
|
export {
|
|
77
|
-
|
|
37
|
+
y as default
|
|
78
38
|
};
|
package/dist/FlexGridItem.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use strict";const
|
|
2
|
-
${
|
|
3
|
-
min-width: ${
|
|
4
|
-
width: ${
|
|
5
|
-
padding: ${
|
|
1
|
+
"use strict";const q=require("react/jsx-runtime"),r=require("react"),L=require("./emotion-styled.browser.esm-BtEseadx.cjs"),N=require("./utils-RnrgDDZP.cjs"),R=L.styled.div`
|
|
2
|
+
${t=>t.width>0?"":"flex: 1;"}
|
|
3
|
+
min-width: ${t=>100/t.columns}%;
|
|
4
|
+
width: ${t=>t.width}%;
|
|
5
|
+
padding: ${t=>t.rowGap}px ${t=>t.columnGap}px;
|
|
6
6
|
overflow-wrap: break-word;
|
|
7
|
-
`,
|
|
7
|
+
`,X=r.forwardRef((t,x)=>{const{XS:s,S:i,M:a,L:o,XL:w,col:f,columns:e,spacing:l,rowSpacing:n,columnSpacing:u,children:G}=t,d=N.useScreenSize(),[b,k]=r.useState(0),[g,p]=r.useState(0),[$,S]=r.useState(0);r.useEffect(()=>{m()},[e,s,i,a,o,w,f]),r.useEffect(()=>{m(),h()},[d]),r.useEffect(()=>{h()},[l,n,u]);const m=()=>{let c=f?100/(e/f):0;switch(d){case"XS":c=s?100/(e/s):c;break;case"S":c=i?100/(e/i):s?100/(e/s):c;break;case"M":c=a?100/(e/a):i?100/(e/i):s?100/(e/s):c;break;case"L":c=o?100/(e/o):a?100/(e/a):i?100/(e/i):s?100/(e/s):c;break;case"XL":c=w?100/(e/w):o?100/(e/o):a?100/(e/a):i?100/(e/i):s?100/(e/s):c;break}k(c)},h=()=>{l?(p(l),S(l)):(n&&(isNaN(n)?p(n[d]??0):p(n)),u&&(isNaN(u)?S(u[d]??0):S(u)))};return q.jsx(R,{ref:x,columns:e,width:b,rowGap:g,columnGap:$,children:G})});module.exports=X;
|