@dile/ui 2.1.23 → 2.1.25

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.
@@ -9,7 +9,9 @@ export class DileDropFile extends LitElement {
9
9
  css`
10
10
  * { box-sizing: border-box; }
11
11
  :host {
12
+ display: block;
12
13
  margin-bottom: 10px;
14
+ padding-bottom: 1px;
13
15
  }
14
16
  #dropZone {
15
17
  width: 100%;
@@ -199,7 +201,7 @@ export class DileDropFile extends LitElement {
199
201
  this.fileInput.click();
200
202
  }
201
203
 
202
- clearInput() {
204
+ clear() {
203
205
  this.fileInput.value = "";
204
206
  this.fileName = "";
205
207
  }
@@ -209,11 +211,13 @@ export class DileDropFile extends LitElement {
209
211
  }
210
212
 
211
213
  get value() {
212
- return this.fileInput.value;
214
+ if(this.fileInput) {
215
+ return this.fileInput.files[0];
216
+ }
213
217
  }
214
218
 
215
219
  set value(value) {
216
- this.fileInput.value = value;
220
+ // this.fileInput.value = value;
217
221
  }
218
222
 
219
223
  }
@@ -9,7 +9,10 @@ export class DileSwitch extends DileCheckbox {
9
9
  }
10
10
  div {
11
11
  display: flex;
12
- align-items: center;
12
+ flex-direction: var(--dile-switch-flex-direction, row);
13
+ gap: var(--dile-switch-gap, 0.5rem);
14
+ align-items: var(--dile-switch-align-items, center);
15
+ justify-content: var(--dile-switch-justify-content, flex-start);
13
16
  }
14
17
  section {
15
18
  width: 56px;
@@ -36,9 +39,6 @@ export class DileSwitch extends DileCheckbox {
36
39
  :host([disabled]) {
37
40
  opacity: 0.5;
38
41
  }
39
- label {
40
- margin-left: 0.5rem;
41
- }
42
42
  `
43
43
  ];
44
44
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dile/ui",
3
- "version": "2.1.23",
3
+ "version": "2.1.25",
4
4
  "description": "UI Core components from dile-components.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -26,5 +26,5 @@
26
26
  "publishConfig": {
27
27
  "access": "public"
28
28
  },
29
- "gitHead": "453ef1fb92c0c84f23635cb36a7d4896cdabd845"
29
+ "gitHead": "e06755eed6d83790cb008f0f66bf89e2fc0acc9b"
30
30
  }