@descope/web-components-ui 1.120.0 → 1.122.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/cjs/index.cjs.js +1841 -1735
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.esm.js +1797 -1690
- package/dist/index.esm.js.map +1 -1
- package/dist/umd/DescopeDev.js +1 -1
- package/dist/umd/DescopeDev.js.map +1 -1
- package/dist/umd/descope-outbound-app-button.js +339 -0
- package/dist/umd/descope-outbound-app-button.js.LICENSE.txt +5 -0
- package/dist/umd/descope-outbound-app-button.js.map +1 -0
- package/dist/umd/descope-user-attribute-index-js.js +4 -4
- package/dist/umd/descope-user-attribute-index-js.js.map +1 -1
- package/dist/umd/descope-user-auth-method-index-js.js +1 -1
- package/dist/umd/descope-user-auth-method-index-js.js.map +1 -1
- package/dist/umd/index.js +1 -1
- package/dist/umd/index.js.map +1 -1
- package/package.json +2 -1
- package/src/components/descope-user-attribute/UserAttributeClass.js +30 -21
- package/src/components/descope-user-auth-method/UserAuthMethodClass.js +3 -1
- package/src/theme/components/index.js +2 -0
- package/src/theme/components/userAttribute.js +12 -6
- package/src/theme/components/userAuthMethod.js +3 -2
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@descope/web-components-ui",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.122.0",
|
4
4
|
"description": "",
|
5
5
|
"main": "dist/cjs/index.cjs.js",
|
6
6
|
"module": "dist/index.esm.js",
|
@@ -77,6 +77,7 @@
|
|
77
77
|
"lodash.merge": "4.6.2",
|
78
78
|
"@descope-ui/common": "0.0.18",
|
79
79
|
"@descope-ui/descope-button": "0.0.19",
|
80
|
+
"@descope-ui/descope-outbound-app-button": "0.0.1",
|
80
81
|
"@descope-ui/descope-image": "0.0.10",
|
81
82
|
"@descope-ui/descope-icon": "0.0.17",
|
82
83
|
"@descope-ui/descope-text": "0.0.19",
|
@@ -19,20 +19,19 @@ class RawUserAttribute extends createBaseClass({
|
|
19
19
|
|
20
20
|
this.attachShadow({ mode: 'open' }).innerHTML = `
|
21
21
|
<div class="root">
|
22
|
-
<
|
23
|
-
|
22
|
+
<descope-text st-text-align="auto" data-id="label-text" variant="body1" mode="secondary" class="label"></descope-text>
|
23
|
+
<div class="content-wrapper">
|
24
24
|
<descope-text st-text-align="auto" data-id="value-text" variant="body1" mode="primary" class="value"></descope-text>
|
25
|
+
<div class="btn-wrapper">
|
26
|
+
<descope-badge mode="default" bordered="true" size="xs"></descope-badge>
|
27
|
+
<descope-button size="xs" data-id="edit-btn" square="true" variant="link" mode="primary">
|
28
|
+
<vaadin-icon src=${editIcon}></vaadin-icon>
|
29
|
+
</descope-button>
|
30
|
+
<descope-button size="xs" data-id="delete-btn" square="true" variant="link" mode="primary">
|
31
|
+
<vaadin-icon src=${deleteIcon}></vaadin-icon>
|
32
|
+
</descope-button>
|
33
|
+
</div>
|
25
34
|
</div>
|
26
|
-
|
27
|
-
<div class="btn-wrapper">
|
28
|
-
<descope-badge mode="default" bordered="true" size="xs"></descope-badge>
|
29
|
-
<descope-button size="xs" data-id="edit-btn" square="true" variant="link" mode="primary">
|
30
|
-
<vaadin-icon src=${editIcon}></vaadin-icon>
|
31
|
-
</descope-button>
|
32
|
-
<descope-button size="xs" data-id="delete-btn" square="true" variant="link" mode="primary">
|
33
|
-
<vaadin-icon src=${deleteIcon}></vaadin-icon>
|
34
|
-
</descope-button>
|
35
|
-
</div
|
36
35
|
</div>
|
37
36
|
`;
|
38
37
|
|
@@ -40,6 +39,7 @@ class RawUserAttribute extends createBaseClass({
|
|
40
39
|
`
|
41
40
|
:host {
|
42
41
|
display: inline-flex;
|
42
|
+
container-type: inline-size;
|
43
43
|
}
|
44
44
|
|
45
45
|
vaadin-icon {
|
@@ -53,6 +53,12 @@ class RawUserAttribute extends createBaseClass({
|
|
53
53
|
align-items: center;
|
54
54
|
}
|
55
55
|
|
56
|
+
@container (max-width: 529px) {
|
57
|
+
.root {
|
58
|
+
flex-wrap: wrap;
|
59
|
+
}
|
60
|
+
}
|
61
|
+
|
56
62
|
.btn-wrapper {
|
57
63
|
display: flex;
|
58
64
|
justify-content: space-between;
|
@@ -60,10 +66,10 @@ class RawUserAttribute extends createBaseClass({
|
|
60
66
|
flex-grow: 0;
|
61
67
|
}
|
62
68
|
|
63
|
-
.
|
69
|
+
.content-wrapper {
|
64
70
|
display: flex;
|
65
|
-
align-items: center;
|
66
71
|
flex-grow: 1;
|
72
|
+
align-items: center;
|
67
73
|
}
|
68
74
|
|
69
75
|
descope-text::part(text-wrapper) {
|
@@ -75,10 +81,13 @@ class RawUserAttribute extends createBaseClass({
|
|
75
81
|
|
76
82
|
descope-text {
|
77
83
|
display: inline-flex;
|
84
|
+
max-width: 100%;
|
85
|
+
min-width: 0;
|
78
86
|
}
|
79
87
|
|
80
88
|
.label {
|
81
|
-
flex-grow:
|
89
|
+
flex-grow: 1;
|
90
|
+
width: 100%;
|
82
91
|
}
|
83
92
|
|
84
93
|
.value {
|
@@ -224,14 +233,13 @@ class RawUserAttribute extends createBaseClass({
|
|
224
233
|
}
|
225
234
|
}
|
226
235
|
|
227
|
-
const { host, textFields, buttons, badge, labelText,
|
236
|
+
const { host, textFields, buttons, badge, labelText, contentWrapper } = {
|
228
237
|
host: { selector: () => ':host' },
|
229
238
|
textFields: { selector: 'descope-text' },
|
230
|
-
valueText: { selector: 'descope-text[data-id="value-text"]' },
|
231
239
|
labelText: { selector: 'descope-text[data-id="label-text"]' },
|
232
240
|
buttons: { selector: 'descope-button' },
|
233
241
|
badge: { selector: 'descope-badge' },
|
234
|
-
|
242
|
+
contentWrapper: { selector: ' .content-wrapper' },
|
235
243
|
};
|
236
244
|
|
237
245
|
export const UserAttributeClass = compose(
|
@@ -239,16 +247,17 @@ export const UserAttributeClass = compose(
|
|
239
247
|
mappings: {
|
240
248
|
hostWidth: { ...host, property: 'width' },
|
241
249
|
hostMinWidth: { ...host, property: 'min-width' },
|
250
|
+
hostMaxWidth: { ...host, property: 'max-width' },
|
242
251
|
hostDirection: [
|
243
252
|
{ ...host, property: 'direction' },
|
244
253
|
{ ...textFields, property: TextClass.cssVarList.hostDirection },
|
245
254
|
{ ...buttons, property: ButtonClass.cssVarList.hostDirection },
|
246
255
|
{ ...badge, property: BadgeClass.cssVarList.hostDirection },
|
247
256
|
],
|
248
|
-
|
249
|
-
|
257
|
+
labelMinWidth: { ...labelText, property: 'min-width' },
|
258
|
+
contentMinWidth: { ...contentWrapper, property: 'min-width' },
|
250
259
|
badgeMaxWidth: { ...badge, property: 'max-width' },
|
251
|
-
itemsGap: [{ property: 'gap' }, { ...
|
260
|
+
itemsGap: [{ property: 'gap' }, { ...contentWrapper, property: 'gap' }],
|
252
261
|
},
|
253
262
|
}),
|
254
263
|
draggableMixin,
|
@@ -67,6 +67,7 @@ class RawUserAuthMethod extends createBaseClass({
|
|
67
67
|
display: flex;
|
68
68
|
align-items: center;
|
69
69
|
flex-grow: 1;
|
70
|
+
min-width: 0;
|
70
71
|
}
|
71
72
|
|
72
73
|
descope-text::part(text-wrapper) {
|
@@ -78,6 +79,7 @@ class RawUserAuthMethod extends createBaseClass({
|
|
78
79
|
|
79
80
|
descope-text {
|
80
81
|
display: inline-flex;
|
82
|
+
min-width: 0;
|
81
83
|
}
|
82
84
|
|
83
85
|
.status-indicator {
|
@@ -241,13 +243,13 @@ export const UserAuthMethodClass = compose(
|
|
241
243
|
mappings: {
|
242
244
|
hostWidth: { ...host, property: 'width' },
|
243
245
|
hostMinWidth: { ...host, property: 'min-width' },
|
246
|
+
hostMaxWidth: { ...host, property: 'max-width' },
|
244
247
|
hostDirection: [
|
245
248
|
{ ...host, property: 'direction' },
|
246
249
|
{ ...textField, property: TextClass.cssVarList.hostDirection },
|
247
250
|
{ ...buttons, property: ButtonClass.cssVarList.hostDirection },
|
248
251
|
{ ...badge, property: BadgeClass.cssVarList.hostDirection },
|
249
252
|
],
|
250
|
-
labelTextWidth: { ...textField, property: 'width' },
|
251
253
|
itemsGap: [{ property: 'gap' }, { ...textWrapper, property: 'gap' }],
|
252
254
|
iconSize: [
|
253
255
|
{ ...methodIconSlot, property: 'width' },
|
@@ -61,6 +61,7 @@ import * as passwordStrength from '@descope-ui/descope-password-strength/theme';
|
|
61
61
|
import * as collapsibleContainer from '@descope-ui/descope-collapsible-container/theme';
|
62
62
|
import * as recoveryCodes from '@descope-ui/descope-recovery-codes/theme';
|
63
63
|
import * as outboundApps from '@descope-ui/descope-outbound-apps/theme';
|
64
|
+
import * as outboundAppButton from '@descope-ui/descope-outbound-app-button/theme';
|
64
65
|
|
65
66
|
const components = {
|
66
67
|
button,
|
@@ -127,6 +128,7 @@ const components = {
|
|
127
128
|
recoveryCodes,
|
128
129
|
hcaptcha,
|
129
130
|
outboundApps,
|
131
|
+
outboundAppButton,
|
130
132
|
};
|
131
133
|
|
132
134
|
const theme = Object.keys(components).reduce(
|
@@ -1,17 +1,23 @@
|
|
1
1
|
import globals from '../globals';
|
2
|
-
import {
|
3
|
-
|
2
|
+
import {
|
3
|
+
UserAttributeClass,
|
4
|
+
componentName,
|
5
|
+
} from '../../components/descope-user-attribute/UserAttributeClass';
|
6
|
+
import { createHelperVars, getThemeRefs, useVar } from '../../helpers/themeHelpers';
|
4
7
|
|
5
8
|
const globalRefs = getThemeRefs(globals);
|
6
9
|
export const vars = UserAttributeClass.cssVarList;
|
7
10
|
|
8
11
|
const userAttribute = {
|
12
|
+
[vars.labelMinWidth]: '150px',
|
9
13
|
[vars.hostDirection]: globalRefs.direction,
|
10
|
-
[vars.
|
11
|
-
[vars.valueTextWidth]: '200px',
|
14
|
+
[vars.contentMinWidth]: `calc(100% - ${useVar(vars.labelMinWidth)})`,
|
12
15
|
[vars.badgeMaxWidth]: '85px',
|
13
|
-
[vars.itemsGap]: '
|
14
|
-
[vars.hostMinWidth]: '
|
16
|
+
[vars.itemsGap]: '4px',
|
17
|
+
[vars.hostMinWidth]: '310px',
|
18
|
+
[vars.hostWidth]: '530px',
|
19
|
+
[vars.hostMaxWidth]: '100%',
|
20
|
+
|
15
21
|
_fullWidth: {
|
16
22
|
[vars.hostWidth]: '100%',
|
17
23
|
},
|
@@ -7,9 +7,10 @@ export const vars = UserAuthMethodClass.cssVarList;
|
|
7
7
|
|
8
8
|
const userAuthMethod = {
|
9
9
|
[vars.hostDirection]: globalRefs.direction,
|
10
|
-
[vars.labelTextWidth]: '200px',
|
11
10
|
[vars.itemsGap]: '16px',
|
12
|
-
[vars.hostMinWidth]: '
|
11
|
+
[vars.hostMinWidth]: '310px',
|
12
|
+
[vars.hostWidth]: '530px',
|
13
|
+
[vars.hostMaxWidth]: '100%',
|
13
14
|
[vars.iconSize]: '24px',
|
14
15
|
[vars.iconColor]: 'currentcolor',
|
15
16
|
_fullWidth: {
|