@hybr1d-tech/charizard 0.3.36

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.
Files changed (96) hide show
  1. package/README.md +44 -0
  2. package/dist/button/Button.d.ts +52 -0
  3. package/dist/button/actions-dropdown.stories.d.ts +6 -0
  4. package/dist/button/button.stories.d.ts +10 -0
  5. package/dist/button/index.d.ts +1 -0
  6. package/dist/button/menu-button.stories.d.ts +6 -0
  7. package/dist/checkbox/Checkbox.d.ts +44 -0
  8. package/dist/checkbox/index.d.ts +1 -0
  9. package/dist/combo-box/ComboBox.d.ts +23 -0
  10. package/dist/combo-box/combo-box.stories.d.ts +10 -0
  11. package/dist/combo-box/index.d.ts +1 -0
  12. package/dist/drawer/Drawer.d.ts +71 -0
  13. package/dist/drawer/index.d.ts +1 -0
  14. package/dist/empty-state/EmptyState.d.ts +13 -0
  15. package/dist/empty-state/empty-state.stories.d.ts +6 -0
  16. package/dist/empty-state/index.d.ts +1 -0
  17. package/dist/hybr1d-ui.js +8024 -0
  18. package/dist/hybr1d-ui.umd.cjs +61 -0
  19. package/dist/index.d.ts +20 -0
  20. package/dist/input/Input.d.ts +63 -0
  21. package/dist/input/InputAddon.d.ts +44 -0
  22. package/dist/input/InputContainer.d.ts +28 -0
  23. package/dist/input/InputElement.d.ts +21 -0
  24. package/dist/input/InputGroup.d.ts +17 -0
  25. package/dist/input/InputLabel.d.ts +42 -0
  26. package/dist/input/index.d.ts +6 -0
  27. package/dist/input/types.d.ts +13 -0
  28. package/dist/layout-tabs/LayoutTabs.d.ts +22 -0
  29. package/dist/layout-tabs/index.d.ts +1 -0
  30. package/dist/loader/Loader.d.ts +17 -0
  31. package/dist/loader/index.d.ts +1 -0
  32. package/dist/loader/loader.stories.d.ts +13 -0
  33. package/dist/modal/Modal.d.ts +30 -0
  34. package/dist/modal/ModalBody.d.ts +17 -0
  35. package/dist/modal/ModalContent.d.ts +18 -0
  36. package/dist/modal/ModalFooter.d.ts +34 -0
  37. package/dist/modal/ModalHeader.d.ts +21 -0
  38. package/dist/modal/ModalOverlay.d.ts +9 -0
  39. package/dist/modal/index.d.ts +6 -0
  40. package/dist/modal/usage.d.ts +1 -0
  41. package/dist/popover/Popover.d.ts +26 -0
  42. package/dist/popover/PopoverCloseButton.d.ts +23 -0
  43. package/dist/popover/PopoverContent.d.ts +32 -0
  44. package/dist/popover/PopoverDescription.d.ts +23 -0
  45. package/dist/popover/PopoverTitle.d.ts +23 -0
  46. package/dist/popover/PopoverTrigger.d.ts +29 -0
  47. package/dist/popover/index.d.ts +6 -0
  48. package/dist/popover/usage.d.ts +1 -0
  49. package/dist/progress/Progress.d.ts +63 -0
  50. package/dist/progress/index.d.ts +1 -0
  51. package/dist/radio-group/RadioGroup.d.ts +43 -0
  52. package/dist/radio-group/index.d.ts +1 -0
  53. package/dist/search/Search.d.ts +9 -0
  54. package/dist/search/index.d.ts +1 -0
  55. package/dist/segmented-control/SegmentedControl.d.ts +22 -0
  56. package/dist/segmented-control/index.d.ts +1 -0
  57. package/dist/select/Common.d.ts +9 -0
  58. package/dist/select/CreatableSelect.d.ts +100 -0
  59. package/dist/select/Select.d.ts +91 -0
  60. package/dist/select/SelectAsync.d.ts +83 -0
  61. package/dist/select/config.d.ts +3 -0
  62. package/dist/select/index.d.ts +3 -0
  63. package/dist/select/types.d.ts +15 -0
  64. package/dist/selectors/Selectors.d.ts +7 -0
  65. package/dist/selectors/index.d.ts +1 -0
  66. package/dist/style.css +1 -0
  67. package/dist/svg/SVG.d.ts +11 -0
  68. package/dist/svg/index.d.ts +1 -0
  69. package/dist/switch/Switch.d.ts +12 -0
  70. package/dist/switch/index.d.ts +1 -0
  71. package/dist/table/Table.d.ts +87 -0
  72. package/dist/table/constants.d.ts +3 -0
  73. package/dist/table/index.d.ts +1 -0
  74. package/dist/table/store.d.ts +14 -0
  75. package/dist/table/table-actions/TableActions.d.ts +7 -0
  76. package/dist/table/table-actions/index.d.ts +1 -0
  77. package/dist/table/table-columns/TableCheckbox.d.ts +11 -0
  78. package/dist/table/table-columns/TableRadio.d.ts +7 -0
  79. package/dist/table/table-columns/index.d.ts +2 -0
  80. package/dist/table/table-empty/TableEmpty.d.ts +5 -0
  81. package/dist/table/table-empty/index.d.ts +1 -0
  82. package/dist/table/table-filters/FilterCheckbox.d.ts +12 -0
  83. package/dist/table/table-filters/FilterTooltip.d.ts +8 -0
  84. package/dist/table/table-filters/TableFilter.d.ts +13 -0
  85. package/dist/table/table-filters/TableFilters.d.ts +6 -0
  86. package/dist/table/table-filters/index.d.ts +1 -0
  87. package/dist/table/table-loader/TableLoader.d.ts +4 -0
  88. package/dist/table/table-loader/index.d.ts +1 -0
  89. package/dist/table/table-selected-actions/TableSelectedActions.d.ts +7 -0
  90. package/dist/table/table-selected-actions/index.d.ts +1 -0
  91. package/dist/table/types.d.ts +36 -0
  92. package/dist/tooltip/Tooltip.d.ts +28 -0
  93. package/dist/tooltip/TooltipContent.d.ts +24 -0
  94. package/dist/tooltip/TooltipTrigger.d.ts +16 -0
  95. package/dist/tooltip/index.d.ts +1 -0
  96. package/package.json +74 -0
