@seekho/ui 0.1.21 → 0.1.24
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 +96 -2
- package/dist/index.d.ts +96 -2
- package/dist/index.js +926 -54
- package/dist/index.mjs +923 -57
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -113,6 +113,7 @@ interface FilterDrawerProps {
|
|
|
113
113
|
title?: string;
|
|
114
114
|
anchor?: DrawerAnchor;
|
|
115
115
|
children?: React.ReactNode;
|
|
116
|
+
drawerClassName?: string;
|
|
116
117
|
childrenClassName?: string;
|
|
117
118
|
applyBtnText?: string;
|
|
118
119
|
clearBtnText?: string;
|
|
@@ -120,7 +121,7 @@ interface FilterDrawerProps {
|
|
|
120
121
|
handleApplyFilters: () => void;
|
|
121
122
|
handleClearFilters: () => void;
|
|
122
123
|
}
|
|
123
|
-
declare const FilterDrawer: ({ open, title, anchor, children, childrenClassName, applyBtnText, clearBtnText, handleClose, handleApplyFilters, handleClearFilters, }: FilterDrawerProps) => react_jsx_runtime.JSX.Element;
|
|
124
|
+
declare const FilterDrawer: ({ open, title, anchor, children, drawerClassName, childrenClassName, applyBtnText, clearBtnText, handleClose, handleApplyFilters, handleClearFilters, }: FilterDrawerProps) => react_jsx_runtime.JSX.Element;
|
|
124
125
|
|
|
125
126
|
interface ModalProps {
|
|
126
127
|
show: boolean;
|
|
@@ -136,6 +137,48 @@ interface ModalProps {
|
|
|
136
137
|
}
|
|
137
138
|
declare function Modal({ show, title, className, children, isLoading, onHide, isWarning, isButtonsRequired, handleConfirmation, handleConfirmationBtnText, }: ModalProps): react_jsx_runtime.JSX.Element | null;
|
|
138
139
|
|
|
140
|
+
interface MonthYear {
|
|
141
|
+
month: number;
|
|
142
|
+
year: number;
|
|
143
|
+
}
|
|
144
|
+
type MonthYearPickerColor = "skprimary" | "blue" | "green" | "purple" | "red" | "orange" | "pink" | "teal";
|
|
145
|
+
interface MonthYearPickerProps {
|
|
146
|
+
month: number;
|
|
147
|
+
year: number;
|
|
148
|
+
onChange: (value: MonthYear) => void;
|
|
149
|
+
disableFuture?: boolean;
|
|
150
|
+
disablePast?: boolean;
|
|
151
|
+
minDate?: MonthYear;
|
|
152
|
+
maxDate?: MonthYear;
|
|
153
|
+
placement?: "left" | "right";
|
|
154
|
+
variant?: "outlined" | "ghost" | "plain";
|
|
155
|
+
size?: "sm" | "md" | "lg";
|
|
156
|
+
color?: MonthYearPickerColor;
|
|
157
|
+
disabled?: boolean;
|
|
158
|
+
className?: string;
|
|
159
|
+
triggerClassName?: string;
|
|
160
|
+
dropdownClassName?: string;
|
|
161
|
+
}
|
|
162
|
+
declare const MonthYearPicker: ({ month, year, onChange, disableFuture, disablePast, minDate, maxDate, placement, variant, size, color, disabled, className, triggerClassName, dropdownClassName, }: MonthYearPickerProps) => react_jsx_runtime.JSX.Element;
|
|
163
|
+
|
|
164
|
+
interface PaginationProps {
|
|
165
|
+
count: number; /** Total number of pages */
|
|
166
|
+
page: number; /** Current page, 1-indexed */
|
|
167
|
+
onChange: (page: number) => void; /** Fired when the user selects a new page */
|
|
168
|
+
siblingCount?: number; /** Pages shown on each side of the current page. Default: 1 */
|
|
169
|
+
boundaryCount?: number; /** Pages always shown at the start and end. Default: 1 */
|
|
170
|
+
showFirstButton?: boolean; /** Show a jump-to-first-page button (««) */
|
|
171
|
+
showLastButton?: boolean; /** Show a jump-to-last-page button (»») */
|
|
172
|
+
hidePrevButton?: boolean; /** Hide the previous-page button */
|
|
173
|
+
hideNextButton?: boolean; /** Hide the next-page button */
|
|
174
|
+
disabled?: boolean; /** Disable all interactions */
|
|
175
|
+
size?: "small" | "medium" | "large"; /** Button size */
|
|
176
|
+
variant?: "outlined" | "text"; /** Visual style — outlined adds a persistent border to every button */
|
|
177
|
+
shape?: "circular" | "rounded"; /** Button corner style */
|
|
178
|
+
className?: string; /** Extra className applied to the root nav element */
|
|
179
|
+
}
|
|
180
|
+
declare const Pagination: ({ count, page, onChange, siblingCount, boundaryCount, showFirstButton, showLastButton, hidePrevButton, hideNextButton, disabled, size, variant, shape, className, }: PaginationProps) => react_jsx_runtime.JSX.Element | null;
|
|
181
|
+
|
|
139
182
|
interface ReadMoreProps {
|
|
140
183
|
readMore: Record<string | number, boolean>;
|
|
141
184
|
index: string | number;
|
|
@@ -167,6 +210,57 @@ interface StagingAlertProps {
|
|
|
167
210
|
}
|
|
168
211
|
declare const StagingAlert: ({ liveUrl, liveLinkText, }: StagingAlertProps) => react_jsx_runtime.JSX.Element;
|
|
169
212
|
|
|
213
|
+
interface TabsProps {
|
|
214
|
+
value: number | string;
|
|
215
|
+
onChange: (event: React.SyntheticEvent, value: number | string) => void;
|
|
216
|
+
children: React.ReactNode;
|
|
217
|
+
variant?: "standard" | "scrollable" | "fullWidth";
|
|
218
|
+
scrollButtons?: "auto" | boolean;
|
|
219
|
+
allowScrollButtonsMobile?: boolean;
|
|
220
|
+
className?: string;
|
|
221
|
+
"aria-label"?: string;
|
|
222
|
+
}
|
|
223
|
+
declare function Tabs({ value, onChange, children, variant, scrollButtons, allowScrollButtonsMobile, className, "aria-label": ariaLabel, }: TabsProps): react_jsx_runtime.JSX.Element;
|
|
224
|
+
/** Accessibility helper — same API as MUI's a11yProps */
|
|
225
|
+
declare function handleAllyProps({ index }: {
|
|
226
|
+
index: number;
|
|
227
|
+
}): {
|
|
228
|
+
id: string;
|
|
229
|
+
"aria-controls": string;
|
|
230
|
+
};
|
|
231
|
+
|
|
232
|
+
interface TabProps {
|
|
233
|
+
/** Tab label */
|
|
234
|
+
label: React.ReactNode;
|
|
235
|
+
/** Explicit value; defaults to its index in the Tabs list */
|
|
236
|
+
value?: number | string;
|
|
237
|
+
disabled?: boolean;
|
|
238
|
+
className?: string;
|
|
239
|
+
/** Applied only when this tab is active */
|
|
240
|
+
activeClassName?: string;
|
|
241
|
+
/** @internal */
|
|
242
|
+
selected?: boolean;
|
|
243
|
+
/** @internal */
|
|
244
|
+
onChange?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
245
|
+
/** @internal */
|
|
246
|
+
tabRef?: React.Ref<HTMLButtonElement>;
|
|
247
|
+
}
|
|
248
|
+
declare function Tab({ label, disabled, className, activeClassName, selected, onChange, tabRef, }: TabProps): react_jsx_runtime.JSX.Element;
|
|
249
|
+
|
|
250
|
+
type TooltipPlacement = "top" | "top-start" | "top-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end" | "right" | "right-start" | "right-end";
|
|
251
|
+
interface TooltipProps {
|
|
252
|
+
title: React.ReactNode;
|
|
253
|
+
children: React.ReactElement;
|
|
254
|
+
placement?: TooltipPlacement;
|
|
255
|
+
arrow?: boolean;
|
|
256
|
+
open?: boolean;
|
|
257
|
+
enterDelay?: number;
|
|
258
|
+
leaveDelay?: number;
|
|
259
|
+
className?: string;
|
|
260
|
+
disabled?: boolean;
|
|
261
|
+
}
|
|
262
|
+
declare function Tooltip({ title, children, placement, arrow, open: controlledOpen, enterDelay, leaveDelay, className, disabled, }: TooltipProps): react_jsx_runtime.JSX.Element;
|
|
263
|
+
|
|
170
264
|
/**
|
|
171
265
|
* useState backed by localStorage — syncs value on mount and persists on change.
|
|
172
266
|
*/
|
|
@@ -177,4 +271,4 @@ declare const handleCopyTextToClipboard: ({ clipboardText, }: {
|
|
|
177
271
|
clipboardText: string | number | null | undefined;
|
|
178
272
|
}) => Promise<boolean>;
|
|
179
273
|
|
|
180
|
-
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, ReadMore, type ReadMoreProps, SearchBar, type SearchBarProps, StagingAlert, type StagingAlertProps, cn, handleCopyTextToClipboard, useLocalStorage };
|
|
274
|
+
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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -113,6 +113,7 @@ interface FilterDrawerProps {
|
|
|
113
113
|
title?: string;
|
|
114
114
|
anchor?: DrawerAnchor;
|
|
115
115
|
children?: React.ReactNode;
|
|
116
|
+
drawerClassName?: string;
|
|
116
117
|
childrenClassName?: string;
|
|
117
118
|
applyBtnText?: string;
|
|
118
119
|
clearBtnText?: string;
|
|
@@ -120,7 +121,7 @@ interface FilterDrawerProps {
|
|
|
120
121
|
handleApplyFilters: () => void;
|
|
121
122
|
handleClearFilters: () => void;
|
|
122
123
|
}
|
|
123
|
-
declare const FilterDrawer: ({ open, title, anchor, children, childrenClassName, applyBtnText, clearBtnText, handleClose, handleApplyFilters, handleClearFilters, }: FilterDrawerProps) => react_jsx_runtime.JSX.Element;
|
|
124
|
+
declare const FilterDrawer: ({ open, title, anchor, children, drawerClassName, childrenClassName, applyBtnText, clearBtnText, handleClose, handleApplyFilters, handleClearFilters, }: FilterDrawerProps) => react_jsx_runtime.JSX.Element;
|
|
124
125
|
|
|
125
126
|
interface ModalProps {
|
|
126
127
|
show: boolean;
|
|
@@ -136,6 +137,48 @@ interface ModalProps {
|
|
|
136
137
|
}
|
|
137
138
|
declare function Modal({ show, title, className, children, isLoading, onHide, isWarning, isButtonsRequired, handleConfirmation, handleConfirmationBtnText, }: ModalProps): react_jsx_runtime.JSX.Element | null;
|
|
138
139
|
|
|
140
|
+
interface MonthYear {
|
|
141
|
+
month: number;
|
|
142
|
+
year: number;
|
|
143
|
+
}
|
|
144
|
+
type MonthYearPickerColor = "skprimary" | "blue" | "green" | "purple" | "red" | "orange" | "pink" | "teal";
|
|
145
|
+
interface MonthYearPickerProps {
|
|
146
|
+
month: number;
|
|
147
|
+
year: number;
|
|
148
|
+
onChange: (value: MonthYear) => void;
|
|
149
|
+
disableFuture?: boolean;
|
|
150
|
+
disablePast?: boolean;
|
|
151
|
+
minDate?: MonthYear;
|
|
152
|
+
maxDate?: MonthYear;
|
|
153
|
+
placement?: "left" | "right";
|
|
154
|
+
variant?: "outlined" | "ghost" | "plain";
|
|
155
|
+
size?: "sm" | "md" | "lg";
|
|
156
|
+
color?: MonthYearPickerColor;
|
|
157
|
+
disabled?: boolean;
|
|
158
|
+
className?: string;
|
|
159
|
+
triggerClassName?: string;
|
|
160
|
+
dropdownClassName?: string;
|
|
161
|
+
}
|
|
162
|
+
declare const MonthYearPicker: ({ month, year, onChange, disableFuture, disablePast, minDate, maxDate, placement, variant, size, color, disabled, className, triggerClassName, dropdownClassName, }: MonthYearPickerProps) => react_jsx_runtime.JSX.Element;
|
|
163
|
+
|
|
164
|
+
interface PaginationProps {
|
|
165
|
+
count: number; /** Total number of pages */
|
|
166
|
+
page: number; /** Current page, 1-indexed */
|
|
167
|
+
onChange: (page: number) => void; /** Fired when the user selects a new page */
|
|
168
|
+
siblingCount?: number; /** Pages shown on each side of the current page. Default: 1 */
|
|
169
|
+
boundaryCount?: number; /** Pages always shown at the start and end. Default: 1 */
|
|
170
|
+
showFirstButton?: boolean; /** Show a jump-to-first-page button (««) */
|
|
171
|
+
showLastButton?: boolean; /** Show a jump-to-last-page button (»») */
|
|
172
|
+
hidePrevButton?: boolean; /** Hide the previous-page button */
|
|
173
|
+
hideNextButton?: boolean; /** Hide the next-page button */
|
|
174
|
+
disabled?: boolean; /** Disable all interactions */
|
|
175
|
+
size?: "small" | "medium" | "large"; /** Button size */
|
|
176
|
+
variant?: "outlined" | "text"; /** Visual style — outlined adds a persistent border to every button */
|
|
177
|
+
shape?: "circular" | "rounded"; /** Button corner style */
|
|
178
|
+
className?: string; /** Extra className applied to the root nav element */
|
|
179
|
+
}
|
|
180
|
+
declare const Pagination: ({ count, page, onChange, siblingCount, boundaryCount, showFirstButton, showLastButton, hidePrevButton, hideNextButton, disabled, size, variant, shape, className, }: PaginationProps) => react_jsx_runtime.JSX.Element | null;
|
|
181
|
+
|
|
139
182
|
interface ReadMoreProps {
|
|
140
183
|
readMore: Record<string | number, boolean>;
|
|
141
184
|
index: string | number;
|
|
@@ -167,6 +210,57 @@ interface StagingAlertProps {
|
|
|
167
210
|
}
|
|
168
211
|
declare const StagingAlert: ({ liveUrl, liveLinkText, }: StagingAlertProps) => react_jsx_runtime.JSX.Element;
|
|
169
212
|
|
|
213
|
+
interface TabsProps {
|
|
214
|
+
value: number | string;
|
|
215
|
+
onChange: (event: React.SyntheticEvent, value: number | string) => void;
|
|
216
|
+
children: React.ReactNode;
|
|
217
|
+
variant?: "standard" | "scrollable" | "fullWidth";
|
|
218
|
+
scrollButtons?: "auto" | boolean;
|
|
219
|
+
allowScrollButtonsMobile?: boolean;
|
|
220
|
+
className?: string;
|
|
221
|
+
"aria-label"?: string;
|
|
222
|
+
}
|
|
223
|
+
declare function Tabs({ value, onChange, children, variant, scrollButtons, allowScrollButtonsMobile, className, "aria-label": ariaLabel, }: TabsProps): react_jsx_runtime.JSX.Element;
|
|
224
|
+
/** Accessibility helper — same API as MUI's a11yProps */
|
|
225
|
+
declare function handleAllyProps({ index }: {
|
|
226
|
+
index: number;
|
|
227
|
+
}): {
|
|
228
|
+
id: string;
|
|
229
|
+
"aria-controls": string;
|
|
230
|
+
};
|
|
231
|
+
|
|
232
|
+
interface TabProps {
|
|
233
|
+
/** Tab label */
|
|
234
|
+
label: React.ReactNode;
|
|
235
|
+
/** Explicit value; defaults to its index in the Tabs list */
|
|
236
|
+
value?: number | string;
|
|
237
|
+
disabled?: boolean;
|
|
238
|
+
className?: string;
|
|
239
|
+
/** Applied only when this tab is active */
|
|
240
|
+
activeClassName?: string;
|
|
241
|
+
/** @internal */
|
|
242
|
+
selected?: boolean;
|
|
243
|
+
/** @internal */
|
|
244
|
+
onChange?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
245
|
+
/** @internal */
|
|
246
|
+
tabRef?: React.Ref<HTMLButtonElement>;
|
|
247
|
+
}
|
|
248
|
+
declare function Tab({ label, disabled, className, activeClassName, selected, onChange, tabRef, }: TabProps): react_jsx_runtime.JSX.Element;
|
|
249
|
+
|
|
250
|
+
type TooltipPlacement = "top" | "top-start" | "top-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end" | "right" | "right-start" | "right-end";
|
|
251
|
+
interface TooltipProps {
|
|
252
|
+
title: React.ReactNode;
|
|
253
|
+
children: React.ReactElement;
|
|
254
|
+
placement?: TooltipPlacement;
|
|
255
|
+
arrow?: boolean;
|
|
256
|
+
open?: boolean;
|
|
257
|
+
enterDelay?: number;
|
|
258
|
+
leaveDelay?: number;
|
|
259
|
+
className?: string;
|
|
260
|
+
disabled?: boolean;
|
|
261
|
+
}
|
|
262
|
+
declare function Tooltip({ title, children, placement, arrow, open: controlledOpen, enterDelay, leaveDelay, className, disabled, }: TooltipProps): react_jsx_runtime.JSX.Element;
|
|
263
|
+
|
|
170
264
|
/**
|
|
171
265
|
* useState backed by localStorage — syncs value on mount and persists on change.
|
|
172
266
|
*/
|
|
@@ -177,4 +271,4 @@ declare const handleCopyTextToClipboard: ({ clipboardText, }: {
|
|
|
177
271
|
clipboardText: string | number | null | undefined;
|
|
178
272
|
}) => Promise<boolean>;
|
|
179
273
|
|
|
180
|
-
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, ReadMore, type ReadMoreProps, SearchBar, type SearchBarProps, StagingAlert, type StagingAlertProps, cn, handleCopyTextToClipboard, useLocalStorage };
|
|
274
|
+
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 };
|