@liner-fe/prism 2.1.50 → 2.1.52
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/paragraph.d.ts +8 -0
- package/lib/index.cjs +195 -152
- package/lib/index.cjs.map +4 -4
- package/lib/index.mjs +195 -152
- package/lib/index.mjs.map +4 -4
- package/lib/type/index.d.ts +1 -1
- package/package.json +2 -2
package/lib/index.mjs
CHANGED
|
@@ -7724,6 +7724,48 @@ var ICHelp = /* @__PURE__ */ __name((props) => {
|
|
|
7724
7724
|
);
|
|
7725
7725
|
}, "ICHelp");
|
|
7726
7726
|
|
|
7727
|
+
// src/assets/paragraph.tsx
|
|
7728
|
+
import { jsx as jsx164, jsxs as jsxs114 } from "react/jsx-runtime";
|
|
7729
|
+
var ICParagraph = /* @__PURE__ */ __name((props) => {
|
|
7730
|
+
const { thick = false, fill = false, size = 32, color = "#1E1E1F" } = props;
|
|
7731
|
+
if (thick) {
|
|
7732
|
+
return /* @__PURE__ */ jsxs114(
|
|
7733
|
+
"svg",
|
|
7734
|
+
{
|
|
7735
|
+
...props,
|
|
7736
|
+
width: size,
|
|
7737
|
+
height: size,
|
|
7738
|
+
viewBox: "0 0 48 48",
|
|
7739
|
+
fill: "none",
|
|
7740
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7741
|
+
children: [
|
|
7742
|
+
/* @__PURE__ */ jsx164("path", { d: "M39 7H9V11H39V7Z", fill: color }),
|
|
7743
|
+
/* @__PURE__ */ jsx164("path", { d: "M39 17H9V21H39V17Z", fill: color }),
|
|
7744
|
+
/* @__PURE__ */ jsx164("path", { d: "M9 27H39V31H9V27Z", fill: color }),
|
|
7745
|
+
/* @__PURE__ */ jsx164("path", { d: "M27 37H9V41H27V37Z", fill: color })
|
|
7746
|
+
]
|
|
7747
|
+
}
|
|
7748
|
+
);
|
|
7749
|
+
}
|
|
7750
|
+
return /* @__PURE__ */ jsxs114(
|
|
7751
|
+
"svg",
|
|
7752
|
+
{
|
|
7753
|
+
...props,
|
|
7754
|
+
width: size,
|
|
7755
|
+
height: size,
|
|
7756
|
+
viewBox: "0 0 48 48",
|
|
7757
|
+
fill: "none",
|
|
7758
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7759
|
+
children: [
|
|
7760
|
+
/* @__PURE__ */ jsx164("path", { d: "M39 7.5H9V10.5H39V7.5Z", fill: color }),
|
|
7761
|
+
/* @__PURE__ */ jsx164("path", { d: "M39 17.5H9V20.5H39V17.5Z", fill: color }),
|
|
7762
|
+
/* @__PURE__ */ jsx164("path", { d: "M9 27.5H39V30.5H9V27.5Z", fill: color }),
|
|
7763
|
+
/* @__PURE__ */ jsx164("path", { d: "M27 37.5H9V40.5H27V37.5Z", fill: color })
|
|
7764
|
+
]
|
|
7765
|
+
}
|
|
7766
|
+
);
|
|
7767
|
+
}, "ICParagraph");
|
|
7768
|
+
|
|
7727
7769
|
// src/utils/icon.ts
|
|
7728
7770
|
var iconMap = {
|
|
7729
7771
|
"close-fill": ICCloseFill,
|
|
@@ -7888,7 +7930,8 @@ var iconMap = {
|
|
|
7888
7930
|
"zoom-in": ICZoomIn,
|
|
7889
7931
|
"zoom-out": ICZoomOut,
|
|
7890
7932
|
focus: ICFocus,
|
|
7891
|
-
help: ICHelp
|
|
7933
|
+
help: ICHelp,
|
|
7934
|
+
paragraph: ICParagraph
|
|
7892
7935
|
};
|
|
7893
7936
|
|
|
7894
7937
|
// src/utils/object.ts
|
|
@@ -7994,7 +8037,7 @@ var style_module_default2 = {
|
|
|
7994
8037
|
};
|
|
7995
8038
|
|
|
7996
8039
|
// src/components/Icon/index.tsx
|
|
7997
|
-
import { jsx as
|
|
8040
|
+
import { jsx as jsx165 } from "react/jsx-runtime";
|
|
7998
8041
|
var iconSizeMap = {
|
|
7999
8042
|
xs: 16,
|
|
8000
8043
|
s: 20,
|
|
@@ -8048,7 +8091,7 @@ var Icon = /* @__PURE__ */ __name((props) => {
|
|
|
8048
8091
|
} = props;
|
|
8049
8092
|
const IconComponent = getIconComponent(name, iconMap);
|
|
8050
8093
|
const iconSize = iconSizeMap[size];
|
|
8051
|
-
return /* @__PURE__ */
|
|
8094
|
+
return /* @__PURE__ */ jsx165(
|
|
8052
8095
|
IconComponent,
|
|
8053
8096
|
{
|
|
8054
8097
|
...rest,
|
|
@@ -8077,7 +8120,7 @@ var style_module_default3 = {
|
|
|
8077
8120
|
|
|
8078
8121
|
// src/components/Loading/index.tsx
|
|
8079
8122
|
import { cva as cva2 } from "cva";
|
|
8080
|
-
import { jsx as
|
|
8123
|
+
import { jsx as jsx166, jsxs as jsxs115 } from "react/jsx-runtime";
|
|
8081
8124
|
var loadingVariants = cva2({
|
|
8082
8125
|
base: [style_module_default3["loading-dot"]],
|
|
8083
8126
|
variants: {
|
|
@@ -8096,15 +8139,15 @@ var loadingVariants = cva2({
|
|
|
8096
8139
|
}
|
|
8097
8140
|
});
|
|
8098
8141
|
var Loading = /* @__PURE__ */ __name(({ size = "m", level = "inverse-label-static-primary" }) => {
|
|
8099
|
-
return /* @__PURE__ */
|
|
8100
|
-
/* @__PURE__ */
|
|
8101
|
-
/* @__PURE__ */
|
|
8102
|
-
/* @__PURE__ */
|
|
8142
|
+
return /* @__PURE__ */ jsxs115("div", { className: style_module_default3.loading, children: [
|
|
8143
|
+
/* @__PURE__ */ jsx166("div", { className: loadingVariants({ size, level }) }),
|
|
8144
|
+
/* @__PURE__ */ jsx166("div", { className: loadingVariants({ size, level }) }),
|
|
8145
|
+
/* @__PURE__ */ jsx166("div", { className: loadingVariants({ size, level }) })
|
|
8103
8146
|
] });
|
|
8104
8147
|
}, "Loading");
|
|
8105
8148
|
|
|
8106
8149
|
// src/components/Button/index.tsx
|
|
8107
|
-
import { Fragment as Fragment4, jsx as
|
|
8150
|
+
import { Fragment as Fragment4, jsx as jsx167, jsxs as jsxs116 } from "react/jsx-runtime";
|
|
8108
8151
|
var buttonIconSizeMap = {
|
|
8109
8152
|
cta: "m",
|
|
8110
8153
|
l: "s",
|
|
@@ -8237,13 +8280,13 @@ var DefaultButton = forwardRef(
|
|
|
8237
8280
|
type: buttonFillLevelIconTypeMap[`${fill}`][level],
|
|
8238
8281
|
fillType: buttonFillLevelIconFillTypeMap[`${fill}`][level]
|
|
8239
8282
|
};
|
|
8240
|
-
const renderContent = /* @__PURE__ */ __name((children2) => /* @__PURE__ */
|
|
8241
|
-
!!leftIcon && !isLoading && /* @__PURE__ */
|
|
8242
|
-
isLoading ? !!leftIcon || !!rightIcon ? /* @__PURE__ */
|
|
8243
|
-
/* @__PURE__ */
|
|
8244
|
-
/* @__PURE__ */
|
|
8245
|
-
] }) : /* @__PURE__ */
|
|
8246
|
-
!!rightIcon && !isLoading && /* @__PURE__ */
|
|
8283
|
+
const renderContent = /* @__PURE__ */ __name((children2) => /* @__PURE__ */ jsxs116("span", { className: clsx2(defaultButtonChildrenVariants({ size })), children: [
|
|
8284
|
+
!!leftIcon && !isLoading && /* @__PURE__ */ jsx167(Icon, { ...iconProps, ...leftIcon }),
|
|
8285
|
+
isLoading ? !!leftIcon || !!rightIcon ? /* @__PURE__ */ jsxs116(Fragment4, { children: [
|
|
8286
|
+
/* @__PURE__ */ jsx167(Loading, { size: buttonLoadingSizeMap[size], level: buttonLoadingLevelMap[level] }),
|
|
8287
|
+
/* @__PURE__ */ jsx167("p", { className: style_module_default.content, children: children2 })
|
|
8288
|
+
] }) : /* @__PURE__ */ jsx167(Loading, { size: buttonLoadingSizeMap[size], level: buttonLoadingLevelMap[level] }) : /* @__PURE__ */ jsx167("p", { className: style_module_default.content, children: children2 }),
|
|
8289
|
+
!!rightIcon && !isLoading && /* @__PURE__ */ jsx167(Icon, { ...iconProps, ...rightIcon })
|
|
8247
8290
|
] }), "renderContent");
|
|
8248
8291
|
if (asChild) {
|
|
8249
8292
|
const parent = Children.only(children);
|
|
@@ -8259,7 +8302,7 @@ var DefaultButton = forwardRef(
|
|
|
8259
8302
|
);
|
|
8260
8303
|
return ParentClone;
|
|
8261
8304
|
}
|
|
8262
|
-
return /* @__PURE__ */
|
|
8305
|
+
return /* @__PURE__ */ jsx167(
|
|
8263
8306
|
"button",
|
|
8264
8307
|
{
|
|
8265
8308
|
...rest,
|
|
@@ -8274,7 +8317,7 @@ var DefaultButton = forwardRef(
|
|
|
8274
8317
|
}
|
|
8275
8318
|
);
|
|
8276
8319
|
DefaultButton.displayName = "DefaultButton";
|
|
8277
|
-
var Button = forwardRef((props, ref) => /* @__PURE__ */
|
|
8320
|
+
var Button = forwardRef((props, ref) => /* @__PURE__ */ jsx167(DefaultButton, { ...props, ref }));
|
|
8278
8321
|
Button.displayName = "Button";
|
|
8279
8322
|
|
|
8280
8323
|
// src/hooks/useToast.ts
|
|
@@ -8371,10 +8414,10 @@ var colorVariants = cva4({
|
|
|
8371
8414
|
});
|
|
8372
8415
|
|
|
8373
8416
|
// src/components/Typography/Set/Paragraph.tsx
|
|
8374
|
-
import { jsx as
|
|
8417
|
+
import { jsx as jsx168 } from "react/jsx-runtime";
|
|
8375
8418
|
var Paragraph = forwardRef2(
|
|
8376
8419
|
({ size, type, weight, className, children, color = "neutral-label-primary", as: Element = "p", ...rest }, ref) => {
|
|
8377
|
-
return /* @__PURE__ */
|
|
8420
|
+
return /* @__PURE__ */ jsx168(
|
|
8378
8421
|
Element,
|
|
8379
8422
|
{
|
|
8380
8423
|
...rest,
|
|
@@ -8865,13 +8908,13 @@ var loading_default = {
|
|
|
8865
8908
|
|
|
8866
8909
|
// src/components/Toast/index.tsx
|
|
8867
8910
|
import { millisecondsInSecond as millisecondsInSecond2 } from "date-fns/constants";
|
|
8868
|
-
import { jsx as
|
|
8911
|
+
import { jsx as jsx169, jsxs as jsxs117 } from "react/jsx-runtime";
|
|
8869
8912
|
import { createElement } from "react";
|
|
8870
8913
|
var Toaster = /* @__PURE__ */ __name(() => {
|
|
8871
8914
|
const list = useRecoilValue(toastAtom);
|
|
8872
|
-
return /* @__PURE__ */
|
|
8915
|
+
return /* @__PURE__ */ jsxs117(Provider, { children: [
|
|
8873
8916
|
list.map((props) => /* @__PURE__ */ createElement(SingleToast, { ...props, key: props.toastId })),
|
|
8874
|
-
/* @__PURE__ */
|
|
8917
|
+
/* @__PURE__ */ jsx169(Viewport, { className: style_module_default4.ToastViewport })
|
|
8875
8918
|
] });
|
|
8876
8919
|
}, "Toaster");
|
|
8877
8920
|
var SingleToast = /* @__PURE__ */ __name((props) => {
|
|
@@ -8913,12 +8956,12 @@ var SingleToast = /* @__PURE__ */ __name((props) => {
|
|
|
8913
8956
|
}, [isLoading]);
|
|
8914
8957
|
const renderIcon = /* @__PURE__ */ __name(() => {
|
|
8915
8958
|
if (!icon) return null;
|
|
8916
|
-
return /* @__PURE__ */
|
|
8959
|
+
return /* @__PURE__ */ jsx169("i", { className: style_module_default4.Icon, children: /* @__PURE__ */ jsx169(Icon, { ...icon, size: "m" }) });
|
|
8917
8960
|
}, "renderIcon");
|
|
8918
|
-
return /* @__PURE__ */
|
|
8919
|
-
isLoading && !toastSuccess.current ? /* @__PURE__ */
|
|
8920
|
-
/* @__PURE__ */
|
|
8921
|
-
/* @__PURE__ */
|
|
8961
|
+
return /* @__PURE__ */ jsxs117(Root, { className: style_module_default4.ToastRoot, open: isOpen, ...props, children: [
|
|
8962
|
+
isLoading && !toastSuccess.current ? /* @__PURE__ */ jsx169("div", { ref: lottieRef, style: { width: "24px", height: "24px" } }) : renderIcon(),
|
|
8963
|
+
/* @__PURE__ */ jsxs117(Title, { className: style_module_default4.ToastTitle, children: [
|
|
8964
|
+
/* @__PURE__ */ jsx169(
|
|
8922
8965
|
Paragraph,
|
|
8923
8966
|
{
|
|
8924
8967
|
className: style_module_default4.TitleText,
|
|
@@ -8929,7 +8972,7 @@ var SingleToast = /* @__PURE__ */ __name((props) => {
|
|
|
8929
8972
|
children: message
|
|
8930
8973
|
}
|
|
8931
8974
|
),
|
|
8932
|
-
button && /* @__PURE__ */
|
|
8975
|
+
button && /* @__PURE__ */ jsx169(
|
|
8933
8976
|
Button,
|
|
8934
8977
|
{
|
|
8935
8978
|
onClick: () => {
|
|
@@ -8953,11 +8996,11 @@ var SingleToast = /* @__PURE__ */ __name((props) => {
|
|
|
8953
8996
|
// src/components/Typography/Set/Heading.tsx
|
|
8954
8997
|
import { forwardRef as forwardRef3 } from "react";
|
|
8955
8998
|
import clsx4 from "clsx";
|
|
8956
|
-
import { jsx as
|
|
8999
|
+
import { jsx as jsx170 } from "react/jsx-runtime";
|
|
8957
9000
|
var Heading = forwardRef3(
|
|
8958
9001
|
({ size, children, type, className, color = "neutral-label-primary", as, ...rest }, ref) => {
|
|
8959
9002
|
const Element = as || `h${size}`;
|
|
8960
|
-
return /* @__PURE__ */
|
|
9003
|
+
return /* @__PURE__ */ jsx170(
|
|
8961
9004
|
Element,
|
|
8962
9005
|
{
|
|
8963
9006
|
...rest,
|
|
@@ -8972,10 +9015,10 @@ var Heading = forwardRef3(
|
|
|
8972
9015
|
// src/components/Typography/Set/Caption.tsx
|
|
8973
9016
|
import clsx5 from "clsx";
|
|
8974
9017
|
import { forwardRef as forwardRef4 } from "react";
|
|
8975
|
-
import { jsx as
|
|
9018
|
+
import { jsx as jsx171 } from "react/jsx-runtime";
|
|
8976
9019
|
var Caption = forwardRef4(
|
|
8977
9020
|
({ children, size, weight, type, className, color = "neutral-label-primary", as: Element = "p", ...rest }, ref) => {
|
|
8978
|
-
return /* @__PURE__ */
|
|
9021
|
+
return /* @__PURE__ */ jsx171(
|
|
8979
9022
|
Element,
|
|
8980
9023
|
{
|
|
8981
9024
|
...rest,
|
|
@@ -8995,10 +9038,10 @@ var Caption = forwardRef4(
|
|
|
8995
9038
|
// src/components/Typography/Set/Title.tsx
|
|
8996
9039
|
import { forwardRef as forwardRef5 } from "react";
|
|
8997
9040
|
import clsx6 from "clsx";
|
|
8998
|
-
import { jsx as
|
|
9041
|
+
import { jsx as jsx172 } from "react/jsx-runtime";
|
|
8999
9042
|
var Title2 = forwardRef5(
|
|
9000
9043
|
({ weight, size, type, className, children, color = "neutral-label-primary", as: Element = "p", ...rest }, ref) => {
|
|
9001
|
-
return /* @__PURE__ */
|
|
9044
|
+
return /* @__PURE__ */ jsx172(
|
|
9002
9045
|
Element,
|
|
9003
9046
|
{
|
|
9004
9047
|
...rest,
|
|
@@ -9013,10 +9056,10 @@ var Title2 = forwardRef5(
|
|
|
9013
9056
|
// src/components/Typography/Set/Display.tsx
|
|
9014
9057
|
import clsx7 from "clsx";
|
|
9015
9058
|
import { forwardRef as forwardRef6 } from "react";
|
|
9016
|
-
import { jsx as
|
|
9059
|
+
import { jsx as jsx173 } from "react/jsx-runtime";
|
|
9017
9060
|
var Display = forwardRef6(
|
|
9018
9061
|
({ size, type, weight, className, children, color = "neutral-label-primary", as: Element = "p", ...rest }, ref) => {
|
|
9019
|
-
return /* @__PURE__ */
|
|
9062
|
+
return /* @__PURE__ */ jsx173(
|
|
9020
9063
|
Element,
|
|
9021
9064
|
{
|
|
9022
9065
|
...rest,
|
|
@@ -9049,7 +9092,7 @@ var rootMediaStyle = AppMedia.createMediaStyle();
|
|
|
9049
9092
|
var { MediaContextProvider, Media } = AppMedia;
|
|
9050
9093
|
|
|
9051
9094
|
// src/components/Typography/Responsive/index.tsx
|
|
9052
|
-
import { Fragment as Fragment5, jsx as
|
|
9095
|
+
import { Fragment as Fragment5, jsx as jsx174 } from "react/jsx-runtime";
|
|
9053
9096
|
import { createElement as createElement2 } from "react";
|
|
9054
9097
|
var TypographyImpl = /* @__PURE__ */ __name(({ level, text, ...rest }) => {
|
|
9055
9098
|
const commonProps = {
|
|
@@ -9058,15 +9101,15 @@ var TypographyImpl = /* @__PURE__ */ __name(({ level, text, ...rest }) => {
|
|
|
9058
9101
|
};
|
|
9059
9102
|
switch (level) {
|
|
9060
9103
|
case "caption":
|
|
9061
|
-
return /* @__PURE__ */
|
|
9104
|
+
return /* @__PURE__ */ jsx174(Caption, { ...commonProps });
|
|
9062
9105
|
case "display":
|
|
9063
|
-
return /* @__PURE__ */
|
|
9106
|
+
return /* @__PURE__ */ jsx174(Display, { ...commonProps });
|
|
9064
9107
|
case "heading":
|
|
9065
|
-
return /* @__PURE__ */
|
|
9108
|
+
return /* @__PURE__ */ jsx174(Heading, { ...commonProps });
|
|
9066
9109
|
case "paragraph":
|
|
9067
|
-
return /* @__PURE__ */
|
|
9110
|
+
return /* @__PURE__ */ jsx174(Paragraph, { ...commonProps });
|
|
9068
9111
|
case "title":
|
|
9069
|
-
return /* @__PURE__ */
|
|
9112
|
+
return /* @__PURE__ */ jsx174(Title2, { ...commonProps });
|
|
9070
9113
|
default:
|
|
9071
9114
|
return null;
|
|
9072
9115
|
}
|
|
@@ -9107,11 +9150,11 @@ var Typography = /* @__PURE__ */ __name((props) => {
|
|
|
9107
9150
|
}, "createMediaProps");
|
|
9108
9151
|
return (
|
|
9109
9152
|
// Fragment없이도 원래 동작해야하는데 liner-web에서 JSX.Element가 배열로 오면 에러 띄워서 임시로 Fragment로 래핑합니다.
|
|
9110
|
-
/* @__PURE__ */
|
|
9153
|
+
/* @__PURE__ */ jsx174(Fragment5, { children: breakPointKeyArray.map((breakPointKey) => {
|
|
9111
9154
|
const variable = props[breakPointKey];
|
|
9112
9155
|
const isExistVariable = !!variable;
|
|
9113
9156
|
if (isExistVariable) {
|
|
9114
|
-
return /* @__PURE__ */ createElement2(Media, { ...createMediaProps(breakPointKey), key: breakPointKey }, /* @__PURE__ */
|
|
9157
|
+
return /* @__PURE__ */ createElement2(Media, { ...createMediaProps(breakPointKey), key: breakPointKey }, /* @__PURE__ */ jsx174(TypographyImpl, { ...variable, text: variable.text || children }));
|
|
9115
9158
|
}
|
|
9116
9159
|
return null;
|
|
9117
9160
|
}) })
|
|
@@ -9165,7 +9208,7 @@ var style_module_default7 = {
|
|
|
9165
9208
|
// src/components/TextButton/index.tsx
|
|
9166
9209
|
import { Children as Children2, cloneElement as cloneElement2, forwardRef as forwardRef7 } from "react";
|
|
9167
9210
|
import clsx8 from "clsx";
|
|
9168
|
-
import { jsx as
|
|
9211
|
+
import { jsx as jsx175, jsxs as jsxs118 } from "react/jsx-runtime";
|
|
9169
9212
|
var textButtonLevelIconTypeMap = {
|
|
9170
9213
|
primary: "brand-label-primary",
|
|
9171
9214
|
secondary: "neutral-label-primary",
|
|
@@ -9222,10 +9265,10 @@ var TextButton = forwardRef7(
|
|
|
9222
9265
|
fillType: textButtonLevelIconFillTypeMap[level],
|
|
9223
9266
|
...icon
|
|
9224
9267
|
}), "getIconProps");
|
|
9225
|
-
const renderContent = /* @__PURE__ */ __name((children2) => /* @__PURE__ */
|
|
9226
|
-
leftIcon && /* @__PURE__ */
|
|
9227
|
-
/* @__PURE__ */
|
|
9228
|
-
rightIcon && /* @__PURE__ */
|
|
9268
|
+
const renderContent = /* @__PURE__ */ __name((children2) => /* @__PURE__ */ jsxs118("span", { className: style_module_default7["text-children"], children: [
|
|
9269
|
+
leftIcon && /* @__PURE__ */ jsx175(Icon, { ...getIconProps(leftIcon) }),
|
|
9270
|
+
/* @__PURE__ */ jsx175("p", { children: children2 }),
|
|
9271
|
+
rightIcon && /* @__PURE__ */ jsx175(Icon, { ...getIconProps(rightIcon) })
|
|
9229
9272
|
] }), "renderContent");
|
|
9230
9273
|
if (asChild) {
|
|
9231
9274
|
const parent = Children2.only(children);
|
|
@@ -9239,7 +9282,7 @@ var TextButton = forwardRef7(
|
|
|
9239
9282
|
renderContent(parent.props.children)
|
|
9240
9283
|
);
|
|
9241
9284
|
}
|
|
9242
|
-
return /* @__PURE__ */
|
|
9285
|
+
return /* @__PURE__ */ jsx175(
|
|
9243
9286
|
"button",
|
|
9244
9287
|
{
|
|
9245
9288
|
className: clsx8(textButtonVariants({ level, thick, underline, size }), className),
|
|
@@ -9253,7 +9296,7 @@ var TextButton = forwardRef7(
|
|
|
9253
9296
|
TextButton.displayName = "TextButton";
|
|
9254
9297
|
|
|
9255
9298
|
// src/components/Popover/index.tsx
|
|
9256
|
-
import { Fragment as Fragment6, jsx as
|
|
9299
|
+
import { Fragment as Fragment6, jsx as jsx176, jsxs as jsxs119 } from "react/jsx-runtime";
|
|
9257
9300
|
var DEFAULT_OFFSET = -6;
|
|
9258
9301
|
var popoverVariants = cva6({
|
|
9259
9302
|
base: style_module_default6.content,
|
|
@@ -9277,9 +9320,9 @@ var popoverTagVariants = cva6({ base: [style_module_default6.tag, "lp-sys-typo-c
|
|
|
9277
9320
|
var popoverTitleVariants = cva6({ base: [style_module_default6.title, "lp-sys-typo-paragraph3-normal-bold"] });
|
|
9278
9321
|
var popoverDescriptionVariants = cva6({ base: [style_module_default6.description, "lp-sys-typo-caption1-normal-regular"] });
|
|
9279
9322
|
var popoverFooterVariants = cva6({ base: [style_module_default6.footer, "lp-sys-typo-caption1-normal-medium"] });
|
|
9280
|
-
var PopoverRoot = /* @__PURE__ */ __name(({ isOpen, children, onChange }) => /* @__PURE__ */
|
|
9281
|
-
var PopoverTrigger = /* @__PURE__ */ __name(({ by }) => /* @__PURE__ */
|
|
9282
|
-
var PopoverAnchor = /* @__PURE__ */ __name(({ className }) => /* @__PURE__ */
|
|
9323
|
+
var PopoverRoot = /* @__PURE__ */ __name(({ isOpen, children, onChange }) => /* @__PURE__ */ jsx176(PopoverPrimitive.Root, { open: isOpen, onOpenChange: onChange, children }), "PopoverRoot");
|
|
9324
|
+
var PopoverTrigger = /* @__PURE__ */ __name(({ by }) => /* @__PURE__ */ jsx176(PopoverPrimitive.Trigger, { asChild: true, children: by }), "PopoverTrigger");
|
|
9325
|
+
var PopoverAnchor = /* @__PURE__ */ __name(({ className }) => /* @__PURE__ */ jsx176("svg", { className, xmlns: "http://www.w3.org/2000/svg", width: "30", height: "10", viewBox: "0 0 30 10", fill: "none", children: /* @__PURE__ */ jsx176(
|
|
9283
9326
|
"path",
|
|
9284
9327
|
{
|
|
9285
9328
|
fillRule: "evenodd",
|
|
@@ -9306,8 +9349,8 @@ var PopoverContent = React3.forwardRef(
|
|
|
9306
9349
|
children,
|
|
9307
9350
|
container,
|
|
9308
9351
|
...props
|
|
9309
|
-
}, ref) => /* @__PURE__ */
|
|
9310
|
-
/* @__PURE__ */
|
|
9352
|
+
}, ref) => /* @__PURE__ */ jsx176(PopoverPrimitive.Portal, { container, children: /* @__PURE__ */ jsxs119(Fragment6, { children: [
|
|
9353
|
+
/* @__PURE__ */ jsxs119(
|
|
9311
9354
|
PopoverPrimitive.Content,
|
|
9312
9355
|
{
|
|
9313
9356
|
ref,
|
|
@@ -9318,24 +9361,24 @@ var PopoverContent = React3.forwardRef(
|
|
|
9318
9361
|
className: clsx9(popoverVariants({ level }), className),
|
|
9319
9362
|
...props,
|
|
9320
9363
|
children: [
|
|
9321
|
-
/* @__PURE__ */
|
|
9322
|
-
(tag || icon || onClose) && /* @__PURE__ */
|
|
9323
|
-
tag && /* @__PURE__ */
|
|
9324
|
-
icon && /* @__PURE__ */
|
|
9325
|
-
/* @__PURE__ */
|
|
9326
|
-
onClose && /* @__PURE__ */
|
|
9364
|
+
/* @__PURE__ */ jsxs119("div", { className: style_module_default6.contentContainer, children: [
|
|
9365
|
+
(tag || icon || onClose) && /* @__PURE__ */ jsxs119("div", { className: style_module_default6.heading, children: [
|
|
9366
|
+
tag && /* @__PURE__ */ jsx176("span", { className: popoverTagVariants(), children: tag }),
|
|
9367
|
+
icon && /* @__PURE__ */ jsx176(Icon, { name: icon.name, size: "xs", thick: icon.thick, fill: icon.fill }),
|
|
9368
|
+
/* @__PURE__ */ jsx176("p", { className: popoverTitleVariants(), children: title }),
|
|
9369
|
+
onClose && /* @__PURE__ */ jsx176(
|
|
9327
9370
|
PopoverPrimitive.PopoverClose,
|
|
9328
9371
|
{
|
|
9329
9372
|
className: style_module_default6.closeButton,
|
|
9330
9373
|
onClick: () => {
|
|
9331
9374
|
onClose();
|
|
9332
9375
|
},
|
|
9333
|
-
children: /* @__PURE__ */
|
|
9376
|
+
children: /* @__PURE__ */ jsx176(Icon, { name: "close-fill", size: "s", fill: true, thick: true, type: "neutral-label-static-primary" })
|
|
9334
9377
|
}
|
|
9335
9378
|
)
|
|
9336
9379
|
] }),
|
|
9337
|
-
description && /* @__PURE__ */
|
|
9338
|
-
onConfirm && /* @__PURE__ */
|
|
9380
|
+
description && /* @__PURE__ */ jsx176("p", { className: popoverDescriptionVariants(), children: description }),
|
|
9381
|
+
onConfirm && /* @__PURE__ */ jsx176("div", { className: popoverFooterVariants(), children: /* @__PURE__ */ jsx176(
|
|
9339
9382
|
TextButton,
|
|
9340
9383
|
{
|
|
9341
9384
|
level: "inverse-static",
|
|
@@ -9347,11 +9390,11 @@ var PopoverContent = React3.forwardRef(
|
|
|
9347
9390
|
) }),
|
|
9348
9391
|
children
|
|
9349
9392
|
] }),
|
|
9350
|
-
/* @__PURE__ */
|
|
9393
|
+
/* @__PURE__ */ jsx176(PopoverPrimitive.Arrow, { asChild: true, children: /* @__PURE__ */ jsx176(PopoverAnchor, { className: clsx9(popoverAnchorVariants({ level })) }) })
|
|
9351
9394
|
]
|
|
9352
9395
|
}
|
|
9353
9396
|
),
|
|
9354
|
-
isOverlay && /* @__PURE__ */
|
|
9397
|
+
isOverlay && /* @__PURE__ */ jsx176("div", { "data-radix-popper-overlay": true, className: style_module_default6.overlay })
|
|
9355
9398
|
] }) })
|
|
9356
9399
|
);
|
|
9357
9400
|
var Popover = Object.assign(PopoverRoot, {
|
|
@@ -9374,14 +9417,14 @@ var style_module_default8 = {
|
|
|
9374
9417
|
// src/components/Tooltip/index.tsx
|
|
9375
9418
|
import { cva as cva7 } from "cva";
|
|
9376
9419
|
import clsx10 from "clsx";
|
|
9377
|
-
import { jsx as
|
|
9420
|
+
import { jsx as jsx177 } from "react/jsx-runtime";
|
|
9378
9421
|
var DEFAULT_OFFSET2 = "medium";
|
|
9379
9422
|
var tooltipVariants = cva7({ base: [style_module_default8.tooltip, "lp-sys-typo-caption1-normal-medium"] });
|
|
9380
9423
|
var TooltipProvider = TooltipPrimitive.Provider;
|
|
9381
|
-
var TooltipRoot = /* @__PURE__ */ __name(({ children, ...props }) => /* @__PURE__ */
|
|
9382
|
-
var TooltipTrigger = /* @__PURE__ */ __name(({ by }) => /* @__PURE__ */
|
|
9424
|
+
var TooltipRoot = /* @__PURE__ */ __name(({ children, ...props }) => /* @__PURE__ */ jsx177(TooltipPrimitive.Root, { delayDuration: 0, ...props, children }), "TooltipRoot");
|
|
9425
|
+
var TooltipTrigger = /* @__PURE__ */ __name(({ by }) => /* @__PURE__ */ jsx177(TooltipPrimitive.Trigger, { asChild: true, children: by }), "TooltipTrigger");
|
|
9383
9426
|
var TooltipContent = forwardRef9(
|
|
9384
|
-
({ description, position = "top", className, offset = DEFAULT_OFFSET2, collisionPadding, ...props }, ref) => /* @__PURE__ */
|
|
9427
|
+
({ description, position = "top", className, offset = DEFAULT_OFFSET2, collisionPadding, ...props }, ref) => /* @__PURE__ */ jsx177(
|
|
9385
9428
|
TooltipPrimitive.Content,
|
|
9386
9429
|
{
|
|
9387
9430
|
ref,
|
|
@@ -9390,7 +9433,7 @@ var TooltipContent = forwardRef9(
|
|
|
9390
9433
|
collisionPadding,
|
|
9391
9434
|
className: clsx10(tooltipVariants(), className),
|
|
9392
9435
|
...props,
|
|
9393
|
-
children: /* @__PURE__ */
|
|
9436
|
+
children: /* @__PURE__ */ jsx177("p", { className: style_module_default8.tooltipContent, children: description })
|
|
9394
9437
|
}
|
|
9395
9438
|
)
|
|
9396
9439
|
);
|
|
@@ -9425,7 +9468,7 @@ var style_module_default9 = {
|
|
|
9425
9468
|
|
|
9426
9469
|
// src/components/IconButton/index.tsx
|
|
9427
9470
|
import { Slot } from "@radix-ui/react-slot";
|
|
9428
|
-
import { jsx as
|
|
9471
|
+
import { jsx as jsx178 } from "react/jsx-runtime";
|
|
9429
9472
|
var iconButtonSizeIconSizeMap = {
|
|
9430
9473
|
l: "m",
|
|
9431
9474
|
m: "s",
|
|
@@ -9509,7 +9552,7 @@ var IconButton = forwardRef10(
|
|
|
9509
9552
|
...rest
|
|
9510
9553
|
}, ref) => {
|
|
9511
9554
|
const Comp = asChild ? Slot : "button";
|
|
9512
|
-
return /* @__PURE__ */
|
|
9555
|
+
return /* @__PURE__ */ jsx178(
|
|
9513
9556
|
Comp,
|
|
9514
9557
|
{
|
|
9515
9558
|
...rest,
|
|
@@ -9518,7 +9561,7 @@ var IconButton = forwardRef10(
|
|
|
9518
9561
|
disabled: disabled && !isLoading,
|
|
9519
9562
|
"aria-label": icon.name,
|
|
9520
9563
|
role: "button",
|
|
9521
|
-
children: isLoading ? /* @__PURE__ */
|
|
9564
|
+
children: isLoading ? /* @__PURE__ */ jsx178(Loading, { size: iconButtonLoadingSizeMap[size], level: iconButtonLoadingLevelMap[level] }) : /* @__PURE__ */ jsx178(
|
|
9522
9565
|
Icon,
|
|
9523
9566
|
{
|
|
9524
9567
|
size: iconButtonSizeIconSizeMap[size],
|
|
@@ -9571,7 +9614,7 @@ var style_module_default11 = {
|
|
|
9571
9614
|
|
|
9572
9615
|
// src/components/Label/index.tsx
|
|
9573
9616
|
import { cva as cva9 } from "cva";
|
|
9574
|
-
import { jsx as
|
|
9617
|
+
import { jsx as jsx179 } from "react/jsx-runtime";
|
|
9575
9618
|
var defaultLabelVariants = cva9({
|
|
9576
9619
|
base: ["lp-sys-typo-paragraph2-normal-medium", style_module_default11.label],
|
|
9577
9620
|
variants: {
|
|
@@ -9612,7 +9655,7 @@ var Label = forwardRef11(
|
|
|
9612
9655
|
error = false,
|
|
9613
9656
|
...props
|
|
9614
9657
|
}, ref) => {
|
|
9615
|
-
return /* @__PURE__ */
|
|
9658
|
+
return /* @__PURE__ */ jsx179(
|
|
9616
9659
|
LabelPrimitive.Root,
|
|
9617
9660
|
{
|
|
9618
9661
|
ref,
|
|
@@ -9628,17 +9671,17 @@ var Label = forwardRef11(
|
|
|
9628
9671
|
Label.displayName = "Label";
|
|
9629
9672
|
|
|
9630
9673
|
// src/components/CheckBox/index.tsx
|
|
9631
|
-
import { Fragment as Fragment7, jsx as
|
|
9674
|
+
import { Fragment as Fragment7, jsx as jsx180, jsxs as jsxs120 } from "react/jsx-runtime";
|
|
9632
9675
|
var Checkbox = forwardRef12(
|
|
9633
9676
|
({ className, label, description, ...props }, ref) => {
|
|
9634
|
-
const CheckboxWrapper = /* @__PURE__ */ __name(({ children }) => label ? /* @__PURE__ */
|
|
9635
|
-
/* @__PURE__ */
|
|
9677
|
+
const CheckboxWrapper = /* @__PURE__ */ __name(({ children }) => label ? /* @__PURE__ */ jsxs120(Label, { position: "right", htmlFor: props.id, children: [
|
|
9678
|
+
/* @__PURE__ */ jsxs120("div", { className: style_module_default10["label-wrapper"], children: [
|
|
9636
9679
|
label,
|
|
9637
|
-
/* @__PURE__ */
|
|
9680
|
+
/* @__PURE__ */ jsx180(Paragraph, { className: style_module_default10.description, size: 3, type: "normal", weight: "regular", children: description })
|
|
9638
9681
|
] }),
|
|
9639
9682
|
children
|
|
9640
|
-
] }) : /* @__PURE__ */
|
|
9641
|
-
return /* @__PURE__ */
|
|
9683
|
+
] }) : /* @__PURE__ */ jsx180(Fragment7, { children }), "CheckboxWrapper");
|
|
9684
|
+
return /* @__PURE__ */ jsx180(CheckboxWrapper, { children: /* @__PURE__ */ jsx180(CheckboxPrimitive.Root, { className: clsx13(style_module_default10.checkbox, className), ref, ...props, children: /* @__PURE__ */ jsx180(CheckboxPrimitive.Indicator, { className: style_module_default10["checkbox-indicator"], children: /* @__PURE__ */ jsx180(Icon, { name: "check-mark", thick: true, size: "xs", type: "inverse-label-primary" }) }) }) });
|
|
9642
9685
|
}
|
|
9643
9686
|
);
|
|
9644
9687
|
|
|
@@ -9656,27 +9699,27 @@ var style_module_default12 = {
|
|
|
9656
9699
|
};
|
|
9657
9700
|
|
|
9658
9701
|
// src/components/Radio/index.tsx
|
|
9659
|
-
import { Fragment as Fragment8, jsx as
|
|
9660
|
-
var RadioIndicator = /* @__PURE__ */ __name(() => /* @__PURE__ */
|
|
9661
|
-
var RadioRoot = forwardRef13(({ className, ...props }, ref) => /* @__PURE__ */
|
|
9702
|
+
import { Fragment as Fragment8, jsx as jsx181, jsxs as jsxs121 } from "react/jsx-runtime";
|
|
9703
|
+
var RadioIndicator = /* @__PURE__ */ __name(() => /* @__PURE__ */ jsx181("svg", { xmlns: "http://www.w3.org/2000/svg", width: "10", height: "10", viewBox: "0 0 10 10", fill: "none", children: /* @__PURE__ */ jsx181("circle", { cx: "5", cy: "5", r: "5", fill: "#313133" }) }), "RadioIndicator");
|
|
9704
|
+
var RadioRoot = forwardRef13(({ className, ...props }, ref) => /* @__PURE__ */ jsx181(RadioGroupPrimitive.Root, { ref, className, ...props }));
|
|
9662
9705
|
RadioRoot.displayName = "RadioRoot";
|
|
9663
9706
|
var RadioItem = forwardRef13(
|
|
9664
9707
|
({ className, label, description, ...props }, ref) => {
|
|
9665
|
-
const RadioItemWrapper = /* @__PURE__ */ __name(({ children }) => label ? /* @__PURE__ */
|
|
9666
|
-
/* @__PURE__ */
|
|
9708
|
+
const RadioItemWrapper = /* @__PURE__ */ __name(({ children }) => label ? /* @__PURE__ */ jsxs121(Label, { position: "right", children: [
|
|
9709
|
+
/* @__PURE__ */ jsxs121("div", { className: style_module_default12["label-wrapper"], children: [
|
|
9667
9710
|
label,
|
|
9668
|
-
description && /* @__PURE__ */
|
|
9711
|
+
description && /* @__PURE__ */ jsx181(Paragraph, { className: style_module_default12.description, size: 3, type: "normal", weight: "regular", children: description })
|
|
9669
9712
|
] }),
|
|
9670
9713
|
children
|
|
9671
|
-
] }) : /* @__PURE__ */
|
|
9672
|
-
return /* @__PURE__ */
|
|
9714
|
+
] }) : /* @__PURE__ */ jsx181(Fragment8, { children }), "RadioItemWrapper");
|
|
9715
|
+
return /* @__PURE__ */ jsx181(RadioItemWrapper, { children: /* @__PURE__ */ jsx181(
|
|
9673
9716
|
RadioGroupPrimitive.Item,
|
|
9674
9717
|
{
|
|
9675
9718
|
ref,
|
|
9676
9719
|
className: clsx14(style_module_default12["radio-item"], className),
|
|
9677
9720
|
...props,
|
|
9678
9721
|
"aria-label": label,
|
|
9679
|
-
children: /* @__PURE__ */
|
|
9722
|
+
children: /* @__PURE__ */ jsx181(RadioGroupPrimitive.Indicator, { className: style_module_default12.indicator, children: /* @__PURE__ */ jsx181(RadioIndicator, {}) })
|
|
9680
9723
|
}
|
|
9681
9724
|
) });
|
|
9682
9725
|
}
|
|
@@ -9721,7 +9764,7 @@ var style_module_default13 = {
|
|
|
9721
9764
|
import { cva as cva10 } from "cva";
|
|
9722
9765
|
import clsx15 from "clsx";
|
|
9723
9766
|
import { flushSync } from "react-dom";
|
|
9724
|
-
import { Fragment as Fragment9, jsx as
|
|
9767
|
+
import { Fragment as Fragment9, jsx as jsx182, jsxs as jsxs122 } from "react/jsx-runtime";
|
|
9725
9768
|
var defaultTextfieldVariants = cva10({
|
|
9726
9769
|
base: style_module_default13.textfield,
|
|
9727
9770
|
variants: {
|
|
@@ -9790,8 +9833,8 @@ var Textfield = forwardRef14((props, ref) => {
|
|
|
9790
9833
|
}
|
|
9791
9834
|
}, "handleDeidentify");
|
|
9792
9835
|
useImperativeHandle(ref, () => inputRef.current);
|
|
9793
|
-
return /* @__PURE__ */
|
|
9794
|
-
/* @__PURE__ */
|
|
9836
|
+
return /* @__PURE__ */ jsxs122("div", { className: style_module_default13["textfield-container"], children: [
|
|
9837
|
+
/* @__PURE__ */ jsx182(
|
|
9795
9838
|
"div",
|
|
9796
9839
|
{
|
|
9797
9840
|
className: clsx15(defaultTextfieldVariants({ color }), {
|
|
@@ -9799,8 +9842,8 @@ var Textfield = forwardRef14((props, ref) => {
|
|
|
9799
9842
|
[style_module_default13["label-out-textfield"]]: !label || labelType === "out"
|
|
9800
9843
|
}),
|
|
9801
9844
|
onClick: handleTextfieldClick,
|
|
9802
|
-
children: /* @__PURE__ */
|
|
9803
|
-
/* @__PURE__ */
|
|
9845
|
+
children: /* @__PURE__ */ jsxs122("div", { className: style_module_default13["input-wrapper"], children: [
|
|
9846
|
+
/* @__PURE__ */ jsx182(
|
|
9804
9847
|
"input",
|
|
9805
9848
|
{
|
|
9806
9849
|
className: clsx15(style_module_default13.input, {
|
|
@@ -9815,7 +9858,7 @@ var Textfield = forwardRef14((props, ref) => {
|
|
|
9815
9858
|
...rest
|
|
9816
9859
|
}
|
|
9817
9860
|
),
|
|
9818
|
-
/* @__PURE__ */
|
|
9861
|
+
/* @__PURE__ */ jsx182(
|
|
9819
9862
|
Label,
|
|
9820
9863
|
{
|
|
9821
9864
|
className: clsx15(style_module_default13.label, {
|
|
@@ -9827,8 +9870,8 @@ var Textfield = forwardRef14((props, ref) => {
|
|
|
9827
9870
|
children: labelText
|
|
9828
9871
|
}
|
|
9829
9872
|
),
|
|
9830
|
-
/* @__PURE__ */
|
|
9831
|
-
textfieldValue && !disabled && /* @__PURE__ */
|
|
9873
|
+
/* @__PURE__ */ jsxs122("div", { className: style_module_default13["input-action-buttons"], children: [
|
|
9874
|
+
textfieldValue && !disabled && /* @__PURE__ */ jsx182(
|
|
9832
9875
|
IconButton,
|
|
9833
9876
|
{
|
|
9834
9877
|
tabIndex: -1,
|
|
@@ -9846,7 +9889,7 @@ var Textfield = forwardRef14((props, ref) => {
|
|
|
9846
9889
|
}
|
|
9847
9890
|
}
|
|
9848
9891
|
),
|
|
9849
|
-
isPassword && !disabled && /* @__PURE__ */
|
|
9892
|
+
isPassword && !disabled && /* @__PURE__ */ jsx182(
|
|
9850
9893
|
IconButton,
|
|
9851
9894
|
{
|
|
9852
9895
|
tabIndex: -1,
|
|
@@ -9864,14 +9907,14 @@ var Textfield = forwardRef14((props, ref) => {
|
|
|
9864
9907
|
}
|
|
9865
9908
|
}
|
|
9866
9909
|
),
|
|
9867
|
-
buttonProps && /* @__PURE__ */
|
|
9910
|
+
buttonProps && /* @__PURE__ */ jsx182(Button, { ...buttonProps, size: "m", type: "button" })
|
|
9868
9911
|
] })
|
|
9869
9912
|
] })
|
|
9870
9913
|
}
|
|
9871
9914
|
),
|
|
9872
|
-
displayFooter && /* @__PURE__ */
|
|
9873
|
-
/* @__PURE__ */
|
|
9874
|
-
/* @__PURE__ */
|
|
9915
|
+
displayFooter && /* @__PURE__ */ jsxs122("div", { className: style_module_default13.footer, children: [
|
|
9916
|
+
/* @__PURE__ */ jsx182("div", { className: style_module_default13["error-wrapper"], children: error && /* @__PURE__ */ jsxs122(Fragment9, { children: [
|
|
9917
|
+
/* @__PURE__ */ jsx182(
|
|
9875
9918
|
Icon,
|
|
9876
9919
|
{
|
|
9877
9920
|
name: "exclamationmark-fill",
|
|
@@ -9881,9 +9924,9 @@ var Textfield = forwardRef14((props, ref) => {
|
|
|
9881
9924
|
type: "function-label-negative"
|
|
9882
9925
|
}
|
|
9883
9926
|
),
|
|
9884
|
-
/* @__PURE__ */
|
|
9927
|
+
/* @__PURE__ */ jsx182(Caption, { size: 3, type: "normal", weight: "regular", className: style_module_default13["error-message"], children: error })
|
|
9885
9928
|
] }) }),
|
|
9886
|
-
maxCharacter && /* @__PURE__ */
|
|
9929
|
+
maxCharacter && /* @__PURE__ */ jsxs122(Caption, { className: style_module_default13.character, size: 3, type: "normal", weight: "regular", children: [
|
|
9887
9930
|
isControlled ? controlledValue.length : value.length,
|
|
9888
9931
|
"/",
|
|
9889
9932
|
maxCharacter
|
|
@@ -9911,29 +9954,29 @@ var style_module_default14 = {
|
|
|
9911
9954
|
|
|
9912
9955
|
// src/components/Slider/index.tsx
|
|
9913
9956
|
import * as SliderPrimitive from "@radix-ui/react-slider";
|
|
9914
|
-
import { Fragment as Fragment10, jsx as
|
|
9957
|
+
import { Fragment as Fragment10, jsx as jsx183, jsxs as jsxs123 } from "react/jsx-runtime";
|
|
9915
9958
|
var SliderRoot = forwardRef15((props, ref) => {
|
|
9916
9959
|
const { label, tooltip, rangeLeft, rangeRight, min, max, step = 50, ...rest } = props;
|
|
9917
|
-
return /* @__PURE__ */
|
|
9918
|
-
/* @__PURE__ */
|
|
9919
|
-
/* @__PURE__ */
|
|
9920
|
-
/* @__PURE__ */
|
|
9921
|
-
/* @__PURE__ */
|
|
9922
|
-
/* @__PURE__ */
|
|
9960
|
+
return /* @__PURE__ */ jsx183(Fragment10, { children: /* @__PURE__ */ jsxs123(Tooltip.Provider, { children: [
|
|
9961
|
+
/* @__PURE__ */ jsx183(Label, { level: "secondary", size: "m", offset: "high", className: style_module_default14.label, children: label }),
|
|
9962
|
+
/* @__PURE__ */ jsxs123("div", { className: style_module_default14["slider-wrapper"], children: [
|
|
9963
|
+
/* @__PURE__ */ jsxs123("div", { className: style_module_default14["slider-option-wrapper"], children: [
|
|
9964
|
+
/* @__PURE__ */ jsx183(Icon, { name: rangeLeft.icon, size: "xs" }),
|
|
9965
|
+
/* @__PURE__ */ jsx183(Caption, { size: 1, type: "normal", weight: "medium", className: style_module_default14.optionText, children: rangeLeft.text })
|
|
9923
9966
|
] }),
|
|
9924
|
-
/* @__PURE__ */
|
|
9925
|
-
/* @__PURE__ */
|
|
9926
|
-
Array.from({ length: 100 / step + 1 }).map((_, index) => /* @__PURE__ */
|
|
9927
|
-
/* @__PURE__ */
|
|
9967
|
+
/* @__PURE__ */ jsxs123(SliderPrimitive.Root, { ...rest, step, className: style_module_default14["slider-root"], ref, children: [
|
|
9968
|
+
/* @__PURE__ */ jsxs123(SliderPrimitive.Track, { className: style_module_default14["slider-track"], children: [
|
|
9969
|
+
Array.from({ length: 100 / step + 1 }).map((_, index) => /* @__PURE__ */ jsx183("span", { className: style_module_default14["slider-step"] }, index)),
|
|
9970
|
+
/* @__PURE__ */ jsx183(SliderPrimitive.Range, { className: style_module_default14["slider-range"] })
|
|
9928
9971
|
] }),
|
|
9929
|
-
/* @__PURE__ */
|
|
9930
|
-
/* @__PURE__ */
|
|
9931
|
-
/* @__PURE__ */
|
|
9972
|
+
/* @__PURE__ */ jsxs123(Tooltip, { children: [
|
|
9973
|
+
/* @__PURE__ */ jsx183(Tooltip.Trigger, { by: /* @__PURE__ */ jsx183(SliderPrimitive.Thumb, { className: style_module_default14["slider-thumb"] }) }),
|
|
9974
|
+
/* @__PURE__ */ jsx183(Tooltip.Content, { description: tooltip })
|
|
9932
9975
|
] })
|
|
9933
9976
|
] }),
|
|
9934
|
-
/* @__PURE__ */
|
|
9935
|
-
/* @__PURE__ */
|
|
9936
|
-
/* @__PURE__ */
|
|
9977
|
+
/* @__PURE__ */ jsxs123("div", { className: style_module_default14["slider-option-wrapper"], children: [
|
|
9978
|
+
/* @__PURE__ */ jsx183(Icon, { name: rangeRight.icon, size: "xs" }),
|
|
9979
|
+
/* @__PURE__ */ jsx183(Caption, { size: 1, type: "normal", weight: "medium", className: style_module_default14.optionText, children: rangeRight.text })
|
|
9937
9980
|
] })
|
|
9938
9981
|
] })
|
|
9939
9982
|
] }) });
|
|
@@ -9977,11 +10020,11 @@ import {
|
|
|
9977
10020
|
useState as useState4
|
|
9978
10021
|
} from "react";
|
|
9979
10022
|
import clsx16 from "clsx";
|
|
9980
|
-
import { jsx as
|
|
9981
|
-
var Badge = /* @__PURE__ */ __name(({ children }) => /* @__PURE__ */
|
|
10023
|
+
import { jsx as jsx184, jsxs as jsxs124 } from "react/jsx-runtime";
|
|
10024
|
+
var Badge = /* @__PURE__ */ __name(({ children }) => /* @__PURE__ */ jsx184("div", { className: style_module_default15.badgeContainer, children: /* @__PURE__ */ jsx184(Caption, { className: style_module_default15.badge, size: 2, type: "normal", weight: "medium", children }) }), "Badge");
|
|
9982
10025
|
var SelectContent = forwardRef16((props, ref) => {
|
|
9983
10026
|
const { id, isResponsive, popSide, sideOffset, listLabel, children, container } = props;
|
|
9984
|
-
return /* @__PURE__ */
|
|
10027
|
+
return /* @__PURE__ */ jsx184(SelectPrimitive.Portal, { container, children: /* @__PURE__ */ jsx184(
|
|
9985
10028
|
SelectPrimitive.Content,
|
|
9986
10029
|
{
|
|
9987
10030
|
id: `select-content-${id}`,
|
|
@@ -10003,12 +10046,12 @@ var SelectContent = forwardRef16((props, ref) => {
|
|
|
10003
10046
|
side: popSide,
|
|
10004
10047
|
sideOffset,
|
|
10005
10048
|
avoidCollisions: false,
|
|
10006
|
-
children: /* @__PURE__ */
|
|
10007
|
-
/* @__PURE__ */
|
|
10008
|
-
listLabel && /* @__PURE__ */
|
|
10049
|
+
children: /* @__PURE__ */ jsxs124(ScrollArea.Root, { className: style_module_default15.scrollAreaRoot, type: "always", children: [
|
|
10050
|
+
/* @__PURE__ */ jsx184(SelectPrimitive.Viewport, { asChild: true, children: /* @__PURE__ */ jsx184(ScrollArea.Viewport, { className: style_module_default15.scrollAreaViewport, style: { maxHeight: "268px", overflowY: "auto" }, children: /* @__PURE__ */ jsxs124(SelectPrimitive.Group, { children: [
|
|
10051
|
+
listLabel && /* @__PURE__ */ jsx184(SelectPrimitive.Label, { asChild: true, children: /* @__PURE__ */ jsx184(Label, { className: style_module_default15["desktop-label"], level: "secondary", size: "m", offset: "low", children: listLabel }) }),
|
|
10009
10052
|
children
|
|
10010
10053
|
] }) }) }),
|
|
10011
|
-
/* @__PURE__ */
|
|
10054
|
+
/* @__PURE__ */ jsx184(ScrollArea.Scrollbar, { className: style_module_default15.scrollAreaScrollbar, orientation: "vertical", children: /* @__PURE__ */ jsx184(ScrollArea.Thumb, { className: style_module_default15.scrollAreaThumb }) })
|
|
10012
10055
|
] })
|
|
10013
10056
|
}
|
|
10014
10057
|
) });
|
|
@@ -10036,12 +10079,12 @@ var SelectRoot = forwardRef16((props, ref) => {
|
|
|
10036
10079
|
useEffect2(() => {
|
|
10037
10080
|
setIsOpen(open);
|
|
10038
10081
|
}, [open]);
|
|
10039
|
-
return /* @__PURE__ */
|
|
10040
|
-
/* @__PURE__ */
|
|
10041
|
-
/* @__PURE__ */
|
|
10042
|
-
badge && /* @__PURE__ */
|
|
10082
|
+
return /* @__PURE__ */ jsxs124("div", { children: [
|
|
10083
|
+
/* @__PURE__ */ jsxs124("div", { className: style_module_default15["label-container"], children: [
|
|
10084
|
+
/* @__PURE__ */ jsx184(Label, { className: style_module_default15["select-label"], level: "secondary", size: "m", offset: "low", htmlFor: id, children: label }),
|
|
10085
|
+
badge && /* @__PURE__ */ jsx184(Badge, { children: badge })
|
|
10043
10086
|
] }),
|
|
10044
|
-
/* @__PURE__ */
|
|
10087
|
+
/* @__PURE__ */ jsxs124(
|
|
10045
10088
|
SelectPrimitive.Root,
|
|
10046
10089
|
{
|
|
10047
10090
|
...rest,
|
|
@@ -10051,17 +10094,17 @@ var SelectRoot = forwardRef16((props, ref) => {
|
|
|
10051
10094
|
setIsOpen(open2);
|
|
10052
10095
|
},
|
|
10053
10096
|
children: [
|
|
10054
|
-
/* @__PURE__ */
|
|
10055
|
-
/* @__PURE__ */
|
|
10056
|
-
/* @__PURE__ */
|
|
10097
|
+
/* @__PURE__ */ jsxs124(SelectPrimitive.Trigger, { className: style_module_default15.trigger, ref, id, children: [
|
|
10098
|
+
/* @__PURE__ */ jsx184(SelectPrimitive.Value, { className: style_module_default15.placeholder, placeholder }),
|
|
10099
|
+
/* @__PURE__ */ jsx184(SelectPrimitive.Icon, { className: style_module_default15.openIcon, children: /* @__PURE__ */ jsx184(Icon, { name: "arrow-drop-down", fill: true, thick: true, size: "xs" }) })
|
|
10057
10100
|
] }),
|
|
10058
|
-
/* @__PURE__ */
|
|
10101
|
+
/* @__PURE__ */ jsx184(SelectContent, { ...contentProps })
|
|
10059
10102
|
]
|
|
10060
10103
|
}
|
|
10061
10104
|
)
|
|
10062
10105
|
] });
|
|
10063
10106
|
});
|
|
10064
|
-
var SelectItem = /* @__PURE__ */ __name(({ value, text, disabled, icon, onClick }) => /* @__PURE__ */
|
|
10107
|
+
var SelectItem = /* @__PURE__ */ __name(({ value, text, disabled, icon, onClick }) => /* @__PURE__ */ jsxs124(
|
|
10065
10108
|
SelectPrimitive.Item,
|
|
10066
10109
|
{
|
|
10067
10110
|
className: style_module_default15.item,
|
|
@@ -10072,9 +10115,9 @@ var SelectItem = /* @__PURE__ */ __name(({ value, text, disabled, icon, onClick
|
|
|
10072
10115
|
onClick?.();
|
|
10073
10116
|
},
|
|
10074
10117
|
children: [
|
|
10075
|
-
/* @__PURE__ */
|
|
10076
|
-
icon && /* @__PURE__ */
|
|
10077
|
-
/* @__PURE__ */
|
|
10118
|
+
/* @__PURE__ */ jsx184(SelectPrimitive.ItemText, { children: /* @__PURE__ */ jsx184(Paragraph, { size: 3, type: "normal", weight: "medium", children: text ?? value }) }),
|
|
10119
|
+
icon && /* @__PURE__ */ jsx184(SelectPrimitive.Icon, { className: style_module_default15.icon, children: /* @__PURE__ */ jsx184(Icon, { size: "xs", ...icon }) }),
|
|
10120
|
+
/* @__PURE__ */ jsx184(SelectPrimitive.ItemIndicator, { className: style_module_default15.itemIndicator, children: /* @__PURE__ */ jsx184(Icon, { fill: false, thick: true, size: "xs", name: "check-mark", type: "brand-label-primary" }) })
|
|
10078
10121
|
]
|
|
10079
10122
|
}
|
|
10080
10123
|
), "SelectItem");
|
|
@@ -10094,11 +10137,11 @@ import { useState as useState5 } from "react";
|
|
|
10094
10137
|
|
|
10095
10138
|
// src/hooks/collection.tsx
|
|
10096
10139
|
import { createContext, useContext, useMemo } from "react";
|
|
10097
|
-
import { jsx as
|
|
10140
|
+
import { jsx as jsx185 } from "react/jsx-runtime";
|
|
10098
10141
|
var CollectionContext = createContext(void 0);
|
|
10099
10142
|
var CollectionProvider = /* @__PURE__ */ __name(({ value, onChangeValue, children }) => {
|
|
10100
10143
|
const contextValue = useMemo(() => ({ value, onChangeValue }), [value, onChangeValue]);
|
|
10101
|
-
return /* @__PURE__ */
|
|
10144
|
+
return /* @__PURE__ */ jsx185(CollectionContext.Provider, { value: contextValue, children });
|
|
10102
10145
|
}, "CollectionProvider");
|
|
10103
10146
|
var useCollectionContext = /* @__PURE__ */ __name(() => {
|
|
10104
10147
|
const context = useContext(CollectionContext);
|
|
@@ -10110,16 +10153,16 @@ var useCollectionContext = /* @__PURE__ */ __name(() => {
|
|
|
10110
10153
|
|
|
10111
10154
|
// src/components/List/index.tsx
|
|
10112
10155
|
import clsx17 from "clsx";
|
|
10113
|
-
import { jsx as
|
|
10156
|
+
import { jsx as jsx186, jsxs as jsxs125 } from "react/jsx-runtime";
|
|
10114
10157
|
var ListRoot = /* @__PURE__ */ __name(({ children, className, ...props }) => {
|
|
10115
|
-
return /* @__PURE__ */
|
|
10158
|
+
return /* @__PURE__ */ jsx186(CollectionProvider, { ...props, children: /* @__PURE__ */ jsx186("ul", { className: clsx17(style_module_default16.list, className), children }) });
|
|
10116
10159
|
}, "ListRoot");
|
|
10117
10160
|
var Item3 = /* @__PURE__ */ __name(({ value, text, disabled, icon, onClick }) => {
|
|
10118
10161
|
const [isFocused, setIsFocused] = useState5(false);
|
|
10119
10162
|
const { value: contextValue, onChangeValue } = useCollectionContext();
|
|
10120
10163
|
const isSelected = contextValue === value;
|
|
10121
10164
|
const iconProps = isSelected ? { name: "check-mark", type: "brand-label-primary", thick: true } : icon ? icon : {};
|
|
10122
|
-
return /* @__PURE__ */
|
|
10165
|
+
return /* @__PURE__ */ jsxs125(
|
|
10123
10166
|
"li",
|
|
10124
10167
|
{
|
|
10125
10168
|
className: style_module_default16.item,
|
|
@@ -10137,8 +10180,8 @@ var Item3 = /* @__PURE__ */ __name(({ value, text, disabled, icon, onClick }) =>
|
|
|
10137
10180
|
onChangeValue?.(value);
|
|
10138
10181
|
},
|
|
10139
10182
|
children: [
|
|
10140
|
-
/* @__PURE__ */
|
|
10141
|
-
(icon || isSelected) && /* @__PURE__ */
|
|
10183
|
+
/* @__PURE__ */ jsx186(Paragraph, { size: 3, type: "normal", weight: "medium", children: text }),
|
|
10184
|
+
(icon || isSelected) && /* @__PURE__ */ jsx186(Icon, { className: style_module_default16.icon, size: "xs", ...iconProps })
|
|
10142
10185
|
]
|
|
10143
10186
|
}
|
|
10144
10187
|
);
|