@aviala-design/spiral 2.1.0 → 2.2.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.cjs +679 -841
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +23 -6
- package/dist/index.d.ts +23 -6
- package/dist/index.js +573 -735
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -657,6 +657,25 @@ import {
|
|
|
657
657
|
useState as useState2
|
|
658
658
|
} from "react";
|
|
659
659
|
|
|
660
|
+
// src/lib/render-slot-icon.tsx
|
|
661
|
+
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
662
|
+
function renderSlotIcon(node, className, debugId) {
|
|
663
|
+
if (!node) return null;
|
|
664
|
+
const content = cloneAvialaIconElement(node, {
|
|
665
|
+
level: "text",
|
|
666
|
+
biggerSize: true
|
|
667
|
+
});
|
|
668
|
+
return /* @__PURE__ */ jsx5(
|
|
669
|
+
"span",
|
|
670
|
+
{
|
|
671
|
+
className,
|
|
672
|
+
style: iconSlotCssVarStyle(node, "--input-slot-icon-size", "text", true),
|
|
673
|
+
...debugId ? spiralDebugId(debugId) : void 0,
|
|
674
|
+
children: content
|
|
675
|
+
}
|
|
676
|
+
);
|
|
677
|
+
}
|
|
678
|
+
|
|
660
679
|
// src/components/badge.tsx
|
|
661
680
|
import { cva as cva4 } from "class-variance-authority";
|
|
662
681
|
import {
|
|
@@ -665,7 +684,7 @@ import {
|
|
|
665
684
|
isValidElement as isValidElement4
|
|
666
685
|
} from "react";
|
|
667
686
|
import { resolveIconSizeToken as resolveIconSizeToken3 } from "@aviala-design/icons";
|
|
668
|
-
import { jsx as
|
|
687
|
+
import { jsx as jsx6, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
669
688
|
var badgeVariants = cva4("aviala-badge", {
|
|
670
689
|
variants: {
|
|
671
690
|
style: {
|
|
@@ -722,7 +741,7 @@ function renderBadgeIcon(node, level) {
|
|
|
722
741
|
)
|
|
723
742
|
}
|
|
724
743
|
) : node;
|
|
725
|
-
return /* @__PURE__ */
|
|
744
|
+
return /* @__PURE__ */ jsx6("span", { className: "aviala-badge__icon", "aria-hidden": true, children: content });
|
|
726
745
|
}
|
|
727
746
|
var Badge = forwardRef4(
|
|
728
747
|
({
|
|
@@ -761,7 +780,7 @@ var Badge = forwardRef4(
|
|
|
761
780
|
...props,
|
|
762
781
|
children: [
|
|
763
782
|
renderBadgeIcon(leftIcon, resolvedLevel),
|
|
764
|
-
/* @__PURE__ */
|
|
783
|
+
/* @__PURE__ */ jsx6(
|
|
765
784
|
Typography,
|
|
766
785
|
{
|
|
767
786
|
level: typographyLevel,
|
|
@@ -780,7 +799,7 @@ var Badge = forwardRef4(
|
|
|
780
799
|
Badge.displayName = "Badge";
|
|
781
800
|
|
|
782
801
|
// src/components/input.tsx
|
|
783
|
-
import { jsx as
|
|
802
|
+
import { jsx as jsx7, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
784
803
|
function resolveInputState(value, defaultValue, focused) {
|
|
785
804
|
const current = value ?? defaultValue ?? "";
|
|
786
805
|
if (String(current).length === 0) return "empty";
|
|
@@ -797,25 +816,9 @@ var inputRootVariants = cva5("aviala-input relative min-w-0 font-sans", {
|
|
|
797
816
|
fullWidth: true
|
|
798
817
|
}
|
|
799
818
|
});
|
|
800
|
-
function renderSlotIcon(node, debugId) {
|
|
801
|
-
if (!node) return null;
|
|
802
|
-
const content = cloneAvialaIconElement(node, {
|
|
803
|
-
level: "text",
|
|
804
|
-
biggerSize: true
|
|
805
|
-
});
|
|
806
|
-
return /* @__PURE__ */ jsx6(
|
|
807
|
-
"span",
|
|
808
|
-
{
|
|
809
|
-
className: "aviala-input__slot",
|
|
810
|
-
style: iconSlotCssVarStyle(node, "--input-slot-icon-size", "text", true),
|
|
811
|
-
...debugId ? spiralDebugId(debugId) : void 0,
|
|
812
|
-
children: content
|
|
813
|
-
}
|
|
814
|
-
);
|
|
815
|
-
}
|
|
816
819
|
function renderBadgeArea(node) {
|
|
817
820
|
if (node == null || node === false) return null;
|
|
818
|
-
return /* @__PURE__ */
|
|
821
|
+
return /* @__PURE__ */ jsx7("span", { className: "aviala-input__badge-area", children: isValidElement5(node) && node.type === Badge ? node : /* @__PURE__ */ jsx7(Badge, { children: node }) });
|
|
819
822
|
}
|
|
820
823
|
var Input = forwardRef5(
|
|
821
824
|
({
|
|
@@ -852,14 +855,14 @@ var Input = forwardRef5(
|
|
|
852
855
|
"data-disabled": disabled ? "true" : void 0,
|
|
853
856
|
...spiralDebugId("input"),
|
|
854
857
|
children: [
|
|
855
|
-
renderSlotIcon(leftIcon, "input.left-icon"),
|
|
858
|
+
renderSlotIcon(leftIcon, "aviala-input__slot", "input.left-icon"),
|
|
856
859
|
renderBadgeArea(leftBadge),
|
|
857
|
-
/* @__PURE__ */
|
|
860
|
+
/* @__PURE__ */ jsx7(
|
|
858
861
|
"div",
|
|
859
862
|
{
|
|
860
863
|
className: "aviala-input__field relative z-[1] flex min-w-0 flex-1 flex-col justify-center",
|
|
861
864
|
...spiralDebugId("input.field"),
|
|
862
|
-
children: /* @__PURE__ */
|
|
865
|
+
children: /* @__PURE__ */ jsx7(
|
|
863
866
|
"input",
|
|
864
867
|
{
|
|
865
868
|
ref,
|
|
@@ -893,7 +896,7 @@ var Input = forwardRef5(
|
|
|
893
896
|
}
|
|
894
897
|
),
|
|
895
898
|
renderBadgeArea(rightBadge),
|
|
896
|
-
renderSlotIcon(rightIcon, "input.right-icon")
|
|
899
|
+
renderSlotIcon(rightIcon, "aviala-input__slot", "input.right-icon")
|
|
897
900
|
]
|
|
898
901
|
}
|
|
899
902
|
);
|
|
@@ -912,7 +915,7 @@ import {
|
|
|
912
915
|
useRef,
|
|
913
916
|
useState as useState3
|
|
914
917
|
} from "react";
|
|
915
|
-
import { jsx as
|
|
918
|
+
import { jsx as jsx8, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
916
919
|
function assignRef(ref, value) {
|
|
917
920
|
if (!ref) return;
|
|
918
921
|
if (typeof ref === "function") {
|
|
@@ -954,25 +957,9 @@ function decimalPlaces(n) {
|
|
|
954
957
|
const i = text.indexOf(".");
|
|
955
958
|
return i === -1 ? 0 : text.length - i - 1;
|
|
956
959
|
}
|
|
957
|
-
function renderSlotIcon2(node, debugId) {
|
|
958
|
-
if (!node) return null;
|
|
959
|
-
const content = cloneAvialaIconElement(node, {
|
|
960
|
-
level: "text",
|
|
961
|
-
biggerSize: true
|
|
962
|
-
});
|
|
963
|
-
return /* @__PURE__ */ jsx7(
|
|
964
|
-
"span",
|
|
965
|
-
{
|
|
966
|
-
className: "aviala-input__slot",
|
|
967
|
-
style: iconSlotCssVarStyle(node, "--input-slot-icon-size", "text", true),
|
|
968
|
-
...debugId ? spiralDebugId(debugId) : void 0,
|
|
969
|
-
children: content
|
|
970
|
-
}
|
|
971
|
-
);
|
|
972
|
-
}
|
|
973
960
|
function renderBadgeArea2(node) {
|
|
974
961
|
if (node == null || node === false) return null;
|
|
975
|
-
return /* @__PURE__ */
|
|
962
|
+
return /* @__PURE__ */ jsx8("span", { className: "aviala-input__badge-area", children: isValidElement6(node) && node.type === Badge ? node : /* @__PURE__ */ jsx8(Badge, { children: node }) });
|
|
976
963
|
}
|
|
977
964
|
var numberInputRootVariants = inputRootVariants;
|
|
978
965
|
var NumberInput = forwardRef6(
|
|
@@ -1041,14 +1028,14 @@ var NumberInput = forwardRef6(
|
|
|
1041
1028
|
"data-disabled": disabled ? "true" : void 0,
|
|
1042
1029
|
...spiralDebugId("number-input"),
|
|
1043
1030
|
children: [
|
|
1044
|
-
|
|
1031
|
+
renderSlotIcon(leftIcon, "aviala-input__slot", "number-input.left-icon"),
|
|
1045
1032
|
renderBadgeArea2(leftBadge),
|
|
1046
|
-
/* @__PURE__ */
|
|
1033
|
+
/* @__PURE__ */ jsx8(
|
|
1047
1034
|
"div",
|
|
1048
1035
|
{
|
|
1049
1036
|
className: "aviala-input__field relative z-[1] flex min-w-0 flex-1 flex-col justify-center",
|
|
1050
1037
|
...spiralDebugId("number-input.field"),
|
|
1051
|
-
children: /* @__PURE__ */
|
|
1038
|
+
children: /* @__PURE__ */ jsx8(
|
|
1052
1039
|
"input",
|
|
1053
1040
|
{
|
|
1054
1041
|
ref: (node) => {
|
|
@@ -1106,14 +1093,14 @@ var NumberInput = forwardRef6(
|
|
|
1106
1093
|
}
|
|
1107
1094
|
),
|
|
1108
1095
|
renderBadgeArea2(rightBadge),
|
|
1109
|
-
|
|
1096
|
+
renderSlotIcon(rightIcon, "aviala-input__slot", "number-input.right-icon"),
|
|
1110
1097
|
showControls ? /* @__PURE__ */ jsxs4(
|
|
1111
1098
|
"div",
|
|
1112
1099
|
{
|
|
1113
1100
|
className: "aviala-number-input__controls",
|
|
1114
1101
|
...spiralDebugId("number-input.controls"),
|
|
1115
1102
|
children: [
|
|
1116
|
-
/* @__PURE__ */
|
|
1103
|
+
/* @__PURE__ */ jsx8(
|
|
1117
1104
|
"button",
|
|
1118
1105
|
{
|
|
1119
1106
|
type: "button",
|
|
@@ -1124,10 +1111,10 @@ var NumberInput = forwardRef6(
|
|
|
1124
1111
|
onMouseDown: (event) => event.preventDefault(),
|
|
1125
1112
|
onClick: () => applyStep(1),
|
|
1126
1113
|
...spiralDebugId("number-input.step-up"),
|
|
1127
|
-
children: /* @__PURE__ */
|
|
1114
|
+
children: /* @__PURE__ */ jsx8(DirectionArrowUpLight, { level: "text", biggerSize: true, "aria-hidden": true })
|
|
1128
1115
|
}
|
|
1129
1116
|
),
|
|
1130
|
-
/* @__PURE__ */
|
|
1117
|
+
/* @__PURE__ */ jsx8(
|
|
1131
1118
|
"button",
|
|
1132
1119
|
{
|
|
1133
1120
|
type: "button",
|
|
@@ -1138,7 +1125,7 @@ var NumberInput = forwardRef6(
|
|
|
1138
1125
|
onMouseDown: (event) => event.preventDefault(),
|
|
1139
1126
|
onClick: () => applyStep(-1),
|
|
1140
1127
|
...spiralDebugId("number-input.step-down"),
|
|
1141
|
-
children: /* @__PURE__ */
|
|
1128
|
+
children: /* @__PURE__ */ jsx8(DirectionArrowDownLight, { level: "text", biggerSize: true, "aria-hidden": true })
|
|
1142
1129
|
}
|
|
1143
1130
|
)
|
|
1144
1131
|
]
|
|
@@ -1160,7 +1147,7 @@ import {
|
|
|
1160
1147
|
useRef as useRef2,
|
|
1161
1148
|
useState as useState4
|
|
1162
1149
|
} from "react";
|
|
1163
|
-
import { jsx as
|
|
1150
|
+
import { jsx as jsx9, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
1164
1151
|
function assignRef2(ref, value) {
|
|
1165
1152
|
if (!ref) return;
|
|
1166
1153
|
if (typeof ref === "function") {
|
|
@@ -1174,22 +1161,6 @@ function resolveTextareaState(value, defaultValue, focused) {
|
|
|
1174
1161
|
if (String(current).length === 0) return "empty";
|
|
1175
1162
|
return focused ? "typing" : "fill";
|
|
1176
1163
|
}
|
|
1177
|
-
function renderSlotIcon3(node, debugId) {
|
|
1178
|
-
if (!node) return null;
|
|
1179
|
-
const content = cloneAvialaIconElement(node, {
|
|
1180
|
-
level: "text",
|
|
1181
|
-
biggerSize: true
|
|
1182
|
-
});
|
|
1183
|
-
return /* @__PURE__ */ jsx8(
|
|
1184
|
-
"span",
|
|
1185
|
-
{
|
|
1186
|
-
className: "aviala-textarea__slot",
|
|
1187
|
-
style: iconSlotCssVarStyle(node, "--input-slot-icon-size", "text", true),
|
|
1188
|
-
...debugId ? spiralDebugId(debugId) : void 0,
|
|
1189
|
-
children: content
|
|
1190
|
-
}
|
|
1191
|
-
);
|
|
1192
|
-
}
|
|
1193
1164
|
var Textarea = forwardRef7(
|
|
1194
1165
|
({
|
|
1195
1166
|
className,
|
|
@@ -1301,8 +1272,8 @@ var Textarea = forwardRef7(
|
|
|
1301
1272
|
onMouseDown: handleShellMouseDown,
|
|
1302
1273
|
...spiralDebugId("textarea"),
|
|
1303
1274
|
children: [
|
|
1304
|
-
|
|
1305
|
-
/* @__PURE__ */
|
|
1275
|
+
renderSlotIcon(leftIcon, "aviala-textarea__slot", "textarea.left-icon"),
|
|
1276
|
+
/* @__PURE__ */ jsx9("div", { className: "aviala-textarea__field", ...spiralDebugId("textarea.field"), children: /* @__PURE__ */ jsx9(
|
|
1306
1277
|
"textarea",
|
|
1307
1278
|
{
|
|
1308
1279
|
ref: setTextareaRef,
|
|
@@ -1329,7 +1300,7 @@ var Textarea = forwardRef7(
|
|
|
1329
1300
|
...props
|
|
1330
1301
|
}
|
|
1331
1302
|
) }),
|
|
1332
|
-
|
|
1303
|
+
renderSlotIcon(rightIcon, "aviala-textarea__slot", "textarea.right-icon"),
|
|
1333
1304
|
showController ? /* @__PURE__ */ jsxs5("div", { className: "aviala-textarea__controller", ...spiralDebugId("textarea.controller"), children: [
|
|
1334
1305
|
/* @__PURE__ */ jsxs5(
|
|
1335
1306
|
"span",
|
|
@@ -1342,7 +1313,7 @@ var Textarea = forwardRef7(
|
|
|
1342
1313
|
]
|
|
1343
1314
|
}
|
|
1344
1315
|
),
|
|
1345
|
-
/* @__PURE__ */
|
|
1316
|
+
/* @__PURE__ */ jsx9(
|
|
1346
1317
|
"button",
|
|
1347
1318
|
{
|
|
1348
1319
|
type: "button",
|
|
@@ -1352,7 +1323,7 @@ var Textarea = forwardRef7(
|
|
|
1352
1323
|
tabIndex: disabled ? -1 : 0,
|
|
1353
1324
|
onPointerDown: handleResizePointerDown,
|
|
1354
1325
|
...spiralDebugId("textarea.resize"),
|
|
1355
|
-
children: /* @__PURE__ */
|
|
1326
|
+
children: /* @__PURE__ */ jsx9(SymbolResize, { thickness: "Regular", mode: "default", "aria-hidden": true })
|
|
1356
1327
|
}
|
|
1357
1328
|
)
|
|
1358
1329
|
] }) : null
|
|
@@ -1391,7 +1362,7 @@ import { Slot as Slot3 } from "@radix-ui/react-slot";
|
|
|
1391
1362
|
import {
|
|
1392
1363
|
forwardRef as forwardRef8
|
|
1393
1364
|
} from "react";
|
|
1394
|
-
import { jsx as
|
|
1365
|
+
import { jsx as jsx10, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
1395
1366
|
var levelStyles = {
|
|
1396
1367
|
caption: {
|
|
1397
1368
|
className: typographyVariants({ level: "caption" }),
|
|
@@ -1410,7 +1381,7 @@ function renderIcon2(node, level) {
|
|
|
1410
1381
|
level: iconLevel,
|
|
1411
1382
|
biggerSize: true
|
|
1412
1383
|
});
|
|
1413
|
-
return /* @__PURE__ */
|
|
1384
|
+
return /* @__PURE__ */ jsx10(
|
|
1414
1385
|
"span",
|
|
1415
1386
|
{
|
|
1416
1387
|
className: cn(
|
|
@@ -1451,7 +1422,7 @@ var Link = forwardRef8(
|
|
|
1451
1422
|
onClick?.(e);
|
|
1452
1423
|
};
|
|
1453
1424
|
if (asChild) {
|
|
1454
|
-
return /* @__PURE__ */
|
|
1425
|
+
return /* @__PURE__ */ jsx10(
|
|
1455
1426
|
Comp,
|
|
1456
1427
|
{
|
|
1457
1428
|
className: sharedClassName,
|
|
@@ -1481,7 +1452,7 @@ var Link = forwardRef8(
|
|
|
1481
1452
|
onClick: handleClick,
|
|
1482
1453
|
children: [
|
|
1483
1454
|
renderIcon2(leftIcon ?? (iconOnly ? rightIcon : void 0), resolvedLevel),
|
|
1484
|
-
!iconOnly && children !== void 0 && children !== null && /* @__PURE__ */
|
|
1455
|
+
!iconOnly && children !== void 0 && children !== null && /* @__PURE__ */ jsx10(
|
|
1485
1456
|
"span",
|
|
1486
1457
|
{
|
|
1487
1458
|
className: cn(
|
|
@@ -1500,7 +1471,7 @@ var Link = forwardRef8(
|
|
|
1500
1471
|
Link.displayName = "Link";
|
|
1501
1472
|
|
|
1502
1473
|
// src/components/select.tsx
|
|
1503
|
-
import { jsx as
|
|
1474
|
+
import { jsx as jsx11, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
1504
1475
|
var SELECT_SUB_MENU_CLOSE_DELAY_MS = 250;
|
|
1505
1476
|
var SELECT_SUB_MENU_EXIT_ANIM_MS = 150;
|
|
1506
1477
|
var SelectSubMenuContext = createContext2(null);
|
|
@@ -1734,29 +1705,13 @@ function parseSelectSubItemChildren(children) {
|
|
|
1734
1705
|
function isWithinSelectSubLayer(target) {
|
|
1735
1706
|
return target instanceof Element && target.closest(".aviala-select-sub-content") !== null;
|
|
1736
1707
|
}
|
|
1737
|
-
function renderSlotIcon4(node, debugId) {
|
|
1738
|
-
if (!node) return null;
|
|
1739
|
-
const content = cloneAvialaIconElement(node, {
|
|
1740
|
-
level: "text",
|
|
1741
|
-
biggerSize: true
|
|
1742
|
-
});
|
|
1743
|
-
return /* @__PURE__ */ jsx10(
|
|
1744
|
-
"span",
|
|
1745
|
-
{
|
|
1746
|
-
className: "aviala-select-trigger__slot",
|
|
1747
|
-
style: iconSlotCssVarStyle(node, "--input-slot-icon-size", "text", true),
|
|
1748
|
-
...debugId ? spiralDebugId(debugId) : void 0,
|
|
1749
|
-
children: content
|
|
1750
|
-
}
|
|
1751
|
-
);
|
|
1752
|
-
}
|
|
1753
1708
|
function renderItemIcon(node, iconLevel = "text", debugId) {
|
|
1754
1709
|
if (!node) return null;
|
|
1755
1710
|
const content = cloneAvialaIconElement(node, {
|
|
1756
1711
|
level: iconLevel,
|
|
1757
1712
|
biggerSize: true
|
|
1758
1713
|
});
|
|
1759
|
-
return /* @__PURE__ */
|
|
1714
|
+
return /* @__PURE__ */ jsx11(
|
|
1760
1715
|
"span",
|
|
1761
1716
|
{
|
|
1762
1717
|
className: cn(
|
|
@@ -1771,16 +1726,16 @@ function renderItemIcon(node, iconLevel = "text", debugId) {
|
|
|
1771
1726
|
}
|
|
1772
1727
|
function renderBadgeSlot(node) {
|
|
1773
1728
|
if (node == null || node === false) return null;
|
|
1774
|
-
return /* @__PURE__ */
|
|
1729
|
+
return /* @__PURE__ */ jsx11("span", { className: "aviala-select-item__badge", children: isValidElement7(node) && node.type === Badge ? node : /* @__PURE__ */ jsx11(Badge, { children: node }) });
|
|
1775
1730
|
}
|
|
1776
1731
|
function SelectItemFormRadio() {
|
|
1777
1732
|
return /* @__PURE__ */ jsxs7("span", { className: "aviala-select-item__form-radio", "aria-hidden": true, children: [
|
|
1778
|
-
/* @__PURE__ */
|
|
1779
|
-
/* @__PURE__ */
|
|
1733
|
+
/* @__PURE__ */ jsx11("span", { className: "aviala-select-item__form-radio-surface" }),
|
|
1734
|
+
/* @__PURE__ */ jsx11("span", { className: "aviala-select-item__form-radio-indicator" })
|
|
1780
1735
|
] });
|
|
1781
1736
|
}
|
|
1782
1737
|
function SelectItemFormCheckbox() {
|
|
1783
|
-
return /* @__PURE__ */
|
|
1738
|
+
return /* @__PURE__ */ jsx11("span", { className: "aviala-select-item__form-checkbox", "aria-hidden": true, children: /* @__PURE__ */ jsx11(
|
|
1784
1739
|
SymbolRight,
|
|
1785
1740
|
{
|
|
1786
1741
|
className: "aviala-select-item__form-checkbox-icon",
|
|
@@ -1791,20 +1746,20 @@ function SelectItemFormCheckbox() {
|
|
|
1791
1746
|
) });
|
|
1792
1747
|
}
|
|
1793
1748
|
function SelectItemTrailingRadio() {
|
|
1794
|
-
return /* @__PURE__ */
|
|
1749
|
+
return /* @__PURE__ */ jsx11(SelectPrimitive.ItemIndicator, { className: "aviala-select-item__trailing-radio", "aria-hidden": true, children: /* @__PURE__ */ jsx11(SymbolRight, { level: "text", biggerSize: true, "aria-hidden": true }) });
|
|
1795
1750
|
}
|
|
1796
1751
|
function SelectItemTrailingCheckbox() {
|
|
1797
|
-
return /* @__PURE__ */
|
|
1752
|
+
return /* @__PURE__ */ jsx11(SelectPrimitive.ItemIndicator, { className: "aviala-select-item__trailing-checkbox", "aria-hidden": true, children: /* @__PURE__ */ jsx11(SymbolRight, { level: "text", biggerSize: true, "aria-hidden": true }) });
|
|
1798
1753
|
}
|
|
1799
1754
|
function SelectItemDefaultAvatar() {
|
|
1800
|
-
return /* @__PURE__ */
|
|
1755
|
+
return /* @__PURE__ */ jsx11("span", { className: "aviala-select-item__avatar", "aria-hidden": true, children: /* @__PURE__ */ jsx11(UsersUserCircle, { level: "text", biggerSize: true, "aria-hidden": true }) });
|
|
1801
1756
|
}
|
|
1802
1757
|
function renderFunctionSlot(itemFunction, layout, showFunctionIcon, icon) {
|
|
1803
1758
|
if (!showFunctionIcon) return null;
|
|
1804
1759
|
if (layout === "checked") return null;
|
|
1805
1760
|
const functionStyle = icon ? iconSlotCssVarStyle(icon, "--select-item-function-icon-size", "text", true) : void 0;
|
|
1806
1761
|
if (icon !== void 0) {
|
|
1807
|
-
return /* @__PURE__ */
|
|
1762
|
+
return /* @__PURE__ */ jsx11(
|
|
1808
1763
|
"span",
|
|
1809
1764
|
{
|
|
1810
1765
|
className: "aviala-select-item__function",
|
|
@@ -1816,19 +1771,19 @@ function renderFunctionSlot(itemFunction, layout, showFunctionIcon, icon) {
|
|
|
1816
1771
|
}
|
|
1817
1772
|
switch (itemFunction) {
|
|
1818
1773
|
case "radio":
|
|
1819
|
-
return /* @__PURE__ */
|
|
1774
|
+
return /* @__PURE__ */ jsx11("span", { className: "aviala-select-item__function", ...spiralDebugId("select.content.item.function"), children: /* @__PURE__ */ jsx11(SelectItemTrailingRadio, {}) });
|
|
1820
1775
|
case "checkbox":
|
|
1821
|
-
return /* @__PURE__ */
|
|
1776
|
+
return /* @__PURE__ */ jsx11("span", { className: "aviala-select-item__function", ...spiralDebugId("select.content.item.function"), children: /* @__PURE__ */ jsx11(SelectItemTrailingCheckbox, {}) });
|
|
1822
1777
|
case "simple":
|
|
1823
1778
|
case "action":
|
|
1824
1779
|
default:
|
|
1825
|
-
return /* @__PURE__ */
|
|
1780
|
+
return /* @__PURE__ */ jsx11(
|
|
1826
1781
|
"span",
|
|
1827
1782
|
{
|
|
1828
1783
|
className: "aviala-select-item__function",
|
|
1829
1784
|
style: iconLevelCssVarStyle("text", true, "--select-item-function-icon-size"),
|
|
1830
1785
|
...spiralDebugId("select.content.item.function"),
|
|
1831
|
-
children: /* @__PURE__ */
|
|
1786
|
+
children: /* @__PURE__ */ jsx11(DirectionArrowRight, { level: "text", biggerSize: true, "aria-hidden": true })
|
|
1832
1787
|
}
|
|
1833
1788
|
);
|
|
1834
1789
|
}
|
|
@@ -1881,7 +1836,7 @@ function Select({
|
|
|
1881
1836
|
},
|
|
1882
1837
|
[isControlled, onOpenChange]
|
|
1883
1838
|
);
|
|
1884
|
-
return /* @__PURE__ */
|
|
1839
|
+
return /* @__PURE__ */ jsx11(SelectDismissContext.Provider, { value: dismissContextValue, children: /* @__PURE__ */ jsx11(SelectPrimitive.Root, { open, onOpenChange: handleOpenChange, ...props }) });
|
|
1885
1840
|
}
|
|
1886
1841
|
var SelectValue = SelectPrimitive.Value;
|
|
1887
1842
|
var SelectGroup = SelectPrimitive.Group;
|
|
@@ -1916,7 +1871,7 @@ function wrapUngroupedSelectItems(children) {
|
|
|
1916
1871
|
const flushBareItems = () => {
|
|
1917
1872
|
if (bareItems.length === 0) return;
|
|
1918
1873
|
wrapped.push(
|
|
1919
|
-
/* @__PURE__ */
|
|
1874
|
+
/* @__PURE__ */ jsx11(SelectGroup, { className: "aviala-select-group", children: /* @__PURE__ */ jsx11("div", { className: "aviala-select-group__slot", children: bareItems }) }, `__select-auto-group-${autoGroupIndex++}`)
|
|
1920
1875
|
);
|
|
1921
1876
|
bareItems = [];
|
|
1922
1877
|
};
|
|
@@ -1967,8 +1922,8 @@ var SelectTrigger = forwardRef9(
|
|
|
1967
1922
|
...spiralDebugId("select.trigger"),
|
|
1968
1923
|
...props,
|
|
1969
1924
|
children: [
|
|
1970
|
-
|
|
1971
|
-
/* @__PURE__ */
|
|
1925
|
+
renderSlotIcon(leftIcon, "aviala-select-trigger__slot", "select.trigger.icon-left"),
|
|
1926
|
+
/* @__PURE__ */ jsx11("span", { className: "aviala-select-trigger__field", children: /* @__PURE__ */ jsx11(
|
|
1972
1927
|
SelectPrimitive.Value,
|
|
1973
1928
|
{
|
|
1974
1929
|
placeholder,
|
|
@@ -1976,15 +1931,15 @@ var SelectTrigger = forwardRef9(
|
|
|
1976
1931
|
...spiralDebugId("select.trigger.value")
|
|
1977
1932
|
}
|
|
1978
1933
|
) }),
|
|
1979
|
-
|
|
1980
|
-
/* @__PURE__ */
|
|
1934
|
+
renderSlotIcon(rightIcon, "aviala-select-trigger__slot", "select.trigger.icon-right"),
|
|
1935
|
+
/* @__PURE__ */ jsx11(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx11(
|
|
1981
1936
|
"span",
|
|
1982
1937
|
{
|
|
1983
1938
|
className: "aviala-select-trigger__expand",
|
|
1984
1939
|
"aria-hidden": true,
|
|
1985
1940
|
style: expandIcon ? iconSlotCssVarStyle(expandIcon, "--input-slot-icon-size", "text", true) : iconLevelCssVarStyle("text", true, "--input-slot-icon-size"),
|
|
1986
1941
|
...spiralDebugId("select.trigger.expand"),
|
|
1987
|
-
children: expandIcon ?? /* @__PURE__ */
|
|
1942
|
+
children: expandIcon ?? /* @__PURE__ */ jsx11(
|
|
1988
1943
|
DirectionArrowDownLight2,
|
|
1989
1944
|
{
|
|
1990
1945
|
className: "aviala-select-trigger__expand-icon",
|
|
@@ -2027,7 +1982,7 @@ var SelectContent = forwardRef9(
|
|
|
2027
1982
|
dismissContext.pointerDownCloseRef.current = false;
|
|
2028
1983
|
}
|
|
2029
1984
|
};
|
|
2030
|
-
const content = /* @__PURE__ */
|
|
1985
|
+
const content = /* @__PURE__ */ jsx11(SelectSubMenuContext.Provider, { value: subMenuLayer, children: /* @__PURE__ */ jsx11(
|
|
2031
1986
|
SelectPrimitive.Content,
|
|
2032
1987
|
{
|
|
2033
1988
|
ref,
|
|
@@ -2037,7 +1992,7 @@ var SelectContent = forwardRef9(
|
|
|
2037
1992
|
onCloseAutoFocus: handleCloseAutoFocus,
|
|
2038
1993
|
...spiralDebugId("select.content"),
|
|
2039
1994
|
...props,
|
|
2040
|
-
children: /* @__PURE__ */
|
|
1995
|
+
children: /* @__PURE__ */ jsx11(
|
|
2041
1996
|
SelectPrimitive.Viewport,
|
|
2042
1997
|
{
|
|
2043
1998
|
className: "aviala-select-viewport",
|
|
@@ -2048,11 +2003,11 @@ var SelectContent = forwardRef9(
|
|
|
2048
2003
|
}
|
|
2049
2004
|
) });
|
|
2050
2005
|
if (!portalled) return content;
|
|
2051
|
-
return /* @__PURE__ */
|
|
2006
|
+
return /* @__PURE__ */ jsx11(SelectPrimitive.Portal, { children: content });
|
|
2052
2007
|
}
|
|
2053
2008
|
);
|
|
2054
2009
|
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
2055
|
-
var SelectLabel = forwardRef9(({ className, ...props }, ref) => /* @__PURE__ */
|
|
2010
|
+
var SelectLabel = forwardRef9(({ className, ...props }, ref) => /* @__PURE__ */ jsx11(
|
|
2056
2011
|
SelectPrimitive.Label,
|
|
2057
2012
|
{
|
|
2058
2013
|
ref,
|
|
@@ -2088,15 +2043,15 @@ var SelectItem = forwardRef9(
|
|
|
2088
2043
|
const showTrailingFunction = showFunctionIcon && layout !== "checked" && itemFunction !== "form-radio" && itemFunction !== "form-checkbox";
|
|
2089
2044
|
const textLevel = isTitle ? "caption" : "text";
|
|
2090
2045
|
const textContent = isPeople ? /* @__PURE__ */ jsxs7("span", { className: "aviala-select-item__content", children: [
|
|
2091
|
-
/* @__PURE__ */
|
|
2046
|
+
/* @__PURE__ */ jsx11(
|
|
2092
2047
|
SelectPrimitive.ItemText,
|
|
2093
2048
|
{
|
|
2094
2049
|
className: cn("aviala-select-item__text", typographyVariants({ level: textLevel })),
|
|
2095
2050
|
children
|
|
2096
2051
|
}
|
|
2097
2052
|
),
|
|
2098
|
-
subtitle != null && subtitle !== false ? /* @__PURE__ */
|
|
2099
|
-
] }) : /* @__PURE__ */
|
|
2053
|
+
subtitle != null && subtitle !== false ? /* @__PURE__ */ jsx11("span", { className: cn("aviala-select-item__subtitle", typographyVariants({ level: "caption" })), children: subtitle }) : null
|
|
2054
|
+
] }) : /* @__PURE__ */ jsx11(
|
|
2100
2055
|
SelectPrimitive.ItemText,
|
|
2101
2056
|
{
|
|
2102
2057
|
className: cn("aviala-select-item__text", typographyVariants({ level: textLevel })),
|
|
@@ -2113,14 +2068,14 @@ var SelectItem = forwardRef9(
|
|
|
2113
2068
|
...spiralDebugId("select.content.item"),
|
|
2114
2069
|
...props,
|
|
2115
2070
|
children: [
|
|
2116
|
-
isFormLeading && itemFunction === "form-radio" ? /* @__PURE__ */
|
|
2117
|
-
isFormLeading && itemFunction === "form-checkbox" ? /* @__PURE__ */
|
|
2071
|
+
isFormLeading && itemFunction === "form-radio" ? /* @__PURE__ */ jsx11(SelectItemFormRadio, {}) : null,
|
|
2072
|
+
isFormLeading && itemFunction === "form-checkbox" ? /* @__PURE__ */ jsx11(SelectItemFormCheckbox, {}) : null,
|
|
2118
2073
|
showLeftIcon && leftIcon ? renderItemIcon(leftIcon, leftIconLevel, "select.content.item.icon-left") : null,
|
|
2119
|
-
isPeople ? avatar ?? /* @__PURE__ */
|
|
2074
|
+
isPeople ? avatar ?? /* @__PURE__ */ jsx11(SelectItemDefaultAvatar, {}) : null,
|
|
2120
2075
|
textContent,
|
|
2121
2076
|
showBadge ? renderBadgeSlot(badge ?? "Text") : null,
|
|
2122
2077
|
showRightIcon && rightIcon ? renderItemIcon(rightIcon, leftIconLevel, "select.content.item.icon-right") : null,
|
|
2123
|
-
showMoreFunction ? /* @__PURE__ */
|
|
2078
|
+
showMoreFunction ? /* @__PURE__ */ jsx11("span", { className: "aviala-select-item__more", children: moreAction ?? /* @__PURE__ */ jsx11(Link, { level: "text", href: "#", onClick: (event) => event.preventDefault(), children: "Text" }) }) : null,
|
|
2124
2079
|
renderFunctionSlot(itemFunction, layout, showTrailingFunction, icon)
|
|
2125
2080
|
]
|
|
2126
2081
|
}
|
|
@@ -2197,9 +2152,9 @@ var SelectSubItem = forwardRef9(
|
|
|
2197
2152
|
const showTrailingFunction = showFunctionIcon && layout !== "checked" && itemFunction !== "form-radio" && itemFunction !== "form-checkbox";
|
|
2198
2153
|
const textLevel = isTitle ? "caption" : "text";
|
|
2199
2154
|
const textContent = isPeople ? /* @__PURE__ */ jsxs7("span", { className: "aviala-select-item__content", children: [
|
|
2200
|
-
/* @__PURE__ */
|
|
2201
|
-
subtitle != null && subtitle !== false ? /* @__PURE__ */
|
|
2202
|
-
] }) : /* @__PURE__ */
|
|
2155
|
+
/* @__PURE__ */ jsx11("span", { className: cn("aviala-select-item__text", typographyVariants({ level: textLevel })), children: itemChildren }),
|
|
2156
|
+
subtitle != null && subtitle !== false ? /* @__PURE__ */ jsx11("span", { className: cn("aviala-select-item__subtitle", typographyVariants({ level: "caption" })), children: subtitle }) : null
|
|
2157
|
+
] }) : /* @__PURE__ */ jsx11("span", { className: cn("aviala-select-item__text", typographyVariants({ level: textLevel })), children: itemChildren });
|
|
2203
2158
|
const handleTriggerBlur = (event) => {
|
|
2204
2159
|
scheduleCloseSubItem(subItemId, event.relatedTarget);
|
|
2205
2160
|
};
|
|
@@ -2235,19 +2190,19 @@ var SelectSubItem = forwardRef9(
|
|
|
2235
2190
|
onBlur: handleTriggerBlur,
|
|
2236
2191
|
onKeyDown: handleKeyDown,
|
|
2237
2192
|
children: [
|
|
2238
|
-
isFormLeading && itemFunction === "form-radio" ? /* @__PURE__ */
|
|
2239
|
-
isFormLeading && itemFunction === "form-checkbox" ? /* @__PURE__ */
|
|
2193
|
+
isFormLeading && itemFunction === "form-radio" ? /* @__PURE__ */ jsx11(SelectItemFormRadio, {}) : null,
|
|
2194
|
+
isFormLeading && itemFunction === "form-checkbox" ? /* @__PURE__ */ jsx11(SelectItemFormCheckbox, {}) : null,
|
|
2240
2195
|
showLeftIcon && leftIcon ? renderItemIcon(leftIcon, leftIconLevel) : null,
|
|
2241
|
-
isPeople ? avatar ?? /* @__PURE__ */
|
|
2196
|
+
isPeople ? avatar ?? /* @__PURE__ */ jsx11(SelectItemDefaultAvatar, {}) : null,
|
|
2242
2197
|
textContent,
|
|
2243
2198
|
showBadge ? renderBadgeSlot(badge ?? "Text") : null,
|
|
2244
2199
|
showRightIcon && rightIcon ? renderItemIcon(rightIcon, leftIconLevel) : null,
|
|
2245
|
-
showMoreFunction ? /* @__PURE__ */
|
|
2200
|
+
showMoreFunction ? /* @__PURE__ */ jsx11("span", { className: "aviala-select-item__more", children: moreAction ?? /* @__PURE__ */ jsx11(Link, { level: "text", href: "#", onClick: (event) => event.preventDefault(), children: "Text" }) }) : null,
|
|
2246
2201
|
renderFunctionSlot(itemFunction, layout, showTrailingFunction, icon)
|
|
2247
2202
|
]
|
|
2248
2203
|
}
|
|
2249
2204
|
);
|
|
2250
|
-
const flyout = /* @__PURE__ */
|
|
2205
|
+
const flyout = /* @__PURE__ */ jsx11(
|
|
2251
2206
|
PopoverPrimitive.Content,
|
|
2252
2207
|
{
|
|
2253
2208
|
ref: contentRef,
|
|
@@ -2265,10 +2220,10 @@ var SelectSubItem = forwardRef9(
|
|
|
2265
2220
|
onPointerEnter: handleOpen,
|
|
2266
2221
|
onPointerLeave: handlePointerLeave,
|
|
2267
2222
|
onPointerDownOutside: (event) => event.preventDefault(),
|
|
2268
|
-
children: /* @__PURE__ */
|
|
2223
|
+
children: /* @__PURE__ */ jsx11("div", { className: "aviala-select-viewport aviala-select-sub-content__viewport", children: wrapUngroupedSelectItems(subMenu.children) })
|
|
2269
2224
|
}
|
|
2270
2225
|
);
|
|
2271
|
-
return /* @__PURE__ */
|
|
2226
|
+
return /* @__PURE__ */ jsx11(PopoverPrimitive.Root, { open, modal: false, children: /* @__PURE__ */ jsxs7(
|
|
2272
2227
|
"div",
|
|
2273
2228
|
{
|
|
2274
2229
|
ref: (node) => {
|
|
@@ -2283,8 +2238,8 @@ var SelectSubItem = forwardRef9(
|
|
|
2283
2238
|
onPointerEnter: handleOpen,
|
|
2284
2239
|
onPointerLeave: handlePointerLeave,
|
|
2285
2240
|
children: [
|
|
2286
|
-
/* @__PURE__ */
|
|
2287
|
-
portalled ? /* @__PURE__ */
|
|
2241
|
+
/* @__PURE__ */ jsx11(PopoverPrimitive.Anchor, { asChild: true, children: itemRow }),
|
|
2242
|
+
portalled ? /* @__PURE__ */ jsx11(PopoverPrimitive.Portal, { children: flyout }) : flyout
|
|
2288
2243
|
]
|
|
2289
2244
|
}
|
|
2290
2245
|
) });
|
|
@@ -2292,12 +2247,12 @@ var SelectSubItem = forwardRef9(
|
|
|
2292
2247
|
);
|
|
2293
2248
|
SelectSubItem.displayName = "SelectSubItem";
|
|
2294
2249
|
var SelectSubItemPeople = forwardRef9(
|
|
2295
|
-
(props, ref) => /* @__PURE__ */
|
|
2250
|
+
(props, ref) => /* @__PURE__ */ jsx11(SelectSubItem, { ref, layout: "people", ...props })
|
|
2296
2251
|
);
|
|
2297
2252
|
SelectSubItemPeople.displayName = "SelectSubItemPeople";
|
|
2298
|
-
var SelectItemPeople = forwardRef9((props, ref) => /* @__PURE__ */
|
|
2253
|
+
var SelectItemPeople = forwardRef9((props, ref) => /* @__PURE__ */ jsx11(SelectItem, { ref, layout: "people", ...props }));
|
|
2299
2254
|
SelectItemPeople.displayName = "SelectItemPeople";
|
|
2300
|
-
var SelectSeparator = forwardRef9(({ className, ...props }, ref) => /* @__PURE__ */
|
|
2255
|
+
var SelectSeparator = forwardRef9(({ className, ...props }, ref) => /* @__PURE__ */ jsx11(
|
|
2301
2256
|
SelectPrimitive.Separator,
|
|
2302
2257
|
{
|
|
2303
2258
|
ref,
|
|
@@ -2313,17 +2268,17 @@ function SelectItemGroup({
|
|
|
2313
2268
|
className
|
|
2314
2269
|
}) {
|
|
2315
2270
|
return /* @__PURE__ */ jsxs7(SelectGroup, { className: cn("aviala-select-group", className), children: [
|
|
2316
|
-
label ? /* @__PURE__ */
|
|
2317
|
-
/* @__PURE__ */
|
|
2318
|
-
showDivider ? /* @__PURE__ */
|
|
2271
|
+
label ? /* @__PURE__ */ jsx11(SelectLabel, { children: label }) : null,
|
|
2272
|
+
/* @__PURE__ */ jsx11("div", { className: "aviala-select-group__slot", children }),
|
|
2273
|
+
showDivider ? /* @__PURE__ */ jsx11(SelectSeparator, {}) : null
|
|
2319
2274
|
] });
|
|
2320
2275
|
}
|
|
2321
2276
|
|
|
2322
2277
|
// src/components/label.tsx
|
|
2323
2278
|
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
2324
2279
|
import { forwardRef as forwardRef10 } from "react";
|
|
2325
|
-
import { jsx as
|
|
2326
|
-
var Label2 = forwardRef10(({ className, ...props }, ref) => /* @__PURE__ */
|
|
2280
|
+
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
2281
|
+
var Label2 = forwardRef10(({ className, ...props }, ref) => /* @__PURE__ */ jsx12(
|
|
2327
2282
|
LabelPrimitive.Root,
|
|
2328
2283
|
{
|
|
2329
2284
|
ref,
|
|
@@ -2344,7 +2299,7 @@ import {
|
|
|
2344
2299
|
forwardRef as forwardRef11,
|
|
2345
2300
|
isValidElement as isValidElement8
|
|
2346
2301
|
} from "react";
|
|
2347
|
-
import { jsx as
|
|
2302
|
+
import { jsx as jsx13, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
2348
2303
|
var avatarVariants = cva6("aviala-avatar", {
|
|
2349
2304
|
variants: {
|
|
2350
2305
|
level: {
|
|
@@ -2417,7 +2372,7 @@ var Avatar = forwardRef11(
|
|
|
2417
2372
|
}, ref) => {
|
|
2418
2373
|
const resolvedLevel = level ?? "text";
|
|
2419
2374
|
const resolvedContent = content ?? "text";
|
|
2420
|
-
return /* @__PURE__ */
|
|
2375
|
+
return /* @__PURE__ */ jsx13(
|
|
2421
2376
|
"span",
|
|
2422
2377
|
{
|
|
2423
2378
|
ref,
|
|
@@ -2434,7 +2389,7 @@ var Avatar = forwardRef11(
|
|
|
2434
2389
|
"data-line-height-fix": lineHeightFix ? "true" : "false",
|
|
2435
2390
|
...props,
|
|
2436
2391
|
children: /* @__PURE__ */ jsxs8("span", { className: "aviala-avatar__surface", children: [
|
|
2437
|
-
resolvedContent === "picture" && src ? /* @__PURE__ */
|
|
2392
|
+
resolvedContent === "picture" && src ? /* @__PURE__ */ jsx13(
|
|
2438
2393
|
"img",
|
|
2439
2394
|
{
|
|
2440
2395
|
className: "aviala-avatar__image",
|
|
@@ -2443,8 +2398,8 @@ var Avatar = forwardRef11(
|
|
|
2443
2398
|
...imgProps
|
|
2444
2399
|
}
|
|
2445
2400
|
) : null,
|
|
2446
|
-
resolvedContent === "icon" ? /* @__PURE__ */
|
|
2447
|
-
resolvedContent === "text" ? /* @__PURE__ */
|
|
2401
|
+
resolvedContent === "icon" ? /* @__PURE__ */ jsx13("span", { className: "aviala-avatar__icon", "aria-hidden": true, children: renderAvatarIcon(icon, resolvedLevel) }) : null,
|
|
2402
|
+
resolvedContent === "text" ? /* @__PURE__ */ jsx13(
|
|
2448
2403
|
Typography,
|
|
2449
2404
|
{
|
|
2450
2405
|
level: AVATAR_TEXT_LEVEL[resolvedLevel],
|
|
@@ -2468,7 +2423,7 @@ import {
|
|
|
2468
2423
|
forwardRef as forwardRef12,
|
|
2469
2424
|
isValidElement as isValidElement9
|
|
2470
2425
|
} from "react";
|
|
2471
|
-
import { jsx as
|
|
2426
|
+
import { jsx as jsx14, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
2472
2427
|
var tagVariants = cva7("aviala-tag", {
|
|
2473
2428
|
variants: {
|
|
2474
2429
|
level: {
|
|
@@ -2516,17 +2471,17 @@ function renderTagIcon(node, level) {
|
|
|
2516
2471
|
)
|
|
2517
2472
|
}
|
|
2518
2473
|
) : node;
|
|
2519
|
-
return /* @__PURE__ */
|
|
2474
|
+
return /* @__PURE__ */ jsx14("span", { className: "aviala-tag__icon", "aria-hidden": true, children: content });
|
|
2520
2475
|
}
|
|
2521
2476
|
var TagClose = forwardRef12(
|
|
2522
|
-
({ className, children, ...props }, ref) => /* @__PURE__ */
|
|
2477
|
+
({ className, children, ...props }, ref) => /* @__PURE__ */ jsx14(
|
|
2523
2478
|
"button",
|
|
2524
2479
|
{
|
|
2525
2480
|
ref,
|
|
2526
2481
|
type: "button",
|
|
2527
2482
|
className: cn("aviala-tag__close aviala-focus-ring", className),
|
|
2528
2483
|
...props,
|
|
2529
|
-
children: children ?? /* @__PURE__ */
|
|
2484
|
+
children: children ?? /* @__PURE__ */ jsx14(SymbolWrong, { "aria-hidden": true, width: 14, height: 14 })
|
|
2530
2485
|
}
|
|
2531
2486
|
)
|
|
2532
2487
|
);
|
|
@@ -2553,7 +2508,7 @@ var Tag = forwardRef12(
|
|
|
2553
2508
|
const resolvedContent = content ?? "text";
|
|
2554
2509
|
const resolvedLhf = resolveLineHeightFix2(resolvedLevel, lineHeightFix);
|
|
2555
2510
|
const typographyLevel = resolvedLevel;
|
|
2556
|
-
const peopleAvatar = avatar ?? (avatarSrc ? /* @__PURE__ */
|
|
2511
|
+
const peopleAvatar = avatar ?? (avatarSrc ? /* @__PURE__ */ jsx14(Avatar, { level: "text", content: "picture", src: avatarSrc, lineHeightFix: false }) : /* @__PURE__ */ jsx14(Avatar, { level: "text", content: "text", lineHeightFix: false, children: avatarText ?? (typeof children === "string" ? children.charAt(0) : "?") }));
|
|
2557
2512
|
return /* @__PURE__ */ jsxs9(
|
|
2558
2513
|
"span",
|
|
2559
2514
|
{
|
|
@@ -2573,8 +2528,8 @@ var Tag = forwardRef12(
|
|
|
2573
2528
|
"aria-disabled": disabled || void 0,
|
|
2574
2529
|
...props,
|
|
2575
2530
|
children: [
|
|
2576
|
-
resolvedContent === "people" ? /* @__PURE__ */
|
|
2577
|
-
/* @__PURE__ */
|
|
2531
|
+
resolvedContent === "people" ? /* @__PURE__ */ jsx14("span", { className: "aviala-tag__avatar", children: peopleAvatar }) : renderTagIcon(leftIcon, resolvedLevel),
|
|
2532
|
+
/* @__PURE__ */ jsx14(
|
|
2578
2533
|
Typography,
|
|
2579
2534
|
{
|
|
2580
2535
|
level: typographyLevel,
|
|
@@ -2584,7 +2539,7 @@ var Tag = forwardRef12(
|
|
|
2584
2539
|
}
|
|
2585
2540
|
),
|
|
2586
2541
|
resolvedContent === "text" ? renderTagIcon(rightIcon, resolvedLevel) : null,
|
|
2587
|
-
closable ? /* @__PURE__ */
|
|
2542
|
+
closable ? /* @__PURE__ */ jsx14(
|
|
2588
2543
|
TagClose,
|
|
2589
2544
|
{
|
|
2590
2545
|
"aria-label": closeLabel,
|
|
@@ -2605,7 +2560,7 @@ Tag.displayName = "Tag";
|
|
|
2605
2560
|
// src/components/progress.tsx
|
|
2606
2561
|
import { cva as cva8 } from "class-variance-authority";
|
|
2607
2562
|
import { forwardRef as forwardRef13 } from "react";
|
|
2608
|
-
import { Fragment as Fragment2, jsx as
|
|
2563
|
+
import { Fragment as Fragment2, jsx as jsx15, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
2609
2564
|
var progressVariants = cva8("aviala-progress", {
|
|
2610
2565
|
variants: {
|
|
2611
2566
|
type: {
|
|
@@ -2654,7 +2609,7 @@ var Progress = forwardRef13(
|
|
|
2654
2609
|
const normalizedRadius = radius - stroke;
|
|
2655
2610
|
const circumference = normalizedRadius * 2 * Math.PI;
|
|
2656
2611
|
const strokeDashoffset = circumference - percent / 100 * circumference;
|
|
2657
|
-
return /* @__PURE__ */
|
|
2612
|
+
return /* @__PURE__ */ jsx15(
|
|
2658
2613
|
"div",
|
|
2659
2614
|
{
|
|
2660
2615
|
ref,
|
|
@@ -2676,14 +2631,14 @@ var Progress = forwardRef13(
|
|
|
2676
2631
|
"data-shape": resolvedShape,
|
|
2677
2632
|
...props,
|
|
2678
2633
|
children: resolvedShape === "bar" ? /* @__PURE__ */ jsxs10(Fragment2, { children: [
|
|
2679
|
-
/* @__PURE__ */
|
|
2634
|
+
/* @__PURE__ */ jsx15("div", { className: "aviala-progress__track", children: /* @__PURE__ */ jsx15(
|
|
2680
2635
|
"div",
|
|
2681
2636
|
{
|
|
2682
2637
|
className: "aviala-progress__fill",
|
|
2683
2638
|
style: { width: `${percent}%` }
|
|
2684
2639
|
}
|
|
2685
2640
|
) }),
|
|
2686
|
-
showLabel ? /* @__PURE__ */
|
|
2641
|
+
showLabel ? /* @__PURE__ */ jsx15(
|
|
2687
2642
|
Typography,
|
|
2688
2643
|
{
|
|
2689
2644
|
level: "caption",
|
|
@@ -2702,7 +2657,7 @@ var Progress = forwardRef13(
|
|
|
2702
2657
|
viewBox: `0 0 ${radius * 2} ${radius * 2}`,
|
|
2703
2658
|
"aria-hidden": true,
|
|
2704
2659
|
children: [
|
|
2705
|
-
/* @__PURE__ */
|
|
2660
|
+
/* @__PURE__ */ jsx15(
|
|
2706
2661
|
"circle",
|
|
2707
2662
|
{
|
|
2708
2663
|
className: "aviala-progress__ring-track",
|
|
@@ -2713,7 +2668,7 @@ var Progress = forwardRef13(
|
|
|
2713
2668
|
strokeWidth: stroke
|
|
2714
2669
|
}
|
|
2715
2670
|
),
|
|
2716
|
-
/* @__PURE__ */
|
|
2671
|
+
/* @__PURE__ */ jsx15(
|
|
2717
2672
|
"circle",
|
|
2718
2673
|
{
|
|
2719
2674
|
className: "aviala-progress__ring-fill",
|
|
@@ -2740,7 +2695,7 @@ Progress.displayName = "Progress";
|
|
|
2740
2695
|
// src/components/scroll.tsx
|
|
2741
2696
|
import { cva as cva9 } from "class-variance-authority";
|
|
2742
2697
|
import { forwardRef as forwardRef14 } from "react";
|
|
2743
|
-
import { jsx as
|
|
2698
|
+
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
2744
2699
|
var scrollVariants = cva9("aviala-scroll", {
|
|
2745
2700
|
variants: {
|
|
2746
2701
|
size: {
|
|
@@ -2764,7 +2719,7 @@ var Scroll = forwardRef14(
|
|
|
2764
2719
|
orientation = "vertical",
|
|
2765
2720
|
children,
|
|
2766
2721
|
...props
|
|
2767
|
-
}, ref) => /* @__PURE__ */
|
|
2722
|
+
}, ref) => /* @__PURE__ */ jsx16(
|
|
2768
2723
|
"div",
|
|
2769
2724
|
{
|
|
2770
2725
|
ref,
|
|
@@ -2792,7 +2747,7 @@ import {
|
|
|
2792
2747
|
|
|
2793
2748
|
// src/components/typeface.tsx
|
|
2794
2749
|
import { forwardRef as forwardRef15 } from "react";
|
|
2795
|
-
import { jsx as
|
|
2750
|
+
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
2796
2751
|
var typefaceLayouts = {
|
|
2797
2752
|
allCustom: [
|
|
2798
2753
|
{ level: "text", children: null },
|
|
@@ -2836,11 +2791,11 @@ var Typeface = forwardRef15(
|
|
|
2836
2791
|
}, ref) => {
|
|
2837
2792
|
const layout = typefaceLayouts[content];
|
|
2838
2793
|
const values = resolveTypefaceValues(content, primary, secondary, tertiary, children);
|
|
2839
|
-
return /* @__PURE__ */
|
|
2794
|
+
return /* @__PURE__ */ jsx17("div", { ref, className: cn("aviala-typeface", className), "data-content": content, ...props, children: layout.map((line, index) => {
|
|
2840
2795
|
const value = values[index];
|
|
2841
2796
|
if (value === void 0 || value === null || value === false) return null;
|
|
2842
2797
|
const lineContent = index === 0 ? primaryContent : index === 1 ? secondaryContent : tertiaryContent;
|
|
2843
|
-
return /* @__PURE__ */
|
|
2798
|
+
return /* @__PURE__ */ jsx17("span", { className: "aviala-typeface__line", children: /* @__PURE__ */ jsx17(Typography, { level: line.level, content: lineContent, tone, children: value }) }, `${line.level}-${index}`);
|
|
2844
2799
|
}) });
|
|
2845
2800
|
}
|
|
2846
2801
|
);
|
|
@@ -2858,7 +2813,7 @@ function resolveTypefaceValues(content, primary, secondary, tertiary, children)
|
|
|
2858
2813
|
return [children];
|
|
2859
2814
|
}
|
|
2860
2815
|
var TypefacePair = forwardRef15(
|
|
2861
|
-
({ title, description, ...props }, ref) => /* @__PURE__ */
|
|
2816
|
+
({ title, description, ...props }, ref) => /* @__PURE__ */ jsx17(
|
|
2862
2817
|
Typeface,
|
|
2863
2818
|
{
|
|
2864
2819
|
ref,
|
|
@@ -2872,7 +2827,7 @@ var TypefacePair = forwardRef15(
|
|
|
2872
2827
|
TypefacePair.displayName = "TypefacePair";
|
|
2873
2828
|
|
|
2874
2829
|
// src/components/checkbox.tsx
|
|
2875
|
-
import { jsx as
|
|
2830
|
+
import { jsx as jsx18, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
2876
2831
|
var Checkbox = forwardRef16(({ className, round = false, ...props }, ref) => /* @__PURE__ */ jsxs11(
|
|
2877
2832
|
CheckboxPrimitive.Root,
|
|
2878
2833
|
{
|
|
@@ -2881,9 +2836,9 @@ var Checkbox = forwardRef16(({ className, round = false, ...props }, ref) => /*
|
|
|
2881
2836
|
"data-round": round ? "true" : void 0,
|
|
2882
2837
|
...props,
|
|
2883
2838
|
children: [
|
|
2884
|
-
/* @__PURE__ */
|
|
2839
|
+
/* @__PURE__ */ jsx18("span", { "aria-hidden": true, className: "aviala-checkbox__surface" }),
|
|
2885
2840
|
/* @__PURE__ */ jsxs11(CheckboxPrimitive.Indicator, { className: "aviala-checkbox__indicator", children: [
|
|
2886
|
-
/* @__PURE__ */
|
|
2841
|
+
/* @__PURE__ */ jsx18(
|
|
2887
2842
|
SymbolRight2,
|
|
2888
2843
|
{
|
|
2889
2844
|
className: "aviala-checkbox__indicator-icon aviala-checkbox__indicator-icon--check",
|
|
@@ -2893,7 +2848,7 @@ var Checkbox = forwardRef16(({ className, round = false, ...props }, ref) => /*
|
|
|
2893
2848
|
"aria-hidden": true
|
|
2894
2849
|
}
|
|
2895
2850
|
),
|
|
2896
|
-
/* @__PURE__ */
|
|
2851
|
+
/* @__PURE__ */ jsx18(
|
|
2897
2852
|
"span",
|
|
2898
2853
|
{
|
|
2899
2854
|
"aria-hidden": true,
|
|
@@ -2906,7 +2861,7 @@ var Checkbox = forwardRef16(({ className, round = false, ...props }, ref) => /*
|
|
|
2906
2861
|
));
|
|
2907
2862
|
Checkbox.displayName = CheckboxPrimitive.Root.displayName;
|
|
2908
2863
|
var CheckboxGroup = forwardRef16(
|
|
2909
|
-
({ className, direction = "vertical", ...props }, ref) => /* @__PURE__ */
|
|
2864
|
+
({ className, direction = "vertical", ...props }, ref) => /* @__PURE__ */ jsx18(
|
|
2910
2865
|
"div",
|
|
2911
2866
|
{
|
|
2912
2867
|
ref,
|
|
@@ -2928,7 +2883,7 @@ function renderIcon3(node) {
|
|
|
2928
2883
|
"shrink-0"
|
|
2929
2884
|
)
|
|
2930
2885
|
}) : node;
|
|
2931
|
-
return /* @__PURE__ */
|
|
2886
|
+
return /* @__PURE__ */ jsx18("span", { className: "aviala-checkbox-input__icon", children: content });
|
|
2932
2887
|
}
|
|
2933
2888
|
var CheckboxInput = forwardRef16(
|
|
2934
2889
|
({
|
|
@@ -2946,9 +2901,9 @@ var CheckboxInput = forwardRef16(
|
|
|
2946
2901
|
className: cn("aviala-checkbox-input", className),
|
|
2947
2902
|
"data-disabled": disabled ? "true" : void 0,
|
|
2948
2903
|
children: [
|
|
2949
|
-
/* @__PURE__ */
|
|
2904
|
+
/* @__PURE__ */ jsx18(Checkbox, { ref, id, disabled, ...props }),
|
|
2950
2905
|
renderIcon3(icon),
|
|
2951
|
-
/* @__PURE__ */
|
|
2906
|
+
/* @__PURE__ */ jsx18(
|
|
2952
2907
|
TypefacePair,
|
|
2953
2908
|
{
|
|
2954
2909
|
className: "aviala-checkbox-input__content min-w-0 flex-1",
|
|
@@ -2969,8 +2924,8 @@ import {
|
|
|
2969
2924
|
forwardRef as forwardRef17,
|
|
2970
2925
|
isValidElement as isValidElement11
|
|
2971
2926
|
} from "react";
|
|
2972
|
-
import { jsx as
|
|
2973
|
-
var RadioGroup = forwardRef17(({ className, direction = "vertical", ...props }, ref) => /* @__PURE__ */
|
|
2927
|
+
import { jsx as jsx19, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
2928
|
+
var RadioGroup = forwardRef17(({ className, direction = "vertical", ...props }, ref) => /* @__PURE__ */ jsx19(
|
|
2974
2929
|
RadioGroupPrimitive.Root,
|
|
2975
2930
|
{
|
|
2976
2931
|
className: cn("aviala-radio-group", className),
|
|
@@ -2987,8 +2942,8 @@ var RadioGroupItem = forwardRef17(({ className, ...props }, ref) => /* @__PURE__
|
|
|
2987
2942
|
className: cn("aviala-radio aviala-focus-ring", className),
|
|
2988
2943
|
...props,
|
|
2989
2944
|
children: [
|
|
2990
|
-
/* @__PURE__ */
|
|
2991
|
-
/* @__PURE__ */
|
|
2945
|
+
/* @__PURE__ */ jsx19("span", { "aria-hidden": true, className: "aviala-radio__surface" }),
|
|
2946
|
+
/* @__PURE__ */ jsx19("span", { "aria-hidden": true, className: "aviala-radio__indicator" })
|
|
2992
2947
|
]
|
|
2993
2948
|
}
|
|
2994
2949
|
));
|
|
@@ -3004,7 +2959,7 @@ function renderIcon4(node) {
|
|
|
3004
2959
|
"shrink-0"
|
|
3005
2960
|
)
|
|
3006
2961
|
}) : node;
|
|
3007
|
-
return /* @__PURE__ */
|
|
2962
|
+
return /* @__PURE__ */ jsx19("span", { className: "aviala-radio-input__icon", children: content });
|
|
3008
2963
|
}
|
|
3009
2964
|
var RadioInput = forwardRef17(
|
|
3010
2965
|
({
|
|
@@ -3024,9 +2979,9 @@ var RadioInput = forwardRef17(
|
|
|
3024
2979
|
"data-style": variant,
|
|
3025
2980
|
"data-disabled": disabled ? "true" : void 0,
|
|
3026
2981
|
children: [
|
|
3027
|
-
/* @__PURE__ */
|
|
2982
|
+
/* @__PURE__ */ jsx19(RadioGroupItem, { ref, id, disabled, ...props }),
|
|
3028
2983
|
renderIcon4(icon),
|
|
3029
|
-
/* @__PURE__ */
|
|
2984
|
+
/* @__PURE__ */ jsx19(
|
|
3030
2985
|
TypefacePair,
|
|
3031
2986
|
{
|
|
3032
2987
|
className: "aviala-radio-input__content min-w-0 flex-1",
|
|
@@ -3043,7 +2998,7 @@ RadioInput.displayName = "RadioInput";
|
|
|
3043
2998
|
// src/components/switch.tsx
|
|
3044
2999
|
import * as SwitchPrimitive from "@radix-ui/react-switch";
|
|
3045
3000
|
import { forwardRef as forwardRef18 } from "react";
|
|
3046
|
-
import { jsx as
|
|
3001
|
+
import { jsx as jsx20, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
3047
3002
|
var Switch = forwardRef18(({ className, size = "regular", ...props }, ref) => /* @__PURE__ */ jsxs13(
|
|
3048
3003
|
SwitchPrimitive.Root,
|
|
3049
3004
|
{
|
|
@@ -3055,8 +3010,8 @@ var Switch = forwardRef18(({ className, size = "regular", ...props }, ref) => /*
|
|
|
3055
3010
|
ref,
|
|
3056
3011
|
...props,
|
|
3057
3012
|
children: [
|
|
3058
|
-
/* @__PURE__ */
|
|
3059
|
-
/* @__PURE__ */
|
|
3013
|
+
/* @__PURE__ */ jsx20("span", { "aria-hidden": true, className: "aviala-switch__surface" }),
|
|
3014
|
+
/* @__PURE__ */ jsx20(SwitchPrimitive.Thumb, { className: "aviala-switch__thumb" })
|
|
3060
3015
|
]
|
|
3061
3016
|
}
|
|
3062
3017
|
));
|
|
@@ -3067,9 +3022,9 @@ import { Slot as Slot4 } from "@radix-ui/react-slot";
|
|
|
3067
3022
|
import {
|
|
3068
3023
|
forwardRef as forwardRef19
|
|
3069
3024
|
} from "react";
|
|
3070
|
-
import { jsx as
|
|
3025
|
+
import { jsx as jsx21, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
3071
3026
|
var Anchor2 = forwardRef19(
|
|
3072
|
-
({ className, as: Tag2 = "nav", ...props }, ref) => /* @__PURE__ */
|
|
3027
|
+
({ className, as: Tag2 = "nav", ...props }, ref) => /* @__PURE__ */ jsx21(Tag2, { ref, className: cn("aviala-anchor", className), ...props })
|
|
3073
3028
|
);
|
|
3074
3029
|
Anchor2.displayName = "Anchor";
|
|
3075
3030
|
var AnchorItem = forwardRef19(
|
|
@@ -3091,8 +3046,8 @@ var AnchorItem = forwardRef19(
|
|
|
3091
3046
|
"data-indent": String(indentLevel),
|
|
3092
3047
|
...props,
|
|
3093
3048
|
children: [
|
|
3094
|
-
/* @__PURE__ */
|
|
3095
|
-
/* @__PURE__ */
|
|
3049
|
+
/* @__PURE__ */ jsx21("span", { className: "aviala-anchor-item__rail", "aria-hidden": true }),
|
|
3050
|
+
/* @__PURE__ */ jsx21("span", { className: "aviala-anchor-item__content", children: /* @__PURE__ */ jsx21(Typography, { level: "text", as: "span", className: "aviala-anchor-item__label", children }) })
|
|
3096
3051
|
]
|
|
3097
3052
|
}
|
|
3098
3053
|
);
|
|
@@ -3112,7 +3067,7 @@ import {
|
|
|
3112
3067
|
useRef as useRef4,
|
|
3113
3068
|
useState as useState6
|
|
3114
3069
|
} from "react";
|
|
3115
|
-
import { jsx as
|
|
3070
|
+
import { jsx as jsx22, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
3116
3071
|
var SegmentatorContext = createContext3(null);
|
|
3117
3072
|
function useSegmentatorContext() {
|
|
3118
3073
|
const ctx = useContext3(SegmentatorContext);
|
|
@@ -3127,7 +3082,7 @@ function renderIcon5(node, dimmed) {
|
|
|
3127
3082
|
level: "text",
|
|
3128
3083
|
biggerSize: true
|
|
3129
3084
|
});
|
|
3130
|
-
return /* @__PURE__ */
|
|
3085
|
+
return /* @__PURE__ */ jsx22(
|
|
3131
3086
|
"span",
|
|
3132
3087
|
{
|
|
3133
3088
|
className: cn(
|
|
@@ -3576,7 +3531,7 @@ var SegmentatorGroup = forwardRef20(
|
|
|
3576
3531
|
group.setPointerCapture(event.pointerId);
|
|
3577
3532
|
};
|
|
3578
3533
|
const thumbStyle = thumb ? buildThumbStyle() : void 0;
|
|
3579
|
-
return /* @__PURE__ */
|
|
3534
|
+
return /* @__PURE__ */ jsx22(
|
|
3580
3535
|
SegmentatorContext.Provider,
|
|
3581
3536
|
{
|
|
3582
3537
|
value: useMemo3(
|
|
@@ -3612,7 +3567,7 @@ var SegmentatorGroup = forwardRef20(
|
|
|
3612
3567
|
onLostPointerCapture: finishPointerDrag,
|
|
3613
3568
|
children: [
|
|
3614
3569
|
children,
|
|
3615
|
-
thumb && /* @__PURE__ */
|
|
3570
|
+
thumb && /* @__PURE__ */ jsx22(
|
|
3616
3571
|
"span",
|
|
3617
3572
|
{
|
|
3618
3573
|
ref: onThumbRef,
|
|
@@ -3650,7 +3605,7 @@ var SegmentatorItem = forwardRef20(
|
|
|
3650
3605
|
const isDisabled = disabled || ctx.disabled;
|
|
3651
3606
|
const dimmed = isDisabled;
|
|
3652
3607
|
const icon = iconOnly ? leftIcon ?? rightIcon : leftIcon;
|
|
3653
|
-
return /* @__PURE__ */
|
|
3608
|
+
return /* @__PURE__ */ jsx22(
|
|
3654
3609
|
"button",
|
|
3655
3610
|
{
|
|
3656
3611
|
ref,
|
|
@@ -3674,7 +3629,7 @@ var SegmentatorItem = forwardRef20(
|
|
|
3674
3629
|
...props,
|
|
3675
3630
|
children: /* @__PURE__ */ jsxs15("span", { className: "aviala-segmentator-item__content", children: [
|
|
3676
3631
|
renderIcon5(icon, dimmed && !!icon),
|
|
3677
|
-
!iconOnly && /* @__PURE__ */
|
|
3632
|
+
!iconOnly && /* @__PURE__ */ jsx22(
|
|
3678
3633
|
"span",
|
|
3679
3634
|
{
|
|
3680
3635
|
className: cn(
|
|
@@ -3696,7 +3651,7 @@ SegmentatorItem.displayName = "SegmentatorItem";
|
|
|
3696
3651
|
// src/components/form-field.tsx
|
|
3697
3652
|
import { SymbolInformationCircle, SymbolWrongCircle } from "@aviala-design/icons";
|
|
3698
3653
|
import { forwardRef as forwardRef21, useId as useId2 } from "react";
|
|
3699
|
-
import { Fragment as Fragment3, jsx as
|
|
3654
|
+
import { Fragment as Fragment3, jsx as jsx23, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
3700
3655
|
var FormField = forwardRef21(
|
|
3701
3656
|
({
|
|
3702
3657
|
className,
|
|
@@ -3714,18 +3669,18 @@ var FormField = forwardRef21(
|
|
|
3714
3669
|
const reactId = useId2();
|
|
3715
3670
|
const labelId = `${reactId}-label`;
|
|
3716
3671
|
const hasLabel = label != null && label !== "";
|
|
3717
|
-
const labelNode = hasLabel || description ? htmlFor ? /* @__PURE__ */
|
|
3672
|
+
const labelNode = hasLabel || description ? htmlFor ? /* @__PURE__ */ jsx23("label", { htmlFor, className: "aviala-form__label aviala-form__label--control", children: /* @__PURE__ */ jsx23(
|
|
3718
3673
|
Typeface,
|
|
3719
3674
|
{
|
|
3720
3675
|
id: labelId,
|
|
3721
3676
|
content: "textCaption",
|
|
3722
3677
|
primary: hasLabel ? /* @__PURE__ */ jsxs16(Fragment3, { children: [
|
|
3723
3678
|
label,
|
|
3724
|
-
required ? /* @__PURE__ */
|
|
3679
|
+
required ? /* @__PURE__ */ jsx23("span", { className: "aviala-form__required", "aria-hidden": true, children: "*" }) : null
|
|
3725
3680
|
] }) : void 0,
|
|
3726
3681
|
secondary: description
|
|
3727
3682
|
}
|
|
3728
|
-
) }) : /* @__PURE__ */
|
|
3683
|
+
) }) : /* @__PURE__ */ jsx23(
|
|
3729
3684
|
Typeface,
|
|
3730
3685
|
{
|
|
3731
3686
|
id: labelId,
|
|
@@ -3733,7 +3688,7 @@ var FormField = forwardRef21(
|
|
|
3733
3688
|
content: "textCaption",
|
|
3734
3689
|
primary: hasLabel ? /* @__PURE__ */ jsxs16(Fragment3, { children: [
|
|
3735
3690
|
label,
|
|
3736
|
-
required ? /* @__PURE__ */
|
|
3691
|
+
required ? /* @__PURE__ */ jsx23("span", { className: "aviala-form__required", "aria-hidden": true, children: "*" }) : null
|
|
3737
3692
|
] }) : void 0,
|
|
3738
3693
|
secondary: description
|
|
3739
3694
|
}
|
|
@@ -3751,7 +3706,7 @@ var FormField = forwardRef21(
|
|
|
3751
3706
|
/* @__PURE__ */ jsxs16("div", { className: "aviala-form__content", children: [
|
|
3752
3707
|
children,
|
|
3753
3708
|
error ? /* @__PURE__ */ jsxs16("div", { className: "aviala-form__message aviala-form__message--error", role: "alert", children: [
|
|
3754
|
-
/* @__PURE__ */
|
|
3709
|
+
/* @__PURE__ */ jsx23(
|
|
3755
3710
|
SymbolWrongCircle,
|
|
3756
3711
|
{
|
|
3757
3712
|
className: "aviala-form__message-icon",
|
|
@@ -3760,10 +3715,10 @@ var FormField = forwardRef21(
|
|
|
3760
3715
|
"aria-hidden": true
|
|
3761
3716
|
}
|
|
3762
3717
|
),
|
|
3763
|
-
/* @__PURE__ */
|
|
3718
|
+
/* @__PURE__ */ jsx23(Typography, { level: "caption", as: "p", className: "aviala-form__message-text", children: error })
|
|
3764
3719
|
] }) : null,
|
|
3765
3720
|
info ? /* @__PURE__ */ jsxs16("div", { className: "aviala-form__message aviala-form__message--info", children: [
|
|
3766
|
-
/* @__PURE__ */
|
|
3721
|
+
/* @__PURE__ */ jsx23(
|
|
3767
3722
|
SymbolInformationCircle,
|
|
3768
3723
|
{
|
|
3769
3724
|
className: "aviala-form__message-icon",
|
|
@@ -3772,9 +3727,9 @@ var FormField = forwardRef21(
|
|
|
3772
3727
|
"aria-hidden": true
|
|
3773
3728
|
}
|
|
3774
3729
|
),
|
|
3775
|
-
/* @__PURE__ */
|
|
3730
|
+
/* @__PURE__ */ jsx23(Typography, { level: "caption", as: "p", className: "aviala-form__message-text", children: info })
|
|
3776
3731
|
] }) : null,
|
|
3777
|
-
alert ? /* @__PURE__ */
|
|
3732
|
+
alert ? /* @__PURE__ */ jsx23("div", { className: "aviala-form__alert", children: alert }) : null
|
|
3778
3733
|
] })
|
|
3779
3734
|
]
|
|
3780
3735
|
}
|
|
@@ -3785,9 +3740,9 @@ FormField.displayName = "FormField";
|
|
|
3785
3740
|
|
|
3786
3741
|
// src/components/input-group.tsx
|
|
3787
3742
|
import { forwardRef as forwardRef22 } from "react";
|
|
3788
|
-
import { jsx as
|
|
3743
|
+
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
3789
3744
|
var InputGroup = forwardRef22(
|
|
3790
|
-
({ className, orientation = "horizontal", ...props }, ref) => /* @__PURE__ */
|
|
3745
|
+
({ className, orientation = "horizontal", ...props }, ref) => /* @__PURE__ */ jsx24(
|
|
3791
3746
|
"div",
|
|
3792
3747
|
{
|
|
3793
3748
|
ref,
|
|
@@ -3801,7 +3756,7 @@ var InputGroup = forwardRef22(
|
|
|
3801
3756
|
)
|
|
3802
3757
|
);
|
|
3803
3758
|
InputGroup.displayName = "InputGroup";
|
|
3804
|
-
var InputGroupAddon = forwardRef22(({ className, ...props }, ref) => /* @__PURE__ */
|
|
3759
|
+
var InputGroupAddon = forwardRef22(({ className, ...props }, ref) => /* @__PURE__ */ jsx24(
|
|
3805
3760
|
"div",
|
|
3806
3761
|
{
|
|
3807
3762
|
ref,
|
|
@@ -3817,7 +3772,7 @@ InputGroupAddon.displayName = "InputGroupAddon";
|
|
|
3817
3772
|
|
|
3818
3773
|
// src/components/stack.tsx
|
|
3819
3774
|
import { forwardRef as forwardRef23, useId as useId3 } from "react";
|
|
3820
|
-
import { jsx as
|
|
3775
|
+
import { jsx as jsx25, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
3821
3776
|
var gapMap = {
|
|
3822
3777
|
inside: "var(--gap-inside, 4px)",
|
|
3823
3778
|
component: "var(--gap-component, 8px)",
|
|
@@ -3826,7 +3781,7 @@ var gapMap = {
|
|
|
3826
3781
|
page: "var(--gap-page-space, 24px)"
|
|
3827
3782
|
};
|
|
3828
3783
|
var Stack = forwardRef23(
|
|
3829
|
-
({ className, gap = "component", direction = "column", style, ...props }, ref) => /* @__PURE__ */
|
|
3784
|
+
({ className, gap = "component", direction = "column", style, ...props }, ref) => /* @__PURE__ */ jsx25(
|
|
3830
3785
|
"div",
|
|
3831
3786
|
{
|
|
3832
3787
|
ref,
|
|
@@ -3862,7 +3817,7 @@ var Fieldset = forwardRef23(
|
|
|
3862
3817
|
"aria-labelledby": hasHeading ? headingId : void 0,
|
|
3863
3818
|
...props,
|
|
3864
3819
|
children: [
|
|
3865
|
-
hasHeading || description ? /* @__PURE__ */
|
|
3820
|
+
hasHeading || description ? /* @__PURE__ */ jsx25(
|
|
3866
3821
|
Typeface,
|
|
3867
3822
|
{
|
|
3868
3823
|
id: headingId,
|
|
@@ -3872,11 +3827,11 @@ var Fieldset = forwardRef23(
|
|
|
3872
3827
|
secondary: description
|
|
3873
3828
|
}
|
|
3874
3829
|
) : null,
|
|
3875
|
-
/* @__PURE__ */
|
|
3830
|
+
/* @__PURE__ */ jsx25("div", { className: "aviala-form-group__slot", children }),
|
|
3876
3831
|
hasAction ? /* @__PURE__ */ jsxs17("div", { className: "aviala-form-group__action", children: [
|
|
3877
|
-
info ? /* @__PURE__ */
|
|
3878
|
-
feedback ? /* @__PURE__ */
|
|
3879
|
-
actions ? /* @__PURE__ */
|
|
3832
|
+
info ? /* @__PURE__ */ jsx25("div", { className: "aviala-form-group__info", children: info }) : null,
|
|
3833
|
+
feedback ? /* @__PURE__ */ jsx25("div", { className: "aviala-form-group__feedback", children: feedback }) : null,
|
|
3834
|
+
actions ? /* @__PURE__ */ jsx25("div", { className: "aviala-form-group__actions", children: actions }) : null
|
|
3880
3835
|
] }) : null
|
|
3881
3836
|
]
|
|
3882
3837
|
}
|
|
@@ -4051,7 +4006,7 @@ function useColorPickerState({
|
|
|
4051
4006
|
}
|
|
4052
4007
|
|
|
4053
4008
|
// src/components/color-picker/color-picker-area.tsx
|
|
4054
|
-
import { jsx as
|
|
4009
|
+
import { jsx as jsx26, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
4055
4010
|
function ColorPickerArea({
|
|
4056
4011
|
className,
|
|
4057
4012
|
disabled,
|
|
@@ -4083,7 +4038,7 @@ function ColorPickerArea({
|
|
|
4083
4038
|
);
|
|
4084
4039
|
const { handlePointerDown, handlePointerMove } = usePointerDrag(ref, handleMove, !isDisabled);
|
|
4085
4040
|
const hueColor = pureHueHex(hsva.h);
|
|
4086
|
-
return /* @__PURE__ */
|
|
4041
|
+
return /* @__PURE__ */ jsx26("div", { className: cn("aviala-color-picker-area", className), ...spiralDebugId("color-picker.content.area"), children: /* @__PURE__ */ jsxs18(
|
|
4087
4042
|
"div",
|
|
4088
4043
|
{
|
|
4089
4044
|
ref,
|
|
@@ -4098,9 +4053,9 @@ function ColorPickerArea({
|
|
|
4098
4053
|
"aria-valuenow": Math.round(hsva.s),
|
|
4099
4054
|
tabIndex: isDisabled ? -1 : 0,
|
|
4100
4055
|
children: [
|
|
4101
|
-
/* @__PURE__ */
|
|
4102
|
-
/* @__PURE__ */
|
|
4103
|
-
/* @__PURE__ */
|
|
4056
|
+
/* @__PURE__ */ jsx26("div", { className: "aviala-color-picker-area__white", "aria-hidden": true }),
|
|
4057
|
+
/* @__PURE__ */ jsx26("div", { className: "aviala-color-picker-area__black", "aria-hidden": true }),
|
|
4058
|
+
/* @__PURE__ */ jsx26(
|
|
4104
4059
|
"div",
|
|
4105
4060
|
{
|
|
4106
4061
|
className: "aviala-color-picker-area__thumb",
|
|
@@ -4119,7 +4074,7 @@ function ColorPickerArea({
|
|
|
4119
4074
|
// src/components/color-picker/color-picker-inputs.tsx
|
|
4120
4075
|
import { EditColorPicker } from "@aviala-design/icons";
|
|
4121
4076
|
import { useCallback as useCallback8, useEffect as useEffect4, useState as useState8 } from "react";
|
|
4122
|
-
import { jsx as
|
|
4077
|
+
import { jsx as jsx27, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
4123
4078
|
function ColorPickerInputs({
|
|
4124
4079
|
className,
|
|
4125
4080
|
disabled,
|
|
@@ -4180,7 +4135,7 @@ function ColorPickerInputs({
|
|
|
4180
4135
|
}
|
|
4181
4136
|
}, [eyeDropperSupported, isDisabled, setValue]);
|
|
4182
4137
|
return /* @__PURE__ */ jsxs19("div", { className: cn("aviala-color-picker-inputs", className), ...spiralDebugId("color-picker.content.inputs"), children: [
|
|
4183
|
-
showEyedropper ? /* @__PURE__ */
|
|
4138
|
+
showEyedropper ? /* @__PURE__ */ jsx27(
|
|
4184
4139
|
Button,
|
|
4185
4140
|
{
|
|
4186
4141
|
type: "button",
|
|
@@ -4192,12 +4147,12 @@ function ColorPickerInputs({
|
|
|
4192
4147
|
...spiralDebugId("color-picker.content.inputs.eyedropper"),
|
|
4193
4148
|
title: eyeDropperSupported ? "Pick color from screen" : "EyeDropper not supported in this browser",
|
|
4194
4149
|
onClick: handleEyedropper,
|
|
4195
|
-
children: /* @__PURE__ */
|
|
4150
|
+
children: /* @__PURE__ */ jsx27(EditColorPicker, { "aria-hidden": true })
|
|
4196
4151
|
}
|
|
4197
4152
|
) : null,
|
|
4198
4153
|
format === "hex" ? /* @__PURE__ */ jsxs19("div", { className: "aviala-color-picker-field", children: [
|
|
4199
|
-
/* @__PURE__ */
|
|
4200
|
-
/* @__PURE__ */
|
|
4154
|
+
/* @__PURE__ */ jsx27("span", { className: "aviala-color-picker-field__badge-area", children: /* @__PURE__ */ jsx27(Badge, { style: "normal", children: "#" }) }),
|
|
4155
|
+
/* @__PURE__ */ jsx27(
|
|
4201
4156
|
"input",
|
|
4202
4157
|
{
|
|
4203
4158
|
className: cn("aviala-color-picker-field__input", typographyVariants({ level: "text" })),
|
|
@@ -4209,7 +4164,7 @@ function ColorPickerInputs({
|
|
|
4209
4164
|
onKeyDown: (e) => e.key === "Enter" && commitHex()
|
|
4210
4165
|
}
|
|
4211
4166
|
)
|
|
4212
|
-
] }) : /* @__PURE__ */
|
|
4167
|
+
] }) : /* @__PURE__ */ jsx27("div", { className: "aviala-color-picker-field", children: /* @__PURE__ */ jsx27(
|
|
4213
4168
|
"input",
|
|
4214
4169
|
{
|
|
4215
4170
|
className: cn("aviala-color-picker-field__input", typographyVariants({ level: "text" })),
|
|
@@ -4222,7 +4177,7 @@ function ColorPickerInputs({
|
|
|
4222
4177
|
}
|
|
4223
4178
|
) }),
|
|
4224
4179
|
/* @__PURE__ */ jsxs19("div", { className: "aviala-color-picker-field aviala-color-picker-field--alpha", children: [
|
|
4225
|
-
/* @__PURE__ */
|
|
4180
|
+
/* @__PURE__ */ jsx27(
|
|
4226
4181
|
"input",
|
|
4227
4182
|
{
|
|
4228
4183
|
className: cn("aviala-color-picker-field__input", typographyVariants({ level: "text" })),
|
|
@@ -4235,7 +4190,7 @@ function ColorPickerInputs({
|
|
|
4235
4190
|
onKeyDown: (e) => e.key === "Enter" && commitAlpha()
|
|
4236
4191
|
}
|
|
4237
4192
|
),
|
|
4238
|
-
/* @__PURE__ */
|
|
4193
|
+
/* @__PURE__ */ jsx27("span", { className: "aviala-color-picker-field__badge-area", children: /* @__PURE__ */ jsx27(Badge, { style: "normal", children: "%" }) })
|
|
4239
4194
|
] }),
|
|
4240
4195
|
/* @__PURE__ */ jsxs19(
|
|
4241
4196
|
Select,
|
|
@@ -4244,11 +4199,11 @@ function ColorPickerInputs({
|
|
|
4244
4199
|
onValueChange: (next) => setFormat(next),
|
|
4245
4200
|
disabled: isDisabled,
|
|
4246
4201
|
children: [
|
|
4247
|
-
/* @__PURE__ */
|
|
4248
|
-
/* @__PURE__ */
|
|
4249
|
-
/* @__PURE__ */
|
|
4250
|
-
/* @__PURE__ */
|
|
4251
|
-
/* @__PURE__ */
|
|
4202
|
+
/* @__PURE__ */ jsx27(SelectTrigger, { className: "aviala-color-picker-format-select w-[76px] shrink-0", size: "regular", children: /* @__PURE__ */ jsx27(SelectValue, {}) }),
|
|
4203
|
+
/* @__PURE__ */ jsx27(SelectContent, { onCloseAutoFocus: (event) => event.preventDefault(), children: /* @__PURE__ */ jsxs19(SelectItemGroup, { children: [
|
|
4204
|
+
/* @__PURE__ */ jsx27(SelectItem, { value: "hex", itemFunction: "radio", children: "HEX" }),
|
|
4205
|
+
/* @__PURE__ */ jsx27(SelectItem, { value: "rgb", itemFunction: "radio", children: "RGB" }),
|
|
4206
|
+
/* @__PURE__ */ jsx27(SelectItem, { value: "hsl", itemFunction: "radio", children: "HSL" })
|
|
4252
4207
|
] }) })
|
|
4253
4208
|
]
|
|
4254
4209
|
}
|
|
@@ -4272,11 +4227,11 @@ import { SymbolAdd } from "@aviala-design/icons";
|
|
|
4272
4227
|
|
|
4273
4228
|
// src/components/color-picker/color-pick-button.tsx
|
|
4274
4229
|
import { forwardRef as forwardRef24 } from "react";
|
|
4275
|
-
import { jsx as
|
|
4230
|
+
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
4276
4231
|
var ColorPickButton = forwardRef24(
|
|
4277
4232
|
({ className, color, selected = false, style, ...props }, ref) => {
|
|
4278
4233
|
const swatch = parseColor(color).toHex();
|
|
4279
|
-
return /* @__PURE__ */
|
|
4234
|
+
return /* @__PURE__ */ jsx28(
|
|
4280
4235
|
"button",
|
|
4281
4236
|
{
|
|
4282
4237
|
ref,
|
|
@@ -4285,7 +4240,7 @@ var ColorPickButton = forwardRef24(
|
|
|
4285
4240
|
"data-selected": selected ? "true" : void 0,
|
|
4286
4241
|
style,
|
|
4287
4242
|
...props,
|
|
4288
|
-
children: /* @__PURE__ */
|
|
4243
|
+
children: /* @__PURE__ */ jsx28(
|
|
4289
4244
|
"span",
|
|
4290
4245
|
{
|
|
4291
4246
|
className: "aviala-color-pick-button__swatch",
|
|
@@ -4300,7 +4255,7 @@ var ColorPickButton = forwardRef24(
|
|
|
4300
4255
|
ColorPickButton.displayName = "ColorPickButton";
|
|
4301
4256
|
|
|
4302
4257
|
// src/components/color-picker/color-picker-presets.tsx
|
|
4303
|
-
import { jsx as
|
|
4258
|
+
import { jsx as jsx29, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
4304
4259
|
function ColorPickerPresets({
|
|
4305
4260
|
className,
|
|
4306
4261
|
presets: presetsProp,
|
|
@@ -4323,7 +4278,7 @@ function ColorPickerPresets({
|
|
|
4323
4278
|
onPresetsChange(next);
|
|
4324
4279
|
};
|
|
4325
4280
|
return /* @__PURE__ */ jsxs20("div", { className: cn("aviala-color-picker-presets", className), ...spiralDebugId("color-picker.content.presets"), children: [
|
|
4326
|
-
/* @__PURE__ */
|
|
4281
|
+
/* @__PURE__ */ jsx29(
|
|
4327
4282
|
Button,
|
|
4328
4283
|
{
|
|
4329
4284
|
type: "button",
|
|
@@ -4333,10 +4288,10 @@ function ColorPickerPresets({
|
|
|
4333
4288
|
disabled: isDisabled || !onPresetsChange || presets.length >= maxPresets,
|
|
4334
4289
|
"aria-label": "Add current color to presets",
|
|
4335
4290
|
onClick: handleAdd,
|
|
4336
|
-
children: /* @__PURE__ */
|
|
4291
|
+
children: /* @__PURE__ */ jsx29(SymbolAdd, { "aria-hidden": true })
|
|
4337
4292
|
}
|
|
4338
4293
|
),
|
|
4339
|
-
presets.map((color) => /* @__PURE__ */
|
|
4294
|
+
presets.map((color) => /* @__PURE__ */ jsx29(
|
|
4340
4295
|
ColorPickButton,
|
|
4341
4296
|
{
|
|
4342
4297
|
color,
|
|
@@ -4351,7 +4306,7 @@ function ColorPickerPresets({
|
|
|
4351
4306
|
|
|
4352
4307
|
// src/components/color-picker/color-picker-slider.tsx
|
|
4353
4308
|
import { useCallback as useCallback9, useRef as useRef6 } from "react";
|
|
4354
|
-
import { jsx as
|
|
4309
|
+
import { jsx as jsx30, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
4355
4310
|
function ColorPickerSlider({
|
|
4356
4311
|
kind,
|
|
4357
4312
|
className,
|
|
@@ -4399,7 +4354,7 @@ function ColorPickerSlider({
|
|
|
4399
4354
|
backgroundImage: `linear-gradient(90deg, transparent, ${solidHex(value)})`,
|
|
4400
4355
|
backgroundColor: "var(--color-picker-checkerboard)"
|
|
4401
4356
|
};
|
|
4402
|
-
return /* @__PURE__ */
|
|
4357
|
+
return /* @__PURE__ */ jsx30(
|
|
4403
4358
|
"div",
|
|
4404
4359
|
{
|
|
4405
4360
|
className: cn("aviala-color-picker-slider-row", className),
|
|
@@ -4418,8 +4373,8 @@ function ColorPickerSlider({
|
|
|
4418
4373
|
"aria-valuenow": ariaValueNow,
|
|
4419
4374
|
tabIndex: isDisabled ? -1 : 0,
|
|
4420
4375
|
children: [
|
|
4421
|
-
/* @__PURE__ */
|
|
4422
|
-
/* @__PURE__ */
|
|
4376
|
+
/* @__PURE__ */ jsx30("div", { className: "aviala-color-picker-slider__track", style: trackStyle }),
|
|
4377
|
+
/* @__PURE__ */ jsx30(
|
|
4423
4378
|
"div",
|
|
4424
4379
|
{
|
|
4425
4380
|
className: "aviala-color-picker-slider__thumb",
|
|
@@ -4435,7 +4390,7 @@ function ColorPickerSlider({
|
|
|
4435
4390
|
}
|
|
4436
4391
|
|
|
4437
4392
|
// src/components/color-picker/color-picker.tsx
|
|
4438
|
-
import { jsx as
|
|
4393
|
+
import { jsx as jsx31, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
4439
4394
|
function ColorPicker({
|
|
4440
4395
|
children,
|
|
4441
4396
|
className,
|
|
@@ -4478,17 +4433,17 @@ function ColorPicker({
|
|
|
4478
4433
|
onPresetsChange,
|
|
4479
4434
|
maxPresets
|
|
4480
4435
|
};
|
|
4481
|
-
return /* @__PURE__ */
|
|
4436
|
+
return /* @__PURE__ */ jsx31(ColorPickerContextProvider, { value: contextValue, children: /* @__PURE__ */ jsx31(PopoverPrimitive2.Root, { open, onOpenChange: handleOpenChange, modal: false, children: /* @__PURE__ */ jsx31("div", { className: cn("inline-flex", className), ...spiralDebugId("color-picker"), children }) }) });
|
|
4482
4437
|
}
|
|
4483
4438
|
function ColorPickerContextProvider({
|
|
4484
4439
|
value,
|
|
4485
4440
|
children
|
|
4486
4441
|
}) {
|
|
4487
|
-
return /* @__PURE__ */
|
|
4442
|
+
return /* @__PURE__ */ jsx31(ColorPickerContext.Provider, { value, children });
|
|
4488
4443
|
}
|
|
4489
4444
|
var ColorPickerTrigger = forwardRef25(({ className, size = "regular", allRound = false, placeholder = "Select color", ...props }, ref) => {
|
|
4490
4445
|
const { value, open, disabled } = useColorPickerContext();
|
|
4491
|
-
return /* @__PURE__ */
|
|
4446
|
+
return /* @__PURE__ */ jsx31(PopoverPrimitive2.Trigger, { asChild: true, children: /* @__PURE__ */ jsxs22(
|
|
4492
4447
|
"button",
|
|
4493
4448
|
{
|
|
4494
4449
|
ref,
|
|
@@ -4502,7 +4457,7 @@ var ColorPickerTrigger = forwardRef25(({ className, size = "regular", allRound =
|
|
|
4502
4457
|
disabled,
|
|
4503
4458
|
...props,
|
|
4504
4459
|
children: [
|
|
4505
|
-
/* @__PURE__ */
|
|
4460
|
+
/* @__PURE__ */ jsx31("span", { className: "aviala-color-picker-trigger__swatch", ...spiralDebugId("color-picker.trigger.swatch"), children: /* @__PURE__ */ jsx31(
|
|
4506
4461
|
"span",
|
|
4507
4462
|
{
|
|
4508
4463
|
className: "aviala-color-picker-trigger__swatch-inner",
|
|
@@ -4510,7 +4465,7 @@ var ColorPickerTrigger = forwardRef25(({ className, size = "regular", allRound =
|
|
|
4510
4465
|
"aria-hidden": true
|
|
4511
4466
|
}
|
|
4512
4467
|
) }),
|
|
4513
|
-
/* @__PURE__ */
|
|
4468
|
+
/* @__PURE__ */ jsx31("span", { className: "aviala-color-picker-trigger__value", ...spiralDebugId("color-picker.trigger.value"), children: value ? value.replace(/^#/, "").slice(0, 6).toUpperCase() : /* @__PURE__ */ jsx31("span", { className: "aviala-color-picker-trigger__placeholder", children: placeholder }) })
|
|
4514
4469
|
]
|
|
4515
4470
|
}
|
|
4516
4471
|
) });
|
|
@@ -4529,7 +4484,7 @@ var ColorPickerContent = forwardRef25(
|
|
|
4529
4484
|
...props
|
|
4530
4485
|
}, ref) => {
|
|
4531
4486
|
const { presets, onPresetsChange, maxPresets, disabled } = useColorPickerContext();
|
|
4532
|
-
return /* @__PURE__ */
|
|
4487
|
+
return /* @__PURE__ */ jsx31(PopoverPrimitive2.Portal, { children: /* @__PURE__ */ jsx31(
|
|
4533
4488
|
PopoverPrimitive2.Content,
|
|
4534
4489
|
{
|
|
4535
4490
|
ref,
|
|
@@ -4546,11 +4501,11 @@ var ColorPickerContent = forwardRef25(
|
|
|
4546
4501
|
onFocusOutside: (event) => event.preventDefault(),
|
|
4547
4502
|
...props,
|
|
4548
4503
|
children: /* @__PURE__ */ jsxs22("div", { className: "aviala-color-picker-panel", children: [
|
|
4549
|
-
/* @__PURE__ */
|
|
4550
|
-
/* @__PURE__ */
|
|
4551
|
-
/* @__PURE__ */
|
|
4552
|
-
/* @__PURE__ */
|
|
4553
|
-
showPresets ? /* @__PURE__ */
|
|
4504
|
+
/* @__PURE__ */ jsx31(ColorPickerArea, { disabled }),
|
|
4505
|
+
/* @__PURE__ */ jsx31(ColorPickerSlider, { kind: "hue", disabled }),
|
|
4506
|
+
/* @__PURE__ */ jsx31(ColorPickerSlider, { kind: "alpha", disabled }),
|
|
4507
|
+
/* @__PURE__ */ jsx31(ColorPickerInputs, { disabled, showEyedropper }),
|
|
4508
|
+
showPresets ? /* @__PURE__ */ jsx31(
|
|
4554
4509
|
ColorPickerPresets,
|
|
4555
4510
|
{
|
|
4556
4511
|
disabled,
|
|
@@ -4567,7 +4522,7 @@ var ColorPickerContent = forwardRef25(
|
|
|
4567
4522
|
ColorPickerContent.displayName = "ColorPickerContent";
|
|
4568
4523
|
|
|
4569
4524
|
// src/components/color-picker/color-picker-panel.tsx
|
|
4570
|
-
import { jsx as
|
|
4525
|
+
import { jsx as jsx32, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
4571
4526
|
function ColorPickerPanel({
|
|
4572
4527
|
className,
|
|
4573
4528
|
disabled,
|
|
@@ -4599,12 +4554,12 @@ function ColorPickerPanel({
|
|
|
4599
4554
|
onPresetsChange,
|
|
4600
4555
|
maxPresets
|
|
4601
4556
|
};
|
|
4602
|
-
return /* @__PURE__ */
|
|
4603
|
-
/* @__PURE__ */
|
|
4604
|
-
/* @__PURE__ */
|
|
4605
|
-
/* @__PURE__ */
|
|
4606
|
-
/* @__PURE__ */
|
|
4607
|
-
showPresets ? /* @__PURE__ */
|
|
4557
|
+
return /* @__PURE__ */ jsx32(ColorPickerContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxs23("div", { className: cn("aviala-color-picker-panel", className), children: [
|
|
4558
|
+
/* @__PURE__ */ jsx32(ColorPickerArea, { disabled }),
|
|
4559
|
+
/* @__PURE__ */ jsx32(ColorPickerSlider, { kind: "hue", disabled }),
|
|
4560
|
+
/* @__PURE__ */ jsx32(ColorPickerSlider, { kind: "alpha", disabled }),
|
|
4561
|
+
/* @__PURE__ */ jsx32(ColorPickerInputs, { disabled, showEyedropper }),
|
|
4562
|
+
showPresets ? /* @__PURE__ */ jsx32(
|
|
4608
4563
|
ColorPickerPresets,
|
|
4609
4564
|
{
|
|
4610
4565
|
disabled,
|
|
@@ -4635,7 +4590,7 @@ import {
|
|
|
4635
4590
|
useRef as useRef7,
|
|
4636
4591
|
useState as useState10
|
|
4637
4592
|
} from "react";
|
|
4638
|
-
import { jsx as
|
|
4593
|
+
import { jsx as jsx33, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
4639
4594
|
var CascaderContext = createContext5(null);
|
|
4640
4595
|
function useCascaderContext() {
|
|
4641
4596
|
const context = useContext5(CascaderContext);
|
|
@@ -4644,29 +4599,13 @@ function useCascaderContext() {
|
|
|
4644
4599
|
}
|
|
4645
4600
|
return context;
|
|
4646
4601
|
}
|
|
4647
|
-
function renderSlotIcon5(node, debugId) {
|
|
4648
|
-
if (!node) return null;
|
|
4649
|
-
const content = cloneAvialaIconElement(node, {
|
|
4650
|
-
level: "text",
|
|
4651
|
-
biggerSize: true
|
|
4652
|
-
});
|
|
4653
|
-
return /* @__PURE__ */ jsx32(
|
|
4654
|
-
"span",
|
|
4655
|
-
{
|
|
4656
|
-
className: "aviala-cascader-trigger__slot",
|
|
4657
|
-
style: iconSlotCssVarStyle(node, "--input-slot-icon-size", "text", true),
|
|
4658
|
-
...debugId ? spiralDebugId(debugId) : void 0,
|
|
4659
|
-
children: content
|
|
4660
|
-
}
|
|
4661
|
-
);
|
|
4662
|
-
}
|
|
4663
4602
|
function renderItemIcon2(node, iconLevel = "text", debugId) {
|
|
4664
4603
|
if (!node) return null;
|
|
4665
4604
|
const content = cloneAvialaIconElement(node, {
|
|
4666
4605
|
level: iconLevel,
|
|
4667
4606
|
biggerSize: true
|
|
4668
4607
|
});
|
|
4669
|
-
return /* @__PURE__ */
|
|
4608
|
+
return /* @__PURE__ */ jsx33(
|
|
4670
4609
|
"span",
|
|
4671
4610
|
{
|
|
4672
4611
|
className: cn(
|
|
@@ -4681,16 +4620,16 @@ function renderItemIcon2(node, iconLevel = "text", debugId) {
|
|
|
4681
4620
|
}
|
|
4682
4621
|
function renderBadgeSlot2(node) {
|
|
4683
4622
|
if (node == null || node === false) return null;
|
|
4684
|
-
return /* @__PURE__ */
|
|
4623
|
+
return /* @__PURE__ */ jsx33("span", { className: "aviala-cascader-item__badge", children: isValidElement12(node) && node.type === Badge ? node : /* @__PURE__ */ jsx33(Badge, { children: node }) });
|
|
4685
4624
|
}
|
|
4686
4625
|
function CascaderItemFormRadio() {
|
|
4687
4626
|
return /* @__PURE__ */ jsxs24("span", { className: "aviala-cascader-item__form-radio", "aria-hidden": true, children: [
|
|
4688
|
-
/* @__PURE__ */
|
|
4689
|
-
/* @__PURE__ */
|
|
4627
|
+
/* @__PURE__ */ jsx33("span", { className: "aviala-cascader-item__form-radio-surface" }),
|
|
4628
|
+
/* @__PURE__ */ jsx33("span", { className: "aviala-cascader-item__form-radio-indicator" })
|
|
4690
4629
|
] });
|
|
4691
4630
|
}
|
|
4692
4631
|
function CascaderItemFormCheckbox() {
|
|
4693
|
-
return /* @__PURE__ */
|
|
4632
|
+
return /* @__PURE__ */ jsx33("span", { className: "aviala-cascader-item__form-checkbox", "aria-hidden": true, children: /* @__PURE__ */ jsx33(
|
|
4694
4633
|
SymbolRight3,
|
|
4695
4634
|
{
|
|
4696
4635
|
className: "aviala-cascader-item__form-checkbox-icon",
|
|
@@ -4703,27 +4642,27 @@ function CascaderItemFormCheckbox() {
|
|
|
4703
4642
|
}
|
|
4704
4643
|
function CascaderItemTrailingRadio({ selected }) {
|
|
4705
4644
|
if (!selected) return null;
|
|
4706
|
-
return /* @__PURE__ */
|
|
4645
|
+
return /* @__PURE__ */ jsx33("span", { className: "aviala-cascader-item__trailing-radio", "aria-hidden": true, children: /* @__PURE__ */ jsx33(SymbolRight3, { level: "text", biggerSize: true, "aria-hidden": true }) });
|
|
4707
4646
|
}
|
|
4708
4647
|
function CascaderItemTrailingCheckbox({ selected }) {
|
|
4709
4648
|
if (!selected) return null;
|
|
4710
|
-
return /* @__PURE__ */
|
|
4649
|
+
return /* @__PURE__ */ jsx33("span", { className: "aviala-cascader-item__trailing-checkbox", "aria-hidden": true, children: /* @__PURE__ */ jsx33(SymbolRight3, { level: "text", biggerSize: true, "aria-hidden": true }) });
|
|
4711
4650
|
}
|
|
4712
4651
|
function renderFunctionSlot2(itemFunction, layout, showFunctionIcon, hasChildren, selected, icon) {
|
|
4713
4652
|
if (!showFunctionIcon || layout === "title") return null;
|
|
4714
4653
|
if (icon !== void 0) {
|
|
4715
|
-
return /* @__PURE__ */
|
|
4654
|
+
return /* @__PURE__ */ jsx33("span", { className: "aviala-cascader-item__function", children: icon });
|
|
4716
4655
|
}
|
|
4717
4656
|
switch (itemFunction) {
|
|
4718
4657
|
case "radio":
|
|
4719
|
-
return /* @__PURE__ */
|
|
4658
|
+
return /* @__PURE__ */ jsx33("span", { className: "aviala-cascader-item__function", children: /* @__PURE__ */ jsx33(CascaderItemTrailingRadio, { selected }) });
|
|
4720
4659
|
case "checkbox":
|
|
4721
|
-
return /* @__PURE__ */
|
|
4660
|
+
return /* @__PURE__ */ jsx33("span", { className: "aviala-cascader-item__function", children: /* @__PURE__ */ jsx33(CascaderItemTrailingCheckbox, { selected }) });
|
|
4722
4661
|
case "simple":
|
|
4723
4662
|
default:
|
|
4724
4663
|
return /* @__PURE__ */ jsxs24("span", { className: "aviala-cascader-item__function", children: [
|
|
4725
|
-
selected ? /* @__PURE__ */
|
|
4726
|
-
hasChildren ? /* @__PURE__ */
|
|
4664
|
+
selected ? /* @__PURE__ */ jsx33(SymbolRight3, { level: "text", biggerSize: true, "aria-hidden": true }) : null,
|
|
4665
|
+
hasChildren ? /* @__PURE__ */ jsx33(DirectionArrowRightLight, { level: "text", biggerSize: true, "aria-hidden": true }) : null
|
|
4727
4666
|
] });
|
|
4728
4667
|
}
|
|
4729
4668
|
}
|
|
@@ -4883,7 +4822,7 @@ function Cascader({
|
|
|
4883
4822
|
size
|
|
4884
4823
|
]
|
|
4885
4824
|
);
|
|
4886
|
-
return /* @__PURE__ */
|
|
4825
|
+
return /* @__PURE__ */ jsx33(CascaderContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx33(PopoverPrimitive3.Root, { open, onOpenChange: handleOpenChange, modal: false, children: /* @__PURE__ */ jsx33("div", { className: cn("inline-flex", className), ...spiralDebugId("cascader"), children }) }) });
|
|
4887
4826
|
}
|
|
4888
4827
|
var CascaderTrigger = forwardRef26(
|
|
4889
4828
|
({
|
|
@@ -4909,7 +4848,7 @@ var CascaderTrigger = forwardRef26(
|
|
|
4909
4848
|
label
|
|
4910
4849
|
] }, `${selectedPath[index]}-${index}`)) : null);
|
|
4911
4850
|
const hasValue = resolvedDisplay != null && resolvedDisplay !== false;
|
|
4912
|
-
return /* @__PURE__ */
|
|
4851
|
+
return /* @__PURE__ */ jsx33(PopoverPrimitive3.Trigger, { asChild: true, children: /* @__PURE__ */ jsxs24(
|
|
4913
4852
|
"button",
|
|
4914
4853
|
{
|
|
4915
4854
|
ref,
|
|
@@ -4925,8 +4864,8 @@ var CascaderTrigger = forwardRef26(
|
|
|
4925
4864
|
...spiralDebugId("cascader.trigger"),
|
|
4926
4865
|
...props,
|
|
4927
4866
|
children: [
|
|
4928
|
-
|
|
4929
|
-
/* @__PURE__ */
|
|
4867
|
+
renderSlotIcon(leftIcon, "aviala-cascader-trigger__slot", "cascader.trigger.icon-left"),
|
|
4868
|
+
/* @__PURE__ */ jsx33("span", { className: "aviala-cascader-trigger__field", ...spiralDebugId("cascader.trigger.value"), children: /* @__PURE__ */ jsx33(
|
|
4930
4869
|
"span",
|
|
4931
4870
|
{
|
|
4932
4871
|
className: cn("aviala-cascader-trigger__value", typographyVariants({ level: "text" })),
|
|
@@ -4934,15 +4873,15 @@ var CascaderTrigger = forwardRef26(
|
|
|
4934
4873
|
children: hasValue ? resolvedDisplay : placeholder
|
|
4935
4874
|
}
|
|
4936
4875
|
) }),
|
|
4937
|
-
|
|
4938
|
-
/* @__PURE__ */
|
|
4876
|
+
renderSlotIcon(rightIcon, "aviala-cascader-trigger__slot", "cascader.trigger.icon-right"),
|
|
4877
|
+
/* @__PURE__ */ jsx33(
|
|
4939
4878
|
"span",
|
|
4940
4879
|
{
|
|
4941
4880
|
className: "aviala-cascader-trigger__expand",
|
|
4942
4881
|
"aria-hidden": true,
|
|
4943
4882
|
style: expandIcon ? iconSlotCssVarStyle(expandIcon, "--input-slot-icon-size", "text", true) : iconLevelCssVarStyle("text", true, "--input-slot-icon-size"),
|
|
4944
4883
|
...spiralDebugId("cascader.trigger.expand"),
|
|
4945
|
-
children: expandIcon ?? /* @__PURE__ */
|
|
4884
|
+
children: expandIcon ?? /* @__PURE__ */ jsx33(DirectionArrowDownLight3, { level: "text", biggerSize: true, "aria-hidden": true })
|
|
4946
4885
|
}
|
|
4947
4886
|
)
|
|
4948
4887
|
]
|
|
@@ -4960,7 +4899,7 @@ var CascaderContent = forwardRef26(
|
|
|
4960
4899
|
portalled = true,
|
|
4961
4900
|
...props
|
|
4962
4901
|
}, ref) => {
|
|
4963
|
-
const content = /* @__PURE__ */
|
|
4902
|
+
const content = /* @__PURE__ */ jsx33(
|
|
4964
4903
|
PopoverPrimitive3.Content,
|
|
4965
4904
|
{
|
|
4966
4905
|
ref,
|
|
@@ -4973,12 +4912,12 @@ var CascaderContent = forwardRef26(
|
|
|
4973
4912
|
}
|
|
4974
4913
|
);
|
|
4975
4914
|
if (!portalled) return content;
|
|
4976
|
-
return /* @__PURE__ */
|
|
4915
|
+
return /* @__PURE__ */ jsx33(PopoverPrimitive3.Portal, { children: content });
|
|
4977
4916
|
}
|
|
4978
4917
|
);
|
|
4979
4918
|
CascaderContent.displayName = "CascaderContent";
|
|
4980
4919
|
var CascaderMenu = forwardRef26(
|
|
4981
|
-
({ children, className }, ref) => /* @__PURE__ */
|
|
4920
|
+
({ children, className }, ref) => /* @__PURE__ */ jsx33("div", { ref, className: cn("aviala-cascader-menu", className), children })
|
|
4982
4921
|
);
|
|
4983
4922
|
CascaderMenu.displayName = "CascaderMenu";
|
|
4984
4923
|
var CascaderColumn = forwardRef26(
|
|
@@ -4992,14 +4931,14 @@ var CascaderColumn = forwardRef26(
|
|
|
4992
4931
|
width: exitLayout.width,
|
|
4993
4932
|
zIndex: 0
|
|
4994
4933
|
} : void 0;
|
|
4995
|
-
return /* @__PURE__ */
|
|
4934
|
+
return /* @__PURE__ */ jsx33(
|
|
4996
4935
|
"div",
|
|
4997
4936
|
{
|
|
4998
4937
|
ref,
|
|
4999
4938
|
className: cn("aviala-cascader-column", className),
|
|
5000
4939
|
"data-animate": animate,
|
|
5001
4940
|
style: exitStyle,
|
|
5002
|
-
children: /* @__PURE__ */
|
|
4941
|
+
children: /* @__PURE__ */ jsx33("div", { className: "aviala-cascader-column__surface", "data-animate": animate, children })
|
|
5003
4942
|
}
|
|
5004
4943
|
);
|
|
5005
4944
|
}
|
|
@@ -5012,9 +4951,9 @@ function CascaderItemGroup({
|
|
|
5012
4951
|
className
|
|
5013
4952
|
}) {
|
|
5014
4953
|
return /* @__PURE__ */ jsxs24("div", { className: cn("aviala-cascader-group", className), children: [
|
|
5015
|
-
label ? /* @__PURE__ */
|
|
5016
|
-
/* @__PURE__ */
|
|
5017
|
-
showDivider ? /* @__PURE__ */
|
|
4954
|
+
label ? /* @__PURE__ */ jsx33("div", { className: cn("aviala-cascader-label", typographyVariants({ level: "caption" })), children: label }) : null,
|
|
4955
|
+
/* @__PURE__ */ jsx33("div", { className: "aviala-cascader-group__slot", children }),
|
|
4956
|
+
showDivider ? /* @__PURE__ */ jsx33("div", { className: "aviala-cascader-separator", role: "separator" }) : null
|
|
5018
4957
|
] });
|
|
5019
4958
|
}
|
|
5020
4959
|
var CascaderItem = forwardRef26(
|
|
@@ -5107,10 +5046,10 @@ var CascaderItem = forwardRef26(
|
|
|
5107
5046
|
if (!isTitle) setHighlightedValue(value);
|
|
5108
5047
|
},
|
|
5109
5048
|
children: [
|
|
5110
|
-
isFormLeading && itemFunction === "form-radio" ? /* @__PURE__ */
|
|
5111
|
-
isFormLeading && itemFunction === "form-checkbox" ? /* @__PURE__ */
|
|
5049
|
+
isFormLeading && itemFunction === "form-radio" ? /* @__PURE__ */ jsx33(CascaderItemFormRadio, {}) : null,
|
|
5050
|
+
isFormLeading && itemFunction === "form-checkbox" ? /* @__PURE__ */ jsx33(CascaderItemFormCheckbox, {}) : null,
|
|
5112
5051
|
showLeftIcon && leftIcon ? renderItemIcon2(leftIcon, leftIconLevel, "cascader.content.item.icon-left") : null,
|
|
5113
|
-
/* @__PURE__ */
|
|
5052
|
+
/* @__PURE__ */ jsx33("span", { className: cn("aviala-cascader-item__text", typographyVariants({ level: isTitle ? "caption" : "text" })), children: children ?? option?.label }),
|
|
5114
5053
|
showBadge ? renderBadgeSlot2(badge ?? "Text") : null,
|
|
5115
5054
|
showRightIcon && rightIcon ? renderItemIcon2(rightIcon, leftIconLevel) : null,
|
|
5116
5055
|
renderFunctionSlot2(
|
|
@@ -5235,7 +5174,7 @@ function CascaderOptionsMenu({ className }) {
|
|
|
5235
5174
|
}, COLUMN_ANIMATION_MS);
|
|
5236
5175
|
return () => window.clearTimeout(timeout);
|
|
5237
5176
|
}, [columns, open]);
|
|
5238
|
-
return /* @__PURE__ */
|
|
5177
|
+
return /* @__PURE__ */ jsx33(CascaderMenu, { ref: menuRef, className, children: columns.map(({ pathPrefix, key, animateEnter, animateExit, exitLayout }) => /* @__PURE__ */ jsx33(
|
|
5239
5178
|
CascaderColumn,
|
|
5240
5179
|
{
|
|
5241
5180
|
ref: (element) => {
|
|
@@ -5248,7 +5187,7 @@ function CascaderOptionsMenu({ className }) {
|
|
|
5248
5187
|
animateEnter,
|
|
5249
5188
|
animateExit,
|
|
5250
5189
|
exitLayout,
|
|
5251
|
-
children: /* @__PURE__ */
|
|
5190
|
+
children: /* @__PURE__ */ jsx33(CascaderItemGroup, { label: "Title", showDivider: true, children: getOptionsAtPath2(pathPrefix).map((option) => /* @__PURE__ */ jsx33(
|
|
5252
5191
|
CascaderItem,
|
|
5253
5192
|
{
|
|
5254
5193
|
value: option.value,
|
|
@@ -5301,7 +5240,7 @@ function CascaderField({
|
|
|
5301
5240
|
changeOnSelect,
|
|
5302
5241
|
className,
|
|
5303
5242
|
children: [
|
|
5304
|
-
/* @__PURE__ */
|
|
5243
|
+
/* @__PURE__ */ jsx33(
|
|
5305
5244
|
CascaderTrigger,
|
|
5306
5245
|
{
|
|
5307
5246
|
size,
|
|
@@ -5315,7 +5254,7 @@ function CascaderField({
|
|
|
5315
5254
|
...triggerProps
|
|
5316
5255
|
}
|
|
5317
5256
|
),
|
|
5318
|
-
/* @__PURE__ */
|
|
5257
|
+
/* @__PURE__ */ jsx33(CascaderContent, { className: contentClassName, children: /* @__PURE__ */ jsx33(CascaderOptionsMenu, { className: menuClassName }) })
|
|
5319
5258
|
]
|
|
5320
5259
|
}
|
|
5321
5260
|
);
|
|
@@ -5342,13 +5281,13 @@ import {
|
|
|
5342
5281
|
|
|
5343
5282
|
// src/components/date-picker/date-picker-context.tsx
|
|
5344
5283
|
import { createContext as createContext6, useContext as useContext6 } from "react";
|
|
5345
|
-
import { jsx as
|
|
5284
|
+
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
5346
5285
|
var DatePickerContext = createContext6(null);
|
|
5347
5286
|
function DatePickerProvider({
|
|
5348
5287
|
value,
|
|
5349
5288
|
children
|
|
5350
5289
|
}) {
|
|
5351
|
-
return /* @__PURE__ */
|
|
5290
|
+
return /* @__PURE__ */ jsx34(DatePickerContext.Provider, { value, children });
|
|
5352
5291
|
}
|
|
5353
5292
|
function useDatePickerContext() {
|
|
5354
5293
|
const context = useContext6(DatePickerContext);
|
|
@@ -5575,7 +5514,7 @@ function stickyRoundIndex(fractionalIndex, stickiness = WHEEL_STICKY_AMOUNT) {
|
|
|
5575
5514
|
}
|
|
5576
5515
|
|
|
5577
5516
|
// src/components/date-picker/date-picker-time-wheel.tsx
|
|
5578
|
-
import { jsx as
|
|
5517
|
+
import { jsx as jsx35, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
5579
5518
|
var LOOP_SECTIONS = 3;
|
|
5580
5519
|
var MIDDLE_SECTION = 1;
|
|
5581
5520
|
function formatWheelValue(value) {
|
|
@@ -5816,22 +5755,22 @@ function DatePickerTimeWheelColumn({
|
|
|
5816
5755
|
};
|
|
5817
5756
|
const selectedOptionId = loop ? `${ariaLabel}-${value}-${values.length * MIDDLE_SECTION + getValueIndex(values, value)}` : `${ariaLabel}-${value}`;
|
|
5818
5757
|
return /* @__PURE__ */ jsxs25("div", { className: cn("aviala-datepicker-time__wheel", className), children: [
|
|
5819
|
-
/* @__PURE__ */
|
|
5820
|
-
/* @__PURE__ */
|
|
5758
|
+
/* @__PURE__ */ jsx35("div", { className: "aviala-datepicker-time__wheel-highlight", "aria-hidden": true }),
|
|
5759
|
+
/* @__PURE__ */ jsx35(
|
|
5821
5760
|
"div",
|
|
5822
5761
|
{
|
|
5823
5762
|
className: "aviala-datepicker-time__wheel-fade aviala-datepicker-time__wheel-fade--top",
|
|
5824
5763
|
"aria-hidden": true
|
|
5825
5764
|
}
|
|
5826
5765
|
),
|
|
5827
|
-
/* @__PURE__ */
|
|
5766
|
+
/* @__PURE__ */ jsx35(
|
|
5828
5767
|
"div",
|
|
5829
5768
|
{
|
|
5830
5769
|
className: "aviala-datepicker-time__wheel-fade aviala-datepicker-time__wheel-fade--bottom",
|
|
5831
5770
|
"aria-hidden": true
|
|
5832
5771
|
}
|
|
5833
5772
|
),
|
|
5834
|
-
/* @__PURE__ */
|
|
5773
|
+
/* @__PURE__ */ jsx35(
|
|
5835
5774
|
"div",
|
|
5836
5775
|
{
|
|
5837
5776
|
ref: scrollRef,
|
|
@@ -5842,17 +5781,17 @@ function DatePickerTimeWheelColumn({
|
|
|
5842
5781
|
"aria-activedescendant": selectedOptionId,
|
|
5843
5782
|
tabIndex: 0,
|
|
5844
5783
|
onKeyDown: handleKeyDown,
|
|
5845
|
-
children: /* @__PURE__ */
|
|
5784
|
+
children: /* @__PURE__ */ jsx35("ul", { className: "aviala-datepicker-time__wheel-list", children: repeatedValues.map((itemValue, index) => {
|
|
5846
5785
|
const isSelected = itemValue === value;
|
|
5847
5786
|
const optionId = loop ? `${ariaLabel}-${itemValue}-${index}` : `${ariaLabel}-${itemValue}`;
|
|
5848
|
-
return /* @__PURE__ */
|
|
5787
|
+
return /* @__PURE__ */ jsx35(
|
|
5849
5788
|
"li",
|
|
5850
5789
|
{
|
|
5851
5790
|
id: optionId,
|
|
5852
5791
|
className: "aviala-datepicker-time__wheel-item",
|
|
5853
5792
|
role: "option",
|
|
5854
5793
|
"aria-selected": isSelected,
|
|
5855
|
-
children: /* @__PURE__ */
|
|
5794
|
+
children: /* @__PURE__ */ jsx35(
|
|
5856
5795
|
"button",
|
|
5857
5796
|
{
|
|
5858
5797
|
type: "button",
|
|
@@ -5881,7 +5820,7 @@ function DatePickerTimeWheelColumn({
|
|
|
5881
5820
|
}
|
|
5882
5821
|
|
|
5883
5822
|
// src/components/date-picker/date-picker-month-wheels.tsx
|
|
5884
|
-
import { jsx as
|
|
5823
|
+
import { jsx as jsx36, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
5885
5824
|
var MONTH_VALUES = Array.from({ length: 12 }, (_, index) => index + 1);
|
|
5886
5825
|
function formatYearValue(value) {
|
|
5887
5826
|
return String(value);
|
|
@@ -5906,14 +5845,14 @@ function DatePickerMonthYearWheels({
|
|
|
5906
5845
|
const setYearMonth = (nextYear, nextMonth) => {
|
|
5907
5846
|
setViewMonth(new Date(nextYear, nextMonth - 1, 1));
|
|
5908
5847
|
};
|
|
5909
|
-
return /* @__PURE__ */
|
|
5848
|
+
return /* @__PURE__ */ jsx36(
|
|
5910
5849
|
"div",
|
|
5911
5850
|
{
|
|
5912
5851
|
className: cn("aviala-datepicker-month", className),
|
|
5913
5852
|
role: "group",
|
|
5914
5853
|
"aria-label": "\u9009\u62E9\u5E74\u6708",
|
|
5915
5854
|
children: /* @__PURE__ */ jsxs26("div", { className: "aviala-datepicker-month__columns", children: [
|
|
5916
|
-
/* @__PURE__ */
|
|
5855
|
+
/* @__PURE__ */ jsx36(
|
|
5917
5856
|
DatePickerTimeWheelColumn,
|
|
5918
5857
|
{
|
|
5919
5858
|
"aria-label": "\u5E74",
|
|
@@ -5925,7 +5864,7 @@ function DatePickerMonthYearWheels({
|
|
|
5925
5864
|
onChange: (nextYear) => setYearMonth(nextYear, month)
|
|
5926
5865
|
}
|
|
5927
5866
|
),
|
|
5928
|
-
/* @__PURE__ */
|
|
5867
|
+
/* @__PURE__ */ jsx36(
|
|
5929
5868
|
DatePickerTimeWheelColumn,
|
|
5930
5869
|
{
|
|
5931
5870
|
"aria-label": "\u6708",
|
|
@@ -5943,12 +5882,12 @@ function DatePickerMonthYearWheels({
|
|
|
5943
5882
|
}
|
|
5944
5883
|
|
|
5945
5884
|
// src/components/time-picker/time-picker-wheels.tsx
|
|
5946
|
-
import { jsx as
|
|
5885
|
+
import { jsx as jsx37, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
5947
5886
|
var TIME_PICKER_HOUR_VALUES = Array.from({ length: 24 }, (_, index) => index);
|
|
5948
5887
|
var TIME_PICKER_MINUTE_VALUES = Array.from({ length: 12 }, (_, index) => index * 5);
|
|
5949
5888
|
function TimePickerWheels({ value, onChange, className }) {
|
|
5950
|
-
return /* @__PURE__ */
|
|
5951
|
-
/* @__PURE__ */
|
|
5889
|
+
return /* @__PURE__ */ jsx37("div", { className: cn("aviala-datepicker-time", className), role: "group", "aria-label": "\u9009\u62E9\u65F6\u95F4", children: /* @__PURE__ */ jsxs27("div", { className: "aviala-datepicker-time__columns", children: [
|
|
5890
|
+
/* @__PURE__ */ jsx37(
|
|
5952
5891
|
DatePickerTimeWheelColumn,
|
|
5953
5892
|
{
|
|
5954
5893
|
"aria-label": "\u5C0F\u65F6",
|
|
@@ -5957,7 +5896,7 @@ function TimePickerWheels({ value, onChange, className }) {
|
|
|
5957
5896
|
onChange: (hours) => onChange({ ...value, hours })
|
|
5958
5897
|
}
|
|
5959
5898
|
),
|
|
5960
|
-
/* @__PURE__ */
|
|
5899
|
+
/* @__PURE__ */ jsx37(
|
|
5961
5900
|
DatePickerTimeWheelColumn,
|
|
5962
5901
|
{
|
|
5963
5902
|
"aria-label": "\u5206\u949F",
|
|
@@ -5970,22 +5909,7 @@ function TimePickerWheels({ value, onChange, className }) {
|
|
|
5970
5909
|
}
|
|
5971
5910
|
|
|
5972
5911
|
// src/components/date-picker/date-picker.tsx
|
|
5973
|
-
import { Fragment as Fragment4, jsx as
|
|
5974
|
-
function renderSlotIcon6(node) {
|
|
5975
|
-
if (!node) return null;
|
|
5976
|
-
const content = cloneAvialaIconElement(node, {
|
|
5977
|
-
level: "text",
|
|
5978
|
-
biggerSize: true
|
|
5979
|
-
});
|
|
5980
|
-
return /* @__PURE__ */ jsx37(
|
|
5981
|
-
"span",
|
|
5982
|
-
{
|
|
5983
|
-
className: "aviala-datepicker-trigger__slot",
|
|
5984
|
-
style: iconSlotCssVarStyle(node, "--input-slot-icon-size", "text", true),
|
|
5985
|
-
children: content
|
|
5986
|
-
}
|
|
5987
|
-
);
|
|
5988
|
-
}
|
|
5912
|
+
import { Fragment as Fragment4, jsx as jsx38, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
5989
5913
|
function getInitialViewMonth(mode, singleValue, rangeValue) {
|
|
5990
5914
|
if (mode === "single" && singleValue) return startOfDay(singleValue);
|
|
5991
5915
|
if (mode === "range") {
|
|
@@ -6309,7 +6233,7 @@ function DatePicker(props) {
|
|
|
6309
6233
|
viewMonth
|
|
6310
6234
|
]
|
|
6311
6235
|
);
|
|
6312
|
-
return /* @__PURE__ */
|
|
6236
|
+
return /* @__PURE__ */ jsx38(DatePickerProvider, { value: contextValue, children: /* @__PURE__ */ jsx38(PopoverPrimitive4.Root, { open, onOpenChange: handleOpenChange, modal: false, children: /* @__PURE__ */ jsx38("div", { className: cn("inline-flex", className), children }) }) });
|
|
6313
6237
|
}
|
|
6314
6238
|
function formatTriggerValue(mode, singleValue, rangeValue, enableTime, timeValue, rangeSeparator) {
|
|
6315
6239
|
if (mode === "single") {
|
|
@@ -6401,7 +6325,7 @@ var DatePickerTrigger = forwardRef27(
|
|
|
6401
6325
|
const showEditableInput = editable && displayValue == null;
|
|
6402
6326
|
if (!showEditableInput) {
|
|
6403
6327
|
const hasValue = formatted != null && formatted !== false;
|
|
6404
|
-
return /* @__PURE__ */
|
|
6328
|
+
return /* @__PURE__ */ jsx38(PopoverPrimitive4.Trigger, { asChild: true, children: /* @__PURE__ */ jsxs28(
|
|
6405
6329
|
"button",
|
|
6406
6330
|
{
|
|
6407
6331
|
type: "button",
|
|
@@ -6414,10 +6338,11 @@ var DatePickerTrigger = forwardRef27(
|
|
|
6414
6338
|
"aria-expanded": open,
|
|
6415
6339
|
"aria-haspopup": "dialog",
|
|
6416
6340
|
children: [
|
|
6417
|
-
|
|
6418
|
-
leftIcon ?? /* @__PURE__ */
|
|
6341
|
+
renderSlotIcon(
|
|
6342
|
+
leftIcon ?? /* @__PURE__ */ jsx38(TimeAndDateDate, { level: "text", biggerSize: true, "aria-hidden": true }),
|
|
6343
|
+
"aviala-datepicker-trigger__slot"
|
|
6419
6344
|
),
|
|
6420
|
-
/* @__PURE__ */
|
|
6345
|
+
/* @__PURE__ */ jsx38("span", { className: "aviala-datepicker-trigger__field", children: /* @__PURE__ */ jsx38(
|
|
6421
6346
|
"span",
|
|
6422
6347
|
{
|
|
6423
6348
|
className: cn(
|
|
@@ -6428,12 +6353,12 @@ var DatePickerTrigger = forwardRef27(
|
|
|
6428
6353
|
children: hasValue ? formatted : emptyPlaceholder
|
|
6429
6354
|
}
|
|
6430
6355
|
) }),
|
|
6431
|
-
|
|
6356
|
+
renderSlotIcon(rightIcon, "aviala-datepicker-trigger__slot")
|
|
6432
6357
|
]
|
|
6433
6358
|
}
|
|
6434
6359
|
) });
|
|
6435
6360
|
}
|
|
6436
|
-
return /* @__PURE__ */
|
|
6361
|
+
return /* @__PURE__ */ jsx38(PopoverPrimitive4.Anchor, { asChild: true, children: /* @__PURE__ */ jsxs28(
|
|
6437
6362
|
"div",
|
|
6438
6363
|
{
|
|
6439
6364
|
className: cn("aviala-datepicker-trigger aviala-focus-ring", className),
|
|
@@ -6450,10 +6375,11 @@ var DatePickerTrigger = forwardRef27(
|
|
|
6450
6375
|
openPicker();
|
|
6451
6376
|
},
|
|
6452
6377
|
children: [
|
|
6453
|
-
|
|
6454
|
-
leftIcon ?? /* @__PURE__ */
|
|
6378
|
+
renderSlotIcon(
|
|
6379
|
+
leftIcon ?? /* @__PURE__ */ jsx38(TimeAndDateDate, { level: "text", biggerSize: true, "aria-hidden": true }),
|
|
6380
|
+
"aviala-datepicker-trigger__slot"
|
|
6455
6381
|
),
|
|
6456
|
-
/* @__PURE__ */
|
|
6382
|
+
/* @__PURE__ */ jsx38("span", { className: "aviala-datepicker-trigger__field", children: /* @__PURE__ */ jsx38(
|
|
6457
6383
|
"input",
|
|
6458
6384
|
{
|
|
6459
6385
|
ref: setInputRefs,
|
|
@@ -6473,93 +6399,10 @@ var DatePickerTrigger = forwardRef27(
|
|
|
6473
6399
|
onFocus: (event) => {
|
|
6474
6400
|
editingRef.current = true;
|
|
6475
6401
|
openPicker();
|
|
6476
|
-
{
|
|
6477
|
-
const inputEl = event.currentTarget;
|
|
6478
|
-
const logTriggerStyles = (phase) => {
|
|
6479
|
-
const trigger = inputEl.closest(
|
|
6480
|
-
".aviala-datepicker-trigger"
|
|
6481
|
-
);
|
|
6482
|
-
const cs = trigger ? getComputedStyle(trigger) : null;
|
|
6483
|
-
fetch(
|
|
6484
|
-
"http://127.0.0.1:7374/ingest/ad1201c6-cfe5-466e-96ed-49d0c8840eda",
|
|
6485
|
-
{
|
|
6486
|
-
method: "POST",
|
|
6487
|
-
headers: {
|
|
6488
|
-
"Content-Type": "application/json",
|
|
6489
|
-
"X-Debug-Session-Id": "0f383b"
|
|
6490
|
-
},
|
|
6491
|
-
body: JSON.stringify({
|
|
6492
|
-
sessionId: "0f383b",
|
|
6493
|
-
runId: "pre-fix",
|
|
6494
|
-
hypothesisId: "A-E",
|
|
6495
|
-
location: "date-picker.tsx:DatePickerTrigger.onFocus",
|
|
6496
|
-
message: `trigger styles on input focus (${phase})`,
|
|
6497
|
-
data: {
|
|
6498
|
-
phase,
|
|
6499
|
-
openProp: open,
|
|
6500
|
-
dataState: trigger?.getAttribute("data-state"),
|
|
6501
|
-
matchesFocusWithin: trigger?.matches(":focus-within") ?? null,
|
|
6502
|
-
matchesFocusVisible: trigger?.matches(":focus-visible") ?? null,
|
|
6503
|
-
hasFocusRingClass: trigger?.classList.contains("aviala-focus-ring") ?? null,
|
|
6504
|
-
kbdAttr: document.documentElement.hasAttribute(
|
|
6505
|
-
"data-aviala-kbd"
|
|
6506
|
-
),
|
|
6507
|
-
bg: cs?.backgroundColor ?? null,
|
|
6508
|
-
boxShadow: cs?.boxShadow ?? null,
|
|
6509
|
-
borderColor: cs?.borderColor ?? null,
|
|
6510
|
-
borderWidth: cs?.borderWidth ?? null,
|
|
6511
|
-
activeTag: document.activeElement?.tagName ?? null,
|
|
6512
|
-
activeClass: document.activeElement?.className ?? null
|
|
6513
|
-
},
|
|
6514
|
-
timestamp: Date.now()
|
|
6515
|
-
})
|
|
6516
|
-
}
|
|
6517
|
-
).catch(() => {
|
|
6518
|
-
});
|
|
6519
|
-
};
|
|
6520
|
-
logTriggerStyles("sync");
|
|
6521
|
-
requestAnimationFrame(() => logTriggerStyles("raf"));
|
|
6522
|
-
}
|
|
6523
6402
|
onFocus?.(event);
|
|
6524
6403
|
},
|
|
6525
6404
|
onBlur: (event) => {
|
|
6526
6405
|
editingRef.current = false;
|
|
6527
|
-
{
|
|
6528
|
-
const trigger = event.currentTarget.closest(
|
|
6529
|
-
".aviala-datepicker-trigger"
|
|
6530
|
-
);
|
|
6531
|
-
const cs = trigger ? getComputedStyle(trigger) : null;
|
|
6532
|
-
fetch(
|
|
6533
|
-
"http://127.0.0.1:7374/ingest/ad1201c6-cfe5-466e-96ed-49d0c8840eda",
|
|
6534
|
-
{
|
|
6535
|
-
method: "POST",
|
|
6536
|
-
headers: {
|
|
6537
|
-
"Content-Type": "application/json",
|
|
6538
|
-
"X-Debug-Session-Id": "0f383b"
|
|
6539
|
-
},
|
|
6540
|
-
body: JSON.stringify({
|
|
6541
|
-
sessionId: "0f383b",
|
|
6542
|
-
runId: "pre-fix",
|
|
6543
|
-
hypothesisId: "A-E",
|
|
6544
|
-
location: "date-picker.tsx:DatePickerTrigger.onBlur",
|
|
6545
|
-
message: "trigger styles on input blur",
|
|
6546
|
-
data: {
|
|
6547
|
-
openProp: open,
|
|
6548
|
-
dataState: trigger?.getAttribute("data-state"),
|
|
6549
|
-
matchesFocusWithin: trigger?.matches(":focus-within") ?? null,
|
|
6550
|
-
kbdAttr: document.documentElement.hasAttribute(
|
|
6551
|
-
"data-aviala-kbd"
|
|
6552
|
-
),
|
|
6553
|
-
bg: cs?.backgroundColor ?? null,
|
|
6554
|
-
boxShadow: cs?.boxShadow ?? null,
|
|
6555
|
-
relatedTargetTag: event.relatedTarget?.tagName ?? null
|
|
6556
|
-
},
|
|
6557
|
-
timestamp: Date.now()
|
|
6558
|
-
})
|
|
6559
|
-
}
|
|
6560
|
-
).catch(() => {
|
|
6561
|
-
});
|
|
6562
|
-
}
|
|
6563
6406
|
window.setTimeout(() => {
|
|
6564
6407
|
const active = document.activeElement;
|
|
6565
6408
|
if (active?.closest(
|
|
@@ -6589,7 +6432,7 @@ var DatePickerTrigger = forwardRef27(
|
|
|
6589
6432
|
...props
|
|
6590
6433
|
}
|
|
6591
6434
|
) }),
|
|
6592
|
-
|
|
6435
|
+
renderSlotIcon(rightIcon, "aviala-datepicker-trigger__slot")
|
|
6593
6436
|
]
|
|
6594
6437
|
}
|
|
6595
6438
|
) });
|
|
@@ -6605,7 +6448,7 @@ var DatePickerContent = forwardRef27(
|
|
|
6605
6448
|
align = "start",
|
|
6606
6449
|
...props
|
|
6607
6450
|
}, ref) => {
|
|
6608
|
-
const content = /* @__PURE__ */
|
|
6451
|
+
const content = /* @__PURE__ */ jsx38(
|
|
6609
6452
|
PopoverPrimitive4.Content,
|
|
6610
6453
|
{
|
|
6611
6454
|
ref,
|
|
@@ -6613,11 +6456,11 @@ var DatePickerContent = forwardRef27(
|
|
|
6613
6456
|
sideOffset,
|
|
6614
6457
|
align,
|
|
6615
6458
|
...props,
|
|
6616
|
-
children: children ?? /* @__PURE__ */
|
|
6459
|
+
children: children ?? /* @__PURE__ */ jsx38(DatePickerCalendar, {})
|
|
6617
6460
|
}
|
|
6618
6461
|
);
|
|
6619
6462
|
if (!portalled) return content;
|
|
6620
|
-
return /* @__PURE__ */
|
|
6463
|
+
return /* @__PURE__ */ jsx38(PopoverPrimitive4.Portal, { children: content });
|
|
6621
6464
|
}
|
|
6622
6465
|
);
|
|
6623
6466
|
DatePickerContent.displayName = "DatePickerContent";
|
|
@@ -6635,7 +6478,7 @@ function getFooterDateLabel(mode, singleValue, rangeValue) {
|
|
|
6635
6478
|
}
|
|
6636
6479
|
function DatePickerTimePanel() {
|
|
6637
6480
|
const { timeValue, setTimeValue } = useDatePickerContext();
|
|
6638
|
-
return /* @__PURE__ */
|
|
6481
|
+
return /* @__PURE__ */ jsx38(TimePickerWheels, { value: timeValue, onChange: setTimeValue });
|
|
6639
6482
|
}
|
|
6640
6483
|
function DatePickerPanelFooter() {
|
|
6641
6484
|
const {
|
|
@@ -6650,7 +6493,7 @@ function DatePickerPanelFooter() {
|
|
|
6650
6493
|
if (!enableTime) return null;
|
|
6651
6494
|
const panelValue = activePanel === "time" ? "time" : "date";
|
|
6652
6495
|
const isRangeMode = mode === "range";
|
|
6653
|
-
return /* @__PURE__ */
|
|
6496
|
+
return /* @__PURE__ */ jsx38("div", { className: "aviala-datepicker-footer-wrap", children: /* @__PURE__ */ jsxs28(
|
|
6654
6497
|
SegmentatorGroup,
|
|
6655
6498
|
{
|
|
6656
6499
|
value: panelValue,
|
|
@@ -6661,20 +6504,20 @@ function DatePickerPanelFooter() {
|
|
|
6661
6504
|
"data-active-panel": activePanel,
|
|
6662
6505
|
"aria-label": "\u65E5\u671F\u4E0E\u65F6\u95F4\u5207\u6362",
|
|
6663
6506
|
children: [
|
|
6664
|
-
/* @__PURE__ */
|
|
6507
|
+
/* @__PURE__ */ jsx38(
|
|
6665
6508
|
SegmentatorItem,
|
|
6666
6509
|
{
|
|
6667
6510
|
value: "date",
|
|
6668
|
-
leftIcon: /* @__PURE__ */
|
|
6511
|
+
leftIcon: /* @__PURE__ */ jsx38(TimeAndDateDate, { level: "text", biggerSize: true, "aria-hidden": true }),
|
|
6669
6512
|
iconOnly: isRangeMode && panelValue === "time",
|
|
6670
6513
|
children: getFooterDateLabel(mode, singleValue, rangeValue)
|
|
6671
6514
|
}
|
|
6672
6515
|
),
|
|
6673
|
-
/* @__PURE__ */
|
|
6516
|
+
/* @__PURE__ */ jsx38(
|
|
6674
6517
|
SegmentatorItem,
|
|
6675
6518
|
{
|
|
6676
6519
|
value: "time",
|
|
6677
|
-
leftIcon: /* @__PURE__ */
|
|
6520
|
+
leftIcon: /* @__PURE__ */ jsx38(TimeAndDateClock, { level: "text", biggerSize: true, "aria-hidden": true }),
|
|
6678
6521
|
iconOnly: isRangeMode && panelValue === "date",
|
|
6679
6522
|
children: formatTimeValue(timeValue.hours, timeValue.minutes)
|
|
6680
6523
|
}
|
|
@@ -6843,7 +6686,7 @@ function DatePickerCalendar({ className }) {
|
|
|
6843
6686
|
};
|
|
6844
6687
|
const stepMonth = isMonthPanel ? 12 : 1;
|
|
6845
6688
|
const renderDateContent = () => /* @__PURE__ */ jsxs28(Fragment4, { children: [
|
|
6846
|
-
/* @__PURE__ */
|
|
6689
|
+
/* @__PURE__ */ jsx38("div", { className: "aviala-datepicker-calendar__weekdays", "aria-hidden": true, children: WEEKDAY_LABELS.map((label) => /* @__PURE__ */ jsx38(
|
|
6847
6690
|
"span",
|
|
6848
6691
|
{
|
|
6849
6692
|
className: cn(
|
|
@@ -6855,7 +6698,7 @@ function DatePickerCalendar({ className }) {
|
|
|
6855
6698
|
label
|
|
6856
6699
|
)) }),
|
|
6857
6700
|
/* @__PURE__ */ jsxs28("div", { className: "aviala-datepicker-calendar__grid-viewport", children: [
|
|
6858
|
-
monthSlide && outgoingDays ? /* @__PURE__ */
|
|
6701
|
+
monthSlide && outgoingDays ? /* @__PURE__ */ jsx38(
|
|
6859
6702
|
"div",
|
|
6860
6703
|
{
|
|
6861
6704
|
className: "aviala-datepicker-calendar__grid",
|
|
@@ -6864,12 +6707,12 @@ function DatePickerCalendar({ className }) {
|
|
|
6864
6707
|
"aria-hidden": true,
|
|
6865
6708
|
children: outgoingDays.map((day) => {
|
|
6866
6709
|
const outside = !isSameMonth(day, monthSlide.outgoingMonth);
|
|
6867
|
-
return /* @__PURE__ */
|
|
6710
|
+
return /* @__PURE__ */ jsx38(
|
|
6868
6711
|
"span",
|
|
6869
6712
|
{
|
|
6870
6713
|
className: "aviala-datepicker-day",
|
|
6871
6714
|
"data-outside": outside ? "true" : void 0,
|
|
6872
|
-
children: /* @__PURE__ */
|
|
6715
|
+
children: /* @__PURE__ */ jsx38(
|
|
6873
6716
|
"span",
|
|
6874
6717
|
{
|
|
6875
6718
|
className: cn(
|
|
@@ -6886,7 +6729,7 @@ function DatePickerCalendar({ className }) {
|
|
|
6886
6729
|
},
|
|
6887
6730
|
`out-${monthSlide.outgoingMonth.getFullYear()}-${monthSlide.outgoingMonth.getMonth()}`
|
|
6888
6731
|
) : null,
|
|
6889
|
-
/* @__PURE__ */
|
|
6732
|
+
/* @__PURE__ */ jsx38(
|
|
6890
6733
|
"div",
|
|
6891
6734
|
{
|
|
6892
6735
|
ref: dayGridRef,
|
|
@@ -6932,7 +6775,7 @@ function DatePickerCalendar({ className }) {
|
|
|
6932
6775
|
onFocus: () => setFocusedDay(day),
|
|
6933
6776
|
onKeyDown: (event) => handleDayKeyDown(event, day),
|
|
6934
6777
|
children: [
|
|
6935
|
-
/* @__PURE__ */
|
|
6778
|
+
/* @__PURE__ */ jsx38(
|
|
6936
6779
|
"span",
|
|
6937
6780
|
{
|
|
6938
6781
|
className: cn(
|
|
@@ -6942,7 +6785,7 @@ function DatePickerCalendar({ className }) {
|
|
|
6942
6785
|
children: day.getDate()
|
|
6943
6786
|
}
|
|
6944
6787
|
),
|
|
6945
|
-
isToday ? /* @__PURE__ */
|
|
6788
|
+
isToday ? /* @__PURE__ */ jsx38("span", { className: "aviala-datepicker-day__today-dot", "aria-hidden": true }) : null
|
|
6946
6789
|
]
|
|
6947
6790
|
},
|
|
6948
6791
|
dayKey
|
|
@@ -6953,20 +6796,20 @@ function DatePickerCalendar({ className }) {
|
|
|
6953
6796
|
)
|
|
6954
6797
|
] })
|
|
6955
6798
|
] });
|
|
6956
|
-
const renderContentView = (view) => view === "month" ? /* @__PURE__ */
|
|
6799
|
+
const renderContentView = (view) => view === "month" ? /* @__PURE__ */ jsx38(DatePickerMonthYearWheels, { layoutKey: monthWheelLayoutKey }) : renderDateContent();
|
|
6957
6800
|
const renderDatePanel = () => /* @__PURE__ */ jsxs28(Fragment4, { children: [
|
|
6958
6801
|
/* @__PURE__ */ jsxs28("div", { className: "aviala-datepicker-calendar__header", children: [
|
|
6959
|
-
/* @__PURE__ */
|
|
6802
|
+
/* @__PURE__ */ jsx38(
|
|
6960
6803
|
"button",
|
|
6961
6804
|
{
|
|
6962
6805
|
type: "button",
|
|
6963
6806
|
className: "aviala-datepicker-calendar__nav aviala-focus-ring",
|
|
6964
6807
|
"aria-label": isMonthPanel ? "Previous year" : "Previous month",
|
|
6965
6808
|
onClick: () => setViewMonth(addMonths(viewMonth, -stepMonth)),
|
|
6966
|
-
children: /* @__PURE__ */
|
|
6809
|
+
children: /* @__PURE__ */ jsx38(DirectionArrowLeft, { level: "text", biggerSize: true, "aria-hidden": true })
|
|
6967
6810
|
}
|
|
6968
6811
|
),
|
|
6969
|
-
/* @__PURE__ */
|
|
6812
|
+
/* @__PURE__ */ jsx38(
|
|
6970
6813
|
"button",
|
|
6971
6814
|
{
|
|
6972
6815
|
type: "button",
|
|
@@ -6979,7 +6822,7 @@ function DatePickerCalendar({ className }) {
|
|
|
6979
6822
|
"aria-expanded": isMonthPanel,
|
|
6980
6823
|
"aria-label": isMonthPanel ? "\u5173\u95ED\u5E74\u6708\u9009\u62E9" : "\u9009\u62E9\u5E74\u6708",
|
|
6981
6824
|
onClick: () => setActivePanel(isMonthPanel ? "date" : "month"),
|
|
6982
|
-
children: /* @__PURE__ */
|
|
6825
|
+
children: /* @__PURE__ */ jsx38(
|
|
6983
6826
|
"span",
|
|
6984
6827
|
{
|
|
6985
6828
|
className: "aviala-datepicker-calendar__title-text",
|
|
@@ -6990,19 +6833,19 @@ function DatePickerCalendar({ className }) {
|
|
|
6990
6833
|
)
|
|
6991
6834
|
}
|
|
6992
6835
|
),
|
|
6993
|
-
/* @__PURE__ */
|
|
6836
|
+
/* @__PURE__ */ jsx38(
|
|
6994
6837
|
"button",
|
|
6995
6838
|
{
|
|
6996
6839
|
type: "button",
|
|
6997
6840
|
className: "aviala-datepicker-calendar__nav aviala-focus-ring",
|
|
6998
6841
|
"aria-label": isMonthPanel ? "Next year" : "Next month",
|
|
6999
6842
|
onClick: () => setViewMonth(addMonths(viewMonth, stepMonth)),
|
|
7000
|
-
children: /* @__PURE__ */
|
|
6843
|
+
children: /* @__PURE__ */ jsx38(DirectionArrowRight2, { level: "text", biggerSize: true, "aria-hidden": true })
|
|
7001
6844
|
}
|
|
7002
6845
|
)
|
|
7003
6846
|
] }),
|
|
7004
6847
|
/* @__PURE__ */ jsxs28("div", { className: "aviala-datepicker-calendar__view-viewport", children: [
|
|
7005
|
-
viewCrossfade ? /* @__PURE__ */
|
|
6848
|
+
viewCrossfade ? /* @__PURE__ */ jsx38(
|
|
7006
6849
|
"div",
|
|
7007
6850
|
{
|
|
7008
6851
|
className: "aviala-datepicker-calendar__view",
|
|
@@ -7013,7 +6856,7 @@ function DatePickerCalendar({ className }) {
|
|
|
7013
6856
|
},
|
|
7014
6857
|
`exit-${viewCrossfade.outgoing}`
|
|
7015
6858
|
) : null,
|
|
7016
|
-
/* @__PURE__ */
|
|
6859
|
+
/* @__PURE__ */ jsx38(
|
|
7017
6860
|
"div",
|
|
7018
6861
|
{
|
|
7019
6862
|
className: "aviala-datepicker-calendar__view",
|
|
@@ -7034,7 +6877,7 @@ function DatePickerCalendar({ className }) {
|
|
|
7034
6877
|
)
|
|
7035
6878
|
] })
|
|
7036
6879
|
] });
|
|
7037
|
-
const renderPanel = (kind) => kind === "time" ? /* @__PURE__ */
|
|
6880
|
+
const renderPanel = (kind) => kind === "time" ? /* @__PURE__ */ jsx38(DatePickerTimePanel, {}) : renderDatePanel();
|
|
7038
6881
|
return /* @__PURE__ */ jsxs28(
|
|
7039
6882
|
"div",
|
|
7040
6883
|
{
|
|
@@ -7043,7 +6886,7 @@ function DatePickerCalendar({ className }) {
|
|
|
7043
6886
|
"aria-label": "Calendar",
|
|
7044
6887
|
children: [
|
|
7045
6888
|
/* @__PURE__ */ jsxs28("div", { className: "aviala-datepicker-calendar__panel-viewport", children: [
|
|
7046
|
-
panelSlide ? /* @__PURE__ */
|
|
6889
|
+
panelSlide ? /* @__PURE__ */ jsx38(
|
|
7047
6890
|
"div",
|
|
7048
6891
|
{
|
|
7049
6892
|
className: "aviala-datepicker-calendar__panel aviala-datepicker-calendar__body",
|
|
@@ -7055,7 +6898,7 @@ function DatePickerCalendar({ className }) {
|
|
|
7055
6898
|
},
|
|
7056
6899
|
`panel-exit-${panelSlide.outgoing}`
|
|
7057
6900
|
) : null,
|
|
7058
|
-
/* @__PURE__ */
|
|
6901
|
+
/* @__PURE__ */ jsx38(
|
|
7059
6902
|
"div",
|
|
7060
6903
|
{
|
|
7061
6904
|
className: "aviala-datepicker-calendar__panel aviala-datepicker-calendar__body",
|
|
@@ -7073,7 +6916,7 @@ function DatePickerCalendar({ className }) {
|
|
|
7073
6916
|
`panel-enter-${panel}`
|
|
7074
6917
|
)
|
|
7075
6918
|
] }),
|
|
7076
|
-
/* @__PURE__ */
|
|
6919
|
+
/* @__PURE__ */ jsx38(DatePickerPanelFooter, {})
|
|
7077
6920
|
]
|
|
7078
6921
|
}
|
|
7079
6922
|
);
|
|
@@ -7138,7 +6981,7 @@ function DatePickerField({
|
|
|
7138
6981
|
onTimeChange
|
|
7139
6982
|
};
|
|
7140
6983
|
return /* @__PURE__ */ jsxs28(DatePicker, { ...pickerProps, size, className, children: [
|
|
7141
|
-
/* @__PURE__ */
|
|
6984
|
+
/* @__PURE__ */ jsx38(
|
|
7142
6985
|
DatePickerTrigger,
|
|
7143
6986
|
{
|
|
7144
6987
|
size,
|
|
@@ -7152,7 +6995,7 @@ function DatePickerField({
|
|
|
7152
6995
|
editable
|
|
7153
6996
|
}
|
|
7154
6997
|
),
|
|
7155
|
-
/* @__PURE__ */
|
|
6998
|
+
/* @__PURE__ */ jsx38(DatePickerContent, { className: contentClassName, children: /* @__PURE__ */ jsx38(DatePickerCalendar, { className: calendarClassName }) })
|
|
7156
6999
|
] });
|
|
7157
7000
|
}
|
|
7158
7001
|
|
|
@@ -7170,13 +7013,13 @@ import {
|
|
|
7170
7013
|
|
|
7171
7014
|
// src/components/time-picker/time-picker-context.tsx
|
|
7172
7015
|
import { createContext as createContext7, useContext as useContext7 } from "react";
|
|
7173
|
-
import { jsx as
|
|
7016
|
+
import { jsx as jsx39 } from "react/jsx-runtime";
|
|
7174
7017
|
var TimePickerContext = createContext7(null);
|
|
7175
7018
|
function TimePickerProvider({
|
|
7176
7019
|
value,
|
|
7177
7020
|
children
|
|
7178
7021
|
}) {
|
|
7179
|
-
return /* @__PURE__ */
|
|
7022
|
+
return /* @__PURE__ */ jsx39(TimePickerContext.Provider, { value, children });
|
|
7180
7023
|
}
|
|
7181
7024
|
function useTimePickerContext() {
|
|
7182
7025
|
const context = useContext7(TimePickerContext);
|
|
@@ -7187,22 +7030,7 @@ function useTimePickerContext() {
|
|
|
7187
7030
|
}
|
|
7188
7031
|
|
|
7189
7032
|
// src/components/time-picker/time-picker.tsx
|
|
7190
|
-
import { jsx as
|
|
7191
|
-
function renderSlotIcon7(node) {
|
|
7192
|
-
if (!node) return null;
|
|
7193
|
-
const content = cloneAvialaIconElement(node, {
|
|
7194
|
-
level: "text",
|
|
7195
|
-
biggerSize: true
|
|
7196
|
-
});
|
|
7197
|
-
return /* @__PURE__ */ jsx39(
|
|
7198
|
-
"span",
|
|
7199
|
-
{
|
|
7200
|
-
className: "aviala-timepicker-trigger__slot",
|
|
7201
|
-
style: iconSlotCssVarStyle(node, "--input-slot-icon-size", "text", true),
|
|
7202
|
-
children: content
|
|
7203
|
-
}
|
|
7204
|
-
);
|
|
7205
|
-
}
|
|
7033
|
+
import { jsx as jsx40, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
7206
7034
|
function TimePicker({
|
|
7207
7035
|
children,
|
|
7208
7036
|
value: valueProp,
|
|
@@ -7275,7 +7103,7 @@ function TimePicker({
|
|
|
7275
7103
|
}),
|
|
7276
7104
|
[disabled, open, size, value, setValue]
|
|
7277
7105
|
);
|
|
7278
|
-
return /* @__PURE__ */
|
|
7106
|
+
return /* @__PURE__ */ jsx40(TimePickerProvider, { value: contextValue, children: /* @__PURE__ */ jsx40(PopoverPrimitive5.Root, { open, onOpenChange: handleOpenChange, modal: false, children: /* @__PURE__ */ jsx40("div", { className: cn("inline-flex", className), children }) }) });
|
|
7279
7107
|
}
|
|
7280
7108
|
var TimePickerTrigger = forwardRef28(
|
|
7281
7109
|
({
|
|
@@ -7295,7 +7123,7 @@ var TimePickerTrigger = forwardRef28(
|
|
|
7295
7123
|
const disabled = disabledProp ?? disabledContext;
|
|
7296
7124
|
const formatted = displayValue !== void 0 ? displayValue : formatTimeValue(value.hours, value.minutes);
|
|
7297
7125
|
const hasValue = formatted != null && formatted !== "";
|
|
7298
|
-
return /* @__PURE__ */
|
|
7126
|
+
return /* @__PURE__ */ jsx40(PopoverPrimitive5.Trigger, { asChild: true, children: /* @__PURE__ */ jsxs29(
|
|
7299
7127
|
"button",
|
|
7300
7128
|
{
|
|
7301
7129
|
ref,
|
|
@@ -7310,10 +7138,11 @@ var TimePickerTrigger = forwardRef28(
|
|
|
7310
7138
|
"aria-haspopup": "dialog",
|
|
7311
7139
|
...props,
|
|
7312
7140
|
children: [
|
|
7313
|
-
|
|
7314
|
-
leftIcon ?? /* @__PURE__ */
|
|
7141
|
+
renderSlotIcon(
|
|
7142
|
+
leftIcon ?? /* @__PURE__ */ jsx40(TimeAndDateClock2, { level: "text", biggerSize: true, "aria-hidden": true }),
|
|
7143
|
+
"aviala-timepicker-trigger__slot"
|
|
7315
7144
|
),
|
|
7316
|
-
/* @__PURE__ */
|
|
7145
|
+
/* @__PURE__ */ jsx40("span", { className: "aviala-timepicker-trigger__field", children: /* @__PURE__ */ jsx40(
|
|
7317
7146
|
"span",
|
|
7318
7147
|
{
|
|
7319
7148
|
className: cn(
|
|
@@ -7324,7 +7153,7 @@ var TimePickerTrigger = forwardRef28(
|
|
|
7324
7153
|
children: hasValue ? formatted : placeholder
|
|
7325
7154
|
}
|
|
7326
7155
|
) }),
|
|
7327
|
-
|
|
7156
|
+
renderSlotIcon(rightIcon, "aviala-timepicker-trigger__slot")
|
|
7328
7157
|
]
|
|
7329
7158
|
}
|
|
7330
7159
|
) });
|
|
@@ -7340,7 +7169,7 @@ var TimePickerContent = forwardRef28(
|
|
|
7340
7169
|
align = "start",
|
|
7341
7170
|
...props
|
|
7342
7171
|
}, ref) => {
|
|
7343
|
-
const content = /* @__PURE__ */
|
|
7172
|
+
const content = /* @__PURE__ */ jsx40(
|
|
7344
7173
|
PopoverPrimitive5.Content,
|
|
7345
7174
|
{
|
|
7346
7175
|
ref,
|
|
@@ -7348,17 +7177,17 @@ var TimePickerContent = forwardRef28(
|
|
|
7348
7177
|
sideOffset,
|
|
7349
7178
|
align,
|
|
7350
7179
|
...props,
|
|
7351
|
-
children: children ?? /* @__PURE__ */
|
|
7180
|
+
children: children ?? /* @__PURE__ */ jsx40(TimePickerPanel, {})
|
|
7352
7181
|
}
|
|
7353
7182
|
);
|
|
7354
7183
|
if (!portalled) return content;
|
|
7355
|
-
return /* @__PURE__ */
|
|
7184
|
+
return /* @__PURE__ */ jsx40(PopoverPrimitive5.Portal, { children: content });
|
|
7356
7185
|
}
|
|
7357
7186
|
);
|
|
7358
7187
|
TimePickerContent.displayName = "TimePickerContent";
|
|
7359
7188
|
function TimePickerPanel({ className }) {
|
|
7360
7189
|
const { value, setValue } = useTimePickerContext();
|
|
7361
|
-
return /* @__PURE__ */
|
|
7190
|
+
return /* @__PURE__ */ jsx40("div", { className: cn("aviala-timepicker-panel", className), role: "application", "aria-label": "Time picker", children: /* @__PURE__ */ jsx40(TimePickerWheels, { value, onChange: setValue }) });
|
|
7362
7191
|
}
|
|
7363
7192
|
function TimePickerField({
|
|
7364
7193
|
contentClassName,
|
|
@@ -7391,7 +7220,7 @@ function TimePickerField({
|
|
|
7391
7220
|
size,
|
|
7392
7221
|
className,
|
|
7393
7222
|
children: [
|
|
7394
|
-
/* @__PURE__ */
|
|
7223
|
+
/* @__PURE__ */ jsx40(
|
|
7395
7224
|
TimePickerTrigger,
|
|
7396
7225
|
{
|
|
7397
7226
|
size,
|
|
@@ -7402,7 +7231,7 @@ function TimePickerField({
|
|
|
7402
7231
|
error
|
|
7403
7232
|
}
|
|
7404
7233
|
),
|
|
7405
|
-
/* @__PURE__ */
|
|
7234
|
+
/* @__PURE__ */ jsx40(TimePickerContent, { className: contentClassName, children: /* @__PURE__ */ jsx40(TimePickerPanel, { className: panelClassName }) })
|
|
7406
7235
|
]
|
|
7407
7236
|
}
|
|
7408
7237
|
);
|
|
@@ -7417,7 +7246,7 @@ import {
|
|
|
7417
7246
|
} from "react";
|
|
7418
7247
|
|
|
7419
7248
|
// src/components/overlay-pointer.tsx
|
|
7420
|
-
import { Fragment as Fragment5, jsx as
|
|
7249
|
+
import { Fragment as Fragment5, jsx as jsx41, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
7421
7250
|
var TOOLTIP_POINTER = {
|
|
7422
7251
|
width: 14,
|
|
7423
7252
|
height: 5,
|
|
@@ -7438,7 +7267,7 @@ function OverlayPointerSvg({
|
|
|
7438
7267
|
...props
|
|
7439
7268
|
}) {
|
|
7440
7269
|
const isPopover = variant === "popover";
|
|
7441
|
-
return /* @__PURE__ */
|
|
7270
|
+
return /* @__PURE__ */ jsx41(
|
|
7442
7271
|
"svg",
|
|
7443
7272
|
{
|
|
7444
7273
|
...props,
|
|
@@ -7452,15 +7281,15 @@ function OverlayPointerSvg({
|
|
|
7452
7281
|
className,
|
|
7453
7282
|
style: { ...style, width, height },
|
|
7454
7283
|
children: isPopover ? /* @__PURE__ */ jsxs30(Fragment5, { children: [
|
|
7455
|
-
/* @__PURE__ */
|
|
7456
|
-
/* @__PURE__ */
|
|
7457
|
-
] }) : /* @__PURE__ */
|
|
7284
|
+
/* @__PURE__ */ jsx41("path", { d: path, className: "aviala-popover-content__arrow-outline" }),
|
|
7285
|
+
/* @__PURE__ */ jsx41("path", { d: path, className: "aviala-popover-content__arrow-fill" })
|
|
7286
|
+
] }) : /* @__PURE__ */ jsx41("path", { d: path })
|
|
7458
7287
|
}
|
|
7459
7288
|
);
|
|
7460
7289
|
}
|
|
7461
7290
|
|
|
7462
7291
|
// src/components/popover.tsx
|
|
7463
|
-
import { jsx as
|
|
7292
|
+
import { jsx as jsx42, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
7464
7293
|
function Popover({
|
|
7465
7294
|
open: openProp,
|
|
7466
7295
|
defaultOpen = false,
|
|
@@ -7478,7 +7307,7 @@ function Popover({
|
|
|
7478
7307
|
},
|
|
7479
7308
|
[isControlled, onOpenChange]
|
|
7480
7309
|
);
|
|
7481
|
-
return /* @__PURE__ */
|
|
7310
|
+
return /* @__PURE__ */ jsx42(
|
|
7482
7311
|
PopoverPrimitive6.Root,
|
|
7483
7312
|
{
|
|
7484
7313
|
open,
|
|
@@ -7500,8 +7329,12 @@ var PopoverContent = forwardRef29(
|
|
|
7500
7329
|
portalled = true,
|
|
7501
7330
|
showArrow = false,
|
|
7502
7331
|
flush = false,
|
|
7332
|
+
appearance = "default",
|
|
7503
7333
|
...props
|
|
7504
7334
|
}, ref) => {
|
|
7335
|
+
const isDefaultAppearance = appearance === "default";
|
|
7336
|
+
const surfaceLevel = appearance === "tooltip" ? "caption" : "text";
|
|
7337
|
+
const pointer = isDefaultAppearance ? POPOVER_POINTER : TOOLTIP_POINTER;
|
|
7505
7338
|
const content = /* @__PURE__ */ jsxs31(
|
|
7506
7339
|
PopoverPrimitive6.Content,
|
|
7507
7340
|
{
|
|
@@ -7509,31 +7342,35 @@ var PopoverContent = forwardRef29(
|
|
|
7509
7342
|
align,
|
|
7510
7343
|
sideOffset,
|
|
7511
7344
|
collisionPadding,
|
|
7345
|
+
"data-appearance": appearance,
|
|
7512
7346
|
className: cn("aviala-popover-content", className),
|
|
7513
7347
|
...props,
|
|
7514
7348
|
children: [
|
|
7515
|
-
/* @__PURE__ */
|
|
7349
|
+
/* @__PURE__ */ jsx42(
|
|
7516
7350
|
"div",
|
|
7517
7351
|
{
|
|
7518
|
-
className: cn(
|
|
7352
|
+
className: cn(
|
|
7353
|
+
"aviala-popover-content__surface",
|
|
7354
|
+
typographyVariants({ level: surfaceLevel })
|
|
7355
|
+
),
|
|
7519
7356
|
"data-flush": flush ? "true" : void 0,
|
|
7520
7357
|
children
|
|
7521
7358
|
}
|
|
7522
7359
|
),
|
|
7523
|
-
showArrow ? /* @__PURE__ */
|
|
7360
|
+
showArrow ? /* @__PURE__ */ jsx42(
|
|
7524
7361
|
PopoverPrimitive6.Arrow,
|
|
7525
7362
|
{
|
|
7526
7363
|
asChild: true,
|
|
7527
|
-
width:
|
|
7528
|
-
height:
|
|
7529
|
-
children: /* @__PURE__ */
|
|
7364
|
+
width: pointer.width,
|
|
7365
|
+
height: pointer.height,
|
|
7366
|
+
children: /* @__PURE__ */ jsx42(
|
|
7530
7367
|
OverlayPointerSvg,
|
|
7531
7368
|
{
|
|
7532
|
-
variant: "popover",
|
|
7369
|
+
variant: isDefaultAppearance ? "popover" : "default",
|
|
7533
7370
|
className: "aviala-popover-content__arrow",
|
|
7534
|
-
width:
|
|
7535
|
-
height:
|
|
7536
|
-
path:
|
|
7371
|
+
width: pointer.width,
|
|
7372
|
+
height: pointer.height,
|
|
7373
|
+
path: pointer.path
|
|
7537
7374
|
}
|
|
7538
7375
|
)
|
|
7539
7376
|
}
|
|
@@ -7542,7 +7379,7 @@ var PopoverContent = forwardRef29(
|
|
|
7542
7379
|
}
|
|
7543
7380
|
);
|
|
7544
7381
|
if (!portalled) return content;
|
|
7545
|
-
return /* @__PURE__ */
|
|
7382
|
+
return /* @__PURE__ */ jsx42(PopoverPrimitive6.Portal, { children: content });
|
|
7546
7383
|
}
|
|
7547
7384
|
);
|
|
7548
7385
|
PopoverContent.displayName = PopoverPrimitive6.Content.displayName;
|
|
@@ -7571,7 +7408,7 @@ function useCoarsePointer() {
|
|
|
7571
7408
|
}
|
|
7572
7409
|
|
|
7573
7410
|
// src/components/hover-popover.tsx
|
|
7574
|
-
import { jsx as
|
|
7411
|
+
import { jsx as jsx43, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
7575
7412
|
function HoverPopover({
|
|
7576
7413
|
content,
|
|
7577
7414
|
children,
|
|
@@ -7618,8 +7455,8 @@ function HoverPopover({
|
|
|
7618
7455
|
}, [clearTimers, closeDelay, setOpen]);
|
|
7619
7456
|
if (coarse) {
|
|
7620
7457
|
return /* @__PURE__ */ jsxs32(Popover, { open, onOpenChange: setOpen, children: [
|
|
7621
|
-
/* @__PURE__ */
|
|
7622
|
-
/* @__PURE__ */
|
|
7458
|
+
/* @__PURE__ */ jsx43(PopoverTrigger, { asChild: true, children }),
|
|
7459
|
+
/* @__PURE__ */ jsx43(
|
|
7623
7460
|
PopoverContent,
|
|
7624
7461
|
{
|
|
7625
7462
|
side,
|
|
@@ -7634,7 +7471,7 @@ function HoverPopover({
|
|
|
7634
7471
|
] });
|
|
7635
7472
|
}
|
|
7636
7473
|
return /* @__PURE__ */ jsxs32(Popover, { open, onOpenChange: setOpen, children: [
|
|
7637
|
-
/* @__PURE__ */
|
|
7474
|
+
/* @__PURE__ */ jsx43(
|
|
7638
7475
|
PopoverTrigger,
|
|
7639
7476
|
{
|
|
7640
7477
|
asChild: true,
|
|
@@ -7646,7 +7483,7 @@ function HoverPopover({
|
|
|
7646
7483
|
children
|
|
7647
7484
|
}
|
|
7648
7485
|
),
|
|
7649
|
-
/* @__PURE__ */
|
|
7486
|
+
/* @__PURE__ */ jsx43(
|
|
7650
7487
|
PopoverContent,
|
|
7651
7488
|
{
|
|
7652
7489
|
ref: contentRef,
|
|
@@ -7685,7 +7522,7 @@ import {
|
|
|
7685
7522
|
forwardRef as forwardRef30,
|
|
7686
7523
|
isValidElement as isValidElement13
|
|
7687
7524
|
} from "react";
|
|
7688
|
-
import { Fragment as Fragment6, jsx as
|
|
7525
|
+
import { Fragment as Fragment6, jsx as jsx44, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
7689
7526
|
var MODAL_ICON_SIZE = 16;
|
|
7690
7527
|
var modalContentVariants = cva10("aviala-modal-content", {
|
|
7691
7528
|
variants: {
|
|
@@ -7708,13 +7545,13 @@ function renderModalIcon(node) {
|
|
|
7708
7545
|
"shrink-0"
|
|
7709
7546
|
)
|
|
7710
7547
|
}) : node;
|
|
7711
|
-
return /* @__PURE__ */
|
|
7548
|
+
return /* @__PURE__ */ jsx44("span", { className: "aviala-modal__icon", "aria-hidden": true, children: content });
|
|
7712
7549
|
}
|
|
7713
7550
|
var Modal = DialogPrimitive.Root;
|
|
7714
7551
|
var ModalTrigger = DialogPrimitive.Trigger;
|
|
7715
7552
|
var ModalPortal = DialogPrimitive.Portal;
|
|
7716
7553
|
var ModalClose = DialogPrimitive.Close;
|
|
7717
|
-
var ModalOverlay = forwardRef30(({ className, ...props }, ref) => /* @__PURE__ */
|
|
7554
|
+
var ModalOverlay = forwardRef30(({ className, ...props }, ref) => /* @__PURE__ */ jsx44(
|
|
7718
7555
|
DialogPrimitive.Overlay,
|
|
7719
7556
|
{
|
|
7720
7557
|
ref,
|
|
@@ -7733,15 +7570,15 @@ var ModalContent = forwardRef30(
|
|
|
7733
7570
|
onOpenAutoFocus,
|
|
7734
7571
|
...props
|
|
7735
7572
|
}, ref) => {
|
|
7736
|
-
const overlay = showOverlay ? /* @__PURE__ */
|
|
7737
|
-
const panel = /* @__PURE__ */
|
|
7573
|
+
const overlay = showOverlay ? /* @__PURE__ */ jsx44(ModalOverlay, {}) : null;
|
|
7574
|
+
const panel = /* @__PURE__ */ jsx44(
|
|
7738
7575
|
DialogPrimitive.Content,
|
|
7739
7576
|
{
|
|
7740
7577
|
ref,
|
|
7741
7578
|
className: cn(modalContentVariants({ size }), className),
|
|
7742
7579
|
onOpenAutoFocus,
|
|
7743
7580
|
...props,
|
|
7744
|
-
children: /* @__PURE__ */
|
|
7581
|
+
children: /* @__PURE__ */ jsx44("div", { className: "aviala-modal-content__surface", children })
|
|
7745
7582
|
}
|
|
7746
7583
|
);
|
|
7747
7584
|
if (!portalled) {
|
|
@@ -7766,10 +7603,10 @@ var ModalHeader = forwardRef30(
|
|
|
7766
7603
|
showClose = true,
|
|
7767
7604
|
closeLabel = "Close dialog",
|
|
7768
7605
|
...props
|
|
7769
|
-
}, ref) => /* @__PURE__ */
|
|
7606
|
+
}, ref) => /* @__PURE__ */ jsx44("div", { ref, className: cn("aviala-modal__header", className), ...props, children: /* @__PURE__ */ jsxs33("div", { className: "aviala-modal__header-row", children: [
|
|
7770
7607
|
showIcon ? renderModalIcon(icon) : null,
|
|
7771
|
-
/* @__PURE__ */
|
|
7772
|
-
showClose ? /* @__PURE__ */
|
|
7608
|
+
/* @__PURE__ */ jsx44("div", { className: "aviala-modal__header-main", children }),
|
|
7609
|
+
showClose ? /* @__PURE__ */ jsx44(DialogPrimitive.Close, { asChild: true, children: /* @__PURE__ */ jsx44(
|
|
7773
7610
|
Button,
|
|
7774
7611
|
{
|
|
7775
7612
|
type: "button",
|
|
@@ -7777,28 +7614,28 @@ var ModalHeader = forwardRef30(
|
|
|
7777
7614
|
iconOnly: true,
|
|
7778
7615
|
"aria-label": closeLabel,
|
|
7779
7616
|
className: "aviala-modal__close",
|
|
7780
|
-
leftIcon: /* @__PURE__ */
|
|
7617
|
+
leftIcon: /* @__PURE__ */ jsx44(SymbolWrong2, { "aria-hidden": true })
|
|
7781
7618
|
}
|
|
7782
7619
|
) }) : null
|
|
7783
7620
|
] }) })
|
|
7784
7621
|
);
|
|
7785
7622
|
ModalHeader.displayName = "ModalHeader";
|
|
7786
|
-
var ModalTitle = forwardRef30(({ className, children, ...props }, ref) => /* @__PURE__ */
|
|
7623
|
+
var ModalTitle = forwardRef30(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx44(DialogPrimitive.Title, { ref, asChild: true, ...props, children: /* @__PURE__ */ jsx44(Typography, { level: "text", className: cn("aviala-modal__title", className), children }) }));
|
|
7787
7624
|
ModalTitle.displayName = DialogPrimitive.Title.displayName;
|
|
7788
|
-
var ModalDescription = forwardRef30(({ className, children, ...props }, ref) => /* @__PURE__ */
|
|
7625
|
+
var ModalDescription = forwardRef30(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx44(DialogPrimitive.Description, { ref, asChild: true, ...props, children: /* @__PURE__ */ jsx44(Typography, { level: "caption", className: cn("aviala-modal__description", className), children }) }));
|
|
7789
7626
|
ModalDescription.displayName = DialogPrimitive.Description.displayName;
|
|
7790
7627
|
function ModalHeaderText({
|
|
7791
7628
|
title,
|
|
7792
7629
|
description,
|
|
7793
7630
|
...props
|
|
7794
7631
|
}) {
|
|
7795
|
-
return /* @__PURE__ */
|
|
7796
|
-
/* @__PURE__ */
|
|
7797
|
-
description ? /* @__PURE__ */
|
|
7632
|
+
return /* @__PURE__ */ jsx44(ModalHeader, { ...props, children: /* @__PURE__ */ jsxs33("div", { className: "aviala-modal__header-typeface", children: [
|
|
7633
|
+
/* @__PURE__ */ jsx44(ModalTitle, { children: title }),
|
|
7634
|
+
description ? /* @__PURE__ */ jsx44(ModalDescription, { children: description }) : null
|
|
7798
7635
|
] }) });
|
|
7799
7636
|
}
|
|
7800
7637
|
var ModalBody = forwardRef30(
|
|
7801
|
-
({ className, children, layout = "default", title, description, ...props }, ref) => /* @__PURE__ */
|
|
7638
|
+
({ className, children, layout = "default", title, description, ...props }, ref) => /* @__PURE__ */ jsx44("div", { ref, className: cn("aviala-modal__body", className), ...props, children: layout === "text" ? /* @__PURE__ */ jsx44(
|
|
7802
7639
|
Typeface,
|
|
7803
7640
|
{
|
|
7804
7641
|
className: "aviala-modal__body-typeface",
|
|
@@ -7810,21 +7647,21 @@ var ModalBody = forwardRef30(
|
|
|
7810
7647
|
);
|
|
7811
7648
|
ModalBody.displayName = "ModalBody";
|
|
7812
7649
|
var ModalFooter = forwardRef30(
|
|
7813
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
7650
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx44("div", { ref, className: cn("aviala-modal__footer", className), ...props })
|
|
7814
7651
|
);
|
|
7815
7652
|
ModalFooter.displayName = "ModalFooter";
|
|
7816
7653
|
|
|
7817
7654
|
// src/components/tooltip.tsx
|
|
7818
7655
|
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
7819
7656
|
import { forwardRef as forwardRef31 } from "react";
|
|
7820
|
-
import { jsx as
|
|
7657
|
+
import { jsx as jsx45, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
7821
7658
|
var TOOLTIP_DELAY_DURATION = 300;
|
|
7822
7659
|
function TooltipProvider({
|
|
7823
7660
|
delayDuration = TOOLTIP_DELAY_DURATION,
|
|
7824
7661
|
skipDelayDuration = 0,
|
|
7825
7662
|
...props
|
|
7826
7663
|
}) {
|
|
7827
|
-
return /* @__PURE__ */
|
|
7664
|
+
return /* @__PURE__ */ jsx45(
|
|
7828
7665
|
TooltipPrimitive.Provider,
|
|
7829
7666
|
{
|
|
7830
7667
|
delayDuration,
|
|
@@ -7843,7 +7680,7 @@ var TooltipContent = forwardRef31(
|
|
|
7843
7680
|
collisionPadding = 8,
|
|
7844
7681
|
showArrow = true,
|
|
7845
7682
|
...props
|
|
7846
|
-
}, ref) => /* @__PURE__ */
|
|
7683
|
+
}, ref) => /* @__PURE__ */ jsx45(TooltipPrimitive.Portal, { children: /* @__PURE__ */ jsxs34(
|
|
7847
7684
|
TooltipPrimitive.Content,
|
|
7848
7685
|
{
|
|
7849
7686
|
ref,
|
|
@@ -7852,14 +7689,14 @@ var TooltipContent = forwardRef31(
|
|
|
7852
7689
|
className: cn("aviala-tooltip-content", className),
|
|
7853
7690
|
...props,
|
|
7854
7691
|
children: [
|
|
7855
|
-
/* @__PURE__ */
|
|
7856
|
-
showArrow ? /* @__PURE__ */
|
|
7692
|
+
/* @__PURE__ */ jsx45("div", { className: cn("aviala-tooltip-content__surface", typographyVariants({ level: "caption" })), children }),
|
|
7693
|
+
showArrow ? /* @__PURE__ */ jsx45(
|
|
7857
7694
|
TooltipPrimitive.Arrow,
|
|
7858
7695
|
{
|
|
7859
7696
|
asChild: true,
|
|
7860
7697
|
width: TOOLTIP_POINTER.width,
|
|
7861
7698
|
height: TOOLTIP_POINTER.height,
|
|
7862
|
-
children: /* @__PURE__ */
|
|
7699
|
+
children: /* @__PURE__ */ jsx45(
|
|
7863
7700
|
OverlayPointerSvg,
|
|
7864
7701
|
{
|
|
7865
7702
|
className: "aviala-tooltip-content__arrow",
|
|
@@ -7877,7 +7714,7 @@ var TooltipContent = forwardRef31(
|
|
|
7877
7714
|
TooltipContent.displayName = TooltipPrimitive.Content.displayName;
|
|
7878
7715
|
|
|
7879
7716
|
// src/components/responsive-tooltip.tsx
|
|
7880
|
-
import { jsx as
|
|
7717
|
+
import { jsx as jsx46, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
7881
7718
|
function ResponsiveTooltip({
|
|
7882
7719
|
content,
|
|
7883
7720
|
children,
|
|
@@ -7895,10 +7732,11 @@ function ResponsiveTooltip({
|
|
|
7895
7732
|
const coarse = useCoarsePointer();
|
|
7896
7733
|
if (coarse) {
|
|
7897
7734
|
return /* @__PURE__ */ jsxs35(Popover, { open, defaultOpen, onOpenChange, children: [
|
|
7898
|
-
/* @__PURE__ */
|
|
7899
|
-
/* @__PURE__ */
|
|
7735
|
+
/* @__PURE__ */ jsx46(PopoverTrigger, { asChild: true, children }),
|
|
7736
|
+
/* @__PURE__ */ jsx46(
|
|
7900
7737
|
PopoverContent,
|
|
7901
7738
|
{
|
|
7739
|
+
appearance: "tooltip",
|
|
7902
7740
|
side,
|
|
7903
7741
|
align,
|
|
7904
7742
|
sideOffset,
|
|
@@ -7918,8 +7756,8 @@ function ResponsiveTooltip({
|
|
|
7918
7756
|
defaultOpen,
|
|
7919
7757
|
onOpenChange,
|
|
7920
7758
|
children: [
|
|
7921
|
-
/* @__PURE__ */
|
|
7922
|
-
/* @__PURE__ */
|
|
7759
|
+
/* @__PURE__ */ jsx46(TooltipTrigger, { asChild: true, children }),
|
|
7760
|
+
/* @__PURE__ */ jsx46(
|
|
7923
7761
|
TooltipContent,
|
|
7924
7762
|
{
|
|
7925
7763
|
side,
|
|
@@ -7951,7 +7789,7 @@ import {
|
|
|
7951
7789
|
forwardRef as forwardRef32,
|
|
7952
7790
|
isValidElement as isValidElement14
|
|
7953
7791
|
} from "react";
|
|
7954
|
-
import { jsx as
|
|
7792
|
+
import { jsx as jsx47, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
7955
7793
|
var FEEDBACK_ICON_SIZE = 22;
|
|
7956
7794
|
var feedbackVariants = cva11("aviala-feedback", {
|
|
7957
7795
|
variants: {
|
|
@@ -7987,22 +7825,22 @@ function renderFeedbackIcon(node) {
|
|
|
7987
7825
|
"shrink-0"
|
|
7988
7826
|
)
|
|
7989
7827
|
}) : node;
|
|
7990
|
-
return /* @__PURE__ */
|
|
7828
|
+
return /* @__PURE__ */ jsx47("span", { className: "aviala-feedback__icon", "aria-hidden": true, children: content });
|
|
7991
7829
|
}
|
|
7992
7830
|
function defaultStatusIcon(type, mode) {
|
|
7993
7831
|
const iconMode = mode === "primary" ? "fill" : "fill";
|
|
7994
7832
|
const thickness = "Regular";
|
|
7995
7833
|
switch (type) {
|
|
7996
7834
|
case "information":
|
|
7997
|
-
return /* @__PURE__ */
|
|
7835
|
+
return /* @__PURE__ */ jsx47(SymbolInformationCircle2, { thickness, mode: iconMode, "aria-hidden": true });
|
|
7998
7836
|
case "warning":
|
|
7999
|
-
return /* @__PURE__ */
|
|
7837
|
+
return /* @__PURE__ */ jsx47(SymbolWarningCircle, { thickness, mode: iconMode, "aria-hidden": true });
|
|
8000
7838
|
case "wrong":
|
|
8001
|
-
return /* @__PURE__ */
|
|
7839
|
+
return /* @__PURE__ */ jsx47(SymbolWrongCircle2, { thickness, mode: iconMode, "aria-hidden": true });
|
|
8002
7840
|
case "success":
|
|
8003
|
-
return /* @__PURE__ */
|
|
7841
|
+
return /* @__PURE__ */ jsx47(SymbolRightCircle, { thickness, mode: iconMode, "aria-hidden": true });
|
|
8004
7842
|
case "normal":
|
|
8005
|
-
return /* @__PURE__ */
|
|
7843
|
+
return /* @__PURE__ */ jsx47(GeneralNotification, { thickness, mode: "default", "aria-hidden": true });
|
|
8006
7844
|
}
|
|
8007
7845
|
}
|
|
8008
7846
|
var Feedback = forwardRef32(
|
|
@@ -8027,7 +7865,7 @@ var Feedback = forwardRef32(
|
|
|
8027
7865
|
const tone = mode === "primary" ? "white" : "default";
|
|
8028
7866
|
const isSmall = resolvedSize === "small";
|
|
8029
7867
|
const resolvedRole = resolvedType === "wrong" ? "alert" : "status";
|
|
8030
|
-
return /* @__PURE__ */
|
|
7868
|
+
return /* @__PURE__ */ jsx47(
|
|
8031
7869
|
"div",
|
|
8032
7870
|
{
|
|
8033
7871
|
ref,
|
|
@@ -8043,7 +7881,7 @@ var Feedback = forwardRef32(
|
|
|
8043
7881
|
...props,
|
|
8044
7882
|
children: /* @__PURE__ */ jsxs36("div", { className: "aviala-feedback__body", children: [
|
|
8045
7883
|
renderFeedbackIcon(icon ?? defaultStatusIcon(resolvedType, mode)),
|
|
8046
|
-
isSmall ? /* @__PURE__ */
|
|
7884
|
+
isSmall ? /* @__PURE__ */ jsx47(Typography, { level: "text", tone, className: "aviala-feedback__title", children: title }) : /* @__PURE__ */ jsx47(
|
|
8047
7885
|
Typeface,
|
|
8048
7886
|
{
|
|
8049
7887
|
className: "aviala-feedback__typeface",
|
|
@@ -8053,7 +7891,7 @@ var Feedback = forwardRef32(
|
|
|
8053
7891
|
tone
|
|
8054
7892
|
}
|
|
8055
7893
|
),
|
|
8056
|
-
action ? /* @__PURE__ */
|
|
7894
|
+
action ? /* @__PURE__ */ jsx47(
|
|
8057
7895
|
Link,
|
|
8058
7896
|
{
|
|
8059
7897
|
level: "text",
|
|
@@ -8069,7 +7907,7 @@ var Feedback = forwardRef32(
|
|
|
8069
7907
|
children: action
|
|
8070
7908
|
}
|
|
8071
7909
|
) : null,
|
|
8072
|
-
showClose ? /* @__PURE__ */
|
|
7910
|
+
showClose ? /* @__PURE__ */ jsx47(
|
|
8073
7911
|
Link,
|
|
8074
7912
|
{
|
|
8075
7913
|
level: "text",
|
|
@@ -8078,7 +7916,7 @@ var Feedback = forwardRef32(
|
|
|
8078
7916
|
href: onClose ? "#" : void 0,
|
|
8079
7917
|
"aria-label": closeLabel,
|
|
8080
7918
|
className: "aviala-feedback__close",
|
|
8081
|
-
leftIcon: /* @__PURE__ */
|
|
7919
|
+
leftIcon: /* @__PURE__ */ jsx47(SymbolWrong3, { "aria-hidden": true }),
|
|
8082
7920
|
onClick: (event) => {
|
|
8083
7921
|
if (onClose) {
|
|
8084
7922
|
event.preventDefault();
|
|
@@ -8108,7 +7946,7 @@ import {
|
|
|
8108
7946
|
forwardRef as forwardRef33,
|
|
8109
7947
|
isValidElement as isValidElement15
|
|
8110
7948
|
} from "react";
|
|
8111
|
-
import { jsx as
|
|
7949
|
+
import { jsx as jsx48, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
8112
7950
|
var ALERT_ICON_SIZE = 16;
|
|
8113
7951
|
var alertVariants = cva12("aviala-alert", {
|
|
8114
7952
|
variants: {
|
|
@@ -8144,20 +7982,20 @@ function renderAlertIcon(node) {
|
|
|
8144
7982
|
"shrink-0"
|
|
8145
7983
|
)
|
|
8146
7984
|
}) : node;
|
|
8147
|
-
return /* @__PURE__ */
|
|
7985
|
+
return /* @__PURE__ */ jsx48("span", { className: "aviala-alert__icon", "aria-hidden": true, children: content });
|
|
8148
7986
|
}
|
|
8149
7987
|
function defaultStatusIcon2(type) {
|
|
8150
7988
|
const iconProps = { thickness: "Regular", mode: "fill", "aria-hidden": true };
|
|
8151
7989
|
switch (type) {
|
|
8152
7990
|
case "info":
|
|
8153
7991
|
case "neutral":
|
|
8154
|
-
return /* @__PURE__ */
|
|
7992
|
+
return /* @__PURE__ */ jsx48(SymbolInformationCircle3, { ...iconProps });
|
|
8155
7993
|
case "warning":
|
|
8156
|
-
return /* @__PURE__ */
|
|
7994
|
+
return /* @__PURE__ */ jsx48(SymbolWarningCircle2, { ...iconProps });
|
|
8157
7995
|
case "error":
|
|
8158
|
-
return /* @__PURE__ */
|
|
7996
|
+
return /* @__PURE__ */ jsx48(SymbolWrongCircle3, { ...iconProps });
|
|
8159
7997
|
case "success":
|
|
8160
|
-
return /* @__PURE__ */
|
|
7998
|
+
return /* @__PURE__ */ jsx48(SymbolRightCircle2, { ...iconProps });
|
|
8161
7999
|
}
|
|
8162
8000
|
}
|
|
8163
8001
|
var Alert = forwardRef33(
|
|
@@ -8200,7 +8038,7 @@ var Alert = forwardRef33(
|
|
|
8200
8038
|
children: [
|
|
8201
8039
|
/* @__PURE__ */ jsxs37("div", { className: "aviala-alert__body", children: [
|
|
8202
8040
|
showIcon ? renderAlertIcon(icon ?? defaultStatusIcon2(resolvedType)) : null,
|
|
8203
|
-
isSmall ? /* @__PURE__ */
|
|
8041
|
+
isSmall ? /* @__PURE__ */ jsx48(Typography, { level: "text", className: "aviala-alert__title", children: title }) : /* @__PURE__ */ jsx48(
|
|
8204
8042
|
Typeface,
|
|
8205
8043
|
{
|
|
8206
8044
|
className: "aviala-alert__typeface",
|
|
@@ -8209,7 +8047,7 @@ var Alert = forwardRef33(
|
|
|
8209
8047
|
secondary: description
|
|
8210
8048
|
}
|
|
8211
8049
|
),
|
|
8212
|
-
quickAction ? /* @__PURE__ */
|
|
8050
|
+
quickAction ? /* @__PURE__ */ jsx48(
|
|
8213
8051
|
Link,
|
|
8214
8052
|
{
|
|
8215
8053
|
level: "text",
|
|
@@ -8225,7 +8063,7 @@ var Alert = forwardRef33(
|
|
|
8225
8063
|
children: quickAction
|
|
8226
8064
|
}
|
|
8227
8065
|
) : null,
|
|
8228
|
-
dismissible ? /* @__PURE__ */
|
|
8066
|
+
dismissible ? /* @__PURE__ */ jsx48(
|
|
8229
8067
|
Link,
|
|
8230
8068
|
{
|
|
8231
8069
|
level: "text",
|
|
@@ -8234,7 +8072,7 @@ var Alert = forwardRef33(
|
|
|
8234
8072
|
href: onDismiss ? "#" : void 0,
|
|
8235
8073
|
"aria-label": closeLabel,
|
|
8236
8074
|
className: "aviala-alert__close",
|
|
8237
|
-
leftIcon: /* @__PURE__ */
|
|
8075
|
+
leftIcon: /* @__PURE__ */ jsx48(SymbolWrong4, { "aria-hidden": true }),
|
|
8238
8076
|
onClick: (event) => {
|
|
8239
8077
|
if (onDismiss) {
|
|
8240
8078
|
event.preventDefault();
|
|
@@ -8245,7 +8083,7 @@ var Alert = forwardRef33(
|
|
|
8245
8083
|
) : null
|
|
8246
8084
|
] }),
|
|
8247
8085
|
hasActions ? /* @__PURE__ */ jsxs37("div", { className: "aviala-alert__actions", children: [
|
|
8248
|
-
action ? /* @__PURE__ */
|
|
8086
|
+
action ? /* @__PURE__ */ jsx48(
|
|
8249
8087
|
Link,
|
|
8250
8088
|
{
|
|
8251
8089
|
level: "caption",
|
|
@@ -8261,7 +8099,7 @@ var Alert = forwardRef33(
|
|
|
8261
8099
|
children: action
|
|
8262
8100
|
}
|
|
8263
8101
|
) : null,
|
|
8264
|
-
secondaryAction ? /* @__PURE__ */
|
|
8102
|
+
secondaryAction ? /* @__PURE__ */ jsx48(
|
|
8265
8103
|
Link,
|
|
8266
8104
|
{
|
|
8267
8105
|
level: "caption",
|
|
@@ -8295,30 +8133,30 @@ import {
|
|
|
8295
8133
|
forwardRef as forwardRef34,
|
|
8296
8134
|
isValidElement as isValidElement16
|
|
8297
8135
|
} from "react";
|
|
8298
|
-
import { jsx as
|
|
8136
|
+
import { jsx as jsx49, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
8299
8137
|
var List = forwardRef34(
|
|
8300
8138
|
({ className, title, children, ...props }, ref) => /* @__PURE__ */ jsxs38("div", { ref, className: cn("aviala-list", className), ...props, children: [
|
|
8301
|
-
title != null ? /* @__PURE__ */
|
|
8302
|
-
/* @__PURE__ */
|
|
8139
|
+
title != null ? /* @__PURE__ */ jsx49(ListTitle, { children: title }) : null,
|
|
8140
|
+
/* @__PURE__ */ jsx49(ListGroup, { children })
|
|
8303
8141
|
] })
|
|
8304
8142
|
);
|
|
8305
8143
|
List.displayName = "List";
|
|
8306
8144
|
var ListTitle = forwardRef34(
|
|
8307
|
-
({ className, children, ...props }, ref) => /* @__PURE__ */
|
|
8145
|
+
({ className, children, ...props }, ref) => /* @__PURE__ */ jsx49("div", { ref, className: cn("aviala-list-title", className), ...props, children: /* @__PURE__ */ jsx49("span", { className: cn(typographyVariants({ level: "text" })), children }) })
|
|
8308
8146
|
);
|
|
8309
8147
|
ListTitle.displayName = "ListTitle";
|
|
8310
8148
|
var ListGroup = forwardRef34(
|
|
8311
|
-
({ className, children, ...props }, ref) => /* @__PURE__ */
|
|
8149
|
+
({ className, children, ...props }, ref) => /* @__PURE__ */ jsx49("div", { ref, className: cn("aviala-list-group", className), role: "list", ...props, children })
|
|
8312
8150
|
);
|
|
8313
8151
|
ListGroup.displayName = "ListGroup";
|
|
8314
8152
|
function ListItemGroup({ label, children, className }) {
|
|
8315
8153
|
return /* @__PURE__ */ jsxs38("div", { className: cn("aviala-list", className), children: [
|
|
8316
|
-
label != null ? /* @__PURE__ */
|
|
8317
|
-
/* @__PURE__ */
|
|
8154
|
+
label != null ? /* @__PURE__ */ jsx49(ListTitle, { children: label }) : null,
|
|
8155
|
+
/* @__PURE__ */ jsx49(ListGroup, { children })
|
|
8318
8156
|
] });
|
|
8319
8157
|
}
|
|
8320
8158
|
var ListDivider = forwardRef34(
|
|
8321
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
8159
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx49(
|
|
8322
8160
|
"span",
|
|
8323
8161
|
{
|
|
8324
8162
|
ref,
|
|
@@ -8330,13 +8168,13 @@ var ListDivider = forwardRef34(
|
|
|
8330
8168
|
);
|
|
8331
8169
|
ListDivider.displayName = "ListDivider";
|
|
8332
8170
|
var ListSeparator = forwardRef34(
|
|
8333
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
8171
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx49("hr", { ref, className: cn("aviala-list-separator", className), ...props })
|
|
8334
8172
|
);
|
|
8335
8173
|
ListSeparator.displayName = "ListSeparator";
|
|
8336
8174
|
function renderLeadingIcon(node, leading) {
|
|
8337
8175
|
if (leading === "none") return null;
|
|
8338
8176
|
const iconSize = leading === "shaped" ? 20 : 22;
|
|
8339
|
-
const content = node ?? (leading === "shaped" ? /* @__PURE__ */
|
|
8177
|
+
const content = node ?? (leading === "shaped" ? /* @__PURE__ */ jsx49(GeneralSetting, { "aria-hidden": true }) : /* @__PURE__ */ jsx49(GeneralSetting, { "aria-hidden": true }));
|
|
8340
8178
|
const rendered = isValidElement16(content) && typeof content.type !== "string" ? cloneElement11(content, {
|
|
8341
8179
|
width: iconSize,
|
|
8342
8180
|
height: iconSize,
|
|
@@ -8345,7 +8183,7 @@ function renderLeadingIcon(node, leading) {
|
|
|
8345
8183
|
"shrink-0"
|
|
8346
8184
|
)
|
|
8347
8185
|
}) : content;
|
|
8348
|
-
return /* @__PURE__ */
|
|
8186
|
+
return /* @__PURE__ */ jsx49("span", { className: "aviala-list-item__icon", children: /* @__PURE__ */ jsx49(
|
|
8349
8187
|
"span",
|
|
8350
8188
|
{
|
|
8351
8189
|
className: cn(
|
|
@@ -8376,7 +8214,7 @@ var ListItem = forwardRef34(
|
|
|
8376
8214
|
...props
|
|
8377
8215
|
}, ref) => {
|
|
8378
8216
|
const isInteractive = interactive ?? onClick != null;
|
|
8379
|
-
const primaryAction = action ?? /* @__PURE__ */
|
|
8217
|
+
const primaryAction = action ?? /* @__PURE__ */ jsx49(Button, { mode: "primary", size: "regular", leftIcon: /* @__PURE__ */ jsx49(GeneralSetting, { "aria-hidden": true }), children: actionLabel });
|
|
8380
8218
|
const renderTrailing = () => {
|
|
8381
8219
|
if (trailing !== void 0) return trailing;
|
|
8382
8220
|
switch (itemType) {
|
|
@@ -8384,32 +8222,32 @@ var ListItem = forwardRef34(
|
|
|
8384
8222
|
return /* @__PURE__ */ jsxs38("div", { className: "aviala-list-item__more", children: [
|
|
8385
8223
|
/* @__PURE__ */ jsxs38("div", { className: "aviala-list-item__trailing", children: [
|
|
8386
8224
|
primaryAction,
|
|
8387
|
-
secondaryAction ?? /* @__PURE__ */
|
|
8225
|
+
secondaryAction ?? /* @__PURE__ */ jsx49(
|
|
8388
8226
|
Button,
|
|
8389
8227
|
{
|
|
8390
8228
|
mode: "default",
|
|
8391
8229
|
size: "regular",
|
|
8392
8230
|
iconOnly: true,
|
|
8393
8231
|
"aria-label": "More",
|
|
8394
|
-
leftIcon: /* @__PURE__ */
|
|
8232
|
+
leftIcon: /* @__PURE__ */ jsx49(GeneralSetting, { "aria-hidden": true })
|
|
8395
8233
|
}
|
|
8396
8234
|
)
|
|
8397
8235
|
] }),
|
|
8398
|
-
/* @__PURE__ */
|
|
8399
|
-
/* @__PURE__ */
|
|
8236
|
+
/* @__PURE__ */ jsx49(ListDivider, {}),
|
|
8237
|
+
/* @__PURE__ */ jsx49("span", { className: "aviala-list-item__chevron", "aria-hidden": true, children: /* @__PURE__ */ jsx49(DirectionArrowRightLight2, { width: 18, height: 18 }) })
|
|
8400
8238
|
] });
|
|
8401
8239
|
case "switch":
|
|
8402
8240
|
return /* @__PURE__ */ jsxs38("div", { className: "aviala-list-item__trailing", children: [
|
|
8403
8241
|
primaryAction,
|
|
8404
|
-
/* @__PURE__ */
|
|
8405
|
-
/* @__PURE__ */
|
|
8242
|
+
/* @__PURE__ */ jsx49(ListDivider, {}),
|
|
8243
|
+
/* @__PURE__ */ jsx49(Switch, { ...switchProps })
|
|
8406
8244
|
] });
|
|
8407
8245
|
case "select":
|
|
8408
8246
|
default:
|
|
8409
8247
|
return /* @__PURE__ */ jsxs38("div", { className: "aviala-list-item__trailing", children: [
|
|
8410
8248
|
primaryAction,
|
|
8411
|
-
/* @__PURE__ */
|
|
8412
|
-
/* @__PURE__ */
|
|
8249
|
+
/* @__PURE__ */ jsx49(ListDivider, {}),
|
|
8250
|
+
/* @__PURE__ */ jsx49("span", { className: "aviala-list-item__select", children: select })
|
|
8413
8251
|
] });
|
|
8414
8252
|
}
|
|
8415
8253
|
};
|
|
@@ -8428,8 +8266,8 @@ var ListItem = forwardRef34(
|
|
|
8428
8266
|
...props,
|
|
8429
8267
|
children: [
|
|
8430
8268
|
renderLeadingIcon(icon, leading),
|
|
8431
|
-
/* @__PURE__ */
|
|
8432
|
-
/* @__PURE__ */
|
|
8269
|
+
/* @__PURE__ */ jsx49("div", { className: "aviala-list-item__body", children: /* @__PURE__ */ jsxs38("div", { className: "aviala-list-item__content", children: [
|
|
8270
|
+
/* @__PURE__ */ jsx49("div", { className: "aviala-list-item__head", children: /* @__PURE__ */ jsx49(Typeface, { content: "textCaption", primary: title, secondary: subtitle }) }),
|
|
8433
8271
|
renderTrailing()
|
|
8434
8272
|
] }) })
|
|
8435
8273
|
]
|
|
@@ -8453,7 +8291,7 @@ import {
|
|
|
8453
8291
|
useRef as useRef12,
|
|
8454
8292
|
useState as useState16
|
|
8455
8293
|
} from "react";
|
|
8456
|
-
import { Fragment as Fragment7, jsx as
|
|
8294
|
+
import { Fragment as Fragment7, jsx as jsx50, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
8457
8295
|
function navigationItemButtonMode(active) {
|
|
8458
8296
|
return active ? "second" : "noBackgroundCustom";
|
|
8459
8297
|
}
|
|
@@ -8862,7 +8700,7 @@ var Navigation = forwardRef35(
|
|
|
8862
8700
|
direction = "vertical",
|
|
8863
8701
|
dividingLine = false,
|
|
8864
8702
|
...props
|
|
8865
|
-
}, ref) => /* @__PURE__ */
|
|
8703
|
+
}, ref) => /* @__PURE__ */ jsx50(NavigationDirectionContext.Provider, { value: direction, children: /* @__PURE__ */ jsx50(
|
|
8866
8704
|
Tag2,
|
|
8867
8705
|
{
|
|
8868
8706
|
ref,
|
|
@@ -8876,7 +8714,7 @@ var Navigation = forwardRef35(
|
|
|
8876
8714
|
);
|
|
8877
8715
|
Navigation.displayName = "Navigation";
|
|
8878
8716
|
var NavigationBrand = forwardRef35(
|
|
8879
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
8717
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx50(
|
|
8880
8718
|
"div",
|
|
8881
8719
|
{
|
|
8882
8720
|
ref,
|
|
@@ -8888,24 +8726,24 @@ var NavigationBrand = forwardRef35(
|
|
|
8888
8726
|
NavigationBrand.displayName = "NavigationBrand";
|
|
8889
8727
|
var NavigationBrandTitle = forwardRef35(({ className, asChild = false, children, ...props }, ref) => {
|
|
8890
8728
|
const Comp = asChild ? Slot5 : "a";
|
|
8891
|
-
return /* @__PURE__ */
|
|
8729
|
+
return /* @__PURE__ */ jsx50(
|
|
8892
8730
|
Comp,
|
|
8893
8731
|
{
|
|
8894
8732
|
ref,
|
|
8895
8733
|
className: cn("aviala-navigation-brand__title aviala-focus-ring", className),
|
|
8896
8734
|
...props,
|
|
8897
|
-
children: asChild ? children : /* @__PURE__ */
|
|
8735
|
+
children: asChild ? children : /* @__PURE__ */ jsx50(Typography, { level: "text", as: "span", children })
|
|
8898
8736
|
}
|
|
8899
8737
|
);
|
|
8900
8738
|
});
|
|
8901
8739
|
NavigationBrandTitle.displayName = "NavigationBrandTitle";
|
|
8902
|
-
var NavigationSection = forwardRef35(({ className, children, ...props }, ref) => /* @__PURE__ */
|
|
8740
|
+
var NavigationSection = forwardRef35(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx50(
|
|
8903
8741
|
"div",
|
|
8904
8742
|
{
|
|
8905
8743
|
ref,
|
|
8906
8744
|
className: cn("aviala-navigation-section", className),
|
|
8907
8745
|
...props,
|
|
8908
|
-
children: /* @__PURE__ */
|
|
8746
|
+
children: /* @__PURE__ */ jsx50(Typography, { level: "caption", as: "p", children })
|
|
8909
8747
|
}
|
|
8910
8748
|
));
|
|
8911
8749
|
NavigationSection.displayName = "NavigationSection";
|
|
@@ -8937,7 +8775,7 @@ var NavigationGroup = forwardRef35(
|
|
|
8937
8775
|
className: cn("aviala-navigation-group", className),
|
|
8938
8776
|
...props,
|
|
8939
8777
|
children: [
|
|
8940
|
-
/* @__PURE__ */
|
|
8778
|
+
/* @__PURE__ */ jsx50(
|
|
8941
8779
|
"span",
|
|
8942
8780
|
{
|
|
8943
8781
|
ref: onIndicatorRef,
|
|
@@ -8963,7 +8801,7 @@ var NavigationItemGroup = forwardRef35(({ className, expanded, children, ...prop
|
|
|
8963
8801
|
if (isCollapsed) inner.setAttribute("inert", "");
|
|
8964
8802
|
else inner.removeAttribute("inert");
|
|
8965
8803
|
}, [isCollapsed]);
|
|
8966
|
-
return /* @__PURE__ */
|
|
8804
|
+
return /* @__PURE__ */ jsx50(
|
|
8967
8805
|
"div",
|
|
8968
8806
|
{
|
|
8969
8807
|
ref,
|
|
@@ -8971,7 +8809,7 @@ var NavigationItemGroup = forwardRef35(({ className, expanded, children, ...prop
|
|
|
8971
8809
|
"data-expanded": isCollapsible ? expanded ? "true" : "false" : void 0,
|
|
8972
8810
|
"aria-hidden": isCollapsed ? true : void 0,
|
|
8973
8811
|
...props,
|
|
8974
|
-
children: isCollapsible ? /* @__PURE__ */
|
|
8812
|
+
children: isCollapsible ? /* @__PURE__ */ jsx50("div", { ref: innerRef, className: "aviala-navigation-item-group__inner", children }) : children
|
|
8975
8813
|
}
|
|
8976
8814
|
);
|
|
8977
8815
|
});
|
|
@@ -8982,7 +8820,7 @@ function renderItemIcon3(node) {
|
|
|
8982
8820
|
level: "text",
|
|
8983
8821
|
biggerSize: true
|
|
8984
8822
|
});
|
|
8985
|
-
return /* @__PURE__ */
|
|
8823
|
+
return /* @__PURE__ */ jsx50("span", { className: "aviala-navigation-item__icon", children: content });
|
|
8986
8824
|
}
|
|
8987
8825
|
var NavigationItem = forwardRef35(
|
|
8988
8826
|
({
|
|
@@ -9001,7 +8839,7 @@ var NavigationItem = forwardRef35(
|
|
|
9001
8839
|
const mode = navigationItemButtonMode(isActive);
|
|
9002
8840
|
const controlContent = /* @__PURE__ */ jsxs39(Fragment7, { children: [
|
|
9003
8841
|
renderItemIcon3(leftIcon),
|
|
9004
|
-
/* @__PURE__ */
|
|
8842
|
+
/* @__PURE__ */ jsx50(
|
|
9005
8843
|
Typography,
|
|
9006
8844
|
{
|
|
9007
8845
|
level: "text",
|
|
@@ -9010,15 +8848,15 @@ var NavigationItem = forwardRef35(
|
|
|
9010
8848
|
children
|
|
9011
8849
|
}
|
|
9012
8850
|
),
|
|
9013
|
-
rightIcon ? /* @__PURE__ */
|
|
8851
|
+
rightIcon ? /* @__PURE__ */ jsx50("span", { className: "aviala-navigation-item__chevron", children: renderItemIcon3(rightIcon) }) : null
|
|
9014
8852
|
] });
|
|
9015
|
-
return /* @__PURE__ */
|
|
8853
|
+
return /* @__PURE__ */ jsx50(
|
|
9016
8854
|
"span",
|
|
9017
8855
|
{
|
|
9018
8856
|
className: cn("aviala-navigation-item", className),
|
|
9019
8857
|
"data-item-type": itemType,
|
|
9020
8858
|
"data-active": isActive ? "true" : "false",
|
|
9021
|
-
children: /* @__PURE__ */
|
|
8859
|
+
children: /* @__PURE__ */ jsx50(
|
|
9022
8860
|
Comp,
|
|
9023
8861
|
{
|
|
9024
8862
|
ref,
|
|
@@ -9037,7 +8875,7 @@ var NavigationItem = forwardRef35(
|
|
|
9037
8875
|
}
|
|
9038
8876
|
);
|
|
9039
8877
|
NavigationItem.displayName = "NavigationItem";
|
|
9040
|
-
var NavigationActions = forwardRef35(({ className, children, ...props }, ref) => /* @__PURE__ */
|
|
8878
|
+
var NavigationActions = forwardRef35(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx50(
|
|
9041
8879
|
"div",
|
|
9042
8880
|
{
|
|
9043
8881
|
ref,
|
|
@@ -9047,7 +8885,7 @@ var NavigationActions = forwardRef35(({ className, children, ...props }, ref) =>
|
|
|
9047
8885
|
}
|
|
9048
8886
|
));
|
|
9049
8887
|
NavigationActions.displayName = "NavigationActions";
|
|
9050
|
-
var NavigationActionsSlot = forwardRef35(({ className, ...props }, ref) => /* @__PURE__ */
|
|
8888
|
+
var NavigationActionsSlot = forwardRef35(({ className, ...props }, ref) => /* @__PURE__ */ jsx50(
|
|
9051
8889
|
"div",
|
|
9052
8890
|
{
|
|
9053
8891
|
ref,
|
|
@@ -9139,7 +8977,7 @@ function NavigationItemMenu({
|
|
|
9139
8977
|
},
|
|
9140
8978
|
[cancelClose, setOpen]
|
|
9141
8979
|
);
|
|
9142
|
-
return /* @__PURE__ */
|
|
8980
|
+
return /* @__PURE__ */ jsx50(NavigationItemMenuContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx50(Popover, { open, onOpenChange: handleOpenChange, children }) });
|
|
9143
8981
|
}
|
|
9144
8982
|
var NavigationItemMenuTrigger = forwardRef35(
|
|
9145
8983
|
({
|
|
@@ -9153,7 +8991,7 @@ var NavigationItemMenuTrigger = forwardRef35(
|
|
|
9153
8991
|
const menu = useNavigationItemMenuContext("NavigationItemMenuTrigger");
|
|
9154
8992
|
const isActive = active ?? menu.hasSelection;
|
|
9155
8993
|
const mode = navigationItemButtonMode(isActive);
|
|
9156
|
-
return /* @__PURE__ */
|
|
8994
|
+
return /* @__PURE__ */ jsx50(
|
|
9157
8995
|
"span",
|
|
9158
8996
|
{
|
|
9159
8997
|
className: cn("aviala-navigation-item", className),
|
|
@@ -9161,7 +8999,7 @@ var NavigationItemMenuTrigger = forwardRef35(
|
|
|
9161
8999
|
"data-active": isActive ? "true" : "false",
|
|
9162
9000
|
onMouseEnter: () => menu.openMenu(true),
|
|
9163
9001
|
onMouseLeave: menu.scheduleClose,
|
|
9164
|
-
children: /* @__PURE__ */
|
|
9002
|
+
children: /* @__PURE__ */ jsx50(PopoverPrimitive7.Trigger, { asChild: true, children: /* @__PURE__ */ jsxs39(
|
|
9165
9003
|
"button",
|
|
9166
9004
|
{
|
|
9167
9005
|
ref,
|
|
@@ -9174,7 +9012,7 @@ var NavigationItemMenuTrigger = forwardRef35(
|
|
|
9174
9012
|
...props,
|
|
9175
9013
|
children: [
|
|
9176
9014
|
renderItemIcon3(leftIcon),
|
|
9177
|
-
/* @__PURE__ */
|
|
9015
|
+
/* @__PURE__ */ jsx50(
|
|
9178
9016
|
Typography,
|
|
9179
9017
|
{
|
|
9180
9018
|
level: "text",
|
|
@@ -9183,7 +9021,7 @@ var NavigationItemMenuTrigger = forwardRef35(
|
|
|
9183
9021
|
children
|
|
9184
9022
|
}
|
|
9185
9023
|
),
|
|
9186
|
-
rightIcon ? /* @__PURE__ */
|
|
9024
|
+
rightIcon ? /* @__PURE__ */ jsx50("span", { className: "aviala-navigation-item__chevron", children: renderItemIcon3(rightIcon) }) : null
|
|
9187
9025
|
]
|
|
9188
9026
|
}
|
|
9189
9027
|
) })
|
|
@@ -9204,7 +9042,7 @@ var NavigationItemMenuContent = forwardRef35(
|
|
|
9204
9042
|
}, ref) => {
|
|
9205
9043
|
const direction = useNavigationDirection();
|
|
9206
9044
|
const menu = useNavigationItemMenuContext("NavigationItemMenuContent");
|
|
9207
|
-
return /* @__PURE__ */
|
|
9045
|
+
return /* @__PURE__ */ jsx50(PopoverPrimitive7.Portal, { children: /* @__PURE__ */ jsx50(
|
|
9208
9046
|
PopoverPrimitive7.Content,
|
|
9209
9047
|
{
|
|
9210
9048
|
ref,
|
|
@@ -9259,7 +9097,7 @@ var NavigationItemMenuItem = forwardRef35(
|
|
|
9259
9097
|
...props,
|
|
9260
9098
|
children: [
|
|
9261
9099
|
renderItemIcon3(leftIcon),
|
|
9262
|
-
/* @__PURE__ */
|
|
9100
|
+
/* @__PURE__ */ jsx50(
|
|
9263
9101
|
Typography,
|
|
9264
9102
|
{
|
|
9265
9103
|
level: "text",
|
|
@@ -9268,7 +9106,7 @@ var NavigationItemMenuItem = forwardRef35(
|
|
|
9268
9106
|
children
|
|
9269
9107
|
}
|
|
9270
9108
|
),
|
|
9271
|
-
rightIcon ? /* @__PURE__ */
|
|
9109
|
+
rightIcon ? /* @__PURE__ */ jsx50("span", { className: "aviala-navigation-menu-item__trailing", children: renderItemIcon3(rightIcon) }) : null
|
|
9272
9110
|
]
|
|
9273
9111
|
}
|
|
9274
9112
|
);
|
|
@@ -9280,7 +9118,7 @@ NavigationItemMenuItem.displayName = "NavigationItemMenuItem";
|
|
|
9280
9118
|
import * as SliderPrimitive from "@radix-ui/react-slider";
|
|
9281
9119
|
import { cva as cva13 } from "class-variance-authority";
|
|
9282
9120
|
import { forwardRef as forwardRef36 } from "react";
|
|
9283
|
-
import { jsx as
|
|
9121
|
+
import { jsx as jsx51, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
9284
9122
|
var sliderVariants = cva13("aviala-slider", {
|
|
9285
9123
|
variants: {
|
|
9286
9124
|
size: {
|
|
@@ -9332,8 +9170,8 @@ var Slider = forwardRef36(
|
|
|
9332
9170
|
"data-disabled": disabled ? "true" : void 0,
|
|
9333
9171
|
...props,
|
|
9334
9172
|
children: [
|
|
9335
|
-
/* @__PURE__ */
|
|
9336
|
-
Array.from({ length: thumbCount }, (_, index) => /* @__PURE__ */
|
|
9173
|
+
/* @__PURE__ */ jsx51(SliderPrimitive.Track, { className: "aviala-slider__track", children: /* @__PURE__ */ jsx51(SliderPrimitive.Range, { className: "aviala-slider__range" }) }),
|
|
9174
|
+
Array.from({ length: thumbCount }, (_, index) => /* @__PURE__ */ jsx51(SliderPrimitive.Thumb, { className: "aviala-slider__thumb aviala-focus-ring" }, index))
|
|
9337
9175
|
]
|
|
9338
9176
|
}
|
|
9339
9177
|
);
|
|
@@ -9349,7 +9187,7 @@ import {
|
|
|
9349
9187
|
useRef as useRef13,
|
|
9350
9188
|
useState as useState17
|
|
9351
9189
|
} from "react";
|
|
9352
|
-
import { jsx as
|
|
9190
|
+
import { jsx as jsx52, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
9353
9191
|
var uploadVariants = cva14("aviala-upload aviala-focus-ring", {
|
|
9354
9192
|
variants: {
|
|
9355
9193
|
style: {
|
|
@@ -9430,7 +9268,7 @@ var Upload = forwardRef37(
|
|
|
9430
9268
|
onDrop: handleDrop,
|
|
9431
9269
|
...props,
|
|
9432
9270
|
children: [
|
|
9433
|
-
/* @__PURE__ */
|
|
9271
|
+
/* @__PURE__ */ jsx52(
|
|
9434
9272
|
"input",
|
|
9435
9273
|
{
|
|
9436
9274
|
ref: inputRef,
|
|
@@ -9445,8 +9283,8 @@ var Upload = forwardRef37(
|
|
|
9445
9283
|
...inputProps
|
|
9446
9284
|
}
|
|
9447
9285
|
),
|
|
9448
|
-
/* @__PURE__ */
|
|
9449
|
-
resolvedStyle === "large" ? /* @__PURE__ */
|
|
9286
|
+
/* @__PURE__ */ jsx52("span", { className: "aviala-upload__icon", "aria-hidden": true, children: /* @__PURE__ */ jsx52(GeneralUpload, { width: 16, height: 16 }) }),
|
|
9287
|
+
resolvedStyle === "large" ? /* @__PURE__ */ jsx52(
|
|
9450
9288
|
Typeface,
|
|
9451
9289
|
{
|
|
9452
9290
|
className: "aviala-upload__typeface",
|
|
@@ -9454,7 +9292,7 @@ var Upload = forwardRef37(
|
|
|
9454
9292
|
primary: title,
|
|
9455
9293
|
secondary: description
|
|
9456
9294
|
}
|
|
9457
|
-
) : /* @__PURE__ */
|
|
9295
|
+
) : /* @__PURE__ */ jsx52(Typography, { level: "text", as: "span", className: "aviala-upload__label", children: label })
|
|
9458
9296
|
]
|
|
9459
9297
|
}
|
|
9460
9298
|
);
|
|
@@ -9471,7 +9309,7 @@ import {
|
|
|
9471
9309
|
useMemo as useMemo11,
|
|
9472
9310
|
useRef as useRef14
|
|
9473
9311
|
} from "react";
|
|
9474
|
-
import { jsx as
|
|
9312
|
+
import { jsx as jsx53, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
9475
9313
|
var LOOP_SECTIONS2 = 3;
|
|
9476
9314
|
var MIDDLE_SECTION2 = 1;
|
|
9477
9315
|
function normalizeIndex2(index, length) {
|
|
@@ -9499,7 +9337,7 @@ function fractionalIndexAtScrollTop(metrics, scrollTop) {
|
|
|
9499
9337
|
return (scrollTop - metrics.originTop) / metrics.pitch;
|
|
9500
9338
|
}
|
|
9501
9339
|
function ScrollPicker({ className, children, ...props }) {
|
|
9502
|
-
return /* @__PURE__ */
|
|
9340
|
+
return /* @__PURE__ */ jsx53("div", { className: cn("aviala-scroll-picker", className), ...props, children });
|
|
9503
9341
|
}
|
|
9504
9342
|
function ScrollPickerColumn({
|
|
9505
9343
|
className,
|
|
@@ -9696,9 +9534,9 @@ function ScrollPickerColumn({
|
|
|
9696
9534
|
}
|
|
9697
9535
|
};
|
|
9698
9536
|
const selectedOptionId = `${reactId}-${getIndex(value)}`;
|
|
9699
|
-
return /* @__PURE__ */
|
|
9700
|
-
/* @__PURE__ */
|
|
9701
|
-
/* @__PURE__ */
|
|
9537
|
+
return /* @__PURE__ */ jsx53("div", { className: cn("aviala-scroll-picker-column", className), children: /* @__PURE__ */ jsxs42("div", { className: "aviala-scroll-picker-column__viewport", children: [
|
|
9538
|
+
/* @__PURE__ */ jsx53("div", { className: "aviala-scroll-picker-column__highlight", "aria-hidden": true }),
|
|
9539
|
+
/* @__PURE__ */ jsx53(
|
|
9702
9540
|
"div",
|
|
9703
9541
|
{
|
|
9704
9542
|
ref: scrollRef,
|
|
@@ -9709,12 +9547,12 @@ function ScrollPickerColumn({
|
|
|
9709
9547
|
"aria-activedescendant": selectedOptionId,
|
|
9710
9548
|
tabIndex: 0,
|
|
9711
9549
|
onKeyDown: handleKeyDown,
|
|
9712
|
-
children: /* @__PURE__ */
|
|
9550
|
+
children: /* @__PURE__ */ jsx53("ul", { className: "aviala-scroll-picker-column__list", children: repeatedValues.map((itemValue, index) => {
|
|
9713
9551
|
const isSelected = Object.is(itemValue, value);
|
|
9714
9552
|
const valueIndex = loop ? normalizeIndex2(index, values.length) : index;
|
|
9715
9553
|
const optionId = `${reactId}-${loop ? index : valueIndex}`;
|
|
9716
9554
|
const key = getValueKey?.(itemValue, index) ?? `${String(itemValue)}-${index}`;
|
|
9717
|
-
return /* @__PURE__ */
|
|
9555
|
+
return /* @__PURE__ */ jsx53("li", { className: "contents", children: /* @__PURE__ */ jsx53(
|
|
9718
9556
|
ScrollPickerItem,
|
|
9719
9557
|
{
|
|
9720
9558
|
id: isSelected ? selectedOptionId : optionId,
|
|
@@ -9740,7 +9578,7 @@ function ScrollPickerItem({
|
|
|
9740
9578
|
className,
|
|
9741
9579
|
onSelect
|
|
9742
9580
|
}) {
|
|
9743
|
-
return /* @__PURE__ */
|
|
9581
|
+
return /* @__PURE__ */ jsx53(
|
|
9744
9582
|
"button",
|
|
9745
9583
|
{
|
|
9746
9584
|
type: "button",
|
|
@@ -9770,7 +9608,7 @@ import {
|
|
|
9770
9608
|
useContext as useContext9,
|
|
9771
9609
|
useState as useState18
|
|
9772
9610
|
} from "react";
|
|
9773
|
-
import { Fragment as Fragment8, jsx as
|
|
9611
|
+
import { Fragment as Fragment8, jsx as jsx54, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
9774
9612
|
var BreadcrumbSizeContext = createContext9("default");
|
|
9775
9613
|
function breadcrumbTypeLevel(size) {
|
|
9776
9614
|
return size === "small" ? "caption" : "text";
|
|
@@ -9789,7 +9627,7 @@ var breadcrumbVariants = cva15("aviala-breadcrumb", {
|
|
|
9789
9627
|
var Breadcrumb = forwardRef38(
|
|
9790
9628
|
({ className, size = "default", children, ...props }, ref) => {
|
|
9791
9629
|
const resolvedSize = size ?? "default";
|
|
9792
|
-
return /* @__PURE__ */
|
|
9630
|
+
return /* @__PURE__ */ jsx54(BreadcrumbSizeContext.Provider, { value: resolvedSize, children: /* @__PURE__ */ jsx54(
|
|
9793
9631
|
"nav",
|
|
9794
9632
|
{
|
|
9795
9633
|
ref,
|
|
@@ -9797,7 +9635,7 @@ var Breadcrumb = forwardRef38(
|
|
|
9797
9635
|
className: cn(breadcrumbVariants({ size: resolvedSize }), className),
|
|
9798
9636
|
"data-size": resolvedSize,
|
|
9799
9637
|
...props,
|
|
9800
|
-
children: /* @__PURE__ */
|
|
9638
|
+
children: /* @__PURE__ */ jsx54("ol", { className: "aviala-breadcrumb__list", children })
|
|
9801
9639
|
}
|
|
9802
9640
|
) });
|
|
9803
9641
|
}
|
|
@@ -9807,8 +9645,8 @@ var BreadcrumbItem = forwardRef38(
|
|
|
9807
9645
|
({ className, href, current = false, icon, onClick, children, ...props }, ref) => {
|
|
9808
9646
|
const size = useContext9(BreadcrumbSizeContext);
|
|
9809
9647
|
const label = /* @__PURE__ */ jsxs43(Fragment8, { children: [
|
|
9810
|
-
icon ? /* @__PURE__ */
|
|
9811
|
-
children != null ? /* @__PURE__ */
|
|
9648
|
+
icon ? /* @__PURE__ */ jsx54("span", { className: "aviala-breadcrumb-item__icon", children: icon }) : null,
|
|
9649
|
+
children != null ? /* @__PURE__ */ jsx54(
|
|
9812
9650
|
Typography,
|
|
9813
9651
|
{
|
|
9814
9652
|
level: breadcrumbTypeLevel(size),
|
|
@@ -9818,13 +9656,13 @@ var BreadcrumbItem = forwardRef38(
|
|
|
9818
9656
|
}
|
|
9819
9657
|
) : null
|
|
9820
9658
|
] });
|
|
9821
|
-
return /* @__PURE__ */
|
|
9659
|
+
return /* @__PURE__ */ jsx54(
|
|
9822
9660
|
"li",
|
|
9823
9661
|
{
|
|
9824
9662
|
ref,
|
|
9825
9663
|
className: cn("aviala-breadcrumb-item-wrap", className),
|
|
9826
9664
|
...props,
|
|
9827
|
-
children: href != null ? /* @__PURE__ */
|
|
9665
|
+
children: href != null ? /* @__PURE__ */ jsx54(
|
|
9828
9666
|
"a",
|
|
9829
9667
|
{
|
|
9830
9668
|
href,
|
|
@@ -9833,7 +9671,7 @@ var BreadcrumbItem = forwardRef38(
|
|
|
9833
9671
|
"aria-current": current ? "page" : void 0,
|
|
9834
9672
|
children: label
|
|
9835
9673
|
}
|
|
9836
|
-
) : onClick != null ? /* @__PURE__ */
|
|
9674
|
+
) : onClick != null ? /* @__PURE__ */ jsx54(
|
|
9837
9675
|
"button",
|
|
9838
9676
|
{
|
|
9839
9677
|
type: "button",
|
|
@@ -9843,7 +9681,7 @@ var BreadcrumbItem = forwardRef38(
|
|
|
9843
9681
|
onClick,
|
|
9844
9682
|
children: label
|
|
9845
9683
|
}
|
|
9846
|
-
) : /* @__PURE__ */
|
|
9684
|
+
) : /* @__PURE__ */ jsx54(
|
|
9847
9685
|
"span",
|
|
9848
9686
|
{
|
|
9849
9687
|
className: "aviala-breadcrumb-item",
|
|
@@ -9860,7 +9698,7 @@ BreadcrumbItem.displayName = "BreadcrumbItem";
|
|
|
9860
9698
|
var BreadcrumbSeparator = forwardRef38(
|
|
9861
9699
|
({ className, children = "/", ...props }, ref) => {
|
|
9862
9700
|
const size = useContext9(BreadcrumbSizeContext);
|
|
9863
|
-
return /* @__PURE__ */
|
|
9701
|
+
return /* @__PURE__ */ jsx54(
|
|
9864
9702
|
"li",
|
|
9865
9703
|
{
|
|
9866
9704
|
ref,
|
|
@@ -9868,7 +9706,7 @@ var BreadcrumbSeparator = forwardRef38(
|
|
|
9868
9706
|
"aria-hidden": true,
|
|
9869
9707
|
className: cn("aviala-breadcrumb-separator", className),
|
|
9870
9708
|
...props,
|
|
9871
|
-
children: /* @__PURE__ */
|
|
9709
|
+
children: /* @__PURE__ */ jsx54(Typography, { level: breadcrumbTypeLevel(size), as: "span", children })
|
|
9872
9710
|
}
|
|
9873
9711
|
);
|
|
9874
9712
|
}
|
|
@@ -9884,11 +9722,11 @@ var BreadcrumbEllipsisItem = forwardRef38(
|
|
|
9884
9722
|
...props
|
|
9885
9723
|
}, ref) => {
|
|
9886
9724
|
const content = /* @__PURE__ */ jsxs43(Fragment8, { children: [
|
|
9887
|
-
/* @__PURE__ */
|
|
9888
|
-
showChevron ? /* @__PURE__ */
|
|
9725
|
+
/* @__PURE__ */ jsx54(Typography, { level: "text", as: "span", className: "aviala-breadcrumb-ellipsis-item__label", children }),
|
|
9726
|
+
showChevron ? /* @__PURE__ */ jsx54("span", { className: "aviala-breadcrumb-ellipsis-item__chevron", "aria-hidden": true, children: /* @__PURE__ */ jsx54(DirectionArrowRightLight3, { width: 14, height: 14, thickness: "Light" }) }) : null
|
|
9889
9727
|
] });
|
|
9890
9728
|
if (href != null) {
|
|
9891
|
-
return /* @__PURE__ */
|
|
9729
|
+
return /* @__PURE__ */ jsx54(
|
|
9892
9730
|
"a",
|
|
9893
9731
|
{
|
|
9894
9732
|
ref,
|
|
@@ -9900,7 +9738,7 @@ var BreadcrumbEllipsisItem = forwardRef38(
|
|
|
9900
9738
|
}
|
|
9901
9739
|
);
|
|
9902
9740
|
}
|
|
9903
|
-
return /* @__PURE__ */
|
|
9741
|
+
return /* @__PURE__ */ jsx54(
|
|
9904
9742
|
"button",
|
|
9905
9743
|
{
|
|
9906
9744
|
ref,
|
|
@@ -9938,8 +9776,8 @@ var BreadcrumbEllipsis = forwardRef38(
|
|
|
9938
9776
|
[isControlled, onActivatedChange]
|
|
9939
9777
|
);
|
|
9940
9778
|
const iconSize = 14;
|
|
9941
|
-
const icon = children ?? /* @__PURE__ */
|
|
9942
|
-
const trigger = /* @__PURE__ */
|
|
9779
|
+
const icon = children ?? /* @__PURE__ */ jsx54(SymbolMore, { width: iconSize, height: iconSize, thickness: "Light", "aria-hidden": true });
|
|
9780
|
+
const trigger = /* @__PURE__ */ jsx54(
|
|
9943
9781
|
"button",
|
|
9944
9782
|
{
|
|
9945
9783
|
type: "button",
|
|
@@ -9958,9 +9796,9 @@ var BreadcrumbEllipsis = forwardRef38(
|
|
|
9958
9796
|
children: icon
|
|
9959
9797
|
}
|
|
9960
9798
|
);
|
|
9961
|
-
return /* @__PURE__ */
|
|
9962
|
-
/* @__PURE__ */
|
|
9963
|
-
/* @__PURE__ */
|
|
9799
|
+
return /* @__PURE__ */ jsx54("li", { ref, className: cn("aviala-breadcrumb-ellipsis-wrap", className), children: menu != null ? /* @__PURE__ */ jsxs43(Popover, { open: activated, onOpenChange: setActivated, children: [
|
|
9800
|
+
/* @__PURE__ */ jsx54(PopoverTrigger, { asChild: true, children: trigger }),
|
|
9801
|
+
/* @__PURE__ */ jsx54(
|
|
9964
9802
|
PopoverContent,
|
|
9965
9803
|
{
|
|
9966
9804
|
className: "aviala-breadcrumb-ellipsis-menu",
|
|
@@ -9969,7 +9807,7 @@ var BreadcrumbEllipsis = forwardRef38(
|
|
|
9969
9807
|
sideOffset: 7,
|
|
9970
9808
|
showArrow: false,
|
|
9971
9809
|
role: "menu",
|
|
9972
|
-
children: /* @__PURE__ */
|
|
9810
|
+
children: /* @__PURE__ */ jsx54("div", { className: "aviala-breadcrumb-ellipsis-menu__items", children: menu })
|
|
9973
9811
|
}
|
|
9974
9812
|
)
|
|
9975
9813
|
] }) : trigger });
|
|
@@ -9981,7 +9819,7 @@ BreadcrumbEllipsis.displayName = "BreadcrumbEllipsis";
|
|
|
9981
9819
|
import {
|
|
9982
9820
|
forwardRef as forwardRef39
|
|
9983
9821
|
} from "react";
|
|
9984
|
-
import { jsx as
|
|
9822
|
+
import { jsx as jsx55, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
9985
9823
|
var Pagehead = forwardRef39(
|
|
9986
9824
|
({
|
|
9987
9825
|
className,
|
|
@@ -9994,14 +9832,14 @@ var Pagehead = forwardRef39(
|
|
|
9994
9832
|
...props
|
|
9995
9833
|
}, ref) => /* @__PURE__ */ jsxs44("header", { ref, className: cn("aviala-pagehead", className), ...props, children: [
|
|
9996
9834
|
/* @__PURE__ */ jsxs44("div", { className: "aviala-pagehead__main", children: [
|
|
9997
|
-
back != null ? /* @__PURE__ */
|
|
9835
|
+
back != null ? /* @__PURE__ */ jsx55("div", { className: "aviala-pagehead__back", children: back }) : null,
|
|
9998
9836
|
/* @__PURE__ */ jsxs44("div", { className: "aviala-pagehead__title-block", children: [
|
|
9999
|
-
breadcrumb != null ? /* @__PURE__ */
|
|
10000
|
-
title != null || description != null ? /* @__PURE__ */
|
|
9837
|
+
breadcrumb != null ? /* @__PURE__ */ jsx55("div", { className: "aviala-pagehead__breadcrumb", children: breadcrumb }) : null,
|
|
9838
|
+
title != null || description != null ? /* @__PURE__ */ jsx55("div", { className: "aviala-pagehead__title", children: /* @__PURE__ */ jsx55(Typeface, { content: "textCaption", primary: title, secondary: description }) }) : null,
|
|
10001
9839
|
children
|
|
10002
9840
|
] })
|
|
10003
9841
|
] }),
|
|
10004
|
-
actions != null ? /* @__PURE__ */
|
|
9842
|
+
actions != null ? /* @__PURE__ */ jsx55("div", { className: "aviala-pagehead__actions", children: actions }) : null
|
|
10005
9843
|
] })
|
|
10006
9844
|
);
|
|
10007
9845
|
Pagehead.displayName = "Pagehead";
|
|
@@ -10016,7 +9854,7 @@ import { cva as cva16 } from "class-variance-authority";
|
|
|
10016
9854
|
import {
|
|
10017
9855
|
forwardRef as forwardRef40
|
|
10018
9856
|
} from "react";
|
|
10019
|
-
import { jsx as
|
|
9857
|
+
import { jsx as jsx56, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
10020
9858
|
var stepsVariants = cva16("aviala-steps", {
|
|
10021
9859
|
variants: {
|
|
10022
9860
|
direction: {
|
|
@@ -10029,7 +9867,7 @@ var stepsVariants = cva16("aviala-steps", {
|
|
|
10029
9867
|
}
|
|
10030
9868
|
});
|
|
10031
9869
|
var Steps = forwardRef40(
|
|
10032
|
-
({ className, direction = "horizontal", children, ...props }, ref) => /* @__PURE__ */
|
|
9870
|
+
({ className, direction = "horizontal", children, ...props }, ref) => /* @__PURE__ */ jsx56(
|
|
10033
9871
|
"div",
|
|
10034
9872
|
{
|
|
10035
9873
|
ref,
|
|
@@ -10044,20 +9882,20 @@ Steps.displayName = "Steps";
|
|
|
10044
9882
|
function defaultStepsIconContent(state, index) {
|
|
10045
9883
|
switch (state) {
|
|
10046
9884
|
case "done":
|
|
10047
|
-
return /* @__PURE__ */
|
|
9885
|
+
return /* @__PURE__ */ jsx56(SymbolRight4, { width: 12, height: 12, thickness: "Bold", "aria-hidden": true });
|
|
10048
9886
|
case "fail":
|
|
10049
|
-
return /* @__PURE__ */
|
|
9887
|
+
return /* @__PURE__ */ jsx56(SymbolWrong5, { width: 12, height: 12, thickness: "Bold", "aria-hidden": true });
|
|
10050
9888
|
case "warning":
|
|
10051
|
-
return /* @__PURE__ */
|
|
9889
|
+
return /* @__PURE__ */ jsx56(SymbolWarning, { width: 12, height: 12, thickness: "Bold", "aria-hidden": true });
|
|
10052
9890
|
case "waiting":
|
|
10053
9891
|
case "inProgress":
|
|
10054
9892
|
case "default":
|
|
10055
9893
|
default:
|
|
10056
|
-
return index != null ? /* @__PURE__ */
|
|
9894
|
+
return index != null ? /* @__PURE__ */ jsx56(Typography, { level: "caption", as: "span", className: "aviala-steps-icon__index", children: index }) : null;
|
|
10057
9895
|
}
|
|
10058
9896
|
}
|
|
10059
9897
|
var StepsIcon = forwardRef40(
|
|
10060
|
-
({ className, state = "default", index, children, ...props }, ref) => /* @__PURE__ */
|
|
9898
|
+
({ className, state = "default", index, children, ...props }, ref) => /* @__PURE__ */ jsx56(
|
|
10061
9899
|
"span",
|
|
10062
9900
|
{
|
|
10063
9901
|
ref,
|
|
@@ -10087,9 +9925,9 @@ var StepsItem = forwardRef40(
|
|
|
10087
9925
|
"data-state": state,
|
|
10088
9926
|
...props,
|
|
10089
9927
|
children: [
|
|
10090
|
-
icon ?? /* @__PURE__ */
|
|
9928
|
+
icon ?? /* @__PURE__ */ jsx56(StepsIcon, { state, index }),
|
|
10091
9929
|
/* @__PURE__ */ jsxs45("div", { className: "aviala-steps-item__body", children: [
|
|
10092
|
-
title != null ? /* @__PURE__ */
|
|
9930
|
+
title != null ? /* @__PURE__ */ jsx56(
|
|
10093
9931
|
Typography,
|
|
10094
9932
|
{
|
|
10095
9933
|
level: "subtitle",
|
|
@@ -10098,7 +9936,7 @@ var StepsItem = forwardRef40(
|
|
|
10098
9936
|
children: title
|
|
10099
9937
|
}
|
|
10100
9938
|
) : null,
|
|
10101
|
-
description != null ? /* @__PURE__ */
|
|
9939
|
+
description != null ? /* @__PURE__ */ jsx56(
|
|
10102
9940
|
Typography,
|
|
10103
9941
|
{
|
|
10104
9942
|
level: "text",
|
|
@@ -10124,7 +9962,7 @@ import {
|
|
|
10124
9962
|
forwardRef as forwardRef41,
|
|
10125
9963
|
useState as useState19
|
|
10126
9964
|
} from "react";
|
|
10127
|
-
import { jsx as
|
|
9965
|
+
import { jsx as jsx57, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
10128
9966
|
function buildPageList(page, pageCount) {
|
|
10129
9967
|
if (pageCount <= 7) {
|
|
10130
9968
|
return Array.from({ length: pageCount }, (_, index) => index + 1);
|
|
@@ -10209,7 +10047,7 @@ var Pagination = forwardRef41(
|
|
|
10209
10047
|
...props,
|
|
10210
10048
|
children: [
|
|
10211
10049
|
/* @__PURE__ */ jsxs46("div", { className: "aviala-pagination__controls", children: [
|
|
10212
|
-
/* @__PURE__ */
|
|
10050
|
+
/* @__PURE__ */ jsx57(
|
|
10213
10051
|
Button,
|
|
10214
10052
|
{
|
|
10215
10053
|
mode: "noBackgroundCustom",
|
|
@@ -10217,18 +10055,18 @@ var Pagination = forwardRef41(
|
|
|
10217
10055
|
iconOnly: true,
|
|
10218
10056
|
"aria-label": "Previous page",
|
|
10219
10057
|
disabled: currentPage <= 1,
|
|
10220
|
-
leftIcon: /* @__PURE__ */
|
|
10058
|
+
leftIcon: /* @__PURE__ */ jsx57(DirectionArrowLeftLight, { "aria-hidden": true }),
|
|
10221
10059
|
onClick: () => setPage(currentPage - 1)
|
|
10222
10060
|
}
|
|
10223
10061
|
),
|
|
10224
|
-
/* @__PURE__ */
|
|
10062
|
+
/* @__PURE__ */ jsx57("div", { className: "aviala-pagination__pages", children: pages.map(
|
|
10225
10063
|
(item, index) => item === "ellipsis" ? /* @__PURE__ */ jsxs46(
|
|
10226
10064
|
Popover,
|
|
10227
10065
|
{
|
|
10228
10066
|
open: openEllipsis === index,
|
|
10229
10067
|
onOpenChange: (open) => setOpenEllipsis(open ? index : null),
|
|
10230
10068
|
children: [
|
|
10231
|
-
/* @__PURE__ */
|
|
10069
|
+
/* @__PURE__ */ jsx57(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsx57(
|
|
10232
10070
|
"button",
|
|
10233
10071
|
{
|
|
10234
10072
|
type: "button",
|
|
@@ -10239,10 +10077,10 @@ var Pagination = forwardRef41(
|
|
|
10239
10077
|
),
|
|
10240
10078
|
"aria-label": "\u66F4\u591A\u9875\u7801",
|
|
10241
10079
|
"aria-haspopup": "menu",
|
|
10242
|
-
children: /* @__PURE__ */
|
|
10080
|
+
children: /* @__PURE__ */ jsx57(Typography, { level: "text", as: "span", children: "\u2026" })
|
|
10243
10081
|
}
|
|
10244
10082
|
) }),
|
|
10245
|
-
/* @__PURE__ */
|
|
10083
|
+
/* @__PURE__ */ jsx57(PopoverContent, { className: "aviala-pagination__ellipsis-content", showArrow: true, flush: true, children: /* @__PURE__ */ jsx57("div", { className: "aviala-pagination__ellipsis-menu", children: ellipsisRange(pages, index).map((p) => /* @__PURE__ */ jsx57(
|
|
10246
10084
|
"button",
|
|
10247
10085
|
{
|
|
10248
10086
|
type: "button",
|
|
@@ -10255,14 +10093,14 @@ var Pagination = forwardRef41(
|
|
|
10255
10093
|
setPage(p);
|
|
10256
10094
|
setOpenEllipsis(null);
|
|
10257
10095
|
},
|
|
10258
|
-
children: /* @__PURE__ */
|
|
10096
|
+
children: /* @__PURE__ */ jsx57(Typography, { level: "text", as: "span", children: p })
|
|
10259
10097
|
},
|
|
10260
10098
|
p
|
|
10261
10099
|
)) }) })
|
|
10262
10100
|
]
|
|
10263
10101
|
},
|
|
10264
10102
|
`ellipsis-${index}`
|
|
10265
|
-
) : /* @__PURE__ */
|
|
10103
|
+
) : /* @__PURE__ */ jsx57(
|
|
10266
10104
|
"button",
|
|
10267
10105
|
{
|
|
10268
10106
|
type: "button",
|
|
@@ -10274,12 +10112,12 @@ var Pagination = forwardRef41(
|
|
|
10274
10112
|
"data-active": item === currentPage ? "true" : void 0,
|
|
10275
10113
|
"aria-current": item === currentPage ? "page" : void 0,
|
|
10276
10114
|
onClick: () => setPage(item),
|
|
10277
|
-
children: /* @__PURE__ */
|
|
10115
|
+
children: /* @__PURE__ */ jsx57(Typography, { level: "text", as: "span", children: item })
|
|
10278
10116
|
},
|
|
10279
10117
|
item
|
|
10280
10118
|
)
|
|
10281
10119
|
) }),
|
|
10282
|
-
/* @__PURE__ */
|
|
10120
|
+
/* @__PURE__ */ jsx57(
|
|
10283
10121
|
Button,
|
|
10284
10122
|
{
|
|
10285
10123
|
mode: "noBackgroundCustom",
|
|
@@ -10287,14 +10125,14 @@ var Pagination = forwardRef41(
|
|
|
10287
10125
|
iconOnly: true,
|
|
10288
10126
|
"aria-label": "Next page",
|
|
10289
10127
|
disabled: currentPage >= safePageCount,
|
|
10290
|
-
leftIcon: /* @__PURE__ */
|
|
10128
|
+
leftIcon: /* @__PURE__ */ jsx57(DirectionArrowRightLight4, { "aria-hidden": true }),
|
|
10291
10129
|
onClick: () => setPage(currentPage + 1)
|
|
10292
10130
|
}
|
|
10293
10131
|
)
|
|
10294
10132
|
] }),
|
|
10295
10133
|
showJump ? /* @__PURE__ */ jsxs46("div", { className: "aviala-pagination__jump", children: [
|
|
10296
|
-
/* @__PURE__ */
|
|
10297
|
-
/* @__PURE__ */
|
|
10134
|
+
/* @__PURE__ */ jsx57(Typography, { level: "text", as: "span", children: jumpLabel }),
|
|
10135
|
+
/* @__PURE__ */ jsx57(
|
|
10298
10136
|
Input,
|
|
10299
10137
|
{
|
|
10300
10138
|
className: "aviala-pagination__jump-input",
|
|
@@ -10315,14 +10153,14 @@ var Pagination = forwardRef41(
|
|
|
10315
10153
|
)
|
|
10316
10154
|
] }) : null,
|
|
10317
10155
|
showSizeChanger ? /* @__PURE__ */ jsxs46("div", { className: "aviala-pagination__size", children: [
|
|
10318
|
-
/* @__PURE__ */
|
|
10156
|
+
/* @__PURE__ */ jsx57(Typography, { level: "text", as: "span", children: sizeLabel }),
|
|
10319
10157
|
/* @__PURE__ */ jsxs46(
|
|
10320
10158
|
Select,
|
|
10321
10159
|
{
|
|
10322
10160
|
value: String(pageSize),
|
|
10323
10161
|
onValueChange: (value) => setPageSize(Number(value)),
|
|
10324
10162
|
children: [
|
|
10325
|
-
/* @__PURE__ */
|
|
10163
|
+
/* @__PURE__ */ jsx57(
|
|
10326
10164
|
SelectTrigger,
|
|
10327
10165
|
{
|
|
10328
10166
|
size: "regular",
|
|
@@ -10330,7 +10168,7 @@ var Pagination = forwardRef41(
|
|
|
10330
10168
|
"aria-label": "Page size"
|
|
10331
10169
|
}
|
|
10332
10170
|
),
|
|
10333
|
-
/* @__PURE__ */
|
|
10171
|
+
/* @__PURE__ */ jsx57(SelectContent, { children: /* @__PURE__ */ jsx57(SelectItemGroup, { children: pageSizeOptions.map((option) => /* @__PURE__ */ jsx57(
|
|
10334
10172
|
SelectItem,
|
|
10335
10173
|
{
|
|
10336
10174
|
value: String(option),
|
|
@@ -10360,9 +10198,9 @@ import {
|
|
|
10360
10198
|
forwardRef as forwardRef42,
|
|
10361
10199
|
isValidElement as isValidElement17
|
|
10362
10200
|
} from "react";
|
|
10363
|
-
import { Fragment as Fragment9, jsx as
|
|
10201
|
+
import { Fragment as Fragment9, jsx as jsx58, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
10364
10202
|
var Card = forwardRef42(
|
|
10365
|
-
({ className, children, ...props }, ref) => /* @__PURE__ */
|
|
10203
|
+
({ className, children, ...props }, ref) => /* @__PURE__ */ jsx58("div", { ref, className: cn("aviala-card", className), ...props, children })
|
|
10366
10204
|
);
|
|
10367
10205
|
Card.displayName = "Card";
|
|
10368
10206
|
function renderCardIcon(node) {
|
|
@@ -10375,7 +10213,7 @@ function renderCardIcon(node) {
|
|
|
10375
10213
|
"shrink-0"
|
|
10376
10214
|
)
|
|
10377
10215
|
}) : node;
|
|
10378
|
-
return /* @__PURE__ */
|
|
10216
|
+
return /* @__PURE__ */ jsx58("span", { className: "aviala-card-head__icon", children: content });
|
|
10379
10217
|
}
|
|
10380
10218
|
var CardHead = forwardRef42(
|
|
10381
10219
|
({
|
|
@@ -10393,35 +10231,35 @@ var CardHead = forwardRef42(
|
|
|
10393
10231
|
children,
|
|
10394
10232
|
...props
|
|
10395
10233
|
}, ref) => {
|
|
10396
|
-
const primaryAction = action ?? /* @__PURE__ */
|
|
10234
|
+
const primaryAction = action ?? /* @__PURE__ */ jsx58(Button, { mode: "primary", size: "regular", leftIcon: /* @__PURE__ */ jsx58(GeneralSetting2, { "aria-hidden": true }), children: actionLabel });
|
|
10397
10235
|
const renderTrailing = () => {
|
|
10398
10236
|
if (trailing !== void 0) return trailing;
|
|
10399
10237
|
switch (slotType) {
|
|
10400
10238
|
case "action":
|
|
10401
10239
|
return /* @__PURE__ */ jsxs47("div", { className: "aviala-card-head__trailing", children: [
|
|
10402
10240
|
primaryAction,
|
|
10403
|
-
secondaryAction ?? /* @__PURE__ */
|
|
10241
|
+
secondaryAction ?? /* @__PURE__ */ jsx58(
|
|
10404
10242
|
Button,
|
|
10405
10243
|
{
|
|
10406
10244
|
mode: "default",
|
|
10407
10245
|
size: "regular",
|
|
10408
10246
|
iconOnly: true,
|
|
10409
10247
|
"aria-label": "More",
|
|
10410
|
-
leftIcon: /* @__PURE__ */
|
|
10248
|
+
leftIcon: /* @__PURE__ */ jsx58(GeneralSetting2, { "aria-hidden": true })
|
|
10411
10249
|
}
|
|
10412
10250
|
),
|
|
10413
|
-
/* @__PURE__ */
|
|
10414
|
-
/* @__PURE__ */
|
|
10251
|
+
/* @__PURE__ */ jsx58("span", { className: "aviala-card__divider", "aria-hidden": true }),
|
|
10252
|
+
/* @__PURE__ */ jsx58(DirectionArrowRightLight5, { width: 14, height: 14, "aria-hidden": true })
|
|
10415
10253
|
] });
|
|
10416
10254
|
case "switch":
|
|
10417
10255
|
return /* @__PURE__ */ jsxs47("div", { className: "aviala-card-head__trailing", children: [
|
|
10418
10256
|
primaryAction,
|
|
10419
|
-
/* @__PURE__ */
|
|
10420
|
-
/* @__PURE__ */
|
|
10257
|
+
/* @__PURE__ */ jsx58("span", { className: "aviala-card__divider", "aria-hidden": true }),
|
|
10258
|
+
/* @__PURE__ */ jsx58(Switch, { ...switchProps })
|
|
10421
10259
|
] });
|
|
10422
10260
|
case "select":
|
|
10423
10261
|
default:
|
|
10424
|
-
return select != null ? /* @__PURE__ */
|
|
10262
|
+
return select != null ? /* @__PURE__ */ jsx58("div", { className: "aviala-card-head__trailing", children: select }) : null;
|
|
10425
10263
|
}
|
|
10426
10264
|
};
|
|
10427
10265
|
return /* @__PURE__ */ jsxs47(
|
|
@@ -10433,8 +10271,8 @@ var CardHead = forwardRef42(
|
|
|
10433
10271
|
...props,
|
|
10434
10272
|
children: [
|
|
10435
10273
|
/* @__PURE__ */ jsxs47("div", { className: "aviala-card-head__main", children: [
|
|
10436
|
-
renderCardIcon(icon ?? /* @__PURE__ */
|
|
10437
|
-
/* @__PURE__ */
|
|
10274
|
+
renderCardIcon(icon ?? /* @__PURE__ */ jsx58(GeneralSetting2, { "aria-hidden": true })),
|
|
10275
|
+
/* @__PURE__ */ jsx58("div", { className: "aviala-card-head__title", children: title != null || description != null ? /* @__PURE__ */ jsx58(Typeface, { content: "textCaption", primary: title, secondary: description }) : children })
|
|
10438
10276
|
] }),
|
|
10439
10277
|
renderTrailing()
|
|
10440
10278
|
]
|
|
@@ -10444,7 +10282,7 @@ var CardHead = forwardRef42(
|
|
|
10444
10282
|
);
|
|
10445
10283
|
CardHead.displayName = "CardHead";
|
|
10446
10284
|
var CardBody = forwardRef42(
|
|
10447
|
-
({ className, children, ...props }, ref) => /* @__PURE__ */
|
|
10285
|
+
({ className, children, ...props }, ref) => /* @__PURE__ */ jsx58("div", { ref, className: cn("aviala-card-body", className), ...props, children: /* @__PURE__ */ jsx58("div", { className: "aviala-card-body__content", children: typeof children === "string" || typeof children === "number" ? /* @__PURE__ */ jsx58(Typography, { level: "text", as: "span", children }) : children }) })
|
|
10448
10286
|
);
|
|
10449
10287
|
CardBody.displayName = "CardBody";
|
|
10450
10288
|
var CardBottom = forwardRef42(
|
|
@@ -10460,7 +10298,7 @@ var CardBottom = forwardRef42(
|
|
|
10460
10298
|
children,
|
|
10461
10299
|
...props
|
|
10462
10300
|
}, ref) => {
|
|
10463
|
-
const primaryAction = action ?? /* @__PURE__ */
|
|
10301
|
+
const primaryAction = action ?? /* @__PURE__ */ jsx58(Button, { mode: "primary", size: "regular", leftIcon: /* @__PURE__ */ jsx58(GeneralSetting2, { "aria-hidden": true }), children: actionLabel });
|
|
10464
10302
|
const renderTrailing = () => {
|
|
10465
10303
|
if (trailing !== void 0) return trailing;
|
|
10466
10304
|
if (children != null) return children;
|
|
@@ -10468,8 +10306,8 @@ var CardBottom = forwardRef42(
|
|
|
10468
10306
|
case "switch":
|
|
10469
10307
|
return /* @__PURE__ */ jsxs47(Fragment9, { children: [
|
|
10470
10308
|
primaryAction,
|
|
10471
|
-
/* @__PURE__ */
|
|
10472
|
-
/* @__PURE__ */
|
|
10309
|
+
/* @__PURE__ */ jsx58("span", { className: "aviala-card__divider", "aria-hidden": true }),
|
|
10310
|
+
/* @__PURE__ */ jsx58(Switch, { ...switchProps })
|
|
10473
10311
|
] });
|
|
10474
10312
|
case "select":
|
|
10475
10313
|
return select;
|
|
@@ -10477,29 +10315,29 @@ var CardBottom = forwardRef42(
|
|
|
10477
10315
|
default:
|
|
10478
10316
|
return /* @__PURE__ */ jsxs47(Fragment9, { children: [
|
|
10479
10317
|
primaryAction,
|
|
10480
|
-
secondaryAction ?? /* @__PURE__ */
|
|
10318
|
+
secondaryAction ?? /* @__PURE__ */ jsx58(
|
|
10481
10319
|
Button,
|
|
10482
10320
|
{
|
|
10483
10321
|
mode: "default",
|
|
10484
10322
|
size: "regular",
|
|
10485
10323
|
iconOnly: true,
|
|
10486
10324
|
"aria-label": "More",
|
|
10487
|
-
leftIcon: /* @__PURE__ */
|
|
10325
|
+
leftIcon: /* @__PURE__ */ jsx58(GeneralSetting2, { "aria-hidden": true })
|
|
10488
10326
|
}
|
|
10489
10327
|
),
|
|
10490
|
-
/* @__PURE__ */
|
|
10491
|
-
/* @__PURE__ */
|
|
10328
|
+
/* @__PURE__ */ jsx58("span", { className: "aviala-card__divider", "aria-hidden": true }),
|
|
10329
|
+
/* @__PURE__ */ jsx58(DirectionArrowRightLight5, { width: 14, height: 14, "aria-hidden": true })
|
|
10492
10330
|
] });
|
|
10493
10331
|
}
|
|
10494
10332
|
};
|
|
10495
|
-
return /* @__PURE__ */
|
|
10333
|
+
return /* @__PURE__ */ jsx58(
|
|
10496
10334
|
"div",
|
|
10497
10335
|
{
|
|
10498
10336
|
ref,
|
|
10499
10337
|
className: cn("aviala-card-bottom", className),
|
|
10500
10338
|
"data-type": slotType,
|
|
10501
10339
|
...props,
|
|
10502
|
-
children: /* @__PURE__ */
|
|
10340
|
+
children: /* @__PURE__ */ jsx58("div", { className: "aviala-card-bottom__trailing", children: renderTrailing() })
|
|
10503
10341
|
}
|
|
10504
10342
|
);
|
|
10505
10343
|
}
|
|
@@ -10512,9 +10350,9 @@ import {
|
|
|
10512
10350
|
forwardRef as forwardRef43,
|
|
10513
10351
|
isValidElement as isValidElement18
|
|
10514
10352
|
} from "react";
|
|
10515
|
-
import { Fragment as Fragment10, jsx as
|
|
10353
|
+
import { Fragment as Fragment10, jsx as jsx59, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
10516
10354
|
var Table = forwardRef43(
|
|
10517
|
-
({ className, children, ...props }, ref) => /* @__PURE__ */
|
|
10355
|
+
({ className, children, ...props }, ref) => /* @__PURE__ */ jsx59(
|
|
10518
10356
|
"div",
|
|
10519
10357
|
{
|
|
10520
10358
|
ref,
|
|
@@ -10527,7 +10365,7 @@ var Table = forwardRef43(
|
|
|
10527
10365
|
);
|
|
10528
10366
|
Table.displayName = "Table";
|
|
10529
10367
|
var TableRow = forwardRef43(
|
|
10530
|
-
({ className, header = false, children, ...props }, ref) => /* @__PURE__ */
|
|
10368
|
+
({ className, header = false, children, ...props }, ref) => /* @__PURE__ */ jsx59(
|
|
10531
10369
|
"div",
|
|
10532
10370
|
{
|
|
10533
10371
|
ref,
|
|
@@ -10541,7 +10379,7 @@ var TableRow = forwardRef43(
|
|
|
10541
10379
|
);
|
|
10542
10380
|
TableRow.displayName = "TableRow";
|
|
10543
10381
|
var TableHead = forwardRef43(
|
|
10544
|
-
({ className, content = "text", children, ...props }, ref) => /* @__PURE__ */
|
|
10382
|
+
({ className, content = "text", children, ...props }, ref) => /* @__PURE__ */ jsx59(
|
|
10545
10383
|
"div",
|
|
10546
10384
|
{
|
|
10547
10385
|
ref,
|
|
@@ -10549,7 +10387,7 @@ var TableHead = forwardRef43(
|
|
|
10549
10387
|
className: cn("aviala-table-head", className),
|
|
10550
10388
|
"data-content": content,
|
|
10551
10389
|
...props,
|
|
10552
|
-
children: typeof children === "string" || typeof children === "number" ? /* @__PURE__ */
|
|
10390
|
+
children: typeof children === "string" || typeof children === "number" ? /* @__PURE__ */ jsx59(Typography, { level: "caption", as: "span", children }) : children
|
|
10553
10391
|
}
|
|
10554
10392
|
)
|
|
10555
10393
|
);
|
|
@@ -10564,7 +10402,7 @@ function renderCellIcon(node) {
|
|
|
10564
10402
|
"shrink-0"
|
|
10565
10403
|
)
|
|
10566
10404
|
}) : node;
|
|
10567
|
-
return /* @__PURE__ */
|
|
10405
|
+
return /* @__PURE__ */ jsx59("span", { className: "aviala-table-cell__icon", children: content });
|
|
10568
10406
|
}
|
|
10569
10407
|
var TableCell = forwardRef43(
|
|
10570
10408
|
({
|
|
@@ -10585,29 +10423,29 @@ var TableCell = forwardRef43(
|
|
|
10585
10423
|
if (children != null) return children;
|
|
10586
10424
|
switch (content) {
|
|
10587
10425
|
case "checkbox":
|
|
10588
|
-
return /* @__PURE__ */
|
|
10426
|
+
return /* @__PURE__ */ jsx59(Checkbox, { ...checkboxProps });
|
|
10589
10427
|
case "icon+text":
|
|
10590
10428
|
return /* @__PURE__ */ jsxs48(Fragment10, { children: [
|
|
10591
10429
|
renderCellIcon(icon),
|
|
10592
|
-
/* @__PURE__ */
|
|
10430
|
+
/* @__PURE__ */ jsx59("span", { className: "aviala-table-cell__text", children: /* @__PURE__ */ jsx59(Typography, { level: "text", as: "span", children: text }) })
|
|
10593
10431
|
] });
|
|
10594
10432
|
case "people":
|
|
10595
10433
|
return /* @__PURE__ */ jsxs48(Fragment10, { children: [
|
|
10596
|
-
people ?? /* @__PURE__ */
|
|
10597
|
-
/* @__PURE__ */
|
|
10434
|
+
people ?? /* @__PURE__ */ jsx59(Avatar, { content: "text", level: "text", children: "A" }),
|
|
10435
|
+
/* @__PURE__ */ jsx59("span", { className: "aviala-table-cell__text", children: /* @__PURE__ */ jsx59(Typography, { level: "text", as: "span", children: text }) })
|
|
10598
10436
|
] });
|
|
10599
10437
|
case "badge":
|
|
10600
|
-
return badge ?? /* @__PURE__ */
|
|
10438
|
+
return badge ?? /* @__PURE__ */ jsx59(Badge, { style: "theme", level: "caption", children: badgeLabel ?? "Text" });
|
|
10601
10439
|
case "switch":
|
|
10602
|
-
return /* @__PURE__ */
|
|
10440
|
+
return /* @__PURE__ */ jsx59(Switch, { ...switchProps });
|
|
10603
10441
|
case "action":
|
|
10604
|
-
return /* @__PURE__ */
|
|
10442
|
+
return /* @__PURE__ */ jsx59("div", { className: "aviala-table-cell__actions", children: actions });
|
|
10605
10443
|
case "text":
|
|
10606
10444
|
default:
|
|
10607
|
-
return /* @__PURE__ */
|
|
10445
|
+
return /* @__PURE__ */ jsx59("span", { className: "aviala-table-cell__text", children: /* @__PURE__ */ jsx59(Typography, { level: "text", as: "span", children: text }) });
|
|
10608
10446
|
}
|
|
10609
10447
|
};
|
|
10610
|
-
return /* @__PURE__ */
|
|
10448
|
+
return /* @__PURE__ */ jsx59(
|
|
10611
10449
|
"div",
|
|
10612
10450
|
{
|
|
10613
10451
|
ref,
|