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

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 +40 -14
  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
@@ -1,30 +1,22 @@
1
1
  @use "sass:meta";
2
- @import './vars.scss';
2
+ @use './utils/transition.scss' as *;
3
3
 
4
4
  @mixin define(){
5
- $themes:$wd-themes;
6
- $hovers:$wd-high;
7
- $hovers-color:$wd-color;
8
-
9
- @each $theme in $themes{
10
- #{getThemingRootClass($theme)} {
11
- --btn-bg-hover:#{meta.inspect(blendColors($colors:$hovers,$theme:$theme,$level:-5%))};
12
- --btn-color-hover:#{meta.inspect(blendColors($colors:$hovers-color,$theme:$theme,$level:-20%))};
13
- }
14
- }
15
5
 
16
- $size:$wd-size;
17
- $bg:var(--wd-high);
18
- $color:var(--wd-color);
19
- $border:var(--wd-border);
20
- $outline:var(--wd-outline);
21
- $font-size:var(--wd-font-size);
22
- $gap:var(--wd-gap);
23
- $margin:var(--wd-margin);
24
- $radius:var(--wd-radius);
6
+ $size:var(--v2-wd-size);
7
+ $bg:var(--v2-wd-high);
8
+ $color:var(--v2-wd-color);
9
+ $border:var(--v2-wd-border);
10
+ $outline:var(--v2-wd-outline);
11
+ $font-size:var(--v2-wd-font-size);
12
+ $gap:var(--v2-wd-gap);
13
+ $margin:var(--v2-wd-margin);
14
+ $radius:var(--v2-wd-radius);
25
15
 
26
16
 
