@bimdata/design-system 3.0.0-beta.1 → 3.0.0-beta.3

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.
Files changed (38) hide show
  1. package/package.json +4 -4
  2. package/src/BIMDataComponents/BIMDataAvatar/BIMDataAvatar.vue +93 -0
  3. package/src/BIMDataComponents/BIMDataCheckbox/BIMDataCheckbox.vue +9 -8
  4. package/src/BIMDataComponents/BIMDataColorSelector/BIMDataColorSelector.css +8 -0
  5. package/src/BIMDataComponents/BIMDataColorSelector/BIMDataColorSelector.vue +12 -1
  6. package/src/BIMDataComponents/BIMDataDropdownList/BIMDataDropdownList.vue +17 -11
  7. package/src/BIMDataComponents/BIMDataDropdownMenu/BIMDataDropdownMenu.vue +10 -5
  8. package/src/BIMDataComponents/BIMDataInfobox/BIMDataInfobox.vue +18 -7
  9. package/src/BIMDataComponents/BIMDataInput/BIMDataInput.vue +23 -12
  10. package/src/BIMDataComponents/BIMDataMenu/BIMDataMenu.css +58 -0
  11. package/src/BIMDataComponents/BIMDataMenu/BIMDataMenu.vue +14 -4
  12. package/src/BIMDataComponents/BIMDataMenuInline/BIMDataMenuInline.css +5 -0
  13. package/src/BIMDataComponents/BIMDataMenuInline/BIMDataMenuInline.vue +16 -6
  14. package/src/BIMDataComponents/BIMDataNavigation/BIMDataNavigation.vue +16 -9
  15. package/src/BIMDataComponents/BIMDataPaginatedList/BIMDataPaginatedList.vue +19 -7
  16. package/src/BIMDataComponents/BIMDataPagination/{_BIMDataPagination.scss → BIMDataPagination.css} +4 -2
  17. package/src/BIMDataComponents/BIMDataPagination/BIMDataPagination.vue +20 -9
  18. package/src/BIMDataComponents/BIMDataRadio/BIMDataRadio.vue +10 -5
  19. package/src/BIMDataComponents/BIMDataSafeZoneInline/{_BIMDataSafeZoneInline.scss → BIMDataSafeZoneInline.css} +2 -2
  20. package/src/BIMDataComponents/BIMDataSafeZoneInline/BIMDataSafeZoneInline.vue +1 -1
  21. package/src/BIMDataComponents/BIMDataSearch/BIMDataSearch.css +1 -1
  22. package/src/BIMDataComponents/BIMDataSearchAutocomplete/BIMDataSearchAutocomplete.css +28 -0
  23. package/src/BIMDataComponents/BIMDataSearchAutocomplete/BIMDataSearchAutocomplete.vue +10 -1
  24. package/src/BIMDataComponents/BIMDataSelect/BIMDataSelect.css +45 -2
  25. package/src/BIMDataComponents/BIMDataSelect/BIMDataSelectMulti.vue +38 -14
  26. package/src/BIMDataComponents/BIMDataSelect/BIMDataSelectSingle.vue +10 -5
  27. package/src/BIMDataComponents/BIMDataSlider/{_BIMDataSlider.scss → BIMDataSlider.css} +39 -2
  28. package/src/BIMDataComponents/BIMDataSlider/BIMDataSlider.vue +13 -2
  29. package/src/BIMDataComponents/BIMDataTable/{_BIMDataTable.scss → BIMDataTable.css} +22 -4
  30. package/src/BIMDataComponents/BIMDataTable/BIMDataTable.vue +22 -17
  31. package/src/BIMDataComponents/BIMDataTabs/BIMDataTabs.vue +10 -5
  32. package/src/BIMDataComponents/BIMDataText/BIMDataText.css +10 -0
  33. package/src/BIMDataComponents/BIMDataText/BIMDataText.vue +19 -2
  34. package/src/BIMDataComponents/BIMDataTextarea/{_BIMDataTextarea.scss → BIMDataTextarea.css} +20 -9
  35. package/src/BIMDataComponents/BIMDataTextarea/BIMDataTextarea.vue +13 -1
  36. package/src/BIMDataComponents/BIMDataToggle/{_BIMDataToggle.scss → BIMDataToggle.css} +12 -1
  37. package/src/BIMDataComponents/BIMDataToggle/BIMDataToggle.vue +11 -2
  38. package/src/BIMDataComponents/index.js +1 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bimdata/design-system",
