beesoft-components 0.4.7 → 0.4.8
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/index.es.js +2629 -2602
- package/dist/index.es.js.gz +0 -0
- package/dist/index.umd.js +16 -16
- package/dist/index.umd.js.gz +0 -0
- package/package.json +1 -1
- package/types/index.d.ts +41 -0
package/dist/index.umd.js.gz
CHANGED
|
Binary file
|
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { ButtonHTMLAttributes } from 'react';
|
|
2
2
|
import { ForwardRefExoticComponent } from 'react';
|
|
3
3
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
4
|
+
import { JSXElementConstructor } from 'react';
|
|
4
5
|
import { default as React_2 } from 'react';
|
|
6
|
+
import { ReactElement } from 'react';
|
|
5
7
|
import { ReactNode } from 'react';
|
|
6
8
|
import { ReactPortal } from 'react';
|
|
7
9
|
import { RefAttributes } from 'react';
|
|
@@ -326,6 +328,45 @@ declare interface MarkupEvents {
|
|
|
326
328
|
markupCreated?: (element: Element) => void;
|
|
327
329
|
}
|
|
328
330
|
|
|
331
|
+
export declare const MediaQuery: ({ mobileQuery, tabletQuery, desktopQuery, mobileMarkup, aboveMobileMarkup, tabletMarkup, desktopMarkup, }: MediaQueryProps) => string | number | true | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | null;
|
|
332
|
+
|
|
333
|
+
declare interface MediaQueryProps {
|
|
334
|
+
/**
|
|
335
|
+
* The media query for mobile devices.
|
|
336
|
+
*
|
|
337
|
+
* Default: `screen and (max-width: 640px)`
|
|
338
|
+
*/
|
|
339
|
+
mobileQuery?: string;
|
|
340
|
+
/**
|
|
341
|
+
* The media query for tablet devices.
|
|
342
|
+
*
|
|
343
|
+
* Default: `screen and (min-width: 641px and max-width: 768px)`
|
|
344
|
+
*/
|
|
345
|
+
tabletQuery?: string;
|
|
346
|
+
/**
|
|
347
|
+
* The media query for desktop devices.
|
|
348
|
+
*
|
|
349
|
+
* Default: `screen and (min-width: 1024px)`
|
|
350
|
+
*/
|
|
351
|
+
desktopQuery?: string;
|
|
352
|
+
/**
|
|
353
|
+
* Markup to use when a device is a mobile phone.
|
|
354
|
+
*/
|
|
355
|
+
mobileMarkup?: TypeOrArray<ReactNode>;
|
|
356
|
+
/**
|
|
357
|
+
* Markup to use when a device is anything other than a mobile phone.
|
|
358
|
+
*/
|
|
359
|
+
aboveMobileMarkup?: TypeOrArray<ReactNode>;
|
|
360
|
+
/**
|
|
361
|
+
* Markup to use when a device is a tablet.
|
|
362
|
+
*/
|
|
363
|
+
tabletMarkup?: TypeOrArray<ReactNode>;
|
|
364
|
+
/**
|
|
365
|
+
* Markup to use when a device is a desktop.
|
|
366
|
+
*/
|
|
367
|
+
desktopMarkup?: TypeOrArray<ReactNode>;
|
|
368
|
+
}
|
|
369
|
+
|
|
329
370
|
export declare const MobileOverlayPanel: ({ visible, target, appendTo, unmountWhenHidden, transitionDuration, showTransitionOptions, hideTransitionOptions, approveText, shown, hidden, isClickedWithin, children, }: MobileOverlayPanelProps) => ReactPortal;
|
|
330
371
|
|
|
331
372
|
declare interface MobileOverlayPanelProps {
|