@lolmath/ui 6.2.0 → 6.4.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/es/index.css +28 -10
- package/dist/es/index.d.ts +10 -7
- package/dist/es/index.js +145 -73
- package/dist/es/index.js.map +1 -1
- package/dist/lib/index.css +28 -10
- package/dist/lib/index.d.ts +10 -7
- package/dist/lib/index.js +160 -91
- package/dist/lib/index.js.map +1 -1
- package/package.json +1 -1
package/dist/es/index.js
CHANGED
|
@@ -3,6 +3,15 @@ import {
|
|
|
3
3
|
RouterProvider,
|
|
4
4
|
DialogTrigger,
|
|
5
5
|
Dialog as Dialog3,
|
|
6
|
+
Collection,
|
|
7
|
+
Virtualizer,
|
|
8
|
+
ListBoxItem,
|
|
9
|
+
ListLayout as ListLayout3,
|
|
10
|
+
GridLayout,
|
|
11
|
+
WaterfallLayout,
|
|
12
|
+
TableLayout,
|
|
13
|
+
FieldError,
|
|
14
|
+
Size,
|
|
6
15
|
Popover as Popover3
|
|
7
16
|
} from "react-aria-components";
|
|
8
17
|
|
|
@@ -632,6 +641,8 @@ import {
|
|
|
632
641
|
ListBox as AriaListBox,
|
|
633
642
|
ListBoxItem as AriaListBoxItem,
|
|
634
643
|
Popover as AriaPopover,
|
|
644
|
+
Virtualizer as AriaVirtualizer,
|
|
645
|
+
ListLayout,
|
|
635
646
|
composeRenderProps as composeRenderProps10
|
|
636
647
|
} from "react-aria-components";
|
|
637
648
|
|
|
@@ -713,6 +724,21 @@ function SelectListBoxItem({ className, ...props }) {
|
|
|
713
724
|
}
|
|
714
725
|
);
|
|
715
726
|
}
|
|
727
|
+
function SelectVirtualizer(props) {
|
|
728
|
+
return /* @__PURE__ */ jsx12(
|
|
729
|
+
AriaVirtualizer,
|
|
730
|
+
{
|
|
731
|
+
layout: ListLayout,
|
|
732
|
+
layoutOptions: {
|
|
733
|
+
padding: 0,
|
|
734
|
+
gap: 0,
|
|
735
|
+
rowHeight: 31,
|
|
736
|
+
headingHeight: 35
|
|
737
|
+
},
|
|
738
|
+
...props
|
|
739
|
+
}
|
|
740
|
+
);
|
|
741
|
+
}
|
|
716
742
|
|
|
717
743
|
// src/components/slider/slider.tsx
|
|
718
744
|
import { cva as cva7, cx as cx9 } from "cva";
|
|
@@ -924,18 +950,11 @@ function Heading({
|
|
|
924
950
|
|
|
925
951
|
// src/components/typography/text.tsx
|
|
926
952
|
import { cva as cva9 } from "cva";
|
|
927
|
-
import { createElement as createElement2 } from "react";
|
|
928
953
|
import {
|
|
929
|
-
Label as AriaLabel
|
|
954
|
+
Label as AriaLabel,
|
|
955
|
+
Text as AriaText
|
|
930
956
|
} from "react-aria-components";
|
|
931
|
-
|
|
932
|
-
sm: "p",
|
|
933
|
-
base: "p",
|
|
934
|
-
md: "p",
|
|
935
|
-
lg: "p",
|
|
936
|
-
largeNumber: "span",
|
|
937
|
-
stat: "span"
|
|
938
|
-
};
|
|
957
|
+
import { jsx as jsx15 } from "react/jsx-runtime";
|
|
939
958
|
var text = cva9({
|
|
940
959
|
base: text_default.text,
|
|
941
960
|
variants: {
|
|
@@ -956,17 +975,12 @@ var text = cva9({
|
|
|
956
975
|
}
|
|
957
976
|
});
|
|
958
977
|
function Text({
|
|
959
|
-
as = "p",
|
|
960
978
|
preset = "base",
|
|
961
979
|
color = "grey100",
|
|
962
980
|
className,
|
|
963
981
|
...rest
|
|
964
982
|
}) {
|
|
965
|
-
|
|
966
|
-
return createElement2(elementType, {
|
|
967
|
-
...rest,
|
|
968
|
-
className: text({ preset, color, className })
|
|
969
|
-
});
|
|
983
|
+
return /* @__PURE__ */ jsx15(AriaText, { className: text({ preset, color, className }), ...rest });
|
|
970
984
|
}
|
|
971
985
|
function Label2({
|
|
972
986
|
preset = "sm",
|
|
@@ -974,10 +988,7 @@ function Label2({
|
|
|
974
988
|
className,
|
|
975
989
|
...rest
|
|
976
990
|
}) {
|
|
977
|
-
return
|
|
978
|
-
...rest,
|
|
979
|
-
className: text({ preset, color, className })
|
|
980
|
-
});
|
|
991
|
+
return /* @__PURE__ */ jsx15(AriaLabel, { className: text({ preset, color, className }), ...rest });
|
|
981
992
|
}
|
|
982
993
|
|
|
983
994
|
// src/components/sonner/sonner-error.svg
|
|
@@ -996,10 +1007,10 @@ var sonner_warning_default = "data:image/svg+xml,%3Csvg%20width%3D%2220%22%20hei
|
|
|
996
1007
|
var sonner_default = { "toast": "toast_4d9ce", "default": "default_4d9ce", "title": "title_4d9ce", "content": "content_4d9ce", "icon": "icon_4d9ce", "actions": "actions_4d9ce", "button": "button_4d9ce", "closeButton": "closeButton_4d9ce", "loader": "loader_4d9ce" };
|
|
997
1008
|
|
|
998
1009
|
// src/components/sonner/sonner.tsx
|
|
999
|
-
import { jsx as
|
|
1010
|
+
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
1000
1011
|
var sonner = sonnerToast;
|
|
1001
1012
|
function Sonner(props) {
|
|
1002
|
-
return /* @__PURE__ */
|
|
1013
|
+
return /* @__PURE__ */ jsx16(
|
|
1003
1014
|
Toaster,
|
|
1004
1015
|
{
|
|
1005
1016
|
...props,
|
|
@@ -1043,11 +1054,11 @@ function Sonner(props) {
|
|
|
1043
1054
|
[props.toastOptions]
|
|
1044
1055
|
),
|
|
1045
1056
|
icons: {
|
|
1046
|
-
loading: /* @__PURE__ */
|
|
1047
|
-
success: /* @__PURE__ */
|
|
1048
|
-
error: /* @__PURE__ */
|
|
1049
|
-
warning: /* @__PURE__ */
|
|
1050
|
-
info: /* @__PURE__ */
|
|
1057
|
+
loading: /* @__PURE__ */ jsx16(Spinner, {}),
|
|
1058
|
+
success: /* @__PURE__ */ jsx16("img", { src: sonner_success_default, alt: "" }),
|
|
1059
|
+
error: /* @__PURE__ */ jsx16("img", { src: sonner_error_default, alt: "" }),
|
|
1060
|
+
warning: /* @__PURE__ */ jsx16("img", { src: sonner_warning_default, alt: "" }),
|
|
1061
|
+
info: /* @__PURE__ */ jsx16("img", { src: sonner_info_default, alt: "" })
|
|
1051
1062
|
}
|
|
1052
1063
|
}
|
|
1053
1064
|
);
|
|
@@ -1064,14 +1075,14 @@ import {
|
|
|
1064
1075
|
var switch_default = { "switch": "switch_cfb98", "track": "track_cfb98", "knob": "knob_cfb98" };
|
|
1065
1076
|
|
|
1066
1077
|
// src/components/switch.tsx
|
|
1067
|
-
import { Fragment as Fragment7, jsx as
|
|
1078
|
+
import { Fragment as Fragment7, jsx as jsx17, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1068
1079
|
function Switch({
|
|
1069
1080
|
className,
|
|
1070
1081
|
placeholder,
|
|
1071
1082
|
children,
|
|
1072
1083
|
...props
|
|
1073
1084
|
}) {
|
|
1074
|
-
return /* @__PURE__ */
|
|
1085
|
+
return /* @__PURE__ */ jsx17(
|
|
1075
1086
|
AriaSwitch,
|
|
1076
1087
|
{
|
|
1077
1088
|
...props,
|
|
@@ -1086,7 +1097,7 @@ function Switch({
|
|
|
1086
1097
|
)
|
|
1087
1098
|
),
|
|
1088
1099
|
children: (values) => /* @__PURE__ */ jsxs9(Fragment7, { children: [
|
|
1089
|
-
/* @__PURE__ */
|
|
1100
|
+
/* @__PURE__ */ jsx17("div", { className: switch_default.track, children: /* @__PURE__ */ jsx17("span", { className: switch_default.knob }) }),
|
|
1090
1101
|
typeof children === "function" ? children(values) : children
|
|
1091
1102
|
] })
|
|
1092
1103
|
}
|
|
@@ -1107,13 +1118,13 @@ import {
|
|
|
1107
1118
|
var tabs_default = { "list": "list_c42a1", "tab": "tab_c42a1", "indicator": "indicator_c42a1" };
|
|
1108
1119
|
|
|
1109
1120
|
// src/components/tabs.tsx
|
|
1110
|
-
import { Fragment as Fragment8, jsx as
|
|
1121
|
+
import { Fragment as Fragment8, jsx as jsx18, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1111
1122
|
var Tabs = AriaTabs;
|
|
1112
1123
|
function TabList({
|
|
1113
1124
|
className,
|
|
1114
1125
|
...rest
|
|
1115
1126
|
}) {
|
|
1116
|
-
return /* @__PURE__ */
|
|
1127
|
+
return /* @__PURE__ */ jsx18(
|
|
1117
1128
|
AriaTabList,
|
|
1118
1129
|
{
|
|
1119
1130
|
...rest,
|
|
@@ -1125,7 +1136,7 @@ function TabList({
|
|
|
1125
1136
|
);
|
|
1126
1137
|
}
|
|
1127
1138
|
function Tab({ children, className, ...rest }) {
|
|
1128
|
-
return /* @__PURE__ */
|
|
1139
|
+
return /* @__PURE__ */ jsx18(
|
|
1129
1140
|
AriaTab,
|
|
1130
1141
|
{
|
|
1131
1142
|
...rest,
|
|
@@ -1135,13 +1146,13 @@ function Tab({ children, className, ...rest }) {
|
|
|
1135
1146
|
),
|
|
1136
1147
|
children: (values) => /* @__PURE__ */ jsxs10(Fragment8, { children: [
|
|
1137
1148
|
typeof children === "function" ? children(values) : children,
|
|
1138
|
-
values.isSelected && /* @__PURE__ */
|
|
1149
|
+
values.isSelected && /* @__PURE__ */ jsx18("div", { className: tabs_default.indicator })
|
|
1139
1150
|
] })
|
|
1140
1151
|
}
|
|
1141
1152
|
);
|
|
1142
1153
|
}
|
|
1143
1154
|
function TabPanel({ ...rest }) {
|
|
1144
|
-
return /* @__PURE__ */
|
|
1155
|
+
return /* @__PURE__ */ jsx18(AriaTabPanel, { ...rest });
|
|
1145
1156
|
}
|
|
1146
1157
|
|
|
1147
1158
|
// src/components/text-area.tsx
|
|
@@ -1163,7 +1174,7 @@ import { cva as cva10 } from "cva";
|
|
|
1163
1174
|
var text_field_default = { "textField": "textField_32558", "small": "small_32558", "medium": "medium_32558", "large": "large_32558", "textArea": "textArea_32558" };
|
|
1164
1175
|
|
|
1165
1176
|
// src/components/text-field.tsx
|
|
1166
|
-
import { Fragment as Fragment9, jsx as
|
|
1177
|
+
import { Fragment as Fragment9, jsx as jsx19, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1167
1178
|
var textField = cva10({
|
|
1168
1179
|
base: text_field_default.textField,
|
|
1169
1180
|
variants: {
|
|
@@ -1182,9 +1193,9 @@ function TextField({
|
|
|
1182
1193
|
size = "medium",
|
|
1183
1194
|
...props
|
|
1184
1195
|
}) {
|
|
1185
|
-
return /* @__PURE__ */
|
|
1196
|
+
return /* @__PURE__ */ jsx19(AriaTextField, { ...props, children: (values) => /* @__PURE__ */ jsxs11(Fragment9, { children: [
|
|
1186
1197
|
typeof children === "function" ? children(values) : children,
|
|
1187
|
-
/* @__PURE__ */
|
|
1198
|
+
/* @__PURE__ */ jsx19(
|
|
1188
1199
|
AriaInput3,
|
|
1189
1200
|
{
|
|
1190
1201
|
type: "text",
|
|
@@ -1203,15 +1214,15 @@ function TextField({
|
|
|
1203
1214
|
}
|
|
1204
1215
|
|
|
1205
1216
|
// src/components/text-area.tsx
|
|
1206
|
-
import { Fragment as Fragment10, jsx as
|
|
1217
|
+
import { Fragment as Fragment10, jsx as jsx20, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1207
1218
|
function TextArea({
|
|
1208
1219
|
textAreaProps = {},
|
|
1209
1220
|
children,
|
|
1210
1221
|
...props
|
|
1211
1222
|
}) {
|
|
1212
|
-
return /* @__PURE__ */
|
|
1223
|
+
return /* @__PURE__ */ jsx20(AriaTextField2, { ...props, children: (values) => /* @__PURE__ */ jsxs12(Fragment10, { children: [
|
|
1213
1224
|
typeof children === "function" ? children(values) : children,
|
|
1214
|
-
/* @__PURE__ */
|
|
1225
|
+
/* @__PURE__ */ jsx20(
|
|
1215
1226
|
AriaTextArea,
|
|
1216
1227
|
{
|
|
1217
1228
|
...textAreaProps,
|
|
@@ -1234,7 +1245,7 @@ import {
|
|
|
1234
1245
|
ToggleButton as AriaToggleButton,
|
|
1235
1246
|
composeRenderProps as composeRenderProps16
|
|
1236
1247
|
} from "react-aria-components";
|
|
1237
|
-
import { jsx as
|
|
1248
|
+
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
1238
1249
|
var button2 = cva11({
|
|
1239
1250
|
base: button_default.button,
|
|
1240
1251
|
variants: {
|
|
@@ -1267,7 +1278,7 @@ function ToggleButton({
|
|
|
1267
1278
|
thin = preset === "dimmed",
|
|
1268
1279
|
...props
|
|
1269
1280
|
}) {
|
|
1270
|
-
return /* @__PURE__ */
|
|
1281
|
+
return /* @__PURE__ */ jsx21(
|
|
1271
1282
|
AriaToggleButton,
|
|
1272
1283
|
{
|
|
1273
1284
|
...props,
|
|
@@ -1300,7 +1311,7 @@ import {
|
|
|
1300
1311
|
var popover_default = { "popover": "popover_f1fe1", "top": "top_f1fe1", "bottom": "bottom_f1fe1", "left": "left_f1fe1", "right": "right_f1fe1", "arrow": "arrow_f1fe1", "outer": "outer_f1fe1", "inner": "inner_f1fe1" };
|
|
1301
1312
|
|
|
1302
1313
|
// src/components/popover.tsx
|
|
1303
|
-
import { Fragment as Fragment11, jsx as
|
|
1314
|
+
import { Fragment as Fragment11, jsx as jsx22, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
1304
1315
|
var popover = cva12({
|
|
1305
1316
|
base: popover_default.popover,
|
|
1306
1317
|
variants: {
|
|
@@ -1326,7 +1337,7 @@ var arrow = cva12({
|
|
|
1326
1337
|
}
|
|
1327
1338
|
});
|
|
1328
1339
|
function Popover({ children, className, ...props }) {
|
|
1329
|
-
return /* @__PURE__ */
|
|
1340
|
+
return /* @__PURE__ */ jsx22(
|
|
1330
1341
|
AriaPopover2,
|
|
1331
1342
|
{
|
|
1332
1343
|
...props,
|
|
@@ -1339,7 +1350,7 @@ function Popover({ children, className, ...props }) {
|
|
|
1339
1350
|
})
|
|
1340
1351
|
),
|
|
1341
1352
|
children: (values) => /* @__PURE__ */ jsxs13(Fragment11, { children: [
|
|
1342
|
-
/* @__PURE__ */
|
|
1353
|
+
/* @__PURE__ */ jsx22(OverlayArrow, { children: (values2) => /* @__PURE__ */ jsx22(Fragment11, { children: /* @__PURE__ */ jsxs13(
|
|
1343
1354
|
"svg",
|
|
1344
1355
|
{
|
|
1345
1356
|
viewBox: "0 0 12 6",
|
|
@@ -1351,43 +1362,48 @@ function Popover({ children, className, ...props }) {
|
|
|
1351
1362
|
height: 10,
|
|
1352
1363
|
"aria-hidden": "true",
|
|
1353
1364
|
children: [
|
|
1354
|
-
/* @__PURE__ */
|
|
1355
|
-
/* @__PURE__ */
|
|
1365
|
+
/* @__PURE__ */ jsx22("path", { d: "M0 0,L6 6,L12 0", className: popover_default.outer }),
|
|
1366
|
+
/* @__PURE__ */ jsx22("path", { d: "M2 0 6 4 10 0", className: popover_default.inner })
|
|
1356
1367
|
]
|
|
1357
1368
|
}
|
|
1358
1369
|
) }) }),
|
|
1359
|
-
/* @__PURE__ */
|
|
1370
|
+
/* @__PURE__ */ jsx22(Dialog2, { children: typeof children === "function" ? children(values) : children })
|
|
1360
1371
|
] })
|
|
1361
1372
|
}
|
|
1362
1373
|
);
|
|
1363
1374
|
}
|
|
1364
1375
|
|
|
1365
|
-
// src/components/menu.tsx
|
|
1376
|
+
// src/components/menu/menu.tsx
|
|
1366
1377
|
import { cx as cx13 } from "cva";
|
|
1367
1378
|
import {
|
|
1379
|
+
Header as AriaHeader,
|
|
1368
1380
|
Menu as AriaMenu,
|
|
1369
1381
|
MenuItem as AriaMenuItem,
|
|
1382
|
+
MenuSection as AriaMenuSection,
|
|
1370
1383
|
MenuTrigger as AriaMenuTrigger,
|
|
1371
1384
|
Popover as AriaPopover3,
|
|
1385
|
+
Separator as AriaSeparator,
|
|
1372
1386
|
SubmenuTrigger as AriaSubmenuTrigger,
|
|
1387
|
+
Virtualizer as AriaVirtualizer2,
|
|
1388
|
+
ListLayout as ListLayout2,
|
|
1373
1389
|
composeRenderProps as composeRenderProps18
|
|
1374
1390
|
} from "react-aria-components";
|
|
1375
1391
|
|
|
1376
|
-
// src/components/menu.module.css
|
|
1377
|
-
var menu_default = { "menu": "
|
|
1392
|
+
// src/components/menu/menu.module.css
|
|
1393
|
+
var menu_default = { "menu": "menu_c1735", "item": "item_c1735", "popover": "popover_c1735", "section": "section_c1735", "header": "header_c1735", "separator": "separator_c1735" };
|
|
1378
1394
|
|
|
1379
|
-
// src/components/menu.tsx
|
|
1380
|
-
import { jsx as
|
|
1395
|
+
// src/components/menu/menu.tsx
|
|
1396
|
+
import { jsx as jsx23 } from "react/jsx-runtime";
|
|
1381
1397
|
var MenuTrigger = AriaMenuTrigger;
|
|
1382
1398
|
var SubmenuTrigger = AriaSubmenuTrigger;
|
|
1383
1399
|
function Menu({ className, ...props }) {
|
|
1384
|
-
return /* @__PURE__ */
|
|
1400
|
+
return /* @__PURE__ */ jsx23(AriaMenu, { ...props, className: cx13(menu_default.menu, className) });
|
|
1385
1401
|
}
|
|
1386
1402
|
function MenuItem({
|
|
1387
1403
|
className,
|
|
1388
1404
|
...props
|
|
1389
1405
|
}) {
|
|
1390
|
-
return /* @__PURE__ */
|
|
1406
|
+
return /* @__PURE__ */ jsx23(
|
|
1391
1407
|
AriaMenuItem,
|
|
1392
1408
|
{
|
|
1393
1409
|
...props,
|
|
@@ -1399,7 +1415,7 @@ function MenuItem({
|
|
|
1399
1415
|
);
|
|
1400
1416
|
}
|
|
1401
1417
|
function MenuPopover({ className, ...props }) {
|
|
1402
|
-
return /* @__PURE__ */
|
|
1418
|
+
return /* @__PURE__ */ jsx23(
|
|
1403
1419
|
AriaPopover3,
|
|
1404
1420
|
{
|
|
1405
1421
|
...props,
|
|
@@ -1410,6 +1426,48 @@ function MenuPopover({ className, ...props }) {
|
|
|
1410
1426
|
}
|
|
1411
1427
|
);
|
|
1412
1428
|
}
|
|
1429
|
+
function MenuSection({
|
|
1430
|
+
className,
|
|
1431
|
+
...props
|
|
1432
|
+
}) {
|
|
1433
|
+
return /* @__PURE__ */ jsx23(AriaMenuSection, { ...props, className: cx13(className, menu_default.section) });
|
|
1434
|
+
}
|
|
1435
|
+
function MenuHeader({
|
|
1436
|
+
className,
|
|
1437
|
+
...props
|
|
1438
|
+
}) {
|
|
1439
|
+
return /* @__PURE__ */ jsx23(
|
|
1440
|
+
AriaHeader,
|
|
1441
|
+
{
|
|
1442
|
+
...props,
|
|
1443
|
+
className: heading({
|
|
1444
|
+
className: cx13(className, menu_default.header),
|
|
1445
|
+
color: "gold100",
|
|
1446
|
+
preset: "h5"
|
|
1447
|
+
})
|
|
1448
|
+
}
|
|
1449
|
+
);
|
|
1450
|
+
}
|
|
1451
|
+
function MenuSeparator({ className, ...props }) {
|
|
1452
|
+
return /* @__PURE__ */ jsx23(AriaSeparator, { ...props, className: cx13(className, menu_default.separator) });
|
|
1453
|
+
}
|
|
1454
|
+
function MenuVirtualizer(props) {
|
|
1455
|
+
return /* @__PURE__ */ jsx23(
|
|
1456
|
+
AriaVirtualizer2,
|
|
1457
|
+
{
|
|
1458
|
+
layout: ListLayout2,
|
|
1459
|
+
layoutOptions: {
|
|
1460
|
+
padding: 0,
|
|
1461
|
+
gap: 0,
|
|
1462
|
+
rowHeight: 30,
|
|
1463
|
+
headingHeight: 35
|
|
1464
|
+
// estimatedRowHeight: 30,
|
|
1465
|
+
// estimatedHeadingHeight: 35,
|
|
1466
|
+
},
|
|
1467
|
+
...props
|
|
1468
|
+
}
|
|
1469
|
+
);
|
|
1470
|
+
}
|
|
1413
1471
|
|
|
1414
1472
|
// src/components/select/multiple-select.tsx
|
|
1415
1473
|
import { cva as cva13 } from "cva";
|
|
@@ -1433,7 +1491,7 @@ var multiple_select_default = { "multiSelect": "multiSelect_e6fde", "focusWithin
|
|
|
1433
1491
|
var select_closed_default = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAASCAYAAACAa1QyAAAAiUlEQVR42mL8//8/A6mAiYEMQJYmFnSBk6vzYcwmIP4LxI0gjnnoRNyaoKAViKuQ+I14bQKCTiAuA+I6IGYG4gZ0jSw4nFwB1QwDjIRsKkbjNwxckFNNUw8QlyLx66EYb0D8A+IuIGaDyjcQE0+gOPoDxC1I8dNASBMDNDX8hWKMIGcc3FkDIMAA1n8bpHnZDOAAAAAASUVORK5CYII=";
|
|
1434
1492
|
|
|
1435
1493
|
// src/components/select/multiple-select.tsx
|
|
1436
|
-
import { Fragment as Fragment12, jsx as
|
|
1494
|
+
import { Fragment as Fragment12, jsx as jsx24, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
1437
1495
|
var multiSelect = cva13({
|
|
1438
1496
|
base: multiple_select_default.multiSelect,
|
|
1439
1497
|
variants: {
|
|
@@ -1540,20 +1598,20 @@ function MultipleSelect({
|
|
|
1540
1598
|
};
|
|
1541
1599
|
}, []);
|
|
1542
1600
|
const triggerButtonRef = React.useRef(null);
|
|
1543
|
-
return /* @__PURE__ */
|
|
1601
|
+
return /* @__PURE__ */ jsx24(Group2, { children: (groupRenderProps) => /* @__PURE__ */ jsx24(Fragment12, { children: /* @__PURE__ */ jsxs14(
|
|
1544
1602
|
"div",
|
|
1545
1603
|
{
|
|
1546
1604
|
ref: triggerRef,
|
|
1547
1605
|
className: multiSelect({ size, ...groupRenderProps }),
|
|
1548
1606
|
children: [
|
|
1549
1607
|
/* @__PURE__ */ jsxs14("div", { className: multiple_select_default.tagsAndInput, children: [
|
|
1550
|
-
/* @__PURE__ */
|
|
1608
|
+
/* @__PURE__ */ jsx24(
|
|
1551
1609
|
TagGroup,
|
|
1552
1610
|
{
|
|
1553
1611
|
"aria-label": "Selected items",
|
|
1554
1612
|
id: tagGroupIdentifier,
|
|
1555
1613
|
onRemove,
|
|
1556
|
-
children: /* @__PURE__ */
|
|
1614
|
+
children: /* @__PURE__ */ jsx24(TagList, { items: selectedItems, className: multiple_select_default.tagList, children: props.tag })
|
|
1557
1615
|
}
|
|
1558
1616
|
),
|
|
1559
1617
|
/* @__PURE__ */ jsxs14(
|
|
@@ -1569,7 +1627,7 @@ function MultipleSelect({
|
|
|
1569
1627
|
onSelectionChange,
|
|
1570
1628
|
onInputChange,
|
|
1571
1629
|
children: [
|
|
1572
|
-
/* @__PURE__ */
|
|
1630
|
+
/* @__PURE__ */ jsx24(
|
|
1573
1631
|
Input,
|
|
1574
1632
|
{
|
|
1575
1633
|
className: multiple_select_default.input,
|
|
@@ -1583,7 +1641,7 @@ function MultipleSelect({
|
|
|
1583
1641
|
...props.inputProps
|
|
1584
1642
|
}
|
|
1585
1643
|
),
|
|
1586
|
-
/* @__PURE__ */
|
|
1644
|
+
/* @__PURE__ */ jsx24(VisuallyHidden, { children: /* @__PURE__ */ jsx24(
|
|
1587
1645
|
Button2,
|
|
1588
1646
|
{
|
|
1589
1647
|
slot: "remove",
|
|
@@ -1592,21 +1650,21 @@ function MultipleSelect({
|
|
|
1592
1650
|
children: "Remove"
|
|
1593
1651
|
}
|
|
1594
1652
|
) }),
|
|
1595
|
-
/* @__PURE__ */
|
|
1653
|
+
/* @__PURE__ */ jsx24(
|
|
1596
1654
|
Popover2,
|
|
1597
1655
|
{
|
|
1598
1656
|
className: select_default.popover,
|
|
1599
1657
|
style: { width: `${width}px` },
|
|
1600
1658
|
triggerRef,
|
|
1601
1659
|
trigger: "ComboBox",
|
|
1602
|
-
children: /* @__PURE__ */
|
|
1660
|
+
children: /* @__PURE__ */ jsx24(
|
|
1603
1661
|
ListBox,
|
|
1604
1662
|
{
|
|
1605
1663
|
className: select_default.listBox,
|
|
1606
|
-
renderEmptyState: () => renderEmptyState ? renderEmptyState(fieldState.inputValue) : /* @__PURE__ */
|
|
1664
|
+
renderEmptyState: () => renderEmptyState ? renderEmptyState(fieldState.inputValue) : /* @__PURE__ */ jsx24(Text, { className: multiple_select_default.emptyText, children: fieldState.inputValue ? /* @__PURE__ */ jsxs14(Fragment12, { children: [
|
|
1607
1665
|
"No results found for:",
|
|
1608
1666
|
" ",
|
|
1609
|
-
/* @__PURE__ */
|
|
1667
|
+
/* @__PURE__ */ jsx24("strong", { children: fieldState.inputValue })
|
|
1610
1668
|
] }) : "No options" }),
|
|
1611
1669
|
selectionMode: "multiple",
|
|
1612
1670
|
children
|
|
@@ -1618,13 +1676,13 @@ function MultipleSelect({
|
|
|
1618
1676
|
}
|
|
1619
1677
|
)
|
|
1620
1678
|
] }),
|
|
1621
|
-
/* @__PURE__ */
|
|
1679
|
+
/* @__PURE__ */ jsx24("div", { "aria-hidden": true, children: /* @__PURE__ */ jsx24(
|
|
1622
1680
|
AriaButton5,
|
|
1623
1681
|
{
|
|
1624
1682
|
excludeFromTabOrder: true,
|
|
1625
1683
|
onPress: () => triggerButtonRef.current?.click(),
|
|
1626
1684
|
className: multiple_select_default.chevronButton,
|
|
1627
|
-
children: /* @__PURE__ */
|
|
1685
|
+
children: /* @__PURE__ */ jsx24("img", { src: select_closed_default, alt: "" })
|
|
1628
1686
|
}
|
|
1629
1687
|
) })
|
|
1630
1688
|
]
|
|
@@ -1644,9 +1702,9 @@ import {
|
|
|
1644
1702
|
var tag_default = { "tag": "tag_c7c88", "text": "text_c7c88", "remove": "remove_c7c88" };
|
|
1645
1703
|
|
|
1646
1704
|
// src/components/tag/tag.tsx
|
|
1647
|
-
import { Fragment as Fragment13, jsx as
|
|
1705
|
+
import { Fragment as Fragment13, jsx as jsx25, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
1648
1706
|
function Tag({ children, className, ...props }) {
|
|
1649
|
-
return /* @__PURE__ */
|
|
1707
|
+
return /* @__PURE__ */ jsx25(
|
|
1650
1708
|
AriaTag,
|
|
1651
1709
|
{
|
|
1652
1710
|
...props,
|
|
@@ -1655,8 +1713,8 @@ function Tag({ children, className, ...props }) {
|
|
|
1655
1713
|
(className2) => cx14(tag_default.tag, className2)
|
|
1656
1714
|
),
|
|
1657
1715
|
children: composeRenderProps19(children, (children2) => /* @__PURE__ */ jsxs15(Fragment13, { children: [
|
|
1658
|
-
/* @__PURE__ */
|
|
1659
|
-
/* @__PURE__ */
|
|
1716
|
+
/* @__PURE__ */ jsx25("span", { className: tag_default.text, children: children2 }),
|
|
1717
|
+
/* @__PURE__ */ jsx25(AriaButton6, { slot: "remove", className: tag_default.remove })
|
|
1660
1718
|
] }))
|
|
1661
1719
|
}
|
|
1662
1720
|
);
|
|
@@ -1671,6 +1729,7 @@ export {
|
|
|
1671
1729
|
Button2 as Button,
|
|
1672
1730
|
ButtonLink,
|
|
1673
1731
|
Checkbox,
|
|
1732
|
+
Collection,
|
|
1674
1733
|
Dialog3 as Dialog,
|
|
1675
1734
|
DialogButtons,
|
|
1676
1735
|
DialogHeading,
|
|
@@ -1680,12 +1739,20 @@ export {
|
|
|
1680
1739
|
DisclosureGroup,
|
|
1681
1740
|
DisclosurePanel,
|
|
1682
1741
|
Divider,
|
|
1742
|
+
FieldError,
|
|
1743
|
+
GridLayout,
|
|
1683
1744
|
Heading,
|
|
1684
1745
|
Label2 as Label,
|
|
1746
|
+
ListBoxItem,
|
|
1747
|
+
ListLayout3 as ListLayout,
|
|
1685
1748
|
Menu,
|
|
1749
|
+
MenuHeader,
|
|
1686
1750
|
MenuItem,
|
|
1687
1751
|
MenuPopover,
|
|
1752
|
+
MenuSection,
|
|
1753
|
+
MenuSeparator,
|
|
1688
1754
|
MenuTrigger,
|
|
1755
|
+
MenuVirtualizer,
|
|
1689
1756
|
Modal,
|
|
1690
1757
|
MultipleSelect,
|
|
1691
1758
|
NumberField,
|
|
@@ -1701,6 +1768,8 @@ export {
|
|
|
1701
1768
|
SelectListBoxItem,
|
|
1702
1769
|
SelectPopover,
|
|
1703
1770
|
SelectValue,
|
|
1771
|
+
SelectVirtualizer,
|
|
1772
|
+
Size,
|
|
1704
1773
|
Slider,
|
|
1705
1774
|
SliderOutput,
|
|
1706
1775
|
Sonner,
|
|
@@ -1710,6 +1779,7 @@ export {
|
|
|
1710
1779
|
Tab,
|
|
1711
1780
|
TabList,
|
|
1712
1781
|
TabPanel,
|
|
1782
|
+
TableLayout,
|
|
1713
1783
|
Tabs,
|
|
1714
1784
|
Tag,
|
|
1715
1785
|
Text,
|
|
@@ -1717,6 +1787,8 @@ export {
|
|
|
1717
1787
|
TextField,
|
|
1718
1788
|
ToggleButton,
|
|
1719
1789
|
Popover3 as UnstyledPopover,
|
|
1790
|
+
Virtualizer,
|
|
1791
|
+
WaterfallLayout,
|
|
1720
1792
|
_Button,
|
|
1721
1793
|
_ButtonLink,
|
|
1722
1794
|
button,
|