@pk-design/react-tailwind 1.11.1 → 1.13.0

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,5 +1,5 @@
1
1
  import type { BottomNavigationProps } from './BottomNavigation.types';
2
- export declare function BottomNavigation({ items, activeId, onChange, fixed, showLabels, theme, activeIndicatorStyle, containerClass, itemClass, linkAs, linkHrefProp, ariaLabel, hidden, }: BottomNavigationProps): import("react/jsx-runtime").JSX.Element | null;
2
+ export declare function BottomNavigation({ items, activeId, onChange, fixed, showLabels, theme, activeIndicatorStyle, containerClass, itemClass, linkAs, linkHrefProp, ariaLabel, hidden, rounded, }: BottomNavigationProps): import("react/jsx-runtime").JSX.Element | null;
3
3
  export declare namespace BottomNavigation {
4
4
  var displayName: string;
5
5
  }
@@ -63,4 +63,9 @@ export interface BottomNavigationProps {
63
63
  * @default false
64
64
  */
65
65
  hidden?: boolean;
66
+ /**
67
+ * Rounds the bar's top corners, so it reads as a surface over the page.
68
+ * @default false
69
+ */
70
+ rounded?: boolean;
66
71
  }
@@ -90,6 +90,20 @@ export interface DrawerProps {
90
90
  * Drawer description class
91
91
  */
92
92
  descriptionClass?: string;
93
+ /**
94
+ * How the drawer shows on phones (below 768px). 'fullscreen' fills the
95
+ * screen with one bar (close, title, `headerAction`), moves the description
96
+ * into the scrolling content and drops the footer, so forms keep as much
97
+ * room as possible above the keyboard; the phone's back button closes it.
98
+ * Larger screens are unchanged. `titleClass` doesn't apply to that bar.
99
+ * @default 'default'
100
+ */
101
+ phoneLayout?: 'default' | 'fullscreen';
102
+ /**
103
+ * The main action (e.g. Save) for the phone full-screen bar. A submit
104
+ * button outside the form names it with `form`.
105
+ */
106
+ headerAction?: ReactNode;
93
107
  }
94
108
  export type AlignmentMap = {
95
109
  [key in DrawerAlignment]: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pk-design/react-tailwind",
3
- "version": "1.11.1",
3
+ "version": "1.13.0",
4
4
  "main": "dist/react-tailwind.cjs.js",
5
5
  "module": "dist/react-tailwind.es.js",
6
6
  "types": "dist/types/index.d.ts",
@@ -25,6 +25,7 @@
25
25
  ],
26
26
  "scripts": {
27
27
  "build": "rollup -c && tsc --emitDeclarationOnly",
28
+ "build:watch": "rollup -c -w && tsc --emitDeclarationOnly",
28
29
  "prepare": "husky",
29
30
  "format": "prettier --write .",
30
31
  "lint": "prettier --check .",