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

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.10",
3
+ "version": "3.0.0-beta.12",
4
4
  "type": "module",
5
5
  "main": "./src/BIMDataComponents/index.js",
6
6
  "module": "./src/BIMDataComponents/index.js",
@@ -44,7 +44,7 @@
44
44
  }
45
45
 
46
46
  .bimdata-datepicker__calendar {
47
- width: 280px;
47
+ width: 100%;
48
48
  box-shadow: var(--box-shadow);
49
49
  background: #fff;
50
50
  position: absolute;
@@ -227,13 +227,13 @@
227
227
 
228
228
  .day-header {
229
229
  padding: 0 12px;
230
- display: flex;
231
- gap: 0;
230
+ display: grid;
231
+ grid-template-columns: repeat(7, 1fr);
232
+ gap: 6px;
232
233
  color: var(--color-primary);
233
234
 
234
235
  span {
235
236
  height: 40px;
236
- width: 36.5px;
237
237
  display: inline-block;
238
238
  font-size: 75%;
239
239
  line-height: 40px;
@@ -241,23 +241,29 @@
241
241
  text-align: center;
242
242
  vertical-align: middle;
243
243
  white-space: nowrap;
244
+ justify-self: center;
244
245
  }
245
246
  }
246
247
 
247
- .month,
248
- .year {
249
- width: 29.9%;
250
- }
251
-
252
248
  .cells-wrapper {
253
249
  padding: 6px 12px 14px;
254
250
  overflow: hidden;
255
251
  position: relative;
256
252
 
257
- .picker-cells {
258
- display: flex;
259
- flex-wrap: wrap;
253
+ .picker-cells-day, .picker-cells-month, .picker-cells-year {
254
+ display: grid;
260
255
  transition: all 250ms ease-in-out;
256
+ gap: 6px;
257
+ button {
258
+ min-width: 100%;
259
+ justify-self: center;
260
+ }
261
+ }
262
+ .picker-cells-day {
263
+ grid-template-columns: repeat(7, 1fr);
264
+ }
265
+ .picker-cells-month, .picker-cells-year {
266
+ grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
261
267
  }
262
268
  }
263
269
  }
@@ -304,7 +310,11 @@
304
310
  &:hover {
305
311
  background-color: var(--color-primary-light);
306
312
  }
307
- &.selected {
313
+ &.today {
314
+ background-color: var(--color-quaternary-lighter);
315
+ color: var(--color-quaternary);
316
+ }
317
+ &.selected{
308
318
  background-color: var(--color-tertiary);
309
319
  &:hover {
310
320
  background-color: var(--color-tertiary-light);
@@ -313,6 +323,9 @@
313
323
  &.muted {
314
324
  opacity: 0.4;
315
325
  }
326
+ &.highlighted:not(.selected) {
327
+ background-color: rgba(38, 114, 210, .2);
328
+ }
316
329
  }
317
330
  }
318
331
  }
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div class="picker-cells">
2
+ <div class="picker-cells" :class="`picker-cells-${view}`">
3
3
  <button
4
4
  v-for="(cell, id) in cells"
5
5
  :key="cell.timestamp"
@@ -51,7 +51,7 @@ export default {
51
51
  * @return {Number}
52
52
  */
53
53
  columns() {
54
- return this.view === "day" ? 7 : 3;
54
+ if (this.view === "day") return 7;
55
55
  },
56
56
  },
57
57
  methods: {