@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.
- package/Button/ButtonList.js +1 -1
- package/components/Badge/BadgeElement.js +1 -1
- package/components/Popover/PopoverArrow.d.ts +1 -0
- package/hooks/useSelectBoxItemList.d.ts +1 -0
- package/icons/Add.d.ts +1 -0
- package/icons/ArrowDown.d.ts +1 -0
- package/icons/ArrowLeft.d.ts +1 -0
- package/icons/ArrowMultipleDown.d.ts +1 -0
- package/icons/ArrowRight.d.ts +1 -0
- package/icons/Cancel.d.ts +1 -0
- package/icons/CaretDown.d.ts +1 -0
- package/icons/CaretUp.d.ts +1 -0
- package/icons/Close.d.ts +1 -0
- package/icons/Date.d.ts +1 -0
- package/icons/Eraser.d.ts +1 -0
- package/icons/Palette.d.ts +1 -0
- package/icons/Save.d.ts +1 -0
- package/icons/Time.d.ts +1 -0
- package/package.json +7 -7
- package/types/button.d.ts +1 -0
- package/types/form.d.ts +1 -0
- package/types/wave-effect.d.ts +1 -0
package/Button/ButtonList.js
CHANGED
|
@@ -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
|
: `
|
package/icons/Add.d.ts
CHANGED
package/icons/ArrowDown.d.ts
CHANGED
package/icons/ArrowLeft.d.ts
CHANGED
package/icons/ArrowRight.d.ts
CHANGED
package/icons/Cancel.d.ts
CHANGED
package/icons/CaretDown.d.ts
CHANGED
package/icons/CaretUp.d.ts
CHANGED
package/icons/Close.d.ts
CHANGED
package/icons/Date.d.ts
CHANGED
package/icons/Eraser.d.ts
CHANGED
package/icons/Palette.d.ts
CHANGED
package/icons/Save.d.ts
CHANGED
package/icons/Time.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smart-react-components/ui",
|
|
3
|
-
"version": "2.0.0-alpha-
|
|
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-
|
|
68
|
-
"@smart-react-components/router": "2.0.0-alpha-
|
|
69
|
-
"@smart-react-components/transition": "2.0.0-alpha-
|
|
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-
|
|
87
|
-
"@smart-react-components/router": "^2.0.0-alpha-
|
|
88
|
-
"@smart-react-components/transition": "^2.0.0-alpha-
|
|
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';
|
package/types/wave-effect.d.ts
CHANGED