greenole-design-system 1.1.112 → 1.1.113

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.
@@ -1,3 +1,4 @@
1
+ import { TooltipPositionTypes } from '../Tooltip/Tooltip.types';
1
2
  export type StatusBadgeStatus = "success" | "error" | "critical" | "warning" | "neutral" | "info";
2
3
  export type StatusBadgeSize = "sm" | "lg";
3
4
  export interface StatusBadgeProps {
@@ -6,5 +7,6 @@ export interface StatusBadgeProps {
6
7
  size?: StatusBadgeSize;
7
8
  onClick?: () => void;
8
9
  tooltip?: string;
10
+ tooltipPosition?: TooltipPositionTypes;
9
11
  className?: string;
10
12
  }
@@ -881,16 +881,16 @@ See https://s-c.sh/2BAXzed for more info.`),window[On]+=1);const qu=Rt`
881
881
  `}
882
882
 
883
883
  ${({$disabled:e})=>e&&$`
884
- background-color: #f9fafb;
885
- border-color: #eaecf0;
886
- color: #98a2b3;
884
+ background-color: var(--color-neutral-soft);
885
+ border-color: var(--color-neutral-lightest);
886
+ color: var(--color-neutral-medium);
887
887
  cursor: not-allowed;
888
888
  `}
889
889
 
890
890
  ${({$readOnly:e,$disabled:t})=>e&&!t&&$`
891
- background-color: #fafafa;
892
- border-color: #d0d5dd;
893
- color: #344054;
891
+ background-color: var(--color-neutral-soft);
892
+ border-color: var(--color-neutral-lightest);
893
+ color: var(--color-neutral-medium);
894
894
  cursor: default;
895
895
  `}
896
896
  `,Is=v.span`
@@ -915,17 +915,17 @@ See https://s-c.sh/2BAXzed for more info.`),window[On]+=1);const qu=Rt`
915
915
  opacity: 0.7;
916
916
  }
917
917
 
918
- &:disabled {
919
- color: #98a2b3;
920
- cursor: not-allowed;
921
- }
922
-
923
918
  &:read-only {
924
- color: #667085;
919
+ color: var(--color-neutral-medium);
925
920
  background: transparent;
926
921
  cursor: default;
927
922
  }
928
923
 
924
+ &:disabled {
925
+ color: var(--color-neutral-medium);
926
+ cursor: not-allowed;
927
+ }
928
+
929
929
  &:focus {
930
930
  outline: none;
931
931
  box-shadow: none;
@@ -1580,7 +1580,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[On]+=1);const qu=Rt`
1580
1580
  align-items: center;
1581
1581
  flex-shrink: 0;
1582
1582
  color: var(--neutral-medium);
