@anker-in/ui 0.1.0 → 0.1.2
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 +37 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +36 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -3
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,36 @@ var DemoRoom = ({
|
|
|
1847
1849
|
] });
|
|
1848
1850
|
};
|
|
1849
1851
|
DemoRoom.displayName = "DemoRoom";
|
|
1852
|
+
var swiperModules;
|
|
1853
|
+
try {
|
|
1854
|
+
swiperModules = __require("swiper/modules");
|
|
1855
|
+
} catch (e) {
|
|
1856
|
+
try {
|
|
1857
|
+
const SwiperCore = __require("swiper");
|
|
1858
|
+
swiperModules = SwiperCore;
|
|
1859
|
+
} catch (e2) {
|
|
1860
|
+
console.warn("Failed to load swiper modules");
|
|
1861
|
+
swiperModules = {};
|
|
1862
|
+
}
|
|
1863
|
+
}
|
|
1864
|
+
var Navigation = swiperModules.Navigation;
|
|
1865
|
+
var Pagination = swiperModules.Pagination;
|
|
1866
|
+
var Autoplay = swiperModules.Autoplay;
|
|
1867
|
+
if (typeof window !== "undefined") {
|
|
1868
|
+
try {
|
|
1869
|
+
__require("swiper/css");
|
|
1870
|
+
__require("swiper/css/navigation");
|
|
1871
|
+
__require("swiper/css/pagination");
|
|
1872
|
+
} catch (e) {
|
|
1873
|
+
try {
|
|
1874
|
+
__require("swiper/swiper.min.css");
|
|
1875
|
+
__require("swiper/modules/navigation/navigation.min.css");
|
|
1876
|
+
__require("swiper/modules/pagination/pagination.min.css");
|
|
1877
|
+
} catch (e2) {
|
|
1878
|
+
console.warn("Failed to load swiper styles");
|
|
1879
|
+
}
|
|
1880
|
+
}
|
|
1881
|
+
}
|
|
1850
1882
|
var defaultDescriptions = [
|
|
1851
1883
|
"Norem ipsum dolor sit amet, consectetur adipiscing elit. Nunc vulputate libero et velit interdum, ac aliquet odio mattis.",
|
|
1852
1884
|
"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."
|