@umami/react-zen 0.64.0 → 0.65.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/dist/index.css +63 -69
- package/dist/index.d.ts +15 -11
- package/dist/index.js +157 -144
- package/dist/index.mjs +157 -144
- package/package.json +1 -1
- package/styles.css +63 -69
package/dist/index.css
CHANGED
|
@@ -3119,12 +3119,73 @@ body a.Button_button__ZTY3M {
|
|
|
3119
3119
|
}
|
|
3120
3120
|
}
|
|
3121
3121
|
|
|
3122
|
+
/* virtual-css:css:34d15f1efb5cfdf86de5abea08f767ce */
|
|
3123
|
+
.Tooltip_tooltip__YmY4Z {
|
|
3124
|
+
forced-color-adjust: none;
|
|
3125
|
+
outline: none;
|
|
3126
|
+
}
|
|
3127
|
+
.Tooltip_bubble__MWE0N {
|
|
3128
|
+
color: var(--light-color);
|
|
3129
|
+
background: rgba(0, 0, 0, 0.8);
|
|
3130
|
+
padding: var(--padding);
|
|
3131
|
+
border-radius: var(--border-radius);
|
|
3132
|
+
}
|
|
3133
|
+
.Tooltip_tooltip__YmY4Z[data-placement=top] {
|
|
3134
|
+
margin-bottom: 8px;
|
|
3135
|
+
--origin: translateY(4px);
|
|
3136
|
+
}
|
|
3137
|
+
.Tooltip_tooltip__YmY4Z[data-placement=bottom] {
|
|
3138
|
+
margin-top: 8px;
|
|
3139
|
+
--origin: translateY(-4px);
|
|
3140
|
+
}
|
|
3141
|
+
.Tooltip_tooltip__YmY4Z[data-placement=bottom] .Tooltip_arrow__OGM1M svg {
|
|
3142
|
+
transform: rotate(180deg);
|
|
3143
|
+
}
|
|
3144
|
+
.Tooltip_tooltip__YmY4Z[data-placement=right] {
|
|
3145
|
+
margin-left: 8px;
|
|
3146
|
+
--origin: translateX(-4px);
|
|
3147
|
+
}
|
|
3148
|
+
.Tooltip_tooltip__YmY4Z[data-placement=right] .Tooltip_arrow__OGM1M svg {
|
|
3149
|
+
transform: rotate(90deg);
|
|
3150
|
+
}
|
|
3151
|
+
.Tooltip_tooltip__YmY4Z[data-placement=left] {
|
|
3152
|
+
margin-right: 8px;
|
|
3153
|
+
--origin: translateX(4px);
|
|
3154
|
+
}
|
|
3155
|
+
.Tooltip_tooltip__YmY4Z[data-placement=left] .Tooltip_arrow__OGM1M svg {
|
|
3156
|
+
transform: rotate(-90deg);
|
|
3157
|
+
}
|
|
3158
|
+
.Tooltip_tooltip__YmY4Z .Tooltip_arrow__OGM1M {
|
|
3159
|
+
width: 8px;
|
|
3160
|
+
height: 8px;
|
|
3161
|
+
}
|
|
3162
|
+
.Tooltip_tooltip__YmY4Z .Tooltip_arrow__OGM1M svg {
|
|
3163
|
+
display: block;
|
|
3164
|
+
fill: rgba(0, 0, 0, 0.8);
|
|
3165
|
+
}
|
|
3166
|
+
.Tooltip_tooltip__YmY4Z[data-entering] {
|
|
3167
|
+
animation: Tooltip_slide__MGVmY 200ms;
|
|
3168
|
+
}
|
|
3169
|
+
.Tooltip_tooltip__YmY4Z[data-exiting] {
|
|
3170
|
+
animation: Tooltip_slide__MGVmY 200ms reverse ease-in;
|
|
3171
|
+
}
|
|
3172
|
+
@keyframes Tooltip_slide__MGVmY {
|
|
3173
|
+
from {
|
|
3174
|
+
transform: var(--origin);
|
|
3175
|
+
opacity: 0;
|
|
3176
|
+
}
|
|
3177
|
+
to {
|
|
3178
|
+
transform: translateY(0);
|
|
3179
|
+
opacity: 1;
|
|
3180
|
+
}
|
|
3181
|
+
}
|
|
3182
|
+
|
|
3122
3183
|
/* virtual-css:css:a37d08939f4c2e286eced2d454e614ea */
|
|
3123
|
-
.
|
|
3184
|
+
.FloatingTooltip_floating__ZjM4N {
|
|
3124
3185
|
position: fixed;
|
|
3125
3186
|
pointer-events: none;
|
|
3126
3187
|
z-index: 9999;
|
|
3127
|
-
transform: translate(-50%, calc(-100% -
|
|
3188
|
+
transform: translate(-50%, calc(-100% - 10px));
|
|
3128
3189
|
}
|
|
3129
3190
|
|
|
3130
3191
|
/* virtual-css:css:94870e251b7b77526d8ae103079be601 */
|
|
@@ -3599,73 +3660,6 @@ body a.Button_button__ZTY3M {
|
|
|
3599
3660
|
cursor: pointer;
|
|
3600
3661
|
}
|
|
3601
3662
|
|
|
3602
|
-
/* virtual-css:css:34d15f1efb5cfdf86de5abea08f767ce */
|
|
3603
|
-
.Tooltip_tooltip__ODVhY {
|
|
3604
|
-
forced-color-adjust: none;
|
|
3605
|
-
outline: none;
|
|
3606
|
-
}
|
|
3607
|
-
.Tooltip_bubble__OTMzY {
|
|
3608
|
-
color: var(--light-color);
|
|
3609
|
-
background: rgba(0, 0, 0, 0.8);
|
|
3610
|
-
padding: var(--padding);
|
|
3611
|
-
border-radius: var(--border-radius);
|
|
3612
|
-
}
|
|
3613
|
-
.Tooltip_floating__YWVjM {
|
|
3614
|
-
position: fixed;
|
|
3615
|
-
pointer-events: none;
|
|
3616
|
-
z-index: 9999;
|
|
3617
|
-
transform: translate(-50%, calc(-100% - 5px));
|
|
3618
|
-
}
|
|
3619
|
-
.Tooltip_tooltip__ODVhY[data-placement=top] {
|
|
3620
|
-
margin-bottom: 8px;
|
|
3621
|
-
--origin: translateY(4px);
|
|
3622
|
-
}
|
|
3623
|
-
.Tooltip_tooltip__ODVhY[data-placement=bottom] {
|
|
3624
|
-
margin-top: 8px;
|
|
3625
|
-
--origin: translateY(-4px);
|
|
3626
|
-
}
|
|
3627
|
-
.Tooltip_tooltip__ODVhY[data-placement=bottom] .Tooltip_arrow__ZmMyY svg {
|
|
3628
|
-
transform: rotate(180deg);
|
|
3629
|
-
}
|
|
3630
|
-
.Tooltip_tooltip__ODVhY[data-placement=right] {
|
|
3631
|
-
margin-left: 8px;
|
|
3632
|
-
--origin: translateX(-4px);
|
|
3633
|
-
}
|
|
3634
|
-
.Tooltip_tooltip__ODVhY[data-placement=right] .Tooltip_arrow__ZmMyY svg {
|
|
3635
|
-
transform: rotate(90deg);
|
|
3636
|
-
}
|
|
3637
|
-
.Tooltip_tooltip__ODVhY[data-placement=left] {
|
|
3638
|
-
margin-right: 8px;
|
|
3639
|
-
--origin: translateX(4px);
|
|
3640
|
-
}
|
|
3641
|
-
.Tooltip_tooltip__ODVhY[data-placement=left] .Tooltip_arrow__ZmMyY svg {
|
|
3642
|
-
transform: rotate(-90deg);
|
|
3643
|
-
}
|
|
3644
|
-
.Tooltip_tooltip__ODVhY .Tooltip_arrow__ZmMyY {
|
|
3645
|
-
width: 8px;
|
|
3646
|
-
height: 8px;
|
|
3647
|
-
}
|
|
3648
|
-
.Tooltip_tooltip__ODVhY .Tooltip_arrow__ZmMyY svg {
|
|
3649
|
-
display: block;
|
|
3650
|
-
fill: rgba(0, 0, 0, 0.8);
|
|
3651
|
-
}
|
|
3652
|
-
.Tooltip_tooltip__ODVhY[data-entering] {
|
|
3653
|
-
animation: Tooltip_slide__OWE0Z 200ms;
|
|
3654
|
-
}
|
|
3655
|
-
.Tooltip_tooltip__ODVhY[data-exiting] {
|
|
3656
|
-
animation: Tooltip_slide__OWE0Z 200ms reverse ease-in;
|
|
3657
|
-
}
|
|
3658
|
-
@keyframes Tooltip_slide__OWE0Z {
|
|
3659
|
-
from {
|
|
3660
|
-
transform: var(--origin);
|
|
3661
|
-
opacity: 0;
|
|
3662
|
-
}
|
|
3663
|
-
to {
|
|
3664
|
-
transform: translateY(0);
|
|
3665
|
-
opacity: 1;
|
|
3666
|
-
}
|
|
3667
|
-
}
|
|
3668
|
-
|
|
3669
3663
|
/* virtual-css:css:12d12fae43d9120371ddbb4f1c814f07 */
|
|
3670
3664
|
.SideNav_sidenav__NTNmY {
|
|
3671
3665
|
height: 100%;
|
package/dist/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
// ../../react-hook-form
|
|
6
6
|
// ../../@/lib/types
|
|
7
7
|
// ../../@/components/toast/Toaster
|
|
8
|
+
// ../../@/components/Tooltip
|
|
8
9
|
// ../../@/components/Block
|
|
9
10
|
|
|
10
11
|
declare module '@umami/react-zen' {
|
|
@@ -281,11 +282,13 @@ declare module '@umami/react-zen/Blockquote' {
|
|
|
281
282
|
|
|
282
283
|
declare module '@umami/react-zen/Box' {
|
|
283
284
|
import { HTMLAttributes } from 'react';
|
|
284
|
-
import { BackgroundColor, BorderSize, BorderRadius, BoxShadow, Spacing, Responsive, Position, Display, TextAlign, FlexGrow, FlexShrink, Top, Right, Bottom, Left, Overflow, AlignSelf, JustifySelf, FontColor } from '@/lib/types';
|
|
285
|
+
import { BackgroundColor, BorderSize, BorderRadius, BoxShadow, Spacing, Responsive, Position, Display, TextAlign, FlexGrow, FlexShrink, Top, Right, Bottom, Left, Overflow, AlignSelf, JustifySelf, FontColor, FontSize, FontWeight } from '@/lib/types';
|
|
285
286
|
interface BoxProps extends HTMLAttributes<HTMLElement> {
|
|
286
287
|
display?: Responsive<Display>;
|
|
287
288
|
color?: FontColor;
|
|
288
289
|
backgroundColor?: BackgroundColor;
|
|
290
|
+
fontSize?: Responsive<FontSize>;
|
|
291
|
+
fontWeight?: Responsive<FontWeight>;
|
|
289
292
|
borderSize?: Responsive<BorderSize>;
|
|
290
293
|
borderRadius?: Responsive<BorderRadius>;
|
|
291
294
|
shadow?: Responsive<BoxShadow>;
|
|
@@ -330,7 +333,7 @@ declare module '@umami/react-zen/Box' {
|
|
|
330
333
|
as?: string;
|
|
331
334
|
asChild?: boolean;
|
|
332
335
|
}
|
|
333
|
-
function Box({ display, color, backgroundColor, borderSize, borderRadius, shadow, padding, paddingX, paddingY, paddingTop, paddingRight, paddingBottom, paddingLeft, margin, marginX, marginY, marginTop, marginRight, marginBottom, marginLeft, overflow, overflowX, overflowY, width, minWidth, maxWidth, height, minHeight, maxHeight, position, align, top, right, bottom, left, flexBasis, flexGrow, flexShrink, gridArea, gridRow, gridColumn, order, as, asChild, className, style, children, ...props }: BoxProps): import("react").JSX.Element;
|
|
336
|
+
function Box({ display, color, backgroundColor, fontSize, fontWeight, borderSize, borderRadius, shadow, padding, paddingX, paddingY, paddingTop, paddingRight, paddingBottom, paddingLeft, margin, marginX, marginY, marginTop, marginRight, marginBottom, marginLeft, overflow, overflowX, overflowY, width, minWidth, maxWidth, height, minHeight, maxHeight, position, align, top, right, bottom, left, flexBasis, flexGrow, flexShrink, gridArea, gridRow, gridColumn, order, as, asChild, className, style, children, ...props }: BoxProps): import("react").JSX.Element;
|
|
334
337
|
export { Box };
|
|
335
338
|
export type { BoxProps };
|
|
336
339
|
}
|
|
@@ -487,10 +490,10 @@ declare module '@umami/react-zen/Flexbox' {
|
|
|
487
490
|
}
|
|
488
491
|
|
|
489
492
|
declare module '@umami/react-zen/FloatingTooltip' {
|
|
490
|
-
import {
|
|
491
|
-
export
|
|
492
|
-
|
|
493
|
-
}): import("react").JSX.Element;
|
|
493
|
+
import { TooltipBubbleProps } from '@/components/Tooltip';
|
|
494
|
+
export interface FloatingTooltipProps extends TooltipBubbleProps {
|
|
495
|
+
}
|
|
496
|
+
export function FloatingTooltip({ className, style, children, ...props }: FloatingTooltipProps): import("react").JSX.Element;
|
|
494
497
|
}
|
|
495
498
|
|
|
496
499
|
declare module '@umami/react-zen/Grid' {
|
|
@@ -968,17 +971,18 @@ declare module '@umami/react-zen/ToggleGroup' {
|
|
|
968
971
|
}
|
|
969
972
|
|
|
970
973
|
declare module '@umami/react-zen/Tooltip' {
|
|
971
|
-
import {
|
|
974
|
+
import { HTMLAttributes } from 'react';
|
|
972
975
|
import { TooltipProps as AriaTooltipProps } from 'react-aria-components';
|
|
973
976
|
interface TooltipProps extends AriaTooltipProps {
|
|
974
977
|
showArrow?: boolean;
|
|
975
978
|
}
|
|
976
979
|
function Tooltip({ children, className, showArrow, ...props }: TooltipProps): import("react").JSX.Element;
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
}
|
|
980
|
+
interface TooltipBubbleProps extends HTMLAttributes<HTMLDivElement> {
|
|
981
|
+
showArrow?: boolean;
|
|
982
|
+
}
|
|
983
|
+
function TooltipBubble({ showArrow, children, ...props }: TooltipBubbleProps): import("react").JSX.Element;
|
|
980
984
|
export { Tooltip, TooltipBubble };
|
|
981
|
-
export type { TooltipProps };
|
|
985
|
+
export type { TooltipProps, TooltipBubbleProps };
|
|
982
986
|
}
|
|
983
987
|
|
|
984
988
|
declare module '@umami/react-zen/ZenProvider' {
|