@popmenu/admin-ui 0.161.0 → 0.162.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 (29) hide show
  1. package/build/cjs/index.d.ts +1 -0
  2. package/build/cjs/index.js +0 -2
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/theme/adminDarkTheme.d.ts +2 -253
  5. package/build/cjs/theme/adminLightTheme.d.ts +2 -254
  6. package/build/cjs/theme/customThemeProperties.d.ts +2 -27
  7. package/build/cjs/theme/palette.d.ts +3 -27
  8. package/build/cjs/theme/props.d.ts +2 -8
  9. package/build/cjs/theme/themeAugmentation.d.ts +82 -0
  10. package/build/cjs/theme/typography.d.ts +2 -61
  11. package/build/esm/components/Button/ButtonStyles.js +0 -1
  12. package/build/esm/components/Button/ButtonStyles.js.map +1 -1
  13. package/build/esm/components/FullScreenStepperProgress/FullScreenStepperProgressStyles.js +0 -1
  14. package/build/esm/components/FullScreenStepperProgress/FullScreenStepperProgressStyles.js.map +1 -1
  15. package/build/esm/index.d.ts +1 -0
  16. package/build/esm/theme/adminDarkTheme.d.ts +2 -253
  17. package/build/esm/theme/adminDarkTheme.js.map +1 -1
  18. package/build/esm/theme/adminLightTheme.d.ts +2 -254
  19. package/build/esm/theme/adminLightTheme.js.map +1 -1
  20. package/build/esm/theme/customThemeProperties.d.ts +2 -27
  21. package/build/esm/theme/customThemeProperties.js.map +1 -1
  22. package/build/esm/theme/palette.d.ts +3 -27
  23. package/build/esm/theme/palette.js.map +1 -1
  24. package/build/esm/theme/props.d.ts +2 -8
  25. package/build/esm/theme/props.js.map +1 -1
  26. package/build/esm/theme/themeAugmentation.d.ts +82 -0
  27. package/build/esm/theme/typography.d.ts +2 -61
  28. package/build/esm/theme/typography.js.map +1 -1
  29. package/package.json +5 -5
