pukaad-ui-lib 1.348.0 → 1.350.0

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/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pukaad-ui-lib",
3
3
  "configKey": "pukaadUI",
4
- "version": "1.348.0",
4
+ "version": "1.350.0",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -25,11 +25,17 @@
25
25
  <Icon
26
26
  name="lucide:clock"
27
27
  :size="20"
28
- class="text-primary shrink-0 mt-[2px]"
28
+ :class="[
29
+ 'text-primary shrink-0 mt-[2px]',
30
+ props.item.open_status === 'temporarily_closed' && 'text-destructive'
31
+ ]"
29
32
  />
30
33
  <div v-if="businessHours.length" class="flex flex-col gap-[4px] flex-1">
31
- <div class="font-body-large-prominent text-success">
32
- {{ props.item.open_status ?? "\u0E40\u0E1B\u0E34\u0E14\u0E2D\u0E22\u0E39\u0E48" }}
34
+ <div
35
+ v-if="props.item.open_status === 'temporarily_closed'"
36
+ class="font-body-large-prominent text-error"
37
+ >
38
+ ปิดชั่วคราว
33
39
  </div>
34
40
  <div
35
41
  v-for="(hour, index) in businessHours"
@@ -38,12 +44,16 @@
38
44
  >
39
45
  <span>{{ hour.day }}</span>
40
46
  <div class="flex flex-col items-end">
41
- <span v-for="(line, li) in hour.time_lines" :key="li">{{ line }}</span>
47
+ <span v-for="(line, li) in hour.time_lines" :key="li">{{
48
+ line
49
+ }}</span>
42
50
  </div>
43
51
  </div>
44
52
 
45
53
  <template v-if="upcomingSpecialDays.length">
46
- <div class="font-body-large-prominent text-warning">วันทำการพิเศษ</div>
54
+ <div class="font-body-large-prominent text-warning">
55
+ วันทำการพิเศษ
56
+ </div>
47
57
  <div
48
58
  v-for="(special, index) in upcomingSpecialDays"
49
59
  :key="index"
@@ -51,11 +61,18 @@
51
61
  >
52
62
  <span>{{ special.date_label }}</span>
53
63
  <div class="flex flex-col items-end">
54
- <span v-for="(line, li) in special.time_lines" :key="li">{{ line }}</span>
64
+ <span v-for="(line, li) in special.time_lines" :key="li">{{
65
+ line
66
+ }}</span>
55
67
  </div>
56
68
  </div>
57
69
  </template>
58
70
  </div>
71
+ <div v-else-if="props.item.open_status === 'temporarily_closed'">
72
+ <div class="font-body-large-prominent text-destructive">
73
+ ปิดชั่วคราว
74
+ </div>
75
+ </div>
59
76
  <div v-else class="text-cloud">ไม่มีข้อมูลเวลาทำการ</div>
60
77
  </div>
61
78
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pukaad-ui-lib",
3
- "version": "1.348.0",
3
+ "version": "1.350.0",
4
4
  "description": "pukaad-ui for MeMSG",
5
5
  "repository": {
6
6
  "type": "git",