@nexus-cross/design-system 2.0.4 → 2.0.6

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.
Files changed (41) hide show
  1. package/cursor-rules/nexus-ui-api.mdc +4 -2
  2. package/dist/chunks/chunk-3BMVYJCA.js +15 -0
  3. package/dist/chunks/{chunk-2BINGHGR.js → chunk-EBMOQIY5.js} +17 -3
  4. package/dist/chunks/{chunk-RL5UAEGQ.mjs → chunk-FMUWSORG.mjs} +17 -3
  5. package/dist/chunks/{chunk-JFZLKFFM.mjs → chunk-JBMN6DY3.mjs} +1 -1
  6. package/dist/chunks/chunk-KHCPES3K.mjs +12 -0
  7. package/dist/chunks/{chunk-4ENXP7WH.js → chunk-L7SGGDY3.js} +4 -12
  8. package/dist/chunks/{chunk-WGGBE4ZD.mjs → chunk-QBMDWUQU.mjs} +1 -9
  9. package/dist/chunks/{chunk-7G7U4DP2.js → chunk-YMLPMIWX.js} +1 -1
  10. package/dist/components/NumberInput.d.ts +8 -0
  11. package/dist/components/NumberInput.d.ts.map +1 -1
  12. package/dist/components/PriceInput.d.ts.map +1 -1
  13. package/dist/index.js +8 -7
  14. package/dist/index.mjs +3 -2
  15. package/dist/number-input.js +5 -4
  16. package/dist/number-input.mjs +2 -1
  17. package/dist/price-input.js +4 -3
  18. package/dist/price-input.mjs +2 -1
  19. package/dist/schemas/_all.json +6 -1
  20. package/dist/schemas/number-input.d.ts +3 -0
  21. package/dist/schemas/number-input.d.ts.map +1 -1
  22. package/dist/schemas/numberInput.json +6 -1
  23. package/dist/schemas.js +6 -2
  24. package/dist/schemas.mjs +6 -2
  25. package/dist/styles/.generated/built.d.ts +1 -1
  26. package/dist/styles/.generated/built.d.ts.map +1 -1
  27. package/dist/styles/layer.js +2 -2
  28. package/dist/styles/layer.mjs +1 -1
  29. package/dist/styles.css +8 -8
  30. package/dist/styles.js +2 -2
  31. package/dist/styles.layered.css +8 -8
  32. package/dist/styles.mjs +1 -1
  33. package/dist/tokens/company.css +1 -1
  34. package/dist/tokens/css.css +1 -1
  35. package/dist/tokens-domains/gamehub-vars.css +1 -1
  36. package/dist/tokens-domains/gamehub.css +1 -1
  37. package/dist/tokens-domains/prediction-vars.css +1 -1
  38. package/dist/tokens-domains/prediction.css +1 -1
  39. package/dist/utils/numberFormat.d.ts +15 -0
  40. package/dist/utils/numberFormat.d.ts.map +1 -0
  41. package/package.json +3 -3
