@telia-ace/widget-components-close-button 1.0.31 → 1.0.32
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":"close-button-1dac931a.js","sources":["../src/close-button.tsx"],"sourcesContent":["import styled from '@emotion/styled';\nimport {\n borderTabStyle,\n Button,\n SymbolBadge,\n useDispatch,\n useProperties,\n} from '@telia-ace/widget-ui';\nimport React from 'react';\nimport { CloseButtonComponentProps } from './close-button-component';\n\ntype Props = {\n className: string;\n};\n\nconst CloseButton: React.FC<Props> = ({ className, ...other }) => {\n const dispatch = useDispatch();\n const { ariaLabel = '' } = useProperties<CloseButtonComponentProps>();\n\n return (\n <StyledButtonContainer {...other} className={className}>\n <StyledButton onClick={() => dispatch('close')} aria-label={ariaLabel}>\n <StyledSymbolBadge size={12} symbol={{ type: 'Svg', content: 'close' }} />\n </StyledButton>\n </StyledButtonContainer>\n );\n};\n\nexport default CloseButton;\n\nconst StyledButtonContainer = styled.div`\n display: flex;\n justify-content: flex-end;\n align-items: flex-start;\n`;\n\nconst StyledButton = styled(Button)`\n &:focus-visible {\n ${borderTabStyle}\n padding: ${(p) => `calc(${p.theme.sizes?.small} / 2) ${p.theme.sizes?.small}`};\n line,\n path {\n stroke: ${(p) => p.theme.accessibility?.colors?.inactiveText};\n }\n }\n`;\n\nconst StyledSymbolBadge = styled(SymbolBadge)`\n line,\n path {\n stroke: ${(p) => p.theme.colors?.text};\n }\n`;\n"],"names":["CloseButton","_a","_b","className","other","__objRest","dispatch","useDispatch","ariaLabel","useProperties","React","StyledButtonContainer","__spreadProps","__spreadValues","StyledButton","StyledSymbolBadge","styled","Button","borderTabStyle","p","SymbolBadge"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAeA,MAAMA,IAA+B,CAACC,MAA4B;AAA5B,MAAAC,IAAAD,GAAE,aAAAE,MAAFD,GAAgBE,IAAAC,EAAhBH,GAAgB,CAAd;AACpC,QAAMI,IAAWC,KACX,EAAE,WAAAC,IAAY,GAAG,IAAIC,EAAyC;AAGhE,SAAA,gBAAAC,EAAA,cAACC,GAAuBC,EAAAC,EAAA,IAAGT,IAAH,EAAU,WAAAD,EAAA,IAC7B,gBAAAO,EAAA,cAAAI,GAAA,EAAa,SAAS,MAAMR,EAAS,OAAO,GAAG,cAAYE,KACvD,gBAAAE,EAAA,cAAAK,GAAA,EAAkB,MAAM,IAAI,QAAQ,EAAE,MAAM,OAAO,SAAS,QAAA,EAAW,CAAA,CAC5E,CACJ;AAER,GAIMJ,IAAwBK,EAAO;AAAA;AAAA;AAAA;AAAA,GAM/BF,IAAeE,EAAOC,CAAM;AAAA;AAAA,UAExBC;AAAA,
|
|
1
|
+
{"version":3,"file":"close-button-1dac931a.js","sources":["../src/close-button.tsx"],"sourcesContent":["import styled from '@emotion/styled';\nimport {\n borderTabStyle,\n Button,\n SymbolBadge,\n useDispatch,\n useProperties,\n} from '@telia-ace/widget-ui';\nimport React from 'react';\nimport { CloseButtonComponentProps } from './close-button-component';\n\ntype Props = {\n className: string;\n};\n\nconst CloseButton: React.FC<Props> = ({ className, ...other }) => {\n const dispatch = useDispatch();\n const { ariaLabel = '' } = useProperties<CloseButtonComponentProps>();\n\n return (\n <StyledButtonContainer {...other} className={className}>\n <StyledButton onClick={() => dispatch('close')} aria-label={ariaLabel}>\n <StyledSymbolBadge size={12} symbol={{ type: 'Svg', content: 'close' }} />\n </StyledButton>\n </StyledButtonContainer>\n );\n};\n\nexport default CloseButton;\n\nconst StyledButtonContainer = styled.div`\n display: flex;\n justify-content: flex-end;\n align-items: flex-start;\n`;\n\nconst StyledButton = styled(Button)`\n &:focus-visible {\n ${borderTabStyle}\n padding: ${(p) => `calc(${p.theme.sizes?.small} / 2) ${p.theme.sizes?.small}`};\n line,\n path {\n stroke: ${(p) => p.theme.accessibility?.colors?.inactiveText};\n }\n }\n`;\n\nconst StyledSymbolBadge = styled(SymbolBadge)`\n line,\n path {\n stroke: ${(p) => p.theme.colors?.text};\n }\n`;\n"],"names":["CloseButton","_a","_b","className","other","__objRest","dispatch","useDispatch","ariaLabel","useProperties","React","StyledButtonContainer","__spreadProps","__spreadValues","StyledButton","StyledSymbolBadge","styled","Button","borderTabStyle","p","SymbolBadge"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAeA,MAAMA,IAA+B,CAACC,MAA4B;AAA5B,MAAAC,IAAAD,GAAE,aAAAE,MAAFD,GAAgBE,IAAAC,EAAhBH,GAAgB,CAAd;AACpC,QAAMI,IAAWC,KACX,EAAE,WAAAC,IAAY,GAAG,IAAIC,EAAyC;AAGhE,SAAA,gBAAAC,EAAA,cAACC,GAAuBC,EAAAC,EAAA,IAAGT,IAAH,EAAU,WAAAD,EAAA,IAC7B,gBAAAO,EAAA,cAAAI,GAAA,EAAa,SAAS,MAAMR,EAAS,OAAO,GAAG,cAAYE,KACvD,gBAAAE,EAAA,cAAAK,GAAA,EAAkB,MAAM,IAAI,QAAQ,EAAE,MAAM,OAAO,SAAS,QAAA,EAAW,CAAA,CAC5E,CACJ;AAER,GAIMJ,IAAwBK,EAAO;AAAA;AAAA;AAAA;AAAA,GAM/BF,IAAeE,EAAOC,CAAM;AAAA;AAAA,UAExBC,CAAc;AAAA,mBACL,CAACC,MAAM;;AAAA,kBAAQlB,IAAAkB,EAAE,MAAM,UAAR,gBAAAlB,EAAe,KAAK,UAASC,IAAAiB,EAAE,MAAM,UAAR,gBAAAjB,EAAe,KAAK;AAAA,CAAE;AAAA;AAAA;AAAA,sBAG/D,CAACiB,MAAM;;AAAA,UAAAjB,KAAAD,IAAAkB,EAAE,MAAM,kBAAR,gBAAAlB,EAAuB,WAAvB,gBAAAC,EAA+B;AAAA,CAAY;AAAA;AAAA;AAAA,GAKlEa,IAAoBC,EAAOI,CAAW;AAAA;AAAA;AAAA,kBAG1B,CAACD,MAAM;;AAAA,UAAAlB,IAAAkB,EAAE,MAAM,WAAR,gBAAAlB,EAAgB;AAAA,CAAI;AAAA;AAAA;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@telia-ace/widget-components-close-button",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.32",
|
|
4
4
|
"description": "Close button component for ACE Widgets.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"author": "Telia Company AB",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
},
|
|
22
22
|
"sideEffects": false,
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@telia-ace/widget-ui": "1.0.
|
|
25
|
-
"@webprovisions/platform": "^1.1.
|
|
24
|
+
"@telia-ace/widget-ui": "1.0.36",
|
|
25
|
+
"@webprovisions/platform": "^1.1.4"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"@emotion/react": "^11.10.5",
|
|
@@ -31,12 +31,12 @@
|
|
|
31
31
|
"react-dom": "^18.2.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@emotion/react": "^11.
|
|
35
|
-
"@emotion/styled": "^11.
|
|
36
|
-
"@telia-ace/widget-core": "1.0.
|
|
37
|
-
"@telia-ace/widget-developer-tools": "1.0.
|
|
38
|
-
"@types/react": "^18.
|
|
39
|
-
"@types/react-dom": "^18.
|
|
34
|
+
"@emotion/react": "^11.11.1",
|
|
35
|
+
"@emotion/styled": "^11.11.0",
|
|
36
|
+
"@telia-ace/widget-core": "1.0.29",
|
|
37
|
+
"@telia-ace/widget-developer-tools": "1.0.24",
|
|
38
|
+
"@types/react": "^18.2.23",
|
|
39
|
+
"@types/react-dom": "^18.2.8",
|
|
40
40
|
"react": "^18.2.0",
|
|
41
41
|
"react-dom": "^18.2.0"
|
|
42
42
|
},
|