@kizmann/nano-ui 0.9.3 → 0.9.5

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 (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,146 @@
1
+ import { Arr, Obj, Any } from "@kizmann/pico-js";
2
+
3
+ export default {
4
+
5
+ name: 'NReferencePicker',
6
+
7
+ props: {
8
+
9
+ modelValue: {
10
+ default()
11
+ {
12
+ return '';
13
+ },
14
+ type: [String]
15
+ },
16
+
17
+ model: {
18
+ default()
19
+ {
20
+ return {};
21
+ },
22
+ type: [Object]
23
+ },
24
+
25
+ scope: {
26
+ default()
27
+ {
28
+ return {};
29
+ },
30
+ type: [Object]
31
+ },
32
+
33
+ size: {
34
+ default()
35
+ {
36
+ return 'md';
37
+ },
38
+ type: [String]
39
+ },
40
+
41
+ width: {
42
+ default()
43
+ {
44
+ return '100%';
45
+ },
46
+ type: [String]
47
+ },
48
+
49
+ height: {
50
+ default()
51
+ {
52
+ return '100%';
53
+ },
54
+ type: [String]
55
+ },
56
+
57
+ },
58
+
59
+ data()
60
+ {
61
+ return {
62
+ modal: false, tempValue: this.modelValue
63
+ };
64
+ },
65
+
66
+ methods: {
67
+
68
+ updateValue(value)
69
+ {
70
+ this.$emit('update:modelValue', this.tempValue = value);
71
+ }
72
+
73
+ },
74
+
75
+ renderModal()
76
+ {
77
+ if ( ! this.modal ) {
78
+ return null;
79
+ }
80
+
81
+ let modalProps = {
82
+ modelValue: true,
83
+ width: this.width,
84
+ height: this.height,
85
+ };
86
+
87
+ modalProps['onClose'] = () => {
88
+ this.modal = false;
89
+ };
90
+
91
+ let panelProps = {
92
+ model: this.model, scope: this.scope,
93
+ };
94
+
95
+ panelProps['onUpdate:modelValue'] = (value) => {
96
+ this.updateValue(value); this.modal = false;
97
+ };
98
+
99
+ let slots = {
100
+ //
101
+ };
102
+
103
+ slots['body'] = () => (
104
+ <NReferencePanel class="in-modal" {...panelProps} />
105
+ );
106
+
107
+ return (
108
+ <NModal {...modalProps} v-slots={slots} />
109
+ );
110
+ },
111
+
112
+ renderInput()
113
+ {
114
+ let inputProps = {
115
+ modelValue: this.tempValue,
116
+ icon: 'fa fa-expand',
117
+ size: this.size,
118
+ };
119
+
120
+ inputProps['onUpdate:modelValue'] = (value) => {
121
+ this.updateValue(value);
122
+ };
123
+
124
+ inputProps['onBlur'] = (e) => {
125
+ this.$emit('onBlur', e);
126
+ };
127
+
128
+ inputProps['onIconClick'] = () => {
129
+ this.modal = true;
130
+ };
131
+
132
+ return (
133
+ <NInput {...inputProps} />
134
+ );
135
+ },
136
+
137
+ render()
138
+ {
139
+ return (
140
+ <div class="n-reference-picker">
141
+ {[this.ctor('renderInput')(), this.ctor('renderModal')()]}
142
+ </div>
143
+ );
144
+ }
145
+
146
+ }
@@ -0,0 +1,3 @@
1
+ .n-reference-picker .n-input input {
2
+ font-family: monospace;
3
+ }
@@ -123,12 +123,12 @@
123
123
 
124
124
  .n-datetimepicker__date-panel.n-datepicker-panel {
125
125
  border: none;
126
+ border-radius: 0;
126
127
  }
127
128
 
128
129
  .n-datetimepicker__time-panel.n-timepicker-panel {
129
130
  border: none;
130
- border-left: 1px solid $color-gray-10;
131
- background: rgba($color-gray-05, 0.5);
131
+ border-radius: 0;
132
132
  }
133
133
 
134
134
  .n-datetimepicker__empty {
@@ -26,6 +26,14 @@ export default {
26
26
  return false;
27
27
  },
28
28
  type: [Boolean]
29
+ },
30
+
31
+ inline: {
32
+ default()
33
+ {
34
+ return false;
35
+ },
36
+ type: [Boolean]
29
37
  }
30
38
 
31
39
  },
