@tbox.cn/app-module-mall-core 1.0.0-alpha.1 → 1.0.0-alpha.11

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.
Files changed (33) hide show
  1. package/AGENTS.md +3 -3
  2. package/README.md +4 -4
  3. package/dist/{chunk-QPBYZO27.js → chunk-ZBHJWURF.js} +1399 -1611
  4. package/dist/{chunk-FIHBQMON.js → chunk-ZVXAPBVE.js} +1 -1
  5. package/dist/client/index.d.ts +0 -11
  6. package/dist/client/index.js +1 -1
  7. package/dist/index.js +2 -2
  8. package/dist/server/index.d.ts +16 -16
  9. package/dist/server/index.js +1 -1
  10. package/package.json +7 -7
  11. package/src/client/HomeActivityDetailDialog.tsx +21 -81
  12. package/src/client/MallHome.tsx +109 -54
  13. package/src/client/cards/overrides/BumpInActivityChatCard.tsx +1 -1
  14. package/src/client/components/ActivityDetailPresentation/index.tsx +102 -9
  15. package/src/client/components/MemberGateSheet/index.tsx +38 -92
  16. package/src/client/home-slot.tsx +8 -64
  17. package/src/client/index.ts +4 -3
  18. package/src/client/member-gate-overlay.tsx +89 -0
  19. package/src/server/module-ports.ts +1 -1
  20. package/tbox.module.json +1 -2
  21. package/tests/MemberGateSheet.test.tsx +9 -0
  22. package/tests/home-slot.test.tsx +110 -30
  23. package/tsup.config.ts +0 -1
  24. package/dist/HomeActivityDetailDialog-2GJFYSMZ.less +0 -178
  25. package/dist/MallHome-PABCNS6D.less +0 -623
  26. package/dist/home-slot-WBZ6ONDP.less +0 -4
  27. package/dist/index-ELJ55M66.less +0 -256
  28. package/dist/index-U5YRUY7P.less +0 -352
  29. package/src/client/HomeActivityDetailDialog.less +0 -178
  30. package/src/client/MallHome.less +0 -623
  31. package/src/client/components/ActivityDetailPresentation/index.less +0 -352
  32. package/src/client/components/MemberGateSheet/index.less +0 -256
  33. package/src/client/home-slot.less +0 -4
