@admin-layout/tailwind-design-pro 10.0.4-alpha.19

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 (161) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +1 -0
  3. package/lib/cdm-locales/en/common.json +30 -0
  4. package/lib/cdm-locales/en/menu.json +115 -0
  5. package/lib/cdm-locales/en/pages.json +56 -0
  6. package/lib/cdm-locales/en/settings.json +19 -0
  7. package/lib/cdm-locales/es/common.json +30 -0
  8. package/lib/cdm-locales/es/menu.json +115 -0
  9. package/lib/cdm-locales/es/pages.json +56 -0
  10. package/lib/cdm-locales/es/settings.json +19 -0
  11. package/lib/components/LanguageMenu/LanguageMenu.d.ts +2 -0
  12. package/lib/components/LanguageMenu/LanguageMenu.d.ts.map +1 -0
  13. package/lib/components/LanguageMenu/LanguageMenu.js +95 -0
  14. package/lib/components/LanguageMenu/LanguageMenu.js.map +1 -0
  15. package/lib/components/LanguageMenu/index.d.ts +2 -0
  16. package/lib/components/LanguageMenu/index.d.ts.map +1 -0
  17. package/lib/components/Layout/BasicLayout/index.d.ts +19 -0
  18. package/lib/components/Layout/BasicLayout/index.d.ts.map +1 -0
  19. package/lib/components/Layout/BasicLayout/index.js +203 -0
  20. package/lib/components/Layout/BasicLayout/index.js.map +1 -0
  21. package/lib/components/Layout/BasicLayout/utils.d.ts +14 -0
  22. package/lib/components/Layout/BasicLayout/utils.d.ts.map +1 -0
  23. package/lib/components/Layout/BasicLayout/utils.js +130 -0
  24. package/lib/components/Layout/BasicLayout/utils.js.map +1 -0
  25. package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.d.ts +12 -0
  26. package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.d.ts.map +1 -0
  27. package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.js +72 -0
  28. package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.js.map +1 -0
  29. package/lib/components/Layout/GlobalFooter/Copyright.d.ts +5 -0
  30. package/lib/components/Layout/GlobalFooter/Copyright.d.ts.map +1 -0
  31. package/lib/components/Layout/GlobalFooter/Copyright.js +8 -0
  32. package/lib/components/Layout/GlobalFooter/Copyright.js.map +1 -0
  33. package/lib/components/Layout/GlobalFooter/Footer.d.ts +5 -0
  34. package/lib/components/Layout/GlobalFooter/Footer.d.ts.map +1 -0
  35. package/lib/components/Layout/GlobalFooter/Footer.js +22 -0
  36. package/lib/components/Layout/GlobalFooter/Footer.js.map +1 -0
  37. package/lib/components/Layout/GlobalHeader/Header.d.ts +18 -0
  38. package/lib/components/Layout/GlobalHeader/Header.d.ts.map +1 -0
  39. package/lib/components/Layout/GlobalHeader/Header.js +74 -0
  40. package/lib/components/Layout/GlobalHeader/Header.js.map +1 -0
  41. package/lib/components/Layout/GlobalHeader/OrganizationDropdown.d.ts +16 -0
  42. package/lib/components/Layout/GlobalHeader/OrganizationDropdown.d.ts.map +1 -0
  43. package/lib/components/Layout/GlobalHeader/OrganizationDropdown.js +73 -0
  44. package/lib/components/Layout/GlobalHeader/OrganizationDropdown.js.map +1 -0
  45. package/lib/components/Layout/GlobalHeader/RightContent.d.ts +18 -0
  46. package/lib/components/Layout/GlobalHeader/RightContent.d.ts.map +1 -0
  47. package/lib/components/Layout/GlobalHeader/styles.d.ts +2 -0
  48. package/lib/components/Layout/GlobalHeader/styles.d.ts.map +1 -0
  49. package/lib/components/Layout/ProTailwindLayout.d.ts +23 -0
  50. package/lib/components/Layout/ProTailwindLayout.d.ts.map +1 -0
  51. package/lib/components/Layout/ProTailwindLayout.js +95 -0
  52. package/lib/components/Layout/ProTailwindLayout.js.map +1 -0
  53. package/lib/components/Layout/Sidebar/Divider.d.ts +33 -0
  54. package/lib/components/Layout/Sidebar/Divider.d.ts.map +1 -0
  55. package/lib/components/Layout/Sidebar/Divider.js +47 -0
  56. package/lib/components/Layout/Sidebar/Divider.js.map +1 -0
  57. package/lib/components/Layout/Sidebar/Sidebar.d.ts +15 -0
  58. package/lib/components/Layout/Sidebar/Sidebar.d.ts.map +1 -0
  59. package/lib/components/Layout/Sidebar/Sidebar.js +139 -0
  60. package/lib/components/Layout/Sidebar/Sidebar.js.map +1 -0
  61. package/lib/components/Layout/Sidebar/SidebarMenu.d.ts +6 -0
  62. package/lib/components/Layout/Sidebar/SidebarMenu.d.ts.map +1 -0
  63. package/lib/components/Layout/Sidebar/SidebarMenu.js +89 -0
  64. package/lib/components/Layout/Sidebar/SidebarMenu.js.map +1 -0
  65. package/lib/components/Layout/TailwindLayout.d.ts +12 -0
  66. package/lib/components/Layout/TailwindLayout.d.ts.map +1 -0
  67. package/lib/components/Layout/TailwindLayout.js +42 -0
  68. package/lib/components/Layout/TailwindLayout.js.map +1 -0
  69. package/lib/components/Layout/getPageTitle.d.ts +26 -0
  70. package/lib/components/Layout/getPageTitle.d.ts.map +1 -0
  71. package/lib/components/Layout/getPageTitle.js +56 -0
  72. package/lib/components/Layout/getPageTitle.js.map +1 -0
  73. package/lib/components/Layout/slot-fill/Footer.d.ts +4 -0
  74. package/lib/components/Layout/slot-fill/Footer.d.ts.map +1 -0
  75. package/lib/components/Layout/slot-fill/Footer.js +7 -0
  76. package/lib/components/Layout/slot-fill/Footer.js.map +1 -0
  77. package/lib/components/Layout/slot-fill/HeaderNotice.d.ts +4 -0
  78. package/lib/components/Layout/slot-fill/HeaderNotice.d.ts.map +1 -0
  79. package/lib/components/Layout/slot-fill/index.d.ts +3 -0
  80. package/lib/components/Layout/slot-fill/index.d.ts.map +1 -0
  81. package/lib/components/Layout/util.d.ts +6 -0
  82. package/lib/components/Layout/util.d.ts.map +1 -0
  83. package/lib/components/SettingDrawer/CheckBoxTheme.d.ts +8 -0
  84. package/lib/components/SettingDrawer/CheckBoxTheme.d.ts.map +1 -0
  85. package/lib/components/SettingDrawer/CheckBoxTheme.js +48 -0
  86. package/lib/components/SettingDrawer/CheckBoxTheme.js.map +1 -0
  87. package/lib/components/SettingDrawer/LayoutChange.d.ts +7 -0
  88. package/lib/components/SettingDrawer/LayoutChange.d.ts.map +1 -0
  89. package/lib/components/SettingDrawer/LayoutChange.js +69 -0
  90. package/lib/components/SettingDrawer/LayoutChange.js.map +1 -0
  91. package/lib/components/SettingDrawer/RegionalSettings.d.ts +8 -0
  92. package/lib/components/SettingDrawer/RegionalSettings.d.ts.map +1 -0
  93. package/lib/components/SettingDrawer/RegionalSettings.js +95 -0
  94. package/lib/components/SettingDrawer/RegionalSettings.js.map +1 -0
  95. package/lib/components/SettingDrawer/SettingDrawer.d.ts +27 -0
  96. package/lib/components/SettingDrawer/SettingDrawer.d.ts.map +1 -0
  97. package/lib/components/SettingDrawer/SettingDrawer.js +392 -0
  98. package/lib/components/SettingDrawer/SettingDrawer.js.map +1 -0
  99. package/lib/components/SettingDrawer/Switch/index.d.ts +9 -0
  100. package/lib/components/SettingDrawer/Switch/index.d.ts.map +1 -0
  101. package/lib/components/SettingDrawer/Switch/index.js +39 -0
  102. package/lib/components/SettingDrawer/Switch/index.js.map +1 -0
  103. package/lib/components/SettingDrawer/ThemeColor.d.ts +8 -0
  104. package/lib/components/SettingDrawer/ThemeColor.d.ts.map +1 -0
  105. package/lib/components/SettingDrawer/ThemeColor.js +32 -0
  106. package/lib/components/SettingDrawer/ThemeColor.js.map +1 -0
  107. package/lib/components/UpdateSettingsResource/UpdateSettingsResource.d.ts +2 -0
  108. package/lib/components/UpdateSettingsResource/UpdateSettingsResource.d.ts.map +1 -0
  109. package/lib/components/UpdateSettingsResource/UpdateSettingsResource.js +1 -0
  110. package/lib/components/UpdateSettingsResource/UpdateSettingsResource.js.map +1 -0
  111. package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.d.ts +6 -0
  112. package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.d.ts.map +1 -0
  113. package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.js +4 -0
  114. package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.js.map +1 -0
  115. package/lib/components/defaultSettings.d.ts +4 -0
  116. package/lib/components/defaultSettings.d.ts.map +1 -0
  117. package/lib/components/defaultSettings.js +14 -0
  118. package/lib/components/defaultSettings.js.map +1 -0
  119. package/lib/components/typings.d.ts +73 -0
  120. package/lib/components/typings.d.ts.map +1 -0
  121. package/lib/compute.d.ts +4 -0
  122. package/lib/compute.d.ts.map +1 -0
  123. package/lib/compute.js +36 -0
  124. package/lib/compute.js.map +1 -0
  125. package/lib/config/env-config.d.ts +4 -0
  126. package/lib/config/env-config.d.ts.map +1 -0
  127. package/lib/config/env-config.js +7 -0
  128. package/lib/config/env-config.js.map +1 -0
  129. package/lib/helpers/DynamicIcon.d.ts +12 -0
  130. package/lib/helpers/DynamicIcon.d.ts.map +1 -0
  131. package/lib/index.d.ts +7 -0
  132. package/lib/index.d.ts.map +1 -0
  133. package/lib/index.js +2 -0
  134. package/lib/index.js.map +1 -0
  135. package/lib/index.server.d.ts +2 -0
  136. package/lib/index.server.d.ts.map +1 -0
  137. package/lib/index.server.js +1 -0
  138. package/lib/index.server.js.map +1 -0
  139. package/lib/module.d.ts +6 -0
  140. package/lib/module.d.ts.map +1 -0
  141. package/lib/module.js +22 -0
  142. package/lib/module.js.map +1 -0
  143. package/lib/routes.json +41 -0
  144. package/lib/styles/index.css +51 -0
  145. package/lib/utils/index.d.ts +2 -0
  146. package/lib/utils/index.d.ts.map +1 -0
  147. package/lib/utils/index.js +13 -0
  148. package/lib/utils/index.js.map +1 -0
  149. package/lib/utils/isBrowser/index.d.ts +3 -0
  150. package/lib/utils/isBrowser/index.d.ts.map +1 -0
  151. package/lib/utils/isBrowser/index.js +7 -0
  152. package/lib/utils/isBrowser/index.js.map +1 -0
  153. package/lib/utils/menu.d.ts +4 -0
  154. package/lib/utils/menu.d.ts.map +1 -0
  155. package/lib/utils/test-utils.d.ts +12 -0
  156. package/lib/utils/test-utils.d.ts.map +1 -0
  157. package/lib/utils/utils/index.d.ts +14 -0
  158. package/lib/utils/utils/index.d.ts.map +1 -0
  159. package/lib/utils/utils/index.js +3 -0
  160. package/lib/utils/utils/index.js.map +1 -0
  161. package/package.json +65 -0
