fmihel-windeco-components 2.0.0-beta.6 → 2.0.0-beta.61

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 (117) hide show
  1. package/copy-to +19 -3
  2. package/dev-bs/App.jsx +1 -1
  3. package/dev-bs/style/custom.scss +1 -1
  4. package/dist/windeco-components.js +2 -4
  5. package/dist/windeco-components.js.LICENSE.txt +3 -0
  6. package/jsx/Btn.jsx +9 -7
  7. package/jsx/BtnIcon.jsx +36 -15
  8. package/jsx/CheckBox.jsx +9 -8
  9. package/jsx/Collapse.jsx +2 -7
  10. package/jsx/ComboBox/ComboItem.jsx +5 -2
  11. package/jsx/ComboBox/ComboList.jsx +18 -12
  12. package/jsx/ComboBox.jsx +42 -15
  13. package/jsx/Container/Cols.jsx +11 -0
  14. package/jsx/Container/Row.jsx +18 -0
  15. package/jsx/Container.jsx +25 -5
  16. package/jsx/Edit.jsx +32 -29
  17. package/jsx/Gap/Gap.jsx +4 -6
  18. package/jsx/Group.jsx +8 -9
  19. package/jsx/Icon.jsx +6 -7
  20. package/jsx/Label.jsx +13 -11
  21. package/jsx/List/ListItem.jsx +5 -9
  22. package/jsx/List/ListNode.jsx +3 -25
  23. package/jsx/{List/List.jsx → List.jsx} +8 -22
  24. package/jsx/Modal.jsx +10 -5
  25. package/jsx/ModalDialog/Header.jsx +0 -0
  26. package/jsx/ModalDialog/ModalDialogAPI.js +15 -6
  27. package/jsx/ModalDialog.jsx +47 -28
  28. package/jsx/NavBar/NavItem.jsx +36 -25
  29. package/jsx/NavBar/NavLogo.jsx +5 -3
  30. package/jsx/NavBar.jsx +36 -60
  31. package/jsx/OnResize.jsx +126 -0
  32. package/jsx/StaticText.jsx +30 -0
  33. package/jsx/Table/TBody.jsx +13 -1
  34. package/jsx/Table/TD.jsx +41 -2
  35. package/jsx/Table/TH.jsx +12 -1
  36. package/jsx/Table/THead.jsx +4 -0
  37. package/jsx/Table/TR.jsx +40 -13
  38. package/jsx/Table.jsx +48 -27
  39. package/jsx/TableFixed/Data.jsx +35 -29
  40. package/jsx/TableFixed/Header.jsx +4 -0
  41. package/jsx/TableFixed/TD.jsx +27 -1
  42. package/jsx/TableFixed/TR.jsx +12 -2
  43. package/jsx/TableFixed/utils.js +1 -1
  44. package/jsx/TableFixed.jsx +49 -32
  45. package/jsx/Text.jsx +11 -12
  46. package/jsx/arch/NavBar/NavItem.jsx +45 -0
  47. package/jsx/arch/NavBar/NavLogo.jsx +23 -0
  48. package/jsx/{NavBar → arch/NavBar}/NavMenu.jsx +3 -3
  49. package/jsx/arch/NavBar.jsx +81 -0
  50. package/jsx/index.js +27 -18
  51. package/package.json +8 -7
  52. package/style/Btn.scss +36 -24
  53. package/style/BtnIcon.scss +51 -30
  54. package/style/CheckBox.scss +26 -33
  55. package/style/ComboBox.scss +70 -56
  56. package/style/Container.scss +3 -44
  57. package/style/Edit.scss +48 -33
  58. package/style/Gap.scss +10 -5
  59. package/style/Group.scss +51 -75
  60. package/style/Icon.scss +2 -3
  61. package/style/Label.scss +31 -14
  62. package/style/List.scss +22 -35
  63. package/style/Modal.scss +8 -4
  64. package/style/ModalDialog.scss +28 -30
  65. package/style/NavBar.scss +186 -194
  66. package/style/ScrollBar.scss +28 -42
  67. package/style/Table.scss +31 -33
  68. package/style/TableFixed.scss +21 -26
  69. package/style/Text.scss +1 -51
  70. package/style/arch/ComboBox.scss +1 -1
  71. package/style/arch/NavBar.scss +236 -0
  72. package/style/{utils.scss → arch/utils.scss} +27 -1
  73. package/style/{vars.scss → arch/vars.scss} +71 -87
  74. package/style/ctrls.scss +18 -18
  75. package/style/define/defineThemeVars.scss +3 -0
  76. package/style/define/get-var.scss +13 -0
  77. package/style/index.scss +3 -0
  78. package/style/readme.txt +1 -1
  79. package/style/theme-dark.scss +38 -0
  80. package/style/theme-default.scss +191 -0
  81. package/style/utils/font-family.scss +37 -0
  82. package/style/utils/getThemingRootClass.scss +3 -0
  83. package/style/utils/h.scss +34 -0
  84. package/style/utils/margin.scss +33 -0
  85. package/style/utils/no-border.scss +10 -0
  86. package/style/utils/padding.scss +33 -0
  87. package/style/utils/panel.scss +36 -0
  88. package/style/utils/screen.scss +139 -0
  89. package/style/utils/stretch.scss +3 -0
  90. package/style/utils/text-style.scss +32 -0
  91. package/style/utils/transition.scss +9 -0
  92. package/{jsx/Utils → utils}/abs.js +2 -2
  93. package/{jsx/Collapse → utils}/collapse.js +2 -2
  94. package/utils/css.js +56 -0
  95. package/utils/display.js +2 -0
  96. package/utils/get.js +24 -0
  97. package/{jsx/Utils → utils}/isCompact.js +1 -1
  98. package/utils/navbar.js +28 -0
  99. package/utils/parentDOM.js +21 -0
  100. package/utils/style.js +15 -0
  101. package/{jsx/Utils → utils}/theme.js +1 -1
  102. package/{jsx/Utils → utils}/timer.js +15 -10
  103. package/jsx/Container/Col.jsx +0 -24
  104. /package/style/{all.scss → arch/all.scss} +0 -0
  105. /package/{jsx/Utils → utils}/DOM.js +0 -0
  106. /package/{jsx/Utils → utils}/areaDOM.js +0 -0
  107. /package/{jsx/Utils → utils}/childDOM.js +0 -0
  108. /package/{jsx/Utils → utils}/filter.js +0 -0
  109. /package/{jsx/Utils → utils}/getId.js +0 -0
  110. /package/{jsx/Utils → utils}/isMobile.js +0 -0
  111. /package/{jsx/Utils → utils}/map.js +0 -0
  112. /package/{jsx/Utils → utils}/mouse.js +0 -0
  113. /package/{jsx/Utils → utils}/onResizeScreen.js +0 -0
  114. /package/{jsx/Utils → utils}/screen.js +0 -0
  115. /package/{jsx/Utils → utils}/size.js +0 -0
  116. /package/{jsx/Utils → utils}/throttle.js +0 -0
  117. /package/{jsx/Utils → utils}/translate.js +0 -0
