blue-react 8.1.7 → 8.3.1

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 (75) hide show
  1. package/LICENSE +164 -164
  2. package/README.md +59 -59
  3. package/dist/components/ActionMenu.js +2 -2
  4. package/dist/components/ActionMenuSwitch.js +2 -2
  5. package/dist/components/Body.js +2 -2
  6. package/dist/components/BodyRounded.js +2 -2
  7. package/dist/components/Caret.js +2 -2
  8. package/dist/components/DocumentView.js +2 -2
  9. package/dist/components/Grid.js +287 -287
  10. package/dist/components/Header.js +2 -2
  11. package/dist/components/HeaderTitle.js +3 -3
  12. package/dist/components/Intro.js +2 -2
  13. package/dist/components/Layout.js +19 -19
  14. package/dist/components/MenuItem.js +11 -20
  15. package/dist/components/Modal.js +11 -7
  16. package/dist/components/ModalProvider.js +18 -9
  17. package/dist/components/Outside.js +6 -6
  18. package/dist/components/Page.js +2 -2
  19. package/dist/components/Search.js +2 -2
  20. package/dist/components/SidebarMenu.js +2 -2
  21. package/dist/components/Switch.js +2 -2
  22. package/dist/style.css +8701 -4960
  23. package/dist/style.css.map +1 -0
  24. package/dist/style.min.css +10 -12
  25. package/dist/style.scss +28 -28
  26. package/dist/styles/_action-menu.scss +81 -81
  27. package/dist/styles/_bootstrap-mixins_overwritten.scss +106 -106
  28. package/dist/styles/_bootstrap-optimizations.scss +13 -13
  29. package/dist/styles/_bootstrap-variables.scss +15 -15
  30. package/dist/styles/_bootstrap.scss +56 -56
  31. package/dist/styles/_caret.scss +50 -50
  32. package/dist/styles/_document-view.scss +6 -6
  33. package/dist/styles/_general.scss +177 -177
  34. package/dist/styles/_grid.scss +381 -381
  35. package/dist/styles/_hover.scss +42 -42
  36. package/dist/styles/_keyframes.scss +73 -73
  37. package/dist/styles/_mixins.scss +6 -6
  38. package/dist/styles/_router.scss +18 -18
  39. package/dist/styles/_search.scss +61 -61
  40. package/dist/styles/_status.scss +149 -149
  41. package/dist/styles/_switch.scss +21 -21
  42. package/dist/styles/_tooltips.scss +189 -189
  43. package/dist/styles/_variables.scss +97 -97
  44. package/dist/styles/mixins/_action-menu.scss +68 -68
  45. package/dist/styles/mixins/_custom-property.scss +10 -10
  46. package/dist/styles/mixins/_misc.scss +33 -33
  47. package/dist/styles/mixins/_scroll-shadow.scss +9 -9
  48. package/dist/styles/mixins/_sidebar.scss +156 -156
  49. package/dist/styles/mixins/_switch.scss +85 -85
  50. package/dist/types/components/ActionMenu.d.ts +22 -22
  51. package/dist/types/components/ActionMenuSwitch.d.ts +11 -11
  52. package/dist/types/components/Body.d.ts +21 -21
  53. package/dist/types/components/BodyRounded.d.ts +10 -10
  54. package/dist/types/components/Caret.d.ts +16 -16
  55. package/dist/types/components/DocumentView.d.ts +23 -23
  56. package/dist/types/components/Grid.d.ts +110 -110
  57. package/dist/types/components/Header.d.ts +8 -8
  58. package/dist/types/components/HeaderTitle.d.ts +29 -29
  59. package/dist/types/components/Intro.d.ts +23 -23
  60. package/dist/types/components/Layout.d.ts +120 -120
  61. package/dist/types/components/MenuItem.d.ts +69 -69
  62. package/dist/types/components/Modal.d.ts +25 -24
  63. package/dist/types/components/ModalProvider.d.ts +11 -11
  64. package/dist/types/components/Outside.d.ts +14 -14
  65. package/dist/types/components/Page.d.ts +12 -12
  66. package/dist/types/components/Search.d.ts +30 -30
  67. package/dist/types/components/SidebarMenu.d.ts +32 -32
  68. package/dist/types/components/Status.d.ts +12 -12
  69. package/dist/types/components/StatusProvider.d.ts +15 -15
  70. package/dist/types/components/Switch.d.ts +21 -21
  71. package/dist/types/components/Utilities.d.ts +17 -17
  72. package/dist/types/components/shared.d.ts +15 -15
  73. package/index.d.ts +65 -65
  74. package/index.js +27 -27
  75. package/package.json +88 -88
