@hybr1d-tech/charizard 0.6.108 → 0.7.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.
- package/dist/hybr1d-ui.js +3636 -3635
- package/dist/hybr1d-ui.umd.cjs +14 -14
- package/dist/index.d.ts +2941 -1
- package/package.json +17 -16
- package/dist/components/alert/Alert.d.ts +0 -24
- package/dist/components/alert/index.d.ts +0 -1
- package/dist/components/asyncImage/AsyncImage.d.ts +0 -14
- package/dist/components/asyncImage/index.d.ts +0 -1
- package/dist/components/asyncImage/types.d.ts +0 -4
- package/dist/components/avatar/Avatar.d.ts +0 -6
- package/dist/components/avatar/index.d.ts +0 -1
- package/dist/components/badge/Badge.d.ts +0 -50
- package/dist/components/badge/index.d.ts +0 -1
- package/dist/components/breadcrumbs/BreadCrumbs.d.ts +0 -1
- package/dist/components/breadcrumbs/index.d.ts +0 -3
- package/dist/components/breadcrumbs/store.d.ts +0 -11
- package/dist/components/breadcrumbs/useBreadCrumbs.d.ts +0 -7
- package/dist/components/button/Button.d.ts +0 -55
- package/dist/components/button/actions-dropdown.stories.d.ts +0 -7
- package/dist/components/button/button.stories.d.ts +0 -11
- package/dist/components/button/index.d.ts +0 -1
- package/dist/components/button/menu-button.stories.d.ts +0 -7
- package/dist/components/button-v2/ButtonV2.d.ts +0 -77
- package/dist/components/button-v2/buttonV2.stories.d.ts +0 -9
- package/dist/components/button-v2/group-action.stories.d.ts +0 -9
- package/dist/components/button-v2/index.d.ts +0 -2
- package/dist/components/button-v2/types.d.ts +0 -21
- package/dist/components/checkbox/Checkbox.d.ts +0 -44
- package/dist/components/checkbox/checkbox.stories.d.ts +0 -7
- package/dist/components/checkbox/index.d.ts +0 -1
- package/dist/components/checkbox-v2/CheckboxV2.d.ts +0 -10
- package/dist/components/checkbox-v2/index.d.ts +0 -1
- package/dist/components/color-picker/ColorPicker.d.ts +0 -10
- package/dist/components/color-picker/index.d.ts +0 -1
- package/dist/components/date-picker/DatePicker.d.ts +0 -30
- package/dist/components/date-picker/index.d.ts +0 -1
- package/dist/components/drawer/Drawer.d.ts +0 -76
- package/dist/components/drawer/index.d.ts +0 -1
- package/dist/components/drawer-v2/Drawer.d.ts +0 -83
- package/dist/components/drawer-v2/index.d.ts +0 -1
- package/dist/components/empty-state/EmptyState.d.ts +0 -16
- package/dist/components/empty-state/empty-state.stories.d.ts +0 -7
- package/dist/components/empty-state/index.d.ts +0 -1
- package/dist/components/index.d.ts +0 -43
- package/dist/components/input/Input.d.ts +0 -72
- package/dist/components/input/InputAddon.d.ts +0 -41
- package/dist/components/input/InputContainer.d.ts +0 -26
- package/dist/components/input/InputElement.d.ts +0 -19
- package/dist/components/input/InputGroup.d.ts +0 -14
- package/dist/components/input/InputLabel.d.ts +0 -46
- package/dist/components/input/index.d.ts +0 -6
- package/dist/components/input/input.stories.d.ts +0 -7
- package/dist/components/input/types.d.ts +0 -13
- package/dist/components/input-v2/Input.d.ts +0 -20
- package/dist/components/input-v2/InputAdornment.d.ts +0 -64
- package/dist/components/input-v2/InputControl.d.ts +0 -27
- package/dist/components/input-v2/InputCount.d.ts +0 -32
- package/dist/components/input-v2/InputGroup.d.ts +0 -6
- package/dist/components/input-v2/InputIcon.d.ts +0 -48
- package/dist/components/input-v2/InputNumber.d.ts +0 -24
- package/dist/components/input-v2/Label.d.ts +0 -24
- package/dist/components/input-v2/NumberAdornment.d.ts +0 -24
- package/dist/components/input-v2/Textarea.d.ts +0 -23
- package/dist/components/input-v2/index.d.ts +0 -10
- package/dist/components/input-v2/types.d.ts +0 -329
- package/dist/components/layout-tabs/LayoutTabs.d.ts +0 -22
- package/dist/components/layout-tabs/index.d.ts +0 -1
- package/dist/components/loader/Loader.d.ts +0 -17
- package/dist/components/loader/index.d.ts +0 -1
- package/dist/components/loader/loader.stories.d.ts +0 -14
- package/dist/components/modal/Modal.d.ts +0 -30
- package/dist/components/modal/ModalBody.d.ts +0 -17
- package/dist/components/modal/ModalContent.d.ts +0 -18
- package/dist/components/modal/ModalFooter.d.ts +0 -38
- package/dist/components/modal/ModalHeader.d.ts +0 -21
- package/dist/components/modal/ModalOverlay.d.ts +0 -9
- package/dist/components/modal/index.d.ts +0 -6
- package/dist/components/modal/usage.d.ts +0 -1
- package/dist/components/pill/Pill.d.ts +0 -15
- package/dist/components/pill/index.d.ts +0 -1
- package/dist/components/popover/Popover.d.ts +0 -26
- package/dist/components/popover/PopoverCloseButton.d.ts +0 -23
- package/dist/components/popover/PopoverContent.d.ts +0 -32
- package/dist/components/popover/PopoverDescription.d.ts +0 -23
- package/dist/components/popover/PopoverTitle.d.ts +0 -23
- package/dist/components/popover/PopoverTrigger.d.ts +0 -29
- package/dist/components/popover/index.d.ts +0 -6
- package/dist/components/popover/usage.d.ts +0 -1
- package/dist/components/progress/Progress.d.ts +0 -63
- package/dist/components/progress/index.d.ts +0 -1
- package/dist/components/radio-group/RadioGroup.d.ts +0 -45
- package/dist/components/radio-group/index.d.ts +0 -1
- package/dist/components/radio-group/radio.stories.d.ts +0 -7
- package/dist/components/search/Search.d.ts +0 -14
- package/dist/components/search/index.d.ts +0 -1
- package/dist/components/search/search.stories.d.ts +0 -7
- package/dist/components/search-v2/Search.d.ts +0 -20
- package/dist/components/search-v2/index.d.ts +0 -1
- package/dist/components/search-v2/types.d.ts +0 -6
- package/dist/components/segmented-control/SegmentedControl.d.ts +0 -22
- package/dist/components/segmented-control/index.d.ts +0 -1
- package/dist/components/select/Common.d.ts +0 -6
- package/dist/components/select/CreatableSelect.d.ts +0 -97
- package/dist/components/select/Select.d.ts +0 -87
- package/dist/components/select/SelectAsync.d.ts +0 -81
- package/dist/components/select/config.d.ts +0 -4
- package/dist/components/select/index.d.ts +0 -3
- package/dist/components/select/types.d.ts +0 -15
- package/dist/components/select-v2/Common.d.ts +0 -56
- package/dist/components/select-v2/CreatableSelect.d.ts +0 -15
- package/dist/components/select-v2/Select.d.ts +0 -14
- package/dist/components/select-v2/index.d.ts +0 -3
- package/dist/components/select-v2/styles.d.ts +0 -3
- package/dist/components/select-v2/types.d.ts +0 -37
- package/dist/components/selectors/Selectors.d.ts +0 -7
- package/dist/components/selectors/index.d.ts +0 -1
- package/dist/components/skeleton/Skeleton.d.ts +0 -3
- package/dist/components/skeleton/index.d.ts +0 -1
- package/dist/components/svg/SVG.d.ts +0 -11
- package/dist/components/svg/index.d.ts +0 -1
- package/dist/components/switch/Switch.d.ts +0 -12
- package/dist/components/switch/index.d.ts +0 -1
- package/dist/components/switch/switch.stories.d.ts +0 -9
- package/dist/components/table/Table.d.ts +0 -114
- package/dist/components/table/constants.d.ts +0 -3
- package/dist/components/table/index.d.ts +0 -1
- package/dist/components/table/store.d.ts +0 -15
- package/dist/components/table/table-actions/TableActions.d.ts +0 -8
- package/dist/components/table/table-actions/index.d.ts +0 -1
- package/dist/components/table/table-columns/TableCheckbox.d.ts +0 -11
- package/dist/components/table/table-columns/TableRadio.d.ts +0 -7
- package/dist/components/table/table-columns/index.d.ts +0 -2
- package/dist/components/table/table-empty/TableEmpty.d.ts +0 -6
- package/dist/components/table/table-empty/index.d.ts +0 -1
- package/dist/components/table/table-filters/FilterCheckbox.d.ts +0 -13
- package/dist/components/table/table-filters/FilterTooltip.d.ts +0 -9
- package/dist/components/table/table-filters/TableFilter.d.ts +0 -14
- package/dist/components/table/table-filters/TableFilters.d.ts +0 -7
- package/dist/components/table/table-filters/index.d.ts +0 -1
- package/dist/components/table/table-loader/TableLoader.d.ts +0 -4
- package/dist/components/table/table-loader/index.d.ts +0 -1
- package/dist/components/table/table-selected-actions/TableSelectedActions.d.ts +0 -8
- package/dist/components/table/table-selected-actions/index.d.ts +0 -1
- package/dist/components/table/types.d.ts +0 -36
- package/dist/components/table-v3/TableV3.d.ts +0 -119
- package/dist/components/table-v3/constants.d.ts +0 -3
- package/dist/components/table-v3/index.d.ts +0 -4
- package/dist/components/table-v3/inventory/inventory.store.d.ts +0 -40
- package/dist/components/table-v3/store.d.ts +0 -16
- package/dist/components/table-v3/table-actions/TableActions.d.ts +0 -8
- package/dist/components/table-v3/table-actions/index.d.ts +0 -1
- package/dist/components/table-v3/table-columns/TableCheckbox.d.ts +0 -8
- package/dist/components/table-v3/table-columns/TableRadio.d.ts +0 -7
- package/dist/components/table-v3/table-columns/index.d.ts +0 -2
- package/dist/components/table-v3/table-custom-cols/CustomColCheckbox.d.ts +0 -10
- package/dist/components/table-v3/table-custom-cols/TableCustomCols.d.ts +0 -30
- package/dist/components/table-v3/table-custom-cols/index.d.ts +0 -1
- package/dist/components/table-v3/table-custom-cols/sortable/SortableItem.d.ts +0 -10
- package/dist/components/table-v3/table-custom-cols/sortable/SortableList.d.ts +0 -19
- package/dist/components/table-v3/table-custom-cols/sortable/SortableOverlay.d.ts +0 -6
- package/dist/components/table-v3/table-custom-cols/utils.d.ts +0 -16
- package/dist/components/table-v3/table-empty/TableEmpty.d.ts +0 -6
- package/dist/components/table-v3/table-empty/index.d.ts +0 -1
- package/dist/components/table-v3/table-filters-drawer/TableFiltersDrawer.d.ts +0 -7
- package/dist/components/table-v3/table-filters-drawer/TableFiltersDrawerNew.d.ts +0 -7
- package/dist/components/table-v3/table-filters-drawer/index.d.ts +0 -1
- package/dist/components/table-v3/table-filters-drawer/utils.d.ts +0 -16
- package/dist/components/table-v3/table-header-filters/FilterCheckbox.d.ts +0 -13
- package/dist/components/table-v3/table-header-filters/FilterDrawerAllCheckbox.d.ts +0 -7
- package/dist/components/table-v3/table-header-filters/FilterDrawerCheckbox.d.ts +0 -12
- package/dist/components/table-v3/table-header-filters/FilterDrawerCheckboxNew.d.ts +0 -9
- package/dist/components/table-v3/table-header-filters/FilterTooltip.d.ts +0 -9
- package/dist/components/table-v3/table-header-filters/TableHeaderFilter.d.ts +0 -14
- package/dist/components/table-v3/table-header-filters/TableHeaderFilters.d.ts +0 -8
- package/dist/components/table-v3/table-header-filters/index.d.ts +0 -1
- package/dist/components/table-v3/table-loader/TableLoader.d.ts +0 -4
- package/dist/components/table-v3/table-loader/index.d.ts +0 -1
- package/dist/components/table-v3/table-meta-header/TableMetaHeader.d.ts +0 -18
- package/dist/components/table-v3/table-meta-header/index.d.ts +0 -1
- package/dist/components/table-v3/table-pagination/TableEllipses.d.ts +0 -6
- package/dist/components/table-v3/table-pagination/TableLimit.d.ts +0 -7
- package/dist/components/table-v3/table-pagination/TablePagination.d.ts +0 -7
- package/dist/components/table-v3/table-pagination/index.d.ts +0 -1
- package/dist/components/table-v3/table-pagination/utils.d.ts +0 -4
- package/dist/components/table-v3/table-selected-actions/TableSelectedActions.d.ts +0 -8
- package/dist/components/table-v3/table-selected-actions/index.d.ts +0 -1
- package/dist/components/table-v3/types.d.ts +0 -52
- package/dist/components/table-v3/value-cells/table-box-ellipses/TableBoxEllipses.d.ts +0 -7
- package/dist/components/table-v3/value-cells/table-box-ellipses/index.d.ts +0 -1
- package/dist/components/table-v3/value-cells/table-device-cell/TableDeviceCell.d.ts +0 -7
- package/dist/components/table-v3/value-cells/table-user-cell/TableUserCell.d.ts +0 -7
- package/dist/components/tabs/Tab.d.ts +0 -12
- package/dist/components/tabs/Tabs.d.ts +0 -12
- package/dist/components/tabs/index.d.ts +0 -2
- package/dist/components/tag/Tag.d.ts +0 -15
- package/dist/components/tag/index.d.ts +0 -1
- package/dist/components/task-cards/TaskCards.d.ts +0 -24
- package/dist/components/task-cards/components/task-card/TaskCard.d.ts +0 -7
- package/dist/components/task-cards/components/task-card-header/TaskCardHeader.d.ts +0 -3
- package/dist/components/task-cards/helper.d.ts +0 -1
- package/dist/components/task-cards/index.d.ts +0 -1
- package/dist/components/task-cards/types.d.ts +0 -36
- package/dist/components/toasts/Toasts.d.ts +0 -14
- package/dist/components/toasts/index.d.ts +0 -1
- package/dist/components/toasts/types.d.ts +0 -5
- package/dist/components/tooltip/Tooltip.d.ts +0 -28
- package/dist/components/tooltip/TooltipContent.d.ts +0 -24
- package/dist/components/tooltip/TooltipTrigger.d.ts +0 -16
- package/dist/components/tooltip/index.d.ts +0 -1
- package/dist/components/tooltip-v2/TooltipV2.d.ts +0 -14
- package/dist/components/tooltip-v2/index.d.ts +0 -1
- package/dist/components/upload/Upload.d.ts +0 -52
- package/dist/components/upload/helper.d.ts +0 -2
- package/dist/components/upload/index.d.ts +0 -1
- package/dist/components/upload/types.d.ts +0 -15
- package/dist/components/upload/upload.stories.d.ts +0 -7
- package/dist/components/user-chip/UserChip.d.ts +0 -17
- package/dist/components/user-chip/index.d.ts +0 -1
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { INPUT_COMPONENTS, NumberAdornmentProps } from './types';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* NumberAdornment provides increment and decrement buttons for numeric inputs.
|
|
5
|
-
* It allows users to adjust the numeric value up or down within a controlled component i.e. InputNumber.
|
|
6
|
-
*
|
|
7
|
-
* @param {NumberAdornmentProps} props - The properties for the NumberAdornment component.
|
|
8
|
-
* @param {() => void} [props.onDecrement] - Callback function to be called when the decrement button is clicked.
|
|
9
|
-
* @param {() => void} [props.onIncrement] - Callback function to be called when the increment button is clicked.
|
|
10
|
-
* @param {boolean} [props.disabled=false] - Whether the buttons are disabled or not.
|
|
11
|
-
* @returns {JSX.Element} The rendered NumberAdornment component.
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* <NumberAdornment
|
|
15
|
-
* onIncrement={handleIncrement}
|
|
16
|
-
* onDecrement={handleDecrement}
|
|
17
|
-
* disabled={false}
|
|
18
|
-
* />
|
|
19
|
-
*/
|
|
20
|
-
declare function NumberAdornment({ onDecrement, onIncrement, disabled, }: NumberAdornmentProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
-
declare namespace NumberAdornment {
|
|
22
|
-
var displayName: INPUT_COMPONENTS;
|
|
23
|
-
}
|
|
24
|
-
export default NumberAdornment;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { TextareaV2Props } from './types';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
/**
|
|
4
|
-
* TextareaV2 is a styled textarea component with optional error message display.
|
|
5
|
-
* It provides a flexible way to render a textarea with custom styles and error handling.
|
|
6
|
-
*
|
|
7
|
-
* @param {TextareaV2Props} props - The properties for the TextareaV2 component.
|
|
8
|
-
* @param {string} [props.errorMsg=''] - Error message to display below the textarea.
|
|
9
|
-
* @param {string} [props.containerClassName=''] - Additional CSS classes to apply to the container.
|
|
10
|
-
* @param {string} [props.className=''] - Additional CSS classes to apply to the textarea.
|
|
11
|
-
* @param {React.CSSProperties} [props.inputStyles={}] - Used for internal styling when grouping it with multiple components. use className for styling textarea.
|
|
12
|
-
* @param {React.CSSProperties} [props.containerStyles={}] -Used for internal styling when grouping it with multiple components. use containerClassName for styling textarea container.
|
|
13
|
-
* @param {React.TextareaHTMLAttributes<HTMLTextAreaElement>} [props] - Other standard textarea attributes.
|
|
14
|
-
* @param {React.Ref<HTMLTextAreaElement>} ref - Ref to the underlying textarea element.
|
|
15
|
-
* @returns {JSX.Element} The rendered TextareaV2 component.
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
* <TextareaV2
|
|
19
|
-
* errorMsg="This field is required."
|
|
20
|
-
* placeholder="Enter text..."
|
|
21
|
-
* />
|
|
22
|
-
*/
|
|
23
|
-
export declare const TextareaV2: React.ForwardRefExoticComponent<TextareaV2Props & React.RefAttributes<HTMLTextAreaElement>>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export * from './Input';
|
|
2
|
-
export * from './InputControl';
|
|
3
|
-
export * from './Label';
|
|
4
|
-
export * from './InputGroup';
|
|
5
|
-
export * from './InputIcon';
|
|
6
|
-
export * from './InputAdornment';
|
|
7
|
-
export * from './Textarea';
|
|
8
|
-
export * from './InputCount';
|
|
9
|
-
export * from './InputNumber';
|
|
10
|
-
export * from './NumberAdornment';
|
|
@@ -1,329 +0,0 @@
|
|
|
1
|
-
import { TooltipV2Props } from '../tooltip-v2/TooltipV2';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Enum representing the different components within the input system.
|
|
5
|
-
* This can be used to identify and manage the different subcomponents
|
|
6
|
-
* of a more complex and nested input structure.
|
|
7
|
-
*/
|
|
8
|
-
export declare enum INPUT_COMPONENTS {
|
|
9
|
-
INPUT = "input",
|
|
10
|
-
TEXTAREA = "textarea",
|
|
11
|
-
CONTROL = "control",
|
|
12
|
-
LABEL = "label",
|
|
13
|
-
GROUP = "group",
|
|
14
|
-
LEFT_ICON = "leftIcon",
|
|
15
|
-
RIGHT_ICON = "rightIcon",
|
|
16
|
-
LEFT_ADORNMENT = "leftAdornment",
|
|
17
|
-
RIGHT_ADORNMENT = "rightAdornment",
|
|
18
|
-
COUNT = "count",
|
|
19
|
-
NUMBER = "number",
|
|
20
|
-
NUMBER_ADORNMENT = "numberAdornment"
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Props for the InputV2 component, which extends the standard HTML input element
|
|
24
|
-
* with additional styling and error handling.
|
|
25
|
-
*
|
|
26
|
-
* @interface InputV2Props
|
|
27
|
-
* @extends {React.InputHTMLAttributes<HTMLInputElement>}
|
|
28
|
-
*
|
|
29
|
-
* @property {string} [errorMsg] - Error message to display below the input if there is a validation error.
|
|
30
|
-
* @property {string} [containerClassName] - Additional class name(s) for the input container div.
|
|
31
|
-
* @property {never} [inputStyles] - Used for internal styling when grouping it with multiple components. use className for styling input.
|
|
32
|
-
* @property {never} [containerStyles] - Used for internal styling when grouping it with multiple components. use containerClassName for styling input container.
|
|
33
|
-
*
|
|
34
|
-
* @example
|
|
35
|
-
* <InputV2
|
|
36
|
-
* placeholder="Enter"
|
|
37
|
-
* errorMsg="This field is required"
|
|
38
|
-
* />
|
|
39
|
-
* @example
|
|
40
|
-
* with formik
|
|
41
|
-
* <InputV2
|
|
42
|
-
* {...formik.getFieldProps(key)}
|
|
43
|
-
* placeholder="Enter"
|
|
44
|
-
* errorMsg="This field is required"
|
|
45
|
-
* />
|
|
46
|
-
*/
|
|
47
|
-
export interface InputV2Props extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
48
|
-
errorMsg?: string;
|
|
49
|
-
containerClassName?: string;
|
|
50
|
-
inputStyles?: never;
|
|
51
|
-
containerStyles?: never;
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Props for the TextareaV2 component, which extends the standard HTML textarea element
|
|
55
|
-
* with additional styling and error handling.
|
|
56
|
-
*
|
|
57
|
-
* @interface InputV2Props
|
|
58
|
-
* @extends {React.TextareaHTMLAttributes<HTMLTextAreaElement>}
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
* @property {string} [errorMsg] - Error message to display below the textarea if there is a validation error.
|
|
62
|
-
* @property {string} [containerClassName] - Additional class name(s) for the textarea container div.
|
|
63
|
-
* @property {never} [inputStyles] - Used for internal styling when grouping it with multiple components. use className for styling textarea.
|
|
64
|
-
* @property {never} [containerStyles] - Used for internal styling when grouping it with multiple components. use containerClassName for styling textarea container.
|
|
65
|
-
*
|
|
66
|
-
* @example
|
|
67
|
-
* <TextareaV2
|
|
68
|
-
* placeholder="Enter"
|
|
69
|
-
* errorMsg="This field is required"
|
|
70
|
-
* />
|
|
71
|
-
* @example
|
|
72
|
-
* with formik
|
|
73
|
-
* <TextareaV2
|
|
74
|
-
* {...formik.getFieldProps(key)}
|
|
75
|
-
* placeholder="Enter"
|
|
76
|
-
* errorMsg="This field is required"
|
|
77
|
-
* />
|
|
78
|
-
*/
|
|
79
|
-
export interface TextareaV2Props extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
80
|
-
errorMsg?: string;
|
|
81
|
-
containerClassName?: string;
|
|
82
|
-
inputStyles?: never;
|
|
83
|
-
containerStyles?: never;
|
|
84
|
-
}
|
|
85
|
-
/**
|
|
86
|
-
* Props for the InputControl component, used as a wrapper to group multiple input-related components.
|
|
87
|
-
*
|
|
88
|
-
* @interface InputControlPropsV2
|
|
89
|
-
* @extends {React.HTMLAttributes<HTMLDivElement>}
|
|
90
|
-
*
|
|
91
|
-
* @property {React.ReactNode} children - The elements that will be rendered inside the control.
|
|
92
|
-
*
|
|
93
|
-
* @example
|
|
94
|
-
* <InputControlV2>
|
|
95
|
-
* <LabelV2>Username</LabelV2>
|
|
96
|
-
* <InputV2
|
|
97
|
-
* placeholder="Enter"
|
|
98
|
-
* errorMsg="This field is required"
|
|
99
|
-
* />
|
|
100
|
-
* </InputControlV2>
|
|
101
|
-
*/
|
|
102
|
-
export interface InputControlPropsV2 extends React.HTMLAttributes<HTMLDivElement> {
|
|
103
|
-
children: React.ReactNode;
|
|
104
|
-
}
|
|
105
|
-
/**
|
|
106
|
-
* Props for the Label component, used to provide descriptive text for form inputs.
|
|
107
|
-
*
|
|
108
|
-
* @interface LabelPropsV2
|
|
109
|
-
* @extends {React.LabelHTMLAttributes<HTMLLabelElement>}
|
|
110
|
-
*
|
|
111
|
-
* @property {React.ReactNode} children - The text or elements inside the label.
|
|
112
|
-
* @property {string} [info] - Additional info to display, such as help text in tooltip.
|
|
113
|
-
* @property {boolean} [disabled] - Whether the associated input is disabled.
|
|
114
|
-
* @property {boolean} [required] - Whether the field is required (red * will be shown beside label).
|
|
115
|
-
* @property {Partial<TooltipV2Props>} [tooltipProps] - Props for the tooltip, if additional information is provided and want to customize tooltip styles.
|
|
116
|
-
*
|
|
117
|
-
* @example
|
|
118
|
-
* <LabelV2 info="Your full name">Name</LabelV2>
|
|
119
|
-
*/
|
|
120
|
-
export interface LabelPropsV2 extends React.LabelHTMLAttributes<HTMLLabelElement> {
|
|
121
|
-
children: React.ReactNode;
|
|
122
|
-
info?: string;
|
|
123
|
-
disabled?: boolean;
|
|
124
|
-
required?: boolean;
|
|
125
|
-
tooltipProps?: Partial<TooltipV2Props>;
|
|
126
|
-
}
|
|
127
|
-
/**
|
|
128
|
-
* Props for the InputGroup component, which groups input icons and adornments elements together.
|
|
129
|
-
*
|
|
130
|
-
* @interface InputGroupPropsV2
|
|
131
|
-
* @extends {React.HTMLAttributes<HTMLDivElement>}
|
|
132
|
-
*
|
|
133
|
-
* @property {React.ReactNode} children - The elements to be grouped together.
|
|
134
|
-
*
|
|
135
|
-
* @example
|
|
136
|
-
* <InputGroupV2>
|
|
137
|
-
* <InputLeftAdornment>+</InputLeftAdornment>
|
|
138
|
-
* <InputV2 />
|
|
139
|
-
* <InputRightAdornment>-</InputRightAdornment>
|
|
140
|
-
* </InputGroupV2>
|
|
141
|
-
* @example
|
|
142
|
-
* with label
|
|
143
|
-
* <InputControlV2>
|
|
144
|
-
* <LabelV2>Username</LabelV2>
|
|
145
|
-
* <InputGroupV2>
|
|
146
|
-
* <InputLeftAdornment>+</InputLeftAdornment>
|
|
147
|
-
* <InputV2 />
|
|
148
|
-
* <InputRightAdornment>-</InputRightAdornment>
|
|
149
|
-
* </InputGroupV2>
|
|
150
|
-
* </InputControlV2>
|
|
151
|
-
*/
|
|
152
|
-
export interface InputGroupPropsV2 extends React.HTMLAttributes<HTMLDivElement> {
|
|
153
|
-
children: React.ReactNode;
|
|
154
|
-
}
|
|
155
|
-
/**
|
|
156
|
-
* Props for the InputIcon component, which is used to display an icon within an input field. It can be left, right or both.
|
|
157
|
-
*
|
|
158
|
-
* @interface InputIconProps
|
|
159
|
-
*
|
|
160
|
-
* @property {string} icon - The icon to display.
|
|
161
|
-
* @property {() => void} [onClick] - Optional click handler for the icon.
|
|
162
|
-
* @property {never} [iconStyles] - Used for internal styling when grouping it with multiple components. use className for styling icon if clickable.
|
|
163
|
-
* @property {boolean} [disabled] - Whether the icon should be disabled with input.
|
|
164
|
-
* @property {string} [className] - Additional classNames for the icon if it is clickable.
|
|
165
|
-
*
|
|
166
|
-
* @example
|
|
167
|
-
* <InputGroupV2>
|
|
168
|
-
* <InputLeftIcon icon={...} />
|
|
169
|
-
* <InputV2 />
|
|
170
|
-
* <InputRightIcon icon={...} />
|
|
171
|
-
* </InputGroupV2>
|
|
172
|
-
*/
|
|
173
|
-
export interface InputIconProps {
|
|
174
|
-
icon: string;
|
|
175
|
-
onClick?: () => void;
|
|
176
|
-
iconStyles?: never;
|
|
177
|
-
disabled?: boolean;
|
|
178
|
-
className?: string;
|
|
179
|
-
}
|
|
180
|
-
/**
|
|
181
|
-
* Represents an option in a dropdown menu for adornment.
|
|
182
|
-
*
|
|
183
|
-
* @interface DropdownOption
|
|
184
|
-
*
|
|
185
|
-
* @property {string} value - The value associated with the dropdown option.
|
|
186
|
-
* @property {string} label - The label displayed for the dropdown option.
|
|
187
|
-
*
|
|
188
|
-
* @example
|
|
189
|
-
* const options: DropdownOption[] = [
|
|
190
|
-
* { value: '1', label: 'Option 1' },
|
|
191
|
-
* { value: '2', label: 'Option 2' },
|
|
192
|
-
* ];
|
|
193
|
-
*/
|
|
194
|
-
export interface DropdownOption {
|
|
195
|
-
value: string;
|
|
196
|
-
label: string;
|
|
197
|
-
}
|
|
198
|
-
/**
|
|
199
|
-
* Base props for input adornment components. It can be dropdown or non actionable
|
|
200
|
-
*
|
|
201
|
-
* @interface BaseInputAdornmentProps
|
|
202
|
-
*
|
|
203
|
-
* @property {React.ReactNode} children - The elements or text inside the adornment.
|
|
204
|
-
* @property {boolean} [disabled] - Whether the adornment is disabled.
|
|
205
|
-
*/
|
|
206
|
-
export interface BaseInputAdornmentProps {
|
|
207
|
-
children: React.ReactNode;
|
|
208
|
-
disabled?: boolean;
|
|
209
|
-
}
|
|
210
|
-
/**
|
|
211
|
-
* Props for a dropdown adornment.
|
|
212
|
-
*
|
|
213
|
-
* @interface DropdownProps
|
|
214
|
-
* @extends {BaseInputAdornmentProps}
|
|
215
|
-
*
|
|
216
|
-
* @property {true} isDropdown - Indicates this adornment is a dropdown.
|
|
217
|
-
* @property {DropdownOption[]} options - List of options available in the dropdown.
|
|
218
|
-
* @property {(value: string) => void} onOptionSelect - Callback function when an option is selected.
|
|
219
|
-
* @property {boolean} [hideSearch] - Whether to hide the search bar within the dropdown.
|
|
220
|
-
* @property {boolean} [isLoading] - Whether the dropdown is currently loading options.
|
|
221
|
-
*
|
|
222
|
-
* @example
|
|
223
|
-
* <InputGroupV2>
|
|
224
|
-
* <InputLeftAdornment isDropdown options={options} onOptionSelect={handleSelect}>...</InputLeftAdornment>
|
|
225
|
-
* <InputV2 />
|
|
226
|
-
* </InputGroupV2>
|
|
227
|
-
*/
|
|
228
|
-
export interface DropdownProps extends BaseInputAdornmentProps {
|
|
229
|
-
isDropdown: true;
|
|
230
|
-
options: DropdownOption[];
|
|
231
|
-
onOptionSelect: (value: string) => void;
|
|
232
|
-
hideSearch?: boolean;
|
|
233
|
-
isLoading?: boolean;
|
|
234
|
-
}
|
|
235
|
-
/**
|
|
236
|
-
* Props for a non-dropdown adornment within an input field, such as an icon.
|
|
237
|
-
*
|
|
238
|
-
* @interface NonDropdownProps
|
|
239
|
-
* @extends {BaseInputAdornmentProps}
|
|
240
|
-
*
|
|
241
|
-
* @property {false} [isDropdown] - Indicates this adornment is not a dropdown.
|
|
242
|
-
* @property {never} [options] - Options are not applicable to non-dropdown adornments.
|
|
243
|
-
* @property {never} [hideSearch] - Search hiding is not applicable to non-dropdown adornments.
|
|
244
|
-
* @property {never} [onOptionSelect] - Option selection is not applicable to non-dropdown adornments.
|
|
245
|
-
* @property {never} [isLoading] - Loading state is not applicable to non-dropdown adornments.
|
|
246
|
-
*
|
|
247
|
-
* @example
|
|
248
|
-
* @example
|
|
249
|
-
* <InputGroupV2>
|
|
250
|
-
* <InputV2 />
|
|
251
|
-
* <InputRightAdornment>...</InputRightAdornment>
|
|
252
|
-
* </InputGroupV2>
|
|
253
|
-
*/
|
|
254
|
-
export interface NonDropdownProps extends BaseInputAdornmentProps {
|
|
255
|
-
isDropdown?: false;
|
|
256
|
-
options?: never;
|
|
257
|
-
hideSearch?: never;
|
|
258
|
-
onOptionSelect?: never;
|
|
259
|
-
isLoading?: never;
|
|
260
|
-
}
|
|
261
|
-
/**
|
|
262
|
-
* Type representing the possible props for input adornments, which can either be a dropdown or non actionable.
|
|
263
|
-
*/
|
|
264
|
-
export type InputAdornmentProps = DropdownProps | NonDropdownProps;
|
|
265
|
-
/**
|
|
266
|
-
* Props for an input field which can be use as counter i.e. product count.
|
|
267
|
-
*
|
|
268
|
-
* @interface InputCountProps
|
|
269
|
-
* @extends {InputV2Props}
|
|
270
|
-
*
|
|
271
|
-
* @property {(value: number) => void} onCountChange - Callback when the count changes.
|
|
272
|
-
* @property {never} [onChange] - `onChange` is disabled for this component; use `onCountChange`.
|
|
273
|
-
* @property {number} [min] - Minimum allowable value for the count (by default Infinity).
|
|
274
|
-
* @property {number} [max] - Maximum allowable value for the count (by default Infinity).
|
|
275
|
-
* @property {number} [count] - Current count value (enable for two way binding).
|
|
276
|
-
* @property {string} [countContainerClassName] - Additional className for the count container.
|
|
277
|
-
*
|
|
278
|
-
* @example
|
|
279
|
-
* <InputCount onCountChange={(value) => ...} count={10} min={0} max={100} />
|
|
280
|
-
*/
|
|
281
|
-
export interface InputCountProps extends InputV2Props {
|
|
282
|
-
onCountChange: (value: number) => void;
|
|
283
|
-
onChange?: never;
|
|
284
|
-
min?: number;
|
|
285
|
-
max?: number;
|
|
286
|
-
count?: number;
|
|
287
|
-
countContainerClassName?: string;
|
|
288
|
-
}
|
|
289
|
-
/**
|
|
290
|
-
* Props for an input field designed to accept numeric values.
|
|
291
|
-
*
|
|
292
|
-
* @interface InputNumberProps
|
|
293
|
-
* @extends {InputV2Props}
|
|
294
|
-
*
|
|
295
|
-
* @property {(value: number) => void} onCountChange - Callback when the numeric value changes.
|
|
296
|
-
* @property {never} [onChange] - `onChange` is disabled for this component; use `onCountChange`.
|
|
297
|
-
* @property {number} [min] - Minimum allowable value for the input (by default Infinity)
|
|
298
|
-
* @property {number} [max] - Maximum allowable value for the input (by default Infinity)
|
|
299
|
-
* @property {number} [count] - Current numeric value (enable for two way binding).
|
|
300
|
-
* @property {string} [countContainerClassName] -Additional className for the count container.
|
|
301
|
-
*
|
|
302
|
-
* @example
|
|
303
|
-
* <InputNumber onCountChange={(value) => ...)} count={5} min={0} max={10} />
|
|
304
|
-
*/
|
|
305
|
-
export interface InputNumberProps extends InputV2Props {
|
|
306
|
-
onCountChange: (value: number) => void;
|
|
307
|
-
onChange?: never;
|
|
308
|
-
min?: number;
|
|
309
|
-
max?: number;
|
|
310
|
-
count?: number;
|
|
311
|
-
countContainerClassName?: string;
|
|
312
|
-
}
|
|
313
|
-
/**
|
|
314
|
-
* Props for a number increment/decrement adornment in an InputNumber field.
|
|
315
|
-
*
|
|
316
|
-
* @interface NumberAdornmentProps
|
|
317
|
-
*
|
|
318
|
-
* @property {() => void} onIncrement - Callback when the increment button is clicked.
|
|
319
|
-
* @property {() => void} onDecrement - Callback when the decrement button is clicked.
|
|
320
|
-
* @property {boolean} [disabled] - Whether the increment/decrement buttons are disabled.
|
|
321
|
-
*
|
|
322
|
-
* @example
|
|
323
|
-
* <NumberAdornment onIncrement={() => increment()} onDecrement={() => decrement()} />
|
|
324
|
-
*/
|
|
325
|
-
export interface NumberAdornmentProps {
|
|
326
|
-
onIncrement: () => void;
|
|
327
|
-
onDecrement: () => void;
|
|
328
|
-
disabled?: boolean;
|
|
329
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
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 {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './LayoutTabs';
|
|
@@ -1,17 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Loader';
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Loader } from './Loader';
|
|
2
|
-
import { Meta, StoryObj } from '@storybook/react';
|
|
3
|
-
|
|
4
|
-
declare const meta: Meta<typeof Loader>;
|
|
5
|
-
export default meta;
|
|
6
|
-
type Story = StoryObj<typeof Loader>;
|
|
7
|
-
export declare const Ring: Story;
|
|
8
|
-
export declare const DualRing: Story;
|
|
9
|
-
export declare const Ellipses: Story;
|
|
10
|
-
export declare const Grid: Story;
|
|
11
|
-
export declare const Hourglass: Story;
|
|
12
|
-
export declare const Ripple: Story;
|
|
13
|
-
export declare const Roller: Story;
|
|
14
|
-
export declare const Spinner: Story;
|
|
@@ -1,30 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,17 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,18 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { BUTTON_VARIANT } from '../button';
|
|
2
|
-
import { BUTTON_V2_VARIANT, BUTTON_V2_SIZE, BUTTON_V2_TYPE } from '../button-v2';
|
|
3
|
-
|
|
4
|
-
export type FooterButtons = Array<{
|
|
5
|
-
variant?: BUTTON_VARIANT | BUTTON_V2_VARIANT;
|
|
6
|
-
onClick: () => void;
|
|
7
|
-
btnText: string;
|
|
8
|
-
btnType?: BUTTON_V2_TYPE | 'submit';
|
|
9
|
-
btnSize?: BUTTON_V2_SIZE;
|
|
10
|
-
disabled?: boolean;
|
|
11
|
-
isLoading?: boolean;
|
|
12
|
-
loadingText?: string;
|
|
13
|
-
icon?: string;
|
|
14
|
-
}>;
|
|
15
|
-
export declare const mapVariant: (variant?: BUTTON_VARIANT | BUTTON_V2_VARIANT) => BUTTON_V2_VARIANT | undefined;
|
|
16
|
-
interface ModalFooterProps {
|
|
17
|
-
/**
|
|
18
|
-
* Modal footer children
|
|
19
|
-
* if children is passed, default buttons will not be shown
|
|
20
|
-
* children acts like a custom footer
|
|
21
|
-
*/
|
|
22
|
-
children?: React.ReactNode;
|
|
23
|
-
/**
|
|
24
|
-
* zagjs modal API (no need to pass when using this component)
|
|
25
|
-
* will be inserted by default
|
|
26
|
-
*/
|
|
27
|
-
api?: any;
|
|
28
|
-
/**
|
|
29
|
-
* set of buttons to display
|
|
30
|
-
*/
|
|
31
|
-
buttons: FooterButtons;
|
|
32
|
-
/**
|
|
33
|
-
* show border or not
|
|
34
|
-
*/
|
|
35
|
-
showBorder?: boolean;
|
|
36
|
-
}
|
|
37
|
-
export declare function ModalFooter({ children, api, buttons, showBorder }: ModalFooterProps): import("react/jsx-runtime").JSX.Element;
|
|
38
|
-
export {};
|
|
@@ -1,21 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,9 +0,0 @@
|
|
|
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 {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function Example({ isOpen, onClose }: any): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export declare enum PILL_STATUS {
|
|
3
|
-
DEFAULT = "default",
|
|
4
|
-
NEUTRAL = "neutral",
|
|
5
|
-
POSITIVE = "positive",
|
|
6
|
-
WARNING = "warning",
|
|
7
|
-
NEGATIVE = "negative",
|
|
8
|
-
HIGHLIGHT = "highlight"
|
|
9
|
-
}
|
|
10
|
-
interface PillProps {
|
|
11
|
-
status?: PILL_STATUS;
|
|
12
|
-
children: React.ReactNode;
|
|
13
|
-
}
|
|
14
|
-
export declare function Pill({ status, children }: PillProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Pill';
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { Placement } from '@zag-js/popper';
|
|
2
|
-
import * as React from 'react';
|
|
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 {};
|
|
@@ -1,23 +0,0 @@
|
|
|
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 {};
|