1583
- `,Qi=l.forwardRef(({status:e,label:t,size:n="sm",onClick:r,tooltip:a,className:i},o)=>{const s=!!r,c=!!a,d=p=>{r&&(p.key==="Enter"||p.key===" ")&&(p.preventDefault(),r())},f=u.jsxs(V9,{ref:o,className:i,$size:n,$clickable:s,$hasTooltip:c,onClick:r,onKeyDown:d,role:s?"button":void 0,tabIndex:s?0:void 0,children:[u.jsx(O9,{$status:e,$size:n}),u.jsx(ot,{variant:n==="sm"?"body-sm-regular":"body-md-medium",style:{color:"var(--neutral-dark)",fontSize:n==="sm"?"13px":void 0},children:t}),s&&u.jsx(D9,{children:u.jsx(Yi,{size:n==="sm"?12:14,weight:"bold"})})]});return a?u.jsx("span",{style:{display:"inline-block"},children:u.jsx(Wi,{position:"top",text:a,children:f})}):f});Qi.displayName="StatusBadge";const $9=(e,t,n)=>n?"var(--neutral-lightest)":e?t:"var(--neutral-lighter)",z9=e=>e?"var(--neutral-light)":"var(--color-surface)",R9=(e,t)=>e?t:"var(--neutral-lighter)",G9=v.label`
1583
+ `,Qi=l.forwardRef(({status:e,label:t,size:n="sm",onClick:r,tooltip:a,tooltipPosition:i="top",className:o},s)=>{const c=!!r,d=!!a,f=m=>{r&&(m.key==="Enter"||m.key===" ")&&(m.preventDefault(),r())},p=u.jsxs(V9,{ref:s,className:o,$size:n,$clickable:c,$hasTooltip:d,onClick:r,onKeyDown:f,role:c?"button":void 0,tabIndex:c?0:void 0,children:[u.jsx(O9,{$status:e,$size:n}),u.jsx(ot,{variant:n==="sm"?"body-sm-regular":"body-md-medium",style:{color:"var(--neutral-dark)",fontSize:n==="sm"?"13px":void 0},children:t}),c&&u.jsx(D9,{children:u.jsx(Yi,{size:n==="sm"?12:14,weight:"bold"})})]});return a?u.jsx("span",{style:{display:"inline-block"},children:u.jsx(Wi,{position:i,text:a,darkMode:!0,children:p})}):p});Qi.displayName="StatusBadge";const $9=(e,t,n)=>n?"var(--neutral-lightest)":e?t:"var(--neutral-lighter)",z9=e=>e?"var(--neutral-light)":"var(--color-surface)",R9=(e,t)=>e?t:"var(--neutral-lighter)",G9=v.label`
1584
1584
  position: relative;
1585
1585
  display: inline-block;
1586
1586
  width: 32px;
@@ -2153,6 +2153,16 @@ See https://s-c.sh/2BAXzed for more info.`),window[On]+=1);const qu=Rt`
2153
2153
  `,Kf=v.div`
2154
2154
  overflow-x: ${({$isMobile:e})=>e?"visible":"auto"};
2155
2155
  width: 100%;
2156
+
2157
+ &:last-child {
2158
+ border-bottom-left-radius: calc(var(--radius-16) - 1px);
2159
+ border-bottom-right-radius: calc(var(--radius-16) - 1px);
2160
+
2161
+ tbody tr:last-child td {
2162
+ border-bottom: none;
2163
+ }
2164
+ }
2165
+
2156
2166
  ${({$isMobile:e})=>e&&$`
2157
2167
  padding: var(--spacing-4);
2158
2168
  `}
@@ -3628,7 +3638,9 @@ PERFORMANCE OF THIS SOFTWARE.
3628
3638
  gap: 4px;
3629
3639
  `,dM=v.div`
3630
3640
  display: flex;
3641
+ flex-wrap: wrap;
3631
3642
  align-items: center;
3643
+ justify-content: flex-end;
3632
3644
  gap: var(--spacing-3);
3633
3645
  `,fM=v.div`
3634
3646
  display: flex;
@@ -4279,8 +4291,11 @@ PERFORMANCE OF THIS SOFTWARE.
4279
4291
  display: inline-flex;
4280
4292
  align-items: center;
4281
4293
  gap: 6px;
4282
- height: 24px;
4283
- padding: 0 10px;
4294
+ min-height: 24px;
4295
+ max-width: 100%;
4296
+ min-width: 0;
4297
+ padding: 2px 10px;
4298
+ box-sizing: border-box;
4284
4299
  border-radius: 4px;
4285
4300
  background: var(--neutral-lightest);
4286
4301
  color: var(--neutral-dark);
@@ -4294,6 +4309,7 @@ PERFORMANCE OF THIS SOFTWARE.
4294
4309
  display: flex;
4295
4310
  align-items: center;
4296
4311
  justify-content: center;
4312
+ flex-shrink: 0;
4297
4313
  width: 16px;
4298
4314
  height: 16px;
4299
4315
  padding: 0;
@@ -4345,7 +4361,7 @@ PERFORMANCE OF THIS SOFTWARE.
4345
4361
  flex-direction: column;
4346
4362
  gap: 16px;
4347
4363
  min-width: 320px;
