sud-ui 1.5.3 → 1.9.0

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 (50) hide show
  1. package/README.md +8 -8
  2. package/dist/components/commonType.d.ts +74 -74
  3. package/dist/components/dataDisplay/Calendar.d.ts +6 -6
  4. package/dist/components/dataEntry/Select.d.ts +5 -5
  5. package/dist/components/navigation/Dropdown.d.ts +11 -11
  6. package/dist/components/navigation/base/PopupBase.d.ts +20 -20
  7. package/dist/index.css +1 -1
  8. package/dist/index.js +5111 -5104
  9. package/dist/index.js.map +1 -1
  10. package/package.json +9 -3
  11. package/dist/fonts/GmarketSansBold.woff +0 -0
  12. package/dist/fonts/GmarketSansLight.woff +0 -0
  13. package/dist/fonts/GmarketSansMedium.woff +0 -0
  14. package/dist/fonts/IntelOneMono-Medium.woff2 +0 -0
  15. package/dist/fonts/Pretendard-Black.woff2 +0 -0
  16. package/dist/fonts/Pretendard-Bold.woff2 +0 -0
  17. package/dist/fonts/Pretendard-ExtraBold.woff2 +0 -0
  18. package/dist/fonts/Pretendard-ExtraLight.woff2 +0 -0
  19. package/dist/fonts/Pretendard-Light.woff2 +0 -0
  20. package/dist/fonts/Pretendard-Medium.woff2 +0 -0
  21. package/dist/fonts/Pretendard-Regular.woff2 +0 -0
  22. package/dist/fonts/Pretendard-SemiBold.woff2 +0 -0
  23. package/dist/fonts/Pretendard-Thin.woff2 +0 -0
  24. package/dist/fonts/SUITE-Bold.woff2 +0 -0
  25. package/dist/fonts/SUITE-ExtraBold.woff2 +0 -0
  26. package/dist/fonts/SUITE-Heavy.woff2 +0 -0
  27. package/dist/fonts/SUITE-Light.woff2 +0 -0
  28. package/dist/fonts/SUITE-Medium.woff2 +0 -0
  29. package/dist/fonts/SUITE-Regular.woff2 +0 -0
  30. package/dist/fonts/SUITE-SemiBold.woff2 +0 -0
  31. package/dist/fonts/fonts/GmarketSansBold.woff +0 -0
  32. package/dist/fonts/fonts/GmarketSansLight.woff +0 -0
  33. package/dist/fonts/fonts/GmarketSansMedium.woff +0 -0
  34. package/dist/fonts/fonts/IntelOneMono-Medium.woff2 +0 -0
  35. package/dist/fonts/fonts/Pretendard-Black.woff2 +0 -0
  36. package/dist/fonts/fonts/Pretendard-Bold.woff2 +0 -0
  37. package/dist/fonts/fonts/Pretendard-ExtraBold.woff2 +0 -0
  38. package/dist/fonts/fonts/Pretendard-ExtraLight.woff2 +0 -0
  39. package/dist/fonts/fonts/Pretendard-Light.woff2 +0 -0
  40. package/dist/fonts/fonts/Pretendard-Medium.woff2 +0 -0
  41. package/dist/fonts/fonts/Pretendard-Regular.woff2 +0 -0
  42. package/dist/fonts/fonts/Pretendard-SemiBold.woff2 +0 -0
  43. package/dist/fonts/fonts/Pretendard-Thin.woff2 +0 -0
  44. package/dist/fonts/fonts/SUITE-Bold.woff2 +0 -0
  45. package/dist/fonts/fonts/SUITE-ExtraBold.woff2 +0 -0
  46. package/dist/fonts/fonts/SUITE-Heavy.woff2 +0 -0
  47. package/dist/fonts/fonts/SUITE-Light.woff2 +0 -0
  48. package/dist/fonts/fonts/SUITE-Medium.woff2 +0 -0
  49. package/dist/fonts/fonts/SUITE-Regular.woff2 +0 -0
  50. package/dist/fonts/fonts/SUITE-SemiBold.woff2 +0 -0
package/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
  </a>
5
5
  </p>
6
6
 
7
- # Soon UI Design Library [![npm version](https://img.shields.io/badge/npm-1.1.6-blue)](https://www.npmjs.com/package/sud-ui)
7
+ # Soon UI Design Library [![npm version](https://img.shields.io/badge/npm-1.9.0-blue)](https://www.npmjs.com/package/sud-ui)
8
8
 
9
9
  **Soon UI Design (SUD)** is a React UI library that helps you quickly build responsive and polished interfaces using reusable components and customizable design tokens.
10
10
 
