@descope/flow-components 2.0.116 → 2.0.117
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/dist/index.cjs.js +2 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.js +2 -1
- package/package.json +2 -2
package/dist/index.cjs.js
CHANGED
|
@@ -103,7 +103,8 @@ var icons = /*#__PURE__*/Object.freeze({
|
|
|
103
103
|
|
|
104
104
|
const Button = React__default.default.forwardRef(({ children, startIcon, startIconColorText, color, ...props }, ref) => {
|
|
105
105
|
const icon = React.useMemo(() => icons[startIcon]?.({ noColor: startIconColorText }), [startIcon, startIconColorText]);
|
|
106
|
-
|
|
106
|
+
const isSquare = React.useMemo(() => !!(icon && !children), [icon, children]);
|
|
107
|
+
return (React__default.default.createElement("descope-button", { ...props, mode: color, ref: ref, square: isSquare },
|
|
107
108
|
icon,
|
|
108
109
|
children));
|
|
109
110
|
});
|
package/dist/index.d.ts
CHANGED
package/dist/index.esm.js
CHANGED
|
@@ -97,7 +97,8 @@ var icons = /*#__PURE__*/Object.freeze({
|
|
|
97
97
|
|
|
98
98
|
const Button = React.forwardRef(({ children, startIcon, startIconColorText, color, ...props }, ref) => {
|
|
99
99
|
const icon = useMemo(() => icons[startIcon]?.({ noColor: startIconColorText }), [startIcon, startIconColorText]);
|
|
100
|
-
|
|
100
|
+
const isSquare = useMemo(() => !!(icon && !children), [icon, children]);
|
|
101
|
+
return (React.createElement("descope-button", { ...props, mode: color, ref: ref, square: isSquare },
|
|
101
102
|
icon,
|
|
102
103
|
children));
|
|
103
104
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@descope/flow-components",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.117",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
"typescript": "^4.5.3"
|
|
100
100
|
},
|
|
101
101
|
"dependencies": {
|
|
102
|
-
"@descope/web-components-ui": "1.0.
|
|
102
|
+
"@descope/web-components-ui": "1.0.177",
|
|
103
103
|
"rollup-plugin-dts": "^5.3.0"
|
|
104
104
|
},
|
|
105
105
|
"peerDependencies": {
|