@synnaxlabs/pluto 0.21.4 → 0.21.5

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.
Files changed (105) hide show
  1. package/dist/{Keyboard-D_LUXnG3.js → Keyboard-BqO4SYSr.js} +2 -2
  2. package/dist/{Keyboard-D_LUXnG3.js.map → Keyboard-BqO4SYSr.js.map} +1 -1
  3. package/dist/{Keyboard-_Wf2jKAo.cjs → Keyboard-CsgjS96C.cjs} +2 -2
  4. package/dist/{Keyboard-_Wf2jKAo.cjs.map → Keyboard-CsgjS96C.cjs.map} +1 -1
  5. package/dist/{Link-Bur1Sx4G.cjs → Link-B6B7MB7O.cjs} +2 -2
  6. package/dist/{Link-Bur1Sx4G.cjs.map → Link-B6B7MB7O.cjs.map} +1 -1
  7. package/dist/{Link-BZVCNXMe.js → Link-BaPpY2rf.js} +2 -2
  8. package/dist/{Link-BZVCNXMe.js.map → Link-BaPpY2rf.js.map} +1 -1
  9. package/dist/{List-DMxpm9SJ.cjs → List-J5T88ynF.cjs} +2 -2
  10. package/dist/{List-DMxpm9SJ.cjs.map → List-J5T88ynF.cjs.map} +1 -1
  11. package/dist/{List-T419F-at.js → List-aJEsDHql.js} +2 -2
  12. package/dist/{List-T419F-at.js.map → List-aJEsDHql.js.map} +1 -1
  13. package/dist/{Toggle-CUvIChUA.cjs → Toggle-CAW20E9V.cjs} +52 -19
  14. package/dist/Toggle-CAW20E9V.cjs.map +1 -0
  15. package/dist/{Toggle-Cwf_871b.js → Toggle-DcOiWiHG.js} +52 -19
  16. package/dist/Toggle-DcOiWiHG.js.map +1 -0
  17. package/dist/button.cjs +1 -1
  18. package/dist/button.js +1 -1
  19. package/dist/color.cjs +1 -1
  20. package/dist/color.js +1 -1
  21. package/dist/dropdown.cjs +1 -1
  22. package/dist/dropdown.js +1 -1
  23. package/dist/{external-CxczeLHs.js → external-B695Iunb.js} +2 -2
  24. package/dist/{external-CxczeLHs.js.map → external-B695Iunb.js.map} +1 -1
  25. package/dist/{external-BaTq0TIF.js → external-B6yW9yjs.js} +2 -2
  26. package/dist/external-B6yW9yjs.js.map +1 -0
  27. package/dist/{external-CnYZqepA.cjs → external-BGl-cQCe.cjs} +4 -4
  28. package/dist/{external-CnYZqepA.cjs.map → external-BGl-cQCe.cjs.map} +1 -1
  29. package/dist/{external-CV3EI18V.js → external-Bn7V_LTL.js} +3 -3
  30. package/dist/{external-CV3EI18V.js.map → external-Bn7V_LTL.js.map} +1 -1
  31. package/dist/{external-CIJhv8Z5.cjs → external-BoNCimxR.cjs} +2 -2
  32. package/dist/external-BoNCimxR.cjs.map +1 -0
  33. package/dist/{external-BsEirr1J.js → external-Brr6przd.js} +2 -2
  34. package/dist/{external-BsEirr1J.js.map → external-Brr6przd.js.map} +1 -1
  35. package/dist/{external-BkcEPxt6.js → external-CPB95nWX.js} +2 -2
  36. package/dist/{external-BkcEPxt6.js.map → external-CPB95nWX.js.map} +1 -1
  37. package/dist/{external-DmQm9Kms.cjs → external-CYRIymJR.cjs} +2 -2
  38. package/dist/{external-DmQm9Kms.cjs.map → external-CYRIymJR.cjs.map} +1 -1
  39. package/dist/{external-0PKoDC49.cjs → external-CZli69bF.cjs} +2 -2
  40. package/dist/{external-0PKoDC49.cjs.map → external-CZli69bF.cjs.map} +1 -1
  41. package/dist/{external-qoMZSyXU.js → external-CflFsngP.js} +3 -3
  42. package/dist/external-CflFsngP.js.map +1 -0
  43. package/dist/{external-yhENQ6vv.js → external-CtH30naU.js} +2 -2
  44. package/dist/{external-yhENQ6vv.js.map → external-CtH30naU.js.map} +1 -1
  45. package/dist/{external-BZja6sct.js → external-D8uwkCSk.js} +3 -3
  46. package/dist/{external-BZja6sct.js.map → external-D8uwkCSk.js.map} +1 -1
  47. package/dist/{external-CtwpWOgf.cjs → external-DL9-TJzC.cjs} +4 -4
  48. package/dist/{external-CtwpWOgf.cjs.map → external-DL9-TJzC.cjs.map} +1 -1
  49. package/dist/{external-DqPvOVf5.cjs → external-DnojrP1p.cjs} +7 -7
  50. package/dist/{external-DqPvOVf5.cjs.map → external-DnojrP1p.cjs.map} +1 -1
  51. package/dist/{external-C28OmNbm.js → external-Doprw1Uu.js} +4 -4
  52. package/dist/{external-C28OmNbm.js.map → external-Doprw1Uu.js.map} +1 -1
  53. package/dist/{external-CliDurA-.cjs → external-Dpr-yBfa.cjs} +3 -3
  54. package/dist/external-Dpr-yBfa.cjs.map +1 -0
  55. package/dist/{external-C8o-dk-q.cjs → external-Drem1ngI.cjs} +2 -2
  56. package/dist/{external-C8o-dk-q.cjs.map → external-Drem1ngI.cjs.map} +1 -1
  57. package/dist/{external-CXq4moKA.cjs → external-axSECIuu.cjs} +3 -3
  58. package/dist/{external-CXq4moKA.cjs.map → external-axSECIuu.cjs.map} +1 -1
  59. package/dist/{external-CtX7LOQJ.cjs → external-kZAfJn1X.cjs} +3 -3
  60. package/dist/{external-CtX7LOQJ.cjs.map → external-kZAfJn1X.cjs.map} +1 -1
  61. package/dist/{external-DqKZO_FH.cjs → external-p8bRcctL.cjs} +2 -2
  62. package/dist/{external-DqKZO_FH.cjs.map → external-p8bRcctL.cjs.map} +1 -1
  63. package/dist/{external-BbY0o_d-.js → external-wfv-EKsR.js} +4 -4
  64. package/dist/{external-BbY0o_d-.js.map → external-wfv-EKsR.js.map} +1 -1
  65. package/dist/{external-CaIFl1Z9.js → external-yv4F8ndX.js} +7 -7
  66. package/dist/{external-CaIFl1Z9.js.map → external-yv4F8ndX.js.map} +1 -1
  67. package/dist/header.cjs +1 -1
  68. package/dist/header.js +1 -1
  69. package/dist/index.cjs +25 -13
  70. package/dist/index.cjs.map +1 -1
  71. package/dist/index.js +33 -21
  72. package/dist/index.js.map +1 -1
  73. package/dist/input.cjs +1 -1
  74. package/dist/input.js +1 -1
  75. package/dist/list.cjs +1 -1
  76. package/dist/list.js +1 -1
  77. package/dist/menu.cjs +1 -1
  78. package/dist/menu.js +1 -1
  79. package/dist/src/form/Form.d.ts +1 -0
  80. package/dist/src/form/Form.d.ts.map +1 -1
  81. package/dist/src/hooks/useTransforms.d.ts.map +1 -1
  82. package/dist/src/list/Column.d.ts +1 -1
  83. package/dist/src/list/Column.d.ts.map +1 -1
  84. package/dist/src/list/Core.d.ts.map +1 -1
  85. package/dist/src/list/Data.d.ts +2 -0
  86. package/dist/src/list/Data.d.ts.map +1 -1
  87. package/dist/src/list/types.d.ts +1 -0
  88. package/dist/src/list/types.d.ts.map +1 -1
  89. package/dist/tabs.cjs +1 -1
  90. package/dist/tabs.js +1 -1
  91. package/dist/text.cjs +2 -2
  92. package/dist/text.js +2 -2
  93. package/dist/theming.cjs +2 -2
  94. package/dist/theming.js +2 -2
  95. package/dist/tree.cjs +1 -1
  96. package/dist/tree.js +1 -1
  97. package/dist/triggers.cjs +1 -1
  98. package/dist/triggers.js +1 -1
  99. package/package.json +5 -5
  100. package/dist/Toggle-CUvIChUA.cjs.map +0 -1
  101. package/dist/Toggle-Cwf_871b.js.map +0 -1
  102. package/dist/external-BaTq0TIF.js.map +0 -1
  103. package/dist/external-CIJhv8Z5.cjs.map +0 -1
  104. package/dist/external-CliDurA-.cjs.map +0 -1
  105. package/dist/external-qoMZSyXU.js.map +0 -1
