ep-craft 0.1.2 → 0.1.3

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 (154) hide show
  1. package/dist/components/button/EpButton.vue.d.ts +4 -4
  2. package/dist/components/button/EpButton.vue.js +19 -19
  3. package/dist/components/button/button.d.ts +2 -2
  4. package/dist/components/button/button.js +1 -1
  5. package/dist/components/button/index.d.ts +2 -1
  6. package/dist/components/button/index.js +4 -3
  7. package/dist/index.css +2 -2
  8. package/dist/resolver.js +9 -12
  9. package/package.json +4 -2
  10. package/theme-chalk/src/affix.scss +7 -0
  11. package/theme-chalk/src/alert.scss +115 -0
  12. package/theme-chalk/src/anchor-link.scss +45 -0
  13. package/theme-chalk/src/anchor.scss +93 -0
  14. package/theme-chalk/src/aside.scss +8 -0
  15. package/theme-chalk/src/autocomplete.scss +95 -0
  16. package/theme-chalk/src/avatar-group.scss +25 -0
  17. package/theme-chalk/src/avatar.scss +55 -0
  18. package/theme-chalk/src/backtop.scss +29 -0
  19. package/theme-chalk/src/badge.scss +58 -0
  20. package/theme-chalk/src/base.scss +3 -0
  21. package/theme-chalk/src/breadcrumb-item.scss +58 -0
  22. package/theme-chalk/src/breadcrumb.scss +9 -0
  23. package/theme-chalk/src/button-group.scss +133 -0
  24. package/theme-chalk/src/button.scss +325 -0
  25. package/theme-chalk/src/calendar.scss +94 -0
  26. package/theme-chalk/src/card.scss +49 -0
  27. package/theme-chalk/src/carousel-item.scss +58 -0
  28. package/theme-chalk/src/carousel.scss +195 -0
  29. package/theme-chalk/src/cascader-panel.scss +150 -0
  30. package/theme-chalk/src/cascader.scss +289 -0
  31. package/theme-chalk/src/check-tag.scss +60 -0
  32. package/theme-chalk/src/checkbox-button.scss +142 -0
  33. package/theme-chalk/src/checkbox-group.scss +7 -0
  34. package/theme-chalk/src/checkbox.scss +300 -0
  35. package/theme-chalk/src/col.scss +56 -0
  36. package/theme-chalk/src/collapse-item.scss +72 -0
  37. package/theme-chalk/src/collapse-transition.scss +1 -0
  38. package/theme-chalk/src/collapse.scss +29 -0
  39. package/theme-chalk/src/color/index.scss +20 -0
  40. package/theme-chalk/src/color-picker-panel.scss +294 -0
  41. package/theme-chalk/src/color-picker.scss +165 -0
  42. package/theme-chalk/src/common/popup.scss +47 -0
  43. package/theme-chalk/src/common/transition.scss +125 -0
  44. package/theme-chalk/src/common/var.scss +1730 -0
  45. package/theme-chalk/src/config-provider.scss +0 -0
  46. package/theme-chalk/src/container.scss +14 -0
  47. package/theme-chalk/src/dark/css-vars.scss +45 -0
  48. package/theme-chalk/src/dark/var.scss +224 -0
  49. package/theme-chalk/src/date-picker/date-picker.scss +121 -0
  50. package/theme-chalk/src/date-picker/date-range-picker.scss +165 -0
  51. package/theme-chalk/src/date-picker/date-table.scss +164 -0
  52. package/theme-chalk/src/date-picker/month-table.scss +112 -0
  53. package/theme-chalk/src/date-picker/picker-panel.scss +152 -0
  54. package/theme-chalk/src/date-picker/picker.scss +217 -0
  55. package/theme-chalk/src/date-picker/time-picker.scss +90 -0
  56. package/theme-chalk/src/date-picker/time-range-picker.scss +33 -0
  57. package/theme-chalk/src/date-picker/time-spinner.scss +115 -0
  58. package/theme-chalk/src/date-picker/utils.scss +14 -0
  59. package/theme-chalk/src/date-picker/year-table.scss +108 -0
  60. package/theme-chalk/src/date-picker-panel.scss +34 -0
  61. package/theme-chalk/src/date-picker.scss +0 -0
  62. package/theme-chalk/src/descriptions-item.scss +77 -0
  63. package/theme-chalk/src/descriptions.scss +151 -0
  64. package/theme-chalk/src/dialog.scss +207 -0
  65. package/theme-chalk/src/display.scss +12 -0
  66. package/theme-chalk/src/divider.scss +48 -0
  67. package/theme-chalk/src/drawer.scss +251 -0
  68. package/theme-chalk/src/dropdown-item.scss +0 -0
  69. package/theme-chalk/src/dropdown-menu.scss +0 -0
  70. package/theme-chalk/src/dropdown.scss +208 -0
  71. package/theme-chalk/src/empty.scss +49 -0
  72. package/theme-chalk/src/footer.scss +12 -0
  73. package/theme-chalk/src/form-item.scss +246 -0
  74. package/theme-chalk/src/form.scss +28 -0
  75. package/theme-chalk/src/header.scss +12 -0
  76. package/theme-chalk/src/icon.scss +41 -0
  77. package/theme-chalk/src/image-viewer.scss +161 -0
  78. package/theme-chalk/src/image.scss +49 -0
  79. package/theme-chalk/src/index.scss +116 -0
  80. package/theme-chalk/src/infinite-scroll.scss +0 -0
  81. package/theme-chalk/src/input-number.scss +192 -0
  82. package/theme-chalk/src/input-otp.scss +191 -0
  83. package/theme-chalk/src/input-tag.scss +249 -0
  84. package/theme-chalk/src/input.scss +541 -0
  85. package/theme-chalk/src/link.scss +90 -0
  86. package/theme-chalk/src/loading.scss +104 -0
  87. package/theme-chalk/src/main.scss +14 -0
  88. package/theme-chalk/src/mention.scss +88 -0
  89. package/theme-chalk/src/menu-item-group.scss +0 -0
  90. package/theme-chalk/src/menu-item.scss +0 -0
  91. package/theme-chalk/src/menu.scss +376 -0
  92. package/theme-chalk/src/message-box.scss +220 -0
  93. package/theme-chalk/src/message.scss +123 -0
  94. package/theme-chalk/src/mixins/_button.scss +240 -0
  95. package/theme-chalk/src/mixins/_col.scss +41 -0
  96. package/theme-chalk/src/mixins/_var.scss +67 -0
  97. package/theme-chalk/src/mixins/config.scss +5 -0
  98. package/theme-chalk/src/mixins/function.scss +99 -0
  99. package/theme-chalk/src/mixins/mixins.scss +257 -0
  100. package/theme-chalk/src/mixins/utils.scss +39 -0
  101. package/theme-chalk/src/notification.scss +109 -0
  102. package/theme-chalk/src/option-group.scss +33 -0
  103. package/theme-chalk/src/option.scss +71 -0
  104. package/theme-chalk/src/overlay.scss +17 -0
  105. package/theme-chalk/src/page-header.scss +60 -0
  106. package/theme-chalk/src/pagination.scss +235 -0
  107. package/theme-chalk/src/popconfirm.scss +17 -0
  108. package/theme-chalk/src/popover.scss +61 -0
  109. package/theme-chalk/src/popper.scss +117 -0
  110. package/theme-chalk/src/progress.scss +179 -0
  111. package/theme-chalk/src/radio-button.scss +165 -0
  112. package/theme-chalk/src/radio-group.scss +9 -0
  113. package/theme-chalk/src/radio.scss +220 -0
  114. package/theme-chalk/src/rate.scss +121 -0
  115. package/theme-chalk/src/reset.scss +99 -0
  116. package/theme-chalk/src/result.scss +57 -0
  117. package/theme-chalk/src/row.scss +34 -0
  118. package/theme-chalk/src/scrollbar.scss +97 -0
  119. package/theme-chalk/src/segmented.scss +186 -0
  120. package/theme-chalk/src/select-dropdown-v2.scss +1 -0
  121. package/theme-chalk/src/select-dropdown.scss +57 -0
  122. package/theme-chalk/src/select-v2.scss +4 -0
  123. package/theme-chalk/src/select.scss +269 -0
  124. package/theme-chalk/src/skeleton-item.scss +83 -0
  125. package/theme-chalk/src/skeleton.scss +44 -0
  126. package/theme-chalk/src/slider.scss +212 -0
  127. package/theme-chalk/src/space.scss +20 -0
  128. package/theme-chalk/src/spinner.scss +43 -0
  129. package/theme-chalk/src/splitter-panel.scss +8 -0
  130. package/theme-chalk/src/splitter.scss +148 -0
  131. package/theme-chalk/src/statistic.scss +35 -0
  132. package/theme-chalk/src/step.scss +320 -0
  133. package/theme-chalk/src/steps.scss +22 -0
  134. package/theme-chalk/src/sub-menu.scss +0 -0
  135. package/theme-chalk/src/switch.scss +294 -0
  136. package/theme-chalk/src/tab-pane.scss +0 -0
  137. package/theme-chalk/src/table-column.scss +100 -0
  138. package/theme-chalk/src/table-v2.scss +239 -0
  139. package/theme-chalk/src/table.scss +698 -0
  140. package/theme-chalk/src/tabs.scss +699 -0
  141. package/theme-chalk/src/tag.scss +195 -0
  142. package/theme-chalk/src/text.scss +51 -0
  143. package/theme-chalk/src/time-picker.scss +5 -0
  144. package/theme-chalk/src/time-select.scss +37 -0
  145. package/theme-chalk/src/timeline-item.scss +135 -0
  146. package/theme-chalk/src/timeline.scss +101 -0
  147. package/theme-chalk/src/tooltip.scss +0 -0
  148. package/theme-chalk/src/tour.scss +187 -0
  149. package/theme-chalk/src/transfer.scss +201 -0
  150. package/theme-chalk/src/tree-select.scss +41 -0
  151. package/theme-chalk/src/tree.scss +134 -0
  152. package/theme-chalk/src/upload.scss +660 -0
  153. package/theme-chalk/src/var.scss +87 -0
  154. package/theme-chalk/src/virtual-list.scss +40 -0
