@anoki/fse-ui 1.0.586 → 1.0.588
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/components/navigations/HeaderDesktop/HeaderDesktop.css +1 -1
- package/dist/components/ui/Carousel/Carousel.css +1 -1
- package/dist/index.cjs110.js.map +1 -1
- package/dist/index.cjs112.js +1 -1
- package/dist/index.cjs112.js.map +1 -1
- package/dist/index.cjs113.js +1 -1
- package/dist/index.cjs113.js.map +1 -1
- package/dist/index.cjs225.js +1 -1
- package/dist/index.cjs229.js +1 -1
- package/dist/index.cjs230.js +1 -1
- package/dist/index.cjs230.js.map +1 -1
- package/dist/index.cjs236.js +1 -1
- package/dist/index.cjs246.js +1 -1
- package/dist/index.cjs253.js +1 -1
- package/dist/index.cjs280.js +1 -1
- package/dist/index.cjs318.js +1 -1
- package/dist/index.cjs346.js +1 -1
- package/dist/index.cjs347.js +1 -1
- package/dist/index.cjs355.js +1 -1
- package/dist/index.cjs356.js +1 -1
- package/dist/index.cjs363.js +1 -1
- package/dist/index.cjs363.js.map +1 -1
- package/dist/index.cjs364.js +2 -0
- package/dist/index.cjs364.js.map +1 -0
- package/dist/index.cjs365.js +2 -0
- package/dist/index.cjs365.js.map +1 -0
- package/dist/index.cjs366.js +1 -1
- package/dist/index.cjs366.js.map +1 -1
- package/dist/index.cjs367.js +1 -1
- package/dist/index.cjs367.js.map +1 -1
- package/dist/index.cjs368.js +1 -1
- package/dist/index.cjs368.js.map +1 -1
- package/dist/index.cjs369.js +1 -1
- package/dist/index.cjs369.js.map +1 -1
- package/dist/index.cjs370.js +1 -1
- package/dist/index.cjs370.js.map +1 -1
- package/dist/index.cjs374.js +1 -1
- package/dist/index.cjs375.js +1 -1
- package/dist/index.cjs379.js +1 -1
- package/dist/index.cjs379.js.map +1 -1
- package/dist/index.cjs380.js +1 -1
- package/dist/index.cjs380.js.map +1 -1
- package/dist/index.cjs381.js +1 -1
- package/dist/index.cjs381.js.map +1 -1
- package/dist/index.cjs384.js +1 -1
- package/dist/index.cjs384.js.map +1 -1
- package/dist/index.cjs385.js +1 -1
- package/dist/index.cjs385.js.map +1 -1
- package/dist/index.cjs386.js +2 -0
- package/dist/index.cjs386.js.map +1 -0
- package/dist/{index.cjs382.js → index.cjs387.js} +1 -1
- package/dist/{index.cjs382.js.map → index.cjs387.js.map} +1 -1
- package/dist/{index.cjs383.js → index.cjs388.js} +1 -1
- package/dist/{index.cjs383.js.map → index.cjs388.js.map} +1 -1
- package/dist/index.cjs389.js +2 -0
- package/dist/index.cjs389.js.map +1 -0
- package/dist/index.cjs390.js +2 -0
- package/dist/index.cjs390.js.map +1 -0
- package/dist/index.cjs401.js +1 -1
- package/dist/index.cjs401.js.map +1 -1
- package/dist/index.cjs402.js +1 -1
- package/dist/index.cjs402.js.map +1 -1
- package/dist/index.cjs403.js +1 -1
- package/dist/index.cjs403.js.map +1 -1
- package/dist/index.cjs404.js +1 -1
- package/dist/index.cjs404.js.map +1 -1
- package/dist/index.cjs405.js +1 -1
- package/dist/index.cjs405.js.map +1 -1
- package/dist/index.cjs406.js +2 -0
- package/dist/index.cjs406.js.map +1 -0
- package/dist/index.cjs407.js +1 -1
- package/dist/index.cjs409.js +1 -1
- package/dist/index.cjs435.js +1 -1
- package/dist/index.cjs445.js +1 -1
- package/dist/index.cjs446.js +1 -1
- package/dist/index.cjs446.js.map +1 -1
- package/dist/index.cjs447.js +1 -1
- package/dist/index.cjs448.js +1 -1
- package/dist/index.cjs448.js.map +1 -1
- package/dist/index.cjs449.js +1 -1
- package/dist/index.cjs449.js.map +1 -1
- package/dist/index.d.ts +3 -4
- package/dist/index.es110.js.map +1 -1
- package/dist/index.es112.js +48 -50
- package/dist/index.es112.js.map +1 -1
- package/dist/index.es113.js +7 -8
- package/dist/index.es113.js.map +1 -1
- package/dist/index.es225.js +7 -7
- package/dist/index.es229.js +1 -1
- package/dist/index.es230.js +17 -13
- package/dist/index.es230.js.map +1 -1
- package/dist/index.es236.js +5 -5
- package/dist/index.es246.js +1 -1
- package/dist/index.es253.js +13 -13
- package/dist/index.es280.js +5 -5
- package/dist/index.es318.js +4 -4
- package/dist/index.es346.js +1 -1
- package/dist/index.es347.js +2 -2
- package/dist/index.es355.js +1 -1
- package/dist/index.es356.js +1 -1
- package/dist/index.es363.js +7 -15
- package/dist/index.es363.js.map +1 -1
- package/dist/index.es364.js +30 -0
- package/dist/index.es364.js.map +1 -0
- package/dist/index.es365.js +71 -0
- package/dist/index.es365.js.map +1 -0
- package/dist/index.es366.js +29 -6
- package/dist/index.es366.js.map +1 -1
- package/dist/index.es367.js +32 -26
- package/dist/index.es367.js.map +1 -1
- package/dist/index.es368.js +617 -63
- package/dist/index.es368.js.map +1 -1
- package/dist/index.es369.js +10 -29
- package/dist/index.es369.js.map +1 -1
- package/dist/index.es370.js +15 -33
- package/dist/index.es370.js.map +1 -1
- package/dist/index.es374.js +1 -1
- package/dist/index.es375.js +2 -2
- package/dist/index.es379.js +2 -125
- package/dist/index.es379.js.map +1 -1
- package/dist/index.es380.js +2 -135
- package/dist/index.es380.js.map +1 -1
- package/dist/index.es381.js +15 -14
- package/dist/index.es381.js.map +1 -1
- package/dist/index.es384.js +122 -47
- package/dist/index.es384.js.map +1 -1
- package/dist/index.es385.js +129 -47
- package/dist/index.es385.js.map +1 -1
- package/dist/index.es386.js +17 -0
- package/dist/index.es386.js.map +1 -0
- package/dist/{index.es382.js → index.es387.js} +1 -1
- package/dist/{index.es382.js.map → index.es387.js.map} +1 -1
- package/dist/{index.es383.js → index.es388.js} +1 -1
- package/dist/{index.es383.js.map → index.es388.js.map} +1 -1
- package/dist/index.es389.js +53 -0
- package/dist/index.es389.js.map +1 -0
- package/dist/index.es390.js +56 -0
- package/dist/index.es390.js.map +1 -0
- package/dist/index.es401.js +10 -45
- package/dist/index.es401.js.map +1 -1
- package/dist/index.es402.js +45 -7
- package/dist/index.es402.js.map +1 -1
- package/dist/index.es403.js +7 -217
- package/dist/index.es403.js.map +1 -1
- package/dist/index.es404.js +203 -163
- package/dist/index.es404.js.map +1 -1
- package/dist/index.es405.js +177 -3
- package/dist/index.es405.js.map +1 -1
- package/dist/index.es406.js +7 -0
- package/dist/index.es406.js.map +1 -0
- package/dist/index.es407.js +1 -1
- package/dist/index.es409.js +1 -1
- package/dist/index.es435.js +1 -1
- package/dist/index.es445.js +7 -7
- package/dist/index.es446.js +8 -131
- package/dist/index.es446.js.map +1 -1
- package/dist/index.es447.js +1 -1
- package/dist/index.es448.js +3 -9
- package/dist/index.es448.js.map +1 -1
- package/dist/index.es449.js +131 -2
- package/dist/index.es449.js.map +1 -1
- package/dist/sections/Login/Login.css +1 -1
- package/package.json +1 -1
- package/dist/index.cjs371.js +0 -2
- package/dist/index.cjs371.js.map +0 -1
- package/dist/index.cjs372.js +0 -2
- package/dist/index.cjs372.js.map +0 -1
- package/dist/index.cjs376.js +0 -2
- package/dist/index.cjs376.js.map +0 -1
- package/dist/index.cjs377.js +0 -2
- package/dist/index.cjs377.js.map +0 -1
- package/dist/index.cjs378.js +0 -2
- package/dist/index.cjs378.js.map +0 -1
- package/dist/index.cjs400.js +0 -2
- package/dist/index.cjs400.js.map +0 -1
- package/dist/index.es371.js +0 -625
- package/dist/index.es371.js.map +0 -1
- package/dist/index.es372.js +0 -14
- package/dist/index.es372.js.map +0 -1
- package/dist/index.es376.js +0 -18
- package/dist/index.es376.js.map +0 -1
- package/dist/index.es377.js +0 -5
- package/dist/index.es377.js.map +0 -1
- package/dist/index.es378.js +0 -5
- package/dist/index.es378.js.map +0 -1
- package/dist/index.es400.js +0 -14
- package/dist/index.es400.js.map +0 -1
package/dist/index.es112.js
CHANGED
@@ -1,61 +1,59 @@
|
|
1
|
-
import { j as
|
2
|
-
import { Swiper as
|
3
|
-
import
|
1
|
+
import { j as a } from "./index.es196.js";
|
2
|
+
import { Swiper as t, SwiperSlide as o } from "./index.es345.js";
|
3
|
+
import n from "./index.es346.js";
|
4
4
|
import c from "./index.es347.js";
|
5
5
|
import './components/ui/Carousel/Carousel.css';import './node_modules/swiper/modules/pagination.css';import './node_modules/swiper/modules/navigation.css';import './node_modules/swiper/swiper.css';/* empty css */
|
6
6
|
/* empty css */
|
7
7
|
/* empty css */
|
8
8
|
/* empty css */
|
9
|
-
function
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
9
|
+
function b({ title: r, children: l = [] }) {
|
10
|
+
return /* @__PURE__ */ a.jsxs("section", { className: "carousel-wrapper", children: [
|
11
|
+
r && /* @__PURE__ */ a.jsx("h2", { className: "carousel-title", children: r }),
|
12
|
+
/* @__PURE__ */ a.jsx("div", { className: "carousel-outer-wrapper", children: /* @__PURE__ */ a.jsx(
|
13
|
+
t,
|
14
|
+
{
|
15
|
+
className: "carousel-inner-wrapper",
|
16
|
+
spaceBetween: 24,
|
17
|
+
modules: [n, c],
|
18
|
+
breakpoints: {
|
19
|
+
0: {
|
20
|
+
slidesPerView: 1,
|
21
|
+
spaceBetween: 24
|
22
|
+
},
|
23
|
+
768: {
|
24
|
+
slidesPerView: 2,
|
25
|
+
spaceBetween: 24
|
26
|
+
},
|
27
|
+
992: {
|
28
|
+
slidesPerView: 3,
|
29
|
+
spaceBetween: 24
|
30
|
+
}
|
25
31
|
},
|
26
|
-
|
27
|
-
|
28
|
-
|
32
|
+
pagination: !0,
|
33
|
+
navigation: l.length >= 3,
|
34
|
+
onSwiper: (e) => console.log(e),
|
35
|
+
onInit: (e) => {
|
36
|
+
e.slides.slice(
|
37
|
+
e.activeIndex,
|
38
|
+
e.activeIndex + Number(e.params.slidesPerView)
|
39
|
+
).forEach((s, i) => {
|
40
|
+
s.classList.remove("lastViewableSlide"), (i + 1) % Number(e.params.slidesPerView) === 0 && s.classList.add("lastViewableSlide");
|
41
|
+
});
|
29
42
|
},
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
).forEach((i, a) => {
|
43
|
-
i.classList.remove("lastViewableSlide"), (a + 1) % Number(e.params.slidesPerView) === 0 && i.classList.add("lastViewableSlide");
|
44
|
-
});
|
45
|
-
},
|
46
|
-
onSlideChange: (e) => {
|
47
|
-
e.slides.slice(
|
48
|
-
e.activeIndex,
|
49
|
-
e.activeIndex + Number(e.params.slidesPerView)
|
50
|
-
).forEach((i, a) => {
|
51
|
-
i.classList.remove("lastViewableSlide"), (a + 1) % Number(e.params.slidesPerView) === 0 && i.classList.add("lastViewableSlide");
|
52
|
-
});
|
53
|
-
},
|
54
|
-
children: r.map((e, i) => /* @__PURE__ */ s.jsx(n, { className: "swiper-slide-custom", children: e }, i))
|
55
|
-
}
|
56
|
-
) });
|
43
|
+
onSlideChange: (e) => {
|
44
|
+
e.slides.slice(
|
45
|
+
e.activeIndex,
|
46
|
+
e.activeIndex + Number(e.params.slidesPerView)
|
47
|
+
).forEach((s, i) => {
|
48
|
+
s.classList.remove("lastViewableSlide"), (i + 1) % Number(e.params.slidesPerView) === 0 && s.classList.add("lastViewableSlide");
|
49
|
+
});
|
50
|
+
},
|
51
|
+
children: l.map((e, s) => /* @__PURE__ */ a.jsx(o, { className: "swiper-slide-custom", children: e }, s))
|
52
|
+
}
|
53
|
+
) })
|
54
|
+
] });
|
57
55
|
}
|
58
56
|
export {
|
59
|
-
|
57
|
+
b as Carousel
|
60
58
|
};
|
61
59
|
//# sourceMappingURL=index.es112.js.map
|
package/dist/index.es112.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es112.js","sources":["../src/components/ui/Carousel/index.tsx"],"sourcesContent":["import { ReactNode } from \"react\";\nimport { Swiper, SwiperSlide } from \"swiper/react\";\nimport { Navigation, Pagination } from \"swiper/modules\";\nimport \"swiper/css\";\nimport \"swiper/css/navigation\";\nimport \"swiper/css/pagination\";\nimport \"./Carousel.scss\";\n\ntype CarouselProps = {\n children?: Array<ReactNode>;\n
|
1
|
+
{"version":3,"file":"index.es112.js","sources":["../src/components/ui/Carousel/index.tsx"],"sourcesContent":["import { ReactNode } from \"react\";\nimport { Swiper, SwiperSlide } from \"swiper/react\";\nimport { Navigation, Pagination } from \"swiper/modules\";\nimport \"swiper/css\";\nimport \"swiper/css/navigation\";\nimport \"swiper/css/pagination\";\nimport \"./Carousel.scss\";\n\ntype CarouselProps = {\n title?: string;\n children?: Array<ReactNode>;\n};\n\nexport function Carousel({ title, children = [] }: CarouselProps) {\n return (\n <section className=\"carousel-wrapper\">\n {title && <h2 className=\"carousel-title\">{title}</h2>}\n <div className=\"carousel-outer-wrapper\">\n <Swiper\n className=\"carousel-inner-wrapper\"\n spaceBetween={24}\n modules={[Navigation, Pagination]}\n breakpoints={{\n 0: {\n slidesPerView: 1,\n spaceBetween: 24,\n },\n 768: {\n slidesPerView: 2,\n spaceBetween: 24,\n },\n 992: {\n slidesPerView: 3,\n spaceBetween: 24,\n },\n }}\n pagination\n navigation={children.length >= 3}\n onSwiper={(swiper) => console.log(swiper)}\n onInit={(swiper) => {\n swiper.slides\n .slice(\n swiper.activeIndex,\n swiper.activeIndex + Number(swiper.params.slidesPerView),\n )\n .forEach((slide, index) => {\n slide.classList.remove(\"lastViewableSlide\");\n if ((index + 1) % Number(swiper.params.slidesPerView) === 0) {\n slide.classList.add(\"lastViewableSlide\");\n }\n });\n }}\n onSlideChange={(swiper) => {\n swiper.slides\n .slice(\n swiper.activeIndex,\n swiper.activeIndex + Number(swiper.params.slidesPerView),\n )\n .forEach((slide, index) => {\n slide.classList.remove(\"lastViewableSlide\");\n if ((index + 1) % Number(swiper.params.slidesPerView) === 0) {\n slide.classList.add(\"lastViewableSlide\");\n }\n });\n }}\n >\n {children.map((child, index) => (\n <SwiperSlide className=\"swiper-slide-custom\" key={index}>\n {child}\n </SwiperSlide>\n ))}\n </Swiper>\n </div>\n </section>\n );\n}\n"],"names":["Carousel","title","children","jsxs","jsx","Swiper","Navigation","Pagination","swiper","slide","index","child","SwiperSlide"],"mappings":";;;;;;;;AAaO,SAASA,EAAS,EAAE,OAAAC,GAAO,UAAAC,IAAW,MAAqB;AAE9D,SAAAC,gBAAAA,EAAA,KAAC,WAAQ,EAAA,WAAU,oBAChB,UAAA;AAAA,IAAAF,KAAUG,gBAAAA,EAAA,IAAA,MAAA,EAAG,WAAU,kBAAkB,UAAMH,GAAA;AAAA,IAChDG,gBAAAA,EAAAA,IAAC,OAAI,EAAA,WAAU,0BACb,UAAAA,gBAAAA,EAAA;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,WAAU;AAAA,QACV,cAAc;AAAA,QACd,SAAS,CAACC,GAAYC,CAAU;AAAA,QAChC,aAAa;AAAA,UACX,GAAG;AAAA,YACD,eAAe;AAAA,YACf,cAAc;AAAA,UAChB;AAAA,UACA,KAAK;AAAA,YACH,eAAe;AAAA,YACf,cAAc;AAAA,UAChB;AAAA,UACA,KAAK;AAAA,YACH,eAAe;AAAA,YACf,cAAc;AAAA,UAAA;AAAA,QAElB;AAAA,QACA,YAAU;AAAA,QACV,YAAYL,EAAS,UAAU;AAAA,QAC/B,UAAU,CAACM,MAAW,QAAQ,IAAIA,CAAM;AAAA,QACxC,QAAQ,CAACA,MAAW;AAClB,UAAAA,EAAO,OACJ;AAAA,YACCA,EAAO;AAAA,YACPA,EAAO,cAAc,OAAOA,EAAO,OAAO,aAAa;AAAA,UAAA,EAExD,QAAQ,CAACC,GAAOC,MAAU;AACnB,YAAAD,EAAA,UAAU,OAAO,mBAAmB,IACrCC,IAAQ,KAAK,OAAOF,EAAO,OAAO,aAAa,MAAM,KAClDC,EAAA,UAAU,IAAI,mBAAmB;AAAA,UACzC,CACD;AAAA,QACL;AAAA,QACA,eAAe,CAACD,MAAW;AACzB,UAAAA,EAAO,OACJ;AAAA,YACCA,EAAO;AAAA,YACPA,EAAO,cAAc,OAAOA,EAAO,OAAO,aAAa;AAAA,UAAA,EAExD,QAAQ,CAACC,GAAOC,MAAU;AACnB,YAAAD,EAAA,UAAU,OAAO,mBAAmB,IACrCC,IAAQ,KAAK,OAAOF,EAAO,OAAO,aAAa,MAAM,KAClDC,EAAA,UAAU,IAAI,mBAAmB;AAAA,UACzC,CACD;AAAA,QACL;AAAA,QAEC,UAAAP,EAAS,IAAI,CAACS,GAAOD,MACnBN,gBAAAA,EAAA,IAAAQ,GAAA,EAAY,WAAU,uBACpB,UAD+CD,EAAA,GAAAD,CAElD,CACD;AAAA,MAAA;AAAA,IAAA,EAEL,CAAA;AAAA,EAAA,GACF;AAEJ;"}
|
package/dist/index.es113.js
CHANGED
@@ -4,10 +4,10 @@ import './sections/Login/Login.css';/* empty css */
|
|
4
4
|
import { EntryButton as g } from "./index.es37.js";
|
5
5
|
import { Col as o } from "./index.es10.js";
|
6
6
|
const N = ({
|
7
|
-
title:
|
7
|
+
title: l,
|
8
8
|
description: e,
|
9
|
-
loginTitle:
|
10
|
-
loginDescription:
|
9
|
+
loginTitle: n,
|
10
|
+
loginDescription: r,
|
11
11
|
buttonLabel: t,
|
12
12
|
buttonAriaLabel: c,
|
13
13
|
buttonHref: a,
|
@@ -16,19 +16,18 @@ const N = ({
|
|
16
16
|
authSrc: h = ""
|
17
17
|
}) => {
|
18
18
|
const x = m;
|
19
|
-
return /* @__PURE__ */ i.jsxs(s, { className: "base-col ui-login-section", children: [
|
19
|
+
return console.log(d), /* @__PURE__ */ i.jsxs(s, { className: "base-col ui-login-section", children: [
|
20
20
|
/* @__PURE__ */ i.jsxs(o, { className: "ui-login-content", children: [
|
21
|
-
/* @__PURE__ */ i.jsx(s.Title, { fs: "1", className: "md-fs-0 ui-login-title", mdFs: "0", children:
|
21
|
+
/* @__PURE__ */ i.jsx(s.Title, { fs: "1", className: "md-fs-0 ui-login-title", mdFs: "0", children: l }),
|
22
22
|
e && /* @__PURE__ */ i.jsx(s.Description, { className: "ui-login-description", children: e })
|
23
23
|
] }),
|
24
24
|
/* @__PURE__ */ i.jsxs("div", { className: "bg-white shadow br-x4 ui-login-body", children: [
|
25
25
|
/* @__PURE__ */ i.jsxs(o, { gap: "x16", children: [
|
26
|
-
/* @__PURE__ */ i.jsx("h3", { className: "text-slate-20 fw-semibold fs-5 md-fs-4", children:
|
27
|
-
/* @__PURE__ */ i.jsx(s.Description, { children:
|
26
|
+
/* @__PURE__ */ i.jsx("h3", { className: "text-slate-20 fw-semibold fs-5 md-fs-4", children: n }),
|
27
|
+
/* @__PURE__ */ i.jsx(s.Description, { children: r }),
|
28
28
|
/* @__PURE__ */ i.jsx(
|
29
29
|
g,
|
30
30
|
{
|
31
|
-
showIcon: d === "marche",
|
32
31
|
ariaLabel: c,
|
33
32
|
href: a,
|
34
33
|
children: t
|
package/dist/index.es113.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es113.js","sources":["../src/sections/Login/index.tsx"],"sourcesContent":["import { Section } from \"@/components/ui/Section\";\nimport { Col, EntryButton } from \"@/components\";\nimport \"./Login.scss\";\nimport { Config } from \"@/utils/config.ts\";\n\nexport type LoginProps = {\n title: React.ReactNode;\n description?: React.ReactNode;\n loginTitle: string;\n loginDescription: React.ReactNode;\n buttonLabel: string;\n buttonAriaLabel: string;\n buttonHref: string;\n asImage?: \"img\";\n region?: Config[\"REGION\"];\n authSrc?: string;\n};\n\nexport const Login = ({\n title,\n description,\n loginTitle,\n loginDescription,\n buttonLabel,\n buttonAriaLabel,\n buttonHref,\n asImage = \"img\",\n region = \"marche\",\n authSrc = \"\",\n}: LoginProps) => {\n const ImageComponent = asImage;\n return (\n <Section className=\"base-col ui-login-section\">\n <Col className=\"ui-login-content\">\n <Section.Title fs=\"1\" className=\"md-fs-0 ui-login-title\" mdFs=\"0\">\n {title}\n </Section.Title>\n {description && (\n <Section.Description className=\"ui-login-description\">\n {description}\n </Section.Description>\n )}\n </Col>\n <div className=\"bg-white shadow br-x4 ui-login-body\">\n <Col gap={\"x16\"}>\n <h3 className=\"text-slate-20 fw-semibold fs-5 md-fs-4\">\n {loginTitle}\n </h3>\n <Section.Description>{loginDescription}</Section.Description>\n <EntryButton\n showIcon={region === \"marche\"}\n ariaLabel={buttonAriaLabel}\n href={buttonHref}\n >\n {buttonLabel}\n </EntryButton>\n </Col>\n\n <div className=\"ui-login-body-img h-full\">\n <ImageComponent\n src={authSrc}\n alt=\"\"\n aria-hidden=\"true\"\n width={246}\n height={746}\n />\n </div>\n </div>\n </Section>\n );\n};\n"],"names":["Login","title","description","loginTitle","loginDescription","buttonLabel","buttonAriaLabel","buttonHref","asImage","region","authSrc","ImageComponent","jsxs","Section","Col","jsx","EntryButton"],"mappings":";;;;;AAkBO,MAAMA,IAAQ,CAAC;AAAA,EACpB,OAAAC;AAAA,EACA,aAAAC;AAAA,EACA,YAAAC;AAAA,EACA,kBAAAC;AAAA,EACA,aAAAC;AAAA,EACA,iBAAAC;AAAA,EACA,YAAAC;AAAA,EACA,SAAAC,IAAU;AAAA,EACV,QAAAC,IAAS;AAAA,EACT,SAAAC,IAAU;AACZ,MAAkB;AAChB,QAAMC,IAAiBH;
|
1
|
+
{"version":3,"file":"index.es113.js","sources":["../src/sections/Login/index.tsx"],"sourcesContent":["import { Section } from \"@/components/ui/Section\";\nimport { Col, EntryButton } from \"@/components\";\nimport \"./Login.scss\";\nimport { Config } from \"@/utils/config.ts\";\n\nexport type LoginProps = {\n title: React.ReactNode;\n description?: React.ReactNode;\n loginTitle: string;\n loginDescription: React.ReactNode;\n buttonLabel: string;\n buttonAriaLabel: string;\n buttonHref: string;\n asImage?: \"img\";\n region?: Config[\"REGION\"];\n authSrc?: string;\n};\n\nexport const Login = ({\n title,\n description,\n loginTitle,\n loginDescription,\n buttonLabel,\n buttonAriaLabel,\n buttonHref,\n asImage = \"img\",\n region = \"marche\",\n authSrc = \"\",\n}: LoginProps) => {\n const ImageComponent = asImage;\n\n console.log(region);\n\n return (\n <Section className=\"base-col ui-login-section\">\n <Col className=\"ui-login-content\">\n <Section.Title fs=\"1\" className=\"md-fs-0 ui-login-title\" mdFs=\"0\">\n {title}\n </Section.Title>\n {description && (\n <Section.Description className=\"ui-login-description\">\n {description}\n </Section.Description>\n )}\n </Col>\n <div className=\"bg-white shadow br-x4 ui-login-body\">\n <Col gap={\"x16\"}>\n <h3 className=\"text-slate-20 fw-semibold fs-5 md-fs-4\">\n {loginTitle}\n </h3>\n <Section.Description>{loginDescription}</Section.Description>\n <EntryButton\n // showIcon={region === \"marche\"}\n ariaLabel={buttonAriaLabel}\n href={buttonHref}\n >\n {buttonLabel}\n </EntryButton>\n </Col>\n\n <div className=\"ui-login-body-img h-full\">\n <ImageComponent\n src={authSrc}\n alt=\"\"\n aria-hidden=\"true\"\n width={246}\n height={746}\n />\n </div>\n </div>\n </Section>\n );\n};\n"],"names":["Login","title","description","loginTitle","loginDescription","buttonLabel","buttonAriaLabel","buttonHref","asImage","region","authSrc","ImageComponent","jsxs","Section","Col","jsx","EntryButton"],"mappings":";;;;;AAkBO,MAAMA,IAAQ,CAAC;AAAA,EACpB,OAAAC;AAAA,EACA,aAAAC;AAAA,EACA,YAAAC;AAAA,EACA,kBAAAC;AAAA,EACA,aAAAC;AAAA,EACA,iBAAAC;AAAA,EACA,YAAAC;AAAA,EACA,SAAAC,IAAU;AAAA,EACV,QAAAC,IAAS;AAAA,EACT,SAAAC,IAAU;AACZ,MAAkB;AAChB,QAAMC,IAAiBH;AAEvB,iBAAQ,IAAIC,CAAM,GAGhBG,gBAAAA,EAAA,KAACC,GAAQ,EAAA,WAAU,6BACjB,UAAA;AAAA,IAACD,gBAAAA,EAAAA,KAAAE,GAAA,EAAI,WAAU,oBACb,UAAA;AAAA,MAACC,gBAAAA,EAAAA,IAAAF,EAAQ,OAAR,EAAc,IAAG,KAAI,WAAU,0BAAyB,MAAK,KAC3D,UACHZ,EAAA,CAAA;AAAA,MACCC,KACEa,gBAAAA,EAAAA,IAAAF,EAAQ,aAAR,EAAoB,WAAU,wBAC5B,UACHX,EAAA,CAAA;AAAA,IAAA,GAEJ;AAAA,IACAU,gBAAAA,EAAAA,KAAC,OAAI,EAAA,WAAU,uCACb,UAAA;AAAA,MAACA,gBAAAA,EAAAA,KAAAE,GAAA,EAAI,KAAK,OACR,UAAA;AAAA,QAACC,gBAAAA,EAAA,IAAA,MAAA,EAAG,WAAU,0CACX,UACHZ,GAAA;AAAA,QACCY,gBAAAA,EAAAA,IAAAF,EAAQ,aAAR,EAAqB,UAAiBT,EAAA,CAAA;AAAA,QACvCW,gBAAAA,EAAA;AAAA,UAACC;AAAA,UAAA;AAAA,YAEC,WAAWV;AAAA,YACX,MAAMC;AAAA,YAEL,UAAAF;AAAA,UAAA;AAAA,QAAA;AAAA,MACH,GACF;AAAA,MAEAU,gBAAAA,EAAAA,IAAC,OAAI,EAAA,WAAU,4BACb,UAAAA,gBAAAA,EAAA;AAAA,QAACJ;AAAA,QAAA;AAAA,UACC,KAAKD;AAAA,UACL,KAAI;AAAA,UACJ,eAAY;AAAA,UACZ,OAAO;AAAA,UACP,QAAQ;AAAA,QAAA;AAAA,MAAA,EAEZ,CAAA;AAAA,IAAA,EACF,CAAA;AAAA,EAAA,GACF;AAEJ;"}
|
package/dist/index.es225.js
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
import * as p from "react";
|
2
|
-
import { composeEventHandlers as m } from "./index.
|
3
|
-
import { composeRefs as E } from "./index.
|
4
|
-
import { createContextScope as S } from "./index.
|
5
|
-
import { useControllableState as P } from "./index.
|
6
|
-
import { Primitive as y } from "./index.
|
7
|
-
import { createMenuScope as D, Root as O, Anchor as T, Portal as j, Content as G, Group as k, Item as L, Label as K, CheckboxItem as U, RadioGroup as B, RadioItem as F, ItemIndicator as H, Separator as W, Arrow as $, SubTrigger as X, SubContent as q } from "./index.
|
8
|
-
import { useId as g } from "./index.
|
2
|
+
import { composeEventHandlers as m } from "./index.es363.js";
|
3
|
+
import { composeRefs as E } from "./index.es364.js";
|
4
|
+
import { createContextScope as S } from "./index.es365.js";
|
5
|
+
import { useControllableState as P } from "./index.es366.js";
|
6
|
+
import { Primitive as y } from "./index.es367.js";
|
7
|
+
import { createMenuScope as D, Root as O, Anchor as T, Portal as j, Content as G, Group as k, Item as L, Label as K, CheckboxItem as U, RadioGroup as B, RadioItem as F, ItemIndicator as H, Separator as W, Arrow as $, SubTrigger as X, SubContent as q } from "./index.es368.js";
|
8
|
+
import { useId as g } from "./index.es369.js";
|
9
9
|
import { j as a } from "./index.es196.js";
|
10
10
|
var M = "DropdownMenu", [z, bo] = S(
|
11
11
|
M,
|
package/dist/index.es229.js
CHANGED
@@ -3,7 +3,7 @@ import { Button as m } from "./index.es25.js";
|
|
3
3
|
import { HeaderTopBanner as y } from "./index.es21.js";
|
4
4
|
import { useState as g, useRef as w, useCallback as C, useEffect as u } from "react";
|
5
5
|
import { clsx as r } from "./index.es198.js";
|
6
|
-
import { useFocusTrap as N } from "./index.
|
6
|
+
import { useFocusTrap as N } from "./index.es370.js";
|
7
7
|
import { Container as k } from "./index.es6.js";
|
8
8
|
import './components/navigations/HeaderMobile/HeaderMobile.css';/* empty css */
|
9
9
|
import { Col as L } from "./index.es10.js";
|
package/dist/index.es230.js
CHANGED
@@ -3,17 +3,17 @@ import { Divider as u } from "./index.es219.js";
|
|
3
3
|
import { LOGOS as d } from "./index.es24.js";
|
4
4
|
import { HeaderSlim as N } from "./index.es17.js";
|
5
5
|
import { clsx as n } from "./index.es198.js";
|
6
|
-
import { Balancer as
|
7
|
-
import { Button as
|
6
|
+
import { Balancer as y } from "./index.es208.js";
|
7
|
+
import { Button as w } from "./index.es25.js";
|
8
8
|
import { Container as I } from "./index.es6.js";
|
9
9
|
import './components/navigations/HeaderDesktop/HeaderDesktop.css';/* empty css */
|
10
10
|
import { Row as l } from "./index.es9.js";
|
11
|
-
const
|
11
|
+
const H = ({
|
12
12
|
title: t,
|
13
13
|
region: r,
|
14
14
|
asLink: x = "a",
|
15
|
-
labels:
|
16
|
-
navigatonItems:
|
15
|
+
labels: h,
|
16
|
+
navigatonItems: m,
|
17
17
|
supportLink: s,
|
18
18
|
loginLink: j = "/",
|
19
19
|
shortTitle: c,
|
@@ -66,17 +66,17 @@ const O = ({
|
|
66
66
|
children: [
|
67
67
|
/* @__PURE__ */ e.jsxs(l, { gap: "x16", alignItems: "center", children: [
|
68
68
|
/* @__PURE__ */ e.jsxs(l, { gap: "x16", alignItems: "center", justifyContent: "center", children: [
|
69
|
-
/* @__PURE__ */ e.jsx(b, { height:
|
69
|
+
/* @__PURE__ */ e.jsx(b, { height: 53 }),
|
70
70
|
r !== "nazionale" && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
71
71
|
/* @__PURE__ */ e.jsx(u, { bg: "border-divider", direction: "vertical" }),
|
72
|
-
/* @__PURE__ */ e.jsx(v, { width:
|
72
|
+
/* @__PURE__ */ e.jsx(v, { width: 53, height: 53 })
|
73
73
|
] })
|
74
74
|
] }),
|
75
|
-
/* @__PURE__ */ e.jsx("h1", { className: n(f), children: /* @__PURE__ */ e.jsx(
|
75
|
+
/* @__PURE__ */ e.jsx("h1", { className: n(f), children: /* @__PURE__ */ e.jsx(y, { children: /* @__PURE__ */ e.jsxs(
|
76
76
|
i,
|
77
77
|
{
|
78
78
|
href: "/",
|
79
|
-
className: "fs-2 fw-bold text-slate-20 text-decoration-none hover-underline",
|
79
|
+
className: "fs-2 fw-bold text-slate-20 text-decoration-none ui-title-line-height hover-underline",
|
80
80
|
children: [
|
81
81
|
t,
|
82
82
|
/* @__PURE__ */ e.jsx("span", { className: "visually-hidden", children: "Vai alla homepage" })
|
@@ -84,15 +84,19 @@ const O = ({
|
|
84
84
|
}
|
85
85
|
) }) })
|
86
86
|
] }),
|
87
|
-
/* @__PURE__ */ e.jsxs(
|
88
|
-
|
87
|
+
/* @__PURE__ */ e.jsxs(w, { size: "2", href: j, asLink: "a", children: [
|
88
|
+
/* @__PURE__ */ e.jsxs("span", { style: { fontSize: 14 }, children: [
|
89
|
+
" ",
|
90
|
+
h.login,
|
91
|
+
" "
|
92
|
+
] }),
|
89
93
|
/* @__PURE__ */ e.jsx("span", { className: "visually-hidden", children: " Accedi con Cohesion" })
|
90
94
|
] })
|
91
95
|
]
|
92
96
|
}
|
93
97
|
),
|
94
98
|
/* @__PURE__ */ e.jsx("nav", { "aria-label": "Menu di navigazione", className: "shadow-bottom", children: /* @__PURE__ */ e.jsxs(I, { className: "base-row align-items-center justify-content-between max-h-x52", children: [
|
95
|
-
/* @__PURE__ */ e.jsx(l, { as: "ul", className: "list-style-none", role: "list", children:
|
99
|
+
/* @__PURE__ */ e.jsx(l, { as: "ul", className: "list-style-none", role: "list", children: m.map((a, g) => /* @__PURE__ */ e.jsx(
|
96
100
|
"li",
|
97
101
|
{
|
98
102
|
className: n(
|
@@ -141,6 +145,6 @@ const O = ({
|
|
141
145
|
] });
|
142
146
|
};
|
143
147
|
export {
|
144
|
-
|
148
|
+
H as HeaderDesktop
|
145
149
|
};
|
146
150
|
//# sourceMappingURL=index.es230.js.map
|
package/dist/index.es230.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es230.js","sources":["../src/components/navigations/HeaderDesktop/index.tsx"],"sourcesContent":["import { Divider } from \"@/components/ui/Divider\";\nimport { LOGOS, Region } from \"../Header\";\nimport { HeaderSlim } from \"../HeaderSlim\";\nimport clsx from \"clsx\";\nimport { Balancer } from \"react-wrap-balancer\";\nimport { Button } from \"@/components/ui/Button\";\nimport { Container } from \"@/components/ui/Container\";\nimport \"./HeaderDesktop.scss\";\nimport { Row } from \"@/components\";\n\ntype NavigationItem = {\n label: string;\n href: string;\n active?: boolean;\n isNewTab?: boolean;\n};\n\ntype NavigationLabels = {\n closeMenu: string;\n login: string;\n};\n\nexport type HeaderDesktopProps = {\n title: React.ReactNode | string;\n region: Region;\n asLink?: \"a\" | React.ComponentType<any>;\n children?: React.ReactNode;\n labels: NavigationLabels;\n navigatonItems: NavigationItem[];\n supportLink?: NavigationItem;\n loginLink?: string;\n shortTitle?: React.ReactNode;\n headerTitleClassname?: string;\n headerLogoUrl2?: string;\n};\n\nexport const HeaderDesktop = ({\n title,\n region,\n asLink = \"a\",\n labels,\n navigatonItems,\n supportLink,\n loginLink = \"/\",\n shortTitle,\n headerTitleClassname,\n children,\n headerLogoUrl2,\n}: HeaderDesktopProps) => {\n const LinkComponent = asLink;\n const NationalIcon = LOGOS[\"nazionale\"];\n const RegionIcon = LOGOS[region];\n\n return (\n <div className=\"sticky-header bg-white\">\n <HeaderSlim\n pt=\"x16\"\n pb=\"x16\"\n display=\"flex\"\n justifyContent=\"space-between\"\n alignItems=\"center\"\n >\n <LinkComponent\n href=\"/\"\n className=\"text-white fw-semibold text-decoration-none fs-7 hover-underline base-row align-items-center justify-content-center gap-x8\"\n >\n {headerLogoUrl2 && (\n <div\n style={{ backgroundImage: `url(${headerLogoUrl2})` }}\n className={\"ui-header-item-image\"}\n ></div>\n )}\n\n {shortTitle ? shortTitle : title}\n <span className=\"visually-hidden\">Vai alla homepage</span>\n </LinkComponent>\n\n {children}\n </HeaderSlim>\n <header className=\"bg-white\">\n <Row\n py={\"x20\"}\n gap={\"x16\"}\n alignItems=\"center\"\n justifyContent={\"space-between\"}\n className=\"max-h-x116 ui-container\"\n >\n <Row gap={\"x16\"} alignItems=\"center\">\n <Row gap={\"x16\"} alignItems=\"center\" justifyContent={\"center\"}>\n <NationalIcon height={
|
1
|
+
{"version":3,"file":"index.es230.js","sources":["../src/components/navigations/HeaderDesktop/index.tsx"],"sourcesContent":["import { Divider } from \"@/components/ui/Divider\";\nimport { LOGOS, Region } from \"../Header\";\nimport { HeaderSlim } from \"../HeaderSlim\";\nimport clsx from \"clsx\";\nimport { Balancer } from \"react-wrap-balancer\";\nimport { Button } from \"@/components/ui/Button\";\nimport { Container } from \"@/components/ui/Container\";\nimport \"./HeaderDesktop.scss\";\nimport { Row } from \"@/components\";\n\ntype NavigationItem = {\n label: string;\n href: string;\n active?: boolean;\n isNewTab?: boolean;\n};\n\ntype NavigationLabels = {\n closeMenu: string;\n login: string;\n};\n\nexport type HeaderDesktopProps = {\n title: React.ReactNode | string;\n region: Region;\n asLink?: \"a\" | React.ComponentType<any>;\n children?: React.ReactNode;\n labels: NavigationLabels;\n navigatonItems: NavigationItem[];\n supportLink?: NavigationItem;\n loginLink?: string;\n shortTitle?: React.ReactNode;\n headerTitleClassname?: string;\n headerLogoUrl2?: string;\n};\n\nexport const HeaderDesktop = ({\n title,\n region,\n asLink = \"a\",\n labels,\n navigatonItems,\n supportLink,\n loginLink = \"/\",\n shortTitle,\n headerTitleClassname,\n children,\n headerLogoUrl2,\n}: HeaderDesktopProps) => {\n const LinkComponent = asLink;\n const NationalIcon = LOGOS[\"nazionale\"];\n const RegionIcon = LOGOS[region];\n\n return (\n <div className=\"sticky-header bg-white\">\n <HeaderSlim\n pt=\"x16\"\n pb=\"x16\"\n display=\"flex\"\n justifyContent=\"space-between\"\n alignItems=\"center\"\n >\n <LinkComponent\n href=\"/\"\n className=\"text-white fw-semibold text-decoration-none fs-7 hover-underline base-row align-items-center justify-content-center gap-x8\"\n >\n {headerLogoUrl2 && (\n <div\n style={{ backgroundImage: `url(${headerLogoUrl2})` }}\n className={\"ui-header-item-image\"}\n ></div>\n )}\n\n {shortTitle ? shortTitle : title}\n <span className=\"visually-hidden\">Vai alla homepage</span>\n </LinkComponent>\n\n {children}\n </HeaderSlim>\n <header className=\"bg-white\">\n <Row\n py={\"x20\"}\n gap={\"x16\"}\n alignItems=\"center\"\n justifyContent={\"space-between\"}\n className=\"max-h-x116 ui-container\"\n >\n <Row gap={\"x16\"} alignItems=\"center\">\n <Row gap={\"x16\"} alignItems=\"center\" justifyContent={\"center\"}>\n <NationalIcon height={53} />\n\n {region !== \"nazionale\" && (\n <>\n <Divider bg=\"border-divider\" direction=\"vertical\" />\n\n <RegionIcon width={53} height={53} />\n </>\n )}\n </Row>\n <h1 className={clsx(headerTitleClassname)}>\n <Balancer>\n <LinkComponent\n href=\"/\"\n className={\n \"fs-2 fw-bold text-slate-20 text-decoration-none ui-title-line-height hover-underline\"\n }\n >\n {title}\n <span className=\"visually-hidden\">Vai alla homepage</span>\n </LinkComponent>\n </Balancer>\n </h1>\n </Row>\n <Button size=\"2\" href={loginLink} asLink=\"a\">\n <span style={{ fontSize: 14 }}> {labels.login} </span>\n <span className=\"visually-hidden\"> Accedi con Cohesion</span>\n </Button>\n </Row>\n <nav aria-label=\"Menu di navigazione\" className=\"shadow-bottom\">\n <Container className=\"base-row align-items-center justify-content-between max-h-x52\">\n <Row as={\"ul\"} className=\"list-style-none\" role=\"list\">\n {navigatonItems.map((item, index) => {\n return (\n <li\n key={index}\n className={clsx(\n \"py-x12 px-x16 ui-header-desktop-nav-item max-h-x52\",\n item.active && \"active\",\n )}\n >\n <LinkComponent\n href={item.href}\n aria-label={`Vai alla pagina ${item.label}`}\n className={clsx(\n \"text-decoration-none fs-custom\",\n item.active\n ? \"fw-bold text-blue-30\"\n : \"fw-semibold text-primary\",\n )}\n target={item.isNewTab ? \"_blank\" : undefined}\n rel={item.isNewTab ? \"noopener noreferrer\" : undefined}\n >\n {item.label}\n {item.active && (\n <span className=\"visually-hidden\">Attivo</span>\n )}\n </LinkComponent>\n </li>\n );\n })}\n </Row>\n {supportLink && (\n <LinkComponent\n href={supportLink.href}\n aria-label={`Vai alla pagina ${supportLink.label}`}\n className={clsx(\n \"text-decoration-none fs-custom py-x12 px-x24\",\n supportLink.active\n ? \"fw-bold text-blue-30\"\n : \"fw-semibold text-primary\",\n \"ui-header-desktop-support-link\",\n supportLink.active && \"active\",\n )}\n >\n {supportLink.label}\n {supportLink.active && (\n <span className=\"visually-hidden\">Attivo</span>\n )}\n </LinkComponent>\n )}\n </Container>\n </nav>\n </header>\n </div>\n );\n};\n"],"names":["HeaderDesktop","title","region","asLink","labels","navigatonItems","supportLink","loginLink","shortTitle","headerTitleClassname","children","headerLogoUrl2","LinkComponent","NationalIcon","LOGOS","RegionIcon","jsxs","HeaderSlim","jsx","Row","Fragment","Divider","clsx","Balancer","Button","Container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AA;AAAA,MAE5C,EAAA,CAEJ,EACF,CAAA;AAAA,IAAA,EACF,CAAA;AAAA,EAAA,GACF;AAEJ;"}
|
package/dist/index.es236.js
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
import * as n from "react";
|
2
|
-
import { useComposedRefs as N } from "./index.
|
3
|
-
import { createContextScope as M } from "./index.
|
4
|
-
import { composeEventHandlers as S } from "./index.
|
5
|
-
import { useControllableState as O } from "./index.
|
2
|
+
import { useComposedRefs as N } from "./index.es364.js";
|
3
|
+
import { createContextScope as M } from "./index.es365.js";
|
4
|
+
import { composeEventHandlers as S } from "./index.es363.js";
|
5
|
+
import { useControllableState as O } from "./index.es366.js";
|
6
6
|
import { usePrevious as A } from "./index.es373.js";
|
7
7
|
import { useSize as B } from "./index.es374.js";
|
8
8
|
import { Presence as H } from "./index.es375.js";
|
9
|
-
import { Primitive as j } from "./index.
|
9
|
+
import { Primitive as j } from "./index.es367.js";
|
10
10
|
import { j as f } from "./index.es196.js";
|
11
11
|
var R = "Checkbox", [K, Y] = M(R), [L, q] = K(R), I = n.forwardRef(
|
12
12
|
(e, l) => {
|
package/dist/index.es246.js
CHANGED
package/dist/index.es253.js
CHANGED
@@ -1,18 +1,18 @@
|
|
1
1
|
import * as s from "react";
|
2
|
-
import { composeEventHandlers as p } from "./index.
|
3
|
-
import { useComposedRefs as C } from "./index.
|
4
|
-
import { createContextScope as B, createContext as H } from "./index.
|
5
|
-
import { useId as x } from "./index.
|
6
|
-
import { useControllableState as V } from "./index.
|
7
|
-
import { DismissableLayer as q } from "./index.
|
8
|
-
import { FocusScope as K } from "./index.
|
9
|
-
import { Portal as U } from "./index.
|
2
|
+
import { composeEventHandlers as p } from "./index.es363.js";
|
3
|
+
import { useComposedRefs as C } from "./index.es364.js";
|
4
|
+
import { createContextScope as B, createContext as H } from "./index.es365.js";
|
5
|
+
import { useId as x } from "./index.es369.js";
|
6
|
+
import { useControllableState as V } from "./index.es366.js";
|
7
|
+
import { DismissableLayer as q } from "./index.es384.js";
|
8
|
+
import { FocusScope as K } from "./index.es385.js";
|
9
|
+
import { Portal as U } from "./index.es386.js";
|
10
10
|
import { Presence as R } from "./index.es375.js";
|
11
|
-
import { Primitive as m } from "./index.
|
12
|
-
import { useFocusGuards as Y } from "./index.
|
13
|
-
import Z from "./index.
|
14
|
-
import { hideOthers as z } from "./index.
|
15
|
-
import { createSlot as J } from "./index.
|
11
|
+
import { Primitive as m } from "./index.es367.js";
|
12
|
+
import { useFocusGuards as Y } from "./index.es387.js";
|
13
|
+
import Z from "./index.es388.js";
|
14
|
+
import { hideOthers as z } from "./index.es389.js";
|
15
|
+
import { createSlot as J } from "./index.es390.js";
|
16
16
|
import { j as i } from "./index.es196.js";
|
17
17
|
var _ = "Dialog", [N, he] = B(_), [Q, u] = N(_), P = (e) => {
|
18
18
|
const {
|
package/dist/index.es280.js
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
import * as s from "react";
|
2
|
-
import { composeEventHandlers as T } from "./index.
|
3
|
-
import { useComposedRefs as _ } from "./index.
|
4
|
-
import { createContextScope as H } from "./index.
|
5
|
-
import { useControllableState as I } from "./index.
|
2
|
+
import { composeEventHandlers as T } from "./index.es363.js";
|
3
|
+
import { useComposedRefs as _ } from "./index.es364.js";
|
4
|
+
import { createContextScope as H } from "./index.es365.js";
|
5
|
+
import { useControllableState as I } from "./index.es366.js";
|
6
6
|
import { usePrevious as M } from "./index.es373.js";
|
7
7
|
import { useSize as N } from "./index.es374.js";
|
8
|
-
import { Primitive as w } from "./index.
|
8
|
+
import { Primitive as w } from "./index.es367.js";
|
9
9
|
import { j as p } from "./index.es196.js";
|
10
10
|
var S = "Switch", [B, J] = H(S), [q, z] = B(S), C = s.forwardRef(
|
11
11
|
(e, n) => {
|
package/dist/index.es318.js
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
import * as l from "react";
|
2
|
-
import { createContextScope as T } from "./index.
|
3
|
-
import { useComposedRefs as A } from "./index.
|
2
|
+
import { createContextScope as T } from "./index.es365.js";
|
3
|
+
import { useComposedRefs as A } from "./index.es364.js";
|
4
4
|
import { createDialogScope as v, Root as O, Portal as j, Overlay as b, WarningProvider as w, Content as M, Title as I, Description as L, Close as f, Trigger as $ } from "./index.es253.js";
|
5
|
-
import { composeEventHandlers as F } from "./index.
|
6
|
-
import { createSlottable as G } from "./index.
|
5
|
+
import { composeEventHandlers as F } from "./index.es363.js";
|
6
|
+
import { createSlottable as G } from "./index.es390.js";
|
7
7
|
import { j as i } from "./index.es196.js";
|
8
8
|
var D = "AlertDialog", [W, te] = T(D, [
|
9
9
|
v
|
package/dist/index.es346.js
CHANGED
package/dist/index.es347.js
CHANGED
package/dist/index.es355.js
CHANGED
package/dist/index.es356.js
CHANGED
package/dist/index.es363.js
CHANGED
@@ -1,18 +1,10 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
), c = o[0], r = o[o.length - 1], s = (e) => {
|
8
|
-
e.key === "Tab" && (e.shiftKey ? document.activeElement === c && (r.focus(), e.preventDefault()) : document.activeElement === r && (c.focus(), e.preventDefault()));
|
9
|
-
}, u = document.activeElement;
|
10
|
-
return c.focus(), document.addEventListener("keydown", s), () => {
|
11
|
-
document.removeEventListener("keydown", s), n && (u == null || u.focus());
|
12
|
-
};
|
13
|
-
}, [n, t]);
|
14
|
-
};
|
1
|
+
function h(f, c, { checkForDefaultPrevented: p = !0 } = {}) {
|
2
|
+
return function(s) {
|
3
|
+
if (f == null || f(s), p === !1 || !s.defaultPrevented)
|
4
|
+
return c == null ? void 0 : c(s);
|
5
|
+
};
|
6
|
+
}
|
15
7
|
export {
|
16
|
-
|
8
|
+
h as composeEventHandlers
|
17
9
|
};
|
18
10
|
//# sourceMappingURL=index.es363.js.map
|
package/dist/index.es363.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es363.js","sources":["../
|
1
|
+
{"version":3,"file":"index.es363.js","sources":["../node_modules/@radix-ui/primitive/dist/index.mjs"],"sourcesContent":["// packages/core/primitive/src/primitive.tsx\nfunction composeEventHandlers(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {\n return function handleEvent(event) {\n originalEventHandler?.(event);\n if (checkForDefaultPrevented === false || !event.defaultPrevented) {\n return ourEventHandler?.(event);\n }\n };\n}\nexport {\n composeEventHandlers\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["composeEventHandlers","originalEventHandler","ourEventHandler","checkForDefaultPrevented","event"],"mappings":"AACA,SAASA,EAAqBC,GAAsBC,GAAiB,EAAE,0BAAAC,IAA2B,GAAM,IAAG,IAAI;AAC7G,SAAO,SAAqBC,GAAO;AAEjC,QADAH,KAAA,QAAAA,EAAuBG,IACnBD,MAA6B,MAAS,CAACC,EAAM;AAC/C,aAAOF,KAAA,gBAAAA,EAAkBE;AAAA,EAE5B;AACH;","x_google_ignoreList":[0]}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
import * as f from "react";
|
2
|
+
function l(n, o) {
|
3
|
+
if (typeof n == "function")
|
4
|
+
return n(o);
|
5
|
+
n != null && (n.current = o);
|
6
|
+
}
|
7
|
+
function i(...n) {
|
8
|
+
return (o) => {
|
9
|
+
let u = !1;
|
10
|
+
const c = n.map((t) => {
|
11
|
+
const e = l(t, o);
|
12
|
+
return !u && typeof e == "function" && (u = !0), e;
|
13
|
+
});
|
14
|
+
if (u)
|
15
|
+
return () => {
|
16
|
+
for (let t = 0; t < c.length; t++) {
|
17
|
+
const e = c[t];
|
18
|
+
typeof e == "function" ? e() : l(n[t], null);
|
19
|
+
}
|
20
|
+
};
|
21
|
+
};
|
22
|
+
}
|
23
|
+
function s(...n) {
|
24
|
+
return f.useCallback(i(...n), n);
|
25
|
+
}
|
26
|
+
export {
|
27
|
+
i as composeRefs,
|
28
|
+
s as useComposedRefs
|
29
|
+
};
|
30
|
+
//# sourceMappingURL=index.es364.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.es364.js","sources":["../node_modules/@radix-ui/react-compose-refs/dist/index.mjs"],"sourcesContent":["// packages/react/compose-refs/src/compose-refs.tsx\nimport * as React from \"react\";\nfunction setRef(ref, value) {\n if (typeof ref === \"function\") {\n return ref(value);\n } else if (ref !== null && ref !== void 0) {\n ref.current = value;\n }\n}\nfunction composeRefs(...refs) {\n return (node) => {\n let hasCleanup = false;\n const cleanups = refs.map((ref) => {\n const cleanup = setRef(ref, node);\n if (!hasCleanup && typeof cleanup == \"function\") {\n hasCleanup = true;\n }\n return cleanup;\n });\n if (hasCleanup) {\n return () => {\n for (let i = 0; i < cleanups.length; i++) {\n const cleanup = cleanups[i];\n if (typeof cleanup == \"function\") {\n cleanup();\n } else {\n setRef(refs[i], null);\n }\n }\n };\n }\n };\n}\nfunction useComposedRefs(...refs) {\n return React.useCallback(composeRefs(...refs), refs);\n}\nexport {\n composeRefs,\n useComposedRefs\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["setRef","ref","value","composeRefs","refs","node","hasCleanup","cleanups","cleanup","i","useComposedRefs","React"],"mappings":";AAEA,SAASA,EAAOC,GAAKC,GAAO;AAC1B,MAAI,OAAOD,KAAQ;AACjB,WAAOA,EAAIC,CAAK;AACX,EAAID,KAAQ,SACjBA,EAAI,UAAUC;AAElB;AACA,SAASC,KAAeC,GAAM;AAC5B,SAAO,CAACC,MAAS;AACf,QAAIC,IAAa;AACjB,UAAMC,IAAWH,EAAK,IAAI,CAACH,MAAQ;AACjC,YAAMO,IAAUR,EAAOC,GAAKI,CAAI;AAChC,aAAI,CAACC,KAAc,OAAOE,KAAW,eACnCF,IAAa,KAERE;AAAA,IACb,CAAK;AACD,QAAIF;AACF,aAAO,MAAM;AACX,iBAASG,IAAI,GAAGA,IAAIF,EAAS,QAAQE,KAAK;AACxC,gBAAMD,IAAUD,EAASE,CAAC;AAC1B,UAAI,OAAOD,KAAW,aACpBA,EAAS,IAETR,EAAOI,EAAKK,CAAC,GAAG,IAAI;AAAA,QAEhC;AAAA,MACO;AAAA,EAEJ;AACH;AACA,SAASC,KAAmBN,GAAM;AAChC,SAAOO,EAAM,YAAYR,EAAY,GAAGC,CAAI,GAAGA,CAAI;AACrD;","x_google_ignoreList":[0]}
|