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

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 (72) hide show
  1. package/package.json +10 -10
  2. package/src/BIMDataComponents/BIMDataAvatar/BIMDataAvatar.vue +93 -0
  3. package/src/BIMDataComponents/BIMDataButton/BIMDataButton.css +28 -8
  4. package/src/BIMDataComponents/BIMDataCheckbox/BIMDataCheckbox.vue +9 -8
  5. package/src/BIMDataComponents/BIMDataColorSelector/BIMDataColorSelector.css +8 -0
  6. package/src/BIMDataComponents/BIMDataColorSelector/BIMDataColorSelector.vue +12 -1
  7. package/src/BIMDataComponents/BIMDataDatePicker/{_BIMDataDatePicker.scss → BIMDataDatePicker.css} +117 -42
  8. package/src/BIMDataComponents/BIMDataDatePicker/BIMDataDatePicker.vue +13 -4
  9. package/src/BIMDataComponents/BIMDataDatePicker/components/DateInput.vue +11 -2
  10. package/src/BIMDataComponents/BIMDataDropdownList/BIMDataDropdownList.vue +18 -12
  11. package/src/BIMDataComponents/BIMDataDropdownMenu/BIMDataDropdownMenu.css +1 -1
  12. package/src/BIMDataComponents/BIMDataDropdownMenu/BIMDataDropdownMenu.vue +10 -5
  13. package/src/BIMDataComponents/BIMDataIcon/BIMDataIcon.vue +10 -0
  14. package/src/BIMDataComponents/BIMDataIcon/BIMDataLibraryIcons/DeniedFile.vue +1 -1
  15. package/src/BIMDataComponents/BIMDataIcon/BIMDataLibraryIcons/PieGraph.vue +0 -1
  16. package/src/BIMDataComponents/BIMDataIcon/BIMDataLibraryIcons/Translate.vue +2 -2
  17. package/src/BIMDataComponents/BIMDataIcon/BIMDataLibraryIcons/ValidatedFile.vue +1 -1
  18. package/src/BIMDataComponents/BIMDataIcon/BIMDataLibraryIcons/polychrome/BcfPolychrome.vue +0 -1
  19. package/src/BIMDataComponents/BIMDataIcon/BIMDataLibraryIcons/polychrome/CreateWindowPolychrome.vue +0 -1
  20. package/src/BIMDataComponents/BIMDataIcon/BIMDataLibraryIcons/polychrome/DocInfoPolychrome.vue +0 -2
  21. package/src/BIMDataComponents/BIMDataIcon/BIMDataLibraryIcons/polychrome/FileDwgPolychrome.vue +3 -4
  22. package/src/BIMDataComponents/BIMDataIcon/BIMDataLibraryIcons/polychrome/FileDxfPolychrome.vue +3 -4
  23. package/src/BIMDataComponents/BIMDataIcon/BIMDataLibraryIcons/polychrome/FileIfcPolychrome.vue +3 -4
  24. package/src/BIMDataComponents/BIMDataIcon/BIMDataLibraryIcons/polychrome/FileImagePolychrome.vue +3 -4
  25. package/src/BIMDataComponents/BIMDataIcon/BIMDataLibraryIcons/polychrome/FileJpegPolychrome.vue +4 -5
  26. package/src/BIMDataComponents/BIMDataIcon/BIMDataLibraryIcons/polychrome/FilePdfPolychrome.vue +1 -2
  27. package/src/BIMDataComponents/BIMDataIcon/BIMDataLibraryIcons/polychrome/FilePhotospherePolychrome.vue +3 -4
  28. package/src/BIMDataComponents/BIMDataIcon/BIMDataLibraryIcons/polychrome/FilePlanPolychrome.vue +1 -2
  29. package/src/BIMDataComponents/BIMDataIcon/BIMDataLibraryIcons/polychrome/FilePngPolychrome.vue +3 -4
  30. package/src/BIMDataComponents/BIMDataIcon/BIMDataLibraryIcons/polychrome/FilePointCloudPolychrome.vue +1 -2
  31. package/src/BIMDataComponents/BIMDataIcon/BIMDataLibraryIcons/polychrome/FolderPolychrome.vue +0 -1
  32. package/src/BIMDataComponents/BIMDataIcon/BIMDataLibraryIcons/polychrome/StructurePolychrome.vue +0 -1
  33. package/src/BIMDataComponents/BIMDataIcon/BIMDataLibraryIcons/polychrome/Viewer2DPolychrome.vue +0 -1
  34. package/src/BIMDataComponents/BIMDataIcon/BIMDataLibraryIcons/polychrome/Viewer3DPolychrome.vue +0 -2
  35. package/src/BIMDataComponents/BIMDataIcon/Icon.vue +11 -1
  36. package/src/BIMDataComponents/BIMDataInfobox/BIMDataInfobox.vue +18 -7
  37. package/src/BIMDataComponents/BIMDataInput/BIMDataInput.vue +23 -12
  38. package/src/BIMDataComponents/BIMDataList/BIMDataList.vue +2 -2
  39. package/src/BIMDataComponents/BIMDataMenu/BIMDataMenu.css +59 -1
  40. package/src/BIMDataComponents/BIMDataMenu/BIMDataMenu.vue +14 -4
  41. package/src/BIMDataComponents/BIMDataMenuInline/BIMDataMenuInline.css +5 -0
  42. package/src/BIMDataComponents/BIMDataMenuInline/BIMDataMenuInline.vue +16 -6
  43. package/src/BIMDataComponents/BIMDataNavigation/BIMDataNavigation.vue +17 -10
  44. package/src/BIMDataComponents/BIMDataPaginatedList/BIMDataPaginatedList.vue +20 -8
  45. package/src/BIMDataComponents/BIMDataPagination/{_BIMDataPagination.scss → BIMDataPagination.css} +4 -2
  46. package/src/BIMDataComponents/BIMDataPagination/BIMDataPagination.vue +20 -9
  47. package/src/BIMDataComponents/BIMDataRadio/BIMDataRadio.vue +10 -5
  48. package/src/BIMDataComponents/BIMDataSafeZoneInline/{_BIMDataSafeZoneInline.scss → BIMDataSafeZoneInline.css} +7 -2
  49. package/src/BIMDataComponents/BIMDataSafeZoneInline/BIMDataSafeZoneInline.vue +15 -3
  50. package/src/BIMDataComponents/BIMDataSearch/BIMDataSearch.css +1 -1
  51. package/src/BIMDataComponents/BIMDataSearchAutocomplete/BIMDataSearchAutocomplete.css +28 -0
  52. package/src/BIMDataComponents/BIMDataSearchAutocomplete/BIMDataSearchAutocomplete.vue +10 -1
  53. package/src/BIMDataComponents/BIMDataSelect/BIMDataSelect.css +104 -2
  54. package/src/BIMDataComponents/BIMDataSelect/BIMDataSelectMulti.vue +38 -14
  55. package/src/BIMDataComponents/BIMDataSelect/BIMDataSelectSingle.vue +11 -6
  56. package/src/BIMDataComponents/BIMDataSlider/{_BIMDataSlider.scss → BIMDataSlider.css} +39 -2
  57. package/src/BIMDataComponents/BIMDataSlider/BIMDataSlider.vue +13 -2
  58. package/src/BIMDataComponents/BIMDataTable/{_BIMDataTable.scss → BIMDataTable.css} +22 -4
  59. package/src/BIMDataComponents/BIMDataTable/BIMDataTable.vue +22 -17
  60. package/src/BIMDataComponents/BIMDataTable/column-sorting/ColumnSorting.vue +1 -1
  61. package/src/BIMDataComponents/BIMDataTabs/BIMDataTabs.vue +10 -5
  62. package/src/BIMDataComponents/BIMDataText/BIMDataText.css +10 -0
  63. package/src/BIMDataComponents/BIMDataText/BIMDataText.vue +19 -2
  64. package/src/BIMDataComponents/BIMDataTextarea/{_BIMDataTextarea.scss → BIMDataTextarea.css} +20 -9
  65. package/src/BIMDataComponents/BIMDataTextarea/BIMDataTextarea.vue +13 -1
  66. package/src/BIMDataComponents/BIMDataToggle/{_BIMDataToggle.scss → BIMDataToggle.css} +12 -1
  67. package/src/BIMDataComponents/BIMDataToggle/BIMDataToggle.vue +11 -2
  68. package/src/BIMDataComponents/BIMDataTree/BIMDataTree.vue +2 -2
  69. package/src/BIMDataComponents/index.js +1 -0
  70. package/src/assets/colors.js +1 -0
  71. package/src/assets/css/utilities/_colors.css +9 -0
  72. package/src/assets/iconsColors.js +3 -0
