@harrylabsj/kiwi 0.12.19 → 0.12.20
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/auth/app-oauth-callback.js +43 -26
- package/dist/auth/app-oauth-callback.js.map +1 -1
- package/dist/auth/merchant-oauth.d.ts +34 -0
- package/dist/auth/merchant-oauth.js +142 -16
- package/dist/auth/merchant-oauth.js.map +1 -1
- package/dist/auth/merchant-sessions.js +36 -8
- package/dist/auth/merchant-sessions.js.map +1 -1
- package/dist/http/merchant-management/trusted-page.js +13 -2
- package/dist/http/merchant-management/trusted-page.js.map +1 -1
- package/dist/mcp/merchant-runtime-assembly.js +2 -0
- package/dist/mcp/merchant-runtime-assembly.js.map +1 -1
- package/dist/merchant-admin/pending-page.js +29 -8
- package/dist/merchant-admin/pending-page.js.map +1 -1
- package/dist/merchant-admin/rfq-page.d.ts +0 -10
- package/dist/merchant-admin/rfq-page.js +40 -28
- package/dist/merchant-admin/rfq-page.js.map +1 -1
- package/dist/merchant-gateway/cli.js +5 -0
- package/dist/merchant-gateway/cli.js.map +1 -1
- package/dist/merchant-ui/page-shell.d.ts +22 -0
- package/dist/merchant-ui/page-shell.js +55 -0
- package/dist/merchant-ui/page-shell.js.map +1 -0
- package/dist/merchant-ui/theme.d.ts +23 -0
- package/dist/merchant-ui/theme.js +68 -0
- package/dist/merchant-ui/theme.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2026 harrylabsj
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* 商家侧页面共用的视觉主题(工作台 / 管理员登录 / 待批准命令)。
|
|
18
|
+
*
|
|
19
|
+
* 单文件静态壳、零构建:所有页面内联同一份 CSS 常量,避免登录页、确认页
|
|
20
|
+
* 与工作台各写一套样式而漂移。只放**通用**令牌与组件;工作台的布局
|
|
21
|
+
* (body 网格、侧栏、页头)、表格列宽等页面专属规则留在各自模板里。
|
|
22
|
+
*/
|
|
23
|
+
export const MERCHANT_THEME_CSS = `
|
|
24
|
+
:root { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; color: #23342d; background: #f5f7f4; font-size: 14px; line-height: 1.6; --kiwi: #205c43; --border: #dce4de; --muted: #5e7066; }
|
|
25
|
+
* { box-sizing: border-box; }
|
|
26
|
+
button, input, select, textarea { font: inherit; }
|
|
27
|
+
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
|
|
28
|
+
a { color: var(--kiwi); text-underline-offset: 3px; }
|
|
29
|
+
button { cursor: pointer; }
|
|
30
|
+
button:disabled { cursor: not-allowed; opacity: .55; }
|
|
31
|
+
:focus-visible { outline: 3px solid #9b7214; outline-offset: 3px; }
|
|
32
|
+
.brand { display: flex; align-items: center; gap: 16px; }
|
|
33
|
+
.brand-name { color: var(--kiwi); font-size: 30px; font-weight: 750; letter-spacing: -1.6px; line-height: 1; }
|
|
34
|
+
.brand-title { font-size: 14px; font-weight: 600; padding-left: 16px; border-left: 1px solid var(--border); }
|
|
35
|
+
.card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 24px; margin-bottom: 20px; box-shadow: 0 3px 12px #243b2b04; min-width: 0; }
|
|
36
|
+
.card h2 { font-size: 16px; line-height: 1.5; margin: 0 0 18px; color: #233b2d; font-weight: 650; }
|
|
37
|
+
.card p { margin: 12px 0; overflow-wrap: anywhere; }
|
|
38
|
+
.card > :last-child { margin-bottom: 0; }
|
|
39
|
+
.table-scroll { width: 100%; overflow-x: auto; border: 1px solid #e4eae5; border-radius: 8px; margin: 12px 0 18px; }
|
|
40
|
+
table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 13px; line-height: 1.6; }
|
|
41
|
+
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid #e9eee9; vertical-align: middle; }
|
|
42
|
+
th { color: #53665b; font-weight: 600; white-space: nowrap; background: #f7f9f6; }
|
|
43
|
+
tr:last-child > th, tr:last-child > td { border-bottom: 0; }
|
|
44
|
+
tr:hover > td { background: #fafcf9; }
|
|
45
|
+
.act { display: inline-flex; align-items: center; justify-content: center; border: 1px solid #c8d5cc; background: #fff; color: #344c3d; border-radius: 7px; padding: 8px 14px; min-height: 38px; text-decoration: none; font-size: 13px; font-weight: 550; line-height: 1.5; }
|
|
46
|
+
.act:hover { background: #f4f8f3; border-color: #8ba695; }
|
|
47
|
+
.act.primary { background: var(--kiwi); color: #fff; border-color: var(--kiwi); }
|
|
48
|
+
.act.primary:hover { background: #164a34; }
|
|
49
|
+
.act.danger { color: #a03933; border-color: #e5c2bd; }
|
|
50
|
+
.act.danger:hover { background: #fff4f2; }
|
|
51
|
+
textarea, input[type=text], input[type=password] { width: 100%; max-width: 100%; border: 1px solid #c8d5cc; border-radius: 7px; padding: 10px 12px; color: #23342d; background: #fcfdfb; font: 13px ui-monospace, SFMono-Regular, monospace; line-height: 1.6; }
|
|
52
|
+
textarea { resize: vertical; }
|
|
53
|
+
input::placeholder, textarea::placeholder { color: #69796e; }
|
|
54
|
+
input[type=file] { min-width: 0; max-width: 100%; border: 1px dashed #b4c9b9; border-radius: 8px; padding: 10px; background: #f7faf5; font-size: 13px; }
|
|
55
|
+
input[type=file]::file-selector-button { border: 1px solid #c8d5cc; border-radius: 5px; background: #fff; color: #344c3d; padding: 6px 10px; margin-right: 10px; cursor: pointer; }
|
|
56
|
+
input[type=checkbox] { accent-color: var(--kiwi); width: 16px; height: 16px; vertical-align: middle; }
|
|
57
|
+
.muted { color: var(--muted); font-size: 12px; line-height: 1.8; }
|
|
58
|
+
label { font-size: 13px; }
|
|
59
|
+
select { border: 1px solid #c8d5cc; border-radius: 7px; padding: 8px 12px; font-size: 13px; color: #23342d; background: #fff; max-width: 100%; }
|
|
60
|
+
.login-card { max-width: 600px; padding: 32px; }
|
|
61
|
+
.empty-state { padding: 24px 16px; background: #f8faf6; border: 1px dashed #d5e1d5; border-radius: 8px; }
|
|
62
|
+
@media (max-width: 640px) {
|
|
63
|
+
.card, .login-card { padding: 20px 16px; border-radius: 10px; margin-bottom: 16px; }
|
|
64
|
+
.card h2 { font-size: 15px; margin-bottom: 14px; }
|
|
65
|
+
}
|
|
66
|
+
@media (prefers-reduced-motion: no-preference) { .act { transition: background-color .15s, border-color .15s; } }
|
|
67
|
+
`;
|
|
68
|
+
//# sourceMappingURL=theme.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.js","sourceRoot":"","sources":["../../src/merchant-ui/theme.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4CjC,CAAC"}
|
package/package.json
CHANGED