@liner-fe/prism 1.7.2 → 1.7.3
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/lib/assets/index.d.ts +1 -0
- package/lib/assets/shield.d.ts +8 -0
- package/lib/components/Tooltip/index.d.ts +10 -0
- package/lib/index.mjs +125 -58
- package/lib/index.mjs.map +4 -4
- package/lib/utils/icon.d.ts +1 -1
- package/package.json +1 -1
package/lib/assets/index.d.ts
CHANGED
|
@@ -2,8 +2,18 @@ import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
|
2
2
|
import React, { ReactNode } from 'react';
|
|
3
3
|
interface TooltipContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
4
|
children?: ReactNode;
|
|
5
|
+
/**
|
|
6
|
+
* Tooltip안에 표시할 텍스트 컨텐츠를 설정합니다.
|
|
7
|
+
*/
|
|
5
8
|
description?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Tooltip을 렌더링할 방향을 설정합니다.
|
|
11
|
+
*/
|
|
6
12
|
position?: 'top' | 'right' | 'bottom' | 'left';
|
|
13
|
+
/**
|
|
14
|
+
* Tooltip과 Trigger 사이의 간격을 설정합니다(px)
|
|
15
|
+
*/
|
|
16
|
+
offset?: number;
|
|
7
17
|
}
|
|
8
18
|
export declare const Tooltip: (({ children }: {
|
|
9
19
|
children: ReactNode;
|
package/lib/index.mjs
CHANGED
|
@@ -3553,6 +3553,72 @@ var ICThumbDown = /* @__PURE__ */ __name((props) => {
|
|
|
3553
3553
|
) });
|
|
3554
3554
|
}, "ICThumbDown");
|
|
3555
3555
|
|
|
3556
|
+
// src/assets/shield.tsx
|
|
3557
|
+
import { jsx as jsx76, jsxs as jsxs53 } from "react/jsx-runtime";
|
|
3558
|
+
var ICShield = /* @__PURE__ */ __name((props) => {
|
|
3559
|
+
const { thick = false, fill = false, size = 32, color = "#1E1E1F" } = props;
|
|
3560
|
+
if (fill && thick) {
|
|
3561
|
+
return /* @__PURE__ */ jsx76("svg", { ...props, width: size, height: size, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 48 48", fill: "none", children: /* @__PURE__ */ jsx76(
|
|
3562
|
+
"path",
|
|
3563
|
+
{
|
|
3564
|
+
"fill-rule": "evenodd",
|
|
3565
|
+
"clip-rule": "evenodd",
|
|
3566
|
+
d: "M7.29089 9.33611C6.51387 9.63075 6 10.3752 6 11.2062V20.9793C6 29.6885 10.5324 37.77 17.9637 42.3114L22.9571 45.3629C23.5973 45.7541 24.4027 45.7541 25.0429 45.3629L30.0363 42.3114C37.4676 37.77 42 29.6885 42 20.9793V11.2062C42 10.3752 41.4861 9.63075 40.7091 9.33611L24.7091 3.26909C24.2522 3.09585 23.7478 3.09585 23.2909 3.26909L7.29089 9.33611ZM16.6763 20.6675L22.0738 26.065L31.4986 16.6731L34.322 19.5065L24.2884 29.5051C23.062 30.7273 21.0775 30.7256 19.8531 29.5012L13.8479 23.496L16.6763 20.6675Z",
|
|
3567
|
+
fill: color
|
|
3568
|
+
}
|
|
3569
|
+
) });
|
|
3570
|
+
}
|
|
3571
|
+
if (thick) {
|
|
3572
|
+
return /* @__PURE__ */ jsxs53("svg", { ...props, width: size, height: size, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 48 48", fill: "none", children: [
|
|
3573
|
+
/* @__PURE__ */ jsx76(
|
|
3574
|
+
"path",
|
|
3575
|
+
{
|
|
3576
|
+
d: "M16.6763 20.6675L22.0738 26.065L31.4986 16.6731L34.322 19.5065L24.2884 29.5051C23.062 30.7273 21.0775 30.7256 19.8531 29.5012L13.8479 23.496L16.6763 20.6675Z",
|
|
3577
|
+
fill: color
|
|
3578
|
+
}
|
|
3579
|
+
),
|
|
3580
|
+
/* @__PURE__ */ jsx76(
|
|
3581
|
+
"path",
|
|
3582
|
+
{
|
|
3583
|
+
"fill-rule": "evenodd",
|
|
3584
|
+
"clip-rule": "evenodd",
|
|
3585
|
+
d: "M6 11.2062C6 10.3752 6.51387 9.63075 7.29089 9.33611L23.2909 3.26909C23.7478 3.09585 24.2522 3.09585 24.7091 3.26909L40.7091 9.33611C41.4861 9.63075 42 10.3752 42 11.2062V20.9793C42 29.6885 37.4676 37.77 30.0363 42.3114L25.0429 45.3629C24.4027 45.7541 23.5973 45.7541 22.9571 45.3629L17.9637 42.3114C10.5324 37.77 6 29.6885 6 20.9793V11.2062ZM24 7.27812L38 12.5868V20.9793C38 28.295 34.1928 35.0835 27.9505 38.8983L24 41.3124L20.0495 38.8983C13.8072 35.0835 10 28.295 10 20.9793L10 12.5868L24 7.27812Z",
|
|
3586
|
+
fill: color
|
|
3587
|
+
}
|
|
3588
|
+
)
|
|
3589
|
+
] });
|
|
3590
|
+
}
|
|
3591
|
+
if (fill) {
|
|
3592
|
+
return /* @__PURE__ */ jsx76("svg", { ...props, width: size, height: size, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 48 48", fill: "none", children: /* @__PURE__ */ jsx76(
|
|
3593
|
+
"path",
|
|
3594
|
+
{
|
|
3595
|
+
"fill-rule": "evenodd",
|
|
3596
|
+
"clip-rule": "evenodd",
|
|
3597
|
+
d: "M7.29089 9.33611C6.51387 9.63075 6 10.3752 6 11.2062V20.9793C6 29.6885 10.5324 37.77 17.9637 42.3114L22.9571 45.3629C23.5973 45.7541 24.4027 45.7541 25.0429 45.3629L30.0363 42.3114C37.4676 37.77 42 29.6885 42 20.9793V11.2062C42 10.3752 41.4861 9.63075 40.7091 9.33611L24.7091 3.26909C24.2522 3.09585 23.7478 3.09585 23.2909 3.26909L7.29089 9.33611ZM16.3224 21.0216L22.0728 26.772L31.8511 17.0278L33.9687 19.1528L23.9351 29.1514C22.904 30.1789 21.2356 30.1775 20.2063 29.1482L14.2011 23.1429L16.3224 21.0216Z",
|
|
3598
|
+
fill: color
|
|
3599
|
+
}
|
|
3600
|
+
) });
|
|
3601
|
+
}
|
|
3602
|
+
return /* @__PURE__ */ jsxs53("svg", { ...props, width: size, height: size, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 48 48", fill: "none", children: [
|
|
3603
|
+
/* @__PURE__ */ jsx76(
|
|
3604
|
+
"path",
|
|
3605
|
+
{
|
|
3606
|
+
d: "M16.3224 21.0216L22.0728 26.772L31.8511 17.0278L33.9687 19.1528L23.9351 29.1514C22.904 30.1789 21.2356 30.1775 20.2063 29.1482L14.2011 23.1429L16.3224 21.0216Z",
|
|
3607
|
+
fill: color
|
|
3608
|
+
}
|
|
3609
|
+
),
|
|
3610
|
+
/* @__PURE__ */ jsx76(
|
|
3611
|
+
"path",
|
|
3612
|
+
{
|
|
3613
|
+
"fill-rule": "evenodd",
|
|
3614
|
+
"clip-rule": "evenodd",
|
|
3615
|
+
d: "M6 11.2062C6 10.3752 6.51387 9.63075 7.29089 9.33611L23.2909 3.26909C23.7478 3.09585 24.2522 3.09585 24.7091 3.26909L40.7091 9.33611C41.4861 9.63075 42 10.3752 42 11.2062V20.9793C42 29.6885 37.4676 37.77 30.0363 42.3114L25.0429 45.3629C24.4027 45.7541 23.5973 45.7541 22.9571 45.3629L17.9637 42.3114C10.5324 37.77 6 29.6885 6 20.9793V11.2062ZM24 6.20864L39 11.8965V20.9793C39 28.6434 35.0115 35.7551 28.4719 39.7515L24 42.4844L19.5281 39.7515C12.9885 35.7551 9 28.6434 9 20.9793L9 11.8965L24 6.20864Z",
|
|
3616
|
+
fill: color
|
|
3617
|
+
}
|
|
3618
|
+
)
|
|
3619
|
+
] });
|
|
3620
|
+
}, "ICShield");
|
|
3621
|
+
|
|
3556
3622
|
// src/utils/icon.ts
|
|
3557
3623
|
var iconMap = {
|
|
3558
3624
|
"close-fill": ICCloseFill,
|
|
@@ -3629,7 +3695,8 @@ var iconMap = {
|
|
|
3629
3695
|
light: ICLight,
|
|
3630
3696
|
"document-add": ICDocumentAdd,
|
|
3631
3697
|
"thumb-up": ICThumbUp,
|
|
3632
|
-
"thumb-down": ICThumbDown
|
|
3698
|
+
"thumb-down": ICThumbDown,
|
|
3699
|
+
shield: ICShield
|
|
3633
3700
|
};
|
|
3634
3701
|
|
|
3635
3702
|
// src/utils/object.ts
|
|
@@ -3698,7 +3765,7 @@ var style_module_default2 = {
|
|
|
3698
3765
|
};
|
|
3699
3766
|
|
|
3700
3767
|
// src/components/Icon/index.tsx
|
|
3701
|
-
import { jsx as
|
|
3768
|
+
import { jsx as jsx77 } from "react/jsx-runtime";
|
|
3702
3769
|
var iconSizeMap = {
|
|
3703
3770
|
xs: 16,
|
|
3704
3771
|
s: 20,
|
|
@@ -3738,7 +3805,7 @@ var Icon = /* @__PURE__ */ __name((props) => {
|
|
|
3738
3805
|
} = props;
|
|
3739
3806
|
const IconComponent = getIconComponent(name, iconMap);
|
|
3740
3807
|
const iconSize = iconSizeMap[size];
|
|
3741
|
-
return color ? /* @__PURE__ */
|
|
3808
|
+
return color ? /* @__PURE__ */ jsx77(IconComponent, { ...rest, color, size: iconSize, thick, fill }) : /* @__PURE__ */ jsx77(
|
|
3742
3809
|
IconComponent,
|
|
3743
3810
|
{
|
|
3744
3811
|
...rest,
|
|
@@ -3751,7 +3818,7 @@ var Icon = /* @__PURE__ */ __name((props) => {
|
|
|
3751
3818
|
}, "Icon");
|
|
3752
3819
|
|
|
3753
3820
|
// src/components/Button/index.tsx
|
|
3754
|
-
import { jsx as
|
|
3821
|
+
import { jsx as jsx78, jsxs as jsxs54 } from "react/jsx-runtime";
|
|
3755
3822
|
var buttonIconSizeMap = {
|
|
3756
3823
|
cta: "m",
|
|
3757
3824
|
l: "s",
|
|
@@ -3827,16 +3894,16 @@ var DefaultButton = forwardRef(
|
|
|
3827
3894
|
rightIcon,
|
|
3828
3895
|
...rest
|
|
3829
3896
|
}, ref) => {
|
|
3830
|
-
return /* @__PURE__ */
|
|
3897
|
+
return /* @__PURE__ */ jsx78(
|
|
3831
3898
|
"button",
|
|
3832
3899
|
{
|
|
3833
3900
|
...rest,
|
|
3834
3901
|
className: clsx2(defaultButtonVariants({ level, fill, align, size, width }), className),
|
|
3835
3902
|
ref,
|
|
3836
|
-
children: /* @__PURE__ */
|
|
3837
|
-
!!leftIcon && /* @__PURE__ */
|
|
3838
|
-
/* @__PURE__ */
|
|
3839
|
-
!!rightIcon && /* @__PURE__ */
|
|
3903
|
+
children: /* @__PURE__ */ jsxs54("span", { className: clsx2(defaultButtonChildrenVariants({ size })), children: [
|
|
3904
|
+
!!leftIcon && /* @__PURE__ */ jsx78(Icon, { name: leftIcon.name, size: buttonIconSizeMap[size], thick: buttonSizeIconThickMap[size] }),
|
|
3905
|
+
/* @__PURE__ */ jsx78("p", { className: style_module_default.content, children: rest.children }),
|
|
3906
|
+
!!rightIcon && /* @__PURE__ */ jsx78(Icon, { name: rightIcon.name, size: buttonIconSizeMap[size], thick: buttonSizeIconThickMap[size] })
|
|
3840
3907
|
] })
|
|
3841
3908
|
}
|
|
3842
3909
|
);
|
|
@@ -3844,7 +3911,7 @@ var DefaultButton = forwardRef(
|
|
|
3844
3911
|
);
|
|
3845
3912
|
var TextButton = forwardRef(
|
|
3846
3913
|
({ level = "inversePrimary", className, ...rest }, ref) => {
|
|
3847
|
-
return /* @__PURE__ */
|
|
3914
|
+
return /* @__PURE__ */ jsx78("button", { ...rest, className: clsx2(textButtonVariants({ level }), className), ref });
|
|
3848
3915
|
}
|
|
3849
3916
|
);
|
|
3850
3917
|
var Button = forwardRef((props, ref) => {
|
|
@@ -3852,10 +3919,10 @@ var Button = forwardRef((props, ref) => {
|
|
|
3852
3919
|
case "default":
|
|
3853
3920
|
case void 0:
|
|
3854
3921
|
const DefaultComp = props.asChild ? Slot : DefaultButton;
|
|
3855
|
-
return /* @__PURE__ */
|
|
3922
|
+
return /* @__PURE__ */ jsx78(DefaultComp, { ...props, ref });
|
|
3856
3923
|
case "text":
|
|
3857
3924
|
const TextComp = props.asChild ? Slot : TextButton;
|
|
3858
|
-
return /* @__PURE__ */
|
|
3925
|
+
return /* @__PURE__ */ jsx78(TextComp, { ...props, ref });
|
|
3859
3926
|
}
|
|
3860
3927
|
});
|
|
3861
3928
|
|
|
@@ -3900,9 +3967,9 @@ import { useEffect, useRef, useState } from "react";
|
|
|
3900
3967
|
|
|
3901
3968
|
// src/components/Typography/Paragraph.tsx
|
|
3902
3969
|
import clsx3 from "clsx";
|
|
3903
|
-
import { jsx as
|
|
3970
|
+
import { jsx as jsx79 } from "react/jsx-runtime";
|
|
3904
3971
|
var Paragraph = /* @__PURE__ */ __name((props) => {
|
|
3905
|
-
return /* @__PURE__ */
|
|
3972
|
+
return /* @__PURE__ */ jsx79(
|
|
3906
3973
|
"div",
|
|
3907
3974
|
{
|
|
3908
3975
|
...props,
|
|
@@ -3914,13 +3981,13 @@ var Paragraph = /* @__PURE__ */ __name((props) => {
|
|
|
3914
3981
|
|
|
3915
3982
|
// src/components/Toast/index.tsx
|
|
3916
3983
|
import { useRecoilValue, useSetRecoilState as useSetRecoilState2 } from "recoil";
|
|
3917
|
-
import { Fragment, jsx as
|
|
3984
|
+
import { Fragment, jsx as jsx80, jsxs as jsxs55 } from "react/jsx-runtime";
|
|
3918
3985
|
import { createElement } from "react";
|
|
3919
3986
|
var Toaster = /* @__PURE__ */ __name(() => {
|
|
3920
3987
|
const { list } = useRecoilValue(toastAtom);
|
|
3921
|
-
return /* @__PURE__ */
|
|
3988
|
+
return /* @__PURE__ */ jsxs55(Provider, { children: [
|
|
3922
3989
|
list.map((props) => /* @__PURE__ */ createElement(SingleToast, { ...props, key: props.toastId })),
|
|
3923
|
-
/* @__PURE__ */
|
|
3990
|
+
/* @__PURE__ */ jsx80(Viewport, { className: style_module_default3.ToastViewport })
|
|
3924
3991
|
] });
|
|
3925
3992
|
}, "Toaster");
|
|
3926
3993
|
var SingleToast = /* @__PURE__ */ __name((props) => {
|
|
@@ -3950,51 +4017,51 @@ var SingleToast = /* @__PURE__ */ __name((props) => {
|
|
|
3950
4017
|
};
|
|
3951
4018
|
}, []);
|
|
3952
4019
|
const IconComponent = (() => {
|
|
3953
|
-
if (!icon) return /* @__PURE__ */
|
|
4020
|
+
if (!icon) return /* @__PURE__ */ jsx80(Fragment, {});
|
|
3954
4021
|
switch (icon) {
|
|
3955
4022
|
case "negative":
|
|
3956
|
-
return /* @__PURE__ */
|
|
4023
|
+
return /* @__PURE__ */ jsx80(Icon, { name: "exclamationmark", type: "functionLabelNegative", fill: true, size: "s" });
|
|
3957
4024
|
case "positive":
|
|
3958
|
-
return /* @__PURE__ */
|
|
4025
|
+
return /* @__PURE__ */ jsx80(Icon, { name: "check-mark", type: "functionLabelPositive", fill: true, size: "s" });
|
|
3959
4026
|
default:
|
|
3960
|
-
return /* @__PURE__ */
|
|
4027
|
+
return /* @__PURE__ */ jsx80(Fragment, {});
|
|
3961
4028
|
}
|
|
3962
4029
|
})();
|
|
3963
|
-
return /* @__PURE__ */
|
|
3964
|
-
/* @__PURE__ */
|
|
3965
|
-
/* @__PURE__ */
|
|
3966
|
-
/* @__PURE__ */
|
|
3967
|
-
button && /* @__PURE__ */
|
|
4030
|
+
return /* @__PURE__ */ jsxs55(Root, { className: style_module_default3.ToastRoot, open: isOpen, ...props, children: [
|
|
4031
|
+
/* @__PURE__ */ jsx80("i", { className: style_module_default3.Icon, children: IconComponent }),
|
|
4032
|
+
/* @__PURE__ */ jsxs55(Title, { className: style_module_default3.ToastTitle, children: [
|
|
4033
|
+
/* @__PURE__ */ jsx80(Paragraph, { className: style_module_default3.TitleText, type: "normal", weight: "medium", size: 3, children: message }),
|
|
4034
|
+
button && /* @__PURE__ */ jsx80(Button, { onClick: button.onClick, level: "inverse", size: "s", align: "center", children: button.label })
|
|
3968
4035
|
] })
|
|
3969
4036
|
] });
|
|
3970
4037
|
}, "SingleToast");
|
|
3971
4038
|
|
|
3972
4039
|
// src/components/Typography/Heading.tsx
|
|
3973
4040
|
import clsx4 from "clsx";
|
|
3974
|
-
import { jsx as
|
|
4041
|
+
import { jsx as jsx81 } from "react/jsx-runtime";
|
|
3975
4042
|
var Heading = /* @__PURE__ */ __name((props) => {
|
|
3976
|
-
return /* @__PURE__ */
|
|
4043
|
+
return /* @__PURE__ */ jsx81("div", { ...props, className: clsx4(`lp-sys-typo-heading${props.size}-${props.type}`, props.className), children: props.children });
|
|
3977
4044
|
}, "Heading");
|
|
3978
4045
|
|
|
3979
4046
|
// src/components/Typography/Display.tsx
|
|
3980
4047
|
import clsx5 from "clsx";
|
|
3981
|
-
import { jsx as
|
|
4048
|
+
import { jsx as jsx82 } from "react/jsx-runtime";
|
|
3982
4049
|
var Display = /* @__PURE__ */ __name((props) => {
|
|
3983
|
-
return /* @__PURE__ */
|
|
4050
|
+
return /* @__PURE__ */ jsx82("div", { ...props, className: clsx5(`lp-sys-typo-display${props.size}-${props.type}-${props.weight}`, props.className), children: props.children });
|
|
3984
4051
|
}, "Display");
|
|
3985
4052
|
|
|
3986
4053
|
// src/components/Typography/Title.tsx
|
|
3987
4054
|
import clsx6 from "clsx";
|
|
3988
|
-
import { jsx as
|
|
4055
|
+
import { jsx as jsx83 } from "react/jsx-runtime";
|
|
3989
4056
|
var Title2 = /* @__PURE__ */ __name((props) => {
|
|
3990
|
-
return /* @__PURE__ */
|
|
4057
|
+
return /* @__PURE__ */ jsx83("div", { ...props, className: clsx6(`lp-sys-typo-title${props.size}-${props.type}-${props.weight}`, props.className), children: props.children });
|
|
3991
4058
|
}, "Title");
|
|
3992
4059
|
|
|
3993
4060
|
// src/components/Typography/Caption.tsx
|
|
3994
4061
|
import clsx7 from "clsx";
|
|
3995
|
-
import { jsx as
|
|
4062
|
+
import { jsx as jsx84 } from "react/jsx-runtime";
|
|
3996
4063
|
var Caption = /* @__PURE__ */ __name(({ children, size, weight, type, className, ...rest }) => {
|
|
3997
|
-
return /* @__PURE__ */
|
|
4064
|
+
return /* @__PURE__ */ jsx84("div", { ...rest, className: clsx7(`lp-sys-typo-caption${size}-${type}-${weight}`, className), children });
|
|
3998
4065
|
}, "Caption");
|
|
3999
4066
|
|
|
4000
4067
|
// src/components/Popover/index.tsx
|
|
@@ -4020,7 +4087,7 @@ var style_module_default4 = {
|
|
|
4020
4087
|
// src/components/Popover/index.tsx
|
|
4021
4088
|
import { cva as cva3 } from "class-variance-authority";
|
|
4022
4089
|
import { clsx as clsx8 } from "clsx";
|
|
4023
|
-
import { jsx as
|
|
4090
|
+
import { jsx as jsx85, jsxs as jsxs56 } from "react/jsx-runtime";
|
|
4024
4091
|
var DEFAULT_OFFSET = -6;
|
|
4025
4092
|
var popoverVariants = cva3(style_module_default4.content, {
|
|
4026
4093
|
variants: {
|
|
@@ -4042,9 +4109,9 @@ var popoverTagVariants = cva3([style_module_default4.tag, "lp-sys-typo-caption3-
|
|
|
4042
4109
|
var popoverTitleVariants = cva3([style_module_default4.title, "lp-sys-typo-paragraph3-normal-bold"]);
|
|
4043
4110
|
var popoverSubtitleVariants = cva3([style_module_default4.subTitle, "lp-sys-typo-caption1-normal-regular"]);
|
|
4044
4111
|
var popoverFooterVariants = cva3([style_module_default4.footer, "lp-sys-typo-caption1-normal-medium"]);
|
|
4045
|
-
var PopoverRoot = /* @__PURE__ */ __name(({ isOpen, children, onChange }) => /* @__PURE__ */
|
|
4046
|
-
var PopoverTrigger = /* @__PURE__ */ __name(({ by }) => /* @__PURE__ */
|
|
4047
|
-
var PopoverAnchor = /* @__PURE__ */ __name(({ className }) => /* @__PURE__ */
|
|
4112
|
+
var PopoverRoot = /* @__PURE__ */ __name(({ isOpen, children, onChange }) => /* @__PURE__ */ jsx85(PopoverPrimitive.Root, { open: isOpen, onOpenChange: onChange, children }), "PopoverRoot");
|
|
4113
|
+
var PopoverTrigger = /* @__PURE__ */ __name(({ by }) => /* @__PURE__ */ jsx85(PopoverPrimitive.Trigger, { asChild: true, children: by }), "PopoverTrigger");
|
|
4114
|
+
var PopoverAnchor = /* @__PURE__ */ __name(({ className }) => /* @__PURE__ */ jsx85(
|
|
4048
4115
|
"svg",
|
|
4049
4116
|
{
|
|
4050
4117
|
className,
|
|
@@ -4054,7 +4121,7 @@ var PopoverAnchor = /* @__PURE__ */ __name(({ className }) => /* @__PURE__ */ js
|
|
|
4054
4121
|
height: "10",
|
|
4055
4122
|
viewBox: "0 0 30 10",
|
|
4056
4123
|
fill: "none",
|
|
4057
|
-
children: /* @__PURE__ */
|
|
4124
|
+
children: /* @__PURE__ */ jsx85(
|
|
4058
4125
|
"path",
|
|
4059
4126
|
{
|
|
4060
4127
|
"fill-rule": "evenodd",
|
|
@@ -4079,7 +4146,7 @@ var PopoverContent = React.forwardRef(
|
|
|
4079
4146
|
onClose,
|
|
4080
4147
|
className,
|
|
4081
4148
|
...props
|
|
4082
|
-
}, ref) => /* @__PURE__ */
|
|
4149
|
+
}, ref) => /* @__PURE__ */ jsx85(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsxs56(
|
|
4083
4150
|
PopoverPrimitive.Content,
|
|
4084
4151
|
{
|
|
4085
4152
|
ref,
|
|
@@ -4089,24 +4156,24 @@ var PopoverContent = React.forwardRef(
|
|
|
4089
4156
|
className: clsx8(popoverVariants({ level }), className),
|
|
4090
4157
|
...props,
|
|
4091
4158
|
children: [
|
|
4092
|
-
/* @__PURE__ */
|
|
4093
|
-
/* @__PURE__ */
|
|
4094
|
-
tag && /* @__PURE__ */
|
|
4095
|
-
icon && /* @__PURE__ */
|
|
4096
|
-
/* @__PURE__ */
|
|
4097
|
-
/* @__PURE__ */
|
|
4159
|
+
/* @__PURE__ */ jsxs56("div", { className: style_module_default4.contentContainer, children: [
|
|
4160
|
+
/* @__PURE__ */ jsxs56("div", { className: style_module_default4.heading, children: [
|
|
4161
|
+
tag && /* @__PURE__ */ jsx85("span", { className: popoverTagVariants(), children: tag }),
|
|
4162
|
+
icon && /* @__PURE__ */ jsx85(Icon, { name: icon.name, size: "xs", thick: icon.thick, fill: icon.fill }),
|
|
4163
|
+
/* @__PURE__ */ jsx85("p", { className: popoverTitleVariants(), children: title }),
|
|
4164
|
+
/* @__PURE__ */ jsx85(
|
|
4098
4165
|
PopoverPrimitive.PopoverClose,
|
|
4099
4166
|
{
|
|
4100
4167
|
className: style_module_default4.closeButton,
|
|
4101
4168
|
onClick: () => {
|
|
4102
4169
|
onClose?.();
|
|
4103
4170
|
},
|
|
4104
|
-
children: /* @__PURE__ */
|
|
4171
|
+
children: /* @__PURE__ */ jsx85(Icon, { name: "close-fill", size: "s", color: "#1E1E1F", fill: true, thick: true })
|
|
4105
4172
|
}
|
|
4106
4173
|
)
|
|
4107
4174
|
] }),
|
|
4108
|
-
/* @__PURE__ */
|
|
4109
|
-
onConfirm && /* @__PURE__ */
|
|
4175
|
+
/* @__PURE__ */ jsx85("p", { className: popoverSubtitleVariants(), children: subTitle }),
|
|
4176
|
+
onConfirm && /* @__PURE__ */ jsx85("div", { className: popoverFooterVariants(), children: /* @__PURE__ */ jsx85(
|
|
4110
4177
|
Button,
|
|
4111
4178
|
{
|
|
4112
4179
|
as: "text",
|
|
@@ -4118,7 +4185,7 @@ var PopoverContent = React.forwardRef(
|
|
|
4118
4185
|
}
|
|
4119
4186
|
) })
|
|
4120
4187
|
] }),
|
|
4121
|
-
/* @__PURE__ */
|
|
4188
|
+
/* @__PURE__ */ jsx85(PopoverPrimitive.Arrow, { asChild: true, children: /* @__PURE__ */ jsx85(PopoverAnchor, { className: clsx8(popoverAnchorVariants({ level })) }) })
|
|
4122
4189
|
]
|
|
4123
4190
|
}
|
|
4124
4191
|
) })
|
|
@@ -4143,22 +4210,22 @@ var style_module_default5 = {
|
|
|
4143
4210
|
// src/components/Tooltip/index.tsx
|
|
4144
4211
|
import { cva as cva4 } from "class-variance-authority";
|
|
4145
4212
|
import clsx9 from "clsx";
|
|
4146
|
-
import { jsx as
|
|
4213
|
+
import { jsx as jsx86 } from "react/jsx-runtime";
|
|
4147
4214
|
var DEFAULT_OFFSET2 = 4;
|
|
4148
4215
|
var tooltipVariants = cva4([style_module_default5.tooltip, "lp-sys-typo-caption1-normal-medium"]);
|
|
4149
4216
|
var TooltipProvider = TooltipPrimitive.Provider;
|
|
4150
|
-
var TooltipRoot = /* @__PURE__ */ __name(({ children }) => /* @__PURE__ */
|
|
4151
|
-
var TooltipTrigger = /* @__PURE__ */ __name(({ by }) => /* @__PURE__ */
|
|
4217
|
+
var TooltipRoot = /* @__PURE__ */ __name(({ children }) => /* @__PURE__ */ jsx86(TooltipPrimitive.Root, { delayDuration: 0, children }), "TooltipRoot");
|
|
4218
|
+
var TooltipTrigger = /* @__PURE__ */ __name(({ by }) => /* @__PURE__ */ jsx86(TooltipPrimitive.Trigger, { asChild: true, children: by }), "TooltipTrigger");
|
|
4152
4219
|
var TooltipContent = forwardRef3(
|
|
4153
|
-
({ description, position = "top", className, ...props }, ref) => /* @__PURE__ */
|
|
4220
|
+
({ description, position = "top", className, offset = DEFAULT_OFFSET2, ...props }, ref) => /* @__PURE__ */ jsx86(
|
|
4154
4221
|
TooltipPrimitive.Content,
|
|
4155
4222
|
{
|
|
4156
4223
|
ref,
|
|
4157
4224
|
side: position,
|
|
4158
|
-
sideOffset:
|
|
4225
|
+
sideOffset: offset,
|
|
4159
4226
|
className: clsx9(tooltipVariants(), className),
|
|
4160
4227
|
...props,
|
|
4161
|
-
children: /* @__PURE__ */
|
|
4228
|
+
children: /* @__PURE__ */ jsx86("p", { className: style_module_default5.tooltipContent, children: description })
|
|
4162
4229
|
}
|
|
4163
4230
|
)
|
|
4164
4231
|
);
|
|
@@ -4190,7 +4257,7 @@ var style_module_default6 = {
|
|
|
4190
4257
|
|
|
4191
4258
|
// src/components/IconButton/index.tsx
|
|
4192
4259
|
import { Slot as Slot2 } from "@radix-ui/react-slot";
|
|
4193
|
-
import { jsx as
|
|
4260
|
+
import { jsx as jsx87 } from "react/jsx-runtime";
|
|
4194
4261
|
var iconButtonSizeIconSizeMap = {
|
|
4195
4262
|
l: "m",
|
|
4196
4263
|
m: "s",
|
|
@@ -4218,7 +4285,7 @@ var iconButtonVariants = cva5([style_module_default6.iconButton], {
|
|
|
4218
4285
|
var IconButton = forwardRef4(
|
|
4219
4286
|
({ asChild, level = "primary", name, thick = false, fill = false, size = "m", className, ...rest }, ref) => {
|
|
4220
4287
|
const Comp = asChild ? Slot2 : "button";
|
|
4221
|
-
return /* @__PURE__ */
|
|
4288
|
+
return /* @__PURE__ */ jsx87(Comp, { ...rest, className: clsx10(iconButtonVariants({ level, size }), className), ref, children: /* @__PURE__ */ jsx87(Icon, { name, thick, fill, size: iconButtonSizeIconSizeMap[size] }) });
|
|
4222
4289
|
}
|
|
4223
4290
|
);
|
|
4224
4291
|
export {
|