xmlui 0.7.18 → 0.7.19
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/{apiInterceptorWorker-CXfI_qcP.mjs → apiInterceptorWorker-C3bvewX6.mjs} +1 -1
- package/dist/{index-B6CaX0jY.mjs → index-BwlAHBcX.mjs} +4 -4
- package/dist/scripts/package.json +1 -1
- package/dist/scripts/src/components/Carousel/CarouselNative.js +2 -2
- package/dist/xmlui-standalone.umd.js +8 -8
- package/dist/xmlui.mjs +1 -1
- package/package.json +1 -1
|
@@ -7,7 +7,7 @@ var U = (e, t, r) => Lr(e, typeof t != "symbol" ? t + "" : t, r), ve = (e, t, r)
|
|
|
7
7
|
var Q = (e, t, r) => (ve(e, t, "read from private field"), r ? r.call(e) : t.get(e)), we = (e, t, r) => t.has(e) ? Be("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), Ve = (e, t, r, s) => (ve(e, t, "write to private field"), s ? s.call(e, r) : t.set(e, r), r), ie = (e, t, r) => (ve(e, t, "access private method"), r);
|
|
8
8
|
import { isArray as It, isObject as Nt, mapValues as Sr } from "lodash-es";
|
|
9
9
|
import { delay as Dr, HttpResponse as K, http as Cr } from "msw";
|
|
10
|
-
import { r as Mr, d as qr, m as $r, a as Ur, g as jr, o as Ee, T as Fr } from "./index-
|
|
10
|
+
import { r as Mr, d as qr, m as $r, a as Ur, g as jr, o as Ee, T as Fr } from "./index-BwlAHBcX.mjs";
|
|
11
11
|
import We from "dexie";
|
|
12
12
|
var Br = /(%?)(%([sdijo]))/g;
|
|
13
13
|
function Vr(e, t) {
|
|
@@ -75153,7 +75153,7 @@ const nN = Te(function({
|
|
|
75153
75153
|
startIndex: u = 0,
|
|
75154
75154
|
prevIcon: d,
|
|
75155
75155
|
nextIcon: p,
|
|
75156
|
-
transitionDuration: h,
|
|
75156
|
+
transitionDuration: h = 25,
|
|
75157
75157
|
autoplayInterval: m = 5e3,
|
|
75158
75158
|
stopAutoplayOnInteraction: f = !0,
|
|
75159
75159
|
registerComponentApi: g
|
|
@@ -75249,7 +75249,7 @@ const nN = Te(function({
|
|
|
75249
75249
|
role: "group",
|
|
75250
75250
|
"aria-roledescription": "slide",
|
|
75251
75251
|
className: ue(jt.carouselItem),
|
|
75252
|
-
children: /* @__PURE__ */ c("div", { className: jt.innerWrapper, ref: U.ref, style: U.style, children:
|
|
75252
|
+
children: /* @__PURE__ */ c("div", { className: jt.innerWrapper, ref: U.ref, style: U.style, children: U.children })
|
|
75253
75253
|
},
|
|
75254
75254
|
U.id
|
|
75255
75255
|
))
|
|
@@ -75931,7 +75931,7 @@ const MN = "_dialogContent_1rief_13", RN = "_dialogActions_1rief_18", $c = {
|
|
|
75931
75931
|
}
|
|
75932
75932
|
)
|
|
75933
75933
|
] });
|
|
75934
|
-
}, WN = "0.7.
|
|
75934
|
+
}, WN = "0.7.19";
|
|
75935
75935
|
function VN(e, t) {
|
|
75936
75936
|
if (e.length === 0)
|
|
75937
75937
|
return 0;
|
|
@@ -76263,7 +76263,7 @@ function YN({
|
|
|
76263
76263
|
let s;
|
|
76264
76264
|
return (async () => {
|
|
76265
76265
|
if (process.env.VITE_MOCK_ENABLED) {
|
|
76266
|
-
const { createApiInterceptorWorker: l } = await import("./apiInterceptorWorker-
|
|
76266
|
+
const { createApiInterceptorWorker: l } = await import("./apiInterceptorWorker-C3bvewX6.mjs");
|
|
76267
76267
|
if (e && (s = await l(e, r), !r)) {
|
|
76268
76268
|
const u = Dl(
|
|
76269
76269
|
process.env.VITE_MOCK_WORKER_LOCATION || "mockServiceWorker.js"
|
|
@@ -48,7 +48,7 @@ const constants_1 = require("@components-core/constants");
|
|
|
48
48
|
const embla_carousel_autoplay_1 = __importDefault(require("embla-carousel-autoplay"));
|
|
49
49
|
const react_compose_refs_1 = require("@radix-ui/react-compose-refs");
|
|
50
50
|
const CarouselContext_1 = require("@components/Carousel/CarouselContext");
|
|
51
|
-
exports.CarouselComponent = (0, react_1.forwardRef)(function CarouselComponent({ orientation = "horizontal", children, style, indicators = true, onDisplayDidChange = constants_1.noop, autoplay = false, controls = true, loop = false, startIndex = 0, prevIcon, nextIcon, transitionDuration, autoplayInterval = 5000, stopAutoplayOnInteraction = true, registerComponentApi, }, forwardedRef) {
|
|
51
|
+
exports.CarouselComponent = (0, react_1.forwardRef)(function CarouselComponent({ orientation = "horizontal", children, style, indicators = true, onDisplayDidChange = constants_1.noop, autoplay = false, controls = true, loop = false, startIndex = 0, prevIcon, nextIcon, transitionDuration = 25, autoplayInterval = 5000, stopAutoplayOnInteraction = true, registerComponentApi, }, forwardedRef) {
|
|
52
52
|
const referenceElement = (0, react_1.useRef)(null);
|
|
53
53
|
const [activeSlide, setActiveSlide] = (0, react_1.useState)(0);
|
|
54
54
|
const [plugins, setPlugins] = (0, react_1.useState)([]);
|
|
@@ -166,7 +166,7 @@ exports.CarouselComponent = (0, react_1.forwardRef)(function CarouselComponent({
|
|
|
166
166
|
return ((0, jsx_runtime_1.jsxs)(CarouselContext_1.CarouselContext.Provider, { value: carouselContextValue, children: [children, (0, jsx_runtime_1.jsxs)("div", { style: style, ref: ref, className: (0, classnames_1.default)(Carousel_module_scss_1.default.carousel), role: "region", tabIndex: -1, "aria-roledescription": "carousel", children: [(0, jsx_runtime_1.jsx)("div", { ref: carouselRef, className: Carousel_module_scss_1.default.carouselContentWrapper, children: (0, jsx_runtime_1.jsx)("div", { className: (0, classnames_1.default)(Carousel_module_scss_1.default.carouselContent, {
|
|
167
167
|
[Carousel_module_scss_1.default.horizontal]: orientation === "horizontal",
|
|
168
168
|
[Carousel_module_scss_1.default.vertical]: orientation === "vertical",
|
|
169
|
-
}), children: carouselItems.map((item, index) => ((0, jsx_runtime_1.jsx)("div", { role: "group", "aria-roledescription": "slide", className: (0, classnames_1.default)(Carousel_module_scss_1.default.carouselItem), children: (0, jsx_runtime_1.jsx)("div", { className: Carousel_module_scss_1.default.innerWrapper, ref: item.ref, style: item.style, children:
|
|
169
|
+
}), children: carouselItems.map((item, index) => ((0, jsx_runtime_1.jsx)("div", { role: "group", "aria-roledescription": "slide", className: (0, classnames_1.default)(Carousel_module_scss_1.default.carouselItem), children: (0, jsx_runtime_1.jsx)("div", { className: Carousel_module_scss_1.default.innerWrapper, ref: item.ref, style: item.style, children: item.children }) }, item.id))) }) }), controls && ((0, jsx_runtime_1.jsxs)("div", { className: Carousel_module_scss_1.default.controls, children: [autoplay && ((0, jsx_runtime_1.jsx)("button", { className: Carousel_module_scss_1.default.controlButton, onClick: toggleAutoplay, children: isPlaying ? (0, jsx_runtime_1.jsx)(IconNative_1.default, { name: "pause" }) : (0, jsx_runtime_1.jsx)(IconNative_1.default, { name: "play" }) })), (0, jsx_runtime_1.jsx)("button", { className: Carousel_module_scss_1.default.controlButton, disabled: !canScrollPrev, onClick: scrollPrev, children: (0, jsx_runtime_1.jsx)(IconNative_1.default, { name: prevIconName }) }), (0, jsx_runtime_1.jsx)("button", { className: Carousel_module_scss_1.default.controlButton, onClick: scrollNext, disabled: !canScrollNext, children: (0, jsx_runtime_1.jsx)(IconNative_1.default, { name: nextIconName }) })] })), indicators && ((0, jsx_runtime_1.jsx)("div", { className: Carousel_module_scss_1.default.indicators, children: carouselItems.map((_, index) => ((0, jsx_runtime_1.jsx)("button", { type: "button", onClick: () => scrollTo(index), className: (0, classnames_1.default)(Carousel_module_scss_1.default.indicator, {
|
|
170
170
|
[Carousel_module_scss_1.default.active]: index === activeSlide,
|
|
171
171
|
}), "aria-current": index === activeSlide }, index))) }))] })] }));
|
|
172
172
|
});
|