@liner-fe/prism 1.12.19 → 1.12.21
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/lp-pri-icon-s-drop-up.d.ts +8 -0
- package/lib/components/Select/index.d.ts +2 -1
- package/lib/index.mjs +145 -106
- package/lib/index.mjs.map +4 -4
- package/lib/type/index.d.ts +1 -1
- package/package.json +1 -1
package/lib/index.mjs
CHANGED
|
@@ -6392,6 +6392,32 @@ var ICLpPriIconMVolume = /* @__PURE__ */ __name((props) => {
|
|
|
6392
6392
|
) });
|
|
6393
6393
|
}, "ICLpPriIconMVolume");
|
|
6394
6394
|
|
|
6395
|
+
// src/assets/lp-pri-icon-s-drop-up.tsx
|
|
6396
|
+
import { jsx as jsx136 } from "react/jsx-runtime";
|
|
6397
|
+
var ICLpPriIconSDropUp = /* @__PURE__ */ __name((props) => {
|
|
6398
|
+
const { thick = false, fill = false, size = 32, color = "#1E1E1F" } = props;
|
|
6399
|
+
if (fill && thick) {
|
|
6400
|
+
return /* @__PURE__ */ jsx136("svg", { ...props, width: size, height: size, viewBox: "0 0 48 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx136(
|
|
6401
|
+
"path",
|
|
6402
|
+
{
|
|
6403
|
+
"fill-rule": "evenodd",
|
|
6404
|
+
"clip-rule": "evenodd",
|
|
6405
|
+
d: "M13.0607 30.0602L23.6463 19.4746C23.8416 19.2793 24.1581 19.2793 24.3534 19.4746L34.9391 30.0602L37.0604 27.9389L26.4747 17.3533C25.1079 15.9864 22.8918 15.9864 21.525 17.3533L10.9393 27.9389L13.0607 30.0602Z",
|
|
6406
|
+
fill: color
|
|
6407
|
+
}
|
|
6408
|
+
) });
|
|
6409
|
+
}
|
|
6410
|
+
return /* @__PURE__ */ jsx136("svg", { ...props, width: size, height: size, viewBox: "0 0 48 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx136(
|
|
6411
|
+
"path",
|
|
6412
|
+
{
|
|
6413
|
+
"fill-rule": "evenodd",
|
|
6414
|
+
"clip-rule": "evenodd",
|
|
6415
|
+
d: "M13.0607 30.0602L23.6463 19.4746C23.8416 19.2793 24.1581 19.2793 24.3534 19.4746L34.9391 30.0602L37.0604 27.9389L26.4747 17.3533C25.1079 15.9864 22.8918 15.9864 21.525 17.3533L10.9393 27.9389L13.0607 30.0602Z",
|
|
6416
|
+
fill: color
|
|
6417
|
+
}
|
|
6418
|
+
) });
|
|
6419
|
+
}, "ICLpPriIconSDropUp");
|
|
6420
|
+
|
|
6395
6421
|
// src/utils/icon.ts
|
|
6396
6422
|
var iconMap = {
|
|
6397
6423
|
"close-fill": ICCloseFill,
|
|
@@ -6528,7 +6554,8 @@ var iconMap = {
|
|
|
6528
6554
|
"lp-pri-icon-m-spinner": ICLpPriIconMSpinner,
|
|
6529
6555
|
"lp-pri-icon-s-drop-down": ICLpPriIconSDropDown,
|
|
6530
6556
|
"lp-pri-icon-m-volume-up": ICLpPriIconMVolumeUp,
|
|
6531
|
-
"lp-pri-icon-m-volume": ICLpPriIconMVolume
|
|
6557
|
+
"lp-pri-icon-m-volume": ICLpPriIconMVolume,
|
|
6558
|
+
"lp-pri-icon-s-drop-up": ICLpPriIconSDropUp
|
|
6532
6559
|
};
|
|
6533
6560
|
|
|
6534
6561
|
// src/utils/object.ts
|
|
@@ -6633,7 +6660,7 @@ var style_module_default2 = {
|
|
|
6633
6660
|
};
|
|
6634
6661
|
|
|
6635
6662
|
// src/components/Icon/index.tsx
|
|
6636
|
-
import { jsx as
|
|
6663
|
+
import { jsx as jsx137 } from "react/jsx-runtime";
|
|
6637
6664
|
var iconSizeMap = {
|
|
6638
6665
|
xs: 16,
|
|
6639
6666
|
s: 20,
|
|
@@ -6686,7 +6713,7 @@ var Icon = /* @__PURE__ */ __name((props) => {
|
|
|
6686
6713
|
} = props;
|
|
6687
6714
|
const IconComponent = getIconComponent(name, iconMap);
|
|
6688
6715
|
const iconSize = iconSizeMap[size];
|
|
6689
|
-
return /* @__PURE__ */
|
|
6716
|
+
return /* @__PURE__ */ jsx137(
|
|
6690
6717
|
IconComponent,
|
|
6691
6718
|
{
|
|
6692
6719
|
...rest,
|
|
@@ -6699,7 +6726,7 @@ var Icon = /* @__PURE__ */ __name((props) => {
|
|
|
6699
6726
|
}, "Icon");
|
|
6700
6727
|
|
|
6701
6728
|
// src/components/Button/index.tsx
|
|
6702
|
-
import { jsx as
|
|
6729
|
+
import { jsx as jsx138, jsxs as jsxs99 } from "react/jsx-runtime";
|
|
6703
6730
|
var buttonIconSizeMap = {
|
|
6704
6731
|
cta: "m",
|
|
6705
6732
|
l: "s",
|
|
@@ -6787,21 +6814,21 @@ var DefaultButton = forwardRef(
|
|
|
6787
6814
|
ref
|
|
6788
6815
|
},
|
|
6789
6816
|
/* @__PURE__ */ jsxs99("span", { className: clsx2(defaultButtonChildrenVariants({ size })), children: [
|
|
6790
|
-
!!leftIcon && /* @__PURE__ */
|
|
6791
|
-
/* @__PURE__ */
|
|
6792
|
-
!!rightIcon && /* @__PURE__ */
|
|
6817
|
+
!!leftIcon && /* @__PURE__ */ jsx138(Icon, { name: leftIcon.name, size: buttonIconSizeMap[size], thick: buttonSizeIconThickMap[size] }),
|
|
6818
|
+
/* @__PURE__ */ jsx138("p", { className: style_module_default.content, children: newChildren }),
|
|
6819
|
+
!!rightIcon && /* @__PURE__ */ jsx138(Icon, { name: rightIcon.name, size: buttonIconSizeMap[size], thick: buttonSizeIconThickMap[size] })
|
|
6793
6820
|
] })
|
|
6794
6821
|
);
|
|
6795
6822
|
return ParentClone;
|
|
6796
6823
|
}
|
|
6797
|
-
return /* @__PURE__ */
|
|
6824
|
+
return /* @__PURE__ */ jsx138(
|
|
6798
6825
|
"button",
|
|
6799
6826
|
{
|
|
6800
6827
|
...rest,
|
|
6801
6828
|
className: clsx2(defaultButtonVariants({ level, fill, align, size, width }), className),
|
|
6802
6829
|
ref,
|
|
6803
6830
|
children: /* @__PURE__ */ jsxs99("span", { className: clsx2(defaultButtonChildrenVariants({ size })), children: [
|
|
6804
|
-
!!leftIcon && /* @__PURE__ */
|
|
6831
|
+
!!leftIcon && /* @__PURE__ */ jsx138(
|
|
6805
6832
|
Icon,
|
|
6806
6833
|
{
|
|
6807
6834
|
name: leftIcon.name,
|
|
@@ -6810,8 +6837,8 @@ var DefaultButton = forwardRef(
|
|
|
6810
6837
|
fill: leftIcon.fill
|
|
6811
6838
|
}
|
|
6812
6839
|
),
|
|
6813
|
-
/* @__PURE__ */
|
|
6814
|
-
!!rightIcon && /* @__PURE__ */
|
|
6840
|
+
/* @__PURE__ */ jsx138("p", { className: style_module_default.content, children }),
|
|
6841
|
+
!!rightIcon && /* @__PURE__ */ jsx138(
|
|
6815
6842
|
Icon,
|
|
6816
6843
|
{
|
|
6817
6844
|
name: rightIcon.name,
|
|
@@ -6828,16 +6855,16 @@ var DefaultButton = forwardRef(
|
|
|
6828
6855
|
var TextButton = forwardRef(
|
|
6829
6856
|
({ level = "inverse-primary", asChild = false, className, ...rest }, ref) => {
|
|
6830
6857
|
const Component = asChild ? Slot : "button";
|
|
6831
|
-
return /* @__PURE__ */
|
|
6858
|
+
return /* @__PURE__ */ jsx138(Component, { ...rest, className: clsx2(textButtonVariants({ level }), className), ref });
|
|
6832
6859
|
}
|
|
6833
6860
|
);
|
|
6834
6861
|
var Button = forwardRef((props, ref) => {
|
|
6835
6862
|
switch (props.as) {
|
|
6836
6863
|
case "default":
|
|
6837
6864
|
case void 0:
|
|
6838
|
-
return /* @__PURE__ */
|
|
6865
|
+
return /* @__PURE__ */ jsx138(DefaultButton, { ...props, ref });
|
|
6839
6866
|
case "text":
|
|
6840
|
-
return /* @__PURE__ */
|
|
6867
|
+
return /* @__PURE__ */ jsx138(TextButton, { ...props, ref });
|
|
6841
6868
|
}
|
|
6842
6869
|
});
|
|
6843
6870
|
|
|
@@ -6922,7 +6949,7 @@ var colorVariants = cva3(style_module_default4.typography, {
|
|
|
6922
6949
|
});
|
|
6923
6950
|
|
|
6924
6951
|
// src/components/Typography/Set/Paragraph.tsx
|
|
6925
|
-
import { jsx as
|
|
6952
|
+
import { jsx as jsx139 } from "react/jsx-runtime";
|
|
6926
6953
|
var Paragraph = /* @__PURE__ */ __name(({
|
|
6927
6954
|
size,
|
|
6928
6955
|
type,
|
|
@@ -6932,7 +6959,7 @@ var Paragraph = /* @__PURE__ */ __name(({
|
|
|
6932
6959
|
color = "neutral-label-primary",
|
|
6933
6960
|
...rest
|
|
6934
6961
|
}) => {
|
|
6935
|
-
return /* @__PURE__ */
|
|
6962
|
+
return /* @__PURE__ */ jsx139(
|
|
6936
6963
|
"p",
|
|
6937
6964
|
{
|
|
6938
6965
|
...rest,
|
|
@@ -6944,13 +6971,13 @@ var Paragraph = /* @__PURE__ */ __name(({
|
|
|
6944
6971
|
|
|
6945
6972
|
// src/components/Toast/index.tsx
|
|
6946
6973
|
import { useRecoilValue, useSetRecoilState as useSetRecoilState2 } from "recoil";
|
|
6947
|
-
import { jsx as
|
|
6974
|
+
import { jsx as jsx140, jsxs as jsxs100 } from "react/jsx-runtime";
|
|
6948
6975
|
import { createElement } from "react";
|
|
6949
6976
|
var Toaster = /* @__PURE__ */ __name(() => {
|
|
6950
6977
|
const { list } = useRecoilValue(toastAtom);
|
|
6951
6978
|
return /* @__PURE__ */ jsxs100(Provider, { children: [
|
|
6952
6979
|
list.map((props) => /* @__PURE__ */ createElement(SingleToast, { ...props, key: props.toastId })),
|
|
6953
|
-
/* @__PURE__ */
|
|
6980
|
+
/* @__PURE__ */ jsx140(Viewport, { className: style_module_default3.ToastViewport })
|
|
6954
6981
|
] });
|
|
6955
6982
|
}, "Toaster");
|
|
6956
6983
|
var SingleToast = /* @__PURE__ */ __name((props) => {
|
|
@@ -6980,9 +7007,9 @@ var SingleToast = /* @__PURE__ */ __name((props) => {
|
|
|
6980
7007
|
};
|
|
6981
7008
|
}, []);
|
|
6982
7009
|
return /* @__PURE__ */ jsxs100(Root, { className: style_module_default3.ToastRoot, open: isOpen, ...props, children: [
|
|
6983
|
-
icon && /* @__PURE__ */
|
|
7010
|
+
icon && /* @__PURE__ */ jsx140("i", { className: style_module_default3.Icon, children: /* @__PURE__ */ jsx140(Icon, { ...icon, size: "s" }) }),
|
|
6984
7011
|
/* @__PURE__ */ jsxs100(Title, { className: style_module_default3.ToastTitle, children: [
|
|
6985
|
-
/* @__PURE__ */
|
|
7012
|
+
/* @__PURE__ */ jsx140(
|
|
6986
7013
|
Paragraph,
|
|
6987
7014
|
{
|
|
6988
7015
|
className: style_module_default3.TitleText,
|
|
@@ -6993,7 +7020,7 @@ var SingleToast = /* @__PURE__ */ __name((props) => {
|
|
|
6993
7020
|
children: message
|
|
6994
7021
|
}
|
|
6995
7022
|
),
|
|
6996
|
-
button && /* @__PURE__ */
|
|
7023
|
+
button && /* @__PURE__ */ jsx140(
|
|
6997
7024
|
Button,
|
|
6998
7025
|
{
|
|
6999
7026
|
onClick: () => {
|
|
@@ -7016,7 +7043,7 @@ var SingleToast = /* @__PURE__ */ __name((props) => {
|
|
|
7016
7043
|
|
|
7017
7044
|
// src/components/Typography/Set/Heading.tsx
|
|
7018
7045
|
import clsx4 from "clsx";
|
|
7019
|
-
import { jsx as
|
|
7046
|
+
import { jsx as jsx141 } from "react/jsx-runtime";
|
|
7020
7047
|
var Heading = /* @__PURE__ */ __name(({
|
|
7021
7048
|
size,
|
|
7022
7049
|
children,
|
|
@@ -7026,7 +7053,7 @@ var Heading = /* @__PURE__ */ __name(({
|
|
|
7026
7053
|
...rest
|
|
7027
7054
|
}) => {
|
|
7028
7055
|
const Element = `h${size}`;
|
|
7029
|
-
return /* @__PURE__ */
|
|
7056
|
+
return /* @__PURE__ */ jsx141(
|
|
7030
7057
|
Element,
|
|
7031
7058
|
{
|
|
7032
7059
|
...rest,
|
|
@@ -7038,7 +7065,7 @@ var Heading = /* @__PURE__ */ __name(({
|
|
|
7038
7065
|
|
|
7039
7066
|
// src/components/Typography/Set/Caption.tsx
|
|
7040
7067
|
import clsx5 from "clsx";
|
|
7041
|
-
import { jsx as
|
|
7068
|
+
import { jsx as jsx142 } from "react/jsx-runtime";
|
|
7042
7069
|
var Caption = /* @__PURE__ */ __name(({
|
|
7043
7070
|
children,
|
|
7044
7071
|
size,
|
|
@@ -7048,7 +7075,7 @@ var Caption = /* @__PURE__ */ __name(({
|
|
|
7048
7075
|
color = "neutral-label-primary",
|
|
7049
7076
|
...rest
|
|
7050
7077
|
}) => {
|
|
7051
|
-
return /* @__PURE__ */
|
|
7078
|
+
return /* @__PURE__ */ jsx142(
|
|
7052
7079
|
"p",
|
|
7053
7080
|
{
|
|
7054
7081
|
...rest,
|
|
@@ -7065,7 +7092,7 @@ var Caption = /* @__PURE__ */ __name(({
|
|
|
7065
7092
|
|
|
7066
7093
|
// src/components/Typography/Set/Title.tsx
|
|
7067
7094
|
import clsx6 from "clsx";
|
|
7068
|
-
import { jsx as
|
|
7095
|
+
import { jsx as jsx143 } from "react/jsx-runtime";
|
|
7069
7096
|
var Title2 = /* @__PURE__ */ __name(({
|
|
7070
7097
|
weight,
|
|
7071
7098
|
size,
|
|
@@ -7075,7 +7102,7 @@ var Title2 = /* @__PURE__ */ __name(({
|
|
|
7075
7102
|
color = "neutral-label-primary",
|
|
7076
7103
|
...rest
|
|
7077
7104
|
}) => {
|
|
7078
|
-
return /* @__PURE__ */
|
|
7105
|
+
return /* @__PURE__ */ jsx143(
|
|
7079
7106
|
"p",
|
|
7080
7107
|
{
|
|
7081
7108
|
...rest,
|
|
@@ -7087,7 +7114,7 @@ var Title2 = /* @__PURE__ */ __name(({
|
|
|
7087
7114
|
|
|
7088
7115
|
// src/components/Typography/Set/Display.tsx
|
|
7089
7116
|
import clsx7 from "clsx";
|
|
7090
|
-
import { jsx as
|
|
7117
|
+
import { jsx as jsx144 } from "react/jsx-runtime";
|
|
7091
7118
|
var Display = /* @__PURE__ */ __name(({
|
|
7092
7119
|
size,
|
|
7093
7120
|
type,
|
|
@@ -7097,7 +7124,7 @@ var Display = /* @__PURE__ */ __name(({
|
|
|
7097
7124
|
color = "neutral-label-primary",
|
|
7098
7125
|
...rest
|
|
7099
7126
|
}) => {
|
|
7100
|
-
return /* @__PURE__ */
|
|
7127
|
+
return /* @__PURE__ */ jsx144(
|
|
7101
7128
|
"p",
|
|
7102
7129
|
{
|
|
7103
7130
|
...rest,
|
|
@@ -7144,7 +7171,7 @@ var style_module_default5 = {
|
|
|
7144
7171
|
// src/components/Popover/index.tsx
|
|
7145
7172
|
import { cva as cva4 } from "class-variance-authority";
|
|
7146
7173
|
import { clsx as clsx8 } from "clsx";
|
|
7147
|
-
import { jsx as
|
|
7174
|
+
import { jsx as jsx145, jsxs as jsxs101 } from "react/jsx-runtime";
|
|
7148
7175
|
var DEFAULT_OFFSET = -6;
|
|
7149
7176
|
var popoverVariants = cva4(style_module_default5.content, {
|
|
7150
7177
|
variants: {
|
|
@@ -7166,9 +7193,9 @@ var popoverTagVariants = cva4([style_module_default5.tag, "lp-sys-typo-caption3-
|
|
|
7166
7193
|
var popoverTitleVariants = cva4([style_module_default5.title, "lp-sys-typo-paragraph3-normal-bold"]);
|
|
7167
7194
|
var popoverDescriptionVariants = cva4([style_module_default5.description, "lp-sys-typo-caption1-normal-regular"]);
|
|
7168
7195
|
var popoverFooterVariants = cva4([style_module_default5.footer, "lp-sys-typo-caption1-normal-medium"]);
|
|
7169
|
-
var PopoverRoot = /* @__PURE__ */ __name(({ isOpen, children, onChange }) => /* @__PURE__ */
|
|
7170
|
-
var PopoverTrigger = /* @__PURE__ */ __name(({ by }) => /* @__PURE__ */
|
|
7171
|
-
var PopoverAnchor = /* @__PURE__ */ __name(({ className }) => /* @__PURE__ */
|
|
7196
|
+
var PopoverRoot = /* @__PURE__ */ __name(({ isOpen, children, onChange }) => /* @__PURE__ */ jsx145(PopoverPrimitive.Root, { open: isOpen, onOpenChange: onChange, children }), "PopoverRoot");
|
|
7197
|
+
var PopoverTrigger = /* @__PURE__ */ __name(({ by }) => /* @__PURE__ */ jsx145(PopoverPrimitive.Trigger, { asChild: true, children: by }), "PopoverTrigger");
|
|
7198
|
+
var PopoverAnchor = /* @__PURE__ */ __name(({ className }) => /* @__PURE__ */ jsx145(
|
|
7172
7199
|
"svg",
|
|
7173
7200
|
{
|
|
7174
7201
|
className,
|
|
@@ -7178,7 +7205,7 @@ var PopoverAnchor = /* @__PURE__ */ __name(({ className }) => /* @__PURE__ */ js
|
|
|
7178
7205
|
height: "10",
|
|
7179
7206
|
viewBox: "0 0 30 10",
|
|
7180
7207
|
fill: "none",
|
|
7181
|
-
children: /* @__PURE__ */
|
|
7208
|
+
children: /* @__PURE__ */ jsx145(
|
|
7182
7209
|
"path",
|
|
7183
7210
|
{
|
|
7184
7211
|
"fill-rule": "evenodd",
|
|
@@ -7203,7 +7230,7 @@ var PopoverContent = React.forwardRef(
|
|
|
7203
7230
|
onClose,
|
|
7204
7231
|
className,
|
|
7205
7232
|
...props
|
|
7206
|
-
}, ref) => /* @__PURE__ */
|
|
7233
|
+
}, ref) => /* @__PURE__ */ jsx145(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsxs101(
|
|
7207
7234
|
PopoverPrimitive.Content,
|
|
7208
7235
|
{
|
|
7209
7236
|
ref,
|
|
@@ -7215,22 +7242,22 @@ var PopoverContent = React.forwardRef(
|
|
|
7215
7242
|
children: [
|
|
7216
7243
|
/* @__PURE__ */ jsxs101("div", { className: style_module_default5.contentContainer, children: [
|
|
7217
7244
|
/* @__PURE__ */ jsxs101("div", { className: style_module_default5.heading, children: [
|
|
7218
|
-
tag && /* @__PURE__ */
|
|
7219
|
-
icon && /* @__PURE__ */
|
|
7220
|
-
/* @__PURE__ */
|
|
7221
|
-
/* @__PURE__ */
|
|
7245
|
+
tag && /* @__PURE__ */ jsx145("span", { className: popoverTagVariants(), children: tag }),
|
|
7246
|
+
icon && /* @__PURE__ */ jsx145(Icon, { name: icon.name, size: "xs", thick: icon.thick, fill: icon.fill }),
|
|
7247
|
+
/* @__PURE__ */ jsx145("p", { className: popoverTitleVariants(), children: title }),
|
|
7248
|
+
/* @__PURE__ */ jsx145(
|
|
7222
7249
|
PopoverPrimitive.PopoverClose,
|
|
7223
7250
|
{
|
|
7224
7251
|
className: style_module_default5.closeButton,
|
|
7225
7252
|
onClick: () => {
|
|
7226
7253
|
onClose?.();
|
|
7227
7254
|
},
|
|
7228
|
-
children: /* @__PURE__ */
|
|
7255
|
+
children: /* @__PURE__ */ jsx145(Icon, { name: "close-fill", size: "s", fill: true, thick: true, type: "neutral-label-static-primary" })
|
|
7229
7256
|
}
|
|
7230
7257
|
)
|
|
7231
7258
|
] }),
|
|
7232
|
-
/* @__PURE__ */
|
|
7233
|
-
onConfirm && /* @__PURE__ */
|
|
7259
|
+
/* @__PURE__ */ jsx145("p", { className: popoverDescriptionVariants(), children: description }),
|
|
7260
|
+
onConfirm && /* @__PURE__ */ jsx145("div", { className: popoverFooterVariants(), children: /* @__PURE__ */ jsx145(
|
|
7234
7261
|
Button,
|
|
7235
7262
|
{
|
|
7236
7263
|
as: "text",
|
|
@@ -7242,7 +7269,7 @@ var PopoverContent = React.forwardRef(
|
|
|
7242
7269
|
}
|
|
7243
7270
|
) })
|
|
7244
7271
|
] }),
|
|
7245
|
-
/* @__PURE__ */
|
|
7272
|
+
/* @__PURE__ */ jsx145(PopoverPrimitive.Arrow, { asChild: true, children: /* @__PURE__ */ jsx145(PopoverAnchor, { className: clsx8(popoverAnchorVariants({ level })) }) })
|
|
7246
7273
|
]
|
|
7247
7274
|
}
|
|
7248
7275
|
) })
|
|
@@ -7267,14 +7294,14 @@ var style_module_default6 = {
|
|
|
7267
7294
|
// src/components/Tooltip/index.tsx
|
|
7268
7295
|
import { cva as cva5 } from "class-variance-authority";
|
|
7269
7296
|
import clsx9 from "clsx";
|
|
7270
|
-
import { jsx as
|
|
7297
|
+
import { jsx as jsx146 } from "react/jsx-runtime";
|
|
7271
7298
|
var DEFAULT_OFFSET2 = "medium";
|
|
7272
7299
|
var tooltipVariants = cva5([style_module_default6.tooltip, "lp-sys-typo-caption1-normal-medium"]);
|
|
7273
7300
|
var TooltipProvider = TooltipPrimitive.Provider;
|
|
7274
|
-
var TooltipRoot = /* @__PURE__ */ __name(({ children }) => /* @__PURE__ */
|
|
7275
|
-
var TooltipTrigger = /* @__PURE__ */ __name(({ by }) => /* @__PURE__ */
|
|
7301
|
+
var TooltipRoot = /* @__PURE__ */ __name(({ children }) => /* @__PURE__ */ jsx146(TooltipPrimitive.Root, { delayDuration: 0, children }), "TooltipRoot");
|
|
7302
|
+
var TooltipTrigger = /* @__PURE__ */ __name(({ by }) => /* @__PURE__ */ jsx146(TooltipPrimitive.Trigger, { asChild: true, children: by }), "TooltipTrigger");
|
|
7276
7303
|
var TooltipContent = forwardRef3(
|
|
7277
|
-
({ description, position = "top", className, offset = DEFAULT_OFFSET2, ...props }, ref) => /* @__PURE__ */
|
|
7304
|
+
({ description, position = "top", className, offset = DEFAULT_OFFSET2, ...props }, ref) => /* @__PURE__ */ jsx146(
|
|
7278
7305
|
TooltipPrimitive.Content,
|
|
7279
7306
|
{
|
|
7280
7307
|
ref,
|
|
@@ -7282,7 +7309,7 @@ var TooltipContent = forwardRef3(
|
|
|
7282
7309
|
sideOffset: offset === "medium" ? 4 : 8,
|
|
7283
7310
|
className: clsx9(tooltipVariants(), className),
|
|
7284
7311
|
...props,
|
|
7285
|
-
children: /* @__PURE__ */
|
|
7312
|
+
children: /* @__PURE__ */ jsx146("p", { className: style_module_default6.tooltipContent, children: description })
|
|
7286
7313
|
}
|
|
7287
7314
|
)
|
|
7288
7315
|
);
|
|
@@ -7314,7 +7341,7 @@ var style_module_default7 = {
|
|
|
7314
7341
|
|
|
7315
7342
|
// src/components/IconButton/index.tsx
|
|
7316
7343
|
import { Slot as Slot2 } from "@radix-ui/react-slot";
|
|
7317
|
-
import { jsx as
|
|
7344
|
+
import { jsx as jsx147 } from "react/jsx-runtime";
|
|
7318
7345
|
var iconButtonSizeIconSizeMap = {
|
|
7319
7346
|
l: "m",
|
|
7320
7347
|
m: "s",
|
|
@@ -7350,7 +7377,7 @@ var iconButtonVariants = cva6([style_module_default7.iconButton], {
|
|
|
7350
7377
|
var IconButton = forwardRef4(
|
|
7351
7378
|
({ asChild, level = "primary", name, thick = false, fill = false, size = "m", className, ...rest }, ref) => {
|
|
7352
7379
|
const Comp = asChild ? Slot2 : "button";
|
|
7353
|
-
return /* @__PURE__ */
|
|
7380
|
+
return /* @__PURE__ */ jsx147(Comp, { ...rest, className: clsx10(iconButtonVariants({ level, size }), className), ref, children: /* @__PURE__ */ jsx147(
|
|
7354
7381
|
Icon,
|
|
7355
7382
|
{
|
|
7356
7383
|
name,
|
|
@@ -7404,7 +7431,7 @@ var style_module_default9 = {
|
|
|
7404
7431
|
|
|
7405
7432
|
// src/components/_Label/index.tsx
|
|
7406
7433
|
import { cva as cva7 } from "class-variance-authority";
|
|
7407
|
-
import { jsx as
|
|
7434
|
+
import { jsx as jsx148, jsxs as jsxs102 } from "react/jsx-runtime";
|
|
7408
7435
|
var defaultLabelVariants = cva7(["lp-sys-typo-paragraph2-normal-medium", style_module_default9.label], {
|
|
7409
7436
|
variants: {
|
|
7410
7437
|
level: {
|
|
@@ -7446,7 +7473,7 @@ var Label = forwardRef5(
|
|
|
7446
7473
|
...props
|
|
7447
7474
|
}, ref) => {
|
|
7448
7475
|
return /* @__PURE__ */ jsxs102("div", { className: style_module_default9["label-wrapper"], children: [
|
|
7449
|
-
/* @__PURE__ */
|
|
7476
|
+
/* @__PURE__ */ jsx148(
|
|
7450
7477
|
LabelPrimitive.Root,
|
|
7451
7478
|
{
|
|
7452
7479
|
ref,
|
|
@@ -7454,23 +7481,23 @@ var Label = forwardRef5(
|
|
|
7454
7481
|
...props
|
|
7455
7482
|
}
|
|
7456
7483
|
),
|
|
7457
|
-
chip && /* @__PURE__ */
|
|
7484
|
+
chip && /* @__PURE__ */ jsx148(Caption, { size: 2, type: "normal", weight: "medium", className: style_module_default9["label-chip"], children: chip })
|
|
7458
7485
|
] });
|
|
7459
7486
|
}
|
|
7460
7487
|
);
|
|
7461
7488
|
|
|
7462
7489
|
// src/components/CheckBox/index.tsx
|
|
7463
|
-
import { Fragment as Fragment3, jsx as
|
|
7490
|
+
import { Fragment as Fragment3, jsx as jsx149, jsxs as jsxs103 } from "react/jsx-runtime";
|
|
7464
7491
|
var Checkbox = forwardRef6(
|
|
7465
7492
|
({ className, label, description, ...props }, ref) => {
|
|
7466
7493
|
const CheckboxWrapper = /* @__PURE__ */ __name(({ children }) => label ? /* @__PURE__ */ jsxs103(Label, { position: "right", htmlFor: props.id, children: [
|
|
7467
7494
|
/* @__PURE__ */ jsxs103("div", { className: style_module_default8["label-wrapper"], children: [
|
|
7468
7495
|
label,
|
|
7469
|
-
/* @__PURE__ */
|
|
7496
|
+
/* @__PURE__ */ jsx149(Paragraph, { className: style_module_default8.description, size: 3, type: "normal", weight: "regular", children: description })
|
|
7470
7497
|
] }),
|
|
7471
7498
|
children
|
|
7472
|
-
] }) : /* @__PURE__ */
|
|
7473
|
-
return /* @__PURE__ */
|
|
7499
|
+
] }) : /* @__PURE__ */ jsx149(Fragment3, { children }), "CheckboxWrapper");
|
|
7500
|
+
return /* @__PURE__ */ jsx149(CheckboxWrapper, { children: /* @__PURE__ */ jsx149(CheckboxPrimitive.Root, { className: clsx12(style_module_default8.checkbox, className), ref, ...props, children: /* @__PURE__ */ jsx149(CheckboxPrimitive.Indicator, { className: style_module_default8["checkbox-indicator"], children: /* @__PURE__ */ jsx149(Icon, { name: "check-mark", thick: true, size: "xs", type: "inverse-label-primary" }) }) }) });
|
|
7474
7501
|
}
|
|
7475
7502
|
);
|
|
7476
7503
|
|
|
@@ -7489,19 +7516,19 @@ var style_module_default10 = {
|
|
|
7489
7516
|
};
|
|
7490
7517
|
|
|
7491
7518
|
// src/components/Radio/index.tsx
|
|
7492
|
-
import { Fragment as Fragment4, jsx as
|
|
7493
|
-
var RadioIndicator = /* @__PURE__ */ __name(() => /* @__PURE__ */
|
|
7494
|
-
var RadioRoot = forwardRef7(({ className, ...props }, ref) => /* @__PURE__ */
|
|
7519
|
+
import { Fragment as Fragment4, jsx as jsx150, jsxs as jsxs104 } from "react/jsx-runtime";
|
|
7520
|
+
var RadioIndicator = /* @__PURE__ */ __name(() => /* @__PURE__ */ jsx150("svg", { xmlns: "http://www.w3.org/2000/svg", width: "10", height: "10", viewBox: "0 0 10 10", fill: "none", children: /* @__PURE__ */ jsx150("circle", { cx: "5", cy: "5", r: "5", fill: "#313133" }) }), "RadioIndicator");
|
|
7521
|
+
var RadioRoot = forwardRef7(({ className, ...props }, ref) => /* @__PURE__ */ jsx150(RadioGroupPrimitive.Root, { className: clsx13(style_module_default10.radio, className), ...props }));
|
|
7495
7522
|
var RadioItem = forwardRef7(
|
|
7496
7523
|
({ className, label, description, ...props }, ref) => {
|
|
7497
7524
|
const RadioItemWrapper = /* @__PURE__ */ __name(({ children }) => label ? /* @__PURE__ */ jsxs104(Label, { position: "right", htmlFor: props.id, children: [
|
|
7498
7525
|
/* @__PURE__ */ jsxs104("div", { className: style_module_default10["label-wrapper"], children: [
|
|
7499
7526
|
label,
|
|
7500
|
-
/* @__PURE__ */
|
|
7527
|
+
/* @__PURE__ */ jsx150(Paragraph, { className: style_module_default10.description, size: 3, type: "normal", weight: "regular", children: description })
|
|
7501
7528
|
] }),
|
|
7502
7529
|
children
|
|
7503
|
-
] }) : /* @__PURE__ */
|
|
7504
|
-
return /* @__PURE__ */
|
|
7530
|
+
] }) : /* @__PURE__ */ jsx150(Fragment4, { children }), "RadioItemWrapper");
|
|
7531
|
+
return /* @__PURE__ */ jsx150(RadioItemWrapper, { children: /* @__PURE__ */ jsx150(RadioGroupPrimitive.Item, { ref, className: clsx13(style_module_default10["radio-item"], className), ...props, children: /* @__PURE__ */ jsx150(RadioGroupPrimitive.Indicator, { className: style_module_default10.indicator, children: /* @__PURE__ */ jsx150(RadioIndicator, {}) }) }) });
|
|
7505
7532
|
}
|
|
7506
7533
|
);
|
|
7507
7534
|
var Radio = Object.assign(RadioRoot, {
|
|
@@ -7542,7 +7569,7 @@ var style_module_default11 = {
|
|
|
7542
7569
|
// src/components/Textfield/index.tsx
|
|
7543
7570
|
import { cva as cva8 } from "class-variance-authority";
|
|
7544
7571
|
import clsx14 from "clsx";
|
|
7545
|
-
import { Fragment as Fragment5, jsx as
|
|
7572
|
+
import { Fragment as Fragment5, jsx as jsx151, jsxs as jsxs105 } from "react/jsx-runtime";
|
|
7546
7573
|
var defaultTextfieldVariants = cva8(style_module_default11.textfield, {
|
|
7547
7574
|
variants: {
|
|
7548
7575
|
color: {
|
|
@@ -7602,7 +7629,7 @@ var Textfield = forwardRef8((props, ref) => {
|
|
|
7602
7629
|
}, "handleDeidentify");
|
|
7603
7630
|
useImperativeHandle(ref, () => inputRef.current);
|
|
7604
7631
|
return /* @__PURE__ */ jsxs105("div", { className: style_module_default11["textfield-container"], children: [
|
|
7605
|
-
/* @__PURE__ */
|
|
7632
|
+
/* @__PURE__ */ jsx151(
|
|
7606
7633
|
"div",
|
|
7607
7634
|
{
|
|
7608
7635
|
className: clsx14(defaultTextfieldVariants({ color }), {
|
|
@@ -7611,7 +7638,7 @@ var Textfield = forwardRef8((props, ref) => {
|
|
|
7611
7638
|
}),
|
|
7612
7639
|
onClick: handleTextfieldClick,
|
|
7613
7640
|
children: /* @__PURE__ */ jsxs105("div", { className: style_module_default11["input-wrapper"], children: [
|
|
7614
|
-
/* @__PURE__ */
|
|
7641
|
+
/* @__PURE__ */ jsx151(
|
|
7615
7642
|
"input",
|
|
7616
7643
|
{
|
|
7617
7644
|
className: clsx14(style_module_default11.input, {
|
|
@@ -7626,7 +7653,7 @@ var Textfield = forwardRef8((props, ref) => {
|
|
|
7626
7653
|
...rest
|
|
7627
7654
|
}
|
|
7628
7655
|
),
|
|
7629
|
-
/* @__PURE__ */
|
|
7656
|
+
/* @__PURE__ */ jsx151(
|
|
7630
7657
|
Label,
|
|
7631
7658
|
{
|
|
7632
7659
|
className: clsx14(style_module_default11.label, {
|
|
@@ -7639,7 +7666,7 @@ var Textfield = forwardRef8((props, ref) => {
|
|
|
7639
7666
|
}
|
|
7640
7667
|
),
|
|
7641
7668
|
/* @__PURE__ */ jsxs105("div", { className: style_module_default11["input-action-buttons"], children: [
|
|
7642
|
-
textfieldValue && !disabled && /* @__PURE__ */
|
|
7669
|
+
textfieldValue && !disabled && /* @__PURE__ */ jsx151(
|
|
7643
7670
|
IconButton,
|
|
7644
7671
|
{
|
|
7645
7672
|
tabIndex: -1,
|
|
@@ -7652,7 +7679,7 @@ var Textfield = forwardRef8((props, ref) => {
|
|
|
7652
7679
|
onClick: handleClear
|
|
7653
7680
|
}
|
|
7654
7681
|
),
|
|
7655
|
-
isPassword && !disabled && /* @__PURE__ */
|
|
7682
|
+
isPassword && !disabled && /* @__PURE__ */ jsx151(
|
|
7656
7683
|
IconButton,
|
|
7657
7684
|
{
|
|
7658
7685
|
tabIndex: -1,
|
|
@@ -7665,15 +7692,15 @@ var Textfield = forwardRef8((props, ref) => {
|
|
|
7665
7692
|
onClick: handleDeidentify
|
|
7666
7693
|
}
|
|
7667
7694
|
),
|
|
7668
|
-
button && /* @__PURE__ */
|
|
7695
|
+
button && /* @__PURE__ */ jsx151(Button, { size: "m", type: "button", onClick: button.onClick, children: button.text })
|
|
7669
7696
|
] })
|
|
7670
7697
|
] })
|
|
7671
7698
|
}
|
|
7672
7699
|
),
|
|
7673
7700
|
displayFooter && /* @__PURE__ */ jsxs105("div", { className: style_module_default11.footer, children: [
|
|
7674
|
-
/* @__PURE__ */
|
|
7675
|
-
/* @__PURE__ */
|
|
7676
|
-
/* @__PURE__ */
|
|
7701
|
+
/* @__PURE__ */ jsx151("div", { className: style_module_default11["error-wrapper"], children: error && /* @__PURE__ */ jsxs105(Fragment5, { children: [
|
|
7702
|
+
/* @__PURE__ */ jsx151(Icon, { name: "exclamationmark-fill", fill: true, thick: true, size: "xs", type: "function-label-negative" }),
|
|
7703
|
+
/* @__PURE__ */ jsx151(Caption, { size: 3, type: "normal", weight: "regular", className: style_module_default11["error-message"], children: error })
|
|
7677
7704
|
] }) }),
|
|
7678
7705
|
maxCharacter && /* @__PURE__ */ jsxs105(Caption, { className: style_module_default11.character, size: 3, type: "normal", weight: "regular", children: [
|
|
7679
7706
|
isControlled ? controlledValue.length : value.length,
|
|
@@ -7702,29 +7729,29 @@ var style_module_default12 = {
|
|
|
7702
7729
|
|
|
7703
7730
|
// src/components/Slider/index.tsx
|
|
7704
7731
|
import * as SliderPrimitive from "@radix-ui/react-slider";
|
|
7705
|
-
import { Fragment as Fragment6, jsx as
|
|
7732
|
+
import { Fragment as Fragment6, jsx as jsx152, jsxs as jsxs106 } from "react/jsx-runtime";
|
|
7706
7733
|
var SliderRoot = forwardRef9((props, ref) => {
|
|
7707
7734
|
const { label, tooltip, rangeLeft, rangeRight, min, max, step = 50, ...rest } = props;
|
|
7708
|
-
return /* @__PURE__ */
|
|
7709
|
-
/* @__PURE__ */
|
|
7735
|
+
return /* @__PURE__ */ jsx152(Fragment6, { children: /* @__PURE__ */ jsxs106(Tooltip.Provider, { children: [
|
|
7736
|
+
/* @__PURE__ */ jsx152(Label, { level: "secondary", size: "m", offset: "high", className: style_module_default12.label, children: label }),
|
|
7710
7737
|
/* @__PURE__ */ jsxs106("div", { className: style_module_default12["slider-wrapper"], children: [
|
|
7711
7738
|
/* @__PURE__ */ jsxs106("div", { className: style_module_default12["slider-option-wrapper"], children: [
|
|
7712
|
-
/* @__PURE__ */
|
|
7713
|
-
/* @__PURE__ */
|
|
7739
|
+
/* @__PURE__ */ jsx152(Icon, { name: rangeLeft.icon, size: "xs" }),
|
|
7740
|
+
/* @__PURE__ */ jsx152(Caption, { size: 1, type: "normal", weight: "medium", className: style_module_default12.optionText, children: rangeLeft.text })
|
|
7714
7741
|
] }),
|
|
7715
7742
|
/* @__PURE__ */ jsxs106(SliderPrimitive.Root, { ...rest, step, className: style_module_default12["slider-root"], ref, children: [
|
|
7716
7743
|
/* @__PURE__ */ jsxs106(SliderPrimitive.Track, { className: style_module_default12["slider-track"], children: [
|
|
7717
|
-
Array.from({ length: 100 / step + 1 }).map((_, index) => /* @__PURE__ */
|
|
7718
|
-
/* @__PURE__ */
|
|
7744
|
+
Array.from({ length: 100 / step + 1 }).map((_, index) => /* @__PURE__ */ jsx152("span", { className: style_module_default12["slider-step"] }, index)),
|
|
7745
|
+
/* @__PURE__ */ jsx152(SliderPrimitive.Range, { className: style_module_default12["slider-range"] })
|
|
7719
7746
|
] }),
|
|
7720
7747
|
/* @__PURE__ */ jsxs106(Tooltip, { children: [
|
|
7721
|
-
/* @__PURE__ */
|
|
7722
|
-
/* @__PURE__ */
|
|
7748
|
+
/* @__PURE__ */ jsx152(Tooltip.Trigger, { by: /* @__PURE__ */ jsx152(SliderPrimitive.Thumb, { className: style_module_default12["slider-thumb"] }) }),
|
|
7749
|
+
/* @__PURE__ */ jsx152(Tooltip.Content, { description: tooltip })
|
|
7723
7750
|
] })
|
|
7724
7751
|
] }),
|
|
7725
7752
|
/* @__PURE__ */ jsxs106("div", { className: style_module_default12["slider-option-wrapper"], children: [
|
|
7726
|
-
/* @__PURE__ */
|
|
7727
|
-
/* @__PURE__ */
|
|
7753
|
+
/* @__PURE__ */ jsx152(Icon, { name: rangeRight.icon, size: "xs" }),
|
|
7754
|
+
/* @__PURE__ */ jsx152(Caption, { size: 1, type: "normal", weight: "medium", className: style_module_default12.optionText, children: rangeRight.text })
|
|
7728
7755
|
] })
|
|
7729
7756
|
] })
|
|
7730
7757
|
] }) });
|
|
@@ -7779,7 +7806,7 @@ var useMediaQuery = /* @__PURE__ */ __name((query) => {
|
|
|
7779
7806
|
}, "useMediaQuery");
|
|
7780
7807
|
|
|
7781
7808
|
// src/components/Select/index.tsx
|
|
7782
|
-
import { Fragment as Fragment7, jsx as
|
|
7809
|
+
import { Fragment as Fragment7, jsx as jsx153, jsxs as jsxs107 } from "react/jsx-runtime";
|
|
7783
7810
|
var SelectRoot = forwardRef10((props, ref) => {
|
|
7784
7811
|
const {
|
|
7785
7812
|
id,
|
|
@@ -7804,7 +7831,7 @@ var SelectRoot = forwardRef10((props, ref) => {
|
|
|
7804
7831
|
setIsOpen(open);
|
|
7805
7832
|
}, [open]);
|
|
7806
7833
|
return /* @__PURE__ */ jsxs107(Fragment7, { children: [
|
|
7807
|
-
/* @__PURE__ */
|
|
7834
|
+
/* @__PURE__ */ jsx153(Label, { className: style_module_default13["select-label"], level: "secondary", size: "m", offset: "low", htmlFor: id, chip: labelChip, children: label }),
|
|
7808
7835
|
/* @__PURE__ */ jsxs107(
|
|
7809
7836
|
SelectPrimitive.Root,
|
|
7810
7837
|
{
|
|
@@ -7816,11 +7843,11 @@ var SelectRoot = forwardRef10((props, ref) => {
|
|
|
7816
7843
|
},
|
|
7817
7844
|
children: [
|
|
7818
7845
|
/* @__PURE__ */ jsxs107(SelectPrimitive.Trigger, { className: style_module_default13.trigger, ref, id, children: [
|
|
7819
|
-
/* @__PURE__ */
|
|
7820
|
-
/* @__PURE__ */
|
|
7846
|
+
/* @__PURE__ */ jsx153(SelectPrimitive.Value, { className: style_module_default13.placeholder, placeholder }),
|
|
7847
|
+
/* @__PURE__ */ jsx153(SelectPrimitive.Icon, { className: style_module_default13.openIcon, children: /* @__PURE__ */ jsx153(Icon, { name: "arrow-drop-down", fill: true, thick: true, size: "xs" }) })
|
|
7821
7848
|
] }),
|
|
7822
|
-
/* @__PURE__ */
|
|
7823
|
-
/* @__PURE__ */
|
|
7849
|
+
/* @__PURE__ */ jsx153(SelectPrimitive.Portal, { children: isMobile ? /* @__PURE__ */ jsxs107(Fragment7, { children: [
|
|
7850
|
+
/* @__PURE__ */ jsx153(
|
|
7824
7851
|
SelectPrimitive.Content,
|
|
7825
7852
|
{
|
|
7826
7853
|
className: clsx15(style_module_default13["mobile-content"], {
|
|
@@ -7831,9 +7858,9 @@ var SelectRoot = forwardRef10((props, ref) => {
|
|
|
7831
7858
|
}),
|
|
7832
7859
|
avoidCollisions: false,
|
|
7833
7860
|
children: /* @__PURE__ */ jsxs107(ScrollArea.Root, { className: style_module_default13.scrollAreaRoot, type: "scroll", children: [
|
|
7834
|
-
/* @__PURE__ */
|
|
7861
|
+
/* @__PURE__ */ jsx153(SelectPrimitive.Viewport, { asChild: true, children: /* @__PURE__ */ jsxs107(SelectPrimitive.Group, { children: [
|
|
7835
7862
|
/* @__PURE__ */ jsxs107("div", { className: style_module_default13.header, children: [
|
|
7836
|
-
/* @__PURE__ */
|
|
7863
|
+
/* @__PURE__ */ jsx153(
|
|
7837
7864
|
IconButton,
|
|
7838
7865
|
{
|
|
7839
7866
|
name: "arrow-back",
|
|
@@ -7847,8 +7874,8 @@ var SelectRoot = forwardRef10((props, ref) => {
|
|
|
7847
7874
|
}
|
|
7848
7875
|
}
|
|
7849
7876
|
),
|
|
7850
|
-
/* @__PURE__ */
|
|
7851
|
-
/* @__PURE__ */
|
|
7877
|
+
/* @__PURE__ */ jsx153(SelectPrimitive.Label, { asChild: true, children: /* @__PURE__ */ jsx153(Label, { className: style_module_default13["mobile-label"], level: "primary", size: "m", offset: "low", children: listLabel }) }),
|
|
7878
|
+
/* @__PURE__ */ jsx153(
|
|
7852
7879
|
IconButton,
|
|
7853
7880
|
{
|
|
7854
7881
|
name: "close",
|
|
@@ -7863,14 +7890,14 @@ var SelectRoot = forwardRef10((props, ref) => {
|
|
|
7863
7890
|
}
|
|
7864
7891
|
)
|
|
7865
7892
|
] }),
|
|
7866
|
-
/* @__PURE__ */
|
|
7893
|
+
/* @__PURE__ */ jsx153(ScrollArea.Viewport, { className: style_module_default13["mobile-viewport"], children })
|
|
7867
7894
|
] }) }),
|
|
7868
|
-
/* @__PURE__ */
|
|
7895
|
+
/* @__PURE__ */ jsx153(ScrollArea.Scrollbar, { className: style_module_default13.scrollAreaScrollbar, orientation: "vertical", children: /* @__PURE__ */ jsx153(ScrollArea.Thumb, { className: style_module_default13.scrollAreaThumb }) })
|
|
7869
7896
|
] })
|
|
7870
7897
|
}
|
|
7871
7898
|
),
|
|
7872
|
-
isOverlay && /* @__PURE__ */
|
|
7873
|
-
] }) : /* @__PURE__ */
|
|
7899
|
+
isOverlay && /* @__PURE__ */ jsx153("div", { className: style_module_default13["mobile-overlay"] })
|
|
7900
|
+
] }) : /* @__PURE__ */ jsx153(
|
|
7874
7901
|
SelectPrimitive.Content,
|
|
7875
7902
|
{
|
|
7876
7903
|
className: style_module_default13["desktop-content"],
|
|
@@ -7879,11 +7906,11 @@ var SelectRoot = forwardRef10((props, ref) => {
|
|
|
7879
7906
|
sideOffset,
|
|
7880
7907
|
avoidCollisions: false,
|
|
7881
7908
|
children: /* @__PURE__ */ jsxs107(ScrollArea.Root, { className: style_module_default13.scrollAreaRoot, type: "scroll", children: [
|
|
7882
|
-
/* @__PURE__ */
|
|
7883
|
-
/* @__PURE__ */
|
|
7909
|
+
/* @__PURE__ */ jsx153(SelectPrimitive.Viewport, { asChild: true, children: /* @__PURE__ */ jsx153(ScrollArea.Viewport, { className: style_module_default13.scrollAreaViewport, children: /* @__PURE__ */ jsxs107(SelectPrimitive.Group, { children: [
|
|
7910
|
+
/* @__PURE__ */ jsx153(SelectPrimitive.Label, { asChild: true, children: /* @__PURE__ */ jsx153(Label, { className: style_module_default13["desktop-label"], level: "secondary", size: "m", offset: "low", children: listLabel }) }),
|
|
7884
7911
|
children
|
|
7885
7912
|
] }) }) }),
|
|
7886
|
-
/* @__PURE__ */
|
|
7913
|
+
/* @__PURE__ */ jsx153(ScrollArea.Scrollbar, { className: style_module_default13.scrollAreaScrollbar, orientation: "vertical", children: /* @__PURE__ */ jsx153(ScrollArea.Thumb, { className: style_module_default13.scrollAreaThumb }) })
|
|
7887
7914
|
] })
|
|
7888
7915
|
}
|
|
7889
7916
|
) })
|
|
@@ -7892,11 +7919,23 @@ var SelectRoot = forwardRef10((props, ref) => {
|
|
|
7892
7919
|
)
|
|
7893
7920
|
] });
|
|
7894
7921
|
});
|
|
7895
|
-
var SelectItem = /* @__PURE__ */ __name(({ value, disabled, icon }) => /* @__PURE__ */ jsxs107(
|
|
7896
|
-
|
|
7897
|
-
|
|
7898
|
-
|
|
7899
|
-
|
|
7922
|
+
var SelectItem = /* @__PURE__ */ __name(({ value, disabled, icon, onClick }) => /* @__PURE__ */ jsxs107(
|
|
7923
|
+
SelectPrimitive.Item,
|
|
7924
|
+
{
|
|
7925
|
+
className: style_module_default13.item,
|
|
7926
|
+
value,
|
|
7927
|
+
disabled,
|
|
7928
|
+
onClick: (e) => {
|
|
7929
|
+
e.stopPropagation();
|
|
7930
|
+
onClick?.();
|
|
7931
|
+
},
|
|
7932
|
+
children: [
|
|
7933
|
+
/* @__PURE__ */ jsx153(SelectPrimitive.ItemText, { className: "item", children: /* @__PURE__ */ jsx153(Paragraph, { size: 3, type: "normal", weight: "medium", children: value }) }),
|
|
7934
|
+
icon && /* @__PURE__ */ jsx153(SelectPrimitive.Icon, { className: style_module_default13.icon, children: /* @__PURE__ */ jsx153(Icon, { size: "xs", ...icon }) }),
|
|
7935
|
+
/* @__PURE__ */ jsx153(SelectPrimitive.ItemIndicator, { className: style_module_default13.itemIndicator, children: /* @__PURE__ */ jsx153(Icon, { fill: false, thick: true, size: "xs", name: "check-mark", type: "brand-label-primary" }) })
|
|
7936
|
+
]
|
|
7937
|
+
}
|
|
7938
|
+
), "SelectItem");
|
|
7900
7939
|
var Select = Object.assign(SelectRoot, {
|
|
7901
7940
|
Item: SelectItem
|
|
7902
7941
|
});
|