@neuctra/ui 0.2.2 → 0.2.4

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.
Files changed (105) hide show
  1. package/dist/components/basic/Accordation.d.ts +27 -18
  2. package/dist/components/basic/Alert.d.ts +14 -2
  3. package/dist/components/basic/Avatar.d.ts +5 -3
  4. package/dist/components/basic/Badge.d.ts +3 -3
  5. package/dist/components/basic/Button.d.ts +15 -17
  6. package/dist/components/basic/Card.d.ts +7 -49
  7. package/dist/components/basic/{CheckRadioInput.d.ts → CheckboxGroup.d.ts} +4 -5
  8. package/dist/components/basic/Container.d.ts +28 -26
  9. package/dist/components/basic/Drawer.d.ts +20 -11
  10. package/dist/components/basic/DropDown.d.ts +24 -34
  11. package/dist/components/basic/Flexbox.d.ts +18 -10
  12. package/dist/components/basic/GridView.d.ts +7 -5
  13. package/dist/components/basic/Image.d.ts +31 -6
  14. package/dist/components/basic/Input.d.ts +18 -10
  15. package/dist/components/basic/List.d.ts +11 -3
  16. package/dist/components/basic/Modal.d.ts +8 -2
  17. package/dist/components/basic/RadioGroup.d.ts +25 -0
  18. package/dist/components/basic/Section.d.ts +36 -0
  19. package/dist/components/basic/Stack.d.ts +27 -0
  20. package/dist/components/basic/SwitchGroup.d.ts +25 -0
  21. package/dist/components/basic/Table.d.ts +18 -54
  22. package/dist/components/basic/Tabs.d.ts +28 -28
  23. package/dist/components/basic/Text.d.ts +19 -32
  24. package/dist/index.cjs.js +55 -176
  25. package/dist/index.cjs.js.map +1 -0
  26. package/dist/index.d.ts +19 -18
  27. package/dist/index.es.js +3501 -4738
  28. package/dist/index.es.js.map +1 -0
  29. package/dist/src/components/avatar/AvatarGroup.js +9 -0
  30. package/dist/src/components/avatar/AvatarWithStatus.js +18 -0
  31. package/dist/src/components/basic/Accordation.js +74 -0
  32. package/dist/src/components/basic/Alert.js +141 -0
  33. package/dist/src/components/basic/AudioGallery.js +425 -0
  34. package/dist/src/components/basic/AudioPlayer.js +116 -0
  35. package/dist/src/components/basic/Avatar.js +181 -0
  36. package/dist/src/components/basic/Badge.js +66 -0
  37. package/dist/src/components/basic/Button.js +101 -0
  38. package/dist/src/components/basic/Card.js +47 -0
  39. package/dist/src/components/basic/CheckboxGroup.js +40 -0
  40. package/dist/src/components/basic/Container.js +45 -0
  41. package/dist/src/components/basic/Drawer.js +94 -0
  42. package/dist/src/components/basic/DropDown.js +162 -0
  43. package/dist/src/components/basic/Flexbox.js +67 -0
  44. package/dist/src/components/basic/GridView.js +51 -0
  45. package/dist/src/components/basic/Image.js +95 -0
  46. package/dist/src/components/basic/Input.js +123 -0
  47. package/dist/src/components/basic/List.js +71 -0
  48. package/dist/src/components/basic/Modal.js +86 -0
  49. package/dist/src/components/basic/RadioGroup.js +37 -0
  50. package/dist/src/components/basic/Section.js +100 -0
  51. package/dist/src/components/basic/Stack.js +75 -0
  52. package/dist/src/components/basic/SwitchGroup.js +50 -0
  53. package/dist/src/components/basic/Table.js +32 -0
  54. package/dist/src/components/basic/Tabs.js +149 -0
  55. package/dist/src/components/basic/Text.js +117 -0
  56. package/dist/src/index.js +46 -0
  57. package/dist/types/src/components/basic/Accordation.d.ts +44 -0
  58. package/dist/types/{components → src/components}/basic/Alert.d.ts +14 -2
  59. package/dist/types/{components → src/components}/basic/Avatar.d.ts +5 -3
  60. package/dist/types/{components → src/components}/basic/Badge.d.ts +3 -3
  61. package/dist/types/src/components/basic/Button.d.ts +26 -0
  62. package/dist/types/src/components/basic/Card.d.ts +28 -0
  63. package/dist/types/{components/basic/CheckRadioInput.d.ts → src/components/basic/CheckboxGroup.d.ts} +4 -5
  64. package/dist/types/src/components/basic/Container.d.ts +32 -0
  65. package/dist/types/src/components/basic/Drawer.d.ts +33 -0
  66. package/dist/types/src/components/basic/DropDown.d.ts +53 -0
  67. package/dist/types/src/components/basic/Flexbox.d.ts +25 -0
  68. package/dist/types/{components → src/components}/basic/GridView.d.ts +7 -5
  69. package/dist/types/src/components/basic/Image.d.ts +58 -0
  70. package/dist/types/{components → src/components}/basic/Input.d.ts +18 -10
  71. package/dist/types/{components → src/components}/basic/List.d.ts +11 -3
  72. package/dist/types/{components → src/components}/basic/Modal.d.ts +8 -2
  73. package/dist/types/src/components/basic/RadioGroup.d.ts +25 -0
  74. package/dist/types/src/components/basic/Section.d.ts +36 -0
  75. package/dist/types/src/components/basic/Stack.d.ts +27 -0
  76. package/dist/types/src/components/basic/SwitchGroup.d.ts +25 -0
  77. package/dist/types/src/components/basic/Table.d.ts +23 -0
  78. package/dist/types/src/components/basic/Tabs.d.ts +47 -0
  79. package/dist/types/src/components/basic/Text.d.ts +26 -0
  80. package/dist/types/{index.d.ts → src/index.d.ts} +19 -18
  81. package/dist/types/vite.config.d.ts +2 -0
  82. package/dist/ui.css +1 -1
  83. package/dist/vite.config.js +34 -0
  84. package/package.json +2 -1
  85. package/dist/components/basic/ImageGallery.d.ts +0 -21
  86. package/dist/components/basic/VideoGallery.d.ts +0 -136
  87. package/dist/components/basic/VideoPlayer.d.ts +0 -36
  88. package/dist/types/components/basic/Accordation.d.ts +0 -35
  89. package/dist/types/components/basic/Button.d.ts +0 -28
  90. package/dist/types/components/basic/Card.d.ts +0 -70
  91. package/dist/types/components/basic/Container.d.ts +0 -30
  92. package/dist/types/components/basic/Drawer.d.ts +0 -24
  93. package/dist/types/components/basic/DropDown.d.ts +0 -63
  94. package/dist/types/components/basic/Flexbox.d.ts +0 -17
  95. package/dist/types/components/basic/Image.d.ts +0 -33
  96. package/dist/types/components/basic/ImageGallery.d.ts +0 -21
  97. package/dist/types/components/basic/Table.d.ts +0 -59
  98. package/dist/types/components/basic/Tabs.d.ts +0 -47
  99. package/dist/types/components/basic/Text.d.ts +0 -39
  100. package/dist/types/components/basic/VideoGallery.d.ts +0 -136
  101. package/dist/types/components/basic/VideoPlayer.d.ts +0 -36
  102. /package/dist/types/{components → src/components}/avatar/AvatarGroup.d.ts +0 -0
  103. /package/dist/types/{components → src/components}/avatar/AvatarWithStatus.d.ts +0 -0
  104. /package/dist/types/{components → src/components}/basic/AudioGallery.d.ts +0 -0
  105. /package/dist/types/{components → src/components}/basic/AudioPlayer.d.ts +0 -0