4348
- `,pE=({items:e,onChange:t,variant:n="value",keyLabel:r,valueLabel:a,keyPlaceholder:i,valuePlaceholder:o,addButtonLabel:s,modalTitle:c,validateDuplicates:d=!1,duplicateErrorMessage:f,keepModalOpenOnAdd:p=!0,maxTags:m=50,disabled:g=!1,className:C,t:y})=>{const{t:M}=Ke(),w=y||M,b=n==="key-value",k=r||w("COMMON_TEXTS.TAG_KEY",{defaultValue:"Key"}),A=a||(b?w("COMMON_TEXTS.TAG_VALUE",{defaultValue:"Value"}):w("COMMON_TEXTS.TAG_NAME",{defaultValue:"Name"})),L=s||w("COMMON_TEXTS.ADD_TAG",{defaultValue:"Add tag"}),x=c||L,E=w("COMMON_TEXTS.ADD",{defaultValue:"Add"}),S=f||w("COMMON_TEXTS.TAG_DUPLICATE_ERROR",{defaultValue:"This tag already exists."}),T=w("COMMON_TEXTS.FIELD_REQUIRED",{defaultValue:"This field is required."}),[D,j]=l.useState(!1),[H,B]=l.useState(""),[z,V]=l.useState(""),[Z,O]=l.useState(""),[G,I]=l.useState(""),F=e.length>=m,U=()=>{B(""),V(""),O(""),I("")},Y=()=>{U(),j(!0)},q=()=>{j(!1),U()},ce=Q=>b?e.some(N=>(N.key||"").trim().toLowerCase()===(Q.key||"").trim().toLowerCase()):e.some(N=>N.value.trim().toLowerCase()===Q.value.trim().toLowerCase()),R=()=>{const Q=H.trim(),N=z.trim();let fe=!1;if(b&&!Q?(O(T),fe=!0):O(""),N?I(""):(I(T),fe=!0),fe)return;const ge=b?{key:Q,value:N}:{value:N};if(d&&ce(ge)){b?O(S):I(S);return}t([...e,ge]),p?U():q()},W=Q=>{t(e.filter((N,fe)=>fe!==Q))},se=!z.trim()||b&&!H.trim()||F,re=Q=>{Q.key==="Enter"?(Q.preventDefault(),se||R()):Q.key==="Escape"&&(Q.preventDefault(),q())};return u.jsxs(sE,{className:C,children:[u.jsxs(lE,{children:[e.map((Q,N)=>u.jsxs(cE,{$disabled:g,children:[u.jsx(ot,{variant:"body-sm-regular",style:{fontSize:"13px",color:"var(--neutral-dark)"},children:Q.key?u.jsxs(u.Fragment,{children:[u.jsxs(uE,{children:[Q.key,":"]})," ",Q.value]}):Q.value}),!g&&u.jsx(dE,{type:"button",onClick:()=>W(N),"aria-label":w("COMMON_TEXTS.REMOVE",{defaultValue:"Remove"}),children:u.jsx(s0,{size:12,weight:"bold"})})]},`${Q.key||""}-${Q.value}-${N}`)),u.jsxs(fE,{type:"button",onClick:Y,disabled:g||F,children:[u.jsx(f3,{size:12}),L]})]}),D&&u.jsx(Nr,{title:x,onClose:q,onCancel:q,onConfirm:R,confirmButton:u.jsx(kt,{type:"button",variant:"primary",disabled:se,onClick:R,children:E}),content:u.jsxs(hE,{onKeyDown:re,children:[b&&u.jsx(an,{label:k,placeholder:i,value:H,onChange:Q=>B(Q.target.value),error:Z,fullWidth:!0,autoFocus:!0},e.length),u.jsx(an,{label:A,placeholder:o,value:z,onChange:Q=>V(Q.target.value),error:G,fullWidth:!0,autoFocus:!b},b?void 0:e.length)]})})]})},mE=v.div`
4364
+ `,pE=({items:e,onChange:t,variant:n="value",keyLabel:r,valueLabel:a,keyPlaceholder:i,valuePlaceholder:o,addButtonLabel:s,modalTitle:c,validateDuplicates:d=!1,duplicateErrorMessage:f,keepModalOpenOnAdd:p=!0,maxTags:m=50,disabled:g=!1,className:C,t:y})=>{const{t:M}=Ke(),w=y||M,b=n==="key-value",k=r||w("COMMON_TEXTS.TAG_KEY",{defaultValue:"Key"}),A=a||(b?w("COMMON_TEXTS.TAG_VALUE",{defaultValue:"Value"}):w("COMMON_TEXTS.TAG_NAME",{defaultValue:"Name"})),L=s||w("COMMON_TEXTS.ADD_TAG",{defaultValue:"Add tag"}),x=c||L,E=w("COMMON_TEXTS.ADD",{defaultValue:"Add"}),S=f||w("COMMON_TEXTS.TAG_DUPLICATE_ERROR",{defaultValue:"This tag already exists."}),T=w("COMMON_TEXTS.FIELD_REQUIRED",{defaultValue:"This field is required."}),[D,j]=l.useState(!1),[H,B]=l.useState(""),[z,V]=l.useState(""),[Z,O]=l.useState(""),[G,I]=l.useState(""),F=e.length>=m,U=()=>{B(""),V(""),O(""),I("")},Y=()=>{U(),j(!0)},q=()=>{j(!1),U()},ce=Q=>b?e.some(N=>(N.key||"").trim().toLowerCase()===(Q.key||"").trim().toLowerCase()):e.some(N=>N.value.trim().toLowerCase()===Q.value.trim().toLowerCase()),R=()=>{const Q=H.trim(),N=z.trim();let fe=!1;if(b&&!Q?(O(T),fe=!0):O(""),N?I(""):(I(T),fe=!0),fe)return;const ge=b?{key:Q,value:N}:{value:N};if(d&&ce(ge)){b?O(S):I(S);return}t([...e,ge]),p?U():q()},W=Q=>{t(e.filter((N,fe)=>fe!==Q))},se=!z.trim()||b&&!H.trim()||F,re=Q=>{Q.key==="Enter"?(Q.preventDefault(),se||R()):Q.key==="Escape"&&(Q.preventDefault(),q())};return u.jsxs(sE,{className:C,children:[u.jsxs(lE,{children:[e.map((Q,N)=>u.jsxs(cE,{$disabled:g,children:[u.jsx(ot,{variant:"body-sm-regular",style:{fontSize:"13px",color:"var(--neutral-dark)",minWidth:0,overflowWrap:"anywhere"},children:Q.key?u.jsxs(u.Fragment,{children:[u.jsxs(uE,{children:[Q.key,":"]})," ",Q.value]}):Q.value}),!g&&u.jsx(dE,{type:"button",onClick:()=>W(N),"aria-label":w("COMMON_TEXTS.REMOVE",{defaultValue:"Remove"}),children:u.jsx(s0,{size:12,weight:"bold"})})]},`${Q.key||""}-${Q.value}-${N}`)),u.jsxs(fE,{type:"button",onClick:Y,disabled:g||F,children:[u.jsx(f3,{size:12}),L]})]}),D&&u.jsx(Nr,{title:x,onClose:q,onCancel:q,onConfirm:R,confirmButton:u.jsx(kt,{type:"button",variant:"primary",disabled:se,onClick:R,children:E}),content:u.jsxs(hE,{onKeyDown:re,children:[b&&u.jsx(an,{label:k,placeholder:i,value:H,onChange:Q=>B(Q.target.value),error:Z,fullWidth:!0,autoFocus:!0},e.length),u.jsx(an,{label:A,placeholder:o,value:z,onChange:Q=>V(Q.target.value),error:G,fullWidth:!0,autoFocus:!b},b?void 0:e.length)]})})]})},mE=v.div`
4349
4365
  display: flex;
