@nexus-cross/design-system 1.0.11 → 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.
@@ -1 +1 @@
1
- {"version":3,"file":"built.d.ts","sourceRoot":"","sources":["../../../src/styles/.generated/built.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,GAAG,q5nIAA6m9G,CAAC;AACvn9G,eAAe,GAAG,CAAC"}
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"}
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunk7B2CTQKB_js = require('../chunks/chunk-7B2CTQKB.js');
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
- ${chunk7B2CTQKB_js.built_default}
12
+ ${chunkV35IEPRL_js.built_default}
13
13
  }`;
14
14
  document.head.appendChild(style);
15
15
  return true;
@@ -1,4 +1,4 @@
1
- import { built_default } from '../chunks/chunk-6J7TZ4GP.mjs';
1
+ import { built_default } from '../chunks/chunk-6ECGMUT6.mjs';
2
2
  import '../chunks/chunk-CVYXRSXT.mjs';
3
3
 
4
4
  // src/styles/inject-layer.ts
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--outline {
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--outline .nexus-toggle-group__item {
2301
- padding-inline: var(--spacing-padding-sm, 0.75rem);
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--outline .nexus-toggle-group__item[data-state='on'] {
2304
- background: var(--color-accent-primary-dim);
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--outline
2308
- .nexus-toggle-group__item:not([data-state='on']):hover {
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
@@ -4275,7 +4287,8 @@
4275
4287
  line-height: 1.5;
4276
4288
  letter-spacing: var(--letter-spacing-text-xs, -0.01em);
4277
4289
  color: var(--color-text-tertiary);
4278
- white-space: nowrap;
4290
+ word-break: keep-all;
4291
+ overflow-wrap: break-word;
4279
4292
  }
4280
4293
  .nexus-image-upload__input {
4281
4294
  position: absolute;
@@ -4298,14 +4311,16 @@
4298
4311
  padding: 6px 6px 0 0;
4299
4312
  overflow: visible;
4300
4313
  }
4301
- .nexus-image-upload__preview-wrapper {
4314
+ .nexus-image-upload__preview-area {
4302
4315
  position: relative;
4303
4316
  flex-shrink: 0;
4317
+ }
4318
+ .nexus-image-upload__preview-wrapper {
4304
4319
  width: 116px;
4305
4320
  height: 116px;
4306
4321
  border-radius: var(--radius-corner-md, 8px);
4307
4322
  border: 1px solid var(--color-border-default);
4308
- overflow: visible;
4323
+ overflow: hidden;
4309
4324
  }
4310
4325
  .nexus-image-upload--sm .nexus-image-upload__preview-wrapper {
4311
4326
  width: 80px;
@@ -4318,7 +4333,7 @@
4318
4333
  .nexus-image-upload__preview {
4319
4334
  width: 100%;
4320
4335
  height: 100%;
4321
- object-fit: cover;
4336
+ object-fit: contain;
4322
4337
  pointer-events: none;
4323
4338
  border-radius: var(--radius-corner-md, 8px);
4324
4339
  }
package/dist/styles.js CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunk7B2CTQKB_js = require('./chunks/chunk-7B2CTQKB.js');
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 = chunk7B2CTQKB_js.built_default;
11
+ style.textContent = chunkV35IEPRL_js.built_default;
12
12
  document.head.appendChild(style);
13
13
  return true;
14
14
  })() : false;
@@ -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--outline {
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--outline .nexus-toggle-group__item {
2302
- padding-inline: var(--spacing-padding-sm, 0.75rem);
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--outline .nexus-toggle-group__item[data-state='on'] {
2305
- background: var(--color-accent-primary-dim);
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--outline
2309
- .nexus-toggle-group__item:not([data-state='on']):hover {
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
@@ -4276,7 +4288,8 @@
4276
4288
  line-height: 1.5;
4277
4289
  letter-spacing: var(--letter-spacing-text-xs, -0.01em);
4278
4290
  color: var(--color-text-tertiary);
4279
- white-space: nowrap;
4291
+ word-break: keep-all;
4292
+ overflow-wrap: break-word;
4280
4293
  }
4281
4294
  .nexus-image-upload__input {
4282
4295
  position: absolute;
@@ -4299,14 +4312,16 @@
4299
4312
  padding: 6px 6px 0 0;
4300
4313
  overflow: visible;
4301
4314
  }
4302
- .nexus-image-upload__preview-wrapper {
4315
+ .nexus-image-upload__preview-area {
4303
4316
  position: relative;
4304
4317
  flex-shrink: 0;
4318
+ }
4319
+ .nexus-image-upload__preview-wrapper {
4305
4320
  width: 116px;
4306
4321
  height: 116px;
4307
4322
  border-radius: var(--radius-corner-md, 8px);
4308
4323
  border: 1px solid var(--color-border-default);
4309
- overflow: visible;
4324
+ overflow: hidden;
4310
4325
  }
4311
4326
  .nexus-image-upload--sm .nexus-image-upload__preview-wrapper {
4312
4327
  width: 80px;
@@ -4319,7 +4334,7 @@
4319
4334
  .nexus-image-upload__preview {
4320
4335
  width: 100%;
4321
4336
  height: 100%;
4322
- object-fit: cover;
4337
+ object-fit: contain;
4323
4338
  pointer-events: none;
4324
4339
  border-radius: var(--radius-corner-md, 8px);
4325
4340
  }
package/dist/styles.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { built_default } from './chunks/chunk-6J7TZ4GP.mjs';
1
+ import { built_default } from './chunks/chunk-6ECGMUT6.mjs';
2
2
  import './chunks/chunk-CVYXRSXT.mjs';
3
3
 
4
4
  // src/styles/inject.ts
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkCV4GMFWP_js = require('./chunks/chunk-CV4GMFWP.js');
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 chunkCV4GMFWP_js.ToggleGroup; }
11
+ get: function () { return chunkK574BYHQ_js.ToggleGroup; }
12
12
  });
13
13
  Object.defineProperty(exports, "toggleGroupVariants", {
14
14
  enumerable: true,
15
- get: function () { return chunkCV4GMFWP_js.toggleGroupVariants; }
15
+ get: function () { return chunkK574BYHQ_js.toggleGroupVariants; }
16
16
  });
@@ -1,3 +1,3 @@
1
- export { ToggleGroup, toggleGroupVariants } from './chunks/chunk-P73MEU7N.mjs';
1
+ export { ToggleGroup, toggleGroupVariants } from './chunks/chunk-Z4YM7LU3.mjs';
2
2
  import './chunks/chunk-MCKOWMLS.mjs';
3
3
  import './chunks/chunk-CVYXRSXT.mjs';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nexus-cross/design-system",
3
- "version": "1.0.11",
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.11"
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 {