@descope/flow-components 3.23.3 → 3.24.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.
- 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/734.js +1 -1
- package/dist/fm/734.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/ButtonMultiSelectionGroup/ButtonMultiSelectionGroup.d.ts +3 -1
- package/dist/fm/@mf-types/compiled-types/ButtonSelectionGroup/ButtonSelectionGroup.d.ts +3 -1
- package/dist/fm/@mf-types/compiled-types/RadioGroup/RadioGroup.d.ts +3 -3
- package/dist/fm/@mf-types/compiled-types/SingleSelect/SingleSelect.d.ts +2 -2
- package/dist/fm/@mf-types/compiled-types/types.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 +19 -0
- package/dist/index.d.ts +8 -3
- package/dist/types/ButtonMultiSelectionGroup/ButtonMultiSelectionGroup.d.ts +3 -1
- package/dist/types/ButtonSelectionGroup/ButtonSelectionGroup.d.ts +3 -1
- package/dist/types/RadioGroup/RadioGroup.d.ts +3 -3
- package/dist/types/SingleSelect/SingleSelect.d.ts +2 -2
- package/dist/types/types.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
|
@@ -102967,6 +102967,7 @@ descope-enriched-text {
|
|
|
102967
102967
|
selector: () => ButtonClass.componentName,
|
|
102968
102968
|
property: ButtonClass.cssVarList.hostDirection,
|
|
102969
102969
|
},
|
|
102970
|
+
hostWidth: { selector: () => ButtonClass.componentName, property: 'width' },
|
|
102970
102971
|
backgroundColor: {
|
|
102971
102972
|
selector: () => ButtonClass.componentName,
|
|
102972
102973
|
property: ButtonClass.cssVarList.backgroundColor,
|
|
@@ -103007,6 +103008,7 @@ descope-enriched-text {
|
|
|
103007
103008
|
|
|
103008
103009
|
const buttonSelectionGroupItem = {
|
|
103009
103010
|
[vars$n.hostDirection]: 'inherit',
|
|
103011
|
+
[vars$n.hostWidth]: 'auto',
|
|
103010
103012
|
[vars$n.backgroundColor]: globalRefs$f.colors.surface.main,
|
|
103011
103013
|
[vars$n.labelTextColor]: globalRefs$f.colors.surface.contrast,
|
|
103012
103014
|
[vars$n.borderColor]: globalRefs$f.colors.surface.light,
|
|
@@ -103304,6 +103306,12 @@ descope-enriched-text {
|
|
|
103304
103306
|
errorMessageIconPosition: { ...errorMessage$2, property: 'background-position' },
|
|
103305
103307
|
errorMessageFontSize: { ...errorMessage$2, property: 'font-size' },
|
|
103306
103308
|
itemsSpacing: { ...internalWrapper, property: 'gap' },
|
|
103309
|
+
itemsDirection: { ...internalWrapper, property: 'flex-direction' },
|
|
103310
|
+
itemsAlignment: { ...internalWrapper, property: 'align-items' },
|
|
103311
|
+
itemsWidth: {
|
|
103312
|
+
selector: () => `::slotted(${ButtonSelectionGroupItemClass.componentName})`,
|
|
103313
|
+
property: ButtonSelectionGroupItemClass.cssVarList.hostWidth,
|
|
103314
|
+
},
|
|
103307
103315
|
};
|
|
103308
103316
|
|
|
103309
103317
|
const buttonSelectionGroupStyles = `
|
|
@@ -103445,6 +103453,17 @@ descope-enriched-text {
|
|
|
103445
103453
|
[vars.errorMessageIconRepeat]: refs.errorMessageIconRepeat,
|
|
103446
103454
|
[vars.errorMessageIconPosition]: refs.errorMessageIconPosition,
|
|
103447
103455
|
[vars.errorMessageFontSize]: refs.errorMessageFontSize,
|
|
103456
|
+
|
|
103457
|
+
layout: {
|
|
103458
|
+
vertical: {
|
|
103459
|
+
[vars.itemsDirection]: 'column',
|
|
103460
|
+
[vars.itemsAlignment]: 'flex-start',
|
|
103461
|
+
_fullWidth: {
|
|
103462
|
+
[vars.itemsAlignment]: 'stretch',
|
|
103463
|
+
[vars.itemsWidth]: '100%',
|
|
103464
|
+
},
|
|
103465
|
+
},
|
|
103466
|
+
},
|
|
103448
103467
|
});
|
|
103449
103468
|
|
|
103450
103469
|
const vars$m = ButtonSelectionGroupClass.cssVarList;
|
package/dist/index.d.ts
CHANGED
|
@@ -85,6 +85,7 @@ declare const MultiSsoClass: ComponentClass;
|
|
|
85
85
|
type KebabCase<S extends string> = S extends `${infer First}${infer Rest}` ? Rest extends Uncapitalize<Rest> ? `${Uncapitalize<First>}${KebabCase<Rest>}` : `${Uncapitalize<First>}-${KebabCase<Rest>}` : S;
|
|
86
86
|
type ComponentSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
87
87
|
type TextAlign = 'left' | 'right' | 'center';
|
|
88
|
+
type LayoutDirection = 'horizontal' | 'vertical';
|
|
88
89
|
type FlexAlignment = 'start' | 'center' | 'end';
|
|
89
90
|
type HTMLInputAttrs = Omit<React.JSX.IntrinsicElements['input'], 'size'>;
|
|
90
91
|
type DescopeInputExtraProps = {
|
|
@@ -592,6 +593,7 @@ declare const RecaptchaV2: React.ForwardRefExoticComponent<Props$A & React.HTMLA
|
|
|
592
593
|
type Props$z = DescopeInputProps & {
|
|
593
594
|
'default-value'?: string;
|
|
594
595
|
'allow-deselect'?: boolean;
|
|
596
|
+
layout?: LayoutDirection;
|
|
595
597
|
};
|
|
596
598
|
declare global {
|
|
597
599
|
namespace React.JSX {
|
|
@@ -607,6 +609,7 @@ declare global {
|
|
|
607
609
|
declare const ButtonSelectionGroup: React.ForwardRefExoticComponent<Omit<HTMLInputAttrs & DescopeInputExtraProps & {
|
|
608
610
|
'default-value'?: string;
|
|
609
611
|
'allow-deselect'?: boolean;
|
|
612
|
+
layout?: LayoutDirection;
|
|
610
613
|
} & {
|
|
611
614
|
children?: React.JSX.Element[];
|
|
612
615
|
}, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -619,7 +622,7 @@ type SingleSelectType = {
|
|
|
619
622
|
variant?: 'buttonSelectionGroup' | 'combobox' | 'radioGroup';
|
|
620
623
|
data?: Item$5[];
|
|
621
624
|
allowClearValue?: boolean;
|
|
622
|
-
layout?:
|
|
625
|
+
layout?: LayoutDirection;
|
|
623
626
|
'label-type'?: LabelType;
|
|
624
627
|
};
|
|
625
628
|
type Props$y = Omit<React.ComponentProps<typeof ButtonSelectionGroup>, 'allow-deselect'> & SingleSelectType;
|
|
@@ -725,6 +728,7 @@ type Props$t = DescopeInputProps & {
|
|
|
725
728
|
size?: 'xs' | 'sm' | 'md' | 'lg';
|
|
726
729
|
'min-items-selection'?: number;
|
|
727
730
|
'max-items-selection'?: number;
|
|
731
|
+
layout?: LayoutDirection;
|
|
728
732
|
};
|
|
729
733
|
declare global {
|
|
730
734
|
namespace React.JSX {
|
|
@@ -743,6 +747,7 @@ declare const ButtonMultiSelectionGroup: React.ForwardRefExoticComponent<Omit<HT
|
|
|
743
747
|
size?: "xs" | "sm" | "md" | "lg";
|
|
744
748
|
'min-items-selection'?: number;
|
|
745
749
|
'max-items-selection'?: number;
|
|
750
|
+
layout?: LayoutDirection;
|
|
746
751
|
} & MultiSelectProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
747
752
|
|
|
748
753
|
type Item$4 = {
|
|
@@ -1581,7 +1586,7 @@ declare global {
|
|
|
1581
1586
|
declare const ActiveSessions: React.ForwardRefExoticComponent<Omit<Props$1, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
1582
1587
|
|
|
1583
1588
|
type Props = DescopeInputProps & {
|
|
1584
|
-
layout?:
|
|
1589
|
+
layout?: LayoutDirection;
|
|
1585
1590
|
};
|
|
1586
1591
|
declare global {
|
|
1587
1592
|
namespace React.JSX {
|
|
@@ -1597,7 +1602,7 @@ declare global {
|
|
|
1597
1602
|
}
|
|
1598
1603
|
}
|
|
1599
1604
|
declare const RadioGroup: React.ForwardRefExoticComponent<Omit<HTMLInputAttrs & DescopeInputExtraProps & {
|
|
1600
|
-
layout?:
|
|
1605
|
+
layout?: LayoutDirection;
|
|
1601
1606
|
} & MultiSelectProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
1602
1607
|
|
|
1603
1608
|
interface IComponentThemeManager {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { DescopeInputProps, MultiSelectProps } from '../types';
|
|
2
|
+
import { DescopeInputProps, LayoutDirection, MultiSelectProps } from '../types';
|
|
3
3
|
type Props = DescopeInputProps & {
|
|
4
4
|
size?: 'xs' | 'sm' | 'md' | 'lg';
|
|
5
5
|
'min-items-selection'?: number;
|
|
6
6
|
'max-items-selection'?: number;
|
|
7
|
+
layout?: LayoutDirection;
|
|
7
8
|
};
|
|
8
9
|
declare global {
|
|
9
10
|
namespace React.JSX {
|
|
@@ -22,5 +23,6 @@ declare const ButtonMultiSelectionGroup: React.ForwardRefExoticComponent<Omit<im
|
|
|
22
23
|
size?: "xs" | "sm" | "md" | "lg";
|
|
23
24
|
'min-items-selection'?: number;
|
|
24
25
|
'max-items-selection'?: number;
|
|
26
|
+
layout?: LayoutDirection;
|
|
25
27
|
} & MultiSelectProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
26
28
|
export default ButtonMultiSelectionGroup;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { DescopeInputProps } from '../types';
|
|
2
|
+
import { DescopeInputProps, LayoutDirection } from '../types';
|
|
3
3
|
type Props = DescopeInputProps & {
|
|
4
4
|
'default-value'?: string;
|
|
5
5
|
'allow-deselect'?: boolean;
|
|
6
|
+
layout?: LayoutDirection;
|
|
6
7
|
};
|
|
7
8
|
declare global {
|
|
8
9
|
namespace React.JSX {
|
|
@@ -18,6 +19,7 @@ declare global {
|
|
|
18
19
|
declare const ButtonSelectionGroup: React.ForwardRefExoticComponent<Omit<import("../types").HTMLInputAttrs & import("../types").DescopeInputExtraProps & {
|
|
19
20
|
'default-value'?: string;
|
|
20
21
|
'allow-deselect'?: boolean;
|
|
22
|
+
layout?: LayoutDirection;
|
|
21
23
|
} & {
|
|
22
24
|
children?: React.JSX.Element[];
|
|
23
25
|
}, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { DescopeInputProps, MultiSelectProps } from '../types';
|
|
2
|
+
import { DescopeInputProps, LayoutDirection, MultiSelectProps } from '../types';
|
|
3
3
|
type Props = DescopeInputProps & {
|
|
4
|
-
layout?:
|
|
4
|
+
layout?: LayoutDirection;
|
|
5
5
|
};
|
|
6
6
|
declare global {
|
|
7
7
|
namespace React.JSX {
|
|
@@ -17,6 +17,6 @@ declare global {
|
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
declare const RadioGroup: React.ForwardRefExoticComponent<Omit<import("../types").HTMLInputAttrs & import("../types").DescopeInputExtraProps & {
|
|
20
|
-
layout?:
|
|
20
|
+
layout?: LayoutDirection;
|
|
21
21
|
} & MultiSelectProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
22
22
|
export default RadioGroup;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ButtonSelectionGroup } from '../ButtonSelectionGroup';
|
|
3
|
-
import { LabelType } from '../types';
|
|
3
|
+
import { LabelType, LayoutDirection } from '../types';
|
|
4
4
|
type Item = {
|
|
5
5
|
label: string;
|
|
6
6
|
value: string;
|
|
@@ -9,7 +9,7 @@ type SingleSelectType = {
|
|
|
9
9
|
variant?: 'buttonSelectionGroup' | 'combobox' | 'radioGroup';
|
|
10
10
|
data?: Item[];
|
|
11
11
|
allowClearValue?: boolean;
|
|
12
|
-
layout?:
|
|
12
|
+
layout?: LayoutDirection;
|
|
13
13
|
'label-type'?: LabelType;
|
|
14
14
|
};
|
|
15
15
|
type Props = Omit<React.ComponentProps<typeof ButtonSelectionGroup>, 'allow-deselect'> & SingleSelectType;
|
package/dist/types/types.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export type CustomInputEvent = InputEvent & {
|
|
|
9
9
|
export type ComponentSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
10
10
|
export type InputType = 'number' | 'email' | 'text' | 'password';
|
|
11
11
|
export type TextAlign = 'left' | 'right' | 'center';
|
|
12
|
+
export type LayoutDirection = 'horizontal' | 'vertical';
|
|
12
13
|
export type FlexAlignment = 'start' | 'center' | 'end';
|
|
13
14
|
export type HTMLInputAttrs = Omit<React.JSX.IntrinsicElements['input'], 'size'>;
|
|
14
15
|
export type DescopeInputExtraProps = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@descope/flow-components",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.24.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
"webpack-subresource-integrity": "5.2.0-rc.1"
|
|
99
99
|
},
|
|
100
100
|
"dependencies": {
|
|
101
|
-
"@descope/web-components-ui": "3.
|
|
101
|
+
"@descope/web-components-ui": "3.24.0"
|
|
102
102
|
},
|
|
103
103
|
"peerDependencies": {
|
|
104
104
|
"react": ">= 18"
|