@benpley/wappler-responsive-sidebar 1.0.0 → 1.0.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.
package/README.md CHANGED
@@ -35,7 +35,7 @@ Then add the extension through Wappler's Extension Manager.
35
35
 
36
36
  1. Download the extension files
37
37
  2. Copy the `wappler-responsive-sidebar` folder to your Wappler extensions directory:
38
- - **Windows**: `C:\Users\[YourUsername]\AppData\Local\Wappler\extensions\`
38
+ - **Windows**: `C:\\Users\\[YourUsername]\\AppData\\Local\\Wappler\\extensions\\`
39
39
  - **macOS**: `~/Library/Application Support/Wappler/extensions/`
40
40
  - **Linux**: `~/.config/Wappler/extensions/`
41
41
  3. Restart Wappler
@@ -339,6 +339,13 @@ For issues or questions:
339
339
 
340
340
  ## Changelog
341
341
 
342
+ ### Version 1.0.2
343
+ - Added Bootstrap 5 Navigation component integration for automatic active link highlighting
344
+ - Enhanced components.hjson to include dmxBootstrap5Navigation.js dependency
345
+
346
+ ### Version 1.0.1
347
+ - Added active navigation link styling (.active class support) to CSS
348
+
342
349
  ### Version 1.0.0
343
350
  - Initial release
344
351
  - Responsive sidebar with Bootstrap 5
@@ -100,7 +100,8 @@
100
100
  ],
101
101
  linkFiles: [
102
102
  {src: 'css/responsive-sidebar.css', type: 'css'},
103
- {src: 'js/responsive-sidebar.js', type: 'js', defer: true}
103
+ {src: 'js/responsive-sidebar.js', type: 'js', defer: true},
104
+ {src: 'dmxAppConnect/dmxBootstrap5Navigation/dmxBootstrap5Navigation.js', type: 'js', defer: true}
104
105
  ],
105
106
  cssOrder: [],
106
107
  jsOrder: []
@@ -5,10 +5,16 @@
5
5
 
6
6
  /* Header Navbar */
7
7
  .bd-navbar {
8
- box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15), inset 0 -1px rgba(255, 255, 255, 0.15);
8
+ -webkit-box-shadow:
9
+ 0 0.5rem 1rem rgba(0, 0, 0, 0.15),
10
+ inset 0 -1px rgba(255, 255, 255, 0.15);
11
+ box-shadow:
12
+ 0 0.5rem 1rem rgba(0, 0, 0, 0.15),
13
+ inset 0 -1px rgba(255, 255, 255, 0.15);
9
14
  }
10
15
 
11
16
  .bd-navbar.no-shadow {
17
+ -webkit-box-shadow: none;
12
18
  box-shadow: none;
13
19
  }
14
20
 
@@ -18,13 +24,20 @@
18
24
  display: grid;
19
25
  grid-template-areas: "sidebar main";
20
26
  grid-template-columns: 1fr 5fr;
27
+ -webkit-box-flex: 1;
28
+ -ms-flex: 1;
21
29
  flex: 1;
22
30
  }
23
31
  }
24
32
 
25
33
  .bd-main {
26
34
  grid-area: main;
35
+ display: -webkit-box;
36
+ display: -ms-flexbox;
27
37
  display: flex;
38
+ -webkit-box-orient: vertical;
39
+ -webkit-box-direction: normal;
40
+ -ms-flex-direction: column;
28
41
  flex-direction: column;
29
42
  min-height: 0;
30
43
  }
@@ -38,9 +51,9 @@
38
51
  @media (min-width: 992px) {
39
52
  .bd-sidebar {
40
53
  position: sticky;
41
- top: 3.5rem;
54
+ top: 4.5rem;
42
55
  display: block !important;
43
- height: calc(100vh - 3.5rem);
56
+ height: calc(100vh - 4.5rem);
44
57
  overflow-y: auto;
45
58
  min-width: 13rem;
46
59
  max-width: 20rem;
@@ -48,18 +61,30 @@
48
61
 
49
62
  .bd-sidebar .offcanvas-lg {
50
63
  height: 100%;
64
+ display: -webkit-box !important;
65
+ display: -ms-flexbox !important;
51
66
  display: flex !important;
67
+ -webkit-box-orient: vertical;
68
+ -webkit-box-direction: normal;
69
+ -ms-flex-direction: column;
52
70
  flex-direction: column;
53
71
  background-color: var(--bs-secondary-bg);
54
72
  }
55
73
 
56
74
  .bd-sidebar .offcanvas-body {
75
+ -webkit-box-flex: 1;
76
+ -ms-flex: 1;
57
77
  flex: 1;
78
+ display: -webkit-box;
79
+ display: -ms-flexbox;
58
80
  display: flex;
81
+ -webkit-box-orient: vertical;
82
+ -webkit-box-direction: normal;
83
+ -ms-flex-direction: column;
59
84
  flex-direction: column;
60
85
  background-color: var(--bs-secondary-bg);
61
86
  }
62
-
87
+
63
88
  .bd-sidebar .bd-links {
64
89
  padding-top: 1.5rem !important;
65
90
  }
@@ -68,6 +93,7 @@
68
93
  @media (max-width: 991.98px) {
69
94
  .bd-sidebar .offcanvas-lg {
70
95
  border-right-color: var(--bs-border-color);
96
+ -webkit-box-shadow: var(--bs-box-shadow-lg);
71
97
  box-shadow: var(--bs-box-shadow-lg);
72
98
  }
73
99
  }
@@ -79,16 +105,42 @@ responsive-sidebar {
79
105
 
80
106
  /* Sidebar menu styling helpers */
81
107
  .bd-links a {
108
+ -webkit-transition: background-color 0.15s ease-in-out;
82
109
  transition: background-color 0.15s ease-in-out;
83
110
  }
84
111
 
85
112
  .bd-links a:hover {
86
- background-color: rgba(0, 0, 0, 0.05);
113
+ background-color: rgba(var(--bs-primary-rgb), 0.08);
114
+ }
115
+
116
+ /* Active navigation link styles */
117
+ .bd-links a.active {
118
+ background-color: rgba(var(--bs-primary-rgb), 0.12);
119
+ color: var(--bs-primary);
120
+ font-weight: 500;
121
+ border-left: 3px solid var(--bs-primary);
122
+ padding-left: calc(1rem - 3px);
123
+ }
124
+
125
+ .bd-links a.active:hover {
126
+ background-color: rgba(var(--bs-primary-rgb), 0.18);
127
+ color: var(--bs-primary);
87
128
  }
88
129
 
89
130
  /* Dark mode support */
90
131
  @media (prefers-color-scheme: dark) {
91
132
  .bd-links a:hover {
92
- background-color: rgba(255, 255, 255, 0.1);
133
+ background-color: rgba(var(--bs-primary-rgb), 0.1);
134
+ }
135
+
136
+ .bd-links a.active {
137
+ background-color: rgba(var(--bs-primary-rgb), 0.25);
138
+ color: var(--bs-primary-text-emphasis);
139
+ border-left-color: var(--bs-primary-text-emphasis);
140
+ }
141
+
142
+ .bd-links a.active:hover {
143
+ background-color: rgba(var(--bs-primary-rgb), 0.35);
144
+ color: var(--bs-primary-text-emphasis);
93
145
  }
94
146
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@benpley/wappler-responsive-sidebar",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "A responsive sidebar component extension for Wappler",
5
5
  "author": {
6
6
  "name": "Ben Pleysier"