@@ -0,0 +1,82 @@
1
+ import type { CSSProperties } from 'react';
2
+ import type { Theme } from '@material-ui/core/styles';
3
+ interface AdminShadeColor {
4
+ light: string;
5
+ main: string;
6
+ dark: string;
7
+ }
8
+ interface AdminBlueColor extends AdminShadeColor {
9
+ lighter: string;
10
+ darker: string;
11
+ }
12
+ interface AdminRedColor extends AdminShadeColor {
13
+ lighter: string;
14
+ }
15
+ interface AdminWhiteColor {
16
+ main: string;
17
+ }
18
+ interface AdminDataPalette {
19
+ blue: AdminShadeColor;
20
+ peach: AdminShadeColor;
21
+ pink: AdminShadeColor;
22
+ purple: AdminShadeColor;
23
+ marigold: AdminShadeColor;
24
+ teal: AdminShadeColor;
25
+ }
26
+ interface AdminCustomPalette {
27
+ blue: AdminBlueColor;
28
+ green: AdminShadeColor;
29
+ purple: AdminShadeColor;
30
+ red: AdminRedColor;
31
+ yellow: AdminShadeColor;
32
+ gray: AdminShadeColor;
33
+ white: AdminWhiteColor;
34
+ data: AdminDataPalette;
35
+ }
36
+ interface AdminThemeStatus {
37
+ disabled: {
38
+ opacity: number;
39
+ };
40
+ }
41
+ interface ColorGradientOptions {
42
+ gradientStart?: string;
43
+ gradientEnd?: string;
44
+ }
45
+ interface ExtraThemeProperties {
46
+ themeName: string;
47
+ /** @deprecated Legacy theme property. Avoid new usage and refactor out existing usage. */
48
+ placeholder: string;
49
+ /** @deprecated Legacy theme property. Avoid new usage and refactor out existing usage. */
50
+ status: AdminThemeStatus;
51
+ }
52
+ declare module '@material-ui/core/styles/createPalette' {
53
+ interface Palette extends AdminCustomPalette {
54
+ surface: PaletteColor;
55
+ }
56
+ interface PaletteOptions extends Partial<AdminCustomPalette> {
57
+ surface?: SimplePaletteColorOptions;
58
+ }
59
+ interface SimplePaletteColorOptions extends ColorGradientOptions {
60
+ }
61
+ interface PaletteColor extends ColorGradientOptions {
62
+ }
63
+ }
64
+ declare module '@material-ui/core/styles/createTypography' {
65
+ interface Typography {
66
+ h7: CSSProperties;
67
+ }
68
+ interface TypographyOptions {
69
+ h7?: CSSProperties;
70
+ }
71
+ }
72
+ declare module '@material-ui/core/styles/createTheme' {
73
+ interface Theme extends ExtraThemeProperties {
74
+ }
75
+ interface ThemeOptions extends Partial<ExtraThemeProperties> {
76
+ }
77
+ }
78
+ declare module '@material-ui/styles/defaultTheme' {
79
+ interface DefaultTheme extends Theme {
80
+ }
81
+ }
82
+ export {};
@@ -1,61 +1,2 @@
1
- export declare const adminThemeTypography: {
2
- htmlFontSize: number;
3
- fontFamily: string;
4
- h1: {
5
- fontWeight: number;
6
- fontSize: string;
7
- lineHeight: string;
8
- };
9
- h2: {
10
- fontWeight: number;
11
- fontSize: string;
12
- lineHeight: string;
13
- };
14
- h3: {
15
- fontWeight: number;
16
- fontSize: string;
17
- lineHeight: string;
18
- };
19
- h4: {
20
- fontWeight: number;
21
- fontSize: string;
22
- lineHeight: string;
23
- };
24
- h5: {
25
- fontWeight: number;
26
- fontSize: string;
27
- lineHeight: string;
28
- };
29
- h6: {
30
- fontWeight: number;
31
- fontSize: string;
32
- lineHeight: string;
33
- };
34
- h7: {
35
- fontWeight: number;
36
- fontSize: string;
37
- lineHeight: string;
38
- };
39
- body1: {
40
- fontWeight: number;
41
- fontSize: string;
42
- lineHeight: string;
43
- };
44
- body2: {
45
- fontWeight: number;
46
- fontSize: string;
47
- lineHeight: string;
48
- };
49
- subtitle1: {
50
- fontWeight: number;
51
- fontSize: string;
52
- lineHeight: string;
53
- color: string;
54
- };
55
- button: {
56
- fontWeight: number;
57
- fontSize: string;
58
- lineHeight: string;
59
- textTransform: string;
60
- };
61
- };
1
+ import type { TypographyOptions } from '@material-ui/core/styles/createTypography';
2
+ export declare const adminThemeTypography: TypographyOptions;
@@ -1 +1 @@
1
- {"version":3,"file":"typography.js","sources":["../../../src/theme/typography.ts"],"sourcesContent":["const fonts = ['\"Poppins\"', '\"sans-serif\"']\n\nexport const adminThemeTypography = {\n htmlFontSize: 16,\n fontFamily: fonts.join(', '),\n h1: {\n fontWeight: 400,\n fontSize: '6rem',\n lineHeight: '9rem',\n },\n h2: {\n fontWeight: 400,\n fontSize: '3.75rem',\n lineHeight: '5.625rem',\n },\n h3: {\n fontWeight: 400,\n fontSize: '3rem',\n lineHeight: '4.5rem',\n },\n h4: {\n fontWeight: 400,\n fontSize: '2.125rem',\n lineHeight: '3.25rem',\n },\n h5: {\n fontWeight: 500,\n fontSize: '1.5rem',\n lineHeight: '2.25rem',\n },\n h6: {\n fontWeight: 500,\n fontSize: '1.25rem',\n lineHeight: '1.875rem',\n },\n h7: {\n fontWeight: 400,\n fontSize: '1.125rem',\n lineHeight: '1.75rem',\n },\n body1: {\n fontWeight: 400,\n fontSize: '1rem',\n lineHeight: '1.5rem',\n },\n body2: {\n fontWeight: 400,\n fontSize: '0.875rem',\n lineHeight: '1.25rem',\n },\n subtitle1: {\n fontWeight: 400,\n fontSize: '0.75rem',\n lineHeight: '1.125rem',\n color: '#9E9E9E',\n },\n button: {\n fontWeight: 500,\n fontSize: '0.875rem',\n lineHeight: '1.25rem',\n textTransform: 'capitalize',\n },\n}\n"],"names":[],"mappings":"AAAA,MAAM,KAAK,GAAG,CAAC,WAAW,EAAE,cAAc,CAAC;AAE9B,MAAA,oBAAoB,GAAG;AAClC,IAAA,YAAY,EAAE,EAAE;AAChB,IAAA,UAAU,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC;AAC5B,IAAA,EAAE,EAAE;AACF,QAAA,UAAU,EAAE,GAAG;AACf,QAAA,QAAQ,EAAE,MAAM;AAChB,QAAA,UAAU,EAAE,MAAM;AACnB,KAAA;AACD,IAAA,EAAE,EAAE;AACF,QAAA,UAAU,EAAE,GAAG;AACf,QAAA,QAAQ,EAAE,SAAS;AACnB,QAAA,UAAU,EAAE,UAAU;AACvB,KAAA;AACD,IAAA,EAAE,EAAE;AACF,QAAA,UAAU,EAAE,GAAG;AACf,QAAA,QAAQ,EAAE,MAAM;AAChB,QAAA,UAAU,EAAE,QAAQ;AACrB,KAAA;AACD,IAAA,EAAE,EAAE;AACF,QAAA,UAAU,EAAE,GAAG;AACf,QAAA,QAAQ,EAAE,UAAU;AACpB,QAAA,UAAU,EAAE,SAAS;AACtB,KAAA;AACD,IAAA,EAAE,EAAE;AACF,QAAA,UAAU,EAAE,GAAG;AACf,QAAA,QAAQ,EAAE,QAAQ;AAClB,QAAA,UAAU,EAAE,SAAS;AACtB,KAAA;AACD,IAAA,EAAE,EAAE;AACF,QAAA,UAAU,EAAE,GAAG;AACf,QAAA,QAAQ,EAAE,SAAS;AACnB,QAAA,UAAU,EAAE,UAAU;AACvB,KAAA;AACD,IAAA,EAAE,EAAE;AACF,QAAA,UAAU,EAAE,GAAG;AACf,QAAA,QAAQ,EAAE,UAAU;AACpB,QAAA,UAAU,EAAE,SAAS;AACtB,KAAA;AACD,IAAA,KAAK,EAAE;AACL,QAAA,UAAU,EAAE,GAAG;AACf,QAAA,QAAQ,EAAE,MAAM;AAChB,QAAA,UAAU,EAAE,QAAQ;AACrB,KAAA;AACD,IAAA,KAAK,EAAE;AACL,QAAA,UAAU,EAAE,GAAG;AACf,QAAA,QAAQ,EAAE,UAAU;AACpB,QAAA,UAAU,EAAE,SAAS;AACtB,KAAA;AACD,IAAA,SAAS,EAAE;AACT,QAAA,UAAU,EAAE,GAAG;AACf,QAAA,QAAQ,EAAE,SAAS;AACnB,QAAA,UAAU,EAAE,UAAU;AACtB,QAAA,KAAK,EAAE,SAAS;AACjB,KAAA;AACD,IAAA,MAAM,EAAE;AACN,QAAA,UAAU,EAAE,GAAG;AACf,QAAA,QAAQ,EAAE,UAAU;AACpB,QAAA,UAAU,EAAE,SAAS;AACrB,QAAA,aAAa,EAAE,YAAY;AAC5B,KAAA;;;;;"}
1
+ {"version":3,"file":"typography.js","sources":["../../../src/theme/typography.ts"],"sourcesContent":["import type { TypographyOptions } from '@material-ui/core/styles/createTypography'\n\nconst fonts = ['\"Poppins\"', '\"sans-serif\"']\n\nexport const adminThemeTypography: TypographyOptions = {\n htmlFontSize: 16,\n fontFamily: fonts.join(', '),\n h1: {\n fontWeight: 400,\n fontSize: '6rem',\n lineHeight: '9rem',\n },\n h2: {\n fontWeight: 400,\n fontSize: '3.75rem',\n lineHeight: '5.625rem',\n },\n h3: {\n fontWeight: 400,\n fontSize: '3rem',\n lineHeight: '4.5rem',\n },\n h4: {\n fontWeight: 400,\n fontSize: '2.125rem',\n lineHeight: '3.25rem',\n },\n h5: {\n fontWeight: 500,\n fontSize: '1.5rem',\n lineHeight: '2.25rem',\n },\n h6: {\n fontWeight: 500,\n fontSize: '1.25rem',\n lineHeight: '1.875rem',\n },\n h7: {\n fontWeight: 400,\n fontSize: '1.125rem',\n lineHeight: '1.75rem',\n },\n body1: {\n fontWeight: 400,\n fontSize: '1rem',\n lineHeight: '1.5rem',\n },\n body2: {\n fontWeight: 400,\n fontSize: '0.875rem',\n lineHeight: '1.25rem',\n },\n subtitle1: {\n fontWeight: 400,\n fontSize: '0.75rem',\n lineHeight: '1.125rem',\n color: '#9E9E9E',\n },\n button: {\n fontWeight: 500,\n fontSize: '0.875rem',\n lineHeight: '1.25rem',\n textTransform: 'capitalize',\n },\n}\n"],"names":[],"mappings":"AAEA,MAAM,KAAK,GAAG,CAAC,WAAW,EAAE,cAAc,CAAC;AAE9B,MAAA,oBAAoB,GAAsB;AACrD,IAAA,YAAY,EAAE,EAAE;AAChB,IAAA,UAAU,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC;AAC5B,IAAA,EAAE,EAAE;AACF,QAAA,UAAU,EAAE,GAAG;AACf,QAAA,QAAQ,EAAE,MAAM;AAChB,QAAA,UAAU,EAAE,MAAM;AACnB,KAAA;AACD,IAAA,EAAE,EAAE;AACF,QAAA,UAAU,EAAE,GAAG;AACf,QAAA,QAAQ,EAAE,SAAS;AACnB,QAAA,UAAU,EAAE,UAAU;AACvB,KAAA;AACD,IAAA,EAAE,EAAE;AACF,QAAA,UAAU,EAAE,GAAG;AACf,QAAA,QAAQ,EAAE,MAAM;AAChB,QAAA,UAAU,EAAE,QAAQ;AACrB,KAAA;AACD,IAAA,EAAE,EAAE;AACF,QAAA,UAAU,EAAE,GAAG;AACf,QAAA,QAAQ,EAAE,UAAU;AACpB,QAAA,UAAU,EAAE,SAAS;AACtB,KAAA;AACD,IAAA,EAAE,EAAE;AACF,QAAA,UAAU,EAAE,GAAG;AACf,QAAA,QAAQ,EAAE,QAAQ;AAClB,QAAA,UAAU,EAAE,SAAS;AACtB,KAAA;AACD,IAAA,EAAE,EAAE;AACF,QAAA,UAAU,EAAE,GAAG;AACf,QAAA,QAAQ,EAAE,SAAS;AACnB,QAAA,UAAU,EAAE,UAAU;AACvB,KAAA;AACD,IAAA,EAAE,EAAE;AACF,QAAA,UAAU,EAAE,GAAG;AACf,QAAA,QAAQ,EAAE,UAAU;AACpB,QAAA,UAAU,EAAE,SAAS;AACtB,KAAA;AACD,IAAA,KAAK,EAAE;AACL,QAAA,UAAU,EAAE,GAAG;AACf,QAAA,QAAQ,EAAE,MAAM;AAChB,QAAA,UAAU,EAAE,QAAQ;AACrB,KAAA;AACD,IAAA,KAAK,EAAE;AACL,QAAA,UAAU,EAAE,GAAG;AACf,QAAA,QAAQ,EAAE,UAAU;AACpB,QAAA,UAAU,EAAE,SAAS;AACtB,KAAA;AACD,IAAA,SAAS,EAAE;AACT,QAAA,UAAU,EAAE,GAAG;AACf,QAAA,QAAQ,EAAE,SAAS;AACnB,QAAA,UAAU,EAAE,UAAU;AACtB,QAAA,KAAK,EAAE,SAAS;AACjB,KAAA;AACD,IAAA,MAAM,EAAE;AACN,QAAA,UAAU,EAAE,GAAG;AACf,QAAA,QAAQ,EAAE,UAAU;AACpB,QAAA,UAAU,EAAE,SAAS;AACrB,QAAA,aAAa,EAAE,YAAY;AAC5B,KAAA;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@popmenu/admin-ui",
3
- "version": "0.161.0",
3
+ "version": "0.162.0",
4
4
  "license": "MIT",
5
5
  "author": "Popmenu Design System Team",
6
6
  "description": "React components specifically for the MyPop web app.",
@@ -15,12 +15,12 @@
15
15
  "access": "public"
16
16
  },
17
17
  "scripts": {
18
- "build": "rollup -c",
18
+ "build": "yarn run -T rollup -c",
19
19
  "build:clean": "yarn clean && yarn build",
20
- "clean": "rimraf build/*",
20
+ "clean": "yarn run -T rimraf build",
21
21
  "prepack": "yarn build:clean",
22
22
  "prepublishOnly": "yarn build:clean",
23
- "start": "rollup -c -w",
23
+ "start": "yarn run -T rollup -c -w",
24
24
  "release:local": "watch 'yalc publish --push' src"
25
25
  },
26
26
  "peerDependencies": {
@@ -32,5 +32,5 @@
32
32
  "react": "18.x || 19.x"
33
33
  },
34
34
  "sideEffects": false,
35
- "gitHead": "5a1a2937784bcd1952c7825610926fab17f27919"
35
+ "gitHead": "7f7416f7f0c8af08e32b695dc62047bd1309760d"
36
36
  }