package/dist/resolver.js CHANGED
@@ -1,25 +1,22 @@
1
- function a(t = {}) {
2
- const { importStyle: o = !0 } = t;
1
+ function n(r = {}) {
2
+ const { importStyle: o = !0 } = r;
3
3
  return {
4
4
  type: "component",
5
- resolve: (r) => {
6
- if (!r.startsWith("Ep")) return;
7
- const e = r.slice(2);
5
+ resolve: (t) => {
6
+ if (!t.startsWith("Ep")) return;
7
+ const e = t.slice(2);
8
8
  return e === "Button" || e === "ButtonGroup" ? {
9
- name: r,
9
+ name: t,
10
10
  from: "ep-craft"
11
11
  } : {
12
12
  name: `El${e}`,
13
13
  from: "ep-craft",
14
- sideEffects: o ? [`element-plus/es/components/${s(e)}/style/css`] : void 0
14
+ sideEffects: o ? ["ep-craft/dist/index.css"] : void 0
15
15
  };
16
16
  }
17
17
  };
18
18
  }
19
- function s(t) {
20
- return t.replace(/([A-Z])/g, "-$1").toLowerCase().replace(/^-/, "");
21
- }
22
19
  export {
23
- a as EpCraftResolver,
24
- a as default
20
+ n as EpCraftResolver,
21
+ n as default
25
22
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ep-craft",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "A Vue 3 component library based on element-plus with ep- prefix",
5
5
  "type": "module",
6
6
  "main": "./dist/ep-craft.js",
@@ -17,10 +17,12 @@
17
17
  },
18
18
  "./dist/index.css": "./dist/index.css",
19
19
  "./style.css": "./dist/index.css",
20
+ "./theme-chalk/*": "./theme-chalk/*",
20
21
  "./dist/*": "./dist/*"
21
22
  },
22
23
  "files": [
23
- "dist"
24
+ "dist",
25
+ "theme-chalk"
24
26
  ],
25
27
  "scripts": {
26
28
  "build": "vite build && vue-tsc --declaration --emitDeclarationOnly --outDir dist",
@@ -0,0 +1,7 @@
1
+ @use 'mixins/mixins' as *;
2
+
3
+ @include b(affix) {
4
+ @include m(fixed) {
5
+ position: fixed;
6
+ }
7
+ }
@@ -0,0 +1,115 @@
1
+ @use 'mixins/mixins' as *;
2
+ @use 'mixins/var' as *;
3
+ @use 'common/var' as *;
4
+
5
+ @include b(alert) {
6
+ @include set-component-css-var('alert', $alert);
7
+
8
+ width: 100%;
9
+ padding: getCssVar('alert', 'padding');
10
+ margin: 0;
11
+ box-sizing: border-box;
12
+ border-radius: getCssVar('alert', 'border-radius-base');
13
+ position: relative;
14
+ background-color: getCssVar('color', 'white');
15
+ overflow: hidden;
16
+ opacity: 1;
17
+ display: flex;
18
+ align-items: center;
19
+ transition: opacity getCssVar('transition-duration', 'fast');
20
+
21
+ @include when(light) {
22
+ .#{$namespace}-alert__close-btn {
23
+ color: getCssVar('text-color', 'placeholder');
24
+ }
25
+ }
26
+
27
+ @include when(dark) {
28
+ .#{$namespace}-alert__close-btn {
29
+ color: getCssVar('color', 'white');
30
+ }
31
+ .#{$namespace}-alert__description {
32
+ color: getCssVar('color', 'white');
33
+ }
34
+ }
35
+
36
+ @include when(center) {
37
+ justify-content: center;
38
+ }
39
+
40
+ @each $type in (primary, success, info, warning, error) {
41
+ @include m($type) {
42
+ @include css-var-from-global(
43
+ ('alert', 'bg-color'),
44
+ ('color', $type, 'light-9')
45
+ );
46
+
47
+ &.is-light {
48
+ background-color: getCssVar('alert', 'bg-color');
49
+ color: getCssVar('color', $type);
50
+
51
+ .#{$namespace}-alert__description {
52
+ color: getCssVar('color', $type);
53
+ }
54
+ }
55
+
56
+ &.is-dark {
57
+ background-color: getCssVar('color', $type);
58
+ color: getCssVar('color', 'white');
59
+ }
60
+ }
61
+ }
62
+
63
+ @include e(content) {
64
+ display: flex;
65
+ flex-direction: column;
66
+ gap: 4px;
67
+ }
68
+
69
+ & .#{$namespace}-alert__icon {
70
+ font-size: getCssVar('alert', 'icon-size');
71
+ width: getCssVar('alert', 'icon-size');
72
+ margin-right: 8px;
73
+
74
+ @include when(big) {
75
+ font-size: getCssVar('alert', 'icon-large-size');
76
+ width: getCssVar('alert', 'icon-large-size');
77
+ margin-right: 12px;
78
+ }
79
+ }
80
+
81
+ @include e(title) {
82
+ font-size: getCssVar('alert', 'title-font-size');
83
+ line-height: 24px;
84
+
85
+ &.with-description {
86
+ font-size: getCssVar('alert', 'title-with-description-font-size');
87
+ }
88
+ }
89
+
90
+ & .#{$namespace}-alert__description {
91
+ font-size: getCssVar('alert', 'description-font-size');
92
+ margin: 0;
93
+ }
94
+
95
+ & .#{$namespace}-alert__close-btn {
96
+ font-size: getCssVar('alert', 'close-font-size');
97
+ opacity: 1;
98
+ position: absolute;
99
+ top: 12px;
100
+ right: 16px;
101
+ cursor: pointer;
102
+
103
+ @include when(customed) {
104
+ font-style: normal;
105
+ font-size: getCssVar('alert', 'close-customed-font-size');
106
+ line-height: 24px;
107
+ top: 8px;
108
+ }
109
+ }
110
+ }
111
+
112
+ .#{$namespace}-alert-fade-enter-from,
113
+ .#{$namespace}-alert-fade-leave-active {
114
+ opacity: 0;
115
+ }
@@ -0,0 +1,45 @@
1
+ @use 'sass:map';
2
+
3
+ @use 'mixins/mixins' as *;
4
+ @use 'mixins/var' as *;
5
+ @use 'common/var' as *;
6
+
7
+ @include b(anchor) {
8
+ @include e(item) {
9
+ display: flex;
10
+ flex-direction: column;
11
+ }
12
+
13
+ @include e(link) {
14
+ font-size: getCssVar('anchor-font-size');
15
+ line-height: getCssVar('anchor-line-height');
16
+ padding: 4px 0;
17
+ color: getCssVar('anchor-color');
18
+ transition: color getCssVar('transition-duration');
19
+ white-space: nowrap;
20
+ text-decoration: none;
21
+ text-overflow: ellipsis;
22
+ overflow: hidden;
23
+ max-width: 100%;
24
+ outline: none;
25
+ cursor: pointer;
26
+
27
+ &:hover,
28
+ &:focus {
29
+ color: getCssVar('hover-color');
30
+ }
31
+
32
+ &:focus-visible {
33
+ border-radius: getCssVar('border-radius', 'base');
34
+ outline: 2px solid getCssVar('color-primary');
35
+ }
36
+
37
+ @include when(active) {
38
+ color: getCssVar('anchor-active-color');
39
+ }
40
+ }
41
+
42
+ & .#{$namespace}-anchor__list .#{$namespace}-anchor__item a {
43
+ display: inline-block;
44
+ }
45
+ }
@@ -0,0 +1,93 @@
1
+ @use 'sass:map';
2
+
3
+ @use 'mixins/mixins' as *;
4
+ @use 'mixins/var' as *;
5
+ @use 'common/var' as *;
6
+
7
+ @include b(anchor) {
8
+ @include set-component-css-var('anchor', $anchor);
9
+
10
+ position: relative;
11
+ background-color: getCssVar('anchor-bg-color');
12
+
13
+ @include e(marker) {
14
+ position: absolute;
15
+ background-color: getCssVar('anchor-marker-bg-color');
16
+ border-radius: 4px;
17
+ opacity: 0;
18
+ z-index: 0;
19
+ }
20
+
21
+ &.#{$namespace}-anchor--vertical {
22
+ @include e(marker) {
23
+ width: 4px;
24
+ height: 14px;
25
+ top: 8px;
26
+ left: 0;
27
+ transition:
28
+ top 0.25s ease-in-out,
29
+ opacity 0.25s;
30
+ }
31
+
32
+ @include e(list) {
33
+ padding-left: getCssVar('anchor-padding-indent');
34
+ }
35
+
36
+ &.#{$namespace}-anchor--underline {
37
+ &::before {
38
+ position: absolute;
39
+ left: 0;
40
+ width: 2px;
41
+ height: 100%;
42
+ background-color: rgba(5, 5, 5, 0.06);
43
+ content: '';
44
+ }
45
+
46
+ @include e(marker) {
47
+ width: 2px;
48
+ border-radius: unset;
49
+ }
50
+ }
51
+ }
52
+
53
+ &.#{$namespace}-anchor--horizontal {
54
+ @include e(marker) {
55
+ height: 2px;
56
+ width: 20px;
57
+ bottom: 0;
58
+ transition:
59
+ left 0.25s ease-in-out,
60
+ opacity 0.25s,
61
+ width 0.25s;
62
+ }
63
+
64
+ @include e(list) {
65
+ display: flex;
66
+ padding-bottom: 4px;
67
+
68
+ @include e(item) {
69
+ padding-left: 16px;
70
+
71
+ &:first-child {
72
+ padding-left: 0;
73
+ }
74
+ }
75
+ }
76
+
77
+ &.#{$namespace}-anchor--underline {
78
+ &::before {
79
+ position: absolute;
80
+ bottom: 0;
81
+ width: 100%;
82
+ height: 2px;
83
+ background-color: rgba(5, 5, 5, 0.06);
84
+ content: '';
85
+ }
86
+
87
+ @include e(marker) {
88
+ height: 2px;
89
+ border-radius: unset;
90
+ }
91
+ }
92
+ }
93
+ }
@@ -0,0 +1,8 @@
1
+ @use 'mixins/mixins' as *;
2
+
3
+ @include b(aside) {
4
+ overflow: auto;
5
+ box-sizing: border-box;
6
+ flex-shrink: 0;
7
+ width: var(#{getCssVarName('aside', 'width')}, 300px);
8
+ }
@@ -0,0 +1,95 @@
1
+ @use 'sass:map';
2
+
3
+ @use 'mixins/mixins' as *;
4
+ @use 'mixins/utils' as *;
5
+ @use 'common/var' as *;
6
+
7
+ @include b(autocomplete) {
8
+ @include set-component-css-var('input', $input);
9
+ }
10
+
11
+ @include b(autocomplete) {
12
+ width: getCssVar('input-width');
13
+ position: relative;
14
+ display: inline-block;
15
+
16
+ @include e(popper) {
17
+ @include picker-popper(
18
+ getCssVar('bg-color', 'overlay'),
19
+ 1px solid getCssVar('border-color', 'light'),
20
+ getCssVar('box-shadow', 'light')
21
+ );
22
+ }
23
+ }
24
+
25
+ @include b(autocomplete-suggestion) {
26
+ border-radius: getCssVar('border-radius', 'base');
27
+ box-sizing: border-box;
28
+
29
+ @include e(header) {
30
+ padding: 10px;
31
+ border-bottom: 1px solid getCssVar('border-color', 'lighter');
32
+ }
33
+
34
+ @include e(footer) {
35
+ padding: 10px;
36
+ border-top: 1px solid getCssVar('border-color', 'lighter');
37
+ }
38
+
39
+ @include e(wrap) {
40
+ max-height: 280px;
41
+ padding: 10px 0;
42
+ box-sizing: border-box;
43
+ }
44
+
45
+ @include e(list) {
46
+ margin: 0;
47
+ padding: 0;
48
+ }
49
+
50
+ & li {
51
+ padding: 0 20px;
52
+ margin: 0;
53
+ line-height: 34px;
54
+ cursor: pointer;
55
+ color: getCssVar('text-color', 'regular');
56
+ font-size: getCssVar('font-size', 'base');
57
+ list-style: none;
58
+ text-align: left;
59
+ @include utils-ellipsis;
60
+
61
+ &:hover {
62
+ background-color: map.get($select-option, 'hover-background');
63
+ }
64
+
65
+ &.highlighted {
66
+ background-color: map.get($select-option, 'hover-background');
67
+ }
68
+
69
+ &.divider {
70
+ margin-top: 6px;
71
+ border-top: 1px solid getCssVar('color', 'black');
72
+ }
73
+
74
+ &.divider:last-child {
75
+ margin-bottom: -6px;
76
+ }
77
+ }
78
+
79
+ @include when(loading) {
80
+ li {
81
+ cursor: default;
82
+ height: 100px;
83
+ display: flex;
84
+ align-items: center;
85
+ justify-content: center;
86
+
87
+ font-size: 20px;
88
+ color: getCssVar('text-color', 'secondary');
89
+
90
+ &:hover {
91
+ background-color: getCssVar('bg-color', 'overlay');
92
+ }
93
+ }
94
+ }
95
+ }
@@ -0,0 +1,25 @@
1
+ @use 'mixins/mixins' as *;
2
+ @use 'mixins/var' as *;
3
+ @use 'common/var' as *;
4
+
5
+ @include b(avatar-group) {
6
+ @include set-component-css-var('avatar-group', $avatar-group);
7
+
8
+ display: inline-flex;
9
+
10
+ .#{$namespace}-avatar {
11
+ border: 1px solid getCssVar('border-color-extra-light');
12
+ }
13
+
14
+ .#{$namespace}-avatar:not(:first-child) {
15
+ margin-left: getCssVar('avatar-group', 'item-gap');
16
+ }
17
+
18
+ @include e(collapse-avatars) {
19
+ @include set-component-css-var('avatar-group', $avatar-group);
20
+
21
+ .#{$namespace}-avatar:not(:first-child) {
22
+ margin-left: getCssVar('avatar-group', 'collapse-item-gap');
23
+ }
24
+ }
25
+ }
@@ -0,0 +1,55 @@
1
+ @use 'sass:map';
2
+
3
+ @use 'mixins/mixins' as *;
4
+ @use 'mixins/var' as *;
5
+ @use 'common/var' as *;
6
+
7
+ @include b(avatar) {
8
+ @include set-component-css-var('avatar', $avatar);
9
+ @include set-component-css-var('avatar-size', $avatar-size);
10
+
11
+ @include set-css-var-value(
12
+ ('avatar', 'size'),
13
+ map.get($avatar-size, 'default')
14
+ );
15
+
16
+ display: inline-flex;
17
+ justify-content: center;
18
+ align-items: center;
19
+ box-sizing: border-box;
20
+ text-align: center;
21
+ overflow: hidden;
22
+ outline: none;
23
+ color: getCssVar('avatar', 'text-color');
24
+ background: getCssVar('avatar', 'bg-color');
25
+ width: getCssVar('avatar', 'size');
26
+ height: getCssVar('avatar', 'size');
27
+ font-size: getCssVar('avatar', 'text-size');
28
+
29
+ > img {
30
+ display: block;
31
+ width: 100%;
32
+ height: 100%;
33
+ }
34
+
35
+ @include m(circle) {
36
+ border-radius: 50%;
37
+ }
38
+
39
+ @include m(square) {
40
+ border-radius: getCssVar('avatar', 'border-radius');
41
+ }
42
+
43
+ @include m(icon) {
44
+ font-size: getCssVar('avatar', 'icon-size');
45
+ }
46
+
47
+ @each $size in (small, large) {
48
+ @include m($size) {
49
+ @include set-css-var-value(
50
+ ('avatar', 'size'),
51
+ map.get($avatar-size, $size)
52
+ );
53
+ }
54
+ }
55
+ }
@@ -0,0 +1,29 @@
1
+ @use 'mixins/mixins' as *;
2
+ @use 'mixins/var' as *;
3
+ @use 'common/var' as *;
4
+
5
+ @include b(backtop) {
6
+ @include set-component-css-var('backtop', $backtop);
7
+
8
+ position: fixed;
9
+ background-color: getCssVar('backtop', 'bg-color');
10
+ width: 40px;
11
+ height: 40px;
12
+ border-radius: 50%;
13
+ color: getCssVar('backtop', 'text-color');
14
+ display: flex;
15
+ align-items: center;
16
+ justify-content: center;
17
+ font-size: 20px;
18
+ box-shadow: getCssVar('box-shadow', 'lighter');
19
+ cursor: pointer;
20
+ z-index: 5;
21
+
22
+ &:hover {
23
+ background-color: getCssVar('backtop', 'hover-bg-color');
24
+ }
25
+
26
+ @include e(icon) {
27
+ font-size: 20px;
28
+ }
29
+ }
@@ -0,0 +1,58 @@
1
+ @use 'mixins/mixins' as *;
2
+ @use 'mixins/var' as *;
3
+ @use 'common/var' as *;
4
+
5
+ @include b(badge) {
6
+ @include set-component-css-var('badge', $badge);
7
+
8
+ position: relative;
9
+ vertical-align: middle;
10
+ display: inline-block;
11
+ width: fit-content;
12
+
13
+ @include e(content) {
14
+ background-color: getCssVar('badge', 'bg-color');
15
+ border-radius: getCssVar('badge', 'radius');
16
+ color: getCssVar('color', 'white');
17
+
18
+ display: inline-flex;
19
+ justify-content: center;
20
+ align-items: center;
21
+
22
+ font-size: getCssVar('badge', 'font-size');
23
+ height: getCssVar('badge', 'size');
24
+ padding: 0 getCssVar('badge', 'padding');
25
+ white-space: nowrap;
26
+ border: 1px solid getCssVar('bg-color');
27
+
28
+ @include when(fixed) {
29
+ position: absolute;
30
+ top: 0;
31
+ right: calc(1px + #{getCssVar('badge', 'size')} / 2);
32
+ transform: translateY(-50%) translateX(100%);
33
+ z-index: getCssVar('index', 'normal');
34
+
35
+ @include when(dot) {
36
+ right: 5px;
37
+ }
38
+ }
39
+
40
+ @include when(dot) {
41
+ height: 8px;
42
+ width: 8px;
43
+ padding: 0;
44
+ right: 0;
45
+ border-radius: 50%;
46
+ }
47
+
48
+ @include when(hide-zero) {
49
+ display: none;
50
+ }
51
+
52
+ @each $type in (primary, success, warning, info, danger) {
53
+ @include m($type) {
54
+ background-color: getCssVar('color', $type);
55
+ }
56
+ }
57
+ }
58
+ }
@@ -0,0 +1,3 @@
1
+ @use 'var.scss';
2
+ @use 'common/transition.scss';
3
+ @use 'icon.scss';
@@ -0,0 +1,58 @@
1
+ @use 'mixins/mixins' as *;
2
+ @use 'mixins/utils' as *;
3
+ @use 'common/var' as *;
4
+
5
+ @include b(breadcrumb) {
6
+ @include e(separator) {
7
+ margin: 0 9px;
8
+ font-weight: bold;
9
+ color: getCssVar('text-color', 'placeholder');
10
+
11
+ &.#{$namespace}-icon {
12
+ margin: 0 6px;
13
+ font-weight: normal;
14
+ svg {
15
+ vertical-align: middle;
16
+ }
17
+ }
18
+ }
19
+
20
+ @include e(item) {
21
+ float: left;
22
+ display: inline-flex;
23
+ align-items: center;
24
+
25
+ @include e(inner) {
26
+ color: getCssVar('text-color', 'regular');
27
+
28
+ &.is-link,
29
+ & a {
30
+ font-weight: bold;
31
+ text-decoration: none;
32
+ transition: getCssVar('transition', 'color');
33
+ color: getCssVar('text-color', 'primary');
34
+
35
+ &:hover {
36
+ color: getCssVar('color-primary');
37
+ cursor: pointer;
38
+ }
39
+ }
40
+ }
41
+
42
+ &:last-child {
43
+ .#{$namespace}-breadcrumb__inner,
44
+ .#{$namespace}-breadcrumb__inner a {
45
+ &,
46
+ &:hover {
47
+ font-weight: normal;
48
+ color: getCssVar('text-color', 'regular');
49
+ cursor: text;
50
+ }
51
+ }
52
+
53
+ .#{$namespace}-breadcrumb__separator {
54
+ display: none;
55
+ }
56
+ }
57
+ }
58
+ }
@@ -0,0 +1,9 @@
1
+ @use 'mixins/mixins' as *;
2
+ @use 'mixins/utils' as *;
3
+ @use 'common/var' as *;
4
+
5
+ @include b(breadcrumb) {
6
+ font-size: 14px;
7
+ line-height: 1;
8
+ @include utils-clearfix;
9
+ }