4350
4366
  flex-direction: column;
4351
4367
  gap: var(--spacing-1);
@@ -4573,7 +4589,7 @@ PERFORMANCE OF THIS SOFTWARE.
4573
4589
  grid-area: arrow;
4574
4590
  display: inline-flex;
4575
4591
  color: var(--neutral-light);
4576
- `,Ii=e=>{if(e===""||e===null||e===void 0)return"";const t=Number(e);return Number.isNaN(t)?e:t.toFixed(1).replace(".0","")},a5=e=>{var a,i;let t=e.message??"";(a=e.entity)!=null&&a.name&&(t=t.replace("$DEVICE NAME$",e.entity.name)),(i=e.node)!=null&&i.name&&(t=t.replace("$SITE NAME$",e.node.name));const n=Ii(e.triggeredValue),r=Ii(e.currentValue);return n&&(t=t.replace("$TRIGGER VALUE$",n)),r&&(t=t.replace("$CURRENT VALUE$",r)),e.unit&&(t=t.replace("$UNIT$",e.unit)),t.replace(" %","%")},yu={critical:{status:"critical",color:"var(--red-800)",icon:C2,label:"Critical"},high:{status:"error",color:"var(--danger)",icon:C2,label:"High"},medium:{status:"warning",color:"var(--warning)",icon:Fr,label:"Medium"},low:{status:"success",color:"var(--success-dark)",icon:qi,label:"Low"},incident:{status:"neutral",color:"var(--neutral-grey)",icon:h3,label:"Incident"}},IE=({alert:e,onClick:t,locale:n="en",className:r,t:a})=>{var M,w,b;const{t:i}=Ke(),o=a||i,s=!!t,c=yu[e.severity]??yu.critical,d=c.icon,f=[(M=e.node)==null?void 0:M.name,(w=e.entity)==null?void 0:w.name].filter(Boolean).join(": "),p=a5(e),m=o(`COMMON_TEXTS.${(b=e.severity)==null?void 0:b.toUpperCase()}`,{defaultValue:c.label}),g=O4(e.openedAt,n),C=()=>t==null?void 0:t(e),y=k=>{t&&(k.key==="Enter"||k.key===" ")&&(k.preventDefault(),t(e))};return u.jsx(D0,{className:r,options:{shadow:!1,interactive:s},onClick:s?C:void 0,onKeyDown:y,role:s?"button":void 0,tabIndex:s?0:void 0,style:{padding:16},children:u.jsx(jE,{children:u.jsxs(PE,{children:[u.jsx(VE,{$color:c.color,children:u.jsx(d,{size:18,weight:"fill"})}),u.jsxs(OE,{children:[f&&u.jsx(DE,{children:u.jsx(ot,{variant:"body-md-bold",style:{color:"var(--neutral-darkest)"},children:f})}),p&&u.jsx($E,{children:u.jsx(ot,{variant:"body-sm-regular",style:{color:"var(--neutral-medium)"},children:p})})]}),u.jsx(zE,{children:u.jsx(Qi,{status:c.status,label:m})}),u.jsx(RE,{children:u.jsx(ot,{variant:"body-sm-regular",style:{color:"var(--neutral-light)"},children:g})}),s&&u.jsx(GE,{children:u.jsx(Yi,{size:16})})]})})})},HE=v.div`
4592
+ `,Ii=e=>{if(e===""||e===null||e===void 0)return"";const t=Number(e);return Number.isNaN(t)?e:t.toFixed(1).replace(".0","")},a5=e=>{var a,i;let t=e.message??"";(a=e.entity)!=null&&a.name&&(t=t.replace("$DEVICE NAME$",e.entity.name)),(i=e.node)!=null&&i.name&&(t=t.replace("$SITE NAME$",e.node.name));const n=Ii(e.triggeredValue),r=Ii(e.currentValue);return n&&(t=t.replace("$TRIGGER VALUE$",n)),r&&(t=t.replace("$CURRENT VALUE$",r)),e.unit&&(t=t.replace("$UNIT$",e.unit)),t.replace(" %","%")},yu={critical:{status:"critical",color:"var(--danger)",icon:C2,label:"Critical"},high:{status:"error",color:"var(--danger)",icon:C2,label:"High"},medium:{status:"warning",color:"var(--warning)",icon:Fr,label:"Medium"},low:{status:"success",color:"var(--success-dark)",icon:qi,label:"Low"},incident:{status:"neutral",color:"var(--neutral-grey)",icon:h3,label:"Incident"}},IE=({alert:e,onClick:t,locale:n="en",className:r,t:a})=>{var M,w,b;const{t:i}=Ke(),o=a||i,s=!!t,c=yu[e.severity]??yu.critical,d=c.icon,f=[(M=e.node)==null?void 0:M.name,(w=e.entity)==null?void 0:w.name].filter(Boolean).join(": "),p=a5(e),m=o(`COMMON_TEXTS.${(b=e.severity)==null?void 0:b.toUpperCase()}`,{defaultValue:c.label}),g=O4(e.openedAt,n),C=()=>t==null?void 0:t(e),y=k=>{t&&(k.key==="Enter"||k.key===" ")&&(k.preventDefault(),t(e))};return u.jsx(D0,{className:r,options:{shadow:!1,interactive:s},onClick:s?C:void 0,onKeyDown:y,role:s?"button":void 0,tabIndex:s?0:void 0,style:{padding:16},children:u.jsx(jE,{children:u.jsxs(PE,{children:[u.jsx(VE,{$color:c.color,children:u.jsx(d,{size:20})}),u.jsxs(OE,{children:[f&&u.jsx(DE,{children:u.jsx(ot,{variant:"body-md-bold",style:{color:"var(--neutral-darkest)"},children:f})}),p&&u.jsx($E,{children:u.jsx(ot,{variant:"body-sm-regular",style:{color:"var(--neutral-medium)"},children:p})})]}),u.jsx(zE,{children:u.jsx(Qi,{status:c.status,label:m})}),u.jsx(RE,{children:u.jsx(ot,{variant:"body-sm-regular",style:{color:"var(--neutral-light)"},children:g})}),s&&u.jsx(GE,{children:u.jsx(Yi,{size:16})})]})})})},HE=v.div`
4577
4593
  display: flex;
