accomadesc 0.2.4 → 0.2.6

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.
@@ -220,12 +220,18 @@
220
220
  </div>
221
221
 
222
222
  <style>
223
+ .explainer {
224
+ margin-bottom: 1rem;
225
+ }
226
+
223
227
  .wrapper {
224
228
  background-color: var(--main-bg-color);
225
229
  color: var(--main-font-color);
226
230
 
227
231
  width: 100%;
228
232
  display: flex;
233
+ flex-direction: column;
234
+ align-items: center;
229
235
 
230
236
  padding: 1rem;
231
237
  margin: 1rem;
@@ -234,7 +240,6 @@
234
240
  }
235
241
  }
236
242
  form {
237
- width: 100%;
238
243
  display: grid;
239
244
  grid-template-columns: [start] 1fr [gap-start] 0.5fr [gap-end] 3fr [end];
240
245
  row-gap: 0.5rem;
@@ -126,12 +126,18 @@
126
126
  </div>
127
127
 
128
128
  <style>
129
+ .explainer {
130
+ margin-bottom: 1rem;
131
+ }
132
+
129
133
  .wrapper {
130
134
  background-color: var(--main-bg-color);
131
135
  color: var(--main-font-color);
132
136
 
133
137
  width: 100%;
134
138
  display: flex;
139
+ flex-direction: column;
140
+ align-items: center;
135
141
 
136
142
  padding: 1rem;
137
143
  margin: 1rem;
@@ -141,9 +147,9 @@
141
147
  }
142
148
 
143
149
  form {
144
- width: 100%;
145
150
  display: flex;
146
151
  flex-direction: column;
152
+ justify-content: stretch;
147
153
  gap: 0.5rem;
148
154
  }
149
155
 
@@ -89,6 +89,7 @@
89
89
  const ldays: DayHelper[] = [];
90
90
  if (!browser) return ldays;
91
91
  if (!occupationState || occupationState.loading) return ldays;
92
+
92
93
  for (const m of months) {
93
94
  for (let d: DayNumbers = 1; d <= 31; d++) {
94
95
  const day: DayHelper = {
@@ -130,15 +131,13 @@
130
131
  }, [] as OccupationType[])
131
132
  : [],
132
133
  );
133
-
134
- let width = $state(0);
135
134
  </script>
136
135
 
137
136
  {#if !occupationState || occupationState.loading}
138
137
  <Spinner />
139
138
  {/if}
140
139
 
141
- <section class="occuplan-wrapper" bind:clientWidth={width} style="max-width: {maxWidth};">
140
+ <section class="occuplan-wrapper" style="max-width: {maxWidth};">
142
141
  <header class="occupation-plan-header">
143
142
  <div class="header-controls">
144
143
  {#if rfMonth >= minDate}
@@ -273,6 +272,7 @@
273
272
  container-type: size;
274
273
  container-name: month-label;
275
274
  padding-left: 0.3rem;
275
+ height: 100%;
276
276
  }
277
277
 
278
278
  @container month-label (min-height: 0) {
package/dist/types.d.ts CHANGED
@@ -185,7 +185,7 @@ export interface PricingShort {
185
185
  content: PricingShortContent;
186
186
  }
187
187
  export interface PricingShortContent {
188
- global?: PricingEntry;
188
+ global: PricingEntry;
189
189
  entries?: PricingRange[];
190
190
  ranges?: PricingRange[];
191
191
  staticRanges?: StaticPricingRange[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "accomadesc",
3
- "version": "0.2.4",
3
+ "version": "0.2.6",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run package",
@@ -61,5 +61,11 @@
61
61
  "leaflet": "^1.9.4",
62
62
  "luxon": "^3.5.0",
63
63
  "squirrelly": "^9.1.0"
64
+ },
65
+ "packageManager": "pnpm@10.5.2+sha512.da9dc28cd3ff40d0592188235ab25d3202add8a207afbedc682220e4a0029ffbff4562102b9e6e46b4e3f9e8bd53e6d05de48544b0c57d4b0179e22c76d1199b",
66
+ "pnpm": {
67
+ "onlyBuiltDependencies": [
68
+ "esbuild"
69
+ ]
64
70
  }
65
71
  }