@atomazing-org/design-system 1.0.2 → 1.0.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 (36) hide show
  1. package/README.MD +1 -1
  2. package/index.d.ts +187 -0
  3. package/index.js +3 -3
  4. package/package.json +4 -3
  5. package/build/index.d.ts +0 -3
  6. package/build/index.js +0 -3
  7. /package/build/{src/components → components}/DialogBtn.d.ts +0 -0
  8. /package/build/{src/components → components}/DialogBtn.js +0 -0
  9. /package/build/{src/components → components}/ErrorBoundary.d.ts +0 -0
  10. /package/build/{src/components → components}/ErrorBoundary.js +0 -0
  11. /package/build/{src/components → components}/Loading.d.ts +0 -0
  12. /package/build/{src/components → components}/Loading.js +0 -0
  13. /package/build/{src/components → components}/PathName.d.ts +0 -0
  14. /package/build/{src/components → components}/PathName.js +0 -0
  15. /package/build/{src/components → components}/index.d.ts +0 -0
  16. /package/build/{src/components → components}/index.js +0 -0
  17. /package/build/{src/styles → styles}/commonComponents.d.ts +0 -0
  18. /package/build/{src/styles → styles}/commonComponents.js +0 -0
  19. /package/build/{src/styles → styles}/index.d.ts +0 -0
  20. /package/build/{src/styles → styles}/index.js +0 -0
  21. /package/build/{src/styles → styles}/keyframes.d.ts +0 -0
  22. /package/build/{src/styles → styles}/keyframes.js +0 -0
  23. /package/build/{src/styles → styles}/typography.d.ts +0 -0
  24. /package/build/{src/styles → styles}/typography.js +0 -0
  25. /package/build/{src/utils → utils}/displayGreeting.d.ts +0 -0
  26. /package/build/{src/utils → utils}/displayGreeting.js +0 -0
  27. /package/build/{src/utils → utils}/getDayIdentifier.d.ts +0 -0
  28. /package/build/{src/utils → utils}/getDayIdentifier.js +0 -0
  29. /package/build/{src/utils → utils}/getSystemInfo.d.ts +0 -0
  30. /package/build/{src/utils → utils}/getSystemInfo.js +0 -0
  31. /package/build/{src/utils → utils}/index.d.ts +0 -0
  32. /package/build/{src/utils → utils}/index.js +0 -0
  33. /package/build/{src/utils → utils}/timeAgo.d.ts +0 -0
  34. /package/build/{src/utils → utils}/timeAgo.js +0 -0
  35. /package/build/{src/utils → utils}/useResponsiveDisplay.d.ts +0 -0
  36. /package/build/{src/utils → utils}/useResponsiveDisplay.js +0 -0
