@descope-ui/descope-list 2.2.15 → 2.2.16

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 CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [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)
6
+
7
+
8
+ ### Features
9
+
10
+ * 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))
11
+
5
12
  ## [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
13
 
7
14
  ## [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.15",
3
+ "version": "2.2.16",
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.15",
18
- "@descope-ui/descope-avatar": "2.2.15"
17
+ "e2e-utils": "2.2.16",
18
+ "@descope-ui/descope-avatar": "2.2.16"
19
19
  },
20
20
  "dependencies": {
21
- "@descope-ui/common": "2.2.15",
22
- "@descope-ui/theme-globals": "2.2.15",
23
- "@descope-ui/descope-list-item": "2.2.15"
21
+ "@descope-ui/common": "2.2.16",
22
+ "@descope-ui/theme-globals": "2.2.16",
23
+ "@descope-ui/descope-list-item": "2.2.16"
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(min(${useVar(
47
- compVars.minItemsWidth
48
- )}, 100%), 1fr))`,
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