@bimdata/design-system 2.1.1-rc.5 → 2.2.0-beta.1

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.1-rc.5",
3
+ "version": "2.2.0-beta.1",
4
4
  "main": "./src/BIMDataComponents/index.js",
5
5
  "module": "./src/BIMDataComponents/index.js",
6
6
  "files": [
@@ -0,0 +1,71 @@
1
+ <script setup>
2
+ defineProps({
3
+ text: {
4
+ type: String,
5
+ default: ""
6
+ },
7
+ icon: {
8
+ type: String,
9
+ default: "information"
10
+ },
11
+ color: {
12
+ type: String,
13
+ validator:
14
+ v => [
15
+ "granite-light",
16
+ "high",
17
+ "neutral",
18
+ "primary",
19
+ "secondary",
20
+ "success",
21
+ "warning",
22
+ ].includes(v),
23
+ default: "neutral"
24
+ },
25
+ });
26
+ </script>
27
+
28
+ <template>
29
+ <div class="bimdata-infobox">
30
+ <div class="bimdata-infobox__stripe"
31
+ :style="{ backgroundColor: `var(--color-${color})` }"
32
+ >
33
+ <!-- left stripe -->
34
+ </div>
35
+ <div class="bimdata-infobox__icon">
36
+ <BIMDataIcon :name="icon" :customSize="18" :color="color" fill />
37
+ </div>
38
+ <div class="bimdata-infobox__text">
39
+ <slot>{{ text }}</slot>
40
+ </div>
41
+ </div>
42
+ </template>
43
+
44
+ <style scoped>
45
+ .bimdata-infobox {
46
+ position: relative;
47
+ padding: var(--spacing-unit);
48
+ border-radius: 3px;
49
+ background-color: var(--color-silver-light);
50
+ color: var(--color-granite-light);
51
+ overflow: hidden;
52
+
53
+ display: flex;
54
+ align-items: start;
55
+ gap: var(--spacing-unit);
56
+
57
+ .bimdata-infobox__stripe {
58
+ position: absolute;
59
+ top: 0;
60
+ left: 0;
61
+ width: 4px;
62
+ height: 100%;
63
+ }
64
+
65
+ .bimdata-infobox__icon {
66
+ width: 18px;
67
+ height: 18px;
68
+ margin-top: 2px;
69
+ }
70
+ }
71
+ </style>
@@ -20,6 +20,7 @@ export { default as BIMDataFileIcon } from "./BIMDataFileIcon/BIMDataFileIcon.vu
20
20
  export { default as BIMDataIcon } from "./BIMDataIcon/BIMDataIcon.vue";
21
21
  export * from "./BIMDataIcon/BIMDataIconStandalone/index.js";
22
22
  export { default as BIMDataIllustration } from "./BIMDataIllustration/BIMDataIllustration.vue";
23
+ export { default as BIMDataInfobox } from "./BIMDataInfobox/BIMDataInfobox.vue";
23
24
  export { default as BIMDataInput } from "./BIMDataInput/BIMDataInput.vue";
24
25
  export { default as BIMDataInputOutlined } from "./BIMDataInputOutlined/BIMDataInputOutlined.vue";
25
26
  export { default as BIMDataList } from "./BIMDataList/BIMDataList.vue";