@strapi/admin 4.2.0-beta.3 → 4.2.0-beta.4
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/components/ConfigurationsProvider/index.js +51 -0
- package/admin/src/components/ConfigurationsProvider/reducer.js +28 -0
- package/admin/src/components/LeftMenu/index.js +12 -2
- package/admin/src/components/Providers/index.js +8 -4
- package/admin/src/components/UnauthenticatedLogo/index.js +4 -2
- package/admin/src/pages/App/index.js +7 -2
- package/admin/src/pages/SettingsPage/pages/ApplicationInfosPage/components/Form/index.js +85 -0
- package/admin/src/pages/SettingsPage/pages/ApplicationInfosPage/components/Form/init.js +13 -0
- package/admin/src/pages/SettingsPage/pages/ApplicationInfosPage/components/Form/reducer.js +43 -0
- package/admin/src/pages/SettingsPage/pages/ApplicationInfosPage/components/LogoInput/index.js +118 -0
- package/admin/src/pages/SettingsPage/pages/ApplicationInfosPage/components/LogoInput/reducer.js +28 -0
- package/admin/src/pages/SettingsPage/pages/ApplicationInfosPage/components/LogoInput/stepper.js +25 -0
- package/admin/src/pages/SettingsPage/pages/ApplicationInfosPage/components/LogoModalStepper/AddLogoDialog.js +67 -0
- package/admin/src/pages/SettingsPage/pages/ApplicationInfosPage/components/LogoModalStepper/FromComputerForm.js +176 -0
- package/admin/src/pages/SettingsPage/pages/ApplicationInfosPage/components/LogoModalStepper/FromUrlForm.js +82 -0
- package/admin/src/pages/SettingsPage/pages/ApplicationInfosPage/components/LogoModalStepper/ImageCardAsset.js +51 -0
- package/admin/src/pages/SettingsPage/pages/ApplicationInfosPage/components/LogoModalStepper/PendingLogoDialog.js +97 -0
- package/admin/src/pages/SettingsPage/pages/ApplicationInfosPage/components/LogoModalStepper/index.js +85 -0
- package/admin/src/pages/SettingsPage/pages/ApplicationInfosPage/components/LogoModalStepper/reducer.js +28 -0
- package/admin/src/pages/SettingsPage/pages/ApplicationInfosPage/index.js +153 -91
- package/admin/src/pages/SettingsPage/pages/ApplicationInfosPage/utils/api.js +16 -0
- package/admin/src/pages/SettingsPage/pages/ApplicationInfosPage/utils/constants.js +3 -0
- package/admin/src/pages/SettingsPage/pages/ApplicationInfosPage/utils/getFormData.js +17 -0
- package/admin/src/pages/SettingsPage/pages/ApplicationInfosPage/utils/parseFileMetadatas.js +76 -0
- package/admin/src/pages/SettingsPage/pages/ApplicationInfosPage/utils/prefixAllUrls.js +17 -0
- package/admin/src/pages/SettingsPage/pages/ApplicationInfosPage/utils/urlToFile.js +21 -0
- package/admin/src/translations/en.json +26 -0
- package/build/1541.6c1c96f9.chunk.js +307 -0
- package/build/3214.9196aeff.chunk.js +235 -0
- package/build/3865.21cec9de.chunk.js +310 -0
- package/build/{4073.41ac1235.chunk.js → 4073.e144a91a.chunk.js} +1 -1
- package/build/{210.014495c1.chunk.js → 472.0350a5bd.chunk.js} +32 -32
- package/build/4800.d3ebc81d.chunk.js +1 -0
- package/build/4982.f53b78a4.chunk.js +308 -0
- package/build/7351.b95e65ae.chunk.js +428 -0
- package/build/7418.6db737ce.chunk.js +112 -0
- package/build/8826.58e236d4.chunk.js +1057 -0
- package/build/9066.118ecccd.chunk.js +101 -0
- package/build/{7191.3bde3cbf.chunk.js → 9298.aff28744.chunk.js} +85 -86
- package/build/948.d64fb515.chunk.js +2 -0
- package/build/9988.f84412d9.chunk.js +162 -0
- package/build/Admin-authenticatedApp.162a5805.chunk.js +80 -0
- package/build/{Admin_homePage.f157e33e.chunk.js → Admin_homePage.0ac648e8.chunk.js} +2 -2
- package/build/Admin_marketplace.0bb91ec8.chunk.js +11 -0
- package/build/{Admin_profilePage.62c203ad.chunk.js → Admin_profilePage.27191ed2.chunk.js} +1 -1
- package/build/Admin_settingsPage.23e873f0.chunk.js +178 -0
- package/build/{admin-edit-roles-page.94e1403b.chunk.js → admin-edit-roles-page.fb374555.chunk.js} +1 -1
- package/build/admin-edit-users.a360deaf.chunk.js +10 -0
- package/build/admin-users.47d06d24.chunk.js +11 -0
- package/build/api-tokens-create-page.698f132d.chunk.js +1 -0
- package/build/api-tokens-edit-page.afece2fe.chunk.js +1 -0
- package/build/{api-tokens-list-page.340750a6.chunk.js → api-tokens-list-page.46d96dee.chunk.js} +1 -1
- package/build/{content-manager.6cdcfb6e.chunk.js → content-manager.7cd28f84.chunk.js} +14 -14
- package/build/{content-type-builder.e73879b9.chunk.js → content-type-builder.7456cabe.chunk.js} +10 -10
- package/build/en-json.40ee00aa.chunk.js +1 -0
- package/build/index.html +1 -1
- package/build/main.b632a0d6.js +11625 -0
- package/build/runtime~main.38d418e9.js +2 -0
- package/build/{sso-settings-page.e9034e22.chunk.js → sso-settings-page.dfb0b917.chunk.js} +1 -1
- package/build/webhook-edit-page.a7ae6e3b.chunk.js +23 -0
- package/build/webhook-list-page.83297d98.chunk.js +133 -0
- package/package.json +7 -7
- package/server/config/admin-actions.js +14 -0
- package/server/controllers/admin.js +33 -1
- package/server/routes/admin.js +28 -0
- package/server/services/index.js +1 -0
- package/server/services/project-settings.js +173 -0
- package/server/utils/index.d.ts +2 -0
- package/server/validation/project-settings.js +39 -0
- package/build/1709.ceed0e18.chunk.js +0 -503
- package/build/20.cf744c35.chunk.js +0 -308
- package/build/2135.95ee6de1.chunk.js +0 -162
- package/build/2524.688d0355.chunk.js +0 -1
- package/build/4761.3eabdf46.chunk.js +0 -101
- package/build/6281.f10a7e3a.chunk.js +0 -1
- package/build/7009.79fce86d.chunk.js +0 -164
- package/build/7863.bc7a8f3a.chunk.js +0 -112
- package/build/Admin-authenticatedApp.4ce8d292.chunk.js +0 -80
- package/build/Admin_marketplace.1e3393c9.chunk.js +0 -11
- package/build/Admin_settingsPage.924a7816.chunk.js +0 -170
- package/build/admin-edit-users.6c2bf718.chunk.js +0 -10
- package/build/admin-users.e03db115.chunk.js +0 -11
- package/build/api-tokens-create-page.787ab302.chunk.js +0 -1
- package/build/api-tokens-edit-page.e4010c0c.chunk.js +0 -1
- package/build/en-json.3e1a222e.chunk.js +0 -1
- package/build/main.45472ea9.js +0 -8404
- package/build/runtime~main.e7611418.js +0 -2
- package/build/webhook-edit-page.2fa94db3.chunk.js +0 -23
- package/build/webhook-list-page.b594db49.chunk.js +0 -133
|
@@ -0,0 +1,307 @@
|
|
|
1
|
+
(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[1541],{61541:(z,A,T)=>{"use strict";z.exports=T(97131)},97131:function(z,A,T){(function(M,P){z.exports=P(T(32735),T(19615))})(this,function(M,P){return function(o){var u={};function t(i){if(u[i])return u[i].exports;var a=u[i]={i,l:!1,exports:{}};return o[i].call(a.exports,a,a.exports,t),a.l=!0,a.exports}return t.m=o,t.c=u,t.d=function(i,a,s){t.o(i,a)||Object.defineProperty(i,a,{enumerable:!0,get:s})},t.r=function(i){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},t.t=function(i,a){if(1&a&&(i=t(i)),8&a||4&a&&typeof i=="object"&&i&&i.__esModule)return i;var s=Object.create(null);if(t.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:i}),2&a&&typeof i!="string")for(var c in i)t.d(s,c,function(e){return i[e]}.bind(null,c));return s},t.n=function(i){var a=i&&i.__esModule?function(){return i.default}:function(){return i};return t.d(a,"a",a),a},t.o=function(i,a){return Object.prototype.hasOwnProperty.call(i,a)},t.p="",t(t.s=53)}([function(o,u,t){o.exports=t(25)()},function(o,u){o.exports=M},function(o,u){o.exports=function(t,i){return i||(i=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(i)}}))},o.exports.default=o.exports,o.exports.__esModule=!0},function(o,u){o.exports=P},function(o,u){function t(){return o.exports=t=Object.assign||function(i){for(var a=1;a<arguments.length;a++){var s=arguments[a];for(var c in s)Object.prototype.hasOwnProperty.call(s,c)&&(i[c]=s[c])}return i},o.exports.default=o.exports,o.exports.__esModule=!0,t.apply(this,arguments)}o.exports=t,o.exports.default=o.exports,o.exports.__esModule=!0},function(o,u,t){var i=t(24);o.exports=function(a,s){if(a==null)return{};var c,e,f=i(a,s);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(a);for(e=0;e<b.length;e++)c=b[e],s.indexOf(c)>=0||Object.prototype.propertyIsEnumerable.call(a,c)&&(f[c]=a[c])}return f},o.exports.default=o.exports,o.exports.__esModule=!0},function(o,u,t){"use strict";t.d(u,"a",function(){return l});var i,a=t(2),s=t.n(a),c=t(0),e=t.n(c),f=t(3),b=t.n(f),p=t(8),g={color:!0},l=b.a.div.withConfig({shouldForwardProp:function(n,r){return!g[n]&&r(n)}})(i||(i=s()([`
|
|
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,d=n.background;return r.colors[d]},function(n){var r=n.theme,d=n.color;return r.colors[d]},function(n){var r=n.theme,d=n.padding;return Object(p.a)("padding",d,r)},function(n){var r=n.theme,d=n.paddingTop;return Object(p.a)("padding-top",d,r)},function(n){var r=n.theme,d=n.paddingRight;return Object(p.a)("padding-right",d,r)},function(n){var r=n.theme,d=n.paddingBottom;return Object(p.a)("padding-bottom",d,r)},function(n){var r=n.theme,d=n.paddingLeft;return Object(p.a)("padding-left",d,r)},function(n){var r=n.theme,d=n.marginLeft;return Object(p.a)("margin-left",d,r)},function(n){var r=n.theme,d=n.marginRight;return Object(p.a)("margin-right",d,r)},function(n){var r=n.theme,d=n.marginTop;return Object(p.a)("margin-top",d,r)},function(n){var r=n.theme,d=n.marginBottom;return Object(p.a)("margin-bottom",d,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,d=n.hasRadius,v=n.borderRadius;return d?r.borderRadius:v},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,d=n.borderColor,v=n.borderStyle,y=n.borderWidth;if(d&&!v&&!y)return"1px solid ".concat(r.colors[d])},function(n){var r=n.theme,d=n.shadow;return r.shadows[d]},function(n){return n.pointerEvents},function(n){var r=n._hover,d=n.theme;return r?r(d):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});l.displayName="Box",l.defaultProps={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(){}},l.propTypes={_hover:e.a.func,background:e.a.string,basis:e.a.oneOfType([e.a.string,e.a.string]),borderColor:e.a.string,children:e.a.oneOfType([e.a.node,e.a.string]),color:e.a.string,flex:e.a.oneOfType([e.a.string,e.a.string]),grow:e.a.oneOfType([e.a.string,e.a.string]),hasRadius:e.a.bool,hiddenS:e.a.bool,hiddenXS:e.a.bool,padding:e.a.oneOfType([e.a.number,e.a.arrayOf(e.a.number)]),paddingBottom:e.a.oneOfType([e.a.number,e.a.arrayOf(e.a.number)]),paddingLeft:e.a.oneOfType([e.a.number,e.a.arrayOf(e.a.number)]),paddingRight:e.a.oneOfType([e.a.number,e.a.arrayOf(e.a.number)]),paddingTop:e.a.oneOfType([e.a.number,e.a.arrayOf(e.a.number)]),shadow:e.a.string,shrink:e.a.oneOfType([e.a.string,e.a.string])}},function(o,u,t){"use strict";t.d(u,"a",function(){return g});var i,a=t(2),s=t.n(a),c=t(0),e=t.n(c),f=t(3),b=["alpha","beta","delta","epsilon","omega","pi","sigma"],p={fontSize:!0,fontWeight:!0},g=t.n(f).a.span.withConfig({shouldForwardProp:function(l,n){return!p[l]&&n(l)}})(i||(i=s()([`
|
|
81
|
+
font-weight: `,`;
|
|
82
|
+
font-size: `,`;
|
|
83
|
+
line-height: `,`;
|
|
84
|
+
color: `,`;
|
|
85
|
+
text-transform: `,`;
|
|
86
|
+
`,`
|
|
87
|
+
`,`
|
|
88
|
+
`])),function(l){var n=l.theme,r=l.fontWeight;return n.fontWeights[r]},function(l){var n=l.theme,r=l.fontSize;return n.fontSizes[r]},function(l){var n=l.theme,r=l.lineHeight;return n.lineHeights[r]},function(l){var n=l.theme,r=l.textColor;return n.colors[r||"neutral800"]},function(l){return l.textTransform},function(l){return l.ellipsis&&`
|
|
89
|
+
display: block;
|
|
90
|
+
white-space: nowrap;
|
|
91
|
+
overflow: hidden;
|
|
92
|
+
text-overflow: ellipsis;
|
|
93
|
+
`},function(l){var n=l.variant,r=l.theme;switch(n){case"alpha":return`
|
|
94
|
+
font-weight: `.concat(r.fontWeights.bold,`;
|
|
95
|
+
font-size: `).concat(r.fontSizes[5],`;
|
|
96
|
+
line-height: `).concat(r.lineHeights[2],`;
|
|
97
|
+
`);case"beta":return`
|
|
98
|
+
font-weight: `.concat(r.fontWeights.bold,`;
|
|
99
|
+
font-size: `).concat(r.fontSizes[4],`;
|
|
100
|
+
line-height: `).concat(r.lineHeights[1],`;
|
|
101
|
+
`);case"delta":return`
|
|
102
|
+
font-weight: `.concat(r.fontWeights.semiBold,`;
|
|
103
|
+
font-size: `).concat(r.fontSizes[3],`;
|
|
104
|
+
line-height: `).concat(r.lineHeights[2],`;
|
|
105
|
+
`);case"epsilon":return`
|
|
106
|
+
font-size: `.concat(r.fontSizes[3],`;
|
|
107
|
+
line-height: `).concat(r.lineHeights[6],`;
|
|
108
|
+
`);case"omega":return`
|
|
109
|
+
font-size: `.concat(r.fontSizes[2],`;
|
|
110
|
+
line-height: `).concat(r.lineHeights[4],`;
|
|
111
|
+
`);case"pi":return`
|
|
112
|
+
font-size: `.concat(r.fontSizes[1],`;
|
|
113
|
+
line-height: `).concat(r.lineHeights[3],`;
|
|
114
|
+
`);case"sigma":return`
|
|
115
|
+
font-weight: `.concat(r.fontWeights.bold,`;
|
|
116
|
+
font-size: `).concat(r.fontSizes[0],`;
|
|
117
|
+
line-height: `).concat(r.lineHeights[5],`;
|
|
118
|
+
text-transform: uppercase;
|
|
119
|
+
`);default:return`
|
|
120
|
+
font-size: `.concat(r.fontSizes[2],`;
|
|
121
|
+
`)}});g.defaultProps={fontWeight:void 0,fontSize:void 0,lineHeight:void 0,textColor:void 0,textTransform:void 0,variant:"omega"},g.propTypes={fontSize:e.a.oneOfType([e.a.number,e.a.string]),fontWeight:e.a.string,lineHeight:e.a.oneOfType([e.a.number,e.a.string]),textColor:e.a.string,textTransform:e.a.string,variant:e.a.oneOf(b)}},function(o,u,t){"use strict";var i=t(11),a=t.n(i),s=t(17),c=t.n(s);u.a=function(e,f,b){var p=f;if(Array.isArray(f)||c()(f)!=="object"||(p=[f==null?void 0:f.desktop,f==null?void 0:f.tablet,f==null?void 0:f.mobile]),p!==void 0){if(Array.isArray(p)){var g=p,l=a()(g,3),n=l[0],r=l[1],d=l[2],v="".concat(e,": ").concat(b.spaces[n],";");return r!==void 0&&(v+="".concat(b.mediaQueries.tablet,`{
|
|
122
|
+
`).concat(e,": ").concat(b.spaces[r],`;
|
|
123
|
+
}`)),d!==void 0&&(v+="".concat(b.mediaQueries.mobile,`{
|
|
124
|
+
`).concat(e,": ").concat(b.spaces[d],`;
|
|
125
|
+
}`)),v}var y=b.spaces[p]||p;return"".concat(e,": ").concat(y,";")}}},,function(o,u,t){"use strict";t.d(u,"i",function(){return i}),t.d(u,"c",function(){return a}),t.d(u,"d",function(){return s}),t.d(u,"j",function(){return c}),t.d(u,"g",function(){return e}),t.d(u,"b",function(){return f}),t.d(u,"h",function(){return b}),t.d(u,"e",function(){return p}),t.d(u,"f",function(){return g}),t.d(u,"k",function(){return l}),t.d(u,"a",function(){return n});var i="success-light",a="danger-light",s="default",c="tertiary",e="secondary",f="danger",b="success",p="ghost",g=[i,a],l=[s,c,e,f,b,p].concat(g),n=["S","L"]},function(o,u,t){var i=t(27),a=t(28),s=t(20),c=t(29);o.exports=function(e,f){return i(e)||a(e,f)||s(e,f)||c()},o.exports.default=o.exports,o.exports.__esModule=!0},,function(o,u,t){"use strict";t.d(u,"a",function(){return y});var i,a=t(4),s=t.n(a),c=t(5),e=t.n(c),f=t(2),b=t.n(f),p=t(1),g=t.n(p),l=t(0),n=t.n(l),r=t(3),d=["href","rel","target","disabled","isExternal"],v=t.n(r).a.a(i||(i=b()([`
|
|
126
|
+
cursor: pointer;
|
|
127
|
+
`]))),y=g.a.forwardRef(function(x,_){var m=x.href,w=x.rel,S=x.target,k=x.disabled,O=x.isExternal,h=e()(x,d);return g.a.createElement(v,s()({ref:_,target:O?"_blank":S,rel:O?w:void 0,href:k?"#":m,disabled:k},h))});y.displayName="BaseLink",y.defaultProps={disabled:!1,href:void 0,isExternal:!1,rel:"noreferrer noopener",target:"_self"},y.propTypes={disabled:n.a.bool,href:n.a.string,isExternal:n.a.bool,rel:n.a.string,target:n.a.string}},,function(o,u,t){"use strict";t.d(u,"b",function(){return i}),t.d(u,"a",function(){return a});var i=function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"&";return function(c){var e=c.theme,f=c.hasError;return`
|
|
128
|
+
outline: none;
|
|
129
|
+
box-shadow: 0;
|
|
130
|
+
transition-property: border-color, box-shadow, fill;
|
|
131
|
+
transition-duration: 0.2s;
|
|
132
|
+
|
|
133
|
+
`.concat(s,`:focus-within {
|
|
134
|
+
border: 1px solid `).concat(f?e.colors.danger600:e.colors.primary600,`;
|
|
135
|
+
box-shadow: `).concat(f?e.colors.danger600:e.colors.primary600,` 0px 0px 0px 2px;
|
|
136
|
+
}
|
|
137
|
+
`)}},a=function(s){var c=s.theme;return`
|
|
138
|
+
position: relative;
|
|
139
|
+
outline: none;
|
|
140
|
+
|
|
141
|
+
&:after {
|
|
142
|
+
transition-property: all;
|
|
143
|
+
transition-duration: 0.2s;
|
|
144
|
+
border-radius: 8px;
|
|
145
|
+
content: '';
|
|
146
|
+
position: absolute;
|
|
147
|
+
top: -4px;
|
|
148
|
+
bottom: -4px;
|
|
149
|
+
left: -4px;
|
|
150
|
+
right: -4px;
|
|
151
|
+
border: 2px solid transparent;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
&:focus-visible {
|
|
155
|
+
outline: none;
|
|
156
|
+
&:after {
|
|
157
|
+
border-radius: 8px;
|
|
158
|
+
content: '';
|
|
159
|
+
position: absolute;
|
|
160
|
+
top: -5px;
|
|
161
|
+
bottom: -5px;
|
|
162
|
+
left: -5px;
|
|
163
|
+
right: -5px;
|
|
164
|
+
border: 2px solid `.concat(c.colors.primary600,`;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
`)}},function(o,u,t){"use strict";t.d(u,"b",function(){return f}),t.d(u,"c",function(){return b}),t.d(u,"a",function(){return p}),t.d(u,"d",function(){return g});var i=t(33),a=t.n(i),s=t(7),c=t(10),e=function(l){return c.f.includes(l)?l.substring(0,l.lastIndexOf("-")):l===c.j?"neutral":[c.d,c.g].includes(l)||!c.k.includes(l)?"primary":l},f=function(l){var n=l.theme;return`
|
|
168
|
+
border: 1px solid `.concat(n.colors.neutral200,`;
|
|
169
|
+
background: `).concat(n.colors.neutral150,`;
|
|
170
|
+
`).concat(s.a,` {
|
|
171
|
+
color: `).concat(n.colors.neutral600,`;
|
|
172
|
+
}
|
|
173
|
+
svg {
|
|
174
|
+
> g, path {
|
|
175
|
+
fill: `).concat(n.colors.neutral600,`;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
`)},b=function(l){var n=l.theme,r=l.variant;return[].concat(a()(c.f),[c.g]).includes(r)?`
|
|
179
|
+
background-color: `.concat(n.colors.neutral0,`;
|
|
180
|
+
`):r===c.j||r===c.e?`
|
|
181
|
+
background-color: `.concat(n.colors.neutral100,`;
|
|
182
|
+
`):r===c.d?`
|
|
183
|
+
border: 1px solid `.concat(n.colors.buttonPrimary500,`;
|
|
184
|
+
background: `).concat(n.colors.buttonPrimary500,`;
|
|
185
|
+
`):`
|
|
186
|
+
border: 1px solid `.concat(n.colors["".concat(e(r),"500")],`;
|
|
187
|
+
background: `).concat(n.colors["".concat(e(r),"500")],`;
|
|
188
|
+
`)},p=function(l){var n=l.theme,r=l.variant;return[].concat(a()(c.f),[c.g]).includes(r)?`
|
|
189
|
+
background-color: `.concat(n.colors.neutral0,`;
|
|
190
|
+
border: 1px solid `).concat(n.colors["".concat(e(r),"600")],`;
|
|
191
|
+
`).concat(s.a,` {
|
|
192
|
+
color: `).concat(n.colors["".concat(e(r),"600")],`;
|
|
193
|
+
}
|
|
194
|
+
svg {
|
|
195
|
+
> g, path {
|
|
196
|
+
fill: `).concat(n.colors["".concat(e(r),"600")],`;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
`):r===c.j?`
|
|
200
|
+
background-color: `.concat(n.colors.neutral150,`;
|
|
201
|
+
`):`
|
|
202
|
+
border: 1px solid `.concat(n.colors["".concat(e(r),"600")],`;
|
|
203
|
+
background: `).concat(n.colors["".concat(e(r),"600")],`;
|
|
204
|
+
`)},g=function(l){var n=l.theme,r=l.variant;switch(r){case c.c:case c.i:case c.g:return`
|
|
205
|
+
border: 1px solid `.concat(n.colors["".concat(e(r),"200")],`;
|
|
206
|
+
background: `).concat(n.colors["".concat(e(r),"100")],`;
|
|
207
|
+
`).concat(s.a,` {
|
|
208
|
+
color: `).concat(n.colors["".concat(e(r),"700")],`;
|
|
209
|
+
}
|
|
210
|
+
svg {
|
|
211
|
+
> g, path {
|
|
212
|
+
fill: `).concat(n.colors["".concat(e(r),"700")],`;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
`);case c.j:return`
|
|
216
|
+
border: 1px solid `.concat(n.colors.neutral200,`;
|
|
217
|
+
background: `).concat(n.colors.neutral0,`;
|
|
218
|
+
`).concat(s.a,` {
|
|
219
|
+
color: `).concat(n.colors.neutral800,`;
|
|
220
|
+
}
|
|
221
|
+
svg {
|
|
222
|
+
> g, path {
|
|
223
|
+
fill: `).concat(n.colors.neutral800,`;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
`);case c.e:return`
|
|
227
|
+
border: 1px solid transparent;
|
|
228
|
+
background: transparent;
|
|
229
|
+
|
|
230
|
+
`.concat(s.a,` {
|
|
231
|
+
color: `).concat(n.colors.neutral800,`;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
svg {
|
|
235
|
+
> g, path {
|
|
236
|
+
fill: `).concat(n.colors.neutral500,`;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
`);case c.h:case c.b:return`
|
|
240
|
+
border: 1px solid `.concat(n.colors["".concat(e(r),"600")],`;
|
|
241
|
+
background: `).concat(n.colors["".concat(e(r),"600")],`;
|
|
242
|
+
`).concat(s.a,` {
|
|
243
|
+
color: `).concat(n.colors.neutral0,`;
|
|
244
|
+
}
|
|
245
|
+
`);default:return`
|
|
246
|
+
svg {
|
|
247
|
+
> g, path {
|
|
248
|
+
fill: `.concat(n.colors.buttonNeutral0,`;
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
`)}}},function(o,u){function t(i){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?(o.exports=t=function(a){return typeof a},o.exports.default=o.exports,o.exports.__esModule=!0):(o.exports=t=function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},o.exports.default=o.exports,o.exports.__esModule=!0),t(i)}o.exports=t,o.exports.default=o.exports,o.exports.__esModule=!0},,,function(o,u,t){var i=t(21);o.exports=function(a,s){if(a){if(typeof a=="string")return i(a,s);var c=Object.prototype.toString.call(a).slice(8,-1);return c==="Object"&&a.constructor&&(c=a.constructor.name),c==="Map"||c==="Set"?Array.from(a):c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?i(a,s):void 0}},o.exports.default=o.exports,o.exports.__esModule=!0},function(o,u){o.exports=function(t,i){(i==null||i>t.length)&&(i=t.length);for(var a=0,s=new Array(i);a<i;a++)s[a]=t[a];return s},o.exports.default=o.exports,o.exports.__esModule=!0},function(o,u,t){"use strict";t.d(u,"b",function(){return x}),t.d(u,"a",function(){return _});var i,a=t(4),s=t.n(a),c=t(5),e=t.n(c),f=t(2),b=t.n(f),p=t(1),g=t.n(p),l=t(0),n=t.n(l),r=t(3),d=t.n(r),v=t(15),y=["disabled","children"],x=d.a.button(i||(i=b()([`
|
|
252
|
+
display: flex;
|
|
253
|
+
cursor: pointer;
|
|
254
|
+
padding: `,`;
|
|
255
|
+
border-radius: `,`;
|
|
256
|
+
background: `,`;
|
|
257
|
+
border: 1px solid `,`;
|
|
258
|
+
svg {
|
|
259
|
+
height: `,`;
|
|
260
|
+
width: `,`;
|
|
261
|
+
}
|
|
262
|
+
svg {
|
|
263
|
+
> g,
|
|
264
|
+
path {
|
|
265
|
+
fill: `,`;
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
&[aria-disabled='true'] {
|
|
269
|
+
pointer-events: none;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
`,`
|
|
273
|
+
`])),function(m){return m.theme.spaces[2]},function(m){return m.theme.borderRadius},function(m){return m.theme.colors.neutral0},function(m){return m.theme.colors.neutral200},function(m){return m.theme.spaces[3]},function(m){return m.theme.spaces[3]},function(m){return m.theme.colors.neutral0},v.a),_=g.a.forwardRef(function(m,w){var S=m.disabled,k=m.children,O=e()(m,y);return g.a.createElement(x,s()({ref:w,"aria-disabled":S,type:"button",disabled:S},O),k)});_.displayName="BaseButton",_.defaultProps={disabled:!1},_.propTypes={children:n.a.node.isRequired,disabled:n.a.bool}},,function(o,u){o.exports=function(t,i){if(t==null)return{};var a,s,c={},e=Object.keys(t);for(s=0;s<e.length;s++)a=e[s],i.indexOf(a)>=0||(c[a]=t[a]);return c},o.exports.default=o.exports,o.exports.__esModule=!0},function(o,u,t){"use strict";var i=t(26);function a(){}function s(){}s.resetWarningCache=a,o.exports=function(){function c(b,p,g,l,n,r){if(r!==i){var d=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 d.name="Invariant Violation",d}}function e(){return c}c.isRequired=c;var f={array:c,bool:c,func:c,number:c,object:c,string:c,symbol:c,any:c,arrayOf:e,element:c,elementType:c,instanceOf:e,node:c,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:s,resetWarningCache:a};return f.PropTypes=f,f}},function(o,u,t){"use strict";o.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(o,u){o.exports=function(t){if(Array.isArray(t))return t},o.exports.default=o.exports,o.exports.__esModule=!0},function(o,u){o.exports=function(t,i){var a=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(a!=null){var s,c,e=[],f=!0,b=!1;try{for(a=a.call(t);!(f=(s=a.next()).done)&&(e.push(s.value),!i||e.length!==i);f=!0);}catch(p){b=!0,c=p}finally{try{f||a.return==null||a.return()}finally{if(b)throw c}}return e}},o.exports.default=o.exports,o.exports.__esModule=!0},function(o,u){o.exports=function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
274
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)},o.exports.default=o.exports,o.exports.__esModule=!0},,,,function(o,u,t){var i=t(41),a=t(42),s=t(20),c=t(43);o.exports=function(e){return i(e)||a(e)||s(e)||c()},o.exports.default=o.exports,o.exports.__esModule=!0},,,,,,,,function(o,u,t){var i=t(21);o.exports=function(a){if(Array.isArray(a))return i(a)},o.exports.default=o.exports,o.exports.__esModule=!0},function(o,u){o.exports=function(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)},o.exports.default=o.exports,o.exports.__esModule=!0},function(o,u){o.exports=function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
275
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)},o.exports.default=o.exports,o.exports.__esModule=!0},,,,,,,,,,function(o,u,t){"use strict";t.r(u),t.d(u,"LinkButton",function(){return O});var i,a=t(4),s=t.n(a),c=t(5),e=t.n(c),f=t(2),b=t.n(f),p=t(1),g=t.n(p),l=t(3),n=t.n(l),r=t(0),d=t.n(r),v=t(7),y=t(6),x=t(16),_=t(10),m=t(22),w=t(13),S=["variant","startIcon","endIcon","disabled","children","size","as"],k=n()(m.b)(i||(i=b()([`
|
|
276
|
+
padding: `,`;
|
|
277
|
+
background: `,`;
|
|
278
|
+
border: 1px solid `,`;
|
|
279
|
+
border-radius: `,`;
|
|
280
|
+
`,` {
|
|
281
|
+
display: flex;
|
|
282
|
+
align-items: center;
|
|
283
|
+
}
|
|
284
|
+
`,` {
|
|
285
|
+
color: `,`;
|
|
286
|
+
}
|
|
287
|
+
&[aria-disabled='true'] {
|
|
288
|
+
`,`
|
|
289
|
+
&:active {
|
|
290
|
+
`,`
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
&:hover {
|
|
294
|
+
`,`
|
|
295
|
+
}
|
|
296
|
+
&:active {
|
|
297
|
+
`,`
|
|
298
|
+
}
|
|
299
|
+
`,`
|
|
300
|
+
|
|
301
|
+
/**
|
|
302
|
+
Link specific properties
|
|
303
|
+
*/
|
|
304
|
+
display: inline-flex;
|
|
305
|
+
text-decoration: none;
|
|
306
|
+
pointer-events: `,`;
|
|
307
|
+
`])),function(h){var j=h.theme,E=h.size;return"".concat(E==="S"?j.spaces[2]:"10px"," ").concat(j.spaces[4])},function(h){return h.theme.colors.buttonPrimary600},function(h){return h.theme.colors.buttonPrimary600},function(h){return h.theme.borderRadius},y.a,v.a,function(h){return h.theme.colors.buttonNeutral0},x.b,x.b,x.c,x.a,x.d,function(h){return h.disabled?"none":void 0}),O=g.a.forwardRef(function(h,j){var E=h.variant,R=h.startIcon,C=h.endIcon,H=h.disabled,I=h.children,W=h.size,B=h.as,L=e()(h,S);return g.a.createElement(k,s()({ref:j,"aria-disabled":H,size:W,variant:E},L,{as:B||w.a}),R&&g.a.createElement(y.a,{"aria-hidden":!0,paddingRight:2},R),W==="S"?g.a.createElement(v.a,{variant:"pi",fontWeight:"bold"},I):g.a.createElement(v.a,{fontWeight:"bold"},I),C&&g.a.createElement(y.a,{"aria-hidden":!0,paddingLeft:2},C))});O.displayName="LinkButton",O.defaultProps={as:w.a,disabled:!1,startIcon:void 0,endIcon:void 0,size:"S",variant:"default",onClick:void 0,href:void 0,to:void 0},O.propTypes={as:d.a.elementType,children:d.a.string.isRequired,disabled:d.a.bool,endIcon:d.a.element,href:function(h){if(!h.disabled&&!h.to&&!h.href)return new Error("href must be defined")},onClick:d.a.func,size:d.a.oneOf(_.a),startIcon:d.a.element,to:function(h){if(!h.disabled&&!h.href&&!h.to)return new Error("to must be defined")},variant:d.a.oneOf(_.k)}}])})}}]);
|
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[3214],{53214:(L,ne,D)=>{"use strict";L.exports=D(62513)},62513:function(L,ne,D){(function(Q,q){L.exports=q(D(32735),D(19615))})(this,function(Q,q){return function(o){var c={};function e(a){if(c[a])return c[a].exports;var i=c[a]={i:a,l:!1,exports:{}};return o[a].call(i.exports,i,i.exports,e),i.l=!0,i.exports}return e.m=o,e.c=c,e.d=function(a,i,s){e.o(a,i)||Object.defineProperty(a,i,{enumerable:!0,get:s})},e.r=function(a){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},e.t=function(a,i){if(1&i&&(a=e(a)),8&i||4&i&&typeof a=="object"&&a&&a.__esModule)return a;var s=Object.create(null);if(e.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:a}),2&i&&typeof a!="string")for(var u in a)e.d(s,u,function(r){return a[r]}.bind(null,u));return s},e.n=function(a){var i=a&&a.__esModule?function(){return a.default}:function(){return a};return e.d(i,"a",i),i},e.o=function(a,i){return Object.prototype.hasOwnProperty.call(a,i)},e.p="",e(e.s=100)}([function(o,c,e){o.exports=e(19)()},function(o,c){o.exports=Q},function(o,c){o.exports=q},function(o,c){o.exports=function(e,a){return a||(a=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(a)}}))},o.exports.default=o.exports,o.exports.__esModule=!0},function(o,c,e){var a=e(24);o.exports=function(i,s){if(i==null)return{};var u,r,p=a(i,s);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(i);for(r=0;r<m.length;r++)u=m[r],s.indexOf(u)>=0||Object.prototype.propertyIsEnumerable.call(i,u)&&(p[u]=i[u])}return p},o.exports.default=o.exports,o.exports.__esModule=!0},function(o,c){function e(){return o.exports=e=Object.assign||function(a){for(var i=1;i<arguments.length;i++){var s=arguments[i];for(var u in s)Object.prototype.hasOwnProperty.call(s,u)&&(a[u]=s[u])}return a},o.exports.default=o.exports,o.exports.__esModule=!0,e.apply(this,arguments)}o.exports=e,o.exports.default=o.exports,o.exports.__esModule=!0},function(o,c,e){"use strict";e.r(c),e.d(c,"Box",function(){return l});var a,i=e(3),s=e.n(i),u=e(0),r=e.n(u),p=e(2),m=e.n(p),b=e(7),v={color:!0},l=m.a.div.withConfig({shouldForwardProp:function(n,t){return!v[n]&&t(n)}})(a||(a=s()([`
|
|
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 t=n.fontSize;return n.theme.fontSizes[t]||t},function(n){var t=n.theme,f=n.background;return t.colors[f]},function(n){var t=n.theme,f=n.color;return t.colors[f]},function(n){var t=n.theme,f=n.padding;return Object(b.a)("padding",f,t)},function(n){var t=n.theme,f=n.paddingTop;return Object(b.a)("padding-top",f,t)},function(n){var t=n.theme,f=n.paddingRight;return Object(b.a)("padding-right",f,t)},function(n){var t=n.theme,f=n.paddingBottom;return Object(b.a)("padding-bottom",f,t)},function(n){var t=n.theme,f=n.paddingLeft;return Object(b.a)("padding-left",f,t)},function(n){var t=n.theme,f=n.marginLeft;return Object(b.a)("margin-left",f,t)},function(n){var t=n.theme,f=n.marginRight;return Object(b.a)("margin-right",f,t)},function(n){var t=n.theme,f=n.marginTop;return Object(b.a)("margin-top",f,t)},function(n){var t=n.theme,f=n.marginBottom;return Object(b.a)("margin-bottom",f,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,f=n.hasRadius,h=n.borderRadius;return f?t.borderRadius:h},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,f=n.borderColor,h=n.borderStyle,x=n.borderWidth;if(f&&!h&&!x)return"1px solid ".concat(t.colors[f])},function(n){var t=n.theme,f=n.shadow;return t.shadows[f]},function(n){return n.pointerEvents},function(n){var t=n._hover,f=n.theme;return t?t(f):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});l.displayName="Box",l.defaultProps={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(){}},l.propTypes={_hover:r.a.func,background:r.a.string,basis:r.a.oneOfType([r.a.string,r.a.string]),borderColor:r.a.string,children:r.a.oneOfType([r.a.node,r.a.string]),color:r.a.string,flex:r.a.oneOfType([r.a.string,r.a.string]),grow:r.a.oneOfType([r.a.string,r.a.string]),hasRadius:r.a.bool,hiddenS:r.a.bool,hiddenXS:r.a.bool,padding:r.a.oneOfType([r.a.number,r.a.arrayOf(r.a.number)]),paddingBottom:r.a.oneOfType([r.a.number,r.a.arrayOf(r.a.number)]),paddingLeft:r.a.oneOfType([r.a.number,r.a.arrayOf(r.a.number)]),paddingRight:r.a.oneOfType([r.a.number,r.a.arrayOf(r.a.number)]),paddingTop:r.a.oneOfType([r.a.number,r.a.arrayOf(r.a.number)]),shadow:r.a.string,shrink:r.a.oneOfType([r.a.string,r.a.string])}},function(o,c,e){"use strict";var a=e(10),i=e.n(a),s=e(13),u=e.n(s);c.a=function(r,p,m){var b=p;if(Array.isArray(p)||u()(p)!=="object"||(b=[p==null?void 0:p.desktop,p==null?void 0:p.tablet,p==null?void 0:p.mobile]),b!==void 0){if(Array.isArray(b)){var v=b,l=i()(v,3),n=l[0],t=l[1],f=l[2],h="".concat(r,": ").concat(m.spaces[n],";");return t!==void 0&&(h+="".concat(m.mediaQueries.tablet,`{
|
|
81
|
+
`).concat(r,": ").concat(m.spaces[t],`;
|
|
82
|
+
}`)),f!==void 0&&(h+="".concat(m.mediaQueries.mobile,`{
|
|
83
|
+
`).concat(r,": ").concat(m.spaces[f],`;
|
|
84
|
+
}`)),h}var x=m.spaces[b]||b;return"".concat(r,": ").concat(x,";")}}},function(o,c,e){"use strict";e.r(c),e.d(c,"Typography",function(){return v});var a,i=e(3),s=e.n(i),u=e(0),r=e.n(u),p=e(2),m=["alpha","beta","delta","epsilon","omega","pi","sigma"],b={fontSize:!0,fontWeight:!0},v=e.n(p).a.span.withConfig({shouldForwardProp:function(l,n){return!b[l]&&n(l)}})(a||(a=s()([`
|
|
85
|
+
font-weight: `,`;
|
|
86
|
+
font-size: `,`;
|
|
87
|
+
line-height: `,`;
|
|
88
|
+
color: `,`;
|
|
89
|
+
text-transform: `,`;
|
|
90
|
+
`,`
|
|
91
|
+
`,`
|
|
92
|
+
`])),function(l){var n=l.theme,t=l.fontWeight;return n.fontWeights[t]},function(l){var n=l.theme,t=l.fontSize;return n.fontSizes[t]},function(l){var n=l.theme,t=l.lineHeight;return n.lineHeights[t]},function(l){var n=l.theme,t=l.textColor;return n.colors[t||"neutral800"]},function(l){return l.textTransform},function(l){return l.ellipsis&&`
|
|
93
|
+
display: block;
|
|
94
|
+
white-space: nowrap;
|
|
95
|
+
overflow: hidden;
|
|
96
|
+
text-overflow: ellipsis;
|
|
97
|
+
`},function(l){var n=l.variant,t=l.theme;switch(n){case"alpha":return`
|
|
98
|
+
font-weight: `.concat(t.fontWeights.bold,`;
|
|
99
|
+
font-size: `).concat(t.fontSizes[5],`;
|
|
100
|
+
line-height: `).concat(t.lineHeights[2],`;
|
|
101
|
+
`);case"beta":return`
|
|
102
|
+
font-weight: `.concat(t.fontWeights.bold,`;
|
|
103
|
+
font-size: `).concat(t.fontSizes[4],`;
|
|
104
|
+
line-height: `).concat(t.lineHeights[1],`;
|
|
105
|
+
`);case"delta":return`
|
|
106
|
+
font-weight: `.concat(t.fontWeights.semiBold,`;
|
|
107
|
+
font-size: `).concat(t.fontSizes[3],`;
|
|
108
|
+
line-height: `).concat(t.lineHeights[2],`;
|
|
109
|
+
`);case"epsilon":return`
|
|
110
|
+
font-size: `.concat(t.fontSizes[3],`;
|
|
111
|
+
line-height: `).concat(t.lineHeights[6],`;
|
|
112
|
+
`);case"omega":return`
|
|
113
|
+
font-size: `.concat(t.fontSizes[2],`;
|
|
114
|
+
line-height: `).concat(t.lineHeights[4],`;
|
|
115
|
+
`);case"pi":return`
|
|
116
|
+
font-size: `.concat(t.fontSizes[1],`;
|
|
117
|
+
line-height: `).concat(t.lineHeights[3],`;
|
|
118
|
+
`);case"sigma":return`
|
|
119
|
+
font-weight: `.concat(t.fontWeights.bold,`;
|
|
120
|
+
font-size: `).concat(t.fontSizes[0],`;
|
|
121
|
+
line-height: `).concat(t.lineHeights[5],`;
|
|
122
|
+
text-transform: uppercase;
|
|
123
|
+
`);default:return`
|
|
124
|
+
font-size: `.concat(t.fontSizes[2],`;
|
|
125
|
+
`)}});v.defaultProps={fontWeight:void 0,fontSize:void 0,lineHeight:void 0,textColor:void 0,textTransform:void 0,variant:"omega"},v.propTypes={fontSize:r.a.oneOfType([r.a.number,r.a.string]),fontWeight:r.a.string,lineHeight:r.a.oneOfType([r.a.number,r.a.string]),textColor:r.a.string,textTransform:r.a.string,variant:r.a.oneOf(m)}},function(o,c,e){"use strict";e.r(c),e.d(c,"Flex",function(){return n});var a,i=e(3),s=e.n(i),u=e(0),r=e.n(u),p=e(2),m=e.n(p),b=e(6),v=e(7),l={direction:!0},n=m()(b.Box).withConfig({shouldForwardProp:function(t,f){return!l[t]&&f(t)}})(a||(a=s()([`
|
|
126
|
+
align-items: `,`;
|
|
127
|
+
display: `,`;
|
|
128
|
+
flex-direction: `,`;
|
|
129
|
+
flex-wrap: `,`;
|
|
130
|
+
`,`};
|
|
131
|
+
justify-content: `,`;
|
|
132
|
+
`])),function(t){return t.alignItems},function(t){return t.inline?"inline-flex":"flex"},function(t){return t.direction},function(t){return t.wrap},function(t){var f=t.gap,h=t.theme;return Object(v.a)("gap",f,h)},function(t){return t.justifyContent});n.defaultProps={alignItems:"center",basis:void 0,direction:"row",gap:void 0,inline:!1,justifyContent:void 0,reverse:!1,wrap:void 0},n.propTypes={alignItems:r.a.string,basis:r.a.oneOfType([r.a.string,r.a.number]),direction:r.a.string,gap:r.a.oneOfType([r.a.shape({desktop:r.a.number,mobile:r.a.number,tablet:r.a.number}),r.a.number,r.a.arrayOf(r.a.number),r.a.string]),inline:r.a.bool,justifyContent:r.a.string,reverse:r.a.bool,wrap:r.a.string}},function(o,c,e){var a=e(25),i=e(26),s=e(22),u=e(27);o.exports=function(r,p){return a(r)||i(r,p)||s(r,p)||u()},o.exports.default=o.exports,o.exports.__esModule=!0},function(o,c,e){"use strict";e.d(c,"a",function(){return a});var a={DOWN:"ArrowDown",UP:"ArrowUp",RIGHT:"ArrowRight",LEFT:"ArrowLeft",ESCAPE:"Escape",ENTER:"Enter",SPACE:" ",TAB:"Tab",END:"End",HOME:"Home",DELETE:"Delete",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown",BACKSPACE:"Backspace",CLEAR:"Clear"}},,function(o,c){function e(a){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?(o.exports=e=function(i){return typeof i},o.exports.default=o.exports,o.exports.__esModule=!0):(o.exports=e=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},o.exports.default=o.exports,o.exports.__esModule=!0),e(a)}o.exports=e,o.exports.default=o.exports,o.exports.__esModule=!0},,,,,,function(o,c,e){"use strict";var a=e(20);function i(){}function s(){}s.resetWarningCache=i,o.exports=function(){function u(m,b,v,l,n,t){if(t!==a){var f=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 f.name="Invariant Violation",f}}function r(){return u}u.isRequired=u;var p={array:u,bool:u,func:u,number:u,object:u,string:u,symbol:u,any:u,arrayOf:r,element:u,elementType:u,instanceOf:r,node:u,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:s,resetWarningCache:i};return p.PropTypes=p,p}},function(o,c,e){"use strict";o.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(o,c){o.exports=function(e,a){(a==null||a>e.length)&&(a=e.length);for(var i=0,s=new Array(a);i<a;i++)s[i]=e[i];return s},o.exports.default=o.exports,o.exports.__esModule=!0},function(o,c,e){var a=e(21);o.exports=function(i,s){if(i){if(typeof i=="string")return a(i,s);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)?a(i,s):void 0}},o.exports.default=o.exports,o.exports.__esModule=!0},,function(o,c){o.exports=function(e,a){if(e==null)return{};var i,s,u={},r=Object.keys(e);for(s=0;s<r.length;s++)i=r[s],a.indexOf(i)>=0||(u[i]=e[i]);return u},o.exports.default=o.exports,o.exports.__esModule=!0},function(o,c){o.exports=function(e){if(Array.isArray(e))return e},o.exports.default=o.exports,o.exports.__esModule=!0},function(o,c){o.exports=function(e,a){var i=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(i!=null){var s,u,r=[],p=!0,m=!1;try{for(i=i.call(e);!(p=(s=i.next()).done)&&(r.push(s.value),!a||r.length!==a);p=!0);}catch(b){m=!0,u=b}finally{try{p||i.return==null||i.return()}finally{if(m)throw u}}return r}},o.exports.default=o.exports,o.exports.__esModule=!0},function(o,c){o.exports=function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
133
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)},o.exports.default=o.exports,o.exports.__esModule=!0},,function(o,c,e){var a=e(42),i=e(43),s=e(22),u=e(44);o.exports=function(r){return a(r)||i(r)||s(r)||u()},o.exports.default=o.exports,o.exports.__esModule=!0},,,,,,,,,,function(o,c,e){"use strict";e.d(c,"a",function(){return s});var a=e(29),i=e.n(a),s=function(u,r){return i()(u.querySelectorAll('a, button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])')).filter(function(p){return!p.hasAttribute("disabled")&&(!!r||p.getAttribute("tabindex")!=="-1")})}},,,function(o,c,e){var a=e(21);o.exports=function(i){if(Array.isArray(i))return a(i)},o.exports.default=o.exports,o.exports.__esModule=!0},function(o,c){o.exports=function(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)},o.exports.default=o.exports,o.exports.__esModule=!0},function(o,c){o.exports=function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
134
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)},o.exports.default=o.exports,o.exports.__esModule=!0},,function(o,c,e){"use strict";e.d(c,"a",function(){return i}),e.d(c,"b",function(){return s});var a=e(1),i=Object(a.createContext)({rowIndex:0,colIndex:0}),s=function(){return Object(a.useContext)(i)}},,,,,,function(o,c,e){"use strict";e.r(c),e.d(c,"Divider",function(){return g});var a,i=e(5),s=e.n(i),u=e(4),r=e.n(u),p=e(3),m=e.n(p),b=e(1),v=e.n(b),l=e(0),n=e.n(l),t=e(6),f=e(2),h=["unsetMargin"],x=e.n(f)()(t.Box)(a||(a=m()([`
|
|
135
|
+
height: 1px;
|
|
136
|
+
border: none;
|
|
137
|
+
`,`
|
|
138
|
+
`])),function(O){return O.unsetMargin?"margin: 0;":""}),g=function(O){var w=O.unsetMargin,T=r()(O,h);return v.a.createElement(x,s()({},T,{as:"hr",unsetMargin:w}))};g.defaultProps={background:"neutral150",unsetMargin:!0},g.propTypes={background:n.a.string,unsetMargin:n.a.bool}},,,,,,,,,function(o,c,e){"use strict";e.d(c,"b",function(){return f}),e.d(c,"a",function(){return h});var a=e(5),i=e.n(a),s=e(4),u=e.n(s),r=e(1),p=e.n(r),m=e(0),b=e.n(m),v=e(6),l=e(39),n=["isFocusable"],t=["isFocusable"],f=function(x){var g=x.isFocusable,O=u()(x,n),w=Object(r.useRef)(null);return Object(r.useLayoutEffect)(function(){var T=Object(l.a)(w.current,!0);T.length===0?w.current.setAttribute("tabIndex",g?0:-1):T.forEach(function(S){return S.setAttribute("tabIndex",g?0:-1)})},[g]),p.a.createElement(v.Box,i()({as:"th",ref:w},O))},h=function(x){var g=x.isFocusable,O=u()(x,t),w=Object(r.useRef)(null);return Object(r.useLayoutEffect)(function(){var T=Object(l.a)(w.current,!0);T.length===0?w.current.setAttribute("tabIndex",g?0:-1):T.forEach(function(S){return S.setAttribute("tabIndex",g?0:-1)})},[g]),p.a.createElement(v.Box,i()({as:"td",ref:w},O))};f.defaultProps={isFocusable:!1},f.propTypes={isFocusable:b.a.bool},h.defaultProps={isFocusable:!1},h.propTypes={isFocusable:b.a.bool}},,,,,,,,function(o,c,e){"use strict";e.d(c,"a",function(){return v});var a=e(4),i=e.n(a),s=e(1),u=e.n(s),r=e(0),p=e.n(r),m=e(46),b=["children"],v=function(l){var n=l.children,t=i()(l,b),f=Object(m.b)(),h=f.rowIndex,x=f.colIndex,g=s.Children.toArray(n).map(function(O,w){return Object(s.cloneElement)(O,{focusedColIndex:h===w?x:void 0,"aria-rowindex":1})});return u.a.createElement("thead",t,g)};v.propTypes={children:p.a.node.isRequired}},function(o,c,e){"use strict";e.d(c,"a",function(){return v});var a=e(4),i=e.n(a),s=e(1),u=e.n(s),r=e(0),p=e.n(r),m=e(46),b=["children"],v=function(l){var n=l.children,t=i()(l,b),f=Object(m.b)(),h=f.rowIndex,x=f.colIndex,g=s.Children.toArray(n).map(function(O,w){return Object(s.cloneElement)(O,{focusedColIndex:h-1===w?x:void 0,"aria-rowindex":w+2})});return u.a.createElement("tbody",t,g)};v.propTypes={children:p.a.node.isRequired}},function(o,c,e){"use strict";e.d(c,"a",function(){return n});var a=e(5),i=e.n(a),s=e(4),u=e.n(s),r=e(1),p=e.n(r),m=e(0),b=e.n(m),v=e(6),l=["children","focusedColIndex"],n=function(t){var f=t.children,h=t.focusedColIndex,x=u()(t,l),g=r.Children.toArray(f).map(function(O,w){return Object(r.cloneElement)(O,{isFocusable:h===w,"aria-colindex":w+1})});return p.a.createElement(v.Box,i()({as:"tr"},x),g)};n.defaultProps={focusedColIndex:void 0},n.propTypes={children:b.a.node.isRequired,focusedColIndex:b.a.number}},function(o,c,e){"use strict";e.d(c,"a",function(){return h});var a=e(5),i=e.n(a),s=e(10),u=e.n(s),r=e(4),p=e.n(r),m=e(1),b=e.n(m),v=e(0),l=e.n(v),n=e(46),t=e(11),f=["colCount","rowCount","jumpStep","initialCol","initialRow"],h=function(x){var g=x.colCount,O=x.rowCount,w=x.jumpStep,T=x.initialCol,S=x.initialRow,N=p()(x,f),W=Object(m.useRef)(null),R=Object(m.useRef)(!1),U=Object(m.useState)(S),B=u()(U,2),k=B[0],j=B[1],H=Object(m.useState)(T),P=u()(H,2),A=P[0],C=P[1];return Object(m.useEffect)(function(){var E,y;R.current&&(E=W.current,(y=E.querySelector('[tabindex="0"]'))&&y.focus()),R.current||(R.current=!0)},[A,k]),b.a.createElement(n.a.Provider,{value:{rowIndex:k,colIndex:A}},b.a.createElement("table",i()({ref:W,"aria-rowcount":O,"aria-colcount":g,onKeyDown:function(E){switch(E.key){case t.a.RIGHT:E.preventDefault(),C(function(y){return y<g-1?y+1:y});break;case t.a.LEFT:E.preventDefault(),C(function(y){return y>0?y-1:y});break;case t.a.UP:E.preventDefault(),j(function(y){return y>0?y-1:y});break;case t.a.DOWN:E.preventDefault(),j(function(y){return y<O-1?y+1:y});break;case t.a.HOME:E.preventDefault(),E.ctrlKey&&j(0),C(0);break;case t.a.END:E.preventDefault(),E.ctrlKey&&j(O-1),C(g-1);break;case t.a.PAGE_DOWN:E.preventDefault(),j(function(y){return y+w<O?y+w:O-1});break;case t.a.PAGE_UP:E.preventDefault(),j(function(y){return y-w>0?y-w:0})}}},N)))};h.defaultProps={jumpStep:3,initialCol:0,initialRow:0},h.propTypes={colCount:l.a.number.isRequired,initialCol:l.a.number,initialRow:l.a.number,jumpStep:l.a.number,rowCount:l.a.number.isRequired}},,,,,,,,,,,,,,,,,,,,,,,,,,,,function(o,c,e){"use strict";e.r(c),e.d(c,"Table",function(){return k}),e.d(c,"Tbody",function(){return te}),e.d(c,"Thead",function(){return ie}),e.d(c,"Tr",function(){return ce}),e.d(c,"Th",function(){return G}),e.d(c,"Td",function(){return le}),e.d(c,"TFooter",function(){return Z});var a,i,s,u,r=e(5),p=e.n(r),m=e(10),b=e.n(m),v=e(4),l=e.n(v),n=e(3),t=e.n(n),f=e(1),h=e.n(f),x=e(0),g=e.n(x),O=e(72),w=e(2),T=e.n(w),S=e(6),N=["colCount","rowCount","footer"],W=T()(S.Box)(a||(a=t()([`
|
|
139
|
+
overflow: hidden;
|
|
140
|
+
border: 1px solid `,`;
|
|
141
|
+
`])),function(d){return d.theme.colors.neutral150}),R=T()(O.a)(i||(i=t()([`
|
|
142
|
+
width: 100%;
|
|
143
|
+
white-space: nowrap;
|
|
144
|
+
`]))),U=T()(S.Box)(s||(s=t()([`
|
|
145
|
+
position: relative;
|
|
146
|
+
|
|
147
|
+
&:before {
|
|
148
|
+
// TODO: make sure to add a token for this weird stuff
|
|
149
|
+
background: linear-gradient(90deg, #c0c0cf 0%, rgba(0, 0, 0, 0) 100%);
|
|
150
|
+
opacity: 0.2;
|
|
151
|
+
position: absolute;
|
|
152
|
+
height: 100%;
|
|
153
|
+
content: `,`;
|
|
154
|
+
box-shadow: `,`;
|
|
155
|
+
width: `,`;
|
|
156
|
+
left: 0;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
&:after {
|
|
160
|
+
// TODO: make sure to add a token for this weird stuff
|
|
161
|
+
background: linear-gradient(270deg, #c0c0cf 0%, rgba(0, 0, 0, 0) 100%);
|
|
162
|
+
opacity: 0.2;
|
|
163
|
+
position: absolute;
|
|
164
|
+
height: 100%;
|
|
165
|
+
content: `,`;
|
|
166
|
+
box-shadow: `,`;
|
|
167
|
+
width: `,`;
|
|
168
|
+
right: 0;
|
|
169
|
+
top: 0;
|
|
170
|
+
}
|
|
171
|
+
`])),function(d){var _=d.overflowing;return _==="both"||_==="left"?"''":void 0},function(d){return d.theme.shadows.tableShadow},function(d){return d.theme.spaces[2]},function(d){var _=d.overflowing;return _==="both"||_==="right"?"''":void 0},function(d){return d.theme.shadows.tableShadow},function(d){return d.theme.spaces[2]}),B=T()(S.Box)(u||(u=t()([`
|
|
172
|
+
overflow-x: auto;
|
|
173
|
+
`]))),k=function(d){var _=d.colCount,I=d.rowCount,M=d.footer,ge=l()(d,N),K=Object(f.useRef)(null),ve=Object(f.useState)(),ee=b()(ve,2),xe=ee[0],F=ee[1];return Object(f.useEffect)(function(){K.current.scrollWidth>K.current.clientWidth&&F("right")},[]),h.a.createElement(W,{shadow:"tableShadow",hasRadius:!0,background:"neutral0"},h.a.createElement(U,{overflowing:xe},h.a.createElement(B,{ref:K,onScroll:function(z){var ye=z.target.scrollWidth-z.target.clientWidth;return z.target.scrollLeft===0?F("right"):z.target.scrollLeft===ye?F("left"):z.target.scrollLeft>0?F("both"):void 0},paddingLeft:6,paddingRight:6},h.a.createElement(R,p()({colCount:_,rowCount:I},ge)))),M)};k.defaultProps={footer:void 0},k.propTypes={colCount:g.a.number.isRequired,footer:g.a.node,rowCount:g.a.number.isRequired};var j,H,P,A,C,E=e(70),y=T()(E.a)(j||(j=t()([`
|
|
174
|
+
& tr:last-of-type {
|
|
175
|
+
border-bottom: none;
|
|
176
|
+
}
|
|
177
|
+
`]))),te=function(d){return h.a.createElement(y,d)},re=e(69),oe=T()(re.a)(H||(H=t()([`
|
|
178
|
+
border-bottom: 1px solid `,`;
|
|
179
|
+
`])),function(d){return d.theme.colors.neutral150}),ie=function(d){return h.a.createElement(oe,d)},ae=e(71),ue=T()(ae.a)(P||(P=t()([`
|
|
180
|
+
border-bottom: 1px solid `,`;
|
|
181
|
+
|
|
182
|
+
& td,
|
|
183
|
+
& th {
|
|
184
|
+
padding: `,`;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
& td:first-of-type,
|
|
188
|
+
& th:first-of-type {
|
|
189
|
+
padding: 0 `,`;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
// Resetting padding values and fixing a height
|
|
193
|
+
th {
|
|
194
|
+
padding-top: 0;
|
|
195
|
+
padding-bottom: 0;
|
|
196
|
+
height: `,`rem;
|
|
197
|
+
}
|
|
198
|
+
`])),function(d){return d.theme.colors.neutral150},function(d){return d.theme.spaces[4]},function(d){return d.theme.spaces[1]},3.5),ce=function(d){return h.a.createElement(ue,d)},X=e(9),V=e(61),se=["children","action"],Y=T()(V.a)(A||(A=t()([`
|
|
199
|
+
vertical-align: middle;
|
|
200
|
+
text-align: left;
|
|
201
|
+
color: `,`;
|
|
202
|
+
outline-offset: -4px;
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* Hack to make sure the checkbox looks aligned
|
|
206
|
+
*/
|
|
207
|
+
input {
|
|
208
|
+
vertical-align: sub;
|
|
209
|
+
}
|
|
210
|
+
`])),function(d){return d.theme.colors.neutral600}),fe=T.a.span(C||(C=t()([`
|
|
211
|
+
svg {
|
|
212
|
+
height: `,`rem;
|
|
213
|
+
}
|
|
214
|
+
`])),.25),G=function(d){var _=d.children,I=d.action,M=l()(d,se);return h.a.createElement(Y,p()({as:V.b},M),h.a.createElement(X.Flex,null,_,h.a.createElement(fe,null,I)))};G.defaultProps={action:void 0},G.propTypes={action:g.a.node,children:g.a.node.isRequired};var $,J,le=function(d){return h.a.createElement(Y,d)},de=e(52),pe=e(8),he=["children","icon"],be=T()(S.Box)($||($=t()([`
|
|
215
|
+
height: `,`rem;
|
|
216
|
+
width: `,`rem;
|
|
217
|
+
border-radius: 50%;
|
|
218
|
+
display: flex;
|
|
219
|
+
justify-content: center;
|
|
220
|
+
align-items: center;
|
|
221
|
+
|
|
222
|
+
svg {
|
|
223
|
+
height: `,`rem;
|
|
224
|
+
width: `,`rem;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
svg path {
|
|
228
|
+
fill: `,`;
|
|
229
|
+
}
|
|
230
|
+
`])),1.5,1.5,.625,.625,function(d){return d.theme.colors.primary600}),me=T()(S.Box)(J||(J=t()([`
|
|
231
|
+
border-radius: 0 0 `," ",`;
|
|
232
|
+
display: block;
|
|
233
|
+
width: 100%;
|
|
234
|
+
border: none;
|
|
235
|
+
`])),function(d){return d.theme.borderRadius},function(d){return d.theme.borderRadius}),Z=function(d){var _=d.children,I=d.icon,M=l()(d,he);return h.a.createElement("div",null,h.a.createElement(de.Divider,null),h.a.createElement(me,p()({as:"button",background:"primary100",padding:5},M),h.a.createElement(X.Flex,null,h.a.createElement(be,{"aria-hidden":!0,background:"primary200"},I),h.a.createElement(S.Box,{paddingLeft:3},h.a.createElement(pe.Typography,{variant:"pi",fontWeight:"bold",textColor:"primary600"},_)))))};Z.propTypes={children:g.a.string.isRequired,icon:g.a.node.isRequired}}])})}}]);
|