@kizmann/nano-ui 0.9.3 → 0.9.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (177) hide show
  1. package/demos/builder.html +411 -0
  2. package/demos/overview.html +1 -1
  3. package/dist/nano-ui.css +1 -1
  4. package/dist/nano-ui.js +3 -3
  5. package/dist/nano-ui.js.map +1 -1
  6. package/dist/themes/dark.css +2 -0
  7. package/dist/themes/light.css +1 -1
  8. package/package.json +2 -2
  9. package/src/config/index.js +6 -0
  10. package/src/config/index.scss +3 -0
  11. package/src/config/src/builder/builder.js +935 -0
  12. package/src/config/src/builder/builder.scss +280 -0
  13. package/src/config/src/builder/prototypes/button/n-button-group.js +11 -0
  14. package/src/config/src/builder/prototypes/button/n-button.js +37 -0
  15. package/src/config/src/builder/prototypes/cascader/n-cascader.js +11 -0
  16. package/src/config/src/builder/prototypes/checkbox/n-checkbox-group.js +11 -0
  17. package/src/config/src/builder/prototypes/checkbox/n-checkbox.js +11 -0
  18. package/src/config/src/builder/prototypes/confirm/n-confirm.js +11 -0
  19. package/src/config/src/builder/prototypes/datepicker/n-datepicker.js +11 -0
  20. package/src/config/src/builder/prototypes/datetimepicker/n-datetimepicker.js +11 -0
  21. package/src/config/src/builder/prototypes/durationpicker/n-durationpicker.js +11 -0
  22. package/src/config/src/builder/prototypes/empty/n-empty.js +11 -0
  23. package/src/config/src/builder/prototypes/form/n-form-group.js +13 -0
  24. package/src/config/src/builder/prototypes/form/n-form-item.js +13 -0
  25. package/src/config/src/builder/prototypes/form/n-form.js +11 -0
  26. package/src/config/src/builder/prototypes/html/div.js +13 -0
  27. package/src/config/src/builder/prototypes/html/nano.js +11 -0
  28. package/src/config/src/builder/prototypes/html/span.js +11 -0
  29. package/src/config/src/builder/prototypes/info/n-info-column.js +11 -0
  30. package/src/config/src/builder/prototypes/info/n-info.js +11 -0
  31. package/src/config/src/builder/prototypes/input/n-input.js +40 -0
  32. package/src/config/src/builder/prototypes/input-number/n-input-number.js +49 -0
  33. package/src/config/src/builder/prototypes/loader/n-loader.js +11 -0
  34. package/src/config/src/builder/prototypes/modal/n-modal.js +11 -0
  35. package/src/config/src/builder/prototypes/popover/n-popover-group.js +11 -0
  36. package/src/config/src/builder/prototypes/popover/n-popover-item.js +11 -0
  37. package/src/config/src/builder/prototypes/popover/n-popover.js +11 -0
  38. package/src/config/src/builder/prototypes/radio/n-radio-group.js +11 -0
  39. package/src/config/src/builder/prototypes/radio/n-radio.js +11 -0
  40. package/src/config/src/builder/prototypes/rating/n-rating.js +11 -0
  41. package/src/config/src/builder/prototypes/select/n-select.js +11 -0
  42. package/src/config/src/builder/prototypes/slider/n-slider.js +11 -0
  43. package/src/config/src/builder/prototypes/switch/n-switch.js +31 -0
  44. package/src/config/src/builder/prototypes/table/n-table-column.js +11 -0
  45. package/src/config/src/builder/prototypes/table/n-table.js +11 -0
  46. package/src/config/src/builder/prototypes/tabs/n-tabs-item.js +11 -0
  47. package/src/config/src/builder/prototypes/tabs/n-tabs.js +11 -0
  48. package/src/config/src/builder/prototypes/tags/n-tags-item.js +11 -0
  49. package/src/config/src/builder/prototypes/tags/n-tags.js +11 -0
  50. package/src/config/src/builder/prototypes/textarea/n-textarea.js +11 -0
  51. package/src/config/src/builder/prototypes/timepicker/n-timepicker.js +11 -0
  52. package/src/config/src/builder/prototypes/transfer/n-transfer.js +11 -0
  53. package/src/config/src/config/config-next.js +16 -2
  54. package/src/config/src/reference-panel/reference-panel.js +196 -0
  55. package/src/config/src/reference-panel/reference-panel.scss +194 -0
  56. package/src/config/src/reference-picker/reference-picker.js +146 -0
  57. package/src/config/src/reference-picker/reference-picker.scss +3 -0
  58. package/src/datetimepicker/src/datetimepicker/datetimepicker.scss +2 -2
  59. package/src/empty/src/empty-icon/empty-icon.js +12 -0
  60. package/src/empty/src/empty-icon/empty-icon.scss +10 -0
  61. package/src/form/src/form-group/form-group.js +5 -1
  62. package/src/index.scss +1 -0
  63. package/src/input/src/input/input.js +2 -0
  64. package/src/preview/src/preview/preview.js +19 -1
  65. package/src/preview/src/preview-image/preview-image.js +2 -1
  66. package/src/root/vars.scss +23 -0
  67. package/src/select/src/select/select.js +1 -1
  68. package/src/slider/src/slider/slider.scss +1 -6
  69. package/src/table/src/table/table.scss +4 -0
  70. package/src/tags/src/tags-item/tags-item.scss +1 -1
  71. package/themes/macos/alert/index.scss +1 -0
  72. package/themes/macos/alert/src/alert/alert.scss +26 -0
  73. package/themes/macos/button/index.scss +2 -0
  74. package/themes/macos/button/src/button/button.scss +46 -0
  75. package/themes/macos/button/src/button-group/button-group.scss +1 -0
  76. package/themes/macos/cascader/index.scss +2 -0
  77. package/themes/macos/cascader/src/cascader/cascader.scss +46 -0
  78. package/themes/macos/cascader/src/cascader-panel/cascader-panel.scss +14 -0
  79. package/themes/macos/checkbox/index.scss +2 -0
  80. package/themes/macos/checkbox/src/checkbox/checkbox.scss +44 -0
  81. package/themes/macos/checkbox/src/checkbox-group/checkbox-group.scss +1 -0
  82. package/themes/macos/collapse/index.scss +2 -0
  83. package/themes/macos/collapse/src/collapse/collapse.scss +21 -0
  84. package/themes/macos/collapse/src/collapse-item/collapse-item.scss +21 -0
  85. package/themes/macos/confirm/index.scss +1 -0
  86. package/themes/macos/confirm/src/confirm/confirm.scss +13 -0
  87. package/themes/macos/datepicker/index.scss +2 -0
  88. package/themes/macos/datepicker/src/datepicker/datepicker.scss +50 -0
  89. package/themes/macos/datepicker/src/datepicker-panel/datepicker-panel.scss +44 -0
  90. package/themes/macos/datetimepicker/index.scss +1 -0
  91. package/themes/macos/datetimepicker/src/datetimepicker/datetimepicker.scss +67 -0
  92. package/themes/macos/demo/index.scss +1 -0
  93. package/themes/macos/demo/src/demo/demo.scss +22 -0
  94. package/themes/macos/draggable/index.scss +9 -0
  95. package/themes/macos/draggable/src/draggrid/draggrid.scss +13 -0
  96. package/themes/macos/draggable/src/draggrid-item/draggrid-item.scss +65 -0
  97. package/themes/macos/draggable/src/draghandler/draghandler.scss +15 -0
  98. package/themes/macos/draggable/src/draglist/draglist.scss +13 -0
  99. package/themes/macos/draggable/src/draglist-item/draglist-item.scss +72 -0
  100. package/themes/macos/draggable/src/dropzone/dropzone.scss +13 -0
  101. package/themes/macos/durationpicker/index.scss +1 -0
  102. package/themes/macos/durationpicker/src/durationpicker/durationpicker.scss +52 -0
  103. package/themes/macos/empty/index.scss +1 -0
  104. package/themes/macos/empty/src/empty-icon/empty-icon.scss +13 -0
  105. package/themes/macos/file/index.scss +1 -0
  106. package/themes/macos/file/src/file/file.scss +38 -0
  107. package/themes/macos/form/index.scss +3 -0
  108. package/themes/macos/form/src/form/form.scss +1 -0
  109. package/themes/macos/form/src/form-group/form-group.scss +17 -0
  110. package/themes/macos/form/src/form-item/form-item.scss +29 -0
  111. package/themes/macos/index-dark.scss +41 -0
  112. package/themes/macos/index-light.scss +41 -0
  113. package/themes/macos/index.scss +41 -0
  114. package/themes/macos/info/index.scss +3 -0
  115. package/themes/macos/info/src/info/info.scss +5 -0
  116. package/themes/macos/info/src/info-column/info-column.scss +5 -0
  117. package/themes/macos/info/src/info-field/info-field.scss +5 -0
  118. package/themes/macos/input/index.scss +1 -0
  119. package/themes/macos/input/src/input/input.scss +38 -0
  120. package/themes/macos/input-number/index.scss +1 -0
  121. package/themes/macos/input-number/src/input-number/input-number.scss +47 -0
  122. package/themes/macos/loader/index.scss +1 -0
  123. package/themes/macos/loader/src/loader/loader.scss +21 -0
  124. package/themes/macos/map/index.scss +1 -0
  125. package/themes/macos/map/src/map/map.scss +1 -0
  126. package/themes/macos/modal/index.scss +1 -0
  127. package/themes/macos/modal/src/modal/modal.scss +34 -0
  128. package/themes/macos/notification/index.scss +1 -0
  129. package/themes/macos/notification/src/notification/notification.scss +24 -0
  130. package/themes/macos/paginator/index.scss +1 -0
  131. package/themes/macos/paginator/src/paginator/paginator.scss +5 -0
  132. package/themes/macos/popover/index.scss +1 -0
  133. package/themes/macos/popover/src/popover/popover.scss +83 -0
  134. package/themes/macos/radio/index.scss +2 -0
  135. package/themes/macos/radio/src/radio/radio.scss +45 -0
  136. package/themes/macos/radio/src/radio-group/radio-group.scss +1 -0
  137. package/themes/macos/rating/index.scss +1 -0
  138. package/themes/macos/rating/src/rating/rating.scss +18 -0
  139. package/themes/macos/resizer/index.scss +1 -0
  140. package/themes/macos/resizer/src/resizer/resizer.scss +5 -0
  141. package/themes/macos/root/image/empty-default.svg +30 -0
  142. package/themes/macos/root/image/empty-space.svg +34 -0
  143. package/themes/macos/root/image/star-default.svg +10 -0
  144. package/themes/macos/root/vars-dark.scss +220 -0
  145. package/themes/macos/root/vars-light.scss +220 -0
  146. package/themes/macos/root/vars.scss +220 -0
  147. package/themes/macos/scrollbar/index.scss +1 -0
  148. package/themes/macos/scrollbar/src/scrollbar/scrollbar.scss +6 -0
  149. package/themes/macos/select/index.scss +2 -0
  150. package/themes/macos/select/src/select/select.scss +48 -0
  151. package/themes/macos/select/src/select-option/select-option.scss +1 -0
  152. package/themes/macos/slider/index.scss +1 -0
  153. package/themes/macos/slider/src/slider/slider.scss +21 -0
  154. package/themes/macos/switch/index.scss +1 -0
  155. package/themes/macos/switch/src/switch/switch.scss +28 -0
  156. package/themes/macos/table/index.scss +4 -0
  157. package/themes/macos/table/src/table/table.scss +15 -0
  158. package/themes/macos/table/src/table-cell/table-cell.scss +50 -0
  159. package/themes/macos/table/src/table-column/table-column.scss +32 -0
  160. package/themes/macos/table/src/table-filter/table-filter.scss +1 -0
  161. package/themes/macos/tabs/index.scss +2 -0
  162. package/themes/macos/tabs/src/tabs/tabs.scss +21 -0
  163. package/themes/macos/tabs/src/tabs-item/tabs-item.scss +18 -0
  164. package/themes/macos/tags/index.scss +2 -0
  165. package/themes/macos/tags/src/tags/tags.scss +1 -0
  166. package/themes/macos/tags/src/tags-item/tags-item.scss +28 -0
  167. package/themes/macos/textarea/index.scss +1 -0
  168. package/themes/macos/textarea/src/textarea/textarea.scss +30 -0
  169. package/themes/macos/timepicker/index.scss +2 -0
  170. package/themes/macos/timepicker/src/timepicker/timepicker.scss +50 -0
  171. package/themes/macos/timepicker/src/timepicker-panel/timepicker-panel.scss +27 -0
  172. package/themes/macos/transfer/index.scss +1 -0
  173. package/themes/macos/transfer/src/transfer/transfer.scss +18 -0
  174. package/themes/macos/virtualscroller/index.scss +1 -0
  175. package/themes/macos/virtualscroller/src/virtualscroller/virtualscroller.scss +1 -0
  176. package/webpack.config.js +32 -86
  177. package/webservy.json +3 -1
