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
@@ -0,0 +1,90 @@
1
+ @use '../mixins/mixins' as *;
2
+ @use '../common/var' as *;
3
+
4
+ @include b(time-panel) {
5
+ border-radius: 2px;
6
+ position: relative;
7
+ width: 180px;
8
+ left: 0;
9
+ z-index: getCssVar('index-top');
10
+ user-select: none;
11
+ box-sizing: content-box;
12
+
13
+ @include e(content) {
14
+ font-size: 0;
15
+ position: relative;
16
+ overflow: hidden;
17
+
18
+ &::after,
19
+ &::before {
20
+ content: '';
21
+ top: 50%;
22
+ position: absolute;
23
+ margin-top: -16px;
24
+ height: 32px;
25
+ z-index: -1;
26
+ left: 0;
27
+ right: 0;
28
+ box-sizing: border-box;
29
+ padding-top: 6px;
30
+ text-align: left;
31
+ }
32
+
33
+ &::after {
34
+ left: 50%;
35
+ margin-left: 12%;
36
+ margin-right: 12%;
37
+ }
38
+
39
+ &::before {
40
+ padding-left: 50%;
41
+ margin-right: 12%;
42
+ margin-left: 12%;
43
+ border-top: 1px solid getCssVar('border-color-light');
44
+ border-bottom: 1px solid getCssVar('border-color-light');
45
+ }
46
+
47
+ &.has-seconds {
48
+ &::after {
49
+ left: calc(100% / 3 * 2);
50
+ }
51
+
52
+ &::before {
53
+ padding-left: calc(100% / 3);
54
+ }
55
+ }
56
+ }
57
+
58
+ @include e(footer) {
59
+ border-top: 1px solid
60
+ var(
61
+ #{getCssVarName('timepicker-inner-border-color')},
62
+ #{getCssVar('border-color-light')}
63
+ );
64
+ padding: 4px;
65
+ height: 36px;
66
+ line-height: 25px;
67
+ text-align: right;
68
+ box-sizing: border-box;
69
+ }
70
+
71
+ @include e(btn) {
72
+ border: none;
73
+ line-height: 28px;
74
+ padding: 0 5px;
75
+ margin: 0 5px;
76
+ cursor: pointer;
77
+ background-color: transparent;
78
+ outline: none;
79
+ font-size: 12px;
80
+ color: getCssVar('text-color', 'primary');
81
+
82
+ &.confirm {
83
+ font-weight: 800;
84
+ color: var(
85
+ #{getCssVarName('timepicker-active-color')},
86
+ #{getCssVar('color-primary')}
87
+ );
88
+ }
89
+ }
90
+ }
@@ -0,0 +1,33 @@
1
+ @use '../mixins/mixins' as *;
2
+ @use '../common/var' as *;
3
+
4
+ @include b(time-range-picker) {
5
+ width: 354px;
6
+ overflow: visible;
7
+
8
+ @include e(content) {
9
+ position: relative;
10
+ text-align: center;
11
+ padding: 10px;
12
+ z-index: 1;
13
+ }
14
+
15
+ @include e(cell) {
16
+ box-sizing: border-box;
17
+ margin: 0;
18
+ padding: 4px 7px 7px;
19
+ width: 50%;
20
+ display: inline-block;
21
+ }
22
+
23
+ @include e(header) {
24
+ margin-bottom: 5px;
25
+ text-align: center;
26
+ font-size: 14px;
27
+ }
28
+
29
+ @include e(body) {
30
+ border-radius: 2px;
31
+ border: 1px solid getCssVar('datepicker-border-color');
32
+ }
33
+ }
@@ -0,0 +1,115 @@
1
+ @use '../mixins/mixins' as *;
2
+ @use '../common/var' as *;
3
+
4
+ @include b(time-spinner) {
5
+ &.has-seconds {
6
+ .#{$namespace}-time-spinner__wrapper {
7
+ width: 33.3%;
8
+ }
9
+ }
10
+
11
+ @include e(wrapper) {
12
+ max-height: 192px;
13
+ overflow: auto;
14
+ display: inline-block;
15
+ width: 50%;
16
+ vertical-align: top;
17
+ position: relative;
18
+
19
+ &.#{$namespace}-scrollbar__wrap:not(
20
+ .#{$namespace}-scrollbar__wrap--hidden-default
21
+ ) {
22
+ padding-bottom: 15px;
23
+ }
24
+
25
+ @include when(arrow) {
26
+ box-sizing: border-box;
27
+ text-align: center;
28
+ overflow: hidden;
29
+
30
+ .#{$namespace}-time-spinner__list {
31
+ transform: translateY(-32px);
32
+ }
33
+
34
+ .#{$namespace}-time-spinner__item:hover:not(.is-disabled):not(
35
+ .is-active
36
+ ) {
37
+ background: getCssVar('fill-color', 'light');
38
+ cursor: default;
39
+ }
40
+ }
41
+ }
42
+
43
+ @include e(arrow) {
44
+ font-size: 12px;
45
+ color: getCssVar('text-color', 'secondary');
46
+ position: absolute;
47
+ left: 0;
48
+ width: 100%;
49
+ z-index: getCssVar('index-normal');
50
+ text-align: center;
51
+ height: 30px;
52
+ line-height: 30px;
53
+ cursor: pointer;
54
+
55
+ &:hover {
56
+ color: getCssVar('color-primary');
57
+ }
58
+
59
+ &.arrow-up {
60
+ top: 10px;
61
+ }
62
+
63
+ &.arrow-down {
64
+ bottom: 10px;
65
+ }
66
+ }
67
+
68
+ @include e(input) {
69
+ &.#{$namespace}-input {
70
+ width: 70%;
71
+
72
+ .#{$namespace}-input__inner {
73
+ padding: 0;
74
+ text-align: center;
75
+ }
76
+ }
77
+ }
78
+
79
+ @include e(list) {
80
+ padding: 0;
81
+ margin: 0;
82
+ list-style: none;
83
+ text-align: center;
84
+
85
+ &::after,
86
+ &::before {
87
+ content: '';
88
+ display: block;
89
+ width: 100%;
90
+ height: 80px;
91
+ }
92
+ }
93
+
94
+ @include e(item) {
95
+ height: 32px;
96
+ line-height: 32px;
97
+ font-size: 12px;
98
+ color: getCssVar('text-color', 'regular');
99
+
100
+ &:hover:not(.is-disabled):not(.is-active) {
101
+ background: getCssVar('fill-color', 'light');
102
+ cursor: pointer;
103
+ }
104
+
105
+ &.is-active:not(.is-disabled) {
106
+ color: getCssVar('text-color', 'primary');
107
+ font-weight: bold;
108
+ }
109
+
110
+ &.is-disabled {
111
+ color: getCssVar('text-color', 'placeholder');
112
+ cursor: not-allowed;
113
+ }
114
+ }
115
+ }
@@ -0,0 +1,14 @@
1
+ @use '../mixins/mixins' as *;
2
+ @use '../common/var' as *;
3
+
4
+ @mixin disable {
5
+ color: getCssVar('text-color-disabled');
6
+
7
+ &:hover {
8
+ cursor: not-allowed;
9
+ }
10
+
11
+ & .#{$namespace}-icon {
12
+ cursor: inherit;
13
+ }
14
+ }
@@ -0,0 +1,108 @@
1
+ @use '../mixins/mixins' as *;
2
+ @use '../common/var' as *;
3
+
4
+ @include b(year-table) {
5
+ font-size: 12px;
6
+ margin: -1px;
7
+ border-collapse: collapse;
8
+
9
+ .#{$namespace}-icon {
10
+ color: getCssVar('datepicker', 'icon-color');
11
+ }
12
+
13
+ td {
14
+ width: 68px;
15
+ text-align: center;
16
+ padding: 8px 0px;
17
+ cursor: pointer;
18
+ position: relative;
19
+
20
+ @include b(date-table-cell) {
21
+ height: 48px;
22
+ padding: 6px 0;
23
+ box-sizing: border-box;
24
+ }
25
+
26
+ &.today {
27
+ .#{$namespace}-date-table-cell__text {
28
+ color: getCssVar('color', 'primary');
29
+ font-weight: bold;
30
+ }
31
+
32
+ &.start-date .#{$namespace}-date-table-cell__text,
33
+ &.end-date .#{$namespace}-date-table-cell__text {
34
+ color: $color-white;
35
+ }
36
+ }
37
+
38
+ &.disabled .#{$namespace}-date-table-cell__text {
39
+ background-color: getCssVar('fill-color', 'light');
40
+ cursor: not-allowed;
41
+ color: getCssVar('text-color', 'placeholder');
42
+
43
+ &:hover {
44
+ color: getCssVar('text-color', 'placeholder');
45
+ }
46
+ }
47
+
48
+ @include b(date-table-cell__text) {
49
+ width: 60px;
50
+ height: 36px;
51
+ display: block;
52
+ line-height: 36px;
53
+ color: getCssVar('datepicker-text-color');
54
+ border-radius: 18px;
55
+ margin: 0 auto;
56
+ position: absolute;
57
+ left: 50%;
58
+ transform: translateX(-50%);
59
+
60
+ &:hover {
61
+ color: getCssVar('datepicker-hover-text-color');
62
+ }
63
+ }
64
+
65
+ &.in-range .#{$namespace}-date-table-cell {
66
+ background-color: getCssVar('datepicker-inrange-bg-color');
67
+
68
+ &:hover {
69
+ background-color: getCssVar('datepicker-inrange-hover-bg-color');
70
+ }
71
+ }
72
+
73
+ &.start-date .#{$namespace}-date-table-cell,
74
+ &.end-date .#{$namespace}-date-table-cell {
75
+ color: $color-white;
76
+ }
77
+
78
+ &.start-date .#{$namespace}-date-table-cell__text,
79
+ &.end-date .#{$namespace}-date-table-cell__text {
80
+ color: $color-white;
81
+ background-color: getCssVar('datepicker-active-color');
82
+ }
83
+
84
+ &.start-date .#{$namespace}-date-table-cell {
85
+ border-top-left-radius: 24px;
86
+ border-bottom-left-radius: 24px;
87
+ }
88
+
89
+ &.end-date .#{$namespace}-date-table-cell {
90
+ border-top-right-radius: 24px;
91
+ border-bottom-right-radius: 24px;
92
+ }
93
+
94
+ &.current:not(.disabled) .#{$namespace}-date-table-cell__text {
95
+ color: $color-white;
96
+ background-color: getCssVar('datepicker-active-color');
97
+ }
98
+
99
+ &:focus-visible {
100
+ outline: none;
101
+
102
+ .#{$namespace}-date-table-cell__text {
103
+ outline: 2px solid getCssVar('datepicker-active-color');
104
+ outline-offset: 1px;
105
+ }
106
+ }
107
+ }
108
+ }
@@ -0,0 +1,34 @@
1
+ @use 'common/var' as *;
2
+ @use 'mixins/mixins' as *;
3
+ @use 'mixins/var' as *;
4
+
5
+ @forward './date-picker/date-table.scss';
6
+ @forward './date-picker/month-table.scss';
7
+ @forward './date-picker/year-table.scss';
8
+ @forward './date-picker/time-spinner.scss';
9
+ @forward './date-picker/picker.scss';
10
+ @forward './date-picker/date-picker.scss';
11
+ @forward './date-picker/date-range-picker.scss';
12
+ @forward './date-picker/time-range-picker.scss';
13
+ @forward './date-picker/time-picker.scss';
14
+
15
+ @include b(picker-panel) {
16
+ @include when(border) {
17
+ border: solid 1px getCssVar('border-color-lighter');
18
+
19
+ @include e(body-wrapper) {
20
+ position: relative;
21
+ }
22
+ &.#{$namespace}-picker-panel *[slot='sidebar'],
23
+ &.#{$namespace}-picker-panel__sidebar {
24
+ position: absolute;
25
+ top: 0;
26
+ height: 100%;
27
+ width: 110px;
28
+ border-right: 1px solid getCssVar('datepicker-inner-border-color');
29
+ box-sizing: border-box;
30
+ padding-top: 6px;
31
+ overflow: auto;
32
+ }
33
+ }
34
+ }
File without changes
@@ -0,0 +1,77 @@
1
+ @use 'sass:map';
2
+
3
+ @use 'mixins/mixins' as *;
4
+ @use 'common/var' as *;
5
+
6
+ $descriptions-item-label-margin-right: () !default;
7
+ $descriptions-item-label-margin-right: map.merge(
8
+ (
9
+ 'large': 16px,
10
+ 'default': 16px,
11
+ 'small': 12px,
12
+ ),
13
+ $descriptions-item-label-margin-right
14
+ );
15
+
16
+ $descriptions-item-vertical-label-padding-bottom: () !default;
17
+ $descriptions-item-vertical-label-padding-bottom: map.merge(
18
+ (
19
+ 'large': 8px,
20
+ 'default': 6px,
21
+ 'small': 4px,
22
+ ),
23
+ $descriptions-item-vertical-label-padding-bottom
24
+ );
25
+
26
+ @include b(descriptions) {
27
+ @include e(label) {
28
+ &.#{$namespace}-descriptions__cell.is-bordered-label {
29
+ font-weight: bold;
30
+ color: getCssVar('text-color', 'regular');
31
+ background: getCssVar('descriptions-item-bordered-label-background');
32
+ }
33
+
34
+ &:not(.is-bordered-label) {
35
+ color: getCssVar('text-color', 'primary');
36
+ margin-right: map.get($descriptions-item-label-margin-right, 'default');
37
+ }
38
+
39
+ &.#{$namespace}-descriptions__cell:not(
40
+ .is-bordered-label
41
+ ).is-vertical-label {
42
+ padding-bottom: map.get(
43
+ $descriptions-item-vertical-label-padding-bottom,
44
+ 'default'
45
+ );
46
+ }
47
+ }
48
+
49
+ @include e(content) {
50
+ &.#{$namespace}-descriptions__cell.is-bordered-content {
51
+ color: getCssVar('text-color', 'primary');
52
+ }
53
+
54
+ &:not(.is-bordered-label) {
55
+ color: getCssVar('text-color', 'regular');
56
+ }
57
+ }
58
+
59
+ @each $size in (large, small) {
60
+ @include m($size) {
61
+ @include e(label) {
62
+ &:not(.is-bordered-label) {
63
+ margin-right: map.get($descriptions-item-label-margin-right, $size);
64
+ }
65
+
66
+ &.#{$namespace}-descriptions__cell:not(
67
+ .is-bordered-label
68
+ ).is-vertical-label {
69
+ padding-bottom: map.get(
70
+ $descriptions-item-vertical-label-padding-bottom,
71
+ $size
72
+ );
73
+ }
74
+ }
75
+ }
76
+ }
77
+ }
@@ -0,0 +1,151 @@
1
+ @use 'sass:map';
2
+
3
+ @use 'mixins/mixins' as *;
4
+ @use 'mixins/var' as *;
5
+ @use 'common/var' as *;
6
+
7
+ $descriptions-header-margin-bottom: () !default;
8
+ $descriptions-header-margin-bottom: map.merge(
9
+ (
10
+ 'large': 20px,
11
+ 'default': 16px,
12
+ 'small': 12px,
13
+ ),
14
+ $descriptions-header-margin-bottom
15
+ );
16
+
17
+ $descriptions-title-font-size: () !default;
18
+ $descriptions-title-font-size: map.merge(
19
+ (
20
+ 'large': 16px,
21
+ 'default': 16px,
22
+ 'small': 14px,
23
+ ),
24
+ $descriptions-title-font-size
25
+ );
26
+
27
+ $descriptions-cell-padding-bottom: () !default;
28
+ $descriptions-cell-padding-bottom: map.merge(
29
+ (
30
+ 'large': 16px,
31
+ 'default': 12px,
32
+ 'small': 8px,
33
+ ),
34
+ $descriptions-cell-padding-bottom
35
+ );
36
+
37
+ $descriptions-bordered-cell-padding: () !default;
38
+ $descriptions-bordered-cell-padding: map.merge(
39
+ (
40
+ 'large': 12px 15px,
41
+ 'default': 8px 11px,
42
+ 'small': 4px 7px,
43
+ ),
44
+ $descriptions-bordered-cell-padding
45
+ );
46
+
47
+ $descriptions-cell-font-size: () !default;
48
+ $descriptions-cell-font-size: map.merge(
49
+ (
50
+ 'large': 14px,
51
+ 'default': 14px,
52
+ 'small': 12px,
53
+ ),
54
+ $descriptions-cell-font-size
55
+ );
56
+
57
+ @include b(descriptions) {
58
+ @include set-component-css-var('descriptions', $descriptions);
59
+
60
+ box-sizing: border-box;
61
+ font-size: getCssVar('font-size', 'base');
62
+ color: getCssVar('text-color', 'primary');
63
+
64
+ @include e(header) {
65
+ display: flex;
66
+ justify-content: space-between;
67
+ align-items: center;
68
+ margin-bottom: map.get($descriptions-header-margin-bottom, 'default');
69
+
70
+ @include e(title) {
71
+ color: getCssVar('text-color', 'primary');
72
+ font-size: map.get($descriptions-title-font-size, 'default');
73
+ font-weight: bold;
74
+ }
75
+ }
76
+
77
+ @include e(body) {
78
+ background-color: getCssVar('fill-color', 'blank');
79
+
80
+ .#{$namespace}-descriptions__table {
81
+ border-collapse: collapse;
82
+ width: 100%;
83
+
84
+ .#{$namespace}-descriptions__cell {
85
+ box-sizing: border-box;
86
+ text-align: left;
87
+ line-height: 23px;
88
+ font-size: map.get($descriptions-cell-font-size, 'default');
89
+
90
+ @include when(left) {
91
+ text-align: left;
92
+ }
93
+
94
+ @include when(center) {
95
+ text-align: center;
96
+ }
97
+
98
+ @include when(right) {
99
+ text-align: right;
100
+ }
101
+ }
102
+
103
+ &.is-bordered {
104
+ .#{$namespace}-descriptions__cell {
105
+ border: getCssVar('descriptions-table-border');
106
+ padding: map.get($descriptions-bordered-cell-padding, 'default');
107
+ }
108
+ }
109
+
110
+ &:not(.is-bordered) {
111
+ .#{$namespace}-descriptions__cell {
112
+ padding-bottom: map.get($descriptions-cell-padding-bottom, 'default');
113
+ }
114
+ }
115
+ }
116
+ }
117
+
118
+ @each $size in (large, small) {
119
+ @include m($size) {
120
+ font-size: map.get($input-font-size, $size);
121
+
122
+ @include e(header) {
123
+ margin-bottom: map.get($descriptions-header-margin-bottom, $size);
124
+
125
+ @include e(title) {
126
+ font-size: map.get($descriptions-title-font-size, $size);
127
+ }
128
+ }
129
+
130
+ @include e(body) {
131
+ .#{$namespace}-descriptions__table {
132
+ .#{$namespace}-descriptions__cell {
133
+ font-size: map.get($descriptions-cell-font-size, $size);
134
+ }
135
+
136
+ &.is-bordered {
137
+ .#{$namespace}-descriptions__cell {
138
+ padding: map.get($descriptions-bordered-cell-padding, $size);
139
+ }
140
+ }
141
+
142
+ &:not(.is-bordered) {
143
+ .#{$namespace}-descriptions__cell {
144
+ padding-bottom: map.get($descriptions-cell-padding-bottom, $size);
145
+ }
146
+ }
147
+ }
148
+ }
149
+ }
150
+ }
151
+ }