@astral/ui 0.4.0 → 0.4.1-alpha.0

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 (142) hide show
  1. package/cjs/src/DashboardLayout/DashboardLayout.js +28 -0
  2. package/cjs/src/DashboardLayout/Header/Header.js +22 -0
  3. package/cjs/src/DashboardLayout/Header/index.js +14 -0
  4. package/cjs/src/DashboardLayout/Header/styled.js +32 -0
  5. package/cjs/src/DashboardLayout/Header/types.js +2 -0
  6. package/cjs/src/DashboardLayout/Main/Main.js +22 -0
  7. package/cjs/src/DashboardLayout/Main/index.js +13 -0
  8. package/cjs/src/DashboardLayout/Main/styled.js +10 -0
  9. package/cjs/src/DashboardLayout/SideBar/SideBar.js +22 -0
  10. package/cjs/src/DashboardLayout/SideBar/index.js +13 -0
  11. package/cjs/src/DashboardLayout/SideBar/styled.js +23 -0
  12. package/cjs/src/DashboardLayout/index.js +13 -0
  13. package/cjs/src/DashboardLayout/styled.js +11 -0
  14. package/cjs/src/Tooltip/Tooltip.js +33 -0
  15. package/cjs/src/Tooltip/constants.js +8 -0
  16. package/cjs/src/Tooltip/index.js +14 -0
  17. package/cjs/src/Tooltip/styled.js +72 -0
  18. package/cjs/src/Tooltip/types.js +2 -0
  19. package/cjs/src/declaration/index.js +14 -0
  20. package/cjs/src/index.js +2 -0
  21. package/cjs/src/theme/baseTheme.js +1 -1
  22. package/cjs/src/theme/typography.js +15 -0
  23. package/esm/src/DashboardLayout/DashboardLayout.js +24 -0
  24. package/esm/src/DashboardLayout/Header/Header.js +19 -0
  25. package/esm/src/DashboardLayout/Header/index.js +2 -0
  26. package/esm/src/DashboardLayout/Header/styled.js +29 -0
  27. package/{types/src/theme/__tests__/BaseTheme.test.d.ts → esm/src/DashboardLayout/Header/types.js} +0 -0
  28. package/esm/src/DashboardLayout/Main/Main.js +19 -0
  29. package/esm/src/DashboardLayout/Main/index.js +1 -0
  30. package/esm/src/DashboardLayout/Main/styled.js +7 -0
  31. package/esm/src/DashboardLayout/SideBar/SideBar.js +19 -0
  32. package/esm/src/DashboardLayout/SideBar/index.js +1 -0
  33. package/esm/src/DashboardLayout/SideBar/styled.js +20 -0
  34. package/esm/src/DashboardLayout/index.js +1 -0
  35. package/esm/src/DashboardLayout/styled.js +8 -0
  36. package/esm/src/Tooltip/Tooltip.js +30 -0
  37. package/esm/src/Tooltip/constants.js +5 -0
  38. package/esm/src/Tooltip/index.js +2 -0
  39. package/esm/src/Tooltip/styled.js +69 -0
  40. package/esm/src/Tooltip/types.js +1 -0
  41. package/esm/src/declaration/index.js +2 -0
  42. package/esm/src/index.js +2 -0
  43. package/esm/src/theme/baseTheme.js +2 -2
  44. package/esm/src/theme/typography.js +15 -0
  45. package/package.json +4 -11
  46. package/types/index.d.ts +0 -1
  47. package/types/src/Badge/Badge.d.ts +0 -4
  48. package/types/src/Badge/index.d.ts +0 -2
  49. package/types/src/Badge/styled.d.ts +0 -50
  50. package/types/src/Badge/types.d.ts +0 -5
  51. package/types/src/Button/Button.d.ts +0 -3
  52. package/types/src/Button/index.d.ts +0 -2
  53. package/types/src/Button/styled.d.ts +0 -13
  54. package/types/src/Button/types.d.ts +0 -7
  55. package/types/src/ButtonBase/ButtonBase.d.ts +0 -3
  56. package/types/src/ButtonBase/constants.d.ts +0 -22
  57. package/types/src/ButtonBase/index.d.ts +0 -3
  58. package/types/src/ButtonBase/styled.d.ts +0 -27
  59. package/types/src/ButtonBase/types.d.ts +0 -11
  60. package/types/src/Checkbox/Checkbox.d.ts +0 -3
  61. package/types/src/Checkbox/icons.d.ts +0 -5
  62. package/types/src/Checkbox/index.d.ts +0 -2
  63. package/types/src/Checkbox/styled.d.ts +0 -4
  64. package/types/src/Checkbox/types.d.ts +0 -2
  65. package/types/src/CircularProgress/CircularProgress.d.ts +0 -4
  66. package/types/src/CircularProgress/constants.d.ts +0 -8
  67. package/types/src/CircularProgress/index.d.ts +0 -2
  68. package/types/src/CircularProgress/styled.d.ts +0 -7
  69. package/types/src/CircularProgress/types.d.ts +0 -8
  70. package/types/src/FormControlLabel/FormControlLabel.d.ts +0 -3
  71. package/types/src/FormControlLabel/index.d.ts +0 -2
  72. package/types/src/FormControlLabel/styled.d.ts +0 -3
  73. package/types/src/FormControlLabel/types.d.ts +0 -2
  74. package/types/src/FormHelperText/FormHelperText.d.ts +0 -4
  75. package/types/src/FormHelperText/index.d.ts +0 -1
  76. package/types/src/FormHelperText/styled.d.ts +0 -41
  77. package/types/src/FormHelperText/types.d.ts +0 -6
  78. package/types/src/GlobalStyles/GlobalStyles.d.ts +0 -3
  79. package/types/src/GlobalStyles/index.d.ts +0 -1
  80. package/types/src/Grid/Grid.d.ts +0 -3
  81. package/types/src/Grid/index.d.ts +0 -2
  82. package/types/src/Grid/styled.d.ts +0 -13
  83. package/types/src/Grid/types.d.ts +0 -30
  84. package/types/src/IconButton/IconButton.d.ts +0 -3
  85. package/types/src/IconButton/index.d.ts +0 -1
  86. package/types/src/IconButton/styled.d.ts +0 -19
  87. package/types/src/Menu/Menu.d.ts +0 -3
  88. package/types/src/Menu/index.d.ts +0 -1
  89. package/types/src/MenuItem/MenuItem.d.ts +0 -3
  90. package/types/src/MenuItem/index.d.ts +0 -1
  91. package/types/src/MenuList/MenuList.d.ts +0 -3
  92. package/types/src/MenuList/index.d.ts +0 -2
  93. package/types/src/MenuList/styled.d.ts +0 -20
  94. package/types/src/MenuList/types.d.ts +0 -2
  95. package/types/src/Radio/Icon.d.ts +0 -3
  96. package/types/src/Radio/Radio.d.ts +0 -4
  97. package/types/src/Radio/index.d.ts +0 -2
  98. package/types/src/Radio/styled.d.ts +0 -4
  99. package/types/src/Radio/types.d.ts +0 -2
  100. package/types/src/RadioGroup/RadioGroup.d.ts +0 -2
  101. package/types/src/StylesCacheProvider/index.d.ts +0 -1
  102. package/types/src/Tag/Tag.d.ts +0 -3
  103. package/types/src/Tag/constants.d.ts +0 -21
  104. package/types/src/Tag/index.d.ts +0 -2
  105. package/types/src/Tag/styled.d.ts +0 -26
  106. package/types/src/Tag/types.d.ts +0 -12
  107. package/types/src/TextArea/TextArea.d.ts +0 -3
  108. package/types/src/TextArea/index.d.ts +0 -2
  109. package/types/src/TextArea/types.d.ts +0 -2
  110. package/types/src/TextField/TextField.d.ts +0 -4
  111. package/types/src/TextField/index.d.ts +0 -2
  112. package/types/src/TextField/types.d.ts +0 -6
  113. package/types/src/ThemeProvider/ThemeProvider.d.ts +0 -7
  114. package/types/src/ThemeProvider/index.d.ts +0 -1
  115. package/types/src/Typography/Typography.d.ts +0 -8
  116. package/types/src/Typography/index.d.ts +0 -1
  117. package/types/src/createStylesCache/index.d.ts +0 -2
  118. package/types/src/createStylesServer/index.d.ts +0 -1
  119. package/types/src/index.d.ts +0 -22
  120. package/types/src/styles/index.d.ts +0 -1
  121. package/types/src/styles/styled/index.d.ts +0 -1
  122. package/types/src/styles/styled/styled.d.ts +0 -2
  123. package/types/src/styles/styled/types.d.ts +0 -48
  124. package/types/src/theme/baseTheme.d.ts +0 -28
  125. package/types/src/theme/components/MuiFormHelperText.d.ts +0 -4
  126. package/types/src/theme/components/MuiFormLabel.d.ts +0 -4
  127. package/types/src/theme/components/MuiInputBase.d.ts +0 -4
  128. package/types/src/theme/components/MuiInputLabel.d.ts +0 -4
  129. package/types/src/theme/components/MuiOutlinedInput.d.ts +0 -4
  130. package/types/src/theme/components/MuiTypography.d.ts +0 -21
  131. package/types/src/theme/components/components.d.ts +0 -21
  132. package/types/src/theme/components/index.d.ts +0 -1
  133. package/types/src/theme/constants.d.ts +0 -9
  134. package/types/src/theme/elevation.d.ts +0 -8
  135. package/types/src/theme/hooks/index.d.ts +0 -1
  136. package/types/src/theme/hooks/useTheme/index.d.ts +0 -2
  137. package/types/src/theme/index.d.ts +0 -6
  138. package/types/src/theme/palette/brandPalette.d.ts +0 -15
  139. package/types/src/theme/palette/index.d.ts +0 -2
  140. package/types/src/theme/palette/palette.d.ts +0 -29
  141. package/types/src/theme/shape.d.ts +0 -6
  142. package/types/src/theme/typography.d.ts +0 -19
