@lanaco/lnc-react-ui 4.0.112 → 4.0.114
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 +1 -1
- package/dist/Accordion.js +1 -1
- package/dist/AccordionDetails.cjs +1 -1
- package/dist/AccordionDetails.js +1 -1
- package/dist/AccordionSummary.cjs +1 -1
- package/dist/AccordionSummary.js +1 -1
- package/dist/ActionsToolbar.cjs +1 -1
- package/dist/ActionsToolbar.js +1 -1
- package/dist/Alert.cjs +1 -1
- package/dist/Alert.js +1 -1
- package/dist/Avatar.cjs +1 -1
- package/dist/Avatar.js +1 -1
- package/dist/Badge.cjs +1 -1
- package/dist/Badge.js +1 -1
- package/dist/BannerSectionCarousel.cjs +1 -1
- package/dist/BannerSectionCarousel.js +3 -3
- package/dist/BannerSectionWithListImage.cjs +2 -2
- package/dist/BannerSectionWithListImage.js +9 -9
- package/dist/BlogCardsSponsoredSection.cjs +25 -14
- package/dist/BlogCardsSponsoredSection.js +59 -47
- package/dist/BlogListSection.cjs +37 -9
- package/dist/BlogListSection.js +127 -70
- package/dist/BlogsSectionDetailed.cjs +11 -6
- package/dist/BlogsSectionDetailed.js +7 -2
- package/dist/BlogsSectionSimple.cjs +2 -2
- package/dist/BlogsSectionSimple.js +1 -1
- package/dist/BlogsSectionSimpleCentered.cjs +3 -2
- package/dist/BlogsSectionSimpleCentered.js +1 -0
- package/dist/BlogsSectionWithFilters.cjs +2 -2
- package/dist/BlogsSectionWithFilters.js +15 -15
- package/dist/BrandHitsSection.cjs +11 -11
- package/dist/BrandHitsSection.js +40 -38
- package/dist/Breadcrumbs.cjs +1 -1
- package/dist/Breadcrumbs.js +1 -1
- package/dist/Button.cjs +1 -1
- package/dist/Button.js +2 -2
- package/dist/ButtonGroup.cjs +1 -1
- package/dist/ButtonGroup.js +1 -1
- package/dist/CalorieCalculatorSection.cjs +1 -1
- package/dist/CalorieCalculatorSection.js +1 -1
- package/dist/CheckBoxInput.cjs +1 -1
- package/dist/CheckBoxInput.js +1 -1
- package/dist/Chip.cjs +1 -1
- package/dist/Chip.js +1 -1
- package/dist/ColorInput.cjs +1 -1
- package/dist/ColorInput.js +2 -2
- package/dist/ConfirmationForm.cjs +1 -1
- package/dist/ConfirmationForm.js +1 -1
- package/dist/ContactSection.cjs +303 -0
- package/dist/ContactSection.js +1614 -0
- package/dist/Content.cjs +1 -1
- package/dist/Content.js +1 -1
- package/dist/{CustomStyles-DtKDPOdk.cjs → CustomStyles-D3JePSNK.cjs} +1 -1
- package/dist/{CustomStyles-Dd8IsVV6.js → CustomStyles-DpKzWczC.js} +2 -2
- package/dist/DailyMotion-CUHIuSln.js +136 -0
- package/dist/DailyMotion-D46sLmkS.cjs +1 -0
- package/dist/DataView.cjs +1 -1
- package/dist/DataView.js +1 -1
- package/dist/DateInput.cjs +4 -4
- package/dist/DateInput.js +496 -552
- package/dist/DecimalInput.cjs +1 -1
- package/dist/DecimalInput.js +2 -2
- package/dist/DecimalInputV2.cjs +1 -1
- package/dist/DecimalInputV2.js +1 -1
- package/dist/DetailedProductsSection.cjs +2 -2
- package/dist/DetailedProductsSection.js +6 -6
- package/dist/DetailsView.cjs +1 -1
- package/dist/DetailsView.js +1 -1
- package/dist/DoubleRangeSlider.cjs +1 -1
- package/dist/DoubleRangeSlider.js +1 -1
- package/dist/DragAndDropFile.cjs +1 -1
- package/dist/DragAndDropFile.js +1 -1
- package/dist/DragDropFiles.cjs +1 -1
- package/dist/DragDropFiles.js +1 -1
- package/dist/Drawer.cjs +1 -1
- package/dist/Drawer.js +2 -2
- package/dist/Dropdown.cjs +1 -1
- package/dist/Dropdown.js +5 -5
- package/dist/DropdownItem.cjs +1 -1
- package/dist/DropdownItem.js +1 -1
- package/dist/DropdownLookup.cjs +1 -1
- package/dist/DropdownLookup.js +4 -4
- package/dist/DropdownMenu.cjs +1 -1
- package/dist/DropdownMenu.js +1 -1
- package/dist/EditableTable.cjs +1 -1
- package/dist/EditableTable.js +1 -1
- package/dist/Facebook-R53Rry9l.cjs +1 -0
- package/dist/Facebook-aEQQxj-r.js +121 -0
- package/dist/FaqSection.cjs +219 -0
- package/dist/FaqSection.js +481 -0
- package/dist/FeedbackSection.cjs +3 -3
- package/dist/FeedbackSection.js +9 -9
- package/dist/FieldOfInterestsWithTagsCardsSection.cjs +7 -7
- package/dist/FieldOfInterestsWithTagsCardsSection.js +24 -23
- package/dist/FileInput.cjs +1 -1
- package/dist/FileInput.js +1 -1
- package/dist/FilePlayer-9FdL9kM0.js +202 -0
- package/dist/FilePlayer-D9up8eWZ.cjs +1 -0
- package/dist/FlexBox.cjs +1 -1
- package/dist/FlexBox.js +1 -1
- package/dist/FlexGrid.cjs +1 -1
- package/dist/FlexGrid.js +1 -1
- package/dist/FlexGridItem.cjs +1 -1
- package/dist/FlexGridItem.js +1 -1
- package/dist/Footer.cjs +1 -1
- package/dist/Footer.js +1 -1
- package/dist/FormField.cjs +1 -1
- package/dist/FormField.js +1 -1
- package/dist/FormView.cjs +1 -1
- package/dist/FormView.js +1 -1
- package/dist/GiftCardsSection.cjs +2 -2
- package/dist/GiftCardsSection.js +9 -9
- package/dist/Grid.cjs +1 -1
- package/dist/Grid.js +1 -1
- package/dist/GridItem.cjs +1 -1
- package/dist/GridItem.js +1 -1
- package/dist/Header.cjs +1 -1
- package/dist/Header.js +1 -1
- package/dist/HelpBannerSection.cjs +62 -0
- package/dist/HelpBannerSection.js +81 -0
- package/dist/Icon.cjs +1 -1
- package/dist/Icon.js +1 -1
- package/dist/IconButton.cjs +1 -1
- package/dist/IconButton.js +1 -1
- package/dist/Kaltura-C170sgeD.cjs +1 -0
- package/dist/Kaltura-Dziqci9-.js +121 -0
- package/dist/Kanban.cjs +1 -1
- package/dist/Kanban.js +5 -5
- package/dist/KanbanActionsToolbar.cjs +1 -1
- package/dist/KanbanActionsToolbar.js +1 -1
- package/dist/{KanbanCard-CXRQQu4S.cjs → KanbanCard-CP60mpJO.cjs} +1 -1
- package/dist/{KanbanCard-CIscpYlR.js → KanbanCard-Crf-cTxA.js} +2 -2
- package/dist/KanbanCard.cjs +1 -1
- package/dist/KanbanCard.js +2 -2
- package/dist/KanbanFooter.cjs +1 -1
- package/dist/KanbanFooter.js +1 -1
- package/dist/KanbanHeader.cjs +1 -1
- package/dist/KanbanHeader.js +1 -1
- package/dist/KanbanView.cjs +1 -1
- package/dist/KanbanView.js +2 -2
- package/dist/Link.cjs +1 -1
- package/dist/Link.js +1 -1
- package/dist/LocationSearchSection.cjs +1 -1
- package/dist/LocationSearchSection.js +1 -1
- package/dist/MenuItem.cjs +1 -1
- package/dist/MenuItem.js +1 -1
- package/dist/Mixcloud-Cfn28kqf.js +113 -0
- package/dist/Mixcloud-Towpm_ct.cjs +1 -0
- package/dist/Modal.cjs +1 -1
- package/dist/Modal.js +2 -2
- package/dist/MultiSelectDropdown.cjs +1 -1
- package/dist/MultiSelectDropdown.js +3 -3
- package/dist/MultiSelectDropdownLookup.cjs +1 -1
- package/dist/MultiSelectDropdownLookup.js +3 -3
- package/dist/Mux-D0MPDKkM.js +165 -0
- package/dist/Mux-yqNOmuss.cjs +1 -0
- package/dist/NestedDropdownItem.cjs +1 -1
- package/dist/NestedDropdownItem.js +1 -1
- package/dist/NestedMenuItem.cjs +1 -1
- package/dist/NestedMenuItem.js +1 -1
- package/dist/Notification.cjs +1 -1
- package/dist/Notification.js +1 -1
- package/dist/NotificationContainer.cjs +1 -1
- package/dist/NotificationContainer.js +2 -2
- package/dist/NotificationMessage.cjs +1 -1
- package/dist/NotificationMessage.js +1 -1
- package/dist/NumberInput.cjs +1 -1
- package/dist/NumberInput.js +2 -2
- package/dist/PageLayout.cjs +1 -1
- package/dist/PageLayout.js +1 -1
- package/dist/Pagination.cjs +1 -1
- package/dist/Pagination.js +1 -1
- package/dist/PasswordInput.cjs +1 -1
- package/dist/PasswordInput.js +2 -2
- package/dist/Popover.cjs +1 -1
- package/dist/Popover.js +1 -1
- package/dist/PopoverContent.cjs +1 -1
- package/dist/PopoverContent.js +2 -2
- package/dist/PopoverDescription.cjs +1 -1
- package/dist/PopoverDescription.js +1 -1
- package/dist/PopoverHeading.cjs +1 -1
- package/dist/PopoverHeading.js +1 -1
- package/dist/PopoverTrigger.cjs +1 -1
- package/dist/PopoverTrigger.js +2 -2
- package/dist/Preview-B8HyPnfR.cjs +1 -0
- package/dist/Preview-CO6WSP5f.js +127 -0
- package/dist/ProgressBar.cjs +1 -1
- package/dist/ProgressBar.js +1 -1
- package/dist/QuattroCardsSection.cjs +5 -5
- package/dist/QuattroCardsSection.js +7 -7
- package/dist/RadioGroup.cjs +1 -1
- package/dist/RadioGroup.js +1 -1
- package/dist/RadioInput.cjs +1 -1
- package/dist/RadioInput.js +1 -1
- package/dist/RangeSlider.cjs +1 -1
- package/dist/RangeSlider.js +1 -1
- package/dist/ReviewsSection.cjs +1 -1
- package/dist/ReviewsSection.js +1 -1
- package/dist/SalesCampaignsSection.cjs +1 -1
- package/dist/SalesCampaignsSection.js +1 -1
- package/dist/SearchBar.cjs +1 -1
- package/dist/SearchBar.js +3 -3
- package/dist/SearchSection-BUD-hnQA.cjs +161 -0
- package/dist/SearchSection-xe0nvARV.js +1214 -0
- package/dist/SearchSection.cjs +1 -0
- package/dist/SearchSection.js +9 -0
- package/dist/Separator.cjs +1 -1
- package/dist/Separator.js +1 -1
- package/dist/ShopCardsSection.cjs +1 -1
- package/dist/ShopCardsSection.js +3 -2
- package/dist/Sidebar.cjs +1 -1
- package/dist/Sidebar.js +1 -1
- package/dist/SimpleCategoriesSection.cjs +2 -2
- package/dist/SimpleCategoriesSection.js +4 -4
- package/dist/SoundCloud-D85Da68L.js +123 -0
- package/dist/SoundCloud-YZlcPffr.cjs +1 -0
- package/dist/Spinner.cjs +1 -1
- package/dist/Spinner.js +2 -2
- package/dist/StatsSection.cjs +117 -0
- package/dist/StatsSection.js +154 -0
- package/dist/Streamable-CJQf8evZ.cjs +1 -0
- package/dist/Streamable-Zj4FOeBP.js +115 -0
- package/dist/Surface.cjs +1 -1
- package/dist/Surface.js +1 -1
- package/dist/SwipeableDrawer.cjs +1 -1
- package/dist/SwipeableDrawer.js +1 -1
- package/dist/TabItem.cjs +1 -1
- package/dist/TabItem.js +1 -1
- package/dist/Table.cjs +1 -1
- package/dist/Table.js +3 -3
- package/dist/TableView.cjs +1 -1
- package/dist/TableView.js +1 -1
- package/dist/Tabs.cjs +1 -1
- package/dist/Tabs.js +1 -1
- package/dist/TextAreaInput.cjs +1 -1
- package/dist/TextAreaInput.js +2 -2
- package/dist/TextInput.cjs +1 -1
- package/dist/TextInput.js +2 -2
- package/dist/ThemeProvider.cjs +1 -1
- package/dist/ThemeProvider.js +2 -2
- package/dist/TimeInput.cjs +1 -1
- package/dist/TimeInput.js +2 -2
- package/dist/Toggle.cjs +1 -1
- package/dist/Toggle.js +1 -1
- package/dist/TreeMenu.cjs +1 -1
- package/dist/TreeMenu.js +1 -1
- package/dist/TreeMenuSeparator.cjs +1 -1
- package/dist/TreeMenuSeparator.js +1 -1
- package/dist/Twitch-Ba2O5gTX.cjs +1 -0
- package/dist/Twitch-DC97YrR8.js +117 -0
- package/dist/UploadedFile.cjs +1 -1
- package/dist/UploadedFile.js +1 -1
- package/dist/UrgentSaleProductsSection.cjs +1 -1
- package/dist/UrgentSaleProductsSection.js +5 -5
- package/dist/Vidyard-BdNB5Wka.cjs +1 -0
- package/dist/Vidyard-D9vYqvNv.js +113 -0
- package/dist/Vimeo-23LnW4uS.js +146 -0
- package/dist/Vimeo-DatJiKS5.cjs +1 -0
- package/dist/Wistia-D--UDN6c.cjs +1 -0
- package/dist/Wistia-d2TQ3m-s.js +124 -0
- package/dist/YouTube-BEkcZxN7.cjs +1 -0
- package/dist/YouTube-x5-hc3s6.js +176 -0
- package/dist/_commonjsHelpers-BkfeUUK-.js +28 -0
- package/dist/_commonjsHelpers-DwTZ_eVU.cjs +1 -0
- package/dist/{emotion-react.browser.esm-1R69UXoj.cjs → emotion-react.browser.esm-Cvnp-zmB.cjs} +1 -1
- package/dist/{emotion-react.browser.esm-C6iWxXPG.js → emotion-react.browser.esm-DUVZ5oEL.js} +1 -1
- package/dist/{floating-ui.react.esm-h3qa3pb9.js → floating-ui.react.esm-CfpRzwmn.js} +1 -1
- package/dist/{floating-ui.react.esm-Bb1ww976.cjs → floating-ui.react.esm-CiYofNnh.cjs} +1 -1
- package/dist/{hoist-non-react-statics.cjs-Dr-ytKVG.cjs → hoist-non-react-statics.cjs-DGqlkKoS.cjs} +1 -1
- package/dist/{hoist-non-react-statics.cjs-CAHiRNzQ.js → hoist-non-react-statics.cjs-NQME298B.js} +1 -1
- package/dist/{index-EeoArxOx.cjs → index-41nUb2kP.cjs} +1 -1
- package/dist/{index-BlxaTV-D.js → index-6RFrSPs_.js} +1 -1
- package/dist/{index-64mXPFBC.js → index-B1vKwsDE.js} +1 -1
- package/dist/{index-Bq3leL2e.js → index-BXrmgzsU.js} +1 -1
- package/dist/{index-gY9e_8LL.cjs → index-BZnmT78f.cjs} +1 -1
- package/dist/{index-CQLF61YV.js → index-BgRyIsRu.js} +1 -1
- package/dist/{index-BPVoEhTF.cjs → index-BpbMKBf_.cjs} +1 -1
- package/dist/index-CDGmG-qk.cjs +1 -0
- package/dist/{index-S5Cd7WrG.js → index-CblbdqjE.js} +1 -1
- package/dist/{index-DaiUAQVF.cjs → index-Cp66dWMi.cjs} +1 -1
- package/dist/{index-DAOBjHnD.cjs → index-DA7SIHV1.cjs} +1 -1
- package/dist/{index-C1DkD2ug.cjs → index-DCFJmN23.cjs} +1 -1
- package/dist/{index-CkWvbrVT.js → index-Dt62UGku.js} +1 -1
- package/dist/index-wlx30R-h.js +62 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +60 -50
- package/dist/{react-toastify.esm--2awuizG.js → react-toastify.esm-BLQznunb.js} +1 -1
- package/dist/{react-toastify.esm-Dq1k28O7.cjs → react-toastify.esm-BoMuFZcq.cjs} +1 -1
- package/dist/{styled-components.browser.esm-CMTEDJ_5.cjs → styled-components.browser.esm-CvykQBGY.cjs} +1 -1
- package/dist/{styled-components.browser.esm-C9FYANiy.js → styled-components.browser.esm-D-n22PJk.js} +1 -1
- package/dist/usePopover.cjs +1 -1
- package/dist/usePopover.js +1 -1
- package/package.json +8 -2
- package/vite.config.js +14 -0
- package/dist/_commonjsHelpers-DKOUU3wS.cjs +0 -1
- package/dist/_commonjsHelpers-DaMA6jEr.js +0 -8
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { g as y } from "./_commonjsHelpers-BkfeUUK-.js";
|
|
2
|
+
import f from "react";
|
|
3
|
+
import { u as m, p as g } from "./SearchSection-xe0nvARV.js";
|
|
4
|
+
function v(t, e) {
|
|
5
|
+
for (var r = 0; r < e.length; r++) {
|
|
6
|
+
const s = e[r];
|
|
7
|
+
if (typeof s != "string" && !Array.isArray(s)) {
|
|
8
|
+
for (const o in s)
|
|
9
|
+
if (o !== "default" && !(o in t)) {
|
|
10
|
+
const i = Object.getOwnPropertyDescriptor(s, o);
|
|
11
|
+
i && Object.defineProperty(t, o, i.get ? i : {
|
|
12
|
+
enumerable: !0,
|
|
13
|
+
get: () => s[o]
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
return Object.freeze(Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }));
|
|
19
|
+
}
|
|
20
|
+
var P = Object.create, n = Object.defineProperty, O = Object.getOwnPropertyDescriptor, b = Object.getOwnPropertyNames, M = Object.getPrototypeOf, x = Object.prototype.hasOwnProperty, w = (t, e, r) => e in t ? n(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, j = (t, e) => {
|
|
21
|
+
for (var r in e)
|
|
22
|
+
n(t, r, { get: e[r], enumerable: !0 });
|
|
23
|
+
}, c = (t, e, r, s) => {
|
|
24
|
+
if (e && typeof e == "object" || typeof e == "function")
|
|
25
|
+
for (let o of b(e))
|
|
26
|
+
!x.call(t, o) && o !== r && n(t, o, { get: () => e[o], enumerable: !(s = O(e, o)) || s.enumerable });
|
|
27
|
+
return t;
|
|
28
|
+
}, D = (t, e, r) => (r = t != null ? P(M(t)) : {}, c(
|
|
29
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
30
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
31
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
32
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
33
|
+
!t || !t.__esModule ? n(r, "default", { value: t, enumerable: !0 }) : r,
|
|
34
|
+
t
|
|
35
|
+
)), S = (t) => c(n({}, "__esModule", { value: !0 }), t), a = (t, e, r) => (w(t, typeof e != "symbol" ? e + "" : e, r), r), d = {};
|
|
36
|
+
j(d, {
|
|
37
|
+
default: () => l
|
|
38
|
+
});
|
|
39
|
+
var h = S(d), u = D(f), p = m, _ = g;
|
|
40
|
+
const L = "https://widget.mixcloud.com/media/js/widgetApi.js", T = "Mixcloud";
|
|
41
|
+
class l extends u.Component {
|
|
42
|
+
constructor() {
|
|
43
|
+
super(...arguments), a(this, "callPlayer", p.callPlayer), a(this, "duration", null), a(this, "currentTime", null), a(this, "secondsLoaded", null), a(this, "mute", () => {
|
|
44
|
+
}), a(this, "unmute", () => {
|
|
45
|
+
}), a(this, "ref", (e) => {
|
|
46
|
+
this.iframe = e;
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
componentDidMount() {
|
|
50
|
+
this.props.onMount && this.props.onMount(this);
|
|
51
|
+
}
|
|
52
|
+
load(e) {
|
|
53
|
+
(0, p.getSDK)(L, T).then((r) => {
|
|
54
|
+
this.player = r.PlayerWidget(this.iframe), this.player.ready.then(() => {
|
|
55
|
+
this.player.events.play.on(this.props.onPlay), this.player.events.pause.on(this.props.onPause), this.player.events.ended.on(this.props.onEnded), this.player.events.error.on(this.props.error), this.player.events.progress.on((s, o) => {
|
|
56
|
+
this.currentTime = s, this.duration = o;
|
|
57
|
+
}), this.props.onReady();
|
|
58
|
+
});
|
|
59
|
+
}, this.props.onError);
|
|
60
|
+
}
|
|
61
|
+
play() {
|
|
62
|
+
this.callPlayer("play");
|
|
63
|
+
}
|
|
64
|
+
pause() {
|
|
65
|
+
this.callPlayer("pause");
|
|
66
|
+
}
|
|
67
|
+
stop() {
|
|
68
|
+
}
|
|
69
|
+
seekTo(e, r = !0) {
|
|
70
|
+
this.callPlayer("seek", e), r || this.pause();
|
|
71
|
+
}
|
|
72
|
+
setVolume(e) {
|
|
73
|
+
}
|
|
74
|
+
getDuration() {
|
|
75
|
+
return this.duration;
|
|
76
|
+
}
|
|
77
|
+
getCurrentTime() {
|
|
78
|
+
return this.currentTime;
|
|
79
|
+
}
|
|
80
|
+
getSecondsLoaded() {
|
|
81
|
+
return null;
|
|
82
|
+
}
|
|
83
|
+
render() {
|
|
84
|
+
const { url: e, config: r } = this.props, s = e.match(_.MATCH_URL_MIXCLOUD)[1], o = {
|
|
85
|
+
width: "100%",
|
|
86
|
+
height: "100%"
|
|
87
|
+
}, i = (0, p.queryString)({
|
|
88
|
+
...r.options,
|
|
89
|
+
feed: `/${s}/`
|
|
90
|
+
});
|
|
91
|
+
return /* @__PURE__ */ u.default.createElement(
|
|
92
|
+
"iframe",
|
|
93
|
+
{
|
|
94
|
+
key: s,
|
|
95
|
+
ref: this.ref,
|
|
96
|
+
style: o,
|
|
97
|
+
src: `https://player-widget.mixcloud.com/widget/iframe/?${i}`,
|
|
98
|
+
frameBorder: "0",
|
|
99
|
+
allow: "autoplay"
|
|
100
|
+
}
|
|
101
|
+
);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
a(l, "displayName", "Mixcloud");
|
|
105
|
+
a(l, "canPlay", _.canPlay.mixcloud);
|
|
106
|
+
a(l, "loopOnEnded", !0);
|
|
107
|
+
const C = /* @__PURE__ */ y(h), R = /* @__PURE__ */ v({
|
|
108
|
+
__proto__: null,
|
|
109
|
+
default: C
|
|
110
|
+
}, [h]);
|
|
111
|
+
export {
|
|
112
|
+
R as M
|
|
113
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const f=require("./_commonjsHelpers-DwTZ_eVU.cjs"),m=require("react"),c=require("./SearchSection-BUD-hnQA.cjs");function g(t,e){for(var r=0;r<e.length;r++){const s=e[r];if(typeof s!="string"&&!Array.isArray(s)){for(const o in s)if(o!=="default"&&!(o in t)){const i=Object.getOwnPropertyDescriptor(s,o);i&&Object.defineProperty(t,o,i.get?i:{enumerable:!0,get:()=>s[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var v=Object.create,a=Object.defineProperty,P=Object.getOwnPropertyDescriptor,O=Object.getOwnPropertyNames,b=Object.getPrototypeOf,M=Object.prototype.hasOwnProperty,x=(t,e,r)=>e in t?a(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,w=(t,e)=>{for(var r in e)a(t,r,{get:e[r],enumerable:!0})},d=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of O(e))!M.call(t,o)&&o!==r&&a(t,o,{get:()=>e[o],enumerable:!(s=P(e,o))||s.enumerable});return t},j=(t,e,r)=>(r=t!=null?v(b(t)):{},d(!t||!t.__esModule?a(r,"default",{value:t,enumerable:!0}):r,t)),S=t=>d(a({},"__esModule",{value:!0}),t),n=(t,e,r)=>(x(t,typeof e!="symbol"?e+"":e,r),r),h={};w(h,{default:()=>l});var y=S(h),p=j(m),u=c.utils,_=c.patterns;const D="https://widget.mixcloud.com/media/js/widgetApi.js",L="Mixcloud";class l extends p.Component{constructor(){super(...arguments),n(this,"callPlayer",u.callPlayer),n(this,"duration",null),n(this,"currentTime",null),n(this,"secondsLoaded",null),n(this,"mute",()=>{}),n(this,"unmute",()=>{}),n(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,u.getSDK)(D,L).then(r=>{this.player=r.PlayerWidget(this.iframe),this.player.ready.then(()=>{this.player.events.play.on(this.props.onPlay),this.player.events.pause.on(this.props.onPause),this.player.events.ended.on(this.props.onEnded),this.player.events.error.on(this.props.error),this.player.events.progress.on((s,o)=>{this.currentTime=s,this.duration=o}),this.props.onReady()})},this.props.onError)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return null}render(){const{url:e,config:r}=this.props,s=e.match(_.MATCH_URL_MIXCLOUD)[1],o={width:"100%",height:"100%"},i=(0,u.queryString)({...r.options,feed:`/${s}/`});return p.default.createElement("iframe",{key:s,ref:this.ref,style:o,src:`https://player-widget.mixcloud.com/widget/iframe/?${i}`,frameBorder:"0",allow:"autoplay"})}}n(l,"displayName","Mixcloud");n(l,"canPlay",_.canPlay.mixcloud);n(l,"loopOnEnded",!0);const T=f.getDefaultExportFromCjs(y),C=g({__proto__:null,default:T},[y]);exports.Mixcloud=C;
|
package/dist/Modal.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),y=require("react"),o=require("./index-
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),y=require("react"),o=require("./index-BpbMKBf_.cjs"),C=require("./emotion-styled.browser.esm-BtEseadx.cjs"),D=require("./Icon.cjs"),w=require("./utils-CZynEOC_.cjs"),V=require("./index-41nUb2kP.cjs"),L=require("./motion-B_VPZaJq.cjs"),G=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),N=require("./index-DZoWlChs.cjs"),x="5rem",h="3.8rem",i="1.5rem",W=(e,r,n)=>r&&n?e=="FULL"?`calc(100dvh - ${h} - ${x})`:`calc(100dvh - ${h} - ${x} - ${i})`:r?e=="FULL"?`calc(100dvh - ${h})`:`calc(100dvh - ${h} - ${i})`:n?e=="FULL"?`calc(100dvh - ${x})`:`calc(100dvh - ${x} - ${i})`:e=="FULL"?"100dvh":`calc(100dvh - ${i})`,X=e=>e=="FULL"?"100vw":`calc(100vw - ${i})`,J=(e,r,n)=>e=="FULL"?"0":`${r?"0":"16px"} 0 ${n?"0":"16px"} 0`,K=C.styled(L.motion.div)`
|
|
2
2
|
position: ${e=>e.scrollOverlay==!0?"absolute":"fixed"};
|
|
3
3
|
top: 0;
|
|
4
4
|
left: 0;
|
package/dist/Modal.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as t, Fragment as L, jsxs as R } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as z, useRef as X, useState as V, useImperativeHandle as q, useEffect as J } from "react";
|
|
3
|
-
import { P as o } from "./index-
|
|
3
|
+
import { P as o } from "./index-CblbdqjE.js";
|
|
4
4
|
import { s as C } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
5
5
|
import K from "./Icon.js";
|
|
6
6
|
import { b as w } from "./utils-BbgAIA9N.js";
|
|
7
|
-
import { r as Q } from "./index-
|
|
7
|
+
import { r as Q } from "./index-B1vKwsDE.js";
|
|
8
8
|
import { m as M } from "./motion-Ckekul_K.js";
|
|
9
9
|
import { u as Y } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
10
10
|
import { A as S } from "./index-D-c5IxDk.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const O=require("react/jsx-runtime"),e=require("./index-
|
|
1
|
+
"use strict";const O=require("react/jsx-runtime"),e=require("./index-BpbMKBf_.cjs"),s=require("react"),g=require("./CustomStyles-D3JePSNK.cjs"),h=require("./index-Cp66dWMi.cjs"),M=require("./Dropdown.cjs"),S=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),r=s.forwardRef((n,l)=>{const{styles:p,debounceTime:t=0,isSearchable:u=!0,isClearable:y=!0,onInputChange:o,size:i="small",color:a="primary",className:c="",style:T={},...P}=n,b=S.useTheme(),m=s.useCallback(h.debounce((d,f)=>{o==null||o(d,f)},t));return O.jsx(M.default,{isMulti:!0,ref:l,styles:p||g.customStyles,size:i,color:a,theme:b,isSearchable:u,isClearable:y,className:c,style:T,...P,onInputChange:m})});r.propTypes={options:e.PropTypes.array,styles:e.PropTypes.object,debounceTime:e.PropTypes.number,name:e.PropTypes.string,value:e.PropTypes.any,tabIndex:e.PropTypes.number,isSearchable:e.PropTypes.bool,isClearable:e.PropTypes.bool,isLoading:e.PropTypes.bool,isRtl:e.PropTypes.bool,isDisabled:e.PropTypes.bool,readOnly:e.PropTypes.bool,closeMenuOnSelect:e.PropTypes.bool,closeMenuOnScroll:e.PropTypes.oneOfType([e.PropTypes.bool,e.PropTypes.func]),escapeClearsValue:e.PropTypes.bool,filterOption:e.PropTypes.func,formatGroupLabel:e.PropTypes.func,formatOptionLabel:e.PropTypes.func,getOptionLabel:e.PropTypes.func,getOptionValue:e.PropTypes.func,hideSelectedOptions:e.PropTypes.bool,id:e.PropTypes.any,inputid:e.PropTypes.any,isOptionDisabled:e.PropTypes.func,isOptionSelected:e.PropTypes.func,loadingMessage:e.PropTypes.func,minMenuHeight:e.PropTypes.number,maxMenuHeight:e.PropTypes.number,menuPlacement:e.PropTypes.oneOf(["bottom","auto","top"]),menuPosition:e.PropTypes.oneOf(["absolute","fixed"]),menuShouldBlockScroll:e.PropTypes.bool,menuShouldScrollIntoView:e.PropTypes.bool,openMenuOnFocus:e.PropTypes.bool,openMenuOnClick:e.PropTypes.bool,autoFocus:e.PropTypes.bool,placeholder:e.PropTypes.any,noOptionsMessage:e.PropTypes.string,menuIsOpen:e.PropTypes.bool,components:e.PropTypes.object,defaultValue:e.PropTypes.string,defaultInputValue:e.PropTypes.string,defaultMenuIsOpen:e.PropTypes.bool,delimiter:e.PropTypes.string,onChange:e.PropTypes.func,onInputChange:e.PropTypes.func,onMenuOpen:e.PropTypes.func,onMenuClose:e.PropTypes.func,onFocus:e.PropTypes.func,onBlur:e.PropTypes.func,onKeyDown:e.PropTypes.func,className:e.PropTypes.string,style:e.PropTypes.object,color:e.PropTypes.oneOf(["primary","secondary","success","warning","danger","information","neutral","gray"]),size:e.PropTypes.oneOf(["small","medium","large"])};module.exports=r;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as g } from "react/jsx-runtime";
|
|
2
|
-
import { P as e } from "./index-
|
|
2
|
+
import { P as e } from "./index-CblbdqjE.js";
|
|
3
3
|
import { forwardRef as y, useCallback as h } from "react";
|
|
4
|
-
import { a as M } from "./CustomStyles-
|
|
5
|
-
import { d as S } from "./index-
|
|
4
|
+
import { a as M } from "./CustomStyles-DpKzWczC.js";
|
|
5
|
+
import { d as S } from "./index-Dt62UGku.js";
|
|
6
6
|
import C from "./Dropdown.js";
|
|
7
7
|
import { u as I } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
8
8
|
const w = y((l, t) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const O=require("react/jsx-runtime"),e=require("./index-
|
|
1
|
+
"use strict";const O=require("react/jsx-runtime"),e=require("./index-BpbMKBf_.cjs"),s=require("react"),g=require("./CustomStyles-D3JePSNK.cjs"),h=require("./index-Cp66dWMi.cjs"),M=require("./DropdownLookup.cjs"),S=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),r=s.forwardRef((n,l)=>{const{styles:p,debounceTime:t=0,isSearchable:u=!0,isClearable:y=!0,onInputChange:o,size:a="small",color:i="primary",className:c="",style:T={},...P}=n,b=S.useTheme(),m=s.useCallback(h.debounce((d,f)=>{o==null||o(d,f)},t));return O.jsx(M,{isMulti:!0,ref:l,styles:p||g.customStyles,size:a,color:i,theme:b,isSearchable:u,isClearable:y,onInputChange:m,className:c,style:T,...P})});r.propTypes={defaultOptions:e.PropTypes.oneOfType([e.PropTypes.bool,e.PropTypes.array]),cacheOptions:e.PropTypes.any,loadOptions:e.PropTypes.func,styles:e.PropTypes.object,debounceTime:e.PropTypes.number,name:e.PropTypes.string,value:e.PropTypes.any,tabIndex:e.PropTypes.number,isSearchable:e.PropTypes.bool,isClearable:e.PropTypes.bool,isLoading:e.PropTypes.bool,isRtl:e.PropTypes.bool,isDisabled:e.PropTypes.bool,readOnly:e.PropTypes.bool,closeMenuOnSelect:e.PropTypes.bool,closeMenuOnScroll:e.PropTypes.oneOfType([e.PropTypes.bool,e.PropTypes.func]),escapeClearsValue:e.PropTypes.bool,filterOption:e.PropTypes.func,formatGroupLabel:e.PropTypes.func,formatOptionLabel:e.PropTypes.func,getOptionLabel:e.PropTypes.func,getOptionValue:e.PropTypes.func,hideSelectedOptions:e.PropTypes.bool,id:e.PropTypes.any,inputid:e.PropTypes.any,isOptionDisabled:e.PropTypes.func,isOptionSelected:e.PropTypes.func,loadingMessage:e.PropTypes.func,minMenuHeight:e.PropTypes.number,maxMenuHeight:e.PropTypes.number,menuPlacement:e.PropTypes.oneOf(["bottom","auto","top"]),menuPosition:e.PropTypes.oneOf(["absolute","fixed"]),menuShouldBlockScroll:e.PropTypes.bool,menuShouldScrollIntoView:e.PropTypes.bool,openMenuOnFocus:e.PropTypes.bool,openMenuOnClick:e.PropTypes.bool,autoFocus:e.PropTypes.bool,placeholder:e.PropTypes.any,noOptionsMessage:e.PropTypes.string,menuIsOpen:e.PropTypes.bool,components:e.PropTypes.object,defaultValue:e.PropTypes.string,defaultInputValue:e.PropTypes.string,defaultMenuIsOpen:e.PropTypes.bool,delimiter:e.PropTypes.string,onChange:e.PropTypes.func,onInputChange:e.PropTypes.func,onMenuOpen:e.PropTypes.func,onMenuClose:e.PropTypes.func,onFocus:e.PropTypes.func,onBlur:e.PropTypes.func,onKeyDown:e.PropTypes.func,className:e.PropTypes.string,style:e.PropTypes.object,color:e.PropTypes.oneOf(["primary","secondary","success","warning","danger","information","neutral","gray"]),size:e.PropTypes.oneOf(["small","medium","large"])};module.exports=r;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as y } from "react/jsx-runtime";
|
|
2
|
-
import { P as e } from "./index-
|
|
2
|
+
import { P as e } from "./index-CblbdqjE.js";
|
|
3
3
|
import { forwardRef as g, useCallback as h } from "react";
|
|
4
|
-
import { a as M } from "./CustomStyles-
|
|
5
|
-
import { d as S } from "./index-
|
|
4
|
+
import { a as M } from "./CustomStyles-DpKzWczC.js";
|
|
5
|
+
import { d as S } from "./index-Dt62UGku.js";
|
|
6
6
|
import C from "./DropdownLookup.js";
|
|
7
7
|
import { u as I } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
8
8
|
const T = g((l, t) => {
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import { g as P } from "./_commonjsHelpers-BkfeUUK-.js";
|
|
2
|
+
import g from "react";
|
|
3
|
+
import { p as E } from "./SearchSection-xe0nvARV.js";
|
|
4
|
+
function b(r, e) {
|
|
5
|
+
for (var t = 0; t < e.length; t++) {
|
|
6
|
+
const i = e[t];
|
|
7
|
+
if (typeof i != "string" && !Array.isArray(i)) {
|
|
8
|
+
for (const s in i)
|
|
9
|
+
if (s !== "default" && !(s in r)) {
|
|
10
|
+
const o = Object.getOwnPropertyDescriptor(i, s);
|
|
11
|
+
o && Object.defineProperty(r, s, o.get ? o : {
|
|
12
|
+
enumerable: !0,
|
|
13
|
+
get: () => i[s]
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
return Object.freeze(Object.defineProperty(r, Symbol.toStringTag, { value: "Module" }));
|
|
19
|
+
}
|
|
20
|
+
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) => {
|
|
21
|
+
for (var t in e)
|
|
22
|
+
a(r, t, { get: e[t], enumerable: !0 });
|
|
23
|
+
}, v = (r, e, t, i) => {
|
|
24
|
+
if (e && typeof e == "object" || typeof e == "function")
|
|
25
|
+
for (let s of k(e))
|
|
26
|
+
!O.call(r, s) && s !== t && a(r, s, { get: () => e[s], enumerable: !(i = L(e, s)) || i.enumerable });
|
|
27
|
+
return r;
|
|
28
|
+
}, R = (r, e, t) => (t = r != null ? _(I(r)) : {}, v(
|
|
29
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
30
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
31
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
32
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
33
|
+
!r || !r.__esModule ? a(t, "default", { value: r, enumerable: !0 }) : t,
|
|
34
|
+
r
|
|
35
|
+
)), w = (r) => v(a({}, "__esModule", { value: !0 }), r), n = (r, e, t) => (M(r, typeof e != "symbol" ? e + "" : e, t), t), m = {};
|
|
36
|
+
x(m, {
|
|
37
|
+
default: () => l
|
|
38
|
+
});
|
|
39
|
+
var y = w(m), f = R(g), p = E;
|
|
40
|
+
const D = "https://cdn.jsdelivr.net/npm/@mux/mux-player@VERSION/dist/mux-player.mjs";
|
|
41
|
+
class l extends f.Component {
|
|
42
|
+
constructor() {
|
|
43
|
+
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) => {
|
|
44
|
+
this.props.onSeek(e.target.currentTime);
|
|
45
|
+
}), n(this, "onDurationChange", () => {
|
|
46
|
+
const e = this.getDuration();
|
|
47
|
+
this.props.onDuration(e);
|
|
48
|
+
}), n(this, "mute", () => {
|
|
49
|
+
this.player.muted = !0;
|
|
50
|
+
}), n(this, "unmute", () => {
|
|
51
|
+
this.player.muted = !1;
|
|
52
|
+
}), n(this, "ref", (e) => {
|
|
53
|
+
this.player = e;
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
componentDidMount() {
|
|
57
|
+
this.props.onMount && this.props.onMount(this), this.addListeners(this.player);
|
|
58
|
+
const e = this.getPlaybackId(this.props.url);
|
|
59
|
+
e && (this.player.playbackId = e);
|
|
60
|
+
}
|
|
61
|
+
componentWillUnmount() {
|
|
62
|
+
this.player.playbackId = null, this.removeListeners(this.player);
|
|
63
|
+
}
|
|
64
|
+
addListeners(e) {
|
|
65
|
+
const { playsinline: t } = this.props;
|
|
66
|
+
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", "");
|
|
67
|
+
}
|
|
68
|
+
removeListeners(e) {
|
|
69
|
+
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);
|
|
70
|
+
}
|
|
71
|
+
async load(e) {
|
|
72
|
+
var t;
|
|
73
|
+
const { onError: i, config: s } = this.props;
|
|
74
|
+
if (!((t = globalThis.customElements) != null && t.get("mux-player")))
|
|
75
|
+
try {
|
|
76
|
+
await import(
|
|
77
|
+
/* webpackIgnore: true */
|
|
78
|
+
`${D.replace("VERSION", s.version)}`
|
|
79
|
+
), this.props.onLoaded();
|
|
80
|
+
} catch (u) {
|
|
81
|
+
i(u);
|
|
82
|
+
}
|
|
83
|
+
const [, o] = e.match(p.MATCH_URL_MUX);
|
|
84
|
+
this.player.playbackId = o;
|
|
85
|
+
}
|
|
86
|
+
play() {
|
|
87
|
+
const e = this.player.play();
|
|
88
|
+
e && e.catch(this.props.onError);
|
|
89
|
+
}
|
|
90
|
+
pause() {
|
|
91
|
+
this.player.pause();
|
|
92
|
+
}
|
|
93
|
+
stop() {
|
|
94
|
+
this.player.playbackId = null;
|
|
95
|
+
}
|
|
96
|
+
seekTo(e, t = !0) {
|
|
97
|
+
this.player.currentTime = e, t || this.pause();
|
|
98
|
+
}
|
|
99
|
+
setVolume(e) {
|
|
100
|
+
this.player.volume = e;
|
|
101
|
+
}
|
|
102
|
+
enablePIP() {
|
|
103
|
+
this.player.requestPictureInPicture && document.pictureInPictureElement !== this.player && this.player.requestPictureInPicture();
|
|
104
|
+
}
|
|
105
|
+
disablePIP() {
|
|
106
|
+
document.exitPictureInPicture && document.pictureInPictureElement === this.player && document.exitPictureInPicture();
|
|
107
|
+
}
|
|
108
|
+
setPlaybackRate(e) {
|
|
109
|
+
try {
|
|
110
|
+
this.player.playbackRate = e;
|
|
111
|
+
} catch (t) {
|
|
112
|
+
this.props.onError(t);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
getDuration() {
|
|
116
|
+
if (!this.player)
|
|
117
|
+
return null;
|
|
118
|
+
const { duration: e, seekable: t } = this.player;
|
|
119
|
+
return e === 1 / 0 && t.length > 0 ? t.end(t.length - 1) : e;
|
|
120
|
+
}
|
|
121
|
+
getCurrentTime() {
|
|
122
|
+
return this.player ? this.player.currentTime : null;
|
|
123
|
+
}
|
|
124
|
+
getSecondsLoaded() {
|
|
125
|
+
if (!this.player)
|
|
126
|
+
return null;
|
|
127
|
+
const { buffered: e } = this.player;
|
|
128
|
+
if (e.length === 0)
|
|
129
|
+
return 0;
|
|
130
|
+
const t = e.end(e.length - 1), i = this.getDuration();
|
|
131
|
+
return t > i ? i : t;
|
|
132
|
+
}
|
|
133
|
+
getPlaybackId(e) {
|
|
134
|
+
const [, t] = e.match(p.MATCH_URL_MUX);
|
|
135
|
+
return t;
|
|
136
|
+
}
|
|
137
|
+
render() {
|
|
138
|
+
const { url: e, playing: t, loop: i, controls: s, muted: o, config: u, width: h, height: c } = this.props, d = {
|
|
139
|
+
width: h === "auto" ? h : "100%",
|
|
140
|
+
height: c === "auto" ? c : "100%"
|
|
141
|
+
};
|
|
142
|
+
return s === !1 && (d["--controls"] = "none"), /* @__PURE__ */ f.default.createElement(
|
|
143
|
+
"mux-player",
|
|
144
|
+
{
|
|
145
|
+
ref: this.ref,
|
|
146
|
+
"playback-id": this.getPlaybackId(e),
|
|
147
|
+
style: d,
|
|
148
|
+
preload: "auto",
|
|
149
|
+
autoPlay: t || void 0,
|
|
150
|
+
muted: o ? "" : void 0,
|
|
151
|
+
loop: i ? "" : void 0,
|
|
152
|
+
...u.attributes
|
|
153
|
+
}
|
|
154
|
+
);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
n(l, "displayName", "Mux");
|
|
158
|
+
n(l, "canPlay", p.canPlay.mux);
|
|
159
|
+
const j = /* @__PURE__ */ P(y), T = /* @__PURE__ */ b({
|
|
160
|
+
__proto__: null,
|
|
161
|
+
default: j
|
|
162
|
+
}, [y]);
|
|
163
|
+
export {
|
|
164
|
+
T as M
|
|
165
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const P=require("./_commonjsHelpers-DwTZ_eVU.cjs"),g=require("react"),E=require("./SearchSection-BUD-hnQA.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,4 +1,4 @@
|
|
|
1
|
-
"use strict";const o=require("react/jsx-runtime"),r=require("react"),t=require("./index-
|
|
1
|
+
"use strict";const o=require("react/jsx-runtime"),r=require("react"),t=require("./index-BpbMKBf_.cjs"),b=require("./emotion-styled.browser.esm-BtEseadx.cjs"),w=require("./utils-CZynEOC_.cjs"),M=require("./motion-B_VPZaJq.cjs"),S=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),q=require("./index-DZoWlChs.cjs"),j=b.styled(M.motion.div)`
|
|
2
2
|
margin-left: 0.3rem;
|
|
3
3
|
padding-left: 0.3rem;
|
|
4
4
|
border-left: ${s=>`2px solid ${w.getColorRgbaValue(s.theme,"MenuItem",s.color,"focus","background")}`};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as S, Fragment as p, jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as w, useState as x, cloneElement as l, Children as P, isValidElement as O } from "react";
|
|
3
|
-
import { P as t } from "./index-
|
|
3
|
+
import { P as t } from "./index-CblbdqjE.js";
|
|
4
4
|
import { s as h } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
5
5
|
import { b as D } from "./utils-BbgAIA9N.js";
|
|
6
6
|
import { m as j } from "./motion-Ckekul_K.js";
|
package/dist/NestedMenuItem.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const n=require("react/jsx-runtime"),r=require("react"),t=require("./index-
|
|
1
|
+
"use strict";const n=require("react/jsx-runtime"),r=require("react"),t=require("./index-BpbMKBf_.cjs"),M=require("./emotion-styled.browser.esm-BtEseadx.cjs"),q=require("./utils-CZynEOC_.cjs"),w=require("./motion-B_VPZaJq.cjs"),j=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),O=require("./index-DZoWlChs.cjs"),$=M.styled(w.motion.div)`
|
|
2
2
|
${o=>o.tuckIn==!0&&`margin-left: ${o.tuckInSize};`}
|
|
3
3
|
${o=>o.tuckIn==!0&&`padding-left: ${o.tuckInSize};`}
|
|
4
4
|
${o=>o.tuckIn==!0&&`border-left: 2px solid ${q.getColorRgbaValue(o.theme,"MenuItem",o.color,"focus","background","backgroundOpacity")};`}
|
package/dist/NestedMenuItem.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as O, Fragment as l, jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as P, useState as h, cloneElement as u, Children as w, isValidElement as z } from "react";
|
|
3
|
-
import { P as t } from "./index-
|
|
3
|
+
import { P as t } from "./index-CblbdqjE.js";
|
|
4
4
|
import { s as $ } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
5
5
|
import { b as j } from "./utils-BbgAIA9N.js";
|
|
6
6
|
import { m as D } from "./motion-Ckekul_K.js";
|
package/dist/Notification.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=require("./react-toastify.esm-
|
|
1
|
+
"use strict";const t=require("./react-toastify.esm-BoMuFZcq.cjs"),s=t.toast;module.exports=s;
|
package/dist/Notification.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const s=require("react/jsx-runtime"),N=require("react"),e=require("./index-
|
|
1
|
+
"use strict";const s=require("react/jsx-runtime"),N=require("react"),e=require("./index-BpbMKBf_.cjs"),_=require("./emotion-styled.browser.esm-BtEseadx.cjs"),R=require("./react-toastify.esm-BoMuFZcq.cjs"),t=require("./utils-CZynEOC_.cjs"),v=require("./ThemeProvider.cjs"),O=_.styled.div`
|
|
2
2
|
& .lnc-notification {
|
|
3
3
|
& > div {
|
|
4
4
|
background-color: ${o=>t.getColorRgbaValue(o.theme,"Notification",o.color,"enabled","background","backgroundOpacity")};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as O } from "react";
|
|
3
|
-
import { P as t } from "./index-
|
|
3
|
+
import { P as t } from "./index-CblbdqjE.js";
|
|
4
4
|
import { s as _ } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
5
|
-
import { T as v } from "./react-toastify.esm
|
|
5
|
+
import { T as v } from "./react-toastify.esm-BLQznunb.js";
|
|
6
6
|
import { b as e, a as C } from "./utils-BbgAIA9N.js";
|
|
7
7
|
import { useTheme as $ } from "./ThemeProvider.js";
|
|
8
8
|
const P = _.div`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const o=require("react/jsx-runtime"),P=require("react"),t=require("./index-
|
|
1
|
+
"use strict";const o=require("react/jsx-runtime"),P=require("react"),t=require("./index-BpbMKBf_.cjs"),N=require("./emotion-styled.browser.esm-BtEseadx.cjs"),T=require("./Icon.cjs"),i=require("./utils-CZynEOC_.cjs"),w=require("./Avatar.cjs"),j=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),v=N.styled.div`
|
|
2
2
|
${e=>i.getComponentTypographyCss(e.theme,"Notification","small","enabled")};
|
|
3
3
|
|
|
4
4
|
word-wrap: break-word;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as a, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as N } from "react";
|
|
3
|
-
import { P as i } from "./index-
|
|
3
|
+
import { P as i } from "./index-CblbdqjE.js";
|
|
4
4
|
import { s as v } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
5
5
|
import w from "./Icon.js";
|
|
6
6
|
import { c as $, b as s, g as B } from "./utils-BbgAIA9N.js";
|
package/dist/NumberInput.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const g=require("react/jsx-runtime"),r=require("./index-
|
|
1
|
+
"use strict";const g=require("react/jsx-runtime"),r=require("./index-BpbMKBf_.cjs"),n=require("react"),L=require("./index-Cp66dWMi.cjs"),m=require("./emotion-styled.browser.esm-BtEseadx.cjs"),o=require("./utils-CZynEOC_.cjs"),Q=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),Y=m.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
|
package/dist/NumberInput.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as q, jsx as $ } from "react/jsx-runtime";
|
|
2
|
-
import { P as t } from "./index-
|
|
2
|
+
import { P as t } from "./index-CblbdqjE.js";
|
|
3
3
|
import { forwardRef as H, useRef as J, useState as D, useEffect as L, useCallback as Q } from "react";
|
|
4
|
-
import { d as Y } from "./index-
|
|
4
|
+
import { d as Y } from "./index-Dt62UGku.js";
|
|
5
5
|
import { s as m } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
6
6
|
import { d as s, b as l, a as Z, e as v, h as F, c as ee } from "./utils-BbgAIA9N.js";
|
|
7
7
|
import { u as ae } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
package/dist/PageLayout.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const x=require("react/jsx-runtime"),a=require("react"),E=require("./index-
|
|
1
|
+
"use strict";const x=require("react/jsx-runtime"),a=require("react"),E=require("./index-BpbMKBf_.cjs"),S=require("./emotion-styled.browser.esm-BtEseadx.cjs"),T=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),C=S.styled.section`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: auto;
|
|
4
4
|
flex-direction: ${s=>s.hasSidebar?"row":"column"};
|
package/dist/PageLayout.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as E } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as T, Children as d, isValidElement as S, cloneElement as y } from "react";
|
|
3
|
-
import { P as L } from "./index-
|
|
3
|
+
import { P as L } from "./index-CblbdqjE.js";
|
|
4
4
|
import { s as C } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
5
5
|
import { u as Y } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
6
6
|
const N = C.section`
|
package/dist/Pagination.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const o=require("react/jsx-runtime"),E=require("react"),t=require("./index-
|
|
1
|
+
"use strict";const o=require("react/jsx-runtime"),E=require("react"),t=require("./index-BpbMKBf_.cjs"),P=require("./Button.cjs"),b=require("./IconButton.cjs"),_=require("./ButtonGroup.cjs"),C=require("./emotion-styled.browser.esm-BtEseadx.cjs"),G=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),w=require("./useUpdateEffect-BtMgpgIV.cjs"),U=C.styled.div`
|
|
2
2
|
display: inline-flex;
|
|
3
3
|
flex-wrap: wrap;
|
|
4
4
|
width: 100%;
|
package/dist/Pagination.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as i, jsxs as G, Fragment as $ } from "react/jsx-runtime";
|
|
2
2
|
import { useState as E } from "react";
|
|
3
|
-
import { P as t } from "./index-
|
|
3
|
+
import { P as t } from "./index-CblbdqjE.js";
|
|
4
4
|
import h from "./Button.js";
|
|
5
5
|
import b from "./IconButton.js";
|
|
6
6
|
import U from "./ButtonGroup.js";
|
package/dist/PasswordInput.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const u=require("react/jsx-runtime"),a=require("react"),r=require("./index-
|
|
1
|
+
"use strict";const u=require("react/jsx-runtime"),a=require("react"),r=require("./index-BpbMKBf_.cjs"),L=require("./index-Cp66dWMi.cjs"),D=require("./Icon.cjs"),h=require("./emotion-styled.browser.esm-BtEseadx.cjs"),o=require("./utils-CZynEOC_.cjs"),A=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),G=h.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
|
package/dist/PasswordInput.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as q, jsx as m } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as A, useRef as G, useState as p, useEffect as I, useCallback as H } from "react";
|
|
3
|
-
import { P as n } from "./index-
|
|
4
|
-
import { d as J } from "./index-
|
|
3
|
+
import { P as n } from "./index-CblbdqjE.js";
|
|
4
|
+
import { d as J } from "./index-Dt62UGku.js";
|
|
5
5
|
import K from "./Icon.js";
|
|
6
6
|
import { s as h } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
7
7
|
import { d as f, b as r, a as M, e as Q, h as w, c as X } from "./utils-BbgAIA9N.js";
|
package/dist/Popover.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const s=require("react/jsx-runtime"),e=require("./index-
|
|
1
|
+
"use strict";const s=require("react/jsx-runtime"),e=require("./index-BpbMKBf_.cjs"),i=require("./PopoverContext.cjs"),u=require("./usePopover.cjs");function o({children:t,modal:r=!1,...p}){const n=u({modal:r,...p});return s.jsx(i.Provider,{value:n,children:t})}o.propTypes={initialOpen:e.PropTypes.bool,placement:e.PropTypes.oneOf(["center","top","right","bottom","left","top-start","top-end","right-start","right-end","bottom-start","bottom-end","left-start","left-end"]),modal:e.PropTypes.bool,offsetValue:e.PropTypes.number,open:e.PropTypes.bool,onOpenChange:e.PropTypes.func};module.exports=o;
|
package/dist/Popover.js
CHANGED
package/dist/PopoverContent.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const n=require("react/jsx-runtime"),c=require("react"),s=require("./floating-ui.react.esm-
|
|
1
|
+
"use strict";const n=require("react/jsx-runtime"),c=require("react"),s=require("./floating-ui.react.esm-CiYofNnh.cjs"),i=require("./index-BpbMKBf_.cjs"),x=require("./PopoverContext.cjs"),h=require("./emotion-styled.browser.esm-BtEseadx.cjs"),a=require("./utils-CZynEOC_.cjs"),y=require("./motion-B_VPZaJq.cjs"),f=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),P=h.styled(y.motion.div)`
|
|
2
2
|
font-family: ${e=>{var t,r;return(r=(t=e.theme)==null?void 0:t.typography)==null?void 0:r.fontFamily}};
|
|
3
3
|
animation: fadeIn 0.4s;
|
|
4
4
|
box-shadow: ${e=>a.getComponentPropValue(e.theme,"Popover",e.color,"enabled","boxShadow")};
|
package/dist/PopoverContent.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as c, useContext as b } from "react";
|
|
3
|
-
import { a as f, F as u, b as g } from "./floating-ui.react.esm-
|
|
4
|
-
import { P as n } from "./index-
|
|
3
|
+
import { a as f, F as u, b as g } from "./floating-ui.react.esm-CfpRzwmn.js";
|
|
4
|
+
import { P as n } from "./index-CblbdqjE.js";
|
|
5
5
|
import h from "./PopoverContext.js";
|
|
6
6
|
import { s as x } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
7
7
|
import { g as y, a as P, b as v } from "./utils-BbgAIA9N.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const i=require("react/jsx-runtime"),u=require("./floating-ui.react.esm-
|
|
1
|
+
"use strict";const i=require("react/jsx-runtime"),u=require("./floating-ui.react.esm-CiYofNnh.cjs"),r=require("react"),p=require("./PopoverContext.cjs"),a=()=>{const e=r.useContext(p);if(e==null)throw new Error("Popover components must be wrapped in <Popover />");return e},f=r.forwardRef(function({children:n,...s},c){const{setDescriptionId:o}=a(),t=u.useId();return r.useLayoutEffect(()=>(o(t),()=>o(void 0)),[t,o]),i.jsx("p",{...s,ref:c,id:t,children:n})});module.exports=f;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { u as i } from "./floating-ui.react.esm-
|
|
2
|
+
import { u as i } from "./floating-ui.react.esm-CfpRzwmn.js";
|
|
3
3
|
import { forwardRef as u, useLayoutEffect as c, useContext as f } from "react";
|
|
4
4
|
import m from "./PopoverContext.js";
|
|
5
5
|
const a = () => {
|
package/dist/PopoverHeading.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const c=require("react/jsx-runtime"),r=require("react"),i=require("./floating-ui.react.esm-
|
|
1
|
+
"use strict";const c=require("react/jsx-runtime"),r=require("react"),i=require("./floating-ui.react.esm-CiYofNnh.cjs"),a=require("./PopoverContext.cjs"),p=()=>{const e=r.useContext(a);if(e==null)throw new Error("Popover components must be wrapped in <Popover />");return e},d=r.forwardRef(function({children:n,...s},u){const{setLabelId:o}=p(),t=i.useId();return r.useLayoutEffect(()=>(o(t),()=>o(void 0)),[t,o]),c.jsx("h2",{...s,ref:u,id:t,children:n})});module.exports=d;
|
package/dist/PopoverHeading.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as p } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as u, useLayoutEffect as f, useContext as i } from "react";
|
|
3
|
-
import { u as a } from "./floating-ui.react.esm-
|
|
3
|
+
import { u as a } from "./floating-ui.react.esm-CfpRzwmn.js";
|
|
4
4
|
import m from "./PopoverContext.js";
|
|
5
5
|
const c = () => {
|
|
6
6
|
const o = i(m);
|
package/dist/PopoverTrigger.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const u=require("react/jsx-runtime"),o=require("react"),f=require("./floating-ui.react.esm-
|
|
1
|
+
"use strict";const u=require("react/jsx-runtime"),o=require("react"),f=require("./floating-ui.react.esm-CiYofNnh.cjs"),l=require("./index-BpbMKBf_.cjs"),P=require("./PopoverContext.cjs"),d=()=>{const r=o.useContext(P);if(r==null)throw new Error("Popover components must be wrapped in <Popover />");return r},c=o.forwardRef(function({children:e,asChild:p,...n},i){const t=d(),a=e.ref,s=f.useMergeRefs([t.reference,i,a]);return p&&o.isValidElement(e)?o.cloneElement(e,t.getReferenceProps({ref:s,...n,...e.props,"data-state":t.open?"open":"closed"})):u.jsx("div",{ref:s,"data-state":t.open?"open":"closed",style:{width:"max-content"},...t.getReferenceProps(n),children:e})});c.propTypes={asChild:l.PropTypes.bool};module.exports=c;
|