@nexus-cross/design-system 1.0.12 → 1.0.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/cursor-rules/CLAUDE.md +80 -0
- package/dist/chunks/{chunk-BQ6GJJB6.mjs → chunk-6ECGMUT6.mjs} +1 -1
- package/dist/chunks/{chunk-2WM23PO6.js → chunk-K574BYHQ.js} +7 -7
- package/dist/chunks/{chunk-WXMMOQXZ.js → chunk-V35IEPRL.js} +1 -1
- package/dist/chunks/{chunk-HI5XZ4PB.mjs → chunk-Z4YM7LU3.mjs} +7 -7
- package/dist/components/ToggleGroup.d.ts +2 -1
- package/dist/components/ToggleGroup.d.ts.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.mjs +1 -1
- package/dist/schemas/_all.json +8 -2
- package/dist/schemas/toggle-group.d.ts +10 -5
- package/dist/schemas/toggle-group.d.ts.map +1 -1
- package/dist/schemas/toggleGroup.json +8 -2
- package/dist/schemas.js +4 -3
- package/dist/schemas.mjs +4 -3
- package/dist/styles/.generated/built.d.ts +1 -1
- package/dist/styles/.generated/built.d.ts.map +1 -1
- package/dist/styles/layer.js +2 -2
- package/dist/styles/layer.mjs +1 -1
- package/dist/styles.css +24 -12
- package/dist/styles.js +2 -2
- package/dist/styles.layered.css +24 -12
- package/dist/styles.mjs +1 -1
- package/dist/toggle-group.js +3 -3
- package/dist/toggle-group.mjs +1 -1
- package/package.json +2 -2
- package/scripts/setup-cursor-rules.cjs +14 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"built.d.ts","sourceRoot":"","sources":["../../../src/styles/.generated/built.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,GAAG,
|
|
1
|
+
{"version":3,"file":"built.d.ts","sourceRoot":"","sources":["../../../src/styles/.generated/built.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,GAAG,mlpIAA2y+G,CAAC;AACrz+G,eAAe,GAAG,CAAC"}
|
package/dist/styles/layer.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkV35IEPRL_js = require('../chunks/chunk-V35IEPRL.js');
|
|
4
4
|
require('../chunks/chunk-JNMCYWGY.js');
|
|
5
5
|
|
|
6
6
|
// src/styles/inject-layer.ts
|
|
@@ -9,7 +9,7 @@ var __nexus_styles_injected__ = typeof document !== "undefined" && !document.get
|
|
|
9
9
|
const style = document.createElement("style");
|
|
10
10
|
style.id = STYLE_ID;
|
|
11
11
|
style.textContent = `@layer nexus {
|
|
12
|
-
${
|
|
12
|
+
${chunkV35IEPRL_js.built_default}
|
|
13
13
|
}`;
|
|
14
14
|
document.head.appendChild(style);
|
|
15
15
|
return true;
|
package/dist/styles/layer.mjs
CHANGED
package/dist/styles.css
CHANGED
|
@@ -2251,18 +2251,27 @@
|
|
|
2251
2251
|
top: 0;
|
|
2252
2252
|
left: 0;
|
|
2253
2253
|
border-radius: var(--radius-corner-sm, 0.25rem);
|
|
2254
|
-
background: var(--color-surface-default);
|
|
2255
|
-
box-shadow: var(--shadow-sm);
|
|
2256
2254
|
pointer-events: none;
|
|
2257
2255
|
z-index: 0;
|
|
2258
2256
|
will-change: transform, width;
|
|
2259
2257
|
}
|
|
2258
|
+
.nexus-toggle-group--default .nexus-toggle-group__indicator {
|
|
2259
|
+
background: var(--color-surface-default);
|
|
2260
|
+
box-shadow: var(--shadow-sm);
|
|
2261
|
+
}
|
|
2262
|
+
.nexus-toggle-group--primary .nexus-toggle-group__indicator {
|
|
2263
|
+
background: var(--color-accent-primary);
|
|
2264
|
+
}
|
|
2265
|
+
.nexus-toggle-group--secondary .nexus-toggle-group__indicator {
|
|
2266
|
+
background: var(--color-accent-secondary);
|
|
2267
|
+
}
|
|
2260
2268
|
.nexus-toggle-group__indicator--animated {
|
|
2261
2269
|
transition:
|
|
2262
2270
|
transform 200ms cubic-bezier(0, 0, 0.2, 1),
|
|
2263
2271
|
width 200ms cubic-bezier(0, 0, 0.2, 1);
|
|
2264
2272
|
}
|
|
2265
|
-
.nexus-toggle-group--
|
|
2273
|
+
.nexus-toggle-group--primary,
|
|
2274
|
+
.nexus-toggle-group--secondary {
|
|
2266
2275
|
border: 1px solid var(--color-border-default);
|
|
2267
2276
|
padding: var(--spacing-padding-2xs, 0.25rem);
|
|
2268
2277
|
gap: 0;
|
|
@@ -2297,16 +2306,15 @@
|
|
|
2297
2306
|
.nexus-toggle-group--default .nexus-toggle-group__item[data-state='on'] {
|
|
2298
2307
|
color: var(--color-text-primary);
|
|
2299
2308
|
}
|
|
2300
|
-
.nexus-toggle-group--
|
|
2301
|
-
|
|
2309
|
+
.nexus-toggle-group--primary .nexus-toggle-group__item[data-state='on'] {
|
|
2310
|
+
color: var(--color-accent-on-primary);
|
|
2302
2311
|
}
|
|
2303
|
-
.nexus-toggle-group--
|
|
2304
|
-
|
|
2305
|
-
color: var(--color-accent-primary-intense);
|
|
2312
|
+
.nexus-toggle-group--secondary .nexus-toggle-group__item[data-state='on'] {
|
|
2313
|
+
color: var(--color-accent-on-secondary);
|
|
2306
2314
|
}
|
|
2307
|
-
.nexus-toggle-group--
|
|
2308
|
-
|
|
2309
|
-
background: var(--color-surface-hover);
|
|
2315
|
+
.nexus-toggle-group--primary .nexus-toggle-group__item:not([data-state='on']):hover,
|
|
2316
|
+
.nexus-toggle-group--secondary .nexus-toggle-group__item:not([data-state='on']):hover {
|
|
2317
|
+
background: var(--color-surface-default-hover);
|
|
2310
2318
|
color: var(--color-text-primary);
|
|
2311
2319
|
}
|
|
2312
2320
|
.nexus-toggle-group--sm .nexus-toggle-group__item {
|
|
@@ -2326,9 +2334,13 @@
|
|
|
2326
2334
|
flex-shrink: 0;
|
|
2327
2335
|
color: var(--color-icon-secondary);
|
|
2328
2336
|
}
|
|
2329
|
-
.nexus-toggle-group__item[data-state='on'] .nexus-toggle-group__icon {
|
|
2337
|
+
.nexus-toggle-group--default .nexus-toggle-group__item[data-state='on'] .nexus-toggle-group__icon {
|
|
2330
2338
|
color: var(--color-icon-primary);
|
|
2331
2339
|
}
|
|
2340
|
+
.nexus-toggle-group--primary .nexus-toggle-group__item[data-state='on'] .nexus-toggle-group__icon,
|
|
2341
|
+
.nexus-toggle-group--secondary .nexus-toggle-group__item[data-state='on'] .nexus-toggle-group__icon {
|
|
2342
|
+
color: currentColor;
|
|
2343
|
+
}
|
|
2332
2344
|
|
|
2333
2345
|
/* ═══════════════════════════════════════════
|
|
2334
2346
|
Slider
|
package/dist/styles.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkV35IEPRL_js = require('./chunks/chunk-V35IEPRL.js');
|
|
4
4
|
require('./chunks/chunk-JNMCYWGY.js');
|
|
5
5
|
|
|
6
6
|
// src/styles/inject.ts
|
|
@@ -8,7 +8,7 @@ var STYLE_ID = "__nexus-ds__";
|
|
|
8
8
|
var __nexus_styles_injected__ = typeof document !== "undefined" && !document.getElementById(STYLE_ID) ? (() => {
|
|
9
9
|
const style = document.createElement("style");
|
|
10
10
|
style.id = STYLE_ID;
|
|
11
|
-
style.textContent =
|
|
11
|
+
style.textContent = chunkV35IEPRL_js.built_default;
|
|
12
12
|
document.head.appendChild(style);
|
|
13
13
|
return true;
|
|
14
14
|
})() : false;
|
package/dist/styles.layered.css
CHANGED
|
@@ -2252,18 +2252,27 @@
|
|
|
2252
2252
|
top: 0;
|
|
2253
2253
|
left: 0;
|
|
2254
2254
|
border-radius: var(--radius-corner-sm, 0.25rem);
|
|
2255
|
-
background: var(--color-surface-default);
|
|
2256
|
-
box-shadow: var(--shadow-sm);
|
|
2257
2255
|
pointer-events: none;
|
|
2258
2256
|
z-index: 0;
|
|
2259
2257
|
will-change: transform, width;
|
|
2260
2258
|
}
|
|
2259
|
+
.nexus-toggle-group--default .nexus-toggle-group__indicator {
|
|
2260
|
+
background: var(--color-surface-default);
|
|
2261
|
+
box-shadow: var(--shadow-sm);
|
|
2262
|
+
}
|
|
2263
|
+
.nexus-toggle-group--primary .nexus-toggle-group__indicator {
|
|
2264
|
+
background: var(--color-accent-primary);
|
|
2265
|
+
}
|
|
2266
|
+
.nexus-toggle-group--secondary .nexus-toggle-group__indicator {
|
|
2267
|
+
background: var(--color-accent-secondary);
|
|
2268
|
+
}
|
|
2261
2269
|
.nexus-toggle-group__indicator--animated {
|
|
2262
2270
|
transition:
|
|
2263
2271
|
transform 200ms cubic-bezier(0, 0, 0.2, 1),
|
|
2264
2272
|
width 200ms cubic-bezier(0, 0, 0.2, 1);
|
|
2265
2273
|
}
|
|
2266
|
-
.nexus-toggle-group--
|
|
2274
|
+
.nexus-toggle-group--primary,
|
|
2275
|
+
.nexus-toggle-group--secondary {
|
|
2267
2276
|
border: 1px solid var(--color-border-default);
|
|
2268
2277
|
padding: var(--spacing-padding-2xs, 0.25rem);
|
|
2269
2278
|
gap: 0;
|
|
@@ -2298,16 +2307,15 @@
|
|
|
2298
2307
|
.nexus-toggle-group--default .nexus-toggle-group__item[data-state='on'] {
|
|
2299
2308
|
color: var(--color-text-primary);
|
|
2300
2309
|
}
|
|
2301
|
-
.nexus-toggle-group--
|
|
2302
|
-
|
|
2310
|
+
.nexus-toggle-group--primary .nexus-toggle-group__item[data-state='on'] {
|
|
2311
|
+
color: var(--color-accent-on-primary);
|
|
2303
2312
|
}
|
|
2304
|
-
.nexus-toggle-group--
|
|
2305
|
-
|
|
2306
|
-
color: var(--color-accent-primary-intense);
|
|
2313
|
+
.nexus-toggle-group--secondary .nexus-toggle-group__item[data-state='on'] {
|
|
2314
|
+
color: var(--color-accent-on-secondary);
|
|
2307
2315
|
}
|
|
2308
|
-
.nexus-toggle-group--
|
|
2309
|
-
|
|
2310
|
-
background: var(--color-surface-hover);
|
|
2316
|
+
.nexus-toggle-group--primary .nexus-toggle-group__item:not([data-state='on']):hover,
|
|
2317
|
+
.nexus-toggle-group--secondary .nexus-toggle-group__item:not([data-state='on']):hover {
|
|
2318
|
+
background: var(--color-surface-default-hover);
|
|
2311
2319
|
color: var(--color-text-primary);
|
|
2312
2320
|
}
|
|
2313
2321
|
.nexus-toggle-group--sm .nexus-toggle-group__item {
|
|
@@ -2327,9 +2335,13 @@
|
|
|
2327
2335
|
flex-shrink: 0;
|
|
2328
2336
|
color: var(--color-icon-secondary);
|
|
2329
2337
|
}
|
|
2330
|
-
.nexus-toggle-group__item[data-state='on'] .nexus-toggle-group__icon {
|
|
2338
|
+
.nexus-toggle-group--default .nexus-toggle-group__item[data-state='on'] .nexus-toggle-group__icon {
|
|
2331
2339
|
color: var(--color-icon-primary);
|
|
2332
2340
|
}
|
|
2341
|
+
.nexus-toggle-group--primary .nexus-toggle-group__item[data-state='on'] .nexus-toggle-group__icon,
|
|
2342
|
+
.nexus-toggle-group--secondary .nexus-toggle-group__item[data-state='on'] .nexus-toggle-group__icon {
|
|
2343
|
+
color: currentColor;
|
|
2344
|
+
}
|
|
2333
2345
|
|
|
2334
2346
|
/* ═══════════════════════════════════════════
|
|
2335
2347
|
Slider
|
package/dist/styles.mjs
CHANGED
package/dist/toggle-group.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkK574BYHQ_js = require('./chunks/chunk-K574BYHQ.js');
|
|
4
4
|
require('./chunks/chunk-CZC76ZD5.js');
|
|
5
5
|
require('./chunks/chunk-JNMCYWGY.js');
|
|
6
6
|
|
|
@@ -8,9 +8,9 @@ require('./chunks/chunk-JNMCYWGY.js');
|
|
|
8
8
|
|
|
9
9
|
Object.defineProperty(exports, "ToggleGroup", {
|
|
10
10
|
enumerable: true,
|
|
11
|
-
get: function () { return
|
|
11
|
+
get: function () { return chunkK574BYHQ_js.ToggleGroup; }
|
|
12
12
|
});
|
|
13
13
|
Object.defineProperty(exports, "toggleGroupVariants", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunkK574BYHQ_js.toggleGroupVariants; }
|
|
16
16
|
});
|
package/dist/toggle-group.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nexus-cross/design-system",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.13",
|
|
4
4
|
"description": "NEXUS Design System UI Components",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -348,7 +348,7 @@
|
|
|
348
348
|
"typescript": "^5.0.0",
|
|
349
349
|
"vitest": "^1.6.1",
|
|
350
350
|
"zod-to-json-schema": "^3.25.2",
|
|
351
|
-
"@nexus-cross/tokens": "1.0.
|
|
351
|
+
"@nexus-cross/tokens": "1.0.13"
|
|
352
352
|
},
|
|
353
353
|
"scripts": {
|
|
354
354
|
"postinstall": "node scripts/setup-cursor-rules.cjs",
|
|
@@ -96,6 +96,20 @@ function run() {
|
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
+
// CLAUDE.md → project root (Claude Code support)
|
|
100
|
+
const claudeMdSrc = path.join(rulesSourceDir, 'CLAUDE.md');
|
|
101
|
+
if (fs.existsSync(claudeMdSrc)) {
|
|
102
|
+
const dest = path.join(projectRoot, 'CLAUDE.md');
|
|
103
|
+
const srcContent = fs.readFileSync(claudeMdSrc, 'utf-8');
|
|
104
|
+
const destExists = fs.existsSync(dest);
|
|
105
|
+
const destContent = destExists ? fs.readFileSync(dest, 'utf-8') : '';
|
|
106
|
+
if (!destExists || srcContent !== destContent) {
|
|
107
|
+
fs.writeFileSync(dest, srcContent, 'utf-8');
|
|
108
|
+
installed++;
|
|
109
|
+
console.log(`[@nexus-cross/design-system] ${destExists ? 'updated' : 'installed'}: CLAUDE.md`);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
99
113
|
if (installed === 0) {
|
|
100
114
|
console.log('[@nexus-cross] Cursor rules are already up to date.');
|
|
101
115
|
} else {
|