react-cosmos-ui 6.0.0-beta.5 → 6.0.0-beta.7

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 (81) hide show
  1. package/dist/components/BaseSvg.d.ts +1 -1
  2. package/dist/components/Icon.d.ts +2 -2
  3. package/dist/components/Illustration.d.ts +2 -2
  4. package/dist/components/KeyBox.d.ts +2 -2
  5. package/dist/components/SidePanel.d.ts +2 -2
  6. package/dist/components/Space.d.ts +2 -2
  7. package/dist/components/TreeView.d.ts +2 -2
  8. package/dist/components/ValueInputTree/ExpandCollapseValues.d.ts +2 -2
  9. package/dist/components/ValueInputTree/ValueInput/BooleanValueInput.d.ts +2 -2
  10. package/dist/components/ValueInputTree/ValueInput/NullValueInput.d.ts +2 -2
  11. package/dist/components/ValueInputTree/ValueInput/NumberValueInput.d.ts +2 -2
  12. package/dist/components/ValueInputTree/ValueInput/StringValueInput.d.ts +2 -2
  13. package/dist/components/ValueInputTree/ValueInput/UndefinedValueInput.d.ts +2 -2
  14. package/dist/components/ValueInputTree/ValueInput/UnserializableValueInput.d.ts +2 -2
  15. package/dist/components/ValueInputTree/ValueInput/ValueInput.d.ts +2 -2
  16. package/dist/components/ValueInputTree/ValueInputDir.d.ts +4 -3
  17. package/dist/components/ValueInputTree/ValueInputDir.js +2 -6
  18. package/dist/components/ValueInputTree/ValueInputTree.js +17 -2
  19. package/dist/components/ValueInputTree/shared.d.ts +1 -0
  20. package/dist/components/ValueInputTree/valueTree.d.ts +1 -1
  21. package/dist/components/ValueInputTree/valueTree.js +10 -5
  22. package/dist/components/buttons/Button32.d.ts +1 -1
  23. package/dist/components/buttons/Button8.d.ts +1 -1
  24. package/dist/components/buttons/IconButton32.d.ts +1 -1
  25. package/dist/components/buttons/IconButton8.d.ts +1 -1
  26. package/dist/components/buttons/shared.js +4 -1
  27. package/dist/components/icons/index.d.ts +30 -30
  28. package/dist/components/illustrations/ArtificialIntelligence.d.ts +2 -2
  29. package/dist/components/illustrations/Astronaut.d.ts +2 -2
  30. package/dist/components/illustrations/BlankCanvas.d.ts +2 -2
  31. package/dist/components/inputs/NumberInput.d.ts +2 -2
  32. package/dist/components/inputs/Select.d.ts +2 -2
  33. package/dist/cosmos.decorator.d.ts +1 -1
  34. package/dist/playground.bundle.js +328 -319
  35. package/dist/playground.bundle.js.map +1 -1
  36. package/dist/plugins/ClassStatePanel/ClassStatePanel/ComponentClassState.d.ts +2 -2
  37. package/dist/plugins/ControlPanel/ControlPanel.d.ts +2 -2
  38. package/dist/plugins/ControlSelect/SelectValueInput.d.ts +2 -2
  39. package/dist/plugins/FixtureBookmark/BookmarkFixtureButton.d.ts +2 -2
  40. package/dist/plugins/FixtureBookmark/FixtureBookmarks.d.ts +2 -2
  41. package/dist/plugins/FixtureSearch/FixtureSearchHeader.d.ts +2 -2
  42. package/dist/plugins/FixtureSearch/FixtureSearchOverlay.d.ts +2 -2
  43. package/dist/plugins/FixtureSearch/FixtureSearchOverlay.js +10 -4
  44. package/dist/plugins/FixtureSearch/FixtureSearchResult.d.ts +2 -2
  45. package/dist/plugins/FixtureSearch/FixtureSearchShortcuts.d.ts +2 -2
  46. package/dist/plugins/FixtureTree/BlankState.d.ts +2 -2
  47. package/dist/plugins/FixtureTree/FixtureTree/FixtureButton.d.ts +2 -2
  48. package/dist/plugins/FixtureTree/FixtureTree/FixtureDir.d.ts +2 -2
  49. package/dist/plugins/FixtureTree/FixtureTree/FixtureLink.d.ts +2 -2
  50. package/dist/plugins/FixtureTree/FixtureTree/MultiFixtureButton.d.ts +2 -2
  51. package/dist/plugins/FixtureTree/FixtureTree/MultiFixtureChildButton.d.ts +2 -2
  52. package/dist/plugins/FixtureTree/FixtureTreeContainer.d.ts +2 -2
  53. package/dist/plugins/FixtureTree/FixtureTreeHeader.d.ts +2 -2
  54. package/dist/plugins/FullScreenButton/FullScreenButton.d.ts +2 -2
  55. package/dist/plugins/MessageHandler/socket.js +1 -1
  56. package/dist/plugins/Notifications/Notifications.d.ts +2 -2
  57. package/dist/plugins/PluginList/PluginList.d.ts +2 -2
  58. package/dist/plugins/PropsPanel/BlankState.d.ts +2 -2
  59. package/dist/plugins/PropsPanel/PropsPanel/ComponentProps.d.ts +2 -2
  60. package/dist/plugins/RemoteRenderer/RemoteButton/index.d.ts +2 -2
  61. package/dist/plugins/RendererPreview/RendererOverlay/RemoteRendererConnected.d.ts +2 -2
  62. package/dist/plugins/RendererPreview/RendererOverlay/RemoteRendererOverlay.d.ts +2 -2
  63. package/dist/plugins/RendererPreview/RendererOverlay/RendererOverlay.d.ts +2 -2
  64. package/dist/plugins/RendererPreview/RendererOverlay/WaitingForRenderer.d.ts +2 -2
  65. package/dist/plugins/ResponsivePreview/ResponsivePreview/ResponsivePreview.d.ts +2 -2
  66. package/dist/plugins/ResponsivePreview/ToggleButton/index.d.ts +2 -2
  67. package/dist/plugins/Root/GlobalHeader.d.ts +2 -2
  68. package/dist/plugins/Root/HomeOverlay/HomeOverlay.d.ts +2 -2
  69. package/dist/plugins/Root/HomeOverlay/KeyShortcut.d.ts +2 -2
  70. package/dist/plugins/Root/HomeOverlay/NoFixtureSelected.d.ts +2 -2
  71. package/dist/plugins/Root/HomeOverlay/WelcomeCosmos.d.ts +2 -2
  72. package/dist/plugins/Root/Root.d.ts +2 -2
  73. package/dist/plugins/Root/ToggleNavButton.d.ts +2 -2
  74. package/dist/slots/ControlActionSlot.d.ts +2 -2
  75. package/dist/slots/ControlSlot.d.ts +2 -2
  76. package/dist/slots/FixtureActionSlot.d.ts +2 -2
  77. package/dist/slots/NavRowSlot.d.ts +2 -2
  78. package/dist/slots/RendererActionSlot.d.ts +2 -2
  79. package/dist/slots/SidePanelRowSlot.d.ts +2 -2
  80. package/dist/slots/ValueInputSlot.d.ts +2 -2
  81. package/package.json +3 -3