3
- "version": "3.0.0-beta.1",
3
+ "version": "3.0.0-beta.3",
4
4
  "type": "module",
5
5
  "main": "./src/BIMDataComponents/index.js",
6
6
  "module": "./src/BIMDataComponents/index.js",
@@ -27,14 +27,14 @@
27
27
  "@vitejs/plugin-vue": "^6.0.0",
28
28
  "conventional-changelog-eslint": "^6.0.0",
29
29
  "eslint": "^9.31.0",
30
- "eslint-config-prettier": "^10.1.5",
31
- "eslint-plugin-prettier": "^5.5.1",
30
+ "eslint-config-prettier": "^10.1.8",
31
+ "eslint-plugin-prettier": "^5.5.3",
32
32
  "eslint-plugin-vue": "^10.3.0",
33
33
  "prettier": "^3.6.2",
34
34
  "prismjs": "^1.30.0",
35
35
  "sass-embedded": "^1.89.2",
36
36
  "semantic-release": "^24.2.7",
37
- "vite": "^7.0.4",
37
+ "vite": "^7.0.5",
38
38
  "vue": "^3.5.17",
39
39
  "vue-router": "^4.5.1",
40
40
  "vue3-clipboard": "^1.0.0"
@@ -0,0 +1,93 @@
1
+ <template>
2
+ <div
3
+ class="bimdata-avatar"
4
+ :class="`bimdata-avatar--${user.profile_picture ? 'silver-light' : color}`"
5
+ :style="{
6
+ width: `${size}px`,
7
+ height: `${size}px`,
8
+ fontSize: `${initialsSize ?? +size * 0.382}px`,
9
+ }"
10
+ >
11
+ <template v-if="user.profile_picture">
12
+ <img :src="user.profile_picture" />
13
+ </template>
14
+ <template v-else-if="initials">
15
+ {{ initials }}
16
+ </template>
17
+ <template v-else>
18
+ <BIMDataIconUser size="xs" />
19
+ </template>
20
+ </div>
21
+ </template>
22
+
23
+ <script>
24
+ import { computed } from "vue";
25
+ import BIMDataIconUser from "../BIMDataIcon/BIMDataIconStandalone/BIMDataIconUser.vue";
26
+
27
+ export default {
28
+ props: {
29
+ user: {
30
+ type: Object,
31
+ required: true,
32
+ },
33
+ size: {
34
+ type: [Number, String],
35
+ default: 32,
36
+ validate: (value) => value >= 32,
37
+ },
38
+ initialsSize: {
39
+ type: [Number, String],
40
+ },
41
+ color: {
42
+ type: String,
43
+ default: "primary",
44
+ validate: (value) => ["primary", "secondary", "silver-light"].includes(value),
45
+ },
46
+ },
47
+ setup(props) {
48
+ const initials = computed(() =>
49
+ (
50
+ `${props.user.firstname?.[0] ?? ""}` +
51
+ `${props.user.lastname?.[0] ?? ""}`
52
+ ).toUpperCase()
53
+ );
54
+
55
+ return {
56
+ initials,
57
+ };
58
+ },
59
+ };
60
+ </script>
61
+
62
+ <style scoped>
63
+ .bimdata-avatar {
64
+ min-width: 32px;
65
+ min-height: 32px;
66
+
67
+ display: flex;
68
+ justify-content: center;
69
+ align-items: center;
70
+ border-radius: 50%;
71
+ overflow: hidden;
72
+
73
+ img {
74
+ width: 100%;
75
+ height: 100%;
76
+ }
77
+ }
78
+
79
+ .bimdata-avatar--primary {
80
+ background-color: var(--color-primary);
81
+ color: var(--color-silver-light);
82
+ }
83
+
84
+ .bimdata-avatar--secondary {
85
+ background-color: var(--color-secondary);
86
+ color: var(--color-primary);
87
+ }
88
+
89
+ .bimdata-avatar--silver-light {
90
+ background-color: var(--color-silver-light);
91
+ color: var(--color-primary);
92
+ }
93
+ </style>
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div
3
3
  class="bimdata-checkbox"
4
- :class="{ indeterminate, disabled, checked, dark }"
4
+ :class="{ indeterminate, disabled, checked, dark: isDark }"
5
5
  @click="onClick"
6
6
  :style="style"
7
7
  v-bind="$attrs"
