@descope/flow-components 2.2.59 → 2.3.0

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.
@@ -5,7 +5,7 @@
5
5
  "name": "flowComponents",
6
6
  "type": "app",
7
7
  "buildInfo": {
8
- "buildVersion": "2.2.59",
8
+ "buildVersion": "2.3.0",
9
9
  "buildName": "@descope/flow-components"
10
10
  },
11
11
  "remoteEntry": {
@@ -5,7 +5,7 @@
5
5
  "name": "flowComponents",
6
6
  "type": "app",
7
7
  "buildInfo": {
8
- "buildVersion": "2.2.59",
8
+ "buildVersion": "2.3.0",
9
9
  "buildName": "@descope/flow-components"
10
10
  },
11
11
  "remoteEntry": {
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
 
@@ -18,6 +18,7 @@ declare const Button: React.ForwardRefExoticComponent<Omit<React.ClassAttributes
18
18
  size?: string;
19
19
  loading?: boolean;
20
20
  startIcon?: string;
21
+ startIconDark?: string;
21
22
  startIconColorText?: boolean;
22
23
  'full-width'?: boolean;
23
24
  'data-name'?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@descope/flow-components",
3
- "version": "2.2.59",
3
+ "version": "2.3.0",
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.2.59"
99
+ "@descope/web-components-ui": "2.3.0"
100
100
  },
101
101
  "peerDependencies": {
102
102
  "react": ">= 18"