@strapi/admin 4.3.8 → 4.3.9
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 +2 -0
- package/admin/src/components/AuthenticatedApp/index.js +2 -2
- package/admin/src/components/LanguageProvider/index.js +1 -0
- package/admin/src/components/ThemeToggleProvider/index.js +21 -10
- package/admin/src/content-manager/components/DynamicTable/index.js +2 -2
- package/admin/src/content-manager/components/InputJSON/index.js +2 -0
- package/admin/src/pages/AuthPage/utils/forms.js +2 -2
- package/admin/src/pages/SettingsPage/pages/Users/ListPage/ModalForm/utils/schema.js +1 -1
- package/admin/src/pages/SettingsPage/pages/Users/utils/validations/users/profile.js +2 -2
- package/admin/src/translations/fr.json +32 -0
- package/admin/src/translations/zh-Hans.json +0 -1
- package/build/2077.c935ee42.chunk.js +205 -0
- package/build/{4715.3f6cac0a.chunk.js → 4715.58cd558f.chunk.js} +32 -31
- package/build/4982.05eda880.chunk.js +324 -0
- package/build/{7866.c793a31d.chunk.js → 7866.1201afbd.chunk.js} +2 -2
- package/build/{8773.eccaa5f3.chunk.js → 8773.c06c24c0.chunk.js} +2 -2
- package/build/{Admin-authenticatedApp.bfcfab14.chunk.js → Admin-authenticatedApp.18341333.chunk.js} +6 -6
- package/build/{Admin_profilePage.8617313a.chunk.js → Admin_profilePage.9d50ac44.chunk.js} +4 -4
- package/build/{admin-app.05edc328.chunk.js → admin-app.4f7618a9.chunk.js} +7 -7
- package/build/{admin-edit-users.5bebf473.chunk.js → admin-edit-users.c585212f.chunk.js} +2 -2
- package/build/{admin-users.dccd5f4c.chunk.js → admin-users.97a08630.chunk.js} +1 -1
- package/build/{content-manager.fb5ee865.chunk.js → content-manager.94730292.chunk.js} +19 -19
- package/build/content-type-builder.684df7a4.chunk.js +142 -0
- package/build/{fr-json.6d5a7e14.chunk.js → fr-json.4ed1fc2c.chunk.js} +1 -1
- package/build/index.html +1 -1
- package/build/{main.e73468bf.js → main.c810738a.js} +1452 -1436
- package/build/{runtime~main.518f0488.js → runtime~main.f9882bd5.js} +1 -1
- package/build/{zh-Hans-json.77a42bc5.chunk.js → zh-Hans-json.9c99f8d4.chunk.js} +1 -1
- package/package.json +9 -9
- package/scripts/build.js +2 -4
- package/server/services/permission/permissions-manager/query-builers.js +3 -2
- package/server/services/permission/queries.js +1 -1
- package/server/validation/common-functions/check-fields-are-correctly-nested.js +1 -1
- package/server/validation/common-validators.js +1 -1
- package/build/2077.61cebc93.chunk.js +0 -195
- package/build/4982.c6f88c5d.chunk.js +0 -314
- package/build/content-type-builder.42cecba9.chunk.js +0 -142
package/admin/src/StrapiApp.js
CHANGED
|
@@ -22,6 +22,7 @@ import {
|
|
|
22
22
|
} from './exposedHooks';
|
|
23
23
|
import injectionZones from './injectionZones';
|
|
24
24
|
import favicon from './favicon.ico';
|
|
25
|
+
import localStorageKey from './components/LanguageProvider/utils/localStorageKey';
|
|
25
26
|
|
|
26
27
|
class StrapiApp {
|
|
27
28
|
constructor({ adminConfig, appPlugins, library, middlewares, reducers }) {
|
|
@@ -457,6 +458,7 @@ class StrapiApp {
|
|
|
457
458
|
href: this.configurations.head.favicon,
|
|
458
459
|
},
|
|
459
460
|
]}
|
|
461
|
+
htmlAttributes={{ lang: localStorage.getItem(localStorageKey) || 'en' }}
|
|
460
462
|
/>
|
|
461
463
|
<BrowserRouter basename={basename}>
|
|
462
464
|
<App store={store} />
|
|
@@ -65,11 +65,11 @@ const AuthenticatedApp = () => {
|
|
|
65
65
|
if (userRoles) {
|
|
66
66
|
const isUserSuperAdmin = userRoles.find(({ code }) => code === 'strapi-super-admin');
|
|
67
67
|
|
|
68
|
-
if (isUserSuperAdmin) {
|
|
68
|
+
if (isUserSuperAdmin && appInfos?.autoReload) {
|
|
69
69
|
setGuidedTourVisibilityRef.current(true);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
}, [userRoles]);
|
|
72
|
+
}, [userRoles, appInfos]);
|
|
73
73
|
|
|
74
74
|
// We don't need to wait for the release query to be fetched before rendering the plugins
|
|
75
75
|
// however, we need the appInfos and the permissions
|
|
@@ -21,6 +21,7 @@ const LanguageProvider = ({ children, localeNames, messages }) => {
|
|
|
21
21
|
useEffect(() => {
|
|
22
22
|
// Set user language in local storage.
|
|
23
23
|
window.localStorage.setItem(localStorageKey, locale);
|
|
24
|
+
document.documentElement.setAttribute('lang', locale);
|
|
24
25
|
}, [locale]);
|
|
25
26
|
|
|
26
27
|
const changeLocale = (locale) => {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import React, { useState } from 'react';
|
|
7
|
+
import React, { useState, useMemo, useCallback } from 'react';
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
9
9
|
import { ThemeToggleContext } from '../../contexts';
|
|
10
10
|
|
|
@@ -14,22 +14,33 @@ const getDefaultTheme = () => {
|
|
|
14
14
|
const browserTheme = window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';
|
|
15
15
|
const persistedTheme = localStorage.getItem(THEME_KEY);
|
|
16
16
|
|
|
17
|
+
if (!persistedTheme) {
|
|
18
|
+
localStorage.setItem(THEME_KEY, browserTheme);
|
|
19
|
+
}
|
|
20
|
+
|
|
17
21
|
return persistedTheme || browserTheme;
|
|
18
22
|
};
|
|
19
23
|
|
|
20
24
|
const ThemeToggleProvider = ({ children, themes }) => {
|
|
21
25
|
const [currentTheme, setCurrentTheme] = useState(getDefaultTheme());
|
|
22
26
|
|
|
23
|
-
const handleChangeTheme = (
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
<ThemeToggleContext.Provider value={{ currentTheme, onChangeTheme: handleChangeTheme, themes }}>
|
|
30
|
-
{children}
|
|
31
|
-
</ThemeToggleContext.Provider>
|
|
27
|
+
const handleChangeTheme = useCallback(
|
|
28
|
+
(nextTheme) => {
|
|
29
|
+
setCurrentTheme(nextTheme);
|
|
30
|
+
localStorage.setItem(THEME_KEY, nextTheme);
|
|
31
|
+
},
|
|
32
|
+
[setCurrentTheme]
|
|
32
33
|
);
|
|
34
|
+
|
|
35
|
+
const themeValues = useMemo(() => {
|
|
36
|
+
return {
|
|
37
|
+
currentTheme,
|
|
38
|
+
onChangeTheme: handleChangeTheme,
|
|
39
|
+
themes,
|
|
40
|
+
};
|
|
41
|
+
}, [currentTheme, handleChangeTheme, themes]);
|
|
42
|
+
|
|
43
|
+
return <ThemeToggleContext.Provider value={themeValues}>{children}</ThemeToggleContext.Provider>;
|
|
33
44
|
};
|
|
34
45
|
|
|
35
46
|
ThemeToggleProvider.propTypes = {
|
|
@@ -47,7 +47,7 @@ const DynamicTable = ({
|
|
|
47
47
|
...metadatas,
|
|
48
48
|
label: formatMessage({
|
|
49
49
|
id: getTrad(`containers.ListPage.table-headers.${header.name}`),
|
|
50
|
-
defaultMessage:
|
|
50
|
+
defaultMessage: metadatas.label,
|
|
51
51
|
}),
|
|
52
52
|
},
|
|
53
53
|
name: sortFieldValue,
|
|
@@ -60,7 +60,7 @@ const DynamicTable = ({
|
|
|
60
60
|
...metadatas,
|
|
61
61
|
label: formatMessage({
|
|
62
62
|
id: getTrad(`containers.ListPage.table-headers.${header.name}`),
|
|
63
|
-
defaultMessage:
|
|
63
|
+
defaultMessage: metadatas.label,
|
|
64
64
|
}),
|
|
65
65
|
},
|
|
66
66
|
};
|
|
@@ -79,6 +79,8 @@ class InputJSON extends React.Component {
|
|
|
79
79
|
try {
|
|
80
80
|
if (value === null) return this.codeMirror.setValue('');
|
|
81
81
|
|
|
82
|
+
if (value === 0) return this.codeMirror.setValue('0');
|
|
83
|
+
|
|
82
84
|
return this.codeMirror.setValue(value);
|
|
83
85
|
} catch (err) {
|
|
84
86
|
return this.setState({ error: true });
|
|
@@ -52,7 +52,7 @@ const forms = {
|
|
|
52
52
|
fieldsToDisable: ['email'],
|
|
53
53
|
fieldsToOmit: ['userInfo.confirmPassword', 'userInfo.news', 'userInfo.email'],
|
|
54
54
|
schema: yup.object().shape({
|
|
55
|
-
firstname: yup.string().required(translatedErrors.required),
|
|
55
|
+
firstname: yup.string().trim().required(translatedErrors.required),
|
|
56
56
|
lastname: yup.string(),
|
|
57
57
|
password: yup
|
|
58
58
|
.string()
|
|
@@ -76,7 +76,7 @@ const forms = {
|
|
|
76
76
|
fieldsToDisable: [],
|
|
77
77
|
fieldsToOmit: ['confirmPassword', 'news'],
|
|
78
78
|
schema: yup.object().shape({
|
|
79
|
-
firstname: yup.string().required(translatedErrors.required),
|
|
79
|
+
firstname: yup.string().trim().required(translatedErrors.required),
|
|
80
80
|
lastname: yup.string(),
|
|
81
81
|
password: yup
|
|
82
82
|
.string()
|
|
@@ -2,7 +2,7 @@ import * as yup from 'yup';
|
|
|
2
2
|
import { translatedErrors } from '@strapi/helper-plugin';
|
|
3
3
|
|
|
4
4
|
const schema = yup.object().shape({
|
|
5
|
-
firstname: yup.string().required(translatedErrors.required),
|
|
5
|
+
firstname: yup.string().trim().required(translatedErrors.required),
|
|
6
6
|
lastname: yup.string(),
|
|
7
7
|
email: yup.string().email(translatedErrors.email).required(translatedErrors.required),
|
|
8
8
|
roles: yup.array().min(1, translatedErrors.required).required(translatedErrors.required),
|
|
@@ -2,8 +2,8 @@ import * as yup from 'yup';
|
|
|
2
2
|
import { translatedErrors } from '@strapi/helper-plugin';
|
|
3
3
|
|
|
4
4
|
export const commonUserSchema = {
|
|
5
|
-
firstname: yup.
|
|
6
|
-
lastname: yup.
|
|
5
|
+
firstname: yup.string().trim().required(translatedErrors.required),
|
|
6
|
+
lastname: yup.string(),
|
|
7
7
|
email: yup.string().email(translatedErrors.email).lowercase().required(translatedErrors.required),
|
|
8
8
|
username: yup.string().nullable(),
|
|
9
9
|
password: yup
|
|
@@ -588,6 +588,38 @@
|
|
|
588
588
|
"content-manager.success.record.save": "Sauvegardé",
|
|
589
589
|
"content-manager.success.record.unpublish": "Publication annulée",
|
|
590
590
|
"content-manager.utils.data-loaded": "{number, plural, =1 {L'entrée a été chargée} other {Les entrées on été chargées} avec succès",
|
|
591
|
+
"content-manager.apiError.This attribute must be unique": "Le champ {field} doit être unique",
|
|
592
|
+
"form.button.continue": "Continuer",
|
|
593
|
+
"global.search": "Rechercher",
|
|
594
|
+
"global.actions": "Actions",
|
|
595
|
+
"global.back": "Retour",
|
|
596
|
+
"global.cancel": "Annuler",
|
|
597
|
+
"global.change-password": "Modifier le mot de passe",
|
|
598
|
+
"global.content-manager": "Gestion du contenu",
|
|
599
|
+
"global.continue": "Continuer",
|
|
600
|
+
"global.delete": "Supprimer",
|
|
601
|
+
"global.delete-target": "Supprimer {target}",
|
|
602
|
+
"global.description": "Description",
|
|
603
|
+
"global.details": "Détails",
|
|
604
|
+
"global.disabled": "Désactivé",
|
|
605
|
+
"global.documentation": "Documentation",
|
|
606
|
+
"global.enabled": "Activé",
|
|
607
|
+
"global.finish": "Terminer",
|
|
608
|
+
"global.marketplace": "Marketplace",
|
|
609
|
+
"global.name": "Nom",
|
|
610
|
+
"global.none": "Aucun",
|
|
611
|
+
"global.password": "Mot de passe",
|
|
612
|
+
"global.plugins": "Plugins",
|
|
613
|
+
"global.profile": "Profil",
|
|
614
|
+
"global.reset-password": "Réinitialiser le mot de passe",
|
|
615
|
+
"global.roles": "Rôles",
|
|
616
|
+
"global.save": "Enregistrer",
|
|
617
|
+
"global.see-more": "Voir plus",
|
|
618
|
+
"global.select": "Sélectionner",
|
|
619
|
+
"global.select-all-entries": "Sélectionner toutes les entrées",
|
|
620
|
+
"global.settings": "Paramètres",
|
|
621
|
+
"global.type": "Type",
|
|
622
|
+
"global.users": "Utilisateurs",
|
|
591
623
|
"form.button.done": "Terminer",
|
|
592
624
|
"global.prompt.unsaved": "Êtes-vous sûr de vouloir quitter cette page? Toutes vos modifications seront perdues",
|
|
593
625
|
"notification.contentType.relations.conflict": "Le Type de Contenu à des relations qui rentrent en conflit",
|
|
@@ -356,7 +356,6 @@
|
|
|
356
356
|
"components.FilterOptions.FILTER_TYPES.$lt": "小于",
|
|
357
357
|
"components.FilterOptions.FILTER_TYPES.$lte": "小于或等于",
|
|
358
358
|
"components.FilterOptions.FILTER_TYPES.$ne": "不等于",
|
|
359
|
-
"components.FilterOptions.FILTER_TYPES.$neq": "不等于",
|
|
360
359
|
"components.FilterOptions.FILTER_TYPES.$notContains": "不包含 (区分大小写)",
|
|
361
360
|
"components.FilterOptions.FILTER_TYPES.$notNull": "不为空",
|
|
362
361
|
"components.FilterOptions.FILTER_TYPES.$null": "为空",
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[2077],{74201:(y,C,h)=>{"use strict";y.exports=h(45214)},45214:function(y,C,h){(function(x,v){y.exports=v(h(32735),h(19615),h(103))})(this,function(x,v,m){return function(t){var f={};function e(o){if(f[o])return f[o].exports;var i=f[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,e),i.l=!0,i.exports}return e.m=t,e.c=f,e.d=function(o,i,p){e.o(o,i)||Object.defineProperty(o,i,{enumerable:!0,get:p})},e.r=function(o){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},e.t=function(o,i){if(1&i&&(o=e(o)),8&i||4&i&&typeof o=="object"&&o&&o.__esModule)return o;var p=Object.create(null);if(e.r(p),Object.defineProperty(p,"default",{enumerable:!0,value:o}),2&i&&typeof o!="string")for(var u in o)e.d(p,u,function(d){return o[d]}.bind(null,u));return p},e.n=function(o){var i=o&&o.__esModule?function(){return o.default}:function(){return o};return e.d(i,"a",i),i},e.o=function(o,i){return Object.prototype.hasOwnProperty.call(o,i)},e.p="",e(e.s=65)}([function(t,f,e){t.exports=e(19)()},function(t,f){t.exports=x},function(t,f){t.exports=v},function(t,f){t.exports=function(e,o){return o||(o=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(o)}}))},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,f,e){var o=e(24);t.exports=function(i,p){if(i==null)return{};var u,d,c=o(i,p);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(i);for(d=0;d<g.length;d++)u=g[d],p.indexOf(u)>=0||Object.prototype.propertyIsEnumerable.call(i,u)&&(c[u]=i[u])}return c},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,f,e){"use strict";e.r(f),e.d(f,"Box",function(){return j});var o,i=e(3),p=e.n(i),u=e(2),d=e.n(u),c=e(7),g=e(1),O=e.n(g),S=e(0),a=e.n(S),l=function(n){return O.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(){}},b={_hover:a.a.func,background:a.a.string,basis:a.a.oneOfType([a.a.string,a.a.string]),borderColor:a.a.string,children:a.a.oneOfType([a.a.node,a.a.string]),color:a.a.string,flex:a.a.oneOfType([a.a.string,a.a.string]),grow:a.a.oneOfType([a.a.string,a.a.string]),hasRadius:a.a.bool,hiddenS:a.a.bool,hiddenXS:a.a.bool,padding:a.a.oneOfType([a.a.number,a.a.arrayOf(a.a.number)]),paddingBottom:a.a.oneOfType([a.a.number,a.a.arrayOf(a.a.number)]),paddingLeft:a.a.oneOfType([a.a.number,a.a.arrayOf(a.a.number)]),paddingRight:a.a.oneOfType([a.a.number,a.a.arrayOf(a.a.number)]),paddingTop:a.a.oneOfType([a.a.number,a.a.arrayOf(a.a.number)]),shadow:a.a.string,shrink:a.a.oneOfType([a.a.string,a.a.string])};l.defaultProps=w,l.propTypes=b;var T={color:!0},j=d.a.div.withConfig({shouldForwardProp:function(n,r){return!T[n]&&r(n)}})(o||(o=p()([`
|
|
2
|
+
// Font
|
|
3
|
+
font-size: `,`;
|
|
4
|
+
|
|
5
|
+
// Colors
|
|
6
|
+
background: `,`;
|
|
7
|
+
color: `,`;
|
|
8
|
+
|
|
9
|
+
// Spaces
|
|
10
|
+
`,`
|
|
11
|
+
`,`
|
|
12
|
+
`,`
|
|
13
|
+
`,`
|
|
14
|
+
`,`
|
|
15
|
+
`,`
|
|
16
|
+
`,`
|
|
17
|
+
`,`
|
|
18
|
+
`,`
|
|
19
|
+
|
|
20
|
+
// Responsive hiding
|
|
21
|
+
`,`
|
|
22
|
+
`,`
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
// Borders
|
|
26
|
+
border-radius: `,`;
|
|
27
|
+
border-style: `,`;
|
|
28
|
+
border-width: `,`;
|
|
29
|
+
border-color: `,`;
|
|
30
|
+
border: `,`;
|
|
31
|
+
|
|
32
|
+
// Shadows
|
|
33
|
+
box-shadow: `,`;
|
|
34
|
+
|
|
35
|
+
// Handlers
|
|
36
|
+
pointer-events: `,`;
|
|
37
|
+
&:hover {
|
|
38
|
+
`,`
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
// Display
|
|
42
|
+
display: `,`;
|
|
43
|
+
|
|
44
|
+
// Position
|
|
45
|
+
position: `,`;
|
|
46
|
+
left: `,`;
|
|
47
|
+
right: `,`;
|
|
48
|
+
top: `,`;
|
|
49
|
+
bottom: `,`;
|
|
50
|
+
z-index: `,`;
|
|
51
|
+
overflow: `,`;
|
|
52
|
+
cursor: `,`;
|
|
53
|
+
|
|
54
|
+
// Size
|
|
55
|
+
width: `,`;
|
|
56
|
+
max-width: `,`;
|
|
57
|
+
min-width: `,`;
|
|
58
|
+
height: `,`;
|
|
59
|
+
max-height: `,`;
|
|
60
|
+
min-height: `,`;
|
|
61
|
+
|
|
62
|
+
// Animation
|
|
63
|
+
transition: `,`;
|
|
64
|
+
transform: `,`;
|
|
65
|
+
animation: `,`;
|
|
66
|
+
|
|
67
|
+
//Flexbox children props
|
|
68
|
+
flex-shrink: `,`;
|
|
69
|
+
flex-grow: `,`;
|
|
70
|
+
flex-basis: `,`;
|
|
71
|
+
flex: `,`;
|
|
72
|
+
|
|
73
|
+
// Text
|
|
74
|
+
text-align: `,`;
|
|
75
|
+
text-transform: `,`;
|
|
76
|
+
line-height: `,`;
|
|
77
|
+
|
|
78
|
+
// Cursor
|
|
79
|
+
cursor: `,`;
|
|
80
|
+
`])),function(n){var r=n.fontSize;return n.theme.fontSizes[r]||r},function(n){var r=n.theme,s=n.background;return r.colors[s]},function(n){var r=n.theme,s=n.color;return r.colors[s]},function(n){var r=n.theme,s=n.padding;return Object(c.a)("padding",s,r)},function(n){var r=n.theme,s=n.paddingTop;return Object(c.a)("padding-top",s,r)},function(n){var r=n.theme,s=n.paddingRight;return Object(c.a)("padding-right",s,r)},function(n){var r=n.theme,s=n.paddingBottom;return Object(c.a)("padding-bottom",s,r)},function(n){var r=n.theme,s=n.paddingLeft;return Object(c.a)("padding-left",s,r)},function(n){var r=n.theme,s=n.marginLeft;return Object(c.a)("margin-left",s,r)},function(n){var r=n.theme,s=n.marginRight;return Object(c.a)("margin-right",s,r)},function(n){var r=n.theme,s=n.marginTop;return Object(c.a)("margin-top",s,r)},function(n){var r=n.theme,s=n.marginBottom;return Object(c.a)("margin-bottom",s,r)},function(n){var r=n.theme;return n.hiddenS?"".concat(r.mediaQueries.tablet," { display: none; }"):void 0},function(n){var r=n.theme;return n.hiddenXS?"".concat(r.mediaQueries.mobile," { display: none; }"):void 0},function(n){var r=n.theme,s=n.hasRadius,k=n.borderRadius;return s?r.borderRadius:k},function(n){return n.borderStyle},function(n){return n.borderWidth},function(n){var r=n.borderColor;return n.theme.colors[r]},function(n){var r=n.theme,s=n.borderColor,k=n.borderStyle,M=n.borderWidth;if(s&&!k&&!M)return"1px solid ".concat(r.colors[s])},function(n){var r=n.theme,s=n.shadow;return r.shadows[s]},function(n){return n.pointerEvents},function(n){var r=n._hover,s=n.theme;return r?r(s):void 0},function(n){return n.display},function(n){return n.position},function(n){var r=n.left;return n.theme.spaces[r]||r},function(n){var r=n.right;return n.theme.spaces[r]||r},function(n){var r=n.top;return n.theme.spaces[r]||r},function(n){var r=n.bottom;return n.theme.spaces[r]||r},function(n){return n.zIndex},function(n){return n.overflow},function(n){return n.cursor},function(n){var r=n.width;return n.theme.spaces[r]||r},function(n){var r=n.maxWidth;return n.theme.spaces[r]||r},function(n){var r=n.minWidth;return n.theme.spaces[r]||r},function(n){var r=n.height;return n.theme.spaces[r]||r},function(n){var r=n.maxHeight;return n.theme.spaces[r]||r},function(n){var r=n.minHeight;return n.theme.spaces[r]||r},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});j.defaultProps=w,j.propTypes=b},function(t,f){function e(){return t.exports=e=Object.assign||function(o){for(var i=1;i<arguments.length;i++){var p=arguments[i];for(var u in p)Object.prototype.hasOwnProperty.call(p,u)&&(o[u]=p[u])}return o},t.exports.default=t.exports,t.exports.__esModule=!0,e.apply(this,arguments)}t.exports=e,t.exports.default=t.exports,t.exports.__esModule=!0},function(t,f,e){"use strict";var o=e(10),i=e.n(o),p=e(13),u=e.n(p);f.a=function(d,c,g){var O=c;if(Array.isArray(c)||u()(c)!=="object"||(O=[c==null?void 0:c.desktop,c==null?void 0:c.tablet,c==null?void 0:c.mobile]),O!==void 0){if(Array.isArray(O)){var S=O,a=i()(S,3),l=a[0],w=a[1],b=a[2],T="".concat(d,": ").concat(g.spaces[l],";");return w!==void 0&&(T+="".concat(g.mediaQueries.tablet,`{
|
|
81
|
+
`).concat(d,": ").concat(g.spaces[w],`;
|
|
82
|
+
}`)),b!==void 0&&(T+="".concat(g.mediaQueries.mobile,`{
|
|
83
|
+
`).concat(d,": ").concat(g.spaces[b],`;
|
|
84
|
+
}`)),T}var j=g.spaces[O]||O;return"".concat(d,": ").concat(j,";")}}},function(t,f,e){"use strict";e.r(f),e.d(f,"Typography",function(){return j});var o,i=e(3),p=e.n(i),u=e(2),d=e.n(u),c=["alpha","beta","delta","epsilon","omega","pi","sigma"],g=e(1),O=e.n(g),S=e(0),a=e.n(S),l=function(n){return O.a.createElement("div",n)},w={ellipsis:!1,fontWeight:void 0,fontSize:void 0,lineHeight:void 0,textColor:void 0,textTransform:void 0,variant:"omega"},b={ellipsis:a.a.bool,fontSize:a.a.oneOfType([a.a.number,a.a.string]),fontWeight:a.a.string,lineHeight:a.a.oneOfType([a.a.number,a.a.string]),textColor:a.a.string,textTransform:a.a.string,variant:a.a.oneOf(c)};l.defaultProps=w,l.propTypes=b;var T={fontSize:!0,fontWeight:!0},j=d.a.span.withConfig({shouldForwardProp:function(n,r){return!T[n]&&r(n)}})(o||(o=p()([`
|
|
85
|
+
font-weight: `,`;
|
|
86
|
+
font-size: `,`;
|
|
87
|
+
line-height: `,`;
|
|
88
|
+
color: `,`;
|
|
89
|
+
text-transform: `,`;
|
|
90
|
+
`,`
|
|
91
|
+
`,`
|
|
92
|
+
`])),function(n){var r=n.theme,s=n.fontWeight;return r.fontWeights[s]},function(n){var r=n.theme,s=n.fontSize;return r.fontSizes[s]},function(n){var r=n.theme,s=n.lineHeight;return r.lineHeights[s]},function(n){var r=n.theme,s=n.textColor;return r.colors[s||"neutral800"]},function(n){return n.textTransform},function(n){return n.ellipsis&&`
|
|
93
|
+
display: block;
|
|
94
|
+
white-space: nowrap;
|
|
95
|
+
overflow: hidden;
|
|
96
|
+
text-overflow: ellipsis;
|
|
97
|
+
`},function(n){var r=n.variant,s=n.theme;switch(r){case"alpha":return`
|
|
98
|
+
font-weight: `.concat(s.fontWeights.bold,`;
|
|
99
|
+
font-size: `).concat(s.fontSizes[5],`;
|
|
100
|
+
line-height: `).concat(s.lineHeights[2],`;
|
|
101
|
+
`);case"beta":return`
|
|
102
|
+
font-weight: `.concat(s.fontWeights.bold,`;
|
|
103
|
+
font-size: `).concat(s.fontSizes[4],`;
|
|
104
|
+
line-height: `).concat(s.lineHeights[1],`;
|
|
105
|
+
`);case"delta":return`
|
|
106
|
+
font-weight: `.concat(s.fontWeights.semiBold,`;
|
|
107
|
+
font-size: `).concat(s.fontSizes[3],`;
|
|
108
|
+
line-height: `).concat(s.lineHeights[2],`;
|
|
109
|
+
`);case"epsilon":return`
|
|
110
|
+
font-size: `.concat(s.fontSizes[3],`;
|
|
111
|
+
line-height: `).concat(s.lineHeights[6],`;
|
|
112
|
+
`);case"omega":return`
|
|
113
|
+
font-size: `.concat(s.fontSizes[2],`;
|
|
114
|
+
line-height: `).concat(s.lineHeights[4],`;
|
|
115
|
+
`);case"pi":return`
|
|
116
|
+
font-size: `.concat(s.fontSizes[1],`;
|
|
117
|
+
line-height: `).concat(s.lineHeights[3],`;
|
|
118
|
+
`);case"sigma":return`
|
|
119
|
+
font-weight: `.concat(s.fontWeights.bold,`;
|
|
120
|
+
font-size: `).concat(s.fontSizes[0],`;
|
|
121
|
+
line-height: `).concat(s.lineHeights[5],`;
|
|
122
|
+
text-transform: uppercase;
|
|
123
|
+
`);default:return`
|
|
124
|
+
font-size: `.concat(s.fontSizes[2],`;
|
|
125
|
+
`)}});j.defaultProps=w,j.propTypes=b},function(t,f,e){"use strict";e.r(f),e.d(f,"Flex",function(){return n});var o,i=e(3),p=e.n(i),u=e(2),d=e.n(u),c=e(5),g=e(7),O=e(1),S=e.n(O),a=e(0),l=e.n(a),w=function(r){return S.a.createElement("div",r)},b={alignItems:"center",basis:void 0,direction:"row",gap:void 0,inline:!1,justifyContent:void 0,reverse:!1,wrap:void 0},T={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=b,w.propTypes=T;var j={direction:!0},n=d()(c.Box).withConfig({shouldForwardProp:function(r,s){return!j[r]&&s(r)}})(o||(o=p()([`
|
|
126
|
+
align-items: `,`;
|
|
127
|
+
display: `,`;
|
|
128
|
+
flex-direction: `,`;
|
|
129
|
+
flex-shrink: `,`;
|
|
130
|
+
flex-wrap: `,`;
|
|
131
|
+
`,`};
|
|
132
|
+
justify-content: `,`;
|
|
133
|
+
`])),function(r){return r.alignItems},function(r){return r.inline?"inline-flex":"flex"},function(r){return r.direction},function(r){return r.shrink},function(r){return r.wrap},function(r){var s=r.gap,k=r.theme;return Object(g.a)("gap",s,k)},function(r){return r.justifyContent});n.defaultProps=b,n.propTypes=T},function(t,f,e){var o=e(25),i=e(26),p=e(22),u=e(27);t.exports=function(d,c){return o(d)||i(d,c)||p(d,c)||u()},t.exports.default=t.exports,t.exports.__esModule=!0},,,function(t,f){function e(o){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?(t.exports=e=function(i){return typeof i},t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=e=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},t.exports.default=t.exports,t.exports.__esModule=!0),e(o)}t.exports=e,t.exports.default=t.exports,t.exports.__esModule=!0},,,function(t,f,e){"use strict";e.d(f,"b",function(){return o}),e.d(f,"c",function(){return i}),e.d(f,"a",function(){return p});var o=function(u){return function(d){var c=d.theme,g=d.size;return c.sizes[u][g]}},i=function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"&";return function(d){var c=d.theme,g=d.hasError;return`
|
|
134
|
+
outline: none;
|
|
135
|
+
box-shadow: 0;
|
|
136
|
+
transition-property: border-color, box-shadow, fill;
|
|
137
|
+
transition-duration: 0.2s;
|
|
138
|
+
|
|
139
|
+
`.concat(u,`:focus-within {
|
|
140
|
+
border: 1px solid `).concat(g?c.colors.danger600:c.colors.primary600,`;
|
|
141
|
+
box-shadow: `).concat(g?c.colors.danger600:c.colors.primary600,` 0px 0px 0px 2px;
|
|
142
|
+
}
|
|
143
|
+
`)}},p=function(u){var d=u.theme;return`
|
|
144
|
+
position: relative;
|
|
145
|
+
outline: none;
|
|
146
|
+
|
|
147
|
+
&:after {
|
|
148
|
+
transition-property: all;
|
|
149
|
+
transition-duration: 0.2s;
|
|
150
|
+
border-radius: 8px;
|
|
151
|
+
content: '';
|
|
152
|
+
position: absolute;
|
|
153
|
+
top: -4px;
|
|
154
|
+
bottom: -4px;
|
|
155
|
+
left: -4px;
|
|
156
|
+
right: -4px;
|
|
157
|
+
border: 2px solid transparent;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
&:focus-visible {
|
|
161
|
+
outline: none;
|
|
162
|
+
&:after {
|
|
163
|
+
border-radius: 8px;
|
|
164
|
+
content: '';
|
|
165
|
+
position: absolute;
|
|
166
|
+
top: -5px;
|
|
167
|
+
bottom: -5px;
|
|
168
|
+
left: -5px;
|
|
169
|
+
right: -5px;
|
|
170
|
+
border: 2px solid `.concat(d.colors.primary600,`;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
`)}},,,function(t,f,e){"use strict";var o=e(20);function i(){}function p(){}p.resetWarningCache=i,t.exports=function(){function u(g,O,S,a,l,w){if(w!==o){var b=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 b.name="Invariant Violation",b}}function d(){return u}u.isRequired=u;var c={array:u,bool:u,func:u,number:u,object:u,string:u,symbol:u,any:u,arrayOf:d,element:u,elementType:u,instanceOf:d,node:u,objectOf:d,oneOf:d,oneOfType:d,shape:d,exact:d,checkPropTypes:p,resetWarningCache:i};return c.PropTypes=c,c}},function(t,f,e){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,f){t.exports=function(e,o){(o==null||o>e.length)&&(o=e.length);for(var i=0,p=new Array(o);i<o;i++)p[i]=e[i];return p},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,f,e){var o=e(21);t.exports=function(i,p){if(i){if(typeof i=="string")return o(i,p);var u=Object.prototype.toString.call(i).slice(8,-1);return u==="Object"&&i.constructor&&(u=i.constructor.name),u==="Map"||u==="Set"?Array.from(i):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?o(i,p):void 0}},t.exports.default=t.exports,t.exports.__esModule=!0},,function(t,f){t.exports=function(e,o){if(e==null)return{};var i,p,u={},d=Object.keys(e);for(p=0;p<d.length;p++)i=d[p],o.indexOf(i)>=0||(u[i]=e[i]);return u},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,f){t.exports=function(e){if(Array.isArray(e))return e},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,f){t.exports=function(e,o){var i=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(i!=null){var p,u,d=[],c=!0,g=!1;try{for(i=i.call(e);!(c=(p=i.next()).done)&&(d.push(p.value),!o||d.length!==o);c=!0);}catch(O){g=!0,u=O}finally{try{c||i.return==null||i.return()}finally{if(g)throw u}}return d}},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,f){t.exports=function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
174
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)},t.exports.default=t.exports,t.exports.__esModule=!0},,,,,,,,,,,,,,,,,,,,,,,,,,function(t,f){t.exports=m},,,,,,,,,,,,function(t,f,e){"use strict";e.r(f),e.d(f,"TextButton",function(){return P});var o,i,p,u=e(6),d=e.n(u),c=e(4),g=e.n(c),O=e(3),S=e.n(O),a=e(1),l=e.n(a),w=e(0),b=e.n(w),T=e(2),j=e.n(T),n=e(53),r=e.n(n),s=e(5),k=e(8),M=e(9),_=e(16),F=["children","startIcon","endIcon","onClick","disabled","loading"],L=Object(T.keyframes)(o||(o=S()([`
|
|
175
|
+
from {
|
|
176
|
+
transform: rotate(0deg);
|
|
177
|
+
}
|
|
178
|
+
to {
|
|
179
|
+
transform: rotate(359deg);
|
|
180
|
+
}
|
|
181
|
+
`]))),Q=j.a.div(i||(i=S()([`
|
|
182
|
+
animation: `,` 2s infinite linear;
|
|
183
|
+
will-change: transform;
|
|
184
|
+
`])),L),U=j()(M.Flex)(p||(p=S()([`
|
|
185
|
+
background: transparent;
|
|
186
|
+
border: none;
|
|
187
|
+
|
|
188
|
+
&[aria-disabled='true'] {
|
|
189
|
+
pointer-events: none;
|
|
190
|
+
svg path {
|
|
191
|
+
fill: `,`;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
svg {
|
|
196
|
+
display: flex;
|
|
197
|
+
font-size: `,`rem;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
svg path {
|
|
201
|
+
fill: `,`;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
`,`
|
|
205
|
+
`])),function(z){return z.theme.colors.neutral600},.625,function(z){return z.theme.colors.primary600},_.a),P=l.a.forwardRef(function(z,X){var I=z.children,B=z.startIcon,A=z.endIcon,H=z.onClick,W=z.disabled,E=z.loading,G=g()(z,F),V=H&&!W?H:void 0,R=W||E;return l.a.createElement(U,d()({ref:X,"aria-disabled":R,onClick:V,as:"button",type:"button"},G),(B||E)&&l.a.createElement(s.Box,{as:"span",paddingRight:2,"aria-hidden":!0},E?l.a.createElement(Q,null,l.a.createElement(r.a,null)):B),l.a.createElement(k.Typography,{variant:"pi",textColor:R?"neutral600":"primary600"},I),A&&l.a.createElement(s.Box,{as:"span",paddingLeft:2,"aria-hidden":!0},A))});P.displayName="TextButton",P.defaultProps={disabled:!1,startIcon:void 0,endIcon:void 0,loading:!1,onClick:void 0},P.propTypes={children:b.a.node.isRequired,disabled:b.a.bool,endIcon:b.a.element,loading:b.a.bool,onClick:b.a.func,startIcon:b.a.element}}])})},56671:(y,C,h)=>{var x=h(35897),v=h(74741),m=v(x);y.exports=m},52920:(y,C,h)=>{var x=h(56671),v=h(81580);function m(t,f){var e=-1,o=v(t)?Array(t.length):[];return x(t,function(i,p,u){o[++e]=f(i,p,u)}),o}y.exports=m},50690:(y,C,h)=>{var x=h(26460),v=h(80166),m=h(88904),t=h(52920),f=h(36024),e=h(76535),o=h(1397),i=h(15362),p=h(77236);function u(d,c,g){c.length?c=x(c,function(a){return p(a)?function(l){return v(l,a.length===1?a[0]:a)}:a}):c=[i];var O=-1;c=x(c,e(m));var S=t(d,function(a,l,w){var b=x(c,function(T){return T(a)});return{criteria:b,index:++O,value:a}});return f(S,function(a,l){return o(a,l,g)})}y.exports=u},36024:y=>{function C(h,x){var v=h.length;for(h.sort(x);v--;)h[v]=h[v].value;return h}y.exports=C},40709:(y,C,h)=>{var x=h(22945);function v(m,t){if(m!==t){var f=m!==void 0,e=m===null,o=m===m,i=x(m),p=t!==void 0,u=t===null,d=t===t,c=x(t);if(!u&&!c&&!i&&m>t||i&&p&&d&&!u&&!c||e&&p&&d||!f&&d||!o)return 1;if(!e&&!i&&!c&&m<t||c&&f&&o&&!e&&!i||u&&f&&o||!p&&o||!d)return-1}return 0}y.exports=v},1397:(y,C,h)=>{var x=h(40709);function v(m,t,f){for(var e=-1,o=m.criteria,i=t.criteria,p=o.length,u=f.length;++e<p;){var d=x(o[e],i[e]);if(d){if(e>=u)return d;var c=f[e];return d*(c=="desc"?-1:1)}}return m.index-t.index}y.exports=v},74741:(y,C,h)=>{var x=h(81580);function v(m,t){return function(f,e){if(f==null)return f;if(!x(f))return m(f,e);for(var o=f.length,i=t?o:-1,p=Object(f);(t?i--:++i<o)&&e(p[i],i,p)!==!1;);return f}}y.exports=v},98978:(y,C,h)=>{var x=h(40314),v=h(50690),m=h(94569),t=h(63108),f=m(function(e,o){if(e==null)return[];var i=o.length;return i>1&&t(e,o[0],o[1])?o=[]:i>2&&t(o[0],o[1],o[2])&&(o=[o[0]]),v(e,x(o,1),[])});y.exports=f}}]);
|