@mohasinac/appkit 4.55.0-next.0 → 4.55.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/.build-stamp.json +5 -5
- package/dist/_internal/server/features/checkout/actions.js +61 -2
- package/dist/_internal/shared/features/checkout/config.d.ts +1 -1
- package/dist/_internal/shared/features/checkout/config.js +1 -1
- package/dist/_internal/shared/features/site-settings/fees.d.ts +1 -1
- package/dist/_internal/shared/features/site-settings/fees.js +1 -1
- package/dist/_internal/shared/fees/calculator.d.ts +35 -3
- package/dist/_internal/shared/fees/calculator.js +34 -4
- package/dist/errors/error-codes.d.ts +15 -0
- package/dist/errors/error-codes.js +15 -0
- package/dist/errors/index.d.ts +1 -1
- package/dist/errors/index.js +1 -1
- package/dist/features/account/components/UserBidsView.js +4 -2
- package/dist/features/admin/components/AdminSiteSettingsView.js +18 -2
- package/dist/features/admin/schemas/firestore.d.ts +37 -2
- package/dist/features/admin/schemas/firestore.js +12 -1
- package/dist/features/cart/components/CartPriceBreakdown.js +1 -1
- package/dist/features/checkout/schemas/firestore.d.ts +12 -1
- package/dist/features/layout/NavbarLayout.js +139 -32
- package/dist/features/media/messages/en.json +67 -67
- package/dist/features/orders/schemas/firestore.d.ts +1 -1
- package/dist/features/products/components/ProductDetailPageView.js +2 -25
- package/dist/features/products/components/ProductOwnerQuickActions.d.ts +11 -0
- package/dist/features/products/components/ProductOwnerQuickActions.js +120 -0
- package/dist/features/products/components/ProductsIndexListing.js +35 -5
- package/dist/features/products/components/ProductsIndexPageView.js +40 -7
- package/dist/providers/shipping-shiprocket/index.d.ts +13 -4
- package/dist/providers/shipping-shiprocket/index.js +34 -10
- package/dist/security/csp.d.ts +1 -16
- package/dist/security/csp.js +3 -5
- package/dist/seed/faq-seed-data.js +1 -1
- package/dist/seed/site-settings-seed-data.js +1 -1
- package/dist/seo/json-ld.d.ts +8 -1
- package/dist/seo/json-ld.js +39 -2
- package/dist/styles.css +382 -537
- package/dist/tailwind-utilities.css +1 -1
- package/dist/tokens/themes/index.d.ts +1 -3
- package/dist/tokens/themes/index.js +1 -11
- package/dist/tokens/tokens.css +0 -155
- package/dist/ui/components/GatedPrice.style.css +43 -43
- package/dist/ui/components/QuickCreateModal.style.css +78 -78
- package/dist/ui/forms/FormShell.style.css +260 -260
- package/package.json +1 -1
- package/dist/tokens/themes/technical-dark.d.ts +0 -30
- package/dist/tokens/themes/technical-dark.js +0 -103
- package/dist/tokens/themes/technical-light.d.ts +0 -22
- package/dist/tokens/themes/technical-light.js +0 -89
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { ThemeRecord } from "./types";
|
|
2
|
-
/**
|
|
3
|
-
* Theme template — Technical Light.
|
|
4
|
-
*
|
|
5
|
-
* A true counterpart to `technical-dark`, not an afterthought: same geometry,
|
|
6
|
-
* same mono-forward type stack, same syntax-derived accent *roles* — but every
|
|
7
|
-
* accent is re-darkened for a paper-white ground rather than reused from the
|
|
8
|
-
* dark preset. Reusing them would have been the easy mistake: #7c8cff on
|
|
9
|
-
* #fbfbfa measures 2.88:1, which fails AA outright, so primary drops to
|
|
10
|
-
* #4b5bd6 (5.38:1) and each status hue is darkened to match.
|
|
11
|
-
*
|
|
12
|
-
* Not a built-in (`builtIn: false`). Only overrides the tokens the matching CSS
|
|
13
|
-
* block overrides; everything else falls back to `DEFAULT_LIGHT_THEME`.
|
|
14
|
-
*
|
|
15
|
-
* Contrast against `appkit-color-bg` (#fbfbfa), measured not estimated:
|
|
16
|
-
* text 17.15:1, muted 5.84:1, faint 4.67:1, primary 5.38:1, white-on-primary
|
|
17
|
-
* 5.58:1, and every status colour ≥ 4.5:1 (lowest: success 4.80:1).
|
|
18
|
-
*
|
|
19
|
-
* Mirrors the `[data-theme="technical-light"]` block in
|
|
20
|
-
* `appkit/src/tokens/tokens.css`; the two must stay byte-identical.
|
|
21
|
-
*/
|
|
22
|
-
export declare const TECHNICAL_LIGHT_THEME: ThemeRecord;
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { DEFAULT_LIGHT_THEME } from "./default-light.js";
|
|
2
|
-
/**
|
|
3
|
-
* Theme template — Technical Light.
|
|
4
|
-
*
|
|
5
|
-
* A true counterpart to `technical-dark`, not an afterthought: same geometry,
|
|
6
|
-
* same mono-forward type stack, same syntax-derived accent *roles* — but every
|
|
7
|
-
* accent is re-darkened for a paper-white ground rather than reused from the
|
|
8
|
-
* dark preset. Reusing them would have been the easy mistake: #7c8cff on
|
|
9
|
-
* #fbfbfa measures 2.88:1, which fails AA outright, so primary drops to
|
|
10
|
-
* #4b5bd6 (5.38:1) and each status hue is darkened to match.
|
|
11
|
-
*
|
|
12
|
-
* Not a built-in (`builtIn: false`). Only overrides the tokens the matching CSS
|
|
13
|
-
* block overrides; everything else falls back to `DEFAULT_LIGHT_THEME`.
|
|
14
|
-
*
|
|
15
|
-
* Contrast against `appkit-color-bg` (#fbfbfa), measured not estimated:
|
|
16
|
-
* text 17.15:1, muted 5.84:1, faint 4.67:1, primary 5.38:1, white-on-primary
|
|
17
|
-
* 5.58:1, and every status colour ≥ 4.5:1 (lowest: success 4.80:1).
|
|
18
|
-
*
|
|
19
|
-
* Mirrors the `[data-theme="technical-light"]` block in
|
|
20
|
-
* `appkit/src/tokens/tokens.css`; the two must stay byte-identical.
|
|
21
|
-
*/
|
|
22
|
-
export const TECHNICAL_LIGHT_THEME = {
|
|
23
|
-
id: "technical-light",
|
|
24
|
-
name: "Technical Light",
|
|
25
|
-
mode: "light",
|
|
26
|
-
builtIn: false,
|
|
27
|
-
tokens: {
|
|
28
|
-
// Same violet ROLE as the dark preset, re-darkened for white.
|
|
29
|
-
"appkit-color-primary": "#4b5bd6",
|
|
30
|
-
"appkit-color-primary-50": "#eef0ff",
|
|
31
|
-
"appkit-color-primary-100": "#e0e4ff",
|
|
32
|
-
"appkit-color-primary-200": "#c7cdff",
|
|
33
|
-
"appkit-color-primary-300": "#a5aeff",
|
|
34
|
-
"appkit-color-primary-400": "#7c8cff",
|
|
35
|
-
"appkit-color-primary-500": "#5a68e8",
|
|
36
|
-
"appkit-color-primary-600": "#4b5bd6",
|
|
37
|
-
"appkit-color-primary-700": "#3b45ad",
|
|
38
|
-
"appkit-color-primary-800": "#2f3789",
|
|
39
|
-
"appkit-color-primary-900": "#262c6d",
|
|
40
|
-
"appkit-color-primary-950": "#151840",
|
|
41
|
-
"appkit-color-secondary": "#0f8f5f",
|
|
42
|
-
"appkit-color-secondary-50": "#ecfdf5",
|
|
43
|
-
"appkit-color-secondary-100": "#d1fae5",
|
|
44
|
-
"appkit-color-secondary-200": "#a7f3d0",
|
|
45
|
-
"appkit-color-secondary-300": "#6ee7b7",
|
|
46
|
-
"appkit-color-secondary-400": "#34b87d",
|
|
47
|
-
"appkit-color-secondary-500": "#0f8f5f",
|
|
48
|
-
"appkit-color-secondary-600": "#0c744d",
|
|
49
|
-
"appkit-color-secondary-700": "#0a5c3d",
|
|
50
|
-
"appkit-color-secondary-800": "#084830",
|
|
51
|
-
"appkit-color-secondary-900": "#063a27",
|
|
52
|
-
"appkit-color-secondary-950": "#032016",
|
|
53
|
-
// Paper white, not pure #fff — pure white against a mono type stack
|
|
54
|
-
// glares at the sizes this UI uses.
|
|
55
|
-
"appkit-color-bg": "#fbfbfa",
|
|
56
|
-
"appkit-color-surface": "#ffffff",
|
|
57
|
-
"appkit-color-surface-elevated": "rgba(255, 255, 255, 0.96)",
|
|
58
|
-
"appkit-color-surface-input": "rgba(244, 244, 242, 0.8)",
|
|
59
|
-
"appkit-color-surface-hover": "rgba(22, 24, 29, 0.05)",
|
|
60
|
-
"appkit-color-surface-raised": "rgba(244, 244, 242, 0.9)",
|
|
61
|
-
"appkit-color-primary-surface": "rgba(75, 91, 214, 0.1)",
|
|
62
|
-
"appkit-color-border": "#e2e2df",
|
|
63
|
-
"appkit-color-border-subtle": "rgba(226, 226, 223, 0.7)",
|
|
64
|
-
"appkit-color-text": "#16181d",
|
|
65
|
-
"appkit-color-text-muted": "#5c6370",
|
|
66
|
-
// #767d89 measured 4.00:1 here — AA for large text only. Darkened so even
|
|
67
|
-
// faint metadata clears AA at body size.
|
|
68
|
-
"appkit-color-text-faint": "#6b7280",
|
|
69
|
-
"appkit-color-text-on-primary": "#ffffff",
|
|
70
|
-
"appkit-color-success": "#13804f",
|
|
71
|
-
"appkit-color-success-surface": "rgba(19, 128, 79, 0.1)",
|
|
72
|
-
"appkit-color-warning": "#9a6400",
|
|
73
|
-
"appkit-color-warning-surface": "rgba(154, 100, 0, 0.1)",
|
|
74
|
-
"appkit-color-error": "#c62828",
|
|
75
|
-
"appkit-color-error-surface": "rgba(198, 40, 40, 0.1)",
|
|
76
|
-
"appkit-color-info": "#0a69b5",
|
|
77
|
-
"appkit-color-info-surface": "rgba(10, 105, 181, 0.1)",
|
|
78
|
-
// Darkened amber. The dark preset's #ffb86b measures 1.65:1 here —
|
|
79
|
-
// effectively an invisible focus ring, which is a keyboard trap.
|
|
80
|
-
"appkit-color-focus-ring": "#b45a00",
|
|
81
|
-
"appkit-shadow-glow": "0 0 0 1px rgba(75,91,214,0.14), 0 4px 16px -6px rgba(75,91,214,0.18)",
|
|
82
|
-
"appkit-shadow-glow-pink": "0 0 0 1px rgba(15,143,95,0.14), 0 4px 18px -6px rgba(15,143,95,0.2)",
|
|
83
|
-
"appkit-font-display": "var(--font-mono), \"JetBrains Mono\", \"IBM Plex Mono\", ui-monospace, \"SFMono-Regular\", Consolas, monospace",
|
|
84
|
-
"appkit-font-sans": "var(--font-mono), \"JetBrains Mono\", \"IBM Plex Mono\", ui-monospace, \"SFMono-Regular\", Consolas, monospace",
|
|
85
|
-
"appkit-font-editorial": "var(--font-body), ui-sans-serif, system-ui, -apple-system, \"Segoe UI\", Roboto, sans-serif",
|
|
86
|
-
"appkit-font-mono": "var(--font-mono), \"JetBrains Mono\", \"IBM Plex Mono\", ui-monospace, \"SFMono-Regular\", Consolas, monospace",
|
|
87
|
-
},
|
|
88
|
-
gradients: { ...DEFAULT_LIGHT_THEME.gradients },
|
|
89
|
-
};
|