4578
4594
  align-items: center;
4579
4595
 
@@ -4371,16 +4371,16 @@ const R7 = g.div`
4371
4371
  `}
4372
4372
 
4373
4373
  ${({ $disabled: e }) => e && z`
4374
- background-color: #f9fafb;
4375
- border-color: #eaecf0;
4376
- color: #98a2b3;
4374
+ background-color: var(--color-neutral-soft);
4375
+ border-color: var(--color-neutral-lightest);
4376
+ color: var(--color-neutral-medium);
4377
4377
  cursor: not-allowed;
4378
4378
  `}
4379
4379
 
4380
4380
  ${({ $readOnly: e, $disabled: t }) => e && !t && z`
4381
- background-color: #fafafa;
4382
- border-color: #d0d5dd;
4383
- color: #344054;
4381
+ background-color: var(--color-neutral-soft);
4382
+ border-color: var(--color-neutral-lightest);
4383
+ color: var(--color-neutral-medium);
4384
4384
  cursor: default;
4385
4385
  `}
4386
4386
  `, Ys = g.span`
@@ -4405,17 +4405,17 @@ const R7 = g.div`
4405
4405
  opacity: 0.7;
4406
4406
  }
4407
4407
 
4408
- &:disabled {
4409
- color: #98a2b3;
4410
- cursor: not-allowed;
4411
- }
4412
-
4413
4408
  &:read-only {
4414
- color: #667085;
4409
+ color: var(--color-neutral-medium);
4415
4410
  background: transparent;
4416
4411
  cursor: default;
4417
4412
  }
4418
4413
 
4414
+ &:disabled {
4415
+ color: var(--color-neutral-medium);
4416
+ cursor: not-allowed;
4417
+ }
4418
+
4419
4419
  &:focus {
4420
4420
  outline: none;
4421
4421
  box-shadow: none;
@@ -5802,21 +5802,21 @@ const R7 = g.div`
5802
5802
  flex-shrink: 0;