@@ -5,5 +5,5 @@ type Props = {
5
5
  children: SvgChildren;
6
6
  [attr: string]: unknown;
7
7
  };
8
- export declare function BaseSvg({ children, ...attrs }: Props): JSX.Element;
8
+ export declare function BaseSvg({ children, ...attrs }: Props): React.JSX.Element;
9
9
  export {};
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { SvgChildren } from './BaseSvg.js';
3
3
  export type IconProps = {
4
4
  size?: number | string;
@@ -7,5 +7,5 @@ export type IconProps = {
7
7
  type Props = IconProps & {
8
8
  children: SvgChildren;
9
9
  };
10
- export declare function Icon({ children, size, strokeWidth }: Props): JSX.Element;
10
+ export declare function Icon({ children, size, strokeWidth }: Props): React.JSX.Element;
11
11
  export {};
@@ -1,9 +1,9 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { SvgChildren } from './BaseSvg.js';
3
3
  type Props = {
4
4
  children: SvgChildren;
5
5
  viewBox: string;
6
6
  size?: number | string;
7
7
  };
8
- export declare function Illustration({ children, viewBox, size }: Props): JSX.Element;
8
+ export declare function Illustration({ children, viewBox, size }: Props): React.JSX.Element;
9
9
  export {};
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  type Props = {
3
3
  value: string;
4
4
  bgColor: string;
@@ -6,5 +6,5 @@ type Props = {
6
6
  size?: number;
7
7
  fontSize?: number;
8
8
  };
9
- export declare function KeyBox({ value, bgColor, textColor, size, fontSize, }: Props): JSX.Element;
9
+ export declare function KeyBox({ value, bgColor, textColor, size, fontSize, }: Props): React.JSX.Element;
10
10
  export {};
@@ -1,11 +1,11 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  export declare const SidePanelContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
3
3
  export declare const SidePanelHeader: import("styled-components").StyledComponent<"div", any, {}, never>;
4
4
  type TitleProps = {
5
5
  label: string;
6
6
  componentName?: string;
7
7
  };
8
- export declare function SidePanelTitle({ label, componentName }: TitleProps): JSX.Element;
8
+ export declare function SidePanelTitle({ label, componentName }: TitleProps): React.JSX.Element;
9
9
  export declare const SidePanelActions: import("styled-components").StyledComponent<"div", any, {}, never>;
10
10
  export declare const SidePanelBody: import("styled-components").StyledComponent<"div", any, {}, never>;
11
11
  export {};
@@ -1,8 +1,8 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  type Props = {
3
3
  width: number;
4
4
  } | {
5
5
  height: number;
6
6
  };
7
- export declare function Space(props: Props): JSX.Element;
7
+ export declare function Space(props: Props): React.JSX.Element;
8
8
  export {};
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import React, { ReactNode } from 'react';
2
2
  import { TreeNode } from 'react-cosmos-core';
3
3
  import { TreeExpansion } from '../shared/treeExpansion.js';
4
4
  type Props<Item> = {
@@ -15,5 +15,5 @@ type Props<Item> = {
15
15
  onToggle: () => unknown;
16
16
  }) => ReactNode;
17
17
  };
18
- export declare function TreeView<Item>({ node, name, parents, expansion, setExpansion, renderNode, }: Props<Item>): JSX.Element;
18
+ export declare function TreeView<Item>({ node, name, parents, expansion, setExpansion, renderNode, }: Props<Item>): React.JSX.Element;
19
19
  export {};
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { FixtureStateValues } from 'react-cosmos-core';
3
3
  import { TreeExpansion } from '../../shared/treeExpansion.js';
4
4
  type Props = {
@@ -6,5 +6,5 @@ type Props = {
6
6
  expansion: TreeExpansion;
7
7
  setExpansion: (treeExpansion: TreeExpansion) => unknown;
8
8
  };
9
- export declare function ExpandCollapseValues({ values, expansion, setExpansion, }: Props): JSX.Element | null;
9
+ export declare function ExpandCollapseValues({ values, expansion, setExpansion, }: Props): React.JSX.Element | null;
10
10
  export {};
@@ -1,9 +1,9 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  type Props = {
3
3
  id: string;
4
4
  name: string;
5
5
  data: boolean;
6
6
  onChange: (data: boolean) => unknown;
7
7
  };
8
- export declare function BooleanValueInput({ id, name, data, onChange }: Props): JSX.Element;
8
+ export declare function BooleanValueInput({ id, name, data, onChange }: Props): React.JSX.Element;
9
9
  export {};
@@ -1,6 +1,6 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  type Props = {
3
3
  name: string;
4
4
  };
5
- export declare function NullValueInput({ name }: Props): JSX.Element;
5
+ export declare function NullValueInput({ name }: Props): React.JSX.Element;
6
6
  export {};
@@ -1,9 +1,9 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  type Props = {
3
3
  id: string;
4
4
  name: string;
5
5
  data: number;
6
6
  onChange: (newValue: number) => unknown;
7
7
  };
8
- export declare function NumberValueInput({ id, name, data, onChange }: Props): JSX.Element;
8
+ export declare function NumberValueInput({ id, name, data, onChange }: Props): React.JSX.Element;
9
9
  export {};
@@ -1,9 +1,9 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  type Props = {
3
3
  id: string;
4
4
  name: string;
5
5
  data: string;
6
6
  onChange: (data: string) => unknown;
7
7
  };
8
- export declare function StringValueInput({ id, name, data, onChange }: Props): JSX.Element;
8
+ export declare function StringValueInput({ id, name, data, onChange }: Props): React.JSX.Element;
9
9
  export {};
@@ -1,6 +1,6 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  type Props = {
3
3
  name: string;
4
4
  };
5
- export declare function UndefinedValueInput({ name }: Props): JSX.Element;
5
+ export declare function UndefinedValueInput({ name }: Props): React.JSX.Element;
6
6
  export {};
@@ -1,7 +1,7 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  type Props = {
3
3
  name: string;
4
4
  data: string;
5
5
  };
6
- export declare function UnserializableValueInput({ name, data }: Props): JSX.Element;
6
+ export declare function UnserializableValueInput({ name, data }: Props): React.JSX.Element;
7
7
  export {};
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { PrimitiveData } from 'react-cosmos-core';
3
3
  import { LeafValue } from '../shared.js';
4
4
  type Props = {
@@ -8,5 +8,5 @@ type Props = {
8
8
  indentLevel: number;
9
9
  onChange: (data: PrimitiveData) => unknown;
10
10
  };
11
- export declare function ValueInput({ value, name, id, indentLevel, onChange }: Props): JSX.Element;
11
+ export declare function ValueInput({ value, name, id, indentLevel, onChange }: Props): React.JSX.Element;
12
12
  export {};
@@ -1,10 +1,11 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  type Props = {
3
3
  name: string;
4
- childNames: string[];
4
+ childrenText: string;
5
+ disabled: boolean;
5
6
  expanded: boolean;
6
7
  indentLevel: number;
7
8
  onToggle: () => unknown;
8
9
  };
9
- export declare function ValueInputDir({ name, childNames, expanded, indentLevel, onToggle, }: Props): JSX.Element;
10
+ export declare function ValueInputDir({ name, childrenText, disabled, expanded, indentLevel, onToggle, }: Props): React.JSX.Element;
10
11
  export {};
@@ -3,8 +3,7 @@ import styled from 'styled-components';
3
3
  import { blue, disabledColors, grey128, grey160, grey224, } from '../../style/colors.js';
4
4
  import { ChevronDownIcon, ChevronRightIcon } from '../icons/index.js';
5
5
  import { ValueTreeItem } from './shared.js';
6
- export function ValueInputDir({ name, childNames, expanded, indentLevel, onToggle, }) {
7
- const disabled = childNames.length === 0;
6
+ export function ValueInputDir({ name, childrenText, disabled, expanded, indentLevel, onToggle, }) {
8
7
  return (React.createElement(ValueTreeItem, { indentLevel: indentLevel },
9
8
  React.createElement(ButtonContainer, null,
10
9
  React.createElement(Button, { disabled: disabled, onClick: onToggle },
@@ -12,10 +11,7 @@ export function ValueInputDir({ name, childNames, expanded, indentLevel, onToggl
12
11
  !disabled && (React.createElement(ChevronContainer, null, expanded ? React.createElement(ChevronDownIcon, null) : React.createElement(ChevronRightIcon, null))),
13
12
  React.createElement(Text, null,
14
13
  React.createElement(DirName, { disabled: disabled }, name),
15
- React.createElement(ChildrenInfo, null, getChildInfo(childNames))))))));
16
- }
17
- function getChildInfo(childNames) {
18
- return childNames.length > 0 ? `{ ${childNames.join(', ')} }` : `{}`;
14
+ React.createElement(ChildrenInfo, null, childrenText)))))));
19
15
  }