@@ -54,7 +54,7 @@ export default function App() {
54
54
  borderWeight={2}
55
55
  borderColor="red"
56
56
  style={{
57
- width: "100%",
57
+ width: "100%"
58
58
  }}
59
59
  >
60
60
  <div className="flex gap-10">
@@ -120,18 +120,18 @@ const customTheme = {
120
120
  7: "#007abf",
121
121
  8: "#005f99",
122
122
  9: "#004473",
123
- 10: "#00294d",
124
- },
123
+ 10: "#00294d"
124
+ }
125
125
  },
126
126
  components: {
127
127
  button: {
128
128
  primary: {
129
129
  bg: "ocean-6",
130
130
  txt: "white-10",
131
- border: "ocean-7",
132
- },
133
- },
134
- },
131
+ border: "ocean-7"
132
+ }
133
+ }
134
+ }
135
135
  };
136
136
 
137
137
  export default function App() {
@@ -1,74 +1,74 @@
1
- export type defaultColorType = badgeColorType | tagColorType | "ghost" | "text";
2
-
3
- export type badgeColorType =
4
- | "default"
5
- | "primary"
6
- | "success"
7
- | "warning"
8
- | "danger"
9
- | "info";
10
-
11
- export type tagColorType =
12
- | "default"
13
- | "red"
14
- | "rose"
15
- | "coral"
16
- | "orange"
17
- | "volcano"
18
- | "apricot"
19
- | "yellow"
20
- | "gold"
21
- | "amber"
22
- | "green"
23
- | "lime"
24
- | "mint"
25
- | "blue"
26
- | "sky"
27
- | "cerulean"
28
- | "indigo"
29
- | "cobalt"
30
- | "navy"
31
- | "purple"
32
- | "plum"
33
- | "orchid"
34
- | "forest"
35
- | "sage"
36
- | "warm-gray"
37
- | "cool-gray"
38
- | "neutral";
39
-
40
- export type shapeType = "square" | "circle" | "rounded" | "capsule";
41
-
42
- export type defaultSizeType = "xs" | "sm" | "md" | "lg" | "xl";
43
-
44
- export type borderType =
45
- | "solid"
46
- | "dashed"
47
- | "dotted"
48
- | "double"
49
- | "groove"
50
- | "ridge"
51
- | "inset"
52
- | "outset"
53
- | "none";
54
-
55
- export type shadowType = "none" | "sm" | "md" | "lg" | "xl";
56
-
57
- export type fontSizeType =
58
- | "xs"
59
- | "sm"
60
- | "base"
61
- | "lg"
62
- | "xl"
63
- | "2xl"
64
- | "3xl"
65
- | "4xl";
66
-
67
- export type fontWeightType =
68
- | "light"
69
- | "normal"
70
- | "medium"
71
- | "semibold"
72
- | "bold";
73
-
74
- export type spacingType = "xs" | "sm" | "md" | "lg" | "xl" | "2xl";
1
+ export type defaultColorType = badgeColorType | tagColorType | "ghost" | "text";
2
+
3
+ export type badgeColorType =
4
+ | "default"
5
+ | "primary"
6
+ | "success"
7
+ | "warning"
8
+ | "danger"
9
+ | "info";
10
+
11
+ export type tagColorType =
12
+ | "default"
13
+ | "red"
14
+ | "rose"
15
+ | "coral"
16
+ | "orange"
17
+ | "volcano"
18
+ | "apricot"
19
+ | "yellow"
20
+ | "gold"
21
+ | "amber"
22
+ | "green"
23
+ | "lime"
24
+ | "mint"
25
+ | "blue"
26
+ | "sky"
27
+ | "cerulean"
28
+ | "indigo"
29
+ | "cobalt"
30
+ | "navy"
31
+ | "purple"
32
+ | "plum"
33
+ | "orchid"
34
+ | "forest"
35
+ | "sage"
36
+ | "warm-gray"
37
+ | "cool-gray"
38
+ | "neutral";
39
+
40
+ export type shapeType = "square" | "circle" | "rounded" | "capsule";
41
+
42
+ export type defaultSizeType = "xs" | "sm" | "md" | "lg" | "xl";
43
+
44
+ export type borderType =
45
+ | "solid"
46
+ | "dashed"
47
+ | "dotted"
48
+ | "double"
49
+ | "groove"
50
+ | "ridge"
51
+ | "inset"
52
+ | "outset"
53
+ | "none";
54
+
55
+ export type shadowType = "none" | "sm" | "md" | "lg" | "xl";
56
+
57
+ export type fontSizeType =
58
+ | "xs"
59
+ | "sm"
60
+ | "base"
61
+ | "lg"
62
+ | "xl"
63
+ | "2xl"
64
+ | "3xl"
65
+ | "4xl";
66
+
67
+ export type fontWeightType =
68
+ | "light"
69
+ | "normal"
70
+ | "medium"
71
+ | "semibold"
72
+ | "bold";
73
+
74
+ export type spacingType = "xs" | "sm" | "md" | "lg" | "xl" | "2xl";
@@ -34,11 +34,11 @@ export interface CalendarProps extends HTMLAttributes<HTMLDivElement> {
34
34
  width?: number | string;
35
35
  height?: number | string;
36
36
  range?: boolean;
37
- startDate?: Date;
38
- endDate?: Date;
39
- size?: CalendarSize;
40
- holidays?: string[];
41
- holidaysStyle?: CSSProperties;
42
- }
37
+ startDate?: Date;
38
+ endDate?: Date;
39
+ size?: CalendarSize;
40
+ holidays?: string[];
41
+ holidaysStyle?: CSSProperties;
42
+ }
43
43
 