@@ -1 +1 @@
1
- {"version":3,"file":"built.d.ts","sourceRoot":"","sources":["../../../src/styles/.generated/built.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,GAAG,qz6JAAwjnI,CAAC;AAClknI,eAAe,GAAG,CAAC"}
1
+ {"version":3,"file":"built.d.ts","sourceRoot":"","sources":["../../../src/styles/.generated/built.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,GAAG,626JAAgnnI,CAAC;AAC1nnI,eAAe,GAAG,CAAC"}
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunk7G7U4DP2_js = require('../chunks/chunk-7G7U4DP2.js');
3
+ var chunkYMLPMIWX_js = require('../chunks/chunk-YMLPMIWX.js');
4
4
 
5
5
  // src/styles/inject-layer.ts
6
6
  var STYLE_ID = "__nexus-ds-layer__";
@@ -8,7 +8,7 @@ var __nexus_styles_injected__ = typeof document !== "undefined" && !document.get
8
8
  const style = document.createElement("style");
9
9
  style.id = STYLE_ID;
10
10
  style.textContent = `@layer nexus {
11
- ${chunk7G7U4DP2_js.built_default}
11
+ ${chunkYMLPMIWX_js.built_default}
12
12
  }`;
13
13
  document.head.appendChild(style);
14
14
  return true;
@@ -1,4 +1,4 @@
1
- import { built_default } from '../chunks/chunk-JFZLKFFM.mjs';
1
+ import { built_default } from '../chunks/chunk-JBMN6DY3.mjs';
2
2
 
3
3
  // src/styles/inject-layer.ts
4
4
  var STYLE_ID = "__nexus-ds-layer__";
package/dist/styles.css CHANGED
@@ -2506,7 +2506,7 @@
2506
2506
  display: none;
2507
2507
  }
2508
2508
  .nexus-toggle-group--outline .nexus-toggle-group__item {
2509
- border: 0.5px solid var(--color-border-medium);
2509
+ border: var(--border-width-stroke-default, 1px) solid var(--color-border-medium);
2510
2510
  border-radius: var(--radius-corner-md, 0.5rem);
2511
2511
  background: transparent;
2512
2512
  color: var(--color-text-tertiary);
@@ -2521,7 +2521,7 @@
2521
2521
  color: var(--color-text-secondary);
2522
2522
  }
2523
2523
  .nexus-toggle-group--outline .nexus-toggle-group__item[data-state='on'] {
2524
- border-color: var(--color-border-strong);
2524
+ border-color: var(--color-border-default-focus);
2525
2525
  color: var(--color-text-primary);
2526
2526
  }
2527
2527
  .nexus-toggle-group--outline .nexus-toggle-group__item[data-state='on'] .nexus-toggle-group__icon {
@@ -2710,20 +2710,20 @@
2710
2710
  }
2711
2711
  .nexus-tooltip--light {
2712
2712
  border: 1px solid var(--color-border-default);
2713
- background: var(--color-static-white);
2714
- color: var(--color-static-black);
2713
+ background: var(--color-surface-default);
2714
+ color: var(--color-text-primary);
2715
2715
  box-shadow: var(--shadow-comp-md);
2716
2716
  }
2717
2717
  .nexus-tooltip--dark {
2718
2718
  border: none;
2719
- background: var(--color-static-black);
2720
- color: var(--color-static-white);
2719
+ background: var(--color-surface-inverted);
2720
+ color: var(--color-text-inverted);
2721
2721
  }
2722
2722
  .nexus-tooltip-arrow--dark {
2723
- fill: var(--color-static-black);
2723
+ fill: var(--color-surface-inverted);
2724
2724
  }
2725
2725
  .nexus-tooltip-arrow--light {
2726
- fill: var(--color-static-white);
2726
+ fill: var(--color-surface-default);
2727
2727
  }
2728
2728
  .nexus-tooltip-trigger {
2729
2729
  cursor: default;
package/dist/styles.js CHANGED
@@ -1,13 +1,13 @@
1
1
  'use strict';
2
2
 
3
- var chunk7G7U4DP2_js = require('./chunks/chunk-7G7U4DP2.js');
3
+ var chunkYMLPMIWX_js = require('./chunks/chunk-YMLPMIWX.js');
4
4
 
5
5
  // src/styles/inject.ts
6
6
  var STYLE_ID = "__nexus-ds__";
7
7
  var __nexus_styles_injected__ = typeof document !== "undefined" && !document.getElementById(STYLE_ID) ? (() => {
8
8
  const style = document.createElement("style");
9
9
  style.id = STYLE_ID;
10
- style.textContent = chunk7G7U4DP2_js.built_default;
10
+ style.textContent = chunkYMLPMIWX_js.built_default;
11
11
  document.head.appendChild(style);
12
12
  return true;
13
13
  })() : false;
@@ -2507,7 +2507,7 @@
2507
2507
  display: none;
2508
2508
  }
2509
2509
  .nexus-toggle-group--outline .nexus-toggle-group__item {
2510
- border: 0.5px solid var(--color-border-medium);
2510
+ border: var(--border-width-stroke-default, 1px) solid var(--color-border-medium);
2511
2511
  border-radius: var(--radius-corner-md, 0.5rem);
2512
2512
  background: transparent;
2513
2513
  color: var(--color-text-tertiary);
@@ -2522,7 +2522,7 @@
2522
2522
  color: var(--color-text-secondary);
2523
2523
  }
2524
2524
  .nexus-toggle-group--outline .nexus-toggle-group__item[data-state='on'] {
2525
- border-color: var(--color-border-strong);
2525
+ border-color: var(--color-border-default-focus);
2526
2526
  color: var(--color-text-primary);
2527
2527
  }
2528
2528
  .nexus-toggle-group--outline .nexus-toggle-group__item[data-state='on'] .nexus-toggle-group__icon {
@@ -2711,20 +2711,20 @@
2711
2711
  }
2712
2712
  .nexus-tooltip--light {
2713
2713
  border: 1px solid var(--color-border-default);
2714
- background: var(--color-static-white);
2715
- color: var(--color-static-black);
2714
+ background: var(--color-surface-default);
2715
+ color: var(--color-text-primary);
2716
2716
  box-shadow: var(--shadow-comp-md);
2717
2717
  }
2718
2718
  .nexus-tooltip--dark {
2719
2719
  border: none;
2720
- background: var(--color-static-black);
2721
- color: var(--color-static-white);
2720
+ background: var(--color-surface-inverted);
2721
+ color: var(--color-text-inverted);
2722
2722
  }
2723
2723
  .nexus-tooltip-arrow--dark {
2724
- fill: var(--color-static-black);
2724
+ fill: var(--color-surface-inverted);
2725
2725
  }
2726
2726
  .nexus-tooltip-arrow--light {
2727
- fill: var(--color-static-white);
2727
+ fill: var(--color-surface-default);
2728
2728
  }
2729
2729
  .nexus-tooltip-trigger {
2730
2730
  cursor: default;
package/dist/styles.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { built_default } from './chunks/chunk-JFZLKFFM.mjs';
1
+ import { built_default } from './chunks/chunk-JBMN6DY3.mjs';
2
2
 
3
3
  // src/styles/inject.ts
4
4
  var STYLE_ID = "__nexus-ds__";
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Company CSS — Tailwind v4 (@theme + .dark)
3
3
  * 자동 생성: scripts/generate-css.js
4
- * 생성일: 2026-05-11T10:03:03.762Z
4
+ * 생성일: 2026-05-21T07:29:09.566Z
5
5
  *
6
6
  * @theme: Tailwind 유틸리티 클래스 자동 생성
7
7
  * :root: 순수 CSS 변수 (var()로 직접 사용)
@@ -2,7 +2,7 @@
2
2
  * Company CSS — 순수 CSS 변수 (:root + .dark)
3
3
  * Tailwind 없이 var(--*) 로 사용 가능
4
4
  * 자동 생성: scripts/generate-css.js
5
- * 생성일: 2026-05-11T10:03:03.767Z
5
+ * 생성일: 2026-05-21T07:29:09.570Z
6
6
  */
7
7
 
8
8
  :root {
@@ -2,7 +2,7 @@
2
2
  * Gamehub Domain CSS — 순수 CSS 변수
3
3
  * Tailwind 없이 var(--*) 로 사용 가능
4
4
  * 자동 생성: scripts/generate-css.js
5
- * 생성일: 2026-05-11T10:03:03.773Z
5
+ * 생성일: 2026-05-21T07:29:09.575Z
6
6
  */
7
7
 
8
8
  :root {
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Gamehub Domain CSS — Tailwind v4 (@theme + .gamehub)
3
3
  * 자동 생성: scripts/generate-css.js
4
- * 생성일: 2026-05-11T10:03:03.772Z
4
+ * 생성일: 2026-05-21T07:29:09.575Z
5
5
  */
6
6
 
7
7
  @theme {
@@ -2,7 +2,7 @@
2
2
  * Prediction Domain CSS — 순수 CSS 변수
3
3
  * Tailwind 없이 var(--*) 로 사용 가능
4
4
  * 자동 생성: scripts/generate-css.js
5
- * 생성일: 2026-05-11T10:03:03.774Z
5
+ * 생성일: 2026-05-21T07:29:09.576Z
6
6
  */
7
7
 
8
8
  :root {
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Prediction Domain CSS — Tailwind v4 (@theme + .prediction)
3
3
  * 자동 생성: scripts/generate-css.js
4
- * 생성일: 2026-05-11T10:03:03.774Z
4
+ * 생성일: 2026-05-21T07:29:09.576Z
5
5
  */
6
6
 
7
7
  @theme {
@@ -0,0 +1,15 @@
1
+ /**
2
+ * 천단위 콤마(,) 포맷 / 언포맷 유틸.
3
+ *
4
+ * NumberInput, PriceInput 등 숫자 입력 컴포넌트에서 `separator` 옵션이 켜졌을 때 공통으로 사용한다.
5
+ *
6
+ * - `formatWithComma('1234567.89') → '1,234,567.89'` (소수부는 콤마 미적용)
7
+ * - `formatWithComma('-1234') → '-1,234'`
8
+ * - `stripComma('1,234,567') → '1234567'`
9
+ *
10
+ * `value` 가 `string` 타입인 것은 입력 도중 사용자가 타이핑하는 부분 문자열
11
+ * (예: '-', '12.', '0.0') 을 손상 없이 유지하기 위함이다.
12
+ */
13
+ export declare function formatWithComma(value: string): string;
14
+ export declare function stripComma(value: string): string;
15
+ //# sourceMappingURL=numberFormat.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"numberFormat.d.ts","sourceRoot":"","sources":["../../src/utils/numberFormat.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAKrD;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAEhD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nexus-cross/design-system",
3
- "version": "2.0.4",
3
+ "version": "2.0.6",
4
4
  "description": "NEXUS Design System UI Components",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -361,8 +361,8 @@
361
361
  "sonner": "^2.0.7",
362
362
  "vaul": "^1.1.2",
363
363
  "zod": "^3.25.76",
364
- "@nexus-cross/tokens": "2.0.4",
365
- "@nexus-cross/tokens-domains": "2.0.4"
364
+ "@nexus-cross/tokens": "2.0.6",
365
+ "@nexus-cross/tokens-domains": "2.0.6"
366
366
  },
367
367
  "devDependencies": {
368
368
  "@testing-library/jest-dom": "^6.9.1",