@pop-ui/core 0.0.12 → 0.0.14

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.
@@ -0,0 +1,206 @@
1
+ import { AlertProps as AlertProps_2 } from '@mantine/core';
2
+ import { AutocompleteProps } from '@mantine/core';
3
+ import { ButtonProps } from '@mantine/core';
4
+ import { CheckboxProps as CheckboxProps_2 } from '@mantine/core';
5
+ import { DatePickerInputProps } from '@mantine/dates';
6
+ import { DropzoneProps } from '@mantine/dropzone';
7
+ import { FileWithPath } from '@mantine/dropzone';
8
+ import { HTMLAttributes } from 'react';
9
+ import { InputProps } from '@mantine/core';
10
+ import { JSX as JSX_2 } from 'react/jsx-runtime';
11
+ import { ModalProps as ModalProps_2 } from '@mantine/core';
12
+ import { RadioProps as RadioProps_2 } from '@mantine/core';
13
+ import { ReactNode } from 'react';
14
+ import { SegmentedControlProps } from '@mantine/core';
15
+ import { SelectProps } from '@mantine/core';
16
+ import { SwitchProps } from '@mantine/core';
17
+ import { TabsProps } from '@mantine/core';
18
+ import { TextareaProps } from '@mantine/core';
19
+ import { TimeInputProps } from '@mantine/dates';
20
+ import { TooltipProps as TooltipProps_2 } from '@mantine/core';
21
+
22
+ export declare const Alert: ({ visible, type, variant, top, right, ...props }: AlertProps) => JSX_2.Element | null;
23
+
24
+ declare interface AlertProps extends AlertProps_2 {
25
+ visible: boolean;
26
+ type?: "success" | "error";
27
+ variant?: "fill" | "light";
28
+ title?: string;
29
+ }
30
+
31
+ export declare function Button({ children, size, styleType, isLoading, disabled, ...props }: IButtonProps): JSX_2.Element;
32
+
33
+ export declare const Checkbox: ({ size, ...props }: CheckboxProps) => JSX_2.Element;
34
+
35
+ declare interface CheckboxProps extends CheckboxProps_2 {
36
+ size?: "sm" | "md" | "lg";
37
+ }
38
+
39
+ declare interface CommonTextFieldProps {
40
+ label?: string;
41
+ labelPosition?: "top" | "left";
42
+ size?: "sm" | "md" | "lg";
43
+ required?: boolean;
44
+ tooltip?: string;
45
+ tooltipPosition?: "top" | "bottom" | "left" | "right";
46
+ description?: string;
47
+ errorMsg?: string;
48
+ maxTextCount?: number;
49
+ onChange?: (event: any) => void;
50
+ onClear?: () => void;
51
+ }
52
+
53
+ export declare const DatePicker: ({ size, type, withTime, ...props }: DatePickerProps) => JSX_2.Element;
54
+
55
+ declare interface DatePickerProps extends DatePickerInputProps {
56
+ size?: "sm" | "md" | "lg";
57
+ type?: "default" | "multiple" | "range";
58
+ withTime?: boolean;
59
+ }
60
+
61
+ export declare const Dropdown: ({ label, labelPosition, size, required, tooltip, tooltipPosition, errorMsg, description, ...props }: SearchBarProps_2) => JSX_2.Element;
62
+
63
+ declare interface IButtonProps extends ButtonProps {
64
+ onClick?: () => void;
65
+ size?: TButtonSize;
66
+ styleType?: TButtonVariant;
67
+ isLoading?: boolean;
68
+ }
69
+
70
+ export declare const ImageUploader: ({ width, height, defaultMsg, file, onDrop, showClearButton, onClear, ...props }: ImageUploaderProps) => JSX_2.Element;
71
+
72
+ declare interface ImageUploaderProps extends DropzoneProps {
73
+ width?: number;
74
+ height?: number;
75
+ defaultMsg?: ReactNode;
76
+ file?: string | FileWithPath;
77
+ showClearButton?: boolean;
78
+ onClear?: () => void;
79
+ }
80
+
81
+ export declare const Modal: ({ size, width, withCloseButton, ...props }: ModalProps) => JSX_2.Element;
82
+
83
+ declare interface ModalProps extends ModalProps_2 {
84
+ size?: "xs" | "sm" | "md" | "lg" | "xl";
85
+ width?: number;
86
+ }
87
+
88
+ export declare const Pagination: ({ currentPageIdx, rowsPerPage, totalLength, paginationSize, onPageChange, ...props }: PaginationProps) => JSX_2.Element;
89
+
90
+ declare interface PaginationProps extends HTMLAttributes<HTMLDivElement> {
91
+ currentPageIdx: number;
92
+ rowsPerPage?: number;
93
+ totalLength?: number;
94
+ paginationSize?: number;
95
+ onPageChange?: (e: number) => void;
96
+ }
97
+
98
+ export declare const Radio: ({ size, ...props }: RadioProps) => JSX_2.Element;
99
+
100
+ declare interface RadioProps extends RadioProps_2 {
101
+ size?: "sm" | "md" | "lg";
102
+ }
103
+
104
+ declare interface RowData {
105
+ [key: string]: {
106
+ cell: ReactNode;
107
+ sortTarget?: string | number | boolean;
108
+ dndId?: string | number;
109
+ trClassName?: string;
110
+ };
111
+ }
112
+
113
+ export declare const SearchBar: ({ label, labelPosition, size, required, tooltip, tooltipPosition, errorMsg, description, onChange, onClear, ...props }: SearchBarProps) => JSX_2.Element;
114
+
115
+ declare interface SearchBarProps extends AutocompleteProps {
116
+ label?: string;
117
+ labelPosition?: "top" | "left";
118
+ size?: "sm" | "md" | "lg";
119
+ tooltip?: string;
120
+ tooltipPosition?: "top" | "bottom" | "left" | "right";
121
+ description?: string;
122
+ errorMsg?: string;
123
+ onChange?: (event: any) => void;
124
+ onClear?: () => void;
125
+ }
126
+
127
+ declare interface SearchBarProps_2 extends SelectProps {
128
+ label?: string;
129
+ labelPosition?: "top" | "left";
130
+ size?: "sm" | "md" | "lg";
131
+ tooltip?: string;
132
+ tooltipPosition?: "top" | "bottom" | "left" | "right";
133
+ description?: string;
134
+ errorMsg?: string;
135
+ }
136
+
137
+ export declare const SegmentButton: ({ size, radius, ...props }: SegmentButtonProps) => JSX_2.Element;
138
+
139
+ declare interface SegmentButtonProps extends SegmentedControlProps {
140
+ size?: "sm" | "md" | "lg";
141
+ radius?: number | "xs" | "sm" | "md" | "lg" | "xl";
142
+ }
143
+
144
+ export declare const Tab: ({ tabList, containerPaddingTop, ...props }: TabProps) => JSX_2.Element;
145
+
146
+ export declare const Table: ({ tableId, headerList, tableData, sortable, draggable, striped, onDragEnd, className, }: TableProps) => JSX_2.Element;
147
+
148
+ declare interface TableProps {
149
+ tableId?: string;
150
+ headerList?: Array<ReactNode>;
151
+ tableData?: RowData[];
152
+ sortable?: boolean;
153
+ draggable?: boolean;
154
+ striped?: boolean;
155
+ onDragEnd?: (rows: {
156
+ dndId?: string | number;
157
+ }[]) => void;
158
+ className?: string;
159
+ }
160
+
161
+ declare interface TabProps extends TabsProps {
162
+ tabList: {
163
+ title: string;
164
+ value: string;
165
+ body: ReactNode;
166
+ icon?: ReactNode;
167
+ }[];
168
+ containerPaddingTop?: "xs" | "sm" | "md" | "lg" | "xl";
169
+ }
170
+
171
+ declare type TButtonSize = "sm" | "md" | "lg";
172
+
173
+ declare type TButtonVariant = "primary" | "primaryLine" | "basic" | "danger" | "setting" | "warning";
174
+
175
+ export declare const TextField: (allProps: TextFieldProps) => JSX_2.Element;
176
+
177
+ declare type TextFieldProps = CommonTextFieldProps & (({
178
+ textarea?: false;
179
+ } & Omit<InputProps, keyof CommonTextFieldProps | 'vars'>) | ({
180
+ textarea: true;
181
+ minRows?: number;
182
+ } & Omit<TextareaProps, keyof CommonTextFieldProps | 'vars'>));
183
+
184
+ export declare const TimePicker: ({ size, ...props }: TimePickerProps) => JSX_2.Element;
185
+
186
+ declare interface TimePickerProps extends TimeInputProps {
187
+ size?: "sm" | "md" | "lg";
188
+ }
189
+
190
+ export declare const Toggle: ({ size, labelPosition, disabled, onChange, ...props }: ToggleProps) => JSX_2.Element;
191
+
192
+ declare interface ToggleProps extends SwitchProps {
193
+ size?: "sm" | "md" | "lg";
194
+ labelPosition: "left" | "right";
195
+ disabled?: boolean;
196
+ onChange?: (event: any) => void;
197
+ }
198
+
199
+ export declare const Tooltip: ({ title, content, maw, multiline, ...props }: TooltipProps) => JSX_2.Element;
200
+
201
+ declare interface TooltipProps extends TooltipProps_2 {
202
+ title?: string;
203
+ content: string;
204
+ }
205
+
206
+ export { }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pop-ui/core",
3
3
  "type": "module",
4
- "version": "0.0.12",
4
+ "version": "0.0.14",
5
5
  "main": "./dist/core.umd.cjs",
6
6
  "module": "./dist/core.js",
7
7
  "types": "./dist/types/index.d.ts",
@@ -164,5 +164,5 @@
164
164
  "typescript": "^5.9.3",
165
165
  "vite": "^7.1.12"
166
166
  },
167
- "gitHead": "0adf9f6863d3340ecb9fac09833be90749a7b529"
167
+ "gitHead": "9b714b261827ab163cb9f5b3adf2378339421c61"
168
168
  }