@anoki/fse-ui 1.0.714 → 1.0.716
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.cjs120.js +1 -1
- package/dist/index.cjs120.js.map +1 -1
- package/dist/index.cjs244.js +1 -1
- package/dist/index.cjs255.js +1 -1
- package/dist/index.cjs265.js +1 -1
- package/dist/index.cjs271.js +1 -1
- package/dist/index.cjs278.js +1 -1
- package/dist/index.cjs279.js +1 -1
- package/dist/index.cjs283.js +1 -1
- package/dist/index.cjs288.js +1 -1
- package/dist/index.cjs290.js +1 -1
- package/dist/index.cjs298.js +1 -1
- package/dist/index.cjs337.js +1 -1
- package/dist/index.cjs350.js +1 -1
- package/dist/index.cjs364.js +1 -1
- package/dist/index.cjs365.js +1 -1
- package/dist/index.cjs366.js +1 -1
- package/dist/index.cjs378.js +1 -1
- package/dist/index.cjs379.js +1 -1
- package/dist/index.cjs386.js +1 -1
- package/dist/index.cjs386.js.map +1 -1
- package/dist/index.cjs387.js +1 -1
- package/dist/index.cjs387.js.map +1 -1
- package/dist/index.cjs388.js +1 -1
- package/dist/index.cjs388.js.map +1 -1
- package/dist/index.cjs389.js +1 -1
- package/dist/index.cjs389.js.map +1 -1
- package/dist/index.cjs390.js +1 -1
- package/dist/index.cjs390.js.map +1 -1
- package/dist/index.cjs391.js +1 -1
- package/dist/index.cjs391.js.map +1 -1
- package/dist/index.cjs392.js +2 -0
- package/dist/index.cjs392.js.map +1 -0
- package/dist/index.cjs398.js +1 -1
- package/dist/index.cjs399.js +1 -1
- package/dist/index.cjs399.js.map +1 -1
- package/dist/index.cjs401.js +1 -1
- package/dist/index.cjs401.js.map +1 -1
- package/dist/index.cjs405.js +2 -0
- package/dist/index.cjs405.js.map +1 -0
- 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.cjs407.js.map +1 -1
- package/dist/index.cjs408.js +1 -1
- package/dist/index.cjs408.js.map +1 -1
- package/dist/index.cjs409.js +1 -1
- package/dist/index.cjs409.js.map +1 -1
- package/dist/index.cjs410.js +1 -1
- package/dist/index.cjs410.js.map +1 -1
- package/dist/index.cjs411.js +1 -1
- package/dist/index.cjs411.js.map +1 -1
- package/dist/index.cjs422.js +1 -1
- package/dist/index.cjs424.js +1 -1
- package/dist/index.cjs425.js +1 -1
- package/dist/index.cjs432.js +1 -1
- package/dist/index.cjs458.js +1 -1
- package/dist/index.cjs458.js.map +1 -1
- package/dist/index.cjs459.js +1 -1
- package/dist/index.cjs459.js.map +1 -1
- package/dist/index.cjs460.js +1 -1
- package/dist/index.cjs460.js.map +1 -1
- package/dist/index.cjs461.js +1 -1
- package/dist/index.cjs461.js.map +1 -1
- package/dist/index.cjs462.js +1 -1
- package/dist/index.cjs462.js.map +1 -1
- package/dist/index.cjs463.js +1 -1
- package/dist/index.cjs463.js.map +1 -1
- package/dist/index.cjs464.js +1 -1
- package/dist/index.cjs464.js.map +1 -1
- package/dist/index.cjs465.js +1 -1
- package/dist/index.cjs465.js.map +1 -1
- package/dist/index.cjs466.js +1 -1
- package/dist/index.cjs466.js.map +1 -1
- package/dist/index.cjs467.js +1 -1
- package/dist/index.cjs467.js.map +1 -1
- package/dist/index.cjs468.js +1 -1
- package/dist/index.cjs468.js.map +1 -1
- package/dist/index.cjs469.js +5 -1
- package/dist/index.cjs469.js.map +1 -1
- package/dist/index.cjs470.js +1 -1
- package/dist/index.cjs470.js.map +1 -1
- package/dist/index.cjs471.js +1 -1
- package/dist/index.cjs471.js.map +1 -1
- package/dist/index.cjs472.js +1 -1
- package/dist/index.cjs472.js.map +1 -1
- package/dist/index.cjs473.js +1 -5
- package/dist/index.cjs473.js.map +1 -1
- package/dist/index.cjs474.js +1 -1
- package/dist/index.cjs474.js.map +1 -1
- package/dist/index.cjs475.js +1 -1
- package/dist/index.cjs475.js.map +1 -1
- package/dist/index.cjs476.js +1 -1
- package/dist/index.cjs476.js.map +1 -1
- package/dist/index.cjs477.js +1 -1
- package/dist/index.cjs477.js.map +1 -1
- package/dist/index.cjs478.js +1 -1
- package/dist/index.cjs478.js.map +1 -1
- package/dist/index.cjs479.js +1 -1
- package/dist/index.cjs479.js.map +1 -1
- package/dist/index.cjs480.js +1 -1
- package/dist/index.cjs480.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.es120.js +18 -17
- package/dist/index.es120.js.map +1 -1
- package/dist/index.es244.js +7 -7
- package/dist/index.es255.js +5 -5
- package/dist/index.es265.js +1 -1
- package/dist/index.es271.js +13 -13
- package/dist/index.es278.js +1 -1
- package/dist/index.es279.js +1 -1
- package/dist/index.es283.js +1 -1
- package/dist/index.es288.js +1 -1
- package/dist/index.es290.js +1 -1
- package/dist/index.es298.js +5 -5
- package/dist/index.es337.js +4 -4
- package/dist/index.es350.js +8 -8
- package/dist/index.es364.js +3 -3
- package/dist/index.es365.js +2 -2
- package/dist/index.es366.js +3 -3
- package/dist/index.es378.js +1 -1
- package/dist/index.es379.js +1 -1
- package/dist/index.es386.js +5 -25
- package/dist/index.es386.js.map +1 -1
- package/dist/index.es387.js +23 -64
- package/dist/index.es387.js.map +1 -1
- package/dist/index.es388.js +64 -48
- package/dist/index.es388.js.map +1 -1
- package/dist/index.es389.js +51 -33
- package/dist/index.es389.js.map +1 -1
- package/dist/index.es390.js +32 -620
- package/dist/index.es390.js.map +1 -1
- package/dist/index.es391.js +621 -10
- package/dist/index.es391.js.map +1 -1
- package/dist/index.es392.js +14 -0
- package/dist/index.es392.js.map +1 -0
- package/dist/index.es398.js +1 -1
- package/dist/index.es399.js +15 -2
- package/dist/index.es399.js.map +1 -1
- package/dist/index.es400.js +2 -2
- package/dist/index.es401.js +2 -15
- package/dist/index.es401.js.map +1 -1
- package/dist/index.es405.js +128 -0
- package/dist/index.es405.js.map +1 -0
- package/dist/index.es406.js +138 -0
- package/dist/index.es406.js.map +1 -0
- package/dist/index.es407.js +13 -124
- package/dist/index.es407.js.map +1 -1
- package/dist/index.es408.js +14 -134
- package/dist/index.es408.js.map +1 -1
- package/dist/index.es409.js +7 -12
- package/dist/index.es409.js.map +1 -1
- package/dist/index.es410.js +50 -15
- package/dist/index.es410.js.map +1 -1
- package/dist/index.es411.js +54 -9
- package/dist/index.es411.js.map +1 -1
- package/dist/index.es422.js +3 -3
- package/dist/index.es424.js +3 -3
- package/dist/index.es425.js +6 -6
- package/dist/index.es432.js +1 -1
- package/dist/index.es458.js +5 -2032
- package/dist/index.es458.js.map +1 -1
- package/dist/index.es459.js +4 -60
- package/dist/index.es459.js.map +1 -1
- package/dist/index.es460.js +4 -188
- package/dist/index.es460.js.map +1 -1
- package/dist/index.es461.js +10 -5
- package/dist/index.es461.js.map +1 -1
- package/dist/index.es462.js +56 -4
- package/dist/index.es462.js.map +1 -1
- package/dist/index.es463.js +7 -4
- package/dist/index.es463.js.map +1 -1
- package/dist/index.es464.js +5 -9
- package/dist/index.es464.js.map +1 -1
- package/dist/index.es465.js +524 -47
- package/dist/index.es465.js.map +1 -1
- package/dist/index.es466.js +2031 -7
- package/dist/index.es466.js.map +1 -1
- package/dist/index.es467.js +59 -5
- package/dist/index.es467.js.map +1 -1
- package/dist/index.es468.js +180 -524
- package/dist/index.es468.js.map +1 -1
- package/dist/index.es469.js +39 -9
- package/dist/index.es469.js.map +1 -1
- package/dist/index.es470.js +2 -178
- package/dist/index.es470.js.map +1 -1
- package/dist/index.es471.js +2 -4
- package/dist/index.es471.js.map +1 -1
- package/dist/index.es472.js +2 -133
- package/dist/index.es472.js.map +1 -1
- package/dist/index.es473.js +3 -40
- package/dist/index.es473.js.map +1 -1
- package/dist/index.es474.js +2 -2
- package/dist/index.es474.js.map +1 -1
- package/dist/index.es475.js +4 -2
- package/dist/index.es475.js.map +1 -1
- package/dist/index.es476.js +5 -2
- package/dist/index.es476.js.map +1 -1
- package/dist/index.es477.js +10 -3
- package/dist/index.es477.js.map +1 -1
- package/dist/index.es478.js +178 -2
- package/dist/index.es478.js.map +1 -1
- package/dist/index.es479.js +3 -3
- package/dist/index.es479.js.map +1 -1
- package/dist/index.es480.js +132 -4
- package/dist/index.es480.js.map +1 -1
- package/dist/sections/HomeServices/HomeServices.css +1 -1
- package/dist/sections/WhatDoYouNeed/WhatDoYouNeed.css +1 -1
- package/package.json +1 -1
- package/dist/index.cjs385.js +0 -2
- package/dist/index.cjs385.js.map +0 -1
- package/dist/index.cjs412.js +0 -2
- package/dist/index.cjs412.js.map +0 -1
- package/dist/index.cjs413.js +0 -2
- package/dist/index.cjs413.js.map +0 -1
- package/dist/index.es385.js +0 -10
- package/dist/index.es385.js.map +0 -1
- package/dist/index.es412.js +0 -53
- package/dist/index.es412.js.map +0 -1
- package/dist/index.es413.js +0 -57
- package/dist/index.es413.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.cjs480.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.cjs480.js","sources":["../node_modules
|
1
|
+
{"version":3,"file":"index.cjs480.js","sources":["../node_modules/swiper/shared/ssr-window.esm.mjs"],"sourcesContent":["/**\n * SSR Window 5.0.0\n * Better handling for window object in SSR environment\n * https://github.com/nolimits4web/ssr-window\n *\n * Copyright 2025, Vladimir Kharlampidi\n *\n * Licensed under MIT\n *\n * Released on: February 12, 2025\n */\n/* eslint-disable no-param-reassign */\nfunction isObject(obj) {\n return obj !== null && typeof obj === 'object' && 'constructor' in obj && obj.constructor === Object;\n}\nfunction extend(target, src) {\n if (target === void 0) {\n target = {};\n }\n if (src === void 0) {\n src = {};\n }\n const noExtend = ['__proto__', 'constructor', 'prototype'];\n Object.keys(src).filter(key => noExtend.indexOf(key) < 0).forEach(key => {\n if (typeof target[key] === 'undefined') target[key] = src[key];else if (isObject(src[key]) && isObject(target[key]) && Object.keys(src[key]).length > 0) {\n extend(target[key], src[key]);\n }\n });\n}\nconst ssrDocument = {\n body: {},\n addEventListener() {},\n removeEventListener() {},\n activeElement: {\n blur() {},\n nodeName: ''\n },\n querySelector() {\n return null;\n },\n querySelectorAll() {\n return [];\n },\n getElementById() {\n return null;\n },\n createEvent() {\n return {\n initEvent() {}\n };\n },\n createElement() {\n return {\n children: [],\n childNodes: [],\n style: {},\n setAttribute() {},\n getElementsByTagName() {\n return [];\n }\n };\n },\n createElementNS() {\n return {};\n },\n importNode() {\n return null;\n },\n location: {\n hash: '',\n host: '',\n hostname: '',\n href: '',\n origin: '',\n pathname: '',\n protocol: '',\n search: ''\n }\n};\nfunction getDocument() {\n const doc = typeof document !== 'undefined' ? document : {};\n extend(doc, ssrDocument);\n return doc;\n}\nconst ssrWindow = {\n document: ssrDocument,\n navigator: {\n userAgent: ''\n },\n location: {\n hash: '',\n host: '',\n hostname: '',\n href: '',\n origin: '',\n pathname: '',\n protocol: '',\n search: ''\n },\n history: {\n replaceState() {},\n pushState() {},\n go() {},\n back() {}\n },\n CustomEvent: function CustomEvent() {\n return this;\n },\n addEventListener() {},\n removeEventListener() {},\n getComputedStyle() {\n return {\n getPropertyValue() {\n return '';\n }\n };\n },\n Image() {},\n Date() {},\n screen: {},\n setTimeout() {},\n clearTimeout() {},\n matchMedia() {\n return {};\n },\n requestAnimationFrame(callback) {\n if (typeof setTimeout === 'undefined') {\n callback();\n return null;\n }\n return setTimeout(callback, 0);\n },\n cancelAnimationFrame(id) {\n if (typeof setTimeout === 'undefined') {\n return;\n }\n clearTimeout(id);\n }\n};\nfunction getWindow() {\n const win = typeof window !== 'undefined' ? window : {};\n extend(win, ssrWindow);\n return win;\n}\n\nexport { getWindow as a, getDocument as g };\n"],"names":["isObject","obj","extend","target","src","noExtend","key","ssrDocument","getDocument","doc","ssrWindow","callback","id","getWindow","win"],"mappings":"gFAYA,SAASA,EAASC,EAAK,CACrB,OAAOA,IAAQ,MAAQ,OAAOA,GAAQ,UAAY,gBAAiBA,GAAOA,EAAI,cAAgB,MAChG,CACA,SAASC,EAAOC,EAAQC,EAAK,CACvBD,IAAW,SACbA,EAAS,CAAE,GAETC,IAAQ,SACVA,EAAM,CAAE,GAEV,MAAMC,EAAW,CAAC,YAAa,cAAe,WAAW,EACzD,OAAO,KAAKD,CAAG,EAAE,OAAOE,GAAOD,EAAS,QAAQC,CAAG,EAAI,CAAC,EAAE,QAAQA,GAAO,CACnE,OAAOH,EAAOG,CAAG,EAAM,IAAaH,EAAOG,CAAG,EAAIF,EAAIE,CAAG,EAAWN,EAASI,EAAIE,CAAG,CAAC,GAAKN,EAASG,EAAOG,CAAG,CAAC,GAAK,OAAO,KAAKF,EAAIE,CAAG,CAAC,EAAE,OAAS,GACpJJ,EAAOC,EAAOG,CAAG,EAAGF,EAAIE,CAAG,CAAC,CAElC,CAAG,CACH,CACA,MAAMC,EAAc,CAClB,KAAM,CAAE,EACR,kBAAmB,CAAE,EACrB,qBAAsB,CAAE,EACxB,cAAe,CACb,MAAO,CAAE,EACT,SAAU,EACX,EACD,eAAgB,CACd,OAAO,IACR,EACD,kBAAmB,CACjB,MAAO,CAAE,CACV,EACD,gBAAiB,CACf,OAAO,IACR,EACD,aAAc,CACZ,MAAO,CACL,WAAY,CAAA,CACb,CACF,EACD,eAAgB,CACd,MAAO,CACL,SAAU,CAAE,EACZ,WAAY,CAAE,EACd,MAAO,CAAE,EACT,cAAe,CAAE,EACjB,sBAAuB,CACrB,MAAO,CAAE,CACjB,CACK,CACF,EACD,iBAAkB,CAChB,MAAO,CAAE,CACV,EACD,YAAa,CACX,OAAO,IACR,EACD,SAAU,CACR,KAAM,GACN,KAAM,GACN,SAAU,GACV,KAAM,GACN,OAAQ,GACR,SAAU,GACV,SAAU,GACV,OAAQ,EACZ,CACA,EACA,SAASC,GAAc,CACrB,MAAMC,EAAM,OAAO,SAAa,IAAc,SAAW,CAAE,EAC3D,OAAAP,EAAOO,EAAKF,CAAW,EAChBE,CACT,CACA,MAAMC,EAAY,CAChB,SAAUH,EACV,UAAW,CACT,UAAW,EACZ,EACD,SAAU,CACR,KAAM,GACN,KAAM,GACN,SAAU,GACV,KAAM,GACN,OAAQ,GACR,SAAU,GACV,SAAU,GACV,OAAQ,EACT,EACD,QAAS,CACP,cAAe,CAAE,EACjB,WAAY,CAAE,EACd,IAAK,CAAE,EACP,MAAO,CAAA,CACR,EACD,YAAa,UAAuB,CAClC,OAAO,IACR,EACD,kBAAmB,CAAE,EACrB,qBAAsB,CAAE,EACxB,kBAAmB,CACjB,MAAO,CACL,kBAAmB,CACjB,MAAO,EACf,CACK,CACF,EACD,OAAQ,CAAE,EACV,MAAO,CAAE,EACT,OAAQ,CAAE,EACV,YAAa,CAAE,EACf,cAAe,CAAE,EACjB,YAAa,CACX,MAAO,CAAE,CACV,EACD,sBAAsBI,EAAU,CAC9B,OAAI,OAAO,WAAe,KACxBA,EAAU,EACH,MAEF,WAAWA,EAAU,CAAC,CAC9B,EACD,qBAAqBC,EAAI,CACnB,OAAO,WAAe,KAG1B,aAAaA,CAAE,CACnB,CACA,EACA,SAASC,GAAY,CACnB,MAAMC,EAAM,OAAO,OAAW,IAAc,OAAS,CAAE,EACvD,OAAAZ,EAAOY,EAAKJ,CAAS,EACdI,CACT","x_google_ignoreList":[0]}
|
package/dist/index.d.ts
CHANGED
@@ -2148,13 +2148,14 @@ export declare const Visible: ({ width, height, className, color, }: IconProps)
|
|
2148
2148
|
|
2149
2149
|
declare type WeekDaysMap = Record<keyof OpeningHours, string>;
|
2150
2150
|
|
2151
|
-
export declare const WhatDoYouNeed: ({ title, description, links, asLink, }: WhatDoYouNeedProps) => JSX.Element;
|
2151
|
+
export declare const WhatDoYouNeed: ({ title, description, links, asLink, showBlueBackground, }: WhatDoYouNeedProps) => JSX.Element;
|
2152
2152
|
|
2153
2153
|
declare type WhatDoYouNeedProps = PropsWithChildren<{
|
2154
2154
|
title: ReactNode;
|
2155
2155
|
description?: ReactNode;
|
2156
2156
|
links: EnhancedSectionLink[];
|
2157
2157
|
asLink?: "a" | ComponentType<any>;
|
2158
|
+
showBlueBackground?: boolean;
|
2158
2159
|
}>;
|
2159
2160
|
|
2160
2161
|
export declare const Whatsapp: ({ className, height, width }: IconProps) => JSX.Element;
|
package/dist/index.es120.js
CHANGED
@@ -1,17 +1,18 @@
|
|
1
1
|
import { j as e } from "./index.es212.js";
|
2
2
|
import './sections/WhatDoYouNeed/WhatDoYouNeed.css';/* empty css */
|
3
3
|
import { Section as r } from "./index.es47.js";
|
4
|
-
import { Col as
|
5
|
-
import { Button as
|
6
|
-
const
|
4
|
+
import { Col as m } from "./index.es10.js";
|
5
|
+
import { Button as u } from "./index.es25.js";
|
6
|
+
const y = ({
|
7
7
|
title: t,
|
8
|
-
description:
|
8
|
+
description: a,
|
9
9
|
links: o,
|
10
|
-
asLink: n = "a"
|
11
|
-
|
12
|
-
|
10
|
+
asLink: n = "a",
|
11
|
+
showBlueBackground: l = !1
|
12
|
+
}) => /* @__PURE__ */ e.jsxs(r, { className: `base-col ui-what-do-you-need-section ${l ? "blue-background" : ""}`, children: [
|
13
|
+
/* @__PURE__ */ e.jsxs(m, { className: "ui-what-do-you-need-content", children: [
|
13
14
|
/* @__PURE__ */ e.jsx(r.Title, { fs: "2", children: t }),
|
14
|
-
|
15
|
+
a && /* @__PURE__ */ e.jsx(r.Description, { children: a })
|
15
16
|
] }),
|
16
17
|
/* @__PURE__ */ e.jsx(
|
17
18
|
"ul",
|
@@ -19,22 +20,22 @@ const f = ({
|
|
19
20
|
role: "list",
|
20
21
|
"aria-label": `Lista di ${t}`,
|
21
22
|
className: "list-style-none ui-what-do-you-need-links",
|
22
|
-
children: o == null ? void 0 : o.map(({ link:
|
23
|
-
|
23
|
+
children: o == null ? void 0 : o.map(({ link: i, title: d, isNewTab: s }, c) => /* @__PURE__ */ e.jsx("li", { children: /* @__PURE__ */ e.jsx(
|
24
|
+
u,
|
24
25
|
{
|
25
26
|
asLink: n,
|
26
|
-
href:
|
27
|
+
href: i,
|
27
28
|
size: "2",
|
28
|
-
variant:
|
29
|
-
target:
|
30
|
-
rel:
|
31
|
-
children:
|
29
|
+
variant: c > 0 ? "secondary" : "primary",
|
30
|
+
target: s ? "_blank" : void 0,
|
31
|
+
rel: s ? "noopener noreferrer" : void 0,
|
32
|
+
children: d
|
32
33
|
}
|
33
|
-
) },
|
34
|
+
) }, i))
|
34
35
|
}
|
35
36
|
)
|
36
37
|
] });
|
37
38
|
export {
|
38
|
-
|
39
|
+
y as WhatDoYouNeed
|
39
40
|
};
|
40
41
|
//# sourceMappingURL=index.es120.js.map
|
package/dist/index.es120.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es120.js","sources":["../src/sections/WhatDoYouNeed/index.tsx"],"sourcesContent":["import { Button, Col, Section } from \"@/components\";\nimport { SectionLink } from \"@anoki/fse-common\";\nimport \"./WhatDoYouNeed.scss\";\nimport { ComponentType, PropsWithChildren, ReactNode } from \"react\";\n\ntype WhatDoYouNeedProps = PropsWithChildren<{\n title: ReactNode;\n description?: ReactNode;\n links: EnhancedSectionLink[];\n asLink?: \"a\" | ComponentType<any>;\n}>;\n\ntype EnhancedSectionLink = SectionLink & {\n isNewTab?: boolean;\n};\n\nexport const WhatDoYouNeed = ({\n title,\n description,\n links,\n asLink = \"a\",\n}: WhatDoYouNeedProps) => {\n return (\n <Section className
|
1
|
+
{"version":3,"file":"index.es120.js","sources":["../src/sections/WhatDoYouNeed/index.tsx"],"sourcesContent":["import { Button, Col, Section } from \"@/components\";\nimport { SectionLink } from \"@anoki/fse-common\";\nimport \"./WhatDoYouNeed.scss\";\nimport { ComponentType, PropsWithChildren, ReactNode } from \"react\";\n\ntype WhatDoYouNeedProps = PropsWithChildren<{\n title: ReactNode;\n description?: ReactNode;\n links: EnhancedSectionLink[];\n asLink?: \"a\" | ComponentType<any>;\n showBlueBackground?: boolean;\n}>;\n\ntype EnhancedSectionLink = SectionLink & {\n isNewTab?: boolean;\n};\n\nexport const WhatDoYouNeed = ({\n title,\n description,\n links,\n asLink = \"a\",\n showBlueBackground = false,\n}: WhatDoYouNeedProps) => {\n return (\n <Section className={`base-col ui-what-do-you-need-section ${showBlueBackground ? \"blue-background\" : \"\"}`}>\n <Col className=\"ui-what-do-you-need-content\">\n <Section.Title fs=\"2\">{title}</Section.Title>\n {description && (\n <Section.Description>{description}</Section.Description>\n )}\n </Col>\n <ul\n role=\"list\"\n aria-label={`Lista di ${title}`}\n className=\"list-style-none ui-what-do-you-need-links\"\n >\n {links?.map(({ link, title, isNewTab }, index) => (\n <li key={link}>\n <Button\n asLink={asLink}\n href={link}\n size=\"2\"\n variant={index > 0 ? \"secondary\" : \"primary\"}\n // textColor={index > 0 ? \"primary\" : undefined}\n // bg={index > 0 ? \"white\" : undefined}\n // className={index > 0 ? \"br-color-primary\" : undefined}\n target={isNewTab ? \"_blank\" : undefined}\n rel={isNewTab ? \"noopener noreferrer\" : undefined}\n >\n {title}\n </Button>\n </li>\n ))}\n </ul>\n </Section>\n );\n};\n"],"names":["WhatDoYouNeed","title","description","links","asLink","showBlueBackground","Section","jsxs","Col","jsx","link","isNewTab","index","Button"],"mappings":";;;;;AAiBO,MAAMA,IAAgB,CAAC;AAAA,EAC5B,OAAAC;AAAA,EACA,aAAAC;AAAA,EACA,OAAAC;AAAA,EACA,QAAAC,IAAS;AAAA,EACT,oBAAAC,IAAqB;AACvB,6BAEKC,GAAQ,EAAA,WAAW,wCAAwCD,IAAqB,oBAAoB,EAAE,IACrG,UAAA;AAAA,EAACE,gBAAAA,EAAAA,KAAAC,GAAA,EAAI,WAAU,+BACb,UAAA;AAAA,IAAAC,gBAAAA,EAAA,IAACH,EAAQ,OAAR,EAAc,IAAG,KAAK,UAAML,GAAA;AAAA,IAC5BC,KACCO,gBAAAA,EAAA,IAACH,EAAQ,aAAR,EAAqB,UAAYJ,EAAA,CAAA;AAAA,EAAA,GAEtC;AAAA,EACAO,gBAAAA,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,MAAK;AAAA,MACL,cAAY,YAAYR,CAAK;AAAA,MAC7B,WAAU;AAAA,MAET,UAAAE,KAAA,gBAAAA,EAAO,IAAI,CAAC,EAAE,MAAAO,GAAM,OAAAT,GAAO,UAAAU,EAAS,GAAGC,MACtCH,gBAAAA,EAAAA,IAAC,MACC,EAAA,UAAAA,gBAAAA,EAAA;AAAA,QAACI;AAAA,QAAA;AAAA,UACC,QAAAT;AAAA,UACA,MAAMM;AAAA,UACN,MAAK;AAAA,UACL,SAASE,IAAQ,IAAI,cAAc;AAAA,UAInC,QAAQD,IAAW,WAAW;AAAA,UAC9B,KAAKA,IAAW,wBAAwB;AAAA,UAEvC,UAAAV;AAAAA,QAAA;AAAA,MACH,EAAA,GAbOS,CAcT;AAAA,IACD;AAAA,EAAA;AACH,GACF;"}
|
package/dist/index.es244.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.es386.js";
|
3
|
+
import { composeRefs as E } from "./index.es387.js";
|
4
|
+
import { createContextScope as S } from "./index.es388.js";
|
5
|
+
import { useControllableState as P } from "./index.es389.js";
|
6
|
+
import { Primitive as y } from "./index.es390.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.es391.js";
|
8
|
+
import { useId as g } from "./index.es392.js";
|
9
9
|
import { j as a } from "./index.es212.js";
|
10
10
|
var f = "DropdownMenu", [z, bo] = S(
|
11
11
|
f,
|
package/dist/index.es255.js
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
import * as c from "react";
|
2
|
-
import { useComposedRefs as j } from "./index.
|
3
|
-
import { createContextScope as F } from "./index.
|
4
|
-
import { composeEventHandlers as S } from "./index.
|
5
|
-
import { useControllableState as L } from "./index.
|
2
|
+
import { useComposedRefs as j } from "./index.es387.js";
|
3
|
+
import { createContextScope as F } from "./index.es388.js";
|
4
|
+
import { composeEventHandlers as S } from "./index.es386.js";
|
5
|
+
import { useControllableState as L } from "./index.es389.js";
|
6
6
|
import { usePrevious as O } from "./index.es396.js";
|
7
7
|
import { useSize as H } from "./index.es397.js";
|
8
8
|
import { Presence as z } from "./index.es398.js";
|
9
|
-
import { Primitive as E } from "./index.
|
9
|
+
import { Primitive as E } from "./index.es390.js";
|
10
10
|
import { j as u } from "./index.es212.js";
|
11
11
|
var R = "Checkbox", [G, ne] = F(R), [K, P] = G(R);
|
12
12
|
function U(t) {
|
package/dist/index.es265.js
CHANGED
package/dist/index.es271.js
CHANGED
@@ -1,18 +1,18 @@
|
|
1
1
|
import * as s from "react";
|
2
|
-
import { composeEventHandlers as p } from "./index.
|
3
|
-
import { useComposedRefs as R } from "./index.
|
4
|
-
import { createContextScope as B, createContext as H } from "./index.
|
5
|
-
import { useId as C } 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.es386.js";
|
3
|
+
import { useComposedRefs as R } from "./index.es387.js";
|
4
|
+
import { createContextScope as B, createContext as H } from "./index.es388.js";
|
5
|
+
import { useId as C } from "./index.es392.js";
|
6
|
+
import { useControllableState as V } from "./index.es389.js";
|
7
|
+
import { DismissableLayer as q } from "./index.es405.js";
|
8
|
+
import { FocusScope as K } from "./index.es406.js";
|
9
|
+
import { Portal as U } from "./index.es407.js";
|
10
10
|
import { Presence as _ } from "./index.es398.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.es390.js";
|
12
|
+
import { useFocusGuards as Y } from "./index.es408.js";
|
13
|
+
import Z from "./index.es409.js";
|
14
|
+
import { hideOthers as z } from "./index.es410.js";
|
15
|
+
import { createSlot as J } from "./index.es411.js";
|
16
16
|
import { j as i } from "./index.es212.js";
|
17
17
|
var v = "Dialog", [N, he] = B(v), [Q, u] = N(v), P = (e) => {
|
18
18
|
const {
|
package/dist/index.es278.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { j as t } from "./index.es212.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.es279.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { j as n } from "./index.es212.js";
|
2
2
|
import { clsx as r } from "./index.es214.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.es283.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { j as t } from "./index.es212.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.es288.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { j as r } from "./index.es212.js";
|
2
2
|
import { clsx as m } from "./index.es214.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.es290.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { j as t } from "./index.es212.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.es298.js
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
import * as r from "react";
|
2
|
-
import { composeEventHandlers as N } from "./index.
|
3
|
-
import { useComposedRefs as x } from "./index.
|
4
|
-
import { createContextScope as T } from "./index.
|
5
|
-
import { useControllableState as I } from "./index.
|
2
|
+
import { composeEventHandlers as N } from "./index.es386.js";
|
3
|
+
import { useComposedRefs as x } from "./index.es387.js";
|
4
|
+
import { createContextScope as T } from "./index.es388.js";
|
5
|
+
import { useControllableState as I } from "./index.es389.js";
|
6
6
|
import { usePrevious as M } from "./index.es396.js";
|
7
7
|
import { useSize as H } from "./index.es397.js";
|
8
|
-
import { Primitive as P } from "./index.
|
8
|
+
import { Primitive as P } from "./index.es390.js";
|
9
9
|
import { j as u } from "./index.es212.js";
|
10
10
|
var h = "Switch", [A, K] = T(h), [U, q] = A(h), R = r.forwardRef(
|
11
11
|
(t, a) => {
|
package/dist/index.es337.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.es388.js";
|
3
|
+
import { useComposedRefs as A } from "./index.es387.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.es271.js";
|
5
|
-
import { composeEventHandlers as F } from "./index.
|
6
|
-
import { createSlottable as G } from "./index.
|
5
|
+
import { composeEventHandlers as F } from "./index.es386.js";
|
6
|
+
import { createSlottable as G } from "./index.es411.js";
|
7
7
|
import { j as i } from "./index.es212.js";
|
8
8
|
var D = "AlertDialog", [W, te] = T(D, [
|
9
9
|
v
|
package/dist/index.es350.js
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
import * as e from "react";
|
2
|
-
import l from "./index.
|
3
|
-
import { scrollAreaPropDefs as r } from "./index.
|
4
|
-
import { extractMarginProps as E } from "./index.
|
5
|
-
import { getMarginStyles as z } from "./index.
|
6
|
-
import { getResponsiveClassNames as i } from "./index.
|
7
|
-
import { getSubtree as C } from "./index.
|
8
|
-
import { mergeStyles as R } from "./index.
|
9
|
-
import { Root as V, Viewport as $, Scrollbar as m, Thumb as n, Corner as w } from "./index.
|
2
|
+
import l from "./index.es458.js";
|
3
|
+
import { scrollAreaPropDefs as r } from "./index.es459.js";
|
4
|
+
import { extractMarginProps as E } from "./index.es460.js";
|
5
|
+
import { getMarginStyles as z } from "./index.es461.js";
|
6
|
+
import { getResponsiveClassNames as i } from "./index.es462.js";
|
7
|
+
import { getSubtree as C } from "./index.es463.js";
|
8
|
+
import { mergeStyles as R } from "./index.es464.js";
|
9
|
+
import { Root as V, Viewport as $, Scrollbar as m, Thumb as n, Corner as w } from "./index.es465.js";
|
10
10
|
const D = e.forwardRef((p, u) => {
|
11
11
|
const { rest: d, ...f } = E(p), [S, N] = z(f), { asChild: t, children: A, className: b, style: h, type: s, scrollHideDelay: y = s !== "scroll" ? 0 : void 0, dir: P, size: o = r.size.default, radius: c = r.radius.default, scrollbars: a = r.scrollbars.default, ...v } = d;
|
12
12
|
return e.createElement(V, { type: s, scrollHideDelay: y, className: l("rt-ScrollAreaRoot", S, b), style: R(N, h), asChild: t }, C({ asChild: t, children: A }, (g) => e.createElement(e.Fragment, null, e.createElement($, { ...v, ref: u, className: "rt-ScrollAreaViewport" }, g), e.createElement("div", { className: "rt-ScrollAreaViewportFocusRing" }), a !== "vertical" ? e.createElement(m, { "data-radius": c, orientation: "horizontal", className: l("rt-ScrollAreaScrollbar", i({ className: "rt-r-size", value: o, propValues: r.size.values })) }, e.createElement(n, { className: "rt-ScrollAreaThumb" })) : null, a !== "horizontal" ? e.createElement(m, { "data-radius": c, orientation: "vertical", className: l("rt-ScrollAreaScrollbar", i({ className: "rt-r-size", value: o, propValues: r.size.values })) }, e.createElement(n, { className: "rt-ScrollAreaThumb" })) : null, a === "both" ? e.createElement(w, { className: "rt-ScrollAreaCorner" }) : null)));
|
package/dist/index.es364.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import a, { forwardRef as W, useState as P, useRef as u, useEffect as _, createContext as q, useLayoutEffect as Q } from "react";
|
2
|
-
import { S as X } from "./index.
|
3
|
-
import { g as Y, m as Z, a as ee, u as re } from "./index.
|
4
|
-
import { d as D, w as te, n as ne, b as se, a as ae, e as V, u as ie } from "./index.
|
2
|
+
import { S as X } from "./index.es466.js";
|
3
|
+
import { g as Y, m as Z, a as ee, u as re } from "./index.es467.js";
|
4
|
+
import { d as D, w as te, n as ne, b as se, a as ae, e as V, u as ie } from "./index.es468.js";
|
5
5
|
function k() {
|
6
6
|
return k = Object.assign ? Object.assign.bind() : function(n) {
|
7
7
|
for (var r = 1; r < arguments.length; r++) {
|
package/dist/index.es365.js
CHANGED
package/dist/index.es366.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
import { c as $ } from "./index.
|
2
|
-
import { c as F } from "./index.
|
3
|
-
import { m, a as E, f as T, h as S } from "./index.
|
1
|
+
import { c as $ } from "./index.es479.js";
|
2
|
+
import { c as F } from "./index.es477.js";
|
3
|
+
import { m, a as E, f as T, h as S } from "./index.es478.js";
|
4
4
|
function N(I) {
|
5
5
|
let {
|
6
6
|
swiper: e,
|
package/dist/index.es378.js
CHANGED
package/dist/index.es379.js
CHANGED
package/dist/index.es386.js
CHANGED
@@ -1,30 +1,10 @@
|
|
1
|
-
|
2
|
-
function
|
3
|
-
|
4
|
-
|
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
|
-
};
|
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);
|
21
5
|
};
|
22
6
|
}
|
23
|
-
function s(...n) {
|
24
|
-
return f.useCallback(i(...n), n);
|
25
|
-
}
|
26
7
|
export {
|
27
|
-
|
28
|
-
s as useComposedRefs
|
8
|
+
h as composeEventHandlers
|
29
9
|
};
|
30
10
|
//# sourceMappingURL=index.es386.js.map
|
package/dist/index.es386.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es386.js","sources":["../node_modules/@radix-ui/
|
1
|
+
{"version":3,"file":"index.es386.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]}
|
package/dist/index.es387.js
CHANGED
@@ -1,71 +1,30 @@
|
|
1
|
-
import * as
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
return /* @__PURE__ */ h.jsx(o.Provider, { value: s, children: t });
|
7
|
-
};
|
8
|
-
a.displayName = e + "Provider";
|
9
|
-
function i(r) {
|
10
|
-
const t = u.useContext(o);
|
11
|
-
if (t) return t;
|
12
|
-
if (c !== void 0) return c;
|
13
|
-
throw new Error(`\`${r}\` must be used within \`${e}\``);
|
14
|
-
}
|
15
|
-
return [a, i];
|
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);
|
16
6
|
}
|
17
|
-
function
|
18
|
-
|
19
|
-
|
20
|
-
const
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
return
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
if (p) return p;
|
32
|
-
if (t !== void 0) return t;
|
33
|
-
throw new Error(`\`${m}\` must be used within \`${r}\``);
|
34
|
-
}
|
35
|
-
return [d, f];
|
36
|
-
}
|
37
|
-
const i = () => {
|
38
|
-
const r = o.map((t) => u.createContext(t));
|
39
|
-
return function(n) {
|
40
|
-
const s = (n == null ? void 0 : n[e]) || r;
|
41
|
-
return u.useMemo(
|
42
|
-
() => ({ [`__scope${e}`]: { ...n, [e]: s } }),
|
43
|
-
[n, s]
|
44
|
-
);
|
45
|
-
};
|
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
|
+
};
|
46
21
|
};
|
47
|
-
return i.scopeName = e, [a, l(i, ...c)];
|
48
22
|
}
|
49
|
-
function
|
50
|
-
|
51
|
-
if (e.length === 1) return c;
|
52
|
-
const o = () => {
|
53
|
-
const a = e.map((i) => ({
|
54
|
-
useScope: i(),
|
55
|
-
scopeName: i.scopeName
|
56
|
-
}));
|
57
|
-
return function(r) {
|
58
|
-
const t = a.reduce((n, { useScope: s, scopeName: d }) => {
|
59
|
-
const m = s(r)[`__scope${d}`];
|
60
|
-
return { ...n, ...m };
|
61
|
-
}, {});
|
62
|
-
return u.useMemo(() => ({ [`__scope${c.scopeName}`]: t }), [t]);
|
63
|
-
};
|
64
|
-
};
|
65
|
-
return o.scopeName = c.scopeName, o;
|
23
|
+
function s(...n) {
|
24
|
+
return f.useCallback(i(...n), n);
|
66
25
|
}
|
67
26
|
export {
|
68
|
-
|
69
|
-
|
27
|
+
i as composeRefs,
|
28
|
+
s as useComposedRefs
|
70
29
|
};
|
71
30
|
//# sourceMappingURL=index.es387.js.map
|
package/dist/index.es387.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es387.js","sources":["../node_modules/@radix-ui/react-
|
1
|
+
{"version":3,"file":"index.es387.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]}
|