fu-kit 0.0.1-beta.2 → 0.0.1-beta.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 (43) hide show
  1. package/README.md +47 -19
  2. package/dist/favicon.ico +0 -0
  3. package/dist/img/splash-screen.8bd73950.jpg +0 -0
  4. package/dist/index.html +1 -0
  5. package/dist/js/app.53980592.js +2 -0
  6. package/dist/js/app.53980592.js.map +1 -0
  7. package/dist/js/chunk-vendors.fe8aa7a9.js +8 -0
  8. package/dist/js/chunk-vendors.fe8aa7a9.js.map +1 -0
  9. package/package.json +36 -36
  10. package/reset.scss +60 -0
  11. package/root.scss +130 -0
  12. package/scss.scss +5 -3
  13. package/src/App.vue +122 -30
  14. package/src/Home.vue +112 -0
  15. package/src/assets/splash-screen.jpg +0 -0
  16. package/src/components/FuButton.vue +104 -27
  17. package/src/components/FuButtonLink.vue +79 -0
  18. package/src/components/FuCodeView.vue +58 -0
  19. package/src/components/FuCopy.vue +103 -0
  20. package/src/components/FuProgressRadial.vue +117 -0
  21. package/src/components/FuSelect.vue +84 -55
  22. package/src/components/FuSelectX.vue +317 -0
  23. package/src/components/FuSidebar.vue +90 -0
  24. package/src/components/FuText.vue +98 -60
  25. package/src/components/FuTextarea.vue +118 -0
  26. package/src/docs/DocButton.vue +67 -0
  27. package/src/docs/DocSandbox.vue +71 -0
  28. package/src/docs/DocSelect.vue +55 -0
  29. package/src/docs/DocSidebar.vue +93 -0
  30. package/src/docs/DocText.vue +59 -0
  31. package/src/docs/DocTextarea.vue +64 -0
  32. package/src/docs/DocTypo.vue +98 -0
  33. package/src/main.js +9 -5
  34. package/src/router.js +29 -17
  35. package/src/scss/colors.scss +16 -6
  36. package/src/scss/typo.scss +5 -14
  37. package/src/scss/ui.scss +22 -38
  38. package/src/scss/utils.scss +36 -0
  39. package/src/styles.scss +15 -0
  40. package/src/utils/media.js +1 -0
  41. package/src/utils/woosh.js +2 -0
  42. package/vue.config.js +1 -4
  43. package/src/views/Home.vue +0 -24
