@admin-layout/tailwind-design-pro 10.0.9-alpha.4 → 10.0.9-alpha.8

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 (46) hide show
  1. package/lib/components/Layout/BasicLayout/index.d.ts.map +1 -1
  2. package/lib/components/Layout/BasicLayout/index.js +8 -22
  3. package/lib/components/Layout/BasicLayout/index.js.map +1 -1
  4. package/lib/components/Layout/GlobalHeader/Header.js +1 -1
  5. package/lib/components/Layout/ProTailwindLayout.d.ts +2 -0
  6. package/lib/components/Layout/ProTailwindLayout.d.ts.map +1 -1
  7. package/lib/components/Layout/ProTailwindLayout.js +19 -4
  8. package/lib/components/Layout/ProTailwindLayout.js.map +1 -1
  9. package/lib/components/Layout/slot-fill/AdditionalSettings.d.ts +4 -0
  10. package/lib/components/Layout/slot-fill/AdditionalSettings.d.ts.map +1 -0
  11. package/lib/components/Layout/slot-fill/AdditionalSettings.js +7 -0
  12. package/lib/components/Layout/slot-fill/AdditionalSettings.js.map +1 -0
  13. package/lib/components/Layout/slot-fill/index.d.ts +1 -0
  14. package/lib/components/Layout/slot-fill/index.d.ts.map +1 -1
  15. package/lib/components/SettingDrawer/SettingDrawer.d.ts.map +1 -1
  16. package/lib/components/SettingDrawer/SettingDrawer.js +21 -7
  17. package/lib/components/SettingDrawer/SettingDrawer.js.map +1 -1
  18. package/lib/components/SettingDrawer/ThemeColor.d.ts.map +1 -1
  19. package/lib/components/SettingDrawer/ThemeColor.js +3 -0
  20. package/lib/components/SettingDrawer/ThemeColor.js.map +1 -1
  21. package/lib/components/SettingDrawer/types.d.ts +11 -1
  22. package/lib/components/SettingDrawer/types.d.ts.map +1 -1
  23. package/lib/components/ThemeProvider/ThemeProvider.d.ts +18 -0
  24. package/lib/components/ThemeProvider/ThemeProvider.d.ts.map +1 -0
  25. package/lib/components/ThemeProvider/ThemeProvider.js +63 -0
  26. package/lib/components/ThemeProvider/ThemeProvider.js.map +1 -0
  27. package/lib/components/ThemeProvider/ThemeToggle.d.ts +7 -0
  28. package/lib/components/ThemeProvider/ThemeToggle.d.ts.map +1 -0
  29. package/lib/components/ThemeProvider/index.d.ts +7 -0
  30. package/lib/components/ThemeProvider/index.d.ts.map +1 -0
  31. package/lib/components/ThemeProvider/themeRegistry.d.ts +3 -0
  32. package/lib/components/ThemeProvider/themeRegistry.d.ts.map +1 -0
  33. package/lib/components/ThemeProvider/themeRegistry.js +388 -0
  34. package/lib/components/ThemeProvider/themeRegistry.js.map +1 -0
  35. package/lib/components/ThemeProvider/themeUtils.d.ts +26 -0
  36. package/lib/components/ThemeProvider/themeUtils.d.ts.map +1 -0
  37. package/lib/components/ThemeProvider/themeUtils.js +135 -0
  38. package/lib/components/ThemeProvider/themeUtils.js.map +1 -0
  39. package/lib/components/ThemeProvider/types.d.ts +112 -0
  40. package/lib/components/ThemeProvider/types.d.ts.map +1 -0
  41. package/lib/compute.d.ts.map +1 -1
  42. package/lib/compute.js +24 -8
  43. package/lib/compute.js.map +1 -1
  44. package/lib/routes.json +42 -0
  45. package/lib/styles/index.css +438 -46
  46. package/package.json +2 -2
