spotlibs-components 0.1.9 → 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.
@@ -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":[]}
@@ -165,29 +165,29 @@ interface DerivedColorType {
165
165
 
166
166
  declare const DerivedColor: DerivedColorType;
167
167
 
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,
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,
191
191
  ): React.ReactElement | null;
192
192
 
193
193
  declare const SpacingToken: {
@@ -204,7 +204,7 @@ declare const SpacingToken: {
204
204
  spacing10: string;
205
205
  };
206
206
 
207
- declare const CONTENT_SPACING_TOKENS: {
207
+ declare const CONTENT_SPACING_TOKENS: {
208
208
  spacing_1: {
209
209
  mobile: string;
210
210
  tablet: string;
@@ -219,41 +219,41 @@ declare const CONTENT_SPACING_TOKENS: {
219
219
  mobile: string;
220
220
  tablet: string;
221
221
  web: string;
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
- }
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
+ }
257
257
 
258
258
  declare const Spacing: React.FC<SpacingProps>;
259
259
 
@@ -411,62 +411,62 @@ interface BaseSwitchProps {
411
411
 
412
412
  declare function BaseSwitch(props: BaseSwitchProps): React.ReactElement;
413
413
 
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,
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,
449
449
  ): React.ReactElement | null;
450
450
 
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;
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;
470
470
  width?: number;
471
471
  minWidth?: number;
472
472
  sticky?: "left" | "right";
@@ -485,11 +485,11 @@ interface BaseDatatableColumn<T = Record<string, any>> {
485
485
  }) => ReactNode;
486
486
  }
487
487
 
488
- interface BaseDatatableHeaderCell {
489
- id?: string;
490
- key?: string;
491
- label: ReactNode;
492
- align?: BaseDatatableAlign;
488
+ interface BaseDatatableHeaderCell {
489
+ id?: string;
490
+ key?: string;
491
+ label: ReactNode;
492
+ align?: BaseDatatableAlign;
493
493
  colSpan?: number;
494
494
  rowSpan?: number;
495
495
  colspan?: number;
@@ -520,12 +520,12 @@ interface BaseDatatableSortState {
520
520
  direction: "asc" | "desc";
521
521
  }
522
522
 
523
- interface BaseDatatableSortPayload {
524
- orderBy: string;
525
- order: "asc" | "desc";
526
- page: number;
527
- rowsPerPage: number;
528
- }
523
+ interface BaseDatatableSortPayload {
524
+ orderBy: string;
525
+ order: "asc" | "desc";
526
+ page: number;
527
+ rowsPerPage: number;
528
+ }
529
529
 
530
530
  interface BaseDatatableLayout {
531
531
  stickyHeader?: boolean;
@@ -591,14 +591,14 @@ interface BaseDatatableProps<T = Record<string, any>> {
591
591
  layout?: BaseDatatableLayout;
592
592
  selection?: BaseDatatableSelection<T>;
593
593
  pagination?: BaseDatatablePagination;
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;
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;
602
602
  containerSx?: SxProps;
603
603
  tableSx?: SxProps;
604
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-qsnVqq6_.mjs';
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.9",
3
+ "version": "0.1.10",
4
4
  "private": false,
5
5
  "main": "dist/index.mjs",
6
6
  "module": "dist/index.mjs",
@@ -21,6 +21,11 @@
21
21
  "types": "./dist/atoms/icons/index.d.mts",
22
22
  "import": "./dist/atoms/icons/index.mjs",
23
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": {