5803
5803
  color: var(--neutral-medium);
5804
5804
  `, Iu = Wi(
5805
- ({ status: e, label: t, size: n = "sm", onClick: r, tooltip: a, className: i }, o) => {
5806
- const s = !!r, l = !!a, u = (p) => {
5807
- r && (p.key === "Enter" || p.key === " ") && (p.preventDefault(), r());
5808
- }, d = /* @__PURE__ */ c.jsxs(
5805
+ ({ status: e, label: t, size: n = "sm", onClick: r, tooltip: a, tooltipPosition: i = "top", className: o }, s) => {
5806
+ const l = !!r, u = !!a, d = (f) => {
5807
+ r && (f.key === "Enter" || f.key === " ") && (f.preventDefault(), r());
5808
+ }, p = /* @__PURE__ */ c.jsxs(
5809
5809
  V9,
5810
5810
  {
5811
- ref: o,
5812
- className: i,
5811
+ ref: s,
5812
+ className: o,
5813
5813
  $size: n,
5814
- $clickable: s,
5815
- $hasTooltip: l,
5814
+ $clickable: l,
5815
+ $hasTooltip: u,
5816
5816
  onClick: r,
5817
- onKeyDown: u,
5818
- role: s ? "button" : void 0,
5819
- tabIndex: s ? 0 : void 0,
5817
+ onKeyDown: d,
5818
+ role: l ? "button" : void 0,
5819
+ tabIndex: l ? 0 : void 0,
5820
5820
  children: [
5821
5821
  /* @__PURE__ */ c.jsx(O9, { $status: e, $size: n }),
5822
5822
  /* @__PURE__ */ c.jsx(
@@ -5830,18 +5830,19 @@ const R7 = g.div`
5830
5830
  children: t
