@pk-design/react-tailwind 1.12.0 → 1.13.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.
- package/dist/cjs/components/Drawer/Drawer.js +131 -11
- package/dist/cjs/components/Drawer/Drawer.js.map +1 -1
- package/dist/cjs/components/QuantityStepper/QuantityStepper.js +1 -1
- package/dist/cjs/components/QuantityStepper/QuantityStepper.js.map +1 -1
- package/dist/cjs/components/SelectBox/SelectBox.js +1 -1
- package/dist/cjs/components/SelectBox/SelectBox.js.map +1 -1
- package/dist/es/components/Drawer/Drawer.js +132 -12
- package/dist/es/components/Drawer/Drawer.js.map +1 -1
- package/dist/es/components/QuantityStepper/QuantityStepper.js +1 -1
- package/dist/es/components/QuantityStepper/QuantityStepper.js.map +1 -1
- package/dist/es/components/SelectBox/SelectBox.js +1 -1
- package/dist/es/components/SelectBox/SelectBox.js.map +1 -1
- package/dist/react-tailwind.cjs.js +133 -13
- package/dist/react-tailwind.cjs.js.map +1 -1
- package/dist/react-tailwind.es.js +133 -13
- package/dist/react-tailwind.es.js.map +1 -1
- package/dist/types/components/Drawer/Drawer.types.d.ts +14 -0
- package/package.json +1 -1
|
@@ -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;
|