@@ -0,0 +1,2 @@
1
+ @import "./src/datepicker-panel/datepicker-panel";
2
+ @import "./src/datepicker/datepicker";
@@ -0,0 +1,50 @@
1
+ @import "../../../root/vars";
2
+
3
+ .n-datepicker {
4
+ background: $color-form;
5
+ border: 1px solid $color-gray-15;
6
+ }
7
+
8
+ .n-datepicker.n-disabled {
9
+ background: rgba($color-gray-15, 0.3);
10
+ }
11
+
12
+ .n-datepicker__seperator {
13
+ color: $color-gray-60;
14
+ }
15
+
16
+ .n-datepicker__clear,
17
+ .n-datepicker__angle {
18
+ color: $color-gray-60;
19
+ }
20
+
21
+ .n-datepicker__clear i {
22
+ background: rgba($color-gray-15, 0.6);
23
+ }
24
+
25
+ .n-datepicker__placeholder {
26
+ color: rgba($color-black, 0.5);
27
+ }
28
+
29
+ .n-datepicker__body,
30
+ .n-datepicker__empty {
31
+ background: $color-form;
32
+ box-shadow: 0 1px 3px 1px rgba($color-shadow, 0.15);
33
+ }
34
+
35
+ .n-datepicker__empty {
36
+ color: $color-gray-60;
37
+ }
38
+
39
+ @each $color, $values in $colors {
40
+
41
+ $-color-base: map_get($values, 'base');
42
+ $-color-light: map_get($values, 'light');
43
+ $-color-dark: map_get($values, 'dark');
44
+
45
+ .n-datepicker--#{$color}:not(.n-disabled):hover,
46
+ .n-datepicker--#{$color}:not(.n-disabled).n-focus {
47
+ border-color: $-color-base;
48
+ }
49
+
50
+ }
@@ -0,0 +1,44 @@
1
+ @import "../../../root/vars";
2
+
3
+ .n-datepicker-panel {
4
+ background: $color-form;
5
+ border: 1px solid $color-gray-10;
6
+ }
7
+
8
+ .n-datepicker-panel__header {
9
+ border-bottom: 1px solid $color-gray-10;
10
+ }
11
+
12
+ .n-datepicker-panel__footer {
13
+ border-top: 1px solid $color-gray-10;
14
+ }
15
+
16
+ .n-datepicker-panel__display .n-datepicker-panel__month:hover,
17
+ .n-datepicker-panel__display .n-datepicker-panel__year:hover {
18
+ background: rgba($color-gray-15, 0.6);
19
+ }
20
+
21
+ .n-datepicker-panel__dateview .n-datepicker-panel__day.n-arrive:not(.n-selected),
22
+ .n-datepicker-panel__dateview .n-datepicker-panel__day.n-depart:not(.n-selected),
23
+ .n-datepicker-panel__dateview .n-datepicker-panel__day.n-between:not(.n-selected) {
24
+ background: rgba($color-gray-15, 0.6);
25
+ }
26
+
27
+ .n-datepicker-panel__body .n-datepicker-panel__day:not(.n-current) {
28
+ color: $color-gray-40;
29
+ }
30
+
31
+ @each $color, $values in $colors {
32
+
33
+ $-color-base: map_get($values, 'base');
34
+ $-color-light: map_get($values, 'light');
35
+ $-color-dark: map_get($values, 'dark');
36
+
37
+ .n-datepicker-panel--#{$color} .n-datepicker-panel__body .n-datepicker-panel__day.n-selected,
38
+ .n-datepicker-panel--#{$color} .n-datepicker-panel__body .n-datepicker-panel__month.n-selected,
39
+ .n-datepicker-panel--#{$color} .n-datepicker-panel__body .n-datepicker-panel__year.n-selected {
40
+ color: $color-white;
41
+ background: $-color-base;
42
+ }
43
+
44
+ }
@@ -0,0 +1 @@
1
+ @import "./src/datetimepicker/datetimepicker";
@@ -0,0 +1,67 @@
1
+ @import "../../../root/vars";
2
+
3
+ .n-datetimepicker {
4
+ background: $color-form;
5
+ border: 1px solid $color-gray-15;
6
+ }
7
+
8
+ .n-datetimepicker.n-disabled {
9
+ background: rgba($color-gray-15, 0.3);
10
+ }
11
+
12
+ .n-datetimepicker__seperator {
13
+ color: $color-gray-60;
14
+ }
15
+
16
+ .n-datetimepicker__clear,
17
+ .n-datetimepicker__angle {
18
+ color: $color-gray-60;
19
+ }
20
+
21
+ .n-datetimepicker__clear i {
22
+ background: rgba($color-gray-15, 0.6);
23
+ }
24
+
25
+ .n-datetimepicker__placeholder {
26
+ color: rgba($color-black, 0.5);
27
+ }
28
+
29
+ .n-datetimepicker__body,
30
+ .n-datetimepicker__empty {
31
+ background: $color-form;
32
+ box-shadow: 0 1px 3px 1px rgba($color-shadow, 0.15);
33
+ }
34
+
35
+ .n-datetimepicker__empty {
36
+ color: $color-gray-60;
37
+ }
38
+
39
+ .n-datetimepicker__body {
40
+ border: 1px solid $color-gray-15;
41
+ }
42
+
43
+ .n-datetimepicker__time-panel.n-timepicker-panel {
44
+ background: $color-gray-10;
45
+ }
46
+
47
+ .n-datetimepicker__time-panel.n-timepicker-panel .n-timepicker-panel__header {
48
+ border-bottom: 1px solid $color-gray-15;
49
+ }
50
+
51
+ .n-datetimepicker__time-panel.n-timepicker-panel .n-timepicker-panel__panel:not(:last-child) {
52
+ border-right: 1px solid $color-gray-15;
53
+ }
54
+
55
+
56
+ @each $color, $values in $colors {
57
+
58
+ $-color-base: map_get($values, 'base');
59
+ $-color-light: map_get($values, 'light');
60
+ $-color-dark: map_get($values, 'dark');
61
+
62
+ .n-datetimepicker--#{$color}:not(.n-disabled):hover,
63
+ .n-datetimepicker--#{$color}:not(.n-disabled).n-focus {
64
+ border-color: $-color-base;
65
+ }
66
+
67
+ }
@@ -0,0 +1 @@
1
+ @import "./src/demo/demo";
@@ -0,0 +1,22 @@
1
+ @import "../../../root/vars";
2
+
3
+ .n-demo {
4
+ color: $color-foreground;
5
+ background: $color-background;
6
+ }
7
+
8
+ input, textarea {
9
+ outline: none !important;
10
+ }
11
+
12
+ [class*="n-"] input,
13
+ [class*="n-"] textarea {
14
+ outline: none;
15
+ color: $color-foreground;
16
+ }
17
+
18
+ [class*="n-"] input::placeholder,
19
+ [class*="n-"] textarea::placeholder {
20
+ color: $color-foreground;
21
+ opacity: 0.3;
22
+ }
@@ -0,0 +1,9 @@
1
+ @import "./src/draghandler/draghandler";
2
+
3
+ @import "./src/draglist/draglist";
4
+ @import "./src/draglist-item/draglist-item";
5
+
6
+ @import "./src/draggrid/draggrid";
7
+ @import "./src/draggrid-item/draggrid-item";
8
+
9
+ @import "./src/dropzone/dropzone";
@@ -0,0 +1,13 @@
1
+ @import "../../../root/vars";
2
+
3
+ @each $color, $values in $colors {
4
+
5
+ $-color-base: map_get($values, 'base');
6
+ $-color-light: map_get($values, 'light');
7
+ $-color-dark: map_get($values, 'dark');
8
+
9
+ .n-draggrid--#{$color}.n-empty.n-dragover {
10
+ background: rgba($-color-base, 0.075);
11
+ }
12
+
13
+ }
@@ -0,0 +1,65 @@
1
+ @import "../../../root/vars";
2
+
3
+ .n-draggrid-item.n-current {
4
+ background: rgba($color-gray-35, 0.1);
5
+ }
6
+
7
+ .n-draggrid-item.n-nodrop {
8
+ background: rgba($color-danger, 0.1);
9
+ }
10
+
11
+ .n-draggrid-item .n-draggrid-item__ellipsis {
12
+ color: $color-gray-30;
13
+ }
14
+
15
+ .n-draggrid-item__checkbox {
16
+ background: $color-white;
17
+ border: 1px solid $color-gray-15;
18
+ }
19
+
20
+ .n-draggrid-item.n-disabled .n-draggrid-item__checkbox {
21
+ background:rgba($color-gray-15, 0.3);
22
+ }
23
+
24
+ @each $color, $values in $colors {
25
+
26
+ $-color-base: map_get($values, 'base');
27
+ $-color-light: map_get($values, 'light');
28
+ $-color-dark: map_get($values, 'dark');
29
+
30
+ .n-draggrid--#{$color}.n-empty.n-dragover {
31
+ background: rgba($-color-base, 0.075);
32
+ }
33
+
34
+ .n-draggrid--#{$color} .n-draggrid-item.n-dragover {
35
+ background: rgba($-color-base, 0.075);
36
+ }
37
+
38
+ .n-draggrid--#{$color} .n-draggrid-item.n-highlight {
39
+ animation: NDraggridItem#{$color} 1s linear infinite;
40
+ }
41
+
42
+ .n-draggrid--#{$color} .n-draggrid-item.n-selected .n-draggrid-item__checkbox {
43
+ color: $color-white;
44
+ background: $-color-base;
45
+ border-color: $-color-base;
46
+ }
47
+
48
+ .n-draggrid--#{$color} .n-draggrid-item.n-selected .n-draggrid-item__checkbox:hover {
49
+ background: $-color-light;
50
+ border-color: $-color-light;
51
+ }
52
+
53
+ @keyframes NDraggridItem#{$color} {
54
+ 0% {
55
+ background: rgba($-color-base, 0);
56
+ }
57
+ 50% {
58
+ background: rgba($-color-base, 0.150);
59
+ }
60
+ 100% {
61
+ background: rgba($-color-base, 0);
62
+ }
63
+ }
64
+
65
+ }
@@ -0,0 +1,15 @@
1
+ @import "../../../root/vars";
2
+
3
+ .n-draggable__indicator {
4
+ border-bottom: 1px solid $color-primary;
5
+ }
6
+
7
+ .n-draggable__counter {
8
+ color: $color-white;
9
+ background: $color-primary;
10
+ }
11
+
12
+ .n-draggable__counter[class*="n-modify--"] {
13
+ color: $color-white;
14
+ background: $color-warning;
15
+ }
@@ -0,0 +1,13 @@
1
+ @import "../../../root/vars";
2
+
3
+ @each $color, $values in $colors {
4
+
5
+ $-color-base: map_get($values, 'base');
6
+ $-color-light: map_get($values, 'light');
7
+ $-color-dark: map_get($values, 'dark');
8
+
9
+ .n-draglist--#{$color}.n-empty.n-dragover {
10
+ background: rgba($-color-base, 0.075);
11
+ }
12
+
13
+ }
@@ -0,0 +1,72 @@
1
+ @import "../../../root/vars";
2
+
3
+ .n-draglist-item.n-current {
4
+ background: rgba($color-gray-35, 0.1);
5
+ }
6
+
7
+ .n-draglist-item.n-nodrop {
8
+ background: rgba($color-danger, 0.1);
9
+ }
10
+
11
+ .n-draglist-item .n-draglist-item__ellipsis {
12
+ color: $color-gray-30;
13
+ }
14
+
15
+ .n-draglist-item .n-draglist-item__expand {
16
+ color: $color-gray-60;
17
+ }
18
+
19
+ .n-draglist-item__checkbox {
20
+ background: $color-form;
21
+ border: 1px solid $color-gray-15;
22
+ }
23
+
24
+ .n-draglist-item.n-disabled .n-draglist-item__checkbox {
25
+ background:rgba($color-gray-15, 0.3);
26
+ }
27
+
28
+ @each $color, $values in $colors {
29
+
30
+ $-color-base: map_get($values, 'base');
31
+ $-color-light: map_get($values, 'light');
32
+ $-color-dark: map_get($values, 'dark');
33
+
34
+ .n-draglist--#{$color}.n-empty.n-dragover {
35
+ background: rgba($-color-base, 0.075);
36
+ }
37
+
38
+ .n-draglist--#{$color} .n-draglist-item.n-dragover {
39
+ background: rgba($-color-base, 0.075);
40
+ }
41
+
42
+ .n-draglist--#{$color} .n-draglist-item.n-highlight {
43
+ animation: NDraglistItem#{$color} 1s linear infinite;
44
+ }
45
+
46
+ .n-draglist--#{$color} .n-draglist-item.n-selected .n-draglist-item__checkbox {
47
+ color: $color-white;
48
+ background: $-color-base;
49
+ border-color: $-color-base;
50
+ }
51
+
52
+ .n-draglist--#{$color} .n-draglist-item .n-draglist-item__checkbox:hover {
53
+ border-color: $-color-light;
54
+ }
55
+
56
+ .n-draglist--#{$color} .n-draglist-item.n-selected .n-draglist-item__checkbox:hover {
57
+ background: $-color-light;
58
+ }
59
+
60
+ @keyframes NDraglistItem#{$color} {
61
+ 0% {
62
+ background: rgba($-color-base, 0);
63
+ }
64
+ 50% {
65
+ background: rgba($-color-base, 0.150);
66
+ }
67
+ 100% {
68
+ background: rgba($-color-base, 0);
69
+ }
70
+ }
71
+
72
+ }
@@ -0,0 +1,13 @@
1
+ @import "../../../root/vars";
2
+
3
+ @each $color, $values in $colors {
4
+
5
+ $-color-base: map_get($values, 'base');
6
+ $-color-light: map_get($values, 'light');
7
+ $-color-dark: map_get($values, 'dark');
8
+
9
+ .n-dropzone--#{$color}.n-dragover {
10
+ background: rgba($-color-base, 0.075);
11
+ }
12
+
13
+ }
@@ -0,0 +1 @@
1
+ @import "./src/durationpicker/durationpicker";
@@ -0,0 +1,52 @@
1
+ @import "../../../root/vars";
2
+
3
+ .n-durationpicker {
4
+ background: $color-form;
5
+ border: 1px solid $color-gray-15;
6
+ }
7
+
8
+ .n-durationpicker.n-disabled {
9
+ background: rgba($color-gray-15, 0.3);
10
+ }
11
+
12
+ .n-durationpicker__seperator {
13
+ color: $color-gray-60;
14
+ }
15
+
16
+ .n-durationpicker__clear,
17
+ .n-durationpicker__angle {
18
+ color: $color-gray-60;
19
+ }
20
+
21
+ .n-durationpicker__clear i {
22
+ background: rgba($color-gray-15, 0.6);
23
+ }
24
+
25
+ .n-durationpicker__placeholder {
26
+ color: rgba($color-black, 0.5);
27
+ }
28
+
29
+ .n-durationpicker__body,
30
+ .n-durationpicker__empty {
31
+ background: $color-form;
32
+ border: 1px solid $color-gray-15;
33
+ box-shadow: 0 1px 3px 1px rgba($color-shadow, 0.15);
34
+ }
35
+
36
+ .n-durationpicker__empty {
37
+ color: $color-gray-60;
38
+ }
39
+
40
+
41
+ @each $color, $values in $colors {
42
+
43
+ $-color-base: map_get($values, 'base');
44
+ $-color-light: map_get($values, 'light');
45
+ $-color-dark: map_get($values, 'dark');
46
+
47
+ .n-durationpicker--#{$color}:not(.n-disabled):hover,
48
+ .n-durationpicker--#{$color}:not(.n-disabled).n-focus {
49
+ border-color: $-color-base;
50
+ }
51
+
52
+ }
@@ -0,0 +1 @@
1
+ @import "./src/empty-icon/empty-icon";
@@ -0,0 +1,13 @@
1
+ @import "../../../root/vars";
2
+
3
+ .n-empty-icon--default .n-empty-icon__frame {
4
+ background-image: svg-load('empty-default.svg', fill=$color-foreground);
5
+ }
6
+
7
+ .n-empty-icon--ufo .n-empty-icon__frame {
8
+ background-image: svg-load('empty-space.svg', fill=$color-foreground);
9
+ }
10
+
11
+ .n-empty-icon__text {
12
+ color: rgba($color-foreground, 0.4);
13
+ }
@@ -0,0 +1 @@
1
+ @import "./src/file/file";
@@ -0,0 +1,38 @@
1
+ @import "../../../root/vars";
2
+
3
+ @each $color, $values in $colors {
4
+
5
+ $-color-base: map_get($values, 'base');
6
+ $-color-light: map_get($values, 'light');
7
+ $-color-dark: map_get($values, 'dark');
8
+
9
+ /**
10
+ * File primary
11
+ */
12
+
13
+ .n-file .n-button--#{$color}:not(.n-button--link) {
14
+ background: rgba($-color-base, 0.20);
15
+ border-color: rgba($-color-base, 0.05);
16
+ color: $-color-base;
17
+ }
18
+
19
+ .n-file .n-button--#{$color}:not(.n-button--link):hover {
20
+ background: rgba($-color-light, 0.20);
21
+ border-color: rgba($-color-light, 0.05);
22
+ color: $-color-base;
23
+ }
24
+
25
+ .n-file .n-button--#{$color}:not(.n-button--link):focus {
26
+ background: rgba($-color-dark, 0.20);
27
+ border-color: rgba($-color-dark, 0.05);
28
+ color: $-color-base;
29
+ }
30
+
31
+ .n-file .n-button--#{$color}:not(.n-button--link).n-disabled {
32
+ background: rgba($-color-base, 0.20);
33
+ border-color: rgba($-color-base, 0.05);
34
+ color: $-color-base;
35
+ }
36
+
37
+
38
+ }
@@ -0,0 +1,3 @@
1
+ @import "./src/form/form";
2
+ @import "./src/form-group/form-group";
3
+ @import "./src/form-item/form-item";
@@ -0,0 +1 @@
1
+ @import "../../../root/vars";
@@ -0,0 +1,17 @@
1
+ @import "../../../root/vars";
2
+
3
+ .n-form-group__collapse {
4
+ color: $color-gray-40;
5
+ }
6
+
7
+ @each $color, $values in $colors {
8
+
9
+ $-color-base: map_get($values, 'base');
10
+ $-color-light: map_get($values, 'light');
11
+ $-color-dark: map_get($values, 'dark');
12
+
13
+ .n-form-group--#{$color} .n-form-group__label i {
14
+ color: $-color-base;
15
+ }
16
+
17
+ }
@@ -0,0 +1,29 @@
1
+ @import "../../../root/vars";
2
+
3
+ .n-form-item__condition span {
4
+ color: $color-gray-50;
5
+ }
6
+
7
+ .n-form-item.is-disabled .n-form-item__condition {
8
+ background: rgba($color-primary, 0.1);
9
+ }
10
+
11
+ .n-form-item.is-disabled .n-form-item__condition span {
12
+ color: rgba($color-primary, 0.75);
13
+ }
14
+
15
+ .n-form-item.is-disabled .n-form-item__condition:hover {
16
+ background: rgba($color-primary, 0.15);
17
+ }
18
+
19
+ .n-form-item.is-disabled .n-form-item__condition:hover span {
20
+ color: rgba($color-primary, 0.85);
21
+ }
22
+
23
+ .n-form-item__label label {
24
+ color: $color-gray-60;
25
+ }
26
+
27
+ .n-form-item__error {
28
+ color: $color-danger;
29
+ }
@@ -0,0 +1,41 @@
1
+ @import "./root/vars-dark";
2
+
3
+ @import "./empty/index";
4
+ @import "./alert/index";
5
+ @import "./notification/index";
6
+ @import "./scrollbar/index";
7
+ @import "./resizer/index";
8
+ @import "./virtualscroller/index";
9
+ @import "./draggable/index";
10
+ @import "./loader/index";
11
+ @import "./file/index";
12
+ @import "./form/index";
13
+ @import "./button/index";
14
+ @import "./input/index";
15
+ @import "./input-number/index";
16
+ @import "./textarea/index";
17
+ @import "./switch/index";
18
+ @import "./checkbox/index";
19
+ @import "./radio/index";
20
+ @import "./select/index";
21
+ @import "./cascader/index";
22
+ @import "./datepicker/index";
23
+ @import "./timepicker/index";
24
+ @import "./datetimepicker/index";
25
+ @import "./durationpicker/index";
26
+ @import "./transfer/index";
27
+ @import "./popover/index";
28
+ @import "./modal/index";
29
+ @import "./confirm/index";
30
+ @import "./table/index";
31
+ @import "./paginator/index";
32
+ @import "./tabs/index";
33
+ @import "./tags/index";
34
+ @import "./collapse/index";
35
+ @import "./info/index";
36
+ @import "./map/index";
37
+ @import "./rating/index";
38
+ @import "./slider/index";
39
+
40
+ @import "./demo/index";
41
+
@@ -0,0 +1,41 @@
1
+ @import "./root/vars-light";
2
+
3
+ @import "./empty/index";
4
+ @import "./alert/index";
5
+ @import "./notification/index";
6
+ @import "./scrollbar/index";
7
+ @import "./resizer/index";
8
+ @import "./virtualscroller/index";
9
+ @import "./draggable/index";
10
+ @import "./loader/index";
11
+ @import "./file/index";
12
+ @import "./form/index";
13
+ @import "./button/index";
14
+ @import "./input/index";
15
+ @import "./input-number/index";
16
+ @import "./textarea/index";
17
+ @import "./switch/index";
18
+ @import "./checkbox/index";
19
+ @import "./radio/index";
20
+ @import "./select/index";
21
+ @import "./cascader/index";
22
+ @import "./datepicker/index";
23
+ @import "./timepicker/index";
24
+ @import "./datetimepicker/index";
25
+ @import "./durationpicker/index";
26
+ @import "./transfer/index";
27
+ @import "./popover/index";
28
+ @import "./modal/index";
29
+ @import "./confirm/index";
30
+ @import "./table/index";
31
+ @import "./paginator/index";
32
+ @import "./tabs/index";
33
+ @import "./tags/index";
34
+ @import "./collapse/index";
35
+ @import "./info/index";
36
+ @import "./map/index";
37
+ @import "./rating/index";
38
+ @import "./slider/index";
39
+
40
+ @import "./demo/index";
41
+