@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.js
CHANGED
|
@@ -10,10 +10,6 @@ var List = require('antd-mobile/es/components/list');
|
|
|
10
10
|
require('antd-mobile/es/components/index-bar/index-bar.css');
|
|
11
11
|
require('antd-mobile/es/components/list/list.css');
|
|
12
12
|
var react = require('swiper/react');
|
|
13
|
-
var modules = require('swiper/modules');
|
|
14
|
-
require('swiper/css');
|
|
15
|
-
require('swiper/css/navigation');
|
|
16
|
-
require('swiper/css/pagination');
|
|
17
13
|
var dayjs = require('dayjs');
|
|
18
14
|
require('dayjs/locale/zh-cn');
|
|
19
15
|
var antd = require('antd');
|
|
@@ -31,6 +27,12 @@ var dayLocaleData__default = /*#__PURE__*/_interopDefault(dayLocaleData);
|
|
|
31
27
|
var weekday__default = /*#__PURE__*/_interopDefault(weekday);
|
|
32
28
|
var weekOfYear__default = /*#__PURE__*/_interopDefault(weekOfYear);
|
|
33
29
|
|
|
30
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
31
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
32
|
+
}) : x)(function(x) {
|
|
33
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
34
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
35
|
+
});
|
|
34
36
|
function cn(...inputs) {
|
|
35
37
|
return tailwindMerge.twMerge(clsx.clsx(inputs));
|
|
36
38
|
}
|
|
@@ -1859,6 +1861,53 @@ var DemoRoom = ({
|
|
|
1859
1861
|
] });
|
|
1860
1862
|
};
|
|
1861
1863
|
DemoRoom.displayName = "DemoRoom";
|
|
1864
|
+
var Navigation;
|
|
1865
|
+
var Pagination;
|
|
1866
|
+
var Autoplay;
|
|
1867
|
+
var swiperVersion = "11+";
|
|
1868
|
+
try {
|
|
1869
|
+
const modules = __require("swiper/modules");
|
|
1870
|
+
Navigation = modules.Navigation;
|
|
1871
|
+
Pagination = modules.Pagination;
|
|
1872
|
+
Autoplay = modules.Autoplay;
|
|
1873
|
+
swiperVersion = "11+";
|
|
1874
|
+
} catch (e) {
|
|
1875
|
+
try {
|
|
1876
|
+
const SwiperCore = __require("swiper");
|
|
1877
|
+
const SwiperNavigation = __require("swiper/modules/navigation");
|
|
1878
|
+
const SwiperPagination = __require("swiper/modules/pagination");
|
|
1879
|
+
const SwiperAutoplay = __require("swiper/modules/autoplay");
|
|
1880
|
+
const SwiperClass = SwiperCore.default || SwiperCore;
|
|
1881
|
+
if (SwiperClass && SwiperClass.use) {
|
|
1882
|
+
SwiperClass.use([
|
|
1883
|
+
SwiperNavigation.default || SwiperNavigation,
|
|
1884
|
+
SwiperPagination.default || SwiperPagination,
|
|
1885
|
+
SwiperAutoplay.default || SwiperAutoplay
|
|
1886
|
+
]);
|
|
1887
|
+
}
|
|
1888
|
+
Navigation = SwiperNavigation.default || SwiperNavigation;
|
|
1889
|
+
Pagination = SwiperPagination.default || SwiperPagination;
|
|
1890
|
+
Autoplay = SwiperAutoplay.default || SwiperAutoplay;
|
|
1891
|
+
swiperVersion = "8";
|
|
1892
|
+
} catch (e2) {
|
|
1893
|
+
console.warn("Failed to load swiper modules:", e2);
|
|
1894
|
+
}
|
|
1895
|
+
}
|
|
1896
|
+
if (typeof window !== "undefined") {
|
|
1897
|
+
try {
|
|
1898
|
+
__require("swiper/css");
|
|
1899
|
+
__require("swiper/css/navigation");
|
|
1900
|
+
__require("swiper/css/pagination");
|
|
1901
|
+
} catch (e) {
|
|
1902
|
+
try {
|
|
1903
|
+
__require("swiper/swiper.min.css");
|
|
1904
|
+
__require("swiper/modules/navigation/navigation.min.css");
|
|
1905
|
+
__require("swiper/modules/pagination/pagination.min.css");
|
|
1906
|
+
} catch (e2) {
|
|
1907
|
+
console.warn("Failed to load swiper styles");
|
|
1908
|
+
}
|
|
1909
|
+
}
|
|
1910
|
+
}
|
|
1862
1911
|
var defaultDescriptions = [
|
|
1863
1912
|
"Norem ipsum dolor sit amet, consectetur adipiscing elit. Nunc vulputate libero et velit interdum, ac aliquet odio mattis.",
|
|
1864
1913
|
"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."
|
|
@@ -2043,7 +2092,7 @@ var DemoRoomDetail = ({
|
|
|
2043
2092
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "relative h-[400px] rounded-2xl overflow-hidden", children: images.length > 0 ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
2044
2093
|
react.Swiper,
|
|
2045
2094
|
{
|
|
2046
|
-
modules: [
|
|
2095
|
+
...swiperVersion === "11+" && Navigation && Pagination && Autoplay ? { modules: [Navigation, Pagination, Autoplay] } : {},
|
|
2047
2096
|
spaceBetween: 0,
|
|
2048
2097
|
slidesPerView: 1,
|
|
2049
2098
|
navigation: true,
|