package/src/scss/ui.scss CHANGED
@@ -1,62 +1,46 @@
1
1
  @mixin scrollbar-awesome($transparent: false) {
2
2
  &::-webkit-scrollbar-track {
3
- background-color: transparent;
3
+ background-color: var(--ui-pal-bg);
4
4
  }
5
5
 
6
6
  &::-webkit-scrollbar {
7
- @if ($transparent) {
8
- background-color: transparent;
9
- }
10
-
11
- background-color: pal($pal-block);
12
- width: 2px;
13
- height: 2px;
7
+ width: var(--ui-lt-scroll-width);
8
+ height: var(--ui-lt-scroll-width);
9
+ border-radius: var(--ui-lt-scroll-width);
10
+ background-color: var(--ui-pal-bg);
14
11
  }
15
12
 
16
13
  &::-webkit-scrollbar-thumb {
17
- background-color: pal($pal-prime);
18
- }
19
- }
20
-
21
- @mixin scrollbar-awesome-bold() {
22
- &::-webkit-scrollbar-track {
14
+ border: 1px solid var(--ui-pal-bg);
15
+ border-radius: var(--ui-lt-scroll-width);
23
16
  background-color: transparent;
24
17
  }
25
18
 
26
- &::-webkit-scrollbar {
27
- width: 0.5em;
28
- height: 0.5em;
29
- border-radius: 0.25em;
30
- background: transparent;
31
- }
32
-
33
- &::-webkit-scrollbar-thumb {
34
- background-color: pal($pal-prime);
35
- border: 1px solid transparent;
36
- border-radius: 0.25em;
37
- }
38
-
39
- &:hover::-webkit-scrollbar {
40
- background-color: pal($pal-block);
19
+ ::-webkit-scrollbar-corner {
20
+ background-color: transparent !important;
21
+ border: 0 none !important;
22
+ box-shadow: none !important;
41
23
  }
42
24
 
43
- &:hover::-webkit-scrollbar-thumb {
44
- background-color: pal($pal-prime);
25
+ &:focus::-webkit-scrollbar-thumb,
26
+ &:hover::-webkit-scrollbar-thumb, {
27
+ background-color: var(--ui-pal);
45
28
  }
46
29
  }
47
30
 
48
31
  @mixin scrollbar-invisible() {
49
32
  &::-webkit-scrollbar {
50
- width: 0; // Remove scrollbar space
51
- background: transparent; // Optional: just make scrollbar invisible
52
- display: none; // Safari and Chrome
33
+ width: 0;
34
+ background-color: transparent;
35
+ display: none;
53
36
  }
54
37
 
55
- // Optional: show position indicator in red
56
38
  &::-webkit-scrollbar-thumb {
57
- background: transparent;
39
+ background-color: transparent;
58
40
  }
59
41
 
60
- -ms-overflow-style: none; // IE 10+
61
- scrollbar-width: none; // Firefox
42
+ -ms-overflow-style: none;
43
+ scrollbar-width: none;
62
44
  }
45
+
46
+
@@ -0,0 +1,36 @@
1
+ @use 'sass:color';
2
+
3
+ @function pow($x, $n) {
4
+ $ret: 1;
5
+ @if $n >= 0 {
6
+ @for $i from 1 through $n {
7
+ $ret: $ret * $x;
8
+ }
9
+ } @else {
10
+ @for $i from $n to 0 {
11
+ $ret: $ret / $x;
12
+ }
13
+ }
14
+ @return $ret;
15
+ }
16
+
17
+ @function to-fixed($float, $digits: 2) {
18
+ $pow: pow(10, $digits);
19
+ @return round($float * $pow) / $pow;
20
+ }
21
+
22
+ @function hex2rgb($hex) {
23
+ @return color.red($hex), color.green($hex), color.blue($hex)
24
+ }
25
+
26
+ @function hex2hsl($hex) {
27
+ @return to-fixed(color.hue($hex)), to-fixed(color.saturation($hex)), to-fixed(color.lightness($hex))
28
+ }
29
+
30
+ @function pal-hsl($color-code, $opacity:1) {
31
+ @if ($opacity < 1) {
32
+ @return hsla(var(--#{$color-code}), #{$opacity})
33
+ } @else {
34
+ @return hsl(var(--#{$color-code}))
35
+ }
36
+ }
@@ -0,0 +1,15 @@
1
+ :root {
2
+ --lt-header-height: 64px;
3
+ --lt-footer-height: 64px;
4
+ --lt-horizontal-padding: 16px;
5
+ }
6
+
7
+ body {
8
+ font-family: var(--typo-font-text);
9
+ color: var(--pal-text);
10
+ background: var(--pal-bg);
11
+ }
12
+
13
+ #app {
14
+ @include scrollbar-awesome();
15
+ }
@@ -0,0 +1 @@
1
+ // make a Signal-based memorable scroll listener here
@@ -0,0 +1,2 @@
1
+ // framework startup
2
+ // consider getting rid of SCSS mixins and overrider root vars with JS.
package/vue.config.js CHANGED
@@ -5,10 +5,7 @@ module.exports = {
5
5
  sass: {
6
6
  sourceMap: true,
7
7
  prependData: `
8
- @import '@/scss/colors';
9
- @import '@/scss/media';
10
- @import '@/scss/typo';
11
- @import '@/scss/ui';
8
+ @import './scss';
12
9
  `,
13
10
  },
14
11
  },
@@ -1,24 +0,0 @@
1
- <template>
2
- <div class="home">
3
- <fu-button>Btn!</fu-button>
4
- <fu-text v-model="test" />
5
- </div>
6
- </template>
7
-
8
- <script>
9
- import { ref } from 'vue'
10
-
11
- import FuButton from '@/components/FuButton.vue'
12
- import FuText from '@/components/FuText.vue'
13
-
14
- export default {
15
- name: 'Home',
16
- components: {
17
- FuText,
18
- FuButton,
19
- },
20
- setup () {
21
- const test = ref('')
22
- },
23
- }
24
- </script>