@@ -1,63 +0,0 @@
1
- import React from "react";
2
- interface Option {
3
- label: string;
4
- value: string;
5
- icon?: React.ReactNode;
6
- disabled?: boolean;
7
- }
8
- interface DropdownProps {
9
- options: Option[];
10
- value?: string;
11
- defaultValue?: string;
12
- onChange?: (value: string) => void;
13
- placeholder?: string;
14
- disabled?: boolean;
15
- searchable?: boolean;
16
- multiSelect?: boolean;
17
- clearable?: boolean;
18
- virtualized?: boolean;
19
- optionHeight?: number;
20
- visibleOptions?: number;
21
- width?: string;
22
- height?: string;
23
- borderColor?: string;
24
- focusBorderColor?: string;
25
- errorBorderColor?: string;
26
- backgroundColor?: string;
27
- textColor?: string;
28
- placeholderColor?: string;
29
- hoverColor?: string;
30
- selectedColor?: string;
31
- disabledColor?: string;
32
- padding?: string;
33
- margin?: string;
34
- borderRadius?: string;
35
- boxShadow?: string;
36
- optionPadding?: string;
37
- optionGap?: string;
38
- transitionDuration?: string;
39
- dropdownMaxHeight?: string;
40
- dropdownMinWidth?: string;
41
- className?: string;
42
- dropdownClassName?: string;
43
- optionClassName?: string;
44
- inputClassName?: string;
45
- style?: React.CSSProperties;
46
- dropdownStyle?: React.CSSProperties;
47
- optionStyle?: React.CSSProperties;
48
- inputStyle?: React.CSSProperties;
49
- iconPrefix?: React.ReactNode;
50
- iconSuffix?: React.ReactNode;
51
- clearIcon?: React.ReactNode;
52
- dropdownIcon?: React.ReactNode;
53
- checkIcon?: React.ReactNode;
54
- ariaLabel?: string;
55
- ariaLabelledby?: string;
56
- ariaDescribedby?: string;
57
- onFocus?: () => void;
58
- onBlur?: () => void;
59
- onOpen?: () => void;
60
- onClose?: () => void;
61
- }
62
- export declare const Dropdown: React.FC<DropdownProps>;
63
- export {};
@@ -1,17 +0,0 @@
1
- import React from "react";
2
- type ScreenSize = "sm" | "md" | "lg";
3
- interface FlexboxProps {
4
- direction?: "row" | "column" | Partial<Record<ScreenSize, "row" | "column">>;
5
- align?: "flex-start" | "flex-end" | "center" | "stretch" | "baseline";
6
- justify?: "flex-start" | "flex-end" | "center" | "space-between" | "space-around" | "space-evenly";
7
- gap?: number | string;
8
- padding?: number | string;
9
- backgroundColor?: string;
10
- width?: string;
11
- maxWidth?: string;
12
- height?: string;
13
- style?: React.CSSProperties;
14
- children: React.ReactNode;
15
- }
16
- export declare const Flexbox: React.FC<FlexboxProps>;
17
- export {};
@@ -1,33 +0,0 @@
1
- import React from "react";
2
- interface ImageProps {
3
- src?: string;
4
- alt?: string;
5
- width?: string;
6
- height?: string;
7
- borderRadius?: string;
8
- borderColor?: string;
9
- borderStyle?: "solid" | "dashed" | "dotted" | "double" | "none";
10
- borderWidth?: string;
11
- shadow?: boolean;
12
- boxShadow?: string;
13
- opacity?: number;
14
- objectFit?: "cover" | "contain" | "fill" | "none" | "scale-down";
15
- overlayText?: string;
16
- overlayColor?: string;
17
- svgIcon?: React.ReactNode;
18
- responsive?: boolean;
19
- padding?: string;
20
- margin?: string;
21
- lazyLoad?: boolean;
22
- hoverOpacity?: number;
23
- hoverShadow?: boolean;
24
- hoverScale?: number;
25
- hoverRotate?: number;
26
- transitionDuration?: string;
27
- overflow?: "hidden" | "scroll" | "auto" | "visible" | "x" | "y";
28
- className?: string;
29
- style?: React.CSSProperties;
30
- onClick?: (event: React.MouseEvent<HTMLDivElement | HTMLImageElement>) => void;
31
- }
32
- export declare const Image: React.FC<ImageProps>;
33
- export {};
@@ -1,21 +0,0 @@
1
- import React from "react";
2
- interface BreakpointColumns {
3
- sm?: number;
4
- md?: number;
5
- lg?: number;
6
- xl?: number;
7
- default?: number;
8
- }
9
- interface ImageGalleryProps {
10
- images: {
11
- src: string;
12
- alt?: string;
13
- }[];
14
- columns?: number | BreakpointColumns;
15
- gap?: string;
16
- layout?: "grid" | "masonry";
17
- lightbox?: boolean;
18
- className?: string;
19
- }
20
- export declare const ImageGallery: React.FC<ImageGalleryProps>;
21
- export {};
@@ -1,59 +0,0 @@
1
- import React, { ReactNode } from "react";
2
- interface Column {
3
- key: string;
4
- label: string;
5
- sortable?: boolean;
6
- icon?: ReactNode;
7
- width?: string | number;
8
- align?: "left" | "center" | "right";
9
- headerClassName?: string;
10
- cellClassName?: string;
11
- render?: (value: any, row: Record<string, any>) => ReactNode;
12
- }
13
- interface TableProps {
14
- columns: Column[];
15
- data: Record<string, any>[];
16
- className?: string;
17
- pagination?: boolean;
18
- rowsPerPage?: number;
19
- colors?: {
20
- headerBg?: string;
21
- headerText?: string;
22
- rowBg?: string;
23
- rowText?: string;
24
- borderColor?: string;
25
- hoverBg?: string;
26
- paginationBg?: string;
27
- paginationText?: string;
28
- evenRowBg?: string;
29
- selectedRowBg?: string;
30
- };
31
- borderRadius?: {
32
- table?: string;
33
- header?: string;
34
- pagination?: string;
35
- };
36
- sortable?: boolean;
37
- defaultSort?: {
38
- column: string;
39
- direction: "asc" | "desc";
40
- };
41
- bodyAlign?: "left" | "center" | "right";
42
- headerAlign?: "left" | "center" | "right";
43
- rowSelection?: {
44
- enabled?: boolean;
45
- onSelect?: (selectedRows: Record<string, any>[]) => void;
46
- selectionColumnWidth?: string;
47
- selectionColumnHeader?: ReactNode;
48
- };
49
- emptyState?: ReactNode;
50
- onRowClick?: (row: Record<string, any>, index: number) => void;
51
- rowClassName?: (row: Record<string, any>, index: number) => string;
52
- cellPadding?: string;
53
- headerCellPadding?: string;
54
- stickyHeader?: boolean;
55
- maxHeight?: string;
56
- scrollShadow?: boolean;
57
- }
58
- export declare const Table: React.FC<TableProps>;
59
- export {};
@@ -1,47 +0,0 @@
1
- import React, { CSSProperties } from "react";
2
- interface TabItem {
3
- label: React.ReactNode;
4
- content: React.ReactNode;
5
- icon?: React.ReactNode;
6
- disabled?: boolean;
7
- ariaLabel?: string;
8
- }
9
- interface TabsBaseProps {
10
- tabs: TabItem[];
11
- defaultActive?: number;
12
- activeTabClassName?: string;
13
- inactiveTabClassName?: string;
14
- tabContainerClassName?: string;
15
- contentContainerClassName?: string;
16
- className?: string;
17
- activeTabStyle?: CSSProperties;
18
- inactiveTabStyle?: CSSProperties;
19
- tabContainerStyle?: CSSProperties;
20
- contentContainerStyle?: CSSProperties;
21
- style?: CSSProperties;
22
- tabsWidth?: string | number;
23
- tabGap?: number;
24
- tabPadding?: string;
25
- tabBorderRadius?: number;
26
- primaryColor?: string;
27
- textColor?: string;
28
- backgroundColor?: string;
29
- hoverTextColor?: string;
30
- disabledColor?: string;
31
- responsiveBreakpoint?: number;
32
- showDrawerLabel?: string;
33
- drawerIcon?: React.ReactNode;
34
- transitionDuration?: number;
35
- onTabChange?: (index: number) => void;
36
- role?: string;
37
- ariaOrientation?: "horizontal" | "vertical";
38
- }
39
- export declare const LeftTabs: React.FC<TabsBaseProps>;
40
- export declare const TopTabs: React.FC<TabsBaseProps>;
41
- export declare const RightTabs: React.FC<TabsBaseProps>;
42
- export declare const Tabs: {
43
- Left: React.FC<TabsBaseProps>;
44
- Top: React.FC<TabsBaseProps>;
45
- Right: React.FC<TabsBaseProps>;
46
- };
47
- export {};
@@ -1,39 +0,0 @@
1
- import React, { JSX } from "react";
2
- interface TextProps {
3
- as?: keyof JSX.IntrinsicElements;
4
- children: React.ReactNode;
5
- className?: string;
6
- color?: string;
7
- bgColor?: string;
8
- fontSize?: string;
9
- fontWeight?: "normal" | "bold" | "lighter" | "bolder" | number;
10
- textAlign?: "left" | "center" | "right" | "justify";
11
- textTransform?: "uppercase" | "lowercase" | "capitalize" | "none";
12
- lineHeight?: string;
13
- letterSpacing?: string;
14
- maxWidth?: string;
15
- padding?: string;
16
- margin?: string;
17
- borderRadius?: string;
18
- boxShadow?: string;
19
- shadowColor?: string;
20
- wordBreak?: "normal" | "break-word" | "break-all" | "keep-all";
21
- italic?: boolean;
22
- bold?: boolean;
23
- underline?: boolean;
24
- strikethrough?: boolean;
25
- selectable?: boolean;
26
- truncate?: boolean;
27
- hoverColor?: string;
28
- hoverBgColor?: string;
29
- hoverTextDecoration?: "underline" | "line-through" | "none";
30
- activeColor?: string;
31
- activeBgColor?: string;
32
- transitionDuration?: string;
33
- onClick?: () => void;
34
- href?: string;
35
- target?: "_blank" | "_self" | "_parent" | "_top";
36
- rel?: string;
37
- }
38
- export declare const Text: React.FC<TextProps>;
39
- export {};
@@ -1,136 +0,0 @@
1
- import React from "react";
2
- interface VideoData {
3
- id: string;
4
- src: string;
5
- poster?: string;
6
- title?: string;
7
- description?: string;
8
- duration?: number;
9
- author?: string;
10
- publishDate?: string;
11
- tags?: string[];
12
- views?: number;
13
- likes?: number;
14
- category?: string;
15
- thumbnail?: string;
16
- quality?: "auto" | "720p" | "1080p" | "4k";
17
- subtitles?: {
18
- src: string;
19
- label: string;
20
- language: string;
21
- }[];
22
- chapters?: {
23
- time: number;
24
- title: string;
25
- }[];
26
- resolution?: string;
27
- frameRate?: number;
28
- license?: string;
29
- location?: string;
30
- }
31
- interface ResponsiveConfig {
32
- xs?: number;
33
- sm?: number;
34
- md?: number;
35
- lg?: number;
36
- xl?: number;
37
- "2xl"?: number;
38
- "3xl"?: number;
39
- }
40
- interface ThemeConfig {
41
- primary?: string;
42
- secondary?: string;
43
- accent?: string;
44
- background?: string;
45
- surface?: string;
46
- text?: string;
47
- textSecondary?: string;
48
- textTertiary?: string;
49
- border?: string;
50
- shadow?: string;
51
- hoverShadow?: string;
52
- gradient?: string;
53
- borderRadius?: string;
54
- borderRadiusSmall?: string;
55
- borderRadiusLarge?: string;
56
- transitionSpeed?: string;
57
- transitionEasing?: string;
58
- fontFamily?: string;
59
- fontSizeBase?: string;
60
- fontWeightNormal?: string;
61
- fontWeightBold?: string;
62
- spacingUnit?: string;
63
- backdropBlur?: string;
64
- overlayOpacity?: string;
65
- }
66
- type LayoutType = "grid" | "masonry" | "carousel" | "list" | "mosaic" | "compact" | "highlight";
67
- type AspectRatio = "16:9" | "4:3" | "1:1" | "3:2" | "21:9" | "auto" | "9:16" | "custom";
68
- type AnimationType = "fade" | "slide" | "zoom" | "flip" | "none" | "slide-up" | "slide-down";
69
- type SortOption = "date" | "title" | "views" | "likes" | "duration" | "random" | "trending";
70
- interface VideoGalleryProps {
71
- videos: VideoData[];
72
- layout?: LayoutType;
73
- columns?: ResponsiveConfig;
74
- gap?: string | ResponsiveConfig;
75
- aspectRatio?: AspectRatio;
76
- theme?: ThemeConfig;
77
- showThumbnails?: boolean;
78
- showMetadata?: boolean;
79
- metadataPosition?: "below" | "overlay" | "hover";
80
- showControls?: boolean;
81
- controlsPosition?: "bottom" | "top" | "sides" | "floating";
82
- showProgress?: boolean;
83
- showVolume?: boolean;
84
- showQualityOptions?: boolean;
85
- showSpeedOptions?: boolean;
86
- autoPlay?: boolean;
87
- autoPlayDelay?: number;
88
- autoAdvance?: boolean;
89
- autoAdvanceDelay?: number;
90
- loop?: boolean;
91
- muted?: boolean;
92
- preload?: "none" | "metadata" | "auto";
93
- lazyLoading?: boolean;
94
- infiniteScroll?: boolean;
95
- loadMoreThreshold?: number;
96
- lightbox?: boolean;
97
- lightboxAnimation?: AnimationType;
98
- lightboxTransitionSpeed?: number;
99
- keyboard?: boolean;
100
- swipeGestures?: boolean;
101
- title?: string;
102
- description?: string;
103
- ariaLabel?: string;
104
- structured?: boolean;
105
- search?: boolean;
106
- searchPlaceholder?: string;
107
- filter?: boolean;
108
- sort?: boolean;
109
- sortOptions?: SortOption[];
110
- playlist?: boolean;
111
- fullscreen?: boolean;
112
- pictureInPicture?: boolean;
113
- sharing?: boolean;
114
- download?: boolean;
115
- favorites?: boolean;
116
- customLoader?: React.ReactNode;
117
- customEmptyState?: React.ReactNode;
118
- customErrorState?: React.ReactNode;
119
- onVideoClick?: (video: VideoData, index: number) => void;
120
- onVideoEnd?: (video: VideoData, index: number) => void;
121
- onVideoPlay?: (video: VideoData, index: number) => void;
122
- onVideoPause?: (video: VideoData, index: number) => void;
123
- onVideoLike?: (video: VideoData, liked: boolean) => void;
124
- onVideoShare?: (video: VideoData) => void;
125
- onVideoDownload?: (video: VideoData) => void;
126
- onLayoutChange?: (layout: LayoutType) => void;
127
- onSearch?: (query: string) => void;
128
- onFilter?: (category: string) => void;
129
- onSort?: (sortBy: SortOption) => void;
130
- className?: string;
131
- containerClassName?: string;
132
- videoItemClassName?: string;
133
- controlsClassName?: string;
134
- }
135
- export declare const VideoGallery: React.FC<VideoGalleryProps>;
136
- export default VideoGallery;
@@ -1,36 +0,0 @@
1
- import React from "react";
2
- interface VideoPlayerProps {
3
- src: string;
4
- poster?: string;
5
- title?: string;
6
- autoPlay?: boolean;
7
- loop?: boolean;
8
- muted?: boolean;
9
- width?: string;
10
- height?: string;
11
- borderRadius?: string;
12
- theme?: 'dark' | 'light' | 'glass' | 'neon';
13
- primaryColor?: string;
14
- className?: string;
15
- showProgress?: boolean;
16
- showVolumeSlider?: boolean;
17
- showSettings?: boolean;
18
- showDownload?: boolean;
19
- showShare?: boolean;
20
- showPiP?: boolean;
21
- showSubtitles?: boolean;
22
- showPlaybackSpeed?: boolean;
23
- showQuality?: boolean;
24
- previewThumbnails?: boolean;
25
- customControls?: boolean;
26
- hideControlsDelay?: number;
27
- seekStep?: number;
28
- volumeStep?: number;
29
- onPlay?: () => void;
30
- onPause?: () => void;
31
- onEnded?: () => void;
32
- onTimeUpdate?: (time: number) => void;
33
- onVolumeChange?: (volume: number) => void;
34
- }
35
- export declare const VideoPlayer: React.FC<VideoPlayerProps>;
36
- export {};