package/README.MD CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  [![MIT License](https://img.shields.io/npm/l/npm-package-example.svg?style=flat-square)](http://opensource.org/licenses/MIT)
4
4
 
5
- The `@atomazing/design-system` provides a set of useful utils, mui style extensions and components to build your application the way Atomazing does.
5
+ The `@atomazing-org/design-system` provides a set of useful utils, mui style extensions and components to build your application the way Atomazing does.
6
6
 
7
7
  ## Build-on
8
8
 
package/index.d.ts ADDED
@@ -0,0 +1,187 @@
1
+ export {
2
+ systemInfo,
3
+ timeAgo,
4
+ timeAgoFromStart,
5
+ displayGreeting,
6
+ getDayIdentifier,
7
+ useResponsiveDisplay,
8
+ } from "./build";
9
+
10
+ export {
11
+ fadeIn,
12
+ fadeInLeft,
13
+ pulseAnimation,
14
+ ring,
15
+ rotate,
16
+ rotateSlideBarIcons,
17
+ scale,
18
+ slideIn,
19
+ slideInBottom,
20
+ typographyProps,
21
+ typographyVariants,
22
+ zoomIn,
23
+ commonComponentProps,
24
+ } from "./build";
25
+
26
+ export { DialogBtn, Loading, PathName } from "./build";
27
+
28
+ import "@emotion/react";
29
+ import "@mui/material/styles";
30
+ import "@mui/material/Typography";
31
+ import "react";
32
+
33
+ declare module "@emotion/react" {
34
+ export interface Theme {
35
+ /**
36
+ * Emotion Primary color
37
+ */
38
+ primary: string;
39
+ /**
40
+ * Emotion Background color
41
+ */
42
+ secondary: string;
43
+ /**
44
+ * Emotion darkmode
45
+ */
46
+ darkmode: boolean;
47
+ }
48
+ }
49
+
50
+ /// <reference types="@mui/types" />
51
+ declare module "@mui/material/styles" {
52
+ export interface TypographyVariants {
53
+ text_xl_regular: React.CSSProperties;
54
+ text_lg_regular: React.CSSProperties;
55
+ text_md_regular: React.CSSProperties;
56
+ text_sm_regular: React.CSSProperties;
57
+ text_xs_regular: React.CSSProperties;
58
+ text_2xs_regular: React.CSSProperties;
59
+
60
+ text_xl_bold: React.CSSProperties;
61
+ text_lg_bold: React.CSSProperties;
62
+ text_md_bold: React.CSSProperties;
63
+ text_sm_bold: React.CSSProperties;
64
+ text_xs_bold: React.CSSProperties;
65
+ text_2xs_bold: React.CSSProperties;
66
+
67
+ text_xl_semibold: React.CSSProperties;
68
+ text_lg_semibold: React.CSSProperties;
69
+ text_md_semibold: React.CSSProperties;
70
+ text_sm_semibold: React.CSSProperties;
71
+ text_xs_semibold: React.CSSProperties;
72
+ text_2xs_semibold: React.CSSProperties;
73
+
74
+ text_xl_thin: React.CSSProperties;
75
+ text_lg_thin: React.CSSProperties;
76
+ text_md_thin: React.CSSProperties;
77
+ text_sm_thin: React.CSSProperties;
78
+ text_xs_thin: React.CSSProperties;
79
+ text_2xs_thin: React.CSSProperties;
80
+
81
+ display_2xl_regular: React.CSSProperties;
82
+ display_xl_regular: React.CSSProperties;
83
+ display_lg_regular: React.CSSProperties;
84
+ display_md_regular: React.CSSProperties;
85
+ display_sm_regular: React.CSSProperties;
86
+ display_xs_regular: React.CSSProperties;
87
+
88
+ display_2xl_bold: React.CSSProperties;
89
+ display_xl_bold: React.CSSProperties;
90
+ display_lg_bold: React.CSSProperties;
91
+ display_md_bold: React.CSSProperties;
92
+ display_sm_bold: React.CSSProperties;
93
+ display_xs_bold: React.CSSProperties;
94
+ }
95
+
96
+ // allow configuration using `createTheme()`
97
+ export interface TypographyVariantsOptions {
98
+ text_xl_regular?: React.CSSProperties;
99
+ text_lg_regular?: React.CSSProperties;
100
+ text_md_regular?: React.CSSProperties;
101
+ text_sm_regular?: React.CSSProperties;
102
+ text_xs_regular?: React.CSSProperties;
103
+ text_2xs_regular?: React.CSSProperties;
104
+
105
+ text_xl_bold?: React.CSSProperties;
106
+ text_lg_bold?: React.CSSProperties;
107
+ text_md_bold?: React.CSSProperties;
108
+ text_sm_bold?: React.CSSProperties;
109
+ text_xs_bold?: React.CSSProperties;
110
+ text_2xs_bold?: React.CSSProperties;
111
+
112
+ text_xl_semibold?: React.CSSProperties;
113
+ text_lg_semibold?: React.CSSProperties;
114
+ text_md_semibold?: React.CSSProperties;
115
+ text_sm_semibold?: React.CSSProperties;
116
+ text_xs_semibold?: React.CSSProperties;
117
+ text_2xs_semibold?: React.CSSProperties;
118
+
119
+ text_xl_thin?: React.CSSProperties;
120
+ text_lg_thin?: React.CSSProperties;
121
+ text_md_thin?: React.CSSProperties;
122
+ text_sm_thin?: React.CSSProperties;
123
+ text_xs_thin?: React.CSSProperties;
124
+ text_2xs_thin?: React.CSSProperties;
125
+
126
+ display_2xl_regular?: React.CSSProperties;
127
+ display_xl_regular?: React.CSSProperties;
128
+ display_lg_regular?: React.CSSProperties;
129
+ display_md_regular?: React.CSSProperties;
130
+ display_sm_regular?: React.CSSProperties;
131
+ display_xs_regular?: React.CSSProperties;
132
+
133
+ display_2xl_bold?: React.CSSProperties;
134
+ display_xl_bold?: React.CSSProperties;
135
+ display_lg_bold?: React.CSSProperties;
136
+ display_md_bold?: React.CSSProperties;
137
+ display_sm_bold?: React.CSSProperties;
138
+ display_xs_bold?: React.CSSProperties;
139
+ }
140
+ }
141
+
142
+ // Update the Typography's variant prop options
143
+ declare module "@mui/material/Typography" {
144
+ export interface TypographyPropsVariantOverrides {
145
+ text_xl_regular: true;
146
+ text_lg_regular: true;
147
+ text_md_regular: true;
148
+ text_sm_regular: true;
149
+ text_xs_regular: true;
150
+ text_2xs_regular: true;
151
+
152
+ text_xl_bold: true;
153
+ text_lg_bold: true;
154
+ text_md_bold: true;
155
+ text_sm_bold: true;
156
+ text_xs_bold: true;
157
+ text_2xs_bold: true;
158
+
159
+ text_xl_semibold: true;
160
+ text_lg_semibold: true;
161
+ text_md_semibold: true;
162
+ text_sm_semibold: true;
163
+ text_xs_semibold: true;
164
+ text_2xs_semibold: true;
165
+
166
+ text_xl_thin: true;
167
+ text_lg_thin: true;
168
+ text_md_thin: true;
169
+ text_sm_thin: true;
170
+ text_xs_thin: true;
171
+ text_2xs_thin: true;
172
+
173
+ display_2xl_regular: true;
174
+ display_xl_regular: true;
175
+ display_lg_regular: true;
176
+ display_md_regular: true;
177
+ display_sm_regular: true;
178
+ display_xs_regular: true;
179
+
180
+ display_2xl_bold: true;
181
+ display_xl_bold: true;
182
+ display_lg_bold: true;
183
+ display_md_bold: true;
184
+ display_sm_bold: true;
185
+ display_xs_bold: true;
186
+ }
187
+ }
package/index.js CHANGED
@@ -5,7 +5,7 @@ export {
5
5
  displayGreeting,
6
6
  getDayIdentifier,
7
7
  useResponsiveDisplay,
8
- } from "./src/utils";
8
+ } from "./build";
9
9
 
10
10
  export {
11
11
  fadeIn,
@@ -21,6 +21,6 @@ export {
21
21
  typographyVariants,
22
22
  zoomIn,
23
23
  commonComponentProps,
24
- } from "./src/styles";
24
+ } from "./build";
25
25
 
26
- export { DialogBtn, Loading, PathName } from "./src/components";
26
+ export { DialogBtn, Loading, PathName } from "./build";
package/package.json CHANGED
@@ -1,13 +1,14 @@
1
1
  {
2
2
  "name": "@atomazing-org/design-system",
3
3
  "private": false,
4
- "version": "1.0.2",
5
- "main": "build/index.js",
4
+ "version": "1.0.4",
5
+ "main": "index.js",
6
6
  "type": "module",
7
- "types": "build/types/index.d.ts",
7
+ "types": "index.d.ts",
8
8
  "files": [
9
9
  "build",
10
10
  "index.js",
11
+ "index.d.ts",
11
12
  "README.MD"
12
13
  ],
13
14
  "scripts": {
package/build/index.d.ts DELETED
@@ -1,3 +0,0 @@
1
- export { systemInfo, timeAgo, timeAgoFromStart, displayGreeting, getDayIdentifier, useResponsiveDisplay, } from "./src/utils";
2
- export { fadeIn, fadeInLeft, pulseAnimation, ring, rotate, rotateSlideBarIcons, scale, slideIn, slideInBottom, typographyProps, typographyVariants, zoomIn, commonComponentProps, } from "./src/styles";
3
- export { DialogBtn, Loading, PathName } from "./src/components";
package/build/index.js DELETED
@@ -1,3 +0,0 @@
1
- export { systemInfo, timeAgo, timeAgoFromStart, displayGreeting, getDayIdentifier, useResponsiveDisplay, } from "./src/utils";
2
- export { fadeIn, fadeInLeft, pulseAnimation, ring, rotate, rotateSlideBarIcons, scale, slideIn, slideInBottom, typographyProps, typographyVariants, zoomIn, commonComponentProps, } from "./src/styles";
3
- export { DialogBtn, Loading, PathName } from "./src/components";
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes