@anker-in/ui 0.1.1 → 0.1.3
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/index.js +54 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +54 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -8,10 +8,6 @@ import List from 'antd-mobile/es/components/list';
|
|
|
8
8
|
import 'antd-mobile/es/components/index-bar/index-bar.css';
|
|
9
9
|
import 'antd-mobile/es/components/list/list.css';
|
|
10
10
|
import { Swiper, SwiperSlide } from 'swiper/react';
|
|
11
|
-
import { Navigation, Pagination, Autoplay } from 'swiper/modules';
|
|
12
|
-
import 'swiper/css';
|
|
13
|
-
import 'swiper/css/navigation';
|
|
14
|
-
import 'swiper/css/pagination';
|
|
15
11
|
import dayjs from 'dayjs';
|
|
16
12
|
import 'dayjs/locale/zh-cn';
|
|
17
13
|
import { theme, ConfigProvider, Calendar, Select } from 'antd';
|
|
@@ -19,6 +15,12 @@ import dayLocaleData from 'dayjs/plugin/localeData';
|
|
|
19
15
|
import weekday from 'dayjs/plugin/weekday';
|
|
20
16
|
import weekOfYear from 'dayjs/plugin/weekOfYear';
|
|
21
17
|
|
|
18
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
19
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
20
|
+
}) : x)(function(x) {
|
|
21
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
22
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
23
|
+
});
|
|
22
24
|
function cn(...inputs) {
|
|
23
25
|
return twMerge(clsx(inputs));
|
|
24
26
|
}
|
|
@@ -1847,6 +1849,53 @@ var DemoRoom = ({
|
|
|
1847
1849
|
] });
|
|
1848
1850
|
};
|
|
1849
1851
|
DemoRoom.displayName = "DemoRoom";
|
|
1852
|
+
var Navigation;
|
|
1853
|
+
var Pagination;
|
|
1854
|
+
var Autoplay;
|
|
1855
|
+
var swiperVersion = "11+";
|
|
1856
|
+
try {
|
|
1857
|
+
const modules = __require("swiper/modules");
|
|
1858
|
+
Navigation = modules.Navigation;
|
|
1859
|
+
Pagination = modules.Pagination;
|
|
1860
|
+
Autoplay = modules.Autoplay;
|
|
1861
|
+
swiperVersion = "11+";
|
|
1862
|
+
} catch (e) {
|
|
1863
|
+
try {
|
|
1864
|
+
const SwiperCore = __require("swiper");
|
|
1865
|
+
const SwiperNavigation = __require("swiper/modules/navigation");
|
|
1866
|
+
const SwiperPagination = __require("swiper/modules/pagination");
|
|
1867
|
+
const SwiperAutoplay = __require("swiper/modules/autoplay");
|
|
1868
|
+
const SwiperClass = SwiperCore.default || SwiperCore;
|
|
1869
|
+
if (SwiperClass && SwiperClass.use) {
|
|
1870
|
+
SwiperClass.use([
|
|
1871
|
+
SwiperNavigation.default || SwiperNavigation,
|
|
1872
|
+
SwiperPagination.default || SwiperPagination,
|
|
1873
|
+
SwiperAutoplay.default || SwiperAutoplay
|
|
1874
|
+
]);
|
|
1875
|
+
}
|
|
1876
|
+
Navigation = SwiperNavigation.default || SwiperNavigation;
|
|
1877
|
+
Pagination = SwiperPagination.default || SwiperPagination;
|
|
1878
|
+
Autoplay = SwiperAutoplay.default || SwiperAutoplay;
|
|
1879
|
+
swiperVersion = "8";
|
|
1880
|
+
} catch (e2) {
|
|
1881
|
+
console.warn("Failed to load swiper modules:", e2);
|
|
1882
|
+
}
|
|
1883
|
+
}
|
|
1884
|
+
if (typeof window !== "undefined") {
|
|
1885
|
+
try {
|
|
1886
|
+
__require("swiper/css");
|
|
1887
|
+
__require("swiper/css/navigation");
|
|
1888
|
+
__require("swiper/css/pagination");
|
|
1889
|
+
} catch (e) {
|
|
1890
|
+
try {
|
|
1891
|
+
__require("swiper/swiper.min.css");
|
|
1892
|
+
__require("swiper/modules/navigation/navigation.min.css");
|
|
1893
|
+
__require("swiper/modules/pagination/pagination.min.css");
|
|
1894
|
+
} catch (e2) {
|
|
1895
|
+
console.warn("Failed to load swiper styles");
|
|
1896
|
+
}
|
|
1897
|
+
}
|
|
1898
|
+
}
|
|
1850
1899
|
var defaultDescriptions = [
|
|
1851
1900
|
"Norem ipsum dolor sit amet, consectetur adipiscing elit. Nunc vulputate libero et velit interdum, ac aliquet odio mattis.",
|
|
1852
1901
|
"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc vulputate libero et velit interdum, ac aliquet odio mattis. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos."
|
|
@@ -2031,7 +2080,7 @@ var DemoRoomDetail = ({
|
|
|
2031
2080
|
/* @__PURE__ */ jsx("div", { className: "relative h-[400px] rounded-2xl overflow-hidden", children: images.length > 0 ? /* @__PURE__ */ jsx(
|
|
2032
2081
|
Swiper,
|
|
2033
2082
|
{
|
|
2034
|
-
modules: [Navigation, Pagination, Autoplay],
|
|
2083
|
+
...swiperVersion === "11+" && Navigation && Pagination && Autoplay ? { modules: [Navigation, Pagination, Autoplay] } : {},
|
|
2035
2084
|
spaceBetween: 0,
|
|
2036
2085
|
slidesPerView: 1,
|
|
2037
2086
|
navigation: true,
|