@synnaxlabs/pluto 0.21.1 → 0.21.2

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 (108) hide show
  1. package/dist/{Keyboard-CEX8wqRX.js → Keyboard-C8cyKsao.js} +2 -2
  2. package/dist/{Keyboard-CEX8wqRX.js.map → Keyboard-C8cyKsao.js.map} +1 -1
  3. package/dist/{Keyboard-CDiwrDN_.cjs → Keyboard-CQoUT-k_.cjs} +2 -2
  4. package/dist/{Keyboard-CDiwrDN_.cjs.map → Keyboard-CQoUT-k_.cjs.map} +1 -1
  5. package/dist/{LinePlot-D3gQs_D3.js → LinePlot-D3us1amT.js} +2 -2
  6. package/dist/{LinePlot-D3gQs_D3.js.map → LinePlot-D3us1amT.js.map} +1 -1
  7. package/dist/{LinePlot-DLRPrgHN.cjs → LinePlot-FmPnet-3.cjs} +2 -2
  8. package/dist/{LinePlot-DLRPrgHN.cjs.map → LinePlot-FmPnet-3.cjs.map} +1 -1
  9. package/dist/{Link-DZF_mhiS.js → Link-3r9yGooG.js} +2 -2
  10. package/dist/{Link-DZF_mhiS.js.map → Link-3r9yGooG.js.map} +1 -1
  11. package/dist/{Link-BKZVZIk7.cjs → Link-pE5mGv-R.cjs} +2 -2
  12. package/dist/{Link-BKZVZIk7.cjs.map → Link-pE5mGv-R.cjs.map} +1 -1
  13. package/dist/{List-Cs01wqeH.js → List-A5VsgE6N.js} +3 -3
  14. package/dist/{List-Cs01wqeH.js.map → List-A5VsgE6N.js.map} +1 -1
  15. package/dist/{List-aushS6dz.cjs → List-DufMhjqX.cjs} +3 -3
  16. package/dist/{List-aushS6dz.cjs.map → List-DufMhjqX.cjs.map} +1 -1
  17. package/dist/{Toggle-DDY2Hs-p.js → Toggle-Blzh0A0b.js} +4 -3
  18. package/dist/{Toggle-DDY2Hs-p.js.map → Toggle-Blzh0A0b.js.map} +1 -1
  19. package/dist/{Toggle-J-_q32C5.cjs → Toggle-D1EoehhH.cjs} +4 -3
  20. package/dist/{Toggle-J-_q32C5.cjs.map → Toggle-D1EoehhH.cjs.map} +1 -1
  21. package/dist/{aggregator-B630XvUR.cjs → aggregator-Ca8xiVD2.cjs} +3 -2
  22. package/dist/{aggregator-B630XvUR.cjs.map → aggregator-Ca8xiVD2.cjs.map} +1 -1
  23. package/dist/{aggregator-CMccKfYY.js → aggregator-Dl2jHye5.js} +3 -2
  24. package/dist/{aggregator-CMccKfYY.js.map → aggregator-Dl2jHye5.js.map} +1 -1
  25. package/dist/button.cjs +1 -1
  26. package/dist/button.js +1 -1
  27. package/dist/color.cjs +1 -1
  28. package/dist/color.js +1 -1
  29. package/dist/dropdown.cjs +1 -1
  30. package/dist/dropdown.js +1 -1
  31. package/dist/ether.cjs +2 -2
  32. package/dist/ether.js +4 -4
  33. package/dist/{external-BEuegMjB.js → external-1LeSvPMo.js} +5 -5
  34. package/dist/{external-BEuegMjB.js.map → external-1LeSvPMo.js.map} +1 -1
  35. package/dist/{external-Dvfxbror.cjs → external-B8ILMNP2.cjs} +3 -3
  36. package/dist/{external-Dvfxbror.cjs.map → external-B8ILMNP2.cjs.map} +1 -1
  37. package/dist/{external-gnae-K0R.cjs → external-B8MvInOj.cjs} +3 -3
  38. package/dist/{external-gnae-K0R.cjs.map → external-B8MvInOj.cjs.map} +1 -1
  39. package/dist/{external-BapFfm1g.cjs → external-BC7QdjAs.cjs} +4 -4
  40. package/dist/{external-BapFfm1g.cjs.map → external-BC7QdjAs.cjs.map} +1 -1
  41. package/dist/{external-DxAWWXHr.cjs → external-BL3iWJdz.cjs} +3 -3
  42. package/dist/{external-DxAWWXHr.cjs.map → external-BL3iWJdz.cjs.map} +1 -1
  43. package/dist/{external-BMHtKaLv.js → external-BMK0UUaW.js} +3 -3
  44. package/dist/external-BMK0UUaW.js.map +1 -0
  45. package/dist/{external-D39DdEvO.cjs → external-BVW64h82.cjs} +4 -4
  46. package/dist/{external-D39DdEvO.cjs.map → external-BVW64h82.cjs.map} +1 -1
  47. package/dist/{external-DxRHU9kB.cjs → external-Bh2-N-ic.cjs} +5 -5
  48. package/dist/{external-DxRHU9kB.cjs.map → external-Bh2-N-ic.cjs.map} +1 -1
  49. package/dist/{external-Dv4zXi92.js → external-BlDgPWoN.js} +4 -4
  50. package/dist/{external-Dv4zXi92.js.map → external-BlDgPWoN.js.map} +1 -1
  51. package/dist/{external-BCAEiTdS.js → external-C0ssJO_w.js} +3 -3
  52. package/dist/{external-BCAEiTdS.js.map → external-C0ssJO_w.js.map} +1 -1
  53. package/dist/{external-CSkoe4lv.js → external-Cco96ysu.js} +3 -3
  54. package/dist/external-Cco96ysu.js.map +1 -0
  55. package/dist/{external-DZ7kcmNL.js → external-ClBFWQBO.js} +3 -3
  56. package/dist/{external-DZ7kcmNL.js.map → external-ClBFWQBO.js.map} +1 -1
  57. package/dist/{external-BI4uis0s.cjs → external-CygFOviM.cjs} +3 -3
  58. package/dist/{external-BI4uis0s.cjs.map → external-CygFOviM.cjs.map} +1 -1
  59. package/dist/{external-Dl-ZGt_l.js → external-D5cOWqK9.js} +4 -4
  60. package/dist/{external-Dl-ZGt_l.js.map → external-D5cOWqK9.js.map} +1 -1
  61. package/dist/{external-OfudrDkh.js → external-D9_xWvtb.js} +3 -3
  62. package/dist/{external-OfudrDkh.js.map → external-D9_xWvtb.js.map} +1 -1
  63. package/dist/{external-CJ0YZYhM.js → external-DJYiyF-g.js} +3 -3
  64. package/dist/{external-CJ0YZYhM.js.map → external-DJYiyF-g.js.map} +1 -1
  65. package/dist/{external-QMwhKJob.js → external-Dsqoldyc.js} +3 -3
  66. package/dist/{external-QMwhKJob.js.map → external-Dsqoldyc.js.map} +1 -1
  67. package/dist/{external-ik_rhtMe.cjs → external-QoTq138N.cjs} +3 -3
  68. package/dist/{external-ik_rhtMe.cjs.map → external-QoTq138N.cjs.map} +1 -1
  69. package/dist/{external-DETy3UAu.cjs → external-S9aNR1qN.cjs} +5 -5
  70. package/dist/{external-DETy3UAu.cjs.map → external-S9aNR1qN.cjs.map} +1 -1
  71. package/dist/{external-BsumfQ2H.cjs → external-XnNSUnBv.cjs} +3 -3
  72. package/dist/external-XnNSUnBv.cjs.map +1 -0
  73. package/dist/{external-mYfZ-ziq.cjs → external-ueyo2Jw7.cjs} +3 -3
  74. package/dist/external-ueyo2Jw7.cjs.map +1 -0
  75. package/dist/{external-DAIKvuBu.js → external-zennQBXe.js} +5 -5
  76. package/dist/{external-DAIKvuBu.js.map → external-zennQBXe.js.map} +1 -1
  77. package/dist/header.cjs +1 -1
  78. package/dist/header.js +1 -1
  79. package/dist/index.cjs +14 -14
  80. package/dist/index.js +24 -24
  81. package/dist/input.cjs +1 -1
  82. package/dist/input.js +1 -1
  83. package/dist/list.cjs +1 -1
  84. package/dist/list.js +1 -1
  85. package/dist/menu.cjs +1 -1
  86. package/dist/menu.js +1 -1
  87. package/dist/src/status/aether/aggregator.d.ts +10 -10
  88. package/dist/src/status/aether/types.d.ts +5 -5
  89. package/dist/src/status/aether/types.d.ts.map +1 -1
  90. package/dist/src/status/colors.d.ts.map +1 -1
  91. package/dist/src/telem/aether/transformers.d.ts +9 -9
  92. package/dist/src/telem/control/aether/chip.d.ts +10 -10
  93. package/dist/src/telem/control/aether/indicator.d.ts +10 -10
  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 +2 -2
  105. package/dist/external-BMHtKaLv.js.map +0 -1
  106. package/dist/external-BsumfQ2H.cjs.map +0 -1
  107. package/dist/external-CSkoe4lv.js.map +0 -1
  108. package/dist/external-mYfZ-ziq.cjs.map +0 -1
