blue-react 6.9.2

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 (74) hide show
  1. package/README.md +36 -0
  2. package/dist/ActionMenu.js +122 -0
  3. package/dist/ActionMenuItem.js +110 -0
  4. package/dist/ActionMenuSwitch.js +98 -0
  5. package/dist/Actions.js +178 -0
  6. package/dist/Body.js +89 -0
  7. package/dist/Caret.js +71 -0
  8. package/dist/DocumentView.js +138 -0
  9. package/dist/FluentBtn.js +100 -0
  10. package/dist/FormSwitch.js +75 -0
  11. package/dist/Grid.js +341 -0
  12. package/dist/Header.js +66 -0
  13. package/dist/HeaderActions.js +75 -0
  14. package/dist/HeaderTitle.js +137 -0
  15. package/dist/Intro.js +108 -0
  16. package/dist/MenuItem.js +204 -0
  17. package/dist/Page.js +64 -0
  18. package/dist/Search.js +203 -0
  19. package/dist/SidebarMenu.js +153 -0
  20. package/dist/Switch.js +89 -0
  21. package/dist/SwitchMenuItem.js +65 -0
  22. package/dist/Utilities.js +173 -0
  23. package/dist/style/_actions.scss +109 -0
  24. package/dist/style/_actions_deprecated.scss +58 -0
  25. package/dist/style/_bootstrap-mixins_overwritten.scss +54 -0
  26. package/dist/style/_bootstrap-optimizations.scss +28 -0
  27. package/dist/style/_bootstrap.scss +45 -0
  28. package/dist/style/_caret.scss +50 -0
  29. package/dist/style/_document-view.scss +5 -0
  30. package/dist/style/_fluent.scss +38 -0
  31. package/dist/style/_form-switch.scss +74 -0
  32. package/dist/style/_general.scss +154 -0
  33. package/dist/style/_grid.scss +316 -0
  34. package/dist/style/_keyframes.scss +68 -0
  35. package/dist/style/_mixins.scss +7 -0
  36. package/dist/style/_ripple.scss +26 -0
  37. package/dist/style/_router.scss +18 -0
  38. package/dist/style/_search.scss +48 -0
  39. package/dist/style/_status.scss +138 -0
  40. package/dist/style/_switch.scss +22 -0
  41. package/dist/style/_variables.scss +91 -0
  42. package/dist/style/mixins/_actions.scss +59 -0
  43. package/dist/style/mixins/_actions_deprecated.scss +54 -0
  44. package/dist/style/mixins/_custom-property.scss +10 -0
  45. package/dist/style/mixins/_misc.scss +28 -0
  46. package/dist/style/mixins/_scroll-shadow.scss +10 -0
  47. package/dist/style/mixins/_sidebar.scss +114 -0
  48. package/dist/style/mixins/_switch.scss +77 -0
  49. package/dist/style.css +8518 -0
  50. package/dist/style.scss +36 -0
  51. package/dist/types/ActionMenu.d.ts +15 -0
  52. package/dist/types/ActionMenuItem.d.ts +33 -0
  53. package/dist/types/ActionMenuSwitch.d.ts +19 -0
  54. package/dist/types/Actions.d.ts +35 -0
  55. package/dist/types/Body.d.ts +24 -0
  56. package/dist/types/Caret.d.ts +21 -0
  57. package/dist/types/DocumentView.d.ts +30 -0
  58. package/dist/types/FluentBtn.d.ts +29 -0
  59. package/dist/types/Grid.d.ts +49 -0
  60. package/dist/types/Header.d.ts +6 -0
  61. package/dist/types/HeaderActions.d.ts +16 -0
  62. package/dist/types/HeaderTitle.d.ts +25 -0
  63. package/dist/types/Intro.d.ts +29 -0
  64. package/dist/types/MenuItem.d.ts +54 -0
  65. package/dist/types/Page.d.ts +8 -0
  66. package/dist/types/Search.d.ts +30 -0
  67. package/dist/types/SidebarMenu.d.ts +39 -0
  68. package/dist/types/Switch.d.ts +26 -0
  69. package/dist/types/SwitchMenuItem.d.ts +15 -0
  70. package/dist/types/Utilities.d.ts +55 -0
  71. package/dist/types/shared.d.ts +1 -0
  72. package/index.d.ts +62 -0
  73. package/index.js +20 -0
  74. package/package.json +56 -0