@@ -0,0 +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"}
package/lib/compute.js ADDED
@@ -0,0 +1,36 @@
1
+ import { getFilteredMenus, getFilteredRoutes } from '@common-stack/client-react/lib/utils/filteredRoutes.js';
2
+ const key = 'root-layout';
3
+ const antUIPage = [{
4
+ key: key,
5
+ name: 'root layout',
6
+ path: '/o/:orgName',
7
+ auth: 'optional',
8
+ extraPermissions: ['*'],
9
+ exact: false,
10
+ componentPath: "@admin-layout/tailwind-design-pro/lib/components/Layout/ProTailwindLayout.js",
11
+ hasLoader: true,
12
+ hasClientLoader: true,
13
+ hasComponent: true,
14
+ hasShouldRevalidate: true,
15
+ hasHandle: true,
16
+ loaderReturnInfo: {
17
+ returnType: "json",
18
+ hasOptions: false,
19
+ keys: ["newMenuData", "apolloState"]
20
+ }
21
+ }, {
22
+ key: 'update-settings-resource',
23
+ hasServerCode: true,
24
+ name: 'UpdateSettingsResource',
25
+ isResourceRoute: true,
26
+ auth: false,
27
+ path: '/resources/settings',
28
+ componentPath: "@admin-layout/tailwind-design-pro/lib/components/UpdateSettingsResource/UpdateSettingsResource.js",
29
+ hasLoader: true,
30
+ hasAction: true
31
+ }];
32
+ // get menus
33
+ getFilteredMenus(antUIPage);
34
+ // get routes
35
+ const filteredRoutes = getFilteredRoutes(antUIPage);
36
+ export { filteredRoutes }; //# sourceMappingURL=compute.js.map
@@ -0,0 +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"}
@@ -0,0 +1,4 @@
1
+ export declare const config: Readonly<{
2
+ LAYOUT_ROOT: string;
3
+ } & import("envalid").CleanedEnvAccessors>;
4
+ //# sourceMappingURL=env-config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"env-config.d.ts","sourceRoot":"","sources":["../../src/config/env-config.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,MAAM;;0CAEjB,CAAC"}
@@ -0,0 +1,7 @@
1
+ import {cleanEnv,str}from'envalid';import {getEnvironment}from'@common-stack/core';const env = getEnvironment();
2
+ const config = cleanEnv(env, {
3
+ LAYOUT_ROOT: str({
4
+ default: '/o/:orgName',
5
+ desc: 'Layout parent route'
6
+ })
7
+ });export{config};//# sourceMappingURL=env-config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"env-config.js","sources":["../../src/config/env-config.ts"],"sourcesContent":[null],"names":[],"mappings":"mFAGA,MAAM,GAAG,GAAG,cAAc,EAAE;AAEf,MAAA,MAAM,GAAG,QAAQ,CAAC,GAAG,EAAE;AAChC,EAAA,WAAA,EAAW,GAAE,CAAA;AAChB,IAAE,OAAA,EAAA,aAAA;;;"}
@@ -0,0 +1,12 @@
1
+ import * as React from 'react';
2
+ interface DynamicTypeIconsProps {
3
+ icon: any;
4
+ iconColor?: string;
5
+ w?: any;
6
+ h?: any;
7
+ iconStyle?: any;
8
+ }
9
+ export declare const DynamicIcon: React.FC<DynamicTypeIconsProps>;
10
+ export declare const renderDynamicIcon: (icon: any) => import("react/jsx-runtime").JSX.Element;
11
+ export {};
12
+ //# sourceMappingURL=DynamicIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DynamicIcon.d.ts","sourceRoot":"","sources":["../../src/helpers/DynamicIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,UAAU,qBAAqB;IAC3B,IAAI,EAAE,GAAG,CAAC;IACV,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,CAAC,CAAC,EAAE,GAAG,CAAC;IACR,CAAC,CAAC,EAAE,GAAG,CAAC;IACR,SAAS,CAAC,EAAE,GAAG,CAAC;CACnB;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAsCvD,CAAC;AAEF,eAAO,MAAM,iBAAiB,wDAQ7B,CAAC"}
package/lib/index.d.ts ADDED
@@ -0,0 +1,7 @@
1
+ import { Feature } from '@common-stack/client-react';
2
+ export { PageHeader } from '@ant-design/pro-layout';
3
+ export { DefaultFooter } from '@ant-design/pro-layout';
4
+ export { changeProLayoutClassName } from './utils';
5
+ declare const _default: Feature;
6
+ export default _default;
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAErD,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;;AACnD,wBAAqC"}
package/lib/index.js ADDED
@@ -0,0 +1,2 @@
1
+ import {Feature}from'@common-stack/client-react';import settings from'./module.js';export{DefaultFooter,PageHeader}from'@ant-design/pro-layout';export{changeProLayoutClassName}from'./utils/index.js';// eslint-disable-next-line import/no-extraneous-dependencies
2
+ var index = new Feature(settings);export{index as default};//# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":[null],"names":[],"mappings":"uMAAA;AAMA,YAAe,IAAI,OAAO,CAAC,QAAQ,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './components/UpdateSettingsResource/UpdateSettingsResource.server';
2
+ //# sourceMappingURL=index.server.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.server.d.ts","sourceRoot":"","sources":["../src/index.server.ts"],"names":[],"mappings":"AAAA,cAAc,mEAAmE,CAAC"}
@@ -0,0 +1 @@
1
+ export{action,loader}from'./components/UpdateSettingsResource/UpdateSettingsResource.server.js';//# sourceMappingURL=index.server.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.server.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ import { Feature } from '@common-stack/client-react';
2
+ export declare const FOOTER_SLOT_FILL_NAME = "footer-slot-fill";
3
+ export declare const FooterFill: (props: any) => import("react/jsx-runtime").JSX.Element;
4
+ declare const _default: Feature;
5
+ export default _default;
6
+ //# sourceMappingURL=module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../src/module.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAOrD,eAAO,MAAM,qBAAqB,qBAAqB,CAAC;AAExD,eAAO,MAAM,UAAU,yDAEtB,CAAC;;AACF,wBAeG"}
package/lib/module.js ADDED
@@ -0,0 +1,22 @@
1
+ import {jsx}from'react/jsx-runtime';import {Feature}from'@common-stack/client-react';import {errorReduxLink,applicationErrors,settingsReducer}from'@admin-layout/client';import {filteredRoutes}from'./compute.js';import {GlobalFooter}from'./components/Layout/GlobalFooter/Footer.js';import'@common-stack/components-pro';import {FooterCard}from'./components/Layout/slot-fill/Footer.js';const FOOTER_SLOT_FILL_NAME = 'footer-slot-fill';
2
+ const FooterFill = props => {
3
+ return jsx(FooterCard, {
4
+ children: props => jsx(GlobalFooter, {
5
+ ...props
6
+ })
7
+ });
8
+ };
9
+ var settings = new Feature({
10
+ componentFillPlugins: [{
11
+ name: FOOTER_SLOT_FILL_NAME,
12
+ render: FooterFill
13
+ }],
14
+ routeConfig: filteredRoutes,
15
+ clientStateParams: {
16
+ preLinkFuncs: [errorReduxLink]
17
+ },
18
+ reducer: {
19
+ applicationErrors,
20
+ settings: settingsReducer
21
+ }
22
+ });export{FOOTER_SLOT_FILL_NAME,FooterFill,settings as default};//# sourceMappingURL=module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"module.js","sources":["../src/module.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":"+XAQO,MAAM,qBAAqB,GAAG;AAExB,MAAA,UAAU,GAAG,KAAC,IAAS;AAChC,EAAA,OAAAA,GAAQ,CAAA,UAAA,EAAU;AACtB,IAAE,QAAA,EAAA,KAAA,IAAAA,GAAA,CAAA,YAAA,EAAA;AACF,MAAe,GAAA;AACX,KAAA;AACI,GAAA,CAAA;AACI;AACA,eAAA,WAAkB,CAAA;AACrB,EAAA,oBAAA,EAAA,CAAA;AACJ,IAAA,IAAA,EAAA,qBAAA;AACD,IAAA,MAAA,EAAA;AACA,GAAA,CAAA;aACgB,EAAA,cAAG;AAClB,EAAA,iBAAA,EAAA;AACD,IAAA,YAAS,EAAA,CAAA,cAAA;;AAEL,EAAA,OAAA,EAAA;AACH,IAAA,iBAAA;AACJ,IAAE,QAAA,EAAA;;"}
@@ -0,0 +1,41 @@
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
+ "hasShouldRevalidate": true,
17
+ "hasHandle": true,
18
+ "loaderReturnInfo": {
19
+ "returnType": "json",
20
+ "hasOptions": false,
21
+ "keys": [
22
+ "newMenuData",
23
+ "apolloState"
24
+ ]
25
+ }
26
+ }
27
+ },
28
+ {
29
+ "/resources/settings": {
30
+ "key": "update-settings-resource",
31
+ "hasServerCode": true,
32
+ "name": "UpdateSettingsResource",
33
+ "isResourceRoute": true,
34
+ "auth": false,
35
+ "path": "/resources/settings",
36
+ "componentPath": "@admin-layout/tailwind-design-pro/lib/components/UpdateSettingsResource/UpdateSettingsResource.js",
37
+ "hasLoader": true,
38
+ "hasAction": true
39
+ }
40
+ }
41
+ ]
@@ -0,0 +1,51 @@
1
+
2
+ @tailwind base;
3
+ @tailwind components;
4
+ @tailwind utilities;
5
+
6
+ @layer base {
7
+ :root {
8
+ --background: 0 0% 100%;
9
+ --foreground: 222.2 84% 4.9%;
10
+ --card: 0 0% 100%;
11
+ --card-foreground: 222.2 84% 4.9%;
12
+ --popover: 0 0% 100%;
13
+ --popover-foreground: 222.2 84% 4.9%;
14
+ --primary: 221.2 83.2% 53.3%;
15
+ --primary-foreground: 210 40% 98%;
16
+ --secondary: 210 40% 96.1%;
17
+ --secondary-foreground: 222.2 47.4% 11.2%;
18
+ --muted: 210 40% 96.1%;
19
+ --muted-foreground: 215.4 16.3% 46.9%;
20
+ --accent: 210 40% 96.1%;
21
+ --accent-foreground: 222.2 47.4% 11.2%;
22
+ --destructive: 0 84.2% 60.2%;
23
+ --destructive-foreground: 210 40% 98%;
24
+ --border: 214.3 31.8% 91.4%;
25
+ --input: 214.3 31.8% 91.4%;
26
+ --ring: 221.2 83.2% 53.3%;
27
+ --radius: 0.5rem;
28
+ }
29
+
30
+ .dark {
31
+ --background: 222.2 84% 4.9%;
32
+ --foreground: 210 40% 98%;
33
+ --card: 222.2 84% 4.9%;
34
+ --card-foreground: 210 40% 98%;
35
+ --popover: 222.2 84% 4.9%;
36
+ --popover-foreground: 210 40% 98%;
37
+ --primary: 217.2 91.2% 59.8%;
38
+ --primary-foreground: 222.2 47.4% 11.2%;
39
+ --secondary: 217.2 32.6% 17.5%;
40
+ --secondary-foreground: 210 40% 98%;
41
+ --muted: 217.2 32.6% 17.5%;
42
+ --muted-foreground: 215 20.2% 65.1%;
43
+ --accent: 217.2 32.6% 17.5%;
44
+ --accent-foreground: 210 40% 98%;
45
+ --destructive: 0 62.8% 30.6%;
46
+ --destructive-foreground: 210 40% 98%;
47
+ --border: 217.2 32.6% 17.5%;
48
+ --input: 217.2 32.6% 17.5%;
49
+ --ring: 224.3 76.3% 48%;
50
+ }
51
+ }
@@ -0,0 +1,2 @@
1
+ export declare const changeProLayoutClassName: () => void;
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,wBAAwB,YAapC,CAAC"}
@@ -0,0 +1,13 @@
1
+ import {getScreenClassName}from'@ant-design/pro-utils/lib/useMediaQuery/index.js';const changeProLayoutClassName = () => {
2
+ const colSize = getScreenClassName();
3
+ const screenClassName = `screen-${colSize}`;
4
+ const elProLayout = document.querySelector('.ant-design-pro.ant-pro-layout');
5
+ if (elProLayout) {
6
+ let className = elProLayout.className;
7
+ if (!className.includes(' screen-')) {
8
+ className = className.replace(' ant-pro-layout ', ` ant-pro-layout ${screenClassName} `);
9
+ elProLayout.className = className;
10
+ console.log('Added screen class name', screenClassName);
11
+ }
12
+ }
13
+ };export{changeProLayoutClassName};//# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../src/utils/index.ts"],"sourcesContent":[null],"names":[],"mappings":"kFAEO,MAAM,wBAAwB,GAAG,MAAK;AACzC,EAAA,MAAA,OAAa,GAAA,kBAAqB,EAAA;AAClC,EAAA,MAAA,eAAqB,GAAA,CAAA,OAAa,EAAA,OAAA,CAAA,CAAO;QAEnC,WAAA,WAAsB,CAAA,8CAAe,CAAA;MACvC,WAAA,EAAW;AACX,IAAA,IAAA,SAAa,GAAA,WAAc,CAAA;QAC3B,CAAI,kBAAW,CAAA,UAAmB,CAAA,EAAA;eACrB,GAAA,SAAY,CAAA,OAAQ,CAAA,kBAAmB,EAAA,CAAA,gBAAqB,EAAA,eAAA,CAAA,CAAA,CAAA,CAAA;AACrE,MAAA,WAAA,CAAA,SAAY,GAAA,SAAY;AACxB,MAAA,OAAA,CAAA,GAAA,CAAA,0CAAuC,CAAA;;;AAGnD"}
@@ -0,0 +1,3 @@
1
+ declare const isBrowser: () => boolean;
2
+ export default isBrowser;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/isBrowser/index.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,SAAS,eAKd,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,7 @@
1
+ const isNode = typeof process !== 'undefined' && process.versions != null && process.versions.node != null;
2
+ const isBrowser = () => {
3
+ if (process.env.NODE_ENV === 'test') {
4
+ return true;
5
+ }
6
+ return typeof window !== 'undefined' && typeof window.document !== 'undefined' && !isNode;
7
+ };export{isBrowser as default};//# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../src/utils/isBrowser/index.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA,MAAM,MAAM,GAAG,OAAO,OAAO,KAAK,WAAW,IAAI,OAAO,CAAC,QAAQ,IAAI,IAAI,IAAI,OAAO,CAAC,QAAQ,CAAC,IAAI,IAAI,IAAI;AAEpG,MAAA,SAAS,GAAG,MAAK;MACf,OAAA,CAAA,GAAW,CAAA,aAAc,MAAA,EAAM;AAC/B,IAAA,OAAA,IAAO;;AAEX,EAAA,OAAA,OAAc,MAAA,KAAW,WAAA,WAAsB,MAAA,CAAA,QAAO,KAAa,WAAA,IAAe,CAAA;AACtF"}
@@ -0,0 +1,4 @@
1
+ export declare const getFilteredMenus: (accountPageStore: any, selectedMenu: any) => any;
2
+ export declare const getFilteredRoutes: (accountPageStore: any, selectedRoutes: any) => any;
3
+ export declare const getFilteredTabs: (accountPageStore: any, selectedTabs: any) => any;
4
+ //# sourceMappingURL=menu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../src/utils/menu.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,mDAUI,CAAC;AAElC,eAAO,MAAM,iBAAiB,qDAWG,CAAC;AAElC,eAAO,MAAM,eAAe,mDAQK,CAAC"}
@@ -0,0 +1,12 @@
1
+ export declare const waitForComponentToPaint: (wrapper: any, time?: number) => Promise<void>;
2
+ export declare const waitTime: (time?: number) => Promise<unknown>;
3
+ export declare const resizeWindow: (x: number, y: number) => void;
4
+ export declare function spyElementPrototypes(Element: {
5
+ prototype: Record<string, any>;
6
+ }, properties: {
7
+ [x: string]: any;
8
+ [x: number]: any;
9
+ }): {
10
+ mockRestore(): void;
11
+ };
12
+ //# sourceMappingURL=test-utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"test-utils.d.ts","sourceRoot":"","sources":["../../src/utils/test-utils.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,uBAAuB,YAAmB,GAAG,iCAMzD,CAAC;AAEF,eAAO,MAAM,QAAQ,UAAU,MAAM,qBAMpC,CAAC;AAEF,eAAO,MAAM,YAAY,MAAO,MAAM,KAAK,MAAM,SAMhD,CAAC;AAIF,wBAAgB,oBAAoB,CAChC,OAAO,EAAE;IAAE,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAAE,EAC3C,UAAU,EAAE;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;IAAC,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE;;EAmDrD"}
@@ -0,0 +1,14 @@
1
+ import { type ClassValue } from 'clsx';
2
+ export declare const waitForComponentToPaint: (wrapper: any, time?: number) => Promise<void>;
3
+ export declare const waitTime: (time?: number) => Promise<unknown>;
4
+ export declare const resizeWindow: (x: number, y: number) => void;
5
+ export declare function spyElementPrototypes(Element: {
6
+ prototype: Record<string, any>;
7
+ }, properties: {
8
+ [x: string]: any;
9
+ [x: number]: any;
10
+ }): {
11
+ mockRestore(): void;
12
+ };
13
+ export declare function cn(...inputs: ClassValue[]): string;
14
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/utils/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAQ,KAAK,UAAU,EAAE,MAAM,MAAM,CAAC;AAG7C,eAAO,MAAM,uBAAuB,YAAmB,GAAG,iCAMzD,CAAC;AAEF,eAAO,MAAM,QAAQ,UAAU,MAAM,qBAMpC,CAAC;AAEF,eAAO,MAAM,YAAY,MAAO,MAAM,KAAK,MAAM,SAMhD,CAAC;AAIF,wBAAgB,oBAAoB,CAChC,OAAO,EAAE;IAAE,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAAE,EAC3C,UAAU,EAAE;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;IAAC,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE;;EAmDrD;AAED,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,UAEzC"}
@@ -0,0 +1,3 @@
1
+ import'react-dom/test-utils';import {clsx}from'clsx';import {twMerge}from'tailwind-merge';function cn(...inputs) {
2
+ return twMerge(clsx(inputs));
3
+ }export{cn};//# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../src/utils/utils/index.ts"],"sourcesContent":[null],"names":[],"mappings":"0FAmFC,SAAA,EAAA,CAAA,GAAA,MAAA,EAAA;AAED,EAAA,OAAgB,OAAA,CAAA,IAAG,CAAG,MAAoB,CAAA,CAAA;AACtC"}
package/package.json ADDED
@@ -0,0 +1,65 @@
1
+ {
2
+ "name": "@admin-layout/tailwind-design-pro",
3
+ "version": "10.0.4-alpha.19",
4
+ "description": "Sample core for higher packages to depend on",
5
+ "license": "ISC",
6
+ "author": "CDMBase LLC",
7
+ "type": "module",
8
+ "main": "lib/index.js",
9
+ "module": "lib/index.js",
10
+ "typings": "lib/index.d.ts",
11
+ "scripts": {
12
+ "build": "yarn build:clean && yarn build:lib",
13
+ "build:clean": "rimraf lib",
14
+ "build:lib": "rollup -c rollup.config.mjs",
15
+ "build:lib:watch": "yarn build:lib -- --watch",
16
+ "jest": "./node_modules/.bin/jest",
17
+ "prepublish": "yarn build",
18
+ "test": "cross-env ENV_FILE=../../config/test/test.env jest",
19
+ "test:debug": "npm test -- --runInBand",
20
+ "test:watch": "npm test -- --watch",
21
+ "watch": "yarn build:lib:watch"
22
+ },
23
+ "dependencies": {
24
+ "@admin-layout/assets": "10.0.4-alpha.16",
25
+ "@admin-layout/client": "10.0.4-alpha.19",
26
+ "@types/react-copy-to-clipboard": "^4.3.0",
27
+ "base-64": "^0.1.0",
28
+ "identicon.js": "^2.3.1",
29
+ "react-copy-to-clipboard": "^5.0.2",
30
+ "react-favicon": "^0.0.23",
31
+ "react-fontawesome": "^1.6.1",
32
+ "react-intl": "^6.1.1",
33
+ "react-responsive": "^10.0.0",
34
+ "unstated-next": "^1.1.0",
35
+ "use-json-comparison": "^1.0.5",
36
+ "use-media-antd-query": "^1.0.2",
37
+ "use-merge-value": "^1.0.2"
38
+ },
39
+ "devDependencies": {
40
+ "@adminide-stack/extension-api": "^10.2.2-alpha.36",
41
+ "@tailwindcss/aspect-ratio": "^0.4.2",
42
+ "@tailwindcss/forms": "^0.5.4",
43
+ "@tailwindcss/typography": "^0.5.9",
44
+ "tailwindcss": "^3.3.3"
45
+ },
46
+ "peerDependencies": {
47
+ "inversify": "*"
48
+ },
49
+ "publishConfig": {
50
+ "access": "public"
51
+ },
52
+ "cdecode": {
53
+ "viteConfig": {
54
+ "plugins": {
55
+ "cjsInterop": {
56
+ "dependencies": []
57
+ }
58
+ }
59
+ }
60
+ },
61
+ "typescript": {
62
+ "definition": "lib/index.d.ts"
63
+ },
64
+ "gitHead": "4d7ef7b96b52ee5b4551178f64c71c2b68c0ac90"
65
+ }