@@ -0,0 +1,112 @@
1
+ export interface ThemeColors {
2
+ light: {
3
+ background: string;
4
+ foreground: string;
5
+ card: string;
6
+ cardForeground: string;
7
+ popover: string;
8
+ popoverForeground: string;
9
+ primary: string;
10
+ primaryForeground: string;
11
+ secondary: string;
12
+ secondaryForeground: string;
13
+ muted: string;
14
+ mutedForeground: string;
15
+ accent: string;
16
+ accentForeground: string;
17
+ destructive: string;
18
+ destructiveForeground: string;
19
+ border: string;
20
+ input: string;
21
+ ring: string;
22
+ };
23
+ dark: {
24
+ background: string;
25
+ foreground: string;
26
+ card: string;
27
+ cardForeground: string;
28
+ popover: string;
29
+ popoverForeground: string;
30
+ primary: string;
31
+ primaryForeground: string;
32
+ secondary: string;
33
+ secondaryForeground: string;
34
+ muted: string;
35
+ mutedForeground: string;
36
+ accent: string;
37
+ accentForeground: string;
38
+ destructive: string;
39
+ destructiveForeground: string;
40
+ border: string;
41
+ input: string;
42
+ ring: string;
43
+ };
44
+ }
45
+ export interface ThemeFontSizes {
46
+ xs: string;
47
+ sm: string;
48
+ base: string;
49
+ lg: string;
50
+ xl: string;
51
+ '2xl': string;
52
+ '3xl': string;
53
+ '4xl': string;
54
+ '5xl': string;
55
+ }
56
+ export interface ThemeSpacing {
57
+ px: string;
58
+ 0: string;
59
+ 0.5: string;
60
+ 1: string;
61
+ 1.5: string;
62
+ 2: string;
63
+ 2.5: string;
64
+ 3: string;
65
+ 3.5: string;
66
+ 4: string;
67
+ 5: string;
68
+ 6: string;
69
+ 8: string;
70
+ 10: string;
71
+ 12: string;
72
+ 16: string;
73
+ 20: string;
74
+ 24: string;
75
+ 32: string;
76
+ 40: string;
77
+ 48: string;
78
+ 56: string;
79
+ 64: string;
80
+ }
81
+ export interface ThemeBorderRadius {
82
+ none: string;
83
+ sm: string;
84
+ DEFAULT: string;
85
+ md: string;
86
+ lg: string;
87
+ xl: string;
88
+ '2xl': string;
89
+ '3xl': string;
90
+ full: string;
91
+ }
92
+ export interface Theme {
93
+ name: string;
94
+ colors: ThemeColors;
95
+ fontSizes: ThemeFontSizes;
96
+ spacing: ThemeSpacing;
97
+ borderRadius: ThemeBorderRadius;
98
+ }
99
+ export interface ThemeOptions {
100
+ isDarkMode: boolean;
101
+ primaryColor?: string;
102
+ fontFamily?: string;
103
+ }
104
+ export interface ThemeSelectorProps {
105
+ value: string;
106
+ onChange: (value: string) => void;
107
+ options: {
108
+ key: string;
109
+ title: string;
110
+ }[];
111
+ }
112
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/ThemeProvider/types.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,WAAW;IACxB,KAAK,EAAE;QACH,UAAU,EAAE,MAAM,CAAC;QACnB,UAAU,EAAE,MAAM,CAAC;QACnB,IAAI,EAAE,MAAM,CAAC;QACb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AM,EAAE,WAAW,CAAC;IACpB,SAAS,EAAE,cAAc,CAAC;IAC1B,OAAO,EAAE,YAAY,CAAC;IACtB,YAAY,EAAE,iBAAiB,CAAC;CACnC;AAGD,MAAM,WAAW,YAAY;IACzB,UAAU,EAAE,OAAO,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AAGD,MAAM,WAAW,kBAAkB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,OAAO,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CAC7C"}
@@ -1 +1 @@
1
- {"version":3,"file":"compute.d.ts","sourceRoot":"","sources":["../src/compute.ts"],"names":[],"mappings":"AA0BA,QAAA,MAAM,aAAa,0CAA8B,CAAC;AAGlD,QAAA,MAAM,cAAc,0CAA+B,CAAC;AAEpD,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,CAAC"}
1
+ {"version":3,"file":"compute.d.ts","sourceRoot":"","sources":["../src/compute.ts"],"names":[],"mappings":"AA0BA,QAAA,MAAM,aAAa,0CAA0C,CAAC;AAG9D,QAAA,MAAM,cAAc,0CAA2C,CAAC;AAEhE,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,CAAC"}
package/lib/compute.js CHANGED
@@ -1,22 +1,38 @@
1
- import {getFilteredMenus,getFilteredRoutes}from'@common-stack/client-react/lib/utils/filteredRoutes.js';const key = 'root-layout';
2
- const antUIPage = [{
1
+ import { getFilteredMenus, getFilteredRoutes } from '@common-stack/client-react/lib/utils/filteredRoutes.js';
2
+ import { config } from './config/env-config.js';
3
+ const key = 'root-layout';
4
+ const tailwindDesignProPage = [{
3
5
  key: key,
4
6
  name: 'root layout',
5
- path: '/o/:orgName',
7
+ path: config.LAYOUT_ROOT,
6
8
  auth: 'optional',
7
9
  extraPermissions: ['*'],
8
10
  exact: false,
9
- component: () => import('./components/Layout/ProTailwindLayout.js')
11
+ componentPath: "@admin-layout/tailwind-design-pro/lib/components/Layout/ProTailwindLayout.js",
12
+ hasLoader: true,
13
+ hasClientLoader: true,
14
+ hasComponent: true,
15
+ hasLinks: true,
16
+ hasShouldRevalidate: true,
17
+ hasHandle: true,
18
+ loaderReturnInfo: {
19
+ returnType: "json",
20
+ hasOptions: false,
21
+ keys: ["newMenuData", "apolloState"]
22
+ }
10
23
  }, {
11
24
  key: 'update-settings-resource',
12
25
  hasServerCode: true,
13
26
  name: 'UpdateSettingsResource',
14
27
  isResourceRoute: true,
15
28
  auth: false,
16
- component: () => import('./components/UpdateSettingsResource/UpdateSettingsResource.js'),
17
- path: '/resources/settings'
29
+ path: '/resources/settings',
30
+ componentPath: "@admin-layout/tailwind-design-pro/lib/components/UpdateSettingsResource/UpdateSettingsResource.js",
31
+ hasLoader: true,
32
+ hasAction: true
18
33
  }];
19
34
  // get menus
20
- getFilteredMenus(antUIPage);
35
+ getFilteredMenus(tailwindDesignProPage);
21
36
  // get routes
22
- const filteredRoutes = getFilteredRoutes(antUIPage);export{filteredRoutes};//# sourceMappingURL=compute.js.map
37
+ const filteredRoutes = getFilteredRoutes(tailwindDesignProPage);
38
+ export { filteredRoutes }; //# sourceMappingURL=compute.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"compute.js","sources":["../src/compute.ts"],"sourcesContent":[null],"names":[],"mappings":"wGAEA,MAAM,GAAG,GAAG,aAAa;AAEzB,MAAM,SAAS,GAAU,CAAA;AACrB,EAAA,GAAA,EAAA,GAAA;AACI,EAAA,IAAA,EAAA,aAAQ;AACR,EAAA,IAAA,EAAA,aAAmB;AACnB,EAAA,IAAA,EAAA,UAAmB;AACnB,EAAA,gBAAgB,EAAA,CAAA,GAAA,CAAA;SACA,KAAA;AAChB,EAAA,SAAA,EAAK,MAAO,OAAA,0CAAA;AACZ,CAAA,EAAA;AACH,EAAA,GAAA,EAAA,0BAAA;AACD,EAAA,aAAA,EAAA,IAAA;AACI,EAAA,IAAA,EAAA,wBAA+B;AAC/B,EAAA,eAAA,EAAA,IAAe;AACf,EAAA,IAAA,EAAA;AACA,EAAA,SAAA,EAAA,MAAA,OAAqB,+DAAA,CAAA;AACrB,EAAA,IAAA,EAAA;AACA,CAAA,CAAA;AACA;AACH,gBAAA,CAAA,SAAA;;AAGO,MAAA,cAAA,GAAA,iBAAA,CAAA,SAAA"}
1
+ {"version":3,"file":"compute.js","sources":["../src/compute.ts"],"sourcesContent":[null],"names":[],"mappings":"oJAEA,MAAM,GAAG,GAAG,aAAa;AAEzB,MAAM,qBAAqB,GAAU,CAAA;AACjC,EAAA,GAAA,EAAA,GAAA;AACI,EAAA,IAAA,EAAA,aAAQ;AACR,EAAA,IAAA,EAAA,MAAM,CAAa,WAAA;QACnB,UAAY;AACZ,EAAA,gBAAgB,EAAA,CAAA,GAAA,CAAA;SACA,KAAA;AAChB,EAAA,SAAA,EAAK,MAAO,OAAA,0CAAA;AACZ,CAAA,EAAA;AACH,EAAA,GAAA,EAAA,0BAAA;AACD,EAAA,aAAA,EAAA,IAAA;AACI,EAAA,IAAA,EAAA,wBAA+B;AAC/B,EAAA,eAAA,EAAA,IAAe;AACf,EAAA,IAAA,EAAA;AACA,EAAA,SAAA,EAAA,MAAA,OAAqB,+DAAA,CAAA;AACrB,EAAA,IAAA,EAAA;AACA,CAAA,CAAA;AACA;AACH,gBAAA,CAAA,qBAAA;;AAGO,MAAA,cAAA,GAAA,iBAAA,CAAA,qBAAA"}
@@ -0,0 +1,42 @@
1
+ [
2
+ {
3
+ "/o/:orgName": {
4
+ "key": "root-layout",
5
+ "name": "root layout",
6
+ "path": "/o/:orgName",
7
+ "auth": "optional",
8
+ "extraPermissions": [
9
+ "*"
10
+ ],
11
+ "exact": false,
12
+ "componentPath": "@admin-layout/tailwind-design-pro/lib/components/Layout/ProTailwindLayout.js",
13
+ "hasLoader": true,
14
+ "hasClientLoader": true,
15
+ "hasComponent": true,
16
+ "hasLinks": true,
17
+ "hasShouldRevalidate": true,
18
+ "hasHandle": true,
19
+ "loaderReturnInfo": {
20
+ "returnType": "json",
21
+ "hasOptions": false,
22
+ "keys": [
23
+ "newMenuData",
24
+ "apolloState"
25
+ ]
26
+ }
27
+ }
28
+ },
29
+ {
30
+ "/resources/settings": {
31
+ "key": "update-settings-resource",
32
+ "hasServerCode": true,
33
+ "name": "UpdateSettingsResource",
34
+ "isResourceRoute": true,
35
+ "auth": false,
36
+ "path": "/resources/settings",
37
+ "componentPath": "@admin-layout/tailwind-design-pro/lib/components/UpdateSettingsResource/UpdateSettingsResource.js",
38
+ "hasLoader": true,
39
+ "hasAction": true
40
+ }
41
+ }
42
+ ]