@strapi/admin 4.11.0-beta.1 → 4.11.0-exp.9xg4-3qfm-9w8f.1
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/Providers/index.js +32 -32
- package/admin/src/components/Theme/index.js +3 -5
- package/admin/src/content-manager/components/DynamicTable/ConfirmDialogDeleteAll/index.js +73 -0
- package/admin/src/content-manager/components/DynamicTable/index.js +4 -20
- package/admin/src/content-manager/components/EditViewDataManagerProvider/index.js +21 -7
- package/admin/src/content-manager/components/EditViewDataManagerProvider/utils/index.js +1 -0
- package/admin/src/content-manager/{utils → components/EditViewDataManagerProvider/utils}/schema.js +1 -1
- package/admin/src/content-manager/components/Inputs/index.js +11 -18
- package/admin/src/content-manager/components/Inputs/utils/getStep.js +13 -0
- package/admin/src/content-manager/components/Inputs/utils/index.js +1 -0
- package/admin/src/content-manager/pages/ListView/index.js +2 -118
- package/admin/src/content-manager/utils/index.js +0 -2
- package/admin/src/hooks/useContentTypes/useContentTypes.js +0 -2
- package/admin/src/index.js +4 -3
- package/admin/src/injectionZones.js +1 -6
- package/admin/src/pages/SettingsPage/pages/Users/ListPage/index.js +1 -1
- package/admin/src/translations/en.json +1 -5
- package/build/{1657.ca8562dd.chunk.js → 1657.3f2b2c11.chunk.js} +1 -9
- package/build/3081.7e9329cb.chunk.js +105 -0
- package/build/462.6f8cbd19.chunk.js +71 -0
- package/build/5542.64b623c9.chunk.js +63 -0
- package/build/617.0518c0ba.chunk.js +155 -0
- package/build/6858.85d76858.chunk.js +50 -0
- package/build/6970.6a329e15.chunk.js +1 -0
- package/build/9036.f7ce35cc.chunk.js +211 -0
- package/build/{Admin-authenticatedApp.990df65d.chunk.js → Admin-authenticatedApp.e7ca2959.chunk.js} +2 -2
- package/build/{Admin_homePage.107a9fe0.chunk.js → Admin_homePage.94dc81b1.chunk.js} +16 -16
- package/build/Admin_marketplace.1b0c3d3b.chunk.js +55 -0
- package/build/Admin_pluginsPage.a28b96d5.chunk.js +6 -0
- package/build/{Admin_profilePage.75bc083a.chunk.js → Admin_profilePage.a8fa3a56.chunk.js} +1 -1
- package/build/Admin_settingsPage.ee76d19e.chunk.js +79 -0
- package/build/admin-app.bd209f08.chunk.js +63 -0
- package/build/admin-roles-list.af53b372.chunk.js +23 -0
- package/build/admin-users.0fc77b35.chunk.js +26 -0
- package/build/audit-logs-settings-page.6bc76e7d.chunk.js +121 -0
- package/build/content-manager.8bfce7f0.chunk.js +1123 -0
- package/build/content-type-builder-list-view.26aab6f3.chunk.js +215 -0
- package/build/email-settings-page.63f269ff.chunk.js +11 -0
- package/build/{en-json.0f5cc115.chunk.js → en-json.ba3290b8.chunk.js} +1 -1
- package/build/i18n-settings-page.2ac4ca58.chunk.js +114 -0
- package/build/i18n-translation-en-json.60af6722.chunk.js +1 -0
- package/build/index.html +1 -1
- package/build/main.aca47de6.js +2633 -0
- package/build/{review-workflows-settings.4b39b837.chunk.js → review-workflows-settings.56cab253.chunk.js} +1 -1
- package/build/{runtime~main.55d43bd7.js → runtime~main.0dfc909e.js} +1 -1
- package/build/upload-settings.1d187578.chunk.js +14 -0
- package/build/upload.bc340679.chunk.js +26 -0
- package/build/users-advanced-settings-page.7b4bf63a.chunk.js +9 -0
- package/build/users-email-settings-page.035a026c.chunk.js +24 -0
- package/build/users-providers-settings-page.6873dce9.chunk.js +29 -0
- package/build/{users-roles-settings-page.c773086b.chunk.js → users-roles-settings-page.2549794b.chunk.js} +1 -1
- package/build/{webhook-edit-page.ddd5963d.chunk.js → webhook-edit-page.0bc97587.chunk.js} +1 -1
- package/build/webhook-list-page.0861d3e9.chunk.js +63 -0
- package/ee/server/services/review-workflows/review-workflows.js +4 -0
- package/package.json +17 -19
- package/server/controllers/webhooks.js +6 -6
- package/admin/src/content-manager/components/DynamicTable/BulkActionsBar/index.js +0 -307
- package/build/3081.c2cdfac8.chunk.js +0 -108
- package/build/3562.e0b1a0b3.chunk.js +0 -50
- package/build/456.9b85d4c6.chunk.js +0 -39
- package/build/462.a073ff1f.chunk.js +0 -71
- package/build/5542.002522eb.chunk.js +0 -71
- package/build/617.87b2fe96.chunk.js +0 -155
- package/build/6970.7ea35fbd.chunk.js +0 -1
- package/build/Admin_marketplace.1436fc2b.chunk.js +0 -55
- package/build/Admin_pluginsPage.e1afd5ed.chunk.js +0 -6
- package/build/Admin_settingsPage.bd715ed3.chunk.js +0 -79
- package/build/admin-app.8b102fe2.chunk.js +0 -63
- package/build/admin-roles-list.e8bf9685.chunk.js +0 -31
- package/build/admin-users.751b28b2.chunk.js +0 -34
- package/build/audit-logs-settings-page.3c6cea81.chunk.js +0 -129
- package/build/content-manager.89099707.chunk.js +0 -1123
- package/build/content-type-builder-list-view.1e821eb9.chunk.js +0 -215
- package/build/email-settings-page.4368689f.chunk.js +0 -11
- package/build/i18n-settings-page.7988d872.chunk.js +0 -114
- package/build/i18n-translation-en-json.1ec7becf.chunk.js +0 -1
- package/build/main.5a232c3d.js +0 -2630
- package/build/upload-settings.63d99bf5.chunk.js +0 -14
- package/build/upload.c50d8c7a.chunk.js +0 -34
- package/build/users-advanced-settings-page.2cfb5d24.chunk.js +0 -9
- package/build/users-email-settings-page.bd6c774a.chunk.js +0 -24
- package/build/users-providers-settings-page.528f0036.chunk.js +0 -29
- package/build/webhook-list-page.b0f5a02c.chunk.js +0 -71
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_strapi_admin=self.webpackChunk_strapi_admin||[]).push([[2812],{19150:function(b,P,t){t.d(P,{R:function(){return M}});var e=t(20108),o=t(24989),p=t(33348);function M(m={},h={}){const{id:v="",...L}=m,y=(0,p.stringify)(L,{encode:!1}),{get:f}=(0,o.kY)(),{data:u,isError:n,isLoading:A,refetch:R}=(0,e.useQuery)(["users",v,L],async()=>{const{data:{data:x}}=await f(`/admin/users/${v}${y?`?${y}`:""}`);return x},h);let j=[];return v&&u?j=[u]:Array.isArray(u?.results)&&(j=u.results),{users:j,pagination:u?.pagination??null,isLoading:A,isError:n,refetch:R}}},83196:function(b,P,t){var e=t(32735),o=t(60216),p=t.n(o),M=t(67879),m=t(72850),h=t(41415),v=t(5644),L=t(24989);const y=({displayedFilters:f})=>{const[u,n]=(0,e.useState)(!1),{formatMessage:A}=(0,M.Z)(),R=(0,e.useRef)(),j=()=>{n(x=>!x)};return e.createElement(e.Fragment,null,e.createElement(m.x,{paddingTop:1,paddingBottom:1},e.createElement(h.z,{variant:"tertiary",ref:R,startIcon:e.createElement(v.Z,null),onClick:j,size:"S"},A({id:"app.utils.filters",defaultMessage:"Filters"})),u&&e.createElement(L.J5,{displayedFilters:f,isVisible:u,onToggle:j,source:R})),e.createElement(L.W$,{filtersSchema:f}))};y.propTypes={displayedFilters:p().arrayOf(p().shape({name:p().string.isRequired,metadatas:p().shape({label:p().string}),fieldSchema:p().shape({type:p().string})})).isRequired},P.Z=y},71765:function(b,P,t){t.r(P),t.d(P,{default:function(){return oe}});var e=t(32735),o=t(24989),p=t(83983),M=t(67879),m=t(96709),h=t(17e3),v=t(72850),L=t(27649),y=t(82055),f=t(99223),u=t(60216),n=t.n(u),A=t(35658),R=t(94547),j=t(19786),x=t(49372),S=t(87933),re=t(50563),ie=t(54894),X=t(96315),G=()=>{const{formatDate:s}=(0,M.Z)();return c=>{const l=(0,X.Z)(c),E=s(l,{dateStyle:"long"}),r=s(l,{timeStyle:"medium",hourCycle:"h24"});return`${E}, ${r}`}};const w={"entry.create":"Create entry{model, select, undefined {} other { ({model})}}","entry.update":"Update entry{model, select, undefined {} other { ({model})}}","entry.delete":"Delete entry{model, select, undefined {} other { ({model})}}","entry.publish":"Publish entry{model, select, undefined {} other { ({model})}}","entry.unpublish":"Unpublish entry{model, select, undefined {} other { ({model})}}","media.create":"Create media","media.update":"Update media","media.delete":"Delete media","media-folder.create":"Create media folder","media-folder.update":"Update media folder","media-folder.delete":"Delete media folder","user.create":"Create user","user.update":"Update user","user.delete":"Delete user","admin.auth.success":"Admin login","admin.logout":"Admin logout","content-type.create":"Create content type","content-type.update":"Update content type","content-type.delete":"Delete content type","component.create":"Create component","component.update":"Update component","component.delete":"Delete component","role.create":"Create role","role.update":"Update role","role.delete":"Delete role","permission.create":"Create permission","permission.update":"Update permission","permission.delete":"Delete permission"},Z=s=>w[s]||s,V=({headers:s,rows:g,onOpenModal:c})=>{const{formatMessage:l}=(0,M.Z)(),E=G(),r=({type:d,value:i,model:D})=>d==="date"?E(i):d==="action"?l({id:`Settings.permissions.auditLogs.${i}`,defaultMessage:Z(i)},{model:D}):i||"-";return e.createElement(A.p,null,g.map(d=>e.createElement(R.Tr,{key:d.id,...(0,o.X7)({fn:()=>c(d.id)})},s.map(({key:i,name:D,cellFormatter:C})=>e.createElement(j.Td,{key:i},e.createElement(x.Z,{textColor:"neutral800"},r({type:i,value:C?C(d[D]):d[D],model:d.payload?.model})))),e.createElement(j.Td,{...o.UW},e.createElement(S.k,{justifyContent:"end"},e.createElement(re.h,{onClick:()=>c(d.id),"aria-label":l({id:"app.component.table.view",defaultMessage:"{target} details"},{target:`${d.action} action`}),noBorder:!0,icon:e.createElement(ie.Z,null)}))))))};V.defaultProps={rows:[]},V.propTypes={headers:n().array.isRequired,rows:n().array,onOpenModal:n().func.isRequired};var le=V,de=[{name:"action",key:"action",metadatas:{label:{id:"Settings.permissions.auditLogs.action",defaultMessage:"Action"},sortable:!0}},{name:"date",key:"date",metadatas:{label:{id:"Settings.permissions.auditLogs.date",defaultMessage:"Date"},sortable:!0}},{key:"user",name:"user",metadatas:{label:{id:"Settings.permissions.auditLogs.user",defaultMessage:"User"},sortable:!1},cellFormatter:s=>s?s.displayName:""}];const U=({pagination:s})=>e.createElement(v.x,{paddingTop:4},e.createElement(S.k,{alignItems:"flex-end",justifyContent:"space-between"},e.createElement(o.v4,null),e.createElement(o.tU,{pagination:s})));U.defaultProps={pagination:{pageCount:0,pageSize:50,total:0}},U.propTypes={pagination:n().shape({page:n().number,pageCount:n().number,pageSize:n().number,total:n().number})};var a=U,O=t(20108),_=t(85025),Q=t(55225),W=t(11299),N=t(31600),ue=t(23866),ce=t(15335),me=t(88807);const K=({actionLabel:s,actionName:g})=>e.createElement(S.k,{direction:"column",alignItems:"baseline",gap:1},e.createElement(x.Z,{textColor:"neutral600",variant:"sigma"},s),e.createElement(x.Z,{textColor:"neutral600"},g));K.propTypes={actionLabel:n().string.isRequired,actionName:n().string.isRequired};var B=K;const H=({status:s,data:g,formattedDate:c})=>{const{formatMessage:l}=(0,M.Z)();if(s==="loading")return e.createElement(S.k,{padding:7,justifyContent:"center",alignItems:"center"},e.createElement(ue.a,null,"Loading content..."));const{action:E,user:r,payload:d}=g;return e.createElement(e.Fragment,null,e.createElement(v.x,{marginBottom:3},e.createElement(x.Z,{variant:"delta",id:"title"},l({id:"Settings.permissions.auditLogs.details",defaultMessage:"Log Details"}))),e.createElement(ce.r,{gap:4,gridCols:2,paddingTop:4,paddingBottom:4,paddingLeft:6,paddingRight:6,marginBottom:4,background:"neutral100",hasRadius:!0},e.createElement(B,{actionLabel:l({id:"Settings.permissions.auditLogs.action",defaultMessage:"Action"}),actionName:l({id:`Settings.permissions.auditLogs.${E}`,defaultMessage:Z(E)},{model:d?.model})}),e.createElement(B,{actionLabel:l({id:"Settings.permissions.auditLogs.date",defaultMessage:"Date"}),actionName:c}),e.createElement(B,{actionLabel:l({id:"Settings.permissions.auditLogs.user",defaultMessage:"User"}),actionName:r?.displayName||"-"}),e.createElement(B,{actionLabel:l({id:"Settings.permissions.auditLogs.userId",defaultMessage:"User ID"}),actionName:r?.id.toString()||"-"})),e.createElement(me.V,{value:JSON.stringify(d,null,2),disabled:!0,label:l({id:"Settings.permissions.auditLogs.payload",defaultMessage:"Payload"})}))};H.defaultProps={data:{}},H.propTypes={status:n().oneOf(["idle","loading","error","success"]).isRequired,data:n().shape({action:n().string,date:n().string,payload:n().object,user:n().object}),formattedDate:n().string.isRequired};var ge=H;const k=({handleClose:s,logId:g})=>{const{get:c}=(0,o.kY)(),l=(0,o.lm)(),E=async C=>{const{data:$}=await c(`/admin/audit-logs/${C}`);if(!$)throw new Error("Audit log not found");return $},{data:r,status:d}=(0,O.useQuery)(["audit-log",g],()=>E(g),{onError(){l({type:"warning",message:{id:"notification.error",defaultMessage:"An error occured"}}),s()}}),i=G(),D=r?i(r.date):"";return e.createElement(_.P,{onClose:s,labelledBy:"title"},e.createElement(Q.x,null,e.createElement(W.O,{label:D,id:"title"},e.createElement(W.$,null,D))),e.createElement(N.f,null,e.createElement(ge,{status:d,data:r,formattedDate:D})))};k.propTypes={handleClose:n().func.isRequired,logId:n().string.isRequired};var pe=k,he=t(83196),Ee=t(21428),z=t(90333);const J=({value:s,options:g,onChange:c})=>{const{formatMessage:l}=(0,M.Z)(),E=l({id:"Settings.permissions.auditLogs.filter.aria-label",defaultMessage:"Search and select an option to filter"});return e.createElement(Ee.hQ,{"aria-label":E,value:s,onChange:c},g.map(({label:r,customValue:d})=>e.createElement(z.O,{key:d,value:d},r)))};J.defaultProps={value:null},J.propTypes={value:n().string,options:n().arrayOf(n().shape({label:n().string.isRequired,customValue:n().string.isRequired}).isRequired).isRequired,onChange:n().func.isRequired};var q=J;const Y=[{intlLabel:{id:"components.FilterOptions.FILTER_TYPES.$eq",defaultMessage:"is"},value:"$eq"},{intlLabel:{id:"components.FilterOptions.FILTER_TYPES.$ne",defaultMessage:"is not"},value:"$ne"}];var te=({formatMessage:s,users:g,canReadUsers:c})=>{const l=Object.keys(w).map(r=>({label:s({id:`Settings.permissions.auditLogs.${r}`,defaultMessage:Z(r)},{model:void 0}),customValue:r})),E=[{name:"action",metadatas:{customOperators:Y,label:s({id:"Settings.permissions.auditLogs.action",defaultMessage:"Action"}),options:l,customInput:q},fieldSchema:{type:"enumeration"}},{name:"date",metadatas:{label:s({id:"Settings.permissions.auditLogs.date",defaultMessage:"Date"})},fieldSchema:{type:"datetime"}}];if(c&&g){const r=i=>i.username?i.username:i.firstname&&i.lastname?s({id:"Settings.permissions.auditLogs.user.fullname",defaultMessage:"{firstname} {lastname}"},{firstname:i.firstname,lastname:i.lastname}):i.email,d=g.map(i=>({label:r(i),customValue:i.id.toString()}));return[...E,{name:"user",metadatas:{customOperators:Y,label:s({id:"Settings.permissions.auditLogs.user",defaultMessage:"User"}),options:d,customInput:q},fieldSchema:{type:"relation",mainField:{name:"id"}}}]}return E},fe=t(53038),ae=t(19150),se=({canReadAuditLogs:s,canReadUsers:g})=>{const{get:c}=(0,o.kY)(),{search:l}=(0,fe.TH)(),E=(0,o.lm)(),r={keepPreviousData:!0,retry:!1,staleTime:1e3*20,onError:I=>E({type:"warning",message:I.message})},{users:d,isError:i,isLoading:D}=(0,ae.R)({},{...r,enabled:g,staleTime:2*(1e3*60)}),{data:C,isLoading:$,isError:F}=(0,O.useQuery)(["auditLogs",l],async({queryKey:I})=>{const Me=I[1],{data:Le}=await c(`/admin/audit-logs${Me}`);return Le},{...r,enabled:s});return{auditLogs:C,users:d,isLoading:D||$,hasError:F||i}};const ve={...p.Z.settings.auditLogs,readUsers:p.Z.settings.users.read};var ne=()=>{const{formatMessage:s}=(0,M.Z)(),{allowedActions:{canRead:g,canReadUsers:c}}=(0,o.ss)(ve),[{query:l},E]=(0,o.Kx)(),{auditLogs:r,users:d,isLoading:i,hasError:D}=se({canReadAuditLogs:g,canReadUsers:c});(0,o.go)();const C=te({formatMessage:s,users:d,canReadUsers:c}),$=s({id:"global.auditLogs",defaultMessage:"Audit Logs"}),F=de.map(I=>({...I,metadatas:{...I.metadatas,label:s(I.metadatas.label)}}));return D?e.createElement(m.A,null,e.createElement(h.D,null,e.createElement(v.x,{paddingTop:8},e.createElement(o.Hn,null)))):e.createElement(L.o,{"aria-busy":i},e.createElement(o.SL,{name:$}),e.createElement(y.T,{title:$,subtitle:s({id:"Settings.permissions.auditLogs.listview.header.subtitle",defaultMessage:"Logs of all the activities that happened in your environment"})}),e.createElement(f.Z,{startActions:e.createElement(he.Z,{displayedFilters:C})}),e.createElement(h.D,{canRead:g},e.createElement(o.tM,{contentType:"Audit logs",headers:F,rows:r?.results||[],withBulkActions:!0,isLoading:i},e.createElement(le,{headers:F,rows:r?.results||[],onOpenModal:I=>E({id:I})})),e.createElement(a,{pagination:r?.pagination})),l?.id&&e.createElement(pe,{handleClose:()=>E({id:null},"remove"),logId:l.id}))},oe=()=>e.createElement(o.O4,{permissions:p.Z.settings.auditLogs.main},e.createElement(ne,null))},11299:function(b,P,t){t.d(P,{$:function(){return y},O:function(){return f}});var e=t(74512),o=t(77277),p=t(8471),M=t(3685),m=t(87933),h=t(72850),v=t(49372);const L=(0,p.ZP)(m.k)`
|
|
2
|
-
svg {
|
|
3
|
-
height: ${10/16}rem;
|
|
4
|
-
width: ${10/16}rem;
|
|
5
|
-
path {
|
|
6
|
-
fill: ${({theme:u})=>u.colors.neutral500};
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
:last-of-type ${h.x} {
|
|
10
|
-
display: none;
|
|
11
|
-
}
|
|
12
|
-
:last-of-type ${v.Z} {
|
|
13
|
-
color: ${({theme:u})=>u.colors.neutral800};
|
|
14
|
-
font-weight: ${({theme:u})=>u.fontWeights.bold};
|
|
15
|
-
}
|
|
16
|
-
`,y=({children:u})=>(0,e.jsxs)(L,{inline:!0,as:"li",children:[(0,e.jsx)(v.Z,{variant:"pi",textColor:"neutral600",children:u}),(0,e.jsx)(h.x,{"aria-hidden":!0,paddingLeft:3,paddingRight:3,children:(0,e.jsx)(o.Z,{})})]});y.displayName="Crumb";const f=({children:u,label:n,...A})=>(0,e.jsxs)(m.k,{...A,children:[(0,e.jsx)(M.T,{children:n}),(0,e.jsx)("ol",{"aria-hidden":!0,children:u})]});f.displayName="Breadcrumbs"},21428:function(b,P,t){t.d(P,{Wx:function(){return de},XU:function(){return Pe},hQ:function(){return X}});var e=t(74512),o=t(32735),p=t(35331),M=t(16899),m=t(42345),h=t(8471),v=t(14268),L=t(95976),y=t(74971),f=t(36971),u=t(30350),n=t(23866),A=t(72850),R=t(49372),j=t(87107),x=t(87933),S=t(28847),re=t(67014),ie=t(47851);const X=({children:a,clearLabel:O="clear",creatable:_=!1,createMessage:Q=s=>`Create "${s}"`,defaultFilterValue:W,defaultTextValue:N,defaultOpen:ue=!1,open:ce,onOpenChange:me,disabled:K=!1,error:B,filterValue:H,hasMoreItems:ge=!1,hint:k,id:pe,label:he,labelAction:Ee,loading:z=!1,loadingMessage:J="Loading content...",noOptionsMessage:q=()=>"No results found",onChange:Y,onClear:ee,onCreateOption:te,onFilterValueChange:fe,onInputChange:ae,onTextValueChange:xe,onLoadMore:se,placeholder:ve="Select or enter a value",required:ye=!1,startIcon:ne,textValue:Oe,value:oe})=>{const[s,g]=(0,L.T)({prop:ce,defaultProp:ue,onChange:me}),[c,l]=(0,L.T)({prop:Oe,defaultProp:N,onChange:xe}),[E,r]=(0,L.T)({prop:H,defaultProp:W,onChange:fe}),d=o.useRef(null),i=o.useRef(null),D=o.useRef(null),C=(0,y.M)(pe),$=T=>{ee&&!K&&(l(""),r(""),ee(T),i.current.focus())},F=T=>{g(T)},I=T=>{l(T)},Me=T=>{r(T)},Le=T=>{ae&&ae(T)},Re=T=>{Y&&Y(T)},Ae=(0,y.M)(),Ce=`intersection-${(0,v.B)(Ae)}`,je=T=>{se&&ge&&!z&&se(T)},Te=()=>{te&&c&&te(c)};(0,f.s)(d,je,{selectorToWatch:`#${Ce}`,skipWhen:!s});const Ie=`${C}-hint`,$e=`${C}-error`;return(0,e.jsx)(j.g,{hint:k,error:B,id:C,required:ye,children:(0,e.jsxs)(x.k,{direction:"column",alignItems:"stretch",gap:1,children:[(0,e.jsx)(S.Q,{action:Ee,children:he}),(0,e.jsxs)(m.hQ.Root,{autocomplete:_?"list":"both",open:s,onOpenChange:F,onTextValueChange:I,textValue:c,allowCustomValue:!0,disabled:K,required:ye,value:oe===null?void 0:oe,onValueChange:Re,filterValue:E,onFilterValueChange:Me,children:[(0,e.jsxs)(w,{$hasError:!!B,children:[(0,e.jsxs)(x.k,{flex:"1",as:"span",gap:3,children:[ne?(0,e.jsx)(A.x,{as:"span","aria-hidden":!0,children:ne}):null,(0,e.jsx)(Z,{placeholder:ve,id:C,"aria-invalid":!!B,"aria-labelledby":`${Ie} ${$e}`,onChange:Le,ref:i})]}),(0,e.jsxs)(x.k,{as:"span",gap:3,children:[c&&ee?(0,e.jsx)(G,{as:"button",hasRadius:!0,background:"transparent",type:"button",onClick:$,"aria-disabled":K,"aria-label":O,title:O,ref:D,children:(0,e.jsx)(p.Z,{})}):null,(0,e.jsx)(V,{children:(0,e.jsx)(M.Z,{})})]})]}),(0,e.jsx)(m.hQ.Portal,{children:(0,e.jsx)(le,{sideOffset:4,children:(0,e.jsxs)(De,{ref:d,children:[a,_?(0,e.jsx)(m.hQ.CreateItem,{onPointerUp:Te,onClick:Te,asChild:!0,children:(0,e.jsx)(U,{children:(0,e.jsx)(R.Z,{children:Q(c??"")})})}):null,!_&&!z?(0,e.jsx)(m.hQ.NoValueFound,{asChild:!0,children:(0,e.jsx)(U,{$hasHover:!1,children:(0,e.jsx)(R.Z,{children:q(c??"")})})}):null,z?(0,e.jsx)(x.k,{justifyContent:"center",alignItems:"center",paddingTop:2,paddingBottom:2,children:(0,e.jsx)(n.a,{small:!0,children:J})}):null,(0,e.jsx)(A.x,{id:Ce,width:"100%",height:"1px"})]})})})]}),(0,e.jsx)(re.J,{}),(0,e.jsx)(ie.c,{})]})})},Pe=a=>(0,e.jsx)(X,{...a,creatable:!0}),G=(0,h.ZP)(A.x)`
|
|
17
|
-
border: none;
|
|
18
|
-
|
|
19
|
-
svg {
|
|
20
|
-
height: ${11/16}rem;
|
|
21
|
-
width: ${11/16}rem;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
svg path {
|
|
25
|
-
fill: ${({theme:a})=>a.colors.neutral600};
|
|
26
|
-
}
|
|
27
|
-
`,w=(0,h.ZP)(m.hQ.Trigger)`
|
|
28
|
-
position: relative;
|
|
29
|
-
border: 1px solid ${({theme:a,$hasError:O})=>O?a.colors.danger600:a.colors.neutral200};
|
|
30
|
-
padding-right: ${({theme:a})=>a.spaces[3]};
|
|
31
|
-
padding-left: ${({theme:a})=>a.spaces[3]};
|
|
32
|
-
border-radius: ${({theme:a})=>a.borderRadius};
|
|
33
|
-
background: ${({theme:a})=>a.colors.neutral0};
|
|
34
|
-
overflow: hidden;
|
|
35
|
-
display: flex;
|
|
36
|
-
align-items: center;
|
|
37
|
-
justify-content: space-between;
|
|
38
|
-
gap: ${({theme:a})=>a.spaces[4]};
|
|
39
|
-
|
|
40
|
-
&[data-disabled] {
|
|
41
|
-
color: ${({theme:a})=>a.colors.neutral600};
|
|
42
|
-
background: ${({theme:a})=>a.colors.neutral150};
|
|
43
|
-
cursor: not-allowed;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
/* Required to ensure the below inputFocusStyles are adhered too */
|
|
47
|
-
&:focus-visible {
|
|
48
|
-
outline: none;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
${({theme:a,$hasError:O})=>(0,u.k3)()({theme:a,hasError:O})};
|
|
52
|
-
`,Z=(0,h.ZP)(m.hQ.TextInput)`
|
|
53
|
-
width: 100%;
|
|
54
|
-
font-size: ${14/16}rem;
|
|
55
|
-
color: ${({theme:a})=>a.colors.neutral800};
|
|
56
|
-
min-height: ${40/16}rem;
|
|
57
|
-
border: none;
|
|
58
|
-
background-color: transparent;
|
|
59
|
-
|
|
60
|
-
&:focus-visible {
|
|
61
|
-
outline: none;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
&[aria-disabled='true'] {
|
|
65
|
-
cursor: inherit;
|
|
66
|
-
}
|
|
67
|
-
`,V=(0,h.ZP)(m.hQ.Icon)`
|
|
68
|
-
& > svg {
|
|
69
|
-
width: ${6/16}rem;
|
|
70
|
-
|
|
71
|
-
& > path {
|
|
72
|
-
fill: ${({theme:a})=>a.colors.neutral600};
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
&[aria-disabled='true'] {
|
|
77
|
-
cursor: inherit;
|
|
78
|
-
}
|
|
79
|
-
`,le=(0,h.ZP)(m.hQ.Content)`
|
|
80
|
-
background: ${({theme:a})=>a.colors.neutral0};
|
|
81
|
-
box-shadow: ${({theme:a})=>a.shadows.filterShadow};
|
|
82
|
-
border: 1px solid ${({theme:a})=>a.colors.neutral150};
|
|
83
|
-
border-radius: ${({theme:a})=>a.borderRadius};
|
|
84
|
-
width: var(--radix-combobox-trigger-width);
|
|
85
|
-
/* This is from the design-system figma file. */
|
|
86
|
-
max-height: 15rem;
|
|
87
|
-
z-index: ${({theme:a})=>a.zIndices[1]};
|
|
88
|
-
`,De=(0,h.ZP)(m.hQ.Viewport)`
|
|
89
|
-
padding: ${({theme:a})=>a.spaces[1]};
|
|
90
|
-
`,de=o.forwardRef(({children:a,value:O,disabled:_,textValue:Q,...W},N)=>(0,e.jsx)(m.hQ.ComboboxItem,{asChild:!0,value:O,disabled:_,textValue:Q,children:(0,e.jsx)(U,{ref:N,...W,children:(0,e.jsx)(m.hQ.ItemText,{asChild:!0,children:(0,e.jsx)(R.Z,{children:a})})})})),U=h.ZP.div`
|
|
91
|
-
width: 100%;
|
|
92
|
-
border: none;
|
|
93
|
-
text-align: left;
|
|
94
|
-
outline-offset: -3px;
|
|
95
|
-
padding: ${({theme:a})=>a.spaces[2]} ${({theme:a})=>a.spaces[4]};
|
|
96
|
-
background-color: ${({theme:a})=>a.colors.neutral0};
|
|
97
|
-
border-radius: ${({theme:a})=>a.borderRadius};
|
|
98
|
-
user-select: none;
|
|
99
|
-
|
|
100
|
-
&[data-selected] {
|
|
101
|
-
background-color: ${({theme:a})=>a.colors.primary100};
|
|
102
|
-
|
|
103
|
-
${R.Z} {
|
|
104
|
-
color: ${({theme:a})=>a.colors.primary600};
|
|
105
|
-
font-weight: bold;
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
&:hover,
|
|
110
|
-
&[data-highlighted] {
|
|
111
|
-
outline: none;
|
|
112
|
-
background-color: ${({theme:a,$hasHover:O=!0})=>O?a.colors.primary100:a.colors.neutral0};
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
&[data-highlighted] {
|
|
116
|
-
${R.Z} {
|
|
117
|
-
color: ${({theme:a})=>a.colors.primary600};
|
|
118
|
-
font-weight: bold;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
`},90333:function(b,P,t){t.d(P,{O:function(){return o}});var e=t(21428);const o=e.Wx},99223:function(b,P,t){t.d(P,{Z:function(){return y}});var e=t(74512),o=t(32735),p=t(60216),M=t(8471),m=t(87933),h=t(72850);const v=(0,M.ZP)(m.k)`
|
|
122
|
-
& > * + * {
|
|
123
|
-
margin-left: ${({theme:f})=>f.spaces[2]};
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
margin-left: ${({pullRight:f})=>f?"auto":void 0};
|
|
127
|
-
`,L=(0,M.ZP)(v)`
|
|
128
|
-
flex-shrink: 0;
|
|
129
|
-
`,y=({startActions:f,endActions:u})=>f||u?(0,e.jsx)(h.x,{paddingLeft:10,paddingRight:10,children:(0,e.jsx)(h.x,{paddingBottom:4,children:(0,e.jsxs)(m.k,{justifyContent:"space-between",alignItems:"flex-start",children:[f&&(0,e.jsx)(v,{wrap:"wrap",children:f}),u&&(0,e.jsx)(L,{pullRight:!0,children:u})]})})}):null;y.defaultProps={endActions:void 0,startActions:void 0},y.propTypes={endActions:p.node,startActions:p.node}}}]);
|