@anoki/fse-ui 1.0.394 → 1.0.395
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.cjs177.js +1 -1
- package/dist/index.cjs181.js +1 -1
- package/dist/index.cjs182.js +1 -1
- package/dist/index.cjs182.js.map +1 -1
- package/dist/index.cjs188.js +1 -1
- package/dist/index.cjs199.js +1 -1
- package/dist/index.cjs206.js +1 -1
- package/dist/index.cjs207.js +1 -1
- package/dist/index.cjs211.js +1 -1
- package/dist/index.cjs216.js +1 -1
- package/dist/index.cjs218.js +1 -1
- package/dist/index.cjs226.js +1 -1
- package/dist/index.cjs267.js +1 -1
- package/dist/index.cjs267.js.map +1 -1
- package/dist/index.cjs271.js +1 -1
- package/dist/index.cjs271.js.map +1 -1
- package/dist/index.cjs272.js +1 -1
- package/dist/index.cjs272.js.map +1 -1
- package/dist/index.cjs273.js +1 -1
- package/dist/index.cjs273.js.map +1 -1
- package/dist/{index.cjs270.js → index.cjs274.js} +1 -1
- package/dist/{index.cjs270.js.map → index.cjs274.js.map} +1 -1
- package/dist/index.cjs275.js +1 -1
- package/dist/index.cjs275.js.map +1 -1
- package/dist/index.cjs276.js +2 -0
- package/dist/index.cjs276.js.map +1 -0
- package/dist/index.cjs277.js +2 -0
- package/dist/index.cjs277.js.map +1 -0
- package/dist/index.cjs280.js +1 -1
- package/dist/index.cjs284.js +2 -0
- package/dist/index.cjs284.js.map +1 -0
- package/dist/{index.cjs291.js → index.cjs285.js} +2 -2
- package/dist/{index.cjs291.js.map → index.cjs285.js.map} +1 -1
- package/dist/{index.cjs292.js → index.cjs286.js} +2 -2
- package/dist/{index.cjs292.js.map → index.cjs286.js.map} +1 -1
- package/dist/{index.cjs293.js → index.cjs287.js} +1 -1
- package/dist/{index.cjs293.js.map → index.cjs287.js.map} +1 -1
- package/dist/{index.cjs294.js → index.cjs288.js} +1 -1
- package/dist/{index.cjs294.js.map → index.cjs288.js.map} +1 -1
- package/dist/{index.cjs295.js → index.cjs289.js} +1 -1
- package/dist/{index.cjs295.js.map → index.cjs289.js.map} +1 -1
- package/dist/index.cjs290.js +1 -1
- package/dist/index.cjs290.js.map +1 -1
- package/dist/index.cjs305.js +1 -1
- package/dist/index.cjs307.js +1 -1
- package/dist/index.cjs308.js +1 -1
- package/dist/index.cjs312.js +1 -1
- package/dist/index.cjs313.js +1 -1
- package/dist/index.cjs318.js +1 -1
- package/dist/index.cjs320.js +1 -1
- package/dist/index.cjs322.js +38 -1
- package/dist/index.cjs322.js.map +1 -1
- package/dist/index.cjs323.js +1 -1
- package/dist/index.cjs323.js.map +1 -1
- package/dist/index.cjs324.js +1 -1
- package/dist/index.cjs324.js.map +1 -1
- package/dist/index.cjs325.js +1 -38
- package/dist/index.cjs325.js.map +1 -1
- package/dist/index.cjs326.js +1 -1
- package/dist/index.cjs326.js.map +1 -1
- package/dist/index.cjs327.js +1 -1
- package/dist/index.cjs327.js.map +1 -1
- package/dist/index.cjs328.js +1 -1
- package/dist/index.cjs328.js.map +1 -1
- package/dist/index.cjs329.js +1 -1
- package/dist/index.cjs329.js.map +1 -1
- package/dist/index.cjs332.js +1 -1
- package/dist/index.cjs332.js.map +1 -1
- package/dist/index.cjs333.js +1 -1
- package/dist/index.cjs333.js.map +1 -1
- package/dist/index.cjs334.js +1 -1
- package/dist/index.cjs334.js.map +1 -1
- package/dist/index.cjs335.js +1 -1
- package/dist/index.cjs335.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.es177.js +7 -7
- package/dist/index.es181.js +1 -1
- package/dist/index.es182.js +31 -23
- package/dist/index.es182.js.map +1 -1
- package/dist/index.es188.js +5 -5
- package/dist/index.es199.js +13 -13
- package/dist/index.es206.js +1 -1
- package/dist/index.es207.js +1 -1
- package/dist/index.es211.js +1 -1
- package/dist/index.es216.js +1 -1
- package/dist/index.es218.js +1 -1
- package/dist/index.es226.js +5 -5
- package/dist/index.es267.js +15 -7
- package/dist/index.es267.js.map +1 -1
- package/dist/index.es271.js +6 -32
- package/dist/index.es271.js.map +1 -1
- package/dist/index.es272.js +23 -618
- package/dist/index.es272.js.map +1 -1
- package/dist/index.es273.js +67 -10
- package/dist/index.es273.js.map +1 -1
- package/dist/{index.es270.js → index.es274.js} +1 -1
- package/dist/{index.es270.js.map → index.es274.js.map} +1 -1
- package/dist/index.es275.js +33 -15
- package/dist/index.es275.js.map +1 -1
- package/dist/index.es276.js +625 -0
- package/dist/index.es276.js.map +1 -0
- package/dist/index.es277.js +14 -0
- package/dist/index.es277.js.map +1 -0
- package/dist/index.es280.js +1 -1
- package/dist/index.es284.js +128 -0
- package/dist/index.es284.js.map +1 -0
- package/dist/{index.es291.js → index.es285.js} +3 -3
- package/dist/{index.es291.js.map → index.es285.js.map} +1 -1
- package/dist/{index.es292.js → index.es286.js} +2 -2
- package/dist/{index.es292.js.map → index.es286.js.map} +1 -1
- package/dist/{index.es293.js → index.es287.js} +1 -1
- package/dist/{index.es293.js.map → index.es287.js.map} +1 -1
- package/dist/{index.es294.js → index.es288.js} +1 -1
- package/dist/{index.es294.js.map → index.es288.js.map} +1 -1
- package/dist/{index.es295.js → index.es289.js} +1 -1
- package/dist/{index.es295.js.map → index.es289.js.map} +1 -1
- package/dist/index.es290.js +37 -120
- package/dist/index.es290.js.map +1 -1
- package/dist/index.es305.js +3 -3
- package/dist/index.es307.js +3 -3
- package/dist/index.es308.js +6 -6
- package/dist/index.es312.js +1 -1
- package/dist/index.es313.js +3 -3
- package/dist/index.es318.js +1 -1
- package/dist/index.es320.js +4 -4
- package/dist/index.es322.js +64 -518
- package/dist/index.es322.js.map +1 -1
- package/dist/index.es323.js +8 -126
- package/dist/index.es323.js.map +1 -1
- package/dist/index.es324.js +13 -128
- package/dist/index.es324.js.map +1 -1
- package/dist/index.es325.js +61 -68
- package/dist/index.es325.js.map +1 -1
- package/dist/index.es326.js +64 -8
- package/dist/index.es326.js.map +1 -1
- package/dist/index.es327.js +520 -11
- package/dist/index.es327.js.map +1 -1
- package/dist/index.es328.js +126 -61
- package/dist/index.es328.js.map +1 -1
- package/dist/index.es329.js +125 -61
- package/dist/index.es329.js.map +1 -1
- package/dist/index.es332.js +21 -11
- package/dist/index.es332.js.map +1 -1
- package/dist/index.es333.js +11 -26
- package/dist/index.es333.js.map +1 -1
- package/dist/index.es334.js +27 -4
- package/dist/index.es334.js.map +1 -1
- package/dist/index.es335.js +4 -22
- package/dist/index.es335.js.map +1 -1
- package/package.json +1 -1
- package/dist/index.cjs268.js +0 -2
- package/dist/index.cjs268.js.map +0 -1
- package/dist/index.cjs269.js +0 -2
- package/dist/index.cjs269.js.map +0 -1
- package/dist/index.cjs296.js +0 -2
- package/dist/index.cjs296.js.map +0 -1
- package/dist/index.es268.js +0 -30
- package/dist/index.es268.js.map +0 -1
- package/dist/index.es269.js +0 -71
- package/dist/index.es269.js.map +0 -1
- package/dist/index.es296.js +0 -45
- package/dist/index.es296.js.map +0 -1
- /package/dist/components/ui/{DoctorConfirmModal/DoctorConfirmModalContent/DoctorConfirmModalContent.css → ConsentModal/ConsentModalContent/ConsentModalContent.css} +0 -0
- /package/dist/components/ui/{DoctorConfirmModal/DoctorConfirmModalFooter/DoctorConfirmModalFooter.css → ConsentModal/ConsentModalFooter/ConsentModalFooter.css} +0 -0
package/dist/index.es182.js
CHANGED
@@ -1,26 +1,27 @@
|
|
1
1
|
import { j as e } from "./index.es152.js";
|
2
|
-
import { Divider as
|
3
|
-
import { LOGOS as
|
2
|
+
import { Divider as u } from "./index.es171.js";
|
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.es154.js";
|
6
|
-
import { Balancer as
|
7
|
-
import { Button as
|
8
|
-
import { Container as
|
6
|
+
import { Balancer as w } from "./index.es228.js";
|
7
|
+
import { Button as y } from "./index.es25.js";
|
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
11
|
const O = ({
|
12
12
|
title: t,
|
13
13
|
region: r,
|
14
|
-
asLink:
|
15
|
-
labels:
|
14
|
+
asLink: x = "a",
|
15
|
+
labels: m,
|
16
16
|
navigatonItems: h,
|
17
17
|
supportLink: s,
|
18
|
-
loginLink:
|
19
|
-
shortTitle:
|
18
|
+
loginLink: j = "/",
|
19
|
+
shortTitle: c,
|
20
20
|
headerTitleClassname: f,
|
21
|
-
children:
|
21
|
+
children: p,
|
22
|
+
headerLogoUrl2: o
|
22
23
|
}) => {
|
23
|
-
const i =
|
24
|
+
const i = x, b = d.nazionale, v = d[r];
|
24
25
|
return /* @__PURE__ */ e.jsxs("div", { className: "sticky-header bg-white", children: [
|
25
26
|
/* @__PURE__ */ e.jsxs(
|
26
27
|
N,
|
@@ -35,14 +36,21 @@ const O = ({
|
|
35
36
|
i,
|
36
37
|
{
|
37
38
|
href: "/",
|
38
|
-
className: "text-white fw-semibold text-decoration-none fs-7 hover-underline",
|
39
|
+
className: "text-white fw-semibold text-decoration-none fs-7 hover-underline base-row align-items-center justify-content-center gap-x8",
|
39
40
|
children: [
|
40
|
-
o
|
41
|
+
o && /* @__PURE__ */ e.jsx(
|
42
|
+
"div",
|
43
|
+
{
|
44
|
+
style: { backgroundImage: `url(${o})` },
|
45
|
+
className: "ui header-item-image"
|
46
|
+
}
|
47
|
+
),
|
48
|
+
c || t,
|
41
49
|
/* @__PURE__ */ e.jsx("span", { className: "visually-hidden", children: "Vai alla homepage" })
|
42
50
|
]
|
43
51
|
}
|
44
52
|
),
|
45
|
-
|
53
|
+
p
|
46
54
|
]
|
47
55
|
}
|
48
56
|
),
|
@@ -58,13 +66,13 @@ const O = ({
|
|
58
66
|
children: [
|
59
67
|
/* @__PURE__ */ e.jsxs(l, { gap: "x16", alignItems: "center", children: [
|
60
68
|
/* @__PURE__ */ e.jsxs(l, { gap: "x16", alignItems: "center", justifyContent: "center", children: [
|
61
|
-
/* @__PURE__ */ e.jsx(
|
69
|
+
/* @__PURE__ */ e.jsx(b, { height: 58 }),
|
62
70
|
r !== "nazionale" && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
63
|
-
/* @__PURE__ */ e.jsx(
|
64
|
-
/* @__PURE__ */ e.jsx(
|
71
|
+
/* @__PURE__ */ e.jsx(u, { bg: "border-divider", direction: "vertical" }),
|
72
|
+
/* @__PURE__ */ e.jsx(v, { width: 58, height: 58 })
|
65
73
|
] })
|
66
74
|
] }),
|
67
|
-
/* @__PURE__ */ e.jsx("h1", { className: n(f), children: /* @__PURE__ */ e.jsx(
|
75
|
+
/* @__PURE__ */ e.jsx("h1", { className: n(f), children: /* @__PURE__ */ e.jsx(w, { children: /* @__PURE__ */ e.jsxs(
|
68
76
|
i,
|
69
77
|
{
|
70
78
|
href: "/",
|
@@ -76,15 +84,15 @@ const O = ({
|
|
76
84
|
}
|
77
85
|
) }) })
|
78
86
|
] }),
|
79
|
-
/* @__PURE__ */ e.jsxs(
|
80
|
-
|
87
|
+
/* @__PURE__ */ e.jsxs(y, { size: "2", href: j, asLink: "a", children: [
|
88
|
+
m.login,
|
81
89
|
/* @__PURE__ */ e.jsx("span", { className: "visually-hidden", children: " Accedi con Cohesion" })
|
82
90
|
] })
|
83
91
|
]
|
84
92
|
}
|
85
93
|
),
|
86
|
-
/* @__PURE__ */ e.jsx("nav", { "aria-label": "Menu di navigazione", className: "shadow-bottom", children: /* @__PURE__ */ e.jsxs(
|
87
|
-
/* @__PURE__ */ e.jsx(l, { as: "ul", className: "list-style-none", role: "list", children: h.map((a,
|
94
|
+
/* @__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: h.map((a, g) => /* @__PURE__ */ e.jsx(
|
88
96
|
"li",
|
89
97
|
{
|
90
98
|
className: n(
|
@@ -109,7 +117,7 @@ const O = ({
|
|
109
117
|
}
|
110
118
|
)
|
111
119
|
},
|
112
|
-
|
120
|
+
g
|
113
121
|
)) }),
|
114
122
|
s && /* @__PURE__ */ e.jsxs(
|
115
123
|
i,
|
package/dist/index.es182.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es182.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};\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}: 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\"\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={58} />\n\n {region !== \"nazionale\" && (\n <>\n <Divider bg=\"border-divider\" direction=\"vertical\" />\n\n <RegionIcon width={58} height={58} />\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 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 {labels.login}\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","LinkComponent","NationalIcon","LOGOS","RegionIcon","jsxs","HeaderSlim","jsx","Row","Fragment","Divider","clsx","Balancer","Button","Container","item","index"],"mappings":";;;;;;;;;;
|
1
|
+
{"version":3,"file":"index.es182.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={58} />\n\n {region !== \"nazionale\" && (\n <>\n <Divider bg=\"border-divider\" direction=\"vertical\" />\n\n <RegionIcon width={58} height={58} />\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 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 {labels.login}\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","item","index"],"mappings":";;;;;;;;;;AAoCO,MAAMA,IAAgB,CAAC;AAAA,EAC5B,OAAAC;AAAA,EACA,QAAAC;AAAA,EACA,QAAAC,IAAS;AAAA,EACT,QAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,aAAAC;AAAA,EACA,WAAAC,IAAY;AAAA,EACZ,YAAAC;AAAA,EACA,sBAAAC;AAAA,EACA,UAAAC;AAAA,EACA,gBAAAC;AACF,MAA0B;AACxB,QAAMC,IAAgBT,GAChBU,IAAeC,EAAM,WACrBC,IAAaD,EAAMZ,CAAM;AAG7B,SAAAc,gBAAAA,EAAA,KAAC,OAAI,EAAA,WAAU,0BACb,UAAA;AAAA,IAAAA,gBAAAA,EAAA;AA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A,gBACnC,KAAKA,EAAK,WAAW,wBAAwB;AAAA,gBAE5C,UAAA;AAAA,kBAAKA,EAAA;AAAA,kBACLA,EAAK,UACJR,gBAAAA,EAAAA,IAAC,QAAK,EAAA,WAAU,mBAAkB,UAAM,SAAA,CAAA;AAAA,gBAAA;AAAA,cAAA;AAAA,YAAA;AAAA,UAE5C;AAAA,UAtBKS;AAAA,QAuBP,CAEH,GACH;AAAA,QACCrB,KACCU,gBAAAA,EAAA;AAAA,UAACJ;AAAA,UAAA;AAAA,YACC,MAAMN,EAAY;AAAA,YAClB,cAAY,mBAAmBA,EAAY,KAAK;AAAA,YAChD,WAAWgB;AAAA,cACT;AAAA,cACAhB,EAAY,SACR,yBACA;AAAA,cACJ;AAAA,cACAA,EAAY,UAAU;AAAA,YACxB;AAAA,YAEC,UAAA;AAAA,cAAYA,EAAA;AAAA,cACZA,EAAY,UACXY,gBAAAA,EAAAA,IAAC,QAAK,EAAA,WAAU,mBAAkB,UAAM,SAAA,CAAA;AAAA,YAAA;AAAA,UAAA;AAAA,QAAA;AAAA,MAE5C,EAAA,CAEJ,EACF,CAAA;AAAA,IAAA,EACF,CAAA;AAAA,EAAA,GACF;AAEJ;"}
|
package/dist/index.es188.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.es272.js";
|
3
|
+
import { createContextScope as M } from "./index.es273.js";
|
4
|
+
import { composeEventHandlers as S } from "./index.es271.js";
|
5
|
+
import { useControllableState as O } from "./index.es274.js";
|
6
6
|
import { usePrevious as A } from "./index.es278.js";
|
7
7
|
import { useSize as B } from "./index.es279.js";
|
8
8
|
import { Presence as H } from "./index.es280.js";
|
9
|
-
import { Primitive as j } from "./index.
|
9
|
+
import { Primitive as j } from "./index.es275.js";
|
10
10
|
import { j as f } from "./index.es152.js";
|
11
11
|
var R = "Checkbox", [K, Y] = M(R), [L, q] = K(R), I = n.forwardRef(
|
12
12
|
(e, l) => {
|
package/dist/index.es199.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 L, createContext as $ } from "./index.
|
5
|
-
import { useId as x } from "./index.
|
6
|
-
import { useControllableState as B } from "./index.
|
7
|
-
import { DismissableLayer as H } from "./index.
|
8
|
-
import { FocusScope as V } from "./index.
|
9
|
-
import { Portal as q } from "./index.
|
2
|
+
import { composeEventHandlers as p } from "./index.es271.js";
|
3
|
+
import { useComposedRefs as C } from "./index.es272.js";
|
4
|
+
import { createContextScope as L, createContext as $ } from "./index.es273.js";
|
5
|
+
import { useId as x } from "./index.es277.js";
|
6
|
+
import { useControllableState as B } from "./index.es274.js";
|
7
|
+
import { DismissableLayer as H } from "./index.es284.js";
|
8
|
+
import { FocusScope as V } from "./index.es285.js";
|
9
|
+
import { Portal as q } from "./index.es286.js";
|
10
10
|
import { Presence as R } from "./index.es280.js";
|
11
|
-
import { Primitive as m } from "./index.
|
12
|
-
import { useFocusGuards as K } from "./index.
|
13
|
-
import U from "./index.
|
14
|
-
import { hideOthers as Y } from "./index.
|
15
|
-
import { Slot as Z } from "./index.
|
11
|
+
import { Primitive as m } from "./index.es275.js";
|
12
|
+
import { useFocusGuards as K } from "./index.es287.js";
|
13
|
+
import U from "./index.es288.js";
|
14
|
+
import { hideOthers as Y } from "./index.es289.js";
|
15
|
+
import { Slot as Z } from "./index.es290.js";
|
16
16
|
import { j as i } from "./index.es152.js";
|
17
17
|
var _ = "Dialog", [P, _e] = L(_), [z, u] = P(_), y = (e) => {
|
18
18
|
const {
|
package/dist/index.es206.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { j as t } from "./index.es152.js";
|
2
|
-
import './components/ui/
|
2
|
+
import './components/ui/ConsentModal/ConsentModalFooter/ConsentModalFooter.css';/* empty css */
|
3
3
|
const s = ({ children: o }) => /* @__PURE__ */ t.jsx("footer", { className: "ui-consent-modal-footer bg-white shadow", children: o });
|
4
4
|
export {
|
5
5
|
s as ConsentModalFooter
|
package/dist/index.es207.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { j as n } from "./index.es152.js";
|
2
2
|
import { clsx as r } from "./index.es154.js";
|
3
|
-
import './components/ui/
|
3
|
+
import './components/ui/ConsentModal/ConsentModalContent/ConsentModalContent.css';/* empty css */
|
4
4
|
const i = ({
|
5
5
|
overrideClassNames: o,
|
6
6
|
children: t
|
package/dist/index.es211.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { j as t } from "./index.es152.js";
|
2
|
-
import './components/ui/
|
2
|
+
import './components/ui/ConsentModal/ConsentModalFooter/ConsentModalFooter.css';/* empty css */
|
3
3
|
const s = ({ children: o }) => /* @__PURE__ */ t.jsx("footer", { className: "ui-consent-modal-footer bg-white shadow", children: o });
|
4
4
|
export {
|
5
5
|
s as DoctorModalFooter
|
package/dist/index.es216.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { j as r } from "./index.es152.js";
|
2
2
|
import { clsx as m } from "./index.es154.js";
|
3
|
-
import './components/ui/
|
3
|
+
import './components/ui/ConsentModal/ConsentModalContent/ConsentModalContent.css';/* empty css */
|
4
4
|
const e = ({
|
5
5
|
overrideClassNames: o,
|
6
6
|
children: t
|
package/dist/index.es218.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { j as t } from "./index.es152.js";
|
2
|
-
import './components/ui/
|
2
|
+
import './components/ui/ConsentModal/ConsentModalFooter/ConsentModalFooter.css';/* empty css */
|
3
3
|
const s = ({
|
4
4
|
children: o
|
5
5
|
}) => /* @__PURE__ */ t.jsx("footer", { className: "ui-consent-modal-footer bg-white shadow", children: o });
|
package/dist/index.es226.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.es271.js";
|
3
|
+
import { useComposedRefs as _ } from "./index.es272.js";
|
4
|
+
import { createContextScope as H } from "./index.es273.js";
|
5
|
+
import { useControllableState as I } from "./index.es274.js";
|
6
6
|
import { usePrevious as M } from "./index.es278.js";
|
7
7
|
import { useSize as N } from "./index.es279.js";
|
8
|
-
import { Primitive as w } from "./index.
|
8
|
+
import { Primitive as w } from "./index.es275.js";
|
9
9
|
import { j as p } from "./index.es152.js";
|
10
10
|
var S = "Switch", [B, J] = H(S), [q, z] = B(S), C = s.forwardRef(
|
11
11
|
(e, n) => {
|
package/dist/index.es267.js
CHANGED
@@ -1,10 +1,18 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
1
|
+
import { useEffect as l } from "react";
|
2
|
+
const f = (t, n) => {
|
3
|
+
l(() => {
|
4
|
+
if (!n || !t.current) return;
|
5
|
+
const o = t.current.querySelectorAll(
|
6
|
+
'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
|
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
|
+
};
|
7
15
|
export {
|
8
|
-
|
16
|
+
f as useFocusTrap
|
9
17
|
};
|
10
18
|
//# sourceMappingURL=index.es267.js.map
|
package/dist/index.es267.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es267.js","sources":["../
|
1
|
+
{"version":3,"file":"index.es267.js","sources":["../src/hooks/useFocusTrap.ts"],"sourcesContent":["import { useEffect } from \"react\";\r\n\r\nexport const useFocusTrap = (\r\n ref: React.RefObject<HTMLElement | null>,\r\n isActive: boolean,\r\n) => {\r\n useEffect(() => {\r\n if (!isActive || !ref.current) return;\r\n\r\n const focusableElements = ref.current.querySelectorAll(\r\n 'button, [href], input, select, textarea, [tabindex]:not([tabindex=\"-1\"])',\r\n );\r\n const firstFocusableElement = focusableElements[0] as HTMLElement;\r\n const lastFocusableElement = focusableElements[\r\n focusableElements.length - 1\r\n ] as HTMLElement;\r\n\r\n const handleKeyDown = (e: KeyboardEvent) => {\r\n if (e.key !== \"Tab\") return;\r\n\r\n if (e.shiftKey) {\r\n if (document.activeElement === firstFocusableElement) {\r\n lastFocusableElement.focus();\r\n e.preventDefault();\r\n }\r\n } else {\r\n if (document.activeElement === lastFocusableElement) {\r\n firstFocusableElement.focus();\r\n e.preventDefault();\r\n }\r\n }\r\n };\r\n\r\n const previousActiveElement = document.activeElement as HTMLElement;\r\n\r\n firstFocusableElement.focus();\r\n\r\n document.addEventListener(\"keydown\", handleKeyDown);\r\n\r\n return () => {\r\n document.removeEventListener(\"keydown\", handleKeyDown);\r\n\r\n if (isActive) {\r\n previousActiveElement?.focus();\r\n }\r\n };\r\n }, [isActive, ref]);\r\n};\r\n"],"names":["useFocusTrap","ref","isActive","useEffect","focusableElements","firstFocusableElement","lastFocusableElement","handleKeyDown","previousActiveElement"],"mappings":";AAEa,MAAAA,IAAe,CAC1BC,GACAC,MACG;AACH,EAAAC,EAAU,MAAM;AACd,QAAI,CAACD,KAAY,CAACD,EAAI,QAAS;AAEzB,UAAAG,IAAoBH,EAAI,QAAQ;AAAA,MACpC;AAAA,IACF,GACMI,IAAwBD,EAAkB,CAAC,GAC3CE,IAAuBF,EAC3BA,EAAkB,SAAS,CAC7B,GAEMG,IAAgB,CAAC,MAAqB;AACtC,MAAA,EAAE,QAAQ,UAEV,EAAE,WACA,SAAS,kBAAkBF,MAC7BC,EAAqB,MAAM,GAC3B,EAAE,eAAe,KAGf,SAAS,kBAAkBA,MAC7BD,EAAsB,MAAM,GAC5B,EAAE,eAAe;AAAA,IAGvB,GAEMG,IAAwB,SAAS;AAEvC,WAAAH,EAAsB,MAAM,GAEnB,SAAA,iBAAiB,WAAWE,CAAa,GAE3C,MAAM;AACF,eAAA,oBAAoB,WAAWA,CAAa,GAEjDL,MACFM,KAAA,QAAAA,EAAuB;AAAA,IAE3B;AAAA,EAAA,GACC,CAACN,GAAUD,CAAG,CAAC;AACpB;"}
|
package/dist/index.es271.js
CHANGED
@@ -1,36 +1,10 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
"a",
|
7
|
-
"button",
|
8
|
-
"div",
|
9
|
-
"form",
|
10
|
-
"h2",
|
11
|
-
"h3",
|
12
|
-
"img",
|
13
|
-
"input",
|
14
|
-
"label",
|
15
|
-
"li",
|
16
|
-
"nav",
|
17
|
-
"ol",
|
18
|
-
"p",
|
19
|
-
"span",
|
20
|
-
"svg",
|
21
|
-
"ul"
|
22
|
-
], v = c.reduce((r, i) => {
|
23
|
-
const t = n.forwardRef((o, e) => {
|
24
|
-
const { asChild: s, ...m } = o, a = s ? f : i;
|
25
|
-
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ u.jsx(a, { ...m, ref: e });
|
26
|
-
});
|
27
|
-
return t.displayName = `Primitive.${i}`, { ...r, [i]: t };
|
28
|
-
}, {});
|
29
|
-
function h(r, i) {
|
30
|
-
r && p.flushSync(() => r.dispatchEvent(i));
|
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
|
+
};
|
31
6
|
}
|
32
7
|
export {
|
33
|
-
|
34
|
-
h as dispatchDiscreteCustomEvent
|
8
|
+
h as composeEventHandlers
|
35
9
|
};
|
36
10
|
//# sourceMappingURL=index.es271.js.map
|
package/dist/index.es271.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es271.js","sources":["../node_modules/@radix-ui/
|
1
|
+
{"version":3,"file":"index.es271.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]}
|