@@ -0,0 +1,91 @@
1
+ $primary-color: #007bff !default;
2
+
3
+ /* Bootstrap */
4
+ $primary: $primary-color !default;
5
+ $success: #4BD763 !default;
6
+ $info: rgb(62, 158, 187) !default;
7
+ $warning: #F0AD4E !default;
8
+ $danger: #D9534F !default;
9
+ /* Bootstrap ENDE */
10
+
11
+ // Main color theme. E.g. used for background for body and sidebar.
12
+ $theme: $primary !default;
13
+
14
+ $theme-colors: () !default;
15
+ // stylelint-disable-next-line scss/dollar-variable-default
16
+ $theme-colors: map-merge(
17
+ (
18
+ "theme": $theme
19
+ ),
20
+ $theme-colors
21
+ );
22
+
23
+ // Opacity of the light from a Fluent button when hovering.
24
+ $fluent-halo-opacity: .15 !default;
25
+
26
+ // Color of lightning on a Fluent button element.
27
+ $fluent-halo-color: white !default;
28
+
29
+ // Alpha value (RGBA) e.g. for header background.
30
+ $shimmering: .7 !default;
31
+
32
+ // Thumb color of scrollbar
33
+ $scrollbar-thumb-color: white !default;
34
+
35
+ // Default size for many components, like sidebar menu items.
36
+ $normal-size: 48px !default;
37
+
38
+ // Height of actions menu when it is expanded, like on mobile devices.
39
+ $actions-height: 120px !default;
40
+
41
+ // Background color of menu toggle button.
42
+ $bla-button-bg-normal: rgba(0,0,0,.1) !default;
43
+
44
+ // Background color of menu toggle button on hover state.
45
+ $bla-button-bg-hover: rgba(white,.07) !default;
46
+
47
+ // Font size for sidebar menu items.
48
+ $bla-btn-font-size: 1.3em !default;
49
+
50
+ // Font size for app title on the header.
51
+ $bla-header-logo-font-size: 24px !default;
52
+
53
+ // Padding for action menu items.
54
+ $bla-header-nav-padding: 12px !default;
55
+
56
+ // Width of the sidebar.
57
+ $bla-sidebar-width: 265px !default;
58
+
59
+ // Background of sidebar.
60
+ $sidebar-bg: $theme !default;
61
+
62
+ // Background of sidebar when it's opened (on mobile devices).
63
+ $sidebar-open-bg: darken($sidebar-bg, 30%) !default;
64
+
65
+ // Background of sidebar menu dropdown menus
66
+ $sidebar-deep-bg: darken($sidebar-bg, 4%) !default;
67
+
68
+ // Text color of sidebar.
69
+ $sidebar-color: white !default;
70
+
71
+ // Color of indicator for active sidebar item.
72
+ $sidebar-indicator-color: $sidebar-color !default;
73
+
74
+ // Background color, when hovering sidebar menu item.
75
+ $sidebar-control-bg-hover: $bla-button-bg-hover !default;
76
+
77
+ // Background of search control in sidebar.
78
+ $sidebar-search-bg: $input-bg !default;
79
+
80
+ // Text color of header elements
81
+ $header-color: #fff !default;
82
+
83
+ // Background color of Header
84
+ $header-bg: $theme !default;
85
+
86
+ // Background color, when hovering action menu item.
87
+ $actions-control-bg-hover: $bla-button-bg-hover !default;
88
+
89
+ :root {
90
+ --theme: #{$theme};
91
+ }
@@ -0,0 +1,59 @@
1
+ @mixin actions-break($width) {
2
+ @media screen and (max-width: $width) {
3
+ // max-height: $blue-actions-height;
4
+ bottom: 0;
5
+ left: .5rem;
6
+ border-top-left-radius: $blue-actions-indicator-height / 2;
7
+ border-top-right-radius: $blue-actions-indicator-height / 2;
8
+ box-shadow: $box-shadow;
9
+ background-color: $header-bg;
10
+
11
+ .blue-actions-controls {
12
+ padding: 1rem;
13
+ margin-top: -$spacer / 2;
14
+ margin-bottom: -$spacer / 2;
15
+
16
+ & > * {
17
+ margin-top: $spacer / 2;
18
+ margin-bottom: $spacer / 2;
19
+ }
20
+ }
21
+
22
+ &.closed {
23
+ @include header-bg();
24
+
25
+ .blue-actions-controls {
26
+ display: none;
27
+ }
28
+ }
29
+ }
30
+
31
+ @media screen and (min-width: $width) {
32
+ top: 0;
33
+
34
+ .blue-actions-controls {
35
+ background: transparent;
36
+ display: flex;
37
+ align-items: center;
38
+ margin-left: -$spacer / 2;
39
+ margin-right: -$spacer / 2;
40
+ padding-right: $spacer;
41
+
42
+ & > * {
43
+ margin-left: $spacer / 2;
44
+ margin-right: $spacer / 2;
45
+ }
46
+ }
47
+
48
+ .blue-app-sidebar-btn {
49
+ margin-top: 0;
50
+ margin-bottom: 0;
51
+ }
52
+ }
53
+ }
54
+
55
+ @mixin has-actions($width) {
56
+ @media screen and (max-width: $width) {
57
+ padding-bottom: calc(84px + 1rem);
58
+ }
59
+ }
@@ -0,0 +1,54 @@
1
+ @mixin actions($breakpoint) {
2
+ @media screen and (max-width: $breakpoint + 1px) {
3
+ &.open {
4
+ --action-link-bg-color: #{darken($theme, 30%)};
5
+
6
+ display: block;
7
+ background-color: var(--action-link-bg-color);
8
+ width: 100%;
9
+ position: absolute;
10
+ z-index: 1;
11
+ left: 0;
12
+ top: 0;
13
+ box-shadow: .6rem 6rem 6rem rgba(0,0,0,.3);
14
+ animation: fadeInDown 0.5s;
15
+
16
+ .navbar-nav {
17
+ display: flex;
18
+ flex-wrap: wrap;
19
+ justify-content: center;
20
+ flex-direction: row;
21
+
22
+ > li {
23
+ text-align: center;
24
+ height: $actions-height;
25
+ display: flex;
26
+ align-items: center;
27
+ }
28
+ }
29
+
30
+ .blue-app-actions-menu-item:not(.blue-app-actions-menu-toggle) {
31
+ display: flex;
32
+ }
33
+
34
+ .blue-app-header-form {
35
+ width: 100%;
36
+ margin-bottom: .4rem;
37
+ }
38
+ }
39
+
40
+ .blue-app-actions-menu-item:not(.blue-app-actions-menu-toggle) {
41
+ display: none;
42
+ }
43
+ }
44
+
45
+ @media screen and (min-width: $breakpoint) {
46
+ .blue-app-actions-menu .blue-app-actions-label {
47
+ display: inline;
48
+ }
49
+
50
+ .blue-app-actions-menu-toggle {
51
+ display: none;
52
+ }
53
+ }
54
+ }
@@ -0,0 +1,10 @@
1
+ @mixin customProperty($name, $value) {
2
+ // fallback for older browser who do not support custom properties / css variables
3
+ #{$name}: #{$value};
4
+
5
+ // create a css variable (this might override the variable on any of the ancestor elements)
6
+ --#{$name}: #{$value};
7
+
8
+ // use the css variable on the property
9
+ #{$name}: var(--#{$name}, #{$value});
10
+ }
@@ -0,0 +1,28 @@
1
+ @mixin custom-scrollbar($thumb-color, $bg-color, $track-border-radius: 0) {
2
+ ::-webkit-scrollbar-thumb {
3
+ background-color: rgba($thumb-color, .4);
4
+ box-shadow: inset 1px 1px 0 rgba($thumb-color, .1), inset 0 -1px 0 rgba($thumb-color, .07)
5
+ }
6
+ ::-webkit-scrollbar-thumb:hover {
7
+ background-color: rgba($thumb-color, .5)
8
+ }
9
+ ::-webkit-scrollbar-thumb:active {
10
+ background-color: rgba($thumb-color, .6)
11
+ }
12
+
13
+ ::-webkit-scrollbar-track {
14
+ background-color: $bg-color;
15
+ border-radius: $track-border-radius;
16
+ }
17
+ }
18
+
19
+ @mixin slide-transition() {
20
+ $slide-transition: width .5s;
21
+ transition: $slide-transition;
22
+ }
23
+
24
+ @mixin header-bg() {
25
+ background-color: rgba($header-bg, $shimmering);
26
+ background-image: linear-gradient(0deg, rgba($header-bg,.8), rgba($header-bg,.7));
27
+ backdrop-filter: blur(3px) saturate(125%);
28
+ }
@@ -0,0 +1,10 @@
1
+ @mixin scroll-shadow($bg) {
2
+ background:
3
+ linear-gradient($bg 30%, hsla(0,0%,100%, 0)),
4
+ linear-gradient(hsla(0,0%,100%,0) 10px, $bg 70%) bottom,
5
+ radial-gradient(at top, rgba(0,0,0,0.2), transparent 70%),
6
+ radial-gradient(at bottom, rgba(0,0,0,0.2), transparent 70%) bottom;
7
+ background-repeat:no-repeat;
8
+ background-size: 100% 20px, 100% 20px, 100% 10px, 100% 10px;
9
+ background-attachment:local, local, scroll, scroll;
10
+ }
@@ -0,0 +1,114 @@
1
+ @mixin openSidebarMenu() {
2
+ .blue-app-sidebar-hidden-on-open {
3
+ display: none;
4
+ }
5
+
6
+ .blue-app-sidebar-visible-on-open {
7
+ animation: fade-in 1s;
8
+ display: block;
9
+ }
10
+
11
+
12
+ .blue-app-sidebar-label {
13
+ display: inline-block;
14
+ }
15
+
16
+ .blue-app-sidebar {
17
+ z-index: 42;
18
+ box-shadow: .6rem 6rem 6rem rgba(0,0,0,.4);
19
+ // background-color: darken($theme, 30%);
20
+ }
21
+
22
+ .blue-app-sidebar,
23
+ .blue-app-sidebar .blue-app-sidebar-btn {
24
+ width: $bla-sidebar-width;
25
+ }
26
+
27
+ .blue-app-sub-sidebar {
28
+ left: $bla-sidebar-width;
29
+ }
30
+
31
+ .blue-app-sidebar-dropdown-caret.caret {
32
+ display: flex;
33
+ }
34
+
35
+ .blue-app-sidebar-dropdown {
36
+ .blue-app-sidebar-btn {
37
+ width: 100%;
38
+ }
39
+ }
40
+
41
+
42
+ /* search */
43
+ .blue-app-search {
44
+ background-color: $sidebar-search-bg;
45
+ }
46
+
47
+ .blue-app-search-btn {
48
+ display: none;
49
+ }
50
+
51
+ .blue-app-search-input-group {
52
+ display: flex;
53
+ align-items: center;
54
+ }
55
+ }
56
+
57
+ @mixin blue-app-sidebar($width) {
58
+ .blue-app-sidebar-btn {
59
+ color: $sidebar-color;
60
+ width: $normal-size;
61
+ height: $normal-size;
62
+ padding: 4px 12px;
63
+ font-size: $bla-btn-font-size;
64
+ font-weight: 300;
65
+ text-align: left;
66
+ display: block;
67
+ // background-color: var(--sidebar-bg);
68
+ border-color: transparent;
69
+ @include slide-transition();
70
+
71
+ &:hover,
72
+ &:active {
73
+ color: $sidebar-color;
74
+ background-color: $sidebar-control-bg-hover !important;
75
+ border-color: transparent;
76
+ }
77
+
78
+ &.active::before {
79
+ content: "";
80
+ position: absolute;
81
+ top: 10px;
82
+ bottom: 10px;
83
+ left: 0;
84
+ width: 4px;
85
+ background-color: $sidebar-indicator-color;
86
+ }
87
+ }
88
+
89
+ .blue-app-sidebar {
90
+ width: $width;
91
+ color: $sidebar-color;
92
+ background: var(--sidebar-bg);
93
+ position: fixed;
94
+ left: 0;
95
+ top: $normal-size;
96
+ bottom: 0;
97
+ z-index: 3;
98
+ display: flex;
99
+ flex-direction: column;
100
+ @include slide-transition();
101
+
102
+ .blue-app-menu {
103
+ overflow-y: auto;
104
+ flex: 1;
105
+ @include scroll-shadow(var(--sidebar-bg));
106
+ }
107
+
108
+ &:hover {
109
+ .blue-app-sidebar-btn {
110
+ background-color: var(--sidebar-bg);
111
+ }
112
+ }
113
+ }
114
+ }
@@ -0,0 +1,77 @@
1
+ @mixin switch($width: 35px, $height: 20px, $padding: 3px, $color: $body-color, $color-active: $success) {
2
+ $slider-size: $height - ($padding * 2);
3
+
4
+ & {
5
+ position: relative;
6
+ display: inline-block;
7
+ width: $width;
8
+ height: $height;
9
+
10
+ input {
11
+ display:none;
12
+ }
13
+
14
+ &.disabled {
15
+ opacity: .8;
16
+ }
17
+
18
+ &:not(.disabled) {
19
+ .slider {
20
+ cursor: pointer;
21
+ }
22
+ }
23
+
24
+ .slider {
25
+ position: absolute;
26
+ top: 0;
27
+ left: 0;
28
+ right: 0;
29
+ bottom: 0;
30
+ background-color: $input-group-addon-bg;
31
+ transition: .4s;
32
+ box-shadow: inset 0 0 0 1px rgba($color, .5);
33
+
34
+ &::before {
35
+ content: "";
36
+ position: absolute;
37
+ height: $slider-size;
38
+ width: $slider-size;
39
+ left: $padding;
40
+ bottom: $padding;
41
+ background-color: $color;
42
+ transition: .4s;
43
+ }
44
+
45
+ &::after {
46
+ content: attr(data-label);
47
+ position: absolute;
48
+ top: 50%;
49
+ left: 50%;
50
+ transform: translate(-50%, -50%);
51
+ margin-left: ($slider-size / 2);
52
+ transition: margin-left .4s;
53
+ color: $color;
54
+ }
55
+ }
56
+
57
+ input:checked{
58
+ &+ .slider {
59
+ background-color: $color-active;
60
+ box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.3);
61
+
62
+ &::before {
63
+ transform: translateX($width - $slider-size - ($padding * 2));
64
+ background-color: white;
65
+ }
66
+
67
+ &::after {
68
+ color: white;
69
+ margin-left: ($slider-size / 2) * -1;
70
+ }
71
+ }
72
+ }
73
+ input:focus + .slider {
74
+ box-shadow: 0 0 1px $color-active;
75
+ }
76
+ }
77
+ }