@liner-fe/prism 2.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/assets/index.d.ts +1 -0
- package/lib/assets/lp-pri-icon-m-redo.d.ts +8 -0
- package/lib/index.mjs +139 -112
- 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
|
@@ -7238,6 +7238,32 @@ var ICLpPriIconMUndo = /* @__PURE__ */ __name((props) => {
|
|
|
7238
7238
|
) });
|
|
7239
7239
|
}, "ICLpPriIconMUndo");
|
|
7240
7240
|
|
|
7241
|
+
// src/assets/lp-pri-icon-m-redo.tsx
|
|
7242
|
+
import { jsx as jsx157 } from "react/jsx-runtime";
|
|
7243
|
+
var ICLpPriIconMRedo = /* @__PURE__ */ __name((props) => {
|
|
7244
|
+
const { thick = false, fill = false, size = 32, color = "#1E1E1F" } = props;
|
|
7245
|
+
if (thick) {
|
|
7246
|
+
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(
|
|
7247
|
+
"path",
|
|
7248
|
+
{
|
|
7249
|
+
fillRule: "evenodd",
|
|
7250
|
+
clipRule: "evenodd",
|
|
7251
|
+
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",
|
|
7252
|
+
fill: color
|
|
7253
|
+
}
|
|
7254
|
+
) });
|
|
7255
|
+
}
|
|
7256
|
+
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(
|
|
7257
|
+
"path",
|
|
7258
|
+
{
|
|
7259
|
+
fillRule: "evenodd",
|
|
7260
|
+
clipRule: "evenodd",
|
|
7261
|
+
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",
|
|
7262
|
+
fill: color
|
|
7263
|
+
}
|
|
7264
|
+
) });
|
|
7265
|
+
}, "ICLpPriIconMRedo");
|
|
7266
|
+
|
|
7241
7267
|
// src/utils/icon.ts
|
|
7242
7268
|
var iconMap = {
|
|
7243
7269
|
"close-fill": ICCloseFill,
|
|
@@ -7395,7 +7421,8 @@ var iconMap = {
|
|
|
7395
7421
|
"lp-pri-icon-m-folder-open-share": ICLpPriIconMFolderOpenShare,
|
|
7396
7422
|
"lp-pri-icon-m-folder-share": ICLpPriIconMFolderShare,
|
|
7397
7423
|
"lp-pri-icon-m-essay": ICLpPriIconMEssay,
|
|
7398
|
-
"lp-pri-icon-m-undo": ICLpPriIconMUndo
|
|
7424
|
+
"lp-pri-icon-m-undo": ICLpPriIconMUndo,
|
|
7425
|
+
"lp-pri-icon-m-redo": ICLpPriIconMRedo
|
|
7399
7426
|
};
|
|
7400
7427
|
|
|
7401
7428
|
// src/utils/object.ts
|
|
@@ -7501,7 +7528,7 @@ var style_module_default2 = {
|
|
|
7501
7528
|
};
|
|
7502
7529
|
|
|
7503
7530
|
// src/components/Icon/index.tsx
|
|
7504
|
-
import { jsx as
|
|
7531
|
+
import { jsx as jsx158 } from "react/jsx-runtime";
|
|
7505
7532
|
var iconSizeMap = {
|
|
7506
7533
|
xs: 16,
|
|
7507
7534
|
s: 20,
|
|
@@ -7554,7 +7581,7 @@ var Icon = /* @__PURE__ */ __name((props) => {
|
|
|
7554
7581
|
} = props;
|
|
7555
7582
|
const IconComponent = getIconComponent(name, iconMap);
|
|
7556
7583
|
const iconSize = iconSizeMap[size];
|
|
7557
|
-
return /* @__PURE__ */
|
|
7584
|
+
return /* @__PURE__ */ jsx158(
|
|
7558
7585
|
IconComponent,
|
|
7559
7586
|
{
|
|
7560
7587
|
...rest,
|
|
@@ -7567,7 +7594,7 @@ var Icon = /* @__PURE__ */ __name((props) => {
|
|
|
7567
7594
|
}, "Icon");
|
|
7568
7595
|
|
|
7569
7596
|
// src/components/Button/index.tsx
|
|
7570
|
-
import { jsx as
|
|
7597
|
+
import { jsx as jsx159, jsxs as jsxs110 } from "react/jsx-runtime";
|
|
7571
7598
|
var buttonIconSizeMap = {
|
|
7572
7599
|
cta: "m",
|
|
7573
7600
|
l: "s",
|
|
@@ -7655,23 +7682,23 @@ var DefaultButton = forwardRef(
|
|
|
7655
7682
|
ref
|
|
7656
7683
|
},
|
|
7657
7684
|
/* @__PURE__ */ jsxs110("span", { className: clsx2(defaultButtonChildrenVariants({ size })), children: [
|
|
7658
|
-
!!leftIcon && /* @__PURE__ */
|
|
7659
|
-
/* @__PURE__ */
|
|
7660
|
-
!!rightIcon && /* @__PURE__ */
|
|
7685
|
+
!!leftIcon && /* @__PURE__ */ jsx159(Icon, { ...leftIcon, size: buttonIconSizeMap[size], thick: buttonSizeIconThickMap[size] }),
|
|
7686
|
+
/* @__PURE__ */ jsx159("p", { className: style_module_default.content, children: newChildren }),
|
|
7687
|
+
!!rightIcon && /* @__PURE__ */ jsx159(Icon, { ...rightIcon, size: buttonIconSizeMap[size], thick: buttonSizeIconThickMap[size] })
|
|
7661
7688
|
] })
|
|
7662
7689
|
);
|
|
7663
7690
|
return ParentClone;
|
|
7664
7691
|
}
|
|
7665
|
-
return /* @__PURE__ */
|
|
7692
|
+
return /* @__PURE__ */ jsx159(
|
|
7666
7693
|
"button",
|
|
7667
7694
|
{
|
|
7668
7695
|
...rest,
|
|
7669
7696
|
className: clsx2(defaultButtonVariants({ level, fill, align, size, width }), className),
|
|
7670
7697
|
ref,
|
|
7671
7698
|
children: /* @__PURE__ */ jsxs110("span", { className: clsx2(defaultButtonChildrenVariants({ size })), children: [
|
|
7672
|
-
!!leftIcon && /* @__PURE__ */
|
|
7673
|
-
/* @__PURE__ */
|
|
7674
|
-
!!rightIcon && /* @__PURE__ */
|
|
7699
|
+
!!leftIcon && /* @__PURE__ */ jsx159(Icon, { ...leftIcon, size: buttonIconSizeMap[size], thick: buttonSizeIconThickMap[size] }),
|
|
7700
|
+
/* @__PURE__ */ jsx159("p", { className: style_module_default.content, children }),
|
|
7701
|
+
!!rightIcon && /* @__PURE__ */ jsx159(Icon, { ...rightIcon, size: buttonIconSizeMap[size], thick: buttonSizeIconThickMap[size] })
|
|
7675
7702
|
] })
|
|
7676
7703
|
}
|
|
7677
7704
|
);
|
|
@@ -7680,7 +7707,7 @@ var DefaultButton = forwardRef(
|
|
|
7680
7707
|
var TextButton = forwardRef(
|
|
7681
7708
|
({ level = "inverse-primary", asChild = false, className, ...rest }, ref) => {
|
|
7682
7709
|
const Component = asChild ? Slot : "button";
|
|
7683
|
-
return /* @__PURE__ */
|
|
7710
|
+
return /* @__PURE__ */ jsx159(Component, { ...rest, className: clsx2(textButtonVariants({ level }), className), ref });
|
|
7684
7711
|
}
|
|
7685
7712
|
);
|
|
7686
7713
|
var Button = forwardRef((props, ref) => {
|
|
@@ -7688,9 +7715,9 @@ var Button = forwardRef((props, ref) => {
|
|
|
7688
7715
|
switch (rest.as) {
|
|
7689
7716
|
case "default":
|
|
7690
7717
|
case void 0:
|
|
7691
|
-
return /* @__PURE__ */
|
|
7718
|
+
return /* @__PURE__ */ jsx159(DefaultButton, { ...rest, ref });
|
|
7692
7719
|
case "text":
|
|
7693
|
-
return /* @__PURE__ */
|
|
7720
|
+
return /* @__PURE__ */ jsx159(TextButton, { ...rest, ref });
|
|
7694
7721
|
}
|
|
7695
7722
|
});
|
|
7696
7723
|
|
|
@@ -7788,10 +7815,10 @@ var colorVariants = cva3(style_module_default4.typography, {
|
|
|
7788
7815
|
});
|
|
7789
7816
|
|
|
7790
7817
|
// src/components/Typography/Set/Paragraph.tsx
|
|
7791
|
-
import { jsx as
|
|
7818
|
+
import { jsx as jsx160 } from "react/jsx-runtime";
|
|
7792
7819
|
var Paragraph = forwardRef2(
|
|
7793
7820
|
({ size, type, weight, className, children, color = "neutral-label-primary", ...rest }, ref) => {
|
|
7794
|
-
return /* @__PURE__ */
|
|
7821
|
+
return /* @__PURE__ */ jsx160(
|
|
7795
7822
|
"p",
|
|
7796
7823
|
{
|
|
7797
7824
|
...rest,
|
|
@@ -8281,13 +8308,13 @@ var loading_default = {
|
|
|
8281
8308
|
};
|
|
8282
8309
|
|
|
8283
8310
|
// src/components/Toast/index.tsx
|
|
8284
|
-
import { jsx as
|
|
8311
|
+
import { jsx as jsx161, jsxs as jsxs111 } from "react/jsx-runtime";
|
|
8285
8312
|
import { createElement } from "react";
|
|
8286
8313
|
var Toaster = /* @__PURE__ */ __name(() => {
|
|
8287
8314
|
const { list } = useRecoilValue(toastAtom);
|
|
8288
8315
|
return /* @__PURE__ */ jsxs111(Provider, { children: [
|
|
8289
8316
|
list.map((props) => /* @__PURE__ */ createElement(SingleToast, { ...props, key: props.toastId })),
|
|
8290
|
-
/* @__PURE__ */
|
|
8317
|
+
/* @__PURE__ */ jsx161(Viewport, { className: style_module_default3.ToastViewport })
|
|
8291
8318
|
] });
|
|
8292
8319
|
}, "Toaster");
|
|
8293
8320
|
var SingleToast = /* @__PURE__ */ __name((props) => {
|
|
@@ -8333,12 +8360,12 @@ var SingleToast = /* @__PURE__ */ __name((props) => {
|
|
|
8333
8360
|
}, [isLoading]);
|
|
8334
8361
|
const renderIcon = /* @__PURE__ */ __name(() => {
|
|
8335
8362
|
if (!icon) return null;
|
|
8336
|
-
return /* @__PURE__ */
|
|
8363
|
+
return /* @__PURE__ */ jsx161("i", { className: style_module_default3.Icon, children: /* @__PURE__ */ jsx161(Icon, { ...icon, size: "m" }) });
|
|
8337
8364
|
}, "renderIcon");
|
|
8338
8365
|
return /* @__PURE__ */ jsxs111(Root, { className: style_module_default3.ToastRoot, open: isOpen, ...props, children: [
|
|
8339
|
-
isLoading && !toastSuccess.current ? /* @__PURE__ */
|
|
8366
|
+
isLoading && !toastSuccess.current ? /* @__PURE__ */ jsx161("div", { ref: lottieRef, style: { width: "24px", height: "24px" } }) : renderIcon(),
|
|
8340
8367
|
/* @__PURE__ */ jsxs111(Title, { className: style_module_default3.ToastTitle, children: [
|
|
8341
|
-
/* @__PURE__ */
|
|
8368
|
+
/* @__PURE__ */ jsx161(
|
|
8342
8369
|
Paragraph,
|
|
8343
8370
|
{
|
|
8344
8371
|
className: style_module_default3.TitleText,
|
|
@@ -8349,7 +8376,7 @@ var SingleToast = /* @__PURE__ */ __name((props) => {
|
|
|
8349
8376
|
children: message
|
|
8350
8377
|
}
|
|
8351
8378
|
),
|
|
8352
|
-
button && /* @__PURE__ */
|
|
8379
|
+
button && /* @__PURE__ */ jsx161(
|
|
8353
8380
|
Button,
|
|
8354
8381
|
{
|
|
8355
8382
|
onClick: () => {
|
|
@@ -8373,11 +8400,11 @@ var SingleToast = /* @__PURE__ */ __name((props) => {
|
|
|
8373
8400
|
// src/components/Typography/Set/Heading.tsx
|
|
8374
8401
|
import { forwardRef as forwardRef3 } from "react";
|
|
8375
8402
|
import clsx4 from "clsx";
|
|
8376
|
-
import { jsx as
|
|
8403
|
+
import { jsx as jsx162 } from "react/jsx-runtime";
|
|
8377
8404
|
var Heading = forwardRef3(
|
|
8378
8405
|
({ size, children, type, className, color = "neutral-label-primary", ...rest }, ref) => {
|
|
8379
8406
|
const Element = `h${size}`;
|
|
8380
|
-
return /* @__PURE__ */
|
|
8407
|
+
return /* @__PURE__ */ jsx162(
|
|
8381
8408
|
Element,
|
|
8382
8409
|
{
|
|
8383
8410
|
...rest,
|
|
@@ -8392,10 +8419,10 @@ var Heading = forwardRef3(
|
|
|
8392
8419
|
// src/components/Typography/Set/Caption.tsx
|
|
8393
8420
|
import clsx5 from "clsx";
|
|
8394
8421
|
import { forwardRef as forwardRef4 } from "react";
|
|
8395
|
-
import { jsx as
|
|
8422
|
+
import { jsx as jsx163 } from "react/jsx-runtime";
|
|
8396
8423
|
var Caption = forwardRef4(
|
|
8397
8424
|
({ children, size, weight, type, className, color = "neutral-label-primary", ...rest }, ref) => {
|
|
8398
|
-
return /* @__PURE__ */
|
|
8425
|
+
return /* @__PURE__ */ jsx163(
|
|
8399
8426
|
"p",
|
|
8400
8427
|
{
|
|
8401
8428
|
...rest,
|
|
@@ -8415,10 +8442,10 @@ var Caption = forwardRef4(
|
|
|
8415
8442
|
// src/components/Typography/Set/Title.tsx
|
|
8416
8443
|
import { forwardRef as forwardRef5 } from "react";
|
|
8417
8444
|
import clsx6 from "clsx";
|
|
8418
|
-
import { jsx as
|
|
8445
|
+
import { jsx as jsx164 } from "react/jsx-runtime";
|
|
8419
8446
|
var Title2 = forwardRef5(
|
|
8420
8447
|
({ weight, size, type, className, children, color = "neutral-label-primary", ...rest }, ref) => {
|
|
8421
|
-
return /* @__PURE__ */
|
|
8448
|
+
return /* @__PURE__ */ jsx164(
|
|
8422
8449
|
"p",
|
|
8423
8450
|
{
|
|
8424
8451
|
...rest,
|
|
@@ -8433,10 +8460,10 @@ var Title2 = forwardRef5(
|
|
|
8433
8460
|
// src/components/Typography/Set/Display.tsx
|
|
8434
8461
|
import clsx7 from "clsx";
|
|
8435
8462
|
import { forwardRef as forwardRef6 } from "react";
|
|
8436
|
-
import { jsx as
|
|
8463
|
+
import { jsx as jsx165 } from "react/jsx-runtime";
|
|
8437
8464
|
var Display = forwardRef6(
|
|
8438
8465
|
({ size, type, weight, className, children, color = "neutral-label-primary", ...rest }, ref) => {
|
|
8439
|
-
return /* @__PURE__ */
|
|
8466
|
+
return /* @__PURE__ */ jsx165(
|
|
8440
8467
|
"p",
|
|
8441
8468
|
{
|
|
8442
8469
|
ref,
|
|
@@ -8469,7 +8496,7 @@ var rootMediaStyle = AppMedia.createMediaStyle();
|
|
|
8469
8496
|
var { MediaContextProvider, Media } = AppMedia;
|
|
8470
8497
|
|
|
8471
8498
|
// src/components/Typography/Responsive/index.tsx
|
|
8472
|
-
import { Fragment as Fragment3, jsx as
|
|
8499
|
+
import { Fragment as Fragment3, jsx as jsx166 } from "react/jsx-runtime";
|
|
8473
8500
|
import { createElement as createElement2 } from "react";
|
|
8474
8501
|
var TypographyImpl = /* @__PURE__ */ __name(({ level, text, ...rest }) => {
|
|
8475
8502
|
const commonProps = {
|
|
@@ -8478,15 +8505,15 @@ var TypographyImpl = /* @__PURE__ */ __name(({ level, text, ...rest }) => {
|
|
|
8478
8505
|
};
|
|
8479
8506
|
switch (level) {
|
|
8480
8507
|
case "caption":
|
|
8481
|
-
return /* @__PURE__ */
|
|
8508
|
+
return /* @__PURE__ */ jsx166(Caption, { ...commonProps });
|
|
8482
8509
|
case "display":
|
|
8483
|
-
return /* @__PURE__ */
|
|
8510
|
+
return /* @__PURE__ */ jsx166(Display, { ...commonProps });
|
|
8484
8511
|
case "heading":
|
|
8485
|
-
return /* @__PURE__ */
|
|
8512
|
+
return /* @__PURE__ */ jsx166(Heading, { ...commonProps });
|
|
8486
8513
|
case "paragraph":
|
|
8487
|
-
return /* @__PURE__ */
|
|
8514
|
+
return /* @__PURE__ */ jsx166(Paragraph, { ...commonProps });
|
|
8488
8515
|
case "title":
|
|
8489
|
-
return /* @__PURE__ */
|
|
8516
|
+
return /* @__PURE__ */ jsx166(Title2, { ...commonProps });
|
|
8490
8517
|
default:
|
|
8491
8518
|
return null;
|
|
8492
8519
|
}
|
|
@@ -8527,11 +8554,11 @@ var Typography = /* @__PURE__ */ __name((props) => {
|
|
|
8527
8554
|
}, "createMediaProps");
|
|
8528
8555
|
return (
|
|
8529
8556
|
// Fragment없이도 원래 동작해야하는데 liner-web에서 JSX.Element가 배열로 오면 에러 띄워서 임시로 Fragment로 래핑합니다.
|
|
8530
|
-
/* @__PURE__ */
|
|
8557
|
+
/* @__PURE__ */ jsx166(Fragment3, { children: breakPointKeyArray.map((breakPointKey) => {
|
|
8531
8558
|
const variable = props[breakPointKey];
|
|
8532
8559
|
const isExistVariable = !!variable;
|
|
8533
8560
|
if (isExistVariable) {
|
|
8534
|
-
return /* @__PURE__ */ createElement2(Media, { ...createMediaProps(breakPointKey), key: breakPointKey }, /* @__PURE__ */
|
|
8561
|
+
return /* @__PURE__ */ createElement2(Media, { ...createMediaProps(breakPointKey), key: breakPointKey }, /* @__PURE__ */ jsx166(TypographyImpl, { ...variable, text: variable.text || children }));
|
|
8535
8562
|
}
|
|
8536
8563
|
return null;
|
|
8537
8564
|
}) })
|
|
@@ -8562,7 +8589,7 @@ var style_module_default5 = {
|
|
|
8562
8589
|
// src/components/Popover/index.tsx
|
|
8563
8590
|
import { cva as cva4 } from "class-variance-authority";
|
|
8564
8591
|
import { clsx as clsx8 } from "clsx";
|
|
8565
|
-
import { Fragment as Fragment4, jsx as
|
|
8592
|
+
import { Fragment as Fragment4, jsx as jsx167, jsxs as jsxs112 } from "react/jsx-runtime";
|
|
8566
8593
|
var DEFAULT_OFFSET = -6;
|
|
8567
8594
|
var popoverVariants = cva4(style_module_default5.content, {
|
|
8568
8595
|
variants: {
|
|
@@ -8584,9 +8611,9 @@ var popoverTagVariants = cva4([style_module_default5.tag, "lp-sys-typo-caption3-
|
|
|
8584
8611
|
var popoverTitleVariants = cva4([style_module_default5.title, "lp-sys-typo-paragraph3-normal-bold"]);
|
|
8585
8612
|
var popoverDescriptionVariants = cva4([style_module_default5.description, "lp-sys-typo-caption1-normal-regular"]);
|
|
8586
8613
|
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__ */
|
|
8614
|
+
var PopoverRoot = /* @__PURE__ */ __name(({ isOpen, children, onChange }) => /* @__PURE__ */ jsx167(PopoverPrimitive.Root, { open: isOpen, onOpenChange: onChange, children }), "PopoverRoot");
|
|
8615
|
+
var PopoverTrigger = /* @__PURE__ */ __name(({ by }) => /* @__PURE__ */ jsx167(PopoverPrimitive.Trigger, { asChild: true, children: by }), "PopoverTrigger");
|
|
8616
|
+
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
8617
|
"path",
|
|
8591
8618
|
{
|
|
8592
8619
|
fillRule: "evenodd",
|
|
@@ -8613,7 +8640,7 @@ var PopoverContent = React3.forwardRef(
|
|
|
8613
8640
|
children,
|
|
8614
8641
|
container,
|
|
8615
8642
|
...props
|
|
8616
|
-
}, ref) => /* @__PURE__ */
|
|
8643
|
+
}, ref) => /* @__PURE__ */ jsx167(PopoverPrimitive.Portal, { container, children: /* @__PURE__ */ jsxs112(Fragment4, { children: [
|
|
8617
8644
|
/* @__PURE__ */ jsxs112(
|
|
8618
8645
|
PopoverPrimitive.Content,
|
|
8619
8646
|
{
|
|
@@ -8627,22 +8654,22 @@ var PopoverContent = React3.forwardRef(
|
|
|
8627
8654
|
children: [
|
|
8628
8655
|
/* @__PURE__ */ jsxs112("div", { className: style_module_default5.contentContainer, children: [
|
|
8629
8656
|
(tag || icon || onClose) && /* @__PURE__ */ jsxs112("div", { className: style_module_default5.heading, children: [
|
|
8630
|
-
tag && /* @__PURE__ */
|
|
8631
|
-
icon && /* @__PURE__ */
|
|
8632
|
-
/* @__PURE__ */
|
|
8633
|
-
onClose && /* @__PURE__ */
|
|
8657
|
+
tag && /* @__PURE__ */ jsx167("span", { className: popoverTagVariants(), children: tag }),
|
|
8658
|
+
icon && /* @__PURE__ */ jsx167(Icon, { name: icon.name, size: "xs", thick: icon.thick, fill: icon.fill }),
|
|
8659
|
+
/* @__PURE__ */ jsx167("p", { className: popoverTitleVariants(), children: title }),
|
|
8660
|
+
onClose && /* @__PURE__ */ jsx167(
|
|
8634
8661
|
PopoverPrimitive.PopoverClose,
|
|
8635
8662
|
{
|
|
8636
8663
|
className: style_module_default5.closeButton,
|
|
8637
8664
|
onClick: () => {
|
|
8638
8665
|
onClose();
|
|
8639
8666
|
},
|
|
8640
|
-
children: /* @__PURE__ */
|
|
8667
|
+
children: /* @__PURE__ */ jsx167(Icon, { name: "close-fill", size: "s", fill: true, thick: true, type: "neutral-label-static-primary" })
|
|
8641
8668
|
}
|
|
8642
8669
|
)
|
|
8643
8670
|
] }),
|
|
8644
|
-
description && /* @__PURE__ */
|
|
8645
|
-
onConfirm && /* @__PURE__ */
|
|
8671
|
+
description && /* @__PURE__ */ jsx167("p", { className: popoverDescriptionVariants(), children: description }),
|
|
8672
|
+
onConfirm && /* @__PURE__ */ jsx167("div", { className: popoverFooterVariants(), children: /* @__PURE__ */ jsx167(
|
|
8646
8673
|
Button,
|
|
8647
8674
|
{
|
|
8648
8675
|
as: "text",
|
|
@@ -8655,11 +8682,11 @@ var PopoverContent = React3.forwardRef(
|
|
|
8655
8682
|
) }),
|
|
8656
8683
|
children
|
|
8657
8684
|
] }),
|
|
8658
|
-
/* @__PURE__ */
|
|
8685
|
+
/* @__PURE__ */ jsx167(PopoverPrimitive.Arrow, { asChild: true, children: /* @__PURE__ */ jsx167(PopoverAnchor, { className: clsx8(popoverAnchorVariants({ level })) }) })
|
|
8659
8686
|
]
|
|
8660
8687
|
}
|
|
8661
8688
|
),
|
|
8662
|
-
isOverlay && /* @__PURE__ */
|
|
8689
|
+
isOverlay && /* @__PURE__ */ jsx167("div", { "data-radix-popper-overlay": true, className: style_module_default5.overlay })
|
|
8663
8690
|
] }) })
|
|
8664
8691
|
);
|
|
8665
8692
|
var Popover = Object.assign(PopoverRoot, {
|
|
@@ -8682,14 +8709,14 @@ var style_module_default6 = {
|
|
|
8682
8709
|
// src/components/Tooltip/index.tsx
|
|
8683
8710
|
import { cva as cva5 } from "class-variance-authority";
|
|
8684
8711
|
import clsx9 from "clsx";
|
|
8685
|
-
import { jsx as
|
|
8712
|
+
import { jsx as jsx168 } from "react/jsx-runtime";
|
|
8686
8713
|
var DEFAULT_OFFSET2 = "medium";
|
|
8687
8714
|
var tooltipVariants = cva5([style_module_default6.tooltip, "lp-sys-typo-caption1-normal-medium"]);
|
|
8688
8715
|
var TooltipProvider = TooltipPrimitive.Provider;
|
|
8689
|
-
var TooltipRoot = /* @__PURE__ */ __name(({ children }) => /* @__PURE__ */
|
|
8690
|
-
var TooltipTrigger = /* @__PURE__ */ __name(({ by }) => /* @__PURE__ */
|
|
8716
|
+
var TooltipRoot = /* @__PURE__ */ __name(({ children }) => /* @__PURE__ */ jsx168(TooltipPrimitive.Root, { delayDuration: 0, children }), "TooltipRoot");
|
|
8717
|
+
var TooltipTrigger = /* @__PURE__ */ __name(({ by }) => /* @__PURE__ */ jsx168(TooltipPrimitive.Trigger, { asChild: true, children: by }), "TooltipTrigger");
|
|
8691
8718
|
var TooltipContent = forwardRef8(
|
|
8692
|
-
({ description, position = "top", className, offset = DEFAULT_OFFSET2, collisionPadding, ...props }, ref) => /* @__PURE__ */
|
|
8719
|
+
({ description, position = "top", className, offset = DEFAULT_OFFSET2, collisionPadding, ...props }, ref) => /* @__PURE__ */ jsx168(
|
|
8693
8720
|
TooltipPrimitive.Content,
|
|
8694
8721
|
{
|
|
8695
8722
|
ref,
|
|
@@ -8698,7 +8725,7 @@ var TooltipContent = forwardRef8(
|
|
|
8698
8725
|
collisionPadding,
|
|
8699
8726
|
className: clsx9(tooltipVariants(), className),
|
|
8700
8727
|
...props,
|
|
8701
|
-
children: /* @__PURE__ */
|
|
8728
|
+
children: /* @__PURE__ */ jsx168("p", { className: style_module_default6.tooltipContent, children: description })
|
|
8702
8729
|
}
|
|
8703
8730
|
)
|
|
8704
8731
|
);
|
|
@@ -8730,7 +8757,7 @@ var style_module_default7 = {
|
|
|
8730
8757
|
|
|
8731
8758
|
// src/components/IconButton/index.tsx
|
|
8732
8759
|
import { Slot as Slot2 } from "@radix-ui/react-slot";
|
|
8733
|
-
import { jsx as
|
|
8760
|
+
import { jsx as jsx169 } from "react/jsx-runtime";
|
|
8734
8761
|
var iconButtonSizeIconSizeMap = {
|
|
8735
8762
|
l: "m",
|
|
8736
8763
|
m: "s",
|
|
@@ -8766,7 +8793,7 @@ var iconButtonVariants = cva6([style_module_default7.iconButton], {
|
|
|
8766
8793
|
var IconButton = forwardRef9(
|
|
8767
8794
|
({ asChild, level = "primary", name, thick = false, fill = false, size = "m", className, ...rest }, ref) => {
|
|
8768
8795
|
const Comp = asChild ? Slot2 : "button";
|
|
8769
|
-
return /* @__PURE__ */
|
|
8796
|
+
return /* @__PURE__ */ jsx169(Comp, { ...rest, className: clsx10(iconButtonVariants({ level, size }), className), ref, children: /* @__PURE__ */ jsx169(
|
|
8770
8797
|
Icon,
|
|
8771
8798
|
{
|
|
8772
8799
|
name,
|
|
@@ -8818,7 +8845,7 @@ var style_module_default9 = {
|
|
|
8818
8845
|
|
|
8819
8846
|
// src/components/Label/index.tsx
|
|
8820
8847
|
import { cva as cva7 } from "class-variance-authority";
|
|
8821
|
-
import { jsx as
|
|
8848
|
+
import { jsx as jsx170 } from "react/jsx-runtime";
|
|
8822
8849
|
var defaultLabelVariants = cva7(["lp-sys-typo-paragraph2-normal-medium", style_module_default9.label], {
|
|
8823
8850
|
variants: {
|
|
8824
8851
|
level: {
|
|
@@ -8858,7 +8885,7 @@ var Label = forwardRef10(
|
|
|
8858
8885
|
error = false,
|
|
8859
8886
|
...props
|
|
8860
8887
|
}, ref) => {
|
|
8861
|
-
return /* @__PURE__ */
|
|
8888
|
+
return /* @__PURE__ */ jsx170(
|
|
8862
8889
|
LabelPrimitive.Root,
|
|
8863
8890
|
{
|
|
8864
8891
|
ref,
|
|
@@ -8870,17 +8897,17 @@ var Label = forwardRef10(
|
|
|
8870
8897
|
);
|
|
8871
8898
|
|
|
8872
8899
|
// src/components/CheckBox/index.tsx
|
|
8873
|
-
import { Fragment as Fragment5, jsx as
|
|
8900
|
+
import { Fragment as Fragment5, jsx as jsx171, jsxs as jsxs113 } from "react/jsx-runtime";
|
|
8874
8901
|
var Checkbox = forwardRef11(
|
|
8875
8902
|
({ className, label, description, ...props }, ref) => {
|
|
8876
8903
|
const CheckboxWrapper = /* @__PURE__ */ __name(({ children }) => label ? /* @__PURE__ */ jsxs113(Label, { position: "right", htmlFor: props.id, children: [
|
|
8877
8904
|
/* @__PURE__ */ jsxs113("div", { className: style_module_default8["label-wrapper"], children: [
|
|
8878
8905
|
label,
|
|
8879
|
-
/* @__PURE__ */
|
|
8906
|
+
/* @__PURE__ */ jsx171(Paragraph, { className: style_module_default8.description, size: 3, type: "normal", weight: "regular", children: description })
|
|
8880
8907
|
] }),
|
|
8881
8908
|
children
|
|
8882
|
-
] }) : /* @__PURE__ */
|
|
8883
|
-
return /* @__PURE__ */
|
|
8909
|
+
] }) : /* @__PURE__ */ jsx171(Fragment5, { children }), "CheckboxWrapper");
|
|
8910
|
+
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
8911
|
}
|
|
8885
8912
|
);
|
|
8886
8913
|
|
|
@@ -8899,19 +8926,19 @@ var style_module_default10 = {
|
|
|
8899
8926
|
};
|
|
8900
8927
|
|
|
8901
8928
|
// 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__ */
|
|
8929
|
+
import { Fragment as Fragment6, jsx as jsx172, jsxs as jsxs114 } from "react/jsx-runtime";
|
|
8930
|
+
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");
|
|
8931
|
+
var RadioRoot = forwardRef12(({ className, ...props }, ref) => /* @__PURE__ */ jsx172(RadioGroupPrimitive.Root, { className: clsx13(style_module_default10.radio, className), ...props }));
|
|
8905
8932
|
var RadioItem = forwardRef12(
|
|
8906
8933
|
({ className, label, description, ...props }, ref) => {
|
|
8907
8934
|
const RadioItemWrapper = /* @__PURE__ */ __name(({ children }) => label ? /* @__PURE__ */ jsxs114(Label, { position: "right", htmlFor: props.id, children: [
|
|
8908
8935
|
/* @__PURE__ */ jsxs114("div", { className: style_module_default10["label-wrapper"], children: [
|
|
8909
8936
|
label,
|
|
8910
|
-
/* @__PURE__ */
|
|
8937
|
+
/* @__PURE__ */ jsx172(Paragraph, { className: style_module_default10.description, size: 3, type: "normal", weight: "regular", children: description })
|
|
8911
8938
|
] }),
|
|
8912
8939
|
children
|
|
8913
|
-
] }) : /* @__PURE__ */
|
|
8914
|
-
return /* @__PURE__ */
|
|
8940
|
+
] }) : /* @__PURE__ */ jsx172(Fragment6, { children }), "RadioItemWrapper");
|
|
8941
|
+
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
8942
|
}
|
|
8916
8943
|
);
|
|
8917
8944
|
var Radio = Object.assign(RadioRoot, {
|
|
@@ -8953,7 +8980,7 @@ var style_module_default11 = {
|
|
|
8953
8980
|
import { cva as cva8 } from "class-variance-authority";
|
|
8954
8981
|
import clsx14 from "clsx";
|
|
8955
8982
|
import { flushSync } from "react-dom";
|
|
8956
|
-
import { Fragment as Fragment7, jsx as
|
|
8983
|
+
import { Fragment as Fragment7, jsx as jsx173, jsxs as jsxs115 } from "react/jsx-runtime";
|
|
8957
8984
|
var defaultTextfieldVariants = cva8(style_module_default11.textfield, {
|
|
8958
8985
|
variants: {
|
|
8959
8986
|
color: {
|
|
@@ -9022,7 +9049,7 @@ var Textfield = forwardRef13((props, ref) => {
|
|
|
9022
9049
|
}, "handleDeidentify");
|
|
9023
9050
|
useImperativeHandle(ref, () => inputRef.current);
|
|
9024
9051
|
return /* @__PURE__ */ jsxs115("div", { className: style_module_default11["textfield-container"], children: [
|
|
9025
|
-
/* @__PURE__ */
|
|
9052
|
+
/* @__PURE__ */ jsx173(
|
|
9026
9053
|
"div",
|
|
9027
9054
|
{
|
|
9028
9055
|
className: clsx14(defaultTextfieldVariants({ color }), {
|
|
@@ -9031,7 +9058,7 @@ var Textfield = forwardRef13((props, ref) => {
|
|
|
9031
9058
|
}),
|
|
9032
9059
|
onClick: handleTextfieldClick,
|
|
9033
9060
|
children: /* @__PURE__ */ jsxs115("div", { className: style_module_default11["input-wrapper"], children: [
|
|
9034
|
-
/* @__PURE__ */
|
|
9061
|
+
/* @__PURE__ */ jsx173(
|
|
9035
9062
|
"input",
|
|
9036
9063
|
{
|
|
9037
9064
|
className: clsx14(style_module_default11.input, {
|
|
@@ -9046,7 +9073,7 @@ var Textfield = forwardRef13((props, ref) => {
|
|
|
9046
9073
|
...rest
|
|
9047
9074
|
}
|
|
9048
9075
|
),
|
|
9049
|
-
/* @__PURE__ */
|
|
9076
|
+
/* @__PURE__ */ jsx173(
|
|
9050
9077
|
Label,
|
|
9051
9078
|
{
|
|
9052
9079
|
className: clsx14(style_module_default11.label, {
|
|
@@ -9059,7 +9086,7 @@ var Textfield = forwardRef13((props, ref) => {
|
|
|
9059
9086
|
}
|
|
9060
9087
|
),
|
|
9061
9088
|
/* @__PURE__ */ jsxs115("div", { className: style_module_default11["input-action-buttons"], children: [
|
|
9062
|
-
textfieldValue && !disabled && /* @__PURE__ */
|
|
9089
|
+
textfieldValue && !disabled && /* @__PURE__ */ jsx173(
|
|
9063
9090
|
IconButton,
|
|
9064
9091
|
{
|
|
9065
9092
|
tabIndex: -1,
|
|
@@ -9074,7 +9101,7 @@ var Textfield = forwardRef13((props, ref) => {
|
|
|
9074
9101
|
}
|
|
9075
9102
|
}
|
|
9076
9103
|
),
|
|
9077
|
-
isPassword && !disabled && /* @__PURE__ */
|
|
9104
|
+
isPassword && !disabled && /* @__PURE__ */ jsx173(
|
|
9078
9105
|
IconButton,
|
|
9079
9106
|
{
|
|
9080
9107
|
tabIndex: -1,
|
|
@@ -9089,15 +9116,15 @@ var Textfield = forwardRef13((props, ref) => {
|
|
|
9089
9116
|
}
|
|
9090
9117
|
}
|
|
9091
9118
|
),
|
|
9092
|
-
buttonProps && /* @__PURE__ */
|
|
9119
|
+
buttonProps && /* @__PURE__ */ jsx173(Button, { ...buttonProps, size: "m", type: "button" })
|
|
9093
9120
|
] })
|
|
9094
9121
|
] })
|
|
9095
9122
|
}
|
|
9096
9123
|
),
|
|
9097
9124
|
displayFooter && /* @__PURE__ */ jsxs115("div", { className: style_module_default11.footer, children: [
|
|
9098
|
-
/* @__PURE__ */
|
|
9099
|
-
/* @__PURE__ */
|
|
9100
|
-
/* @__PURE__ */
|
|
9125
|
+
/* @__PURE__ */ jsx173("div", { className: style_module_default11["error-wrapper"], children: error && /* @__PURE__ */ jsxs115(Fragment7, { children: [
|
|
9126
|
+
/* @__PURE__ */ jsx173(Icon, { name: "exclamationmark-fill", fill: true, thick: true, size: "xs", type: "function-label-negative" }),
|
|
9127
|
+
/* @__PURE__ */ jsx173(Caption, { size: 3, type: "normal", weight: "regular", className: style_module_default11["error-message"], children: error })
|
|
9101
9128
|
] }) }),
|
|
9102
9129
|
maxCharacter && /* @__PURE__ */ jsxs115(Caption, { className: style_module_default11.character, size: 3, type: "normal", weight: "regular", children: [
|
|
9103
9130
|
isControlled ? controlledValue.length : value.length,
|
|
@@ -9126,29 +9153,29 @@ var style_module_default12 = {
|
|
|
9126
9153
|
|
|
9127
9154
|
// src/components/Slider/index.tsx
|
|
9128
9155
|
import * as SliderPrimitive from "@radix-ui/react-slider";
|
|
9129
|
-
import { Fragment as Fragment8, jsx as
|
|
9156
|
+
import { Fragment as Fragment8, jsx as jsx174, jsxs as jsxs116 } from "react/jsx-runtime";
|
|
9130
9157
|
var SliderRoot = forwardRef14((props, ref) => {
|
|
9131
9158
|
const { label, tooltip, rangeLeft, rangeRight, min, max, step = 50, ...rest } = props;
|
|
9132
|
-
return /* @__PURE__ */
|
|
9133
|
-
/* @__PURE__ */
|
|
9159
|
+
return /* @__PURE__ */ jsx174(Fragment8, { children: /* @__PURE__ */ jsxs116(Tooltip.Provider, { children: [
|
|
9160
|
+
/* @__PURE__ */ jsx174(Label, { level: "secondary", size: "m", offset: "high", className: style_module_default12.label, children: label }),
|
|
9134
9161
|
/* @__PURE__ */ jsxs116("div", { className: style_module_default12["slider-wrapper"], children: [
|
|
9135
9162
|
/* @__PURE__ */ jsxs116("div", { className: style_module_default12["slider-option-wrapper"], children: [
|
|
9136
|
-
/* @__PURE__ */
|
|
9137
|
-
/* @__PURE__ */
|
|
9163
|
+
/* @__PURE__ */ jsx174(Icon, { name: rangeLeft.icon, size: "xs" }),
|
|
9164
|
+
/* @__PURE__ */ jsx174(Caption, { size: 1, type: "normal", weight: "medium", className: style_module_default12.optionText, children: rangeLeft.text })
|
|
9138
9165
|
] }),
|
|
9139
9166
|
/* @__PURE__ */ jsxs116(SliderPrimitive.Root, { ...rest, step, className: style_module_default12["slider-root"], ref, children: [
|
|
9140
9167
|
/* @__PURE__ */ jsxs116(SliderPrimitive.Track, { className: style_module_default12["slider-track"], children: [
|
|
9141
|
-
Array.from({ length: 100 / step + 1 }).map((_, index) => /* @__PURE__ */
|
|
9142
|
-
/* @__PURE__ */
|
|
9168
|
+
Array.from({ length: 100 / step + 1 }).map((_, index) => /* @__PURE__ */ jsx174("span", { className: style_module_default12["slider-step"] }, index)),
|
|
9169
|
+
/* @__PURE__ */ jsx174(SliderPrimitive.Range, { className: style_module_default12["slider-range"] })
|
|
9143
9170
|
] }),
|
|
9144
9171
|
/* @__PURE__ */ jsxs116(Tooltip, { children: [
|
|
9145
|
-
/* @__PURE__ */
|
|
9146
|
-
/* @__PURE__ */
|
|
9172
|
+
/* @__PURE__ */ jsx174(Tooltip.Trigger, { by: /* @__PURE__ */ jsx174(SliderPrimitive.Thumb, { className: style_module_default12["slider-thumb"] }) }),
|
|
9173
|
+
/* @__PURE__ */ jsx174(Tooltip.Content, { description: tooltip })
|
|
9147
9174
|
] })
|
|
9148
9175
|
] }),
|
|
9149
9176
|
/* @__PURE__ */ jsxs116("div", { className: style_module_default12["slider-option-wrapper"], children: [
|
|
9150
|
-
/* @__PURE__ */
|
|
9151
|
-
/* @__PURE__ */
|
|
9177
|
+
/* @__PURE__ */ jsx174(Icon, { name: rangeRight.icon, size: "xs" }),
|
|
9178
|
+
/* @__PURE__ */ jsx174(Caption, { size: 1, type: "normal", weight: "medium", className: style_module_default12.optionText, children: rangeRight.text })
|
|
9152
9179
|
] })
|
|
9153
9180
|
] })
|
|
9154
9181
|
] }) });
|
|
@@ -9192,11 +9219,11 @@ import {
|
|
|
9192
9219
|
useState as useState4
|
|
9193
9220
|
} from "react";
|
|
9194
9221
|
import clsx15 from "clsx";
|
|
9195
|
-
import { jsx as
|
|
9196
|
-
var Badge = /* @__PURE__ */ __name(({ children }) => /* @__PURE__ */
|
|
9222
|
+
import { jsx as jsx175, jsxs as jsxs117 } from "react/jsx-runtime";
|
|
9223
|
+
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
9224
|
var SelectContent = forwardRef15((props, ref) => {
|
|
9198
9225
|
const { id, isResponsive, popSide, sideOffset, listLabel, children, container } = props;
|
|
9199
|
-
return /* @__PURE__ */
|
|
9226
|
+
return /* @__PURE__ */ jsx175(SelectPrimitive.Portal, { container, children: /* @__PURE__ */ jsx175(
|
|
9200
9227
|
SelectPrimitive.Content,
|
|
9201
9228
|
{
|
|
9202
9229
|
id: `select-content-${id}`,
|
|
@@ -9219,11 +9246,11 @@ var SelectContent = forwardRef15((props, ref) => {
|
|
|
9219
9246
|
sideOffset,
|
|
9220
9247
|
avoidCollisions: false,
|
|
9221
9248
|
children: /* @__PURE__ */ jsxs117(ScrollArea.Root, { className: style_module_default13.scrollAreaRoot, type: "always", children: [
|
|
9222
|
-
/* @__PURE__ */
|
|
9223
|
-
listLabel && /* @__PURE__ */
|
|
9249
|
+
/* @__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: [
|
|
9250
|
+
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
9251
|
children
|
|
9225
9252
|
] }) }) }),
|
|
9226
|
-
/* @__PURE__ */
|
|
9253
|
+
/* @__PURE__ */ jsx175(ScrollArea.Scrollbar, { className: style_module_default13.scrollAreaScrollbar, orientation: "vertical", children: /* @__PURE__ */ jsx175(ScrollArea.Thumb, { className: style_module_default13.scrollAreaThumb }) })
|
|
9227
9254
|
] })
|
|
9228
9255
|
}
|
|
9229
9256
|
) });
|
|
@@ -9253,8 +9280,8 @@ var SelectRoot = forwardRef15((props, ref) => {
|
|
|
9253
9280
|
}, [open]);
|
|
9254
9281
|
return /* @__PURE__ */ jsxs117("div", { children: [
|
|
9255
9282
|
/* @__PURE__ */ jsxs117("div", { className: style_module_default13["label-container"], children: [
|
|
9256
|
-
/* @__PURE__ */
|
|
9257
|
-
badge && /* @__PURE__ */
|
|
9283
|
+
/* @__PURE__ */ jsx175(Label, { className: style_module_default13["select-label"], level: "secondary", size: "m", offset: "low", htmlFor: id, children: label }),
|
|
9284
|
+
badge && /* @__PURE__ */ jsx175(Badge, { children: badge })
|
|
9258
9285
|
] }),
|
|
9259
9286
|
/* @__PURE__ */ jsxs117(
|
|
9260
9287
|
SelectPrimitive.Root,
|
|
@@ -9267,10 +9294,10 @@ var SelectRoot = forwardRef15((props, ref) => {
|
|
|
9267
9294
|
},
|
|
9268
9295
|
children: [
|
|
9269
9296
|
/* @__PURE__ */ jsxs117(SelectPrimitive.Trigger, { className: style_module_default13.trigger, ref, id, children: [
|
|
9270
|
-
/* @__PURE__ */
|
|
9271
|
-
/* @__PURE__ */
|
|
9297
|
+
/* @__PURE__ */ jsx175(SelectPrimitive.Value, { className: style_module_default13.placeholder, placeholder }),
|
|
9298
|
+
/* @__PURE__ */ jsx175(SelectPrimitive.Icon, { className: style_module_default13.openIcon, children: /* @__PURE__ */ jsx175(Icon, { name: "arrow-drop-down", fill: true, thick: true, size: "xs" }) })
|
|
9272
9299
|
] }),
|
|
9273
|
-
/* @__PURE__ */
|
|
9300
|
+
/* @__PURE__ */ jsx175(SelectContent, { ...contentProps })
|
|
9274
9301
|
]
|
|
9275
9302
|
}
|
|
9276
9303
|
)
|
|
@@ -9287,9 +9314,9 @@ var SelectItem = /* @__PURE__ */ __name(({ value, text, disabled, icon, onClick
|
|
|
9287
9314
|
onClick?.();
|
|
9288
9315
|
},
|
|
9289
9316
|
children: [
|
|
9290
|
-
/* @__PURE__ */
|
|
9291
|
-
icon && /* @__PURE__ */
|
|
9292
|
-
/* @__PURE__ */
|
|
9317
|
+
/* @__PURE__ */ jsx175(SelectPrimitive.ItemText, { children: /* @__PURE__ */ jsx175(Paragraph, { size: 3, type: "normal", weight: "medium", children: text ?? value }) }),
|
|
9318
|
+
icon && /* @__PURE__ */ jsx175(SelectPrimitive.Icon, { className: style_module_default13.icon, children: /* @__PURE__ */ jsx175(Icon, { size: "xs", ...icon }) }),
|
|
9319
|
+
/* @__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
9320
|
]
|
|
9294
9321
|
}
|
|
9295
9322
|
), "SelectItem");
|
|
@@ -9309,11 +9336,11 @@ import { useState as useState5 } from "react";
|
|
|
9309
9336
|
|
|
9310
9337
|
// src/hooks/collection.tsx
|
|
9311
9338
|
import { createContext, useContext, useMemo } from "react";
|
|
9312
|
-
import { jsx as
|
|
9339
|
+
import { jsx as jsx176 } from "react/jsx-runtime";
|
|
9313
9340
|
var CollectionContext = createContext(void 0);
|
|
9314
9341
|
var CollectionProvider = /* @__PURE__ */ __name(({ value, onChangeValue, children }) => {
|
|
9315
9342
|
const contextValue = useMemo(() => ({ value, onChangeValue }), [value, onChangeValue]);
|
|
9316
|
-
return /* @__PURE__ */
|
|
9343
|
+
return /* @__PURE__ */ jsx176(CollectionContext.Provider, { value: contextValue, children });
|
|
9317
9344
|
}, "CollectionProvider");
|
|
9318
9345
|
var useCollectionContext = /* @__PURE__ */ __name(() => {
|
|
9319
9346
|
const context = useContext(CollectionContext);
|
|
@@ -9325,9 +9352,9 @@ var useCollectionContext = /* @__PURE__ */ __name(() => {
|
|
|
9325
9352
|
|
|
9326
9353
|
// src/components/List/index.tsx
|
|
9327
9354
|
import clsx16 from "clsx";
|
|
9328
|
-
import { jsx as
|
|
9355
|
+
import { jsx as jsx177, jsxs as jsxs118 } from "react/jsx-runtime";
|
|
9329
9356
|
var ListRoot = /* @__PURE__ */ __name(({ children, className, ...props }) => {
|
|
9330
|
-
return /* @__PURE__ */
|
|
9357
|
+
return /* @__PURE__ */ jsx177(CollectionProvider, { ...props, children: /* @__PURE__ */ jsx177("ul", { className: clsx16(style_module_default14.list, className), children }) });
|
|
9331
9358
|
}, "ListRoot");
|
|
9332
9359
|
var Item3 = /* @__PURE__ */ __name(({ value, text, disabled, icon, onClick }) => {
|
|
9333
9360
|
const [isFocused, setIsFocused] = useState5(false);
|
|
@@ -9352,8 +9379,8 @@ var Item3 = /* @__PURE__ */ __name(({ value, text, disabled, icon, onClick }) =>
|
|
|
9352
9379
|
onChangeValue?.(value);
|
|
9353
9380
|
},
|
|
9354
9381
|
children: [
|
|
9355
|
-
/* @__PURE__ */
|
|
9356
|
-
(icon || isSelected) && /* @__PURE__ */
|
|
9382
|
+
/* @__PURE__ */ jsx177(Paragraph, { size: 3, type: "normal", weight: "medium", children: text }),
|
|
9383
|
+
(icon || isSelected) && /* @__PURE__ */ jsx177(Icon, { className: style_module_default14.icon, size: "xs", ...iconProps })
|
|
9357
9384
|
]
|
|
9358
9385
|
}
|
|
9359
9386
|
);
|