@kizmann/nano-ui 1.0.1 → 1.0.3

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 (82) hide show
  1. package/README.md +1 -114
  2. package/dist/nano-ui.css +1 -1
  3. package/dist/nano-ui.js +2 -2
  4. package/dist/nano-ui.js.map +1 -1
  5. package/dist/themes/dark.css +1 -1
  6. package/dist/themes/light.css +1 -1
  7. package/package.json +6 -5
  8. package/src/config/src/builder/builder.js +10 -10
  9. package/src/config/src/builder/prototypes/button/n-button-group.js +3 -3
  10. package/src/config/src/builder/prototypes/button/n-button.js +8 -8
  11. package/src/config/src/builder/prototypes/cascader/n-cascader.js +3 -3
  12. package/src/config/src/builder/prototypes/checkbox/n-checkbox-group.js +3 -3
  13. package/src/config/src/builder/prototypes/checkbox/n-checkbox.js +3 -3
  14. package/src/config/src/builder/prototypes/confirm/n-confirm.js +3 -3
  15. package/src/config/src/builder/prototypes/datepicker/n-datepicker.js +3 -3
  16. package/src/config/src/builder/prototypes/datetimepicker/n-datetimepicker.js +3 -3
  17. package/src/config/src/builder/prototypes/durationpicker/n-durationpicker.js +3 -3
  18. package/src/config/src/builder/prototypes/empty/n-empty.js +3 -3
  19. package/src/config/src/builder/prototypes/form/n-form-group.js +3 -3
  20. package/src/config/src/builder/prototypes/form/n-form-item.js +3 -3
  21. package/src/config/src/builder/prototypes/form/n-form.js +3 -3
  22. package/src/config/src/builder/prototypes/html/div.js +3 -3
  23. package/src/config/src/builder/prototypes/html/nano.js +3 -3
  24. package/src/config/src/builder/prototypes/html/span.js +3 -3
  25. package/src/config/src/builder/prototypes/info/n-info-column.js +3 -3
  26. package/src/config/src/builder/prototypes/info/n-info.js +3 -3
  27. package/src/config/src/builder/prototypes/input/n-input.js +7 -7
  28. package/src/config/src/builder/prototypes/input-number/n-input-number.js +7 -7
  29. package/src/config/src/builder/prototypes/loader/n-loader.js +3 -3
  30. package/src/config/src/builder/prototypes/modal/n-modal.js +3 -3
  31. package/src/config/src/builder/prototypes/popover/n-popover-group.js +3 -3
  32. package/src/config/src/builder/prototypes/popover/n-popover-item.js +3 -3
  33. package/src/config/src/builder/prototypes/popover/n-popover.js +3 -3
  34. package/src/config/src/builder/prototypes/radio/n-radio-group.js +3 -3
  35. package/src/config/src/builder/prototypes/radio/n-radio.js +3 -3
  36. package/src/config/src/builder/prototypes/rating/n-rating.js +3 -3
  37. package/src/config/src/builder/prototypes/select/n-select.js +3 -3
  38. package/src/config/src/builder/prototypes/slider/n-slider.js +3 -3
  39. package/src/config/src/builder/prototypes/switch/n-switch.js +7 -7
  40. package/src/config/src/builder/prototypes/table/n-table-column.js +3 -3
  41. package/src/config/src/builder/prototypes/table/n-table.js +3 -3
  42. package/src/config/src/builder/prototypes/tabs/n-tabs-item.js +3 -3
  43. package/src/config/src/builder/prototypes/tabs/n-tabs.js +3 -3
  44. package/src/config/src/builder/prototypes/tags/n-tags-item.js +3 -3
  45. package/src/config/src/builder/prototypes/tags/n-tags.js +3 -3
  46. package/src/config/src/builder/prototypes/textarea/n-textarea.js +3 -3
  47. package/src/config/src/builder/prototypes/timepicker/n-timepicker.js +3 -3
  48. package/src/config/src/builder/prototypes/transfer/n-transfer.js +3 -3
  49. package/src/draggable/src/draggrid/draggrid.js +2 -2
  50. package/src/draggable/src/draggrid-item/draggrid-item.js +1 -1
  51. package/src/draggable/src/draghandler/draghandler.js +14 -14
  52. package/src/draggable/src/draglist/draglist.js +2 -2
  53. package/src/draggable/src/draglist-item/draglist-item.js +1 -1
  54. package/src/draggable/src/dropzone/dropzone.js +1 -1
  55. package/src/drawer/src/drawer/drawer.js +8 -8
  56. package/src/drawer/src/drawer/drawer.scss +8 -2
  57. package/src/form/src/form-item/form-item.scss +6 -1
  58. package/src/index.js +13 -13
  59. package/src/map/src/map/map.scss +1 -0
  60. package/src/map/src/map-marker/map-marker.js +1 -1
  61. package/src/preview/src/preview/preview.js +2 -2
  62. package/src/preview/src/preview-video/preview-video.js +4 -4
  63. package/src/resizer/src/resizer/resizer.js +6 -4
  64. package/src/root/vars.scss +1 -1
  65. package/src/scrollbar/src/scrollbar/scrollbar.next.js +1 -1
  66. package/src/scrollbar/src/scrollbar/scrollbar.scss +3 -2
  67. package/src/select/src/select/select.js +1 -1
  68. package/src/slider/src/slider/slider.js +5 -0
  69. package/src/slider/src/slider/slider.scss +4 -0
  70. package/src/table/src/table/table.scss +6 -2
  71. package/src/table/src/table-column/table-column.scss +0 -1
  72. package/src/virtualscroller/src/virtualscroller/virtualscroller.beta.js +1 -1
  73. package/themes/macos/button/src/button/button.scss +9 -0
  74. package/themes/macos/radio/src/radio/radio.scss +1 -1
  75. package/themes/macos/root/vars-dark.scss +1 -1
  76. package/themes/macos/root/vars-light.scss +1 -1
  77. package/themes/macos/root/vars.scss +0 -1
  78. package/themes/macos/scrollbar/src/scrollbar/scrollbar.scss +1 -1
  79. package/themes/macos/select/src/select/select.scss +1 -1
  80. package/themes/macos/slider/src/slider/slider.scss +23 -3
  81. package/themes/macos/tags/src/tags-item/tags-item.scss +4 -2
  82. package/types/index.d.ts +44 -0
