@7365admin1/layer-common 3.2.2-staging.110 → 3.2.2-staging.112

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.
@@ -1,37 +1,36 @@
1
1
  <template>
2
- <v-card
3
- v-if="invitation"
4
- width="100%"
5
- rounded="lg"
6
- variant="outlined"
7
- border="thin"
8
- class="sp-invite-prompt"
9
- >
10
- <v-card-item>
11
- <template #prepend>
12
- <v-avatar color="primary" variant="tonal" size="44">
13
- <v-icon>mdi-office-building-marker-outline</v-icon>
14
- </v-avatar>
15
- </template>
16
- <v-card-title class="text-wrap sp-invite-prompt-title">
17
- {{ invitation.orgName }} has invited you to {{ invitation.siteName }}
18
- </v-card-title>
19
- <v-card-subtitle class="text-wrap">
20
- Approved by Seven365 · {{ expiryLine }}
21
- </v-card-subtitle>
22
- </v-card-item>
2
+ <!-- `AppCard` is the design's card - 14px radius, a 1px `--border` rule and
3
+ the one-pixel shadow on `--card`. The `v-card rounded="lg"
4
+ variant="outlined"` it replaced was Vuetify's own card at its own
5
+ radius and border weight. -->
6
+ <AppCard v-if="invitation" class="sp-invite-prompt">
7
+ <div class="d-flex align-start ga-3 pa-4">
8
+ <v-avatar color="primary" variant="tonal" size="44">
9
+ <v-icon>mdi-office-building-marker-outline</v-icon>
10
+ </v-avatar>
11
+ <div class="flex-grow-1">
12
+ <div class="screen-card-title">
13
+ {{ invitation.orgName }} has invited you to {{ invitation.siteName }}
14
+ </div>
15
+ <div class="screen-hint sp-invite-prompt__sub">
16
+ Approved by Seven365 · {{ expiryLine }}
17
+ </div>
18
+ </div>
19
+ </div>
23
20
 
24
- <v-card-text class="text-body-2">
21
+ <div class="px-4 sp-invite-prompt__body">
25
22
  {{ invitation.orgName }} would like your company to provide services at
26
23
  <strong>{{ invitation.siteName }}</strong
27
24
  >. If you accept, this site will be added to your list of sites.
28
- </v-card-text>
25
+ </div>
29
26
 
30
- <v-card-actions class="px-4 pb-4">
27
+ <div class="d-flex align-center ga-2 px-4 py-4">
28
+ <!-- Both stay `v-btn`s: `loading` is the only signal that an accept or a
29
+ decline is in flight, and `AppButton` has no equivalent. They take
30
+ the design's two button classes instead. -->
31
31
  <v-btn
32
32
  variant="flat"
33
- color="primary"
34
- class="text-none"
33
+ class="screen-btn-primary"
35
34
  :loading="working === 'accept'"
36
35
  :disabled="Boolean(working) || !open"
37
36
  @click="accept"
@@ -40,7 +39,7 @@
40
39
  </v-btn>
41
40
  <v-btn
42
41
  variant="outlined"
43
- class="text-none ml-2"
42
+ class="screen-btn-ghost"
44
43
  :loading="working === 'decline'"
45
44
  :disabled="Boolean(working) || !open"
46
45
  @click="decline"
@@ -48,21 +47,21 @@
48
47
  Decline
49
48
  </v-btn>
50
49
  <v-spacer />
51
- <v-chip
50
+ <!-- Was a raw `v-chip` on Vuetify's fixed `success` green, or no colour
51
+ at all for every other outcome. `StatusChip` maps the status WORD
52
+ through the shared `utils/status.ts` tones, so "complete" and
53
+ "declined" come out the same colours they do everywhere else. -->
54
+ <StatusChip
52
55
  v-if="!open"
53
- size="small"
54
- variant="tonal"
55
- class="text-none"
56
- :color="invitation.status === 'complete' ? 'success' : undefined"
57
- >
58
- {{ invitation.statusLabel }}
59
- </v-chip>
60
- </v-card-actions>
61
- </v-card>
56
+ :status="invitation.status"
57
+ :label="invitation.statusLabel"
58
+ />
59
+ </div>
60
+ </AppCard>
62
61
 
63
- <v-card v-else-if="error" width="100%" rounded="lg" variant="outlined" border="thin">
64
- <v-card-text class="text-body-2">{{ error }}</v-card-text>
65
- </v-card>
62
+ <AppCard v-else-if="error">
63
+ <div class="pa-4 sp-invite-prompt__body">{{ error }}</div>
64
+ </AppCard>
66
65
  </template>
67
66
 
68
67
  <script setup lang="ts">
@@ -142,9 +141,15 @@ await load();
142
141
  </script>
143
142
 
144
143
  <style scoped>
145
- .sp-invite-prompt-title {
146
- font-size: 1.05rem;
147
- font-weight: 600;
144
+ /* The title was a hand-set 1.05rem/600; `.screen-card-title` is the design's
145
+ 15.5px/800, so only the wrap and the leading are left here. */
146
+ .sp-invite-prompt :deep(.screen-card-title) {
147
+ display: block;
148
148
  line-height: 1.35;
149
149
  }
150
+
151
+ .sp-invite-prompt__sub,
152
+ .sp-invite-prompt__body {
153
+ font-size: var(--fs-cell);
154
+ }
150
155
  </style>
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@7365admin1/layer-common",
3
3
  "license": "MIT",
4
4
  "type": "module",
5
- "version": "3.2.2-staging.110",
5
+ "version": "3.2.2-staging.112",
6
6
  "author": "7365admin1",
7
7
  "main": "./nuxt.config.ts",
8
8
  "publishConfig": {