@nation-a/ui 0.16.15 → 0.16.17
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/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1387 -1064
- package/dist/index.js.map +1 -1
- package/dist/stats.html +1 -1
- package/dist/styled-system/styles.css +314 -11
- package/dist/styled-system/tokens/index.mjs +51 -15
- package/dist/styled-system/tokens/tokens.d.ts +5 -5
- package/dist/styled-system/types/prop-type.d.ts +2 -2
- package/dist/types/components/Text/index.d.ts +3 -2
- package/dist/types/components/Text/text.recipe.d.ts +39 -8
- package/dist/types/test/utils.d.ts +13 -0
- package/dist/types/theme/tokens/index.d.ts +22 -5
- package/package.json +4 -3
|
@@ -207,8 +207,8 @@ export interface UtilityValues {
|
|
|
207
207
|
srOnly: boolean;
|
|
208
208
|
debug: boolean;
|
|
209
209
|
containerName: CssProperties["containerName"];
|
|
210
|
-
colorPalette: "neutral" | "black" | "white" | "red" | "orange" | "blue" | "green" | "purple" | "ohre" | "cyan" | "yellow" | "content" | "content.neutral" | "content.neuroidPrimary" | "content.danger" | "content.warning" | "content.success" | "content.informative" | "content.zoltarinaPrimary" | "content.heydPrimary" | "content.static" | "content.static.white" | "content.static.black" | "content.heybeePrimary" | "content.neutralInverse" | "background" | "background.neutral" | "background.neuroidPrimary" | "background.neuroidSecondary" | "background.danger" | "background.warning" | "background.success" | "background.informative" | "background.zoltarinaPrimary" | "background.zoltarinaSecondary" | "background.heydPrimary" | "background.heydSecondary" | "background.static" | "background.static.whiteAlpha" | "background.static.blackAlpha" | "background.heybeePrimary" | "background.neutralInverse" | "surface" | "shadow" | "scrim" | "skeleton" | "border" | "border.neutral" | "border.neuroidPrimary" | "border.danger" | "border.warning" | "border.success" | "border.informative" | "border.zoltarinaPrimary" | "border.heydPrimary" | "border.heybeePrimary";
|
|
211
|
-
textStyle: "body.md" | "body.lg" | "body.sm" | "label.sm" | "label.md" | "title.sm" | "title.md" | "title.lg" | "headline.sm" | "headline.md" | "display.md" | "display.lg";
|
|
210
|
+
colorPalette: "neutral" | "black" | "white" | "red" | "orange" | "blue" | "green" | "purple" | "ohre" | "cyan" | "yellow" | "v3" | "content" | "content.neutral" | "content.neuroidPrimary" | "content.danger" | "content.warning" | "content.success" | "content.informative" | "content.zoltarinaPrimary" | "content.heydPrimary" | "content.static" | "content.static.white" | "content.static.black" | "content.heybeePrimary" | "content.neutralInverse" | "background" | "background.neutral" | "background.neuroidPrimary" | "background.neuroidSecondary" | "background.danger" | "background.warning" | "background.success" | "background.informative" | "background.zoltarinaPrimary" | "background.zoltarinaSecondary" | "background.heydPrimary" | "background.heydSecondary" | "background.static" | "background.static.whiteAlpha" | "background.static.blackAlpha" | "background.heybeePrimary" | "background.neutralInverse" | "surface" | "shadow" | "scrim" | "skeleton" | "border" | "border.neutral" | "border.neuroidPrimary" | "border.danger" | "border.warning" | "border.success" | "border.informative" | "border.zoltarinaPrimary" | "border.heydPrimary" | "border.heybeePrimary";
|
|
211
|
+
textStyle: "body.md" | "body.lg" | "body.sm" | "label.sm" | "label.md" | "title.sm" | "title.md" | "title.lg" | "headline.sm" | "headline.md" | "display.md" | "display.lg" | "en.title.main.22.bold" | "en.title.main.24.bold" | "en.title.main.30.bold" | "en.title.main.56.bold" | "en.title.sub.16.bold" | "en.title.sub.18.bold" | "en.title.sub.20.bold" | "en.text.chat.14.bold" | "en.text.chat.14.regular" | "en.text.chat.16.bold" | "en.text.chat.16.regular" | "en.text.body.14.bold" | "en.text.body.14.regular" | "en.text.body.16.bold" | "en.text.body.16.regular" | "en.label.caption.10.semibold" | "en.label.caption.12.semibold" | "en.label.caption.14.semibold" | "kr.title.main.22.bold" | "kr.title.main.24.bold" | "kr.title.main.30.bold" | "kr.title.main.56.bold" | "kr.title.sub.16.bold" | "kr.title.sub.18.bold" | "kr.title.sub.20.bold" | "kr.text.chat.14.bold" | "kr.text.chat.14.regular" | "kr.text.chat.16.bold" | "kr.text.chat.16.regular" | "kr.text.body.14.bold" | "kr.text.body.14.regular" | "kr.text.body.16.bold" | "kr.text.body.16.regular" | "kr.label.caption.10.semibold" | "kr.label.caption.12.semibold" | "kr.label.caption.14.semibold";
|
|
212
212
|
}
|
|
213
213
|
|
|
214
214
|
|
|
@@ -273,7 +273,8 @@ declare const Text: import('react').ForwardRefExoticComponent<Omit<{
|
|
|
273
273
|
part?: string | undefined | undefined;
|
|
274
274
|
ref?: import('react').Ref<HTMLParagraphElement> | undefined;
|
|
275
275
|
} & import('../../../styled-system/types').WithCss & {
|
|
276
|
-
|
|
277
|
-
|
|
276
|
+
variant?: "label.sm" | "body.md" | "body.lg" | "body.sm" | "label.md" | "title.sm" | "title.md" | "title.lg" | "headline.sm" | "headline.md" | "display.md" | "display.lg" | "title.main.22.bold" | "title.main.24.bold" | "title.main.30.bold" | "title.main.56.bold" | "title.sub.16.bold" | "title.sub.18.bold" | "title.sub.20.bold" | "text.chat.14.bold" | "text.chat.14.regular" | "text.chat.16.bold" | "text.chat.16.regular" | "text.body.14.bold" | "text.body.14.regular" | "text.body.16.bold" | "text.body.16.regular" | "label.caption.10.semibold" | "label.caption.12.semibold" | "label.caption.14.semibold" | undefined;
|
|
277
|
+
language?: "en" | "ko" | undefined;
|
|
278
|
+
font?: "freeman" | "dmSans" | "pretendard" | "notoSans" | "inter" | undefined;
|
|
278
279
|
}, "ref"> & import('react').RefAttributes<HTMLParagraphElement>>;
|
|
279
280
|
export default Text;
|
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
import { RecipeVariantProps } from '../../../styled-system/css';
|
|
2
2
|
export type TextVariantProps = RecipeVariantProps<typeof textRecipe>;
|
|
3
3
|
export declare const textRecipe: import('../../../styled-system/types').RecipeRuntimeFn<{
|
|
4
|
-
font: {
|
|
5
|
-
inter: {
|
|
6
|
-
fontFamily: "inter";
|
|
7
|
-
};
|
|
8
|
-
notoSans: {
|
|
9
|
-
fontFamily: "notoSans";
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
4
|
variant: {
|
|
13
5
|
'display.lg': {
|
|
14
6
|
textStyle: "display.lg";
|
|
@@ -58,5 +50,44 @@ export declare const textRecipe: import('../../../styled-system/types').RecipeRu
|
|
|
58
50
|
textStyle: "label.md";
|
|
59
51
|
fontFamily: "notoSans";
|
|
60
52
|
};
|
|
53
|
+
'title.main.22.bold': {};
|
|
54
|
+
'title.main.24.bold': {};
|
|
55
|
+
'title.main.30.bold': {};
|
|
56
|
+
'title.main.56.bold': {};
|
|
57
|
+
'title.sub.16.bold': {};
|
|
58
|
+
'title.sub.18.bold': {};
|
|
59
|
+
'title.sub.20.bold': {};
|
|
60
|
+
'text.chat.14.bold': {};
|
|
61
|
+
'text.chat.14.regular': {};
|
|
62
|
+
'text.chat.16.bold': {};
|
|
63
|
+
'text.chat.16.regular': {};
|
|
64
|
+
'text.body.14.bold': {};
|
|
65
|
+
'text.body.14.regular': {};
|
|
66
|
+
'text.body.16.bold': {};
|
|
67
|
+
'text.body.16.regular': {};
|
|
68
|
+
'label.caption.10.semibold': {};
|
|
69
|
+
'label.caption.12.semibold': {};
|
|
70
|
+
'label.caption.14.semibold': {};
|
|
71
|
+
};
|
|
72
|
+
language: {
|
|
73
|
+
en: {};
|
|
74
|
+
ko: {};
|
|
75
|
+
};
|
|
76
|
+
font: {
|
|
77
|
+
inter: {
|
|
78
|
+
fontFamily: "inter";
|
|
79
|
+
};
|
|
80
|
+
notoSans: {
|
|
81
|
+
fontFamily: "notoSans";
|
|
82
|
+
};
|
|
83
|
+
dmSans: {
|
|
84
|
+
fontFamily: "dmSans";
|
|
85
|
+
};
|
|
86
|
+
pretendard: {
|
|
87
|
+
fontFamily: "pretendard";
|
|
88
|
+
};
|
|
89
|
+
freeman: {
|
|
90
|
+
fontFamily: "freeman";
|
|
91
|
+
};
|
|
61
92
|
};
|
|
62
93
|
}>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { RenderOptions, RenderResult } from '@testing-library/react';
|
|
2
|
+
import { ReactElement } from 'react';
|
|
3
|
+
import { UserEvent } from '@testing-library/user-event';
|
|
4
|
+
interface CustomRenderOptions extends Omit<RenderOptions, 'wrapper'> {
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Custom render function that includes UI providers
|
|
8
|
+
*/
|
|
9
|
+
declare const customRender: (ui: ReactElement, options?: CustomRenderOptions) => RenderResult & {
|
|
10
|
+
user: UserEvent;
|
|
11
|
+
};
|
|
12
|
+
export * from '@testing-library/react';
|
|
13
|
+
export { customRender as render };
|
|
@@ -187,6 +187,15 @@ export declare const tokens: {
|
|
|
187
187
|
};
|
|
188
188
|
};
|
|
189
189
|
white: {
|
|
190
|
+
"1000A": {
|
|
191
|
+
value: string;
|
|
192
|
+
};
|
|
193
|
+
"900A": {
|
|
194
|
+
value: string;
|
|
195
|
+
};
|
|
196
|
+
"800A": {
|
|
197
|
+
value: string;
|
|
198
|
+
};
|
|
190
199
|
"700A": {
|
|
191
200
|
value: string;
|
|
192
201
|
};
|
|
@@ -465,6 +474,11 @@ export declare const tokens: {
|
|
|
465
474
|
value: string;
|
|
466
475
|
};
|
|
467
476
|
};
|
|
477
|
+
v3: {
|
|
478
|
+
blue: {
|
|
479
|
+
value: string;
|
|
480
|
+
};
|
|
481
|
+
};
|
|
468
482
|
};
|
|
469
483
|
borderWidths: {
|
|
470
484
|
none: {
|
|
@@ -585,20 +599,23 @@ export declare const tokens: {
|
|
|
585
599
|
bold: {
|
|
586
600
|
value: string;
|
|
587
601
|
};
|
|
588
|
-
|
|
602
|
+
};
|
|
603
|
+
fonts: {
|
|
604
|
+
freeman: {
|
|
589
605
|
value: string;
|
|
590
606
|
};
|
|
591
|
-
|
|
607
|
+
dmSans: {
|
|
592
608
|
value: string;
|
|
593
609
|
};
|
|
594
|
-
|
|
595
|
-
fonts: {
|
|
596
|
-
inter: {
|
|
610
|
+
pretendard: {
|
|
597
611
|
value: string;
|
|
598
612
|
};
|
|
599
613
|
notoSans: {
|
|
600
614
|
value: string;
|
|
601
615
|
};
|
|
616
|
+
inter: {
|
|
617
|
+
value: string;
|
|
618
|
+
};
|
|
602
619
|
};
|
|
603
620
|
animations: {
|
|
604
621
|
'backdrop-in': {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nation-a/ui",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.17",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"types": "./dist/types/index.d.ts",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -22,11 +22,12 @@
|
|
|
22
22
|
"react-dom": "^18.3.1",
|
|
23
23
|
"react-hot-toast": "^2.5.2",
|
|
24
24
|
"react-lottie": "^1.2.10",
|
|
25
|
-
"@nation-a/
|
|
26
|
-
"@nation-a/
|
|
25
|
+
"@nation-a/tokens": "0.4.0",
|
|
26
|
+
"@nation-a/icons": "0.3.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@chromatic-com/storybook": "^3",
|
|
30
|
+
"@emotion/is-prop-valid": "^1.3.1",
|
|
30
31
|
"@pandacss/dev": "^0.53.1",
|
|
31
32
|
"@storybook/addon-essentials": "^8.6.11",
|
|
32
33
|
"@storybook/addon-interactions": "^8.6.11",
|