1 |
- {"version":3,"sources":["../../src/app/widgets/EmptyMessageState.tsx"],"names":["React","EmptyState","EmptyStateVariant","Title","EmptyStateIcon","TitleLevel","EmptyStateBody","Msg","EmptyMessageState","Component","constructor","props","render","full","icon","h5","messageKey","children"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA,OAAO,KAAKA,KAAZ;AACA,SACIC,UADJ,EAEIC,iBAFJ,EAGIC,KAHJ,EAIIC,cAJJ,EAKIC,UALJ,EAMIC,cANJ;AAUA,SAASC,GAAT;AAOA,eAAe,MAAMC,iBAAN,SAAgCR,KAAK,CAACS,SAAtC,CAA4E;AACvFC,EAAAA,WAAW,CAACC,KAAD,EAAgC;AACvC,UAAMA,KAAN;AACH;;AAEDC,EAAAA,MAAM,GAAG;AACL,WACI,oBAAC,UAAD;AAAY,MAAA,OAAO,EAAEV,iBAAiB,CAACW;AAAvC,OACI,oBAAC,cAAD;AAAgB,MAAA,IAAI,EAAE,KAAKF,KAAL,CAAWG;AAAjC,MADJ,EAEI,oBAAC,KAAD;AAAO,MAAA,YAAY,EAAET,UAAU,CAACU,EAAhC;AAAoC,MAAA,IAAI,EAAC;AAAzC,OACI,oBAAC,GAAD;AAAK,MAAA,MAAM,EAAE,KAAKJ,KAAL,CAAWK;AAAxB,MADJ,CAFJ,EAKI,oBAAC,cAAD,QACK,KAAKL,KAAL,CAAWM,QADhB,CALJ,CADJ;AAWH;;AAjBsF","sourcesContent":["/*\n * Copyright 2018 Red Hat, Inc. and/or its affiliates.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport * as React from 'react';\nimport {\n EmptyState,\n EmptyStateVariant,\n Title,\n EmptyStateIcon,\n TitleLevel,\n EmptyStateBody,\n IconProps,\n} from '@patternfly/react-core'\n\nimport { Msg } from './Msg';\n\nexport interface EmptyMessageStateProps {\n icon: React.FunctionComponent<IconProps>;\n messageKey: string;\n}\n\nexport default class EmptyMessageState extends React.Component<EmptyMessageStateProps, {}> {\n constructor(props: EmptyMessageStateProps) {\n super(props);\n }\n\n render() {\n return (\n <EmptyState variant={EmptyStateVariant.full}>\n <EmptyStateIcon icon={this.props.icon} />\n <Title headingLevel={TitleLevel.h5} size=\"lg\">\n <Msg msgKey={this.props.messageKey} />\n </Title>\n <EmptyStateBody>\n {this.props.children}\n </EmptyStateBody>\n </EmptyState>\n );\n }\n}"],"file":"EmptyMessageState.js"}
|