sa2kit 1.6.52 → 1.6.57
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/booking-BXtkG2ns.d.mts +386 -0
- package/dist/booking-BXtkG2ns.d.ts +386 -0
- package/dist/bookingAdminService-B2QDjSHJ.d.ts +193 -0
- package/dist/bookingAdminService-Dmg7dC6V.d.mts +193 -0
- package/dist/cart-CcZ7rQyG.d.mts +176 -0
- package/dist/cart-D3o67Q3H.d.ts +176 -0
- package/dist/chunk-53WLQ22S.js +119 -0
- package/dist/chunk-53WLQ22S.js.map +1 -0
- package/dist/{chunk-SHY424RZ.mjs → chunk-6NMIKAE7.mjs} +3 -3
- package/dist/{chunk-SHY424RZ.mjs.map → chunk-6NMIKAE7.mjs.map} +1 -1
- package/dist/chunk-ANKVXRPY.mjs +30 -0
- package/dist/chunk-ANKVXRPY.mjs.map +1 -0
- package/dist/{chunk-IZOIVYOW.js → chunk-DENROXAE.js} +2 -2
- package/dist/{chunk-IZOIVYOW.js.map → chunk-DENROXAE.js.map} +1 -1
- package/dist/chunk-HYZ5C6FY.mjs +3522 -0
- package/dist/chunk-HYZ5C6FY.mjs.map +1 -0
- package/dist/{chunk-7JN25DJB.js → chunk-IPY26RQH.js} +11 -11
- package/dist/{chunk-7JN25DJB.js.map → chunk-IPY26RQH.js.map} +1 -1
- package/dist/{chunk-GFVAIT6Y.mjs → chunk-MFG2Y6UR.mjs} +2 -2
- package/dist/{chunk-GFVAIT6Y.mjs.map → chunk-MFG2Y6UR.mjs.map} +1 -1
- package/dist/chunk-TJZDPOO7.js +34 -0
- package/dist/chunk-TJZDPOO7.js.map +1 -0
- package/dist/chunk-U7AQC2Z7.js +3542 -0
- package/dist/chunk-U7AQC2Z7.js.map +1 -0
- package/dist/chunk-UR5TU4MW.mjs +113 -0
- package/dist/chunk-UR5TU4MW.mjs.map +1 -0
- package/dist/chunk-V6BXO6ZS.mjs +6107 -0
- package/dist/chunk-V6BXO6ZS.mjs.map +1 -0
- package/dist/chunk-W2NCOORK.js +6138 -0
- package/dist/chunk-W2NCOORK.js.map +1 -0
- package/dist/showmasterpiece/db/index.d.mts +3028 -0
- package/dist/showmasterpiece/db/index.d.ts +3028 -0
- package/dist/showmasterpiece/db/index.js +179 -0
- package/dist/showmasterpiece/db/index.js.map +1 -0
- package/dist/showmasterpiece/db/index.mjs +6 -0
- package/dist/showmasterpiece/db/index.mjs.map +1 -0
- package/dist/showmasterpiece/index.d.mts +10 -1729
- package/dist/showmasterpiece/index.d.ts +10 -1729
- package/dist/showmasterpiece/index.js +435 -9654
- package/dist/showmasterpiece/index.js.map +1 -1
- package/dist/showmasterpiece/index.mjs +9 -9628
- package/dist/showmasterpiece/index.mjs.map +1 -1
- package/dist/showmasterpiece/logic/index.d.mts +372 -0
- package/dist/showmasterpiece/logic/index.d.ts +372 -0
- package/dist/showmasterpiece/logic/index.js +91 -0
- package/dist/showmasterpiece/logic/index.js.map +1 -0
- package/dist/showmasterpiece/logic/index.mjs +6 -0
- package/dist/showmasterpiece/logic/index.mjs.map +1 -0
- package/dist/showmasterpiece/server/index.d.mts +3 -2704
- package/dist/showmasterpiece/server/index.d.ts +3 -2704
- package/dist/showmasterpiece/server/index.js +43 -43
- package/dist/showmasterpiece/server/index.mjs +2 -2
- package/dist/showmasterpiece/ui/miniapp/index.d.mts +86 -0
- package/dist/showmasterpiece/ui/miniapp/index.d.ts +86 -0
- package/dist/showmasterpiece/ui/miniapp/index.js +196 -0
- package/dist/showmasterpiece/ui/miniapp/index.js.map +1 -0
- package/dist/showmasterpiece/ui/miniapp/index.mjs +183 -0
- package/dist/showmasterpiece/ui/miniapp/index.mjs.map +1 -0
- package/dist/showmasterpiece/ui/web/index.d.mts +600 -0
- package/dist/showmasterpiece/ui/web/index.d.ts +600 -0
- package/dist/showmasterpiece/ui/web/index.js +131 -0
- package/dist/showmasterpiece/ui/web/index.js.map +1 -0
- package/dist/showmasterpiece/ui/web/index.mjs +14 -0
- package/dist/showmasterpiece/ui/web/index.mjs.map +1 -0
- package/dist/universalFile/server/index.js +5877 -283
- package/dist/universalFile/server/index.js.map +1 -1
- package/dist/universalFile/server/index.mjs +5795 -4
- package/dist/universalFile/server/index.mjs.map +1 -1
- package/package.json +26 -1
- package/dist/chunk-PKKIDPXE.mjs +0 -5797
- package/dist/chunk-PKKIDPXE.mjs.map +0 -1
- package/dist/chunk-TSTBLX6B.js +0 -5888
- package/dist/chunk-TSTBLX6B.js.map +0 -1
- package/dist/popupConfig-BznThU1O.d.mts +0 -330
- package/dist/popupConfig-BznThU1O.d.ts +0 -330
- package/dist/showmasterpiece/migration/index.d.mts +0 -120
- package/dist/showmasterpiece/migration/index.d.ts +0 -120
- package/dist/showmasterpiece/migration/index.js +0 -595
- package/dist/showmasterpiece/migration/index.js.map +0 -1
- package/dist/showmasterpiece/migration/index.mjs +0 -589
- package/dist/showmasterpiece/migration/index.mjs.map +0 -1
- package/dist/showmasterpiece/scripts/index.d.mts +0 -28
- package/dist/showmasterpiece/scripts/index.d.ts +0 -28
- package/dist/showmasterpiece/scripts/index.js +0 -327
- package/dist/showmasterpiece/scripts/index.js.map +0 -1
- package/dist/showmasterpiece/scripts/index.mjs +0 -325
- package/dist/showmasterpiece/scripts/index.mjs.map +0 -1
|
@@ -1,175 +1,175 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkIPY26RQH_js = require('../../chunk-IPY26RQH.js');
|
|
4
4
|
var chunkXYQMAF7H_js = require('../../chunk-XYQMAF7H.js');
|
|
5
|
-
require('../../chunk-
|
|
5
|
+
require('../../chunk-DENROXAE.js');
|
|
6
6
|
require('../../chunk-Z6ZWNWWR.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
Object.defineProperty(exports, "BookingCommandError", {
|
|
11
11
|
enumerable: true,
|
|
12
|
-
get: function () { return
|
|
12
|
+
get: function () { return chunkIPY26RQH_js.BookingCommandError; }
|
|
13
13
|
});
|
|
14
14
|
Object.defineProperty(exports, "BookingCommandService", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunkIPY26RQH_js.BookingCommandService; }
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "BookingQueryService", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunkIPY26RQH_js.BookingQueryService; }
|
|
21
21
|
});
|
|
22
22
|
Object.defineProperty(exports, "CategoriesDbService", {
|
|
23
23
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunkIPY26RQH_js.CategoriesDbService; }
|
|
25
25
|
});
|
|
26
26
|
Object.defineProperty(exports, "MasterpiecesConfigDbService", {
|
|
27
27
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunkIPY26RQH_js.MasterpiecesConfigDbService; }
|
|
29
29
|
});
|
|
30
30
|
Object.defineProperty(exports, "PopupConfigService", {
|
|
31
31
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunkIPY26RQH_js.PopupConfigService; }
|
|
33
33
|
});
|
|
34
34
|
Object.defineProperty(exports, "ShowmasterConfigService", {
|
|
35
35
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunkIPY26RQH_js.ShowmasterConfigService; }
|
|
37
37
|
});
|
|
38
38
|
Object.defineProperty(exports, "TagsDbService", {
|
|
39
39
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunkIPY26RQH_js.TagsDbService; }
|
|
41
41
|
});
|
|
42
42
|
Object.defineProperty(exports, "artworksDbService", {
|
|
43
43
|
enumerable: true,
|
|
44
|
-
get: function () { return
|
|
44
|
+
get: function () { return chunkIPY26RQH_js.artworksDbService; }
|
|
45
45
|
});
|
|
46
46
|
Object.defineProperty(exports, "categoriesDbService", {
|
|
47
47
|
enumerable: true,
|
|
48
|
-
get: function () { return
|
|
48
|
+
get: function () { return chunkIPY26RQH_js.categoriesDbService; }
|
|
49
49
|
});
|
|
50
50
|
Object.defineProperty(exports, "collectionsDbService", {
|
|
51
51
|
enumerable: true,
|
|
52
|
-
get: function () { return
|
|
52
|
+
get: function () { return chunkIPY26RQH_js.collectionsDbService; }
|
|
53
53
|
});
|
|
54
54
|
Object.defineProperty(exports, "comicUniverseArtworks", {
|
|
55
55
|
enumerable: true,
|
|
56
|
-
get: function () { return
|
|
56
|
+
get: function () { return chunkIPY26RQH_js.comicUniverseArtworks; }
|
|
57
57
|
});
|
|
58
58
|
Object.defineProperty(exports, "comicUniverseArtworksRelations", {
|
|
59
59
|
enumerable: true,
|
|
60
|
-
get: function () { return
|
|
60
|
+
get: function () { return chunkIPY26RQH_js.comicUniverseArtworksRelations; }
|
|
61
61
|
});
|
|
62
62
|
Object.defineProperty(exports, "comicUniverseBookings", {
|
|
63
63
|
enumerable: true,
|
|
64
|
-
get: function () { return
|
|
64
|
+
get: function () { return chunkIPY26RQH_js.comicUniverseBookings; }
|
|
65
65
|
});
|
|
66
66
|
Object.defineProperty(exports, "comicUniverseBookingsRelations", {
|
|
67
67
|
enumerable: true,
|
|
68
|
-
get: function () { return
|
|
68
|
+
get: function () { return chunkIPY26RQH_js.comicUniverseBookingsRelations; }
|
|
69
69
|
});
|
|
70
70
|
Object.defineProperty(exports, "comicUniverseCategories", {
|
|
71
71
|
enumerable: true,
|
|
72
|
-
get: function () { return
|
|
72
|
+
get: function () { return chunkIPY26RQH_js.comicUniverseCategories; }
|
|
73
73
|
});
|
|
74
74
|
Object.defineProperty(exports, "comicUniverseCategoriesRelations", {
|
|
75
75
|
enumerable: true,
|
|
76
|
-
get: function () { return
|
|
76
|
+
get: function () { return chunkIPY26RQH_js.comicUniverseCategoriesRelations; }
|
|
77
77
|
});
|
|
78
78
|
Object.defineProperty(exports, "comicUniverseCollectionTags", {
|
|
79
79
|
enumerable: true,
|
|
80
|
-
get: function () { return
|
|
80
|
+
get: function () { return chunkIPY26RQH_js.comicUniverseCollectionTags; }
|
|
81
81
|
});
|
|
82
82
|
Object.defineProperty(exports, "comicUniverseCollectionTagsRelations", {
|
|
83
83
|
enumerable: true,
|
|
84
|
-
get: function () { return
|
|
84
|
+
get: function () { return chunkIPY26RQH_js.comicUniverseCollectionTagsRelations; }
|
|
85
85
|
});
|
|
86
86
|
Object.defineProperty(exports, "comicUniverseCollections", {
|
|
87
87
|
enumerable: true,
|
|
88
|
-
get: function () { return
|
|
88
|
+
get: function () { return chunkIPY26RQH_js.comicUniverseCollections; }
|
|
89
89
|
});
|
|
90
90
|
Object.defineProperty(exports, "comicUniverseCollectionsRelations", {
|
|
91
91
|
enumerable: true,
|
|
92
|
-
get: function () { return
|
|
92
|
+
get: function () { return chunkIPY26RQH_js.comicUniverseCollectionsRelations; }
|
|
93
93
|
});
|
|
94
94
|
Object.defineProperty(exports, "comicUniverseConfigs", {
|
|
95
95
|
enumerable: true,
|
|
96
|
-
get: function () { return
|
|
96
|
+
get: function () { return chunkIPY26RQH_js.comicUniverseConfigs; }
|
|
97
97
|
});
|
|
98
98
|
Object.defineProperty(exports, "comicUniverseConfigsRelations", {
|
|
99
99
|
enumerable: true,
|
|
100
|
-
get: function () { return
|
|
100
|
+
get: function () { return chunkIPY26RQH_js.comicUniverseConfigsRelations; }
|
|
101
101
|
});
|
|
102
102
|
Object.defineProperty(exports, "comicUniverseTags", {
|
|
103
103
|
enumerable: true,
|
|
104
|
-
get: function () { return
|
|
104
|
+
get: function () { return chunkIPY26RQH_js.comicUniverseTags; }
|
|
105
105
|
});
|
|
106
106
|
Object.defineProperty(exports, "comicUniverseTagsRelations", {
|
|
107
107
|
enumerable: true,
|
|
108
|
-
get: function () { return
|
|
108
|
+
get: function () { return chunkIPY26RQH_js.comicUniverseTagsRelations; }
|
|
109
109
|
});
|
|
110
110
|
Object.defineProperty(exports, "createBookingCommandService", {
|
|
111
111
|
enumerable: true,
|
|
112
|
-
get: function () { return
|
|
112
|
+
get: function () { return chunkIPY26RQH_js.createBookingCommandService; }
|
|
113
113
|
});
|
|
114
114
|
Object.defineProperty(exports, "createBookingQueryService", {
|
|
115
115
|
enumerable: true,
|
|
116
|
-
get: function () { return
|
|
116
|
+
get: function () { return chunkIPY26RQH_js.createBookingQueryService; }
|
|
117
117
|
});
|
|
118
118
|
Object.defineProperty(exports, "createCategoriesDbService", {
|
|
119
119
|
enumerable: true,
|
|
120
|
-
get: function () { return
|
|
120
|
+
get: function () { return chunkIPY26RQH_js.createCategoriesDbService; }
|
|
121
121
|
});
|
|
122
122
|
Object.defineProperty(exports, "createMasterpiecesConfigDbService", {
|
|
123
123
|
enumerable: true,
|
|
124
|
-
get: function () { return
|
|
124
|
+
get: function () { return chunkIPY26RQH_js.createMasterpiecesConfigDbService; }
|
|
125
125
|
});
|
|
126
126
|
Object.defineProperty(exports, "createPopupConfigService", {
|
|
127
127
|
enumerable: true,
|
|
128
|
-
get: function () { return
|
|
128
|
+
get: function () { return chunkIPY26RQH_js.createPopupConfigService; }
|
|
129
129
|
});
|
|
130
130
|
Object.defineProperty(exports, "createShowmasterConfigService", {
|
|
131
131
|
enumerable: true,
|
|
132
|
-
get: function () { return
|
|
132
|
+
get: function () { return chunkIPY26RQH_js.createShowmasterConfigService; }
|
|
133
133
|
});
|
|
134
134
|
Object.defineProperty(exports, "createTagsDbService", {
|
|
135
135
|
enumerable: true,
|
|
136
|
-
get: function () { return
|
|
136
|
+
get: function () { return chunkIPY26RQH_js.createTagsDbService; }
|
|
137
137
|
});
|
|
138
138
|
Object.defineProperty(exports, "initializeShowmasterpieceDb", {
|
|
139
139
|
enumerable: true,
|
|
140
|
-
get: function () { return
|
|
140
|
+
get: function () { return chunkIPY26RQH_js.initializeShowmasterpieceDb; }
|
|
141
141
|
});
|
|
142
142
|
Object.defineProperty(exports, "masterpiecesConfigDbService", {
|
|
143
143
|
enumerable: true,
|
|
144
|
-
get: function () { return
|
|
144
|
+
get: function () { return chunkIPY26RQH_js.masterpiecesConfigDbService; }
|
|
145
145
|
});
|
|
146
146
|
Object.defineProperty(exports, "popupConfigs", {
|
|
147
147
|
enumerable: true,
|
|
148
|
-
get: function () { return
|
|
148
|
+
get: function () { return chunkIPY26RQH_js.popupConfigs; }
|
|
149
149
|
});
|
|
150
150
|
Object.defineProperty(exports, "popupConfigsRelations", {
|
|
151
151
|
enumerable: true,
|
|
152
|
-
get: function () { return
|
|
152
|
+
get: function () { return chunkIPY26RQH_js.popupConfigsRelations; }
|
|
153
153
|
});
|
|
154
154
|
Object.defineProperty(exports, "showmasterConfigCategories", {
|
|
155
155
|
enumerable: true,
|
|
156
|
-
get: function () { return
|
|
156
|
+
get: function () { return chunkIPY26RQH_js.showmasterConfigCategories; }
|
|
157
157
|
});
|
|
158
158
|
Object.defineProperty(exports, "showmasterConfigHistory", {
|
|
159
159
|
enumerable: true,
|
|
160
|
-
get: function () { return
|
|
160
|
+
get: function () { return chunkIPY26RQH_js.showmasterConfigHistory; }
|
|
161
161
|
});
|
|
162
162
|
Object.defineProperty(exports, "showmasterConfigItems", {
|
|
163
163
|
enumerable: true,
|
|
164
|
-
get: function () { return
|
|
164
|
+
get: function () { return chunkIPY26RQH_js.showmasterConfigItems; }
|
|
165
165
|
});
|
|
166
166
|
Object.defineProperty(exports, "showmasterConfigPermissions", {
|
|
167
167
|
enumerable: true,
|
|
168
|
-
get: function () { return
|
|
168
|
+
get: function () { return chunkIPY26RQH_js.showmasterConfigPermissions; }
|
|
169
169
|
});
|
|
170
170
|
Object.defineProperty(exports, "tagsDbService", {
|
|
171
171
|
enumerable: true,
|
|
172
|
-
get: function () { return
|
|
172
|
+
get: function () { return chunkIPY26RQH_js.tagsDbService; }
|
|
173
173
|
});
|
|
174
174
|
Object.defineProperty(exports, "getShowMasterpieceFileConfig", {
|
|
175
175
|
enumerable: true,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { BookingCommandError, BookingCommandService, BookingQueryService, CategoriesDbService, MasterpiecesConfigDbService, PopupConfigService, ShowmasterConfigService, TagsDbService, artworksDbService, categoriesDbService, collectionsDbService, comicUniverseArtworks, comicUniverseArtworksRelations, comicUniverseBookings, comicUniverseBookingsRelations, comicUniverseCategories, comicUniverseCategoriesRelations, comicUniverseCollectionTags, comicUniverseCollectionTagsRelations, comicUniverseCollections, comicUniverseCollectionsRelations, comicUniverseConfigs, comicUniverseConfigsRelations, comicUniverseTags, comicUniverseTagsRelations, createBookingCommandService, createBookingQueryService, createCategoriesDbService, createMasterpiecesConfigDbService, createPopupConfigService, createShowmasterConfigService, createTagsDbService, initializeShowmasterpieceDb, masterpiecesConfigDbService, popupConfigs, popupConfigsRelations, showmasterConfigCategories, showmasterConfigHistory, showmasterConfigItems, showmasterConfigPermissions, tagsDbService } from '../../chunk-
|
|
1
|
+
export { BookingCommandError, BookingCommandService, BookingQueryService, CategoriesDbService, MasterpiecesConfigDbService, PopupConfigService, ShowmasterConfigService, TagsDbService, artworksDbService, categoriesDbService, collectionsDbService, comicUniverseArtworks, comicUniverseArtworksRelations, comicUniverseBookings, comicUniverseBookingsRelations, comicUniverseCategories, comicUniverseCategoriesRelations, comicUniverseCollectionTags, comicUniverseCollectionTagsRelations, comicUniverseCollections, comicUniverseCollectionsRelations, comicUniverseConfigs, comicUniverseConfigsRelations, comicUniverseTags, comicUniverseTagsRelations, createBookingCommandService, createBookingQueryService, createCategoriesDbService, createMasterpiecesConfigDbService, createPopupConfigService, createShowmasterConfigService, createTagsDbService, initializeShowmasterpieceDb, masterpiecesConfigDbService, popupConfigs, popupConfigsRelations, showmasterConfigCategories, showmasterConfigHistory, showmasterConfigItems, showmasterConfigPermissions, tagsDbService } from '../../chunk-6NMIKAE7.mjs';
|
|
2
2
|
export { getShowMasterpieceFileConfig } from '../../chunk-PAX4S7QM.mjs';
|
|
3
|
-
import '../../chunk-
|
|
3
|
+
import '../../chunk-MFG2Y6UR.mjs';
|
|
4
4
|
import '../../chunk-WMJKH4XE.mjs';
|
|
5
5
|
//# sourceMappingURL=index.mjs.map
|
|
6
6
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { A as ArtCollection, C as CollectionCategoryType, a as Booking } from '../../../booking-BXtkG2ns.mjs';
|
|
3
|
+
import { C as CartItem } from '../../../cart-CcZ7rQyG.mjs';
|
|
4
|
+
|
|
5
|
+
type HeaderAction = {
|
|
6
|
+
label: string;
|
|
7
|
+
onClick: () => void;
|
|
8
|
+
variant?: 'primary' | 'ghost';
|
|
9
|
+
};
|
|
10
|
+
type HeaderCta = {
|
|
11
|
+
label: string;
|
|
12
|
+
onClick: () => void;
|
|
13
|
+
};
|
|
14
|
+
interface PageHeaderProps {
|
|
15
|
+
title: string;
|
|
16
|
+
subtitle?: string;
|
|
17
|
+
actions?: HeaderAction[];
|
|
18
|
+
cta?: HeaderCta;
|
|
19
|
+
}
|
|
20
|
+
declare const PageHeader: React__default.FC<PageHeaderProps>;
|
|
21
|
+
|
|
22
|
+
type CategoryTabItem<T extends string = string> = {
|
|
23
|
+
value: T;
|
|
24
|
+
label: string;
|
|
25
|
+
};
|
|
26
|
+
interface CategoryTabsProps<T extends string = string> {
|
|
27
|
+
items: CategoryTabItem<T>[];
|
|
28
|
+
activeValue: T;
|
|
29
|
+
onChange: (value: T) => void;
|
|
30
|
+
}
|
|
31
|
+
declare function CategoryTabs<T extends string = string>({ items, activeValue, onChange }: CategoryTabsProps<T>): React__default.JSX.Element;
|
|
32
|
+
|
|
33
|
+
type ActionButton = {
|
|
34
|
+
label: string;
|
|
35
|
+
onClick: () => void;
|
|
36
|
+
variant?: 'primary' | 'ghost';
|
|
37
|
+
};
|
|
38
|
+
type CollectionLike = Pick<ArtCollection, 'id' | 'title' | 'number' | 'coverImage' | 'price'> & {
|
|
39
|
+
description?: string;
|
|
40
|
+
category?: CollectionCategoryType;
|
|
41
|
+
};
|
|
42
|
+
interface CollectionCardProps {
|
|
43
|
+
collection: CollectionLike;
|
|
44
|
+
actions?: ActionButton[];
|
|
45
|
+
showCategory?: boolean;
|
|
46
|
+
showDescription?: boolean;
|
|
47
|
+
variant?: 'default' | 'compact';
|
|
48
|
+
}
|
|
49
|
+
declare const CollectionCard: React__default.FC<CollectionCardProps>;
|
|
50
|
+
|
|
51
|
+
interface BookingStepsProps {
|
|
52
|
+
step: 'select' | 'form';
|
|
53
|
+
}
|
|
54
|
+
declare const BookingSteps: React__default.FC<BookingStepsProps>;
|
|
55
|
+
|
|
56
|
+
interface BaseFieldProps {
|
|
57
|
+
label: string;
|
|
58
|
+
value: string;
|
|
59
|
+
placeholder?: string;
|
|
60
|
+
disabled?: boolean;
|
|
61
|
+
error?: string;
|
|
62
|
+
type?: 'text' | 'number';
|
|
63
|
+
}
|
|
64
|
+
interface FormInputProps extends BaseFieldProps {
|
|
65
|
+
onChange: (value: string) => void;
|
|
66
|
+
}
|
|
67
|
+
interface FormTextareaProps extends BaseFieldProps {
|
|
68
|
+
onChange: (value: string) => void;
|
|
69
|
+
}
|
|
70
|
+
declare const FormInput: React__default.FC<FormInputProps>;
|
|
71
|
+
declare const FormTextarea: React__default.FC<FormTextareaProps>;
|
|
72
|
+
|
|
73
|
+
interface CartItemCardProps {
|
|
74
|
+
item: CartItem;
|
|
75
|
+
onIncrease: () => void;
|
|
76
|
+
onDecrease: () => void;
|
|
77
|
+
onRemove: () => void;
|
|
78
|
+
}
|
|
79
|
+
declare const CartItemCard: React__default.FC<CartItemCardProps>;
|
|
80
|
+
|
|
81
|
+
interface HistoryRecordCardProps {
|
|
82
|
+
record: Booking;
|
|
83
|
+
}
|
|
84
|
+
declare const HistoryRecordCard: React__default.FC<HistoryRecordCardProps>;
|
|
85
|
+
|
|
86
|
+
export { BookingSteps, CartItemCard, CategoryTabs, FormInput, FormTextarea, HistoryRecordCard, CollectionCard as MiniappCollectionCard, PageHeader };
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { A as ArtCollection, C as CollectionCategoryType, a as Booking } from '../../../booking-BXtkG2ns.js';
|
|
3
|
+
import { C as CartItem } from '../../../cart-D3o67Q3H.js';
|
|
4
|
+
|
|
5
|
+
type HeaderAction = {
|
|
6
|
+
label: string;
|
|
7
|
+
onClick: () => void;
|
|
8
|
+
variant?: 'primary' | 'ghost';
|
|
9
|
+
};
|
|
10
|
+
type HeaderCta = {
|
|
11
|
+
label: string;
|
|
12
|
+
onClick: () => void;
|
|
13
|
+
};
|
|
14
|
+
interface PageHeaderProps {
|
|
15
|
+
title: string;
|
|
16
|
+
subtitle?: string;
|
|
17
|
+
actions?: HeaderAction[];
|
|
18
|
+
cta?: HeaderCta;
|
|
19
|
+
}
|
|
20
|
+
declare const PageHeader: React__default.FC<PageHeaderProps>;
|
|
21
|
+
|
|
22
|
+
type CategoryTabItem<T extends string = string> = {
|
|
23
|
+
value: T;
|
|
24
|
+
label: string;
|
|
25
|
+
};
|
|
26
|
+
interface CategoryTabsProps<T extends string = string> {
|
|
27
|
+
items: CategoryTabItem<T>[];
|
|
28
|
+
activeValue: T;
|
|
29
|
+
onChange: (value: T) => void;
|
|
30
|
+
}
|
|
31
|
+
declare function CategoryTabs<T extends string = string>({ items, activeValue, onChange }: CategoryTabsProps<T>): React__default.JSX.Element;
|
|
32
|
+
|
|
33
|
+
type ActionButton = {
|
|
34
|
+
label: string;
|
|
35
|
+
onClick: () => void;
|
|
36
|
+
variant?: 'primary' | 'ghost';
|
|
37
|
+
};
|
|
38
|
+
type CollectionLike = Pick<ArtCollection, 'id' | 'title' | 'number' | 'coverImage' | 'price'> & {
|
|
39
|
+
description?: string;
|
|
40
|
+
category?: CollectionCategoryType;
|
|
41
|
+
};
|
|
42
|
+
interface CollectionCardProps {
|
|
43
|
+
collection: CollectionLike;
|
|
44
|
+
actions?: ActionButton[];
|
|
45
|
+
showCategory?: boolean;
|
|
46
|
+
showDescription?: boolean;
|
|
47
|
+
variant?: 'default' | 'compact';
|
|
48
|
+
}
|
|
49
|
+
declare const CollectionCard: React__default.FC<CollectionCardProps>;
|
|
50
|
+
|
|
51
|
+
interface BookingStepsProps {
|
|
52
|
+
step: 'select' | 'form';
|
|
53
|
+
}
|
|
54
|
+
declare const BookingSteps: React__default.FC<BookingStepsProps>;
|
|
55
|
+
|
|
56
|
+
interface BaseFieldProps {
|
|
57
|
+
label: string;
|
|
58
|
+
value: string;
|
|
59
|
+
placeholder?: string;
|
|
60
|
+
disabled?: boolean;
|
|
61
|
+
error?: string;
|
|
62
|
+
type?: 'text' | 'number';
|
|
63
|
+
}
|
|
64
|
+
interface FormInputProps extends BaseFieldProps {
|
|
65
|
+
onChange: (value: string) => void;
|
|
66
|
+
}
|
|
67
|
+
interface FormTextareaProps extends BaseFieldProps {
|
|
68
|
+
onChange: (value: string) => void;
|
|
69
|
+
}
|
|
70
|
+
declare const FormInput: React__default.FC<FormInputProps>;
|
|
71
|
+
declare const FormTextarea: React__default.FC<FormTextareaProps>;
|
|
72
|
+
|
|
73
|
+
interface CartItemCardProps {
|
|
74
|
+
item: CartItem;
|
|
75
|
+
onIncrease: () => void;
|
|
76
|
+
onDecrease: () => void;
|
|
77
|
+
onRemove: () => void;
|
|
78
|
+
}
|
|
79
|
+
declare const CartItemCard: React__default.FC<CartItemCardProps>;
|
|
80
|
+
|
|
81
|
+
interface HistoryRecordCardProps {
|
|
82
|
+
record: Booking;
|
|
83
|
+
}
|
|
84
|
+
declare const HistoryRecordCard: React__default.FC<HistoryRecordCardProps>;
|
|
85
|
+
|
|
86
|
+
export { BookingSteps, CartItemCard, CategoryTabs, FormInput, FormTextarea, HistoryRecordCard, CollectionCard as MiniappCollectionCard, PageHeader };
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkTJZDPOO7_js = require('../../../chunk-TJZDPOO7.js');
|
|
4
|
+
require('../../../chunk-Z6ZWNWWR.js');
|
|
5
|
+
var React3 = require('react');
|
|
6
|
+
var components = require('@tarojs/components');
|
|
7
|
+
|
|
8
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
|
+
|
|
10
|
+
var React3__default = /*#__PURE__*/_interopDefault(React3);
|
|
11
|
+
|
|
12
|
+
var PageHeader = ({ title, subtitle, actions, cta }) => {
|
|
13
|
+
return /* @__PURE__ */ React3__default.default.createElement(components.View, { className: "mx-4 mt-6 rounded-3xl bg-white px-5 py-5 shadow-xl" }, /* @__PURE__ */ React3__default.default.createElement(components.View, { className: "flex items-start justify-between" }, /* @__PURE__ */ React3__default.default.createElement(components.View, null, /* @__PURE__ */ React3__default.default.createElement(components.Text, { className: "text-xl font-semibold" }, title), subtitle && /* @__PURE__ */ React3__default.default.createElement(components.Text, { className: "mt-2 block text-sm text-slate-500" }, subtitle)), actions && actions.length > 0 && /* @__PURE__ */ React3__default.default.createElement(components.View, { className: "flex flex-col items-end gap-2" }, actions.map((action) => /* @__PURE__ */ React3__default.default.createElement(
|
|
14
|
+
components.Button,
|
|
15
|
+
{
|
|
16
|
+
key: action.label,
|
|
17
|
+
className: action.variant === "ghost" ? "h-8 rounded-full border border-slate-200 bg-white px-4 text-xs font-semibold text-slate-700" : "h-8 rounded-full bg-slate-900 px-4 text-xs font-semibold text-white",
|
|
18
|
+
onClick: action.onClick
|
|
19
|
+
},
|
|
20
|
+
action.label
|
|
21
|
+
)))), cta && /* @__PURE__ */ React3__default.default.createElement(
|
|
22
|
+
components.Button,
|
|
23
|
+
{
|
|
24
|
+
className: "mt-4 h-10 w-32 rounded-full bg-slate-900 text-sm font-semibold text-white",
|
|
25
|
+
onClick: cta.onClick
|
|
26
|
+
},
|
|
27
|
+
cta.label
|
|
28
|
+
));
|
|
29
|
+
};
|
|
30
|
+
var PageHeader_default = PageHeader;
|
|
31
|
+
function CategoryTabs({
|
|
32
|
+
items,
|
|
33
|
+
activeValue,
|
|
34
|
+
onChange
|
|
35
|
+
}) {
|
|
36
|
+
return /* @__PURE__ */ React3__default.default.createElement(components.ScrollView, { scrollX: true, className: "mt-3", showScrollbar: false }, /* @__PURE__ */ React3__default.default.createElement(components.View, { className: "flex gap-2 pb-2" }, items.map((item) => /* @__PURE__ */ React3__default.default.createElement(
|
|
37
|
+
components.View,
|
|
38
|
+
{
|
|
39
|
+
key: item.value,
|
|
40
|
+
className: `rounded-full px-4 py-2 text-xs ${activeValue === item.value ? "bg-slate-900 text-white" : "bg-white text-slate-600 shadow-md"}`,
|
|
41
|
+
onClick: () => onChange(item.value)
|
|
42
|
+
},
|
|
43
|
+
/* @__PURE__ */ React3__default.default.createElement(components.Text, null, item.label)
|
|
44
|
+
))));
|
|
45
|
+
}
|
|
46
|
+
var CategoryTabs_default = CategoryTabs;
|
|
47
|
+
var CollectionCard = ({
|
|
48
|
+
collection,
|
|
49
|
+
actions,
|
|
50
|
+
showCategory = true,
|
|
51
|
+
showDescription = true,
|
|
52
|
+
variant = "default"
|
|
53
|
+
}) => {
|
|
54
|
+
const isCompact = variant === "compact";
|
|
55
|
+
return /* @__PURE__ */ React3__default.default.createElement(components.View, { className: "overflow-hidden rounded-3xl bg-white shadow-xl" }, collection.coverImage ? /* @__PURE__ */ React3__default.default.createElement(
|
|
56
|
+
components.Image,
|
|
57
|
+
{
|
|
58
|
+
src: collection.coverImage,
|
|
59
|
+
mode: "aspectFill",
|
|
60
|
+
className: isCompact ? "h-24 w-24 rounded-2xl" : "h-44 w-full"
|
|
61
|
+
}
|
|
62
|
+
) : /* @__PURE__ */ React3__default.default.createElement(
|
|
63
|
+
components.View,
|
|
64
|
+
{
|
|
65
|
+
className: isCompact ? "flex h-24 w-24 items-center justify-center rounded-2xl bg-slate-200 text-xs text-slate-500" : "flex h-44 items-center justify-center bg-slate-200 text-sm text-slate-500"
|
|
66
|
+
},
|
|
67
|
+
"\u6682\u65E0\u56FE\u7247"
|
|
68
|
+
), /* @__PURE__ */ React3__default.default.createElement(components.View, { className: isCompact ? "flex-1 px-3 py-1" : "px-4 py-4" }, /* @__PURE__ */ React3__default.default.createElement(components.View, { className: "flex items-center justify-between gap-2" }, /* @__PURE__ */ React3__default.default.createElement(components.Text, { className: isCompact ? "text-sm font-semibold" : "text-base font-semibold" }, collection.title), showCategory && !isCompact && /* @__PURE__ */ React3__default.default.createElement(components.Text, { className: "rounded-full bg-slate-100 px-3 py-1 text-xs text-slate-600" }, chunkTJZDPOO7_js.getCategoryLabel(collection.category))), showDescription && collection.description && !isCompact && /* @__PURE__ */ React3__default.default.createElement(components.Text, { className: "mt-2 block text-xs text-slate-500" }, collection.description), /* @__PURE__ */ React3__default.default.createElement(components.Text, { className: "mt-1 block text-xs text-slate-500" }, "\u7F16\u53F7\uFF1A", collection.number), /* @__PURE__ */ React3__default.default.createElement(components.Text, { className: "mt-1 block text-xs text-slate-500" }, "\u4EF7\u683C\uFF1A", chunkTJZDPOO7_js.formatPrice(collection.price)), actions && actions.length > 0 && /* @__PURE__ */ React3__default.default.createElement(components.View, { className: isCompact ? "mt-2 flex gap-2" : "mt-4 flex gap-2" }, actions.map((action) => /* @__PURE__ */ React3__default.default.createElement(
|
|
69
|
+
components.Button,
|
|
70
|
+
{
|
|
71
|
+
key: action.label,
|
|
72
|
+
className: action.variant === "ghost" ? "h-8 rounded-full border border-slate-200 bg-white px-4 text-xs font-semibold text-slate-700" : "h-8 rounded-full bg-slate-900 px-4 text-xs font-semibold text-white",
|
|
73
|
+
onClick: action.onClick
|
|
74
|
+
},
|
|
75
|
+
action.label
|
|
76
|
+
)))));
|
|
77
|
+
};
|
|
78
|
+
var CollectionCard_default = CollectionCard;
|
|
79
|
+
var BookingSteps = ({ step }) => {
|
|
80
|
+
return /* @__PURE__ */ React3__default.default.createElement(components.View, { className: "mx-4 mt-4 flex items-center gap-3" }, /* @__PURE__ */ React3__default.default.createElement(
|
|
81
|
+
components.View,
|
|
82
|
+
{
|
|
83
|
+
className: `flex items-center gap-2 rounded-full px-4 py-2 text-xs ${step === "select" ? "bg-slate-900 text-white" : "bg-white text-slate-600"}`
|
|
84
|
+
},
|
|
85
|
+
/* @__PURE__ */ React3__default.default.createElement(components.Text, null, step === "select" ? "1" : "\u2713"),
|
|
86
|
+
/* @__PURE__ */ React3__default.default.createElement(components.Text, null, "\u9009\u62E9\u753B\u96C6")
|
|
87
|
+
), /* @__PURE__ */ React3__default.default.createElement(components.View, { className: "h-px flex-1 bg-slate-200" }), /* @__PURE__ */ React3__default.default.createElement(
|
|
88
|
+
components.View,
|
|
89
|
+
{
|
|
90
|
+
className: `flex items-center gap-2 rounded-full px-4 py-2 text-xs ${step === "form" ? "bg-slate-900 text-white" : "bg-white text-slate-600"}`
|
|
91
|
+
},
|
|
92
|
+
/* @__PURE__ */ React3__default.default.createElement(components.Text, null, "2"),
|
|
93
|
+
/* @__PURE__ */ React3__default.default.createElement(components.Text, null, "\u586B\u5199\u4FE1\u606F")
|
|
94
|
+
));
|
|
95
|
+
};
|
|
96
|
+
var BookingSteps_default = BookingSteps;
|
|
97
|
+
var FormInput = ({
|
|
98
|
+
label,
|
|
99
|
+
value,
|
|
100
|
+
placeholder,
|
|
101
|
+
disabled,
|
|
102
|
+
error,
|
|
103
|
+
type = "text",
|
|
104
|
+
onChange
|
|
105
|
+
}) => {
|
|
106
|
+
return /* @__PURE__ */ React3__default.default.createElement(components.View, { className: "mt-4" }, /* @__PURE__ */ React3__default.default.createElement(components.Text, { className: "text-xs text-slate-600" }, label), /* @__PURE__ */ React3__default.default.createElement(
|
|
107
|
+
components.Input,
|
|
108
|
+
{
|
|
109
|
+
value,
|
|
110
|
+
placeholder,
|
|
111
|
+
onInput: (event) => onChange(event.detail.value),
|
|
112
|
+
className: `mt-2 h-10 w-full rounded-xl border px-3 text-sm ${error ? "border-rose-400" : "border-slate-200"}`,
|
|
113
|
+
disabled,
|
|
114
|
+
type
|
|
115
|
+
}
|
|
116
|
+
), error && /* @__PURE__ */ React3__default.default.createElement(components.Text, { className: "mt-1 block text-xs text-rose-500" }, error));
|
|
117
|
+
};
|
|
118
|
+
var FormTextarea = ({
|
|
119
|
+
label,
|
|
120
|
+
value,
|
|
121
|
+
placeholder,
|
|
122
|
+
disabled,
|
|
123
|
+
error,
|
|
124
|
+
onChange
|
|
125
|
+
}) => {
|
|
126
|
+
return /* @__PURE__ */ React3__default.default.createElement(components.View, { className: "mt-4" }, /* @__PURE__ */ React3__default.default.createElement(components.Text, { className: "text-xs text-slate-600" }, label), /* @__PURE__ */ React3__default.default.createElement(
|
|
127
|
+
components.Textarea,
|
|
128
|
+
{
|
|
129
|
+
value,
|
|
130
|
+
placeholder,
|
|
131
|
+
onInput: (event) => onChange(event.detail.value),
|
|
132
|
+
className: `mt-2 min-h-24 w-full rounded-xl border px-3 py-2 text-sm ${error ? "border-rose-400" : "border-slate-200"}`,
|
|
133
|
+
disabled
|
|
134
|
+
}
|
|
135
|
+
), error && /* @__PURE__ */ React3__default.default.createElement(components.Text, { className: "mt-1 block text-xs text-rose-500" }, error));
|
|
136
|
+
};
|
|
137
|
+
var CartItemCard = ({ item, onIncrease, onDecrease, onRemove }) => {
|
|
138
|
+
return /* @__PURE__ */ React3__default.default.createElement(components.View, { className: "flex gap-3 rounded-2xl bg-white p-3 shadow-md" }, item.collection.coverImage ? /* @__PURE__ */ React3__default.default.createElement(
|
|
139
|
+
components.Image,
|
|
140
|
+
{
|
|
141
|
+
src: item.collection.coverImage,
|
|
142
|
+
mode: "aspectFill",
|
|
143
|
+
className: "h-20 w-20 rounded-2xl"
|
|
144
|
+
}
|
|
145
|
+
) : /* @__PURE__ */ React3__default.default.createElement(components.View, { className: "flex h-20 w-20 items-center justify-center rounded-2xl bg-slate-200 text-xs text-slate-500" }, "\u6682\u65E0\u56FE\u7247"), /* @__PURE__ */ React3__default.default.createElement(components.View, { className: "flex-1" }, /* @__PURE__ */ React3__default.default.createElement(components.Text, { className: "text-sm font-semibold" }, item.collection.title), /* @__PURE__ */ React3__default.default.createElement(components.Text, { className: "mt-1 block text-xs text-slate-500" }, "\u7F16\u53F7\uFF1A", item.collection.number), /* @__PURE__ */ React3__default.default.createElement(components.Text, { className: "mt-1 block text-xs text-slate-500" }, "\u4EF7\u683C\uFF1A", chunkTJZDPOO7_js.formatPrice(item.collection.price)), /* @__PURE__ */ React3__default.default.createElement(components.View, { className: "mt-3 flex items-center gap-2" }, /* @__PURE__ */ React3__default.default.createElement(
|
|
146
|
+
components.Button,
|
|
147
|
+
{
|
|
148
|
+
className: "h-8 w-8 rounded-full border border-slate-200 bg-white text-base text-slate-700",
|
|
149
|
+
onClick: onDecrease
|
|
150
|
+
},
|
|
151
|
+
"-"
|
|
152
|
+
), /* @__PURE__ */ React3__default.default.createElement(components.Text, { className: "text-sm font-semibold" }, item.quantity), /* @__PURE__ */ React3__default.default.createElement(
|
|
153
|
+
components.Button,
|
|
154
|
+
{
|
|
155
|
+
className: "h-8 w-8 rounded-full border border-slate-200 bg-white text-base text-slate-700",
|
|
156
|
+
onClick: onIncrease
|
|
157
|
+
},
|
|
158
|
+
"+"
|
|
159
|
+
), /* @__PURE__ */ React3__default.default.createElement(
|
|
160
|
+
components.Button,
|
|
161
|
+
{
|
|
162
|
+
className: "ml-auto h-8 rounded-full border border-rose-200 bg-rose-50 px-3 text-xs text-rose-600",
|
|
163
|
+
onClick: onRemove
|
|
164
|
+
},
|
|
165
|
+
"\u79FB\u9664"
|
|
166
|
+
))));
|
|
167
|
+
};
|
|
168
|
+
var CartItemCard_default = CartItemCard;
|
|
169
|
+
var statusLabelMap = {
|
|
170
|
+
pending: "\u5F85\u786E\u8BA4",
|
|
171
|
+
confirmed: "\u5DF2\u786E\u8BA4",
|
|
172
|
+
completed: "\u5DF2\u5B8C\u6210",
|
|
173
|
+
cancelled: "\u5DF2\u53D6\u6D88"
|
|
174
|
+
};
|
|
175
|
+
var HistoryRecordCard = ({ record }) => {
|
|
176
|
+
return /* @__PURE__ */ React3__default.default.createElement(components.View, { className: "flex gap-3 rounded-2xl bg-white p-3 shadow-md" }, record.collection?.coverImage ? /* @__PURE__ */ React3__default.default.createElement(
|
|
177
|
+
components.Image,
|
|
178
|
+
{
|
|
179
|
+
src: record.collection.coverImage,
|
|
180
|
+
mode: "aspectFill",
|
|
181
|
+
className: "h-20 w-20 rounded-2xl"
|
|
182
|
+
}
|
|
183
|
+
) : /* @__PURE__ */ React3__default.default.createElement(components.View, { className: "flex h-20 w-20 items-center justify-center rounded-2xl bg-slate-200 text-xs text-slate-500" }, "\u6682\u65E0\u56FE\u7247"), /* @__PURE__ */ React3__default.default.createElement(components.View, { className: "flex-1" }, /* @__PURE__ */ React3__default.default.createElement(components.Text, { className: "text-sm font-semibold" }, record.collection?.title || "\u753B\u96C6"), /* @__PURE__ */ React3__default.default.createElement(components.Text, { className: "mt-1 block text-xs text-slate-500" }, "\u6570\u91CF\uFF1A", record.quantity), /* @__PURE__ */ React3__default.default.createElement(components.Text, { className: "mt-1 block text-xs text-slate-500" }, "\u4EF7\u683C\uFF1A", chunkTJZDPOO7_js.formatPrice(record.collection?.price)), /* @__PURE__ */ React3__default.default.createElement(components.View, { className: "mt-2 flex items-center justify-between" }, /* @__PURE__ */ React3__default.default.createElement(components.Text, { className: "text-xs text-slate-500" }, "\u72B6\u6001\uFF1A", statusLabelMap[record.status] || record.status), /* @__PURE__ */ React3__default.default.createElement(components.Text, { className: "text-xs text-slate-400" }, record.createdAt?.slice(0, 10)))));
|
|
184
|
+
};
|
|
185
|
+
var HistoryRecordCard_default = HistoryRecordCard;
|
|
186
|
+
|
|
187
|
+
exports.BookingSteps = BookingSteps_default;
|
|
188
|
+
exports.CartItemCard = CartItemCard_default;
|
|
189
|
+
exports.CategoryTabs = CategoryTabs_default;
|
|
190
|
+
exports.FormInput = FormInput;
|
|
191
|
+
exports.FormTextarea = FormTextarea;
|
|
192
|
+
exports.HistoryRecordCard = HistoryRecordCard_default;
|
|
193
|
+
exports.MiniappCollectionCard = CollectionCard_default;
|
|
194
|
+
exports.PageHeader = PageHeader_default;
|
|
195
|
+
//# sourceMappingURL=index.js.map
|
|
196
|
+
//# sourceMappingURL=index.js.map
|