@odigos/ui-kit 0.0.203 → 0.0.205
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/CHANGELOG.md +21 -0
- package/lib/chunks/{index-CmIINVHt.js → index-BWrHoFMs.js} +1 -1
- package/lib/chunks/{ui-components-Ci6lJdLr.js → ui-components-BlfhQM0V.js} +22 -15
- package/lib/components/_v2/badge/index.d.ts +1 -1
- package/lib/components/_v2/button/index.d.ts +3 -1
- package/lib/components/_v2/drawer/header/index.d.ts +3 -3
- package/lib/components/_v2/drawer/index.d.ts +1 -1
- package/lib/components/_v2/note/index.d.ts +1 -0
- package/lib/components/_v2/typography/index.d.ts +1 -0
- package/lib/components/v2.js +1 -1
- package/lib/components.js +1 -1
- package/lib/constants.js +1 -1
- package/lib/containers/_v2/_drawers/add-action-drawer/index.d.ts +2 -2
- package/lib/containers/_v2/_drawers/add-destination-drawer/index.d.ts +2 -2
- package/lib/containers/_v2/_drawers/add-rule-drawer/index.d.ts +2 -2
- package/lib/containers/_v2/_drawers/edit-config-drawer/index.d.ts +2 -2
- package/lib/containers/_v2/_drawers/system-drawer/index.d.ts +2 -1
- package/lib/containers/_v2/pipeline-collectors/general-info/yaml-drawer/index.d.ts +2 -1
- package/lib/containers/_v2/pipeline-collectors/pods-info/pod-drawer/index.d.ts +2 -2
- package/lib/containers/source-drawer/index.d.ts +2 -0
- package/lib/containers/source-drawer/peers/index.d.ts +12 -0
- package/lib/containers/v2.js +33 -35
- package/lib/containers.js +126 -115
- package/lib/contexts.js +1 -1
- package/lib/functions.js +1 -1
- package/lib/hooks.js +1 -1
- package/lib/icons/brand/index.d.ts +3 -1
- package/lib/icons/brand/odigos-logo-text-central/index.d.ts +2 -0
- package/lib/icons/brand/odigos-logo-text-community/index.d.ts +2 -0
- package/lib/icons/brand/odigos-logo-text-enterprise/index.d.ts +2 -0
- package/lib/icons.js +1 -1
- package/lib/snippets/_v2/signals-checkbox-list/index.d.ts +1 -0
- package/lib/snippets/_v2/wide-drawer/column/index.d.ts +1 -1
- package/lib/snippets/_v2/wide-drawer/column-list-collapse/index.d.ts +1 -0
- package/lib/snippets/_v2/wide-drawer/column-list-item/index.d.ts +1 -0
- package/lib/snippets/_v2/wide-drawer/index.d.ts +8 -3
- package/lib/snippets.js +1 -1
- package/lib/store.js +1 -1
- package/lib/theme.js +1 -1
- package/lib/types/service-map/index.d.ts +4 -0
- package/lib/types.js +1 -1
- package/lib/visuals.js +1 -1
- package/package.json +2 -2
- package/lib/icons/brand/odigos-central-logo-text/index.d.ts +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.205](https://github.com/odigos-io/ui-kit/compare/ui-kit-v0.0.204...ui-kit-v0.0.205) (2026-03-15)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* add product logos ([#716](https://github.com/odigos-io/ui-kit/issues/716)) ([6dab10c](https://github.com/odigos-io/ui-kit/commit/6dab10c751d3e7d37920eb125fa69e5e3588517a))
|
|
9
|
+
* enhance Badge, Button, Note, Segment, and Typography components with new props and improved functionality ([#717](https://github.com/odigos-io/ui-kit/issues/717)) ([1b4478c](https://github.com/odigos-io/ui-kit/commit/1b4478c5c38295875c0ff319bbf71a66ff660b5b))
|
|
10
|
+
* make drawer-header props optional and improve null checks ([#718](https://github.com/odigos-io/ui-kit/issues/718)) ([9c54fe7](https://github.com/odigos-io/ui-kit/commit/9c54fe7c9f60d73c9e16396efce519764532c48f))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* compare destination category by enum value instead of display title ([#721](https://github.com/odigos-io/ui-kit/issues/721)) ([c2b9bfb](https://github.com/odigos-io/ui-kit/commit/c2b9bfb1608d8d6b7e181c61b5b78f051a40b252))
|
|
16
|
+
|
|
17
|
+
## [0.0.204](https://github.com/odigos-io/ui-kit/compare/ui-kit-v0.0.203...ui-kit-v0.0.204) (2026-03-05)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* add Service Map tab to source drawer ([#708](https://github.com/odigos-io/ui-kit/issues/708)) ([4840b16](https://github.com/odigos-io/ui-kit/commit/4840b163cf95c5594d6dc2cb65f7e2d92d1f688e))
|
|
23
|
+
|
|
3
24
|
## [0.0.203](https://github.com/odigos-io/ui-kit/compare/ui-kit-v0.0.202...ui-kit-v0.0.203) (2026-03-04)
|
|
4
25
|
|
|
5
26
|
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{jsx as t}from"react/jsx-runtime";import{useState as o,useMemo as e}from"react";import i from"styled-components";import{am as a,h as n,j as s,az as r,ax as c,aq as l,
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import{useState as o,useMemo as e}from"react";import i from"styled-components";import{am as a,h as n,j as s,az as r,ax as c,aq as l,cK as m,n as p,N as d}from"./ui-components-BlfhQM0V.js";import{VIcon as u,CopyIcon as f,ChevronUpIcon as h,ChevronDownIcon as y,YamlIcon as b}from"../icons.js";const j=i.div`
|
|
2
2
|
padding: 0 12px;
|
|
3
3
|
`,k=({title:i="YAML",yaml:k,defaultOpen:x})=>{const{clickCopy:C,isCopied:Y}=a(),[g,v]=o(x??!1),z=e(()=>k?[{id:c(),type:r.Button,buttonProps:{variant:s.Secondary,size:n.S,leftIcon:Y?u:f,onClick:()=>C(k||""),disabled:Y}},{id:c(),type:r.Button,buttonProps:{variant:s.Secondary,size:n.S,leftIcon:g?h:y,onClick:()=>v(t=>!t)}}]:[],[k,Y,g]);return t(l,{richTitle:{icon:b,title:i},actions:z,children:g&&t(j,{children:k?t(m,{code:k,language:"yaml",theme:"duotoneDark"}):t(p,{children:t(d,{title:"YAML not found",subTitle:"The YAML for this resource is not available"})})})})};export{k as Y};
|
|
@@ -7,6 +7,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as i,RenameAttributeIcon
|
|
|
7
7
|
text-align: ${({$align:e})=>e};
|
|
8
8
|
text-transform: ${({$transform:e})=>e};
|
|
9
9
|
line-height: ${({theme:e,$lineHeight:t,$size:i})=>t||`${e.v2.text.size[i]+2}px`};
|
|
10
|
+
opacity: ${({$opacity:e})=>e};
|
|
10
11
|
|
|
11
12
|
${({$nowrap:e})=>e&&Bt`
|
|
12
13
|
text-wrap: nowrap;
|
|
@@ -25,17 +26,17 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as i,RenameAttributeIcon
|
|
|
25
26
|
text-decoration: underline;
|
|
26
27
|
}
|
|
27
28
|
`}
|
|
28
|
-
`,co=({children:e,variant:t=ao.P,color:i,size:n=so.S,weight:o=400,
|
|
29
|
+
`,co=({children:e,variant:t=ao.P,color:i,size:n=so.S,weight:o=400,opacity:r=1,align:a="left",lineHeight:s,transform:l,nowrap:c,underline:d,onClick:p,disabled:u,...h})=>{const m=e?.toString().split("\n")||[];return zt(lo,{as:t,$color:i,$size:n,$weight:o,$opacity:r,$align:a,$lineHeight:s,$transform:l,$nowrap:c,$underline:d,$withClick:!!p&&!u,onClick:u?void 0:p,...h,children:m.map((e,t)=>Ft(ft,{children:[e,t!==m.length-1&&zt("br",{})]},`typography-${t}-${e}`))})},po=Rt.div`
|
|
29
30
|
display: flex;
|
|
30
31
|
align-items: center;
|
|
31
32
|
justify-content: center;
|
|
32
33
|
gap: 4px;
|
|
33
34
|
min-width: ${({$minWidth:e})=>e};
|
|
34
35
|
width: fit-content;
|
|
35
|
-
padding: 4px 8px;
|
|
36
|
+
padding: ${({$hasLabel:e})=>e?"4px 8px":"4px"};
|
|
36
37
|
border-radius: 100px;
|
|
37
38
|
background-color: ${({$backgroundColor:e})=>e};
|
|
38
|
-
`,uo=({label:e,leftIcon:t,rightIcon:i,status:n=Ti.Unknown,useSecondaryTone:o=!1,invertColors:r=!1,textSize:a,textColor:s,backgroundColor:l,minWidth:c="unset"})=>{const d=Mt(),p=n?[Ti.Disabled].includes(n)?Nn(d,n,r?"400":"700"):[Ti.Unknown].includes(n)?Nn(d,n,"600"):Nn(d,n,r?o?"400":"300":o?"700":"500"):d.v2.colors.grey[200],
|
|
39
|
+
`,uo=({label:e,leftIcon:t,rightIcon:i,status:n=Ti.Unknown,useSecondaryTone:o=!1,invertColors:r=!1,textSize:a,textColor:s,backgroundColor:l,minWidth:c="unset"})=>{const d=Mt(),p=e?.toString(),u=n?[Ti.Disabled].includes(n)?Nn(d,n,r?"400":"700"):[Ti.Unknown].includes(n)?Nn(d,n,"600"):Nn(d,n,r?o?"400":"300":o?"700":"500"):d.v2.colors.grey[200],h=s||(r&&![Ti.Unknown].includes(n)?u:[Ti.Disabled].includes(n)?d.v2.colors.grey[400]:[Ei.Error,Ei.Warning,Ei.Success].includes(n)?d.v2.colors.black[500]:d.v2.colors.white[500]),m=l||(r&&![Ti.Unknown].includes(n)?[Ti.Disabled].includes(n)?d.v2.colors.grey[700]:d.v2.colors.silver[600]:u);return Ft(po,{$backgroundColor:m,$minWidth:c,$hasLabel:!!p,children:[t&&zt(t,{fill:h,size:14}),p&&zt(co,{color:h,size:a||so.XXS,nowrap:!0,children:p}),i&&zt(i,{fill:h,size:14})]})},ho=Rt.div`
|
|
39
40
|
color: ${({$color:e,theme:t})=>e||t.text.secondary};
|
|
40
41
|
font-size: ${({$size:e})=>void 0!==e?e:16}px;
|
|
41
42
|
font-weight: ${({$weight:e})=>void 0!==e?e:300};
|
|
@@ -1664,7 +1665,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as i,RenameAttributeIcon
|
|
|
1664
1665
|
}
|
|
1665
1666
|
`:""}
|
|
1666
1667
|
}
|
|
1667
|
-
`,Rp=kt(({label:e,leftIcon:t,rightIcon:i,variant:n=zp.Primary,size:o=Fp.M,iconSize:r,loading:a,fullWidth:s,withShadow:l,
|
|
1668
|
+
`,Rp=kt(({label:e,leftIcon:t,rightIcon:i,variant:n=zp.Primary,size:o=Fp.M,iconSize:r,loading:a,fullWidth:s,withShadow:l,textColor:c,disabled:d,onClick:p,...u},h)=>{const m=Mt(),g=r||(o===Fp.L?18:16),$=o===Fp.L?so.S:so.XS,x=c||(d?m.v2.colors.grey[400]:m.v2.colors.white[500]),[f,b]=yt(!1),y=Ct(async e=>{e.stopPropagation(),b(!0),await(p?.(e)),b(!1)},[p]);return zt(_p,{ref:h,$variant:n,$size:o,$fullWidth:s,$withShadow:l,$hasLabel:!!e,disabled:d,onClick:a||f?void 0:y,...u,children:a||f?e?zt(Md,{size:m.v2.text.size[$],textColor:x}):zt(ys,{}):Ft(_t,{children:[t&&zt(t,{size:g,fill:x}),e?zt(co,{size:$,weight:500,color:x,nowrap:!0,children:e}):null,i&&zt(i,{size:g,fill:x})]})})});Rp.displayName=Rp.name;const Bp=Rt.button`
|
|
1668
1669
|
width: 100%;
|
|
1669
1670
|
padding: 0;
|
|
1670
1671
|
padding-right: 12px;
|
|
@@ -1733,12 +1734,18 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as i,RenameAttributeIcon
|
|
|
1733
1734
|
padding: ${({$size:e})=>e===Gp.S?"4px 8px":"8px 16px"};
|
|
1734
1735
|
border-radius: 6px;
|
|
1735
1736
|
border: none;
|
|
1736
|
-
background-color: ${({theme:e,$isSelected:t,$selectedBgColor:i})=>t?i||e.v2.colors.black[500]:"transparent"};
|
|
1737
1737
|
box-shadow: ${({$isSelected:e})=>e?"0 0 11px 0 rgba(0, 0, 0, 0.32)":"none"};
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1738
|
+
|
|
1739
|
+
${({$disabled:e,$isSelected:t,$selectedBgColor:i,theme:n})=>e?Bt`
|
|
1740
|
+
cursor: not-allowed;
|
|
1741
|
+
background-color: ${t?(i||n.v2.colors.black[500])+xr["040"]:"transparent"};
|
|
1742
|
+
`:Bt`
|
|
1743
|
+
cursor: pointer;
|
|
1744
|
+
background-color: ${t?i||n.v2.colors.black[500]:"transparent"};
|
|
1745
|
+
&:hover {
|
|
1746
|
+
background-color: ${t?i||n.v2.colors.black[500]:n.v2.colors.silver[800]};
|
|
1747
|
+
}
|
|
1748
|
+
`}
|
|
1742
1749
|
`,Kp=({size:e=Gp.L,options:t=[],selected:i,setSelected:n,disabled:o})=>{const r=Mt(),a=o?r.v2.colors.grey[400]:r.v2.colors.white[500],s=e===Gp.S?so.XXS:so.XS,l=e===Gp.S?400:500;return zt(qp,{$count:t.length,children:t.map(({value:t,label:r,icon:c,selectedBgColor:d},p)=>Ft(Hp,{onClick:()=>!o&&n(t),$size:e,$disabled:o,$isSelected:i===t,$selectedBgColor:d,children:[c&&zt(c,{fill:a}),r&&zt(co,{size:s,weight:l,color:a,nowrap:!0,children:r})]},`segment-${r||p}-${t}`))})},Yp=Rt.div`
|
|
1743
1750
|
box-sizing: border-box !important;
|
|
1744
1751
|
width: ${({$width:e})=>e??"fit-content"};
|
|
@@ -1921,7 +1928,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as i,RenameAttributeIcon
|
|
|
1921
1928
|
display: flex;
|
|
1922
1929
|
align-items: center;
|
|
1923
1930
|
gap: 12px;
|
|
1924
|
-
`,zu=({icon:e,title:t,subTitle:i,actions:n,onClose:o,onCloseDisabled:r})=>Ft(Du,{children:[Ft(Iu,{children:[zt(Nu,{children:zt(e,{size:24})}),Ft(sa,{$gap:6,children:[zt(co,{size:so.S,weight:500,children:t}),i&&zt(co,{size:so.XXS,children:i})]})]}),Ft(Ou,{children:[n?.length?zt(Pr,{icon:ht,size:Mr.M,onClick:()=>alert("todo")}):null,zt(Pr,{icon:Ye,size:Mr.M,onClick:o,disabled:r})]})]}),Fu=Rt.div`
|
|
1931
|
+
`,zu=({icon:e,title:t,subTitle:i,actions:n,onClose:o,onCloseDisabled:r})=>Ft(Du,{children:[Ft(Iu,{children:[e&&zt(Nu,{children:zt(e,{size:24})}),(t||i)&&Ft(sa,{$gap:6,children:[t&&zt(co,{size:so.S,weight:500,children:t}),i&&zt(co,{size:so.XXS,children:i})]})]}),Ft(Ou,{children:[n?.length?zt(Pr,{icon:ht,size:Mr.M,onClick:()=>alert("todo")}):null,o&&zt(Pr,{icon:Ye,size:Mr.M,onClick:o,disabled:r})]})]}),Fu=Rt.div`
|
|
1925
1932
|
position: fixed;
|
|
1926
1933
|
top: 0;
|
|
1927
1934
|
bottom: 0;
|
|
@@ -1947,7 +1954,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as i,RenameAttributeIcon
|
|
|
1947
1954
|
|
|
1948
1955
|
height: calc(100% - ${56}px);
|
|
1949
1956
|
overflow-y: auto;
|
|
1950
|
-
`,Ru=({isOpen:e,hideOverlay:t=!1,position:i="right",width:n="600px",header:o,children:r})=>(Fr(e),e?qt(Ft(_t,{children:[!t&&zt(da,{onClick:o
|
|
1957
|
+
`,Ru=({isOpen:e,hideOverlay:t=!1,position:i="right",width:n="600px",header:o,children:r})=>(Fr(e),e?qt(Ft(_t,{children:[!t&&zt(da,{onClick:o?.onCloseDisabled?void 0:o?.onClose}),Ft(Fu,{$position:i,$width:n,children:[o&&zt(zu,{...o}),zt(_u,{children:r})]})]}),document.body):null),Bu=Rt.span`
|
|
1951
1958
|
font-family: ${({theme:e})=>e.font_family.primary};
|
|
1952
1959
|
font-size: ${({$smallAndDark:e})=>e?"12px":"14px"};
|
|
1953
1960
|
font-weight: 400;
|
|
@@ -2165,8 +2172,8 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as i,RenameAttributeIcon
|
|
|
2165
2172
|
border-radius: 8px;
|
|
2166
2173
|
background-color: ${({theme:e,$status:t})=>Nn(e,t,[Ei.Info].includes(t)?"1000":"900")};
|
|
2167
2174
|
`,Fh=Rt.div`
|
|
2168
|
-
width: 32px;
|
|
2169
|
-
height: 32px;
|
|
2175
|
+
width: ${({$smallIcon:e})=>e?"24px":"32px"};
|
|
2176
|
+
height: ${({$smallIcon:e})=>e?"24px":"32px"};
|
|
2170
2177
|
display: flex;
|
|
2171
2178
|
align-items: center;
|
|
2172
2179
|
justify-content: center;
|
|
@@ -2179,7 +2186,7 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as i,RenameAttributeIcon
|
|
|
2179
2186
|
&:hover {
|
|
2180
2187
|
transform: scale(1.2);
|
|
2181
2188
|
}
|
|
2182
|
-
`,Rh=({status:e,message:t,action:i,fullWidth:n})=>{const
|
|
2189
|
+
`,Rh=({status:e,message:t,action:i,fullWidth:n,smallIcon:o})=>{const r=Mt(),a=zn(e,r),s=Nn(r,e,e===Ei.Default?"300":e===Ei.Info?"400":"500");return Ft(zh,{$status:e,$fullWidth:n,children:[zt("div",{children:zt(Fh,{$status:e,$smallIcon:o,children:zt(a,{size:o?18:24})})}),zt(co,{color:s,size:so.XXXS,weight:400,children:t}),i&&zt(_h,{onClick:i.onClick,children:zt(co,{color:s,size:so.XXS,weight:500,underline:!0,children:i.label})})]})};var Bh;!function(e){e.S="small",e.L="large"}(Bh||(Bh={}));const Mh=Rt.div`
|
|
2183
2190
|
width: fit-content;
|
|
2184
2191
|
display: flex;
|
|
2185
2192
|
align-items: center;
|
|
@@ -2379,4 +2386,4 @@ import{SamplerIcon as e,PiiMaskingIcon as t,ActionIcon as i,RenameAttributeIcon
|
|
|
2379
2386
|
gap: 16px;
|
|
2380
2387
|
padding: 16px 24px;
|
|
2381
2388
|
background-color: ${({theme:e})=>e.v2.colors.silver[1e3]};
|
|
2382
|
-
`,ym=({visual:e,title:t,description:i,isOpen:n,onClose:o,onDeny:r,denyLabel:a="Deny",onApprove:s,approveLabel:l="Approve",...c})=>{const d=Mt();return zt(Th,{isOpen:n,onClose:o,...c,children:Ft(xm,{children:[Ft(fm,{children:[e&&zt(e,{}),zt(co,{size:so.M,weight:500,color:d.v2.colors.white[500],children:t}),zt(sa,{$alignItems:"center",$gap:4,children:i.split("\n").map(e=>zt(co,{size:so.XS,weight:400,color:d.v2.colors.silver[200],children:e},e))})]}),(r||s)&&Ft(bm,{children:[zt(Rp,{variant:zp.Secondary,label:a,onClick:()=>{r?.(),o()}}),s&&zt(Rp,{variant:zp.Primary,label:l,onClick:()=>{s(),o()}})]})]})})};export{Vo as $,li as A,Rp as B,tu as C,Sa as D,Xn as E,sa as F,qi as G,Jn as H,Vu as I,Mi as J,ci as K,kh as L,Wo as M,Oh as N,Fa as O,Li as P,ji as Q,mu as R,qd as S,mm as T,Yi as U,gh as V,ym as W,Ki as X,Pi as Y,Bi as Z,uo as _,Lu as a,Pc as a$,mn as a0,xr as a1,Bo as a2,Mo as a3,Nr as a4,on as a5,nn as a6,Pr as a7,Mr as a8,Po as a9,rn as aA,oa as aB,im as aC,Wh as aD,oh as aE,On as aF,ys as aG,Tu as aH,Cr as aI,uu as aJ,yu as aK,Cu as aL,Ui as aM,ra as aN,yc as aO,Ol as aP,os as aQ,yo as aR,Ll as aS,Td as aT,Dp as aU,_d as aV,kd as aW,Ba as aX,Fs as aY,ip as aZ,Zd as a_,jo as aa,fn as ab,Gp as ac,Jo as ad,Uo as ae,Ti as af,cm as ag,ao as ah,ar as ai,en as aj,wi as ak,nr as al,jr as am,Hr as an,na as ao,Un as ap,xu as aq,Zo as ar,du as as,ru as at,ou as au,El as av,Vp as aw,dn as ax,kl as ay,pu as az,Pu as b,Ur as b$,jd as b0,Sp as b1,xo as b2,Xo as b3,sd as b4,Mc as b5,ts as b6,zr as b7,yn as b8,Lo as b9,cl as bA,Op as bB,Sr as bC,no as bD,Ir as bE,sr as bF,el as bG,Ri as bH,ln as bI,Cn as bJ,xn as bK,pp as bL,Br as bM,an as bN,ri as bO,Zi as bP,oi as bQ,_r as bR,Yr as bS,Na as bT,ca as bU,rp as bV,Kr as bW,Hn as bX,Vl as bY,tn as bZ,Jr as b_,Ds as ba,Oc as bb,pn as bc,yi as bd,tr as be,ka as bf,pa as bg,qa as bh,Fo as bi,Vd as bj,un as bk,zs as bl,Ai as bm,Kn as bn,zn as bo,er as bp,ni as bq,Ws as br,wn as bs,Ks as bt,ua as bu,ha as bv,$d as bw,bn as bx,ma as by,bc as bz,ki as c,
|
|
2389
|
+
`,ym=({visual:e,title:t,description:i,isOpen:n,onClose:o,onDeny:r,denyLabel:a="Deny",onApprove:s,approveLabel:l="Approve",...c})=>{const d=Mt();return zt(Th,{isOpen:n,onClose:o,...c,children:Ft(xm,{children:[Ft(fm,{children:[e&&zt(e,{}),zt(co,{size:so.M,weight:500,color:d.v2.colors.white[500],children:t}),zt(sa,{$alignItems:"center",$gap:4,children:i.split("\n").map(e=>zt(co,{size:so.XS,weight:400,color:d.v2.colors.silver[200],children:e},e))})]}),(r||s)&&Ft(bm,{children:[zt(Rp,{variant:zp.Secondary,label:a,onClick:()=>{r?.(),o()}}),s&&zt(Rp,{variant:zp.Primary,label:l,onClick:()=>{s(),o()}})]})]})})};export{Vo as $,li as A,Rp as B,tu as C,Sa as D,Xn as E,sa as F,qi as G,Jn as H,Vu as I,Mi as J,ci as K,kh as L,Wo as M,Oh as N,Fa as O,Li as P,ji as Q,mu as R,qd as S,mm as T,Yi as U,gh as V,ym as W,Ki as X,Pi as Y,Bi as Z,uo as _,Lu as a,Pc as a$,mn as a0,xr as a1,Bo as a2,Mo as a3,Nr as a4,on as a5,nn as a6,Pr as a7,Mr as a8,Po as a9,rn as aA,oa as aB,im as aC,Wh as aD,oh as aE,On as aF,ys as aG,Tu as aH,Cr as aI,uu as aJ,yu as aK,Cu as aL,Ui as aM,ra as aN,yc as aO,Ol as aP,os as aQ,yo as aR,Ll as aS,Td as aT,Dp as aU,_d as aV,kd as aW,Ba as aX,Fs as aY,ip as aZ,Zd as a_,jo as aa,fn as ab,Gp as ac,Jo as ad,Uo as ae,Ti as af,cm as ag,ao as ah,ar as ai,en as aj,wi as ak,nr as al,jr as am,Hr as an,na as ao,Un as ap,xu as aq,Zo as ar,du as as,ru as at,ou as au,El as av,Vp as aw,dn as ax,kl as ay,pu as az,Pu as b,Ur as b$,jd as b0,Sp as b1,xo as b2,Xo as b3,sd as b4,Mc as b5,ts as b6,zr as b7,yn as b8,Lo as b9,cl as bA,Op as bB,Sr as bC,no as bD,Ir as bE,sr as bF,el as bG,Ri as bH,ln as bI,Cn as bJ,xn as bK,pp as bL,Br as bM,an as bN,ri as bO,Zi as bP,oi as bQ,_r as bR,Yr as bS,Na as bT,ca as bU,rp as bV,Kr as bW,Hn as bX,Vl as bY,tn as bZ,Jr as b_,Ds as ba,Oc as bb,pn as bc,yi as bd,tr as be,ka as bf,pa as bg,qa as bh,Fo as bi,Vd as bj,un as bk,zs as bl,Ai as bm,Kn as bn,zn as bo,er as bp,ni as bq,Ws as br,wn as bs,Ks as bt,ua as bu,ha as bv,$d as bw,bn as bx,ma as by,bc as bz,ki as c,Xi as c$,dr as c0,vs as c1,Ms as c2,vi as c3,Yn as c4,Vr as c5,Mn as c6,Zt as c7,Ji as c8,bp as c9,gn as cA,ia as cB,qs as cC,hn as cD,ic as cE,Ko as cF,cn as cG,ss as cH,Dn as cI,Ps as cJ,ms as cK,ai as cL,Oi as cM,ui as cN,zi as cO,Ni as cP,fi as cQ,Si as cR,hi as cS,mi as cT,pi as cU,_i as cV,xi as cW,Gi as cX,Vi as cY,Wi as cZ,Di as c_,Ec as ca,En as cb,vp as cc,ir as cd,qr as ce,$i as cf,es as cg,br as ch,Rn as ci,Rr as cj,Ii as ck,wl as cl,Bs as cm,bd as cn,Fn as co,Ln as cp,Rs as cq,al as cr,ll as cs,Ju as ct,Wn as cu,Qn as cv,Zr as cw,Fi as cx,bi as cy,ac as cz,ih as d,Bh as d$,Hi as d0,gi as d1,di as d2,Qt as d3,sn as d4,$n as d5,vn as d6,kn as d7,Sn as d8,An as d9,xl as dA,pl as dB,Bc as dC,nd as dD,Xc as dE,cd as dF,md as dG,js as dH,Md as dI,da as dJ,Vc as dK,ga as dL,mo as dM,go as dN,$o as dO,xh as dP,$h as dQ,yh as dR,Pp as dS,jp as dT,nu as dU,Zp as dV,Ku as dW,Th as dX,Ih as dY,Ph as dZ,Uh as d_,Tn as da,In as db,Nn as dc,_n as dd,jn as de,Vn as df,qn as dg,Zn as dh,eo as di,to as dj,io as dk,oo as dl,ro as dm,Go as dn,qo as dp,Ho as dq,Ro as dr,$r as ds,kr as dt,fr as du,gr as dv,Fr as dw,Cl as dx,Al as dy,Tl as dz,dm as e,gu as e0,om as e1,$m as e2,lm as e3,Xu as f,aa as g,Fp as h,Pn as i,zp as j,Ci as k,si as l,ii as m,la as n,Ru as o,so as p,Xp as q,Rh as r,Ei as s,co as t,Qi as u,Kp as v,sm as w,ti as x,Gu as y,Bn as z};
|
|
@@ -2,7 +2,7 @@ import { CSSProperties, type FC } from 'react';
|
|
|
2
2
|
import { TypographySize } from '../typography';
|
|
3
3
|
import { type SVG, StatusType, OtherStatusType } from '@/types';
|
|
4
4
|
export interface BadgeProps {
|
|
5
|
-
label
|
|
5
|
+
label?: string | number;
|
|
6
6
|
leftIcon?: SVG;
|
|
7
7
|
rightIcon?: SVG;
|
|
8
8
|
status?: StatusType | OtherStatusType;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { type ButtonHTMLAttributes } from 'react';
|
|
1
|
+
import React, { type ButtonHTMLAttributes, type MouseEvent } from 'react';
|
|
2
2
|
import type { SVG, SVGProps } from '@/types';
|
|
3
3
|
export declare enum ButtonVariants {
|
|
4
4
|
Primary = "primary",
|
|
@@ -20,5 +20,7 @@ export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
|
20
20
|
loading?: boolean;
|
|
21
21
|
fullWidth?: boolean;
|
|
22
22
|
withShadow?: boolean;
|
|
23
|
+
textColor?: string;
|
|
24
|
+
onClick?: (e: MouseEvent<HTMLButtonElement>) => unknown | ((e: MouseEvent<HTMLButtonElement>) => Promise<unknown>);
|
|
23
25
|
}
|
|
24
26
|
export declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { type FC } from 'react';
|
|
2
2
|
import type { SVG } from '@/types';
|
|
3
3
|
export interface HeaderProps {
|
|
4
|
-
icon
|
|
5
|
-
title
|
|
4
|
+
icon?: SVG;
|
|
5
|
+
title?: string;
|
|
6
6
|
subTitle?: string;
|
|
7
7
|
actions?: [];
|
|
8
|
-
onClose
|
|
8
|
+
onClose?: () => void;
|
|
9
9
|
onCloseDisabled?: boolean;
|
|
10
10
|
}
|
|
11
11
|
export declare const Header: FC<HeaderProps>;
|
|
@@ -26,6 +26,7 @@ export interface TypographyProps {
|
|
|
26
26
|
color?: CSSProperties['color'];
|
|
27
27
|
size?: TypographySize;
|
|
28
28
|
weight?: CSSProperties['fontWeight'];
|
|
29
|
+
opacity?: CSSProperties['opacity'];
|
|
29
30
|
align?: CSSProperties['textAlign'];
|
|
30
31
|
transform?: CSSProperties['textTransform'];
|
|
31
32
|
lineHeight?: CSSProperties['lineHeight'];
|
package/lib/components/v2.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{_ as Badge,B as Button,h as ButtonSize,dS as ButtonTab,dT as ButtonTabList,j as ButtonVariants,C as Checkbox,dU as CheckboxList,dV as CheckboxSize,aH as CliCommand,aw as DataCard,o as Drawer,as as DropData,au as DropDataAlignX,at as DropDataAlignY,y as DropDown,b as FieldMessage,a as FieldTitle,dW as Header,ct as HoverActions,a7 as IconButton,a8 as IconButtonSize,I as Input,f as InputList,d as InputTable,aE as Island,L as Loader,dX as Modal,dY as Navbar,N as NoData,r as Note,dZ as Radio,d_ as RadioGroup,d$ as RadioSize,q as Search,aq as SectionCard,e0 as SectionCardSize,v as Segment,ac as SegmentSize,aK as StatusCard,aC as Table,aD as TableVariant,e1 as Tag,w as TextArea,aL as TextCard,T as Toggle,e as ToggleLabelAlign,e2 as ToggleList,ag as ToggleSize,e3 as ToggleVariant,t as Typography,p as TypographySize,ah as TypographyVariants,W as WarningModal}from"../chunks/ui-components-
|
|
1
|
+
export{_ as Badge,B as Button,h as ButtonSize,dS as ButtonTab,dT as ButtonTabList,j as ButtonVariants,C as Checkbox,dU as CheckboxList,dV as CheckboxSize,aH as CliCommand,aw as DataCard,o as Drawer,as as DropData,au as DropDataAlignX,at as DropDataAlignY,y as DropDown,b as FieldMessage,a as FieldTitle,dW as Header,ct as HoverActions,a7 as IconButton,a8 as IconButtonSize,I as Input,f as InputList,d as InputTable,aE as Island,L as Loader,dX as Modal,dY as Navbar,N as NoData,r as Note,dZ as Radio,d_ as RadioGroup,d$ as RadioSize,q as Search,aq as SectionCard,e0 as SectionCardSize,v as Segment,ac as SegmentSize,aK as StatusCard,aC as Table,aD as TableVariant,e1 as Tag,w as TextArea,aL as TextCard,T as Toggle,e as ToggleLabelAlign,e2 as ToggleList,ag as ToggleSize,e3 as ToggleVariant,t as Typography,p as TypographySize,ah as TypographyVariants,W as WarningModal}from"../chunks/ui-components-BlfhQM0V.js";import"../icons.js";import"react/jsx-runtime";import"styled-components";import"zustand";import"react";import"javascript-time-ago";import"../chunks/vendor-D99eCWta.js";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";import"virtua";
|
package/lib/components.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{bi as AutocompleteInput,bC as Badge,bE as Button,b6 as CancelWarning,n as CenterThis,aQ as Checkbox,
|
|
1
|
+
export{bi as AutocompleteInput,bC as Badge,bE as Button,b6 as CancelWarning,n as CenterThis,aQ as Checkbox,cK as Code,ba as ConditionDetails,bb as DataCard,aO as DataCardFieldTypes,ca as DataCardFields,dC as DataFinger,bG as DataTab,b5 as DeleteWarning,cr as DescribeRow,D as Divider,a$ as DocsButton,b4 as Drawer,dD as DrawerFooter,dE as DrawerHeader,bY as Dropdown,dF as ErrorBoundary,c1 as ExtendArrow,aG as FadeLoader,aR as FieldError,aP as FieldLabel,F as FlexColumn,g as FlexRow,dG as Header,aX as IconButton,cC as IconGroup,bw as IconTitleBadge,br as IconWrapped,cn as IconsNav,dH as ImageControlled,aS as Input,aW as InputList,aT as InputTable,bz as InteractiveTable,aV as KeyValueInputsList,dI as LoadingText,bf as Modal,bg as ModalBody,b0 as MonitorsCheckboxes,bt as MonitorsIcons,bj as NavigationButtons,bA as NoDataFound,bh as NotificationNote,dJ as Overlay,aB as PageContent,bT as Popup,cE as PopupForm,cJ as ScrollX,S as ScrollY,a_ as SectionTitle,aZ as Segment,bV as SelectionButton,bL as SkeletonLoader,bl as Status,c9 as Stepper,dK as TabList,bu as TableContainer,bv as TableTitleWrap,by as TableWrap,cc as Tag,b2 as Text,b1 as TextArea,aU as Toggle,cH as ToggleCodeComponent,O as Tooltip,bB as TraceLoader,aN as UpgradeRequiredWrapper,bU as VerticalScroll,cg as WarningModal,dL as WhiteSpace,dM as getLinksFromText,dN as getStrongsFromText,dO as renderText}from"./chunks/ui-components-BlfhQM0V.js";import"./icons.js";import"react/jsx-runtime";import"styled-components";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-D99eCWta.js";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";import"virtua";
|
package/lib/constants.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a2 as ACTION_ATTRIBUTE_OPTIONS,b9 as ACTION_OPTIONS,a3 as ACTION_SAMPLER_OPTIONS,aA as BUTTON_TEXTS,aj as DEFAULT_DATA_STREAM_NAME,aa as DESTINATION_CATEGORIES,$ as DISPLAY_LANGUAGES,a5 as DISPLAY_TITLES,u as DOCS_BASE_URL,a9 as DestinationCategoryTypes,a6 as FORM_ALERTS,ae as INSTRUMENTATION_RULE_OPTIONS,dn as LANGUAGE_OPTIONS,M as MONITORS_OPTIONS,dp as OTEL_DISTRO_NAME_OPTIONS,bZ as STORAGE_KEYS,dq as TOKEN_ABOUT_TO_EXPIRE}from"./chunks/ui-components-
|
|
1
|
+
export{a2 as ACTION_ATTRIBUTE_OPTIONS,b9 as ACTION_OPTIONS,a3 as ACTION_SAMPLER_OPTIONS,aA as BUTTON_TEXTS,aj as DEFAULT_DATA_STREAM_NAME,aa as DESTINATION_CATEGORIES,$ as DISPLAY_LANGUAGES,a5 as DISPLAY_TITLES,u as DOCS_BASE_URL,a9 as DestinationCategoryTypes,a6 as FORM_ALERTS,ae as INSTRUMENTATION_RULE_OPTIONS,dn as LANGUAGE_OPTIONS,M as MONITORS_OPTIONS,dp as OTEL_DISTRO_NAME_OPTIONS,bZ as STORAGE_KEYS,dq as TOKEN_ABOUT_TO_EXPIRE}from"./chunks/ui-components-BlfhQM0V.js";import"./icons.js";import"react/jsx-runtime";import"styled-components";import"zustand";import"react";import"javascript-time-ago";import"./chunks/vendor-D99eCWta.js";import"@xyflow/react";import"react-dom";import"prism-react-renderer";import"react-error-boundary";import"lottie-react";import"virtua";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type FC, type Dispatch, type SetStateAction } from 'react';
|
|
2
|
+
import { type HeaderProps } from '@/components/_v2/drawer/header';
|
|
2
3
|
import { type CreateActionFunc } from '@/types';
|
|
3
|
-
import { DrawerProps } from '@/components/_v2';
|
|
4
4
|
export interface AddActionDrawerProps {
|
|
5
|
-
onClose:
|
|
5
|
+
onClose: HeaderProps['onClose'];
|
|
6
6
|
selectedConnectionIds: string[];
|
|
7
7
|
setSelectedConnectionIds: Dispatch<SetStateAction<string[]>>;
|
|
8
8
|
createAction: CreateActionFunc;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type FC, type Dispatch, type SetStateAction } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { type HeaderProps } from '@/components/_v2/drawer/header';
|
|
3
3
|
import { type CreateDestinationFunc, type GetDestinationCategoriesFunc, type GetPotentialDestinationsFunc } from '@/types';
|
|
4
4
|
export interface AddDestinationDrawerProps {
|
|
5
|
-
onClose:
|
|
5
|
+
onClose: HeaderProps['onClose'];
|
|
6
6
|
selectedConnectionIds: string[];
|
|
7
7
|
setSelectedConnectionIds: Dispatch<SetStateAction<string[]>>;
|
|
8
8
|
getDestinationCategories: GetDestinationCategoriesFunc;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type FC, type Dispatch, type SetStateAction } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { type HeaderProps } from '@/components/_v2/drawer/header';
|
|
3
3
|
import { type CreateInstrumentationRuleFunc } from '@/types';
|
|
4
4
|
export interface AddRuleDrawerProps {
|
|
5
|
-
onClose:
|
|
5
|
+
onClose: HeaderProps['onClose'];
|
|
6
6
|
selectedConnectionIds: string[];
|
|
7
7
|
setSelectedConnectionIds: Dispatch<SetStateAction<string[]>>;
|
|
8
8
|
createInstrumentationRule: CreateInstrumentationRuleFunc;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type FC, type Dispatch, type SetStateAction } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { type HeaderProps } from '@/components/_v2/drawer/header';
|
|
3
3
|
import { type Connection, type GetEffectiveConfigFunc, type ApplyConfigurationsFunc } from '@/types';
|
|
4
4
|
export interface EditConfigDrawerProps {
|
|
5
|
-
onClose:
|
|
5
|
+
onClose: HeaderProps['onClose'];
|
|
6
6
|
connections: Connection[];
|
|
7
7
|
selectedConnectionIds: string[];
|
|
8
8
|
setSelectedConnectionIds: Dispatch<SetStateAction<string[]>>;
|
|
@@ -3,8 +3,9 @@ import { TokensProps } from './tokens';
|
|
|
3
3
|
import { type DiagnoseProps } from './diagnose';
|
|
4
4
|
import { type DescribeProps } from './describe';
|
|
5
5
|
import { type DrawerProps } from '@/components/_v2';
|
|
6
|
+
import { type HeaderProps } from '@/components/_v2/drawer/header';
|
|
6
7
|
export interface SystemDrawerProps extends Partial<TokensProps>, Partial<DescribeProps>, Partial<DiagnoseProps> {
|
|
7
8
|
isOpen: DrawerProps['isOpen'];
|
|
8
|
-
onClose:
|
|
9
|
+
onClose: HeaderProps['onClose'];
|
|
9
10
|
}
|
|
10
11
|
export declare const SystemDrawer: FC<SystemDrawerProps>;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { type FC } from 'react';
|
|
2
2
|
import { DrawerProps } from '@/components/_v2';
|
|
3
|
+
import { type HeaderProps } from '@/components/_v2/drawer/header';
|
|
3
4
|
export interface YamlDrawerProps {
|
|
4
5
|
isOpen: DrawerProps['isOpen'];
|
|
5
|
-
onClose:
|
|
6
|
+
onClose: HeaderProps['onClose'];
|
|
6
7
|
title: string;
|
|
7
8
|
yaml: string;
|
|
8
9
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { type FC } from 'react';
|
|
2
|
+
import { type HeaderProps } from '@/components/_v2/drawer/header';
|
|
2
3
|
import { type GetExtendedPodInfo, type PodInfo } from '@/types';
|
|
3
|
-
import { DrawerProps } from '@/components/_v2';
|
|
4
4
|
export interface PodDrawerProps {
|
|
5
5
|
pod: PodInfo | null;
|
|
6
6
|
getExtendedPodInfo: GetExtendedPodInfo;
|
|
7
|
-
onClose:
|
|
7
|
+
onClose: HeaderProps['onClose'];
|
|
8
8
|
}
|
|
9
9
|
export declare const PodDrawer: FC<PodDrawerProps>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type FC } from 'react';
|
|
2
2
|
import { type DescribeProps } from './describe';
|
|
3
3
|
import { type LibrariesProps } from './libraries';
|
|
4
|
+
import { type PeerSourcesProps } from './peers';
|
|
4
5
|
import { type PersistSources, type SourceFormData, type WorkloadId, type Source } from '@/types';
|
|
5
6
|
interface SourceDrawerProps {
|
|
6
7
|
persistSources: PersistSources;
|
|
@@ -11,6 +12,7 @@ interface SourceDrawerProps {
|
|
|
11
12
|
fetchSourceById: (id: WorkloadId, bypassPaginationLoader?: boolean) => Promise<Source | undefined>;
|
|
12
13
|
fetchSourceDescribe: DescribeProps['fetchSourceDescribe'];
|
|
13
14
|
fetchSourceLibraries: LibrariesProps['fetchSourceLibraries'];
|
|
15
|
+
fetchPeerSources: PeerSourcesProps['fetchPeerSources'];
|
|
14
16
|
}
|
|
15
17
|
declare const SourceDrawer: FC<SourceDrawerProps>;
|
|
16
18
|
export { SourceDrawer, type SourceDrawerProps };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
import type { PeerSources, Source } from '@/types';
|
|
3
|
+
export interface PeerSourcesProps {
|
|
4
|
+
source: Source;
|
|
5
|
+
fetchPeerSources: (serviceName: string) => Promise<{
|
|
6
|
+
data?: {
|
|
7
|
+
peerSources: PeerSources;
|
|
8
|
+
};
|
|
9
|
+
}>;
|
|
10
|
+
}
|
|
11
|
+
declare const PeerSourcesTab: FC<PeerSourcesProps>;
|
|
12
|
+
export { PeerSourcesTab, type PeerSourcesProps as PeerSourcesTabProps };
|