@stonecrop/beam 0.4.6 → 0.4.7

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.
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.48.0"
8
+ "packageVersion": "7.50.1"
9
9
  }
10
10
  ]
11
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stonecrop/beam",
3
- "version": "0.4.6",
3
+ "version": "0.4.7",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "author": {
@@ -29,30 +29,30 @@
29
29
  "src/*"
30
30
  ],
31
31
  "dependencies": {
32
- "@vueuse/core": "^12.0.0",
33
- "mqtt": "^5.10.1",
32
+ "@vueuse/core": "^12.7.0",
33
+ "mqtt": "^5.10.3",
34
34
  "onscan.js": "^1.5.2",
35
- "vue": "^3.5.11"
35
+ "vue": "^3.5.13"
36
36
  },
37
37
  "devDependencies": {
38
- "@microsoft/api-documenter": "^7.26.2",
39
- "@rushstack/heft": "^0.68.6",
38
+ "@microsoft/api-documenter": "^7.26.10",
39
+ "@rushstack/heft": "^0.68.18",
40
40
  "@typescript-eslint/eslint-plugin": "^7.14.1",
41
41
  "@typescript-eslint/parser": "^7.14.1",
42
- "@vitejs/plugin-vue": "^5.1.3",
43
- "@vitest/coverage-istanbul": "^2.1.1",
44
- "@vitest/ui": "^2.1.1",
42
+ "@vitejs/plugin-vue": "^5.2.1",
43
+ "@vitest/coverage-istanbul": "^3.0.6",
44
+ "@vitest/ui": "^3.0.6",
45
45
  "@vue/test-utils": "^2.4.6",
46
- "cypress": "^13.11.0",
46
+ "cypress": "^14.0.3",
47
47
  "eslint": "^8.40.0",
48
48
  "eslint-config-prettier": "^8.8.0",
49
49
  "eslint-plugin-vue": "^9.11.1",
50
50
  "sass": "^1.75.0",
51
51
  "typescript": "~5.6.3",
52
- "vite-plugin-lib-inject-css": "^2.1.1",
53
- "vite": "^5.4.5",
54
- "vitest": "^2.1.1",
55
- "vue-router": "^4.4.0",
52
+ "vite-plugin-lib-inject-css": "^2.2.1",
53
+ "vite": "^6.1.1",
54
+ "vitest": "^3.0.6",
55
+ "vue-router": "^4.5.0",
56
56
  "stonecrop-rig": "0.2.22"
57
57
  },
58
58
  "publishConfig": {
@@ -68,7 +68,8 @@
68
68
  "docs": "api-documenter markdown -i temp -o ../docs/beam",
69
69
  "lint": "eslint . --ext .ts,.vue",
70
70
  "preview": "vite preview",
71
- "test": "vitest",
71
+ "test": "vitest run --coverage.enabled false",
72
+ "test:watch": "vitest watch",
72
73
  "test:coverage": "vitest run --coverage",
73
74
  "test:ui": "vitest --ui"
74
75
  }
@@ -68,10 +68,18 @@ const getTotalHeight = (el: HTMLDivElement) => {
68
68
  }
69
69
 
70
70
  .beam_filters-options {
71
+ /* display: grid;
72
+ grid-template-columns: repeat(2, 1fr); */
73
+ display: flex;
74
+ flex-direction: row;
75
+ column-gap: 1rem;
71
76
  background: white;
72
- margin: 1rem;
73
77
  box-sizing: border-box;
74
- padding: 0 2rem;
75
- margin-bottom: 2rem;
78
+ padding: 0 1rem;
79
+ margin: 1rem 0;
80
+
81
+ @media (max-width: 479px) {
82
+ flex-direction: column;
83
+ }
76
84
  }
77
85
  </style>
@@ -1,28 +1,30 @@
1
1
  <template>
2
- <BeamHeading class="beam_filter-option-heading">{{ title }}</BeamHeading>
3
- <div @click="open = !open" class="beam_filter-option">
4
- <div class="beam_filter-option-select">
5
- <div class="beam_filter-arrow">
6
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 35.36 70.71">
7
- <polygon points="0 70.71 0 0 35.36 35.36 0 70.71" />
8
- </svg>
2
+ <div class="beam_filter-container">
3
+ <BeamHeading class="beam_filter-option-heading">{{ title }}</BeamHeading>
4
+ <div @click="open = !open" class="beam_filter-option">
5
+ <div class="beam_filter-option-select">
6
+ <div class="beam_filter-arrow">
7
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 35.36 70.71">
8
+ <polygon points="0 70.71 0 0 35.36 35.36 0 70.71" />
9
+ </svg>
10
+ </div>
11
+ <div class="beam_filter-label">
12
+ <label>{{ label }}</label>
13
+ </div>
9
14
  </div>
10
- <div class="beam_filter-label">
11
- <label>{{ label }}</label>
12
- </div>
13
- </div>
14
15
 
15
- <ul ref="menu" v-if="open" class="beam_filter-select-menu">
16
- <li
17
- v-for="choice in choices"
18
- :class="{ selected: label == choice.label }"
19
- :data-value="choice.value"
20
- :key="choice.value"
21
- class="beam_filter-select-option"
22
- @click="selectChoice(choice)">
23
- {{ choice.label }}
24
- </li>
25
- </ul>
16
+ <ul ref="menu" v-if="open" class="beam_filter-select-menu">
17
+ <li
18
+ v-for="choice in choices"
19
+ :class="{ selected: label == choice.label }"
20
+ :data-value="choice.value"
21
+ :key="choice.value"
22
+ class="beam_filter-select-option"
23
+ @click="selectChoice(choice)">
24
+ {{ choice.label }}
25
+ </li>
26
+ </ul>
27
+ </div>
26
28
  </div>
27
29
  </template>
28
30
 
@@ -135,4 +137,14 @@ svg {
135
137
  background: var(--sc-row-border-color);
136
138
  }
137
139
  }
140
+ .beam_filter-container {
141
+ flex-grow: 1;
142
+ max-width: 300px;
143
+ width: 50%;
144
+
145
+ @media (max-width: 479px) {
146
+ width: 100%;
147
+ max-width: 100%;
148
+ }
149
+ }
138
150
  </style>