20
16
  const ButtonContainer = styled.div `
21
17
  padding: 2px 0;
@@ -11,9 +11,16 @@ export const ValueInputTree = React.memo(function ValueInputTree({ id, values, e
11
11
  return (React.createElement(Container, null,
12
12
  React.createElement(TreeView, { node: rootNode, expansion: expansion, setExpansion: setExpansion, renderNode: ({ node, name, parents, expanded, onToggle }) => {
13
13
  const { data, children } = node;
14
- if (data.type === 'item')
14
+ if (data.type === 'item') {
15
15
  return (React.createElement(ValueInput, { value: data.value, name: name, id: getInputId(id, parents, name), indentLevel: parents.length, onChange: newData => onValueChange(setValueAtPath(values, { type: 'primitive', data: newData }, getValuePath(name, parents))) }));
16
- return (children && (React.createElement(ValueInputDir, { name: name, childNames: Object.keys(children), expanded: expanded, indentLevel: parents.length, onToggle: onToggle })));
16
+ }
17
+ if (children) {
18
+ const childKeys = Object.keys(children);
19
+ return (React.createElement(ValueInputDir, { name: name, childrenText: getChildrenText(childKeys, data.isArray), disabled: childKeys.length === 0, expanded: expanded, indentLevel: parents.length, onToggle: onToggle }));
20
+ }
21
+ else {
22
+ return null;
23
+ }
17
24
  } })));
18
25
  });
19
26
  function getInputId(treeId, parents, name) {
@@ -26,6 +33,14 @@ function setValueAtPath(values, newValue, valuePath) {
26
33
  // Inspired by https://github.com/lodash/lodash/issues/1696#issuecomment-328335502
27
34
  return setWith(clone(values), valuePath, newValue, clone);
28
35
  }
36
+ function getChildrenText(childKeys, isArray) {
37
+ if (childKeys.length > 0) {
38
+ return isArray ? `[ ${childKeys.length} ]` : `{ ${childKeys.join(', ')} }`;
39
+ }
40
+ else {
41
+ return isArray ? `[]` : `{}`;
42
+ }
43
+ }
29
44
  const Container = styled.div `
