@mohasinac/appkit 3.4.3 → 3.4.5
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/_internal/client/features/maintenance/views/AnalysisRunnerView.js +2 -9
- package/dist/features/account/components/NotificationPreferencesPanel.js +2 -11
- package/dist/features/account/components/UserSidebar.js +4 -4
- package/dist/features/admin/components/AdminBrandsView.js +7 -9
- package/dist/features/admin/components/AdminBundlesView.js +10 -14
- package/dist/features/admin/components/AdminCarouselEditorView.js +1 -5
- package/dist/features/admin/components/AdminCategoriesView.js +10 -14
- package/dist/features/admin/components/AdminFaqsView.js +7 -9
- package/dist/features/admin/components/AdminFeatureFlagsView.js +1 -1
- package/dist/features/admin/components/AdminFeaturesView.js +9 -18
- package/dist/features/admin/components/AdminNotificationsView.js +4 -6
- package/dist/features/admin/components/AdminSessionsView.js +7 -9
- package/dist/features/admin/components/AdminSidebar.js +4 -4
- package/dist/features/admin/components/AdminSiteSettingsView.js +1 -1
- package/dist/features/admin/components/QuickActionsPanel.js +2 -2
- package/dist/features/seller/components/PrintCenterView.js +8 -2
- package/dist/features/seller/components/SellerBidsView.js +4 -1
- package/dist/features/seller/components/SellerCouponsView.js +7 -9
- package/dist/features/seller/components/SellerReviewsView.js +4 -1
- package/dist/features/seller/components/SellerSidebar.js +4 -4
- package/dist/styles.css +40 -1
- package/dist/tailwind-utilities.css +1 -1
- package/dist/tokens/themes/default-dark.js +28 -0
- package/dist/tokens/themes/default-light.js +28 -0
- package/dist/tokens/themes/required.d.ts +1 -1
- package/dist/tokens/themes/required.js +30 -0
- package/dist/tokens/tokens.css +39 -0
- package/dist/ui/components/Toggle.d.ts +3 -1
- package/dist/ui/components/Toggle.js +2 -2
- package/dist/ui/components/surface-tokens.d.ts +113 -113
- package/dist/ui/components/surface-tokens.js +104 -102
- package/package.json +1 -1
|
@@ -37,67 +37,69 @@ export const SURFACE_MAP = {
|
|
|
37
37
|
/** Near-black placeholder behind a media thumbnail (e.g. YouTube card) — deliberately not theme-tinted. */
|
|
38
38
|
"media-dark": "bg-zinc-900",
|
|
39
39
|
};
|
|
40
|
+
/** Resolves a bare spacing step (e.g. `4`, `1.5`) to its themed CSS var arbitrary-value class fragment. */
|
|
41
|
+
const SP = (step) => `var(--appkit-space-${step.replace(".", "-")})`;
|
|
40
42
|
export const PADDING_MAP = {
|
|
41
43
|
none: "",
|
|
42
|
-
"2xs":
|
|
43
|
-
xs:
|
|
44
|
-
sm:
|
|
45
|
-
md:
|
|
46
|
-
"5":
|
|
47
|
-
lg:
|
|
48
|
-
xl:
|
|
49
|
-
"3xl":
|
|
50
|
-
card:
|
|
51
|
-
"card-tight":
|
|
52
|
-
section:
|
|
53
|
-
sectionSm:
|
|
54
|
-
page:
|
|
55
|
-
hero:
|
|
56
|
-
toolbar:
|
|
57
|
-
inline:
|
|
58
|
-
inlineSm:
|
|
59
|
-
inlineLg:
|
|
44
|
+
"2xs": `p-[${SP("1")}]`,
|
|
45
|
+
xs: `p-[${SP("2")}]`,
|
|
46
|
+
sm: `p-[${SP("3")}]`,
|
|
47
|
+
md: `p-[${SP("4")}]`,
|
|
48
|
+
"5": `p-[${SP("5")}]`,
|
|
49
|
+
lg: `p-[${SP("6")}]`,
|
|
50
|
+
xl: `p-[${SP("8")}]`,
|
|
51
|
+
"3xl": `p-[${SP("12")}]`,
|
|
52
|
+
card: `p-[${SP("5")}] sm:p-[${SP("6")}] lg:p-[${SP("8")}]`,
|
|
53
|
+
"card-tight": `p-[${SP("3")}] sm:p-[${SP("4")}]`,
|
|
54
|
+
section: `py-[${SP("10")}] sm:py-[${SP("14")}] xl:py-[${SP("20")}]`,
|
|
55
|
+
sectionSm: `py-[${SP("6")}] sm:py-[${SP("10")}]`,
|
|
56
|
+
page: `py-[${SP("6")}] sm:py-[${SP("8")}] lg:py-[${SP("10")}]`,
|
|
57
|
+
hero: `py-[${SP("12")}] sm:py-[${SP("16")}] lg:py-[${SP("24")}]`,
|
|
58
|
+
toolbar: `px-[${SP("3")}] py-[${SP("1.5")}]`,
|
|
59
|
+
inline: `px-[${SP("4")}] py-[${SP("3")}]`,
|
|
60
|
+
inlineSm: `px-[${SP("3")}] py-[${SP("2")}]`,
|
|
61
|
+
inlineLg: `px-[${SP("6")}] py-[${SP("4")}]`,
|
|
60
62
|
/** Tiny pill chip — `px-1.5 py-0.5`. Used by Bundle/PrizeDraw badge labels. */
|
|
61
|
-
"chip-2xs":
|
|
63
|
+
"chip-2xs": `px-[${SP("1.5")}] py-[${SP("0.5")}]`,
|
|
62
64
|
// Vertical-only presets — the variant-catalogue codemod migrates raw
|
|
63
65
|
// `py-N` / `py-N md:py-M` className tokens into these names.
|
|
64
|
-
"y-2xs":
|
|
65
|
-
"y-xs":
|
|
66
|
-
"y-sm":
|
|
67
|
-
"y-md":
|
|
68
|
-
"y-lg":
|
|
69
|
-
"y-xl":
|
|
70
|
-
"y-2xl":
|
|
71
|
-
"y-3xl":
|
|
72
|
-
"y-4xl":
|
|
66
|
+
"y-2xs": `py-[${SP("1")}]`,
|
|
67
|
+
"y-xs": `py-[${SP("2")}]`,
|
|
68
|
+
"y-sm": `py-[${SP("3")}]`,
|
|
69
|
+
"y-md": `py-[${SP("4")}]`,
|
|
70
|
+
"y-lg": `py-[${SP("6")}]`,
|
|
71
|
+
"y-xl": `py-[${SP("8")}]`,
|
|
72
|
+
"y-2xl": `py-[${SP("10")}]`,
|
|
73
|
+
"y-3xl": `py-[${SP("12")}]`,
|
|
74
|
+
"y-4xl": `py-[${SP("16")}]`,
|
|
73
75
|
// Horizontal-only presets.
|
|
74
|
-
"x-xs":
|
|
75
|
-
"x-sm":
|
|
76
|
-
"x-md":
|
|
77
|
-
"x-lg":
|
|
78
|
-
"x-xl":
|
|
76
|
+
"x-xs": `px-[${SP("2")}]`,
|
|
77
|
+
"x-sm": `px-[${SP("3")}]`,
|
|
78
|
+
"x-md": `px-[${SP("4")}]`,
|
|
79
|
+
"x-lg": `px-[${SP("6")}]`,
|
|
80
|
+
"x-xl": `px-[${SP("8")}]`,
|
|
79
81
|
// Top-only and bottom-only side presets.
|
|
80
|
-
"t-2xs":
|
|
81
|
-
"b-2xs":
|
|
82
|
-
"t-xs":
|
|
83
|
-
"t-sm":
|
|
84
|
-
"t-md":
|
|
85
|
-
"t-lg":
|
|
86
|
-
"t-xl":
|
|
87
|
-
"b-xs":
|
|
88
|
-
"b-sm":
|
|
89
|
-
"b-md":
|
|
90
|
-
"b-lg":
|
|
91
|
-
"b-xl":
|
|
92
|
-
"b-2xl":
|
|
82
|
+
"t-2xs": `pt-[${SP("1")}]`,
|
|
83
|
+
"b-2xs": `pb-[${SP("1")}]`,
|
|
84
|
+
"t-xs": `pt-[${SP("2")}]`,
|
|
85
|
+
"t-sm": `pt-[${SP("3")}]`,
|
|
86
|
+
"t-md": `pt-[${SP("4")}]`,
|
|
87
|
+
"t-lg": `pt-[${SP("6")}]`,
|
|
88
|
+
"t-xl": `pt-[${SP("8")}]`,
|
|
89
|
+
"b-xs": `pb-[${SP("2")}]`,
|
|
90
|
+
"b-sm": `pb-[${SP("3")}]`,
|
|
91
|
+
"b-md": `pb-[${SP("4")}]`,
|
|
92
|
+
"b-lg": `pb-[${SP("6")}]`,
|
|
93
|
+
"b-xl": `pb-[${SP("8")}]`,
|
|
94
|
+
"b-2xl": `pb-[${SP("10")}]`,
|
|
93
95
|
// Fill-in vertical sizes.
|
|
94
|
-
"y-2-5xl":
|
|
95
|
-
"y-5xl":
|
|
96
|
-
"y-6xl":
|
|
96
|
+
"y-2-5xl": `py-[${SP("14")}]`,
|
|
97
|
+
"y-5xl": `py-[${SP("20")}]`,
|
|
98
|
+
"y-6xl": `py-[${SP("24")}]`,
|
|
97
99
|
// Responsive banner preset — used by accent-banner Sections.
|
|
98
|
-
banner:
|
|
100
|
+
banner: `py-[${SP("14")}] md:py-[${SP("16")}] lg:py-[${SP("20")}]`,
|
|
99
101
|
// Responsive content preset — about-views inner container padding.
|
|
100
|
-
"content-banner":
|
|
102
|
+
"content-banner": `py-[${SP("10")}] md:py-[${SP("12")}] lg:py-[${SP("16")}]`,
|
|
101
103
|
};
|
|
102
104
|
export const ROUNDED_MAP = {
|
|
103
105
|
none: "",
|
|
@@ -173,17 +175,17 @@ export const SHADOW_MAP = {
|
|
|
173
175
|
export const GAP_PRESETS = {
|
|
174
176
|
none: "gap-0",
|
|
175
177
|
px: "gap-px",
|
|
176
|
-
xs:
|
|
177
|
-
sm:
|
|
178
|
-
dense:
|
|
179
|
-
md:
|
|
180
|
-
comfortable:
|
|
181
|
-
lg:
|
|
182
|
-
loose:
|
|
183
|
-
xl:
|
|
184
|
-
"2xl":
|
|
185
|
-
section:
|
|
186
|
-
hero:
|
|
178
|
+
xs: `gap-[${SP("1")}]`,
|
|
179
|
+
sm: `gap-[${SP("2")}]`,
|
|
180
|
+
dense: `gap-[${SP("2")}]`,
|
|
181
|
+
md: `gap-[${SP("3")}]`,
|
|
182
|
+
comfortable: `gap-[${SP("3")}]`,
|
|
183
|
+
lg: `gap-[${SP("4")}]`,
|
|
184
|
+
loose: `gap-[${SP("4")}]`,
|
|
185
|
+
xl: `gap-[${SP("5")}]`,
|
|
186
|
+
"2xl": `gap-[${SP("6")}]`,
|
|
187
|
+
section: `gap-[${SP("6")}] sm:gap-[${SP("8")}]`,
|
|
188
|
+
hero: `gap-[${SP("10")}] sm:gap-[${SP("12")}]`,
|
|
187
189
|
};
|
|
188
190
|
/**
|
|
189
191
|
* Named padding presets consumed by `<Container>` / `<Section>` / `<Card>` /
|
|
@@ -194,60 +196,60 @@ export const GAP_PRESETS = {
|
|
|
194
196
|
export const PADDING_PRESETS = PADDING_MAP;
|
|
195
197
|
export const X_ONLY_MAP = {
|
|
196
198
|
none: "",
|
|
197
|
-
"x-xs":
|
|
198
|
-
"x-sm":
|
|
199
|
-
"x-md":
|
|
200
|
-
"x-5":
|
|
201
|
-
"x-lg":
|
|
202
|
-
"x-xl":
|
|
199
|
+
"x-xs": `px-[${SP("2")}]`,
|
|
200
|
+
"x-sm": `px-[${SP("3")}]`,
|
|
201
|
+
"x-md": `px-[${SP("4")}]`,
|
|
202
|
+
"x-5": `px-[${SP("5")}]`,
|
|
203
|
+
"x-lg": `px-[${SP("6")}]`,
|
|
204
|
+
"x-xl": `px-[${SP("8")}]`,
|
|
203
205
|
/** Responsive: `px-3 sm:px-4` — the canonical mobile-tight container. */
|
|
204
|
-
"x-sm-md":
|
|
206
|
+
"x-sm-md": `px-[${SP("3")}] sm:px-[${SP("4")}]`,
|
|
205
207
|
/** Responsive: `px-3 lg:px-4` — the canonical mobile-tight wide container. */
|
|
206
|
-
"x-sm-lg-md":
|
|
208
|
+
"x-sm-lg-md": `px-[${SP("3")}] lg:px-[${SP("4")}]`,
|
|
207
209
|
/** Responsive: `px-4 sm:px-6` — narrow container horizontal padding. */
|
|
208
|
-
"x-md-lg":
|
|
210
|
+
"x-md-lg": `px-[${SP("4")}] sm:px-[${SP("6")}]`,
|
|
209
211
|
/** Responsive: `px-6 md:px-10` — guide hub / store-extension container padding. */
|
|
210
|
-
"x-md-xl":
|
|
212
|
+
"x-md-xl": `px-[${SP("6")}] md:px-[${SP("10")}]`,
|
|
211
213
|
/** Responsive: `px-4 sm:px-8` — section header container padding. */
|
|
212
|
-
"x-md-2xl":
|
|
214
|
+
"x-md-2xl": `px-[${SP("4")}] sm:px-[${SP("8")}]`,
|
|
213
215
|
/** Responsive: `px-4 sm:px-6 lg:px-8` — canonical page-container horizontal padding. */
|
|
214
|
-
"x-page":
|
|
216
|
+
"x-page": `px-[${SP("4")}] sm:px-[${SP("6")}] lg:px-[${SP("8")}]`,
|
|
215
217
|
// Asymmetric left one-sided value (for sites that pad just one edge, e.g. a
|
|
216
218
|
// selection-checkbox gutter).
|
|
217
219
|
/** Asymmetric: `pl-8` — reserves a left gutter (e.g. for an overlaid selection checkbox). */
|
|
218
|
-
"l-xl":
|
|
220
|
+
"l-xl": `pl-[${SP("8")}]`,
|
|
219
221
|
};
|
|
220
222
|
const Y_ONLY_MAP = {
|
|
221
223
|
none: "",
|
|
222
|
-
"y-2xs":
|
|
223
|
-
"y-2xs-tall":
|
|
224
|
-
"y-xs":
|
|
225
|
-
"y-xs-tall":
|
|
226
|
-
"y-sm":
|
|
227
|
-
"y-sm-tall":
|
|
228
|
-
"y-md":
|
|
229
|
-
"y-md-lg":
|
|
230
|
-
"y-lg":
|
|
231
|
-
"y-xl":
|
|
232
|
-
"y-2xl":
|
|
233
|
-
"y-3xl":
|
|
234
|
-
"y-2-5xl":
|
|
235
|
-
"y-4xl":
|
|
236
|
-
"y-5xl":
|
|
237
|
-
"y-6xl":
|
|
224
|
+
"y-2xs": `py-[${SP("1")}]`,
|
|
225
|
+
"y-2xs-tall": `py-[${SP("1.5")}]`,
|
|
226
|
+
"y-xs": `py-[${SP("2")}]`,
|
|
227
|
+
"y-xs-tall": `py-[${SP("2.5")}]`,
|
|
228
|
+
"y-sm": `py-[${SP("3")}]`,
|
|
229
|
+
"y-sm-tall": `py-[${SP("3.5")}]`,
|
|
230
|
+
"y-md": `py-[${SP("4")}]`,
|
|
231
|
+
"y-md-lg": `py-[${SP("5")}]`,
|
|
232
|
+
"y-lg": `py-[${SP("6")}]`,
|
|
233
|
+
"y-xl": `py-[${SP("8")}]`,
|
|
234
|
+
"y-2xl": `py-[${SP("10")}]`,
|
|
235
|
+
"y-3xl": `py-[${SP("12")}]`,
|
|
236
|
+
"y-2-5xl": `py-[${SP("14")}]`,
|
|
237
|
+
"y-4xl": `py-[${SP("16")}]`,
|
|
238
|
+
"y-5xl": `py-[${SP("20")}]`,
|
|
239
|
+
"y-6xl": `py-[${SP("24")}]`,
|
|
238
240
|
// Asymmetric top/bottom one-sided values (for sites that pad just one edge).
|
|
239
|
-
"t-2xs":
|
|
240
|
-
"b-2xs":
|
|
241
|
-
"t-xs":
|
|
242
|
-
"b-xs":
|
|
243
|
-
"t-sm":
|
|
244
|
-
"b-sm":
|
|
245
|
-
"t-md":
|
|
246
|
-
"b-md":
|
|
247
|
-
"b-md-lg":
|
|
248
|
-
"b-lg":
|
|
241
|
+
"t-2xs": `pt-[${SP("1")}]`,
|
|
242
|
+
"b-2xs": `pb-[${SP("1")}]`,
|
|
243
|
+
"t-xs": `pt-[${SP("2")}]`,
|
|
244
|
+
"b-xs": `pb-[${SP("2")}]`,
|
|
245
|
+
"t-sm": `pt-[${SP("3")}]`,
|
|
246
|
+
"b-sm": `pb-[${SP("3")}]`,
|
|
247
|
+
"t-md": `pt-[${SP("4")}]`,
|
|
248
|
+
"b-md": `pb-[${SP("4")}]`,
|
|
249
|
+
"b-md-lg": `pb-[${SP("5")}]`,
|
|
250
|
+
"b-lg": `pb-[${SP("6")}]`,
|
|
249
251
|
/** Asymmetric: `pt-4 pb-6` — hotspot control bar with tighter top than bottom. */
|
|
250
|
-
"t-md-b-lg":
|
|
252
|
+
"t-md-b-lg": `pt-[${SP("4")}] pb-[${SP("6")}]`,
|
|
251
253
|
};
|
|
252
254
|
const OVERFLOW_MAP = {
|
|
253
255
|
auto: "overflow-auto",
|