@@ -1,6 +1,6 @@
1
1
  import { Arr, Obj, Num, Any, Dom, Event, Locale, UUID } from "@kizmann/pico-js";
2
2
 
3
- global.dragMods = [];
3
+ window.dragMods = [];
4
4
 
5
5
  class NDragCounter
6
6
  {
@@ -38,21 +38,21 @@ class NDragCounter
38
38
 
39
39
  update()
40
40
  {
41
- global.dragMods = global.keyMods;
41
+ window.dragMods = window.keyMods;
42
42
 
43
43
  let classList = [
44
44
  'n-draggable__counter'
45
45
  ];
46
46
 
47
- if ( Arr.has(global.dragMods, 18) ) {
47
+ if ( Arr.has(window.dragMods, 18) ) {
48
48
  classList.push('n-modify--alt');
49
49
  }
50
50
 
51
- if ( Arr.has(global.dragMods, 17) ) {
51
+ if ( Arr.has(window.dragMods, 17) ) {
52
52
  classList.push('n-modify--ctrl');
53
53
  }
54
54
 
55
- if ( Arr.has(global.dragMods, 91) ) {
55
+ if ( Arr.has(window.dragMods, 91) ) {
56
56
  classList.push('n-modify--meta');
57
57
  }
58
58
 
@@ -61,7 +61,7 @@ class NDragCounter
61
61
 
62
62
  }
63
63
 
64
- global.DragCounter = new NDragCounter;
64
+ window.DragCounter = new NDragCounter;
65
65
 
66
66
  class NDragIndicator
67
67
  {
@@ -154,8 +154,8 @@ class NDraghandler
154
154
  {
155
155
  this.DragIndicator = new NDragIndicator(frame || this.rootNode.$el);
156
156
 
157
- if ( global.DragCache ) {
158
- this.bindDragstart.call(this, ...global.DragCache);
157
+ if ( window.DragCache ) {
158
+ this.bindDragstart.call(this, ...window.DragCache);
159
159
  }
160
160
 
161
161
  Dom.find(this.rootNode.$el).on('dragenter', (event) => {
@@ -356,7 +356,7 @@ class NDraghandler
356
356
  return Arr.find(this.rootNode.virtuals, { [this.rootNode.uniqueProp]: id });
357
357
  });
358
358
 
359
- global.DragCounter.get(event, cache.length);
359
+ window.DragCounter.get(event, cache.length);
360
360
 
361
361
  Arr.map(cache, (value) => {
362
362
  return { value, item: Obj.get(this.rootNode, value.route) };
@@ -365,7 +365,7 @@ class NDraghandler
365
365
  Event.fire('NDrag:start', this.rootNode.group,
366
366
  this.dropNodes = cache);
367
367
 
368
- global.DragCache = [
368
+ window.DragCache = [
369
369
  this.rootNode.group, this.dropNodes
370
370
  ];
371
371
 
@@ -462,7 +462,7 @@ class NDraghandler
462
462
 
463
463
  Event.fire('NDrag:end');
464
464
 
465
- global.DragCache = null;
465
+ window.DragCache = null;
466
466
  }
467
467
 
468
468
  onDragdropNode(event, node)
@@ -646,15 +646,15 @@ class NDraghandler
646
646
 
647
647
  let eventName = 'move';
648
648
 
649
- if ( Arr.has(global.dragMods, 18) ) {
649
+ if ( Arr.has(window.dragMods, 18) ) {
650
650
  eventName = 'moveAlt';
651
651
  }
652
652
 
653
- if ( Arr.has(global.dragMods, 17) ) {
653
+ if ( Arr.has(window.dragMods, 17) ) {
654
654
  eventName = 'moveCtrl';
655
655
  }
656
656
 
657
- if ( Arr.has(global.dragMods, 91) ) {
657
+ if ( Arr.has(window.dragMods, 91) ) {
658
658
  eventName = 'moveMeta';
659
659
  }
660
660
 
@@ -1,7 +1,7 @@
1
1
  import { UUID, Num, Arr, Obj, Dom, Any, Event, Locale } from "@kizmann/pico-js";
2
2
  import NDraghandler from "../draghandler/draghandler";
3
3
 
4
- global.DEBUG_NDLIST = false;
4
+ window.DEBUG_NDLIST = false;
5
5
 
6
6
  export default {
7
7
 
@@ -445,7 +445,7 @@ export default {
445
445
  {
446
446
  this.virtuals = this.drag.reduce(this.items);
447
447
 
448
- if ( global.DEBUG_NDLIST ) {
448
+ if ( window.DEBUG_NDLIST ) {
449
449
  console.log('Total virtual items mounted: ' + this.virtuals.length);
450
450
  }
451
451
  },
@@ -157,7 +157,7 @@ export default {
157
157
 
158
158
  this.NDraggable.setCurrent(this);
159
159
 
160
- if ( Arr.has(global.keyMods, 91) ) {
160
+ if ( Arr.has(window.keyMods, 91) ) {
161
161
  this.NDraggable.selectItem(this);
162
162
  }
163
163
 
@@ -1,7 +1,7 @@
1
1
  import { UUID, Num, Arr, Obj, Dom, Any, Event, Locale } from "@kizmann/pico-js";
2
2
  import NDraghandler from "../draghandler/draghandler";
3
3
 
4
- global.DEBUG_NDLIST = false;
4
+ window.DEBUG_NDLIST = false;
5
5
 
6
6
  export default {
7
7
 
@@ -192,7 +192,7 @@ export default {
192
192
  this.$emit('update:modelValue', true, source);
193
193
  },
194
194
 
195
- closeModal(force = false, source = null)
195
+ closeDrawer(force = false, source = null)
196
196
  {
197
197
  if ( ! this.tempValue ) {
198
198
  return;
@@ -266,7 +266,7 @@ export default {
266
266
  }
267
267
 
268
268
  if ( ! result ) {
269
- return this.closeModal(false, 'escape');
269
+ return this.closeDrawer(false, 'escape');
270
270
  }
271
271
 
272
272
  if ( this.listen ) {
@@ -293,7 +293,7 @@ export default {
293
293
  return;
294
294
  }
295
295
 
296
- this.closeModal(false, 'escape');
296
+ this.closeDrawer(false, 'escape');
297
297
  },
298
298
 
299
299
  },
@@ -305,7 +305,7 @@ export default {
305
305
  }
306
306
 
307
307
  let props = {
308
- onClick: () => this.closeModal(false, 'escape')
308
+ onClick: () => this.closeDrawer(false, 'escape')
309
309
  };
310
310
 
311
311
  return (
@@ -323,7 +323,7 @@ export default {
323
323
 
324
324
  return (
325
325
  <div class="n-drawer__header">
326
- { [this.$slots.header && this.$slots.header({ closeModal: this.closeModal }) || this.title, this.ctor('renderClose')()] }
326
+ { [this.$slots.header && this.$slots.header({ closeDrawer: this.closeDrawer }) || this.title, this.ctor('renderClose')()] }
327
327
  </div>
328
328
  );
329
329
  },
@@ -336,7 +336,7 @@ export default {
336
336
 
337
337
  return (
338
338
  <div class="n-drawer__footer">
339
- { this.$slots.footer({ closeModal: this.closeModal }) }
339
+ { this.$slots.footer({ closeDrawer: this.closeDrawer }) }
340
340
  </div>
341
341
  );
342
342
  },
@@ -345,12 +345,12 @@ export default {
345
345
  {
346
346
  let bodyHtml = (
347
347
  <NScrollbar ref="scrollbar" relative={true} wrapClass="n-drawer__wrap">
348
- { this.$slots.default && this.$slots.default({ closeModal: this.closeModal }) }
348
+ { this.$slots.default && this.$slots.default({ closeDrawer: this.closeDrawer }) }
349
349
  </NScrollbar>
350
350
  );
351
351
 
352
352
  if ( this.$slots.body ) {
353
- bodyHtml = this.$slots.body({ closeModal: this.closeModal });
353
+ bodyHtml = this.$slots.body({ closeDrawer: this.closeDrawer });
354
354
  }
355
355
 
356
356
  return (
@@ -39,8 +39,7 @@
39
39
  flex-direction: column;
40
40
  min-width: 300px;
41
41
  max-width: 100%;
42
- min-height: 0;
43
- max-height: 100%;
42
+ height: 100vh;
44
43
  margin: auto;
45
44
  transform: translateX(0);
46
45
  transition: opacity 0.2s 0.1s ease-out, transform 0.2s 0.1s ease-out;
@@ -48,9 +47,16 @@
48
47
 
49
48
  .n-drawer:not(.n-ready) .n-drawer__frame {
50
49
  opacity: 0;
50
+ }
51
+
52
+ .n-drawer--right:not(.n-ready) .n-drawer__frame {
51
53
  transform: translateX(20px);
52
54
  }
53
55
 
56
+ .n-drawer--left:not(.n-ready) .n-drawer__frame {
57
+ transform: translateX(-20px);
58
+ }
59
+
54
60
  .n-drawer--right > .n-drawer__frame {
55
61
  margin: 0 0 0 auto;
56
62
  }
@@ -66,7 +66,12 @@
66
66
 
67
67
  .n-form-item--#{$suffix} .n-form-item__label {
68
68
  font-size: $-form-item-font;
69
- margin-bottom: $-form-item-size * $-form-item-ratio * 0.5;
69
+ }
70
+
71
+ .n-form-item--#{$suffix} .n-form-item__label,
72
+ .n-form-item--#{$suffix} .n-form-item__input {
73
+ margin-top: $-form-item-size * $-form-item-ratio * 0.25;
74
+ margin-bottom: $-form-item-size * $-form-item-ratio * 0.25;
70
75
  }
71
76
 
72
77
  .n-form-item--#{$suffix} .n-form-item__error {
package/src/index.js CHANGED
@@ -31,17 +31,17 @@ export const Settings = {
31
31
  notifyPosition: 'bottom-start'
32
32
  };
33
33
 
34
- export function Install(App, Icons = {}, Styles = {})
34
+ export function Install(App, Icons = {})
35
35
  {
36
36
  /**
37
- * @const global.pi
37
+ * @const window.pi
38
38
  */
39
39
 
40
- if ( typeof global.pi === 'undefined' ) {
40
+ if ( typeof window.pi === 'undefined' ) {
41
41
  return console.error('pico-js is not available.');
42
42
  }
43
43
 
44
- Obj.each(global.pi, (value, key) => {
44
+ Obj.each(window.pi, (value, key) => {
45
45
  App.config.globalProperties[key] = value;
46
46
  });
47
47
 
@@ -52,8 +52,8 @@ export function Install(App, Icons = {}, Styles = {})
52
52
  App.config.globalProperties.trans = Locale.trans;
53
53
  App.config.globalProperties.choice = Locale.choice;
54
54
 
55
- global.nano.Icons = Obj.assign(Icons, global.nano.Icons);
56
- global.nano.Settings = Obj.assign(Settings, global.nano.Settings);
55
+ window.nano.Icons = Obj.assign(Icons, window.nano.Icons);
56
+ window.nano.Settings = Obj.assign(Settings, window.nano.Settings);
57
57
 
58
58
  require('./alert/index').default(App);
59
59
  require('./notification/index').default(App);
@@ -103,26 +103,26 @@ export const Nano = {
103
103
  Icons: Icons, Settings: Settings, Install: Install
104
104
  };
105
105
 
106
- global.keyMods = [];
106
+ window.keyMods = [];
107
107
 
108
108
  Dom.find(document).on('keydown', (event) => {
109
- Arr.add(global.keyMods, event.which);
109
+ Arr.add(window.keyMods, event.which);
110
110
  });
111
111
 
112
112
  Dom.find(document).on('keyup', (event) => {
113
- Arr.remove(global.keyMods, event.which);
113
+ Arr.remove(window.keyMods, event.which);
114
114
  });
115
115
 
116
116
  Dom.find(document).on('dragstart', (event) => {
117
- Arr.add(global.keyMods, event.which);
117
+ Arr.add(window.keyMods, event.which);
118
118
  });
119
119
 
120
120
  Dom.find(document).on('dragend', (event) => {
121
- global.keyMods = [];
121
+ window.keyMods = [];
122
122
  });
123
123
 
124
- if ( typeof global.nano === 'undefined' ) {
125
- global.nano = Nano;
124
+ if ( typeof window.nano === 'undefined' ) {
125
+ window.nano = Nano;
126
126
  }
127
127
 
128
128
  export default Nano;
@@ -2,6 +2,7 @@
2
2
 
3
3
  .n-map {
4
4
  position: relative;
5
+ color: $color-black !important;
5
6
  }
6
7
 
7
8
  .n-map:before {
@@ -137,7 +137,7 @@ export default {
137
137
  {
138
138
  return (
139
139
  <div style="display: none;">
140
- { this.$slots.default }
140
+ { this.$slots.default && this.$slots.default() }
141
141
  </div>
142
142
  );
143
143
  }
@@ -129,11 +129,11 @@ export default {
129
129
  if ( Arr.has(exts, extension) ) fallback = key;
130
130
  });
131
131
 
132
- if ( global.resolveVimeo(file) ) {
132
+ if ( window.resolveVimeo(file) ) {
133
133
  fallback = 'video';
134
134
  }
135
135
 
136
- if ( global.resolveYoutube(file) ) {
136
+ if ( window.resolveYoutube(file) ) {
137
137
  fallback = 'video';
138
138
  }
139
139
 
@@ -1,6 +1,6 @@
1
1
  import { Obj, Arr, Str, Any, Dom } from "@kizmann/pico-js";
2
2
 
3
- global.resolveYoutube = function(url, fallback = null) {
3
+ window.resolveYoutube = function(url, fallback = null) {
4
4
 
5
5
  if ( ! Any.isString(url) ) {
6
6
  return fallback;
@@ -33,7 +33,7 @@ global.resolveYoutube = function(url, fallback = null) {
33
33
  return fallback;
34
34
  }
35
35
 
36
- global.resolveVimeo = function(url, fallback = null) {
36
+ window.resolveVimeo = function(url, fallback = null) {
37
37
 
38
38
  if ( ! Any.isString(url) ) {
39
39
  return fallback;
@@ -117,7 +117,7 @@ export default {
117
117
 
118
118
  resolveYoutube()
119
119
  {
120
- let youtube = global.resolveYoutube(this.src);
120
+ let youtube = window.resolveYoutube(this.src);
121
121
 
122
122
  if ( ! youtube ) {
123
123
  return false;
@@ -132,7 +132,7 @@ export default {
132
132
 
133
133
  resolveVimeo()
134
134
  {
135
- let vimeo = global.resolveVimeo(this.src);
135
+ let vimeo = window.resolveVimeo(this.src);
136
136
 
137
137
  if ( ! vimeo ) {
138
138
  return false;
@@ -133,11 +133,13 @@ export default {
133
133
  this.bindSizechange();
134
134
  }
135
135
 
136
- Event.bind('NResizer:move',
137
- this.forceWidth, this._.uid);
136
+ Event.bind('NResizer:move', (...args) => {
137
+ this.forceWidth(...args)
138
+ }, this._.uid);
138
139
 
139
- Dom.find(window).on('resize',
140
- Any.debounce(this.onResize, 500), this._.uid);
140
+ Dom.find(window).on('resize', Any.debounce((...args) => {
141
+ this.onResize(...args)
142
+ }, 500), this._.uid);
141
143
  },
142
144
 
143
145
  updated()
@@ -34,7 +34,7 @@ $color-warning: #FFBF3F !default;
34
34
  $color-danger: #F9536E !default;
35
35
  $color-info: #4BD6F9 !default;
36
36
 
37
- $color-shadow: color.mix($color-black, $color-primary, 80%) !default;
37
+ $color-shadow: #000 !default;
38
38
 
39
39
 
40
40
  $color-white-light: $color-white !default;
@@ -650,7 +650,7 @@ export default {
650
650
  }
651
651
 
652
652
  let width = $inner.actual(() => {
653
- return $inner.scrollWidth();
653
+ return $inner.scrollWidth() - 1;
654
654
  });
655
655
 
656
656
  if ( width !== this.passedWidth ) {
@@ -13,6 +13,7 @@
13
13
  overflow: scroll;
14
14
  -webkit-overflow-scrolling: touch;
15
15
  }
16
+
16
17
  .n-scrollbar-test > div {
17
18
  width: 16px;
18
19
  height: 16px;
@@ -70,14 +71,14 @@
70
71
  .n-scrollbar-v {
71
72
  top: 0;
72
73
  right: 0;
73
- width: 10px;
74
+ width: 12px;
74
75
  }
75
76
 
76
77
 
77
78
  .n-scrollbar-h {
78
79
  left: 0;
79
80
  bottom: 0;
80
- height: 10px;
81
+ height: 12px;
81
82
  }
82
83
 
83
84
  .n-scrollbar--native:not(.n-scrollbar--forced) > .n-scrollbar-v,
@@ -365,7 +365,7 @@ export default {
365
365
  let searchRegex = new RegExp(this.search, 'i');
366
366
 
367
367
  let searched = Arr.filter(this.elements, (option) => {
368
- return option.label.match(searchRegex);
368
+ return Any.isString(option.label) && option.label.match(searchRegex);
369
369
  });
370
370
 
371
371
  this.searched = searched;
@@ -239,6 +239,10 @@ export default {
239
239
 
240
240
  onMousedown(event)
241
241
  {
242
+ if ( this.disabled ) {
243
+ return;
244
+ }
245
+
242
246
  if ( ! Arr.has([0, 1], event.which) ) {
243
247
  return;
244
248
  }
@@ -357,6 +361,7 @@ export default {
357
361
  {
358
362
  let classList = [
359
363
  'n-slider',
364
+ 'n-slider--' + this.type,
360
365
  'n-slider--' + this.size
361
366
  ];
362
367
 
@@ -39,6 +39,10 @@
39
39
  border-radius: 500px;
40
40
  }
41
41
 
42
+ .n-disabled .n-slider__handle {
43
+ cursor: not-allowed;
44
+ }
45
+
42
46
  .n-slider__handle span {
43
47
  pointer-events: none;
44
48
  position: absolute;
@@ -50,8 +50,12 @@
50
50
  }
51
51
 
52
52
  .n-table .n-table__wrap {
53
- margin-right: -1px;
54
- margin-bottom: -1px;
53
+ //margin-right: -1px;
54
+ //margin-bottom: -1px;
55
+ }
56
+
57
+ .n-table__header {
58
+ margin-left: -1px;
55
59
  }
56
60
 
57
61
  .n-table .n-table__inner {
@@ -22,7 +22,6 @@
22
22
  // Column
23
23
 
24
24
  .n-table__header .n-table-column {
25
- margin-left: -1px;
26
25
  border-left: 1px solid transparent;
27
26
  border-right: 1px solid transparent;
28
27
  }
@@ -1,6 +1,6 @@
1
1
  import { Arr, Obj, Any, Dom } from "@kizmann/pico-js";
2
2
 
3
- global.DEBUG_NVSCROLL = false;
3
+ window.DEBUG_NVSCROLL = false;
4
4
 
5
5
  export default {
6
6
 
@@ -5,6 +5,15 @@
5
5
  opacity: 0.7;
6
6
  }
7
7
 
8
+ .n-button--default:not(.n-button--link) {
9
+ color: $color-foreground;
10
+ background: rgba($color-foreground, 0.05);
11
+ }
12
+
13
+ .n-button--default:not(.n-button--link):hover {
14
+ background: rgba($color-foreground, 0.15);
15
+ }
16
+
8
17
  @each $color, $values in $colors {
9
18
 
10
19
  $-color-base: map.get($values, 'base');
@@ -12,7 +12,7 @@
12
12
  }
13
13
 
14
14
  .n-radio__radio span {
15
- background: $color-black;
15
+ background: $color-foreground;
16
16
  }
17
17
 
18
18
  @each $color, $values in $colors {
@@ -38,7 +38,7 @@ $color-warning: #FFBF3F !default;
38
38
  $color-danger: #F9536E !default;
39
39
  $color-info: #4BD6F9 !default;
40
40
 
41
- $color-shadow: color.mix($color-black, $color-primary, 80%) !default;
41
+ $color-shadow: #000 !default;
42
42
 
43
43
 
44
44
  $color-white-light: $color-white !default;
@@ -38,7 +38,7 @@ $color-warning: #FFBF3F !default;
38
38
  $color-danger: #F9536E !default;
39
39
  $color-info: #4BD6F9 !default;
40
40
 
41
- $color-shadow: color.mix($color-black, $color-primary, 80%) !default;
41
+ $color-shadow: #000 !default;
42
42
 
43
43
 
44
44
  $color-white-light: $color-white !default;
@@ -230,5 +230,4 @@ $colors-tags: (
230
230
  '16': color.mix($color-secondary, $color-warning, 65%),
231
231
  '17': color.mix($color-danger, $color-warning, 65%),
232
232
  '18': color.mix($color-success, $color-warning, 65%),
233
- '19': color.mix($color-warning, $color-warning, 65%),
234
233
  ) !default;
@@ -2,5 +2,5 @@
2
2
 
3
3
  .n-scrollbar-v:before,
4
4
  .n-scrollbar-h:before {
5
- background: rgba($color-black, 0.3);
5
+ background: rgba($color-foreground, 0.4);
6
6
  }
@@ -42,7 +42,7 @@
42
42
  }
43
43
 
44
44
  .n-select--#{$color} .n-select__item {
45
- color: $color-foreground;
45
+ color: $color-white;
46
46
  background: $-color-base;
47
47
  }
48
48
 
@@ -1,21 +1,41 @@
1
+ @use "sass:map";
1
2
  @import "../../../root/vars";
2
3
 
3
4
  .n-slider__bar {
4
5
  background: $color-gray-10;
5
6
  }
6
7
 
7
- .n-slider__range {
8
- background: $color-primary;
8
+ .n-slider.n-disabled .n-slider__range {
9
+ background: $color-gray-50;
9
10
  }
10
11
 
11
12
  .n-slider__handle {
12
13
  background: $color-white;
13
- border: 6px solid $color-primary;
14
14
  box-shadow: 0 0 4px rgba($color-shadow, 0.15);
15
15
  }
16
16
 
17
+ .n-slider.n-disabled .n-slider__handle {
18
+ border: 6px solid $color-gray-50;
19
+ }
20
+
17
21
  .n-slider__handle span {
18
22
  color: $color-white;
19
23
  background: rgba($color-black, 0.8);
20
24
  }
21
25
 
26
+ @each $color, $values in $colors {
27
+
28
+ $-color-base: map.get($values, 'base');
29
+ $-color-light: map.get($values, 'light');
30
+ $-color-dark: map.get($values, 'dark');
31
+
32
+ .n-slider--#{$color}:not(.n-disabled) .n-slider__range {
33
+ background: $-color-base;
34
+ }
35
+
36
+ .n-slider--#{$color}:not(.n-disabled) .n-slider__handle {
37
+ border: 6px solid $-color-base;
38
+ }
39
+
40
+ }
41
+
@@ -9,7 +9,8 @@
9
9
  $-color-dark: map.get($values, 'dark');
10
10
 
11
11
  .n-tags-item--color-#{$color} {
12
- color: color.mix($-color-dark, $color-black, 70%);
12
+ color: color.mix($-color-base, $color-foreground, 35%);
13
+ //color: color.mix($-color-dark, $color-black, 70%);
13
14
  background: rgba($-color-base, 0.25);
14
15
  }
15
16
  .n-tags-item--color-#{$color} i {
@@ -21,7 +22,8 @@
21
22
  @each $-tags-index, $-tags-color in $colors-tags {
22
23
 
23
24
  .n-tags-item--color-#{$-tags-index} {
24
- background: rgba($-tags-color, 0.15);
25
+ color: color.mix($-tags-color, $color-foreground, 35%);
26
+ background: rgba($-tags-color, 0.25);
25
27
  }
26
28
  .n-tags-item--color-#{$-tags-index} i {
27
29
  color: rgba($-tags-color, 0.75);