@equisoft/design-elements-react 7.1.1-snapshot.20240716122136 → 7.1.1-snapshot.20240717190621
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/dist/bundle.js +1 -1
- package/package.json +1 -1
package/dist/bundle.js
CHANGED
|
@@ -1155,7 +1155,7 @@ color: ${({disabled:e,theme:t})=>e?t.component["combobox-clear-button-disabled-i
|
|
|
1155
1155
|
}
|
|
1156
1156
|
`,_=(0,u.default)(d.Button)`
|
|
1157
1157
|
${({bannerType:e,theme:t})=>"warning"===e?`color: ${t.component["global-banner-warning-action-button-text-color"]};`:""};
|
|
1158
|
-
`;t.GlobalBanner=(0,l.forwardRef)((({actionButton:e,children:t,className:n,hidden:a,id:r,dismissable:o=!1,label:u,onDismiss:d,secondaryActionButton:p,type:w="neutral"},E)=>{const{isMobile:k}=(0,m.useDeviceContext)(),[C,x]=(0,l.useState)(!a),{t:T}=(0,s.useTranslation)("global-banner"),S="alert"!==w&&o,H=S||e||p,P=`${(0,c.useId)(r)}_title`,L=(0,l.useCallback)((()=>{null==d||d(),x(!1)}),[d]);return C?(0,i.jsxs)(f,{ref:E,"aria-atomic":"true","aria-labelledby":P,"aria-live":"polite",className:n,"data-testid":"container",isMobile:k,bannerType:w,role:"status",children:[(0,i.jsxs)(h,{$isMobile:k,children:[(0,i.jsx)(v,{"aria-label":w,focusable:void 0,$isMobile:k,name:b(w),role:"img",size:k?"24":"16"}),(0,i.jsxs)("span",{children:[(0,i.jsx)(g,{$isMobile:k,id:P,children:u}),t]})]}),H&&(0,i.jsxs)(y,{$isMobile:k,children:[e&&(0,i.jsx)(M,{"data-testid":"action-button",bannerType:w,onClick:e.onClick,type:"button",children:e.label}),p&&
|
|
1158
|
+
`;t.GlobalBanner=(0,l.forwardRef)((({actionButton:e,children:t,className:n,hidden:a,id:r,dismissable:o=!1,label:u,onDismiss:d,secondaryActionButton:p,type:w="neutral"},E)=>{const{isMobile:k}=(0,m.useDeviceContext)(),[C,x]=(0,l.useState)(!a),{t:T}=(0,s.useTranslation)("global-banner"),S="alert"!==w&&o,H=S||e||p,P=`${(0,c.useId)(r)}_title`,L=(0,l.useCallback)((()=>{null==d||d(),x(!1)}),[d]);return C?(0,i.jsxs)(f,{ref:E,"aria-atomic":"true","aria-labelledby":P,"aria-live":"polite",className:n,"data-testid":"container",isMobile:k,bannerType:w,role:"status",children:[(0,i.jsxs)(h,{$isMobile:k,children:[(0,i.jsx)(v,{"aria-label":w,focusable:void 0,$isMobile:k,name:b(w),role:"img",size:k?"24":"16"}),(0,i.jsxs)("span",{children:[(0,i.jsx)(g,{$isMobile:k,id:P,children:u}),t]})]}),H&&(0,i.jsxs)(y,{$isMobile:k,children:[e&&(0,i.jsx)(M,{"data-testid":"action-button",bannerType:w,onClick:e.onClick,type:"button",children:e.label}),p&&(0,i.jsx)(_,{"data-testid":"secondary-action-button",buttonType:"tertiary",bannerType:w,inverted:"warning"!==w,onClick:p.onClick,type:"button",children:p.label}),S&&(0,i.jsx)(_,{"data-testid":"dismiss-button",buttonType:"tertiary",bannerType:w,inverted:"warning"!==w,onClick:L,type:"button",children:T("ignore")})]})]}):null})),t.GlobalBanner.displayName="GlobalBanner";try{t.GlobalBanner.displayName="GlobalBanner",t.GlobalBanner.__docgenInfo={description:"",displayName:"GlobalBanner",props:{actionButton:{defaultValue:null,description:"",name:"actionButton",required:!1,type:{name:"ActionButton"}},secondaryActionButton:{defaultValue:null,description:"",name:"secondaryActionButton",required:!1,type:{name:"ActionButton"}},className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}},id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},hidden:{defaultValue:null,description:"",name:"hidden",required:!1,type:{name:"boolean"}},dismissable:{defaultValue:{value:!1},description:"Adds an ignore-button. Note that alert type banners are not dismissable.",name:"dismissable",required:!1,type:{name:"boolean"}},label:{defaultValue:null,description:"",name:"label",required:!0,type:{name:"string"}},onDismiss:{defaultValue:null,description:"",name:"onDismiss",required:!1,type:{name:"(() => void)"}},type:{defaultValue:{value:"neutral"},description:"",name:"type",required:!1,type:{name:"enum",value:[{value:'"alert"'},{value:'"neutral"'},{value:'"discovery"'},{value:'"warning"'}]}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"Ref<HTMLElement>"}},key:{defaultValue:null,description:"",name:"key",required:!1,type:{name:"Key | null"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/global-banner/global-banner.tsx#GlobalBanner"]={docgenInfo:t.GlobalBanner.__docgenInfo,name:"GlobalBanner",path:"src/components/global-banner/global-banner.tsx#GlobalBanner"})}catch(e){}},89865:function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Content=void 0;const r=n(97905),o=n(39155),i=a(n(88694)),l=n(60926),u=n(89129),s=n(90945),d=(0,i.default)(l.IconButton)`
|
|
1159
1159
|
margin: 0;
|
|
1160
1160
|
padding: 0;
|
|
1161
1161
|
`,c=i.default.div`
|
package/package.json
CHANGED