@bimdata/design-system 3.0.0-beta.39 → 3.0.0-beta.40

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": "3.0.0-beta.39",
3
+ "version": "3.0.0-beta.40",
4
4
  "type": "module",
5
5
  "main": "./src/BIMDataComponents/index.js",
6
6
  "module": "./src/BIMDataComponents/index.js",
@@ -21,10 +21,10 @@
21
21
  "@semantic-release/changelog": "^6.0.3",
22
22
  "@semantic-release/commit-analyzer": "^13.0.1",
23
23
  "@semantic-release/git": "^10.0.1",
24
- "@semantic-release/github": "^12.0.2",
24
+ "@semantic-release/github": "^12.0.3",
25
25
  "@semantic-release/npm": "^13.1.3",
26
26
  "@semantic-release/release-notes-generator": "^14.1.0",
27
- "@vitejs/plugin-vue": "^6.0.3",
27
+ "@vitejs/plugin-vue": "^6.0.4",
28
28
  "conventional-changelog-eslint": "^6.0.0",
29
29
  "eslint": "^9.39.2",
30
30
  "eslint-config-prettier": "^10.1.8",
@@ -33,10 +33,10 @@
33
33
  "prettier": "^3.8.1",
34
34
  "prismjs": "^1.30.0",
35
35
  "sass-embedded": "^1.97.3",
36
- "semantic-release": "^25.0.2",
36
+ "semantic-release": "^25.0.3",
37
37
  "vite": "^7.3.1",
38
38
  "vue": "^3.5.27",
39
- "vue-router": "^4.6.4",
39
+ "vue-router": "^5.0.2",
40
40
  "vue3-clipboard": "^1.0.0"
41
41
  },