@@ -1,178 +0,0 @@
1
- .home-activity-detail {
2
- position: fixed;
3
- inset: 0;
4
- z-index: 1200;
5
-
6
- &__mask {
7
- position: absolute;
8
- inset: 0;
9
- width: 100%;
10
- height: 100%;
11
- padding: 0;
12
- background: rgba(19, 26, 16, 0);
13
- border: 0;
14
- transition: background-color 220ms ease-out;
15
- -webkit-tap-highlight-color: transparent;
16
- }
17
-
18
- &[data-phase='open'] &__mask { background: rgba(19, 26, 16, 0.42); }
19
-
20
- &__surface {
21
- position: fixed;
22
- z-index: 1;
23
- min-width: 0;
24
- min-height: 0;
25
- margin: 0;
26
- overflow: hidden;
27
- background: #ffffff;
28
- border-radius: 14PX;
29
- box-shadow: 0 20PX 60PX rgba(22, 42, 30, 0.22);
30
- contain: layout paint;
31
- transition:
32
- top 300ms cubic-bezier(0.22, 0.72, 0.24, 1),
33
- left 300ms cubic-bezier(0.22, 0.72, 0.24, 1),
34
- width 300ms cubic-bezier(0.22, 0.72, 0.24, 1),
35
- height 300ms cubic-bezier(0.22, 0.72, 0.24, 1),
36
- border-radius 300ms cubic-bezier(0.22, 0.72, 0.24, 1),
37
- opacity 180ms ease-out,
38
- transform 180ms ease-out;
39
- will-change: top, left, width, height, border-radius, transform;
40
- }
41
-
42
- &[data-phase='open'] &__surface { border-radius: 24PX; }
43
-
44
- &[data-motion='fade'][data-phase='opening'] &__surface {
45
- opacity: 0;
46
- transform: scale(0.985);
47
- }
48
-
49
- &[data-motion='fade'][data-phase='open'] &__surface {
50
- opacity: 1;
51
- transform: scale(1);
52
- }
53
-
54
- &[data-phase='closing'][data-return-origin='false'] &__surface {
55
- opacity: 0;
56
- transform: scale(0.98);
57
- }
58
-
59
- &__transition-visual,
60
- &__content {
61
- position: absolute;
62
- inset: 0;
63
- }
64
-
65
- &__transition-visual {
66
- z-index: 2;
67
- overflow: hidden;
68
- background: #fff8e9;
69
- opacity: 1;
70
- transition: opacity 150ms ease-out;
71
-
72
- .mall-home__linked-order {
73
- width: 100%;
74
- height: auto;
75
- margin: 0;
76
- aspect-ratio: 353 / 240;
77
- border-radius: 0;
78
- box-shadow: none;
79
- }
80
- }
81
-
82
- &[data-phase='open'] &__transition-visual {
83
- pointer-events: none;
84
- opacity: 0;
85
- transition-delay: 150ms;
86
- }
87
-
88
- &__content {
89
- z-index: 1;
90
- min-height: 0;
91
- padding-bottom: env(safe-area-inset-bottom, 0PX);
92
- overflow-y: auto;
93
- overscroll-behavior: contain;
94
- scrollbar-width: none;
95
- background: #ffffff;
96
- opacity: 0;
97
- transform: translateY(12PX);
98
- transition: opacity 170ms ease-out, transform 170ms ease-out;
99
- -webkit-overflow-scrolling: touch;
100
-
101
- &::-webkit-scrollbar { display: none; }
102
- }
103
-
104
- &[data-phase='open'] &__content {
105
- opacity: 1;
106
- transform: translateY(0);
107
- transition-delay: 150ms;
108
- }
109
-
110
- &[data-motion='fade'][data-phase='open'] &__content {
111
- transition-delay: 0ms;
112
- }
113
-
114
- &__close {
115
- position: absolute;
116
- top: max(14PX, env(safe-area-inset-top, 0PX));
117
- right: 14PX;
118
- z-index: 4;
119
- display: grid;
120
- width: 42PX;
121
- height: 42PX;
122
- padding: 0;
123
- color: #263022;
124
- background: rgba(255, 255, 255, 0.92);
125
- border: 1PX solid rgba(61, 71, 56, 0.1);
126
- border-radius: 50%;
127
- box-shadow: 0 8PX 24PX rgba(34, 50, 38, 0.16);
128
- opacity: 0;
129
- place-items: center;
130
- transition: opacity 140ms ease-out;
131
- -webkit-tap-highlight-color: transparent;
132
-
133
- &:focus-visible {
134
- outline: 3PX solid rgba(82, 126, 56, 0.38);
135
- outline-offset: 2PX;
136
- }
137
- }
138
-
139
- &[data-phase='open'] &__close {
140
- opacity: 1;
141
- transition-delay: 170ms;
142
- }
143
-
144
- &[data-motion='fade'][data-phase='open'] &__close {
145
- transition-delay: 80ms;
146
- }
147
-
148
- &__sr-title {
149
- position: absolute;
150
- width: 1PX;
151
- height: 1PX;
152
- margin: -1PX;
153
- padding: 0;
154
- overflow: hidden;
155
- white-space: nowrap;
156
- border: 0;
157
- clip: rect(0 0 0 0);
158
- }
159
- }
160
-
161
- @media (max-width: 600PX) {
162
- .home-activity-detail[data-phase='open'] .home-activity-detail__surface {
163
- width: 100vw !important;
164
- height: 100dvh !important;
165
- border-radius: 0;
166
- }
167
- }
168
-
169
- @media (prefers-reduced-motion: reduce) {
170
- .home-activity-detail__mask,
171
- .home-activity-detail__surface,
172
- .home-activity-detail__transition-visual,
173
- .home-activity-detail__content,
174
- .home-activity-detail__close {
175
- transition-duration: 1ms;
176
- transition-delay: 0ms;
177
- }
178
- }