@descope/web-components-ui 1.110.0 → 1.112.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 +2096 -1795
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.esm.js +2417 -2115
- package/dist/index.esm.js.map +1 -1
- package/dist/umd/1995.js +7 -22
- package/dist/umd/1995.js.LICENSE.txt +0 -6
- package/dist/umd/1995.js.map +1 -1
- package/dist/umd/8961.js +1 -1
- package/dist/umd/8961.js.map +1 -1
- package/dist/umd/DescopeDev.js +1 -1
- package/dist/umd/DescopeDev.js.map +1 -1
- package/dist/umd/button-selection-group-fields-descope-button-selection-group-item-index-js.js +1 -1
- package/dist/umd/button-selection-group-fields-descope-button-selection-group-item-index-js.js.map +1 -1
- package/dist/umd/descope-alert-index-js.js +1 -1
- package/dist/umd/descope-alert-index-js.js.map +1 -1
- package/dist/umd/descope-apps-list.js +18 -0
- package/dist/umd/descope-apps-list.js.LICENSE.txt +23 -0
- package/dist/umd/descope-apps-list.js.map +1 -0
- package/dist/umd/descope-avatar.js +17 -1
- package/dist/umd/descope-avatar.js.LICENSE.txt +23 -0
- package/dist/umd/descope-avatar.js.map +1 -1
- package/dist/umd/descope-button.js +1 -1
- package/dist/umd/descope-button.js.map +1 -1
- package/dist/umd/descope-collapsible-container.js +1 -1
- package/dist/umd/descope-collapsible-container.js.map +1 -1
- package/dist/umd/descope-date-field-descope-calendar-index-js.js +1 -1
- package/dist/umd/descope-date-field-descope-calendar-index-js.js.map +1 -1
- package/dist/umd/descope-divider-index-js.js +1 -1
- package/dist/umd/descope-divider-index-js.js.map +1 -1
- package/dist/umd/descope-enriched-text.js +1 -1
- package/dist/umd/descope-enriched-text.js.map +1 -1
- package/dist/umd/descope-link.js +1 -1
- package/dist/umd/descope-link.js.map +1 -1
- package/dist/umd/descope-list-item.js +2 -0
- package/dist/umd/descope-list-item.js.map +1 -0
- package/dist/umd/descope-list.js +2 -0
- package/dist/umd/descope-list.js.map +1 -0
- package/dist/umd/descope-outbound-apps.js +339 -0
- package/dist/umd/descope-outbound-apps.js.LICENSE.txt +5 -0
- package/dist/umd/descope-outbound-apps.js.map +1 -0
- package/dist/umd/descope-recovery-codes.js +1 -1
- package/dist/umd/descope-recovery-codes.js.map +1 -1
- package/dist/umd/descope-scopes-list-index-js.js +1 -1
- package/dist/umd/descope-scopes-list-index-js.js.map +1 -1
- package/dist/umd/descope-security-questions-verify-index-js.js +1 -1
- package/dist/umd/descope-security-questions-verify-index-js.js.map +1 -1
- package/dist/umd/descope-text.js +1 -1
- package/dist/umd/descope-text.js.map +1 -1
- package/dist/umd/descope-timer-button.js +1 -1
- package/dist/umd/descope-timer-button.js.map +1 -1
- package/dist/umd/descope-upload-file-index-js.js +1 -1
- package/dist/umd/descope-upload-file-index-js.js.map +1 -1
- package/dist/umd/descope-user-attribute-index-js.js +1 -1
- package/dist/umd/descope-user-attribute-index-js.js.map +1 -1
- package/dist/umd/descope-user-auth-method-index-js.js +4 -4
- 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/dist/umd/mapping-fields-descope-mappings-field-index-js.js +1 -1
- package/dist/umd/mapping-fields-descope-mappings-field-index-js.js.map +1 -1
- package/dist/umd/mapping-fields-descope-saml-group-mappings-index-js.js +1 -1
- package/dist/umd/mapping-fields-descope-saml-group-mappings-index-js.js.map +1 -1
- package/package.json +21 -17
- package/src/components/descope-scopes-list/index.js +2 -1
- package/src/components/descope-user-auth-method/UserAuthMethodClass.js +72 -18
- package/src/index.cjs.js +0 -3
- package/src/index.js +0 -2
- package/src/theme/components/index.js +5 -3
- package/dist/umd/descope-apps-list-index-js.js +0 -2
- package/dist/umd/descope-apps-list-index-js.js.map +0 -1
- package/dist/umd/descope-list-index-js.js +0 -2
- package/dist/umd/descope-list-index-js.js.map +0 -1
- package/src/components/descope-apps-list/AppsListClass.js +0 -97
- package/src/components/descope-apps-list/index.js +0 -8
- package/src/components/descope-list/ListClass.js +0 -156
- package/src/components/descope-list/ListItemClass.js +0 -58
- package/src/components/descope-list/index.js +0 -7
- package/src/theme/components/appsList.js +0 -36
- package/src/theme/components/list/list.js +0 -56
- package/src/theme/components/list/listItem.js +0 -41
@@ -1,58 +0,0 @@
|
|
1
|
-
import { createStyleMixin, draggableMixin, componentNameValidationMixin } from '../../mixins';
|
2
|
-
import { createBaseClass } from '../../baseClasses/createBaseClass';
|
3
|
-
import { compose } from '../../helpers';
|
4
|
-
import { getComponentName } from '../../helpers/componentHelpers';
|
5
|
-
import { activeableMixin } from '../../mixins/activableMixin';
|
6
|
-
import { injectStyle } from '@descope-ui/common/components-helpers';
|
7
|
-
|
8
|
-
export const componentName = getComponentName('list-item');
|
9
|
-
|
10
|
-
const customMixin = (superclass) =>
|
11
|
-
class ListItemMixinClass extends superclass {
|
12
|
-
constructor() {
|
13
|
-
super();
|
14
|
-
|
15
|
-
this.attachShadow({ mode: 'open' }).innerHTML = `
|
16
|
-
<slot></slot>
|
17
|
-
`;
|
18
|
-
|
19
|
-
injectStyle(
|
20
|
-
`
|
21
|
-
slot {
|
22
|
-
width: 100%;
|
23
|
-
display: flex;
|
24
|
-
overflow: hidden;
|
25
|
-
box-sizing: border-box;
|
26
|
-
}
|
27
|
-
:host {
|
28
|
-
display: block;
|
29
|
-
}
|
30
|
-
`,
|
31
|
-
this
|
32
|
-
);
|
33
|
-
}
|
34
|
-
};
|
35
|
-
|
36
|
-
export const ListItemClass = compose(
|
37
|
-
createStyleMixin({
|
38
|
-
mappings: {
|
39
|
-
padding: {},
|
40
|
-
backgroundColor: {},
|
41
|
-
borderColor: {},
|
42
|
-
borderStyle: {},
|
43
|
-
borderWidth: {},
|
44
|
-
borderRadius: {},
|
45
|
-
outline: {},
|
46
|
-
cursor: {},
|
47
|
-
gap: {},
|
48
|
-
maxWidth: { selector: () => ':host' },
|
49
|
-
alignItems: {},
|
50
|
-
flexDirection: {},
|
51
|
-
transition: {},
|
52
|
-
},
|
53
|
-
}),
|
54
|
-
draggableMixin,
|
55
|
-
componentNameValidationMixin,
|
56
|
-
customMixin,
|
57
|
-
activeableMixin
|
58
|
-
)(createBaseClass({ componentName, baseSelector: 'slot' }));
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import { componentName as listComponentName, ListClass } from './ListClass';
|
2
|
-
import { componentName as listItemComponentName, ListItemClass } from './ListItemClass';
|
3
|
-
|
4
|
-
customElements.define(listComponentName, ListClass);
|
5
|
-
customElements.define(listItemComponentName, ListItemClass);
|
6
|
-
|
7
|
-
export { ListClass, listComponentName as componentName };
|
@@ -1,36 +0,0 @@
|
|
1
|
-
import { AppsListClass } from '../../components/descope-apps-list/AppsListClass';
|
2
|
-
import { getThemeRefs } from '../../helpers/themeHelpers';
|
3
|
-
import globals from '../globals';
|
4
|
-
|
5
|
-
export const vars = AppsListClass.cssVarList;
|
6
|
-
const globalRefs = getThemeRefs(globals);
|
7
|
-
|
8
|
-
const defaultHeight = '400px';
|
9
|
-
|
10
|
-
const appsList = {
|
11
|
-
[vars.itemsFontWeight]: 'normal',
|
12
|
-
[vars.itemsTextAlign]: 'start',
|
13
|
-
[vars.hostDirection]: globalRefs.direction,
|
14
|
-
[vars.maxHeight]: defaultHeight,
|
15
|
-
|
16
|
-
_empty: {
|
17
|
-
[vars.minHeight]: defaultHeight,
|
18
|
-
},
|
19
|
-
|
20
|
-
size: {
|
21
|
-
xs: {
|
22
|
-
[vars.itemsFontSize]: '14px',
|
23
|
-
},
|
24
|
-
sm: {
|
25
|
-
[vars.itemsFontSize]: '14px',
|
26
|
-
},
|
27
|
-
md: {
|
28
|
-
[vars.itemsFontSize]: '16px',
|
29
|
-
},
|
30
|
-
lg: {
|
31
|
-
[vars.itemsFontSize]: '20px',
|
32
|
-
},
|
33
|
-
},
|
34
|
-
};
|
35
|
-
|
36
|
-
export default appsList;
|
@@ -1,56 +0,0 @@
|
|
1
|
-
import globals from '../../globals';
|
2
|
-
import { getThemeRefs, createHelperVars, useVar } from '../../../helpers/themeHelpers';
|
3
|
-
import { ListClass, componentName } from '../../../components/descope-list/ListClass';
|
4
|
-
|
5
|
-
const globalRefs = getThemeRefs(globals);
|
6
|
-
|
7
|
-
const compVars = ListClass.cssVarList;
|
8
|
-
|
9
|
-
const [helperTheme, helperRefs, helperVars] = createHelperVars(
|
10
|
-
{ shadowColor: '#00000020' },
|
11
|
-
componentName
|
12
|
-
);
|
13
|
-
|
14
|
-
const { shadowColor } = helperRefs;
|
15
|
-
|
16
|
-
const list = {
|
17
|
-
...helperTheme,
|
18
|
-
|
19
|
-
[compVars.hostWidth]: '100%',
|
20
|
-
[compVars.backgroundColor]: globalRefs.colors.surface.main,
|
21
|
-
[compVars.fontFamily]: globalRefs.fonts.font1.family,
|
22
|
-
[compVars.borderColor]: globalRefs.colors.surface.light,
|
23
|
-
[compVars.borderStyle]: 'solid',
|
24
|
-
[compVars.borderWidth]: globalRefs.border.xs,
|
25
|
-
[compVars.borderRadius]: globalRefs.radius.sm,
|
26
|
-
[compVars.gap]: globalRefs.spacing.md,
|
27
|
-
[compVars.verticalPadding]: globalRefs.spacing.lg,
|
28
|
-
[compVars.horizontalPadding]: globalRefs.spacing.lg,
|
29
|
-
[compVars.boxShadow]: `${globalRefs.shadow.wide.sm} ${shadowColor}, ${globalRefs.shadow.narrow.sm} ${shadowColor}`,
|
30
|
-
[compVars.maxHeight]: '100%',
|
31
|
-
[compVars.hostDirection]: globalRefs.direction,
|
32
|
-
[compVars.minItemsWidth]: '150px',
|
33
|
-
|
34
|
-
_empty: {
|
35
|
-
[compVars.minHeight]: '150px',
|
36
|
-
[compVars.emptyStateTextColor]: globalRefs.colors.surface.dark,
|
37
|
-
[compVars.emptyStateTextFontFamily]: globalRefs.fonts.font1.family,
|
38
|
-
},
|
39
|
-
|
40
|
-
variant: {
|
41
|
-
tiles: {
|
42
|
-
[compVars.gridTemplateColumns]: `repeat(auto-fit, minmax(min(${useVar(
|
43
|
-
compVars.minItemsWidth
|
44
|
-
)}, 100%), 1fr))`,
|
45
|
-
[compVars.maxItemsWidth]: '200px',
|
46
|
-
[compVars.itemsHorizontalAlign]: 'center',
|
47
|
-
},
|
48
|
-
},
|
49
|
-
};
|
50
|
-
|
51
|
-
export default list;
|
52
|
-
|
53
|
-
export const vars = {
|
54
|
-
...compVars,
|
55
|
-
...helperVars,
|
56
|
-
};
|
@@ -1,41 +0,0 @@
|
|
1
|
-
import globals from '../../globals';
|
2
|
-
import { getThemeRefs } from '../../../helpers/themeHelpers';
|
3
|
-
import { ListItemClass } from '../../../components/descope-list/ListItemClass';
|
4
|
-
|
5
|
-
const globalRefs = getThemeRefs(globals);
|
6
|
-
|
7
|
-
export const vars = ListItemClass.cssVarList;
|
8
|
-
|
9
|
-
const list = {
|
10
|
-
[vars.backgroundColor]: globalRefs.colors.surface.main,
|
11
|
-
[vars.padding]: globalRefs.spacing.lg,
|
12
|
-
[vars.gap]: globalRefs.spacing.md,
|
13
|
-
[vars.borderStyle]: 'solid',
|
14
|
-
[vars.borderWidth]: globalRefs.border.xs,
|
15
|
-
[vars.borderColor]: globalRefs.colors.surface.main,
|
16
|
-
[vars.borderRadius]: globalRefs.radius.sm,
|
17
|
-
[vars.cursor]: 'pointer',
|
18
|
-
[vars.alignItems]: 'center',
|
19
|
-
[vars.flexDirection]: 'row',
|
20
|
-
[vars.transition]: 'border-color 0.2s, background-color 0.2s',
|
21
|
-
|
22
|
-
variant: {
|
23
|
-
tile: {
|
24
|
-
[vars.alignItems]: 'flex-start',
|
25
|
-
[vars.flexDirection]: 'column',
|
26
|
-
[vars.borderColor]: globalRefs.colors.surface.light,
|
27
|
-
},
|
28
|
-
},
|
29
|
-
|
30
|
-
_hover: {
|
31
|
-
[vars.backgroundColor]: globalRefs.colors.surface.highlight,
|
32
|
-
},
|
33
|
-
|
34
|
-
_active: {
|
35
|
-
[vars.backgroundColor]: globalRefs.colors.surface.main,
|
36
|
-
[vars.borderColor]: globalRefs.colors.primary.light,
|
37
|
-
[vars.outline]: `1px solid ${globalRefs.colors.primary.light}`,
|
38
|
-
},
|
39
|
-
};
|
40
|
-
|
41
|
-
export default list;
|