@descope/flow-components 2.2.59 → 2.3.1
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/fm/222.js +1 -1
- package/dist/fm/222.js.map +1 -1
- package/dist/fm/467.js +1 -1
- package/dist/fm/467.js.map +1 -1
- package/dist/fm/626.js +1 -1
- package/dist/fm/626.js.map +1 -1
- package/dist/fm/985.js +1 -1
- package/dist/fm/985.js.map +1 -1
- package/dist/fm/@mf-types/compiled-types/Button/Button.d.ts +1 -0
- package/dist/fm/__federation_expose_componentClasses.js +1 -1
- package/dist/fm/__federation_expose_componentClasses.js.map +1 -1
- package/dist/fm/__federation_expose_components.js +1 -1
- package/dist/fm/__federation_expose_theme.js +1 -1
- package/dist/fm/__federation_expose_theme.js.map +1 -1
- package/dist/fm/flowComponents.js +1 -1
- package/dist/fm/flowComponents.js.map +1 -1
- package/dist/fm/main.js +1 -1
- package/dist/fm/main.js.map +1 -1
- package/dist/fm/mf-manifest.json +1 -1
- package/dist/fm/mf-stats.json +1 -1
- package/dist/index.cjs.js +2 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.js +2 -2
- package/dist/types/Button/Button.d.ts +1 -0
- package/package.json +2 -2
package/dist/fm/mf-manifest.json
CHANGED
package/dist/fm/mf-stats.json
CHANGED
package/dist/index.cjs.js
CHANGED
|
@@ -103936,13 +103936,13 @@ const Tooltip = React__default.default.forwardRef(({ text, hideDelay = 0, hoverD
|
|
|
103936
103936
|
|
|
103937
103937
|
const Button = React__default.default.forwardRef(({
|
|
103938
103938
|
// Button props
|
|
103939
|
-
children, startIcon, startIconColorText, color = 'primary', size = 'md', variant = 'contained', 'data-name': dataName,
|
|
103939
|
+
children, startIcon, startIconDark, startIconColorText, color = 'primary', size = 'md', variant = 'contained', 'data-name': dataName,
|
|
103940
103940
|
// Tooltip props
|
|
103941
103941
|
hasTooltip, tooltipText, tooltipPosition, tooltipHoverDelay, tooltipHideDelay, tooltipOpened, tooltipReadOnly, ...props }, ref) => {
|
|
103942
103942
|
const isSquare = React.useMemo(() => !!(startIcon && !children), [startIcon, children]);
|
|
103943
103943
|
return (React__default.default.createElement(Tooltip, { text: hasTooltip ? tooltipText : undefined, position: tooltipPosition, hoverDelay: tooltipHoverDelay, hideDelay: tooltipHideDelay, opened: tooltipOpened, readonly: tooltipReadOnly },
|
|
103944
103944
|
React__default.default.createElement("descope-button", { ...props, size: size, variant: variant, mode: color, ref: ref, square: isSquare, "data-name": dataName },
|
|
103945
|
-
startIcon != null && (React__default.default.createElement(Icon, { "data-name": `${dataName}-icon`, icon: startIcon, noColor: startIconColorText })),
|
|
103945
|
+
startIcon != null && (React__default.default.createElement(Icon, { "data-name": `${dataName}-icon`, icon: startIcon, "src-dark": startIconDark, noColor: startIconColorText })),
|
|
103946
103946
|
children)));
|
|
103947
103947
|
});
|
|
103948
103948
|
|
package/dist/index.d.ts
CHANGED
|
@@ -181,6 +181,7 @@ declare const Button: React.ForwardRefExoticComponent<Omit<React.ClassAttributes
|
|
|
181
181
|
size?: string;
|
|
182
182
|
loading?: boolean;
|
|
183
183
|
startIcon?: string;
|
|
184
|
+
startIconDark?: string;
|
|
184
185
|
startIconColorText?: boolean;
|
|
185
186
|
'full-width'?: boolean;
|
|
186
187
|
'data-name'?: string;
|
package/dist/index.esm.js
CHANGED
|
@@ -157,13 +157,13 @@ const Tooltip = React.forwardRef(({ text, hideDelay = 0, hoverDelay = 0, childre
|
|
|
157
157
|
|
|
158
158
|
const Button = React.forwardRef(({
|
|
159
159
|
// Button props
|
|
160
|
-
children, startIcon, startIconColorText, color = 'primary', size = 'md', variant = 'contained', 'data-name': dataName,
|
|
160
|
+
children, startIcon, startIconDark, startIconColorText, color = 'primary', size = 'md', variant = 'contained', 'data-name': dataName,
|
|
161
161
|
// Tooltip props
|
|
162
162
|
hasTooltip, tooltipText, tooltipPosition, tooltipHoverDelay, tooltipHideDelay, tooltipOpened, tooltipReadOnly, ...props }, ref) => {
|
|
163
163
|
const isSquare = useMemo(() => !!(startIcon && !children), [startIcon, children]);
|
|
164
164
|
return (React.createElement(Tooltip, { text: hasTooltip ? tooltipText : undefined, position: tooltipPosition, hoverDelay: tooltipHoverDelay, hideDelay: tooltipHideDelay, opened: tooltipOpened, readonly: tooltipReadOnly },
|
|
165
165
|
React.createElement("descope-button", { ...props, size: size, variant: variant, mode: color, ref: ref, square: isSquare, "data-name": dataName },
|
|
166
|
-
startIcon != null && (React.createElement(Icon, { "data-name": `${dataName}-icon`, icon: startIcon, noColor: startIconColorText })),
|
|
166
|
+
startIcon != null && (React.createElement(Icon, { "data-name": `${dataName}-icon`, icon: startIcon, "src-dark": startIconDark, noColor: startIconColorText })),
|
|
167
167
|
children)));
|
|
168
168
|
});
|
|
169
169
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@descope/flow-components",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
"webpack-dev-server": "5.2.3"
|
|
97
97
|
},
|
|
98
98
|
"dependencies": {
|
|
99
|
-
"@descope/web-components-ui": "2.
|
|
99
|
+
"@descope/web-components-ui": "2.3.1"
|
|
100
100
|
},
|
|
101
101
|
"peerDependencies": {
|
|
102
102
|
"react": ">= 18"
|