@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
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { d as S } from "./index-Dt62UGku.js";
|
|
1
|
+
import { jsx as y } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as h, useCallback as w } from "react";
|
|
3
|
+
import { a as S } from "./CustomStyles-DtWxboEM.js";
|
|
4
|
+
import { d as x } from "./index-Dt62UGku.js";
|
|
6
5
|
import C from "./Dropdown.js";
|
|
7
|
-
import { u as
|
|
8
|
-
const
|
|
6
|
+
import { u as D } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
7
|
+
const N = h((o, t) => {
|
|
9
8
|
const {
|
|
10
9
|
// options,
|
|
11
|
-
styles:
|
|
10
|
+
styles: r,
|
|
12
11
|
debounceTime: s = 0,
|
|
13
12
|
// name,
|
|
14
13
|
// hideSelectedOptions,
|
|
@@ -17,7 +16,7 @@ const w = y((l, t) => {
|
|
|
17
16
|
// value,
|
|
18
17
|
// readOnly,
|
|
19
18
|
// tabIndex,
|
|
20
|
-
isSearchable:
|
|
19
|
+
isSearchable: m = !0,
|
|
21
20
|
isClearable: a = !0,
|
|
22
21
|
// isLoading,
|
|
23
22
|
// isRtl,
|
|
@@ -51,211 +50,41 @@ const w = y((l, t) => {
|
|
|
51
50
|
// defaultMenuIsOpen,
|
|
52
51
|
// delimiter,
|
|
53
52
|
// onChange,
|
|
54
|
-
onInputChange:
|
|
53
|
+
onInputChange: e,
|
|
55
54
|
// onMenuOpen,
|
|
56
55
|
// onMenuClose,
|
|
57
56
|
// onBlur,
|
|
58
57
|
// onFocus,
|
|
59
58
|
// onKeyDown,
|
|
60
|
-
size:
|
|
59
|
+
size: l = "small",
|
|
61
60
|
color: i = "primary",
|
|
62
|
-
className:
|
|
63
|
-
style:
|
|
61
|
+
className: u = "",
|
|
62
|
+
style: c = {},
|
|
64
63
|
// children,
|
|
65
|
-
...
|
|
66
|
-
} =
|
|
67
|
-
|
|
68
|
-
|
|
64
|
+
...n
|
|
65
|
+
} = o, p = D(), f = w(
|
|
66
|
+
x((d, b) => {
|
|
67
|
+
e == null || e(d, b);
|
|
69
68
|
}, s)
|
|
70
69
|
);
|
|
71
|
-
return /* @__PURE__ */
|
|
70
|
+
return /* @__PURE__ */ y(
|
|
72
71
|
C,
|
|
73
72
|
{
|
|
74
73
|
isMulti: !0,
|
|
75
74
|
ref: t,
|
|
76
|
-
styles:
|
|
77
|
-
size:
|
|
75
|
+
styles: r || S,
|
|
76
|
+
size: l,
|
|
78
77
|
color: i,
|
|
79
|
-
theme:
|
|
80
|
-
isSearchable:
|
|
78
|
+
theme: p,
|
|
79
|
+
isSearchable: m,
|
|
81
80
|
isClearable: a,
|
|
82
|
-
className:
|
|
83
|
-
style:
|
|
84
|
-
...
|
|
81
|
+
className: u,
|
|
82
|
+
style: c,
|
|
83
|
+
...n,
|
|
85
84
|
onInputChange: f
|
|
86
85
|
}
|
|
87
86
|
);
|
|
88
87
|
});
|
|
89
|
-
w.propTypes = {
|
|
90
|
-
options: e.array,
|
|
91
|
-
styles: e.object,
|
|
92
|
-
debounceTime: e.number,
|
|
93
|
-
name: e.string,
|
|
94
|
-
value: e.any,
|
|
95
|
-
/**
|
|
96
|
-
* Sets the tabIndex attribute on the input
|
|
97
|
-
*/
|
|
98
|
-
tabIndex: e.number,
|
|
99
|
-
/**
|
|
100
|
-
* Whether to enable search functionality
|
|
101
|
-
*/
|
|
102
|
-
isSearchable: e.bool,
|
|
103
|
-
isClearable: e.bool,
|
|
104
|
-
/**
|
|
105
|
-
* Is the select in a state of loading (async)
|
|
106
|
-
*/
|
|
107
|
-
isLoading: e.bool,
|
|
108
|
-
/**
|
|
109
|
-
* Is the select direction right-to-left
|
|
110
|
-
*/
|
|
111
|
-
isRtl: e.bool,
|
|
112
|
-
isDisabled: e.bool,
|
|
113
|
-
readOnly: e.bool,
|
|
114
|
-
/**
|
|
115
|
-
* Close the select menu when the user selects an option
|
|
116
|
-
*/
|
|
117
|
-
closeMenuOnSelect: e.bool,
|
|
118
|
-
/**
|
|
119
|
-
* If true, close the select menu when the user scrolls the document/body.
|
|
120
|
-
* If a function, takes a standard javascript ScrollEvent you return a boolean:
|
|
121
|
-
* true => The menu closes
|
|
122
|
-
* false => The menu stays open
|
|
123
|
-
* This is useful when you have a scrollable modal and want to portal the menu out, but want to avoid graphical issues.
|
|
124
|
-
*/
|
|
125
|
-
closeMenuOnScroll: e.oneOfType([e.bool, e.func]),
|
|
126
|
-
/**
|
|
127
|
-
* Clear all values when the user presses escape AND the menu is closed
|
|
128
|
-
*/
|
|
129
|
-
escapeClearsValue: e.bool,
|
|
130
|
-
/**
|
|
131
|
-
* Custom method to filter whether an option should be displayed in the menu. Type: `null` or `() => boolean`
|
|
132
|
-
*/
|
|
133
|
-
filterOption: e.func,
|
|
134
|
-
/**
|
|
135
|
-
* Formats group labels in the menu as React components
|
|
136
|
-
*/
|
|
137
|
-
formatGroupLabel: e.func,
|
|
138
|
-
/**
|
|
139
|
-
* Formats option labels in the menu and control as React components
|
|
140
|
-
*/
|
|
141
|
-
formatOptionLabel: e.func,
|
|
142
|
-
/**
|
|
143
|
-
* Resolves option data to a string to be displayed as the label by components
|
|
144
|
-
* Note: Failure to resolve to a string type can interfere with filtering and screen reader support.
|
|
145
|
-
*/
|
|
146
|
-
getOptionLabel: e.func,
|
|
147
|
-
/**
|
|
148
|
-
* Resolves option data to a string to compare options and specify value attributes
|
|
149
|
-
*/
|
|
150
|
-
getOptionValue: e.func,
|
|
151
|
-
/**
|
|
152
|
-
* Hide the selected option from the menu
|
|
153
|
-
*/
|
|
154
|
-
hideSelectedOptions: e.bool,
|
|
155
|
-
/**
|
|
156
|
-
* The id to set on the SelectContainer component
|
|
157
|
-
*/
|
|
158
|
-
id: e.any,
|
|
159
|
-
/**
|
|
160
|
-
* The id of the search input
|
|
161
|
-
*/
|
|
162
|
-
inputid: e.any,
|
|
163
|
-
/**
|
|
164
|
-
* Override the built-in logic to detect whether an option is disabled. `(...) => boolean`
|
|
165
|
-
*/
|
|
166
|
-
isOptionDisabled: e.func,
|
|
167
|
-
/**
|
|
168
|
-
* Override the built-in logic to detect whether an option is selected. `(...) => boolean`
|
|
169
|
-
*/
|
|
170
|
-
isOptionSelected: e.func,
|
|
171
|
-
/**
|
|
172
|
-
* Async: Text to display when loading options `(...) => ...`
|
|
173
|
-
*/
|
|
174
|
-
loadingMessage: e.func,
|
|
175
|
-
/**
|
|
176
|
-
* Minimum height of the menu before flipping
|
|
177
|
-
*/
|
|
178
|
-
minMenuHeight: e.number,
|
|
179
|
-
/**
|
|
180
|
-
* Maximum height of the menu before flipping
|
|
181
|
-
*/
|
|
182
|
-
maxMenuHeight: e.number,
|
|
183
|
-
/**
|
|
184
|
-
* Default placement of the menu in relation to the control. 'auto' will flip when there isn't enough space below the control.
|
|
185
|
-
*/
|
|
186
|
-
menuPlacement: e.oneOf(["bottom", "auto", "top"]),
|
|
187
|
-
/**
|
|
188
|
-
*The CSS position value of the menu, when "fixed" extra layout management is required.
|
|
189
|
-
*/
|
|
190
|
-
menuPosition: e.oneOf(["absolute", "fixed"]),
|
|
191
|
-
/**
|
|
192
|
-
* Whether to block scroll events when the menu is open
|
|
193
|
-
*/
|
|
194
|
-
menuShouldBlockScroll: e.bool,
|
|
195
|
-
/**
|
|
196
|
-
* Whether the menu should be scrolled into view when it opens
|
|
197
|
-
*/
|
|
198
|
-
menuShouldScrollIntoView: e.bool,
|
|
199
|
-
/**
|
|
200
|
-
* Allows control of whether the menu is opened when the Select is focused
|
|
201
|
-
*/
|
|
202
|
-
openMenuOnFocus: e.bool,
|
|
203
|
-
/**
|
|
204
|
-
* Allows control of whether the menu is opened when the Select is clicked
|
|
205
|
-
*/
|
|
206
|
-
openMenuOnClick: e.bool,
|
|
207
|
-
//----
|
|
208
|
-
autoFocus: e.bool,
|
|
209
|
-
placeholder: e.any,
|
|
210
|
-
noOptionsMessage: e.string,
|
|
211
|
-
menuIsOpen: e.bool,
|
|
212
|
-
/**
|
|
213
|
-
* This complex object includes all the compositional components that are used in react-select. If you wish to overwrite a component, pass in an object with the appropriate namespace.
|
|
214
|
-
* If you only wish to restyle a component, we recommend using the styles prop instead.
|
|
215
|
-
*/
|
|
216
|
-
components: e.object,
|
|
217
|
-
/**
|
|
218
|
-
* initial value of the control
|
|
219
|
-
*/
|
|
220
|
-
defaultValue: e.string,
|
|
221
|
-
/**
|
|
222
|
-
* initial value of the search input
|
|
223
|
-
*/
|
|
224
|
-
defaultInputValue: e.string,
|
|
225
|
-
/**
|
|
226
|
-
* initial open value of the menu
|
|
227
|
-
*/
|
|
228
|
-
defaultMenuIsOpen: e.bool,
|
|
229
|
-
/**
|
|
230
|
-
* Delimiter used to join multiple values into a single HTML Input value
|
|
231
|
-
*/
|
|
232
|
-
delimiter: e.string,
|
|
233
|
-
//---------------------------------------------------------------
|
|
234
|
-
onChange: e.func,
|
|
235
|
-
/**
|
|
236
|
-
* control the value of the search input (changing this will update the available options)
|
|
237
|
-
*/
|
|
238
|
-
onInputChange: e.func,
|
|
239
|
-
onMenuOpen: e.func,
|
|
240
|
-
onMenuClose: e.func,
|
|
241
|
-
onFocus: e.func,
|
|
242
|
-
onBlur: e.func,
|
|
243
|
-
onKeyDown: e.func,
|
|
244
|
-
//---------------------------------------------------------------
|
|
245
|
-
className: e.string,
|
|
246
|
-
style: e.object,
|
|
247
|
-
color: e.oneOf([
|
|
248
|
-
"primary",
|
|
249
|
-
"secondary",
|
|
250
|
-
"success",
|
|
251
|
-
"warning",
|
|
252
|
-
"danger",
|
|
253
|
-
"information",
|
|
254
|
-
"neutral",
|
|
255
|
-
"gray"
|
|
256
|
-
]),
|
|
257
|
-
size: e.oneOf(["small", "medium", "large"])
|
|
258
|
-
};
|
|
259
88
|
export {
|
|
260
|
-
|
|
89
|
+
N as default
|
|
261
90
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const h=require("react/jsx-runtime"),t=require("react"),w=require("./CustomStyles-C86XQqBE.cjs"),x=require("./index-Cp66dWMi.cjs"),S=require("./DropdownLookup.cjs"),k=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),C=t.forwardRef((r,o)=>{const{styles:s,debounceTime:u=0,isSearchable:n=!0,isClearable:c=!0,onInputChange:e,size:l="small",color:i="primary",className:a="",style:m={},...d}=r,p=k.useTheme(),b=t.useCallback(x.debounce((q,y)=>{e==null||e(q,y)},u));return h.jsx(S,{isMulti:!0,ref:o,styles:s||w.customStyles,size:l,color:i,theme:p,isSearchable:n,isClearable:c,onInputChange:b,className:a,style:m,...d})});module.exports=C;
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import { jsx as y } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { a as M } from "./CustomStyles-DtWxboEM.js";
|
|
2
|
+
import { forwardRef as h, useCallback as k } from "react";
|
|
3
|
+
import { a as w } from "./CustomStyles-DtWxboEM.js";
|
|
5
4
|
import { d as S } from "./index-Dt62UGku.js";
|
|
6
|
-
import
|
|
7
|
-
import { u as
|
|
8
|
-
const
|
|
5
|
+
import x from "./DropdownLookup.js";
|
|
6
|
+
import { u as C } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
7
|
+
const I = h((r, t) => {
|
|
9
8
|
const {
|
|
10
9
|
// defaultOptions,
|
|
11
10
|
// cacheOptions,
|
|
12
11
|
// loadOptions,
|
|
13
|
-
styles:
|
|
12
|
+
styles: o,
|
|
14
13
|
debounceTime: s = 0,
|
|
15
14
|
// name,
|
|
16
15
|
// hideSelectedOptions,
|
|
@@ -19,7 +18,7 @@ const T = g((l, t) => {
|
|
|
19
18
|
// value,
|
|
20
19
|
// readOnly,
|
|
21
20
|
// tabIndex,
|
|
22
|
-
isSearchable:
|
|
21
|
+
isSearchable: m = !0,
|
|
23
22
|
isClearable: a = !0,
|
|
24
23
|
// isLoading,
|
|
25
24
|
// isRtl,
|
|
@@ -53,222 +52,41 @@ const T = g((l, t) => {
|
|
|
53
52
|
// defaultMenuIsOpen,
|
|
54
53
|
// delimiter,
|
|
55
54
|
// onChange,
|
|
56
|
-
onInputChange:
|
|
55
|
+
onInputChange: e,
|
|
57
56
|
// onMenuOpen,
|
|
58
57
|
// onMenuClose,
|
|
59
58
|
// onBlur,
|
|
60
59
|
// onFocus,
|
|
61
60
|
// onKeyDown,
|
|
62
|
-
size:
|
|
63
|
-
color:
|
|
64
|
-
className:
|
|
65
|
-
style:
|
|
61
|
+
size: l = "small",
|
|
62
|
+
color: u = "primary",
|
|
63
|
+
className: i = "",
|
|
64
|
+
style: p = {},
|
|
66
65
|
// children,
|
|
67
|
-
...
|
|
68
|
-
} =
|
|
69
|
-
S((d,
|
|
70
|
-
|
|
66
|
+
...c
|
|
67
|
+
} = r, n = C(), f = k(
|
|
68
|
+
S((d, b) => {
|
|
69
|
+
e == null || e(d, b);
|
|
71
70
|
}, s)
|
|
72
71
|
);
|
|
73
72
|
return /* @__PURE__ */ y(
|
|
74
|
-
|
|
73
|
+
x,
|
|
75
74
|
{
|
|
76
75
|
isMulti: !0,
|
|
77
76
|
ref: t,
|
|
78
|
-
styles:
|
|
79
|
-
size:
|
|
80
|
-
color:
|
|
81
|
-
theme:
|
|
82
|
-
isSearchable:
|
|
77
|
+
styles: o || w,
|
|
78
|
+
size: l,
|
|
79
|
+
color: u,
|
|
80
|
+
theme: n,
|
|
81
|
+
isSearchable: m,
|
|
83
82
|
isClearable: a,
|
|
84
|
-
onInputChange:
|
|
85
|
-
className:
|
|
86
|
-
style:
|
|
87
|
-
...
|
|
83
|
+
onInputChange: f,
|
|
84
|
+
className: i,
|
|
85
|
+
style: p,
|
|
86
|
+
...c
|
|
88
87
|
}
|
|
89
88
|
);
|
|
90
89
|
});
|
|
91
|
-
T.propTypes = {
|
|
92
|
-
/**
|
|
93
|
-
* The default set of options to show before the user starts searching. When set to true, the results for loadOptions('') will be autoloaded.
|
|
94
|
-
*/
|
|
95
|
-
defaultOptions: e.oneOfType([e.bool, e.array]),
|
|
96
|
-
/**
|
|
97
|
-
* If cacheOptions is truthy, then the loaded data will be cached. The cache will remain until cacheOptions changes value.
|
|
98
|
-
*/
|
|
99
|
-
cacheOptions: e.any,
|
|
100
|
-
/**
|
|
101
|
-
* Function that returns a promise, which is the set of options to be used once the promise resolves.
|
|
102
|
-
*/
|
|
103
|
-
loadOptions: e.func,
|
|
104
|
-
styles: e.object,
|
|
105
|
-
debounceTime: e.number,
|
|
106
|
-
name: e.string,
|
|
107
|
-
value: e.any,
|
|
108
|
-
/**
|
|
109
|
-
* Sets the tabIndex attribute on the input
|
|
110
|
-
*/
|
|
111
|
-
tabIndex: e.number,
|
|
112
|
-
/**
|
|
113
|
-
* Whether to enable search functionality
|
|
114
|
-
*/
|
|
115
|
-
isSearchable: e.bool,
|
|
116
|
-
isClearable: e.bool,
|
|
117
|
-
/**
|
|
118
|
-
* Is the select in a state of loading (async)
|
|
119
|
-
*/
|
|
120
|
-
isLoading: e.bool,
|
|
121
|
-
/**
|
|
122
|
-
* Is the select direction right-to-left
|
|
123
|
-
*/
|
|
124
|
-
isRtl: e.bool,
|
|
125
|
-
isDisabled: e.bool,
|
|
126
|
-
readOnly: e.bool,
|
|
127
|
-
/**
|
|
128
|
-
* Close the select menu when the user selects an option
|
|
129
|
-
*/
|
|
130
|
-
closeMenuOnSelect: e.bool,
|
|
131
|
-
/**
|
|
132
|
-
* If true, close the select menu when the user scrolls the document/body.
|
|
133
|
-
* If a function, takes a standard javascript ScrollEvent you return a boolean:
|
|
134
|
-
* true => The menu closes
|
|
135
|
-
* false => The menu stays open
|
|
136
|
-
* This is useful when you have a scrollable modal and want to portal the menu out, but want to avoid graphical issues.
|
|
137
|
-
*/
|
|
138
|
-
closeMenuOnScroll: e.oneOfType([e.bool, e.func]),
|
|
139
|
-
/**
|
|
140
|
-
* Clear all values when the user presses escape AND the menu is closed
|
|
141
|
-
*/
|
|
142
|
-
escapeClearsValue: e.bool,
|
|
143
|
-
/**
|
|
144
|
-
* Custom method to filter whether an option should be displayed in the menu. Type: `null` or `() => boolean`
|
|
145
|
-
*/
|
|
146
|
-
filterOption: e.func,
|
|
147
|
-
/**
|
|
148
|
-
* Formats group labels in the menu as React components
|
|
149
|
-
*/
|
|
150
|
-
formatGroupLabel: e.func,
|
|
151
|
-
/**
|
|
152
|
-
* Formats option labels in the menu and control as React components
|
|
153
|
-
*/
|
|
154
|
-
formatOptionLabel: e.func,
|
|
155
|
-
/**
|
|
156
|
-
* Resolves option data to a string to be displayed as the label by components
|
|
157
|
-
* Note: Failure to resolve to a string type can interfere with filtering and screen reader support.
|
|
158
|
-
*/
|
|
159
|
-
getOptionLabel: e.func,
|
|
160
|
-
/**
|
|
161
|
-
* Resolves option data to a string to compare options and specify value attributes
|
|
162
|
-
*/
|
|
163
|
-
getOptionValue: e.func,
|
|
164
|
-
/**
|
|
165
|
-
* Hide the selected option from the menu
|
|
166
|
-
*/
|
|
167
|
-
hideSelectedOptions: e.bool,
|
|
168
|
-
/**
|
|
169
|
-
* The id to set on the SelectContainer component
|
|
170
|
-
*/
|
|
171
|
-
id: e.any,
|
|
172
|
-
/**
|
|
173
|
-
* The id of the search input
|
|
174
|
-
*/
|
|
175
|
-
inputid: e.any,
|
|
176
|
-
/**
|
|
177
|
-
* Override the built-in logic to detect whether an option is disabled. `(...) => boolean`
|
|
178
|
-
*/
|
|
179
|
-
isOptionDisabled: e.func,
|
|
180
|
-
/**
|
|
181
|
-
* Override the built-in logic to detect whether an option is selected. `(...) => boolean`
|
|
182
|
-
*/
|
|
183
|
-
isOptionSelected: e.func,
|
|
184
|
-
/**
|
|
185
|
-
* Async: Text to display when loading options `(...) => ...`
|
|
186
|
-
*/
|
|
187
|
-
loadingMessage: e.func,
|
|
188
|
-
/**
|
|
189
|
-
* Minimum height of the menu before flipping
|
|
190
|
-
*/
|
|
191
|
-
minMenuHeight: e.number,
|
|
192
|
-
/**
|
|
193
|
-
* Maximum height of the menu before flipping
|
|
194
|
-
*/
|
|
195
|
-
maxMenuHeight: e.number,
|
|
196
|
-
/**
|
|
197
|
-
* Default placement of the menu in relation to the control. 'auto' will flip when there isn't enough space below the control.
|
|
198
|
-
*/
|
|
199
|
-
menuPlacement: e.oneOf(["bottom", "auto", "top"]),
|
|
200
|
-
/**
|
|
201
|
-
*The CSS position value of the menu, when "fixed" extra layout management is required.
|
|
202
|
-
*/
|
|
203
|
-
menuPosition: e.oneOf(["absolute", "fixed"]),
|
|
204
|
-
/**
|
|
205
|
-
* Whether to block scroll events when the menu is open
|
|
206
|
-
*/
|
|
207
|
-
menuShouldBlockScroll: e.bool,
|
|
208
|
-
/**
|
|
209
|
-
* Whether the menu should be scrolled into view when it opens
|
|
210
|
-
*/
|
|
211
|
-
menuShouldScrollIntoView: e.bool,
|
|
212
|
-
/**
|
|
213
|
-
* Allows control of whether the menu is opened when the Select is focused
|
|
214
|
-
*/
|
|
215
|
-
openMenuOnFocus: e.bool,
|
|
216
|
-
/**
|
|
217
|
-
* Allows control of whether the menu is opened when the Select is clicked
|
|
218
|
-
*/
|
|
219
|
-
openMenuOnClick: e.bool,
|
|
220
|
-
//----
|
|
221
|
-
autoFocus: e.bool,
|
|
222
|
-
placeholder: e.any,
|
|
223
|
-
noOptionsMessage: e.string,
|
|
224
|
-
menuIsOpen: e.bool,
|
|
225
|
-
/**
|
|
226
|
-
* This complex object includes all the compositional components that are used in react-select. If you wish to overwrite a component, pass in an object with the appropriate namespace.
|
|
227
|
-
* If you only wish to restyle a component, we recommend using the styles prop instead.
|
|
228
|
-
*/
|
|
229
|
-
components: e.object,
|
|
230
|
-
/**
|
|
231
|
-
* initial value of the control
|
|
232
|
-
*/
|
|
233
|
-
defaultValue: e.string,
|
|
234
|
-
/**
|
|
235
|
-
* initial value of the search input
|
|
236
|
-
*/
|
|
237
|
-
defaultInputValue: e.string,
|
|
238
|
-
/**
|
|
239
|
-
* initial open value of the menu
|
|
240
|
-
*/
|
|
241
|
-
defaultMenuIsOpen: e.bool,
|
|
242
|
-
/**
|
|
243
|
-
* Delimiter used to join multiple values into a single HTML Input value
|
|
244
|
-
*/
|
|
245
|
-
delimiter: e.string,
|
|
246
|
-
//---------------------------------------------------------------
|
|
247
|
-
onChange: e.func,
|
|
248
|
-
/**
|
|
249
|
-
* control the value of the search input (changing this will update the available options)
|
|
250
|
-
*/
|
|
251
|
-
onInputChange: e.func,
|
|
252
|
-
onMenuOpen: e.func,
|
|
253
|
-
onMenuClose: e.func,
|
|
254
|
-
onFocus: e.func,
|
|
255
|
-
onBlur: e.func,
|
|
256
|
-
onKeyDown: e.func,
|
|
257
|
-
//---------------------------------------------------------------
|
|
258
|
-
className: e.string,
|
|
259
|
-
style: e.object,
|
|
260
|
-
color: e.oneOf([
|
|
261
|
-
"primary",
|
|
262
|
-
"secondary",
|
|
263
|
-
"success",
|
|
264
|
-
"warning",
|
|
265
|
-
"danger",
|
|
266
|
-
"information",
|
|
267
|
-
"neutral",
|
|
268
|
-
"gray"
|
|
269
|
-
]),
|
|
270
|
-
size: e.oneOf(["small", "medium", "large"])
|
|
271
|
-
};
|
|
272
90
|
export {
|
|
273
|
-
|
|
91
|
+
I as default
|
|
274
92
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { g as P } from "./_commonjsHelpers-BkfeUUK-.js";
|
|
2
2
|
import g from "react";
|
|
3
|
-
import { p as E } from "./SearchSection-
|
|
3
|
+
import { p as E } from "./SearchSection-DAaMecR4.js";
|
|
4
4
|
function b(r, e) {
|
|
5
5
|
for (var t = 0; t < e.length; t++) {
|
|
6
6
|
const i = e[t];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const P=require("./_commonjsHelpers-DwTZ_eVU.cjs"),g=require("react"),E=require("./SearchSection-
|
|
1
|
+
"use strict";const P=require("./_commonjsHelpers-DwTZ_eVU.cjs"),g=require("react"),E=require("./SearchSection-B94YN_6P.cjs");function b(r,e){for(var t=0;t<e.length;t++){const i=e[t];if(typeof i!="string"&&!Array.isArray(i)){for(const s in i)if(s!=="default"&&!(s in r)){const o=Object.getOwnPropertyDescriptor(i,s);o&&Object.defineProperty(r,s,o.get?o:{enumerable:!0,get:()=>i[s]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var _=Object.create,a=Object.defineProperty,L=Object.getOwnPropertyDescriptor,k=Object.getOwnPropertyNames,I=Object.getPrototypeOf,O=Object.prototype.hasOwnProperty,M=(r,e,t)=>e in r?a(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,x=(r,e)=>{for(var t in e)a(r,t,{get:e[t],enumerable:!0})},f=(r,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of k(e))!O.call(r,s)&&s!==t&&a(r,s,{get:()=>e[s],enumerable:!(i=L(e,s))||i.enumerable});return r},R=(r,e,t)=>(t=r!=null?_(I(r)):{},f(!r||!r.__esModule?a(t,"default",{value:r,enumerable:!0}):t,r)),w=r=>f(a({},"__esModule",{value:!0}),r),n=(r,e,t)=>(M(r,typeof e!="symbol"?e+"":e,t),t),y={};x(y,{default:()=>l});var m=w(y),v=R(g),p=E.patterns;const S="https://cdn.jsdelivr.net/npm/@mux/mux-player@VERSION/dist/mux-player.mjs";class l extends v.Component{constructor(){super(...arguments),n(this,"onReady",(...e)=>this.props.onReady(...e)),n(this,"onPlay",(...e)=>this.props.onPlay(...e)),n(this,"onBuffer",(...e)=>this.props.onBuffer(...e)),n(this,"onBufferEnd",(...e)=>this.props.onBufferEnd(...e)),n(this,"onPause",(...e)=>this.props.onPause(...e)),n(this,"onEnded",(...e)=>this.props.onEnded(...e)),n(this,"onError",(...e)=>this.props.onError(...e)),n(this,"onPlayBackRateChange",e=>this.props.onPlaybackRateChange(e.target.playbackRate)),n(this,"onEnablePIP",(...e)=>this.props.onEnablePIP(...e)),n(this,"onSeek",e=>{this.props.onSeek(e.target.currentTime)}),n(this,"onDurationChange",()=>{const e=this.getDuration();this.props.onDuration(e)}),n(this,"mute",()=>{this.player.muted=!0}),n(this,"unmute",()=>{this.player.muted=!1}),n(this,"ref",e=>{this.player=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this),this.addListeners(this.player);const e=this.getPlaybackId(this.props.url);e&&(this.player.playbackId=e)}componentWillUnmount(){this.player.playbackId=null,this.removeListeners(this.player)}addListeners(e){const{playsinline:t}=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),e.addEventListener("canplay",this.onReady),t&&e.setAttribute("playsinline","")}removeListeners(e){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("canplay",this.onReady)}async load(e){var t;const{onError:i,config:s}=this.props;if(!((t=globalThis.customElements)!=null&&t.get("mux-player")))try{await import(`${S.replace("VERSION",s.version)}`),this.props.onLoaded()}catch(u){i(u)}const[,o]=e.match(p.MATCH_URL_MUX);this.player.playbackId=o}play(){const e=this.player.play();e&&e.catch(this.props.onError)}pause(){this.player.pause()}stop(){this.player.playbackId=null}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()}disablePIP(){document.exitPictureInPicture&&document.pictureInPictureElement===this.player&&document.exitPictureInPicture()}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}getPlaybackId(e){const[,t]=e.match(p.MATCH_URL_MUX);return t}render(){const{url:e,playing:t,loop:i,controls:s,muted:o,config:u,width:c,height:h}=this.props,d={width:c==="auto"?c:"100%",height:h==="auto"?h:"100%"};return s===!1&&(d["--controls"]="none"),v.default.createElement("mux-player",{ref:this.ref,"playback-id":this.getPlaybackId(e),style:d,preload:"auto",autoPlay:t||void 0,muted:o?"":void 0,loop:i?"":void 0,...u.attributes})}}n(l,"displayName","Mux");n(l,"canPlay",p.canPlay.mux);const j=P.getDefaultExportFromCjs(m),D=b({__proto__:null,default:j},[m]);exports.Mux=D;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),o=require("react"),w=require("./emotion-styled.browser.esm-BtEseadx.cjs"),M=require("./utils-RnrgDDZP.cjs"),S=require("./motion-B_VPZaJq.cjs"),q=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),b=require("./index-DZoWlChs.cjs"),h=w.styled(S.motion.div)`
|
|
2
2
|
margin-left: 0.3rem;
|
|
3
3
|
padding-left: 0.3rem;
|
|
4
|
-
border-left: ${
|
|
4
|
+
border-left: ${r=>`2px solid ${M.getColorRgbaValue(r.theme,"MenuItem",r.color,"focus","background")}`};
|
|
5
5
|
border-radius: 2px;
|
|
6
|
-
`,
|
|
6
|
+
`,l=o.forwardRef((r,j)=>{const{item:u,onItemSelected:c=()=>{},defaultOpen:d=!1,animation:p={animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},initial:{opacity:0,height:0},transition:{type:"tween",duration:.15,opacity:{duration:.15,ease:"easeOut"},height:{duration:.15}}},className:E="",style:_={},color:s="primary",size:n="small",children:y,...N}=r,g=q.useTheme(),[i,f]=o.useState(d),x=()=>{f(!i)},T=o.cloneElement(u,{isNested:!0,showNested:i,toggleNested:x,color:s,size:n}),I=o.Children.map(y,(e,D)=>{var a,m;return o.isValidElement(e)&&(e.props.__TYPE__=="MENU_ITEM"||((a=e==null?void 0:e.type)==null?void 0:a.displayName)==="MENU_ITEM"||e.props.__TYPE__=="NESTED_ITEM"||((m=e==null?void 0:e.type)==null?void 0:m.displayName)==="NESTED_ITEM")?o.cloneElement(e,{color:e.props.color?e.props.color:s,size:n,onItemSelected:c}):e});return t.jsxs(t.Fragment,{children:[t.jsx(t.Fragment,{children:T}),t.jsx(b.AnimatePresence,{children:i&&t.jsx(h,{...p,theme:g,color:s,size:n,className:"nested-item-lnc "+E,style:_,...N,children:I})})]})});l.displayName="NESTED_ITEM";module.exports=l;
|