@@ -1,5 +1,5 @@
1
1
  import { j as jsxRuntimeExports } from "./jsx-runtime-mMz73N64.js";
2
- import { B as Button } from "./Toggle-DDY2Hs-p.js";
2
+ import { B as Button } from "./Toggle-Blzh0A0b.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-DZF_mhiS.js.map
13
+ //# sourceMappingURL=Link-3r9yGooG.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Link-DZF_mhiS.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-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,6 +1,6 @@
1
1
  "use strict";
2
2
  const jsxRuntime = require("./jsx-runtime-B3vWrP5x.cjs");
3
- const Toggle = require("./Toggle-J-_q32C5.cjs");
3
+ const Toggle = require("./Toggle-D1EoehhH.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-BKZVZIk7.cjs.map
12
+ //# sourceMappingURL=Link-pE5mGv-R.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"Link-BKZVZIk7.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-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,6 +1,6 @@
1
1
  import { j as jsxRuntimeExports } from "./jsx-runtime-mMz73N64.js";
2
- import { c as S } from "./aggregator-CMccKfYY.js";
3
- import { f as useMemoCompare, g as InfiniteProvider, h as DataProvider } from "./Toggle-DDY2Hs-p.js";
2
+ import { c as S } from "./aggregator-Dl2jHye5.js";
3
+ import { f as useMemoCompare, g as InfiniteProvider, h as DataProvider } from "./Toggle-Blzh0A0b.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-Cs01wqeH.js.map
27
+ //# sourceMappingURL=List-A5VsgE6N.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"List-Cs01wqeH.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-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,7 +1,7 @@
1
1
  "use strict";
2
2
  const jsxRuntime = require("./jsx-runtime-B3vWrP5x.cjs");
3
- const aggregator = require("./aggregator-B630XvUR.cjs");
4
- const Toggle = require("./Toggle-J-_q32C5.cjs");
3
+ const aggregator = require("./aggregator-Ca8xiVD2.cjs");
4
+ const Toggle = require("./Toggle-D1EoehhH.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-aushS6dz.cjs.map
26
+ //# sourceMappingURL=List-DufMhjqX.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"List-aushS6dz.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-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,7 +1,7 @@
1
1
  import { j as jsxRuntimeExports } from "./jsx-runtime-mMz73N64.js";
2
2
  import * as React from "react";
3
3
  import React__default, { isValidElement as isValidElement$1, PureComponent, Component, useCallback, useEffect, useRef, useState, createContext, useContext as useContext$4, forwardRef, Children, useLayoutEffect, useMemo, memo as memo$1, useId, cloneElement } from "react";
4
- import { ah as commonjsGlobal, ae as getDefaultExportFromCjs, c as S, _, a2 as o, ai as executeInitialSetter, aj as executeSetter, w as w$1, y as y$1, B as n$1, m as w$2, A as A$2, ak as customAlphabet, d as a$1, T as fe, F as is, a6 as prettyParse, al as isSetter, C as ComponentSizeLevels, am as getAugmentedNamespace, t as themeZ, b as SYNNAX_THEMES, a as SYNNAX_LIGHT, S as SYNNAX_DARK, P as Provider$5, f as fontString, o as S$1, k as dimensions, D as o$1, an as Aggregator$1, ao as aggregatorStateZ, h as usePurePassthrough, ap as v } from "./aggregator-CMccKfYY.js";
4
+ import { ah as commonjsGlobal, ae as getDefaultExportFromCjs, c as S, _, a2 as o, ai as executeInitialSetter, aj as executeSetter, w as w$1, y as y$1, B as n$1, m as w$2, A as A$2, ak as customAlphabet, d as a$1, T as fe, F as is, a6 as prettyParse, al as isSetter, C as ComponentSizeLevels, am as getAugmentedNamespace, t as themeZ, b as SYNNAX_THEMES, a as SYNNAX_LIGHT, S as SYNNAX_DARK, P as Provider$5, f as fontString, o as S$1, k as dimensions, D as o$1, an as Aggregator$1, ao as aggregatorStateZ, h as usePurePassthrough, ap as v } from "./aggregator-Dl2jHye5.js";
5
5
  import { m as k, o as c, p as t, B, $ as $$1, y, s, r as g, v as po, w as T, x as w, z as u, E as fo, F as lo, G as A$1, M, T as To, q as q$1, C as CSS, c as cssString, L, J, h as clsx } from "./css-DoalWJF6.js";
6
6
  import { createPortal } from "react-dom";
7
7
  import { E as Element, S as Space, P as Pack, C as Center } from "./Center-hbwH7rg9.js";
@@ -58323,7 +58323,8 @@ const variantColors = {
58323
58323
  warning: "var(--pluto-text-color)",
58324
58324
  success: "var(--pluto-primary-z)",
58325
58325
  loading: "var(--pluto-text-color)",
58326
- disabled: "var(--pluto-gray-l6)"
58326
+ disabled: "var(--pluto-gray-l6)",
58327
+ secondary: "var(--pluto-secondary-z)"
58327
58328
  };
58328
58329
  const CoreText = ({
58329
58330
  variant = "info",
@@ -59385,4 +59386,4 @@ export {
59385
59386
  useHeldRef as y,
59386
59387
  Core as z
59387
59388
  };
59388
- //# sourceMappingURL=Toggle-DDY2Hs-p.js.map
59389
+ //# sourceMappingURL=Toggle-Blzh0A0b.js.map