@pega/cosmos-react-work 8.0.0-build.26.7 → 8.0.0-build.26.9
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ArticleListHeader.d.ts","sourceRoot":"","sources":["../../../src/components/ArticleList/ArticleListHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ArticleListHeader.d.ts","sourceRoot":"","sources":["../../../src/components/ArticleList/ArticleListHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAM/C,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAIlE,eAAO,MAAM,uBAAuB,kNAAiB,CAAC;AAuBtD,QAAA,MAAM,iBAAiB,EAAE,iBAAiB,CAAC,sBAAsB,CAQhE,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import styled, { css } from 'styled-components';
|
|
3
|
-
import { Flex, Icon, Actions, Text, defaultThemeProp } from '@pega/cosmos-react-core';
|
|
3
|
+
import { Flex, Icon, Actions, Text, defaultThemeProp, registerIcon } from '@pega/cosmos-react-core';
|
|
4
|
+
import * as polarisSolidIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/polaris-solid.icon';
|
|
5
|
+
registerIcon(polarisSolidIcon);
|
|
4
6
|
export const StyledArticleListHeader = styled(Flex) ``;
|
|
5
7
|
const StyledHeaderText = styled(Text) `
|
|
6
8
|
text-overflow: ellipsis;
|
|
@@ -8,11 +10,12 @@ const StyledHeaderText = styled(Text) `
|
|
|
8
10
|
overflow: hidden;
|
|
9
11
|
flex-grow: 1;
|
|
10
12
|
`;
|
|
11
|
-
const StyledIcon = styled(Icon)
|
|
12
|
-
|
|
13
|
+
const StyledIcon = styled(Icon) `
|
|
14
|
+
${({ theme: { base: { spacing, palette } }, name }) => css `
|
|
13
15
|
min-width: calc(3 * ${spacing});
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
+
${(name === 'polaris' || name === 'polaris-solid') && `color: ${palette.ai};`}
|
|
17
|
+
`}
|
|
18
|
+
`;
|
|
16
19
|
StyledIcon.defaultProps = defaultThemeProp;
|
|
17
20
|
const ArticleListHeader = ({ icon, title, actions }) => {
|
|
18
21
|
return (_jsxs(Flex, { as: StyledArticleListHeader, container: { alignItems: 'center', gap: 1, pad: [1.5, 2] }, children: [icon && _jsx(StyledIcon, { name: icon }), _jsx(StyledHeaderText, { variant: 'h2', children: title }), actions && _jsx(Actions, { ...actions })] }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ArticleListHeader.js","sourceRoot":"","sources":["../../../src/components/ArticleList/ArticleListHeader.tsx"],"names":[],"mappings":";AACA,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"ArticleListHeader.js","sourceRoot":"","sources":["../../../src/components/ArticleList/ArticleListHeader.tsx"],"names":[],"mappings":";AACA,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACpG,OAAO,KAAK,gBAAgB,MAAM,sEAAsE,CAAC;AAIzG,YAAY,CAAC,gBAAgB,CAAC,CAAC;AAE/B,MAAM,CAAC,MAAM,uBAAuB,GAAG,MAAM,CAAC,IAAI,CAAC,CAAA,EAAE,CAAC;AAEtD,MAAM,gBAAgB,GAAG,MAAM,CAAC,IAAI,CAAC,CAAA;;;;;CAKpC,CAAC;AAEF,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,CAAmB;IAC9C,CAAC,EACD,KAAK,EAAE,EACL,IAAI,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,EAC3B,EACD,IAAI,EACL,EAAE,EAAE,CAAC,GAAG,CAAA;0BACe,OAAO;MAC3B,CAAC,IAAI,KAAK,SAAS,IAAI,IAAI,KAAK,eAAe,CAAC,IAAI,UAAU,OAAO,CAAC,EAAE,GAAG;GAC9E;CACF,CAAC;AAEF,UAAU,CAAC,YAAY,GAAG,gBAAgB,CAAC;AAE3C,MAAM,iBAAiB,GAA8C,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,EAAE;IAChG,OAAO,CACL,MAAC,IAAI,IAAC,EAAE,EAAE,uBAAuB,EAAE,SAAS,EAAE,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,aAC1F,IAAI,IAAI,KAAC,UAAU,IAAC,IAAI,EAAE,IAAI,GAAI,EACnC,KAAC,gBAAgB,IAAC,OAAO,EAAC,IAAI,YAAE,KAAK,GAAoB,EACxD,OAAO,IAAI,KAAC,OAAO,OAAK,OAAO,GAAI,IAC/B,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,iBAAiB,CAAC","sourcesContent":["import type { FunctionComponent } from 'react';\nimport styled, { css } from 'styled-components';\n\nimport { Flex, Icon, Actions, Text, defaultThemeProp, registerIcon } from '@pega/cosmos-react-core';\nimport * as polarisSolidIcon from '@pega/cosmos-react-core/lib/components/Icon/icons/polaris-solid.icon';\n\nimport type { ArticleListHeaderProps } from './ArticleList.types';\n\nregisterIcon(polarisSolidIcon);\n\nexport const StyledArticleListHeader = styled(Flex)``;\n\nconst StyledHeaderText = styled(Text)`\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n flex-grow: 1;\n`;\n\nconst StyledIcon = styled(Icon)<{ name?: string }>`\n ${({\n theme: {\n base: { spacing, palette }\n },\n name\n }) => css`\n min-width: calc(3 * ${spacing});\n ${(name === 'polaris' || name === 'polaris-solid') && `color: ${palette.ai};`}\n `}\n`;\n\nStyledIcon.defaultProps = defaultThemeProp;\n\nconst ArticleListHeader: FunctionComponent<ArticleListHeaderProps> = ({ icon, title, actions }) => {\n return (\n <Flex as={StyledArticleListHeader} container={{ alignItems: 'center', gap: 1, pad: [1.5, 2] }}>\n {icon && <StyledIcon name={icon} />}\n <StyledHeaderText variant='h2'>{title}</StyledHeaderText>\n {actions && <Actions {...actions} />}\n </Flex>\n );\n};\n\nexport default ArticleListHeader;\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pega/cosmos-react-work",
|
|
3
|
-
"version": "8.0.0-build.26.
|
|
3
|
+
"version": "8.0.0-build.26.9",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/pegasystems/cosmos-react.git",
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"build": "tsc -b tsconfig.build.json"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@pega/cosmos-react-core": "8.0.0-build.26.
|
|
23
|
-
"@pega/cosmos-react-rte": "8.0.0-build.26.
|
|
22
|
+
"@pega/cosmos-react-core": "8.0.0-build.26.9",
|
|
23
|
+
"@pega/cosmos-react-rte": "8.0.0-build.26.9",
|
|
24
24
|
"@types/marked": "^4.0.2",
|
|
25
25
|
"@types/react": "^17.0.62 || ^18.3.3",
|
|
26
26
|
"@types/react-dom": "^17.0.20 || ^18.3.0",
|