@taicode/common-web 3.7.11 → 3.7.13
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/output/components/alert.d.ts +1 -1
- package/output/components/alert.d.ts.map +1 -1
- package/output/components/alert.js +11 -1
- package/output/components/badge.js +3 -3
- package/output/components/breadcrumb.d.ts +13 -0
- package/output/components/breadcrumb.d.ts.map +1 -0
- package/output/components/breadcrumb.js +46 -0
- package/output/components/button.js +1 -1
- package/output/components/can/index.d.ts +18 -0
- package/output/components/can/index.d.ts.map +1 -0
- package/output/components/can/index.js +17 -0
- package/output/components/card.d.ts +8 -0
- package/output/components/card.d.ts.map +1 -1
- package/output/components/card.js +12 -7
- package/output/components/chart.d.ts +14 -3
- package/output/components/chart.d.ts.map +1 -1
- package/output/components/chart.js +2 -1
- package/output/components/footer/index.d.ts +1 -1
- package/output/components/footer/index.d.ts.map +1 -1
- package/output/components/footer/index.js +2 -1
- package/output/components/index.d.ts +3 -0
- package/output/components/index.d.ts.map +1 -1
- package/output/components/index.js +3 -0
- package/output/components/input.js +1 -1
- package/output/components/label.js +1 -1
- package/output/components/loading-button/index.d.ts.map +1 -1
- package/output/components/loading-button/index.js +4 -6
- package/output/components/route-pending-indicator/index.d.ts +1 -1
- package/output/components/route-pending-indicator/index.d.ts.map +1 -1
- package/output/components/route-pending-indicator/index.js +2 -1
- package/output/components/stat.d.ts +52 -0
- package/output/components/stat.d.ts.map +1 -0
- package/output/components/stat.js +48 -0
- package/output/components/table.js +4 -4
- package/output/components/textarea.js +1 -1
- package/output/features/confirm-dialog/index.d.ts.map +1 -1
- package/output/features/confirm-dialog/index.js +1 -1
- package/output/hooks/use-observer/use-observer.test.js +1 -1
- package/output/layout/dashboard/index.d.ts +3 -0
- package/output/layout/dashboard/index.d.ts.map +1 -1
- package/output/layout/dashboard/index.js +1 -1
- package/output/services/access-control/access-control.d.ts +96 -0
- package/output/services/access-control/access-control.d.ts.map +1 -0
- package/output/services/access-control/access-control.js +218 -0
- package/output/services/access-control/access-control.test.d.ts +2 -0
- package/output/services/access-control/access-control.test.d.ts.map +1 -0
- package/output/services/access-control/access-control.test.js +190 -0
- package/output/services/access-control/context.d.ts +15 -0
- package/output/services/access-control/context.d.ts.map +1 -0
- package/output/services/access-control/context.js +18 -0
- package/output/services/access-control/index.d.ts +5 -0
- package/output/services/access-control/index.d.ts.map +1 -0
- package/output/services/access-control/index.js +2 -0
- package/output/services/cache-api/cache-api.test.js +4 -6
- package/output/services/service/service.d.ts +1 -1
- package/output/services/service/service.d.ts.map +1 -1
- package/output/services/service/service.js +11 -14
- package/output/services/service/service.test.js +2 -2
- package/output/services/side-cache/side-cache.js +1 -1
- package/output/utils/merge-class-names/index.test.js +2 -1
- package/package.json +14 -6
- package/styles.css +3 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { AccessControl } from './access-control.js';
|
|
3
|
+
export type AccessControlProviderProps = {
|
|
4
|
+
/** 应用自己持有并配置好的实例;守卫与组件必须拿到同一个对象 */
|
|
5
|
+
control: AccessControl;
|
|
6
|
+
children?: ReactNode;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* 把访问控制实例注入 React 树。
|
|
10
|
+
* 实例由应用创建(其中包含 loader 配置),common-web 不注册任何全局单例。
|
|
11
|
+
*/
|
|
12
|
+
export declare function AccessControlProvider(props: AccessControlProviderProps): import("react").JSX.Element;
|
|
13
|
+
/** 读取当前应用的访问控制实例;读取 observable 字段即可获得自动重渲染 */
|
|
14
|
+
export declare function useAccessControl(): AccessControl;
|
|
15
|
+
//# sourceMappingURL=context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../source/services/access-control/context.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAIxD,MAAM,MAAM,0BAA0B,GAAG;IACvC,mCAAmC;IACnC,OAAO,EAAE,aAAa,CAAA;IACtB,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB,CAAA;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,0BAA0B,+BAMtE;AAED,8CAA8C;AAC9C,wBAAgB,gBAAgB,IAAI,aAAa,CAQhD"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { createContext, useContext } from 'react';
|
|
3
|
+
const AccessControlContext = createContext(null);
|
|
4
|
+
/**
|
|
5
|
+
* 把访问控制实例注入 React 树。
|
|
6
|
+
* 实例由应用创建(其中包含 loader 配置),common-web 不注册任何全局单例。
|
|
7
|
+
*/
|
|
8
|
+
export function AccessControlProvider(props) {
|
|
9
|
+
return (_jsx(AccessControlContext.Provider, { value: props.control, children: props.children }));
|
|
10
|
+
}
|
|
11
|
+
/** 读取当前应用的访问控制实例;读取 observable 字段即可获得自动重渲染 */
|
|
12
|
+
export function useAccessControl() {
|
|
13
|
+
const control = useContext(AccessControlContext);
|
|
14
|
+
if (control === null) {
|
|
15
|
+
throw new Error('useAccessControl 必须在 AccessControlProvider 内部使用');
|
|
16
|
+
}
|
|
17
|
+
return control;
|
|
18
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { AccessControl, createAccessKey } from './access-control.js';
|
|
2
|
+
export type { AccessControlOptions, AccessDecision, AccessEffect, AccessSnapshotLoader, } from './access-control.js';
|
|
3
|
+
export { AccessControlProvider, useAccessControl } from './context.js';
|
|
4
|
+
export type { AccessControlProviderProps } from './context.js';
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../source/services/access-control/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AACpE,YAAY,EACV,oBAAoB,EACpB,cAAc,EACd,YAAY,EACZ,oBAAoB,GACrB,MAAM,qBAAqB,CAAA;AAE5B,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AACtE,YAAY,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAA"}
|
|
@@ -65,7 +65,7 @@ describe('CacheApi', () => {
|
|
|
65
65
|
try {
|
|
66
66
|
await cacheApi.call('param1', 123);
|
|
67
67
|
}
|
|
68
|
-
catch (
|
|
68
|
+
catch (_a) {
|
|
69
69
|
// 忽略错误
|
|
70
70
|
}
|
|
71
71
|
expect(cacheApi.empty).toBe(true);
|
|
@@ -208,12 +208,10 @@ describe('CacheApi', () => {
|
|
|
208
208
|
expect(descriptor === null || descriptor === void 0 ? void 0 : descriptor.set).toBeUndefined();
|
|
209
209
|
});
|
|
210
210
|
it('value 变化应该触发 MobX 反应', async () => {
|
|
211
|
-
let reactionCount = 0;
|
|
212
211
|
let lastValue = undefined;
|
|
213
212
|
// 创建一个简单的反应来监听 value 变化
|
|
214
213
|
const disposer = runInAction(() => {
|
|
215
214
|
const reaction = () => {
|
|
216
|
-
reactionCount++;
|
|
217
215
|
lastValue = cacheApi.value;
|
|
218
216
|
};
|
|
219
217
|
// 初始调用
|
|
@@ -269,7 +267,7 @@ describe('CacheApi', () => {
|
|
|
269
267
|
try {
|
|
270
268
|
await cacheApi.call('test', 1);
|
|
271
269
|
}
|
|
272
|
-
catch (
|
|
270
|
+
catch (_a) {
|
|
273
271
|
// 忽略错误
|
|
274
272
|
}
|
|
275
273
|
expect(cacheApi.loading).toBe(false);
|
|
@@ -327,7 +325,7 @@ describe('CacheApi', () => {
|
|
|
327
325
|
try {
|
|
328
326
|
await errorPromise;
|
|
329
327
|
}
|
|
330
|
-
catch (
|
|
328
|
+
catch (_a) {
|
|
331
329
|
// 忽略错误
|
|
332
330
|
}
|
|
333
331
|
// 还有一个成功的请求在进行,loading 仍为 true
|
|
@@ -536,7 +534,7 @@ describe('CacheApi', () => {
|
|
|
536
534
|
try {
|
|
537
535
|
await cacheApi.call('test', 1);
|
|
538
536
|
}
|
|
539
|
-
catch (
|
|
537
|
+
catch (_a) {
|
|
540
538
|
// 忽略错误
|
|
541
539
|
}
|
|
542
540
|
// 重置应该成功
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../source/services/service/service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;
|
|
1
|
+
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../source/services/service/service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AAGH,OAAO,KAAkE,MAAM,OAAO,CAAA;AAEtF;;GAEG;AACH,KAAK,YAAY,CAAC,CAAC,GAAG,OAAO,IAAI,KAAK,GAAG,IAAI,EAAE,KAAK,EAAE,KAAK,CAAC,CAAA;AAE5D;;;;GAIG;AACH,KAAK,YAAY,CAAC,CAAC,GAAG,OAAO,IAAI,YAAY,CAAC,CAAC,CAAC,GAAG;IAAE,OAAO,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC;IAAC,QAAQ,EAAE,CAAC,CAAA;CAAE,CAAA;AAW5F;;;GAGG;AACH,cAAM,eAAe;IACnB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAmC;IAC1D,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAmC;IAC9D,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAiB;gBAE7B,MAAM,CAAC,EAAE,eAAe;IAIpC,iBAAiB;IACjB,QAAQ,CAAC,OAAO,EAAE,YAAY,EAAE,KAAK,EAAE,OAAO;IAI9C,yBAAyB;IACzB,OAAO,CAAC,IAAI;IAQZ,4BAA4B;IAC5B,GAAG,CAAC,CAAC,EAAE,YAAY,EAAE,YAAY,CAAC,CAAC,CAAC,GAAG,CAAC;IAQxC,kCAAkC;IAClC,WAAW,CAAC,CAAC,EAAE,YAAY,EAAE,YAAY,CAAC,CAAC,CAAC,GAAG,CAAC;CAKjD;AAsDD;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,UAAU,CAAC,CAAC,EAAE,MAAM,EAAE,YAAY,CAAC,CAAC,CAAC,GAAG,CAAC,CAAA;AACzD,wBAAgB,UAAU,CAAC,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,OAAO,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;AAsCzF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAAE,YAAY,EAAE,YAAY,CAAC,CAAC,CAAC,GAAG,CAAC,CAAA;AACpE,wBAAgB,eAAe,CAAC,CAAC,EAAE,CAAC,EAAE,YAAY,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,OAAO,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;AAmEpG;;GAEG;AACH,UAAU,oBAAoB;IAC5B;;;;;OAKG;IACH,QAAQ,EAAE,YAAY,EAAE,CAAA;IACxB,UAAU;IACV,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAC1B;AAED;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,oBAAoB,oFAyB1D"}
|
|
@@ -33,8 +33,7 @@
|
|
|
33
33
|
* ```
|
|
34
34
|
*/
|
|
35
35
|
import { reaction, runInAction } from 'mobx';
|
|
36
|
-
import {
|
|
37
|
-
import React, { useContext, useEffect, useMemo, useState, useRef, createElement } from 'react';
|
|
36
|
+
import React, { useContext, useEffect, useMemo, useState, createElement } from 'react';
|
|
38
37
|
const INIT_RETURN_ERROR_MESSAGE = 'Service init must return a boolean value.';
|
|
39
38
|
class InvalidInitReturnError extends Error {
|
|
40
39
|
constructor() {
|
|
@@ -152,20 +151,20 @@ export function useService(target, selector) {
|
|
|
152
151
|
}
|
|
153
152
|
export function useLocalService(ServiceClass, selector) {
|
|
154
153
|
const parentRegistry = useContext(ctx);
|
|
155
|
-
|
|
154
|
+
// 局部实例在整个 Hook 生命周期内保持引用稳定:用 useState 懒初始化,仅在首次渲染创建一次。
|
|
155
|
+
const [serviceInstance] = useState(() => {
|
|
156
|
+
const localRegistry = new ServiceRegistry(parentRegistry);
|
|
157
|
+
return localRegistry.createLocal(ServiceClass);
|
|
158
|
+
});
|
|
156
159
|
const [, refresh] = useState({});
|
|
157
160
|
const [initError, setInitError] = useState(null);
|
|
158
161
|
if (parentRegistry == null) {
|
|
159
162
|
throw new Error('Must be a child of ServiceProvider.');
|
|
160
163
|
}
|
|
161
|
-
if (serviceInstanceRef.current == null) {
|
|
162
|
-
const localRegistry = new ServiceRegistry(parentRegistry);
|
|
163
|
-
serviceInstanceRef.current = localRegistry.createLocal(ServiceClass);
|
|
164
|
-
}
|
|
165
164
|
useEffect(() => {
|
|
166
165
|
if (parentRegistry == null)
|
|
167
166
|
return;
|
|
168
|
-
const service =
|
|
167
|
+
const service = serviceInstance;
|
|
169
168
|
const dispose = reaction(() => {
|
|
170
169
|
if (!selector) {
|
|
171
170
|
return service;
|
|
@@ -177,13 +176,12 @@ export function useLocalService(ServiceClass, selector) {
|
|
|
177
176
|
return result;
|
|
178
177
|
}, () => refresh({}));
|
|
179
178
|
return dispose;
|
|
180
|
-
}, [parentRegistry, selector, ServiceClass]);
|
|
179
|
+
}, [parentRegistry, selector, ServiceClass, serviceInstance]);
|
|
181
180
|
useEffect(() => {
|
|
182
181
|
if (parentRegistry == null)
|
|
183
182
|
return;
|
|
184
183
|
let disposed = false;
|
|
185
|
-
|
|
186
|
-
const service = serviceInstanceRef.current;
|
|
184
|
+
const service = serviceInstance;
|
|
187
185
|
initializeServiceInstance(service).catch((error) => {
|
|
188
186
|
if (error instanceof InvalidInitReturnError && !disposed) {
|
|
189
187
|
setInitError(error);
|
|
@@ -192,11 +190,11 @@ export function useLocalService(ServiceClass, selector) {
|
|
|
192
190
|
return () => {
|
|
193
191
|
disposed = true;
|
|
194
192
|
};
|
|
195
|
-
}, [parentRegistry, ServiceClass]);
|
|
193
|
+
}, [parentRegistry, ServiceClass, serviceInstance]);
|
|
196
194
|
if (initError) {
|
|
197
195
|
throw initError;
|
|
198
196
|
}
|
|
199
|
-
return selector ? selector(
|
|
197
|
+
return selector ? selector(serviceInstance) : serviceInstance;
|
|
200
198
|
}
|
|
201
199
|
/**
|
|
202
200
|
* 服务提供者组件
|
|
@@ -245,7 +243,6 @@ function InitService(props) {
|
|
|
245
243
|
if (services.length == 0)
|
|
246
244
|
return;
|
|
247
245
|
let disposed = false;
|
|
248
|
-
setInitError(prev => (prev === null ? prev : null));
|
|
249
246
|
const initPromises = services.map(async (service) => {
|
|
250
247
|
if (service != null && typeof service === 'object' && 'provide' in service && 'useValue' in service) {
|
|
251
248
|
return;
|
|
@@ -324,9 +324,9 @@ let PlainClass = (() => {
|
|
|
324
324
|
})(),
|
|
325
325
|
_a;
|
|
326
326
|
})();
|
|
327
|
-
// 创建测试用的 Provider 组件
|
|
328
327
|
function createTestProvider(services) {
|
|
329
|
-
return function TestProvider(
|
|
328
|
+
return function TestProvider(params) {
|
|
329
|
+
const { children } = params;
|
|
330
330
|
return (_jsx(ServiceProvider, { services: services, children: children }));
|
|
331
331
|
};
|
|
332
332
|
}
|
|
@@ -45,7 +45,7 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
|
|
|
45
45
|
};
|
|
46
46
|
import { action, computed, observable, runInAction } from 'mobx';
|
|
47
47
|
function isPromiseLike(value) {
|
|
48
|
-
return value != null && typeof value.then === 'function';
|
|
48
|
+
return value != null && typeof value === 'object' && 'then' in value && typeof value.then === 'function';
|
|
49
49
|
}
|
|
50
50
|
let SideCache = (() => {
|
|
51
51
|
var _a, _SideCache_emptyFlag_accessor_storage, _SideCache_currentKey_accessor_storage, _SideCache_cache_accessor_storage;
|
|
@@ -2,6 +2,7 @@ import { describe, expect, it } from 'vitest';
|
|
|
2
2
|
import { mergeClassNames } from './index.js';
|
|
3
3
|
describe('mergeClassNames', () => {
|
|
4
4
|
it('merges conditional and conflicting Tailwind classes', () => {
|
|
5
|
-
|
|
5
|
+
const disabled = false;
|
|
6
|
+
expect(mergeClassNames('px-2', disabled && 'text-muted-foreground', 'px-4')).toBe('px-4');
|
|
6
7
|
});
|
|
7
8
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taicode/common-web",
|
|
3
|
-
"version": "3.7.
|
|
3
|
+
"version": "3.7.13",
|
|
4
4
|
"author": "Alain",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"description": "",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"mobx": ">=6",
|
|
55
55
|
"mobx-react-lite": "^4.1.1",
|
|
56
56
|
"react": ">=18",
|
|
57
|
-
"@taicode/common-base": "^3.7.
|
|
57
|
+
"@taicode/common-base": "^3.7.13"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
60
|
"@headlessui/react": "^2.2.9",
|
|
@@ -79,6 +79,7 @@
|
|
|
79
79
|
},
|
|
80
80
|
"devDependencies": {
|
|
81
81
|
"@babel/plugin-proposal-decorators": "^7.28.0",
|
|
82
|
+
"@eslint/js": "^9.39.3",
|
|
82
83
|
"@needle-di/core": "^1.1.1",
|
|
83
84
|
"@tailwindcss/vite": "^4.1.13",
|
|
84
85
|
"@testing-library/jest-dom": "^6.9.1",
|
|
@@ -86,27 +87,34 @@
|
|
|
86
87
|
"@types/jsoneditor": "^9.9.6",
|
|
87
88
|
"@types/react": "^18.3.28",
|
|
88
89
|
"@vitejs/plugin-react": "^4.7.0",
|
|
89
|
-
"@vitest/ui": "^
|
|
90
|
+
"@vitest/ui": "^4.1.9",
|
|
91
|
+
"@yinxulai/eslint-plugin-peculiar": "^1.0.6",
|
|
92
|
+
"eslint": "^9.39.3",
|
|
93
|
+
"eslint-plugin-react-hooks": "^7.0.1",
|
|
94
|
+
"eslint-plugin-react-refresh": "^0.5.2",
|
|
90
95
|
"execa": "^8.0.1",
|
|
96
|
+
"globals": "^16.5.0",
|
|
91
97
|
"jsdom": "^23.2.0",
|
|
92
98
|
"mobx": "^6.15.0",
|
|
93
99
|
"mobx-react-lite": "^4.1.1",
|
|
94
100
|
"react": "^18.3.1",
|
|
95
101
|
"rollup-plugin-visualizer": "^5.14.0",
|
|
96
102
|
"type-detect": "^4.1.0",
|
|
97
|
-
"
|
|
103
|
+
"typescript-eslint": "^8.56.1",
|
|
104
|
+
"vite": "^6.4.3",
|
|
98
105
|
"vite-plugin-i18next-loader": "^3.0.1",
|
|
99
106
|
"vite-plugin-pwa": "^0.21.2",
|
|
100
107
|
"vite-plugin-svgr": "^4.5.0",
|
|
101
108
|
"vite-tsconfig-paths": "^5.1.4",
|
|
102
|
-
"vitest": "^
|
|
103
|
-
"@taicode/common-base": "^3.7.
|
|
109
|
+
"vitest": "^4.1.9",
|
|
110
|
+
"@taicode/common-base": "^3.7.13"
|
|
104
111
|
},
|
|
105
112
|
"scripts": {
|
|
106
113
|
"test": "vitest",
|
|
107
114
|
"test:ui": "vitest --ui",
|
|
108
115
|
"test:run": "vitest run",
|
|
109
116
|
"test:ci": "vitest run",
|
|
117
|
+
"lint": "eslint .",
|
|
110
118
|
"typecheck": "tsc --noEmit",
|
|
111
119
|
"build": "tsc -p tsconfig.json",
|
|
112
120
|
"dev": "tsc -p tsconfig.json --watch",
|
package/styles.css
CHANGED
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
--accent: oklch(0.97 0 0);
|
|
21
21
|
--accent-foreground: oklch(0.205 0 0);
|
|
22
22
|
--destructive: oklch(0.58 0.22 27);
|
|
23
|
+
--destructive-foreground: oklch(0.985 0 0);
|
|
23
24
|
--border: oklch(0.922 0 0);
|
|
24
25
|
--input: oklch(0.922 0 0);
|
|
25
26
|
--ring: oklch(0.708 0 0);
|
|
@@ -55,6 +56,7 @@
|
|
|
55
56
|
--accent: oklch(0.371 0 0);
|
|
56
57
|
--accent-foreground: oklch(0.985 0 0);
|
|
57
58
|
--destructive: oklch(0.704 0.191 22.216);
|
|
59
|
+
--destructive-foreground: oklch(0.145 0 0);
|
|
58
60
|
--border: oklch(1 0 0 / 10%);
|
|
59
61
|
--input: oklch(1 0 0 / 15%);
|
|
60
62
|
--ring: oklch(0.556 0 0);
|
|
@@ -92,6 +94,7 @@
|
|
|
92
94
|
--color-input: var(--input);
|
|
93
95
|
--color-border: var(--border);
|
|
94
96
|
--color-destructive: var(--destructive);
|
|
97
|
+
--color-destructive-foreground: var(--destructive-foreground);
|
|
95
98
|
--color-accent-foreground: var(--accent-foreground);
|
|
96
99
|
--color-accent: var(--accent);
|
|
97
100
|
--color-muted-foreground: var(--muted-foreground);
|