@smart-react-components/ui 2.0.0-alpha-110 → 2.0.0-alpha-111

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.
@@ -11,7 +11,7 @@ const ButtonList = props => {
11
11
  var _a;
12
12
  return react_1.default.cloneElement(props.template, Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, (0, element_props_1.default)(props, [intrinsic_styled_core_props_1.default])), props.elementProps), { buttonSize: (_a = props.size) !== null && _a !== void 0 ? _a : 'medium', buttonSizeSm: props.sizeSm, buttonSizeMd: props.sizeMd, buttonSizeLg: props.sizeLg, buttonSizeXl: props.sizeXl, hasSpace: props.hasSpace, isBlock: props.isBlock, length: props.children.length }), props.template.props), { children: props.children.map((item, idx) => {
13
13
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
14
- return react_1.default.cloneElement(item, {
14
+ return item && react_1.default.cloneElement(item, {
15
15
  key: (_a = item.key) !== null && _a !== void 0 ? _a : idx,
16
16
  hasHover: (_b = props.hasHover) !== null && _b !== void 0 ? _b : item.props.hasHover,
17
17
  hasSpace: (_c = props.hasSpace) !== null && _c !== void 0 ? _c : item.props.hasSpace,
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: import("styled-components").StyledComponent<"svg", any, {
2
3
  children: JSX.Element;
3
4
  }, "children">;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ContentElement } from '@smart-react-components/core/types';
2
3
  interface Props {
3
4
  children: JSX.Element | JSX.Element[];
package/icons/Add.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { StyledProps } from '@smart-react-components/core/styled-props';
2
3
  declare const _default: import("styled-components").StyledComponent<"svg", any, StyledProps & {
3
4
  children: JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { StyledProps } from '@smart-react-components/core/styled-props';
2
3
  declare const _default: import("styled-components").StyledComponent<"svg", any, StyledProps & {
3
4
  children: JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { StyledProps } from '@smart-react-components/core/styled-props';
2
3
  declare const _default: import("styled-components").StyledComponent<"svg", any, StyledProps & {
3
4
  children: JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { StyledProps } from '@smart-react-components/core/styled-props';
2
3
  declare const _default: import("styled-components").StyledComponent<"svg", any, StyledProps & {
3
4
  children: JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { StyledProps } from '@smart-react-components/core/styled-props';
2
3
  declare const _default: import("styled-components").StyledComponent<"svg", any, StyledProps & {
3
4
  children: JSX.Element;
package/icons/Cancel.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { StyledProps } from '@smart-react-components/core/styled-props';
2
3
  declare const _default: import("styled-components").StyledComponent<"svg", any, StyledProps & {
3
4
  children: JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { StyledProps } from '@smart-react-components/core/styled-props';
2
3
  declare const _default: import("styled-components").StyledComponent<"svg", any, StyledProps & {
3
4
  children: JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { StyledProps } from '@smart-react-components/core/styled-props';
2
3
  declare const _default: import("styled-components").StyledComponent<"svg", any, StyledProps & {
3
4
  children: JSX.Element;
package/icons/Close.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { StyledProps } from '@smart-react-components/core/styled-props';
2
3
  declare const _default: import("styled-components").StyledComponent<"svg", any, StyledProps & {
3
4
  children: JSX.Element;
package/icons/Date.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { StyledProps } from '@smart-react-components/core/styled-props';
2
3
  declare const _default: import("styled-components").StyledComponent<"svg", any, StyledProps & {
3
4
  children: JSX.Element;
package/icons/Eraser.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { StyledProps } from '@smart-react-components/core/styled-props';
2
3
  declare const _default: import("styled-components").StyledComponent<"svg", any, StyledProps & {
3
4
  children: JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { StyledProps } from '@smart-react-components/core/styled-props';
2
3
  declare const _default: import("styled-components").StyledComponent<"svg", any, StyledProps & {
3
4
  children: JSX.Element;
package/icons/Save.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { StyledProps } from '@smart-react-components/core/styled-props';
2
3
  declare const _default: import("styled-components").StyledComponent<"svg", any, StyledProps & {
3
4
  children: JSX.Element;
package/icons/Time.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { StyledProps } from '@smart-react-components/core/styled-props';
2
3
  declare const _default: import("styled-components").StyledComponent<"svg", any, StyledProps & {
3
4
  children: JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smart-react-components/ui",
3
- "version": "2.0.0-alpha-110",
3
+ "version": "2.0.0-alpha-111",
4
4
  "license": "MIT",
5
5
  "main": "index.js",
6
6
  "description": "SRC UI includes React and Styled components.",
package/types/button.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IntrinsicStyledCoreProps } from '@smart-react-components/core/element-props/intrinsic-styled-core-props';
2
3
  import { ContentElement, JSXElementProps, PaletteProp, Partial, ResponsiveProp, ShapeProp, SizeProp } from '@smart-react-components/core/types';
3
4
  export interface ButtonGenericProps<T extends ContentElement> extends IntrinsicStyledCoreProps, Partial<ResponsiveProp<'size', SizeProp>> {
package/types/form.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IntrinsicStyledCoreProps } from '@smart-react-components/core/element-props/intrinsic-styled-core-props';
2
3
  import { ContentElement, JSXElementProps, PaletteProp, Partial, ResponsiveProp, SetState, ShapeProp, SizeProp } from '@smart-react-components/core/types';
3
4
  import { FormValue } from '../types';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface EffectItem {
2
3
  element: JSX.Element;
3
4
  endTime: number;