@@ -0,0 +1,20 @@
1
+ export * from './button';
2
+ export * from './empty-state';
3
+ export * from './table';
4
+ export * from './search';
5
+ export * from './combo-box';
6
+ export * from './drawer';
7
+ export * from './input';
8
+ export * from './modal';
9
+ export * from './popover';
10
+ export * from './select';
11
+ export * from './svg';
12
+ export * from './checkbox';
13
+ export * from './tooltip';
14
+ export * from './progress';
15
+ export * from './segmented-control';
16
+ export * from './radio-group';
17
+ export * from './layout-tabs';
18
+ export * from './selectors';
19
+ export * from './loader';
20
+ export * from './switch';
@@ -0,0 +1,63 @@
1
+ import * as React from 'react';
2
+ import { HTMLInputTypeAttribute } from 'react';
3
+ import { Inputs } from './types';
4
+ type InputProps = {
5
+ /**
6
+ * Custom classes to be applied to the input
7
+ */
8
+ customClasses?: string[] | string;
9
+ /**
10
+ * Custom styles to be applied to the input
11
+ */
12
+ customStyles?: Record<string, string>;
13
+ /**
14
+ * Type of the input
15
+ */
16
+ type?: HTMLInputTypeAttribute | 'textarea';
17
+ /**
18
+ * Placeholder of the input
19
+ */
20
+ placeholder?: string;
21
+ /**
22
+ * Name of the input
23
+ */
24
+ name?: string;
25
+ /**
26
+ * Id of the input
27
+ */
28
+ id?: string;
29
+ /**
30
+ * Value of the input
31
+ */
32
+ value?: string | number;
33
+ /**
34
+ * On change handler of the input
35
+ */
36
+ onChange?: (e: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>, arg?: any) => void;
37
+ /**
38
+ * whether the input is disabled or not
39
+ */
40
+ disabled?: boolean;
41
+ /**
42
+ * Rest props of the input
43
+ */
44
+ restprops?: any;
45
+ /**
46
+ * Number of rows of the textarea
47
+ */
48
+ rows?: number;
49
+ /**
50
+ * Number of cols of the textarea
51
+ */
52
+ cols?: number;
53
+ /**
54
+ * Error message of the input
55
+ */
56
+ errorMsg?: string | false;
57
+ };
58
+ export declare function Input({ customClasses, customStyles, name, id, value, onChange, restprops, cols, errorMsg, disabled, rows, type, placeholder, }: InputProps): import("react/jsx-runtime").JSX.Element;
59
+ export declare namespace Input {
60
+ var displayName: Inputs;
61
+ var id: Inputs;
62
+ }
63
+ export {};
@@ -0,0 +1,44 @@
1
+ /**
2
+ * @author Pratik Awaik <pratik@hybr1d.io>
3
+ */
4
+ import * as React from 'react';
5
+ import { Inputs } from './types';
6
+ interface InputDirectionAddonProps {
7
+ /**
8
+ * Children of the input addon
9
+ */
10
+ children: React.ReactNode;
11
+ /**
12
+ * to enable dropdown or not
13
+ */
14
+ isDropdown?: boolean;
15
+ /**
16
+ * dropdown options
17
+ */
18
+ dropdownOptions?: Array<{
19
+ label: string;
20
+ value: string;
21
+ }>;
22
+ /**
23
+ * handle dropdown option click
24
+ */
25
+ handleOptionClick?: (selectedOption: {
26
+ label: string;
27
+ value: string;
28
+ }) => void;
29
+ /**
30
+ * show dropdown search
31
+ */
32
+ showDropdownSearch?: boolean;
33
+ }
34
+ export declare function InputLeftAddon({ children, isDropdown, dropdownOptions, handleOptionClick, showDropdownSearch, }: InputDirectionAddonProps): import("react/jsx-runtime").JSX.Element;
35
+ export declare namespace InputLeftAddon {
36
+ var displayName: Inputs;
37
+ var id: Inputs;
38
+ }
39
+ export declare function InputRightAddon({ children, isDropdown, dropdownOptions, handleOptionClick, showDropdownSearch, }: InputDirectionAddonProps): import("react/jsx-runtime").JSX.Element;
40
+ export declare namespace InputRightAddon {
41
+ var displayName: Inputs;
42
+ var id: Inputs;
43
+ }
44
+ export {};
@@ -0,0 +1,28 @@
1
+ /**
2
+ * @author Pratik Awaik <pratik@hybr1d.io>
3
+ */
4
+ import { Inputs } from './types';
5
+ interface InputContainerProps {
6
+ /**
7
+ * Children of the input container
8
+ */
9
+ children: React.ReactNode;
10
+ /**
11
+ * Size of the input container
12
+ */
13
+ size?: 'sm' | 'md' | 'adapt';
14
+ /**
15
+ * Custom classes to be applied to the input container
16
+ */
17
+ customClassName?: string;
18
+ /**
19
+ * Custom styles to be applied to the input container
20
+ */
21
+ customStyles?: React.CSSProperties;
22
+ }
23
+ export declare function InputContainer({ children, customClassName, customStyles, size, }: InputContainerProps): import("react/jsx-runtime").JSX.Element;
24
+ export declare namespace InputContainer {
25
+ var displayName: Inputs;
26
+ var id: Inputs;
27
+ }
28
+ export {};
@@ -0,0 +1,21 @@
1
+ /**
2
+ * @author Pratik Awaik <pratik@hybr1d.io>
3
+ */
4
+ import { Inputs } from './types';
5
+ interface InputDirectionElementProps {
6
+ /**
7
+ * Children of the input element
8
+ */
9
+ children: React.ReactNode;
10
+ }
11
+ export declare function InputLeftElement({ children }: InputDirectionElementProps): import("react/jsx-runtime").JSX.Element;
12
+ export declare namespace InputLeftElement {
13
+ var displayName: Inputs;
14
+ var id: Inputs;
15
+ }
16
+ export declare function InputRightElement({ children }: InputDirectionElementProps): import("react/jsx-runtime").JSX.Element;
17
+ export declare namespace InputRightElement {
18
+ var displayName: Inputs;
19
+ var id: Inputs;
20
+ }
21
+ export {};
@@ -0,0 +1,17 @@
1
+ /**
2
+ * @author Pratik Awaik <pratik@hybr1d.io>
3
+ */
4
+ import * as React from 'react';
5
+ import { Inputs } from './types';
6
+ interface InputGroupProps {
7
+ /**
8
+ * Children of the input group
9
+ */
10
+ children: React.ReactNode;
11
+ }
12
+ export declare function InputGroup({ children }: InputGroupProps): import("react/jsx-runtime").JSX.Element;
13
+ export declare namespace InputGroup {
14
+ var displayName: Inputs;
15
+ var id: Inputs;
16
+ }
17
+ export {};
@@ -0,0 +1,42 @@
1
+ import * as React from 'react';
2
+ import { Inputs } from './types';
3
+ type InputLabelProps = {
4
+ /**
5
+ * Children of the input label
6
+ */
7
+ children: React.ReactNode;
8
+ /**
9
+ * Custom classes to be applied to the input label
10
+ */
11
+ customClasses?: string[] | string;
12
+ /**
13
+ * Custom styles to be applied to the input label
14
+ */
15
+ customStyles?: Record<string, string>;
16
+ /**
17
+ * Whether the input is required
18
+ */
19
+ required?: boolean;
20
+ /**
21
+ * htmlFor attribute of the input label
22
+ */
23
+ htmlFor?: string;
24
+ /**
25
+ * Rest props to be applied to the input label
26
+ */
27
+ restprops?: any;
28
+ /**
29
+ * info text
30
+ */
31
+ infoText?: string;
32
+ /**
33
+ * info text tooltip styles
34
+ */
35
+ infoTextTooltipStyles?: React.CSSProperties;
36
+ };
37
+ export declare function InputLabel({ children, customClasses, customStyles, required, htmlFor, restprops, infoText, infoTextTooltipStyles, }: InputLabelProps): import("react/jsx-runtime").JSX.Element;
38
+ export declare namespace InputLabel {
39
+ var displayName: Inputs;
40
+ var id: Inputs;
41
+ }
42
+ export {};
@@ -0,0 +1,6 @@
1
+ export { Input } from './Input';
2
+ export { InputLeftAddon, InputRightAddon } from './InputAddon';
3
+ export { InputContainer } from './InputContainer';
4
+ export { InputLeftElement, InputRightElement } from './InputElement';
5
+ export { InputGroup } from './InputGroup';
6
+ export { InputLabel } from './InputLabel';
@@ -0,0 +1,13 @@
1
+ export declare enum Inputs {
2
+ INPUT_ADDON = "InputAddon",
3
+ INPUT_LEFT_ADDON = "InputLeftAddon",
4
+ INPUT_RIGHT_ADDON = "InputRightAddon",
5
+ INPUT_ELEMENT = "InputElement",
6
+ INPUT_LEFT_ELEMENT = "InputLeftElement",
7
+ INPUT_RIGHT_ELEMENT = "InputRightElement",
8
+ INPUT_CONTAINER = "InputContainer",
9
+ INPUT_LABEL = "InputLabel",
10
+ INPUT_GROUP = "InputGroup",
11
+ INPUT = "Input"
12
+ }
13
+ export type Placement = 'left' | 'right';
@@ -0,0 +1,22 @@
1
+ import * as React from 'react';
2
+ interface LayoutTabsProps {
3
+ tabClassName?: string;
4
+ /**
5
+ * tabs to render
6
+ */
7
+ tabs: Array<{
8
+ label: string;
9
+ value: string;
10
+ content: React.ReactNode | string;
11
+ }>;
12
+ /**
13
+ * default value (initial tab to render)
14
+ */
15
+ defaultValue: string;
16
+ /**
17
+ * callback function when tab is changed
18
+ */
19
+ onValueChange?: (value: string) => void;
20
+ }
21
+ export declare function LayoutTabs({ tabs, defaultValue, tabClassName, onValueChange }: LayoutTabsProps): import("react/jsx-runtime").JSX.Element;
22
+ export {};
@@ -0,0 +1 @@
1
+ export * from './LayoutTabs';
@@ -0,0 +1,17 @@
1
+ import * as React from 'react';
2
+ export type LoaderProps = {
3
+ containerStyle?: React.CSSProperties;
4
+ loaderStyle?: React.CSSProperties;
5
+ variant?: LOADER_VARIANT;
6
+ };
7
+ export declare enum LOADER_VARIANT {
8
+ RING = "ring",
9
+ DUAL_RING = "dual_ring",
10
+ RIPPLE = "ripple",
11
+ ELLIPSES = "ellipses",
12
+ ROLLER = "roller",
13
+ SPINNER = "spinner",
14
+ HOURGLASS = "hourglass",
15
+ GRID = "grid"
16
+ }
17
+ export declare function Loader({ containerStyle, loaderStyle, variant }: LoaderProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './Loader';
@@ -0,0 +1,13 @@
1
+ import { Loader } from './Loader';
2
+ import type { Meta, StoryObj } from '@storybook/react';
3
+ declare const meta: Meta<typeof Loader>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Loader>;
6
+ export declare const Ring: Story;
7
+ export declare const DualRing: Story;
8
+ export declare const Ellipses: Story;
9
+ export declare const Grid: Story;
10
+ export declare const Hourglass: Story;
11
+ export declare const Ripple: Story;
12
+ export declare const Roller: Story;
13
+ export declare const Spinner: Story;
@@ -0,0 +1,30 @@
1
+ import * as React from 'react';
2
+ import * as dialog from '@zag-js/dialog';
3
+ type ModalProps = {
4
+ /**
5
+ * Modal is open or not
6
+ */
7
+ isOpen: boolean;
8
+ /**
9
+ * Modal close handler
10
+ */
11
+ onClose: () => void;
12
+ /**
13
+ * Modal content
14
+ */
15
+ children: React.ReactNode;
16
+ /**
17
+ * size of modal
18
+ */
19
+ size?: 'sm' | 'md' | 'fullScreen';
20
+ /**
21
+ * show overlay
22
+ */
23
+ showOverlay?: boolean;
24
+ /**
25
+ * Machine Props
26
+ */
27
+ machineProps?: dialog.Context | {};
28
+ };
29
+ export declare function Modal({ isOpen, onClose, children, size, showOverlay, machineProps, }: ModalProps): import("react/jsx-runtime").JSX.Element;
30
+ export {};
@@ -0,0 +1,17 @@
1
+ interface ModalBodyProps {
2
+ /**
3
+ * Modal body children
4
+ */
5
+ children: React.ReactNode;
6
+ /**
7
+ * Zagjs modal API (no need to pass when using this component)
8
+ * will be inserted by default
9
+ */
10
+ api?: any;
11
+ /**
12
+ * custom styles
13
+ */
14
+ customStyles?: React.CSSProperties;
15
+ }
16
+ export declare function ModalBody({ children, api, customStyles }: ModalBodyProps): import("react/jsx-runtime").JSX.Element;
17
+ export {};
@@ -0,0 +1,18 @@
1
+ import * as React from 'react';
2
+ interface ModalContentProps {
3
+ /**
4
+ * Modal content children
5
+ */
6
+ children: React.ReactNode;
7
+ /**
8
+ * Zagjs modal API (no need to pass when using this component)
9
+ * will be inserted by default
10
+ */
11
+ api?: any;
12
+ /**
13
+ * size of the modal
14
+ */
15
+ size?: 'sm' | 'md' | 'fullScreen';
16
+ }
17
+ export declare function ModalContent({ children, api, size }: ModalContentProps): import("react/jsx-runtime").JSX.Element;
18
+ export {};
@@ -0,0 +1,34 @@
1
+ import { BUTTON_VARIANT } from '../button';
2
+ export type FooterButtons = Array<{
3
+ variant: BUTTON_VARIANT;
4
+ onClick: () => void;
5
+ btnText: string;
6
+ btnType?: 'button' | 'submit' | 'reset';
7
+ btnSize?: 'xs' | 'sm' | 'md' | 'adapt';
8
+ disabled?: boolean;
9
+ isLoading?: boolean;
10
+ loadingText?: string;
11
+ }>;
12
+ interface ModalFooterProps {
13
+ /**
14
+ * Modal footer children
15
+ * if children is passed, default buttons will not be shown
16
+ * children acts like a custom footer
17
+ */
18
+ children?: React.ReactNode;
19
+ /**
20
+ * zagjs modal API (no need to pass when using this component)
21
+ * will be inserted by default
22
+ */
23
+ api?: any;
24
+ /**
25
+ * set of buttons to display
26
+ */
27
+ buttons: FooterButtons;
28
+ /**
29
+ * show border or not
30
+ */
31
+ showBorder?: boolean;
32
+ }
33
+ export declare function ModalFooter({ children, api, buttons, showBorder }: ModalFooterProps): import("react/jsx-runtime").JSX.Element;
34
+ export {};
@@ -0,0 +1,21 @@
1
+ interface ModalHeaderProps {
2
+ /**
3
+ * Modal header children
4
+ */
5
+ children: React.ReactNode;
6
+ /**
7
+ * Zagjs modal API (no need to pass when using this component)
8
+ * will be inserted by default
9
+ */
10
+ api?: any;
11
+ /**
12
+ * Show cross button or not
13
+ */
14
+ showCrossBtn?: boolean;
15
+ /**
16
+ * Show border or not
17
+ */
18
+ showBorder?: boolean;
19
+ }
20
+ export declare function ModalHeader({ children, api, showCrossBtn, showBorder, }: ModalHeaderProps): import("react/jsx-runtime").JSX.Element;
21
+ export {};
@@ -0,0 +1,9 @@
1
+ interface ModalOverlayProps {
2
+ /**
3
+ * Zagjs modal API (no need to pass when using this component)
4
+ * will be inserted by default
5
+ */
6
+ api?: any;
7
+ }
8
+ export declare function ModalOverlay({ api }: ModalOverlayProps): import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -0,0 +1,6 @@
1
+ export { Modal } from './Modal';
2
+ export { ModalBody } from './ModalBody';
3
+ export { ModalContent } from './ModalContent';
4
+ export { ModalFooter } from './ModalFooter';
5
+ export { ModalHeader } from './ModalHeader';
6
+ export { ModalOverlay } from './ModalOverlay';
@@ -0,0 +1 @@
1
+ export default function Example({ isOpen, onClose }: any): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,26 @@
1
+ import * as React from 'react';
2
+ import type { Placement } from '@zag-js/popper';
3
+ type PopoverProps = {
4
+ /**
5
+ * Content of the trigger
6
+ */
7
+ children: React.ReactNode;
8
+ /**
9
+ * Placement of the popover
10
+ */
11
+ placement?: Placement;
12
+ /**
13
+ * Props to pass to the popover machine
14
+ */
15
+ popoverProps?: any;
16
+ /**
17
+ * close popover on scroll
18
+ */
19
+ closeOnScroll?: boolean;
20
+ /**
21
+ * when using closeOnScroll, its necessary to pass containerRef to track scroll movement of the container you want to close the popover with respect to.
22
+ */
23
+ containerRef?: React.RefObject<HTMLElement>;
24
+ };
25
+ export declare function Popover({ children, placement, popoverProps, closeOnScroll, containerRef, }: PopoverProps): import("react/jsx-runtime").JSX.Element;
26
+ export {};
@@ -0,0 +1,23 @@
1
+ /**
2
+ * @author Pratik Awaik <pratik@hybr1d.io>
3
+ */
4
+ interface PopoverCloseButtonProps {
5
+ /**
6
+ * The content of the close button.
7
+ */
8
+ children: React.ReactNode;
9
+ /**
10
+ * The popover API object.
11
+ */
12
+ api?: any;
13
+ /**
14
+ * The styles to apply to the PopoverCloseButton.
15
+ */
16
+ styles?: React.CSSProperties;
17
+ /**
18
+ * The className to apply to the PopoverCloseButton.
19
+ */
20
+ className?: string;
21
+ }
22
+ export declare function PopoverCloseButton({ children, api, styles, className }: PopoverCloseButtonProps): import("react/jsx-runtime").JSX.Element;
23
+ export {};
@@ -0,0 +1,32 @@
1
+ /**
2
+ * @author Pratik Awaik <pratik@hybr1d.io>
3
+ */
4
+ import * as React from 'react';
5
+ interface PopoverContentProps {
6
+ /**
7
+ * The content of the PopoverContent.
8
+ */
9
+ children: React.ReactNode;
10
+ /**
11
+ * The popover API object.
12
+ */
13
+ api?: any;
14
+ /**
15
+ * The background color of the PopoverContent.
16
+ */
17
+ bg?: 'black' | 'gray' | string;
18
+ /**
19
+ * The styles to apply to the PopoverContent.
20
+ */
21
+ styles?: React.CSSProperties;
22
+ /**
23
+ * The className to apply to the PopoverContent.
24
+ */
25
+ className?: string;
26
+ /**
27
+ * The styles to apply to Popover positioner
28
+ */
29
+ positionerStyles?: React.CSSProperties;
30
+ }
31
+ export declare function PopoverContent({ children, api, bg, styles, className, positionerStyles, }: PopoverContentProps): import("react/jsx-runtime").JSX.Element;
32
+ export {};
@@ -0,0 +1,23 @@
1
+ /**
2
+ * @author Pratik Awaik <pratik@hybr1d.io>
3
+ */
4
+ interface PopoverDescriptionProps {
5
+ /**
6
+ * The content of the PopoverDescription.
7
+ */
8
+ children: React.ReactNode;
9
+ /**
10
+ * The popover API object.
11
+ */
12
+ api?: any;
13
+ /**
14
+ * The styles to apply to the PopoverDescription.
15
+ */
16
+ styles?: React.CSSProperties;
17
+ /**
18
+ * The className to apply to the PopoverDescription.
19
+ */
20
+ className?: string;
21
+ }
22
+ export declare function PopoverDescription({ children, api, styles, className }: PopoverDescriptionProps): import("react/jsx-runtime").JSX.Element;
23
+ export {};
@@ -0,0 +1,23 @@
1
+ /**
2
+ * @author Pratik Awaik <pratik@hybr1d.io>
3
+ */
4
+ interface PopoverTitleProps {
5
+ /**
6
+ * The content of the PopoverTitle.
7
+ */
8
+ children: React.ReactNode;
9
+ /**
10
+ * The popover API object.
11
+ */
12
+ api?: any;
13
+ /**
14
+ * The styles to apply to the PopoverTitle.
15
+ */
16
+ styles?: React.CSSProperties;
17
+ /**
18
+ * The className to apply to the PopoverTitle.
19
+ */
20
+ className?: string;
21
+ }
22
+ export declare function PopoverTitle({ children, api, styles, className }: PopoverTitleProps): import("react/jsx-runtime").JSX.Element;
23
+ export {};
@@ -0,0 +1,29 @@
1
+ /**
2
+ * @author Pratik Awaik <pratik@hybr1d.io>
3
+ */
4
+ interface PopoverTriggerProps {
5
+ /**
6
+ * The content of the PopoverTrigger.
7
+ */
8
+ children: React.ReactNode;
9
+ /**
10
+ * The popover API object.
11
+ */
12
+ api?: any;
13
+ /**
14
+ * Whether the popover should open on hover.
15
+ * @default true
16
+ * If set to false, the popover will only open on click.
17
+ */
18
+ openOnHover?: boolean;
19
+ /**
20
+ * The styles to apply to the PopoverTrigger.
21
+ */
22
+ styles?: React.CSSProperties;
23
+ /**
24
+ * The className to apply to the PopoverTrigger.
25
+ */
26
+ className?: string;
27
+ }
28
+ export declare function PopoverTrigger({ children, api, openOnHover, styles, className, }: PopoverTriggerProps): import("react/jsx-runtime").JSX.Element;
29
+ export {};
@@ -0,0 +1,6 @@
1
+ export { Popover } from './Popover';
2
+ export { PopoverCloseButton } from './PopoverCloseButton';
3
+ export { PopoverContent } from './PopoverContent';
4
+ export { PopoverDescription } from './PopoverDescription';
5
+ export { PopoverTitle } from './PopoverTitle';
6
+ export { PopoverTrigger } from './PopoverTrigger';
@@ -0,0 +1 @@
1
+ export default function Example(): import("react/jsx-runtime").JSX.Element;