@@ -1,4 +0,0 @@
1
- import { Components } from '@mui/material';
2
- import type { Theme } from '../baseTheme';
3
- export declare const MuiInputBase: Components<Theme>['MuiInputBase'];
4
- export default MuiInputBase;
@@ -1,4 +0,0 @@
1
- import { Components } from '@mui/material';
2
- import type { Theme } from '../baseTheme';
3
- export declare const MuiInputLabel: Components<Theme>['MuiInputLabel'];
4
- export default MuiInputLabel;
@@ -1,4 +0,0 @@
1
- import { Components } from '@mui/material';
2
- import type { Theme } from '../baseTheme';
3
- export declare const MuiOutlinedInput: Components<Theme>['MuiOutlinedInput'];
4
- export default MuiOutlinedInput;
@@ -1,21 +0,0 @@
1
- import { Components } from '@mui/material';
2
- export declare type FontsUrls = {
3
- bold: {
4
- woff: string;
5
- woff2: string;
6
- };
7
- light: {
8
- woff: string;
9
- woff2: string;
10
- };
11
- medium: {
12
- woff: string;
13
- woff2: string;
14
- };
15
- regular: {
16
- woff: string;
17
- woff2: string;
18
- };
19
- };
20
- export declare const MuiTypography: Components['MuiTypography'];
21
- export default MuiTypography;
@@ -1,21 +0,0 @@
1
- import { Components } from '@mui/material';
2
- import type { Theme } from '../baseTheme';
3
- export declare type FontsUrls = {
4
- bold: {
5
- woff: string;
6
- woff2: string;
7
- };
8
- light: {
9
- woff: string;
10
- woff2: string;
11
- };
12
- medium: {
13
- woff: string;
14
- woff2: string;
15
- };
16
- regular: {
17
- woff: string;
18
- woff2: string;
19
- };
20
- };
21
- export declare const getComponents: (fontUrls: FontsUrls) => Components<Theme>;
@@ -1 +0,0 @@
1
- export * from './components';
@@ -1,9 +0,0 @@
1
- export declare enum Brand {
2
- DEFAULT = "DEFAULT",
3
- EDO = "EDO",
4
- AO5 = "AO5",
5
- OFD = "OFD",
6
- SIGN = "SIGN",
7
- LKP = "LKP"
8
- }
9
- export declare const SPACING = 4;
@@ -1,8 +0,0 @@
1
- export declare type Elevation = {
2
- 100: string;
3
- 200: string;
4
- 300: string;
5
- 400: string;
6
- 500: string;
7
- };
8
- export declare const elevation: Elevation;
@@ -1 +0,0 @@
1
- export * from './useTheme';
@@ -1,2 +0,0 @@
1
- import { Theme } from '../../baseTheme';
2
- export declare const useTheme: () => Theme;
@@ -1,6 +0,0 @@
1
- export * from './baseTheme';
2
- export * from './palette';
3
- export * from './constants';
4
- export * from './elevation';
5
- export * from './shape';
6
- export * from './hooks';
@@ -1,15 +0,0 @@
1
- import { Brand } from '../constants';
2
- declare type BrandColors = {
3
- secondary: string;
4
- 900: string;
5
- 800: string;
6
- 700: string;
7
- 600: string;
8
- 500: string;
9
- 400: string;
10
- 300: string;
11
- 200: string;
12
- 100: string;
13
- };
14
- export declare const brandPalette: Record<Brand, BrandColors>;
15
- export {};
@@ -1,2 +0,0 @@
1
- export * from './brandPalette';
2
- export * from './palette';
@@ -1,29 +0,0 @@
1
- import { PaletteOptions as MuiPaletteOptions, PaletteColorOptions } from '@mui/material';
2
- import { TypeBackground } from '@mui/material/styles/createPalette';
3
- import { Brand } from '../constants';
4
- export declare type Color = {
5
- 900: string;
6
- 800: string;
7
- 700: string;
8
- 600: string;
9
- 500: string;
10
- 400: string;
11
- 300: string;
12
- 200: string;
13
- 100: string;
14
- };
15
- export declare type PrimaryColorOptions = PaletteColorOptions & Color;
16
- export declare type Background = TypeBackground & {
17
- element: string;
18
- elementHover: string;
19
- };
20
- declare type PaletteOptions = MuiPaletteOptions & {
21
- red: Color;
22
- green: Color;
23
- yellow: Color;
24
- grey: Color;
25
- primary: PrimaryColorOptions;
26
- background: Background;
27
- };
28
- export declare const getPalette: (brand?: Brand) => PaletteOptions;
29
- export {};
@@ -1,6 +0,0 @@
1
- export declare type Shape = {
2
- small: string;
3
- medium: string;
4
- large: string;
5
- };
6
- export declare const shape: Shape;
@@ -1,19 +0,0 @@
1
- import { Typography } from '@mui/material/styles/createTypography';
2
- import { CSSProperties } from 'react';
3
- declare type CustomTypographyVariantStyle = {
4
- fontSize: CSSProperties['fontSize'];
5
- fontWeight: CSSProperties['fontWeight'];
6
- };
7
- export declare type TypographyThemeOptions = Typography & {
8
- h7: CustomTypographyVariantStyle;
9
- h8: CustomTypographyVariantStyle;
10
- h9: CustomTypographyVariantStyle;
11
- ui: CustomTypographyVariantStyle;
12
- link: CustomTypographyVariantStyle;
13
- pointer: CustomTypographyVariantStyle;
14
- small: CustomTypographyVariantStyle;
15
- code: CustomTypographyVariantStyle;
16
- };
17
- export declare const pxToRem: (fontSize: number, htmlFontSize?: number) => string;
18
- export declare const typography: Partial<TypographyThemeOptions>;
19
- export {};