@liner-fe/prism 2.0.0 → 2.1.1
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-m-redo.d.ts +8 -0
- package/lib/index.mjs +140 -121
- 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
|
@@ -1600,15 +1600,7 @@ var ICFolder = /* @__PURE__ */ __name((props) => {
|
|
|
1600
1600
|
) });
|
|
1601
1601
|
}
|
|
1602
1602
|
if (fill) {
|
|
1603
|
-
return /* @__PURE__ */ jsx44("svg", { ...props, width: size, height: size, viewBox: "0 0 48 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx44(
|
|
1604
|
-
"path",
|
|
1605
|
-
{
|
|
1606
|
-
d: "M22.4 11.7L23 12.5H24H41.5V39H6.5L6.5 8.5L20 8.5L22.4 11.7Z",
|
|
1607
|
-
fill: color,
|
|
1608
|
-
stroke: "#1E1E1F",
|
|
1609
|
-
"stroke-width": "4"
|
|
1610
|
-
}
|
|
1611
|
-
) });
|
|
1603
|
+
return /* @__PURE__ */ jsx44("svg", { ...props, width: size, height: size, viewBox: "0 0 48 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx44("path", { d: "M22.4 11.7L23 12.5H24H41.5V39H6.5L6.5 8.5L20 8.5L22.4 11.7Z", fill: color }) });
|
|
1612
1604
|
}
|
|
1613
1605
|
return /* @__PURE__ */ jsx44("svg", { ...props, width: size, height: size, viewBox: "0 0 48 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx44(
|
|
1614
1606
|
"path",
|
|
@@ -7238,6 +7230,32 @@ var ICLpPriIconMUndo = /* @__PURE__ */ __name((props) => {
|
|
|
7238
7230
|
) });
|
|
7239
7231
|
}, "ICLpPriIconMUndo");
|
|
7240
7232
|
|
|
7233
|
+
// src/assets/lp-pri-icon-m-redo.tsx
|
|
7234
|
+
import { jsx as jsx157 } from "react/jsx-runtime";
|
|
7235
|
+
var ICLpPriIconMRedo = /* @__PURE__ */ __name((props) => {
|
|
7236
|
+
const { thick = false, fill = false, size = 32, color = "#1E1E1F" } = props;
|
|
7237
|
+
if (thick) {
|
|
7238
|
+
return /* @__PURE__ */ jsx157("svg", { ...props, width: size, height: size, viewBox: "0 0 48 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx157(
|
|
7239
|
+
"path",
|
|
7240
|
+
{
|
|
7241
|
+
fillRule: "evenodd",
|
|
7242
|
+
clipRule: "evenodd",
|
|
7243
|
+
d: "M36.1723 16.414H17.5C10.5964 16.414 5 22.0105 5 28.914C5 35.8176 10.5964 41.414 17.5 41.414H38.9683V37.414H17.5C12.8056 37.414 9 33.6084 9 28.914C9 24.2196 12.8056 20.414 17.5 20.414H36.1743L29.5867 27.0016L32.4152 29.83L41.3743 20.8709C42.7307 19.5145 42.7307 17.3155 41.3743 15.9592L32.4152 7L29.5867 9.82843L36.1723 16.414Z",
|
|
7244
|
+
fill: color
|
|
7245
|
+
}
|
|
7246
|
+
) });
|
|
7247
|
+
}
|
|
7248
|
+
return /* @__PURE__ */ jsx157("svg", { ...props, width: size, height: size, viewBox: "0 0 48 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx157(
|
|
7249
|
+
"path",
|
|
7250
|
+
{
|
|
7251
|
+
fillRule: "evenodd",
|
|
7252
|
+
clipRule: "evenodd",
|
|
7253
|
+
d: "M37.8794 16.5604H18C11.3726 16.5604 6 21.933 6 28.5604C6 35.1879 11.3726 40.5604 18 40.5604H38.9683V37.5604H18C13.0294 37.5604 9 33.531 9 28.5604C9 23.5899 13.0294 19.5604 18 19.5604H37.8815L30.4403 27.0016L32.5616 29.1229L41.5208 20.1638C42.6819 19.0027 42.6819 17.1202 41.5208 15.9592L32.5616 7L30.4403 9.12132L37.8794 16.5604Z",
|
|
7254
|
+
fill: color
|
|
7255
|
+
}
|
|
7256
|
+
) });
|
|
7257
|
+
}, "ICLpPriIconMRedo");
|
|
7258
|
+
|
|
7241
7259
|
// src/utils/icon.ts
|
|
7242
7260
|
var iconMap = {
|
|
7243
7261
|
"close-fill": ICCloseFill,
|
|
@@ -7395,7 +7413,8 @@ var iconMap = {
|
|
|
7395
7413
|
"lp-pri-icon-m-folder-open-share": ICLpPriIconMFolderOpenShare,
|
|
7396
7414
|
"lp-pri-icon-m-folder-share": ICLpPriIconMFolderShare,
|
|
7397
7415
|
"lp-pri-icon-m-essay": ICLpPriIconMEssay,
|
|
7398
|
-
"lp-pri-icon-m-undo": ICLpPriIconMUndo
|
|
7416
|
+
"lp-pri-icon-m-undo": ICLpPriIconMUndo,
|
|
7417
|
+
"lp-pri-icon-m-redo": ICLpPriIconMRedo
|
|
7399
7418
|
};
|
|
7400
7419
|
|
|
7401
7420
|
// src/utils/object.ts
|
|
@@ -7501,7 +7520,7 @@ var style_module_default2 = {
|
|
|
7501
7520
|
};
|
|
7502
7521
|
|
|
7503
7522
|
// src/components/Icon/index.tsx
|
|
7504
|
-
import { jsx as
|
|
7523
|
+
import { jsx as jsx158 } from "react/jsx-runtime";
|
|
7505
7524
|
var iconSizeMap = {
|
|
7506
7525
|
xs: 16,
|
|
7507
7526
|
s: 20,
|
|
@@ -7554,7 +7573,7 @@ var Icon = /* @__PURE__ */ __name((props) => {
|
|
|
7554
7573
|
} = props;
|
|
7555
7574
|
const IconComponent = getIconComponent(name, iconMap);
|
|
7556
7575
|
const iconSize = iconSizeMap[size];
|
|
7557
|
-
return /* @__PURE__ */
|
|
7576
|
+
return /* @__PURE__ */ jsx158(
|
|
7558
7577
|
IconComponent,
|
|
7559
7578
|
{
|
|
7560
7579
|
...rest,
|
|
@@ -7567,7 +7586,7 @@ var Icon = /* @__PURE__ */ __name((props) => {
|
|
|
7567
7586
|
}, "Icon");
|
|
7568
7587
|
|
|
7569
7588
|
// src/components/Button/index.tsx
|
|
7570
|
-
import { jsx as
|
|
7589
|
+
import { jsx as jsx159, jsxs as jsxs110 } from "react/jsx-runtime";
|
|
7571
7590
|
var buttonIconSizeMap = {
|
|
7572
7591
|
cta: "m",
|
|
7573
7592
|
l: "s",
|
|
@@ -7655,23 +7674,23 @@ var DefaultButton = forwardRef(
|
|
|
7655
7674
|
ref
|
|
7656
7675
|
},
|
|
7657
7676
|
/* @__PURE__ */ jsxs110("span", { className: clsx2(defaultButtonChildrenVariants({ size })), children: [
|
|
7658
|
-
!!leftIcon && /* @__PURE__ */
|
|
7659
|
-
/* @__PURE__ */
|
|
7660
|
-
!!rightIcon && /* @__PURE__ */
|
|
7677
|
+
!!leftIcon && /* @__PURE__ */ jsx159(Icon, { ...leftIcon, size: buttonIconSizeMap[size], thick: buttonSizeIconThickMap[size] }),
|
|
7678
|
+
/* @__PURE__ */ jsx159("p", { className: style_module_default.content, children: newChildren }),
|
|
7679
|
+
!!rightIcon && /* @__PURE__ */ jsx159(Icon, { ...rightIcon, size: buttonIconSizeMap[size], thick: buttonSizeIconThickMap[size] })
|
|
7661
7680
|
] })
|
|
7662
7681
|
);
|
|
7663
7682
|
return ParentClone;
|
|
7664
7683
|
}
|
|
7665
|
-
return /* @__PURE__ */
|
|
7684
|
+
return /* @__PURE__ */ jsx159(
|
|
7666
7685
|
"button",
|
|
7667
7686
|
{
|
|
7668
7687
|
...rest,
|
|
7669
7688
|
className: clsx2(defaultButtonVariants({ level, fill, align, size, width }), className),
|
|
7670
7689
|
ref,
|
|
7671
7690
|
children: /* @__PURE__ */ jsxs110("span", { className: clsx2(defaultButtonChildrenVariants({ size })), children: [
|
|
7672
|
-
!!leftIcon && /* @__PURE__ */
|
|
7673
|
-
/* @__PURE__ */
|
|
7674
|
-
!!rightIcon && /* @__PURE__ */
|
|
7691
|
+
!!leftIcon && /* @__PURE__ */ jsx159(Icon, { ...leftIcon, size: buttonIconSizeMap[size], thick: buttonSizeIconThickMap[size] }),
|
|
7692
|
+
/* @__PURE__ */ jsx159("p", { className: style_module_default.content, children }),
|
|
7693
|
+
!!rightIcon && /* @__PURE__ */ jsx159(Icon, { ...rightIcon, size: buttonIconSizeMap[size], thick: buttonSizeIconThickMap[size] })
|
|
7675
7694
|
] })
|
|
7676
7695
|
}
|
|
7677
7696
|
);
|
|
@@ -7680,7 +7699,7 @@ var DefaultButton = forwardRef(
|
|
|
7680
7699
|
var TextButton = forwardRef(
|
|
7681
7700
|
({ level = "inverse-primary", asChild = false, className, ...rest }, ref) => {
|
|
7682
7701
|
const Component = asChild ? Slot : "button";
|
|
7683
|
-
return /* @__PURE__ */
|
|
7702
|
+
return /* @__PURE__ */ jsx159(Component, { ...rest, className: clsx2(textButtonVariants({ level }), className), ref });
|
|
7684
7703
|
}
|
|
7685
7704
|
);
|
|
7686
7705
|
var Button = forwardRef((props, ref) => {
|
|
@@ -7688,9 +7707,9 @@ var Button = forwardRef((props, ref) => {
|
|
|
7688
7707
|
switch (rest.as) {
|
|
7689
7708
|
case "default":
|
|
7690
7709
|
case void 0:
|
|
7691
|
-
return /* @__PURE__ */
|
|
7710
|
+
return /* @__PURE__ */ jsx159(DefaultButton, { ...rest, ref });
|
|
7692
7711
|
case "text":
|
|
7693
|
-
return /* @__PURE__ */
|
|
7712
|
+
return /* @__PURE__ */ jsx159(TextButton, { ...rest, ref });
|
|
7694
7713
|
}
|
|
7695
7714
|
});
|
|
7696
7715
|
|
|
@@ -7788,10 +7807,10 @@ var colorVariants = cva3(style_module_default4.typography, {
|
|
|
7788
7807
|
});
|
|
7789
7808
|
|
|
7790
7809
|
// src/components/Typography/Set/Paragraph.tsx
|
|
7791
|
-
import { jsx as
|
|
7810
|
+
import { jsx as jsx160 } from "react/jsx-runtime";
|
|
7792
7811
|
var Paragraph = forwardRef2(
|
|
7793
7812
|
({ size, type, weight, className, children, color = "neutral-label-primary", ...rest }, ref) => {
|
|
7794
|
-
return /* @__PURE__ */
|
|
7813
|
+
return /* @__PURE__ */ jsx160(
|
|
7795
7814
|
"p",
|
|
7796
7815
|
{
|
|
7797
7816
|
...rest,
|
|
@@ -8281,13 +8300,13 @@ var loading_default = {
|
|
|
8281
8300
|
};
|
|
8282
8301
|
|
|
8283
8302
|
// src/components/Toast/index.tsx
|
|
8284
|
-
import { jsx as
|
|
8303
|
+
import { jsx as jsx161, jsxs as jsxs111 } from "react/jsx-runtime";
|
|
8285
8304
|
import { createElement } from "react";
|
|
8286
8305
|
var Toaster = /* @__PURE__ */ __name(() => {
|
|
8287
8306
|
const { list } = useRecoilValue(toastAtom);
|
|
8288
8307
|
return /* @__PURE__ */ jsxs111(Provider, { children: [
|
|
8289
8308
|
list.map((props) => /* @__PURE__ */ createElement(SingleToast, { ...props, key: props.toastId })),
|
|
8290
|
-
/* @__PURE__ */
|
|
8309
|
+
/* @__PURE__ */ jsx161(Viewport, { className: style_module_default3.ToastViewport })
|
|
8291
8310
|
] });
|
|
8292
8311
|
}, "Toaster");
|
|
8293
8312
|
var SingleToast = /* @__PURE__ */ __name((props) => {
|
|
@@ -8333,12 +8352,12 @@ var SingleToast = /* @__PURE__ */ __name((props) => {
|
|
|
8333
8352
|
}, [isLoading]);
|
|
8334
8353
|
const renderIcon = /* @__PURE__ */ __name(() => {
|
|
8335
8354
|
if (!icon) return null;
|
|
8336
|
-
return /* @__PURE__ */
|
|
8355
|
+
return /* @__PURE__ */ jsx161("i", { className: style_module_default3.Icon, children: /* @__PURE__ */ jsx161(Icon, { ...icon, size: "m" }) });
|
|
8337
8356
|
}, "renderIcon");
|
|
8338
8357
|
return /* @__PURE__ */ jsxs111(Root, { className: style_module_default3.ToastRoot, open: isOpen, ...props, children: [
|
|
8339
|
-
isLoading && !toastSuccess.current ? /* @__PURE__ */
|
|
8358
|
+
isLoading && !toastSuccess.current ? /* @__PURE__ */ jsx161("div", { ref: lottieRef, style: { width: "24px", height: "24px" } }) : renderIcon(),
|
|
8340
8359
|
/* @__PURE__ */ jsxs111(Title, { className: style_module_default3.ToastTitle, children: [
|
|
8341
|
-
/* @__PURE__ */
|
|
8360
|
+
/* @__PURE__ */ jsx161(
|
|
8342
8361
|
Paragraph,
|
|
8343
8362
|
{
|
|
8344
8363
|
className: style_module_default3.TitleText,
|
|
@@ -8349,7 +8368,7 @@ var SingleToast = /* @__PURE__ */ __name((props) => {
|
|
|
8349
8368
|
children: message
|
|
8350
8369
|
}
|
|
8351
8370
|
),
|
|
8352
|
-
button && /* @__PURE__ */
|
|
8371
|
+
button && /* @__PURE__ */ jsx161(
|
|
8353
8372
|
Button,
|
|
8354
8373
|
{
|
|
8355
8374
|
onClick: () => {
|
|
@@ -8373,11 +8392,11 @@ var SingleToast = /* @__PURE__ */ __name((props) => {
|
|
|
8373
8392
|
// src/components/Typography/Set/Heading.tsx
|
|
8374
8393
|
import { forwardRef as forwardRef3 } from "react";
|
|
8375
8394
|
import clsx4 from "clsx";
|
|
8376
|
-
import { jsx as
|
|
8395
|
+
import { jsx as jsx162 } from "react/jsx-runtime";
|
|
8377
8396
|
var Heading = forwardRef3(
|
|
8378
8397
|
({ size, children, type, className, color = "neutral-label-primary", ...rest }, ref) => {
|
|
8379
8398
|
const Element = `h${size}`;
|
|
8380
|
-
return /* @__PURE__ */
|
|
8399
|
+
return /* @__PURE__ */ jsx162(
|
|
8381
8400
|
Element,
|
|
8382
8401
|
{
|
|
8383
8402
|
...rest,
|
|
@@ -8392,10 +8411,10 @@ var Heading = forwardRef3(
|
|
|
8392
8411
|
// src/components/Typography/Set/Caption.tsx
|
|
8393
8412
|
import clsx5 from "clsx";
|
|
8394
8413
|
import { forwardRef as forwardRef4 } from "react";
|
|
8395
|
-
import { jsx as
|
|
8414
|
+
import { jsx as jsx163 } from "react/jsx-runtime";
|
|
8396
8415
|
var Caption = forwardRef4(
|
|
8397
8416
|
({ children, size, weight, type, className, color = "neutral-label-primary", ...rest }, ref) => {
|
|
8398
|
-
return /* @__PURE__ */
|
|
8417
|
+
return /* @__PURE__ */ jsx163(
|
|
8399
8418
|
"p",
|
|
8400
8419
|
{
|
|
8401
8420
|
...rest,
|
|
@@ -8415,10 +8434,10 @@ var Caption = forwardRef4(
|
|
|
8415
8434
|
// src/components/Typography/Set/Title.tsx
|
|
8416
8435
|
import { forwardRef as forwardRef5 } from "react";
|
|
8417
8436
|
import clsx6 from "clsx";
|
|
8418
|
-
import { jsx as
|
|
8437
|
+
import { jsx as jsx164 } from "react/jsx-runtime";
|
|
8419
8438
|
var Title2 = forwardRef5(
|
|
8420
8439
|
({ weight, size, type, className, children, color = "neutral-label-primary", ...rest }, ref) => {
|
|
8421
|
-
return /* @__PURE__ */
|
|
8440
|
+
return /* @__PURE__ */ jsx164(
|
|
8422
8441
|
"p",
|
|
8423
8442
|
{
|
|
8424
8443
|
...rest,
|
|
@@ -8433,10 +8452,10 @@ var Title2 = forwardRef5(
|
|
|
8433
8452
|
// src/components/Typography/Set/Display.tsx
|
|
8434
8453
|
import clsx7 from "clsx";
|
|
8435
8454
|
import { forwardRef as forwardRef6 } from "react";
|
|
8436
|
-
import { jsx as
|
|
8455
|
+
import { jsx as jsx165 } from "react/jsx-runtime";
|
|
8437
8456
|
var Display = forwardRef6(
|
|
8438
8457
|
({ size, type, weight, className, children, color = "neutral-label-primary", ...rest }, ref) => {
|
|
8439
|
-
return /* @__PURE__ */
|
|
8458
|
+
return /* @__PURE__ */ jsx165(
|
|
8440
8459
|
"p",
|
|
8441
8460
|
{
|
|
8442
8461
|
ref,
|
|
@@ -8469,7 +8488,7 @@ var rootMediaStyle = AppMedia.createMediaStyle();
|
|
|
8469
8488
|
var { MediaContextProvider, Media } = AppMedia;
|
|
8470
8489
|
|
|
8471
8490
|
// src/components/Typography/Responsive/index.tsx
|
|
8472
|
-
import { Fragment as Fragment3, jsx as
|
|
8491
|
+
import { Fragment as Fragment3, jsx as jsx166 } from "react/jsx-runtime";
|
|
8473
8492
|
import { createElement as createElement2 } from "react";
|
|
8474
8493
|
var TypographyImpl = /* @__PURE__ */ __name(({ level, text, ...rest }) => {
|
|
8475
8494
|
const commonProps = {
|
|
@@ -8478,15 +8497,15 @@ var TypographyImpl = /* @__PURE__ */ __name(({ level, text, ...rest }) => {
|
|
|
8478
8497
|
};
|
|
8479
8498
|
switch (level) {
|
|
8480
8499
|
case "caption":
|
|
8481
|
-
return /* @__PURE__ */
|
|
8500
|
+
return /* @__PURE__ */ jsx166(Caption, { ...commonProps });
|
|
8482
8501
|
case "display":
|
|
8483
|
-
return /* @__PURE__ */
|
|
8502
|
+
return /* @__PURE__ */ jsx166(Display, { ...commonProps });
|
|
8484
8503
|
case "heading":
|
|
8485
|
-
return /* @__PURE__ */
|
|
8504
|
+
return /* @__PURE__ */ jsx166(Heading, { ...commonProps });
|
|
8486
8505
|
case "paragraph":
|
|
8487
|
-
return /* @__PURE__ */
|
|
8506
|
+
return /* @__PURE__ */ jsx166(Paragraph, { ...commonProps });
|
|
8488
8507
|
case "title":
|
|
8489
|
-
return /* @__PURE__ */
|
|
8508
|
+
return /* @__PURE__ */ jsx166(Title2, { ...commonProps });
|
|
8490
8509
|
default:
|
|
8491
8510
|
return null;
|
|
8492
8511
|
}
|
|
@@ -8527,11 +8546,11 @@ var Typography = /* @__PURE__ */ __name((props) => {
|
|
|
8527
8546
|
}, "createMediaProps");
|
|
8528
8547
|
return (
|
|
8529
8548
|
// Fragment없이도 원래 동작해야하는데 liner-web에서 JSX.Element가 배열로 오면 에러 띄워서 임시로 Fragment로 래핑합니다.
|
|
8530
|
-
/* @__PURE__ */
|
|
8549
|
+
/* @__PURE__ */ jsx166(Fragment3, { children: breakPointKeyArray.map((breakPointKey) => {
|
|
8531
8550
|
const variable = props[breakPointKey];
|
|
8532
8551
|
const isExistVariable = !!variable;
|
|
8533
8552
|
if (isExistVariable) {
|
|
8534
|
-
return /* @__PURE__ */ createElement2(Media, { ...createMediaProps(breakPointKey), key: breakPointKey }, /* @__PURE__ */
|
|
8553
|
+
return /* @__PURE__ */ createElement2(Media, { ...createMediaProps(breakPointKey), key: breakPointKey }, /* @__PURE__ */ jsx166(TypographyImpl, { ...variable, text: variable.text || children }));
|
|
8535
8554
|
}
|
|
8536
8555
|
return null;
|
|
8537
8556
|
}) })
|
|
@@ -8562,7 +8581,7 @@ var style_module_default5 = {
|
|
|
8562
8581
|
// src/components/Popover/index.tsx
|
|
8563
8582
|
import { cva as cva4 } from "class-variance-authority";
|
|
8564
8583
|
import { clsx as clsx8 } from "clsx";
|
|
8565
|
-
import { Fragment as Fragment4, jsx as
|
|
8584
|
+
import { Fragment as Fragment4, jsx as jsx167, jsxs as jsxs112 } from "react/jsx-runtime";
|
|
8566
8585
|
var DEFAULT_OFFSET = -6;
|
|
8567
8586
|
var popoverVariants = cva4(style_module_default5.content, {
|
|
8568
8587
|
variants: {
|
|
@@ -8584,9 +8603,9 @@ var popoverTagVariants = cva4([style_module_default5.tag, "lp-sys-typo-caption3-
|
|
|
8584
8603
|
var popoverTitleVariants = cva4([style_module_default5.title, "lp-sys-typo-paragraph3-normal-bold"]);
|
|
8585
8604
|
var popoverDescriptionVariants = cva4([style_module_default5.description, "lp-sys-typo-caption1-normal-regular"]);
|
|
8586
8605
|
var popoverFooterVariants = cva4([style_module_default5.footer, "lp-sys-typo-caption1-normal-medium"]);
|
|
8587
|
-
var PopoverRoot = /* @__PURE__ */ __name(({ isOpen, children, onChange }) => /* @__PURE__ */
|
|
8588
|
-
var PopoverTrigger = /* @__PURE__ */ __name(({ by }) => /* @__PURE__ */
|
|
8589
|
-
var PopoverAnchor = /* @__PURE__ */ __name(({ className }) => /* @__PURE__ */
|
|
8606
|
+
var PopoverRoot = /* @__PURE__ */ __name(({ isOpen, children, onChange }) => /* @__PURE__ */ jsx167(PopoverPrimitive.Root, { open: isOpen, onOpenChange: onChange, children }), "PopoverRoot");
|
|
8607
|
+
var PopoverTrigger = /* @__PURE__ */ __name(({ by }) => /* @__PURE__ */ jsx167(PopoverPrimitive.Trigger, { asChild: true, children: by }), "PopoverTrigger");
|
|
8608
|
+
var PopoverAnchor = /* @__PURE__ */ __name(({ className }) => /* @__PURE__ */ jsx167("svg", { className, xmlns: "http://www.w3.org/2000/svg", width: "30", height: "10", viewBox: "0 0 30 10", fill: "none", children: /* @__PURE__ */ jsx167(
|
|
8590
8609
|
"path",
|
|
8591
8610
|
{
|
|
8592
8611
|
fillRule: "evenodd",
|
|
@@ -8613,7 +8632,7 @@ var PopoverContent = React3.forwardRef(
|
|
|
8613
8632
|
children,
|
|
8614
8633
|
container,
|
|
8615
8634
|
...props
|
|
8616
|
-
}, ref) => /* @__PURE__ */
|
|
8635
|
+
}, ref) => /* @__PURE__ */ jsx167(PopoverPrimitive.Portal, { container, children: /* @__PURE__ */ jsxs112(Fragment4, { children: [
|
|
8617
8636
|
/* @__PURE__ */ jsxs112(
|
|
8618
8637
|
PopoverPrimitive.Content,
|
|
8619
8638
|
{
|
|
@@ -8627,22 +8646,22 @@ var PopoverContent = React3.forwardRef(
|
|
|
8627
8646
|
children: [
|
|
8628
8647
|
/* @__PURE__ */ jsxs112("div", { className: style_module_default5.contentContainer, children: [
|
|
8629
8648
|
(tag || icon || onClose) && /* @__PURE__ */ jsxs112("div", { className: style_module_default5.heading, children: [
|
|
8630
|
-
tag && /* @__PURE__ */
|
|
8631
|
-
icon && /* @__PURE__ */
|
|
8632
|
-
/* @__PURE__ */
|
|
8633
|
-
onClose && /* @__PURE__ */
|
|
8649
|
+
tag && /* @__PURE__ */ jsx167("span", { className: popoverTagVariants(), children: tag }),
|
|
8650
|
+
icon && /* @__PURE__ */ jsx167(Icon, { name: icon.name, size: "xs", thick: icon.thick, fill: icon.fill }),
|
|
8651
|
+
/* @__PURE__ */ jsx167("p", { className: popoverTitleVariants(), children: title }),
|
|
8652
|
+
onClose && /* @__PURE__ */ jsx167(
|
|
8634
8653
|
PopoverPrimitive.PopoverClose,
|
|
8635
8654
|
{
|
|
8636
8655
|
className: style_module_default5.closeButton,
|
|
8637
8656
|
onClick: () => {
|
|
8638
8657
|
onClose();
|
|
8639
8658
|
},
|
|
8640
|
-
children: /* @__PURE__ */
|
|
8659
|
+
children: /* @__PURE__ */ jsx167(Icon, { name: "close-fill", size: "s", fill: true, thick: true, type: "neutral-label-static-primary" })
|
|
8641
8660
|
}
|
|
8642
8661
|
)
|
|
8643
8662
|
] }),
|
|
8644
|
-
description && /* @__PURE__ */
|
|
8645
|
-
onConfirm && /* @__PURE__ */
|
|
8663
|
+
description && /* @__PURE__ */ jsx167("p", { className: popoverDescriptionVariants(), children: description }),
|
|
8664
|
+
onConfirm && /* @__PURE__ */ jsx167("div", { className: popoverFooterVariants(), children: /* @__PURE__ */ jsx167(
|
|
8646
8665
|
Button,
|
|
8647
8666
|
{
|
|
8648
8667
|
as: "text",
|
|
@@ -8655,11 +8674,11 @@ var PopoverContent = React3.forwardRef(
|
|
|
8655
8674
|
) }),
|
|
8656
8675
|
children
|
|
8657
8676
|
] }),
|
|
8658
|
-
/* @__PURE__ */
|
|
8677
|
+
/* @__PURE__ */ jsx167(PopoverPrimitive.Arrow, { asChild: true, children: /* @__PURE__ */ jsx167(PopoverAnchor, { className: clsx8(popoverAnchorVariants({ level })) }) })
|
|
8659
8678
|
]
|
|
8660
8679
|
}
|
|
8661
8680
|
),
|
|
8662
|
-
isOverlay && /* @__PURE__ */
|
|
8681
|
+
isOverlay && /* @__PURE__ */ jsx167("div", { "data-radix-popper-overlay": true, className: style_module_default5.overlay })
|
|
8663
8682
|
] }) })
|
|
8664
8683
|
);
|
|
8665
8684
|
var Popover = Object.assign(PopoverRoot, {
|
|
@@ -8682,14 +8701,14 @@ var style_module_default6 = {
|
|
|
8682
8701
|
// src/components/Tooltip/index.tsx
|
|
8683
8702
|
import { cva as cva5 } from "class-variance-authority";
|
|
8684
8703
|
import clsx9 from "clsx";
|
|
8685
|
-
import { jsx as
|
|
8704
|
+
import { jsx as jsx168 } from "react/jsx-runtime";
|
|
8686
8705
|
var DEFAULT_OFFSET2 = "medium";
|
|
8687
8706
|
var tooltipVariants = cva5([style_module_default6.tooltip, "lp-sys-typo-caption1-normal-medium"]);
|
|
8688
8707
|
var TooltipProvider = TooltipPrimitive.Provider;
|
|
8689
|
-
var TooltipRoot = /* @__PURE__ */ __name(({ children }) => /* @__PURE__ */
|
|
8690
|
-
var TooltipTrigger = /* @__PURE__ */ __name(({ by }) => /* @__PURE__ */
|
|
8708
|
+
var TooltipRoot = /* @__PURE__ */ __name(({ children }) => /* @__PURE__ */ jsx168(TooltipPrimitive.Root, { delayDuration: 0, children }), "TooltipRoot");
|
|
8709
|
+
var TooltipTrigger = /* @__PURE__ */ __name(({ by }) => /* @__PURE__ */ jsx168(TooltipPrimitive.Trigger, { asChild: true, children: by }), "TooltipTrigger");
|
|
8691
8710
|
var TooltipContent = forwardRef8(
|
|
8692
|
-
({ description, position = "top", className, offset = DEFAULT_OFFSET2, collisionPadding, ...props }, ref) => /* @__PURE__ */
|
|
8711
|
+
({ description, position = "top", className, offset = DEFAULT_OFFSET2, collisionPadding, ...props }, ref) => /* @__PURE__ */ jsx168(
|
|
8693
8712
|
TooltipPrimitive.Content,
|
|
8694
8713
|
{
|
|
8695
8714
|
ref,
|
|
@@ -8698,7 +8717,7 @@ var TooltipContent = forwardRef8(
|
|
|
8698
8717
|
collisionPadding,
|
|
8699
8718
|
className: clsx9(tooltipVariants(), className),
|
|
8700
8719
|
...props,
|
|
8701
|
-
children: /* @__PURE__ */
|
|
8720
|
+
children: /* @__PURE__ */ jsx168("p", { className: style_module_default6.tooltipContent, children: description })
|
|
8702
8721
|
}
|
|
8703
8722
|
)
|
|
8704
8723
|
);
|
|
@@ -8730,7 +8749,7 @@ var style_module_default7 = {
|
|
|
8730
8749
|
|
|
8731
8750
|
// src/components/IconButton/index.tsx
|
|
8732
8751
|
import { Slot as Slot2 } from "@radix-ui/react-slot";
|
|
8733
|
-
import { jsx as
|
|
8752
|
+
import { jsx as jsx169 } from "react/jsx-runtime";
|
|
8734
8753
|
var iconButtonSizeIconSizeMap = {
|
|
8735
8754
|
l: "m",
|
|
8736
8755
|
m: "s",
|
|
@@ -8766,7 +8785,7 @@ var iconButtonVariants = cva6([style_module_default7.iconButton], {
|
|
|
8766
8785
|
var IconButton = forwardRef9(
|
|
8767
8786
|
({ asChild, level = "primary", name, thick = false, fill = false, size = "m", className, ...rest }, ref) => {
|
|
8768
8787
|
const Comp = asChild ? Slot2 : "button";
|
|
8769
|
-
return /* @__PURE__ */
|
|
8788
|
+
return /* @__PURE__ */ jsx169(Comp, { ...rest, className: clsx10(iconButtonVariants({ level, size }), className), ref, children: /* @__PURE__ */ jsx169(
|
|
8770
8789
|
Icon,
|
|
8771
8790
|
{
|
|
8772
8791
|
name,
|
|
@@ -8818,7 +8837,7 @@ var style_module_default9 = {
|
|
|
8818
8837
|
|
|
8819
8838
|
// src/components/Label/index.tsx
|
|
8820
8839
|
import { cva as cva7 } from "class-variance-authority";
|
|
8821
|
-
import { jsx as
|
|
8840
|
+
import { jsx as jsx170 } from "react/jsx-runtime";
|
|
8822
8841
|
var defaultLabelVariants = cva7(["lp-sys-typo-paragraph2-normal-medium", style_module_default9.label], {
|
|
8823
8842
|
variants: {
|
|
8824
8843
|
level: {
|
|
@@ -8858,7 +8877,7 @@ var Label = forwardRef10(
|
|
|
8858
8877
|
error = false,
|
|
8859
8878
|
...props
|
|
8860
8879
|
}, ref) => {
|
|
8861
|
-
return /* @__PURE__ */
|
|
8880
|
+
return /* @__PURE__ */ jsx170(
|
|
8862
8881
|
LabelPrimitive.Root,
|
|
8863
8882
|
{
|
|
8864
8883
|
ref,
|
|
@@ -8870,17 +8889,17 @@ var Label = forwardRef10(
|
|
|
8870
8889
|
);
|
|
8871
8890
|
|
|
8872
8891
|
// src/components/CheckBox/index.tsx
|
|
8873
|
-
import { Fragment as Fragment5, jsx as
|
|
8892
|
+
import { Fragment as Fragment5, jsx as jsx171, jsxs as jsxs113 } from "react/jsx-runtime";
|
|
8874
8893
|
var Checkbox = forwardRef11(
|
|
8875
8894
|
({ className, label, description, ...props }, ref) => {
|
|
8876
8895
|
const CheckboxWrapper = /* @__PURE__ */ __name(({ children }) => label ? /* @__PURE__ */ jsxs113(Label, { position: "right", htmlFor: props.id, children: [
|
|
8877
8896
|
/* @__PURE__ */ jsxs113("div", { className: style_module_default8["label-wrapper"], children: [
|
|
8878
8897
|
label,
|
|
8879
|
-
/* @__PURE__ */
|
|
8898
|
+
/* @__PURE__ */ jsx171(Paragraph, { className: style_module_default8.description, size: 3, type: "normal", weight: "regular", children: description })
|
|
8880
8899
|
] }),
|
|
8881
8900
|
children
|
|
8882
|
-
] }) : /* @__PURE__ */
|
|
8883
|
-
return /* @__PURE__ */
|
|
8901
|
+
] }) : /* @__PURE__ */ jsx171(Fragment5, { children }), "CheckboxWrapper");
|
|
8902
|
+
return /* @__PURE__ */ jsx171(CheckboxWrapper, { children: /* @__PURE__ */ jsx171(CheckboxPrimitive.Root, { className: clsx12(style_module_default8.checkbox, className), ref, ...props, children: /* @__PURE__ */ jsx171(CheckboxPrimitive.Indicator, { className: style_module_default8["checkbox-indicator"], children: /* @__PURE__ */ jsx171(Icon, { name: "check-mark", thick: true, size: "xs", type: "inverse-label-primary" }) }) }) });
|
|
8884
8903
|
}
|
|
8885
8904
|
);
|
|
8886
8905
|
|
|
@@ -8899,19 +8918,19 @@ var style_module_default10 = {
|
|
|
8899
8918
|
};
|
|
8900
8919
|
|
|
8901
8920
|
// src/components/Radio/index.tsx
|
|
8902
|
-
import { Fragment as Fragment6, jsx as
|
|
8903
|
-
var RadioIndicator = /* @__PURE__ */ __name(() => /* @__PURE__ */
|
|
8904
|
-
var RadioRoot = forwardRef12(({ className, ...props }, ref) => /* @__PURE__ */
|
|
8921
|
+
import { Fragment as Fragment6, jsx as jsx172, jsxs as jsxs114 } from "react/jsx-runtime";
|
|
8922
|
+
var RadioIndicator = /* @__PURE__ */ __name(() => /* @__PURE__ */ jsx172("svg", { xmlns: "http://www.w3.org/2000/svg", width: "10", height: "10", viewBox: "0 0 10 10", fill: "none", children: /* @__PURE__ */ jsx172("circle", { cx: "5", cy: "5", r: "5", fill: "#313133" }) }), "RadioIndicator");
|
|
8923
|
+
var RadioRoot = forwardRef12(({ className, ...props }, ref) => /* @__PURE__ */ jsx172(RadioGroupPrimitive.Root, { className: clsx13(style_module_default10.radio, className), ...props }));
|
|
8905
8924
|
var RadioItem = forwardRef12(
|
|
8906
8925
|
({ className, label, description, ...props }, ref) => {
|
|
8907
8926
|
const RadioItemWrapper = /* @__PURE__ */ __name(({ children }) => label ? /* @__PURE__ */ jsxs114(Label, { position: "right", htmlFor: props.id, children: [
|
|
8908
8927
|
/* @__PURE__ */ jsxs114("div", { className: style_module_default10["label-wrapper"], children: [
|
|
8909
8928
|
label,
|
|
8910
|
-
/* @__PURE__ */
|
|
8929
|
+
/* @__PURE__ */ jsx172(Paragraph, { className: style_module_default10.description, size: 3, type: "normal", weight: "regular", children: description })
|
|
8911
8930
|
] }),
|
|
8912
8931
|
children
|
|
8913
|
-
] }) : /* @__PURE__ */
|
|
8914
|
-
return /* @__PURE__ */
|
|
8932
|
+
] }) : /* @__PURE__ */ jsx172(Fragment6, { children }), "RadioItemWrapper");
|
|
8933
|
+
return /* @__PURE__ */ jsx172(RadioItemWrapper, { children: /* @__PURE__ */ jsx172(RadioGroupPrimitive.Item, { ref, className: clsx13(style_module_default10["radio-item"], className), ...props, children: /* @__PURE__ */ jsx172(RadioGroupPrimitive.Indicator, { className: style_module_default10.indicator, children: /* @__PURE__ */ jsx172(RadioIndicator, {}) }) }) });
|
|
8915
8934
|
}
|
|
8916
8935
|
);
|
|
8917
8936
|
var Radio = Object.assign(RadioRoot, {
|
|
@@ -8953,7 +8972,7 @@ var style_module_default11 = {
|
|
|
8953
8972
|
import { cva as cva8 } from "class-variance-authority";
|
|
8954
8973
|
import clsx14 from "clsx";
|
|
8955
8974
|
import { flushSync } from "react-dom";
|
|
8956
|
-
import { Fragment as Fragment7, jsx as
|
|
8975
|
+
import { Fragment as Fragment7, jsx as jsx173, jsxs as jsxs115 } from "react/jsx-runtime";
|
|
8957
8976
|
var defaultTextfieldVariants = cva8(style_module_default11.textfield, {
|
|
8958
8977
|
variants: {
|
|
8959
8978
|
color: {
|
|
@@ -9022,7 +9041,7 @@ var Textfield = forwardRef13((props, ref) => {
|
|
|
9022
9041
|
}, "handleDeidentify");
|
|
9023
9042
|
useImperativeHandle(ref, () => inputRef.current);
|
|
9024
9043
|
return /* @__PURE__ */ jsxs115("div", { className: style_module_default11["textfield-container"], children: [
|
|
9025
|
-
/* @__PURE__ */
|
|
9044
|
+
/* @__PURE__ */ jsx173(
|
|
9026
9045
|
"div",
|
|
9027
9046
|
{
|
|
9028
9047
|
className: clsx14(defaultTextfieldVariants({ color }), {
|
|
@@ -9031,7 +9050,7 @@ var Textfield = forwardRef13((props, ref) => {
|
|
|
9031
9050
|
}),
|
|
9032
9051
|
onClick: handleTextfieldClick,
|
|
9033
9052
|
children: /* @__PURE__ */ jsxs115("div", { className: style_module_default11["input-wrapper"], children: [
|
|
9034
|
-
/* @__PURE__ */
|
|
9053
|
+
/* @__PURE__ */ jsx173(
|
|
9035
9054
|
"input",
|
|
9036
9055
|
{
|
|
9037
9056
|
className: clsx14(style_module_default11.input, {
|
|
@@ -9046,7 +9065,7 @@ var Textfield = forwardRef13((props, ref) => {
|
|
|
9046
9065
|
...rest
|
|
9047
9066
|
}
|
|
9048
9067
|
),
|
|
9049
|
-
/* @__PURE__ */
|
|
9068
|
+
/* @__PURE__ */ jsx173(
|
|
9050
9069
|
Label,
|
|
9051
9070
|
{
|
|
9052
9071
|
className: clsx14(style_module_default11.label, {
|
|
@@ -9059,7 +9078,7 @@ var Textfield = forwardRef13((props, ref) => {
|
|
|
9059
9078
|
}
|
|
9060
9079
|
),
|
|
9061
9080
|
/* @__PURE__ */ jsxs115("div", { className: style_module_default11["input-action-buttons"], children: [
|
|
9062
|
-
textfieldValue && !disabled && /* @__PURE__ */
|
|
9081
|
+
textfieldValue && !disabled && /* @__PURE__ */ jsx173(
|
|
9063
9082
|
IconButton,
|
|
9064
9083
|
{
|
|
9065
9084
|
tabIndex: -1,
|
|
@@ -9074,7 +9093,7 @@ var Textfield = forwardRef13((props, ref) => {
|
|
|
9074
9093
|
}
|
|
9075
9094
|
}
|
|
9076
9095
|
),
|
|
9077
|
-
isPassword && !disabled && /* @__PURE__ */
|
|
9096
|
+
isPassword && !disabled && /* @__PURE__ */ jsx173(
|
|
9078
9097
|
IconButton,
|
|
9079
9098
|
{
|
|
9080
9099
|
tabIndex: -1,
|
|
@@ -9089,15 +9108,15 @@ var Textfield = forwardRef13((props, ref) => {
|
|
|
9089
9108
|
}
|
|
9090
9109
|
}
|
|
9091
9110
|
),
|
|
9092
|
-
buttonProps && /* @__PURE__ */
|
|
9111
|
+
buttonProps && /* @__PURE__ */ jsx173(Button, { ...buttonProps, size: "m", type: "button" })
|
|
9093
9112
|
] })
|
|
9094
9113
|
] })
|
|
9095
9114
|
}
|
|
9096
9115
|
),
|
|
9097
9116
|
displayFooter && /* @__PURE__ */ jsxs115("div", { className: style_module_default11.footer, children: [
|
|
9098
|
-
/* @__PURE__ */
|
|
9099
|
-
/* @__PURE__ */
|
|
9100
|
-
/* @__PURE__ */
|
|
9117
|
+
/* @__PURE__ */ jsx173("div", { className: style_module_default11["error-wrapper"], children: error && /* @__PURE__ */ jsxs115(Fragment7, { children: [
|
|
9118
|
+
/* @__PURE__ */ jsx173(Icon, { name: "exclamationmark-fill", fill: true, thick: true, size: "xs", type: "function-label-negative" }),
|
|
9119
|
+
/* @__PURE__ */ jsx173(Caption, { size: 3, type: "normal", weight: "regular", className: style_module_default11["error-message"], children: error })
|
|
9101
9120
|
] }) }),
|
|
9102
9121
|
maxCharacter && /* @__PURE__ */ jsxs115(Caption, { className: style_module_default11.character, size: 3, type: "normal", weight: "regular", children: [
|
|
9103
9122
|
isControlled ? controlledValue.length : value.length,
|
|
@@ -9126,29 +9145,29 @@ var style_module_default12 = {
|
|
|
9126
9145
|
|
|
9127
9146
|
// src/components/Slider/index.tsx
|
|
9128
9147
|
import * as SliderPrimitive from "@radix-ui/react-slider";
|
|
9129
|
-
import { Fragment as Fragment8, jsx as
|
|
9148
|
+
import { Fragment as Fragment8, jsx as jsx174, jsxs as jsxs116 } from "react/jsx-runtime";
|
|
9130
9149
|
var SliderRoot = forwardRef14((props, ref) => {
|
|
9131
9150
|
const { label, tooltip, rangeLeft, rangeRight, min, max, step = 50, ...rest } = props;
|
|
9132
|
-
return /* @__PURE__ */
|
|
9133
|
-
/* @__PURE__ */
|
|
9151
|
+
return /* @__PURE__ */ jsx174(Fragment8, { children: /* @__PURE__ */ jsxs116(Tooltip.Provider, { children: [
|
|
9152
|
+
/* @__PURE__ */ jsx174(Label, { level: "secondary", size: "m", offset: "high", className: style_module_default12.label, children: label }),
|
|
9134
9153
|
/* @__PURE__ */ jsxs116("div", { className: style_module_default12["slider-wrapper"], children: [
|
|
9135
9154
|
/* @__PURE__ */ jsxs116("div", { className: style_module_default12["slider-option-wrapper"], children: [
|
|
9136
|
-
/* @__PURE__ */
|
|
9137
|
-
/* @__PURE__ */
|
|
9155
|
+
/* @__PURE__ */ jsx174(Icon, { name: rangeLeft.icon, size: "xs" }),
|
|
9156
|
+
/* @__PURE__ */ jsx174(Caption, { size: 1, type: "normal", weight: "medium", className: style_module_default12.optionText, children: rangeLeft.text })
|
|
9138
9157
|
] }),
|
|
9139
9158
|
/* @__PURE__ */ jsxs116(SliderPrimitive.Root, { ...rest, step, className: style_module_default12["slider-root"], ref, children: [
|
|
9140
9159
|
/* @__PURE__ */ jsxs116(SliderPrimitive.Track, { className: style_module_default12["slider-track"], children: [
|
|
9141
|
-
Array.from({ length: 100 / step + 1 }).map((_, index) => /* @__PURE__ */
|
|
9142
|
-
/* @__PURE__ */
|
|
9160
|
+
Array.from({ length: 100 / step + 1 }).map((_, index) => /* @__PURE__ */ jsx174("span", { className: style_module_default12["slider-step"] }, index)),
|
|
9161
|
+
/* @__PURE__ */ jsx174(SliderPrimitive.Range, { className: style_module_default12["slider-range"] })
|
|
9143
9162
|
] }),
|
|
9144
9163
|
/* @__PURE__ */ jsxs116(Tooltip, { children: [
|
|
9145
|
-
/* @__PURE__ */
|
|
9146
|
-
/* @__PURE__ */
|
|
9164
|
+
/* @__PURE__ */ jsx174(Tooltip.Trigger, { by: /* @__PURE__ */ jsx174(SliderPrimitive.Thumb, { className: style_module_default12["slider-thumb"] }) }),
|
|
9165
|
+
/* @__PURE__ */ jsx174(Tooltip.Content, { description: tooltip })
|
|
9147
9166
|
] })
|
|
9148
9167
|
] }),
|
|
9149
9168
|
/* @__PURE__ */ jsxs116("div", { className: style_module_default12["slider-option-wrapper"], children: [
|
|
9150
|
-
/* @__PURE__ */
|
|
9151
|
-
/* @__PURE__ */
|
|
9169
|
+
/* @__PURE__ */ jsx174(Icon, { name: rangeRight.icon, size: "xs" }),
|
|
9170
|
+
/* @__PURE__ */ jsx174(Caption, { size: 1, type: "normal", weight: "medium", className: style_module_default12.optionText, children: rangeRight.text })
|
|
9152
9171
|
] })
|
|
9153
9172
|
] })
|
|
9154
9173
|
] }) });
|
|
@@ -9192,11 +9211,11 @@ import {
|
|
|
9192
9211
|
useState as useState4
|
|
9193
9212
|
} from "react";
|
|
9194
9213
|
import clsx15 from "clsx";
|
|
9195
|
-
import { jsx as
|
|
9196
|
-
var Badge = /* @__PURE__ */ __name(({ children }) => /* @__PURE__ */
|
|
9214
|
+
import { jsx as jsx175, jsxs as jsxs117 } from "react/jsx-runtime";
|
|
9215
|
+
var Badge = /* @__PURE__ */ __name(({ children }) => /* @__PURE__ */ jsx175("div", { className: style_module_default13.badgeContainer, children: /* @__PURE__ */ jsx175(Caption, { className: style_module_default13.badge, size: 2, type: "normal", weight: "medium", children }) }), "Badge");
|
|
9197
9216
|
var SelectContent = forwardRef15((props, ref) => {
|
|
9198
9217
|
const { id, isResponsive, popSide, sideOffset, listLabel, children, container } = props;
|
|
9199
|
-
return /* @__PURE__ */
|
|
9218
|
+
return /* @__PURE__ */ jsx175(SelectPrimitive.Portal, { container, children: /* @__PURE__ */ jsx175(
|
|
9200
9219
|
SelectPrimitive.Content,
|
|
9201
9220
|
{
|
|
9202
9221
|
id: `select-content-${id}`,
|
|
@@ -9219,11 +9238,11 @@ var SelectContent = forwardRef15((props, ref) => {
|
|
|
9219
9238
|
sideOffset,
|
|
9220
9239
|
avoidCollisions: false,
|
|
9221
9240
|
children: /* @__PURE__ */ jsxs117(ScrollArea.Root, { className: style_module_default13.scrollAreaRoot, type: "always", children: [
|
|
9222
|
-
/* @__PURE__ */
|
|
9223
|
-
listLabel && /* @__PURE__ */
|
|
9241
|
+
/* @__PURE__ */ jsx175(SelectPrimitive.Viewport, { asChild: true, children: /* @__PURE__ */ jsx175(ScrollArea.Viewport, { className: style_module_default13.scrollAreaViewport, style: { maxHeight: "268px", overflowY: "auto" }, children: /* @__PURE__ */ jsxs117(SelectPrimitive.Group, { children: [
|
|
9242
|
+
listLabel && /* @__PURE__ */ jsx175(SelectPrimitive.Label, { asChild: true, children: /* @__PURE__ */ jsx175(Label, { className: style_module_default13["desktop-label"], level: "secondary", size: "m", offset: "low", children: listLabel }) }),
|
|
9224
9243
|
children
|
|
9225
9244
|
] }) }) }),
|
|
9226
|
-
/* @__PURE__ */
|
|
9245
|
+
/* @__PURE__ */ jsx175(ScrollArea.Scrollbar, { className: style_module_default13.scrollAreaScrollbar, orientation: "vertical", children: /* @__PURE__ */ jsx175(ScrollArea.Thumb, { className: style_module_default13.scrollAreaThumb }) })
|
|
9227
9246
|
] })
|
|
9228
9247
|
}
|
|
9229
9248
|
) });
|
|
@@ -9253,8 +9272,8 @@ var SelectRoot = forwardRef15((props, ref) => {
|
|
|
9253
9272
|
}, [open]);
|
|
9254
9273
|
return /* @__PURE__ */ jsxs117("div", { children: [
|
|
9255
9274
|
/* @__PURE__ */ jsxs117("div", { className: style_module_default13["label-container"], children: [
|
|
9256
|
-
/* @__PURE__ */
|
|
9257
|
-
badge && /* @__PURE__ */
|
|
9275
|
+
/* @__PURE__ */ jsx175(Label, { className: style_module_default13["select-label"], level: "secondary", size: "m", offset: "low", htmlFor: id, children: label }),
|
|
9276
|
+
badge && /* @__PURE__ */ jsx175(Badge, { children: badge })
|
|
9258
9277
|
] }),
|
|
9259
9278
|
/* @__PURE__ */ jsxs117(
|
|
9260
9279
|
SelectPrimitive.Root,
|
|
@@ -9267,10 +9286,10 @@ var SelectRoot = forwardRef15((props, ref) => {
|
|
|
9267
9286
|
},
|
|
9268
9287
|
children: [
|
|
9269
9288
|
/* @__PURE__ */ jsxs117(SelectPrimitive.Trigger, { className: style_module_default13.trigger, ref, id, children: [
|
|
9270
|
-
/* @__PURE__ */
|
|
9271
|
-
/* @__PURE__ */
|
|
9289
|
+
/* @__PURE__ */ jsx175(SelectPrimitive.Value, { className: style_module_default13.placeholder, placeholder }),
|
|
9290
|
+
/* @__PURE__ */ jsx175(SelectPrimitive.Icon, { className: style_module_default13.openIcon, children: /* @__PURE__ */ jsx175(Icon, { name: "arrow-drop-down", fill: true, thick: true, size: "xs" }) })
|
|
9272
9291
|
] }),
|
|
9273
|
-
/* @__PURE__ */
|
|
9292
|
+
/* @__PURE__ */ jsx175(SelectContent, { ...contentProps })
|
|
9274
9293
|
]
|
|
9275
9294
|
}
|
|
9276
9295
|
)
|
|
@@ -9287,9 +9306,9 @@ var SelectItem = /* @__PURE__ */ __name(({ value, text, disabled, icon, onClick
|
|
|
9287
9306
|
onClick?.();
|
|
9288
9307
|
},
|
|
9289
9308
|
children: [
|
|
9290
|
-
/* @__PURE__ */
|
|
9291
|
-
icon && /* @__PURE__ */
|
|
9292
|
-
/* @__PURE__ */
|
|
9309
|
+
/* @__PURE__ */ jsx175(SelectPrimitive.ItemText, { children: /* @__PURE__ */ jsx175(Paragraph, { size: 3, type: "normal", weight: "medium", children: text ?? value }) }),
|
|
9310
|
+
icon && /* @__PURE__ */ jsx175(SelectPrimitive.Icon, { className: style_module_default13.icon, children: /* @__PURE__ */ jsx175(Icon, { size: "xs", ...icon }) }),
|
|
9311
|
+
/* @__PURE__ */ jsx175(SelectPrimitive.ItemIndicator, { className: style_module_default13.itemIndicator, children: /* @__PURE__ */ jsx175(Icon, { fill: false, thick: true, size: "xs", name: "check-mark", type: "brand-label-primary" }) })
|
|
9293
9312
|
]
|
|
9294
9313
|
}
|
|
9295
9314
|
), "SelectItem");
|
|
@@ -9309,11 +9328,11 @@ import { useState as useState5 } from "react";
|
|
|
9309
9328
|
|
|
9310
9329
|
// src/hooks/collection.tsx
|
|
9311
9330
|
import { createContext, useContext, useMemo } from "react";
|
|
9312
|
-
import { jsx as
|
|
9331
|
+
import { jsx as jsx176 } from "react/jsx-runtime";
|
|
9313
9332
|
var CollectionContext = createContext(void 0);
|
|
9314
9333
|
var CollectionProvider = /* @__PURE__ */ __name(({ value, onChangeValue, children }) => {
|
|
9315
9334
|
const contextValue = useMemo(() => ({ value, onChangeValue }), [value, onChangeValue]);
|
|
9316
|
-
return /* @__PURE__ */
|
|
9335
|
+
return /* @__PURE__ */ jsx176(CollectionContext.Provider, { value: contextValue, children });
|
|
9317
9336
|
}, "CollectionProvider");
|
|
9318
9337
|
var useCollectionContext = /* @__PURE__ */ __name(() => {
|
|
9319
9338
|
const context = useContext(CollectionContext);
|
|
@@ -9325,9 +9344,9 @@ var useCollectionContext = /* @__PURE__ */ __name(() => {
|
|
|
9325
9344
|
|
|
9326
9345
|
// src/components/List/index.tsx
|
|
9327
9346
|
import clsx16 from "clsx";
|
|
9328
|
-
import { jsx as
|
|
9347
|
+
import { jsx as jsx177, jsxs as jsxs118 } from "react/jsx-runtime";
|
|
9329
9348
|
var ListRoot = /* @__PURE__ */ __name(({ children, className, ...props }) => {
|
|
9330
|
-
return /* @__PURE__ */
|
|
9349
|
+
return /* @__PURE__ */ jsx177(CollectionProvider, { ...props, children: /* @__PURE__ */ jsx177("ul", { className: clsx16(style_module_default14.list, className), children }) });
|
|
9331
9350
|
}, "ListRoot");
|
|
9332
9351
|
var Item3 = /* @__PURE__ */ __name(({ value, text, disabled, icon, onClick }) => {
|
|
9333
9352
|
const [isFocused, setIsFocused] = useState5(false);
|
|
@@ -9352,8 +9371,8 @@ var Item3 = /* @__PURE__ */ __name(({ value, text, disabled, icon, onClick }) =>
|
|
|
9352
9371
|
onChangeValue?.(value);
|
|
9353
9372
|
},
|
|
9354
9373
|
children: [
|
|
9355
|
-
/* @__PURE__ */
|
|
9356
|
-
(icon || isSelected) && /* @__PURE__ */
|
|
9374
|
+
/* @__PURE__ */ jsx177(Paragraph, { size: 3, type: "normal", weight: "medium", children: text }),
|
|
9375
|
+
(icon || isSelected) && /* @__PURE__ */ jsx177(Icon, { className: style_module_default14.icon, size: "xs", ...iconProps })
|
|
9357
9376
|
]
|
|
9358
9377
|
}
|
|
9359
9378
|
);
|