@instincthub/react-ui 0.5.0 → 0.5.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.
@@ -188,34 +188,55 @@
188
188
  object-fit: contain;
189
189
  }
190
190
 
191
- /* Toggle button */
191
+ /* Toggle button.
192
+ The sidebar clips overflow, so the toggle must live inside it. A 44px
193
+ header strip (padding-top on .ihub-sidenav) keeps it off the search box
194
+ and off the first menu item; it is edge-aligned when expanded and centred
195
+ in the 64px column when collapsed. */
196
+ .ihub-sidenav {
197
+ padding-top: 44px;
198
+ }
199
+
192
200
  .ihub-sidenav-toggle {
193
201
  position: absolute;
194
- top: 10px;
195
- width: 24px;
196
- height: 24px;
197
- background-color: var(--White, #ffffff);
198
- border: var(--borderDefault, 1px solid rgba(44, 51, 58, 0.2));
199
- border-radius: 50%;
202
+ top: 6px;
203
+ width: 32px;
204
+ height: 32px;
205
+ padding: 0;
206
+ margin: 0;
207
+ background-color: transparent;
208
+ border: 1px solid transparent;
209
+ border-radius: 8px;
200
210
  display: flex;
201
211
  align-items: center;
202
212
  justify-content: center;
203
213
  cursor: pointer;
204
214
  z-index: 10;
205
- transition: transform 0.3s ease;
215
+ transition: background-color 0.16s ease, border-color 0.16s ease;
206
216
  color: var(--Gunmetal, #2c333a);
207
217
  }
208
218
 
219
+ .ihub-sidenav-toggle svg {
220
+ margin: 0;
221
+ }
222
+
223
+ .ihub-sidenav-toggle:hover {
224
+ background-color: rgba(0, 131, 143, 0.08);
225
+ border-color: rgba(0, 131, 143, 0.2);
226
+ }
227
+
209
228
  .ihub-sidenav-left .ihub-sidenav-toggle {
210
- right: -12px;
211
- transform: translateX(0);
212
- background: transparent;
213
- border: transparent;
229
+ right: 12px;
214
230
  }
215
231
 
216
232
  .ihub-sidenav-right .ihub-sidenav-toggle {
217
- left: -12px;
218
- transform: translateX(0);
233
+ left: 12px;
234
+ }
235
+
236
+ .ihub-sidenav-collapsed.ihub-sidenav-left .ihub-sidenav-toggle,
237
+ .ihub-sidenav-collapsed.ihub-sidenav-right .ihub-sidenav-toggle {
238
+ left: 16px;
239
+ right: auto;
219
240
  }
220
241
 
221
242
  /* Remove the old toggle icon styles since we're using MUI icons now */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instincthub/react-ui",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "InstinctHub React UI components and assets in TypeScript",
5
5
  "main": "dist/src/index.cjs",
6
6
  "module": "dist/src/index.js",