@lolmath/ui 6.3.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/lib/index.js CHANGED
@@ -46,8 +46,12 @@ __export(src_exports, {
46
46
  DisclosureGroup: () => DisclosureGroup,
47
47
  DisclosurePanel: () => DisclosurePanel,
48
48
  Divider: () => Divider,
49
+ FieldError: () => import_react_aria_components25.FieldError,
50
+ GridLayout: () => import_react_aria_components25.GridLayout,
49
51
  Heading: () => Heading,
50
52
  Label: () => Label2,
53
+ ListBoxItem: () => import_react_aria_components25.ListBoxItem,
54
+ ListLayout: () => import_react_aria_components25.ListLayout,
51
55
  Menu: () => Menu,
52
56
  MenuHeader: () => MenuHeader,
53
57
  MenuItem: () => MenuItem,
@@ -55,6 +59,7 @@ __export(src_exports, {
55
59
  MenuSection: () => MenuSection,
56
60
  MenuSeparator: () => MenuSeparator,
57
61
  MenuTrigger: () => MenuTrigger,
62
+ MenuVirtualizer: () => MenuVirtualizer,
58
63
  Modal: () => Modal,
59
64
  MultipleSelect: () => MultipleSelect,
60
65
  NumberField: () => NumberField,
@@ -70,6 +75,8 @@ __export(src_exports, {
70
75
  SelectListBoxItem: () => SelectListBoxItem,
71
76
  SelectPopover: () => SelectPopover,
72
77
  SelectValue: () => import_react_aria_components12.SelectValue,
78
+ SelectVirtualizer: () => SelectVirtualizer,
79
+ Size: () => import_react_aria_components25.Size,
73
80
  Slider: () => Slider,
74
81
  SliderOutput: () => SliderOutput,
75
82
  Sonner: () => Sonner,
@@ -79,6 +86,7 @@ __export(src_exports, {
79
86
  Tab: () => Tab,
80
87
  TabList: () => TabList,
81
88
  TabPanel: () => TabPanel,
89
+ TableLayout: () => import_react_aria_components25.TableLayout,
82
90
  Tabs: () => Tabs,
83
91
  Tag: () => Tag,
84
92
  Text: () => Text,
@@ -86,6 +94,8 @@ __export(src_exports, {
86
94
  TextField: () => TextField,
87
95
  ToggleButton: () => ToggleButton,
88
96
  UnstyledPopover: () => import_react_aria_components25.Popover,
97
+ Virtualizer: () => import_react_aria_components25.Virtualizer,
98
+ WaterfallLayout: () => import_react_aria_components25.WaterfallLayout,
89
99
  _Button: () => _Button,
90
100
  _ButtonLink: () => _ButtonLink,
91
101
  button: () => button,
@@ -755,6 +765,21 @@ function SelectListBoxItem({ className, ...props }) {
755
765
  }
756
766
  );
757
767
  }
768
+ function SelectVirtualizer(props) {
769
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
770
+ import_react_aria_components11.Virtualizer,
771
+ {
772
+ layout: import_react_aria_components11.ListLayout,
773
+ layoutOptions: {
774
+ padding: 0,
775
+ gap: 0,
776
+ rowHeight: 31,
777
+ headingHeight: 35
778
+ },
779
+ ...props
780
+ }
781
+ );
782
+ }
758
783
 
759
784
  // src/components/slider/slider.tsx
760
785
  var import_cva12 = require("cva");
@@ -888,7 +913,7 @@ function SliderOutput({
888
913
  }
889
914
 
890
915
  // src/components/sonner/sonner.tsx
891
- var import_react5 = require("react");
916
+ var import_react4 = require("react");
892
917
  var import_sonner = require("sonner");
893
918
 
894
919
  // src/components/spinner/spinner.tsx
@@ -957,16 +982,8 @@ function Heading({
957
982
 
958
983
  // src/components/typography/text.tsx
959
984
  var import_cva15 = require("cva");
960
- var import_react4 = require("react");
961
985
  var import_react_aria_components14 = require("react-aria-components");
962
- var presetElements = {
963
- sm: "p",
964
- base: "p",
965
- md: "p",
966
- lg: "p",
967
- largeNumber: "span",
968
- stat: "span"
969
- };
986
+ var import_jsx_runtime15 = require("react/jsx-runtime");
970
987
  var text = (0, import_cva15.cva)({
971
988
  base: text_default.text,
972
989
  variants: {
@@ -987,17 +1004,12 @@ var text = (0, import_cva15.cva)({
987
1004
  }
988
1005
  });
989
1006
  function Text({
990
- as = "p",
991
1007
  preset = "base",
992
1008
  color = "grey100",
993
1009
  className,
994
1010
  ...rest
995
1011
  }) {
996
- const elementType = as ?? presetElements[preset];
997
- return (0, import_react4.createElement)(elementType, {
998
- ...rest,
999
- className: text({ preset, color, className })
1000
- });
1012
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_react_aria_components14.Text, { className: text({ preset, color, className }), ...rest });
1001
1013
  }
1002
1014
  function Label2({
1003
1015
  preset = "sm",
@@ -1005,10 +1017,7 @@ function Label2({
1005
1017
  className,
1006
1018
  ...rest
1007
1019
  }) {
1008
- return (0, import_react4.createElement)(import_react_aria_components14.Label, {
1009
- ...rest,
1010
- className: text({ preset, color, className })
1011
- });
1020
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_react_aria_components14.Label, { className: text({ preset, color, className }), ...rest });
1012
1021
  }
1013
1022
 
1014
1023
  // src/components/sonner/sonner-error.svg
@@ -1027,14 +1036,14 @@ var sonner_warning_default = "data:image/svg+xml,%3Csvg%20width%3D%2220%22%20hei
1027
1036
  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" };
1028
1037
 
1029
1038
  // src/components/sonner/sonner.tsx
1030
- var import_jsx_runtime15 = require("react/jsx-runtime");
1039
+ var import_jsx_runtime16 = require("react/jsx-runtime");
1031
1040
  var sonner = import_sonner.toast;
1032
1041
  function Sonner(props) {
1033
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1042
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1034
1043
  import_sonner.Toaster,
1035
1044
  {
1036
1045
  ...props,
1037
- toastOptions: (0, import_react5.useMemo)(
1046
+ toastOptions: (0, import_react4.useMemo)(
1038
1047
  () => ({
1039
1048
  ...props.toastOptions,
1040
1049
  unstyled: true,
@@ -1074,11 +1083,11 @@ function Sonner(props) {
1074
1083
  [props.toastOptions]
1075
1084
  ),
1076
1085
  icons: {
1077
- loading: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Spinner, {}),
1078
- success: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("img", { src: sonner_success_default, alt: "" }),
1079
- error: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("img", { src: sonner_error_default, alt: "" }),
1080
- warning: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("img", { src: sonner_warning_default, alt: "" }),
1081
- info: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("img", { src: sonner_info_default, alt: "" })
1086
+ loading: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Spinner, {}),
1087
+ success: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("img", { src: sonner_success_default, alt: "" }),
1088
+ error: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("img", { src: sonner_error_default, alt: "" }),
1089
+ warning: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("img", { src: sonner_warning_default, alt: "" }),
1090
+ info: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("img", { src: sonner_info_default, alt: "" })
1082
1091
  }
1083
1092
  }
1084
1093
  );
@@ -1092,14 +1101,14 @@ var import_react_aria_components15 = require("react-aria-components");
1092
1101
  var switch_default = { "switch": "switch_cfb98", "track": "track_cfb98", "knob": "knob_cfb98" };
1093
1102
 
1094
1103
  // src/components/switch.tsx
1095
- var import_jsx_runtime16 = require("react/jsx-runtime");
1104
+ var import_jsx_runtime17 = require("react/jsx-runtime");
1096
1105
  function Switch({
1097
1106
  className,
1098
1107
  placeholder,
1099
1108
  children,
1100
1109
  ...props
1101
1110
  }) {
1102
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1111
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1103
1112
  import_react_aria_components15.Switch,
1104
1113
  {
1105
1114
  ...props,
@@ -1113,8 +1122,8 @@ function Switch({
1113
1122
  className2
1114
1123
  )
1115
1124
  ),
1116
- children: (values) => /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_jsx_runtime16.Fragment, { children: [
1117
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: switch_default.track, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: switch_default.knob }) }),
1125
+ children: (values) => /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_jsx_runtime17.Fragment, { children: [
1126
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: switch_default.track, children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: switch_default.knob }) }),
1118
1127
  typeof children === "function" ? children(values) : children
1119
1128
  ] })
1120
1129
  }
@@ -1129,13 +1138,13 @@ var import_react_aria_components16 = require("react-aria-components");
1129
1138
  var tabs_default = { "list": "list_c42a1", "tab": "tab_c42a1", "indicator": "indicator_c42a1" };
1130
1139
 
1131
1140
  // src/components/tabs.tsx
1132
- var import_jsx_runtime17 = require("react/jsx-runtime");
1141
+ var import_jsx_runtime18 = require("react/jsx-runtime");
1133
1142
  var Tabs = import_react_aria_components16.Tabs;
1134
1143
  function TabList({
1135
1144
  className,
1136
1145
  ...rest
1137
1146
  }) {
1138
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1147
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1139
1148
  import_react_aria_components16.TabList,
1140
1149
  {
1141
1150
  ...rest,
@@ -1147,7 +1156,7 @@ function TabList({
1147
1156
  );
1148
1157
  }
1149
1158
  function Tab({ children, className, ...rest }) {
1150
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1159
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1151
1160
  import_react_aria_components16.Tab,
1152
1161
  {
1153
1162
  ...rest,
@@ -1155,15 +1164,15 @@ function Tab({ children, className, ...rest }) {
1155
1164
  className,
1156
1165
  (className2) => (0, import_cva17.cx)(tabs_default.tab, className2)
1157
1166
  ),
1158
- children: (values) => /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_jsx_runtime17.Fragment, { children: [
1167
+ children: (values) => /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_jsx_runtime18.Fragment, { children: [
1159
1168
  typeof children === "function" ? children(values) : children,
1160
- values.isSelected && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: tabs_default.indicator })
1169
+ values.isSelected && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: tabs_default.indicator })
1161
1170
  ] })
1162
1171
  }
1163
1172
  );
1164
1173
  }
1165
1174
  function TabPanel({ ...rest }) {
1166
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_react_aria_components16.TabPanel, { ...rest });
1175
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_react_aria_components16.TabPanel, { ...rest });
1167
1176
  }
1168
1177
 
1169
1178
  // src/components/text-area.tsx
@@ -1177,7 +1186,7 @@ var import_cva18 = require("cva");
1177
1186
  var text_field_default = { "textField": "textField_32558", "small": "small_32558", "medium": "medium_32558", "large": "large_32558", "textArea": "textArea_32558" };
1178
1187
 
1179
1188
  // src/components/text-field.tsx
1180
- var import_jsx_runtime18 = require("react/jsx-runtime");
1189
+ var import_jsx_runtime19 = require("react/jsx-runtime");
1181
1190
  var textField = (0, import_cva18.cva)({
1182
1191
  base: text_field_default.textField,
1183
1192
  variants: {
@@ -1196,9 +1205,9 @@ function TextField({
1196
1205
  size = "medium",
1197
1206
  ...props
1198
1207
  }) {
1199
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_react_aria_components17.TextField, { ...props, children: (values) => /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_jsx_runtime18.Fragment, { children: [
1208
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_react_aria_components17.TextField, { ...props, children: (values) => /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_jsx_runtime19.Fragment, { children: [
1200
1209
  typeof children === "function" ? children(values) : children,
1201
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1210
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1202
1211
  import_react_aria_components17.Input,
1203
1212
  {
1204
1213
  type: "text",
@@ -1217,15 +1226,15 @@ function TextField({
1217
1226
  }
1218
1227
 
1219
1228
  // src/components/text-area.tsx
1220
- var import_jsx_runtime19 = require("react/jsx-runtime");
1229
+ var import_jsx_runtime20 = require("react/jsx-runtime");
1221
1230
  function TextArea({
1222
1231
  textAreaProps = {},
1223
1232
  children,
1224
1233
  ...props
1225
1234
  }) {
1226
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_react_aria_components18.TextField, { ...props, children: (values) => /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_jsx_runtime19.Fragment, { children: [
1235
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_react_aria_components18.TextField, { ...props, children: (values) => /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_jsx_runtime20.Fragment, { children: [
1227
1236
  typeof children === "function" ? children(values) : children,
1228
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1237
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1229
1238
  import_react_aria_components18.TextArea,
1230
1239
  {
1231
1240
  ...textAreaProps,
@@ -1245,7 +1254,7 @@ function TextArea({
1245
1254
  // src/components/toggle-button.tsx
1246
1255
  var import_cva19 = require("cva");
1247
1256
  var import_react_aria_components19 = require("react-aria-components");
1248
- var import_jsx_runtime20 = require("react/jsx-runtime");
1257
+ var import_jsx_runtime21 = require("react/jsx-runtime");
1249
1258
  var button2 = (0, import_cva19.cva)({
1250
1259
  base: button_default.button,
1251
1260
  variants: {
@@ -1278,7 +1287,7 @@ function ToggleButton({
1278
1287
  thin = preset === "dimmed",
1279
1288
  ...props
1280
1289
  }) {
1281
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1290
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1282
1291
  import_react_aria_components19.ToggleButton,
1283
1292
  {
1284
1293
  ...props,
@@ -1306,7 +1315,7 @@ var import_react_aria_components20 = require("react-aria-components");
1306
1315
  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" };
1307
1316
 
1308
1317
  // src/components/popover.tsx
1309
- var import_jsx_runtime21 = require("react/jsx-runtime");
1318
+ var import_jsx_runtime22 = require("react/jsx-runtime");
1310
1319
  var popover = (0, import_cva20.cva)({
1311
1320
  base: popover_default.popover,
1312
1321
  variants: {
@@ -1332,7 +1341,7 @@ var arrow = (0, import_cva20.cva)({
1332
1341
  }
1333
1342
  });
1334
1343
  function Popover({ children, className, ...props }) {
1335
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1344
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1336
1345
  import_react_aria_components20.Popover,
1337
1346
  {
1338
1347
  ...props,
@@ -1344,8 +1353,8 @@ function Popover({ children, className, ...props }) {
1344
1353
  placement: values.placement ?? void 0
1345
1354
  })
1346
1355
  ),
1347
- children: (values) => /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(import_jsx_runtime21.Fragment, { children: [
1348
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_react_aria_components20.OverlayArrow, { children: (values2) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_jsx_runtime21.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
1356
+ children: (values) => /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_jsx_runtime22.Fragment, { children: [
1357
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_react_aria_components20.OverlayArrow, { children: (values2) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_jsx_runtime22.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
1349
1358
  "svg",
1350
1359
  {
1351
1360
  viewBox: "0 0 12 6",
@@ -1357,12 +1366,12 @@ function Popover({ children, className, ...props }) {
1357
1366
  height: 10,
1358
1367
  "aria-hidden": "true",
1359
1368
  children: [
1360
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("path", { d: "M0 0,L6 6,L12 0", className: popover_default.outer }),
1361
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("path", { d: "M2 0 6 4 10 0", className: popover_default.inner })
1369
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("path", { d: "M0 0,L6 6,L12 0", className: popover_default.outer }),
1370
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("path", { d: "M2 0 6 4 10 0", className: popover_default.inner })
1362
1371
  ]
1363
1372
  }
1364
1373
  ) }) }),
1365
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_react_aria_components20.Dialog, { children: typeof children === "function" ? children(values) : children })
1374
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_react_aria_components20.Dialog, { children: typeof children === "function" ? children(values) : children })
1366
1375
  ] })
1367
1376
  }
1368
1377
  );
@@ -1376,17 +1385,17 @@ var import_react_aria_components21 = require("react-aria-components");
1376
1385
  var menu_default = { "menu": "menu_c1735", "item": "item_c1735", "popover": "popover_c1735", "section": "section_c1735", "header": "header_c1735", "separator": "separator_c1735" };
1377
1386
 
1378
1387
  // src/components/menu/menu.tsx
1379
- var import_jsx_runtime22 = require("react/jsx-runtime");
1388
+ var import_jsx_runtime23 = require("react/jsx-runtime");
1380
1389
  var MenuTrigger = import_react_aria_components21.MenuTrigger;
1381
1390
  var SubmenuTrigger = import_react_aria_components21.SubmenuTrigger;
1382
1391
  function Menu({ className, ...props }) {
1383
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_react_aria_components21.Menu, { ...props, className: (0, import_cva21.cx)(menu_default.menu, className) });
1392
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_react_aria_components21.Menu, { ...props, className: (0, import_cva21.cx)(menu_default.menu, className) });
1384
1393
  }
1385
1394
  function MenuItem({
1386
1395
  className,
1387
1396
  ...props
1388
1397
  }) {
1389
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1398
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1390
1399
  import_react_aria_components21.MenuItem,
1391
1400
  {
1392
1401
  ...props,
@@ -1398,7 +1407,7 @@ function MenuItem({
1398
1407
  );
1399
1408
  }
1400
1409
  function MenuPopover({ className, ...props }) {
1401
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1410
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1402
1411
  import_react_aria_components21.Popover,
1403
1412
  {
1404
1413
  ...props,
@@ -1413,13 +1422,13 @@ function MenuSection({
1413
1422
  className,
1414
1423
  ...props
1415
1424
  }) {
1416
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_react_aria_components21.MenuSection, { ...props, className: (0, import_cva21.cx)(className, menu_default.section) });
1425
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_react_aria_components21.MenuSection, { ...props, className: (0, import_cva21.cx)(className, menu_default.section) });
1417
1426
  }
1418
1427
  function MenuHeader({
1419
1428
  className,
1420
1429
  ...props
1421
1430
  }) {
1422
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
1431
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1423
1432
  import_react_aria_components21.Header,
1424
1433
  {
1425
1434
  ...props,
@@ -1432,12 +1441,29 @@ function MenuHeader({
1432
1441
  );
1433
1442
  }
1434
1443
  function MenuSeparator({ className, ...props }) {
1435
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_react_aria_components21.Separator, { ...props, className: (0, import_cva21.cx)(className, menu_default.separator) });
1444
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_react_aria_components21.Separator, { ...props, className: (0, import_cva21.cx)(className, menu_default.separator) });
1445
+ }
1446
+ function MenuVirtualizer(props) {
1447
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1448
+ import_react_aria_components21.Virtualizer,
1449
+ {
1450
+ layout: import_react_aria_components21.ListLayout,
1451
+ layoutOptions: {
1452
+ padding: 0,
1453
+ gap: 0,
1454
+ rowHeight: 30,
1455
+ headingHeight: 35
1456
+ // estimatedRowHeight: 30,
1457
+ // estimatedHeadingHeight: 35,
1458
+ },
1459
+ ...props
1460
+ }
1461
+ );
1436
1462
  }
1437
1463
 
1438
1464
  // src/components/select/multiple-select.tsx
1439
1465
  var import_cva22 = require("cva");
1440
- var import_react6 = __toESM(require("react"));
1466
+ var import_react5 = __toESM(require("react"));
1441
1467
  var import_react_aria = require("react-aria");
1442
1468
  var import_react_aria_components22 = require("react-aria-components");
1443
1469
 
@@ -1448,7 +1474,7 @@ var multiple_select_default = { "multiSelect": "multiSelect_e6fde", "focusWithin
1448
1474
  var select_closed_default = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAASCAYAAACAa1QyAAAAiUlEQVR42mL8//8/A6mAiYEMQJYmFnSBk6vzYcwmIP4LxI0gjnnoRNyaoKAViKuQ+I14bQKCTiAuA+I6IGYG4gZ0jSw4nFwB1QwDjIRsKkbjNwxckFNNUw8QlyLx66EYb0D8A+IuIGaDyjcQE0+gOPoDxC1I8dNASBMDNDX8hWKMIGcc3FkDIMAA1n8bpHnZDOAAAAAASUVORK5CYII=";
1449
1475
 
1450
1476
  // src/components/select/multiple-select.tsx
1451
- var import_jsx_runtime23 = require("react/jsx-runtime");
1477
+ var import_jsx_runtime24 = require("react/jsx-runtime");
1452
1478
  var multiSelect = (0, import_cva22.cva)({
1453
1479
  base: multiple_select_default.multiSelect,
1454
1480
  variants: {
@@ -1479,15 +1505,15 @@ function MultipleSelect({
1479
1505
  size = "medium",
1480
1506
  ...props
1481
1507
  }) {
1482
- const tagGroupIdentifier = import_react6.default.useId();
1483
- const triggerRef = import_react6.default.useRef(null);
1484
- const [width, setWidth] = import_react6.default.useState(0);
1508
+ const tagGroupIdentifier = import_react5.default.useId();
1509
+ const triggerRef = import_react5.default.useRef(null);
1510
+ const [width, setWidth] = import_react5.default.useState(0);
1485
1511
  const selectedKeys = selectedItems.map((i) => i.id);
1486
- const [fieldState, setFieldState] = import_react6.default.useState({
1512
+ const [fieldState, setFieldState] = import_react5.default.useState({
1487
1513
  selectedKey: null,
1488
1514
  inputValue: ""
1489
1515
  });
1490
- const accessibleItems = (0, import_react6.useMemo)(
1516
+ const accessibleItems = (0, import_react5.useMemo)(
1491
1517
  () => items.filter(
1492
1518
  (item2) => !selectedItems.some((selected) => selected.id === item2.id)
1493
1519
  ).filter(
@@ -1495,7 +1521,7 @@ function MultipleSelect({
1495
1521
  ),
1496
1522
  [selectedItems, fieldState.inputValue, items]
1497
1523
  );
1498
- const onRemove = import_react6.default.useCallback(
1524
+ const onRemove = import_react5.default.useCallback(
1499
1525
  (keys) => {
1500
1526
  const key = keys.values().next().value;
1501
1527
  onChange?.(selectedItems.filter((i) => i.id !== key));
@@ -1523,7 +1549,7 @@ function MultipleSelect({
1523
1549
  selectedKey: v === "" ? null : prevState.selectedKey
1524
1550
  }));
1525
1551
  };
1526
- const popLast = import_react6.default.useCallback(() => {
1552
+ const popLast = import_react5.default.useCallback(() => {
1527
1553
  if (selectedItems.length > 0) {
1528
1554
  onChange?.(selectedItems.slice(0, -1));
1529
1555
  }
@@ -1532,7 +1558,7 @@ function MultipleSelect({
1532
1558
  selectedKey: null
1533
1559
  });
1534
1560
  }, [selectedItems, onChange]);
1535
- const onKeyDownCapture = import_react6.default.useCallback(
1561
+ const onKeyDownCapture = import_react5.default.useCallback(
1536
1562
  (e) => {
1537
1563
  if (e.key === "Backspace" && fieldState.inputValue === "") {
1538
1564
  popLast();
@@ -1540,7 +1566,7 @@ function MultipleSelect({
1540
1566
  },
1541
1567
  [popLast, fieldState.inputValue]
1542
1568
  );
1543
- import_react6.default.useEffect(() => {
1569
+ import_react5.default.useEffect(() => {
1544
1570
  const trigger = triggerRef.current;
1545
1571
  if (!trigger)
1546
1572
  return;
@@ -1554,24 +1580,24 @@ function MultipleSelect({
1554
1580
  observer.unobserve(trigger);
1555
1581
  };
1556
1582
  }, []);
1557
- const triggerButtonRef = import_react6.default.useRef(null);
1558
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_react_aria_components22.Group, { children: (groupRenderProps) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_jsx_runtime23.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
1583
+ const triggerButtonRef = import_react5.default.useRef(null);
1584
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react_aria_components22.Group, { children: (groupRenderProps) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_jsx_runtime24.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
1559
1585
  "div",
1560
1586
  {
1561
1587
  ref: triggerRef,
1562
1588
  className: multiSelect({ size, ...groupRenderProps }),
1563
1589
  children: [
1564
- /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: multiple_select_default.tagsAndInput, children: [
1565
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1590
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: multiple_select_default.tagsAndInput, children: [
1591
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1566
1592
  import_react_aria_components22.TagGroup,
1567
1593
  {
1568
1594
  "aria-label": "Selected items",
1569
1595
  id: tagGroupIdentifier,
1570
1596
  onRemove,
1571
- children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_react_aria_components22.TagList, { items: selectedItems, className: multiple_select_default.tagList, children: props.tag })
1597
+ children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react_aria_components22.TagList, { items: selectedItems, className: multiple_select_default.tagList, children: props.tag })
1572
1598
  }
1573
1599
  ),
1574
- /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
1600
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
1575
1601
  import_react_aria_components22.ComboBox,
1576
1602
  {
1577
1603
  ...props,
@@ -1584,7 +1610,7 @@ function MultipleSelect({
1584
1610
  onSelectionChange,
1585
1611
  onInputChange,
1586
1612
  children: [
1587
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1613
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1588
1614
  import_react_aria_components22.Input,
1589
1615
  {
1590
1616
  className: multiple_select_default.input,
@@ -1598,7 +1624,7 @@ function MultipleSelect({
1598
1624
  ...props.inputProps
1599
1625
  }
1600
1626
  ),
1601
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_react_aria.VisuallyHidden, { children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1627
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react_aria.VisuallyHidden, { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1602
1628
  Button2,
1603
1629
  {
1604
1630
  slot: "remove",
@@ -1607,21 +1633,21 @@ function MultipleSelect({
1607
1633
  children: "Remove"
1608
1634
  }
1609
1635
  ) }),
1610
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1636
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1611
1637
  import_react_aria_components22.Popover,
1612
1638
  {
1613
1639
  className: select_default.popover,
1614
1640
  style: { width: `${width}px` },
1615
1641
  triggerRef,
1616
1642
  trigger: "ComboBox",
1617
- children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1643
+ children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1618
1644
  import_react_aria_components22.ListBox,
1619
1645
  {
1620
1646
  className: select_default.listBox,
1621
- renderEmptyState: () => renderEmptyState ? renderEmptyState(fieldState.inputValue) : /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Text, { className: multiple_select_default.emptyText, children: fieldState.inputValue ? /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_jsx_runtime23.Fragment, { children: [
1647
+ renderEmptyState: () => renderEmptyState ? renderEmptyState(fieldState.inputValue) : /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Text, { className: multiple_select_default.emptyText, children: fieldState.inputValue ? /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_jsx_runtime24.Fragment, { children: [
1622
1648
  "No results found for:",
1623
1649
  " ",
1624
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("strong", { children: fieldState.inputValue })
1650
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("strong", { children: fieldState.inputValue })
1625
1651
  ] }) : "No options" }),
1626
1652
  selectionMode: "multiple",
1627
1653
  children
@@ -1633,13 +1659,13 @@ function MultipleSelect({
1633
1659
  }
1634
1660
  )
1635
1661
  ] }),
1636
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { "aria-hidden": true, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1662
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { "aria-hidden": true, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1637
1663
  import_react_aria_components22.Button,
1638
1664
  {
1639
1665
  excludeFromTabOrder: true,
1640
1666
  onPress: () => triggerButtonRef.current?.click(),
1641
1667
  className: multiple_select_default.chevronButton,
1642
- children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("img", { src: select_closed_default, alt: "" })
1668
+ children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("img", { src: select_closed_default, alt: "" })
1643
1669
  }
1644
1670
  ) })
1645
1671
  ]
@@ -1655,9 +1681,9 @@ var import_react_aria_components23 = require("react-aria-components");
1655
1681
  var tag_default = { "tag": "tag_c7c88", "text": "text_c7c88", "remove": "remove_c7c88" };
1656
1682
 
1657
1683
  // src/components/tag/tag.tsx
1658
- var import_jsx_runtime24 = require("react/jsx-runtime");
1684
+ var import_jsx_runtime25 = require("react/jsx-runtime");
1659
1685
  function Tag({ children, className, ...props }) {
1660
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1686
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1661
1687
  import_react_aria_components23.Tag,
1662
1688
  {
1663
1689
  ...props,
@@ -1665,9 +1691,9 @@ function Tag({ children, className, ...props }) {
1665
1691
  className,
1666
1692
  (className2) => (0, import_cva23.cx)(tag_default.tag, className2)
1667
1693
  ),
1668
- children: (0, import_react_aria_components23.composeRenderProps)(children, (children2) => /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_jsx_runtime24.Fragment, { children: [
1669
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: tag_default.text, children: children2 }),
1670
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react_aria_components23.Button, { slot: "remove", className: tag_default.remove })
1694
+ children: (0, import_react_aria_components23.composeRenderProps)(children, (children2) => /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_jsx_runtime25.Fragment, { children: [
1695
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: tag_default.text, children: children2 }),
1696
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_react_aria_components23.Button, { slot: "remove", className: tag_default.remove })
1671
1697
  ] }))
1672
1698
  }
1673
1699
  );
@@ -1693,8 +1719,12 @@ var import_react_aria_components24 = require("react-aria-components");
1693
1719
  DisclosureGroup,
1694
1720
  DisclosurePanel,
1695
1721
  Divider,
1722
+ FieldError,
1723
+ GridLayout,
1696
1724
  Heading,
1697
1725
  Label,
1726
+ ListBoxItem,
1727
+ ListLayout,
1698
1728
  Menu,
1699
1729
  MenuHeader,
1700
1730
  MenuItem,
@@ -1702,6 +1732,7 @@ var import_react_aria_components24 = require("react-aria-components");
1702
1732
  MenuSection,
1703
1733
  MenuSeparator,
1704
1734
  MenuTrigger,
1735
+ MenuVirtualizer,
1705
1736
  Modal,
1706
1737
  MultipleSelect,
1707
1738
  NumberField,
@@ -1717,6 +1748,8 @@ var import_react_aria_components24 = require("react-aria-components");
1717
1748
  SelectListBoxItem,
1718
1749
  SelectPopover,
1719
1750
  SelectValue,
1751
+ SelectVirtualizer,
1752
+ Size,
1720
1753
  Slider,
1721
1754
  SliderOutput,
1722
1755
  Sonner,
@@ -1726,6 +1759,7 @@ var import_react_aria_components24 = require("react-aria-components");
1726
1759
  Tab,
1727
1760
  TabList,
1728
1761
  TabPanel,
1762
+ TableLayout,
1729
1763
  Tabs,
1730
1764
  Tag,
1731
1765
  Text,
@@ -1733,6 +1767,8 @@ var import_react_aria_components24 = require("react-aria-components");
1733
1767
  TextField,
1734
1768
  ToggleButton,
1735
1769
  UnstyledPopover,
1770
+ Virtualizer,
1771
+ WaterfallLayout,
1736
1772
  _Button,
1737
1773
  _ButtonLink,
1738
1774
  button,