@descope-ui/descope-list 0.0.1 → 0.1.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/CHANGELOG.md CHANGED
@@ -2,6 +2,20 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [0.1.0](https://github.com/descope/web-components-ui/compare/@descope-ui/descope-list-0.0.1...@descope-ui/descope-list-0.1.0) (2025-09-02)
6
+
7
+ ### Dependency Updates
8
+
9
+ * `e2e-utils` updated to version `0.1.0`
10
+ * `@descope-ui/descope-avatar` updated to version `0.1.0`
11
+ * `@descope-ui/common` updated to version `0.1.0`
12
+ * `@descope-ui/theme-globals` updated to version `0.0.20`
13
+ * `@descope-ui/descope-list-item` updated to version `0.1.0`
14
+
15
+ ### Features
16
+
17
+ * Trusted Devices ([#697](https://github.com/descope/web-components-ui/issues/697)) ([fb2f0eb](https://github.com/descope/web-components-ui/commit/fb2f0eb6773ed624354ed9f0b97d713bb8b10fce))
18
+
5
19
  ## 0.0.1 (2025-07-21)
6
20
 
7
21
  ### Dependency Updates
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@descope-ui/descope-list",
3
- "version": "0.0.1",
3
+ "version": "0.1.0",
4
4
  "exports": {
5
5
  ".": {
6
6
  "import": "./src/component/index.js"
@@ -15,12 +15,12 @@
15
15
  "devDependencies": {
16
16
  "@playwright/test": "1.38.1",
17
17
  "e2e-utils": "0.0.1",
18
- "@descope-ui/descope-avatar": "0.0.19"
18
+ "@descope-ui/descope-avatar": "0.1.0"
19
19
  },
20
20
  "dependencies": {
21
- "@descope-ui/common": "0.0.18",
22
- "@descope-ui/theme-globals": "0.0.19",
23
- "@descope-ui/descope-list-item": "0.0.1"
21
+ "@descope-ui/common": "0.1.0",
22
+ "@descope-ui/theme-globals": "0.0.20",
23
+ "@descope-ui/descope-list-item": "0.1.0"
24
24
  },
25
25
  "publishConfig": {
26
26
  "link-workspace-packages": false
@@ -14,7 +14,10 @@ import { createBaseClass } from '@descope-ui/common/base-classes';
14
14
 
15
15
  export const componentName = getComponentName('list');
16
16
 
17
- class RawList extends createBaseClass({ componentName, baseSelector: '.wrapper' }) {
17
+ class RawList extends createBaseClass({
18
+ componentName,
19
+ baseSelector: '.wrapper',
20
+ }) {
18
21
  static get observedAttributes() {
19
22
  return ['variant', 'readonly'];
20
23
  }
@@ -61,7 +64,7 @@ class RawList extends createBaseClass({ componentName, baseSelector: '.wrapper'
61
64
  width: 100%;
62
65
  }
63
66
  `,
64
- this
67
+ this,
65
68
  );
66
69
  }
67
70
 
@@ -89,7 +92,7 @@ class RawList extends createBaseClass({ componentName, baseSelector: '.wrapper'
89
92
  }
90
93
 
91
94
  const listItemVariant = this.variant === 'tiles' ? 'tile' : 'row';
92
- listItem.setAttribute('variant', listItemVariant);
95
+ listItem?.setAttribute('variant', listItemVariant);
93
96
  });
94
97
  }
95
98
 
@@ -134,8 +137,14 @@ export const ListClass = compose(
134
137
  hostWidth: { selector: () => ':host', property: 'width' },
135
138
  maxHeight: { selector: () => ':host' },
136
139
  minHeight: {},
137
- verticalPadding: [{ property: 'padding-top' }, { property: 'padding-bottom' }],
138
- horizontalPadding: [{ property: 'padding-left' }, { property: 'padding-right' }],
140
+ verticalPadding: [
141
+ { property: 'padding-top' },
142
+ { property: 'padding-bottom' },
143
+ ],
144
+ horizontalPadding: [
145
+ { property: 'padding-left' },
146
+ { property: 'padding-right' },
147
+ ],
139
148
  hostDirection: { selector: () => ':host', property: 'direction' },
140
149
  fontFamily: {},
141
150
  gap: {},
@@ -148,10 +157,22 @@ export const ListClass = compose(
148
157
 
149
158
  boxShadow: {},
150
159
  gridTemplateColumns: {},
151
- maxItemsWidth: { selector: () => '::slotted(:not([slot]))', property: 'max-width' },
152
- minItemsWidth: { selector: () => '::slotted(:not([slot]))', property: 'min-width' },
153
- itemsHorizontalAlign: { selector: () => '::slotted(*)', property: 'justify-self' },
154
- emptyStateTextColor: { selector: () => 'slot[name="empty-state"]', property: 'color' },
160
+ maxItemsWidth: {
161
+ selector: () => '::slotted(:not([slot]))',
162
+ property: 'max-width',
163
+ },
164
+ minItemsWidth: {
165
+ selector: () => '::slotted(:not([slot]))',
166
+ property: 'min-width',
167
+ },
168
+ itemsHorizontalAlign: {
169
+ selector: () => '::slotted(*)',
170
+ property: 'justify-self',
171
+ },
172
+ emptyStateTextColor: {
173
+ selector: () => 'slot[name="empty-state"]',
174
+ property: 'color',
175
+ },
155
176
  emptyStateTextFontFamily: {
156
177
  selector: () => 'slot[name="empty-state"]',
157
178
  property: 'font-family',
@@ -159,5 +180,5 @@ export const ListClass = compose(
159
180
  },
160
181
  }),
161
182
  draggableMixin,
162
- componentNameValidationMixin
183
+ componentNameValidationMixin,
163
184
  )(RawList);