@community-release/nx-ui 0.0.54 → 0.0.56

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/module.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "ui",
3
3
  "configKey": "ui",
4
- "version": "0.0.54"
4
+ "version": "0.0.56"
5
5
  }
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div class="component-ui-file-input" :class="classes">
2
+ <div class="component-ui-file-input" :class="classes" :id="inputId">
3
3
 
4
4
  <!-- Input -->
5
5
  <div class="block-input">
@@ -81,7 +81,18 @@
81
81
  multiple: {
82
82
  type: Boolean,
83
83
  default: false,
84
- }
84
+ },
85
+ inputId: {
86
+ default: '',
87
+ },
88
+ error: {
89
+ type: Boolean,
90
+ default: false
91
+ },
92
+ disabled: {
93
+ type: Boolean,
94
+ default: false
95
+ },
85
96
  });
86
97
 
87
98
  const filesList = ref([]);
@@ -119,6 +130,8 @@
119
130
 
120
131
  if (isOverDropZone.value) result.push('tag-drag-over');
121
132
  if (!filesList.value.length) result.push('tag-empty');
133
+ if (props.error) result.push('tag-error');
134
+ if (props.disabled) result.push('tag-disabled');
122
135
 
123
136
  return result;
124
137
  });
@@ -192,7 +205,8 @@
192
205
  @com-color-surface: var(--ui-color-surface);
193
206
  @com-color-border-bolder: var(--ui-color-border-bolder);
194
207
  @com-color-border: var(--ui-color-border);
195
- @com-color-header-text:var(--ui-color-header-text);
208
+ @com-color-header-text: var(--ui-color-header-text);
209
+ @com-color-error: var(--ui-color-error);
196
210
 
197
211
  @com-border-radius-m: var(--ui-border-radius-default);
198
212
 
@@ -357,6 +371,21 @@
357
371
  display: grid;
358
372
  }
359
373
  }
374
+
375
+ // Disabled
376
+ &.tag-disabled {
377
+ opacity: 0.6;
378
+ cursor: not-allowed;
379
+
380
+ pointer-events: none;
381
+ }
382
+
383
+ // Error
384
+ &.tag-error {
385
+ .block-input {
386
+ border-color: @com-color-error;
387
+ }
388
+ }
360
389
  }
361
390
 
362
391
  @media (max-width: 640px) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@community-release/nx-ui",
3
- "version": "0.0.54",
3
+ "version": "0.0.56",
4
4
  "packageManager": "pnpm@10.14.0",
5
5
  "description": "nx-ui - Nuxt UI library",
6
6
  "repository": {