@seekho/ui 0.1.32 → 0.1.34

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.d.mts CHANGED
@@ -28,6 +28,18 @@ interface AccordionDetailsProps {
28
28
  }
29
29
  declare const AccordionDetails: ({ children, id, className, }: AccordionDetailsProps) => react_jsx_runtime.JSX.Element;
30
30
 
31
+ interface ChipProps {
32
+ label: string;
33
+ type?: "success" | "error" | "warning" | "default";
34
+ className?: string;
35
+ style?: React.CSSProperties;
36
+ deleteIcon?: React.ReactNode;
37
+ disabled?: boolean;
38
+ onClick?: (e: React.MouseEvent<HTMLDivElement>) => void;
39
+ onDelete?: (e: React.MouseEvent<HTMLSpanElement>) => void;
40
+ }
41
+ declare const Chip: ({ label, type, style, deleteIcon, disabled, className, onClick, onDelete, }: ChipProps) => react_jsx_runtime.JSX.Element;
42
+
31
43
  interface RenderOptionProps {
32
44
  onClick: (e: React.MouseEvent<HTMLLIElement>) => void;
33
45
  onMouseEnter: () => void;
@@ -123,6 +135,27 @@ interface FilterDrawerProps {
123
135
  }
124
136
  declare const FilterDrawer: ({ open, title, anchor, children, drawerClassName, childrenClassName, applyBtnText, clearBtnText, handleClose, handleApplyFilters, handleClearFilters, }: FilterDrawerProps) => react_jsx_runtime.JSX.Element;
125
137
 
138
+ interface MenuProps {
139
+ anchorEl: HTMLElement | null;
140
+ open: boolean;
141
+ onClose: () => void;
142
+ children: React.ReactNode;
143
+ align?: "left" | "right";
144
+ className?: string;
145
+ }
146
+ declare const Menu: ({ anchorEl, open, onClose, children, align, className, }: MenuProps) => React.ReactPortal | null;
147
+
148
+ interface MenuItemProps {
149
+ onClick?: () => void;
150
+ children: React.ReactNode;
151
+ disabled?: boolean;
152
+ selected?: boolean;
153
+ icon?: React.ReactNode;
154
+ className?: string;
155
+ }
156
+ declare const MenuItem: ({ onClick, children, disabled, selected, icon, className, }: MenuItemProps) => react_jsx_runtime.JSX.Element;
157
+ declare const MenuDivider: () => react_jsx_runtime.JSX.Element;
158
+
126
159
  interface ModalProps {
127
160
  show: boolean;
128
161
  title?: string;
@@ -210,6 +243,37 @@ interface StagingAlertProps {
210
243
  }
211
244
  declare const StagingAlert: ({ liveUrl, liveLinkText, }: StagingAlertProps) => react_jsx_runtime.JSX.Element;
212
245
 
246
+ interface SelectProps {
247
+ value: string | number;
248
+ onChange: (e: {
249
+ target: {
250
+ value: string | number;
251
+ };
252
+ }) => void;
253
+ children?: React.ReactNode;
254
+ disabled?: boolean;
255
+ placeholder?: string;
256
+ size?: "small" | "medium" | "large";
257
+ error?: boolean;
258
+ className?: string;
259
+ }
260
+ declare const Select: ({ value, onChange, children, disabled, placeholder, size, error, className, }: SelectProps) => react_jsx_runtime.JSX.Element;
261
+
262
+ interface SelectOptionProps {
263
+ value: string | number;
264
+ children: React.ReactNode;
265
+ disabled?: boolean;
266
+ }
267
+ declare const SelectOption: (_props: SelectOptionProps) => null;
268
+
269
+ interface SwitchProps {
270
+ checked: boolean;
271
+ onChange: () => void;
272
+ disabled?: boolean;
273
+ className?: string;
274
+ }
275
+ declare const Switch: ({ checked, onChange, disabled, className, }: SwitchProps) => react_jsx_runtime.JSX.Element;
276
+
213
277
  interface TabsProps {
214
278
  value: number | string;
215
279
  onChange: (event: React.SyntheticEvent, value: number | string) => void;
@@ -274,4 +338,4 @@ declare const handleCopyTextToClipboard: ({ clipboardText, }: {
274
338
  clipboardText: string | number | null | undefined;
275
339
  }) => Promise<boolean>;
276
340
 
277
- export { Accordion, AccordionDetails, type AccordionDetailsProps, type AccordionProps, AccordionSummary, type AccordionSummaryProps, AutoComplete, type AutoCompleteProps, Breadcrumb, type BreadcrumbProps, ButtonLoader, type ButtonLoaderProps, CopyId, type CopyIdProps, CustomAnchor, type CustomAnchorProps, CustomInput, type CustomInputProps, Drawer, type DrawerAnchor, type DrawerProps, FilterDrawer, type FilterDrawerProps, InputTitleWithRequired, type InputTitleWithRequiredProps, Modal, type ModalProps, type MonthYear, MonthYearPicker, type MonthYearPickerProps, Pagination, type PaginationProps, ReadMore, type ReadMoreProps, SearchBar, type SearchBarProps, StagingAlert, type StagingAlertProps, Tab, type TabProps, Tabs, type TabsProps, Tooltip, type TooltipPlacement, type TooltipProps, cn, handleAllyProps, handleCopyTextToClipboard, useLocalStorage };
341
+ export { Accordion, AccordionDetails, type AccordionDetailsProps, type AccordionProps, AccordionSummary, type AccordionSummaryProps, AutoComplete, type AutoCompleteProps, Breadcrumb, type BreadcrumbProps, ButtonLoader, type ButtonLoaderProps, Chip, type ChipProps, CopyId, type CopyIdProps, CustomAnchor, type CustomAnchorProps, CustomInput, type CustomInputProps, Drawer, type DrawerAnchor, type DrawerProps, FilterDrawer, type FilterDrawerProps, InputTitleWithRequired, type InputTitleWithRequiredProps, Menu, MenuDivider, MenuItem, type MenuItemProps, type MenuProps, Modal, type ModalProps, type MonthYear, MonthYearPicker, type MonthYearPickerProps, Pagination, type PaginationProps, ReadMore, type ReadMoreProps, SearchBar, type SearchBarProps, Select, SelectOption, type SelectOptionProps, type SelectProps, StagingAlert, type StagingAlertProps, Switch, type SwitchProps, Tab, type TabProps, Tabs, type TabsProps, Tooltip, type TooltipPlacement, type TooltipProps, cn, handleAllyProps, handleCopyTextToClipboard, useLocalStorage };
package/dist/index.d.ts CHANGED
@@ -28,6 +28,18 @@ interface AccordionDetailsProps {
28
28
  }
29
29
  declare const AccordionDetails: ({ children, id, className, }: AccordionDetailsProps) => react_jsx_runtime.JSX.Element;
30
30
 
31
+ interface ChipProps {
32
+ label: string;
33
+ type?: "success" | "error" | "warning" | "default";
34
+ className?: string;
35
+ style?: React.CSSProperties;
36
+ deleteIcon?: React.ReactNode;
37
+ disabled?: boolean;
38
+ onClick?: (e: React.MouseEvent<HTMLDivElement>) => void;
39
+ onDelete?: (e: React.MouseEvent<HTMLSpanElement>) => void;
40
+ }
41
+ declare const Chip: ({ label, type, style, deleteIcon, disabled, className, onClick, onDelete, }: ChipProps) => react_jsx_runtime.JSX.Element;
42
+
31
43
  interface RenderOptionProps {
32
44
  onClick: (e: React.MouseEvent<HTMLLIElement>) => void;
33
45
  onMouseEnter: () => void;
@@ -123,6 +135,27 @@ interface FilterDrawerProps {
123
135
  }
124
136
  declare const FilterDrawer: ({ open, title, anchor, children, drawerClassName, childrenClassName, applyBtnText, clearBtnText, handleClose, handleApplyFilters, handleClearFilters, }: FilterDrawerProps) => react_jsx_runtime.JSX.Element;
125
137
 
138
+ interface MenuProps {
139
+ anchorEl: HTMLElement | null;
140
+ open: boolean;
141
+ onClose: () => void;
142
+ children: React.ReactNode;
143
+ align?: "left" | "right";
144
+ className?: string;
145
+ }
146
+ declare const Menu: ({ anchorEl, open, onClose, children, align, className, }: MenuProps) => React.ReactPortal | null;
147
+
148
+ interface MenuItemProps {
149
+ onClick?: () => void;
150
+ children: React.ReactNode;
151
+ disabled?: boolean;
152
+ selected?: boolean;
153
+ icon?: React.ReactNode;
154
+ className?: string;
155
+ }
156
+ declare const MenuItem: ({ onClick, children, disabled, selected, icon, className, }: MenuItemProps) => react_jsx_runtime.JSX.Element;
157
+ declare const MenuDivider: () => react_jsx_runtime.JSX.Element;
158
+
126
159
  interface ModalProps {
127
160
  show: boolean;
128
161
  title?: string;
@@ -210,6 +243,37 @@ interface StagingAlertProps {
210
243
  }
211
244
  declare const StagingAlert: ({ liveUrl, liveLinkText, }: StagingAlertProps) => react_jsx_runtime.JSX.Element;
212
245
 
246
+ interface SelectProps {
247
+ value: string | number;
248
+ onChange: (e: {
249
+ target: {
250
+ value: string | number;
251
+ };
252
+ }) => void;
253
+ children?: React.ReactNode;
254
+ disabled?: boolean;
255
+ placeholder?: string;
256
+ size?: "small" | "medium" | "large";
257
+ error?: boolean;
258
+ className?: string;
259
+ }
260
+ declare const Select: ({ value, onChange, children, disabled, placeholder, size, error, className, }: SelectProps) => react_jsx_runtime.JSX.Element;
261
+
262
+ interface SelectOptionProps {
263
+ value: string | number;
264
+ children: React.ReactNode;
265
+ disabled?: boolean;
266
+ }
267
+ declare const SelectOption: (_props: SelectOptionProps) => null;
268
+
269
+ interface SwitchProps {
270
+ checked: boolean;
271
+ onChange: () => void;
272
+ disabled?: boolean;
273
+ className?: string;
274
+ }
275
+ declare const Switch: ({ checked, onChange, disabled, className, }: SwitchProps) => react_jsx_runtime.JSX.Element;
276
+
213
277
  interface TabsProps {
214
278
  value: number | string;
215
279
  onChange: (event: React.SyntheticEvent, value: number | string) => void;
@@ -274,4 +338,4 @@ declare const handleCopyTextToClipboard: ({ clipboardText, }: {
274
338
  clipboardText: string | number | null | undefined;
275
339
  }) => Promise<boolean>;
276
340
 
277
- export { Accordion, AccordionDetails, type AccordionDetailsProps, type AccordionProps, AccordionSummary, type AccordionSummaryProps, AutoComplete, type AutoCompleteProps, Breadcrumb, type BreadcrumbProps, ButtonLoader, type ButtonLoaderProps, CopyId, type CopyIdProps, CustomAnchor, type CustomAnchorProps, CustomInput, type CustomInputProps, Drawer, type DrawerAnchor, type DrawerProps, FilterDrawer, type FilterDrawerProps, InputTitleWithRequired, type InputTitleWithRequiredProps, Modal, type ModalProps, type MonthYear, MonthYearPicker, type MonthYearPickerProps, Pagination, type PaginationProps, ReadMore, type ReadMoreProps, SearchBar, type SearchBarProps, StagingAlert, type StagingAlertProps, Tab, type TabProps, Tabs, type TabsProps, Tooltip, type TooltipPlacement, type TooltipProps, cn, handleAllyProps, handleCopyTextToClipboard, useLocalStorage };
341
+ export { Accordion, AccordionDetails, type AccordionDetailsProps, type AccordionProps, AccordionSummary, type AccordionSummaryProps, AutoComplete, type AutoCompleteProps, Breadcrumb, type BreadcrumbProps, ButtonLoader, type ButtonLoaderProps, Chip, type ChipProps, CopyId, type CopyIdProps, CustomAnchor, type CustomAnchorProps, CustomInput, type CustomInputProps, Drawer, type DrawerAnchor, type DrawerProps, FilterDrawer, type FilterDrawerProps, InputTitleWithRequired, type InputTitleWithRequiredProps, Menu, MenuDivider, MenuItem, type MenuItemProps, type MenuProps, Modal, type ModalProps, type MonthYear, MonthYearPicker, type MonthYearPickerProps, Pagination, type PaginationProps, ReadMore, type ReadMoreProps, SearchBar, type SearchBarProps, Select, SelectOption, type SelectOptionProps, type SelectProps, StagingAlert, type StagingAlertProps, Switch, type SwitchProps, Tab, type TabProps, Tabs, type TabsProps, Tooltip, type TooltipPlacement, type TooltipProps, cn, handleAllyProps, handleCopyTextToClipboard, useLocalStorage };