package/style/NavBar.scss CHANGED
@@ -1,236 +1,228 @@
1
- @use 'sass:meta';
2
- @import './vars.scss';
1
+ @use "sass:meta";
2
+ @use './utils/screen.scss' as *;
3
+ @use './utils/transition.scss' as *;
4
+ @use './ScrollBar.scss' as *;
3
5
 
4
-
5
- @mixin define(){
6
- $themes:$wd-themes;
7
- $hovers:$wd-high;
8
- $hovers-color:$wd-color;
9
-
10
- @each $theme in $themes{
11
- #{getThemingRootClass($theme)}{
12
- //--nav-bg-hover:#{meta.inspect(blendColors($colors:$hovers,$theme:$theme,$level:-5%))};
13
- --nav-color-hover:#{meta.inspect(blendColors($colors:$hovers-color,$theme:$theme,$level:-30%))};
14
- }
15
- }
16
-
17
- $size:var(--wd-size);
18
- $panel-height:calc($size*1.5);
19
- $bg:var(--wd-deep);
20
- $color:var(--wd-color);
21
- $orange:var(--wd-orange);
22
- $border:var(--wd-border);
23
- $gap:var(--wd-gap);
24
- $mobile-width:$wd-large-width;
25
- $tick:$wd-tick;
26
- $invert:50%;//var(--cb-invert);
27
-
28
- .wd-nav-left{
29
-
30
- @include display-flex-vert-stretch();
31
- @media screen and (min-width: $mobile-width) {
32
- flex-direction: row;
33
- }
34
- overflow: hidden;
35
- }
6
+ @each $name,$width in $wd-widths{
36
7
 
37
- .wd-nav-top{
38
- @include display-flex-vert-stretch();
39
- overflow: hidden;
40
-
41
- >div[it='navbar']{
42
-
43
- @include display-flex-vert-stretch();
44
- @media screen and (min-width: $mobile-width) {
45
- flex-direction: row;
46
- }
47
-
48
- >div[it='nav-items']{
49
- display:block;
50
- @media screen and (min-width: $mobile-width) {
51
- @include display-flex-horiz-stretch();
52
- }
53
- }
8
+ .nav-container-#{$name}{
9
+ height: 100%;
10
+
11
+ display: flex;
12
+ flex-wrap: nowrap;
13
+ justify-content: flex-start;
14
+ align-content: stretch;
15
+ align-items: stretch;
16
+
17
+ flex-direction: row;
18
+ @include less-than(#{$name}){
19
+ flex-direction: column;
54
20
  }
55
21
  }
56
-
57
- div[it='navbar']{
58
- @include display-flex-vert-stretch();
59
- >div[it='nav-panel']{
60
- min-height: $panel-height;
61
- @include display-flex-horiz-center();
62
- >div[it='nav-logo']{
63
- @include stretch();
64
- line-height: $panel-height;
65
- }
66
- >div[it='nav-btn-close']{
67
- width: $panel-height;
68
- @media screen and (min-width: $mobile-width) {
69
- display: none;
70
- }
71
- }
22
+ .mobile{
23
+ .nav-container-#{$name}{
24
+ flex-direction: column;
72
25
  }
26
+ }
73
27
 
74
- @include transition(height 0.4s);
75
-
76
- >div[it='nav-items']{
77
- overflow-x: hidden;
78
- overflow-y: auto;
79
- @include stretch();
80
- }
81
28
 
82
- &[state='open']{
83
- height: 90% !important;
84
- @media screen and (min-width: $mobile-width) {
85
- height: auto !important;
29
+ }
30
+
31
+ .nav-content{
32
+ //border: 1px dashed red;
33
+ flex:1 1 auto;
34
+ overflow: auto;
35
+ }
36
+
37
+
38
+ @mixin define(){
39
+
40
+ $size:var(--v2-wd-size);
41
+ $gap:var(--v2-wd-gap);
42
+ $size-item:calc(var(--v2-wd-size)*0.8);
43
+ $tick:var(--v2-wd-tick);
44
+ .mobile{
45
+ .wd-navbar{
46
+ [nav-menu]{
47
+ height:0px;
48
+ }
49
+ [nav-btn]{
50
+ display: block;
51
+ }
52
+ [nav-empty]{
53
+ display: block;
86
54
  }
87
55
  }
56
+ }
88
57
 
89
- &[state='close']{
90
- height: $panel-height !important;
91
- @media screen and (min-width: $mobile-width) {
92
- height: auto !important;
93
- }
58
+ .wd-navbar{
59
+ min-width:250px;
60
+
61
+ display: flex;
62
+ flex-wrap: nowrap;
63
+ justify-content: flex-start;
64
+ align-content: stretch;
65
+ align-items: stretch;
66
+ flex-direction: column;
67
+
68
+ @include less-large{
69
+ max-height: 80%;
94
70
  }
95
71
 
96
- }//navbar
97
-
98
- div[it='nav-menu']{
99
- overflow: hidden;
100
- div{
101
- &[it='nav-menu-head']{
102
- @include display-flex-horiz-stretch();
103
- >div{
104
- &:nth-child(1){
105
- @include stretch();
106
- }
107
- &:nth-child(2){
108
- width: $size;
72
+ [nav-item]{
73
+ cursor:default;
74
+ min-height:$size;
75
+ line-height: $size;
76
+ overflow: hidden;
77
+ [nav-item]{
78
+ padding-left:calc($size*0.5);
79
+ }
80
+ [caption]{
81
+ &:hover{
82
+ cursor: pointer;
83
+ color: var(--v2-wd-color-high);
84
+ //transition: color 0.1s;
85
+ @include transition(color 0.1s);
86
+ //text-shadow: 0px 0px 0.3px var(--v2-wd-color-high);
87
+ }
88
+ [img]{
89
+ width: $size;
90
+ background-image:$tick;
91
+ background-repeat: no-repeat, no-repeat;
92
+ background-position: center;
93
+ filter:invert(50%);
94
+ //transition: transform 0.2s;
95
+ @include transition(transform 0.2s);
96
+ }
97
+ }
98
+ &[opened]{
99
+ >[caption]{
100
+ //color:var(--wd-highlight);
101
+ //text-shadow: 0px 0px 0.5px var(--wd-highlight);
102
+ [img]{
103
+ transform: rotate(180deg);
109
104
  }
110
105
  }
111
106
  }
112
- &[it='nav-menu-items']{
113
- @include stretch();
114
- padding-left: $size;
107
+ &[active]{
108
+ >[caption]{
109
+ color:var(--v2-wd-url);
110
+ //transition: color 0.1s,text-shadow 0.1s;
111
+ @include transition(color 0.1s,text-shadow 0.1s);
112
+ //text-shadow: 0px 0px 0.7px var(--v2-wd-url);
113
+ }
115
114
  }
116
115
  }
116
+
117
+ [nav-panel]{
117
118
 
118
-
119
- //@include transition(height 0.4s);
120
- //height: 0px;
121
- &[expand='expand']{
122
- height: auto;
119
+ display: flex;
120
+ flex-wrap: nowrap;
121
+ justify-content: flex-start;
122
+ align-content: stretch;
123
+ align-items: center;
124
+ flex-direction: row;
123
125
  }
124
- }
125
126
 
126
- .wd-nav-btn{
127
- text-align: center;
128
- line-height: $panel-height;
129
- cursor: pointer;
130
- }
127
+ [nav-btn]{
128
+ min-height: $size;
129
+ min-width: $size;
130
+ font-size:2rem;
131
+ text-align: center;
132
+ cursor:pointer;
133
+ @include more-large{
134
+ display: none;
135
+ }
136
+ }
131
137
 
132
- //-------------------------------------------------
133
- .wd-nav-item{
134
- min-height: $size;
135
- line-height: $size;
136
- padding-left: $gap;
137
- padding-right: $gap;
138
- [it='cap']{
139
- display: block;
140
- width: 100%;
141
- &:hover{
142
- cursor: pointer;
143
- color: var(--nav-color-hover);
144
- text-shadow: 0px 0px 1px var(--nav-color-hover);
138
+ [nav-empty]{
139
+ flex:1 1 auto;
140
+ @include more-large{
141
+ display:none;
145
142
  }
146
143
  }
147
- }
148
- .wd-nav-top{
149
- .wd-nav-item{
150
- @media screen and (min-width: $mobile-width) {
151
- @include display-flex-center(column);
152
- }
144
+
145
+ [nav-menu]{
146
+
147
+ padding-left: $gap;
148
+ padding-right: $gap;
149
+ overflow: auto;
150
+ @include wd-scrollbar();
151
+
152
+ @include less-large{
153
+ height:0px;
154
+ }
155
+ &[expand]{
156
+ height:auto !important;
157
+ min-height: auto !important;
158
+ }
159
+ //@include less-large{
160
+ /*
161
+ position: absolute;
162
+ right:0px;
163
+ top:0px;
164
+ background-color: gray;
165
+ height: 100%;
166
+ width:0px;
167
+ */
168
+ //}
153
169
  }
154
- }
155
- .wd-nav-item-stretch{
156
- min-height: 0px !important;
157
- height: 0px;
158
- @include stretch();
159
170
 
160
- @media screen and (max-width: $mobile-width) {
161
- @include no-stretch();
171
+ [caption]{
172
+ display: flex;
173
+ flex-wrap: nowrap;
174
+ justify-content: flex-start;
175
+ align-content: stretch;
176
+ align-items: stretch;
177
+ flex-direction: row;
178
+ [text]{
179
+ flex: 1 1 auto;
180
+ }
162
181
  }
163
182
  }
164
- //-------------------------------------------------
165
- .wd-nav-menu{
166
- min-height: $size;
167
- //border-bottom: 1px dashed $border;
168
183
 
169
- >div{
170
- &[it='nav-menu-head']{
171
- line-height: $size;
172
184
 
173
- padding-left: $gap;
174
- padding-right: $gap;
175
-
176
- >div[it='nav-menu-btn']{
177
- width: $size;
178
- background-image: url($tick);
179
- background-repeat: no-repeat, no-repeat;
180
- background-position: center;
181
- filter:invert($invert);
185
+
186
+
187
+ @each $name,$width in $wd-widths{
188
+ .nav-container-#{$name}{
189
+ [navbar]{
190
+ @include more-than(#{$name}){
191
+ max-height: none !important;
182
192
  }
183
- &:hover{
184
- cursor: pointer;
185
- color: var(--nav-color-hover);
186
- text-shadow: 0px 0px 1px var(--nav-color-hover);
193
+ @include less-than(#{$name}){
194
+ max-height: 80%;
187
195
  }
188
- }
189
- &[it='nav-menu-items']{
190
- >div{
191
- &:last-child{
192
- border-color: rgba(0,0,0,0) !important;
196
+ [nav-btn]{
197
+ display: block;
198
+ @include more-than(#{$name}){
199
+ display: none !important;
193
200
  }
194
- }
195
- }
196
- }
197
- &[expand='expand']{
198
- >div[it='nav-menu-head'] >div[it='nav-menu-btn']{
199
- transform: rotate(180deg);
200
- }
201
- }
202
- &[as='popup']{
203
- >div[it='nav-menu-head'] >div[it='nav-menu-btn']{
204
- //transform: rotate(-90deg) !important;
201
+ }
202
+ [nav-empty]{
203
+ @include more-than(#{$name}){
204
+ display:none !important;
205
+ }
206
+ }
207
+ [nav-menu]{
208
+ height:auto;
209
+ @include less-than(#{$name}){
210
+ height:0px;
211
+ }
212
+ }
205
213
  }
206
214
  }
207
215
  }
208
216
 
209
- .wd-nav-dialog{
210
- .wd-dialog-content{
211
- overflow: hidden;
212
- }
213
- }
214
- .wd-nav-top{
215
- .wd-nav-menu{
216
- @media screen and (min-width: $mobile-width) {
217
- @include display-flex-center(column);
218
- }
219
- }
220
- }
221
- //-------------------------------------------------
222
-
223
217
  .wd-nav-logo{
224
- min-height: $panel-height;
225
- line-height: $panel-height;
226
- min-width: calc($size*3);
218
+ min-height: calc($size*1.5);
219
+ line-height: calc($size*1.5);
227
220
  padding-left: $gap;
228
- font-size: 1.2rem;
229
- color:$orange;
230
- text-shadow: 1px 1px 2px $orange;
221
+ padding-right: $gap;
222
+ color:var(--wd-orange);
231
223
  }
232
-
224
+
233
225
  }
234
226
 
235
- @include define();
236
227
 
228
+ @include define();
@@ -1,56 +1,42 @@
1
1
  @use "sass:meta";
2
- @import './vars.scss';
3
-
4
-
5
- @each $theme in $wd-themes{
6
- #{getThemingRootClass($theme)}{
7
- --wdsc-sb-thumb:#{meta.inspect(blendColors($colors:$wd-color,$theme:$theme ,$level:40%))};
8
- --wdsc-sb-hover:#{meta.inspect(blendColors($colors:$wd-color,$theme:$theme ,$level:30%))};
9
- };
10
- };
11
-
12
-
13
2
 
14
3
  @mixin wd-scrollbar(
15
- $bg:var(--wd-transparent),
16
- $size:calc( var(--wd-size) * 0.4),
17
- $thumb:var(--wdsc-sb-thumb),
18
- $hover:var(--wdsc-sb-hover),
19
- )
20
- {
21
-
22
- &::-webkit-scrollbar-track{
4
+ $bg: var(--v2-wd-high),
5
+ $size: calc(var(--v2-wd-size) * 0.4),
6
+ $thumb: rgba(var(--v2-wd-secondary-rgb), 0.3),
7
+ $hover: rgba(var(--v2-wd-secondary-rgb), 0.5)
8
+ ) {
9
+ &::-webkit-scrollbar-track {
23
10
  background-color: $bg;
24
- border-right:1px solid $bg;
11
+ border-right: 1px solid $bg;
25
12
  }
26
-
27
- &::-webkit-scrollbar{
28
- background-color:$bg;
13
+
14
+ &::-webkit-scrollbar {
15
+ background-color: $bg;
29
16
  width: $size;
30
17
  height: $size;
31
18
  }
32
-
33
- &::-webkit-scrollbar-thumb{
34
- background-color:$thumb;
35
- border:1px solid $thumb;
36
-
37
- //border-radius: 24px;
38
- //border-radius: 24px;
39
-
40
- }
41
- &::-webkit-scrollbar-thumb{
42
- &:hover{
43
-
44
- background-color:$hover;
45
- border:1px solid $hover;
19
+
20
+ &::-webkit-scrollbar-thumb {
21
+ background-color: $thumb;
22
+ border: 1px solid $thumb;
23
+
24
+ //@include transition(background-color 2s);
25
+ &:hover {
26
+ //@include transition(background-color 2s);
27
+ background-color: $hover;
28
+ border: 1px solid $hover;
46
29
  }
47
30
  }
31
+ &::-webkit-scrollbar-corner {
32
+ background-color: $bg;
33
+ }
48
34
  }
49
35
 
50
- @mixin define(){
51
- .wd-scrollbar{
52
- @include wd-scrollbar();
53
- }
36
+ // @mixin define(){
37
+ .wd-scrollbar {
38
+ @include wd-scrollbar();
54
39
  }
40
+ // }
55
41
 
56
- @include define();
42
+ // @include define();
package/style/Table.scss CHANGED
@@ -1,39 +1,31 @@
1
1
  @use "sass:meta";
2
- @import './vars.scss';
3
- @import './ScrollBar.scss';
4
2
 
5
3
  @mixin define(){
6
- $themes:$wd-themes;
7
- $colors:$wd-color;
8
-
9
- @each $theme in $themes{
10
- #{getThemingRootClass($theme)}{
11
- --tf-color:#{meta.inspect(blendColors($colors:$colors,$theme:$theme ,$level:-20%))};
12
- --tf-header-color:#{meta.inspect(blendColors($colors:$colors,$theme:$theme,$level:-20%))};
13
- --tf-select-color:#{meta.inspect(blendColors($colors:$colors,$theme:$theme,$light:50%,$dark:20%))};
14
- };
15
- };
16
4
 
17
5
  $size:2rem;
18
6
  $outline:'none';
19
7
 
20
- $bg:var(--wd-transparent);
21
- $color:var(--wd-color);
22
- $border:var(--wd-border);
8
+ $bg:var(--v2-wd-transparent);
9
+ $color:var(--v2-wd-color);
10
+ $border:var(--v2-wd-border);
23
11
  $sep:'yes';
24
12
 
25
- $header:var(--wd-header);
26
- $header-color:var(--wd-header-color);
27
- $header-border:var(--wd-border);
28
- $header-sep:'yes';//yes / none
13
+ $header:var(--v2-wd-header);
14
+ $header-color:var(--v2-wd-color-high);
15
+ $header-border:var(--v2-wd-border);
16
+ $header-sep:'none';//yes / none
29
17
 
30
- $font-size:var(--wd-font-size);
31
- $gap:var(--wd-gap);
18
+ $font-size:var(--v2-wd-font-size);
19
+ $gap:var(--v2-wd-gap);
32
20
 
33
- $select:var(--wd-select);
34
- $select-color:var(--tf-select-color);
21
+ $select:var(--v2-wd-select);
22
+ $select-color:var(--v2-wd-select-color);
23
+ $toggle:var(--v2-wd-toggle);
24
+
25
+ $hover:var(--v2-wd-hover);
26
+ $hover-color:var(--v2-wd-hover-color);
35
27
 
36
- [type=table]{
28
+ .wd-table{
37
29
 
38
30
  box-sizing: border-box;
39
31
  border-collapse: collapse;
@@ -50,8 +42,10 @@
50
42
  color:$header-color;
51
43
  th{
52
44
  border: 1px solid $header-border;
45
+ font-weight: normal;
53
46
  @if($header-sep=='none'){
54
- border-right-color: rgba(0,0,0,0);
47
+ //border-right-color: rgba(0,0,0,0);
48
+ border-right-color: $header;
55
49
  }
56
50
  overflow: hidden;
57
51
  &:first-child{
@@ -73,10 +67,19 @@
73
67
  padding-left: $gap;
74
68
  }
75
69
  tr{
76
- @include transition(background-color 0.2s,color 0.2s);
70
+ //@include transition(background-color 0.2s,color 0.2s);
71
+ &:hover{
72
+ //color:$hover-color !important;
73
+ //background-color: $hover !important;
74
+ }
75
+ &:not(:last-child){
76
+ &:nth-child(2n){
77
+ //background-color: $toggle;
78
+ }
79
+ }
77
80
  &[select]{
78
- background-color: $select;
79
- color: $select-color;
81
+ background-color: $select ;
82
+ color: $select-color ;
80
83
  }
81
84
  &:first-child{
82
85
  td{
@@ -98,11 +101,6 @@
98
101
  }
99
102
  }
100
103
 
101
-
102
- table{
103
-
104
-
105
- }
106
104
  }
107
105
  }
108
106
 
@@ -1,41 +1,30 @@
1
1
  @use "sass:meta";
2
- @import './vars.scss';
3
- @import './ScrollBar.scss';
2
+ @use './ScrollBar.scss' as *;
4
3
 
5
4
  @mixin define(){
6
- $themes:$wd-themes;
7
- $colors:$wd-color;
8
-
9
- @each $theme in $themes{
10
- #{getThemingRootClass($theme)}{
11
- --tf-color:#{meta.inspect(blendColors($colors:$colors,$theme:$theme ,$level:-20%))};
12
- --tf-header-color:#{meta.inspect(blendColors($colors:$colors,$theme:$theme,$level:-20%))};
13
- --tf-select-color:#{meta.inspect(blendColors($colors:$colors,$theme:$theme,$light:50%,$dark:20%))};
14
- };
15
- };
16
5
 
17
6
  $size:2rem;
18
7
  $outline:'none';
19
8
 
20
- $bg:var(--wd-transparent);
21
- $color:var(--wd-color);
22
- $border:var(--wd-border);
9
+ $bg:var(--v2-wd-transparent);
10
+ $color:var(--v2-wd-color);
11
+ $border:var(--v2-wd-border);
23
12
  $sep:'yes';
24
13
 
25
- $header:var(--wd-header);
26
- $header-color:var(--wd-header-color);
27
- $header-border:var(--wd-border);
28
- $header-sep:'yes';
14
+ $header:var(--v2-wd-header);
15
+ $header-color:var(--v2-wd-header-color);
16
+ $header-border:var(--v2-wd-border);
17
+ $header-sep:'none';
29
18
 
30
- $font-size:var(--wd-font-size);
31
- $gap:var(--wd-gap);
19
+ $font-size:var(--v2-wd-font-size);
20
+ $gap:var(--v2-wd-gap);
32
21
 
33
- $select:var(--wd-select);
34
- $select-color:var(--tf-select-color);
22
+ $select:var(--v2-wd-select);
23
+ $select-color:var(--v2-wd-select-color);
35
24
 
36
25
  .wd-table-fixed-vert{
37
26
  }
38
- [type=table-fixed]{
27
+ .wd-table-fixed{
39
28
  &[container=horiz]{
40
29
  @if ($outline != 'none'){
41
30
  margin-top:1px;
@@ -47,7 +36,13 @@
47
36
  height: 100%;
48
37
  overflow: hidden;
49
38
 
50
- @include display-flex-vert-stretch();
39
+ display: flex;
40
+ flex-direction: column;
41
+ flex-wrap: nowrap;
42
+ justify-content: flex-start;
43
+ align-content: stretch;
44
+ align-items: stretch;
45
+
51
46
  @include wd-scrollbar();
52
47
  }
53
48
 
@@ -136,7 +131,7 @@
136
131
  padding-left: $gap;
137
132
  }
138
133
  tr{
139
- @include transition(background-color 0.2s,color 0.2s);
134
+ //@include transition(background-color 0.2s,color 0.2s);
140
135
  &[select]{
141
136
  background-color: $select;
142
137
  color: $select-color;