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

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,
@@ -105,7 +105,7 @@ exports.default = (0, styled_components_1.default)(Div_1.default).attrs(({ hasIc
105
105
 
106
106
  ${BadgeIconElement_1.default} {
107
107
  background: ${theme.$.palette[palette].dynamicest};
108
- border-color: ${theme.$.palette[palette].dynamicest};
108
+ border-color: ${theme.$.palette[palette].dynamicest};
109
109
  }
110
110
  `
111
111
  : `
@@ -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-112",
4
4
  "license": "MIT",
5
5
  "main": "index.js",
6
6
  "description": "SRC UI includes React and Styled components.",
@@ -64,9 +64,9 @@
64
64
  "test": "jest"
65
65
  },
66
66
  "devDependencies": {
67
- "@smart-react-components/core": "2.0.0-alpha-40",
68
- "@smart-react-components/router": "2.0.0-alpha-37",
69
- "@smart-react-components/transition": "2.0.0-alpha-34",
67
+ "@smart-react-components/core": "2.0.0-alpha-41",
68
+ "@smart-react-components/router": "2.0.0-alpha-38",
69
+ "@smart-react-components/transition": "2.0.0-alpha-35",
70
70
  "@testing-library/react": "13.4.0",
71
71
  "@types/jest": "29.0.1",
72
72
  "@types/react": "18.0.19",
@@ -83,9 +83,9 @@
83
83
  "typescript": "4.8.3"
84
84
  },
85
85
  "peerDependencies": {
86
- "@smart-react-components/core": "^2.0.0-alpha-40",
87
- "@smart-react-components/router": "^2.0.0-alpha-37",
88
- "@smart-react-components/transition": "^2.0.0-alpha-34",
86
+ "@smart-react-components/core": "^2.0.0-alpha-41",
87
+ "@smart-react-components/router": "^2.0.0-alpha-38",
88
+ "@smart-react-components/transition": "^2.0.0-alpha-35",
89
89
  "react": "^18.2.0",
90
90
  "react-dom": "^18.2.0",
91
91
  "styled-components": "^5.3.5"
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;