@alauda/ui 6.0.4-beta.12 → 6.0.4-beta.13

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 (31) hide show
  1. package/accordion/accordion-item/accordion-item.component.d.ts +1 -5
  2. package/accordion/accordion.component.d.ts +1 -0
  3. package/accordion/accordion.component.scss.ngstyle.d.ts +1 -0
  4. package/alauda-ui.metadata.json +1 -1
  5. package/bundles/alauda-ui.umd.js +333 -334
  6. package/bundles/alauda-ui.umd.js.map +1 -1
  7. package/bundles/alauda-ui.umd.min.js +1 -1
  8. package/bundles/alauda-ui.umd.min.js.map +1 -1
  9. package/esm2015/accordion/accordion-item/accordion-item.component.js +12 -14
  10. package/esm2015/accordion/accordion-item/accordion-item.component.ngfactory.js +10 -10
  11. package/esm2015/accordion/accordion-item/accordion-item.component.ngsummary.json +1 -1
  12. package/esm2015/accordion/accordion-item/accordion-item.component.scss.ngstyle.js +1 -1
  13. package/esm2015/accordion/accordion.component.js +7 -4
  14. package/esm2015/accordion/accordion.component.ngfactory.js +9 -8
  15. package/esm2015/accordion/accordion.component.ngsummary.json +1 -1
  16. package/esm2015/accordion/accordion.component.scss.ngstyle.js +9 -0
  17. package/esm2015/accordion/accordion.module.ngfactory.js +1 -1
  18. package/esm2015/table/table-cell.component.js +20 -25
  19. package/esm2015/table/table-cell.component.ngfactory.js +14 -17
  20. package/esm2015/table/table-cell.component.ngsummary.json +1 -1
  21. package/esm2015/table/table.component.js +1 -1
  22. package/esm2015/table/table.component.scss.ngstyle.js +1 -1
  23. package/esm2015/table/table.module.js +2 -3
  24. package/esm2015/table/table.module.ngfactory.js +6 -7
  25. package/esm2015/table/table.module.ngsummary.json +1 -1
  26. package/fesm2015/alauda-ui.js +304 -309
  27. package/fesm2015/alauda-ui.js.map +1 -1
  28. package/package.json +1 -1
  29. package/theme/_mixin.scss +51 -0
  30. package/theme/_pattern.scss +1 -60
  31. package/theme/_var.scss +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alauda/ui",
3
- "version": "6.0.4-beta.12",
3
+ "version": "6.0.4-beta.13",
4
4
  "description": "Angular UI components by Alauda Frontend Team.",
5
5
  "repository": "git+https://github.com/alauda/alauda-ui.git",
6
6
  "author": "Alauda Frontend",
package/theme/_mixin.scss CHANGED
@@ -98,6 +98,57 @@
98
98
  }
99
99
  }
100
100
 
101
+ @mixin expand-button() {
102
+ display: inline-flex;
103
+ justify-content: center;
104
+ align-items: center;
105
+ width: get-size(icon-size-m);
106
+ height: get-size(icon-size-m);
107
+ font-size: get-size(icon-size-m);
108
+ line-height: get-size(icon-size-m);
109
+ color: get-color(primary);
110
+ background-color: get-color(p-6);
111
+ border-radius: 50%;
112
+ border: none;
113
+ cursor: pointer;
114
+ transition: transform 0.1s ease-in-out;
115
+
116
+ aui-icon {
117
+ display: block;
118
+ width: get-size(icon-size-m);
119
+ height: get-size(icon-size-m);
120
+ }
121
+
122
+ &:hover {
123
+ background-color: get-color(p-7);
124
+ }
125
+
126
+ &:active {
127
+ background-color: get-color(p-5);
128
+ }
129
+
130
+ &.isExpanded {
131
+ transform: rotate(90deg);
132
+ color: get-color(n-10);
133
+ background-color: get-color(primary);
134
+
135
+ &:hover {
136
+ background-color: get-color(p-1);
137
+ }
138
+
139
+ &:active {
140
+ background-color: get-color(p-0);
141
+ }
142
+ }
143
+
144
+ &[disabled],
145
+ &.isExpanded[disabled] {
146
+ background-color: get-color(n-8);
147
+ color: get-color(n-6);
148
+ cursor: not-allowed;
149
+ }
150
+ }
151
+
101
152
  @mixin text-overflow {
102
153
  white-space: nowrap;
103
154
  overflow: hidden;
@@ -43,7 +43,7 @@
43
43
  justify-content: center;
44
44
  align-items: center;
45
45
  padding: $table-cell-padding-v $table-cell-padding-h;
46
- min-height: $table-row-min-height;
46
+ min-height: $table-row-min-height + 2px;
47
47
  @include text-set(m, placeholder);
48
48
 
49
49
  background-color: get-color(n-10);
@@ -60,62 +60,3 @@
60
60
  border-top-right-radius: 0;
61
61
  }
62
62
  }
63
-
64
- @mixin table-with-detail($detailColumn: 'detail') {
65
- .aui-table {
66
- &__row {
67
- flex-wrap: wrap;
68
- }
69
-
70
- &__column-#{$detailColumn} {
71
- &.aui-table__header-cell {
72
- display: none;
73
- }
74
-
75
- &.aui-table__cell {
76
- width: 100%;
77
- flex-shrink: 0;
78
- flex-basis: 100%;
79
- padding: 0 $table-cell-padding-h;
80
- overflow: hidden;
81
-
82
- .aui-table__cell-expand-detail {
83
- border-radius: get-size(border-radius-l);
84
- background-color: get-color(n-9);
85
- }
86
- }
87
- }
88
- }
89
- }
90
-
91
- @mixin table-with-expand($expandColumn: 'expand') {
92
- .aui-table {
93
- &__cell,
94
- &__header-cell {
95
- &.aui-table__column-#{$expandColumn} {
96
- display: flex;
97
- align-items: center;
98
- height: $table-row-min-height - 2px;
99
- max-width: calc(#{$table-cell-padding-h} + #{get-size(icon-size-m)});
100
- margin-right: -2px;
101
-
102
- .aui-table__cell-expand-button {
103
- width: get-size(icon-size-m);
104
- height: get-size(icon-size-m);
105
-
106
- &.collapsed {
107
- background-color: get-color(p-6);
108
- border-color: get-color(p-6);
109
- color: get-color(primary);
110
- }
111
-
112
- &[disabled] {
113
- background-color: get-color(n-8);
114
- border-color: get-color(n-8);
115
- color: get-color(n-6);
116
- }
117
- }
118
- }
119
- }
120
- }
121
- }
package/theme/_var.scss CHANGED
@@ -37,7 +37,7 @@ $text-button-mini-font-size: 12px;
37
37
  // Table
38
38
  $table-padding: 12px;
39
39
  $table-row-min-height: 60px;
40
- $table-cell-padding-v: 15px;
40
+ $table-cell-padding-v: 16px;
41
41
  $table-cell-padding-h: 10px;
42
42
 
43
43
  // Sort