@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.
- package/cursor-rules/nexus-ui-api.mdc +4 -2
- package/dist/chunks/chunk-3BMVYJCA.js +15 -0
- package/dist/chunks/{chunk-2BINGHGR.js → chunk-EBMOQIY5.js} +17 -3
- package/dist/chunks/{chunk-RL5UAEGQ.mjs → chunk-FMUWSORG.mjs} +17 -3
- package/dist/chunks/{chunk-JFZLKFFM.mjs → chunk-JBMN6DY3.mjs} +1 -1
- package/dist/chunks/chunk-KHCPES3K.mjs +12 -0
- package/dist/chunks/{chunk-4ENXP7WH.js → chunk-L7SGGDY3.js} +4 -12
- package/dist/chunks/{chunk-WGGBE4ZD.mjs → chunk-QBMDWUQU.mjs} +1 -9
- package/dist/chunks/{chunk-7G7U4DP2.js → chunk-YMLPMIWX.js} +1 -1
- package/dist/components/NumberInput.d.ts +8 -0
- package/dist/components/NumberInput.d.ts.map +1 -1
- package/dist/components/PriceInput.d.ts.map +1 -1
- package/dist/index.js +8 -7
- package/dist/index.mjs +3 -2
- package/dist/number-input.js +5 -4
- package/dist/number-input.mjs +2 -1
- package/dist/price-input.js +4 -3
- package/dist/price-input.mjs +2 -1
- package/dist/schemas/_all.json +6 -1
- package/dist/schemas/number-input.d.ts +3 -0
- package/dist/schemas/number-input.d.ts.map +1 -1
- package/dist/schemas/numberInput.json +6 -1
- package/dist/schemas.js +6 -2
- package/dist/schemas.mjs +6 -2
- 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 +8 -8
- package/dist/styles.js +2 -2
- package/dist/styles.layered.css +8 -8
- package/dist/styles.mjs +1 -1
- package/dist/tokens/company.css +1 -1
- package/dist/tokens/css.css +1 -1
- package/dist/tokens-domains/gamehub-vars.css +1 -1
- package/dist/tokens-domains/gamehub.css +1 -1
- package/dist/tokens-domains/prediction-vars.css +1 -1
- package/dist/tokens-domains/prediction.css +1 -1
- package/dist/utils/numberFormat.d.ts +15 -0
- package/dist/utils/numberFormat.d.ts.map +1 -0
- 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,
|
|
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"}
|
package/dist/styles/layer.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
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
|
-
${
|
|
11
|
+
${chunkYMLPMIWX_js.built_default}
|
|
12
12
|
}`;
|
|
13
13
|
document.head.appendChild(style);
|
|
14
14
|
return true;
|
package/dist/styles/layer.mjs
CHANGED
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:
|
|
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-
|
|
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-
|
|
2714
|
-
color: var(--color-
|
|
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-
|
|
2720
|
-
color: var(--color-
|
|
2719
|
+
background: var(--color-surface-inverted);
|
|
2720
|
+
color: var(--color-text-inverted);
|
|
2721
2721
|
}
|
|
2722
2722
|
.nexus-tooltip-arrow--dark {
|
|
2723
|
-
fill: var(--color-
|
|
2723
|
+
fill: var(--color-surface-inverted);
|
|
2724
2724
|
}
|
|
2725
2725
|
.nexus-tooltip-arrow--light {
|
|
2726
|
-
fill: var(--color-
|
|
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
|
|
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 =
|
|
10
|
+
style.textContent = chunkYMLPMIWX_js.built_default;
|
|
11
11
|
document.head.appendChild(style);
|
|
12
12
|
return true;
|
|
13
13
|
})() : false;
|
package/dist/styles.layered.css
CHANGED
|
@@ -2507,7 +2507,7 @@
|
|
|
2507
2507
|
display: none;
|
|
2508
2508
|
}
|
|
2509
2509
|
.nexus-toggle-group--outline .nexus-toggle-group__item {
|
|
2510
|
-
border:
|
|
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-
|
|
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-
|
|
2715
|
-
color: var(--color-
|
|
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-
|
|
2721
|
-
color: var(--color-
|
|
2720
|
+
background: var(--color-surface-inverted);
|
|
2721
|
+
color: var(--color-text-inverted);
|
|
2722
2722
|
}
|
|
2723
2723
|
.nexus-tooltip-arrow--dark {
|
|
2724
|
-
fill: var(--color-
|
|
2724
|
+
fill: var(--color-surface-inverted);
|
|
2725
2725
|
}
|
|
2726
2726
|
.nexus-tooltip-arrow--light {
|
|
2727
|
-
fill: var(--color-
|
|
2727
|
+
fill: var(--color-surface-default);
|
|
2728
2728
|
}
|
|
2729
2729
|
.nexus-tooltip-trigger {
|
|
2730
2730
|
cursor: default;
|
package/dist/styles.mjs
CHANGED
package/dist/tokens/company.css
CHANGED
package/dist/tokens/css.css
CHANGED
|
@@ -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.
|
|
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.
|
|
365
|
-
"@nexus-cross/tokens-domains": "2.0.
|
|
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",
|