@uniai-fe/uds-primitives 0.3.46 → 0.3.48
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/styles.css +22 -8
- package/package.json +1 -1
- package/src/components/alternate/markup/Label.tsx +9 -0
- package/src/components/alternate/markup/empty/Data.tsx +2 -1
- package/src/components/alternate/markup/index.tsx +2 -0
- package/src/components/alternate/markup/loading/Default.tsx +2 -3
- package/src/components/alternate/markup/loading/Icon.tsx +21 -3
- package/src/components/alternate/styles/alternate.scss +22 -9
- package/src/components/chip/markup/InputStyle.tsx +2 -1
package/dist/styles.css
CHANGED
|
@@ -705,6 +705,22 @@
|
|
|
705
705
|
transform: rotate(360deg);
|
|
706
706
|
}
|
|
707
707
|
}
|
|
708
|
+
.empty-text {
|
|
709
|
+
font-size: 1.4rem;
|
|
710
|
+
color: var(--color-cool-gray-70);
|
|
711
|
+
line-height: 1.5;
|
|
712
|
+
word-break: keep-all;
|
|
713
|
+
text-align: center;
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
.alternate-text {
|
|
717
|
+
font-size: 1.4rem;
|
|
718
|
+
color: var(--color-cool-gray-70);
|
|
719
|
+
line-height: 1.5;
|
|
720
|
+
word-break: keep-all;
|
|
721
|
+
text-align: center;
|
|
722
|
+
}
|
|
723
|
+
|
|
708
724
|
.alternate {
|
|
709
725
|
width: 100%;
|
|
710
726
|
height: 100%;
|
|
@@ -713,20 +729,15 @@
|
|
|
713
729
|
align-items: center;
|
|
714
730
|
justify-content: center;
|
|
715
731
|
}
|
|
716
|
-
.alternate .empty-text {
|
|
717
|
-
font-size: 1.4rem;
|
|
718
|
-
color: var(--color-cool-gray-70);
|
|
719
|
-
line-height: 1.5;
|
|
720
|
-
word-break: keep-all;
|
|
721
|
-
text-align: center;
|
|
722
|
-
}
|
|
723
732
|
.alternate.is-horizontal {
|
|
724
733
|
flex-direction: row;
|
|
725
734
|
}
|
|
726
735
|
.alternate.is-horizontal.loading .empty-text {
|
|
727
736
|
transform: translateY(0.2rem);
|
|
737
|
+
margin-left: 1rem;
|
|
728
738
|
}
|
|
729
|
-
.alternate.is-horizontal.loading .
|
|
739
|
+
.alternate.is-horizontal.loading .alternate-text {
|
|
740
|
+
transform: translateY(0.2rem);
|
|
730
741
|
margin-left: 1rem;
|
|
731
742
|
}
|
|
732
743
|
.alternate.is-vertical {
|
|
@@ -735,6 +746,9 @@
|
|
|
735
746
|
.alternate.is-vertical .empty-text {
|
|
736
747
|
margin-top: 1rem;
|
|
737
748
|
}
|
|
749
|
+
.alternate.is-vertical .alternate-text {
|
|
750
|
+
margin-top: 1rem;
|
|
751
|
+
}
|
|
738
752
|
|
|
739
753
|
.alternate-loading-icon {
|
|
740
754
|
width: 2.4rem;
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
import { clsx } from "clsx";
|
|
4
|
+
import AlternateText from "../Label";
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* 차트; 데이터 없는 경우 대체 컴포넌트
|
|
@@ -20,7 +21,7 @@ export default function AlternateEmptyData({
|
|
|
20
21
|
|
|
21
22
|
return (
|
|
22
23
|
<div className={clsx("alternate empty-data", directionClass, className)}>
|
|
23
|
-
<
|
|
24
|
+
<AlternateText>{text || "데이터가 없습니다."}</AlternateText>
|
|
24
25
|
</div>
|
|
25
26
|
);
|
|
26
27
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import AlternateEmptyData from "./empty/Data";
|
|
2
|
+
import AlternateText from "./Label";
|
|
2
3
|
import AlternateLoadingDefault from "./loading/Default";
|
|
3
4
|
import AlternateLoadingIcon from "./loading/Icon";
|
|
4
5
|
|
|
@@ -6,6 +7,7 @@ const Alternate = {
|
|
|
6
7
|
EmptyData: AlternateEmptyData,
|
|
7
8
|
LoadingDefault: AlternateLoadingDefault,
|
|
8
9
|
LoadingIcon: AlternateLoadingIcon,
|
|
10
|
+
Text: AlternateText,
|
|
9
11
|
};
|
|
10
12
|
|
|
11
13
|
export default Alternate;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { clsx } from "clsx";
|
|
4
4
|
import AlternateLoadingIcon from "./Icon";
|
|
5
|
+
import AlternateText from "../Label";
|
|
5
6
|
|
|
6
7
|
/**
|
|
7
8
|
* 데이터 로딩중 컴포넌트
|
|
@@ -21,9 +22,7 @@ export default function AlternateLoadingDefault({
|
|
|
21
22
|
<div className={clsx("alternate loading", directionClass)}>
|
|
22
23
|
<AlternateLoadingIcon direction={direction} />
|
|
23
24
|
{["string", "undefined"].includes(typeof text) ? (
|
|
24
|
-
<
|
|
25
|
-
{text || "데이터를 불러오는 중입니다."}
|
|
26
|
-
</span>
|
|
25
|
+
<AlternateText>{text || "데이터를 불러오는 중입니다."}</AlternateText>
|
|
27
26
|
) : (
|
|
28
27
|
text
|
|
29
28
|
)}
|
|
@@ -25,13 +25,31 @@ export default function AlternateLoadingIcon({
|
|
|
25
25
|
)}
|
|
26
26
|
>
|
|
27
27
|
{size === "small" && (
|
|
28
|
-
<SpinnerSmallIcon
|
|
28
|
+
<SpinnerSmallIcon
|
|
29
|
+
alt="불러오는 중"
|
|
30
|
+
width={24}
|
|
31
|
+
height={24}
|
|
32
|
+
viewBox="0 0 24 24"
|
|
33
|
+
preserveAspectRatio="xMinYMin meet"
|
|
34
|
+
/>
|
|
29
35
|
)}
|
|
30
36
|
{size === "medium" && (
|
|
31
|
-
<SpinnerMediumIcon
|
|
37
|
+
<SpinnerMediumIcon
|
|
38
|
+
alt="불러오는 중"
|
|
39
|
+
width={36}
|
|
40
|
+
height={36}
|
|
41
|
+
viewBox="0 0 36 36"
|
|
42
|
+
preserveAspectRatio="xMinYMin meet"
|
|
43
|
+
/>
|
|
32
44
|
)}
|
|
33
45
|
{size === "large" && (
|
|
34
|
-
<SpinnerLargeIcon
|
|
46
|
+
<SpinnerLargeIcon
|
|
47
|
+
alt="불러오는 중"
|
|
48
|
+
width={52}
|
|
49
|
+
height={52}
|
|
50
|
+
viewBox="0 0 52 52"
|
|
51
|
+
preserveAspectRatio="xMinYMin meet"
|
|
52
|
+
/>
|
|
35
53
|
)}
|
|
36
54
|
</figure>
|
|
37
55
|
);
|
|
@@ -8,6 +8,22 @@
|
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
+
.empty-text {
|
|
12
|
+
font-size: 1.4rem;
|
|
13
|
+
color: var(--color-cool-gray-70);
|
|
14
|
+
line-height: 1.5;
|
|
15
|
+
word-break: keep-all;
|
|
16
|
+
text-align: center;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.alternate-text {
|
|
20
|
+
font-size: 1.4rem;
|
|
21
|
+
color: var(--color-cool-gray-70);
|
|
22
|
+
line-height: 1.5;
|
|
23
|
+
word-break: keep-all;
|
|
24
|
+
text-align: center;
|
|
25
|
+
}
|
|
26
|
+
|
|
11
27
|
.alternate {
|
|
12
28
|
width: 100%;
|
|
13
29
|
height: 100%;
|
|
@@ -16,22 +32,16 @@
|
|
|
16
32
|
align-items: center;
|
|
17
33
|
justify-content: center;
|
|
18
34
|
|
|
19
|
-
.empty-text {
|
|
20
|
-
font-size: 1.4rem;
|
|
21
|
-
color: var(--color-cool-gray-70);
|
|
22
|
-
line-height: 1.5;
|
|
23
|
-
word-break: keep-all;
|
|
24
|
-
text-align: center;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
35
|
&.is-horizontal {
|
|
28
36
|
flex-direction: row;
|
|
29
37
|
|
|
30
38
|
&.loading {
|
|
31
39
|
.empty-text {
|
|
32
40
|
transform: translateY(0.2rem);
|
|
41
|
+
margin-left: 1rem;
|
|
33
42
|
}
|
|
34
|
-
.
|
|
43
|
+
.alternate-text {
|
|
44
|
+
transform: translateY(0.2rem);
|
|
35
45
|
margin-left: 1rem;
|
|
36
46
|
}
|
|
37
47
|
}
|
|
@@ -42,6 +52,9 @@
|
|
|
42
52
|
.empty-text {
|
|
43
53
|
margin-top: 1rem;
|
|
44
54
|
}
|
|
55
|
+
.alternate-text {
|
|
56
|
+
margin-top: 1rem;
|
|
57
|
+
}
|
|
45
58
|
}
|
|
46
59
|
}
|
|
47
60
|
|
|
@@ -35,6 +35,7 @@ const ChipInputStyle = forwardRef<
|
|
|
35
35
|
{
|
|
36
36
|
children,
|
|
37
37
|
className,
|
|
38
|
+
chipStyle = "input",
|
|
38
39
|
removeButtonLabel = "선택 항목 삭제",
|
|
39
40
|
onRemove,
|
|
40
41
|
disabled = false,
|
|
@@ -68,7 +69,7 @@ const ChipInputStyle = forwardRef<
|
|
|
68
69
|
"chip-input-root",
|
|
69
70
|
className,
|
|
70
71
|
)}
|
|
71
|
-
data-style=
|
|
72
|
+
data-style={chipStyle}
|
|
72
73
|
data-fill={fill}
|
|
73
74
|
data-rounded={rounded ? "true" : undefined}
|
|
74
75
|
data-removable={removable ? "true" : "false"}
|