@descope/flow-components 2.0.435 → 2.0.437
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/dts/AddressField/AddressField.d.ts +2 -0
- package/dist/dts/Button/Button.d.ts +1 -0
- package/dist/index.cjs.js +18 -11
- package/dist/index.d.ts +3 -0
- package/dist/index.esm.js +4 -6
- package/dist/types/src/AddressField/AddressField.d.ts +2 -0
- package/dist/types/src/Button/Button.d.ts +1 -0
- package/package.json +2 -2
|
@@ -19,5 +19,6 @@ declare const Button: React.ForwardRefExoticComponent<Omit<React.ClassAttributes
|
|
|
19
19
|
startIcon?: string;
|
|
20
20
|
startIconColorText?: boolean;
|
|
21
21
|
'full-width'?: boolean;
|
|
22
|
+
'data-name'?: string;
|
|
22
23
|
}, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
23
24
|
export default Button;
|
package/dist/index.cjs.js
CHANGED
|
@@ -76773,6 +76773,15 @@ function requireIndex_cjs () {
|
|
|
76773
76773
|
`;
|
|
76774
76774
|
}
|
|
76775
76775
|
|
|
76776
|
+
init() {
|
|
76777
|
+
super.init?.();
|
|
76778
|
+
this.toggleVisibility(this.src);
|
|
76779
|
+
}
|
|
76780
|
+
|
|
76781
|
+
toggleVisibility(isVisible) {
|
|
76782
|
+
this.style.display = isVisible ? '' : 'none';
|
|
76783
|
+
}
|
|
76784
|
+
|
|
76776
76785
|
get src() {
|
|
76777
76786
|
return this.getAttribute('src');
|
|
76778
76787
|
}
|
|
@@ -76798,6 +76807,8 @@ function requireIndex_cjs () {
|
|
|
76798
76807
|
if (oldValue === newValue) return;
|
|
76799
76808
|
|
|
76800
76809
|
if (attrName === 'src') {
|
|
76810
|
+
this.toggleVisibility(newValue);
|
|
76811
|
+
|
|
76801
76812
|
createIcon(this.src).then((res) => {
|
|
76802
76813
|
this.innerHTML = '';
|
|
76803
76814
|
if (res) {
|
|
@@ -89946,11 +89957,9 @@ descope-boolean-field-internal {
|
|
|
89946
89957
|
<div>
|
|
89947
89958
|
<nav class="nav top-nav">
|
|
89948
89959
|
<div class="nav-prev">
|
|
89949
|
-
<descope-icon></descope-icon>
|
|
89950
89960
|
</div>
|
|
89951
89961
|
<div class="selectors"></div>
|
|
89952
89962
|
<div class="nav-next">
|
|
89953
|
-
<descope-icon></descope-icon>
|
|
89954
89963
|
</div>
|
|
89955
89964
|
</nav>
|
|
89956
89965
|
<div class="calendar"></div>
|
|
@@ -90078,8 +90087,8 @@ descope-boolean-field-internal {
|
|
|
90078
90087
|
})
|
|
90079
90088
|
);
|
|
90080
90089
|
|
|
90081
|
-
this.shadowRoot.querySelector('.nav-next
|
|
90082
|
-
this.shadowRoot.querySelector('.nav-prev
|
|
90090
|
+
this.shadowRoot.querySelector('.nav-next').innerHTML = arrowRightIcon;
|
|
90091
|
+
this.shadowRoot.querySelector('.nav-prev').innerHTML = arrowLeftIcon;
|
|
90083
90092
|
}
|
|
90084
90093
|
|
|
90085
90094
|
onSubmit() {
|
|
@@ -90770,7 +90779,7 @@ descope-boolean-field-internal {
|
|
|
90770
90779
|
<div>
|
|
90771
90780
|
<descope-text-field>
|
|
90772
90781
|
<span slot="suffix" class="toggle-calendar">
|
|
90773
|
-
|
|
90782
|
+
${calendarIcon}
|
|
90774
90783
|
</span>
|
|
90775
90784
|
</descope-text-field>
|
|
90776
90785
|
<vaadin-popover></vaadin-popover>
|
|
@@ -94567,18 +94576,16 @@ var icons = /*#__PURE__*/Object.freeze({
|
|
|
94567
94576
|
});
|
|
94568
94577
|
|
|
94569
94578
|
const Icon = ({ icon, noColor, ...props }) => {
|
|
94570
|
-
if (!icon)
|
|
94571
|
-
return undefined;
|
|
94572
94579
|
if (icons[icon]) {
|
|
94573
94580
|
return (React__default.default.createElement("descope-icon", { src: icons[icon], ...(noColor && { 'st-fill': 'currentColor' }), ...props }));
|
|
94574
94581
|
}
|
|
94575
94582
|
return React__default.default.createElement("descope-icon", { "fill-color": noColor, src: icon });
|
|
94576
94583
|
};
|
|
94577
94584
|
|
|
94578
|
-
const Button = React__default.default.forwardRef(({ children, startIcon, startIconColorText, color = 'primary', size = 'md', variant = 'contained', ...props }, ref) => {
|
|
94585
|
+
const Button = React__default.default.forwardRef(({ children, startIcon, startIconColorText, color = 'primary', size = 'md', variant = 'contained', 'data-name': dataName, ...props }, ref) => {
|
|
94579
94586
|
const isSquare = React.useMemo(() => !!(startIcon && !children), [startIcon, children]);
|
|
94580
|
-
return (React__default.default.createElement("descope-button", { ...props, size: size, variant: variant, mode: color, ref: ref, square: isSquare },
|
|
94581
|
-
startIcon && React__default.default.createElement(Icon, { icon: startIcon, noColor: startIconColorText }),
|
|
94587
|
+
return (React__default.default.createElement("descope-button", { ...props, size: size, variant: variant, mode: color, ref: ref, square: isSquare, "data-name": dataName },
|
|
94588
|
+
startIcon != null && (React__default.default.createElement(Icon, { "data-name": `${dataName}-icon`, icon: startIcon, noColor: startIconColorText })),
|
|
94582
94589
|
children));
|
|
94583
94590
|
});
|
|
94584
94591
|
|
|
@@ -94923,7 +94930,7 @@ const HybridField = React__default.default.forwardRef(({ size = 'md', ...props }
|
|
|
94923
94930
|
|
|
94924
94931
|
const Alert = React__default.default.forwardRef(({ children, ...props }, ref) => (React__default.default.createElement("descope-alert", { ...props, ref: ref }, children)));
|
|
94925
94932
|
|
|
94926
|
-
const AddressField = React__default.default.forwardRef(({ size = 'md', ...props }, ref) => (React__default.default.createElement("descope-address-field", { size: size, ...props, ref: ref })));
|
|
94933
|
+
const AddressField = React__default.default.forwardRef(({ size = 'md', connector, ...props }, ref) => (React__default.default.createElement("descope-address-field", { size: size, ...props, ref: ref })));
|
|
94927
94934
|
|
|
94928
94935
|
const globalsThemeToStyle = index_cjsExports.globalsThemeToStyle;
|
|
94929
94936
|
const createComponentsTheme = index_cjsExports.createComponentsTheme;
|
package/dist/index.d.ts
CHANGED
|
@@ -74,6 +74,7 @@ declare const Button: React.ForwardRefExoticComponent<Omit<React.ClassAttributes
|
|
|
74
74
|
startIcon?: string;
|
|
75
75
|
startIconColorText?: boolean;
|
|
76
76
|
'full-width'?: boolean;
|
|
77
|
+
'data-name'?: string;
|
|
77
78
|
}, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
78
79
|
|
|
79
80
|
type Props$E = {
|
|
@@ -921,6 +922,8 @@ declare global {
|
|
|
921
922
|
declare const Alert: React.ForwardRefExoticComponent<Props$1 & React.RefAttributes<HTMLElement>>;
|
|
922
923
|
|
|
923
924
|
type Props = {
|
|
925
|
+
connector?: string;
|
|
926
|
+
'connector-template'?: string;
|
|
924
927
|
'min-search-length'?: number;
|
|
925
928
|
'allow-custom-value'?: boolean;
|
|
926
929
|
};
|
package/dist/index.esm.js
CHANGED
|
@@ -78,18 +78,16 @@ var icons = /*#__PURE__*/Object.freeze({
|
|
|
78
78
|
});
|
|
79
79
|
|
|
80
80
|
const Icon = ({ icon, noColor, ...props }) => {
|
|
81
|
-
if (!icon)
|
|
82
|
-
return undefined;
|
|
83
81
|
if (icons[icon]) {
|
|
84
82
|
return (React.createElement("descope-icon", { src: icons[icon], ...(noColor && { 'st-fill': 'currentColor' }), ...props }));
|
|
85
83
|
}
|
|
86
84
|
return React.createElement("descope-icon", { "fill-color": noColor, src: icon });
|
|
87
85
|
};
|
|
88
86
|
|
|
89
|
-
const Button = React.forwardRef(({ children, startIcon, startIconColorText, color = 'primary', size = 'md', variant = 'contained', ...props }, ref) => {
|
|
87
|
+
const Button = React.forwardRef(({ children, startIcon, startIconColorText, color = 'primary', size = 'md', variant = 'contained', 'data-name': dataName, ...props }, ref) => {
|
|
90
88
|
const isSquare = useMemo(() => !!(startIcon && !children), [startIcon, children]);
|
|
91
|
-
return (React.createElement("descope-button", { ...props, size: size, variant: variant, mode: color, ref: ref, square: isSquare },
|
|
92
|
-
startIcon && React.createElement(Icon, { icon: startIcon, noColor: startIconColorText }),
|
|
89
|
+
return (React.createElement("descope-button", { ...props, size: size, variant: variant, mode: color, ref: ref, square: isSquare, "data-name": dataName },
|
|
90
|
+
startIcon != null && (React.createElement(Icon, { "data-name": `${dataName}-icon`, icon: startIcon, noColor: startIconColorText })),
|
|
93
91
|
children));
|
|
94
92
|
});
|
|
95
93
|
|
|
@@ -434,7 +432,7 @@ const HybridField = React.forwardRef(({ size = 'md', ...props }, ref) => (React.
|
|
|
434
432
|
|
|
435
433
|
const Alert = React.forwardRef(({ children, ...props }, ref) => (React.createElement("descope-alert", { ...props, ref: ref }, children)));
|
|
436
434
|
|
|
437
|
-
const AddressField = React.forwardRef(({ size = 'md', ...props }, ref) => (React.createElement("descope-address-field", { size: size, ...props, ref: ref })));
|
|
435
|
+
const AddressField = React.forwardRef(({ size = 'md', connector, ...props }, ref) => (React.createElement("descope-address-field", { size: size, ...props, ref: ref })));
|
|
438
436
|
|
|
439
437
|
const globalsThemeToStyle = globalsThemeToStyle$1;
|
|
440
438
|
const createComponentsTheme = createComponentsTheme$1;
|
|
@@ -19,5 +19,6 @@ declare const Button: React.ForwardRefExoticComponent<Omit<React.ClassAttributes
|
|
|
19
19
|
startIcon?: string;
|
|
20
20
|
startIconColorText?: boolean;
|
|
21
21
|
'full-width'?: boolean;
|
|
22
|
+
'data-name'?: string;
|
|
22
23
|
}, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
23
24
|
export default Button;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@descope/flow-components",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.437",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
"typescript": "^5.7.2"
|
|
105
105
|
},
|
|
106
106
|
"dependencies": {
|
|
107
|
-
"@descope/web-components-ui": "1.
|
|
107
|
+
"@descope/web-components-ui": "1.27.0"
|
|
108
108
|
},
|
|
109
109
|
"peerDependencies": {
|
|
110
110
|
"react": ">= 18"
|