@strapi/admin 4.5.0-beta.0 → 4.5.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.
- package/admin/src/StrapiApp.js +17 -6
- package/admin/src/assets/images/hot-air-balloon.png +0 -0
- package/admin/src/assets/images/icon_offline-cloud.svg +3 -3
- package/admin/src/assets/images/logo-strapi-2022.svg +7 -0
- package/admin/src/assets/images/upgrade-details.png +0 -0
- package/admin/src/content-manager/components/DynamicTable/CellContent/CellValue.js +1 -1
- package/admin/src/content-manager/components/DynamicTable/CellContent/RelationMultiple/index.js +5 -4
- package/admin/src/content-manager/components/DynamicTable/CellContent/index.js +10 -0
- package/admin/src/content-manager/components/DynamicTable/index.js +21 -4
- package/admin/src/content-manager/components/DynamicZone/index.js +6 -2
- package/admin/src/content-manager/components/EditViewDataManagerProvider/index.js +103 -60
- package/admin/src/content-manager/components/EditViewDataManagerProvider/reducer.js +169 -162
- package/admin/src/content-manager/components/EditViewDataManagerProvider/utils/cleanData.js +70 -16
- package/admin/src/content-manager/components/EditViewDataManagerProvider/utils/findLeafByPathAndReplace.js +52 -0
- package/admin/src/content-manager/components/EditViewDataManagerProvider/utils/index.js +2 -0
- package/admin/src/content-manager/components/EditViewDataManagerProvider/utils/recursivelyFindPathsBasedOnCondition.js +72 -0
- package/admin/src/content-manager/components/FieldComponent/index.js +9 -2
- package/admin/src/content-manager/components/PreviewWysiwyg/index.js +1 -1
- package/admin/src/content-manager/components/RelationInput/RelationInput.js +80 -76
- package/admin/src/content-manager/components/RelationInputDataManager/RelationInputDataManager.js +95 -63
- package/admin/src/content-manager/components/RelationInputDataManager/utils/diffRelations.js +24 -0
- package/admin/src/content-manager/components/RelationInputDataManager/utils/index.js +2 -1
- package/admin/src/content-manager/components/RelationInputDataManager/utils/normalizeRelations.js +8 -29
- package/admin/src/content-manager/components/RelationInputDataManager/utils/normalizeSearchResults.js +8 -4
- package/admin/src/content-manager/components/RelationInputDataManager/utils/select.js +1 -0
- package/admin/src/content-manager/components/RepeatableComponent/index.js +4 -3
- package/admin/src/content-manager/hooks/__test__/usePrev.test.js +26 -0
- package/admin/src/content-manager/hooks/index.js +1 -0
- package/admin/src/content-manager/hooks/useFetchContentTypeLayout/utils/formatLayouts.js +19 -48
- package/admin/src/content-manager/hooks/usePrev.js +14 -0
- package/admin/src/content-manager/hooks/useRelation/useRelation.js +100 -7
- package/admin/src/content-manager/pages/App/reducer.js +3 -0
- package/admin/src/content-manager/pages/ListSettingsView/components/DraggableCard.js +3 -3
- package/admin/src/content-manager/pages/ListSettingsView/components/Settings.js +2 -2
- package/admin/src/content-manager/pages/ListSettingsView/components/SortDisplayedFields.js +1 -1
- package/admin/src/core/apis/CustomFields.js +0 -1
- package/admin/src/core/store/configureStore.js +17 -2
- package/admin/src/favicon.png +0 -0
- package/admin/src/hooks/useFetchMarketplacePlugins/index.js +2 -2
- package/admin/src/hooks/useFetchMarketplacePlugins/utils/api.js +4 -2
- package/admin/src/hooks/useFetchMarketplaceProviders/index.js +3 -3
- package/admin/src/hooks/useFetchMarketplaceProviders/utils/api.js +5 -3
- package/admin/src/index.js +1 -0
- package/admin/src/pages/App/index.js +1 -1
- package/admin/src/pages/HomePage/assets/corner-ornament.svg +48 -0
- package/admin/src/pages/HomePage/index.js +3 -2
- package/admin/src/pages/MarketplacePage/components/NpmPackageCard/CardButton.js +110 -0
- package/admin/src/pages/MarketplacePage/components/NpmPackageCard/InstallPluginButton.js +32 -21
- package/admin/src/pages/MarketplacePage/components/NpmPackageCard/PackageStats.js +79 -0
- package/admin/src/pages/MarketplacePage/components/NpmPackageCard/index.js +28 -11
- package/admin/src/pages/MarketplacePage/components/NpmPackagesFilters/FilterSelect.js +41 -0
- package/admin/src/pages/MarketplacePage/components/NpmPackagesFilters/FiltersPopover.js +96 -0
- package/admin/src/pages/MarketplacePage/components/NpmPackagesFilters/index.js +106 -0
- package/admin/src/pages/MarketplacePage/components/NpmPackagesGrid/index.js +4 -0
- package/admin/src/pages/MarketplacePage/components/SortSelect/index.js +70 -0
- package/admin/src/pages/MarketplacePage/index.js +68 -8
- package/admin/src/pages/SettingsPage/pages/ApiTokens/EditView/components/FormApiTokenContainer/index.js +5 -4
- package/admin/src/pages/SettingsPage/pages/ApiTokens/EditView/components/FormBody/index.js +4 -3
- package/admin/src/pages/SettingsPage/pages/ApiTokens/EditView/components/FormHead/index.js +6 -2
- package/admin/src/pages/SettingsPage/pages/ApiTokens/EditView/components/Regenerate/index.js +1 -1
- package/admin/src/pages/SettingsPage/pages/ApiTokens/EditView/index.js +5 -4
- package/admin/src/pages/SettingsPage/pages/ApiTokens/EditView/utils/schema.js +1 -1
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/ConditionsModal/ActionRow/index.js +7 -38
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/ConditionsModal/ActionRow/utils/options.js +31 -0
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/ConditionsModal/index.js +32 -43
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/components/ContentTypeCollapse/Collapse/index.js +1 -1
- package/admin/src/pages/SettingsPage/pages/Roles/ListPage/components/RoleRow/index.js +3 -1
- package/admin/src/pages/SettingsPage/pages/Roles/ListPage/index.js +2 -1
- package/admin/src/pages/SettingsPage/pages/Webhooks/EditView/components/EventInput/index.js +2 -2
- package/admin/src/translations/ca.json +1 -1
- package/admin/src/translations/de.json +1 -1
- package/admin/src/translations/dk.json +1 -1
- package/admin/src/translations/en.json +21 -7
- package/admin/src/translations/es.json +1 -1
- package/admin/src/translations/fr.json +1 -1
- package/admin/src/translations/gu.json +1 -1
- package/admin/src/translations/he.json +1 -1
- package/admin/src/translations/hi.json +1 -1
- package/admin/src/translations/hu.json +1 -1
- package/admin/src/translations/id.json +1 -1
- package/admin/src/translations/it.json +1 -1
- package/admin/src/translations/ja.json +1 -1
- package/admin/src/translations/ko.json +1 -1
- package/admin/src/translations/ml.json +1 -1
- package/admin/src/translations/nl.json +1 -1
- package/admin/src/translations/no.json +1 -1
- package/admin/src/translations/pl.json +1 -1
- package/admin/src/translations/pt-BR.json +1 -1
- package/admin/src/translations/ru.json +1 -1
- package/admin/src/translations/sa.json +1 -1
- package/admin/src/translations/sk.json +1 -1
- package/admin/src/translations/sv.json +1 -1
- package/admin/src/translations/th.json +1 -1
- package/admin/src/translations/zh-Hans.json +1 -1
- package/admin/src/translations/zh.json +1 -1
- package/build/1856.172d5fa0.chunk.js +174 -0
- package/build/2077.058590f4.chunk.js +206 -0
- package/build/2912.2c42c07b.chunk.js +259 -0
- package/build/4318.5e670740.chunk.js +30 -0
- package/build/4715.22747b59.chunk.js +387 -0
- package/build/{4800.d09f1225.chunk.js → 4800.a6935af6.chunk.js} +1 -1
- package/build/4982.1b75ddb1.chunk.js +325 -0
- package/build/617f9c948fa79e6d73bd.png +0 -0
- package/build/6d21938306785f176538.png +0 -0
- package/build/70674f63fc3904c20de0.svg +7 -0
- package/build/7692.a36fb2c2.chunk.js +470 -0
- package/build/7841.c50e9509.chunk.js +259 -0
- package/build/7866.ba215f99.chunk.js +505 -0
- package/build/7e9af4fb7e723fcebf1f.svg +48 -0
- package/build/8380.e53e7207.chunk.js +299 -0
- package/build/8549.832ed79d.chunk.js +159 -0
- package/build/8738.0fe8a61e.chunk.js +463 -0
- package/build/{9066.26faf397.chunk.js → 9066.eaf76ff3.chunk.js} +4 -4
- package/build/{9166.8fcb3019.chunk.js → 9166.90876521.chunk.js} +14 -13
- package/build/{9420.0fe11290.chunk.js → 9420.5292d1d2.chunk.js} +38 -37
- package/build/9649.468667d9.chunk.js +199 -0
- package/build/9d5d788027e86620c234.svg +5 -0
- package/build/Admin-authenticatedApp.c4f68103.chunk.js +80 -0
- package/build/{Admin_homePage.4b2be829.chunk.js → Admin_homePage.26d32e30.chunk.js} +5 -4
- package/build/Admin_marketplace.32375885.chunk.js +22 -0
- package/build/Admin_settingsPage.bf2234e1.chunk.js +178 -0
- package/build/admin-app.9049056c.chunk.js +112 -0
- package/build/{admin-edit-roles-page.4dd6bcb9.chunk.js → admin-edit-roles-page.69d9fcb2.chunk.js} +1 -1
- package/build/ca-json.07ae0f2c.chunk.js +1 -0
- package/build/content-manager.ff998bed.chunk.js +1204 -0
- package/build/content-type-builder-translation-sv-json.6deff030.chunk.js +1 -0
- package/build/{content-type-builder.a6e29716.chunk.js → content-type-builder.16af63a6.chunk.js} +13 -13
- package/build/de-json.6b3e1894.chunk.js +1 -0
- package/build/dk-json.144c6a8e.chunk.js +1 -0
- package/build/{email-settings-page.bfe6227f.chunk.js → email-settings-page.c3469093.chunk.js} +5 -5
- package/build/en-json.4a269f6b.chunk.js +1 -0
- package/build/es-json.6d123a82.chunk.js +1 -0
- package/build/fr-json.28ab54cb.chunk.js +1 -0
- package/build/gu-json.9a50ea64.chunk.js +1 -0
- package/build/he-json.72f18790.chunk.js +1 -0
- package/build/hi-json.0301b7ba.chunk.js +1 -0
- package/build/hu-json.c4b641bb.chunk.js +1 -0
- package/build/{i18n-settings-page.18166125.chunk.js → i18n-settings-page.46d894ff.chunk.js} +4 -4
- package/build/id-json.86035797.chunk.js +1 -0
- package/build/index.html +1 -1
- package/build/it-json.bbdc8993.chunk.js +1 -0
- package/build/ja-json.1c9eeeec.chunk.js +1 -0
- package/build/ko-json.e1f66398.chunk.js +1 -0
- package/build/main.91328e7a.js +9381 -0
- package/build/ml-json.963c889f.chunk.js +1 -0
- package/build/nl-json.2b8cc3a0.chunk.js +1 -0
- package/build/no-json.a58c28bd.chunk.js +1 -0
- package/build/pl-json.249626b3.chunk.js +1 -0
- package/build/pt-BR-json.7852f808.chunk.js +1 -0
- package/build/ru-json.d7cfc2ff.chunk.js +1 -0
- package/build/runtime~main.c9c319c0.js +2 -0
- package/build/sa-json.44e95991.chunk.js +1 -0
- package/build/sk-json.7ba4b330.chunk.js +1 -0
- package/build/sv-json.8e5a7911.chunk.js +1 -0
- package/build/th-json.a67309b1.chunk.js +1 -0
- package/build/{upload-settings.3d613216.chunk.js → upload-settings.53b690f3.chunk.js} +4 -4
- package/build/{users-advanced-settings-page.f4051d92.chunk.js → users-advanced-settings-page.3f4ee86e.chunk.js} +4 -4
- package/build/{webhook-edit-page.9e46fc3f.chunk.js → webhook-edit-page.dc9442ce.chunk.js} +1 -1
- package/build/webhook-list-page.02191138.chunk.js +134 -0
- package/build/zh-Hans-json.21617c24.chunk.js +1 -0
- package/build/zh-json.608aaf24.chunk.js +1 -0
- package/ee/admin/pages/SettingsPage/pages/Roles/ListPage/index.js +3 -2
- package/env.js +1 -0
- package/package.json +12 -11
- package/scripts/build.js +11 -0
- package/utils/create-plugins-exclude-path.js +40 -0
- package/webpack.alias.js +0 -13
- package/webpack.config.js +4 -1
- package/admin/src/assets/images/banner_strapi-rocket.png +0 -0
- package/admin/src/assets/images/big-logo-home.png +0 -0
- package/admin/src/assets/images/homepage-logo.png +0 -0
- package/admin/src/assets/images/icon_made-by-strapi.svg +0 -5
- package/admin/src/assets/images/logo_strapi_auth.png +0 -0
- package/admin/src/assets/images/logo_strapi_auth_v4.png +0 -0
- package/admin/src/assets/images/logo_strapi_menu.png +0 -0
- package/admin/src/assets/images/oops.png +0 -0
- package/admin/src/content-manager/components/State/index.js +0 -37
- package/admin/src/favicon.ico +0 -0
- package/build/15026a3d58aeb2828134.png +0 -0
- package/build/1856.d8f13391.chunk.js +0 -173
- package/build/1939.e3c87653.chunk.js +0 -325
- package/build/2077.31a2d91e.chunk.js +0 -205
- package/build/2912.ab68a736.chunk.js +0 -258
- package/build/4318.7d167b58.chunk.js +0 -30
- package/build/4715.44b1ef9b.chunk.js +0 -386
- package/build/4982.c2a311b7.chunk.js +0 -324
- package/build/7841.4b67af3f.chunk.js +0 -258
- package/build/7866.5fbeb7e5.chunk.js +0 -504
- package/build/8380.9b53a31d.chunk.js +0 -284
- package/build/8549.cf10b5d1.chunk.js +0 -158
- package/build/8738.a30a2160.chunk.js +0 -461
- package/build/90f49a385afb000fb1d4.svg +0 -5
- package/build/962.8651ba3f.chunk.js +0 -184
- package/build/Admin-authenticatedApp.883449a5.chunk.js +0 -80
- package/build/Admin_marketplace.82c0570b.chunk.js +0 -11
- package/build/Admin_settingsPage.98e2a62b.chunk.js +0 -178
- package/build/a6b842e0b6d2b61135d1.svg +0 -5
- package/build/admin-app.a61d5c2e.chunk.js +0 -112
- package/build/b997a22a2e0b87ef1fa2.ico +0 -0
- package/build/bd81ba6c07827282255d.png +0 -0
- package/build/c3de6118ef47086ad05c.png +0 -0
- package/build/ca-json.82df6eab.chunk.js +0 -1
- package/build/content-manager.933dc286.chunk.js +0 -1201
- package/build/de-json.0ad554eb.chunk.js +0 -1
- package/build/dk-json.e195ea1a.chunk.js +0 -1
- package/build/en-json.1889403c.chunk.js +0 -1
- package/build/es-json.09f80f6e.chunk.js +0 -1
- package/build/fb376b132d18bf4522ca.png +0 -0
- package/build/fde9b1ad0670d29a2516.png +0 -0
- package/build/fr-json.606d056b.chunk.js +0 -1
- package/build/gu-json.9881264f.chunk.js +0 -1
- package/build/he-json.3b825d80.chunk.js +0 -1
- package/build/hi-json.83dcf48f.chunk.js +0 -1
- package/build/hu-json.6f328bce.chunk.js +0 -1
- package/build/id-json.1f3c4303.chunk.js +0 -1
- package/build/it-json.494ac432.chunk.js +0 -1
- package/build/ja-json.6f262117.chunk.js +0 -1
- package/build/ko-json.36dc3b9a.chunk.js +0 -1
- package/build/main.63e7ea0a.js +0 -9338
- package/build/ml-json.9566bf9a.chunk.js +0 -1
- package/build/nl-json.94c3a289.chunk.js +0 -1
- package/build/no-json.40386397.chunk.js +0 -1
- package/build/pl-json.ccc6ef23.chunk.js +0 -1
- package/build/pt-BR-json.744f024d.chunk.js +0 -1
- package/build/ru-json.d22ea13c.chunk.js +0 -1
- package/build/runtime~main.3a5e1b07.js +0 -2
- package/build/sa-json.8fb1c04d.chunk.js +0 -1
- package/build/sk-json.6c7335d4.chunk.js +0 -1
- package/build/sv-json.2e589a7d.chunk.js +0 -1
- package/build/th-json.72e8de3d.chunk.js +0 -1
- package/build/webhook-list-page.a712ae40.chunk.js +0 -134
- package/build/zh-Hans-json.a4d7dc69.chunk.js +0 -1
- package/build/zh-json.66aa2ae1.chunk.js +0 -1
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const { sep, join } = require('path');
|
|
4
|
+
|
|
5
|
+
const NODE_MODULES = 'node_modules';
|
|
6
|
+
/**
|
|
7
|
+
* @param {string[]} pluginsPath – an array of paths to the plugins from the user's directory
|
|
8
|
+
* @returns {RegExp} a regex that will exclude _all_ node_modules except for the plugins in the pluginsPath array.
|
|
9
|
+
*/
|
|
10
|
+
const createPluginsExcludePath = (pluginsPath = []) => {
|
|
11
|
+
/**
|
|
12
|
+
* converts the full path to just the plugin path
|
|
13
|
+
* e.g. `/Users/username/strapi/node_modules/@scope/plugin-name`
|
|
14
|
+
* to `@scope/plugin-name`
|
|
15
|
+
*/
|
|
16
|
+
const tsxPlugins = pluginsPath.reduce((acc, curr) => {
|
|
17
|
+
const dirPaths = curr.split(sep);
|
|
18
|
+
|
|
19
|
+
const nodeModulePathIndex = dirPaths.findIndex((val) => val === NODE_MODULES);
|
|
20
|
+
|
|
21
|
+
if (nodeModulePathIndex > 0) {
|
|
22
|
+
const pluginNodeModulePath = dirPaths.slice(nodeModulePathIndex + 1);
|
|
23
|
+
return [...acc, join(...pluginNodeModulePath)];
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
return acc;
|
|
27
|
+
}, []);
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* If there aren't any plugins in the node_modules array, just return the node_modules regex
|
|
31
|
+
* without complicating it.
|
|
32
|
+
*/
|
|
33
|
+
if (tsxPlugins.length === 0) {
|
|
34
|
+
return /node_modules/;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
return new RegExp(`${NODE_MODULES}/(?!(${tsxPlugins.join('|')}))`);
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
module.exports = createPluginsExcludePath;
|
package/webpack.alias.js
CHANGED
|
@@ -37,21 +37,8 @@ const aliasExactMatch = [
|
|
|
37
37
|
'yup',
|
|
38
38
|
];
|
|
39
39
|
|
|
40
|
-
const alias = [
|
|
41
|
-
'react-select/animated',
|
|
42
|
-
'react-select/async',
|
|
43
|
-
'react-select/async-creatable',
|
|
44
|
-
'react-select/base',
|
|
45
|
-
'react-select/creatable',
|
|
46
|
-
];
|
|
47
|
-
|
|
48
40
|
// See https://webpack.js.org/configuration/resolve/
|
|
49
41
|
module.exports = {
|
|
50
|
-
...alias.reduce((acc, name) => {
|
|
51
|
-
acc[name] = require.resolve(name);
|
|
52
|
-
return acc;
|
|
53
|
-
}, {}),
|
|
54
|
-
|
|
55
42
|
...aliasExactMatch.reduce((acc, name) => {
|
|
56
43
|
acc[`${name}$`] = require.resolve(name);
|
|
57
44
|
return acc;
|
package/webpack.config.js
CHANGED
|
@@ -13,6 +13,7 @@ const ReactRefreshWebpackPlugin = require('@pmmmwh/react-refresh-webpack-plugin'
|
|
|
13
13
|
|
|
14
14
|
const alias = require('./webpack.alias');
|
|
15
15
|
const getClientEnvironment = require('./env');
|
|
16
|
+
const createPluginsExcludePath = require('./utils/create-plugins-exclude-path');
|
|
16
17
|
|
|
17
18
|
const EE_REGEX = /from.* ['"]ee_else_ce\//;
|
|
18
19
|
|
|
@@ -49,6 +50,8 @@ module.exports = ({
|
|
|
49
50
|
]
|
|
50
51
|
: [];
|
|
51
52
|
|
|
53
|
+
const excludeRegex = createPluginsExcludePath(pluginsPath);
|
|
54
|
+
|
|
52
55
|
return {
|
|
53
56
|
mode: isProduction ? 'production' : 'development',
|
|
54
57
|
bail: !!isProduction,
|
|
@@ -82,7 +85,7 @@ module.exports = ({
|
|
|
82
85
|
test: /\.tsx?$/,
|
|
83
86
|
loader: require.resolve('esbuild-loader'),
|
|
84
87
|
include: [cacheDir, ...pluginsPath],
|
|
85
|
-
exclude:
|
|
88
|
+
exclude: excludeRegex,
|
|
86
89
|
options: {
|
|
87
90
|
loader: 'tsx',
|
|
88
91
|
target: 'es2015',
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<rect x="3" y="3" width="18" height="18" rx="4" fill="#4945FF"/>
|
|
3
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M15.8075 7.625H9.03058V11.1792H12.2533C12.4977 11.1792 12.6958 11.3773 12.6958 11.6216V14.8444H16.25V8.06746C16.25 7.82309 16.0519 7.625 15.8075 7.625Z" fill="white"/>
|
|
4
|
-
<path opacity="0.4" fill-rule="evenodd" clip-rule="evenodd" d="M9.0308 7.625V11.1792H6.01073C5.81364 11.1792 5.71494 10.9409 5.8543 10.8015L9.0308 7.625ZM13.0735 18.0209C12.9342 18.1603 12.6959 18.0616 12.6959 17.8645V14.8444H16.25L13.0735 18.0209ZM12.4746 11.1792H9.03058V14.4019C9.03058 14.6463 9.22868 14.8444 9.47304 14.8444H12.6958V11.4004C12.6958 11.2782 12.5968 11.1792 12.4746 11.1792Z" fill="#DAD9FF"/>
|
|
5
|
-
</svg>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
import { useIntl } from 'react-intl';
|
|
4
|
-
import { Typography } from '@strapi/design-system/Typography';
|
|
5
|
-
import { Box } from '@strapi/design-system/Box';
|
|
6
|
-
import { getTrad } from '../../utils';
|
|
7
|
-
|
|
8
|
-
const State = ({ isPublished }) => {
|
|
9
|
-
const { formatMessage } = useIntl();
|
|
10
|
-
const content = formatMessage({
|
|
11
|
-
id: getTrad(`containers.List.${isPublished ? 'published' : 'draft'}`),
|
|
12
|
-
});
|
|
13
|
-
const background = isPublished ? 'success100' : 'secondary100';
|
|
14
|
-
const textColor = isPublished ? 'success700' : 'secondary700';
|
|
15
|
-
|
|
16
|
-
return (
|
|
17
|
-
<Box
|
|
18
|
-
background={background}
|
|
19
|
-
hasRadius
|
|
20
|
-
paddingTop={1}
|
|
21
|
-
paddingBottom={1}
|
|
22
|
-
paddingLeft={2}
|
|
23
|
-
paddingRight={2}
|
|
24
|
-
style={{ width: 'fit-content' }}
|
|
25
|
-
>
|
|
26
|
-
<Typography fontWeight="bold" textColor={textColor}>
|
|
27
|
-
{content}
|
|
28
|
-
</Typography>
|
|
29
|
-
</Box>
|
|
30
|
-
);
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
State.propTypes = {
|
|
34
|
-
isPublished: PropTypes.bool.isRequired,
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
export default State;
|
package/admin/src/favicon.ico
DELETED
|
Binary file
|
|
Binary file
|
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[1856],{11856:(Y,un,N)=>{"use strict";Y.exports=N(34796)},34796:function(Y,un,N){(function(en,$){Y.exports=$(N(32735),N(19615))})(this,function(en,$){return function(r){var f={};function e(i){if(f[i])return f[i].exports;var o=f[i]={i,l:!1,exports:{}};return r[i].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=r,e.c=f,e.d=function(i,o,p){e.o(i,o)||Object.defineProperty(i,o,{enumerable:!0,get:p})},e.r=function(i){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},e.t=function(i,o){if(1&o&&(i=e(i)),8&o||4&o&&typeof i=="object"&&i&&i.__esModule)return i;var p=Object.create(null);if(e.r(p),Object.defineProperty(p,"default",{enumerable:!0,value:i}),2&o&&typeof i!="string")for(var c in i)e.d(p,c,function(d){return i[d]}.bind(null,c));return p},e.n=function(i){var o=i&&i.__esModule?function(){return i.default}:function(){return i};return e.d(o,"a",o),o},e.o=function(i,o){return Object.prototype.hasOwnProperty.call(i,o)},e.p="",e(e.s=95)}({0:function(r,f,e){r.exports=e(19)()},1:function(r,f){r.exports=en},10:function(r,f,e){var i=e(25),o=e(26),p=e(22),c=e(27);r.exports=function(d,a){return i(d)||o(d,a)||p(d,a)||c()},r.exports.default=r.exports,r.exports.__esModule=!0},13:function(r,f){function e(i){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?(r.exports=e=function(o){return typeof o},r.exports.default=r.exports,r.exports.__esModule=!0):(r.exports=e=function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},r.exports.default=r.exports,r.exports.__esModule=!0),e(i)}r.exports=e,r.exports.default=r.exports,r.exports.__esModule=!0},19:function(r,f,e){"use strict";var i=e(20);function o(){}function p(){}p.resetWarningCache=o,r.exports=function(){function c(b,g,S,u,l,w){if(w!==i){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}}function d(){return c}c.isRequired=c;var a={array:c,bool:c,func:c,number:c,object:c,string:c,symbol:c,any:c,arrayOf:d,element:c,elementType:c,instanceOf:d,node:c,objectOf:d,oneOf:d,oneOfType:d,shape:d,exact:d,checkPropTypes:p,resetWarningCache:o};return a.PropTypes=a,a}},2:function(r,f){r.exports=$},20:function(r,f,e){"use strict";r.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},21:function(r,f){r.exports=function(e,i){(i==null||i>e.length)&&(i=e.length);for(var o=0,p=new Array(i);o<i;o++)p[o]=e[o];return p},r.exports.default=r.exports,r.exports.__esModule=!0},22:function(r,f,e){var i=e(21);r.exports=function(o,p){if(o){if(typeof o=="string")return i(o,p);var c=Object.prototype.toString.call(o).slice(8,-1);return c==="Object"&&o.constructor&&(c=o.constructor.name),c==="Map"||c==="Set"?Array.from(o):c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?i(o,p):void 0}},r.exports.default=r.exports,r.exports.__esModule=!0},24:function(r,f){r.exports=function(e,i){if(e==null)return{};var o,p,c={},d=Object.keys(e);for(p=0;p<d.length;p++)o=d[p],i.indexOf(o)>=0||(c[o]=e[o]);return c},r.exports.default=r.exports,r.exports.__esModule=!0},25:function(r,f){r.exports=function(e){if(Array.isArray(e))return e},r.exports.default=r.exports,r.exports.__esModule=!0},26:function(r,f){r.exports=function(e,i){var o=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(o!=null){var p,c,d=[],a=!0,b=!1;try{for(o=o.call(e);!(a=(p=o.next()).done)&&(d.push(p.value),!i||d.length!==i);a=!0);}catch(g){b=!0,c=g}finally{try{a||o.return==null||o.return()}finally{if(b)throw c}}return d}},r.exports.default=r.exports,r.exports.__esModule=!0},27:function(r,f){r.exports=function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)},r.exports.default=r.exports,r.exports.__esModule=!0},3:function(r,f){r.exports=function(e,i){return i||(i=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(i)}}))},r.exports.default=r.exports,r.exports.__esModule=!0},4:function(r,f,e){var i=e(24);r.exports=function(o,p){if(o==null)return{};var c,d,a=i(o,p);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(o);for(d=0;d<b.length;d++)c=b[d],p.indexOf(c)>=0||Object.prototype.propertyIsEnumerable.call(o,c)&&(a[c]=o[c])}return a},r.exports.default=r.exports,r.exports.__esModule=!0},46:function(r,f,e){"use strict";e.r(f),e.d(f,"Grid",function(){return E}),e.d(f,"GridItem",function(){return I});var i,o=e(5),p=e.n(o),c=e(4),d=e.n(c),a=e(3),b=e.n(a),g=e(1),S=e.n(g),u=e(2),l=e.n(u),w=e(0),m=e.n(w),O=Object(g.createContext)({gap:0,gridCols:12}),T=e(6),n=e(7),t=["gap","gridCols"],s=l()(T.Box)(i||(i=b()([`
|
|
3
|
-
display: grid;
|
|
4
|
-
grid-template-columns: repeat(`,`, 1fr);
|
|
5
|
-
`,`
|
|
6
|
-
`])),function(v){return v.gridCols},function(v){var A=v.theme,j=v.gap;return Object(n.a)("gap",j,A)}),E=function(v){var A=v.gap,j=v.gridCols,W=d()(v,t);return S.a.createElement(O.Provider,{value:{gap:A,gridCols:j}},S.a.createElement(s,p()({gap:A,gridCols:j},W)))};E.defaultProps={gap:0,gridCols:12},E.propTypes={gap:m.a.oneOfType([m.a.number,m.a.arrayOf(m.a.number)]),gridCols:m.a.number};var R,q=["col","xs","s"],G=l.a.div(R||(R=b()([`
|
|
7
|
-
grid-column: span `,`;
|
|
8
|
-
max-width: 100%;
|
|
9
|
-
|
|
10
|
-
`,` {
|
|
11
|
-
grid-column: span `,`;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
`,` {
|
|
15
|
-
grid-column: span `,`;
|
|
16
|
-
}
|
|
17
|
-
`])),function(v){return v.col},function(v){return v.theme.mediaQueries.tablet},function(v){return v.s},function(v){return v.theme.mediaQueries.mobile},function(v){return v.xs}),I=function(v){var A=v.col,j=v.xs,W=v.s,L=d()(v,q),k=Object(g.useContext)(O),J=k.gap,K=k.gridCols;return S.a.createElement(G,{gap:J,gridCols:K,col:A,xs:j,s:W},S.a.createElement(T.Box,L))};I.defaultProps={col:void 0,s:void 0,xs:void 0},I.propTypes={col:m.a.number,s:m.a.number,xs:m.a.number}},5:function(r,f){function e(){return r.exports=e=Object.assign||function(i){for(var o=1;o<arguments.length;o++){var p=arguments[o];for(var c in p)Object.prototype.hasOwnProperty.call(p,c)&&(i[c]=p[c])}return i},r.exports.default=r.exports,r.exports.__esModule=!0,e.apply(this,arguments)}r.exports=e,r.exports.default=r.exports,r.exports.__esModule=!0},6:function(r,f,e){"use strict";e.r(f),e.d(f,"Box",function(){return T});var i,o=e(3),p=e.n(o),c=e(2),d=e.n(c),a=e(7),b=e(1),g=e.n(b),S=e(0),u=e.n(S),l=function(n){return g.a.createElement("div",n)},w={background:void 0,borderColor:void 0,color:void 0,hiddenS:!1,hiddenXS:!1,padding:void 0,paddingTop:void 0,paddingRight:void 0,paddingBottom:void 0,paddingLeft:void 0,hasRadius:!1,shadow:void 0,children:null,shrink:void 0,grow:void 0,basis:void 0,flex:void 0,_hover:function(){}},m={_hover:u.a.func,background:u.a.string,basis:u.a.oneOfType([u.a.string,u.a.string]),borderColor:u.a.string,children:u.a.oneOfType([u.a.node,u.a.string]),color:u.a.string,flex:u.a.oneOfType([u.a.string,u.a.string]),grow:u.a.oneOfType([u.a.string,u.a.string]),hasRadius:u.a.bool,hiddenS:u.a.bool,hiddenXS:u.a.bool,padding:u.a.oneOfType([u.a.number,u.a.arrayOf(u.a.number)]),paddingBottom:u.a.oneOfType([u.a.number,u.a.arrayOf(u.a.number)]),paddingLeft:u.a.oneOfType([u.a.number,u.a.arrayOf(u.a.number)]),paddingRight:u.a.oneOfType([u.a.number,u.a.arrayOf(u.a.number)]),paddingTop:u.a.oneOfType([u.a.number,u.a.arrayOf(u.a.number)]),shadow:u.a.string,shrink:u.a.oneOfType([u.a.string,u.a.string])};l.defaultProps=w,l.propTypes=m;var O={color:!0},T=d.a.div.withConfig({shouldForwardProp:function(n,t){return!O[n]&&t(n)}})(i||(i=p()([`
|
|
18
|
-
// Font
|
|
19
|
-
font-size: `,`;
|
|
20
|
-
|
|
21
|
-
// Colors
|
|
22
|
-
background: `,`;
|
|
23
|
-
color: `,`;
|
|
24
|
-
|
|
25
|
-
// Spaces
|
|
26
|
-
`,`
|
|
27
|
-
`,`
|
|
28
|
-
`,`
|
|
29
|
-
`,`
|
|
30
|
-
`,`
|
|
31
|
-
`,`
|
|
32
|
-
`,`
|
|
33
|
-
`,`
|
|
34
|
-
`,`
|
|
35
|
-
|
|
36
|
-
// Responsive hiding
|
|
37
|
-
`,`
|
|
38
|
-
`,`
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
// Borders
|
|
42
|
-
border-radius: `,`;
|
|
43
|
-
border-style: `,`;
|
|
44
|
-
border-width: `,`;
|
|
45
|
-
border-color: `,`;
|
|
46
|
-
border: `,`;
|
|
47
|
-
|
|
48
|
-
// Shadows
|
|
49
|
-
box-shadow: `,`;
|
|
50
|
-
|
|
51
|
-
// Handlers
|
|
52
|
-
pointer-events: `,`;
|
|
53
|
-
&:hover {
|
|
54
|
-
`,`
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
// Display
|
|
58
|
-
display: `,`;
|
|
59
|
-
|
|
60
|
-
// Position
|
|
61
|
-
position: `,`;
|
|
62
|
-
left: `,`;
|
|
63
|
-
right: `,`;
|
|
64
|
-
top: `,`;
|
|
65
|
-
bottom: `,`;
|
|
66
|
-
z-index: `,`;
|
|
67
|
-
overflow: `,`;
|
|
68
|
-
cursor: `,`;
|
|
69
|
-
|
|
70
|
-
// Size
|
|
71
|
-
width: `,`;
|
|
72
|
-
max-width: `,`;
|
|
73
|
-
min-width: `,`;
|
|
74
|
-
height: `,`;
|
|
75
|
-
max-height: `,`;
|
|
76
|
-
min-height: `,`;
|
|
77
|
-
|
|
78
|
-
// Animation
|
|
79
|
-
transition: `,`;
|
|
80
|
-
transform: `,`;
|
|
81
|
-
animation: `,`;
|
|
82
|
-
|
|
83
|
-
//Flexbox children props
|
|
84
|
-
flex-shrink: `,`;
|
|
85
|
-
flex-grow: `,`;
|
|
86
|
-
flex-basis: `,`;
|
|
87
|
-
flex: `,`;
|
|
88
|
-
|
|
89
|
-
// Text
|
|
90
|
-
text-align: `,`;
|
|
91
|
-
text-transform: `,`;
|
|
92
|
-
line-height: `,`;
|
|
93
|
-
|
|
94
|
-
// Cursor
|
|
95
|
-
cursor: `,`;
|
|
96
|
-
`])),function(n){var t=n.fontSize;return n.theme.fontSizes[t]||t},function(n){var t=n.theme,s=n.background;return t.colors[s]},function(n){var t=n.theme,s=n.color;return t.colors[s]},function(n){var t=n.theme,s=n.padding;return Object(a.a)("padding",s,t)},function(n){var t=n.theme,s=n.paddingTop;return Object(a.a)("padding-top",s,t)},function(n){var t=n.theme,s=n.paddingRight;return Object(a.a)("padding-right",s,t)},function(n){var t=n.theme,s=n.paddingBottom;return Object(a.a)("padding-bottom",s,t)},function(n){var t=n.theme,s=n.paddingLeft;return Object(a.a)("padding-left",s,t)},function(n){var t=n.theme,s=n.marginLeft;return Object(a.a)("margin-left",s,t)},function(n){var t=n.theme,s=n.marginRight;return Object(a.a)("margin-right",s,t)},function(n){var t=n.theme,s=n.marginTop;return Object(a.a)("margin-top",s,t)},function(n){var t=n.theme,s=n.marginBottom;return Object(a.a)("margin-bottom",s,t)},function(n){var t=n.theme;return n.hiddenS?"".concat(t.mediaQueries.tablet," { display: none; }"):void 0},function(n){var t=n.theme;return n.hiddenXS?"".concat(t.mediaQueries.mobile," { display: none; }"):void 0},function(n){var t=n.theme,s=n.hasRadius,E=n.borderRadius;return s?t.borderRadius:E},function(n){return n.borderStyle},function(n){return n.borderWidth},function(n){var t=n.borderColor;return n.theme.colors[t]},function(n){var t=n.theme,s=n.borderColor,E=n.borderStyle,R=n.borderWidth;if(s&&!E&&!R)return"1px solid ".concat(t.colors[s])},function(n){var t=n.theme,s=n.shadow;return t.shadows[s]},function(n){return n.pointerEvents},function(n){var t=n._hover,s=n.theme;return t?t(s):void 0},function(n){return n.display},function(n){return n.position},function(n){var t=n.left;return n.theme.spaces[t]||t},function(n){var t=n.right;return n.theme.spaces[t]||t},function(n){var t=n.top;return n.theme.spaces[t]||t},function(n){var t=n.bottom;return n.theme.spaces[t]||t},function(n){return n.zIndex},function(n){return n.overflow},function(n){return n.cursor},function(n){var t=n.width;return n.theme.spaces[t]||t},function(n){var t=n.maxWidth;return n.theme.spaces[t]||t},function(n){var t=n.minWidth;return n.theme.spaces[t]||t},function(n){var t=n.height;return n.theme.spaces[t]||t},function(n){var t=n.maxHeight;return n.theme.spaces[t]||t},function(n){var t=n.minHeight;return n.theme.spaces[t]||t},function(n){return n.transition},function(n){return n.transform},function(n){return n.animation},function(n){return n.shrink},function(n){return n.grow},function(n){return n.basis},function(n){return n.flex},function(n){return n.textAlign},function(n){return n.textTransform},function(n){return n.lineHeight},function(n){return n.cursor});T.defaultProps=w,T.propTypes=m},7:function(r,f,e){"use strict";var i=e(10),o=e.n(i),p=e(13),c=e.n(p);f.a=function(d,a,b){var g=a;if(Array.isArray(a)||c()(a)!=="object"||(g=[a==null?void 0:a.desktop,a==null?void 0:a.tablet,a==null?void 0:a.mobile]),g!==void 0){if(Array.isArray(g)){var S=g,u=o()(S,3),l=u[0],w=u[1],m=u[2],O="".concat(d,": ").concat(b.spaces[l],";");return w!==void 0&&(O+="".concat(b.mediaQueries.tablet,`{
|
|
97
|
-
`).concat(d,": ").concat(b.spaces[w],`;
|
|
98
|
-
}`)),m!==void 0&&(O+="".concat(b.mediaQueries.mobile,`{
|
|
99
|
-
`).concat(d,": ").concat(b.spaces[m],`;
|
|
100
|
-
}`)),O}var T=b.spaces[g]||g;return"".concat(d,": ").concat(T,";")}}},8:function(r,f,e){"use strict";e.r(f),e.d(f,"Typography",function(){return T});var i,o=e(3),p=e.n(o),c=e(2),d=e.n(c),a=["alpha","beta","delta","epsilon","omega","pi","sigma"],b=e(1),g=e.n(b),S=e(0),u=e.n(S),l=function(n){return g.a.createElement("div",n)},w={ellipsis:!1,fontWeight:void 0,fontSize:void 0,lineHeight:void 0,textColor:void 0,textTransform:void 0,variant:"omega"},m={ellipsis:u.a.bool,fontSize:u.a.oneOfType([u.a.number,u.a.string]),fontWeight:u.a.string,lineHeight:u.a.oneOfType([u.a.number,u.a.string]),textColor:u.a.string,textTransform:u.a.string,variant:u.a.oneOf(a)};l.defaultProps=w,l.propTypes=m;var O={fontSize:!0,fontWeight:!0},T=d.a.span.withConfig({shouldForwardProp:function(n,t){return!O[n]&&t(n)}})(i||(i=p()([`
|
|
101
|
-
font-weight: `,`;
|
|
102
|
-
font-size: `,`;
|
|
103
|
-
line-height: `,`;
|
|
104
|
-
color: `,`;
|
|
105
|
-
text-transform: `,`;
|
|
106
|
-
`,`
|
|
107
|
-
`,`
|
|
108
|
-
`])),function(n){var t=n.theme,s=n.fontWeight;return t.fontWeights[s]},function(n){var t=n.theme,s=n.fontSize;return t.fontSizes[s]},function(n){var t=n.theme,s=n.lineHeight;return t.lineHeights[s]},function(n){var t=n.theme,s=n.textColor;return t.colors[s||"neutral800"]},function(n){return n.textTransform},function(n){return n.ellipsis&&`
|
|
109
|
-
display: block;
|
|
110
|
-
white-space: nowrap;
|
|
111
|
-
overflow: hidden;
|
|
112
|
-
text-overflow: ellipsis;
|
|
113
|
-
`},function(n){var t=n.variant,s=n.theme;switch(t){case"alpha":return`
|
|
114
|
-
font-weight: `.concat(s.fontWeights.bold,`;
|
|
115
|
-
font-size: `).concat(s.fontSizes[5],`;
|
|
116
|
-
line-height: `).concat(s.lineHeights[2],`;
|
|
117
|
-
`);case"beta":return`
|
|
118
|
-
font-weight: `.concat(s.fontWeights.bold,`;
|
|
119
|
-
font-size: `).concat(s.fontSizes[4],`;
|
|
120
|
-
line-height: `).concat(s.lineHeights[1],`;
|
|
121
|
-
`);case"delta":return`
|
|
122
|
-
font-weight: `.concat(s.fontWeights.semiBold,`;
|
|
123
|
-
font-size: `).concat(s.fontSizes[3],`;
|
|
124
|
-
line-height: `).concat(s.lineHeights[2],`;
|
|
125
|
-
`);case"epsilon":return`
|
|
126
|
-
font-size: `.concat(s.fontSizes[3],`;
|
|
127
|
-
line-height: `).concat(s.lineHeights[6],`;
|
|
128
|
-
`);case"omega":return`
|
|
129
|
-
font-size: `.concat(s.fontSizes[2],`;
|
|
130
|
-
line-height: `).concat(s.lineHeights[4],`;
|
|
131
|
-
`);case"pi":return`
|
|
132
|
-
font-size: `.concat(s.fontSizes[1],`;
|
|
133
|
-
line-height: `).concat(s.lineHeights[3],`;
|
|
134
|
-
`);case"sigma":return`
|
|
135
|
-
font-weight: `.concat(s.fontWeights.bold,`;
|
|
136
|
-
font-size: `).concat(s.fontSizes[0],`;
|
|
137
|
-
line-height: `).concat(s.lineHeights[5],`;
|
|
138
|
-
text-transform: uppercase;
|
|
139
|
-
`);default:return`
|
|
140
|
-
font-size: `.concat(s.fontSizes[2],`;
|
|
141
|
-
`)}});T.defaultProps=w,T.propTypes=m},9:function(r,f,e){"use strict";e.r(f),e.d(f,"Flex",function(){return n});var i,o=e(3),p=e.n(o),c=e(2),d=e.n(c),a=e(6),b=e(7),g=e(1),S=e.n(g),u=e(0),l=e.n(u),w=function(t){return S.a.createElement("div",t)},m={alignItems:"center",basis:void 0,direction:"row",gap:void 0,inline:!1,justifyContent:void 0,reverse:!1,wrap:void 0},O={alignItems:l.a.string,basis:l.a.oneOfType([l.a.string,l.a.number]),direction:l.a.string,gap:l.a.oneOfType([l.a.shape({desktop:l.a.number,mobile:l.a.number,tablet:l.a.number}),l.a.number,l.a.arrayOf(l.a.number),l.a.string]),inline:l.a.bool,justifyContent:l.a.string,reverse:l.a.bool,shrink:l.a.number,wrap:l.a.string};w.defaultProps=m,w.propTypes=O;var T={direction:!0},n=d()(a.Box).withConfig({shouldForwardProp:function(t,s){return!T[t]&&s(t)}})(i||(i=p()([`
|
|
142
|
-
align-items: `,`;
|
|
143
|
-
display: `,`;
|
|
144
|
-
flex-direction: `,`;
|
|
145
|
-
flex-shrink: `,`;
|
|
146
|
-
flex-wrap: `,`;
|
|
147
|
-
`,`};
|
|
148
|
-
justify-content: `,`;
|
|
149
|
-
`])),function(t){return t.alignItems},function(t){return t.inline?"inline-flex":"flex"},function(t){return t.direction},function(t){return t.shrink},function(t){return t.wrap},function(t){var s=t.gap,E=t.theme;return Object(b.a)("gap",s,E)},function(t){return t.justifyContent});n.defaultProps=m,n.propTypes=O},95:function(r,f,e){"use strict";e.r(f),e.d(f,"Layout",function(){return O}),e.d(f,"ActionLayout",function(){return R}),e.d(f,"ContentLayout",function(){return q}),e.d(f,"HeaderLayout",function(){return Q}),e.d(f,"BaseHeaderLayout",function(){return H}),e.d(f,"TwoColsLayout",function(){return rn}),e.d(f,"GridLayout",function(){return on});var i,o,p=e(3),c=e.n(p),d=e(1),a=e.n(d),b=e(0),g=e.n(b),S=e(2),u=e.n(S),l=e(6),w=u()(l.Box)(i||(i=c()([`
|
|
150
|
-
display: grid;
|
|
151
|
-
grid-template-columns: `,`;
|
|
152
|
-
`])),function(h){return h.hasSideNav?"auto 1fr":"1fr"}),m=u()(l.Box)(o||(o=c()([`
|
|
153
|
-
overflow-x: hidden;
|
|
154
|
-
`]))),O=function(h){var y=h.sideNav,x=h.children;return a.a.createElement(w,{hasSideNav:Boolean(y)},y,a.a.createElement(m,{paddingBottom:10},x))};O.defaultProps={sideNav:void 0},O.propTypes={children:g.a.node.isRequired,sideNav:g.a.node};var T,n,t=e(9),s=u()(t.Flex)(T||(T=c()([`
|
|
155
|
-
& > * + * {
|
|
156
|
-
margin-left: `,`;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
margin-left: `,`;
|
|
160
|
-
`])),function(h){return h.theme.spaces[2]},function(h){return h.pullRight?"auto":void 0}),E=u()(s)(n||(n=c()([`
|
|
161
|
-
flex-shrink: 0;
|
|
162
|
-
`]))),R=function(h){var y=h.startActions,x=h.endActions;return y||x?a.a.createElement(l.Box,{paddingLeft:10,paddingRight:10},a.a.createElement(l.Box,{paddingBottom:4},a.a.createElement(t.Flex,{justifyContent:"space-between",alignItems:"flex-start"},y&&a.a.createElement(s,{wrap:"wrap"},y),x&&a.a.createElement(E,{pullRight:!0},x)))):null};R.defaultProps={endActions:void 0,startActions:void 0},R.propTypes={endActions:g.a.node,startActions:g.a.node};var q=function(h){var y=h.children;return a.a.createElement(l.Box,{paddingLeft:10,paddingRight:10},y)};q.propTypes={children:g.a.node.isRequired};var G,I=e(4),v=e.n(I),A=e(5),j=e.n(A),W=e(10),L=e.n(W),k=e(8),J=["navigationAction","primaryAction","secondaryAction","subtitle","title","sticky","width"],K=function(){var h,y,x=Object(d.useRef)(null),B=Object(d.useState)(null),C=L()(B,2),_=C[0],F=C[1],nn=function(M){var P=Object(d.useRef)(null),cn=Object(d.useState)(!0),an=L()(cn,2),dn=an[0],ln=an[1],fn=function(V){var X=L()(V,1)[0];ln(X.isIntersecting)};return Object(d.useEffect)(function(){var V=P.current,X=new IntersectionObserver(fn,M);return V&&X.observe(P.current),function(){V&&X.disconnect()}},[P,M]),[P,dn]}({root:null,rootMargin:"0px",threshold:0}),D=L()(nn,2),z=D[0],U=D[1];return h=z,y=function(){z.current&&F(z.current.getBoundingClientRect())},Object(d.useLayoutEffect)(function(){var M=new ResizeObserver(y);return Array.isArray(h)?h.map(function(P){P.current&&M.observe(P.current)}):h.current&&M.observe(h.current),function(){M.disconnect()}},[]),Object(d.useEffect)(function(){x.current&&F(x.current.getBoundingClientRect())},[x]),{containerRef:z,isVisible:U,baseHeaderLayoutRef:x,headerSize:_}},Q=function(h){var y=K(),x=y.containerRef,B=y.isVisible,C=y.baseHeaderLayoutRef,_=y.headerSize;return a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{style:{height:_==null?void 0:_.height},ref:x},B&&a.a.createElement(H,j()({ref:C},h))),!B&&a.a.createElement(H,j()({},h,{sticky:!0,width:_==null?void 0:_.width})))};Q.displayName="HeaderLayout";var sn=u()(l.Box)(G||(G=c()([`
|
|
163
|
-
position: fixed;
|
|
164
|
-
top: 0;
|
|
165
|
-
right: 0;
|
|
166
|
-
width: `,`px;
|
|
167
|
-
z-index: 4;
|
|
168
|
-
box-shadow: `,`;
|
|
169
|
-
`])),function(h){return h.width},function(h){return h.theme.shadows.tableShadow}),H=a.a.forwardRef(function(h,y){var x=h.navigationAction,B=h.primaryAction,C=h.secondaryAction,_=h.subtitle,F=h.title,nn=h.sticky,D=h.width,z=v()(h,J),U=typeof _=="string";return nn?a.a.createElement(sn,{paddingLeft:6,paddingRight:6,paddingTop:3,paddingBottom:3,background:"neutral0",width:D,"data-strapi-header-sticky":!0},a.a.createElement(t.Flex,{justifyContent:"space-between"},a.a.createElement(t.Flex,null,x&&a.a.createElement(l.Box,{paddingRight:3},x),a.a.createElement(l.Box,null,a.a.createElement(k.Typography,j()({variant:"beta",as:"h1"},z),F),U?a.a.createElement(k.Typography,{variant:"pi",textColor:"neutral600"},_):_),C?a.a.createElement(l.Box,{paddingLeft:4},C):null),a.a.createElement(t.Flex,null,B?a.a.createElement(l.Box,{paddingLeft:2},B):void 0))):a.a.createElement(l.Box,{ref:y,paddingLeft:10,paddingRight:10,paddingBottom:8,paddingTop:x?6:8,background:"neutral100","data-strapi-header":!0},x?a.a.createElement(l.Box,{paddingBottom:2},x):null,a.a.createElement(t.Flex,{justifyContent:"space-between"},a.a.createElement(t.Flex,null,a.a.createElement(k.Typography,j()({as:"h1",variant:"alpha"},z),F),C?a.a.createElement(l.Box,{paddingLeft:4},C):null),B),U?a.a.createElement(k.Typography,{variant:"epsilon",textColor:"neutral600",as:"p"},_):_)});H.displayName="BaseHeaderLayout",H.defaultProps={navigationAction:void 0,primaryAction:void 0,secondaryAction:void 0,subtitle:void 0,sticky:!1,width:void 0},H.propTypes={navigationAction:g.a.node,primaryAction:g.a.node,secondaryAction:g.a.node,sticky:g.a.bool,subtitle:g.a.oneOfType([g.a.string,g.a.node]),title:g.a.string.isRequired,width:g.a.number},Q.defaultProps={navigationAction:void 0,primaryAction:void 0,secondaryAction:void 0,subtitle:void 0},Q.propTypes={navigationAction:g.a.node,primaryAction:g.a.node,secondaryAction:g.a.node,subtitle:g.a.oneOfType([g.a.string,g.a.node]),title:g.a.string.isRequired};var tn,Z=e(46),rn=function(h){var y=h.startCol,x=h.endCol;return a.a.createElement(Z.Grid,{gap:4},a.a.createElement(Z.GridItem,{col:9,s:12},a.a.createElement(l.Box,{hasRadius:!0,background:"neutral0",shadow:"tableShadow"},y)),a.a.createElement(Z.GridItem,{col:3,s:12},a.a.createElement(l.Box,{hasRadius:!0,background:"neutral0",shadow:"tableShadow"},x)))};rn.propTypes={endCol:g.a.node.isRequired,startCol:g.a.node.isRequired};var on=u.a.div(tn||(tn=c()([`
|
|
170
|
-
display: grid;
|
|
171
|
-
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
|
172
|
-
grid-gap: `,`;
|
|
173
|
-
`])),function(h){return h.theme.spaces[4]});on.propTypes={children:g.a.node.isRequired}}})})}}]);
|