@anoki/fse-ui 1.0.760 → 1.0.762
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.cjs121.js.map +1 -1
- package/dist/index.cjs197.js +1 -1
- package/dist/index.cjs197.js.map +1 -1
- package/dist/index.cjs198.js +1 -1
- package/dist/index.cjs198.js.map +1 -1
- package/dist/index.cjs202.js +1 -1
- package/dist/index.cjs202.js.map +1 -1
- package/dist/index.cjs211.js +1 -1
- package/dist/index.cjs211.js.map +1 -1
- package/dist/index.cjs215.js +1 -1
- package/dist/index.cjs215.js.map +1 -1
- package/dist/index.cjs220.js +1 -1
- package/dist/index.cjs227.js +1 -1
- package/dist/index.cjs23.js +1 -1
- package/dist/index.cjs23.js.map +1 -1
- package/dist/index.cjs270.js +1 -1
- package/dist/index.cjs276.js +1 -1
- package/dist/index.cjs283.js +1 -1
- package/dist/index.cjs288.js +1 -1
- package/dist/index.cjs295.js +1 -1
- package/dist/index.cjs342.js +1 -1
- package/dist/index.cjs381.js +1 -1
- package/dist/index.cjs389.js +1 -1
- package/dist/index.cjs390.js +3 -12
- package/dist/index.cjs390.js.map +1 -1
- package/dist/index.cjs391.js +27 -1
- package/dist/index.cjs391.js.map +1 -1
- package/dist/index.cjs392.js +1 -2
- package/dist/index.cjs392.js.map +1 -1
- package/dist/index.cjs393.js +1 -27
- 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.cjs395.js +2 -1
- package/dist/index.cjs395.js.map +1 -1
- package/dist/index.cjs399.js +1 -1
- package/dist/index.cjs400.js +1 -1
- package/dist/index.cjs401.js +1 -1
- package/dist/index.cjs402.js +1 -1
- package/dist/index.cjs408.js +1 -1
- package/dist/index.cjs409.js +1 -1
- package/dist/index.cjs410.js +1 -1
- package/dist/index.cjs410.js.map +1 -1
- package/dist/index.cjs412.js +1 -1
- package/dist/index.cjs412.js.map +1 -1
- package/dist/index.cjs416.js +2 -0
- package/dist/index.cjs416.js.map +1 -0
- package/dist/index.cjs417.js +2 -0
- package/dist/index.cjs417.js.map +1 -0
- 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 -1
- package/dist/index.cjs420.js.map +1 -1
- package/dist/index.cjs421.js +1 -1
- package/dist/index.cjs421.js.map +1 -1
- package/dist/index.cjs422.js +1 -1
- package/dist/index.cjs422.js.map +1 -1
- package/dist/index.cjs431.js +1 -1
- package/dist/index.cjs431.js.map +1 -1
- package/dist/index.cjs432.js +1 -1
- package/dist/index.cjs432.js.map +1 -1
- package/dist/index.cjs433.js +1 -1
- package/dist/index.cjs433.js.map +1 -1
- package/dist/index.cjs434.js +2 -0
- package/dist/index.cjs434.js.map +1 -0
- package/dist/index.cjs435.js +2 -0
- package/dist/index.cjs435.js.map +1 -0
- package/dist/index.cjs436.js +2 -0
- package/dist/index.cjs436.js.map +1 -0
- package/dist/index.cjs441.js +1 -1
- package/dist/index.cjs472.js +1 -1
- package/dist/index.cjs479.js +1 -1
- package/dist/index.cjs496.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.es121.js.map +1 -1
- package/dist/index.es197.js +76 -71
- package/dist/index.es197.js.map +1 -1
- package/dist/index.es198.js +11 -1
- package/dist/index.es198.js.map +1 -1
- package/dist/index.es202.js +63 -58
- package/dist/index.es202.js.map +1 -1
- package/dist/index.es211.js +29 -26
- package/dist/index.es211.js.map +1 -1
- package/dist/index.es215.js +18 -15
- package/dist/index.es215.js.map +1 -1
- package/dist/index.es220.js +1 -1
- package/dist/index.es227.js +2 -2
- package/dist/index.es23.js +25 -15
- package/dist/index.es23.js.map +1 -1
- package/dist/index.es270.js +1 -1
- package/dist/index.es276.js +7 -7
- package/dist/index.es283.js +1 -1
- package/dist/index.es288.js +1 -1
- package/dist/index.es295.js +1 -1
- package/dist/index.es342.js +1 -1
- package/dist/index.es381.js +1 -1
- package/dist/index.es389.js +1 -1
- package/dist/index.es390.js +146 -307
- package/dist/index.es390.js.map +1 -1
- package/dist/index.es391.js +3674 -5
- package/dist/index.es391.js.map +1 -1
- package/dist/index.es392.js +5 -520
- package/dist/index.es392.js.map +1 -1
- package/dist/index.es393.js +2 -3675
- package/dist/index.es393.js.map +1 -1
- package/dist/index.es394.js +5 -5
- package/dist/index.es394.js.map +1 -1
- package/dist/index.es395.js +521 -2
- package/dist/index.es395.js.map +1 -1
- package/dist/index.es399.js +1 -1
- package/dist/index.es400.js +1 -1
- package/dist/index.es401.js +12 -12
- package/dist/index.es402.js +1 -1
- package/dist/index.es408.js +1 -1
- package/dist/index.es409.js +1 -1
- package/dist/index.es410.js +2 -15
- package/dist/index.es410.js.map +1 -1
- package/dist/index.es411.js +2 -2
- package/dist/index.es412.js +15 -2
- package/dist/index.es412.js.map +1 -1
- package/dist/index.es416.js +128 -0
- package/dist/index.es416.js.map +1 -0
- package/dist/index.es417.js +138 -0
- package/dist/index.es417.js.map +1 -0
- package/dist/index.es418.js +13 -124
- package/dist/index.es418.js.map +1 -1
- package/dist/index.es419.js +14 -134
- package/dist/index.es419.js.map +1 -1
- package/dist/index.es420.js +7 -12
- package/dist/index.es420.js.map +1 -1
- package/dist/index.es421.js +50 -15
- package/dist/index.es421.js.map +1 -1
- package/dist/index.es422.js +53 -9
- package/dist/index.es422.js.map +1 -1
- package/dist/index.es431.js +10 -217
- package/dist/index.es431.js.map +1 -1
- package/dist/index.es432.js +41 -173
- package/dist/index.es432.js.map +1 -1
- package/dist/index.es433.js +7 -3
- package/dist/index.es433.js.map +1 -1
- package/dist/index.es434.js +221 -0
- package/dist/index.es434.js.map +1 -0
- package/dist/index.es435.js +181 -0
- package/dist/index.es435.js.map +1 -0
- package/dist/index.es436.js +7 -0
- package/dist/index.es436.js.map +1 -0
- package/dist/index.es441.js +1 -1
- package/dist/index.es472.js +1 -1
- package/dist/index.es479.js +3 -3
- package/dist/index.es496.js +1 -1
- package/dist/styles/index.css +1 -1
- package/dist/styles/typography.css +1 -1
- package/package.json +1 -1
- package/dist/index.cjs423.js +0 -2
- package/dist/index.cjs423.js.map +0 -1
- package/dist/index.cjs424.js +0 -2
- package/dist/index.cjs424.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.es423.js +0 -53
- package/dist/index.es423.js.map +0 -1
- package/dist/index.es424.js +0 -56
- package/dist/index.es424.js.map +0 -1
- package/dist/index.es428.js +0 -14
- package/dist/index.es428.js.map +0 -1
- package/dist/index.es429.js +0 -49
- package/dist/index.es429.js.map +0 -1
- package/dist/index.es430.js +0 -11
- package/dist/index.es430.js.map +0 -1
- /package/dist/components/ui/{ConsentModal/ConsentModalFooter/ConsentModalFooter.css → DoctorModal/DoctorModalFooter/DoctorModalFooter.css} +0 -0
@@ -1 +1 @@
|
|
1
|
-
.ui-fascicolo-label{background-color:var(--background-emphasis);color:var(--white);border-radius:4px;padding:4px 12px;text-transform:uppercase}.fs-9{font-size:.625rem;line-height:.75rem}.fw-normal{font-weight:300}.fw-regular{font-weight:400}.fw-semibold{font-weight:600}.fw-bold{font-weight:700}.text-decoration-underline{text-decoration:underline}.text-decoration-none{text-decoration:none}.text-decoration-line-through{text-decoration:line-through}.text-align-center{text-align:center}.text-align-left{text-align:left}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border:0;white-space:nowrap}.hover-underline:hover{text-decoration:underline}.hover-underline_dark:hover{text-decoration:underline solid var(--slate-20)}.revised-title{color:var(--slate-20);font-family:Titillium Web;font-size:40px!important;font-style:normal!important;font-weight:600!important;line-height:48px!important}@media (max-width: 767px){.revised-title{color:var(--slate-28);font-family:Titillium Web;font-size:28px!important;font-style:normal!important;font-weight:700!important;line-height:32px!important}}.revised-subtitle{color:var(--slate-28);font-family:Titillium Web;font-size:24px!important;font-style:normal!important;font-weight:400!important;line-height:32px!important}@media (max-width: 767px){.revised-subtitle{color:var(--slate-28);font-family:Titillium Web;font-size:18px!important;font-style:normal!important;font-weight:400!important;line-height:24px!important}}.fs-0{font-size:3rem;line-height:3.5rem}@media (min-width: 576px){.xs-fs-0{font-size:3rem!important;line-height:3.5rem!important}}@media (min-width: 768px){.sm-fs-0{font-size:3rem!important;line-height:3.5rem!important}}@media (min-width: 992px){.md-fs-0{font-size:3rem!important;line-height:3.5rem!important}}@media (min-width: 1200px){.lg-fs-0{font-size:3rem!important;line-height:3.5rem!important}}@media (min-width: 1400px){.xl-fs-0{font-size:3rem!important;line-height:3.5rem!important}}.fs-1{font-size:2.5rem;line-height:3rem}@media (min-width: 576px){.xs-fs-1{font-size:2.5rem!important;line-height:3rem!important}}@media (min-width: 768px){.sm-fs-1{font-size:2.5rem!important;line-height:3rem!important}}@media (min-width: 992px){.md-fs-1{font-size:2.5rem!important;line-height:3rem!important}}@media (min-width: 1200px){.lg-fs-1{font-size:2.5rem!important;line-height:3rem!important}}@media (min-width: 1400px){.xl-fs-1{font-size:2.5rem!important;line-height:3rem!important}}.fs-2{font-size:2rem;line-height:2.5rem}@media (min-width: 576px){.xs-fs-2{font-size:2rem!important;line-height:2.5rem!important}}@media (min-width: 768px){.sm-fs-2{font-size:2rem!important;line-height:2.5rem!important}}@media (min-width: 992px){.md-fs-2{font-size:2rem!important;line-height:2.5rem!important}}@media (min-width: 1200px){.lg-fs-2{font-size:2rem!important;line-height:2.5rem!important}}@media (min-width: 1400px){.xl-fs-2{font-size:2rem!important;line-height:2.5rem!important}}.fs-3{font-size:1.75rem;line-height:2rem}@media (min-width: 576px){.xs-fs-3{font-size:1.75rem!important;line-height:2rem!important}}@media (min-width: 768px){.sm-fs-3{font-size:1.75rem!important;line-height:2rem!important}}@media (min-width: 992px){.md-fs-3{font-size:1.75rem!important;line-height:2rem!important}}@media (min-width: 1200px){.lg-fs-3{font-size:1.75rem!important;line-height:2rem!important}}@media (min-width: 1400px){.xl-fs-3{font-size:1.75rem!important;line-height:2rem!important}}.fs-4{font-size:1.5rem;line-height:1.75rem}@media (min-width: 576px){.xs-fs-4{font-size:1.5rem!important;line-height:1.75rem!important}}@media (min-width: 768px){.sm-fs-4{font-size:1.5rem!important;line-height:1.75rem!important}}@media (min-width: 992px){.md-fs-4{font-size:1.5rem!important;line-height:1.75rem!important}}@media (min-width: 1200px){.lg-fs-4{font-size:1.5rem!important;line-height:1.75rem!important}}@media (min-width: 1400px){.xl-fs-4{font-size:1.5rem!important;line-height:1.75rem!important}}.fs-5{font-size:1.25rem;line-height:1.5rem}@media (min-width: 576px){.xs-fs-5{font-size:1.25rem!important;line-height:1.5rem!important}}@media (min-width: 768px){.sm-fs-5{font-size:1.25rem!important;line-height:1.5rem!important}}@media (min-width: 992px){.md-fs-5{font-size:1.25rem!important;line-height:1.5rem!important}}@media (min-width: 1200px){.lg-fs-5{font-size:1.25rem!important;line-height:1.5rem!important}}@media (min-width: 1400px){.xl-fs-5{font-size:1.25rem!important;line-height:1.5rem!important}}.fs-6{font-size:1rem;line-height:1.5rem}@media (min-width: 576px){.xs-fs-6{font-size:1rem!important;line-height:1.5rem!important}}@media (min-width: 768px){.sm-fs-6{font-size:1rem!important;line-height:1.5rem!important}}@media (min-width: 992px){.md-fs-6{font-size:1rem!important;line-height:1.5rem!important}}@media (min-width: 1200px){.lg-fs-6{font-size:1rem!important;line-height:1.5rem!important}}@media (min-width: 1400px){.xl-fs-6{font-size:1rem!important;line-height:1.5rem!important}}.fs-7{font-size:.875rem;line-height:1rem}@media (min-width: 576px){.xs-fs-7{font-size:.875rem!important;line-height:1rem!important}}@media (min-width: 768px){.sm-fs-7{font-size:.875rem!important;line-height:1rem!important}}@media (min-width: 992px){.md-fs-7{font-size:.875rem!important;line-height:1rem!important}}@media (min-width: 1200px){.lg-fs-7{font-size:.875rem!important;line-height:1rem!important}}@media (min-width: 1400px){.xl-fs-7{font-size:.875rem!important;line-height:1rem!important}}.fs-8{font-size:.75rem;line-height:.875rem}@media (min-width: 576px){.xs-fs-8{font-size:.75rem!important;line-height:.875rem!important}}@media (min-width: 768px){.sm-fs-8{font-size:.75rem!important;line-height:.875rem!important}}@media (min-width: 992px){.md-fs-8{font-size:.75rem!important;line-height:.875rem!important}}@media (min-width: 1200px){.lg-fs-8{font-size:.75rem!important;line-height:.875rem!important}}@media (min-width: 1400px){.xl-fs-8{font-size:.75rem!important;line-height:.875rem!important}}.fs-custom{font-size:1.125rem;line-height:1.68rem}@media (min-width: 576px){.xs-fs-custom{font-size:1.125rem!important;line-height:1.68rem!important}}@media (min-width: 768px){.sm-fs-custom{font-size:1.125rem!important;line-height:1.68rem!important}}@media (min-width: 992px){.md-fs-custom{font-size:1.125rem!important;line-height:1.68rem!important}}@media (min-width: 1200px){.lg-fs-custom{font-size:1.125rem!important;line-height:1.68rem!important}}@media (min-width: 1400px){.xl-fs-custom{font-size:1.125rem!important;line-height:1.68rem!important}}.fs-custom-2{font-size:1.5rem;line-height:2rem}@media (min-width: 576px){.xs-fs-custom-2{font-size:1.5rem!important;line-height:2rem!important}}@media (min-width: 768px){.sm-fs-custom-2{font-size:1.5rem!important;line-height:2rem!important}}@media (min-width: 992px){.md-fs-custom-2{font-size:1.5rem!important;line-height:2rem!important}}@media (min-width: 1200px){.lg-fs-custom-2{font-size:1.5rem!important;line-height:2rem!important}}@media (min-width: 1400px){.xl-fs-custom-2{font-size:1.5rem!important;line-height:2rem!important}}
|
1
|
+
.ui-fascicolo-label{background-color:var(--background-emphasis);color:var(--white);border-radius:4px;padding:4px 12px;text-transform:uppercase}.fs-9{font-size:.625rem;line-height:.75rem}.fw-normal{font-weight:300}.fw-regular{font-weight:400}.fw-semibold{font-weight:600}.fw-bold{font-weight:700}.text-decoration-underline{text-decoration:underline}.text-decoration-none{text-decoration:none}.text-decoration-line-through{text-decoration:line-through}.text-align-center{text-align:center}.text-align-left{text-align:left}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border:0;white-space:nowrap}.hover-underline:hover{text-decoration:underline}.hover-underline_dark:hover{text-decoration:underline solid var(--slate-20)}.text-left,.text-right{text-align:left}.revised-title{color:var(--slate-20);font-family:Titillium Web;font-size:40px!important;font-style:normal!important;font-weight:600!important;line-height:48px!important}@media (max-width: 767px){.revised-title{color:var(--slate-28);font-family:Titillium Web;font-size:28px!important;font-style:normal!important;font-weight:700!important;line-height:32px!important}}.revised-subtitle{color:var(--slate-28);font-family:Titillium Web;font-size:24px!important;font-style:normal!important;font-weight:400!important;line-height:32px!important}@media (max-width: 767px){.revised-subtitle{color:var(--slate-28);font-family:Titillium Web;font-size:18px!important;font-style:normal!important;font-weight:400!important;line-height:24px!important}}.fs-0{font-size:3rem;line-height:3.5rem}@media (min-width: 576px){.xs-fs-0{font-size:3rem!important;line-height:3.5rem!important}}@media (min-width: 768px){.sm-fs-0{font-size:3rem!important;line-height:3.5rem!important}}@media (min-width: 992px){.md-fs-0{font-size:3rem!important;line-height:3.5rem!important}}@media (min-width: 1200px){.lg-fs-0{font-size:3rem!important;line-height:3.5rem!important}}@media (min-width: 1400px){.xl-fs-0{font-size:3rem!important;line-height:3.5rem!important}}.fs-1{font-size:2.5rem;line-height:3rem}@media (min-width: 576px){.xs-fs-1{font-size:2.5rem!important;line-height:3rem!important}}@media (min-width: 768px){.sm-fs-1{font-size:2.5rem!important;line-height:3rem!important}}@media (min-width: 992px){.md-fs-1{font-size:2.5rem!important;line-height:3rem!important}}@media (min-width: 1200px){.lg-fs-1{font-size:2.5rem!important;line-height:3rem!important}}@media (min-width: 1400px){.xl-fs-1{font-size:2.5rem!important;line-height:3rem!important}}.fs-2{font-size:2rem;line-height:2.5rem}@media (min-width: 576px){.xs-fs-2{font-size:2rem!important;line-height:2.5rem!important}}@media (min-width: 768px){.sm-fs-2{font-size:2rem!important;line-height:2.5rem!important}}@media (min-width: 992px){.md-fs-2{font-size:2rem!important;line-height:2.5rem!important}}@media (min-width: 1200px){.lg-fs-2{font-size:2rem!important;line-height:2.5rem!important}}@media (min-width: 1400px){.xl-fs-2{font-size:2rem!important;line-height:2.5rem!important}}.fs-3{font-size:1.75rem;line-height:2rem}@media (min-width: 576px){.xs-fs-3{font-size:1.75rem!important;line-height:2rem!important}}@media (min-width: 768px){.sm-fs-3{font-size:1.75rem!important;line-height:2rem!important}}@media (min-width: 992px){.md-fs-3{font-size:1.75rem!important;line-height:2rem!important}}@media (min-width: 1200px){.lg-fs-3{font-size:1.75rem!important;line-height:2rem!important}}@media (min-width: 1400px){.xl-fs-3{font-size:1.75rem!important;line-height:2rem!important}}.fs-4{font-size:1.5rem;line-height:1.75rem}@media (min-width: 576px){.xs-fs-4{font-size:1.5rem!important;line-height:1.75rem!important}}@media (min-width: 768px){.sm-fs-4{font-size:1.5rem!important;line-height:1.75rem!important}}@media (min-width: 992px){.md-fs-4{font-size:1.5rem!important;line-height:1.75rem!important}}@media (min-width: 1200px){.lg-fs-4{font-size:1.5rem!important;line-height:1.75rem!important}}@media (min-width: 1400px){.xl-fs-4{font-size:1.5rem!important;line-height:1.75rem!important}}.fs-5{font-size:1.25rem;line-height:1.5rem}@media (min-width: 576px){.xs-fs-5{font-size:1.25rem!important;line-height:1.5rem!important}}@media (min-width: 768px){.sm-fs-5{font-size:1.25rem!important;line-height:1.5rem!important}}@media (min-width: 992px){.md-fs-5{font-size:1.25rem!important;line-height:1.5rem!important}}@media (min-width: 1200px){.lg-fs-5{font-size:1.25rem!important;line-height:1.5rem!important}}@media (min-width: 1400px){.xl-fs-5{font-size:1.25rem!important;line-height:1.5rem!important}}.fs-6{font-size:1rem;line-height:1.5rem}@media (min-width: 576px){.xs-fs-6{font-size:1rem!important;line-height:1.5rem!important}}@media (min-width: 768px){.sm-fs-6{font-size:1rem!important;line-height:1.5rem!important}}@media (min-width: 992px){.md-fs-6{font-size:1rem!important;line-height:1.5rem!important}}@media (min-width: 1200px){.lg-fs-6{font-size:1rem!important;line-height:1.5rem!important}}@media (min-width: 1400px){.xl-fs-6{font-size:1rem!important;line-height:1.5rem!important}}.fs-7{font-size:.875rem;line-height:1rem}@media (min-width: 576px){.xs-fs-7{font-size:.875rem!important;line-height:1rem!important}}@media (min-width: 768px){.sm-fs-7{font-size:.875rem!important;line-height:1rem!important}}@media (min-width: 992px){.md-fs-7{font-size:.875rem!important;line-height:1rem!important}}@media (min-width: 1200px){.lg-fs-7{font-size:.875rem!important;line-height:1rem!important}}@media (min-width: 1400px){.xl-fs-7{font-size:.875rem!important;line-height:1rem!important}}.fs-8{font-size:.75rem;line-height:.875rem}@media (min-width: 576px){.xs-fs-8{font-size:.75rem!important;line-height:.875rem!important}}@media (min-width: 768px){.sm-fs-8{font-size:.75rem!important;line-height:.875rem!important}}@media (min-width: 992px){.md-fs-8{font-size:.75rem!important;line-height:.875rem!important}}@media (min-width: 1200px){.lg-fs-8{font-size:.75rem!important;line-height:.875rem!important}}@media (min-width: 1400px){.xl-fs-8{font-size:.75rem!important;line-height:.875rem!important}}.fs-custom{font-size:1.125rem;line-height:1.68rem}@media (min-width: 576px){.xs-fs-custom{font-size:1.125rem!important;line-height:1.68rem!important}}@media (min-width: 768px){.sm-fs-custom{font-size:1.125rem!important;line-height:1.68rem!important}}@media (min-width: 992px){.md-fs-custom{font-size:1.125rem!important;line-height:1.68rem!important}}@media (min-width: 1200px){.lg-fs-custom{font-size:1.125rem!important;line-height:1.68rem!important}}@media (min-width: 1400px){.xl-fs-custom{font-size:1.125rem!important;line-height:1.68rem!important}}.fs-custom-2{font-size:1.5rem;line-height:2rem}@media (min-width: 576px){.xs-fs-custom-2{font-size:1.5rem!important;line-height:2rem!important}}@media (min-width: 768px){.sm-fs-custom-2{font-size:1.5rem!important;line-height:2rem!important}}@media (min-width: 992px){.md-fs-custom-2{font-size:1.5rem!important;line-height:2rem!important}}@media (min-width: 1200px){.lg-fs-custom-2{font-size:1.5rem!important;line-height:2rem!important}}@media (min-width: 1400px){.xl-fs-custom-2{font-size:1.5rem!important;line-height:2rem!important}}
|
package/package.json
CHANGED
package/dist/index.cjs423.js
DELETED
@@ -1,2 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var k=function(r){if(typeof document>"u")return null;var u=Array.isArray(r)?r[0]:r;return u.ownerDocument.body},f=new WeakMap,v=new WeakMap,p={},h=0,b=function(r){return r&&(r.host||b(r.parentNode))},O=function(r,u){return u.map(function(t){if(r.contains(t))return t;var n=b(t);return n&&r.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",r,". Doing nothing"),null)}).filter(function(t){return!!t})},D=function(r,u,t,n){var i=O(u,Array.isArray(r)?r:[r]);p[t]||(p[t]=new WeakMap);var o=p[t],l=[],s=new Set,S=new Set(i),y=function(e){!e||s.has(e)||(s.add(e),y(e.parentNode))};i.forEach(y);var A=function(e){!e||S.has(e)||Array.prototype.forEach.call(e.children,function(a){if(s.has(a))A(a);else try{var c=a.getAttribute(n),d=c!==null&&c!=="false",w=(f.get(a)||0)+1,M=(o.get(a)||0)+1;f.set(a,w),o.set(a,M),l.push(a),w===1&&d&&v.set(a,!0),M===1&&a.setAttribute(t,"true"),d||a.setAttribute(n,"true")}catch(W){console.error("aria-hidden: cannot operate on ",a,W)}})};return A(u),s.clear(),h++,function(){l.forEach(function(e){var a=f.get(e)-1,c=o.get(e)-1;f.set(e,a),o.set(e,c),a||(v.has(e)||e.removeAttribute(n),v.delete(e)),c||e.removeAttribute(t)}),h--,h||(f=new WeakMap,f=new WeakMap,v=new WeakMap,p={})}},E=function(r,u,t){t===void 0&&(t="data-aria-hidden");var n=Array.from(Array.isArray(r)?r:[r]),i=k(r);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live]"))),D(n,i,t,"aria-hidden")):function(){return null}};exports.hideOthers=E;
|
2
|
-
//# sourceMappingURL=index.cjs423.js.map
|
package/dist/index.cjs423.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.cjs423.js","sources":["../node_modules/aria-hidden/dist/es2015/index.js"],"sourcesContent":["var getDefaultParent = function (originalTarget) {\n if (typeof document === 'undefined') {\n return null;\n }\n var sampleTarget = Array.isArray(originalTarget) ? originalTarget[0] : originalTarget;\n return sampleTarget.ownerDocument.body;\n};\nvar counterMap = new WeakMap();\nvar uncontrolledNodes = new WeakMap();\nvar markerMap = {};\nvar lockCount = 0;\nvar unwrapHost = function (node) {\n return node && (node.host || unwrapHost(node.parentNode));\n};\nvar correctTargets = function (parent, targets) {\n return targets\n .map(function (target) {\n if (parent.contains(target)) {\n return target;\n }\n var correctedTarget = unwrapHost(target);\n if (correctedTarget && parent.contains(correctedTarget)) {\n return correctedTarget;\n }\n console.error('aria-hidden', target, 'in not contained inside', parent, '. Doing nothing');\n return null;\n })\n .filter(function (x) { return Boolean(x); });\n};\n/**\n * Marks everything except given node(or nodes) as aria-hidden\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @param {String} [controlAttribute] - html Attribute to control\n * @return {Undo} undo command\n */\nvar applyAttributeToOthers = function (originalTarget, parentNode, markerName, controlAttribute) {\n var targets = correctTargets(parentNode, Array.isArray(originalTarget) ? originalTarget : [originalTarget]);\n if (!markerMap[markerName]) {\n markerMap[markerName] = new WeakMap();\n }\n var markerCounter = markerMap[markerName];\n var hiddenNodes = [];\n var elementsToKeep = new Set();\n var elementsToStop = new Set(targets);\n var keep = function (el) {\n if (!el || elementsToKeep.has(el)) {\n return;\n }\n elementsToKeep.add(el);\n keep(el.parentNode);\n };\n targets.forEach(keep);\n var deep = function (parent) {\n if (!parent || elementsToStop.has(parent)) {\n return;\n }\n Array.prototype.forEach.call(parent.children, function (node) {\n if (elementsToKeep.has(node)) {\n deep(node);\n }\n else {\n try {\n var attr = node.getAttribute(controlAttribute);\n var alreadyHidden = attr !== null && attr !== 'false';\n var counterValue = (counterMap.get(node) || 0) + 1;\n var markerValue = (markerCounter.get(node) || 0) + 1;\n counterMap.set(node, counterValue);\n markerCounter.set(node, markerValue);\n hiddenNodes.push(node);\n if (counterValue === 1 && alreadyHidden) {\n uncontrolledNodes.set(node, true);\n }\n if (markerValue === 1) {\n node.setAttribute(markerName, 'true');\n }\n if (!alreadyHidden) {\n node.setAttribute(controlAttribute, 'true');\n }\n }\n catch (e) {\n console.error('aria-hidden: cannot operate on ', node, e);\n }\n }\n });\n };\n deep(parentNode);\n elementsToKeep.clear();\n lockCount++;\n return function () {\n hiddenNodes.forEach(function (node) {\n var counterValue = counterMap.get(node) - 1;\n var markerValue = markerCounter.get(node) - 1;\n counterMap.set(node, counterValue);\n markerCounter.set(node, markerValue);\n if (!counterValue) {\n if (!uncontrolledNodes.has(node)) {\n node.removeAttribute(controlAttribute);\n }\n uncontrolledNodes.delete(node);\n }\n if (!markerValue) {\n node.removeAttribute(markerName);\n }\n });\n lockCount--;\n if (!lockCount) {\n // clear\n counterMap = new WeakMap();\n counterMap = new WeakMap();\n uncontrolledNodes = new WeakMap();\n markerMap = {};\n }\n };\n};\n/**\n * Marks everything except given node(or nodes) as aria-hidden\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @return {Undo} undo command\n */\nexport var hideOthers = function (originalTarget, parentNode, markerName) {\n if (markerName === void 0) { markerName = 'data-aria-hidden'; }\n var targets = Array.from(Array.isArray(originalTarget) ? originalTarget : [originalTarget]);\n var activeParentNode = parentNode || getDefaultParent(originalTarget);\n if (!activeParentNode) {\n return function () { return null; };\n }\n // we should not hide ariaLive elements - https://github.com/theKashey/aria-hidden/issues/10\n targets.push.apply(targets, Array.from(activeParentNode.querySelectorAll('[aria-live]')));\n return applyAttributeToOthers(targets, activeParentNode, markerName, 'aria-hidden');\n};\n/**\n * Marks everything except given node(or nodes) as inert\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @return {Undo} undo command\n */\nexport var inertOthers = function (originalTarget, parentNode, markerName) {\n if (markerName === void 0) { markerName = 'data-inert-ed'; }\n var activeParentNode = parentNode || getDefaultParent(originalTarget);\n if (!activeParentNode) {\n return function () { return null; };\n }\n return applyAttributeToOthers(originalTarget, activeParentNode, markerName, 'inert');\n};\n/**\n * @returns if current browser supports inert\n */\nexport var supportsInert = function () {\n return typeof HTMLElement !== 'undefined' && HTMLElement.prototype.hasOwnProperty('inert');\n};\n/**\n * Automatic function to \"suppress\" DOM elements - _hide_ or _inert_ in the best possible way\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @return {Undo} undo command\n */\nexport var suppressOthers = function (originalTarget, parentNode, markerName) {\n if (markerName === void 0) { markerName = 'data-suppressed'; }\n return (supportsInert() ? inertOthers : hideOthers)(originalTarget, parentNode, markerName);\n};\n"],"names":["getDefaultParent","originalTarget","sampleTarget","counterMap","uncontrolledNodes","markerMap","lockCount","unwrapHost","node","correctTargets","parent","targets","target","correctedTarget","x","applyAttributeToOthers","parentNode","markerName","controlAttribute","markerCounter","hiddenNodes","elementsToKeep","elementsToStop","keep","el","deep","attr","alreadyHidden","counterValue","markerValue","e","hideOthers","activeParentNode"],"mappings":"gFAAA,IAAIA,EAAmB,SAAUC,EAAgB,CAC7C,GAAI,OAAO,SAAa,IACpB,OAAO,KAEX,IAAIC,EAAe,MAAM,QAAQD,CAAc,EAAIA,EAAe,CAAC,EAAIA,EACvE,OAAOC,EAAa,cAAc,IACtC,EACIC,EAAa,IAAI,QACjBC,EAAoB,IAAI,QACxBC,EAAY,CAAE,EACdC,EAAY,EACZC,EAAa,SAAUC,EAAM,CAC7B,OAAOA,IAASA,EAAK,MAAQD,EAAWC,EAAK,UAAU,EAC3D,EACIC,EAAi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:"Module"});const y=require("react"),g=require("./index.cjs397.js"),u=require("./index.cjs216.js");function S(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const l=S(y);function b(e){const t=x(e),n=l.forwardRef((r,o)=>{const{children:i,...c}=r,s=l.Children.toArray(i),f=s.find(E);if(f){const a=f.props.children,m=s.map(p=>p===f?l.Children.count(a)>1?l.Children.only(null):l.isValidElement(a)?a.props.children:null:p);return u.jsxRuntimeExports.jsx(t,{...c,ref:o,children:l.isValidElement(a)?l.cloneElement(a,void 0,m):null})}return u.jsxRuntimeExports.jsx(t,{...c,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function x(e){const t=l.forwardRef((n,r)=>{const{children:o,...i}=n;if(l.isValidElement(o)){const c=O(o),s=R(i,o.props);return o.type!==l.Fragment&&(s.ref=r?g.composeRefs(r,c):c),l.cloneElement(o,s)}return l.Children.count(o)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var d=Symbol("radix.slottable");function j(e){const t=({children:n})=>u.jsxRuntimeExports.jsx(u.jsxRuntimeExports.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=d,t}function E(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===d}function R(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{i(...s),o(...s)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function O(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}exports.createSlot=b;exports.createSlottable=j;
|
2
|
-
//# sourceMappingURL=index.cjs424.js.map
|
package/dist/index.cjs424.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.cjs424.js","sources":["../node_modules/@radix-ui/react-slot/dist/index.mjs"],"sourcesContent":["// packages/react/slot/src/slot.tsx\nimport * as React from \"react\";\nimport { composeRefs } from \"@radix-ui/react-compose-refs\";\nimport { Fragment as Fragment2, jsx } from \"react/jsx-runtime\";\n// @__NO_SIDE_EFFECTS__\nfunction createSlot(ownerName) {\n const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);\n const Slot2 = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n const childrenArray = React.Children.toArray(children);\n const slottable = childrenArray.find(isSlottable);\n if (slottable) {\n const newElement = slottable.props.children;\n const newChildren = childrenArray.map((child) => {\n if (child === slottable) {\n if (React.Children.count(newElement) > 1) return React.Children.only(null);\n return React.isValidElement(newElement) ? newElement.props.children : null;\n } else {\n return child;\n }\n });\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: React.isValidElement(newElement) ? React.cloneElement(newElement, void 0, newChildren) : null });\n }\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });\n });\n Slot2.displayName = `${ownerName}.Slot`;\n return Slot2;\n}\nvar Slot = /* @__PURE__ */ createSlot(\"Slot\");\n// @__NO_SIDE_EFFECTS__\nfunction createSlotClone(ownerName) {\n const SlotClone = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n if (React.isValidElement(children)) {\n const childrenRef = getElementRef(children);\n const props2 = mergeProps(slotProps, children.props);\n if (children.type !== React.Fragment) {\n props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;\n }\n return React.cloneElement(children, props2);\n }\n return React.Children.count(children) > 1 ? React.Children.only(null) : null;\n });\n SlotClone.displayName = `${ownerName}.SlotClone`;\n return SlotClone;\n}\nvar SLOTTABLE_IDENTIFIER = Symbol(\"radix.slottable\");\n// @__NO_SIDE_EFFECTS__\nfunction createSlottable(ownerName) {\n const Slottable2 = ({ children }) => {\n return /* @__PURE__ */ jsx(Fragment2, { children });\n };\n Slottable2.displayName = `${ownerName}.Slottable`;\n Slottable2.__radixId = SLOTTABLE_IDENTIFIER;\n return Slottable2;\n}\nvar Slottable = /* @__PURE__ */ createSlottable(\"Slottable\");\nfunction isSlottable(child) {\n return React.isValidElement(child) && typeof child.type === \"function\" && \"__radixId\" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;\n}\nfunction mergeProps(slotProps, childProps) {\n const overrideProps = { ...childProps };\n for (const propName in childProps) {\n const slotPropValue = slotProps[propName];\n const childPropValue = childProps[propName];\n const isHandler = /^on[A-Z]/.test(propName);\n if (isHandler) {\n if (slotPropValue && childPropValue) {\n overrideProps[propName] = (...args) => {\n childPropValue(...args);\n slotPropValue(...args);\n };\n } else if (slotPropValue) {\n overrideProps[propName] = slotPropValue;\n }\n } else if (propName === \"style\") {\n overrideProps[propName] = { ...slotPropValue, ...childPropValue };\n } else if (propName === \"className\") {\n overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(\" \");\n }\n }\n return { ...slotProps, ...overrideProps };\n}\nfunction getElementRef(element) {\n let getter = Object.getOwnPropertyDescriptor(element.props, \"ref\")?.get;\n let mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.ref;\n }\n getter = Object.getOwnPropertyDescriptor(element, \"ref\")?.get;\n mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.props.ref;\n }\n return element.props.ref || element.ref;\n}\nexport {\n Slot as Root,\n Slot,\n Slottable,\n createSlot,\n createSlottable\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["createSlot","ownerName","SlotClone","createSlotClone","Slot2","React","props","forwardedRef","children","slotProps","childrenArray","slottable","isSlottable","newElement","newChildren","child","jsx","childrenRef","getElementRef","props2","mergeProps","composeRefs","SLOTTABLE_IDENTIFIER","createSlottable","Slottable2","Fragment2","childProps","overrideProps","propName","slotPropValue","childPropValue","args","element","getter","_a","mayWarn","_b"],"mappings":"icAKA,SAASA,EAAWC,EAAW,CAC7B,MAAMC,EAA4BC,EAAgBF,CAAS,EACrDG,EAAQC,EAAM,WAAW,CAACC,EAAOC,IAAiB,CACtD,KAAM,CAAE,SAAAC,EAAU,GAAGC,CAAS,EAAKH,EAC7BI,EAAgBL,EAAM,SAAS,QAAQG,CAAQ,EAC/CG,EAAYD,EAAc,KAAKE,CAAW,EAChD,GAAID,EAAW,CACb,MAAME,EAAaF,EAAU,MAAM,SAC7BG,EAAcJ,EAAc,IAAKK,GACjCA,IAAUJ,EACRN,EAAM,SAAS,MAAMQ,CAAU,EAAI,EAAUR,EAAM,SAAS,KAAK,IAAI,EAClEA,EAAM,eAAeQ,CAAU,EAAIA,EAAW,MAAM,SAAW,KAE/DE,CAEV,EACD,OAAuBC,EAAAA,kBAAAA,IAAId,EAAW,CAAE,GAAGO,EAAW,IAAKF,EAAc,SAAUF,EAAM,eAAeQ,CAAU,EAAIR,EAAM,aAAaQ,EAAY,OAAQC,CAAW,EAAI,KAAM,CACxL,CACI,OAAuBE,EAAAA,kBAAAA,IAAId,EAAW,CAAE,GAAGO,EAAW,IAAKF,EAAc,SAAAC,EAAU,CACvF,CAAG,EACD,OAAAJ,EAAM,YAAc,GAAGH,CAAS,QACzBG,CACT,CAGA,SAASD,EAAgBF,EAAW,CAClC,MAAMC,EAAYG,EAAM,WAAW,CAACC,EAAOC,IAAiB,CAC1D,KAAM,CAAE,SAAAC,EAAU,GAAGC,CAAS,EAAKH,EACnC,GAAID,EAAM,eAAeG,CAAQ,EAAG,CAClC,MAAMS,EAAcC,EAAcV,CAAQ,EACpCW,EAASC,EAAWX,EAAWD,EAAS,KAAK,EACnD,OAAIA,EAAS,OA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AS,SAC9B,IAAIC,GAASC,EAAA,OAAO,yBAAyBF,EAAQ,MAAO,KAAK,IAApD,YAAAE,EAAuD,IAChEC,EAAUF,GAAU,mBAAoBA,GAAUA,EAAO,eAC7D,OAAIE,EACKH,EAAQ,KAEjBC,GAASG,EAAA,OAAO,yBAAyBJ,EAAS,KAAK,IAA9C,YAAAI,EAAiD,IAC1DD,EAAUF,GAAU,mBAAoBA,GAAUA,EAAO,eACrDE,EACKH,EAAQ,MAAM,IAEhBA,EAAQ,MAAM,KAAOA,EAAQ,IACtC","x_google_ignoreList":[0]}
|
package/dist/index.cjs428.js
DELETED
@@ -1,2 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react");function o(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const u=o(c);function s(e){const t=u.useRef(e);return u.useEffect(()=>{t.current=e}),u.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}exports.useCallbackRef=s;
|
2
|
-
//# sourceMappingURL=index.cjs428.js.map
|
package/dist/index.cjs428.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.cjs428.js","sources":["../node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs"],"sourcesContent":["// packages/react/use-callback-ref/src/use-callback-ref.tsx\nimport * as React from \"react\";\nfunction useCallbackRef(callback) {\n const callbackRef = React.useRef(callback);\n React.useEffect(() => {\n callbackRef.current = callback;\n });\n return React.useMemo(() => (...args) => callbackRef.current?.(...args), []);\n}\nexport {\n useCallbackRef\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useCallbackRef","callback","callbackRef","React","args","_a"],"mappings":"mYAEA,SAASA,EAAeC,EAAU,CAChC,MAAMC,EAAcC,EAAM,OAAOF,CAAQ,EACzCE,OAAAA,EAAM,UAAU,IAAM,CACpBD,EAAY,QAAUD,CAC1B,CAAG,EACME,EAAM,QAAQ,IAAM,IAAIC,WAAS,OAAAC,EAAAH,EAAY,UAAZ,YAAAG,EAAA,KAAAH,EAAsB,GAAGE,IAAO,EAAE,CAC5E","x_google_ignoreList":[0]}
|
package/dist/index.cjs429.js
DELETED
@@ -1,2 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react"),v=require("./index.cjs398.js"),I=require("./index.cjs397.js"),M=require("./index.cjs424.js"),f=require("./index.cjs216.js");function _(s){const u=s+"CollectionProvider",[E,A]=v.createContextScope(u),[N,d]=E(u,{collectionRef:{current:null},itemMap:new Map}),p=c=>{const{scope:e,children:l}=c,t=r.useRef(null),o=r.useRef(new Map).current;return f.jsxRuntimeExports.jsx(N,{scope:e,itemMap:o,collectionRef:t,children:l})};p.displayName=u;const a=s+"CollectionSlot",T=M.createSlot(a),C=r.forwardRef((c,e)=>{const{scope:l,children:t}=c,o=d(a,l),n=I.useComposedRefs(e,o.collectionRef);return f.jsxRuntimeExports.jsx(T,{ref:n,children:t})});C.displayName=a;const m=s+"CollectionItemSlot",x="data-radix-collection-item",j=M.createSlot(m),R=r.forwardRef((c,e)=>{const{scope:l,children:t,...o}=c,n=r.useRef(null),S=I.useComposedRefs(e,n),i=d(m,l);return r.useEffect(()=>(i.itemMap.set(n,{ref:n,...o}),()=>void i.itemMap.delete(n))),f.jsxRuntimeExports.jsx(j,{[x]:"",ref:S,children:t})});R.displayName=m;function y(c){const e=d(s+"CollectionConsumer",c);return r.useCallback(()=>{const t=e.collectionRef.current;if(!t)return[];const o=Array.from(t.querySelectorAll(`[${x}]`));return Array.from(e.itemMap.values()).sort((i,O)=>o.indexOf(i.ref.current)-o.indexOf(O.ref.current))},[e.collectionRef,e.itemMap])}return[{Provider:p,Slot:C,ItemSlot:R},y,A]}exports.createCollection=_;
|
2
|
-
//# sourceMappingURL=index.cjs429.js.map
|
package/dist/index.cjs429.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.cjs429.js","sources":["../node_modules/@radix-ui/react-collection/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/collection/src/collection.tsx\nimport React from \"react\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createSlot } from \"@radix-ui/react-slot\";\nimport { jsx } from \"react/jsx-runtime\";\nfunction createCollection(name) {\n const PROVIDER_NAME = name + \"CollectionProvider\";\n const [createCollectionContext, createCollectionScope] = createContextScope(PROVIDER_NAME);\n const [CollectionProviderImpl, useCollectionContext] = createCollectionContext(\n PROVIDER_NAME,\n { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }\n );\n const CollectionProvider = (props) => {\n const { scope, children } = props;\n const ref = React.useRef(null);\n const itemMap = React.useRef(/* @__PURE__ */ new Map()).current;\n return /* @__PURE__ */ jsx(CollectionProviderImpl, { scope, itemMap, collectionRef: ref, children });\n };\n CollectionProvider.displayName = PROVIDER_NAME;\n const COLLECTION_SLOT_NAME = name + \"CollectionSlot\";\n const CollectionSlotImpl = createSlot(COLLECTION_SLOT_NAME);\n const CollectionSlot = React.forwardRef(\n (props, forwardedRef) => {\n const { scope, children } = props;\n const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);\n const composedRefs = useComposedRefs(forwardedRef, context.collectionRef);\n return /* @__PURE__ */ jsx(CollectionSlotImpl, { ref: composedRefs, children });\n }\n );\n CollectionSlot.displayName = COLLECTION_SLOT_NAME;\n const ITEM_SLOT_NAME = name + \"CollectionItemSlot\";\n const ITEM_DATA_ATTR = \"data-radix-collection-item\";\n const CollectionItemSlotImpl = createSlot(ITEM_SLOT_NAME);\n const CollectionItemSlot = React.forwardRef(\n (props, forwardedRef) => {\n const { scope, children, ...itemData } = props;\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n const context = useCollectionContext(ITEM_SLOT_NAME, scope);\n React.useEffect(() => {\n context.itemMap.set(ref, { ref, ...itemData });\n return () => void context.itemMap.delete(ref);\n });\n return /* @__PURE__ */ jsx(CollectionItemSlotImpl, { ...{ [ITEM_DATA_ATTR]: \"\" }, ref: composedRefs, children });\n }\n );\n CollectionItemSlot.displayName = ITEM_SLOT_NAME;\n function useCollection(scope) {\n const context = useCollectionContext(name + \"CollectionConsumer\", scope);\n const getItems = React.useCallback(() => {\n const collectionNode = context.collectionRef.current;\n if (!collectionNode) return [];\n const orderedNodes = Array.from(collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`));\n const items = Array.from(context.itemMap.values());\n const orderedItems = items.sort(\n (a, b) => orderedNodes.indexOf(a.ref.current) - orderedNodes.indexOf(b.ref.current)\n );\n return orderedItems;\n }, [context.collectionRef, context.itemMap]);\n return getItems;\n }\n return [\n { Provider: CollectionProvider, Slot: CollectionSlot, ItemSlot: CollectionItemSlot },\n useCollection,\n createCollectionScope\n ];\n}\nexport {\n createCollection\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["createCollection","name","PROVIDER_NAME","createCollectionContext","createCollectionScope","createContextScope","CollectionProviderImpl","useCollectionContext","CollectionProvider","props","scope","children","ref","React","itemMap","jsx","COLLECTION_SLOT_NAME","CollectionSlotImpl","createSlot","CollectionSlot","forwardedRef","context","composedRefs","useComposedRefs","ITEM_SLOT_NAME","ITEM_DATA_ATTR","CollectionItemSlotImpl","CollectionItemSlot","itemData","useCollection","collectionNode","orderedNodes","a","b"],"mappings":"qOAQA,SAASA,EAAiBC,EAAM,CAC9B,MAAMC,EAAgBD,EAAO,qBACvB,CAACE,EAAyBC,CAAqB,EAAIC,EAAAA,mBAAmBH,CAAa,EACnF,CAACI,EAAwBC,CAAoB,EAAIJ,EACrDD,EACA,CAAE,cAAe,CAAE,QAAS,IAAI,EAAI,QAAyB,IAAI,GAAK,CACvE,EACKM,EAAsBC,GAAU,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,CAC5B,MAAMW,EAAUd,EAAqBN,EAAO,qBAAsBS,CAAK,EAWvE,OAViBG,EAAM,YAAY,IAAM,CACvC,MAAMiB,EAAiBT,EAAQ,cAAc,QAC7C,GAAI,CAACS,EAAgB,MAAO,CAAE,EAC9B,MAAMC,EAAe,MAAM,KAAKD,EAAe,iBAAiB,IAAIL,CAAc,GAAG,CAAC,EAKtF,OAJc,MAAM,KAAKJ,EAAQ,QAAQ,QAAQ,EACtB,KACzB,CAACW,EAAGC,IAAMF,EAAa,QAAQC,EAAE,IAAI,OAAO,EAAID,EAAa,QAAQE,EAAE,IAAI,OAAO,CACnF,CAEF,EAAE,CAACZ,EAAQ,cAAeA,EAAQ,OAAO,CAAC,CAE/C,CACE,MAAO,CACL,CAAE,SAAUb,EAAoB,KAAMW,EAAgB,SAAUQ,CAAoB,EACpFE,EACAzB,CACD,CACH","x_google_ignoreList":[0]}
|
package/dist/index.cjs430.js
DELETED
@@ -1,2 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react");require("./index.cjs216.js");function i(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const o=i(c);var u=o.createContext(void 0);function a(e){const t=o.useContext(u);return e||t||"ltr"}exports.useDirection=a;
|
2
|
-
//# sourceMappingURL=index.cjs430.js.map
|
package/dist/index.cjs430.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.cjs430.js","sources":["../node_modules/@radix-ui/react-direction/dist/index.mjs"],"sourcesContent":["// packages/react/direction/src/direction.tsx\nimport * as React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\nvar DirectionContext = React.createContext(void 0);\nvar DirectionProvider = (props) => {\n const { dir, children } = props;\n return /* @__PURE__ */ jsx(DirectionContext.Provider, { value: dir, children });\n};\nfunction useDirection(localDir) {\n const globalDir = React.useContext(DirectionContext);\n return localDir || globalDir || \"ltr\";\n}\nvar Provider = DirectionProvider;\nexport {\n DirectionProvider,\n Provider,\n useDirection\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["DirectionContext","React","useDirection","localDir","globalDir"],"mappings":"gaAGA,IAAIA,EAAmBC,EAAM,cAAc,MAAM,EAKjD,SAASC,EAAaC,EAAU,CAC9B,MAAMC,EAAYH,EAAM,WAAWD,CAAgB,EACnD,OAAOG,GAAYC,GAAa,KAClC","x_google_ignoreList":[0]}
|
package/dist/index.es423.js
DELETED
@@ -1,53 +0,0 @@
|
|
1
|
-
var S = function(r) {
|
2
|
-
if (typeof document > "u")
|
3
|
-
return null;
|
4
|
-
var u = Array.isArray(r) ? r[0] : r;
|
5
|
-
return u.ownerDocument.body;
|
6
|
-
}, f = /* @__PURE__ */ new WeakMap(), v = /* @__PURE__ */ new WeakMap(), p = {}, h = 0, W = function(r) {
|
7
|
-
return r && (r.host || W(r.parentNode));
|
8
|
-
}, D = function(r, u) {
|
9
|
-
return u.map(function(e) {
|
10
|
-
if (r.contains(e))
|
11
|
-
return e;
|
12
|
-
var n = W(e);
|
13
|
-
return n && r.contains(n) ? n : (console.error("aria-hidden", e, "in not contained inside", r, ". Doing nothing"), null);
|
14
|
-
}).filter(function(e) {
|
15
|
-
return !!e;
|
16
|
-
});
|
17
|
-
}, E = function(r, u, e, n) {
|
18
|
-
var i = D(u, Array.isArray(r) ? r : [r]);
|
19
|
-
p[e] || (p[e] = /* @__PURE__ */ new WeakMap());
|
20
|
-
var o = p[e], l = [], s = /* @__PURE__ */ new Set(), b = new Set(i), y = function(t) {
|
21
|
-
!t || s.has(t) || (s.add(t), y(t.parentNode));
|
22
|
-
};
|
23
|
-
i.forEach(y);
|
24
|
-
var A = function(t) {
|
25
|
-
!t || b.has(t) || Array.prototype.forEach.call(t.children, function(a) {
|
26
|
-
if (s.has(a))
|
27
|
-
A(a);
|
28
|
-
else
|
29
|
-
try {
|
30
|
-
var c = a.getAttribute(n), w = c !== null && c !== "false", d = (f.get(a) || 0) + 1, M = (o.get(a) || 0) + 1;
|
31
|
-
f.set(a, d), o.set(a, M), l.push(a), d === 1 && w && v.set(a, !0), M === 1 && a.setAttribute(e, "true"), w || a.setAttribute(n, "true");
|
32
|
-
} catch (k) {
|
33
|
-
console.error("aria-hidden: cannot operate on ", a, k);
|
34
|
-
}
|
35
|
-
});
|
36
|
-
};
|
37
|
-
return A(u), s.clear(), h++, function() {
|
38
|
-
l.forEach(function(t) {
|
39
|
-
var a = f.get(t) - 1, c = o.get(t) - 1;
|
40
|
-
f.set(t, a), o.set(t, c), a || (v.has(t) || t.removeAttribute(n), v.delete(t)), c || t.removeAttribute(e);
|
41
|
-
}), h--, h || (f = /* @__PURE__ */ new WeakMap(), f = /* @__PURE__ */ new WeakMap(), v = /* @__PURE__ */ new WeakMap(), p = {});
|
42
|
-
};
|
43
|
-
}, C = function(r, u, e) {
|
44
|
-
e === void 0 && (e = "data-aria-hidden");
|
45
|
-
var n = Array.from(Array.isArray(r) ? r : [r]), i = S(r);
|
46
|
-
return i ? (n.push.apply(n, Array.from(i.querySelectorAll("[aria-live]"))), E(n, i, e, "aria-hidden")) : function() {
|
47
|
-
return null;
|
48
|
-
};
|
49
|
-
};
|
50
|
-
export {
|
51
|
-
C as hideOthers
|
52
|
-
};
|
53
|
-
//# sourceMappingURL=index.es423.js.map
|
package/dist/index.es423.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.es423.js","sources":["../node_modules/aria-hidden/dist/es2015/index.js"],"sourcesContent":["var getDefaultParent = function (originalTarget) {\n if (typeof document === 'undefined') {\n return null;\n }\n var sampleTarget = Array.isArray(originalTarget) ? originalTarget[0] : originalTarget;\n return sampleTarget.ownerDocument.body;\n};\nvar counterMap = new WeakMap();\nvar uncontrolledNodes = new WeakMap();\nvar markerMap = {};\nvar lockCount = 0;\nvar unwrapHost = function (node) {\n return node && (node.host || unwrapHost(node.parentNode));\n};\nvar correctTargets = function (parent, targets) {\n return targets\n .map(function (target) {\n if (parent.contains(target)) {\n return target;\n }\n var correctedTarget = unwrapHost(target);\n if (correctedTarget && parent.contains(correctedTarget)) {\n return correctedTarget;\n }\n console.error('aria-hidden', target, 'in not contained inside', parent, '. Doing nothing');\n return null;\n })\n .filter(function (x) { return Boolean(x); });\n};\n/**\n * Marks everything except given node(or nodes) as aria-hidden\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @param {String} [controlAttribute] - html Attribute to control\n * @return {Undo} undo command\n */\nvar applyAttributeToOthers = function (originalTarget, parentNode, markerName, controlAttribute) {\n var targets = correctTargets(parentNode, Array.isArray(originalTarget) ? originalTarget : [originalTarget]);\n if (!markerMap[markerName]) {\n markerMap[markerName] = new WeakMap();\n }\n var markerCounter = markerMap[markerName];\n var hiddenNodes = [];\n var elementsToKeep = new Set();\n var elementsToStop = new Set(targets);\n var keep = function (el) {\n if (!el || elementsToKeep.has(el)) {\n return;\n }\n elementsToKeep.add(el);\n keep(el.parentNode);\n };\n targets.forEach(keep);\n var deep = function (parent) {\n if (!parent || elementsToStop.has(parent)) {\n return;\n }\n Array.prototype.forEach.call(parent.children, function (node) {\n if (elementsToKeep.has(node)) {\n deep(node);\n }\n else {\n try {\n var attr = node.getAttribute(controlAttribute);\n var alreadyHidden = attr !== null && attr !== 'false';\n var counterValue = (counterMap.get(node) || 0) + 1;\n var markerValue = (markerCounter.get(node) || 0) + 1;\n counterMap.set(node, counterValue);\n markerCounter.set(node, markerValue);\n hiddenNodes.push(node);\n if (counterValue === 1 && alreadyHidden) {\n uncontrolledNodes.set(node, true);\n }\n if (markerValue === 1) {\n node.setAttribute(markerName, 'true');\n }\n if (!alreadyHidden) {\n node.setAttribute(controlAttribute, 'true');\n }\n }\n catch (e) {\n console.error('aria-hidden: cannot operate on ', node, e);\n }\n }\n });\n };\n deep(parentNode);\n elementsToKeep.clear();\n lockCount++;\n return function () {\n hiddenNodes.forEach(function (node) {\n var counterValue = counterMap.get(node) - 1;\n var markerValue = markerCounter.get(node) - 1;\n counterMap.set(node, counterValue);\n markerCounter.set(node, markerValue);\n if (!counterValue) {\n if (!uncontrolledNodes.has(node)) {\n node.removeAttribute(controlAttribute);\n }\n uncontrolledNodes.delete(node);\n }\n if (!markerValue) {\n node.removeAttribute(markerName);\n }\n });\n lockCount--;\n if (!lockCount) {\n // clear\n counterMap = new WeakMap();\n counterMap = new WeakMap();\n uncontrolledNodes = new WeakMap();\n markerMap = {};\n }\n };\n};\n/**\n * Marks everything except given node(or nodes) as aria-hidden\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @return {Undo} undo command\n */\nexport var hideOthers = function (originalTarget, parentNode, markerName) {\n if (markerName === void 0) { markerName = 'data-aria-hidden'; }\n var targets = Array.from(Array.isArray(originalTarget) ? originalTarget : [originalTarget]);\n var activeParentNode = parentNode || getDefaultParent(originalTarget);\n if (!activeParentNode) {\n return function () { return null; };\n }\n // we should not hide ariaLive elements - https://github.com/theKashey/aria-hidden/issues/10\n targets.push.apply(targets, Array.from(activeParentNode.querySelectorAll('[aria-live]')));\n return applyAttributeToOthers(targets, activeParentNode, markerName, 'aria-hidden');\n};\n/**\n * Marks everything except given node(or nodes) as inert\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @return {Undo} undo command\n */\nexport var inertOthers = function (originalTarget, parentNode, markerName) {\n if (markerName === void 0) { markerName = 'data-inert-ed'; }\n var activeParentNode = parentNode || getDefaultParent(originalTarget);\n if (!activeParentNode) {\n return function () { return null; };\n }\n return applyAttributeToOthers(originalTarget, activeParentNode, markerName, 'inert');\n};\n/**\n * @returns if current browser supports inert\n */\nexport var supportsInert = function () {\n return typeof HTMLElement !== 'undefined' && HTMLElement.prototype.hasOwnProperty('inert');\n};\n/**\n * Automatic function to \"suppress\" DOM elements - _hide_ or _inert_ in the best possible way\n * @param {Element | Element[]} originalTarget - elements to keep on the page\n * @param [parentNode] - top element, defaults to document.body\n * @param {String} [markerName] - a special attribute to mark every node\n * @return {Undo} undo command\n */\nexport var suppressOthers = function (originalTarget, parentNode, markerName) {\n if (markerName === void 0) { markerName = 'data-suppressed'; }\n return (supportsInert() ? inertOthers : hideOthers)(originalTarget, parentNode, markerName);\n};\n"],"names":["getDefaultParent","originalTarget","sampleTarget","counterMap","uncontrolledNodes","markerMap","lockCount","unwrapHost","node","correctTargets","parent","targets","target","correctedTarget","x","applyAttributeToOthers","parentNode","markerName","controlAttribute","markerCounter","hiddenNodes","elementsToKeep","elementsToStop","keep","el","deep","attr","alreadyHidden","counterValue","markerValue","e","hideOthers","activeParentNode"],"mappings":"AAAA,IAAIA,IAAmB,SAAUC,GAAgB;AAC7C,MAAI,OAAO,WAAa;AACpB,WAAO;AAEX,MAAIC,IAAe,MAAM,QAAQD,CAAc,IAAIA,EAAe,CAAC,IAAIA;AACvE,SAAOC,EAAa,cAAc;AACtC,GACIC,IAAa,oBAAI,QAAS,GAC1BC,IAAoB,oBAAI,QAAS,GACjCC,IAAY,CAAE,GACdC,IAAY,GACZC,IAAa,SAAUC,GAAM;AAC7B,SAAOA,MAASA,EAAK,QAAQD,EAAWC,EAAK,UAAU;AAC3D,GACIC,IAAiB,SAAUC,GAAQC,GAAS;AAC5C,SAAOA,EACF,IAAI,SAAUC,GAAQ;AACvB,QAAIF,EAAO,SAASE,CAAM;AACtB,aAAOA;AAEX,QAAIC,IAAkBN,EAAWK,CAAM;AACvC,WAAIC,KAAmBH,EAAO,SAASG,CAAe,IAC3CA,KAEX,QAAQ,MAAM,eAAeD,GAAQ,2BAA2BF,GAAQ,iBAAiB,GAClF;AAAA,EACV,CAAA,EACI,OAAO,SAAUI,GAAG;AAAE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sB,CAAC;AAAA,QAC5E;AAAA,IAEA,CAAS;AAAA,EACJ;AACD,SAAAL,EAAKT,CAAU,GACfK,EAAe,MAAO,GACtBf,KACO,WAAY;AACf,IAAAc,EAAY,QAAQ,SAAUZ,GAAM;AAChC,UAAIoB,IAAezB,EAAW,IAAIK,CAAI,IAAI,GACtCqB,IAAcV,EAAc,IAAIX,CAAI,IAAI;AAC5C,MAAAL,EAAW,IAAIK,GAAMoB,CAAY,GACjCT,EAAc,IAAIX,GAAMqB,CAAW,GAC9BD,MACIxB,EAAkB,IAAII,CAAI,KAC3BA,EAAK,gBAAgBU,CAAgB,GAEzCd,EAAkB,OAAOI,CAAI,IAE5BqB,KACDrB,EAAK,gBAAgBS,CAAU;AAAA,IAE/C,CAAS,GACDX,KACKA,MAEDH,IAAa,oBAAI,QAAS,GAC1BA,IAAa,oBAAI,QAAS,GAC1BC,IAAoB,oBAAI,QAAS,GACjCC,IAAY,CAAE;AAAA,EAErB;AACL,GAQW0B,IAAa,SAAU9B,GAAgBe,GAAYC,GAAY;AACtE,EAAIA,MAAe,WAAUA,IAAa;AAC1C,MAAIN,IAAU,MAAM,KAAK,MAAM,QAAQV,CAAc,IAAIA,IAAiB,CAACA,CAAc,CAAC,GACtF+B,IAAiChC,EAAiBC,CAAc;AACpE,SAAK+B,KAILrB,EAAQ,KAAK,MAAMA,GAAS,MAAM,KAAKqB,EAAiB,iBAAiB,aAAa,CAAC,CAAC,GACjFjB,EAAuBJ,GAASqB,GAAkBf,GAAY,aAAa,KAJvE,WAAY;AAAE,WAAO;AAAA,EAAO;AAK3C;","x_google_ignoreList":[0]}
|
package/dist/index.es424.js
DELETED
@@ -1,56 +0,0 @@
|
|
1
|
-
import * as l from "react";
|
2
|
-
import { composeRefs as y } from "./index.es397.js";
|
3
|
-
import { j as f } from "./index.es216.js";
|
4
|
-
// @__NO_SIDE_EFFECTS__
|
5
|
-
function b(e) {
|
6
|
-
const t = /* @__PURE__ */ S(e), o = l.forwardRef((n, r) => {
|
7
|
-
const { children: i, ...a } = n, s = l.Children.toArray(i), p = s.find(g);
|
8
|
-
if (p) {
|
9
|
-
const c = p.props.children, m = s.map((u) => u === p ? l.Children.count(c) > 1 ? l.Children.only(null) : l.isValidElement(c) ? c.props.children : null : u);
|
10
|
-
return /* @__PURE__ */ f.jsx(t, { ...a, ref: r, children: l.isValidElement(c) ? l.cloneElement(c, void 0, m) : null });
|
11
|
-
}
|
12
|
-
return /* @__PURE__ */ f.jsx(t, { ...a, ref: r, children: i });
|
13
|
-
});
|
14
|
-
return o.displayName = `${e}.Slot`, o;
|
15
|
-
}
|
16
|
-
// @__NO_SIDE_EFFECTS__
|
17
|
-
function S(e) {
|
18
|
-
const t = l.forwardRef((o, n) => {
|
19
|
-
const { children: r, ...i } = o;
|
20
|
-
if (l.isValidElement(r)) {
|
21
|
-
const a = x(r), s = E(i, r.props);
|
22
|
-
return r.type !== l.Fragment && (s.ref = n ? y(n, a) : a), l.cloneElement(r, s);
|
23
|
-
}
|
24
|
-
return l.Children.count(r) > 1 ? l.Children.only(null) : null;
|
25
|
-
});
|
26
|
-
return t.displayName = `${e}.SlotClone`, t;
|
27
|
-
}
|
28
|
-
var d = Symbol("radix.slottable");
|
29
|
-
// @__NO_SIDE_EFFECTS__
|
30
|
-
function h(e) {
|
31
|
-
const t = ({ children: o }) => /* @__PURE__ */ f.jsx(f.Fragment, { children: o });
|
32
|
-
return t.displayName = `${e}.Slottable`, t.__radixId = d, t;
|
33
|
-
}
|
34
|
-
function g(e) {
|
35
|
-
return l.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === d;
|
36
|
-
}
|
37
|
-
function E(e, t) {
|
38
|
-
const o = { ...t };
|
39
|
-
for (const n in t) {
|
40
|
-
const r = e[n], i = t[n];
|
41
|
-
/^on[A-Z]/.test(n) ? r && i ? o[n] = (...s) => {
|
42
|
-
i(...s), r(...s);
|
43
|
-
} : r && (o[n] = r) : n === "style" ? o[n] = { ...r, ...i } : n === "className" && (o[n] = [r, i].filter(Boolean).join(" "));
|
44
|
-
}
|
45
|
-
return { ...e, ...o };
|
46
|
-
}
|
47
|
-
function x(e) {
|
48
|
-
var n, r;
|
49
|
-
let t = (n = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : n.get, o = t && "isReactWarning" in t && t.isReactWarning;
|
50
|
-
return o ? e.ref : (t = (r = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : r.get, o = t && "isReactWarning" in t && t.isReactWarning, o ? e.props.ref : e.props.ref || e.ref);
|
51
|
-
}
|
52
|
-
export {
|
53
|
-
b as createSlot,
|
54
|
-
h as createSlottable
|
55
|
-
};
|
56
|
-
//# sourceMappingURL=index.es424.js.map
|
package/dist/index.es424.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.es424.js","sources":["../node_modules/@radix-ui/react-slot/dist/index.mjs"],"sourcesContent":["// packages/react/slot/src/slot.tsx\nimport * as React from \"react\";\nimport { composeRefs } from \"@radix-ui/react-compose-refs\";\nimport { Fragment as Fragment2, jsx } from \"react/jsx-runtime\";\n// @__NO_SIDE_EFFECTS__\nfunction createSlot(ownerName) {\n const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);\n const Slot2 = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n const childrenArray = React.Children.toArray(children);\n const slottable = childrenArray.find(isSlottable);\n if (slottable) {\n const newElement = slottable.props.children;\n const newChildren = childrenArray.map((child) => {\n if (child === slottable) {\n if (React.Children.count(newElement) > 1) return React.Children.only(null);\n return React.isValidElement(newElement) ? newElement.props.children : null;\n } else {\n return child;\n }\n });\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: React.isValidElement(newElement) ? React.cloneElement(newElement, void 0, newChildren) : null });\n }\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });\n });\n Slot2.displayName = `${ownerName}.Slot`;\n return Slot2;\n}\nvar Slot = /* @__PURE__ */ createSlot(\"Slot\");\n// @__NO_SIDE_EFFECTS__\nfunction createSlotClone(ownerName) {\n const SlotClone = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n if (React.isValidElement(children)) {\n const childrenRef = getElementRef(children);\n const props2 = mergeProps(slotProps, children.props);\n if (children.type !== React.Fragment) {\n props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;\n }\n return React.cloneElement(children, props2);\n }\n return React.Children.count(children) > 1 ? React.Children.only(null) : null;\n });\n SlotClone.displayName = `${ownerName}.SlotClone`;\n return SlotClone;\n}\nvar SLOTTABLE_IDENTIFIER = Symbol(\"radix.slottable\");\n// @__NO_SIDE_EFFECTS__\nfunction createSlottable(ownerName) {\n const Slottable2 = ({ children }) => {\n return /* @__PURE__ */ jsx(Fragment2, { children });\n };\n Slottable2.displayName = `${ownerName}.Slottable`;\n Slottable2.__radixId = SLOTTABLE_IDENTIFIER;\n return Slottable2;\n}\nvar Slottable = /* @__PURE__ */ createSlottable(\"Slottable\");\nfunction isSlottable(child) {\n return React.isValidElement(child) && typeof child.type === \"function\" && \"__radixId\" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;\n}\nfunction mergeProps(slotProps, childProps) {\n const overrideProps = { ...childProps };\n for (const propName in childProps) {\n const slotPropValue = slotProps[propName];\n const childPropValue = childProps[propName];\n const isHandler = /^on[A-Z]/.test(propName);\n if (isHandler) {\n if (slotPropValue && childPropValue) {\n overrideProps[propName] = (...args) => {\n childPropValue(...args);\n slotPropValue(...args);\n };\n } else if (slotPropValue) {\n overrideProps[propName] = slotPropValue;\n }\n } else if (propName === \"style\") {\n overrideProps[propName] = { ...slotPropValue, ...childPropValue };\n } else if (propName === \"className\") {\n overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(\" \");\n }\n }\n return { ...slotProps, ...overrideProps };\n}\nfunction getElementRef(element) {\n let getter = Object.getOwnPropertyDescriptor(element.props, \"ref\")?.get;\n let mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.ref;\n }\n getter = Object.getOwnPropertyDescriptor(element, \"ref\")?.get;\n mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.props.ref;\n }\n return element.props.ref || element.ref;\n}\nexport {\n Slot as Root,\n Slot,\n Slottable,\n createSlot,\n createSlottable\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["createSlot","ownerName","SlotClone","createSlotClone","Slot2","React","props","forwardedRef","children","slotProps","childrenArray","slottable","isSlottable","newElement","newChildren","child","jsx","childrenRef","getElementRef","props2","mergeProps","composeRefs","SLOTTABLE_IDENTIFIER","createSlottable","Slottable2","Fragment2","childProps","overrideProps","propName","slotPropValue","childPropValue","args","element","getter","_a","mayWarn","_b"],"mappings":";;;;AAKA,SAASA,EAAWC,GAAW;AAC7B,QAAMC,IAA4B,gBAAAC,EAAgBF,CAAS,GACrDG,IAAQC,EAAM,WAAW,CAACC,GAAOC,MAAiB;AACtD,UAAM,EAAE,UAAAC,GAAU,GAAGC,EAAS,IAAKH,GAC7BI,IAAgBL,EAAM,SAAS,QAAQG,CAAQ,GAC/CG,IAAYD,EAAc,KAAKE,CAAW;AAChD,QAAID,GAAW;AACb,YAAME,IAAaF,EAAU,MAAM,UAC7BG,IAAcJ,EAAc,IAAI,CAACK,MACjCA,MAAUJ,IACRN,EAAM,SAAS,MAAMQ,CAAU,IAAI,IAAUR,EAAM,SAAS,KAAK,IAAI,IAClEA,EAAM,eAAeQ,CAAU,IAAIA,EAAW,MAAM,WAAW,OAE/DE,CAEV;AACD,aAAuBC,gBAAAA,EAAAA,IAAId,GAAW,EAAE,GAAGO,GAAW,KAAKF,GAAc,UAAUF,EAAM,eAAeQ,CAAU,IAAIR,EAAM,aAAaQ,GAAY,QAAQC,CAAW,IAAI,MAAM;AAAA,IACxL;AACI,WAAuBE,gBAAAA,EAAAA,IAAId,GAAW,EAAE,GAAGO,GAAW,KAAKF,GAA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AAcC,CAAQ,IAAI,IAAIG,MAAS;AACrC,MAAAD,EAAe,GAAGC,CAAI,GACtBF,EAAc,GAAGE,CAAI;AAAA,IACtB,IACQF,MACTF,EAAcC,CAAQ,IAAIC,KAEnBD,MAAa,UACtBD,EAAcC,CAAQ,IAAI,EAAE,GAAGC,GAAe,GAAGC,EAAgB,IACxDF,MAAa,gBACtBD,EAAcC,CAAQ,IAAI,CAACC,GAAeC,CAAc,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG;AAAA,EAExF;AACE,SAAO,EAAE,GAAGrB,GAAW,GAAGkB,EAAe;AAC3C;AACA,SAAST,EAAcc,GAAS;;AAC9B,MAAIC,KAASC,IAAA,OAAO,yBAAyBF,EAAQ,OAAO,KAAK,MAApD,gBAAAE,EAAuD,KAChEC,IAAUF,KAAU,oBAAoBA,KAAUA,EAAO;AAC7D,SAAIE,IACKH,EAAQ,OAEjBC,KAASG,IAAA,OAAO,yBAAyBJ,GAAS,KAAK,MAA9C,gBAAAI,EAAiD,KAC1DD,IAAUF,KAAU,oBAAoBA,KAAUA,EAAO,gBACrDE,IACKH,EAAQ,MAAM,MAEhBA,EAAQ,MAAM,OAAOA,EAAQ;AACtC;","x_google_ignoreList":[0]}
|
package/dist/index.es428.js
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
import * as r from "react";
|
2
|
-
function o(t) {
|
3
|
-
const e = r.useRef(t);
|
4
|
-
return r.useEffect(() => {
|
5
|
-
e.current = t;
|
6
|
-
}), r.useMemo(() => (...n) => {
|
7
|
-
var u;
|
8
|
-
return (u = e.current) == null ? void 0 : u.call(e, ...n);
|
9
|
-
}, []);
|
10
|
-
}
|
11
|
-
export {
|
12
|
-
o as useCallbackRef
|
13
|
-
};
|
14
|
-
//# sourceMappingURL=index.es428.js.map
|
package/dist/index.es428.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.es428.js","sources":["../node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs"],"sourcesContent":["// packages/react/use-callback-ref/src/use-callback-ref.tsx\nimport * as React from \"react\";\nfunction useCallbackRef(callback) {\n const callbackRef = React.useRef(callback);\n React.useEffect(() => {\n callbackRef.current = callback;\n });\n return React.useMemo(() => (...args) => callbackRef.current?.(...args), []);\n}\nexport {\n useCallbackRef\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useCallbackRef","callback","callbackRef","React","args","_a"],"mappings":";AAEA,SAASA,EAAeC,GAAU;AAChC,QAAMC,IAAcC,EAAM,OAAOF,CAAQ;AACzC,SAAAE,EAAM,UAAU,MAAM;AACpB,IAAAD,EAAY,UAAUD;AAAA,EAC1B,CAAG,GACME,EAAM,QAAQ,MAAM,IAAIC;;AAAS,YAAAC,IAAAH,EAAY,YAAZ,gBAAAG,EAAA,KAAAH,GAAsB,GAAGE;AAAA,KAAO,EAAE;AAC5E;","x_google_ignoreList":[0]}
|
package/dist/index.es429.js
DELETED
@@ -1,49 +0,0 @@
|
|
1
|
-
import r from "react";
|
2
|
-
import { createContextScope as y } from "./index.es398.js";
|
3
|
-
import { useComposedRefs as S } from "./index.es397.js";
|
4
|
-
import { createSlot as M } from "./index.es424.js";
|
5
|
-
import { j as d } from "./index.es216.js";
|
6
|
-
function D(s) {
|
7
|
-
const m = s + "CollectionProvider", [A, E] = y(m), [N, f] = A(
|
8
|
-
m,
|
9
|
-
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
10
|
-
), p = (c) => {
|
11
|
-
const { scope: e, children: l } = c, o = r.useRef(null), t = r.useRef(/* @__PURE__ */ new Map()).current;
|
12
|
-
return /* @__PURE__ */ d.jsx(N, { scope: e, itemMap: t, collectionRef: o, children: l });
|
13
|
-
};
|
14
|
-
p.displayName = m;
|
15
|
-
const a = s + "CollectionSlot", _ = M(a), C = r.forwardRef(
|
16
|
-
(c, e) => {
|
17
|
-
const { scope: l, children: o } = c, t = f(a, l), n = S(e, t.collectionRef);
|
18
|
-
return /* @__PURE__ */ d.jsx(_, { ref: n, children: o });
|
19
|
-
}
|
20
|
-
);
|
21
|
-
C.displayName = a;
|
22
|
-
const u = s + "CollectionItemSlot", R = "data-radix-collection-item", T = M(u), x = r.forwardRef(
|
23
|
-
(c, e) => {
|
24
|
-
const { scope: l, children: o, ...t } = c, n = r.useRef(null), I = S(e, n), i = f(u, l);
|
25
|
-
return r.useEffect(() => (i.itemMap.set(n, { ref: n, ...t }), () => void i.itemMap.delete(n))), /* @__PURE__ */ d.jsx(T, { [R]: "", ref: I, children: o });
|
26
|
-
}
|
27
|
-
);
|
28
|
-
x.displayName = u;
|
29
|
-
function O(c) {
|
30
|
-
const e = f(s + "CollectionConsumer", c);
|
31
|
-
return r.useCallback(() => {
|
32
|
-
const o = e.collectionRef.current;
|
33
|
-
if (!o) return [];
|
34
|
-
const t = Array.from(o.querySelectorAll(`[${R}]`));
|
35
|
-
return Array.from(e.itemMap.values()).sort(
|
36
|
-
(i, v) => t.indexOf(i.ref.current) - t.indexOf(v.ref.current)
|
37
|
-
);
|
38
|
-
}, [e.collectionRef, e.itemMap]);
|
39
|
-
}
|
40
|
-
return [
|
41
|
-
{ Provider: p, Slot: C, ItemSlot: x },
|
42
|
-
O,
|
43
|
-
E
|
44
|
-
];
|
45
|
-
}
|
46
|
-
export {
|
47
|
-
D as createCollection
|
48
|
-
};
|
49
|
-
//# sourceMappingURL=index.es429.js.map
|
package/dist/index.es429.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.es429.js","sources":["../node_modules/@radix-ui/react-collection/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/collection/src/collection.tsx\nimport React from \"react\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createSlot } from \"@radix-ui/react-slot\";\nimport { jsx } from \"react/jsx-runtime\";\nfunction createCollection(name) {\n const PROVIDER_NAME = name + \"CollectionProvider\";\n const [createCollectionContext, createCollectionScope] = createContextScope(PROVIDER_NAME);\n const [CollectionProviderImpl, useCollectionContext] = createCollectionContext(\n PROVIDER_NAME,\n { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }\n );\n const CollectionProvider = (props) => {\n const { scope, children } = props;\n const ref = React.useRef(null);\n const itemMap = React.useRef(/* @__PURE__ */ new Map()).current;\n return /* @__PURE__ */ jsx(CollectionProviderImpl, { scope, itemMap, collectionRef: ref, children });\n };\n CollectionProvider.displayName = PROVIDER_NAME;\n const COLLECTION_SLOT_NAME = name + \"CollectionSlot\";\n const CollectionSlotImpl = createSlot(COLLECTION_SLOT_NAME);\n const CollectionSlot = React.forwardRef(\n (props, forwardedRef) => {\n const { scope, children } = props;\n const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);\n const composedRefs = useComposedRefs(forwardedRef, context.collectionRef);\n return /* @__PURE__ */ jsx(CollectionSlotImpl, { ref: composedRefs, children });\n }\n );\n CollectionSlot.displayName = COLLECTION_SLOT_NAME;\n const ITEM_SLOT_NAME = name + \"CollectionItemSlot\";\n const ITEM_DATA_ATTR = \"data-radix-collection-item\";\n const CollectionItemSlotImpl = createSlot(ITEM_SLOT_NAME);\n const CollectionItemSlot = React.forwardRef(\n (props, forwardedRef) => {\n const { scope, children, ...itemData } = props;\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n const context = useCollectionContext(ITEM_SLOT_NAME, scope);\n React.useEffect(() => {\n context.itemMap.set(ref, { ref, ...itemData });\n return () => void context.itemMap.delete(ref);\n });\n return /* @__PURE__ */ jsx(CollectionItemSlotImpl, { ...{ [ITEM_DATA_ATTR]: \"\" }, ref: composedRefs, children });\n }\n );\n CollectionItemSlot.displayName = ITEM_SLOT_NAME;\n function useCollection(scope) {\n const context = useCollectionContext(name + \"CollectionConsumer\", scope);\n const getItems = React.useCallback(() => {\n const collectionNode = context.collectionRef.current;\n if (!collectionNode) return [];\n const orderedNodes = Array.from(collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`));\n const items = Array.from(context.itemMap.values());\n const orderedItems = items.sort(\n (a, b) => orderedNodes.indexOf(a.ref.current) - orderedNodes.indexOf(b.ref.current)\n );\n return orderedItems;\n }, [context.collectionRef, context.itemMap]);\n return getItems;\n }\n return [\n { Provider: CollectionProvider, Slot: CollectionSlot, ItemSlot: CollectionItemSlot },\n useCollection,\n createCollectionScope\n ];\n}\nexport {\n createCollection\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["createCollection","name","PROVIDER_NAME","createCollectionContext","createCollectionScope","createContextScope","CollectionProviderImpl","useCollectionContext","CollectionProvider","props","scope","children","ref","React","itemMap","jsx","COLLECTION_SLOT_NAME","CollectionSlotImpl","createSlot","CollectionSlot","forwardedRef","context","composedRefs","useComposedRefs","ITEM_SLOT_NAME","ITEM_DATA_ATTR","CollectionItemSlotImpl","CollectionItemSlot","itemData","useCollection","collectionNode","orderedNodes","a","b"],"mappings":";;;;;AAQA,SAASA,EAAiBC,GAAM;AAC9B,QAAMC,IAAgBD,IAAO,sBACvB,CAACE,GAAyBC,CAAqB,IAAIC,EAAmBH,CAAa,GACnF,CAACI,GAAwBC,CAAoB,IAAIJ;AAAA,IACrDD;AAAA,IACA,EAAE,eAAe,EAAE,SAAS,KAAI,GAAI,SAAyB,oBAAI,IAAK,EAAA;AAAA,EACvE,GACKM,IAAqB,CAACC,MAAU;AACpC,UAAM,EAAE,OAAAC,GAAO,UAAAC,EAAQ,IAAKF,GACtBG,IAAMC,EAAM,OAAO,IAAI,GACvBC,IAAUD,EAAM,OAAuB,oBAAI,IAAG,CAAE,EAAE;AACxD,WAAuBE,gBAAAA,EAAG,IAACT,GAAwB,EAAE,OAAAI,GAAO,SAAAI,GAAS,eAAeF,GAAK,UAAAD,GAAU;AAAA,EACpG;AACD,EAAAH,EAAmB,cAAcN;AACjC,QAAMc,IAAuBf,IAAO,kBAC9BgB,IAAqBC,EAAWF,CAAoB,GACpDG,IAAiBN,EAAM;AAAA,IAC3B,CAACJ,GAAOW,MAAiB;AACvB,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AAO,IAAID,EAAa,QAAQE,EAAE,IAAI,OAAO;AAAA,MACnF;AAAA,IAEF,GAAE,CAACZ,EAAQ,eAAeA,EAAQ,OAAO,CAAC;AAAA,EAE/C;AACE,SAAO;AAAA,IACL,EAAE,UAAUb,GAAoB,MAAMW,GAAgB,UAAUQ,EAAoB;AAAA,IACpFE;AAAA,IACAzB;AAAA,EACD;AACH;","x_google_ignoreList":[0]}
|
package/dist/index.es430.js
DELETED
package/dist/index.es430.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.es430.js","sources":["../node_modules/@radix-ui/react-direction/dist/index.mjs"],"sourcesContent":["// packages/react/direction/src/direction.tsx\nimport * as React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\nvar DirectionContext = React.createContext(void 0);\nvar DirectionProvider = (props) => {\n const { dir, children } = props;\n return /* @__PURE__ */ jsx(DirectionContext.Provider, { value: dir, children });\n};\nfunction useDirection(localDir) {\n const globalDir = React.useContext(DirectionContext);\n return localDir || globalDir || \"ltr\";\n}\nvar Provider = DirectionProvider;\nexport {\n DirectionProvider,\n Provider,\n useDirection\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["DirectionContext","React","useDirection","localDir","globalDir"],"mappings":";;AAGA,IAAIA,IAAmBC,EAAM,cAAc,MAAM;AAKjD,SAASC,EAAaC,GAAU;AAC9B,QAAMC,IAAYH,EAAM,WAAWD,CAAgB;AACnD,SAAOG,KAAYC,KAAa;AAClC;","x_google_ignoreList":[0]}
|