@anoki/fse-ui 1.0.658 → 1.0.660
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/Footer/Footer.css +1 -1
- package/dist/components/navigations/HeaderDesktop/HeaderDesktop.css +1 -1
- package/dist/components/navigations/HeaderMobile/HeaderMobile.css +1 -1
- package/dist/components/navigations/HeaderPostLogin/HeaderPostLogin.css +1 -1
- package/dist/components/navigations/TabBar/TabBar.css +1 -1
- package/dist/components/ui/Accordion/AccordionStepper/AccordionStepper.css +1 -1
- package/dist/components/ui/ActionBanner/ActionBanner.css +1 -1
- package/dist/components/ui/AuthorBlock/AuthorBlock.css +1 -1
- package/dist/components/ui/BaseModal/BaseModalBackHeader/BaseModalBackHeader.css +1 -1
- package/dist/components/ui/BaseModal/BaseModalContent/BaseModalContent.css +1 -1
- package/dist/components/ui/BaseModal/BaseModalHeader/BaseModalHeader.css +1 -1
- package/dist/components/ui/Button/Button.css +1 -1
- package/dist/components/ui/CardCategory/CardCategory.css +1 -1
- package/dist/components/ui/CardDoctor/CardDoctor.css +1 -1
- package/dist/components/ui/CardDoctorInfo/CardDoctorInfo.css +1 -1
- package/dist/components/ui/CardDocument/CardDocument.css +1 -1
- package/dist/components/ui/CardEventSlim/CardEvent.css +1 -1
- package/dist/components/ui/CardExemption/CardExemption.css +1 -1
- package/dist/components/ui/CardFile/CardFile.css +1 -1
- package/dist/components/ui/CardMapDoctor/CardMapDoctor.css +1 -1
- package/dist/components/ui/CardMapStructure/CardMap.css +1 -1
- package/dist/components/ui/CardNotification/CardNotification.css +1 -1
- package/dist/components/ui/CardOpeningHours/CardOpeningHours.css +1 -1
- package/dist/components/ui/CardPreview/CardPreview.css +1 -1
- package/dist/components/ui/CardReminder/CardReminder.css +1 -1
- package/dist/components/ui/CardSelectDoctor/CardSelectDoctor.css +1 -1
- package/dist/components/ui/CardService/CardService.css +1 -1
- package/dist/components/ui/CardUser/CardUser.css +1 -1
- package/dist/components/ui/Carousel/Carousel.css +1 -1
- package/dist/components/ui/ChangeRelatedCard/ChangeRelatedCard.css +1 -1
- package/dist/components/ui/Checkbox/Checkbox.css +1 -1
- package/dist/components/ui/ConsentModal/ConsentModalContent/ConsentModalContent.css +1 -0
- package/dist/components/ui/ConsentModal/ConsentModalHeader/ConsentModalHeader.css +1 -1
- package/dist/components/ui/Container/Container.css +1 -1
- package/dist/components/ui/DatePicker/DatePicker.css +1 -1
- package/dist/components/ui/DelegateCard/DelegateCard.css +1 -1
- package/dist/components/ui/DelegateFilterDropDown/DelegateFilterDropDown.css +1 -1
- package/dist/components/ui/DoctorConfirmModal/DoctorConfirmModalHeader/DoctorConfirmModalHeader.css +1 -1
- package/dist/components/ui/DoctorModal/DoctorModal.css +1 -1
- package/dist/components/ui/DoctorModal/DoctorModalContent/DoctorModalContent.css +1 -1
- package/dist/components/ui/DoctorModal/DoctorModalFooter/DoctorModalFooter.css +1 -0
- package/dist/components/ui/DoctorSkeleton/DoctorSkeleton.css +1 -1
- package/dist/components/ui/DocumentUploadComponent/DocumentUploadComponent.css +1 -1
- package/dist/components/ui/DocumentUploadModal/DocumentUploadModalContent/DocumentUploadModalContent.css +1 -1
- package/dist/components/ui/DocumentUploadModal/DocumentUploadModalFooter/DocumentUploadModalFooter.css +1 -1
- package/dist/components/ui/DocumentUploadModal/DocumentUploadModalHeader/DocumentUploadModalHeader.css +1 -1
- package/dist/components/ui/Dropdown/Dropdown.css +1 -1
- package/dist/components/ui/EditorialWidget/EditorialWidget.css +1 -1
- package/dist/components/ui/EntryButton/EntryButton.css +1 -1
- package/dist/components/ui/GroupCodeExemptionFilterDropDown/GroupCodeExemptionFilterDropDown.css +1 -1
- package/dist/components/ui/HomeHeaderSkeleton/HomeHeaderSkeleton.css +1 -1
- package/dist/components/ui/InfoModal/InfoModal.css +1 -1
- package/dist/components/ui/ModalsHeader/ModalsHeader.css +1 -1
- package/dist/components/ui/NotificationsSettingsHeader/NotificationsSettingsHeader.css +1 -1
- package/dist/components/ui/ProgressBar/ProgressBar.css +1 -1
- package/dist/components/ui/RadioCard/RadioCard.css +1 -1
- package/dist/components/ui/Search/Search.css +1 -1
- package/dist/components/ui/SearchDocument/SearchDocument.css +1 -1
- package/dist/components/ui/SearchGeneric/SearchGeneric.css +1 -1
- package/dist/components/ui/SearchService/SearchService.css +1 -1
- package/dist/components/ui/SearchStructure/SearchStructure.css +1 -1
- package/dist/components/ui/ShareButton/ShareButton.css +1 -1
- package/dist/components/ui/SupportBanner/SupportBanner.css +1 -1
- package/dist/components/ui/Switch/Switch.css +1 -1
- package/dist/components/ui/Table/Table.css +1 -1
- package/dist/components/ui/TabsGlossary/TabsGlossary.css +1 -1
- package/dist/components/ui/Tags/Tags.css +1 -1
- package/dist/components/ui/TitleSection/TitleSection.css +1 -1
- package/dist/components/ui/filters/BottomNavigation/BottomNavigation.css +1 -1
- package/dist/components/ui/filters/CheckboxFilter/CheckboxFilter.css +1 -1
- package/dist/components/ui/filters/FiltersChips/FiltersChips.css +1 -1
- package/dist/index.cjs123.js +1 -1
- package/dist/index.cjs123.js.map +1 -1
- package/dist/index.cjs232.js +1 -1
- package/dist/index.cjs236.js +1 -1
- package/dist/index.cjs243.js +1 -1
- package/dist/index.cjs253.js +1 -1
- package/dist/index.cjs259.js +1 -1
- package/dist/index.cjs266.js +1 -1
- package/dist/index.cjs267.js +1 -1
- package/dist/index.cjs271.js +1 -1
- package/dist/index.cjs276.js +1 -1
- package/dist/index.cjs278.js +1 -1
- package/dist/index.cjs286.js +1 -1
- package/dist/index.cjs30.js +1 -1
- package/dist/index.cjs30.js.map +1 -1
- package/dist/index.cjs324.js +1 -1
- package/dist/index.cjs371.js +2 -0
- package/dist/index.cjs371.js.map +1 -0
- package/dist/index.cjs372.js +2 -0
- package/dist/index.cjs372.js.map +1 -0
- package/dist/index.cjs373.js +2 -0
- package/dist/index.cjs373.js.map +1 -0
- package/dist/index.cjs374.js +1 -1
- package/dist/index.cjs374.js.map +1 -1
- package/dist/index.cjs375.js +1 -1
- package/dist/index.cjs375.js.map +1 -1
- package/dist/index.cjs376.js +1 -1
- package/dist/index.cjs376.js.map +1 -1
- package/dist/index.cjs377.js +1 -1
- package/dist/index.cjs377.js.map +1 -1
- package/dist/index.cjs378.js +1 -1
- package/dist/index.cjs378.js.map +1 -1
- package/dist/index.cjs381.js +1 -1
- package/dist/index.cjs381.js.map +1 -1
- package/dist/index.cjs382.js +2 -0
- package/dist/index.cjs382.js.map +1 -0
- package/dist/index.cjs383.js +1 -1
- package/dist/index.cjs383.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.cjs395.js → index.cjs386.js} +1 -1
- package/dist/{index.cjs395.js.map → index.cjs386.js.map} +1 -1
- package/dist/index.cjs387.js +2 -0
- package/dist/index.cjs387.js.map +1 -0
- package/dist/index.cjs388.js +2 -0
- package/dist/index.cjs388.js.map +1 -0
- package/dist/index.cjs389.js +2 -0
- package/dist/index.cjs389.js.map +1 -0
- package/dist/{index.cjs380.js → index.cjs390.js} +2 -2
- package/dist/{index.cjs380.js.map → 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 +1 -1
- package/dist/index.cjs392.js.map +1 -1
- package/dist/index.cjs393.js +1 -1
- package/dist/index.cjs393.js.map +1 -1
- package/dist/index.cjs394.js +1 -1
- package/dist/index.cjs394.js.map +1 -1
- package/dist/index.cjs396.js +1 -1
- package/dist/index.cjs396.js.map +1 -1
- package/dist/index.cjs397.js +1 -1
- package/dist/index.cjs397.js.map +1 -1
- package/dist/index.cjs398.js +2 -0
- package/dist/index.cjs398.js.map +1 -0
- package/dist/index.cjs399.js +2 -0
- package/dist/index.cjs399.js.map +1 -0
- package/dist/index.cjs400.js +2 -0
- package/dist/index.cjs400.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.cjs407.js.map +1 -1
- package/dist/index.cjs408.js +4 -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.cjs412.js +1 -1
- package/dist/index.cjs412.js.map +1 -1
- package/dist/index.cjs413.js +1 -1
- package/dist/index.cjs413.js.map +1 -1
- package/dist/index.cjs416.js +1 -1
- package/dist/index.cjs416.js.map +1 -1
- package/dist/index.cjs417.js +38 -1
- package/dist/index.cjs417.js.map +1 -1
- package/dist/index.cjs418.js +1 -1
- package/dist/index.cjs418.js.map +1 -1
- package/dist/index.cjs419.js +1 -1
- package/dist/index.cjs419.js.map +1 -1
- package/dist/index.cjs420.js +1 -38
- package/dist/index.cjs420.js.map +1 -1
- package/dist/index.cjs434.js +1 -1
- package/dist/index.cjs434.js.map +1 -1
- package/dist/index.cjs435.js +1 -1
- package/dist/index.cjs435.js.map +1 -1
- package/dist/index.cjs436.js +1 -1
- package/dist/index.cjs436.js.map +1 -1
- package/dist/index.cjs437.js +2 -0
- package/dist/index.cjs437.js.map +1 -0
- package/dist/index.cjs438.js +2 -0
- package/dist/index.cjs438.js.map +1 -0
- package/dist/index.cjs439.js +1 -1
- package/dist/index.cjs439.js.map +1 -1
- package/dist/index.cjs452.js +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/index.es123.js +4 -6
- package/dist/index.es123.js.map +1 -1
- package/dist/index.es232.js +7 -7
- package/dist/index.es236.js +1 -1
- package/dist/index.es243.js +8 -8
- package/dist/index.es253.js +1 -1
- package/dist/index.es259.js +14 -14
- package/dist/index.es266.js +1 -1
- package/dist/index.es267.js +1 -1
- package/dist/index.es271.js +1 -1
- package/dist/index.es276.js +1 -1
- package/dist/index.es278.js +1 -1
- package/dist/index.es286.js +7 -7
- package/dist/index.es30.js +5 -6
- package/dist/index.es30.js.map +1 -1
- package/dist/index.es324.js +4 -4
- package/dist/index.es371.js +10 -0
- package/dist/index.es371.js.map +1 -0
- package/dist/index.es372.js +30 -0
- package/dist/index.es372.js.map +1 -0
- package/dist/index.es373.js +71 -0
- package/dist/index.es373.js.map +1 -0
- package/dist/index.es374.js +28 -25
- package/dist/index.es374.js.map +1 -1
- package/dist/index.es375.js +32 -67
- package/dist/index.es375.js.map +1 -1
- package/dist/index.es376.js +621 -6
- package/dist/index.es376.js.map +1 -1
- package/dist/index.es377.js +10 -29
- package/dist/index.es377.js.map +1 -1
- package/dist/index.es378.js +15 -6
- package/dist/index.es378.js.map +1 -1
- package/dist/index.es381.js +10 -32
- package/dist/index.es381.js.map +1 -1
- package/dist/index.es382.js +56 -0
- package/dist/index.es382.js.map +1 -0
- package/dist/index.es383.js +45 -10
- package/dist/index.es383.js.map +1 -1
- package/dist/index.es384.js +7 -3
- package/dist/index.es384.js.map +1 -1
- package/dist/index.es385.js +120 -48
- package/dist/index.es385.js.map +1 -1
- package/dist/{index.es395.js → index.es386.js} +1 -1
- package/dist/{index.es395.js.map → index.es386.js.map} +1 -1
- package/dist/index.es387.js +138 -0
- package/dist/index.es387.js.map +1 -0
- package/dist/index.es388.js +221 -0
- package/dist/index.es388.js.map +1 -0
- package/dist/index.es389.js +17 -0
- package/dist/index.es389.js.map +1 -0
- package/dist/{index.es380.js → index.es390.js} +3 -3
- package/dist/{index.es380.js.map → index.es390.js.map} +1 -1
- package/dist/index.es391.js +177 -10
- package/dist/index.es391.js.map +1 -1
- package/dist/index.es392.js +47 -122
- package/dist/index.es392.js.map +1 -1
- package/dist/index.es393.js +8 -134
- package/dist/index.es393.js.map +1 -1
- package/dist/index.es394.js +4 -14
- package/dist/index.es394.js.map +1 -1
- package/dist/index.es396.js +6 -9
- package/dist/index.es396.js.map +1 -1
- package/dist/index.es397.js +25 -50
- package/dist/index.es397.js.map +1 -1
- package/dist/index.es398.js +15 -0
- package/dist/index.es398.js.map +1 -0
- package/dist/index.es399.js +208 -0
- package/dist/index.es399.js.map +1 -0
- package/dist/index.es400.js +25 -0
- package/dist/index.es400.js.map +1 -0
- package/dist/index.es401.js +391 -10
- package/dist/index.es401.js.map +1 -1
- package/dist/index.es402.js +22 -619
- package/dist/index.es402.js.map +1 -1
- package/dist/index.es403.js +28 -24
- package/dist/index.es403.js.map +1 -1
- package/dist/index.es404.js +5 -29
- package/dist/index.es404.js.map +1 -1
- package/dist/index.es405.js +5 -5
- package/dist/index.es405.js.map +1 -1
- package/dist/index.es406.js +6 -0
- package/dist/index.es406.js.map +1 -0
- package/dist/index.es407.js +22 -44
- package/dist/index.es407.js.map +1 -1
- package/dist/index.es408.js +109 -7
- package/dist/index.es408.js.map +1 -1
- package/dist/index.es409.js +14 -216
- package/dist/index.es409.js.map +1 -1
- package/dist/index.es410.js +514 -169
- package/dist/index.es410.js.map +1 -1
- package/dist/index.es411.js +127 -5
- package/dist/index.es411.js.map +1 -1
- package/dist/index.es412.js +129 -3
- package/dist/index.es412.js.map +1 -1
- package/dist/index.es413.js +13 -22
- package/dist/index.es413.js.map +1 -1
- package/dist/index.es416.js +60 -200
- package/dist/index.es416.js.map +1 -1
- package/dist/index.es417.js +69 -22
- package/dist/index.es417.js.map +1 -1
- package/dist/index.es418.js +7 -391
- package/dist/index.es418.js.map +1 -1
- package/dist/index.es419.js +13 -64
- package/dist/index.es419.js.map +1 -1
- package/dist/index.es420.js +61 -68
- package/dist/index.es420.js.map +1 -1
- package/dist/index.es434.js +3 -27
- package/dist/index.es434.js.map +1 -1
- package/dist/index.es435.js +23 -5
- package/dist/index.es435.js.map +1 -1
- package/dist/index.es436.js +12 -14
- package/dist/index.es436.js.map +1 -1
- package/dist/index.es437.js +31 -0
- package/dist/index.es437.js.map +1 -0
- package/dist/index.es438.js +8 -0
- package/dist/index.es438.js.map +1 -0
- package/dist/index.es439.js +23 -15
- package/dist/index.es439.js.map +1 -1
- package/dist/index.es452.js +8 -8
- package/dist/sections/Documents/Documents.css +1 -1
- package/dist/sections/HomeServices/HomeServices.css +1 -1
- package/dist/sections/Insights/Insights.css +1 -1
- package/dist/sections/Login/Login.css +1 -1
- package/dist/sections/RichText/RichText.css +1 -1
- package/dist/sections/Services/Services.css +1 -1
- package/dist/sections/SuggestedServices/SuggestedServices.css +1 -1
- package/dist/sections/Tags/Tags.css +1 -1
- package/dist/sections/WhatDoYouNeed/WhatDoYouNeed.css +1 -1
- package/dist/styles/index.css +1 -1
- package/package.json +1 -1
- package/dist/components/ui/DoctorConfirmModal/DoctorConfirmModalContent/DoctorConfirmModalContent.css +0 -1
- package/dist/components/ui/DoctorConfirmModal/DoctorConfirmModalFooter/DoctorConfirmModalFooter.css +0 -1
- package/dist/index.cjs379.js +0 -2
- package/dist/index.cjs379.js.map +0 -1
- package/dist/index.cjs414.js +0 -5
- package/dist/index.cjs414.js.map +0 -1
- package/dist/index.cjs415.js +0 -2
- package/dist/index.cjs415.js.map +0 -1
- package/dist/index.cjs421.js +0 -2
- package/dist/index.cjs421.js.map +0 -1
- package/dist/index.cjs422.js +0 -2
- package/dist/index.cjs422.js.map +0 -1
- package/dist/index.cjs423.js +0 -2
- package/dist/index.cjs423.js.map +0 -1
- package/dist/index.cjs427.js +0 -2
- package/dist/index.cjs427.js.map +0 -1
- package/dist/index.cjs428.js +0 -2
- package/dist/index.cjs428.js.map +0 -1
- package/dist/index.cjs429.js +0 -2
- package/dist/index.cjs429.js.map +0 -1
- package/dist/index.cjs430.js +0 -2
- package/dist/index.cjs430.js.map +0 -1
- package/dist/index.cjs431.js +0 -2
- package/dist/index.cjs431.js.map +0 -1
- package/dist/index.cjs432.js +0 -2
- package/dist/index.cjs432.js.map +0 -1
- package/dist/index.cjs433.js +0 -2
- package/dist/index.cjs433.js.map +0 -1
- package/dist/index.es379.js +0 -28
- package/dist/index.es379.js.map +0 -1
- package/dist/index.es414.js +0 -113
- package/dist/index.es414.js.map +0 -1
- package/dist/index.es415.js +0 -19
- package/dist/index.es415.js.map +0 -1
- package/dist/index.es421.js +0 -12
- package/dist/index.es421.js.map +0 -1
- package/dist/index.es422.js +0 -17
- package/dist/index.es422.js.map +0 -1
- package/dist/index.es423.js +0 -65
- package/dist/index.es423.js.map +0 -1
- package/dist/index.es427.js +0 -7
- package/dist/index.es427.js.map +0 -1
- package/dist/index.es428.js +0 -26
- package/dist/index.es428.js.map +0 -1
- package/dist/index.es429.js +0 -526
- package/dist/index.es429.js.map +0 -1
- package/dist/index.es430.js +0 -130
- package/dist/index.es430.js.map +0 -1
- package/dist/index.es431.js +0 -132
- package/dist/index.es431.js.map +0 -1
- package/dist/index.es432.js +0 -26
- package/dist/index.es432.js.map +0 -1
- package/dist/index.es433.js +0 -16
- package/dist/index.es433.js.map +0 -1
package/dist/index.es123.js
CHANGED
@@ -2,13 +2,11 @@ import { j as s } from "./index.es202.js";
|
|
2
2
|
import './sections/Insights/Insights.css';/* empty css */
|
3
3
|
import { CardPreview as o } from "./index.es110.js";
|
4
4
|
import { Section as e } from "./index.es47.js";
|
5
|
-
const
|
5
|
+
const u = ({
|
6
6
|
title: t,
|
7
7
|
items: i = [],
|
8
|
-
colorTitle: r = "slate-20"
|
9
|
-
showBackgroundRectangle: l = !0
|
8
|
+
colorTitle: r = "slate-20"
|
10
9
|
}) => /* @__PURE__ */ s.jsxs(e, { className: "ui-insights-section", children: [
|
11
|
-
l && /* @__PURE__ */ s.jsx("div", { className: "ui-insights-background-rectangle" }),
|
12
10
|
/* @__PURE__ */ s.jsx("div", { className: "ui-insights-items-section-title", children: /* @__PURE__ */ s.jsx(
|
13
11
|
e.Title,
|
14
12
|
{
|
@@ -24,11 +22,11 @@ const d = ({
|
|
24
22
|
role: "list",
|
25
23
|
"aria-label": `Lista di ${t}`,
|
26
24
|
className: "list-style-none ui-insights-items-layout",
|
27
|
-
children: i == null ? void 0 : i.map((
|
25
|
+
children: i == null ? void 0 : i.map((l, n) => /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(o, { ...l }) }, n))
|
28
26
|
}
|
29
27
|
)
|
30
28
|
] });
|
31
29
|
export {
|
32
|
-
|
30
|
+
u as Insights
|
33
31
|
};
|
34
32
|
//# sourceMappingURL=index.es123.js.map
|
package/dist/index.es123.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es123.js","sources":["../src/sections/Insights/index.tsx"],"sourcesContent":["import { CardPreviewProps, CardPreview, Section } from \"@/components\";\nimport { ColorKeys } from \"@/theme/colors\";\nimport \"./Insights.scss\";\n\ntype Props = {\n title: string;\n items: CardPreviewProps[];\n colorTitle?: ColorKeys;\n
|
1
|
+
{"version":3,"file":"index.es123.js","sources":["../src/sections/Insights/index.tsx"],"sourcesContent":["import { CardPreviewProps, CardPreview, Section } from \"@/components\";\nimport { ColorKeys } from \"@/theme/colors\";\nimport \"./Insights.scss\";\n\ntype Props = {\n title: string;\n items: CardPreviewProps[];\n colorTitle?: ColorKeys;\n};\n\nexport const Insights = ({\n title,\n items = [],\n colorTitle = \"slate-20\",\n}: Props) => {\n return (\n <Section className=\"ui-insights-section\">\n <div className=\"ui-insights-items-section-title\">\n <Section.Title\n className=\"ui-insights-items-section-title\"\n as={\"h3\"}\n color={colorTitle}\n >\n {title}\n </Section.Title>\n </div>\n <ul\n role=\"list\"\n aria-label={`Lista di ${title}`}\n className={`list-style-none ui-insights-items-layout`}\n >\n {items?.map((item, index) => {\n return (\n <li key={index}>\n <CardPreview {...item} />\n </li>\n );\n })}\n </ul>\n </Section>\n );\n};\n"],"names":["Insights","title","items","colorTitle","jsxs","Section","jsx","item","index","CardPreview"],"mappings":";;;;AAUO,MAAMA,IAAW,CAAC;AAAA,EACvB,OAAAC;AAAA,EACA,OAAAC,IAAQ,CAAC;AAAA,EACT,YAAAC,IAAa;AACf,MAEIC,gBAAAA,EAAA,KAACC,GAAQ,EAAA,WAAU,uBACjB,UAAA;AAAA,EAACC,gBAAAA,EAAAA,IAAA,OAAA,EAAI,WAAU,mCACb,UAAAA,gBAAAA,EAAA;AAAA,IAACD,EAAQ;AAAA,IAAR;AAAA,MACC,WAAU;AAAA,MACV,IAAI;AAAA,MACJ,OAAOF;AAAA,MAEN,UAAAF;AAAA,IAAA;AAAA,EAAA,GAEL;AAAA,EACAK,gBAAAA,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,MAAK;AAAA,MACL,cAAY,YAAYL,CAAK;AAAA,MAC7B,WAAW;AAAA,MAEV,UAAOC,KAAA,gBAAAA,EAAA,IAAI,CAACK,GAAMC,4BAEd,MACC,EAAA,UAAAF,gBAAAA,EAAA,IAACG,KAAa,GAAGF,EAAA,CAAM,KADhBC,CAET;AAAA,IAEH;AAAA,EAAA;AACH,GACF;"}
|
package/dist/index.es232.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.es371.js";
|
3
|
+
import { composeRefs as E } from "./index.es372.js";
|
4
|
+
import { createContextScope as S } from "./index.es373.js";
|
5
|
+
import { useControllableState as P } from "./index.es374.js";
|
6
|
+
import { Primitive as y } from "./index.es375.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.es376.js";
|
8
|
+
import { useId as g } from "./index.es377.js";
|
9
9
|
import { j as a } from "./index.es202.js";
|
10
10
|
var M = "DropdownMenu", [z, bo] = S(
|
11
11
|
M,
|
package/dist/index.es236.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.es204.js";
|
6
|
-
import { useFocusTrap as N } from "./index.
|
6
|
+
import { useFocusTrap as N } from "./index.es378.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.es243.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.
|
6
|
-
import { usePrevious as A } from "./index.
|
7
|
-
import { useSize as B } from "./index.
|
8
|
-
import { Presence as H } from "./index.
|
9
|
-
import { Primitive as j } from "./index.
|
2
|
+
import { useComposedRefs as N } from "./index.es372.js";
|
3
|
+
import { createContextScope as M } from "./index.es373.js";
|
4
|
+
import { composeEventHandlers as S } from "./index.es371.js";
|
5
|
+
import { useControllableState as O } from "./index.es374.js";
|
6
|
+
import { usePrevious as A } from "./index.es396.js";
|
7
|
+
import { useSize as B } from "./index.es397.js";
|
8
|
+
import { Presence as H } from "./index.es390.js";
|
9
|
+
import { Primitive as j } from "./index.es375.js";
|
10
10
|
import { j as f } from "./index.es202.js";
|
11
11
|
var R = "Checkbox", [K, Y] = M(R), [L, q] = K(R), I = n.forwardRef(
|
12
12
|
(e, l) => {
|
package/dist/index.es253.js
CHANGED
package/dist/index.es259.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.
|
10
|
-
import { Presence as R } from "./index.
|
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.
|
2
|
+
import { composeEventHandlers as p } from "./index.es371.js";
|
3
|
+
import { useComposedRefs as C } from "./index.es372.js";
|
4
|
+
import { createContextScope as B, createContext as H } from "./index.es373.js";
|
5
|
+
import { useId as x } from "./index.es377.js";
|
6
|
+
import { useControllableState as V } from "./index.es374.js";
|
7
|
+
import { DismissableLayer as q } from "./index.es385.js";
|
8
|
+
import { FocusScope as K } from "./index.es387.js";
|
9
|
+
import { Portal as U } from "./index.es389.js";
|
10
|
+
import { Presence as R } from "./index.es390.js";
|
11
|
+
import { Primitive as m } from "./index.es375.js";
|
12
|
+
import { useFocusGuards as Y } from "./index.es386.js";
|
13
|
+
import Z from "./index.es393.js";
|
14
|
+
import { hideOthers as z } from "./index.es392.js";
|
15
|
+
import { createSlot as J } from "./index.es382.js";
|
16
16
|
import { j as i } from "./index.es202.js";
|
17
17
|
var _ = "Dialog", [N, he] = B(_), [Q, u] = N(_), P = (e) => {
|
18
18
|
const {
|
package/dist/index.es266.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { j as t } from "./index.es202.js";
|
2
|
-
import './components/ui/
|
2
|
+
import './components/ui/DoctorModal/DoctorModalFooter/DoctorModalFooter.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.es267.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { j as n } from "./index.es202.js";
|
2
2
|
import { clsx as r } from "./index.es204.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.es271.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { j as t } from "./index.es202.js";
|
2
|
-
import './components/ui/
|
2
|
+
import './components/ui/DoctorModal/DoctorModalFooter/DoctorModalFooter.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.es276.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { j as r } from "./index.es202.js";
|
2
2
|
import { clsx as m } from "./index.es204.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.es278.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { j as t } from "./index.es202.js";
|
2
|
-
import './components/ui/
|
2
|
+
import './components/ui/DoctorModal/DoctorModalFooter/DoctorModalFooter.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.es286.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.
|
6
|
-
import { usePrevious as M } from "./index.
|
7
|
-
import { useSize as N } from "./index.
|
8
|
-
import { Primitive as w } from "./index.
|
2
|
+
import { composeEventHandlers as T } from "./index.es371.js";
|
3
|
+
import { useComposedRefs as _ } from "./index.es372.js";
|
4
|
+
import { createContextScope as H } from "./index.es373.js";
|
5
|
+
import { useControllableState as I } from "./index.es374.js";
|
6
|
+
import { usePrevious as M } from "./index.es396.js";
|
7
|
+
import { useSize as N } from "./index.es397.js";
|
8
|
+
import { Primitive as w } from "./index.es375.js";
|
9
9
|
import { j as p } from "./index.es202.js";
|
10
10
|
var S = "Switch", [B, J] = H(S), [q, z] = B(S), C = s.forwardRef(
|
11
11
|
(e, n) => {
|
package/dist/index.es30.js
CHANGED
@@ -22,10 +22,10 @@ const Q = ({
|
|
22
22
|
subtitle: l,
|
23
23
|
action: c,
|
24
24
|
CTA: d,
|
25
|
-
handleDownloadDocument:
|
25
|
+
handleDownloadDocument: y,
|
26
26
|
hrefDocument: x = "#",
|
27
27
|
isLoading: n = !1,
|
28
|
-
openDocumentLabel:
|
28
|
+
openDocumentLabel: b = "Apri documento",
|
29
29
|
releaseDateLabel: g = "Emesso il",
|
30
30
|
eventLabel: v = "Evento n.",
|
31
31
|
asLink: N = "a"
|
@@ -39,7 +39,7 @@ const Q = ({
|
|
39
39
|
"text-decoration-none text-primary",
|
40
40
|
"ui-document-download-row"
|
41
41
|
),
|
42
|
-
onClick: n ? void 0 :
|
42
|
+
onClick: n ? void 0 : y,
|
43
43
|
children: [
|
44
44
|
/* @__PURE__ */ e.jsx(O, {}),
|
45
45
|
/* @__PURE__ */ e.jsx("p", { children: c }),
|
@@ -57,11 +57,10 @@ const Q = ({
|
|
57
57
|
/* @__PURE__ */ e.jsxs(
|
58
58
|
s,
|
59
59
|
{
|
60
|
-
"max-h": "x40",
|
61
|
-
"min-h": "x40",
|
62
60
|
as: "header",
|
63
61
|
justifyContent: r || o ? "space-between" : "flex-end",
|
64
62
|
alignItems: "center",
|
63
|
+
py: "x8",
|
65
64
|
px: "x24",
|
66
65
|
className: "ui-document-header",
|
67
66
|
children: [
|
@@ -139,7 +138,7 @@ const Q = ({
|
|
139
138
|
size: "3",
|
140
139
|
asLink: "a",
|
141
140
|
href: x,
|
142
|
-
children:
|
141
|
+
children: b
|
143
142
|
}
|
144
143
|
)
|
145
144
|
] }) })
|
package/dist/index.es30.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es30.js","sources":["../src/components/ui/CardDocument/index.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport \"./CardDocument.scss\";\nimport { Button, Col, Loader, Row } from \"@/components\";\nimport { Divider } from \"@/components/ui/Divider\";\nimport { useIsDesktop } from \"@/hooks/useIsDesktop.ts\";\nimport { ComponentType } from \"react\";\nimport { Download, Favourite, Obscured } from \"../../../icons\";\n\ntype CardDocumentProps = {\n eventNumber?: string;\n date?: string | number;\n documentType?: string;\n documentTitle: string;\n label?: string;\n subtitle?: string;\n showFavorite?: boolean;\n action?: string;\n CTA?: string;\n iconView?: \"attachments\" | \"obscured\";\n favorite?: boolean;\n handleDownloadDocument?: () => void;\n hrefDocument?: string;\n isLoading?: boolean;\n openDocumentLabel?: string;\n releaseDateLabel?: string;\n eventLabel?: string;\n asLink?: \"a\" | ComponentType<any>;\n showBottomActions?: boolean;\n showIsHidden?: boolean;\n};\n\nexport const CardDocument = ({\n eventNumber,\n date = \"--/--/--\",\n documentType,\n showBottomActions = true,\n showFavorite = false,\n showIsHidden = false,\n documentTitle,\n label,\n subtitle,\n action,\n CTA,\n handleDownloadDocument,\n hrefDocument = \"#\",\n isLoading = false,\n openDocumentLabel = \"Apri documento\",\n releaseDateLabel = \"Emesso il\",\n eventLabel = \"Evento n.\",\n asLink = \"a\",\n}: CardDocumentProps) => {\n const LinkComponent = asLink;\n const isDesktop = useIsDesktop();\n\n const renderDownloadAction = () => {\n if (!action) return null;\n return (\n <Row\n alignItems={\"center\"}\n className={clsx(\n !isLoading && \"cursor-pointer\",\n \"text-decoration-none text-primary\",\n \"ui-document-download-row\",\n )}\n onClick={isLoading ? undefined : handleDownloadDocument}\n >\n <Download />\n <p>{action}</p>\n <Loader loading={isLoading} className={\"ml-x8\"} />\n </Row>\n );\n };\n\n return (\n <div\n className={clsx(\n \"ui-card-document shadow br-x4 fw-semibold text-slate-28 fs-7\",\n )}\n >\n <Row\n
|
1
|
+
{"version":3,"file":"index.es30.js","sources":["../src/components/ui/CardDocument/index.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport \"./CardDocument.scss\";\nimport { Button, Col, Loader, Row } from \"@/components\";\nimport { Divider } from \"@/components/ui/Divider\";\nimport { useIsDesktop } from \"@/hooks/useIsDesktop.ts\";\nimport { ComponentType } from \"react\";\nimport { Download, Favourite, Obscured } from \"../../../icons\";\n\ntype CardDocumentProps = {\n eventNumber?: string;\n date?: string | number;\n documentType?: string;\n documentTitle: string;\n label?: string;\n subtitle?: string;\n showFavorite?: boolean;\n action?: string;\n CTA?: string;\n iconView?: \"attachments\" | \"obscured\";\n favorite?: boolean;\n handleDownloadDocument?: () => void;\n hrefDocument?: string;\n isLoading?: boolean;\n openDocumentLabel?: string;\n releaseDateLabel?: string;\n eventLabel?: string;\n asLink?: \"a\" | ComponentType<any>;\n showBottomActions?: boolean;\n showIsHidden?: boolean;\n};\n\nexport const CardDocument = ({\n eventNumber,\n date = \"--/--/--\",\n documentType,\n showBottomActions = true,\n showFavorite = false,\n showIsHidden = false,\n documentTitle,\n label,\n subtitle,\n action,\n CTA,\n handleDownloadDocument,\n hrefDocument = \"#\",\n isLoading = false,\n openDocumentLabel = \"Apri documento\",\n releaseDateLabel = \"Emesso il\",\n eventLabel = \"Evento n.\",\n asLink = \"a\",\n}: CardDocumentProps) => {\n const LinkComponent = asLink;\n const isDesktop = useIsDesktop();\n\n const renderDownloadAction = () => {\n if (!action) return null;\n return (\n <Row\n alignItems={\"center\"}\n className={clsx(\n !isLoading && \"cursor-pointer\",\n \"text-decoration-none text-primary\",\n \"ui-document-download-row\",\n )}\n onClick={isLoading ? undefined : handleDownloadDocument}\n >\n <Download />\n <p>{action}</p>\n <Loader loading={isLoading} className={\"ml-x8\"} />\n </Row>\n );\n };\n\n return (\n <div\n className={clsx(\n \"ui-card-document shadow br-x4 fw-semibold text-slate-28 fs-7\",\n )}\n >\n <Row\n as={\"header\"}\n justifyContent={\n eventNumber || showFavorite ? \"space-between\" : \"flex-end\"\n }\n alignItems={\"center\"}\n py={\"x8\"}\n px={\"x24\"}\n className={\"ui-document-header\"}\n >\n {eventNumber && (\n <Row>{eventNumber ? `${eventLabel} ${eventNumber}` : \"\"}</Row>\n )}\n\n {showFavorite && (\n <Row alignItems={\"center\"} gap={\"x8\"}>\n <Favourite filled={true} color={\"secondary\"} />\n <div>Preferito</div>\n </Row>\n )}\n\n <Row className={\"fw-semibold fs-7\"}>\n {releaseDateLabel} {date}\n </Row>\n </Row>\n <main className={\"py-x16 px-x24\"}>\n <Row justifyContent={\"space-between\"}>\n <Col\n pb={showBottomActions ? \"x32\" : undefined}\n justifyContent={\"space-between\"}\n >\n <div>\n <Row pb={\"x8\"}>{documentType}</Row>\n <h4 className={\"fs-5 text-slate-20\"}>{documentTitle}</h4>\n\n {label && (\n <Row pt={\"x8\"}>\n <div\n className={\"bg-secondary text-white rounded py-x4 px-x16\"}\n style={{ width: \"max-content\" }}\n >\n {label}\n </div>\n </Row>\n )}\n </div>\n {subtitle && <p className={\"fw-regular fs-6 pt-x8\"}>{subtitle}</p>}\n </Col>\n {showIsHidden && (\n <Col gap={\"x4\"} alignItems={\"center\"}>\n <Obscured />\n <div className={\"fs-7 fw-semibold\"}>Oscurato</div>\n </Col>\n )}\n </Row>\n {showBottomActions && (\n <Col mt={\"x16\"}>\n {!isDesktop ? (\n <Col as={\"footer\"} gap={\"x16\"}>\n {renderDownloadAction()}\n <Divider bg={\"border-divider\"} />\n <Button\n className=\"filter-button fs-7 fw-semibold w-full\"\n variant={\"secondary\"}\n size=\"3\"\n asLink={\"a\"}\n href={hrefDocument}\n >\n {openDocumentLabel}\n </Button>\n </Col>\n ) : (\n <Row\n as={\"footer\"}\n justifyContent={\"space-between\"}\n alignItems={\"center\"}\n >\n {renderDownloadAction()}\n {CTA && (\n <Button\n className=\"filter-button fs-7 text-primary fw-semibold\"\n variant={\"secondary\"}\n size=\"3\"\n asLink={LinkComponent}\n href={hrefDocument}\n >\n {CTA}\n </Button>\n )}\n </Row>\n )}\n </Col>\n )}\n </main>\n </div>\n );\n};\n"],"names":["CardDocument","eventNumber","date","documentType","showBottomActions","showFavorite","showIsHidden","documentTitle","label","subtitle","action","CTA","handleDownloadDocument","hrefDocument","isLoading","openDocumentLabel","releaseDateLabel","eventLabel","asLink","LinkComponent","isDesktop","useIsDesktop","renderDownloadAction","jsxs","Row","clsx","jsx","Download","Loader","Favourite","Col","Obscured","Button","Divider"],"mappings":"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"}
|
package/dist/index.es324.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.es373.js";
|
3
|
+
import { useComposedRefs as A } from "./index.es372.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.es259.js";
|
5
|
-
import { composeEventHandlers as F } from "./index.
|
6
|
-
import { createSlottable as G } from "./index.
|
5
|
+
import { composeEventHandlers as F } from "./index.es371.js";
|
6
|
+
import { createSlottable as G } from "./index.es382.js";
|
7
7
|
import { j as i } from "./index.es202.js";
|
8
8
|
var D = "AlertDialog", [W, te] = T(D, [
|
9
9
|
v
|
@@ -0,0 +1,10 @@
|
|
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
|
+
}
|
7
|
+
export {
|
8
|
+
h as composeEventHandlers
|
9
|
+
};
|
10
|
+
//# sourceMappingURL=index.es371.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.es371.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.es372.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.es372.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]}
|
@@ -0,0 +1,71 @@
|
|
1
|
+
import * as u from "react";
|
2
|
+
import { j as h } from "./index.es202.js";
|
3
|
+
function j(e, c) {
|
4
|
+
const o = u.createContext(c), a = (r) => {
|
5
|
+
const { children: t, ...n } = r, s = u.useMemo(() => n, Object.values(n));
|
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];
|
16
|
+
}
|
17
|
+
function w(e, c = []) {
|
18
|
+
let o = [];
|
19
|
+
function a(r, t) {
|
20
|
+
const n = u.createContext(t), s = o.length;
|
21
|
+
o = [...o, t];
|
22
|
+
const d = (m) => {
|
23
|
+
var S;
|
24
|
+
const { scope: x, children: C, ...p } = m, v = ((S = x == null ? void 0 : x[e]) == null ? void 0 : S[s]) || n, P = u.useMemo(() => p, Object.values(p));
|
25
|
+
return /* @__PURE__ */ h.jsx(v.Provider, { value: P, children: C });
|
26
|
+
};
|
27
|
+
d.displayName = r + "Provider";
|
28
|
+
function f(m, x) {
|
29
|
+
var v;
|
30
|
+
const C = ((v = x == null ? void 0 : x[e]) == null ? void 0 : v[s]) || n, p = u.useContext(C);
|
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
|
+
};
|
46
|
+
};
|
47
|
+
return i.scopeName = e, [a, l(i, ...c)];
|
48
|
+
}
|
49
|
+
function l(...e) {
|
50
|
+
const c = e[0];
|
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;
|
66
|
+
}
|
67
|
+
export {
|
68
|
+
j as createContext,
|
69
|
+
w as createContextScope
|
70
|
+
};
|
71
|
+
//# sourceMappingURL=index.es373.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.es373.js","sources":["../node_modules/@radix-ui/react-context/dist/index.mjs"],"sourcesContent":["// packages/react/context/src/create-context.tsx\nimport * as React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\nfunction createContext2(rootComponentName, defaultContext) {\n const Context = React.createContext(defaultContext);\n const Provider = (props) => {\n const { children, ...context } = props;\n const value = React.useMemo(() => context, Object.values(context));\n return /* @__PURE__ */ jsx(Context.Provider, { value, children });\n };\n Provider.displayName = rootComponentName + \"Provider\";\n function useContext2(consumerName) {\n const context = React.useContext(Context);\n if (context) return context;\n if (defaultContext !== void 0) return defaultContext;\n throw new Error(`\\`${consumerName}\\` must be used within \\`${rootComponentName}\\``);\n }\n return [Provider, useContext2];\n}\nfunction createContextScope(scopeName, createContextScopeDeps = []) {\n let defaultContexts = [];\n function createContext3(rootComponentName, defaultContext) {\n const BaseContext = React.createContext(defaultContext);\n const index = defaultContexts.length;\n defaultContexts = [...defaultContexts, defaultContext];\n const Provider = (props) => {\n const { scope, children, ...context } = props;\n const Context = scope?.[scopeName]?.[index] || BaseContext;\n const value = React.useMemo(() => context, Object.values(context));\n return /* @__PURE__ */ jsx(Context.Provider, { value, children });\n };\n Provider.displayName = rootComponentName + \"Provider\";\n function useContext2(consumerName, scope) {\n const Context = scope?.[scopeName]?.[index] || BaseContext;\n const context = React.useContext(Context);\n if (context) return context;\n if (defaultContext !== void 0) return defaultContext;\n throw new Error(`\\`${consumerName}\\` must be used within \\`${rootComponentName}\\``);\n }\n return [Provider, useContext2];\n }\n const createScope = () => {\n const scopeContexts = defaultContexts.map((defaultContext) => {\n return React.createContext(defaultContext);\n });\n return function useScope(scope) {\n const contexts = scope?.[scopeName] || scopeContexts;\n return React.useMemo(\n () => ({ [`__scope${scopeName}`]: { ...scope, [scopeName]: contexts } }),\n [scope, contexts]\n );\n };\n };\n createScope.scopeName = scopeName;\n return [createContext3, composeContextScopes(createScope, ...createContextScopeDeps)];\n}\nfunction composeContextScopes(...scopes) {\n const baseScope = scopes[0];\n if (scopes.length === 1) return baseScope;\n const createScope = () => {\n const scopeHooks = scopes.map((createScope2) => ({\n useScope: createScope2(),\n scopeName: createScope2.scopeName\n }));\n return function useComposedScopes(overrideScopes) {\n const nextScopes = scopeHooks.reduce((nextScopes2, { useScope, scopeName }) => {\n const scopeProps = useScope(overrideScopes);\n const currentScope = scopeProps[`__scope${scopeName}`];\n return { ...nextScopes2, ...currentScope };\n }, {});\n return React.useMemo(() => ({ [`__scope${baseScope.scopeName}`]: nextScopes }), [nextScopes]);\n };\n };\n createScope.scopeName = baseScope.scopeName;\n return createScope;\n}\nexport {\n createContext2 as createContext,\n createContextScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["createContext2","rootComponentName","defaultContext","Context","React","Provider","props","children","context","value","jsx","useContext2","consumerName","createContextScope","scopeName","createContextScopeDeps","defaultContexts","createContext3","BaseContext","index","scope","_a","createScope","scopeContexts","contexts","composeContextScopes","scopes","baseScope","scopeHooks","createScope2","overrideScopes","nextScopes","nextScopes2","useScope","currentScope"],"mappings":"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","x_google_ignoreList":[0]}
|
package/dist/index.es374.js
CHANGED
@@ -1,30 +1,33 @@
|
|
1
|
-
import * as
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
import * as l from "react";
|
2
|
+
import { useCallbackRef as f } from "./index.es381.js";
|
3
|
+
function R({
|
4
|
+
prop: t,
|
5
|
+
defaultProp: r,
|
6
|
+
onChange: s = () => {
|
7
|
+
}
|
8
|
+
}) {
|
9
|
+
const [e, n] = v({ defaultProp: r, onChange: s }), o = t !== void 0, i = o ? t : e, u = f(s), d = l.useCallback(
|
10
|
+
(c) => {
|
11
|
+
if (o) {
|
12
|
+
const a = typeof c == "function" ? c(t) : c;
|
13
|
+
a !== t && u(a);
|
14
|
+
} else
|
15
|
+
n(c);
|
16
|
+
},
|
17
|
+
[o, t, n, u]
|
18
|
+
);
|
19
|
+
return [i, d];
|
6
20
|
}
|
7
|
-
function
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
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);
|
21
|
+
function v({
|
22
|
+
defaultProp: t,
|
23
|
+
onChange: r
|
24
|
+
}) {
|
25
|
+
const s = l.useState(t), [e] = s, n = l.useRef(e), o = f(r);
|
26
|
+
return l.useEffect(() => {
|
27
|
+
n.current !== e && (o(e), n.current = e);
|
28
|
+
}, [e, n, o]), s;
|
25
29
|
}
|
26
30
|
export {
|
27
|
-
|
28
|
-
s as useComposedRefs
|
31
|
+
R as useControllableState
|
29
32
|
};
|
30
33
|
//# sourceMappingURL=index.es374.js.map
|
package/dist/index.es374.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es374.js","sources":["../node_modules/@radix-ui/react-
|
1
|
+
{"version":3,"file":"index.es374.js","sources":["../node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs"],"sourcesContent":["// packages/react/use-controllable-state/src/use-controllable-state.tsx\nimport * as React from \"react\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nfunction useControllableState({\n prop,\n defaultProp,\n onChange = () => {\n }\n}) {\n const [uncontrolledProp, setUncontrolledProp] = useUncontrolledState({ defaultProp, onChange });\n const isControlled = prop !== void 0;\n const value = isControlled ? prop : uncontrolledProp;\n const handleChange = useCallbackRef(onChange);\n const setValue = React.useCallback(\n (nextValue) => {\n if (isControlled) {\n const setter = nextValue;\n const value2 = typeof nextValue === \"function\" ? setter(prop) : nextValue;\n if (value2 !== prop) handleChange(value2);\n } else {\n setUncontrolledProp(nextValue);\n }\n },\n [isControlled, prop, setUncontrolledProp, handleChange]\n );\n return [value, setValue];\n}\nfunction useUncontrolledState({\n defaultProp,\n onChange\n}) {\n const uncontrolledState = React.useState(defaultProp);\n const [value] = uncontrolledState;\n const prevValueRef = React.useRef(value);\n const handleChange = useCallbackRef(onChange);\n React.useEffect(() => {\n if (prevValueRef.current !== value) {\n handleChange(value);\n prevValueRef.current = value;\n }\n }, [value, prevValueRef, handleChange]);\n return uncontrolledState;\n}\nexport {\n useControllableState\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useControllableState","prop","defaultProp","onChange","uncontrolledProp","setUncontrolledProp","useUncontrolledState","isControlled","value","handleChange","useCallbackRef","setValue","React","nextValue","value2","uncontrolledState","prevValueRef"],"mappings":";;AAGA,SAASA,EAAqB;AAAA,EAC5B,MAAAC;AAAA,EACA,aAAAC;AAAA,EACA,UAAAC,IAAW,MAAM;AAAA,EACnB;AACA,GAAG;AACD,QAAM,CAACC,GAAkBC,CAAmB,IAAIC,EAAqB,EAAE,aAAAJ,GAAa,UAAAC,GAAU,GACxFI,IAAeN,MAAS,QACxBO,IAAQD,IAAeN,IAAOG,GAC9BK,IAAeC,EAAeP,CAAQ,GACtCQ,IAAWC,EAAM;AAAA,IACrB,CAACC,MAAc;AACb,UAAIN,GAAc;AAEhB,cAAMO,IAAS,OAAOD,KAAc,aADrBA,EACyCZ,CAAI,IAAIY;AAChE,QAAIC,MAAWb,KAAMQ,EAAaK,CAAM;AAAA,MAChD;AACQ,QAAAT,EAAoBQ,CAAS;AAAA,IAEhC;AAAA,IACD,CAACN,GAAcN,GAAMI,GAAqBI,CAAY;AAAA,EACvD;AACD,SAAO,CAACD,GAAOG,CAAQ;AACzB;AACA,SAASL,EAAqB;AAAA,EAC5B,aAAAJ;AAAA,EACA,UAAAC;AACF,GAAG;AACD,QAAMY,IAAoBH,EAAM,SAASV,CAAW,GAC9C,CAACM,CAAK,IAAIO,GACVC,IAAeJ,EAAM,OAAOJ,CAAK,GACjCC,IAAeC,EAAeP,CAAQ;AAC5C,SAAAS,EAAM,UAAU,MAAM;AACpB,IAAII,EAAa,YAAYR,MAC3BC,EAAaD,CAAK,GAClBQ,EAAa,UAAUR;AAAA,EAE1B,GAAE,CAACA,GAAOQ,GAAcP,CAAY,CAAC,GAC/BM;AACT;","x_google_ignoreList":[0]}
|