@san-siva/blogkit 1.1.3 → 1.1.5

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.
@@ -1,4 +1,4 @@
1
- var styles = {"margin-bottom--3":"Blog-module_margin-bottom--3__ir35O","category__header":"Blog-module_category__header__F1K0V","blog":"Blog-module_blog__Lpv6Z","blog__content":"Blog-module_blog__content__RMDiY","blog__sidebar":"Blog-module_blog__sidebar__uSu3l","category__title":"Blog-module_category__title__960db","category__title--active":"Blog-module_category__title--active__nvGys","category__title--sub":"Blog-module_category__title--sub__zrfE5","margin-bottom-imp--2":"Blog-module_margin-bottom-imp--2__G9mC9"};
1
+ var styles = {"margin-bottom--3":"Blog-module_margin-bottom--3__ir35O","category__header":"Blog-module_category__header__F1K0V","blog":"Blog-module_blog__Lpv6Z","blog__content":"Blog-module_blog__content__RMDiY","blog__sidebar":"Blog-module_blog__sidebar__uSu3l","category__title":"Blog-module_category__title__960db","category__title--active":"Blog-module_category__title--active__nvGys","category__title--sub":"Blog-module_category__title--sub__zrfE5"};
2
2
 
3
3
  export { styles as default };
4
4
  //# sourceMappingURL=Blog.module.scss.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@san-siva/blogkit",
3
- "version": "1.1.3",
3
+ "version": "1.1.5",
4
4
  "description": "A reusable blog component library for React/Next.js applications with code highlighting, diagrams, and rich content features",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -9,7 +9,7 @@ import {
9
9
  useRef,
10
10
  useState,
11
11
  } from 'react';
12
- import { useSpring, animated } from '@react-spring/web';
12
+ import { useSpring, animated, config } from '@react-spring/web';
13
13
 
14
14
  import type { MouseEvent, ReactNode, RefAttributes } from 'react';
15
15
 
@@ -204,8 +204,8 @@ const Blog = ({ children, title = 'In this article' }: BlogProperties) => {
204
204
 
205
205
  const sidebarStyle = useSpring({
206
206
  opacity: showTOC ? 1 : 0,
207
- transform: showTOC ? 'translateX(0)' : 'translateX(80px)',
208
- config: { tension: 280, friction: 60 },
207
+ transform: showTOC ? 'translateX(0)' : 'translateX(40px)',
208
+ config: config.gentle,
209
209
  });
210
210
 
211
211
  return (
@@ -2,14 +2,11 @@
2
2
 
3
3
  .blog {
4
4
  width: 100%;
5
+ max-width: 100%;
5
6
  display: grid;
6
- grid-template-columns: max-content #{styles.rem(320)};
7
+ grid-template-columns: #{styles.rem(780)} minmax(#{styles.rem(320)}, 1fr);
7
8
  grid-gap: styles.space(8);
8
9
 
9
- > * {
10
- max-width: unset;
11
- }
12
-
13
10
  &__content {
14
11
  max-width: styles.$max-width--page-contents;
15
12
  }
@@ -17,11 +14,8 @@
17
14
  &__sidebar {
18
15
  position: sticky;
19
16
  height: fit-content;
20
- top: calc(var(--topbar-height) + #{styles.space(6)});
17
+ top: var(--topbar-height);
21
18
  padding: styles.space(6);
22
- min-width: calc(
23
- #{styles.rem(320)} - #{styles.space(6)} - #{styles.space(6)}
24
- );
25
19
  border-radius: styles.$border-radius--1;
26
20
  background-color: styles.$color--code;
27
21
  box-shadow:
@@ -73,20 +67,3 @@ $breakpoint: calc(
73
67
  }
74
68
  }
75
69
  }
76
-
77
- // Margin utilities
78
- .margin-bottom--3 {
79
- margin-bottom: styles.space(3);
80
- }
81
-
82
- .margin-bottom-imp--2 {
83
- margin-bottom: styles.space(2) !important;
84
- }
85
-
86
- .category__header {
87
- font-weight: styles.$font-weight--500;
88
- }
89
-
90
- .category__title {
91
- // Styles defined in &__sidebar > .category__title above
92
- }