@liner-fe/prism 1.12.6 → 1.12.7
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/add-clock.d.ts +8 -0
- package/lib/assets/clock.d.ts +8 -0
- package/lib/assets/index.d.ts +2 -0
- package/lib/index.mjs +188 -88
- package/lib/index.mjs.map +4 -4
- package/lib/type/index.d.ts +1 -1
- package/package.json +1 -1
package/lib/assets/index.d.ts
CHANGED
|
@@ -127,3 +127,5 @@ export { ICTextSelect } from './text-select';
|
|
|
127
127
|
export { ICArrowDropDown } from './arrow-drop-down';
|
|
128
128
|
export { ICBell } from './bell';
|
|
129
129
|
export { ICSecretMode } from './secret-mode';
|
|
130
|
+
export { ICAddClock } from './add-clock';
|
|
131
|
+
export { ICClock } from './clock';
|
package/lib/index.mjs
CHANGED
|
@@ -6068,6 +6068,104 @@ var ICSecretMode = /* @__PURE__ */ __name((props) => {
|
|
|
6068
6068
|
] });
|
|
6069
6069
|
}, "ICSecretMode");
|
|
6070
6070
|
|
|
6071
|
+
// src/assets/add-clock.tsx
|
|
6072
|
+
import { jsx as jsx130, jsxs as jsxs93 } from "react/jsx-runtime";
|
|
6073
|
+
var ICAddClock = /* @__PURE__ */ __name((props) => {
|
|
6074
|
+
const { thick = false, fill = false, size = 32, color = "#1E1E1F" } = props;
|
|
6075
|
+
if (thick) {
|
|
6076
|
+
return /* @__PURE__ */ jsxs93("svg", { ...props, width: size, height: size, viewBox: "0 0 48 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
6077
|
+
/* @__PURE__ */ jsx130(
|
|
6078
|
+
"path",
|
|
6079
|
+
{
|
|
6080
|
+
d: "M42 24C42 24.729 41.9567 25.4478 41.8724 26.1541C40.7398 25.288 39.4256 24.6472 37.9969 24.2987C37.999 24.1994 38 24.0998 38 24C38 16.268 31.732 10 24 10C16.268 10 10 16.268 10 24C10 31.732 16.268 38 24 38C24.5298 38 25.0527 37.9706 25.5672 37.9133C26.0427 39.2972 26.7993 40.5504 27.7687 41.6048C26.5534 41.8638 25.2926 42 24 42C14.0589 42 6 33.9411 6 24C6 14.0589 14.0589 6 24 6C33.9411 6 42 14.0589 42 24Z",
|
|
6081
|
+
fill: color
|
|
6082
|
+
}
|
|
6083
|
+
),
|
|
6084
|
+
/* @__PURE__ */ jsx130(
|
|
6085
|
+
"path",
|
|
6086
|
+
{
|
|
6087
|
+
d: "M21.9682 13.0006L21.9684 23.1789L15.5834 29.5883L18.4172 32.4114L25.9684 24.8313L25.9682 13.0006L21.9682 13.0006Z",
|
|
6088
|
+
fill: color
|
|
6089
|
+
}
|
|
6090
|
+
),
|
|
6091
|
+
/* @__PURE__ */ jsx130(
|
|
6092
|
+
"path",
|
|
6093
|
+
{
|
|
6094
|
+
d: "M33.749 42.4996V36.75H28.0004V32.75H33.749V27H37.749V32.75H43.5V36.75H37.749V42.4996H33.749Z",
|
|
6095
|
+
fill: color
|
|
6096
|
+
}
|
|
6097
|
+
)
|
|
6098
|
+
] });
|
|
6099
|
+
}
|
|
6100
|
+
return /* @__PURE__ */ jsxs93("svg", { ...props, width: size, height: size, viewBox: "0 0 48 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
6101
|
+
/* @__PURE__ */ jsx130(
|
|
6102
|
+
"path",
|
|
6103
|
+
{
|
|
6104
|
+
d: "M25.9517 38.8742C25.3129 38.9572 24.6614 39 24 39C15.7157 39 9 32.2843 9 24C9 15.7157 15.7157 9 24 9C32.2843 9 39 15.7157 39 24C39 24.1987 38.9961 24.3966 38.9885 24.5934C40.0358 24.9622 41.0071 25.4924 41.8724 26.1541C41.9567 25.4478 42 24.729 42 24C42 14.0589 33.9411 6 24 6C14.0589 6 6 14.0589 6 24C6 33.9411 14.0589 42 24 42C25.2926 42 26.5534 41.8638 27.7687 41.6048C27.029 40.8003 26.4132 39.88 25.9517 38.8742Z",
|
|
6105
|
+
fill: color
|
|
6106
|
+
}
|
|
6107
|
+
),
|
|
6108
|
+
/* @__PURE__ */ jsx130(
|
|
6109
|
+
"path",
|
|
6110
|
+
{
|
|
6111
|
+
d: "M22.4684 23.385L22.4682 13.0001L25.4682 13.0001L25.4684 24.6243L18.0629 32.058L15.9376 29.9407L22.4684 23.385Z",
|
|
6112
|
+
fill: color
|
|
6113
|
+
}
|
|
6114
|
+
),
|
|
6115
|
+
/* @__PURE__ */ jsx130(
|
|
6116
|
+
"path",
|
|
6117
|
+
{
|
|
6118
|
+
d: "M34.249 42.4996V36.25H28.0004V33.25H34.249V27H37.249V33.25H43.5V36.25H37.249V42.4996H34.249Z",
|
|
6119
|
+
fill: color
|
|
6120
|
+
}
|
|
6121
|
+
)
|
|
6122
|
+
] });
|
|
6123
|
+
}, "ICAddClock");
|
|
6124
|
+
|
|
6125
|
+
// src/assets/clock.tsx
|
|
6126
|
+
import { jsx as jsx131, jsxs as jsxs94 } from "react/jsx-runtime";
|
|
6127
|
+
var ICClock = /* @__PURE__ */ __name((props) => {
|
|
6128
|
+
const { thick = false, fill = false, size = 32, color = "#1E1E1F" } = props;
|
|
6129
|
+
if (thick) {
|
|
6130
|
+
return /* @__PURE__ */ jsxs94("svg", { ...props, width: size, height: size, viewBox: "0 0 48 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
6131
|
+
/* @__PURE__ */ jsx131(
|
|
6132
|
+
"path",
|
|
6133
|
+
{
|
|
6134
|
+
d: "M21.9682 13.0006L21.9684 23.1789L15.5834 29.5883L18.4172 32.4114L25.9684 24.8313L25.9682 13.0006L21.9682 13.0006Z",
|
|
6135
|
+
fill: color
|
|
6136
|
+
}
|
|
6137
|
+
),
|
|
6138
|
+
/* @__PURE__ */ jsx131(
|
|
6139
|
+
"path",
|
|
6140
|
+
{
|
|
6141
|
+
"fill-rule": "evenodd",
|
|
6142
|
+
"clip-rule": "evenodd",
|
|
6143
|
+
d: "M42 24C42 33.9411 33.9411 42 24 42C14.0589 42 6 33.9411 6 24C6 14.0589 14.0589 6 24 6C33.9411 6 42 14.0589 42 24ZM38 24C38 31.732 31.732 38 24 38C16.268 38 10 31.732 10 24C10 16.268 16.268 10 24 10C31.732 10 38 16.268 38 24Z",
|
|
6144
|
+
fill: color
|
|
6145
|
+
}
|
|
6146
|
+
)
|
|
6147
|
+
] });
|
|
6148
|
+
}
|
|
6149
|
+
return /* @__PURE__ */ jsxs94("svg", { ...props, width: size, height: size, viewBox: "0 0 48 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
6150
|
+
/* @__PURE__ */ jsx131(
|
|
6151
|
+
"path",
|
|
6152
|
+
{
|
|
6153
|
+
d: "M22.4682 13.0001L22.4684 23.385L15.9376 29.9407L18.0629 32.058L25.4684 24.6243L25.4682 13.0001L22.4682 13.0001Z",
|
|
6154
|
+
fill: color
|
|
6155
|
+
}
|
|
6156
|
+
),
|
|
6157
|
+
/* @__PURE__ */ jsx131(
|
|
6158
|
+
"path",
|
|
6159
|
+
{
|
|
6160
|
+
"fill-rule": "evenodd",
|
|
6161
|
+
"clip-rule": "evenodd",
|
|
6162
|
+
d: "M42 24C42 33.9411 33.9411 42 24 42C14.0589 42 6 33.9411 6 24C6 14.0589 14.0589 6 24 6C33.9411 6 42 14.0589 42 24ZM39 24C39 32.2843 32.2843 39 24 39C15.7157 39 9 32.2843 9 24C9 15.7157 15.7157 9 24 9C32.2843 9 39 15.7157 39 24Z",
|
|
6163
|
+
fill: color
|
|
6164
|
+
}
|
|
6165
|
+
)
|
|
6166
|
+
] });
|
|
6167
|
+
}, "ICClock");
|
|
6168
|
+
|
|
6071
6169
|
// src/utils/icon.ts
|
|
6072
6170
|
var iconMap = {
|
|
6073
6171
|
"close-fill": ICCloseFill,
|
|
@@ -6198,7 +6296,9 @@ var iconMap = {
|
|
|
6198
6296
|
"text-select": ICTextSelect,
|
|
6199
6297
|
"arrow-drop-down": ICArrowDropDown,
|
|
6200
6298
|
bell: ICBell,
|
|
6201
|
-
"secret-mode": ICSecretMode
|
|
6299
|
+
"secret-mode": ICSecretMode,
|
|
6300
|
+
"add-clock": ICAddClock,
|
|
6301
|
+
clock: ICClock
|
|
6202
6302
|
};
|
|
6203
6303
|
|
|
6204
6304
|
// src/utils/object.ts
|
|
@@ -6303,7 +6403,7 @@ var style_module_default2 = {
|
|
|
6303
6403
|
};
|
|
6304
6404
|
|
|
6305
6405
|
// src/components/Icon/index.tsx
|
|
6306
|
-
import { jsx as
|
|
6406
|
+
import { jsx as jsx132 } from "react/jsx-runtime";
|
|
6307
6407
|
var iconSizeMap = {
|
|
6308
6408
|
xs: 16,
|
|
6309
6409
|
s: 20,
|
|
@@ -6356,7 +6456,7 @@ var Icon = /* @__PURE__ */ __name((props) => {
|
|
|
6356
6456
|
} = props;
|
|
6357
6457
|
const IconComponent = getIconComponent(name, iconMap);
|
|
6358
6458
|
const iconSize = iconSizeMap[size];
|
|
6359
|
-
return /* @__PURE__ */
|
|
6459
|
+
return /* @__PURE__ */ jsx132(
|
|
6360
6460
|
IconComponent,
|
|
6361
6461
|
{
|
|
6362
6462
|
...rest,
|
|
@@ -6369,7 +6469,7 @@ var Icon = /* @__PURE__ */ __name((props) => {
|
|
|
6369
6469
|
}, "Icon");
|
|
6370
6470
|
|
|
6371
6471
|
// src/components/Button/index.tsx
|
|
6372
|
-
import { jsx as
|
|
6472
|
+
import { jsx as jsx133, jsxs as jsxs95 } from "react/jsx-runtime";
|
|
6373
6473
|
var buttonIconSizeMap = {
|
|
6374
6474
|
cta: "m",
|
|
6375
6475
|
l: "s",
|
|
@@ -6456,22 +6556,22 @@ var DefaultButton = forwardRef(
|
|
|
6456
6556
|
className: clsx2(defaultButtonVariants({ level, fill, align, size, width }), className),
|
|
6457
6557
|
ref
|
|
6458
6558
|
},
|
|
6459
|
-
/* @__PURE__ */
|
|
6460
|
-
!!leftIcon && /* @__PURE__ */
|
|
6461
|
-
/* @__PURE__ */
|
|
6462
|
-
!!rightIcon && /* @__PURE__ */
|
|
6559
|
+
/* @__PURE__ */ jsxs95("span", { className: clsx2(defaultButtonChildrenVariants({ size })), children: [
|
|
6560
|
+
!!leftIcon && /* @__PURE__ */ jsx133(Icon, { name: leftIcon.name, size: buttonIconSizeMap[size], thick: buttonSizeIconThickMap[size] }),
|
|
6561
|
+
/* @__PURE__ */ jsx133("p", { className: style_module_default.content, children: newChildren }),
|
|
6562
|
+
!!rightIcon && /* @__PURE__ */ jsx133(Icon, { name: rightIcon.name, size: buttonIconSizeMap[size], thick: buttonSizeIconThickMap[size] })
|
|
6463
6563
|
] })
|
|
6464
6564
|
);
|
|
6465
6565
|
return ParentClone;
|
|
6466
6566
|
}
|
|
6467
|
-
return /* @__PURE__ */
|
|
6567
|
+
return /* @__PURE__ */ jsx133(
|
|
6468
6568
|
"button",
|
|
6469
6569
|
{
|
|
6470
6570
|
...rest,
|
|
6471
6571
|
className: clsx2(defaultButtonVariants({ level, fill, align, size, width }), className),
|
|
6472
6572
|
ref,
|
|
6473
|
-
children: /* @__PURE__ */
|
|
6474
|
-
!!leftIcon && /* @__PURE__ */
|
|
6573
|
+
children: /* @__PURE__ */ jsxs95("span", { className: clsx2(defaultButtonChildrenVariants({ size })), children: [
|
|
6574
|
+
!!leftIcon && /* @__PURE__ */ jsx133(
|
|
6475
6575
|
Icon,
|
|
6476
6576
|
{
|
|
6477
6577
|
name: leftIcon.name,
|
|
@@ -6480,8 +6580,8 @@ var DefaultButton = forwardRef(
|
|
|
6480
6580
|
fill: leftIcon.fill
|
|
6481
6581
|
}
|
|
6482
6582
|
),
|
|
6483
|
-
/* @__PURE__ */
|
|
6484
|
-
!!rightIcon && /* @__PURE__ */
|
|
6583
|
+
/* @__PURE__ */ jsx133("p", { className: style_module_default.content, children }),
|
|
6584
|
+
!!rightIcon && /* @__PURE__ */ jsx133(
|
|
6485
6585
|
Icon,
|
|
6486
6586
|
{
|
|
6487
6587
|
name: rightIcon.name,
|
|
@@ -6498,16 +6598,16 @@ var DefaultButton = forwardRef(
|
|
|
6498
6598
|
var TextButton = forwardRef(
|
|
6499
6599
|
({ level = "inverse-primary", asChild = false, className, ...rest }, ref) => {
|
|
6500
6600
|
const Component = asChild ? Slot : "button";
|
|
6501
|
-
return /* @__PURE__ */
|
|
6601
|
+
return /* @__PURE__ */ jsx133(Component, { ...rest, className: clsx2(textButtonVariants({ level }), className), ref });
|
|
6502
6602
|
}
|
|
6503
6603
|
);
|
|
6504
6604
|
var Button = forwardRef((props, ref) => {
|
|
6505
6605
|
switch (props.as) {
|
|
6506
6606
|
case "default":
|
|
6507
6607
|
case void 0:
|
|
6508
|
-
return /* @__PURE__ */
|
|
6608
|
+
return /* @__PURE__ */ jsx133(DefaultButton, { ...props, ref });
|
|
6509
6609
|
case "text":
|
|
6510
|
-
return /* @__PURE__ */
|
|
6610
|
+
return /* @__PURE__ */ jsx133(TextButton, { ...props, ref });
|
|
6511
6611
|
}
|
|
6512
6612
|
});
|
|
6513
6613
|
|
|
@@ -6592,7 +6692,7 @@ var colorVariants = cva3(style_module_default4.typography, {
|
|
|
6592
6692
|
});
|
|
6593
6693
|
|
|
6594
6694
|
// src/components/Typography/Paragraph.tsx
|
|
6595
|
-
import { jsx as
|
|
6695
|
+
import { jsx as jsx134 } from "react/jsx-runtime";
|
|
6596
6696
|
var Paragraph = /* @__PURE__ */ __name(({
|
|
6597
6697
|
size,
|
|
6598
6698
|
type,
|
|
@@ -6602,7 +6702,7 @@ var Paragraph = /* @__PURE__ */ __name(({
|
|
|
6602
6702
|
color = "neutral-label-primary",
|
|
6603
6703
|
...rest
|
|
6604
6704
|
}) => {
|
|
6605
|
-
return /* @__PURE__ */
|
|
6705
|
+
return /* @__PURE__ */ jsx134(
|
|
6606
6706
|
"p",
|
|
6607
6707
|
{
|
|
6608
6708
|
...rest,
|
|
@@ -6614,13 +6714,13 @@ var Paragraph = /* @__PURE__ */ __name(({
|
|
|
6614
6714
|
|
|
6615
6715
|
// src/components/Toast/index.tsx
|
|
6616
6716
|
import { useRecoilValue, useSetRecoilState as useSetRecoilState2 } from "recoil";
|
|
6617
|
-
import { jsx as
|
|
6717
|
+
import { jsx as jsx135, jsxs as jsxs96 } from "react/jsx-runtime";
|
|
6618
6718
|
import { createElement } from "react";
|
|
6619
6719
|
var Toaster = /* @__PURE__ */ __name(() => {
|
|
6620
6720
|
const { list } = useRecoilValue(toastAtom);
|
|
6621
|
-
return /* @__PURE__ */
|
|
6721
|
+
return /* @__PURE__ */ jsxs96(Provider, { children: [
|
|
6622
6722
|
list.map((props) => /* @__PURE__ */ createElement(SingleToast, { ...props, key: props.toastId })),
|
|
6623
|
-
/* @__PURE__ */
|
|
6723
|
+
/* @__PURE__ */ jsx135(Viewport, { className: style_module_default3.ToastViewport })
|
|
6624
6724
|
] });
|
|
6625
6725
|
}, "Toaster");
|
|
6626
6726
|
var SingleToast = /* @__PURE__ */ __name((props) => {
|
|
@@ -6649,10 +6749,10 @@ var SingleToast = /* @__PURE__ */ __name((props) => {
|
|
|
6649
6749
|
clearTimeout(timerRef.current);
|
|
6650
6750
|
};
|
|
6651
6751
|
}, []);
|
|
6652
|
-
return /* @__PURE__ */
|
|
6653
|
-
icon && /* @__PURE__ */
|
|
6654
|
-
/* @__PURE__ */
|
|
6655
|
-
/* @__PURE__ */
|
|
6752
|
+
return /* @__PURE__ */ jsxs96(Root, { className: style_module_default3.ToastRoot, open: isOpen, ...props, children: [
|
|
6753
|
+
icon && /* @__PURE__ */ jsx135("i", { className: style_module_default3.Icon, children: /* @__PURE__ */ jsx135(Icon, { ...icon, size: "s" }) }),
|
|
6754
|
+
/* @__PURE__ */ jsxs96(Title, { className: style_module_default3.ToastTitle, children: [
|
|
6755
|
+
/* @__PURE__ */ jsx135(
|
|
6656
6756
|
Paragraph,
|
|
6657
6757
|
{
|
|
6658
6758
|
className: style_module_default3.TitleText,
|
|
@@ -6663,7 +6763,7 @@ var SingleToast = /* @__PURE__ */ __name((props) => {
|
|
|
6663
6763
|
children: message
|
|
6664
6764
|
}
|
|
6665
6765
|
),
|
|
6666
|
-
button && /* @__PURE__ */
|
|
6766
|
+
button && /* @__PURE__ */ jsx135(
|
|
6667
6767
|
Button,
|
|
6668
6768
|
{
|
|
6669
6769
|
onClick: () => {
|
|
@@ -6686,7 +6786,7 @@ var SingleToast = /* @__PURE__ */ __name((props) => {
|
|
|
6686
6786
|
|
|
6687
6787
|
// src/components/Typography/Heading.tsx
|
|
6688
6788
|
import clsx4 from "clsx";
|
|
6689
|
-
import { jsx as
|
|
6789
|
+
import { jsx as jsx136 } from "react/jsx-runtime";
|
|
6690
6790
|
var Heading = /* @__PURE__ */ __name(({
|
|
6691
6791
|
size,
|
|
6692
6792
|
children,
|
|
@@ -6696,7 +6796,7 @@ var Heading = /* @__PURE__ */ __name(({
|
|
|
6696
6796
|
...rest
|
|
6697
6797
|
}) => {
|
|
6698
6798
|
const Element = `h${size}`;
|
|
6699
|
-
return /* @__PURE__ */
|
|
6799
|
+
return /* @__PURE__ */ jsx136(
|
|
6700
6800
|
Element,
|
|
6701
6801
|
{
|
|
6702
6802
|
...rest,
|
|
@@ -6708,7 +6808,7 @@ var Heading = /* @__PURE__ */ __name(({
|
|
|
6708
6808
|
|
|
6709
6809
|
// src/components/Typography/Display.tsx
|
|
6710
6810
|
import clsx5 from "clsx";
|
|
6711
|
-
import { jsx as
|
|
6811
|
+
import { jsx as jsx137 } from "react/jsx-runtime";
|
|
6712
6812
|
var Display = /* @__PURE__ */ __name(({
|
|
6713
6813
|
size,
|
|
6714
6814
|
type,
|
|
@@ -6718,7 +6818,7 @@ var Display = /* @__PURE__ */ __name(({
|
|
|
6718
6818
|
color = "neutral-label-primary",
|
|
6719
6819
|
...rest
|
|
6720
6820
|
}) => {
|
|
6721
|
-
return /* @__PURE__ */
|
|
6821
|
+
return /* @__PURE__ */ jsx137(
|
|
6722
6822
|
"p",
|
|
6723
6823
|
{
|
|
6724
6824
|
...rest,
|
|
@@ -6730,7 +6830,7 @@ var Display = /* @__PURE__ */ __name(({
|
|
|
6730
6830
|
|
|
6731
6831
|
// src/components/Typography/Title.tsx
|
|
6732
6832
|
import clsx6 from "clsx";
|
|
6733
|
-
import { jsx as
|
|
6833
|
+
import { jsx as jsx138 } from "react/jsx-runtime";
|
|
6734
6834
|
var Title2 = /* @__PURE__ */ __name(({
|
|
6735
6835
|
weight,
|
|
6736
6836
|
size,
|
|
@@ -6740,7 +6840,7 @@ var Title2 = /* @__PURE__ */ __name(({
|
|
|
6740
6840
|
color = "neutral-label-primary",
|
|
6741
6841
|
...rest
|
|
6742
6842
|
}) => {
|
|
6743
|
-
return /* @__PURE__ */
|
|
6843
|
+
return /* @__PURE__ */ jsx138(
|
|
6744
6844
|
"p",
|
|
6745
6845
|
{
|
|
6746
6846
|
...rest,
|
|
@@ -6752,7 +6852,7 @@ var Title2 = /* @__PURE__ */ __name(({
|
|
|
6752
6852
|
|
|
6753
6853
|
// src/components/Typography/Caption.tsx
|
|
6754
6854
|
import clsx7 from "clsx";
|
|
6755
|
-
import { jsx as
|
|
6855
|
+
import { jsx as jsx139 } from "react/jsx-runtime";
|
|
6756
6856
|
var Caption = /* @__PURE__ */ __name(({
|
|
6757
6857
|
children,
|
|
6758
6858
|
size,
|
|
@@ -6762,7 +6862,7 @@ var Caption = /* @__PURE__ */ __name(({
|
|
|
6762
6862
|
color = "neutral-label-primary",
|
|
6763
6863
|
...rest
|
|
6764
6864
|
}) => {
|
|
6765
|
-
return /* @__PURE__ */
|
|
6865
|
+
return /* @__PURE__ */ jsx139(
|
|
6766
6866
|
"p",
|
|
6767
6867
|
{
|
|
6768
6868
|
...rest,
|
|
@@ -6800,7 +6900,7 @@ var style_module_default5 = {
|
|
|
6800
6900
|
// src/components/Popover/index.tsx
|
|
6801
6901
|
import { cva as cva4 } from "class-variance-authority";
|
|
6802
6902
|
import { clsx as clsx8 } from "clsx";
|
|
6803
|
-
import { jsx as
|
|
6903
|
+
import { jsx as jsx140, jsxs as jsxs97 } from "react/jsx-runtime";
|
|
6804
6904
|
var DEFAULT_OFFSET = -6;
|
|
6805
6905
|
var popoverVariants = cva4(style_module_default5.content, {
|
|
6806
6906
|
variants: {
|
|
@@ -6822,9 +6922,9 @@ var popoverTagVariants = cva4([style_module_default5.tag, "lp-sys-typo-caption3-
|
|
|
6822
6922
|
var popoverTitleVariants = cva4([style_module_default5.title, "lp-sys-typo-paragraph3-normal-bold"]);
|
|
6823
6923
|
var popoverDescriptionVariants = cva4([style_module_default5.description, "lp-sys-typo-caption1-normal-regular"]);
|
|
6824
6924
|
var popoverFooterVariants = cva4([style_module_default5.footer, "lp-sys-typo-caption1-normal-medium"]);
|
|
6825
|
-
var PopoverRoot = /* @__PURE__ */ __name(({ isOpen, children, onChange }) => /* @__PURE__ */
|
|
6826
|
-
var PopoverTrigger = /* @__PURE__ */ __name(({ by }) => /* @__PURE__ */
|
|
6827
|
-
var PopoverAnchor = /* @__PURE__ */ __name(({ className }) => /* @__PURE__ */
|
|
6925
|
+
var PopoverRoot = /* @__PURE__ */ __name(({ isOpen, children, onChange }) => /* @__PURE__ */ jsx140(PopoverPrimitive.Root, { open: isOpen, onOpenChange: onChange, children }), "PopoverRoot");
|
|
6926
|
+
var PopoverTrigger = /* @__PURE__ */ __name(({ by }) => /* @__PURE__ */ jsx140(PopoverPrimitive.Trigger, { asChild: true, children: by }), "PopoverTrigger");
|
|
6927
|
+
var PopoverAnchor = /* @__PURE__ */ __name(({ className }) => /* @__PURE__ */ jsx140(
|
|
6828
6928
|
"svg",
|
|
6829
6929
|
{
|
|
6830
6930
|
className,
|
|
@@ -6834,7 +6934,7 @@ var PopoverAnchor = /* @__PURE__ */ __name(({ className }) => /* @__PURE__ */ js
|
|
|
6834
6934
|
height: "10",
|
|
6835
6935
|
viewBox: "0 0 30 10",
|
|
6836
6936
|
fill: "none",
|
|
6837
|
-
children: /* @__PURE__ */
|
|
6937
|
+
children: /* @__PURE__ */ jsx140(
|
|
6838
6938
|
"path",
|
|
6839
6939
|
{
|
|
6840
6940
|
"fill-rule": "evenodd",
|
|
@@ -6859,7 +6959,7 @@ var PopoverContent = React.forwardRef(
|
|
|
6859
6959
|
onClose,
|
|
6860
6960
|
className,
|
|
6861
6961
|
...props
|
|
6862
|
-
}, ref) => /* @__PURE__ */
|
|
6962
|
+
}, ref) => /* @__PURE__ */ jsx140(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsxs97(
|
|
6863
6963
|
PopoverPrimitive.Content,
|
|
6864
6964
|
{
|
|
6865
6965
|
ref,
|
|
@@ -6869,24 +6969,24 @@ var PopoverContent = React.forwardRef(
|
|
|
6869
6969
|
className: clsx8(popoverVariants({ level }), className),
|
|
6870
6970
|
...props,
|
|
6871
6971
|
children: [
|
|
6872
|
-
/* @__PURE__ */
|
|
6873
|
-
/* @__PURE__ */
|
|
6874
|
-
tag && /* @__PURE__ */
|
|
6875
|
-
icon && /* @__PURE__ */
|
|
6876
|
-
/* @__PURE__ */
|
|
6877
|
-
/* @__PURE__ */
|
|
6972
|
+
/* @__PURE__ */ jsxs97("div", { className: style_module_default5.contentContainer, children: [
|
|
6973
|
+
/* @__PURE__ */ jsxs97("div", { className: style_module_default5.heading, children: [
|
|
6974
|
+
tag && /* @__PURE__ */ jsx140("span", { className: popoverTagVariants(), children: tag }),
|
|
6975
|
+
icon && /* @__PURE__ */ jsx140(Icon, { name: icon.name, size: "xs", thick: icon.thick, fill: icon.fill }),
|
|
6976
|
+
/* @__PURE__ */ jsx140("p", { className: popoverTitleVariants(), children: title }),
|
|
6977
|
+
/* @__PURE__ */ jsx140(
|
|
6878
6978
|
PopoverPrimitive.PopoverClose,
|
|
6879
6979
|
{
|
|
6880
6980
|
className: style_module_default5.closeButton,
|
|
6881
6981
|
onClick: () => {
|
|
6882
6982
|
onClose?.();
|
|
6883
6983
|
},
|
|
6884
|
-
children: /* @__PURE__ */
|
|
6984
|
+
children: /* @__PURE__ */ jsx140(Icon, { name: "close-fill", size: "s", fill: true, thick: true, type: "neutral-label-static-primary" })
|
|
6885
6985
|
}
|
|
6886
6986
|
)
|
|
6887
6987
|
] }),
|
|
6888
|
-
/* @__PURE__ */
|
|
6889
|
-
onConfirm && /* @__PURE__ */
|
|
6988
|
+
/* @__PURE__ */ jsx140("p", { className: popoverDescriptionVariants(), children: description }),
|
|
6989
|
+
onConfirm && /* @__PURE__ */ jsx140("div", { className: popoverFooterVariants(), children: /* @__PURE__ */ jsx140(
|
|
6890
6990
|
Button,
|
|
6891
6991
|
{
|
|
6892
6992
|
as: "text",
|
|
@@ -6898,7 +6998,7 @@ var PopoverContent = React.forwardRef(
|
|
|
6898
6998
|
}
|
|
6899
6999
|
) })
|
|
6900
7000
|
] }),
|
|
6901
|
-
/* @__PURE__ */
|
|
7001
|
+
/* @__PURE__ */ jsx140(PopoverPrimitive.Arrow, { asChild: true, children: /* @__PURE__ */ jsx140(PopoverAnchor, { className: clsx8(popoverAnchorVariants({ level })) }) })
|
|
6902
7002
|
]
|
|
6903
7003
|
}
|
|
6904
7004
|
) })
|
|
@@ -6923,14 +7023,14 @@ var style_module_default6 = {
|
|
|
6923
7023
|
// src/components/Tooltip/index.tsx
|
|
6924
7024
|
import { cva as cva5 } from "class-variance-authority";
|
|
6925
7025
|
import clsx9 from "clsx";
|
|
6926
|
-
import { jsx as
|
|
7026
|
+
import { jsx as jsx141 } from "react/jsx-runtime";
|
|
6927
7027
|
var DEFAULT_OFFSET2 = "medium";
|
|
6928
7028
|
var tooltipVariants = cva5([style_module_default6.tooltip, "lp-sys-typo-caption1-normal-medium"]);
|
|
6929
7029
|
var TooltipProvider = TooltipPrimitive.Provider;
|
|
6930
|
-
var TooltipRoot = /* @__PURE__ */ __name(({ children }) => /* @__PURE__ */
|
|
6931
|
-
var TooltipTrigger = /* @__PURE__ */ __name(({ by }) => /* @__PURE__ */
|
|
7030
|
+
var TooltipRoot = /* @__PURE__ */ __name(({ children }) => /* @__PURE__ */ jsx141(TooltipPrimitive.Root, { delayDuration: 0, children }), "TooltipRoot");
|
|
7031
|
+
var TooltipTrigger = /* @__PURE__ */ __name(({ by }) => /* @__PURE__ */ jsx141(TooltipPrimitive.Trigger, { asChild: true, children: by }), "TooltipTrigger");
|
|
6932
7032
|
var TooltipContent = forwardRef3(
|
|
6933
|
-
({ description, position = "top", className, offset = DEFAULT_OFFSET2, ...props }, ref) => /* @__PURE__ */
|
|
7033
|
+
({ description, position = "top", className, offset = DEFAULT_OFFSET2, ...props }, ref) => /* @__PURE__ */ jsx141(
|
|
6934
7034
|
TooltipPrimitive.Content,
|
|
6935
7035
|
{
|
|
6936
7036
|
ref,
|
|
@@ -6938,7 +7038,7 @@ var TooltipContent = forwardRef3(
|
|
|
6938
7038
|
sideOffset: offset === "medium" ? 4 : 8,
|
|
6939
7039
|
className: clsx9(tooltipVariants(), className),
|
|
6940
7040
|
...props,
|
|
6941
|
-
children: /* @__PURE__ */
|
|
7041
|
+
children: /* @__PURE__ */ jsx141("p", { className: style_module_default6.tooltipContent, children: description })
|
|
6942
7042
|
}
|
|
6943
7043
|
)
|
|
6944
7044
|
);
|
|
@@ -6970,7 +7070,7 @@ var style_module_default7 = {
|
|
|
6970
7070
|
|
|
6971
7071
|
// src/components/IconButton/index.tsx
|
|
6972
7072
|
import { Slot as Slot2 } from "@radix-ui/react-slot";
|
|
6973
|
-
import { jsx as
|
|
7073
|
+
import { jsx as jsx142 } from "react/jsx-runtime";
|
|
6974
7074
|
var iconButtonSizeIconSizeMap = {
|
|
6975
7075
|
l: "m",
|
|
6976
7076
|
m: "s",
|
|
@@ -7006,7 +7106,7 @@ var iconButtonVariants = cva6([style_module_default7.iconButton], {
|
|
|
7006
7106
|
var IconButton = forwardRef4(
|
|
7007
7107
|
({ asChild, level = "primary", name, thick = false, fill = false, size = "m", className, ...rest }, ref) => {
|
|
7008
7108
|
const Comp = asChild ? Slot2 : "button";
|
|
7009
|
-
return /* @__PURE__ */
|
|
7109
|
+
return /* @__PURE__ */ jsx142(Comp, { ...rest, className: clsx10(iconButtonVariants({ level, size }), className), ref, children: /* @__PURE__ */ jsx142(
|
|
7010
7110
|
Icon,
|
|
7011
7111
|
{
|
|
7012
7112
|
name,
|
|
@@ -7058,7 +7158,7 @@ var style_module_default9 = {
|
|
|
7058
7158
|
|
|
7059
7159
|
// src/components/_Label/index.tsx
|
|
7060
7160
|
import { cva as cva7 } from "class-variance-authority";
|
|
7061
|
-
import { jsx as
|
|
7161
|
+
import { jsx as jsx143 } from "react/jsx-runtime";
|
|
7062
7162
|
var defaultLabelVariants = cva7(["lp-sys-typo-paragraph2-normal-medium", style_module_default9.label], {
|
|
7063
7163
|
variants: {
|
|
7064
7164
|
level: {
|
|
@@ -7098,7 +7198,7 @@ var Label = forwardRef5(
|
|
|
7098
7198
|
error = false,
|
|
7099
7199
|
...props
|
|
7100
7200
|
}, ref) => {
|
|
7101
|
-
return /* @__PURE__ */
|
|
7201
|
+
return /* @__PURE__ */ jsx143(
|
|
7102
7202
|
LabelPrimitive.Root,
|
|
7103
7203
|
{
|
|
7104
7204
|
ref,
|
|
@@ -7110,17 +7210,17 @@ var Label = forwardRef5(
|
|
|
7110
7210
|
);
|
|
7111
7211
|
|
|
7112
7212
|
// src/components/CheckBox/index.tsx
|
|
7113
|
-
import { Fragment as Fragment3, jsx as
|
|
7213
|
+
import { Fragment as Fragment3, jsx as jsx144, jsxs as jsxs98 } from "react/jsx-runtime";
|
|
7114
7214
|
var Checkbox = forwardRef6(
|
|
7115
7215
|
({ className, label, description, ...props }, ref) => {
|
|
7116
|
-
const CheckboxWrapper = /* @__PURE__ */ __name(({ children }) => label ? /* @__PURE__ */
|
|
7117
|
-
/* @__PURE__ */
|
|
7216
|
+
const CheckboxWrapper = /* @__PURE__ */ __name(({ children }) => label ? /* @__PURE__ */ jsxs98(Label, { position: "right", htmlFor: props.id, children: [
|
|
7217
|
+
/* @__PURE__ */ jsxs98("div", { className: style_module_default8["label-wrapper"], children: [
|
|
7118
7218
|
label,
|
|
7119
|
-
/* @__PURE__ */
|
|
7219
|
+
/* @__PURE__ */ jsx144(Paragraph, { className: style_module_default8.description, size: 3, type: "normal", weight: "regular", children: description })
|
|
7120
7220
|
] }),
|
|
7121
7221
|
children
|
|
7122
|
-
] }) : /* @__PURE__ */
|
|
7123
|
-
return /* @__PURE__ */
|
|
7222
|
+
] }) : /* @__PURE__ */ jsx144(Fragment3, { children }), "CheckboxWrapper");
|
|
7223
|
+
return /* @__PURE__ */ jsx144(CheckboxWrapper, { children: /* @__PURE__ */ jsx144(CheckboxPrimitive.Root, { className: clsx12(style_module_default8.checkbox, className), ref, ...props, children: /* @__PURE__ */ jsx144(CheckboxPrimitive.Indicator, { className: style_module_default8["checkbox-indicator"], children: /* @__PURE__ */ jsx144(Icon, { name: "check-mark", thick: true, size: "xs", type: "inverse-label-primary" }) }) }) });
|
|
7124
7224
|
}
|
|
7125
7225
|
);
|
|
7126
7226
|
|
|
@@ -7139,19 +7239,19 @@ var style_module_default10 = {
|
|
|
7139
7239
|
};
|
|
7140
7240
|
|
|
7141
7241
|
// src/components/Radio/index.tsx
|
|
7142
|
-
import { Fragment as Fragment4, jsx as
|
|
7143
|
-
var RadioIndicator = /* @__PURE__ */ __name(() => /* @__PURE__ */
|
|
7144
|
-
var RadioRoot = forwardRef7(({ className, ...props }, ref) => /* @__PURE__ */
|
|
7242
|
+
import { Fragment as Fragment4, jsx as jsx145, jsxs as jsxs99 } from "react/jsx-runtime";
|
|
7243
|
+
var RadioIndicator = /* @__PURE__ */ __name(() => /* @__PURE__ */ jsx145("svg", { xmlns: "http://www.w3.org/2000/svg", width: "10", height: "10", viewBox: "0 0 10 10", fill: "none", children: /* @__PURE__ */ jsx145("circle", { cx: "5", cy: "5", r: "5", fill: "#313133" }) }), "RadioIndicator");
|
|
7244
|
+
var RadioRoot = forwardRef7(({ className, ...props }, ref) => /* @__PURE__ */ jsx145(RadioGroupPrimitive.Root, { className: clsx13(style_module_default10.radio, className), ...props }));
|
|
7145
7245
|
var RadioItem = forwardRef7(
|
|
7146
7246
|
({ className, label, description, ...props }, ref) => {
|
|
7147
|
-
const RadioItemWrapper = /* @__PURE__ */ __name(({ children }) => label ? /* @__PURE__ */
|
|
7148
|
-
/* @__PURE__ */
|
|
7247
|
+
const RadioItemWrapper = /* @__PURE__ */ __name(({ children }) => label ? /* @__PURE__ */ jsxs99(Label, { position: "right", htmlFor: props.id, children: [
|
|
7248
|
+
/* @__PURE__ */ jsxs99("div", { className: style_module_default10["label-wrapper"], children: [
|
|
7149
7249
|
label,
|
|
7150
|
-
/* @__PURE__ */
|
|
7250
|
+
/* @__PURE__ */ jsx145(Paragraph, { className: style_module_default10.description, size: 3, type: "normal", weight: "regular", children: description })
|
|
7151
7251
|
] }),
|
|
7152
7252
|
children
|
|
7153
|
-
] }) : /* @__PURE__ */
|
|
7154
|
-
return /* @__PURE__ */
|
|
7253
|
+
] }) : /* @__PURE__ */ jsx145(Fragment4, { children }), "RadioItemWrapper");
|
|
7254
|
+
return /* @__PURE__ */ jsx145(RadioItemWrapper, { children: /* @__PURE__ */ jsx145(RadioGroupPrimitive.Item, { ref, className: clsx13(style_module_default10["radio-item"], className), ...props, children: /* @__PURE__ */ jsx145(RadioGroupPrimitive.Indicator, { className: style_module_default10.indicator, children: /* @__PURE__ */ jsx145(RadioIndicator, {}) }) }) });
|
|
7155
7255
|
}
|
|
7156
7256
|
);
|
|
7157
7257
|
var Radio = Object.assign(RadioRoot, {
|
|
@@ -7191,7 +7291,7 @@ var style_module_default11 = {
|
|
|
7191
7291
|
// src/components/Textfield/index.tsx
|
|
7192
7292
|
import { cva as cva8 } from "class-variance-authority";
|
|
7193
7293
|
import clsx14 from "clsx";
|
|
7194
|
-
import { Fragment as Fragment5, jsx as
|
|
7294
|
+
import { Fragment as Fragment5, jsx as jsx146, jsxs as jsxs100 } from "react/jsx-runtime";
|
|
7195
7295
|
var defaultTextfieldVariants = cva8(style_module_default11.textfield);
|
|
7196
7296
|
var Textfield = forwardRef8((props, ref) => {
|
|
7197
7297
|
const {
|
|
@@ -7239,8 +7339,8 @@ var Textfield = forwardRef8((props, ref) => {
|
|
|
7239
7339
|
setDeidentifiy((prev) => !prev);
|
|
7240
7340
|
}, "handleDeidentify");
|
|
7241
7341
|
useImperativeHandle(ref, () => inputRef.current);
|
|
7242
|
-
return /* @__PURE__ */
|
|
7243
|
-
/* @__PURE__ */
|
|
7342
|
+
return /* @__PURE__ */ jsxs100("div", { className: style_module_default11["textfield-container"], children: [
|
|
7343
|
+
/* @__PURE__ */ jsx146(
|
|
7244
7344
|
"div",
|
|
7245
7345
|
{
|
|
7246
7346
|
className: clsx14(defaultTextfieldVariants(), {
|
|
@@ -7248,8 +7348,8 @@ var Textfield = forwardRef8((props, ref) => {
|
|
|
7248
7348
|
[style_module_default11["label-out-textfield"]]: labelType === "out"
|
|
7249
7349
|
}),
|
|
7250
7350
|
onClick: handleTextfieldClick,
|
|
7251
|
-
children: /* @__PURE__ */
|
|
7252
|
-
/* @__PURE__ */
|
|
7351
|
+
children: /* @__PURE__ */ jsxs100("div", { className: style_module_default11["input-wrapper"], children: [
|
|
7352
|
+
/* @__PURE__ */ jsx146(
|
|
7253
7353
|
"input",
|
|
7254
7354
|
{
|
|
7255
7355
|
className: clsx14(style_module_default11.input, {
|
|
@@ -7264,7 +7364,7 @@ var Textfield = forwardRef8((props, ref) => {
|
|
|
7264
7364
|
...rest
|
|
7265
7365
|
}
|
|
7266
7366
|
),
|
|
7267
|
-
/* @__PURE__ */
|
|
7367
|
+
/* @__PURE__ */ jsx146(
|
|
7268
7368
|
Label,
|
|
7269
7369
|
{
|
|
7270
7370
|
className: clsx14(style_module_default11.label, {
|
|
@@ -7276,8 +7376,8 @@ var Textfield = forwardRef8((props, ref) => {
|
|
|
7276
7376
|
children: labelText
|
|
7277
7377
|
}
|
|
7278
7378
|
),
|
|
7279
|
-
/* @__PURE__ */
|
|
7280
|
-
textfieldValue && /* @__PURE__ */
|
|
7379
|
+
/* @__PURE__ */ jsxs100("div", { className: style_module_default11["input-action-buttons"], children: [
|
|
7380
|
+
textfieldValue && /* @__PURE__ */ jsx146(
|
|
7281
7381
|
IconButton,
|
|
7282
7382
|
{
|
|
7283
7383
|
className: style_module_default11["action-button"],
|
|
@@ -7289,7 +7389,7 @@ var Textfield = forwardRef8((props, ref) => {
|
|
|
7289
7389
|
onClick: handleClear
|
|
7290
7390
|
}
|
|
7291
7391
|
),
|
|
7292
|
-
isPassword && /* @__PURE__ */
|
|
7392
|
+
isPassword && /* @__PURE__ */ jsx146(
|
|
7293
7393
|
IconButton,
|
|
7294
7394
|
{
|
|
7295
7395
|
className: style_module_default11["action-button"],
|
|
@@ -7301,17 +7401,17 @@ var Textfield = forwardRef8((props, ref) => {
|
|
|
7301
7401
|
onClick: handleDeidentify
|
|
7302
7402
|
}
|
|
7303
7403
|
),
|
|
7304
|
-
button && /* @__PURE__ */
|
|
7404
|
+
button && /* @__PURE__ */ jsx146(Button, { size: "m", type: "button", onClick: button.onClick, children: button.text })
|
|
7305
7405
|
] })
|
|
7306
7406
|
] })
|
|
7307
7407
|
}
|
|
7308
7408
|
),
|
|
7309
|
-
/* @__PURE__ */
|
|
7310
|
-
/* @__PURE__ */
|
|
7311
|
-
/* @__PURE__ */
|
|
7312
|
-
/* @__PURE__ */
|
|
7409
|
+
/* @__PURE__ */ jsxs100("div", { className: style_module_default11.footer, children: [
|
|
7410
|
+
/* @__PURE__ */ jsx146("div", { className: style_module_default11["error-wrapper"], children: error && /* @__PURE__ */ jsxs100(Fragment5, { children: [
|
|
7411
|
+
/* @__PURE__ */ jsx146(Icon, { className: style_module_default11["error-icon"], name: "exclamationmark-fill", fill: true, thick: true, size: "xs" }),
|
|
7412
|
+
/* @__PURE__ */ jsx146(Caption, { size: 3, type: "normal", weight: "regular", className: style_module_default11["error-message"], children: error })
|
|
7313
7413
|
] }) }),
|
|
7314
|
-
maxCharacter && /* @__PURE__ */
|
|
7414
|
+
maxCharacter && /* @__PURE__ */ jsxs100(Caption, { className: style_module_default11.character, size: 3, type: "normal", weight: "regular", children: [
|
|
7315
7415
|
isControlled ? controlledValue.length : value.length,
|
|
7316
7416
|
"/",
|
|
7317
7417
|
maxCharacter
|