react-asc 18.9.5 → 18.9.6

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.
@@ -1,4 +1,2 @@
1
1
  import React from 'react';
2
- export interface ITextareaProps extends React.DetailedHTMLProps<React.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement> {
3
- }
4
- export declare const Textarea: (props: ITextareaProps) => JSX.Element;
2
+ export declare const Textarea: (props: React.ComponentProps<"textarea">) => JSX.Element;
@@ -1,6 +1,2 @@
1
- /// <reference types="react" />
2
- export interface ITreeViewProps {
3
- children?: any;
4
- className?: string;
5
- }
6
- export declare const TreeView: (props: ITreeViewProps) => JSX.Element;
1
+ import React from "react";
2
+ export declare const TreeView: (props: React.ComponentProps<"ul">) => JSX.Element;
package/index.es.js CHANGED
@@ -2528,14 +2528,14 @@ var styles$1 = {"treeView":"TreeView-module_treeView__3kmGm"};
2528
2528
  styleInject(css_248z$1);
2529
2529
 
2530
2530
  const TreeView = (props) => {
2531
- const { children, className } = props;
2531
+ const { children, className } = props, rest = __rest(props, ["children", "className"]);
2532
2532
  const getCssClasses = () => {
2533
2533
  const cssClasses = [];
2534
2534
  cssClasses.push(styles$1.treeView);
2535
2535
  className && cssClasses.push(className);
2536
2536
  return cssClasses.filter(css => css).join(' ');
2537
2537
  };
2538
- return (React.createElement("ul", { className: getCssClasses() }, children));
2538
+ return (React.createElement("ul", Object.assign({ className: getCssClasses() }, rest), children));
2539
2539
  };
2540
2540
 
2541
2541
  var css_248z = ".TreeItem-module_treeItem__2FtLe {\n display: flex;\n flex-direction: column;\n min-height: 48px;\n justify-content: center; }\n";