hiver-ui-kit-extended 1.0.0-beta.10

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/README.md ADDED
@@ -0,0 +1,73 @@
1
+ # React + TypeScript + Vite
2
+
3
+ This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
4
+
5
+ Currently, two official plugins are available:
6
+
7
+ - [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Babel](https://babeljs.io/) (or [oxc](https://oxc.rs) when used in [rolldown-vite](https://vite.dev/guide/rolldown)) for Fast Refresh
8
+ - [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
9
+
10
+ ## React Compiler
11
+
12
+ The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see [this documentation](https://react.dev/learn/react-compiler/installation).
13
+
14
+ ## Expanding the ESLint configuration
15
+
16
+ If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:
17
+
18
+ ```js
19
+ export default defineConfig([
20
+ globalIgnores(['dist']),
21
+ {
22
+ files: ['**/*.{ts,tsx}'],
23
+ extends: [
24
+ // Other configs...
25
+
26
+ // Remove tseslint.configs.recommended and replace with this
27
+ tseslint.configs.recommendedTypeChecked,
28
+ // Alternatively, use this for stricter rules
29
+ tseslint.configs.strictTypeChecked,
30
+ // Optionally, add this for stylistic rules
31
+ tseslint.configs.stylisticTypeChecked,
32
+
33
+ // Other configs...
34
+ ],
35
+ languageOptions: {
36
+ parserOptions: {
37
+ project: ['./tsconfig.node.json', './tsconfig.app.json'],
38
+ tsconfigRootDir: import.meta.dirname,
39
+ },
40
+ // other options...
41
+ },
42
+ },
43
+ ])
44
+ ```
45
+
46
+ You can also install [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) and [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) for React-specific lint rules:
47
+
48
+ ```js
49
+ // eslint.config.js
50
+ import reactX from 'eslint-plugin-react-x'
51
+ import reactDom from 'eslint-plugin-react-dom'
52
+
53
+ export default defineConfig([
54
+ globalIgnores(['dist']),
55
+ {
56
+ files: ['**/*.{ts,tsx}'],
57
+ extends: [
58
+ // Other configs...
59
+ // Enable lint rules for React
60
+ reactX.configs['recommended-typescript'],
61
+ // Enable lint rules for React DOM
62
+ reactDom.configs.recommended,
63
+ ],
64
+ languageOptions: {
65
+ parserOptions: {
66
+ project: ['./tsconfig.node.json', './tsconfig.app.json'],
67
+ tsconfigRootDir: import.meta.dirname,
68
+ },
69
+ // other options...
70
+ },
71
+ },
72
+ ])
73
+ ```
@@ -0,0 +1,240 @@
1
+ import { BreadCrumbProps } from 'primereact/breadcrumb';
2
+ import { ButtonHTMLAttributes } from 'react';
3
+ import { ChipProps as ChipProps_2 } from 'primereact/chip';
4
+ import { DataTableProps as DataTableProps_2 } from 'primereact/datatable';
5
+ import { ElementType } from 'react';
6
+ import { HTMLAttributes } from 'react';
7
+ import { JSX as JSX_2 } from 'react/jsx-runtime';
8
+ import { MouseEvent as MouseEvent_2 } from 'react';
9
+ import { ReactNode } from 'react';
10
+
11
+ export declare const Breadcrumb: (props: BreadcrumbProps) => JSX_2.Element;
12
+
13
+ export declare interface BreadcrumbItem {
14
+ label?: string;
15
+ icon?: string;
16
+ url?: string;
17
+ }
18
+
19
+ export declare interface BreadcrumbProps extends Omit<BreadCrumbProps, 'model' | 'home'> {
20
+ items: BreadcrumbItem[];
21
+ className?: string;
22
+ style?: React.CSSProperties;
23
+ }
24
+
25
+ export declare const Button: (props: ButtonProps) => JSX_2.Element;
26
+
27
+ export declare interface ButtonProps {
28
+ label?: string;
29
+ children?: React.ReactNode;
30
+ disabled?: boolean;
31
+ icon?: string;
32
+ color?: 'primary' | 'secondary' | 'success' | 'error' | 'warning' | 'info';
33
+ variant?: 'contained' | 'outlined' | 'text';
34
+ size?: 'small' | 'medium' | 'large';
35
+ onClick?: () => void;
36
+ rounded?: boolean;
37
+ className?: string;
38
+ isTextStyled?: boolean;
39
+ badge?: string;
40
+ }
41
+
42
+ export declare const Chip: (props: ChipProps) => JSX_2.Element;
43
+
44
+ export declare interface ChipProps extends Omit<ChipProps_2, 'label'> {
45
+ label?: string | ReactNode;
46
+ color?: "default" | 'primary' | 'secondary' | 'success' | 'error' | 'warning' | 'info';
47
+ icon?: string;
48
+ onClick?: (event: MouseEvent_2<HTMLDivElement>) => void;
49
+ className?: string;
50
+ size?: "small" | "medium";
51
+ style?: React.CSSProperties;
52
+ }
53
+
54
+ export declare interface ColumnConfig {
55
+ id: string;
56
+ label: string;
57
+ field?: string;
58
+ [key: string]: any;
59
+ }
60
+
61
+ export declare function DataTable<T extends DataTableValueArray = DataTableValueArray>(props: DataTableProps<T>): JSX_2.Element;
62
+
63
+ export declare interface DataTableProps<T extends DataTableValueArray = DataTableValueArray> extends Omit<DataTableProps_2<T>, 'children' | 'rows' | 'onRowClick'> {
64
+ children?: ReactNode;
65
+ className?: string;
66
+ style?: React.CSSProperties;
67
+ primeProps?: Partial<DataTableProps_2<T>>;
68
+ columns?: ColumnConfig[];
69
+ rows?: number;
70
+ tableStyle?: React.CSSProperties;
71
+ onRowClick?: any;
72
+ }
73
+
74
+ export declare type DataTableValueArray = Array<Record<string, any>>;
75
+
76
+ export declare const Dialog: (props: DialogProps) => JSX_2.Element;
77
+
78
+ export declare interface DialogProps {
79
+ children: ReactNode;
80
+ /** Controls the visibility of the dialog (MUI-style API) */
81
+ open?: boolean;
82
+ /** Callback fired when the component requests to be closed */
83
+ onClose?: (event?: {}, reason?: 'backdropClick' | 'escapeKeyDown') => void;
84
+ /** If true, the dialog will stretch to the maximum width */
85
+ fullWidth?: boolean;
86
+ /** Determine the maximum width of the dialog */
87
+ maxWidth?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | false;
88
+ /** If true, the dialog will be full-screen */
89
+ fullScreen?: boolean;
90
+ /** If true, pressing the escape key will not trigger the onClose callback */
91
+ disableEscapeKeyDown?: boolean;
92
+ /** Determine the container for scrolling the dialog */
93
+ scroll?: 'body' | 'paper';
94
+ /** Title of the dialog */
95
+ title?: ReactNode;
96
+ /** Footer content of the dialog */
97
+ footer?: ReactNode;
98
+ /** Variant of the dialog */
99
+ variant?: 'standard' | 'confirmation';
100
+ /** Callback fired when the back button is clicked (for confirmation variant) */
101
+ onBack?: () => void;
102
+ className?: string;
103
+ style?: React.CSSProperties;
104
+ }
105
+
106
+ export declare const HUITheme: {
107
+ palette: {
108
+ primary: {
109
+ main: string;
110
+ light: string;
111
+ dark: string;
112
+ };
113
+ };
114
+ };
115
+
116
+ /**
117
+ * HUI Theme Provider
118
+ * Wraps the app and provides the HUI theme via context
119
+ */
120
+ export declare function HUIThemeProvider({ children, theme, }: HUIThemeProviderProps): JSX_2.Element;
121
+
122
+ declare interface HUIThemeProviderProps {
123
+ children: ReactNode;
124
+ theme?: typeof HUITheme;
125
+ }
126
+
127
+ declare type IconType = ReactNode | string;
128
+
129
+ export declare type SxProps = React.CSSProperties | ((theme: any) => React.CSSProperties);
130
+
131
+ export declare const Tab: (props: TabProps) => JSX_2.Element;
132
+
133
+ export declare interface TabItem {
134
+ label: string;
135
+ content: ReactNode;
136
+ icon?: ReactNode;
137
+ }
138
+
139
+ export declare interface TabProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'value' | 'onChange'> {
140
+ header: string | ReactNode;
141
+ value?: number | string;
142
+ icon?: ReactNode;
143
+ iconPosition?: 'start' | 'end';
144
+ count?: number;
145
+ countVisible?: boolean;
146
+ newProd?: boolean;
147
+ Premium?: boolean;
148
+ disabled?: boolean;
149
+ sx?: SxProps;
150
+ children?: ReactNode;
151
+ }
152
+
153
+ export declare const Tabs: (props: TabsProps) => JSX_2.Element;
154
+
155
+ export declare type TabsIndicatorColor = 'primary' | 'secondary';
156
+
157
+ export declare type TabsOrientation = 'horizontal' | 'vertical';
158
+
159
+ export declare interface TabsProps {
160
+ value: number;
161
+ onTabChange: any;
162
+ items: TabItem[];
163
+ className?: string;
164
+ }
165
+
166
+ export declare type TabsScrollButtons = 'auto' | true | false;
167
+
168
+ export declare type TabsTextColor = 'primary' | 'secondary' | 'inherit';
169
+
170
+ export declare type TabsVariant = 'standard' | 'scrollable' | 'fullWidth';
171
+
172
+ export declare const TextField: (props: TextFieldProps) => JSX_2.Element;
173
+
174
+ export declare interface TextFieldProps {
175
+ value?: string;
176
+ onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
177
+ placeholder?: string;
178
+ disabled?: boolean;
179
+ type?: string;
180
+ className?: string;
181
+ style?: React.CSSProperties;
182
+ name?: string;
183
+ id?: string;
184
+ autoFocus?: boolean;
185
+ required?: boolean;
186
+ error?: boolean;
187
+ helperText?: string;
188
+ label?: string;
189
+ fullWidth?: boolean;
190
+ size?: 'small' | 'medium';
191
+ icon?: IconType;
192
+ iconPosition?: 'left' | 'right';
193
+ children?: ReactNode;
194
+ }
195
+
196
+ export declare const Toast: (props: ToastProps) => JSX_2.Element;
197
+
198
+ export declare type ToastPosition = 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right' | 'center';
199
+
200
+ export declare interface ToastProps {
201
+ text: string;
202
+ severity?: ToastSeverity;
203
+ position?: ToastPosition;
204
+ life?: number;
205
+ closable?: boolean;
206
+ className?: string;
207
+ icon?: ReactNode;
208
+ children?: ReactNode;
209
+ style?: React.CSSProperties;
210
+ }
211
+
212
+ export declare type ToastSeverity = 'success' | 'error' | 'warning' | 'info';
213
+
214
+ export declare interface TypographyProps extends Omit<HTMLAttributes<HTMLElement>, 'children'> {
215
+ text?: string;
216
+ variant?: TypographyVariant;
217
+ tag?: TypographyTag;
218
+ noWrap?: boolean;
219
+ children?: ReactNode;
220
+ className?: string;
221
+ }
222
+
223
+ export declare type TypographyTag = ElementType;
224
+
225
+ export declare type TypographyVariant = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'body' | 'body2' | 'body3' | 'sm' | 'caption';
226
+
227
+ /**
228
+ * Hook to access the HUI theme
229
+ */
230
+ export declare function useHUITheme(): {
231
+ palette: {
232
+ primary: {
233
+ main: string;
234
+ light: string;
235
+ dark: string;
236
+ };
237
+ };
238
+ };
239
+
240
+ export { }