5831
5831
  }
5832
5832
  ),
5833
- s && /* @__PURE__ */ c.jsx(D9, { children: /* @__PURE__ */ c.jsx(io, { size: n === "sm" ? 12 : 14, weight: "bold" }) })
5833
+ l && /* @__PURE__ */ c.jsx(D9, { children: /* @__PURE__ */ c.jsx(io, { size: n === "sm" ? 12 : 14, weight: "bold" }) })
5834
5834
  ]
5835
5835
  }
5836
5836
  );
5837
5837
  return a ? /* @__PURE__ */ c.jsx("span", { style: { display: "inline-block" }, children: /* @__PURE__ */ c.jsx(
5838
5838
  fu,
5839
5839
  {
5840
- position: "top",
5840
+ position: i,
5841
5841
  text: a,
5842
- children: d
5842
+ darkMode: !0,
5843
+ children: p
5843
5844
  }
5844
- ) }) : d;
5845
+ ) }) : p;
5845
5846
  }
5846
5847
  );
5847
5848
  Iu.displayName = "StatusBadge";
@@ -6807,6 +6808,16 @@ const $9 = (e, t, n) => n ? "var(--neutral-lightest)" : e ? t : "var(--neutral-l
6807
6808
  `, _h = g.div`
6808
6809
  overflow-x: ${({ $isMobile: e }) => e ? "visible" : "auto"};
6809
6810
  width: 100%;
6811
+
6812
+ &:last-child {
6813
+ border-bottom-left-radius: calc(var(--radius-16) - 1px);
6814
+ border-bottom-right-radius: calc(var(--radius-16) - 1px);
6815
+
6816
+ tbody tr:last-child td {
6817
+ border-bottom: none;
6818
+ }
6819
+ }
6820
+
6810
6821
  ${({ $isMobile: e }) => e && z`
6811
6822
  padding: var(--spacing-4);
6812
6823
  `}
