@purpur/library 10.1.1 → 10.2.0
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/CHANGELOG.json +45 -0
- package/CHANGELOG.md +19 -1
- package/dist/LICENSE.txt +14 -7
- package/dist/{RichText-B865Qkzj.js → RichText-CeYecUFV.js} +2 -2
- package/dist/{RichText-B865Qkzj.js.map → RichText-CeYecUFV.js.map} +1 -1
- package/dist/{RichText-CPkBwXNI.mjs → RichText-CwQfDo_S.mjs} +2 -2
- package/dist/{RichText-CPkBwXNI.mjs.map → RichText-CwQfDo_S.mjs.map} +1 -1
- package/dist/{ThemeProvider-BJGm3zai.js → ThemeProvider-BGep6X_i.js} +2 -2
- package/dist/{ThemeProvider-BJGm3zai.js.map → ThemeProvider-BGep6X_i.js.map} +1 -1
- package/dist/{ThemeProvider-BJ25_asg.mjs → ThemeProvider-BrAZhasG.mjs} +13 -13
- package/dist/{ThemeProvider-BJ25_asg.mjs.map → ThemeProvider-BrAZhasG.mjs.map} +1 -1
- package/dist/components/avatar/src/avatar.d.ts +1 -1
- package/dist/components/card/src/card-content-container.d.ts +2 -2
- package/dist/components/comparison-table/src/components/OptionCard/option-card.d.ts +1 -1
- package/dist/components/container/src/container.visual.fixtures.d.ts +14 -0
- package/dist/components/container/src/container.visual.fixtures.d.ts.map +1 -0
- package/dist/components/content-block/src/content-block-group.d.ts +2 -2
- package/dist/components/content-block/src/content-block.d.ts +2 -2
- package/dist/components/countdown/src/countdown.d.ts +1 -1
- package/dist/components/countdown/src/countdown.d.ts.map +1 -1
- package/dist/components/countdown/src/countdown.types.d.ts +19 -3
- package/dist/components/countdown/src/countdown.types.d.ts.map +1 -1
- package/dist/components/date-field/src/date-field.d.ts +14 -6
- package/dist/components/date-field/src/date-field.d.ts.map +1 -1
- package/dist/components/date-field/src/utils.d.ts +40 -2
- package/dist/components/date-field/src/utils.d.ts.map +1 -1
- package/dist/components/date-picker/src/date-picker.d.ts +4 -4
- package/dist/components/date-range-field/src/date-range-field.d.ts +3 -1
- package/dist/components/date-range-field/src/date-range-field.d.ts.map +1 -1
- package/dist/components/dismissable-chip-group/src/dismissable-chip-group-item.d.ts +2 -2
- package/dist/components/dismissable-chip-group/src/dismissable-chip-group.d.ts +2 -2
- package/dist/components/drawer/src/drawer-container.d.ts +2 -2
- package/dist/components/drawer/src/drawer-content.d.ts +2 -2
- package/dist/components/drawer/src/drawer-scroll-area.d.ts +1 -1
- package/dist/components/dropdown/src/dropdown-combobox.d.ts.map +1 -1
- package/dist/components/dropdown/src/dropdown-shared.d.ts +3 -1
- package/dist/components/dropdown/src/dropdown-shared.d.ts.map +1 -1
- package/dist/components/dropdown/src/dropdown.types.d.ts +3 -0
- package/dist/components/dropdown/src/dropdown.types.d.ts.map +1 -1
- package/dist/components/dropdown/src/useDropdown.d.ts +1 -1
- package/dist/components/field-error-text/src/field-error-text.d.ts +1 -1
- package/dist/components/file-upload/src/file-upload-types.d.ts +1 -1
- package/dist/components/footer/src/footer-navigation.d.ts +2 -2
- package/dist/components/footer/src/footer-social-link.d.ts +2 -2
- package/dist/components/footer/src/footer.d.ts +3 -3
- package/dist/components/hero-banner/src/hero-banner-actions.d.ts +2 -2
- package/dist/components/hero-banner/src/hero-banner-media.d.ts +2 -2
- package/dist/components/hero-banner/src/hero-banner-types.d.ts +3 -3
- package/dist/components/link/src/link.d.ts +1 -1
- package/dist/components/listbox/src/listbox-item.d.ts +2 -2
- package/dist/components/loading/src/loading-illustrative.d.ts +1 -1
- package/dist/components/modal/src/modal-content.d.ts +2 -2
- package/dist/components/modal/src/modal-trigger.d.ts +2 -2
- package/dist/components/pagination/src/pagination-page-selector.d.ts +2 -2
- package/dist/components/pagination/src/pagination-page-trigger.d.ts +2 -2
- package/dist/components/pagination/src/pagination-step-trigger.d.ts +1 -1
- package/dist/components/pagination/src/types.d.ts +2 -2
- package/dist/components/pagination/src/use-page-options.hook.d.ts +2 -2
- package/dist/components/pagination/src/use-page-size-options.hook.d.ts +2 -2
- package/dist/components/password-field/src/password-field.d.ts +1 -1
- package/dist/components/password-field/src/password-strength-indicator.d.ts +2 -2
- package/dist/components/password-field/src/password-strength.d.ts +2 -2
- package/dist/components/popover/src/popover-button.d.ts +2 -2
- package/dist/components/product-card/src/product-card.d.ts +3 -3
- package/dist/components/promotion-card/src/promotion-card.d.ts +3 -3
- package/dist/components/quantity-selector/src/quantity-selector.d.ts +1 -1
- package/dist/components/radio-button-group/src/radio-button-group-root.d.ts +3 -3
- package/dist/components/radio-card-group/src/radio-card-item.d.ts +1 -1
- package/dist/components/rich-text/src/types.d.ts +1 -1
- package/dist/components/search-field/src/search-field-autocomplete.d.ts +7 -4
- package/dist/components/search-field/src/search-field-autocomplete.d.ts.map +1 -1
- package/dist/components/search-field/src/search-field-base.d.ts +4 -2
- package/dist/components/search-field/src/search-field-base.d.ts.map +1 -1
- package/dist/components/search-field/src/search-field.d.ts +12 -6
- package/dist/components/search-field/src/search-field.d.ts.map +1 -1
- package/dist/components/spinner/src/spinner.d.ts +1 -1
- package/dist/components/stepper/src/stepper-container.d.ts +2 -2
- package/dist/components/stepper/src/stepper-content.d.ts +2 -2
- package/dist/components/stepper/src/stepper-link.d.ts +1 -1
- package/dist/components/stepper/src/stepper.d.ts +1 -1
- package/dist/components/table/src/cell-types/button-group-cell.d.ts +3 -3
- package/dist/components/table/src/table-content.d.ts +2 -2
- package/dist/components/table/src/table.d.ts +2 -2
- package/dist/components/table/src/types.d.ts +4 -4
- package/dist/components/tabs/src/tab-content.d.ts +2 -2
- package/dist/components/text-field/src/text-field.d.ts +1 -1
- package/dist/components/text-spacing/src/text-spacing.d.ts +1 -1
- package/dist/components/toggle/src/toggle.d.ts +1 -1
- package/dist/components/tooltip/src/tooltip.d.ts +3 -3
- package/dist/components-metadata.js +1 -0
- package/dist/countdown-CdGFNLZq.js +2 -0
- package/dist/countdown-CdGFNLZq.js.map +1 -0
- package/dist/countdown-G7eg3CZj.mjs +188 -0
- package/dist/countdown-G7eg3CZj.mjs.map +1 -0
- package/dist/countdown.cjs.js +1 -1
- package/dist/countdown.es.js +1 -1
- package/dist/date-field-D8yGH1mw.js +2 -0
- package/dist/{date-field-CtpWDaSh.js.map → date-field-D8yGH1mw.js.map} +1 -1
- package/dist/{date-field-_rCuf15v.mjs → date-field-DVMPYoLT.mjs} +361 -311
- package/dist/{date-field-_rCuf15v.mjs.map → date-field-DVMPYoLT.mjs.map} +1 -1
- package/dist/date-field.cjs.js +1 -1
- package/dist/date-field.es.js +1 -1
- package/dist/{date-picker-sqcNAplg.mjs → date-picker-Ban9DLsx.mjs} +6 -6
- package/dist/{date-picker-sqcNAplg.mjs.map → date-picker-Ban9DLsx.mjs.map} +1 -1
- package/dist/{date-picker-BYlszX1W.js → date-picker-re3cPV_Z.js} +2 -2
- package/dist/{date-picker-BYlszX1W.js.map → date-picker-re3cPV_Z.js.map} +1 -1
- package/dist/date-picker.cjs.js +1 -1
- package/dist/date-picker.es.js +1 -1
- package/dist/date-range-field-8JmPw-Ei.js +2 -0
- package/dist/date-range-field-8JmPw-Ei.js.map +1 -0
- package/dist/{date-range-field-BmjQeiOv.mjs → date-range-field-dmJO66U_.mjs} +64 -61
- package/dist/date-range-field-dmJO66U_.mjs.map +1 -0
- package/dist/date-range-field.cjs.js +1 -1
- package/dist/date-range-field.es.js +1 -1
- package/dist/dismissable-chip-group-CVo3CS8K.js +2 -0
- package/dist/dismissable-chip-group-CVo3CS8K.js.map +1 -0
- package/dist/dismissable-chip-group-Dov2-9Fe.mjs +95 -0
- package/dist/dismissable-chip-group-Dov2-9Fe.mjs.map +1 -0
- package/dist/dismissable-chip-group.cjs.js +1 -1
- package/dist/dismissable-chip-group.es.js +1 -1
- package/dist/{drawer-oFJcxW58.js → drawer-CSagTJjN.js} +2 -2
- package/dist/{drawer-oFJcxW58.js.map → drawer-CSagTJjN.js.map} +1 -1
- package/dist/{drawer-Chx3H8EU.mjs → drawer-Cw-Y9XH9.mjs} +3 -3
- package/dist/{drawer-Chx3H8EU.mjs.map → drawer-Cw-Y9XH9.mjs.map} +1 -1
- package/dist/drawer.cjs.js +1 -1
- package/dist/drawer.es.js +1 -1
- package/dist/dropdown-BAM4nQhd.mjs +955 -0
- package/dist/dropdown-BAM4nQhd.mjs.map +1 -0
- package/dist/dropdown-Cr8DVw2T.js +2 -0
- package/dist/dropdown-Cr8DVw2T.js.map +1 -0
- package/dist/dropdown.cjs.js +1 -1
- package/dist/dropdown.es.js +1 -1
- package/dist/{file-upload-MvNuX4ks.js → file-upload-CdlYkCg8.js} +2 -2
- package/dist/{file-upload-MvNuX4ks.js.map → file-upload-CdlYkCg8.js.map} +1 -1
- package/dist/{file-upload-Ctw6LCTU.mjs → file-upload-ih5NqF67.mjs} +2 -2
- package/dist/{file-upload-Ctw6LCTU.mjs.map → file-upload-ih5NqF67.mjs.map} +1 -1
- package/dist/file-upload.cjs.js +1 -1
- package/dist/file-upload.es.js +1 -1
- package/dist/{footer-DkVmTd-f.mjs → footer-CVVt8hUE.mjs} +3 -3
- package/dist/{footer-DkVmTd-f.mjs.map → footer-CVVt8hUE.mjs.map} +1 -1
- package/dist/{footer-Bbemct3Z.js → footer-Cat9-v7l.js} +2 -2
- package/dist/{footer-Bbemct3Z.js.map → footer-Cat9-v7l.js.map} +1 -1
- package/dist/footer.cjs.js +1 -1
- package/dist/footer.es.js +1 -1
- package/dist/{hero-banner-Mag1OwL4.js → hero-banner-BNw3eNTs.js} +2 -2
- package/dist/{hero-banner-Mag1OwL4.js.map → hero-banner-BNw3eNTs.js.map} +1 -1
- package/dist/{hero-banner-ChDoFRhq.mjs → hero-banner-MnKuFSku.mjs} +2 -2
- package/dist/{hero-banner-ChDoFRhq.mjs.map → hero-banner-MnKuFSku.mjs.map} +1 -1
- package/dist/hero-banner.cjs.js +1 -1
- package/dist/hero-banner.es.js +1 -1
- package/dist/libraries/library/src/quantity-selector.d.ts +2 -2
- package/dist/libraries/library/src/toggle.d.ts +2 -2
- package/dist/libraries/theme/src/theme-props.d.ts +1 -0
- package/dist/libraries/theme/src/theme-props.d.ts.map +1 -1
- package/dist/libraries/tokens/dist/color/variables.d.ts +1 -0
- package/dist/libraries/tokens/dist/color/variables.dark.d.ts +1 -0
- package/dist/library.cjs.js +1 -1
- package/dist/library.es.js +293 -292
- package/dist/{modal-CXOYUsJm.js → modal-BSN-wIcN.js} +2 -2
- package/dist/{modal-CXOYUsJm.js.map → modal-BSN-wIcN.js.map} +1 -1
- package/dist/{modal-Pwvhrzn-.mjs → modal-CnzUgU97.mjs} +3 -3
- package/dist/{modal-Pwvhrzn-.mjs.map → modal-CnzUgU97.mjs.map} +1 -1
- package/dist/modal.cjs.js +1 -1
- package/dist/modal.es.js +1 -1
- package/dist/{popover-B6ntmuEK.mjs → popover-B-oWzP-0.mjs} +3 -3
- package/dist/{popover-B6ntmuEK.mjs.map → popover-B-oWzP-0.mjs.map} +1 -1
- package/dist/{popover-DJHMEFXP.js → popover-BzoAQW0i.js} +2 -2
- package/dist/{popover-DJHMEFXP.js.map → popover-BzoAQW0i.js.map} +1 -1
- package/dist/popover.cjs.js +1 -1
- package/dist/popover.es.js +1 -1
- package/dist/{promotion-card-B3mz__m7.js → promotion-card-B8bnNVZ-.js} +2 -2
- package/dist/{promotion-card-B3mz__m7.js.map → promotion-card-B8bnNVZ-.js.map} +1 -1
- package/dist/{promotion-card-Co6qAkTZ.mjs → promotion-card-DwNbzSK3.mjs} +2 -2
- package/dist/{promotion-card-Co6qAkTZ.mjs.map → promotion-card-DwNbzSK3.mjs.map} +1 -1
- package/dist/promotion-card.cjs.js +1 -1
- package/dist/promotion-card.es.js +1 -1
- package/dist/purpur.css +1 -1
- package/dist/rich-text.cjs.js +1 -1
- package/dist/rich-text.es.js +1 -1
- package/dist/search-field-BR4gETPP.js +2 -0
- package/dist/search-field-BR4gETPP.js.map +1 -0
- package/dist/search-field-DyBcoB9g.mjs +186 -0
- package/dist/search-field-DyBcoB9g.mjs.map +1 -0
- package/dist/search-field.cjs.js +1 -1
- package/dist/search-field.es.js +1 -1
- package/dist/{stepper-D59T-Y2_.mjs → stepper-CGBjyjVw.mjs} +2 -2
- package/dist/{stepper-D59T-Y2_.mjs.map → stepper-CGBjyjVw.mjs.map} +1 -1
- package/dist/{stepper-Dao4XaDV.js → stepper-CbcFVE3v.js} +2 -2
- package/dist/{stepper-Dao4XaDV.js.map → stepper-CbcFVE3v.js.map} +1 -1
- package/dist/stepper.cjs.js +1 -1
- package/dist/stepper.es.js +1 -1
- package/dist/{table-CllIkAkM.js → table-CFBK5Gv4.js} +3 -3
- package/dist/{table-CllIkAkM.js.map → table-CFBK5Gv4.js.map} +1 -1
- package/dist/{table-7-6k_wGH.mjs → table-PdfWMFks.mjs} +8 -8
- package/dist/{table-7-6k_wGH.mjs.map → table-PdfWMFks.mjs.map} +1 -1
- package/dist/table.cjs.js +1 -1
- package/dist/table.es.js +1 -1
- package/dist/{text-area-9RUldq6W.js → text-area-AHqUSmEE.js} +2 -2
- package/dist/{text-area-9RUldq6W.js.map → text-area-AHqUSmEE.js.map} +1 -1
- package/dist/{text-area-C58aZEPa.mjs → text-area-DabB5eo_.mjs} +3 -3
- package/dist/{text-area-C58aZEPa.mjs.map → text-area-DabB5eo_.mjs.map} +1 -1
- package/dist/text-area.cjs.js +1 -1
- package/dist/text-area.es.js +1 -1
- package/dist/{text-spacing-BU0mkEf9.mjs → text-spacing-Bmkv_rmc.mjs} +3 -3
- package/dist/{text-spacing-BU0mkEf9.mjs.map → text-spacing-Bmkv_rmc.mjs.map} +1 -1
- package/dist/{text-spacing-CiGPZHuB.js → text-spacing-CdnbUO6z.js} +2 -2
- package/dist/{text-spacing-CiGPZHuB.js.map → text-spacing-CdnbUO6z.js.map} +1 -1
- package/dist/text-spacing.cjs.js +1 -1
- package/dist/text-spacing.es.js +1 -1
- package/dist/theme.cjs.js +1 -1
- package/dist/theme.es.js +3 -3
- package/dist/tokens/color/variables.css +1 -0
- package/dist/tokens/color/variables.d.ts +1 -0
- package/dist/tokens/color/variables.dark.css +1 -0
- package/dist/tokens/color/variables.dark.d.ts +1 -0
- package/dist/tokens/color/variables.dark.js +1 -0
- package/dist/tokens/color/variables.dark.json +1 -0
- package/dist/tokens/color/variables.dark.scss +1 -0
- package/dist/tokens/color/variables.js +1 -0
- package/dist/tokens/color/variables.json +1 -0
- package/dist/tokens/color/variables.scss +1 -0
- package/dist/tokens.cjs.js +1 -1
- package/dist/tokens.es.js +167 -166
- package/dist/{tooltip-DeP1UsPW.js → tooltip-DRW4N9Z-.js} +2 -2
- package/dist/{tooltip-DeP1UsPW.js.map → tooltip-DRW4N9Z-.js.map} +1 -1
- package/dist/{tooltip-bqdd2lJL.mjs → tooltip-DzY9olpb.mjs} +3 -3
- package/dist/{tooltip-bqdd2lJL.mjs.map → tooltip-DzY9olpb.mjs.map} +1 -1
- package/dist/tooltip.cjs.js +1 -1
- package/dist/tooltip.es.js +1 -1
- package/dist/use-autocomplete.es-CoAeiJiu.mjs +155 -0
- package/dist/use-autocomplete.es-CoAeiJiu.mjs.map +1 -0
- package/dist/use-autocomplete.es-Djt1u2i8.js +2 -0
- package/dist/use-autocomplete.es-Djt1u2i8.js.map +1 -0
- package/dist/useColorScheme-BtOgJUTy.js +2 -0
- package/dist/{useColorScheme-BHhPgv9q.js.map → useColorScheme-BtOgJUTy.js.map} +1 -1
- package/dist/{useColorScheme-B7lGBSe4.mjs → useColorScheme-DXAxJPXW.mjs} +2 -2
- package/dist/{useColorScheme-B7lGBSe4.mjs.map → useColorScheme-DXAxJPXW.mjs.map} +1 -1
- package/dist/useThemePortalContainer-Cs1c-2AI.js +2 -0
- package/dist/{useThemePortalContainer-CUcqV327.js.map → useThemePortalContainer-Cs1c-2AI.js.map} +1 -1
- package/dist/useThemePortalContainer-DeKoE-E_.mjs +9 -0
- package/dist/{useThemePortalContainer-D13Xx24N.mjs.map → useThemePortalContainer-DeKoE-E_.mjs.map} +1 -1
- package/dist/variables-CTBx79yI.js +2 -0
- package/dist/{variables-D1vNo1lO.js.map → variables-CTBx79yI.js.map} +1 -1
- package/dist/variables-Do6SfyT0.mjs +258 -0
- package/dist/{variables-BrsAsWIF.mjs.map → variables-Do6SfyT0.mjs.map} +1 -1
- package/package.json +18 -18
- package/src/library.ts +72 -2
- package/tokens/color/variables.css +1 -0
- package/tokens/color/variables.d.ts +1 -0
- package/tokens/color/variables.dark.css +1 -0
- package/tokens/color/variables.dark.d.ts +1 -0
- package/tokens/color/variables.dark.js +1 -0
- package/tokens/color/variables.dark.json +1 -0
- package/tokens/color/variables.dark.scss +1 -0
- package/tokens/color/variables.js +1 -0
- package/tokens/color/variables.json +1 -0
- package/tokens/color/variables.scss +1 -0
- package/dist/countdown-5Ni6OlVY.mjs +0 -189
- package/dist/countdown-5Ni6OlVY.mjs.map +0 -1
- package/dist/countdown-CGXJyzB2.js +0 -2
- package/dist/countdown-CGXJyzB2.js.map +0 -1
- package/dist/date-field-CtpWDaSh.js +0 -2
- package/dist/date-range-field-B33XeBW8.js +0 -2
- package/dist/date-range-field-B33XeBW8.js.map +0 -1
- package/dist/date-range-field-BmjQeiOv.mjs.map +0 -1
- package/dist/dismissable-chip-group-5ALErhD2.js +0 -2
- package/dist/dismissable-chip-group-5ALErhD2.js.map +0 -1
- package/dist/dismissable-chip-group-DMNU7g5e.mjs +0 -94
- package/dist/dismissable-chip-group-DMNU7g5e.mjs.map +0 -1
- package/dist/dropdown-B7W5fErJ.js +0 -2
- package/dist/dropdown-B7W5fErJ.js.map +0 -1
- package/dist/dropdown-CxEElxNf.mjs +0 -952
- package/dist/dropdown-CxEElxNf.mjs.map +0 -1
- package/dist/search-field-BTJtRyw5.mjs +0 -184
- package/dist/search-field-BTJtRyw5.mjs.map +0 -1
- package/dist/search-field-nzVXak1a.js +0 -2
- package/dist/search-field-nzVXak1a.js.map +0 -1
- package/dist/use-autocomplete.es-BwAzMcau.js +0 -2
- package/dist/use-autocomplete.es-BwAzMcau.js.map +0 -1
- package/dist/use-autocomplete.es-CKb0RHKG.mjs +0 -144
- package/dist/use-autocomplete.es-CKb0RHKG.mjs.map +0 -1
- package/dist/useColorScheme-BHhPgv9q.js +0 -2
- package/dist/useThemePortalContainer-CUcqV327.js +0 -2
- package/dist/useThemePortalContainer-D13Xx24N.mjs +0 -9
- package/dist/variables-BrsAsWIF.mjs +0 -257
- package/dist/variables-D1vNo1lO.js +0 -2
package/dist/tokens.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { p as kr, a as br, b as xr, c as Ir, d as hr, e as Nr, f as Pr, g as Gr } from "./variables-DkCN2x27.mjs";
|
|
2
|
-
import { p as Or, a as Mr, b as Wr, c as Ar, d as Er, e as Dr, f as Hr, g as Rr, h as Lr, i as Fr, j as Xr, k as wr, l as jr, m as Qr, n as qr, o as zr, q as Jr, r as Kr, s as Ur, t as Vr, u as Yr, v as Zr, w as _r, x as $r, y as ra, z as aa, A as ua, B as pa, C as oa, D as ea, E as ta, F as sa, G as na, H as ia, I as la, J as ca, K as ga, L as Ca, M as da, N as va, O as Ba, P as Ta, Q as Sa, R as ma, S as ya, T as ka, U as ba, V as xa, W as Ia, X as ha, Y as Na, Z as Pa, _ as Ga, $ as fa, a0 as Oa, a1 as Ma, a2 as Wa, a3 as Aa, a4 as Ea, a5 as Da, a6 as Ha, a7 as Ra, a8 as La, a9 as Fa, aa as Xa, ab as wa, ac as ja, ad as Qa, ae as qa, af as za, ag as Ja, ah as Ka, ai as Ua, aj as Va, ak as Ya, al as Za, am as _a, an as $a, ao as ru, ap as au, aq as uu, ar as pu, as as ou, at as eu, au as tu, av as su, aw as nu, ax as iu, ay as lu, az as cu, aA as gu, aB as Cu, aC as du, aD as vu, aE as Bu, aF as Tu, aG as Su, aH as mu, aI as yu, aJ as ku, aK as bu, aL as xu, aM as Iu, aN as hu, aO as Nu, aP as Pu, aQ as Gu, aR as fu, aS as Ou, aT as Mu, aU as Wu, aV as Au, aW as Eu, aX as Du, aY as Hu, aZ as Ru, a_ as Lu, a$ as Fu, b0 as Xu, b1 as wu, b2 as ju, b3 as Qu, b4 as qu, b5 as zu, b6 as Ju, b7 as Ku, b8 as Uu, b9 as Vu, ba as Yu, bb as Zu, bc as _u, bd as $u, be as rp, bf as ap, bg as up, bh as pp, bi as op, bj as ep, bk as tp, bl as sp, bm as np, bn as ip, bo as lp, bp as cp, bq as gp, br as Cp, bs as dp, bt as vp, bu as Bp, bv as Tp, bw as Sp, bx as mp, by as yp, bz as kp, bA as bp, bB as xp, bC as Ip, bD as hp, bE as Np, bF as Pp, bG as Gp, bH as fp, bI as Op, bJ as Mp, bK as Wp, bL as Ap, bM as Ep, bN as Dp, bO as Hp, bP as Rp, bQ as Lp, bR as Fp, bS as Xp, bT as wp, bU as jp, bV as Qp, bW as qp, bX as zp, bY as Jp, bZ as Kp, b_ as Up, b$ as Vp, c0 as Yp, c1 as Zp, c2 as _p, c3 as $p, c4 as ro, c5 as ao, c6 as uo, c7 as po, c8 as oo, c9 as eo, ca as to, cb as so, cc as no, cd as io, ce as lo, cf as co, cg as go, ch as Co, ci as vo, cj as Bo, ck as To, cl as So, cm as mo, cn as yo, co as ko, cp as bo, cq as xo, cr as Io, cs as ho, ct as No, cu as Po, cv as Go, cw as fo, cx as Oo, cy as Mo, cz as Wo, cA as Ao, cB as Eo, cC as Do, cD as Ho, cE as Ro, cF as Lo, cG as Fo, cH as Xo, cI as wo, cJ as jo, cK as Qo, cL as qo, cM as zo, cN as Jo, cO as Ko, cP as Uo, cQ as Vo, cR as Yo, cS as Zo, cT as _o, cU as $o, cV as re, cW as ae, cX as ue, cY as pe, cZ as oe, c_ as ee, c$ as te, d0 as se, d1 as ne, d2 as ie, d3 as le, d4 as ce, d5 as ge, d6 as Ce } from "./variables-
|
|
3
|
-
import { p as
|
|
2
|
+
import { p as Or, a as Mr, b as Wr, c as Ar, d as Er, e as Dr, f as Hr, g as Rr, h as Lr, i as Fr, j as Xr, k as wr, l as jr, m as Qr, n as qr, o as zr, q as Jr, r as Kr, s as Ur, t as Vr, u as Yr, v as Zr, w as _r, x as $r, y as ra, z as aa, A as ua, B as pa, C as oa, D as ea, E as ta, F as sa, G as na, H as ia, I as la, J as ca, K as ga, L as Ca, M as da, N as va, O as Ba, P as Ta, Q as Sa, R as ma, S as ya, T as ka, U as ba, V as xa, W as Ia, X as ha, Y as Na, Z as Pa, _ as Ga, $ as fa, a0 as Oa, a1 as Ma, a2 as Wa, a3 as Aa, a4 as Ea, a5 as Da, a6 as Ha, a7 as Ra, a8 as La, a9 as Fa, aa as Xa, ab as wa, ac as ja, ad as Qa, ae as qa, af as za, ag as Ja, ah as Ka, ai as Ua, aj as Va, ak as Ya, al as Za, am as _a, an as $a, ao as ru, ap as au, aq as uu, ar as pu, as as ou, at as eu, au as tu, av as su, aw as nu, ax as iu, ay as lu, az as cu, aA as gu, aB as Cu, aC as du, aD as vu, aE as Bu, aF as Tu, aG as Su, aH as mu, aI as yu, aJ as ku, aK as bu, aL as xu, aM as Iu, aN as hu, aO as Nu, aP as Pu, aQ as Gu, aR as fu, aS as Ou, aT as Mu, aU as Wu, aV as Au, aW as Eu, aX as Du, aY as Hu, aZ as Ru, a_ as Lu, a$ as Fu, b0 as Xu, b1 as wu, b2 as ju, b3 as Qu, b4 as qu, b5 as zu, b6 as Ju, b7 as Ku, b8 as Uu, b9 as Vu, ba as Yu, bb as Zu, bc as _u, bd as $u, be as rp, bf as ap, bg as up, bh as pp, bi as op, bj as ep, bk as tp, bl as sp, bm as np, bn as ip, bo as lp, bp as cp, bq as gp, br as Cp, bs as dp, bt as vp, bu as Bp, bv as Tp, bw as Sp, bx as mp, by as yp, bz as kp, bA as bp, bB as xp, bC as Ip, bD as hp, bE as Np, bF as Pp, bG as Gp, bH as fp, bI as Op, bJ as Mp, bK as Wp, bL as Ap, bM as Ep, bN as Dp, bO as Hp, bP as Rp, bQ as Lp, bR as Fp, bS as Xp, bT as wp, bU as jp, bV as Qp, bW as qp, bX as zp, bY as Jp, bZ as Kp, b_ as Up, b$ as Vp, c0 as Yp, c1 as Zp, c2 as _p, c3 as $p, c4 as ro, c5 as ao, c6 as uo, c7 as po, c8 as oo, c9 as eo, ca as to, cb as so, cc as no, cd as io, ce as lo, cf as co, cg as go, ch as Co, ci as vo, cj as Bo, ck as To, cl as So, cm as mo, cn as yo, co as ko, cp as bo, cq as xo, cr as Io, cs as ho, ct as No, cu as Po, cv as Go, cw as fo, cx as Oo, cy as Mo, cz as Wo, cA as Ao, cB as Eo, cC as Do, cD as Ho, cE as Ro, cF as Lo, cG as Fo, cH as Xo, cI as wo, cJ as jo, cK as Qo, cL as qo, cM as zo, cN as Jo, cO as Ko, cP as Uo, cQ as Vo, cR as Yo, cS as Zo, cT as _o, cU as $o, cV as re, cW as ae, cX as ue, cY as pe, cZ as oe, c_ as ee, c$ as te, d0 as se, d1 as ne, d2 as ie, d3 as le, d4 as ce, d5 as ge, d6 as Ce, d7 as de } from "./variables-Do6SfyT0.mjs";
|
|
3
|
+
import { p as Be, a as Te, b as Se, c as me, d as ye, e as ke, f as be, g as xe, h as Ie, i as he, j as Ne } from "./variables-Dr3Hsdn-.mjs";
|
|
4
4
|
const r = "2px", a = "4px", u = "8px", p = "16px", o = "24px", e = "999px", t = "1px", s = "2px", n = "3px", i = "6px", l = "blur(24px)", c = "linear-gradient(289deg, #3694d3 -13%, #6d02a3 58%)", g = "linear-gradient(289deg, #62b2e7 -13%, #f4e0ff 58%)", C = "linear-gradient(291deg, #3694d3 -15%, #990ae3 44%)", d = "linear-gradient(291deg, #62b2e7 -15%, #990ae3 44%)", v = "linear-gradient(291deg, #3694d3 -15%, #4e0174 44%, #b12df4 133%)", B = "linear-gradient(280deg, #62b2e7 -15%, #f4e0ff 23%, #f4e0ff 68%, #d58df9 112%)", T = "linear-gradient(352deg, #62b2e7 -69%, #1f002e 15%, #1f002e 87%, #d58df9 183%)", S = "linear-gradient(289deg, #3694d3 -13%, #6d02a3 58%)", m = "linear-gradient(289deg, #62b2e7 -13%, #f4e0ff 58%)", y = "0rem 0rem 0rem 0rem rgba(0, 0, 0, 0.1)", k = "0rem 0.0625rem 0.25rem 0rem rgba(0, 0, 0, 0.1)", b = "0rem 0.25rem 0.75rem 0rem rgba(0, 0, 0, 0.1)", x = "0rem 0.75rem 1.5rem 0rem rgba(0, 0, 0, 0.1)", I = "0rem", h = "0.0625rem", N = "0.125rem", P = "0.25rem", G = "0.5rem", f = "0.75rem", O = "1rem", M = "1.25rem", W = "1.5rem", A = "2rem", E = "3rem", D = "4rem", H = "5rem", R = "6rem", L = "8rem", F = "1rem", X = "1.5rem", w = "1.5rem", j = "1.5rem", Q = "1rem", q = "1.5rem", z = "3rem", J = "3rem", K = "TeliaSans, Helvetica, Arial, 'Lucida Grande', sans-serif", U = "TeliaSansHeading, Helvetica, Arial, 'Lucida Grande', sans-serif", V = "400", Y = "500", Z = "700", _ = "100%", $ = "110%", rr = "125%", ar = "150%", ur = "175%", pr = "0.75rem", or = "0.875rem", er = "1rem", tr = "1.125rem", sr = "1.25rem", nr = "1.375rem", ir = "1.5rem", lr = "1.75rem", cr = "2rem", gr = "2.25rem", Cr = "2.5rem", dr = "3rem", vr = "3.5rem", Br = "4rem", Tr = "5rem", Sr = "6rem";
|
|
5
5
|
export {
|
|
6
6
|
e as purpurBorderRadiusFull,
|
|
@@ -121,159 +121,160 @@ export {
|
|
|
121
121
|
mu as purpurColorBorderWeakNegative,
|
|
122
122
|
yu as purpurColorBrandBeige,
|
|
123
123
|
ku as purpurColorBrandCorePurple,
|
|
124
|
-
bu as
|
|
125
|
-
xu as
|
|
126
|
-
Iu as
|
|
127
|
-
hu as
|
|
128
|
-
Nu as
|
|
129
|
-
Pu as
|
|
130
|
-
Gu as
|
|
131
|
-
fu as
|
|
132
|
-
Ou as
|
|
133
|
-
Mu as
|
|
134
|
-
Wu as
|
|
135
|
-
Au as
|
|
136
|
-
Eu as
|
|
137
|
-
Du as
|
|
138
|
-
Hu as
|
|
139
|
-
Ru as
|
|
140
|
-
Lu as
|
|
141
|
-
Fu as
|
|
142
|
-
Xu as
|
|
143
|
-
wu as
|
|
144
|
-
ju as
|
|
145
|
-
Qu as
|
|
146
|
-
qu as
|
|
147
|
-
zu as
|
|
148
|
-
Ju as
|
|
149
|
-
Ku as
|
|
150
|
-
Uu as
|
|
151
|
-
Vu as
|
|
152
|
-
Yu as
|
|
153
|
-
Zu as
|
|
154
|
-
_u as
|
|
155
|
-
$u as
|
|
156
|
-
rp as
|
|
157
|
-
ap as
|
|
158
|
-
up as
|
|
159
|
-
pp as
|
|
160
|
-
op as
|
|
161
|
-
ep as
|
|
162
|
-
tp as
|
|
163
|
-
sp as
|
|
164
|
-
np as
|
|
165
|
-
ip as
|
|
166
|
-
lp as
|
|
167
|
-
cp as
|
|
168
|
-
gp as
|
|
169
|
-
Cp as
|
|
170
|
-
dp as
|
|
171
|
-
vp as
|
|
172
|
-
Bp as
|
|
173
|
-
Tp as
|
|
174
|
-
Sp as
|
|
175
|
-
mp as
|
|
176
|
-
yp as
|
|
177
|
-
kp as
|
|
178
|
-
bp as
|
|
179
|
-
xp as
|
|
180
|
-
Ip as
|
|
181
|
-
hp as
|
|
182
|
-
Np as
|
|
183
|
-
Pp as
|
|
184
|
-
Gp as
|
|
185
|
-
fp as
|
|
186
|
-
Op as
|
|
187
|
-
Mp as
|
|
188
|
-
Wp as
|
|
189
|
-
Ap as
|
|
190
|
-
Ep as
|
|
191
|
-
Dp as
|
|
192
|
-
Hp as
|
|
193
|
-
Rp as
|
|
194
|
-
Lp as
|
|
195
|
-
Fp as
|
|
196
|
-
Xp as
|
|
197
|
-
wp as
|
|
198
|
-
jp as
|
|
199
|
-
Qp as
|
|
200
|
-
qp as
|
|
201
|
-
zp as
|
|
202
|
-
Jp as
|
|
203
|
-
Kp as
|
|
204
|
-
Up as
|
|
205
|
-
Vp as
|
|
206
|
-
Yp as
|
|
207
|
-
Zp as
|
|
208
|
-
_p as
|
|
209
|
-
$p as
|
|
210
|
-
ro as
|
|
211
|
-
ao as
|
|
212
|
-
uo as
|
|
213
|
-
po as
|
|
214
|
-
oo as
|
|
215
|
-
eo as
|
|
216
|
-
to as
|
|
217
|
-
so as
|
|
218
|
-
no as
|
|
219
|
-
io as
|
|
220
|
-
lo as
|
|
221
|
-
co as
|
|
222
|
-
go as
|
|
223
|
-
Co as
|
|
224
|
-
vo as
|
|
225
|
-
Bo as
|
|
226
|
-
To as
|
|
227
|
-
So as
|
|
228
|
-
mo as
|
|
229
|
-
yo as
|
|
230
|
-
ko as
|
|
231
|
-
bo as
|
|
232
|
-
xo as
|
|
233
|
-
Io as
|
|
234
|
-
ho as
|
|
235
|
-
No as
|
|
236
|
-
Po as
|
|
237
|
-
Go as
|
|
238
|
-
fo as
|
|
239
|
-
Oo as
|
|
240
|
-
Mo as
|
|
241
|
-
Wo as
|
|
242
|
-
Ao as
|
|
243
|
-
Eo as
|
|
244
|
-
Do as
|
|
245
|
-
Ho as
|
|
246
|
-
Ro as
|
|
247
|
-
Lo as
|
|
248
|
-
Fo as
|
|
249
|
-
Xo as
|
|
250
|
-
wo as
|
|
251
|
-
jo as
|
|
252
|
-
Qo as
|
|
253
|
-
qo as
|
|
254
|
-
zo as
|
|
255
|
-
Jo as
|
|
256
|
-
Ko as
|
|
257
|
-
Uo as
|
|
258
|
-
Vo as
|
|
259
|
-
Yo as
|
|
260
|
-
Zo as
|
|
261
|
-
_o as
|
|
262
|
-
$o as
|
|
263
|
-
re as
|
|
264
|
-
ae as
|
|
265
|
-
ue as
|
|
266
|
-
pe as
|
|
267
|
-
oe as
|
|
268
|
-
ee as
|
|
269
|
-
te as
|
|
270
|
-
se as
|
|
271
|
-
ne as
|
|
272
|
-
ie as
|
|
273
|
-
le as
|
|
274
|
-
ce as
|
|
275
|
-
ge as
|
|
276
|
-
Ce as
|
|
124
|
+
bu as purpurColorBrandCorePurpleNegative,
|
|
125
|
+
xu as purpurColorBrandDeepBeige,
|
|
126
|
+
Iu as purpurColorBrandDeepPurple,
|
|
127
|
+
hu as purpurColorBrandLightBeige,
|
|
128
|
+
Nu as purpurColorBrandLightPurple,
|
|
129
|
+
Pu as purpurColorBrandOffBlack,
|
|
130
|
+
Gu as purpurColorBrandWhite,
|
|
131
|
+
fu as purpurColorFunctionalBlack,
|
|
132
|
+
Ou as purpurColorFunctionalTransparent,
|
|
133
|
+
Mu as purpurColorFunctionalWhite,
|
|
134
|
+
Wu as purpurColorGradientAiBottom,
|
|
135
|
+
Au as purpurColorGradientAiBottomNegative,
|
|
136
|
+
Eu as purpurColorGradientAiTop,
|
|
137
|
+
Du as purpurColorGradientAiTopNegative,
|
|
138
|
+
Hu as purpurColorGray100,
|
|
139
|
+
Ru as purpurColorGray150,
|
|
140
|
+
Lu as purpurColorGray200,
|
|
141
|
+
Fu as purpurColorGray300,
|
|
142
|
+
Xu as purpurColorGray400,
|
|
143
|
+
wu as purpurColorGray50,
|
|
144
|
+
ju as purpurColorGray500,
|
|
145
|
+
Qu as purpurColorGray600,
|
|
146
|
+
qu as purpurColorGray700,
|
|
147
|
+
zu as purpurColorGray800,
|
|
148
|
+
Ju as purpurColorGray850,
|
|
149
|
+
Ku as purpurColorGray900,
|
|
150
|
+
Uu as purpurColorGray950,
|
|
151
|
+
Vu as purpurColorGreen100,
|
|
152
|
+
Yu as purpurColorGreen200,
|
|
153
|
+
Zu as purpurColorGreen300,
|
|
154
|
+
_u as purpurColorGreen400,
|
|
155
|
+
$u as purpurColorGreen50,
|
|
156
|
+
rp as purpurColorGreen500,
|
|
157
|
+
ap as purpurColorGreen600,
|
|
158
|
+
up as purpurColorGreen700,
|
|
159
|
+
pp as purpurColorGreen800,
|
|
160
|
+
op as purpurColorGreen900,
|
|
161
|
+
ep as purpurColorGreen950,
|
|
162
|
+
tp as purpurColorOrange100,
|
|
163
|
+
sp as purpurColorOrange200,
|
|
164
|
+
np as purpurColorOrange300,
|
|
165
|
+
ip as purpurColorOrange400,
|
|
166
|
+
lp as purpurColorOrange50,
|
|
167
|
+
cp as purpurColorOrange500,
|
|
168
|
+
gp as purpurColorOrange600,
|
|
169
|
+
Cp as purpurColorOrange700,
|
|
170
|
+
dp as purpurColorOrange800,
|
|
171
|
+
vp as purpurColorOrange900,
|
|
172
|
+
Bp as purpurColorOrange950,
|
|
173
|
+
Tp as purpurColorOverlayDefault,
|
|
174
|
+
Sp as purpurColorPurple100,
|
|
175
|
+
mp as purpurColorPurple200,
|
|
176
|
+
yp as purpurColorPurple300,
|
|
177
|
+
kp as purpurColorPurple400,
|
|
178
|
+
bp as purpurColorPurple50,
|
|
179
|
+
xp as purpurColorPurple500,
|
|
180
|
+
Ip as purpurColorPurple550,
|
|
181
|
+
hp as purpurColorPurple600,
|
|
182
|
+
Np as purpurColorPurple700,
|
|
183
|
+
Pp as purpurColorPurple800,
|
|
184
|
+
Gp as purpurColorPurple900,
|
|
185
|
+
fp as purpurColorPurple950,
|
|
186
|
+
Op as purpurColorRed100,
|
|
187
|
+
Mp as purpurColorRed200,
|
|
188
|
+
Wp as purpurColorRed300,
|
|
189
|
+
Ap as purpurColorRed400,
|
|
190
|
+
Ep as purpurColorRed50,
|
|
191
|
+
Dp as purpurColorRed500,
|
|
192
|
+
Hp as purpurColorRed600,
|
|
193
|
+
Rp as purpurColorRed700,
|
|
194
|
+
Lp as purpurColorRed800,
|
|
195
|
+
Fp as purpurColorRed900,
|
|
196
|
+
Xp as purpurColorRed950,
|
|
197
|
+
wp as purpurColorTeal100,
|
|
198
|
+
jp as purpurColorTeal200,
|
|
199
|
+
Qp as purpurColorTeal300,
|
|
200
|
+
qp as purpurColorTeal400,
|
|
201
|
+
zp as purpurColorTeal50,
|
|
202
|
+
Jp as purpurColorTeal500,
|
|
203
|
+
Kp as purpurColorTeal600,
|
|
204
|
+
Up as purpurColorTeal700,
|
|
205
|
+
Vp as purpurColorTeal800,
|
|
206
|
+
Yp as purpurColorTeal900,
|
|
207
|
+
Zp as purpurColorTeal950,
|
|
208
|
+
_p as purpurColorTextDefault,
|
|
209
|
+
$p as purpurColorTextDefaultNegative,
|
|
210
|
+
ro as purpurColorTextInteractiveOnDestructive,
|
|
211
|
+
ao as purpurColorTextInteractiveOnExpressive,
|
|
212
|
+
uo as purpurColorTextInteractiveOnExpressiveActive,
|
|
213
|
+
po as purpurColorTextInteractiveOnExpressiveActiveNegative,
|
|
214
|
+
oo as purpurColorTextInteractiveOnExpressiveHover,
|
|
215
|
+
eo as purpurColorTextInteractiveOnExpressiveHoverNegative,
|
|
216
|
+
to as purpurColorTextInteractiveOnExpressiveNegative,
|
|
217
|
+
so as purpurColorTextInteractiveOnPrimary,
|
|
218
|
+
no as purpurColorTextInteractiveOnPrimaryNegative,
|
|
219
|
+
io as purpurColorTextInteractivePrimary,
|
|
220
|
+
lo as purpurColorTextInteractivePrimaryActive,
|
|
221
|
+
co as purpurColorTextInteractivePrimaryActiveNegative,
|
|
222
|
+
go as purpurColorTextInteractivePrimaryHover,
|
|
223
|
+
Co as purpurColorTextInteractivePrimaryHoverNegative,
|
|
224
|
+
vo as purpurColorTextInteractivePrimaryNegative,
|
|
225
|
+
Bo as purpurColorTextInteractiveSelected,
|
|
226
|
+
To as purpurColorTextInteractiveSelectedNegative,
|
|
227
|
+
So as purpurColorTextMedium,
|
|
228
|
+
mo as purpurColorTextMediumNegative,
|
|
229
|
+
yo as purpurColorTextStatusAttention,
|
|
230
|
+
ko as purpurColorTextStatusBlackFriday,
|
|
231
|
+
bo as purpurColorTextStatusDiscount,
|
|
232
|
+
xo as purpurColorTextStatusErrorMedium,
|
|
233
|
+
Io as purpurColorTextStatusErrorMediumNegative,
|
|
234
|
+
ho as purpurColorTextStatusErrorStrong,
|
|
235
|
+
No as purpurColorTextStatusErrorStrongNegative,
|
|
236
|
+
Po as purpurColorTextStatusInfoMedium,
|
|
237
|
+
Go as purpurColorTextStatusInfoStrong,
|
|
238
|
+
fo as purpurColorTextStatusNeutral,
|
|
239
|
+
Oo as purpurColorTextStatusSpecial,
|
|
240
|
+
Mo as purpurColorTextStatusSuccessMedium,
|
|
241
|
+
Wo as purpurColorTextStatusSuccessMediumNegative,
|
|
242
|
+
Ao as purpurColorTextStatusSuccessStrong,
|
|
243
|
+
Eo as purpurColorTextStatusSuccessStrongNegative,
|
|
244
|
+
Do as purpurColorTextStatusWarningMedium,
|
|
245
|
+
Ho as purpurColorTextStatusWarningMediumNegative,
|
|
246
|
+
Ro as purpurColorTextStatusWarningStrong,
|
|
247
|
+
Lo as purpurColorTextToneOnTonePrimary,
|
|
248
|
+
Fo as purpurColorTextToneOnToneSecondary,
|
|
249
|
+
Xo as purpurColorTextToneOnToneTertiary,
|
|
250
|
+
wo as purpurColorTextWeak,
|
|
251
|
+
jo as purpurColorTextWeakNegative,
|
|
252
|
+
Qo as purpurColorTransparentBlack100,
|
|
253
|
+
qo as purpurColorTransparentBlack150,
|
|
254
|
+
zo as purpurColorTransparentBlack200,
|
|
255
|
+
Jo as purpurColorTransparentBlack300,
|
|
256
|
+
Ko as purpurColorTransparentBlack400,
|
|
257
|
+
Uo as purpurColorTransparentBlack50,
|
|
258
|
+
Vo as purpurColorTransparentBlack500,
|
|
259
|
+
Yo as purpurColorTransparentBlack600,
|
|
260
|
+
Zo as purpurColorTransparentBlack700,
|
|
261
|
+
_o as purpurColorTransparentBlack800,
|
|
262
|
+
$o as purpurColorTransparentBlack850,
|
|
263
|
+
re as purpurColorTransparentBlack900,
|
|
264
|
+
ae as purpurColorTransparentBlack950,
|
|
265
|
+
ue as purpurColorTransparentWhite100,
|
|
266
|
+
pe as purpurColorTransparentWhite150,
|
|
267
|
+
oe as purpurColorTransparentWhite200,
|
|
268
|
+
ee as purpurColorTransparentWhite300,
|
|
269
|
+
te as purpurColorTransparentWhite400,
|
|
270
|
+
se as purpurColorTransparentWhite50,
|
|
271
|
+
ne as purpurColorTransparentWhite500,
|
|
272
|
+
ie as purpurColorTransparentWhite600,
|
|
273
|
+
le as purpurColorTransparentWhite700,
|
|
274
|
+
ce as purpurColorTransparentWhite800,
|
|
275
|
+
ge as purpurColorTransparentWhite850,
|
|
276
|
+
Ce as purpurColorTransparentWhite900,
|
|
277
|
+
de as purpurColorTransparentWhite950,
|
|
277
278
|
l as purpurFilterBlurOnImage,
|
|
278
279
|
C as purpurGradientAiBackgroundInteractiveExpressive,
|
|
279
280
|
d as purpurGradientAiBackgroundInteractiveExpressiveNegative,
|
|
@@ -284,17 +285,17 @@ export {
|
|
|
284
285
|
m as purpurGradientAiBorderInteractivePrimaryNegative,
|
|
285
286
|
c as purpurGradientAiTextInteractivePrimary,
|
|
286
287
|
g as purpurGradientAiTextInteractivePrimaryNegative,
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
288
|
+
Be as purpurMotionDuration100,
|
|
289
|
+
Te as purpurMotionDuration150,
|
|
290
|
+
Se as purpurMotionDuration1500,
|
|
291
|
+
me as purpurMotionDuration200,
|
|
292
|
+
ye as purpurMotionDuration2000,
|
|
293
|
+
ke as purpurMotionDuration300,
|
|
294
|
+
be as purpurMotionDuration400,
|
|
295
|
+
xe as purpurMotionDuration500,
|
|
296
|
+
Ie as purpurMotionEasingEaseIn,
|
|
297
|
+
he as purpurMotionEasingEaseInOut,
|
|
298
|
+
Ne as purpurMotionEasingEaseOut,
|
|
298
299
|
x as purpurShadowLg,
|
|
299
300
|
b as purpurShadowMd,
|
|
300
301
|
y as purpurShadowNone,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const p=require("react/jsx-runtime"),D=require("react"),de=require("./button-C5CYysw5.js"),lt=require("./info.es-Br84jly5.js"),pe=require("./paragraph-B8HFdNne.js"),K=require("./variables-BSBunpiY.js");require("./ThemeProvider-BJGm3zai.js");const ut=require("./useThemePortalContainer-CUcqV327.js"),$=require("./index-BPY_9ddu.js"),me=require("react-dom"),_=require("./floating-ui.react-dom-Cc_YSprQ.js"),dt=require("./bind-DeUYJ6m9.js");function ye(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 s=ye(D),pt=ye(me);function A(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function fe(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ge(...e){return t=>{let n=!1;const r=e.map(o=>{const i=fe(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():fe(e[o],null)}}}}function j(...e){return s.useCallback(ge(...e),e)}function we(e,t=[]){let n=[];function r(i,a){const u=s.createContext(a),c=n.length;n=[...n,a];const l=f=>{const{scope:v,children:h,...m}=f,y=v?.[e]?.[c]||u,w=s.useMemo(()=>m,Object.values(m));return p.jsx(y.Provider,{value:w,children:h})};l.displayName=i+"Provider";function d(f,v){const h=v?.[e]?.[c]||u,m=s.useContext(h);if(m)return m;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${i}\``)}return[l,d]}const o=()=>{const i=n.map(a=>s.createContext(a));return function(u){const c=u?.[e]||i;return s.useMemo(()=>({[`__scope${e}`]:{...u,[e]:c}}),[u,c])}};return o.scopeName=e,[r,ft(o,...t)]}function ft(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const a=r.reduce((u,{useScope:c,scopeName:l})=>{const f=c(i)[`__scope${l}`];return{...u,...f}},{});return s.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}var xe=s.forwardRef((e,t)=>{const{children:n,...r}=e,o=s.Children.toArray(n),i=o.find(ht);if(i){const a=i.props.children,u=o.map(c=>c===i?s.Children.count(a)>1?s.Children.only(null):s.isValidElement(a)?a.props.children:null:c);return p.jsx(J,{...r,ref:t,children:s.isValidElement(a)?s.cloneElement(a,void 0,u):null})}return p.jsx(J,{...r,ref:t,children:n})});xe.displayName="Slot";var J=s.forwardRef((e,t)=>{const{children:n,...r}=e;if(s.isValidElement(n)){const o=mt(n),i=vt(r,n.props);return n.type!==s.Fragment&&(i.ref=t?ge(t,o):o),s.cloneElement(n,i)}return s.Children.count(n)>1?s.Children.only(null):null});J.displayName="SlotClone";var Pe=({children:e})=>p.jsx(p.Fragment,{children:e});function ht(e){return s.isValidElement(e)&&e.type===Pe}function vt(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]=(...u)=>{i(...u),o(...u)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function mt(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var yt=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],N=yt.reduce((e,t)=>{const n=s.forwardRef((r,o)=>{const{asChild:i,...a}=r,u=i?xe:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(u,{...a,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function gt(e,t){e&&pt.flushSync(()=>e.dispatchEvent(t))}function k(e){const t=s.useRef(e);return s.useEffect(()=>{t.current=e}),s.useMemo(()=>(...n)=>t.current?.(...n),[])}function wt(e,t=globalThis?.document){const n=k(e);s.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var xt="DismissableLayer",Q="dismissableLayer.update",Pt="dismissableLayer.pointerDownOutside",Ct="dismissableLayer.focusOutside",he,Ce=s.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),be=s.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:a,onDismiss:u,...c}=e,l=s.useContext(Ce),[d,f]=s.useState(null),v=d?.ownerDocument??globalThis?.document,[,h]=s.useState({}),m=j(t,g=>f(g)),y=Array.from(l.layers),[w]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),C=y.indexOf(w),x=d?y.indexOf(d):-1,b=l.layersWithOutsidePointerEventsDisabled.size>0,P=x>=C,E=Tt(g=>{const O=g.target,S=[...l.branches].some(R=>R.contains(O));!P||S||(o?.(g),a?.(g),g.defaultPrevented||u?.())},v),T=Ot(g=>{const O=g.target;[...l.branches].some(R=>R.contains(O))||(i?.(g),a?.(g),g.defaultPrevented||u?.())},v);return wt(g=>{x===l.layers.size-1&&(r?.(g),!g.defaultPrevented&&u&&(g.preventDefault(),u()))},v),s.useEffect(()=>{if(d)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(he=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(d)),l.layers.add(d),ve(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=he)}},[d,v,n,l]),s.useEffect(()=>()=>{d&&(l.layers.delete(d),l.layersWithOutsidePointerEventsDisabled.delete(d),ve())},[d,l]),s.useEffect(()=>{const g=()=>h({});return document.addEventListener(Q,g),()=>document.removeEventListener(Q,g)},[]),p.jsx(N.div,{...c,ref:m,style:{pointerEvents:b?P?"auto":"none":void 0,...e.style},onFocusCapture:A(e.onFocusCapture,T.onFocusCapture),onBlurCapture:A(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:A(e.onPointerDownCapture,E.onPointerDownCapture)})});be.displayName=xt;var bt="DismissableLayerBranch",Et=s.forwardRef((e,t)=>{const n=s.useContext(Ce),r=s.useRef(null),o=j(t,r);return s.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),p.jsx(N.div,{...e,ref:o})});Et.displayName=bt;function Tt(e,t=globalThis?.document){const n=k(e),r=s.useRef(!1),o=s.useRef(()=>{});return s.useEffect(()=>{const i=u=>{if(u.target&&!r.current){let c=function(){Ee(Pt,n,l,{discrete:!0})};const l={originalEvent:u};u.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Ot(e,t=globalThis?.document){const n=k(e),r=s.useRef(!1);return s.useEffect(()=>{const o=i=>{i.target&&!r.current&&Ee(Ct,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function ve(){const e=new CustomEvent(Q);document.dispatchEvent(e)}function Ee(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?gt(o,i):o.dispatchEvent(i)}var L=globalThis?.document?s.useLayoutEffect:()=>{},_t=s.useId||(()=>{}),At=0;function Rt(e){const[t,n]=s.useState(_t());return L(()=>{n(r=>r??String(At++))},[e]),t?`radix-${t}`:""}var Nt="Arrow",Te=s.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return p.jsx(N.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:p.jsx("polygon",{points:"0,0 30,0 15,10"})})});Te.displayName=Nt;var St=Te;function Dt(e){const[t,n]=s.useState(void 0);return L(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let a,u;if("borderBoxSize"in i){const c=i.borderBoxSize,l=Array.isArray(c)?c[0]:c;a=l.inlineSize,u=l.blockSize}else a=e.offsetWidth,u=e.offsetHeight;n({width:a,height:u})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var ne="Popper",[Oe,_e]=we(ne),[Lt,Ae]=Oe(ne),Re=e=>{const{__scopePopper:t,children:n}=e,[r,o]=s.useState(null);return p.jsx(Lt,{scope:t,anchor:r,onAnchorChange:o,children:n})};Re.displayName=ne;var Ne="PopperAnchor",Se=s.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Ae(Ne,n),a=s.useRef(null),u=j(t,a);return s.useEffect(()=>{i.onAnchorChange(r?.current||a.current)}),r?null:p.jsx(N.div,{...o,ref:u})});Se.displayName=Ne;var re="PopperContent",[jt,Mt]=Oe(re),De=s.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:a=0,arrowPadding:u=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:v=!1,updatePositionStrategy:h="optimized",onPlaced:m,...y}=e,w=Ae(re,n),[C,x]=s.useState(null),b=j(t,H=>x(H)),[P,E]=s.useState(null),T=Dt(P),g=T?.width??0,O=T?.height??0,S=r+(i!=="center"?"-"+i:""),R=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},B=Array.isArray(l)?l:[l],Ke=B.length>0,U={padding:R,boundary:B.filter(Ft),altBoundary:Ke},{refs:Ze,floatingStyles:ae,placement:Je,isPositioned:z,middlewareData:M}=_.useFloating({strategy:"fixed",placement:S,whileElementsMounted:(...H)=>_.autoUpdate(...H,{animationFrame:h==="always"}),elements:{reference:w.anchor},middleware:[_.offset({mainAxis:o+O,alignmentAxis:a}),c&&_.shift({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?_.limitShift():void 0,...U}),c&&_.flip({...U}),_.size({...U,apply:({elements:H,rects:ue,availableWidth:st,availableHeight:it})=>{const{width:at,height:ct}=ue.reference,q=H.floating.style;q.setProperty("--radix-popper-available-width",`${st}px`),q.setProperty("--radix-popper-available-height",`${it}px`),q.setProperty("--radix-popper-anchor-width",`${at}px`),q.setProperty("--radix-popper-anchor-height",`${ct}px`)}}),P&&_.arrow({element:P,padding:u}),kt({arrowWidth:g,arrowHeight:O}),v&&_.hide({strategy:"referenceHidden",...U})]}),[ce,Qe]=Me(Je),le=k(m);L(()=>{z&&le?.()},[z,le]);const et=M.arrow?.x,tt=M.arrow?.y,nt=M.arrow?.centerOffset!==0,[rt,ot]=s.useState();return L(()=>{C&&ot(window.getComputedStyle(C).zIndex)},[C]),p.jsx("div",{ref:Ze.setFloating,"data-radix-popper-content-wrapper":"",style:{...ae,transform:z?ae.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:rt,"--radix-popper-transform-origin":[M.transformOrigin?.x,M.transformOrigin?.y].join(" "),...M.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:p.jsx(jt,{scope:n,placedSide:ce,onArrowChange:E,arrowX:et,arrowY:tt,shouldHideArrow:nt,children:p.jsx(N.div,{"data-side":ce,"data-align":Qe,...y,ref:b,style:{...y.style,animation:z?void 0:"none"}})})})});De.displayName=re;var Le="PopperArrow",It={top:"bottom",right:"left",bottom:"top",left:"right"},je=s.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=Mt(Le,r),a=It[i.placedSide];return p.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:p.jsx(St,{...o,ref:n,style:{...o.style,display:"block"}})})});je.displayName=Le;function Ft(e){return e!==null}var kt=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,a=o.arrow?.centerOffset!==0,u=a?0:e.arrowWidth,c=a?0:e.arrowHeight,[l,d]=Me(n),f={start:"0%",center:"50%",end:"100%"}[d],v=(o.arrow?.x??0)+u/2,h=(o.arrow?.y??0)+c/2;let m="",y="";return l==="bottom"?(m=a?f:`${v}px`,y=`${-c}px`):l==="top"?(m=a?f:`${v}px`,y=`${r.floating.height+c}px`):l==="right"?(m=`${-c}px`,y=a?f:`${h}px`):l==="left"&&(m=`${r.floating.width+c}px`,y=a?f:`${h}px`),{data:{x:m,y}}}});function Me(e){const[t,n="center"]=e.split("-");return[t,n]}var Ht=Re,$t=Se,Wt=De,Bt=je,Ut="Portal",Ie=s.forwardRef((e,t)=>{const{container:n,...r}=e,[o,i]=s.useState(!1);L(()=>i(!0),[]);const a=n||o&&globalThis?.document?.body;return a?me.createPortal(p.jsx(N.div,{...r,ref:t}),a):null});Ie.displayName=Ut;function zt(e,t){return s.useReducer((n,r)=>t[n][r]??n,e)}var oe=e=>{const{present:t,children:n}=e,r=qt(t),o=typeof n=="function"?n({present:r.isPresent}):s.Children.only(n),i=j(r.ref,Vt(o));return typeof n=="function"||r.isPresent?s.cloneElement(o,{ref:i}):null};oe.displayName="Presence";function qt(e){const[t,n]=s.useState(),r=s.useRef({}),o=s.useRef(e),i=s.useRef("none"),a=e?"mounted":"unmounted",[u,c]=zt(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return s.useEffect(()=>{const l=V(r.current);i.current=u==="mounted"?l:"none"},[u]),L(()=>{const l=r.current,d=o.current;if(d!==e){const v=i.current,h=V(l);e?c("MOUNT"):h==="none"||l?.display==="none"?c("UNMOUNT"):c(d&&v!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),L(()=>{if(t){let l;const d=t.ownerDocument.defaultView??window,f=h=>{const y=V(r.current).includes(h.animationName);if(h.target===t&&y&&(c("ANIMATION_END"),!o.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",l=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},v=h=>{h.target===t&&(i.current=V(r.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(l),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:s.useCallback(l=>{l&&(r.current=getComputedStyle(l)),n(l)},[])}}function V(e){return e?.animationName||"none"}function Vt(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Gt({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=Yt({defaultProp:t,onChange:n}),i=e!==void 0,a=i?e:r,u=k(n),c=s.useCallback(l=>{if(i){const f=typeof l=="function"?l(e):l;f!==e&&u(f)}else o(l)},[i,e,o,u]);return[a,c]}function Yt({defaultProp:e,onChange:t}){const n=s.useState(e),[r]=n,o=s.useRef(r),i=k(t);return s.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}var Xt="VisuallyHidden",Fe=s.forwardRef((e,t)=>p.jsx(N.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));Fe.displayName=Xt;var Kt=Fe,[G]=we("Tooltip",[_e]),Y=_e(),ke="TooltipProvider",Zt=700,ee="tooltip.open",[Jt,se]=G(ke),He=e=>{const{__scopeTooltip:t,delayDuration:n=Zt,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:i}=e,[a,u]=s.useState(!0),c=s.useRef(!1),l=s.useRef(0);return s.useEffect(()=>{const d=l.current;return()=>window.clearTimeout(d)},[]),p.jsx(Jt,{scope:t,isOpenDelayed:a,delayDuration:n,onOpen:s.useCallback(()=>{window.clearTimeout(l.current),u(!1)},[]),onClose:s.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>u(!0),r)},[r]),isPointerInTransitRef:c,onPointerInTransitChange:s.useCallback(d=>{c.current=d},[]),disableHoverableContent:o,children:i})};He.displayName=ke;var X="Tooltip",[Qt,W]=G(X),$e=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:i,disableHoverableContent:a,delayDuration:u}=e,c=se(X,e.__scopeTooltip),l=Y(t),[d,f]=s.useState(null),v=Rt(),h=s.useRef(0),m=a??c.disableHoverableContent,y=u??c.delayDuration,w=s.useRef(!1),[C=!1,x]=Gt({prop:r,defaultProp:o,onChange:g=>{g?(c.onOpen(),document.dispatchEvent(new CustomEvent(ee))):c.onClose(),i?.(g)}}),b=s.useMemo(()=>C?w.current?"delayed-open":"instant-open":"closed",[C]),P=s.useCallback(()=>{window.clearTimeout(h.current),h.current=0,w.current=!1,x(!0)},[x]),E=s.useCallback(()=>{window.clearTimeout(h.current),h.current=0,x(!1)},[x]),T=s.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{w.current=!0,x(!0),h.current=0},y)},[y,x]);return s.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),p.jsx(Ht,{...l,children:p.jsx(Qt,{scope:t,contentId:v,open:C,stateAttribute:b,trigger:d,onTriggerChange:f,onTriggerEnter:s.useCallback(()=>{c.isOpenDelayed?T():P()},[c.isOpenDelayed,T,P]),onTriggerLeave:s.useCallback(()=>{m?E():(window.clearTimeout(h.current),h.current=0)},[E,m]),onOpen:P,onClose:E,disableHoverableContent:m,children:n})})};$e.displayName=X;var te="TooltipTrigger",We=s.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=W(te,n),i=se(te,n),a=Y(n),u=s.useRef(null),c=j(t,u,o.onTriggerChange),l=s.useRef(!1),d=s.useRef(!1),f=s.useCallback(()=>l.current=!1,[]);return s.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),p.jsx($t,{asChild:!0,...a,children:p.jsx(N.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:c,onPointerMove:A(e.onPointerMove,v=>{v.pointerType!=="touch"&&!d.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:A(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:A(e.onPointerDown,()=>{l.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:A(e.onFocus,()=>{l.current||o.onOpen()}),onBlur:A(e.onBlur,o.onClose),onClick:A(e.onClick,o.onClose)})})});We.displayName=te;var ie="TooltipPortal",[en,tn]=G(ie,{forceMount:void 0}),Be=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,i=W(ie,t);return p.jsx(en,{scope:t,forceMount:n,children:p.jsx(oe,{present:n||i.open,children:p.jsx(Ie,{asChild:!0,container:o,children:r})})})};Be.displayName=ie;var F="TooltipContent",Ue=s.forwardRef((e,t)=>{const n=tn(F,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,a=W(F,e.__scopeTooltip);return p.jsx(oe,{present:r||a.open,children:a.disableHoverableContent?p.jsx(ze,{side:o,...i,ref:t}):p.jsx(nn,{side:o,...i,ref:t})})}),nn=s.forwardRef((e,t)=>{const n=W(F,e.__scopeTooltip),r=se(F,e.__scopeTooltip),o=s.useRef(null),i=j(t,o),[a,u]=s.useState(null),{trigger:c,onClose:l}=n,d=o.current,{onPointerInTransitChange:f}=r,v=s.useCallback(()=>{u(null),f(!1)},[f]),h=s.useCallback((m,y)=>{const w=m.currentTarget,C={x:m.clientX,y:m.clientY},x=sn(C,w.getBoundingClientRect()),b=an(C,x),P=cn(y.getBoundingClientRect()),E=un([...b,...P]);u(E),f(!0)},[f]);return s.useEffect(()=>()=>v(),[v]),s.useEffect(()=>{if(c&&d){const m=w=>h(w,d),y=w=>h(w,c);return c.addEventListener("pointerleave",m),d.addEventListener("pointerleave",y),()=>{c.removeEventListener("pointerleave",m),d.removeEventListener("pointerleave",y)}}},[c,d,h,v]),s.useEffect(()=>{if(a){const m=y=>{const w=y.target,C={x:y.clientX,y:y.clientY},x=c?.contains(w)||d?.contains(w),b=!ln(C,a);x?v():b&&(v(),l())};return document.addEventListener("pointermove",m),()=>document.removeEventListener("pointermove",m)}},[c,d,a,l,v]),p.jsx(ze,{...e,ref:i})}),[rn,on]=G(X,{isInside:!1}),ze=s.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:a,...u}=e,c=W(F,n),l=Y(n),{onClose:d}=c;return s.useEffect(()=>(document.addEventListener(ee,d),()=>document.removeEventListener(ee,d)),[d]),s.useEffect(()=>{if(c.trigger){const f=v=>{v.target?.contains(c.trigger)&&d()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[c.trigger,d]),p.jsx(be,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:f=>f.preventDefault(),onDismiss:d,children:p.jsxs(Wt,{"data-state":c.stateAttribute,...l,...u,ref:t,style:{...u.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[p.jsx(Pe,{children:r}),p.jsx(rn,{scope:n,isInside:!0,children:p.jsx(Kt,{id:c.contentId,role:"tooltip",children:o||r})})]})})});Ue.displayName=F;var qe="TooltipArrow",Ve=s.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Y(n);return on(qe,n).isInside?null:p.jsx(Bt,{...o,...r,ref:t})});Ve.displayName=qe;function sn(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function an(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function cn(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function ln(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,a=t.length-1;i<t.length;a=i++){const u=t[i].x,c=t[i].y,l=t[a].x,d=t[a].y;c>r!=d>r&&n<(l-u)*(r-c)/(d-c)+u&&(o=!o)}return o}function un(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),dn(t)}function dn(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const i=t[t.length-1],a=t[t.length-2];if((i.x-a.x)*(o.y-a.y)>=(i.y-a.y)*(o.x-a.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const i=n[n.length-1],a=n[n.length-2];if((i.x-a.x)*(o.y-a.y)>=(i.y-a.y)*(o.x-a.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var pn=He,fn=$e,hn=We,vn=Be,mn=Ue,yn=Ve;const gn="_slideDownAndFade_11wby_1",wn="_slideLeftAndFade_11wby_1",xn="_slideUpAndFade_11wby_1",Pn="_slideRightAndFade_11wby_1",Cn={"purpur-tooltip":"_purpur-tooltip_11wby_1","purpur-tooltip__content":"_purpur-tooltip__content_11wby_4","purpur-tooltip__content--primary":"_purpur-tooltip__content--primary_11wby_14","purpur-tooltip__content--primary-negative":"_purpur-tooltip__content--primary-negative_11wby_17",slideDownAndFade:gn,slideLeftAndFade:wn,slideUpAndFade:xn,slideRightAndFade:Pn,"purpur-tooltip__arrow--primary":"_purpur-tooltip__arrow--primary_11wby_32","purpur-tooltip__arrow--primary-negative":"_purpur-tooltip__arrow--primary-negative_11wby_35"},Z=dt.c.bind(Cn),Ge={TOP:"top",BOTTOM:"bottom",LEFT:"left",RIGHT:"right"},Ye={START:"start",CENTER:"center",END:"end"},I="purpur-tooltip",Xe=D.forwardRef(({["data-testid"]:e,buttonSize:t="md",children:n,className:r,container:o,contentClassName:i,iconSize:a="md",negative:u=!1,position:c=Ge.TOP,align:l=Ye.CENTER,triggerAriaLabel:d,triggerElement:f,...v},h)=>{const[m,y]=D.useState(!1),w=ut.useThemePortalContainer(),C=o===void 0?w:o??void 0,x=D.useId(),b=D.useRef(null),P=D.useRef(null);D.useEffect(()=>()=>{b.current&&clearTimeout(b.current),P.current&&clearTimeout(P.current)},[]);const E=()=>{b.current&&(clearTimeout(b.current),b.current=null),P.current=setTimeout(()=>{y(!0)},parseInt(K.purpurMotionDuration400))},T=()=>{P.current&&(clearTimeout(P.current),P.current=null),b.current=setTimeout(()=>{y(!1)},parseInt(K.purpurMotionDuration400))},g=Z(r,I,`${I}--primary${u?"-negative":""}`),O=Z(i,`${I}__content`,`${I}__content--primary${u?"-negative":""}`),S=Z(`${I}__arrow`,`${I}__arrow--primary${u?"-negative":""}`),R=p.jsx(de.Button,{ref:h,"aria-label":d??"",variant:de.BUTTON_VARIANT.TEXT,negative:u,iconOnly:!0,"data-testid":`${e}-trigger-button`,size:t,children:p.jsx(lt.r,{size:a})});return typeof n!="string"?p.jsx("div",{"data-testid":e,className:g,children:p.jsxs($.Root2,{open:m,onOpenChange:y,...v,children:[p.jsx($.Trigger,{asChild:!0,"aria-controls":x,"aria-details":x,onMouseEnter:E,onMouseLeave:T,children:f??R}),p.jsx($.Portal,{container:C,children:p.jsxs($.Content2,{id:x,side:c,align:l,className:O,role:"dialog",sideOffset:-5,"data-testid":`${e}-content`,onMouseEnter:E,onMouseLeave:T,children:[n,p.jsx($.Arrow2,{className:S})]})})]})}):p.jsx("div",{"data-testid":e,className:g,children:p.jsx(pn,{delayDuration:parseInt(K.purpurMotionDuration400),children:p.jsxs(fn,{open:m,onOpenChange:y,...v,children:[p.jsx(hn,{asChild:!0,onClick:B=>{B.preventDefault(),y(!0)},children:f??R}),p.jsx(vn,{container:C,children:p.jsxs(mn,{side:c,align:l,className:O,sideOffset:-5,"data-testid":`${e}-content`,children:[p.jsx(pe.Paragraph,{variant:pe.ParagraphVariant.PARAGRAPH100,negative:!u,"data-testid":`${e}-paragraph`,children:n}),p.jsx(yn,{className:S})]})})]})})})});Xe.displayName="Tooltip";exports.TOOLTIP_ALIGN=Ye;exports.TOOLTIP_POSITION=Ge;exports.Tooltip=Xe;
|
|
2
|
-
//# sourceMappingURL=tooltip-
|
|
1
|
+
"use strict";const p=require("react/jsx-runtime"),D=require("react"),de=require("./button-C5CYysw5.js"),lt=require("./info.es-Br84jly5.js"),pe=require("./paragraph-B8HFdNne.js"),K=require("./variables-BSBunpiY.js");require("./ThemeProvider-BGep6X_i.js");const ut=require("./useThemePortalContainer-Cs1c-2AI.js"),$=require("./index-BPY_9ddu.js"),me=require("react-dom"),_=require("./floating-ui.react-dom-Cc_YSprQ.js"),dt=require("./bind-DeUYJ6m9.js");function ye(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 s=ye(D),pt=ye(me);function A(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function fe(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ge(...e){return t=>{let n=!1;const r=e.map(o=>{const i=fe(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():fe(e[o],null)}}}}function j(...e){return s.useCallback(ge(...e),e)}function we(e,t=[]){let n=[];function r(i,a){const u=s.createContext(a),c=n.length;n=[...n,a];const l=f=>{const{scope:v,children:h,...m}=f,y=v?.[e]?.[c]||u,w=s.useMemo(()=>m,Object.values(m));return p.jsx(y.Provider,{value:w,children:h})};l.displayName=i+"Provider";function d(f,v){const h=v?.[e]?.[c]||u,m=s.useContext(h);if(m)return m;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${i}\``)}return[l,d]}const o=()=>{const i=n.map(a=>s.createContext(a));return function(u){const c=u?.[e]||i;return s.useMemo(()=>({[`__scope${e}`]:{...u,[e]:c}}),[u,c])}};return o.scopeName=e,[r,ft(o,...t)]}function ft(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const a=r.reduce((u,{useScope:c,scopeName:l})=>{const f=c(i)[`__scope${l}`];return{...u,...f}},{});return s.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}var xe=s.forwardRef((e,t)=>{const{children:n,...r}=e,o=s.Children.toArray(n),i=o.find(ht);if(i){const a=i.props.children,u=o.map(c=>c===i?s.Children.count(a)>1?s.Children.only(null):s.isValidElement(a)?a.props.children:null:c);return p.jsx(J,{...r,ref:t,children:s.isValidElement(a)?s.cloneElement(a,void 0,u):null})}return p.jsx(J,{...r,ref:t,children:n})});xe.displayName="Slot";var J=s.forwardRef((e,t)=>{const{children:n,...r}=e;if(s.isValidElement(n)){const o=mt(n),i=vt(r,n.props);return n.type!==s.Fragment&&(i.ref=t?ge(t,o):o),s.cloneElement(n,i)}return s.Children.count(n)>1?s.Children.only(null):null});J.displayName="SlotClone";var Pe=({children:e})=>p.jsx(p.Fragment,{children:e});function ht(e){return s.isValidElement(e)&&e.type===Pe}function vt(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]=(...u)=>{i(...u),o(...u)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function mt(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var yt=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],N=yt.reduce((e,t)=>{const n=s.forwardRef((r,o)=>{const{asChild:i,...a}=r,u=i?xe:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(u,{...a,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function gt(e,t){e&&pt.flushSync(()=>e.dispatchEvent(t))}function k(e){const t=s.useRef(e);return s.useEffect(()=>{t.current=e}),s.useMemo(()=>(...n)=>t.current?.(...n),[])}function wt(e,t=globalThis?.document){const n=k(e);s.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var xt="DismissableLayer",Q="dismissableLayer.update",Pt="dismissableLayer.pointerDownOutside",Ct="dismissableLayer.focusOutside",he,Ce=s.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),be=s.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:a,onDismiss:u,...c}=e,l=s.useContext(Ce),[d,f]=s.useState(null),v=d?.ownerDocument??globalThis?.document,[,h]=s.useState({}),m=j(t,g=>f(g)),y=Array.from(l.layers),[w]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),C=y.indexOf(w),x=d?y.indexOf(d):-1,b=l.layersWithOutsidePointerEventsDisabled.size>0,P=x>=C,E=Tt(g=>{const O=g.target,S=[...l.branches].some(R=>R.contains(O));!P||S||(o?.(g),a?.(g),g.defaultPrevented||u?.())},v),T=Ot(g=>{const O=g.target;[...l.branches].some(R=>R.contains(O))||(i?.(g),a?.(g),g.defaultPrevented||u?.())},v);return wt(g=>{x===l.layers.size-1&&(r?.(g),!g.defaultPrevented&&u&&(g.preventDefault(),u()))},v),s.useEffect(()=>{if(d)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(he=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(d)),l.layers.add(d),ve(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=he)}},[d,v,n,l]),s.useEffect(()=>()=>{d&&(l.layers.delete(d),l.layersWithOutsidePointerEventsDisabled.delete(d),ve())},[d,l]),s.useEffect(()=>{const g=()=>h({});return document.addEventListener(Q,g),()=>document.removeEventListener(Q,g)},[]),p.jsx(N.div,{...c,ref:m,style:{pointerEvents:b?P?"auto":"none":void 0,...e.style},onFocusCapture:A(e.onFocusCapture,T.onFocusCapture),onBlurCapture:A(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:A(e.onPointerDownCapture,E.onPointerDownCapture)})});be.displayName=xt;var bt="DismissableLayerBranch",Et=s.forwardRef((e,t)=>{const n=s.useContext(Ce),r=s.useRef(null),o=j(t,r);return s.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),p.jsx(N.div,{...e,ref:o})});Et.displayName=bt;function Tt(e,t=globalThis?.document){const n=k(e),r=s.useRef(!1),o=s.useRef(()=>{});return s.useEffect(()=>{const i=u=>{if(u.target&&!r.current){let c=function(){Ee(Pt,n,l,{discrete:!0})};const l={originalEvent:u};u.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Ot(e,t=globalThis?.document){const n=k(e),r=s.useRef(!1);return s.useEffect(()=>{const o=i=>{i.target&&!r.current&&Ee(Ct,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function ve(){const e=new CustomEvent(Q);document.dispatchEvent(e)}function Ee(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?gt(o,i):o.dispatchEvent(i)}var L=globalThis?.document?s.useLayoutEffect:()=>{},_t=s.useId||(()=>{}),At=0;function Rt(e){const[t,n]=s.useState(_t());return L(()=>{n(r=>r??String(At++))},[e]),t?`radix-${t}`:""}var Nt="Arrow",Te=s.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return p.jsx(N.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:p.jsx("polygon",{points:"0,0 30,0 15,10"})})});Te.displayName=Nt;var St=Te;function Dt(e){const[t,n]=s.useState(void 0);return L(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let a,u;if("borderBoxSize"in i){const c=i.borderBoxSize,l=Array.isArray(c)?c[0]:c;a=l.inlineSize,u=l.blockSize}else a=e.offsetWidth,u=e.offsetHeight;n({width:a,height:u})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var ne="Popper",[Oe,_e]=we(ne),[Lt,Ae]=Oe(ne),Re=e=>{const{__scopePopper:t,children:n}=e,[r,o]=s.useState(null);return p.jsx(Lt,{scope:t,anchor:r,onAnchorChange:o,children:n})};Re.displayName=ne;var Ne="PopperAnchor",Se=s.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Ae(Ne,n),a=s.useRef(null),u=j(t,a);return s.useEffect(()=>{i.onAnchorChange(r?.current||a.current)}),r?null:p.jsx(N.div,{...o,ref:u})});Se.displayName=Ne;var re="PopperContent",[jt,Mt]=Oe(re),De=s.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:a=0,arrowPadding:u=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:v=!1,updatePositionStrategy:h="optimized",onPlaced:m,...y}=e,w=Ae(re,n),[C,x]=s.useState(null),b=j(t,H=>x(H)),[P,E]=s.useState(null),T=Dt(P),g=T?.width??0,O=T?.height??0,S=r+(i!=="center"?"-"+i:""),R=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},B=Array.isArray(l)?l:[l],Ke=B.length>0,U={padding:R,boundary:B.filter(Ft),altBoundary:Ke},{refs:Ze,floatingStyles:ae,placement:Je,isPositioned:z,middlewareData:M}=_.useFloating({strategy:"fixed",placement:S,whileElementsMounted:(...H)=>_.autoUpdate(...H,{animationFrame:h==="always"}),elements:{reference:w.anchor},middleware:[_.offset({mainAxis:o+O,alignmentAxis:a}),c&&_.shift({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?_.limitShift():void 0,...U}),c&&_.flip({...U}),_.size({...U,apply:({elements:H,rects:ue,availableWidth:st,availableHeight:it})=>{const{width:at,height:ct}=ue.reference,q=H.floating.style;q.setProperty("--radix-popper-available-width",`${st}px`),q.setProperty("--radix-popper-available-height",`${it}px`),q.setProperty("--radix-popper-anchor-width",`${at}px`),q.setProperty("--radix-popper-anchor-height",`${ct}px`)}}),P&&_.arrow({element:P,padding:u}),kt({arrowWidth:g,arrowHeight:O}),v&&_.hide({strategy:"referenceHidden",...U})]}),[ce,Qe]=Me(Je),le=k(m);L(()=>{z&&le?.()},[z,le]);const et=M.arrow?.x,tt=M.arrow?.y,nt=M.arrow?.centerOffset!==0,[rt,ot]=s.useState();return L(()=>{C&&ot(window.getComputedStyle(C).zIndex)},[C]),p.jsx("div",{ref:Ze.setFloating,"data-radix-popper-content-wrapper":"",style:{...ae,transform:z?ae.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:rt,"--radix-popper-transform-origin":[M.transformOrigin?.x,M.transformOrigin?.y].join(" "),...M.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:p.jsx(jt,{scope:n,placedSide:ce,onArrowChange:E,arrowX:et,arrowY:tt,shouldHideArrow:nt,children:p.jsx(N.div,{"data-side":ce,"data-align":Qe,...y,ref:b,style:{...y.style,animation:z?void 0:"none"}})})})});De.displayName=re;var Le="PopperArrow",It={top:"bottom",right:"left",bottom:"top",left:"right"},je=s.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=Mt(Le,r),a=It[i.placedSide];return p.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:p.jsx(St,{...o,ref:n,style:{...o.style,display:"block"}})})});je.displayName=Le;function Ft(e){return e!==null}var kt=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,a=o.arrow?.centerOffset!==0,u=a?0:e.arrowWidth,c=a?0:e.arrowHeight,[l,d]=Me(n),f={start:"0%",center:"50%",end:"100%"}[d],v=(o.arrow?.x??0)+u/2,h=(o.arrow?.y??0)+c/2;let m="",y="";return l==="bottom"?(m=a?f:`${v}px`,y=`${-c}px`):l==="top"?(m=a?f:`${v}px`,y=`${r.floating.height+c}px`):l==="right"?(m=`${-c}px`,y=a?f:`${h}px`):l==="left"&&(m=`${r.floating.width+c}px`,y=a?f:`${h}px`),{data:{x:m,y}}}});function Me(e){const[t,n="center"]=e.split("-");return[t,n]}var Ht=Re,$t=Se,Wt=De,Bt=je,Ut="Portal",Ie=s.forwardRef((e,t)=>{const{container:n,...r}=e,[o,i]=s.useState(!1);L(()=>i(!0),[]);const a=n||o&&globalThis?.document?.body;return a?me.createPortal(p.jsx(N.div,{...r,ref:t}),a):null});Ie.displayName=Ut;function zt(e,t){return s.useReducer((n,r)=>t[n][r]??n,e)}var oe=e=>{const{present:t,children:n}=e,r=qt(t),o=typeof n=="function"?n({present:r.isPresent}):s.Children.only(n),i=j(r.ref,Vt(o));return typeof n=="function"||r.isPresent?s.cloneElement(o,{ref:i}):null};oe.displayName="Presence";function qt(e){const[t,n]=s.useState(),r=s.useRef({}),o=s.useRef(e),i=s.useRef("none"),a=e?"mounted":"unmounted",[u,c]=zt(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return s.useEffect(()=>{const l=V(r.current);i.current=u==="mounted"?l:"none"},[u]),L(()=>{const l=r.current,d=o.current;if(d!==e){const v=i.current,h=V(l);e?c("MOUNT"):h==="none"||l?.display==="none"?c("UNMOUNT"):c(d&&v!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),L(()=>{if(t){let l;const d=t.ownerDocument.defaultView??window,f=h=>{const y=V(r.current).includes(h.animationName);if(h.target===t&&y&&(c("ANIMATION_END"),!o.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",l=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},v=h=>{h.target===t&&(i.current=V(r.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(l),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:s.useCallback(l=>{l&&(r.current=getComputedStyle(l)),n(l)},[])}}function V(e){return e?.animationName||"none"}function Vt(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Gt({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=Yt({defaultProp:t,onChange:n}),i=e!==void 0,a=i?e:r,u=k(n),c=s.useCallback(l=>{if(i){const f=typeof l=="function"?l(e):l;f!==e&&u(f)}else o(l)},[i,e,o,u]);return[a,c]}function Yt({defaultProp:e,onChange:t}){const n=s.useState(e),[r]=n,o=s.useRef(r),i=k(t);return s.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}var Xt="VisuallyHidden",Fe=s.forwardRef((e,t)=>p.jsx(N.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));Fe.displayName=Xt;var Kt=Fe,[G]=we("Tooltip",[_e]),Y=_e(),ke="TooltipProvider",Zt=700,ee="tooltip.open",[Jt,se]=G(ke),He=e=>{const{__scopeTooltip:t,delayDuration:n=Zt,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:i}=e,[a,u]=s.useState(!0),c=s.useRef(!1),l=s.useRef(0);return s.useEffect(()=>{const d=l.current;return()=>window.clearTimeout(d)},[]),p.jsx(Jt,{scope:t,isOpenDelayed:a,delayDuration:n,onOpen:s.useCallback(()=>{window.clearTimeout(l.current),u(!1)},[]),onClose:s.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>u(!0),r)},[r]),isPointerInTransitRef:c,onPointerInTransitChange:s.useCallback(d=>{c.current=d},[]),disableHoverableContent:o,children:i})};He.displayName=ke;var X="Tooltip",[Qt,W]=G(X),$e=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:i,disableHoverableContent:a,delayDuration:u}=e,c=se(X,e.__scopeTooltip),l=Y(t),[d,f]=s.useState(null),v=Rt(),h=s.useRef(0),m=a??c.disableHoverableContent,y=u??c.delayDuration,w=s.useRef(!1),[C=!1,x]=Gt({prop:r,defaultProp:o,onChange:g=>{g?(c.onOpen(),document.dispatchEvent(new CustomEvent(ee))):c.onClose(),i?.(g)}}),b=s.useMemo(()=>C?w.current?"delayed-open":"instant-open":"closed",[C]),P=s.useCallback(()=>{window.clearTimeout(h.current),h.current=0,w.current=!1,x(!0)},[x]),E=s.useCallback(()=>{window.clearTimeout(h.current),h.current=0,x(!1)},[x]),T=s.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{w.current=!0,x(!0),h.current=0},y)},[y,x]);return s.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),p.jsx(Ht,{...l,children:p.jsx(Qt,{scope:t,contentId:v,open:C,stateAttribute:b,trigger:d,onTriggerChange:f,onTriggerEnter:s.useCallback(()=>{c.isOpenDelayed?T():P()},[c.isOpenDelayed,T,P]),onTriggerLeave:s.useCallback(()=>{m?E():(window.clearTimeout(h.current),h.current=0)},[E,m]),onOpen:P,onClose:E,disableHoverableContent:m,children:n})})};$e.displayName=X;var te="TooltipTrigger",We=s.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=W(te,n),i=se(te,n),a=Y(n),u=s.useRef(null),c=j(t,u,o.onTriggerChange),l=s.useRef(!1),d=s.useRef(!1),f=s.useCallback(()=>l.current=!1,[]);return s.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),p.jsx($t,{asChild:!0,...a,children:p.jsx(N.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:c,onPointerMove:A(e.onPointerMove,v=>{v.pointerType!=="touch"&&!d.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:A(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:A(e.onPointerDown,()=>{l.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:A(e.onFocus,()=>{l.current||o.onOpen()}),onBlur:A(e.onBlur,o.onClose),onClick:A(e.onClick,o.onClose)})})});We.displayName=te;var ie="TooltipPortal",[en,tn]=G(ie,{forceMount:void 0}),Be=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,i=W(ie,t);return p.jsx(en,{scope:t,forceMount:n,children:p.jsx(oe,{present:n||i.open,children:p.jsx(Ie,{asChild:!0,container:o,children:r})})})};Be.displayName=ie;var F="TooltipContent",Ue=s.forwardRef((e,t)=>{const n=tn(F,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,a=W(F,e.__scopeTooltip);return p.jsx(oe,{present:r||a.open,children:a.disableHoverableContent?p.jsx(ze,{side:o,...i,ref:t}):p.jsx(nn,{side:o,...i,ref:t})})}),nn=s.forwardRef((e,t)=>{const n=W(F,e.__scopeTooltip),r=se(F,e.__scopeTooltip),o=s.useRef(null),i=j(t,o),[a,u]=s.useState(null),{trigger:c,onClose:l}=n,d=o.current,{onPointerInTransitChange:f}=r,v=s.useCallback(()=>{u(null),f(!1)},[f]),h=s.useCallback((m,y)=>{const w=m.currentTarget,C={x:m.clientX,y:m.clientY},x=sn(C,w.getBoundingClientRect()),b=an(C,x),P=cn(y.getBoundingClientRect()),E=un([...b,...P]);u(E),f(!0)},[f]);return s.useEffect(()=>()=>v(),[v]),s.useEffect(()=>{if(c&&d){const m=w=>h(w,d),y=w=>h(w,c);return c.addEventListener("pointerleave",m),d.addEventListener("pointerleave",y),()=>{c.removeEventListener("pointerleave",m),d.removeEventListener("pointerleave",y)}}},[c,d,h,v]),s.useEffect(()=>{if(a){const m=y=>{const w=y.target,C={x:y.clientX,y:y.clientY},x=c?.contains(w)||d?.contains(w),b=!ln(C,a);x?v():b&&(v(),l())};return document.addEventListener("pointermove",m),()=>document.removeEventListener("pointermove",m)}},[c,d,a,l,v]),p.jsx(ze,{...e,ref:i})}),[rn,on]=G(X,{isInside:!1}),ze=s.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:a,...u}=e,c=W(F,n),l=Y(n),{onClose:d}=c;return s.useEffect(()=>(document.addEventListener(ee,d),()=>document.removeEventListener(ee,d)),[d]),s.useEffect(()=>{if(c.trigger){const f=v=>{v.target?.contains(c.trigger)&&d()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[c.trigger,d]),p.jsx(be,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:f=>f.preventDefault(),onDismiss:d,children:p.jsxs(Wt,{"data-state":c.stateAttribute,...l,...u,ref:t,style:{...u.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[p.jsx(Pe,{children:r}),p.jsx(rn,{scope:n,isInside:!0,children:p.jsx(Kt,{id:c.contentId,role:"tooltip",children:o||r})})]})})});Ue.displayName=F;var qe="TooltipArrow",Ve=s.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Y(n);return on(qe,n).isInside?null:p.jsx(Bt,{...o,...r,ref:t})});Ve.displayName=qe;function sn(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function an(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function cn(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function ln(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,a=t.length-1;i<t.length;a=i++){const u=t[i].x,c=t[i].y,l=t[a].x,d=t[a].y;c>r!=d>r&&n<(l-u)*(r-c)/(d-c)+u&&(o=!o)}return o}function un(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),dn(t)}function dn(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const i=t[t.length-1],a=t[t.length-2];if((i.x-a.x)*(o.y-a.y)>=(i.y-a.y)*(o.x-a.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const i=n[n.length-1],a=n[n.length-2];if((i.x-a.x)*(o.y-a.y)>=(i.y-a.y)*(o.x-a.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var pn=He,fn=$e,hn=We,vn=Be,mn=Ue,yn=Ve;const gn="_slideDownAndFade_11wby_1",wn="_slideLeftAndFade_11wby_1",xn="_slideUpAndFade_11wby_1",Pn="_slideRightAndFade_11wby_1",Cn={"purpur-tooltip":"_purpur-tooltip_11wby_1","purpur-tooltip__content":"_purpur-tooltip__content_11wby_4","purpur-tooltip__content--primary":"_purpur-tooltip__content--primary_11wby_14","purpur-tooltip__content--primary-negative":"_purpur-tooltip__content--primary-negative_11wby_17",slideDownAndFade:gn,slideLeftAndFade:wn,slideUpAndFade:xn,slideRightAndFade:Pn,"purpur-tooltip__arrow--primary":"_purpur-tooltip__arrow--primary_11wby_32","purpur-tooltip__arrow--primary-negative":"_purpur-tooltip__arrow--primary-negative_11wby_35"},Z=dt.c.bind(Cn),Ge={TOP:"top",BOTTOM:"bottom",LEFT:"left",RIGHT:"right"},Ye={START:"start",CENTER:"center",END:"end"},I="purpur-tooltip",Xe=D.forwardRef(({["data-testid"]:e,buttonSize:t="md",children:n,className:r,container:o,contentClassName:i,iconSize:a="md",negative:u=!1,position:c=Ge.TOP,align:l=Ye.CENTER,triggerAriaLabel:d,triggerElement:f,...v},h)=>{const[m,y]=D.useState(!1),w=ut.useThemePortalContainer(),C=o===void 0?w:o??void 0,x=D.useId(),b=D.useRef(null),P=D.useRef(null);D.useEffect(()=>()=>{b.current&&clearTimeout(b.current),P.current&&clearTimeout(P.current)},[]);const E=()=>{b.current&&(clearTimeout(b.current),b.current=null),P.current=setTimeout(()=>{y(!0)},parseInt(K.purpurMotionDuration400))},T=()=>{P.current&&(clearTimeout(P.current),P.current=null),b.current=setTimeout(()=>{y(!1)},parseInt(K.purpurMotionDuration400))},g=Z(r,I,`${I}--primary${u?"-negative":""}`),O=Z(i,`${I}__content`,`${I}__content--primary${u?"-negative":""}`),S=Z(`${I}__arrow`,`${I}__arrow--primary${u?"-negative":""}`),R=p.jsx(de.Button,{ref:h,"aria-label":d??"",variant:de.BUTTON_VARIANT.TEXT,negative:u,iconOnly:!0,"data-testid":`${e}-trigger-button`,size:t,children:p.jsx(lt.r,{size:a})});return typeof n!="string"?p.jsx("div",{"data-testid":e,className:g,children:p.jsxs($.Root2,{open:m,onOpenChange:y,...v,children:[p.jsx($.Trigger,{asChild:!0,"aria-controls":x,"aria-details":x,onMouseEnter:E,onMouseLeave:T,children:f??R}),p.jsx($.Portal,{container:C,children:p.jsxs($.Content2,{id:x,side:c,align:l,className:O,role:"dialog",sideOffset:-5,"data-testid":`${e}-content`,onMouseEnter:E,onMouseLeave:T,children:[n,p.jsx($.Arrow2,{className:S})]})})]})}):p.jsx("div",{"data-testid":e,className:g,children:p.jsx(pn,{delayDuration:parseInt(K.purpurMotionDuration400),children:p.jsxs(fn,{open:m,onOpenChange:y,...v,children:[p.jsx(hn,{asChild:!0,onClick:B=>{B.preventDefault(),y(!0)},children:f??R}),p.jsx(vn,{container:C,children:p.jsxs(mn,{side:c,align:l,className:O,sideOffset:-5,"data-testid":`${e}-content`,children:[p.jsx(pe.Paragraph,{variant:pe.ParagraphVariant.PARAGRAPH100,negative:!u,"data-testid":`${e}-paragraph`,children:n}),p.jsx(yn,{className:S})]})})]})})})});Xe.displayName="Tooltip";exports.TOOLTIP_ALIGN=Ye;exports.TOOLTIP_POSITION=Ge;exports.Tooltip=Xe;
|
|
2
|
+
//# sourceMappingURL=tooltip-DRW4N9Z-.js.map
|