@synnaxlabs/pluto 0.21.3 → 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 (110) hide show
  1. package/dist/{Keyboard-C8cyKsao.js → Keyboard-BqO4SYSr.js} +2 -2
  2. package/dist/{Keyboard-C8cyKsao.js.map → Keyboard-BqO4SYSr.js.map} +1 -1
  3. package/dist/{Keyboard-CQoUT-k_.cjs → Keyboard-CsgjS96C.cjs} +2 -2
  4. package/dist/{Keyboard-CQoUT-k_.cjs.map → Keyboard-CsgjS96C.cjs.map} +1 -1
  5. package/dist/{Link-pE5mGv-R.cjs → Link-B6B7MB7O.cjs} +2 -2
  6. package/dist/{Link-pE5mGv-R.cjs.map → Link-B6B7MB7O.cjs.map} +1 -1
  7. package/dist/{Link-3r9yGooG.js → Link-BaPpY2rf.js} +2 -2
  8. package/dist/{Link-3r9yGooG.js.map → Link-BaPpY2rf.js.map} +1 -1
  9. package/dist/{List-DufMhjqX.cjs → List-J5T88ynF.cjs} +2 -2
  10. package/dist/{List-DufMhjqX.cjs.map → List-J5T88ynF.cjs.map} +1 -1
  11. package/dist/{List-A5VsgE6N.js → List-aJEsDHql.js} +2 -2
  12. package/dist/{List-A5VsgE6N.js.map → List-aJEsDHql.js.map} +1 -1
  13. package/dist/{Toggle-D1EoehhH.cjs → Toggle-CAW20E9V.cjs} +56 -20
  14. package/dist/Toggle-CAW20E9V.cjs.map +1 -0
  15. package/dist/{Toggle-Blzh0A0b.js → Toggle-DcOiWiHG.js} +56 -20
  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-C0ssJO_w.js → external-B695Iunb.js} +2 -2
  24. package/dist/{external-C0ssJO_w.js.map → external-B695Iunb.js.map} +1 -1
  25. package/dist/{external-BMK0UUaW.js → external-B6yW9yjs.js} +2 -2
  26. package/dist/external-B6yW9yjs.js.map +1 -0
  27. package/dist/{external-Bh2-N-ic.cjs → external-BGl-cQCe.cjs} +4 -4
  28. package/dist/{external-Bh2-N-ic.cjs.map → external-BGl-cQCe.cjs.map} +1 -1
  29. package/dist/{external-D9_xWvtb.js → external-Bn7V_LTL.js} +3 -3
  30. package/dist/{external-D9_xWvtb.js.map → external-Bn7V_LTL.js.map} +1 -1
  31. package/dist/{external-ueyo2Jw7.cjs → external-BoNCimxR.cjs} +2 -2
  32. package/dist/external-BoNCimxR.cjs.map +1 -0
  33. package/dist/{external-DJYiyF-g.js → external-Brr6przd.js} +2 -2
  34. package/dist/{external-DJYiyF-g.js.map → external-Brr6przd.js.map} +1 -1
  35. package/dist/{external-ClBFWQBO.js → external-CPB95nWX.js} +2 -2
  36. package/dist/{external-ClBFWQBO.js.map → external-CPB95nWX.js.map} +1 -1
  37. package/dist/{external-B8ILMNP2.cjs → external-CYRIymJR.cjs} +2 -2
  38. package/dist/{external-B8ILMNP2.cjs.map → external-CYRIymJR.cjs.map} +1 -1
  39. package/dist/{external-BL3iWJdz.cjs → external-CZli69bF.cjs} +2 -2
  40. package/dist/{external-BL3iWJdz.cjs.map → external-CZli69bF.cjs.map} +1 -1
  41. package/dist/{external-Cco96ysu.js → external-CflFsngP.js} +3 -3
  42. package/dist/external-CflFsngP.js.map +1 -0
  43. package/dist/{external-Dsqoldyc.js → external-CtH30naU.js} +2 -2
  44. package/dist/{external-Dsqoldyc.js.map → external-CtH30naU.js.map} +1 -1
  45. package/dist/{external-D5cOWqK9.js → external-D8uwkCSk.js} +3 -3
  46. package/dist/{external-D5cOWqK9.js.map → external-D8uwkCSk.js.map} +1 -1
  47. package/dist/{external-S9aNR1qN.cjs → external-DL9-TJzC.cjs} +4 -4
  48. package/dist/{external-S9aNR1qN.cjs.map → external-DL9-TJzC.cjs.map} +1 -1
  49. package/dist/{external-BVW64h82.cjs → external-DnojrP1p.cjs} +7 -7
  50. package/dist/{external-BVW64h82.cjs.map → external-DnojrP1p.cjs.map} +1 -1
  51. package/dist/{external-zennQBXe.js → external-Doprw1Uu.js} +4 -4
  52. package/dist/{external-zennQBXe.js.map → external-Doprw1Uu.js.map} +1 -1
  53. package/dist/{external-XnNSUnBv.cjs → external-Dpr-yBfa.cjs} +3 -3
  54. package/dist/external-Dpr-yBfa.cjs.map +1 -0
  55. package/dist/{external-CygFOviM.cjs → external-Drem1ngI.cjs} +2 -2
  56. package/dist/{external-CygFOviM.cjs.map → external-Drem1ngI.cjs.map} +1 -1
  57. package/dist/{external-QoTq138N.cjs → external-axSECIuu.cjs} +3 -3
  58. package/dist/{external-QoTq138N.cjs.map → external-axSECIuu.cjs.map} +1 -1
  59. package/dist/{external-BC7QdjAs.cjs → external-kZAfJn1X.cjs} +3 -3
  60. package/dist/{external-BC7QdjAs.cjs.map → external-kZAfJn1X.cjs.map} +1 -1
  61. package/dist/{external-B8MvInOj.cjs → external-p8bRcctL.cjs} +2 -2
  62. package/dist/{external-B8MvInOj.cjs.map → external-p8bRcctL.cjs.map} +1 -1
  63. package/dist/{external-1LeSvPMo.js → external-wfv-EKsR.js} +4 -4
  64. package/dist/{external-1LeSvPMo.js.map → external-wfv-EKsR.js.map} +1 -1
  65. package/dist/{external-BlDgPWoN.js → external-yv4F8ndX.js} +7 -7
  66. package/dist/{external-BlDgPWoN.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 +43 -15
  70. package/dist/index.cjs.map +1 -1
  71. package/dist/index.js +51 -23
  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 +2 -1
  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/src/note/Note.d.ts +3 -3
  90. package/dist/src/note/Note.d.ts.map +1 -1
  91. package/dist/src/text/Text.d.ts +2 -2
  92. package/dist/src/text/Text.d.ts.map +1 -1
  93. package/dist/style.css +5 -1
  94. package/dist/tabs.cjs +1 -1
  95. package/dist/tabs.js +1 -1
  96. package/dist/text.cjs +2 -2
  97. package/dist/text.js +2 -2
  98. package/dist/theming.cjs +2 -2
  99. package/dist/theming.js +2 -2
  100. package/dist/tree.cjs +1 -1
  101. package/dist/tree.js +1 -1
  102. package/dist/triggers.cjs +1 -1
  103. package/dist/triggers.js +1 -1
  104. package/package.json +5 -5
  105. package/dist/Toggle-Blzh0A0b.js.map +0 -1
  106. package/dist/Toggle-D1EoehhH.cjs.map +0 -1
  107. package/dist/external-BMK0UUaW.js.map +0 -1
  108. package/dist/external-Cco96ysu.js.map +0 -1
  109. package/dist/external-XnNSUnBv.cjs.map +0 -1
  110. package/dist/external-ueyo2Jw7.cjs.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-Blzh0A0b.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-C8cyKsao.js.map
14
+ //# sourceMappingURL=Keyboard-BqO4SYSr.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Keyboard-C8cyKsao.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-D1EoehhH.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-CQoUT-k_.cjs.map
13
+ //# sourceMappingURL=Keyboard-CsgjS96C.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"Keyboard-CQoUT-k_.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-D1EoehhH.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-pE5mGv-R.cjs.map
12
+ //# sourceMappingURL=Link-B6B7MB7O.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"Link-pE5mGv-R.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-Blzh0A0b.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-3r9yGooG.js.map
13
+ //# sourceMappingURL=Link-BaPpY2rf.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Link-3r9yGooG.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-D1EoehhH.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-DufMhjqX.cjs.map
26
+ //# sourceMappingURL=List-J5T88ynF.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"List-DufMhjqX.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-Blzh0A0b.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-A5VsgE6N.js.map
27
+ //# sourceMappingURL=List-aJEsDHql.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"List-A5VsgE6N.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 };
@@ -11667,8 +11670,11 @@ const CoreText$1 = ({
11667
11670
  );
11668
11671
  const Text$2 = React.forwardRef(CoreText$1);
11669
11672
  const evalColor = (color2, shade) => {
11670
- if (color2 != null)
11673
+ if (color2 != null) {
11674
+ if (typeof color2 === "boolean")
11675
+ return void 0;
11671
11676
  return css.cssString(color2);
11677
+ }
11672
11678
  if (shade != null)
11673
11679
  return `var(--pluto-gray-l${shade})`;
11674
11680
  return void 0;
@@ -12009,7 +12015,8 @@ const useRequiredContext = (context) => {
12009
12015
  };
12010
12016
  const DataContext = React.createContext({
12011
12017
  transformedData: [],
12012
- sourceData: []
12018
+ sourceData: [],
12019
+ transformed: false
12013
12020
  });
12014
12021
  const DataUtilContext = React.createContext({
12015
12022
  setSourceData: () => void 0,
@@ -12017,7 +12024,8 @@ const DataUtilContext = React.createContext({
12017
12024
  getTransformedData: () => [],
12018
12025
  deleteTransform: () => void 0,
12019
12026
  setTransform: () => void 0,
12020
- setEmptyContent: () => void 0
12027
+ setEmptyContent: () => void 0,
12028
+ getTransformed: () => false
12021
12029
  });
12022
12030
  const useDataContext = () => useRequiredContext(DataContext);
12023
12031
  const useDataUtilContext = () => useRequiredContext(DataUtilContext);
@@ -12036,8 +12044,11 @@ const DataProvider = ({
12036
12044
  if (sourceData != null)
12037
12045
  setData(sourceData);
12038
12046
  }, [sourceData]);
12039
- const transformedData = React.useMemo(() => transform2(data), [data, transform2]);
12040
- const transformedDataRef = useSyncedRef(transformedData);
12047
+ const transformRes = React.useMemo(
12048
+ () => transform2({ data, transformed: false }),
12049
+ [data, transform2]
12050
+ );
12051
+ const transformedDataRef = useSyncedRef(transformRes);
12041
12052
  const [emptyContent, setEmptyContent] = React.useState(
12042
12053
  void 0
12043
12054
  );
@@ -12049,7 +12060,8 @@ const DataProvider = ({
12049
12060
  () => ({
12050
12061
  setSourceData: setData,
12051
12062
  getSourceData: () => dataRef.current,
12052
- getTransformedData: () => transformedDataRef.current,
12063
+ getTransformedData: () => transformedDataRef.current.data,
12064
+ getTransformed: () => transformedDataRef.current.transformed,
12053
12065
  deleteTransform,
12054
12066
  setTransform,
12055
12067
  setEmptyContent
@@ -12058,11 +12070,12 @@ const DataProvider = ({
12058
12070
  );
12059
12071
  const ctxValue = React.useMemo(
12060
12072
  () => ({
12061
- transformedData,
12073
+ transformed: transformRes.transformed,
12074
+ transformedData: transformRes.data,
12062
12075
  sourceData: data,
12063
12076
  emptyContent
12064
12077
  }),
12065
- [transformedData, data, emptyContent]
12078
+ [transformRes, data, emptyContent]
12066
12079
  );
12067
12080
  return /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(DataUtilContext.Provider, { value: utilValue, children: /* @__PURE__ */ jsxRuntime.jsxRuntimeExports.jsx(DataContext.Provider, { value: ctxValue, children }) });
12068
12081
  };
@@ -57375,10 +57388,13 @@ const longestEntries = (data, columns) => {
57375
57388
  );
57376
57389
  return longest;
57377
57390
  };
57378
- const sortTransform = (k, dir) => (data) => {
57391
+ const sortTransform = (k, dir) => ({ data }) => {
57379
57392
  if (data.length === 0)
57380
- return data;
57381
- 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
+ };
57382
57398
  };
57383
57399
  const Column = {
57384
57400
  /**
@@ -57389,7 +57405,7 @@ const Column = {
57389
57405
  Header,
57390
57406
  /**
57391
57407
  * The item to use for a column list. This should be used as the child render prop
57392
- * in a list render implmentation e.g. {@link List.Core.Virtual}.
57408
+ * in a list render implementation e.g. {@link List.Core.Virtual}.
57393
57409
  *
57394
57410
  * @param props - implements the {@link ItemProps} interface. All these props
57395
57411
  * should be provided by the list render implementation.
@@ -58258,7 +58274,12 @@ const VirtualCore = ({
58258
58274
  throw new Error("itemHeight must be greater than 0");
58259
58275
  const { hasMore, onFetchMore } = useInfiniteContext();
58260
58276
  const { hover: hoverValue, setHover } = useHoverContext();
58261
- const { transformedData: data, emptyContent } = useDataContext();
58277
+ const {
58278
+ transformedData: data,
58279
+ emptyContent,
58280
+ transformed,
58281
+ sourceData
58282
+ } = useDataContext();
58262
58283
  const selected = useSelection();
58263
58284
  const { onSelect } = useSelectionUtils();
58264
58285
  const parentRef = React.useRef(null);
@@ -58299,8 +58320,14 @@ const VirtualCore = ({
58299
58320
  style: { height: virtualizer.getTotalSize() },
58300
58321
  children: items.map(({ index: index2, start }) => {
58301
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
+ }
58302
58328
  return children({
58303
58329
  key: entry.key,
58330
+ sourceIndex,
58304
58331
  index: index2,
58305
58332
  onSelect,
58306
58333
  entry,
@@ -58318,20 +58345,29 @@ const Core = ({
58318
58345
  itemHeight: _,
58319
58346
  ...props
58320
58347
  }) => {
58321
- const { transformedData: data, emptyContent } = useDataContext();
58348
+ const {
58349
+ transformedData: data,
58350
+ transformed,
58351
+ emptyContent,
58352
+ sourceData
58353
+ } = useDataContext();
58322
58354
  const { hover: hover3 } = useHoverContext();
58323
58355
  const { selected } = useSelectionContext();
58324
58356
  const { onSelect } = useSelectionUtils();
58325
- 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(
58326
- (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({
58327
58362
  key: entry.key,
58328
58363
  index: index2,
58364
+ sourceIndex,
58329
58365
  onSelect,
58330
58366
  entry,
58331
58367
  selected: selected.includes(entry.key),
58332
58368
  hovered: index2 === hover3
58333
- })
58334
- ) }) });
58369
+ });
58370
+ }) }) });
58335
58371
  };
58336
58372
  Core.Virtual = VirtualCore;
58337
58373
  const variantColors = {
@@ -59401,4 +59437,4 @@ exports.useUniqueKey = useUniqueKey;
59401
59437
  exports.variantColors = variantColors;
59402
59438
  exports.wrap = wrap;
59403
59439
  exports.wrap$1 = wrap$1;
59404
- //# sourceMappingURL=Toggle-D1EoehhH.cjs.map
59440
+ //# sourceMappingURL=Toggle-CAW20E9V.cjs.map