@mieweb/ui 0.6.1-dev.126 → 0.6.1-dev.131
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/brands/index.cjs +12 -12
- package/dist/brands/index.js +3 -3
- package/dist/{chunk-MPOWJVV4.js → chunk-3OHVUXDG.js} +3 -3
- package/dist/{chunk-MPOWJVV4.js.map → chunk-3OHVUXDG.js.map} +1 -1
- package/dist/chunk-44CK4CT2.cjs +336 -0
- package/dist/chunk-44CK4CT2.cjs.map +1 -0
- package/dist/chunk-4LVPQ44A.js +228 -0
- package/dist/chunk-4LVPQ44A.js.map +1 -0
- package/dist/chunk-7XUN3OQT.js +3 -0
- package/dist/{chunk-V2DF2GUE.js.map → chunk-7XUN3OQT.js.map} +1 -1
- package/dist/chunk-AEGYWRSL.js +513 -0
- package/dist/chunk-AEGYWRSL.js.map +1 -0
- package/dist/chunk-AFKKJEV5.cjs +72 -0
- package/dist/chunk-AFKKJEV5.cjs.map +1 -0
- package/dist/chunk-AT732HC6.cjs +4 -0
- package/dist/{chunk-74K3RRU7.cjs.map → chunk-AT732HC6.cjs.map} +1 -1
- package/dist/chunk-BIT27PPD.js +49 -0
- package/dist/chunk-BIT27PPD.js.map +1 -0
- package/dist/chunk-BT3ZQJGT.cjs +130 -0
- package/dist/chunk-BT3ZQJGT.cjs.map +1 -0
- package/dist/chunk-BX6BTDTR.js +34 -0
- package/dist/chunk-BX6BTDTR.js.map +1 -0
- package/dist/chunk-C2544GKZ.js +313 -0
- package/dist/chunk-C2544GKZ.js.map +1 -0
- package/dist/chunk-C7RVKV25.cjs +25 -0
- package/dist/chunk-C7RVKV25.cjs.map +1 -0
- package/dist/{chunk-CV4CVGLO.cjs → chunk-DFT7TYKL.cjs} +3 -3
- package/dist/{chunk-CV4CVGLO.cjs.map → chunk-DFT7TYKL.cjs.map} +1 -1
- package/dist/chunk-DLNJLCNO.cjs +101 -0
- package/dist/chunk-DLNJLCNO.cjs.map +1 -0
- package/dist/chunk-DUPR6FEL.js +43 -0
- package/dist/chunk-DUPR6FEL.js.map +1 -0
- package/dist/chunk-EJUPJGKA.js +78 -0
- package/dist/chunk-EJUPJGKA.js.map +1 -0
- package/dist/chunk-ERLPVXOV.js +22 -0
- package/dist/chunk-ERLPVXOV.js.map +1 -0
- package/dist/chunk-KJ5BSGEO.cjs +258 -0
- package/dist/chunk-KJ5BSGEO.cjs.map +1 -0
- package/dist/chunk-MARLXJQO.cjs +537 -0
- package/dist/chunk-MARLXJQO.cjs.map +1 -0
- package/dist/{chunk-WFS6R2F5.js → chunk-OVQKCUTZ.js} +3 -3
- package/dist/{chunk-WFS6R2F5.js.map → chunk-OVQKCUTZ.js.map} +1 -1
- package/dist/chunk-OXYFTCRW.cjs +57 -0
- package/dist/chunk-OXYFTCRW.cjs.map +1 -0
- package/dist/chunk-PI3KOYAT.js +192 -0
- package/dist/chunk-PI3KOYAT.js.map +1 -0
- package/dist/chunk-QKAPKIXI.cjs +80 -0
- package/dist/chunk-QKAPKIXI.cjs.map +1 -0
- package/dist/{chunk-MV337VA7.js → chunk-R6PBBPU3.js} +2 -2
- package/dist/{chunk-MV337VA7.js.map → chunk-R6PBBPU3.js.map} +1 -1
- package/dist/chunk-ROXYP3BZ.cjs +214 -0
- package/dist/chunk-ROXYP3BZ.cjs.map +1 -0
- package/dist/chunk-T3C4RNJ4.js +106 -0
- package/dist/chunk-T3C4RNJ4.js.map +1 -0
- package/dist/{chunk-7BARESXI.cjs → chunk-ULF4PWHW.cjs} +3 -3
- package/dist/{chunk-7BARESXI.cjs.map → chunk-ULF4PWHW.cjs.map} +1 -1
- package/dist/chunk-UOOH356R.cjs +66 -0
- package/dist/chunk-UOOH356R.cjs.map +1 -0
- package/dist/chunk-Y2S6QMKU.js +78 -0
- package/dist/chunk-Y2S6QMKU.js.map +1 -0
- package/dist/{chunk-JLQTPLSY.cjs → chunk-Z6NRP4Z5.cjs} +2 -2
- package/dist/{chunk-JLQTPLSY.cjs.map → chunk-Z6NRP4Z5.cjs.map} +1 -1
- package/dist/components/AlertDialog/index.cjs +18 -0
- package/dist/components/AlertDialog/index.cjs.map +1 -0
- package/dist/components/AlertDialog/index.d.cts +56 -0
- package/dist/components/AlertDialog/index.d.ts +56 -0
- package/dist/components/AlertDialog/index.js +9 -0
- package/dist/components/AlertDialog/index.js.map +1 -0
- package/dist/components/Autocomplete/index.cjs +15 -0
- package/dist/components/Autocomplete/index.cjs.map +1 -0
- package/dist/components/Autocomplete/index.d.cts +77 -0
- package/dist/components/Autocomplete/index.d.ts +77 -0
- package/dist/components/Autocomplete/index.js +6 -0
- package/dist/components/Autocomplete/index.js.map +1 -0
- package/dist/components/Collapsible/index.cjs +21 -0
- package/dist/components/Collapsible/index.cjs.map +1 -0
- package/dist/components/Collapsible/index.d.cts +33 -0
- package/dist/components/Collapsible/index.d.ts +33 -0
- package/dist/components/Collapsible/index.js +4 -0
- package/dist/components/Collapsible/index.js.map +1 -0
- package/dist/components/CountryCodeDropdown/index.cjs +5 -5
- package/dist/components/CountryCodeDropdown/index.js +2 -2
- package/dist/components/Dropdown/index.cjs +8 -8
- package/dist/components/Dropdown/index.js +2 -2
- package/dist/components/FloatingWindow/index.cjs +18 -0
- package/dist/components/FloatingWindow/index.cjs.map +1 -0
- package/dist/components/FloatingWindow/index.d.cts +64 -0
- package/dist/components/FloatingWindow/index.d.ts +64 -0
- package/dist/components/FloatingWindow/index.js +5 -0
- package/dist/components/FloatingWindow/index.js.map +1 -0
- package/dist/components/Label/index.cjs +17 -0
- package/dist/components/Label/index.cjs.map +1 -0
- package/dist/components/Label/index.d.cts +23 -0
- package/dist/components/Label/index.d.ts +23 -0
- package/dist/components/Label/index.js +4 -0
- package/dist/components/Label/index.js.map +1 -0
- package/dist/components/RichTextEditor/index.cjs +32 -0
- package/dist/components/RichTextEditor/index.cjs.map +1 -0
- package/dist/components/RichTextEditor/index.d.cts +62 -0
- package/dist/components/RichTextEditor/index.d.ts +62 -0
- package/dist/components/RichTextEditor/index.js +11 -0
- package/dist/components/RichTextEditor/index.js.map +1 -0
- package/dist/components/ScrollArea/index.cjs +17 -0
- package/dist/components/ScrollArea/index.cjs.map +1 -0
- package/dist/components/ScrollArea/index.d.cts +22 -0
- package/dist/components/ScrollArea/index.d.ts +22 -0
- package/dist/components/ScrollArea/index.js +4 -0
- package/dist/components/ScrollArea/index.js.map +1 -0
- package/dist/components/Separator/index.cjs +17 -0
- package/dist/components/Separator/index.cjs.map +1 -0
- package/dist/components/Separator/index.d.cts +27 -0
- package/dist/components/Separator/index.d.ts +27 -0
- package/dist/components/Separator/index.js +4 -0
- package/dist/components/Separator/index.js.map +1 -0
- package/dist/components/Sheet/index.cjs +48 -0
- package/dist/components/Sheet/index.cjs.map +1 -0
- package/dist/components/Sheet/index.d.cts +62 -0
- package/dist/components/Sheet/index.d.ts +62 -0
- package/dist/components/Sheet/index.js +7 -0
- package/dist/components/Sheet/index.js.map +1 -0
- package/dist/components/Toggle/index.cjs +17 -0
- package/dist/components/Toggle/index.cjs.map +1 -0
- package/dist/components/Toggle/index.d.cts +28 -0
- package/dist/components/Toggle/index.d.ts +28 -0
- package/dist/components/Toggle/index.js +4 -0
- package/dist/components/Toggle/index.js.map +1 -0
- package/dist/hooks/index.cjs +5 -5
- package/dist/hooks/index.js +1 -1
- package/dist/html-MdxqSzjD.d.cts +13 -0
- package/dist/html-MdxqSzjD.d.ts +13 -0
- package/dist/index.cjs +352 -225
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +43 -32
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/utils/index.cjs +27 -18
- package/dist/utils/index.d.cts +1 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +3 -2
- package/package.json +2 -2
- package/dist/chunk-74K3RRU7.cjs +0 -4
- package/dist/chunk-V2DF2GUE.js +0 -3
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { VariantProps } from 'class-variance-authority';
|
|
5
|
+
|
|
6
|
+
declare const sheetOverlayVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
7
|
+
declare const sheetContentVariants: (props?: ({
|
|
8
|
+
side?: "left" | "right" | "bottom" | "top" | null | undefined;
|
|
9
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
10
|
+
interface SheetProps extends VariantProps<typeof sheetContentVariants> {
|
|
11
|
+
/** Whether the sheet is open */
|
|
12
|
+
open: boolean;
|
|
13
|
+
/** Callback when the sheet should close */
|
|
14
|
+
onOpenChange: (open: boolean) => void;
|
|
15
|
+
/** Sheet content */
|
|
16
|
+
children: React.ReactNode;
|
|
17
|
+
/** Close when clicking the overlay (default true) */
|
|
18
|
+
closeOnOverlayClick?: boolean;
|
|
19
|
+
/** Close when pressing Escape (default true) */
|
|
20
|
+
closeOnEscape?: boolean;
|
|
21
|
+
/** Additional class name for the sheet content */
|
|
22
|
+
className?: string;
|
|
23
|
+
/** ID for the sheet, used for accessibility */
|
|
24
|
+
id?: string;
|
|
25
|
+
/** Accessible label for the sheet */
|
|
26
|
+
'aria-label'?: string;
|
|
27
|
+
/** ID of the element that labels the sheet */
|
|
28
|
+
'aria-labelledby'?: string;
|
|
29
|
+
/** ID of the element that describes the sheet */
|
|
30
|
+
'aria-describedby'?: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* A panel that slides in from an edge of the screen.
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```tsx
|
|
37
|
+
* <Sheet open={open} onOpenChange={setOpen} side="right">
|
|
38
|
+
* <SheetHeader>
|
|
39
|
+
* <SheetTitle>Filters</SheetTitle>
|
|
40
|
+
* </SheetHeader>
|
|
41
|
+
* <SheetBody>...</SheetBody>
|
|
42
|
+
* </Sheet>
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
declare function Sheet({ open, onOpenChange, children, side, closeOnOverlayClick, closeOnEscape, className, id, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, 'aria-describedby': ariaDescribedBy, }: SheetProps): react_jsx_runtime.JSX.Element | null;
|
|
46
|
+
declare namespace Sheet {
|
|
47
|
+
var displayName: string;
|
|
48
|
+
}
|
|
49
|
+
type SheetHeaderProps = React.HTMLAttributes<HTMLDivElement>;
|
|
50
|
+
declare const SheetHeader: React.ForwardRefExoticComponent<SheetHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
51
|
+
type SheetTitleProps = React.HTMLAttributes<HTMLHeadingElement>;
|
|
52
|
+
declare const SheetTitle: React.ForwardRefExoticComponent<SheetTitleProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
53
|
+
type SheetDescriptionProps = React.HTMLAttributes<HTMLParagraphElement>;
|
|
54
|
+
declare const SheetDescription: React.ForwardRefExoticComponent<SheetDescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
|
|
55
|
+
type SheetBodyProps = React.HTMLAttributes<HTMLDivElement>;
|
|
56
|
+
declare const SheetBody: React.ForwardRefExoticComponent<SheetBodyProps & React.RefAttributes<HTMLDivElement>>;
|
|
57
|
+
type SheetFooterProps = React.HTMLAttributes<HTMLDivElement>;
|
|
58
|
+
declare const SheetFooter: React.ForwardRefExoticComponent<SheetFooterProps & React.RefAttributes<HTMLDivElement>>;
|
|
59
|
+
type SheetCloseProps = React.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
60
|
+
declare const SheetClose: React.ForwardRefExoticComponent<SheetCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
61
|
+
|
|
62
|
+
export { Sheet, SheetBody, type SheetBodyProps, SheetClose, type SheetCloseProps, SheetDescription, type SheetDescriptionProps, SheetFooter, type SheetFooterProps, SheetHeader, type SheetHeaderProps, type SheetProps, SheetTitle, type SheetTitleProps, sheetContentVariants, sheetOverlayVariants };
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { VariantProps } from 'class-variance-authority';
|
|
5
|
+
|
|
6
|
+
declare const sheetOverlayVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
7
|
+
declare const sheetContentVariants: (props?: ({
|
|
8
|
+
side?: "left" | "right" | "bottom" | "top" | null | undefined;
|
|
9
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
10
|
+
interface SheetProps extends VariantProps<typeof sheetContentVariants> {
|
|
11
|
+
/** Whether the sheet is open */
|
|
12
|
+
open: boolean;
|
|
13
|
+
/** Callback when the sheet should close */
|
|
14
|
+
onOpenChange: (open: boolean) => void;
|
|
15
|
+
/** Sheet content */
|
|
16
|
+
children: React.ReactNode;
|
|
17
|
+
/** Close when clicking the overlay (default true) */
|
|
18
|
+
closeOnOverlayClick?: boolean;
|
|
19
|
+
/** Close when pressing Escape (default true) */
|
|
20
|
+
closeOnEscape?: boolean;
|
|
21
|
+
/** Additional class name for the sheet content */
|
|
22
|
+
className?: string;
|
|
23
|
+
/** ID for the sheet, used for accessibility */
|
|
24
|
+
id?: string;
|
|
25
|
+
/** Accessible label for the sheet */
|
|
26
|
+
'aria-label'?: string;
|
|
27
|
+
/** ID of the element that labels the sheet */
|
|
28
|
+
'aria-labelledby'?: string;
|
|
29
|
+
/** ID of the element that describes the sheet */
|
|
30
|
+
'aria-describedby'?: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* A panel that slides in from an edge of the screen.
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```tsx
|
|
37
|
+
* <Sheet open={open} onOpenChange={setOpen} side="right">
|
|
38
|
+
* <SheetHeader>
|
|
39
|
+
* <SheetTitle>Filters</SheetTitle>
|
|
40
|
+
* </SheetHeader>
|
|
41
|
+
* <SheetBody>...</SheetBody>
|
|
42
|
+
* </Sheet>
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
declare function Sheet({ open, onOpenChange, children, side, closeOnOverlayClick, closeOnEscape, className, id, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, 'aria-describedby': ariaDescribedBy, }: SheetProps): react_jsx_runtime.JSX.Element | null;
|
|
46
|
+
declare namespace Sheet {
|
|
47
|
+
var displayName: string;
|
|
48
|
+
}
|
|
49
|
+
type SheetHeaderProps = React.HTMLAttributes<HTMLDivElement>;
|
|
50
|
+
declare const SheetHeader: React.ForwardRefExoticComponent<SheetHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
51
|
+
type SheetTitleProps = React.HTMLAttributes<HTMLHeadingElement>;
|
|
52
|
+
declare const SheetTitle: React.ForwardRefExoticComponent<SheetTitleProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
53
|
+
type SheetDescriptionProps = React.HTMLAttributes<HTMLParagraphElement>;
|
|
54
|
+
declare const SheetDescription: React.ForwardRefExoticComponent<SheetDescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
|
|
55
|
+
type SheetBodyProps = React.HTMLAttributes<HTMLDivElement>;
|
|
56
|
+
declare const SheetBody: React.ForwardRefExoticComponent<SheetBodyProps & React.RefAttributes<HTMLDivElement>>;
|
|
57
|
+
type SheetFooterProps = React.HTMLAttributes<HTMLDivElement>;
|
|
58
|
+
declare const SheetFooter: React.ForwardRefExoticComponent<SheetFooterProps & React.RefAttributes<HTMLDivElement>>;
|
|
59
|
+
type SheetCloseProps = React.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
60
|
+
declare const SheetClose: React.ForwardRefExoticComponent<SheetCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
61
|
+
|
|
62
|
+
export { Sheet, SheetBody, type SheetBodyProps, SheetClose, type SheetCloseProps, SheetDescription, type SheetDescriptionProps, SheetFooter, type SheetFooterProps, SheetHeader, type SheetHeaderProps, type SheetProps, SheetTitle, type SheetTitleProps, sheetContentVariants, sheetOverlayVariants };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { Sheet, SheetBody, SheetClose, SheetDescription, SheetFooter, SheetHeader, SheetTitle, sheetContentVariants, sheetOverlayVariants } from '../../chunk-4LVPQ44A.js';
|
|
2
|
+
import '../../chunk-4SMSH4OY.js';
|
|
3
|
+
import '../../chunk-T4ME7QCT.js';
|
|
4
|
+
import '../../chunk-VSQF22GL.js';
|
|
5
|
+
import '../../chunk-F3SOEIN2.js';
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
7
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkDLNJLCNO_cjs = require('../../chunk-DLNJLCNO.cjs');
|
|
4
|
+
require('../../chunk-OR5DRJCW.cjs');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
Object.defineProperty(exports, "Toggle", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return chunkDLNJLCNO_cjs.Toggle; }
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "toggleVariants", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () { return chunkDLNJLCNO_cjs.toggleVariants; }
|
|
15
|
+
});
|
|
16
|
+
//# sourceMappingURL=index.cjs.map
|
|
17
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { VariantProps } from 'class-variance-authority';
|
|
4
|
+
|
|
5
|
+
declare const toggleVariants: (props?: ({
|
|
6
|
+
variant?: "outline" | "default" | null | undefined;
|
|
7
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
8
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
9
|
+
interface ToggleProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'onChange'>, VariantProps<typeof toggleVariants> {
|
|
10
|
+
/** Controlled pressed state */
|
|
11
|
+
pressed?: boolean;
|
|
12
|
+
/** Default pressed state (uncontrolled) */
|
|
13
|
+
defaultPressed?: boolean;
|
|
14
|
+
/** Callback fired when the pressed state changes */
|
|
15
|
+
onPressedChange?: (pressed: boolean) => void;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* A two-state toggle button.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```tsx
|
|
22
|
+
* <Toggle aria-label="Bold"><BoldIcon /></Toggle>
|
|
23
|
+
* <Toggle pressed={italic} onPressedChange={setItalic}>Italic</Toggle>
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
declare const Toggle: React.ForwardRefExoticComponent<ToggleProps & React.RefAttributes<HTMLButtonElement>>;
|
|
27
|
+
|
|
28
|
+
export { Toggle, type ToggleProps, toggleVariants };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { VariantProps } from 'class-variance-authority';
|
|
4
|
+
|
|
5
|
+
declare const toggleVariants: (props?: ({
|
|
6
|
+
variant?: "outline" | "default" | null | undefined;
|
|
7
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
8
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
9
|
+
interface ToggleProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'onChange'>, VariantProps<typeof toggleVariants> {
|
|
10
|
+
/** Controlled pressed state */
|
|
11
|
+
pressed?: boolean;
|
|
12
|
+
/** Default pressed state (uncontrolled) */
|
|
13
|
+
defaultPressed?: boolean;
|
|
14
|
+
/** Callback fired when the pressed state changes */
|
|
15
|
+
onPressedChange?: (pressed: boolean) => void;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* A two-state toggle button.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```tsx
|
|
22
|
+
* <Toggle aria-label="Bold"><BoldIcon /></Toggle>
|
|
23
|
+
* <Toggle pressed={italic} onPressedChange={setItalic}>Italic</Toggle>
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
declare const Toggle: React.ForwardRefExoticComponent<ToggleProps & React.RefAttributes<HTMLButtonElement>>;
|
|
27
|
+
|
|
28
|
+
export { Toggle, type ToggleProps, toggleVariants };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
package/dist/hooks/index.cjs
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
var chunkFSBFQBNE_cjs = require('../chunk-FSBFQBNE.cjs');
|
|
4
4
|
var chunk2O7D6F67_cjs = require('../chunk-2O7D6F67.cjs');
|
|
5
5
|
var chunk6HFFWEM3_cjs = require('../chunk-6HFFWEM3.cjs');
|
|
6
|
-
var chunkIKMR2ADM_cjs = require('../chunk-IKMR2ADM.cjs');
|
|
7
6
|
var chunkNNEFAUHV_cjs = require('../chunk-NNEFAUHV.cjs');
|
|
8
7
|
var chunkFHY3K6PL_cjs = require('../chunk-FHY3K6PL.cjs');
|
|
8
|
+
var chunkIKMR2ADM_cjs = require('../chunk-IKMR2ADM.cjs');
|
|
9
9
|
require('../chunk-SCV7C55E.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
@@ -58,10 +58,6 @@ Object.defineProperty(exports, "usePrefersReducedMotion", {
|
|
|
58
58
|
enumerable: true,
|
|
59
59
|
get: function () { return chunk6HFFWEM3_cjs.usePrefersReducedMotion; }
|
|
60
60
|
});
|
|
61
|
-
Object.defineProperty(exports, "useClickOutside", {
|
|
62
|
-
enumerable: true,
|
|
63
|
-
get: function () { return chunkIKMR2ADM_cjs.useClickOutside; }
|
|
64
|
-
});
|
|
65
61
|
Object.defineProperty(exports, "useFocusTrap", {
|
|
66
62
|
enumerable: true,
|
|
67
63
|
get: function () { return chunkNNEFAUHV_cjs.useFocusTrap; }
|
|
@@ -70,5 +66,9 @@ Object.defineProperty(exports, "useEscapeKey", {
|
|
|
70
66
|
enumerable: true,
|
|
71
67
|
get: function () { return chunkFHY3K6PL_cjs.useEscapeKey; }
|
|
72
68
|
});
|
|
69
|
+
Object.defineProperty(exports, "useClickOutside", {
|
|
70
|
+
enumerable: true,
|
|
71
|
+
get: function () { return chunkIKMR2ADM_cjs.useClickOutside; }
|
|
72
|
+
});
|
|
73
73
|
//# sourceMappingURL=index.cjs.map
|
|
74
74
|
//# sourceMappingURL=index.cjs.map
|
package/dist/hooks/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export { useCommandK, useIsDesktop, useIsLargeDesktop, useIsMobile, useIsMobileOrTablet, useIsSmallTablet, useIsTablet, useKeyboardShortcut, useMediaQuery, useScrollSpy } from '../chunk-Q7NBJFEB.js';
|
|
2
2
|
export { useTheme } from '../chunk-KJZNEVYM.js';
|
|
3
3
|
export { usePrefersReducedMotion } from '../chunk-HB7C7NB5.js';
|
|
4
|
-
export { useClickOutside } from '../chunk-OKBR6PX4.js';
|
|
5
4
|
export { useFocusTrap } from '../chunk-4SMSH4OY.js';
|
|
6
5
|
export { useEscapeKey } from '../chunk-T4ME7QCT.js';
|
|
6
|
+
export { useClickOutside } from '../chunk-OKBR6PX4.js';
|
|
7
7
|
import '../chunk-VSQF22GL.js';
|
|
8
8
|
//# sourceMappingURL=index.js.map
|
|
9
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Extracts visible text from an HTML string without using regex.
|
|
3
|
+
* Uses a simple character-by-character state machine to skip tags.
|
|
4
|
+
* This avoids CodeQL false-positives associated with regex-based tag stripping.
|
|
5
|
+
*/
|
|
6
|
+
declare function stripHtmlTags(html: string): string;
|
|
7
|
+
/**
|
|
8
|
+
* Returns true when an HTML string has no visible text content.
|
|
9
|
+
* This is a visibility check, not a sanitizer — do NOT use for XSS prevention.
|
|
10
|
+
*/
|
|
11
|
+
declare function isHtmlEmpty(html: string): boolean;
|
|
12
|
+
|
|
13
|
+
export { isHtmlEmpty as i, stripHtmlTags as s };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Extracts visible text from an HTML string without using regex.
|
|
3
|
+
* Uses a simple character-by-character state machine to skip tags.
|
|
4
|
+
* This avoids CodeQL false-positives associated with regex-based tag stripping.
|
|
5
|
+
*/
|
|
6
|
+
declare function stripHtmlTags(html: string): string;
|
|
7
|
+
/**
|
|
8
|
+
* Returns true when an HTML string has no visible text content.
|
|
9
|
+
* This is a visibility check, not a sanitizer — do NOT use for XSS prevention.
|
|
10
|
+
*/
|
|
11
|
+
declare function isHtmlEmpty(html: string): boolean;
|
|
12
|
+
|
|
13
|
+
export { isHtmlEmpty as i, stripHtmlTags as s };
|