42
42
  "repository": {
@@ -1,4 +1,3 @@
1
-
2
1
  input:-webkit-autofill {
3
2
  box-shadow: 0 0 0px 1000px var(--color-white) inset;
4
3
  }
@@ -7,15 +6,14 @@ input:-webkit-autofill {
7
6
  font-size: 16px;
8
7
  position: relative;
9
8
  &.empty {
10
- input {
11
- color: rgba(47, 55, 74, .5);
12
- }
9
+ input {
10
+ color: rgba(47, 55, 74, 0.5);
11
+ }
13
12
  }
14
13
  & .bimdata-input__content {
15
14
  position: relative;
16
15
  display: flex;
17
16
  align-items: center;
18
- background-color: var(--color-silver-light);
19
17
  input {
20
18
  width: 100%;
21
19
  height: 32px;
@@ -23,7 +21,6 @@ input:-webkit-autofill {
23
21
  display: flex;
24
22
  cursor: pointer;
25
23
  background-color: transparent;
26
- color: var(--color-primary);
27
24
  font-size: 14px;
28
25
  &:focus {
29
26
  outline: none;
@@ -33,7 +30,7 @@ input:-webkit-autofill {
33
30
  }
34
31
  }
35
32
  &::placeholder {
36
- color: rgba(47, 55, 74, .5);
33
+ color: var(--input-color);
37
34
  }
38
35
  }
39
36
  & .bimdata-input__icon {
@@ -45,7 +42,8 @@ input:-webkit-autofill {
45
42
  border-radius: 8px 8px 0 0;
46
43
  }
47
44
  .bar {
48
- &:before, &:after {
45
+ &:before,
46
+ &:after {
49
47
  width: 0;
50
48
  height: 2px;
51
49
  content: "";
@@ -70,7 +68,7 @@ input:-webkit-autofill {
70
68
  margin-bottom: calc(var(--spacing-unit) / 2);
71
69
  display: block;
72
70
  color: var(--color-granite-light);
73
- font-size: .57rem;
71
+ font-size: 0.57rem;
74
72
  font-weight: bold;
75
73
  letter-spacing: 0.5px;
76
74
  text-transform: uppercase;
@@ -98,11 +96,9 @@ input:-webkit-autofill {
98
96
  }
99
97
  &.dark {
100
98
  & .bimdata-input__content {
101
- background-color: var(--color-quaternary) !important;
102
99
  input {
103
- color: var(--color-quaternary-lighter);
104
100
  &::placeholder {
105
- color: var(--color-quaternary-lighter);
101
+ color: var(--input-color);
106
102
  }
107
103
  }
108
104
  }
@@ -133,4 +129,4 @@ input:-webkit-autofill {
133
129
  transform: scaleX(0);
134
130
  left: 50%;
135
131
  }
136
- }
132
+ }
@@ -21,7 +21,7 @@
21
21
  class="bimdata-input__content"
22
22
  style="position: relative"
23
23
  :style="{
24
- 'background-color': backgroundColor,
24
+ 'background-color': computedBackgroundColor,
25
25
  'border-radius': borderRadius,
26
26
  }"
27
27
  >
@@ -47,6 +47,8 @@
47
47
  :style="{
48
48
  padding: padding,
49
49
  height: height,
50
+ color: computedInputColor,
51
+ '--input-color': computedInputColor,
50
52
  }"
51
53
  />
52
54
  <div class="bimdata-input__icon">
@@ -74,23 +76,27 @@ export default {
74
76
  },
75
77
  },
76
78
  props: {
77
- modelValue: {
78
- type: [String, Number],
79
- default: "",
79
+ autocomplete: {
80
+ type: Boolean,
81
+ default: false,
80
82
  },
81
- placeholder: {
83
+ backgroundColor: {
82
84
  type: String,
83
- default: "",
85
+ default: "var(--color-silver-light)",
84
86
  },
85
- label: {
87
+ backgroundColorDark: {
86
88
  type: String,
87
- default: "",
89
+ default: "var(--color-quaternary)",
88
90
  },
89
- error: {
91
+ borderRadius: {
92
+ type: String,
93
+ default: "8px",
94
+ },
95
+ disabled: {
90
96
  type: Boolean,
91
97
  default: false,
92
98
  },
93
- success: {
99
+ error: {
94
100
  type: Boolean,
95
101
  default: false,
96
102
  },
@@ -98,45 +104,53 @@ export default {
98
104
  type: String,
99
105
  default: "",
100
106
  },
101
- successMessage: {
107
+ height: {
102
108
  type: String,
103
- default: "",
109
+ default: "32px",
104
110
  },
105
- loading: {
111
+ isLabel: {
106
112
  type: Boolean,
107
- default: false,
113
+ default: true,
108
114
  },
109
- disabled: {
110
- type: Boolean,
111
- default: false,
115
+ inputColor: {
116
+ type: String,
117
+ default: "var(--color-primary)",
112
118
  },
113
- margin: {
119
+ inputColorDark: {
114
120
  type: String,
115
- default: "12px 0px",
121
+ default: "var(--color-quaternary-lighter)",
116
122
  },
117
- padding: {
123
+ label: {
118
124
  type: String,
119
- default: "0px 12px",
125
+ default: "",
120
126
  },
121
- autocomplete: {
127
+ loading: {
122
128
  type: Boolean,
123
129
  default: false,
124
130
  },
125
- height: {
131
+ margin: {
126
132
  type: String,
127
- default: "32px",
133
+ default: "12px 0px",
128
134
  },
129
- backgroundColor: {
135
+ modelValue: {
136
+ type: [String, Number],
137
+ default: "",
138
+ },
139
+ padding: {
130
140
  type: String,
131
- default: "var(--color-silver-light)",
141
+ default: "0px 12px",
132
142
  },
133
- borderRadius: {
143
+ placeholder: {
134
144
  type: String,
135
- default: "8px",
145
+ default: "",
136
146
  },
137
- isLabel: {
147
+ success: {
138
148
  type: Boolean,
139
- default: true,
149
+ default: false,
150
+ },
151
+ successMessage: {
152
+ type: String,
153
+ default: "",
140
154
  },
141
155
  },
142
156
  emits: ["update:modelValue", "blur", "keypress", "focus", "change"],
@@ -153,6 +167,12 @@ export default {
153
167
  isDark() {
154
168
  return this.darkThemeRef;
155
169
  },
170
+ computedBackgroundColor() {
171
+ return this.isDark ? this.backgroundColorDark : this.backgroundColor;
172
+ },
173
+ computedInputColor() {
174
+ return this.isDark ? this.inputColorDark : this.inputColor;
175
+ },
156
176
  },
157
177
  beforeCreate() {
158
178
  this.uuid = uuid.toString();