@bimdata/design-system 3.0.0-beta.2 → 3.0.0-beta.4

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 (40) hide show
  1. package/package.json +1 -1
  2. package/src/BIMDataComponents/BIMDataCheckbox/BIMDataCheckbox.vue +9 -8
  3. package/src/BIMDataComponents/BIMDataColorSelector/BIMDataColorSelector.css +8 -0
  4. package/src/BIMDataComponents/BIMDataColorSelector/BIMDataColorSelector.vue +12 -1
  5. package/src/BIMDataComponents/BIMDataDropdownList/BIMDataDropdownList.vue +18 -12
  6. package/src/BIMDataComponents/BIMDataDropdownMenu/BIMDataDropdownMenu.vue +10 -5
  7. package/src/BIMDataComponents/BIMDataIcon/Icon.vue +1 -1
  8. package/src/BIMDataComponents/BIMDataInfobox/BIMDataInfobox.vue +18 -7
  9. package/src/BIMDataComponents/BIMDataInput/BIMDataInput.vue +23 -12
  10. package/src/BIMDataComponents/BIMDataList/BIMDataList.vue +2 -2
  11. package/src/BIMDataComponents/BIMDataMenu/BIMDataMenu.css +58 -0
  12. package/src/BIMDataComponents/BIMDataMenu/BIMDataMenu.vue +14 -4
  13. package/src/BIMDataComponents/BIMDataMenuInline/BIMDataMenuInline.css +5 -0
  14. package/src/BIMDataComponents/BIMDataMenuInline/BIMDataMenuInline.vue +16 -6
  15. package/src/BIMDataComponents/BIMDataNavigation/BIMDataNavigation.vue +17 -10
  16. package/src/BIMDataComponents/BIMDataPaginatedList/BIMDataPaginatedList.vue +20 -8
  17. package/src/BIMDataComponents/BIMDataPagination/{_BIMDataPagination.scss → BIMDataPagination.css} +4 -2
  18. package/src/BIMDataComponents/BIMDataPagination/BIMDataPagination.vue +20 -9
  19. package/src/BIMDataComponents/BIMDataRadio/BIMDataRadio.vue +10 -5
  20. package/src/BIMDataComponents/BIMDataSafeZoneInline/{_BIMDataSafeZoneInline.scss → BIMDataSafeZoneInline.css} +2 -2
  21. package/src/BIMDataComponents/BIMDataSafeZoneInline/BIMDataSafeZoneInline.vue +1 -1
  22. package/src/BIMDataComponents/BIMDataSearch/BIMDataSearch.css +1 -1
  23. package/src/BIMDataComponents/BIMDataSearchAutocomplete/BIMDataSearchAutocomplete.css +28 -0
  24. package/src/BIMDataComponents/BIMDataSearchAutocomplete/BIMDataSearchAutocomplete.vue +10 -1
  25. package/src/BIMDataComponents/BIMDataSelect/BIMDataSelect.css +45 -2
  26. package/src/BIMDataComponents/BIMDataSelect/BIMDataSelectMulti.vue +38 -14
  27. package/src/BIMDataComponents/BIMDataSelect/BIMDataSelectSingle.vue +10 -5
  28. package/src/BIMDataComponents/BIMDataSlider/{_BIMDataSlider.scss → BIMDataSlider.css} +39 -2
  29. package/src/BIMDataComponents/BIMDataSlider/BIMDataSlider.vue +13 -2
  30. package/src/BIMDataComponents/BIMDataTable/{_BIMDataTable.scss → BIMDataTable.css} +22 -4
  31. package/src/BIMDataComponents/BIMDataTable/BIMDataTable.vue +22 -17
  32. package/src/BIMDataComponents/BIMDataTable/column-sorting/ColumnSorting.vue +1 -1
  33. package/src/BIMDataComponents/BIMDataTabs/BIMDataTabs.vue +10 -5
  34. package/src/BIMDataComponents/BIMDataText/BIMDataText.css +10 -0
  35. package/src/BIMDataComponents/BIMDataText/BIMDataText.vue +19 -2
  36. package/src/BIMDataComponents/BIMDataTextarea/{_BIMDataTextarea.scss → BIMDataTextarea.css} +20 -9
  37. package/src/BIMDataComponents/BIMDataTextarea/BIMDataTextarea.vue +13 -1
  38. package/src/BIMDataComponents/BIMDataToggle/{_BIMDataToggle.scss → BIMDataToggle.css} +12 -1
  39. package/src/BIMDataComponents/BIMDataToggle/BIMDataToggle.vue +11 -2
  40. package/src/BIMDataComponents/BIMDataTree/BIMDataTree.vue +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bimdata/design-system",
