@descope/flow-components 2.0.269 → 2.0.270

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 CHANGED
@@ -125,12 +125,12 @@ var icons = /*#__PURE__*/Object.freeze({
125
125
  whatsapp: whatsapp
126
126
  });
127
127
 
128
- const Icon = ({ icon, noColor, ...props }) => {
128
+ const Icon = ({ icon, noColor, slot, ...props }) => {
129
129
  if (!icon)
130
130
  return undefined;
131
131
  if (isImageSource(icon))
132
- return (React__default.default.createElement("img", { ...props, src: icon, alt: icon, style: { height: '1.5em', width: '1.5em' } }));
133
- return React__default.default.createElement("descope-icon", null, icons[icon]?.({ noColor, ...props }));
132
+ return (React__default.default.createElement("img", { ...props, src: icon, alt: icon, slot: slot, style: { height: '1.5em', width: '1.5em' } }));
133
+ return (React__default.default.createElement("descope-icon", { slot: slot }, icons[icon]?.({ noColor, ...props })));
134
134
  };
135
135
 
136
136
  const Button = React__default.default.forwardRef(({ children, startIcon, startIconColorText, color, ...props }, ref) => {
package/dist/index.esm.js CHANGED
@@ -119,12 +119,12 @@ var icons = /*#__PURE__*/Object.freeze({
119
119
  whatsapp: whatsapp
120
120
  });
121
121
 
122
- const Icon = ({ icon, noColor, ...props }) => {
122
+ const Icon = ({ icon, noColor, slot, ...props }) => {
123
123
  if (!icon)
124
124
  return undefined;
125
125
  if (isImageSource(icon))
126
- return (React.createElement("img", { ...props, src: icon, alt: icon, style: { height: '1.5em', width: '1.5em' } }));
127
- return React.createElement("descope-icon", null, icons[icon]?.({ noColor, ...props }));
126
+ return (React.createElement("img", { ...props, src: icon, alt: icon, slot: slot, style: { height: '1.5em', width: '1.5em' } }));
127
+ return (React.createElement("descope-icon", { slot: slot }, icons[icon]?.({ noColor, ...props })));
128
128
  };
129
129
 
130
130
  const Button = React.forwardRef(({ children, startIcon, startIconColorText, color, ...props }, ref) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@descope/flow-components",
3
- "version": "2.0.269",
3
+ "version": "2.0.270",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
@@ -100,7 +100,7 @@
100
100
  "typescript": "^5.0.0"
101
101
  },
102
102
  "dependencies": {
103
- "@descope/web-components-ui": "1.0.310"
103
+ "@descope/web-components-ui": "1.0.311"
104
104
  },
105
105
  "peerDependencies": {
106
106
  "react": ">=17"