@bigtablet/design-system 1.12.0 → 1.13.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.
package/README.md CHANGED
@@ -11,7 +11,7 @@
11
11
 
12
12
  Bigtablet의 공식 디자인 시스템으로, Foundation(디자인 토큰)과 Components(UI 컴포넌트)로 구성된 통합 UI 라이브러리입니다.
13
13
 
14
- > **현재 버전**: v1.11.6 | **최근 업데이트**: 2025년 1월 15일
14
+ > **현재 버전**: v1.12.0 | **최근 업데이트**: 2025년 1월 15일
15
15
 
16
16
  [깃허브 링크](https://github.com/Bigtablet/bigtablet-design-system) | [📦 NPM 패키지](https://www.npmjs.com/package/@bigtablet/design-system)
17
17
 
@@ -0,0 +1,69 @@
1
+ @use "src/styles/scss/token" as token;
2
+
3
+ $color_skeleton_base: token.$color_background_neutral;
4
+ $color_skeleton_wave: token.$color_background_muted;
5
+ $color_skeleton_highlight: token.$color_background_secondary;
6
+
7
+ $skeleton_gradient: linear-gradient(
8
+ 90deg,
9
+ $color_skeleton_base 25%,
10
+ $color_skeleton_highlight 37%,
11
+ $color_skeleton_wave 63%
12
+ );
13
+
14
+ $skeleton_radius_sm: token.$radius_sm;
15
+ $skeleton_radius_md: token.$radius_md;
16
+ $skeleton_radius_lg: token.$radius_lg;
17
+
18
+ $skeleton_height_xs: token.$spacing_xs;
19
+ $skeleton_height_sm: token.$spacing_sm;
20
+ $skeleton_height_md: token.$spacing_md;
21
+ $skeleton_height_lg: token.$spacing_lg;
22
+ $skeleton_height_xl: token.$spacing_xl;
23
+
24
+ $skeleton_animation_duration: 1.4s;
25
+ $skeleton_animation_timing: ease-in-out;
26
+
27
+ @mixin skeleton(
28
+ $width: 100%,
29
+ $height: $skeleton_height_md,
30
+ $radius: $skeleton_radius_md
31
+ ) {
32
+ width: $width;
33
+ height: $height;
34
+ background: $skeleton_gradient;
35
+ background-size: 400% 100%;
36
+ border-radius: $radius;
37
+ animation: skeleton_loading
38
+ $skeleton_animation_duration
39
+ $skeleton_animation_timing
40
+ infinite;
41
+ }
42
+
43
+ @mixin skeleton_text {
44
+ @include skeleton(100%, $skeleton_height_md);
45
+ }
46
+
47
+ @mixin skeleton_title {
48
+ @include skeleton(100%, $skeleton_height_xl);
49
+ }
50
+
51
+ @mixin skeleton_avatar($size: token.$spacing_6xl) {
52
+ @include skeleton($size, $size, $skeleton_radius_lg);
53
+ }
54
+
55
+ @mixin skeleton_rect(
56
+ $width: 100%,
57
+ $height: token.$spacing_8xl
58
+ ) {
59
+ @include skeleton($width, $height, $skeleton_radius_md);
60
+ }
61
+
62
+ @keyframes skeleton_loading {
63
+ 0% {
64
+ background-position: 100% 0;
65
+ }
66
+ 100% {
67
+ background-position: 0 0;
68
+ }
69
+ }
@@ -7,5 +7,4 @@
7
7
  @forward "shadows";
8
8
  @forward "spacing";
9
9
  @forward "typography";
10
- @forward "z-index";
11
- @forward "src/animation/skeleton/skeleton";
10
+ @forward "z-index";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigtablet/design-system",
3
- "version": "1.12.0",
3
+ "version": "1.13.0",
4
4
  "description": "Bigtablet Design System UI Components",
5
5
  "type": "module",
6
6
  "types": "dist/index.d.ts",
@@ -0,0 +1,69 @@
1
+ @use "src/styles/scss/token" as token;
2
+
3
+ $color_skeleton_base: token.$color_background_neutral;
4
+ $color_skeleton_wave: token.$color_background_muted;
5
+ $color_skeleton_highlight: token.$color_background_secondary;
6
+
7
+ $skeleton_gradient: linear-gradient(
8
+ 90deg,
9
+ $color_skeleton_base 25%,
10
+ $color_skeleton_highlight 37%,
11
+ $color_skeleton_wave 63%
12
+ );
13
+
14
+ $skeleton_radius_sm: token.$radius_sm;
15
+ $skeleton_radius_md: token.$radius_md;
16
+ $skeleton_radius_lg: token.$radius_lg;
17
+
18
+ $skeleton_height_xs: token.$spacing_xs;
19
+ $skeleton_height_sm: token.$spacing_sm;
20
+ $skeleton_height_md: token.$spacing_md;
21
+ $skeleton_height_lg: token.$spacing_lg;
22
+ $skeleton_height_xl: token.$spacing_xl;
23
+
24
+ $skeleton_animation_duration: 1.4s;
25
+ $skeleton_animation_timing: ease-in-out;
26
+
27
+ @mixin skeleton(
28
+ $width: 100%,
29
+ $height: $skeleton_height_md,
30
+ $radius: $skeleton_radius_md
31
+ ) {
32
+ width: $width;
33
+ height: $height;
34
+ background: $skeleton_gradient;
35
+ background-size: 400% 100%;
36
+ border-radius: $radius;
37
+ animation: skeleton_loading
38
+ $skeleton_animation_duration
39
+ $skeleton_animation_timing
40
+ infinite;
41
+ }
42
+
43
+ @mixin skeleton_text {
44
+ @include skeleton(100%, $skeleton_height_md);
45
+ }
46
+
47
+ @mixin skeleton_title {
48
+ @include skeleton(100%, $skeleton_height_xl);
49
+ }
50
+
51
+ @mixin skeleton_avatar($size: token.$spacing_6xl) {
52
+ @include skeleton($size, $size, $skeleton_radius_lg);
53
+ }
54
+
55
+ @mixin skeleton_rect(
56
+ $width: 100%,
57
+ $height: token.$spacing_8xl
58
+ ) {
59
+ @include skeleton($width, $height, $skeleton_radius_md);
60
+ }
61
+
62
+ @keyframes skeleton_loading {
63
+ 0% {
64
+ background-position: 100% 0;
65
+ }
66
+ 100% {
67
+ background-position: 0 0;
68
+ }
69
+ }
@@ -7,5 +7,4 @@
7
7
  @forward "shadows";
8
8
  @forward "spacing";
9
9
  @forward "typography";
10
- @forward "z-index";
11
- @forward "src/animation/skeleton/skeleton";
10
+ @forward "z-index";