@@ -1,6 +1,6 @@
1
1
  import { j as jsxRuntimeExports } from "./jsx-runtime-mMz73N64.js";
2
2
  import { C as CSS } from "./css-DoalWJF6.js";
3
- import { e as Text } from "./Toggle-Cwf_871b.js";
3
+ import { e as Text } from "./Toggle-DcOiWiHG.js";
4
4
  const Keyboard = ({
5
5
  className,
6
6
  ...props
@@ -11,4 +11,4 @@ const Keyboard = ({
11
11
  export {
12
12
  Keyboard as K
13
13
  };
14
- //# sourceMappingURL=Keyboard-D_LUXnG3.js.map
14
+ //# sourceMappingURL=Keyboard-BqO4SYSr.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Keyboard-D_LUXnG3.js","sources":["../src/text/Keyboard.tsx"],"sourcesContent":["// Copyright 2023 Synnax Labs, Inc.\n//\n// Use of this software is governed by the Business Source License included in the file\n// licenses/BSL.txt.\n//\n// As of the Change Date specified in that file, in accordance with the Business Source\n// License, use of this software will be governed by the Apache License, Version 2.0,\n// included in the file licenses/APL.txt.\n\nimport { type ReactElement } from \"react\";\n\nimport { CSS } from \"@/css\";\nimport { type text } from \"@/text/core\";\nimport { type TextProps, Text } from \"@/text/Text\";\n\nimport \"@/text/Keyboard.css\";\n\nexport type KeyboardProps<L extends text.Level = \"h1\"> = TextProps<L>;\n\nexport const Keyboard = <L extends text.Level = \"p\">({\n className,\n ...props\n}: KeyboardProps<L>): ReactElement => (\n // @ts-expect-error\n <Text<L> className={CSS(className, CSS.BM(\"text\", \"keyboard\"))} {...props} />\n);\n"],"names":["jsx"],"mappings":";;;AAmBO,MAAM,WAAW,CAA6B;AAAA,EACnD;AAAA,EACA,GAAG;AACL;AAAA;AAAA,EAEGA,kCAAAA,IAAA,MAAA,EAAQ,WAAW,IAAI,WAAW,IAAI,GAAG,QAAQ,UAAU,CAAC,GAAI,GAAG,MAAO,CAAA;AAAA;"}
1
+ {"version":3,"file":"Keyboard-BqO4SYSr.js","sources":["../src/text/Keyboard.tsx"],"sourcesContent":["// Copyright 2023 Synnax Labs, Inc.\n//\n// Use of this software is governed by the Business Source License included in the file\n// licenses/BSL.txt.\n//\n// As of the Change Date specified in that file, in accordance with the Business Source\n// License, use of this software will be governed by the Apache License, Version 2.0,\n// included in the file licenses/APL.txt.\n\nimport { type ReactElement } from \"react\";\n\nimport { CSS } from \"@/css\";\nimport { type text } from \"@/text/core\";\nimport { type TextProps, Text } from \"@/text/Text\";\n\nimport \"@/text/Keyboard.css\";\n\nexport type KeyboardProps<L extends text.Level = \"h1\"> = TextProps<L>;\n\nexport const Keyboard = <L extends text.Level = \"p\">({\n className,\n ...props\n}: KeyboardProps<L>): ReactElement => (\n // @ts-expect-error\n <Text<L> className={CSS(className, CSS.BM(\"text\", \"keyboard\"))} {...props} />\n);\n"],"names":["jsx"],"mappings":";;;AAmBO,MAAM,WAAW,CAA6B;AAAA,EACnD;AAAA,EACA,GAAG;AACL;AAAA;AAAA,EAEGA,kCAAAA,IAAA,MAAA,EAAQ,WAAW,IAAI,WAAW,IAAI,GAAG,QAAQ,UAAU,CAAC,GAAI,GAAG,MAAO,CAAA;AAAA;"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  const jsxRuntime = require("./jsx-runtime-B3vWrP5x.cjs");
3
3
  const css = require("./css-Pf9qxhQ4.cjs");
4
- const Toggle = require("./Toggle-CUvIChUA.cjs");
4
+ const Toggle = require("./Toggle-CAW20E9V.cjs");
5
5
  const Keyboard = ({
6
6
  className,
7
7
  ...props
@@ -10,4 +10,4 @@ const Keyboard = ({
10
10
  /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Toggle.Text, { className: css.CSS(className, css.CSS.BM("text", "keyboard")), ...props })
11
11
  );
12
12
  exports.Keyboard = Keyboard;
13
- //# sourceMappingURL=Keyboard-_Wf2jKAo.cjs.map
13
+ //# sourceMappingURL=Keyboard-CsgjS96C.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"Keyboard-_Wf2jKAo.cjs","sources":["../src/text/Keyboard.tsx"],"sourcesContent":["// Copyright 2023 Synnax Labs, Inc.\n//\n// Use of this software is governed by the Business Source License included in the file\n// licenses/BSL.txt.\n//\n// As of the Change Date specified in that file, in accordance with the Business Source\n// License, use of this software will be governed by the Apache License, Version 2.0,\n// included in the file licenses/APL.txt.\n\nimport { type ReactElement } from \"react\";\n\nimport { CSS } from \"@/css\";\nimport { type text } from \"@/text/core\";\nimport { type TextProps, Text } from \"@/text/Text\";\n\nimport \"@/text/Keyboard.css\";\n\nexport type KeyboardProps<L extends text.Level = \"h1\"> = TextProps<L>;\n\nexport const Keyboard = <L extends text.Level = \"p\">({\n className,\n ...props\n}: KeyboardProps<L>): ReactElement => (\n // @ts-expect-error\n <Text<L> className={CSS(className, CSS.BM(\"text\", \"keyboard\"))} {...props} />\n);\n"],"names":["jsx","Text","CSS"],"mappings":";;;;AAmBO,MAAM,WAAW,CAA6B;AAAA,EACnD;AAAA,EACA,GAAG;AACL;AAAA;AAAA,EAEGA,2BAAAA,kBAAAA,IAAAC,OAAAA,MAAA,EAAQ,WAAWC,IAAAA,IAAI,WAAWA,IAAAA,IAAI,GAAG,QAAQ,UAAU,CAAC,GAAI,GAAG,MAAO,CAAA;AAAA;;"}
1
+ {"version":3,"file":"Keyboard-CsgjS96C.cjs","sources":["../src/text/Keyboard.tsx"],"sourcesContent":["// Copyright 2023 Synnax Labs, Inc.\n//\n// Use of this software is governed by the Business Source License included in the file\n// licenses/BSL.txt.\n//\n// As of the Change Date specified in that file, in accordance with the Business Source\n// License, use of this software will be governed by the Apache License, Version 2.0,\n// included in the file licenses/APL.txt.\n\nimport { type ReactElement } from \"react\";\n\nimport { CSS } from \"@/css\";\nimport { type text } from \"@/text/core\";\nimport { type TextProps, Text } from \"@/text/Text\";\n\nimport \"@/text/Keyboard.css\";\n\nexport type KeyboardProps<L extends text.Level = \"h1\"> = TextProps<L>;\n\nexport const Keyboard = <L extends text.Level = \"p\">({\n className,\n ...props\n}: KeyboardProps<L>): ReactElement => (\n // @ts-expect-error\n <Text<L> className={CSS(className, CSS.BM(\"text\", \"keyboard\"))} {...props} />\n);\n"],"names":["jsx","Text","CSS"],"mappings":";;;;AAmBO,MAAM,WAAW,CAA6B;AAAA,EACnD;AAAA,EACA,GAAG;AACL;AAAA;AAAA,EAEGA,2BAAAA,kBAAAA,IAAAC,OAAAA,MAAA,EAAQ,WAAWC,IAAAA,IAAI,WAAWA,IAAAA,IAAI,GAAG,QAAQ,UAAU,CAAC,GAAI,GAAG,MAAO,CAAA;AAAA;;"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  const jsxRuntime = require("./jsx-runtime-B3vWrP5x.cjs");
3
- const Toggle = require("./Toggle-CUvIChUA.cjs");
3
+ const Toggle = require("./Toggle-CAW20E9V.cjs");
4
4
  const Link = ({
5
5
  href,
6
6
  target,
@@ -9,4 +9,4 @@ const Link = ({
9
9
  return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Toggle.Button, { el: "a", href, ...props });
10
10
  };
11
11
  exports.Link = Link;
12
- //# sourceMappingURL=Link-Bur1Sx4G.cjs.map
12
+ //# sourceMappingURL=Link-B6B7MB7O.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"Link-Bur1Sx4G.cjs","sources":["../src/button/Link.tsx"],"sourcesContent":["// Copyright 2023 Synnax Labs, Inc.\n//\n// Use of this software is governed by the Business Source License included in the file\n// licenses/BSL.txt.\n//\n// As of the Change Date specified in that file, in accordance with the Business Source\n// License, use of this software will be governed by the Apache License, Version 2.0,\n// included in the file licenses/APL.txt.\n\nimport { type ReactElement } from \"react\";\n\nimport { Button, type ButtonProps } from \"@/button/Button\";\nimport { type Text } from \"@/text\";\n\n/** Props for the {@link Link} component. */\nexport interface LinkProps<L extends Text.Level = \"h1\">\n extends ButtonProps,\n Pick<Text.LinkProps<L>, \"href\" | \"target\"> {}\n/**\n * Use.Link renders a button that looks like a link and redirects to the given href\n * when clicked.\n *\n * @param props - Props for the component. Identical to the props for the Use component,\n * excluding 'variant', and adding the following:\n * @param props.href - The URL to redirect to when the button is clicked.\n * @param props.target - The target of the link. Defaults to \"_self\".\n */\n\nexport const Link = <L extends Text.Level = \"h1\">({\n href,\n target,\n ...props\n}: LinkProps<L>): ReactElement => {\n // @ts-expect-error\n return <Button<\"a\"> el=\"a\" href={href} {...props} />;\n};\n"],"names":["Button"],"mappings":";;;AA4BO,MAAM,OAAO,CAA8B;AAAA,EAChD;AAAA,EACA;AAAA,EACA,GAAG;AACL,MAAkC;AAEhC,0DAAQA,OAAY,QAAA,EAAA,IAAG,KAAI,MAAa,GAAG,MAAO,CAAA;AACpD;;"}
1
+ {"version":3,"file":"Link-B6B7MB7O.cjs","sources":["../src/button/Link.tsx"],"sourcesContent":["// Copyright 2023 Synnax Labs, Inc.\n//\n// Use of this software is governed by the Business Source License included in the file\n// licenses/BSL.txt.\n//\n// As of the Change Date specified in that file, in accordance with the Business Source\n// License, use of this software will be governed by the Apache License, Version 2.0,\n// included in the file licenses/APL.txt.\n\nimport { type ReactElement } from \"react\";\n\nimport { Button, type ButtonProps } from \"@/button/Button\";\nimport { type Text } from \"@/text\";\n\n/** Props for the {@link Link} component. */\nexport interface LinkProps<L extends Text.Level = \"h1\">\n extends ButtonProps,\n Pick<Text.LinkProps<L>, \"href\" | \"target\"> {}\n/**\n * Use.Link renders a button that looks like a link and redirects to the given href\n * when clicked.\n *\n * @param props - Props for the component. Identical to the props for the Use component,\n * excluding 'variant', and adding the following:\n * @param props.href - The URL to redirect to when the button is clicked.\n * @param props.target - The target of the link. Defaults to \"_self\".\n */\n\nexport const Link = <L extends Text.Level = \"h1\">({\n href,\n target,\n ...props\n}: LinkProps<L>): ReactElement => {\n // @ts-expect-error\n return <Button<\"a\"> el=\"a\" href={href} {...props} />;\n};\n"],"names":["Button"],"mappings":";;;AA4BO,MAAM,OAAO,CAA8B;AAAA,EAChD;AAAA,EACA;AAAA,EACA,GAAG;AACL,MAAkC;AAEhC,0DAAQA,OAAY,QAAA,EAAA,IAAG,KAAI,MAAa,GAAG,MAAO,CAAA;AACpD;;"}
@@ -1,5 +1,5 @@
1
1
  import { j as jsxRuntimeExports } from "./jsx-runtime-mMz73N64.js";
2
- import { B as Button } from "./Toggle-Cwf_871b.js";
2
+ import { B as Button } from "./Toggle-DcOiWiHG.js";
3
3
  const Link = ({
4
4
  href,
5
5
  target,
@@ -10,4 +10,4 @@ const Link = ({
10
10
  export {
11
11
  Link as L
12
12
  };
13
- //# sourceMappingURL=Link-BZVCNXMe.js.map
13
+ //# sourceMappingURL=Link-BaPpY2rf.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Link-BZVCNXMe.js","sources":["../src/button/Link.tsx"],"sourcesContent":["// Copyright 2023 Synnax Labs, Inc.\n//\n// Use of this software is governed by the Business Source License included in the file\n// licenses/BSL.txt.\n//\n// As of the Change Date specified in that file, in accordance with the Business Source\n// License, use of this software will be governed by the Apache License, Version 2.0,\n// included in the file licenses/APL.txt.\n\nimport { type ReactElement } from \"react\";\n\nimport { Button, type ButtonProps } from \"@/button/Button\";\nimport { type Text } from \"@/text\";\n\n/** Props for the {@link Link} component. */\nexport interface LinkProps<L extends Text.Level = \"h1\">\n extends ButtonProps,\n Pick<Text.LinkProps<L>, \"href\" | \"target\"> {}\n/**\n * Use.Link renders a button that looks like a link and redirects to the given href\n * when clicked.\n *\n * @param props - Props for the component. Identical to the props for the Use component,\n * excluding 'variant', and adding the following:\n * @param props.href - The URL to redirect to when the button is clicked.\n * @param props.target - The target of the link. Defaults to \"_self\".\n */\n\nexport const Link = <L extends Text.Level = \"h1\">({\n href,\n target,\n ...props\n}: LinkProps<L>): ReactElement => {\n // @ts-expect-error\n return <Button<\"a\"> el=\"a\" href={href} {...props} />;\n};\n"],"names":[],"mappings":";;AA4BO,MAAM,OAAO,CAA8B;AAAA,EAChD;AAAA,EACA;AAAA,EACA,GAAG;AACL,MAAkC;AAEhC,+CAAQ,QAAY,EAAA,IAAG,KAAI,MAAa,GAAG,MAAO,CAAA;AACpD;"}
1
+ {"version":3,"file":"Link-BaPpY2rf.js","sources":["../src/button/Link.tsx"],"sourcesContent":["// Copyright 2023 Synnax Labs, Inc.\n//\n// Use of this software is governed by the Business Source License included in the file\n// licenses/BSL.txt.\n//\n// As of the Change Date specified in that file, in accordance with the Business Source\n// License, use of this software will be governed by the Apache License, Version 2.0,\n// included in the file licenses/APL.txt.\n\nimport { type ReactElement } from \"react\";\n\nimport { Button, type ButtonProps } from \"@/button/Button\";\nimport { type Text } from \"@/text\";\n\n/** Props for the {@link Link} component. */\nexport interface LinkProps<L extends Text.Level = \"h1\">\n extends ButtonProps,\n Pick<Text.LinkProps<L>, \"href\" | \"target\"> {}\n/**\n * Use.Link renders a button that looks like a link and redirects to the given href\n * when clicked.\n *\n * @param props - Props for the component. Identical to the props for the Use component,\n * excluding 'variant', and adding the following:\n * @param props.href - The URL to redirect to when the button is clicked.\n * @param props.target - The target of the link. Defaults to \"_self\".\n */\n\nexport const Link = <L extends Text.Level = \"h1\">({\n href,\n target,\n ...props\n}: LinkProps<L>): ReactElement => {\n // @ts-expect-error\n return <Button<\"a\"> el=\"a\" href={href} {...props} />;\n};\n"],"names":[],"mappings":";;AA4BO,MAAM,OAAO,CAA8B;AAAA,EAChD;AAAA,EACA;AAAA,EACA,GAAG;AACL,MAAkC;AAEhC,+CAAQ,QAAY,EAAA,IAAG,KAAI,MAAa,GAAG,MAAO,CAAA;AACpD;"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  const jsxRuntime = require("./jsx-runtime-B3vWrP5x.cjs");
3
3
  const aggregator = require("./aggregator-Ca8xiVD2.cjs");
4
- const Toggle = require("./Toggle-CUvIChUA.cjs");
4
+ const Toggle = require("./Toggle-CAW20E9V.cjs");
5
5
  const List = ({
6
6
  children,
7
7
  data,
@@ -23,4 +23,4 @@ const List = ({
23
23
  return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Toggle.InfiniteProvider, { children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Toggle.DataProvider, { data: omittedData, emptyContent, children }) });
24
24
  };
25
25
  exports.List = List;
26
- //# sourceMappingURL=List-DMxpm9SJ.cjs.map
26
+ //# sourceMappingURL=List-J5T88ynF.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"List-DMxpm9SJ.cjs","sources":["../src/list/List.tsx"],"sourcesContent":["// Copyright 2023 Synnax Labs, Inc.\n//\n// Use of this software is governed by the Business Source License included in the file\n// licenses/BSL.txt.\n//\n// As of the Change Date specified in that file, in accordance with the Business Source\n// License, use of this software will be governed by the Apache License, Version 2.0,\n// included in the file licenses/APL.txt.\n\nimport { useMemo, type PropsWithChildren, type ReactElement } from \"react\";\n\nimport { type Keyed, type Key, compare } from \"@synnaxlabs/x\";\n\nimport { DataProvider } from \"@/list/Data\";\nimport { InfiniteProvider } from \"@/list/Infinite\";\nimport { useMemoCompare } from \"@/memo\";\n\nexport interface ListProps<K extends Key = Key, E extends Keyed<K> = Keyed<K>>\n extends PropsWithChildren<unknown> {\n data?: E[];\n emptyContent?: ReactElement;\n omit?: K[];\n}\n\n/**\n * The main component for building a List. By itself, it does not render any HTML, and\n * should be used in conjunction with its sub-components (List.'X') to build a list\n * component to fit your needs.\n *\n * @param props - The props for the List component.\n * @param props.data - The data to be displayed in the list. The values of the object in\n * each entry of the array must satisfy the {@link RenderableValue} interface i.e. they\n * must be a primitive type or implement a 'toString' method.\n * @param props.children - Sub-components of the List component to add additional functionality.\n *\n */\nexport const List = <K extends Key = Key, E extends Keyed<K> = Keyed<K>>({\n children,\n data,\n emptyContent,\n omit,\n}: ListProps<K, E>): ReactElement => {\n const omittedData = useMemoCompare(\n () => (omit != null ? data?.filter((e) => !omit.includes(e.key)) : data),\n ([prevOmit, prevData], [omit, data]) => {\n let omitsEqual = false;\n if (prevOmit != null && omit != null)\n omitsEqual = compare.unorderedPrimitiveArrays(prevOmit, omit) === compare.EQUAL;\n else omitsEqual = prevOmit == omit;\n return prevData === data && omitsEqual;\n },\n [omit, data] as [K[] | undefined, E[] | undefined],\n );\n return (\n <InfiniteProvider>\n <DataProvider<K, E> data={omittedData} emptyContent={emptyContent}>\n {children}\n </DataProvider>\n </InfiniteProvider>\n );\n};\n"],"names":["useMemoCompare","omit","data","compare","jsx","InfiniteProvider","DataProvider"],"mappings":";;;;AAoCO,MAAM,OAAO,CAAqD;AAAA,EACvE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAAqC;AACnC,QAAM,cAAcA,OAAA;AAAA,IAClB,MAAO,QAAQ,OAAO,6BAAM,OAAO,CAAC,MAAM,CAAC,KAAK,SAAS,EAAE,GAAG,KAAK;AAAA,IACnE,CAAC,CAAC,UAAU,QAAQ,GAAG,CAACC,OAAMC,KAAI,MAAM;AACtC,UAAI,aAAa;AACb,UAAA,YAAY,QAAQD,SAAQ;AAC9B,qBAAaE,WAAQ,EAAA,yBAAyB,UAAUF,KAAI,MAAME,WAAQ,EAAA;AAAA;AACvE,qBAAa,YAAYF;AAC9B,aAAO,aAAaC,SAAQ;AAAA,IAC9B;AAAA,IACA,CAAC,MAAM,IAAI;AAAA,EAAA;AAGX,SAAAE,2BAAA,kBAAA,IAACC,2BACC,UAACD,2BAAA,kBAAA,IAAAE,OAAA,cAAA,EAAmB,MAAM,aAAa,cACpC,SACH,CAAA,EACF,CAAA;AAEJ;;"}
1
+ {"version":3,"file":"List-J5T88ynF.cjs","sources":["../src/list/List.tsx"],"sourcesContent":["// Copyright 2023 Synnax Labs, Inc.\n//\n// Use of this software is governed by the Business Source License included in the file\n// licenses/BSL.txt.\n//\n// As of the Change Date specified in that file, in accordance with the Business Source\n// License, use of this software will be governed by the Apache License, Version 2.0,\n// included in the file licenses/APL.txt.\n\nimport { useMemo, type PropsWithChildren, type ReactElement } from \"react\";\n\nimport { type Keyed, type Key, compare } from \"@synnaxlabs/x\";\n\nimport { DataProvider } from \"@/list/Data\";\nimport { InfiniteProvider } from \"@/list/Infinite\";\nimport { useMemoCompare } from \"@/memo\";\n\nexport interface ListProps<K extends Key = Key, E extends Keyed<K> = Keyed<K>>\n extends PropsWithChildren<unknown> {\n data?: E[];\n emptyContent?: ReactElement;\n omit?: K[];\n}\n\n/**\n * The main component for building a List. By itself, it does not render any HTML, and\n * should be used in conjunction with its sub-components (List.'X') to build a list\n * component to fit your needs.\n *\n * @param props - The props for the List component.\n * @param props.data - The data to be displayed in the list. The values of the object in\n * each entry of the array must satisfy the {@link RenderableValue} interface i.e. they\n * must be a primitive type or implement a 'toString' method.\n * @param props.children - Sub-components of the List component to add additional functionality.\n *\n */\nexport const List = <K extends Key = Key, E extends Keyed<K> = Keyed<K>>({\n children,\n data,\n emptyContent,\n omit,\n}: ListProps<K, E>): ReactElement => {\n const omittedData = useMemoCompare(\n () => (omit != null ? data?.filter((e) => !omit.includes(e.key)) : data),\n ([prevOmit, prevData], [omit, data]) => {\n let omitsEqual = false;\n if (prevOmit != null && omit != null)\n omitsEqual = compare.unorderedPrimitiveArrays(prevOmit, omit) === compare.EQUAL;\n else omitsEqual = prevOmit == omit;\n return prevData === data && omitsEqual;\n },\n [omit, data] as [K[] | undefined, E[] | undefined],\n );\n return (\n <InfiniteProvider>\n <DataProvider<K, E> data={omittedData} emptyContent={emptyContent}>\n {children}\n </DataProvider>\n </InfiniteProvider>\n );\n};\n"],"names":["useMemoCompare","omit","data","compare","jsx","InfiniteProvider","DataProvider"],"mappings":";;;;AAoCO,MAAM,OAAO,CAAqD;AAAA,EACvE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAAqC;AACnC,QAAM,cAAcA,OAAA;AAAA,IAClB,MAAO,QAAQ,OAAO,6BAAM,OAAO,CAAC,MAAM,CAAC,KAAK,SAAS,EAAE,GAAG,KAAK;AAAA,IACnE,CAAC,CAAC,UAAU,QAAQ,GAAG,CAACC,OAAMC,KAAI,MAAM;AACtC,UAAI,aAAa;AACb,UAAA,YAAY,QAAQD,SAAQ;AAC9B,qBAAaE,WAAQ,EAAA,yBAAyB,UAAUF,KAAI,MAAME,WAAQ,EAAA;AAAA;AACvE,qBAAa,YAAYF;AAC9B,aAAO,aAAaC,SAAQ;AAAA,IAC9B;AAAA,IACA,CAAC,MAAM,IAAI;AAAA,EAAA;AAGX,SAAAE,2BAAA,kBAAA,IAACC,2BACC,UAACD,2BAAA,kBAAA,IAAAE,OAAA,cAAA,EAAmB,MAAM,aAAa,cACpC,SACH,CAAA,EACF,CAAA;AAEJ;;"}
@@ -1,6 +1,6 @@
1
1
  import { j as jsxRuntimeExports } from "./jsx-runtime-mMz73N64.js";
2
2
  import { c as S } from "./aggregator-Dl2jHye5.js";
3
- import { f as useMemoCompare, g as InfiniteProvider, h as DataProvider } from "./Toggle-Cwf_871b.js";
3
+ import { f as useMemoCompare, g as InfiniteProvider, h as DataProvider } from "./Toggle-DcOiWiHG.js";
4
4
  const List = ({
5
5
  children,
6
6
  data,
@@ -24,4 +24,4 @@ const List = ({
24
24
  export {
25
25
  List as L
26
26
  };
27
- //# sourceMappingURL=List-T419F-at.js.map
27
+ //# sourceMappingURL=List-aJEsDHql.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"List-T419F-at.js","sources":["../src/list/List.tsx"],"sourcesContent":["// Copyright 2023 Synnax Labs, Inc.\n//\n// Use of this software is governed by the Business Source License included in the file\n// licenses/BSL.txt.\n//\n// As of the Change Date specified in that file, in accordance with the Business Source\n// License, use of this software will be governed by the Apache License, Version 2.0,\n// included in the file licenses/APL.txt.\n\nimport { useMemo, type PropsWithChildren, type ReactElement } from \"react\";\n\nimport { type Keyed, type Key, compare } from \"@synnaxlabs/x\";\n\nimport { DataProvider } from \"@/list/Data\";\nimport { InfiniteProvider } from \"@/list/Infinite\";\nimport { useMemoCompare } from \"@/memo\";\n\nexport interface ListProps<K extends Key = Key, E extends Keyed<K> = Keyed<K>>\n extends PropsWithChildren<unknown> {\n data?: E[];\n emptyContent?: ReactElement;\n omit?: K[];\n}\n\n/**\n * The main component for building a List. By itself, it does not render any HTML, and\n * should be used in conjunction with its sub-components (List.'X') to build a list\n * component to fit your needs.\n *\n * @param props - The props for the List component.\n * @param props.data - The data to be displayed in the list. The values of the object in\n * each entry of the array must satisfy the {@link RenderableValue} interface i.e. they\n * must be a primitive type or implement a 'toString' method.\n * @param props.children - Sub-components of the List component to add additional functionality.\n *\n */\nexport const List = <K extends Key = Key, E extends Keyed<K> = Keyed<K>>({\n children,\n data,\n emptyContent,\n omit,\n}: ListProps<K, E>): ReactElement => {\n const omittedData = useMemoCompare(\n () => (omit != null ? data?.filter((e) => !omit.includes(e.key)) : data),\n ([prevOmit, prevData], [omit, data]) => {\n let omitsEqual = false;\n if (prevOmit != null && omit != null)\n omitsEqual = compare.unorderedPrimitiveArrays(prevOmit, omit) === compare.EQUAL;\n else omitsEqual = prevOmit == omit;\n return prevData === data && omitsEqual;\n },\n [omit, data] as [K[] | undefined, E[] | undefined],\n );\n return (\n <InfiniteProvider>\n <DataProvider<K, E> data={omittedData} emptyContent={emptyContent}>\n {children}\n </DataProvider>\n </InfiniteProvider>\n );\n};\n"],"names":["omit","data","compare","jsx"],"mappings":";;;AAoCO,MAAM,OAAO,CAAqD;AAAA,EACvE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAAqC;AACnC,QAAM,cAAc;AAAA,IAClB,MAAO,QAAQ,OAAO,6BAAM,OAAO,CAAC,MAAM,CAAC,KAAK,SAAS,EAAE,GAAG,KAAK;AAAA,IACnE,CAAC,CAAC,UAAU,QAAQ,GAAG,CAACA,OAAMC,KAAI,MAAM;AACtC,UAAI,aAAa;AACb,UAAA,YAAY,QAAQD,SAAQ;AAC9B,qBAAaE,EAAQ,yBAAyB,UAAUF,KAAI,MAAME,EAAQ;AAAA;AACvE,qBAAa,YAAYF;AAC9B,aAAO,aAAaC,SAAQ;AAAA,IAC9B;AAAA,IACA,CAAC,MAAM,IAAI;AAAA,EAAA;AAGX,SAAAE,kCAAA,IAAC,oBACC,UAACA,kCAAA,IAAA,cAAA,EAAmB,MAAM,aAAa,cACpC,SACH,CAAA,EACF,CAAA;AAEJ;"}
1
+ {"version":3,"file":"List-aJEsDHql.js","sources":["../src/list/List.tsx"],"sourcesContent":["// Copyright 2023 Synnax Labs, Inc.\n//\n// Use of this software is governed by the Business Source License included in the file\n// licenses/BSL.txt.\n//\n// As of the Change Date specified in that file, in accordance with the Business Source\n// License, use of this software will be governed by the Apache License, Version 2.0,\n// included in the file licenses/APL.txt.\n\nimport { useMemo, type PropsWithChildren, type ReactElement } from \"react\";\n\nimport { type Keyed, type Key, compare } from \"@synnaxlabs/x\";\n\nimport { DataProvider } from \"@/list/Data\";\nimport { InfiniteProvider } from \"@/list/Infinite\";\nimport { useMemoCompare } from \"@/memo\";\n\nexport interface ListProps<K extends Key = Key, E extends Keyed<K> = Keyed<K>>\n extends PropsWithChildren<unknown> {\n data?: E[];\n emptyContent?: ReactElement;\n omit?: K[];\n}\n\n/**\n * The main component for building a List. By itself, it does not render any HTML, and\n * should be used in conjunction with its sub-components (List.'X') to build a list\n * component to fit your needs.\n *\n * @param props - The props for the List component.\n * @param props.data - The data to be displayed in the list. The values of the object in\n * each entry of the array must satisfy the {@link RenderableValue} interface i.e. they\n * must be a primitive type or implement a 'toString' method.\n * @param props.children - Sub-components of the List component to add additional functionality.\n *\n */\nexport const List = <K extends Key = Key, E extends Keyed<K> = Keyed<K>>({\n children,\n data,\n emptyContent,\n omit,\n}: ListProps<K, E>): ReactElement => {\n const omittedData = useMemoCompare(\n () => (omit != null ? data?.filter((e) => !omit.includes(e.key)) : data),\n ([prevOmit, prevData], [omit, data]) => {\n let omitsEqual = false;\n if (prevOmit != null && omit != null)\n omitsEqual = compare.unorderedPrimitiveArrays(prevOmit, omit) === compare.EQUAL;\n else omitsEqual = prevOmit == omit;\n return prevData === data && omitsEqual;\n },\n [omit, data] as [K[] | undefined, E[] | undefined],\n );\n return (\n <InfiniteProvider>\n <DataProvider<K, E> data={omittedData} emptyContent={emptyContent}>\n {children}\n </DataProvider>\n </InfiniteProvider>\n );\n};\n"],"names":["omit","data","compare","jsx"],"mappings":";;;AAoCO,MAAM,OAAO,CAAqD;AAAA,EACvE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAAqC;AACnC,QAAM,cAAc;AAAA,IAClB,MAAO,QAAQ,OAAO,6BAAM,OAAO,CAAC,MAAM,CAAC,KAAK,SAAS,EAAE,GAAG,KAAK;AAAA,IACnE,CAAC,CAAC,UAAU,QAAQ,GAAG,CAACA,OAAMC,KAAI,MAAM;AACtC,UAAI,aAAa;AACb,UAAA,YAAY,QAAQD,SAAQ;AAC9B,qBAAaE,EAAQ,yBAAyB,UAAUF,KAAI,MAAME,EAAQ;AAAA;AACvE,qBAAa,YAAYF;AAC9B,aAAO,aAAaC,SAAQ;AAAA,IAC9B;AAAA,IACA,CAAC,MAAM,IAAI;AAAA,EAAA;AAGX,SAAAE,kCAAA,IAAC,oBACC,UAACA,kCAAA,IAAA,cAAA,EAAmB,MAAM,aAAa,cACpC,SACH,CAAA,EACF,CAAA;AAEJ;"}
@@ -11121,7 +11121,10 @@ const useTransforms = ({
11121
11121
  [setTransform]
11122
11122
  );
11123
11123
  const transform2 = React.useCallback(
11124
- (data) => transforms2.reduce((data2, t) => t.transform(data2), data),
11124
+ (props) => transforms2.reduce((data, t) => t.transform(data), {
11125
+ ...props,
11126
+ transformed: false
11127
+ }),
11125
11128
  [transforms2]
11126
11129
  );
11127
11130
  return { transform: transform2, setTransform, deleteTransform };
@@ -12012,7 +12015,8 @@ const useRequiredContext = (context) => {
12012
12015
  };
12013
12016
  const DataContext = React.createContext({
12014
12017
  transformedData: [],
12015
- sourceData: []
12018
+ sourceData: [],
12019
+ transformed: false
12016
12020
  });
12017
12021
  const DataUtilContext = React.createContext({
12018
12022
  setSourceData: () => void 0,
@@ -12020,7 +12024,8 @@ const DataUtilContext = React.createContext({
12020
12024
  getTransformedData: () => [],
12021
12025
  deleteTransform: () => void 0,
12022
12026
  setTransform: () => void 0,
12023
- setEmptyContent: () => void 0
12027
+ setEmptyContent: () => void 0,
12028
+ getTransformed: () => false
12024
12029
  });
12025
12030
  const useDataContext = () => useRequiredContext(DataContext);
12026
12031
  const useDataUtilContext = () => useRequiredContext(DataUtilContext);
@@ -12039,8 +12044,11 @@ const DataProvider = ({
12039
12044
  if (sourceData != null)
12040
12045
  setData(sourceData);
12041
12046
  }, [sourceData]);
12042
- const transformedData = React.useMemo(() => transform2(data), [data, transform2]);
12043
- const transformedDataRef = useSyncedRef(transformedData);
12047
+ const transformRes = React.useMemo(
12048
+ () => transform2({ data, transformed: false }),
12049
+ [data, transform2]
12050
+ );
12051
+ const transformedDataRef = useSyncedRef(transformRes);
12044
12052
  const [emptyContent, setEmptyContent] = React.useState(
12045
12053
  void 0
12046
12054
  );
@@ -12052,7 +12060,8 @@ const DataProvider = ({
12052
12060
  () => ({
12053
12061
  setSourceData: setData,
12054
12062
  getSourceData: () => dataRef.current,
12055
- getTransformedData: () => transformedDataRef.current,
12063
+ getTransformedData: () => transformedDataRef.current.data,
12064
+ getTransformed: () => transformedDataRef.current.transformed,
12056
12065
  deleteTransform,
12057
12066
  setTransform,
12058
12067
  setEmptyContent
@@ -12061,11 +12070,12 @@ const DataProvider = ({
12061
12070
  );
12062
12071
  const ctxValue = React.useMemo(
12063
12072
  () => ({
12064
- transformedData,
12073
+ transformed: transformRes.transformed,
12074
+ transformedData: transformRes.data,
12065
12075
  sourceData: data,
12066
12076
  emptyContent
12067
12077
  }),
12068
- [transformedData, data, emptyContent]
12078
+ [transformRes, data, emptyContent]
12069
12079
  );
12070
12080
  return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(DataUtilContext.Provider, { value: utilValue, children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(DataContext.Provider, { value: ctxValue, children }) });
12071
12081
  };
@@ -57378,10 +57388,13 @@ const longestEntries = (data, columns) => {
57378
57388
  );
57379
57389
  return longest;
57380
57390
  };
57381
- const sortTransform = (k, dir) => (data) => {
57391
+ const sortTransform = (k, dir) => ({ data }) => {
57382
57392
  if (data.length === 0)
57383
- return data;
57384
- return [...data].sort(aggregator.S.newFieldF(k, data[0], !dir));
57393
+ return { data, transformed: false };
57394
+ return {
57395
+ data: [...data].sort(aggregator.S.newFieldF(k, data[0], !dir)),
57396
+ transformed: true
57397
+ };
57385
57398
  };
57386
57399
  const Column = {
57387
57400
  /**
@@ -57392,7 +57405,7 @@ const Column = {
57392
57405
  Header,
57393
57406
  /**
57394
57407
  * The item to use for a column list. This should be used as the child render prop
57395
- * in a list render implmentation e.g. {@link List.Core.Virtual}.
57408
+ * in a list render implementation e.g. {@link List.Core.Virtual}.
57396
57409
  *
57397
57410
  * @param props - implements the {@link ItemProps} interface. All these props
57398
57411
  * should be provided by the list render implementation.
@@ -58261,7 +58274,12 @@ const VirtualCore = ({
58261
58274
  throw new Error("itemHeight must be greater than 0");
58262
58275
  const { hasMore, onFetchMore } = useInfiniteContext();
58263
58276
  const { hover: hoverValue, setHover } = useHoverContext();
58264
- const { transformedData: data, emptyContent } = useDataContext();
58277
+ const {
58278
+ transformedData: data,
58279
+ emptyContent,
58280
+ transformed,
58281
+ sourceData
58282
+ } = useDataContext();
58265
58283
  const selected = useSelection();
58266
58284
  const { onSelect } = useSelectionUtils();
58267
58285
  const parentRef = React.useRef(null);
@@ -58302,8 +58320,14 @@ const VirtualCore = ({
58302
58320
  style: { height: virtualizer.getTotalSize() },
58303
58321
  children: items.map(({ index: index2, start }) => {
58304
58322
  const entry = data[index2];
58323
+ let sourceIndex = index2;
58324
+ if (transformed) {
58325
+ console.log("TRANSFORMED");
58326
+ sourceIndex = sourceData.findIndex((e2) => e2.key === entry.key);
58327
+ }
58305
58328
  return children({
58306
58329
  key: entry.key,
58330
+ sourceIndex,
58307
58331
  index: index2,
58308
58332
  onSelect,
58309
58333
  entry,
@@ -58321,20 +58345,29 @@ const Core = ({
58321
58345
  itemHeight: _,
58322
58346
  ...props
58323
58347
  }) => {
58324
- const { transformedData: data, emptyContent } = useDataContext();
58348
+ const {
58349
+ transformedData: data,
58350
+ transformed,
58351
+ emptyContent,
58352
+ sourceData
58353
+ } = useDataContext();
58325
58354
  const { hover: hover3 } = useHoverContext();
58326
58355
  const { selected } = useSelectionContext();
58327
58356
  const { onSelect } = useSelectionUtils();
58328
- return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Center.Space, { className: css.CSS.BE("list", "container"), size: 0, ...props, children: data.length === 0 ? emptyContent : /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(jsxRuntime.jsxRuntimeExports.Fragment, { children: data.map(
58329
- (entry, index2) => props.children({
58357
+ return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(Center.Space, { className: css.CSS.BE("list", "container"), size: 0, ...props, children: data.length === 0 ? emptyContent : /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(jsxRuntime.jsxRuntimeExports.Fragment, { children: data.map((entry, index2) => {
58358
+ let sourceIndex = index2;
58359
+ if (transformed)
58360
+ sourceIndex = sourceData.findIndex((e2) => e2.key === entry.key);
58361
+ return props.children({
58330
58362
  key: entry.key,
58331
58363
  index: index2,
58364
+ sourceIndex,
58332
58365
  onSelect,
58333
58366
  entry,
58334
58367
  selected: selected.includes(entry.key),
58335
58368
  hovered: index2 === hover3
58336
- })
58337
- ) }) });
58369
+ });
58370
+ }) }) });
58338
58371
  };
58339
58372
  Core.Virtual = VirtualCore;
58340
58373
  const variantColors = {
@@ -59404,4 +59437,4 @@ exports.useUniqueKey = useUniqueKey;
59404
59437
  exports.variantColors = variantColors;
59405
59438
  exports.wrap = wrap;
59406
59439
  exports.wrap$1 = wrap$1;
59407
- //# sourceMappingURL=Toggle-CUvIChUA.cjs.map
59440
+ //# sourceMappingURL=Toggle-CAW20E9V.cjs.map