@descope-ui/descope-list 2.2.15 → 2.2.17
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/CHANGELOG.md +9 -0
- package/package.json +6 -6
- package/src/component/ListClass.js +3 -0
- package/src/theme.js +25 -4
- package/stories/descope-list.stories.js +6 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [2.2.17](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.16...web-components-ui-2.2.17) (2026-01-05)
|
|
6
|
+
|
|
7
|
+
## [2.2.16](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.15...web-components-ui-2.2.16) (2025-12-28)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Features
|
|
11
|
+
|
|
12
|
+
* Add design options to apps list ([#815](https://github.com/descope/web-components-ui/issues/815)) ([fd250ac](https://github.com/descope/web-components-ui/commit/fd250acf2802c38905df2b2e6350477b06e2431c))
|
|
13
|
+
|
|
5
14
|
## [2.2.15](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.14...web-components-ui-2.2.15) (2025-12-23)
|
|
6
15
|
|
|
7
16
|
## [2.2.14](https://github.com/descope/web-components-ui/compare/web-components-ui-2.2.13...web-components-ui-2.2.14) (2025-12-22)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@descope-ui/descope-list",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.17",
|
|
4
4
|
"exports": {
|
|
5
5
|
".": {
|
|
6
6
|
"import": "./src/component/index.js"
|
|
@@ -14,13 +14,13 @@
|
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
16
|
"@playwright/test": "1.38.1",
|
|
17
|
-
"e2e-utils": "2.2.
|
|
18
|
-
"@descope-ui/descope-avatar": "2.2.
|
|
17
|
+
"e2e-utils": "2.2.17",
|
|
18
|
+
"@descope-ui/descope-avatar": "2.2.17"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@descope-ui/common": "2.2.
|
|
22
|
-
"@descope-ui/theme-globals": "2.2.
|
|
23
|
-
"@descope-ui/descope-list-item": "2.2.
|
|
21
|
+
"@descope-ui/common": "2.2.17",
|
|
22
|
+
"@descope-ui/theme-globals": "2.2.17",
|
|
23
|
+
"@descope-ui/descope-list-item": "2.2.17"
|
|
24
24
|
},
|
|
25
25
|
"publishConfig": {
|
|
26
26
|
"link-workspace-packages": false
|
|
@@ -165,6 +165,9 @@ export const ListClass = compose(
|
|
|
165
165
|
selector: () => '::slotted(:not([slot]))',
|
|
166
166
|
property: 'min-width',
|
|
167
167
|
},
|
|
168
|
+
maxRowItems: {
|
|
169
|
+
property: 'max-row-items',
|
|
170
|
+
},
|
|
168
171
|
itemsHorizontalAlign: {
|
|
169
172
|
selector: () => '::slotted(*)',
|
|
170
173
|
property: 'justify-self',
|
package/src/theme.js
CHANGED
|
@@ -12,7 +12,7 @@ const compVars = ListClass.cssVarList;
|
|
|
12
12
|
|
|
13
13
|
const [helperTheme, helperRefs, helperVars] = createHelperVars(
|
|
14
14
|
{ shadowColor: '#00000020' },
|
|
15
|
-
componentName
|
|
15
|
+
componentName,
|
|
16
16
|
);
|
|
17
17
|
|
|
18
18
|
const { shadowColor } = helperRefs;
|
|
@@ -34,6 +34,7 @@ const list = {
|
|
|
34
34
|
[compVars.maxHeight]: '100%',
|
|
35
35
|
[compVars.hostDirection]: globalRefs.direction,
|
|
36
36
|
[compVars.minItemsWidth]: '150px',
|
|
37
|
+
[compVars.maxRowItems]: '1000', // effectively no limit
|
|
37
38
|
|
|
38
39
|
_empty: {
|
|
39
40
|
[compVars.minHeight]: '150px',
|
|
@@ -43,13 +44,33 @@ const list = {
|
|
|
43
44
|
|
|
44
45
|
variant: {
|
|
45
46
|
tiles: {
|
|
46
|
-
[compVars.gridTemplateColumns]: `repeat(auto-fit, minmax(
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
[compVars.gridTemplateColumns]: `repeat(auto-fit, minmax(
|
|
48
|
+
max(
|
|
49
|
+
min(${useVar(compVars.minItemsWidth)}, 100%),
|
|
50
|
+
calc((100% - (${useVar(compVars.maxRowItems)} - 1) * ${useVar(compVars.gap)}) / ${useVar(compVars.maxRowItems)})),
|
|
51
|
+
1fr))`,
|
|
49
52
|
[compVars.maxItemsWidth]: '200px',
|
|
50
53
|
[compVars.itemsHorizontalAlign]: 'center',
|
|
51
54
|
},
|
|
52
55
|
},
|
|
56
|
+
|
|
57
|
+
gap: {
|
|
58
|
+
xs: {
|
|
59
|
+
[compVars.gap]: globalRefs.spacing.xs,
|
|
60
|
+
},
|
|
61
|
+
sm: {
|
|
62
|
+
[compVars.gap]: globalRefs.spacing.sm,
|
|
63
|
+
},
|
|
64
|
+
md: {
|
|
65
|
+
[compVars.gap]: globalRefs.spacing.md,
|
|
66
|
+
},
|
|
67
|
+
lg: {
|
|
68
|
+
[compVars.gap]: globalRefs.spacing.lg,
|
|
69
|
+
},
|
|
70
|
+
xl: {
|
|
71
|
+
[compVars.gap]: globalRefs.spacing.xl,
|
|
72
|
+
},
|
|
73
|
+
},
|
|
53
74
|
};
|
|
54
75
|
|
|
55
76
|
export default list;
|
|
@@ -9,10 +9,12 @@ const Template = ({
|
|
|
9
9
|
itemSampleText,
|
|
10
10
|
emptyState,
|
|
11
11
|
variant,
|
|
12
|
+
maxItemsPerRow,
|
|
12
13
|
}) => `
|
|
13
14
|
<descope-list
|
|
14
15
|
st-host-direction="${direction || ''}"
|
|
15
16
|
variant="${variant}"
|
|
17
|
+
st-max-row-items="${maxItemsPerRow || ''}"
|
|
16
18
|
>
|
|
17
19
|
${Array.from(
|
|
18
20
|
{ length: numberOfItems || 0 },
|
|
@@ -42,6 +44,10 @@ export default {
|
|
|
42
44
|
options: ['list', 'tiles'],
|
|
43
45
|
control: { type: 'radio' },
|
|
44
46
|
},
|
|
47
|
+
maxItemsPerRow: {
|
|
48
|
+
name: 'Max Items Per Row (for tiles variant)',
|
|
49
|
+
control: { type: 'number', min: 1, max: 1000, step: 1 },
|
|
50
|
+
},
|
|
45
51
|
},
|
|
46
52
|
};
|
|
47
53
|
|