@telefonica/mistica 14.20.1 → 14.22.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/css/mistica.css +1 -1
- package/dist/avatar.css-mistica.js +1 -1
- package/dist/badge.css-mistica.js +1 -1
- package/dist/boxed.css-mistica.js +1 -1
- package/dist/button-group.css-mistica.js +1 -1
- package/dist/button-layout.css-mistica.js +8 -8
- package/dist/button-layout.js +2 -2
- package/dist/button.css-mistica.js +17 -17
- package/dist/callout.css-mistica.js +1 -1
- package/dist/card.css-mistica.js +16 -16
- package/dist/card.d.ts +2 -1
- package/dist/card.js +193 -196
- package/dist/carousel.css-mistica.js +11 -11
- package/dist/checkbox.css-mistica.js +9 -9
- package/dist/chip.css-mistica.js +4 -4
- package/dist/circle.css-mistica.js +2 -2
- package/dist/community/advanced-data-card.css-mistica.js +15 -12
- package/dist/community/advanced-data-card.css.d.ts +2 -1
- package/dist/community/advanced-data-card.js +106 -102
- package/dist/community/blocks.css-mistica.js +1 -1
- package/dist/community/blocks.js +14 -14
- package/dist/date-time-field.js +13 -9
- package/dist/dialog.css-mistica.js +9 -9
- package/dist/dialog.js +52 -62
- package/dist/double-field.css-mistica.js +2 -2
- package/dist/empty-state-card.css-mistica.js +1 -1
- package/dist/empty-state.css-mistica.js +2 -2
- package/dist/feedback.css-mistica.js +15 -6
- package/dist/feedback.css.d.ts +4 -1
- package/dist/feedback.d.ts +10 -3
- package/dist/feedback.js +140 -107
- package/dist/fixed-footer-layout.css-mistica.js +2 -2
- package/dist/fixed-footer-layout.js +2 -2
- package/dist/form.js +15 -15
- package/dist/generated/mistica-icons/icon-add-more-location-filled.js +1 -1
- package/dist/generated/mistica-icons/icon-add-more-location-regular.js +1 -1
- package/dist/generated/mistica-icons/icon-add-more-query-light.js +1 -1
- package/dist/generated/mistica-icons/icon-adn-filled.js +1 -1
- package/dist/generated/mistica-icons/icon-adn-regular.js +1 -1
- package/dist/generated/mistica-icons/icon-alarm-light-cross-filled.js +1 -1
- package/dist/generated/mistica-icons/icon-alarm-light-cross-light.js +1 -1
- package/dist/generated/mistica-icons/icon-ambulance-filled.js +1 -1
- package/dist/generated/mistica-icons/icon-ambulance-light.js +1 -1
- package/dist/generated/mistica-icons/icon-ambulance-regular.js +5 -5
- package/dist/generated/mistica-icons/icon-api-filled.js +1 -1
- package/dist/generated/mistica-icons/icon-api-light.js +1 -1
- package/dist/generated/mistica-icons/icon-arrow-down-left-regular.js +1 -1
- package/dist/generated/mistica-icons/icon-arrow-down-light.js +1 -1
- package/dist/generated/mistica-icons/icon-arrow-down-right-light.js +1 -1
- package/dist/generated/mistica-icons/icon-bell-regular.js +1 -1
- package/dist/generated/mistica-icons/icon-bicycle-bike-filled.js +1 -1
- package/dist/generated/mistica-icons/icon-blog-regular.js +1 -1
- package/dist/generated/mistica-icons/icon-boat-light.js +1 -1
- package/dist/generated/mistica-icons/icon-book-filled.js +1 -1
- package/dist/generated/mistica-icons/icon-book-light.js +3 -3
- package/dist/generated/mistica-icons/icon-bug-filled.js +1 -1
- package/dist/generated/mistica-icons/icon-calendar-filled.js +1 -1
- package/dist/generated/mistica-icons/icon-data-shield-regular.js +15 -15
- package/dist/generated/mistica-icons/icon-database-regular.js +1 -1
- package/dist/generated/mistica-icons/icon-delivery-van-moving-regular.js +1 -1
- package/dist/generated/mistica-icons/icon-diamond-regular.js +1 -1
- package/dist/generated/mistica-icons/icon-disconnect-regular.js +1 -1
- package/dist/generated/mistica-icons/icon-dollar-symbol-circle-filled.js +1 -1
- package/dist/generated/mistica-icons/icon-dollar-symbol-circle-regular.js +1 -1
- package/dist/generated/mistica-icons/icon-dollar-symbol-filled.js +1 -1
- package/dist/generated/mistica-icons/icon-dollar-symbol-regular.js +1 -1
- package/dist/generated/mistica-icons/icon-download-app-filled.js +1 -1
- package/dist/generated/mistica-icons/icon-download-app-regular.js +1 -1
- package/dist/generated/mistica-icons/icon-drink-filled.js +1 -1
- package/dist/generated/mistica-icons/icon-drink-regular.js +1 -1
- package/dist/generated/mistica-icons/icon-dumbbell-filled.js +1 -1
- package/dist/generated/mistica-icons/icon-dumbbell-regular.js +1 -1
- package/dist/generated/mistica-icons/icon-eco-filled.js +1 -1
- package/dist/generated/mistica-icons/icon-eco-regular.js +1 -1
- package/dist/generated/mistica-icons/icon-edit-filled.js +1 -1
- package/dist/generated/mistica-icons/icon-email-filled.js +1 -1
- package/dist/generated/mistica-icons/icon-emergency-cross-with-circle-filled.js +1 -1
- package/dist/generated/mistica-icons/icon-error-filled.js +1 -1
- package/dist/generated/mistica-icons/icon-esim-filled.js +32 -11
- package/dist/generated/mistica-icons/icon-esim-light.js +31 -10
- package/dist/generated/mistica-icons/icon-esim-regular.js +31 -10
- package/dist/generated/mistica-icons/icon-euro-symbol-circle-filled.js +3 -3
- package/dist/generated/mistica-icons/icon-euro-symbol-filled.js +1 -1
- package/dist/generated/mistica-icons/icon-funnel-filled.js +21 -10
- package/dist/generated/mistica-icons/icon-funnel-light.js +19 -8
- package/dist/generated/mistica-icons/icon-funnel-regular.js +21 -10
- package/dist/generated/mistica-icons/icon-poison-regular.js +3 -3
- package/dist/generated/mistica-icons/icon-price-drop-light.js +4 -4
- package/dist/generated/mistica-icons/icon-search-file-filled.js +1 -1
- package/dist/grid.css.d.ts +6 -6
- package/dist/hero.css-mistica.js +3 -3
- package/dist/highlighted-card.css-mistica.js +4 -4
- package/dist/horizontal-scroll.css-mistica.js +1 -1
- package/dist/icon-button.css-mistica.js +1 -1
- package/dist/icons/icon-error.d.ts +4 -1
- package/dist/icons/icon-error.js +16 -12
- package/dist/icons/icon-info.d.ts +4 -1
- package/dist/icons/icon-info.js +42 -14
- package/dist/icons/icon-success-vivo-new.d.ts +6 -0
- package/dist/icons/icon-success-vivo-new.js +86 -0
- package/dist/icons/icon-success-vivo.d.ts +2 -3
- package/dist/icons/icon-success-vivo.js +11 -15
- package/dist/icons/icon-success.d.ts +2 -2
- package/dist/icons/icon-success.js +2 -2
- package/dist/image.css-mistica.js +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.js +34 -0
- package/dist/list.css-mistica.js +6 -6
- package/dist/loading-bar.css-mistica.js +2 -2
- package/dist/logo.css-mistica.js +12 -0
- package/dist/logo.css.d.ts +1 -0
- package/dist/logo.css.ts.vanilla.css-mistica.js +11 -0
- package/dist/logo.d.ts +3 -1
- package/dist/logo.js +94 -84
- package/dist/maybe-dismissable.css-mistica.js +1 -1
- package/dist/menu.css-mistica.js +1 -1
- package/dist/modal-context-provider.d.ts +1 -0
- package/dist/modal-context-provider.js +24 -10
- package/dist/navigation-bar.css-mistica.js +47 -32
- package/dist/navigation-bar.css.d.ts +8 -5
- package/dist/navigation-bar.d.ts +4 -0
- package/dist/navigation-bar.js +204 -187
- package/dist/navigation-breadcrumbs.css-mistica.js +1 -1
- package/dist/nestable-context.js +2 -7
- package/dist/overscroll-color-context.js +1 -1
- package/dist/package-version.js +1 -1
- package/dist/password-field.css-mistica.js +2 -2
- package/dist/popover.css-mistica.js +8 -8
- package/dist/progress-bar.css-mistica.js +1 -1
- package/dist/radio-button.css-mistica.js +5 -5
- package/dist/responsive-layout.css-mistica.js +1 -1
- package/dist/screen-reader-only.css-mistica.js +1 -1
- package/dist/select.css-mistica.js +10 -10
- package/dist/sheet-root.d.ts +93 -0
- package/dist/sheet-root.js +381 -0
- package/dist/sheet.css-mistica.js +66 -0
- package/dist/sheet.css.d.ts +17 -0
- package/dist/sheet.css.ts.vanilla.css-mistica.js +11 -0
- package/dist/sheet.d.ts +107 -0
- package/dist/sheet.js +643 -0
- package/dist/skeletons.css-mistica.js +1 -1
- package/dist/snackbar.css-mistica.js +1 -1
- package/dist/spinner.css-mistica.js +1 -1
- package/dist/sprinkles.css-mistica.js +191 -172
- package/dist/sprinkles.css.d.ts +4 -3
- package/dist/stack.js +14 -13
- package/dist/stacking-group.css-mistica.js +2 -2
- package/dist/stepper.css-mistica.js +8 -8
- package/dist/switch-component.css-mistica.js +13 -13
- package/dist/switch-component.js +2 -2
- package/dist/tabs.css-mistica.js +7 -7
- package/dist/tag.css-mistica.js +1 -1
- package/dist/text-field-base.css-mistica.js +6 -6
- package/dist/text-field-components.css-mistica.js +5 -5
- package/dist/text-link.css-mistica.js +3 -3
- package/dist/text.d.ts +1 -1
- package/dist/text.js +23 -23
- package/dist/theme.d.ts +2 -0
- package/dist/theme.js +22 -18
- package/dist/tooltip.css-mistica.js +14 -11
- package/dist/tooltip.css.d.ts +2 -0
- package/dist/tooltip.d.ts +2 -0
- package/dist/tooltip.js +113 -77
- package/dist/touchable.css-mistica.js +2 -2
- package/dist/utils/animation.d.ts +2 -1
- package/dist/utils/animation.js +28 -14
- package/dist/utils/aspect-ratio-support.css-mistica.js +2 -2
- package/dist/utils/dom.d.ts +1 -0
- package/dist/utils/dom.js +56 -40
- package/dist/utils/helpers.d.ts +9 -0
- package/dist/utils/helpers.js +46 -0
- package/dist/utils/utility-types.d.ts +1 -1
- package/dist/video.css-mistica.js +1 -1
- package/dist-es/avatar.css-mistica.js +1 -1
- package/dist-es/badge.css-mistica.js +1 -1
- package/dist-es/boxed.css-mistica.js +1 -1
- package/dist-es/button-group.css-mistica.js +1 -1
- package/dist-es/button-layout.css-mistica.js +7 -7
- package/dist-es/button-layout.js +1 -1
- package/dist-es/button.css-mistica.js +9 -9
- package/dist-es/callout.css-mistica.js +1 -1
- package/dist-es/card.css-mistica.js +2 -2
- package/dist-es/card.js +253 -256
- package/dist-es/carousel.css-mistica.js +2 -2
- package/dist-es/checkbox.css-mistica.js +6 -6
- package/dist-es/chip.css-mistica.js +4 -4
- package/dist-es/circle.css-mistica.js +2 -2
- package/dist-es/community/advanced-data-card.css-mistica.js +3 -3
- package/dist-es/community/advanced-data-card.js +130 -126
- package/dist-es/community/blocks.css-mistica.js +1 -1
- package/dist-es/community/blocks.js +25 -25
- package/dist-es/date-time-field.js +18 -14
- package/dist-es/dialog.css-mistica.js +5 -5
- package/dist-es/dialog.js +101 -111
- package/dist-es/double-field.css-mistica.js +2 -2
- package/dist-es/empty-state-card.css-mistica.js +1 -1
- package/dist-es/empty-state.css-mistica.js +2 -2
- package/dist-es/feedback.css-mistica.js +2 -2
- package/dist-es/feedback.js +180 -147
- package/dist-es/fixed-footer-layout.css-mistica.js +2 -2
- package/dist-es/fixed-footer-layout.js +1 -1
- package/dist-es/form.js +15 -15
- package/dist-es/generated/mistica-icons/icon-add-more-location-filled.js +1 -1
- package/dist-es/generated/mistica-icons/icon-add-more-location-regular.js +1 -1
- package/dist-es/generated/mistica-icons/icon-add-more-query-light.js +1 -1
- package/dist-es/generated/mistica-icons/icon-adn-filled.js +1 -1
- package/dist-es/generated/mistica-icons/icon-adn-regular.js +1 -1
- package/dist-es/generated/mistica-icons/icon-alarm-light-cross-filled.js +1 -1
- package/dist-es/generated/mistica-icons/icon-alarm-light-cross-light.js +1 -1
- package/dist-es/generated/mistica-icons/icon-ambulance-filled.js +1 -1
- package/dist-es/generated/mistica-icons/icon-ambulance-light.js +1 -1
- package/dist-es/generated/mistica-icons/icon-ambulance-regular.js +6 -6
- package/dist-es/generated/mistica-icons/icon-api-filled.js +1 -1
- package/dist-es/generated/mistica-icons/icon-api-light.js +1 -1
- package/dist-es/generated/mistica-icons/icon-arrow-down-left-regular.js +1 -1
- package/dist-es/generated/mistica-icons/icon-arrow-down-light.js +1 -1
- package/dist-es/generated/mistica-icons/icon-arrow-down-right-light.js +1 -1
- package/dist-es/generated/mistica-icons/icon-bell-regular.js +1 -1
- package/dist-es/generated/mistica-icons/icon-bicycle-bike-filled.js +1 -1
- package/dist-es/generated/mistica-icons/icon-blog-regular.js +1 -1
- package/dist-es/generated/mistica-icons/icon-boat-light.js +1 -1
- package/dist-es/generated/mistica-icons/icon-book-filled.js +1 -1
- package/dist-es/generated/mistica-icons/icon-book-light.js +3 -3
- package/dist-es/generated/mistica-icons/icon-bug-filled.js +1 -1
- package/dist-es/generated/mistica-icons/icon-calendar-filled.js +1 -1
- package/dist-es/generated/mistica-icons/icon-data-shield-regular.js +15 -15
- package/dist-es/generated/mistica-icons/icon-database-regular.js +1 -1
- package/dist-es/generated/mistica-icons/icon-delivery-van-moving-regular.js +1 -1
- package/dist-es/generated/mistica-icons/icon-diamond-regular.js +1 -1
- package/dist-es/generated/mistica-icons/icon-disconnect-regular.js +1 -1
- package/dist-es/generated/mistica-icons/icon-dollar-symbol-circle-filled.js +1 -1
- package/dist-es/generated/mistica-icons/icon-dollar-symbol-circle-regular.js +1 -1
- package/dist-es/generated/mistica-icons/icon-dollar-symbol-filled.js +1 -1
- package/dist-es/generated/mistica-icons/icon-dollar-symbol-regular.js +1 -1
- package/dist-es/generated/mistica-icons/icon-download-app-filled.js +1 -1
- package/dist-es/generated/mistica-icons/icon-download-app-regular.js +1 -1
- package/dist-es/generated/mistica-icons/icon-drink-filled.js +1 -1
- package/dist-es/generated/mistica-icons/icon-drink-regular.js +1 -1
- package/dist-es/generated/mistica-icons/icon-dumbbell-filled.js +1 -1
- package/dist-es/generated/mistica-icons/icon-dumbbell-regular.js +6 -6
- package/dist-es/generated/mistica-icons/icon-eco-filled.js +1 -1
- package/dist-es/generated/mistica-icons/icon-eco-regular.js +1 -1
- package/dist-es/generated/mistica-icons/icon-edit-filled.js +1 -1
- package/dist-es/generated/mistica-icons/icon-email-filled.js +1 -1
- package/dist-es/generated/mistica-icons/icon-emergency-cross-with-circle-filled.js +1 -1
- package/dist-es/generated/mistica-icons/icon-error-filled.js +1 -1
- package/dist-es/generated/mistica-icons/icon-esim-filled.js +38 -17
- package/dist-es/generated/mistica-icons/icon-esim-light.js +38 -17
- package/dist-es/generated/mistica-icons/icon-esim-regular.js +37 -16
- package/dist-es/generated/mistica-icons/icon-euro-symbol-circle-filled.js +3 -3
- package/dist-es/generated/mistica-icons/icon-euro-symbol-filled.js +1 -1
- package/dist-es/generated/mistica-icons/icon-funnel-filled.js +25 -14
- package/dist-es/generated/mistica-icons/icon-funnel-light.js +23 -12
- package/dist-es/generated/mistica-icons/icon-funnel-regular.js +23 -12
- package/dist-es/generated/mistica-icons/icon-poison-regular.js +3 -3
- package/dist-es/generated/mistica-icons/icon-price-drop-light.js +4 -4
- package/dist-es/generated/mistica-icons/icon-search-file-filled.js +1 -1
- package/dist-es/hero.css-mistica.js +2 -2
- package/dist-es/highlighted-card.css-mistica.js +4 -4
- package/dist-es/horizontal-scroll.css-mistica.js +1 -1
- package/dist-es/icon-button.css-mistica.js +1 -1
- package/dist-es/icons/icon-error.js +40 -36
- package/dist-es/icons/icon-info.js +45 -17
- package/dist-es/icons/icon-success-vivo-new.js +77 -0
- package/dist-es/icons/icon-success-vivo.js +19 -23
- package/dist-es/icons/icon-success.js +2 -2
- package/dist-es/image.css-mistica.js +1 -1
- package/dist-es/index.js +1713 -1709
- package/dist-es/list.css-mistica.js +2 -2
- package/dist-es/loading-bar.css-mistica.js +2 -2
- package/dist-es/logo.css-mistica.js +3 -0
- package/dist-es/logo.css.ts.vanilla.css-mistica.js +2 -0
- package/dist-es/logo.js +94 -84
- package/dist-es/maybe-dismissable.css-mistica.js +1 -1
- package/dist-es/menu.css-mistica.js +1 -1
- package/dist-es/modal-context-provider.js +22 -11
- package/dist-es/navigation-bar.css-mistica.js +21 -15
- package/dist-es/navigation-bar.js +251 -234
- package/dist-es/navigation-breadcrumbs.css-mistica.js +1 -1
- package/dist-es/nestable-context.js +1 -1
- package/dist-es/overscroll-color-context.js +1 -1
- package/dist-es/package-version.js +1 -1
- package/dist-es/password-field.css-mistica.js +2 -2
- package/dist-es/popover.css-mistica.js +2 -2
- package/dist-es/progress-bar.css-mistica.js +1 -1
- package/dist-es/radio-button.css-mistica.js +4 -4
- package/dist-es/responsive-layout.css-mistica.js +1 -1
- package/dist-es/screen-reader-only.css-mistica.js +1 -1
- package/dist-es/select.css-mistica.js +9 -9
- package/dist-es/sheet-root.js +317 -0
- package/dist-es/sheet.css-mistica.js +4 -0
- package/dist-es/sheet.css.ts.vanilla.css-mistica.js +2 -0
- package/dist-es/sheet.js +570 -0
- package/dist-es/skeletons.css-mistica.js +1 -1
- package/dist-es/snackbar.css-mistica.js +1 -1
- package/dist-es/spinner.css-mistica.js +1 -1
- package/dist-es/sprinkles.css-mistica.js +191 -172
- package/dist-es/stack.js +18 -17
- package/dist-es/stacking-group.css-mistica.js +2 -2
- package/dist-es/stepper.css-mistica.js +2 -2
- package/dist-es/style.css +1 -1
- package/dist-es/switch-component.css-mistica.js +13 -13
- package/dist-es/switch-component.js +1 -1
- package/dist-es/tabs.css-mistica.js +6 -6
- package/dist-es/tag.css-mistica.js +1 -1
- package/dist-es/text-field-base.css-mistica.js +2 -2
- package/dist-es/text-field-components.css-mistica.js +2 -2
- package/dist-es/text-link.css-mistica.js +3 -3
- package/dist-es/text.js +21 -21
- package/dist-es/theme.js +28 -24
- package/dist-es/tooltip.css-mistica.js +3 -3
- package/dist-es/tooltip.js +143 -107
- package/dist-es/touchable.css-mistica.js +2 -2
- package/dist-es/utils/animation.js +26 -15
- package/dist-es/utils/aspect-ratio-support.css-mistica.js +2 -2
- package/dist-es/utils/dom.js +46 -33
- package/dist-es/utils/helpers.js +29 -0
- package/dist-es/video.css-mistica.js +1 -1
- package/package.json +4 -4
package/dist-es/text.js
CHANGED
|
@@ -82,7 +82,7 @@ import * as R from "react";
|
|
|
82
82
|
import $ from "classnames";
|
|
83
83
|
import { assignInlineVars as L } from "@vanilla-extract/dynamic";
|
|
84
84
|
import { useIsInverseVariant as j } from "./theme-variant-context.js";
|
|
85
|
-
import { pxToRem as
|
|
85
|
+
import { pxToRem as h } from "./utils/css.js";
|
|
86
86
|
import { getPrefixedDataAttributes as B } from "./utils/dom.js";
|
|
87
87
|
import { useTheme as a } from "./hooks.js";
|
|
88
88
|
import { vars as m } from "./skins/skin-contract.css-mistica.js";
|
|
@@ -93,21 +93,21 @@ const J = {
|
|
|
93
93
|
medium: 500,
|
|
94
94
|
bold: 700
|
|
95
95
|
}, K = (e)=>e === !0 ? 1 : e || "initial", n = (param)=>{
|
|
96
|
-
let { weight: e , color: i = m.colors.textPrimary , decoration: t , truncate: o , transform:
|
|
96
|
+
let { weight: e , color: i = m.colors.textPrimary , decoration: t , truncate: o , transform: l , wordBreak: c = !0 , hyphens: S , as: z = "span" , children: g , size: u , mobileSize: d = u , desktopSize: b = u , lineHeight: T , mobileLineHeight: f = T , desktopLineHeight: k = T , letterSpacing: w , textAlign: H , textShadow: v , id: A , role: P , "aria-level": y , dataAttributes: I } = param;
|
|
97
97
|
const W = j(), V = K(o), C = {
|
|
98
98
|
[m.colors.textPrimary]: m.colors.textPrimaryInverse,
|
|
99
99
|
[m.colors.textSecondary]: m.colors.textSecondaryInverse,
|
|
100
100
|
[m.colors.textLink]: m.colors.textLinkInverse
|
|
101
101
|
};
|
|
102
|
-
if (!
|
|
102
|
+
if (!g && g !== 0) return null;
|
|
103
103
|
const D = $(E, c ? N : q, {
|
|
104
104
|
[F]: o === 1 || o === !0,
|
|
105
105
|
[G]: o && o > 1
|
|
106
106
|
}), M = L({
|
|
107
|
-
[x.mobileSize]: d ?
|
|
108
|
-
[x.mobileLineHeight]: f ?
|
|
109
|
-
[x.desktopSize]: b ?
|
|
110
|
-
[x.desktopLineHeight]: k ?
|
|
107
|
+
[x.mobileSize]: d ? h(d) : "inherit",
|
|
108
|
+
[x.mobileLineHeight]: f ? h(f) : "inherit",
|
|
109
|
+
[x.desktopSize]: b ? h(b) : "inherit",
|
|
110
|
+
[x.desktopLineHeight]: k ? h(k) : "inherit"
|
|
111
111
|
}), O = o ? L({
|
|
112
112
|
[x.lineClamp]: String(V)
|
|
113
113
|
}) : {};
|
|
@@ -122,21 +122,21 @@ const J = {
|
|
|
122
122
|
hyphens: S,
|
|
123
123
|
letterSpacing: w,
|
|
124
124
|
fontWeight: e ? J[e] : "inherit",
|
|
125
|
-
textTransform:
|
|
125
|
+
textTransform: l || "inherit",
|
|
126
126
|
textDecoration: t !== null && t !== void 0 ? t : "inherit",
|
|
127
127
|
overflowWrap: c ? "anywhere" : "inherit",
|
|
128
128
|
color: W ? (_C_i = C[i]) !== null && _C_i !== void 0 ? _C_i : i : i,
|
|
129
129
|
textAlign: H,
|
|
130
130
|
textShadow: v
|
|
131
131
|
})
|
|
132
|
-
}),
|
|
133
|
-
},
|
|
132
|
+
}), g);
|
|
133
|
+
}, p = (e)=>{
|
|
134
134
|
if (e.light) return "light";
|
|
135
135
|
if (e.regular) return "regular";
|
|
136
136
|
if (e.medium) return "medium";
|
|
137
137
|
if (e.weight) return e.weight;
|
|
138
138
|
}, s = (param)=>{
|
|
139
|
-
let { forceMobileSizes: e , mobileSize: i , mobileLineHeight: t , desktopSize: o , desktopLineHeight:
|
|
139
|
+
let { forceMobileSizes: e , mobileSize: i , mobileLineHeight: t , desktopSize: o , desktopLineHeight: l } = param;
|
|
140
140
|
return e ? {
|
|
141
141
|
size: i,
|
|
142
142
|
lineHeight: t
|
|
@@ -144,7 +144,7 @@ const J = {
|
|
|
144
144
|
mobileSize: i,
|
|
145
145
|
mobileLineHeight: t,
|
|
146
146
|
desktopSize: o,
|
|
147
|
-
desktopLineHeight:
|
|
147
|
+
desktopLineHeight: l
|
|
148
148
|
};
|
|
149
149
|
}, oe = (_param)=>{
|
|
150
150
|
var { dataAttributes: e , forceMobileSizes: i } = _param, t = _object_without_properties(_param, [
|
|
@@ -266,12 +266,12 @@ const J = {
|
|
|
266
266
|
desktopSize: 20,
|
|
267
267
|
desktopLineHeight: "28px"
|
|
268
268
|
})), {
|
|
269
|
-
weight:
|
|
269
|
+
weight: p(t),
|
|
270
270
|
dataAttributes: _object_spread({
|
|
271
271
|
"component-name": "Text4"
|
|
272
272
|
}, e)
|
|
273
273
|
}), t));
|
|
274
|
-
},
|
|
274
|
+
}, he = (_param)=>/* @__PURE__ */ {
|
|
275
275
|
var { dataAttributes: e , forceMobileSizes: i } = _param, t = _object_without_properties(_param, [
|
|
276
276
|
"dataAttributes",
|
|
277
277
|
"forceMobileSizes"
|
|
@@ -283,12 +283,12 @@ const J = {
|
|
|
283
283
|
desktopSize: 18,
|
|
284
284
|
desktopLineHeight: "24px"
|
|
285
285
|
})), {
|
|
286
|
-
weight:
|
|
286
|
+
weight: p(t),
|
|
287
287
|
dataAttributes: _object_spread({
|
|
288
288
|
"component-name": "Text3"
|
|
289
289
|
}, e)
|
|
290
290
|
}), t));
|
|
291
|
-
},
|
|
291
|
+
}, pe = (_param)=>/* @__PURE__ */ {
|
|
292
292
|
var { dataAttributes: e , forceMobileSizes: i } = _param, t = _object_without_properties(_param, [
|
|
293
293
|
"dataAttributes",
|
|
294
294
|
"forceMobileSizes"
|
|
@@ -300,12 +300,12 @@ const J = {
|
|
|
300
300
|
desktopSize: 16,
|
|
301
301
|
desktopLineHeight: "24px"
|
|
302
302
|
})), {
|
|
303
|
-
weight:
|
|
303
|
+
weight: p(t),
|
|
304
304
|
dataAttributes: _object_spread({
|
|
305
305
|
"component-name": "Text2"
|
|
306
306
|
}, e)
|
|
307
307
|
}), t));
|
|
308
|
-
},
|
|
308
|
+
}, le = (_param)=>/* @__PURE__ */ {
|
|
309
309
|
var { dataAttributes: e , forceMobileSizes: i } = _param, t = _object_without_properties(_param, [
|
|
310
310
|
"dataAttributes",
|
|
311
311
|
"forceMobileSizes"
|
|
@@ -317,10 +317,10 @@ const J = {
|
|
|
317
317
|
desktopSize: 14,
|
|
318
318
|
desktopLineHeight: "20px"
|
|
319
319
|
})), {
|
|
320
|
-
weight:
|
|
320
|
+
weight: p(t),
|
|
321
321
|
dataAttributes: _object_spread({
|
|
322
322
|
"component-name": "Text1"
|
|
323
323
|
}, e)
|
|
324
324
|
}), t));
|
|
325
|
-
},
|
|
326
|
-
export { n as Text,
|
|
325
|
+
}, ge = n;
|
|
326
|
+
export { n as Text, le as Text1, oe as Text10, pe as Text2, he as Text3, xe as Text4, ae as Text5, me as Text6, se as Text7, re as Text8, ne as Text9, ge as default };
|
package/dist-es/theme.js
CHANGED
|
@@ -77,7 +77,7 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
77
77
|
}
|
|
78
78
|
return target;
|
|
79
79
|
}
|
|
80
|
-
import { jsx as
|
|
80
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
81
81
|
const l = {
|
|
82
82
|
expirationDatePlaceholder: "MM/AA",
|
|
83
83
|
togglePasswordVisibilityLabel: "Mostrar u ocultar contrase\xf1a",
|
|
@@ -110,8 +110,9 @@ const l = {
|
|
|
110
110
|
carouselNextButton: "siguiente",
|
|
111
111
|
carouselPrevButton: "anterior",
|
|
112
112
|
playIconButtonLabel: "Reproducir",
|
|
113
|
-
pauseIconButtonLabel: "Pausar"
|
|
114
|
-
|
|
113
|
+
pauseIconButtonLabel: "Pausar",
|
|
114
|
+
sheetConfirmButton: "Continuar"
|
|
115
|
+
}, i = {
|
|
115
116
|
expirationDatePlaceholder: "MM/YY",
|
|
116
117
|
togglePasswordVisibilityLabel: "Toggle password visibility",
|
|
117
118
|
loading: "Loading",
|
|
@@ -143,7 +144,8 @@ const l = {
|
|
|
143
144
|
carouselNextButton: "next",
|
|
144
145
|
carouselPrevButton: "previous",
|
|
145
146
|
playIconButtonLabel: "Play",
|
|
146
|
-
pauseIconButtonLabel: "Pause"
|
|
147
|
+
pauseIconButtonLabel: "Pause",
|
|
148
|
+
sheetConfirmButton: "Continue"
|
|
147
149
|
}, d = {
|
|
148
150
|
expirationDatePlaceholder: "MM/JJ",
|
|
149
151
|
togglePasswordVisibilityLabel: "Passwort un-/sichtbar machen",
|
|
@@ -176,7 +178,8 @@ const l = {
|
|
|
176
178
|
carouselNextButton: "n\xe4chste",
|
|
177
179
|
carouselPrevButton: "vorherige",
|
|
178
180
|
playIconButtonLabel: "Abspielen",
|
|
179
|
-
pauseIconButtonLabel: "Pausieren"
|
|
181
|
+
pauseIconButtonLabel: "Pausieren",
|
|
182
|
+
sheetConfirmButton: "Fortfahren"
|
|
180
183
|
}, s = {
|
|
181
184
|
expirationDatePlaceholder: "MM/AA",
|
|
182
185
|
togglePasswordVisibilityLabel: "Mostrar ou ocultar senha",
|
|
@@ -209,7 +212,8 @@ const l = {
|
|
|
209
212
|
carouselNextButton: "pr\xf3ximo",
|
|
210
213
|
carouselPrevButton: "anterior",
|
|
211
214
|
playIconButtonLabel: "Reproduzir",
|
|
212
|
-
pauseIconButtonLabel: "Pausar"
|
|
215
|
+
pauseIconButtonLabel: "Pausar",
|
|
216
|
+
sheetConfirmButton: "Continuar"
|
|
213
217
|
}, b = (e)=>{
|
|
214
218
|
switch(e.toLocaleLowerCase().split(/[-_]/)[0]){
|
|
215
219
|
case "es":
|
|
@@ -219,55 +223,55 @@ const l = {
|
|
|
219
223
|
case "de":
|
|
220
224
|
return d;
|
|
221
225
|
case "en":
|
|
222
|
-
return
|
|
226
|
+
return i;
|
|
223
227
|
default:
|
|
224
|
-
return process.env.NODE_ENV !== "production" && console.error(`Invalid locale: ${e}`),
|
|
228
|
+
return process.env.NODE_ENV !== "production" && console.error(`Invalid locale: ${e}`), i;
|
|
225
229
|
}
|
|
226
230
|
}, c = 56, u = 80, E = {
|
|
227
231
|
headerMobileHeight: c,
|
|
228
232
|
headerDesktopHeight: u
|
|
229
233
|
}, C = (_param)=>/* @__PURE__ */ {
|
|
230
|
-
var { to: e , innerRef: r } = _param,
|
|
234
|
+
var { to: e , innerRef: r } = _param, o = _object_without_properties(_param, [
|
|
231
235
|
"to",
|
|
232
236
|
"innerRef"
|
|
233
237
|
]);
|
|
234
|
-
return
|
|
238
|
+
return a("a", _object_spread_props(_object_spread({
|
|
235
239
|
ref: r,
|
|
236
240
|
href: typeof e == "string" ? e : e == null ? void 0 : e.pathname
|
|
237
|
-
},
|
|
238
|
-
children:
|
|
241
|
+
}, o), {
|
|
242
|
+
children: o.children
|
|
239
243
|
}));
|
|
240
244
|
}, m = (e)=>e, f = (e)=>(_param)=>/* @__PURE__ */ {
|
|
241
|
-
var { innerRef: r } = _param,
|
|
245
|
+
var { innerRef: r } = _param, o = _object_without_properties(_param, [
|
|
242
246
|
"innerRef"
|
|
243
247
|
]);
|
|
244
|
-
return
|
|
248
|
+
return a(e, _object_spread({
|
|
245
249
|
ref: r
|
|
246
|
-
},
|
|
250
|
+
}, o));
|
|
247
251
|
}, p = (e)=>(_param)=>/* @__PURE__ */ {
|
|
248
|
-
var { to: r , innerRef:
|
|
252
|
+
var { to: r , innerRef: o , children: t } = _param, n = _object_without_properties(_param, [
|
|
249
253
|
"to",
|
|
250
254
|
"innerRef",
|
|
251
255
|
"children"
|
|
252
256
|
]);
|
|
253
|
-
return
|
|
257
|
+
return a(e, {
|
|
254
258
|
href: r,
|
|
255
|
-
children: /* @__PURE__ */
|
|
256
|
-
ref:
|
|
257
|
-
},
|
|
259
|
+
children: /* @__PURE__ */ a("a", _object_spread_props(_object_spread({
|
|
260
|
+
ref: o
|
|
261
|
+
}, n), {
|
|
258
262
|
children: t
|
|
259
263
|
}))
|
|
260
264
|
});
|
|
261
265
|
}, v = (e)=>(_param)=>/* @__PURE__ */ {
|
|
262
|
-
var { to: r , innerRef:
|
|
266
|
+
var { to: r , innerRef: o , children: t } = _param, n = _object_without_properties(_param, [
|
|
263
267
|
"to",
|
|
264
268
|
"innerRef",
|
|
265
269
|
"children"
|
|
266
270
|
]);
|
|
267
|
-
return
|
|
271
|
+
return a(e, _object_spread_props(_object_spread({
|
|
268
272
|
href: r,
|
|
269
|
-
ref:
|
|
270
|
-
},
|
|
273
|
+
ref: o
|
|
274
|
+
}, n), {
|
|
271
275
|
children: t
|
|
272
276
|
}));
|
|
273
277
|
}, h = (e)=>{
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "./sprinkles.css.ts.vanilla.css-mistica.js";
|
|
2
2
|
import "./tooltip.css.ts.vanilla.css-mistica.js";
|
|
3
|
-
var v = "_1xhatbpb _1y2v1nfb0
|
|
3
|
+
var v = "_1xhatbpb _1y2v1nfb0 _1y2v1nfeb _1y2v1nfby _1y2v1nfce _1y2v1nfdp _1y2v1nf31 _1y2v1nfdm", t = "_1xhatbpe", _ = "_1xhatbpf", e = "_1xhatbpd", n = "_1xhatbpc", f = "_1y2v1nfb0 _1y2v1nfc1 _1y2v1nfce _1y2v1nfe5 _1y2v1nf2", p = "_1xhatbpj _1y2v1nf68 _1y2v1nf7h _1y2v1nf8q _1y2v1nf9z _1y2v1nfb0 _1y2v1nfev _1y2v1nfbt _1y2v1nfdy _1y2v1nfdm", b = "_1xhatbpl", o = "_1xhatbpm", x = "_1xhatbpn", y = "_1xhatbpo", h = "_1xhatbpp", m = "_1xhatbp6", i = "_1xhatbp7", d = "_1xhatbp8", w = "_1xhatbpk", c = {
|
|
4
4
|
shadowAlpha: "var(--_1xhatbp0)",
|
|
5
5
|
enterTransform: "var(--_1xhatbp1)",
|
|
6
6
|
enterDoneTransform: "var(--_1xhatbp2)",
|
|
7
7
|
exitTransform: "var(--_1xhatbp3)",
|
|
8
8
|
enterActiveAnimationName: "var(--_1xhatbp4)",
|
|
9
9
|
arrowBoxShadow: "var(--_1xhatbp5)"
|
|
10
|
-
}, s = "
|
|
11
|
-
export { v as arrow, t as arrowBottom, _ as arrowLeft,
|
|
10
|
+
}, s = "_1y2v1nfb9";
|
|
11
|
+
export { v as arrow, t as arrowBottom, _ as arrowLeft, e as arrowRight, n as arrowTop, f as arrowWrapper, p as container, b as enter, o as enterActive, x as enterDone, y as exit, h as exitActive, m as fadeInBottomKeyframes, i as fadeInTopKeyframes, d as fadeInXKeyframes, w as textAlign, c as vars, s as wrapper };
|
package/dist-es/tooltip.js
CHANGED
|
@@ -77,22 +77,22 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
77
77
|
}
|
|
78
78
|
return target;
|
|
79
79
|
}
|
|
80
|
-
import { jsxs as
|
|
81
|
-
import * as
|
|
82
|
-
import
|
|
83
|
-
import { CSSTransition as
|
|
84
|
-
import { useTheme as
|
|
85
|
-
import { Portal as
|
|
86
|
-
import
|
|
87
|
-
import { Text2 as
|
|
88
|
-
import { TAB as
|
|
89
|
-
import
|
|
90
|
-
import { vars as
|
|
91
|
-
import { assignInlineVars as
|
|
92
|
-
import { getPrefixedDataAttributes as
|
|
93
|
-
import { isClientSide as
|
|
94
|
-
const
|
|
95
|
-
var { children:
|
|
80
|
+
import { jsxs as P, Fragment as tt, jsx as w } from "react/jsx-runtime";
|
|
81
|
+
import * as o from "react";
|
|
82
|
+
import E from "classnames";
|
|
83
|
+
import { CSSTransition as et } from "react-transition-group";
|
|
84
|
+
import { useTheme as rt, useScreenSize as nt, useAriaId as ot } from "./hooks.js";
|
|
85
|
+
import { Portal as it } from "./portal.js";
|
|
86
|
+
import at from "./overlay.js";
|
|
87
|
+
import { Text2 as I } from "./text.js";
|
|
88
|
+
import { TAB as ct } from "./utils/key-codes.js";
|
|
89
|
+
import st from "./stack.js";
|
|
90
|
+
import { vars as s, wrapper as ut, enter as lt, enterActive as dt, enterDone as ft, exit as ht, exitActive as wt, container as mt, textAlign as pt, arrowWrapper as gt, arrow as xt, fadeInTopKeyframes as Tt, fadeInBottomKeyframes as vt, fadeInXKeyframes as bt, arrowTop as At, arrowBottom as Pt, arrowLeft as St, arrowRight as Yt } from "./tooltip.css-mistica.js";
|
|
91
|
+
import { assignInlineVars as Ot } from "@vanilla-extract/dynamic";
|
|
92
|
+
import { getPrefixedDataAttributes as Rt } from "./utils/dom.js";
|
|
93
|
+
import { isClientSide as yt, isServerSide as Ct } from "./utils/environment.js";
|
|
94
|
+
const Dt = "bottom", Wt = "top", $t = 12, m = 4 + $t, Bt = 500, v = 12, Et = 500, M = ()=>{}, It = (r)=>r === "bottom" ? `translateY(${v}px)` : r === "top" ? `translateY(calc(-100% - ${v}px))` : r === "right" ? `translateX(${v}px) translateY(-50%)` : r === "left" ? `translateX(-${v}px) translateY(-50%)` : `translateY(-${v}px)`, Mt = (r)=>r === "top" ? "translateY(-100%)" : r === "bottom" ? "translateY(0)" : "translateY(-50%)", Nt = (r)=>r === "bottom" ? "translateY(0)" : r === "top" ? "translateY(-100%)" : r === "right" || r === "left" ? "translateX(0px) translateY(-50%)" : "translateY(0px)", kt = (r)=>r === "top" ? Tt : r === "bottom" ? vt : bt, Lt = (r)=>r ? "1" : "0.2", Vt = (r)=>r === "top" ? `2px 2px 4px 0 rgba(0, 0, 0, ${s.shadowAlpha})` : r === "right" ? `0 0 4px 0 rgba(0, 0, 0, ${s.shadowAlpha})` : r === "left" ? `0 0 4px 0 rgba(0, 0, 0, ${s.shadowAlpha})` : r === "bottom" ? `-1px -1px 4px 0 rgba(0, 0, 0, ${s.shadowAlpha})` : "", jt = (_param)=>{
|
|
95
|
+
var { children: r , extra: N , description: S , target: k , title: Y , targetLabel: L , delay: V = !0 , dataAttributes: j , targetStyle: K , unstable_offsetX: f } = _param, C = _object_without_properties(_param, [
|
|
96
96
|
"children",
|
|
97
97
|
"extra",
|
|
98
98
|
"description",
|
|
@@ -100,146 +100,182 @@ const xt = "bottom", Tt = "top", bt = 12, h = 4 + bt, g = 16, vt = 340, At = 500
|
|
|
100
100
|
"title",
|
|
101
101
|
"targetLabel",
|
|
102
102
|
"delay",
|
|
103
|
-
"dataAttributes"
|
|
103
|
+
"dataAttributes",
|
|
104
|
+
"targetStyle",
|
|
105
|
+
"unstable_offsetX"
|
|
104
106
|
]);
|
|
105
|
-
const { isDarkMode:
|
|
107
|
+
const { isDarkMode: z } = rt(), [a, O] = o.useState(!1), { isTabletOrSmaller: F } = nt(), D = ot(), h = o.useRef(!1), c = o.useRef(null), g = o.useRef(null), R = o.useRef(null), x = o.useRef(null), t = o.useRef({
|
|
106
108
|
top: 0,
|
|
107
109
|
right: 0,
|
|
108
110
|
left: 0,
|
|
109
111
|
bottom: 0,
|
|
110
112
|
width: 0,
|
|
111
113
|
height: 0
|
|
112
|
-
}),
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
114
|
+
}), [H, X] = o.useState({}), q = (n)=>F ? n || Wt : n || Dt, [e, G] = o.useState(void 0), i = ((n)=>{
|
|
115
|
+
if (!e) return n;
|
|
116
|
+
const u = (d)=>{
|
|
117
|
+
const p = t.current.top > e.height;
|
|
118
|
+
return t.current.left < e.width ? p ? "top" : "bottom" : d;
|
|
119
|
+
}, l = (d)=>t.current.right + e.width > window.innerWidth ? u("left") : d;
|
|
120
|
+
return ({
|
|
121
|
+
top: t.current.top < e.height ? l("bottom") : l(n),
|
|
122
|
+
right: l(n),
|
|
123
|
+
left: t.current.left < e.width ? t.current.right + e.width > window.innerWidth ? t.current.top < e.height ? "bottom" : "top" : "right" : n,
|
|
124
|
+
bottom: t.current.bottom + e.height > window.innerHeight ? l("top") : l(n)
|
|
125
|
+
})[n];
|
|
126
|
+
})(q(C.position)), y = yt() ? window.matchMedia("(pointer: coarse)").matches : !1, W = ()=>{
|
|
127
|
+
a && O(!1);
|
|
117
128
|
};
|
|
118
|
-
|
|
119
|
-
window.removeEventListener("resize",
|
|
129
|
+
o.useEffect(()=>(window.addEventListener("resize", W), ()=>{
|
|
130
|
+
window.removeEventListener("resize", W);
|
|
120
131
|
}));
|
|
121
|
-
const
|
|
122
|
-
|
|
123
|
-
},
|
|
124
|
-
|
|
125
|
-
},
|
|
126
|
-
|
|
127
|
-
},
|
|
128
|
-
|
|
129
|
-
},
|
|
132
|
+
const $ = ()=>{
|
|
133
|
+
O(!1);
|
|
134
|
+
}, T = ()=>{
|
|
135
|
+
R.current && (t.current = R.current.getBoundingClientRect(), O(!a));
|
|
136
|
+
}, J = ()=>{
|
|
137
|
+
a || T();
|
|
138
|
+
}, Q = (n)=>{
|
|
139
|
+
n.keyCode === ct && $();
|
|
140
|
+
}, U = (n)=>{
|
|
141
|
+
if (!e) return {};
|
|
142
|
+
const u = e.width > t.current.width && t.current.left + t.current.width / 2 < e.width / 2 + 16 ? t.current.width / 2 : "50%";
|
|
143
|
+
return n === "bottom" || n === "top" ? {
|
|
144
|
+
left: u
|
|
145
|
+
} : {};
|
|
146
|
+
}, B = o.useCallback((n, u)=>{
|
|
147
|
+
if (Ct() || !e) return {};
|
|
148
|
+
const l = e.width > t.current.width && t.current.left + t.current.width / 2 < e.width / 2 + 16 ? Math.round(e.width / 2 - t.current.width / 2) : 0, A = f || (u ? window.pageXOffset + t.current.left + t.current.width / 2 - u / 2 : window.pageXOffset + t.current.left + l + t.current.width / 2 - e.width / 2), d = t.current.left < e.width ? A : u ? t.current.left - u - m : t.current.left - e.width - m, p = t.current.left < e.width ? t.current.top < e.height ? window.pageYOffset + t.current.bottom + m : window.pageYOffset + t.current.top - m : f || window.pageYOffset + t.current.top + t.current.height / 2;
|
|
149
|
+
return ({
|
|
130
150
|
right: {
|
|
131
|
-
left: e.current.right +
|
|
132
|
-
top: window.pageYOffset +
|
|
151
|
+
left: t.current.right + e.width > window.innerWidth ? d : t.current.right + m,
|
|
152
|
+
top: t.current.right + e.width > window.innerWidth ? p : f || window.pageYOffset + t.current.top + t.current.height / 2
|
|
133
153
|
},
|
|
134
154
|
left: {
|
|
135
|
-
left:
|
|
136
|
-
top:
|
|
155
|
+
left: d,
|
|
156
|
+
top: p
|
|
137
157
|
},
|
|
138
158
|
top: {
|
|
139
|
-
top: window.pageYOffset +
|
|
140
|
-
left:
|
|
159
|
+
top: t.current.right + e.width > window.innerWidth ? p : window.pageYOffset + t.current.top - m,
|
|
160
|
+
left: t.current.right + e.width > window.innerWidth ? d : A
|
|
141
161
|
},
|
|
142
162
|
bottom: {
|
|
143
|
-
top: window.pageYOffset +
|
|
144
|
-
left:
|
|
163
|
+
top: t.current.right + e.width > window.innerWidth ? p : window.pageYOffset + t.current.bottom + m,
|
|
164
|
+
left: t.current.right + e.width > window.innerWidth ? d : A
|
|
145
165
|
}
|
|
146
|
-
})[
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
[
|
|
157
|
-
[
|
|
158
|
-
[
|
|
159
|
-
[
|
|
166
|
+
})[n];
|
|
167
|
+
}, [
|
|
168
|
+
f,
|
|
169
|
+
e
|
|
170
|
+
]), b = (()=>C.width)(), Z = {
|
|
171
|
+
top: At,
|
|
172
|
+
bottom: Pt,
|
|
173
|
+
left: St,
|
|
174
|
+
right: Yt
|
|
175
|
+
}, _ = i && Ot({
|
|
176
|
+
[s.enterTransform]: It(i),
|
|
177
|
+
[s.exitTransform]: Nt(i),
|
|
178
|
+
[s.enterActiveAnimationName]: kt(i),
|
|
179
|
+
[s.enterDoneTransform]: Mt(i),
|
|
180
|
+
[s.shadowAlpha]: Lt(z),
|
|
181
|
+
[s.arrowBoxShadow]: Vt(i)
|
|
160
182
|
});
|
|
161
|
-
return
|
|
183
|
+
return o.useEffect(()=>{
|
|
184
|
+
i && x.current && a && X(B(i, b || 0));
|
|
185
|
+
}, [
|
|
186
|
+
a,
|
|
187
|
+
B,
|
|
188
|
+
i,
|
|
189
|
+
b
|
|
190
|
+
]), o.useEffect(()=>{
|
|
191
|
+
x.current && (x.current.getBoundingClientRect(), a && G(x.current.getBoundingClientRect()));
|
|
192
|
+
}, [
|
|
193
|
+
a
|
|
194
|
+
]), /* @__PURE__ */ P(tt, {
|
|
162
195
|
children: [
|
|
163
|
-
/* @__PURE__ */
|
|
164
|
-
ref:
|
|
165
|
-
|
|
196
|
+
/* @__PURE__ */ w("div", {
|
|
197
|
+
ref: R,
|
|
198
|
+
style: K,
|
|
199
|
+
className: ut,
|
|
166
200
|
onPointerOver: ()=>{
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
},
|
|
201
|
+
c.current && (clearTimeout(c.current), c.current = null), !h.current && (h.current = !0, V ? g.current = setTimeout(()=>{
|
|
202
|
+
g.current = null, T();
|
|
203
|
+
}, Et) : T());
|
|
170
204
|
},
|
|
171
|
-
onPointerLeave:
|
|
172
|
-
if (
|
|
173
|
-
clearTimeout(
|
|
205
|
+
onPointerLeave: y ? M : ()=>{
|
|
206
|
+
if (g.current) {
|
|
207
|
+
clearTimeout(g.current), g.current = null, h.current = !1;
|
|
174
208
|
return;
|
|
175
209
|
}
|
|
176
|
-
|
|
177
|
-
|
|
210
|
+
c.current = setTimeout(()=>{
|
|
211
|
+
h.current && (c.current = null, h.current = !1, T());
|
|
178
212
|
}, 100);
|
|
179
213
|
},
|
|
180
|
-
onFocus:
|
|
181
|
-
onKeyDown:
|
|
214
|
+
onFocus: J,
|
|
215
|
+
onKeyDown: Q,
|
|
182
216
|
"touch-action": "auto",
|
|
183
217
|
role: "button",
|
|
184
218
|
tabIndex: 0,
|
|
185
|
-
"aria-describedby":
|
|
186
|
-
"aria-expanded":
|
|
187
|
-
"aria-label":
|
|
188
|
-
children:
|
|
219
|
+
"aria-describedby": D,
|
|
220
|
+
"aria-expanded": a,
|
|
221
|
+
"aria-label": L,
|
|
222
|
+
children: k
|
|
189
223
|
}),
|
|
190
|
-
/* @__PURE__ */
|
|
224
|
+
/* @__PURE__ */ P(it, {
|
|
191
225
|
children: [
|
|
192
|
-
|
|
193
|
-
onPress:
|
|
226
|
+
a && y && /* @__PURE__ */ w(at, {
|
|
227
|
+
onPress: $
|
|
194
228
|
}),
|
|
195
|
-
/* @__PURE__ */
|
|
196
|
-
in:
|
|
197
|
-
timeout:
|
|
229
|
+
/* @__PURE__ */ w(et, {
|
|
230
|
+
in: a,
|
|
231
|
+
timeout: Bt,
|
|
198
232
|
classNames: {
|
|
199
|
-
enter:
|
|
200
|
-
enterActive:
|
|
201
|
-
enterDone:
|
|
202
|
-
exit:
|
|
203
|
-
exitActive:
|
|
233
|
+
enter: lt,
|
|
234
|
+
enterActive: dt,
|
|
235
|
+
enterDone: ft,
|
|
236
|
+
exit: ht,
|
|
237
|
+
exitActive: wt
|
|
204
238
|
},
|
|
205
239
|
unmountOnExit: !0,
|
|
206
|
-
children: /* @__PURE__ */
|
|
240
|
+
children: /* @__PURE__ */ P("div", _object_spread_props(_object_spread({
|
|
241
|
+
ref: x
|
|
242
|
+
}, Rt(j, "Tooltip")), {
|
|
207
243
|
role: "tooltip",
|
|
208
|
-
id:
|
|
209
|
-
className:
|
|
244
|
+
id: D,
|
|
245
|
+
className: E(mt, pt),
|
|
210
246
|
style: _object_spread({
|
|
211
|
-
width:
|
|
212
|
-
},
|
|
247
|
+
width: b
|
|
248
|
+
}, H, _),
|
|
213
249
|
onPointerOver: ()=>{
|
|
214
|
-
|
|
250
|
+
c.current && (clearTimeout(c.current), c.current = null);
|
|
215
251
|
},
|
|
216
|
-
onPointerLeave:
|
|
217
|
-
|
|
218
|
-
|
|
252
|
+
onPointerLeave: y ? M : ()=>{
|
|
253
|
+
c.current = setTimeout(()=>{
|
|
254
|
+
h.current && (c.current = null, h.current = !1, T());
|
|
219
255
|
}, 100);
|
|
220
256
|
},
|
|
221
257
|
children: [
|
|
222
|
-
/* @__PURE__ */
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
children: /* @__PURE__ */
|
|
226
|
-
className:
|
|
258
|
+
/* @__PURE__ */ w("div", {
|
|
259
|
+
style: U(i),
|
|
260
|
+
className: E(gt, Z[i]),
|
|
261
|
+
children: /* @__PURE__ */ w("div", {
|
|
262
|
+
className: xt
|
|
227
263
|
})
|
|
228
264
|
}),
|
|
229
|
-
(
|
|
265
|
+
(Y || S) && /* @__PURE__ */ P(st, {
|
|
230
266
|
space: 4,
|
|
231
267
|
children: [
|
|
232
|
-
|
|
268
|
+
Y && /* @__PURE__ */ w(I, {
|
|
233
269
|
medium: !0,
|
|
234
|
-
children:
|
|
270
|
+
children: Y
|
|
235
271
|
}),
|
|
236
|
-
|
|
272
|
+
S && /* @__PURE__ */ w(I, {
|
|
237
273
|
regular: !0,
|
|
238
|
-
children:
|
|
274
|
+
children: S
|
|
239
275
|
})
|
|
240
276
|
]
|
|
241
277
|
}),
|
|
242
|
-
|
|
278
|
+
N || r
|
|
243
279
|
]
|
|
244
280
|
}))
|
|
245
281
|
})
|
|
@@ -247,5 +283,5 @@ const xt = "bottom", Tt = "top", bt = 12, h = 4 + bt, g = 16, vt = 340, At = 500
|
|
|
247
283
|
})
|
|
248
284
|
]
|
|
249
285
|
});
|
|
250
|
-
},
|
|
251
|
-
export {
|
|
286
|
+
}, oe = jt;
|
|
287
|
+
export { oe as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "./sprinkles.css.ts.vanilla.css-mistica.js";
|
|
2
2
|
import "./touchable.css.ts.vanilla.css-mistica.js";
|
|
3
|
-
var
|
|
4
|
-
export {
|
|
3
|
+
var y = "mhti6u1 _1y2v1nfe4", f = "mhti6u4", _ = "mhti6u1 _1y2v1nfe4 _1y2v1nf5z _1y2v1nf78 _1y2v1nf8h _1y2v1nf9q _1y2v1nfb7 _1y2v1nfdn _1y2v1nfbs _1y2v1nf2y _1y2v1nf5y _1y2v1nfe6";
|
|
4
|
+
export { y as base, f as notTouchable, _ as touchable };
|