3
- "version": "3.0.0-beta.2",
3
+ "version": "3.0.0-beta.4",
4
4
  "type": "module",
5
5
  "main": "./src/BIMDataComponents/index.js",
6
6
  "module": "./src/BIMDataComponents/index.js",
@@ -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() {
@@ -203,4 +209,4 @@ export default {
203
209
  };
204
210
  </script>
205
211
 
206
- <style scoped lang="scss" src="./BIMDataDropdownList.css"></style>
212
+ <style scoped src="./BIMDataDropdownList.css"></style>
@@ -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: {
@@ -98,6 +98,6 @@ export default {
98
98
  };
99
99
  </script>
100
100
 
101
- <style lang="scss" scoped src="../../assets/css/variables.css"></style>
101
+ <style scoped src="../../assets/css/variables.css"></style>
102
102
 
103
103
  <style src="./BIMDataIcon.css"></style>
@@ -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();
@@ -86,7 +86,7 @@ export default {
86
86
  };
87
87
  </script>
88
88
 
89
- <style scoped lang="scss">
89
+ <style scoped>
90
90
  .bimdata-list {
91
91
  margin: 0;
92
92
  padding: 0;
@@ -98,7 +98,7 @@ export default {
98
98
 
99
99
  position: relative;
100
100
 
101
- &__element {
101
+ .bimdata-list __element {
102
102
  position: absolute;
103
103
  width: 100%;
104
104
  }
@@ -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() {
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <ul
3
3
  class="bimdata-list bimdata-navigation"
4
- :class="{ dark }"
4
+ :class="{ dark: isDark }"
5
5
  :style="{ 'background-color': backgroundColor }"
6
6
  >
7
7
  <li class="bimdata-navigation__left m-r-6">
@@ -12,7 +12,7 @@
12
12
  @click="$emit('first')"
13
13
  :disabled="firstDisabled"
14
14
  ghost
15
- :color="!dark ? 'default' : 'quaternary'"
15
+ :color="isDark ? 'quaternary' : 'default'"
16
16
  :class="{ disabled: firstDisabled }"
17
17
  width="21px"
18
18
  height="21px"
@@ -25,7 +25,7 @@
25
25
  @click="$emit('previous')"
26
26
  :disabled="previousDisabled"
27
27
  ghost
28
- :color="!dark ? 'default' : 'quaternary'"
28
+ :color="isDark ? 'quaternary' : 'default'"
29
29
  :class="{ disabled: previousDisabled }"
30
30
  width="21px"
31
31
  height="21px"
@@ -41,7 +41,7 @@
41
41
  @click="$emit('next')"
42
42
  :disabled="nextDisabled"
43
43
  ghost
44
- :color="!dark ? 'default' : 'quaternary'"
44
+ :color="isDark ? 'quaternary' : 'default'"
45
45
  :class="{ disabled: nextDisabled }"
46
46
  width="21px"
47
47
  height="21px"
@@ -54,7 +54,7 @@
54
54
  @click="$emit('last')"
55
55
  :disabled="lastDisabled"
56
56
  ghost
57
- :color="!dark ? 'default' : 'quaternary'"
57
+ :color="isDark ? 'quaternary' : 'default'"
58
58
  :class="{ disabled: lastDisabled }"
59
59
  width="21px"
60
60
  height="21px"
@@ -81,6 +81,12 @@ export default {
81
81
  BIMDataIconDoubleChevron,
82
82
  BIMDataButton,
83
83
  },
84
+ inject: {
85
+ darkThemeRef: {
86
+ from: "BIMDATA_DESIGN_SYSTEM_DARK_THEME",
87
+ default: () => ({ value: false }),
88
+ },
89
+ },
84
90
  props: {
85
91
  first: {
86
92
  type: Boolean,
@@ -118,13 +124,14 @@ export default {
118
124
  type: String,
119
125
  default: "var(--color-white)",
120
126
  },
121
- dark: {
122
- type: Boolean,
123
- default: false,
124
- },
125
127
  },
126
128
  emits: ["first", "previous", "next", "last"],
129
+ computed: {
130
+ isDark() {
131
+ return this.darkThemeRef;
132
+ },
133
+ },
127
134
  };
128
135
  </script>
129
136
 
130
- <style scoped lang="scss" src="./BIMDataNavigation.css"></style>
137
+ <style scoped src="./BIMDataNavigation.css"></style>