@@ -20146,7 +20157,9 @@ const Wo = (e) => {
20146
20157
  gap: 4px;
20147
20158
  `, fM = g.div`
20148
20159
  display: flex;
20160
+ flex-wrap: wrap;
20149
20161
  align-items: center;
20162
+ justify-content: flex-end;
20150
20163
  gap: var(--spacing-3);
20151
20164
  `, mM = g.div`
20152
20165
  display: flex;
@@ -25377,8 +25390,11 @@ const Xw = ({
25377
25390
  display: inline-flex;
25378
25391
  align-items: center;
25379
25392
  gap: 6px;
25380
- height: 24px;
25381
- padding: 0 10px;
25393
+ min-height: 24px;
25394
+ max-width: 100%;
25395
+ min-width: 0;
25396
+ padding: 2px 10px;
25397
+ box-sizing: border-box;
25382
25398
  border-radius: 4px;
25383
25399
  background: var(--neutral-lightest);
25384
25400
  color: var(--neutral-dark);
@@ -25392,6 +25408,7 @@ const Xw = ({
25392
25408
  display: flex;
25393
25409
  align-items: center;
25394
25410
  justify-content: center;
25411
+ flex-shrink: 0;
25395
25412
  width: 16px;
25396
25413
  height: 16px;
25397
25414
  padding: 0;
@@ -25501,7 +25518,12 @@ const Xw = ({
25501
25518
  ft,
25502
25519
  {
25503
25520
  variant: "body-sm-regular",
25504
- style: { fontSize: "13px", color: "var(--neutral-dark)" },
25521
+ style: {
25522
+ fontSize: "13px",
25523
+ color: "var(--neutral-dark)",
25524
+ minWidth: 0,
25525
+ overflowWrap: "anywhere"
25526
+ },
25505
25527
  children: ee.key ? /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
25506
25528
  /* @__PURE__ */ c.jsxs(pA, { children: [
25507
25529
  ee.key,
@@ -26168,7 +26190,7 @@ const Xw = ({
26168
26190
  }, V3 = {
26169
26191
  critical: {
26170
26192
  status: "critical",
26171
- color: "var(--red-800)",
26193
+ color: "var(--danger)",
26172
26194
  icon: k2,
26173
26195
  label: "Critical"
26174
26196
  },
@@ -26220,7 +26242,7 @@ const Xw = ({
26220
26242
  tabIndex: s ? 0 : void 0,
26221
26243
  style: { padding: 16 },
26222
26244
  children: /* @__PURE__ */ c.jsx(jA, { children: /* @__PURE__ */ c.jsxs(PA, { children: [
26223
- /* @__PURE__ */ c.jsx(VA, { $color: l.color, children: /* @__PURE__ */ c.jsx(u, { size: 18, weight: "fill" }) }),
26245
+ /* @__PURE__ */ c.jsx(VA, { $color: l.color, children: /* @__PURE__ */ c.jsx(u, { size: 20 }) }),
26224
26246
  /* @__PURE__ */ c.jsxs(OA, { children: [
26225
26247
  d && /* @__PURE__ */ c.jsx(DA, { children: /* @__PURE__ */ c.jsx(
26226
26248
  ft,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "greenole-design-system",
3
- "version": "1.1.112",
3
+ "version": "1.1.113",
4
4
  "type": "module",
5
5
  "main": "dist/greenole-design-system.cjs.js",
6
6
  "module": "dist/greenole-design-system.js",
@@ -32,7 +32,7 @@
32
32
  "storybook": "npm run generate:tokens && storybook dev -p 6006",
33
33
  "build-storybook": "npm run generate:tokens && storybook build",
34
34
  "deploy-storybook": "storybook-to-ghpages",
35
- "release": "npm run build && npm publish && npm run build-storybook && npm run deploy-storybook",
35
+ "release": "npm run build && npm publish --tag latest && npm run build-storybook && npm run deploy-storybook",
36
36
  "create-component": "node scripts/create-component.js",
37
37
  "commit": "node scripts/commit.js"
38
38
  },