@@ -42,6 +50,10 @@ export default {
42
50
  classList.push('n-disabled');
43
51
  }
44
52
 
53
+ if ( this.inline ) {
54
+ classList.push('n-inline');
55
+ }
56
+
45
57
  return (
46
58
  <div class={classList}>
47
59
  <div class="n-empty-icon__frame">
@@ -10,6 +10,11 @@
10
10
  margin: 0 auto;
11
11
  }
12
12
 
13
+ .n-empty-icon.n-inline {
14
+ flex-direction: row;
15
+ width: auto;
16
+ }
17
+
13
18
  .n-empty-icon__frame {
14
19
  display: block;
15
20
  width: 35%;
@@ -18,6 +23,11 @@
18
23
  opacity: 0.3;
19
24
  }
20
25
 
26
+ .n-empty-icon.n-inline .n-empty-icon__frame {
27
+ width: 36px;
28
+ margin: 0 10px 0 0;
29
+ }
30
+
21
31
  .n-empty-icon.n-disabled .n-empty-icon__frame {
22
32
  display: none;
23
33
  }
@@ -201,7 +201,11 @@ export default {
201
201
 
202
202
  render()
203
203
  {
204
- let size = this.size || this.NForm.size;
204
+ let size = this.size ;
205
+
206
+ if ( this.NForm ) {
207
+ size = size || this.NForm.size;
208
+ }
205
209
 
206
210
  let classList = [
207
211
  'n-form-group',
package/src/index.scss CHANGED
@@ -36,4 +36,5 @@
36
36
  @import "./map/index";
37
37
  @import "./preview/index";
38
38
  @import "./rating/index";
39
+ @import "./config/index";
39
40
 
@@ -156,11 +156,13 @@ export default {
156
156
  onFocus(event)
157
157
  {
158
158
  this.focus = true;
159
+ this.$emit('focus', event);
159
160
  },
160
161
 
161
162
  onBlur(event)
162
163
  {
163
164
  this.focus = false;
165
+ this.$emit('blur', event);
164
166
  }
165
167
 
166
168
  },
@@ -46,6 +46,14 @@ export default {
46
46
  type: [String]
47
47
  },
48
48
 
49
+ mime: {
50
+ default()
51
+ {
52
+ return null;
53
+ },
54
+ typre: [String]
55
+ },
56
+
49
57
  preview: {
50
58
  default()
51
59
  {
@@ -129,11 +137,19 @@ export default {
129
137
  fallback = 'video';
130
138
  }
131
139
 
140
+ if ( Any.isString(this.mime) ) {
141
+ fallback = this.mime;
142
+ }
143
+
132
144
  return fallback;
133
145
  },
134
146
 
135
147
  getThumbMime(fallback = null)
136
148
  {
149
+ if ( Any.isString(this.mime) ) {
150
+ return this.mime;
151
+ }
152
+
137
153
  let file = Obj.get(this.tempThumb, 'name',
138
154
  this.tempThumb);
139
155
 
@@ -236,8 +252,10 @@ export default {
236
252
  props.onClick = this.showLightbox;
237
253
  }
238
254
 
255
+ let key = btoa(this.tempThumb);
256
+
239
257
  return (
240
- <div class={classList} {...props}>
258
+ <div key={key} class={classList} {...props}>
241
259
  { [this.ctor('renderPreview')(), this.ctor('renderLightbox')()] }
242
260
  </div>
243
261
  );
@@ -32,6 +32,7 @@ export default {
32
32
  if ( ! Arr.has(window.ImageCache, this.src) ) {
33
33
  this.tempSrc = this.src;
34
34
  }
35
+
35
36
  },
36
37
 
37
38
  mounted()
@@ -51,7 +52,7 @@ export default {
51
52
 
52
53
  resolveLoad()
53
54
  {
54
- if ( ! Arr.has(window.ImageCache, this.src) ) {
55
+ if ( Arr.has(window.ImageCache, this.src) ) {
55
56
  return;
56
57
  }
57
58
 
@@ -158,3 +158,26 @@ $colors: (
158
158
  'dark': $color-danger-dark
159
159
  ),
160
160
  ) !default;
161
+
162
+ $colors-tags: (
163
+ '0': mix($color-secondary, $color-secondary, 65%),
164
+ '1': mix($color-primary, $color-secondary, 65%),
165
+ '2': mix($color-danger, $color-secondary, 65%),
166
+ '3': mix($color-success, $color-secondary, 65%),
167
+ '4': mix($color-warning, $color-secondary, 65%),
168
+ '5': mix($color-primary, $color-success, 65%),
169
+ '6': mix($color-secondary, $color-success, 65%),
170
+ '7': mix($color-danger, $color-success, 65%),
171
+ '8': mix($color-success, $color-success, 65%),
172
+ '9': mix($color-warning, $color-success, 65%),
173
+ '10': mix($color-primary, $color-danger, 65%),
174
+ '11': mix($color-secondary, $color-danger, 65%),
175
+ '12': mix($color-danger, $color-danger, 65%),
176
+ '13': mix($color-success, $color-danger, 65%),
177
+ '14': mix($color-warning, $color-danger, 65%),
178
+ '15': mix($color-primary, $color-warning, 65%),
179
+ '16': mix($color-secondary, $color-warning, 65%),
180
+ '17': mix($color-danger, $color-warning, 65%),
181
+ '18': mix($color-success, $color-warning, 65%),
182
+ '19': mix($color-warning, $color-warning, 65%),
183
+ ) !default;
@@ -750,7 +750,7 @@ export default {
750
750
  {
751
751
  let emptyHtml = (
752
752
  <div class="n-select__empty">
753
- <NEmptyIcon>{this.trans(this.emptyText)}</NEmptyIcon>
753
+ <NEmptyIcon inline={true}>{this.trans(this.emptyText)}</NEmptyIcon>
754
754
  </div>
755
755
  );
756
756
 
@@ -14,7 +14,6 @@
14
14
  right: 0;
15
15
  margin-top: -3px;
16
16
  height: 6px;
17
- background: $color-gray-10;
18
17
  border-radius: 500px;
19
18
  }
20
19
 
@@ -24,7 +23,6 @@
24
23
  left: 0;
25
24
  right: 0;
26
25
  bottom: 0;
27
- background: $color-primary;
28
26
  }
29
27
 
30
28
  .n-slider__handle {
@@ -36,8 +34,7 @@
36
34
  width: 20px;
37
35
  height: 20px;
38
36
  margin: -10px 0 0 -10px;
39
- background: $color-white;
40
- border: 2px solid $color-primary;
37
+ border: 2px solid transparent;
41
38
  border-radius: 500px;
42
39
  }
43
40
 
@@ -51,9 +48,7 @@
51
48
  font-size: 13px;
52
49
  display: inline-block;
53
50
  opacity: 0;
54
- color: $color-white;
55
51
  transform: translate(-50%, -25%);
56
- background: rgba($color-black, 0.8);
57
52
  transition: opacity 0.3s;
58
53
  }
59
54
 
@@ -9,6 +9,10 @@
9
9
  border-radius: $md-radius + 2;
10
10
  }
11
11
 
12
+ .n-table .n-table__header {
13
+ border-radius: $md-radius + 2 $md-radius + 2 0 0;
14
+ }
15
+
12
16
  .n-table .n-table__wrap,
13
17
  .n-table .n-table__inner,
14
18
  .n-table > .n-scrollbar,
@@ -7,7 +7,6 @@
7
7
  align-items: center;
8
8
  justify-content: flex-start;
9
9
  max-width: 160px;
10
- border-radius: $sm-radius;
11
10
  background: $color-gray-10;
12
11
  }
13
12
 
@@ -33,6 +32,7 @@
33
32
  $-tags-item-ratio: map-get($values, 'ratio');
34
33
 
35
34
  .n-tags-item--#{$suffix} {
35
+ border-radius: $-tags-item-radius;
36
36
  padding: 0 $-tags-item-size * 0.3 0 $-tags-item-size * 0.3;
37
37
  }
38
38
 
@@ -0,0 +1 @@
1
+ @import "./src/alert/alert";
@@ -0,0 +1,26 @@
1
+ @import "../../../root/vars";
2
+
3
+ .n-alert-backdrop {
4
+ background: rgba($color-black, 0.8);
5
+ }
6
+
7
+ .n-alert {
8
+ background: $color-black;
9
+ box-shadow: 0 1px 5px 1px rgba($color-shadow, 0.20);
10
+ }
11
+
12
+ .n-alert__text {
13
+ color: $color-gray-40;
14
+ }
15
+
16
+ @each $color, $values in $colors {
17
+
18
+ $-color-base: map_get($values, 'base');
19
+ $-color-light: map_get($values, 'light');
20
+ $-color-dark: map_get($values, 'dark');
21
+
22
+ .n-alert-frame--#{$color} .n-alert__icon {
23
+ color: $-color-base;
24
+ }
25
+
26
+ }
@@ -0,0 +1,2 @@
1
+ @import "./src/button/button";
2
+ @import "./src/button-group/button-group";
@@ -0,0 +1,46 @@
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
+ * Button primary
11
+ */
12
+
13
+ .n-button--#{$color}:not(.n-button--link) {
14
+ color: $color-white;
15
+ background: $-color-base;
16
+ border-color: $-color-base;
17
+ }
18
+
19
+ .n-button--#{$color}:not(.n-button--link):hover {
20
+ background: $-color-light;
21
+ border-color: $-color-light;
22
+ }
23
+
24
+ .n-button--#{$color}:not(.n-button--link):focus {
25
+ background: $-color-dark;
26
+ border-color: $-color-dark;
27
+ }
28
+
29
+ .n-button--#{$color}:not(.n-button--link).n-disabled {
30
+ background: $-color-base;
31
+ border-color: $-color-base;
32
+ }
33
+
34
+ .n-button--#{$color}:not(.n-disabled).n-button--link {
35
+ color: $-color-base;
36
+ }
37
+
38
+ .n-button--#{$color}:not(.n-disabled).n-button--link:hover {
39
+ color: $-color-light;
40
+ }
41
+
42
+ .n-button--#{$color}:not(.n-disabled).n-button--link:focus {
43
+ color: $-color-dark;
44
+ }
45
+
46
+ }
@@ -0,0 +1 @@
1
+ @import "../../../root/vars";
@@ -0,0 +1,2 @@
1
+ @import "./src/cascader-panel/cascader-panel";
2
+ @import "./src/cascader/cascader";
@@ -0,0 +1,46 @@
1
+ @import "../../../root/vars";
2
+
3
+ .n-cascader {
4
+ background: $color-form;
5
+ border: 1px solid $color-gray-15;
6
+ }
7
+
8
+ .n-cascader.n-disabled {
9
+ background: rgba($color-gray-15, 0.3);
10
+ }
11
+
12
+ .n-cascader__clear,
13
+ .n-cascader__angle {
14
+ color: $color-gray-60;
15
+ }
16
+
17
+ .n-cascader__clear i {
18
+ background: rgba($color-gray-15, 0.6);
19
+ }
20
+
21
+ .n-cascader__placeholder {
22
+ color: rgba($color-foreground, 0.5);
23
+ }
24
+
25
+ .n-cascader__body,
26
+ .n-cascader__empty {
27
+ background: $color-form;
28
+ box-shadow: 0 1px 3px 1px rgba($color-shadow, 0.15);
29
+ }
30
+
31
+ .n-cascader__empty {
32
+ color: $color-gray-60;
33
+ }
34
+
35
+ @each $color, $values in $colors {
36
+
37
+ $-color-base: map_get($values, 'base');
38
+ $-color-light: map_get($values, 'light');
39
+ $-color-dark: map_get($values, 'dark');
40
+
41
+ .n-cascader--#{$color}:not(.n-disabled):hover,
42
+ .n-cascader--#{$color}:not(.n-disabled).n-focus {
43
+ border-color: $-color-base;
44
+ }
45
+
46
+ }
@@ -0,0 +1,14 @@
1
+ @import "../../../root/vars";
2
+
3
+ .n-cascader-panel {
4
+ background: $color-form;
5
+ border: 1px solid $color-gray-15;
6
+ }
7
+
8
+ .n-cascader-panel .n-popover-option:not(.n-active) i {
9
+ color: $color-gray-40;
10
+ }
11
+
12
+ .n-cascader-panel__items:not(:last-child) {
13
+ border-right: 1px solid $color-gray-15;
14
+ }
@@ -0,0 +1,2 @@
1
+ @import "./src/checkbox/checkbox";
2
+ @import "./src/checkbox-group/checkbox-group";
@@ -0,0 +1,44 @@
1
+ @import "../../../root/vars";
2
+
3
+ .n-checkbox__checkbox {
4
+ color: $color-foreground;
5
+ background: $color-form;
6
+ border: 1px solid $color-gray-15;
7
+ }
8
+
9
+ .n-checkbox.n-disabled .n-checkbox__checkbox {
10
+ background: rgba($color-gray-15, 0.3);
11
+ }
12
+
13
+ @each $color, $values in $colors {
14
+
15
+ $-color-base: map_get($values, 'base');
16
+ $-color-light: map_get($values, 'light');
17
+ $-color-dark: map_get($values, 'dark');
18
+
19
+ /**
20
+ * Button primary
21
+ */
22
+
23
+ .n-checkbox--#{$color}:not(.n-disabled):hover .n-checkbox__checkbox {
24
+ border-color: $-color-base;
25
+ }
26
+
27
+ .n-checkbox--#{$color}.n-checked:not(.n-disabled) .n-checkbox__checkbox,
28
+ .n-checkbox--#{$color}.n-intermediate:not(.n-disabled) .n-checkbox__checkbox {
29
+ color: $color-white;
30
+ background: $-color-base;
31
+ border-color: $-color-base;
32
+ }
33
+
34
+ .n-checkbox--#{$color}.n-checked:not(.n-disabled) .n-checkbox__checkbox:not(.n-disabled):hover,
35
+ .n-checkbox--#{$color}.n-intermediate:not(.n-disabled) .n-checkbox__checkbox:not(.n-disabled):hover {
36
+ background: $-color-light;
37
+ border-color: $-color-light;
38
+ }
39
+
40
+ .n-checkbox--#{$color}.n-checked:not(.n-disabled) .n-checkbox__label {
41
+ color: $-color-base;
42
+ }
43
+
44
+ }
@@ -0,0 +1 @@
1
+ @import "../../../root/vars";
@@ -0,0 +1,2 @@
1
+ @import "./src/collapse/collapse";
2
+ @import "./src/collapse-item/collapse-item";
@@ -0,0 +1,21 @@
1
+ @import "../../../root/vars";
2
+
3
+ .n-collapse {
4
+ border: 1px solid $color-gray-15;
5
+ }
6
+
7
+ .n-collapse__header:not(:first-child) {
8
+ border-top: 1px solid $color-gray-15;
9
+ }
10
+
11
+ .n-collapse__header.n-active {
12
+ border-bottom: 1px solid $color-gray-15;
13
+ }
14
+
15
+ @each $color, $values in $colors {
16
+
17
+ $-color-base: map_get($values, 'base');
18
+ $-color-light: map_get($values, 'light');
19
+ $-color-dark: map_get($values, 'dark');
20
+
21
+ }
@@ -0,0 +1,21 @@
1
+ @import "../../../root/vars";
2
+
3
+ .n-collapse__header-icon {
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-collapse--#{$color} .n-collapse__header .n-collapse__header-icon {
14
+ color: $-color-base;
15
+ }
16
+
17
+ .n-collapse--#{$color} .n-collapse__header.n-active .n-collapse__header-angle {
18
+ color: $-color-base;
19
+ }
20
+
21
+ }
@@ -0,0 +1 @@
1
+ @import "./src/confirm/confirm";
@@ -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-confirm--#{$color} .n-confirm__icon {
10
+ color: $-color-base;
11
+ }
12
+
13
+ }