@@ -10,7 +10,7 @@
10
10
  <ul
11
11
  ref="container"
12
12
  class="bimdata-tabs__container"
13
- :class="{ dark }"
13
+ :class="{ dark: isDark }"
14
14
  :style="{
15
15
  width: containerWidth,
16
16
  minHeight: containerHeight,
@@ -48,6 +48,12 @@ export default {
48
48
  BIMDataButton,
49
49
  BIMDataIconChevron,
50
50
  },
51
+ inject: {
52
+ darkThemeRef: {
53
+ from: "BIMDATA_DESIGN_SYSTEM_DARK_THEME",
54
+ default: () => ({ value: false }),
55
+ },
56
+ },
51
57
  props: {
52
58
  width: {
53
59
  type: [String, Number],
@@ -68,10 +74,6 @@ export default {
68
74
  selected: {
69
75
  type: [String, Number],
70
76
  },
71
- dark: {
72
- type: Boolean,
73
- default: false,
74
- },
75
77
  },
76
78
  emits: ["tab-click", "tab-selected"],
77
79
  data() {
@@ -91,6 +93,9 @@ export default {
91
93
  tabWidth() {
92
94
  return Number.isNaN(+this.tabSize) ? this.tabSize : `${this.tabSize}px`;
93
95
  },
96
+ isDark() {
97
+ return this.darkThemeRef;
98
+ },
94
99
  },
95
100
  watch: {
96
101
  tabs() {
@@ -0,0 +1,10 @@
1
+ .bimdata-text {
2
+ &.dark {
3
+ &.color-primary {
4
+ color: var(--color-primary-lighter);
5
+ }
6
+ &.color-granite-light {
7
+ color: var(--color-white);
8
+ }
9
+ }
10
+ }
@@ -1,11 +1,17 @@
1
1
  <template>
2
- <component :is="component" :style="style" :class="classes">
2
+ <component :is="component" :style="style" :class="classes" class="bimdata-text">
3
3
  <slot></slot>
4
4
  </component>
5
5
  </template>
6
6
 
7
7
  <script>
8
8
  export default {
9
+ inject: {
10
+ darkThemeRef: {
11
+ from: "BIMDATA_DESIGN_SYSTEM_DARK_THEME",
12
+ default: () => ({ value: false }),
13
+ },
14
+ },
9
15
  props: {
10
16
  component: {
11
17
  type: String,
@@ -38,7 +44,13 @@ export default {
38
44
  validator: color =>
39
45
  [
40
46
  "color-primary",
47
+ "color-primary-lighter",
41
48
  "color-secondary",
49
+ "color-secondary-lighter",
50
+ "color-tertiary",
51
+ "color-tertiary-lighter",
52
+ "color-quaternary",
53
+ "color-quaternary-lighter",
42
54
  "color-silver",
43
55
  "color-silver-light",
44
56
  "color-silver-dark",
@@ -54,7 +66,7 @@ export default {
54
66
  },
55
67
  computed: {
56
68
  classes() {
57
- return `${this.color}`;
69
+ return `${this.color} ${this.isDark ? "dark" : ""}`;
58
70
  },
59
71
  style() {
60
72
  return {
@@ -127,6 +139,11 @@ export default {
127
139
  }
128
140
  }
129
141
  },
142
+ isDark() {
143
+ return this.darkThemeRef;
144
+ },
130
145
  },
131
146
  };
132
147
  </script>
148
+
149
+ <style scoped src="./BIMDataText.css"></style>
@@ -1,5 +1,3 @@
1
- @use "../../assets/scss/mixins/_font-size.scss";
2
-
3
1
  textarea:-webkit-autofill {
4
2
  box-shadow: 0 0 0px 1000px var(--color-white) inset;
5
3
  }
@@ -10,9 +8,9 @@ textarea:-webkit-autofill {
10
8
  inline-size: min-content;
11
9
  font-family: var(--primary-font);
12
10
  color: var(--color-primary);
13
- font-size: font-size.calculateEm(15px);
11
+ font-size: 15px;
14
12
  textarea {
15
- padding: 0px;
13
+ padding: 6px;
16
14
  width: 100%;
17
15
  min-width: inherit;
18
16
  max-width: 100%;
@@ -33,7 +31,7 @@ textarea:-webkit-autofill {
33
31
  outline: none;
34
32
  & ~ label {
35
33
  top: -26px;
36
- font-size: font-size.calculateEm(10px);
34
+ font-size: 10px;
37
35
  }
38
36
  & ~ .bar {
39
37
  &:after {
@@ -48,14 +46,14 @@ textarea:-webkit-autofill {
48
46
  label {
49
47
  top: -26px;
50
48
  color: var(--color-primary);
51
- font-size: font-size.calculateEm(10px);
49
+ font-size: 10px;
52
50
  }
53
51
  }
54
52
  label {
55
53
  position: absolute;
56
54
  top: 0;
57
55
  left: 0;
58
- font-size: font-size.calculateEm(12px);
56
+ font-size: 12px;
59
57
  transform: translateY(8px);
60
58
  transition: 0.2s ease all;
61
59
  color: var(--color-granite-light);
@@ -78,11 +76,11 @@ textarea:-webkit-autofill {
78
76
  }
79
77
  .error {
80
78
  color: var(--color-high);
81
- font-size: font-size.calculateEm(11px);
79
+ font-size: 11px;
82
80
  }
83
81
  .success {
84
82
  color: var(--color-success);
85
- font-size: font-size.calculateEm(11px);
83
+ font-size: 11px;
86
84
  }
87
85
  &.error {
88
86
  label {
@@ -108,4 +106,17 @@ textarea:-webkit-autofill {
108
106
  }
109
107
  }
110
108
  }
109
+
110
+ &.dark {
111
+ textarea {
112
+ background-color: var(--color-quaternary);
113
+ color: var(--color-quaternary-lighter);
114
+ }
115
+ label {
116
+ color: var(--color-quaternary-lighter);
117
+ }
118
+ .bar {
119
+ background-color: var(--color-quaternary-lighter);
120
+ }
121
+ }
111
122
  }
@@ -6,6 +6,7 @@
6
6
  (modelValue !== null && modelValue !== '') || placeholder !== null,
7
7
  error,
8
8
  success,
9
+ dark: isDark,
9
10
  }"
10
11
  :style="{ 'min-width': width, 'min-height': height }"
11
12
  >
@@ -33,6 +34,12 @@ export default {
33
34
  prop: "modelValue",
34
35
  event: "update:modelValue",
35
36
  },
37
+ inject: {
38
+ darkThemeRef: {
39
+ from: "BIMDATA_DESIGN_SYSTEM_DARK_THEME",
40
+ default: () => ({ value: false }),
41
+ },
42
+ },
36
43
  props: {
37
44
  name: {
38
45
  type: [String, Number],
@@ -117,7 +124,12 @@ export default {
117
124
  }
118
125
  },
119
126
  },
127
+ computed: {
128
+ isDark() {
129
+ return this.darkThemeRef;
130
+ },
131
+ },
120
132
  };
121
133
  </script>
122
134
 
123
- <style scoped lang="scss" src="./_BIMDataTextarea.scss"></style>
135
+ <style scoped src="./BIMDataTextarea.css"></style>
@@ -44,7 +44,7 @@
44
44
  left: 0;
45
45
  background: var(--color-primary);
46
46
  box-shadow: 0 0 1px var(--color-primary);
47
- transform: translateX(24px - 8px);
47
+ transform: translateX(16px);
48
48
  }
49
49
  }
50
50
  &.disabled {
@@ -69,4 +69,15 @@
69
69
  }
70
70
  }
71
71
  }
72
+
73
+ &.dark {
74
+ &.active {
75
+ .toggle__switch {
76
+ background-color: var(--color-primary-light);
77
+ &::after {
78
+ background: var(--color-tertiary);
79
+ }
80
+ }
81
+ }
82
+ }
72
83
  }
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <label
3
3
  :for="`bimdata-toggle-${uniqueId}`"
4
- :class="{ active: modelValue, disabled }"
4
+ :class="{ active: modelValue, disabled, dark: isDark }"
5
5
  class="toggle__button"
6
6
  >
7
7
  <slot></slot>
@@ -22,6 +22,12 @@ export default {
22
22
  prop: "modelValue",
23
23
  event: "update:modelValue",
24
24
  },
25
+ inject: {
26
+ darkThemeRef: {
27
+ from: "BIMDATA_DESIGN_SYSTEM_DARK_THEME",
28
+ default: () => ({ value: false }),
29
+ },
30
+ },
25
31
  props: {
26
32
  disabled: {
27
33
  type: Boolean,
@@ -47,6 +53,9 @@ export default {
47
53
  this.$emit("update:modelValue", newValue);
48
54
  },
49
55
  },
56
+ isDark() {
57
+ return this.darkThemeRef;
58
+ },
50
59
  },
51
60
  created() {
52
61
  // Math.random is random enough to avoid conflict
@@ -55,4 +64,4 @@ export default {
55
64
  };
56
65
  </script>
57
66
 
58
- <style scoped lang="scss" src="./_BIMDataToggle.scss"></style>
67
+ <style scoped src="./BIMDataToggle.css"></style>
@@ -123,11 +123,11 @@ export default {
123
123
  };
124
124
  </script>
125
125
 
126
- <style scoped lang="scss">
126
+ <style scoped>
127
127
  .bimdata-tree {
128
128
  height: 100%;
129
129
 
130
- &__drop-helper {
130
+ .bimdata-tree__drop-helper {
131
131
  height: 2px;
132
132
  background-color: var(--color-primary);
133
133
  }
@@ -7,6 +7,7 @@ import "../assets/css/utilities/_list.css";
7
7
  import "../assets/css/utilities/_spacing.css";
8
8
  import "../assets/css/utilities/_text.css";
9
9
 
10
+ export { default as BIMDataAvatar } from "./BIMDataAvatar/BIMDataAvatar.vue";
10
11
  export { default as BIMDataBigSpinner } from "./BIMDataBigSpinner/BIMDataBigSpinner.vue";
11
12
  export { default as BIMDataButton } from "./BIMDataButton/BIMDataButton.vue";
12
13
  export { default as BIMDataCard } from "./BIMDataCard/BIMDataCard.vue";
@@ -5,6 +5,7 @@ export default Object.freeze([
5
5
  "secondary",
6
6
  "tertiary",
7
7
  "quaternary",
8
+ "quaternary-lighter",
8
9
  "granite",
9
10
  "silver",
10
11
  "high",
@@ -217,4 +217,13 @@
217
217
  fill: transparent;
218
218
  stroke: var(--color-neutral);
219
219
  }
220
+
221
+ .dark {
222
+ .fill-white {
223
+ fill: var(--color-quaternary);
224
+ }
225
+ .fill-primary {
226
+ fill: var(--color-quaternary-lighter);
227
+ }
228
+ }
220
229
  }
@@ -7,6 +7,9 @@ export default Object.freeze([
7
7
  "neutral",
8
8
  "primary",
9
9
  "secondary",
10
+ "tertiary",
11
+ "quaternary",
12
+ "quaternary-lighter",
10
13
  "success",
11
14
  "silver",
12
15
  "silver-light",