30
45
  background: ${grey32};
31
46
  color: ${grey248};
@@ -2,6 +2,7 @@ import { FixtureElementId, FixtureStatePrimitiveValue, FixtureStateUnserializabl
2
2
  export type LeafValue = FixtureStatePrimitiveValue | FixtureStateUnserializableValue;
3
3
  export type ValueNodeData = {
4
4
  type: 'collection';
5
+ isArray: boolean;
5
6
  } | {
6
7
  type: 'item';
7
8
  value: LeafValue;
@@ -1,3 +1,3 @@
1
1
  import { FixtureStateValues } from 'react-cosmos-core';
2
2
  import { ValueNode } from './shared.js';
3
- export declare function createValueTree(values: FixtureStateValues): ValueNode;
3
+ export declare function createValueTree(values: FixtureStateValues, isArray?: boolean): ValueNode;
@@ -1,20 +1,25 @@
1
- export function createValueTree(values) {
1
+ export function createValueTree(values, isArray = false) {
2
2
  const children = {};
3
3
  Object.keys(values).forEach(key => {
4
4
  const value = values[key];
5
5
  if (value.type === 'object') {
6
- children[key] = createValueTree(value.values);
6
+ children[key] = createValueTree(value.values, false);
7
7
  }
8
8
  else if (value.type === 'array') {
9
9
  const objValues = {};
10
10
  value.values.forEach((v, idx) => {
11
11
  objValues[idx] = v;
12
12
  });
13
- children[key] = createValueTree(objValues);
13
+ children[key] = createValueTree(objValues, true);
14
14
  }
15
15
  else {
16
- children[key] = { data: { type: 'item', value } };
16
+ children[key] = {
17
+ data: { type: 'item', value },
18
+ };
17
19
  }
18
20
  });
19
- return { data: { type: 'collection' }, children };
21
+ return {
22
+ data: { type: 'collection', isArray },
23
+ children,
24
+ };
20
25
  }
@@ -7,5 +7,5 @@ type Props = {
7
7
  selected?: boolean;
8
8
  onClick?: () => unknown;
9
9
  };
10
- export declare function Button32({ icon, label, title, disabled, selected, onClick, }: Props): JSX.Element;
10
+ export declare function Button32({ icon, label, title, disabled, selected, onClick, }: Props): React.JSX.Element;
11
11
  export {};
@@ -7,5 +7,5 @@ type Props = {
7
7
  selected?: boolean;
8
8
  onClick?: () => unknown;
9
9
  };
10
- export declare function Button8({ icon, label, title, disabled, selected, onClick, }: Props): JSX.Element;
10
+ export declare function Button8({ icon, label, title, disabled, selected, onClick, }: Props): React.JSX.Element;
11
11
  export {};
@@ -6,5 +6,5 @@ type Props = {
6
6
  selected?: boolean;
7
7
  onClick?: () => unknown;
8
8
  };
9
- export declare function IconButton32({ icon, title, disabled, selected, onClick, }: Props): JSX.Element;
9
+ export declare function IconButton32({ icon, title, disabled, selected, onClick, }: Props): React.JSX.Element;
10
10
  export {};
@@ -6,5 +6,5 @@ type Props = {
6
6
  selected?: boolean;
7
7
  onClick?: () => unknown;
8
8
  };
9
- export declare function IconButton8({ icon, title, disabled, selected, onClick, }: Props): JSX.Element;
9
+ export declare function IconButton8({ icon, title, disabled, selected, onClick, }: Props): React.JSX.Element;
10
10
  export {};
@@ -14,7 +14,10 @@ export const StyledButton = styled.button `
14
14
  white-space: nowrap;
15
15
  user-select: none;
16
16
  outline: none;
17
- transition: background ${quick}s, color ${quick}s, opacity ${quick}s;
17
+ transition:
18
+ background ${quick}s,
19
+ color ${quick}s,
20
+ opacity ${quick}s;
18
21
 
19
22
  :hover {
20
23
  background: ${props => (props.selected ? props.bgSelect : props.bgHover)};
@@ -1,31 +1,31 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { IconProps } from '../Icon.js';
3
- export declare const ChevronLeftIcon: () => JSX.Element;
4
- export declare const ChevronRightIcon: () => JSX.Element;
5
- export declare const ChevronDownIcon: () => JSX.Element;
6
- export declare const FolderIcon: () => JSX.Element;
7
- export declare const XIcon: () => JSX.Element;
8
- export declare const XCircleIcon: () => JSX.Element;
9
- export declare const MaximizeIcon: () => JSX.Element;
10
- export declare const SmartphoneIcon: () => JSX.Element;
11
- export declare const Minimize2Icon: () => JSX.Element;
12
- export declare const RefreshCwIcon: () => JSX.Element;
13
- export declare const RefreshCcwIcon: (props: IconProps) => JSX.Element;
14
- export declare const HomeIcon: () => JSX.Element;
15
- export declare const CastIcon: () => JSX.Element;
16
- export declare const EditIcon: () => JSX.Element;
17
- export declare const CheckCircleIcon: (props: IconProps) => JSX.Element;
18
- export declare const AlertCircleIcon: () => JSX.Element;
19
- export declare const InfoIcon: () => JSX.Element;
20
- export declare const LoaderIcon: () => JSX.Element;
21
- export declare const SlidersIcon: () => JSX.Element;
22
- export declare const CopyIcon: () => JSX.Element;
23
- export declare const RotateCcwIcon: () => JSX.Element;
24
- export declare const FileIcon: () => JSX.Element;
25
- export declare const SearchIcon: () => JSX.Element;
26
- export declare const MenuIcon: () => JSX.Element;
27
- export declare const ExternalIcon: () => JSX.Element;
28
- export declare const HelpCircleIcon: () => JSX.Element;
29
- export declare const MinusSquareIcon: () => JSX.Element;
30
- export declare const PlusSquareIcon: () => JSX.Element;
31
- export declare const StarIcon: () => JSX.Element;
3
+ export declare const ChevronLeftIcon: () => React.JSX.Element;
4
+ export declare const ChevronRightIcon: () => React.JSX.Element;
5
+ export declare const ChevronDownIcon: () => React.JSX.Element;
6
+ export declare const FolderIcon: () => React.JSX.Element;
7
+ export declare const XIcon: () => React.JSX.Element;
8
+ export declare const XCircleIcon: () => React.JSX.Element;
9
+ export declare const MaximizeIcon: () => React.JSX.Element;
10
+ export declare const SmartphoneIcon: () => React.JSX.Element;
11
+ export declare const Minimize2Icon: () => React.JSX.Element;
12
+ export declare const RefreshCwIcon: () => React.JSX.Element;
13
+ export declare const RefreshCcwIcon: (props: IconProps) => React.JSX.Element;
14
+ export declare const HomeIcon: () => React.JSX.Element;
15
+ export declare const CastIcon: () => React.JSX.Element;
16
+ export declare const EditIcon: () => React.JSX.Element;
17
+ export declare const CheckCircleIcon: (props: IconProps) => React.JSX.Element;
18
+ export declare const AlertCircleIcon: () => React.JSX.Element;
19
+ export declare const InfoIcon: () => React.JSX.Element;
20
+ export declare const LoaderIcon: () => React.JSX.Element;
21
+ export declare const SlidersIcon: () => React.JSX.Element;
22
+ export declare const CopyIcon: () => React.JSX.Element;
23
+ export declare const RotateCcwIcon: () => React.JSX.Element;
24
+ export declare const FileIcon: () => React.JSX.Element;
25
+ export declare const SearchIcon: () => React.JSX.Element;
26
+ export declare const MenuIcon: () => React.JSX.Element;
27
+ export declare const ExternalIcon: () => React.JSX.Element;
28
+ export declare const HelpCircleIcon: () => React.JSX.Element;
29
+ export declare const MinusSquareIcon: () => React.JSX.Element;
30
+ export declare const PlusSquareIcon: () => React.JSX.Element;
31
+ export declare const StarIcon: () => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  export declare const ArtificialIntelligenceIllustration: ({ title, }: {
3
3
  title: string;
4
- }) => JSX.Element;
4
+ }) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  export declare const AstronautIllustration: ({ title }: {
3
3
  title: string;
4
- }) => JSX.Element;
4
+ }) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  export declare const BlankCanvasIllustration: ({ title }: {
3
3
  title: string;
4
- }) => JSX.Element;
4
+ }) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  export type NumberInputStyles = {
3
3
  focusedColor: string;
4
4
  focusedBg: string;
@@ -12,5 +12,5 @@ type Props = {
12
12
  styles: NumberInputStyles;
13
13
  onChange: (newValue: number) => unknown;
14
14
  };
15
- export declare function NumberInput({ id, value, minValue, maxValue, styles, onChange, }: Props): JSX.Element;
15
+ export declare function NumberInput({ id, value, minValue, maxValue, styles, onChange, }: Props): React.JSX.Element;
16
16
  export {};
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  type BaseOption = {
3
3
  value: string;
4
4
  label: string;
@@ -13,5 +13,5 @@ type Props<Option extends BaseOption> = {
13
13
  padding: number;
14
14
  onChange: (newValue: Option) => unknown;
15
15
  };
16
- export declare function Select<Option extends BaseOption>({ id, testId, options, value, color, height, padding, onChange, }: Props<Option>): JSX.Element;
16
+ export declare function Select<Option extends BaseOption>({ id, testId, options, value, color, height, padding, onChange, }: Props<Option>): React.JSX.Element;
17
17
  export {};
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  declare const _default: ({ children }: {
3
3
  children: React.ReactNode;
4
- }) => JSX.Element;
4
+ }) => React.JSX.Element;
5
5
  export default _default;