spotlibs-components 0.1.8 → 0.1.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/dist/atoms/icons/index.d.mts +105 -0
- package/dist/atoms/icons/index.mjs +6 -0
- package/dist/{legacy/atoms → atoms}/icons/index.mjs.map +1 -1
- package/dist/chunk-NXFLMH2Q.mjs +37 -0
- package/dist/chunk-NXFLMH2Q.mjs.map +1 -0
- package/dist/{chunk-ZA4TTXLC.mjs → chunk-OGJBPTUP.mjs} +219 -2279
- package/dist/chunk-OGJBPTUP.mjs.map +1 -0
- package/dist/index.d.mts +442 -3
- package/dist/index.mjs +2149 -70
- package/dist/index.mjs.map +1 -1
- package/dist/mui/index.d.mts +23 -0
- package/dist/mui/index.mjs +27 -0
- package/dist/mui/index.mjs.map +1 -0
- package/dist/{types-dakVJwjl.d.mts → types-B0iF5xX8.d.mts} +256 -203
- package/dist/types.d.mts +1 -1
- package/package.json +10 -4
- package/dist/chunk-ZA4TTXLC.mjs.map +0 -1
- package/dist/legacy/atoms/icons/index.d.mts +0 -542
- package/dist/legacy/atoms/icons/index.mjs +0 -4
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export { default as Box } from '@mui/material/Box';
|
|
2
|
+
export { default as Stack } from '@mui/material/Stack';
|
|
3
|
+
export { default as Grid } from '@mui/material/Grid';
|
|
4
|
+
export { default as Container } from '@mui/material/Container';
|
|
5
|
+
export { default as ThemeProvider } from '@mui/material/styles/ThemeProvider';
|
|
6
|
+
export { default as createTheme } from '@mui/material/styles/createTheme';
|
|
7
|
+
export { default as useMediaQuery } from '@mui/material/useMediaQuery';
|
|
8
|
+
export { default as Paper } from '@mui/material/Paper';
|
|
9
|
+
export { default as Divider } from '@mui/material/Divider';
|
|
10
|
+
export { default as Collapse } from '@mui/material/Collapse';
|
|
11
|
+
export { default as Fade } from '@mui/material/Fade';
|
|
12
|
+
export { default as Grow } from '@mui/material/Grow';
|
|
13
|
+
export { default as Slide } from '@mui/material/Slide';
|
|
14
|
+
export { default as Zoom } from '@mui/material/Zoom';
|
|
15
|
+
export { default as Hidden } from '@mui/material/Hidden';
|
|
16
|
+
export { default as Portal } from '@mui/material/Portal';
|
|
17
|
+
export { default as ClickAwayListener } from '@mui/material/ClickAwayListener';
|
|
18
|
+
export { default as Popper } from '@mui/material/Popper';
|
|
19
|
+
export { default as Backdrop } from '@mui/material/Backdrop';
|
|
20
|
+
export { default as CircularProgress } from '@mui/material/CircularProgress';
|
|
21
|
+
export { default as LinearProgress } from '@mui/material/LinearProgress';
|
|
22
|
+
export { default as Skeleton } from '@mui/material/Skeleton';
|
|
23
|
+
export { alpha, darken, lighten, styled, useTheme } from '@mui/material/styles';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import '../chunk-NXFLMH2Q.mjs';
|
|
3
|
+
export { default as Box } from '@mui/material/Box';
|
|
4
|
+
export { default as Stack } from '@mui/material/Stack';
|
|
5
|
+
export { default as Grid } from '@mui/material/Grid';
|
|
6
|
+
export { default as Container } from '@mui/material/Container';
|
|
7
|
+
export { alpha, darken, lighten, styled, useTheme } from '@mui/material/styles';
|
|
8
|
+
export { default as ThemeProvider } from '@mui/material/styles/ThemeProvider';
|
|
9
|
+
export { default as createTheme } from '@mui/material/styles/createTheme';
|
|
10
|
+
export { default as useMediaQuery } from '@mui/material/useMediaQuery';
|
|
11
|
+
export { default as Paper } from '@mui/material/Paper';
|
|
12
|
+
export { default as Divider } from '@mui/material/Divider';
|
|
13
|
+
export { default as Collapse } from '@mui/material/Collapse';
|
|
14
|
+
export { default as Fade } from '@mui/material/Fade';
|
|
15
|
+
export { default as Grow } from '@mui/material/Grow';
|
|
16
|
+
export { default as Slide } from '@mui/material/Slide';
|
|
17
|
+
export { default as Zoom } from '@mui/material/Zoom';
|
|
18
|
+
export { default as Hidden } from '@mui/material/Hidden';
|
|
19
|
+
export { default as Portal } from '@mui/material/Portal';
|
|
20
|
+
export { default as ClickAwayListener } from '@mui/material/ClickAwayListener';
|
|
21
|
+
export { default as Popper } from '@mui/material/Popper';
|
|
22
|
+
export { default as Backdrop } from '@mui/material/Backdrop';
|
|
23
|
+
export { default as CircularProgress } from '@mui/material/CircularProgress';
|
|
24
|
+
export { default as LinearProgress } from '@mui/material/LinearProgress';
|
|
25
|
+
export { default as Skeleton } from '@mui/material/Skeleton';
|
|
26
|
+
//# sourceMappingURL=index.mjs.map
|
|
27
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.mjs","sourcesContent":[]}
|
|
@@ -23,36 +23,89 @@ declare function BaseAlert(
|
|
|
23
23
|
interface PrimitiveColorType {
|
|
24
24
|
color_overlay: string;
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
26
|
+
color_neutral_900: string;
|
|
27
|
+
color_neutral_700: string;
|
|
28
|
+
color_neutral_600: string;
|
|
29
|
+
color_neutral_500: string;
|
|
30
|
+
color_neutral_400: string;
|
|
31
|
+
color_neutral_300: string;
|
|
32
|
+
color_neutral_200: string;
|
|
33
|
+
color_neutral_100: string;
|
|
34
|
+
color_neutral_50: string;
|
|
35
|
+
|
|
36
|
+
color_blue_cakrawala_900: string;
|
|
37
|
+
color_blue_cakrawala_800: string;
|
|
38
|
+
color_blue_cakrawala_700: string;
|
|
39
|
+
color_blue_cakrawala_600: string;
|
|
40
|
+
color_blue_cakrawala_500: string;
|
|
41
|
+
color_blue_cakrawala_400: string;
|
|
42
|
+
color_blue_cakrawala_300: string;
|
|
43
|
+
color_blue_cakrawala_200: string;
|
|
44
|
+
color_blue_cakrawala_100: string;
|
|
45
|
+
|
|
46
|
+
color_blue_mentari_900: string;
|
|
47
|
+
color_blue_mentari_700: string;
|
|
48
|
+
color_blue_mentari_600: string;
|
|
49
|
+
color_blue_mentari_500: string;
|
|
50
|
+
color_blue_mentari_400: string;
|
|
51
|
+
color_blue_mentari_300: string;
|
|
52
|
+
color_blue_mentari_100: string;
|
|
53
|
+
|
|
54
|
+
color_blue_neon_900: string;
|
|
55
|
+
color_blue_neon_700: string;
|
|
56
|
+
color_blue_neon_600: string;
|
|
57
|
+
color_blue_neon_500: string;
|
|
58
|
+
color_blue_neon_400: string;
|
|
59
|
+
color_blue_neon_300: string;
|
|
60
|
+
color_blue_neon_100: string;
|
|
61
|
+
|
|
62
|
+
color_blue_sky_900: string;
|
|
63
|
+
color_blue_sky_700: string;
|
|
64
|
+
color_blue_sky_600: string;
|
|
65
|
+
color_blue_sky_500: string;
|
|
66
|
+
color_blue_sky_400: string;
|
|
67
|
+
color_blue_sky_300: string;
|
|
68
|
+
color_blue_sky_100: string;
|
|
69
|
+
|
|
70
|
+
color_green_900: string;
|
|
71
|
+
color_green_700: string;
|
|
72
|
+
color_green_600: string;
|
|
73
|
+
color_green_500: string;
|
|
74
|
+
color_green_400: string;
|
|
75
|
+
color_green_300: string;
|
|
76
|
+
color_green_100: string;
|
|
77
|
+
|
|
78
|
+
color_red_900: string;
|
|
79
|
+
color_red_700: string;
|
|
80
|
+
color_red_600: string;
|
|
81
|
+
color_red_500: string;
|
|
82
|
+
color_red_400: string;
|
|
83
|
+
color_red_300: string;
|
|
84
|
+
color_red_100: string;
|
|
85
|
+
|
|
86
|
+
color_yellow_900: string;
|
|
87
|
+
color_yellow_700: string;
|
|
88
|
+
color_yellow_600: string;
|
|
89
|
+
color_yellow_500: string;
|
|
90
|
+
color_yellow_400: string;
|
|
91
|
+
color_yellow_300: string;
|
|
92
|
+
color_yellow_100: string;
|
|
93
|
+
|
|
94
|
+
color_briva_900: string;
|
|
95
|
+
color_briva_700: string;
|
|
96
|
+
color_briva_600: string;
|
|
97
|
+
color_briva_500: string;
|
|
98
|
+
color_briva_400: string;
|
|
99
|
+
color_briva_300: string;
|
|
100
|
+
color_briva_100: string;
|
|
101
|
+
|
|
102
|
+
color_brizzi_900: string;
|
|
103
|
+
color_brizzi_700: string;
|
|
104
|
+
color_brizzi_600: string;
|
|
105
|
+
color_brizzi_500: string;
|
|
106
|
+
color_brizzi_400: string;
|
|
107
|
+
color_brizzi_300: string;
|
|
108
|
+
color_brizzi_100: string;
|
|
56
109
|
|
|
57
110
|
[key: string]: string;
|
|
58
111
|
}
|
|
@@ -61,80 +114,80 @@ declare const PrimitiveColor: PrimitiveColorType;
|
|
|
61
114
|
|
|
62
115
|
interface DerivedColorType {
|
|
63
116
|
/* Background */
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
color_bg_light_yellow: string;
|
|
117
|
+
color_bg_page: string;
|
|
118
|
+
color_bg_surface: string;
|
|
119
|
+
color_bg_inverse: string;
|
|
120
|
+
color_bg_disabled: string;
|
|
121
|
+
color_bg_brand_primary: string;
|
|
122
|
+
color_bg_brand_primary_subtle: string;
|
|
123
|
+
color_bg_brand_secondary: string;
|
|
124
|
+
color_bg_brand_secondary_subtle: string;
|
|
125
|
+
color_bg_success: string;
|
|
126
|
+
color_bg_success_subtle: string;
|
|
127
|
+
color_bg_danger: string;
|
|
128
|
+
color_bg_danger_subtle: string;
|
|
129
|
+
color_bg_warning: string;
|
|
130
|
+
color_bg_warning_subtle: string;
|
|
79
131
|
|
|
80
132
|
/* Border */
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
133
|
+
color_border_default: string;
|
|
134
|
+
color_border_strong: string;
|
|
135
|
+
color_border_inverse: string;
|
|
136
|
+
color_border_brand_primary: string;
|
|
137
|
+
color_border_brand_secondary: string;
|
|
138
|
+
color_border_success: string;
|
|
139
|
+
color_border_danger: string;
|
|
140
|
+
color_border_warning: string;
|
|
89
141
|
|
|
90
142
|
/* Text */
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
143
|
+
color_text_default: string;
|
|
144
|
+
color_text_subtle: string;
|
|
145
|
+
color_text_disabled: string;
|
|
146
|
+
color_text_placeholder: string;
|
|
147
|
+
color_text_inverse: string;
|
|
148
|
+
color_text_brand_primary: string;
|
|
149
|
+
color_text_brand_secondary: string;
|
|
150
|
+
color_text_success: string;
|
|
151
|
+
color_text_danger: string;
|
|
152
|
+
color_text_warning: string;
|
|
101
153
|
|
|
102
154
|
/* Icon */
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
155
|
+
color_icon_subtle: string;
|
|
156
|
+
color_icon_strong: string;
|
|
157
|
+
color_icon_disabled: string;
|
|
158
|
+
color_icon_inverse: string;
|
|
159
|
+
color_icon_brand_primary: string;
|
|
160
|
+
color_icon_brand_secondary: string;
|
|
161
|
+
color_icon_success: string;
|
|
162
|
+
color_icon_danger: string;
|
|
163
|
+
color_icon_warning: string;
|
|
111
164
|
}
|
|
112
165
|
|
|
113
166
|
declare const DerivedColor: DerivedColorType;
|
|
114
167
|
|
|
115
|
-
interface TypographyColorToken {
|
|
116
|
-
value: string;
|
|
117
|
-
token: string;
|
|
118
|
-
alias: string;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
declare const VariantStyles: Record<
|
|
122
|
-
string,
|
|
123
|
-
{
|
|
124
|
-
fontSize: string;
|
|
125
|
-
fontWeight: number;
|
|
126
|
-
}
|
|
127
|
-
>;
|
|
128
|
-
|
|
129
|
-
interface TypographyProps {
|
|
130
|
-
variant?: string;
|
|
131
|
-
children?: React.ReactNode;
|
|
132
|
-
sx?: React.CSSProperties & Record<string, unknown>;
|
|
133
|
-
[key: string]: any;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
declare function Typography(
|
|
137
|
-
props: TypographyProps,
|
|
168
|
+
interface TypographyColorToken {
|
|
169
|
+
value: string;
|
|
170
|
+
token: string;
|
|
171
|
+
alias: string;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
declare const VariantStyles: Record<
|
|
175
|
+
string,
|
|
176
|
+
{
|
|
177
|
+
fontSize: string;
|
|
178
|
+
fontWeight: number;
|
|
179
|
+
}
|
|
180
|
+
>;
|
|
181
|
+
|
|
182
|
+
interface TypographyProps {
|
|
183
|
+
variant?: string;
|
|
184
|
+
children?: React.ReactNode;
|
|
185
|
+
sx?: React.CSSProperties & Record<string, unknown>;
|
|
186
|
+
[key: string]: any;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
declare function Typography(
|
|
190
|
+
props: TypographyProps,
|
|
138
191
|
): React.ReactElement | null;
|
|
139
192
|
|
|
140
193
|
declare const SpacingToken: {
|
|
@@ -151,7 +204,7 @@ declare const SpacingToken: {
|
|
|
151
204
|
spacing10: string;
|
|
152
205
|
};
|
|
153
206
|
|
|
154
|
-
declare const CONTENT_SPACING_TOKENS: {
|
|
207
|
+
declare const CONTENT_SPACING_TOKENS: {
|
|
155
208
|
spacing_1: {
|
|
156
209
|
mobile: string;
|
|
157
210
|
tablet: string;
|
|
@@ -166,41 +219,41 @@ declare const CONTENT_SPACING_TOKENS: {
|
|
|
166
219
|
mobile: string;
|
|
167
220
|
tablet: string;
|
|
168
221
|
web: string;
|
|
169
|
-
};
|
|
170
|
-
};
|
|
171
|
-
|
|
172
|
-
interface ResponsiveSpacingValue {
|
|
173
|
-
mobile?: string;
|
|
174
|
-
tablet?: string;
|
|
175
|
-
web?: string;
|
|
176
|
-
[key: string]: string | undefined;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
type SpacingSizeValue = keyof typeof SpacingToken | string | number;
|
|
180
|
-
|
|
181
|
-
type ContentSpacingSizeValue =
|
|
182
|
-
| keyof typeof CONTENT_SPACING_TOKENS
|
|
183
|
-
| ResponsiveSpacingValue;
|
|
184
|
-
|
|
185
|
-
interface SpacingProps {
|
|
186
|
-
size?: SpacingSizeValue;
|
|
187
|
-
axis?: "vertical" | "horizontal";
|
|
188
|
-
as?: React.ElementType;
|
|
189
|
-
className?: string;
|
|
190
|
-
style?: React.CSSProperties;
|
|
191
|
-
children?: React.ReactNode;
|
|
192
|
-
[key: string]: unknown;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
interface ContentSpacingProps {
|
|
196
|
-
size?: ContentSpacingSizeValue;
|
|
197
|
-
breakpoint?: "mobile" | "tablet" | "web";
|
|
198
|
-
as?: React.ElementType;
|
|
199
|
-
className?: string;
|
|
200
|
-
style?: React.CSSProperties;
|
|
201
|
-
children?: React.ReactNode;
|
|
202
|
-
[key: string]: unknown;
|
|
203
|
-
}
|
|
222
|
+
};
|
|
223
|
+
};
|
|
224
|
+
|
|
225
|
+
interface ResponsiveSpacingValue {
|
|
226
|
+
mobile?: string;
|
|
227
|
+
tablet?: string;
|
|
228
|
+
web?: string;
|
|
229
|
+
[key: string]: string | undefined;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
type SpacingSizeValue = keyof typeof SpacingToken | string | number;
|
|
233
|
+
|
|
234
|
+
type ContentSpacingSizeValue =
|
|
235
|
+
| keyof typeof CONTENT_SPACING_TOKENS
|
|
236
|
+
| ResponsiveSpacingValue;
|
|
237
|
+
|
|
238
|
+
interface SpacingProps {
|
|
239
|
+
size?: SpacingSizeValue;
|
|
240
|
+
axis?: "vertical" | "horizontal";
|
|
241
|
+
as?: React.ElementType;
|
|
242
|
+
className?: string;
|
|
243
|
+
style?: React.CSSProperties;
|
|
244
|
+
children?: React.ReactNode;
|
|
245
|
+
[key: string]: unknown;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
interface ContentSpacingProps {
|
|
249
|
+
size?: ContentSpacingSizeValue;
|
|
250
|
+
breakpoint?: "mobile" | "tablet" | "web";
|
|
251
|
+
as?: React.ElementType;
|
|
252
|
+
className?: string;
|
|
253
|
+
style?: React.CSSProperties;
|
|
254
|
+
children?: React.ReactNode;
|
|
255
|
+
[key: string]: unknown;
|
|
256
|
+
}
|
|
204
257
|
|
|
205
258
|
declare const Spacing: React.FC<SpacingProps>;
|
|
206
259
|
|
|
@@ -358,62 +411,62 @@ interface BaseSwitchProps {
|
|
|
358
411
|
|
|
359
412
|
declare function BaseSwitch(props: BaseSwitchProps): React.ReactElement;
|
|
360
413
|
|
|
361
|
-
interface BaseCheckboxOption {
|
|
362
|
-
label: React.ReactNode;
|
|
363
|
-
value: string;
|
|
364
|
-
disabled?: boolean;
|
|
365
|
-
[key: string]: any;
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
interface BaseCheckboxSharedProps {
|
|
369
|
-
options: BaseCheckboxOption[];
|
|
370
|
-
label?: React.ReactNode;
|
|
371
|
-
disabled?: boolean;
|
|
372
|
-
labelPlacement?: "top" | "bottom" | "start" | "end";
|
|
373
|
-
isHorizontal?: boolean;
|
|
374
|
-
sx?: any;
|
|
375
|
-
[key: string]: any;
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
interface BaseCheckboxSingleProps extends Omit<BaseCheckboxSharedProps, "options"> {
|
|
379
|
-
options?: undefined;
|
|
380
|
-
checked?: boolean;
|
|
381
|
-
onChange?: (checked: boolean, event?: React.ChangeEvent<HTMLInputElement>) => void;
|
|
382
|
-
}
|
|
383
|
-
|
|
384
|
-
interface BaseCheckboxGroupProps extends BaseCheckboxSharedProps {
|
|
385
|
-
options: BaseCheckboxOption[];
|
|
386
|
-
checked?: string[];
|
|
387
|
-
onChange?: (newValue: string[]) => void;
|
|
388
|
-
}
|
|
389
|
-
|
|
390
|
-
type BaseCheckboxProps =
|
|
391
|
-
| BaseCheckboxSingleProps
|
|
392
|
-
| BaseCheckboxGroupProps;
|
|
393
|
-
|
|
394
|
-
declare function BaseCheckbox(
|
|
395
|
-
props: BaseCheckboxProps,
|
|
414
|
+
interface BaseCheckboxOption {
|
|
415
|
+
label: React.ReactNode;
|
|
416
|
+
value: string;
|
|
417
|
+
disabled?: boolean;
|
|
418
|
+
[key: string]: any;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
interface BaseCheckboxSharedProps {
|
|
422
|
+
options: BaseCheckboxOption[];
|
|
423
|
+
label?: React.ReactNode;
|
|
424
|
+
disabled?: boolean;
|
|
425
|
+
labelPlacement?: "top" | "bottom" | "start" | "end";
|
|
426
|
+
isHorizontal?: boolean;
|
|
427
|
+
sx?: any;
|
|
428
|
+
[key: string]: any;
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
interface BaseCheckboxSingleProps extends Omit<BaseCheckboxSharedProps, "options"> {
|
|
432
|
+
options?: undefined;
|
|
433
|
+
checked?: boolean;
|
|
434
|
+
onChange?: (checked: boolean, event?: React.ChangeEvent<HTMLInputElement>) => void;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
interface BaseCheckboxGroupProps extends BaseCheckboxSharedProps {
|
|
438
|
+
options: BaseCheckboxOption[];
|
|
439
|
+
checked?: string[];
|
|
440
|
+
onChange?: (newValue: string[]) => void;
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
type BaseCheckboxProps =
|
|
444
|
+
| BaseCheckboxSingleProps
|
|
445
|
+
| BaseCheckboxGroupProps;
|
|
446
|
+
|
|
447
|
+
declare function BaseCheckbox(
|
|
448
|
+
props: BaseCheckboxProps,
|
|
396
449
|
): React.ReactElement | null;
|
|
397
450
|
|
|
398
|
-
type BaseDatatableAlign =
|
|
399
|
-
| "left"
|
|
400
|
-
| "center"
|
|
401
|
-
| "right"
|
|
402
|
-
| "justify"
|
|
403
|
-
| "inherit"
|
|
404
|
-
| (string & {});
|
|
405
|
-
|
|
406
|
-
interface BaseDatatableColumn<T = Record<string, any>> {
|
|
407
|
-
id?: string;
|
|
408
|
-
key?: string;
|
|
409
|
-
field?: string;
|
|
410
|
-
sortField?: string;
|
|
411
|
-
label?: ReactNode;
|
|
412
|
-
header?: ReactNode;
|
|
413
|
-
accessorKey?: string;
|
|
414
|
-
accessorFn?: (row: T) => any;
|
|
415
|
-
align?: BaseDatatableAlign;
|
|
416
|
-
headerAlign?: BaseDatatableAlign;
|
|
451
|
+
type BaseDatatableAlign =
|
|
452
|
+
| "left"
|
|
453
|
+
| "center"
|
|
454
|
+
| "right"
|
|
455
|
+
| "justify"
|
|
456
|
+
| "inherit"
|
|
457
|
+
| (string & {});
|
|
458
|
+
|
|
459
|
+
interface BaseDatatableColumn<T = Record<string, any>> {
|
|
460
|
+
id?: string;
|
|
461
|
+
key?: string;
|
|
462
|
+
field?: string;
|
|
463
|
+
sortField?: string;
|
|
464
|
+
label?: ReactNode;
|
|
465
|
+
header?: ReactNode;
|
|
466
|
+
accessorKey?: string;
|
|
467
|
+
accessorFn?: (row: T) => any;
|
|
468
|
+
align?: BaseDatatableAlign;
|
|
469
|
+
headerAlign?: BaseDatatableAlign;
|
|
417
470
|
width?: number;
|
|
418
471
|
minWidth?: number;
|
|
419
472
|
sticky?: "left" | "right";
|
|
@@ -432,11 +485,11 @@ interface BaseDatatableColumn<T = Record<string, any>> {
|
|
|
432
485
|
}) => ReactNode;
|
|
433
486
|
}
|
|
434
487
|
|
|
435
|
-
interface BaseDatatableHeaderCell {
|
|
436
|
-
id?: string;
|
|
437
|
-
key?: string;
|
|
438
|
-
label: ReactNode;
|
|
439
|
-
align?: BaseDatatableAlign;
|
|
488
|
+
interface BaseDatatableHeaderCell {
|
|
489
|
+
id?: string;
|
|
490
|
+
key?: string;
|
|
491
|
+
label: ReactNode;
|
|
492
|
+
align?: BaseDatatableAlign;
|
|
440
493
|
colSpan?: number;
|
|
441
494
|
rowSpan?: number;
|
|
442
495
|
colspan?: number;
|
|
@@ -467,12 +520,12 @@ interface BaseDatatableSortState {
|
|
|
467
520
|
direction: "asc" | "desc";
|
|
468
521
|
}
|
|
469
522
|
|
|
470
|
-
interface BaseDatatableSortPayload {
|
|
471
|
-
orderBy: string;
|
|
472
|
-
order: "asc" | "desc";
|
|
473
|
-
page: number;
|
|
474
|
-
rowsPerPage: number;
|
|
475
|
-
}
|
|
523
|
+
interface BaseDatatableSortPayload {
|
|
524
|
+
orderBy: string;
|
|
525
|
+
order: "asc" | "desc";
|
|
526
|
+
page: number;
|
|
527
|
+
rowsPerPage: number;
|
|
528
|
+
}
|
|
476
529
|
|
|
477
530
|
interface BaseDatatableLayout {
|
|
478
531
|
stickyHeader?: boolean;
|
|
@@ -538,14 +591,14 @@ interface BaseDatatableProps<T = Record<string, any>> {
|
|
|
538
591
|
layout?: BaseDatatableLayout;
|
|
539
592
|
selection?: BaseDatatableSelection<T>;
|
|
540
593
|
pagination?: BaseDatatablePagination;
|
|
541
|
-
renderRow?: (context: BaseDatatableRenderRowContext<T>) => ReactNode;
|
|
542
|
-
onRowClick?: (row: T, rowIndex: number) => void;
|
|
543
|
-
getRowId?: (row: T, rowIndex: number) => string | number;
|
|
544
|
-
emptyState?: ReactNode;
|
|
545
|
-
loading?: boolean;
|
|
546
|
-
loadingText?: ReactNode;
|
|
547
|
-
rowHover?: boolean;
|
|
548
|
-
activeRowId?: string | number | null;
|
|
594
|
+
renderRow?: (context: BaseDatatableRenderRowContext<T>) => ReactNode;
|
|
595
|
+
onRowClick?: (row: T, rowIndex: number) => void;
|
|
596
|
+
getRowId?: (row: T, rowIndex: number) => string | number;
|
|
597
|
+
emptyState?: ReactNode;
|
|
598
|
+
loading?: boolean;
|
|
599
|
+
loadingText?: ReactNode;
|
|
600
|
+
rowHover?: boolean;
|
|
601
|
+
activeRowId?: string | number | null;
|
|
549
602
|
containerSx?: SxProps;
|
|
550
603
|
tableSx?: SxProps;
|
|
551
604
|
}
|
package/dist/types.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { v as BaseAlertProps, w as BaseButtonProps, x as BaseCardDataItem, y as BaseCardProps, z as BaseCheckboxOption, A as BaseCheckboxProps, E as BaseDatatableAlign, F as BaseDatatableColumn, G as BaseDatatableFeatures, H as BaseDatatableHeaderCell, I as BaseDatatableLayout, J as BaseDatatablePagination, K as BaseDatatableProps, L as BaseDatatableSelection, M as BaseDatatableSortPayload, N as BaseDatatableSortState, O as BaseDatePickerProps, Q as BaseDropdownProps, U as BaseDropzoneProps, W as BaseModalOTPProps, X as BaseModalProps, Y as BaseModalStepperProps, Z as BaseModalStepperStep, _ as BaseRadioButtonProps, $ as BaseStepperDashboardStep, a0 as BaseStepperProps, a1 as BaseStepperSimpleStep, a2 as BaseSwitchProps, a3 as BaseTextAreaProps, a4 as BaseTextFieldProps, a5 as ContentSpacingProps, a6 as DerivedColorType, a7 as PrimitiveColorType, a8 as RadiusKey, a9 as RadiusMap, aa as RadiusTokenProps, ab as ShadowElevation, ac as ShadowLevel, ad as ShadowMap, ae as ShadowTokenProps, af as SpacingProps, ag as TextFieldUploadProps, ah as TypographyColorToken, ai as TypographyProps } from './types-
|
|
1
|
+
export { v as BaseAlertProps, w as BaseButtonProps, x as BaseCardDataItem, y as BaseCardProps, z as BaseCheckboxOption, A as BaseCheckboxProps, E as BaseDatatableAlign, F as BaseDatatableColumn, G as BaseDatatableFeatures, H as BaseDatatableHeaderCell, I as BaseDatatableLayout, J as BaseDatatablePagination, K as BaseDatatableProps, L as BaseDatatableSelection, M as BaseDatatableSortPayload, N as BaseDatatableSortState, O as BaseDatePickerProps, Q as BaseDropdownProps, U as BaseDropzoneProps, W as BaseModalOTPProps, X as BaseModalProps, Y as BaseModalStepperProps, Z as BaseModalStepperStep, _ as BaseRadioButtonProps, $ as BaseStepperDashboardStep, a0 as BaseStepperProps, a1 as BaseStepperSimpleStep, a2 as BaseSwitchProps, a3 as BaseTextAreaProps, a4 as BaseTextFieldProps, a5 as ContentSpacingProps, a6 as DerivedColorType, a7 as PrimitiveColorType, a8 as RadiusKey, a9 as RadiusMap, aa as RadiusTokenProps, ab as ShadowElevation, ac as ShadowLevel, ad as ShadowMap, ae as ShadowTokenProps, af as SpacingProps, ag as TextFieldUploadProps, ah as TypographyColorToken, ai as TypographyProps } from './types-B0iF5xX8.mjs';
|
|
2
2
|
import 'react';
|
|
3
3
|
import '@mui/material/styles';
|
|
4
4
|
import 'react-hook-form';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "spotlibs-components",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.10",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "dist/index.mjs",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -18,9 +18,14 @@
|
|
|
18
18
|
"types": "./dist/types.d.mts"
|
|
19
19
|
},
|
|
20
20
|
"./icons": {
|
|
21
|
-
"types": "./dist/
|
|
22
|
-
"import": "./dist/
|
|
23
|
-
"default": "./dist/
|
|
21
|
+
"types": "./dist/atoms/icons/index.d.mts",
|
|
22
|
+
"import": "./dist/atoms/icons/index.mjs",
|
|
23
|
+
"default": "./dist/atoms/icons/index.mjs"
|
|
24
|
+
},
|
|
25
|
+
"./mui": {
|
|
26
|
+
"types": "./dist/mui/index.d.mts",
|
|
27
|
+
"import": "./dist/mui/index.mjs",
|
|
28
|
+
"default": "./dist/mui/index.mjs"
|
|
24
29
|
}
|
|
25
30
|
},
|
|
26
31
|
"dependencies": {
|
|
@@ -32,6 +37,7 @@
|
|
|
32
37
|
"@mui/lab": "^5.0.0-alpha.175",
|
|
33
38
|
"@mui/material": "^5.16.14",
|
|
34
39
|
"@mui/x-date-pickers": "5.0.20",
|
|
40
|
+
"@tabler/icons-react": "^3.43.0",
|
|
35
41
|
"@tinymce/tinymce-react": "^5.0.1",
|
|
36
42
|
"chart.js": "^4.5.1",
|
|
37
43
|
"date-fns": "2.30.0",
|