@bbki.ng/ui 0.1.14 → 0.1.16

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @bbki.ng/ui
2
2
 
3
+ ## 0.1.16
4
+
5
+ ### Patch Changes
6
+
7
+ - c11fa73: fix layout style
8
+
9
+ ## 0.1.15
10
+
11
+ ### Patch Changes
12
+
13
+ - 9b6dfe7: fix safaarea style
14
+
3
15
  ## 0.1.14
4
16
 
5
17
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbki.ng/ui",
3
- "version": "0.1.14",
3
+ "version": "0.1.16",
4
4
  "description": "Design system component library for bbki.ng",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -5,7 +5,7 @@ import { Logo } from '../../atoms/logo';
5
5
  import { NavProps } from './Nav.types';
6
6
 
7
7
  export const Nav = (props: NavProps) => {
8
- const { paths, loading, mini, className, customLogo } = props;
8
+ const { paths, loading, mini, className, customLogo, style = {} } = props;
9
9
  const nav = useNavigate();
10
10
 
11
11
  if (mini) {
@@ -17,7 +17,7 @@ export const Nav = (props: NavProps) => {
17
17
  }
18
18
 
19
19
  return (
20
- <div className={twMerge('p-2 w-full flex items-center', className)}>
20
+ <div className={twMerge('p-2 w-full flex items-center', className)} style={style}>
21
21
  {customLogo || (
22
22
  <Logo className="mr-2 cursor-pointer hover:opacity-80" onClick={() => nav('/')} />
23
23
  )}
@@ -7,4 +7,5 @@ export interface NavProps {
7
7
  mini?: boolean;
8
8
  className?: string;
9
9
  customLogo?: ReactNode;
10
+ style?: React.CSSProperties;
10
11
  }
@@ -14,7 +14,7 @@ export const Panel = (props: PanelProps) => {
14
14
  <div
15
15
  className={twMerge(
16
16
  'transition-all ease-in-out duration-500',
17
- 'p-4 rounded-sm',
17
+ 'p-4',
18
18
  show ? 'shadow-[var(--shadow-panel)]' : 'shadow-none',
19
19
  className
20
20
  )}