@telefonica/mistica 14.13.0 → 14.15.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 +3 -3
- package/dist/badge.js +19 -10
- package/dist/box.d.ts +1 -1
- package/dist/boxed.css-mistica.js +4 -4
- package/dist/boxed.css.d.ts +1 -1
- package/dist/boxed.js +12 -14
- package/dist/button-layout.css-mistica.js +4 -4
- package/dist/button.css-mistica.js +19 -19
- package/dist/button.js +112 -112
- package/dist/callout.css-mistica.js +1 -1
- package/dist/card.css-mistica.js +38 -15
- package/dist/card.css.d.ts +11 -0
- package/dist/card.d.ts +36 -34
- package/dist/card.js +631 -480
- package/dist/carousel.css-mistica.js +13 -13
- package/dist/checkbox.css-mistica.js +5 -5
- package/dist/chip.css-mistica.js +4 -4
- package/dist/chip.d.ts +1 -0
- package/dist/chip.js +57 -41
- package/dist/circle.css-mistica.js +1 -1
- package/dist/dialog.css-mistica.js +3 -3
- 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 +3 -3
- package/dist/feedback.css-mistica.js +3 -3
- package/dist/fixed-footer-layout.css-mistica.js +1 -1
- package/dist/fixed-footer-layout.js +79 -26
- package/dist/generated/mistica-icons/icon-alert-filled.js +15 -5
- package/dist/generated/mistica-icons/icon-alert-light.js +24 -8
- package/dist/generated/mistica-icons/icon-alert-regular.js +30 -14
- package/dist/generated/mistica-icons/icon-bell-filled.js +19 -9
- package/dist/generated/mistica-icons/icon-bell-light.js +16 -6
- package/dist/generated/mistica-icons/icon-bell-regular.js +19 -9
- package/dist/generated/mistica-icons/icon-dollar-symbol-circle-light.js +28 -11
- package/dist/generated/mistica-icons/icon-dollar-symbol-circle-regular.js +20 -9
- package/dist/generated/mistica-icons/icon-edit-pencil-light.js +21 -10
- package/dist/generated/mistica-icons/icon-edit-pencil-regular.js +22 -12
- package/dist/generated/mistica-icons/icon-gift-filled.js +19 -9
- package/dist/generated/mistica-icons/icon-gift-light.js +20 -10
- package/dist/generated/mistica-icons/icon-gift-regular.js +19 -9
- package/dist/generated/mistica-icons/icon-heart-filled.js +16 -6
- package/dist/generated/mistica-icons/icon-heart-light.js +18 -8
- package/dist/generated/mistica-icons/icon-heart-regular.js +24 -14
- package/dist/generated/mistica-icons/icon-home-filled.js +23 -13
- package/dist/generated/mistica-icons/icon-home-light.js +24 -14
- package/dist/generated/mistica-icons/icon-home-regular.js +21 -11
- package/dist/generated/mistica-icons/icon-home-wifi-filled.js +24 -7
- package/dist/generated/mistica-icons/icon-home-wifi-light.js +25 -8
- package/dist/generated/mistica-icons/icon-home-wifi-regular.js +24 -7
- package/dist/generated/mistica-icons/icon-pause-regular.js +10 -12
- package/dist/generated/mistica-icons/icon-play-regular.js +14 -16
- package/dist/generated/mistica-icons/icon-reload-light.js +22 -12
- package/dist/generated/mistica-icons/icon-reload-regular.js +24 -14
- package/dist/generated/mistica-icons/icon-share-filled.js +20 -10
- package/dist/generated/mistica-icons/icon-share-light.js +21 -11
- package/dist/generated/mistica-icons/icon-share-regular.js +21 -11
- package/dist/generated/mistica-icons/icon-shopping-bag-filled.d.ts +4 -0
- package/dist/generated/mistica-icons/icon-shopping-bag-filled.js +110 -0
- package/dist/generated/mistica-icons/icon-shopping-bag-light.d.ts +4 -0
- package/dist/generated/mistica-icons/icon-shopping-bag-light.js +110 -0
- package/dist/generated/mistica-icons/icon-shopping-bag-regular.d.ts +4 -0
- package/dist/generated/mistica-icons/icon-shopping-bag-regular.js +110 -0
- package/dist/generated/mistica-icons/icon-tickets-filled.js +17 -7
- package/dist/generated/mistica-icons/icon-tickets-light.js +26 -10
- package/dist/generated/mistica-icons/icon-tickets-regular.js +35 -19
- package/dist/grid.css.d.ts +6 -6
- package/dist/hero.css-mistica.js +1 -1
- package/dist/highlighted-card.css-mistica.js +3 -3
- package/dist/hooks.js +57 -56
- package/dist/image.css-mistica.js +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.js +14 -1
- package/dist/list.css-mistica.js +7 -7
- package/dist/loading-bar.css-mistica.js +4 -4
- package/dist/maybe-dismissable.css-mistica.js +3 -3
- package/dist/menu.css-mistica.js +1 -1
- package/dist/navigation-bar.css-mistica.js +11 -11
- package/dist/navigation-breadcrumbs.css-mistica.js +1 -1
- package/dist/package-version.js +1 -1
- package/dist/password-field.css-mistica.js +1 -1
- package/dist/popover.css-mistica.js +3 -3
- 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 +2 -2
- package/dist/screen-reader-only.css-mistica.js +1 -1
- package/dist/select.css-mistica.js +13 -13
- package/dist/skins/blau.js +13 -1
- package/dist/skins/defaults.js +12 -0
- package/dist/skins/movistar-legacy.js +15 -3
- package/dist/skins/movistar.js +12 -0
- package/dist/skins/o2.js +12 -0
- package/dist/skins/telefonica.js +12 -0
- package/dist/skins/types/index.d.ts +15 -9
- package/dist/skins/vivo-new.js +12 -0
- package/dist/skins/vivo.js +12 -0
- package/dist/snackbar.css-mistica.js +3 -3
- package/dist/sprinkles.css-mistica.js +226 -190
- package/dist/sprinkles.css.d.ts +16 -16
- package/dist/stepper.css-mistica.js +3 -3
- package/dist/stepper.js +26 -26
- package/dist/switch-component.css-mistica.js +10 -10
- package/dist/tabs.css-mistica.js +7 -7
- package/dist/tag.css-mistica.js +1 -1
- package/dist/tag.js +15 -14
- package/dist/text-field-base.css-mistica.js +6 -6
- package/dist/text-field-components.css-mistica.js +6 -6
- package/dist/text-link.css-mistica.js +5 -5
- package/dist/text.d.ts +6 -8
- package/dist/text.js +8 -7
- package/dist/theme-context-provider.js +34 -30
- package/dist/title.js +27 -24
- package/dist/tooltip.css-mistica.js +6 -6
- package/dist/tooltip.js +35 -34
- package/dist/touchable.css-mistica.js +3 -3
- package/dist/utils/aspect-ratio-support.css-mistica.js +2 -2
- package/dist/utils/dom.js +10 -10
- package/dist/utils/environment.d.ts +1 -0
- package/dist/utils/environment.js +12 -4
- package/dist/video.css-mistica.js +1 -1
- package/dist-es/avatar.css-mistica.js +1 -1
- package/dist-es/badge.css-mistica.js +2 -2
- package/dist-es/badge.js +29 -20
- package/dist-es/boxed.css-mistica.js +3 -3
- package/dist-es/boxed.js +16 -18
- package/dist-es/button-layout.css-mistica.js +3 -3
- package/dist-es/button.css-mistica.js +9 -9
- package/dist-es/button.js +154 -154
- package/dist-es/callout.css-mistica.js +1 -1
- package/dist-es/card.css-mistica.js +4 -2
- package/dist-es/card.js +671 -521
- package/dist-es/carousel.css-mistica.js +2 -2
- package/dist-es/checkbox.css-mistica.js +5 -5
- package/dist-es/chip.css-mistica.js +4 -4
- package/dist-es/chip.js +77 -61
- package/dist-es/circle.css-mistica.js +1 -1
- package/dist-es/dialog.css-mistica.js +3 -3
- 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/fixed-footer-layout.css-mistica.js +1 -1
- package/dist-es/fixed-footer-layout.js +97 -44
- package/dist-es/generated/mistica-icons/icon-alert-filled.js +18 -8
- package/dist-es/generated/mistica-icons/icon-alert-light.js +30 -14
- package/dist-es/generated/mistica-icons/icon-alert-regular.js +36 -20
- package/dist-es/generated/mistica-icons/icon-bell-filled.js +26 -16
- package/dist-es/generated/mistica-icons/icon-bell-light.js +20 -10
- package/dist-es/generated/mistica-icons/icon-bell-regular.js +20 -10
- package/dist-es/generated/mistica-icons/icon-dollar-symbol-circle-light.js +33 -16
- package/dist-es/generated/mistica-icons/icon-dollar-symbol-circle-regular.js +25 -14
- package/dist-es/generated/mistica-icons/icon-edit-pencil-light.js +25 -14
- package/dist-es/generated/mistica-icons/icon-edit-pencil-regular.js +30 -20
- package/dist-es/generated/mistica-icons/icon-gift-filled.js +22 -12
- package/dist-es/generated/mistica-icons/icon-gift-light.js +23 -13
- package/dist-es/generated/mistica-icons/icon-gift-regular.js +22 -12
- package/dist-es/generated/mistica-icons/icon-heart-filled.js +18 -8
- package/dist-es/generated/mistica-icons/icon-heart-light.js +24 -14
- package/dist-es/generated/mistica-icons/icon-heart-regular.js +25 -15
- package/dist-es/generated/mistica-icons/icon-home-filled.js +30 -20
- package/dist-es/generated/mistica-icons/icon-home-light.js +27 -17
- package/dist-es/generated/mistica-icons/icon-home-regular.js +27 -17
- package/dist-es/generated/mistica-icons/icon-home-wifi-filled.js +28 -11
- package/dist-es/generated/mistica-icons/icon-home-wifi-light.js +29 -12
- package/dist-es/generated/mistica-icons/icon-home-wifi-regular.js +28 -11
- package/dist-es/generated/mistica-icons/icon-pause-regular.js +12 -14
- package/dist-es/generated/mistica-icons/icon-play-regular.js +19 -21
- package/dist-es/generated/mistica-icons/icon-reload-light.js +27 -17
- package/dist-es/generated/mistica-icons/icon-reload-regular.js +27 -17
- package/dist-es/generated/mistica-icons/icon-share-filled.js +25 -15
- package/dist-es/generated/mistica-icons/icon-share-light.js +28 -18
- package/dist-es/generated/mistica-icons/icon-share-regular.js +28 -18
- package/dist-es/generated/mistica-icons/icon-shopping-bag-filled.js +101 -0
- package/dist-es/generated/mistica-icons/icon-shopping-bag-light.js +101 -0
- package/dist-es/generated/mistica-icons/icon-shopping-bag-regular.js +101 -0
- package/dist-es/generated/mistica-icons/icon-tickets-filled.js +21 -11
- package/dist-es/generated/mistica-icons/icon-tickets-light.js +30 -14
- package/dist-es/generated/mistica-icons/icon-tickets-regular.js +43 -27
- package/dist-es/hero.css-mistica.js +1 -1
- package/dist-es/highlighted-card.css-mistica.js +3 -3
- package/dist-es/hooks.js +51 -50
- package/dist-es/image.css-mistica.js +1 -1
- package/dist-es/index.js +1762 -1758
- package/dist-es/list.css-mistica.js +2 -2
- package/dist-es/loading-bar.css-mistica.js +2 -2
- package/dist-es/maybe-dismissable.css-mistica.js +2 -2
- package/dist-es/menu.css-mistica.js +1 -1
- package/dist-es/navigation-bar.css-mistica.js +8 -8
- package/dist-es/navigation-breadcrumbs.css-mistica.js +1 -1
- package/dist-es/package-version.js +1 -1
- package/dist-es/password-field.css-mistica.js +1 -1
- 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 +2 -2
- package/dist-es/screen-reader-only.css-mistica.js +1 -1
- package/dist-es/select.css-mistica.js +10 -10
- package/dist-es/skins/blau.js +13 -1
- package/dist-es/skins/defaults.js +12 -0
- package/dist-es/skins/movistar-legacy.js +15 -3
- package/dist-es/skins/movistar.js +12 -0
- package/dist-es/skins/o2.js +12 -0
- package/dist-es/skins/telefonica.js +12 -0
- package/dist-es/skins/vivo-new.js +12 -0
- package/dist-es/skins/vivo.js +12 -0
- package/dist-es/snackbar.css-mistica.js +2 -2
- package/dist-es/sprinkles.css-mistica.js +226 -190
- package/dist-es/stepper.css-mistica.js +2 -2
- package/dist-es/stepper.js +50 -50
- package/dist-es/style.css +1 -1
- package/dist-es/switch-component.css-mistica.js +10 -10
- package/dist-es/tabs.css-mistica.js +6 -6
- package/dist-es/tag.css-mistica.js +1 -1
- package/dist-es/tag.js +28 -27
- 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 +5 -5
- package/dist-es/text.js +11 -10
- package/dist-es/theme-context-provider.js +72 -68
- package/dist-es/title.js +36 -33
- package/dist-es/tooltip.css-mistica.js +3 -3
- package/dist-es/tooltip.js +37 -36
- package/dist-es/touchable.css-mistica.js +2 -2
- package/dist-es/utils/aspect-ratio-support.css-mistica.js +2 -2
- package/dist-es/utils/dom.js +9 -9
- package/dist-es/utils/environment.js +2 -2
- package/dist-es/video.css-mistica.js +1 -1
- package/package.json +2 -1
- package/dist/boxed.css.ts.vanilla.css-mistica.js +0 -11
- package/dist-es/boxed.css.ts.vanilla.css-mistica.js +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "./sprinkles.css.ts.vanilla.css-mistica.js";
|
|
2
2
|
import "./text-field-base.css.ts.vanilla.css-mistica.js";
|
|
3
|
-
var n = "rhey4tf
|
|
4
|
-
export { n as endIcon, r as fullWidth, t as input,
|
|
3
|
+
var n = "rhey4tf _1y2v1nf7o _1y2v1nf85 _1y2v1nf64 _1y2v1nf6j", r = "rhey4t4", t = "rhey4ta _1y2v1nf5z _1y2v1nf8w rhey4t1 _1y2v1nfaa _1y2v1nf9d _1y2v1nf1w _1y2v1nf8f", f = "rhey4tb", e = "rhey4tc", _ = "_1y2v1nf6w _1y2v1nf7b", a = "rhey4to _1y2v1nf97 _1y2v1nf64 _1y2v1nf6j _1y2v1nfar", h = "_1y2v1nf3e", i = "rhey4tj _1y2v1nf7p _1y2v1nf85", o = "rhey4tl _1y2v1nf79", l = "_1y2v1nf6w _1y2v1nf7b", p = "rhey4th _1y2v1nf7p _1y2v1nf84 _1y2v1nf64 _1y2v1nf6j _1y2v1nf8w _1y2v1nf60", u = "rhey4tr _1y2v1nf60", b = "rhey4t6 _1y2v1nf6r _1y2v1nf76 _1y2v1nf7l _1y2v1nf80 rhey4t1 _1y2v1nfaa _1y2v1nf9d _1y2v1nf1w _1y2v1nf8f", x = "rhey4t7", W = "rhey4t8";
|
|
4
|
+
export { n as endIcon, r as fullWidth, t as input, f as inputFirefoxStyles, e as inputWithLabel, _ as inputWithoutLabel, a as menuItem, h as menuItemSelected, i as prefix, o as prefixWithLabel, l as prefixWithoutLabel, p as startIcon, u as suggestionsContainer, b as textArea, x as textAreaWithLabel, W as textAreaWithoutLabel };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "./sprinkles.css.ts.vanilla.css-mistica.js";
|
|
2
2
|
import "./text-field-components.css.ts.vanilla.css-mistica.js";
|
|
3
|
-
var _ = 328, a = 12, n = 0.78, f = 0.75, e = "_15k6ur97", y = "
|
|
4
|
-
export { _ as DEFAULT_WIDTH, a as LABEL_LEFT_POSITION, n as LABEL_SCALE_DESKTOP, f as LABEL_SCALE_MOBILE, e as disabled, y as field, i as fieldContainer, l as fieldMulti, t as fieldSingle,
|
|
3
|
+
var _ = 328, a = 12, n = 0.78, f = 0.75, e = "_15k6ur97", y = "_1y2v1nfas _1y2v1nfa9 _1y2v1nf64 _1y2v1nfai _1y2v1nf5z", i = "_15k6ur96 _1y2v1nf64 _1y2v1nf6a", l = "_15k6ur9e", t = "_15k6ur9d _1y2v1nf98", u = "_1y2v1nf8f", k = "_1y2v1nf7p _1y2v1nf85 _1y2v1nf64", d = "_15k6ur9g", L = "_15k6ur91 _1y2v1nf60 _1y2v1nfau _1y2v1nf94 _1y2v1nf64 _1y2v1nf69 _1y2v1nfbd", E = "_15k6ur93 _1y2v1nfas _1y2v1nf6n", T = "_15k6ur9h", h = "_15k6ur99 _1y2v1nf8f", o = "_15k6ur9i", p = "_15k6ur94";
|
|
4
|
+
export { _ as DEFAULT_WIDTH, a as LABEL_LEFT_POSITION, n as LABEL_SCALE_DESKTOP, f as LABEL_SCALE_MOBILE, e as disabled, y as field, i as fieldContainer, l as fieldMulti, t as fieldSingle, u as fullWidth, k as helperContainer, d as helperText, L as labelContainer, E as labelText, T as leftText, h as normalWidth, o as rightText, p as shrinked };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./sprinkles.css.ts.vanilla.css-mistica.js";
|
|
2
2
|
import "./text-link.css.ts.vanilla.css-mistica.js";
|
|
3
|
-
var
|
|
4
|
-
default: "_1m1n0pr1
|
|
5
|
-
inverseLight: "_1m1n0pr6 _1m1n0pr1
|
|
6
|
-
inverseDark: "_1m1n0pr7 _1m1n0pr1
|
|
3
|
+
var r = {
|
|
4
|
+
default: "_1m1n0pr1 _1y2v1nf8g _1y2v1nf67 _1y2v1nfar _1y2v1nf27",
|
|
5
|
+
inverseLight: "_1m1n0pr6 _1m1n0pr1 _1y2v1nf8g _1y2v1nf67 _1y2v1nfar _1y2v1nf28",
|
|
6
|
+
inverseDark: "_1m1n0pr7 _1m1n0pr1 _1y2v1nf8g _1y2v1nf67 _1y2v1nfar _1y2v1nf27"
|
|
7
7
|
};
|
|
8
|
-
export {
|
|
8
|
+
export { r as variants };
|
package/dist-es/text.js
CHANGED
|
@@ -80,7 +80,7 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
80
80
|
import { jsx as r } from "react/jsx-runtime";
|
|
81
81
|
import * as R from "react";
|
|
82
82
|
import $ from "classnames";
|
|
83
|
-
import { assignInlineVars as
|
|
83
|
+
import { assignInlineVars as L } from "@vanilla-extract/dynamic";
|
|
84
84
|
import { useIsInverseVariant as j } from "./theme-variant-context.js";
|
|
85
85
|
import { pxToRem as p } from "./utils/css.js";
|
|
86
86
|
import { getPrefixedDataAttributes as B } from "./utils/dom.js";
|
|
@@ -93,7 +93,7 @@ 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: g , wordBreak: c = !0 , hyphens:
|
|
96
|
+
let { weight: e , color: i = m.colors.textPrimary , decoration: t , truncate: o , transform: g , wordBreak: c = !0 , hyphens: S , as: z = "span" , children: h , 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,
|
|
@@ -103,12 +103,12 @@ const J = {
|
|
|
103
103
|
const D = $(E, c ? N : q, {
|
|
104
104
|
[F]: o === 1 || o === !0,
|
|
105
105
|
[G]: o && o > 1
|
|
106
|
-
}), M =
|
|
107
|
-
[x.mobileSize]:
|
|
108
|
-
[x.mobileLineHeight]:
|
|
106
|
+
}), M = L({
|
|
107
|
+
[x.mobileSize]: d ? p(d) : "",
|
|
108
|
+
[x.mobileLineHeight]: f ? p(f) : "",
|
|
109
109
|
[x.desktopSize]: b ? p(b) : "",
|
|
110
|
-
[x.desktopLineHeight]:
|
|
111
|
-
}), O = o ?
|
|
110
|
+
[x.desktopLineHeight]: k ? p(k) : ""
|
|
111
|
+
}), O = o ? L({
|
|
112
112
|
[x.lineClamp]: String(V)
|
|
113
113
|
}) : {};
|
|
114
114
|
var _C_i;
|
|
@@ -119,14 +119,14 @@ const J = {
|
|
|
119
119
|
"aria-level": y
|
|
120
120
|
}, B(I)), {
|
|
121
121
|
style: _object_spread_props(_object_spread({}, M, O), {
|
|
122
|
-
hyphens:
|
|
123
|
-
letterSpacing:
|
|
122
|
+
hyphens: S,
|
|
123
|
+
letterSpacing: w,
|
|
124
124
|
fontWeight: e ? J[e] : "inherit",
|
|
125
125
|
textTransform: g || "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
|
-
textAlign:
|
|
129
|
+
textAlign: H,
|
|
130
130
|
textShadow: v
|
|
131
131
|
})
|
|
132
132
|
}), h);
|
|
@@ -134,6 +134,7 @@ const J = {
|
|
|
134
134
|
if (e.light) return "light";
|
|
135
135
|
if (e.regular) return "regular";
|
|
136
136
|
if (e.medium) return "medium";
|
|
137
|
+
if (e.weight) return e.weight;
|
|
137
138
|
}, s = (param)=>{
|
|
138
139
|
let { forceMobileSizes: e , mobileSize: i , mobileLineHeight: t , desktopSize: o , desktopLineHeight: g } = param;
|
|
139
140
|
return e ? {
|
|
@@ -26,107 +26,111 @@ function _object_spread(target) {
|
|
|
26
26
|
}
|
|
27
27
|
return target;
|
|
28
28
|
}
|
|
29
|
-
import { jsx as
|
|
29
|
+
import { jsx as r, jsxs as S, Fragment as y } from "react/jsx-runtime";
|
|
30
30
|
import * as a from "react";
|
|
31
|
-
import { assignInlineVars as
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import { getTexts as
|
|
36
|
-
import { getPlatform as
|
|
37
|
-
import
|
|
38
|
-
import { useIsomorphicLayoutEffect as
|
|
39
|
-
import
|
|
40
|
-
import
|
|
41
|
-
import { DocumentVisibilityProvider as
|
|
42
|
-
import { AspectRatioSupportProvider as
|
|
43
|
-
import { TrackingConfig as
|
|
44
|
-
import { vars as
|
|
45
|
-
import { fromHexToRgb as
|
|
46
|
-
import { defaultTextPresetsConfig as
|
|
47
|
-
const
|
|
31
|
+
import { assignInlineVars as N } from "@vanilla-extract/dynamic";
|
|
32
|
+
import O from "./dialog.js";
|
|
33
|
+
import L from "./screen-size-context-provider.js";
|
|
34
|
+
import w from "./aria-id-getter-context.js";
|
|
35
|
+
import { getTexts as F, dimensions as $, AnchorLink as h, NAVBAR_HEIGHT_MOBILE as V } from "./theme.js";
|
|
36
|
+
import { getPlatform as D, isInsideNovumNativeApp as j } from "./utils/platform.js";
|
|
37
|
+
import _ from "./theme-context.js";
|
|
38
|
+
import { useIsomorphicLayoutEffect as B } from "./hooks.js";
|
|
39
|
+
import z from "./tab-focus.js";
|
|
40
|
+
import G from "./modal-context-provider.js";
|
|
41
|
+
import { DocumentVisibilityProvider as q } from "./utils/document-visibility.js";
|
|
42
|
+
import { AspectRatioSupportProvider as W } from "./utils/aspect-ratio-support.js";
|
|
43
|
+
import { TrackingConfig as J } from "./utils/analytics.js";
|
|
44
|
+
import { vars as K } from "./skins/skin-contract.css-mistica.js";
|
|
45
|
+
import { fromHexToRgb as Q } from "./utils/color.js";
|
|
46
|
+
import { defaultTextPresetsConfig as e, defaultBorderRadiiConfig as U } from "./skins/defaults.js";
|
|
47
|
+
const X = "(prefers-color-scheme: dark)", Y = ()=>{
|
|
48
48
|
const [t, c] = a.useState(!1);
|
|
49
|
-
return
|
|
49
|
+
return B(()=>{
|
|
50
50
|
if (!window.matchMedia) return;
|
|
51
|
-
const o = window.matchMedia(
|
|
51
|
+
const o = window.matchMedia(X), s = ()=>{
|
|
52
52
|
c(o.matches);
|
|
53
53
|
};
|
|
54
54
|
return o.addListener(s), s(), ()=>o.removeListener(s);
|
|
55
55
|
}, []), t;
|
|
56
|
-
},
|
|
57
|
-
headerMobileHeight: (t == null ? void 0 : t.headerMobileHeight) === "mistica" ?
|
|
58
|
-
}),
|
|
56
|
+
}, Z = ()=>(t)=>t, tt = (t)=>({
|
|
57
|
+
headerMobileHeight: (t == null ? void 0 : t.headerMobileHeight) === "mistica" ? V : t == null ? void 0 : t.headerMobileHeight
|
|
58
|
+
}), et = (param)=>{
|
|
59
59
|
let { theme: t , children: c , as: o } = param;
|
|
60
60
|
var _t_colorScheme, _t_skin_borderRadii;
|
|
61
|
-
const s = a.useRef(1),
|
|
62
|
-
var i, n,
|
|
63
|
-
const
|
|
64
|
-
platform:
|
|
65
|
-
insideNovumNativeApp:
|
|
61
|
+
const s = a.useRef(1), I = a.useCallback(()=>`aria-id-hook-${s.current++}`, []), E = Y(), m = (_t_colorScheme = t.colorScheme) !== null && _t_colorScheme !== void 0 ? _t_colorScheme : "auto", R = t.skin.colors, A = _object_spread({}, t.skin.colors, t.skin.darkModeColors), u = m === "auto" && E || m === "dark", k = u ? A : R, p = a.useMemo(()=>{
|
|
62
|
+
var i, n, d, x, f, P, b, g, M, T, C;
|
|
63
|
+
const l = _object_spread({
|
|
64
|
+
platform: D(),
|
|
65
|
+
insideNovumNativeApp: j()
|
|
66
66
|
}, t.platformOverrides);
|
|
67
67
|
var _t_Link, _t_useHrefDecorator;
|
|
68
68
|
return {
|
|
69
69
|
skinName: t.skin.name,
|
|
70
70
|
i18n: t.i18n,
|
|
71
|
-
platformOverrides:
|
|
72
|
-
texts: _object_spread({},
|
|
71
|
+
platformOverrides: l,
|
|
72
|
+
texts: _object_spread({}, F(t.i18n.locale), t.texts),
|
|
73
73
|
analytics: _object_spread({
|
|
74
74
|
logEvent: ()=>Promise.resolve(),
|
|
75
75
|
eventFormat: "universal-analytics"
|
|
76
76
|
}, t.analytics),
|
|
77
|
-
dimensions: _object_spread({},
|
|
77
|
+
dimensions: _object_spread({}, $, tt(t.dimensions)),
|
|
78
78
|
textPresets: {
|
|
79
|
-
text5: _object_spread({},
|
|
80
|
-
text6: _object_spread({},
|
|
81
|
-
text7: _object_spread({},
|
|
82
|
-
text8: _object_spread({},
|
|
83
|
-
text9: _object_spread({},
|
|
84
|
-
text10: _object_spread({},
|
|
85
|
-
cardTitle: _object_spread({},
|
|
79
|
+
text5: _object_spread({}, e.text5, (i = t.skin.textPresets) == null ? void 0 : i.text5),
|
|
80
|
+
text6: _object_spread({}, e.text6, (n = t.skin.textPresets) == null ? void 0 : n.text6),
|
|
81
|
+
text7: _object_spread({}, e.text7, (d = t.skin.textPresets) == null ? void 0 : d.text7),
|
|
82
|
+
text8: _object_spread({}, e.text8, (x = t.skin.textPresets) == null ? void 0 : x.text8),
|
|
83
|
+
text9: _object_spread({}, e.text9, (f = t.skin.textPresets) == null ? void 0 : f.text9),
|
|
84
|
+
text10: _object_spread({}, e.text10, (P = t.skin.textPresets) == null ? void 0 : P.text10),
|
|
85
|
+
cardTitle: _object_spread({}, e.cardTitle, (b = t.skin.textPresets) == null ? void 0 : b.cardTitle),
|
|
86
|
+
button: _object_spread({}, e.button, (g = t.skin.textPresets) == null ? void 0 : g.button),
|
|
87
|
+
link: _object_spread({}, e.link, (M = t.skin.textPresets) == null ? void 0 : M.link),
|
|
88
|
+
title1: _object_spread({}, e.title1, (T = t.skin.textPresets) == null ? void 0 : T.title1),
|
|
89
|
+
indicator: _object_spread({}, e.indicator, (C = t.skin.textPresets) == null ? void 0 : C.indicator)
|
|
86
90
|
},
|
|
87
|
-
Link: (_t_Link = t.Link) !== null && _t_Link !== void 0 ? _t_Link :
|
|
88
|
-
isDarkMode:
|
|
89
|
-
isIos:
|
|
90
|
-
useHrefDecorator: (_t_useHrefDecorator = t.useHrefDecorator) !== null && _t_useHrefDecorator !== void 0 ? _t_useHrefDecorator :
|
|
91
|
+
Link: (_t_Link = t.Link) !== null && _t_Link !== void 0 ? _t_Link : h,
|
|
92
|
+
isDarkMode: u,
|
|
93
|
+
isIos: D(l) === "ios",
|
|
94
|
+
useHrefDecorator: (_t_useHrefDecorator = t.useHrefDecorator) !== null && _t_useHrefDecorator !== void 0 ? _t_useHrefDecorator : Z,
|
|
91
95
|
useId: t.useId
|
|
92
96
|
};
|
|
93
97
|
}, [
|
|
94
98
|
t,
|
|
95
|
-
|
|
96
|
-
]),
|
|
97
|
-
let [
|
|
99
|
+
u
|
|
100
|
+
]), H = Object.fromEntries(Object.entries(k).map((param)=>{
|
|
101
|
+
let [l, i] = param;
|
|
98
102
|
let n = "";
|
|
99
103
|
if (i.startsWith("#")) {
|
|
100
|
-
const [
|
|
101
|
-
n = `${
|
|
104
|
+
const [d, x, f] = Q(i);
|
|
105
|
+
n = `${d}, ${x}, ${f}`;
|
|
102
106
|
}
|
|
103
107
|
return [
|
|
104
|
-
|
|
108
|
+
l,
|
|
105
109
|
n
|
|
106
110
|
];
|
|
107
|
-
})), v =
|
|
108
|
-
colors:
|
|
109
|
-
rawColors:
|
|
110
|
-
borderRadii: (_t_skin_borderRadii = t.skin.borderRadii) !== null && _t_skin_borderRadii !== void 0 ? _t_skin_borderRadii :
|
|
111
|
+
})), v = N(K, {
|
|
112
|
+
colors: k,
|
|
113
|
+
rawColors: H,
|
|
114
|
+
borderRadii: (_t_skin_borderRadii = t.skin.borderRadii) !== null && _t_skin_borderRadii !== void 0 ? _t_skin_borderRadii : U
|
|
111
115
|
});
|
|
112
|
-
return /* @__PURE__ */
|
|
116
|
+
return /* @__PURE__ */ r(z, {
|
|
113
117
|
disabled: !t.enableTabFocus,
|
|
114
|
-
children: /* @__PURE__ */
|
|
115
|
-
children: /* @__PURE__ */
|
|
116
|
-
value:
|
|
117
|
-
children: /* @__PURE__ */
|
|
118
|
-
eventFormat:
|
|
119
|
-
children: /* @__PURE__ */
|
|
120
|
-
children: /* @__PURE__ */
|
|
121
|
-
children: /* @__PURE__ */
|
|
122
|
-
value:
|
|
123
|
-
children: /* @__PURE__ */
|
|
124
|
-
children: /* @__PURE__ */
|
|
118
|
+
children: /* @__PURE__ */ r(G, {
|
|
119
|
+
children: /* @__PURE__ */ r(_.Provider, {
|
|
120
|
+
value: p,
|
|
121
|
+
children: /* @__PURE__ */ r(J, {
|
|
122
|
+
eventFormat: p.analytics.eventFormat,
|
|
123
|
+
children: /* @__PURE__ */ r(W, {
|
|
124
|
+
children: /* @__PURE__ */ r(q, {
|
|
125
|
+
children: /* @__PURE__ */ r(w.Provider, {
|
|
126
|
+
value: I,
|
|
127
|
+
children: /* @__PURE__ */ r(L, {
|
|
128
|
+
children: /* @__PURE__ */ r(O, {
|
|
125
129
|
children: o ? /*#__PURE__*/ a.createElement(o, {
|
|
126
130
|
style: v
|
|
127
|
-
}, c) : /* @__PURE__ */
|
|
131
|
+
}, c) : /* @__PURE__ */ S(y, {
|
|
128
132
|
children: [
|
|
129
|
-
(process.env.NODE_ENV !== "test" || process.env.SSR_TEST) && /* @__PURE__ */
|
|
133
|
+
(process.env.NODE_ENV !== "test" || process.env.SSR_TEST) && /* @__PURE__ */ r("style", {
|
|
130
134
|
children: `:root {${v}}`
|
|
131
135
|
}),
|
|
132
136
|
c
|
|
@@ -141,5 +145,5 @@ const J = "(prefers-color-scheme: dark)", K = ()=>{
|
|
|
141
145
|
})
|
|
142
146
|
})
|
|
143
147
|
});
|
|
144
|
-
},
|
|
145
|
-
export {
|
|
148
|
+
}, bt = et;
|
|
149
|
+
export { bt as default, Y as useIsOsDarkModeEnabled };
|
package/dist-es/title.js
CHANGED
|
@@ -26,56 +26,59 @@ function _object_spread(target) {
|
|
|
26
26
|
}
|
|
27
27
|
return target;
|
|
28
28
|
}
|
|
29
|
-
import { jsx as r, jsxs as
|
|
30
|
-
import { Text1 as
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import { vars as
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
29
|
+
import { jsx as r, jsxs as l } from "react/jsx-runtime";
|
|
30
|
+
import { Text1 as c, Text5 as p, Text2 as f } from "./text.js";
|
|
31
|
+
import x from "./inline.js";
|
|
32
|
+
import d from "./box.js";
|
|
33
|
+
import { vars as h } from "./skins/skin-contract.css-mistica.js";
|
|
34
|
+
import { useTheme as s } from "./hooks.js";
|
|
35
|
+
const m = (param)=>{
|
|
36
|
+
let { title: t , right: e } = param;
|
|
37
|
+
const { textPresets: o } = s();
|
|
38
|
+
return e ? /* @__PURE__ */ l(x, {
|
|
37
39
|
space: "between",
|
|
38
40
|
alignItems: "baseline",
|
|
39
41
|
children: [
|
|
40
|
-
|
|
41
|
-
/* @__PURE__ */ r(
|
|
42
|
+
t,
|
|
43
|
+
/* @__PURE__ */ r(d, {
|
|
42
44
|
paddingLeft: 16,
|
|
43
|
-
children: /* @__PURE__ */ r(
|
|
44
|
-
|
|
45
|
-
children:
|
|
45
|
+
children: /* @__PURE__ */ r(f, {
|
|
46
|
+
weight: o.link.weight,
|
|
47
|
+
children: e
|
|
46
48
|
})
|
|
47
49
|
})
|
|
48
50
|
]
|
|
49
|
-
}) :
|
|
50
|
-
},
|
|
51
|
-
let { children:
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
51
|
+
}) : t;
|
|
52
|
+
}, k = (param)=>{
|
|
53
|
+
let { children: t , as: e = "h3" , id: o , right: i , dataAttributes: n } = param;
|
|
54
|
+
const { textPresets: a } = s();
|
|
55
|
+
return /* @__PURE__ */ r(m, {
|
|
56
|
+
title: /* @__PURE__ */ r(c, {
|
|
57
|
+
color: h.colors.textSecondary,
|
|
55
58
|
transform: "uppercase",
|
|
56
|
-
|
|
57
|
-
as:
|
|
59
|
+
weight: a.title1.weight,
|
|
60
|
+
as: e,
|
|
58
61
|
id: o,
|
|
59
62
|
dataAttributes: _object_spread({
|
|
60
63
|
"component-name": "Title1"
|
|
61
|
-
},
|
|
64
|
+
}, n),
|
|
62
65
|
wordBreak: !1,
|
|
63
|
-
children:
|
|
66
|
+
children: t
|
|
64
67
|
}),
|
|
65
|
-
right:
|
|
68
|
+
right: i
|
|
66
69
|
});
|
|
67
|
-
},
|
|
68
|
-
let { children:
|
|
69
|
-
return r(
|
|
70
|
-
title: /* @__PURE__ */ r(
|
|
71
|
-
as:
|
|
70
|
+
}, y = (param)=>/* @__PURE__ */ {
|
|
71
|
+
let { children: t , as: e = "h3" , id: o , right: i , dataAttributes: n } = param;
|
|
72
|
+
return r(m, {
|
|
73
|
+
title: /* @__PURE__ */ r(p, {
|
|
74
|
+
as: e,
|
|
72
75
|
id: o,
|
|
73
76
|
dataAttributes: _object_spread({
|
|
74
77
|
"component-name": "Title2"
|
|
75
|
-
},
|
|
76
|
-
children:
|
|
78
|
+
}, n),
|
|
79
|
+
children: t
|
|
77
80
|
}),
|
|
78
|
-
right:
|
|
81
|
+
right: i
|
|
79
82
|
});
|
|
80
83
|
};
|
|
81
|
-
export {
|
|
84
|
+
export { k as Title1, y as Title2 };
|
|
@@ -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 _1y2v1nf60
|
|
3
|
+
var v = "_1xhatbpb _1y2v1nf60 _1y2v1nfau _1y2v1nf8l _1y2v1nf91 _1y2v1nfac _1y2v1nf31 _1y2v1nfa9", t = "_1xhatbpe", _ = "_1xhatbpf", n = "_1xhatbpd", e = "_1xhatbpc", f = "_1y2v1nf60 _1y2v1nf8o _1y2v1nf91 _1y2v1nfas _1y2v1nf2", p = "_1xhatbpj _1y2v1nf6u _1y2v1nf79 _1y2v1nf7o _1y2v1nf83 _1y2v1nf60 _1y2v1nfbe _1y2v1nf8g _1y2v1nfal _1y2v1nfa9", o = "_1xhatbpk", x = "_1xhatbpl", y = "_1xhatbpm", h = "_1xhatbpn", b = "_1xhatbpo", m = "_1xhatbp6", i = "_1xhatbp7", w = "_1xhatbp8", s = {
|
|
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
|
-
},
|
|
11
|
-
export { v as arrow, t as arrowBottom, _ as arrowLeft, n as arrowRight, e as arrowTop, f as arrowWrapper, p as container, o as enter,
|
|
10
|
+
}, c = "_1y2v1nf68";
|
|
11
|
+
export { v as arrow, t as arrowBottom, _ as arrowLeft, n as arrowRight, e as arrowTop, f as arrowWrapper, p as container, o as enter, x as enterActive, y as enterDone, h as exit, b as exitActive, m as fadeInBottomKeyframes, i as fadeInTopKeyframes, w as fadeInXKeyframes, s as vars, c as wrapper };
|
package/dist-es/tooltip.js
CHANGED
|
@@ -84,14 +84,15 @@ import { CSSTransition as V } from "react-transition-group";
|
|
|
84
84
|
import { useTheme as j, useScreenSize as q, useAriaId as G } from "./hooks.js";
|
|
85
85
|
import { Portal as H } from "./portal.js";
|
|
86
86
|
import J from "./overlay.js";
|
|
87
|
-
import { Text2 as
|
|
87
|
+
import { Text2 as O } from "./text.js";
|
|
88
88
|
import { TAB as Q } from "./utils/key-codes.js";
|
|
89
89
|
import U from "./stack.js";
|
|
90
90
|
import { vars as n, wrapper as Z, enter as _, enterActive as tt, enterDone as et, exit as rt, exitActive as nt, container as ot, arrowWrapper as at, arrow as it, fadeInTopKeyframes as st, fadeInBottomKeyframes as ct, fadeInXKeyframes as lt, arrowTop as ut, arrowBottom as ft, arrowLeft as mt, arrowRight as dt } from "./tooltip.css-mistica.js";
|
|
91
91
|
import { assignInlineVars as pt } from "@vanilla-extract/dynamic";
|
|
92
92
|
import { getPrefixedDataAttributes as ht } from "./utils/dom.js";
|
|
93
|
-
|
|
94
|
-
|
|
93
|
+
import { isClientSide as gt, isServerSide as wt } from "./utils/environment.js";
|
|
94
|
+
const xt = "bottom", Tt = "top", bt = 12, h = 4 + bt, g = 16, vt = 340, At = 500, d = 12, Yt = 500, R = ()=>{}, Pt = (t)=>t || vt, St = (t)=>t === "bottom" ? `translateY(${d}px)` : t === "top" ? `translateY(calc(-100% - ${d}px))` : t === "right" ? `translateX(${d}px) translateY(-50%)` : t === "left" ? `translateX(-${d}px) translateY(-50%)` : `translateY(-${d}px)`, yt = (t)=>t === "top" ? "translateY(-100%)" : t === "bottom" ? "translateY(0)" : "translateY(-50%)", Dt = (t)=>t === "bottom" ? "translateY(0)" : t === "top" ? "translateY(-100%)" : t === "right" || t === "left" ? "translateX(0px) translateY(-50%)" : "translateY(0px)", Ot = (t)=>t === "top" ? st : t === "bottom" ? ct : lt, Rt = (t)=>t ? "1" : "0.2", $t = (t)=>t === "top" ? `2px 2px 4px 0 rgba(0, 0, 0, ${n.shadowAlpha})` : t === "right" ? `0 0 4px 0 rgba(0, 0, 0, ${n.shadowAlpha})` : t === "left" ? `0 0 4px 0 rgba(0, 0, 0, ${n.shadowAlpha})` : t === "bottom" ? `-1px -1px 4px 0 rgba(0, 0, 0, ${n.shadowAlpha})` : "", It = (_param)=>{
|
|
95
|
+
var { children: t , extra: $ , description: w , target: I , title: x , targetLabel: C , delay: B = !0 , dataAttributes: E } = _param, Y = _object_without_properties(_param, [
|
|
95
96
|
"children",
|
|
96
97
|
"extra",
|
|
97
98
|
"description",
|
|
@@ -101,7 +102,7 @@ const wt = "bottom", gt = "top", xt = 12, h = 4 + xt, w = 16, Tt = 340, bt = 500
|
|
|
101
102
|
"delay",
|
|
102
103
|
"dataAttributes"
|
|
103
104
|
]);
|
|
104
|
-
const { isDarkMode: M } = j(), [l, T] = c.useState(!1), { isTabletOrSmaller: u } = q(),
|
|
105
|
+
const { isDarkMode: M } = j(), [l, T] = c.useState(!1), { isTabletOrSmaller: u } = q(), P = G(), o = c.useRef(!1), r = c.useRef(null), f = c.useRef(null), b = c.useRef(null), e = c.useRef({
|
|
105
106
|
top: 0,
|
|
106
107
|
right: 0,
|
|
107
108
|
left: 0,
|
|
@@ -109,23 +110,23 @@ const wt = "bottom", gt = "top", xt = 12, h = 4 + xt, w = 16, Tt = 340, bt = 500
|
|
|
109
110
|
width: 0,
|
|
110
111
|
height: 0
|
|
111
112
|
}), a = function() {
|
|
112
|
-
let i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
113
|
-
return u && (i === "left" || i === "right") ?
|
|
114
|
-
}(Y.position), v =
|
|
113
|
+
let i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : xt;
|
|
114
|
+
return u && (i === "left" || i === "right") ? Tt : i;
|
|
115
|
+
}(Y.position), v = gt() ? window.matchMedia("(pointer: coarse)").matches : !1, S = ()=>{
|
|
115
116
|
l && T(!1);
|
|
116
117
|
};
|
|
117
|
-
c.useEffect(()=>(window.addEventListener("resize",
|
|
118
|
-
window.removeEventListener("resize",
|
|
118
|
+
c.useEffect(()=>(window.addEventListener("resize", S), ()=>{
|
|
119
|
+
window.removeEventListener("resize", S);
|
|
119
120
|
}));
|
|
120
|
-
const
|
|
121
|
+
const y = ()=>{
|
|
121
122
|
T(!1);
|
|
122
123
|
}, m = ()=>{
|
|
123
124
|
b.current && (e.current = b.current.getBoundingClientRect(), T(!l));
|
|
124
125
|
}, N = ()=>{
|
|
125
126
|
l || m();
|
|
126
127
|
}, k = (i)=>{
|
|
127
|
-
i.keyCode === Q &&
|
|
128
|
-
}, X = (i, A)=>
|
|
128
|
+
i.keyCode === Q && y();
|
|
129
|
+
}, X = (i, A)=>wt() ? {} : ({
|
|
129
130
|
right: {
|
|
130
131
|
left: e.current.right + h,
|
|
131
132
|
top: window.pageYOffset + e.current.top + e.current.height / 2
|
|
@@ -136,26 +137,26 @@ const wt = "bottom", gt = "top", xt = 12, h = 4 + xt, w = 16, Tt = 340, bt = 500
|
|
|
136
137
|
},
|
|
137
138
|
top: {
|
|
138
139
|
top: window.pageYOffset + e.current.top - h,
|
|
139
|
-
left: u ?
|
|
140
|
+
left: u ? g : window.pageXOffset + e.current.left + e.current.width / 2 - A / 2
|
|
140
141
|
},
|
|
141
142
|
bottom: {
|
|
142
143
|
top: window.pageYOffset + e.current.bottom + h,
|
|
143
|
-
left: u ?
|
|
144
|
+
left: u ? g : window.pageXOffset + e.current.left + e.current.width / 2 - A / 2
|
|
144
145
|
}
|
|
145
146
|
})[i], L = ()=>u ? {
|
|
146
|
-
left: e.current.left + e.current.width / 2 -
|
|
147
|
-
} : {},
|
|
147
|
+
left: e.current.left + e.current.width / 2 - g
|
|
148
|
+
} : {}, D = (()=>u ? window.innerWidth - g * 2 : Pt(Y.width))(), K = {
|
|
148
149
|
top: ut,
|
|
149
150
|
bottom: ft,
|
|
150
151
|
left: mt,
|
|
151
152
|
right: dt
|
|
152
153
|
}, W = pt({
|
|
153
|
-
[n.enterTransform]:
|
|
154
|
-
[n.exitTransform]:
|
|
155
|
-
[n.enterActiveAnimationName]:
|
|
154
|
+
[n.enterTransform]: St(a),
|
|
155
|
+
[n.exitTransform]: Dt(a),
|
|
156
|
+
[n.enterActiveAnimationName]: Ot(a),
|
|
156
157
|
[n.enterDoneTransform]: yt(a),
|
|
157
|
-
[n.shadowAlpha]:
|
|
158
|
-
[n.arrowBoxShadow]:
|
|
158
|
+
[n.shadowAlpha]: Rt(M),
|
|
159
|
+
[n.arrowBoxShadow]: $t(a)
|
|
159
160
|
});
|
|
160
161
|
return /* @__PURE__ */ p(z, {
|
|
161
162
|
children: [
|
|
@@ -163,9 +164,9 @@ const wt = "bottom", gt = "top", xt = 12, h = 4 + xt, w = 16, Tt = 340, bt = 500
|
|
|
163
164
|
ref: b,
|
|
164
165
|
className: Z,
|
|
165
166
|
onPointerOver: ()=>{
|
|
166
|
-
r.current && (clearTimeout(r.current), r.current = null), !o.current && (o.current = !0,
|
|
167
|
+
r.current && (clearTimeout(r.current), r.current = null), !o.current && (o.current = !0, B ? f.current = setTimeout(()=>{
|
|
167
168
|
f.current = null, m();
|
|
168
|
-
},
|
|
169
|
+
}, Yt) : m());
|
|
169
170
|
},
|
|
170
171
|
onPointerLeave: v ? R : ()=>{
|
|
171
172
|
if (f.current) {
|
|
@@ -181,19 +182,19 @@ const wt = "bottom", gt = "top", xt = 12, h = 4 + xt, w = 16, Tt = 340, bt = 500
|
|
|
181
182
|
"touch-action": "auto",
|
|
182
183
|
role: "button",
|
|
183
184
|
tabIndex: 0,
|
|
184
|
-
"aria-describedby":
|
|
185
|
+
"aria-describedby": P,
|
|
185
186
|
"aria-expanded": l,
|
|
186
|
-
"aria-label":
|
|
187
|
+
"aria-label": C,
|
|
187
188
|
children: I
|
|
188
189
|
}),
|
|
189
190
|
/* @__PURE__ */ p(H, {
|
|
190
191
|
children: [
|
|
191
192
|
l && v && /* @__PURE__ */ s(J, {
|
|
192
|
-
onPress:
|
|
193
|
+
onPress: y
|
|
193
194
|
}),
|
|
194
195
|
/* @__PURE__ */ s(V, {
|
|
195
196
|
in: l,
|
|
196
|
-
timeout:
|
|
197
|
+
timeout: At,
|
|
197
198
|
classNames: {
|
|
198
199
|
enter: _,
|
|
199
200
|
enterActive: tt,
|
|
@@ -204,11 +205,11 @@ const wt = "bottom", gt = "top", xt = 12, h = 4 + xt, w = 16, Tt = 340, bt = 500
|
|
|
204
205
|
unmountOnExit: !0,
|
|
205
206
|
children: /* @__PURE__ */ p("div", _object_spread_props(_object_spread({}, ht(E, "Tooltip")), {
|
|
206
207
|
role: "tooltip",
|
|
207
|
-
id:
|
|
208
|
+
id: P,
|
|
208
209
|
className: ot,
|
|
209
210
|
style: _object_spread({
|
|
210
|
-
width:
|
|
211
|
-
}, X(a,
|
|
211
|
+
width: D
|
|
212
|
+
}, X(a, D), W),
|
|
212
213
|
onPointerOver: ()=>{
|
|
213
214
|
r.current && (clearTimeout(r.current), r.current = null);
|
|
214
215
|
},
|
|
@@ -225,16 +226,16 @@ const wt = "bottom", gt = "top", xt = 12, h = 4 + xt, w = 16, Tt = 340, bt = 500
|
|
|
225
226
|
className: it
|
|
226
227
|
})
|
|
227
228
|
}),
|
|
228
|
-
(x ||
|
|
229
|
+
(x || w) && /* @__PURE__ */ p(U, {
|
|
229
230
|
space: 4,
|
|
230
231
|
children: [
|
|
231
|
-
x && /* @__PURE__ */ s(
|
|
232
|
+
x && /* @__PURE__ */ s(O, {
|
|
232
233
|
medium: !0,
|
|
233
234
|
children: x
|
|
234
235
|
}),
|
|
235
|
-
|
|
236
|
+
w && /* @__PURE__ */ s(O, {
|
|
236
237
|
regular: !0,
|
|
237
|
-
children:
|
|
238
|
+
children: w
|
|
238
239
|
})
|
|
239
240
|
]
|
|
240
241
|
}),
|
|
@@ -246,5 +247,5 @@ const wt = "bottom", gt = "top", xt = 12, h = 4 + xt, w = 16, Tt = 340, bt = 500
|
|
|
246
247
|
})
|
|
247
248
|
]
|
|
248
249
|
});
|
|
249
|
-
},
|
|
250
|
-
export {
|
|
250
|
+
}, Ht = It;
|
|
251
|
+
export { Ht 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 f = "mhti6u1 _1y2v1nfar", n = "mhti6u4", _ = "mhti6u1 _1y2v1nfar _1y2v1nf6r _1y2v1nf76 _1y2v1nf7l _1y2v1nf80 _1y2v1nf66 _1y2v1nfaa _1y2v1nf8f _1y2v1nf2y _1y2v1nf5y _1y2v1nfat";
|
|
4
|
+
export { f as base, n as notTouchable, _ as touchable };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../sprinkles.css.ts.vanilla.css-mistica.js";
|
|
2
2
|
import "./aspect-ratio-support.css.ts.vanilla.css-mistica.js";
|
|
3
|
-
var v = "yqswj62", n = "
|
|
3
|
+
var v = "yqswj62", n = "_1y2v1nf8f _1y2v1nf8w _1y2v1nfau _1y2v1nfb9", y = {
|
|
4
4
|
aspectRatio: "var(--yqswj60)"
|
|
5
|
-
}, f = "
|
|
5
|
+
}, f = "_1y2v1nfas _1y2v1nfa7 _1y2v1nfa8 _1y2v1nf5z";
|
|
6
6
|
export { v as container, n as containerWithWrapper, y as vars, f as wrapper };
|