@@ -1,68 +1,68 @@
1
- @mixin show-action-menu-again() {
2
- max-height: initial;
3
- overflow: initial;
4
-
5
- .blue-actions-menu {
6
- max-width: initial;
7
- }
8
- }
9
-
10
- @mixin actions($breakpoint) {
11
- @media screen and (max-width: $breakpoint + 1px) {
12
- &.open {
13
- --action-link-bg-color: #{darken($theme, 30%)};
14
-
15
- display: block;
16
- background-color: var(--action-link-bg-color);
17
- width: 100%;
18
- position: absolute;
19
- z-index: 1;
20
- left: 0;
21
- top: 0;
22
- box-shadow: 0.6rem 6rem 6rem rgba(0, 0, 0, 0.3);
23
- animation: fadeInDown 0.5s;
24
-
25
- @include show-action-menu-again();
26
-
27
- .navbar-nav {
28
- display: flex;
29
- flex-wrap: wrap;
30
- justify-content: center;
31
- flex-direction: row;
32
-
33
- > li {
34
- text-align: center;
35
- height: $actions-height;
36
- display: flex;
37
- align-items: center;
38
- }
39
- }
40
-
41
- .blue-actions-menu-item:not(.blue-actions-menu-toggle) {
42
- display: flex;
43
- }
44
-
45
- .blue-actions-menu {
46
- .blue-menu-item-dropdown {
47
- --sidebar-bg: #{darken($theme, 34%)};
48
- }
49
- }
50
- }
51
-
52
- .blue-actions-menu-item:not(.blue-actions-menu-toggle) {
53
- display: none;
54
- }
55
- }
56
-
57
- @media screen and (min-width: $breakpoint) {
58
- @include show-action-menu-again();
59
-
60
- .blue-actions-menu .blue-actions-label {
61
- display: inline;
62
- }
63
-
64
- .blue-actions-menu-toggle {
65
- display: none;
66
- }
67
- }
68
- }
1
+ @mixin show-action-menu-again() {
2
+ max-height: initial;
3
+ overflow: initial;
4
+
5
+ .blue-actions-menu {
6
+ max-width: initial;
7
+ }
8
+ }
9
+
10
+ @mixin actions($breakpoint) {
11
+ @media screen and (max-width: $breakpoint + 1px) {
12
+ &.open {
13
+ --action-link-bg-color: #{darken($theme, 30%)};
14
+
15
+ display: block;
16
+ background-color: var(--action-link-bg-color);
17
+ width: 100%;
18
+ position: absolute;
19
+ z-index: 1;
20
+ left: 0;
21
+ top: 0;
22
+ box-shadow: 0.6rem 6rem 6rem rgba(0, 0, 0, 0.3);
23
+ animation: fadeInDown 0.5s;
24
+
25
+ @include show-action-menu-again();
26
+
27
+ .navbar-nav {
28
+ display: flex;
29
+ flex-wrap: wrap;
30
+ justify-content: center;
31
+ flex-direction: row;
32
+
33
+ > li {
34
+ text-align: center;
35
+ height: $actions-height;
36
+ display: flex;
37
+ align-items: center;
38
+ }
39
+ }
40
+
41
+ .blue-actions-menu-item:not(.blue-actions-menu-toggle) {
42
+ display: flex;
43
+ }
44
+
45
+ .blue-actions-menu {
46
+ .blue-menu-item-dropdown {
47
+ --sidebar-bg: #{darken($theme, 34%)};
48
+ }
49
+ }
50
+ }
51
+
52
+ .blue-actions-menu-item:not(.blue-actions-menu-toggle) {
53
+ display: none;
54
+ }
55
+ }
56
+
57
+ @media screen and (min-width: $breakpoint) {
58
+ @include show-action-menu-again();
59
+
60
+ .blue-actions-menu .blue-actions-label {
61
+ display: inline;
62
+ }
63
+
64
+ .blue-actions-menu-toggle {
65
+ display: none;
66
+ }
67
+ }
68
+ }
@@ -1,10 +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
- }
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
+ }
@@ -1,33 +1,33 @@
1
- @mixin custom-scrollbar($thumb-color, $bg-color, $track-border-radius: 0) {
2
- ::-webkit-scrollbar-thumb {
3
- background-color: rgba($thumb-color, 0.4);
4
- box-shadow: inset 1px 1px 0 rgba($thumb-color, 0.1),
5
- inset 0 -1px 0 rgba($thumb-color, 0.07);
6
- }
7
- ::-webkit-scrollbar-thumb:hover {
8
- background-color: rgba($thumb-color, 0.5);
9
- }
10
- ::-webkit-scrollbar-thumb:active {
11
- background-color: rgba($thumb-color, 0.6);
12
- }
13
-
14
- ::-webkit-scrollbar-track {
15
- background-color: $bg-color;
16
- border-radius: $track-border-radius;
17
- }
18
- }
19
-
20
- @mixin slide-transition() {
21
- $slide-transition: width 0.5s;
22
- transition: $slide-transition;
23
- }
24
-
25
- @mixin header-bg() {
26
- background-color: rgba($header-bg, $shimmering);
27
- background-image: linear-gradient(
28
- 0deg,
29
- rgba($header-bg, 0.8),
30
- rgba($header-bg, 0.7)
31
- );
32
- backdrop-filter: blur(3px) saturate(125%);
33
- }
1
+ @mixin custom-scrollbar($thumb-color, $bg-color, $track-border-radius: 0) {
2
+ ::-webkit-scrollbar-thumb {
3
+ background-color: rgba($thumb-color, 0.4);
4
+ box-shadow: inset 1px 1px 0 rgba($thumb-color, 0.1),
5
+ inset 0 -1px 0 rgba($thumb-color, 0.07);
6
+ }
7
+ ::-webkit-scrollbar-thumb:hover {
8
+ background-color: rgba($thumb-color, 0.5);
9
+ }
10
+ ::-webkit-scrollbar-thumb:active {
11
+ background-color: rgba($thumb-color, 0.6);
12
+ }
13
+
14
+ ::-webkit-scrollbar-track {
15
+ background-color: $bg-color;
16
+ border-radius: $track-border-radius;
17
+ }
18
+ }
19
+
20
+ @mixin slide-transition() {
21
+ $slide-transition: width 0.5s;
22
+ transition: $slide-transition;
23
+ }
24
+
25
+ @mixin header-bg() {
26
+ background-color: rgba($header-bg, $shimmering);
27
+ background-image: linear-gradient(
28
+ 0deg,
29
+ rgba($header-bg, 0.8),
30
+ rgba($header-bg, 0.7)
31
+ );
32
+ backdrop-filter: blur(3px) saturate(125%);
33
+ }
@@ -1,9 +1,9 @@
1
- @mixin scroll-shadow($bg, $light-base: white) {
2
- background: linear-gradient($bg 30%, rgba($light-base, 0)),
3
- linear-gradient(rgba($light-base, 0) 10px, $bg 70%) bottom,
4
- radial-gradient(at top, rgba(0, 0, 0, 0.2), transparent 70%),
5
- radial-gradient(at bottom, rgba(0, 0, 0, 0.2), transparent 70%) bottom;
6
- background-repeat: no-repeat;
7
- background-size: 100% 20px, 100% 20px, 100% 10px, 100% 10px;
8
- background-attachment: local, local, scroll, scroll;
9
- }
1
+ @mixin scroll-shadow($bg, $light-base: white) {
2
+ background: linear-gradient($bg 30%, rgba($light-base, 0)),
3
+ linear-gradient(rgba($light-base, 0) 10px, $bg 70%) bottom,
4
+ radial-gradient(at top, rgba(0, 0, 0, 0.2), transparent 70%),
5
+ radial-gradient(at bottom, rgba(0, 0, 0, 0.2), transparent 70%) bottom;
6
+ background-repeat: no-repeat;
7
+ background-size: 100% 20px, 100% 20px, 100% 10px, 100% 10px;
8
+ background-attachment: local, local, scroll, scroll;
9
+ }
@@ -1,156 +1,156 @@
1
- @mixin openSidebarMenu() {
2
- .blue-sidebar-hidden-on-open {
3
- display: none;
4
- }
5
-
6
- .blue-sidebar-visible-on-open {
7
- animation: fade-in 1s;
8
- display: flex;
9
- }
10
-
11
- .blue-menu-item-label {
12
- display: inline-block;
13
- }
14
-
15
- .blue-sidebar {
16
- z-index: 42;
17
- box-shadow: 0.6rem 6rem 6rem rgba(0, 0, 0, 0.4);
18
- // background-color: darken($theme, 30%);
19
- }
20
-
21
- .blue-sidebar,
22
- .blue-sidebar .blue-menu-item {
23
- width: $bla-sidebar-width;
24
- }
25
-
26
- .blue-sidebar .blue-menu-item {
27
- & > * {
28
- width: auto;
29
- }
30
- }
31
-
32
- .blue-sub-sidebar {
33
- left: $bla-sidebar-width;
34
- }
35
-
36
- .blue-menu-item-dropdown-caret.caret {
37
- display: flex;
38
- }
39
-
40
- .blue-menu-item-dropdown {
41
- .blue-menu-item {
42
- width: 100%;
43
- }
44
- }
45
-
46
- /* search */
47
- .blue-search {
48
- background-color: $sidebar-search-bg;
49
- }
50
-
51
- .blue-search-btn {
52
- display: none;
53
- }
54
-
55
- .blue-search-input-group {
56
- display: flex;
57
- align-items: center;
58
- }
59
-
60
- .blue-header-logo.sidebar {
61
- transform: translateX(0);
62
- }
63
- }
64
-
65
- @mixin blue-sidebar($width) {
66
- .blue-menu-item {
67
- color: inherit;
68
- width: $normal-size;
69
- height: $normal-size;
70
- padding: 0.25rem 0.75rem;
71
- font-size: $bla-btn-font-size;
72
- display: flex;
73
- align-items: center;
74
- border-color: transparent;
75
- @include slide-transition();
76
-
77
- &::before {
78
- content: "";
79
- position: absolute;
80
- top: 0.25rem; right: 0.25rem; bottom: 0.25rem; left: 0.25rem;
81
- background-color: currentColor;
82
- border-radius: $border-radius;
83
- transform: scale(0.9);
84
- opacity: 0;
85
- transition: all 0.2s;
86
- }
87
-
88
- &:hover,
89
- &:active {
90
- color: inherit;
91
- border-color: transparent;
92
-
93
- &::before {
94
- transform: scale(1);
95
- opacity: 0.25;
96
- }
97
- }
98
-
99
- &.active::after {
100
- content: "";
101
- position: absolute;
102
- top: 0.625rem;
103
- bottom: 0.625rem;
104
- left: 0.125rem;
105
- width: 0.25rem;
106
- background-color: $sidebar-indicator-color;
107
- border-radius: 1rem;
108
- animation: sidebar-menu-item-indicator-in 0.2s ease-in-out;
109
- }
110
-
111
- & > * + .blue-menu-item-label {
112
- margin-left: 0.5rem;
113
- }
114
- }
115
-
116
- .blue-sidebar {
117
- width: $width;
118
- color: $sidebar-color;
119
- background: var(--sidebar-bg);
120
- position: fixed;
121
- left: 0;
122
- top: $normal-size;
123
- bottom: 0;
124
- z-index: 3;
125
- display: flex;
126
- flex-direction: column;
127
- @include slide-transition();
128
-
129
- .blue-menu {
130
- overflow-y: auto;
131
- flex: 1;
132
- @include scroll-shadow(var(--sidebar-bg), $sidebar-bg);
133
- }
134
-
135
- &:hover {
136
- .blue-menu-item {
137
- background-color: var(--sidebar-bg);
138
- }
139
- }
140
-
141
- .blue-menu-item {
142
- & > * {
143
- width: 100%;
144
- }
145
- }
146
- }
147
- }
148
-
149
- @keyframes sidebar-menu-item-indicator-in {
150
- from {
151
- transform: translateX(-100%);
152
- }
153
- to {
154
- transform: translateX(1);
155
- }
156
- }
1
+ @mixin openSidebarMenu() {
2
+ .blue-sidebar-hidden-on-open {
3
+ display: none;
4
+ }
5
+
6
+ .blue-sidebar-visible-on-open {
7
+ animation: fade-in 1s;
8
+ display: flex;
9
+ }
10
+
11
+ .blue-menu-item-label {
12
+ display: inline-block;
13
+ }
14
+
15
+ .blue-sidebar {
16
+ z-index: 42;
17
+ box-shadow: 0.6rem 6rem 6rem rgba(0, 0, 0, 0.4);
18
+ // background-color: darken($theme, 30%);
19
+ }
20
+
21
+ .blue-sidebar,
22
+ .blue-sidebar .blue-menu-item {
23
+ width: $bla-sidebar-width;
24
+ }
25
+
26
+ .blue-sidebar .blue-menu-item {
27
+ & > * {
28
+ width: auto;
29
+ }
30
+ }
31
+
32
+ .blue-sub-sidebar {
33
+ left: $bla-sidebar-width;
34
+ }
35
+
36
+ .blue-menu-item-dropdown-caret.caret {
37
+ display: flex;
38
+ }
39
+
40
+ .blue-menu-item-dropdown {
41
+ .blue-menu-item {
42
+ width: 100%;
43
+ }
44
+ }
45
+
46
+ /* search */
47
+ .blue-search {
48
+ background-color: $sidebar-search-bg;
49
+ }
50
+
51
+ .blue-search-btn {
52
+ display: none;
53
+ }
54
+
55
+ .blue-search-input-group {
56
+ display: flex;
57
+ align-items: center;
58
+ }
59
+
60
+ .blue-header-logo.sidebar {
61
+ transform: translateX(0);
62
+ }
63
+ }
64
+
65
+ @mixin blue-sidebar($width) {
66
+ .blue-menu-item {
67
+ color: inherit;
68
+ width: $normal-size;
69
+ height: $normal-size;
70
+ padding: 0.25rem 0.75rem;
71
+ font-size: $bla-btn-font-size;
72
+ display: flex;
73
+ align-items: center;
74
+ border-color: transparent;
75
+ @include slide-transition();
76
+
77
+ &::before {
78
+ content: "";
79
+ position: absolute;
80
+ top: 0.25rem; right: 0.25rem; bottom: 0.25rem; left: 0.25rem;
81
+ background-color: currentColor;
82
+ border-radius: $border-radius;
83
+ transform: scale(0.9);
84
+ opacity: 0;
85
+ transition: all 0.2s;
86
+ }
87
+
88
+ &:hover,
89
+ &:active {
90
+ color: inherit;
91
+ border-color: transparent;
92
+
93
+ &::before {
94
+ transform: scale(1);
95
+ opacity: 0.25;
96
+ }
97
+ }
98
+
99
+ &.active::after {
100
+ content: "";
101
+ position: absolute;
102
+ top: 0.625rem;
103
+ bottom: 0.625rem;
104
+ left: 0.125rem;
105
+ width: 0.25rem;
106
+ background-color: $sidebar-indicator-color;
107
+ border-radius: 1rem;
108
+ animation: sidebar-menu-item-indicator-in 0.2s ease-in-out;
109
+ }
110
+
111
+ & > * + .blue-menu-item-label {
112
+ margin-left: 0.5rem;
113
+ }
114
+ }
115
+
116
+ .blue-sidebar {
117
+ width: $width;
118
+ color: $sidebar-color;
119
+ background: var(--sidebar-bg);
120
+ position: fixed;
121
+ left: 0;
122
+ top: $normal-size;
123
+ bottom: 0;
124
+ z-index: 3;
125
+ display: flex;
126
+ flex-direction: column;
127
+ @include slide-transition();
128
+
129
+ .blue-menu {
130
+ overflow-y: auto;
131
+ flex: 1;
132
+ @include scroll-shadow(var(--sidebar-bg), $sidebar-bg);
133
+ }
134
+
135
+ &:hover {
136
+ .blue-menu-item {
137
+ background-color: var(--sidebar-bg);
138
+ }
139
+ }
140
+
141
+ .blue-menu-item {
142
+ & > * {
143
+ width: 100%;
144
+ }
145
+ }
146
+ }
147
+ }
148
+
149
+ @keyframes sidebar-menu-item-indicator-in {
150
+ from {
151
+ transform: translateX(-100%);
152
+ }
153
+ to {
154
+ transform: translateX(1);
155
+ }
156
+ }