@bimdata/design-system 2.1.0-rc.12 → 2.1.0-rc.13

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bimdata/design-system",
3
- "version": "2.1.0-rc.12",
3
+ "version": "2.1.0-rc.13",
4
4
  "main": "./src/BIMDataComponents/index.js",
5
5
  "module": "./src/BIMDataComponents/index.js",
6
6
  "files": [
@@ -3,7 +3,7 @@
3
3
  class="bimdata-search-bar"
4
4
  v-clickaway="away"
5
5
  :style="{ width: width, height: height }"
6
- :class="{ focus: focused, ...classes }"
6
+ :class="{ focus: focused, disabled, ...classes }"
7
7
  >
8
8
  <span class="bimdata-search-icon">
9
9
  <BIMDataIconSearch size="xxs" />
@@ -18,6 +18,7 @@
18
18
  :placeholder="placeholder"
19
19
  @keyup.enter="$emit('enter', $event.target.value)"
20
20
  :autocomplete="autocomplete ? 'on' : 'off'"
21
+ :disabled="disabled"
21
22
  />
22
23
  <BIMDataButton
23
24
  width="25px"
@@ -99,6 +100,10 @@ export default {
99
100
  type: Boolean,
100
101
  default: false,
101
102
  },
103
+ disabled: {
104
+ type: Boolean,
105
+ default: false,
106
+ },
102
107
  },
103
108
  emits: ["update:modelValue", "enter", "clear"],
104
109
  data() {
@@ -28,6 +28,12 @@
28
28
  box-shadow: var(--box-shadow);
29
29
  transition: all 0.2s ease;
30
30
  }
31
+ &.disabled {
32
+ color: var(--color-silver);
33
+ input {
34
+ color: var(--color-silver);
35
+ }
36
+ }
31
37
 
32
38
  &__radius {
33
39
  border-radius: 3px;