@shohojdhara/atomix 0.1.8 → 0.1.9
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/css.d.ts +10 -0
- package/dist/js/atomix.react.cjs.js +1 -1
- package/dist/js/atomix.react.cjs.js.map +1 -1
- package/dist/js/atomix.react.esm.js +1 -1
- package/dist/js/atomix.react.esm.js.map +1 -1
- package/dist/js/atomix.react.js +1 -1
- package/dist/js/atomix.react.js.map +1 -1
- package/dist/types/index.d.ts +57 -2
- package/dist/types/lib/index.d.ts +8 -4
- package/index.d.ts +21 -0
- package/package.json +7 -5
- package/src/index.ts +17 -9
- package/src/lib/index.ts +10 -10
package/dist/types/index.d.ts
CHANGED
|
@@ -1,3 +1,58 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import * as components from './components';
|
|
2
|
+
import * as lib from './lib';
|
|
3
|
+
export { components };
|
|
4
|
+
export { lib };
|
|
5
|
+
declare const Atomix: {
|
|
6
|
+
composables: typeof import("./lib/composables");
|
|
7
|
+
utils: typeof import("./lib/utils");
|
|
8
|
+
types: typeof import("./lib/types");
|
|
9
|
+
constants: typeof import("./lib/constants");
|
|
10
|
+
Accordion: import("react").FC<components.AccordionProps>;
|
|
11
|
+
Avatar: import("react").FC<components.AvatarProps>;
|
|
12
|
+
Badge: import("react").FC<components.BadgeProps>;
|
|
13
|
+
Breadcrumb: import("react").FC<components.BreadcrumbProps>;
|
|
14
|
+
Button: import("react").ForwardRefExoticComponent<Omit<components.ButtonProps & {
|
|
15
|
+
[key: string]: any;
|
|
16
|
+
as?: import("react").ElementType;
|
|
17
|
+
to?: string;
|
|
18
|
+
href?: string;
|
|
19
|
+
}, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
20
|
+
Callout: import("react").FC<components.CalloutProps>;
|
|
21
|
+
Card: import("react").ForwardRefExoticComponent<components.CardProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
22
|
+
ColorModeToggle: import("react").FC<components.ColorModeToggleProps>;
|
|
23
|
+
Countdown: import("react").FC<components.CountdownProps>;
|
|
24
|
+
DataTable: import("react").FC<components.DataTableProps>;
|
|
25
|
+
DatePicker: import("react").ForwardRefExoticComponent<components.DatePickerProps & import("react").RefAttributes<import("./components/DatePicker").DatePickerRef>>;
|
|
26
|
+
Dropdown: import("react").FC<components.DropdownProps>;
|
|
27
|
+
EdgePanel: import("react").FC<components.EdgePanelProps>;
|
|
28
|
+
Form: import("react").FC<import("./lib/types").FormProps>;
|
|
29
|
+
Input: import("react").FC<import("./lib/types").InputProps>;
|
|
30
|
+
Textarea: import("react").FC<import("./lib/types").TextareaProps>;
|
|
31
|
+
Select: import("react").FC<import("./lib/types").SelectProps>;
|
|
32
|
+
Checkbox: import("react").FC<import("./lib/types").CheckboxProps>;
|
|
33
|
+
Radio: import("react").FC<import("./lib/types").RadioProps>;
|
|
34
|
+
Hero: import("react").FC<components.HeroProps>;
|
|
35
|
+
Icon: import("react").FC<components.IconProps>;
|
|
36
|
+
List: import("react").FC<components.ListProps>;
|
|
37
|
+
Messages: import("react").FC<components.MessagesProps>;
|
|
38
|
+
Modal: import("react").FC<components.ModalProps>;
|
|
39
|
+
Navbar: import("react").FC<components.NavbarProps>;
|
|
40
|
+
Pagination: import("react").FC<components.PaginationProps>;
|
|
41
|
+
PhotoViewer: import("react").FC<components.PhotoViewerProps>;
|
|
42
|
+
Popover: import("react").FC<components.PopoverProps>;
|
|
43
|
+
ProductReview: import("react").FC<components.ProductReviewProps>;
|
|
44
|
+
Progress: import("react").ForwardRefExoticComponent<components.ProgressProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
45
|
+
Rating: import("react").ForwardRefExoticComponent<components.RatingProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
46
|
+
River: import("react").FC<components.RiverProps>;
|
|
47
|
+
SectionIntro: import("react").FC<components.SectionIntroProps>;
|
|
48
|
+
Spinner: import("react").FC<components.SpinnerProps>;
|
|
49
|
+
Steps: import("react").FC<components.StepsProps>;
|
|
50
|
+
Tab: import("react").FC<components.TabProps>;
|
|
51
|
+
Testimonial: import("react").FC<components.TestimonialProps>;
|
|
52
|
+
Todo: import("react").FC<components.TodoProps>;
|
|
53
|
+
Toggle: import("react").FC<components.ToggleProps>;
|
|
54
|
+
Tooltip: import("react").FC<components.TooltipProps>;
|
|
55
|
+
Upload: import("react").FC<components.UploadProps>;
|
|
56
|
+
AtomixLogo: import("react").FC<components.AtomixLogoProps>;
|
|
57
|
+
};
|
|
3
58
|
export default Atomix;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import * as composablesImport from './composables';
|
|
2
|
+
import * as utilsImport from './utils';
|
|
3
|
+
import * as typesImport from './types';
|
|
4
|
+
import * as constantsImport from './constants';
|
|
5
|
+
export declare const composables: typeof composablesImport;
|
|
6
|
+
export declare const utils: typeof utilsImport;
|
|
7
|
+
export declare const types: typeof typesImport;
|
|
8
|
+
export declare const constants: typeof constantsImport;
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// Type definitions for @shohojdhara/atomix
|
|
2
|
+
// Export component types as namespace
|
|
3
|
+
import * as components from './dist/types/components';
|
|
4
|
+
export { components };
|
|
5
|
+
|
|
6
|
+
// Export utility types as namespace
|
|
7
|
+
import * as lib from './dist/types/lib';
|
|
8
|
+
export { lib };
|
|
9
|
+
|
|
10
|
+
// Define the type for the default export
|
|
11
|
+
declare const Atomix: {
|
|
12
|
+
// Include all components
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
// Explicitly include lib namespaces to match implementation
|
|
15
|
+
composables: typeof lib.composables;
|
|
16
|
+
utils: typeof lib.utils;
|
|
17
|
+
types: typeof lib.types;
|
|
18
|
+
constants: typeof lib.constants;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export default Atomix;
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shohojdhara/atomix",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
4
4
|
"description": "Atomix Design System - A modern component library for web applications",
|
|
5
5
|
"main": "dist/js/atomix.react.cjs.js",
|
|
6
6
|
"module": "dist/js/atomix.react.esm.js",
|
|
7
7
|
"unpkg": "dist/js/atomix.react.js",
|
|
8
8
|
"jsdelivr": "dist/js/atomix.react.js",
|
|
9
9
|
"browser": "dist/js/atomix.react.js",
|
|
10
|
-
"typings": "
|
|
10
|
+
"typings": "index.d.ts",
|
|
11
11
|
"sideEffects": [
|
|
12
12
|
"*.css",
|
|
13
13
|
"*.scss",
|
|
@@ -15,18 +15,18 @@
|
|
|
15
15
|
],
|
|
16
16
|
"exports": {
|
|
17
17
|
".": {
|
|
18
|
-
"types": "./
|
|
18
|
+
"types": "./index.d.ts",
|
|
19
19
|
"import": "./dist/js/atomix.react.esm.js",
|
|
20
20
|
"require": "./dist/js/atomix.react.cjs.js",
|
|
21
21
|
"default": "./dist/js/atomix.react.esm.js"
|
|
22
22
|
},
|
|
23
23
|
"./package.json": "./package.json",
|
|
24
24
|
"./css": {
|
|
25
|
-
"types": "./
|
|
25
|
+
"types": "./css.d.ts",
|
|
26
26
|
"default": "./dist/css/atomix.css"
|
|
27
27
|
},
|
|
28
28
|
"./css/min": {
|
|
29
|
-
"types": "./
|
|
29
|
+
"types": "./css.d.ts",
|
|
30
30
|
"default": "./dist/css/atomix.min.css"
|
|
31
31
|
},
|
|
32
32
|
"./scss": "./src/styles/index.scss"
|
|
@@ -114,6 +114,8 @@
|
|
|
114
114
|
"files": [
|
|
115
115
|
"src",
|
|
116
116
|
"dist",
|
|
117
|
+
"index.d.ts",
|
|
118
|
+
"css.d.ts",
|
|
117
119
|
"README.md",
|
|
118
120
|
"LICENSE",
|
|
119
121
|
"CHANGELOG.md",
|
package/src/index.ts
CHANGED
|
@@ -1,14 +1,22 @@
|
|
|
1
|
-
// Export
|
|
2
|
-
export * from './components';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
// Default export for backward compatibility
|
|
1
|
+
// Export components and utilities with namespaces to avoid conflicts
|
|
6
2
|
import * as components from './components';
|
|
7
|
-
import * as
|
|
3
|
+
import * as lib from './lib';
|
|
4
|
+
|
|
5
|
+
// Re-export with namespaces
|
|
6
|
+
export { components };
|
|
7
|
+
export { lib };
|
|
8
8
|
|
|
9
|
+
// Create a properly typed default export without spreading
|
|
10
|
+
// This avoids TypeScript errors with internal types like UseAccordionResult
|
|
9
11
|
const Atomix = {
|
|
12
|
+
// Export components explicitly
|
|
10
13
|
...components,
|
|
11
|
-
|
|
12
|
-
|
|
14
|
+
// Export lib utilities explicitly
|
|
15
|
+
// We avoid spreading lib directly to prevent TypeScript errors with internal types
|
|
16
|
+
composables: lib.composables,
|
|
17
|
+
utils: lib.utils,
|
|
18
|
+
types: lib.types,
|
|
19
|
+
constants: lib.constants
|
|
20
|
+
};
|
|
13
21
|
|
|
14
|
-
export default Atomix;
|
|
22
|
+
export default Atomix;
|
package/src/lib/index.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
//
|
|
2
|
-
|
|
1
|
+
// Import and re-export as namespaces
|
|
2
|
+
import * as composablesImport from './composables';
|
|
3
|
+
import * as utilsImport from './utils';
|
|
4
|
+
import * as typesImport from './types';
|
|
5
|
+
import * as constantsImport from './constants';
|
|
3
6
|
|
|
4
|
-
// Export
|
|
5
|
-
export
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export
|
|
9
|
-
|
|
10
|
-
// Export constants
|
|
11
|
-
export * from './constants';
|
|
7
|
+
// Export as namespaces
|
|
8
|
+
export const composables = composablesImport;
|
|
9
|
+
export const utils = utilsImport;
|
|
10
|
+
export const types = typesImport;
|
|
11
|
+
export const constants = constantsImport;
|