@strapi/admin 4.5.0 → 4.5.2
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/LeftMenu/index.js +22 -4
- package/admin/src/content-manager/components/DynamicTable/CellContent/RelationMultiple/index.js +4 -3
- package/admin/src/content-manager/components/DynamicZone/components/{AddComponentButton/index.js → AddComponentButton.js} +12 -6
- package/admin/src/content-manager/components/DynamicZone/components/{ComponentPicker/Category/ComponentCard/index.js → ComponentCard.js} +8 -19
- package/admin/src/content-manager/components/DynamicZone/components/{ComponentPicker/Category/index.js → ComponentCategory.js} +19 -18
- package/admin/src/content-manager/components/DynamicZone/components/{ComponentPicker/index.js → ComponentPicker.js} +36 -38
- package/admin/src/content-manager/components/DynamicZone/components/DynamicComponent.js +195 -0
- package/admin/src/content-manager/components/DynamicZone/components/{DzLabel/index.js → DynamicZoneLabel.js} +13 -5
- package/admin/src/content-manager/components/DynamicZone/index.js +33 -118
- package/admin/src/content-manager/pages/ListSettingsView/components/Settings.js +79 -76
- package/admin/src/pages/HomePage/index.js +1 -1
- package/admin/src/pages/MarketplacePage/components/NpmPackagesFilters/FilterSelect.js +2 -1
- package/admin/src/pages/MarketplacePage/components/NpmPackagesFilters/index.js +1 -0
- package/admin/src/pages/SettingsPage/pages/ApiTokens/EditView/components/FormApiTokenContainer/index.js +2 -2
- package/admin/src/pages/SettingsPage/pages/ApiTokens/EditView/components/FormBody/index.js +1 -1
- package/admin/src/pages/SettingsPage/pages/ApiTokens/EditView/components/FormHead/index.js +1 -1
- package/admin/src/translations/nl.json +210 -23
- package/admin/src/translations/pt-BR.json +14 -14
- package/admin/src/translations/pt.json +33 -32
- package/admin/src/translations/sv.json +117 -85
- package/admin/src/translations/zh.json +280 -95
- package/build/{7692.a36fb2c2.chunk.js → 1233.bddaaa76.chunk.js} +144 -445
- package/build/1920.208c77f8.chunk.js +245 -0
- package/build/2438.afe24949.chunk.js +2525 -0
- package/build/2517.5cc235ba.chunk.js +117 -0
- package/build/4306.e62b841c.chunk.js +98 -0
- package/build/4318.7931eee7.chunk.js +30 -0
- package/build/4986.3820d11d.chunk.js +145 -0
- package/build/{8469.41c8d25f.chunk.js → 5015.f080b64e.chunk.js} +6 -1
- package/build/504.9aeff724.chunk.js +758 -0
- package/build/805.a1894307.chunk.js +138 -0
- package/build/8633.8da5488a.chunk.js +1 -0
- package/build/9707.932a3c12.chunk.js +70 -0
- package/build/Admin-authenticatedApp.7484bdf1.chunk.js +80 -0
- package/build/Admin_InternalErrorPage.e0317a5e.chunk.js +1 -0
- package/build/Admin_homePage.54e33c2d.chunk.js +77 -0
- package/build/Admin_marketplace.ff012eb2.chunk.js +26 -0
- package/build/Admin_pluginsPage.3c872de7.chunk.js +6 -0
- package/build/Admin_profilePage.e9fcce92.chunk.js +15 -0
- package/build/Admin_settingsPage.a1a5218b.chunk.js +178 -0
- package/build/admin-app.9cb0abc7.chunk.js +112 -0
- package/build/admin-edit-roles-page.23f15909.chunk.js +1 -0
- package/build/admin-edit-users.283b49ed.chunk.js +10 -0
- package/build/admin-users.a0748674.chunk.js +11 -0
- package/build/api-tokens-list-page.700e575f.chunk.js +16 -0
- package/build/content-manager.577fddcb.chunk.js +1200 -0
- package/build/content-type-builder-list-view.95012cf0.chunk.js +201 -0
- package/build/content-type-builder-translation-pt-BR-json.6fe3b8d1.chunk.js +1 -0
- package/build/content-type-builder-translation-pt-json.96a31576.chunk.js +1 -0
- package/build/content-type-builder-translation-zh-json.3b0afd31.chunk.js +1 -0
- package/build/content-type-builder.95b9d6a2.chunk.js +145 -0
- package/build/email-settings-page.4bb3606f.chunk.js +15 -0
- package/build/email-translation-en-json.ebad8943.chunk.js +1 -0
- package/build/email-translation-pt-json.159505ab.chunk.js +1 -0
- package/build/email-translation-zh-json.62b1c6fe.chunk.js +1 -0
- package/build/i18n-settings-page.195d42fe.chunk.js +1 -0
- package/build/i18n-translation-zh-json.eeebb849.chunk.js +1 -0
- package/build/index.html +1 -1
- package/build/main.23670c4c.js +2026 -0
- package/build/nl-json.26f39180.chunk.js +1 -0
- package/build/pt-BR-json.2b72b1d6.chunk.js +1 -0
- package/build/pt-json.cd67ba86.chunk.js +1 -0
- package/build/runtime~main.4dc8c7c6.js +2 -0
- package/build/sso-settings-page.9f091262.chunk.js +1 -0
- package/build/sv-json.fb1081ff.chunk.js +1 -0
- package/build/upload-settings.3010911f.chunk.js +18 -0
- package/build/upload-translation-pt-json.5c452b48.chunk.js +1 -0
- package/build/upload-translation-zh-json.ac5711de.chunk.js +1 -0
- package/build/upload.9f19f2e8.chunk.js +64 -0
- package/build/users-advanced-settings-page.9df41d67.chunk.js +13 -0
- package/build/users-email-settings-page.56d82eaf.chunk.js +28 -0
- package/build/users-permissions-translation-sv-json.d5d11648.chunk.js +1 -0
- package/build/users-permissions-translation-zh-json.92f406f9.chunk.js +1 -0
- package/build/users-providers-settings-page.96bb7da0.chunk.js +33 -0
- package/build/users-roles-settings-page.445e5e16.chunk.js +30 -0
- package/build/webhook-edit-page.3285abc4.chunk.js +75 -0
- package/build/webhook-list-page.b87821f2.chunk.js +42 -0
- package/build/zh-json.2ecc6b99.chunk.js +1 -0
- package/jest.config.front.js +0 -1
- package/package.json +17 -16
- package/server/content-types/api-token.js +1 -1
- package/webpack.alias.js +3 -2
- package/webpack.config.js +13 -1
- package/admin/src/content-manager/components/DynamicZone/components/Component/Rectangle.js +0 -19
- package/admin/src/content-manager/components/DynamicZone/components/Component/index.js +0 -191
- package/admin/src/content-manager/icons/Bold/index.js +0 -22
- package/admin/src/content-manager/icons/Code/index.js +0 -13
- package/admin/src/content-manager/icons/Cross/index.js +0 -28
- package/admin/src/content-manager/icons/Italic/index.js +0 -23
- package/admin/src/content-manager/icons/Link/index.js +0 -21
- package/admin/src/content-manager/icons/Media/index.js +0 -14
- package/admin/src/content-manager/icons/Na/index.js +0 -39
- package/admin/src/content-manager/icons/Ol/index.js +0 -13
- package/admin/src/content-manager/icons/Quote/index.js +0 -13
- package/admin/src/content-manager/icons/Striked/index.js +0 -24
- package/admin/src/content-manager/icons/Ul/index.js +0 -15
- package/admin/src/content-manager/icons/Underline/index.js +0 -22
- package/build/1856.172d5fa0.chunk.js +0 -174
- package/build/2077.058590f4.chunk.js +0 -206
- package/build/2912.2c42c07b.chunk.js +0 -259
- package/build/4318.5e670740.chunk.js +0 -30
- package/build/4715.22747b59.chunk.js +0 -387
- package/build/4800.a6935af6.chunk.js +0 -1
- package/build/4982.1b75ddb1.chunk.js +0 -325
- package/build/6925.f5c8b6fc.chunk.js +0 -761
- package/build/7379.d246dd38.chunk.js +0 -1
- package/build/7841.c50e9509.chunk.js +0 -259
- package/build/7866.ba215f99.chunk.js +0 -505
- package/build/8380.e53e7207.chunk.js +0 -299
- package/build/8549.832ed79d.chunk.js +0 -159
- package/build/8738.0fe8a61e.chunk.js +0 -463
- package/build/9066.eaf76ff3.chunk.js +0 -101
- package/build/9166.90876521.chunk.js +0 -342
- package/build/9420.5292d1d2.chunk.js +0 -505
- package/build/9649.468667d9.chunk.js +0 -199
- package/build/Admin-authenticatedApp.c4f68103.chunk.js +0 -80
- package/build/Admin_InternalErrorPage.12e24216.chunk.js +0 -1
- package/build/Admin_homePage.26d32e30.chunk.js +0 -72
- package/build/Admin_marketplace.32375885.chunk.js +0 -22
- package/build/Admin_pluginsPage.4d59785a.chunk.js +0 -1
- package/build/Admin_profilePage.da32abbc.chunk.js +0 -15
- package/build/Admin_settingsPage.bf2234e1.chunk.js +0 -178
- package/build/admin-app.9049056c.chunk.js +0 -112
- package/build/admin-edit-roles-page.69d9fcb2.chunk.js +0 -1
- package/build/admin-edit-users.c585212f.chunk.js +0 -10
- package/build/admin-users.d71f198a.chunk.js +0 -11
- package/build/api-tokens-list-page.bb36535f.chunk.js +0 -16
- package/build/content-manager.ff998bed.chunk.js +0 -1204
- package/build/content-type-builder-list-view.5b3cd768.chunk.js +0 -194
- package/build/content-type-builder-translation-pt-BR-json.d6c7fcc1.chunk.js +0 -1
- package/build/content-type-builder-translation-pt-json.766bd747.chunk.js +0 -1
- package/build/content-type-builder-translation-zh-json.2cc55621.chunk.js +0 -1
- package/build/content-type-builder.16af63a6.chunk.js +0 -145
- package/build/email-settings-page.c3469093.chunk.js +0 -103
- package/build/email-translation-en-json.3d74ff95.chunk.js +0 -1
- package/build/email-translation-pt-json.959ea070.chunk.js +0 -1
- package/build/email-translation-zh-json.3455468b.chunk.js +0 -1
- package/build/i18n-settings-page.46d894ff.chunk.js +0 -101
- package/build/main.91328e7a.js +0 -9381
- package/build/nl-json.2b8cc3a0.chunk.js +0 -1
- package/build/pt-BR-json.7852f808.chunk.js +0 -1
- package/build/pt-json.3161ca22.chunk.js +0 -1
- package/build/runtime~main.c9c319c0.js +0 -2
- package/build/sso-settings-page.9ceb0140.chunk.js +0 -1
- package/build/sv-json.8e5a7911.chunk.js +0 -1
- package/build/upload-settings.53b690f3.chunk.js +0 -101
- package/build/upload-translation-zh-json.ee8fba96.chunk.js +0 -1
- package/build/upload.7084cea6.chunk.js +0 -7
- package/build/users-advanced-settings-page.3f4ee86e.chunk.js +0 -101
- package/build/users-email-settings-page.73c41236.chunk.js +0 -1
- package/build/users-permissions-translation-sv-json.83c60841.chunk.js +0 -1
- package/build/users-permissions-translation-zh-json.e03ae2a4.chunk.js +0 -1
- package/build/users-providers-settings-page.f8e78537.chunk.js +0 -1
- package/build/users-roles-settings-page.b33ec5e5.chunk.js +0 -30
- package/build/webhook-edit-page.dc9442ce.chunk.js +0 -23
- package/build/webhook-list-page.02191138.chunk.js +0 -134
- package/build/zh-json.608aaf24.chunk.js +0 -1
|
@@ -1,505 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[9420],{89420:(ve,He,V)=>{"use strict";ve.exports=V(1829)},1829:function(ve,He,V){var we=V(98399);(function(ue,J){ve.exports=J(V(32735),V(19615),V(60672),V(12788),V(38938),V(94009),V(57235))})(this,function(ue,J,_,x,A,G,fe){return function(o){var h={};function e(i){if(h[i])return h[i].exports;var c=h[i]={i,l:!1,exports:{}};return o[i].call(c.exports,c,c.exports,e),c.l=!0,c.exports}return e.m=o,e.c=h,e.d=function(i,c,p){e.o(i,c)||Object.defineProperty(i,c,{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,c){if(1&c&&(i=e(i)),8&c||4&c&&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&c&&typeof i!="string")for(var f in i)e.d(p,f,function(g){return i[g]}.bind(null,f));return p},e.n=function(i){var c=i&&i.__esModule?function(){return i.default}:function(){return i};return e.d(c,"a",c),c},e.o=function(i,c){return Object.prototype.hasOwnProperty.call(i,c)},e.p="",e(e.s=50)}([function(o,h,e){o.exports=e(28)()},function(o,h){o.exports=ue},function(o,h){o.exports=function(e,i){return i||(i=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(i)}}))},o.exports.default=o.exports,o.exports.__esModule=!0},function(o,h){o.exports=J},function(o,h){function e(){return o.exports=e=Object.assign||function(i){for(var c=1;c<arguments.length;c++){var p=arguments[c];for(var f in p)Object.prototype.hasOwnProperty.call(p,f)&&(i[f]=p[f])}return i},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,h,e){var i=e(27);o.exports=function(c,p){if(c==null)return{};var f,g,b=i(c,p);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(c);for(g=0;g<v.length;g++)f=v[g],p.indexOf(f)>=0||Object.prototype.propertyIsEnumerable.call(c,f)&&(b[f]=c[f])}return b},o.exports.default=o.exports,o.exports.__esModule=!0},function(o,h,e){"use strict";e.d(h,"a",function(){return E});var i,c=e(2),p=e.n(c),f=e(3),g=e.n(f),b=e(8),v=e(1),m=e.n(v),u=e(0),s=e.n(u),d=function(n){return m.a.createElement("div",n)},O={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(){}},a={_hover:s.a.func,background:s.a.string,basis:s.a.oneOfType([s.a.string,s.a.string]),borderColor:s.a.string,children:s.a.oneOfType([s.a.node,s.a.string]),color:s.a.string,flex:s.a.oneOfType([s.a.string,s.a.string]),grow:s.a.oneOfType([s.a.string,s.a.string]),hasRadius:s.a.bool,hiddenS:s.a.bool,hiddenXS:s.a.bool,padding:s.a.oneOfType([s.a.number,s.a.arrayOf(s.a.number)]),paddingBottom:s.a.oneOfType([s.a.number,s.a.arrayOf(s.a.number)]),paddingLeft:s.a.oneOfType([s.a.number,s.a.arrayOf(s.a.number)]),paddingRight:s.a.oneOfType([s.a.number,s.a.arrayOf(s.a.number)]),paddingTop:s.a.oneOfType([s.a.number,s.a.arrayOf(s.a.number)]),shadow:s.a.string,shrink:s.a.oneOfType([s.a.string,s.a.string])};d.defaultProps=O,d.propTypes=a;var R={color:!0},E=g.a.div.withConfig({shouldForwardProp:function(n,r){return!R[n]&&r(n)}})(i||(i=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,l=n.background;return r.colors[l]},function(n){var r=n.theme,l=n.color;return r.colors[l]},function(n){var r=n.theme,l=n.padding;return Object(b.a)("padding",l,r)},function(n){var r=n.theme,l=n.paddingTop;return Object(b.a)("padding-top",l,r)},function(n){var r=n.theme,l=n.paddingRight;return Object(b.a)("padding-right",l,r)},function(n){var r=n.theme,l=n.paddingBottom;return Object(b.a)("padding-bottom",l,r)},function(n){var r=n.theme,l=n.paddingLeft;return Object(b.a)("padding-left",l,r)},function(n){var r=n.theme,l=n.marginLeft;return Object(b.a)("margin-left",l,r)},function(n){var r=n.theme,l=n.marginRight;return Object(b.a)("margin-right",l,r)},function(n){var r=n.theme,l=n.marginTop;return Object(b.a)("margin-top",l,r)},function(n){var r=n.theme,l=n.marginBottom;return Object(b.a)("margin-bottom",l,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,l=n.hasRadius,L=n.borderRadius;return l?r.borderRadius:L},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,l=n.borderColor,L=n.borderStyle,H=n.borderWidth;if(l&&!L&&!H)return"1px solid ".concat(r.colors[l])},function(n){var r=n.theme,l=n.shadow;return r.shadows[l]},function(n){return n.pointerEvents},function(n){var r=n._hover,l=n.theme;return r?r(l):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});E.defaultProps=O,E.propTypes=a},function(o,h,e){"use strict";e.d(h,"a",function(){return E});var i,c=e(2),p=e.n(c),f=e(3),g=e.n(f),b=["alpha","beta","delta","epsilon","omega","pi","sigma"],v=e(1),m=e.n(v),u=e(0),s=e.n(u),d=function(n){return m.a.createElement("div",n)},O={ellipsis:!1,fontWeight:void 0,fontSize:void 0,lineHeight:void 0,textColor:void 0,textAlign:void 0,textTransform:void 0,variant:"omega"},a={ellipsis:s.a.bool,fontSize:s.a.oneOfType([s.a.number,s.a.string]),fontWeight:s.a.string,lineHeight:s.a.oneOfType([s.a.number,s.a.string]),textAlign:s.a.string,textColor:s.a.string,textTransform:s.a.string,variant:s.a.oneOf(b)};d.defaultProps=O,d.propTypes=a;var R={fontSize:!0,fontWeight:!0},E=g.a.span.withConfig({shouldForwardProp:function(n,r){return!R[n]&&r(n)}})(i||(i=p()([`
|
|
81
|
-
font-weight: `,`;
|
|
82
|
-
font-size: `,`;
|
|
83
|
-
line-height: `,`;
|
|
84
|
-
color: `,`;
|
|
85
|
-
text-align: `,`;
|
|
86
|
-
text-transform: `,`;
|
|
87
|
-
`,`
|
|
88
|
-
`,`
|
|
89
|
-
`])),function(n){var r=n.theme,l=n.fontWeight;return r.fontWeights[l]},function(n){var r=n.theme,l=n.fontSize;return r.fontSizes[l]},function(n){var r=n.theme,l=n.lineHeight;return r.lineHeights[l]},function(n){var r=n.theme,l=n.textColor;return r.colors[l||"neutral800"]},function(n){return n.textAlign},function(n){return n.textTransform},function(n){return n.ellipsis&&`
|
|
90
|
-
display: block;
|
|
91
|
-
white-space: nowrap;
|
|
92
|
-
overflow: hidden;
|
|
93
|
-
text-overflow: ellipsis;
|
|
94
|
-
`},function(n){var r=n.variant,l=n.theme;switch(r){case"alpha":return`
|
|
95
|
-
font-weight: `.concat(l.fontWeights.bold,`;
|
|
96
|
-
font-size: `).concat(l.fontSizes[5],`;
|
|
97
|
-
line-height: `).concat(l.lineHeights[2],`;
|
|
98
|
-
`);case"beta":return`
|
|
99
|
-
font-weight: `.concat(l.fontWeights.bold,`;
|
|
100
|
-
font-size: `).concat(l.fontSizes[4],`;
|
|
101
|
-
line-height: `).concat(l.lineHeights[1],`;
|
|
102
|
-
`);case"delta":return`
|
|
103
|
-
font-weight: `.concat(l.fontWeights.semiBold,`;
|
|
104
|
-
font-size: `).concat(l.fontSizes[3],`;
|
|
105
|
-
line-height: `).concat(l.lineHeights[2],`;
|
|
106
|
-
`);case"epsilon":return`
|
|
107
|
-
font-size: `.concat(l.fontSizes[3],`;
|
|
108
|
-
line-height: `).concat(l.lineHeights[6],`;
|
|
109
|
-
`);case"omega":return`
|
|
110
|
-
font-size: `.concat(l.fontSizes[2],`;
|
|
111
|
-
line-height: `).concat(l.lineHeights[4],`;
|
|
112
|
-
`);case"pi":return`
|
|
113
|
-
font-size: `.concat(l.fontSizes[1],`;
|
|
114
|
-
line-height: `).concat(l.lineHeights[3],`;
|
|
115
|
-
`);case"sigma":return`
|
|
116
|
-
font-weight: `.concat(l.fontWeights.bold,`;
|
|
117
|
-
font-size: `).concat(l.fontSizes[0],`;
|
|
118
|
-
line-height: `).concat(l.lineHeights[5],`;
|
|
119
|
-
text-transform: uppercase;
|
|
120
|
-
`);default:return`
|
|
121
|
-
font-size: `.concat(l.fontSizes[2],`;
|
|
122
|
-
`)}});E.defaultProps=O,E.propTypes=a},function(o,h,e){"use strict";var i=e(11),c=e.n(i),p=e(18),f=e.n(p);h.a=function(g,b,v){var m=b;if(Array.isArray(b)||f()(b)!=="object"||(m=[b==null?void 0:b.desktop,b==null?void 0:b.tablet,b==null?void 0:b.mobile]),m!==void 0){if(Array.isArray(m)){var u=m,s=c()(u,3),d=s[0],O=s[1],a=s[2],R="".concat(g,": ").concat(v.spaces[d],";");return O!==void 0&&(R+="".concat(v.mediaQueries.tablet,`{
|
|
123
|
-
`).concat(g,": ").concat(v.spaces[O],`;
|
|
124
|
-
}`)),a!==void 0&&(R+="".concat(v.mediaQueries.mobile,`{
|
|
125
|
-
`).concat(g,": ").concat(v.spaces[a],`;
|
|
126
|
-
}`)),R}var E=v.spaces[m]||m;return"".concat(g,": ").concat(E,";")}}},,function(o,h,e){"use strict";e.d(h,"a",function(){return n});var i,c=e(2),p=e.n(c),f=e(3),g=e.n(f),b=e(6),v=e(8),m=e(1),u=e.n(m),s=e(0),d=e.n(s),O=function(r){return u.a.createElement("div",r)},a={alignItems:"center",basis:void 0,direction:"row",gap:void 0,inline:!1,justifyContent:void 0,reverse:!1,wrap:void 0},R={alignItems:d.a.string,basis:d.a.oneOfType([d.a.string,d.a.number]),direction:d.a.string,gap:d.a.oneOfType([d.a.shape({desktop:d.a.number,mobile:d.a.number,tablet:d.a.number}),d.a.number,d.a.arrayOf(d.a.number),d.a.string]),inline:d.a.bool,justifyContent:d.a.string,reverse:d.a.bool,shrink:d.a.number,wrap:d.a.string};O.defaultProps=a,O.propTypes=R;var E={direction:!0},n=g()(b.a).withConfig({shouldForwardProp:function(r,l){return!E[r]&&l(r)}})(i||(i=p()([`
|
|
127
|
-
align-items: `,`;
|
|
128
|
-
display: `,`;
|
|
129
|
-
flex-direction: `,`;
|
|
130
|
-
flex-shrink: `,`;
|
|
131
|
-
flex-wrap: `,`;
|
|
132
|
-
`,`};
|
|
133
|
-
justify-content: `,`;
|
|
134
|
-
`])),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 l=r.gap,L=r.theme;return Object(v.a)("gap",l,L)},function(r){return r.justifyContent});n.defaultProps=a,n.propTypes=R},function(o,h,e){var i=e(30),c=e(31),p=e(22),f=e(32);o.exports=function(g,b){return i(g)||c(g,b)||p(g,b)||f()},o.exports.default=o.exports,o.exports.__esModule=!0},function(o,h,e){"use strict";e.d(h,"a",function(){return E});var i,c=e(4),p=e.n(c),f=e(5),g=e.n(f),b=e(2),v=e.n(b),m=e(1),u=e.n(m),s=e(0),d=e.n(s),O=e(3),a=["href","rel","target","disabled","isExternal"],R=e.n(O).a.a(i||(i=v()([`
|
|
135
|
-
cursor: pointer;
|
|
136
|
-
`]))),E=u.a.forwardRef(function(n,r){var l=n.href,L=n.rel,H=n.target,k=n.disabled,B=n.isExternal,Y=g()(n,a);return u.a.createElement(R,p()({ref:r,target:B?"_blank":H,rel:B?L:void 0,href:k?"#":l,disabled:k},Y))});E.displayName="BaseLink",E.defaultProps={disabled:!1,href:void 0,isExternal:!1,rel:"noreferrer noopener",target:"_self"},E.propTypes={disabled:d.a.bool,href:d.a.string,isExternal:d.a.bool,rel:d.a.string,target:d.a.string}},function(o,h,e){"use strict";e.d(h,"a",function(){return g});var i,c=e(2),p=e.n(c),f=e(3),g=e.n(f).a.div(i||(i=p()([`
|
|
137
|
-
border: 0;
|
|
138
|
-
clip: rect(0 0 0 0);
|
|
139
|
-
height: 1px;
|
|
140
|
-
margin: -1px;
|
|
141
|
-
overflow: hidden;
|
|
142
|
-
padding: 0;
|
|
143
|
-
position: absolute;
|
|
144
|
-
width: 1px;
|
|
145
|
-
`])))},function(o,h,e){"use strict";e.d(h,"a",function(){return p});var i=e(1),c=0,p=function(f,g){return Object(i.useRef)(g||"".concat(f,"-").concat(++c)).current}},,function(o,h,e){"use strict";e.d(h,"b",function(){return i}),e.d(h,"a",function(){return c});var i=function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"&";return function(f){var g=f.theme,b=f.hasError;return`
|
|
146
|
-
outline: none;
|
|
147
|
-
box-shadow: 0;
|
|
148
|
-
transition-property: border-color, box-shadow, fill;
|
|
149
|
-
transition-duration: 0.2s;
|
|
150
|
-
|
|
151
|
-
`.concat(p,`:focus-within {
|
|
152
|
-
border: 1px solid `).concat(b?g.colors.danger600:g.colors.primary600,`;
|
|
153
|
-
box-shadow: `).concat(b?g.colors.danger600:g.colors.primary600,` 0px 0px 0px 2px;
|
|
154
|
-
}
|
|
155
|
-
`)}},c=function(p){var f=p.theme;return`
|
|
156
|
-
position: relative;
|
|
157
|
-
outline: none;
|
|
158
|
-
|
|
159
|
-
&:after {
|
|
160
|
-
transition-property: all;
|
|
161
|
-
transition-duration: 0.2s;
|
|
162
|
-
border-radius: 8px;
|
|
163
|
-
content: '';
|
|
164
|
-
position: absolute;
|
|
165
|
-
top: -4px;
|
|
166
|
-
bottom: -4px;
|
|
167
|
-
left: -4px;
|
|
168
|
-
right: -4px;
|
|
169
|
-
border: 2px solid transparent;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
&:focus-visible {
|
|
173
|
-
outline: none;
|
|
174
|
-
&:after {
|
|
175
|
-
border-radius: 8px;
|
|
176
|
-
content: '';
|
|
177
|
-
position: absolute;
|
|
178
|
-
top: -5px;
|
|
179
|
-
bottom: -5px;
|
|
180
|
-
left: -5px;
|
|
181
|
-
right: -5px;
|
|
182
|
-
border: 2px solid `.concat(f.colors.primary600,`;
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
`)}},function(o,h,e){"use strict";e.d(h,"a",function(){return i});var i={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,h){function e(i){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?(o.exports=e=function(c){return typeof c},o.exports.default=o.exports,o.exports.__esModule=!0):(o.exports=e=function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},o.exports.default=o.exports,o.exports.__esModule=!0),e(i)}o.exports=e,o.exports.default=o.exports,o.exports.__esModule=!0},function(o,h,e){"use strict";e.d(h,"a",function(){return H});var i,c,p=e(4),f=e.n(p),g=e(5),b=e.n(g),v=e(2),m=e.n(v),u=e(1),s=e.n(u),d=e(0),O=e.n(d),a=e(3),R=e.n(a),E=e(10),n=["horizontal","spacing","size"],r={size:!0},l=R()(E.a).withConfig({shouldForwardProp:function(k,B){return!r[k]&&B(k)}})(i||(i=m()([`
|
|
186
|
-
& > * {
|
|
187
|
-
margin-top: 0;
|
|
188
|
-
margin-bottom: 0;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
& > * + * {
|
|
192
|
-
margin-top: `,`;
|
|
193
|
-
}
|
|
194
|
-
`])),function(k){var B=k.theme,Y=k.spacing;return B.spaces[Y]}),L=R()(E.a).withConfig({shouldForwardProp:function(k,B){return!r[k]&&B(k)}})(c||(c=m()([`
|
|
195
|
-
& > * {
|
|
196
|
-
margin-left: 0;
|
|
197
|
-
margin-right: 0;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
& > * + * {
|
|
201
|
-
margin-left: `,`;
|
|
202
|
-
}
|
|
203
|
-
`])),function(k){var B=k.theme,Y=k.spacing;return B.spaces[Y]}),H=Object(u.forwardRef)(function(k,B){var Y=k.horizontal,C=k.spacing,M=k.size,W=b()(k,n);return M&&we.warn('Deprecation warning: Usage of "size" prop in Stack component is deprecated. This is discouraged and will be removed in the next major release. Please use "spacing" instead'),Y?s.a.createElement(L,f()({ref:B,spacing:C||M},W)):s.a.createElement(l,f()({direction:"column",alignItems:"stretch",ref:B,spacing:C||M},W))});H.displayName="Stack",H.defaultProps={horizontal:!1,size:void 0,spacing:void 0},H.propTypes={horizontal:O.a.bool,size:O.a.number,spacing:O.a.number}},function(o,h){o.exports=_},function(o,h){o.exports=x},function(o,h,e){var i=e(23);o.exports=function(c,p){if(c){if(typeof c=="string")return i(c,p);var f=Object.prototype.toString.call(c).slice(8,-1);return f==="Object"&&c.constructor&&(f=c.constructor.name),f==="Map"||f==="Set"?Array.from(c):f==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f)?i(c,p):void 0}},o.exports.default=o.exports,o.exports.__esModule=!0},function(o,h){o.exports=function(e,i){(i==null||i>e.length)&&(i=e.length);for(var c=0,p=new Array(i);c<i;c++)p[c]=e[c];return p},o.exports.default=o.exports,o.exports.__esModule=!0},function(o,h,e){"use strict";e.d(h,"b",function(){return n}),e.d(h,"a",function(){return r});var i,c=e(4),p=e.n(c),f=e(5),g=e.n(f),b=e(2),v=e.n(b),m=e(1),u=e.n(m),s=e(0),d=e.n(s),O=e(3),a=e.n(O),R=e(16),E=["disabled","children"],n=a.a.button(i||(i=v()([`
|
|
204
|
-
display: flex;
|
|
205
|
-
cursor: pointer;
|
|
206
|
-
padding: `,`;
|
|
207
|
-
border-radius: `,`;
|
|
208
|
-
background: `,`;
|
|
209
|
-
border: 1px solid `,`;
|
|
210
|
-
svg {
|
|
211
|
-
height: `,`;
|
|
212
|
-
width: `,`;
|
|
213
|
-
}
|
|
214
|
-
svg {
|
|
215
|
-
> g,
|
|
216
|
-
path {
|
|
217
|
-
fill: `,`;
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
&[aria-disabled='true'] {
|
|
221
|
-
pointer-events: none;
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
`,`
|
|
225
|
-
`])),function(l){return l.theme.spaces[2]},function(l){return l.theme.borderRadius},function(l){return l.theme.colors.neutral0},function(l){return l.theme.colors.neutral200},function(l){return l.theme.spaces[3]},function(l){return l.theme.spaces[3]},function(l){return l.theme.colors.neutral0},R.a),r=u.a.forwardRef(function(l,L){var H=l.disabled,k=l.children,B=g()(l,E);return u.a.createElement(n,p()({ref:L,"aria-disabled":H,type:"button",disabled:H},B),k)});r.displayName="BaseButton",r.defaultProps={disabled:!1},r.propTypes={children:d.a.node.isRequired,disabled:d.a.bool}},function(o,h){o.exports=function(e,i,c){return i in e?Object.defineProperty(e,i,{value:c,enumerable:!0,configurable:!0,writable:!0}):e[i]=c,e},o.exports.default=o.exports,o.exports.__esModule=!0},function(o,h,e){"use strict";e.d(h,"a",function(){return g});var i=e(11),c=e.n(i),p=e(1),f=e(21),g=function(b){var v=b.children,m=Object(p.useRef)(null),u=Object(p.useState)(!1),s=c()(u,2),d=s[0],O=s[1];return Object(p.useLayoutEffect)(function(){return m.current=document.createElement("div"),m.current.setAttribute("data-react-portal","true"),document.body.appendChild(m.current),O(!0),function(){var a;(a=m.current)===null||a===void 0||a.remove()}},[]),d&&m.current?Object(f.createPortal)(v,m.current):null}},function(o,h){o.exports=function(e,i){if(e==null)return{};var c,p,f={},g=Object.keys(e);for(p=0;p<g.length;p++)c=g[p],i.indexOf(c)>=0||(f[c]=e[c]);return f},o.exports.default=o.exports,o.exports.__esModule=!0},function(o,h,e){"use strict";var i=e(29);function c(){}function p(){}p.resetWarningCache=c,o.exports=function(){function f(v,m,u,s,d,O){if(O!==i){var a=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 a.name="Invariant Violation",a}}function g(){return f}f.isRequired=f;var b={array:f,bool:f,func:f,number:f,object:f,string:f,symbol:f,any:f,arrayOf:g,element:f,elementType:f,instanceOf:g,node:f,objectOf:g,oneOf:g,oneOfType:g,shape:g,exact:g,checkPropTypes:p,resetWarningCache:c};return b.PropTypes=b,b}},function(o,h,e){"use strict";o.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(o,h){o.exports=function(e){if(Array.isArray(e))return e},o.exports.default=o.exports,o.exports.__esModule=!0},function(o,h){o.exports=function(e,i){var c=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(c!=null){var p,f,g=[],b=!0,v=!1;try{for(c=c.call(e);!(b=(p=c.next()).done)&&(g.push(p.value),!i||g.length!==i);b=!0);}catch(m){v=!0,f=m}finally{try{b||c.return==null||c.return()}finally{if(v)throw f}}return g}},o.exports.default=o.exports,o.exports.__esModule=!0},function(o,h){o.exports=function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
226
|
-
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,h,e){"use strict";e.d(h,"a",function(){return ge});var i,c=e(4),p=e.n(c),f=e(25),g=e.n(f),b=e(5),v=e.n(b),m=e(2),u=e.n(m),s=e(1),d=e.n(s),O=e(0),a=e.n(O),R=e(3),E=e.n(R),n=e(6),r=e(7),l=e(26),L=e(11),H=e.n(L),k=function(I,te,q){var S=I.getBoundingClientRect(),ce=te.getBoundingClientRect();return q==="bottom"?function(U,j){var Z=(U.width-j.width)/2;return{left:j.left-Z,top:j.top+j.height+8+window.pageYOffset}}(S,ce):q==="right"?function(U,j){var Z=(U.height-j.height)/2;return{left:j.left+j.width+8,top:j.top-Z+window.pageYOffset}}(S,ce):q==="left"?function(U,j){var Z=(U.height-j.height)/2;return{left:j.left-U.width-8,top:j.top-Z+window.pageYOffset}}(S,ce):function(U,j){var Z=(U.width-j.width)/2,ee=j.left-Z,le=j.top-U.height-8+window.pageYOffset,se=window.innerWidth-j.right;return j.left+U.width-se>window.innerWidth?(ee=j.left-U.width-8,le=j.top+window.scrollY-j.height/2):ee<0?(ee=j.width+j.left+8,le=j.top+window.scrollY-U.height/2+8):le<0&&ee>0&&(le=j.top+j.height+8),{left:ee,top:le}}(S,ce)},B=e(14),Y=e(13),C=["children","label","description","delay","position","id"],M=["visible"];function W(I,te){var q=Object.keys(I);if(Object.getOwnPropertySymbols){var S=Object.getOwnPropertySymbols(I);te&&(S=S.filter(function(ce){return Object.getOwnPropertyDescriptor(I,ce).enumerable})),q.push.apply(q,S)}return q}var he=E()(n.a)(i||(i=u()([`
|
|
227
|
-
position: absolute;
|
|
228
|
-
/* z-index exist because of its position inside Modals */
|
|
229
|
-
z-index: 4;
|
|
230
|
-
display: `,`;
|
|
231
|
-
`])),function(I){return I.visible?"revert":"none"}),ge=function(I){var te=I.children,q=I.label,S=I.description,ce=I.delay,U=I.position,j=I.id,Z=v()(I,C),ee=Object(B.a)("tooltip",j),le=Object(B.a)("description"),se=function(re){var $=Object(s.useState)(!1),Q=H()($,2),K=Q[0],oe=Q[1],me=Object(s.useRef)(),pe=function(){me.current&&clearTimeout(me.current)};return Object(s.useEffect)(function(){return function(){pe()}},[]),{visible:K,onFocus:function(){oe(!0)},onBlur:function(){oe(!1)},onMouseEnter:function(){me.current=setTimeout(function(){oe(!0)},re)},onMouseLeave:function(){pe(),oe(!1)}}}(ce),ye=se.visible,xe=v()(se,M),Oe=function(re,$){var Q=Object(s.useRef)(null),K=Object(s.useRef)(null);return Object(s.useLayoutEffect)(function(){if(re){var oe=Q.current,me=K.current,pe=k(oe,me,$);oe.style.left="".concat(pe.left,"px"),oe.style.top="".concat(pe.top,"px")}},[re]),{tooltipWrapperRef:Q,toggleSourceRef:K}}(ye,U),Ce=Oe.tooltipWrapperRef,Pe=Oe.toggleSourceRef,ze=d.a.cloneElement(te,function(re){for(var $=1;$<arguments.length;$++){var Q=arguments[$]!=null?arguments[$]:{};$%2?W(Object(Q),!0).forEach(function(K){g()(re,K,Q[K])}):Object.getOwnPropertyDescriptors?Object.defineProperties(re,Object.getOwnPropertyDescriptors(Q)):W(Object(Q)).forEach(function(K){Object.defineProperty(re,K,Object.getOwnPropertyDescriptor(Q,K))})}return re}({tabIndex:0,"aria-labelledby":q?ee:void 0,"aria-describedby":S?ee:void 0},xe));return d.a.createElement(d.a.Fragment,null,d.a.createElement(l.a,null,d.a.createElement(he,p()({id:ee,background:"neutral900",hasRadius:!0,padding:2,role:"tooltip",ref:Ce,visible:ye},Z),ye&&d.a.createElement(Y.a,{id:le},S),d.a.createElement(r.a,{as:"p",variant:"pi",fontWeight:"bold",textColor:"neutral0"},q||S))),d.a.createElement("span",{ref:Pe},ze))};ge.defaultProps={delay:500,id:void 0,position:"top",label:void 0,description:void 0},ge.propTypes={children:a.a.node.isRequired,delay:a.a.number,description:a.a.string,id:a.a.string,label:a.a.string,position:a.a.oneOf(["top","left","bottom","right"])}},function(o,h,e){"use strict";e.d(h,"a",function(){return L});var i,c=e(4),p=e.n(c),f=e(5),g=e.n(f),b=e(2),v=e.n(b),m=e(1),u=e.n(m),s=e(3),d=e.n(s),O=e(0),a=e.n(O),R=Object(m.createContext)({gap:0,gridCols:12}),E=e(6),n=e(8),r=["gap","gridCols"],l=d()(E.a)(i||(i=v()([`
|
|
232
|
-
display: grid;
|
|
233
|
-
grid-template-columns: repeat(`,`, 1fr);
|
|
234
|
-
`,`
|
|
235
|
-
`])),function(C){return C.gridCols},function(C){var M=C.theme,W=C.gap;return Object(n.a)("gap",W,M)}),L=function(C){var M=C.gap,W=C.gridCols,he=g()(C,r);return u.a.createElement(R.Provider,{value:{gap:M,gridCols:W}},u.a.createElement(l,p()({gap:M,gridCols:W},he)))};L.defaultProps={gap:0,gridCols:12},L.propTypes={gap:a.a.oneOfType([a.a.number,a.a.arrayOf(a.a.number)]),gridCols:a.a.number};var H,k=["col","xs","s"],B=d.a.div(H||(H=v()([`
|
|
236
|
-
grid-column: span `,`;
|
|
237
|
-
max-width: 100%;
|
|
238
|
-
|
|
239
|
-
`,` {
|
|
240
|
-
grid-column: span `,`;
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
`,` {
|
|
244
|
-
grid-column: span `,`;
|
|
245
|
-
}
|
|
246
|
-
`])),function(C){return C.col},function(C){return C.theme.mediaQueries.tablet},function(C){return C.s},function(C){return C.theme.mediaQueries.mobile},function(C){return C.xs}),Y=function(C){var M=C.col,W=C.xs,he=C.s,ge=g()(C,k),I=Object(m.useContext)(R),te=I.gap,q=I.gridCols;return u.a.createElement(B,{gap:te,gridCols:q,col:M,xs:W,s:he},u.a.createElement(E.a,ge))};Y.defaultProps={col:void 0,s:void 0,xs:void 0},Y.propTypes={col:a.a.number,s:a.a.number,xs:a.a.number}},function(o,h,e){"use strict";e.d(h,"a",function(){return O});var i=e(4),c=e.n(i),p=e(5),f=e.n(p),g=e(1),b=e.n(g),v=e(0),m=e.n(v),u=e(10),s=e(7),d=["active","textColor","backgroundColor","children","minWidth"],O=function(a){var R=a.active,E=a.textColor,n=a.backgroundColor,r=a.children,l=a.minWidth,L=f()(a,d);return b.a.createElement(u.a,c()({inline:!0,alignItem:"center",justifyContent:"center",minWidth:l,padding:1,background:R?"primary100":n,hasRadius:!0},L),b.a.createElement(s.a,{variant:"sigma",textColor:R?"primary600":E},r))};O.defaultProps={active:!1,backgroundColor:"neutral100",minWidth:5,textColor:"neutral600"},O.propTypes={active:m.a.bool,backgroundColor:m.a.string,children:m.a.oneOfType([m.a.number,m.a.string]).isRequired,minWidth:m.a.number,textColor:m.a.string}},function(o,h,e){"use strict";e.d(h,"a",function(){return n});var i,c=e(4),p=e.n(c),f=e(5),g=e.n(f),b=e(2),v=e.n(b),m=e(1),u=e.n(m),s=e(0),d=e.n(s),O=e(6),a=e(3),R=["unsetMargin"],E=e.n(a)()(O.a)(i||(i=v()([`
|
|
247
|
-
height: 1px;
|
|
248
|
-
border: none;
|
|
249
|
-
`,`
|
|
250
|
-
`])),function(r){return r.unsetMargin?"margin: 0;":""}),n=function(r){var l=r.unsetMargin,L=g()(r,R);return u.a.createElement(E,p()({},L,{as:"hr",unsetMargin:l}))};n.defaultProps={background:"neutral150",unsetMargin:!0},n.propTypes={background:d.a.string,unsetMargin:d.a.bool}},,function(o,h){o.exports=A},,,,,,function(o,h){o.exports=G},function(o,h){o.exports=fe},function(o,h,e){"use strict";e.r(h),e.d(h,"subNavWidth",function(){return n}),e.d(h,"SubNav",function(){return l}),e.d(h,"SubNavHeader",function(){return Le}),e.d(h,"SubNavLink",function(){return Te}),e.d(h,"SubNavLinkSection",function(){return Be}),e.d(h,"SubNavSection",function(){return _e}),e.d(h,"SubNavSections",function(){return cn});var i,c=e(4),p=e.n(c),f=e(5),g=e.n(f),b=e(2),v=e.n(b),m=e(1),u=e.n(m),s=e(3),d=e.n(s),O=e(0),a=e.n(O),R=e(38),E=["ariaLabel"],n="".concat(14.5,"rem"),r=d()(R.a)(i||(i=v()([`
|
|
251
|
-
width: `,`;
|
|
252
|
-
background: `,`;
|
|
253
|
-
position: sticky;
|
|
254
|
-
top: 0;
|
|
255
|
-
height: 100vh;
|
|
256
|
-
overflow-y: auto;
|
|
257
|
-
border-right: 1px solid `,`;
|
|
258
|
-
z-index: 1;
|
|
259
|
-
`])),n,function(t){return t.theme.colors.neutral100},function(t){return t.theme.colors.neutral200}),l=function(t){var y=t.ariaLabel,T=g()(t,E);return u.a.createElement(r,p()({"aria-label":y,as:"nav"},T))};l.propTypes={ariaLabel:a.a.string.isRequired};var L,H,k=e(11),B=e.n(k),Y=e(42),C=e.n(Y),M=e(10),W=e(7),he=e(37),ge=e(24),I=["label","noBorder","icon","disabled","onClick"],te=d()(ge.a)(L||(L=v()([`
|
|
260
|
-
display: flex;
|
|
261
|
-
align-items: center;
|
|
262
|
-
justify-content: center;
|
|
263
|
-
height: `,`rem;
|
|
264
|
-
width: `,`rem;
|
|
265
|
-
|
|
266
|
-
svg {
|
|
267
|
-
> g,
|
|
268
|
-
path {
|
|
269
|
-
fill: `,`;
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
&:hover {
|
|
273
|
-
svg {
|
|
274
|
-
> g,
|
|
275
|
-
path {
|
|
276
|
-
fill: `,`;
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
}
|
|
280
|
-
&:active {
|
|
281
|
-
svg {
|
|
282
|
-
> g,
|
|
283
|
-
path {
|
|
284
|
-
fill: `,`;
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
|
-
&[aria-disabled='true'] {
|
|
289
|
-
background-color: `,`;
|
|
290
|
-
svg {
|
|
291
|
-
path {
|
|
292
|
-
fill: `,`;
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
|
-
`,`
|
|
297
|
-
`])),2,2,function(t){return t.theme.colors.neutral500},function(t){return t.theme.colors.neutral600},function(t){return t.theme.colors.neutral400},function(t){return t.theme.colors.neutral150},function(t){return t.theme.colors.neutral600},function(t){return t.noBorder?"border: none;":void 0}),q=(d()(M.a)(H||(H=v()([`
|
|
298
|
-
& span:first-child button {
|
|
299
|
-
border-left: 1px solid `,`;
|
|
300
|
-
border-radius: `,`;
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
& span:last-child button {
|
|
304
|
-
border-radius: `,`;
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
& `,` {
|
|
308
|
-
border-radius: 0;
|
|
309
|
-
border-left: none;
|
|
310
|
-
|
|
311
|
-
svg {
|
|
312
|
-
path {
|
|
313
|
-
fill: `,`;
|
|
314
|
-
}
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
&:hover {
|
|
318
|
-
background-color: `,`;
|
|
319
|
-
|
|
320
|
-
svg {
|
|
321
|
-
path {
|
|
322
|
-
fill: `,`;
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
&:active {
|
|
328
|
-
background-color: `,`;
|
|
329
|
-
svg {
|
|
330
|
-
path {
|
|
331
|
-
fill: `,`;
|
|
332
|
-
}
|
|
333
|
-
}
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
&[aria-disabled='true'] {
|
|
337
|
-
svg {
|
|
338
|
-
path {
|
|
339
|
-
fill: `,`;
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
|
-
`])),function(t){return t.theme.colors.neutral200},function(t){var y=t.theme;return"".concat(y.borderRadius," 0 0 ").concat(y.borderRadius)},function(t){var y=t.theme;return"0 ".concat(y.borderRadius," ").concat(y.borderRadius," 0")},te,function(t){return t.theme.colors.neutral700},function(t){return t.theme.colors.neutral100},function(t){return t.theme.colors.neutral800},function(t){return t.theme.colors.neutral150},function(t){return t.theme.colors.neutral900},function(t){return t.theme.colors.neutral600}),u.a.forwardRef(function(t,y){var T=t.label,w=t.noBorder,P=t.icon,z=t.disabled,N=t.onClick,D=g()(t,I),X=function(F){!z&&N&&N(F)};return T?u.a.createElement(he.a,{label:T},u.a.createElement(te,p()({},D,{ref:y,noBorder:w,onClick:X,"aria-disabled":z}),P)):u.a.createElement(te,p()({},D,{ref:y,noBorder:w,onClick:X,"aria-disabled":z}),P)}));q.displayName="IconButton",q.defaultProps={label:void 0,noBorder:!1,disabled:!1,onClick:void 0},q.propTypes={disabled:a.a.bool,icon:a.a.element.isRequired,label:a.a.string,noBorder:a.a.bool,onClick:a.a.func};var S=e(6),ce=e(40),U=e(48),j=e.n(U),Z={input:{S:"".concat(2,"rem"),M:"".concat(2.5,"rem")},accordions:{S:"".concat(3,"rem"),M:"".concat(5.5,"rem")}},ee=Object(m.createContext)({error:void 0,hint:void 0,name:"",id:""}),le=function(){return Object(m.useContext)(ee)},se=e(14),ye=["children","name","error","hint","id"],xe=function(t){var y=t.children,T=t.name,w=t.error,P=t.hint,z=t.id,N=g()(t,ye),D=Object(se.a)("field",z);return u.a.createElement("div",N,u.a.createElement(ee.Provider,{value:{name:T,id:D,error:w,hint:P}},y))};xe.defaultProps={error:void 0,hint:void 0,id:void 0,name:void 0},xe.propTypes={children:a.a.node.isRequired,error:a.a.string,hint:a.a.oneOfType([a.a.string,a.a.node,a.a.arrayOf(a.a.node)]),id:a.a.oneOfType([a.a.string,a.a.number]),name:a.a.string};var Oe,Ce,Pe=["children","required","action"],ze=d()(W.a)(Oe||(Oe=v()([`
|
|
345
|
-
line-height: 0;
|
|
346
|
-
`]))),re=d()(M.a)(Ce||(Ce=v()([`
|
|
347
|
-
line-height: 0;
|
|
348
|
-
|
|
349
|
-
svg path {
|
|
350
|
-
fill: `,`;
|
|
351
|
-
}
|
|
352
|
-
`])),function(t){return t.theme.colors.neutral500}),$=function(t){var y=t.children,T=t.required,w=t.action,P=g()(t,Pe),z=le().id;return u.a.createElement(W.a,p()({variant:"pi",textColor:"neutral800",htmlFor:z,fontWeight:"bold",as:"label",required:T},P),u.a.createElement(M.a,{alignItems:"center"},y,T&&u.a.createElement(ze,{textColor:"danger600"},"*"),w&&u.a.createElement(re,{marginLeft:1},w)))};$.defaultProps={required:!1,action:void 0},$.propTypes={action:a.a.element,children:a.a.node.isRequired,required:a.a.bool};var Q,K,oe=e(16),me=["endAction","startAction","disabled","onChange","size"],pe={S:6.5,M:10.5},ln=d.a.input(Q||(Q=v()([`
|
|
353
|
-
border: none;
|
|
354
|
-
border-radius: `,`;
|
|
355
|
-
padding-bottom: `,`;
|
|
356
|
-
padding-left: `,`;
|
|
357
|
-
padding-right: `,`;
|
|
358
|
-
padding-top: `,`;
|
|
359
|
-
cursor: `,`;
|
|
360
|
-
|
|
361
|
-
color: `,`;
|
|
362
|
-
font-weight: 400;
|
|
363
|
-
// TODO: Make sure to use the theme when it's ready
|
|
364
|
-
font-size: `,`rem;
|
|
365
|
-
display: block;
|
|
366
|
-
width: 100%;
|
|
367
|
-
background: inherit;
|
|
368
|
-
|
|
369
|
-
::placeholder {
|
|
370
|
-
color: `,`;
|
|
371
|
-
opacity: 1;
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
&[aria-disabled='true'] {
|
|
375
|
-
color: inherit;
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
//focus managed by InputWrapper
|
|
379
|
-
&:focus {
|
|
380
|
-
outline: none;
|
|
381
|
-
box-shadow: none;
|
|
382
|
-
}
|
|
383
|
-
`])),function(t){return t.theme.borderRadius},function(t){var y=t.size;return"".concat(pe[y]/16,"rem")},function(t){var y=t.theme;return t.hasLeftAction?0:y.spaces[4]},function(t){var y=t.theme;return t.hasRightAction?0:y.spaces[4]},function(t){var y=t.size;return"".concat(pe[y]/16,"rem")},function(t){return t["aria-disabled"]?"not-allowed":void 0},function(t){return t.theme.colors.neutral800},.875,function(t){return t.theme.colors.neutral500}),Ae=d()(M.a)(K||(K=v()([`
|
|
384
|
-
border: 1px solid `,`;
|
|
385
|
-
border-radius: `,`;
|
|
386
|
-
background: `,`;
|
|
387
|
-
`,`
|
|
388
|
-
|
|
389
|
-
`,`
|
|
390
|
-
`])),function(t){var y=t.theme;return t.hasError?y.colors.danger600:y.colors.neutral200},function(t){return t.theme.borderRadius},function(t){return t.theme.colors.neutral0},Object(oe.b)(),function(t){var y=t.theme;return t.disabled?`
|
|
391
|
-
color: `.concat(y.colors.neutral600,`;
|
|
392
|
-
background: `).concat(y.colors.neutral150,`;
|
|
393
|
-
|
|
394
|
-
`):void 0}),je=Object(m.forwardRef)(function(t,y){var T,w=t.endAction,P=t.startAction,z=t.disabled,N=t.onChange,D=t.size,X=g()(t,me),F=le(),ne=F.id,ae=F.error,ie=F.hint,Ee=F.name;ae?T="".concat(ne,"-error"):ie&&(T="".concat(ne,"-hint"));var Re=Boolean(ae);return u.a.createElement(Ae,{size:D,justifyContent:"space-between",hasError:Re,disabled:z},P&&u.a.createElement(S.a,{paddingLeft:3,paddingRight:2},P),u.a.createElement(ln,p()({id:ne,name:Ee,ref:y,"aria-describedby":T,"aria-invalid":Re,"aria-disabled":z,hasLeftAction:Boolean(P),hasRightAction:Boolean(w),onChange:function(We){z||N(We)},size:D},X)),w&&u.a.createElement(S.a,{paddingLeft:2,paddingRight:3},w))});je.displayName="FieldInput",je.defaultProps={disabled:!1,endAction:void 0,size:"M",startAction:void 0,onChange:function(){}},je.propTypes={disabled:a.a.bool,endAction:a.a.element,onChange:a.a.func,size:a.a.oneOf(Object.keys(Z.input)),startAction:a.a.element};var Ne,sn=["label","children"],dn=d.a.button(Ne||(Ne=v()([`
|
|
395
|
-
border: none;
|
|
396
|
-
background: transparent;
|
|
397
|
-
// TODO: Make sure to use the theme when it's ready
|
|
398
|
-
font-size: 1.6rem;
|
|
399
|
-
width: auto;
|
|
400
|
-
padding: 0;
|
|
401
|
-
display: flex;
|
|
402
|
-
align-items: center;
|
|
403
|
-
`]))),De=function(t){var y=t.label,T=t.children,w=g()(t,sn);return u.a.createElement(dn,p()({"aria-label":y,type:"button"},w),T)};De.propTypes={children:a.a.node.isRequired,label:a.a.string.isRequired};var qe,Fe,Ue,fn=e(13),pn=["name","size","children","value","onClear","clearLabel"],hn=d()(M.a)(qe||(qe=v()([`
|
|
404
|
-
font-size: 0.5rem;
|
|
405
|
-
svg path {
|
|
406
|
-
fill: `,`;
|
|
407
|
-
}
|
|
408
|
-
`])),function(t){return t.theme.colors.neutral400}),Ye=d()(M.a)(Fe||(Fe=v()([`
|
|
409
|
-
font-size: 0.8rem;
|
|
410
|
-
|
|
411
|
-
svg path {
|
|
412
|
-
fill: `,`;
|
|
413
|
-
}
|
|
414
|
-
`])),function(t){return t.theme.colors.neutral800}),gn=d.a.div(Ue||(Ue=v()([`
|
|
415
|
-
border-radius: `,`;
|
|
416
|
-
box-shadow: `,`;
|
|
417
|
-
|
|
418
|
-
&:focus-within {
|
|
419
|
-
`,` {
|
|
420
|
-
svg path {
|
|
421
|
-
fill: `,`;
|
|
422
|
-
}
|
|
423
|
-
}
|
|
424
|
-
}
|
|
425
|
-
|
|
426
|
-
`,` {
|
|
427
|
-
border: 1px solid transparent;
|
|
428
|
-
}
|
|
429
|
-
|
|
430
|
-
`,`
|
|
431
|
-
`])),function(t){return t.theme.borderRadius},function(t){return t.theme.shadows.filterShadow},Ye,function(t){return t.theme.colors.primary600},Ae,Object(oe.b)(Ae)),Se=Object(m.forwardRef)(function(t,y){var T=t.name,w=t.size,P=t.children,z=t.value,N=t.onClear,D=t.clearLabel,X=g()(t,pn),F=Object(m.useRef)(null),ne=z.length>0,ae=y||F;return u.a.createElement(gn,null,u.a.createElement(xe,{name:T},u.a.createElement(fn.a,null,u.a.createElement($,null,P)),u.a.createElement(je,p()({ref:ae,value:z,startAction:u.a.createElement(Ye,null,u.a.createElement(C.a,{"aria-hidden":!0})),size:w,endAction:ne?u.a.createElement(De,{label:D,onClick:function(ie){N(ie),F.current.focus()}},u.a.createElement(hn,null,u.a.createElement(j.a,null))):void 0},X))))});Se.displayName="Searchbar",Se.defaultProps={value:"",size:"M"},Se.propTypes={children:a.a.node.isRequired,clearLabel:a.a.string.isRequired,name:a.a.string.isRequired,onClear:a.a.func.isRequired,size:a.a.oneOf(Object.keys(Z.input)),value:a.a.string};var Qe,mn=function(t){return u.a.createElement("form",p()({},t,{role:"search"}))},bn=e(17),Xe=d()(ce.a)(Qe||(Qe=v()([`
|
|
432
|
-
width: `,`rem;
|
|
433
|
-
background-color: `,`;
|
|
434
|
-
`])),1.5,function(t){return t.theme.colors.neutral200}),Le=function(t){var y=t.as,T=t.label,w=t.searchLabel,P=t.searchable,z=t.onChange,N=t.value,D=t.onClear,X=t.onSubmit,F=t.id,ne=Object(m.useState)(!1),ae=B()(ne,2),ie=ae[0],Ee=ae[1],Re=function(de){var be=Object(m.useRef)();return Object(m.useEffect)(function(){be.current=de}),be.current}(ie),We=Object(se.a)("subnav-searchbar-clear",F),ke=Object(m.useRef)(),Ie=Object(m.useRef)();return Object(m.useEffect)(function(){ie&&ke.current&&ke.current.focus(),Re&&!ie&&Ie.current&&Ie.current.focus()},[ie]),ie?u.a.createElement(S.a,{paddingLeft:4,paddingTop:5,paddingBottom:2,paddingRight:4},u.a.createElement(mn,null,u.a.createElement(Se,{name:"searchbar",value:N,onChange:z,placeholder:"e.g: strapi-plugin-abcd",onKeyDown:function(de){de.key===bn.a.ESCAPE&&Ee(!1)},ref:ke,onBlur:function(de){var be;((be=de.relatedTarget)===null||be===void 0?void 0:be.id)!==We&&Ee(!1)},onClear:function(de){D(de),ke.current.focus()},onSubmit:X,clearLabel:"Clear",size:"S"},w)),u.a.createElement(S.a,{paddingLeft:2,paddingTop:4},u.a.createElement(Xe,null))):u.a.createElement(S.a,{paddingLeft:6,paddingTop:6,paddingBottom:2,paddingRight:4},u.a.createElement(M.a,{justifyContent:"space-between",alignItems:"flex-start"},u.a.createElement(W.a,{variant:"beta",as:y},T),P&&u.a.createElement(q,{ref:Ie,onClick:function(){Ee(function(de){return!de})},label:w,icon:u.a.createElement(C.a,null)})),u.a.createElement(S.a,{paddingTop:4},u.a.createElement(Xe,null)))};Le.defaultProps={as:"h2",searchable:!1,onChange:function(){},onClear:function(){},onSubmit:function(){},value:"",searchLabel:"",id:void 0},Le.propTypes={as:a.a.string,id:a.a.string,label:a.a.string.isRequired,onChange:a.a.func,onClear:a.a.func,onSubmit:a.a.func,searchLabel:a.a.string,searchable:a.a.bool,value:a.a.string};var Ge,$e,Ke,vn=e(49),yn=e.n(vn),xn=e(12),On=["children","icon","withBullet","as","isSubSectionChild"],En=d()(S.a)(Ge||(Ge=v()([`
|
|
435
|
-
display: flex;
|
|
436
|
-
align-items: center;
|
|
437
|
-
justify-content: space-between;
|
|
438
|
-
text-decoration: none;
|
|
439
|
-
color: `,`;
|
|
440
|
-
svg > * {
|
|
441
|
-
fill: `,`;
|
|
442
|
-
}
|
|
443
|
-
|
|
444
|
-
&.active {
|
|
445
|
-
`,`
|
|
446
|
-
}
|
|
447
|
-
|
|
448
|
-
&:focus-visible {
|
|
449
|
-
outline-offset: -2px;
|
|
450
|
-
}
|
|
451
|
-
`])),function(t){return t.theme.colors.neutral800},function(t){return t.theme.colors.neutral600},function(t){var y=t.theme;return`
|
|
452
|
-
background-color: `.concat(y.colors.primary100,`;
|
|
453
|
-
border-right: 2px solid `).concat(y.colors.primary600,`;
|
|
454
|
-
svg > * {
|
|
455
|
-
fill: `).concat(y.colors.primary700,`;
|
|
456
|
-
}
|
|
457
|
-
`).concat(W.a,` {
|
|
458
|
-
color: `).concat(y.colors.primary700,`;
|
|
459
|
-
font-weight: 500;
|
|
460
|
-
}
|
|
461
|
-
`)}),Ve=d()(yn.a)($e||($e=v()([`
|
|
462
|
-
width: `,`rem;
|
|
463
|
-
height: `,`rem;
|
|
464
|
-
* {
|
|
465
|
-
fill: `,`;
|
|
466
|
-
}
|
|
467
|
-
`])),.75,.25,function(t){var y=t.theme;return t.$active?y.colors.primary600:y.colors.neutral600}),wn=d.a.div(Ke||(Ke=v()([`
|
|
468
|
-
svg {
|
|
469
|
-
height: `,`rem;
|
|
470
|
-
width: `,`rem;
|
|
471
|
-
}
|
|
472
|
-
`])),.75,.75),Te=u.a.forwardRef(function(t,y){var T=t.children,w=t.icon,P=t.withBullet,z=t.as,N=t.isSubSectionChild,D=g()(t,On);return u.a.createElement(En,p()({as:z,icon:w,background:"neutral100",paddingLeft:N?9:7,paddingBottom:2,paddingTop:2,ref:y},D),u.a.createElement(M.a,null,w?u.a.createElement(wn,null,w):u.a.createElement(Ve,null),u.a.createElement(S.a,{paddingLeft:2},u.a.createElement(W.a,{as:"span"},T))),P&&u.a.createElement(S.a,{as:M.a,paddingRight:4},u.a.createElement(Ve,{$active:!0})))});Te.displayName="SubNavLink",Te.defaultProps={as:xn.a,icon:null,isSubSectionChild:!1,withBullet:!1},Te.propTypes={as:a.a.elementType,children:a.a.node,icon:a.a.element,isSubSectionChild:a.a.bool,link:a.a.element,withBullet:a.a.bool};var Je,Ze,en,Cn=e(20),nn=e.n(Cn),jn=d()(S.a)(Je||(Je=v()([`
|
|
473
|
-
svg {
|
|
474
|
-
height: `,`rem;
|
|
475
|
-
path {
|
|
476
|
-
fill: `,`;
|
|
477
|
-
}
|
|
478
|
-
}
|
|
479
|
-
`])),.25,function(t){return t.theme.colors.neutral700}),Sn=d.a.button(Ze||(Ze=v()([`
|
|
480
|
-
border: none;
|
|
481
|
-
padding: 0;
|
|
482
|
-
background: transparent;
|
|
483
|
-
display: flex;
|
|
484
|
-
align-items: center;
|
|
485
|
-
`]))),Tn=d.a.div(en||(en=v()([`
|
|
486
|
-
display: flex;
|
|
487
|
-
align-items: center;
|
|
488
|
-
width: `,`rem;
|
|
489
|
-
transform: rotateX(`,`);
|
|
490
|
-
`])),.75,function(t){return t.rotated?"0deg":"180deg"}),Be=function(t){var y=t.label,T=t.children,w=t.id,P=Object(m.useState)(!0),z=B()(P,2),N=z[0],D=z[1],X=Object(se.a)("subnav-list",w);return u.a.createElement(S.a,null,u.a.createElement(jn,{paddingLeft:7,paddingTop:2,paddingBottom:2,paddingRight:4},u.a.createElement(M.a,{justifyContent:"space-between"},u.a.createElement(Sn,{onClick:function(){D(function(F){return!F})},"aria-expanded":N,"aria-controls":X},u.a.createElement(Tn,{rotated:N},u.a.createElement(nn.a,{"aria-hidden":!0})),u.a.createElement(S.a,{paddingLeft:2},u.a.createElement(W.a,{as:"span",fontWeight:"semiBold",textColor:"neutral800"},y))))),N&&u.a.createElement("ul",{id:X},m.Children.map(T,function(F,ne){return u.a.createElement("li",{key:ne},F)})))};Be.defaultProps={id:void 0},Be.propTypes={children:a.a.node,id:a.a.string,label:a.a.string.isRequired};var tn,rn,on,Rn=e(39),an=e(19),un=d()(M.a)(tn||(tn=v()([`
|
|
491
|
-
border: none;
|
|
492
|
-
padding: 0;
|
|
493
|
-
background: transparent;
|
|
494
|
-
`]))),kn=d.a.div(rn||(rn=v()([`
|
|
495
|
-
display: flex;
|
|
496
|
-
align-items: center;
|
|
497
|
-
transform: rotateX(`,`);
|
|
498
|
-
`])),function(t){return t.rotated?"0deg":"180deg"}),Me=function(t){var y=t.collapsable,T=t.label,w=t.onClick,P=t.ariaExpanded,z=t.ariaControls;return y?u.a.createElement(un,{as:"button",onClick:w,"aria-expanded":P,"aria-controls":z,textAlign:"left"},u.a.createElement(S.a,{paddingRight:1},u.a.createElement(W.a,{variant:"sigma",textColor:"neutral600"},T)),y&&u.a.createElement(kn,{rotated:P},u.a.createElement(nn.a,{"aria-hidden":!0}))):u.a.createElement(un,null,u.a.createElement(S.a,{paddingRight:1},u.a.createElement(W.a,{variant:"sigma",textColor:"neutral600"},T)))};Me.defaultProps={ariaControls:null,ariaExpanded:null,collapsable:!1,onClick:function(){}},Me.propTypes={ariaControls:a.a.string,ariaExpanded:a.a.bool,collapsable:a.a.bool,label:a.a.string.isRequired,onClick:a.a.func};var Pn=d()(S.a)(on||(on=v()([`
|
|
499
|
-
svg {
|
|
500
|
-
height: `,`rem;
|
|
501
|
-
path {
|
|
502
|
-
fill: `,`;
|
|
503
|
-
}
|
|
504
|
-
}
|
|
505
|
-
`])),.25,function(t){return t.theme.colors.neutral500}),_e=function(t){var y=t.collapsable,T=t.label,w=t.badgeLabel,P=t.children,z=t.id,N=Object(m.useState)(!0),D=B()(N,2),X=D[0],F=D[1],ne=Object(se.a)("subnav-list",z);return u.a.createElement(an.a,{spacing:1},u.a.createElement(Pn,{paddingLeft:6,paddingTop:2,paddingBottom:2,paddingRight:4},u.a.createElement(S.a,{position:"relative",paddingRight:w?6:0},u.a.createElement(Me,{onClick:function(){F(function(ae){return!ae})},ariaExpanded:X,ariaControls:ne,collapsable:y,label:T}),w&&u.a.createElement(Rn.a,{backgroundColor:"neutral150",textColor:"neutral600",position:"absolute",right:0,top:"50%",transform:"translateY(-50%)"},w))),(!y||X)&&u.a.createElement("ol",{id:ne},m.Children.map(P,function(ae,ie){return u.a.createElement("li",{key:ie},ae)})))};_e.defaultProps={badgeLabel:null,collapsable:!1,id:void 0},_e.propTypes={badgeLabel:a.a.string,children:a.a.node,collapsable:a.a.bool,id:a.a.string,label:a.a.string.isRequired};var zn=["children"],cn=function(t){var y=t.children,T=g()(t,zn);return u.a.createElement(S.a,{paddingTop:2,paddingBottom:4},u.a.createElement(an.a,p()({as:"ol",spacing:2},T),m.Children.map(y,function(w,P){return u.a.createElement("li",{key:P},w)})))};cn.propTypes={children:a.a.node.isRequired}}])})},57235:function(ve,He,V){(function(we,ue){ve.exports=ue(V(32735))})(this,function(we){return function(ue){var J={};function _(x){if(J[x])return J[x].exports;var A=J[x]={i:x,l:!1,exports:{}};return ue[x].call(A.exports,A,A.exports,_),A.l=!0,A.exports}return _.m=ue,_.c=J,_.d=function(x,A,G){_.o(x,A)||Object.defineProperty(x,A,{enumerable:!0,get:G})},_.r=function(x){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(x,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(x,"__esModule",{value:!0})},_.t=function(x,A){if(1&A&&(x=_(x)),8&A||4&A&&typeof x=="object"&&x&&x.__esModule)return x;var G=Object.create(null);if(_.r(G),Object.defineProperty(G,"default",{enumerable:!0,value:x}),2&A&&typeof x!="string")for(var fe in x)_.d(G,fe,function(o){return x[o]}.bind(null,fe));return G},_.n=function(x){var A=x&&x.__esModule?function(){return x.default}:function(){return x};return _.d(A,"a",A),A},_.o=function(x,A){return Object.prototype.hasOwnProperty.call(x,A)},_.p="",_(_.s=54)}({0:function(ue,J){ue.exports=we},54:function(ue,J,_){"use strict";_.r(J);var x=_(0);function A(){return(A=Object.assign||function(G){for(var fe=1;fe<arguments.length;fe++){var o=arguments[fe];for(var h in o)Object.prototype.hasOwnProperty.call(o,h)&&(G[h]=o[h])}return G}).apply(this,arguments)}J.default=function(G){return x.createElement("svg",A({width:"1em",height:"1em",viewBox:"0 0 4 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},G),x.createElement("rect",{width:4,height:4,rx:2,fill:"#A5A5BA"}))}}})})}}]);
|