@seekho/ui 0.1.22 → 0.1.26

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
@@ -137,6 +137,48 @@ interface ModalProps {
137
137
  }
138
138
  declare function Modal({ show, title, className, children, isLoading, onHide, isWarning, isButtonsRequired, handleConfirmation, handleConfirmationBtnText, }: ModalProps): react_jsx_runtime.JSX.Element | null;
139
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
+
140
182
  interface ReadMoreProps {
141
183
  readMore: Record<string | number, boolean>;
142
184
  index: string | number;
@@ -168,6 +210,57 @@ interface StagingAlertProps {
168
210
  }
169
211
  declare const StagingAlert: ({ liveUrl, liveLinkText, }: StagingAlertProps) => react_jsx_runtime.JSX.Element;
170
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
+
171
264
  /**
172
265
  * useState backed by localStorage — syncs value on mount and persists on change.
173
266
  */
@@ -178,4 +271,4 @@ declare const handleCopyTextToClipboard: ({ clipboardText, }: {
178
271
  clipboardText: string | number | null | undefined;
179
272
  }) => Promise<boolean>;
180
273
 
181
- 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
@@ -137,6 +137,48 @@ interface ModalProps {
137
137
  }
138
138
  declare function Modal({ show, title, className, children, isLoading, onHide, isWarning, isButtonsRequired, handleConfirmation, handleConfirmationBtnText, }: ModalProps): react_jsx_runtime.JSX.Element | null;
139
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
+
140
182
  interface ReadMoreProps {
141
183
  readMore: Record<string | number, boolean>;
142
184
  index: string | number;
@@ -168,6 +210,57 @@ interface StagingAlertProps {
168
210
  }
169
211
  declare const StagingAlert: ({ liveUrl, liveLinkText, }: StagingAlertProps) => react_jsx_runtime.JSX.Element;
170
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
+
171
264
  /**
172
265
  * useState backed by localStorage — syncs value on mount and persists on change.
173
266
  */
@@ -178,4 +271,4 @@ declare const handleCopyTextToClipboard: ({ clipboardText, }: {
178
271
  clipboardText: string | number | null | undefined;
179
272
  }) => Promise<boolean>;
180
273
 
181
- 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 };