@@ -17,9 +17,11 @@
17
17
  export default {
18
18
  name: "BIMDataCheckbox",
19
19
  inheritAttrs: false,
20
- model: {
21
- prop: "modelValue",
22
- event: "update:modelValue",
20
+ inject: {
21
+ darkThemeRef: {
22
+ from: "BIMDATA_DESIGN_SYSTEM_DARK_THEME",
23
+ default: () => ({ value: false }),
24
+ },
23
25
  },
24
26
  props: {
25
27
  text: {
@@ -40,10 +42,6 @@ export default {
40
42
  type: String,
41
43
  default: "0px",
42
44
  },
43
- dark: {
44
- type: Boolean,
45
- default: false,
46
- },
47
45
  },
48
46
  emits: ["update:modelValue"],
49
47
  computed: {
@@ -58,6 +56,9 @@ export default {
58
56
  margin: `${this.margin}`,
59
57
  };
60
58
  },
59
+ isDark() {
60
+ return this.darkThemeRef;
61
+ },
61
62
  },
62
63
  methods: {
63
64
  onClick() {
@@ -12,4 +12,12 @@
12
12
  }
13
13
  }
14
14
  }
15
+ &.dark {
16
+ background-color: var(--color-quaternary);
17
+ & .color-selector__line__element {
18
+ &.selected {
19
+ border: solid 2px var(--color-white);
20
+ }
21
+ }
22
+ }
15
23
  }
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <BIMDataCard class="color-selector">
2
+ <BIMDataCard class="color-selector" :class="{ dark: isDark }">
3
3
  <template #content>
4
4
  <div
5
5
  class="color-selector__line"
@@ -37,6 +37,12 @@ export default {
37
37
  components: {
38
38
  BIMDataCard,
39
39
  },
40
+ inject: {
41
+ darkThemeRef: {
42
+ from: "BIMDATA_DESIGN_SYSTEM_DARK_THEME",
43
+ default: () => ({ value: false }),
44
+ },
45
+ },
40
46
  props: {
41
47
  modelValue: {
42
48
  type: String,
@@ -50,6 +56,11 @@ export default {
50
56
  colorLines,
51
57
  };
52
58
  },
59
+ computed: {
60
+ isDark() {
61
+ return this.darkThemeRef;
62
+ },
63
+ }
53
64
  };
54
65
  </script>
55
66
 
@@ -8,13 +8,13 @@
8
8
  >
9
9
  <div
10
10
  class="bimdata-dropdown-list__content"
11
- :class="{ active: displayed, disabled, dark, border }"
11
+ :class="{ active: displayed, disabled, dark: isDark, border }"
12
12
  @click="onHeaderClick"
13
13
  :style="style"
14
14
  >
15
15
  <slot name="header" :isOpen="displayed"></slot>
16
16
  <BIMDataButton
17
- :color="!dark ? 'white' : 'quaternary'"
17
+ :color="!isDark ? 'white' : 'quaternary'"
18
18
  icon
19
19
  radius
20
20
  fill
@@ -28,15 +28,16 @@
28
28
  <transition :name="`slide-fade-${transitionName}`">
29
29
  <div>
30
30
  <BIMDataPaginatedList
31
- :class="`submenu submenu--${directionClass}`"
31
+ :class="['submenu', `submenu--${directionClass}`, { dark: isDark }]"
32
32
  v-show="displayed"
33
33
  :list="filteredList"
34
34
  :perPage="perPage"
35
35
  :elementKey="elementKey"
36
36
  @element-click="onElementClick"
37
37
  :loading="loading"
38
- :background-color="!dark ? 'var(--color-white)' : 'var(--color-quaternary)'"
39
- :dark="dark"
38
+ :background-color="
39
+ !isDark ? 'var(--color-white)' : 'var(--color-quaternary)'
40
+ "
40
41
  :borderRadius="borderRadius"
41
42
  >
42
43
  <template #header>
@@ -81,6 +82,12 @@ export default {
81
82
  BIMDataButton,
82
83
  },
83
84
  directives: { clickaway },
85
+ inject: {
86
+ darkThemeRef: {
87
+ from: "BIMDATA_DESIGN_SYSTEM_DARK_THEME",
88
+ default: () => ({ value: false }),
89
+ },
90
+ },
84
91
  props: {
85
92
  list: {
86
93
  type: Array,
@@ -139,14 +146,10 @@ export default {
139
146
  type: String,
140
147
  default: "Search",
141
148
  },
142
- dark: {
143
- type: Boolean,
144
- default: false,
145
- },
146
149
  border: {
147
150
  type: Boolean,
148
151
  default: false,
149
- }
152
+ },
150
153
  },
151
154
  emits: ["element-click"],
152
155
  data() {
@@ -160,7 +163,7 @@ export default {
160
163
  return {
161
164
  "min-width": `${this.width}`,
162
165
  "min-height": `${this.height}`,
163
- 'border-radius': `${this.borderRadius}`
166
+ "border-radius": `${this.borderRadius}`,
164
167
  };
165
168
  },
166
169
  iconRotation() {
@@ -183,6 +186,9 @@ export default {
183
186
  );
184
187
  }
185
188
  },
189
+ isDark() {
190
+ return this.darkThemeRef;
191
+ },
186
192
  },
