@zenkigen-inc/component-ui 1.19.3 → 1.20.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/dist/index.d.mts +24 -4
- package/dist/index.d.ts +24 -4
- package/dist/index.js +278 -239
- package/dist/index.mjs +237 -199
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -69,7 +69,7 @@ function Avatar({ size = "medium", ...props }) {
|
|
|
69
69
|
// src/breadcrumb/breadcrumb-item.tsx
|
|
70
70
|
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
71
71
|
var BreadcrumbItem = ({ children }) => {
|
|
72
|
-
return /* @__PURE__ */ jsx3("li", { className: "flex gap-2 after:content-['/'] last:after:content-none [&_a]:text-interactive02 [&_a]:hover:underline", children });
|
|
72
|
+
return /* @__PURE__ */ jsx3("li", { className: "flex gap-2 after:content-['/'] last:after:content-none [&_a]:text-interactive02 [&_a]:hover:underline [&_a]:active:text-activeLink02 [&_a]:active:underline", children });
|
|
73
73
|
};
|
|
74
74
|
|
|
75
75
|
// src/breadcrumb/breadcrumb.tsx
|
|
@@ -967,6 +967,12 @@ var DatePicker = ({
|
|
|
967
967
|
DatePicker.ErrorMessage = DatePickerErrorMessage;
|
|
968
968
|
DatePicker.displayName = "DatePicker";
|
|
969
969
|
|
|
970
|
+
// src/divider/divider.tsx
|
|
971
|
+
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
972
|
+
function Divider() {
|
|
973
|
+
return /* @__PURE__ */ jsx16("hr", { className: "h-px w-full border-0 bg-uiBorder01" });
|
|
974
|
+
}
|
|
975
|
+
|
|
970
976
|
// src/dropdown/dropdown.tsx
|
|
971
977
|
import { buttonColors as buttonColors3, focusVisible as focusVisible6 } from "@zenkigen-inc/component-theme";
|
|
972
978
|
import clsx13 from "clsx";
|
|
@@ -979,7 +985,11 @@ var useOutsideClick = (ref, handler, enabled = true) => {
|
|
|
979
985
|
useEffect4(() => {
|
|
980
986
|
const listener = (event) => {
|
|
981
987
|
const element = ref?.current;
|
|
982
|
-
|
|
988
|
+
const target = event.target;
|
|
989
|
+
if (target instanceof Node && target.isConnected === false) {
|
|
990
|
+
return;
|
|
991
|
+
}
|
|
992
|
+
if (element == null || Boolean(element.contains(target ?? null))) {
|
|
983
993
|
return;
|
|
984
994
|
}
|
|
985
995
|
handler(event);
|
|
@@ -1005,7 +1015,7 @@ var DropdownContext = createContext3({
|
|
|
1005
1015
|
import { focusVisible as focusVisible5 } from "@zenkigen-inc/component-theme";
|
|
1006
1016
|
import clsx11 from "clsx";
|
|
1007
1017
|
import { useContext as useContext3 } from "react";
|
|
1008
|
-
import { jsx as
|
|
1018
|
+
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
1009
1019
|
function DropdownItem({ children, color = "gray", onClick }) {
|
|
1010
1020
|
const { setIsVisible } = useContext3(DropdownContext);
|
|
1011
1021
|
const handleClickItem = (event) => {
|
|
@@ -1020,13 +1030,13 @@ function DropdownItem({ children, color = "gray", onClick }) {
|
|
|
1020
1030
|
"fill-supportDanger text-supportDanger": color === "red"
|
|
1021
1031
|
}
|
|
1022
1032
|
);
|
|
1023
|
-
return /* @__PURE__ */
|
|
1033
|
+
return /* @__PURE__ */ jsx17("li", { className: "flex w-full items-center", children: /* @__PURE__ */ jsx17("button", { className: itemClasses, type: "button", onClick: handleClickItem, children }) });
|
|
1024
1034
|
}
|
|
1025
1035
|
|
|
1026
1036
|
// src/dropdown/dropdown-menu.tsx
|
|
1027
1037
|
import clsx12 from "clsx";
|
|
1028
1038
|
import { useContext as useContext4 } from "react";
|
|
1029
|
-
import { jsx as
|
|
1039
|
+
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
1030
1040
|
function DropdownMenu({
|
|
1031
1041
|
children,
|
|
1032
1042
|
maxHeight,
|
|
@@ -1043,7 +1053,7 @@ function DropdownMenu({
|
|
|
1043
1053
|
"right-0": horizontalAlign === "right",
|
|
1044
1054
|
"left-auto": horizontalAlign === "center"
|
|
1045
1055
|
});
|
|
1046
|
-
return isVisible && !isDisabled && /* @__PURE__ */
|
|
1056
|
+
return isVisible && !isDisabled && /* @__PURE__ */ jsx18(
|
|
1047
1057
|
"ul",
|
|
1048
1058
|
{
|
|
1049
1059
|
className: wrapperClasses,
|
|
@@ -1058,7 +1068,7 @@ function DropdownMenu({
|
|
|
1058
1068
|
}
|
|
1059
1069
|
|
|
1060
1070
|
// src/dropdown/dropdown.tsx
|
|
1061
|
-
import { jsx as
|
|
1071
|
+
import { jsx as jsx19, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
1062
1072
|
function Dropdown({
|
|
1063
1073
|
children,
|
|
1064
1074
|
target,
|
|
@@ -1126,7 +1136,7 @@ function Dropdown({
|
|
|
1126
1136
|
"typography-label14regular": size === "small" || size === "medium",
|
|
1127
1137
|
"typography-label16regular": size === "large"
|
|
1128
1138
|
});
|
|
1129
|
-
return /* @__PURE__ */
|
|
1139
|
+
return /* @__PURE__ */ jsx19(
|
|
1130
1140
|
DropdownContext.Provider,
|
|
1131
1141
|
{
|
|
1132
1142
|
value: { isVisible, setIsVisible, isDisabled, targetDimensions, variant, portalTargetRef },
|
|
@@ -1141,7 +1151,7 @@ function Dropdown({
|
|
|
1141
1151
|
disabled: isDisabled,
|
|
1142
1152
|
children: [
|
|
1143
1153
|
target,
|
|
1144
|
-
!isArrowHidden && /* @__PURE__ */
|
|
1154
|
+
!isArrowHidden && /* @__PURE__ */ jsx19("div", { className: "ml-2 flex items-center fill-icon01", children: /* @__PURE__ */ jsx19(
|
|
1145
1155
|
Icon,
|
|
1146
1156
|
{
|
|
1147
1157
|
name: isVisible ? "angle-small-up" : "angle-small-down",
|
|
@@ -1151,9 +1161,9 @@ function Dropdown({
|
|
|
1151
1161
|
]
|
|
1152
1162
|
}
|
|
1153
1163
|
) : /* @__PURE__ */ jsxs5("button", { type: "button", title, className: buttonClasses, onClick: handleToggle, disabled: isDisabled, children: [
|
|
1154
|
-
icon && /* @__PURE__ */
|
|
1155
|
-
/* @__PURE__ */
|
|
1156
|
-
!isArrowHidden && /* @__PURE__ */
|
|
1164
|
+
icon && /* @__PURE__ */ jsx19("span", { className: "mr-1 flex", children: /* @__PURE__ */ jsx19(Icon, { name: icon, size: size === "large" ? "medium" : "small" }) }),
|
|
1165
|
+
/* @__PURE__ */ jsx19("span", { className: labelClasses, children: label }),
|
|
1166
|
+
!isArrowHidden && /* @__PURE__ */ jsx19("div", { className: "ml-auto flex items-center", children: /* @__PURE__ */ jsx19(Icon, { name: isVisible ? "angle-small-up" : "angle-small-down", size: "small" }) })
|
|
1157
1167
|
] }),
|
|
1158
1168
|
!portalTargetRef ? children : portalTargetRef != null && portalTargetRef.current && createPortal(children, portalTargetRef.current)
|
|
1159
1169
|
] })
|
|
@@ -1168,7 +1178,7 @@ import { iconElements as iconElements2 } from "@zenkigen-inc/component-icons";
|
|
|
1168
1178
|
import { focusVisible as focusVisible7 } from "@zenkigen-inc/component-theme";
|
|
1169
1179
|
import clsx14 from "clsx";
|
|
1170
1180
|
import { useCallback as useCallback5, useState as useState4 } from "react";
|
|
1171
|
-
import { jsx as
|
|
1181
|
+
import { jsx as jsx20 } from "react/jsx-runtime";
|
|
1172
1182
|
function EvaluationStar({ value, isEditable = false, onChangeRating, size = "medium" }) {
|
|
1173
1183
|
const maxRating = 5;
|
|
1174
1184
|
const [currentRating, setCurrentRating] = useState4(value);
|
|
@@ -1187,26 +1197,26 @@ function EvaluationStar({ value, isEditable = false, onChangeRating, size = "med
|
|
|
1187
1197
|
const renderStar = (rating) => {
|
|
1188
1198
|
const color = rating <= currentRating ? "fill-yellow-yellow50" : "fill-icon03";
|
|
1189
1199
|
const IconComponent = iconElements2["star-filled"];
|
|
1190
|
-
return /* @__PURE__ */
|
|
1200
|
+
return /* @__PURE__ */ jsx20(
|
|
1191
1201
|
"button",
|
|
1192
1202
|
{
|
|
1193
1203
|
type: "button",
|
|
1194
1204
|
onClick: () => handleChangeRating(rating),
|
|
1195
1205
|
className: clsx14(color, starClasses),
|
|
1196
1206
|
disabled: !isEditable,
|
|
1197
|
-
children: /* @__PURE__ */
|
|
1207
|
+
children: /* @__PURE__ */ jsx20(IconComponent, {})
|
|
1198
1208
|
},
|
|
1199
1209
|
rating
|
|
1200
1210
|
);
|
|
1201
1211
|
};
|
|
1202
1212
|
const ratingStars = Array.from({ length: maxRating }, (_, index) => renderStar(index + 1));
|
|
1203
|
-
return /* @__PURE__ */
|
|
1213
|
+
return /* @__PURE__ */ jsx20("span", { className: "flex flex-row", children: ratingStars });
|
|
1204
1214
|
}
|
|
1205
1215
|
|
|
1206
1216
|
// src/file-input/file-input.tsx
|
|
1207
1217
|
import { clsx as clsx15 } from "clsx";
|
|
1208
1218
|
import { forwardRef as forwardRef4, useCallback as useCallback6, useId as useId2, useImperativeHandle, useRef as useRef5, useState as useState5 } from "react";
|
|
1209
|
-
import { Fragment as Fragment2, jsx as
|
|
1219
|
+
import { Fragment as Fragment2, jsx as jsx21, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
1210
1220
|
var ERROR_TYPES = {
|
|
1211
1221
|
SIZE_TOO_LARGE: "SIZE_TOO_LARGE",
|
|
1212
1222
|
UNSUPPORTED_FORMAT: "UNSUPPORTED_FORMAT"
|
|
@@ -1341,9 +1351,9 @@ var FileInput = forwardRef4(
|
|
|
1341
1351
|
{
|
|
1342
1352
|
"border-uiBorder03 bg-white text-text01": !isDisabled && !isDragOver && !hasErrors,
|
|
1343
1353
|
"border-activeInput bg-activeInput/5": !isDisabled && isDragOver && !hasErrors,
|
|
1344
|
-
"border-supportDanger bg-
|
|
1354
|
+
"border-supportDanger bg-uiBackground01": hasErrors && !isDisabled,
|
|
1345
1355
|
"cursor-pointer hover:bg-hover02 active:bg-active02": !isDisabled,
|
|
1346
|
-
"hover:bg-
|
|
1356
|
+
"hover:bg-hoverUiError active:bg-activeUiError": !isDisabled && hasErrors,
|
|
1347
1357
|
"border-disabled01 bg-disabled02 text-textPlaceholder cursor-not-allowed": isDisabled
|
|
1348
1358
|
}
|
|
1349
1359
|
);
|
|
@@ -1383,7 +1393,7 @@ var FileInput = forwardRef4(
|
|
|
1383
1393
|
})();
|
|
1384
1394
|
if (variant === "button") {
|
|
1385
1395
|
return /* @__PURE__ */ jsxs6("div", { className: "flex items-center gap-2", children: [
|
|
1386
|
-
/* @__PURE__ */
|
|
1396
|
+
/* @__PURE__ */ jsx21("div", { className: hasErrors ? "flex-1" : "min-w-0 flex-1", children: /* @__PURE__ */ jsx21(
|
|
1387
1397
|
InternalButton,
|
|
1388
1398
|
{
|
|
1389
1399
|
size,
|
|
@@ -1391,14 +1401,14 @@ var FileInput = forwardRef4(
|
|
|
1391
1401
|
isDisabled,
|
|
1392
1402
|
width: "100%",
|
|
1393
1403
|
onClick: handleButtonClick,
|
|
1394
|
-
before: /* @__PURE__ */
|
|
1395
|
-
after: /* @__PURE__ */
|
|
1396
|
-
children: /* @__PURE__ */
|
|
1404
|
+
before: /* @__PURE__ */ jsx21(Icon, { name: "upload", size: "small" }),
|
|
1405
|
+
after: /* @__PURE__ */ jsx21(Fragment2, { children: selectedFile ? /* @__PURE__ */ jsx21("span", { className: clsx15("typography-label12regular truncate", !isDisabled && "text-text01"), children: selectedFile.name }) : "" }),
|
|
1406
|
+
children: /* @__PURE__ */ jsx21("span", { className: "truncate", children: "\u30D5\u30A1\u30A4\u30EB\u3092\u9078\u629E" })
|
|
1397
1407
|
}
|
|
1398
1408
|
) }),
|
|
1399
|
-
selectedFile && !isDisabled && /* @__PURE__ */
|
|
1400
|
-
hasErrors && hasErrorMessages && /* @__PURE__ */
|
|
1401
|
-
/* @__PURE__ */
|
|
1409
|
+
selectedFile && !isDisabled && /* @__PURE__ */ jsx21("div", { className: "shrink-0", children: /* @__PURE__ */ jsx21(IconButton, { variant: "text", icon: "close", size: "small", onClick: handleClear }) }),
|
|
1410
|
+
hasErrors && hasErrorMessages && /* @__PURE__ */ jsx21("div", { id: errorId, "data-testid": "error-messages", className: "typography-label12regular text-supportError", children: errorMessages.map((message, index) => /* @__PURE__ */ jsx21("div", { className: "break-all", children: message }, index)) }),
|
|
1411
|
+
/* @__PURE__ */ jsx21(
|
|
1402
1412
|
"input",
|
|
1403
1413
|
{
|
|
1404
1414
|
id: inputId,
|
|
@@ -1434,25 +1444,25 @@ var FileInput = forwardRef4(
|
|
|
1434
1444
|
"aria-disabled": isDisabled,
|
|
1435
1445
|
...hasErrors && hasErrorMessages && { "aria-describedby": errorId },
|
|
1436
1446
|
children: [
|
|
1437
|
-
/* @__PURE__ */
|
|
1438
|
-
!selectedFile && /* @__PURE__ */
|
|
1447
|
+
/* @__PURE__ */ jsx21(Icon, { name: "upload-document", size: "large", color: isDisabled ? "icon03" : "icon01" }),
|
|
1448
|
+
!selectedFile && /* @__PURE__ */ jsx21("div", { className: "flex flex-col gap-1", children: /* @__PURE__ */ jsx21("div", { className: "typography-body13regular select-none", children: /* @__PURE__ */ jsxs6(Fragment2, { children: [
|
|
1439
1449
|
"\u3053\u3053\u306B\u30D5\u30A1\u30A4\u30EB\u3092\u30C9\u30ED\u30C3\u30D7\u3057\u3066\u304F\u3060\u3055\u3044\u3002",
|
|
1440
|
-
/* @__PURE__ */
|
|
1450
|
+
/* @__PURE__ */ jsx21("br", {}),
|
|
1441
1451
|
"\u307E\u305F\u306F\u3001",
|
|
1442
|
-
/* @__PURE__ */
|
|
1452
|
+
/* @__PURE__ */ jsx21("span", { className: clsx15(!isDisabled ? "text-link01" : ""), children: "\u30D5\u30A1\u30A4\u30EB\u3092\u9078\u629E" }),
|
|
1443
1453
|
"\u3057\u3066\u304F\u3060\u3055\u3044\u3002"
|
|
1444
1454
|
] }) }) }),
|
|
1445
1455
|
!selectedFile && /* @__PURE__ */ jsxs6("div", { className: "flex flex-col gap-1", children: [
|
|
1446
|
-
/* @__PURE__ */
|
|
1447
|
-
/* @__PURE__ */
|
|
1448
|
-
/* @__PURE__ */
|
|
1449
|
-
/* @__PURE__ */
|
|
1456
|
+
/* @__PURE__ */ jsx21("div", { className: clsx15("typography-label11regular", isDisabled ? "text-textPlaceholder" : "text-text02"), children: "\u5BFE\u5FDC\u5F62\u5F0F" }),
|
|
1457
|
+
/* @__PURE__ */ jsx21("div", { className: clsx15("typography-body12regular", isDisabled ? "text-textPlaceholder" : "text-text01"), children: acceptLabel }),
|
|
1458
|
+
/* @__PURE__ */ jsx21("div", { className: clsx15("typography-label11regular", isDisabled ? "text-textPlaceholder" : "text-text02"), children: "\u30B5\u30A4\u30BA" }),
|
|
1459
|
+
/* @__PURE__ */ jsx21("div", { className: clsx15("typography-body12regular", isDisabled ? "text-textPlaceholder" : "text-text01"), children: maxSizeLabel })
|
|
1450
1460
|
] }),
|
|
1451
1461
|
selectedFile && /* @__PURE__ */ jsxs6("div", { className: "mt-2 flex flex-col items-center gap-1", children: [
|
|
1452
|
-
/* @__PURE__ */
|
|
1462
|
+
/* @__PURE__ */ jsx21("span", { className: "typography-label11regular text-text02", children: "\u30D5\u30A1\u30A4\u30EB\u540D" }),
|
|
1453
1463
|
/* @__PURE__ */ jsxs6("div", { className: "flex items-center gap-2", children: [
|
|
1454
|
-
/* @__PURE__ */
|
|
1455
|
-
!isDisabled && /* @__PURE__ */
|
|
1464
|
+
/* @__PURE__ */ jsx21("span", { className: "typography-label14regular", children: selectedFile.name }),
|
|
1465
|
+
!isDisabled && /* @__PURE__ */ jsx21(
|
|
1456
1466
|
IconButton,
|
|
1457
1467
|
{
|
|
1458
1468
|
variant: "text",
|
|
@@ -1466,7 +1476,7 @@ var FileInput = forwardRef4(
|
|
|
1466
1476
|
)
|
|
1467
1477
|
] })
|
|
1468
1478
|
] }),
|
|
1469
|
-
/* @__PURE__ */
|
|
1479
|
+
/* @__PURE__ */ jsx21(
|
|
1470
1480
|
"input",
|
|
1471
1481
|
{
|
|
1472
1482
|
id: inputId,
|
|
@@ -1482,13 +1492,13 @@ var FileInput = forwardRef4(
|
|
|
1482
1492
|
]
|
|
1483
1493
|
}
|
|
1484
1494
|
),
|
|
1485
|
-
hasErrors && hasErrorMessages && /* @__PURE__ */
|
|
1495
|
+
hasErrors && hasErrorMessages && /* @__PURE__ */ jsx21(
|
|
1486
1496
|
"div",
|
|
1487
1497
|
{
|
|
1488
1498
|
id: errorId,
|
|
1489
1499
|
"data-testid": "error-messages",
|
|
1490
1500
|
className: "typography-body13regular flex flex-col text-supportDanger",
|
|
1491
|
-
children: errorMessages.map((message, index) => /* @__PURE__ */
|
|
1501
|
+
children: errorMessages.map((message, index) => /* @__PURE__ */ jsx21("div", { children: message }, index))
|
|
1492
1502
|
}
|
|
1493
1503
|
)
|
|
1494
1504
|
] });
|
|
@@ -1585,7 +1595,7 @@ var useRovingFocus = ({
|
|
|
1585
1595
|
|
|
1586
1596
|
// src/loading/loading.tsx
|
|
1587
1597
|
import clsx17 from "clsx";
|
|
1588
|
-
import { Fragment as Fragment3, jsx as
|
|
1598
|
+
import { Fragment as Fragment3, jsx as jsx22, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1589
1599
|
function Loading({ size = "medium", position = "fixed", height = "100%" }) {
|
|
1590
1600
|
const wrapperClasses = clsx17(position, "left-0 top-0 z-20 flex w-full items-center justify-center");
|
|
1591
1601
|
const svgClasses = clsx17({
|
|
@@ -1593,8 +1603,8 @@ function Loading({ size = "medium", position = "fixed", height = "100%" }) {
|
|
|
1593
1603
|
"h-8 w-8": size === "medium",
|
|
1594
1604
|
"h-16 w-16": size === "large"
|
|
1595
1605
|
});
|
|
1596
|
-
return /* @__PURE__ */
|
|
1597
|
-
size === "small" && /* @__PURE__ */
|
|
1606
|
+
return /* @__PURE__ */ jsx22(Fragment3, { children: /* @__PURE__ */ jsxs8("div", { className: wrapperClasses, style: { height }, children: [
|
|
1607
|
+
size === "small" && /* @__PURE__ */ jsx22("svg", { className: svgClasses, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx22(
|
|
1598
1608
|
"circle",
|
|
1599
1609
|
{
|
|
1600
1610
|
className: "origin-center animate-circular-small-move stroke-interactive01",
|
|
@@ -1606,7 +1616,7 @@ function Loading({ size = "medium", position = "fixed", height = "100%" }) {
|
|
|
1606
1616
|
fill: "none"
|
|
1607
1617
|
}
|
|
1608
1618
|
) }),
|
|
1609
|
-
size === "medium" && /* @__PURE__ */
|
|
1619
|
+
size === "medium" && /* @__PURE__ */ jsx22("svg", { className: svgClasses, viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx22(
|
|
1610
1620
|
"circle",
|
|
1611
1621
|
{
|
|
1612
1622
|
className: "origin-center animate-circular-medium-move stroke-interactive01",
|
|
@@ -1618,7 +1628,7 @@ function Loading({ size = "medium", position = "fixed", height = "100%" }) {
|
|
|
1618
1628
|
fill: "none"
|
|
1619
1629
|
}
|
|
1620
1630
|
) }),
|
|
1621
|
-
size === "large" && /* @__PURE__ */
|
|
1631
|
+
size === "large" && /* @__PURE__ */ jsx22("svg", { className: svgClasses, viewBox: "0 0 64 64", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx22(
|
|
1622
1632
|
"circle",
|
|
1623
1633
|
{
|
|
1624
1634
|
className: "origin-center animate-circular-large-move stroke-interactive01",
|
|
@@ -1685,9 +1695,9 @@ function restoreProperty(element, property, value) {
|
|
|
1685
1695
|
}
|
|
1686
1696
|
|
|
1687
1697
|
// src/modal/modal-body.tsx
|
|
1688
|
-
import { jsx as
|
|
1698
|
+
import { jsx as jsx23 } from "react/jsx-runtime";
|
|
1689
1699
|
function ModalBody({ children }) {
|
|
1690
|
-
return /* @__PURE__ */
|
|
1700
|
+
return /* @__PURE__ */ jsx23("div", { className: "overflow-y-auto", children });
|
|
1691
1701
|
}
|
|
1692
1702
|
|
|
1693
1703
|
// src/modal/modal-context.ts
|
|
@@ -1698,18 +1708,18 @@ var ModalContext = createContext4({
|
|
|
1698
1708
|
|
|
1699
1709
|
// src/modal/modal-footer.tsx
|
|
1700
1710
|
import clsx18 from "clsx";
|
|
1701
|
-
import { jsx as
|
|
1711
|
+
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
1702
1712
|
function ModalFooter({ children, isNoBorder = false }) {
|
|
1703
1713
|
const wrapperClasses = clsx18("flex w-full shrink-0 items-center rounded-b-lg px-6 py-4", {
|
|
1704
1714
|
"border-t-[1px] border-uiBorder01": !isNoBorder
|
|
1705
1715
|
});
|
|
1706
|
-
return /* @__PURE__ */
|
|
1716
|
+
return /* @__PURE__ */ jsx24("div", { className: wrapperClasses, children });
|
|
1707
1717
|
}
|
|
1708
1718
|
|
|
1709
1719
|
// src/modal/modal-header.tsx
|
|
1710
1720
|
import clsx19 from "clsx";
|
|
1711
1721
|
import { useContext as useContext5 } from "react";
|
|
1712
|
-
import { jsx as
|
|
1722
|
+
import { jsx as jsx25, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1713
1723
|
function ModalHeader({ children, isNoBorder = false }) {
|
|
1714
1724
|
const { onClose } = useContext5(ModalContext);
|
|
1715
1725
|
const headerClasses = clsx19(
|
|
@@ -1721,13 +1731,13 @@ function ModalHeader({ children, isNoBorder = false }) {
|
|
|
1721
1731
|
}
|
|
1722
1732
|
);
|
|
1723
1733
|
return /* @__PURE__ */ jsxs9("div", { className: headerClasses, children: [
|
|
1724
|
-
/* @__PURE__ */
|
|
1725
|
-
onClose && /* @__PURE__ */
|
|
1734
|
+
/* @__PURE__ */ jsx25("div", { children }),
|
|
1735
|
+
onClose && /* @__PURE__ */ jsx25(IconButton, { icon: "close", size: "small", variant: "text", onClick: onClose })
|
|
1726
1736
|
] });
|
|
1727
1737
|
}
|
|
1728
1738
|
|
|
1729
1739
|
// src/modal/modal.tsx
|
|
1730
|
-
import { Fragment as Fragment4, jsx as
|
|
1740
|
+
import { Fragment as Fragment4, jsx as jsx26, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1731
1741
|
var LIMIT_WIDTH = 320;
|
|
1732
1742
|
var LIMIT_HEIGHT = 184;
|
|
1733
1743
|
function Modal({
|
|
@@ -1746,9 +1756,9 @@ function Modal({
|
|
|
1746
1756
|
setIsMounted(true);
|
|
1747
1757
|
}, []);
|
|
1748
1758
|
return isMounted && isOpen ? /* @__PURE__ */ jsxs10(Fragment4, { children: [
|
|
1749
|
-
/* @__PURE__ */
|
|
1759
|
+
/* @__PURE__ */ jsx26(BodyScrollLock, {}),
|
|
1750
1760
|
createPortal2(
|
|
1751
|
-
/* @__PURE__ */
|
|
1761
|
+
/* @__PURE__ */ jsx26(ModalContext.Provider, { value: { onClose }, children: /* @__PURE__ */ jsx26("div", { className: "fixed left-0 top-0 z-overlay flex size-full items-center justify-center bg-backgroundOverlayBlack py-4", children: /* @__PURE__ */ jsx26(
|
|
1752
1762
|
"div",
|
|
1753
1763
|
{
|
|
1754
1764
|
role: "dialog",
|
|
@@ -1768,7 +1778,7 @@ Modal.Footer = ModalFooter;
|
|
|
1768
1778
|
|
|
1769
1779
|
// src/notification-inline/notification-inline.tsx
|
|
1770
1780
|
import { clsx as clsx20 } from "clsx";
|
|
1771
|
-
import { jsx as
|
|
1781
|
+
import { jsx as jsx27, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1772
1782
|
function NotificationInline({ state = "default", size = "medium", ...props }) {
|
|
1773
1783
|
const wrapperClasses = clsx20("typography-body13regular flex items-center gap-1 rounded text-text01", {
|
|
1774
1784
|
"bg-uiBackgroundError": state === "attention",
|
|
@@ -1796,9 +1806,9 @@ function NotificationInline({ state = "default", size = "medium", ...props }) {
|
|
|
1796
1806
|
medium: "medium"
|
|
1797
1807
|
};
|
|
1798
1808
|
return /* @__PURE__ */ jsxs11("div", { className: wrapperClasses, children: [
|
|
1799
|
-
state !== "default" && /* @__PURE__ */
|
|
1800
|
-
/* @__PURE__ */
|
|
1801
|
-
props.showClose === true && /* @__PURE__ */
|
|
1809
|
+
state !== "default" && /* @__PURE__ */ jsx27("div", { className: iconClasses, children: /* @__PURE__ */ jsx27(Icon, { name: iconName[state], size: iconSize[size] }) }),
|
|
1810
|
+
/* @__PURE__ */ jsx27("p", { className: "flex-1", children: props.children }),
|
|
1811
|
+
props.showClose === true && /* @__PURE__ */ jsx27("div", { className: "flex items-center", children: /* @__PURE__ */ jsx27(IconButton, { icon: "close", size: "small", variant: "text", onClick: props.onClickClose }) })
|
|
1802
1812
|
] });
|
|
1803
1813
|
}
|
|
1804
1814
|
|
|
@@ -1813,7 +1823,7 @@ var PaginationContext = createContext5({
|
|
|
1813
1823
|
});
|
|
1814
1824
|
|
|
1815
1825
|
// src/pagination/pagination-button.tsx
|
|
1816
|
-
import { jsx as
|
|
1826
|
+
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
1817
1827
|
function PaginationButton({ page, onClick }) {
|
|
1818
1828
|
const { currentPage } = useContext6(PaginationContext);
|
|
1819
1829
|
const buttonClasses = clsx21(
|
|
@@ -1824,11 +1834,11 @@ function PaginationButton({ page, onClick }) {
|
|
|
1824
1834
|
{ "border border-uiBorder02": page === currentPage },
|
|
1825
1835
|
{ "border-transparent": page !== currentPage }
|
|
1826
1836
|
);
|
|
1827
|
-
return /* @__PURE__ */
|
|
1837
|
+
return /* @__PURE__ */ jsx28("button", { type: "button", className: buttonClasses, onClick: () => onClick(page), children: page });
|
|
1828
1838
|
}
|
|
1829
1839
|
|
|
1830
1840
|
// src/pagination/pagination.tsx
|
|
1831
|
-
import { jsx as
|
|
1841
|
+
import { jsx as jsx29, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1832
1842
|
var START_PAGE = 1;
|
|
1833
1843
|
function Pagination({ currentPage, totalPage, sideNumPagesToShow = 3, onClick }) {
|
|
1834
1844
|
if (totalPage < START_PAGE) {
|
|
@@ -1864,14 +1874,14 @@ function Pagination({ currentPage, totalPage, sideNumPagesToShow = 3, onClick })
|
|
|
1864
1874
|
const hasHeadEllipsis = firstPageInList !== null && firstPageInList > START_PAGE + 1;
|
|
1865
1875
|
const hasTailEllipsis = lastPageInList !== null && lastPageInList < totalPage - 1;
|
|
1866
1876
|
const hasLastPageButton = totalPage > START_PAGE;
|
|
1867
|
-
return /* @__PURE__ */
|
|
1877
|
+
return /* @__PURE__ */ jsx29(
|
|
1868
1878
|
PaginationContext.Provider,
|
|
1869
1879
|
{
|
|
1870
1880
|
value: {
|
|
1871
1881
|
currentPage: clampedCurrentPage
|
|
1872
1882
|
},
|
|
1873
1883
|
children: /* @__PURE__ */ jsxs12("ul", { className: "flex gap-1", children: [
|
|
1874
|
-
/* @__PURE__ */
|
|
1884
|
+
/* @__PURE__ */ jsx29("li", { className: "flex items-center", children: /* @__PURE__ */ jsx29(
|
|
1875
1885
|
IconButton,
|
|
1876
1886
|
{
|
|
1877
1887
|
isDisabled: isFirstPage,
|
|
@@ -1881,12 +1891,12 @@ function Pagination({ currentPage, totalPage, sideNumPagesToShow = 3, onClick })
|
|
|
1881
1891
|
onClick: () => onClick(Math.max(START_PAGE, clampedCurrentPage - 1))
|
|
1882
1892
|
}
|
|
1883
1893
|
) }),
|
|
1884
|
-
/* @__PURE__ */
|
|
1885
|
-
hasHeadEllipsis && /* @__PURE__ */
|
|
1886
|
-
pageList.map((page, index) => /* @__PURE__ */
|
|
1887
|
-
hasTailEllipsis && /* @__PURE__ */
|
|
1888
|
-
hasLastPageButton && /* @__PURE__ */
|
|
1889
|
-
/* @__PURE__ */
|
|
1894
|
+
/* @__PURE__ */ jsx29("li", { children: /* @__PURE__ */ jsx29(PaginationButton, { onClick: () => onClick(START_PAGE), page: START_PAGE }) }),
|
|
1895
|
+
hasHeadEllipsis && /* @__PURE__ */ jsx29("li", { className: threeDotIconClasses, children: /* @__PURE__ */ jsx29(Icon, { name: "more", size: "small" }) }),
|
|
1896
|
+
pageList.map((page, index) => /* @__PURE__ */ jsx29("li", { children: /* @__PURE__ */ jsx29(PaginationButton, { onClick: () => onClick(page), page }) }, index)),
|
|
1897
|
+
hasTailEllipsis && /* @__PURE__ */ jsx29("li", { className: threeDotIconClasses, children: /* @__PURE__ */ jsx29(Icon, { name: "more", size: "small" }) }),
|
|
1898
|
+
hasLastPageButton && /* @__PURE__ */ jsx29("li", { children: /* @__PURE__ */ jsx29(PaginationButton, { onClick: () => onClick(totalPage), page: totalPage }) }),
|
|
1899
|
+
/* @__PURE__ */ jsx29("li", { className: "flex items-center", children: /* @__PURE__ */ jsx29(
|
|
1890
1900
|
IconButton,
|
|
1891
1901
|
{
|
|
1892
1902
|
isDisabled: isLastPage,
|
|
@@ -1920,7 +1930,7 @@ var SelectContext = createContext6({
|
|
|
1920
1930
|
import { focusVisible as focusVisible8 } from "@zenkigen-inc/component-theme";
|
|
1921
1931
|
import clsx22 from "clsx";
|
|
1922
1932
|
import { useContext as useContext7 } from "react";
|
|
1923
|
-
import { jsx as
|
|
1933
|
+
import { jsx as jsx30, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
1924
1934
|
function SelectItem({ option }) {
|
|
1925
1935
|
const { setIsOptionListOpen, selectedOption, onChange, isError } = useContext7(SelectContext);
|
|
1926
1936
|
const handleClickItem = (option2) => {
|
|
@@ -1937,10 +1947,10 @@ function SelectItem({ option }) {
|
|
|
1937
1947
|
"pr-10": option.id !== selectedOption?.id
|
|
1938
1948
|
}
|
|
1939
1949
|
);
|
|
1940
|
-
return /* @__PURE__ */
|
|
1941
|
-
option.icon && /* @__PURE__ */
|
|
1942
|
-
/* @__PURE__ */
|
|
1943
|
-
option.id === selectedOption?.id && /* @__PURE__ */
|
|
1950
|
+
return /* @__PURE__ */ jsx30("li", { className: "flex w-full items-center", "data-id": option.id, children: /* @__PURE__ */ jsxs13("button", { className: itemClasses, type: "button", onClick: () => handleClickItem(option), children: [
|
|
1951
|
+
option.icon && /* @__PURE__ */ jsx30(Icon, { name: option.icon, size: "small" }),
|
|
1952
|
+
/* @__PURE__ */ jsx30("span", { className: "ml-1 flex-1 truncate text-left", children: option.label }),
|
|
1953
|
+
option.id === selectedOption?.id && /* @__PURE__ */ jsx30("div", { className: "ml-2 flex items-center", children: /* @__PURE__ */ jsx30(Icon, { name: "check", size: "small" }) })
|
|
1944
1954
|
] }) }, option.id);
|
|
1945
1955
|
}
|
|
1946
1956
|
|
|
@@ -1948,7 +1958,7 @@ function SelectItem({ option }) {
|
|
|
1948
1958
|
import { focusVisible as focusVisible9 } from "@zenkigen-inc/component-theme";
|
|
1949
1959
|
import clsx23 from "clsx";
|
|
1950
1960
|
import { forwardRef as forwardRef5, useContext as useContext8, useLayoutEffect as useLayoutEffect2 } from "react";
|
|
1951
|
-
import { jsx as
|
|
1961
|
+
import { jsx as jsx31, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
1952
1962
|
var SelectList = forwardRef5(({ children, maxHeight }, ref) => {
|
|
1953
1963
|
const { selectedOption, setIsOptionListOpen, variant, placeholder, onChange, floatingStyles, floatingRef } = useContext8(SelectContext);
|
|
1954
1964
|
const handleClickDeselect = () => {
|
|
@@ -1982,13 +1992,13 @@ var SelectList = forwardRef5(({ children, maxHeight }, ref) => {
|
|
|
1982
1992
|
);
|
|
1983
1993
|
return /* @__PURE__ */ jsxs14("ul", { className: listClasses, style: { maxHeight, ...floatingStyles }, ref, children: [
|
|
1984
1994
|
children,
|
|
1985
|
-
placeholder != null && selectedOption !== null && /* @__PURE__ */
|
|
1995
|
+
placeholder != null && selectedOption !== null && /* @__PURE__ */ jsx31("li", { children: /* @__PURE__ */ jsx31("button", { className: deselectButtonClasses, type: "button", onClick: handleClickDeselect, children: "\u9078\u629E\u89E3\u9664" }) })
|
|
1986
1996
|
] });
|
|
1987
1997
|
});
|
|
1988
1998
|
SelectList.displayName = "SelectList";
|
|
1989
1999
|
|
|
1990
2000
|
// src/select/select.tsx
|
|
1991
|
-
import { jsx as
|
|
2001
|
+
import { jsx as jsx32, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
1992
2002
|
var FLOATING_OFFSET = 4;
|
|
1993
2003
|
function Select({
|
|
1994
2004
|
children,
|
|
@@ -2060,7 +2070,7 @@ function Select({
|
|
|
2060
2070
|
"typography-label14regular": size === "small" || size === "medium",
|
|
2061
2071
|
"typography-label16regular": size === "large"
|
|
2062
2072
|
});
|
|
2063
|
-
return /* @__PURE__ */
|
|
2073
|
+
return /* @__PURE__ */ jsx32(
|
|
2064
2074
|
SelectContext.Provider,
|
|
2065
2075
|
{
|
|
2066
2076
|
value: {
|
|
@@ -2084,9 +2094,9 @@ function Select({
|
|
|
2084
2094
|
onClick: handleClickToggle,
|
|
2085
2095
|
disabled: isDisabled,
|
|
2086
2096
|
children: [
|
|
2087
|
-
selectedOption?.icon ? /* @__PURE__ */
|
|
2088
|
-
/* @__PURE__ */
|
|
2089
|
-
/* @__PURE__ */
|
|
2097
|
+
selectedOption?.icon ? /* @__PURE__ */ jsx32("div", { className: "mr-1 flex", children: /* @__PURE__ */ jsx32(Icon, { name: selectedOption.icon, size: size === "large" ? "medium" : "small" }) }) : placeholder != null && placeholderIcon && /* @__PURE__ */ jsx32("div", { className: "mr-1 flex", children: /* @__PURE__ */ jsx32(Icon, { name: placeholderIcon, size: size === "large" ? "medium" : "small" }) }),
|
|
2098
|
+
/* @__PURE__ */ jsx32("div", { className: labelClasses, children: /* @__PURE__ */ jsx32("div", { className: "truncate", children: selectedOption ? selectedOption.label : placeholder != null && placeholder }) }),
|
|
2099
|
+
/* @__PURE__ */ jsx32("div", { className: "ml-auto flex items-center", children: /* @__PURE__ */ jsx32(
|
|
2090
2100
|
Icon,
|
|
2091
2101
|
{
|
|
2092
2102
|
name: isOptionListOpen ? "angle-small-up" : "angle-small-down",
|
|
@@ -2096,7 +2106,7 @@ function Select({
|
|
|
2096
2106
|
]
|
|
2097
2107
|
}
|
|
2098
2108
|
),
|
|
2099
|
-
isOptionListOpen && !isDisabled && /* @__PURE__ */
|
|
2109
|
+
isOptionListOpen && !isDisabled && /* @__PURE__ */ jsx32(FloatingPortal2, { children: /* @__PURE__ */ jsx32("div", { className: "relative z-overlay", children: /* @__PURE__ */ jsx32(SelectList, { ref: refs.setFloating, maxHeight: optionListMaxHeight, children }) }) })
|
|
2100
2110
|
] })
|
|
2101
2111
|
}
|
|
2102
2112
|
);
|
|
@@ -2104,7 +2114,7 @@ function Select({
|
|
|
2104
2114
|
Select.Option = SelectItem;
|
|
2105
2115
|
|
|
2106
2116
|
// src/pagination-select/pagination-select.tsx
|
|
2107
|
-
import { jsx as
|
|
2117
|
+
import { jsx as jsx33, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
2108
2118
|
function PaginationSelect({
|
|
2109
2119
|
totalSize,
|
|
2110
2120
|
currentPage,
|
|
@@ -2138,9 +2148,9 @@ function PaginationSelect({
|
|
|
2138
2148
|
"/ ",
|
|
2139
2149
|
totalSize
|
|
2140
2150
|
] }),
|
|
2141
|
-
/* @__PURE__ */
|
|
2151
|
+
/* @__PURE__ */ jsx33("span", { children: countLabel })
|
|
2142
2152
|
] }),
|
|
2143
|
-
/* @__PURE__ */
|
|
2153
|
+
/* @__PURE__ */ jsx33(
|
|
2144
2154
|
Select,
|
|
2145
2155
|
{
|
|
2146
2156
|
size: "medium",
|
|
@@ -2149,7 +2159,7 @@ function PaginationSelect({
|
|
|
2149
2159
|
optionListMaxHeight,
|
|
2150
2160
|
onChange: (option) => option && onChange(Number(option.value)),
|
|
2151
2161
|
isDisabled: pageMax === 0,
|
|
2152
|
-
children: optionsList.map((option) => /* @__PURE__ */
|
|
2162
|
+
children: optionsList.map((option) => /* @__PURE__ */ jsx33(Select.Option, { option }, option.id))
|
|
2153
2163
|
}
|
|
2154
2164
|
),
|
|
2155
2165
|
/* @__PURE__ */ jsxs16("div", { className: "typography-label14regular text-text02", children: [
|
|
@@ -2159,7 +2169,7 @@ function PaginationSelect({
|
|
|
2159
2169
|
] })
|
|
2160
2170
|
] }),
|
|
2161
2171
|
/* @__PURE__ */ jsxs16("div", { className: "flex items-center", children: [
|
|
2162
|
-
/* @__PURE__ */
|
|
2172
|
+
/* @__PURE__ */ jsx33(
|
|
2163
2173
|
IconButton,
|
|
2164
2174
|
{
|
|
2165
2175
|
variant: "text",
|
|
@@ -2169,7 +2179,7 @@ function PaginationSelect({
|
|
|
2169
2179
|
onClick: onClickPrevButton
|
|
2170
2180
|
}
|
|
2171
2181
|
),
|
|
2172
|
-
/* @__PURE__ */
|
|
2182
|
+
/* @__PURE__ */ jsx33(
|
|
2173
2183
|
IconButton,
|
|
2174
2184
|
{
|
|
2175
2185
|
variant: "text",
|
|
@@ -2204,17 +2214,17 @@ var useTextInputCompoundContext = (componentName) => {
|
|
|
2204
2214
|
// src/text-input/text-input-error-message.tsx
|
|
2205
2215
|
import { clsx as clsx25 } from "clsx";
|
|
2206
2216
|
import { forwardRef as forwardRef6 } from "react";
|
|
2207
|
-
import { jsx as
|
|
2217
|
+
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
2208
2218
|
var TextInputErrorMessage = forwardRef6(
|
|
2209
2219
|
({ "aria-live": ariaLive = "assertive", ...props }, ref) => {
|
|
2210
2220
|
const { inputProps } = useTextInputCompoundContext("TextInput.ErrorMessage");
|
|
2211
|
-
const typographyClass = inputProps.size === "large" ? "typography-
|
|
2221
|
+
const typographyClass = inputProps.size === "large" ? "typography-label13regular" : "typography-label12regular";
|
|
2212
2222
|
const shouldRender = inputProps.isError === true;
|
|
2213
2223
|
if (!shouldRender) {
|
|
2214
2224
|
return null;
|
|
2215
2225
|
}
|
|
2216
2226
|
const errorMessageClassName = clsx25(typographyClass, "text-supportError");
|
|
2217
|
-
return /* @__PURE__ */
|
|
2227
|
+
return /* @__PURE__ */ jsx34("div", { ref, className: errorMessageClassName, "aria-live": ariaLive, ...props });
|
|
2218
2228
|
}
|
|
2219
2229
|
);
|
|
2220
2230
|
TextInputErrorMessage.displayName = "TextInput.ErrorMessage";
|
|
@@ -2222,17 +2232,17 @@ TextInputErrorMessage.displayName = "TextInput.ErrorMessage";
|
|
|
2222
2232
|
// src/text-input/text-input-helper-message.tsx
|
|
2223
2233
|
import { clsx as clsx26 } from "clsx";
|
|
2224
2234
|
import { forwardRef as forwardRef7 } from "react";
|
|
2225
|
-
import { jsx as
|
|
2235
|
+
import { jsx as jsx35 } from "react/jsx-runtime";
|
|
2226
2236
|
var TextInputHelperMessage = forwardRef7((props, ref) => {
|
|
2227
2237
|
const { inputProps } = useTextInputCompoundContext("TextInput.HelperMessage");
|
|
2228
|
-
const typographyClass = inputProps.size === "large" ? "typography-
|
|
2238
|
+
const typographyClass = inputProps.size === "large" ? "typography-label13regular" : "typography-label12regular";
|
|
2229
2239
|
const helperMessageClassName = clsx26(typographyClass, "text-text02");
|
|
2230
|
-
return /* @__PURE__ */
|
|
2240
|
+
return /* @__PURE__ */ jsx35("div", { ref, className: helperMessageClassName, ...props });
|
|
2231
2241
|
});
|
|
2232
2242
|
TextInputHelperMessage.displayName = "TextInput.HelperMessage";
|
|
2233
2243
|
|
|
2234
2244
|
// src/text-input/text-input.tsx
|
|
2235
|
-
import { jsx as
|
|
2245
|
+
import { jsx as jsx36, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
2236
2246
|
function TextInputInner({
|
|
2237
2247
|
size = "medium",
|
|
2238
2248
|
isError = false,
|
|
@@ -2312,7 +2322,7 @@ function TextInputInner({
|
|
|
2312
2322
|
"pr-2": size === "medium" && hasTrailingElement,
|
|
2313
2323
|
"pr-3": size === "large" && hasTrailingElement
|
|
2314
2324
|
});
|
|
2315
|
-
const inputClasses = clsx27("flex-1 outline-
|
|
2325
|
+
const inputClasses = clsx27("flex-1 outline-none placeholder:text-textPlaceholder disabled:text-textPlaceholder", {
|
|
2316
2326
|
["typography-label14regular min-h-8 px-2"]: size === "medium",
|
|
2317
2327
|
["typography-label16regular min-h-10 px-3"]: size === "large",
|
|
2318
2328
|
"text-text01": !isError,
|
|
@@ -2320,16 +2330,16 @@ function TextInputInner({
|
|
|
2320
2330
|
"pr-0": hasTrailingElement
|
|
2321
2331
|
});
|
|
2322
2332
|
const inputElement = /* @__PURE__ */ jsxs17("div", { className: inputWrapClasses, children: [
|
|
2323
|
-
/* @__PURE__ */
|
|
2333
|
+
/* @__PURE__ */ jsx36("input", { ref, size: 1, className: inputClasses, ...mergedInputProps }),
|
|
2324
2334
|
after,
|
|
2325
|
-
isShowClearButton && /* @__PURE__ */
|
|
2335
|
+
isShowClearButton && /* @__PURE__ */ jsx36(IconButton, { variant: "text", icon: "close", size: "small", onClick: onClickClearButton })
|
|
2326
2336
|
] });
|
|
2327
2337
|
const stackedChildren = enhancedChildren == null ? [] : Children2.toArray(enhancedChildren);
|
|
2328
2338
|
const hasMessageChildren = stackedChildren.length > 0;
|
|
2329
2339
|
if (!hasMessageChildren) {
|
|
2330
|
-
return /* @__PURE__ */
|
|
2340
|
+
return /* @__PURE__ */ jsx36(TextInputCompoundContext.Provider, { value: contextValue, children: inputElement });
|
|
2331
2341
|
}
|
|
2332
|
-
return /* @__PURE__ */
|
|
2342
|
+
return /* @__PURE__ */ jsx36(TextInputCompoundContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxs17("div", { className: "flex flex-col gap-2", children: [
|
|
2333
2343
|
inputElement,
|
|
2334
2344
|
stackedChildren
|
|
2335
2345
|
] }) });
|
|
@@ -2352,14 +2362,14 @@ var TextInput = attachStatics(TextInputPublic);
|
|
|
2352
2362
|
var InternalTextInput = attachStatics(InternalTextInputBase);
|
|
2353
2363
|
|
|
2354
2364
|
// src/password-input/password-input.tsx
|
|
2355
|
-
import { jsx as
|
|
2365
|
+
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
2356
2366
|
var PasswordInputBase = forwardRef9(function PasswordInput({ disabled = false, children, ...props }, ref) {
|
|
2357
2367
|
const [isPasswordVisible, setIsPasswordVisible] = useState9(false);
|
|
2358
2368
|
const { className: _className, ...textInputProps } = props;
|
|
2359
2369
|
const handlePasswordVisibilityToggle = () => {
|
|
2360
2370
|
setIsPasswordVisible((prev) => !prev);
|
|
2361
2371
|
};
|
|
2362
|
-
const passwordToggleButton = /* @__PURE__ */
|
|
2372
|
+
const passwordToggleButton = /* @__PURE__ */ jsx37(
|
|
2363
2373
|
IconButton,
|
|
2364
2374
|
{
|
|
2365
2375
|
variant: "text",
|
|
@@ -2370,7 +2380,7 @@ var PasswordInputBase = forwardRef9(function PasswordInput({ disabled = false, c
|
|
|
2370
2380
|
"aria-label": isPasswordVisible === true ? "\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u975E\u8868\u793A\u306B\u3059\u308B" : "\u30D1\u30B9\u30EF\u30FC\u30C9\u3092\u8868\u793A\u3059\u308B"
|
|
2371
2381
|
}
|
|
2372
2382
|
);
|
|
2373
|
-
return /* @__PURE__ */
|
|
2383
|
+
return /* @__PURE__ */ jsx37(
|
|
2374
2384
|
InternalTextInput,
|
|
2375
2385
|
{
|
|
2376
2386
|
ref,
|
|
@@ -2392,9 +2402,9 @@ var PasswordInput2 = Object.assign(PasswordInputBase, {
|
|
|
2392
2402
|
import { useContext as useContext11 } from "react";
|
|
2393
2403
|
|
|
2394
2404
|
// src/popup/popup-body.tsx
|
|
2395
|
-
import { jsx as
|
|
2405
|
+
import { jsx as jsx38 } from "react/jsx-runtime";
|
|
2396
2406
|
function PopupBody({ children }) {
|
|
2397
|
-
return /* @__PURE__ */
|
|
2407
|
+
return /* @__PURE__ */ jsx38("div", { className: "overflow-y-auto", children });
|
|
2398
2408
|
}
|
|
2399
2409
|
|
|
2400
2410
|
// src/popup/popup-context.ts
|
|
@@ -2405,14 +2415,14 @@ var PopupContext = createContext8({
|
|
|
2405
2415
|
});
|
|
2406
2416
|
|
|
2407
2417
|
// src/popup/popup-footer.tsx
|
|
2408
|
-
import { jsx as
|
|
2418
|
+
import { jsx as jsx39 } from "react/jsx-runtime";
|
|
2409
2419
|
function PopupFooter({ children }) {
|
|
2410
|
-
return /* @__PURE__ */
|
|
2420
|
+
return /* @__PURE__ */ jsx39("div", { className: "flex w-full shrink-0 items-center rounded-b-lg px-6 py-3", children });
|
|
2411
2421
|
}
|
|
2412
2422
|
|
|
2413
2423
|
// src/popup/popup-header.tsx
|
|
2414
2424
|
import { useContext as useContext10 } from "react";
|
|
2415
|
-
import { jsx as
|
|
2425
|
+
import { jsx as jsx40, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
2416
2426
|
function PopupHeader({ children, before }) {
|
|
2417
2427
|
const { onClose } = useContext10(PopupContext);
|
|
2418
2428
|
return /* @__PURE__ */ jsxs18("div", { className: "typography-h5 flex h-12 w-full shrink-0 items-start justify-between rounded-t-lg px-6 pt-3 text-text01", children: [
|
|
@@ -2420,12 +2430,12 @@ function PopupHeader({ children, before }) {
|
|
|
2420
2430
|
before,
|
|
2421
2431
|
children
|
|
2422
2432
|
] }),
|
|
2423
|
-
onClose && /* @__PURE__ */
|
|
2433
|
+
onClose && /* @__PURE__ */ jsx40(IconButton, { icon: "close", size: "small", variant: "text", onClick: onClose })
|
|
2424
2434
|
] });
|
|
2425
2435
|
}
|
|
2426
2436
|
|
|
2427
2437
|
// src/popup/popup.tsx
|
|
2428
|
-
import { jsx as
|
|
2438
|
+
import { jsx as jsx41 } from "react/jsx-runtime";
|
|
2429
2439
|
var LIMIT_WIDTH2 = 320;
|
|
2430
2440
|
var LIMIT_HEIGHT2 = 184;
|
|
2431
2441
|
function useOptionalPopoverContext() {
|
|
@@ -2440,7 +2450,7 @@ function Popup({ children, isOpen: controlledIsOpen, width = 480, height, onClos
|
|
|
2440
2450
|
if (!isOpen) {
|
|
2441
2451
|
return null;
|
|
2442
2452
|
}
|
|
2443
|
-
return /* @__PURE__ */
|
|
2453
|
+
return /* @__PURE__ */ jsx41(PopupContext.Provider, { value: { isOpen, onClose }, children: /* @__PURE__ */ jsx41(
|
|
2444
2454
|
"div",
|
|
2445
2455
|
{
|
|
2446
2456
|
className: "grid max-h-full grid-rows-[max-content_1fr_max-content] flex-col rounded-lg bg-uiBackground01 shadow-floatingShadow",
|
|
@@ -2457,7 +2467,7 @@ Popup.Footer = PopupFooter;
|
|
|
2457
2467
|
import { focusVisible as focusVisible11 } from "@zenkigen-inc/component-theme";
|
|
2458
2468
|
import clsx28 from "clsx";
|
|
2459
2469
|
import { useCallback as useCallback8, useState as useState10 } from "react";
|
|
2460
|
-
import { jsx as
|
|
2470
|
+
import { jsx as jsx42, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
2461
2471
|
function Radio({ name, value, id, label, isChecked = false, isDisabled = false, onChange }) {
|
|
2462
2472
|
const [isMouseOver, setIsMouseOver] = useState10(false);
|
|
2463
2473
|
const handleMouseOverInput = useCallback8(() => {
|
|
@@ -2500,7 +2510,7 @@ function Radio({ name, value, id, label, isChecked = false, isDisabled = false,
|
|
|
2500
2510
|
});
|
|
2501
2511
|
return /* @__PURE__ */ jsxs19("div", { className: "flex items-center", children: [
|
|
2502
2512
|
/* @__PURE__ */ jsxs19("div", { className: "flex size-6 items-center justify-center", children: [
|
|
2503
|
-
/* @__PURE__ */
|
|
2513
|
+
/* @__PURE__ */ jsx42(
|
|
2504
2514
|
"input",
|
|
2505
2515
|
{
|
|
2506
2516
|
type: "checkbox",
|
|
@@ -2515,32 +2525,32 @@ function Radio({ name, value, id, label, isChecked = false, isDisabled = false,
|
|
|
2515
2525
|
className: inputClasses
|
|
2516
2526
|
}
|
|
2517
2527
|
),
|
|
2518
|
-
/* @__PURE__ */
|
|
2519
|
-
/* @__PURE__ */
|
|
2520
|
-
/* @__PURE__ */
|
|
2528
|
+
/* @__PURE__ */ jsx42("div", { className: boxClasses, children: /* @__PURE__ */ jsxs19("div", { className: "relative flex size-5 flex-[0_0_auto] items-center justify-center", children: [
|
|
2529
|
+
/* @__PURE__ */ jsx42("span", { className: afterClasses }),
|
|
2530
|
+
/* @__PURE__ */ jsx42("span", { className: hoverIndicatorClasses })
|
|
2521
2531
|
] }) })
|
|
2522
2532
|
] }),
|
|
2523
|
-
/* @__PURE__ */
|
|
2533
|
+
/* @__PURE__ */ jsx42("label", { htmlFor: id, className: labelClasses, children: label })
|
|
2524
2534
|
] });
|
|
2525
2535
|
}
|
|
2526
2536
|
|
|
2527
2537
|
// src/search/search.tsx
|
|
2528
2538
|
import { clsx as clsx29 } from "clsx";
|
|
2529
2539
|
import { forwardRef as forwardRef10 } from "react";
|
|
2530
|
-
import { jsx as
|
|
2540
|
+
import { jsx as jsx43, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
2531
2541
|
var Search = forwardRef10(({ width = "100%", size = "medium", ...props }, ref) => {
|
|
2532
2542
|
const classes = clsx29(
|
|
2533
2543
|
"flex items-center rounded-full border border-uiBorder02 bg-uiBackground01 focus-within:border-activeInput",
|
|
2534
2544
|
{ "h-8 px-3": size === "medium" },
|
|
2535
2545
|
{ "h-10 px-4": size === "large" }
|
|
2536
2546
|
);
|
|
2537
|
-
const inputClasses = clsx29("mx-2 h-full flex-1 text-text01 outline-
|
|
2547
|
+
const inputClasses = clsx29("mx-2 h-full flex-1 text-text01 outline-none placeholder:text-textPlaceholder", {
|
|
2538
2548
|
["typography-label14regular"]: size === "medium",
|
|
2539
2549
|
["typography-label16regular"]: size === "large"
|
|
2540
2550
|
});
|
|
2541
|
-
return /* @__PURE__ */
|
|
2542
|
-
/* @__PURE__ */
|
|
2543
|
-
/* @__PURE__ */
|
|
2551
|
+
return /* @__PURE__ */ jsx43("div", { className: "relative", ref, children: /* @__PURE__ */ jsx43("form", { onSubmit: props.onSubmit, children: /* @__PURE__ */ jsxs20("div", { className: classes, style: { width }, children: [
|
|
2552
|
+
/* @__PURE__ */ jsx43(Icon, { name: "search", color: "icon01", size: "medium" }),
|
|
2553
|
+
/* @__PURE__ */ jsx43(
|
|
2544
2554
|
"input",
|
|
2545
2555
|
{
|
|
2546
2556
|
type: "text",
|
|
@@ -2551,7 +2561,7 @@ var Search = forwardRef10(({ width = "100%", size = "medium", ...props }, ref) =
|
|
|
2551
2561
|
onChange: props.onChange
|
|
2552
2562
|
}
|
|
2553
2563
|
),
|
|
2554
|
-
props.onClickClearButton && props.value && props.value.length !== 0 && /* @__PURE__ */
|
|
2564
|
+
props.onClickClearButton && props.value && props.value.length !== 0 && /* @__PURE__ */ jsx43(
|
|
2555
2565
|
IconButton,
|
|
2556
2566
|
{
|
|
2557
2567
|
variant: "text",
|
|
@@ -2576,7 +2586,7 @@ var SegmentedControlContext = createContext9(null);
|
|
|
2576
2586
|
import { focusVisible as focusVisible12 } from "@zenkigen-inc/component-theme";
|
|
2577
2587
|
import { clsx as clsx30 } from "clsx";
|
|
2578
2588
|
import { useContext as useContext12, useEffect as useEffect6, useRef as useRef7 } from "react";
|
|
2579
|
-
import { jsx as
|
|
2589
|
+
import { jsx as jsx44, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
2580
2590
|
var SegmentedControlItem = ({
|
|
2581
2591
|
label,
|
|
2582
2592
|
value,
|
|
@@ -2652,7 +2662,7 @@ var SegmentedControlItem = ({
|
|
|
2652
2662
|
onMouseDown: handleMouseDown,
|
|
2653
2663
|
...rest,
|
|
2654
2664
|
children: [
|
|
2655
|
-
Boolean(icon) === true && icon && /* @__PURE__ */
|
|
2665
|
+
Boolean(icon) === true && icon && /* @__PURE__ */ jsx44(
|
|
2656
2666
|
"span",
|
|
2657
2667
|
{
|
|
2658
2668
|
className: clsx30("flex items-center", {
|
|
@@ -2660,17 +2670,17 @@ var SegmentedControlItem = ({
|
|
|
2660
2670
|
"fill-interactive01": isSelected === true && isOptionDisabled === false,
|
|
2661
2671
|
"fill-icon01": isSelected === false && isOptionDisabled === false
|
|
2662
2672
|
}),
|
|
2663
|
-
children: /* @__PURE__ */
|
|
2673
|
+
children: /* @__PURE__ */ jsx44(Icon, { name: icon, size: "small" })
|
|
2664
2674
|
}
|
|
2665
2675
|
),
|
|
2666
|
-
Boolean(label) === true && /* @__PURE__ */
|
|
2676
|
+
Boolean(label) === true && /* @__PURE__ */ jsx44("span", { className: "whitespace-nowrap", children: label })
|
|
2667
2677
|
]
|
|
2668
2678
|
}
|
|
2669
2679
|
);
|
|
2670
2680
|
};
|
|
2671
2681
|
|
|
2672
2682
|
// src/segmented-control/segmented-control.tsx
|
|
2673
|
-
import { Fragment as Fragment5, jsx as
|
|
2683
|
+
import { Fragment as Fragment5, jsx as jsx45 } from "react/jsx-runtime";
|
|
2674
2684
|
var SegmentedControl = ({
|
|
2675
2685
|
children,
|
|
2676
2686
|
value,
|
|
@@ -2715,7 +2725,7 @@ var SegmentedControl = ({
|
|
|
2715
2725
|
onBlur: handleBlurRovingFocus,
|
|
2716
2726
|
values: itemIds
|
|
2717
2727
|
};
|
|
2718
|
-
return /* @__PURE__ */
|
|
2728
|
+
return /* @__PURE__ */ jsx45(Fragment5, { children: /* @__PURE__ */ jsx45(SegmentedControlContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx45(
|
|
2719
2729
|
"div",
|
|
2720
2730
|
{
|
|
2721
2731
|
ref: containerRef,
|
|
@@ -2743,7 +2753,7 @@ import clsx32 from "clsx";
|
|
|
2743
2753
|
// src/select-sort/select-item.tsx
|
|
2744
2754
|
import { focusVisible as focusVisible13 } from "@zenkigen-inc/component-theme";
|
|
2745
2755
|
import clsx31 from "clsx";
|
|
2746
|
-
import { jsx as
|
|
2756
|
+
import { jsx as jsx46, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
2747
2757
|
function SelectItem2({ children, isSortKey, onClickItem }) {
|
|
2748
2758
|
const itemClasses = clsx31(
|
|
2749
2759
|
"typography-label14regular flex h-8 w-full items-center px-3 hover:bg-hover02 active:bg-active02",
|
|
@@ -2753,14 +2763,14 @@ function SelectItem2({ children, isSortKey, onClickItem }) {
|
|
|
2753
2763
|
"bg-uiBackground01 fill-icon01 text-interactive02": !isSortKey
|
|
2754
2764
|
}
|
|
2755
2765
|
);
|
|
2756
|
-
return /* @__PURE__ */
|
|
2757
|
-
/* @__PURE__ */
|
|
2758
|
-
isSortKey && /* @__PURE__ */
|
|
2766
|
+
return /* @__PURE__ */ jsx46("li", { className: "flex w-full items-center", onClick: onClickItem, children: /* @__PURE__ */ jsxs22("button", { className: itemClasses, type: "button", children: [
|
|
2767
|
+
/* @__PURE__ */ jsx46("span", { className: "ml-1 mr-6", children }),
|
|
2768
|
+
isSortKey && /* @__PURE__ */ jsx46("div", { className: "ml-auto flex items-center", children: /* @__PURE__ */ jsx46(Icon, { name: "check", size: "small" }) })
|
|
2759
2769
|
] }) });
|
|
2760
2770
|
}
|
|
2761
2771
|
|
|
2762
2772
|
// src/select-sort/select-list.tsx
|
|
2763
|
-
import { jsx as
|
|
2773
|
+
import { jsx as jsx47, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
2764
2774
|
function SelectList2({ size, variant, sortOrder, onClickItem, onClickDeselect }) {
|
|
2765
2775
|
const listClasses = clsx32(
|
|
2766
2776
|
"absolute z-dropdown w-max overflow-y-auto rounded bg-uiBackground01 py-2 shadow-floatingShadow",
|
|
@@ -2776,14 +2786,14 @@ function SelectList2({ size, variant, sortOrder, onClickItem, onClickDeselect })
|
|
|
2776
2786
|
focusVisible14.inset
|
|
2777
2787
|
);
|
|
2778
2788
|
return /* @__PURE__ */ jsxs23("ul", { className: listClasses, children: [
|
|
2779
|
-
/* @__PURE__ */
|
|
2780
|
-
/* @__PURE__ */
|
|
2781
|
-
sortOrder !== null && onClickDeselect && /* @__PURE__ */
|
|
2789
|
+
/* @__PURE__ */ jsx47(SelectItem2, { isSortKey: sortOrder === "ascend", onClickItem: () => onClickItem("ascend"), children: "\u6607\u9806\u3067\u4E26\u3073\u66FF\u3048" }),
|
|
2790
|
+
/* @__PURE__ */ jsx47(SelectItem2, { isSortKey: sortOrder === "descend", onClickItem: () => onClickItem("descend"), children: "\u964D\u9806\u3067\u4E26\u3073\u66FF\u3048" }),
|
|
2791
|
+
sortOrder !== null && onClickDeselect && /* @__PURE__ */ jsx47("li", { children: /* @__PURE__ */ jsx47("button", { className: deselectButtonClasses, type: "button", onClick: onClickDeselect, children: "\u9078\u629E\u89E3\u9664" }) })
|
|
2782
2792
|
] });
|
|
2783
2793
|
}
|
|
2784
2794
|
|
|
2785
2795
|
// src/select-sort/select-sort.tsx
|
|
2786
|
-
import { jsx as
|
|
2796
|
+
import { jsx as jsx48, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
2787
2797
|
function SelectSort({
|
|
2788
2798
|
size = "medium",
|
|
2789
2799
|
variant = "outline",
|
|
@@ -2835,14 +2845,14 @@ function SelectSort({
|
|
|
2835
2845
|
});
|
|
2836
2846
|
return /* @__PURE__ */ jsxs24("div", { className: wrapperClasses, style: { width }, ref: targetRef, children: [
|
|
2837
2847
|
/* @__PURE__ */ jsxs24("button", { className: buttonClasses, type: "button", onClick: handleClickToggle, disabled: isDisabled, children: [
|
|
2838
|
-
/* @__PURE__ */
|
|
2839
|
-
/* @__PURE__ */
|
|
2848
|
+
/* @__PURE__ */ jsx48("div", { className: labelClasses, children: label }),
|
|
2849
|
+
/* @__PURE__ */ jsx48("div", { className: "ml-auto flex items-center", children: isSortKey ? /* @__PURE__ */ jsx48(
|
|
2840
2850
|
Icon,
|
|
2841
2851
|
{
|
|
2842
2852
|
name: sortOrder === "ascend" ? "arrow-up" : "arrow-down",
|
|
2843
2853
|
size: size === "large" ? "medium" : "small"
|
|
2844
2854
|
}
|
|
2845
|
-
) : /* @__PURE__ */
|
|
2855
|
+
) : /* @__PURE__ */ jsx48(
|
|
2846
2856
|
Icon,
|
|
2847
2857
|
{
|
|
2848
2858
|
name: isOptionListOpen ? "angle-small-up" : "angle-small-down",
|
|
@@ -2850,7 +2860,7 @@ function SelectSort({
|
|
|
2850
2860
|
}
|
|
2851
2861
|
) })
|
|
2852
2862
|
] }),
|
|
2853
|
-
isOptionListOpen && !isDisabled && /* @__PURE__ */
|
|
2863
|
+
isOptionListOpen && !isDisabled && /* @__PURE__ */ jsx48(
|
|
2854
2864
|
SelectList2,
|
|
2855
2865
|
{
|
|
2856
2866
|
size,
|
|
@@ -2867,7 +2877,7 @@ function SelectSort({
|
|
|
2867
2877
|
import { buttonColors as buttonColors5, focusVisible as focusVisible16 } from "@zenkigen-inc/component-theme";
|
|
2868
2878
|
import clsx34 from "clsx";
|
|
2869
2879
|
import { useCallback as useCallback10 } from "react";
|
|
2870
|
-
import { jsx as
|
|
2880
|
+
import { jsx as jsx49, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
2871
2881
|
function SortButton({
|
|
2872
2882
|
size = "medium",
|
|
2873
2883
|
width,
|
|
@@ -2916,7 +2926,7 @@ function SortButton({
|
|
|
2916
2926
|
"mr-1": size === "x-small",
|
|
2917
2927
|
"mr-2": size !== "x-small"
|
|
2918
2928
|
});
|
|
2919
|
-
return /* @__PURE__ */
|
|
2929
|
+
return /* @__PURE__ */ jsx49("div", { className: wrapperClasses, style: { width }, children: /* @__PURE__ */ jsxs25(
|
|
2920
2930
|
"button",
|
|
2921
2931
|
{
|
|
2922
2932
|
className: buttonClasses,
|
|
@@ -2927,8 +2937,8 @@ function SortButton({
|
|
|
2927
2937
|
"aria-label": ariaLabel,
|
|
2928
2938
|
"aria-disabled": isDisabled,
|
|
2929
2939
|
children: [
|
|
2930
|
-
/* @__PURE__ */
|
|
2931
|
-
/* @__PURE__ */
|
|
2940
|
+
/* @__PURE__ */ jsx49("div", { className: labelClasses, children: label }),
|
|
2941
|
+
/* @__PURE__ */ jsx49("div", { className: "ml-auto flex items-center", children: /* @__PURE__ */ jsx49(Icon, { name: getIconName(), size: size === "large" ? "medium" : "small" }) })
|
|
2932
2942
|
]
|
|
2933
2943
|
}
|
|
2934
2944
|
) });
|
|
@@ -2940,7 +2950,7 @@ import { Children as Children4 } from "react";
|
|
|
2940
2950
|
|
|
2941
2951
|
// src/tab/tab-item.tsx
|
|
2942
2952
|
import { clsx as clsx35 } from "clsx";
|
|
2943
|
-
import { jsx as
|
|
2953
|
+
import { jsx as jsx50, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
2944
2954
|
var TabItem = ({ isSelected = false, isDisabled = false, icon, ...props }) => {
|
|
2945
2955
|
const classes = clsx35(
|
|
2946
2956
|
"group relative z-0 flex items-center justify-center gap-1 py-2 leading-[24px] before:absolute before:inset-x-0 before:bottom-0 before:h-[2px] hover:text-interactive01 disabled:pointer-events-none disabled:text-disabled01",
|
|
@@ -2965,7 +2975,7 @@ var TabItem = ({ isSelected = false, isDisabled = false, icon, ...props }) => {
|
|
|
2965
2975
|
disabled: isDisabled,
|
|
2966
2976
|
onClick: () => props.onClick(props.id),
|
|
2967
2977
|
children: [
|
|
2968
|
-
icon != null && /* @__PURE__ */
|
|
2978
|
+
icon != null && /* @__PURE__ */ jsx50("span", { className: iconWrapperClasses, children: /* @__PURE__ */ jsx50(Icon, { name: icon, size: "small" }) }),
|
|
2969
2979
|
props.children
|
|
2970
2980
|
]
|
|
2971
2981
|
}
|
|
@@ -2973,7 +2983,7 @@ var TabItem = ({ isSelected = false, isDisabled = false, icon, ...props }) => {
|
|
|
2973
2983
|
};
|
|
2974
2984
|
|
|
2975
2985
|
// src/tab/tab.tsx
|
|
2976
|
-
import { jsx as
|
|
2986
|
+
import { jsx as jsx51 } from "react/jsx-runtime";
|
|
2977
2987
|
function Tab({ children, layout = "auto" }) {
|
|
2978
2988
|
const childrenCount = Children4.count(children);
|
|
2979
2989
|
const containerStyle = layout === "equal" ? { gridTemplateColumns: `repeat(${childrenCount}, minmax(0,1fr))` } : {};
|
|
@@ -2984,28 +2994,28 @@ function Tab({ children, layout = "auto" }) {
|
|
|
2984
2994
|
grid: layout === "equal"
|
|
2985
2995
|
}
|
|
2986
2996
|
);
|
|
2987
|
-
return /* @__PURE__ */
|
|
2997
|
+
return /* @__PURE__ */ jsx51("div", { role: "tablist", className: containerClasses, style: containerStyle, children });
|
|
2988
2998
|
}
|
|
2989
2999
|
Tab.Item = TabItem;
|
|
2990
3000
|
|
|
2991
3001
|
// src/table/table-cell.tsx
|
|
2992
3002
|
import clsx37 from "clsx";
|
|
2993
|
-
import { jsx as
|
|
3003
|
+
import { jsx as jsx52 } from "react/jsx-runtime";
|
|
2994
3004
|
function TableCell({ children, className, isHeader = false }) {
|
|
2995
3005
|
const classes = clsx37("border-b border-uiBorder01", { "sticky top-0 z-10 bg-white": isHeader }, className);
|
|
2996
|
-
return /* @__PURE__ */
|
|
3006
|
+
return /* @__PURE__ */ jsx52("div", { className: classes, children });
|
|
2997
3007
|
}
|
|
2998
3008
|
|
|
2999
3009
|
// src/table/table-row.tsx
|
|
3000
3010
|
import clsx38 from "clsx";
|
|
3001
|
-
import { jsx as
|
|
3011
|
+
import { jsx as jsx53 } from "react/jsx-runtime";
|
|
3002
3012
|
function TableRow({ children, isHoverBackgroundVisible = false }) {
|
|
3003
3013
|
const rowClasses = clsx38("contents", isHoverBackgroundVisible && "[&:hover>div]:bg-hoverUi02");
|
|
3004
|
-
return /* @__PURE__ */
|
|
3014
|
+
return /* @__PURE__ */ jsx53("div", { className: rowClasses, children });
|
|
3005
3015
|
}
|
|
3006
3016
|
|
|
3007
3017
|
// src/table/table.tsx
|
|
3008
|
-
import { jsx as
|
|
3018
|
+
import { jsx as jsx54 } from "react/jsx-runtime";
|
|
3009
3019
|
function Table({
|
|
3010
3020
|
width,
|
|
3011
3021
|
templateRows,
|
|
@@ -3014,7 +3024,7 @@ function Table({
|
|
|
3014
3024
|
autoRows,
|
|
3015
3025
|
children
|
|
3016
3026
|
}) {
|
|
3017
|
-
return /* @__PURE__ */
|
|
3027
|
+
return /* @__PURE__ */ jsx54(
|
|
3018
3028
|
"div",
|
|
3019
3029
|
{
|
|
3020
3030
|
className: "grid",
|
|
@@ -3039,7 +3049,7 @@ import clsx40 from "clsx";
|
|
|
3039
3049
|
// src/tag/delete-icon.tsx
|
|
3040
3050
|
import { focusVisible as focusVisible17 } from "@zenkigen-inc/component-theme";
|
|
3041
3051
|
import clsx39 from "clsx";
|
|
3042
|
-
import { jsx as
|
|
3052
|
+
import { jsx as jsx55 } from "react/jsx-runtime";
|
|
3043
3053
|
var DeleteIcon = ({ color, variant, onClick }) => {
|
|
3044
3054
|
const deleteButtonClasses = clsx39(
|
|
3045
3055
|
"group ml-2 size-[14px] rounded-full p-0.5 hover:cursor-pointer hover:bg-iconOnColor focus-visible:bg-iconOnColor",
|
|
@@ -3049,7 +3059,7 @@ var DeleteIcon = ({ color, variant, onClick }) => {
|
|
|
3049
3059
|
"fill-interactive02": color === "gray" || variant === "light",
|
|
3050
3060
|
"group-hover:fill-interactive02 group-focus-visible:fill-interactive02 fill-iconOnColor": color !== "gray"
|
|
3051
3061
|
});
|
|
3052
|
-
return /* @__PURE__ */
|
|
3062
|
+
return /* @__PURE__ */ jsx55("button", { type: "button", className: deleteButtonClasses, onClick, children: /* @__PURE__ */ jsx55("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx55(
|
|
3053
3063
|
"path",
|
|
3054
3064
|
{
|
|
3055
3065
|
fillRule: "evenodd",
|
|
@@ -3061,7 +3071,7 @@ var DeleteIcon = ({ color, variant, onClick }) => {
|
|
|
3061
3071
|
};
|
|
3062
3072
|
|
|
3063
3073
|
// src/tag/tag.tsx
|
|
3064
|
-
import { jsx as
|
|
3074
|
+
import { jsx as jsx56, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
3065
3075
|
function Tag({ id, children, color, variant = "normal", size = "medium", isEditable, onDelete }) {
|
|
3066
3076
|
const wrapperClasses = clsx40("flex", "items-center", "justify-center", {
|
|
3067
3077
|
[tagColors[color]]: variant === "normal",
|
|
@@ -3077,7 +3087,7 @@ function Tag({ id, children, color, variant = "normal", size = "medium", isEdita
|
|
|
3077
3087
|
});
|
|
3078
3088
|
return /* @__PURE__ */ jsxs27("div", { className: wrapperClasses, children: [
|
|
3079
3089
|
children,
|
|
3080
|
-
isEditable ? /* @__PURE__ */
|
|
3090
|
+
isEditable ? /* @__PURE__ */ jsx56(DeleteIcon, { onClick: () => onDelete(id), color, variant }) : null
|
|
3081
3091
|
] });
|
|
3082
3092
|
}
|
|
3083
3093
|
|
|
@@ -3099,17 +3109,17 @@ var useTextAreaCompoundContext = (componentName) => {
|
|
|
3099
3109
|
// src/text-area/text-area-error-message.tsx
|
|
3100
3110
|
import { clsx as clsx41 } from "clsx";
|
|
3101
3111
|
import { forwardRef as forwardRef11 } from "react";
|
|
3102
|
-
import { jsx as
|
|
3112
|
+
import { jsx as jsx57 } from "react/jsx-runtime";
|
|
3103
3113
|
var TextAreaErrorMessage = forwardRef11(
|
|
3104
3114
|
({ "aria-live": ariaLive = "assertive", ...props }, ref) => {
|
|
3105
3115
|
const { textAreaProps } = useTextAreaCompoundContext("TextArea.ErrorMessage");
|
|
3106
|
-
const typographyClass = textAreaProps.size === "large" ? "typography-
|
|
3116
|
+
const typographyClass = textAreaProps.size === "large" ? "typography-label13regular" : "typography-label12regular";
|
|
3107
3117
|
const shouldRender = textAreaProps.isError === true;
|
|
3108
3118
|
if (!shouldRender) {
|
|
3109
3119
|
return null;
|
|
3110
3120
|
}
|
|
3111
3121
|
const errorMessageClassName = clsx41(typographyClass, "text-supportError");
|
|
3112
|
-
return /* @__PURE__ */
|
|
3122
|
+
return /* @__PURE__ */ jsx57("div", { ref, className: errorMessageClassName, "aria-live": ariaLive, ...props });
|
|
3113
3123
|
}
|
|
3114
3124
|
);
|
|
3115
3125
|
TextAreaErrorMessage.displayName = "TextArea.ErrorMessage";
|
|
@@ -3117,17 +3127,17 @@ TextAreaErrorMessage.displayName = "TextArea.ErrorMessage";
|
|
|
3117
3127
|
// src/text-area/text-area-helper-message.tsx
|
|
3118
3128
|
import { clsx as clsx42 } from "clsx";
|
|
3119
3129
|
import { forwardRef as forwardRef12 } from "react";
|
|
3120
|
-
import { jsx as
|
|
3130
|
+
import { jsx as jsx58 } from "react/jsx-runtime";
|
|
3121
3131
|
var TextAreaHelperMessage = forwardRef12((props, ref) => {
|
|
3122
3132
|
const { textAreaProps } = useTextAreaCompoundContext("TextArea.HelperMessage");
|
|
3123
|
-
const typographyClass = textAreaProps.size === "large" ? "typography-
|
|
3133
|
+
const typographyClass = textAreaProps.size === "large" ? "typography-label13regular" : "typography-label12regular";
|
|
3124
3134
|
const helperMessageClassName = clsx42(typographyClass, "text-text02");
|
|
3125
|
-
return /* @__PURE__ */
|
|
3135
|
+
return /* @__PURE__ */ jsx58("div", { ref, className: helperMessageClassName, ...props });
|
|
3126
3136
|
});
|
|
3127
3137
|
TextAreaHelperMessage.displayName = "TextArea.HelperMessage";
|
|
3128
3138
|
|
|
3129
3139
|
// src/text-area/text-area.tsx
|
|
3130
|
-
import { jsx as
|
|
3140
|
+
import { jsx as jsx59, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
3131
3141
|
function TextAreaInner({
|
|
3132
3142
|
size = "medium",
|
|
3133
3143
|
isResizable = false,
|
|
@@ -3138,6 +3148,9 @@ function TextAreaInner({
|
|
|
3138
3148
|
height,
|
|
3139
3149
|
children,
|
|
3140
3150
|
className,
|
|
3151
|
+
isCounterVisible = false,
|
|
3152
|
+
counterMaxLength,
|
|
3153
|
+
maxLength,
|
|
3141
3154
|
...props
|
|
3142
3155
|
}, ref) {
|
|
3143
3156
|
const autoGeneratedId = useId4();
|
|
@@ -3176,8 +3189,12 @@ function TextAreaInner({
|
|
|
3176
3189
|
}
|
|
3177
3190
|
return child;
|
|
3178
3191
|
});
|
|
3192
|
+
const counterLimit = counterMaxLength ?? maxLength;
|
|
3193
|
+
const counterId = isCounterVisible ? `${describedByBaseId}-counter` : null;
|
|
3194
|
+
const currentLength = typeof props.value === "string" ? props.value.length : 0;
|
|
3195
|
+
const isExceeded = counterLimit != null && currentLength > counterLimit;
|
|
3179
3196
|
const describedByFromProps = typeof props["aria-describedby"] === "string" ? props["aria-describedby"] : null;
|
|
3180
|
-
const describedByList = [describedByFromProps, ...helperMessageIds, ...errorIds].filter(
|
|
3197
|
+
const describedByList = [describedByFromProps, ...helperMessageIds, ...errorIds, counterId].filter(
|
|
3181
3198
|
(id) => typeof id === "string" && id.trim().length > 0
|
|
3182
3199
|
);
|
|
3183
3200
|
const describedByProps = describedByList.length > 0 ? {
|
|
@@ -3187,10 +3204,12 @@ function TextAreaInner({
|
|
|
3187
3204
|
const ariaInvalidFromProps = props["aria-invalid"];
|
|
3188
3205
|
const ariaInvalidValue = ariaInvalidFromProps != null ? ariaInvalidFromProps : shouldMarkInvalid ? true : null;
|
|
3189
3206
|
const ariaInvalidProps = ariaInvalidValue == null ? {} : { "aria-invalid": ariaInvalidValue };
|
|
3207
|
+
const maxLengthProps = counterMaxLength != null ? {} : maxLength != null ? { maxLength } : {};
|
|
3190
3208
|
const mergedTextAreaProps = {
|
|
3191
3209
|
...props,
|
|
3192
3210
|
...describedByProps,
|
|
3193
|
-
...ariaInvalidProps
|
|
3211
|
+
...ariaInvalidProps,
|
|
3212
|
+
...maxLengthProps
|
|
3194
3213
|
};
|
|
3195
3214
|
const textAreaWrapperClassName = clsx43(
|
|
3196
3215
|
"box-border flex w-full overflow-hidden rounded border",
|
|
@@ -3205,10 +3224,10 @@ function TextAreaInner({
|
|
|
3205
3224
|
className
|
|
3206
3225
|
);
|
|
3207
3226
|
const textAreaClassName = clsx43(
|
|
3208
|
-
"w-full border-none bg-uiBackground01 outline-
|
|
3227
|
+
"w-full border-none bg-uiBackground01 outline-none placeholder:text-textPlaceholder disabled:text-textPlaceholder",
|
|
3209
3228
|
{
|
|
3210
3229
|
"typography-body14regular px-2 py-2": size === "medium",
|
|
3211
|
-
"
|
|
3230
|
+
"typography-body16regular px-3 py-2": size === "large",
|
|
3212
3231
|
"field-sizing-content": autoHeight,
|
|
3213
3232
|
"text-text01": !isError,
|
|
3214
3233
|
"text-supportError": isError,
|
|
@@ -3217,7 +3236,7 @@ function TextAreaInner({
|
|
|
3217
3236
|
}
|
|
3218
3237
|
);
|
|
3219
3238
|
const hasHeight = height != null && String(height).trim().length > 0;
|
|
3220
|
-
const textAreaElement = /* @__PURE__ */
|
|
3239
|
+
const textAreaElement = /* @__PURE__ */ jsx59(
|
|
3221
3240
|
"div",
|
|
3222
3241
|
{
|
|
3223
3242
|
className: textAreaWrapperClassName,
|
|
@@ -3227,7 +3246,7 @@ function TextAreaInner({
|
|
|
3227
3246
|
...!autoHeight && hasHeight ? { height } : {},
|
|
3228
3247
|
...autoHeight && hasHeight ? { minHeight: height } : {}
|
|
3229
3248
|
},
|
|
3230
|
-
children: /* @__PURE__ */
|
|
3249
|
+
children: /* @__PURE__ */ jsx59(
|
|
3231
3250
|
"textarea",
|
|
3232
3251
|
{
|
|
3233
3252
|
ref,
|
|
@@ -3242,14 +3261,32 @@ function TextAreaInner({
|
|
|
3242
3261
|
)
|
|
3243
3262
|
}
|
|
3244
3263
|
);
|
|
3264
|
+
const counterElement = isCounterVisible ? /* @__PURE__ */ jsx59(
|
|
3265
|
+
"div",
|
|
3266
|
+
{
|
|
3267
|
+
id: counterId,
|
|
3268
|
+
className: clsx43(
|
|
3269
|
+
"shrink-0",
|
|
3270
|
+
size === "large" ? "typography-label13regular" : "typography-label12regular",
|
|
3271
|
+
!disabled && isExceeded ? "text-supportError" : "text-text02"
|
|
3272
|
+
),
|
|
3273
|
+
"aria-live": "polite",
|
|
3274
|
+
children: counterLimit != null ? `${currentLength}/${counterLimit}\u6587\u5B57` : `${currentLength}\u6587\u5B57`
|
|
3275
|
+
}
|
|
3276
|
+
) : null;
|
|
3245
3277
|
const stackedChildren = enhancedChildren == null ? [] : Children5.toArray(enhancedChildren);
|
|
3246
3278
|
const hasMessageChildren = stackedChildren.length > 0;
|
|
3247
|
-
|
|
3248
|
-
|
|
3279
|
+
const hasBottomContent = hasMessageChildren || counterElement != null;
|
|
3280
|
+
if (!hasBottomContent) {
|
|
3281
|
+
return /* @__PURE__ */ jsx59(TextAreaCompoundContext.Provider, { value: contextValue, children: textAreaElement });
|
|
3249
3282
|
}
|
|
3250
|
-
return /* @__PURE__ */
|
|
3283
|
+
return /* @__PURE__ */ jsx59(TextAreaCompoundContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxs28("div", { className: "flex flex-col gap-2", children: [
|
|
3251
3284
|
textAreaElement,
|
|
3252
|
-
|
|
3285
|
+
/* @__PURE__ */ jsxs28("div", { className: "flex items-start justify-between gap-2", children: [
|
|
3286
|
+
hasMessageChildren && /* @__PURE__ */ jsx59("div", { className: "flex min-w-0 flex-1 flex-col gap-2", children: stackedChildren }),
|
|
3287
|
+
!hasMessageChildren && counterElement != null && /* @__PURE__ */ jsx59("div", { className: "flex-1" }),
|
|
3288
|
+
counterElement
|
|
3289
|
+
] })
|
|
3253
3290
|
] }) });
|
|
3254
3291
|
}
|
|
3255
3292
|
var attachStatics2 = (component) => {
|
|
@@ -3266,7 +3303,7 @@ var TextArea = attachStatics2(TextAreaBase);
|
|
|
3266
3303
|
// src/toast/toast.tsx
|
|
3267
3304
|
import clsx44 from "clsx";
|
|
3268
3305
|
import { useCallback as useCallback11, useEffect as useEffect7, useState as useState12 } from "react";
|
|
3269
|
-
import { jsx as
|
|
3306
|
+
import { jsx as jsx60, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
3270
3307
|
var CLOSE_TIME_MSEC = 5e3;
|
|
3271
3308
|
function Toast({
|
|
3272
3309
|
state = "information",
|
|
@@ -3314,16 +3351,16 @@ function Toast({
|
|
|
3314
3351
|
return () => window.clearTimeout(timer);
|
|
3315
3352
|
}, [isAutoClose]);
|
|
3316
3353
|
return /* @__PURE__ */ jsxs29("div", { className: wrapperClasses, style: { width }, onAnimationEnd: handleAnimationEnd, children: [
|
|
3317
|
-
/* @__PURE__ */
|
|
3318
|
-
/* @__PURE__ */
|
|
3319
|
-
/* @__PURE__ */
|
|
3354
|
+
/* @__PURE__ */ jsx60("div", { className: iconClasses, children: /* @__PURE__ */ jsx60(Icon, { name: iconName[state] }) }),
|
|
3355
|
+
/* @__PURE__ */ jsx60("p", { className: textClasses, children }),
|
|
3356
|
+
/* @__PURE__ */ jsx60(IconButton, { icon: "close", size: "medium", variant: "text", onClick: handleClose, isNoPadding: true })
|
|
3320
3357
|
] });
|
|
3321
3358
|
}
|
|
3322
3359
|
|
|
3323
3360
|
// src/toast/toast-provider.tsx
|
|
3324
3361
|
import { createContext as createContext11, useCallback as useCallback12, useContext as useContext14, useEffect as useEffect8, useState as useState13 } from "react";
|
|
3325
3362
|
import { createPortal as createPortal3 } from "react-dom";
|
|
3326
|
-
import { jsx as
|
|
3363
|
+
import { jsx as jsx61, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
3327
3364
|
var ToastContext = createContext11({});
|
|
3328
3365
|
var ToastProvider = ({ children }) => {
|
|
3329
3366
|
const [isClientRender, setIsClientRender] = useState13(false);
|
|
@@ -3340,7 +3377,7 @@ var ToastProvider = ({ children }) => {
|
|
|
3340
3377
|
return /* @__PURE__ */ jsxs30(ToastContext.Provider, { value: { addToast, removeToast }, children: [
|
|
3341
3378
|
children,
|
|
3342
3379
|
isClientRender && createPortal3(
|
|
3343
|
-
/* @__PURE__ */
|
|
3380
|
+
/* @__PURE__ */ jsx61("div", { className: "pointer-events-none fixed bottom-0 left-0 z-toast mb-4 ml-4 flex w-full flex-col-reverse gap-[16px]", children: toasts.map(({ id, message, state }) => /* @__PURE__ */ jsx61(Toast, { state, isAutoClose: true, isAnimation: true, onClickClose: () => removeToast(id), width: 475, children: message }, id)) }),
|
|
3344
3381
|
document.body
|
|
3345
3382
|
)
|
|
3346
3383
|
] });
|
|
@@ -3351,7 +3388,7 @@ var useToast = () => {
|
|
|
3351
3388
|
|
|
3352
3389
|
// src/toggle/toggle.tsx
|
|
3353
3390
|
import clsx45 from "clsx";
|
|
3354
|
-
import { jsx as
|
|
3391
|
+
import { jsx as jsx62, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
3355
3392
|
function Toggle({
|
|
3356
3393
|
id,
|
|
3357
3394
|
size = "medium",
|
|
@@ -3387,8 +3424,8 @@ function Toggle({
|
|
|
3387
3424
|
"cursor-pointer text-text01": !isDisabled
|
|
3388
3425
|
});
|
|
3389
3426
|
return /* @__PURE__ */ jsxs31("div", { className: "relative flex flex-[0_0_auto] items-center", children: [
|
|
3390
|
-
label != null && labelPosition === "left" && /* @__PURE__ */
|
|
3391
|
-
/* @__PURE__ */
|
|
3427
|
+
label != null && labelPosition === "left" && /* @__PURE__ */ jsx62("label", { htmlFor: id, className: labelClasses, children: label }),
|
|
3428
|
+
/* @__PURE__ */ jsx62(
|
|
3392
3429
|
"input",
|
|
3393
3430
|
{
|
|
3394
3431
|
className: inputClasses,
|
|
@@ -3400,8 +3437,8 @@ function Toggle({
|
|
|
3400
3437
|
disabled: isDisabled
|
|
3401
3438
|
}
|
|
3402
3439
|
),
|
|
3403
|
-
/* @__PURE__ */
|
|
3404
|
-
label != null && labelPosition === "right" && /* @__PURE__ */
|
|
3440
|
+
/* @__PURE__ */ jsx62("div", { className: baseClasses, children: /* @__PURE__ */ jsx62("span", { className: indicatorClasses }) }),
|
|
3441
|
+
label != null && labelPosition === "right" && /* @__PURE__ */ jsx62("label", { htmlFor: id, className: labelClasses, children: label })
|
|
3405
3442
|
] });
|
|
3406
3443
|
}
|
|
3407
3444
|
|
|
@@ -3414,7 +3451,7 @@ import clsx47 from "clsx";
|
|
|
3414
3451
|
|
|
3415
3452
|
// src/tooltip/tail-icon.tsx
|
|
3416
3453
|
import clsx46 from "clsx";
|
|
3417
|
-
import { jsx as
|
|
3454
|
+
import { jsx as jsx63 } from "react/jsx-runtime";
|
|
3418
3455
|
var TailIcon = (props) => {
|
|
3419
3456
|
const tailClasses = clsx46("absolute fill-uiBackgroundTooltip", {
|
|
3420
3457
|
"rotate-180": props.verticalPosition === "bottom",
|
|
@@ -3431,9 +3468,9 @@ var TailIcon = (props) => {
|
|
|
3431
3468
|
"left-1/2 -translate-x-2": props.horizontalAlign === "center" && props.size !== "small"
|
|
3432
3469
|
});
|
|
3433
3470
|
if (props.size === "small") {
|
|
3434
|
-
return /* @__PURE__ */
|
|
3471
|
+
return /* @__PURE__ */ jsx63("svg", { className: tailClasses, width: "8", height: "4", viewBox: "0 0 8 4", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx63("path", { d: "M4 4L0 0H8L4 4Z" }) });
|
|
3435
3472
|
} else {
|
|
3436
|
-
return /* @__PURE__ */
|
|
3473
|
+
return /* @__PURE__ */ jsx63(
|
|
3437
3474
|
"svg",
|
|
3438
3475
|
{
|
|
3439
3476
|
className: tailClasses,
|
|
@@ -3442,14 +3479,14 @@ var TailIcon = (props) => {
|
|
|
3442
3479
|
viewBox: "0 0 14 8",
|
|
3443
3480
|
fill: "none",
|
|
3444
3481
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3445
|
-
children: /* @__PURE__ */
|
|
3482
|
+
children: /* @__PURE__ */ jsx63("path", { d: "M7 8L0 0H14L7 8Z" })
|
|
3446
3483
|
}
|
|
3447
3484
|
);
|
|
3448
3485
|
}
|
|
3449
3486
|
};
|
|
3450
3487
|
|
|
3451
3488
|
// src/tooltip/tooltip-content.tsx
|
|
3452
|
-
import { jsx as
|
|
3489
|
+
import { jsx as jsx64, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
3453
3490
|
var TooltipContent = ({
|
|
3454
3491
|
content,
|
|
3455
3492
|
horizontalAlign,
|
|
@@ -3485,7 +3522,7 @@ var TooltipContent = ({
|
|
|
3485
3522
|
transform: `translate(${tooltipPosition.translateX}, ${tooltipPosition.translateY})`,
|
|
3486
3523
|
...tooltipPosition
|
|
3487
3524
|
} : {};
|
|
3488
|
-
return /* @__PURE__ */
|
|
3525
|
+
return /* @__PURE__ */ jsx64("div", { className: tooltipWrapperClasses, style: tooltipWrapperStyle, children: /* @__PURE__ */ jsxs32(
|
|
3489
3526
|
"div",
|
|
3490
3527
|
{
|
|
3491
3528
|
className: tooltipBodyClasses,
|
|
@@ -3494,7 +3531,7 @@ var TooltipContent = ({
|
|
|
3494
3531
|
},
|
|
3495
3532
|
children: [
|
|
3496
3533
|
content,
|
|
3497
|
-
/* @__PURE__ */
|
|
3534
|
+
/* @__PURE__ */ jsx64(TailIcon, { size, verticalPosition, horizontalAlign })
|
|
3498
3535
|
]
|
|
3499
3536
|
}
|
|
3500
3537
|
) });
|
|
@@ -3555,7 +3592,7 @@ var useTooltip = () => {
|
|
|
3555
3592
|
};
|
|
3556
3593
|
|
|
3557
3594
|
// src/tooltip/tooltip.tsx
|
|
3558
|
-
import { jsx as
|
|
3595
|
+
import { jsx as jsx65, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
3559
3596
|
function Tooltip({
|
|
3560
3597
|
children,
|
|
3561
3598
|
content,
|
|
@@ -3602,7 +3639,7 @@ function Tooltip({
|
|
|
3602
3639
|
onMouseLeave: handleMouseOutWrapper,
|
|
3603
3640
|
children: [
|
|
3604
3641
|
children,
|
|
3605
|
-
isVisible && (portalTarget == null ? /* @__PURE__ */
|
|
3642
|
+
isVisible && (portalTarget == null ? /* @__PURE__ */ jsx65(
|
|
3606
3643
|
TooltipContent,
|
|
3607
3644
|
{
|
|
3608
3645
|
content,
|
|
@@ -3613,7 +3650,7 @@ function Tooltip({
|
|
|
3613
3650
|
tooltipPosition
|
|
3614
3651
|
}
|
|
3615
3652
|
) : createPortal4(
|
|
3616
|
-
/* @__PURE__ */
|
|
3653
|
+
/* @__PURE__ */ jsx65(
|
|
3617
3654
|
TooltipContent,
|
|
3618
3655
|
{
|
|
3619
3656
|
isPortal: true,
|
|
@@ -3637,6 +3674,7 @@ export {
|
|
|
3637
3674
|
Button,
|
|
3638
3675
|
Checkbox,
|
|
3639
3676
|
DatePicker,
|
|
3677
|
+
Divider,
|
|
3640
3678
|
Dropdown,
|
|
3641
3679
|
EvaluationStar,
|
|
3642
3680
|
FileInput,
|