27
- [type="btn-icon"]{
17
+ //[type="btn-icon"]{
18
+ .wd-btn-icon{
19
+ overflow: hidden;
28
20
  height:$size;
29
21
  cursor: pointer;
30
22
  background-color: $bg;
@@ -63,28 +55,57 @@
63
55
  }
64
56
 
65
57
  &:hover{
66
- background-color:var(--btn-bg-hover);
67
- color:var(--btn-color-hover);
58
+ filter: brightness(var(--v2-wd-hovering));
59
+ }
60
+ &[disabled]{
61
+ opacity: 0.6;
62
+ &:hover{
63
+ filter:none;
64
+ }
68
65
  }
69
-
70
66
  >div{
71
67
  order: 0;
72
68
  flex: 0 1 auto;
73
69
  align-self: auto;
74
70
  margin-left:1px;
75
71
  margin-right:1px;
76
- &:first-child(){
77
- min-height:$size*0.5;
78
- min-width:$size*0.5;
79
- @include display-flex-center();
72
+
73
+ &[icon]{
74
+ min-height:calc($size * 0.5);
75
+ min-width:calc($size * 0.5);
76
+
77
+ display: flex;
78
+ flex-direction: row;
79
+ flex-wrap: nowrap;
80
+ justify-content: center;
81
+ align-content: stretch;
82
+ align-items: center;
83
+
80
84
  >svg{
81
- max-height: $size*0.5;
85
+ max-height: calc($size * 0.5);
82
86
  }
83
87
  }
84
- &:last-child(){
88
+
89
+ &[between]{
90
+ width:calc(var(--v2-wd-gap) * 0.5);
91
+ }
92
+
93
+ &[value]{
85
94
  min-width:calc($size/2);
86
95
  }
87
96
  }
97
+
98
+ &.wd-flat{
99
+ background: rgba(0,0,0,0);
100
+ &:hover{
101
+ background-color: $bg;
102
+ filter: brightness(var(--v2-wd-hovering));
103
+ }
104
+
105
+ }
106
+ &.only-text{
107
+ background-color: $bg;
108
+ }
88
109
  }
89
110
 
90
111
  }
@@ -1,49 +1,50 @@
1
1
  @use "sass:meta";
2
- @import './vars.scss';
2
+ //@import './vars.scss';
3
3
 
4
4
  @mixin define(){
5
- $themes:$wd-themes;
6
- $icons:$wd-cross;
5
+ //$themes:$wd-themes;
6
+ //$icons:$wd-cross;
7
7
 
8
- @each $theme in $themes{
9
- #{getThemingRootClass($theme)} {
10
- --chk-url:url(#{map-get($icons,$theme)});
11
- }
12
- }
8
+ //@each $theme in $themes{
9
+ // #{getThemingRootClass($theme)} {
10
+ // --chk-url:url(#{map-get($icons,$theme)});
11
+ // }
12
+ //}
13
13
 
14
- $size:$wd-size;
15
- $bg:var(--wd-bg);
16
- $border:var(--wd-border);
17
- $outline:var(--wd-outline);
18
- $icon-hover:$cross-opacity;
19
-
20
- input[type=checkbox] {
14
+ $size:var(--v2-wd-size);
15
+ $bg:var(--v2-wd-bg);
16
+ $border:var(--v2-wd-border);
17
+ $outline:var(--v2-wd-outline);
18
+ $icon-hover:var(--v2-wd-cross-hover);
19
+ $icon:var(--v2-wd-cross);
20
+
21
+ //input[type=checkbox] {
22
+ .wd-checkbox{
21
23
  -webkit-appearance: none;
22
24
  -moz-appearance: none;
23
25
 
24
26
  background-color: $bg;
25
27
  border: 1px solid $border;
26
28
 
27
- width: $size*0.7;
28
- max-width: $size*0.7;
29
- height: $size*0.7;
30
- max-height: $size*0.7;
29
+ width: calc($size*0.7);
30
+ max-width: calc($size*0.7);
31
+ height: calc($size*0.7);
32
+ max-height: calc($size*0.7);
31
33
  margin:0px;
32
34
 
33
35
  cursor: pointer;
34
36
 
35
37
  &:checked{
36
- //background-image:url($icon);
37
- background-size: $size*0.5;
38
+ background-size: calc($size*0.5);
38
39
  background-position: center center;
39
40
  background-repeat: no-repeat;
40
- background-image:var(--chk-url);
41
+ background-image:$icon;
41
42
 
42
43
  }
43
44
  &:not(:checked){
44
45
  &:hover{
45
- background-image:url($icon-hover);
46
- background-size: $size*0.5;
46
+ background-image:$icon-hover;
47
+ background-size: calc($size*0.5);
47
48
  background-position: center center;
48
49
  background-repeat: no-repeat;
49
50
  }
@@ -51,16 +52,8 @@
51
52
  &:focus{
52
53
  outline:2px solid $outline;
53
54
  }
54
- }
55
+ }
55
56
 
56
- //@each $theme in $themes{
57
- // :root.#{$theme} input[type=checkbox]{
58
- // &:checked{
59
- // background-image:url(#{map-get($icons,$theme)});
60
- // }
61
- //
62
- // }
63
- // }
64
57
  }
65
58
 
66
59
  @include define();
@@ -1,41 +1,42 @@
1
1
  @use "sass:meta";
2
2
  @use "sass:math";
3
- @import './vars.scss';
3
+ @use './utils/transition.scss' as *;
4
4
 
5
5
  @mixin define(){
6
- $themes:$wd-themes;
7
- $colors:$wd-color;
6
+ //$themes:$wd-themes;
7
+ //$colors:$wd-color;
8
8
  //$inverts:('light':60%,'dark':30%);
9
- @each $theme in $themes{
10
- #{getThemingRootClass($theme)} {
9
+ //@each $theme in $themes{
10
+ //#{getThemingRootClass($theme)} {
11
11
 
12
- --cb-color:#{meta.inspect(blendColors($colors:$colors,$theme:$theme,$level:-20%))};
13
- --cb-color-hover:#{meta.inspect(blendColors($colors:$colors,$theme:$theme,$level:-50%))};
14
- --cb-placeholder:#{meta.inspect(blendColors($colors:$colors,$theme:$theme,$light:20%,$dark:-40%))};
12
+ // --cb-color:#{meta.inspect(blendColors($colors:$colors,$theme:$theme,$level:-20%))};
13
+ // --cb-color-hover:#{meta.inspect(blendColors($colors:$colors,$theme:$theme,$level:-50%))};
14
+ // --cb-placeholder:#{meta.inspect(blendColors($colors:$colors,$theme:$theme,$light:20%,$dark:-40%))};
15
15
  //--cb-invert:#{meta.inspect(map-get($map:$inverts,$key:$theme))};
16
16
  //@debug $inverts map-get($map:$inverts,$key:$theme);
17
- }
18
- }
17
+ //}
18
+ //}
19
19
 
20
- $size:$wd-size;
21
- $gap:$wd-gap;
22
- $bg:var(--wd-deep);
23
- $color:var(--cb-color);
20
+ $size:var(--v2-wd-size);
21
+ $gap:var(--v2-wd-gap);
22
+ $bg:var(--v2-wd-deep);
23
+ $color:var(--v2-wd-color);
24
24
  $invert:50%;//var(--cb-invert);
25
- $tick:$wd-tick;
26
- $border:var(--wd-border);
27
- $required:rgba(var(--wd-alert-rgb), 0.1);
25
+ $tick:var(--v2-wd-tick);
26
+ $border:var(--v2-wd-border);
27
+ $required:rgba(var(--v2-wd-danger-rgb), 0.1);
28
28
 
29
- $outline:var(--wd-outline);
30
- $font-size:var(--wd-font-size);
29
+ $outline:var(--v2-wd-outline);
30
+ $outline-width:var(--v2-wd-outline-width);
31
+ $font-size:var(--v2-wd-font-size);
31
32
 
32
- $hover:var(--wd-hover);
33
- $color-hover:var(--cb-color-hover);
34
- $margin:var(--wd-margin);
35
- $radius:var(--wd-radius);
36
- $placeholder:var(--cb-placeholder);
33
+ $hover:var(--v2-wd-hover);
34
+ $color-hover:var(--v2-hover-color);
35
+ $margin:var(--v2-wd-margin);
36
+ $radius:var(--v2-wd-radius);
37
+ $placeholder:rgba(var(--v2-wd-color-rgb), 0.5);
37
38
 
38
- [type=combo]{
39
+ .wd-combo{
39
40
  height:$size;
40
41
  width:100%;
41
42
  background-color: $bg;
@@ -51,24 +52,28 @@
51
52
  white-space: nowrap;
52
53
  overflow: hidden;
53
54
 
54
- @if($margin!='none'){
55
- margin-right:$margin;
56
- };
55
+ //margin:$outline-width;
56
+
57
+ display: flex;
58
+ flex-direction: row;
59
+ flex-wrap: nowrap;
60
+ justify-content: flex-start;
61
+ align-content: stretch;
62
+ align-items: stretch;
57
63
 
58
- @include display-flex-horiz-stretch();
59
64
 
60
65
  outline: 0px solid rgba(0,0,0,0);
61
66
  @include transition(outline-color 0.4s);
62
67
 
63
68
  >*{
64
69
  &:nth-child(1) {
65
- @include stretch();
66
- line-height:$size * 0.9;
70
+ flex:1 1 auto;
71
+ line-height:calc($size * 0.9);
67
72
  }
68
73
  &:nth-child(2) {
69
74
  min-width: $size;
70
75
  width: $size;
71
- background-image: url($tick);
76
+ background-image: $tick;
72
77
  background-repeat: no-repeat, no-repeat;
73
78
  background-position: center;
74
79
  filter:invert($invert);
@@ -82,19 +87,19 @@
82
87
  }
83
88
  }
84
89
  &:focus {
85
- outline: 2px solid $outline;
90
+ outline: $outline-width solid $outline;
86
91
  }
87
92
  &[disabled]{
88
93
  opacity: 0.4;
89
94
  }
90
95
  &[required]{
91
- border:1px solid $required !important;
96
+ //border:1px solid $required !important;
92
97
  background-color:$required !important;
93
98
 
94
99
  }
95
100
 
96
101
  }
97
- [type=combo-list]{
102
+ [combo-list]{
98
103
  background-color: $bg;
99
104
  color:$color;
100
105
  border:1px solid $border;
@@ -102,55 +107,60 @@
102
107
  overflow-x: hidden;
103
108
  overflow-y: auto;
104
109
 
105
- [type=combo-item]{
110
+ animation: 0.1s cbex-list-slide ease;
111
+ [combo-item]{
106
112
  max-height: $size;
107
113
  height: $size;
108
114
 
109
- &:hover{
115
+ &:hover:not([disabled]):not([active]){
110
116
  background-color: $hover;
111
117
  color:$color-hover;
112
118
  }
113
119
  &[disabled]{
114
- opacity: 0.3;
115
- &:hover{
116
- background-color: $bg;
117
- color:$color;
118
- }
120
+ color:rgba(var(--v2-wd-color-rgb),0.4);
121
+ }
122
+ &[active]{
123
+ color:var(--v2-wd-select-color);
124
+ background-color:var(--v2-wd-select);
119
125
  }
120
126
  }
121
127
  }
122
- .mobile [type=combo-list]{
128
+ .mobile [combo-list]{
123
129
  animation: 0.5s combo-scale ease;
124
130
  padding: $gap;
125
- [type=combo-item]{
126
- //border-bottom: 1px solid $border;
131
+ [combo-item]{
132
+ border-bottom: 1px solid $border;
127
133
  border-radius: 3px;
128
- &:nth-child(2n+1){
129
- background-color: $hover;
130
-
131
- }
134
+
132
135
  }
133
136
  }
134
137
 
135
- [type=combo-item]{
138
+ [combo-item]{
136
139
  text-indent: $gap;
137
140
  line-height: $size;
138
141
  white-space: nowrap;
139
142
  overflow: hidden;
140
143
 
141
- &[state="no-select"]{
142
- color: $placeholder;
143
- }
144
144
  // for ComboItemIcon -------
145
- @include display-flex-horiz-stretch();
145
+ display: flex;
146
+ flex-direction: row;
147
+ flex-wrap: nowrap;
148
+ justify-content: flex-start;
149
+ align-content: stretch;
150
+ align-items: stretch;
151
+
146
152
  >div{
147
153
  &:nth-child(1) {
148
- @include no-stretch();
154
+ flex:0 1 auto;
149
155
  }
150
156
  &:nth-child(2) {
151
- @include stretch();
157
+ flex:1 1 auto;
152
158
  }
153
159
  }
160
+
161
+ &[state="no-select"]{
162
+ color: $placeholder;
163
+ }
154
164
  // ----------------------------
155
165
  };
156
166
 
@@ -183,6 +193,10 @@
183
193
  }
184
194
 
185
195
 
196
+ @keyframes cbex-list-slide {
197
+ from { transform: scaleY(70%) translateY(-20%)}
198
+ to { transform: scaleY(100%) translateY(0%)}
199
+ }
186
200
 
187
201
 
188
202
  @include define();
@@ -1,50 +1,9 @@
1
1
  @use 'sass:meta';
2
- @import './vars.scss';
3
2
 
4
3
  .wd-container{
5
- display: flex;
6
-
7
- flex-wrap: wrap;
8
- justify-content: flex-start;
9
- align-content: stretch;
10
- align-items: stretch;
11
-
12
- flex-direction: row;
13
- @include on-small{
14
- flex-direction: column;
4
+ >div{
5
+ display: flex;
6
+ flex-wrap: wrap;
15
7
  }
16
8
  }
17
- .wd-container-row{
18
- display: flex;
19
-
20
- flex-wrap: wrap;
21
- justify-content: flex-start;
22
- align-content: stretch;
23
- align-items: stretch;
24
-
25
- flex-direction: row;
26
- }
27
- .wd-col{
28
- flex: 1 1 auto;
29
- //min-height: var(--wd-size);
30
- //border: 1px dotted limegreen;
31
- }
32
9
 
33
- .wd-col-margin{
34
- flex: 0 1 auto;
35
- //border: 1px dotted limegreen;
36
-
37
- width: var(--wd-margin);
38
- height: var(--wd-margin);
39
-
40
- }
41
-
42
- .wd-col-1{
43
- border: 1px dotted limegreen;
44
- min-width:10%;
45
- }
46
-
47
- .wd-col-2{
48
- border: 1px dotted limegreen;
49
- min-width:20%;
50
- }
package/style/Edit.scss CHANGED
@@ -1,30 +1,21 @@
1
1
  @use "sass:meta";
2
- @import './vars.scss';
2
+ @use './utils/transition.scss' as *;
3
3
 
4
4
 
5
5
  @mixin define(){
6
6
 
7
- $themes:$wd-themes;
8
- $colors:$wd-color;
9
-
10
- @each $theme in $themes{
11
- #{getThemingRootClass($theme)}{
12
- --ed-color:#{meta.inspect(blendColors($colors:$colors,$theme:$theme ,$level:-20%))};
13
- --ed-placeholder:#{meta.inspect(blendColors($colors:$colors,$theme:$theme,$light:20%,$dark:-40%))};
14
- };
15
- };
16
-
17
- $size:var(--wd-size);
18
- $font-size:var(wd-font-size);
19
- $bg:var(--wd-deep);
20
- $color:var(--ed-color);
21
- $outline:var(--wd-outline);
22
- $border:var(--wd-border);
23
- $gap:var(--wd-gap);
24
- $required:rgba(var(--wd-alert-rgb), 0.1);
25
- $margin:var(--wd-margin);
26
- $radius:var(--wd-radius);
27
- $placeholder:var(--ed-placeholder);
7
+ $size:var(--v2-wd-size);
8
+ $font-size:var(--v2-wd-font-size);
9
+ $bg:var(--v2-wd-deep);
10
+ $color:var(--v2-wd-color);
11
+ $outline:var(--v2-wd-outline);
12
+ $outline-width:var(--v2-wd-outline-width);
13
+ $border:var(--v2-wd-border);
14
+ $gap:var(--v2-wd-gap);
15
+ $required:rgba(var(--v2-wd-danger-rgb), 0.1);
16
+ $margin:var(--v2-wd-margin);
17
+ $radius:var(--v2-wd-radius);
18
+ $placeholder:rgba(var(--v2-wd-color-rgb), 0.5);
28
19
 
29
20
  input[type=number]{
30
21
  &::-webkit-inner-spin-button,
@@ -37,30 +28,41 @@
37
28
  height: 100%;
38
29
  }
39
30
  }
40
-
31
+ /*
32
+ textarea,
41
33
  input[type=number],
42
34
  input[type=text],
43
35
  input[type=password],
44
36
  input[type=email],
45
- input[type=url]{
46
- height:$size;
37
+ input[type=url]
38
+ */
39
+ .wd-text{
40
+ padding: var(--v2-wd-gap);
41
+ }
42
+ .wd-edit{
43
+ text-indent:$gap;
44
+ }
45
+ .wd-text,
46
+ .wd-edit{
47
+ min-height:$size;
47
48
 
48
49
  font-size:$font-size;
49
50
  border:1px solid $border;
50
51
  border-radius: $radius;
51
52
  width:100%;
52
53
  background-color: $bg;
53
- text-indent:$gap;
54
+
55
+ //margin:$outline-width;
54
56
 
55
- @if($margin!='none'){
56
- margin-right:$margin;
57
- };
57
+ //@if($margin!='none'){
58
+ // margin-right:$margin;
59
+ //};
58
60
  color:$color;
59
61
 
60
62
  outline: 0px solid rgba(0,0,0,0);
61
63
  @include transition(margin 0.2s,outline-color 0.4s);
62
64
  &:focus {
63
- outline: 2px solid $outline;
65
+ outline: $outline-width solid $outline;
64
66
  }
65
67
 
66
68
  &[readonly]{
@@ -75,14 +77,27 @@
75
77
  //background-position-y: center;
76
78
  //border:1px solid $required !important;
77
79
  //background-size: $size*0.5;
78
- background-color:$required !important;
79
- border:1px solid $required !important;
80
+ background-color:$required;
81
+ //border:1px solid $required !important;
80
82
  }
81
83
 
82
84
  &::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
83
85
  color: $placeholder;
84
86
  }
85
- }
87
+ &[error]{
88
+ border-color:var(--v2-wd-danger);
89
+ &:focus {
90
+ //outline: 2px solid var(--v2-wd-danger);
91
+ }
92
+ }
93
+ }
94
+ .error-edit-msg{
95
+ overflow: hidden;
96
+ font-size: 0.8rem;
97
+ padding-left: var(--v2-wd-gap);
98
+ color:var(--v2-wd-danger);
99
+ }
86
100
  }
87
101
 
102
+
88
103
  @include define();
package/style/Gap.scss CHANGED
@@ -1,9 +1,14 @@
1
- @import './utils.scss';
2
1
 
3
- div[it='wd-gap']{
4
- @include display-flex-horiz-stretch();
2
+ [gap]{
3
+ display: flex;
4
+ flex-direction: row;
5
+ flex-wrap: nowrap;
6
+ justify-content: flex-start;
7
+ align-content: stretch;
8
+ align-items: stretch;
9
+
5
10
  >div[gap]{
6
- width:$wd-size;
7
- min-width: $wd-size;
11
+ width:var(--v2-wd-size);
12
+ min-width:var(--v2-wd-size);
8
13
  }
9
14
  }