187
193
  methods: {
188
194
  onHeaderClick() {
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div class="bimdata-dropdown" v-clickaway="away" :class="{dark, border}">
2
+ <div class="bimdata-dropdown" v-clickaway="away" :class="{dark: isDark, border}">
3
3
  <div
4
4
  class="bimdata-dropdown__content"
5
5
  :class="{ active: displayed, disabled }"
@@ -79,6 +79,12 @@ import BIMDataTextbox from "../../BIMDataComponents/BIMDataTextbox/BIMDataTextbo
79
79
  export default {
80
80
  directives: { clickaway },
81
81
  components: { BIMDataIconChevron, BIMDataTextbox },
82
+ inject: {
83
+ darkThemeRef: {
84
+ from: "BIMDATA_DESIGN_SYSTEM_DARK_THEME",
85
+ default: () => ({ value: false }),
86
+ },
87
+ },
82
88
  props: {
83
89
  disabled: {
84
90
  type: Boolean,
@@ -115,10 +121,6 @@ export default {
115
121
  type: String,
116
122
  default: "auto",
117
123
  },
118
- dark: {
119
- type: Boolean,
120
- default: false,
121
- },
122
124
  border: {
123
125
  type: Boolean,
124
126
  default: true,
@@ -140,6 +142,9 @@ export default {
140
142
  visibility: this.menuHeader ? "visible" : "hidden",
141
143
  };
142
144
  },
145
+ isDark() {
146
+ return this.darkThemeRef;
147
+ },
143
148
  },
144
149
  watch: {
145
150
  header: {
@@ -1,6 +1,7 @@
1
1
  <template>
2
- <div class="bimdata-infobox">
3
- <div class="bimdata-infobox__stripe"
2
+ <div class="bimdata-infobox" :class="{ dark: isDark }">
3
+ <div
4
+ class="bimdata-infobox__stripe"
4
5
  :style="{ backgroundColor: `var(--color-${color})` }"
5
6
  >
6
7
  <!-- left stripe -->
@@ -15,19 +16,20 @@
15
16
  </template>
16
17
 
17
18
  <script setup>
19
+ import { inject, computed } from "vue";
18
20
  defineProps({
19
21
  text: {
20
22
  type: String,
21
- default: ""
23
+ default: "",
22
24
  },
23
25
  icon: {
24
26
  type: String,
25
- default: "information"
27
+ default: "information",
26
28
  },
27
29
  color: {
28
30
  type: String,
29
- validator:
30
- v => [
31
+ validator: v =>
32
+ [
31
33
  "granite-light",
32
34
  "high",
33
35
  "neutral",
@@ -36,9 +38,13 @@ defineProps({
36
38
  "success",
37
39
  "warning",
38
40
  ].includes(v),
39
- default: "neutral"
41
+ default: "neutral",
40
42
  },
41
43
  });
44
+ const darkThemeRef = inject("BIMDATA_DESIGN_SYSTEM_DARK_THEME", {
45
+ value: false,
46
+ });
47
+ const isDark = computed(() => darkThemeRef?.value);
42
48
  </script>
43
49
 
44
50
  <style scoped>
@@ -72,5 +78,10 @@ defineProps({
72
78
  .bimdata-infobox__text {
73
79
  line-height: 1.25;
74
80
  }
81
+
82
+ &.dark {
83
+ background-color: var(--color-quaternary);
84
+ color: var(--color-quaternary-lighter);
85
+ }
75
86
  }
76
87
  </style>
@@ -6,19 +6,25 @@
6
6
  success,
7
7
  disabled,
8
8
  loading,
9
- dark,
9
+ dark: isDark,
10
10
  empty:
11
11
  modelValue === undefined || modelValue === null || modelValue === '',
12
12
  }"
13
13
  :style="style"
14
14
  >
15
- <label v-if="isLabel && computedLabel !== ''" :for="`bimdata-input-${uuid}`">{{
16
- computedLabel
17
- }}</label>
18
- <div class="bimdata-input__content" style="position: relative;" :style="{
19
- 'background-color': backgroundColor,
20
- 'border-radius': borderRadius,
21
- }">
15
+ <label
16
+ v-if="isLabel && computedLabel !== ''"
17
+ :for="`bimdata-input-${uuid}`"
18
+ >{{ computedLabel }}</label
19
+ >
20
+ <div
21
+ class="bimdata-input__content"
22
+ style="position: relative"
23
+ :style="{
24
+ 'background-color': backgroundColor,
25
+ 'border-radius': borderRadius,
26
+ }"
27
+ >
22
28
  <div class="bimdata-input__icon left-icon">
23
29
  <slot name="leftInputIcon"></slot>
24
30
  </div>
@@ -61,6 +67,12 @@ export default {
61
67
  prop: "modelValue",
62
68
  event: "update:modelValue",
63
69
  },
70
+ inject: {
71
+ darkThemeRef: {
72
+ from: "BIMDATA_DESIGN_SYSTEM_DARK_THEME",
73
+ default: () => ({ value: false }),
74
+ },
75
+ },
64
76
  props: {
65
77
  modelValue: {
66
78
  type: [String, Number],
@@ -126,10 +138,6 @@ export default {
126
138
  type: Boolean,
127
139
  default: true,
128
140
  },
129
- dark: {
130
- type: Boolean,
131
- default: false,
132
- },
133
141
  },
134
142
  emits: ["update:modelValue", "blur", "keypress", "focus", "change"],
135
143
  computed: {
@@ -142,6 +150,9 @@ export default {
142
150
  // Si `label` est vide, utilise la valeur de `placeholder`
143
151
  return this.label || this.placeholder;
144
152
  },
153
+ isDark() {
154
+ return this.darkThemeRef;
155
+ },
145
156
  },
146
157
  beforeCreate() {
147
158
  this.uuid = uuid.toString();
@@ -70,4 +70,62 @@
70
70
  }
71
71
  }
72
72
  }
73
+
74
+ .bimdata-menu__item__content {
75
+ position: relative;
76
+ z-index: 0;
77
+ }
78
+ .bimdata-menu__item:first-child .bimdata-menu__item__content:hover::before {
79
+ border-top-left-radius: 12px;
80
+ border-top-right-radius: 12px;
81
+ }
82
+ .bimdata-menu__item:last-child .bimdata-menu__item__content:hover::before {
83
+ border-bottom-left-radius: 12px;
84
+ border-bottom-right-radius: 12px;
85
+ }
86
+ .bimdata-menu__item__content:hover::before {
87
+ content: "";
88
+ position: absolute;
89
+ inset: 0;
90
+ background-color: var(--color-silver-light);
91
+ z-index: -1;
92
+ pointer-events: none;
93
+ transition: background-color 0.2s;
94
+ }
95
+
96
+ &.dark {
97
+ background-color: var(--color-quaternary);
98
+ color: var(--color-quaternary-lighter);
99
+ & .bimdata-menu__item {
100
+ & .bimdata-menu__item__title {
101
+ color: var(--color-white);
102
+ }
103
+ & .bimdata-menu__item__content {
104
+ &:hover {
105
+ background-color: transparent;
106
+ &::before {
107
+ background-color: color-mix(in srgb, transparent, var(--color-quaternary-lighter) 8%);
108
+ }
109
+ }
110
+ &.bimdata-menu__item__content--active {
111
+ background-color: color-mix(in srgb, transparent, var(--color-quaternary-lighter) 5%);
112
+ }
113
+ }
114
+ & .bimdata-menu__item__children {
115
+ background-color: var(--color-quaternary);
116
+ ul {
117
+ li {
118
+ &:hover {
119
+ background-color: color-mix(in srgb, transparent, var(--color-quaternary-lighter) 8%);
120
+ }
121
+ }
122
+ }
123
+ }
124
+ }
125
+ & .bimdata-menu__item__divider {
126
+ .divider {
127
+ border-color: var(--color-quaternary-lighter);
128
+ }
129
+ }
130
+ }
73
131
  }
@@ -1,6 +1,7 @@
1
1
  <template>
2
2
  <ul
3
3
  class="bimdata-menu bimdata-list"
4
+ :class="{ dark: isDark }"
4
5
  :style="{
5
6
  width,
6
7
  maxHeight,
@@ -23,6 +24,8 @@
23
24
  @mouseleave="hoveredItemKey = null"
24
25
  :style="{
25
26
  color: item.color,
27
+ 'background-color':
28
+ hoveredItemKey === item.key ? item.background : '',
26
29
  }"
27
30
  >
28
31
  <div v-if="item.groupTitle" class="bimdata-menu__item__title">
@@ -32,10 +35,6 @@
32
35
  </div>
33
36
  <div
34
37
  v-if="item.text"
35
- :style="{
36
- 'background-color':
37
- hoveredItemKey === item.key ? item.background : '',
38
- }"
39
38
  class="bimdata-menu__item__content flex"
40
39
  :class="{ 'bimdata-menu__item__content--active': isItemActive(item) }"
41
40
  >
@@ -90,6 +89,12 @@ export default {
90
89
  BIMDataIconChevron,
91
90
  BIMDataTextbox,
92
91
  },
92
+ inject: {
93
+ darkThemeRef: {
94
+ from: "BIMDATA_DESIGN_SYSTEM_DARK_THEME",
95
+ default: () => ({ value: false }),
96
+ },
97
+ },
93
98
  props: {
94
99
  menuItems: {
95
100
  type: Array,
@@ -145,6 +150,11 @@ export default {
145
150
  this.hoveredItemKey = item.key;
146
151
  },
147
152
  },
153
+ computed: {
154
+ isDark() {
155
+ return this.darkThemeRef;
156
+ },
157
+ },
148
158
  };
149
159
  </script>
150
160
 
@@ -9,4 +9,9 @@
9
9
  gap: calc(var(--spacing-unit) / 2);
10
10
  border-radius: 8px;
11
11
  }
12
+ &.dark {
13
+ & .bimdata-menu-inline__submenu {
14
+ background-color: var(--color-quaternary);
15
+ }
16
+ }
12
17
  }
@@ -1,24 +1,25 @@
1
1
  <template>
2
- <div class="bimdata-menu-inline" v-clickaway="away">
2
+ <div class="bimdata-menu-inline" :class="{ dark: isDark }" v-clickaway="away">
3
3
  <BIMDataButton
4
- color="primary"
4
+ :color="isDark ? 'quaternary' : 'primary'"
5
5
  ghost
6
6
  rounded
7
7
  icon
8
8
  @click="active = !active"
9
9
  :width="width"
10
+ padding="0px"
10
11
  >
11
12
  <slot name="button" :active="active">
12
13
  <BIMDataIconEllipsis
13
14
  v-if="!active"
14
15
  fill
15
- color="granite-light"
16
+ :color="isDark ? 'white' : 'granite-light'"
16
17
  :size="iconEllipsisSize"
17
18
  />
18
19
  <BIMDataIconClose
19
20
  v-else
20
21
  fill
21
- color="granite-light"
22
+ :color="isDark ? 'white' : 'granite-light'"
22
23
  :size="iconCloseSize"
23
24
  />
24
25
  </slot>
@@ -54,6 +55,12 @@ export default {
54
55
  BIMDataIconClose,
55
56
  BIMDataIconEllipsis,
56
57
  },
58
+ inject: {
59
+ darkThemeRef: {
60
+ from: "BIMDATA_DESIGN_SYSTEM_DARK_THEME",
61
+ default: () => ({ value: false }),
62
+ },
63
+ },
57
64
  props: {
58
65
  isSubmenuRight: {
59
66
  type: Boolean,
@@ -72,7 +79,7 @@ export default {
72
79
  default: "m",
73
80
  validator: value =>
74
81
  ["xxxs", "xxs", "xs", "s", "m", "l", "xl", "xxl", "xxxl"].includes(
75
- value
82
+ value,
76
83
  ),
77
84
  },
78
85
  iconCloseSize: {
@@ -80,7 +87,7 @@ export default {
80
87
  default: "xxs",
81
88
  validator: value =>
82
89
  ["xxxs", "xxs", "xs", "s", "m", "l", "xl", "xxl", "xxxl"].includes(
83
- value
90
+ value,
84
91
  ),
85
92
  },
86
93
  },
@@ -96,6 +103,9 @@ export default {
96
103
  }
97
104
  return `right: ${this.width}`;
98
105
  },
106
+ isDark() {
107
+ return this.darkThemeRef;
108
+ },
99
109
  },
100
110
  methods: {
101
111
  away() {