44
44
  export declare const Calendar: FC<CalendarProps>;
@@ -9,11 +9,11 @@ import type {
9
9
 
10
10
  export type SelectSize = "sm" | "md" | "lg";
11
11
 
12
- export interface SelectOption {
13
- value: string | number;
14
- label: ReactNode;
15
- content?: ReactNode;
16
- }
12
+ export interface SelectOption {
13
+ value: string | number;
14
+ label: ReactNode;
15
+ content?: ReactNode;
16
+ }
17
17
 
18
18
  export interface SelectProps extends HTMLAttributes<HTMLDivElement> {
19
19
  background?: string;
@@ -8,11 +8,11 @@ import type {
8
8
  shadowType
9
9
  } from "../commonType";
10
10
 
11
- export interface DropdownProps
12
- extends Omit<HTMLAttributes<HTMLDivElement>, "style"> {
13
- children: ReactNode;
14
- title?: ReactNode;
15
- trigger?: PopupTrigger;
11
+ export interface DropdownProps
12
+ extends Omit<HTMLAttributes<HTMLDivElement>, "style"> {
13
+ children: ReactNode;
14
+ title?: ReactNode;
15
+ trigger?: PopupTrigger;
16
16
  open?: boolean;
17
17
  defaultOpen?: boolean;
18
18
  onOpenChange?: (open: boolean) => void;
@@ -29,12 +29,12 @@ export interface DropdownProps
29
29
  shape?: shapeType;
30
30
  shadow?: shadowType;
31
31
  expandType?: "accordion" | "popover";
32
- popupPlacement?: PopupPlacement;
33
- placement?: [PopupPlacement, PopupPlacement];
34
- colorType?: defaultColorType;
35
- style?: CSSProperties;
36
- wrapperStyle?: CSSProperties;
37
- }
32
+ popupPlacement?: PopupPlacement;
33
+ placement?: [PopupPlacement, PopupPlacement];
34
+ colorType?: defaultColorType;
35
+ style?: CSSProperties;
36
+ wrapperStyle?: CSSProperties;
37
+ }
38
38
 
39
39
  declare const Dropdown: FC<DropdownProps>;
40
40
  export default Dropdown;
@@ -28,19 +28,19 @@ export type PopupPlacement =
28
28
  | "right-top"
29
29
  | "right-bottom";
30
30
 
31
- export type PopupVariant =
32
- | "popup"
33
- | "popover"
34
- | "tooltip"
35
- | "dropdown"
36
- | "Menu"
37
- | "popconfirm";
38
-
39
- export interface PopupBaseProps
40
- extends Omit<HTMLAttributes<HTMLDivElement>, "style"> {
41
- children: ReactNode;
42
- content: ReactNode | (() => ReactNode);
43
- title?: ReactNode;
31
+ export type PopupVariant =
32
+ | "popup"
33
+ | "popover"
34
+ | "tooltip"
35
+ | "dropdown"
36
+ | "Menu"
37
+ | "popconfirm";
38
+
39
+ export interface PopupBaseProps
40
+ extends Omit<HTMLAttributes<HTMLDivElement>, "style"> {
41
+ children: ReactNode;
42
+ content: ReactNode | (() => ReactNode);
43
+ title?: ReactNode;
44
44
  arrow?: boolean;
45
45
  trigger?: PopupTrigger;
46
46
  placement?: PopupPlacement;
@@ -57,13 +57,13 @@ export interface PopupBaseProps
57
57
  borderType?: borderType;
58
58
  borderWeight?: number;
59
59
  shape?: shapeType;
60
- shadow?: shadowType;
61
- colorType?: defaultColorType;
62
- style?: CSSProperties;
63
- wrapperStyle?: CSSProperties;
64
- followTrigger?: boolean;
65
- contentRef?: RefObject<HTMLElement>;
66
- parentRef?: RefObject<HTMLElement>;
60
+ shadow?: shadowType;
61
+ colorType?: defaultColorType;
62
+ style?: CSSProperties;
63
+ wrapperStyle?: CSSProperties;
64
+ followTrigger?: boolean;
65
+ contentRef?: RefObject<HTMLElement>;
66
+ parentRef?: RefObject<HTMLElement>;
67
67
  variant?: PopupVariant;
68
68
  footer?: boolean | ReactNode;
69
69
  onCancel?: () => void;